Comparing version 1.11.0 to 1.11.1-beta1
@@ -209,1 +209,7 @@ Authors ordered by first contribution. | ||
John Paul <john@johnkpaul.com> | ||
S. Andrew Sheppard <andrew@wq.io> | ||
Roman Reiß <me@silverwind.io> | ||
Benjy Cui <benjytrys@gmail.com> | ||
Rodrigo Rosenfeld Rosas <rr.rosas@gmail.com> | ||
John Hoven <hovenj@gmail.com> | ||
{ | ||
"name": "jquery", | ||
"version": "1.11.0", | ||
"version": "1.11.1-beta1", | ||
"main": "dist/jquery.js", | ||
"license": "MIT", | ||
"ignore": [ | ||
@@ -12,12 +14,9 @@ "**/.*", | ||
"Gruntfile.js", | ||
"package.json", | ||
"bower.json" | ||
"package.json" | ||
], | ||
"dependencies": { | ||
"sizzle": "1.10.16" | ||
}, | ||
"devDependencies": { | ||
"requirejs": "~2.1.8", | ||
"qunit": "~1.12.0", | ||
"sinon": "~1.7.3" | ||
"sizzle": "1.10.18", | ||
"requirejs": "2.1.10", | ||
"qunit": "1.14.0", | ||
"sinon": "1.8.1" | ||
}, | ||
@@ -24,0 +23,0 @@ "keywords": [ |
@@ -5,3 +5,3 @@ { | ||
"description": "JavaScript library for DOM operations", | ||
"version": "1.11.0", | ||
"version": "1.11.1-beta1", | ||
"main": "dist/jquery.js", | ||
@@ -11,3 +11,3 @@ "homepage": "http://jquery.com", | ||
"name": "jQuery Foundation and other contributors", | ||
"url": "https://github.com/jquery/jquery/blob/1.11.0/AUTHORS.txt" | ||
"url": "https://github.com/jquery/jquery/blob/1.11.1-beta1/AUTHORS.txt" | ||
}, | ||
@@ -29,3 +29,3 @@ "repository": { | ||
"type": "MIT", | ||
"url": "https://github.com/jquery/jquery/blob/1.11.0/MIT-LICENSE.txt" | ||
"url": "https://github.com/jquery/jquery/blob/1.11.1-beta1/MIT-LICENSE.txt" | ||
} | ||
@@ -35,18 +35,17 @@ ], | ||
"devDependencies": { | ||
"archiver": "0.4.10", | ||
"gzip-js": "0.3.2", | ||
"testswarm": "1.1.0", | ||
"load-grunt-tasks": "0.2.0", | ||
"requirejs": "2.1.9", | ||
"shelljs": "0.2.6", | ||
"commitplease": "1.7.0", | ||
"grunt": "0.4.2", | ||
"grunt-cli": "0.1.11", | ||
"grunt-contrib-jshint": "0.7.2", | ||
"grunt-contrib-uglify": "0.2.7", | ||
"grunt-bowercopy": "0.7.1", | ||
"grunt-cli": "0.1.13", | ||
"grunt-compare-size": "0.4.0", | ||
"grunt-contrib-jshint": "0.8.0", | ||
"grunt-contrib-uglify": "0.3.2", | ||
"grunt-contrib-watch": "0.5.3", | ||
"grunt-bowercopy": "0.5.0", | ||
"grunt-compare-size": "0.4.0", | ||
"grunt-git-authors": "1.2.0", | ||
"grunt-jscs-checker": "0.2.6", | ||
"grunt-jsonlint": "1.0.4" | ||
"grunt-jscs-checker": "0.3.2", | ||
"grunt-jsonlint": "1.0.4", | ||
"gzip-js": "0.3.2", | ||
"load-grunt-tasks": "0.3.0", | ||
"requirejs": "2.1.10", | ||
"testswarm": "1.1.0" | ||
}, | ||
@@ -53,0 +52,0 @@ "scripts": { |
@@ -100,4 +100,2 @@ [jQuery](http://jquery.com/) - New Wave JavaScript | ||
*Note*: Excluding Sizzle will also exclude all jQuery selector extensions (such as `effects/animatedSelector` and `css/hiddenVisibleSelectors`). | ||
The build process shows a message for each dependent module it excludes or includes. | ||
@@ -212,5 +210,5 @@ | ||
As the source code is handled by the version control system Git, it's useful to know some features used. | ||
As the source code is handled by the Git version control system, it's useful to know some features used. | ||
### cleaning ### | ||
### Cleaning ### | ||
@@ -224,3 +222,3 @@ If you want to purge your working directory back to the status of upstream, following commands can be used (remember everything you've worked on is gone after these): | ||
### rebasing ### | ||
### Rebasing ### | ||
@@ -234,3 +232,3 @@ For feature/topic branches, you should always use the `--rebase` flag to `git pull`, or if you are usually handling many temporary "to be in a github pull request" branches, run following to automate this: | ||
### handling merge conflicts ### | ||
### Handling merge conflicts ### | ||
@@ -251,3 +249,3 @@ If you're getting merge conflicts when merging, instead of editing the conflicted files manually, you can use the feature | ||
[QUnit](http://docs.jquery.com/QUnit) Reference | ||
[QUnit](http://api.qunitjs.com) Reference | ||
----------------- | ||
@@ -264,3 +262,3 @@ | ||
note: QUnit's eventual addition of an argument to stop/start is ignored in this test suite so that start and stop can be passed as callbacks without worrying about their parameters | ||
Note: QUnit's eventual addition of an argument to stop/start is ignored in this test suite so that start and stop can be passed as callbacks without worrying about their parameters | ||
@@ -278,3 +276,3 @@ ### Test assertions ### | ||
notStrictEqual( actual, expected, [message] ); | ||
raises( block, [expected], [message] ); | ||
throws( block, [expected], [message] ); | ||
``` | ||
@@ -365,3 +363,3 @@ | ||
Loads a given page constructing a url with fileName: `"./data/" + fileName + ".html"` | ||
The given callback is fired when window.iframeCallback is called by the page | ||
The given callback is fired when window.iframeCallback is called by the page. | ||
The arguments passed to the callback are the same as the | ||
@@ -368,0 +366,0 @@ arguments passed to window.iframeCallback, whatever that may be |
@@ -28,3 +28,3 @@ define([ | ||
if ( off >= 0 ) { | ||
selector = url.slice( off, url.length ); | ||
selector = jQuery.trim( url.slice( off, url.length ) ); | ||
url = url.slice( 0, off ); | ||
@@ -31,0 +31,0 @@ } |
@@ -6,6 +6,7 @@ define([ | ||
(function() { | ||
var a, input, select, opt, | ||
div = document.createElement("div" ); | ||
// Minified: var a,b,c,d,e | ||
var input, div, select, a, opt; | ||
// Setup | ||
div = document.createElement( "div" ); | ||
div.setAttribute( "className", "t" ); | ||
@@ -58,5 +59,2 @@ div.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>"; | ||
support.radioValue = input.value === "t"; | ||
// Null elements to avoid leaks in IE. | ||
a = input = select = opt = div = null; | ||
})(); | ||
@@ -63,0 +61,0 @@ |
@@ -77,3 +77,5 @@ define([ | ||
val : | ||
jQuery.text( elem ); | ||
// Support: IE10-11+ | ||
// option.text throws exceptions (#14686, #14858) | ||
jQuery.trim( jQuery.text( elem ) ); | ||
} | ||
@@ -80,0 +82,0 @@ }, |
@@ -10,5 +10,4 @@ define([ | ||
"./var/hasOwn", | ||
"./var/trim", | ||
"./var/support" | ||
], function( deletedIds, slice, concat, push, indexOf, class2type, toString, hasOwn, trim, support ) { | ||
], function( deletedIds, slice, concat, push, indexOf, class2type, toString, hasOwn, support ) { | ||
@@ -25,3 +24,4 @@ var | ||
// Make sure we trim BOM and NBSP (here's looking at you, Safari 5.0 and IE) | ||
// Support: Android<4.1, IE<9 | ||
// Make sure we trim BOM and NBSP | ||
rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, | ||
@@ -59,6 +59,6 @@ | ||
// Return a 'clean' array | ||
// Return just the one element from the set | ||
( num < 0 ? this[ num + this.length ] : this[ num ] ) : | ||
// Return just the object | ||
// Return all the elements in a clean array | ||
slice.call( this ); | ||
@@ -222,3 +222,3 @@ }, | ||
// subtraction forces infinities to NaN | ||
return obj - parseFloat( obj ) >= 0; | ||
return !jQuery.isArray( obj ) && obj - parseFloat( obj ) >= 0; | ||
}, | ||
@@ -354,17 +354,9 @@ | ||
// Use native String.trim function wherever possible | ||
trim: trim && !trim.call("\uFEFF\xA0") ? | ||
function( text ) { | ||
return text == null ? | ||
"" : | ||
trim.call( text ); | ||
} : | ||
// Support: Android<4.1, IE<9 | ||
trim: function( text ) { | ||
return text == null ? | ||
"" : | ||
( text + "" ).replace( rtrim, "" ); | ||
}, | ||
// Otherwise use our own trimming functionality | ||
function( text ) { | ||
return text == null ? | ||
"" : | ||
( text + "" ).replace( rtrim, "" ); | ||
}, | ||
// results is for internal usage only | ||
@@ -371,0 +363,0 @@ makeArray: function( arr, results ) { |
@@ -59,4 +59,5 @@ define([ | ||
// Trigger any bound ready events | ||
if ( jQuery.fn.trigger ) { | ||
jQuery( document ).trigger("ready").off("ready"); | ||
if ( jQuery.fn.triggerHandler ) { | ||
jQuery( document ).triggerHandler( "ready" ); | ||
jQuery( document ).off( "ready" ); | ||
} | ||
@@ -63,0 +64,0 @@ } |
@@ -35,4 +35,4 @@ define([ | ||
cssNormalTransform = { | ||
letterSpacing: 0, | ||
fontWeight: 400 | ||
letterSpacing: "0", | ||
fontWeight: "400" | ||
}, | ||
@@ -96,9 +96,6 @@ | ||
} else { | ||
hidden = isHidden( elem ); | ||
if ( !values[ index ] ) { | ||
hidden = isHidden( elem ); | ||
if ( display && display !== "none" || !hidden ) { | ||
jQuery._data( elem, "olddisplay", hidden ? display : jQuery.css( elem, "display" ) ); | ||
} | ||
if ( display && display !== "none" || !hidden ) { | ||
jQuery._data( elem, "olddisplay", hidden ? display : jQuery.css( elem, "display" ) ); | ||
} | ||
@@ -176,3 +173,3 @@ } | ||
styles = getStyles( elem ), | ||
isBorderBox = support.boxSizing() && jQuery.css( elem, "boxSizing", false, styles ) === "border-box"; | ||
isBorderBox = support.boxSizing && jQuery.css( elem, "boxSizing", false, styles ) === "border-box"; | ||
@@ -233,2 +230,4 @@ // some non-html elements return undefined for offsetWidth, so check for null/undefined | ||
"fillOpacity": true, | ||
"flexGrow": true, | ||
"flexShrink": true, | ||
"fontWeight": true, | ||
@@ -302,5 +301,2 @@ "lineHeight": true, | ||
try { | ||
// Support: Chrome, Safari | ||
// Setting style to blank string required to delete "style: x !important;" | ||
style[ name ] = ""; | ||
style[ name ] = value; | ||
@@ -377,3 +373,3 @@ } catch(e) {} | ||
extra, | ||
support.boxSizing() && jQuery.css( elem, "boxSizing", false, styles ) === "border-box", | ||
support.boxSizing && jQuery.css( elem, "boxSizing", false, styles ) === "border-box", | ||
styles | ||
@@ -380,0 +376,0 @@ ) : 0 |
@@ -16,10 +16,11 @@ define([ | ||
function actualDisplay( name, doc ) { | ||
var elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ), | ||
var style, | ||
elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ), | ||
// getDefaultComputedStyle might be reliably used only on attached element | ||
display = window.getDefaultComputedStyle ? | ||
display = window.getDefaultComputedStyle && ( style = window.getDefaultComputedStyle( elem[ 0 ] ) ) ? | ||
// Use of this method is a temporary fix (more like optmization) until something better comes along, | ||
// since it was removed from specification and supported only in FF | ||
window.getDefaultComputedStyle( elem[ 0 ] ).display : jQuery.css( elem[ 0 ], "display" ); | ||
style.display : jQuery.css( elem[ 0 ], "display" ); | ||
@@ -26,0 +27,0 @@ // We don't have any data stored on the element, |
@@ -7,24 +7,26 @@ define([ | ||
(function() { | ||
var a, reliableHiddenOffsetsVal, boxSizingVal, boxSizingReliableVal, | ||
pixelPositionVal, reliableMarginRightVal, | ||
div = document.createElement( "div" ), | ||
containerStyles = "border:0;width:0;height:0;position:absolute;top:0;left:-9999px", | ||
divReset = | ||
"-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;" + | ||
"display:block;padding:0;margin:0;border:0"; | ||
// Minified: var b,c,d,e,f,g, h,i | ||
var div, style, a, pixelPositionVal, boxSizingReliableVal, | ||
reliableHiddenOffsetsVal, reliableMarginRightVal; | ||
// Setup | ||
div = document.createElement( "div" ); | ||
div.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>"; | ||
a = div.getElementsByTagName( "a" )[ 0 ]; | ||
style = a && a.style; | ||
a.style.cssText = "float:left;opacity:.5"; | ||
// Finish early in limited (non-browser) environments | ||
if ( !style ) { | ||
return; | ||
} | ||
// Make sure that element opacity exists | ||
// (IE uses filter instead) | ||
// Use a regex to work around a WebKit issue. See #5145 | ||
support.opacity = /^0.5/.test( a.style.opacity ); | ||
style.cssText = "float:left;opacity:.5"; | ||
// Support: IE<9 | ||
// Make sure that element opacity exists (as opposed to filter) | ||
support.opacity = style.opacity === "0.5"; | ||
// Verify style float existence | ||
// (IE uses styleFloat instead of cssFloat) | ||
support.cssFloat = !!a.style.cssFloat; | ||
support.cssFloat = !!style.cssFloat; | ||
@@ -35,63 +37,15 @@ div.style.backgroundClip = "content-box"; | ||
// Null elements to avoid leaks in IE. | ||
a = div = null; | ||
// Support: Firefox<29, Android 2.3 | ||
// Vendor-prefix box-sizing | ||
support.boxSizing = style.boxSizing === "" || style.MozBoxSizing === "" || | ||
style.WebkitBoxSizing === ""; | ||
jQuery.extend(support, { | ||
reliableHiddenOffsets: function() { | ||
if ( reliableHiddenOffsetsVal != null ) { | ||
return reliableHiddenOffsetsVal; | ||
if ( reliableHiddenOffsetsVal == null ) { | ||
computeStyleTests(); | ||
} | ||
var container, tds, isSupported, | ||
div = document.createElement( "div" ), | ||
body = document.getElementsByTagName( "body" )[ 0 ]; | ||
if ( !body ) { | ||
// Return for frameset docs that don't have a body | ||
return; | ||
} | ||
// Setup | ||
div.setAttribute( "className", "t" ); | ||
div.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>"; | ||
container = document.createElement( "div" ); | ||
container.style.cssText = containerStyles; | ||
body.appendChild( container ).appendChild( div ); | ||
// Support: IE8 | ||
// Check if table cells still have offsetWidth/Height when they are set | ||
// to display:none and there are still other visible table cells in a | ||
// table row; if so, offsetWidth/Height are not reliable for use when | ||
// determining if an element has been hidden directly using | ||
// display:none (it is still safe to use offsets if a parent element is | ||
// hidden; don safety goggles and see bug #4512 for more information). | ||
div.innerHTML = "<table><tr><td></td><td>t</td></tr></table>"; | ||
tds = div.getElementsByTagName( "td" ); | ||
tds[ 0 ].style.cssText = "padding:0;margin:0;border:0;display:none"; | ||
isSupported = ( tds[ 0 ].offsetHeight === 0 ); | ||
tds[ 0 ].style.display = ""; | ||
tds[ 1 ].style.display = "none"; | ||
// Support: IE8 | ||
// Check if empty table cells still have offsetWidth/Height | ||
reliableHiddenOffsetsVal = isSupported && ( tds[ 0 ].offsetHeight === 0 ); | ||
body.removeChild( container ); | ||
// Null elements to avoid leaks in IE. | ||
div = body = null; | ||
return reliableHiddenOffsetsVal; | ||
}, | ||
boxSizing: function() { | ||
if ( boxSizingVal == null ) { | ||
computeStyleTests(); | ||
} | ||
return boxSizingVal; | ||
}, | ||
boxSizingReliable: function() { | ||
@@ -111,34 +65,7 @@ if ( boxSizingReliableVal == null ) { | ||
// Support: Android 2.3 | ||
reliableMarginRight: function() { | ||
var body, container, div, marginDiv; | ||
// Use window.getComputedStyle because jsdom on node.js will break without it. | ||
if ( reliableMarginRightVal == null && window.getComputedStyle ) { | ||
body = document.getElementsByTagName( "body" )[ 0 ]; | ||
if ( !body ) { | ||
// Test fired too early or in an unsupported environment, exit. | ||
return; | ||
} | ||
container = document.createElement( "div" ); | ||
div = document.createElement( "div" ); | ||
container.style.cssText = containerStyles; | ||
body.appendChild( container ).appendChild( div ); | ||
// Check if div with explicit width and no margin-right incorrectly | ||
// gets computed margin-right based on width of container. (#3333) | ||
// Fails in WebKit before Feb 2011 nightlies | ||
// WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right | ||
marginDiv = div.appendChild( document.createElement( "div" ) ); | ||
marginDiv.style.cssText = div.style.cssText = divReset; | ||
marginDiv.style.marginRight = marginDiv.style.width = "0"; | ||
div.style.width = "1px"; | ||
reliableMarginRightVal = | ||
!parseFloat( ( window.getComputedStyle( marginDiv, null ) || {} ).marginRight ); | ||
body.removeChild( container ); | ||
if ( reliableMarginRightVal == null ) { | ||
computeStyleTests(); | ||
} | ||
return reliableMarginRightVal; | ||
@@ -149,6 +76,7 @@ } | ||
function computeStyleTests() { | ||
var container, div, | ||
body = document.getElementsByTagName( "body" )[ 0 ]; | ||
// Minified: var b,c,d,j | ||
var div, body, container, contents; | ||
if ( !body ) { | ||
body = document.getElementsByTagName( "body" )[ 0 ]; | ||
if ( !body || !body.style ) { | ||
// Test fired too early or in an unsupported environment, exit. | ||
@@ -158,25 +86,21 @@ return; | ||
// Setup | ||
div = document.createElement( "div" ); | ||
container = document.createElement( "div" ); | ||
div = document.createElement( "div" ); | ||
container.style.cssText = containerStyles; | ||
container.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px"; | ||
body.appendChild( container ).appendChild( div ); | ||
div.style.cssText = | ||
"-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;" + | ||
"position:absolute;display:block;padding:1px;border:1px;width:4px;" + | ||
"margin-top:1%;top:1%"; | ||
// Support: Firefox<29, Android 2.3 | ||
// Vendor-prefix box-sizing | ||
"-webkit-box-sizing:border-box;-moz-box-sizing:border-box;" + | ||
"box-sizing:border-box;display:block;margin-top:1%;top:1%;" + | ||
"border:1px;padding:1px;width:4px;position:absolute"; | ||
// Workaround failing boxSizing test due to offsetWidth returning wrong value | ||
// with some non-1 values of body zoom, ticket #13543 | ||
jQuery.swap( body, body.style.zoom != null ? { zoom: 1 } : {}, function() { | ||
boxSizingVal = div.offsetWidth === 4; | ||
}); | ||
// Will be changed later if needed. | ||
boxSizingReliableVal = true; | ||
pixelPositionVal = false; | ||
// Support: IE<9 | ||
// Assume reasonable values in the absence of getComputedStyle | ||
pixelPositionVal = boxSizingReliableVal = false; | ||
reliableMarginRightVal = true; | ||
// Use window.getComputedStyle because jsdom on node.js will break without it. | ||
// Check for getComputedStyle so that this code is not run in IE<9. | ||
if ( window.getComputedStyle ) { | ||
@@ -186,8 +110,40 @@ pixelPositionVal = ( window.getComputedStyle( div, null ) || {} ).top !== "1%"; | ||
( window.getComputedStyle( div, null ) || { width: "4px" } ).width === "4px"; | ||
// Support: Android 2.3 | ||
// Div with explicit width and no margin-right incorrectly | ||
// gets computed margin-right based on width of container (#3333) | ||
// WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right | ||
contents = div.appendChild( document.createElement( "div" ) ); | ||
// Reset CSS: box-sizing; display; margin; border; padding | ||
contents.style.cssText = div.style.cssText = | ||
// Support: Firefox<29, Android 2.3 | ||
// Vendor-prefix box-sizing | ||
"-webkit-box-sizing:content-box;-moz-box-sizing:content-box;" + | ||
"box-sizing:content-box;display:block;margin:0;border:0;padding:0"; | ||
contents.style.marginRight = contents.style.width = "0"; | ||
div.style.width = "1px"; | ||
reliableMarginRightVal = | ||
!parseFloat( ( window.getComputedStyle( contents, null ) || {} ).marginRight ); | ||
} | ||
// Support: IE8 | ||
// Check if table cells still have offsetWidth/Height when they are set | ||
// to display:none and there are still other visible table cells in a | ||
// table row; if so, offsetWidth/Height are not reliable for use when | ||
// determining if an element has been hidden directly using | ||
// display:none (it is still safe to use offsets if a parent element is | ||
// hidden; don safety goggles and see bug #4512 for more information). | ||
div.innerHTML = "<table><tr><td></td><td>t</td></tr></table>"; | ||
contents = div.getElementsByTagName( "td" ); | ||
contents[ 0 ].style.cssText = "margin:0;border:0;padding:0;display:none"; | ||
reliableHiddenOffsetsVal = contents[ 0 ].offsetHeight === 0; | ||
if ( reliableHiddenOffsetsVal ) { | ||
contents[ 0 ].style.display = ""; | ||
contents[ 1 ].style.display = "none"; | ||
reliableHiddenOffsetsVal = contents[ 0 ].offsetHeight === 0; | ||
} | ||
body.removeChild( container ); | ||
// Null elements to avoid leaks in IE. | ||
div = body = null; | ||
} | ||
@@ -194,0 +150,0 @@ |
@@ -119,3 +119,3 @@ define([ | ||
/* jshint validthis: true */ | ||
var prop, value, toggle, tween, hooks, oldfire, display, dDisplay, | ||
var prop, value, toggle, tween, hooks, oldfire, display, | ||
anim = this, | ||
@@ -164,7 +164,4 @@ orig = {}, | ||
display = jQuery.css( elem, "display" ); | ||
dDisplay = defaultDisplay( elem.nodeName ); | ||
if ( display === "none" ) { | ||
display = dDisplay; | ||
} | ||
if ( display === "inline" && | ||
// Test default display if display is currently "none" | ||
if ( (display === "none" ? defaultDisplay( elem.nodeName ) : display) === "inline" && | ||
jQuery.css( elem, "float" ) === "none" ) { | ||
@@ -174,3 +171,3 @@ | ||
// block-level elements need to be inline with layout | ||
if ( !support.inlineBlockNeedsLayout || dDisplay === "inline" ) { | ||
if ( !support.inlineBlockNeedsLayout || defaultDisplay( elem.nodeName ) === "inline" ) { | ||
style.display = "inline-block"; | ||
@@ -210,2 +207,6 @@ } else { | ||
orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop ); | ||
// Any non-fx value stops us from restoring the original display value | ||
} else { | ||
display = undefined; | ||
} | ||
@@ -252,2 +253,6 @@ } | ||
} | ||
// If this is a noop like .hide().hide(), restore an overwritten display value | ||
} else if ( (display === "none" ? defaultDisplay( elem.nodeName ) : display) === "inline" ) { | ||
style.display = display; | ||
} | ||
@@ -254,0 +259,0 @@ } |
@@ -7,64 +7,43 @@ define([ | ||
(function() { | ||
var a, shrinkWrapBlocksVal, | ||
div = document.createElement( "div" ), | ||
divReset = | ||
"-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;" + | ||
"display:block;padding:0;margin:0;border:0"; | ||
var shrinkWrapBlocksVal; | ||
// Setup | ||
div.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>"; | ||
a = div.getElementsByTagName( "a" )[ 0 ]; | ||
a.style.cssText = "float:left;opacity:.5"; | ||
// Make sure that element opacity exists | ||
// (IE uses filter instead) | ||
// Use a regex to work around a WebKit issue. See #5145 | ||
support.opacity = /^0.5/.test( a.style.opacity ); | ||
// Verify style float existence | ||
// (IE uses styleFloat instead of cssFloat) | ||
support.cssFloat = !!a.style.cssFloat; | ||
div.style.backgroundClip = "content-box"; | ||
div.cloneNode( true ).style.backgroundClip = ""; | ||
support.clearCloneStyle = div.style.backgroundClip === "content-box"; | ||
// Null elements to avoid leaks in IE. | ||
a = div = null; | ||
support.shrinkWrapBlocks = function() { | ||
var body, container, div, containerStyles; | ||
if ( shrinkWrapBlocksVal != null ) { | ||
return shrinkWrapBlocksVal; | ||
} | ||
if ( shrinkWrapBlocksVal == null ) { | ||
body = document.getElementsByTagName( "body" )[ 0 ]; | ||
if ( !body ) { | ||
// Test fired too early or in an unsupported environment, exit. | ||
return; | ||
} | ||
// Will be changed later if needed. | ||
shrinkWrapBlocksVal = false; | ||
containerStyles = "border:0;width:0;height:0;position:absolute;top:0;left:-9999px"; | ||
container = document.createElement( "div" ); | ||
div = document.createElement( "div" ); | ||
// Minified: var b,c,d | ||
var div, body, container; | ||
body.appendChild( container ).appendChild( div ); | ||
body = document.getElementsByTagName( "body" )[ 0 ]; | ||
if ( !body || !body.style ) { | ||
// Test fired too early or in an unsupported environment, exit. | ||
return; | ||
} | ||
// Will be changed later if needed. | ||
shrinkWrapBlocksVal = false; | ||
// Setup | ||
div = document.createElement( "div" ); | ||
container = document.createElement( "div" ); | ||
container.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px"; | ||
body.appendChild( container ).appendChild( div ); | ||
if ( typeof div.style.zoom !== strundefined ) { | ||
// Support: IE6 | ||
// Check if elements with layout shrink-wrap their children | ||
div.style.cssText = divReset + ";width:1px;padding:1px;zoom:1"; | ||
div.innerHTML = "<div></div>"; | ||
div.firstChild.style.width = "5px"; | ||
shrinkWrapBlocksVal = div.offsetWidth !== 3; | ||
} | ||
// Support: IE6 | ||
// Check if elements with layout shrink-wrap their children | ||
if ( typeof div.style.zoom !== strundefined ) { | ||
// Reset CSS: box-sizing; display; margin; border | ||
div.style.cssText = | ||
// Support: Firefox<29, Android 2.3 | ||
// Vendor-prefix box-sizing | ||
"-webkit-box-sizing:content-box;-moz-box-sizing:content-box;" + | ||
"box-sizing:content-box;display:block;margin:0;border:0;" + | ||
"padding:1px;width:1px;zoom:1"; | ||
div.appendChild( document.createElement( "div" ) ).style.width = "5px"; | ||
shrinkWrapBlocksVal = div.offsetWidth !== 3; | ||
} | ||
body.removeChild( container ); | ||
body.removeChild( container ); | ||
// Null elements to avoid leaks in IE. | ||
body = container = div = null; | ||
} | ||
return shrinkWrapBlocksVal; | ||
@@ -71,0 +50,0 @@ }; |
@@ -16,3 +16,3 @@ define([ | ||
rkeyEvent = /^key/, | ||
rmouseEvent = /^(?:mouse|contextmenu)|click/, | ||
rmouseEvent = /^(?:mouse|pointer|contextmenu)|click/, | ||
rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, | ||
@@ -620,4 +620,5 @@ rtypenamespace = /^([^.]*)(?:\.(.+)|)$/; | ||
// Even when returnValue equals to undefined Firefox will still show alert | ||
if ( event.result !== undefined ) { | ||
// Support: Firefox 20+ | ||
// Firefox doesn't alert if the returnValue field is not set. | ||
if ( event.result !== undefined && event.originalEvent ) { | ||
event.originalEvent.returnValue = event.result; | ||
@@ -688,7 +689,5 @@ } | ||
this.isDefaultPrevented = src.defaultPrevented || | ||
src.defaultPrevented === undefined && ( | ||
// Support: IE < 9 | ||
src.returnValue === false || | ||
// Support: Android < 4.0 | ||
src.getPreventDefault && src.getPreventDefault() ) ? | ||
src.defaultPrevented === undefined && | ||
// Support: IE < 9, Android < 4.0 | ||
src.returnValue === false ? | ||
returnTrue : | ||
@@ -756,3 +755,10 @@ returnFalse; | ||
stopImmediatePropagation: function() { | ||
var e = this.originalEvent; | ||
this.isImmediatePropagationStopped = returnTrue; | ||
if ( e && e.stopImmediatePropagation ) { | ||
e.stopImmediatePropagation(); | ||
} | ||
this.stopPropagation(); | ||
@@ -765,3 +771,5 @@ } | ||
mouseenter: "mouseover", | ||
mouseleave: "mouseout" | ||
mouseleave: "mouseout", | ||
pointerenter: "pointerover", | ||
pointerleave: "pointerout" | ||
}, function( orig, fix ) { | ||
@@ -768,0 +776,0 @@ jQuery.event.special[ orig ] = { |
@@ -12,2 +12,8 @@ define([ | ||
// to call noConflict to hide this version of jQuery, it will work. | ||
// Note that for maximum portability, libraries that are not jQuery should | ||
// declare themselves as anonymous modules, and avoid setting a global if an | ||
// AMD loader is present. jQuery is a special case. For more information, see | ||
// https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon | ||
if ( typeof define === "function" && define.amd ) { | ||
@@ -14,0 +20,0 @@ define( "jquery", [], function() { |
@@ -6,9 +6,9 @@ define([ | ||
(function() { | ||
var fragment = document.createDocumentFragment(), | ||
div = document.createElement("div"), | ||
input = document.createElement("input"); | ||
// Minified: var a,b,c | ||
var input = document.createElement( "input" ), | ||
div = document.createElement( "div" ), | ||
fragment = document.createDocumentFragment(); | ||
// Setup | ||
div.setAttribute( "className", "t" ); | ||
div.innerHTML = " <link/><table></table><a href='/a'>a</a>"; | ||
div.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>"; | ||
@@ -73,5 +73,2 @@ // IE strips leading whitespace when .innerHTML is used | ||
} | ||
// Null elements to avoid leaks in IE. | ||
fragment = div = input = null; | ||
})(); | ||
@@ -78,0 +75,0 @@ |
/*! | ||
* Sizzle CSS Selector Engine v1.10.16 | ||
* Sizzle CSS Selector Engine v1.10.18 | ||
* http://sizzlejs.com/ | ||
@@ -9,3 +9,3 @@ * | ||
* | ||
* Date: 2014-01-13 | ||
* Date: 2014-02-05 | ||
*/ | ||
@@ -20,2 +20,3 @@ (function( window ) { | ||
compile, | ||
select, | ||
outermostContext, | ||
@@ -142,3 +143,3 @@ sortInput, | ||
// NaN means non-codepoint | ||
// Support: Firefox | ||
// Support: Firefox<24 | ||
// Workaround erroneous numeric interpretation of +"0x" | ||
@@ -1576,2 +1577,11 @@ return high !== high || escapedWhitespace ? | ||
function multipleContexts( selector, contexts, results ) { | ||
var i = 0, | ||
len = contexts.length; | ||
for ( ; i < len; i++ ) { | ||
Sizzle( selector, contexts[i], results ); | ||
} | ||
return results; | ||
} | ||
function condense( unmatched, map, filter, context, xml ) { | ||
@@ -1845,3 +1855,3 @@ var elem, | ||
compile = Sizzle.compile = function( selector, group /* Internal Use Only */ ) { | ||
compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) { | ||
var i, | ||
@@ -1854,8 +1864,8 @@ setMatchers = [], | ||
// Generate a function of recursive functions that can be used to check each element | ||
if ( !group ) { | ||
group = tokenize( selector ); | ||
if ( !match ) { | ||
match = tokenize( selector ); | ||
} | ||
i = group.length; | ||
i = match.length; | ||
while ( i-- ) { | ||
cached = matcherFromTokens( group[i] ); | ||
cached = matcherFromTokens( match[i] ); | ||
if ( cached[ expando ] ) { | ||
@@ -1870,2 +1880,5 @@ setMatchers.push( cached ); | ||
cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) ); | ||
// Save selector and tokenization | ||
cached.selector = selector; | ||
} | ||
@@ -1875,58 +1888,64 @@ return cached; | ||
function multipleContexts( selector, contexts, results ) { | ||
var i = 0, | ||
len = contexts.length; | ||
for ( ; i < len; i++ ) { | ||
Sizzle( selector, contexts[i], results ); | ||
} | ||
return results; | ||
} | ||
function select( selector, context, results, seed ) { | ||
/** | ||
* A low-level selection function that works with Sizzle's compiled | ||
* selector functions | ||
* @param {String|Function} selector A selector or a pre-compiled | ||
* selector function built with Sizzle.compile | ||
* @param {Element} context | ||
* @param {Array} [results] | ||
* @param {Array} [seed] A set of elements to match against | ||
*/ | ||
select = Sizzle.select = function( selector, context, results, seed ) { | ||
var i, tokens, token, type, find, | ||
match = tokenize( selector ); | ||
compiled = typeof selector === "function" && selector, | ||
match = !seed && tokenize( (selector = compiled.selector || selector) ); | ||
if ( !seed ) { | ||
// Try to minimize operations if there is only one group | ||
if ( match.length === 1 ) { | ||
results = results || []; | ||
// Take a shortcut and set the context if the root selector is an ID | ||
tokens = match[0] = match[0].slice( 0 ); | ||
if ( tokens.length > 2 && (token = tokens[0]).type === "ID" && | ||
support.getById && context.nodeType === 9 && documentIsHTML && | ||
Expr.relative[ tokens[1].type ] ) { | ||
// Try to minimize operations if there is no seed and only one group | ||
if ( match.length === 1 ) { | ||
context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0]; | ||
if ( !context ) { | ||
return results; | ||
} | ||
selector = selector.slice( tokens.shift().value.length ); | ||
// Take a shortcut and set the context if the root selector is an ID | ||
tokens = match[0] = match[0].slice( 0 ); | ||
if ( tokens.length > 2 && (token = tokens[0]).type === "ID" && | ||
support.getById && context.nodeType === 9 && documentIsHTML && | ||
Expr.relative[ tokens[1].type ] ) { | ||
context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0]; | ||
if ( !context ) { | ||
return results; | ||
// Precompiled matchers will still verify ancestry, so step up a level | ||
} else if ( compiled ) { | ||
context = context.parentNode; | ||
} | ||
// Fetch a seed set for right-to-left matching | ||
i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length; | ||
while ( i-- ) { | ||
token = tokens[i]; | ||
selector = selector.slice( tokens.shift().value.length ); | ||
} | ||
// Abort if we hit a combinator | ||
if ( Expr.relative[ (type = token.type) ] ) { | ||
break; | ||
} | ||
if ( (find = Expr.find[ type ]) ) { | ||
// Search, expanding context for leading sibling combinators | ||
if ( (seed = find( | ||
token.matches[0].replace( runescape, funescape ), | ||
rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context | ||
)) ) { | ||
// Fetch a seed set for right-to-left matching | ||
i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length; | ||
while ( i-- ) { | ||
token = tokens[i]; | ||
// If seed is empty or no tokens remain, we can return early | ||
tokens.splice( i, 1 ); | ||
selector = seed.length && toSelector( tokens ); | ||
if ( !selector ) { | ||
push.apply( results, seed ); | ||
return results; | ||
} | ||
// Abort if we hit a combinator | ||
if ( Expr.relative[ (type = token.type) ] ) { | ||
break; | ||
} | ||
if ( (find = Expr.find[ type ]) ) { | ||
// Search, expanding context for leading sibling combinators | ||
if ( (seed = find( | ||
token.matches[0].replace( runescape, funescape ), | ||
rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context | ||
)) ) { | ||
break; | ||
// If seed is empty or no tokens remain, we can return early | ||
tokens.splice( i, 1 ); | ||
selector = seed.length && toSelector( tokens ); | ||
if ( !selector ) { | ||
push.apply( results, seed ); | ||
return results; | ||
} | ||
break; | ||
} | ||
@@ -1937,5 +1956,5 @@ } | ||
// Compile and execute a filtering function | ||
// Compile and execute a filtering function if one is not provided | ||
// Provide `match` to avoid retokenization if we modified the selector above | ||
compile( selector, match )( | ||
( compiled || compile( selector, match ) )( | ||
seed, | ||
@@ -1948,3 +1967,3 @@ context, | ||
return results; | ||
} | ||
}; | ||
@@ -1951,0 +1970,0 @@ // One-time assignments |
@@ -1,3 +0,3 @@ | ||
/*! Sizzle v1.10.16 | (c) 2013 jQuery Foundation, Inc. | jquery.org/license */ | ||
!function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s="sizzle"+-new Date,t=a.document,u=0,v=0,w=eb(),x=eb(),y=eb(),z=function(a,b){return a===b&&(j=!0),0},A="undefined",B=1<<31,C={}.hasOwnProperty,D=[],E=D.pop,F=D.push,G=D.push,H=D.slice,I=D.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},J="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",K="[\\x20\\t\\r\\n\\f]",L="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",M=L.replace("w","w#"),N="\\["+K+"*("+L+")"+K+"*(?:([*^$|!~]?=)"+K+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+M+")|)|)"+K+"*\\]",O=":("+L+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+N.replace(3,8)+")*)|.*)\\)|)",P=new RegExp("^"+K+"+|((?:^|[^\\\\])(?:\\\\.)*)"+K+"+$","g"),Q=new RegExp("^"+K+"*,"+K+"*"),R=new RegExp("^"+K+"*([>+~]|"+K+")"+K+"*"),S=new RegExp("="+K+"*([^\\]'\"]*?)"+K+"*\\]","g"),T=new RegExp(O),U=new RegExp("^"+M+"$"),V={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L.replace("w","w*")+")"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+K+"*(even|odd|(([+-]|)(\\d*)n|)"+K+"*(?:([+-]|)"+K+"*(\\d+)|))"+K+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+K+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+K+"*((?:-\\d)?\\d*)"+K+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,_=/'|\\/g,ab=new RegExp("\\\\([\\da-f]{1,6}"+K+"?|("+K+")|.)","ig"),bb=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)};try{G.apply(D=H.call(t.childNodes),t.childNodes),D[t.childNodes.length].nodeType}catch(cb){G={apply:D.length?function(a,b){F.apply(a,H.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function db(a,b,d,e){var f,g,h,i,j,m,p,q,u,v;if((b?b.ownerDocument||b:t)!==l&&k(b),b=b||l,d=d||[],!a||"string"!=typeof a)return d;if(1!==(i=b.nodeType)&&9!==i)return[];if(n&&!e){if(f=Z.exec(a))if(h=f[1]){if(9===i){if(g=b.getElementById(h),!g||!g.parentNode)return d;if(g.id===h)return d.push(g),d}else if(b.ownerDocument&&(g=b.ownerDocument.getElementById(h))&&r(b,g)&&g.id===h)return d.push(g),d}else{if(f[2])return G.apply(d,b.getElementsByTagName(a)),d;if((h=f[3])&&c.getElementsByClassName&&b.getElementsByClassName)return G.apply(d,b.getElementsByClassName(h)),d}if(c.qsa&&(!o||!o.test(a))){if(q=p=s,u=b,v=9===i&&a,1===i&&"object"!==b.nodeName.toLowerCase()){m=ob(a),(p=b.getAttribute("id"))?q=p.replace(_,"\\$&"):b.setAttribute("id",q),q="[id='"+q+"'] ",j=m.length;while(j--)m[j]=q+pb(m[j]);u=$.test(a)&&mb(b.parentNode)||b,v=m.join(",")}if(v)try{return G.apply(d,u.querySelectorAll(v)),d}catch(w){}finally{p||b.removeAttribute("id")}}}return xb(a.replace(P,"$1"),b,d,e)}function eb(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function fb(a){return a[s]=!0,a}function gb(a){var b=l.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function hb(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function ib(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||B)-(~a.sourceIndex||B);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function jb(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function kb(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function lb(a){return fb(function(b){return b=+b,fb(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function mb(a){return a&&typeof a.getElementsByTagName!==A&&a}c=db.support={},f=db.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},k=db.setDocument=function(a){var b,e=a?a.ownerDocument||a:t,g=e.defaultView;return e!==l&&9===e.nodeType&&e.documentElement?(l=e,m=e.documentElement,n=!f(e),g&&g!==g.top&&(g.addEventListener?g.addEventListener("unload",function(){k()},!1):g.attachEvent&&g.attachEvent("onunload",function(){k()})),c.attributes=gb(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=gb(function(a){return a.appendChild(e.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Y.test(e.getElementsByClassName)&&gb(function(a){return a.innerHTML="<div class='a'></div><div class='a i'></div>",a.firstChild.className="i",2===a.getElementsByClassName("i").length}),c.getById=gb(function(a){return m.appendChild(a).id=s,!e.getElementsByName||!e.getElementsByName(s).length}),c.getById?(d.find.ID=function(a,b){if(typeof b.getElementById!==A&&n){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ab,bb);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ab,bb);return function(a){var c=typeof a.getAttributeNode!==A&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return typeof b.getElementsByTagName!==A?b.getElementsByTagName(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return typeof b.getElementsByClassName!==A&&n?b.getElementsByClassName(a):void 0},p=[],o=[],(c.qsa=Y.test(e.querySelectorAll))&&(gb(function(a){a.innerHTML="<select t=''><option selected=''></option></select>",a.querySelectorAll("[t^='']").length&&o.push("[*^$]="+K+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||o.push("\\["+K+"*(?:value|"+J+")"),a.querySelectorAll(":checked").length||o.push(":checked")}),gb(function(a){var b=e.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&o.push("name"+K+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||o.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),o.push(",.*:")})),(c.matchesSelector=Y.test(q=m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&gb(function(a){c.disconnectedMatch=q.call(a,"div"),q.call(a,"[s!='']:x"),p.push("!=",O)}),o=o.length&&new RegExp(o.join("|")),p=p.length&&new RegExp(p.join("|")),b=Y.test(m.compareDocumentPosition),r=b||Y.test(m.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},z=b?function(a,b){if(a===b)return j=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===e||a.ownerDocument===t&&r(t,a)?-1:b===e||b.ownerDocument===t&&r(t,b)?1:i?I.call(i,a)-I.call(i,b):0:4&d?-1:1)}:function(a,b){if(a===b)return j=!0,0;var c,d=0,f=a.parentNode,g=b.parentNode,h=[a],k=[b];if(!f||!g)return a===e?-1:b===e?1:f?-1:g?1:i?I.call(i,a)-I.call(i,b):0;if(f===g)return ib(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)k.unshift(c);while(h[d]===k[d])d++;return d?ib(h[d],k[d]):h[d]===t?-1:k[d]===t?1:0},e):l},db.matches=function(a,b){return db(a,null,null,b)},db.matchesSelector=function(a,b){if((a.ownerDocument||a)!==l&&k(a),b=b.replace(S,"='$1']"),!(!c.matchesSelector||!n||p&&p.test(b)||o&&o.test(b)))try{var d=q.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return db(b,l,null,[a]).length>0},db.contains=function(a,b){return(a.ownerDocument||a)!==l&&k(a),r(a,b)},db.attr=function(a,b){(a.ownerDocument||a)!==l&&k(a);var e=d.attrHandle[b.toLowerCase()],f=e&&C.call(d.attrHandle,b.toLowerCase())?e(a,b,!n):void 0;return void 0!==f?f:c.attributes||!n?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},db.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},db.uniqueSort=function(a){var b,d=[],e=0,f=0;if(j=!c.detectDuplicates,i=!c.sortStable&&a.slice(0),a.sort(z),j){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return i=null,a},e=db.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=db.selectors={cacheLength:50,createPseudo:fb,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ab,bb),a[3]=(a[4]||a[5]||"").replace(ab,bb),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||db.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&db.error(a[0]),a},PSEUDO:function(a){var b,c=!a[5]&&a[2];return V.CHILD.test(a[0])?null:(a[3]&&void 0!==a[4]?a[2]=a[4]:c&&T.test(c)&&(b=ob(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ab,bb).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=w[a+" "];return b||(b=new RegExp("(^|"+K+")"+a+"("+K+"|$)"))&&w(a,function(a){return b.test("string"==typeof a.className&&a.className||typeof a.getAttribute!==A&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=db.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),t=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&t){k=q[s]||(q[s]={}),j=k[a]||[],n=j[0]===u&&j[1],m=j[0]===u&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[u,n,m];break}}else if(t&&(j=(b[s]||(b[s]={}))[a])&&j[0]===u)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(t&&((l[s]||(l[s]={}))[a]=[u,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||db.error("unsupported pseudo: "+a);return e[s]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?fb(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=I.call(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:fb(function(a){var b=[],c=[],d=g(a.replace(P,"$1"));return d[s]?fb(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:fb(function(a){return function(b){return db(a,b).length>0}}),contains:fb(function(a){return function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:fb(function(a){return U.test(a||"")||db.error("unsupported lang: "+a),a=a.replace(ab,bb).toLowerCase(),function(b){var c;do if(c=n?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===m},focus:function(a){return a===l.activeElement&&(!l.hasFocus||l.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return X.test(a.nodeName)},input:function(a){return W.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:lb(function(){return[0]}),last:lb(function(a,b){return[b-1]}),eq:lb(function(a,b,c){return[0>c?c+b:c]}),even:lb(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:lb(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:lb(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:lb(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=jb(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=kb(b);function nb(){}nb.prototype=d.filters=d.pseudos,d.setFilters=new nb;function ob(a,b){var c,e,f,g,h,i,j,k=x[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){(!c||(e=Q.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=R.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(P," ")}),h=h.slice(c.length));for(g in d.filter)!(e=V[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?db.error(a):x(a,i).slice(0)}function pb(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function qb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=v++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[u,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[s]||(b[s]={}),(h=i[d])&&h[0]===u&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function rb(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function sb(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function tb(a,b,c,d,e,f){return d&&!d[s]&&(d=tb(d)),e&&!e[s]&&(e=tb(e,f)),fb(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||wb(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:sb(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=sb(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?I.call(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=sb(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):G.apply(g,r)})}function ub(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],i=g||d.relative[" "],j=g?1:0,k=qb(function(a){return a===b},i,!0),l=qb(function(a){return I.call(b,a)>-1},i,!0),m=[function(a,c,d){return!g&&(d||c!==h)||((b=c).nodeType?k(a,c,d):l(a,c,d))}];f>j;j++)if(c=d.relative[a[j].type])m=[qb(rb(m),c)];else{if(c=d.filter[a[j].type].apply(null,a[j].matches),c[s]){for(e=++j;f>e;e++)if(d.relative[a[e].type])break;return tb(j>1&&rb(m),j>1&&pb(a.slice(0,j-1).concat({value:" "===a[j-2].type?"*":""})).replace(P,"$1"),c,e>j&&ub(a.slice(j,e)),f>e&&ub(a=a.slice(e)),f>e&&pb(a))}m.push(c)}return rb(m)}function vb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,i,j,k){var m,n,o,p=0,q="0",r=f&&[],s=[],t=h,v=f||e&&d.find.TAG("*",k),w=u+=null==t?1:Math.random()||.1,x=v.length;for(k&&(h=g!==l&&g);q!==x&&null!=(m=v[q]);q++){if(e&&m){n=0;while(o=a[n++])if(o(m,g,i)){j.push(m);break}k&&(u=w)}c&&((m=!o&&m)&&p--,f&&r.push(m))}if(p+=q,c&&q!==p){n=0;while(o=b[n++])o(r,s,g,i);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=E.call(j));s=sb(s)}G.apply(j,s),k&&!f&&s.length>0&&p+b.length>1&&db.uniqueSort(j)}return k&&(u=w,h=t),r};return c?fb(f):f}g=db.compile=function(a,b){var c,d=[],e=[],f=y[a+" "];if(!f){b||(b=ob(a)),c=b.length;while(c--)f=ub(b[c]),f[s]?d.push(f):e.push(f);f=y(a,vb(e,d))}return f};function wb(a,b,c){for(var d=0,e=b.length;e>d;d++)db(a,b[d],c);return c}function xb(a,b,e,f){var h,i,j,k,l,m=ob(a);if(!f&&1===m.length){if(i=m[0]=m[0].slice(0),i.length>2&&"ID"===(j=i[0]).type&&c.getById&&9===b.nodeType&&n&&d.relative[i[1].type]){if(b=(d.find.ID(j.matches[0].replace(ab,bb),b)||[])[0],!b)return e;a=a.slice(i.shift().value.length)}h=V.needsContext.test(a)?0:i.length;while(h--){if(j=i[h],d.relative[k=j.type])break;if((l=d.find[k])&&(f=l(j.matches[0].replace(ab,bb),$.test(i[0].type)&&mb(b.parentNode)||b))){if(i.splice(h,1),a=f.length&&pb(i),!a)return G.apply(e,f),e;break}}}return g(a,m)(f,b,!n,e,$.test(a)&&mb(b.parentNode)||b),e}c.sortStable=s.split("").sort(z).join("")===s,c.detectDuplicates=!!j,k(),c.sortDetached=gb(function(a){return 1&a.compareDocumentPosition(l.createElement("div"))}),gb(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||hb("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&gb(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||hb("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),gb(function(a){return null==a.getAttribute("disabled")})||hb(J,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),"function"==typeof define&&define.amd?define(function(){return db}):"undefined"!=typeof module&&module.exports?module.exports=db:a.Sizzle=db}(window); | ||
/*! Sizzle v1.10.18 | (c) 2013 jQuery Foundation, Inc. | jquery.org/license */ | ||
!function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t="sizzle"+-new Date,u=a.document,v=0,w=0,x=fb(),y=fb(),z=fb(),A=function(a,b){return a===b&&(k=!0),0},B="undefined",C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=E.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N=M.replace("w","w#"),O="\\["+L+"*("+M+")"+L+"*(?:([*^$|!~]?=)"+L+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+N+")|)|)"+L+"*\\]",P=":("+M+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+O.replace(3,8)+")*)|.*)\\)|)",Q=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),R=new RegExp("^"+L+"*,"+L+"*"),S=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),T=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),U=new RegExp(P),V=new RegExp("^"+N+"$"),W={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+O),PSEUDO:new RegExp("^"+P),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_=/[+~]/,ab=/'|\\/g,bb=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),cb=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)};try{H.apply(E=I.call(u.childNodes),u.childNodes),E[u.childNodes.length].nodeType}catch(db){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function eb(a,b,d,e){var f,g,i,j,k,n,q,r,v,w;if((b?b.ownerDocument||b:u)!==m&&l(b),b=b||m,d=d||[],!a||"string"!=typeof a)return d;if(1!==(j=b.nodeType)&&9!==j)return[];if(o&&!e){if(f=$.exec(a))if(i=f[1]){if(9===j){if(g=b.getElementById(i),!g||!g.parentNode)return d;if(g.id===i)return d.push(g),d}else if(b.ownerDocument&&(g=b.ownerDocument.getElementById(i))&&s(b,g)&&g.id===i)return d.push(g),d}else{if(f[2])return H.apply(d,b.getElementsByTagName(a)),d;if((i=f[3])&&c.getElementsByClassName&&b.getElementsByClassName)return H.apply(d,b.getElementsByClassName(i)),d}if(c.qsa&&(!p||!p.test(a))){if(r=q=t,v=b,w=9===j&&a,1===j&&"object"!==b.nodeName.toLowerCase()){n=pb(a),(q=b.getAttribute("id"))?r=q.replace(ab,"\\$&"):b.setAttribute("id",r),r="[id='"+r+"'] ",k=n.length;while(k--)n[k]=r+qb(n[k]);v=_.test(a)&&nb(b.parentNode)||b,w=n.join(",")}if(w)try{return H.apply(d,v.querySelectorAll(w)),d}catch(x){}finally{q||b.removeAttribute("id")}}}return h(a.replace(Q,"$1"),b,d,e)}function fb(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function gb(a){return a[t]=!0,a}function hb(a){var b=m.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ib(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function jb(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function kb(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function lb(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function mb(a){return gb(function(b){return b=+b,gb(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function nb(a){return a&&typeof a.getElementsByTagName!==B&&a}c=eb.support={},f=eb.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},l=eb.setDocument=function(a){var b,e=a?a.ownerDocument||a:u,g=e.defaultView;return e!==m&&9===e.nodeType&&e.documentElement?(m=e,n=e.documentElement,o=!f(e),g&&g!==g.top&&(g.addEventListener?g.addEventListener("unload",function(){l()},!1):g.attachEvent&&g.attachEvent("onunload",function(){l()})),c.attributes=hb(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=hb(function(a){return a.appendChild(e.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Z.test(e.getElementsByClassName)&&hb(function(a){return a.innerHTML="<div class='a'></div><div class='a i'></div>",a.firstChild.className="i",2===a.getElementsByClassName("i").length}),c.getById=hb(function(a){return n.appendChild(a).id=t,!e.getElementsByName||!e.getElementsByName(t).length}),c.getById?(d.find.ID=function(a,b){if(typeof b.getElementById!==B&&o){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(bb,cb);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(bb,cb);return function(a){var c=typeof a.getAttributeNode!==B&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return typeof b.getElementsByTagName!==B?b.getElementsByTagName(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return typeof b.getElementsByClassName!==B&&o?b.getElementsByClassName(a):void 0},q=[],p=[],(c.qsa=Z.test(e.querySelectorAll))&&(hb(function(a){a.innerHTML="<select t=''><option selected=''></option></select>",a.querySelectorAll("[t^='']").length&&p.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||p.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll(":checked").length||p.push(":checked")}),hb(function(a){var b=e.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&p.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||p.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),p.push(",.*:")})),(c.matchesSelector=Z.test(r=n.webkitMatchesSelector||n.mozMatchesSelector||n.oMatchesSelector||n.msMatchesSelector))&&hb(function(a){c.disconnectedMatch=r.call(a,"div"),r.call(a,"[s!='']:x"),q.push("!=",P)}),p=p.length&&new RegExp(p.join("|")),q=q.length&&new RegExp(q.join("|")),b=Z.test(n.compareDocumentPosition),s=b||Z.test(n.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},A=b?function(a,b){if(a===b)return k=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===e||a.ownerDocument===u&&s(u,a)?-1:b===e||b.ownerDocument===u&&s(u,b)?1:j?J.call(j,a)-J.call(j,b):0:4&d?-1:1)}:function(a,b){if(a===b)return k=!0,0;var c,d=0,f=a.parentNode,g=b.parentNode,h=[a],i=[b];if(!f||!g)return a===e?-1:b===e?1:f?-1:g?1:j?J.call(j,a)-J.call(j,b):0;if(f===g)return jb(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)i.unshift(c);while(h[d]===i[d])d++;return d?jb(h[d],i[d]):h[d]===u?-1:i[d]===u?1:0},e):m},eb.matches=function(a,b){return eb(a,null,null,b)},eb.matchesSelector=function(a,b){if((a.ownerDocument||a)!==m&&l(a),b=b.replace(T,"='$1']"),!(!c.matchesSelector||!o||q&&q.test(b)||p&&p.test(b)))try{var d=r.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return eb(b,m,null,[a]).length>0},eb.contains=function(a,b){return(a.ownerDocument||a)!==m&&l(a),s(a,b)},eb.attr=function(a,b){(a.ownerDocument||a)!==m&&l(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!o):void 0;return void 0!==f?f:c.attributes||!o?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},eb.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},eb.uniqueSort=function(a){var b,d=[],e=0,f=0;if(k=!c.detectDuplicates,j=!c.sortStable&&a.slice(0),a.sort(A),k){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return j=null,a},e=eb.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=eb.selectors={cacheLength:50,createPseudo:gb,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(bb,cb),a[3]=(a[4]||a[5]||"").replace(bb,cb),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||eb.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&eb.error(a[0]),a},PSEUDO:function(a){var b,c=!a[5]&&a[2];return W.CHILD.test(a[0])?null:(a[3]&&void 0!==a[4]?a[2]=a[4]:c&&U.test(c)&&(b=pb(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(bb,cb).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=x[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&x(a,function(a){return b.test("string"==typeof a.className&&a.className||typeof a.getAttribute!==B&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=eb.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){k=q[t]||(q[t]={}),j=k[a]||[],n=j[0]===v&&j[1],m=j[0]===v&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[v,n,m];break}}else if(s&&(j=(b[t]||(b[t]={}))[a])&&j[0]===v)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(s&&((l[t]||(l[t]={}))[a]=[v,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||eb.error("unsupported pseudo: "+a);return e[t]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?gb(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J.call(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:gb(function(a){var b=[],c=[],d=g(a.replace(Q,"$1"));return d[t]?gb(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:gb(function(a){return function(b){return eb(a,b).length>0}}),contains:gb(function(a){return function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:gb(function(a){return V.test(a||"")||eb.error("unsupported lang: "+a),a=a.replace(bb,cb).toLowerCase(),function(b){var c;do if(c=o?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===n},focus:function(a){return a===m.activeElement&&(!m.hasFocus||m.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Y.test(a.nodeName)},input:function(a){return X.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:mb(function(){return[0]}),last:mb(function(a,b){return[b-1]}),eq:mb(function(a,b,c){return[0>c?c+b:c]}),even:mb(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:mb(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:mb(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:mb(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=kb(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=lb(b);function ob(){}ob.prototype=d.filters=d.pseudos,d.setFilters=new ob;function pb(a,b){var c,e,f,g,h,i,j,k=y[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){(!c||(e=R.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=S.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(Q," ")}),h=h.slice(c.length));for(g in d.filter)!(e=W[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?eb.error(a):y(a,i).slice(0)}function qb(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function rb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=w++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[v,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[t]||(b[t]={}),(h=i[d])&&h[0]===v&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function sb(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function tb(a,b,c){for(var d=0,e=b.length;e>d;d++)eb(a,b[d],c);return c}function ub(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function vb(a,b,c,d,e,f){return d&&!d[t]&&(d=vb(d)),e&&!e[t]&&(e=vb(e,f)),gb(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||tb(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ub(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ub(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J.call(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ub(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function wb(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],j=g?1:0,k=rb(function(a){return a===b},h,!0),l=rb(function(a){return J.call(b,a)>-1},h,!0),m=[function(a,c,d){return!g&&(d||c!==i)||((b=c).nodeType?k(a,c,d):l(a,c,d))}];f>j;j++)if(c=d.relative[a[j].type])m=[rb(sb(m),c)];else{if(c=d.filter[a[j].type].apply(null,a[j].matches),c[t]){for(e=++j;f>e;e++)if(d.relative[a[e].type])break;return vb(j>1&&sb(m),j>1&&qb(a.slice(0,j-1).concat({value:" "===a[j-2].type?"*":""})).replace(Q,"$1"),c,e>j&&wb(a.slice(j,e)),f>e&&wb(a=a.slice(e)),f>e&&qb(a))}m.push(c)}return sb(m)}function xb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,j,k){var l,n,o,p=0,q="0",r=f&&[],s=[],t=i,u=f||e&&d.find.TAG("*",k),w=v+=null==t?1:Math.random()||.1,x=u.length;for(k&&(i=g!==m&&g);q!==x&&null!=(l=u[q]);q++){if(e&&l){n=0;while(o=a[n++])if(o(l,g,h)){j.push(l);break}k&&(v=w)}c&&((l=!o&&l)&&p--,f&&r.push(l))}if(p+=q,c&&q!==p){n=0;while(o=b[n++])o(r,s,g,h);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=F.call(j));s=ub(s)}H.apply(j,s),k&&!f&&s.length>0&&p+b.length>1&&eb.uniqueSort(j)}return k&&(v=w,i=t),r};return c?gb(f):f}g=eb.compile=function(a,b){var c,d=[],e=[],f=z[a+" "];if(!f){b||(b=pb(a)),c=b.length;while(c--)f=wb(b[c]),f[t]?d.push(f):e.push(f);f=z(a,xb(e,d)),f.selector=a}return f},h=eb.select=function(a,b,e,f){var h,i,j,k,l,m="function"==typeof a&&a,n=!f&&pb(a=m.selector||a);if(e=e||[],1===n.length){if(i=n[0]=n[0].slice(0),i.length>2&&"ID"===(j=i[0]).type&&c.getById&&9===b.nodeType&&o&&d.relative[i[1].type]){if(b=(d.find.ID(j.matches[0].replace(bb,cb),b)||[])[0],!b)return e;m&&(b=b.parentNode),a=a.slice(i.shift().value.length)}h=W.needsContext.test(a)?0:i.length;while(h--){if(j=i[h],d.relative[k=j.type])break;if((l=d.find[k])&&(f=l(j.matches[0].replace(bb,cb),_.test(i[0].type)&&nb(b.parentNode)||b))){if(i.splice(h,1),a=f.length&&qb(i),!a)return H.apply(e,f),e;break}}}return(m||g(a,n))(f,b,!o,e,_.test(a)&&nb(b.parentNode)||b),e},c.sortStable=t.split("").sort(A).join("")===t,c.detectDuplicates=!!k,l(),c.sortDetached=hb(function(a){return 1&a.compareDocumentPosition(m.createElement("div"))}),hb(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ib("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&hb(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ib("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),hb(function(a){return null==a.getAttribute("disabled")})||ib(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),"function"==typeof define&&define.amd?define(function(){return eb}):"undefined"!=typeof module&&module.exports?module.exports=eb:a.Sizzle=eb}(window); | ||
//# sourceMappingURL=dist/sizzle.min.map |
@@ -165,3 +165,3 @@ module("selector", { teardown: moduleTeardown }); | ||
broken = function( name, selector ) { | ||
raises(function() { | ||
throws(function() { | ||
// Setting context to null here somehow avoids QUnit's window.error handling | ||
@@ -1059,3 +1059,3 @@ // making the e & e.message correct | ||
deepEqual( Sizzle( ":lang(ara\\\\b)", foo ), [ anchor ], ":lang respects escaped backslashes" ); | ||
raises(function() { | ||
throws(function() { | ||
Sizzle.call( null, "dl:lang(c++)" ); | ||
@@ -1141,1 +1141,12 @@ }, function( e ) { | ||
}); | ||
test("select() with pre-compiled function", function() { | ||
expect( 6 ); | ||
jQuery.each([ "#qunit-fixture #first", "ol#listWithTabIndex > li[tabindex]", "#liveSpan1" ], | ||
function( i, selector ) { | ||
var compiled = Sizzle.compile( selector ); | ||
equal( Sizzle.select( compiled, document ).length, 1, "Should match using a compiled selector function" ); | ||
equal( Sizzle.select( compiled, Sizzle( "#first")[0] ).length, 0, "Should not match with different context" ); | ||
}); | ||
}); |
@@ -22,10 +22,9 @@ define([ | ||
// Execute ASAP in case we need to set body.style.zoom | ||
jQuery(function() { | ||
// We need to execute this one support test ASAP because we need to know | ||
// if body.style.zoom needs to be set. | ||
// Minified: var a,b,c,d | ||
var val, div, body, container; | ||
var container, div, | ||
body = document.getElementsByTagName("body")[0]; | ||
if ( !body ) { | ||
body = document.getElementsByTagName( "body" )[ 0 ]; | ||
if ( !body || !body.style ) { | ||
// Return for frameset docs that don't have a body | ||
@@ -36,6 +35,5 @@ return; | ||
// Setup | ||
div = document.createElement( "div" ); | ||
container = document.createElement( "div" ); | ||
container.style.cssText = "border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px"; | ||
div = document.createElement( "div" ); | ||
container.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px"; | ||
body.appendChild( container ).appendChild( div ); | ||
@@ -48,5 +46,6 @@ | ||
// them layout | ||
div.style.cssText = "border:0;margin:0;width:1px;padding:1px;display:inline;zoom:1"; | ||
div.style.cssText = "display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1"; | ||
if ( (support.inlineBlockNeedsLayout = ( div.offsetWidth === 3 )) ) { | ||
support.inlineBlockNeedsLayout = val = div.offsetWidth === 3; | ||
if ( val ) { | ||
// Prevent IE 6 from affecting layout for positioned elements #11048 | ||
@@ -60,7 +59,4 @@ // Prevent IE from shrinking the body in IE 7 mode #12869 | ||
body.removeChild( container ); | ||
// Null elements to avoid leaks in IE | ||
container = div = null; | ||
}); | ||
}); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15
1762300
103
36350
1
369