Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

traversty

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

traversty - npm Package Compare versions

Comparing version
1.0.3
to
1.0.4
+49
-18
.jshintrc
{
"predef": [ "assert", "refute", "define" ]
, "boss": true
"predef": [ "define", "ActiveXObject" ]
, "bitwise": false
, "shadow": true
, "trailing": true
, "immed": true
, "latedef": true
, "camelcase": false
, "curly": false
, "eqeqeq": false
, "forin": false
, "curly": false
, "debug": true
, "devel": false
, "evil": true
, "immed": false
, "latedef": false
, "newcap": true
, "noarg": true
, "noempty": true
, "nonew": true
, "plusplus": false
, "quotmark": true
, "regexp": false
, "undef": true
, "sub": true
, "white": false
, "unused": true
, "strict": false
, "trailing": true
, "maxlen": 120
, "asi": true
, "boss": true
, "debug": true
, "eqnull": true
, "es5": true
, "esnext": true
, "evil": true
, "expr": true
, "funcscope": false
, "globalstrict": false
, "iterator": false
, "lastsemic": true
, "laxbreak": true
, "eqnull": true
, "laxcomma": true
, "loopfunc": true
, "multistr": false
, "onecase": false
, "proto": false
, "regexdash": false
, "scripturl": true
, "smarttabs": false
, "shadow": false
, "sub": true
, "supernew": false
, "validthis": true
, "browser": true
, "couch": false
, "devel": false
, "dojo": false
, "mootools": false
, "node": true
, "laxcomma": true
, "proto": true
, "expr": true
, "es5": true
, "strict": false
, "nonstandard": true
, "prototypejs": false
, "rhino": false
, "worker": true
, "wsh": false
, "nomen": false
, "onevar": true
, "passfail": false
}

@@ -0,1 +1,3 @@

#!/usr/bin/env node
var fs = require('fs')

@@ -27,2 +29,13 @@ , gz = require('zlib').gzip

, packageJSON = require('./package')
, componentJSON = {
name : packageJSON.name
, description : packageJSON.description
, version : packageJSON.version
, keywords : packageJSON.keywords
, main : packageJSON.main
, scripts : [ packageJSON.main ]
, repo : packageJSON.repository.url.replace(/\.git$/, '')
}
sizes.min = minContents.length

