select_all-rails 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +17 -0
- data/README.md +1 -1
- data/lib/select_all/rails/version.rb +1 -1
- data/package.json +4 -4
- data/select_all-rails.gemspec +1 -1
- data/vendor/assets/javascripts/select_all.js +1 -1
- metadata +3 -1869
- data/node_modules/.bin/acorn +0 -71
- data/node_modules/.bin/escodegen +0 -77
- data/node_modules/.bin/esgenerate +0 -64
- data/node_modules/.bin/esparse +0 -126
- data/node_modules/.bin/esvalidate +0 -199
- data/node_modules/.bin/har-validator +0 -56
- data/node_modules/.bin/sshpk-conv +0 -201
- data/node_modules/.bin/sshpk-sign +0 -191
- data/node_modules/.bin/sshpk-verify +0 -166
- data/node_modules/.bin/uuid +0 -26
- data/node_modules/abab/CHANGELOG.md +0 -11
- data/node_modules/abab/README.md +0 -52
- data/node_modules/abab/index.js +0 -9
- data/node_modules/abab/lib/atob.js +0 -109
- data/node_modules/abab/lib/btoa.js +0 -65
- data/node_modules/abab/package.json +0 -106
- data/node_modules/acorn-globals/LICENSE +0 -19
- data/node_modules/acorn-globals/README.md +0 -76
- data/node_modules/acorn-globals/index.js +0 -180
- data/node_modules/acorn-globals/package.json +0 -100
- data/node_modules/acorn/.editorconfig +0 -7
- data/node_modules/acorn/.gitattributes +0 -1
- data/node_modules/acorn/.npmignore +0 -3
- data/node_modules/acorn/.tern-project +0 -6
- data/node_modules/acorn/.travis.yml +0 -6
- data/node_modules/acorn/AUTHORS +0 -43
- data/node_modules/acorn/LICENSE +0 -19
- data/node_modules/acorn/README.md +0 -396
- data/node_modules/acorn/bin/acorn +0 -71
- data/node_modules/acorn/bin/build-acorn.js +0 -82
- data/node_modules/acorn/bin/generate-identifier-regex.js +0 -47
- data/node_modules/acorn/bin/update_authors.sh +0 -6
- data/node_modules/acorn/dist/.keep +0 -0
- data/node_modules/acorn/dist/acorn.js +0 -3340
- data/node_modules/acorn/dist/acorn_loose.js +0 -1300
- data/node_modules/acorn/dist/walk.js +0 -377
- data/node_modules/acorn/package.json +0 -222
- data/node_modules/acorn/src/bin/acorn.js +0 -59
- data/node_modules/acorn/src/expression.js +0 -707
- data/node_modules/acorn/src/identifier.js +0 -90
- data/node_modules/acorn/src/index.js +0 -67
- data/node_modules/acorn/src/location.js +0 -24
- data/node_modules/acorn/src/locutil.js +0 -42
- data/node_modules/acorn/src/loose/acorn_loose.js +0 -0
- data/node_modules/acorn/src/loose/expression.js +0 -501
- data/node_modules/acorn/src/loose/index.js +0 -50
- data/node_modules/acorn/src/loose/parseutil.js +0 -1
- data/node_modules/acorn/src/loose/state.js +0 -160
- data/node_modules/acorn/src/loose/statement.js +0 -420
- data/node_modules/acorn/src/loose/tokenize.js +0 -108
- data/node_modules/acorn/src/lval.js +0 -215
- data/node_modules/acorn/src/node.js +0 -50
- data/node_modules/acorn/src/options.js +0 -121
- data/node_modules/acorn/src/parseutil.js +0 -102
- data/node_modules/acorn/src/state.js +0 -104
- data/node_modules/acorn/src/statement.js +0 -626
- data/node_modules/acorn/src/tokencontext.js +0 -109
- data/node_modules/acorn/src/tokenize.js +0 -682
- data/node_modules/acorn/src/tokentype.js +0 -147
- data/node_modules/acorn/src/util.js +0 -9
- data/node_modules/acorn/src/walk/index.js +0 -340
- data/node_modules/acorn/src/whitespace.js +0 -12
- data/node_modules/amdefine/LICENSE +0 -58
- data/node_modules/amdefine/README.md +0 -171
- data/node_modules/amdefine/amdefine.js +0 -301
- data/node_modules/amdefine/intercept.js +0 -36
- data/node_modules/amdefine/package.json +0 -86
- data/node_modules/ansi-regex/index.js +0 -4
- data/node_modules/ansi-regex/license +0 -21
- data/node_modules/ansi-regex/package.json +0 -121
- data/node_modules/ansi-regex/readme.md +0 -31
- data/node_modules/ansi-styles/index.js +0 -65
- data/node_modules/ansi-styles/license +0 -21
- data/node_modules/ansi-styles/package.json +0 -114
- data/node_modules/ansi-styles/readme.md +0 -86
- data/node_modules/array-equal/.npmignore +0 -1
- data/node_modules/array-equal/LICENSE +0 -22
- data/node_modules/array-equal/README.md +0 -11
- data/node_modules/array-equal/component.json +0 -10
- data/node_modules/array-equal/index.js +0 -9
- data/node_modules/array-equal/package.json +0 -75
- data/node_modules/asn1/.npmignore +0 -2
- data/node_modules/asn1/.travis.yml +0 -4
- data/node_modules/asn1/LICENSE +0 -19
- data/node_modules/asn1/README.md +0 -50
- data/node_modules/asn1/lib/ber/errors.js +0 -13
- data/node_modules/asn1/lib/ber/index.js +0 -27
- data/node_modules/asn1/lib/ber/reader.js +0 -261
- data/node_modules/asn1/lib/ber/types.js +0 -36
- data/node_modules/asn1/lib/ber/writer.js +0 -316
- data/node_modules/asn1/lib/index.js +0 -20
- data/node_modules/asn1/package.json +0 -98
- data/node_modules/asn1/tst/ber/reader.test.js +0 -208
- data/node_modules/asn1/tst/ber/writer.test.js +0 -370
- data/node_modules/assert-plus/AUTHORS +0 -6
- data/node_modules/assert-plus/CHANGES.md +0 -8
- data/node_modules/assert-plus/README.md +0 -155
- data/node_modules/assert-plus/assert.js +0 -206
- data/node_modules/assert-plus/package.json +0 -115
- data/node_modules/assertion-error/.npmignore +0 -11
- data/node_modules/assertion-error/History.md +0 -19
- data/node_modules/assertion-error/README.md +0 -41
- data/node_modules/assertion-error/index.js +0 -116
- data/node_modules/assertion-error/package.json +0 -95
- data/node_modules/asynckit/LICENSE +0 -21
- data/node_modules/asynckit/README.md +0 -233
- data/node_modules/asynckit/bench.js +0 -76
- data/node_modules/asynckit/index.js +0 -6
- data/node_modules/asynckit/lib/abort.js +0 -29
- data/node_modules/asynckit/lib/async.js +0 -34
- data/node_modules/asynckit/lib/defer.js +0 -26
- data/node_modules/asynckit/lib/iterate.js +0 -75
- data/node_modules/asynckit/lib/readable_asynckit.js +0 -91
- data/node_modules/asynckit/lib/readable_parallel.js +0 -25
- data/node_modules/asynckit/lib/readable_serial.js +0 -25
- data/node_modules/asynckit/lib/readable_serial_ordered.js +0 -29
- data/node_modules/asynckit/lib/state.js +0 -37
- data/node_modules/asynckit/lib/streamify.js +0 -141
- data/node_modules/asynckit/lib/terminator.js +0 -29
- data/node_modules/asynckit/package.json +0 -126
- data/node_modules/asynckit/parallel.js +0 -43
- data/node_modules/asynckit/serial.js +0 -17
- data/node_modules/asynckit/serialOrdered.js +0 -75
- data/node_modules/asynckit/stream.js +0 -21
- data/node_modules/aws-sign2/LICENSE +0 -55
- data/node_modules/aws-sign2/README.md +0 -4
- data/node_modules/aws-sign2/index.js +0 -212
- data/node_modules/aws-sign2/package.json +0 -81
- data/node_modules/aws4/.npmignore +0 -4
- data/node_modules/aws4/.tern-port +0 -1
- data/node_modules/aws4/.travis.yml +0 -5
- data/node_modules/aws4/LICENSE +0 -19
- data/node_modules/aws4/README.md +0 -523
- data/node_modules/aws4/aws4.js +0 -323
- data/node_modules/aws4/lru.js +0 -96
- data/node_modules/aws4/package.json +0 -140
- data/node_modules/bcrypt-pbkdf/README.md +0 -39
- data/node_modules/bcrypt-pbkdf/index.js +0 -559
- data/node_modules/bcrypt-pbkdf/package.json +0 -72
- data/node_modules/boom/.npmignore +0 -18
- data/node_modules/boom/.travis.yml +0 -8
- data/node_modules/boom/CONTRIBUTING.md +0 -1
- data/node_modules/boom/LICENSE +0 -28
- data/node_modules/boom/README.md +0 -652
- data/node_modules/boom/images/boom.png +0 -0
- data/node_modules/boom/lib/index.js +0 -318
- data/node_modules/boom/package.json +0 -98
- data/node_modules/boom/test/index.js +0 -654
- data/node_modules/caseless/LICENSE +0 -28
- data/node_modules/caseless/README.md +0 -45
- data/node_modules/caseless/index.js +0 -66
- data/node_modules/caseless/package.json +0 -96
- data/node_modules/caseless/test.js +0 -40
- data/node_modules/chai/.npmignore +0 -14
- data/node_modules/chai/CODE_OF_CONDUCT.md +0 -58
- data/node_modules/chai/CONTRIBUTING.md +0 -214
- data/node_modules/chai/History.md +0 -1059
- data/node_modules/chai/README.md +0 -83
- data/node_modules/chai/ReleaseNotes.md +0 -737
- data/node_modules/chai/bower.json +0 -26
- data/node_modules/chai/chai.js +0 -6142
- data/node_modules/chai/index.js +0 -1
- data/node_modules/chai/karma.conf.js +0 -28
- data/node_modules/chai/karma.sauce.js +0 -41
- data/node_modules/chai/lib/chai.js +0 -93
- data/node_modules/chai/lib/chai/assertion.js +0 -131
- data/node_modules/chai/lib/chai/config.js +0 -55
- data/node_modules/chai/lib/chai/core/assertions.js +0 -1860
- data/node_modules/chai/lib/chai/interface/assert.js +0 -1645
- data/node_modules/chai/lib/chai/interface/expect.js +0 -34
- data/node_modules/chai/lib/chai/interface/should.js +0 -201
- data/node_modules/chai/lib/chai/utils/addChainableMethod.js +0 -112
- data/node_modules/chai/lib/chai/utils/addMethod.js +0 -44
- data/node_modules/chai/lib/chai/utils/addProperty.js +0 -48
- data/node_modules/chai/lib/chai/utils/expectTypes.js +0 -42
- data/node_modules/chai/lib/chai/utils/flag.js +0 -33
- data/node_modules/chai/lib/chai/utils/getActual.js +0 -20
- data/node_modules/chai/lib/chai/utils/getEnumerableProperties.js +0 -26
- data/node_modules/chai/lib/chai/utils/getMessage.js +0 -51
- data/node_modules/chai/lib/chai/utils/getName.js +0 -22
- data/node_modules/chai/lib/chai/utils/getPathInfo.js +0 -111
- data/node_modules/chai/lib/chai/utils/getPathValue.js +0 -43
- data/node_modules/chai/lib/chai/utils/getProperties.js +0 -36
- data/node_modules/chai/lib/chai/utils/hasProperty.js +0 -64
- data/node_modules/chai/lib/chai/utils/index.js +0 -130
- data/node_modules/chai/lib/chai/utils/inspect.js +0 -335
- data/node_modules/chai/lib/chai/utils/objDisplay.js +0 -50
- data/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js +0 -54
- data/node_modules/chai/lib/chai/utils/overwriteMethod.js +0 -52
- data/node_modules/chai/lib/chai/utils/overwriteProperty.js +0 -55
- data/node_modules/chai/lib/chai/utils/test.js +0 -28
- data/node_modules/chai/lib/chai/utils/transferFlags.js +0 -45
- data/node_modules/chai/package.json +0 -128
- data/node_modules/chai/sauce.browsers.js +0 -128
- data/node_modules/chalk/index.js +0 -116
- data/node_modules/chalk/license +0 -21
- data/node_modules/chalk/package.json +0 -140
- data/node_modules/chalk/readme.md +0 -213
- data/node_modules/combined-stream/License +0 -19
- data/node_modules/combined-stream/Readme.md +0 -138
- data/node_modules/combined-stream/lib/combined_stream.js +0 -188
- data/node_modules/combined-stream/package.json +0 -101
- data/node_modules/commander/History.md +0 -261
- data/node_modules/commander/LICENSE +0 -22
- data/node_modules/commander/Readme.md +0 -351
- data/node_modules/commander/index.js +0 -1110
- data/node_modules/commander/package.json +0 -104
- data/node_modules/content-type-parser/LICENSE.txt +0 -19
- data/node_modules/content-type-parser/README.md +0 -60
- data/node_modules/content-type-parser/lib/content-type-parser.js +0 -103
- data/node_modules/content-type-parser/package.json +0 -96
- data/node_modules/cryptiles/.npmignore +0 -18
- data/node_modules/cryptiles/.travis.yml +0 -8
- data/node_modules/cryptiles/LICENSE +0 -28
- data/node_modules/cryptiles/README.md +0 -16
- data/node_modules/cryptiles/lib/index.js +0 -68
- data/node_modules/cryptiles/package.json +0 -94
- data/node_modules/cryptiles/test/index.js +0 -102
- data/node_modules/cssom/LICENSE.txt +0 -20
- data/node_modules/cssom/README.mdown +0 -69
- data/node_modules/cssom/lib/CSSDocumentRule.js +0 -39
- data/node_modules/cssom/lib/CSSFontFaceRule.js +0 -36
- data/node_modules/cssom/lib/CSSImportRule.js +0 -132
- data/node_modules/cssom/lib/CSSKeyframeRule.js +0 -37
- data/node_modules/cssom/lib/CSSKeyframesRule.js +0 -39
- data/node_modules/cssom/lib/CSSMediaRule.js +0 -41
- data/node_modules/cssom/lib/CSSRule.js +0 -43
- data/node_modules/cssom/lib/CSSStyleDeclaration.js +0 -148
- data/node_modules/cssom/lib/CSSStyleRule.js +0 -190
- data/node_modules/cssom/lib/CSSStyleSheet.js +0 -88
- data/node_modules/cssom/lib/CSSValue.js +0 -43
- data/node_modules/cssom/lib/CSSValueExpression.js +0 -344
- data/node_modules/cssom/lib/MatcherList.js +0 -62
- data/node_modules/cssom/lib/MediaList.js +0 -61
- data/node_modules/cssom/lib/StyleSheet.js +0 -17
- data/node_modules/cssom/lib/clone.js +0 -76
- data/node_modules/cssom/lib/index.js +0 -19
- data/node_modules/cssom/lib/parse.js +0 -381
- data/node_modules/cssom/package.json +0 -96
- data/node_modules/cssstyle/.npmignore +0 -1
- data/node_modules/cssstyle/MIT-LICENSE.txt +0 -20
- data/node_modules/cssstyle/README.md +0 -27
- data/node_modules/cssstyle/lib/CSSStyleDeclaration.js +0 -233
- data/node_modules/cssstyle/lib/parsers.js +0 -670
- data/node_modules/cssstyle/lib/properties.js +0 -5858
- data/node_modules/cssstyle/lib/properties/alignmentBaseline.js +0 -12
- data/node_modules/cssstyle/lib/properties/azimuth.js +0 -65
- data/node_modules/cssstyle/lib/properties/background.js +0 -24
- data/node_modules/cssstyle/lib/properties/backgroundAttachment.js +0 -22
- data/node_modules/cssstyle/lib/properties/backgroundClip.js +0 -12
- data/node_modules/cssstyle/lib/properties/backgroundColor.js +0 -33
- data/node_modules/cssstyle/lib/properties/backgroundImage.js +0 -29
- data/node_modules/cssstyle/lib/properties/backgroundOrigin.js +0 -12
- data/node_modules/cssstyle/lib/properties/backgroundPosition.js +0 -56
- data/node_modules/cssstyle/lib/properties/backgroundPositionX.js +0 -12
- data/node_modules/cssstyle/lib/properties/backgroundPositionY.js +0 -12
- data/node_modules/cssstyle/lib/properties/backgroundRepeat.js +0 -25
- data/node_modules/cssstyle/lib/properties/backgroundRepeatX.js +0 -12
- data/node_modules/cssstyle/lib/properties/backgroundRepeatY.js +0 -12
- data/node_modules/cssstyle/lib/properties/backgroundSize.js +0 -12
- data/node_modules/cssstyle/lib/properties/baselineShift.js +0 -12
- data/node_modules/cssstyle/lib/properties/border.js +0 -49
- data/node_modules/cssstyle/lib/properties/borderBottom.js +0 -23
- data/node_modules/cssstyle/lib/properties/borderBottomColor.js +0 -16
- data/node_modules/cssstyle/lib/properties/borderBottomLeftRadius.js +0 -12
- data/node_modules/cssstyle/lib/properties/borderBottomRightRadius.js +0 -12
- data/node_modules/cssstyle/lib/properties/borderBottomStyle.js +0 -21
- data/node_modules/cssstyle/lib/properties/borderBottomWidth.js +0 -16
- data/node_modules/cssstyle/lib/properties/borderCollapse.js +0 -25
- data/node_modules/cssstyle/lib/properties/borderColor.js +0 -28
- data/node_modules/cssstyle/lib/properties/borderImage.js +0 -12
- data/node_modules/cssstyle/lib/properties/borderImageOutset.js +0 -12
- data/node_modules/cssstyle/lib/properties/borderImageRepeat.js +0 -12
- data/node_modules/cssstyle/lib/properties/borderImageSlice.js +0 -12
- data/node_modules/cssstyle/lib/properties/borderImageSource.js +0 -12
- data/node_modules/cssstyle/lib/properties/borderImageWidth.js +0 -12
- data/node_modules/cssstyle/lib/properties/borderLeft.js +0 -23
- data/node_modules/cssstyle/lib/properties/borderLeftColor.js +0 -16
- data/node_modules/cssstyle/lib/properties/borderLeftStyle.js +0 -21
- data/node_modules/cssstyle/lib/properties/borderLeftWidth.js +0 -16
- data/node_modules/cssstyle/lib/properties/borderRadius.js +0 -12
- data/node_modules/cssstyle/lib/properties/borderRight.js +0 -23
- data/node_modules/cssstyle/lib/properties/borderRightColor.js +0 -16
- data/node_modules/cssstyle/lib/properties/borderRightStyle.js +0 -21
- data/node_modules/cssstyle/lib/properties/borderRightWidth.js +0 -16
- data/node_modules/cssstyle/lib/properties/borderSpacing.js +0 -42
- data/node_modules/cssstyle/lib/properties/borderStyle.js +0 -27
- data/node_modules/cssstyle/lib/properties/borderTop.js +0 -22
- data/node_modules/cssstyle/lib/properties/borderTopColor.js +0 -16
- data/node_modules/cssstyle/lib/properties/borderTopLeftRadius.js +0 -12
- data/node_modules/cssstyle/lib/properties/borderTopRightRadius.js +0 -12
- data/node_modules/cssstyle/lib/properties/borderTopStyle.js +0 -21
- data/node_modules/cssstyle/lib/properties/borderTopWidth.js +0 -17
- data/node_modules/cssstyle/lib/properties/borderWidth.js +0 -47
- data/node_modules/cssstyle/lib/properties/bottom.js +0 -14
- data/node_modules/cssstyle/lib/properties/boxShadow.js +0 -12
- data/node_modules/cssstyle/lib/properties/boxSizing.js +0 -12
- data/node_modules/cssstyle/lib/properties/captionSide.js +0 -12
- data/node_modules/cssstyle/lib/properties/clear.js +0 -16
- data/node_modules/cssstyle/lib/properties/clip.js +0 -49
- data/node_modules/cssstyle/lib/properties/color.js +0 -14
- data/node_modules/cssstyle/lib/properties/colorInterpolation.js +0 -12
- data/node_modules/cssstyle/lib/properties/colorInterpolationFilters.js +0 -12
- data/node_modules/cssstyle/lib/properties/colorProfile.js +0 -12
- data/node_modules/cssstyle/lib/properties/colorRendering.js +0 -12
- data/node_modules/cssstyle/lib/properties/content.js +0 -12
- data/node_modules/cssstyle/lib/properties/counterIncrement.js +0 -12
- data/node_modules/cssstyle/lib/properties/counterReset.js +0 -12
- data/node_modules/cssstyle/lib/properties/cssFloat.js +0 -12
- data/node_modules/cssstyle/lib/properties/cue.js +0 -12
- data/node_modules/cssstyle/lib/properties/cueAfter.js +0 -12
- data/node_modules/cssstyle/lib/properties/cueBefore.js +0 -12
- data/node_modules/cssstyle/lib/properties/cursor.js +0 -12
- data/node_modules/cssstyle/lib/properties/direction.js +0 -12
- data/node_modules/cssstyle/lib/properties/display.js +0 -12
- data/node_modules/cssstyle/lib/properties/dominantBaseline.js +0 -12
- data/node_modules/cssstyle/lib/properties/elevation.js +0 -12
- data/node_modules/cssstyle/lib/properties/emptyCells.js +0 -12
- data/node_modules/cssstyle/lib/properties/enableBackground.js +0 -12
- data/node_modules/cssstyle/lib/properties/fill.js +0 -12
- data/node_modules/cssstyle/lib/properties/fillOpacity.js +0 -12
- data/node_modules/cssstyle/lib/properties/fillRule.js +0 -12
- data/node_modules/cssstyle/lib/properties/filter.js +0 -12
- data/node_modules/cssstyle/lib/properties/floodColor.js +0 -14
- data/node_modules/cssstyle/lib/properties/floodOpacity.js +0 -12
- data/node_modules/cssstyle/lib/properties/font.js +0 -40
- data/node_modules/cssstyle/lib/properties/fontFamily.js +0 -33
- data/node_modules/cssstyle/lib/properties/fontSize.js +0 -25
- data/node_modules/cssstyle/lib/properties/fontSizeAdjust.js +0 -12
- data/node_modules/cssstyle/lib/properties/fontStretch.js +0 -12
- data/node_modules/cssstyle/lib/properties/fontStyle.js +0 -18
- data/node_modules/cssstyle/lib/properties/fontVariant.js +0 -18
- data/node_modules/cssstyle/lib/properties/fontWeight.js +0 -18
- data/node_modules/cssstyle/lib/properties/glyphOrientationHorizontal.js +0 -12
- data/node_modules/cssstyle/lib/properties/glyphOrientationVertical.js +0 -12
- data/node_modules/cssstyle/lib/properties/height.js +0 -24
- data/node_modules/cssstyle/lib/properties/imageRendering.js +0 -12
- data/node_modules/cssstyle/lib/properties/kerning.js +0 -12
- data/node_modules/cssstyle/lib/properties/left.js +0 -14
- data/node_modules/cssstyle/lib/properties/letterSpacing.js +0 -12
- data/node_modules/cssstyle/lib/properties/lightingColor.js +0 -14
- data/node_modules/cssstyle/lib/properties/lineHeight.js +0 -21
- data/node_modules/cssstyle/lib/properties/listStyle.js +0 -12
- data/node_modules/cssstyle/lib/properties/listStyleImage.js +0 -12
- data/node_modules/cssstyle/lib/properties/listStylePosition.js +0 -12
- data/node_modules/cssstyle/lib/properties/listStyleType.js +0 -12
- data/node_modules/cssstyle/lib/properties/margin.js +0 -59
- data/node_modules/cssstyle/lib/properties/marginBottom.js +0 -13
- data/node_modules/cssstyle/lib/properties/marginLeft.js +0 -13
- data/node_modules/cssstyle/lib/properties/marginRight.js +0 -13
- data/node_modules/cssstyle/lib/properties/marginTop.js +0 -13
- data/node_modules/cssstyle/lib/properties/marker.js +0 -12
- data/node_modules/cssstyle/lib/properties/markerEnd.js +0 -12
- data/node_modules/cssstyle/lib/properties/markerMid.js +0 -12
- data/node_modules/cssstyle/lib/properties/markerOffset.js +0 -12
- data/node_modules/cssstyle/lib/properties/markerStart.js +0 -12
- data/node_modules/cssstyle/lib/properties/marks.js +0 -12
- data/node_modules/cssstyle/lib/properties/mask.js +0 -12
- data/node_modules/cssstyle/lib/properties/maxHeight.js +0 -12
- data/node_modules/cssstyle/lib/properties/maxWidth.js +0 -12
- data/node_modules/cssstyle/lib/properties/minHeight.js +0 -12
- data/node_modules/cssstyle/lib/properties/minWidth.js +0 -12
- data/node_modules/cssstyle/lib/properties/opacity.js +0 -14
- data/node_modules/cssstyle/lib/properties/orphans.js +0 -12
- data/node_modules/cssstyle/lib/properties/outline.js +0 -12
- data/node_modules/cssstyle/lib/properties/outlineColor.js +0 -14
- data/node_modules/cssstyle/lib/properties/outlineOffset.js +0 -12
- data/node_modules/cssstyle/lib/properties/outlineStyle.js +0 -12
- data/node_modules/cssstyle/lib/properties/outlineWidth.js +0 -12
- data/node_modules/cssstyle/lib/properties/overflow.js +0 -12
- data/node_modules/cssstyle/lib/properties/overflowX.js +0 -12
- data/node_modules/cssstyle/lib/properties/overflowY.js +0 -12
- data/node_modules/cssstyle/lib/properties/padding.js +0 -52
- data/node_modules/cssstyle/lib/properties/paddingBottom.js +0 -13
- data/node_modules/cssstyle/lib/properties/paddingLeft.js +0 -13
- data/node_modules/cssstyle/lib/properties/paddingRight.js +0 -13
- data/node_modules/cssstyle/lib/properties/paddingTop.js +0 -13
- data/node_modules/cssstyle/lib/properties/page.js +0 -12
- data/node_modules/cssstyle/lib/properties/pageBreakAfter.js +0 -12
- data/node_modules/cssstyle/lib/properties/pageBreakBefore.js +0 -12
- data/node_modules/cssstyle/lib/properties/pageBreakInside.js +0 -12
- data/node_modules/cssstyle/lib/properties/pause.js +0 -12
- data/node_modules/cssstyle/lib/properties/pauseAfter.js +0 -12
- data/node_modules/cssstyle/lib/properties/pauseBefore.js +0 -12
- data/node_modules/cssstyle/lib/properties/pitch.js +0 -12
- data/node_modules/cssstyle/lib/properties/pitchRange.js +0 -12
- data/node_modules/cssstyle/lib/properties/playDuring.js +0 -12
- data/node_modules/cssstyle/lib/properties/pointerEvents.js +0 -12
- data/node_modules/cssstyle/lib/properties/position.js +0 -12
- data/node_modules/cssstyle/lib/properties/quotes.js +0 -12
- data/node_modules/cssstyle/lib/properties/resize.js +0 -12
- data/node_modules/cssstyle/lib/properties/richness.js +0 -12
- data/node_modules/cssstyle/lib/properties/right.js +0 -14
- data/node_modules/cssstyle/lib/properties/shapeRendering.js +0 -12
- data/node_modules/cssstyle/lib/properties/size.js +0 -12
- data/node_modules/cssstyle/lib/properties/speak.js +0 -12
- data/node_modules/cssstyle/lib/properties/speakHeader.js +0 -12
- data/node_modules/cssstyle/lib/properties/speakNumeral.js +0 -12
- data/node_modules/cssstyle/lib/properties/speakPunctuation.js +0 -12
- data/node_modules/cssstyle/lib/properties/speechRate.js +0 -12
- data/node_modules/cssstyle/lib/properties/src.js +0 -12
- data/node_modules/cssstyle/lib/properties/stopColor.js +0 -14
- data/node_modules/cssstyle/lib/properties/stopOpacity.js +0 -12
- data/node_modules/cssstyle/lib/properties/stress.js +0 -12
- data/node_modules/cssstyle/lib/properties/stroke.js +0 -12
- data/node_modules/cssstyle/lib/properties/strokeDasharray.js +0 -12
- data/node_modules/cssstyle/lib/properties/strokeDashoffset.js +0 -12
- data/node_modules/cssstyle/lib/properties/strokeLinecap.js +0 -12
- data/node_modules/cssstyle/lib/properties/strokeLinejoin.js +0 -12
- data/node_modules/cssstyle/lib/properties/strokeMiterlimit.js +0 -12
- data/node_modules/cssstyle/lib/properties/strokeOpacity.js +0 -12
- data/node_modules/cssstyle/lib/properties/strokeWidth.js +0 -12
- data/node_modules/cssstyle/lib/properties/tableLayout.js +0 -12
- data/node_modules/cssstyle/lib/properties/textAlign.js +0 -12
- data/node_modules/cssstyle/lib/properties/textAnchor.js +0 -12
- data/node_modules/cssstyle/lib/properties/textDecoration.js +0 -12
- data/node_modules/cssstyle/lib/properties/textIndent.js +0 -12
- data/node_modules/cssstyle/lib/properties/textLineThrough.js +0 -12
- data/node_modules/cssstyle/lib/properties/textLineThroughColor.js +0 -14
- data/node_modules/cssstyle/lib/properties/textLineThroughMode.js +0 -12
- data/node_modules/cssstyle/lib/properties/textLineThroughStyle.js +0 -12
- data/node_modules/cssstyle/lib/properties/textLineThroughWidth.js +0 -12
- data/node_modules/cssstyle/lib/properties/textOverflow.js +0 -12
- data/node_modules/cssstyle/lib/properties/textOverline.js +0 -12
- data/node_modules/cssstyle/lib/properties/textOverlineColor.js +0 -14
- data/node_modules/cssstyle/lib/properties/textOverlineMode.js +0 -12
- data/node_modules/cssstyle/lib/properties/textOverlineStyle.js +0 -12
- data/node_modules/cssstyle/lib/properties/textOverlineWidth.js +0 -12
- data/node_modules/cssstyle/lib/properties/textRendering.js +0 -12
- data/node_modules/cssstyle/lib/properties/textShadow.js +0 -12
- data/node_modules/cssstyle/lib/properties/textTransform.js +0 -12
- data/node_modules/cssstyle/lib/properties/textUnderline.js +0 -12
- data/node_modules/cssstyle/lib/properties/textUnderlineColor.js +0 -14
- data/node_modules/cssstyle/lib/properties/textUnderlineMode.js +0 -12
- data/node_modules/cssstyle/lib/properties/textUnderlineStyle.js +0 -12
- data/node_modules/cssstyle/lib/properties/textUnderlineWidth.js +0 -12
- data/node_modules/cssstyle/lib/properties/top.js +0 -14
- data/node_modules/cssstyle/lib/properties/unicodeBidi.js +0 -12
- data/node_modules/cssstyle/lib/properties/unicodeRange.js +0 -12
- data/node_modules/cssstyle/lib/properties/vectorEffect.js +0 -12
- data/node_modules/cssstyle/lib/properties/verticalAlign.js +0 -12
- data/node_modules/cssstyle/lib/properties/visibility.js +0 -12
- data/node_modules/cssstyle/lib/properties/voiceFamily.js +0 -12
- data/node_modules/cssstyle/lib/properties/volume.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitAnimation.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitAnimationDelay.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitAnimationDirection.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitAnimationDuration.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitAnimationFillMode.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitAnimationIterationCount.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitAnimationName.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitAnimationPlayState.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitAnimationTimingFunction.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitAppearance.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitAspectRatio.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitBackfaceVisibility.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitBackgroundClip.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitBackgroundComposite.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitBackgroundOrigin.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitBackgroundSize.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitBorderAfter.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitBorderAfterColor.js +0 -14
- data/node_modules/cssstyle/lib/properties/webkitBorderAfterStyle.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitBorderAfterWidth.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitBorderBefore.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitBorderBeforeColor.js +0 -14
- data/node_modules/cssstyle/lib/properties/webkitBorderBeforeStyle.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitBorderBeforeWidth.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitBorderEnd.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitBorderEndColor.js +0 -14
- data/node_modules/cssstyle/lib/properties/webkitBorderEndStyle.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitBorderEndWidth.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitBorderFit.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitBorderHorizontalSpacing.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitBorderImage.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitBorderRadius.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitBorderStart.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitBorderStartColor.js +0 -14
- data/node_modules/cssstyle/lib/properties/webkitBorderStartStyle.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitBorderStartWidth.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitBorderVerticalSpacing.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitBoxAlign.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitBoxDirection.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitBoxFlex.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitBoxFlexGroup.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitBoxLines.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitBoxOrdinalGroup.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitBoxOrient.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitBoxPack.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitBoxReflect.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitBoxShadow.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitColorCorrection.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitColumnAxis.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitColumnBreakAfter.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitColumnBreakBefore.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitColumnBreakInside.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitColumnCount.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitColumnGap.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitColumnRule.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitColumnRuleColor.js +0 -14
- data/node_modules/cssstyle/lib/properties/webkitColumnRuleStyle.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitColumnRuleWidth.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitColumnSpan.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitColumnWidth.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitColumns.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitFilter.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitFlexAlign.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitFlexDirection.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitFlexFlow.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitFlexItemAlign.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitFlexLinePack.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitFlexOrder.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitFlexPack.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitFlexWrap.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitFlowFrom.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitFlowInto.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitFontFeatureSettings.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitFontKerning.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitFontSizeDelta.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitFontSmoothing.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitFontVariantLigatures.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitHighlight.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitHyphenateCharacter.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitHyphenateLimitAfter.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitHyphenateLimitBefore.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitHyphenateLimitLines.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitHyphens.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitLineAlign.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitLineBoxContain.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitLineBreak.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitLineClamp.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitLineGrid.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitLineSnap.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitLocale.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitLogicalHeight.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitLogicalWidth.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitMarginAfter.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitMarginAfterCollapse.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitMarginBefore.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitMarginBeforeCollapse.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitMarginBottomCollapse.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitMarginCollapse.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitMarginEnd.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitMarginStart.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitMarginTopCollapse.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitMarquee.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitMarqueeDirection.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitMarqueeIncrement.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitMarqueeRepetition.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitMarqueeSpeed.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitMarqueeStyle.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitMask.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitMaskAttachment.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitMaskBoxImage.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitMaskBoxImageOutset.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitMaskBoxImageRepeat.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitMaskBoxImageSlice.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitMaskBoxImageSource.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitMaskBoxImageWidth.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitMaskClip.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitMaskComposite.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitMaskImage.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitMaskOrigin.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitMaskPosition.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitMaskPositionX.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitMaskPositionY.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitMaskRepeat.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitMaskRepeatX.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitMaskRepeatY.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitMaskSize.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitMatchNearestMailBlockquoteColor.js +0 -14
- data/node_modules/cssstyle/lib/properties/webkitMaxLogicalHeight.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitMaxLogicalWidth.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitMinLogicalHeight.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitMinLogicalWidth.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitNbspMode.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitOverflowScrolling.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitPaddingAfter.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitPaddingBefore.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitPaddingEnd.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitPaddingStart.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitPerspective.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitPerspectiveOrigin.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitPerspectiveOriginX.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitPerspectiveOriginY.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitPrintColorAdjust.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitRegionBreakAfter.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitRegionBreakBefore.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitRegionBreakInside.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitRegionOverflow.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitRtlOrdering.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitSvgShadow.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitTapHighlightColor.js +0 -14
- data/node_modules/cssstyle/lib/properties/webkitTextCombine.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitTextDecorationsInEffect.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitTextEmphasis.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitTextEmphasisColor.js +0 -14
- data/node_modules/cssstyle/lib/properties/webkitTextEmphasisPosition.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitTextEmphasisStyle.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitTextFillColor.js +0 -14
- data/node_modules/cssstyle/lib/properties/webkitTextOrientation.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitTextSecurity.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitTextSizeAdjust.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitTextStroke.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitTextStrokeColor.js +0 -14
- data/node_modules/cssstyle/lib/properties/webkitTextStrokeWidth.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitTransform.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitTransformOrigin.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitTransformOriginX.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitTransformOriginY.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitTransformOriginZ.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitTransformStyle.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitTransition.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitTransitionDelay.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitTransitionDuration.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitTransitionProperty.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitTransitionTimingFunction.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitUserDrag.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitUserModify.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitUserSelect.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitWrap.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitWrapFlow.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitWrapMargin.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitWrapPadding.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitWrapShapeInside.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitWrapShapeOutside.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitWrapThrough.js +0 -12
- data/node_modules/cssstyle/lib/properties/webkitWritingMode.js +0 -12
- data/node_modules/cssstyle/lib/properties/whiteSpace.js +0 -12
- data/node_modules/cssstyle/lib/properties/widows.js +0 -12
- data/node_modules/cssstyle/lib/properties/width.js +0 -24
- data/node_modules/cssstyle/lib/properties/wordBreak.js +0 -12
- data/node_modules/cssstyle/lib/properties/wordSpacing.js +0 -12
- data/node_modules/cssstyle/lib/properties/wordWrap.js +0 -12
- data/node_modules/cssstyle/lib/properties/writingMode.js +0 -12
- data/node_modules/cssstyle/lib/properties/zIndex.js +0 -12
- data/node_modules/cssstyle/lib/properties/zoom.js +0 -12
- data/node_modules/cssstyle/package.json +0 -109
- data/node_modules/cssstyle/scripts/generate_properties.js +0 -302
- data/node_modules/cssstyle/scripts/run_tests.sh +0 -4
- data/node_modules/cssstyle/tests/tests.js +0 -405
- data/node_modules/dashdash/CHANGES.md +0 -364
- data/node_modules/dashdash/LICENSE.txt +0 -24
- data/node_modules/dashdash/README.md +0 -574
- data/node_modules/dashdash/etc/dashdash.bash_completion.in +0 -389
- data/node_modules/dashdash/lib/dashdash.js +0 -1055
- data/node_modules/dashdash/node_modules/assert-plus/AUTHORS +0 -6
- data/node_modules/dashdash/node_modules/assert-plus/CHANGES.md +0 -14
- data/node_modules/dashdash/node_modules/assert-plus/README.md +0 -162
- data/node_modules/dashdash/node_modules/assert-plus/assert.js +0 -211
- data/node_modules/dashdash/node_modules/assert-plus/package.json +0 -115
- data/node_modules/dashdash/package.json +0 -125
- data/node_modules/deep-eql/.npmignore +0 -11
- data/node_modules/deep-eql/History.md +0 -28
- data/node_modules/deep-eql/README.md +0 -52
- data/node_modules/deep-eql/index.js +0 -1
- data/node_modules/deep-eql/karma.conf.js +0 -20
- data/node_modules/deep-eql/lib/eql.js +0 -257
- data/node_modules/deep-eql/node_modules/type-detect/.npmignore +0 -11
- data/node_modules/deep-eql/node_modules/type-detect/History.md +0 -18
- data/node_modules/deep-eql/node_modules/type-detect/README.md +0 -193
- data/node_modules/deep-eql/node_modules/type-detect/index.js +0 -1
- data/node_modules/deep-eql/node_modules/type-detect/lib/type.js +0 -142
- data/node_modules/deep-eql/node_modules/type-detect/package.json +0 -91
- data/node_modules/deep-eql/package.json +0 -98
- data/node_modules/deep-is/.npmignore +0 -1
- data/node_modules/deep-is/.travis.yml +0 -6
- data/node_modules/deep-is/LICENSE +0 -22
- data/node_modules/deep-is/README.markdown +0 -70
- data/node_modules/deep-is/example/cmp.js +0 -11
- data/node_modules/deep-is/index.js +0 -102
- data/node_modules/deep-is/package.json +0 -120
- data/node_modules/deep-is/test/NaN.js +0 -16
- data/node_modules/deep-is/test/cmp.js +0 -23
- data/node_modules/deep-is/test/neg-vs-pos-0.js +0 -15
- data/node_modules/delayed-stream/.npmignore +0 -1
- data/node_modules/delayed-stream/License +0 -19
- data/node_modules/delayed-stream/Makefile +0 -7
- data/node_modules/delayed-stream/Readme.md +0 -141
- data/node_modules/delayed-stream/lib/delayed_stream.js +0 -107
- data/node_modules/delayed-stream/package.json +0 -97
- data/node_modules/ecc-jsbn/.npmignore +0 -15
- data/node_modules/ecc-jsbn/LICENSE +0 -21
- data/node_modules/ecc-jsbn/README.md +0 -8
- data/node_modules/ecc-jsbn/index.js +0 -57
- data/node_modules/ecc-jsbn/lib/LICENSE-jsbn +0 -40
- data/node_modules/ecc-jsbn/lib/ec.js +0 -561
- data/node_modules/ecc-jsbn/lib/sec.js +0 -170
- data/node_modules/ecc-jsbn/package.json +0 -90
- data/node_modules/ecc-jsbn/test.js +0 -14
- data/node_modules/escape-string-regexp/index.js +0 -11
- data/node_modules/escape-string-regexp/license +0 -21
- data/node_modules/escape-string-regexp/package.json +0 -109
- data/node_modules/escape-string-regexp/readme.md +0 -27
- data/node_modules/escodegen/LICENSE.BSD +0 -19
- data/node_modules/escodegen/LICENSE.source-map +0 -27
- data/node_modules/escodegen/README.md +0 -116
- data/node_modules/escodegen/bin/escodegen.js +0 -77
- data/node_modules/escodegen/bin/esgenerate.js +0 -64
- data/node_modules/escodegen/escodegen.js +0 -2607
- data/node_modules/escodegen/package.json +0 -122
- data/node_modules/esprima/ChangeLog +0 -174
- data/node_modules/esprima/LICENSE.BSD +0 -21
- data/node_modules/esprima/README.md +0 -27
- data/node_modules/esprima/bin/esparse.js +0 -126
- data/node_modules/esprima/bin/esvalidate.js +0 -199
- data/node_modules/esprima/esprima.js +0 -5740
- data/node_modules/esprima/package.json +0 -153
- data/node_modules/estraverse/.editorconfig +0 -10
- data/node_modules/estraverse/.jshintrc +0 -16
- data/node_modules/estraverse/LICENSE.BSD +0 -19
- data/node_modules/estraverse/README.md +0 -124
- data/node_modules/estraverse/estraverse.js +0 -845
- data/node_modules/estraverse/gulpfile.js +0 -70
- data/node_modules/estraverse/package.json +0 -95
- data/node_modules/esutils/LICENSE.BSD +0 -19
- data/node_modules/esutils/README.md +0 -169
- data/node_modules/esutils/lib/ast.js +0 -144
- data/node_modules/esutils/lib/code.js +0 -135
- data/node_modules/esutils/lib/keyword.js +0 -165
- data/node_modules/esutils/lib/utils.js +0 -33
- data/node_modules/esutils/package.json +0 -105
- data/node_modules/extend/.eslintrc +0 -192
- data/node_modules/extend/.jscs.json +0 -104
- data/node_modules/extend/.npmignore +0 -1
- data/node_modules/extend/.travis.yml +0 -44
- data/node_modules/extend/CHANGELOG.md +0 -69
- data/node_modules/extend/LICENSE +0 -23
- data/node_modules/extend/README.md +0 -62
- data/node_modules/extend/component.json +0 -32
- data/node_modules/extend/index.js +0 -86
- data/node_modules/extend/package.json +0 -106
- data/node_modules/extsprintf/.gitmodules +0 -6
- data/node_modules/extsprintf/LICENSE +0 -19
- data/node_modules/extsprintf/Makefile +0 -23
- data/node_modules/extsprintf/Makefile.deps +0 -39
- data/node_modules/extsprintf/Makefile.targ +0 -285
- data/node_modules/extsprintf/README.md +0 -39
- data/node_modules/extsprintf/examples/simple.js +0 -2
- data/node_modules/extsprintf/jsl.node.conf +0 -137
- data/node_modules/extsprintf/lib/extsprintf.js +0 -166
- data/node_modules/extsprintf/package.json +0 -74
- data/node_modules/fast-levenshtein/LICENSE.md +0 -25
- data/node_modules/fast-levenshtein/README.md +0 -104
- data/node_modules/fast-levenshtein/levenshtein.js +0 -102
- data/node_modules/fast-levenshtein/package.json +0 -108
- data/node_modules/forever-agent/LICENSE +0 -55
- data/node_modules/forever-agent/README.md +0 -4
- data/node_modules/forever-agent/index.js +0 -138
- data/node_modules/forever-agent/package.json +0 -88
- data/node_modules/form-data/License +0 -19
- data/node_modules/form-data/README.md +0 -217
- data/node_modules/form-data/lib/browser.js +0 -2
- data/node_modules/form-data/lib/form_data.js +0 -440
- data/node_modules/form-data/lib/populate.js +0 -10
- data/node_modules/form-data/package.json +0 -145
- data/node_modules/generate-function/.npmignore +0 -1
- data/node_modules/generate-function/.travis.yml +0 -3
- data/node_modules/generate-function/README.md +0 -72
- data/node_modules/generate-function/example.js +0 -27
- data/node_modules/generate-function/index.js +0 -61
- data/node_modules/generate-function/package.json +0 -87
- data/node_modules/generate-function/test.js +0 -33
- data/node_modules/generate-object-property/.npmignore +0 -1
- data/node_modules/generate-object-property/.travis.yml +0 -3
- data/node_modules/generate-object-property/LICENSE +0 -21
- data/node_modules/generate-object-property/README.md +0 -19
- data/node_modules/generate-object-property/index.js +0 -12
- data/node_modules/generate-object-property/package.json +0 -84
- data/node_modules/generate-object-property/test.js +0 -12
- data/node_modules/getpass/.npmignore +0 -8
- data/node_modules/getpass/.travis.yml +0 -9
- data/node_modules/getpass/LICENSE +0 -18
- data/node_modules/getpass/README.md +0 -32
- data/node_modules/getpass/lib/index.js +0 -123
- data/node_modules/getpass/node_modules/assert-plus/AUTHORS +0 -6
- data/node_modules/getpass/node_modules/assert-plus/CHANGES.md +0 -14
- data/node_modules/getpass/node_modules/assert-plus/README.md +0 -162
- data/node_modules/getpass/node_modules/assert-plus/assert.js +0 -211
- data/node_modules/getpass/node_modules/assert-plus/package.json +0 -115
- data/node_modules/getpass/package.json +0 -90
- data/node_modules/graceful-readlink/.npmignore +0 -3
- data/node_modules/graceful-readlink/.travis.yml +0 -5
- data/node_modules/graceful-readlink/LICENSE +0 -22
- data/node_modules/graceful-readlink/README.md +0 -17
- data/node_modules/graceful-readlink/index.js +0 -12
- data/node_modules/graceful-readlink/package.json +0 -83
- data/node_modules/har-validator/LICENSE +0 -13
- data/node_modules/har-validator/README.md +0 -309
- data/node_modules/har-validator/bin/har-validator +0 -56
- data/node_modules/har-validator/lib/async.js +0 -14
- data/node_modules/har-validator/lib/error.js +0 -10
- data/node_modules/har-validator/lib/index.js +0 -22
- data/node_modules/har-validator/lib/runner.js +0 -29
- data/node_modules/har-validator/lib/schemas/cache.json +0 -13
- data/node_modules/har-validator/lib/schemas/cacheEntry.json +0 -31
- data/node_modules/har-validator/lib/schemas/content.json +0 -27
- data/node_modules/har-validator/lib/schemas/cookie.json +0 -34
- data/node_modules/har-validator/lib/schemas/creator.json +0 -18
- data/node_modules/har-validator/lib/schemas/entry.json +0 -51
- data/node_modules/har-validator/lib/schemas/har.json +0 -11
- data/node_modules/har-validator/lib/schemas/index.js +0 -49
- data/node_modules/har-validator/lib/schemas/log.json +0 -34
- data/node_modules/har-validator/lib/schemas/page.json +0 -30
- data/node_modules/har-validator/lib/schemas/pageTimings.json +0 -16
- data/node_modules/har-validator/lib/schemas/postData.json +0 -41
- data/node_modules/har-validator/lib/schemas/record.json +0 -18
- data/node_modules/har-validator/lib/schemas/request.json +0 -55
- data/node_modules/har-validator/lib/schemas/response.json +0 -52
- data/node_modules/har-validator/lib/schemas/timings.json +0 -40
- data/node_modules/har-validator/package.json +0 -120
- data/node_modules/has-ansi/index.js +0 -4
- data/node_modules/has-ansi/license +0 -21
- data/node_modules/has-ansi/package.json +0 -118
- data/node_modules/has-ansi/readme.md +0 -36
- data/node_modules/hawk/.npmignore +0 -20
- data/node_modules/hawk/.travis.yml +0 -5
- data/node_modules/hawk/LICENSE +0 -28
- data/node_modules/hawk/README.md +0 -634
- data/node_modules/hawk/bower.json +0 -24
- data/node_modules/hawk/component.json +0 -19
- data/node_modules/hawk/dist/client.js +0 -343
- data/node_modules/hawk/example/usage.js +0 -78
- data/node_modules/hawk/images/hawk.png +0 -0
- data/node_modules/hawk/images/logo.png +0 -0
- data/node_modules/hawk/lib/browser.js +0 -637
- data/node_modules/hawk/lib/client.js +0 -369
- data/node_modules/hawk/lib/crypto.js +0 -126
- data/node_modules/hawk/lib/index.js +0 -15
- data/node_modules/hawk/lib/server.js +0 -548
- data/node_modules/hawk/lib/utils.js +0 -184
- data/node_modules/hawk/package.json +0 -101
- data/node_modules/hawk/test/browser.js +0 -1492
- data/node_modules/hawk/test/client.js +0 -440
- data/node_modules/hawk/test/crypto.js +0 -70
- data/node_modules/hawk/test/index.js +0 -378
- data/node_modules/hawk/test/readme.js +0 -95
- data/node_modules/hawk/test/server.js +0 -1329
- data/node_modules/hawk/test/uri.js +0 -838
- data/node_modules/hawk/test/utils.js +0 -149
- data/node_modules/hoek/.npmignore +0 -18
- data/node_modules/hoek/.travis.yml +0 -7
- data/node_modules/hoek/CONTRIBUTING.md +0 -1
- data/node_modules/hoek/LICENSE +0 -31
- data/node_modules/hoek/README.md +0 -584
- data/node_modules/hoek/images/hoek.png +0 -0
- data/node_modules/hoek/lib/escape.js +0 -132
- data/node_modules/hoek/lib/index.js +0 -993
- data/node_modules/hoek/package.json +0 -96
- data/node_modules/hoek/test/escaper.js +0 -88
- data/node_modules/hoek/test/index.js +0 -2513
- data/node_modules/hoek/test/modules/ignore.txt +0 -0
- data/node_modules/hoek/test/modules/test1.js +0 -1
- data/node_modules/hoek/test/modules/test2.js +0 -1
- data/node_modules/hoek/test/modules/test3.js +0 -1
- data/node_modules/html-encoding-sniffer/LICENSE.txt +0 -19
- data/node_modules/html-encoding-sniffer/README.md +0 -38
- data/node_modules/html-encoding-sniffer/lib/html-encoding-sniffer.js +0 -302
- data/node_modules/html-encoding-sniffer/package.json +0 -98
- data/node_modules/http-signature/.dir-locals.el +0 -6
- data/node_modules/http-signature/.npmignore +0 -7
- data/node_modules/http-signature/CHANGES.md +0 -46
- data/node_modules/http-signature/LICENSE +0 -18
- data/node_modules/http-signature/README.md +0 -79
- data/node_modules/http-signature/http_signing.md +0 -363
- data/node_modules/http-signature/lib/index.js +0 -29
- data/node_modules/http-signature/lib/parser.js +0 -318
- data/node_modules/http-signature/lib/signer.js +0 -399
- data/node_modules/http-signature/lib/utils.js +0 -112
- data/node_modules/http-signature/lib/verify.js +0 -88
- data/node_modules/http-signature/package.json +0 -116
- data/node_modules/iconv-lite/.npmignore +0 -6
- data/node_modules/iconv-lite/.travis.yml +0 -22
- data/node_modules/iconv-lite/Changelog.md +0 -108
- data/node_modules/iconv-lite/LICENSE +0 -21
- data/node_modules/iconv-lite/README.md +0 -159
- data/node_modules/iconv-lite/encodings/dbcs-codec.js +0 -554
- data/node_modules/iconv-lite/encodings/dbcs-data.js +0 -176
- data/node_modules/iconv-lite/encodings/index.js +0 -22
- data/node_modules/iconv-lite/encodings/internal.js +0 -187
- data/node_modules/iconv-lite/encodings/sbcs-codec.js +0 -72
- data/node_modules/iconv-lite/encodings/sbcs-data-generated.js +0 -451
- data/node_modules/iconv-lite/encodings/sbcs-data.js +0 -169
- data/node_modules/iconv-lite/encodings/tables/big5-added.json +0 -122
- data/node_modules/iconv-lite/encodings/tables/cp936.json +0 -264
- data/node_modules/iconv-lite/encodings/tables/cp949.json +0 -273
- data/node_modules/iconv-lite/encodings/tables/cp950.json +0 -177
- data/node_modules/iconv-lite/encodings/tables/eucjp.json +0 -182
- data/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +0 -1
- data/node_modules/iconv-lite/encodings/tables/gbk-added.json +0 -55
- data/node_modules/iconv-lite/encodings/tables/shiftjis.json +0 -125
- data/node_modules/iconv-lite/encodings/utf16.js +0 -176
- data/node_modules/iconv-lite/encodings/utf7.js +0 -289
- data/node_modules/iconv-lite/lib/bom-handling.js +0 -52
- data/node_modules/iconv-lite/lib/extend-node.js +0 -214
- data/node_modules/iconv-lite/lib/index.d.ts +0 -31
- data/node_modules/iconv-lite/lib/index.js +0 -141
- data/node_modules/iconv-lite/lib/streams.js +0 -120
- data/node_modules/iconv-lite/package.json +0 -158
- data/node_modules/is-my-json-valid/.npmignore +0 -2
- data/node_modules/is-my-json-valid/.travis.yml +0 -3
- data/node_modules/is-my-json-valid/LICENSE +0 -21
- data/node_modules/is-my-json-valid/README.md +0 -173
- data/node_modules/is-my-json-valid/example.js +0 -18
- data/node_modules/is-my-json-valid/formats.js +0 -14
- data/node_modules/is-my-json-valid/index.js +0 -594
- data/node_modules/is-my-json-valid/package.json +0 -116
- data/node_modules/is-my-json-valid/require.js +0 -12
- data/node_modules/is-my-json-valid/test/fixtures/cosmic.js +0 -84
- data/node_modules/is-my-json-valid/test/json-schema-draft4/additionalItems.json +0 -82
- data/node_modules/is-my-json-valid/test/json-schema-draft4/additionalProperties.json +0 -88
- data/node_modules/is-my-json-valid/test/json-schema-draft4/allOf.json +0 -112
- data/node_modules/is-my-json-valid/test/json-schema-draft4/anyOf.json +0 -68
- data/node_modules/is-my-json-valid/test/json-schema-draft4/bignum.json +0 -107
- data/node_modules/is-my-json-valid/test/json-schema-draft4/default.json +0 -49
- data/node_modules/is-my-json-valid/test/json-schema-draft4/definitions.json +0 -32
- data/node_modules/is-my-json-valid/test/json-schema-draft4/dependencies.json +0 -113
- data/node_modules/is-my-json-valid/test/json-schema-draft4/enum.json +0 -72
- data/node_modules/is-my-json-valid/test/json-schema-draft4/format.json +0 -143
- data/node_modules/is-my-json-valid/test/json-schema-draft4/items.json +0 -46
- data/node_modules/is-my-json-valid/test/json-schema-draft4/maxItems.json +0 -28
- data/node_modules/is-my-json-valid/test/json-schema-draft4/maxLength.json +0 -28
- data/node_modules/is-my-json-valid/test/json-schema-draft4/maxProperties.json +0 -28
- data/node_modules/is-my-json-valid/test/json-schema-draft4/maximum.json +0 -42
- data/node_modules/is-my-json-valid/test/json-schema-draft4/minItems.json +0 -28
- data/node_modules/is-my-json-valid/test/json-schema-draft4/minLength.json +0 -28
- data/node_modules/is-my-json-valid/test/json-schema-draft4/minProperties.json +0 -28
- data/node_modules/is-my-json-valid/test/json-schema-draft4/minimum.json +0 -42
- data/node_modules/is-my-json-valid/test/json-schema-draft4/multipleOf.json +0 -96
- data/node_modules/is-my-json-valid/test/json-schema-draft4/not.json +0 -96
- data/node_modules/is-my-json-valid/test/json-schema-draft4/nullAndFormat.json +0 -18
- data/node_modules/is-my-json-valid/test/json-schema-draft4/nullAndObject.json +0 -18
- data/node_modules/is-my-json-valid/test/json-schema-draft4/oneOf.json +0 -68
- data/node_modules/is-my-json-valid/test/json-schema-draft4/pattern.json +0 -23
- data/node_modules/is-my-json-valid/test/json-schema-draft4/patternProperties.json +0 -110
- data/node_modules/is-my-json-valid/test/json-schema-draft4/properties.json +0 -92
- data/node_modules/is-my-json-valid/test/json-schema-draft4/ref.json +0 -128
- data/node_modules/is-my-json-valid/test/json-schema-draft4/refRemote.json +0 -74
- data/node_modules/is-my-json-valid/test/json-schema-draft4/required.json +0 -39
- data/node_modules/is-my-json-valid/test/json-schema-draft4/type.json +0 -330
- data/node_modules/is-my-json-valid/test/json-schema-draft4/uniqueItems.json +0 -79
- data/node_modules/is-my-json-valid/test/json-schema.js +0 -23
- data/node_modules/is-my-json-valid/test/misc.js +0 -471
- data/node_modules/is-property/.npmignore +0 -17
- data/node_modules/is-property/LICENSE +0 -22
- data/node_modules/is-property/README.md +0 -28
- data/node_modules/is-property/is-property.js +0 -5
- data/node_modules/is-property/package.json +0 -92
- data/node_modules/is-typedarray/LICENSE.md +0 -18
- data/node_modules/is-typedarray/README.md +0 -16
- data/node_modules/is-typedarray/index.js +0 -41
- data/node_modules/is-typedarray/package.json +0 -90
- data/node_modules/is-typedarray/test.js +0 -34
- data/node_modules/isstream/.jshintrc +0 -59
- data/node_modules/isstream/.npmignore +0 -1
- data/node_modules/isstream/.travis.yml +0 -12
- data/node_modules/isstream/LICENSE.md +0 -11
- data/node_modules/isstream/README.md +0 -66
- data/node_modules/isstream/isstream.js +0 -27
- data/node_modules/isstream/package.json +0 -93
- data/node_modules/isstream/test.js +0 -168
- data/node_modules/jodid25519/.npmignore +0 -11
- data/node_modules/jodid25519/.travis.yml +0 -7
- data/node_modules/jodid25519/AUTHORS.md +0 -3
- data/node_modules/jodid25519/LICENSE +0 -23
- data/node_modules/jodid25519/README.md +0 -51
- data/node_modules/jodid25519/almond.0 +0 -42
- data/node_modules/jodid25519/almond.1 +0 -13
- data/node_modules/jodid25519/index.js +0 -35
- data/node_modules/jodid25519/jsdoc.json +0 -19
- data/node_modules/jodid25519/lib/core.js +0 -481
- data/node_modules/jodid25519/lib/curve255.js +0 -221
- data/node_modules/jodid25519/lib/dh.js +0 -111
- data/node_modules/jodid25519/lib/eddsa.js +0 -573
- data/node_modules/jodid25519/lib/utils.js +0 -198
- data/node_modules/jodid25519/package.json +0 -104
- data/node_modules/jquery/AUTHORS.txt +0 -295
- data/node_modules/jquery/LICENSE.txt +0 -36
- data/node_modules/jquery/README.md +0 -65
- data/node_modules/jquery/bower.json +0 -14
- data/node_modules/jquery/dist/core.js +0 -482
- data/node_modules/jquery/dist/jquery.js +0 -10220
- data/node_modules/jquery/dist/jquery.min.js +0 -4
- data/node_modules/jquery/dist/jquery.min.map +0 -1
- data/node_modules/jquery/dist/jquery.slim.js +0 -8107
- data/node_modules/jquery/dist/jquery.slim.min.js +0 -4
- data/node_modules/jquery/dist/jquery.slim.min.map +0 -1
- data/node_modules/jquery/external/sizzle/LICENSE.txt +0 -36
- data/node_modules/jquery/external/sizzle/dist/sizzle.js +0 -2272
- data/node_modules/jquery/external/sizzle/dist/sizzle.min.js +0 -3
- data/node_modules/jquery/external/sizzle/dist/sizzle.min.map +0 -1
- data/node_modules/jquery/package.json +0 -169
- data/node_modules/jquery/src/.eslintrc.json +0 -18
- data/node_modules/jquery/src/ajax.js +0 -855
- data/node_modules/jquery/src/ajax/jsonp.js +0 -102
- data/node_modules/jquery/src/ajax/load.js +0 -76
- data/node_modules/jquery/src/ajax/parseXML.js +0 -30
- data/node_modules/jquery/src/ajax/script.js +0 -77
- data/node_modules/jquery/src/ajax/var/location.js +0 -5
- data/node_modules/jquery/src/ajax/var/nonce.js +0 -7
- data/node_modules/jquery/src/ajax/var/rquery.js +0 -5
- data/node_modules/jquery/src/ajax/xhr.js +0 -169
- data/node_modules/jquery/src/attributes.js +0 -13
- data/node_modules/jquery/src/attributes/attr.js +0 -140
- data/node_modules/jquery/src/attributes/classes.js +0 -174
- data/node_modules/jquery/src/attributes/prop.js +0 -143
- data/node_modules/jquery/src/attributes/support.js +0 -33
- data/node_modules/jquery/src/attributes/val.js +0 -188
- data/node_modules/jquery/src/callbacks.js +0 -234
- data/node_modules/jquery/src/core.js +0 -482
- data/node_modules/jquery/src/core/DOMEval.js +0 -16
- data/node_modules/jquery/src/core/access.js +0 -70
- data/node_modules/jquery/src/core/init.js +0 -127
- data/node_modules/jquery/src/core/parseHTML.js +0 -65
- data/node_modules/jquery/src/core/ready-no-deferred.js +0 -105
- data/node_modules/jquery/src/core/ready.js +0 -95
- data/node_modules/jquery/src/core/readyException.js +0 -13
- data/node_modules/jquery/src/core/stripAndCollapse.js +0 -14
- data/node_modules/jquery/src/core/support.js +0 -20
- data/node_modules/jquery/src/core/var/rsingleTag.js +0 -6
- data/node_modules/jquery/src/css.js +0 -426
- data/node_modules/jquery/src/css/addGetHookIf.js +0 -26
- data/node_modules/jquery/src/css/adjustCSS.js +0 -71
- data/node_modules/jquery/src/css/curCSS.js +0 -59
- data/node_modules/jquery/src/css/hiddenVisibleSelectors.js +0 -15
- data/node_modules/jquery/src/css/showHide.js +0 -105
- data/node_modules/jquery/src/css/support.js +0 -89
- data/node_modules/jquery/src/css/var/cssExpand.js +0 -5
- data/node_modules/jquery/src/css/var/getStyles.js +0 -17
- data/node_modules/jquery/src/css/var/isHiddenWithinTree.js +0 -34
- data/node_modules/jquery/src/css/var/rmargin.js +0 -5
- data/node_modules/jquery/src/css/var/rnumnonpx.js +0 -7
- data/node_modules/jquery/src/css/var/swap.js +0 -26
- data/node_modules/jquery/src/data.js +0 -179
- data/node_modules/jquery/src/data/Data.js +0 -161
- data/node_modules/jquery/src/data/var/acceptData.js +0 -19
- data/node_modules/jquery/src/data/var/dataPriv.js +0 -7
- data/node_modules/jquery/src/data/var/dataUser.js +0 -7
- data/node_modules/jquery/src/deferred.js +0 -389
- data/node_modules/jquery/src/deferred/exceptionHook.js +0 -21
- data/node_modules/jquery/src/deprecated.js +0 -30
- data/node_modules/jquery/src/dimensions.js +0 -56
- data/node_modules/jquery/src/effects.js +0 -693
- data/node_modules/jquery/src/effects/Tween.js +0 -123
- data/node_modules/jquery/src/effects/animatedSelector.js +0 -15
- data/node_modules/jquery/src/event.js +0 -745
- data/node_modules/jquery/src/event/ajax.js +0 -22
- data/node_modules/jquery/src/event/alias.js +0 -29
- data/node_modules/jquery/src/event/focusin.js +0 -55
- data/node_modules/jquery/src/event/support.js +0 -11
- data/node_modules/jquery/src/event/trigger.js +0 -185
- data/node_modules/jquery/src/exports/amd.js +0 -26
- data/node_modules/jquery/src/exports/global.js +0 -34
- data/node_modules/jquery/src/jquery.js +0 -41
- data/node_modules/jquery/src/manipulation.js +0 -486
- data/node_modules/jquery/src/manipulation/_evalUrl.js +0 -23
- data/node_modules/jquery/src/manipulation/buildFragment.js +0 -104
- data/node_modules/jquery/src/manipulation/getAll.js +0 -31
- data/node_modules/jquery/src/manipulation/setGlobalEval.js +0 -22
- data/node_modules/jquery/src/manipulation/support.js +0 -35
- data/node_modules/jquery/src/manipulation/var/rcheckableType.js +0 -5
- data/node_modules/jquery/src/manipulation/var/rscriptType.js +0 -5
- data/node_modules/jquery/src/manipulation/var/rtagName.js +0 -5
- data/node_modules/jquery/src/manipulation/wrapMap.js +0 -29
- data/node_modules/jquery/src/offset.js +0 -232
- data/node_modules/jquery/src/queue.js +0 -145
- data/node_modules/jquery/src/queue/delay.js +0 -24
- data/node_modules/jquery/src/selector-native.js +0 -237
- data/node_modules/jquery/src/selector-sizzle.js +0 -19
- data/node_modules/jquery/src/selector.js +0 -3
- data/node_modules/jquery/src/serialize.js +0 -130
- data/node_modules/jquery/src/traversing.js +0 -178
- data/node_modules/jquery/src/traversing/findFilter.js +0 -106
- data/node_modules/jquery/src/traversing/var/dir.js +0 -22
- data/node_modules/jquery/src/traversing/var/rneedsContext.js +0 -8
- data/node_modules/jquery/src/traversing/var/siblings.js +0 -17
- data/node_modules/jquery/src/var/ObjectFunctionString.js +0 -7
- data/node_modules/jquery/src/var/arr.js +0 -5
- data/node_modules/jquery/src/var/class2type.js +0 -6
- data/node_modules/jquery/src/var/concat.js +0 -7
- data/node_modules/jquery/src/var/document.js +0 -5
- data/node_modules/jquery/src/var/documentElement.js +0 -7
- data/node_modules/jquery/src/var/fnToString.js +0 -7
- data/node_modules/jquery/src/var/getProto.js +0 -5
- data/node_modules/jquery/src/var/hasOwn.js +0 -7
- data/node_modules/jquery/src/var/indexOf.js +0 -7
- data/node_modules/jquery/src/var/pnum.js +0 -5
- data/node_modules/jquery/src/var/push.js +0 -7
- data/node_modules/jquery/src/var/rcssNum.js +0 -9
- data/node_modules/jquery/src/var/rnothtmlwhite.js +0 -8
- data/node_modules/jquery/src/var/slice.js +0 -7
- data/node_modules/jquery/src/var/support.js +0 -6
- data/node_modules/jquery/src/var/toString.js +0 -7
- data/node_modules/jquery/src/wrap.js +0 -77
- data/node_modules/jsbn/.npmignore +0 -2
- data/node_modules/jsbn/LICENSE +0 -40
- data/node_modules/jsbn/README.md +0 -175
- data/node_modules/jsbn/example.html +0 -12
- data/node_modules/jsbn/example.js +0 -3
- data/node_modules/jsbn/index.js +0 -1358
- data/node_modules/jsbn/package.json +0 -87
- data/node_modules/jsdom-global/.npmignore +0 -1
- data/node_modules/jsdom-global/.travis.yml +0 -6
- data/node_modules/jsdom-global/HISTORY.md +0 -85
- data/node_modules/jsdom-global/README.md +0 -137
- data/node_modules/jsdom-global/browser.js +0 -10
- data/node_modules/jsdom-global/index.js +0 -46
- data/node_modules/jsdom-global/keys.js +0 -187
- data/node_modules/jsdom-global/package.json +0 -95
- data/node_modules/jsdom-global/register.js +0 -1
- data/node_modules/jsdom-global/test.js +0 -22
- data/node_modules/jsdom/Changelog.md +0 -1254
- data/node_modules/jsdom/LICENSE.txt +0 -22
- data/node_modules/jsdom/README.md +0 -592
- data/node_modules/jsdom/lib/jsdom.js +0 -456
- data/node_modules/jsdom/lib/jsdom/browser/Window.js +0 -502
- data/node_modules/jsdom/lib/jsdom/browser/default-stylesheet.js +0 -1129
- data/node_modules/jsdom/lib/jsdom/browser/documentAdapter.js +0 -73
- data/node_modules/jsdom/lib/jsdom/browser/documentfeatures.js +0 -47
- data/node_modules/jsdom/lib/jsdom/browser/domtohtml.js +0 -19
- data/node_modules/jsdom/lib/jsdom/browser/htmltodom.js +0 -323
- data/node_modules/jsdom/lib/jsdom/browser/not-implemented.js +0 -13
- data/node_modules/jsdom/lib/jsdom/browser/resource-loader.js +0 -275
- data/node_modules/jsdom/lib/jsdom/level2/style.js +0 -69
- data/node_modules/jsdom/lib/jsdom/level3/xpath.js +0 -1874
- data/node_modules/jsdom/lib/jsdom/living/attributes.js +0 -468
- data/node_modules/jsdom/lib/jsdom/living/attributes/Attr-impl.js +0 -87
- data/node_modules/jsdom/lib/jsdom/living/blob-symbols.js +0 -6
- data/node_modules/jsdom/lib/jsdom/living/blob.js +0 -73
- data/node_modules/jsdom/lib/jsdom/living/dom-token-list.js +0 -222
- data/node_modules/jsdom/lib/jsdom/living/domparsing/DOMParser-impl.js +0 -61
- data/node_modules/jsdom/lib/jsdom/living/events/CustomEvent-impl.js +0 -18
- data/node_modules/jsdom/lib/jsdom/living/events/ErrorEvent-impl.js +0 -11
- data/node_modules/jsdom/lib/jsdom/living/events/Event-impl.js +0 -77
- data/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js +0 -303
- data/node_modules/jsdom/lib/jsdom/living/events/FocusEvent-impl.js +0 -4
- data/node_modules/jsdom/lib/jsdom/living/events/HashChangeEvent-impl.js +0 -11
- data/node_modules/jsdom/lib/jsdom/living/events/KeyboardEvent-impl.js +0 -21
- data/node_modules/jsdom/lib/jsdom/living/events/MessageEvent-impl.js +0 -22
- data/node_modules/jsdom/lib/jsdom/living/events/MouseEvent-impl.js +0 -28
- data/node_modules/jsdom/lib/jsdom/living/events/PopStateEvent-impl.js +0 -4
- data/node_modules/jsdom/lib/jsdom/living/events/ProgressEvent-impl.js +0 -11
- data/node_modules/jsdom/lib/jsdom/living/events/TouchEvent-impl.js +0 -11
- data/node_modules/jsdom/lib/jsdom/living/events/UIEvent-impl.js +0 -19
- data/node_modules/jsdom/lib/jsdom/living/file-reader.js +0 -133
- data/node_modules/jsdom/lib/jsdom/living/file-symbols.js +0 -4
- data/node_modules/jsdom/lib/jsdom/living/file.js +0 -22
- data/node_modules/jsdom/lib/jsdom/living/filelist-symbols.js +0 -3
- data/node_modules/jsdom/lib/jsdom/living/filelist.js +0 -21
- data/node_modules/jsdom/lib/jsdom/living/form-data-symbols.js +0 -3
- data/node_modules/jsdom/lib/jsdom/living/generated/.gitkeep +0 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/AddEventListenerOptions.js +0 -34
- data/node_modules/jsdom/lib/jsdom/living/generated/Attr.js +0 -169
- data/node_modules/jsdom/lib/jsdom/living/generated/CharacterData.js +0 -189
- data/node_modules/jsdom/lib/jsdom/living/generated/ChildNode.js +0 -92
- data/node_modules/jsdom/lib/jsdom/living/generated/Comment.js +0 -92
- data/node_modules/jsdom/lib/jsdom/living/generated/CustomEvent.js +0 -122
- data/node_modules/jsdom/lib/jsdom/living/generated/CustomEventInit.js +0 -34
- data/node_modules/jsdom/lib/jsdom/living/generated/DOMImplementation.js +0 -143
- data/node_modules/jsdom/lib/jsdom/living/generated/DOMParser.js +0 -97
- data/node_modules/jsdom/lib/jsdom/living/generated/Document.js +0 -712
- data/node_modules/jsdom/lib/jsdom/living/generated/DocumentFragment.js +0 -91
- data/node_modules/jsdom/lib/jsdom/living/generated/DocumentType.js +0 -110
- data/node_modules/jsdom/lib/jsdom/living/generated/Element.js +0 -552
- data/node_modules/jsdom/lib/jsdom/living/generated/ElementCSSInlineStyle.js +0 -88
- data/node_modules/jsdom/lib/jsdom/living/generated/ElementContentEditable.js +0 -77
- data/node_modules/jsdom/lib/jsdom/living/generated/ErrorEvent.js +0 -137
- data/node_modules/jsdom/lib/jsdom/living/generated/ErrorEventInit.js +0 -56
- data/node_modules/jsdom/lib/jsdom/living/generated/Event.js +0 -251
- data/node_modules/jsdom/lib/jsdom/living/generated/EventInit.js +0 -40
- data/node_modules/jsdom/lib/jsdom/living/generated/EventListenerOptions.js +0 -32
- data/node_modules/jsdom/lib/jsdom/living/generated/EventModifierInit.js +0 -146
- data/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js +0 -130
- data/node_modules/jsdom/lib/jsdom/living/generated/FocusEvent.js +0 -104
- data/node_modules/jsdom/lib/jsdom/living/generated/FocusEventInit.js +0 -34
- data/node_modules/jsdom/lib/jsdom/living/generated/FormData.js +0 -179
- data/node_modules/jsdom/lib/jsdom/living/generated/GlobalEventHandlers.js +0 -770
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLAnchorElement.js +0 -228
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLAppletElement.js +0 -225
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLAreaElement.js +0 -167
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLAudioElement.js +0 -82
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLBRElement.js +0 -95
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLBaseElement.js +0 -107
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLBodyElement.js +0 -164
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLButtonElement.js +0 -189
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLCanvasElement.js +0 -181
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDListElement.js +0 -98
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDataElement.js +0 -95
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDataListElement.js +0 -82
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDialogElement.js +0 -98
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDirectoryElement.js +0 -98
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDivElement.js +0 -95
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLElement.js +0 -205
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLEmbedElement.js +0 -159
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFieldSetElement.js +0 -119
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFontElement.js +0 -121
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFormElement.js +0 -211
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFrameElement.js +0 -203
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFrameSetElement.js +0 -112
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHRElement.js +0 -150
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHeadElement.js +0 -82
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHeadingElement.js +0 -95
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHtmlElement.js +0 -95
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHyperlinkElementUtils.js +0 -205
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLIFrameElement.js +0 -278
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLImageElement.js +0 -326
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLInputElement.js +0 -583
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLLIElement.js +0 -108
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLLabelElement.js +0 -103
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLLegendElement.js +0 -103
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLLinkElement.js +0 -206
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMapElement.js +0 -103
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMediaElement.js +0 -505
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMenuElement.js +0 -124
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMetaElement.js +0 -134
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMeterElement.js +0 -82
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLModElement.js +0 -108
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOListElement.js +0 -140
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLObjectElement.js +0 -309
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOptGroupElement.js +0 -111
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOptionElement.js +0 -178
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOutputElement.js +0 -95
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLParagraphElement.js +0 -95
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLParamElement.js +0 -134
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLPreElement.js +0 -95
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLProgressElement.js +0 -82
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLQuoteElement.js +0 -95
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLScriptElement.js +0 -204
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLSelectElement.js +0 -260
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLSourceElement.js +0 -146
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLSpanElement.js +0 -82
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLStyleElement.js +0 -125
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableCaptionElement.js +0 -95
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableCellElement.js +0 -245
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableColElement.js +0 -161
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableDataCellElement.js +0 -95
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableElement.js +0 -357
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableHeaderCellElement.js +0 -121
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableRowElement.js +0 -202
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableSectionElement.js +0 -173
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTemplateElement.js +0 -90
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTextAreaElement.js +0 -415
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTimeElement.js +0 -95
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTitleElement.js +0 -94
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTrackElement.js +0 -193
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLUListElement.js +0 -111
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLUnknownElement.js +0 -82
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLVideoElement.js +0 -138
- data/node_modules/jsdom/lib/jsdom/living/generated/HashChangeEvent.js +0 -113
- data/node_modules/jsdom/lib/jsdom/living/generated/HashChangeEventInit.js +0 -38
- data/node_modules/jsdom/lib/jsdom/living/generated/History.js +0 -179
- data/node_modules/jsdom/lib/jsdom/living/generated/KeyboardEvent.js +0 -269
- data/node_modules/jsdom/lib/jsdom/living/generated/KeyboardEventInit.js +0 -90
- data/node_modules/jsdom/lib/jsdom/living/generated/LinkStyle.js +0 -85
- data/node_modules/jsdom/lib/jsdom/living/generated/Location.js +0 -227
- data/node_modules/jsdom/lib/jsdom/living/generated/MessageEvent.js +0 -164
- data/node_modules/jsdom/lib/jsdom/living/generated/MessageEventInit.js +0 -56
- data/node_modules/jsdom/lib/jsdom/living/generated/MouseEvent.js +0 -234
- data/node_modules/jsdom/lib/jsdom/living/generated/MouseEventInit.js +0 -82
- data/node_modules/jsdom/lib/jsdom/living/generated/Navigator.js +0 -96
- data/node_modules/jsdom/lib/jsdom/living/generated/NavigatorConcurrentHardware.js +0 -85
- data/node_modules/jsdom/lib/jsdom/living/generated/NavigatorCookies.js +0 -85
- data/node_modules/jsdom/lib/jsdom/living/generated/NavigatorID.js +0 -149
- data/node_modules/jsdom/lib/jsdom/living/generated/NavigatorLanguage.js +0 -93
- data/node_modules/jsdom/lib/jsdom/living/generated/NavigatorOnLine.js +0 -85
- data/node_modules/jsdom/lib/jsdom/living/generated/NavigatorPlugins.js +0 -88
- data/node_modules/jsdom/lib/jsdom/living/generated/Node.js +0 -512
- data/node_modules/jsdom/lib/jsdom/living/generated/NonDocumentTypeChildNode.js +0 -93
- data/node_modules/jsdom/lib/jsdom/living/generated/NonElementParentNode.js +0 -92
- data/node_modules/jsdom/lib/jsdom/living/generated/ParentNode.js +0 -139
- data/node_modules/jsdom/lib/jsdom/living/generated/PopStateEvent.js +0 -105
- data/node_modules/jsdom/lib/jsdom/living/generated/PopStateEventInit.js +0 -32
- data/node_modules/jsdom/lib/jsdom/living/generated/ProcessingInstruction.js +0 -90
- data/node_modules/jsdom/lib/jsdom/living/generated/ProgressEvent.js +0 -122
- data/node_modules/jsdom/lib/jsdom/living/generated/ProgressEventInit.js +0 -50
- data/node_modules/jsdom/lib/jsdom/living/generated/ScrollIntoViewOptions.js +0 -42
- data/node_modules/jsdom/lib/jsdom/living/generated/ScrollOptions.js +0 -32
- data/node_modules/jsdom/lib/jsdom/living/generated/Text.js +0 -107
- data/node_modules/jsdom/lib/jsdom/living/generated/TouchEvent.js +0 -138
- data/node_modules/jsdom/lib/jsdom/living/generated/TreeWalker.js +0 -189
- data/node_modules/jsdom/lib/jsdom/living/generated/UIEvent.js +0 -134
- data/node_modules/jsdom/lib/jsdom/living/generated/UIEventInit.js +0 -42
- data/node_modules/jsdom/lib/jsdom/living/generated/Window.js +0 -1
- data/node_modules/jsdom/lib/jsdom/living/generated/WindowEventHandlers.js +0 -242
- data/node_modules/jsdom/lib/jsdom/living/generated/XMLDocument.js +0 -82
- data/node_modules/jsdom/lib/jsdom/living/generated/utils.js +0 -40
- data/node_modules/jsdom/lib/jsdom/living/helpers/document-base-url.js +0 -53
- data/node_modules/jsdom/lib/jsdom/living/helpers/focusing.js +0 -74
- data/node_modules/jsdom/lib/jsdom/living/helpers/form-controls.js +0 -43
- data/node_modules/jsdom/lib/jsdom/living/helpers/internal-constants.js +0 -13
- data/node_modules/jsdom/lib/jsdom/living/helpers/ordered-set-parser.js +0 -5
- data/node_modules/jsdom/lib/jsdom/living/helpers/proxied-window-event-handlers.js +0 -11
- data/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js +0 -68
- data/node_modules/jsdom/lib/jsdom/living/helpers/selectors.js +0 -30
- data/node_modules/jsdom/lib/jsdom/living/helpers/stylesheets.js +0 -78
- data/node_modules/jsdom/lib/jsdom/living/helpers/traversal.js +0 -51
- data/node_modules/jsdom/lib/jsdom/living/helpers/validate-names.js +0 -62
- data/node_modules/jsdom/lib/jsdom/living/html-collection.js +0 -109
- data/node_modules/jsdom/lib/jsdom/living/index.js +0 -57
- data/node_modules/jsdom/lib/jsdom/living/named-properties-window.js +0 -139
- data/node_modules/jsdom/lib/jsdom/living/navigator/Navigator-impl.js +0 -24
- data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorConcurrentHardware-impl.js +0 -8
- data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorCookies-impl.js +0 -7
- data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorID-impl.js +0 -37
- data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorLanguage-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorOnLine-impl.js +0 -7
- data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorPlugins-impl.js +0 -7
- data/node_modules/jsdom/lib/jsdom/living/node-document-position.js +0 -10
- data/node_modules/jsdom/lib/jsdom/living/node-filter.js +0 -47
- data/node_modules/jsdom/lib/jsdom/living/node-iterator.js +0 -232
- data/node_modules/jsdom/lib/jsdom/living/node-list.js +0 -85
- data/node_modules/jsdom/lib/jsdom/living/node-type.js +0 -16
- data/node_modules/jsdom/lib/jsdom/living/node.js +0 -189
- data/node_modules/jsdom/lib/jsdom/living/nodes/CharacterData-impl.js +0 -78
- data/node_modules/jsdom/lib/jsdom/living/nodes/ChildNode-impl.js +0 -15
- data/node_modules/jsdom/lib/jsdom/living/nodes/Comment-impl.js +0 -17
- data/node_modules/jsdom/lib/jsdom/living/nodes/DOMImplementation-impl.js +0 -176
- data/node_modules/jsdom/lib/jsdom/living/nodes/Document-impl.js +0 -777
- data/node_modules/jsdom/lib/jsdom/living/nodes/DocumentFragment-impl.js +0 -21
- data/node_modules/jsdom/lib/jsdom/living/nodes/DocumentType-impl.js +0 -26
- data/node_modules/jsdom/lib/jsdom/living/nodes/Element-impl.js +0 -491
- data/node_modules/jsdom/lib/jsdom/living/nodes/ElementCSSInlineStyle-impl.js +0 -7
- data/node_modules/jsdom/lib/jsdom/living/nodes/ElementContentEditable-impl.js +0 -7
- data/node_modules/jsdom/lib/jsdom/living/nodes/GlobalEventHandlers-impl.js +0 -7
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLAnchorElement-impl.js +0 -25
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLAppletElement-impl.js +0 -26
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLAreaElement-impl.js +0 -18
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLAudioElement-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLBRElement-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLBaseElement-impl.js +0 -27
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLBodyElement-impl.js +0 -30
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLButtonElement-impl.js +0 -58
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLCanvasElement-impl.js +0 -134
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDListElement-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDataElement-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDataListElement-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDialogElement-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDirectoryElement-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDivElement-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js +0 -144
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLEmbedElement-impl.js +0 -18
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFieldSetElement-impl.js +0 -14
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFontElement-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFormElement-impl.js +0 -125
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFrameElement-impl.js +0 -181
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFrameSetElement-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHRElement-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHeadElement-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHeadingElement-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHtmlElement-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHyperlinkElementUtils-impl.js +0 -275
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLIFrameElement-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLImageElement-impl.js +0 -93
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLInputElement-impl.js +0 -396
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLIElement-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLabelElement-impl.js +0 -72
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLegendElement-impl.js +0 -14
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLinkElement-impl.js +0 -76
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMapElement-impl.js +0 -13
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMediaElement-impl.js +0 -140
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMenuElement-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMetaElement-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMeterElement-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLModElement-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOListElement-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLObjectElement-impl.js +0 -35
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOptGroupElement-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOptionElement-impl.js +0 -122
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOutputElement-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLParagraphElement-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLParamElement-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLPreElement-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLProgressElement-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLQuoteElement-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js +0 -139
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLSelectElement-impl.js +0 -174
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLSourceElement-impl.js +0 -18
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLSpanElement-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLStyleElement-impl.js +0 -33
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableCaptionElement-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableCellElement-impl.js +0 -56
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableColElement-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableDataCellElement-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableElement-impl.js +0 -148
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableHeaderCellElement-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableRowElement-impl.js +0 -70
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableSectionElement-impl.js +0 -54
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTemplateElement-impl.js +0 -33
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTextAreaElement-impl.js +0 -184
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTimeElement-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTitleElement-impl.js +0 -18
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTrackElement-impl.js +0 -21
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLUListElement-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLUnknownElement-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLVideoElement-impl.js +0 -26
- data/node_modules/jsdom/lib/jsdom/living/nodes/LinkStyle-impl.js +0 -16
- data/node_modules/jsdom/lib/jsdom/living/nodes/Node-impl.js +0 -475
- data/node_modules/jsdom/lib/jsdom/living/nodes/NonDocumentTypeChildNode-impl.js +0 -28
- data/node_modules/jsdom/lib/jsdom/living/nodes/NonElementParentNode-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/nodes/ParentNode-impl.js +0 -91
- data/node_modules/jsdom/lib/jsdom/living/nodes/ProcessingInstruction-impl.js +0 -22
- data/node_modules/jsdom/lib/jsdom/living/nodes/Text-impl.js +0 -48
- data/node_modules/jsdom/lib/jsdom/living/nodes/WindowEventHandlers-impl.js +0 -9
- data/node_modules/jsdom/lib/jsdom/living/nodes/XMLDocument-impl.js +0 -4
- data/node_modules/jsdom/lib/jsdom/living/post-message.js +0 -36
- data/node_modules/jsdom/lib/jsdom/living/register-elements.js +0 -306
- data/node_modules/jsdom/lib/jsdom/living/traversal/TreeWalker-impl.js +0 -257
- data/node_modules/jsdom/lib/jsdom/living/window/History-impl.js +0 -145
- data/node_modules/jsdom/lib/jsdom/living/window/History.idl +0 -12
- data/node_modules/jsdom/lib/jsdom/living/window/Location-impl.js +0 -235
- data/node_modules/jsdom/lib/jsdom/living/window/navigation.js +0 -103
- data/node_modules/jsdom/lib/jsdom/living/xhr-sync-worker.js +0 -50
- data/node_modules/jsdom/lib/jsdom/living/xhr-utils.js +0 -327
- data/node_modules/jsdom/lib/jsdom/living/xhr/FormData-impl.js +0 -182
- data/node_modules/jsdom/lib/jsdom/living/xmlhttprequest-event-target.js +0 -23
- data/node_modules/jsdom/lib/jsdom/living/xmlhttprequest-symbols.js +0 -4
- data/node_modules/jsdom/lib/jsdom/living/xmlhttprequest-upload.js +0 -17
- data/node_modules/jsdom/lib/jsdom/living/xmlhttprequest.js +0 -1016
- data/node_modules/jsdom/lib/jsdom/named-properties-tracker.js +0 -156
- data/node_modules/jsdom/lib/jsdom/utils.js +0 -242
- data/node_modules/jsdom/lib/jsdom/virtual-console.js +0 -34
- data/node_modules/jsdom/lib/jsdom/vm-shim.js +0 -106
- data/node_modules/jsdom/lib/jsdom/web-idl/DOMException.js +0 -41
- data/node_modules/jsdom/lib/jsdom/web-idl/dom-exception-table.json +0 -134
- data/node_modules/jsdom/node_modules/request/CHANGELOG.md +0 -662
- data/node_modules/jsdom/node_modules/request/LICENSE +0 -55
- data/node_modules/jsdom/node_modules/request/README.md +0 -1098
- data/node_modules/jsdom/node_modules/request/index.js +0 -156
- data/node_modules/jsdom/node_modules/request/lib/auth.js +0 -168
- data/node_modules/jsdom/node_modules/request/lib/cookies.js +0 -39
- data/node_modules/jsdom/node_modules/request/lib/getProxyFromURI.js +0 -79
- data/node_modules/jsdom/node_modules/request/lib/har.js +0 -215
- data/node_modules/jsdom/node_modules/request/lib/helpers.js +0 -65
- data/node_modules/jsdom/node_modules/request/lib/multipart.js +0 -112
- data/node_modules/jsdom/node_modules/request/lib/oauth.js +0 -147
- data/node_modules/jsdom/node_modules/request/lib/querystring.js +0 -51
- data/node_modules/jsdom/node_modules/request/lib/redirect.js +0 -157
- data/node_modules/jsdom/node_modules/request/lib/tunnel.js +0 -176
- data/node_modules/jsdom/node_modules/request/package.json +0 -163
- data/node_modules/jsdom/node_modules/request/request.js +0 -1475
- data/node_modules/jsdom/package.json +0 -184
- data/node_modules/json-schema/README.md +0 -5
- data/node_modules/json-schema/draft-00/hyper-schema +0 -68
- data/node_modules/json-schema/draft-00/json-ref +0 -26
- data/node_modules/json-schema/draft-00/links +0 -33
- data/node_modules/json-schema/draft-00/schema +0 -155
- data/node_modules/json-schema/draft-01/hyper-schema +0 -68
- data/node_modules/json-schema/draft-01/json-ref +0 -26
- data/node_modules/json-schema/draft-01/links +0 -33
- data/node_modules/json-schema/draft-01/schema +0 -155
- data/node_modules/json-schema/draft-02/hyper-schema +0 -68
- data/node_modules/json-schema/draft-02/json-ref +0 -26
- data/node_modules/json-schema/draft-02/links +0 -35
- data/node_modules/json-schema/draft-02/schema +0 -166
- data/node_modules/json-schema/draft-03/examples/address +0 -20
- data/node_modules/json-schema/draft-03/examples/calendar +0 -53
- data/node_modules/json-schema/draft-03/examples/card +0 -105
- data/node_modules/json-schema/draft-03/examples/geo +0 -8
- data/node_modules/json-schema/draft-03/examples/interfaces +0 -23
- data/node_modules/json-schema/draft-03/hyper-schema +0 -60
- data/node_modules/json-schema/draft-03/json-ref +0 -26
- data/node_modules/json-schema/draft-03/links +0 -35
- data/node_modules/json-schema/draft-03/schema +0 -174
- data/node_modules/json-schema/draft-04/hyper-schema +0 -60
- data/node_modules/json-schema/draft-04/links +0 -41
- data/node_modules/json-schema/draft-04/schema +0 -189
- data/node_modules/json-schema/draft-zyp-json-schema-03.xml +0 -1120
- data/node_modules/json-schema/draft-zyp-json-schema-04.xml +0 -1072
- data/node_modules/json-schema/lib/links.js +0 -66
- data/node_modules/json-schema/lib/validate.js +0 -273
- data/node_modules/json-schema/package.json +0 -100
- data/node_modules/json-schema/test/tests.js +0 -95
- data/node_modules/json-stringify-safe/.npmignore +0 -1
- data/node_modules/json-stringify-safe/CHANGELOG.md +0 -14
- data/node_modules/json-stringify-safe/LICENSE +0 -15
- data/node_modules/json-stringify-safe/Makefile +0 -35
- data/node_modules/json-stringify-safe/README.md +0 -52
- data/node_modules/json-stringify-safe/package.json +0 -102
- data/node_modules/json-stringify-safe/stringify.js +0 -27
- data/node_modules/json-stringify-safe/test/mocha.opts +0 -2
- data/node_modules/json-stringify-safe/test/stringify_test.js +0 -246
- data/node_modules/jsonpointer/.travis.yml +0 -7
- data/node_modules/jsonpointer/LICENSE.md +0 -21
- data/node_modules/jsonpointer/README.md +0 -39
- data/node_modules/jsonpointer/benchmark.js +0 -56
- data/node_modules/jsonpointer/jsonpointer.js +0 -93
- data/node_modules/jsonpointer/package.json +0 -109
- data/node_modules/jsonpointer/test.js +0 -131
- data/node_modules/jsprim/CHANGES.md +0 -39
- data/node_modules/jsprim/LICENSE +0 -19
- data/node_modules/jsprim/README.md +0 -237
- data/node_modules/jsprim/lib/jsprim.js +0 -488
- data/node_modules/jsprim/package.json +0 -85
- data/node_modules/levn/LICENSE +0 -22
- data/node_modules/levn/README.md +0 -196
- data/node_modules/levn/lib/cast.js +0 -298
- data/node_modules/levn/lib/coerce.js +0 -285
- data/node_modules/levn/lib/index.js +0 -22
- data/node_modules/levn/lib/parse-string.js +0 -113
- data/node_modules/levn/lib/parse.js +0 -102
- data/node_modules/levn/package.json +0 -108
- data/node_modules/mime-db/HISTORY.md +0 -375
- data/node_modules/mime-db/LICENSE +0 -22
- data/node_modules/mime-db/README.md +0 -82
- data/node_modules/mime-db/db.json +0 -6712
- data/node_modules/mime-db/index.js +0 -11
- data/node_modules/mime-db/package.json +0 -137
- data/node_modules/mime-types/HISTORY.md +0 -210
- data/node_modules/mime-types/LICENSE +0 -23
- data/node_modules/mime-types/README.md +0 -103
- data/node_modules/mime-types/index.js +0 -188
- data/node_modules/mime-types/package.json +0 -127
- data/node_modules/nwmatcher/LICENSE +0 -22
- data/node_modules/nwmatcher/README.md +0 -107
- data/node_modules/nwmatcher/package.json +0 -99
- data/node_modules/nwmatcher/src/modules/nwmatcher-cache.js +0 -187
- data/node_modules/nwmatcher/src/modules/nwmatcher-jquery.js +0 -126
- data/node_modules/nwmatcher/src/modules/nwmatcher-pseudos.js +0 -273
- data/node_modules/nwmatcher/src/modules/nwmatcher-shortcuts.js +0 -35
- data/node_modules/nwmatcher/src/modules/nwmatcher-traversal.js +0 -90
- data/node_modules/nwmatcher/src/modules/nwmatcher-webforms.js +0 -104
- data/node_modules/nwmatcher/src/nwmatcher-base.js +0 -785
- data/node_modules/nwmatcher/src/nwmatcher-noqsa.js +0 -962
- data/node_modules/nwmatcher/src/nwmatcher.js +0 -1780
- data/node_modules/oauth-sign/LICENSE +0 -55
- data/node_modules/oauth-sign/README.md +0 -4
- data/node_modules/oauth-sign/index.js +0 -136
- data/node_modules/oauth-sign/package.json +0 -98
- data/node_modules/optionator/CHANGELOG.md +0 -52
- data/node_modules/optionator/LICENSE +0 -22
- data/node_modules/optionator/README.md +0 -236
- data/node_modules/optionator/lib/help.js +0 -247
- data/node_modules/optionator/lib/index.js +0 -465
- data/node_modules/optionator/lib/util.js +0 -54
- data/node_modules/optionator/package.json +0 -109
- data/node_modules/parse5/CHANGELOG.md +0 -69
- data/node_modules/parse5/LICENSE +0 -19
- data/node_modules/parse5/README.md +0 -247
- data/node_modules/parse5/docs/build/index.md +0 -963
- data/node_modules/parse5/index.js +0 -12
- data/node_modules/parse5/lib/common/doctype.js +0 -134
- data/node_modules/parse5/lib/common/foreign_content.js +0 -257
- data/node_modules/parse5/lib/common/html.js +0 -268
- data/node_modules/parse5/lib/common/unicode.js +0 -48
- data/node_modules/parse5/lib/common/utils.js +0 -13
- data/node_modules/parse5/lib/jsdom/jsdom_parser.js +0 -39
- data/node_modules/parse5/lib/jsdom/parsing_unit.js +0 -53
- data/node_modules/parse5/lib/serialization/serializer.js +0 -178
- data/node_modules/parse5/lib/simple_api/simple_api_parser.js +0 -107
- data/node_modules/parse5/lib/simple_api/tokenizer_proxy.js +0 -122
- data/node_modules/parse5/lib/tokenization/location_info_mixin.js +0 -80
- data/node_modules/parse5/lib/tokenization/named_entity_trie.js +0 -6
- data/node_modules/parse5/lib/tokenization/preprocessor.js +0 -115
- data/node_modules/parse5/lib/tokenization/tokenizer.js +0 -2317
- data/node_modules/parse5/lib/tree_adapters/default.js +0 -200
- data/node_modules/parse5/lib/tree_adapters/htmlparser2.js +0 -317
- data/node_modules/parse5/lib/tree_construction/formatting_element_list.js +0 -167
- data/node_modules/parse5/lib/tree_construction/location_info_mixin.js +0 -197
- data/node_modules/parse5/lib/tree_construction/open_element_stack.js +0 -379
- data/node_modules/parse5/lib/tree_construction/parser.js +0 -2827
- data/node_modules/parse5/package.json +0 -125
- data/node_modules/pinkie-promise/index.js +0 -3
- data/node_modules/pinkie-promise/license +0 -21
- data/node_modules/pinkie-promise/package.json +0 -102
- data/node_modules/pinkie-promise/readme.md +0 -28
- data/node_modules/pinkie/index.js +0 -292
- data/node_modules/pinkie/license +0 -21
- data/node_modules/pinkie/package.json +0 -100
- data/node_modules/pinkie/readme.md +0 -83
- data/node_modules/prelude-ls/CHANGELOG.md +0 -99
- data/node_modules/prelude-ls/LICENSE +0 -22
- data/node_modules/prelude-ls/README.md +0 -15
- data/node_modules/prelude-ls/lib/Func.js +0 -65
- data/node_modules/prelude-ls/lib/List.js +0 -686
- data/node_modules/prelude-ls/lib/Num.js +0 -130
- data/node_modules/prelude-ls/lib/Obj.js +0 -154
- data/node_modules/prelude-ls/lib/Str.js +0 -92
- data/node_modules/prelude-ls/lib/index.js +0 -178
- data/node_modules/prelude-ls/package.json +0 -116
- data/node_modules/punycode/LICENSE-MIT.txt +0 -20
- data/node_modules/punycode/README.md +0 -176
- data/node_modules/punycode/package.json +0 -127
- data/node_modules/punycode/punycode.js +0 -533
- data/node_modules/qs/.eslintignore +0 -1
- data/node_modules/qs/.eslintrc +0 -19
- data/node_modules/qs/CHANGELOG.md +0 -144
- data/node_modules/qs/CONTRIBUTING.md +0 -1
- data/node_modules/qs/LICENSE +0 -28
- data/node_modules/qs/README.md +0 -398
- data/node_modules/qs/dist/qs.js +0 -574
- data/node_modules/qs/lib/formats.js +0 -18
- data/node_modules/qs/lib/index.js +0 -11
- data/node_modules/qs/lib/parse.js +0 -166
- data/node_modules/qs/lib/stringify.js +0 -187
- data/node_modules/qs/lib/utils.js +0 -180
- data/node_modules/qs/package.json +0 -121
- data/node_modules/qs/test/.eslintrc +0 -9
- data/node_modules/qs/test/index.js +0 -7
- data/node_modules/qs/test/parse.js +0 -459
- data/node_modules/qs/test/stringify.js +0 -538
- data/node_modules/qs/test/utils.js +0 -22
- data/node_modules/sax/LICENSE +0 -41
- data/node_modules/sax/LICENSE-W3C.html +0 -188
- data/node_modules/sax/README.md +0 -225
- data/node_modules/sax/lib/sax.js +0 -1576
- data/node_modules/sax/package.json +0 -133
- data/node_modules/sntp/.npmignore +0 -18
- data/node_modules/sntp/.travis.yml +0 -5
- data/node_modules/sntp/LICENSE +0 -28
- data/node_modules/sntp/Makefile +0 -9
- data/node_modules/sntp/README.md +0 -68
- data/node_modules/sntp/examples/offset.js +0 -16
- data/node_modules/sntp/examples/time.js +0 -25
- data/node_modules/sntp/index.js +0 -1
- data/node_modules/sntp/lib/index.js +0 -412
- data/node_modules/sntp/package.json +0 -98
- data/node_modules/sntp/test/index.js +0 -435
- data/node_modules/source-map/.npmignore +0 -2
- data/node_modules/source-map/.travis.yml +0 -4
- data/node_modules/source-map/CHANGELOG.md +0 -201
- data/node_modules/source-map/LICENSE +0 -28
- data/node_modules/source-map/Makefile.dryice.js +0 -166
- data/node_modules/source-map/README.md +0 -479
- data/node_modules/source-map/build/assert-shim.js +0 -56
- data/node_modules/source-map/build/mini-require.js +0 -152
- data/node_modules/source-map/build/prefix-source-map.jsm +0 -20
- data/node_modules/source-map/build/prefix-utils.jsm +0 -18
- data/node_modules/source-map/build/suffix-browser.js +0 -8
- data/node_modules/source-map/build/suffix-source-map.jsm +0 -6
- data/node_modules/source-map/build/suffix-utils.jsm +0 -21
- data/node_modules/source-map/build/test-prefix.js +0 -8
- data/node_modules/source-map/build/test-suffix.js +0 -3
- data/node_modules/source-map/lib/source-map.js +0 -8
- data/node_modules/source-map/lib/source-map/array-set.js +0 -97
- data/node_modules/source-map/lib/source-map/base64-vlq.js +0 -142
- data/node_modules/source-map/lib/source-map/base64.js +0 -42
- data/node_modules/source-map/lib/source-map/basic-source-map-consumer.js +0 -420
- data/node_modules/source-map/lib/source-map/binary-search.js +0 -80
- data/node_modules/source-map/lib/source-map/indexed-source-map-consumer.js +0 -303
- data/node_modules/source-map/lib/source-map/mapping-list.js +0 -86
- data/node_modules/source-map/lib/source-map/source-map-consumer.js +0 -222
- data/node_modules/source-map/lib/source-map/source-map-generator.js +0 -400
- data/node_modules/source-map/lib/source-map/source-node.js +0 -414
- data/node_modules/source-map/lib/source-map/util.js +0 -319
- data/node_modules/source-map/package.json +0 -223
- data/node_modules/source-map/test/run-tests.js +0 -62
- data/node_modules/source-map/test/source-map/test-api.js +0 -26
- data/node_modules/source-map/test/source-map/test-array-set.js +0 -104
- data/node_modules/source-map/test/source-map/test-base64-vlq.js +0 -23
- data/node_modules/source-map/test/source-map/test-base64.js +0 -35
- data/node_modules/source-map/test/source-map/test-binary-search.js +0 -54
- data/node_modules/source-map/test/source-map/test-dog-fooding.js +0 -84
- data/node_modules/source-map/test/source-map/test-source-map-consumer.js +0 -874
- data/node_modules/source-map/test/source-map/test-source-map-generator.js +0 -679
- data/node_modules/source-map/test/source-map/test-source-node.js +0 -612
- data/node_modules/source-map/test/source-map/test-util.js +0 -216
- data/node_modules/source-map/test/source-map/util.js +0 -299
- data/node_modules/sshpk/.npmignore +0 -9
- data/node_modules/sshpk/.travis.yml +0 -11
- data/node_modules/sshpk/LICENSE +0 -18
- data/node_modules/sshpk/README.md +0 -666
- data/node_modules/sshpk/bin/sshpk-conv +0 -201
- data/node_modules/sshpk/bin/sshpk-sign +0 -191
- data/node_modules/sshpk/bin/sshpk-verify +0 -166
- data/node_modules/sshpk/lib/algs.js +0 -168
- data/node_modules/sshpk/lib/certificate.js +0 -291
- data/node_modules/sshpk/lib/dhe.js +0 -311
- data/node_modules/sshpk/lib/ed-compat.js +0 -96
- data/node_modules/sshpk/lib/errors.js +0 -84
- data/node_modules/sshpk/lib/fingerprint.js +0 -161
- data/node_modules/sshpk/lib/formats/auto.js +0 -73
- data/node_modules/sshpk/lib/formats/openssh-cert.js +0 -289
- data/node_modules/sshpk/lib/formats/pem.js +0 -186
- data/node_modules/sshpk/lib/formats/pkcs1.js +0 -320
- data/node_modules/sshpk/lib/formats/pkcs8.js +0 -505
- data/node_modules/sshpk/lib/formats/rfc4253.js +0 -146
- data/node_modules/sshpk/lib/formats/ssh-private.js +0 -261
- data/node_modules/sshpk/lib/formats/ssh.js +0 -114
- data/node_modules/sshpk/lib/formats/x509-pem.js +0 -77
- data/node_modules/sshpk/lib/formats/x509.js +0 -484
- data/node_modules/sshpk/lib/identity.js +0 -255
- data/node_modules/sshpk/lib/index.js +0 -38
- data/node_modules/sshpk/lib/key.js +0 -270
- data/node_modules/sshpk/lib/private-key.js +0 -231
- data/node_modules/sshpk/lib/signature.js +0 -245
- data/node_modules/sshpk/lib/ssh-buffer.js +0 -148
- data/node_modules/sshpk/lib/utils.js +0 -288
- data/node_modules/sshpk/man/man1/sshpk-conv.1 +0 -135
- data/node_modules/sshpk/man/man1/sshpk-sign.1 +0 -81
- data/node_modules/sshpk/man/man1/sshpk-verify.1 +0 -68
- data/node_modules/sshpk/node_modules/assert-plus/AUTHORS +0 -6
- data/node_modules/sshpk/node_modules/assert-plus/CHANGES.md +0 -14
- data/node_modules/sshpk/node_modules/assert-plus/README.md +0 -162
- data/node_modules/sshpk/node_modules/assert-plus/assert.js +0 -211
- data/node_modules/sshpk/node_modules/assert-plus/package.json +0 -115
- data/node_modules/sshpk/package.json +0 -135
- data/node_modules/stringstream/.npmignore +0 -15
- data/node_modules/stringstream/.travis.yml +0 -4
- data/node_modules/stringstream/LICENSE.txt +0 -22
- data/node_modules/stringstream/README.md +0 -38
- data/node_modules/stringstream/example.js +0 -27
- data/node_modules/stringstream/package.json +0 -85
- data/node_modules/stringstream/stringstream.js +0 -102
- data/node_modules/strip-ansi/index.js +0 -6
- data/node_modules/strip-ansi/license +0 -21
- data/node_modules/strip-ansi/package.json +0 -123
- data/node_modules/strip-ansi/readme.md +0 -33
- data/node_modules/supports-color/index.js +0 -50
- data/node_modules/supports-color/license +0 -21
- data/node_modules/supports-color/package.json +0 -113
- data/node_modules/supports-color/readme.md +0 -36
- data/node_modules/symbol-tree/.jscsrc +0 -55
- data/node_modules/symbol-tree/.npmignore +0 -6
- data/node_modules/symbol-tree/LICENSE +0 -21
- data/node_modules/symbol-tree/README.md +0 -68
- data/node_modules/symbol-tree/api.md +0 -441
- data/node_modules/symbol-tree/lib/SymbolTree.js +0 -834
- data/node_modules/symbol-tree/lib/SymbolTreeNode.js +0 -54
- data/node_modules/symbol-tree/lib/TreeIterator.js +0 -69
- data/node_modules/symbol-tree/lib/TreePosition.js +0 -10
- data/node_modules/symbol-tree/package.json +0 -121
- data/node_modules/symbol-tree/test/SymbolTree.js +0 -1189
- data/node_modules/tough-cookie/LICENSE +0 -27
- data/node_modules/tough-cookie/README.md +0 -506
- data/node_modules/tough-cookie/lib/cookie.js +0 -1336
- data/node_modules/tough-cookie/lib/memstore.js +0 -170
- data/node_modules/tough-cookie/lib/pathMatch.js +0 -61
- data/node_modules/tough-cookie/lib/permuteDomain.js +0 -56
- data/node_modules/tough-cookie/lib/pubsuffix.js +0 -98
- data/node_modules/tough-cookie/lib/store.js +0 -71
- data/node_modules/tough-cookie/package.json +0 -136
- data/node_modules/tr46/.npmignore +0 -4
- data/node_modules/tr46/index.js +0 -193
- data/node_modules/tr46/lib/.gitkeep +0 -0
- data/node_modules/tr46/lib/mappingTable.json +0 -1
- data/node_modules/tr46/package.json +0 -91
- data/node_modules/tunnel-agent/LICENSE +0 -55
- data/node_modules/tunnel-agent/README.md +0 -4
- data/node_modules/tunnel-agent/index.js +0 -243
- data/node_modules/tunnel-agent/package.json +0 -100
- data/node_modules/tweetnacl/.npmignore +0 -4
- data/node_modules/tweetnacl/CHANGELOG.md +0 -209
- data/node_modules/tweetnacl/COPYING.txt +0 -9
- data/node_modules/tweetnacl/ISSUE_TEMPLATE.md +0 -3
- data/node_modules/tweetnacl/README.md +0 -477
- data/node_modules/tweetnacl/nacl-fast.js +0 -2388
- data/node_modules/tweetnacl/nacl-fast.min.js +0 -2
- data/node_modules/tweetnacl/nacl.d.ts +0 -98
- data/node_modules/tweetnacl/nacl.js +0 -1175
- data/node_modules/tweetnacl/nacl.min.js +0 -1
- data/node_modules/tweetnacl/package.json +0 -121
- data/node_modules/type-check/LICENSE +0 -22
- data/node_modules/type-check/README.md +0 -210
- data/node_modules/type-check/lib/check.js +0 -126
- data/node_modules/type-check/lib/index.js +0 -16
- data/node_modules/type-check/lib/parse-type.js +0 -196
- data/node_modules/type-check/package.json +0 -102
- data/node_modules/type-detect/.npmignore +0 -11
- data/node_modules/type-detect/History.md +0 -52
- data/node_modules/type-detect/README.md +0 -226
- data/node_modules/type-detect/ReleaseNotes.md +0 -46
- data/node_modules/type-detect/index.js +0 -1
- data/node_modules/type-detect/lib/type.js +0 -134
- data/node_modules/type-detect/package.json +0 -93
- data/node_modules/uuid/.npmignore +0 -8
- data/node_modules/uuid/.travis.yml +0 -5
- data/node_modules/uuid/AUTHORS +0 -5
- data/node_modules/uuid/HISTORY.md +0 -28
- data/node_modules/uuid/LICENSE.md +0 -21
- data/node_modules/uuid/README.md +0 -132
- data/node_modules/uuid/bin/uuid +0 -26
- data/node_modules/uuid/index.js +0 -8
- data/node_modules/uuid/lib/bytesToUuid.js +0 -23
- data/node_modules/uuid/lib/rng-browser.js +0 -33
- data/node_modules/uuid/lib/rng.js +0 -10
- data/node_modules/uuid/package.json +0 -122
- data/node_modules/uuid/test/mocha.opts +0 -3
- data/node_modules/uuid/test/test.js +0 -96
- data/node_modules/uuid/v1.js +0 -103
- data/node_modules/uuid/v4.js +0 -29
- data/node_modules/verror/.gitmodules +0 -0
- data/node_modules/verror/.npmignore +0 -1
- data/node_modules/verror/LICENSE +0 -19
- data/node_modules/verror/Makefile +0 -35
- data/node_modules/verror/Makefile.targ +0 -285
- data/node_modules/verror/README.md +0 -120
- data/node_modules/verror/examples/levels-verror.js +0 -36
- data/node_modules/verror/examples/levels-werror.js +0 -34
- data/node_modules/verror/examples/varargs.js +0 -6
- data/node_modules/verror/examples/verror.js +0 -13
- data/node_modules/verror/examples/werror.js +0 -14
- data/node_modules/verror/jsl.node.conf +0 -139
- data/node_modules/verror/lib/verror.js +0 -157
- data/node_modules/verror/package.json +0 -78
- data/node_modules/verror/tests/tst.inherit.js +0 -100
- data/node_modules/verror/tests/tst.verror.js +0 -156
- data/node_modules/verror/tests/tst.werror.js +0 -179
- data/node_modules/webidl-conversions/LICENSE.md +0 -12
- data/node_modules/webidl-conversions/README.md +0 -53
- data/node_modules/webidl-conversions/lib/index.js +0 -189
- data/node_modules/webidl-conversions/package.json +0 -96
- data/node_modules/whatwg-encoding/LICENSE.txt +0 -19
- data/node_modules/whatwg-encoding/lib/labels-to-names.json +0 -207
- data/node_modules/whatwg-encoding/lib/supported-names.json +0 -37
- data/node_modules/whatwg-encoding/lib/whatwg-encoding.js +0 -47
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/.npmignore +0 -6
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/.travis.yml +0 -20
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/Changelog.md +0 -93
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/LICENSE +0 -21
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/README.md +0 -157
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/dbcs-codec.js +0 -554
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/dbcs-data.js +0 -170
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/index.js +0 -22
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/internal.js +0 -187
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/sbcs-codec.js +0 -72
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/sbcs-data-generated.js +0 -451
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/sbcs-data.js +0 -169
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/big5-added.json +0 -122
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/cp936.json +0 -264
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/cp949.json +0 -273
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/cp950.json +0 -177
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/eucjp.json +0 -182
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +0 -1
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/gbk-added.json +0 -55
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/shiftjis.json +0 -125
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/utf16.js +0 -174
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/utf7.js +0 -289
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/lib/bom-handling.js +0 -52
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/lib/extend-node.js +0 -214
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/lib/index.js +0 -141
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/lib/streams.js +0 -120
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/package.json +0 -153
- data/node_modules/whatwg-encoding/package.json +0 -101
- data/node_modules/whatwg-url/.eslintignore +0 -3
- data/node_modules/whatwg-url/LICENSE.txt +0 -21
- data/node_modules/whatwg-url/README.md +0 -66
- data/node_modules/whatwg-url/lib/URL-impl.js +0 -216
- data/node_modules/whatwg-url/lib/URL.js +0 -209
- data/node_modules/whatwg-url/lib/public-api.js +0 -11
- data/node_modules/whatwg-url/lib/url-state-machine.js +0 -1173
- data/node_modules/whatwg-url/lib/utils.js +0 -20
- data/node_modules/whatwg-url/package.json +0 -103
- data/node_modules/wordwrap/LICENSE +0 -18
- data/node_modules/wordwrap/README.markdown +0 -70
- data/node_modules/wordwrap/example/center.js +0 -10
- data/node_modules/wordwrap/example/meat.js +0 -3
- data/node_modules/wordwrap/index.js +0 -76
- data/node_modules/wordwrap/package.json +0 -94
- data/node_modules/wordwrap/test/break.js +0 -32
- data/node_modules/wordwrap/test/idleness.txt +0 -63
- data/node_modules/wordwrap/test/wrap.js +0 -33
- data/node_modules/xml-name-validator/LICENSE.txt +0 -19
- data/node_modules/xml-name-validator/README.md +0 -36
- data/node_modules/xml-name-validator/lib/generated-parser.js +0 -504
- data/node_modules/xml-name-validator/lib/grammar.pegjs +0 -35
- data/node_modules/xml-name-validator/lib/xml-name-validator.js +0 -17
- data/node_modules/xml-name-validator/package.json +0 -97
- data/node_modules/xtend/.jshintrc +0 -30
- data/node_modules/xtend/.npmignore +0 -1
- data/node_modules/xtend/LICENCE +0 -19
- data/node_modules/xtend/Makefile +0 -4
- data/node_modules/xtend/README.md +0 -32
- data/node_modules/xtend/immutable.js +0 -19
- data/node_modules/xtend/mutable.js +0 -17
- data/node_modules/xtend/package.json +0 -117
- data/node_modules/xtend/test.js +0 -83
@@ -1,1780 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright (C) 2007-2016 Diego Perini
|
3
|
-
* All rights reserved.
|
4
|
-
*
|
5
|
-
* nwmatcher.js - A fast CSS selector engine and matcher
|
6
|
-
*
|
7
|
-
* Author: Diego Perini <diego.perini at gmail com>
|
8
|
-
* Version: 1.3.9
|
9
|
-
* Created: 20070722
|
10
|
-
* Release: 20161026
|
11
|
-
*
|
12
|
-
* License:
|
13
|
-
* http://javascript.nwbox.com/NWMatcher/MIT-LICENSE
|
14
|
-
* Download:
|
15
|
-
* http://javascript.nwbox.com/NWMatcher/nwmatcher.js
|
16
|
-
*/
|
17
|
-
|
18
|
-
(function(global, factory) {
|
19
|
-
|
20
|
-
if (typeof module == 'object' && typeof exports == 'object') {
|
21
|
-
module.exports = factory;
|
22
|
-
} else if (typeof define === 'function' && define["amd"]) {
|
23
|
-
define(factory);
|
24
|
-
} else {
|
25
|
-
global.NW || (global.NW = { });
|
26
|
-
global.NW.Dom = factory(global);
|
27
|
-
}
|
28
|
-
|
29
|
-
})(this, function(global) {
|
30
|
-
|
31
|
-
var version = 'nwmatcher-1.3.9',
|
32
|
-
|
33
|
-
// processing context & root element
|
34
|
-
doc = global.document,
|
35
|
-
root = doc.documentElement,
|
36
|
-
|
37
|
-
// save utility methods references
|
38
|
-
slice = [ ].slice,
|
39
|
-
|
40
|
-
// persist previous parsed data
|
41
|
-
isSingleMatch,
|
42
|
-
isSingleSelect,
|
43
|
-
|
44
|
-
lastSlice,
|
45
|
-
lastContext,
|
46
|
-
lastPosition,
|
47
|
-
|
48
|
-
lastMatcher,
|
49
|
-
lastSelector,
|
50
|
-
|
51
|
-
lastPartsMatch,
|
52
|
-
lastPartsSelect,
|
53
|
-
|
54
|
-
// accepted prefix identifiers
|
55
|
-
// (id, class & pseudo-class)
|
56
|
-
prefixes = '[#.:]?',
|
57
|
-
|
58
|
-
// accepted attribute operators
|
59
|
-
operators = '([~*^$|!]?={1})',
|
60
|
-
|
61
|
-
// accepted whitespace characters
|
62
|
-
whitespace = '[\\x20\\t\\n\\r\\f]',
|
63
|
-
|
64
|
-
// 4 combinators F E, F>E, F+E, F~E
|
65
|
-
combinators = '\\x20|[>+~](?=[^>+~])',
|
66
|
-
|
67
|
-
// an+b format params for pseudo-classes
|
68
|
-
pseudoparms = '(?:[-+]?\\d*n)?[-+]?\\d*',
|
69
|
-
|
70
|
-
// skip [ ], ( ), { } brackets groups
|
71
|
-
skip_groups = '\\[.*\\]|\\(.*\\)|\\{.*\\}',
|
72
|
-
|
73
|
-
// any escaped char
|
74
|
-
any_esc_chr = '\\\\.',
|
75
|
-
// alpha chars & low dash
|
76
|
-
alphalodash = '[_a-zA-Z]',
|
77
|
-
// non-ascii chars (utf-8)
|
78
|
-
non_asc_chr = '[^\\x00-\\x9f]',
|
79
|
-
// escape sequences in strings
|
80
|
-
escaped_chr = '\\\\[^\\n\\r\\f0-9a-fA-F]',
|
81
|
-
// Unicode chars including trailing whitespace
|
82
|
-
unicode_chr = '\\\\[0-9a-fA-F]{1,6}(?:\\r\\n|' + whitespace + ')?',
|
83
|
-
|
84
|
-
// CSS quoted string values
|
85
|
-
quotedvalue = '"[^"\\\\]*(?:\\\\.[^"\\\\]*)*"' + "|'[^'\\\\]*(?:\\\\.[^'\\\\]*)*'",
|
86
|
-
|
87
|
-
// regular expression used to skip single/nested brackets groups (round, square, curly)
|
88
|
-
// used to split comma groups excluding commas inside quotes '' "" or brackets () [] {}
|
89
|
-
reSplitGroup = /([^,\\()[\]]+|\[[^[\]]*\]|\[.*\]|\([^()]+\)|\(.*\)|\{[^{}]+\}|\{.*\}|\\.)+/g,
|
90
|
-
|
91
|
-
// regular expression to trim extra leading/trailing whitespace in selector strings
|
92
|
-
// whitespace is any combination of these 5 character [\x20\t\n\r\f]
|
93
|
-
// http://www.w3.org/TR/css3-selectors/#selector-syntax
|
94
|
-
reTrimSpaces = RegExp('[\\n\\r\\f]|^' + whitespace + '+|' + whitespace + '+$', 'g'),
|
95
|
-
|
96
|
-
// regular expression used in convertEscapes and unescapeIdentifier
|
97
|
-
reEscapedChars = /\\([0-9a-fA-F]{1,6}[\x20\t\n\r\f]?|.)|([\x22\x27])/g,
|
98
|
-
|
99
|
-
// for in excess whitespace removal
|
100
|
-
reWhiteSpace = /[\x20\t\n\r\f]+/g,
|
101
|
-
|
102
|
-
standardValidator, extendedValidator, reValidator,
|
103
|
-
|
104
|
-
attrcheck, attributes, attrmatcher, pseudoclass,
|
105
|
-
|
106
|
-
reOptimizeSelector, reSimpleNot, reSplitToken,
|
107
|
-
|
108
|
-
Optimize, reClass, reSimpleSelector,
|
109
|
-
|
110
|
-
// http://www.w3.org/TR/css3-syntax/#characters
|
111
|
-
// unicode/ISO 10646 characters \xA0 and higher
|
112
|
-
// NOTE: Safari 2.0.x crashes with escaped (\\)
|
113
|
-
// Unicode ranges in regular expressions so we
|
114
|
-
// use a negated character range class instead
|
115
|
-
// now assigned at runtime from config options
|
116
|
-
identifier,
|
117
|
-
|
118
|
-
// placeholder for extensions
|
119
|
-
extensions = '.+',
|
120
|
-
|
121
|
-
// precompiled Regular Expressions
|
122
|
-
Patterns = {
|
123
|
-
// structural pseudo-classes and child selectors
|
124
|
-
spseudos: /^\:(root|empty|(?:first|last|only)(?:-child|-of-type)|nth(?:-last)?(?:-child|-of-type)\(\s*(even|odd|(?:[-+]{0,1}\d*n\s*)?[-+]{0,1}\s*\d*)\s*\))?(.*)/i,
|
125
|
-
// uistates + dynamic + negation pseudo-classes
|
126
|
-
dpseudos: /^\:(link|visited|target|active|focus|hover|checked|disabled|enabled|selected|lang\(([-\w]{2,})\)|not\(\s*(:nth(?:-last)?(?:-child|-of-type)\(\s*(?:even|odd|(?:[-+]{0,1}\d*n\s*)?[-+]{0,1}\s*\d*)\s*\)|[^()]*)\s*\))?(.*)/i,
|
127
|
-
// E > F
|
128
|
-
children: RegExp('^' + whitespace + '*\\>' + whitespace + '*(.*)'),
|
129
|
-
// E + F
|
130
|
-
adjacent: RegExp('^' + whitespace + '*\\+' + whitespace + '*(.*)'),
|
131
|
-
// E ~ F
|
132
|
-
relative: RegExp('^' + whitespace + '*\\~' + whitespace + '*(.*)'),
|
133
|
-
// E F
|
134
|
-
ancestor: RegExp('^' + whitespace + '+(.*)'),
|
135
|
-
// all
|
136
|
-
universal: RegExp('^\\*(.*)')
|
137
|
-
},
|
138
|
-
|
139
|
-
Tokens = {
|
140
|
-
prefixes: prefixes,
|
141
|
-
identifier: identifier,
|
142
|
-
attributes: attributes
|
143
|
-
},
|
144
|
-
|
145
|
-
/*----------------------------- FEATURE TESTING ----------------------------*/
|
146
|
-
|
147
|
-
// detect native methods
|
148
|
-
isNative = (function() {
|
149
|
-
var re = / \w+\(/,
|
150
|
-
isnative = String(({ }).toString).replace(re, ' (');
|
151
|
-
return function(method) {
|
152
|
-
return method && typeof method != 'string' &&
|
153
|
-
isnative == String(method).replace(re, ' (');
|
154
|
-
};
|
155
|
-
})(),
|
156
|
-
|
157
|
-
// NATIVE_XXXXX true if method exist and is callable
|
158
|
-
// detect if DOM methods are native in browsers
|
159
|
-
NATIVE_FOCUS = isNative(doc.hasFocus),
|
160
|
-
NATIVE_QSAPI = isNative(doc.querySelector),
|
161
|
-
NATIVE_GEBID = isNative(doc.getElementById),
|
162
|
-
NATIVE_GEBTN = isNative(root.getElementsByTagName),
|
163
|
-
NATIVE_GEBCN = isNative(root.getElementsByClassName),
|
164
|
-
|
165
|
-
// detect native getAttribute/hasAttribute methods,
|
166
|
-
// frameworks extend these to elements, but it seems
|
167
|
-
// this does not work for XML namespaced attributes,
|
168
|
-
// used to check both getAttribute/hasAttribute in IE
|
169
|
-
NATIVE_GET_ATTRIBUTE = isNative(root.getAttribute),
|
170
|
-
NATIVE_HAS_ATTRIBUTE = isNative(root.hasAttribute),
|
171
|
-
|
172
|
-
// check if slice() can convert nodelist to array
|
173
|
-
// see http://yura.thinkweb2.com/cft/
|
174
|
-
NATIVE_SLICE_PROTO =
|
175
|
-
(function() {
|
176
|
-
var isBuggy = false;
|
177
|
-
try {
|
178
|
-
isBuggy = !!slice.call(doc.childNodes, 0)[0];
|
179
|
-
} catch(e) { }
|
180
|
-
return isBuggy;
|
181
|
-
})(),
|
182
|
-
|
183
|
-
// supports the new traversal API
|
184
|
-
NATIVE_TRAVERSAL_API =
|
185
|
-
'nextElementSibling' in root && 'previousElementSibling' in root,
|
186
|
-
|
187
|
-
// BUGGY_XXXXX true if method is feature tested and has known bugs
|
188
|
-
// detect buggy gEBID
|
189
|
-
BUGGY_GEBID = NATIVE_GEBID ?
|
190
|
-
(function() {
|
191
|
-
var isBuggy = true, x = 'x' + String(+new Date),
|
192
|
-
a = doc.createElementNS ? 'a' : '<a name="' + x + '">';
|
193
|
-
(a = doc.createElement(a)).name = x;
|
194
|
-
root.insertBefore(a, root.firstChild);
|
195
|
-
isBuggy = !!doc.getElementById(x);
|
196
|
-
root.removeChild(a);
|
197
|
-
return isBuggy;
|
198
|
-
})() :
|
199
|
-
true,
|
200
|
-
|
201
|
-
// detect IE gEBTN comment nodes bug
|
202
|
-
BUGGY_GEBTN = NATIVE_GEBTN ?
|
203
|
-
(function() {
|
204
|
-
var div = doc.createElement('div');
|
205
|
-
div.appendChild(doc.createComment(''));
|
206
|
-
return !!div.getElementsByTagName('*')[0];
|
207
|
-
})() :
|
208
|
-
true,
|
209
|
-
|
210
|
-
// detect Opera gEBCN second class and/or UTF8 bugs as well as Safari 3.2
|
211
|
-
// caching class name results and not detecting when changed,
|
212
|
-
// tests are based on the jQuery selector test suite
|
213
|
-
BUGGY_GEBCN = NATIVE_GEBCN ?
|
214
|
-
(function() {
|
215
|
-
var isBuggy, div = doc.createElement('div'), test = '\u53f0\u5317';
|
216
|
-
|
217
|
-
// Opera tests
|
218
|
-
div.appendChild(doc.createElement('span')).
|
219
|
-
setAttribute('class', test + 'abc ' + test);
|
220
|
-
div.appendChild(doc.createElement('span')).
|
221
|
-
setAttribute('class', 'x');
|
222
|
-
|
223
|
-
isBuggy = !div.getElementsByClassName(test)[0];
|
224
|
-
|
225
|
-
// Safari test
|
226
|
-
div.lastChild.className = test;
|
227
|
-
return isBuggy || div.getElementsByClassName(test).length != 2;
|
228
|
-
})() :
|
229
|
-
true,
|
230
|
-
|
231
|
-
// detect IE bug with dynamic attributes
|
232
|
-
BUGGY_GET_ATTRIBUTE = NATIVE_GET_ATTRIBUTE ?
|
233
|
-
(function() {
|
234
|
-
var input = doc.createElement('input');
|
235
|
-
input.setAttribute('value', 5);
|
236
|
-
return input.defaultValue != 5;
|
237
|
-
})() :
|
238
|
-
true,
|
239
|
-
|
240
|
-
// detect IE bug with non-standard boolean attributes
|
241
|
-
BUGGY_HAS_ATTRIBUTE = NATIVE_HAS_ATTRIBUTE ?
|
242
|
-
(function() {
|
243
|
-
var option = doc.createElement('option');
|
244
|
-
option.setAttribute('selected', 'selected');
|
245
|
-
return !option.hasAttribute('selected');
|
246
|
-
})() :
|
247
|
-
true,
|
248
|
-
|
249
|
-
// detect Safari bug with selected option elements
|
250
|
-
BUGGY_SELECTED =
|
251
|
-
(function() {
|
252
|
-
var select = doc.createElement('select');
|
253
|
-
select.appendChild(doc.createElement('option'));
|
254
|
-
return !select.firstChild.selected;
|
255
|
-
})(),
|
256
|
-
|
257
|
-
// initialized with the loading context
|
258
|
-
// and reset for each different context
|
259
|
-
BUGGY_QUIRKS_GEBCN,
|
260
|
-
BUGGY_QUIRKS_QSAPI,
|
261
|
-
|
262
|
-
QUIRKS_MODE,
|
263
|
-
XML_DOCUMENT,
|
264
|
-
|
265
|
-
// detect Opera browser
|
266
|
-
OPERA = typeof global.opera != 'undefined' &&
|
267
|
-
(/opera/i).test(({ }).toString.call(global.opera)),
|
268
|
-
|
269
|
-
// skip simple selector optimizations for Opera >= 11
|
270
|
-
OPERA_QSAPI = OPERA && parseFloat(global.opera.version()) >= 11,
|
271
|
-
|
272
|
-
// check Selector API implementations
|
273
|
-
RE_BUGGY_QSAPI = NATIVE_QSAPI ?
|
274
|
-
(function() {
|
275
|
-
var pattern = [ ], context, element,
|
276
|
-
|
277
|
-
expect = function(selector, element, n) {
|
278
|
-
var result = false;
|
279
|
-
context.appendChild(element);
|
280
|
-
try { result = context.querySelectorAll(selector).length == n; } catch(e) { }
|
281
|
-
while (context.firstChild) { context.removeChild(context.firstChild); }
|
282
|
-
return result;
|
283
|
-
};
|
284
|
-
|
285
|
-
// certain bugs can only be detected in standard documents
|
286
|
-
// to avoid writing a live loading document create a fake one
|
287
|
-
if (doc.implementation && doc.implementation.createDocument) {
|
288
|
-
// use a shadow document body as context
|
289
|
-
context = doc.implementation.createDocument('', '', null).
|
290
|
-
appendChild(doc.createElement('html')).
|
291
|
-
appendChild(doc.createElement('head')).parentNode.
|
292
|
-
appendChild(doc.createElement('body'));
|
293
|
-
} else {
|
294
|
-
// use an unattached div node as context
|
295
|
-
context = doc.createElement('div');
|
296
|
-
}
|
297
|
-
|
298
|
-
// fix for Safari 8.x and other engines that
|
299
|
-
// fail querying filtered sibling combinators
|
300
|
-
element = doc.createElement('div');
|
301
|
-
element.innerHTML = '<p id="a"></p><br>';
|
302
|
-
expect('p#a+*', element, 0) &&
|
303
|
-
pattern.push('\\w+#\\w+.*[+~]');
|
304
|
-
|
305
|
-
// ^= $= *= operators bugs with empty values (Opera 10 / IE8)
|
306
|
-
element = doc.createElement('p');
|
307
|
-
element.setAttribute('class', '');
|
308
|
-
expect('[class^=""]', element, 1) &&
|
309
|
-
pattern.push('[*^$]=[\\x20\\t\\n\\r\\f]*(?:""|' + "'')");
|
310
|
-
|
311
|
-
// :checked bug with option elements (Firefox 3.6.x)
|
312
|
-
// it wrongly includes 'selected' options elements
|
313
|
-
// HTML5 rules says selected options also match
|
314
|
-
element = doc.createElement('option');
|
315
|
-
element.setAttribute('selected', 'selected');
|
316
|
-
expect(':checked', element, 0) &&
|
317
|
-
pattern.push(':checked');
|
318
|
-
|
319
|
-
// :enabled :disabled bugs with hidden fields (Firefox 3.5)
|
320
|
-
// http://www.w3.org/TR/html5/links.html#selector-enabled
|
321
|
-
// http://www.w3.org/TR/css3-selectors/#enableddisabled
|
322
|
-
// not supported by IE8 Query Selector
|
323
|
-
element = doc.createElement('input');
|
324
|
-
element.setAttribute('type', 'hidden');
|
325
|
-
expect(':enabled', element, 0) &&
|
326
|
-
pattern.push(':enabled', ':disabled');
|
327
|
-
|
328
|
-
// :link bugs with hyperlinks matching (Firefox/Safari)
|
329
|
-
element = doc.createElement('link');
|
330
|
-
element.setAttribute('href', 'x');
|
331
|
-
expect(':link', element, 1) ||
|
332
|
-
pattern.push(':link');
|
333
|
-
|
334
|
-
// avoid attribute selectors for IE QSA
|
335
|
-
if (BUGGY_HAS_ATTRIBUTE) {
|
336
|
-
// IE fails in reading:
|
337
|
-
// - original values for input/textarea
|
338
|
-
// - original boolean values for controls
|
339
|
-
pattern.push('\\[[\\x20\\t\\n\\r\\f]*(?:checked|disabled|ismap|multiple|readonly|selected|value)');
|
340
|
-
}
|
341
|
-
|
342
|
-
return pattern.length ?
|
343
|
-
RegExp(pattern.join('|')) :
|
344
|
-
{ 'test': function() { return false; } };
|
345
|
-
|
346
|
-
})() :
|
347
|
-
true,
|
348
|
-
|
349
|
-
/*----------------------------- LOOKUP OBJECTS -----------------------------*/
|
350
|
-
|
351
|
-
IE_LT_9 = typeof doc.addEventListener != 'function',
|
352
|
-
|
353
|
-
LINK_NODES = { 'a': 1, 'A': 1, 'area': 1, 'AREA': 1, 'link': 1, 'LINK': 1 },
|
354
|
-
|
355
|
-
// boolean attributes should return attribute name instead of true/false
|
356
|
-
ATTR_BOOLEAN = {
|
357
|
-
'checked': 1, 'disabled': 1, 'ismap': 1,
|
358
|
-
'multiple': 1, 'readonly': 1, 'selected': 1
|
359
|
-
},
|
360
|
-
|
361
|
-
// dynamic attributes that needs to be checked against original HTML value
|
362
|
-
ATTR_DEFAULT = {
|
363
|
-
'value': 'defaultValue',
|
364
|
-
'checked': 'defaultChecked',
|
365
|
-
'selected': 'defaultSelected'
|
366
|
-
},
|
367
|
-
|
368
|
-
// attributes referencing URI data values need special treatment in IE
|
369
|
-
ATTR_URIDATA = {
|
370
|
-
'action': 2, 'cite': 2, 'codebase': 2, 'data': 2, 'href': 2,
|
371
|
-
'longdesc': 2, 'lowsrc': 2, 'src': 2, 'usemap': 2
|
372
|
-
},
|
373
|
-
|
374
|
-
// HTML 5 draft specifications
|
375
|
-
// http://www.whatwg.org/specs/web-apps/current-work/#selectors
|
376
|
-
HTML_TABLE = {
|
377
|
-
// class attribute must be treated case-insensitive in HTML quirks mode
|
378
|
-
// initialized by default to Standard Mode (case-sensitive),
|
379
|
-
// set dynamically by the attribute resolver
|
380
|
-
'class': 0,
|
381
|
-
'accept': 1, 'accept-charset': 1, 'align': 1, 'alink': 1, 'axis': 1,
|
382
|
-
'bgcolor': 1, 'charset': 1, 'checked': 1, 'clear': 1, 'codetype': 1, 'color': 1,
|
383
|
-
'compact': 1, 'declare': 1, 'defer': 1, 'dir': 1, 'direction': 1, 'disabled': 1,
|
384
|
-
'enctype': 1, 'face': 1, 'frame': 1, 'hreflang': 1, 'http-equiv': 1, 'lang': 1,
|
385
|
-
'language': 1, 'link': 1, 'media': 1, 'method': 1, 'multiple': 1, 'nohref': 1,
|
386
|
-
'noresize': 1, 'noshade': 1, 'nowrap': 1, 'readonly': 1, 'rel': 1, 'rev': 1,
|
387
|
-
'rules': 1, 'scope': 1, 'scrolling': 1, 'selected': 1, 'shape': 1, 'target': 1,
|
388
|
-
'text': 1, 'type': 1, 'valign': 1, 'valuetype': 1, 'vlink': 1
|
389
|
-
},
|
390
|
-
|
391
|
-
// the following attributes must be treated case-insensitive in XHTML mode
|
392
|
-
// Niels Leenheer http://rakaz.nl/item/css_selector_bugs_case_sensitivity
|
393
|
-
XHTML_TABLE = {
|
394
|
-
'accept': 1, 'accept-charset': 1, 'alink': 1, 'axis': 1,
|
395
|
-
'bgcolor': 1, 'charset': 1, 'codetype': 1, 'color': 1,
|
396
|
-
'enctype': 1, 'face': 1, 'hreflang': 1, 'http-equiv': 1,
|
397
|
-
'lang': 1, 'language': 1, 'link': 1, 'media': 1, 'rel': 1,
|
398
|
-
'rev': 1, 'target': 1, 'text': 1, 'type': 1, 'vlink': 1
|
399
|
-
},
|
400
|
-
|
401
|
-
/*-------------------------- REGULAR EXPRESSIONS ---------------------------*/
|
402
|
-
|
403
|
-
// placeholder to add functionalities
|
404
|
-
Selectors = {
|
405
|
-
// as a simple example this will check
|
406
|
-
// for chars not in standard ascii table
|
407
|
-
//
|
408
|
-
// 'mySpecialSelector': {
|
409
|
-
// 'Expression': /\u0080-\uffff/,
|
410
|
-
// 'Callback': mySelectorCallback
|
411
|
-
// }
|
412
|
-
//
|
413
|
-
// 'mySelectorCallback' will be invoked
|
414
|
-
// only after passing all other standard
|
415
|
-
// checks and only if none of them worked
|
416
|
-
},
|
417
|
-
|
418
|
-
// attribute operators
|
419
|
-
Operators = {
|
420
|
-
'=': "n=='%m'",
|
421
|
-
'^=': "n.indexOf('%m')==0",
|
422
|
-
'*=': "n.indexOf('%m')>-1",
|
423
|
-
'|=': "(n+'-').indexOf('%m-')==0",
|
424
|
-
'~=': "(' '+n+' ').indexOf(' %m ')>-1",
|
425
|
-
'$=': "n.substr(n.length-'%m'.length)=='%m'"
|
426
|
-
},
|
427
|
-
|
428
|
-
/*------------------------------ UTIL METHODS ------------------------------*/
|
429
|
-
|
430
|
-
// concat elements to data
|
431
|
-
concatList =
|
432
|
-
function(data, elements) {
|
433
|
-
var i = -1, element;
|
434
|
-
if (!data.length && Array.slice)
|
435
|
-
return Array.slice(elements);
|
436
|
-
while ((element = elements[++i]))
|
437
|
-
data[data.length] = element;
|
438
|
-
return data;
|
439
|
-
},
|
440
|
-
|
441
|
-
// concat elements to data and callback
|
442
|
-
concatCall =
|
443
|
-
function(data, elements, callback) {
|
444
|
-
var i = -1, element;
|
445
|
-
while ((element = elements[++i])) {
|
446
|
-
if (false === callback(data[data.length] = element)) { break; }
|
447
|
-
}
|
448
|
-
return data;
|
449
|
-
},
|
450
|
-
|
451
|
-
// change context specific variables
|
452
|
-
switchContext =
|
453
|
-
function(from, force) {
|
454
|
-
var div, oldDoc = doc;
|
455
|
-
// save passed context
|
456
|
-
lastContext = from;
|
457
|
-
// set new context document
|
458
|
-
doc = from.ownerDocument || from;
|
459
|
-
if (force || oldDoc !== doc) {
|
460
|
-
// set document root
|
461
|
-
root = doc.documentElement;
|
462
|
-
// set host environment flags
|
463
|
-
XML_DOCUMENT = doc.createElement('DiV').nodeName == 'DiV';
|
464
|
-
|
465
|
-
// In quirks mode css class names are case insensitive.
|
466
|
-
// In standards mode they are case sensitive. See docs:
|
467
|
-
// https://developer.mozilla.org/en/Mozilla_Quirks_Mode_Behavior
|
468
|
-
// http://www.whatwg.org/specs/web-apps/current-work/#selectors
|
469
|
-
QUIRKS_MODE = !XML_DOCUMENT &&
|
470
|
-
typeof doc.compatMode == 'string' ?
|
471
|
-
doc.compatMode.indexOf('CSS') < 0 :
|
472
|
-
(function() {
|
473
|
-
var style = doc.createElement('div').style;
|
474
|
-
return style && (style.width = 1) && style.width == '1px';
|
475
|
-
})();
|
476
|
-
|
477
|
-
div = doc.createElement('div');
|
478
|
-
div.appendChild(doc.createElement('p')).setAttribute('class', 'xXx');
|
479
|
-
div.appendChild(doc.createElement('p')).setAttribute('class', 'xxx');
|
480
|
-
|
481
|
-
// GEBCN buggy in quirks mode, match count is:
|
482
|
-
// Firefox 3.0+ [xxx = 1, xXx = 1]
|
483
|
-
// Opera 10.63+ [xxx = 0, xXx = 2]
|
484
|
-
BUGGY_QUIRKS_GEBCN =
|
485
|
-
!XML_DOCUMENT && NATIVE_GEBCN && QUIRKS_MODE &&
|
486
|
-
(div.getElementsByClassName('xxx').length != 2 ||
|
487
|
-
div.getElementsByClassName('xXx').length != 2);
|
488
|
-
|
489
|
-
// QSAPI buggy in quirks mode, match count is:
|
490
|
-
// At least Chrome 4+, Firefox 3.5+, Opera 10.x+, Safari 4+ [xxx = 1, xXx = 2]
|
491
|
-
// Safari 3.2 QSA doesn't work with mixedcase in quirksmode [xxx = 1, xXx = 0]
|
492
|
-
// https://bugs.webkit.org/show_bug.cgi?id=19047
|
493
|
-
// must test the attribute selector '[class~=xxx]'
|
494
|
-
// before '.xXx' or the bug may not present itself
|
495
|
-
BUGGY_QUIRKS_QSAPI =
|
496
|
-
!XML_DOCUMENT && NATIVE_QSAPI && QUIRKS_MODE &&
|
497
|
-
(div.querySelectorAll('[class~=xxx]').length != 2 ||
|
498
|
-
div.querySelectorAll('.xXx').length != 2);
|
499
|
-
|
500
|
-
Config.CACHING && Dom.setCache(true, doc);
|
501
|
-
}
|
502
|
-
},
|
503
|
-
|
504
|
-
// convert single codepoint to UTF-16 encoding
|
505
|
-
codePointToUTF16 =
|
506
|
-
function(codePoint) {
|
507
|
-
// out of range, use replacement character
|
508
|
-
if (codePoint < 1 || codePoint > 0x10ffff ||
|
509
|
-
(codePoint > 0xd7ff && codePoint < 0xe000)) {
|
510
|
-
return '\\ufffd';
|
511
|
-
}
|
512
|
-
// javascript strings are UTF-16 encoded
|
513
|
-
if (codePoint < 0x10000) {
|
514
|
-
var lowHex = '000' + codePoint.toString(16);
|
515
|
-
return '\\u' + lowHex.substr(lowHex.length - 4);
|
516
|
-
}
|
517
|
-
// supplementary high + low surrogates
|
518
|
-
return '\\u' + (((codePoint - 0x10000) >> 0x0a) + 0xd800).toString(16) +
|
519
|
-
'\\u' + (((codePoint - 0x10000) % 0x400) + 0xdc00).toString(16);
|
520
|
-
},
|
521
|
-
|
522
|
-
// convert single codepoint to string
|
523
|
-
stringFromCodePoint =
|
524
|
-
function(codePoint) {
|
525
|
-
// out of range, use replacement character
|
526
|
-
if (codePoint < 1 || codePoint > 0x10ffff ||
|
527
|
-
(codePoint > 0xd7ff && codePoint < 0xe000)) {
|
528
|
-
return '\ufffd';
|
529
|
-
}
|
530
|
-
if (codePoint < 0x10000) {
|
531
|
-
return String.fromCharCode(codePoint);
|
532
|
-
}
|
533
|
-
return String.fromCodePoint ?
|
534
|
-
String.fromCodePoint(codePoint) :
|
535
|
-
String.fromCharCode(
|
536
|
-
((codePoint - 0x10000) >> 0x0a) + 0xd800,
|
537
|
-
((codePoint - 0x10000) % 0x400) + 0xdc00);
|
538
|
-
},
|
539
|
-
|
540
|
-
// convert escape sequence in a CSS string or identifier
|
541
|
-
// to javascript string with javascript escape sequences
|
542
|
-
convertEscapes =
|
543
|
-
function(str) {
|
544
|
-
return str.replace(reEscapedChars,
|
545
|
-
function(substring, p1, p2) {
|
546
|
-
// unescaped " or '
|
547
|
-
return p2 ? '\\' + p2 :
|
548
|
-
// javascript strings are UTF-16 encoded
|
549
|
-
/^[0-9a-fA-F]/.test(p1) ? codePointToUTF16(parseInt(p1, 16)) :
|
550
|
-
// \' \"
|
551
|
-
/^[\\\x22\x27]/.test(p1) ? substring :
|
552
|
-
// \g \h \. \# etc
|
553
|
-
p1;
|
554
|
-
}
|
555
|
-
);
|
556
|
-
},
|
557
|
-
|
558
|
-
// convert escape sequence in a CSS string or identifier
|
559
|
-
// to javascript string with characters representations
|
560
|
-
unescapeIdentifier =
|
561
|
-
function(str) {
|
562
|
-
return str.replace(reEscapedChars,
|
563
|
-
function(substring, p1, p2) {
|
564
|
-
// unescaped " or '
|
565
|
-
return p2 ? p2 :
|
566
|
-
// javascript strings are UTF-16 encoded
|
567
|
-
/^[0-9a-fA-F]/.test(p1) ? stringFromCodePoint(parseInt(p1, 16)) :
|
568
|
-
// \' \"
|
569
|
-
/^[\\\x22\x27]/.test(p1) ? substring :
|
570
|
-
// \g \h \. \# etc
|
571
|
-
p1;
|
572
|
-
}
|
573
|
-
);
|
574
|
-
},
|
575
|
-
|
576
|
-
/*------------------------------ DOM METHODS -------------------------------*/
|
577
|
-
|
578
|
-
// element by id (raw)
|
579
|
-
// @return reference or null
|
580
|
-
byIdRaw =
|
581
|
-
function(id, elements) {
|
582
|
-
var i = -1, element;
|
583
|
-
while ((element = elements[++i])) {
|
584
|
-
if (element.getAttribute('id') == id) {
|
585
|
-
break;
|
586
|
-
}
|
587
|
-
}
|
588
|
-
return element || null;
|
589
|
-
},
|
590
|
-
|
591
|
-
// element by id
|
592
|
-
// @return reference or null
|
593
|
-
_byId = !BUGGY_GEBID ?
|
594
|
-
function(id, from) {
|
595
|
-
id = (/\\/).test(id) ? unescapeIdentifier(id) : id;
|
596
|
-
return from.getElementById && from.getElementById(id) ||
|
597
|
-
byIdRaw(id, from.getElementsByTagName('*'));
|
598
|
-
} :
|
599
|
-
function(id, from) {
|
600
|
-
var element = null;
|
601
|
-
id = (/\\/).test(id) ? unescapeIdentifier(id) : id;
|
602
|
-
if (XML_DOCUMENT || from.nodeType != 9) {
|
603
|
-
return byIdRaw(id, from.getElementsByTagName('*'));
|
604
|
-
}
|
605
|
-
if ((element = from.getElementById(id)) &&
|
606
|
-
element.name == id && from.getElementsByName) {
|
607
|
-
return byIdRaw(id, from.getElementsByName(id));
|
608
|
-
}
|
609
|
-
return element;
|
610
|
-
},
|
611
|
-
|
612
|
-
// publicly exposed byId
|
613
|
-
// @return reference or null
|
614
|
-
byId =
|
615
|
-
function(id, from) {
|
616
|
-
from || (from = doc);
|
617
|
-
if (lastContext !== from) { switchContext(from); }
|
618
|
-
return _byId(id, from);
|
619
|
-
},
|
620
|
-
|
621
|
-
// elements by tag (raw)
|
622
|
-
// @return array
|
623
|
-
byTagRaw =
|
624
|
-
function(tag, from) {
|
625
|
-
var any = tag == '*', element = from, elements = [ ], next = element.firstChild;
|
626
|
-
any || (tag = tag.toUpperCase());
|
627
|
-
while ((element = next)) {
|
628
|
-
if (element.tagName > '@' && (any || element.tagName.toUpperCase() == tag)) {
|
629
|
-
elements[elements.length] = element;
|
630
|
-
}
|
631
|
-
if ((next = element.firstChild || element.nextSibling)) continue;
|
632
|
-
while (!next && (element = element.parentNode) && element !== from) {
|
633
|
-
next = element.nextSibling;
|
634
|
-
}
|
635
|
-
}
|
636
|
-
return elements;
|
637
|
-
},
|
638
|
-
|
639
|
-
// elements by tag
|
640
|
-
// @return array
|
641
|
-
_byTag = !BUGGY_GEBTN && NATIVE_SLICE_PROTO ?
|
642
|
-
function(tag, from) {
|
643
|
-
return XML_DOCUMENT || from.nodeType == 11 ? byTagRaw(tag, from) :
|
644
|
-
slice.call(from.getElementsByTagName(tag), 0);
|
645
|
-
} :
|
646
|
-
function(tag, from) {
|
647
|
-
var i = -1, j = i, data = [ ], element,
|
648
|
-
elements = XML_DOCUMENT || from.nodeType == 11 ?
|
649
|
-
byTagRaw(tag, from) : from.getElementsByTagName(tag);
|
650
|
-
if (tag == '*') {
|
651
|
-
while ((element = elements[++i])) {
|
652
|
-
if (element.nodeName > '@') {
|
653
|
-
data[++j] = element;
|
654
|
-
}
|
655
|
-
}
|
656
|
-
} else {
|
657
|
-
while ((element = elements[++i])) {
|
658
|
-
data[i] = element;
|
659
|
-
}
|
660
|
-
}
|
661
|
-
return data;
|
662
|
-
},
|
663
|
-
|
664
|
-
// publicly exposed byTag
|
665
|
-
// @return array
|
666
|
-
byTag =
|
667
|
-
function(tag, from) {
|
668
|
-
from || (from = doc);
|
669
|
-
if (lastContext !== from) { switchContext(from); }
|
670
|
-
return _byTag(tag, from);
|
671
|
-
},
|
672
|
-
|
673
|
-
// publicly exposed byName
|
674
|
-
// @return array
|
675
|
-
byName =
|
676
|
-
function(name, from) {
|
677
|
-
return select('[name="' + name.replace(/\\([^\\]{1})/g, '$1') + '"]', from);
|
678
|
-
},
|
679
|
-
|
680
|
-
// elements by class (raw)
|
681
|
-
// @return array
|
682
|
-
byClassRaw =
|
683
|
-
function(name, from) {
|
684
|
-
var i = -1, j = i, data = [ ], element, elements = _byTag('*', from), n;
|
685
|
-
name = ' ' + (QUIRKS_MODE ? name.toLowerCase() : name) + ' ';
|
686
|
-
while ((element = elements[++i])) {
|
687
|
-
n = XML_DOCUMENT ? element.getAttribute('class') : element.className;
|
688
|
-
if (n && n.length && (' ' + (QUIRKS_MODE ? n.toLowerCase() : n).
|
689
|
-
replace(reWhiteSpace, ' ') + ' ').indexOf(name) > -1) {
|
690
|
-
data[++j] = element;
|
691
|
-
}
|
692
|
-
}
|
693
|
-
return data;
|
694
|
-
},
|
695
|
-
|
696
|
-
// elements by class
|
697
|
-
// @return array
|
698
|
-
_byClass =
|
699
|
-
function(name, from) {
|
700
|
-
name = QUIRKS_MODE ? name.toLowerCase() : name;
|
701
|
-
name = (/\\/).test(name) ? unescapeIdentifier(name) : name;
|
702
|
-
return (BUGGY_GEBCN || BUGGY_QUIRKS_GEBCN || XML_DOCUMENT || !from.getElementsByClassName) ?
|
703
|
-
byClassRaw(name, from) : slice.call(from.getElementsByClassName(name));
|
704
|
-
},
|
705
|
-
|
706
|
-
// publicly exposed byClass
|
707
|
-
// @return array
|
708
|
-
byClass =
|
709
|
-
function(name, from) {
|
710
|
-
from || (from = doc);
|
711
|
-
if (lastContext !== from) { switchContext(from); }
|
712
|
-
return _byClass(name, from);
|
713
|
-
},
|
714
|
-
|
715
|
-
// check element is descendant of container
|
716
|
-
// @return boolean
|
717
|
-
contains = 'compareDocumentPosition' in root ?
|
718
|
-
function(container, element) {
|
719
|
-
return (container.compareDocumentPosition(element) & 16) == 16;
|
720
|
-
} : 'contains' in root ?
|
721
|
-
function(container, element) {
|
722
|
-
return container !== element && container.contains(element);
|
723
|
-
} :
|
724
|
-
function(container, element) {
|
725
|
-
while ((element = element.parentNode)) {
|
726
|
-
if (element === container) return true;
|
727
|
-
}
|
728
|
-
return false;
|
729
|
-
},
|
730
|
-
|
731
|
-
// attribute value
|
732
|
-
// @return string
|
733
|
-
getAttribute = !BUGGY_GET_ATTRIBUTE && !IE_LT_9 ?
|
734
|
-
function(node, attribute) {
|
735
|
-
return node.getAttribute(attribute);
|
736
|
-
} :
|
737
|
-
function(node, attribute) {
|
738
|
-
attribute = attribute.toLowerCase();
|
739
|
-
if (typeof node[attribute] == 'object') {
|
740
|
-
return node.attributes[attribute] &&
|
741
|
-
node.attributes[attribute].value;
|
742
|
-
}
|
743
|
-
return (
|
744
|
-
// 'type' can only be read by using native getAttribute
|
745
|
-
attribute == 'type' ? node.getAttribute(attribute) :
|
746
|
-
// specific URI data attributes (parameter 2 to fix IE bug)
|
747
|
-
ATTR_URIDATA[attribute] ? node.getAttribute(attribute, 2) :
|
748
|
-
// boolean attributes should return name instead of true/false
|
749
|
-
ATTR_BOOLEAN[attribute] ? node.getAttribute(attribute) ? attribute : 'false' :
|
750
|
-
(node = node.getAttributeNode(attribute)) && node.value);
|
751
|
-
},
|
752
|
-
|
753
|
-
// attribute presence
|
754
|
-
// @return boolean
|
755
|
-
hasAttribute = !BUGGY_HAS_ATTRIBUTE && !IE_LT_9 ?
|
756
|
-
function(node, attribute) {
|
757
|
-
return XML_DOCUMENT ?
|
758
|
-
!!node.getAttribute(attribute) :
|
759
|
-
node.hasAttribute(attribute);
|
760
|
-
} :
|
761
|
-
function(node, attribute) {
|
762
|
-
// read the node attribute object
|
763
|
-
var obj = node.getAttributeNode(attribute = attribute.toLowerCase());
|
764
|
-
return ATTR_DEFAULT[attribute] && attribute != 'value' ?
|
765
|
-
node[ATTR_DEFAULT[attribute]] : obj && obj.specified;
|
766
|
-
},
|
767
|
-
|
768
|
-
// check node emptyness
|
769
|
-
// @return boolean
|
770
|
-
isEmpty =
|
771
|
-
function(node) {
|
772
|
-
node = node.firstChild;
|
773
|
-
while (node) {
|
774
|
-
if (node.nodeType == 3 || node.nodeName > '@') return false;
|
775
|
-
node = node.nextSibling;
|
776
|
-
}
|
777
|
-
return true;
|
778
|
-
},
|
779
|
-
|
780
|
-
// check if element matches the :link pseudo
|
781
|
-
// @return boolean
|
782
|
-
isLink =
|
783
|
-
function(element) {
|
784
|
-
return hasAttribute(element,'href') && LINK_NODES[element.nodeName];
|
785
|
-
},
|
786
|
-
|
787
|
-
// child position by nodeType
|
788
|
-
// @return number
|
789
|
-
nthElement =
|
790
|
-
function(element, last) {
|
791
|
-
var count = 1, succ = last ? 'nextSibling' : 'previousSibling';
|
792
|
-
while ((element = element[succ])) {
|
793
|
-
if (element.nodeName > '@') ++count;
|
794
|
-
}
|
795
|
-
return count;
|
796
|
-
},
|
797
|
-
|
798
|
-
// child position by nodeName
|
799
|
-
// @return number
|
800
|
-
nthOfType =
|
801
|
-
function(element, last) {
|
802
|
-
var count = 1, succ = last ? 'nextSibling' : 'previousSibling', type = element.nodeName;
|
803
|
-
while ((element = element[succ])) {
|
804
|
-
if (element.nodeName == type) ++count;
|
805
|
-
}
|
806
|
-
return count;
|
807
|
-
},
|
808
|
-
|
809
|
-
/*------------------------------- DEBUGGING --------------------------------*/
|
810
|
-
|
811
|
-
// get/set (string/object) working modes
|
812
|
-
configure =
|
813
|
-
function(option) {
|
814
|
-
if (typeof option == 'string') { return !!Config[option]; }
|
815
|
-
if (typeof option != 'object') { return Config; }
|
816
|
-
for (var i in option) {
|
817
|
-
Config[i] = !!option[i];
|
818
|
-
if (i == 'SIMPLENOT') {
|
819
|
-
matchContexts = { };
|
820
|
-
matchResolvers = { };
|
821
|
-
selectContexts = { };
|
822
|
-
selectResolvers = { };
|
823
|
-
if (!Config[i]) { Config['USE_QSAPI'] = false; }
|
824
|
-
} else if (i == 'USE_QSAPI') {
|
825
|
-
Config[i] = !!option[i] && NATIVE_QSAPI;
|
826
|
-
}
|
827
|
-
}
|
828
|
-
setIdentifierSyntax();
|
829
|
-
reValidator = RegExp(Config.SIMPLENOT ?
|
830
|
-
standardValidator : extendedValidator);
|
831
|
-
return true;
|
832
|
-
},
|
833
|
-
|
834
|
-
// control user notifications
|
835
|
-
emit =
|
836
|
-
function(message) {
|
837
|
-
if (Config.VERBOSITY) { throw Error(message); }
|
838
|
-
if (console && console.log) {
|
839
|
-
console.log(message);
|
840
|
-
}
|
841
|
-
},
|
842
|
-
|
843
|
-
Config = {
|
844
|
-
|
845
|
-
// used to enable/disable caching of result sets
|
846
|
-
CACHING: false,
|
847
|
-
|
848
|
-
// used to enable/disable CSS escaped identifiers
|
849
|
-
ESCAPECHR: true,
|
850
|
-
|
851
|
-
// add non-ascii (utf-8) to the identifier syntax RE
|
852
|
-
NON_ASCII: true,
|
853
|
-
|
854
|
-
// switch between CSS2 and CSS3 identifier syntax RE
|
855
|
-
SELECTOR3: true,
|
856
|
-
|
857
|
-
// add Unicode (utf-16) to the identifier syntax RE
|
858
|
-
UNICODE16: true,
|
859
|
-
|
860
|
-
// by default do not add missing left/right context
|
861
|
-
// to selector string shortcuts like "+div" or "ul>"
|
862
|
-
// callable Dom.shortcuts method has to be available
|
863
|
-
SHORTCUTS: false,
|
864
|
-
|
865
|
-
// by default disable complex selectors nested in
|
866
|
-
// ':not()' pseudo-classes, as for specifications
|
867
|
-
SIMPLENOT: true,
|
868
|
-
|
869
|
-
// strict QSA match all non-unique IDs (false)
|
870
|
-
// speed & libs compat match unique ID (true)
|
871
|
-
UNIQUE_ID: true,
|
872
|
-
|
873
|
-
// HTML5 handling for the ":checked" pseudo-class
|
874
|
-
USE_HTML5: true,
|
875
|
-
|
876
|
-
// controls enabling the Query Selector API branch
|
877
|
-
USE_QSAPI: NATIVE_QSAPI,
|
878
|
-
|
879
|
-
// controls the engine error/warning notifications
|
880
|
-
VERBOSITY: true
|
881
|
-
|
882
|
-
},
|
883
|
-
|
884
|
-
/*---------------------------- COMPILER METHODS ----------------------------*/
|
885
|
-
|
886
|
-
// init REs and context
|
887
|
-
initialize =
|
888
|
-
function(doc) {
|
889
|
-
setIdentifierSyntax();
|
890
|
-
switchContext(doc, true);
|
891
|
-
},
|
892
|
-
|
893
|
-
// set/reset default identifier syntax
|
894
|
-
// based on user configuration options
|
895
|
-
// rebuild the validator and other REs
|
896
|
-
setIdentifierSyntax =
|
897
|
-
function() {
|
898
|
-
|
899
|
-
var syntax = '', start = Config['SELECTOR3'] ? '-{2}|' : '';
|
900
|
-
|
901
|
-
Config['NON_ASCII'] && (syntax += '|' + non_asc_chr);
|
902
|
-
Config['UNICODE16'] && (syntax += '|' + unicode_chr);
|
903
|
-
Config['ESCAPECHR'] && (syntax += '|' + escaped_chr);
|
904
|
-
|
905
|
-
syntax += (Config['UNICODE16'] || Config['ESCAPECHR']) ? '' : '|' + any_esc_chr;
|
906
|
-
|
907
|
-
identifier = '-?(?:' + start + alphalodash + syntax + ')(?:-|[0-9]|' + alphalodash + syntax + ')*';
|
908
|
-
|
909
|
-
// build attribute string
|
910
|
-
attrcheck = '(' + quotedvalue + '|' + identifier + ')';
|
911
|
-
attributes = whitespace + '*(' + identifier + ':?' + identifier + ')' +
|
912
|
-
whitespace + '*(?:' + operators + whitespace + '*' + attrcheck + ')?' + whitespace + '*';
|
913
|
-
attrmatcher = attributes.replace(attrcheck, '([\\x22\\x27]*)((?:\\\\?.)*?)\\3');
|
914
|
-
|
915
|
-
// build pseudoclass string
|
916
|
-
pseudoclass = '((?:' +
|
917
|
-
// an+b parameters or quoted string
|
918
|
-
pseudoparms + '|' + quotedvalue + '|' +
|
919
|
-
// id, class, pseudo-class selector
|
920
|
-
prefixes + identifier + '|' +
|
921
|
-
// nested HTML attribute selector
|
922
|
-
'\\[' + attributes + '\\]|' +
|
923
|
-
// nested pseudo-class selector
|
924
|
-
'\\(.+\\)|' + whitespace + '*|' +
|
925
|
-
// nested pseudos/separators
|
926
|
-
',)+)';
|
927
|
-
|
928
|
-
// CSS3: syntax scanner and
|
929
|
-
// one pass validation only
|
930
|
-
// using regular expression
|
931
|
-
standardValidator =
|
932
|
-
// discard start
|
933
|
-
'(?=[\\x20\\t\\n\\r\\f]*[^>+~(){}<>])' +
|
934
|
-
// open match group
|
935
|
-
'(' +
|
936
|
-
//universal selector
|
937
|
-
'\\*' +
|
938
|
-
// id/class/tag/pseudo-class identifier
|
939
|
-
'|(?:' + prefixes + identifier + ')' +
|
940
|
-
// combinator selector
|
941
|
-
'|' + combinators +
|
942
|
-
// HTML attribute selector
|
943
|
-
'|\\[' + attributes + '\\]' +
|
944
|
-
// pseudo-classes parameters
|
945
|
-
'|\\(' + pseudoclass + '\\)' +
|
946
|
-
// dom properties selector (extension)
|
947
|
-
'|\\{' + extensions + '\\}' +
|
948
|
-
// selector group separator (comma)
|
949
|
-
'|(?:,|' + whitespace + '*)' +
|
950
|
-
// close match group
|
951
|
-
')+';
|
952
|
-
|
953
|
-
// only allow simple selectors nested in ':not()' pseudo-classes
|
954
|
-
reSimpleNot = RegExp('^(' +
|
955
|
-
'(?!:not)' +
|
956
|
-
'(' + prefixes + identifier +
|
957
|
-
'|\\([^()]*\\))+' +
|
958
|
-
'|\\[' + attributes + '\\]' +
|
959
|
-
')$');
|
960
|
-
|
961
|
-
// split last, right most, selector group token
|
962
|
-
reSplitToken = RegExp('(' +
|
963
|
-
prefixes + identifier + '|' +
|
964
|
-
'\\[' + attributes + '\\]|' +
|
965
|
-
'\\(' + pseudoclass + '\\)|' +
|
966
|
-
'\\\\.|[^\\x20\\t\\n\\r\\f>+~])+', 'g');
|
967
|
-
|
968
|
-
reOptimizeSelector = RegExp(identifier + '|^$');
|
969
|
-
|
970
|
-
reSimpleSelector = RegExp(
|
971
|
-
BUGGY_GEBTN && BUGGY_GEBCN || OPERA ?
|
972
|
-
'^#?' + identifier + '$' : BUGGY_GEBTN ?
|
973
|
-
'^[.#]?' + identifier + '$' : BUGGY_GEBCN ?
|
974
|
-
'^(?:\\*|#' + identifier + ')$' :
|
975
|
-
'^(?:\\*|[.#]?' + identifier + ')$');
|
976
|
-
|
977
|
-
// matches class selectors
|
978
|
-
reClass = RegExp('(?:\\[[\\x20\\t\\n\\r\\f]*class\\b|\\.' + identifier + ')');
|
979
|
-
|
980
|
-
Optimize = {
|
981
|
-
ID: RegExp('^\\*?#(' + identifier + ')|' + skip_groups),
|
982
|
-
TAG: RegExp('^(' + identifier + ')|' + skip_groups),
|
983
|
-
CLASS: RegExp('^\\.(' + identifier + '$)|' + skip_groups)
|
984
|
-
};
|
985
|
-
|
986
|
-
Patterns.id = RegExp('^#(' + identifier + ')(.*)');
|
987
|
-
Patterns.tagName = RegExp('^(' + identifier + ')(.*)');
|
988
|
-
Patterns.className = RegExp('^\\.(' + identifier + ')(.*)');
|
989
|
-
Patterns.attribute = RegExp('^\\[' + attrmatcher + '\\](.*)');
|
990
|
-
|
991
|
-
Tokens.identifier = identifier;
|
992
|
-
Tokens.attributes = attributes;
|
993
|
-
|
994
|
-
// validator for complex selectors in ':not()' pseudo-classes
|
995
|
-
extendedValidator = standardValidator.replace(pseudoclass, '.*');
|
996
|
-
|
997
|
-
// validator for standard selectors as default
|
998
|
-
reValidator = RegExp(standardValidator);
|
999
|
-
},
|
1000
|
-
|
1001
|
-
// code string reused to build compiled functions
|
1002
|
-
ACCEPT_NODE = 'r[r.length]=c[k];if(f&&false===f(c[k]))break main;else continue main;',
|
1003
|
-
|
1004
|
-
// compile a comma separated group of selector
|
1005
|
-
// @mode boolean true for select, false for match
|
1006
|
-
// return a compiled function
|
1007
|
-
compile =
|
1008
|
-
function(selector, source, mode) {
|
1009
|
-
|
1010
|
-
var parts = typeof selector == 'string' ? selector.match(reSplitGroup) : selector;
|
1011
|
-
|
1012
|
-
// ensures that source is a string
|
1013
|
-
typeof source == 'string' || (source = '');
|
1014
|
-
|
1015
|
-
if (parts.length == 1) {
|
1016
|
-
source += compileSelector(parts[0], mode ? ACCEPT_NODE : 'f&&f(k);return true;', mode);
|
1017
|
-
} else {
|
1018
|
-
// for each selector in the group
|
1019
|
-
var i = -1, seen = { }, token;
|
1020
|
-
while ((token = parts[++i])) {
|
1021
|
-
token = token.replace(reTrimSpaces, '');
|
1022
|
-
// avoid repeating the same token
|
1023
|
-
// in comma separated group (p, p)
|
1024
|
-
if (!seen[token] && (seen[token] = true)) {
|
1025
|
-
source += compileSelector(token, mode ? ACCEPT_NODE : 'f&&f(k);return true;', mode);
|
1026
|
-
}
|
1027
|
-
}
|
1028
|
-
}
|
1029
|
-
|
1030
|
-
if (mode) {
|
1031
|
-
// for select method
|
1032
|
-
return Function('c,s,r,d,h,g,f,v',
|
1033
|
-
'var N,n,x=0,k=-1,e;main:while((e=c[++k])){' + source + '}return r;');
|
1034
|
-
} else {
|
1035
|
-
// for match method
|
1036
|
-
return Function('e,s,r,d,h,g,f,v',
|
1037
|
-
'var N,n,x=0,k=e;' + source + 'return false;');
|
1038
|
-
}
|
1039
|
-
},
|
1040
|
-
|
1041
|
-
// allows to cache already visited nodes
|
1042
|
-
FILTER =
|
1043
|
-
'var z=v[@]||(v[@]=[]),l=z.length-1;' +
|
1044
|
-
'while(l>=0&&z[l]!==e)--l;' +
|
1045
|
-
'if(l!==-1){break;}' +
|
1046
|
-
'z[z.length]=e;',
|
1047
|
-
|
1048
|
-
// compile a CSS3 string selector into ad-hoc javascript matching function
|
1049
|
-
// @return string (to be compiled)
|
1050
|
-
compileSelector =
|
1051
|
-
function(selector, source, mode) {
|
1052
|
-
|
1053
|
-
var a, b, n, k = 0, expr, match, result, status, test, type;
|
1054
|
-
|
1055
|
-
while (selector) {
|
1056
|
-
|
1057
|
-
k++;
|
1058
|
-
|
1059
|
-
// *** Universal selector
|
1060
|
-
// * match all (empty block, do not remove)
|
1061
|
-
if ((match = selector.match(Patterns.universal))) {
|
1062
|
-
// do nothing, handled in the compiler where
|
1063
|
-
// BUGGY_GEBTN return comment nodes (ex: IE)
|
1064
|
-
expr = '';
|
1065
|
-
}
|
1066
|
-
|
1067
|
-
// *** ID selector
|
1068
|
-
// #Foo Id case sensitive
|
1069
|
-
else if ((match = selector.match(Patterns.id))) {
|
1070
|
-
// document can contain conflicting elements (id/name)
|
1071
|
-
// prototype selector unit need this method to recover bad HTML forms
|
1072
|
-
match[1] = (/\\/).test(match[1]) ? convertEscapes(match[1]) : match[1];
|
1073
|
-
source = 'if(' + (XML_DOCUMENT ?
|
1074
|
-
's.getAttribute(e,"id")' :
|
1075
|
-
'(e.submit?s.getAttribute(e,"id"):e.id)') +
|
1076
|
-
'=="' + match[1] + '"' +
|
1077
|
-
'){' + source + '}';
|
1078
|
-
}
|
1079
|
-
|
1080
|
-
// *** Type selector
|
1081
|
-
// Foo Tag (case insensitive)
|
1082
|
-
else if ((match = selector.match(Patterns.tagName))) {
|
1083
|
-
// both tagName and nodeName properties may be upper/lower case
|
1084
|
-
// depending on their creation NAMESPACE in createElementNS()
|
1085
|
-
source = 'if(e.nodeName' + (XML_DOCUMENT ?
|
1086
|
-
'=="' + match[1] + '"' : '.toUpperCase()' +
|
1087
|
-
'=="' + match[1].toUpperCase() + '"') +
|
1088
|
-
'){' + source + '}';
|
1089
|
-
}
|
1090
|
-
|
1091
|
-
// *** Class selector
|
1092
|
-
// .Foo Class (case sensitive)
|
1093
|
-
else if ((match = selector.match(Patterns.className))) {
|
1094
|
-
// W3C CSS3 specs: element whose "class" attribute has been assigned a
|
1095
|
-
// list of whitespace-separated values, see section 6.4 Class selectors
|
1096
|
-
// and notes at the bottom; explicitly non-normative in this specification.
|
1097
|
-
match[1] = (/\\/).test(match[1]) ? convertEscapes(match[1]) : match[1];
|
1098
|
-
match[1] = QUIRKS_MODE ? match[1].toLowerCase() : match[1];
|
1099
|
-
source = 'if((n=' + (XML_DOCUMENT ?
|
1100
|
-
's.getAttribute(e,"class")' : 'e.className') +
|
1101
|
-
')&&n.length&&(" "+' + (QUIRKS_MODE ? 'n.toLowerCase()' : 'n') +
|
1102
|
-
'.replace(/' + whitespace + '+/g," ")+" ").indexOf(" ' + match[1] + ' ")>-1' +
|
1103
|
-
'){' + source + '}';
|
1104
|
-
}
|
1105
|
-
|
1106
|
-
// *** Attribute selector
|
1107
|
-
// [attr] [attr=value] [attr="value"] [attr='value'] and !=, *=, ~=, |=, ^=, $=
|
1108
|
-
// case sensitivity is treated differently depending on the document type (see map)
|
1109
|
-
else if ((match = selector.match(Patterns.attribute))) {
|
1110
|
-
|
1111
|
-
// xml namespaced attribute ?
|
1112
|
-
expr = match[1].split(':');
|
1113
|
-
expr = expr.length == 2 ? expr[1] : expr[0] + '';
|
1114
|
-
|
1115
|
-
if (match[2] && !Operators[match[2]]) {
|
1116
|
-
emit('Unsupported operator in attribute selectors "' + selector + '"');
|
1117
|
-
return '';
|
1118
|
-
}
|
1119
|
-
|
1120
|
-
test = 'false';
|
1121
|
-
|
1122
|
-
// replace Operators parameter if needed
|
1123
|
-
if (match[2] && match[4] && (test = Operators[match[2]])) {
|
1124
|
-
match[4] = (/\\/).test(match[4]) ? convertEscapes(match[4]) : match[4];
|
1125
|
-
// case treatment depends on document
|
1126
|
-
HTML_TABLE['class'] = QUIRKS_MODE ? 1 : 0;
|
1127
|
-
type = (XML_DOCUMENT ? XHTML_TABLE : HTML_TABLE)[expr.toLowerCase()];
|
1128
|
-
test = test.replace(/\%m/g, type ? match[4].toLowerCase() : match[4]);
|
1129
|
-
} else if (match[2] == '!=' || match[2] == '=') {
|
1130
|
-
test = 'n' + match[2] + '=""';
|
1131
|
-
}
|
1132
|
-
|
1133
|
-
source = 'if(n=s.hasAttribute(e,"' + match[1] + '")){' +
|
1134
|
-
(match[2] ? 'n=s.getAttribute(e,"' + match[1] + '")' : '') +
|
1135
|
-
(type && match[2] ? '.toLowerCase();' : ';') +
|
1136
|
-
'if(' + (match[2] ? test : 'n') + '){' + source + '}}';
|
1137
|
-
|
1138
|
-
}
|
1139
|
-
|
1140
|
-
// *** Adjacent sibling combinator
|
1141
|
-
// E + F (F adiacent sibling of E)
|
1142
|
-
else if ((match = selector.match(Patterns.adjacent))) {
|
1143
|
-
source = (mode ? '' : FILTER.replace(/@/g, k)) + source;
|
1144
|
-
source = NATIVE_TRAVERSAL_API ?
|
1145
|
-
'var N' + k + '=e;while(e&&(e=e.previousElementSibling)){' + source + 'break;}e=N' + k + ';' :
|
1146
|
-
'var N' + k + '=e;while(e&&(e=e.previousSibling)){if(e.nodeName>"@"){' + source + 'break;}}e=N' + k + ';';
|
1147
|
-
}
|
1148
|
-
|
1149
|
-
// *** General sibling combinator
|
1150
|
-
// E ~ F (F relative sibling of E)
|
1151
|
-
else if ((match = selector.match(Patterns.relative))) {
|
1152
|
-
source = (mode ? '' : FILTER.replace(/@/g, k)) + source;
|
1153
|
-
source = NATIVE_TRAVERSAL_API ?
|
1154
|
-
('var N' + k + '=e;e=e.parentNode.firstElementChild;' +
|
1155
|
-
'while(e&&e!==N' + k + '){' + source + 'e=e.nextElementSibling;}e=N' + k + ';') :
|
1156
|
-
('var N' + k + '=e;e=e.parentNode.firstChild;' +
|
1157
|
-
'while(e&&e!==N' + k + '){if(e.nodeName>"@"){' + source + '}e=e.nextSibling;}e=N' + k + ';');
|
1158
|
-
}
|
1159
|
-
|
1160
|
-
// *** Child combinator
|
1161
|
-
// E > F (F children of E)
|
1162
|
-
else if ((match = selector.match(Patterns.children))) {
|
1163
|
-
source = (mode ? '' : FILTER.replace(/@/g, k)) + source;
|
1164
|
-
source = 'var N' + k + '=e;while(e&&e!==h&&e!==g&&(e=e.parentNode)){' + source + 'break;}e=N' + k + ';';
|
1165
|
-
}
|
1166
|
-
|
1167
|
-
// *** Descendant combinator
|
1168
|
-
// E F (E ancestor of F)
|
1169
|
-
else if ((match = selector.match(Patterns.ancestor))) {
|
1170
|
-
source = (mode ? '' : FILTER.replace(/@/g, k)) + source;
|
1171
|
-
source = 'var N' + k + '=e;while(e&&e!==h&&e!==g&&(e=e.parentNode)){' + source + '}e=N' + k + ';';
|
1172
|
-
}
|
1173
|
-
|
1174
|
-
// *** Structural pseudo-classes
|
1175
|
-
// :root, :empty,
|
1176
|
-
// :first-child, :last-child, :only-child,
|
1177
|
-
// :first-of-type, :last-of-type, :only-of-type,
|
1178
|
-
// :nth-child(), :nth-last-child(), :nth-of-type(), :nth-last-of-type()
|
1179
|
-
else if ((match = selector.match(Patterns.spseudos)) && match[1]) {
|
1180
|
-
|
1181
|
-
switch (match[1]) {
|
1182
|
-
case 'root':
|
1183
|
-
// element root of the document
|
1184
|
-
if (match[3]) {
|
1185
|
-
source = 'if(e===h||s.contains(h,e)){' + source + '}';
|
1186
|
-
} else {
|
1187
|
-
source = 'if(e===h){' + source + '}';
|
1188
|
-
}
|
1189
|
-
break;
|
1190
|
-
|
1191
|
-
case 'empty':
|
1192
|
-
// element that has no children
|
1193
|
-
source = 'if(s.isEmpty(e)){' + source + '}';
|
1194
|
-
break;
|
1195
|
-
|
1196
|
-
default:
|
1197
|
-
if (match[1] && match[2]) {
|
1198
|
-
if (match[2] == 'n') {
|
1199
|
-
source = 'if(e!==h){' + source + '}';
|
1200
|
-
break;
|
1201
|
-
} else if (match[2] == 'even') {
|
1202
|
-
a = 2;
|
1203
|
-
b = 0;
|
1204
|
-
} else if (match[2] == 'odd') {
|
1205
|
-
a = 2;
|
1206
|
-
b = 1;
|
1207
|
-
} else {
|
1208
|
-
// assumes correct "an+b" format, "b" before "a" to keep "n" values
|
1209
|
-
b = ((n = match[2].match(/(-?\d+)$/)) ? parseInt(n[1], 10) : 0);
|
1210
|
-
a = ((n = match[2].match(/(-?\d*)n/i)) ? parseInt(n[1], 10) : 0);
|
1211
|
-
if (n && n[1] == '-') a = -1;
|
1212
|
-
}
|
1213
|
-
|
1214
|
-
// build test expression out of structural pseudo (an+b) parameters
|
1215
|
-
// see here: http://www.w3.org/TR/css3-selectors/#nth-child-pseudo
|
1216
|
-
test = a > 1 ?
|
1217
|
-
(/last/i.test(match[1])) ? '(n-(' + b + '))%' + a + '==0' :
|
1218
|
-
'n>=' + b + '&&(n-(' + b + '))%' + a + '==0' : a < -1 ?
|
1219
|
-
(/last/i.test(match[1])) ? '(n-(' + b + '))%' + a + '==0' :
|
1220
|
-
'n<=' + b + '&&(n-(' + b + '))%' + a + '==0' : a === 0 ?
|
1221
|
-
'n==' + b : a == -1 ? 'n<=' + b : 'n>=' + b;
|
1222
|
-
|
1223
|
-
// 4 cases: 1 (nth) x 4 (child, of-type, last-child, last-of-type)
|
1224
|
-
source =
|
1225
|
-
'if(e!==h){' +
|
1226
|
-
'n=s[' + (/-of-type/i.test(match[1]) ? '"nthOfType"' : '"nthElement"') + ']' +
|
1227
|
-
'(e,' + (/last/i.test(match[1]) ? 'true' : 'false') + ');' +
|
1228
|
-
'if(' + test + '){' + source + '}' +
|
1229
|
-
'}';
|
1230
|
-
|
1231
|
-
} else {
|
1232
|
-
// 6 cases: 3 (first, last, only) x 1 (child) x 2 (-of-type)
|
1233
|
-
a = /first/i.test(match[1]) ? 'previous' : 'next';
|
1234
|
-
n = /only/i.test(match[1]) ? 'previous' : 'next';
|
1235
|
-
b = /first|last/i.test(match[1]);
|
1236
|
-
|
1237
|
-
type = /-of-type/i.test(match[1]) ? '&&n.nodeName!=e.nodeName' : '&&n.nodeName<"@"';
|
1238
|
-
|
1239
|
-
source = 'if(e!==h){' +
|
1240
|
-
( 'n=e;while((n=n.' + a + 'Sibling)' + type + ');if(!n){' + (b ? source :
|
1241
|
-
'n=e;while((n=n.' + n + 'Sibling)' + type + ');if(!n){' + source + '}') + '}' ) + '}';
|
1242
|
-
}
|
1243
|
-
break;
|
1244
|
-
}
|
1245
|
-
|
1246
|
-
}
|
1247
|
-
|
1248
|
-
// *** negation, user action and target pseudo-classes
|
1249
|
-
// *** UI element states and dynamic pseudo-classes
|
1250
|
-
// CSS3 :not, :checked, :enabled, :disabled, :target
|
1251
|
-
// CSS3 :active, :hover, :focus
|
1252
|
-
// CSS3 :link, :visited
|
1253
|
-
else if ((match = selector.match(Patterns.dpseudos)) && match[1]) {
|
1254
|
-
|
1255
|
-
switch (match[1].match(/^\w+/)[0]) {
|
1256
|
-
// CSS3 negation pseudo-class
|
1257
|
-
case 'not':
|
1258
|
-
// compile nested selectors, DO NOT pass the callback parameter
|
1259
|
-
// SIMPLENOT allow disabling complex selectors nested
|
1260
|
-
// in ':not()' pseudo-classes, breaks some test units
|
1261
|
-
expr = match[3].replace(reTrimSpaces, '');
|
1262
|
-
|
1263
|
-
if (Config.SIMPLENOT && !reSimpleNot.test(expr)) {
|
1264
|
-
// see above, log error but continue execution
|
1265
|
-
emit('Negation pseudo-class only accepts simple selectors "' + selector + '"');
|
1266
|
-
return '';
|
1267
|
-
} else {
|
1268
|
-
if ('compatMode' in doc) {
|
1269
|
-
source = 'if(!' + compile(expr, '', false) + '(e,s,r,d,h,g)){' + source + '}';
|
1270
|
-
} else {
|
1271
|
-
source = 'if(!s.match(e, "' + expr.replace(/\x22/g, '\\"') + '",g)){' + source +'}';
|
1272
|
-
}
|
1273
|
-
}
|
1274
|
-
break;
|
1275
|
-
|
1276
|
-
// CSS3 UI element states
|
1277
|
-
case 'checked':
|
1278
|
-
// for radio buttons checkboxes (HTML4) and options (HTML5)
|
1279
|
-
source = 'if((typeof e.form!=="undefined"&&(/^(?:radio|checkbox)$/i).test(e.type)&&e.checked)' +
|
1280
|
-
(Config.USE_HTML5 ? '||(/^option$/i.test(e.nodeName)&&(e.selected||e.checked))' : '') +
|
1281
|
-
'){' + source + '}';
|
1282
|
-
break;
|
1283
|
-
case 'disabled':
|
1284
|
-
// does not consider hidden input fields
|
1285
|
-
source = 'if(((typeof e.form!=="undefined"' +
|
1286
|
-
(Config.USE_HTML5 ? '' : '&&!(/^hidden$/i).test(e.type)') +
|
1287
|
-
')||s.isLink(e))&&e.disabled===true){' + source + '}';
|
1288
|
-
break;
|
1289
|
-
case 'enabled':
|
1290
|
-
// does not consider hidden input fields
|
1291
|
-
source = 'if(((typeof e.form!=="undefined"' +
|
1292
|
-
(Config.USE_HTML5 ? '' : '&&!(/^hidden$/i).test(e.type)') +
|
1293
|
-
')||s.isLink(e))&&e.disabled===false){' + source + '}';
|
1294
|
-
break;
|
1295
|
-
|
1296
|
-
// CSS3 lang pseudo-class
|
1297
|
-
case 'lang':
|
1298
|
-
test = '';
|
1299
|
-
if (match[2]) test = match[2].substr(0, 2) + '-';
|
1300
|
-
source = 'do{(n=e.lang||"").toLowerCase();' +
|
1301
|
-
'if((n==""&&h.lang=="' + match[2].toLowerCase() + '")||' +
|
1302
|
-
'(n&&(n=="' + match[2].toLowerCase() +
|
1303
|
-
'"||n.substr(0,3)=="' + test.toLowerCase() + '")))' +
|
1304
|
-
'{' + source + 'break;}}while((e=e.parentNode)&&e!==g);';
|
1305
|
-
break;
|
1306
|
-
|
1307
|
-
// CSS3 target pseudo-class
|
1308
|
-
case 'target':
|
1309
|
-
source = 'if(e.id==d.location.hash.slice(1)){' + source + '}';
|
1310
|
-
break;
|
1311
|
-
|
1312
|
-
// CSS3 dynamic pseudo-classes
|
1313
|
-
case 'link':
|
1314
|
-
source = 'if(s.isLink(e)&&!e.visited){' + source + '}';
|
1315
|
-
break;
|
1316
|
-
case 'visited':
|
1317
|
-
source = 'if(s.isLink(e)&&e.visited){' + source + '}';
|
1318
|
-
break;
|
1319
|
-
|
1320
|
-
// CSS3 user action pseudo-classes IE & FF3 have native support
|
1321
|
-
// these capabilities may be emulated by some event managers
|
1322
|
-
case 'active':
|
1323
|
-
if (XML_DOCUMENT) break;
|
1324
|
-
source = 'if(e===d.activeElement){' + source + '}';
|
1325
|
-
break;
|
1326
|
-
case 'hover':
|
1327
|
-
if (XML_DOCUMENT) break;
|
1328
|
-
source = 'if(e===d.hoverElement){' + source + '}';
|
1329
|
-
break;
|
1330
|
-
case 'focus':
|
1331
|
-
if (XML_DOCUMENT) break;
|
1332
|
-
source = NATIVE_FOCUS ?
|
1333
|
-
'if(e===d.activeElement&&d.hasFocus()&&(e.type||e.href||typeof e.tabIndex=="number")){' + source + '}' :
|
1334
|
-
'if(e===d.activeElement&&(e.type||e.href)){' + source + '}';
|
1335
|
-
break;
|
1336
|
-
|
1337
|
-
// CSS2 selected pseudo-classes, not part of current CSS3 drafts
|
1338
|
-
// the 'selected' property is only available for option elements
|
1339
|
-
case 'selected':
|
1340
|
-
// fix Safari selectedIndex property bug
|
1341
|
-
expr = BUGGY_SELECTED ? '||(n=e.parentNode)&&n.options[n.selectedIndex]===e' : '';
|
1342
|
-
source = 'if(/^option$/i.test(e.nodeName)&&(e.selected||e.checked' + expr + ')){' + source + '}';
|
1343
|
-
break;
|
1344
|
-
|
1345
|
-
default:
|
1346
|
-
break;
|
1347
|
-
}
|
1348
|
-
|
1349
|
-
}
|
1350
|
-
|
1351
|
-
else {
|
1352
|
-
|
1353
|
-
// this is where external extensions are
|
1354
|
-
// invoked if expressions match selectors
|
1355
|
-
expr = false;
|
1356
|
-
status = false;
|
1357
|
-
for (expr in Selectors) {
|
1358
|
-
if ((match = selector.match(Selectors[expr].Expression)) && match[1]) {
|
1359
|
-
result = Selectors[expr].Callback(match, source);
|
1360
|
-
source = result.source;
|
1361
|
-
status = result.status;
|
1362
|
-
if (status) { break; }
|
1363
|
-
}
|
1364
|
-
}
|
1365
|
-
|
1366
|
-
// if an extension fails to parse the selector
|
1367
|
-
// it must return a false boolean in "status"
|
1368
|
-
if (!status) {
|
1369
|
-
// log error but continue execution, don't throw real exceptions
|
1370
|
-
// because blocking following processes maybe is not a good idea
|
1371
|
-
emit('Unknown pseudo-class selector "' + selector + '"');
|
1372
|
-
return '';
|
1373
|
-
}
|
1374
|
-
|
1375
|
-
if (!expr) {
|
1376
|
-
// see above, log error but continue execution
|
1377
|
-
emit('Unknown token in selector "' + selector + '"');
|
1378
|
-
return '';
|
1379
|
-
}
|
1380
|
-
|
1381
|
-
}
|
1382
|
-
|
1383
|
-
// error if no matches found by the pattern scan
|
1384
|
-
if (!match) {
|
1385
|
-
emit('Invalid syntax in selector "' + selector + '"');
|
1386
|
-
return '';
|
1387
|
-
}
|
1388
|
-
|
1389
|
-
// ensure "match" is not null or empty since
|
1390
|
-
// we do not throw real DOMExceptions above
|
1391
|
-
selector = match && match[match.length - 1];
|
1392
|
-
}
|
1393
|
-
|
1394
|
-
return source;
|
1395
|
-
},
|
1396
|
-
|
1397
|
-
/*----------------------------- QUERY METHODS ------------------------------*/
|
1398
|
-
|
1399
|
-
// match element with selector
|
1400
|
-
// @return boolean
|
1401
|
-
match =
|
1402
|
-
function(element, selector, from, callback) {
|
1403
|
-
|
1404
|
-
var parts;
|
1405
|
-
|
1406
|
-
if (!(element && element.nodeType == 1)) {
|
1407
|
-
emit('Invalid element argument');
|
1408
|
-
return false;
|
1409
|
-
} else if (typeof selector != 'string') {
|
1410
|
-
emit('Invalid selector argument');
|
1411
|
-
return false;
|
1412
|
-
} else if (from && from.nodeType == 1 && !contains(from, element)) {
|
1413
|
-
return false;
|
1414
|
-
} else if (lastContext !== from) {
|
1415
|
-
// reset context data when it changes
|
1416
|
-
// and ensure context is set to a default
|
1417
|
-
switchContext(from || (from = element.ownerDocument));
|
1418
|
-
}
|
1419
|
-
|
1420
|
-
// normalize the selector string, remove [\n\r\f]
|
1421
|
-
// whitespace, replace codepoints 0 with '\ufffd'
|
1422
|
-
// trim non-relevant leading/trailing whitespaces
|
1423
|
-
selector = selector.
|
1424
|
-
replace(reTrimSpaces, '').
|
1425
|
-
replace(/\x00|\\$/g, '\ufffd');
|
1426
|
-
|
1427
|
-
Config.SHORTCUTS && (selector = Dom.shortcuts(selector, element, from));
|
1428
|
-
|
1429
|
-
if (lastMatcher != selector) {
|
1430
|
-
// process valid selector strings
|
1431
|
-
if ((parts = selector.match(reValidator)) && parts[0] == selector) {
|
1432
|
-
isSingleMatch = (parts = selector.match(reSplitGroup)).length < 2;
|
1433
|
-
// save passed selector
|
1434
|
-
lastMatcher = selector;
|
1435
|
-
lastPartsMatch = parts;
|
1436
|
-
} else {
|
1437
|
-
emit('The string "' + selector + '", is not a valid CSS selector');
|
1438
|
-
return false;
|
1439
|
-
}
|
1440
|
-
} else parts = lastPartsMatch;
|
1441
|
-
|
1442
|
-
// compile matcher resolvers if necessary
|
1443
|
-
if (!matchResolvers[selector] || matchContexts[selector] !== from) {
|
1444
|
-
matchResolvers[selector] = compile(isSingleMatch ? [selector] : parts, '', false);
|
1445
|
-
matchContexts[selector] = from;
|
1446
|
-
}
|
1447
|
-
|
1448
|
-
return matchResolvers[selector](element, Snapshot, [ ], doc, root, from, callback, { });
|
1449
|
-
},
|
1450
|
-
|
1451
|
-
// select only the first element
|
1452
|
-
// matching selector (document ordered)
|
1453
|
-
first =
|
1454
|
-
function(selector, from) {
|
1455
|
-
return select(selector, from, function() { return false; })[0] || null;
|
1456
|
-
},
|
1457
|
-
|
1458
|
-
// select elements matching selector
|
1459
|
-
// using new Query Selector API
|
1460
|
-
// or cross-browser client API
|
1461
|
-
// @return array
|
1462
|
-
select =
|
1463
|
-
function(selector, from, callback) {
|
1464
|
-
|
1465
|
-
var i, changed, element, elements, parts, token, original = selector;
|
1466
|
-
|
1467
|
-
if (arguments.length === 0) {
|
1468
|
-
emit('Not enough arguments');
|
1469
|
-
return [ ];
|
1470
|
-
} else if (typeof selector != 'string') {
|
1471
|
-
return [ ];
|
1472
|
-
} else if (from && !(/1|9|11/).test(from.nodeType)) {
|
1473
|
-
emit('Invalid or illegal context element');
|
1474
|
-
return [ ];
|
1475
|
-
} else if (lastContext !== from) {
|
1476
|
-
// reset context data when it changes
|
1477
|
-
// and ensure context is set to a default
|
1478
|
-
switchContext(from || (from = doc));
|
1479
|
-
}
|
1480
|
-
|
1481
|
-
if (Config.CACHING && (elements = Dom.loadResults(original, from, doc, root))) {
|
1482
|
-
return callback ? concatCall([ ], elements, callback) : elements;
|
1483
|
-
}
|
1484
|
-
|
1485
|
-
// normalize the selector string, remove [\n\r\f]
|
1486
|
-
// whitespace, replace codepoints 0 with '\ufffd'
|
1487
|
-
// trim non-relevant leading/trailing whitespaces
|
1488
|
-
selector = selector.
|
1489
|
-
replace(reTrimSpaces, '').
|
1490
|
-
replace(/\x00|\\$/g, '\ufffd');
|
1491
|
-
|
1492
|
-
if (!OPERA_QSAPI && reSimpleSelector.test(selector)) {
|
1493
|
-
switch (selector.charAt(0)) {
|
1494
|
-
case '#':
|
1495
|
-
if (Config.UNIQUE_ID) {
|
1496
|
-
elements = (element = _byId(selector.slice(1), from)) ? [ element ] : [ ];
|
1497
|
-
}
|
1498
|
-
break;
|
1499
|
-
case '.':
|
1500
|
-
elements = _byClass(selector.slice(1), from);
|
1501
|
-
break;
|
1502
|
-
default:
|
1503
|
-
elements = _byTag(selector, from);
|
1504
|
-
break;
|
1505
|
-
}
|
1506
|
-
}
|
1507
|
-
|
1508
|
-
else if (!XML_DOCUMENT && Config.USE_QSAPI &&
|
1509
|
-
!(BUGGY_QUIRKS_QSAPI && reClass.test(selector)) &&
|
1510
|
-
!RE_BUGGY_QSAPI.test(selector)) {
|
1511
|
-
try {
|
1512
|
-
elements = from.querySelectorAll(selector);
|
1513
|
-
} catch(e) { }
|
1514
|
-
}
|
1515
|
-
|
1516
|
-
if (elements) {
|
1517
|
-
elements = callback ? concatCall([ ], elements, callback) :
|
1518
|
-
NATIVE_SLICE_PROTO ? slice.call(elements) : concatList([ ], elements);
|
1519
|
-
Config.CACHING && Dom.saveResults(original, from, doc, elements);
|
1520
|
-
return elements;
|
1521
|
-
}
|
1522
|
-
|
1523
|
-
Config.SHORTCUTS && (selector = Dom.shortcuts(selector, from));
|
1524
|
-
|
1525
|
-
if ((changed = lastSelector != selector)) {
|
1526
|
-
// process valid selector strings
|
1527
|
-
if ((parts = selector.match(reValidator)) && parts[0] == selector) {
|
1528
|
-
isSingleSelect = (parts = selector.match(reSplitGroup)).length < 2;
|
1529
|
-
// save passed selector
|
1530
|
-
lastSelector = selector;
|
1531
|
-
lastPartsSelect = parts;
|
1532
|
-
} else {
|
1533
|
-
emit('The string "' + selector + '", is not a valid CSS selector');
|
1534
|
-
return [ ];
|
1535
|
-
}
|
1536
|
-
} else parts = lastPartsSelect;
|
1537
|
-
|
1538
|
-
// commas separators are treated sequentially to maintain order
|
1539
|
-
if (from.nodeType == 11) {
|
1540
|
-
|
1541
|
-
elements = byTagRaw('*', from);
|
1542
|
-
|
1543
|
-
} else if (!XML_DOCUMENT && isSingleSelect) {
|
1544
|
-
|
1545
|
-
if (changed) {
|
1546
|
-
// get right most selector token
|
1547
|
-
parts = selector.match(reSplitToken);
|
1548
|
-
token = parts[parts.length - 1];
|
1549
|
-
|
1550
|
-
// only last slice before :not rules
|
1551
|
-
lastSlice = token.split(':not');
|
1552
|
-
lastSlice = lastSlice[lastSlice.length - 1];
|
1553
|
-
|
1554
|
-
// position where token was found
|
1555
|
-
lastPosition = selector.length - token.length;
|
1556
|
-
}
|
1557
|
-
|
1558
|
-
// ID optimization RTL, to reduce number of elements to visit
|
1559
|
-
if (Config.UNIQUE_ID && (parts = lastSlice.match(Optimize.ID)) && (token = parts[1])) {
|
1560
|
-
if ((element = _byId(token, from))) {
|
1561
|
-
if (match(element, selector)) {
|
1562
|
-
callback && callback(element);
|
1563
|
-
elements = [element];
|
1564
|
-
} else elements = [ ];
|
1565
|
-
}
|
1566
|
-
}
|
1567
|
-
|
1568
|
-
// ID optimization LTR, to reduce selection context searches
|
1569
|
-
else if (Config.UNIQUE_ID && (parts = selector.match(Optimize.ID)) && (token = parts[1])) {
|
1570
|
-
if ((element = _byId(token, doc))) {
|
1571
|
-
if ('#' + token == selector) {
|
1572
|
-
callback && callback(element);
|
1573
|
-
elements = [element];
|
1574
|
-
} else if (/[>+~]/.test(selector)) {
|
1575
|
-
from = element.parentNode;
|
1576
|
-
} else {
|
1577
|
-
from = element;
|
1578
|
-
}
|
1579
|
-
} else elements = [ ];
|
1580
|
-
}
|
1581
|
-
|
1582
|
-
if (elements) {
|
1583
|
-
Config.CACHING && Dom.saveResults(original, from, doc, elements);
|
1584
|
-
return elements;
|
1585
|
-
}
|
1586
|
-
|
1587
|
-
if (!NATIVE_GEBCN && (parts = lastSlice.match(Optimize.TAG)) && (token = parts[1])) {
|
1588
|
-
if ((elements = _byTag(token, from)).length === 0) { return [ ]; }
|
1589
|
-
selector = selector.slice(0, lastPosition) + selector.slice(lastPosition).replace(token, '*');
|
1590
|
-
}
|
1591
|
-
|
1592
|
-
else if ((parts = lastSlice.match(Optimize.CLASS)) && (token = parts[1])) {
|
1593
|
-
if ((elements = _byClass(token, from)).length === 0) { return [ ]; }
|
1594
|
-
selector = selector.slice(0, lastPosition) + selector.slice(lastPosition).replace('.' + token,
|
1595
|
-
reOptimizeSelector.test(selector.charAt(selector.indexOf(token) - 1)) ? '' : '*');
|
1596
|
-
}
|
1597
|
-
|
1598
|
-
else if ((parts = selector.match(Optimize.CLASS)) && (token = parts[1])) {
|
1599
|
-
if ((elements = _byClass(token, from)).length === 0) { return [ ]; }
|
1600
|
-
for (i = 0, els = [ ]; elements.length > i; ++i) {
|
1601
|
-
els = concatList(els, elements[i].getElementsByTagName('*'));
|
1602
|
-
}
|
1603
|
-
elements = els;
|
1604
|
-
selector = selector.slice(0, lastPosition) + selector.slice(lastPosition).replace('.' + token,
|
1605
|
-
reOptimizeSelector.test(selector.charAt(selector.indexOf(token) - 1)) ? '' : '*');
|
1606
|
-
}
|
1607
|
-
|
1608
|
-
else if (NATIVE_GEBCN && (parts = lastSlice.match(Optimize.TAG)) && (token = parts[1])) {
|
1609
|
-
if ((elements = _byTag(token, from)).length === 0) { return [ ]; }
|
1610
|
-
selector = selector.slice(0, lastPosition) + selector.slice(lastPosition).replace(token, '*');
|
1611
|
-
}
|
1612
|
-
|
1613
|
-
}
|
1614
|
-
|
1615
|
-
if (!elements) {
|
1616
|
-
if (IE_LT_9) {
|
1617
|
-
elements = /^(?:applet|object)$/i.test(from.nodeName) ? from.children : byTagRaw('*', from);
|
1618
|
-
} else {
|
1619
|
-
elements = from.getElementsByTagName('*');
|
1620
|
-
}
|
1621
|
-
}
|
1622
|
-
// end of prefiltering pass
|
1623
|
-
|
1624
|
-
// compile selector resolver if necessary
|
1625
|
-
if (!selectResolvers[selector] || selectContexts[selector] !== from) {
|
1626
|
-
selectResolvers[selector] = compile(isSingleSelect ? [selector] : parts, '', true);
|
1627
|
-
selectContexts[selector] = from;
|
1628
|
-
}
|
1629
|
-
|
1630
|
-
elements = selectResolvers[selector](elements, Snapshot, [ ], doc, root, from, callback, { });
|
1631
|
-
|
1632
|
-
Config.CACHING && Dom.saveResults(original, from, doc, elements);
|
1633
|
-
|
1634
|
-
return elements;
|
1635
|
-
},
|
1636
|
-
|
1637
|
-
/*-------------------------------- STORAGE ---------------------------------*/
|
1638
|
-
|
1639
|
-
// empty function handler
|
1640
|
-
FN = function(x) { return x; },
|
1641
|
-
|
1642
|
-
// compiled match functions returning booleans
|
1643
|
-
matchContexts = { },
|
1644
|
-
matchResolvers = { },
|
1645
|
-
|
1646
|
-
// compiled select functions returning collections
|
1647
|
-
selectContexts = { },
|
1648
|
-
selectResolvers = { },
|
1649
|
-
|
1650
|
-
// used to pass methods to compiled functions
|
1651
|
-
Snapshot = {
|
1652
|
-
|
1653
|
-
// element indexing methods
|
1654
|
-
nthElement: nthElement,
|
1655
|
-
nthOfType: nthOfType,
|
1656
|
-
|
1657
|
-
// element inspection methods
|
1658
|
-
getAttribute: getAttribute,
|
1659
|
-
hasAttribute: hasAttribute,
|
1660
|
-
|
1661
|
-
// element selection methods
|
1662
|
-
byClass: _byClass,
|
1663
|
-
byName: byName,
|
1664
|
-
byTag: _byTag,
|
1665
|
-
byId: _byId,
|
1666
|
-
|
1667
|
-
// helper/check methods
|
1668
|
-
contains: contains,
|
1669
|
-
isEmpty: isEmpty,
|
1670
|
-
isLink: isLink,
|
1671
|
-
|
1672
|
-
// selection/matching
|
1673
|
-
select: select,
|
1674
|
-
match: match
|
1675
|
-
},
|
1676
|
-
|
1677
|
-
/*------------------------------- PUBLIC API -------------------------------*/
|
1678
|
-
|
1679
|
-
// code referenced by extensions
|
1680
|
-
Dom = {
|
1681
|
-
|
1682
|
-
ACCEPT_NODE: ACCEPT_NODE,
|
1683
|
-
|
1684
|
-
// retrieve element by id attr
|
1685
|
-
byId: byId,
|
1686
|
-
|
1687
|
-
// retrieve elements by tag name
|
1688
|
-
byTag: byTag,
|
1689
|
-
|
1690
|
-
// retrieve elements by name attr
|
1691
|
-
byName: byName,
|
1692
|
-
|
1693
|
-
// retrieve elements by class name
|
1694
|
-
byClass: byClass,
|
1695
|
-
|
1696
|
-
// read the value of the attribute
|
1697
|
-
// as was in the original HTML code
|
1698
|
-
getAttribute: getAttribute,
|
1699
|
-
|
1700
|
-
// check for the attribute presence
|
1701
|
-
// as was in the original HTML code
|
1702
|
-
hasAttribute: hasAttribute,
|
1703
|
-
|
1704
|
-
// element match selector, return boolean true/false
|
1705
|
-
match: match,
|
1706
|
-
|
1707
|
-
// first element match only, return element or null
|
1708
|
-
first: first,
|
1709
|
-
|
1710
|
-
// elements matching selector, starting from element
|
1711
|
-
select: select,
|
1712
|
-
|
1713
|
-
// compile selector into ad-hoc javascript resolver
|
1714
|
-
compile: compile,
|
1715
|
-
|
1716
|
-
// check that two elements are ancestor/descendant
|
1717
|
-
contains: contains,
|
1718
|
-
|
1719
|
-
// handle selector engine configuration settings
|
1720
|
-
configure: configure,
|
1721
|
-
|
1722
|
-
// initialize caching for each document
|
1723
|
-
setCache: FN,
|
1724
|
-
|
1725
|
-
// load previously collected result set
|
1726
|
-
loadResults: FN,
|
1727
|
-
|
1728
|
-
// save previously collected result set
|
1729
|
-
saveResults: FN,
|
1730
|
-
|
1731
|
-
// handle missing context in selector strings
|
1732
|
-
shortcuts: FN,
|
1733
|
-
|
1734
|
-
// log resolvers errors/warnings
|
1735
|
-
emit: emit,
|
1736
|
-
|
1737
|
-
// options enabing specific engine functionality
|
1738
|
-
Config: Config,
|
1739
|
-
|
1740
|
-
// pass methods references to compiled resolvers
|
1741
|
-
Snapshot: Snapshot,
|
1742
|
-
|
1743
|
-
// operators descriptor
|
1744
|
-
// for attribute operators extensions
|
1745
|
-
Operators: Operators,
|
1746
|
-
|
1747
|
-
// selectors descriptor
|
1748
|
-
// for pseudo-class selectors extensions
|
1749
|
-
Selectors: Selectors,
|
1750
|
-
|
1751
|
-
// export validators REs
|
1752
|
-
Tokens: Tokens,
|
1753
|
-
|
1754
|
-
// export version string
|
1755
|
-
Version: version,
|
1756
|
-
|
1757
|
-
// add or overwrite user defined operators
|
1758
|
-
registerOperator:
|
1759
|
-
function(symbol, resolver) {
|
1760
|
-
Operators[symbol] || (Operators[symbol] = resolver);
|
1761
|
-
},
|
1762
|
-
|
1763
|
-
// add selector patterns for user defined callbacks
|
1764
|
-
registerSelector:
|
1765
|
-
function(name, rexp, func) {
|
1766
|
-
Selectors[name] || (Selectors[name] = {
|
1767
|
-
Expression: rexp,
|
1768
|
-
Callback: func
|
1769
|
-
});
|
1770
|
-
}
|
1771
|
-
|
1772
|
-
};
|
1773
|
-
|
1774
|
-
/*---------------------------------- INIT ----------------------------------*/
|
1775
|
-
|
1776
|
-
// init context specific variables
|
1777
|
-
initialize(doc);
|
1778
|
-
|
1779
|
-
return Dom;
|
1780
|
-
});
|