{"_id":"element-closest","_rev":"26-57d42fa0aa422979b9a51bb7848cdcce","name":"element-closest","description":"Return the closest element matching a selector up the DOM tree","dist-tags":{"latest":"3.0.2"},"versions":{"1.0.2":{"name":"element-closest","version":"1.0.2","description":"Get the closest element matching a selector up the DOM tree","keywords":["closest","dom","element","matches","polyfill","standard"],"homepage":"https://github.com/jonathantneal/closest","bugs":{"url":"https://github.com/jonathantneal/closest/issues"},"license":"CC0-1.0","author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com","url":"http://jonathantneal.com/"},"contributors":[{"name":"Bogdan Chadkin","email":"trysound@yandex.ru"}],"main":"closest.js","repository":{"type":"git","url":"git://github.com/jonathan/browserstack-app.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"8bcccc00f08787bfb0fa1d8c7b3d8252fcb64da8","_id":"element-closest@1.0.2","_shasum":"af7e212f2c874e0b86a80993374a2eb360cb37cc","_from":".","_npmVersion":"2.4.1","_nodeVersion":"0.10.32","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"dist":{"shasum":"af7e212f2c874e0b86a80993374a2eb360cb37cc","tarball":"https://registry.npmjs.org/element-closest/-/element-closest-1.0.2.tgz","integrity":"sha512-nJn3x/27j2+M+pXQv3xuAs7yfVR5+42Ns4z056A41oRKiB/N1l4CzmtV3Aw9lsLmG0pFzZlsfj6SOJuTBMGcDQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCHyDvrCQi7XJLzz96OaWQPj0fyJZlhLtYdtopfaQa8rMCIE3Jg+4b38Dlhh3fDGNPfKF4SJQVwhpH1sYzvAkpQFE2"}]},"directories":{}},"1.0.3":{"name":"element-closest","version":"1.0.3","description":"Get the closest element matching a selector up the DOM tree","keywords":["closest","dom","element","matches","polyfill","standard"],"license":"CC0-1.0","author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com","url":"http://jonathantneal.com/"},"contributors":[{"name":"Bogdan Chadkin","email":"trysound@yandex.ru"}],"main":"closest.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://jonathantneal@github.com/jonathantneal/closest.git"},"bugs":{"url":"https://github.com/jonathantneal/closest/issues"},"homepage":"https://github.com/jonathantneal/closest","gitHead":"228cd8c0e057bb9eb057c87a3c7f714b926876c7","_id":"element-closest@1.0.3","_shasum":"287e4de58433eb7e838a77503e0bac57ca0b4763","_from":".","_npmVersion":"2.4.1","_nodeVersion":"0.10.32","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"shasum":"287e4de58433eb7e838a77503e0bac57ca0b4763","tarball":"https://registry.npmjs.org/element-closest/-/element-closest-1.0.3.tgz","integrity":"sha512-6pTDJ/Ldm1YcON1uVC1VQn9mG8t7cNsebTvSRETDYhm2G6uWbMSLVqrUqXzF2xCkH32rAZT9gawxGcZQzjKhOg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmBjJrsZucjvI+Ewi9Il1AgeE5iNViGv++474RPi+1tQIhAOms8N4KnyMlgPK3VL8GZV46ZFga0+llivMMf/llnWNr"}]},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"directories":{}},"2.0.0":{"name":"element-closest","version":"2.0.0","description":"Return the closest element matching a selector up the DOM tree","main":"closest.js","scripts":{"test":"eslint *.js --ignore-path .gitignore && jscs *.js"},"repository":{"type":"git","url":"git+https://github.com/jonathantneal/closest.git"},"keywords":["closest","dom","element","matches","polyfill","standard"],"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com","url":"http://jonathantneal.com"},"license":"CC0-1.0","bugs":{"url":"https://github.com/jonathantneal/closest/issues"},"homepage":"https://github.com/jonathantneal/closest#readme","devDependencies":{"eslint":"^2.7.0","jscs":"^2.11.0"},"gitHead":"a92c9675e82d5d0186ced05e29a363677ec61a91","_id":"element-closest@2.0.0","_shasum":"38036ed683b1c30a15a7c56b465b457215fb7f00","_from":".","_npmVersion":"3.7.5","_nodeVersion":"5.4.1","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"shasum":"38036ed683b1c30a15a7c56b465b457215fb7f00","tarball":"https://registry.npmjs.org/element-closest/-/element-closest-2.0.0.tgz","integrity":"sha512-HihbmOyQaHJaE9ypdOASrWeimknQupIW0AYwq4g2HCZx/wiW5cDRwKSqi9O0KlIZtOzRNO/FwcncrneV+K4E2Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIbeszHle0brb5Qo60VQ8/JH1qOwTyIuHi5odgO0oFyAIhAJayv0kNhJQb3j7D85/MXcSCI4xJgulT3dcP2NtnVvq0"}]},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"trysound","email":"trysound@yandex.ru"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/element-closest-2.0.0.tgz_1460080902963_0.0792479629162699"},"directories":{}},"2.0.1":{"name":"element-closest","version":"2.0.1","description":"Return the closest element matching a selector up the DOM tree","main":"closest.js","scripts":{"test":"eslint *.js --ignore-path .gitignore && jscs *.js"},"repository":{"type":"git","url":"git+https://github.com/jonathantneal/closest.git"},"keywords":["closest","dom","element","matches","polyfill","standard"],"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com","url":"http://jonathantneal.com"},"license":"CC0-1.0","bugs":{"url":"https://github.com/jonathantneal/closest/issues"},"homepage":"https://github.com/jonathantneal/closest#readme","devDependencies":{"eslint":"^2.7.0","jscs":"^2.11.0"},"gitHead":"2d254568da098bdee1a2ddcdb39ac4cde37b0c56","_id":"element-closest@2.0.1","_shasum":"c56efe8db1a32ad24f32f4eb988b3502fc566c24","_from":".","_npmVersion":"3.7.5","_nodeVersion":"5.4.1","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"shasum":"c56efe8db1a32ad24f32f4eb988b3502fc566c24","tarball":"https://registry.npmjs.org/element-closest/-/element-closest-2.0.1.tgz","integrity":"sha512-kQNmN6U1DA479PqM5/t9G3J4+ZRGPekmOL8y4fgPCo472XrGoKEpikDdM6a2IOLojiBASuQ4ZHkiXWHYysXbEw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCiwCkdzdeUb3PbXPLXbx5x4/rndlg/Z+ldtk/dQI5ypQIhAI5YvzCotr8B+z6S3xl/K5AfsMLFcpyHs0yqNV6B5YCp"}]},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"trysound","email":"trysound@yandex.ru"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/element-closest-2.0.1.tgz_1460205846138_0.28395392186939716"},"directories":{}},"2.0.2":{"name":"element-closest","version":"2.0.2","description":"Return the closest element matching a selector up the DOM tree","author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com","url":"http://jonathantneal.com"},"license":"CC0-1.0","repository":{"type":"git","url":"git+https://github.com/jonathantneal/closest.git"},"homepage":"https://github.com/jonathantneal/closest#readme","bugs":{"url":"https://github.com/jonathantneal/closest/issues"},"main":"element-closest.js","files":["element-closest.js"],"scripts":{"test":"eslint *.js --ignore-path .gitignore && jscs *.js"},"engines":{"node":">=4.0.0"},"devDependencies":{"eslint":"^3.8.1","eslint-config-10up":"github:jonathantneal/eslint-config-10up","jscs":"^3.0.7","jscs-config-10up":"github:jonathantneal/jscs-config-10up"},"eslintConfig":{"extends":"10up"},"jscsConfig":{"preset":"10up"},"keywords":["polyfill","dom","document","element","closest","matches","standard","specification"],"gitHead":"234d75008cdcf9748a3086ab87e9c837ff926a9f","_id":"element-closest@2.0.2","_shasum":"72a740a107453382e28df9ce5dbb5a8df0f966ec","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"shasum":"72a740a107453382e28df9ce5dbb5a8df0f966ec","tarball":"https://registry.npmjs.org/element-closest/-/element-closest-2.0.2.tgz","integrity":"sha512-QCqAWP3kwj8Gz9UXncVXQGdrhnWxD8SQBSeZp5pOsyCcQ6RpL738L1/tfuwBiMi6F1fYkxqPnBrFBR4L+f49Cg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDMOwiCowgxVVmHEY5S6Bok5IKGmhu8MypNRcy3H4DyjQIgXPjw/XnYjU+NKPjOGk8EnjlWSf8jG4ZIorDLIOlkOnQ="}]},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"trysound","email":"trysound@yandex.ru"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/element-closest-2.0.2.tgz_1477533779809_0.04536187811754644"},"directories":{}},"3.0.0":{"name":"element-closest","version":"3.0.0","description":"Return the closest element matching a selector up the DOM tree","author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","repository":{"type":"git","url":"git+https://github.com/jonathantneal/closest.git"},"homepage":"https://github.com/jonathantneal/closest#readme","bugs":{"url":"https://github.com/jonathantneal/closest/issues"},"main":"index.js","module":"index.mjs","scripts":{"build":"npm run build:node && npm run build:browser","build:node":"rollup --config","build:browser":"cross-env NODE_ENV=browser rollup --config","prepublish":"npm run test && npm run build","test":"eslint src/*.js --cache --ignore-path .gitignore --quiet"},"engines":{"node":">=6.0.0"},"devDependencies":{"@babel/core":"^7.2.2","@babel/preset-env":"^7.2.3","babel-eslint":"^10.0.1","cross-env":"^5.2.0","eslint":"^5.10.0","eslint-config-dev":"^2.0.0","pre-commit":"^1.2.2","rollup":"^0.68.1","rollup-plugin-babel":"^4.1.0","rollup-plugin-terser":"^3.0.0"},"eslintConfig":{"extends":"dev","parser":"babel-eslint"},"keywords":["postcss","css","postcss-plugin","dom","document","element","node","closest","matches","polyfill","web","standard"],"gitHead":"ef15b628f7fcb354ac4020924eb5df85f34421d8","_id":"element-closest@3.0.0","_npmVersion":"6.5.0","_nodeVersion":"11.4.0","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"integrity":"sha512-xZEbz0M1lTvqHUKg7gRLcAjZjx0DZs5kyzauxZJ3+jDVj0Xo8/p7BcCiVqnKoVnKXmaQhd1g7DGQs2OxovgeKA==","shasum":"4ce78e5b8c6db775cc5fa596193ad86f05ddc3e6","tarball":"https://registry.npmjs.org/element-closest/-/element-closest-3.0.0.tgz","fileCount":9,"unpackedSize":19432,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcG/D4CRA9TVsSAnZWagAAdk0P/2o6/kI+LefbmG0TtiPk\nXHf6TNqbu+hltA1wT3xCigBnekgr1jJmQBGzrq6NAMcSrPNAUFPt10LFSmaC\nWUsNUsVQM2AUhPAWwIuc8HGehG3ca/9yYu05Xy4HEF8qxOnEFaIJgCAfh+La\nmlCEZ+Rai2letkv+NuztFV6aRpJm2lVFu2Y6Sj5EV7/0zFrEtZoGyJjMKhgm\nEYdQxRubnlSdLDGhxG2Azg1u22OVDRkxPh4GjgqqYoJNjMZDMlJRsDkqXyhH\nI0+R2J2utBqw/te+RmbsIfqP+qc0zEQ662QVdAqCNW/OThKxlRP4DSv1dxtw\niV4C/RpBe2O3yIC+oZlYryN5FwsYbA2ytxutoFtXIHiJ4ilKb+XomQQu0HRS\n9rp7Pw01ojo+ZZ4Hd7jANJrJDqJa3lm0YmFAJmhxAeLCMhzyF8CuyyOe7TLx\n97x6KUPazpj1kzZTqGEcr30SjYeFAV2qJUHDmERkxS+tPQvZGQSYbmHNGEn6\nSzckB/vryJieOeRTaJQ4kq2PyWSeT7m4qX5J7CiqFdzT6lidN+MYvPJRTI7i\ngZ7zDxcn1Gh84TULLF3IZVTOzPcV3q6im0N+OA5U2KKYkLRRT4f1lxYaOjEQ\niPJCtTGq6TmFy5aZ7PiLTnUKCNd1ELKLYeweYEnukji0GWM7DuVWyANwQEYN\nDHmX\r\n=antd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHW6MHVlm+OChD5y4LN9KUdzbmwT1gkuwsDQm+0a0kBJAiB6v+jlZREAC2o72XUARugrbO/vuHCrJLLFGxPEJ4iRvA=="}]},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"trysound","email":"trysound@yandex.ru"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/element-closest_3.0.0_1545335031764_0.20116333003679077"},"_hasShrinkwrap":false},"3.0.1":{"name":"element-closest","version":"3.0.1","description":"Return the closest element matching a selector up the DOM tree","author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","repository":{"type":"git","url":"git+https://github.com/jonathantneal/closest.git"},"homepage":"https://github.com/jonathantneal/closest#readme","bugs":{"url":"https://github.com/jonathantneal/closest/issues"},"main":"index.js","module":"index.mjs","scripts":{"build":"npm run build:node && npm run build:browser","build:node":"rollup --config","build:browser":"cross-env NODE_ENV=browser rollup --config","prepublish":"npm run test && npm run build","test":"eslint src/*.js --cache --ignore-path .gitignore --quiet"},"engines":{"node":">=6.0.0"},"devDependencies":{"@babel/core":"^7.2.2","@babel/preset-env":"^7.3.1","babel-eslint":"^10.0.1","cross-env":"^5.2.0","eslint":"^5.13.0","eslint-config-dev":"^2.0.0","pre-commit":"^1.2.2","rollup":"^1.1.2","rollup-plugin-babel":"^4.3.2","rollup-plugin-terser":"^4.0.4"},"eslintConfig":{"extends":"dev","parser":"babel-eslint"},"keywords":["postcss","css","postcss-plugin","dom","document","element","node","closest","matches","polyfill","web","standard"],"gitHead":"7a9f03cb3056fc498f2e51012ddf02e0a41076a8","_id":"element-closest@3.0.1","_npmVersion":"6.5.0","_nodeVersion":"11.6.0","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"integrity":"sha512-Wm8B0in+k6GsSCra8vLVnFIjIrff2T1s2b++jU6VL6mqIteP19THxDXwT5JDrmJPlqT3YifOK9cu28+uRGUdew==","shasum":"0b2000266ae43a800274401dc39486f5e4bfbce2","tarball":"https://registry.npmjs.org/element-closest/-/element-closest-3.0.1.tgz","fileCount":9,"unpackedSize":19542,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcWYb7CRA9TVsSAnZWagAAWSkP/3Rt2SXJV/n41YdCVsp7\n4D54qSq/Lrw3deqNH/rZ33oxHyNx68XpjsQgEADWbNnPFxyWbqyuNz6uEEkQ\nzUQE2cNO0UuRGK05jzJTXs9qvT5Ylll3TevtxtoesRBMvesc2qf8IsN17H7s\n1WdaA4uzcAFKG4mC3uMtFrZ2mOpFhveEFh4jqpt6kX53Pidt5YucCfTmT2u4\nNI375KG1PTPLZN3oF6R8xPyorcwOh5jo1CmA+SHUNRxR7feEFymiB0Wn7ibA\n/5CSEvRu221scWL8PXI6ZKnP4LkabiFA29NPiyCXm3EMraT7hMEK+bpdw6YC\nFSQFLMj4rKJuZZJUp+4rJB+LunsbEz0Gb8XWC6CXiQd3ylXXqbmWqOAY+d+H\nR2mGKPlLc3sgzElChiNnURWT6ga5ZEPazsWJftvNLE14KPj3EZ16k69rKW/P\nJYQcjYhd2c1gPCFN8jbb1cOZNNqzlk7MXYd1AOV8+5KIBrxa93JPbA4dVIs+\nrT4Ir0WTSkzPDBA4Pynd2XRvg/KvR4cY0tKvPglAZ7k1DTAC/E4mL217PacG\nqTw/P6o0SbOuj18uownNWc8xkg0QTd5iOFX8ceJfaCWa1stMG41OIWY8XcZa\n3NVjkAKrz7k7I0Wz+6693ZNYZAGLlnk1oFiPtB+NE6YFPIPuQIW9RisvWff/\nmj+4\r\n=o+w0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/UYZCTH5HAFfFqVupWKRkO8p1KHkfsqCKKzkwgExiOgIhALbW65wGIK0xlLTdDiCct0Pa8y/I+s2ZunQqfmPz5yu/"}]},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"trysound","email":"trysound@yandex.ru"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/element-closest_3.0.1_1549371130948_0.47955988186068077"},"_hasShrinkwrap":false},"3.0.2":{"name":"element-closest","version":"3.0.2","description":"Return the closest element matching a selector up the DOM tree","author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","repository":{"type":"git","url":"git+https://github.com/jonathantneal/closest.git"},"homepage":"https://github.com/jonathantneal/closest#readme","bugs":{"url":"https://github.com/jonathantneal/closest/issues"},"main":"index.js","module":"index.mjs","unpkg":"browser.js","jsdelivr":"browser.js","scripts":{"build":"npm run build:node && npm run build:browser","build:node":"rollup --config","build:browser":"cross-env NODE_ENV=browser rollup --config","prepublish":"npm run test && npm run build","test":"eslint src/*.js --cache --ignore-path .gitignore --quiet"},"engines":{"node":">=0.12.0"},"devDependencies":{"@babel/core":"^7.6.4","@babel/preset-env":"^7.6.3","babel-eslint":"^10.0.3","cross-env":"^6.0.3","eslint":"^6.6.0","eslint-config-dev":"^2.0.0","pre-commit":"^1.2.2","rollup":"^1.26.0","rollup-plugin-babel":"^4.3.3","rollup-plugin-terser":"^5.1.2"},"eslintConfig":{"extends":"dev","parser":"babel-eslint"},"keywords":["javascript","js","dom","document","element","node","closest","matches","polyfill","web","standard"],"gitHead":"c074fd7b0597c560174a8fa221fef9591a0ac4a3","_id":"element-closest@3.0.2","_nodeVersion":"12.11.1","_npmVersion":"6.11.3","dist":{"integrity":"sha512-JxKQiJKX0Zr5Q2/bCaTx8P+UbfyMET1OQd61qu5xQFeWr1km3fGaxelSJtnfT27XQ5Uoztn2yIyeamAc/VX13g==","shasum":"3814a69a84f30e48e63eaf57341f4dbf4227d2aa","tarball":"https://registry.npmjs.org/element-closest/-/element-closest-3.0.2.tgz","fileCount":9,"unpackedSize":19614,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdunM3CRA9TVsSAnZWagAAZBQP/iaEVueIfhTCqIfz/jdd\npvbIPaHhDkraIlz1sBMs6ewmaQNmC7LcP7oPWWnTW3lD83YkxQLda+2u1OPq\nzedMfRKnE5avmNmBDSwmNmRxSlKPfPnD1ekyHtWumZmXeH9RgZ0GmfbKqUaQ\narHZ4WPzuEqOcVG2NS7qeYCwWjYDWSK/cCS0ANRsopFVAxx8XICSak9mdLDz\nUwHOj9TjKrxrnfy90mBuHDVeYlAM+Yz2Fat6I8xvHGgEKzCeoSewhrMjCyY1\nOCVwbthoJBFCIPH5zVc9Di29o4JaPzw6yvNMkv7NEiscLWRLfdr0VgcH5rvJ\nw5fB1pyZjDKEsVKrRTayOXPS4eXIr4TAXUHU/uOcmhdzjtH2GYBqjOPF0dGR\nr6QWnQG73gzvgjaMUWG5LxzvWTHBAFnyDcz6h5zPXKUteKoEEqg8fyh+NH4d\nJ0UN+S1XQeCbWhuhPLjLT1fKtgTgwjZJcux8eAA7LNstkqtWsz6t2zlJ9uGa\nZMc53pCXd9ZxKMbfieZO/XQYUHn6sZq6rfI/BCcHaQGw/4UQ1wq9Q5uMdlkN\nwEiuwGb9dcxGYI44MsipVJRb1l5ZJVsGQnp1t6y75uRCwoE3UXNCI5sSBhWW\nf+xthyTYFnG+eW1A+PFuPE2+XO0rqVwdjCAS/fMVJ73lGgL02OLQJ08M9ULK\neysz\r\n=uslE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTrDO3mmI+l4FaY02B8DdV/XQnmwuXyKFExAzAZORH/QIhALjp+Np2kmsZmZ/sTzdsS7xvHcvC3ThFT2p1KjFazhnA"}]},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"trysound","email":"trysound@yandex.ru"}],"_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/element-closest_3.0.2_1572500278422_0.2961849385991169"},"_hasShrinkwrap":false}},"readme":"# closest [<img src=\"https://jonneal.dev/dom-logo.svg\" alt=\"closest\" width=\"90\" height=\"90\" align=\"right\">][closest]\n\n[<img alt=\"npm version\" src=\"https://img.shields.io/npm/v/element-closest.svg\" height=\"20\">](https://www.npmjs.com/package/element-closest)\n[<img alt=\"build status\" src=\"https://img.shields.io/travis/jonathantneal/closest/master.svg\" height=\"20\">](https://travis-ci.org/jonathantneal/closest)\n[<img alt=\"support chat\" src=\"https://img.shields.io/badge/support-chat-blue.svg\" height=\"20\">](https://gitter.im/postcss/postcss)\n\n[closest] is a polyfill for [`#Element.closest`].\n\n```bash\nnpm install element-closest\n```\n\nThe [`#Element.closest`] method returns the closest element that matches a selector. It returns the element itself, one of its ancestor, or `null` if there isn't any match.\n\n```js\nelement.closest(selectorString) //=> Element or null\n```\n\nThis is especially useful for delegating events.\n\n```js\ndocument.addEventListener('click', function (event) {\n  // find nearest element up the tree that is an <a>\n  var link = event.target.closest('a');\n\n  if (link) {\n    // do something with the <a>\n    event.preventDefault();\n  }\n});\n```\n\nThe script is approximately 428 bytes, or 257 bytes when gzipped.\n\n## Usage\n\nFor immediate usage, add this script to your document:\n\n```html\n<script src=\"https://unpkg.com/element-closest\"></script>\n```\n\nFor usage in Node, including Browserify and Webpack, run [closest] with your `window` object:\n\n```js\nconst elementClosest = require('element-closest');\n\nelementClosest(window); // this is used to reference window.Element\n```\n\n## Browser compatibility\n\n| Browser           | Native Support | Polyfill Support |\n| ----------------- | -------------- | ---------------- |\n| Android           | 53             | 2.2+             |\n| Blackberry        | ✘              | 7+               |\n| Chrome            | 41+            | 4 - 40           |\n| Edge              | 15             | 12 - 14          |\n| Firefox           | 35+            | 3.5 - 34         |\n| Internet Explorer | ✘              | 8+               |\n| Opera             | 28+            | 10 - 27          |\n| Opera Mobile      | 37+            | 12+              |\n| Safari (iOS)      | 9.2+           | 3.2 - 8.4        |\n| Safari (MacOS)    | 9.1+           | 3.1 - 8          |\n\n### Internet Explorer 8\n\n`closest` is especially useful for delegating events, but remember that Internet Explorer 8 does not support [`#Element.addEventListener`].\n\n## matches\n\nThis library also polyfills [`#Element.matches`], which is widely supported but often vendor-prefixed.\n\n```js\nelement.matches(selectorString) //=> boolean\n```\n\n`matches` is especially useful for short-handing `hasAttribute` or `classList.contains` with selectors.\n\n```js\nconst widget = document.querySelector('.custom-widget');\n\nif (widget.matches('[data-active]') || widget.matches('.widget--active')) {\n  // do something with the active widget\n}\n```\n\n[`#Element.closest`]: https://dom.spec.whatwg.org/#dom-element-closest\n[`#Element.matches`]: https://dom.spec.whatwg.org/#dom-element-matches\n[`#Element.addEventListener`]: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget.addEventListener#Browser_compatibility\n[closest]: https://github.com/jonathantneal/closest\n","maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"trysound","email":"trysound@yandex.ru"}],"time":{"modified":"2022-06-16T08:24:48.986Z","created":"2015-06-08T12:59:54.443Z","1.0.2":"2015-06-08T12:59:54.443Z","1.0.3":"2015-06-23T14:02:45.727Z","2.0.0":"2016-04-08T02:01:45.443Z","2.0.1":"2016-04-09T12:44:08.431Z","2.0.2":"2016-10-27T02:03:01.879Z","3.0.0":"2018-12-20T19:43:51.914Z","3.0.1":"2019-02-05T12:52:11.051Z","3.0.2":"2019-10-31T05:37:58.579Z"},"homepage":"https://github.com/jonathantneal/closest#readme","keywords":["javascript","js","dom","document","element","node","closest","matches","polyfill","web","standard"],"repository":{"type":"git","url":"git+https://github.com/jonathantneal/closest.git"},"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"bugs":{"url":"https://github.com/jonathantneal/closest/issues"},"license":"CC0-1.0","readmeFilename":"README.md","users":{"clauderic":true,"chrisyipw":true,"rossb":true,"bashkos":true,"black-black-cat":true,"scriptex":true}}