@@ -57,2 +70,8 @@

})
})
})
fs.writeFile(
'./component.json'
, JSON.stringify(componentJSON, null, 2)
, function () {}
)
{
"name" : "traversty"
, "repo" : "rvagg/traversty"
, "description" : "Library agnostic utility for DOM collection management and traversal"
, "version" : "1.0.1"
, "twitter" : "@rvagg"
, "keywords" : [
"dom"
, "nodes"
, "traversal"
, "filter"
]
, "dependencies" : {}
, "development" : {}
, "main" : "./traversty.js"
, "scripts": [
"./traversty.js"
]
, "license" : "MIT"
"name": "traversty",
"description": "Library agnostic utility for DOM collection management and traversal",
"version": "1.0.3",
"keywords": [
"ender",
"dom",
"nodes",
"traversal"
],
"main": "./traversty.js",
"scripts": [
"./traversty.js"
],
"repo": "https://github.com/rvagg/traversty"
}
{
"name" : "traversty"
, "description" : "Library agnostic utility for DOM collection management and traversal"
, "version" : "1.0.3"
, "version" : "1.0.4"
, "homepage" : "https://github.com/rvagg/traversty"

@@ -6,0 +6,0 @@ , "authors" : [

@@ -5,3 +5,3 @@ # Traversty — headache-free DOM collection management and traversal

**Current file size:** 15.7 kB raw, 5.7 kB min, **2.1 kB gzip**
**Current file size:** 15.8 kB raw, 5.7 kB min, **2.1 kB gzip**

@@ -8,0 +8,0 @@ <a href="#api"><i>Just show me the API!</i></a>

@@ -1,2 +0,2 @@

/*global qwery:true, traversty:true, buster:true*/
/*global qwery:true, traversty:true, buster:true, Q:true*/

@@ -17,3 +17,9 @@ this.Q = qwery

var i
this.elements = Q(expectedSelector)
if (typeof expectedSelector == 'string') {
this.elements = Q(expectedSelector)
} else {
this.elements = []
for (i = 0; i < expectedSelector.length; i++)
this.elements = this.elements.concat(Q(expectedSelector[i]))
}
this.actual = []

@@ -20,0 +26,0 @@ for (i = 0; i < actual.length; i++)

@@ -334,3 +334,8 @@ /*global Q:true, T:true, assert:true*/

T(Q('#fixtures > ul > li > ul > li > span')).up('li')
, '#fixtures > ul:nth-child(1) > li:nth-child(4), #fixtures > ul:nth-child(1) > li > ul > li:nth-child(4),#fixtures > ul > li:nth-child(4), #fixtures > ul > li > ul > li:nth-child(4)'
, [
'#fixtures > ul:nth-child(1) > li > ul > li:nth-child(4)'
, '#fixtures > ul:nth-child(1) > li:nth-child(4)'
, '#fixtures > ul:nth-child(2) > li > ul > li:nth-child(4)'
, '#fixtures > ul:nth-child(2) > li:nth-child(4)'
]
, 'up("li") on two deep elements matches all <li> ancestor elements'

@@ -341,3 +346,15 @@ )

T(Q('#fixtures > ul > li > ul > li > span')).up('*')
, 'html, body, #fixtures, #fixtures > ul:nth-child(1), #fixtures > ul:nth-child(1) > li:nth-child(4), #fixtures > ul:nth-child(1) > li:nth-child(4) > ul, #fixtures > ul:nth-child(1) > li > ul > li:nth-child(4), #fixtures > ul, #fixtures > ul > li:nth-child(4), #fixtures > ul > li:nth-child(4) > ul, #fixtures > ul > li > ul > li:nth-child(4)'
, [
'#fixtures > ul:nth-child(1) > li > ul > li:nth-child(4)'
, '#fixtures > ul:nth-child(1) > li:nth-child(4) > ul'
, '#fixtures > ul:nth-child(1) > li:nth-child(4)'
, '#fixtures > ul:nth-child(1)'
, '#fixtures'
, 'body'
, 'html'
, '#fixtures > ul:nth-child(2) > li > ul > li:nth-child(4)'
, '#fixtures > ul:nth-child(2) > li:nth-child(4) > ul'
, '#fixtures > ul:nth-child(2) > li:nth-child(4)'
, '#fixtures > ul:nth-child(2)'
]
, 'up("*") on two deep elements matches all ancestor elements up to <html>'

@@ -348,3 +365,12 @@ )

T(Q('#fixtures > ul > li > ul > li > span')).up('ul, li')
, '#fixtures > ul:nth-child(1), #fixtures > ul:nth-child(1) > li:nth-child(4), #fixtures > ul:nth-child(1) > li:nth-child(4) > ul, #fixtures > ul:nth-child(1) > li > ul > li:nth-child(4),#fixtures > ul, #fixtures > ul > li:nth-child(4), #fixtures > ul > li > ul, #fixtures > ul > li > ul > li:nth-child(4)'
, [
'#fixtures > ul:nth-child(1) > li > ul > li:nth-child(4)'
, '#fixtures > ul:nth-child(1) > li:nth-child(4) > ul'
, '#fixtures > ul:nth-child(1) > li:nth-child(4)'
, '#fixtures > ul:nth-child(1)'
, '#fixtures > ul:nth-child(2) > li > ul > li:nth-child(4)'
, '#fixtures > ul:nth-child(2) > li:nth-child(4) > ul'
, '#fixtures > ul:nth-child(2) > li:nth-child(4)'
, '#fixtures > ul:nth-child(2)'
]
, 'up("ul, li") on two deep elements matches all <ul> and <li> ancestor elements'

@@ -380,3 +406,15 @@ )

T(Q('#fixtures > ul > li > ul > li > span')).parents()
, 'html, body, #fixtures, #fixtures > ul:nth-child(1), #fixtures > ul:nth-child(1) > li:nth-child(4), #fixtures > ul:nth-child(1) > li:nth-child(4) > ul, #fixtures > ul:nth-child(1) > li > ul > li:nth-child(4), #fixtures > ul, #fixtures > ul > li:nth-child(4), #fixtures > ul > li:nth-child(4) > ul, #fixtures > ul > li > ul > li:nth-child(4)'
, [
'#fixtures > ul:nth-child(1) > li > ul > li:nth-child(4)'
, '#fixtures > ul:nth-child(1) > li:nth-child(4) > ul'
, '#fixtures > ul:nth-child(1) > li:nth-child(4)'
, '#fixtures > ul:nth-child(1)'
, '#fixtures'
, 'body'
, 'html'
, '#fixtures > ul:nth-child(2) > li > ul > li:nth-child(4)'
, '#fixtures > ul:nth-child(2) > li:nth-child(4) > ul'
, '#fixtures > ul:nth-child(2) > li:nth-child(4)'
, '#fixtures > ul:nth-child(2)'
]
, 'parents() on two deep elements matches all ancestor elements up to <html>'

@@ -443,3 +481,8 @@ )

T(Q('#fixtures > ul > li > ul > li > span')).parents('li')
, '#fixtures > ul:nth-child(1) > li:nth-child(4), #fixtures > ul:nth-child(1) > li > ul > li:nth-child(4),#fixtures > ul > li:nth-child(4), #fixtures > ul > li > ul > li:nth-child(4)'
, [
'#fixtures > ul:nth-child(1) > li > ul > li:nth-child(4)'
, '#fixtures > ul:nth-child(1) > li:nth-child(4)'
, '#fixtures > ul:nth-child(2) > li > ul > li:nth-child(4)'
, '#fixtures > ul:nth-child(2) > li:nth-child(4)'
]
, 'parents("li") on two deep elements matches all <li> ancestor elements'

@@ -450,3 +493,15 @@ )

T(Q('#fixtures > ul > li > ul > li > span')).parents('*')
, 'html, body, #fixtures, #fixtures > ul:nth-child(1), #fixtures > ul:nth-child(1) > li:nth-child(4), #fixtures > ul:nth-child(1) > li:nth-child(4) > ul, #fixtures > ul:nth-child(1) > li > ul > li:nth-child(4), #fixtures > ul, #fixtures > ul > li:nth-child(4), #fixtures > ul > li:nth-child(4) > ul, #fixtures > ul > li > ul > li:nth-child(4)'
, [
'#fixtures > ul:nth-child(1) > li > ul > li:nth-child(4)'
, '#fixtures > ul:nth-child(1) > li:nth-child(4) > ul'
, '#fixtures > ul:nth-child(1) > li:nth-child(4)'
, '#fixtures > ul:nth-child(1)'
, '#fixtures'
, 'body'
, 'html'
, '#fixtures > ul:nth-child(2) > li > ul > li:nth-child(4)'
, '#fixtures > ul:nth-child(2) > li:nth-child(4) > ul'
, '#fixtures > ul:nth-child(2) > li:nth-child(4)'
, '#fixtures > ul:nth-child(2)'
]
, 'parents("*") on two deep elements matches all ancestor elements up to <html>'

@@ -457,3 +512,12 @@ )

T(Q('#fixtures > ul > li > ul > li > span')).parents('ul, li')
, '#fixtures > ul:nth-child(1), #fixtures > ul:nth-child(1) > li:nth-child(4), #fixtures > ul:nth-child(1) > li:nth-child(4) > ul, #fixtures > ul:nth-child(1) > li > ul > li:nth-child(4),#fixtures > ul, #fixtures > ul > li:nth-child(4), #fixtures > ul > li > ul, #fixtures > ul > li > ul > li:nth-child(4)'
, [
'#fixtures > ul:nth-child(1) > li > ul > li:nth-child(4)'
, '#fixtures > ul:nth-child(1) > li:nth-child(4) > ul'
, '#fixtures > ul:nth-child(1) > li:nth-child(4)'
, '#fixtures > ul:nth-child(1)'
, '#fixtures > ul:nth-child(2) > li > ul > li:nth-child(4)'
, '#fixtures > ul:nth-child(2) > li:nth-child(4) > ul'
, '#fixtures > ul:nth-child(2) > li:nth-child(4)'
, '#fixtures > ul:nth-child(2)'
]
, 'parents("ul, li") on two deep elements matches all <ul> and <li> ancestor elements'

@@ -460,0 +524,0 @@ )

@@ -9,5 +9,8 @@ /***************************************************************

(function (name, context, definition) {
if (typeof module != 'undefined' && module.exports) module.exports = definition()
else if (typeof define == 'function' && define.amd) define(definition)
else context[name] = definition()
if (typeof module != 'undefined' && module.exports)
module.exports = definition()
else if (typeof define == 'function' && define.amd)
define(definition)
else
context[name] = definition()
})('traversty', this, function () {

@@ -155,3 +158,7 @@

// in reverse order when doing a previous(selector) and up(selector)
index === null && method !== 'nextSibling' ? ret = [el].concat(ret) : ret.push(el)
index === null
&& method != 'nextSibling'
&& method != 'parentNode'
? ret.unshift(el)
: ret.push(el)
}

@@ -158,0 +165,0 @@ el = el[method]

@@ -7,2 +7,2 @@ /***************************************************************

*/
(function(e,t,n){typeof module!="undefined"&&module.exports?module.exports=n():typeof define=="function"&&define.amd?define(n):t[e]=n()})("traversty",this,function(){var e=this,t=e.traversty,n=window.document,r=n.documentElement,i=Object.prototype.toString,s=Array.prototype,o=s.slice,u=function(e,t,n,r,i){while(r<t.length)if(e[i=t[r++]+n])return i}(r,["msM","webkitM","mozM","oM","m"],"atchesSelector",0),a=function(){return!1},f=function(e){return i.call(e)==="[object Number]"},l=function(e){return i.call(e)==="[object String]"},c=function(e){return i.call(e)==="[object Function]"},h=function(e){return e===void 0},p=function(e){return e&&e.nodeType===1},d=function(e,t){return h(e)&&!f(t)?0:f(e)?e:f(t)?t:null},v=function(e){return l(e)?e:"*"},m=function(e,t){return o.call(t.querySelectorAll(e),0)},g=function(e,t){return e==="*"||t[u](e)},y=m,b=g,w=function(e,t){return function(n,r){if(/,/.test(n)){var i=[],s=-1,o=r.getElementsByTagName("*");while(++s<o.length)p(o[s])&&t(n,o[s])&&i.push(o[s]);return i}return e(n,r)}},E="compareDocumentPosition"in r?function(e,t){return(t.compareDocumentPosition(e)&16)==16}:"contains"in r?function(e,t){return t=t.nodeType===9||t==window?r:t,t!==e&&t.contains(e)}:function(e,t){while(e=e.parentNode)if(e===t)return 1;return 0},S=function(e){var t=[],n=-1,r,i;while(++n<e.length){r=-1,i=!1;while(++r<t.length)if(t[r]===e[n]){i=!0;break}i||t.push(e[n])}return t},x=function(e,t){var n=[],r,i=0,s,o=e.length,u;while(i<o){s=0,u=(r=t(e[i],i++)).length;while(s<u)n.push(r[s++])}return n},T=function(e,t,n,r,i){return r=d(n,r),n=v(n),x(e,function(e,s){var o=r||0,u=[];i||(e=e[t]);while(e&&(r===null||o>=0))p(e)&&(!i||i===!0||i(e,s))&&b(n,e)&&(r===null||o--===0)&&(r===null&&t!=="nextSibling"?u=[e].concat(u):u.push(e)),e=e[t];return u})},N=function(e,t,n){return t<0&&(t=e+t),t<0||t>=e?null:!t&&t!==0?n:t},C=function(e,t){var n=[],r=0,i=e.length;for(;r<i;r++)t(e[r],r)&&n.push(e[r]);return n},k=function(e){var t;return p(e)?function(t){return t===e}:(t=typeof e)=="function"?function(t,n){return e.call(t,n)}:t=="string"&&e.length?function(t){return b(e,t)}:a},L=function(e){return function(){return!e.apply(this,arguments)}},A=function(){function r(e){this.length=0;if(e){e=S(!e.nodeType&&!h(e.length)?e:[e]);var t=this.length=e.length;while(t--)this[t]=e[t]}}function i(e){return new r(l(e)?y(e,n):e)}return r.prototype={down:function(e,t){return t=d(e,t),e=v(e),A(x(this,function(n){var r=y(e,n);return t===null?r:[r[t]]||[]}))},up:function(e,t){return A(T(this,"parentNode",e,t))},parents:function(){return r.prototype.up.apply(this,arguments.length?arguments:["*"])},closest:function(e,t){if(f(e))t=e,e="*";else{if(!l(e))return A([]);f(t)||(t=0)}return A(T(this,"parentNode",e,t,!0))},previous:function(e,t){return A(T(this,"previousSibling",e,t))},next:function(e,t){return A(T(this,"nextSibling",e,t))},siblings:function(e,t){var n=this,r=o.call(this,0),i=0,s=r.length;for(;i<s;i++){r[i]=r[i].parentNode.firstChild;while(!p(r[i]))r[i]=r[i].nextSibling}return h(e)&&(e="*"),A(T(r,"nextSibling",e||"*",t,function(e,t){return e!==n[t]}))},children:function(e,t){return A(T(r.prototype.down.call(this),"nextSibling",e||"*",t,!0))},first:function(){return r.prototype.eq.call(this,0)},last:function(){return r.prototype.eq.call(this,-1)},eq:function(e){return A(this.get(e))},get:function(e){return this[N(this.length,e,0)]},slice:function(e,t){var n=t,r=this.length,i=[];e=N(r,Math.max(-this.length,e),0),n=N(t<0?r:r+1,t,r),t=n===null||n>r?t<0?0:r:n;while(e!==null&&e<t)i.push(this[e++]);return A(i)},filter:function(e){return A(C(this,k(e)))},not:function(e){return A(C(this,L(k(e))))},has:function(e){return A(C(this,p(e)?function(t){return E(e,t)}:typeof e=="string"&&e.length?function(t){return y(e,t).length}:a))},is:function(e){var t=0,n=this.length,r=k(e);for(;t<n;t++)if(r(this[t],t))return!0;return!1},toArray:function(){return s.slice.call(this)},size:function(){return this.length},each:function(e,t){var n=0,r=this.length;for(;n<r;n++)e.call(t||this[n],this[n],n,this);return this},push:s.push,sort:s.sort,splice:s.splice},r.prototype.prev=r.prototype.previous,i.aug=function(e){var t,n;for(t in e)n=e[t],typeof n=="function"&&(r.prototype[t]=n)},i.setSelectorEngine=function(e){var t,r,s,o,u,a=n.createElement("p"),f=e.select||e.sel||e;a.innerHTML="<a/><i/><b/>",s=a.firstChild;try{o=c(e.matching)?function(t,n){return e.matching([n],t).length>0}:c(e.is)?function(t,n){return e.is(n,t)}:c(e.matchesSelector)?function(t,n){return e.matchesSelector(n,t)}:c(e.match)?function(t,n){return e.match(n,t)}:c(e.matches)?function(t,n){return e.matches(n,t)}:null,o||(t=e("a",a),o=c(t._is)?function(t,n){return e(n)._is(t)}:c(t.matching)?function(t,n){return e(n).matching(t).length>0}:c(t.is)&&!t.is.__ignore?function(t,n){return e(n).is(t)}:c(t.matchesSelector)?function(t,n){return e(n).matchesSelector(t)}:c(t.match)?function(t,n){return e(n).match(t)}:c(t.matches)?function(t,n){return e(n).matches(t)}:null);if(!o)throw new Error("Traversty: couldn't find selector engine's `matchesSelector`");if(o("x,y",a)||!o("a,p",a))throw new Error("Traversty: couldn't make selector engine's `matchesSelector` work");if((r=f("b,a",a)).length!==2)throw new Error("Traversty: don't know how to use this selector engine");u=r[0]===s?f:w(f,o);if((r=u("b,a",a)).length!==2||r[0]!==s)throw new Error("Traversty: couldn't make selector engine work");b=o,y=u}catch(h){throw l(h)?h:new Error("Traversty: error while figuring out how the selector engine works: "+(h.message||h))}finally{a=null}return i},i.noConflict=function(){return e.traversty=t,this},i}();return A})
(function(e,t,n){typeof module!="undefined"&&module.exports?module.exports=n():typeof define=="function"&&define.amd?define(n):t[e]=n()})("traversty",this,function(){var e=this,t=e.traversty,n=window.document,r=n.documentElement,i=Object.prototype.toString,s=Array.prototype,o=s.slice,u=function(e,t,n,r,i){while(r<t.length)if(e[i=t[r++]+n])return i}(r,["msM","webkitM","mozM","oM","m"],"atchesSelector",0),a=function(){return!1},f=function(e){return i.call(e)==="[object Number]"},l=function(e){return i.call(e)==="[object String]"},c=function(e){return i.call(e)==="[object Function]"},h=function(e){return e===void 0},p=function(e){return e&&e.nodeType===1},d=function(e,t){return h(e)&&!f(t)?0:f(e)?e:f(t)?t:null},v=function(e){return l(e)?e:"*"},m=function(e,t){return o.call(t.querySelectorAll(e),0)},g=function(e,t){return e==="*"||t[u](e)},y=m,b=g,w=function(e,t){return function(n,r){if(/,/.test(n)){var i=[],s=-1,o=r.getElementsByTagName("*");while(++s<o.length)p(o[s])&&t(n,o[s])&&i.push(o[s]);return i}return e(n,r)}},E="compareDocumentPosition"in r?function(e,t){return(t.compareDocumentPosition(e)&16)==16}:"contains"in r?function(e,t){return t=t.nodeType===9||t==window?r:t,t!==e&&t.contains(e)}:function(e,t){while(e=e.parentNode)if(e===t)return 1;return 0},S=function(e){var t=[],n=-1,r,i;while(++n<e.length){r=-1,i=!1;while(++r<t.length)if(t[r]===e[n]){i=!0;break}i||t.push(e[n])}return t},x=function(e,t){var n=[],r,i=0,s,o=e.length,u;while(i<o){s=0,u=(r=t(e[i],i++)).length;while(s<u)n.push(r[s++])}return n},T=function(e,t,n,r,i){return r=d(n,r),n=v(n),x(e,function(e,s){var o=r||0,u=[];i||(e=e[t]);while(e&&(r===null||o>=0))p(e)&&(!i||i===!0||i(e,s))&&b(n,e)&&(r===null||o--===0)&&(r===null&&t!="nextSibling"&&t!="parentNode"?u.unshift(e):u.push(e)),e=e[t];return u})},N=function(e,t,n){return t<0&&(t=e+t),t<0||t>=e?null:!t&&t!==0?n:t},C=function(e,t){var n=[],r=0,i=e.length;for(;r<i;r++)t(e[r],r)&&n.push(e[r]);return n},k=function(e){var t;return p(e)?function(t){return t===e}:(t=typeof e)=="function"?function(t,n){return e.call(t,n)}:t=="string"&&e.length?function(t){return b(e,t)}:a},L=function(e){return function(){return!e.apply(this,arguments)}},A=function(){function r(e){this.length=0;if(e){e=S(!e.nodeType&&!h(e.length)?e:[e]);var t=this.length=e.length;while(t--)this[t]=e[t]}}function i(e){return new r(l(e)?y(e,n):e)}return r.prototype={down:function(e,t){return t=d(e,t),e=v(e),A(x(this,function(n){var r=y(e,n);return t===null?r:[r[t]]||[]}))},up:function(e,t){return A(T(this,"parentNode",e,t))},parents:function(){return r.prototype.up.apply(this,arguments.length?arguments:["*"])},closest:function(e,t){if(f(e))t=e,e="*";else{if(!l(e))return A([]);f(t)||(t=0)}return A(T(this,"parentNode",e,t,!0))},previous:function(e,t){return A(T(this,"previousSibling",e,t))},next:function(e,t){return A(T(this,"nextSibling",e,t))},siblings:function(e,t){var n=this,r=o.call(this,0),i=0,s=r.length;for(;i<s;i++){r[i]=r[i].parentNode.firstChild;while(!p(r[i]))r[i]=r[i].nextSibling}return h(e)&&(e="*"),A(T(r,"nextSibling",e||"*",t,function(e,t){return e!==n[t]}))},children:function(e,t){return A(T(r.prototype.down.call(this),"nextSibling",e||"*",t,!0))},first:function(){return r.prototype.eq.call(this,0)},last:function(){return r.prototype.eq.call(this,-1)},eq:function(e){return A(this.get(e))},get:function(e){return this[N(this.length,e,0)]},slice:function(e,t){var n=t,r=this.length,i=[];e=N(r,Math.max(-this.length,e),0),n=N(t<0?r:r+1,t,r),t=n===null||n>r?t<0?0:r:n;while(e!==null&&e<t)i.push(this[e++]);return A(i)},filter:function(e){return A(C(this,k(e)))},not:function(e){return A(C(this,L(k(e))))},has:function(e){return A(C(this,p(e)?function(t){return E(e,t)}:typeof e=="string"&&e.length?function(t){return y(e,t).length}:a))},is:function(e){var t=0,n=this.length,r=k(e);for(;t<n;t++)if(r(this[t],t))return!0;return!1},toArray:function(){return s.slice.call(this)},size:function(){return this.length},each:function(e,t){var n=0,r=this.length;for(;n<r;n++)e.call(t||this[n],this[n],n,this);return this},push:s.push,sort:s.sort,splice:s.splice},r.prototype.prev=r.prototype.previous,i.aug=function(e){var t,n;for(t in e)n=e[t],typeof n=="function"&&(r.prototype[t]=n)},i.setSelectorEngine=function(e){var t,r,s,o,u,a=n.createElement("p"),f=e.select||e.sel||e;a.innerHTML="<a/><i/><b/>",s=a.firstChild;try{o=c(e.matching)?function(t,n){return e.matching([n],t).length>0}:c(e.is)?function(t,n){return e.is(n,t)}:c(e.matchesSelector)?function(t,n){return e.matchesSelector(n,t)}:c(e.match)?function(t,n){return e.match(n,t)}:c(e.matches)?function(t,n){return e.matches(n,t)}:null,o||(t=e("a",a),o=c(t._is)?function(t,n){return e(n)._is(t)}:c(t.matching)?function(t,n){return e(n).matching(t).length>0}:c(t.is)&&!t.is.__ignore?function(t,n){return e(n).is(t)}:c(t.matchesSelector)?function(t,n){return e(n).matchesSelector(t)}:c(t.match)?function(t,n){return e(n).match(t)}:c(t.matches)?function(t,n){return e(n).matches(t)}:null);if(!o)throw new Error("Traversty: couldn't find selector engine's `matchesSelector`");if(o("x,y",a)||!o("a,p",a))throw new Error("Traversty: couldn't make selector engine's `matchesSelector` work");if((r=f("b,a",a)).length!==2)throw new Error("Traversty: don't know how to use this selector engine");u=r[0]===s?f:w(f,o);if((r=u("b,a",a)).length!==2||r[0]!==s)throw new Error("Traversty: couldn't make selector engine work");b=o,y=u}catch(h){throw l(h)?h:new Error("Traversty: error while figuring out how the selector engine works: "+(h.message||h))}finally{a=null}return i},i.noConflict=function(){return e.traversty=t,this},i}();return A})