diff --git a/acorn.js b/acorn.js
index 8cb360f419..f0740d8154 100644
--- a/acorn.js
+++ b/acorn.js
@@ -852,25 +852,18 @@
function getTemplateToken(code) {
// '`' and '${' have special meanings, but they should follow
// string (can be empty)
- if (tokType === _string) {
- if (code === 96) { // '`'
- ++tokPos;
- return finishToken(_bquote);
- } else
- if (code === 36 && input.charCodeAt(tokPos + 1) === 123) { // '${'
- tokPos += 2;
- return finishToken(_dollarBraceL);
- }
+ if (tokType === _string) {
+ if (code === 96) { // '`'
+ ++tokPos;
+ return finishToken(_bquote);
+ } else if (code === 36 && input.charCodeAt(tokPos + 1) === 123) { // '${'
+ tokPos += 2;
+ return finishToken(_dollarBraceL);
}
-
- if (code === 125) { // '}'
- ++tokPos;
- return finishToken(_braceR, undefined, false);
}
-
- // anything else is considered string literal
+ // anything else is considered string literal
return readTmplString();
- }
+ }
function getTokenFromCode(code) {
switch(code) {
@@ -2687,10 +2680,11 @@
// Parse template expression.
function parseTemplate() {
+ var oldInTemplate = inTemplate;
+ inTemplate = true;
var node = startNode();
node.expressions = [];
node.quasis = [];
- inTemplate = true;
next();
for (;;) {
var elem = startNode();
@@ -2710,7 +2704,7 @@
tokPos = tokEnd;
expect(_braceR);
}
- inTemplate = false;
+ inTemplate = oldInTemplate;
next();
return finishNode(node, "TemplateLiteral");
}
@@ -3104,9 +3098,6 @@
if (tokType !== _name || tokVal !== "from") unexpected();
next();
node.source = tokType === _string ? parseExprAtom() : unexpected();
- // only for backward compatibility with Esprima's AST
- // (it doesn't support mixed default + named yet)
- node.kind = node.specifiers[0]['default'] ? "default" : "named";
}
semicolon();
return finishNode(node, "ImportDeclaration");
@@ -3116,16 +3107,6 @@
function parseImportSpecifiers() {
var nodes = [], first = true;
- if (tokType === _star) {
- var node = startNode();
- next();
- if (tokType !== _name || tokVal !== "as") unexpected();
- next();
- node.name = parseIdent();
- checkLVal(node.name, true);
- nodes.push(finishNode(node, "ImportBatchSpecifier"));
- return nodes;
- }
if (tokType === _name) {
// import defaultObj, { x, y as z } from '...'
var node = startNode();
@@ -3136,6 +3117,16 @@
nodes.push(finishNode(node, "ImportSpecifier"));
if (!eat(_comma)) return nodes;
}
+ if (tokType === _star) {
+ var node = startNode();
+ next();
+ if (tokType !== _name || tokVal !== "as") unexpected();
+ next();
+ node.name = parseIdent();
+ checkLVal(node.name, true);
+ nodes.push(finishNode(node, "ImportBatchSpecifier"));
+ return nodes;
+ }
expect(_braceL);
while (!eat(_braceR)) {
if (!first) {
diff --git a/bin/update_authors.sh b/bin/update_authors.sh
index a517bc0999..466c8db586 100755
--- a/bin/update_authors.sh
+++ b/bin/update_authors.sh
@@ -1,6 +1,6 @@
# Combine existing list of authors with everyone known in git, sort, add header.
tail --lines=+3 AUTHORS > AUTHORS.tmp
git log --format='%aN' | grep -v abraidwood >> AUTHORS.tmp
-echo "List of Acorn contributors. Updated before every release.\n" > AUTHORS
+echo -e "List of Acorn contributors. Updated before every release.\n" > AUTHORS
sort -u AUTHORS.tmp >> AUTHORS
rm -f AUTHORS.tmp
diff --git a/test/bench.html b/test/bench.html
index 543057cb92..df5ca3d85d 100644
--- a/test/bench.html
+++ b/test/bench.html
@@ -18,7 +18,7 @@
Acorn/Esprima/Traceur speed comparison
This will run each of the three ES6 parsers on the source code of
-jQuery 1.6.4 and CodeMirror 3.0b1 for five seconds, and show a table
+jQuery 1.11.1 and CodeMirror 3.0b1 for five seconds, and show a table
indicating the number of lines parsed per second. Note that Traceur
always stores location data, and is thus not fairly compared by the
benchmark without location data.
@@ -49,17 +49,17 @@ numbers.
parser.parseScript();
}
- var totalLines = codemirror30.split("\n").length + jquery164.split("\n").length;
+ var totalLines = codemirror30.split("\n").length + jquery111.split("\n").length;
var nowHost = (typeof performance === 'object' && 'now' in performance) ? performance : Date;
function benchmark(runner, locations) {
// Give it a chance to warm up (first runs are usually outliers)
- runner(jquery164, locations);
+ runner(jquery111, locations);
runner(codemirror30, locations);
var t0 = nowHost.now(), t1, lines = 0;
for (;;) {
- runner(jquery164, locations);
+ runner(jquery111, locations);
runner(codemirror30, locations);
lines += totalLines;
t1 = nowHost.now();
diff --git a/test/jquery-string.js b/test/jquery-string.js
index 5bb27bbf9d..9468fc6c2e 100644
--- a/test/jquery-string.js
+++ b/test/jquery-string.js
@@ -1,6739 +1,8596 @@
-/* Silly noise to be able to load in source code without doing an XMLHttpReq */var jquery164 = "/*!\n\
- * jQuery JavaScript Library v1.6.4\n\
+/* Silly noise to be able to load in source code without doing an XMLHttpReq */var jquery111 = "/*!\n\
+ * jQuery JavaScript Library v1.11.1\n\
* http://jquery.com/\n\
*\n\
- * Copyright 2011, John Resig\n\
- * Dual licensed under the MIT or GPL Version 2 licenses.\n\
- * http://jquery.org/license\n\
- *\n\
* Includes Sizzle.js\n\
* http://sizzlejs.com/\n\
- * Copyright 2011, The Dojo Foundation\n\
- * Released under the MIT, BSD, and GPL Licenses.\n\
*\n\
- * Date: Mon Sep 12 18:54:48 2011 -0400\n\
+ * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors\n\
+ * Released under the MIT license\n\
+ * http://jquery.org/license\n\
+ *\n\
+ * Date: 2014-05-01T17:42Z\n\
*/\n\
-(function( window, undefined ) {\n\
\n\
-// Use the correct document accordingly with window argument (sandbox)\n\
-var document = window.document,\n\
- navigator = window.navigator,\n\
- location = window.location;\n\
-var jQuery = (function() {\n\
+(function( global, factory ) {\n\
\n\
-// Define a local copy of jQuery\n\
-var jQuery = function( selector, context ) {\n\
- // The jQuery object is actually just the init constructor 'enhanced'\n\
- return new jQuery.fn.init( selector, context, rootjQuery );\n\
- },\n\
+\tif ( typeof module === \"object\" && typeof module.exports === \"object\" ) {\n\
+\t\t// For CommonJS and CommonJS-like environments where a proper window is present,\n\
+\t\t// execute the factory and get jQuery\n\
+\t\t// For environments that do not inherently posses a window with a document\n\
+\t\t// (such as Node.js), expose a jQuery-making factory as module.exports\n\
+\t\t// This accentuates the need for the creation of a real window\n\
+\t\t// e.g. var jQuery = require(\"jquery\")(window);\n\
+\t\t// See ticket #14549 for more info\n\
+\t\tmodule.exports = global.document ?\n\
+\t\t\tfactory( global, true ) :\n\
+\t\t\tfunction( w ) {\n\
+\t\t\t\tif ( !w.document ) {\n\
+\t\t\t\t\tthrow new Error( \"jQuery requires a window with a document\" );\n\
+\t\t\t\t}\n\
+\t\t\t\treturn factory( w );\n\
+\t\t\t};\n\
+\t} else {\n\
+\t\tfactory( global );\n\
+\t}\n\
\n\
- // Map over jQuery in case of overwrite\n\
- _jQuery = window.jQuery,\n\
+// Pass this if window is not defined yet\n\
+}(typeof window !== \"undefined\" ? window : this, function( window, noGlobal ) {\n\
\n\
- // Map over the $ in case of overwrite\n\
- _$ = window.$,\n\
+// Can't do this because several apps including ASP.NET trace\n\
+// the stack via arguments.caller.callee and Firefox dies if\n\
+// you try to trace through \"use strict\" call chains. (#13335)\n\
+// Support: Firefox 18+\n\
+//\n\
\n\
- // A central reference to the root jQuery(document)\n\
- rootjQuery,\n\
+var deletedIds = [];\n\
\n\
- // A simple way to check for HTML strings or ID strings\n\
- // Prioritize #id over to avoid XSS via location.hash (#9521)\n\
- quickExpr = /^(?:[^#<]*(<[\\w\\W]+>)[^>]*$|#([\\w\\-]*)$)/,\n\
+var slice = deletedIds.slice;\n\
\n\
- // Check if a string has a non-whitespace character in it\n\
- rnotwhite = /\\S/,\n\
+var concat = deletedIds.concat;\n\
\n\
- // Used for trimming whitespace\n\
- trimLeft = /^\\s+/,\n\
- trimRight = /\\s+$/,\n\
+var push = deletedIds.push;\n\
\n\
- // Check for digits\n\
- rdigit = /\\d/,\n\
+var indexOf = deletedIds.indexOf;\n\
\n\
- // Match a standalone tag\n\
- rsingleTag = /^<(\\w+)\\s*\\/?>(?:<\\/\\1>)?$/,\n\
+var class2type = {};\n\
\n\
- // JSON RegExp\n\
- rvalidchars = /^[\\],:{}\\s]*$/,\n\
- rvalidescape = /\\\\(?:[\"\\\\\\/bfnrt]|u[0-9a-fA-F]{4})/g,\n\
- rvalidtokens = /\"[^\"\\\\\\n\\r]*\"|true|false|null|-?\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?/g,\n\
- rvalidbraces = /(?:^|:|,)(?:\\s*\\[)+/g,\n\
+var toString = class2type.toString;\n\
\n\
- // Useragent RegExp\n\
- rwebkit = /(webkit)[ \\/]([\\w.]+)/,\n\
- ropera = /(opera)(?:.*version)?[ \\/]([\\w.]+)/,\n\
- rmsie = /(msie) ([\\w.]+)/,\n\
- rmozilla = /(mozilla)(?:.*? rv:([\\w.]+))?/,\n\
+var hasOwn = class2type.hasOwnProperty;\n\
\n\
- // Matches dashed string for camelizing\n\
- rdashAlpha = /-([a-z]|[0-9])/ig,\n\
- rmsPrefix = /^-ms-/,\n\
+var support = {};\n\
\n\
- // Used by jQuery.camelCase as callback to replace()\n\
- fcamelCase = function( all, letter ) {\n\
- return ( letter + \"\" ).toUpperCase();\n\
- },\n\
\n\
- // Keep a UserAgent string for use with jQuery.browser\n\
- userAgent = navigator.userAgent,\n\
\n\
- // For matching the engine and version of the browser\n\
- browserMatch,\n\
+var\n\
+\tversion = \"1.11.1\",\n\
\n\
- // The deferred used on DOM ready\n\
- readyList,\n\
+\t// Define a local copy of jQuery\n\
+\tjQuery = function( selector, context ) {\n\
+\t\t// The jQuery object is actually just the init constructor 'enhanced'\n\
+\t\t// Need init if jQuery is called (just allow error to be thrown if not included)\n\
+\t\treturn new jQuery.fn.init( selector, context );\n\
+\t},\n\
\n\
- // The ready event handler\n\
- DOMContentLoaded,\n\
+\t// Support: Android<4.1, IE<9\n\
+\t// Make sure we trim BOM and NBSP\n\
+\trtrim = /^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g,\n\
\n\
- // Save a reference to some core methods\n\
- toString = Object.prototype.toString,\n\
- hasOwn = Object.prototype.hasOwnProperty,\n\
- push = Array.prototype.push,\n\
- slice = Array.prototype.slice,\n\
- trim = String.prototype.trim,\n\
- indexOf = Array.prototype.indexOf,\n\
+\t// Matches dashed string for camelizing\n\
+\trmsPrefix = /^-ms-/,\n\
+\trdashAlpha = /-([\\da-z])/gi,\n\
\n\
- // [[Class]] -> type pairs\n\
- class2type = {};\n\
+\t// Used by jQuery.camelCase as callback to replace()\n\
+\tfcamelCase = function( all, letter ) {\n\
+\t\treturn letter.toUpperCase();\n\
+\t};\n\
\n\
jQuery.fn = jQuery.prototype = {\n\
- constructor: jQuery,\n\
- init: function( selector, context, rootjQuery ) {\n\
- var match, elem, ret, doc;\n\
+\t// The current version of jQuery being used\n\
+\tjquery: version,\n\
\n\
- // Handle $(\"\"), $(null), or $(undefined)\n\
- if ( !selector ) {\n\
- return this;\n\
- }\n\
+\tconstructor: jQuery,\n\
\n\
- // Handle $(DOMElement)\n\
- if ( selector.nodeType ) {\n\
- this.context = this[0] = selector;\n\
- this.length = 1;\n\
- return this;\n\
- }\n\
+\t// Start with an empty selector\n\
+\tselector: \"\",\n\
\n\
- // The body element only exists once, optimize finding it\n\
- if ( selector === \"body\" && !context && document.body ) {\n\
- this.context = document;\n\
- this[0] = document.body;\n\
- this.selector = selector;\n\
- this.length = 1;\n\
- return this;\n\
- }\n\
+\t// The default length of a jQuery object is 0\n\
+\tlength: 0,\n\
\n\
- // Handle HTML strings\n\
- if ( typeof selector === \"string\" ) {\n\
- // Are we dealing with HTML string or an ID?\n\
- if ( selector.charAt(0) === \"<\" && selector.charAt( selector.length - 1 ) === \">\" && selector.length >= 3 ) {\n\
- // Assume that strings that start and end with <> are HTML and skip the regex check\n\
- match = [ null, selector, null ];\n\
+\ttoArray: function() {\n\
+\t\treturn slice.call( this );\n\
+\t},\n\
\n\
- } else {\n\
- match = quickExpr.exec( selector );\n\
- }\n\
+\t// Get the Nth element in the matched element set OR\n\
+\t// Get the whole matched element set as a clean array\n\
+\tget: function( num ) {\n\
+\t\treturn num != null ?\n\
\n\
- // Verify a match, and that no context was specified for #id\n\
- if ( match && (match[1] || !context) ) {\n\
+\t\t\t// Return just the one element from the set\n\
+\t\t\t( num < 0 ? this[ num + this.length ] : this[ num ] ) :\n\
\n\
- // HANDLE: $(html) -> $(array)\n\
- if ( match[1] ) {\n\
- context = context instanceof jQuery ? context[0] : context;\n\
- doc = (context ? context.ownerDocument || context : document);\n\
+\t\t\t// Return all the elements in a clean array\n\
+\t\t\tslice.call( this );\n\
+\t},\n\
\n\
- // If a single string is passed in and it's a single tag\n\
- // just do a createElement and skip the rest\n\
- ret = rsingleTag.exec( selector );\n\
+\t// Take an array of elements and push it onto the stack\n\
+\t// (returning the new matched element set)\n\
+\tpushStack: function( elems ) {\n\
\n\
- if ( ret ) {\n\
- if ( jQuery.isPlainObject( context ) ) {\n\
- selector = [ document.createElement( ret[1] ) ];\n\
- jQuery.fn.attr.call( selector, context, true );\n\
+\t\t// Build a new jQuery matched element set\n\
+\t\tvar ret = jQuery.merge( this.constructor(), elems );\n\
\n\
- } else {\n\
- selector = [ doc.createElement( ret[1] ) ];\n\
- }\n\
+\t\t// Add the old object onto the stack (as a reference)\n\
+\t\tret.prevObject = this;\n\
+\t\tret.context = this.context;\n\
\n\
- } else {\n\
- ret = jQuery.buildFragment( [ match[1] ], [ doc ] );\n\
- selector = (ret.cacheable ? jQuery.clone(ret.fragment) : ret.fragment).childNodes;\n\
- }\n\
+\t\t// Return the newly-formed element set\n\
+\t\treturn ret;\n\
+\t},\n\
\n\
- return jQuery.merge( this, selector );\n\
+\t// Execute a callback for every element in the matched set.\n\
+\t// (You can seed the arguments with an array of args, but this is\n\
+\t// only used internally.)\n\
+\teach: function( callback, args ) {\n\
+\t\treturn jQuery.each( this, callback, args );\n\
+\t},\n\
\n\
- // HANDLE: $(\"#id\")\n\
- } else {\n\
- elem = document.getElementById( match[2] );\n\
+\tmap: function( callback ) {\n\
+\t\treturn this.pushStack( jQuery.map(this, function( elem, i ) {\n\
+\t\t\treturn callback.call( elem, i, elem );\n\
+\t\t}));\n\
+\t},\n\
\n\
- // Check parentNode to catch when Blackberry 4.6 returns\n\
- // nodes that are no longer in the document #6963\n\
- if ( elem && elem.parentNode ) {\n\
- // Handle the case where IE and Opera return items\n\
- // by name instead of ID\n\
- if ( elem.id !== match[2] ) {\n\
- return rootjQuery.find( selector );\n\
- }\n\
+\tslice: function() {\n\
+\t\treturn this.pushStack( slice.apply( this, arguments ) );\n\
+\t},\n\
\n\
- // Otherwise, we inject the element directly into the jQuery object\n\
- this.length = 1;\n\
- this[0] = elem;\n\
- }\n\
+\tfirst: function() {\n\
+\t\treturn this.eq( 0 );\n\
+\t},\n\
\n\
- this.context = document;\n\
- this.selector = selector;\n\
- return this;\n\
- }\n\
+\tlast: function() {\n\
+\t\treturn this.eq( -1 );\n\
+\t},\n\
\n\
- // HANDLE: $(expr, $(...))\n\
- } else if ( !context || context.jquery ) {\n\
- return (context || rootjQuery).find( selector );\n\
+\teq: function( i ) {\n\
+\t\tvar len = this.length,\n\
+\t\t\tj = +i + ( i < 0 ? len : 0 );\n\
+\t\treturn this.pushStack( j >= 0 && j < len ? [ this[j] ] : [] );\n\
+\t},\n\
\n\
- // HANDLE: $(expr, context)\n\
- // (which is just equivalent to: $(context).find(expr)\n\
- } else {\n\
- return this.constructor( context ).find( selector );\n\
- }\n\
+\tend: function() {\n\
+\t\treturn this.prevObject || this.constructor(null);\n\
+\t},\n\
\n\
- // HANDLE: $(function)\n\
- // Shortcut for document ready\n\
- } else if ( jQuery.isFunction( selector ) ) {\n\
- return rootjQuery.ready( selector );\n\
- }\n\
-\n\
- if (selector.selector !== undefined) {\n\
- this.selector = selector.selector;\n\
- this.context = selector.context;\n\
- }\n\
-\n\
- return jQuery.makeArray( selector, this );\n\
- },\n\
-\n\
- // Start with an empty selector\n\
- selector: \"\",\n\
-\n\
- // The current version of jQuery being used\n\
- jquery: \"1.6.4\",\n\
-\n\
- // The default length of a jQuery object is 0\n\
- length: 0,\n\
-\n\
- // The number of elements contained in the matched element set\n\
- size: function() {\n\
- return this.length;\n\
- },\n\
-\n\
- toArray: function() {\n\
- return slice.call( this, 0 );\n\
- },\n\
-\n\
- // Get the Nth element in the matched element set OR\n\
- // Get the whole matched element set as a clean array\n\
- get: function( num ) {\n\
- return num == null ?\n\
-\n\
- // Return a 'clean' array\n\
- this.toArray() :\n\
-\n\
- // Return just the object\n\
- ( num < 0 ? this[ this.length + num ] : this[ num ] );\n\
- },\n\
-\n\
- // Take an array of elements and push it onto the stack\n\
- // (returning the new matched element set)\n\
- pushStack: function( elems, name, selector ) {\n\
- // Build a new jQuery matched element set\n\
- var ret = this.constructor();\n\
-\n\
- if ( jQuery.isArray( elems ) ) {\n\
- push.apply( ret, elems );\n\
-\n\
- } else {\n\
- jQuery.merge( ret, elems );\n\
- }\n\
-\n\
- // Add the old object onto the stack (as a reference)\n\
- ret.prevObject = this;\n\
-\n\
- ret.context = this.context;\n\
-\n\
- if ( name === \"find\" ) {\n\
- ret.selector = this.selector + (this.selector ? \" \" : \"\") + selector;\n\
- } else if ( name ) {\n\
- ret.selector = this.selector + \".\" + name + \"(\" + selector + \")\";\n\
- }\n\
-\n\
- // Return the newly-formed element set\n\
- return ret;\n\
- },\n\
-\n\
- // Execute a callback for every element in the matched set.\n\
- // (You can seed the arguments with an array of args, but this is\n\
- // only used internally.)\n\
- each: function( callback, args ) {\n\
- return jQuery.each( this, callback, args );\n\
- },\n\
-\n\
- ready: function( fn ) {\n\
- // Attach the listeners\n\
- jQuery.bindReady();\n\
-\n\
- // Add the callback\n\
- readyList.done( fn );\n\
-\n\
- return this;\n\
- },\n\
-\n\
- eq: function( i ) {\n\
- return i === -1 ?\n\
- this.slice( i ) :\n\
- this.slice( i, +i + 1 );\n\
- },\n\
-\n\
- first: function() {\n\
- return this.eq( 0 );\n\
- },\n\
-\n\
- last: function() {\n\
- return this.eq( -1 );\n\
- },\n\
-\n\
- slice: function() {\n\
- return this.pushStack( slice.apply( this, arguments ),\n\
- \"slice\", slice.call(arguments).join(\",\") );\n\
- },\n\
-\n\
- map: function( callback ) {\n\
- return this.pushStack( jQuery.map(this, function( elem, i ) {\n\
- return callback.call( elem, i, elem );\n\
- }));\n\
- },\n\
-\n\
- end: function() {\n\
- return this.prevObject || this.constructor(null);\n\
- },\n\
-\n\
- // For internal use only.\n\
- // Behaves like an Array's method, not like a jQuery method.\n\
- push: push,\n\
- sort: [].sort,\n\
- splice: [].splice\n\
+\t// For internal use only.\n\
+\t// Behaves like an Array's method, not like a jQuery method.\n\
+\tpush: push,\n\
+\tsort: deletedIds.sort,\n\
+\tsplice: deletedIds.splice\n\
};\n\
\n\
-// Give the init function the jQuery prototype for later instantiation\n\
-jQuery.fn.init.prototype = jQuery.fn;\n\
-\n\
jQuery.extend = jQuery.fn.extend = function() {\n\
- var options, name, src, copy, copyIsArray, clone,\n\
- target = arguments[0] || {},\n\
- i = 1,\n\
- length = arguments.length,\n\
- deep = false;\n\
+\tvar src, copyIsArray, copy, name, options, clone,\n\
+\t\ttarget = arguments[0] || {},\n\
+\t\ti = 1,\n\
+\t\tlength = arguments.length,\n\
+\t\tdeep = false;\n\
\n\
- // Handle a deep copy situation\n\
- if ( typeof target === \"boolean\" ) {\n\
- deep = target;\n\
- target = arguments[1] || {};\n\
- // skip the boolean and the target\n\
- i = 2;\n\
- }\n\
+\t// Handle a deep copy situation\n\
+\tif ( typeof target === \"boolean\" ) {\n\
+\t\tdeep = target;\n\
\n\
- // Handle case when target is a string or something (possible in deep copy)\n\
- if ( typeof target !== \"object\" && !jQuery.isFunction(target) ) {\n\
- target = {};\n\
- }\n\
+\t\t// skip the boolean and the target\n\
+\t\ttarget = arguments[ i ] || {};\n\
+\t\ti++;\n\
+\t}\n\
\n\
- // extend jQuery itself if only one argument is passed\n\
- if ( length === i ) {\n\
- target = this;\n\
- --i;\n\
- }\n\
+\t// Handle case when target is a string or something (possible in deep copy)\n\
+\tif ( typeof target !== \"object\" && !jQuery.isFunction(target) ) {\n\
+\t\ttarget = {};\n\
+\t}\n\
\n\
- for ( ; i < length; i++ ) {\n\
- // Only deal with non-null/undefined values\n\
- if ( (options = arguments[ i ]) != null ) {\n\
- // Extend the base object\n\
- for ( name in options ) {\n\
- src = target[ name ];\n\
- copy = options[ name ];\n\
+\t// extend jQuery itself if only one argument is passed\n\
+\tif ( i === length ) {\n\
+\t\ttarget = this;\n\
+\t\ti--;\n\
+\t}\n\
\n\
- // Prevent never-ending loop\n\
- if ( target === copy ) {\n\
- continue;\n\
- }\n\
+\tfor ( ; i < length; i++ ) {\n\
+\t\t// Only deal with non-null/undefined values\n\
+\t\tif ( (options = arguments[ i ]) != null ) {\n\
+\t\t\t// Extend the base object\n\
+\t\t\tfor ( name in options ) {\n\
+\t\t\t\tsrc = target[ name ];\n\
+\t\t\t\tcopy = options[ name ];\n\
\n\
- // Recurse if we're merging plain objects or arrays\n\
- if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {\n\
- if ( copyIsArray ) {\n\
- copyIsArray = false;\n\
- clone = src && jQuery.isArray(src) ? src : [];\n\
+\t\t\t\t// Prevent never-ending loop\n\
+\t\t\t\tif ( target === copy ) {\n\
+\t\t\t\t\tcontinue;\n\
+\t\t\t\t}\n\
\n\
- } else {\n\
- clone = src && jQuery.isPlainObject(src) ? src : {};\n\
- }\n\
+\t\t\t\t// Recurse if we're merging plain objects or arrays\n\
+\t\t\t\tif ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {\n\
+\t\t\t\t\tif ( copyIsArray ) {\n\
+\t\t\t\t\t\tcopyIsArray = false;\n\
+\t\t\t\t\t\tclone = src && jQuery.isArray(src) ? src : [];\n\
\n\
- // Never move original objects, clone them\n\
- target[ name ] = jQuery.extend( deep, clone, copy );\n\
+\t\t\t\t\t} else {\n\
+\t\t\t\t\t\tclone = src && jQuery.isPlainObject(src) ? src : {};\n\
+\t\t\t\t\t}\n\
\n\
- // Don't bring in undefined values\n\
- } else if ( copy !== undefined ) {\n\
- target[ name ] = copy;\n\
- }\n\
- }\n\
- }\n\
- }\n\
+\t\t\t\t\t// Never move original objects, clone them\n\
+\t\t\t\t\ttarget[ name ] = jQuery.extend( deep, clone, copy );\n\
\n\
- // Return the modified object\n\
- return target;\n\
+\t\t\t\t// Don't bring in undefined values\n\
+\t\t\t\t} else if ( copy !== undefined ) {\n\
+\t\t\t\t\ttarget[ name ] = copy;\n\
+\t\t\t\t}\n\
+\t\t\t}\n\
+\t\t}\n\
+\t}\n\
+\n\
+\t// Return the modified object\n\
+\treturn target;\n\
};\n\
\n\
jQuery.extend({\n\
- noConflict: function( deep ) {\n\
- if ( window.$ === jQuery ) {\n\
- window.$ = _$;\n\
- }\n\
-\n\
- if ( deep && window.jQuery === jQuery ) {\n\
- window.jQuery = _jQuery;\n\
- }\n\
-\n\
- return jQuery;\n\
- },\n\
-\n\
- // Is the DOM ready to be used? Set to true once it occurs.\n\
- isReady: false,\n\
-\n\
- // A counter to track how many items to wait for before\n\
- // the ready event fires. See #6781\n\
- readyWait: 1,\n\
-\n\
- // Hold (or release) the ready event\n\
- holdReady: function( hold ) {\n\
- if ( hold ) {\n\
- jQuery.readyWait++;\n\
- } else {\n\
- jQuery.ready( true );\n\
- }\n\
- },\n\
-\n\
- // Handle when the DOM is ready\n\
- ready: function( wait ) {\n\
- // Either a released hold or an DOMready/load event and not yet ready\n\
- if ( (wait === true && !--jQuery.readyWait) || (wait !== true && !jQuery.isReady) ) {\n\
- // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).\n\
- if ( !document.body ) {\n\
- return setTimeout( jQuery.ready, 1 );\n\
- }\n\
-\n\
- // Remember that the DOM is ready\n\
- jQuery.isReady = true;\n\
-\n\
- // If a normal DOM Ready event fired, decrement, and wait if need be\n\
- if ( wait !== true && --jQuery.readyWait > 0 ) {\n\
- return;\n\
- }\n\
-\n\
- // If there are functions bound, to execute\n\
- readyList.resolveWith( document, [ jQuery ] );\n\
-\n\
- // Trigger any bound ready events\n\
- if ( jQuery.fn.trigger ) {\n\
- jQuery( document ).trigger( \"ready\" ).unbind( \"ready\" );\n\
- }\n\
- }\n\
- },\n\
-\n\
- bindReady: function() {\n\
- if ( readyList ) {\n\
- return;\n\
- }\n\
-\n\
- readyList = jQuery._Deferred();\n\
-\n\
- // Catch cases where $(document).ready() is called after the\n\
- // browser event has already occurred.\n\
- if ( document.readyState === \"complete\" ) {\n\
- // Handle it asynchronously to allow scripts the opportunity to delay ready\n\
- return setTimeout( jQuery.ready, 1 );\n\
- }\n\
-\n\
- // Mozilla, Opera and webkit nightlies currently support this event\n\
- if ( document.addEventListener ) {\n\
- // Use the handy event callback\n\
- document.addEventListener( \"DOMContentLoaded\", DOMContentLoaded, false );\n\
-\n\
- // A fallback to window.onload, that will always work\n\
- window.addEventListener( \"load\", jQuery.ready, false );\n\
-\n\
- // If IE event model is used\n\
- } else if ( document.attachEvent ) {\n\
- // ensure firing before onload,\n\
- // maybe late but safe also for iframes\n\
- document.attachEvent( \"onreadystatechange\", DOMContentLoaded );\n\
-\n\
- // A fallback to window.onload, that will always work\n\
- window.attachEvent( \"onload\", jQuery.ready );\n\
-\n\
- // If IE and not a frame\n\
- // continually check to see if the document is ready\n\
- var toplevel = false;\n\
-\n\
- try {\n\
- toplevel = window.frameElement == null;\n\
- } catch(e) {}\n\
-\n\
- if ( document.documentElement.doScroll && toplevel ) {\n\
- doScrollCheck();\n\
- }\n\
- }\n\
- },\n\
-\n\
- // See test/unit/core.js for details concerning isFunction.\n\
- // Since version 1.3, DOM methods and functions like alert\n\
- // aren't supported. They return false on IE (#2968).\n\
- isFunction: function( obj ) {\n\
- return jQuery.type(obj) === \"function\";\n\
- },\n\
-\n\
- isArray: Array.isArray || function( obj ) {\n\
- return jQuery.type(obj) === \"array\";\n\
- },\n\
-\n\
- // A crude way of determining if an object is a window\n\
- isWindow: function( obj ) {\n\
- return obj && typeof obj === \"object\" && \"setInterval\" in obj;\n\
- },\n\
-\n\
- isNaN: function( obj ) {\n\
- return obj == null || !rdigit.test( obj ) || isNaN( obj );\n\
- },\n\
-\n\
- type: function( obj ) {\n\
- return obj == null ?\n\
- String( obj ) :\n\
- class2type[ toString.call(obj) ] || \"object\";\n\
- },\n\
-\n\
- isPlainObject: function( obj ) {\n\
- // Must be an Object.\n\
- // Because of IE, we also have to check the presence of the constructor property.\n\
- // Make sure that DOM nodes and window objects don't pass through, as well\n\
- if ( !obj || jQuery.type(obj) !== \"object\" || obj.nodeType || jQuery.isWindow( obj ) ) {\n\
- return false;\n\
- }\n\
-\n\
- try {\n\
- // Not own constructor property must be Object\n\
- if ( obj.constructor &&\n\
- !hasOwn.call(obj, \"constructor\") &&\n\
- !hasOwn.call(obj.constructor.prototype, \"isPrototypeOf\") ) {\n\
- return false;\n\
- }\n\
- } catch ( e ) {\n\
- // IE8,9 Will throw exceptions on certain host objects #9897\n\
- return false;\n\
- }\n\
-\n\
- // Own properties are enumerated firstly, so to speed up,\n\
- // if last one is own, then all properties are own.\n\
-\n\
- var key;\n\
- for ( key in obj ) {}\n\
-\n\
- return key === undefined || hasOwn.call( obj, key );\n\
- },\n\
-\n\
- isEmptyObject: function( obj ) {\n\
- for ( var name in obj ) {\n\
- return false;\n\
- }\n\
- return true;\n\
- },\n\
-\n\
- error: function( msg ) {\n\
- throw msg;\n\
- },\n\
-\n\
- parseJSON: function( data ) {\n\
- if ( typeof data !== \"string\" || !data ) {\n\
- return null;\n\
- }\n\
-\n\
- // Make sure leading/trailing whitespace is removed (IE can't handle it)\n\
- data = jQuery.trim( data );\n\
-\n\
- // Attempt to parse using the native JSON parser first\n\
- if ( window.JSON && window.JSON.parse ) {\n\
- return window.JSON.parse( data );\n\
- }\n\
-\n\
- // Make sure the incoming data is actual JSON\n\
- // Logic borrowed from http://json.org/json2.js\n\
- if ( rvalidchars.test( data.replace( rvalidescape, \"@\" )\n\
- .replace( rvalidtokens, \"]\" )\n\
- .replace( rvalidbraces, \"\")) ) {\n\
-\n\
- return (new Function( \"return \" + data ))();\n\
-\n\
- }\n\
- jQuery.error( \"Invalid JSON: \" + data );\n\
- },\n\
-\n\
- // Cross-browser xml parsing\n\
- parseXML: function( data ) {\n\
- var xml, tmp;\n\
- try {\n\
- if ( window.DOMParser ) { // Standard\n\
- tmp = new DOMParser();\n\
- xml = tmp.parseFromString( data , \"text/xml\" );\n\
- } else { // IE\n\
- xml = new ActiveXObject( \"Microsoft.XMLDOM\" );\n\
- xml.async = \"false\";\n\
- xml.loadXML( data );\n\
- }\n\
- } catch( e ) {\n\
- xml = undefined;\n\
- }\n\
- if ( !xml || !xml.documentElement || xml.getElementsByTagName( \"parsererror\" ).length ) {\n\
- jQuery.error( \"Invalid XML: \" + data );\n\
- }\n\
- return xml;\n\
- },\n\
-\n\
- noop: function() {},\n\
-\n\
- // Evaluates a script in a global context\n\
- // Workarounds based on findings by Jim Driscoll\n\
- // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context\n\
- globalEval: function( data ) {\n\
- if ( data && rnotwhite.test( data ) ) {\n\
- // We use execScript on Internet Explorer\n\
- // We use an anonymous function so that context is window\n\
- // rather than jQuery in Firefox\n\
- ( window.execScript || function( data ) {\n\
- window[ \"eval\" ].call( window, data );\n\
- } )( data );\n\
- }\n\
- },\n\
-\n\
- // Convert dashed to camelCase; used by the css and data modules\n\
- // Microsoft forgot to hump their vendor prefix (#9572)\n\
- camelCase: function( string ) {\n\
- return string.replace( rmsPrefix, \"ms-\" ).replace( rdashAlpha, fcamelCase );\n\
- },\n\
-\n\
- nodeName: function( elem, name ) {\n\
- return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase();\n\
- },\n\
-\n\
- // args is for internal usage only\n\
- each: function( object, callback, args ) {\n\
- var name, i = 0,\n\
- length = object.length,\n\
- isObj = length === undefined || jQuery.isFunction( object );\n\
-\n\
- if ( args ) {\n\
- if ( isObj ) {\n\
- for ( name in object ) {\n\
- if ( callback.apply( object[ name ], args ) === false ) {\n\
- break;\n\
- }\n\
- }\n\
- } else {\n\
- for ( ; i < length; ) {\n\
- if ( callback.apply( object[ i++ ], args ) === false ) {\n\
- break;\n\
- }\n\
- }\n\
- }\n\
-\n\
- // A special, fast, case for the most common use of each\n\
- } else {\n\
- if ( isObj ) {\n\
- for ( name in object ) {\n\
- if ( callback.call( object[ name ], name, object[ name ] ) === false ) {\n\
- break;\n\
- }\n\
- }\n\
- } else {\n\
- for ( ; i < length; ) {\n\
- if ( callback.call( object[ i ], i, object[ i++ ] ) === false ) {\n\
- break;\n\
- }\n\
- }\n\
- }\n\
- }\n\
-\n\
- return object;\n\
- },\n\
-\n\
- // Use native String.trim function wherever possible\n\
- trim: trim ?\n\
- function( text ) {\n\
- return text == null ?\n\
- \"\" :\n\
- trim.call( text );\n\
- } :\n\
-\n\
- // Otherwise use our own trimming functionality\n\
- function( text ) {\n\
- return text == null ?\n\
- \"\" :\n\
- text.toString().replace( trimLeft, \"\" ).replace( trimRight, \"\" );\n\
- },\n\
-\n\
- // results is for internal usage only\n\
- makeArray: function( array, results ) {\n\
- var ret = results || [];\n\
-\n\
- if ( array != null ) {\n\
- // The window, strings (and functions) also have 'length'\n\
- // The extra typeof function check is to prevent crashes\n\
- // in Safari 2 (See: #3039)\n\
- // Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930\n\
- var type = jQuery.type( array );\n\
-\n\
- if ( array.length == null || type === \"string\" || type === \"function\" || type === \"regexp\" || jQuery.isWindow( array ) ) {\n\
- push.call( ret, array );\n\
- } else {\n\
- jQuery.merge( ret, array );\n\
- }\n\
- }\n\
-\n\
- return ret;\n\
- },\n\
-\n\
- inArray: function( elem, array ) {\n\
- if ( !array ) {\n\
- return -1;\n\
- }\n\
-\n\
- if ( indexOf ) {\n\
- return indexOf.call( array, elem );\n\
- }\n\
-\n\
- for ( var i = 0, length = array.length; i < length; i++ ) {\n\
- if ( array[ i ] === elem ) {\n\
- return i;\n\
- }\n\
- }\n\
-\n\
- return -1;\n\
- },\n\
-\n\
- merge: function( first, second ) {\n\
- var i = first.length,\n\
- j = 0;\n\
-\n\
- if ( typeof second.length === \"number\" ) {\n\
- for ( var l = second.length; j < l; j++ ) {\n\
- first[ i++ ] = second[ j ];\n\
- }\n\
-\n\
- } else {\n\
- while ( second[j] !== undefined ) {\n\
- first[ i++ ] = second[ j++ ];\n\
- }\n\
- }\n\
-\n\
- first.length = i;\n\
-\n\
- return first;\n\
- },\n\
-\n\
- grep: function( elems, callback, inv ) {\n\
- var ret = [], retVal;\n\
- inv = !!inv;\n\
-\n\
- // Go through the array, only saving the items\n\
- // that pass the validator function\n\
- for ( var i = 0, length = elems.length; i < length; i++ ) {\n\
- retVal = !!callback( elems[ i ], i );\n\
- if ( inv !== retVal ) {\n\
- ret.push( elems[ i ] );\n\
- }\n\
- }\n\
-\n\
- return ret;\n\
- },\n\
-\n\
- // arg is for internal usage only\n\
- map: function( elems, callback, arg ) {\n\
- var value, key, ret = [],\n\
- i = 0,\n\
- length = elems.length,\n\
- // jquery objects are treated as arrays\n\
- isArray = elems instanceof jQuery || length !== undefined && typeof length === \"number\" && ( ( length > 0 && elems[ 0 ] && elems[ length -1 ] ) || length === 0 || jQuery.isArray( elems ) ) ;\n\
-\n\
- // Go through the array, translating each of the items to their\n\
- if ( isArray ) {\n\
- for ( ; i < length; i++ ) {\n\
- value = callback( elems[ i ], i, arg );\n\
-\n\
- if ( value != null ) {\n\
- ret[ ret.length ] = value;\n\
- }\n\
- }\n\
-\n\
- // Go through every key on the object,\n\
- } else {\n\
- for ( key in elems ) {\n\
- value = callback( elems[ key ], key, arg );\n\
-\n\
- if ( value != null ) {\n\
- ret[ ret.length ] = value;\n\
- }\n\
- }\n\
- }\n\
-\n\
- // Flatten any nested arrays\n\
- return ret.concat.apply( [], ret );\n\
- },\n\
-\n\
- // A global GUID counter for objects\n\
- guid: 1,\n\
-\n\
- // Bind a function to a context, optionally partially applying any\n\
- // arguments.\n\
- proxy: function( fn, context ) {\n\
- if ( typeof context === \"string\" ) {\n\
- var tmp = fn[ context ];\n\
- context = fn;\n\
- fn = tmp;\n\
- }\n\
-\n\
- // Quick check to determine if target is callable, in the spec\n\
- // this throws a TypeError, but we will just return undefined.\n\
- if ( !jQuery.isFunction( fn ) ) {\n\
- return undefined;\n\
- }\n\
-\n\
- // Simulated bind\n\
- var args = slice.call( arguments, 2 ),\n\
- proxy = function() {\n\
- return fn.apply( context, args.concat( slice.call( arguments ) ) );\n\
- };\n\
-\n\
- // Set the guid of unique handler to the same of original handler, so it can be removed\n\
- proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++;\n\
-\n\
- return proxy;\n\
- },\n\
-\n\
- // Mutifunctional method to get and set values to a collection\n\
- // The value/s can optionally be executed if it's a function\n\
- access: function( elems, key, value, exec, fn, pass ) {\n\
- var length = elems.length;\n\
-\n\
- // Setting many attributes\n\
- if ( typeof key === \"object\" ) {\n\
- for ( var k in key ) {\n\
- jQuery.access( elems, k, key[k], exec, fn, value );\n\
- }\n\
- return elems;\n\
- }\n\
-\n\
- // Setting one attribute\n\
- if ( value !== undefined ) {\n\
- // Optionally, function values get executed if exec is true\n\
- exec = !pass && exec && jQuery.isFunction(value);\n\
-\n\
- for ( var i = 0; i < length; i++ ) {\n\
- fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass );\n\
- }\n\
-\n\
- return elems;\n\
- }\n\
-\n\
- // Getting an attribute\n\
- return length ? fn( elems[0], key ) : undefined;\n\
- },\n\
-\n\
- now: function() {\n\
- return (new Date()).getTime();\n\
- },\n\
-\n\
- // Use of jQuery.browser is frowned upon.\n\
- // More details: http://docs.jquery.com/Utilities/jQuery.browser\n\
- uaMatch: function( ua ) {\n\
- ua = ua.toLowerCase();\n\
-\n\
- var match = rwebkit.exec( ua ) ||\n\
- ropera.exec( ua ) ||\n\
- rmsie.exec( ua ) ||\n\
- ua.indexOf(\"compatible\") < 0 && rmozilla.exec( ua ) ||\n\
- [];\n\
-\n\
- return { browser: match[1] || \"\", version: match[2] || \"0\" };\n\
- },\n\
-\n\
- sub: function() {\n\
- function jQuerySub( selector, context ) {\n\
- return new jQuerySub.fn.init( selector, context );\n\
- }\n\
- jQuery.extend( true, jQuerySub, this );\n\
- jQuerySub.superclass = this;\n\
- jQuerySub.fn = jQuerySub.prototype = this();\n\
- jQuerySub.fn.constructor = jQuerySub;\n\
- jQuerySub.sub = this.sub;\n\
- jQuerySub.fn.init = function init( selector, context ) {\n\
- if ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) {\n\
- context = jQuerySub( context );\n\
- }\n\
-\n\
- return jQuery.fn.init.call( this, selector, context, rootjQuerySub );\n\
- };\n\
- jQuerySub.fn.init.prototype = jQuerySub.fn;\n\
- var rootjQuerySub = jQuerySub(document);\n\
- return jQuerySub;\n\
- },\n\
-\n\
- browser: {}\n\
+\t// Unique for each copy of jQuery on the page\n\
+\texpando: \"jQuery\" + ( version + Math.random() ).replace( /\\D/g, \"\" ),\n\
+\n\
+\t// Assume jQuery is ready without the ready module\n\
+\tisReady: true,\n\
+\n\
+\terror: function( msg ) {\n\
+\t\tthrow new Error( msg );\n\
+\t},\n\
+\n\
+\tnoop: function() {},\n\
+\n\
+\t// See test/unit/core.js for details concerning isFunction.\n\
+\t// Since version 1.3, DOM methods and functions like alert\n\
+\t// aren't supported. They return false on IE (#2968).\n\
+\tisFunction: function( obj ) {\n\
+\t\treturn jQuery.type(obj) === \"function\";\n\
+\t},\n\
+\n\
+\tisArray: Array.isArray || function( obj ) {\n\
+\t\treturn jQuery.type(obj) === \"array\";\n\
+\t},\n\
+\n\
+\tisWindow: function( obj ) {\n\
+\t\t/* jshint eqeqeq: false */\n\
+\t\treturn obj != null && obj == obj.window;\n\
+\t},\n\
+\n\
+\tisNumeric: function( obj ) {\n\
+\t\t// parseFloat NaNs numeric-cast false positives (null|true|false|\"\")\n\
+\t\t// ...but misinterprets leading-number strings, particularly hex literals (\"0x...\")\n\
+\t\t// subtraction forces infinities to NaN\n\
+\t\treturn !jQuery.isArray( obj ) && obj - parseFloat( obj ) >= 0;\n\
+\t},\n\
+\n\
+\tisEmptyObject: function( obj ) {\n\
+\t\tvar name;\n\
+\t\tfor ( name in obj ) {\n\
+\t\t\treturn false;\n\
+\t\t}\n\
+\t\treturn true;\n\
+\t},\n\
+\n\
+\tisPlainObject: function( obj ) {\n\
+\t\tvar key;\n\
+\n\
+\t\t// Must be an Object.\n\
+\t\t// Because of IE, we also have to check the presence of the constructor property.\n\
+\t\t// Make sure that DOM nodes and window objects don't pass through, as well\n\
+\t\tif ( !obj || jQuery.type(obj) !== \"object\" || obj.nodeType || jQuery.isWindow( obj ) ) {\n\
+\t\t\treturn false;\n\
+\t\t}\n\
+\n\
+\t\ttry {\n\
+\t\t\t// Not own constructor property must be Object\n\
+\t\t\tif ( obj.constructor &&\n\
+\t\t\t\t!hasOwn.call(obj, \"constructor\") &&\n\
+\t\t\t\t!hasOwn.call(obj.constructor.prototype, \"isPrototypeOf\") ) {\n\
+\t\t\t\treturn false;\n\
+\t\t\t}\n\
+\t\t} catch ( e ) {\n\
+\t\t\t// IE8,9 Will throw exceptions on certain host objects #9897\n\
+\t\t\treturn false;\n\
+\t\t}\n\
+\n\
+\t\t// Support: IE<9\n\
+\t\t// Handle iteration over inherited properties before own properties.\n\
+\t\tif ( support.ownLast ) {\n\
+\t\t\tfor ( key in obj ) {\n\
+\t\t\t\treturn hasOwn.call( obj, key );\n\
+\t\t\t}\n\
+\t\t}\n\
+\n\
+\t\t// Own properties are enumerated firstly, so to speed up,\n\
+\t\t// if last one is own, then all properties are own.\n\
+\t\tfor ( key in obj ) {}\n\
+\n\
+\t\treturn key === undefined || hasOwn.call( obj, key );\n\
+\t},\n\
+\n\
+\ttype: function( obj ) {\n\
+\t\tif ( obj == null ) {\n\
+\t\t\treturn obj + \"\";\n\
+\t\t}\n\
+\t\treturn typeof obj === \"object\" || typeof obj === \"function\" ?\n\
+\t\t\tclass2type[ toString.call(obj) ] || \"object\" :\n\
+\t\t\ttypeof obj;\n\
+\t},\n\
+\n\
+\t// Evaluates a script in a global context\n\
+\t// Workarounds based on findings by Jim Driscoll\n\
+\t// http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context\n\
+\tglobalEval: function( data ) {\n\
+\t\tif ( data && jQuery.trim( data ) ) {\n\
+\t\t\t// We use execScript on Internet Explorer\n\
+\t\t\t// We use an anonymous function so that context is window\n\
+\t\t\t// rather than jQuery in Firefox\n\
+\t\t\t( window.execScript || function( data ) {\n\
+\t\t\t\twindow[ \"eval\" ].call( window, data );\n\
+\t\t\t} )( data );\n\
+\t\t}\n\
+\t},\n\
+\n\
+\t// Convert dashed to camelCase; used by the css and data modules\n\
+\t// Microsoft forgot to hump their vendor prefix (#9572)\n\
+\tcamelCase: function( string ) {\n\
+\t\treturn string.replace( rmsPrefix, \"ms-\" ).replace( rdashAlpha, fcamelCase );\n\
+\t},\n\
+\n\
+\tnodeName: function( elem, name ) {\n\
+\t\treturn elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();\n\
+\t},\n\
+\n\
+\t// args is for internal usage only\n\
+\teach: function( obj, callback, args ) {\n\
+\t\tvar value,\n\
+\t\t\ti = 0,\n\
+\t\t\tlength = obj.length,\n\
+\t\t\tisArray = isArraylike( obj );\n\
+\n\
+\t\tif ( args ) {\n\
+\t\t\tif ( isArray ) {\n\
+\t\t\t\tfor ( ; i < length; i++ ) {\n\
+\t\t\t\t\tvalue = callback.apply( obj[ i ], args );\n\
+\n\
+\t\t\t\t\tif ( value === false ) {\n\
+\t\t\t\t\t\tbreak;\n\
+\t\t\t\t\t}\n\
+\t\t\t\t}\n\
+\t\t\t} else {\n\
+\t\t\t\tfor ( i in obj ) {\n\
+\t\t\t\t\tvalue = callback.apply( obj[ i ], args );\n\
+\n\
+\t\t\t\t\tif ( value === false ) {\n\
+\t\t\t\t\t\tbreak;\n\
+\t\t\t\t\t}\n\
+\t\t\t\t}\n\
+\t\t\t}\n\
+\n\
+\t\t// A special, fast, case for the most common use of each\n\
+\t\t} else {\n\
+\t\t\tif ( isArray ) {\n\
+\t\t\t\tfor ( ; i < length; i++ ) {\n\
+\t\t\t\t\tvalue = callback.call( obj[ i ], i, obj[ i ] );\n\
+\n\
+\t\t\t\t\tif ( value === false ) {\n\
+\t\t\t\t\t\tbreak;\n\
+\t\t\t\t\t}\n\
+\t\t\t\t}\n\
+\t\t\t} else {\n\
+\t\t\t\tfor ( i in obj ) {\n\
+\t\t\t\t\tvalue = callback.call( obj[ i ], i, obj[ i ] );\n\
+\n\
+\t\t\t\t\tif ( value === false ) {\n\
+\t\t\t\t\t\tbreak;\n\
+\t\t\t\t\t}\n\
+\t\t\t\t}\n\
+\t\t\t}\n\
+\t\t}\n\
+\n\
+\t\treturn obj;\n\
+\t},\n\
+\n\
+\t// Support: Android<4.1, IE<9\n\
+\ttrim: function( text ) {\n\
+\t\treturn text == null ?\n\
+\t\t\t\"\" :\n\
+\t\t\t( text + \"\" ).replace( rtrim, \"\" );\n\
+\t},\n\
+\n\
+\t// results is for internal usage only\n\
+\tmakeArray: function( arr, results ) {\n\
+\t\tvar ret = results || [];\n\
+\n\
+\t\tif ( arr != null ) {\n\
+\t\t\tif ( isArraylike( Object(arr) ) ) {\n\
+\t\t\t\tjQuery.merge( ret,\n\
+\t\t\t\t\ttypeof arr === \"string\" ?\n\
+\t\t\t\t\t[ arr ] : arr\n\
+\t\t\t\t);\n\
+\t\t\t} else {\n\
+\t\t\t\tpush.call( ret, arr );\n\
+\t\t\t}\n\
+\t\t}\n\
+\n\
+\t\treturn ret;\n\
+\t},\n\
+\n\
+\tinArray: function( elem, arr, i ) {\n\
+\t\tvar len;\n\
+\n\
+\t\tif ( arr ) {\n\
+\t\t\tif ( indexOf ) {\n\
+\t\t\t\treturn indexOf.call( arr, elem, i );\n\
+\t\t\t}\n\
+\n\
+\t\t\tlen = arr.length;\n\
+\t\t\ti = i ? i < 0 ? Math.max( 0, len + i ) : i : 0;\n\
+\n\
+\t\t\tfor ( ; i < len; i++ ) {\n\
+\t\t\t\t// Skip accessing in sparse arrays\n\
+\t\t\t\tif ( i in arr && arr[ i ] === elem ) {\n\
+\t\t\t\t\treturn i;\n\
+\t\t\t\t}\n\
+\t\t\t}\n\
+\t\t}\n\
+\n\
+\t\treturn -1;\n\
+\t},\n\
+\n\
+\tmerge: function( first, second ) {\n\
+\t\tvar len = +second.length,\n\
+\t\t\tj = 0,\n\
+\t\t\ti = first.length;\n\
+\n\
+\t\twhile ( j < len ) {\n\
+\t\t\tfirst[ i++ ] = second[ j++ ];\n\
+\t\t}\n\
+\n\
+\t\t// Support: IE<9\n\
+\t\t// Workaround casting of .length to NaN on otherwise arraylike objects (e.g., NodeLists)\n\
+\t\tif ( len !== len ) {\n\
+\t\t\twhile ( second[j] !== undefined ) {\n\
+\t\t\t\tfirst[ i++ ] = second[ j++ ];\n\
+\t\t\t}\n\
+\t\t}\n\
+\n\
+\t\tfirst.length = i;\n\
+\n\
+\t\treturn first;\n\
+\t},\n\
+\n\
+\tgrep: function( elems, callback, invert ) {\n\
+\t\tvar callbackInverse,\n\
+\t\t\tmatches = [],\n\
+\t\t\ti = 0,\n\
+\t\t\tlength = elems.length,\n\
+\t\t\tcallbackExpect = !invert;\n\
+\n\
+\t\t// Go through the array, only saving the items\n\
+\t\t// that pass the validator function\n\
+\t\tfor ( ; i < length; i++ ) {\n\
+\t\t\tcallbackInverse = !callback( elems[ i ], i );\n\
+\t\t\tif ( callbackInverse !== callbackExpect ) {\n\
+\t\t\t\tmatches.push( elems[ i ] );\n\
+\t\t\t}\n\
+\t\t}\n\
+\n\
+\t\treturn matches;\n\
+\t},\n\
+\n\
+\t// arg is for internal usage only\n\
+\tmap: function( elems, callback, arg ) {\n\
+\t\tvar value,\n\
+\t\t\ti = 0,\n\
+\t\t\tlength = elems.length,\n\
+\t\t\tisArray = isArraylike( elems ),\n\
+\t\t\tret = [];\n\
+\n\
+\t\t// Go through the array, translating each of the items to their new values\n\
+\t\tif ( isArray ) {\n\
+\t\t\tfor ( ; i < length; i++ ) {\n\
+\t\t\t\tvalue = callback( elems[ i ], i, arg );\n\
+\n\
+\t\t\t\tif ( value != null ) {\n\
+\t\t\t\t\tret.push( value );\n\
+\t\t\t\t}\n\
+\t\t\t}\n\
+\n\
+\t\t// Go through every key on the object,\n\
+\t\t} else {\n\
+\t\t\tfor ( i in elems ) {\n\
+\t\t\t\tvalue = callback( elems[ i ], i, arg );\n\
+\n\
+\t\t\t\tif ( value != null ) {\n\
+\t\t\t\t\tret.push( value );\n\
+\t\t\t\t}\n\
+\t\t\t}\n\
+\t\t}\n\
+\n\
+\t\t// Flatten any nested arrays\n\
+\t\treturn concat.apply( [], ret );\n\
+\t},\n\
+\n\
+\t// A global GUID counter for objects\n\
+\tguid: 1,\n\
+\n\
+\t// Bind a function to a context, optionally partially applying any\n\
+\t// arguments.\n\
+\tproxy: function( fn, context ) {\n\
+\t\tvar args, proxy, tmp;\n\
+\n\
+\t\tif ( typeof context === \"string\" ) {\n\
+\t\t\ttmp = fn[ context ];\n\
+\t\t\tcontext = fn;\n\
+\t\t\tfn = tmp;\n\
+\t\t}\n\
+\n\
+\t\t// Quick check to determine if target is callable, in the spec\n\
+\t\t// this throws a TypeError, but we will just return undefined.\n\
+\t\tif ( !jQuery.isFunction( fn ) ) {\n\
+\t\t\treturn undefined;\n\
+\t\t}\n\
+\n\
+\t\t// Simulated bind\n\
+\t\targs = slice.call( arguments, 2 );\n\
+\t\tproxy = function() {\n\
+\t\t\treturn fn.apply( context || this, args.concat( slice.call( arguments ) ) );\n\
+\t\t};\n\
+\n\
+\t\t// Set the guid of unique handler to the same of original handler, so it can be removed\n\
+\t\tproxy.guid = fn.guid = fn.guid || jQuery.guid++;\n\
+\n\
+\t\treturn proxy;\n\
+\t},\n\
+\n\
+\tnow: function() {\n\
+\t\treturn +( new Date() );\n\
+\t},\n\
+\n\
+\t// jQuery.support is not used in Core but other projects attach their\n\
+\t// properties to it so it needs to exist.\n\
+\tsupport: support\n\
});\n\
\n\
// Populate the class2type map\n\
-jQuery.each(\"Boolean Number String Function Array Date RegExp Object\".split(\" \"), function(i, name) {\n\
- class2type[ \"[object \" + name + \"]\" ] = name.toLowerCase();\n\
+jQuery.each(\"Boolean Number String Function Array Date RegExp Object Error\".split(\" \"), function(i, name) {\n\
+\tclass2type[ \"[object \" + name + \"]\" ] = name.toLowerCase();\n\
});\n\
\n\
-browserMatch = jQuery.uaMatch( userAgent );\n\
-if ( browserMatch.browser ) {\n\
- jQuery.browser[ browserMatch.browser ] = true;\n\
- jQuery.browser.version = browserMatch.version;\n\
+function isArraylike( obj ) {\n\
+\tvar length = obj.length,\n\
+\t\ttype = jQuery.type( obj );\n\
+\n\
+\tif ( type === \"function\" || jQuery.isWindow( obj ) ) {\n\
+\t\treturn false;\n\
+\t}\n\
+\n\
+\tif ( obj.nodeType === 1 && length ) {\n\
+\t\treturn true;\n\
+\t}\n\
+\n\
+\treturn type === \"array\" || length === 0 ||\n\
+\t\ttypeof length === \"number\" && length > 0 && ( length - 1 ) in obj;\n\
}\n\
-\n\
-// Deprecated, use jQuery.browser.webkit instead\n\
-if ( jQuery.browser.webkit ) {\n\
- jQuery.browser.safari = true;\n\
-}\n\
-\n\
-// IE doesn't match non-breaking spaces with \\s\n\
-if ( rnotwhite.test( \"\\xA0\" ) ) {\n\
- trimLeft = /^[\\s\\xA0]+/;\n\
- trimRight = /[\\s\\xA0]+$/;\n\
-}\n\
-\n\
-// All jQuery objects should point back to these\n\
-rootjQuery = jQuery(document);\n\
-\n\
-// Cleanup functions for the document ready method\n\
-if ( document.addEventListener ) {\n\
- DOMContentLoaded = function() {\n\
- document.removeEventListener( \"DOMContentLoaded\", DOMContentLoaded, false );\n\
- jQuery.ready();\n\
- };\n\
-\n\
-} else if ( document.attachEvent ) {\n\
- DOMContentLoaded = function() {\n\
- // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).\n\
- if ( document.readyState === \"complete\" ) {\n\
- document.detachEvent( \"onreadystatechange\", DOMContentLoaded );\n\
- jQuery.ready();\n\
- }\n\
- };\n\
-}\n\
-\n\
-// The DOM ready check for Internet Explorer\n\
-function doScrollCheck() {\n\
- if ( jQuery.isReady ) {\n\
- return;\n\
- }\n\
-\n\
- try {\n\
- // If IE is used, use the trick by Diego Perini\n\
- // http://javascript.nwbox.com/IEContentLoaded/\n\
- document.documentElement.doScroll(\"left\");\n\
- } catch(e) {\n\
- setTimeout( doScrollCheck, 1 );\n\
- return;\n\
- }\n\
-\n\
- // and execute any waiting functions\n\
- jQuery.ready();\n\
-}\n\
-\n\
-return jQuery;\n\
-\n\
-})();\n\
-\n\
-\n\
-var // Promise methods\n\
- promiseMethods = \"done fail isResolved isRejected promise then always pipe\".split( \" \" ),\n\
- // Static reference to slice\n\
- sliceDeferred = [].slice;\n\
-\n\
-jQuery.extend({\n\
- // Create a simple deferred (one callbacks list)\n\
- _Deferred: function() {\n\
- var // callbacks list\n\
- callbacks = [],\n\
- // stored [ context , args ]\n\
- fired,\n\
- // to avoid firing when already doing so\n\
- firing,\n\
- // flag to know if the deferred has been cancelled\n\
- cancelled,\n\
- // the deferred itself\n\
- deferred = {\n\
-\n\
- // done( f1, f2, ...)\n\
- done: function() {\n\
- if ( !cancelled ) {\n\
- var args = arguments,\n\
- i,\n\
- length,\n\
- elem,\n\
- type,\n\
- _fired;\n\
- if ( fired ) {\n\
- _fired = fired;\n\
- fired = 0;\n\
- }\n\
- for ( i = 0, length = args.length; i < length; i++ ) {\n\
- elem = args[ i ];\n\
- type = jQuery.type( elem );\n\
- if ( type === \"array\" ) {\n\
- deferred.done.apply( deferred, elem );\n\
- } else if ( type === \"function\" ) {\n\
- callbacks.push( elem );\n\
- }\n\
- }\n\
- if ( _fired ) {\n\
- deferred.resolveWith( _fired[ 0 ], _fired[ 1 ] );\n\
- }\n\
- }\n\
- return this;\n\
- },\n\
-\n\
- // resolve with given context and args\n\
- resolveWith: function( context, args ) {\n\
- if ( !cancelled && !fired && !firing ) {\n\
- // make sure args are available (#8421)\n\
- args = args || [];\n\
- firing = 1;\n\
- try {\n\
- while( callbacks[ 0 ] ) {\n\
- callbacks.shift().apply( context, args );\n\
- }\n\
- }\n\
- finally {\n\
- fired = [ context, args ];\n\
- firing = 0;\n\
- }\n\
- }\n\
- return this;\n\
- },\n\
-\n\
- // resolve with this as context and given arguments\n\
- resolve: function() {\n\
- deferred.resolveWith( this, arguments );\n\
- return this;\n\
- },\n\
-\n\
- // Has this deferred been resolved?\n\
- isResolved: function() {\n\
- return !!( firing || fired );\n\
- },\n\
-\n\
- // Cancel\n\
- cancel: function() {\n\
- cancelled = 1;\n\
- callbacks = [];\n\
- return this;\n\
- }\n\
- };\n\
-\n\
- return deferred;\n\
- },\n\
-\n\
- // Full fledged deferred (two callbacks list)\n\
- Deferred: function( func ) {\n\
- var deferred = jQuery._Deferred(),\n\
- failDeferred = jQuery._Deferred(),\n\
- promise;\n\
- // Add errorDeferred methods, then and promise\n\
- jQuery.extend( deferred, {\n\
- then: function( doneCallbacks, failCallbacks ) {\n\
- deferred.done( doneCallbacks ).fail( failCallbacks );\n\
- return this;\n\
- },\n\
- always: function() {\n\
- return deferred.done.apply( deferred, arguments ).fail.apply( this, arguments );\n\
- },\n\
- fail: failDeferred.done,\n\
- rejectWith: failDeferred.resolveWith,\n\
- reject: failDeferred.resolve,\n\
- isRejected: failDeferred.isResolved,\n\
- pipe: function( fnDone, fnFail ) {\n\
- return jQuery.Deferred(function( newDefer ) {\n\
- jQuery.each( {\n\
- done: [ fnDone, \"resolve\" ],\n\
- fail: [ fnFail, \"reject\" ]\n\
- }, function( handler, data ) {\n\
- var fn = data[ 0 ],\n\
- action = data[ 1 ],\n\
- returned;\n\
- if ( jQuery.isFunction( fn ) ) {\n\
- deferred[ handler ](function() {\n\
- returned = fn.apply( this, arguments );\n\
- if ( returned && jQuery.isFunction( returned.promise ) ) {\n\
- returned.promise().then( newDefer.resolve, newDefer.reject );\n\
- } else {\n\
- newDefer[ action + \"With\" ]( this === deferred ? newDefer : this, [ returned ] );\n\
- }\n\
- });\n\
- } else {\n\
- deferred[ handler ]( newDefer[ action ] );\n\
- }\n\
- });\n\
- }).promise();\n\
- },\n\
- // Get a promise for this deferred\n\
- // If obj is provided, the promise aspect is added to the object\n\
- promise: function( obj ) {\n\
- if ( obj == null ) {\n\
- if ( promise ) {\n\
- return promise;\n\
- }\n\
- promise = obj = {};\n\
- }\n\
- var i = promiseMethods.length;\n\
- while( i-- ) {\n\
- obj[ promiseMethods[i] ] = deferred[ promiseMethods[i] ];\n\
- }\n\
- return obj;\n\
- }\n\
- });\n\
- // Make sure only one callback list will be used\n\
- deferred.done( failDeferred.cancel ).fail( deferred.cancel );\n\
- // Unexpose cancel\n\
- delete deferred.cancel;\n\
- // Call given func if any\n\
- if ( func ) {\n\
- func.call( deferred, deferred );\n\
- }\n\
- return deferred;\n\
- },\n\
-\n\
- // Deferred helper\n\
- when: function( firstParam ) {\n\
- var args = arguments,\n\
- i = 0,\n\
- length = args.length,\n\
- count = length,\n\
- deferred = length <= 1 && firstParam && jQuery.isFunction( firstParam.promise ) ?\n\
- firstParam :\n\
- jQuery.Deferred();\n\
- function resolveFunc( i ) {\n\
- return function( value ) {\n\
- args[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value;\n\
- if ( !( --count ) ) {\n\
- // Strange bug in FF4:\n\
- // Values changed onto the arguments object sometimes end up as undefined values\n\
- // outside the $.when method. Cloning the object into a fresh array solves the issue\n\
- deferred.resolveWith( deferred, sliceDeferred.call( args, 0 ) );\n\
- }\n\
- };\n\
- }\n\
- if ( length > 1 ) {\n\
- for( ; i < length; i++ ) {\n\
- if ( args[ i ] && jQuery.isFunction( args[ i ].promise ) ) {\n\
- args[ i ].promise().then( resolveFunc(i), deferred.reject );\n\
- } else {\n\
- --count;\n\
- }\n\
- }\n\
- if ( !count ) {\n\
- deferred.resolveWith( deferred, args );\n\
- }\n\
- } else if ( deferred !== firstParam ) {\n\
- deferred.resolveWith( deferred, length ? [ firstParam ] : [] );\n\
- }\n\
- return deferred.promise();\n\
- }\n\
-});\n\
-\n\
-\n\
-\n\
-jQuery.support = (function() {\n\
-\n\
- var div = document.createElement( \"div\" ),\n\
- documentElement = document.documentElement,\n\
- all,\n\
- a,\n\
- select,\n\
- opt,\n\
- input,\n\
- marginDiv,\n\
- support,\n\
- fragment,\n\
- body,\n\
- testElementParent,\n\
- testElement,\n\
- testElementStyle,\n\
- tds,\n\
- events,\n\
- eventName,\n\
- i,\n\
- isSupported;\n\
-\n\
- // Preliminary tests\n\
- div.setAttribute(\"className\", \"t\");\n\
- div.innerHTML = \"
a\";\n\
-\n\
-\n\
- all = div.getElementsByTagName( \"*\" );\n\
- a = div.getElementsByTagName( \"a\" )[ 0 ];\n\
-\n\
- // Can't get basic test support\n\
- if ( !all || !all.length || !a ) {\n\
- return {};\n\
- }\n\
-\n\
- // First batch of supports tests\n\
- select = document.createElement( \"select\" );\n\
- opt = select.appendChild( document.createElement(\"option\") );\n\
- input = div.getElementsByTagName( \"input\" )[ 0 ];\n\
-\n\
- support = {\n\
- // IE strips leading whitespace when .innerHTML is used\n\
- leadingWhitespace: ( div.firstChild.nodeType === 3 ),\n\
-\n\
- // Make sure that tbody elements aren't automatically inserted\n\
- // IE will insert them into empty tables\n\
- tbody: !div.getElementsByTagName( \"tbody\" ).length,\n\
-\n\
- // Make sure that link elements get serialized correctly by innerHTML\n\
- // This requires a wrapper element in IE\n\
- htmlSerialize: !!div.getElementsByTagName( \"link\" ).length,\n\
-\n\
- // Get the style information from getAttribute\n\
- // (IE uses .cssText instead)\n\
- style: /top/.test( a.getAttribute(\"style\") ),\n\
-\n\
- // Make sure that URLs aren't manipulated\n\
- // (IE normalizes it by default)\n\
- hrefNormalized: ( a.getAttribute( \"href\" ) === \"/a\" ),\n\
-\n\
- // Make sure that element opacity exists\n\
- // (IE uses filter instead)\n\
- // Use a regex to work around a WebKit issue. See #5145\n\
- opacity: /^0.55$/.test( a.style.opacity ),\n\
-\n\
- // Verify style float existence\n\
- // (IE uses styleFloat instead of cssFloat)\n\
- cssFloat: !!a.style.cssFloat,\n\
-\n\
- // Make sure that if no value is specified for a checkbox\n\
- // that it defaults to \"on\".\n\
- // (WebKit defaults to \"\" instead)\n\
- checkOn: ( input.value === \"on\" ),\n\
-\n\
- // Make sure that a selected-by-default option has a working selected property.\n\
- // (WebKit defaults to false instead of true, IE too, if it's in an optgroup)\n\
- optSelected: opt.selected,\n\
-\n\
- // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7)\n\
- getSetAttribute: div.className !== \"t\",\n\
-\n\
- // Will be defined later\n\
- submitBubbles: true,\n\
- changeBubbles: true,\n\
- focusinBubbles: false,\n\
- deleteExpando: true,\n\
- noCloneEvent: true,\n\
- inlineBlockNeedsLayout: false,\n\
- shrinkWrapBlocks: false,\n\
- reliableMarginRight: true\n\
- };\n\
-\n\
- // Make sure checked status is properly cloned\n\
- input.checked = true;\n\
- support.noCloneChecked = input.cloneNode( true ).checked;\n\
-\n\
- // Make sure that the options inside disabled selects aren't marked as disabled\n\
- // (WebKit marks them as disabled)\n\
- select.disabled = true;\n\
- support.optDisabled = !opt.disabled;\n\
-\n\
- // Test to see if it's possible to delete an expando from an element\n\
- // Fails in Internet Explorer\n\
- try {\n\
- delete div.test;\n\
- } catch( e ) {\n\
- support.deleteExpando = false;\n\
- }\n\
-\n\
- if ( !div.addEventListener && div.attachEvent && div.fireEvent ) {\n\
- div.attachEvent( \"onclick\", function() {\n\
- // Cloning a node shouldn't copy over any\n\
- // bound event handlers (IE does this)\n\
- support.noCloneEvent = false;\n\
- });\n\
- div.cloneNode( true ).fireEvent( \"onclick\" );\n\
- }\n\
-\n\
- // Check if a radio maintains it's value\n\
- // after being appended to the DOM\n\
- input = document.createElement(\"input\");\n\
- input.value = \"t\";\n\
- input.setAttribute(\"type\", \"radio\");\n\
- support.radioValue = input.value === \"t\";\n\
-\n\
- input.setAttribute(\"checked\", \"checked\");\n\
- div.appendChild( input );\n\
- fragment = document.createDocumentFragment();\n\
- fragment.appendChild( div.firstChild );\n\
-\n\
- // WebKit doesn't clone checked state correctly in fragments\n\
- support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked;\n\
-\n\
- div.innerHTML = \"\";\n\
-\n\
- // Figure out if the W3C box model works as expected\n\
- div.style.width = div.style.paddingLeft = \"1px\";\n\
-\n\
- body = document.getElementsByTagName( \"body\" )[ 0 ];\n\
- // We use our own, invisible, body unless the body is already present\n\
- // in which case we use a div (#9239)\n\
- testElement = document.createElement( body ? \"div\" : \"body\" );\n\
- testElementStyle = {\n\
- visibility: \"hidden\",\n\
- width: 0,\n\
- height: 0,\n\
- border: 0,\n\
- margin: 0,\n\
- background: \"none\"\n\
- };\n\
- if ( body ) {\n\
- jQuery.extend( testElementStyle, {\n\
- position: \"absolute\",\n\
- left: \"-1000px\",\n\
- top: \"-1000px\"\n\
- });\n\
- }\n\
- for ( i in testElementStyle ) {\n\
- testElement.style[ i ] = testElementStyle[ i ];\n\
- }\n\
- testElement.appendChild( div );\n\
- testElementParent = body || documentElement;\n\
- testElementParent.insertBefore( testElement, testElementParent.firstChild );\n\
-\n\
- // Check if a disconnected checkbox will retain its checked\n\
- // value of true after appended to the DOM (IE6/7)\n\
- support.appendChecked = input.checked;\n\
-\n\
- support.boxModel = div.offsetWidth === 2;\n\
-\n\
- if ( \"zoom\" in div.style ) {\n\
- // Check if natively block-level elements act like inline-block\n\
- // elements when setting their display to 'inline' and giving\n\
- // them layout\n\
- // (IE < 8 does this)\n\
- div.style.display = \"inline\";\n\
- div.style.zoom = 1;\n\
- support.inlineBlockNeedsLayout = ( div.offsetWidth === 2 );\n\
-\n\
- // Check if elements with layout shrink-wrap their children\n\
- // (IE 6 does this)\n\
- div.style.display = \"\";\n\
- div.innerHTML = \"\";\n\
- support.shrinkWrapBlocks = ( div.offsetWidth !== 2 );\n\
- }\n\
-\n\
- div.innerHTML = \"
t
\";\n\
- tds = div.getElementsByTagName( \"td\" );\n\
-\n\
- // Check if table cells still have offsetWidth/Height when they are set\n\
- // to display:none and there are still other visible table cells in a\n\
- // table row; if so, offsetWidth/Height are not reliable for use when\n\
- // determining if an element has been hidden directly using\n\
- // display:none (it is still safe to use offsets if a parent element is\n\
- // hidden; don safety goggles and see bug #4512 for more information).\n\
- // (only IE 8 fails this test)\n\
- isSupported = ( tds[ 0 ].offsetHeight === 0 );\n\
-\n\
- tds[ 0 ].style.display = \"\";\n\
- tds[ 1 ].style.display = \"none\";\n\
-\n\
- // Check if empty table cells still have offsetWidth/Height\n\
- // (IE < 8 fail this test)\n\
- support.reliableHiddenOffsets = isSupported && ( tds[ 0 ].offsetHeight === 0 );\n\
- div.innerHTML = \"\";\n\
-\n\
- // Check if div with explicit width and no margin-right incorrectly\n\
- // gets computed margin-right based on width of container. For more\n\
- // info see bug #3333\n\
- // Fails in WebKit before Feb 2011 nightlies\n\
- // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right\n\
- if ( document.defaultView && document.defaultView.getComputedStyle ) {\n\
- marginDiv = document.createElement( \"div\" );\n\
- marginDiv.style.width = \"0\";\n\
- marginDiv.style.marginRight = \"0\";\n\
- div.appendChild( marginDiv );\n\
- support.reliableMarginRight =\n\
- ( parseInt( ( document.defaultView.getComputedStyle( marginDiv, null ) || { marginRight: 0 } ).marginRight, 10 ) || 0 ) === 0;\n\
- }\n\
-\n\
- // Remove the body element we added\n\
- testElement.innerHTML = \"\";\n\
- testElementParent.removeChild( testElement );\n\
-\n\
- // Technique from Juriy Zaytsev\n\
- // http://thinkweb2.com/projects/prototype/detecting-event-support-without-browser-sniffing/\n\
- // We only care about the case where non-standard event systems\n\
- // are used, namely in IE. Short-circuiting here helps us to\n\
- // avoid an eval call (in setAttribute) which can cause CSP\n\
- // to go haywire. See: https://developer.mozilla.org/en/Security/CSP\n\
- if ( div.attachEvent ) {\n\
- for( i in {\n\
- submit: 1,\n\
- change: 1,\n\
- focusin: 1\n\
- } ) {\n\
- eventName = \"on\" + i;\n\
- isSupported = ( eventName in div );\n\
- if ( !isSupported ) {\n\
- div.setAttribute( eventName, \"return;\" );\n\
- isSupported = ( typeof div[ eventName ] === \"function\" );\n\
- }\n\
- support[ i + \"Bubbles\" ] = isSupported;\n\
- }\n\
- }\n\
-\n\
- // Null connected elements to avoid leaks in IE\n\
- testElement = fragment = select = opt = body = marginDiv = div = input = null;\n\
-\n\
- return support;\n\
-})();\n\
-\n\
-// Keep track of boxModel\n\
-jQuery.boxModel = jQuery.support.boxModel;\n\
-\n\
-\n\
-\n\
-\n\
-var rbrace = /^(?:\\{.*\\}|\\[.*\\])$/,\n\
- rmultiDash = /([A-Z])/g;\n\
-\n\
-jQuery.extend({\n\
- cache: {},\n\
-\n\
- // Please use with caution\n\
- uuid: 0,\n\
-\n\
- // Unique for each copy of jQuery on the page\n\
- // Non-digits removed to match rinlinejQuery\n\
- expando: \"jQuery\" + ( jQuery.fn.jquery + Math.random() ).replace( /\\D/g, \"\" ),\n\
-\n\
- // The following elements throw uncatchable exceptions if you\n\
- // attempt to add expando properties to them.\n\
- noData: {\n\
- \"embed\": true,\n\
- // Ban all objects except for Flash (which handle expandos)\n\
- \"object\": \"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\",\n\
- \"applet\": true\n\
- },\n\
-\n\
- hasData: function( elem ) {\n\
- elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ];\n\
-\n\
- return !!elem && !isEmptyDataObject( elem );\n\
- },\n\
-\n\
- data: function( elem, name, data, pvt /* Internal Use Only */ ) {\n\
- if ( !jQuery.acceptData( elem ) ) {\n\
- return;\n\
- }\n\
-\n\
- var thisCache, ret,\n\
- internalKey = jQuery.expando,\n\
- getByName = typeof name === \"string\",\n\
-\n\
- // We have to handle DOM nodes and JS objects differently because IE6-7\n\
- // can't GC object references properly across the DOM-JS boundary\n\
- isNode = elem.nodeType,\n\
-\n\
- // Only DOM nodes need the global jQuery cache; JS object data is\n\
- // attached directly to the object so GC can occur automatically\n\
- cache = isNode ? jQuery.cache : elem,\n\
-\n\
- // Only defining an ID for JS objects if its cache already exists allows\n\
- // the code to shortcut on the same path as a DOM node with no cache\n\
- id = isNode ? elem[ jQuery.expando ] : elem[ jQuery.expando ] && jQuery.expando;\n\
-\n\
- // Avoid doing any more work than we need to when trying to get data on an\n\
- // object that has no data at all\n\
- if ( (!id || (pvt && id && (cache[ id ] && !cache[ id ][ internalKey ]))) && getByName && data === undefined ) {\n\
- return;\n\
- }\n\
-\n\
- if ( !id ) {\n\
- // Only DOM nodes need a new unique ID for each element since their data\n\
- // ends up in the global cache\n\
- if ( isNode ) {\n\
- elem[ jQuery.expando ] = id = ++jQuery.uuid;\n\
- } else {\n\
- id = jQuery.expando;\n\
- }\n\
- }\n\
-\n\
- if ( !cache[ id ] ) {\n\
- cache[ id ] = {};\n\
-\n\
- // TODO: This is a hack for 1.5 ONLY. Avoids exposing jQuery\n\
- // metadata on plain JS objects when the object is serialized using\n\
- // JSON.stringify\n\
- if ( !isNode ) {\n\
- cache[ id ].toJSON = jQuery.noop;\n\
- }\n\
- }\n\
-\n\
- // An object can be passed to jQuery.data instead of a key/value pair; this gets\n\
- // shallow copied over onto the existing cache\n\
- if ( typeof name === \"object\" || typeof name === \"function\" ) {\n\
- if ( pvt ) {\n\
- cache[ id ][ internalKey ] = jQuery.extend(cache[ id ][ internalKey ], name);\n\
- } else {\n\
- cache[ id ] = jQuery.extend(cache[ id ], name);\n\
- }\n\
- }\n\
-\n\
- thisCache = cache[ id ];\n\
-\n\
- // Internal jQuery data is stored in a separate object inside the object's data\n\
- // cache in order to avoid key collisions between internal data and user-defined\n\
- // data\n\
- if ( pvt ) {\n\
- if ( !thisCache[ internalKey ] ) {\n\
- thisCache[ internalKey ] = {};\n\
- }\n\
-\n\
- thisCache = thisCache[ internalKey ];\n\
- }\n\
-\n\
- if ( data !== undefined ) {\n\
- thisCache[ jQuery.camelCase( name ) ] = data;\n\
- }\n\
-\n\
- // TODO: This is a hack for 1.5 ONLY. It will be removed in 1.6. Users should\n\
- // not attempt to inspect the internal events object using jQuery.data, as this\n\
- // internal data object is undocumented and subject to change.\n\
- if ( name === \"events\" && !thisCache[name] ) {\n\
- return thisCache[ internalKey ] && thisCache[ internalKey ].events;\n\
- }\n\
-\n\
- // Check for both converted-to-camel and non-converted data property names\n\
- // If a data property was specified\n\
- if ( getByName ) {\n\
-\n\
- // First Try to find as-is property data\n\
- ret = thisCache[ name ];\n\
-\n\
- // Test for null|undefined property data\n\
- if ( ret == null ) {\n\
-\n\
- // Try to find the camelCased property\n\
- ret = thisCache[ jQuery.camelCase( name ) ];\n\
- }\n\
- } else {\n\
- ret = thisCache;\n\
- }\n\
-\n\
- return ret;\n\
- },\n\
-\n\
- removeData: function( elem, name, pvt /* Internal Use Only */ ) {\n\
- if ( !jQuery.acceptData( elem ) ) {\n\
- return;\n\
- }\n\
-\n\
- var thisCache,\n\
-\n\
- // Reference to internal data cache key\n\
- internalKey = jQuery.expando,\n\
-\n\
- isNode = elem.nodeType,\n\
-\n\
- // See jQuery.data for more information\n\
- cache = isNode ? jQuery.cache : elem,\n\
-\n\
- // See jQuery.data for more information\n\
- id = isNode ? elem[ jQuery.expando ] : jQuery.expando;\n\
-\n\
- // If there is already no cache entry for this object, there is no\n\
- // purpose in continuing\n\
- if ( !cache[ id ] ) {\n\
- return;\n\
- }\n\
-\n\
- if ( name ) {\n\
-\n\
- thisCache = pvt ? cache[ id ][ internalKey ] : cache[ id ];\n\
-\n\
- if ( thisCache ) {\n\
-\n\
- // Support interoperable removal of hyphenated or camelcased keys\n\
- if ( !thisCache[ name ] ) {\n\
- name = jQuery.camelCase( name );\n\
- }\n\
-\n\
- delete thisCache[ name ];\n\
-\n\
- // If there is no data left in the cache, we want to continue\n\
- // and let the cache object itself get destroyed\n\
- if ( !isEmptyDataObject(thisCache) ) {\n\
- return;\n\
- }\n\
- }\n\
- }\n\
-\n\
- // See jQuery.data for more information\n\
- if ( pvt ) {\n\
- delete cache[ id ][ internalKey ];\n\
-\n\
- // Don't destroy the parent cache unless the internal data object\n\
- // had been the only thing left in it\n\
- if ( !isEmptyDataObject(cache[ id ]) ) {\n\
- return;\n\
- }\n\
- }\n\
-\n\
- var internalCache = cache[ id ][ internalKey ];\n\
-\n\
- // Browsers that fail expando deletion also refuse to delete expandos on\n\
- // the window, but it will allow it on all other JS objects; other browsers\n\
- // don't care\n\
- // Ensure that `cache` is not a window object #10080\n\
- if ( jQuery.support.deleteExpando || !cache.setInterval ) {\n\
- delete cache[ id ];\n\
- } else {\n\
- cache[ id ] = null;\n\
- }\n\
-\n\
- // We destroyed the entire user cache at once because it's faster than\n\
- // iterating through each key, but we need to continue to persist internal\n\
- // data if it existed\n\
- if ( internalCache ) {\n\
- cache[ id ] = {};\n\
- // TODO: This is a hack for 1.5 ONLY. Avoids exposing jQuery\n\
- // metadata on plain JS objects when the object is serialized using\n\
- // JSON.stringify\n\
- if ( !isNode ) {\n\
- cache[ id ].toJSON = jQuery.noop;\n\
- }\n\
-\n\
- cache[ id ][ internalKey ] = internalCache;\n\
-\n\
- // Otherwise, we need to eliminate the expando on the node to avoid\n\
- // false lookups in the cache for entries that no longer exist\n\
- } else if ( isNode ) {\n\
- // IE does not allow us to delete expando properties from nodes,\n\
- // nor does it have a removeAttribute function on Document nodes;\n\
- // we must handle all of these cases\n\
- if ( jQuery.support.deleteExpando ) {\n\
- delete elem[ jQuery.expando ];\n\
- } else if ( elem.removeAttribute ) {\n\
- elem.removeAttribute( jQuery.expando );\n\
- } else {\n\
- elem[ jQuery.expando ] = null;\n\
- }\n\
- }\n\
- },\n\
-\n\
- // For internal use only.\n\
- _data: function( elem, name, data ) {\n\
- return jQuery.data( elem, name, data, true );\n\
- },\n\
-\n\
- // A method for determining if a DOM node can handle the data expando\n\
- acceptData: function( elem ) {\n\
- if ( elem.nodeName ) {\n\
- var match = jQuery.noData[ elem.nodeName.toLowerCase() ];\n\
-\n\
- if ( match ) {\n\
- return !(match === true || elem.getAttribute(\"classid\") !== match);\n\
- }\n\
- }\n\
-\n\
- return true;\n\
- }\n\
-});\n\
-\n\
-jQuery.fn.extend({\n\
- data: function( key, value ) {\n\
- var data = null;\n\
-\n\
- if ( typeof key === \"undefined\" ) {\n\
- if ( this.length ) {\n\
- data = jQuery.data( this[0] );\n\
-\n\
- if ( this[0].nodeType === 1 ) {\n\
- var attr = this[0].attributes, name;\n\
- for ( var i = 0, l = attr.length; i < l; i++ ) {\n\
- name = attr[i].name;\n\
-\n\
- if ( name.indexOf( \"data-\" ) === 0 ) {\n\
- name = jQuery.camelCase( name.substring(5) );\n\
-\n\
- dataAttr( this[0], name, data[ name ] );\n\
- }\n\
- }\n\
- }\n\
- }\n\
-\n\
- return data;\n\
-\n\
- } else if ( typeof key === \"object\" ) {\n\
- return this.each(function() {\n\
- jQuery.data( this, key );\n\
- });\n\
- }\n\
-\n\
- var parts = key.split(\".\");\n\
- parts[1] = parts[1] ? \".\" + parts[1] : \"\";\n\
-\n\
- if ( value === undefined ) {\n\
- data = this.triggerHandler(\"getData\" + parts[1] + \"!\", [parts[0]]);\n\
-\n\
- // Try to fetch any internally stored data first\n\
- if ( data === undefined && this.length ) {\n\
- data = jQuery.data( this[0], key );\n\
- data = dataAttr( this[0], key, data );\n\
- }\n\
-\n\
- return data === undefined && parts[1] ?\n\
- this.data( parts[0] ) :\n\
- data;\n\
-\n\
- } else {\n\
- return this.each(function() {\n\
- var $this = jQuery( this ),\n\
- args = [ parts[0], value ];\n\
-\n\
- $this.triggerHandler( \"setData\" + parts[1] + \"!\", args );\n\
- jQuery.data( this, key, value );\n\
- $this.triggerHandler( \"changeData\" + parts[1] + \"!\", args );\n\
- });\n\
- }\n\
- },\n\
-\n\
- removeData: function( key ) {\n\
- return this.each(function() {\n\
- jQuery.removeData( this, key );\n\
- });\n\
- }\n\
-});\n\
-\n\
-function dataAttr( elem, key, data ) {\n\
- // If nothing was found internally, try to fetch any\n\
- // data from the HTML5 data-* attribute\n\
- if ( data === undefined && elem.nodeType === 1 ) {\n\
-\n\
- var name = \"data-\" + key.replace( rmultiDash, \"-$1\" ).toLowerCase();\n\
-\n\
- data = elem.getAttribute( name );\n\
-\n\
- if ( typeof data === \"string\" ) {\n\
- try {\n\
- data = data === \"true\" ? true :\n\
- data === \"false\" ? false :\n\
- data === \"null\" ? null :\n\
- !jQuery.isNaN( data ) ? parseFloat( data ) :\n\
- rbrace.test( data ) ? jQuery.parseJSON( data ) :\n\
- data;\n\
- } catch( e ) {}\n\
-\n\
- // Make sure we set the data so it isn't changed later\n\
- jQuery.data( elem, key, data );\n\
-\n\
- } else {\n\
- data = undefined;\n\
- }\n\
- }\n\
-\n\
- return data;\n\
-}\n\
-\n\
-// TODO: This is a hack for 1.5 ONLY to allow objects with a single toJSON\n\
-// property to be considered empty objects; this property always exists in\n\
-// order to make sure JSON.stringify does not expose internal metadata\n\
-function isEmptyDataObject( obj ) {\n\
- for ( var name in obj ) {\n\
- if ( name !== \"toJSON\" ) {\n\
- return false;\n\
- }\n\
- }\n\
-\n\
- return true;\n\
-}\n\
-\n\
-\n\
-\n\
-\n\
-function handleQueueMarkDefer( elem, type, src ) {\n\
- var deferDataKey = type + \"defer\",\n\
- queueDataKey = type + \"queue\",\n\
- markDataKey = type + \"mark\",\n\
- defer = jQuery.data( elem, deferDataKey, undefined, true );\n\
- if ( defer &&\n\
- ( src === \"queue\" || !jQuery.data( elem, queueDataKey, undefined, true ) ) &&\n\
- ( src === \"mark\" || !jQuery.data( elem, markDataKey, undefined, true ) ) ) {\n\
- // Give room for hard-coded callbacks to fire first\n\
- // and eventually mark/queue something else on the element\n\
- setTimeout( function() {\n\
- if ( !jQuery.data( elem, queueDataKey, undefined, true ) &&\n\
- !jQuery.data( elem, markDataKey, undefined, true ) ) {\n\
- jQuery.removeData( elem, deferDataKey, true );\n\
- defer.resolve();\n\
- }\n\
- }, 0 );\n\
- }\n\
-}\n\
-\n\
-jQuery.extend({\n\
-\n\
- _mark: function( elem, type ) {\n\
- if ( elem ) {\n\
- type = (type || \"fx\") + \"mark\";\n\
- jQuery.data( elem, type, (jQuery.data(elem,type,undefined,true) || 0) + 1, true );\n\
- }\n\
- },\n\
-\n\
- _unmark: function( force, elem, type ) {\n\
- if ( force !== true ) {\n\
- type = elem;\n\
- elem = force;\n\
- force = false;\n\
- }\n\
- if ( elem ) {\n\
- type = type || \"fx\";\n\
- var key = type + \"mark\",\n\
- count = force ? 0 : ( (jQuery.data( elem, key, undefined, true) || 1 ) - 1 );\n\
- if ( count ) {\n\
- jQuery.data( elem, key, count, true );\n\
- } else {\n\
- jQuery.removeData( elem, key, true );\n\
- handleQueueMarkDefer( elem, type, \"mark\" );\n\
- }\n\
- }\n\
- },\n\
-\n\
- queue: function( elem, type, data ) {\n\
- if ( elem ) {\n\
- type = (type || \"fx\") + \"queue\";\n\
- var q = jQuery.data( elem, type, undefined, true );\n\
- // Speed up dequeue by getting out quickly if this is just a lookup\n\
- if ( data ) {\n\
- if ( !q || jQuery.isArray(data) ) {\n\
- q = jQuery.data( elem, type, jQuery.makeArray(data), true );\n\
- } else {\n\
- q.push( data );\n\
- }\n\
- }\n\
- return q || [];\n\
- }\n\
- },\n\
-\n\
- dequeue: function( elem, type ) {\n\
- type = type || \"fx\";\n\
-\n\
- var queue = jQuery.queue( elem, type ),\n\
- fn = queue.shift(),\n\
- defer;\n\
-\n\
- // If the fx queue is dequeued, always remove the progress sentinel\n\
- if ( fn === \"inprogress\" ) {\n\
- fn = queue.shift();\n\
- }\n\
-\n\
- if ( fn ) {\n\
- // Add a progress sentinel to prevent the fx queue from being\n\
- // automatically dequeued\n\
- if ( type === \"fx\" ) {\n\
- queue.unshift(\"inprogress\");\n\
- }\n\
-\n\
- fn.call(elem, function() {\n\
- jQuery.dequeue(elem, type);\n\
- });\n\
- }\n\
-\n\
- if ( !queue.length ) {\n\
- jQuery.removeData( elem, type + \"queue\", true );\n\
- handleQueueMarkDefer( elem, type, \"queue\" );\n\
- }\n\
- }\n\
-});\n\
-\n\
-jQuery.fn.extend({\n\
- queue: function( type, data ) {\n\
- if ( typeof type !== \"string\" ) {\n\
- data = type;\n\
- type = \"fx\";\n\
- }\n\
-\n\
- if ( data === undefined ) {\n\
- return jQuery.queue( this[0], type );\n\
- }\n\
- return this.each(function() {\n\
- var queue = jQuery.queue( this, type, data );\n\
-\n\
- if ( type === \"fx\" && queue[0] !== \"inprogress\" ) {\n\
- jQuery.dequeue( this, type );\n\
- }\n\
- });\n\
- },\n\
- dequeue: function( type ) {\n\
- return this.each(function() {\n\
- jQuery.dequeue( this, type );\n\
- });\n\
- },\n\
- // Based off of the plugin by Clint Helfers, with permission.\n\
- // http://blindsignals.com/index.php/2009/07/jquery-delay/\n\
- delay: function( time, type ) {\n\
- time = jQuery.fx ? jQuery.fx.speeds[time] || time : time;\n\
- type = type || \"fx\";\n\
-\n\
- return this.queue( type, function() {\n\
- var elem = this;\n\
- setTimeout(function() {\n\
- jQuery.dequeue( elem, type );\n\
- }, time );\n\
- });\n\
- },\n\
- clearQueue: function( type ) {\n\
- return this.queue( type || \"fx\", [] );\n\
- },\n\
- // Get a promise resolved when queues of a certain type\n\
- // are emptied (fx is the type by default)\n\
- promise: function( type, object ) {\n\
- if ( typeof type !== \"string\" ) {\n\
- object = type;\n\
- type = undefined;\n\
- }\n\
- type = type || \"fx\";\n\
- var defer = jQuery.Deferred(),\n\
- elements = this,\n\
- i = elements.length,\n\
- count = 1,\n\
- deferDataKey = type + \"defer\",\n\
- queueDataKey = type + \"queue\",\n\
- markDataKey = type + \"mark\",\n\
- tmp;\n\
- function resolve() {\n\
- if ( !( --count ) ) {\n\
- defer.resolveWith( elements, [ elements ] );\n\
- }\n\
- }\n\
- while( i-- ) {\n\
- if (( tmp = jQuery.data( elements[ i ], deferDataKey, undefined, true ) ||\n\
- ( jQuery.data( elements[ i ], queueDataKey, undefined, true ) ||\n\
- jQuery.data( elements[ i ], markDataKey, undefined, true ) ) &&\n\
- jQuery.data( elements[ i ], deferDataKey, jQuery._Deferred(), true ) )) {\n\
- count++;\n\
- tmp.done( resolve );\n\
- }\n\
- }\n\
- resolve();\n\
- return defer.promise();\n\
- }\n\
-});\n\
-\n\
-\n\
-\n\
-\n\
-var rclass = /[\\n\\t\\r]/g,\n\
- rspace = /\\s+/,\n\
- rreturn = /\\r/g,\n\
- rtype = /^(?:button|input)$/i,\n\
- rfocusable = /^(?:button|input|object|select|textarea)$/i,\n\
- rclickable = /^a(?:rea)?$/i,\n\
- rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,\n\
- nodeHook, boolHook;\n\
-\n\
-jQuery.fn.extend({\n\
- attr: function( name, value ) {\n\
- return jQuery.access( this, name, value, true, jQuery.attr );\n\
- },\n\
-\n\
- removeAttr: function( name ) {\n\
- return this.each(function() {\n\
- jQuery.removeAttr( this, name );\n\
- });\n\
- },\n\
- \n\
- prop: function( name, value ) {\n\
- return jQuery.access( this, name, value, true, jQuery.prop );\n\
- },\n\
- \n\
- removeProp: function( name ) {\n\
- name = jQuery.propFix[ name ] || name;\n\
- return this.each(function() {\n\
- // try/catch handles cases where IE balks (such as removing a property on window)\n\
- try {\n\
- this[ name ] = undefined;\n\
- delete this[ name ];\n\
- } catch( e ) {}\n\
- });\n\
- },\n\
-\n\
- addClass: function( value ) {\n\
- var classNames, i, l, elem,\n\
- setClass, c, cl;\n\
-\n\
- if ( jQuery.isFunction( value ) ) {\n\
- return this.each(function( j ) {\n\
- jQuery( this ).addClass( value.call(this, j, this.className) );\n\
- });\n\
- }\n\
-\n\
- if ( value && typeof value === \"string\" ) {\n\
- classNames = value.split( rspace );\n\
-\n\
- for ( i = 0, l = this.length; i < l; i++ ) {\n\
- elem = this[ i ];\n\
-\n\
- if ( elem.nodeType === 1 ) {\n\
- if ( !elem.className && classNames.length === 1 ) {\n\
- elem.className = value;\n\
-\n\
- } else {\n\
- setClass = \" \" + elem.className + \" \";\n\
-\n\
- for ( c = 0, cl = classNames.length; c < cl; c++ ) {\n\
- if ( !~setClass.indexOf( \" \" + classNames[ c ] + \" \" ) ) {\n\
- setClass += classNames[ c ] + \" \";\n\
- }\n\
- }\n\
- elem.className = jQuery.trim( setClass );\n\
- }\n\
- }\n\
- }\n\
- }\n\
-\n\
- return this;\n\
- },\n\
-\n\
- removeClass: function( value ) {\n\
- var classNames, i, l, elem, className, c, cl;\n\
-\n\
- if ( jQuery.isFunction( value ) ) {\n\
- return this.each(function( j ) {\n\
- jQuery( this ).removeClass( value.call(this, j, this.className) );\n\
- });\n\
- }\n\
-\n\
- if ( (value && typeof value === \"string\") || value === undefined ) {\n\
- classNames = (value || \"\").split( rspace );\n\
-\n\
- for ( i = 0, l = this.length; i < l; i++ ) {\n\
- elem = this[ i ];\n\
-\n\
- if ( elem.nodeType === 1 && elem.className ) {\n\
- if ( value ) {\n\
- className = (\" \" + elem.className + \" \").replace( rclass, \" \" );\n\
- for ( c = 0, cl = classNames.length; c < cl; c++ ) {\n\
- className = className.replace(\" \" + classNames[ c ] + \" \", \" \");\n\
- }\n\
- elem.className = jQuery.trim( className );\n\
-\n\
- } else {\n\
- elem.className = \"\";\n\
- }\n\
- }\n\
- }\n\
- }\n\
-\n\
- return this;\n\
- },\n\
-\n\
- toggleClass: function( value, stateVal ) {\n\
- var type = typeof value,\n\
- isBool = typeof stateVal === \"boolean\";\n\
-\n\
- if ( jQuery.isFunction( value ) ) {\n\
- return this.each(function( i ) {\n\
- jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal );\n\
- });\n\
- }\n\
-\n\
- return this.each(function() {\n\
- if ( type === \"string\" ) {\n\
- // toggle individual class names\n\
- var className,\n\
- i = 0,\n\
- self = jQuery( this ),\n\
- state = stateVal,\n\
- classNames = value.split( rspace );\n\
-\n\
- while ( (className = classNames[ i++ ]) ) {\n\
- // check each className given, space seperated list\n\
- state = isBool ? state : !self.hasClass( className );\n\
- self[ state ? \"addClass\" : \"removeClass\" ]( className );\n\
- }\n\
-\n\
- } else if ( type === \"undefined\" || type === \"boolean\" ) {\n\
- if ( this.className ) {\n\
- // store className if set\n\
- jQuery._data( this, \"__className__\", this.className );\n\
- }\n\
-\n\
- // toggle whole className\n\
- this.className = this.className || value === false ? \"\" : jQuery._data( this, \"__className__\" ) || \"\";\n\
- }\n\
- });\n\
- },\n\
-\n\
- hasClass: function( selector ) {\n\
- var className = \" \" + selector + \" \";\n\
- for ( var i = 0, l = this.length; i < l; i++ ) {\n\
- if ( this[i].nodeType === 1 && (\" \" + this[i].className + \" \").replace(rclass, \" \").indexOf( className ) > -1 ) {\n\
- return true;\n\
- }\n\
- }\n\
-\n\
- return false;\n\
- },\n\
-\n\
- val: function( value ) {\n\
- var hooks, ret,\n\
- elem = this[0];\n\
- \n\
- if ( !arguments.length ) {\n\
- if ( elem ) {\n\
- hooks = jQuery.valHooks[ elem.nodeName.toLowerCase() ] || jQuery.valHooks[ elem.type ];\n\
-\n\
- if ( hooks && \"get\" in hooks && (ret = hooks.get( elem, \"value\" )) !== undefined ) {\n\
- return ret;\n\
- }\n\
-\n\
- ret = elem.value;\n\
-\n\
- return typeof ret === \"string\" ? \n\
- // handle most common string cases\n\
- ret.replace(rreturn, \"\") : \n\
- // handle cases where value is null/undef or number\n\
- ret == null ? \"\" : ret;\n\
- }\n\
-\n\
- return undefined;\n\
- }\n\
-\n\
- var isFunction = jQuery.isFunction( value );\n\
-\n\
- return this.each(function( i ) {\n\
- var self = jQuery(this), val;\n\
-\n\
- if ( this.nodeType !== 1 ) {\n\
- return;\n\
- }\n\
-\n\
- if ( isFunction ) {\n\
- val = value.call( this, i, self.val() );\n\
- } else {\n\
- val = value;\n\
- }\n\
-\n\
- // Treat null/undefined as \"\"; convert numbers to string\n\
- if ( val == null ) {\n\
- val = \"\";\n\
- } else if ( typeof val === \"number\" ) {\n\
- val += \"\";\n\
- } else if ( jQuery.isArray( val ) ) {\n\
- val = jQuery.map(val, function ( value ) {\n\
- return value == null ? \"\" : value + \"\";\n\
- });\n\
- }\n\
-\n\
- hooks = jQuery.valHooks[ this.nodeName.toLowerCase() ] || jQuery.valHooks[ this.type ];\n\
-\n\
- // If set returns undefined, fall back to normal setting\n\
- if ( !hooks || !(\"set\" in hooks) || hooks.set( this, val, \"value\" ) === undefined ) {\n\
- this.value = val;\n\
- }\n\
- });\n\
- }\n\
-});\n\
-\n\
-jQuery.extend({\n\
- valHooks: {\n\
- option: {\n\
- get: function( elem ) {\n\
- // attributes.value is undefined in Blackberry 4.7 but\n\
- // uses .value. See #6932\n\
- var val = elem.attributes.value;\n\
- return !val || val.specified ? elem.value : elem.text;\n\
- }\n\
- },\n\
- select: {\n\
- get: function( elem ) {\n\
- var value,\n\
- index = elem.selectedIndex,\n\
- values = [],\n\
- options = elem.options,\n\
- one = elem.type === \"select-one\";\n\
-\n\
- // Nothing was selected\n\
- if ( index < 0 ) {\n\
- return null;\n\
- }\n\
-\n\
- // Loop through all the selected options\n\
- for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) {\n\
- var option = options[ i ];\n\
-\n\
- // Don't return options that are disabled or in a disabled optgroup\n\
- if ( option.selected && (jQuery.support.optDisabled ? !option.disabled : option.getAttribute(\"disabled\") === null) &&\n\
- (!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, \"optgroup\" )) ) {\n\
-\n\
- // Get the specific value for the option\n\
- value = jQuery( option ).val();\n\
-\n\
- // We don't need an array for one selects\n\
- if ( one ) {\n\
- return value;\n\
- }\n\
-\n\
- // Multi-Selects return an array\n\
- values.push( value );\n\
- }\n\
- }\n\
-\n\
- // Fixes Bug #2551 -- select.val() broken in IE after form.reset()\n\
- if ( one && !values.length && options.length ) {\n\
- return jQuery( options[ index ] ).val();\n\
- }\n\
-\n\
- return values;\n\
- },\n\
-\n\
- set: function( elem, value ) {\n\
- var values = jQuery.makeArray( value );\n\
-\n\
- jQuery(elem).find(\"option\").each(function() {\n\
- this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0;\n\
- });\n\
-\n\
- if ( !values.length ) {\n\
- elem.selectedIndex = -1;\n\
- }\n\
- return values;\n\
- }\n\
- }\n\
- },\n\
-\n\
- attrFn: {\n\
- val: true,\n\
- css: true,\n\
- html: true,\n\
- text: true,\n\
- data: true,\n\
- width: true,\n\
- height: true,\n\
- offset: true\n\
- },\n\
- \n\
- attrFix: {\n\
- // Always normalize to ensure hook usage\n\
- tabindex: \"tabIndex\"\n\
- },\n\
- \n\
- attr: function( elem, name, value, pass ) {\n\
- var nType = elem.nodeType;\n\
- \n\
- // don't get/set attributes on text, comment and attribute nodes\n\
- if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {\n\
- return undefined;\n\
- }\n\
-\n\
- if ( pass && name in jQuery.attrFn ) {\n\
- return jQuery( elem )[ name ]( value );\n\
- }\n\
-\n\
- // Fallback to prop when attributes are not supported\n\
- if ( !(\"getAttribute\" in elem) ) {\n\
- return jQuery.prop( elem, name, value );\n\
- }\n\
-\n\
- var ret, hooks,\n\
- notxml = nType !== 1 || !jQuery.isXMLDoc( elem );\n\
-\n\
- // Normalize the name if needed\n\
- if ( notxml ) {\n\
- name = jQuery.attrFix[ name ] || name;\n\
-\n\
- hooks = jQuery.attrHooks[ name ];\n\
-\n\
- if ( !hooks ) {\n\
- // Use boolHook for boolean attributes\n\
- if ( rboolean.test( name ) ) {\n\
- hooks = boolHook;\n\
-\n\
- // Use nodeHook if available( IE6/7 )\n\
- } else if ( nodeHook ) {\n\
- hooks = nodeHook;\n\
- }\n\
- }\n\
- }\n\
-\n\
- if ( value !== undefined ) {\n\
-\n\
- if ( value === null ) {\n\
- jQuery.removeAttr( elem, name );\n\
- return undefined;\n\
-\n\
- } else if ( hooks && \"set\" in hooks && notxml && (ret = hooks.set( elem, value, name )) !== undefined ) {\n\
- return ret;\n\
-\n\
- } else {\n\
- elem.setAttribute( name, \"\" + value );\n\
- return value;\n\
- }\n\
-\n\
- } else if ( hooks && \"get\" in hooks && notxml && (ret = hooks.get( elem, name )) !== null ) {\n\
- return ret;\n\
-\n\
- } else {\n\
-\n\
- ret = elem.getAttribute( name );\n\
-\n\
- // Non-existent attributes return null, we normalize to undefined\n\
- return ret === null ?\n\
- undefined :\n\
- ret;\n\
- }\n\
- },\n\
-\n\
- removeAttr: function( elem, name ) {\n\
- var propName;\n\
- if ( elem.nodeType === 1 ) {\n\
- name = jQuery.attrFix[ name ] || name;\n\
-\n\
- jQuery.attr( elem, name, \"\" );\n\
- elem.removeAttribute( name );\n\
-\n\
- // Set corresponding property to false for boolean attributes\n\
- if ( rboolean.test( name ) && (propName = jQuery.propFix[ name ] || name) in elem ) {\n\
- elem[ propName ] = false;\n\
- }\n\
- }\n\
- },\n\
-\n\
- attrHooks: {\n\
- type: {\n\
- set: function( elem, value ) {\n\
- // We can't allow the type property to be changed (since it causes problems in IE)\n\
- if ( rtype.test( elem.nodeName ) && elem.parentNode ) {\n\
- jQuery.error( \"type property can't be changed\" );\n\
- } else if ( !jQuery.support.radioValue && value === \"radio\" && jQuery.nodeName(elem, \"input\") ) {\n\
- // Setting the type on a radio button after the value resets the value in IE6-9\n\
- // Reset value to it's default in case type is set after value\n\
- // This is for element creation\n\
- var val = elem.value;\n\
- elem.setAttribute( \"type\", value );\n\
- if ( val ) {\n\
- elem.value = val;\n\
- }\n\
- return value;\n\
- }\n\
- }\n\
- },\n\
- // Use the value property for back compat\n\
- // Use the nodeHook for button elements in IE6/7 (#1954)\n\
- value: {\n\
- get: function( elem, name ) {\n\
- if ( nodeHook && jQuery.nodeName( elem, \"button\" ) ) {\n\
- return nodeHook.get( elem, name );\n\
- }\n\
- return name in elem ?\n\
- elem.value :\n\
- null;\n\
- },\n\
- set: function( elem, value, name ) {\n\
- if ( nodeHook && jQuery.nodeName( elem, \"button\" ) ) {\n\
- return nodeHook.set( elem, value, name );\n\
- }\n\
- // Does not return so that setAttribute is also used\n\
- elem.value = value;\n\
- }\n\
- }\n\
- },\n\
-\n\
- propFix: {\n\
- tabindex: \"tabIndex\",\n\
- readonly: \"readOnly\",\n\
- \"for\": \"htmlFor\",\n\
- \"class\": \"className\",\n\
- maxlength: \"maxLength\",\n\
- cellspacing: \"cellSpacing\",\n\
- cellpadding: \"cellPadding\",\n\
- rowspan: \"rowSpan\",\n\
- colspan: \"colSpan\",\n\
- usemap: \"useMap\",\n\
- frameborder: \"frameBorder\",\n\
- contenteditable: \"contentEditable\"\n\
- },\n\
- \n\
- prop: function( elem, name, value ) {\n\
- var nType = elem.nodeType;\n\
-\n\
- // don't get/set properties on text, comment and attribute nodes\n\
- if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {\n\
- return undefined;\n\
- }\n\
-\n\
- var ret, hooks,\n\
- notxml = nType !== 1 || !jQuery.isXMLDoc( elem );\n\
-\n\
- if ( notxml ) {\n\
- // Fix name and attach hooks\n\
- name = jQuery.propFix[ name ] || name;\n\
- hooks = jQuery.propHooks[ name ];\n\
- }\n\
-\n\
- if ( value !== undefined ) {\n\
- if ( hooks && \"set\" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {\n\
- return ret;\n\
-\n\
- } else {\n\
- return (elem[ name ] = value);\n\
- }\n\
-\n\
- } else {\n\
- if ( hooks && \"get\" in hooks && (ret = hooks.get( elem, name )) !== null ) {\n\
- return ret;\n\
-\n\
- } else {\n\
- return elem[ name ];\n\
- }\n\
- }\n\
- },\n\
- \n\
- propHooks: {\n\
- tabIndex: {\n\
- get: function( elem ) {\n\
- // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set\n\
- // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/\n\
- var attributeNode = elem.getAttributeNode(\"tabindex\");\n\
-\n\
- return attributeNode && attributeNode.specified ?\n\
- parseInt( attributeNode.value, 10 ) :\n\
- rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?\n\
- 0 :\n\
- undefined;\n\
- }\n\
- }\n\
- }\n\
-});\n\
-\n\
-// Add the tabindex propHook to attrHooks for back-compat\n\
-jQuery.attrHooks.tabIndex = jQuery.propHooks.tabIndex;\n\
-\n\
-// Hook for boolean attributes\n\
-boolHook = {\n\
- get: function( elem, name ) {\n\
- // Align boolean attributes with corresponding properties\n\
- // Fall back to attribute presence where some booleans are not supported\n\
- var attrNode;\n\
- return jQuery.prop( elem, name ) === true || ( attrNode = elem.getAttributeNode( name ) ) && attrNode.nodeValue !== false ?\n\
- name.toLowerCase() :\n\
- undefined;\n\
- },\n\
- set: function( elem, value, name ) {\n\
- var propName;\n\
- if ( value === false ) {\n\
- // Remove boolean attributes when set to false\n\
- jQuery.removeAttr( elem, name );\n\
- } else {\n\
- // value is true since we know at this point it's type boolean and not false\n\
- // Set boolean attributes to the same name and set the DOM property\n\
- propName = jQuery.propFix[ name ] || name;\n\
- if ( propName in elem ) {\n\
- // Only set the IDL specifically if it already exists on the element\n\
- elem[ propName ] = true;\n\
- }\n\
-\n\
- elem.setAttribute( name, name.toLowerCase() );\n\
- }\n\
- return name;\n\
- }\n\
-};\n\
-\n\
-// IE6/7 do not support getting/setting some attributes with get/setAttribute\n\
-if ( !jQuery.support.getSetAttribute ) {\n\
- \n\
- // Use this for any attribute in IE6/7\n\
- // This fixes almost every IE6/7 issue\n\
- nodeHook = jQuery.valHooks.button = {\n\
- get: function( elem, name ) {\n\
- var ret;\n\
- ret = elem.getAttributeNode( name );\n\
- // Return undefined if nodeValue is empty string\n\
- return ret && ret.nodeValue !== \"\" ?\n\
- ret.nodeValue :\n\
- undefined;\n\
- },\n\
- set: function( elem, value, name ) {\n\
- // Set the existing or create a new attribute node\n\
- var ret = elem.getAttributeNode( name );\n\
- if ( !ret ) {\n\
- ret = document.createAttribute( name );\n\
- elem.setAttributeNode( ret );\n\
- }\n\
- return (ret.nodeValue = value + \"\");\n\
- }\n\
- };\n\
-\n\
- // Set width and height to auto instead of 0 on empty string( Bug #8150 )\n\
- // This is for removals\n\
- jQuery.each([ \"width\", \"height\" ], function( i, name ) {\n\
- jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {\n\
- set: function( elem, value ) {\n\
- if ( value === \"\" ) {\n\
- elem.setAttribute( name, \"auto\" );\n\
- return value;\n\
- }\n\
- }\n\
- });\n\
- });\n\
-}\n\
-\n\
-\n\
-// Some attributes require a special call on IE\n\
-if ( !jQuery.support.hrefNormalized ) {\n\
- jQuery.each([ \"href\", \"src\", \"width\", \"height\" ], function( i, name ) {\n\
- jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {\n\
- get: function( elem ) {\n\
- var ret = elem.getAttribute( name, 2 );\n\
- return ret === null ? undefined : ret;\n\
- }\n\
- });\n\
- });\n\
-}\n\
-\n\
-if ( !jQuery.support.style ) {\n\
- jQuery.attrHooks.style = {\n\
- get: function( elem ) {\n\
- // Return undefined in the case of empty string\n\
- // Normalize to lowercase since IE uppercases css property names\n\
- return elem.style.cssText.toLowerCase() || undefined;\n\
- },\n\
- set: function( elem, value ) {\n\
- return (elem.style.cssText = \"\" + value);\n\
- }\n\
- };\n\
-}\n\
-\n\
-// Safari mis-reports the default selected property of an option\n\
-// Accessing the parent's selectedIndex property fixes it\n\
-if ( !jQuery.support.optSelected ) {\n\
- jQuery.propHooks.selected = jQuery.extend( jQuery.propHooks.selected, {\n\
- get: function( elem ) {\n\
- var parent = elem.parentNode;\n\
-\n\
- if ( parent ) {\n\
- parent.selectedIndex;\n\
-\n\
- // Make sure that it also works with optgroups, see #5701\n\
- if ( parent.parentNode ) {\n\
- parent.parentNode.selectedIndex;\n\
- }\n\
- }\n\
- return null;\n\
- }\n\
- });\n\
-}\n\
-\n\
-// Radios and checkboxes getter/setter\n\
-if ( !jQuery.support.checkOn ) {\n\
- jQuery.each([ \"radio\", \"checkbox\" ], function() {\n\
- jQuery.valHooks[ this ] = {\n\
- get: function( elem ) {\n\
- // Handle the case where in Webkit \"\" is returned instead of \"on\" if a value isn't specified\n\
- return elem.getAttribute(\"value\") === null ? \"on\" : elem.value;\n\
- }\n\
- };\n\
- });\n\
-}\n\
-jQuery.each([ \"radio\", \"checkbox\" ], function() {\n\
- jQuery.valHooks[ this ] = jQuery.extend( jQuery.valHooks[ this ], {\n\
- set: function( elem, value ) {\n\
- if ( jQuery.isArray( value ) ) {\n\
- return (elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0);\n\
- }\n\
- }\n\
- });\n\
-});\n\
-\n\
-\n\
-\n\
-\n\
-var rnamespaces = /\\.(.*)$/,\n\
- rformElems = /^(?:textarea|input|select)$/i,\n\
- rperiod = /\\./g,\n\
- rspaces = / /g,\n\
- rescape = /[^\\w\\s.|`]/g,\n\
- fcleanup = function( nm ) {\n\
- return nm.replace(rescape, \"\\\\$&\");\n\
- };\n\
-\n\
-/*\n\
- * A number of helper functions used for managing events.\n\
- * Many of the ideas behind this code originated from\n\
- * Dean Edwards' addEvent library.\n\
- */\n\
-jQuery.event = {\n\
-\n\
- // Bind an event to an element\n\
- // Original by Dean Edwards\n\
- add: function( elem, types, handler, data ) {\n\
- if ( elem.nodeType === 3 || elem.nodeType === 8 ) {\n\
- return;\n\
- }\n\
-\n\
- if ( handler === false ) {\n\
- handler = returnFalse;\n\
- } else if ( !handler ) {\n\
- // Fixes bug #7229. Fix recommended by jdalton\n\
- return;\n\
- }\n\
-\n\
- var handleObjIn, handleObj;\n\
-\n\
- if ( handler.handler ) {\n\
- handleObjIn = handler;\n\
- handler = handleObjIn.handler;\n\
- }\n\
-\n\
- // Make sure that the function being executed has a unique ID\n\
- if ( !handler.guid ) {\n\
- handler.guid = jQuery.guid++;\n\
- }\n\
-\n\
- // Init the element's event structure\n\
- var elemData = jQuery._data( elem );\n\
-\n\
- // If no elemData is found then we must be trying to bind to one of the\n\
- // banned noData elements\n\
- if ( !elemData ) {\n\
- return;\n\
- }\n\
-\n\
- var events = elemData.events,\n\
- eventHandle = elemData.handle;\n\
-\n\
- if ( !events ) {\n\
- elemData.events = events = {};\n\
- }\n\
-\n\
- if ( !eventHandle ) {\n\
- elemData.handle = eventHandle = function( e ) {\n\
- // Discard the second event of a jQuery.event.trigger() and\n\
- // when an event is called after a page has unloaded\n\
- return typeof jQuery !== \"undefined\" && (!e || jQuery.event.triggered !== e.type) ?\n\
- jQuery.event.handle.apply( eventHandle.elem, arguments ) :\n\
- undefined;\n\
- };\n\
- }\n\
-\n\
- // Add elem as a property of the handle function\n\
- // This is to prevent a memory leak with non-native events in IE.\n\
- eventHandle.elem = elem;\n\
-\n\
- // Handle multiple events separated by a space\n\
- // jQuery(...).bind(\"mouseover mouseout\", fn);\n\
- types = types.split(\" \");\n\
-\n\
- var type, i = 0, namespaces;\n\
-\n\
- while ( (type = types[ i++ ]) ) {\n\
- handleObj = handleObjIn ?\n\
- jQuery.extend({}, handleObjIn) :\n\
- { handler: handler, data: data };\n\
-\n\
- // Namespaced event handlers\n\
- if ( type.indexOf(\".\") > -1 ) {\n\
- namespaces = type.split(\".\");\n\
- type = namespaces.shift();\n\
- handleObj.namespace = namespaces.slice(0).sort().join(\".\");\n\
-\n\
- } else {\n\
- namespaces = [];\n\
- handleObj.namespace = \"\";\n\
- }\n\
-\n\
- handleObj.type = type;\n\
- if ( !handleObj.guid ) {\n\
- handleObj.guid = handler.guid;\n\
- }\n\
-\n\
- // Get the current list of functions bound to this event\n\
- var handlers = events[ type ],\n\
- special = jQuery.event.special[ type ] || {};\n\
-\n\
- // Init the event handler queue\n\
- if ( !handlers ) {\n\
- handlers = events[ type ] = [];\n\
-\n\
- // Check for a special event handler\n\
- // Only use addEventListener/attachEvent if the special\n\
- // events handler returns false\n\
- if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {\n\
- // Bind the global event handler to the element\n\
- if ( elem.addEventListener ) {\n\
- elem.addEventListener( type, eventHandle, false );\n\
-\n\
- } else if ( elem.attachEvent ) {\n\
- elem.attachEvent( \"on\" + type, eventHandle );\n\
- }\n\
- }\n\
- }\n\
-\n\
- if ( special.add ) {\n\
- special.add.call( elem, handleObj );\n\
-\n\
- if ( !handleObj.handler.guid ) {\n\
- handleObj.handler.guid = handler.guid;\n\
- }\n\
- }\n\
-\n\
- // Add the function to the element's handler list\n\
- handlers.push( handleObj );\n\
-\n\
- // Keep track of which events have been used, for event optimization\n\
- jQuery.event.global[ type ] = true;\n\
- }\n\
-\n\
- // Nullify elem to prevent memory leaks in IE\n\
- elem = null;\n\
- },\n\
-\n\
- global: {},\n\
-\n\
- // Detach an event or set of events from an element\n\
- remove: function( elem, types, handler, pos ) {\n\
- // don't do events on text and comment nodes\n\
- if ( elem.nodeType === 3 || elem.nodeType === 8 ) {\n\
- return;\n\
- }\n\
-\n\
- if ( handler === false ) {\n\
- handler = returnFalse;\n\
- }\n\
-\n\
- var ret, type, fn, j, i = 0, all, namespaces, namespace, special, eventType, handleObj, origType,\n\
- elemData = jQuery.hasData( elem ) && jQuery._data( elem ),\n\
- events = elemData && elemData.events;\n\
-\n\
- if ( !elemData || !events ) {\n\
- return;\n\
- }\n\
-\n\
- // types is actually an event object here\n\
- if ( types && types.type ) {\n\
- handler = types.handler;\n\
- types = types.type;\n\
- }\n\
-\n\
- // Unbind all events for the element\n\
- if ( !types || typeof types === \"string\" && types.charAt(0) === \".\" ) {\n\
- types = types || \"\";\n\
-\n\
- for ( type in events ) {\n\
- jQuery.event.remove( elem, type + types );\n\
- }\n\
-\n\
- return;\n\
- }\n\
-\n\
- // Handle multiple events separated by a space\n\
- // jQuery(...).unbind(\"mouseover mouseout\", fn);\n\
- types = types.split(\" \");\n\
-\n\
- while ( (type = types[ i++ ]) ) {\n\
- origType = type;\n\
- handleObj = null;\n\
- all = type.indexOf(\".\") < 0;\n\
- namespaces = [];\n\
-\n\
- if ( !all ) {\n\
- // Namespaced event handlers\n\
- namespaces = type.split(\".\");\n\
- type = namespaces.shift();\n\
-\n\
- namespace = new RegExp(\"(^|\\\\.)\" +\n\
- jQuery.map( namespaces.slice(0).sort(), fcleanup ).join(\"\\\\.(?:.*\\\\.)?\") + \"(\\\\.|$)\");\n\
- }\n\
-\n\
- eventType = events[ type ];\n\
-\n\
- if ( !eventType ) {\n\
- continue;\n\
- }\n\
-\n\
- if ( !handler ) {\n\
- for ( j = 0; j < eventType.length; j++ ) {\n\
- handleObj = eventType[ j ];\n\
-\n\
- if ( all || namespace.test( handleObj.namespace ) ) {\n\
- jQuery.event.remove( elem, origType, handleObj.handler, j );\n\
- eventType.splice( j--, 1 );\n\
- }\n\
- }\n\
-\n\
- continue;\n\
- }\n\
-\n\
- special = jQuery.event.special[ type ] || {};\n\
-\n\
- for ( j = pos || 0; j < eventType.length; j++ ) {\n\
- handleObj = eventType[ j ];\n\
-\n\
- if ( handler.guid === handleObj.guid ) {\n\
- // remove the given handler for the given type\n\
- if ( all || namespace.test( handleObj.namespace ) ) {\n\
- if ( pos == null ) {\n\
- eventType.splice( j--, 1 );\n\
- }\n\
-\n\
- if ( special.remove ) {\n\
- special.remove.call( elem, handleObj );\n\
- }\n\
- }\n\
-\n\
- if ( pos != null ) {\n\
- break;\n\
- }\n\
- }\n\
- }\n\
-\n\
- // remove generic event handler if no more handlers exist\n\
- if ( eventType.length === 0 || pos != null && eventType.length === 1 ) {\n\
- if ( !special.teardown || special.teardown.call( elem, namespaces ) === false ) {\n\
- jQuery.removeEvent( elem, type, elemData.handle );\n\
- }\n\
-\n\
- ret = null;\n\
- delete events[ type ];\n\
- }\n\
- }\n\
-\n\
- // Remove the expando if it's no longer used\n\
- if ( jQuery.isEmptyObject( events ) ) {\n\
- var handle = elemData.handle;\n\
- if ( handle ) {\n\
- handle.elem = null;\n\
- }\n\
-\n\
- delete elemData.events;\n\
- delete elemData.handle;\n\
-\n\
- if ( jQuery.isEmptyObject( elemData ) ) {\n\
- jQuery.removeData( elem, undefined, true );\n\
- }\n\
- }\n\
- },\n\
- \n\
- // Events that are safe to short-circuit if no handlers are attached.\n\
- // Native DOM events should not be added, they may have inline handlers.\n\
- customEvent: {\n\
- \"getData\": true,\n\
- \"setData\": true,\n\
- \"changeData\": true\n\
- },\n\
-\n\
- trigger: function( event, data, elem, onlyHandlers ) {\n\
- // Event object or event type\n\
- var type = event.type || event,\n\
- namespaces = [],\n\
- exclusive;\n\
-\n\
- if ( type.indexOf(\"!\") >= 0 ) {\n\
- // Exclusive events trigger only for the exact event (no namespaces)\n\
- type = type.slice(0, -1);\n\
- exclusive = true;\n\
- }\n\
-\n\
- if ( type.indexOf(\".\") >= 0 ) {\n\
- // Namespaced trigger; create a regexp to match event type in handle()\n\
- namespaces = type.split(\".\");\n\
- type = namespaces.shift();\n\
- namespaces.sort();\n\
- }\n\
-\n\
- if ( (!elem || jQuery.event.customEvent[ type ]) && !jQuery.event.global[ type ] ) {\n\
- // No jQuery handlers for this event type, and it can't have inline handlers\n\
- return;\n\
- }\n\
-\n\
- // Caller can pass in an Event, Object, or just an event type string\n\
- event = typeof event === \"object\" ?\n\
- // jQuery.Event object\n\
- event[ jQuery.expando ] ? event :\n\
- // Object literal\n\
- new jQuery.Event( type, event ) :\n\
- // Just the event type (string)\n\
- new jQuery.Event( type );\n\
-\n\
- event.type = type;\n\
- event.exclusive = exclusive;\n\
- event.namespace = namespaces.join(\".\");\n\
- event.namespace_re = new RegExp(\"(^|\\\\.)\" + namespaces.join(\"\\\\.(?:.*\\\\.)?\") + \"(\\\\.|$)\");\n\
- \n\
- // triggerHandler() and global events don't bubble or run the default action\n\
- if ( onlyHandlers || !elem ) {\n\
- event.preventDefault();\n\
- event.stopPropagation();\n\
- }\n\
-\n\
- // Handle a global trigger\n\
- if ( !elem ) {\n\
- // TODO: Stop taunting the data cache; remove global events and always attach to document\n\
- jQuery.each( jQuery.cache, function() {\n\
- // internalKey variable is just used to make it easier to find\n\
- // and potentially change this stuff later; currently it just\n\
- // points to jQuery.expando\n\
- var internalKey = jQuery.expando,\n\
- internalCache = this[ internalKey ];\n\
- if ( internalCache && internalCache.events && internalCache.events[ type ] ) {\n\
- jQuery.event.trigger( event, data, internalCache.handle.elem );\n\
- }\n\
- });\n\
- return;\n\
- }\n\
-\n\
- // Don't do events on text and comment nodes\n\
- if ( elem.nodeType === 3 || elem.nodeType === 8 ) {\n\
- return;\n\
- }\n\
-\n\
- // Clean up the event in case it is being reused\n\
- event.result = undefined;\n\
- event.target = elem;\n\
-\n\
- // Clone any incoming data and prepend the event, creating the handler arg list\n\
- data = data != null ? jQuery.makeArray( data ) : [];\n\
- data.unshift( event );\n\
-\n\
- var cur = elem,\n\
- // IE doesn't like method names with a colon (#3533, #8272)\n\
- ontype = type.indexOf(\":\") < 0 ? \"on\" + type : \"\";\n\
-\n\
- // Fire event on the current element, then bubble up the DOM tree\n\
- do {\n\
- var handle = jQuery._data( cur, \"handle\" );\n\
-\n\
- event.currentTarget = cur;\n\
- if ( handle ) {\n\
- handle.apply( cur, data );\n\
- }\n\
-\n\
- // Trigger an inline bound script\n\
- if ( ontype && jQuery.acceptData( cur ) && cur[ ontype ] && cur[ ontype ].apply( cur, data ) === false ) {\n\
- event.result = false;\n\
- event.preventDefault();\n\
- }\n\
-\n\
- // Bubble up to document, then to window\n\
- cur = cur.parentNode || cur.ownerDocument || cur === event.target.ownerDocument && window;\n\
- } while ( cur && !event.isPropagationStopped() );\n\
-\n\
- // If nobody prevented the default action, do it now\n\
- if ( !event.isDefaultPrevented() ) {\n\
- var old,\n\
- special = jQuery.event.special[ type ] || {};\n\
-\n\
- if ( (!special._default || special._default.call( elem.ownerDocument, event ) === false) &&\n\
- !(type === \"click\" && jQuery.nodeName( elem, \"a\" )) && jQuery.acceptData( elem ) ) {\n\
-\n\
- // Call a native DOM method on the target with the same name name as the event.\n\
- // Can't use an .isFunction)() check here because IE6/7 fails that test.\n\
- // IE<9 dies on focus to hidden element (#1486), may want to revisit a try/catch.\n\
- try {\n\
- if ( ontype && elem[ type ] ) {\n\
- // Don't re-trigger an onFOO event when we call its FOO() method\n\
- old = elem[ ontype ];\n\
-\n\
- if ( old ) {\n\
- elem[ ontype ] = null;\n\
- }\n\
-\n\
- jQuery.event.triggered = type;\n\
- elem[ type ]();\n\
- }\n\
- } catch ( ieError ) {}\n\
-\n\
- if ( old ) {\n\
- elem[ ontype ] = old;\n\
- }\n\
-\n\
- jQuery.event.triggered = undefined;\n\
- }\n\
- }\n\
- \n\
- return event.result;\n\
- },\n\
-\n\
- handle: function( event ) {\n\
- event = jQuery.event.fix( event || window.event );\n\
- // Snapshot the handlers list since a called handler may add/remove events.\n\
- var handlers = ((jQuery._data( this, \"events\" ) || {})[ event.type ] || []).slice(0),\n\
- run_all = !event.exclusive && !event.namespace,\n\
- args = Array.prototype.slice.call( arguments, 0 );\n\
-\n\
- // Use the fix-ed Event rather than the (read-only) native event\n\
- args[0] = event;\n\
- event.currentTarget = this;\n\
-\n\
- for ( var j = 0, l = handlers.length; j < l; j++ ) {\n\
- var handleObj = handlers[ j ];\n\
-\n\
- // Triggered event must 1) be non-exclusive and have no namespace, or\n\
- // 2) have namespace(s) a subset or equal to those in the bound event.\n\
- if ( run_all || event.namespace_re.test( handleObj.namespace ) ) {\n\
- // Pass in a reference to the handler function itself\n\
- // So that we can later remove it\n\
- event.handler = handleObj.handler;\n\
- event.data = handleObj.data;\n\
- event.handleObj = handleObj;\n\
-\n\
- var ret = handleObj.handler.apply( this, args );\n\
-\n\
- if ( ret !== undefined ) {\n\
- event.result = ret;\n\
- if ( ret === false ) {\n\
- event.preventDefault();\n\
- event.stopPropagation();\n\
- }\n\
- }\n\
-\n\
- if ( event.isImmediatePropagationStopped() ) {\n\
- break;\n\
- }\n\
- }\n\
- }\n\
- return event.result;\n\
- },\n\
-\n\
- props: \"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which\".split(\" \"),\n\
-\n\
- fix: function( event ) {\n\
- if ( event[ jQuery.expando ] ) {\n\
- return event;\n\
- }\n\
-\n\
- // store a copy of the original event object\n\
- // and \"clone\" to set read-only properties\n\
- var originalEvent = event;\n\
- event = jQuery.Event( originalEvent );\n\
-\n\
- for ( var i = this.props.length, prop; i; ) {\n\
- prop = this.props[ --i ];\n\
- event[ prop ] = originalEvent[ prop ];\n\
- }\n\
-\n\
- // Fix target property, if necessary\n\
- if ( !event.target ) {\n\
- // Fixes #1925 where srcElement might not be defined either\n\
- event.target = event.srcElement || document;\n\
- }\n\
-\n\
- // check if target is a textnode (safari)\n\
- if ( event.target.nodeType === 3 ) {\n\
- event.target = event.target.parentNode;\n\
- }\n\
-\n\
- // Add relatedTarget, if necessary\n\
- if ( !event.relatedTarget && event.fromElement ) {\n\
- event.relatedTarget = event.fromElement === event.target ? event.toElement : event.fromElement;\n\
- }\n\
-\n\
- // Calculate pageX/Y if missing and clientX/Y available\n\
- if ( event.pageX == null && event.clientX != null ) {\n\
- var eventDocument = event.target.ownerDocument || document,\n\
- doc = eventDocument.documentElement,\n\
- body = eventDocument.body;\n\
-\n\
- event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc && doc.clientLeft || body && body.clientLeft || 0);\n\
- event.pageY = event.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc && doc.clientTop || body && body.clientTop || 0);\n\
- }\n\
-\n\
- // Add which for key events\n\
- if ( event.which == null && (event.charCode != null || event.keyCode != null) ) {\n\
- event.which = event.charCode != null ? event.charCode : event.keyCode;\n\
- }\n\
-\n\
- // Add metaKey to non-Mac browsers (use ctrl for PC's and Meta for Macs)\n\
- if ( !event.metaKey && event.ctrlKey ) {\n\
- event.metaKey = event.ctrlKey;\n\
- }\n\
-\n\
- // Add which for click: 1 === left; 2 === middle; 3 === right\n\
- // Note: button is not normalized, so don't use it\n\
- if ( !event.which && event.button !== undefined ) {\n\
- event.which = (event.button & 1 ? 1 : ( event.button & 2 ? 3 : ( event.button & 4 ? 2 : 0 ) ));\n\
- }\n\
-\n\
- return event;\n\
- },\n\
-\n\
- // Deprecated, use jQuery.guid instead\n\
- guid: 1E8,\n\
-\n\
- // Deprecated, use jQuery.proxy instead\n\
- proxy: jQuery.proxy,\n\
-\n\
- special: {\n\
- ready: {\n\
- // Make sure the ready event is setup\n\
- setup: jQuery.bindReady,\n\
- teardown: jQuery.noop\n\
- },\n\
-\n\
- live: {\n\
- add: function( handleObj ) {\n\
- jQuery.event.add( this,\n\
- liveConvert( handleObj.origType, handleObj.selector ),\n\
- jQuery.extend({}, handleObj, {handler: liveHandler, guid: handleObj.handler.guid}) );\n\
- },\n\
-\n\
- remove: function( handleObj ) {\n\
- jQuery.event.remove( this, liveConvert( handleObj.origType, handleObj.selector ), handleObj );\n\
- }\n\
- },\n\
-\n\
- beforeunload: {\n\
- setup: function( data, namespaces, eventHandle ) {\n\
- // We only want to do this special case on windows\n\
- if ( jQuery.isWindow( this ) ) {\n\
- this.onbeforeunload = eventHandle;\n\
- }\n\
- },\n\
-\n\
- teardown: function( namespaces, eventHandle ) {\n\
- if ( this.onbeforeunload === eventHandle ) {\n\
- this.onbeforeunload = null;\n\
- }\n\
- }\n\
- }\n\
- }\n\
-};\n\
-\n\
-jQuery.removeEvent = document.removeEventListener ?\n\
- function( elem, type, handle ) {\n\
- if ( elem.removeEventListener ) {\n\
- elem.removeEventListener( type, handle, false );\n\
- }\n\
- } :\n\
- function( elem, type, handle ) {\n\
- if ( elem.detachEvent ) {\n\
- elem.detachEvent( \"on\" + type, handle );\n\
- }\n\
- };\n\
-\n\
-jQuery.Event = function( src, props ) {\n\
- // Allow instantiation without the 'new' keyword\n\
- if ( !this.preventDefault ) {\n\
- return new jQuery.Event( src, props );\n\
- }\n\
-\n\
- // Event object\n\
- if ( src && src.type ) {\n\
- this.originalEvent = src;\n\
- this.type = src.type;\n\
-\n\
- // Events bubbling up the document may have been marked as prevented\n\
- // by a handler lower down the tree; reflect the correct value.\n\
- this.isDefaultPrevented = (src.defaultPrevented || src.returnValue === false ||\n\
- src.getPreventDefault && src.getPreventDefault()) ? returnTrue : returnFalse;\n\
-\n\
- // Event type\n\
- } else {\n\
- this.type = src;\n\
- }\n\
-\n\
- // Put explicitly provided properties onto the event object\n\
- if ( props ) {\n\
- jQuery.extend( this, props );\n\
- }\n\
-\n\
- // timeStamp is buggy for some events on Firefox(#3843)\n\
- // So we won't rely on the native value\n\
- this.timeStamp = jQuery.now();\n\
-\n\
- // Mark it as fixed\n\
- this[ jQuery.expando ] = true;\n\
-};\n\
-\n\
-function returnFalse() {\n\
- return false;\n\
-}\n\
-function returnTrue() {\n\
- return true;\n\
-}\n\
-\n\
-// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding\n\
-// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html\n\
-jQuery.Event.prototype = {\n\
- preventDefault: function() {\n\
- this.isDefaultPrevented = returnTrue;\n\
-\n\
- var e = this.originalEvent;\n\
- if ( !e ) {\n\
- return;\n\
- }\n\
-\n\
- // if preventDefault exists run it on the original event\n\
- if ( e.preventDefault ) {\n\
- e.preventDefault();\n\
-\n\
- // otherwise set the returnValue property of the original event to false (IE)\n\
- } else {\n\
- e.returnValue = false;\n\
- }\n\
- },\n\
- stopPropagation: function() {\n\
- this.isPropagationStopped = returnTrue;\n\
-\n\
- var e = this.originalEvent;\n\
- if ( !e ) {\n\
- return;\n\
- }\n\
- // if stopPropagation exists run it on the original event\n\
- if ( e.stopPropagation ) {\n\
- e.stopPropagation();\n\
- }\n\
- // otherwise set the cancelBubble property of the original event to true (IE)\n\
- e.cancelBubble = true;\n\
- },\n\
- stopImmediatePropagation: function() {\n\
- this.isImmediatePropagationStopped = returnTrue;\n\
- this.stopPropagation();\n\
- },\n\
- isDefaultPrevented: returnFalse,\n\
- isPropagationStopped: returnFalse,\n\
- isImmediatePropagationStopped: returnFalse\n\
-};\n\
-\n\
-// Checks if an event happened on an element within another element\n\
-// Used in jQuery.event.special.mouseenter and mouseleave handlers\n\
-var withinElement = function( event ) {\n\
-\n\
- // Check if mouse(over|out) are still within the same parent element\n\
- var related = event.relatedTarget,\n\
- inside = false,\n\
- eventType = event.type;\n\
-\n\
- event.type = event.data;\n\
-\n\
- if ( related !== this ) {\n\
-\n\
- if ( related ) {\n\
- inside = jQuery.contains( this, related );\n\
- }\n\
-\n\
- if ( !inside ) {\n\
-\n\
- jQuery.event.handle.apply( this, arguments );\n\
-\n\
- event.type = eventType;\n\
- }\n\
- }\n\
-},\n\
-\n\
-// In case of event delegation, we only need to rename the event.type,\n\
-// liveHandler will take care of the rest.\n\
-delegate = function( event ) {\n\
- event.type = event.data;\n\
- jQuery.event.handle.apply( this, arguments );\n\
-};\n\
-\n\
-// Create mouseenter and mouseleave events\n\
-jQuery.each({\n\
- mouseenter: \"mouseover\",\n\
- mouseleave: \"mouseout\"\n\
-}, function( orig, fix ) {\n\
- jQuery.event.special[ orig ] = {\n\
- setup: function( data ) {\n\
- jQuery.event.add( this, fix, data && data.selector ? delegate : withinElement, orig );\n\
- },\n\
- teardown: function( data ) {\n\
- jQuery.event.remove( this, fix, data && data.selector ? delegate : withinElement );\n\
- }\n\
- };\n\
-});\n\
-\n\
-// submit delegation\n\
-if ( !jQuery.support.submitBubbles ) {\n\
-\n\
- jQuery.event.special.submit = {\n\
- setup: function( data, namespaces ) {\n\
- if ( !jQuery.nodeName( this, \"form\" ) ) {\n\
- jQuery.event.add(this, \"click.specialSubmit\", function( e ) {\n\
- // Avoid triggering error on non-existent type attribute in IE VML (#7071)\n\
- var elem = e.target,\n\
- type = jQuery.nodeName( elem, \"input\" ) || jQuery.nodeName( elem, \"button\" ) ? elem.type : \"\";\n\
-\n\
- if ( (type === \"submit\" || type === \"image\") && jQuery( elem ).closest(\"form\").length ) {\n\
- trigger( \"submit\", this, arguments );\n\
- }\n\
- });\n\
-\n\
- jQuery.event.add(this, \"keypress.specialSubmit\", function( e ) {\n\
- var elem = e.target,\n\
- type = jQuery.nodeName( elem, \"input\" ) || jQuery.nodeName( elem, \"button\" ) ? elem.type : \"\";\n\
-\n\
- if ( (type === \"text\" || type === \"password\") && jQuery( elem ).closest(\"form\").length && e.keyCode === 13 ) {\n\
- trigger( \"submit\", this, arguments );\n\
- }\n\
- });\n\
-\n\
- } else {\n\
- return false;\n\
- }\n\
- },\n\
-\n\
- teardown: function( namespaces ) {\n\
- jQuery.event.remove( this, \".specialSubmit\" );\n\
- }\n\
- };\n\
-\n\
-}\n\
-\n\
-// change delegation, happens here so we have bind.\n\
-if ( !jQuery.support.changeBubbles ) {\n\
-\n\
- var changeFilters,\n\
-\n\
- getVal = function( elem ) {\n\
- var type = jQuery.nodeName( elem, \"input\" ) ? elem.type : \"\",\n\
- val = elem.value;\n\
-\n\
- if ( type === \"radio\" || type === \"checkbox\" ) {\n\
- val = elem.checked;\n\
-\n\
- } else if ( type === \"select-multiple\" ) {\n\
- val = elem.selectedIndex > -1 ?\n\
- jQuery.map( elem.options, function( elem ) {\n\
- return elem.selected;\n\
- }).join(\"-\") :\n\
- \"\";\n\
-\n\
- } else if ( jQuery.nodeName( elem, \"select\" ) ) {\n\
- val = elem.selectedIndex;\n\
- }\n\
-\n\
- return val;\n\
- },\n\
-\n\
- testChange = function testChange( e ) {\n\
- var elem = e.target, data, val;\n\
-\n\
- if ( !rformElems.test( elem.nodeName ) || elem.readOnly ) {\n\
- return;\n\
- }\n\
-\n\
- data = jQuery._data( elem, \"_change_data\" );\n\
- val = getVal(elem);\n\
-\n\
- // the current data will be also retrieved by beforeactivate\n\
- if ( e.type !== \"focusout\" || elem.type !== \"radio\" ) {\n\
- jQuery._data( elem, \"_change_data\", val );\n\
- }\n\
-\n\
- if ( data === undefined || val === data ) {\n\
- return;\n\
- }\n\
-\n\
- if ( data != null || val ) {\n\
- e.type = \"change\";\n\
- e.liveFired = undefined;\n\
- jQuery.event.trigger( e, arguments[1], elem );\n\
- }\n\
- };\n\
-\n\
- jQuery.event.special.change = {\n\
- filters: {\n\
- focusout: testChange,\n\
-\n\
- beforedeactivate: testChange,\n\
-\n\
- click: function( e ) {\n\
- var elem = e.target, type = jQuery.nodeName( elem, \"input\" ) ? elem.type : \"\";\n\
-\n\
- if ( type === \"radio\" || type === \"checkbox\" || jQuery.nodeName( elem, \"select\" ) ) {\n\
- testChange.call( this, e );\n\
- }\n\
- },\n\
-\n\
- // Change has to be called before submit\n\
- // Keydown will be called before keypress, which is used in submit-event delegation\n\
- keydown: function( e ) {\n\
- var elem = e.target, type = jQuery.nodeName( elem, \"input\" ) ? elem.type : \"\";\n\
-\n\
- if ( (e.keyCode === 13 && !jQuery.nodeName( elem, \"textarea\" ) ) ||\n\
- (e.keyCode === 32 && (type === \"checkbox\" || type === \"radio\")) ||\n\
- type === \"select-multiple\" ) {\n\
- testChange.call( this, e );\n\
- }\n\
- },\n\
-\n\
- // Beforeactivate happens also before the previous element is blurred\n\
- // with this event you can't trigger a change event, but you can store\n\
- // information\n\
- beforeactivate: function( e ) {\n\
- var elem = e.target;\n\
- jQuery._data( elem, \"_change_data\", getVal(elem) );\n\
- }\n\
- },\n\
-\n\
- setup: function( data, namespaces ) {\n\
- if ( this.type === \"file\" ) {\n\
- return false;\n\
- }\n\
-\n\
- for ( var type in changeFilters ) {\n\
- jQuery.event.add( this, type + \".specialChange\", changeFilters[type] );\n\
- }\n\
-\n\
- return rformElems.test( this.nodeName );\n\
- },\n\
-\n\
- teardown: function( namespaces ) {\n\
- jQuery.event.remove( this, \".specialChange\" );\n\
-\n\
- return rformElems.test( this.nodeName );\n\
- }\n\
- };\n\
-\n\
- changeFilters = jQuery.event.special.change.filters;\n\
-\n\
- // Handle when the input is .focus()'d\n\
- changeFilters.focus = changeFilters.beforeactivate;\n\
-}\n\
-\n\
-function trigger( type, elem, args ) {\n\
- // Piggyback on a donor event to simulate a different one.\n\
- // Fake originalEvent to avoid donor's stopPropagation, but if the\n\
- // simulated event prevents default then we do the same on the donor.\n\
- // Don't pass args or remember liveFired; they apply to the donor event.\n\
- var event = jQuery.extend( {}, args[ 0 ] );\n\
- event.type = type;\n\
- event.originalEvent = {};\n\
- event.liveFired = undefined;\n\
- jQuery.event.handle.call( elem, event );\n\
- if ( event.isDefaultPrevented() ) {\n\
- args[ 0 ].preventDefault();\n\
- }\n\
-}\n\
-\n\
-// Create \"bubbling\" focus and blur events\n\
-if ( !jQuery.support.focusinBubbles ) {\n\
- jQuery.each({ focus: \"focusin\", blur: \"focusout\" }, function( orig, fix ) {\n\
-\n\
- // Attach a single capturing handler while someone wants focusin/focusout\n\
- var attaches = 0;\n\
-\n\
- jQuery.event.special[ fix ] = {\n\
- setup: function() {\n\
- if ( attaches++ === 0 ) {\n\
- document.addEventListener( orig, handler, true );\n\
- }\n\
- },\n\
- teardown: function() {\n\
- if ( --attaches === 0 ) {\n\
- document.removeEventListener( orig, handler, true );\n\
- }\n\
- }\n\
- };\n\
-\n\
- function handler( donor ) {\n\
- // Donor event is always a native one; fix it and switch its type.\n\
- // Let focusin/out handler cancel the donor focus/blur event.\n\
- var e = jQuery.event.fix( donor );\n\
- e.type = fix;\n\
- e.originalEvent = {};\n\
- jQuery.event.trigger( e, null, e.target );\n\
- if ( e.isDefaultPrevented() ) {\n\
- donor.preventDefault();\n\
- }\n\
- }\n\
- });\n\
-}\n\
-\n\
-jQuery.each([\"bind\", \"one\"], function( i, name ) {\n\
- jQuery.fn[ name ] = function( type, data, fn ) {\n\
- var handler;\n\
-\n\
- // Handle object literals\n\
- if ( typeof type === \"object\" ) {\n\
- for ( var key in type ) {\n\
- this[ name ](key, data, type[key], fn);\n\
- }\n\
- return this;\n\
- }\n\
-\n\
- if ( arguments.length === 2 || data === false ) {\n\
- fn = data;\n\
- data = undefined;\n\
- }\n\
-\n\
- if ( name === \"one\" ) {\n\
- handler = function( event ) {\n\
- jQuery( this ).unbind( event, handler );\n\
- return fn.apply( this, arguments );\n\
- };\n\
- handler.guid = fn.guid || jQuery.guid++;\n\
- } else {\n\
- handler = fn;\n\
- }\n\
-\n\
- if ( type === \"unload\" && name !== \"one\" ) {\n\
- this.one( type, data, fn );\n\
-\n\
- } else {\n\
- for ( var i = 0, l = this.length; i < l; i++ ) {\n\
- jQuery.event.add( this[i], type, handler, data );\n\
- }\n\
- }\n\
-\n\
- return this;\n\
- };\n\
-});\n\
-\n\
-jQuery.fn.extend({\n\
- unbind: function( type, fn ) {\n\
- // Handle object literals\n\
- if ( typeof type === \"object\" && !type.preventDefault ) {\n\
- for ( var key in type ) {\n\
- this.unbind(key, type[key]);\n\
- }\n\
-\n\
- } else {\n\
- for ( var i = 0, l = this.length; i < l; i++ ) {\n\
- jQuery.event.remove( this[i], type, fn );\n\
- }\n\
- }\n\
-\n\
- return this;\n\
- },\n\
-\n\
- delegate: function( selector, types, data, fn ) {\n\
- return this.live( types, data, fn, selector );\n\
- },\n\
-\n\
- undelegate: function( selector, types, fn ) {\n\
- if ( arguments.length === 0 ) {\n\
- return this.unbind( \"live\" );\n\
-\n\
- } else {\n\
- return this.die( types, null, fn, selector );\n\
- }\n\
- },\n\
-\n\
- trigger: function( type, data ) {\n\
- return this.each(function() {\n\
- jQuery.event.trigger( type, data, this );\n\
- });\n\
- },\n\
-\n\
- triggerHandler: function( type, data ) {\n\
- if ( this[0] ) {\n\
- return jQuery.event.trigger( type, data, this[0], true );\n\
- }\n\
- },\n\
-\n\
- toggle: function( fn ) {\n\
- // Save reference to arguments for access in closure\n\
- var args = arguments,\n\
- guid = fn.guid || jQuery.guid++,\n\
- i = 0,\n\
- toggler = function( event ) {\n\
- // Figure out which function to execute\n\
- var lastToggle = ( jQuery.data( this, \"lastToggle\" + fn.guid ) || 0 ) % i;\n\
- jQuery.data( this, \"lastToggle\" + fn.guid, lastToggle + 1 );\n\
-\n\
- // Make sure that clicks stop\n\
- event.preventDefault();\n\
-\n\
- // and execute the function\n\
- return args[ lastToggle ].apply( this, arguments ) || false;\n\
- };\n\
-\n\
- // link all the functions, so any of them can unbind this click handler\n\
- toggler.guid = guid;\n\
- while ( i < args.length ) {\n\
- args[ i++ ].guid = guid;\n\
- }\n\
-\n\
- return this.click( toggler );\n\
- },\n\
-\n\
- hover: function( fnOver, fnOut ) {\n\
- return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );\n\
- }\n\
-});\n\
-\n\
-var liveMap = {\n\
- focus: \"focusin\",\n\
- blur: \"focusout\",\n\
- mouseenter: \"mouseover\",\n\
- mouseleave: \"mouseout\"\n\
-};\n\
-\n\
-jQuery.each([\"live\", \"die\"], function( i, name ) {\n\
- jQuery.fn[ name ] = function( types, data, fn, origSelector /* Internal Use Only */ ) {\n\
- var type, i = 0, match, namespaces, preType,\n\
- selector = origSelector || this.selector,\n\
- context = origSelector ? this : jQuery( this.context );\n\
-\n\
- if ( typeof types === \"object\" && !types.preventDefault ) {\n\
- for ( var key in types ) {\n\
- context[ name ]( key, data, types[key], selector );\n\
- }\n\
-\n\
- return this;\n\
- }\n\
-\n\
- if ( name === \"die\" && !types &&\n\
- origSelector && origSelector.charAt(0) === \".\" ) {\n\
-\n\
- context.unbind( origSelector );\n\
-\n\
- return this;\n\
- }\n\
-\n\
- if ( data === false || jQuery.isFunction( data ) ) {\n\
- fn = data || returnFalse;\n\
- data = undefined;\n\
- }\n\
-\n\
- types = (types || \"\").split(\" \");\n\
-\n\
- while ( (type = types[ i++ ]) != null ) {\n\
- match = rnamespaces.exec( type );\n\
- namespaces = \"\";\n\
-\n\
- if ( match ) {\n\
- namespaces = match[0];\n\
- type = type.replace( rnamespaces, \"\" );\n\
- }\n\
-\n\
- if ( type === \"hover\" ) {\n\
- types.push( \"mouseenter\" + namespaces, \"mouseleave\" + namespaces );\n\
- continue;\n\
- }\n\
-\n\
- preType = type;\n\
-\n\
- if ( liveMap[ type ] ) {\n\
- types.push( liveMap[ type ] + namespaces );\n\
- type = type + namespaces;\n\
-\n\
- } else {\n\
- type = (liveMap[ type ] || type) + namespaces;\n\
- }\n\
-\n\
- if ( name === \"live\" ) {\n\
- // bind live handler\n\
- for ( var j = 0, l = context.length; j < l; j++ ) {\n\
- jQuery.event.add( context[j], \"live.\" + liveConvert( type, selector ),\n\
- { data: data, selector: selector, handler: fn, origType: type, origHandler: fn, preType: preType } );\n\
- }\n\
-\n\
- } else {\n\
- // unbind live handler\n\
- context.unbind( \"live.\" + liveConvert( type, selector ), fn );\n\
- }\n\
- }\n\
-\n\
- return this;\n\
- };\n\
-});\n\
-\n\
-function liveHandler( event ) {\n\
- var stop, maxLevel, related, match, handleObj, elem, j, i, l, data, close, namespace, ret,\n\
- elems = [],\n\
- selectors = [],\n\
- events = jQuery._data( this, \"events\" );\n\
-\n\
- // Make sure we avoid non-left-click bubbling in Firefox (#3861) and disabled elements in IE (#6911)\n\
- if ( event.liveFired === this || !events || !events.live || event.target.disabled || event.button && event.type === \"click\" ) {\n\
- return;\n\
- }\n\
-\n\
- if ( event.namespace ) {\n\
- namespace = new RegExp(\"(^|\\\\.)\" + event.namespace.split(\".\").join(\"\\\\.(?:.*\\\\.)?\") + \"(\\\\.|$)\");\n\
- }\n\
-\n\
- event.liveFired = this;\n\
-\n\
- var live = events.live.slice(0);\n\
-\n\
- for ( j = 0; j < live.length; j++ ) {\n\
- handleObj = live[j];\n\
-\n\
- if ( handleObj.origType.replace( rnamespaces, \"\" ) === event.type ) {\n\
- selectors.push( handleObj.selector );\n\
-\n\
- } else {\n\
- live.splice( j--, 1 );\n\
- }\n\
- }\n\
-\n\
- match = jQuery( event.target ).closest( selectors, event.currentTarget );\n\
-\n\
- for ( i = 0, l = match.length; i < l; i++ ) {\n\
- close = match[i];\n\
-\n\
- for ( j = 0; j < live.length; j++ ) {\n\
- handleObj = live[j];\n\
-\n\
- if ( close.selector === handleObj.selector && (!namespace || namespace.test( handleObj.namespace )) && !close.elem.disabled ) {\n\
- elem = close.elem;\n\
- related = null;\n\
-\n\
- // Those two events require additional checking\n\
- if ( handleObj.preType === \"mouseenter\" || handleObj.preType === \"mouseleave\" ) {\n\
- event.type = handleObj.preType;\n\
- related = jQuery( event.relatedTarget ).closest( handleObj.selector )[0];\n\
-\n\
- // Make sure not to accidentally match a child element with the same selector\n\
- if ( related && jQuery.contains( elem, related ) ) {\n\
- related = elem;\n\
- }\n\
- }\n\
-\n\
- if ( !related || related !== elem ) {\n\
- elems.push({ elem: elem, handleObj: handleObj, level: close.level });\n\
- }\n\
- }\n\
- }\n\
- }\n\
-\n\
- for ( i = 0, l = elems.length; i < l; i++ ) {\n\
- match = elems[i];\n\
-\n\
- if ( maxLevel && match.level > maxLevel ) {\n\
- break;\n\
- }\n\
-\n\
- event.currentTarget = match.elem;\n\
- event.data = match.handleObj.data;\n\
- event.handleObj = match.handleObj;\n\
-\n\
- ret = match.handleObj.origHandler.apply( match.elem, arguments );\n\
-\n\
- if ( ret === false || event.isPropagationStopped() ) {\n\
- maxLevel = match.level;\n\
-\n\
- if ( ret === false ) {\n\
- stop = false;\n\
- }\n\
- if ( event.isImmediatePropagationStopped() ) {\n\
- break;\n\
- }\n\
- }\n\
- }\n\
-\n\
- return stop;\n\
-}\n\
-\n\
-function liveConvert( type, selector ) {\n\
- return (type && type !== \"*\" ? type + \".\" : \"\") + selector.replace(rperiod, \"`\").replace(rspaces, \"&\");\n\
-}\n\
-\n\
-jQuery.each( (\"blur focus focusin focusout load resize scroll unload click dblclick \" +\n\
- \"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave \" +\n\
- \"change select submit keydown keypress keyup error\").split(\" \"), function( i, name ) {\n\
-\n\
- // Handle event binding\n\
- jQuery.fn[ name ] = function( data, fn ) {\n\
- if ( fn == null ) {\n\
- fn = data;\n\
- data = null;\n\
- }\n\
-\n\
- return arguments.length > 0 ?\n\
- this.bind( name, data, fn ) :\n\
- this.trigger( name );\n\
- };\n\
-\n\
- if ( jQuery.attrFn ) {\n\
- jQuery.attrFn[ name ] = true;\n\
- }\n\
-});\n\
-\n\
-\n\
-\n\
+var Sizzle =\n\
/*!\n\
- * Sizzle CSS Selector Engine\n\
- * Copyright 2011, The Dojo Foundation\n\
- * Released under the MIT, BSD, and GPL Licenses.\n\
- * More information: http://sizzlejs.com/\n\
+ * Sizzle CSS Selector Engine v1.10.19\n\
+ * http://sizzlejs.com/\n\
+ *\n\
+ * Copyright 2013 jQuery Foundation, Inc. and other contributors\n\
+ * Released under the MIT license\n\
+ * http://jquery.org/license\n\
+ *\n\
+ * Date: 2014-04-18\n\
*/\n\
-(function(){\n\
+(function( window ) {\n\
\n\
-var chunker = /((?:\\((?:\\([^()]+\\)|[^()]+)+\\)|\\[(?:\\[[^\\[\\]]*\\]|['\"][^'\"]*['\"]|[^\\[\\]'\"]+)+\\]|\\\\.|[^ >+~,(\\[\\\\]+)+|[>+~])(\\s*,\\s*)?((?:.|\\r|\\n)*)/g,\n\
- done = 0,\n\
- toString = Object.prototype.toString,\n\
- hasDuplicate = false,\n\
- baseHasDuplicate = true,\n\
- rBackslash = /\\\\/g,\n\
- rNonWord = /\\W/;\n\
+var i,\n\
+\tsupport,\n\
+\tExpr,\n\
+\tgetText,\n\
+\tisXML,\n\
+\ttokenize,\n\
+\tcompile,\n\
+\tselect,\n\
+\toutermostContext,\n\
+\tsortInput,\n\
+\thasDuplicate,\n\
\n\
-// Here we check if the JavaScript engine is using some sort of\n\
-// optimization where it does not always call our comparision\n\
-// function. If that is the case, discard the hasDuplicate value.\n\
-// Thus far that includes Google Chrome.\n\
-[0, 0].sort(function() {\n\
- baseHasDuplicate = false;\n\
- return 0;\n\
-});\n\
+\t// Local document vars\n\
+\tsetDocument,\n\
+\tdocument,\n\
+\tdocElem,\n\
+\tdocumentIsHTML,\n\
+\trbuggyQSA,\n\
+\trbuggyMatches,\n\
+\tmatches,\n\
+\tcontains,\n\
\n\
-var Sizzle = function( selector, context, results, seed ) {\n\
- results = results || [];\n\
- context = context || document;\n\
+\t// Instance-specific data\n\
+\texpando = \"sizzle\" + -(new Date()),\n\
+\tpreferredDoc = window.document,\n\
+\tdirruns = 0,\n\
+\tdone = 0,\n\
+\tclassCache = createCache(),\n\
+\ttokenCache = createCache(),\n\
+\tcompilerCache = createCache(),\n\
+\tsortOrder = function( a, b ) {\n\
+\t\tif ( a === b ) {\n\
+\t\t\thasDuplicate = true;\n\
+\t\t}\n\
+\t\treturn 0;\n\
+\t},\n\
\n\
- var origContext = context;\n\
+\t// General-purpose constants\n\
+\tstrundefined = typeof undefined,\n\
+\tMAX_NEGATIVE = 1 << 31,\n\
\n\
- if ( context.nodeType !== 1 && context.nodeType !== 9 ) {\n\
- return [];\n\
- }\n\
- \n\
- if ( !selector || typeof selector !== \"string\" ) {\n\
- return results;\n\
- }\n\
+\t// Instance methods\n\
+\thasOwn = ({}).hasOwnProperty,\n\
+\tarr = [],\n\
+\tpop = arr.pop,\n\
+\tpush_native = arr.push,\n\
+\tpush = arr.push,\n\
+\tslice = arr.slice,\n\
+\t// Use a stripped-down indexOf if we can't use a native one\n\
+\tindexOf = arr.indexOf || function( elem ) {\n\
+\t\tvar i = 0,\n\
+\t\t\tlen = this.length;\n\
+\t\tfor ( ; i < len; i++ ) {\n\
+\t\t\tif ( this[i] === elem ) {\n\
+\t\t\t\treturn i;\n\
+\t\t\t}\n\
+\t\t}\n\
+\t\treturn -1;\n\
+\t},\n\
\n\
- var m, set, checkSet, extra, ret, cur, pop, i,\n\
- prune = true,\n\
- contextXML = Sizzle.isXML( context ),\n\
- parts = [],\n\
- soFar = selector;\n\
- \n\
- // Reset the position of the chunker regexp (start from head)\n\
- do {\n\
- chunker.exec( \"\" );\n\
- m = chunker.exec( soFar );\n\
+\tbooleans = \"checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped\",\n\
\n\
- if ( m ) {\n\
- soFar = m[3];\n\
- \n\
- parts.push( m[1] );\n\
- \n\
- if ( m[2] ) {\n\
- extra = m[3];\n\
- break;\n\
- }\n\
- }\n\
- } while ( m );\n\
+\t// Regular expressions\n\
\n\
- if ( parts.length > 1 && origPOS.exec( selector ) ) {\n\
+\t// Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace\n\
+\twhitespace = \"[\\\\x20\\\\t\\\\r\\\\n\
+\\\\f]\",\n\
+\t// http://www.w3.org/TR/css3-syntax/#characters\n\
+\tcharacterEncoding = \"(?:\\\\\\\\.|[\\\\w-]|[^\\\\x00-\\\\xa0])+\",\n\
\n\
- if ( parts.length === 2 && Expr.relative[ parts[0] ] ) {\n\
- set = posProcess( parts[0] + parts[1], context );\n\
+\t// Loosely modeled on CSS identifier characters\n\
+\t// An unquoted value should be a CSS identifier http://www.w3.org/TR/css3-selectors/#attribute-selectors\n\
+\t// Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier\n\
+\tidentifier = characterEncoding.replace( \"w\", \"w#\" ),\n\
\n\
- } else {\n\
- set = Expr.relative[ parts[0] ] ?\n\
- [ context ] :\n\
- Sizzle( parts.shift(), context );\n\
+\t// Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors\n\
+\tattributes = \"\\\\[\" + whitespace + \"*(\" + characterEncoding + \")(?:\" + whitespace +\n\
+\t\t// Operator (capture 2)\n\
+\t\t\"*([*^$|!~]?=)\" + whitespace +\n\
+\t\t// \"Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]\"\n\
+\t\t\"*(?:'((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\"|(\" + identifier + \"))|)\" + whitespace +\n\
+\t\t\"*\\\\]\",\n\
\n\
- while ( parts.length ) {\n\
- selector = parts.shift();\n\
+\tpseudos = \":(\" + characterEncoding + \")(?:\\\\((\" +\n\
+\t\t// To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:\n\
+\t\t// 1. quoted (capture 3; capture 4 or capture 5)\n\
+\t\t\"('((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\")|\" +\n\
+\t\t// 2. simple (capture 6)\n\
+\t\t\"((?:\\\\\\\\.|[^\\\\\\\\()[\\\\]]|\" + attributes + \")*)|\" +\n\
+\t\t// 3. anything else (capture 2)\n\
+\t\t\".*\" +\n\
+\t\t\")\\\\)|)\",\n\
\n\
- if ( Expr.relative[ selector ] ) {\n\
- selector += parts.shift();\n\
- }\n\
- \n\
- set = posProcess( selector, set );\n\
- }\n\
- }\n\
+\t// Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter\n\
+\trtrim = new RegExp( \"^\" + whitespace + \"+|((?:^|[^\\\\\\\\])(?:\\\\\\\\.)*)\" + whitespace + \"+$\", \"g\" ),\n\
\n\
- } else {\n\
- // Take a shortcut and set the context if the root selector is an ID\n\
- // (but not if it'll be faster if the inner selector is an ID)\n\
- if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML &&\n\
- Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {\n\
+\trcomma = new RegExp( \"^\" + whitespace + \"*,\" + whitespace + \"*\" ),\n\
+\trcombinators = new RegExp( \"^\" + whitespace + \"*([>+~]|\" + whitespace + \")\" + whitespace + \"*\" ),\n\
\n\
- ret = Sizzle.find( parts.shift(), context, contextXML );\n\
- context = ret.expr ?\n\
- Sizzle.filter( ret.expr, ret.set )[0] :\n\
- ret.set[0];\n\
- }\n\
+\trattributeQuotes = new RegExp( \"=\" + whitespace + \"*([^\\\\]'\\\"]*?)\" + whitespace + \"*\\\\]\", \"g\" ),\n\
\n\
- if ( context ) {\n\
- ret = seed ?\n\
- { expr: parts.pop(), set: makeArray(seed) } :\n\
- Sizzle.find( parts.pop(), parts.length === 1 && (parts[0] === \"~\" || parts[0] === \"+\") && context.parentNode ? context.parentNode : context, contextXML );\n\
+\trpseudo = new RegExp( pseudos ),\n\
+\tridentifier = new RegExp( \"^\" + identifier + \"$\" ),\n\
\n\
- set = ret.expr ?\n\
- Sizzle.filter( ret.expr, ret.set ) :\n\
- ret.set;\n\
+\tmatchExpr = {\n\
+\t\t\"ID\": new RegExp( \"^#(\" + characterEncoding + \")\" ),\n\
+\t\t\"CLASS\": new RegExp( \"^\\\\.(\" + characterEncoding + \")\" ),\n\
+\t\t\"TAG\": new RegExp( \"^(\" + characterEncoding.replace( \"w\", \"w*\" ) + \")\" ),\n\
+\t\t\"ATTR\": new RegExp( \"^\" + attributes ),\n\
+\t\t\"PSEUDO\": new RegExp( \"^\" + pseudos ),\n\
+\t\t\"CHILD\": new RegExp( \"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\\\(\" + whitespace +\n\
+\t\t\t\"*(even|odd|(([+-]|)(\\\\d*)n|)\" + whitespace + \"*(?:([+-]|)\" + whitespace +\n\
+\t\t\t\"*(\\\\d+)|))\" + whitespace + \"*\\\\)|)\", \"i\" ),\n\
+\t\t\"bool\": new RegExp( \"^(?:\" + booleans + \")$\", \"i\" ),\n\
+\t\t// For use in libraries implementing .is()\n\
+\t\t// We use this for POS matching in `select`\n\
+\t\t\"needsContext\": new RegExp( \"^\" + whitespace + \"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\\\(\" +\n\
+\t\t\twhitespace + \"*((?:-\\\\d)?\\\\d*)\" + whitespace + \"*\\\\)|)(?=[^-]|$)\", \"i\" )\n\
+\t},\n\
\n\
- if ( parts.length > 0 ) {\n\
- checkSet = makeArray( set );\n\
+\trinputs = /^(?:input|select|textarea|button)$/i,\n\
+\trheader = /^h\\d$/i,\n\
\n\
- } else {\n\
- prune = false;\n\
- }\n\
+\trnative = /^[^{]+\\{\\s*\\[native \\w/,\n\
\n\
- while ( parts.length ) {\n\
- cur = parts.pop();\n\
- pop = cur;\n\
+\t// Easily-parseable/retrievable ID or TAG or CLASS selectors\n\
+\trquickExpr = /^(?:#([\\w-]+)|(\\w+)|\\.([\\w-]+))$/,\n\
\n\
- if ( !Expr.relative[ cur ] ) {\n\
- cur = \"\";\n\
- } else {\n\
- pop = parts.pop();\n\
- }\n\
+\trsibling = /[+~]/,\n\
+\trescape = /'|\\\\/g,\n\
\n\
- if ( pop == null ) {\n\
- pop = context;\n\
- }\n\
+\t// CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters\n\
+\trunescape = new RegExp( \"\\\\\\\\([\\\\da-f]{1,6}\" + whitespace + \"?|(\" + whitespace + \")|.)\", \"ig\" ),\n\
+\tfunescape = function( _, escaped, escapedWhitespace ) {\n\
+\t\tvar high = \"0x\" + escaped - 0x10000;\n\
+\t\t// NaN means non-codepoint\n\
+\t\t// Support: Firefox<24\n\
+\t\t// Workaround erroneous numeric interpretation of +\"0x\"\n\
+\t\treturn high !== high || escapedWhitespace ?\n\
+\t\t\tescaped :\n\
+\t\t\thigh < 0 ?\n\
+\t\t\t\t// BMP codepoint\n\
+\t\t\t\tString.fromCharCode( high + 0x10000 ) :\n\
+\t\t\t\t// Supplemental Plane codepoint (surrogate pair)\n\
+\t\t\t\tString.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );\n\
+\t};\n\
\n\
- Expr.relative[ cur ]( checkSet, pop, contextXML );\n\
- }\n\
+// Optimize for push.apply( _, NodeList )\n\
+try {\n\
+\tpush.apply(\n\
+\t\t(arr = slice.call( preferredDoc.childNodes )),\n\
+\t\tpreferredDoc.childNodes\n\
+\t);\n\
+\t// Support: Android<4.0\n\
+\t// Detect silently failing push.apply\n\
+\tarr[ preferredDoc.childNodes.length ].nodeType;\n\
+} catch ( e ) {\n\
+\tpush = { apply: arr.length ?\n\
\n\
- } else {\n\
- checkSet = parts = [];\n\
- }\n\
- }\n\
+\t\t// Leverage slice if possible\n\
+\t\tfunction( target, els ) {\n\
+\t\t\tpush_native.apply( target, slice.call(els) );\n\
+\t\t} :\n\
\n\
- if ( !checkSet ) {\n\
- checkSet = set;\n\
- }\n\
+\t\t// Support: IE<9\n\
+\t\t// Otherwise append directly\n\
+\t\tfunction( target, els ) {\n\
+\t\t\tvar j = target.length,\n\
+\t\t\t\ti = 0;\n\
+\t\t\t// Can't trust NodeList.length\n\
+\t\t\twhile ( (target[j++] = els[i++]) ) {}\n\
+\t\t\ttarget.length = j - 1;\n\
+\t\t}\n\
+\t};\n\
+}\n\
\n\
- if ( !checkSet ) {\n\
- Sizzle.error( cur || selector );\n\
- }\n\
+function Sizzle( selector, context, results, seed ) {\n\
+\tvar match, elem, m, nodeType,\n\
+\t\t// QSA vars\n\
+\t\ti, groups, old, nid, newContext, newSelector;\n\
\n\
- if ( toString.call(checkSet) === \"[object Array]\" ) {\n\
- if ( !prune ) {\n\
- results.push.apply( results, checkSet );\n\
+\tif ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) {\n\
+\t\tsetDocument( context );\n\
+\t}\n\
\n\
- } else if ( context && context.nodeType === 1 ) {\n\
- for ( i = 0; checkSet[i] != null; i++ ) {\n\
- if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && Sizzle.contains(context, checkSet[i])) ) {\n\
- results.push( set[i] );\n\
- }\n\
- }\n\
+\tcontext = context || document;\n\
+\tresults = results || [];\n\
\n\
- } else {\n\
- for ( i = 0; checkSet[i] != null; i++ ) {\n\
- if ( checkSet[i] && checkSet[i].nodeType === 1 ) {\n\
- results.push( set[i] );\n\
- }\n\
- }\n\
- }\n\
+\tif ( !selector || typeof selector !== \"string\" ) {\n\
+\t\treturn results;\n\
+\t}\n\
\n\
- } else {\n\
- makeArray( checkSet, results );\n\
- }\n\
+\tif ( (nodeType = context.nodeType) !== 1 && nodeType !== 9 ) {\n\
+\t\treturn [];\n\
+\t}\n\
\n\
- if ( extra ) {\n\
- Sizzle( extra, origContext, results, seed );\n\
- Sizzle.uniqueSort( results );\n\
- }\n\
+\tif ( documentIsHTML && !seed ) {\n\
\n\
- return results;\n\
+\t\t// Shortcuts\n\
+\t\tif ( (match = rquickExpr.exec( selector )) ) {\n\
+\t\t\t// Speed-up: Sizzle(\"#ID\")\n\
+\t\t\tif ( (m = match[1]) ) {\n\
+\t\t\t\tif ( nodeType === 9 ) {\n\
+\t\t\t\t\telem = context.getElementById( m );\n\
+\t\t\t\t\t// Check parentNode to catch when Blackberry 4.6 returns\n\
+\t\t\t\t\t// nodes that are no longer in the document (jQuery #6963)\n\
+\t\t\t\t\tif ( elem && elem.parentNode ) {\n\
+\t\t\t\t\t\t// Handle the case where IE, Opera, and Webkit return items\n\
+\t\t\t\t\t\t// by name instead of ID\n\
+\t\t\t\t\t\tif ( elem.id === m ) {\n\
+\t\t\t\t\t\t\tresults.push( elem );\n\
+\t\t\t\t\t\t\treturn results;\n\
+\t\t\t\t\t\t}\n\
+\t\t\t\t\t} else {\n\
+\t\t\t\t\t\treturn results;\n\
+\t\t\t\t\t}\n\
+\t\t\t\t} else {\n\
+\t\t\t\t\t// Context is not a document\n\
+\t\t\t\t\tif ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) &&\n\
+\t\t\t\t\t\tcontains( context, elem ) && elem.id === m ) {\n\
+\t\t\t\t\t\tresults.push( elem );\n\
+\t\t\t\t\t\treturn results;\n\
+\t\t\t\t\t}\n\
+\t\t\t\t}\n\
+\n\
+\t\t\t// Speed-up: Sizzle(\"TAG\")\n\
+\t\t\t} else if ( match[2] ) {\n\
+\t\t\t\tpush.apply( results, context.getElementsByTagName( selector ) );\n\
+\t\t\t\treturn results;\n\
+\n\
+\t\t\t// Speed-up: Sizzle(\".CLASS\")\n\
+\t\t\t} else if ( (m = match[3]) && support.getElementsByClassName && context.getElementsByClassName ) {\n\
+\t\t\t\tpush.apply( results, context.getElementsByClassName( m ) );\n\
+\t\t\t\treturn results;\n\
+\t\t\t}\n\
+\t\t}\n\
+\n\
+\t\t// QSA path\n\
+\t\tif ( support.qsa && (!rbuggyQSA || !rbuggyQSA.test( selector )) ) {\n\
+\t\t\tnid = old = expando;\n\
+\t\t\tnewContext = context;\n\
+\t\t\tnewSelector = nodeType === 9 && selector;\n\
+\n\
+\t\t\t// qSA works strangely on Element-rooted queries\n\
+\t\t\t// We can work around this by specifying an extra ID on the root\n\
+\t\t\t// and working up from there (Thanks to Andrew Dupont for the technique)\n\
+\t\t\t// IE 8 doesn't work on object elements\n\
+\t\t\tif ( nodeType === 1 && context.nodeName.toLowerCase() !== \"object\" ) {\n\
+\t\t\t\tgroups = tokenize( selector );\n\
+\n\
+\t\t\t\tif ( (old = context.getAttribute(\"id\")) ) {\n\
+\t\t\t\t\tnid = old.replace( rescape, \"\\\\$&\" );\n\
+\t\t\t\t} else {\n\
+\t\t\t\t\tcontext.setAttribute( \"id\", nid );\n\
+\t\t\t\t}\n\
+\t\t\t\tnid = \"[id='\" + nid + \"'] \";\n\
+\n\
+\t\t\t\ti = groups.length;\n\
+\t\t\t\twhile ( i-- ) {\n\
+\t\t\t\t\tgroups[i] = nid + toSelector( groups[i] );\n\
+\t\t\t\t}\n\
+\t\t\t\tnewContext = rsibling.test( selector ) && testContext( context.parentNode ) || context;\n\
+\t\t\t\tnewSelector = groups.join(\",\");\n\
+\t\t\t}\n\
+\n\
+\t\t\tif ( newSelector ) {\n\
+\t\t\t\ttry {\n\
+\t\t\t\t\tpush.apply( results,\n\
+\t\t\t\t\t\tnewContext.querySelectorAll( newSelector )\n\
+\t\t\t\t\t);\n\
+\t\t\t\t\treturn results;\n\
+\t\t\t\t} catch(qsaError) {\n\
+\t\t\t\t} finally {\n\
+\t\t\t\t\tif ( !old ) {\n\
+\t\t\t\t\t\tcontext.removeAttribute(\"id\");\n\
+\t\t\t\t\t}\n\
+\t\t\t\t}\n\
+\t\t\t}\n\
+\t\t}\n\
+\t}\n\
+\n\
+\t// All others\n\
+\treturn select( selector.replace( rtrim, \"$1\" ), context, results, seed );\n\
+}\n\
+\n\
+/**\n\
+ * Create key-value caches of limited size\n\
+ * @returns {Function(string, Object)} Returns the Object data after storing it on itself with\n\
+ *\tproperty name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)\n\
+ *\tdeleting the oldest entry\n\
+ */\n\
+function createCache() {\n\
+\tvar keys = [];\n\
+\n\
+\tfunction cache( key, value ) {\n\
+\t\t// Use (key + \" \") to avoid collision with native prototype properties (see Issue #157)\n\
+\t\tif ( keys.push( key + \" \" ) > Expr.cacheLength ) {\n\
+\t\t\t// Only keep the most recent entries\n\
+\t\t\tdelete cache[ keys.shift() ];\n\
+\t\t}\n\
+\t\treturn (cache[ key + \" \" ] = value);\n\
+\t}\n\
+\treturn cache;\n\
+}\n\
+\n\
+/**\n\
+ * Mark a function for special use by Sizzle\n\
+ * @param {Function} fn The function to mark\n\
+ */\n\
+function markFunction( fn ) {\n\
+\tfn[ expando ] = true;\n\
+\treturn fn;\n\
+}\n\
+\n\
+/**\n\
+ * Support testing using an element\n\
+ * @param {Function} fn Passed the created div and expects a boolean result\n\
+ */\n\
+function assert( fn ) {\n\
+\tvar div = document.createElement(\"div\");\n\
+\n\
+\ttry {\n\
+\t\treturn !!fn( div );\n\
+\t} catch (e) {\n\
+\t\treturn false;\n\
+\t} finally {\n\
+\t\t// Remove from its parent by default\n\
+\t\tif ( div.parentNode ) {\n\
+\t\t\tdiv.parentNode.removeChild( div );\n\
+\t\t}\n\
+\t\t// release memory in IE\n\
+\t\tdiv = null;\n\
+\t}\n\
+}\n\
+\n\
+/**\n\
+ * Adds the same handler for all of the specified attrs\n\
+ * @param {String} attrs Pipe-separated list of attributes\n\
+ * @param {Function} handler The method that will be applied\n\
+ */\n\
+function addHandle( attrs, handler ) {\n\
+\tvar arr = attrs.split(\"|\"),\n\
+\t\ti = attrs.length;\n\
+\n\
+\twhile ( i-- ) {\n\
+\t\tExpr.attrHandle[ arr[i] ] = handler;\n\
+\t}\n\
+}\n\
+\n\
+/**\n\
+ * Checks document order of two siblings\n\
+ * @param {Element} a\n\
+ * @param {Element} b\n\
+ * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b\n\
+ */\n\
+function siblingCheck( a, b ) {\n\
+\tvar cur = b && a,\n\
+\t\tdiff = cur && a.nodeType === 1 && b.nodeType === 1 &&\n\
+\t\t\t( ~b.sourceIndex || MAX_NEGATIVE ) -\n\
+\t\t\t( ~a.sourceIndex || MAX_NEGATIVE );\n\
+\n\
+\t// Use IE sourceIndex if available on both nodes\n\
+\tif ( diff ) {\n\
+\t\treturn diff;\n\
+\t}\n\
+\n\
+\t// Check if b follows a\n\
+\tif ( cur ) {\n\
+\t\twhile ( (cur = cur.nextSibling) ) {\n\
+\t\t\tif ( cur === b ) {\n\
+\t\t\t\treturn -1;\n\
+\t\t\t}\n\
+\t\t}\n\
+\t}\n\
+\n\
+\treturn a ? 1 : -1;\n\
+}\n\
+\n\
+/**\n\
+ * Returns a function to use in pseudos for input types\n\
+ * @param {String} type\n\
+ */\n\
+function createInputPseudo( type ) {\n\
+\treturn function( elem ) {\n\
+\t\tvar name = elem.nodeName.toLowerCase();\n\
+\t\treturn name === \"input\" && elem.type === type;\n\
+\t};\n\
+}\n\
+\n\
+/**\n\
+ * Returns a function to use in pseudos for buttons\n\
+ * @param {String} type\n\
+ */\n\
+function createButtonPseudo( type ) {\n\
+\treturn function( elem ) {\n\
+\t\tvar name = elem.nodeName.toLowerCase();\n\
+\t\treturn (name === \"input\" || name === \"button\") && elem.type === type;\n\
+\t};\n\
+}\n\
+\n\
+/**\n\
+ * Returns a function to use in pseudos for positionals\n\
+ * @param {Function} fn\n\
+ */\n\
+function createPositionalPseudo( fn ) {\n\
+\treturn markFunction(function( argument ) {\n\
+\t\targument = +argument;\n\
+\t\treturn markFunction(function( seed, matches ) {\n\
+\t\t\tvar j,\n\
+\t\t\t\tmatchIndexes = fn( [], seed.length, argument ),\n\
+\t\t\t\ti = matchIndexes.length;\n\
+\n\
+\t\t\t// Match elements found at the specified indexes\n\
+\t\t\twhile ( i-- ) {\n\
+\t\t\t\tif ( seed[ (j = matchIndexes[i]) ] ) {\n\
+\t\t\t\t\tseed[j] = !(matches[j] = seed[j]);\n\
+\t\t\t\t}\n\
+\t\t\t}\n\
+\t\t});\n\
+\t});\n\
+}\n\
+\n\
+/**\n\
+ * Checks a node for validity as a Sizzle context\n\
+ * @param {Element|Object=} context\n\
+ * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value\n\
+ */\n\
+function testContext( context ) {\n\
+\treturn context && typeof context.getElementsByTagName !== strundefined && context;\n\
+}\n\
+\n\
+// Expose support vars for convenience\n\
+support = Sizzle.support = {};\n\
+\n\
+/**\n\
+ * Detects XML nodes\n\
+ * @param {Element|Object} elem An element or a document\n\
+ * @returns {Boolean} True iff elem is a non-HTML XML node\n\
+ */\n\
+isXML = Sizzle.isXML = function( elem ) {\n\
+\t// documentElement is verified for cases where it doesn't yet exist\n\
+\t// (such as loading iframes in IE - #4833)\n\
+\tvar documentElement = elem && (elem.ownerDocument || elem).documentElement;\n\
+\treturn documentElement ? documentElement.nodeName !== \"HTML\" : false;\n\
};\n\
\n\
-Sizzle.uniqueSort = function( results ) {\n\
- if ( sortOrder ) {\n\
- hasDuplicate = baseHasDuplicate;\n\
- results.sort( sortOrder );\n\
+/**\n\
+ * Sets document-related variables once based on the current document\n\
+ * @param {Element|Object} [doc] An element or document object to use to set the document\n\
+ * @returns {Object} Returns the current document\n\
+ */\n\
+setDocument = Sizzle.setDocument = function( node ) {\n\
+\tvar hasCompare,\n\
+\t\tdoc = node ? node.ownerDocument || node : preferredDoc,\n\
+\t\tparent = doc.defaultView;\n\
\n\
- if ( hasDuplicate ) {\n\
- for ( var i = 1; i < results.length; i++ ) {\n\
- if ( results[i] === results[ i - 1 ] ) {\n\
- results.splice( i--, 1 );\n\
- }\n\
- }\n\
- }\n\
- }\n\
+\t// If no document and documentElement is available, return\n\
+\tif ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {\n\
+\t\treturn document;\n\
+\t}\n\
\n\
- return results;\n\
+\t// Set our document\n\
+\tdocument = doc;\n\
+\tdocElem = doc.documentElement;\n\
+\n\
+\t// Support tests\n\
+\tdocumentIsHTML = !isXML( doc );\n\
+\n\
+\t// Support: IE>8\n\
+\t// If iframe document is assigned to \"document\" variable and if iframe has been reloaded,\n\
+\t// IE will throw \"permission denied\" error when accessing \"document\" variable, see jQuery #13936\n\
+\t// IE6-8 do not support the defaultView property so parent will be undefined\n\
+\tif ( parent && parent !== parent.top ) {\n\
+\t\t// IE11 does not have attachEvent, so all must suffer\n\
+\t\tif ( parent.addEventListener ) {\n\
+\t\t\tparent.addEventListener( \"unload\", function() {\n\
+\t\t\t\tsetDocument();\n\
+\t\t\t}, false );\n\
+\t\t} else if ( parent.attachEvent ) {\n\
+\t\t\tparent.attachEvent( \"onunload\", function() {\n\
+\t\t\t\tsetDocument();\n\
+\t\t\t});\n\
+\t\t}\n\
+\t}\n\
+\n\
+\t/* Attributes\n\
+\t---------------------------------------------------------------------- */\n\
+\n\
+\t// Support: IE<8\n\
+\t// Verify that getAttribute really returns attributes and not properties (excepting IE8 booleans)\n\
+\tsupport.attributes = assert(function( div ) {\n\
+\t\tdiv.className = \"i\";\n\
+\t\treturn !div.getAttribute(\"className\");\n\
+\t});\n\
+\n\
+\t/* getElement(s)By*\n\
+\t---------------------------------------------------------------------- */\n\
+\n\
+\t// Check if getElementsByTagName(\"*\") returns only elements\n\
+\tsupport.getElementsByTagName = assert(function( div ) {\n\
+\t\tdiv.appendChild( doc.createComment(\"\") );\n\
+\t\treturn !div.getElementsByTagName(\"*\").length;\n\
+\t});\n\
+\n\
+\t// Check if getElementsByClassName can be trusted\n\
+\tsupport.getElementsByClassName = rnative.test( doc.getElementsByClassName ) && assert(function( div ) {\n\
+\t\tdiv.innerHTML = \"\";\n\
+\n\
+\t\t// Support: Safari<4\n\
+\t\t// Catch class over-caching\n\
+\t\tdiv.firstChild.className = \"i\";\n\
+\t\t// Support: Opera<10\n\
+\t\t// Catch gEBCN failure to find non-leading classes\n\
+\t\treturn div.getElementsByClassName(\"i\").length === 2;\n\
+\t});\n\
+\n\
+\t// Support: IE<10\n\
+\t// Check if getElementById returns elements by name\n\
+\t// The broken getElementById methods don't pick up programatically-set names,\n\
+\t// so use a roundabout getElementsByName test\n\
+\tsupport.getById = assert(function( div ) {\n\
+\t\tdocElem.appendChild( div ).id = expando;\n\
+\t\treturn !doc.getElementsByName || !doc.getElementsByName( expando ).length;\n\
+\t});\n\
+\n\
+\t// ID find and filter\n\
+\tif ( support.getById ) {\n\
+\t\tExpr.find[\"ID\"] = function( id, context ) {\n\
+\t\t\tif ( typeof context.getElementById !== strundefined && documentIsHTML ) {\n\
+\t\t\t\tvar m = context.getElementById( id );\n\
+\t\t\t\t// Check parentNode to catch when Blackberry 4.6 returns\n\
+\t\t\t\t// nodes that are no longer in the document #6963\n\
+\t\t\t\treturn m && m.parentNode ? [ m ] : [];\n\
+\t\t\t}\n\
+\t\t};\n\
+\t\tExpr.filter[\"ID\"] = function( id ) {\n\
+\t\t\tvar attrId = id.replace( runescape, funescape );\n\
+\t\t\treturn function( elem ) {\n\
+\t\t\t\treturn elem.getAttribute(\"id\") === attrId;\n\
+\t\t\t};\n\
+\t\t};\n\
+\t} else {\n\
+\t\t// Support: IE6/7\n\
+\t\t// getElementById is not reliable as a find shortcut\n\
+\t\tdelete Expr.find[\"ID\"];\n\
+\n\
+\t\tExpr.filter[\"ID\"] = function( id ) {\n\
+\t\t\tvar attrId = id.replace( runescape, funescape );\n\
+\t\t\treturn function( elem ) {\n\
+\t\t\t\tvar node = typeof elem.getAttributeNode !== strundefined && elem.getAttributeNode(\"id\");\n\
+\t\t\t\treturn node && node.value === attrId;\n\
+\t\t\t};\n\
+\t\t};\n\
+\t}\n\
+\n\
+\t// Tag\n\
+\tExpr.find[\"TAG\"] = support.getElementsByTagName ?\n\
+\t\tfunction( tag, context ) {\n\
+\t\t\tif ( typeof context.getElementsByTagName !== strundefined ) {\n\
+\t\t\t\treturn context.getElementsByTagName( tag );\n\
+\t\t\t}\n\
+\t\t} :\n\
+\t\tfunction( tag, context ) {\n\
+\t\t\tvar elem,\n\
+\t\t\t\ttmp = [],\n\
+\t\t\t\ti = 0,\n\
+\t\t\t\tresults = context.getElementsByTagName( tag );\n\
+\n\
+\t\t\t// Filter out possible comments\n\
+\t\t\tif ( tag === \"*\" ) {\n\
+\t\t\t\twhile ( (elem = results[i++]) ) {\n\
+\t\t\t\t\tif ( elem.nodeType === 1 ) {\n\
+\t\t\t\t\t\ttmp.push( elem );\n\
+\t\t\t\t\t}\n\
+\t\t\t\t}\n\
+\n\
+\t\t\t\treturn tmp;\n\
+\t\t\t}\n\
+\t\t\treturn results;\n\
+\t\t};\n\
+\n\
+\t// Class\n\
+\tExpr.find[\"CLASS\"] = support.getElementsByClassName && function( className, context ) {\n\
+\t\tif ( typeof context.getElementsByClassName !== strundefined && documentIsHTML ) {\n\
+\t\t\treturn context.getElementsByClassName( className );\n\
+\t\t}\n\
+\t};\n\
+\n\
+\t/* QSA/matchesSelector\n\
+\t---------------------------------------------------------------------- */\n\
+\n\
+\t// QSA and matchesSelector support\n\
+\n\
+\t// matchesSelector(:active) reports false when true (IE9/Opera 11.5)\n\
+\trbuggyMatches = [];\n\
+\n\
+\t// qSa(:focus) reports false when true (Chrome 21)\n\
+\t// We allow this because of a bug in IE8/9 that throws an error\n\
+\t// whenever `document.activeElement` is accessed on an iframe\n\
+\t// So, we allow :focus to pass through QSA all the time to avoid the IE error\n\
+\t// See http://bugs.jquery.com/ticket/13378\n\
+\trbuggyQSA = [];\n\
+\n\
+\tif ( (support.qsa = rnative.test( doc.querySelectorAll )) ) {\n\
+\t\t// Build QSA regex\n\
+\t\t// Regex strategy adopted from Diego Perini\n\
+\t\tassert(function( div ) {\n\
+\t\t\t// Select is set to empty string on purpose\n\
+\t\t\t// This is to test IE's treatment of not explicitly\n\
+\t\t\t// setting a boolean content attribute,\n\
+\t\t\t// since its presence should be enough\n\
+\t\t\t// http://bugs.jquery.com/ticket/12359\n\
+\t\t\tdiv.innerHTML = \"\";\n\
+\n\
+\t\t\t// Support: IE8, Opera 11-12.16\n\
+\t\t\t// Nothing should be selected when empty strings follow ^= or $= or *=\n\
+\t\t\t// The test attribute must be unknown in Opera but \"safe\" for WinRT\n\
+\t\t\t// http://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section\n\
+\t\t\tif ( div.querySelectorAll(\"[msallowclip^='']\").length ) {\n\
+\t\t\t\trbuggyQSA.push( \"[*^$]=\" + whitespace + \"*(?:''|\\\"\\\")\" );\n\
+\t\t\t}\n\
+\n\
+\t\t\t// Support: IE8\n\
+\t\t\t// Boolean attributes and \"value\" are not treated correctly\n\
+\t\t\tif ( !div.querySelectorAll(\"[selected]\").length ) {\n\
+\t\t\t\trbuggyQSA.push( \"\\\\[\" + whitespace + \"*(?:value|\" + booleans + \")\" );\n\
+\t\t\t}\n\
+\n\
+\t\t\t// Webkit/Opera - :checked should return selected option elements\n\
+\t\t\t// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked\n\
+\t\t\t// IE8 throws error here and will not see later tests\n\
+\t\t\tif ( !div.querySelectorAll(\":checked\").length ) {\n\
+\t\t\t\trbuggyQSA.push(\":checked\");\n\
+\t\t\t}\n\
+\t\t});\n\
+\n\
+\t\tassert(function( div ) {\n\
+\t\t\t// Support: Windows 8 Native Apps\n\
+\t\t\t// The type and name attributes are restricted during .innerHTML assignment\n\
+\t\t\tvar input = doc.createElement(\"input\");\n\
+\t\t\tinput.setAttribute( \"type\", \"hidden\" );\n\
+\t\t\tdiv.appendChild( input ).setAttribute( \"name\", \"D\" );\n\
+\n\
+\t\t\t// Support: IE8\n\
+\t\t\t// Enforce case-sensitivity of name attribute\n\
+\t\t\tif ( div.querySelectorAll(\"[name=d]\").length ) {\n\
+\t\t\t\trbuggyQSA.push( \"name\" + whitespace + \"*[*^$|!~]?=\" );\n\
+\t\t\t}\n\
+\n\
+\t\t\t// FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)\n\
+\t\t\t// IE8 throws error here and will not see later tests\n\
+\t\t\tif ( !div.querySelectorAll(\":enabled\").length ) {\n\
+\t\t\t\trbuggyQSA.push( \":enabled\", \":disabled\" );\n\
+\t\t\t}\n\
+\n\
+\t\t\t// Opera 10-11 does not throw on post-comma invalid pseudos\n\
+\t\t\tdiv.querySelectorAll(\"*,:x\");\n\
+\t\t\trbuggyQSA.push(\",.*:\");\n\
+\t\t});\n\
+\t}\n\
+\n\
+\tif ( (support.matchesSelector = rnative.test( (matches = docElem.matches ||\n\
+\t\tdocElem.webkitMatchesSelector ||\n\
+\t\tdocElem.mozMatchesSelector ||\n\
+\t\tdocElem.oMatchesSelector ||\n\
+\t\tdocElem.msMatchesSelector) )) ) {\n\
+\n\
+\t\tassert(function( div ) {\n\
+\t\t\t// Check to see if it's possible to do matchesSelector\n\
+\t\t\t// on a disconnected node (IE 9)\n\
+\t\t\tsupport.disconnectedMatch = matches.call( div, \"div\" );\n\
+\n\
+\t\t\t// This should fail with an exception\n\
+\t\t\t// Gecko does not error, returns false instead\n\
+\t\t\tmatches.call( div, \"[s!='']:x\" );\n\
+\t\t\trbuggyMatches.push( \"!=\", pseudos );\n\
+\t\t});\n\
+\t}\n\
+\n\
+\trbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join(\"|\") );\n\
+\trbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join(\"|\") );\n\
+\n\
+\t/* Contains\n\
+\t---------------------------------------------------------------------- */\n\
+\thasCompare = rnative.test( docElem.compareDocumentPosition );\n\
+\n\
+\t// Element contains another\n\
+\t// Purposefully does not implement inclusive descendent\n\
+\t// As in, an element does not contain itself\n\
+\tcontains = hasCompare || rnative.test( docElem.contains ) ?\n\
+\t\tfunction( a, b ) {\n\
+\t\t\tvar adown = a.nodeType === 9 ? a.documentElement : a,\n\
+\t\t\t\tbup = b && b.parentNode;\n\
+\t\t\treturn a === bup || !!( bup && bup.nodeType === 1 && (\n\
+\t\t\t\tadown.contains ?\n\
+\t\t\t\t\tadown.contains( bup ) :\n\
+\t\t\t\t\ta.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16\n\
+\t\t\t));\n\
+\t\t} :\n\
+\t\tfunction( a, b ) {\n\
+\t\t\tif ( b ) {\n\
+\t\t\t\twhile ( (b = b.parentNode) ) {\n\
+\t\t\t\t\tif ( b === a ) {\n\
+\t\t\t\t\t\treturn true;\n\
+\t\t\t\t\t}\n\
+\t\t\t\t}\n\
+\t\t\t}\n\
+\t\t\treturn false;\n\
+\t\t};\n\
+\n\
+\t/* Sorting\n\
+\t---------------------------------------------------------------------- */\n\
+\n\
+\t// Document order sorting\n\
+\tsortOrder = hasCompare ?\n\
+\tfunction( a, b ) {\n\
+\n\
+\t\t// Flag for duplicate removal\n\
+\t\tif ( a === b ) {\n\
+\t\t\thasDuplicate = true;\n\
+\t\t\treturn 0;\n\
+\t\t}\n\
+\n\
+\t\t// Sort on method existence if only one input has compareDocumentPosition\n\
+\t\tvar compare = !a.compareDocumentPosition - !b.compareDocumentPosition;\n\
+\t\tif ( compare ) {\n\
+\t\t\treturn compare;\n\
+\t\t}\n\
+\n\
+\t\t// Calculate position if both inputs belong to the same document\n\
+\t\tcompare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ?\n\
+\t\t\ta.compareDocumentPosition( b ) :\n\
+\n\
+\t\t\t// Otherwise we know they are disconnected\n\
+\t\t\t1;\n\
+\n\
+\t\t// Disconnected nodes\n\
+\t\tif ( compare & 1 ||\n\
+\t\t\t(!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) {\n\
+\n\
+\t\t\t// Choose the first element that is related to our preferred document\n\
+\t\t\tif ( a === doc || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) {\n\
+\t\t\t\treturn -1;\n\
+\t\t\t}\n\
+\t\t\tif ( b === doc || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) {\n\
+\t\t\t\treturn 1;\n\
+\t\t\t}\n\
+\n\
+\t\t\t// Maintain original order\n\
+\t\t\treturn sortInput ?\n\
+\t\t\t\t( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) :\n\
+\t\t\t\t0;\n\
+\t\t}\n\
+\n\
+\t\treturn compare & 4 ? -1 : 1;\n\
+\t} :\n\
+\tfunction( a, b ) {\n\
+\t\t// Exit early if the nodes are identical\n\
+\t\tif ( a === b ) {\n\
+\t\t\thasDuplicate = true;\n\
+\t\t\treturn 0;\n\
+\t\t}\n\
+\n\
+\t\tvar cur,\n\
+\t\t\ti = 0,\n\
+\t\t\taup = a.parentNode,\n\
+\t\t\tbup = b.parentNode,\n\
+\t\t\tap = [ a ],\n\
+\t\t\tbp = [ b ];\n\
+\n\
+\t\t// Parentless nodes are either documents or disconnected\n\
+\t\tif ( !aup || !bup ) {\n\
+\t\t\treturn a === doc ? -1 :\n\
+\t\t\t\tb === doc ? 1 :\n\
+\t\t\t\taup ? -1 :\n\
+\t\t\t\tbup ? 1 :\n\
+\t\t\t\tsortInput ?\n\
+\t\t\t\t( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) :\n\
+\t\t\t\t0;\n\
+\n\
+\t\t// If the nodes are siblings, we can do a quick check\n\
+\t\t} else if ( aup === bup ) {\n\
+\t\t\treturn siblingCheck( a, b );\n\
+\t\t}\n\
+\n\
+\t\t// Otherwise we need full lists of their ancestors for comparison\n\
+\t\tcur = a;\n\
+\t\twhile ( (cur = cur.parentNode) ) {\n\
+\t\t\tap.unshift( cur );\n\
+\t\t}\n\
+\t\tcur = b;\n\
+\t\twhile ( (cur = cur.parentNode) ) {\n\
+\t\t\tbp.unshift( cur );\n\
+\t\t}\n\
+\n\
+\t\t// Walk down the tree looking for a discrepancy\n\
+\t\twhile ( ap[i] === bp[i] ) {\n\
+\t\t\ti++;\n\
+\t\t}\n\
+\n\
+\t\treturn i ?\n\
+\t\t\t// Do a sibling check if the nodes have a common ancestor\n\
+\t\t\tsiblingCheck( ap[i], bp[i] ) :\n\
+\n\
+\t\t\t// Otherwise nodes in our document sort first\n\
+\t\t\tap[i] === preferredDoc ? -1 :\n\
+\t\t\tbp[i] === preferredDoc ? 1 :\n\
+\t\t\t0;\n\
+\t};\n\
+\n\
+\treturn doc;\n\
};\n\
\n\
-Sizzle.matches = function( expr, set ) {\n\
- return Sizzle( expr, null, null, set );\n\
+Sizzle.matches = function( expr, elements ) {\n\
+\treturn Sizzle( expr, null, null, elements );\n\
};\n\
\n\
-Sizzle.matchesSelector = function( node, expr ) {\n\
- return Sizzle( expr, null, null, [node] ).length > 0;\n\
+Sizzle.matchesSelector = function( elem, expr ) {\n\
+\t// Set document vars if needed\n\
+\tif ( ( elem.ownerDocument || elem ) !== document ) {\n\
+\t\tsetDocument( elem );\n\
+\t}\n\
+\n\
+\t// Make sure that attribute selectors are quoted\n\
+\texpr = expr.replace( rattributeQuotes, \"='$1']\" );\n\
+\n\
+\tif ( support.matchesSelector && documentIsHTML &&\n\
+\t\t( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&\n\
+\t\t( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) {\n\
+\n\
+\t\ttry {\n\
+\t\t\tvar ret = matches.call( elem, expr );\n\
+\n\
+\t\t\t// IE 9's matchesSelector returns false on disconnected nodes\n\
+\t\t\tif ( ret || support.disconnectedMatch ||\n\
+\t\t\t\t\t// As well, disconnected nodes are said to be in a document\n\
+\t\t\t\t\t// fragment in IE 9\n\
+\t\t\t\t\telem.document && elem.document.nodeType !== 11 ) {\n\
+\t\t\t\treturn ret;\n\
+\t\t\t}\n\
+\t\t} catch(e) {}\n\
+\t}\n\
+\n\
+\treturn Sizzle( expr, document, null, [ elem ] ).length > 0;\n\
};\n\
\n\
-Sizzle.find = function( expr, context, isXML ) {\n\
- var set;\n\
-\n\
- if ( !expr ) {\n\
- return [];\n\
- }\n\
-\n\
- for ( var i = 0, l = Expr.order.length; i < l; i++ ) {\n\
- var match,\n\
- type = Expr.order[i];\n\
- \n\
- if ( (match = Expr.leftMatch[ type ].exec( expr )) ) {\n\
- var left = match[1];\n\
- match.splice( 1, 1 );\n\
-\n\
- if ( left.substr( left.length - 1 ) !== \"\\\\\" ) {\n\
- match[1] = (match[1] || \"\").replace( rBackslash, \"\" );\n\
- set = Expr.find[ type ]( match, context, isXML );\n\
-\n\
- if ( set != null ) {\n\
- expr = expr.replace( Expr.match[ type ], \"\" );\n\
- break;\n\
- }\n\
- }\n\
- }\n\
- }\n\
-\n\
- if ( !set ) {\n\
- set = typeof context.getElementsByTagName !== \"undefined\" ?\n\
- context.getElementsByTagName( \"*\" ) :\n\
- [];\n\
- }\n\
-\n\
- return { set: set, expr: expr };\n\
+Sizzle.contains = function( context, elem ) {\n\
+\t// Set document vars if needed\n\
+\tif ( ( context.ownerDocument || context ) !== document ) {\n\
+\t\tsetDocument( context );\n\
+\t}\n\
+\treturn contains( context, elem );\n\
};\n\
\n\
-Sizzle.filter = function( expr, set, inplace, not ) {\n\
- var match, anyFound,\n\
- old = expr,\n\
- result = [],\n\
- curLoop = set,\n\
- isXMLFilter = set && set[0] && Sizzle.isXML( set[0] );\n\
+Sizzle.attr = function( elem, name ) {\n\
+\t// Set document vars if needed\n\
+\tif ( ( elem.ownerDocument || elem ) !== document ) {\n\
+\t\tsetDocument( elem );\n\
+\t}\n\
\n\
- while ( expr && set.length ) {\n\
- for ( var type in Expr.filter ) {\n\
- if ( (match = Expr.leftMatch[ type ].exec( expr )) != null && match[2] ) {\n\
- var found, item,\n\
- filter = Expr.filter[ type ],\n\
- left = match[1];\n\
+\tvar fn = Expr.attrHandle[ name.toLowerCase() ],\n\
+\t\t// Don't get fooled by Object.prototype properties (jQuery #13807)\n\
+\t\tval = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?\n\
+\t\t\tfn( elem, name, !documentIsHTML ) :\n\
+\t\t\tundefined;\n\
\n\
- anyFound = false;\n\
-\n\
- match.splice(1,1);\n\
-\n\
- if ( left.substr( left.length - 1 ) === \"\\\\\" ) {\n\
- continue;\n\
- }\n\
-\n\
- if ( curLoop === result ) {\n\
- result = [];\n\
- }\n\
-\n\
- if ( Expr.preFilter[ type ] ) {\n\
- match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter );\n\
-\n\
- if ( !match ) {\n\
- anyFound = found = true;\n\
-\n\
- } else if ( match === true ) {\n\
- continue;\n\
- }\n\
- }\n\
-\n\
- if ( match ) {\n\
- for ( var i = 0; (item = curLoop[i]) != null; i++ ) {\n\
- if ( item ) {\n\
- found = filter( item, match, i, curLoop );\n\
- var pass = not ^ !!found;\n\
-\n\
- if ( inplace && found != null ) {\n\
- if ( pass ) {\n\
- anyFound = true;\n\
-\n\
- } else {\n\
- curLoop[i] = false;\n\
- }\n\
-\n\
- } else if ( pass ) {\n\
- result.push( item );\n\
- anyFound = true;\n\
- }\n\
- }\n\
- }\n\
- }\n\
-\n\
- if ( found !== undefined ) {\n\
- if ( !inplace ) {\n\
- curLoop = result;\n\
- }\n\
-\n\
- expr = expr.replace( Expr.match[ type ], \"\" );\n\
-\n\
- if ( !anyFound ) {\n\
- return [];\n\
- }\n\
-\n\
- break;\n\
- }\n\
- }\n\
- }\n\
-\n\
- // Improper expression\n\
- if ( expr === old ) {\n\
- if ( anyFound == null ) {\n\
- Sizzle.error( expr );\n\
-\n\
- } else {\n\
- break;\n\
- }\n\
- }\n\
-\n\
- old = expr;\n\
- }\n\
-\n\
- return curLoop;\n\
+\treturn val !== undefined ?\n\
+\t\tval :\n\
+\t\tsupport.attributes || !documentIsHTML ?\n\
+\t\t\telem.getAttribute( name ) :\n\
+\t\t\t(val = elem.getAttributeNode(name)) && val.specified ?\n\
+\t\t\t\tval.value :\n\
+\t\t\t\tnull;\n\
};\n\
\n\
Sizzle.error = function( msg ) {\n\
- throw \"Syntax error, unrecognized expression: \" + msg;\n\
+\tthrow new Error( \"Syntax error, unrecognized expression: \" + msg );\n\
};\n\
\n\
-var Expr = Sizzle.selectors = {\n\
- order: [ \"ID\", \"NAME\", \"TAG\" ],\n\
-\n\
- match: {\n\
- ID: /#((?:[\\w\\u00c0-\\uFFFF\\-]|\\\\.)+)/,\n\
- CLASS: /\\.((?:[\\w\\u00c0-\\uFFFF\\-]|\\\\.)+)/,\n\
- NAME: /\\[name=['\"]*((?:[\\w\\u00c0-\\uFFFF\\-]|\\\\.)+)['\"]*\\]/,\n\
- ATTR: /\\[\\s*((?:[\\w\\u00c0-\\uFFFF\\-]|\\\\.)+)\\s*(?:(\\S?=)\\s*(?:(['\"])(.*?)\\3|(#?(?:[\\w\\u00c0-\\uFFFF\\-]|\\\\.)*)|)|)\\s*\\]/,\n\
- TAG: /^((?:[\\w\\u00c0-\\uFFFF\\*\\-]|\\\\.)+)/,\n\
- CHILD: /:(only|nth|last|first)-child(?:\\(\\s*(even|odd|(?:[+\\-]?\\d+|(?:[+\\-]?\\d*)?n\\s*(?:[+\\-]\\s*\\d+)?))\\s*\\))?/,\n\
- POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\\((\\d*)\\))?(?=[^\\-]|$)/,\n\
- PSEUDO: /:((?:[\\w\\u00c0-\\uFFFF\\-]|\\\\.)+)(?:\\((['\"]?)((?:\\([^\\)]+\\)|[^\\(\\)]*)+)\\2\\))?/\n\
- },\n\
-\n\
- leftMatch: {},\n\
-\n\
- attrMap: {\n\
- \"class\": \"className\",\n\
- \"for\": \"htmlFor\"\n\
- },\n\
-\n\
- attrHandle: {\n\
- href: function( elem ) {\n\
- return elem.getAttribute( \"href\" );\n\
- },\n\
- type: function( elem ) {\n\
- return elem.getAttribute( \"type\" );\n\
- }\n\
- },\n\
-\n\
- relative: {\n\
- \"+\": function(checkSet, part){\n\
- var isPartStr = typeof part === \"string\",\n\
- isTag = isPartStr && !rNonWord.test( part ),\n\
- isPartStrNotTag = isPartStr && !isTag;\n\
-\n\
- if ( isTag ) {\n\
- part = part.toLowerCase();\n\
- }\n\
-\n\
- for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) {\n\
- if ( (elem = checkSet[i]) ) {\n\
- while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {}\n\
-\n\
- checkSet[i] = isPartStrNotTag || elem && elem.nodeName.toLowerCase() === part ?\n\
- elem || false :\n\
- elem === part;\n\
- }\n\
- }\n\
-\n\
- if ( isPartStrNotTag ) {\n\
- Sizzle.filter( part, checkSet, true );\n\
- }\n\
- },\n\
-\n\
- \">\": function( checkSet, part ) {\n\
- var elem,\n\
- isPartStr = typeof part === \"string\",\n\
- i = 0,\n\
- l = checkSet.length;\n\
-\n\
- if ( isPartStr && !rNonWord.test( part ) ) {\n\
- part = part.toLowerCase();\n\
-\n\
- for ( ; i < l; i++ ) {\n\
- elem = checkSet[i];\n\
-\n\
- if ( elem ) {\n\
- var parent = elem.parentNode;\n\
- checkSet[i] = parent.nodeName.toLowerCase() === part ? parent : false;\n\
- }\n\
- }\n\
-\n\
- } else {\n\
- for ( ; i < l; i++ ) {\n\
- elem = checkSet[i];\n\
-\n\
- if ( elem ) {\n\
- checkSet[i] = isPartStr ?\n\
- elem.parentNode :\n\
- elem.parentNode === part;\n\
- }\n\
- }\n\
-\n\
- if ( isPartStr ) {\n\
- Sizzle.filter( part, checkSet, true );\n\
- }\n\
- }\n\
- },\n\
-\n\
- \"\": function(checkSet, part, isXML){\n\
- var nodeCheck,\n\
- doneName = done++,\n\
- checkFn = dirCheck;\n\
-\n\
- if ( typeof part === \"string\" && !rNonWord.test( part ) ) {\n\
- part = part.toLowerCase();\n\
- nodeCheck = part;\n\
- checkFn = dirNodeCheck;\n\
- }\n\
-\n\
- checkFn( \"parentNode\", part, doneName, checkSet, nodeCheck, isXML );\n\
- },\n\
-\n\
- \"~\": function( checkSet, part, isXML ) {\n\
- var nodeCheck,\n\
- doneName = done++,\n\
- checkFn = dirCheck;\n\
-\n\
- if ( typeof part === \"string\" && !rNonWord.test( part ) ) {\n\
- part = part.toLowerCase();\n\
- nodeCheck = part;\n\
- checkFn = dirNodeCheck;\n\
- }\n\
-\n\
- checkFn( \"previousSibling\", part, doneName, checkSet, nodeCheck, isXML );\n\
- }\n\
- },\n\
-\n\
- find: {\n\
- ID: function( match, context, isXML ) {\n\
- if ( typeof context.getElementById !== \"undefined\" && !isXML ) {\n\
- var m = context.getElementById(match[1]);\n\
- // Check parentNode to catch when Blackberry 4.6 returns\n\
- // nodes that are no longer in the document #6963\n\
- return m && m.parentNode ? [m] : [];\n\
- }\n\
- },\n\
-\n\
- NAME: function( match, context ) {\n\
- if ( typeof context.getElementsByName !== \"undefined\" ) {\n\
- var ret = [],\n\
- results = context.getElementsByName( match[1] );\n\
-\n\
- for ( var i = 0, l = results.length; i < l; i++ ) {\n\
- if ( results[i].getAttribute(\"name\") === match[1] ) {\n\
- ret.push( results[i] );\n\
- }\n\
- }\n\
-\n\
- return ret.length === 0 ? null : ret;\n\
- }\n\
- },\n\
-\n\
- TAG: function( match, context ) {\n\
- if ( typeof context.getElementsByTagName !== \"undefined\" ) {\n\
- return context.getElementsByTagName( match[1] );\n\
- }\n\
- }\n\
- },\n\
- preFilter: {\n\
- CLASS: function( match, curLoop, inplace, result, not, isXML ) {\n\
- match = \" \" + match[1].replace( rBackslash, \"\" ) + \" \";\n\
-\n\
- if ( isXML ) {\n\
- return match;\n\
- }\n\
-\n\
- for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {\n\
- if ( elem ) {\n\
- if ( not ^ (elem.className && (\" \" + elem.className + \" \").replace(/[\\t\\n\\r]/g, \" \").indexOf(match) >= 0) ) {\n\
- if ( !inplace ) {\n\
- result.push( elem );\n\
- }\n\
-\n\
- } else if ( inplace ) {\n\
- curLoop[i] = false;\n\
- }\n\
- }\n\
- }\n\
-\n\
- return false;\n\
- },\n\
-\n\
- ID: function( match ) {\n\
- return match[1].replace( rBackslash, \"\" );\n\
- },\n\
-\n\
- TAG: function( match, curLoop ) {\n\
- return match[1].replace( rBackslash, \"\" ).toLowerCase();\n\
- },\n\
-\n\
- CHILD: function( match ) {\n\
- if ( match[1] === \"nth\" ) {\n\
- if ( !match[2] ) {\n\
- Sizzle.error( match[0] );\n\
- }\n\
-\n\
- match[2] = match[2].replace(/^\\+|\\s*/g, '');\n\
-\n\
- // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'\n\
- var test = /(-?)(\\d*)(?:n([+\\-]?\\d*))?/.exec(\n\
- match[2] === \"even\" && \"2n\" || match[2] === \"odd\" && \"2n+1\" ||\n\
- !/\\D/.test( match[2] ) && \"0n+\" + match[2] || match[2]);\n\
-\n\
- // calculate the numbers (first)n+(last) including if they are negative\n\
- match[2] = (test[1] + (test[2] || 1)) - 0;\n\
- match[3] = test[3] - 0;\n\
- }\n\
- else if ( match[2] ) {\n\
- Sizzle.error( match[0] );\n\
- }\n\
-\n\
- // TODO: Move to normal caching system\n\
- match[0] = done++;\n\
-\n\
- return match;\n\
- },\n\
-\n\
- ATTR: function( match, curLoop, inplace, result, not, isXML ) {\n\
- var name = match[1] = match[1].replace( rBackslash, \"\" );\n\
- \n\
- if ( !isXML && Expr.attrMap[name] ) {\n\
- match[1] = Expr.attrMap[name];\n\
- }\n\
-\n\
- // Handle if an un-quoted value was used\n\
- match[4] = ( match[4] || match[5] || \"\" ).replace( rBackslash, \"\" );\n\
-\n\
- if ( match[2] === \"~=\" ) {\n\
- match[4] = \" \" + match[4] + \" \";\n\
- }\n\
-\n\
- return match;\n\
- },\n\
-\n\
- PSEUDO: function( match, curLoop, inplace, result, not ) {\n\
- if ( match[1] === \"not\" ) {\n\
- // If we're dealing with a complex expression, or a simple one\n\
- if ( ( chunker.exec(match[3]) || \"\" ).length > 1 || /^\\w/.test(match[3]) ) {\n\
- match[3] = Sizzle(match[3], null, null, curLoop);\n\
-\n\
- } else {\n\
- var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);\n\
-\n\
- if ( !inplace ) {\n\
- result.push.apply( result, ret );\n\
- }\n\
-\n\
- return false;\n\
- }\n\
-\n\
- } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {\n\
- return true;\n\
- }\n\
- \n\
- return match;\n\
- },\n\
-\n\
- POS: function( match ) {\n\
- match.unshift( true );\n\
-\n\
- return match;\n\
- }\n\
- },\n\
- \n\
- filters: {\n\
- enabled: function( elem ) {\n\
- return elem.disabled === false && elem.type !== \"hidden\";\n\
- },\n\
-\n\
- disabled: function( elem ) {\n\
- return elem.disabled === true;\n\
- },\n\
-\n\
- checked: function( elem ) {\n\
- return elem.checked === true;\n\
- },\n\
- \n\
- selected: function( elem ) {\n\
- // Accessing this property makes selected-by-default\n\
- // options in Safari work properly\n\
- if ( elem.parentNode ) {\n\
- elem.parentNode.selectedIndex;\n\
- }\n\
- \n\
- return elem.selected === true;\n\
- },\n\
-\n\
- parent: function( elem ) {\n\
- return !!elem.firstChild;\n\
- },\n\
-\n\
- empty: function( elem ) {\n\
- return !elem.firstChild;\n\
- },\n\
-\n\
- has: function( elem, i, match ) {\n\
- return !!Sizzle( match[3], elem ).length;\n\
- },\n\
-\n\
- header: function( elem ) {\n\
- return (/h\\d/i).test( elem.nodeName );\n\
- },\n\
-\n\
- text: function( elem ) {\n\
- var attr = elem.getAttribute( \"type\" ), type = elem.type;\n\
- // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc) \n\
- // use getAttribute instead to test this case\n\
- return elem.nodeName.toLowerCase() === \"input\" && \"text\" === type && ( attr === type || attr === null );\n\
- },\n\
-\n\
- radio: function( elem ) {\n\
- return elem.nodeName.toLowerCase() === \"input\" && \"radio\" === elem.type;\n\
- },\n\
-\n\
- checkbox: function( elem ) {\n\
- return elem.nodeName.toLowerCase() === \"input\" && \"checkbox\" === elem.type;\n\
- },\n\
-\n\
- file: function( elem ) {\n\
- return elem.nodeName.toLowerCase() === \"input\" && \"file\" === elem.type;\n\
- },\n\
-\n\
- password: function( elem ) {\n\
- return elem.nodeName.toLowerCase() === \"input\" && \"password\" === elem.type;\n\
- },\n\
-\n\
- submit: function( elem ) {\n\
- var name = elem.nodeName.toLowerCase();\n\
- return (name === \"input\" || name === \"button\") && \"submit\" === elem.type;\n\
- },\n\
-\n\
- image: function( elem ) {\n\
- return elem.nodeName.toLowerCase() === \"input\" && \"image\" === elem.type;\n\
- },\n\
-\n\
- reset: function( elem ) {\n\
- var name = elem.nodeName.toLowerCase();\n\
- return (name === \"input\" || name === \"button\") && \"reset\" === elem.type;\n\
- },\n\
-\n\
- button: function( elem ) {\n\
- var name = elem.nodeName.toLowerCase();\n\
- return name === \"input\" && \"button\" === elem.type || name === \"button\";\n\
- },\n\
-\n\
- input: function( elem ) {\n\
- return (/input|select|textarea|button/i).test( elem.nodeName );\n\
- },\n\
-\n\
- focus: function( elem ) {\n\
- return elem === elem.ownerDocument.activeElement;\n\
- }\n\
- },\n\
- setFilters: {\n\
- first: function( elem, i ) {\n\
- return i === 0;\n\
- },\n\
-\n\
- last: function( elem, i, match, array ) {\n\
- return i === array.length - 1;\n\
- },\n\
-\n\
- even: function( elem, i ) {\n\
- return i % 2 === 0;\n\
- },\n\
-\n\
- odd: function( elem, i ) {\n\
- return i % 2 === 1;\n\
- },\n\
-\n\
- lt: function( elem, i, match ) {\n\
- return i < match[3] - 0;\n\
- },\n\
-\n\
- gt: function( elem, i, match ) {\n\
- return i > match[3] - 0;\n\
- },\n\
-\n\
- nth: function( elem, i, match ) {\n\
- return match[3] - 0 === i;\n\
- },\n\
-\n\
- eq: function( elem, i, match ) {\n\
- return match[3] - 0 === i;\n\
- }\n\
- },\n\
- filter: {\n\
- PSEUDO: function( elem, match, i, array ) {\n\
- var name = match[1],\n\
- filter = Expr.filters[ name ];\n\
-\n\
- if ( filter ) {\n\
- return filter( elem, i, match, array );\n\
-\n\
- } else if ( name === \"contains\" ) {\n\
- return (elem.textContent || elem.innerText || Sizzle.getText([ elem ]) || \"\").indexOf(match[3]) >= 0;\n\
-\n\
- } else if ( name === \"not\" ) {\n\
- var not = match[3];\n\
-\n\
- for ( var j = 0, l = not.length; j < l; j++ ) {\n\
- if ( not[j] === elem ) {\n\
- return false;\n\
- }\n\
- }\n\
-\n\
- return true;\n\
-\n\
- } else {\n\
- Sizzle.error( name );\n\
- }\n\
- },\n\
-\n\
- CHILD: function( elem, match ) {\n\
- var type = match[1],\n\
- node = elem;\n\
-\n\
- switch ( type ) {\n\
- case \"only\":\n\
- case \"first\":\n\
- while ( (node = node.previousSibling) ) {\n\
- if ( node.nodeType === 1 ) { \n\
- return false; \n\
- }\n\
- }\n\
-\n\
- if ( type === \"first\" ) { \n\
- return true; \n\
- }\n\
-\n\
- node = elem;\n\
-\n\
- case \"last\":\n\
- while ( (node = node.nextSibling) ) {\n\
- if ( node.nodeType === 1 ) { \n\
- return false; \n\
- }\n\
- }\n\
-\n\
- return true;\n\
-\n\
- case \"nth\":\n\
- var first = match[2],\n\
- last = match[3];\n\
-\n\
- if ( first === 1 && last === 0 ) {\n\
- return true;\n\
- }\n\
- \n\
- var doneName = match[0],\n\
- parent = elem.parentNode;\n\
- \n\
- if ( parent && (parent.sizcache !== doneName || !elem.nodeIndex) ) {\n\
- var count = 0;\n\
- \n\
- for ( node = parent.firstChild; node; node = node.nextSibling ) {\n\
- if ( node.nodeType === 1 ) {\n\
- node.nodeIndex = ++count;\n\
- }\n\
- } \n\
-\n\
- parent.sizcache = doneName;\n\
- }\n\
- \n\
- var diff = elem.nodeIndex - last;\n\
-\n\
- if ( first === 0 ) {\n\
- return diff === 0;\n\
-\n\
- } else {\n\
- return ( diff % first === 0 && diff / first >= 0 );\n\
- }\n\
- }\n\
- },\n\
-\n\
- ID: function( elem, match ) {\n\
- return elem.nodeType === 1 && elem.getAttribute(\"id\") === match;\n\
- },\n\
-\n\
- TAG: function( elem, match ) {\n\
- return (match === \"*\" && elem.nodeType === 1) || elem.nodeName.toLowerCase() === match;\n\
- },\n\
- \n\
- CLASS: function( elem, match ) {\n\
- return (\" \" + (elem.className || elem.getAttribute(\"class\")) + \" \")\n\
- .indexOf( match ) > -1;\n\
- },\n\
-\n\
- ATTR: function( elem, match ) {\n\
- var name = match[1],\n\
- result = Expr.attrHandle[ name ] ?\n\
- Expr.attrHandle[ name ]( elem ) :\n\
- elem[ name ] != null ?\n\
- elem[ name ] :\n\
- elem.getAttribute( name ),\n\
- value = result + \"\",\n\
- type = match[2],\n\
- check = match[4];\n\
-\n\
- return result == null ?\n\
- type === \"!=\" :\n\
- type === \"=\" ?\n\
- value === check :\n\
- type === \"*=\" ?\n\
- value.indexOf(check) >= 0 :\n\
- type === \"~=\" ?\n\
- (\" \" + value + \" \").indexOf(check) >= 0 :\n\
- !check ?\n\
- value && result !== false :\n\
- type === \"!=\" ?\n\
- value !== check :\n\
- type === \"^=\" ?\n\
- value.indexOf(check) === 0 :\n\
- type === \"$=\" ?\n\
- value.substr(value.length - check.length) === check :\n\
- type === \"|=\" ?\n\
- value === check || value.substr(0, check.length + 1) === check + \"-\" :\n\
- false;\n\
- },\n\
-\n\
- POS: function( elem, match, i, array ) {\n\
- var name = match[2],\n\
- filter = Expr.setFilters[ name ];\n\
-\n\
- if ( filter ) {\n\
- return filter( elem, i, match, array );\n\
- }\n\
- }\n\
- }\n\
+/**\n\
+ * Document sorting and removing duplicates\n\
+ * @param {ArrayLike} results\n\
+ */\n\
+Sizzle.uniqueSort = function( results ) {\n\
+\tvar elem,\n\
+\t\tduplicates = [],\n\
+\t\tj = 0,\n\
+\t\ti = 0;\n\
+\n\
+\t// Unless we *know* we can detect duplicates, assume their presence\n\
+\thasDuplicate = !support.detectDuplicates;\n\
+\tsortInput = !support.sortStable && results.slice( 0 );\n\
+\tresults.sort( sortOrder );\n\
+\n\
+\tif ( hasDuplicate ) {\n\
+\t\twhile ( (elem = results[i++]) ) {\n\
+\t\t\tif ( elem === results[ i ] ) {\n\
+\t\t\t\tj = duplicates.push( i );\n\
+\t\t\t}\n\
+\t\t}\n\
+\t\twhile ( j-- ) {\n\
+\t\t\tresults.splice( duplicates[ j ], 1 );\n\
+\t\t}\n\
+\t}\n\
+\n\
+\t// Clear input after sorting to release objects\n\
+\t// See https://github.com/jquery/sizzle/pull/225\n\
+\tsortInput = null;\n\
+\n\
+\treturn results;\n\
};\n\
\n\
-var origPOS = Expr.match.POS,\n\
- fescape = function(all, num){\n\
- return \"\\\\\" + (num - 0 + 1);\n\
- };\n\
+/**\n\
+ * Utility function for retrieving the text value of an array of DOM nodes\n\
+ * @param {Array|Element} elem\n\
+ */\n\
+getText = Sizzle.getText = function( elem ) {\n\
+\tvar node,\n\
+\t\tret = \"\",\n\
+\t\ti = 0,\n\
+\t\tnodeType = elem.nodeType;\n\
\n\
-for ( var type in Expr.match ) {\n\
- Expr.match[ type ] = new RegExp( Expr.match[ type ].source + (/(?![^\\[]*\\])(?![^\\(]*\\))/.source) );\n\
- Expr.leftMatch[ type ] = new RegExp( /(^(?:.|\\r|\\n)*?)/.source + Expr.match[ type ].source.replace(/\\\\(\\d+)/g, fescape) );\n\
-}\n\
+\tif ( !nodeType ) {\n\
+\t\t// If no nodeType, this is expected to be an array\n\
+\t\twhile ( (node = elem[i++]) ) {\n\
+\t\t\t// Do not traverse comment nodes\n\
+\t\t\tret += getText( node );\n\
+\t\t}\n\
+\t} else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {\n\
+\t\t// Use textContent for elements\n\
+\t\t// innerText usage removed for consistency of new lines (jQuery #11153)\n\
+\t\tif ( typeof elem.textContent === \"string\" ) {\n\
+\t\t\treturn elem.textContent;\n\
+\t\t} else {\n\
+\t\t\t// Traverse its children\n\
+\t\t\tfor ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {\n\
+\t\t\t\tret += getText( elem );\n\
+\t\t\t}\n\
+\t\t}\n\
+\t} else if ( nodeType === 3 || nodeType === 4 ) {\n\
+\t\treturn elem.nodeValue;\n\
+\t}\n\
+\t// Do not include comment or processing instruction nodes\n\
\n\
-var makeArray = function( array, results ) {\n\
- array = Array.prototype.slice.call( array, 0 );\n\
-\n\
- if ( results ) {\n\
- results.push.apply( results, array );\n\
- return results;\n\
- }\n\
- \n\
- return array;\n\
+\treturn ret;\n\
};\n\
\n\
-// Perform a simple check to determine if the browser is capable of\n\
-// converting a NodeList to an array using builtin methods.\n\
-// Also verifies that the returned array holds DOM nodes\n\
-// (which is not the case in the Blackberry browser)\n\
-try {\n\
- Array.prototype.slice.call( document.documentElement.childNodes, 0 )[0].nodeType;\n\
+Expr = Sizzle.selectors = {\n\
\n\
-// Provide a fallback method if it does not work\n\
-} catch( e ) {\n\
- makeArray = function( array, results ) {\n\
- var i = 0,\n\
- ret = results || [];\n\
+\t// Can be adjusted by the user\n\
+\tcacheLength: 50,\n\
\n\
- if ( toString.call(array) === \"[object Array]\" ) {\n\
- Array.prototype.push.apply( ret, array );\n\
+\tcreatePseudo: markFunction,\n\
\n\
- } else {\n\
- if ( typeof array.length === \"number\" ) {\n\
- for ( var l = array.length; i < l; i++ ) {\n\
- ret.push( array[i] );\n\
- }\n\
+\tmatch: matchExpr,\n\
\n\
- } else {\n\
- for ( ; array[i]; i++ ) {\n\
- ret.push( array[i] );\n\
- }\n\
- }\n\
- }\n\
+\tattrHandle: {},\n\
\n\
- return ret;\n\
- };\n\
-}\n\
+\tfind: {},\n\
\n\
-var sortOrder, siblingCheck;\n\
+\trelative: {\n\
+\t\t\">\": { dir: \"parentNode\", first: true },\n\
+\t\t\" \": { dir: \"parentNode\" },\n\
+\t\t\"+\": { dir: \"previousSibling\", first: true },\n\
+\t\t\"~\": { dir: \"previousSibling\" }\n\
+\t},\n\
\n\
-if ( document.documentElement.compareDocumentPosition ) {\n\
- sortOrder = function( a, b ) {\n\
- if ( a === b ) {\n\
- hasDuplicate = true;\n\
- return 0;\n\
- }\n\
+\tpreFilter: {\n\
+\t\t\"ATTR\": function( match ) {\n\
+\t\t\tmatch[1] = match[1].replace( runescape, funescape );\n\
\n\
- if ( !a.compareDocumentPosition || !b.compareDocumentPosition ) {\n\
- return a.compareDocumentPosition ? -1 : 1;\n\
- }\n\
+\t\t\t// Move the given value to match[3] whether quoted or unquoted\n\
+\t\t\tmatch[3] = ( match[3] || match[4] || match[5] || \"\" ).replace( runescape, funescape );\n\
\n\
- return a.compareDocumentPosition(b) & 4 ? -1 : 1;\n\
- };\n\
+\t\t\tif ( match[2] === \"~=\" ) {\n\
+\t\t\t\tmatch[3] = \" \" + match[3] + \" \";\n\
+\t\t\t}\n\
\n\
-} else {\n\
- sortOrder = function( a, b ) {\n\
- // The nodes are identical, we can exit early\n\
- if ( a === b ) {\n\
- hasDuplicate = true;\n\
- return 0;\n\
+\t\t\treturn match.slice( 0, 4 );\n\
+\t\t},\n\
\n\
- // Fallback to using sourceIndex (in IE) if it's available on both nodes\n\
- } else if ( a.sourceIndex && b.sourceIndex ) {\n\
- return a.sourceIndex - b.sourceIndex;\n\
- }\n\
+\t\t\"CHILD\": function( match ) {\n\
+\t\t\t/* matches from matchExpr[\"CHILD\"]\n\
+\t\t\t\t1 type (only|nth|...)\n\
+\t\t\t\t2 what (child|of-type)\n\
+\t\t\t\t3 argument (even|odd|\\d*|\\d*n([+-]\\d+)?|...)\n\
+\t\t\t\t4 xn-component of xn+y argument ([+-]?\\d*n|)\n\
+\t\t\t\t5 sign of xn-component\n\
+\t\t\t\t6 x of xn-component\n\
+\t\t\t\t7 sign of y-component\n\
+\t\t\t\t8 y of y-component\n\
+\t\t\t*/\n\
+\t\t\tmatch[1] = match[1].toLowerCase();\n\
\n\
- var al, bl,\n\
- ap = [],\n\
- bp = [],\n\
- aup = a.parentNode,\n\
- bup = b.parentNode,\n\
- cur = aup;\n\
+\t\t\tif ( match[1].slice( 0, 3 ) === \"nth\" ) {\n\
+\t\t\t\t// nth-* requires argument\n\
+\t\t\t\tif ( !match[3] ) {\n\
+\t\t\t\t\tSizzle.error( match[0] );\n\
+\t\t\t\t}\n\
\n\
- // If the nodes are siblings (or identical) we can do a quick check\n\
- if ( aup === bup ) {\n\
- return siblingCheck( a, b );\n\
+\t\t\t\t// numeric x and y parameters for Expr.filter.CHILD\n\
+\t\t\t\t// remember that false/true cast respectively to 0/1\n\
+\t\t\t\tmatch[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === \"even\" || match[3] === \"odd\" ) );\n\
+\t\t\t\tmatch[5] = +( ( match[7] + match[8] ) || match[3] === \"odd\" );\n\
\n\
- // If no parents were found then the nodes are disconnected\n\
- } else if ( !aup ) {\n\
- return -1;\n\
+\t\t\t// other types prohibit arguments\n\
+\t\t\t} else if ( match[3] ) {\n\
+\t\t\t\tSizzle.error( match[0] );\n\
+\t\t\t}\n\
\n\
- } else if ( !bup ) {\n\
- return 1;\n\
- }\n\
+\t\t\treturn match;\n\
+\t\t},\n\
\n\
- // Otherwise they're somewhere else in the tree so we need\n\
- // to build up a full list of the parentNodes for comparison\n\
- while ( cur ) {\n\
- ap.unshift( cur );\n\
- cur = cur.parentNode;\n\
- }\n\
+\t\t\"PSEUDO\": function( match ) {\n\
+\t\t\tvar excess,\n\
+\t\t\t\tunquoted = !match[6] && match[2];\n\
\n\
- cur = bup;\n\
+\t\t\tif ( matchExpr[\"CHILD\"].test( match[0] ) ) {\n\
+\t\t\t\treturn null;\n\
+\t\t\t}\n\
\n\
- while ( cur ) {\n\
- bp.unshift( cur );\n\
- cur = cur.parentNode;\n\
- }\n\
+\t\t\t// Accept quoted arguments as-is\n\
+\t\t\tif ( match[3] ) {\n\
+\t\t\t\tmatch[2] = match[4] || match[5] || \"\";\n\
\n\
- al = ap.length;\n\
- bl = bp.length;\n\
+\t\t\t// Strip excess characters from unquoted arguments\n\
+\t\t\t} else if ( unquoted && rpseudo.test( unquoted ) &&\n\
+\t\t\t\t// Get excess from tokenize (recursively)\n\
+\t\t\t\t(excess = tokenize( unquoted, true )) &&\n\
+\t\t\t\t// advance to the next closing parenthesis\n\
+\t\t\t\t(excess = unquoted.indexOf( \")\", unquoted.length - excess ) - unquoted.length) ) {\n\
\n\
- // Start walking down the tree looking for a discrepancy\n\
- for ( var i = 0; i < al && i < bl; i++ ) {\n\
- if ( ap[i] !== bp[i] ) {\n\
- return siblingCheck( ap[i], bp[i] );\n\
- }\n\
- }\n\
+\t\t\t\t// excess is a negative index\n\
+\t\t\t\tmatch[0] = match[0].slice( 0, excess );\n\
+\t\t\t\tmatch[2] = unquoted.slice( 0, excess );\n\
+\t\t\t}\n\
\n\
- // We ended someplace up the tree so do a sibling check\n\
- return i === al ?\n\
- siblingCheck( a, bp[i], -1 ) :\n\
- siblingCheck( ap[i], b, 1 );\n\
- };\n\
+\t\t\t// Return only captures needed by the pseudo filter method (type and argument)\n\
+\t\t\treturn match.slice( 0, 3 );\n\
+\t\t}\n\
+\t},\n\
\n\
- siblingCheck = function( a, b, ret ) {\n\
- if ( a === b ) {\n\
- return ret;\n\
- }\n\
+\tfilter: {\n\
\n\
- var cur = a.nextSibling;\n\
+\t\t\"TAG\": function( nodeNameSelector ) {\n\
+\t\t\tvar nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();\n\
+\t\t\treturn nodeNameSelector === \"*\" ?\n\
+\t\t\t\tfunction() { return true; } :\n\
+\t\t\t\tfunction( elem ) {\n\
+\t\t\t\t\treturn elem.nodeName && elem.nodeName.toLowerCase() === nodeName;\n\
+\t\t\t\t};\n\
+\t\t},\n\
\n\
- while ( cur ) {\n\
- if ( cur === b ) {\n\
- return -1;\n\
- }\n\
+\t\t\"CLASS\": function( className ) {\n\
+\t\t\tvar pattern = classCache[ className + \" \" ];\n\
\n\
- cur = cur.nextSibling;\n\
- }\n\
+\t\t\treturn pattern ||\n\
+\t\t\t\t(pattern = new RegExp( \"(^|\" + whitespace + \")\" + className + \"(\" + whitespace + \"|$)\" )) &&\n\
+\t\t\t\tclassCache( className, function( elem ) {\n\
+\t\t\t\t\treturn pattern.test( typeof elem.className === \"string\" && elem.className || typeof elem.getAttribute !== strundefined && elem.getAttribute(\"class\") || \"\" );\n\
+\t\t\t\t});\n\
+\t\t},\n\
\n\
- return 1;\n\
- };\n\
-}\n\
+\t\t\"ATTR\": function( name, operator, check ) {\n\
+\t\t\treturn function( elem ) {\n\
+\t\t\t\tvar result = Sizzle.attr( elem, name );\n\
\n\
-// Utility function for retreiving the text value of an array of DOM nodes\n\
-Sizzle.getText = function( elems ) {\n\
- var ret = \"\", elem;\n\
+\t\t\t\tif ( result == null ) {\n\
+\t\t\t\t\treturn operator === \"!=\";\n\
+\t\t\t\t}\n\
+\t\t\t\tif ( !operator ) {\n\
+\t\t\t\t\treturn true;\n\
+\t\t\t\t}\n\
\n\
- for ( var i = 0; elems[i]; i++ ) {\n\
- elem = elems[i];\n\
+\t\t\t\tresult += \"\";\n\
\n\
- // Get the text from text nodes and CDATA nodes\n\
- if ( elem.nodeType === 3 || elem.nodeType === 4 ) {\n\
- ret += elem.nodeValue;\n\
+\t\t\t\treturn operator === \"=\" ? result === check :\n\
+\t\t\t\t\toperator === \"!=\" ? result !== check :\n\
+\t\t\t\t\toperator === \"^=\" ? check && result.indexOf( check ) === 0 :\n\
+\t\t\t\t\toperator === \"*=\" ? check && result.indexOf( check ) > -1 :\n\
+\t\t\t\t\toperator === \"$=\" ? check && result.slice( -check.length ) === check :\n\
+\t\t\t\t\toperator === \"~=\" ? ( \" \" + result + \" \" ).indexOf( check ) > -1 :\n\
+\t\t\t\t\toperator === \"|=\" ? result === check || result.slice( 0, check.length + 1 ) === check + \"-\" :\n\
+\t\t\t\t\tfalse;\n\
+\t\t\t};\n\
+\t\t},\n\
\n\
- // Traverse everything else, except comment nodes\n\
- } else if ( elem.nodeType !== 8 ) {\n\
- ret += Sizzle.getText( elem.childNodes );\n\
- }\n\
- }\n\
+\t\t\"CHILD\": function( type, what, argument, first, last ) {\n\
+\t\t\tvar simple = type.slice( 0, 3 ) !== \"nth\",\n\
+\t\t\t\tforward = type.slice( -4 ) !== \"last\",\n\
+\t\t\t\tofType = what === \"of-type\";\n\
\n\
- return ret;\n\
+\t\t\treturn first === 1 && last === 0 ?\n\
+\n\
+\t\t\t\t// Shortcut for :nth-*(n)\n\
+\t\t\t\tfunction( elem ) {\n\
+\t\t\t\t\treturn !!elem.parentNode;\n\
+\t\t\t\t} :\n\
+\n\
+\t\t\t\tfunction( elem, context, xml ) {\n\
+\t\t\t\t\tvar cache, outerCache, node, diff, nodeIndex, start,\n\
+\t\t\t\t\t\tdir = simple !== forward ? \"nextSibling\" : \"previousSibling\",\n\
+\t\t\t\t\t\tparent = elem.parentNode,\n\
+\t\t\t\t\t\tname = ofType && elem.nodeName.toLowerCase(),\n\
+\t\t\t\t\t\tuseCache = !xml && !ofType;\n\
+\n\
+\t\t\t\t\tif ( parent ) {\n\
+\n\
+\t\t\t\t\t\t// :(first|last|only)-(child|of-type)\n\
+\t\t\t\t\t\tif ( simple ) {\n\
+\t\t\t\t\t\t\twhile ( dir ) {\n\
+\t\t\t\t\t\t\t\tnode = elem;\n\
+\t\t\t\t\t\t\t\twhile ( (node = node[ dir ]) ) {\n\
+\t\t\t\t\t\t\t\t\tif ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) {\n\
+\t\t\t\t\t\t\t\t\t\treturn false;\n\
+\t\t\t\t\t\t\t\t\t}\n\
+\t\t\t\t\t\t\t\t}\n\
+\t\t\t\t\t\t\t\t// Reverse direction for :only-* (if we haven't yet done so)\n\
+\t\t\t\t\t\t\t\tstart = dir = type === \"only\" && !start && \"nextSibling\";\n\
+\t\t\t\t\t\t\t}\n\
+\t\t\t\t\t\t\treturn true;\n\
+\t\t\t\t\t\t}\n\
+\n\
+\t\t\t\t\t\tstart = [ forward ? parent.firstChild : parent.lastChild ];\n\
+\n\
+\t\t\t\t\t\t// non-xml :nth-child(...) stores cache data on `parent`\n\
+\t\t\t\t\t\tif ( forward && useCache ) {\n\
+\t\t\t\t\t\t\t// Seek `elem` from a previously-cached index\n\
+\t\t\t\t\t\t\touterCache = parent[ expando ] || (parent[ expando ] = {});\n\
+\t\t\t\t\t\t\tcache = outerCache[ type ] || [];\n\
+\t\t\t\t\t\t\tnodeIndex = cache[0] === dirruns && cache[1];\n\
+\t\t\t\t\t\t\tdiff = cache[0] === dirruns && cache[2];\n\
+\t\t\t\t\t\t\tnode = nodeIndex && parent.childNodes[ nodeIndex ];\n\
+\n\
+\t\t\t\t\t\t\twhile ( (node = ++nodeIndex && node && node[ dir ] ||\n\
+\n\
+\t\t\t\t\t\t\t\t// Fallback to seeking `elem` from the start\n\
+\t\t\t\t\t\t\t\t(diff = nodeIndex = 0) || start.pop()) ) {\n\
+\n\
+\t\t\t\t\t\t\t\t// When found, cache indexes on `parent` and break\n\
+\t\t\t\t\t\t\t\tif ( node.nodeType === 1 && ++diff && node === elem ) {\n\
+\t\t\t\t\t\t\t\t\touterCache[ type ] = [ dirruns, nodeIndex, diff ];\n\
+\t\t\t\t\t\t\t\t\tbreak;\n\
+\t\t\t\t\t\t\t\t}\n\
+\t\t\t\t\t\t\t}\n\
+\n\
+\t\t\t\t\t\t// Use previously-cached element index if available\n\
+\t\t\t\t\t\t} else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) {\n\
+\t\t\t\t\t\t\tdiff = cache[1];\n\
+\n\
+\t\t\t\t\t\t// xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...)\n\
+\t\t\t\t\t\t} else {\n\
+\t\t\t\t\t\t\t// Use the same loop as above to seek `elem` from the start\n\
+\t\t\t\t\t\t\twhile ( (node = ++nodeIndex && node && node[ dir ] ||\n\
+\t\t\t\t\t\t\t\t(diff = nodeIndex = 0) || start.pop()) ) {\n\
+\n\
+\t\t\t\t\t\t\t\tif ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) {\n\
+\t\t\t\t\t\t\t\t\t// Cache the index of each encountered element\n\
+\t\t\t\t\t\t\t\t\tif ( useCache ) {\n\
+\t\t\t\t\t\t\t\t\t\t(node[ expando ] || (node[ expando ] = {}))[ type ] = [ dirruns, diff ];\n\
+\t\t\t\t\t\t\t\t\t}\n\
+\n\
+\t\t\t\t\t\t\t\t\tif ( node === elem ) {\n\
+\t\t\t\t\t\t\t\t\t\tbreak;\n\
+\t\t\t\t\t\t\t\t\t}\n\
+\t\t\t\t\t\t\t\t}\n\
+\t\t\t\t\t\t\t}\n\
+\t\t\t\t\t\t}\n\
+\n\
+\t\t\t\t\t\t// Incorporate the offset, then check against cycle size\n\
+\t\t\t\t\t\tdiff -= last;\n\
+\t\t\t\t\t\treturn diff === first || ( diff % first === 0 && diff / first >= 0 );\n\
+\t\t\t\t\t}\n\
+\t\t\t\t};\n\
+\t\t},\n\
+\n\
+\t\t\"PSEUDO\": function( pseudo, argument ) {\n\
+\t\t\t// pseudo-class names are case-insensitive\n\
+\t\t\t// http://www.w3.org/TR/selectors/#pseudo-classes\n\
+\t\t\t// Prioritize by case sensitivity in case custom pseudos are added with uppercase letters\n\
+\t\t\t// Remember that setFilters inherits from pseudos\n\
+\t\t\tvar args,\n\
+\t\t\t\tfn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||\n\
+\t\t\t\t\tSizzle.error( \"unsupported pseudo: \" + pseudo );\n\
+\n\
+\t\t\t// The user may use createPseudo to indicate that\n\
+\t\t\t// arguments are needed to create the filter function\n\
+\t\t\t// just as Sizzle does\n\
+\t\t\tif ( fn[ expando ] ) {\n\
+\t\t\t\treturn fn( argument );\n\
+\t\t\t}\n\
+\n\
+\t\t\t// But maintain support for old signatures\n\
+\t\t\tif ( fn.length > 1 ) {\n\
+\t\t\t\targs = [ pseudo, pseudo, \"\", argument ];\n\
+\t\t\t\treturn Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?\n\
+\t\t\t\t\tmarkFunction(function( seed, matches ) {\n\
+\t\t\t\t\t\tvar idx,\n\
+\t\t\t\t\t\t\tmatched = fn( seed, argument ),\n\
+\t\t\t\t\t\t\ti = matched.length;\n\
+\t\t\t\t\t\twhile ( i-- ) {\n\
+\t\t\t\t\t\t\tidx = indexOf.call( seed, matched[i] );\n\
+\t\t\t\t\t\t\tseed[ idx ] = !( matches[ idx ] = matched[i] );\n\
+\t\t\t\t\t\t}\n\
+\t\t\t\t\t}) :\n\
+\t\t\t\t\tfunction( elem ) {\n\
+\t\t\t\t\t\treturn fn( elem, 0, args );\n\
+\t\t\t\t\t};\n\
+\t\t\t}\n\
+\n\
+\t\t\treturn fn;\n\
+\t\t}\n\
+\t},\n\
+\n\
+\tpseudos: {\n\
+\t\t// Potentially complex pseudos\n\
+\t\t\"not\": markFunction(function( selector ) {\n\
+\t\t\t// Trim the selector passed to compile\n\
+\t\t\t// to avoid treating leading and trailing\n\
+\t\t\t// spaces as combinators\n\
+\t\t\tvar input = [],\n\
+\t\t\t\tresults = [],\n\
+\t\t\t\tmatcher = compile( selector.replace( rtrim, \"$1\" ) );\n\
+\n\
+\t\t\treturn matcher[ expando ] ?\n\
+\t\t\t\tmarkFunction(function( seed, matches, context, xml ) {\n\
+\t\t\t\t\tvar elem,\n\
+\t\t\t\t\t\tunmatched = matcher( seed, null, xml, [] ),\n\
+\t\t\t\t\t\ti = seed.length;\n\
+\n\
+\t\t\t\t\t// Match elements unmatched by `matcher`\n\
+\t\t\t\t\twhile ( i-- ) {\n\
+\t\t\t\t\t\tif ( (elem = unmatched[i]) ) {\n\
+\t\t\t\t\t\t\tseed[i] = !(matches[i] = elem);\n\
+\t\t\t\t\t\t}\n\
+\t\t\t\t\t}\n\
+\t\t\t\t}) :\n\
+\t\t\t\tfunction( elem, context, xml ) {\n\
+\t\t\t\t\tinput[0] = elem;\n\
+\t\t\t\t\tmatcher( input, null, xml, results );\n\
+\t\t\t\t\treturn !results.pop();\n\
+\t\t\t\t};\n\
+\t\t}),\n\
+\n\
+\t\t\"has\": markFunction(function( selector ) {\n\
+\t\t\treturn function( elem ) {\n\
+\t\t\t\treturn Sizzle( selector, elem ).length > 0;\n\
+\t\t\t};\n\
+\t\t}),\n\
+\n\
+\t\t\"contains\": markFunction(function( text ) {\n\
+\t\t\treturn function( elem ) {\n\
+\t\t\t\treturn ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1;\n\
+\t\t\t};\n\
+\t\t}),\n\
+\n\
+\t\t// \"Whether an element is represented by a :lang() selector\n\
+\t\t// is based solely on the element's language value\n\
+\t\t// being equal to the identifier C,\n\
+\t\t// or beginning with the identifier C immediately followed by \"-\".\n\
+\t\t// The matching of C against the element's language value is performed case-insensitively.\n\
+\t\t// The identifier C does not have to be a valid language name.\"\n\
+\t\t// http://www.w3.org/TR/selectors/#lang-pseudo\n\
+\t\t\"lang\": markFunction( function( lang ) {\n\
+\t\t\t// lang value must be a valid identifier\n\
+\t\t\tif ( !ridentifier.test(lang || \"\") ) {\n\
+\t\t\t\tSizzle.error( \"unsupported lang: \" + lang );\n\
+\t\t\t}\n\
+\t\t\tlang = lang.replace( runescape, funescape ).toLowerCase();\n\
+\t\t\treturn function( elem ) {\n\
+\t\t\t\tvar elemLang;\n\
+\t\t\t\tdo {\n\
+\t\t\t\t\tif ( (elemLang = documentIsHTML ?\n\
+\t\t\t\t\t\telem.lang :\n\
+\t\t\t\t\t\telem.getAttribute(\"xml:lang\") || elem.getAttribute(\"lang\")) ) {\n\
+\n\
+\t\t\t\t\t\telemLang = elemLang.toLowerCase();\n\
+\t\t\t\t\t\treturn elemLang === lang || elemLang.indexOf( lang + \"-\" ) === 0;\n\
+\t\t\t\t\t}\n\
+\t\t\t\t} while ( (elem = elem.parentNode) && elem.nodeType === 1 );\n\
+\t\t\t\treturn false;\n\
+\t\t\t};\n\
+\t\t}),\n\
+\n\
+\t\t// Miscellaneous\n\
+\t\t\"target\": function( elem ) {\n\
+\t\t\tvar hash = window.location && window.location.hash;\n\
+\t\t\treturn hash && hash.slice( 1 ) === elem.id;\n\
+\t\t},\n\
+\n\
+\t\t\"root\": function( elem ) {\n\
+\t\t\treturn elem === docElem;\n\
+\t\t},\n\
+\n\
+\t\t\"focus\": function( elem ) {\n\
+\t\t\treturn elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex);\n\
+\t\t},\n\
+\n\
+\t\t// Boolean properties\n\
+\t\t\"enabled\": function( elem ) {\n\
+\t\t\treturn elem.disabled === false;\n\
+\t\t},\n\
+\n\
+\t\t\"disabled\": function( elem ) {\n\
+\t\t\treturn elem.disabled === true;\n\
+\t\t},\n\
+\n\
+\t\t\"checked\": function( elem ) {\n\
+\t\t\t// In CSS3, :checked should return both checked and selected elements\n\
+\t\t\t// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked\n\
+\t\t\tvar nodeName = elem.nodeName.toLowerCase();\n\
+\t\t\treturn (nodeName === \"input\" && !!elem.checked) || (nodeName === \"option\" && !!elem.selected);\n\
+\t\t},\n\
+\n\
+\t\t\"selected\": function( elem ) {\n\
+\t\t\t// Accessing this property makes selected-by-default\n\
+\t\t\t// options in Safari work properly\n\
+\t\t\tif ( elem.parentNode ) {\n\
+\t\t\t\telem.parentNode.selectedIndex;\n\
+\t\t\t}\n\
+\n\
+\t\t\treturn elem.selected === true;\n\
+\t\t},\n\
+\n\
+\t\t// Contents\n\
+\t\t\"empty\": function( elem ) {\n\
+\t\t\t// http://www.w3.org/TR/selectors/#empty-pseudo\n\
+\t\t\t// :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),\n\
+\t\t\t// but not by others (comment: 8; processing instruction: 7; etc.)\n\
+\t\t\t// nodeType < 6 works because attributes (2) do not appear as children\n\
+\t\t\tfor ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {\n\
+\t\t\t\tif ( elem.nodeType < 6 ) {\n\
+\t\t\t\t\treturn false;\n\
+\t\t\t\t}\n\
+\t\t\t}\n\
+\t\t\treturn true;\n\
+\t\t},\n\
+\n\
+\t\t\"parent\": function( elem ) {\n\
+\t\t\treturn !Expr.pseudos[\"empty\"]( elem );\n\
+\t\t},\n\
+\n\
+\t\t// Element/input types\n\
+\t\t\"header\": function( elem ) {\n\
+\t\t\treturn rheader.test( elem.nodeName );\n\
+\t\t},\n\
+\n\
+\t\t\"input\": function( elem ) {\n\
+\t\t\treturn rinputs.test( elem.nodeName );\n\
+\t\t},\n\
+\n\
+\t\t\"button\": function( elem ) {\n\
+\t\t\tvar name = elem.nodeName.toLowerCase();\n\
+\t\t\treturn name === \"input\" && elem.type === \"button\" || name === \"button\";\n\
+\t\t},\n\
+\n\
+\t\t\"text\": function( elem ) {\n\
+\t\t\tvar attr;\n\
+\t\t\treturn elem.nodeName.toLowerCase() === \"input\" &&\n\
+\t\t\t\telem.type === \"text\" &&\n\
+\n\
+\t\t\t\t// Support: IE<8\n\
+\t\t\t\t// New HTML5 attribute values (e.g., \"search\") appear with elem.type === \"text\"\n\
+\t\t\t\t( (attr = elem.getAttribute(\"type\")) == null || attr.toLowerCase() === \"text\" );\n\
+\t\t},\n\
+\n\
+\t\t// Position-in-collection\n\
+\t\t\"first\": createPositionalPseudo(function() {\n\
+\t\t\treturn [ 0 ];\n\
+\t\t}),\n\
+\n\
+\t\t\"last\": createPositionalPseudo(function( matchIndexes, length ) {\n\
+\t\t\treturn [ length - 1 ];\n\
+\t\t}),\n\
+\n\
+\t\t\"eq\": createPositionalPseudo(function( matchIndexes, length, argument ) {\n\
+\t\t\treturn [ argument < 0 ? argument + length : argument ];\n\
+\t\t}),\n\
+\n\
+\t\t\"even\": createPositionalPseudo(function( matchIndexes, length ) {\n\
+\t\t\tvar i = 0;\n\
+\t\t\tfor ( ; i < length; i += 2 ) {\n\
+\t\t\t\tmatchIndexes.push( i );\n\
+\t\t\t}\n\
+\t\t\treturn matchIndexes;\n\
+\t\t}),\n\
+\n\
+\t\t\"odd\": createPositionalPseudo(function( matchIndexes, length ) {\n\
+\t\t\tvar i = 1;\n\
+\t\t\tfor ( ; i < length; i += 2 ) {\n\
+\t\t\t\tmatchIndexes.push( i );\n\
+\t\t\t}\n\
+\t\t\treturn matchIndexes;\n\
+\t\t}),\n\
+\n\
+\t\t\"lt\": createPositionalPseudo(function( matchIndexes, length, argument ) {\n\
+\t\t\tvar i = argument < 0 ? argument + length : argument;\n\
+\t\t\tfor ( ; --i >= 0; ) {\n\
+\t\t\t\tmatchIndexes.push( i );\n\
+\t\t\t}\n\
+\t\t\treturn matchIndexes;\n\
+\t\t}),\n\
+\n\
+\t\t\"gt\": createPositionalPseudo(function( matchIndexes, length, argument ) {\n\
+\t\t\tvar i = argument < 0 ? argument + length : argument;\n\
+\t\t\tfor ( ; ++i < length; ) {\n\
+\t\t\t\tmatchIndexes.push( i );\n\
+\t\t\t}\n\
+\t\t\treturn matchIndexes;\n\
+\t\t})\n\
+\t}\n\
};\n\
\n\
-// Check to see if the browser returns elements by name when\n\
-// querying by getElementById (and provide a workaround)\n\
-(function(){\n\
- // We're going to inject a fake input element with a specified name\n\
- var form = document.createElement(\"div\"),\n\
- id = \"script\" + (new Date()).getTime(),\n\
- root = document.documentElement;\n\
+Expr.pseudos[\"nth\"] = Expr.pseudos[\"eq\"];\n\
\n\
- form.innerHTML = \"\";\n\
-\n\
- // Inject it into the root element, check its status, and remove it quickly\n\
- root.insertBefore( form, root.firstChild );\n\
-\n\
- // The workaround has to do additional checks after a getElementById\n\
- // Which slows things down for other browsers (hence the branching)\n\
- if ( document.getElementById( id ) ) {\n\
- Expr.find.ID = function( match, context, isXML ) {\n\
- if ( typeof context.getElementById !== \"undefined\" && !isXML ) {\n\
- var m = context.getElementById(match[1]);\n\
-\n\
- return m ?\n\
- m.id === match[1] || typeof m.getAttributeNode !== \"undefined\" && m.getAttributeNode(\"id\").nodeValue === match[1] ?\n\
- [m] :\n\
- undefined :\n\
- [];\n\
- }\n\
- };\n\
-\n\
- Expr.filter.ID = function( elem, match ) {\n\
- var node = typeof elem.getAttributeNode !== \"undefined\" && elem.getAttributeNode(\"id\");\n\
-\n\
- return elem.nodeType === 1 && node && node.nodeValue === match;\n\
- };\n\
- }\n\
-\n\
- root.removeChild( form );\n\
-\n\
- // release memory in IE\n\
- root = form = null;\n\
-})();\n\
-\n\
-(function(){\n\
- // Check to see if the browser returns only elements\n\
- // when doing getElementsByTagName(\"*\")\n\
-\n\
- // Create a fake element\n\
- var div = document.createElement(\"div\");\n\
- div.appendChild( document.createComment(\"\") );\n\
-\n\
- // Make sure no comments are found\n\
- if ( div.getElementsByTagName(\"*\").length > 0 ) {\n\
- Expr.find.TAG = function( match, context ) {\n\
- var results = context.getElementsByTagName( match[1] );\n\
-\n\
- // Filter out possible comments\n\
- if ( match[1] === \"*\" ) {\n\
- var tmp = [];\n\
-\n\
- for ( var i = 0; results[i]; i++ ) {\n\
- if ( results[i].nodeType === 1 ) {\n\
- tmp.push( results[i] );\n\
- }\n\
- }\n\
-\n\
- results = tmp;\n\
- }\n\
-\n\
- return results;\n\
- };\n\
- }\n\
-\n\
- // Check to see if an attribute returns normalized href attributes\n\
- div.innerHTML = \"\";\n\
-\n\
- if ( div.firstChild && typeof div.firstChild.getAttribute !== \"undefined\" &&\n\
- div.firstChild.getAttribute(\"href\") !== \"#\" ) {\n\
-\n\
- Expr.attrHandle.href = function( elem ) {\n\
- return elem.getAttribute( \"href\", 2 );\n\
- };\n\
- }\n\
-\n\
- // release memory in IE\n\
- div = null;\n\
-})();\n\
-\n\
-if ( document.querySelectorAll ) {\n\
- (function(){\n\
- var oldSizzle = Sizzle,\n\
- div = document.createElement(\"div\"),\n\
- id = \"__sizzle__\";\n\
-\n\
- div.innerHTML = \"\";\n\
-\n\
- // Safari can't handle uppercase or unicode characters when\n\
- // in quirks mode.\n\
- if ( div.querySelectorAll && div.querySelectorAll(\".TEST\").length === 0 ) {\n\
- return;\n\
- }\n\
- \n\
- Sizzle = function( query, context, extra, seed ) {\n\
- context = context || document;\n\
-\n\
- // Only use querySelectorAll on non-XML documents\n\
- // (ID selectors don't work in non-HTML documents)\n\
- if ( !seed && !Sizzle.isXML(context) ) {\n\
- // See if we find a selector to speed up\n\
- var match = /^(\\w+$)|^\\.([\\w\\-]+$)|^#([\\w\\-]+$)/.exec( query );\n\
- \n\
- if ( match && (context.nodeType === 1 || context.nodeType === 9) ) {\n\
- // Speed-up: Sizzle(\"TAG\")\n\
- if ( match[1] ) {\n\
- return makeArray( context.getElementsByTagName( query ), extra );\n\
- \n\
- // Speed-up: Sizzle(\".CLASS\")\n\
- } else if ( match[2] && Expr.find.CLASS && context.getElementsByClassName ) {\n\
- return makeArray( context.getElementsByClassName( match[2] ), extra );\n\
- }\n\
- }\n\
- \n\
- if ( context.nodeType === 9 ) {\n\
- // Speed-up: Sizzle(\"body\")\n\
- // The body element only exists once, optimize finding it\n\
- if ( query === \"body\" && context.body ) {\n\
- return makeArray( [ context.body ], extra );\n\
- \n\
- // Speed-up: Sizzle(\"#ID\")\n\
- } else if ( match && match[3] ) {\n\
- var elem = context.getElementById( match[3] );\n\
-\n\
- // Check parentNode to catch when Blackberry 4.6 returns\n\
- // nodes that are no longer in the document #6963\n\
- if ( elem && elem.parentNode ) {\n\
- // Handle the case where IE and Opera return items\n\
- // by name instead of ID\n\
- if ( elem.id === match[3] ) {\n\
- return makeArray( [ elem ], extra );\n\
- }\n\
- \n\
- } else {\n\
- return makeArray( [], extra );\n\
- }\n\
- }\n\
- \n\
- try {\n\
- return makeArray( context.querySelectorAll(query), extra );\n\
- } catch(qsaError) {}\n\
-\n\
- // qSA works strangely on Element-rooted queries\n\
- // We can work around this by specifying an extra ID on the root\n\
- // and working up from there (Thanks to Andrew Dupont for the technique)\n\
- // IE 8 doesn't work on object elements\n\
- } else if ( context.nodeType === 1 && context.nodeName.toLowerCase() !== \"object\" ) {\n\
- var oldContext = context,\n\
- old = context.getAttribute( \"id\" ),\n\
- nid = old || id,\n\
- hasParent = context.parentNode,\n\
- relativeHierarchySelector = /^\\s*[+~]/.test( query );\n\
-\n\
- if ( !old ) {\n\
- context.setAttribute( \"id\", nid );\n\
- } else {\n\
- nid = nid.replace( /'/g, \"\\\\$&\" );\n\
- }\n\
- if ( relativeHierarchySelector && hasParent ) {\n\
- context = context.parentNode;\n\
- }\n\
-\n\
- try {\n\
- if ( !relativeHierarchySelector || hasParent ) {\n\
- return makeArray( context.querySelectorAll( \"[id='\" + nid + \"'] \" + query ), extra );\n\
- }\n\
-\n\
- } catch(pseudoError) {\n\
- } finally {\n\
- if ( !old ) {\n\
- oldContext.removeAttribute( \"id\" );\n\
- }\n\
- }\n\
- }\n\
- }\n\
- \n\
- return oldSizzle(query, context, extra, seed);\n\
- };\n\
-\n\
- for ( var prop in oldSizzle ) {\n\
- Sizzle[ prop ] = oldSizzle[ prop ];\n\
- }\n\
-\n\
- // release memory in IE\n\
- div = null;\n\
- })();\n\
+// Add button/input type pseudos\n\
+for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {\n\
+\tExpr.pseudos[ i ] = createInputPseudo( i );\n\
+}\n\
+for ( i in { submit: true, reset: true } ) {\n\
+\tExpr.pseudos[ i ] = createButtonPseudo( i );\n\
}\n\
\n\
-(function(){\n\
- var html = document.documentElement,\n\
- matches = html.matchesSelector || html.mozMatchesSelector || html.webkitMatchesSelector || html.msMatchesSelector;\n\
+// Easy API for creating new setFilters\n\
+function setFilters() {}\n\
+setFilters.prototype = Expr.filters = Expr.pseudos;\n\
+Expr.setFilters = new setFilters();\n\
\n\
- if ( matches ) {\n\
- // Check to see if it's possible to do matchesSelector\n\
- // on a disconnected node (IE 9 fails this)\n\
- var disconnectedMatch = !matches.call( document.createElement( \"div\" ), \"div\" ),\n\
- pseudoWorks = false;\n\
+tokenize = Sizzle.tokenize = function( selector, parseOnly ) {\n\
+\tvar matched, match, tokens, type,\n\
+\t\tsoFar, groups, preFilters,\n\
+\t\tcached = tokenCache[ selector + \" \" ];\n\
\n\
- try {\n\
- // This should fail with an exception\n\
- // Gecko does not error, returns false instead\n\
- matches.call( document.documentElement, \"[test!='']:sizzle\" );\n\
- \n\
- } catch( pseudoError ) {\n\
- pseudoWorks = true;\n\
- }\n\
+\tif ( cached ) {\n\
+\t\treturn parseOnly ? 0 : cached.slice( 0 );\n\
+\t}\n\
\n\
- Sizzle.matchesSelector = function( node, expr ) {\n\
- // Make sure that attribute selectors are quoted\n\
- expr = expr.replace(/\\=\\s*([^'\"\\]]*)\\s*\\]/g, \"='$1']\");\n\
+\tsoFar = selector;\n\
+\tgroups = [];\n\
+\tpreFilters = Expr.preFilter;\n\
\n\
- if ( !Sizzle.isXML( node ) ) {\n\
- try { \n\
- if ( pseudoWorks || !Expr.match.PSEUDO.test( expr ) && !/!=/.test( expr ) ) {\n\
- var ret = matches.call( node, expr );\n\
+\twhile ( soFar ) {\n\
\n\
- // IE 9's matchesSelector returns false on disconnected nodes\n\
- if ( ret || !disconnectedMatch ||\n\
- // As well, disconnected nodes are said to be in a document\n\
- // fragment in IE 9, so check for that\n\
- node.document && node.document.nodeType !== 11 ) {\n\
- return ret;\n\
- }\n\
- }\n\
- } catch(e) {}\n\
- }\n\
+\t\t// Comma and first run\n\
+\t\tif ( !matched || (match = rcomma.exec( soFar )) ) {\n\
+\t\t\tif ( match ) {\n\
+\t\t\t\t// Don't consume trailing commas as valid\n\
+\t\t\t\tsoFar = soFar.slice( match[0].length ) || soFar;\n\
+\t\t\t}\n\
+\t\t\tgroups.push( (tokens = []) );\n\
+\t\t}\n\
\n\
- return Sizzle(expr, null, null, [node]).length > 0;\n\
- };\n\
- }\n\
-})();\n\
+\t\tmatched = false;\n\
\n\
-(function(){\n\
- var div = document.createElement(\"div\");\n\
+\t\t// Combinators\n\
+\t\tif ( (match = rcombinators.exec( soFar )) ) {\n\
+\t\t\tmatched = match.shift();\n\
+\t\t\ttokens.push({\n\
+\t\t\t\tvalue: matched,\n\
+\t\t\t\t// Cast descendant combinators to space\n\
+\t\t\t\ttype: match[0].replace( rtrim, \" \" )\n\
+\t\t\t});\n\
+\t\t\tsoFar = soFar.slice( matched.length );\n\
+\t\t}\n\
\n\
- div.innerHTML = \"\";\n\
+\t\t// Filters\n\
+\t\tfor ( type in Expr.filter ) {\n\
+\t\t\tif ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] ||\n\
+\t\t\t\t(match = preFilters[ type ]( match ))) ) {\n\
+\t\t\t\tmatched = match.shift();\n\
+\t\t\t\ttokens.push({\n\
+\t\t\t\t\tvalue: matched,\n\
+\t\t\t\t\ttype: type,\n\
+\t\t\t\t\tmatches: match\n\
+\t\t\t\t});\n\
+\t\t\t\tsoFar = soFar.slice( matched.length );\n\
+\t\t\t}\n\
+\t\t}\n\
\n\
- // Opera can't find a second classname (in 9.6)\n\
- // Also, make sure that getElementsByClassName actually exists\n\
- if ( !div.getElementsByClassName || div.getElementsByClassName(\"e\").length === 0 ) {\n\
- return;\n\
- }\n\
+\t\tif ( !matched ) {\n\
+\t\t\tbreak;\n\
+\t\t}\n\
+\t}\n\
\n\
- // Safari caches class attributes, doesn't catch changes (in 3.2)\n\
- div.lastChild.className = \"e\";\n\
-\n\
- if ( div.getElementsByClassName(\"e\").length === 1 ) {\n\
- return;\n\
- }\n\
- \n\
- Expr.order.splice(1, 0, \"CLASS\");\n\
- Expr.find.CLASS = function( match, context, isXML ) {\n\
- if ( typeof context.getElementsByClassName !== \"undefined\" && !isXML ) {\n\
- return context.getElementsByClassName(match[1]);\n\
- }\n\
- };\n\
-\n\
- // release memory in IE\n\
- div = null;\n\
-})();\n\
-\n\
-function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {\n\
- for ( var i = 0, l = checkSet.length; i < l; i++ ) {\n\
- var elem = checkSet[i];\n\
-\n\
- if ( elem ) {\n\
- var match = false;\n\
-\n\
- elem = elem[dir];\n\
-\n\
- while ( elem ) {\n\
- if ( elem.sizcache === doneName ) {\n\
- match = checkSet[elem.sizset];\n\
- break;\n\
- }\n\
-\n\
- if ( elem.nodeType === 1 && !isXML ){\n\
- elem.sizcache = doneName;\n\
- elem.sizset = i;\n\
- }\n\
-\n\
- if ( elem.nodeName.toLowerCase() === cur ) {\n\
- match = elem;\n\
- break;\n\
- }\n\
-\n\
- elem = elem[dir];\n\
- }\n\
-\n\
- checkSet[i] = match;\n\
- }\n\
- }\n\
-}\n\
-\n\
-function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {\n\
- for ( var i = 0, l = checkSet.length; i < l; i++ ) {\n\
- var elem = checkSet[i];\n\
-\n\
- if ( elem ) {\n\
- var match = false;\n\
- \n\
- elem = elem[dir];\n\
-\n\
- while ( elem ) {\n\
- if ( elem.sizcache === doneName ) {\n\
- match = checkSet[elem.sizset];\n\
- break;\n\
- }\n\
-\n\
- if ( elem.nodeType === 1 ) {\n\
- if ( !isXML ) {\n\
- elem.sizcache = doneName;\n\
- elem.sizset = i;\n\
- }\n\
-\n\
- if ( typeof cur !== \"string\" ) {\n\
- if ( elem === cur ) {\n\
- match = true;\n\
- break;\n\
- }\n\
-\n\
- } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {\n\
- match = elem;\n\
- break;\n\
- }\n\
- }\n\
-\n\
- elem = elem[dir];\n\
- }\n\
-\n\
- checkSet[i] = match;\n\
- }\n\
- }\n\
-}\n\
-\n\
-if ( document.documentElement.contains ) {\n\
- Sizzle.contains = function( a, b ) {\n\
- return a !== b && (a.contains ? a.contains(b) : true);\n\
- };\n\
-\n\
-} else if ( document.documentElement.compareDocumentPosition ) {\n\
- Sizzle.contains = function( a, b ) {\n\
- return !!(a.compareDocumentPosition(b) & 16);\n\
- };\n\
-\n\
-} else {\n\
- Sizzle.contains = function() {\n\
- return false;\n\
- };\n\
-}\n\
-\n\
-Sizzle.isXML = function( elem ) {\n\
- // documentElement is verified for cases where it doesn't yet exist\n\
- // (such as loading iframes in IE - #4833) \n\
- var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement;\n\
-\n\
- return documentElement ? documentElement.nodeName !== \"HTML\" : false;\n\
+\t// Return the length of the invalid excess\n\
+\t// if we're just parsing\n\
+\t// Otherwise, throw an error or return tokens\n\
+\treturn parseOnly ?\n\
+\t\tsoFar.length :\n\
+\t\tsoFar ?\n\
+\t\t\tSizzle.error( selector ) :\n\
+\t\t\t// Cache the tokens\n\
+\t\t\ttokenCache( selector, groups ).slice( 0 );\n\
};\n\
\n\
-var posProcess = function( selector, context ) {\n\
- var match,\n\
- tmpSet = [],\n\
- later = \"\",\n\
- root = context.nodeType ? [context] : context;\n\
+function toSelector( tokens ) {\n\
+\tvar i = 0,\n\
+\t\tlen = tokens.length,\n\
+\t\tselector = \"\";\n\
+\tfor ( ; i < len; i++ ) {\n\
+\t\tselector += tokens[i].value;\n\
+\t}\n\
+\treturn selector;\n\
+}\n\
\n\
- // Position selectors must be done after the filter\n\
- // And so must :not(positional) so we move all PSEUDOs to the end\n\
- while ( (match = Expr.match.PSEUDO.exec( selector )) ) {\n\
- later += match[0];\n\
- selector = selector.replace( Expr.match.PSEUDO, \"\" );\n\
- }\n\
+function addCombinator( matcher, combinator, base ) {\n\
+\tvar dir = combinator.dir,\n\
+\t\tcheckNonElements = base && dir === \"parentNode\",\n\
+\t\tdoneName = done++;\n\
\n\
- selector = Expr.relative[selector] ? selector + \"*\" : selector;\n\
+\treturn combinator.first ?\n\
+\t\t// Check against closest ancestor/preceding element\n\
+\t\tfunction( elem, context, xml ) {\n\
+\t\t\twhile ( (elem = elem[ dir ]) ) {\n\
+\t\t\t\tif ( elem.nodeType === 1 || checkNonElements ) {\n\
+\t\t\t\t\treturn matcher( elem, context, xml );\n\
+\t\t\t\t}\n\
+\t\t\t}\n\
+\t\t} :\n\
\n\
- for ( var i = 0, l = root.length; i < l; i++ ) {\n\
- Sizzle( selector, root[i], tmpSet );\n\
- }\n\
+\t\t// Check against all ancestor/preceding elements\n\
+\t\tfunction( elem, context, xml ) {\n\
+\t\t\tvar oldCache, outerCache,\n\
+\t\t\t\tnewCache = [ dirruns, doneName ];\n\
\n\
- return Sizzle.filter( later, tmpSet );\n\
+\t\t\t// We can't set arbitrary data on XML nodes, so they don't benefit from dir caching\n\
+\t\t\tif ( xml ) {\n\
+\t\t\t\twhile ( (elem = elem[ dir ]) ) {\n\
+\t\t\t\t\tif ( elem.nodeType === 1 || checkNonElements ) {\n\
+\t\t\t\t\t\tif ( matcher( elem, context, xml ) ) {\n\
+\t\t\t\t\t\t\treturn true;\n\
+\t\t\t\t\t\t}\n\
+\t\t\t\t\t}\n\
+\t\t\t\t}\n\
+\t\t\t} else {\n\
+\t\t\t\twhile ( (elem = elem[ dir ]) ) {\n\
+\t\t\t\t\tif ( elem.nodeType === 1 || checkNonElements ) {\n\
+\t\t\t\t\t\touterCache = elem[ expando ] || (elem[ expando ] = {});\n\
+\t\t\t\t\t\tif ( (oldCache = outerCache[ dir ]) &&\n\
+\t\t\t\t\t\t\toldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) {\n\
+\n\
+\t\t\t\t\t\t\t// Assign to newCache so results back-propagate to previous elements\n\
+\t\t\t\t\t\t\treturn (newCache[ 2 ] = oldCache[ 2 ]);\n\
+\t\t\t\t\t\t} else {\n\
+\t\t\t\t\t\t\t// Reuse newcache so results back-propagate to previous elements\n\
+\t\t\t\t\t\t\touterCache[ dir ] = newCache;\n\
+\n\
+\t\t\t\t\t\t\t// A match means we're done; a fail means we have to keep checking\n\
+\t\t\t\t\t\t\tif ( (newCache[ 2 ] = matcher( elem, context, xml )) ) {\n\
+\t\t\t\t\t\t\t\treturn true;\n\
+\t\t\t\t\t\t\t}\n\
+\t\t\t\t\t\t}\n\
+\t\t\t\t\t}\n\
+\t\t\t\t}\n\
+\t\t\t}\n\
+\t\t};\n\
+}\n\
+\n\
+function elementMatcher( matchers ) {\n\
+\treturn matchers.length > 1 ?\n\
+\t\tfunction( elem, context, xml ) {\n\
+\t\t\tvar i = matchers.length;\n\
+\t\t\twhile ( i-- ) {\n\
+\t\t\t\tif ( !matchers[i]( elem, context, xml ) ) {\n\
+\t\t\t\t\treturn false;\n\
+\t\t\t\t}\n\
+\t\t\t}\n\
+\t\t\treturn true;\n\
+\t\t} :\n\
+\t\tmatchers[0];\n\
+}\n\
+\n\
+function multipleContexts( selector, contexts, results ) {\n\
+\tvar i = 0,\n\
+\t\tlen = contexts.length;\n\
+\tfor ( ; i < len; i++ ) {\n\
+\t\tSizzle( selector, contexts[i], results );\n\
+\t}\n\
+\treturn results;\n\
+}\n\
+\n\
+function condense( unmatched, map, filter, context, xml ) {\n\
+\tvar elem,\n\
+\t\tnewUnmatched = [],\n\
+\t\ti = 0,\n\
+\t\tlen = unmatched.length,\n\
+\t\tmapped = map != null;\n\
+\n\
+\tfor ( ; i < len; i++ ) {\n\
+\t\tif ( (elem = unmatched[i]) ) {\n\
+\t\t\tif ( !filter || filter( elem, context, xml ) ) {\n\
+\t\t\t\tnewUnmatched.push( elem );\n\
+\t\t\t\tif ( mapped ) {\n\
+\t\t\t\t\tmap.push( i );\n\
+\t\t\t\t}\n\
+\t\t\t}\n\
+\t\t}\n\
+\t}\n\
+\n\
+\treturn newUnmatched;\n\
+}\n\
+\n\
+function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {\n\
+\tif ( postFilter && !postFilter[ expando ] ) {\n\
+\t\tpostFilter = setMatcher( postFilter );\n\
+\t}\n\
+\tif ( postFinder && !postFinder[ expando ] ) {\n\
+\t\tpostFinder = setMatcher( postFinder, postSelector );\n\
+\t}\n\
+\treturn markFunction(function( seed, results, context, xml ) {\n\
+\t\tvar temp, i, elem,\n\
+\t\t\tpreMap = [],\n\
+\t\t\tpostMap = [],\n\
+\t\t\tpreexisting = results.length,\n\
+\n\
+\t\t\t// Get initial elements from seed or context\n\
+\t\t\telems = seed || multipleContexts( selector || \"*\", context.nodeType ? [ context ] : context, [] ),\n\
+\n\
+\t\t\t// Prefilter to get matcher input, preserving a map for seed-results synchronization\n\
+\t\t\tmatcherIn = preFilter && ( seed || !selector ) ?\n\
+\t\t\t\tcondense( elems, preMap, preFilter, context, xml ) :\n\
+\t\t\t\telems,\n\
+\n\
+\t\t\tmatcherOut = matcher ?\n\
+\t\t\t\t// If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,\n\
+\t\t\t\tpostFinder || ( seed ? preFilter : preexisting || postFilter ) ?\n\
+\n\
+\t\t\t\t\t// ...intermediate processing is necessary\n\
+\t\t\t\t\t[] :\n\
+\n\
+\t\t\t\t\t// ...otherwise use results directly\n\
+\t\t\t\t\tresults :\n\
+\t\t\t\tmatcherIn;\n\
+\n\
+\t\t// Find primary matches\n\
+\t\tif ( matcher ) {\n\
+\t\t\tmatcher( matcherIn, matcherOut, context, xml );\n\
+\t\t}\n\
+\n\
+\t\t// Apply postFilter\n\
+\t\tif ( postFilter ) {\n\
+\t\t\ttemp = condense( matcherOut, postMap );\n\
+\t\t\tpostFilter( temp, [], context, xml );\n\
+\n\
+\t\t\t// Un-match failing elements by moving them back to matcherIn\n\
+\t\t\ti = temp.length;\n\
+\t\t\twhile ( i-- ) {\n\
+\t\t\t\tif ( (elem = temp[i]) ) {\n\
+\t\t\t\t\tmatcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem);\n\
+\t\t\t\t}\n\
+\t\t\t}\n\
+\t\t}\n\
+\n\
+\t\tif ( seed ) {\n\
+\t\t\tif ( postFinder || preFilter ) {\n\
+\t\t\t\tif ( postFinder ) {\n\
+\t\t\t\t\t// Get the final matcherOut by condensing this intermediate into postFinder contexts\n\
+\t\t\t\t\ttemp = [];\n\
+\t\t\t\t\ti = matcherOut.length;\n\
+\t\t\t\t\twhile ( i-- ) {\n\
+\t\t\t\t\t\tif ( (elem = matcherOut[i]) ) {\n\
+\t\t\t\t\t\t\t// Restore matcherIn since elem is not yet a final match\n\
+\t\t\t\t\t\t\ttemp.push( (matcherIn[i] = elem) );\n\
+\t\t\t\t\t\t}\n\
+\t\t\t\t\t}\n\
+\t\t\t\t\tpostFinder( null, (matcherOut = []), temp, xml );\n\
+\t\t\t\t}\n\
+\n\
+\t\t\t\t// Move matched elements from seed to results to keep them synchronized\n\
+\t\t\t\ti = matcherOut.length;\n\
+\t\t\t\twhile ( i-- ) {\n\
+\t\t\t\t\tif ( (elem = matcherOut[i]) &&\n\
+\t\t\t\t\t\t(temp = postFinder ? indexOf.call( seed, elem ) : preMap[i]) > -1 ) {\n\
+\n\
+\t\t\t\t\t\tseed[temp] = !(results[temp] = elem);\n\
+\t\t\t\t\t}\n\
+\t\t\t\t}\n\
+\t\t\t}\n\
+\n\
+\t\t// Add elements to results, through postFinder if defined\n\
+\t\t} else {\n\
+\t\t\tmatcherOut = condense(\n\
+\t\t\t\tmatcherOut === results ?\n\
+\t\t\t\t\tmatcherOut.splice( preexisting, matcherOut.length ) :\n\
+\t\t\t\t\tmatcherOut\n\
+\t\t\t);\n\
+\t\t\tif ( postFinder ) {\n\
+\t\t\t\tpostFinder( null, results, matcherOut, xml );\n\
+\t\t\t} else {\n\
+\t\t\t\tpush.apply( results, matcherOut );\n\
+\t\t\t}\n\
+\t\t}\n\
+\t});\n\
+}\n\
+\n\
+function matcherFromTokens( tokens ) {\n\
+\tvar checkContext, matcher, j,\n\
+\t\tlen = tokens.length,\n\
+\t\tleadingRelative = Expr.relative[ tokens[0].type ],\n\
+\t\timplicitRelative = leadingRelative || Expr.relative[\" \"],\n\
+\t\ti = leadingRelative ? 1 : 0,\n\
+\n\
+\t\t// The foundational matcher ensures that elements are reachable from top-level context(s)\n\
+\t\tmatchContext = addCombinator( function( elem ) {\n\
+\t\t\treturn elem === checkContext;\n\
+\t\t}, implicitRelative, true ),\n\
+\t\tmatchAnyContext = addCombinator( function( elem ) {\n\
+\t\t\treturn indexOf.call( checkContext, elem ) > -1;\n\
+\t\t}, implicitRelative, true ),\n\
+\t\tmatchers = [ function( elem, context, xml ) {\n\
+\t\t\treturn ( !leadingRelative && ( xml || context !== outermostContext ) ) || (\n\
+\t\t\t\t(checkContext = context).nodeType ?\n\
+\t\t\t\t\tmatchContext( elem, context, xml ) :\n\
+\t\t\t\t\tmatchAnyContext( elem, context, xml ) );\n\
+\t\t} ];\n\
+\n\
+\tfor ( ; i < len; i++ ) {\n\
+\t\tif ( (matcher = Expr.relative[ tokens[i].type ]) ) {\n\
+\t\t\tmatchers = [ addCombinator(elementMatcher( matchers ), matcher) ];\n\
+\t\t} else {\n\
+\t\t\tmatcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches );\n\
+\n\
+\t\t\t// Return special upon seeing a positional matcher\n\
+\t\t\tif ( matcher[ expando ] ) {\n\
+\t\t\t\t// Find the next relative operator (if any) for proper handling\n\
+\t\t\t\tj = ++i;\n\
+\t\t\t\tfor ( ; j < len; j++ ) {\n\
+\t\t\t\t\tif ( Expr.relative[ tokens[j].type ] ) {\n\
+\t\t\t\t\t\tbreak;\n\
+\t\t\t\t\t}\n\
+\t\t\t\t}\n\
+\t\t\t\treturn setMatcher(\n\
+\t\t\t\t\ti > 1 && elementMatcher( matchers ),\n\
+\t\t\t\t\ti > 1 && toSelector(\n\
+\t\t\t\t\t\t// If the preceding token was a descendant combinator, insert an implicit any-element `*`\n\
+\t\t\t\t\t\ttokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === \" \" ? \"*\" : \"\" })\n\
+\t\t\t\t\t).replace( rtrim, \"$1\" ),\n\
+\t\t\t\t\tmatcher,\n\
+\t\t\t\t\ti < j && matcherFromTokens( tokens.slice( i, j ) ),\n\
+\t\t\t\t\tj < len && matcherFromTokens( (tokens = tokens.slice( j )) ),\n\
+\t\t\t\t\tj < len && toSelector( tokens )\n\
+\t\t\t\t);\n\
+\t\t\t}\n\
+\t\t\tmatchers.push( matcher );\n\
+\t\t}\n\
+\t}\n\
+\n\
+\treturn elementMatcher( matchers );\n\
+}\n\
+\n\
+function matcherFromGroupMatchers( elementMatchers, setMatchers ) {\n\
+\tvar bySet = setMatchers.length > 0,\n\
+\t\tbyElement = elementMatchers.length > 0,\n\
+\t\tsuperMatcher = function( seed, context, xml, results, outermost ) {\n\
+\t\t\tvar elem, j, matcher,\n\
+\t\t\t\tmatchedCount = 0,\n\
+\t\t\t\ti = \"0\",\n\
+\t\t\t\tunmatched = seed && [],\n\
+\t\t\t\tsetMatched = [],\n\
+\t\t\t\tcontextBackup = outermostContext,\n\
+\t\t\t\t// We must always have either seed elements or outermost context\n\
+\t\t\t\telems = seed || byElement && Expr.find[\"TAG\"]( \"*\", outermost ),\n\
+\t\t\t\t// Use integer dirruns iff this is the outermost matcher\n\
+\t\t\t\tdirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1),\n\
+\t\t\t\tlen = elems.length;\n\
+\n\
+\t\t\tif ( outermost ) {\n\
+\t\t\t\toutermostContext = context !== document && context;\n\
+\t\t\t}\n\
+\n\
+\t\t\t// Add elements passing elementMatchers directly to results\n\
+\t\t\t// Keep `i` a string if there are no elements so `matchedCount` will be \"00\" below\n\
+\t\t\t// Support: IE<9, Safari\n\
+\t\t\t// Tolerate NodeList properties (IE: \"length\"; Safari: ) matching elements by id\n\
+\t\t\tfor ( ; i !== len && (elem = elems[i]) != null; i++ ) {\n\
+\t\t\t\tif ( byElement && elem ) {\n\
+\t\t\t\t\tj = 0;\n\
+\t\t\t\t\twhile ( (matcher = elementMatchers[j++]) ) {\n\
+\t\t\t\t\t\tif ( matcher( elem, context, xml ) ) {\n\
+\t\t\t\t\t\t\tresults.push( elem );\n\
+\t\t\t\t\t\t\tbreak;\n\
+\t\t\t\t\t\t}\n\
+\t\t\t\t\t}\n\
+\t\t\t\t\tif ( outermost ) {\n\
+\t\t\t\t\t\tdirruns = dirrunsUnique;\n\
+\t\t\t\t\t}\n\
+\t\t\t\t}\n\
+\n\
+\t\t\t\t// Track unmatched elements for set filters\n\
+\t\t\t\tif ( bySet ) {\n\
+\t\t\t\t\t// They will have gone through all possible matchers\n\
+\t\t\t\t\tif ( (elem = !matcher && elem) ) {\n\
+\t\t\t\t\t\tmatchedCount--;\n\
+\t\t\t\t\t}\n\
+\n\
+\t\t\t\t\t// Lengthen the array for every element, matched or not\n\
+\t\t\t\t\tif ( seed ) {\n\
+\t\t\t\t\t\tunmatched.push( elem );\n\
+\t\t\t\t\t}\n\
+\t\t\t\t}\n\
+\t\t\t}\n\
+\n\
+\t\t\t// Apply set filters to unmatched elements\n\
+\t\t\tmatchedCount += i;\n\
+\t\t\tif ( bySet && i !== matchedCount ) {\n\
+\t\t\t\tj = 0;\n\
+\t\t\t\twhile ( (matcher = setMatchers[j++]) ) {\n\
+\t\t\t\t\tmatcher( unmatched, setMatched, context, xml );\n\
+\t\t\t\t}\n\
+\n\
+\t\t\t\tif ( seed ) {\n\
+\t\t\t\t\t// Reintegrate element matches to eliminate the need for sorting\n\
+\t\t\t\t\tif ( matchedCount > 0 ) {\n\
+\t\t\t\t\t\twhile ( i-- ) {\n\
+\t\t\t\t\t\t\tif ( !(unmatched[i] || setMatched[i]) ) {\n\
+\t\t\t\t\t\t\t\tsetMatched[i] = pop.call( results );\n\
+\t\t\t\t\t\t\t}\n\
+\t\t\t\t\t\t}\n\
+\t\t\t\t\t}\n\
+\n\
+\t\t\t\t\t// Discard index placeholder values to get only actual matches\n\
+\t\t\t\t\tsetMatched = condense( setMatched );\n\
+\t\t\t\t}\n\
+\n\
+\t\t\t\t// Add matches to results\n\
+\t\t\t\tpush.apply( results, setMatched );\n\
+\n\
+\t\t\t\t// Seedless set matches succeeding multiple successful matchers stipulate sorting\n\
+\t\t\t\tif ( outermost && !seed && setMatched.length > 0 &&\n\
+\t\t\t\t\t( matchedCount + setMatchers.length ) > 1 ) {\n\
+\n\
+\t\t\t\t\tSizzle.uniqueSort( results );\n\
+\t\t\t\t}\n\
+\t\t\t}\n\
+\n\
+\t\t\t// Override manipulation of globals by nested matchers\n\
+\t\t\tif ( outermost ) {\n\
+\t\t\t\tdirruns = dirrunsUnique;\n\
+\t\t\t\toutermostContext = contextBackup;\n\
+\t\t\t}\n\
+\n\
+\t\t\treturn unmatched;\n\
+\t\t};\n\
+\n\
+\treturn bySet ?\n\
+\t\tmarkFunction( superMatcher ) :\n\
+\t\tsuperMatcher;\n\
+}\n\
+\n\
+compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) {\n\
+\tvar i,\n\
+\t\tsetMatchers = [],\n\
+\t\telementMatchers = [],\n\
+\t\tcached = compilerCache[ selector + \" \" ];\n\
+\n\
+\tif ( !cached ) {\n\
+\t\t// Generate a function of recursive functions that can be used to check each element\n\
+\t\tif ( !match ) {\n\
+\t\t\tmatch = tokenize( selector );\n\
+\t\t}\n\
+\t\ti = match.length;\n\
+\t\twhile ( i-- ) {\n\
+\t\t\tcached = matcherFromTokens( match[i] );\n\
+\t\t\tif ( cached[ expando ] ) {\n\
+\t\t\t\tsetMatchers.push( cached );\n\
+\t\t\t} else {\n\
+\t\t\t\telementMatchers.push( cached );\n\
+\t\t\t}\n\
+\t\t}\n\
+\n\
+\t\t// Cache the compiled function\n\
+\t\tcached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) );\n\
+\n\
+\t\t// Save selector and tokenization\n\
+\t\tcached.selector = selector;\n\
+\t}\n\
+\treturn cached;\n\
};\n\
\n\
-// EXPOSE\n\
+/**\n\
+ * A low-level selection function that works with Sizzle's compiled\n\
+ * selector functions\n\
+ * @param {String|Function} selector A selector or a pre-compiled\n\
+ * selector function built with Sizzle.compile\n\
+ * @param {Element} context\n\
+ * @param {Array} [results]\n\
+ * @param {Array} [seed] A set of elements to match against\n\
+ */\n\
+select = Sizzle.select = function( selector, context, results, seed ) {\n\
+\tvar i, tokens, token, type, find,\n\
+\t\tcompiled = typeof selector === \"function\" && selector,\n\
+\t\tmatch = !seed && tokenize( (selector = compiled.selector || selector) );\n\
+\n\
+\tresults = results || [];\n\
+\n\
+\t// Try to minimize operations if there is no seed and only one group\n\
+\tif ( match.length === 1 ) {\n\
+\n\
+\t\t// Take a shortcut and set the context if the root selector is an ID\n\
+\t\ttokens = match[0] = match[0].slice( 0 );\n\
+\t\tif ( tokens.length > 2 && (token = tokens[0]).type === \"ID\" &&\n\
+\t\t\t\tsupport.getById && context.nodeType === 9 && documentIsHTML &&\n\
+\t\t\t\tExpr.relative[ tokens[1].type ] ) {\n\
+\n\
+\t\t\tcontext = ( Expr.find[\"ID\"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];\n\
+\t\t\tif ( !context ) {\n\
+\t\t\t\treturn results;\n\
+\n\
+\t\t\t// Precompiled matchers will still verify ancestry, so step up a level\n\
+\t\t\t} else if ( compiled ) {\n\
+\t\t\t\tcontext = context.parentNode;\n\
+\t\t\t}\n\
+\n\
+\t\t\tselector = selector.slice( tokens.shift().value.length );\n\
+\t\t}\n\
+\n\
+\t\t// Fetch a seed set for right-to-left matching\n\
+\t\ti = matchExpr[\"needsContext\"].test( selector ) ? 0 : tokens.length;\n\
+\t\twhile ( i-- ) {\n\
+\t\t\ttoken = tokens[i];\n\
+\n\
+\t\t\t// Abort if we hit a combinator\n\
+\t\t\tif ( Expr.relative[ (type = token.type) ] ) {\n\
+\t\t\t\tbreak;\n\
+\t\t\t}\n\
+\t\t\tif ( (find = Expr.find[ type ]) ) {\n\
+\t\t\t\t// Search, expanding context for leading sibling combinators\n\
+\t\t\t\tif ( (seed = find(\n\
+\t\t\t\t\ttoken.matches[0].replace( runescape, funescape ),\n\
+\t\t\t\t\trsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context\n\
+\t\t\t\t)) ) {\n\
+\n\
+\t\t\t\t\t// If seed is empty or no tokens remain, we can return early\n\
+\t\t\t\t\ttokens.splice( i, 1 );\n\
+\t\t\t\t\tselector = seed.length && toSelector( tokens );\n\
+\t\t\t\t\tif ( !selector ) {\n\
+\t\t\t\t\t\tpush.apply( results, seed );\n\
+\t\t\t\t\t\treturn results;\n\
+\t\t\t\t\t}\n\
+\n\
+\t\t\t\t\tbreak;\n\
+\t\t\t\t}\n\
+\t\t\t}\n\
+\t\t}\n\
+\t}\n\
+\n\
+\t// Compile and execute a filtering function if one is not provided\n\
+\t// Provide `match` to avoid retokenization if we modified the selector above\n\
+\t( compiled || compile( selector, match ) )(\n\
+\t\tseed,\n\
+\t\tcontext,\n\
+\t\t!documentIsHTML,\n\
+\t\tresults,\n\
+\t\trsibling.test( selector ) && testContext( context.parentNode ) || context\n\
+\t);\n\
+\treturn results;\n\
+};\n\
+\n\
+// One-time assignments\n\
+\n\
+// Sort stability\n\
+support.sortStable = expando.split(\"\").sort( sortOrder ).join(\"\") === expando;\n\
+\n\
+// Support: Chrome<14\n\
+// Always assume duplicates if they aren't passed to the comparison function\n\
+support.detectDuplicates = !!hasDuplicate;\n\
+\n\
+// Initialize against the default document\n\
+setDocument();\n\
+\n\
+// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)\n\
+// Detached nodes confoundingly follow *each other*\n\
+support.sortDetached = assert(function( div1 ) {\n\
+\t// Should return 1, but returns 4 (following)\n\
+\treturn div1.compareDocumentPosition( document.createElement(\"div\") ) & 1;\n\
+});\n\
+\n\
+// Support: IE<8\n\
+// Prevent attribute/property \"interpolation\"\n\
+// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx\n\
+if ( !assert(function( div ) {\n\
+\tdiv.innerHTML = \"\";\n\
+\treturn div.firstChild.getAttribute(\"href\") === \"#\" ;\n\
+}) ) {\n\
+\taddHandle( \"type|href|height|width\", function( elem, name, isXML ) {\n\
+\t\tif ( !isXML ) {\n\
+\t\t\treturn elem.getAttribute( name, name.toLowerCase() === \"type\" ? 1 : 2 );\n\
+\t\t}\n\
+\t});\n\
+}\n\
+\n\
+// Support: IE<9\n\
+// Use defaultValue in place of getAttribute(\"value\")\n\
+if ( !support.attributes || !assert(function( div ) {\n\
+\tdiv.innerHTML = \"\";\n\
+\tdiv.firstChild.setAttribute( \"value\", \"\" );\n\
+\treturn div.firstChild.getAttribute( \"value\" ) === \"\";\n\
+}) ) {\n\
+\taddHandle( \"value\", function( elem, name, isXML ) {\n\
+\t\tif ( !isXML && elem.nodeName.toLowerCase() === \"input\" ) {\n\
+\t\t\treturn elem.defaultValue;\n\
+\t\t}\n\
+\t});\n\
+}\n\
+\n\
+// Support: IE<9\n\
+// Use getAttributeNode to fetch booleans when getAttribute lies\n\
+if ( !assert(function( div ) {\n\
+\treturn div.getAttribute(\"disabled\") == null;\n\
+}) ) {\n\
+\taddHandle( booleans, function( elem, name, isXML ) {\n\
+\t\tvar val;\n\
+\t\tif ( !isXML ) {\n\
+\t\t\treturn elem[ name ] === true ? name.toLowerCase() :\n\
+\t\t\t\t\t(val = elem.getAttributeNode( name )) && val.specified ?\n\
+\t\t\t\t\tval.value :\n\
+\t\t\t\tnull;\n\
+\t\t}\n\
+\t});\n\
+}\n\
+\n\
+return Sizzle;\n\
+\n\
+})( window );\n\
+\n\
+\n\
+\n\
jQuery.find = Sizzle;\n\
jQuery.expr = Sizzle.selectors;\n\
-jQuery.expr[\":\"] = jQuery.expr.filters;\n\
+jQuery.expr[\":\"] = jQuery.expr.pseudos;\n\
jQuery.unique = Sizzle.uniqueSort;\n\
jQuery.text = Sizzle.getText;\n\
jQuery.isXMLDoc = Sizzle.isXML;\n\
jQuery.contains = Sizzle.contains;\n\
\n\
\n\
-})();\n\
+\n\
+var rneedsContext = jQuery.expr.match.needsContext;\n\
+\n\
+var rsingleTag = (/^<(\\w+)\\s*\\/?>(?:<\\/\\1>|)$/);\n\
\n\
\n\
-var runtil = /Until$/,\n\
- rparentsprev = /^(?:parents|prevUntil|prevAll)/,\n\
- // Note: This RegExp should be improved, or likely pulled from Sizzle\n\
- rmultiselector = /,/,\n\
- isSimple = /^.[^:#\\[\\.,]*$/,\n\
- slice = Array.prototype.slice,\n\
- POS = jQuery.expr.match.POS,\n\
- // methods guaranteed to produce a unique set when starting from a unique set\n\
- guaranteedUnique = {\n\
- children: true,\n\
- contents: true,\n\
- next: true,\n\
- prev: true\n\
- };\n\
+\n\
+var risSimple = /^.[^:#\\[\\.,]*$/;\n\
+\n\
+// Implement the identical functionality for filter and not\n\
+function winnow( elements, qualifier, not ) {\n\
+\tif ( jQuery.isFunction( qualifier ) ) {\n\
+\t\treturn jQuery.grep( elements, function( elem, i ) {\n\
+\t\t\t/* jshint -W018 */\n\
+\t\t\treturn !!qualifier.call( elem, i, elem ) !== not;\n\
+\t\t});\n\
+\n\
+\t}\n\
+\n\
+\tif ( qualifier.nodeType ) {\n\
+\t\treturn jQuery.grep( elements, function( elem ) {\n\
+\t\t\treturn ( elem === qualifier ) !== not;\n\
+\t\t});\n\
+\n\
+\t}\n\
+\n\
+\tif ( typeof qualifier === \"string\" ) {\n\
+\t\tif ( risSimple.test( qualifier ) ) {\n\
+\t\t\treturn jQuery.filter( qualifier, elements, not );\n\
+\t\t}\n\
+\n\
+\t\tqualifier = jQuery.filter( qualifier, elements );\n\
+\t}\n\
+\n\
+\treturn jQuery.grep( elements, function( elem ) {\n\
+\t\treturn ( jQuery.inArray( elem, qualifier ) >= 0 ) !== not;\n\
+\t});\n\
+}\n\
+\n\
+jQuery.filter = function( expr, elems, not ) {\n\
+\tvar elem = elems[ 0 ];\n\
+\n\
+\tif ( not ) {\n\
+\t\texpr = \":not(\" + expr + \")\";\n\
+\t}\n\
+\n\
+\treturn elems.length === 1 && elem.nodeType === 1 ?\n\
+\t\tjQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [] :\n\
+\t\tjQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {\n\
+\t\t\treturn elem.nodeType === 1;\n\
+\t\t}));\n\
+};\n\
\n\
jQuery.fn.extend({\n\
- find: function( selector ) {\n\
- var self = this,\n\
- i, l;\n\
+\tfind: function( selector ) {\n\
+\t\tvar i,\n\
+\t\t\tret = [],\n\
+\t\t\tself = this,\n\
+\t\t\tlen = self.length;\n\
\n\
- if ( typeof selector !== \"string\" ) {\n\
- return jQuery( selector ).filter(function() {\n\
- for ( i = 0, l = self.length; i < l; i++ ) {\n\
- if ( jQuery.contains( self[ i ], this ) ) {\n\
- return true;\n\
- }\n\
- }\n\
- });\n\
- }\n\
+\t\tif ( typeof selector !== \"string\" ) {\n\
+\t\t\treturn this.pushStack( jQuery( selector ).filter(function() {\n\
+\t\t\t\tfor ( i = 0; i < len; i++ ) {\n\
+\t\t\t\t\tif ( jQuery.contains( self[ i ], this ) ) {\n\
+\t\t\t\t\t\treturn true;\n\
+\t\t\t\t\t}\n\
+\t\t\t\t}\n\
+\t\t\t}) );\n\
+\t\t}\n\
\n\
- var ret = this.pushStack( \"\", \"find\", selector ),\n\
- length, n, r;\n\
+\t\tfor ( i = 0; i < len; i++ ) {\n\
+\t\t\tjQuery.find( selector, self[ i ], ret );\n\
+\t\t}\n\
\n\
- for ( i = 0, l = this.length; i < l; i++ ) {\n\
- length = ret.length;\n\
- jQuery.find( selector, this[i], ret );\n\
+\t\t// Needed because $( selector, context ) becomes $( context ).find( selector )\n\
+\t\tret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret );\n\
+\t\tret.selector = this.selector ? this.selector + \" \" + selector : selector;\n\
+\t\treturn ret;\n\
+\t},\n\
+\tfilter: function( selector ) {\n\
+\t\treturn this.pushStack( winnow(this, selector || [], false) );\n\
+\t},\n\
+\tnot: function( selector ) {\n\
+\t\treturn this.pushStack( winnow(this, selector || [], true) );\n\
+\t},\n\
+\tis: function( selector ) {\n\
+\t\treturn !!winnow(\n\
+\t\t\tthis,\n\
\n\
- if ( i > 0 ) {\n\
- // Make sure that the results are unique\n\
- for ( n = length; n < ret.length; n++ ) {\n\
- for ( r = 0; r < length; r++ ) {\n\
- if ( ret[r] === ret[n] ) {\n\
- ret.splice(n--, 1);\n\
- break;\n\
- }\n\
- }\n\
- }\n\
- }\n\
- }\n\
-\n\
- return ret;\n\
- },\n\
-\n\
- has: function( target ) {\n\
- var targets = jQuery( target );\n\
- return this.filter(function() {\n\
- for ( var i = 0, l = targets.length; i < l; i++ ) {\n\
- if ( jQuery.contains( this, targets[i] ) ) {\n\
- return true;\n\
- }\n\
- }\n\
- });\n\
- },\n\
-\n\
- not: function( selector ) {\n\
- return this.pushStack( winnow(this, selector, false), \"not\", selector);\n\
- },\n\
-\n\
- filter: function( selector ) {\n\
- return this.pushStack( winnow(this, selector, true), \"filter\", selector );\n\
- },\n\
-\n\
- is: function( selector ) {\n\
- return !!selector && ( typeof selector === \"string\" ?\n\
- jQuery.filter( selector, this ).length > 0 :\n\
- this.filter( selector ).length > 0 );\n\
- },\n\
-\n\
- closest: function( selectors, context ) {\n\
- var ret = [], i, l, cur = this[0];\n\
- \n\
- // Array\n\
- if ( jQuery.isArray( selectors ) ) {\n\
- var match, selector,\n\
- matches = {},\n\
- level = 1;\n\
-\n\
- if ( cur && selectors.length ) {\n\
- for ( i = 0, l = selectors.length; i < l; i++ ) {\n\
- selector = selectors[i];\n\
-\n\
- if ( !matches[ selector ] ) {\n\
- matches[ selector ] = POS.test( selector ) ?\n\
- jQuery( selector, context || this.context ) :\n\
- selector;\n\
- }\n\
- }\n\
-\n\
- while ( cur && cur.ownerDocument && cur !== context ) {\n\
- for ( selector in matches ) {\n\
- match = matches[ selector ];\n\
-\n\
- if ( match.jquery ? match.index( cur ) > -1 : jQuery( cur ).is( match ) ) {\n\
- ret.push({ selector: selector, elem: cur, level: level });\n\
- }\n\
- }\n\
-\n\
- cur = cur.parentNode;\n\
- level++;\n\
- }\n\
- }\n\
-\n\
- return ret;\n\
- }\n\
-\n\
- // String\n\
- var pos = POS.test( selectors ) || typeof selectors !== \"string\" ?\n\
- jQuery( selectors, context || this.context ) :\n\
- 0;\n\
-\n\
- for ( i = 0, l = this.length; i < l; i++ ) {\n\
- cur = this[i];\n\
-\n\
- while ( cur ) {\n\
- if ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) {\n\
- ret.push( cur );\n\
- break;\n\
-\n\
- } else {\n\
- cur = cur.parentNode;\n\
- if ( !cur || !cur.ownerDocument || cur === context || cur.nodeType === 11 ) {\n\
- break;\n\
- }\n\
- }\n\
- }\n\
- }\n\
-\n\
- ret = ret.length > 1 ? jQuery.unique( ret ) : ret;\n\
-\n\
- return this.pushStack( ret, \"closest\", selectors );\n\
- },\n\
-\n\
- // Determine the position of an element within\n\
- // the matched set of elements\n\
- index: function( elem ) {\n\
-\n\
- // No argument, return index in parent\n\
- if ( !elem ) {\n\
- return ( this[0] && this[0].parentNode ) ? this.prevAll().length : -1;\n\
- }\n\
-\n\
- // index in selector\n\
- if ( typeof elem === \"string\" ) {\n\
- return jQuery.inArray( this[0], jQuery( elem ) );\n\
- }\n\
-\n\
- // Locate the position of the desired element\n\
- return jQuery.inArray(\n\
- // If it receives a jQuery object, the first element is used\n\
- elem.jquery ? elem[0] : elem, this );\n\
- },\n\
-\n\
- add: function( selector, context ) {\n\
- var set = typeof selector === \"string\" ?\n\
- jQuery( selector, context ) :\n\
- jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ),\n\
- all = jQuery.merge( this.get(), set );\n\
-\n\
- return this.pushStack( isDisconnected( set[0] ) || isDisconnected( all[0] ) ?\n\
- all :\n\
- jQuery.unique( all ) );\n\
- },\n\
-\n\
- andSelf: function() {\n\
- return this.add( this.prevObject );\n\
- }\n\
+\t\t\t// If this is a positional/relative selector, check membership in the returned set\n\
+\t\t\t// so $(\"p:first\").is(\"p:last\") won't return true for a doc with two \"p\".\n\
+\t\t\ttypeof selector === \"string\" && rneedsContext.test( selector ) ?\n\
+\t\t\t\tjQuery( selector ) :\n\
+\t\t\t\tselector || [],\n\
+\t\t\tfalse\n\
+\t\t).length;\n\
+\t}\n\
});\n\
\n\
-// A painfully simple check to see if an element is disconnected\n\
-// from a document (should be improved, where feasible).\n\
-function isDisconnected( node ) {\n\
- return !node || !node.parentNode || node.parentNode.nodeType === 11;\n\
+\n\
+// Initialize a jQuery object\n\
+\n\
+\n\
+// A central reference to the root jQuery(document)\n\
+var rootjQuery,\n\
+\n\
+\t// Use the correct document accordingly with window argument (sandbox)\n\
+\tdocument = window.document,\n\
+\n\
+\t// A simple way to check for HTML strings\n\
+\t// Prioritize #id over to avoid XSS via location.hash (#9521)\n\
+\t// Strict HTML recognition (#11290: must start with <)\n\
+\trquickExpr = /^(?:\\s*(<[\\w\\W]+>)[^>]*|#([\\w-]*))$/,\n\
+\n\
+\tinit = jQuery.fn.init = function( selector, context ) {\n\
+\t\tvar match, elem;\n\
+\n\
+\t\t// HANDLE: $(\"\"), $(null), $(undefined), $(false)\n\
+\t\tif ( !selector ) {\n\
+\t\t\treturn this;\n\
+\t\t}\n\
+\n\
+\t\t// Handle HTML strings\n\
+\t\tif ( typeof selector === \"string\" ) {\n\
+\t\t\tif ( selector.charAt(0) === \"<\" && selector.charAt( selector.length - 1 ) === \">\" && selector.length >= 3 ) {\n\
+\t\t\t\t// Assume that strings that start and end with <> are HTML and skip the regex check\n\
+\t\t\t\tmatch = [ null, selector, null ];\n\
+\n\
+\t\t\t} else {\n\
+\t\t\t\tmatch = rquickExpr.exec( selector );\n\
+\t\t\t}\n\
+\n\
+\t\t\t// Match html or make sure no context is specified for #id\n\
+\t\t\tif ( match && (match[1] || !context) ) {\n\
+\n\
+\t\t\t\t// HANDLE: $(html) -> $(array)\n\
+\t\t\t\tif ( match[1] ) {\n\
+\t\t\t\t\tcontext = context instanceof jQuery ? context[0] : context;\n\
+\n\
+\t\t\t\t\t// scripts is true for back-compat\n\
+\t\t\t\t\t// Intentionally let the error be thrown if parseHTML is not present\n\
+\t\t\t\t\tjQuery.merge( this, jQuery.parseHTML(\n\
+\t\t\t\t\t\tmatch[1],\n\
+\t\t\t\t\t\tcontext && context.nodeType ? context.ownerDocument || context : document,\n\
+\t\t\t\t\t\ttrue\n\
+\t\t\t\t\t) );\n\
+\n\
+\t\t\t\t\t// HANDLE: $(html, props)\n\
+\t\t\t\t\tif ( rsingleTag.test( match[1] ) && jQuery.isPlainObject( context ) ) {\n\
+\t\t\t\t\t\tfor ( match in context ) {\n\
+\t\t\t\t\t\t\t// Properties of context are called as methods if possible\n\
+\t\t\t\t\t\t\tif ( jQuery.isFunction( this[ match ] ) ) {\n\
+\t\t\t\t\t\t\t\tthis[ match ]( context[ match ] );\n\
+\n\
+\t\t\t\t\t\t\t// ...and otherwise set as attributes\n\
+\t\t\t\t\t\t\t} else {\n\
+\t\t\t\t\t\t\t\tthis.attr( match, context[ match ] );\n\
+\t\t\t\t\t\t\t}\n\
+\t\t\t\t\t\t}\n\
+\t\t\t\t\t}\n\
+\n\
+\t\t\t\t\treturn this;\n\
+\n\
+\t\t\t\t// HANDLE: $(#id)\n\
+\t\t\t\t} else {\n\
+\t\t\t\t\telem = document.getElementById( match[2] );\n\
+\n\
+\t\t\t\t\t// Check parentNode to catch when Blackberry 4.6 returns\n\
+\t\t\t\t\t// nodes that are no longer in the document #6963\n\
+\t\t\t\t\tif ( elem && elem.parentNode ) {\n\
+\t\t\t\t\t\t// Handle the case where IE and Opera return items\n\
+\t\t\t\t\t\t// by name instead of ID\n\
+\t\t\t\t\t\tif ( elem.id !== match[2] ) {\n\
+\t\t\t\t\t\t\treturn rootjQuery.find( selector );\n\
+\t\t\t\t\t\t}\n\
+\n\
+\t\t\t\t\t\t// Otherwise, we inject the element directly into the jQuery object\n\
+\t\t\t\t\t\tthis.length = 1;\n\
+\t\t\t\t\t\tthis[0] = elem;\n\
+\t\t\t\t\t}\n\
+\n\
+\t\t\t\t\tthis.context = document;\n\
+\t\t\t\t\tthis.selector = selector;\n\
+\t\t\t\t\treturn this;\n\
+\t\t\t\t}\n\
+\n\
+\t\t\t// HANDLE: $(expr, $(...))\n\
+\t\t\t} else if ( !context || context.jquery ) {\n\
+\t\t\t\treturn ( context || rootjQuery ).find( selector );\n\
+\n\
+\t\t\t// HANDLE: $(expr, context)\n\
+\t\t\t// (which is just equivalent to: $(context).find(expr)\n\
+\t\t\t} else {\n\
+\t\t\t\treturn this.constructor( context ).find( selector );\n\
+\t\t\t}\n\
+\n\
+\t\t// HANDLE: $(DOMElement)\n\
+\t\t} else if ( selector.nodeType ) {\n\
+\t\t\tthis.context = this[0] = selector;\n\
+\t\t\tthis.length = 1;\n\
+\t\t\treturn this;\n\
+\n\
+\t\t// HANDLE: $(function)\n\
+\t\t// Shortcut for document ready\n\
+\t\t} else if ( jQuery.isFunction( selector ) ) {\n\
+\t\t\treturn typeof rootjQuery.ready !== \"undefined\" ?\n\
+\t\t\t\trootjQuery.ready( selector ) :\n\
+\t\t\t\t// Execute immediately if ready is not present\n\
+\t\t\t\tselector( jQuery );\n\
+\t\t}\n\
+\n\
+\t\tif ( selector.selector !== undefined ) {\n\
+\t\t\tthis.selector = selector.selector;\n\
+\t\t\tthis.context = selector.context;\n\
+\t\t}\n\
+\n\
+\t\treturn jQuery.makeArray( selector, this );\n\
+\t};\n\
+\n\
+// Give the init function the jQuery prototype for later instantiation\n\
+init.prototype = jQuery.fn;\n\
+\n\
+// Initialize central reference\n\
+rootjQuery = jQuery( document );\n\
+\n\
+\n\
+var rparentsprev = /^(?:parents|prev(?:Until|All))/,\n\
+\t// methods guaranteed to produce a unique set when starting from a unique set\n\
+\tguaranteedUnique = {\n\
+\t\tchildren: true,\n\
+\t\tcontents: true,\n\
+\t\tnext: true,\n\
+\t\tprev: true\n\
+\t};\n\
+\n\
+jQuery.extend({\n\
+\tdir: function( elem, dir, until ) {\n\
+\t\tvar matched = [],\n\
+\t\t\tcur = elem[ dir ];\n\
+\n\
+\t\twhile ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) {\n\
+\t\t\tif ( cur.nodeType === 1 ) {\n\
+\t\t\t\tmatched.push( cur );\n\
+\t\t\t}\n\
+\t\t\tcur = cur[dir];\n\
+\t\t}\n\
+\t\treturn matched;\n\
+\t},\n\
+\n\
+\tsibling: function( n, elem ) {\n\
+\t\tvar r = [];\n\
+\n\
+\t\tfor ( ; n; n = n.nextSibling ) {\n\
+\t\t\tif ( n.nodeType === 1 && n !== elem ) {\n\
+\t\t\t\tr.push( n );\n\
+\t\t\t}\n\
+\t\t}\n\
+\n\
+\t\treturn r;\n\
+\t}\n\
+});\n\
+\n\
+jQuery.fn.extend({\n\
+\thas: function( target ) {\n\
+\t\tvar i,\n\
+\t\t\ttargets = jQuery( target, this ),\n\
+\t\t\tlen = targets.length;\n\
+\n\
+\t\treturn this.filter(function() {\n\
+\t\t\tfor ( i = 0; i < len; i++ ) {\n\
+\t\t\t\tif ( jQuery.contains( this, targets[i] ) ) {\n\
+\t\t\t\t\treturn true;\n\
+\t\t\t\t}\n\
+\t\t\t}\n\
+\t\t});\n\
+\t},\n\
+\n\
+\tclosest: function( selectors, context ) {\n\
+\t\tvar cur,\n\
+\t\t\ti = 0,\n\
+\t\t\tl = this.length,\n\
+\t\t\tmatched = [],\n\
+\t\t\tpos = rneedsContext.test( selectors ) || typeof selectors !== \"string\" ?\n\
+\t\t\t\tjQuery( selectors, context || this.context ) :\n\
+\t\t\t\t0;\n\
+\n\
+\t\tfor ( ; i < l; i++ ) {\n\
+\t\t\tfor ( cur = this[i]; cur && cur !== context; cur = cur.parentNode ) {\n\
+\t\t\t\t// Always skip document fragments\n\
+\t\t\t\tif ( cur.nodeType < 11 && (pos ?\n\
+\t\t\t\t\tpos.index(cur) > -1 :\n\
+\n\
+\t\t\t\t\t// Don't pass non-elements to Sizzle\n\
+\t\t\t\t\tcur.nodeType === 1 &&\n\
+\t\t\t\t\t\tjQuery.find.matchesSelector(cur, selectors)) ) {\n\
+\n\
+\t\t\t\t\tmatched.push( cur );\n\
+\t\t\t\t\tbreak;\n\
+\t\t\t\t}\n\
+\t\t\t}\n\
+\t\t}\n\
+\n\
+\t\treturn this.pushStack( matched.length > 1 ? jQuery.unique( matched ) : matched );\n\
+\t},\n\
+\n\
+\t// Determine the position of an element within\n\
+\t// the matched set of elements\n\
+\tindex: function( elem ) {\n\
+\n\
+\t\t// No argument, return index in parent\n\
+\t\tif ( !elem ) {\n\
+\t\t\treturn ( this[0] && this[0].parentNode ) ? this.first().prevAll().length : -1;\n\
+\t\t}\n\
+\n\
+\t\t// index in selector\n\
+\t\tif ( typeof elem === \"string\" ) {\n\
+\t\t\treturn jQuery.inArray( this[0], jQuery( elem ) );\n\
+\t\t}\n\
+\n\
+\t\t// Locate the position of the desired element\n\
+\t\treturn jQuery.inArray(\n\
+\t\t\t// If it receives a jQuery object, the first element is used\n\
+\t\t\telem.jquery ? elem[0] : elem, this );\n\
+\t},\n\
+\n\
+\tadd: function( selector, context ) {\n\
+\t\treturn this.pushStack(\n\
+\t\t\tjQuery.unique(\n\
+\t\t\t\tjQuery.merge( this.get(), jQuery( selector, context ) )\n\
+\t\t\t)\n\
+\t\t);\n\
+\t},\n\
+\n\
+\taddBack: function( selector ) {\n\
+\t\treturn this.add( selector == null ?\n\
+\t\t\tthis.prevObject : this.prevObject.filter(selector)\n\
+\t\t);\n\
+\t}\n\
+});\n\
+\n\
+function sibling( cur, dir ) {\n\
+\tdo {\n\
+\t\tcur = cur[ dir ];\n\
+\t} while ( cur && cur.nodeType !== 1 );\n\
+\n\
+\treturn cur;\n\
}\n\
\n\
jQuery.each({\n\
- parent: function( elem ) {\n\
- var parent = elem.parentNode;\n\
- return parent && parent.nodeType !== 11 ? parent : null;\n\
- },\n\
- parents: function( elem ) {\n\
- return jQuery.dir( elem, \"parentNode\" );\n\
- },\n\
- parentsUntil: function( elem, i, until ) {\n\
- return jQuery.dir( elem, \"parentNode\", until );\n\
- },\n\
- next: function( elem ) {\n\
- return jQuery.nth( elem, 2, \"nextSibling\" );\n\
- },\n\
- prev: function( elem ) {\n\
- return jQuery.nth( elem, 2, \"previousSibling\" );\n\
- },\n\
- nextAll: function( elem ) {\n\
- return jQuery.dir( elem, \"nextSibling\" );\n\
- },\n\
- prevAll: function( elem ) {\n\
- return jQuery.dir( elem, \"previousSibling\" );\n\
- },\n\
- nextUntil: function( elem, i, until ) {\n\
- return jQuery.dir( elem, \"nextSibling\", until );\n\
- },\n\
- prevUntil: function( elem, i, until ) {\n\
- return jQuery.dir( elem, \"previousSibling\", until );\n\
- },\n\
- siblings: function( elem ) {\n\
- return jQuery.sibling( elem.parentNode.firstChild, elem );\n\
- },\n\
- children: function( elem ) {\n\
- return jQuery.sibling( elem.firstChild );\n\
- },\n\
- contents: function( elem ) {\n\
- return jQuery.nodeName( elem, \"iframe\" ) ?\n\
- elem.contentDocument || elem.contentWindow.document :\n\
- jQuery.makeArray( elem.childNodes );\n\
- }\n\
+\tparent: function( elem ) {\n\
+\t\tvar parent = elem.parentNode;\n\
+\t\treturn parent && parent.nodeType !== 11 ? parent : null;\n\
+\t},\n\
+\tparents: function( elem ) {\n\
+\t\treturn jQuery.dir( elem, \"parentNode\" );\n\
+\t},\n\
+\tparentsUntil: function( elem, i, until ) {\n\
+\t\treturn jQuery.dir( elem, \"parentNode\", until );\n\
+\t},\n\
+\tnext: function( elem ) {\n\
+\t\treturn sibling( elem, \"nextSibling\" );\n\
+\t},\n\
+\tprev: function( elem ) {\n\
+\t\treturn sibling( elem, \"previousSibling\" );\n\
+\t},\n\
+\tnextAll: function( elem ) {\n\
+\t\treturn jQuery.dir( elem, \"nextSibling\" );\n\
+\t},\n\
+\tprevAll: function( elem ) {\n\
+\t\treturn jQuery.dir( elem, \"previousSibling\" );\n\
+\t},\n\
+\tnextUntil: function( elem, i, until ) {\n\
+\t\treturn jQuery.dir( elem, \"nextSibling\", until );\n\
+\t},\n\
+\tprevUntil: function( elem, i, until ) {\n\
+\t\treturn jQuery.dir( elem, \"previousSibling\", until );\n\
+\t},\n\
+\tsiblings: function( elem ) {\n\
+\t\treturn jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem );\n\
+\t},\n\
+\tchildren: function( elem ) {\n\
+\t\treturn jQuery.sibling( elem.firstChild );\n\
+\t},\n\
+\tcontents: function( elem ) {\n\
+\t\treturn jQuery.nodeName( elem, \"iframe\" ) ?\n\
+\t\t\telem.contentDocument || elem.contentWindow.document :\n\
+\t\t\tjQuery.merge( [], elem.childNodes );\n\
+\t}\n\
}, function( name, fn ) {\n\
- jQuery.fn[ name ] = function( until, selector ) {\n\
- var ret = jQuery.map( this, fn, until ),\n\
- // The variable 'args' was introduced in\n\
- // https://github.com/jquery/jquery/commit/52a0238\n\
- // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed.\n\
- // http://code.google.com/p/v8/issues/detail?id=1050\n\
- args = slice.call(arguments);\n\
+\tjQuery.fn[ name ] = function( until, selector ) {\n\
+\t\tvar ret = jQuery.map( this, fn, until );\n\
\n\
- if ( !runtil.test( name ) ) {\n\
- selector = until;\n\
- }\n\
+\t\tif ( name.slice( -5 ) !== \"Until\" ) {\n\
+\t\t\tselector = until;\n\
+\t\t}\n\
\n\
- if ( selector && typeof selector === \"string\" ) {\n\
- ret = jQuery.filter( selector, ret );\n\
- }\n\
+\t\tif ( selector && typeof selector === \"string\" ) {\n\
+\t\t\tret = jQuery.filter( selector, ret );\n\
+\t\t}\n\
\n\
- ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret;\n\
+\t\tif ( this.length > 1 ) {\n\
+\t\t\t// Remove duplicates\n\
+\t\t\tif ( !guaranteedUnique[ name ] ) {\n\
+\t\t\t\tret = jQuery.unique( ret );\n\
+\t\t\t}\n\
\n\
- if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) {\n\
- ret = ret.reverse();\n\
- }\n\
+\t\t\t// Reverse order for parents* and prev-derivatives\n\
+\t\t\tif ( rparentsprev.test( name ) ) {\n\
+\t\t\t\tret = ret.reverse();\n\
+\t\t\t}\n\
+\t\t}\n\
\n\
- return this.pushStack( ret, name, args.join(\",\") );\n\
- };\n\
+\t\treturn this.pushStack( ret );\n\
+\t};\n\
});\n\
+var rnotwhite = (/\\S+/g);\n\
\n\
-jQuery.extend({\n\
- filter: function( expr, elems, not ) {\n\
- if ( not ) {\n\
- expr = \":not(\" + expr + \")\";\n\
- }\n\
\n\
- return elems.length === 1 ?\n\
- jQuery.find.matchesSelector(elems[0], expr) ? [ elems[0] ] : [] :\n\
- jQuery.find.matches(expr, elems);\n\
- },\n\
\n\
- dir: function( elem, dir, until ) {\n\
- var matched = [],\n\
- cur = elem[ dir ];\n\
+// String to Object options format cache\n\
+var optionsCache = {};\n\
\n\
- while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) {\n\
- if ( cur.nodeType === 1 ) {\n\
- matched.push( cur );\n\
- }\n\
- cur = cur[dir];\n\
- }\n\
- return matched;\n\
- },\n\
-\n\
- nth: function( cur, result, dir, elem ) {\n\
- result = result || 1;\n\
- var num = 0;\n\
-\n\
- for ( ; cur; cur = cur[dir] ) {\n\
- if ( cur.nodeType === 1 && ++num === result ) {\n\
- break;\n\
- }\n\
- }\n\
-\n\
- return cur;\n\
- },\n\
-\n\
- sibling: function( n, elem ) {\n\
- var r = [];\n\
-\n\
- for ( ; n; n = n.nextSibling ) {\n\
- if ( n.nodeType === 1 && n !== elem ) {\n\
- r.push( n );\n\
- }\n\
- }\n\
-\n\
- return r;\n\
- }\n\
-});\n\
-\n\
-// Implement the identical functionality for filter and not\n\
-function winnow( elements, qualifier, keep ) {\n\
-\n\
- // Can't pass null or undefined to indexOf in Firefox 4\n\
- // Set to 0 to skip string check\n\
- qualifier = qualifier || 0;\n\
-\n\
- if ( jQuery.isFunction( qualifier ) ) {\n\
- return jQuery.grep(elements, function( elem, i ) {\n\
- var retVal = !!qualifier.call( elem, i, elem );\n\
- return retVal === keep;\n\
- });\n\
-\n\
- } else if ( qualifier.nodeType ) {\n\
- return jQuery.grep(elements, function( elem, i ) {\n\
- return (elem === qualifier) === keep;\n\
- });\n\
-\n\
- } else if ( typeof qualifier === \"string\" ) {\n\
- var filtered = jQuery.grep(elements, function( elem ) {\n\
- return elem.nodeType === 1;\n\
- });\n\
-\n\
- if ( isSimple.test( qualifier ) ) {\n\
- return jQuery.filter(qualifier, filtered, !keep);\n\
- } else {\n\
- qualifier = jQuery.filter( qualifier, filtered );\n\
- }\n\
- }\n\
-\n\
- return jQuery.grep(elements, function( elem, i ) {\n\
- return (jQuery.inArray( elem, qualifier ) >= 0) === keep;\n\
- });\n\
+// Convert String-formatted options into Object-formatted ones and store in cache\n\
+function createOptions( options ) {\n\
+\tvar object = optionsCache[ options ] = {};\n\
+\tjQuery.each( options.match( rnotwhite ) || [], function( _, flag ) {\n\
+\t\tobject[ flag ] = true;\n\
+\t});\n\
+\treturn object;\n\
}\n\
\n\
+/*\n\
+ * Create a callback list using the following parameters:\n\
+ *\n\
+ *\toptions: an optional list of space-separated options that will change how\n\
+ *\t\t\tthe callback list behaves or a more traditional option object\n\
+ *\n\
+ * By default a callback list will act like an event callback list and can be\n\
+ * \"fired\" multiple times.\n\
+ *\n\
+ * Possible options:\n\
+ *\n\
+ *\tonce:\t\t\twill ensure the callback list can only be fired once (like a Deferred)\n\
+ *\n\
+ *\tmemory:\t\t\twill keep track of previous values and will call any callback added\n\
+ *\t\t\t\t\tafter the list has been fired right away with the latest \"memorized\"\n\
+ *\t\t\t\t\tvalues (like a Deferred)\n\
+ *\n\
+ *\tunique:\t\t\twill ensure a callback can only be added once (no duplicate in the list)\n\
+ *\n\
+ *\tstopOnFalse:\tinterrupt callings when a callback returns false\n\
+ *\n\
+ */\n\
+jQuery.Callbacks = function( options ) {\n\
+\n\
+\t// Convert options from String-formatted to Object-formatted if needed\n\
+\t// (we check in cache first)\n\
+\toptions = typeof options === \"string\" ?\n\
+\t\t( optionsCache[ options ] || createOptions( options ) ) :\n\
+\t\tjQuery.extend( {}, options );\n\
+\n\
+\tvar // Flag to know if list is currently firing\n\
+\t\tfiring,\n\
+\t\t// Last fire value (for non-forgettable lists)\n\
+\t\tmemory,\n\
+\t\t// Flag to know if list was already fired\n\
+\t\tfired,\n\
+\t\t// End of the loop when firing\n\
+\t\tfiringLength,\n\
+\t\t// Index of currently firing callback (modified by remove if needed)\n\
+\t\tfiringIndex,\n\
+\t\t// First callback to fire (used internally by add and fireWith)\n\
+\t\tfiringStart,\n\
+\t\t// Actual callback list\n\
+\t\tlist = [],\n\
+\t\t// Stack of fire calls for repeatable lists\n\
+\t\tstack = !options.once && [],\n\
+\t\t// Fire callbacks\n\
+\t\tfire = function( data ) {\n\
+\t\t\tmemory = options.memory && data;\n\
+\t\t\tfired = true;\n\
+\t\t\tfiringIndex = firingStart || 0;\n\
+\t\t\tfiringStart = 0;\n\
+\t\t\tfiringLength = list.length;\n\
+\t\t\tfiring = true;\n\
+\t\t\tfor ( ; list && firingIndex < firingLength; firingIndex++ ) {\n\
+\t\t\t\tif ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) {\n\
+\t\t\t\t\tmemory = false; // To prevent further calls using add\n\
+\t\t\t\t\tbreak;\n\
+\t\t\t\t}\n\
+\t\t\t}\n\
+\t\t\tfiring = false;\n\
+\t\t\tif ( list ) {\n\
+\t\t\t\tif ( stack ) {\n\
+\t\t\t\t\tif ( stack.length ) {\n\
+\t\t\t\t\t\tfire( stack.shift() );\n\
+\t\t\t\t\t}\n\
+\t\t\t\t} else if ( memory ) {\n\
+\t\t\t\t\tlist = [];\n\
+\t\t\t\t} else {\n\
+\t\t\t\t\tself.disable();\n\
+\t\t\t\t}\n\
+\t\t\t}\n\
+\t\t},\n\
+\t\t// Actual Callbacks object\n\
+\t\tself = {\n\
+\t\t\t// Add a callback or a collection of callbacks to the list\n\
+\t\t\tadd: function() {\n\
+\t\t\t\tif ( list ) {\n\
+\t\t\t\t\t// First, we save the current length\n\
+\t\t\t\t\tvar start = list.length;\n\
+\t\t\t\t\t(function add( args ) {\n\
+\t\t\t\t\t\tjQuery.each( args, function( _, arg ) {\n\
+\t\t\t\t\t\t\tvar type = jQuery.type( arg );\n\
+\t\t\t\t\t\t\tif ( type === \"function\" ) {\n\
+\t\t\t\t\t\t\t\tif ( !options.unique || !self.has( arg ) ) {\n\
+\t\t\t\t\t\t\t\t\tlist.push( arg );\n\
+\t\t\t\t\t\t\t\t}\n\
+\t\t\t\t\t\t\t} else if ( arg && arg.length && type !== \"string\" ) {\n\
+\t\t\t\t\t\t\t\t// Inspect recursively\n\
+\t\t\t\t\t\t\t\tadd( arg );\n\
+\t\t\t\t\t\t\t}\n\
+\t\t\t\t\t\t});\n\
+\t\t\t\t\t})( arguments );\n\
+\t\t\t\t\t// Do we need to add the callbacks to the\n\
+\t\t\t\t\t// current firing batch?\n\
+\t\t\t\t\tif ( firing ) {\n\
+\t\t\t\t\t\tfiringLength = list.length;\n\
+\t\t\t\t\t// With memory, if we're not firing then\n\
+\t\t\t\t\t// we should call right away\n\
+\t\t\t\t\t} else if ( memory ) {\n\
+\t\t\t\t\t\tfiringStart = start;\n\
+\t\t\t\t\t\tfire( memory );\n\
+\t\t\t\t\t}\n\
+\t\t\t\t}\n\
+\t\t\t\treturn this;\n\
+\t\t\t},\n\
+\t\t\t// Remove a callback from the list\n\
+\t\t\tremove: function() {\n\
+\t\t\t\tif ( list ) {\n\
+\t\t\t\t\tjQuery.each( arguments, function( _, arg ) {\n\
+\t\t\t\t\t\tvar index;\n\
+\t\t\t\t\t\twhile ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {\n\
+\t\t\t\t\t\t\tlist.splice( index, 1 );\n\
+\t\t\t\t\t\t\t// Handle firing indexes\n\
+\t\t\t\t\t\t\tif ( firing ) {\n\
+\t\t\t\t\t\t\t\tif ( index <= firingLength ) {\n\
+\t\t\t\t\t\t\t\t\tfiringLength--;\n\
+\t\t\t\t\t\t\t\t}\n\
+\t\t\t\t\t\t\t\tif ( index <= firingIndex ) {\n\
+\t\t\t\t\t\t\t\t\tfiringIndex--;\n\
+\t\t\t\t\t\t\t\t}\n\
+\t\t\t\t\t\t\t}\n\
+\t\t\t\t\t\t}\n\
+\t\t\t\t\t});\n\
+\t\t\t\t}\n\
+\t\t\t\treturn this;\n\
+\t\t\t},\n\
+\t\t\t// Check if a given callback is in the list.\n\
+\t\t\t// If no argument is given, return whether or not list has callbacks attached.\n\
+\t\t\thas: function( fn ) {\n\
+\t\t\t\treturn fn ? jQuery.inArray( fn, list ) > -1 : !!( list && list.length );\n\
+\t\t\t},\n\
+\t\t\t// Remove all callbacks from the list\n\
+\t\t\tempty: function() {\n\
+\t\t\t\tlist = [];\n\
+\t\t\t\tfiringLength = 0;\n\
+\t\t\t\treturn this;\n\
+\t\t\t},\n\
+\t\t\t// Have the list do nothing anymore\n\
+\t\t\tdisable: function() {\n\
+\t\t\t\tlist = stack = memory = undefined;\n\
+\t\t\t\treturn this;\n\
+\t\t\t},\n\
+\t\t\t// Is it disabled?\n\
+\t\t\tdisabled: function() {\n\
+\t\t\t\treturn !list;\n\
+\t\t\t},\n\
+\t\t\t// Lock the list in its current state\n\
+\t\t\tlock: function() {\n\
+\t\t\t\tstack = undefined;\n\
+\t\t\t\tif ( !memory ) {\n\
+\t\t\t\t\tself.disable();\n\
+\t\t\t\t}\n\
+\t\t\t\treturn this;\n\
+\t\t\t},\n\
+\t\t\t// Is it locked?\n\
+\t\t\tlocked: function() {\n\
+\t\t\t\treturn !stack;\n\
+\t\t\t},\n\
+\t\t\t// Call all callbacks with the given context and arguments\n\
+\t\t\tfireWith: function( context, args ) {\n\
+\t\t\t\tif ( list && ( !fired || stack ) ) {\n\
+\t\t\t\t\targs = args || [];\n\
+\t\t\t\t\targs = [ context, args.slice ? args.slice() : args ];\n\
+\t\t\t\t\tif ( firing ) {\n\
+\t\t\t\t\t\tstack.push( args );\n\
+\t\t\t\t\t} else {\n\
+\t\t\t\t\t\tfire( args );\n\
+\t\t\t\t\t}\n\
+\t\t\t\t}\n\
+\t\t\t\treturn this;\n\
+\t\t\t},\n\
+\t\t\t// Call all the callbacks with the given arguments\n\
+\t\t\tfire: function() {\n\
+\t\t\t\tself.fireWith( this, arguments );\n\
+\t\t\t\treturn this;\n\
+\t\t\t},\n\
+\t\t\t// To know if the callbacks have already been called at least once\n\
+\t\t\tfired: function() {\n\
+\t\t\t\treturn !!fired;\n\
+\t\t\t}\n\
+\t\t};\n\
+\n\
+\treturn self;\n\
+};\n\
+\n\
+\n\
+jQuery.extend({\n\
+\n\
+\tDeferred: function( func ) {\n\
+\t\tvar tuples = [\n\
+\t\t\t\t// action, add listener, listener list, final state\n\
+\t\t\t\t[ \"resolve\", \"done\", jQuery.Callbacks(\"once memory\"), \"resolved\" ],\n\
+\t\t\t\t[ \"reject\", \"fail\", jQuery.Callbacks(\"once memory\"), \"rejected\" ],\n\
+\t\t\t\t[ \"notify\", \"progress\", jQuery.Callbacks(\"memory\") ]\n\
+\t\t\t],\n\
+\t\t\tstate = \"pending\",\n\
+\t\t\tpromise = {\n\
+\t\t\t\tstate: function() {\n\
+\t\t\t\t\treturn state;\n\
+\t\t\t\t},\n\
+\t\t\t\talways: function() {\n\
+\t\t\t\t\tdeferred.done( arguments ).fail( arguments );\n\
+\t\t\t\t\treturn this;\n\
+\t\t\t\t},\n\
+\t\t\t\tthen: function( /* fnDone, fnFail, fnProgress */ ) {\n\
+\t\t\t\t\tvar fns = arguments;\n\
+\t\t\t\t\treturn jQuery.Deferred(function( newDefer ) {\n\
+\t\t\t\t\t\tjQuery.each( tuples, function( i, tuple ) {\n\
+\t\t\t\t\t\t\tvar fn = jQuery.isFunction( fns[ i ] ) && fns[ i ];\n\
+\t\t\t\t\t\t\t// deferred[ done | fail | progress ] for forwarding actions to newDefer\n\
+\t\t\t\t\t\t\tdeferred[ tuple[1] ](function() {\n\
+\t\t\t\t\t\t\t\tvar returned = fn && fn.apply( this, arguments );\n\
+\t\t\t\t\t\t\t\tif ( returned && jQuery.isFunction( returned.promise ) ) {\n\
+\t\t\t\t\t\t\t\t\treturned.promise()\n\
+\t\t\t\t\t\t\t\t\t\t.done( newDefer.resolve )\n\
+\t\t\t\t\t\t\t\t\t\t.fail( newDefer.reject )\n\
+\t\t\t\t\t\t\t\t\t\t.progress( newDefer.notify );\n\
+\t\t\t\t\t\t\t\t} else {\n\
+\t\t\t\t\t\t\t\t\tnewDefer[ tuple[ 0 ] + \"With\" ]( this === promise ? newDefer.promise() : this, fn ? [ returned ] : arguments );\n\
+\t\t\t\t\t\t\t\t}\n\
+\t\t\t\t\t\t\t});\n\
+\t\t\t\t\t\t});\n\
+\t\t\t\t\t\tfns = null;\n\
+\t\t\t\t\t}).promise();\n\
+\t\t\t\t},\n\
+\t\t\t\t// Get a promise for this deferred\n\
+\t\t\t\t// If obj is provided, the promise aspect is added to the object\n\
+\t\t\t\tpromise: function( obj ) {\n\
+\t\t\t\t\treturn obj != null ? jQuery.extend( obj, promise ) : promise;\n\
+\t\t\t\t}\n\
+\t\t\t},\n\
+\t\t\tdeferred = {};\n\
+\n\
+\t\t// Keep pipe for back-compat\n\
+\t\tpromise.pipe = promise.then;\n\
+\n\
+\t\t// Add list-specific methods\n\
+\t\tjQuery.each( tuples, function( i, tuple ) {\n\
+\t\t\tvar list = tuple[ 2 ],\n\
+\t\t\t\tstateString = tuple[ 3 ];\n\
+\n\
+\t\t\t// promise[ done | fail | progress ] = list.add\n\
+\t\t\tpromise[ tuple[1] ] = list.add;\n\
+\n\
+\t\t\t// Handle state\n\
+\t\t\tif ( stateString ) {\n\
+\t\t\t\tlist.add(function() {\n\
+\t\t\t\t\t// state = [ resolved | rejected ]\n\
+\t\t\t\t\tstate = stateString;\n\
+\n\
+\t\t\t\t// [ reject_list | resolve_list ].disable; progress_list.lock\n\
+\t\t\t\t}, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock );\n\
+\t\t\t}\n\
+\n\
+\t\t\t// deferred[ resolve | reject | notify ]\n\
+\t\t\tdeferred[ tuple[0] ] = function() {\n\
+\t\t\t\tdeferred[ tuple[0] + \"With\" ]( this === deferred ? promise : this, arguments );\n\
+\t\t\t\treturn this;\n\
+\t\t\t};\n\
+\t\t\tdeferred[ tuple[0] + \"With\" ] = list.fireWith;\n\
+\t\t});\n\
+\n\
+\t\t// Make the deferred a promise\n\
+\t\tpromise.promise( deferred );\n\
+\n\
+\t\t// Call given func if any\n\
+\t\tif ( func ) {\n\
+\t\t\tfunc.call( deferred, deferred );\n\
+\t\t}\n\
+\n\
+\t\t// All done!\n\
+\t\treturn deferred;\n\
+\t},\n\
+\n\
+\t// Deferred helper\n\
+\twhen: function( subordinate /* , ..., subordinateN */ ) {\n\
+\t\tvar i = 0,\n\
+\t\t\tresolveValues = slice.call( arguments ),\n\
+\t\t\tlength = resolveValues.length,\n\
+\n\
+\t\t\t// the count of uncompleted subordinates\n\
+\t\t\tremaining = length !== 1 || ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0,\n\
+\n\
+\t\t\t// the master Deferred. If resolveValues consist of only a single Deferred, just use that.\n\
+\t\t\tdeferred = remaining === 1 ? subordinate : jQuery.Deferred(),\n\
+\n\
+\t\t\t// Update function for both resolve and progress values\n\
+\t\t\tupdateFunc = function( i, contexts, values ) {\n\
+\t\t\t\treturn function( value ) {\n\
+\t\t\t\t\tcontexts[ i ] = this;\n\
+\t\t\t\t\tvalues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value;\n\
+\t\t\t\t\tif ( values === progressValues ) {\n\
+\t\t\t\t\t\tdeferred.notifyWith( contexts, values );\n\
+\n\
+\t\t\t\t\t} else if ( !(--remaining) ) {\n\
+\t\t\t\t\t\tdeferred.resolveWith( contexts, values );\n\
+\t\t\t\t\t}\n\
+\t\t\t\t};\n\
+\t\t\t},\n\
+\n\
+\t\t\tprogressValues, progressContexts, resolveContexts;\n\
+\n\
+\t\t// add listeners to Deferred subordinates; treat others as resolved\n\
+\t\tif ( length > 1 ) {\n\
+\t\t\tprogressValues = new Array( length );\n\
+\t\t\tprogressContexts = new Array( length );\n\
+\t\t\tresolveContexts = new Array( length );\n\
+\t\t\tfor ( ; i < length; i++ ) {\n\
+\t\t\t\tif ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) {\n\
+\t\t\t\t\tresolveValues[ i ].promise()\n\
+\t\t\t\t\t\t.done( updateFunc( i, resolveContexts, resolveValues ) )\n\
+\t\t\t\t\t\t.fail( deferred.reject )\n\
+\t\t\t\t\t\t.progress( updateFunc( i, progressContexts, progressValues ) );\n\
+\t\t\t\t} else {\n\
+\t\t\t\t\t--remaining;\n\
+\t\t\t\t}\n\
+\t\t\t}\n\
+\t\t}\n\
+\n\
+\t\t// if we're not waiting on anything, resolve the master\n\
+\t\tif ( !remaining ) {\n\
+\t\t\tdeferred.resolveWith( resolveContexts, resolveValues );\n\
+\t\t}\n\
+\n\
+\t\treturn deferred.promise();\n\
+\t}\n\
+});\n\
+\n\
+\n\
+// The deferred used on DOM ready\n\
+var readyList;\n\
+\n\
+jQuery.fn.ready = function( fn ) {\n\
+\t// Add the callback\n\
+\tjQuery.ready.promise().done( fn );\n\
+\n\
+\treturn this;\n\
+};\n\
+\n\
+jQuery.extend({\n\
+\t// Is the DOM ready to be used? Set to true once it occurs.\n\
+\tisReady: false,\n\
+\n\
+\t// A counter to track how many items to wait for before\n\
+\t// the ready event fires. See #6781\n\
+\treadyWait: 1,\n\
+\n\
+\t// Hold (or release) the ready event\n\
+\tholdReady: function( hold ) {\n\
+\t\tif ( hold ) {\n\
+\t\t\tjQuery.readyWait++;\n\
+\t\t} else {\n\
+\t\t\tjQuery.ready( true );\n\
+\t\t}\n\
+\t},\n\
+\n\
+\t// Handle when the DOM is ready\n\
+\tready: function( wait ) {\n\
+\n\
+\t\t// Abort if there are pending holds or we're already ready\n\
+\t\tif ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {\n\
+\t\t\treturn;\n\
+\t\t}\n\
+\n\
+\t\t// Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).\n\
+\t\tif ( !document.body ) {\n\
+\t\t\treturn setTimeout( jQuery.ready );\n\
+\t\t}\n\
+\n\
+\t\t// Remember that the DOM is ready\n\
+\t\tjQuery.isReady = true;\n\
+\n\
+\t\t// If a normal DOM Ready event fired, decrement, and wait if need be\n\
+\t\tif ( wait !== true && --jQuery.readyWait > 0 ) {\n\
+\t\t\treturn;\n\
+\t\t}\n\
+\n\
+\t\t// If there are functions bound, to execute\n\
+\t\treadyList.resolveWith( document, [ jQuery ] );\n\
+\n\
+\t\t// Trigger any bound ready events\n\
+\t\tif ( jQuery.fn.triggerHandler ) {\n\
+\t\t\tjQuery( document ).triggerHandler( \"ready\" );\n\
+\t\t\tjQuery( document ).off( \"ready\" );\n\
+\t\t}\n\
+\t}\n\
+});\n\
+\n\
+/**\n\
+ * Clean-up method for dom ready events\n\
+ */\n\
+function detach() {\n\
+\tif ( document.addEventListener ) {\n\
+\t\tdocument.removeEventListener( \"DOMContentLoaded\", completed, false );\n\
+\t\twindow.removeEventListener( \"load\", completed, false );\n\
+\n\
+\t} else {\n\
+\t\tdocument.detachEvent( \"onreadystatechange\", completed );\n\
+\t\twindow.detachEvent( \"onload\", completed );\n\
+\t}\n\
+}\n\
+\n\
+/**\n\
+ * The ready event handler and self cleanup method\n\
+ */\n\
+function completed() {\n\
+\t// readyState === \"complete\" is good enough for us to call the dom ready in oldIE\n\
+\tif ( document.addEventListener || event.type === \"load\" || document.readyState === \"complete\" ) {\n\
+\t\tdetach();\n\
+\t\tjQuery.ready();\n\
+\t}\n\
+}\n\
+\n\
+jQuery.ready.promise = function( obj ) {\n\
+\tif ( !readyList ) {\n\
+\n\
+\t\treadyList = jQuery.Deferred();\n\
+\n\
+\t\t// Catch cases where $(document).ready() is called after the browser event has already occurred.\n\
+\t\t// we once tried to use readyState \"interactive\" here, but it caused issues like the one\n\
+\t\t// discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15\n\
+\t\tif ( document.readyState === \"complete\" ) {\n\
+\t\t\t// Handle it asynchronously to allow scripts the opportunity to delay ready\n\
+\t\t\tsetTimeout( jQuery.ready );\n\
+\n\
+\t\t// Standards-based browsers support DOMContentLoaded\n\
+\t\t} else if ( document.addEventListener ) {\n\
+\t\t\t// Use the handy event callback\n\
+\t\t\tdocument.addEventListener( \"DOMContentLoaded\", completed, false );\n\
+\n\
+\t\t\t// A fallback to window.onload, that will always work\n\
+\t\t\twindow.addEventListener( \"load\", completed, false );\n\
+\n\
+\t\t// If IE event model is used\n\
+\t\t} else {\n\
+\t\t\t// Ensure firing before onload, maybe late but safe also for iframes\n\
+\t\t\tdocument.attachEvent( \"onreadystatechange\", completed );\n\
+\n\
+\t\t\t// A fallback to window.onload, that will always work\n\
+\t\t\twindow.attachEvent( \"onload\", completed );\n\
+\n\
+\t\t\t// If IE and not a frame\n\
+\t\t\t// continually check to see if the document is ready\n\
+\t\t\tvar top = false;\n\
+\n\
+\t\t\ttry {\n\
+\t\t\t\ttop = window.frameElement == null && document.documentElement;\n\
+\t\t\t} catch(e) {}\n\
+\n\
+\t\t\tif ( top && top.doScroll ) {\n\
+\t\t\t\t(function doScrollCheck() {\n\
+\t\t\t\t\tif ( !jQuery.isReady ) {\n\
+\n\
+\t\t\t\t\t\ttry {\n\
+\t\t\t\t\t\t\t// Use the trick by Diego Perini\n\
+\t\t\t\t\t\t\t// http://javascript.nwbox.com/IEContentLoaded/\n\
+\t\t\t\t\t\t\ttop.doScroll(\"left\");\n\
+\t\t\t\t\t\t} catch(e) {\n\
+\t\t\t\t\t\t\treturn setTimeout( doScrollCheck, 50 );\n\
+\t\t\t\t\t\t}\n\
+\n\
+\t\t\t\t\t\t// detach all dom ready events\n\
+\t\t\t\t\t\tdetach();\n\
+\n\
+\t\t\t\t\t\t// and execute any waiting functions\n\
+\t\t\t\t\t\tjQuery.ready();\n\
+\t\t\t\t\t}\n\
+\t\t\t\t})();\n\
+\t\t\t}\n\
+\t\t}\n\
+\t}\n\
+\treturn readyList.promise( obj );\n\
+};\n\
+\n\
+\n\
+var strundefined = typeof undefined;\n\
\n\
\n\
\n\
-var rinlinejQuery = / jQuery\\d+=\"(?:\\d+|null)\"/g,\n\
- rleadingWhitespace = /^\\s+/,\n\
- rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\\w:]+)[^>]*)\\/>/ig,\n\
- rtagName = /<([\\w:]+)/,\n\
- rtbody = /\", \"\" ],\n\
- legend: [ 1, \"\" ],\n\
- thead: [ 1, \"
\", \"
\" ],\n\
- tr: [ 2, \"
\", \"
\" ],\n\
- td: [ 3, \"
\", \"
\" ],\n\
- col: [ 2, \"
\", \"
\" ],\n\
- area: [ 1, \"\" ],\n\
- _default: [ 0, \"\", \"\" ]\n\
- };\n\
+// Support: IE<9\n\
+// Iteration over object's inherited properties before its own\n\
+var i;\n\
+for ( i in jQuery( support ) ) {\n\
+\tbreak;\n\
+}\n\
+support.ownLast = i !== \"0\";\n\
+\n\
+// Note: most support tests are defined in their respective modules.\n\
+// false until the test is run\n\
+support.inlineBlockNeedsLayout = false;\n\
+\n\
+// Execute ASAP in case we need to set body.style.zoom\n\
+jQuery(function() {\n\
+\t// Minified: var a,b,c,d\n\
+\tvar val, div, body, container;\n\
+\n\
+\tbody = document.getElementsByTagName( \"body\" )[ 0 ];\n\
+\tif ( !body || !body.style ) {\n\
+\t\t// Return for frameset docs that don't have a body\n\
+\t\treturn;\n\
+\t}\n\
+\n\
+\t// Setup\n\
+\tdiv = document.createElement( \"div\" );\n\
+\tcontainer = document.createElement( \"div\" );\n\
+\tcontainer.style.cssText = \"position:absolute;border:0;width:0;height:0;top:0;left:-9999px\";\n\
+\tbody.appendChild( container ).appendChild( div );\n\
+\n\
+\tif ( typeof div.style.zoom !== strundefined ) {\n\
+\t\t// Support: IE<8\n\
+\t\t// Check if natively block-level elements act like inline-block\n\
+\t\t// elements when setting their display to 'inline' and giving\n\
+\t\t// them layout\n\
+\t\tdiv.style.cssText = \"display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1\";\n\
+\n\
+\t\tsupport.inlineBlockNeedsLayout = val = div.offsetWidth === 3;\n\
+\t\tif ( val ) {\n\
+\t\t\t// Prevent IE 6 from affecting layout for positioned elements #11048\n\
+\t\t\t// Prevent IE from shrinking the body in IE 7 mode #12869\n\
+\t\t\t// Support: IE<8\n\
+\t\t\tbody.style.zoom = 1;\n\
+\t\t}\n\
+\t}\n\
+\n\
+\tbody.removeChild( container );\n\
+});\n\
+\n\
+\n\
+\n\
+\n\
+(function() {\n\
+\tvar div = document.createElement( \"div\" );\n\
+\n\
+\t// Execute the test only if not already executed in another module.\n\
+\tif (support.deleteExpando == null) {\n\
+\t\t// Support: IE<9\n\
+\t\tsupport.deleteExpando = true;\n\
+\t\ttry {\n\
+\t\t\tdelete div.test;\n\
+\t\t} catch( e ) {\n\
+\t\t\tsupport.deleteExpando = false;\n\
+\t\t}\n\
+\t}\n\
+\n\
+\t// Null elements to avoid leaks in IE.\n\
+\tdiv = null;\n\
+})();\n\
+\n\
+\n\
+/**\n\
+ * Determines whether an object can have data\n\
+ */\n\
+jQuery.acceptData = function( elem ) {\n\
+\tvar noData = jQuery.noData[ (elem.nodeName + \" \").toLowerCase() ],\n\
+\t\tnodeType = +elem.nodeType || 1;\n\
+\n\
+\t// Do not set data on non-element DOM nodes because it will not be cleared (#8335).\n\
+\treturn nodeType !== 1 && nodeType !== 9 ?\n\
+\t\tfalse :\n\
+\n\
+\t\t// Nodes accept data unless otherwise specified; rejection can be conditional\n\
+\t\t!noData || noData !== true && elem.getAttribute(\"classid\") === noData;\n\
+};\n\
+\n\
+\n\
+var rbrace = /^(?:\\{[\\w\\W]*\\}|\\[[\\w\\W]*\\])$/,\n\
+\trmultiDash = /([A-Z])/g;\n\
+\n\
+function dataAttr( elem, key, data ) {\n\
+\t// If nothing was found internally, try to fetch any\n\
+\t// data from the HTML5 data-* attribute\n\
+\tif ( data === undefined && elem.nodeType === 1 ) {\n\
+\n\
+\t\tvar name = \"data-\" + key.replace( rmultiDash, \"-$1\" ).toLowerCase();\n\
+\n\
+\t\tdata = elem.getAttribute( name );\n\
+\n\
+\t\tif ( typeof data === \"string\" ) {\n\
+\t\t\ttry {\n\
+\t\t\t\tdata = data === \"true\" ? true :\n\
+\t\t\t\t\tdata === \"false\" ? false :\n\
+\t\t\t\t\tdata === \"null\" ? null :\n\
+\t\t\t\t\t// Only convert to a number if it doesn't change the string\n\
+\t\t\t\t\t+data + \"\" === data ? +data :\n\
+\t\t\t\t\trbrace.test( data ) ? jQuery.parseJSON( data ) :\n\
+\t\t\t\t\tdata;\n\
+\t\t\t} catch( e ) {}\n\
+\n\
+\t\t\t// Make sure we set the data so it isn't changed later\n\
+\t\t\tjQuery.data( elem, key, data );\n\
+\n\
+\t\t} else {\n\
+\t\t\tdata = undefined;\n\
+\t\t}\n\
+\t}\n\
+\n\
+\treturn data;\n\
+}\n\
+\n\
+// checks a cache object for emptiness\n\
+function isEmptyDataObject( obj ) {\n\
+\tvar name;\n\
+\tfor ( name in obj ) {\n\
+\n\
+\t\t// if the public data object is empty, the private is still empty\n\
+\t\tif ( name === \"data\" && jQuery.isEmptyObject( obj[name] ) ) {\n\
+\t\t\tcontinue;\n\
+\t\t}\n\
+\t\tif ( name !== \"toJSON\" ) {\n\
+\t\t\treturn false;\n\
+\t\t}\n\
+\t}\n\
+\n\
+\treturn true;\n\
+}\n\
+\n\
+function internalData( elem, name, data, pvt /* Internal Use Only */ ) {\n\
+\tif ( !jQuery.acceptData( elem ) ) {\n\
+\t\treturn;\n\
+\t}\n\
+\n\
+\tvar ret, thisCache,\n\
+\t\tinternalKey = jQuery.expando,\n\
+\n\
+\t\t// We have to handle DOM nodes and JS objects differently because IE6-7\n\
+\t\t// can't GC object references properly across the DOM-JS boundary\n\
+\t\tisNode = elem.nodeType,\n\
+\n\
+\t\t// Only DOM nodes need the global jQuery cache; JS object data is\n\
+\t\t// attached directly to the object so GC can occur automatically\n\
+\t\tcache = isNode ? jQuery.cache : elem,\n\
+\n\
+\t\t// Only defining an ID for JS objects if its cache already exists allows\n\
+\t\t// the code to shortcut on the same path as a DOM node with no cache\n\
+\t\tid = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey;\n\
+\n\
+\t// Avoid doing any more work than we need to when trying to get data on an\n\
+\t// object that has no data at all\n\
+\tif ( (!id || !cache[id] || (!pvt && !cache[id].data)) && data === undefined && typeof name === \"string\" ) {\n\
+\t\treturn;\n\
+\t}\n\
+\n\
+\tif ( !id ) {\n\
+\t\t// Only DOM nodes need a new unique ID for each element since their data\n\
+\t\t// ends up in the global cache\n\
+\t\tif ( isNode ) {\n\
+\t\t\tid = elem[ internalKey ] = deletedIds.pop() || jQuery.guid++;\n\
+\t\t} else {\n\
+\t\t\tid = internalKey;\n\
+\t\t}\n\
+\t}\n\
+\n\
+\tif ( !cache[ id ] ) {\n\
+\t\t// Avoid exposing jQuery metadata on plain JS objects when the object\n\
+\t\t// is serialized using JSON.stringify\n\
+\t\tcache[ id ] = isNode ? {} : { toJSON: jQuery.noop };\n\
+\t}\n\
+\n\
+\t// An object can be passed to jQuery.data instead of a key/value pair; this gets\n\
+\t// shallow copied over onto the existing cache\n\
+\tif ( typeof name === \"object\" || typeof name === \"function\" ) {\n\
+\t\tif ( pvt ) {\n\
+\t\t\tcache[ id ] = jQuery.extend( cache[ id ], name );\n\
+\t\t} else {\n\
+\t\t\tcache[ id ].data = jQuery.extend( cache[ id ].data, name );\n\
+\t\t}\n\
+\t}\n\
+\n\
+\tthisCache = cache[ id ];\n\
+\n\
+\t// jQuery data() is stored in a separate object inside the object's internal data\n\
+\t// cache in order to avoid key collisions between internal data and user-defined\n\
+\t// data.\n\
+\tif ( !pvt ) {\n\
+\t\tif ( !thisCache.data ) {\n\
+\t\t\tthisCache.data = {};\n\
+\t\t}\n\
+\n\
+\t\tthisCache = thisCache.data;\n\
+\t}\n\
+\n\
+\tif ( data !== undefined ) {\n\
+\t\tthisCache[ jQuery.camelCase( name ) ] = data;\n\
+\t}\n\
+\n\
+\t// Check for both converted-to-camel and non-converted data property names\n\
+\t// If a data property was specified\n\
+\tif ( typeof name === \"string\" ) {\n\
+\n\
+\t\t// First Try to find as-is property data\n\
+\t\tret = thisCache[ name ];\n\
+\n\
+\t\t// Test for null|undefined property data\n\
+\t\tif ( ret == null ) {\n\
+\n\
+\t\t\t// Try to find the camelCased property\n\
+\t\t\tret = thisCache[ jQuery.camelCase( name ) ];\n\
+\t\t}\n\
+\t} else {\n\
+\t\tret = thisCache;\n\
+\t}\n\
+\n\
+\treturn ret;\n\
+}\n\
+\n\
+function internalRemoveData( elem, name, pvt ) {\n\
+\tif ( !jQuery.acceptData( elem ) ) {\n\
+\t\treturn;\n\
+\t}\n\
+\n\
+\tvar thisCache, i,\n\
+\t\tisNode = elem.nodeType,\n\
+\n\
+\t\t// See jQuery.data for more information\n\
+\t\tcache = isNode ? jQuery.cache : elem,\n\
+\t\tid = isNode ? elem[ jQuery.expando ] : jQuery.expando;\n\
+\n\
+\t// If there is already no cache entry for this object, there is no\n\
+\t// purpose in continuing\n\
+\tif ( !cache[ id ] ) {\n\
+\t\treturn;\n\
+\t}\n\
+\n\
+\tif ( name ) {\n\
+\n\
+\t\tthisCache = pvt ? cache[ id ] : cache[ id ].data;\n\
+\n\
+\t\tif ( thisCache ) {\n\
+\n\
+\t\t\t// Support array or space separated string names for data keys\n\
+\t\t\tif ( !jQuery.isArray( name ) ) {\n\
+\n\
+\t\t\t\t// try the string as a key before any manipulation\n\
+\t\t\t\tif ( name in thisCache ) {\n\
+\t\t\t\t\tname = [ name ];\n\
+\t\t\t\t} else {\n\
+\n\
+\t\t\t\t\t// split the camel cased version by spaces unless a key with the spaces exists\n\
+\t\t\t\t\tname = jQuery.camelCase( name );\n\
+\t\t\t\t\tif ( name in thisCache ) {\n\
+\t\t\t\t\t\tname = [ name ];\n\
+\t\t\t\t\t} else {\n\
+\t\t\t\t\t\tname = name.split(\" \");\n\
+\t\t\t\t\t}\n\
+\t\t\t\t}\n\
+\t\t\t} else {\n\
+\t\t\t\t// If \"name\" is an array of keys...\n\
+\t\t\t\t// When data is initially created, via (\"key\", \"val\") signature,\n\
+\t\t\t\t// keys will be converted to camelCase.\n\
+\t\t\t\t// Since there is no way to tell _how_ a key was added, remove\n\
+\t\t\t\t// both plain key and camelCase key. #12786\n\
+\t\t\t\t// This will only penalize the array argument path.\n\
+\t\t\t\tname = name.concat( jQuery.map( name, jQuery.camelCase ) );\n\
+\t\t\t}\n\
+\n\
+\t\t\ti = name.length;\n\
+\t\t\twhile ( i-- ) {\n\
+\t\t\t\tdelete thisCache[ name[i] ];\n\
+\t\t\t}\n\
+\n\
+\t\t\t// If there is no data left in the cache, we want to continue\n\
+\t\t\t// and let the cache object itself get destroyed\n\
+\t\t\tif ( pvt ? !isEmptyDataObject(thisCache) : !jQuery.isEmptyObject(thisCache) ) {\n\
+\t\t\t\treturn;\n\
+\t\t\t}\n\
+\t\t}\n\
+\t}\n\
+\n\
+\t// See jQuery.data for more information\n\
+\tif ( !pvt ) {\n\
+\t\tdelete cache[ id ].data;\n\
+\n\
+\t\t// Don't destroy the parent cache unless the internal data object\n\
+\t\t// had been the only thing left in it\n\
+\t\tif ( !isEmptyDataObject( cache[ id ] ) ) {\n\
+\t\t\treturn;\n\
+\t\t}\n\
+\t}\n\
+\n\
+\t// Destroy the cache\n\
+\tif ( isNode ) {\n\
+\t\tjQuery.cleanData( [ elem ], true );\n\
+\n\
+\t// Use delete when supported for expandos or `cache` is not a window per isWindow (#10080)\n\
+\t/* jshint eqeqeq: false */\n\
+\t} else if ( support.deleteExpando || cache != cache.window ) {\n\
+\t\t/* jshint eqeqeq: true */\n\
+\t\tdelete cache[ id ];\n\
+\n\
+\t// When all else fails, null\n\
+\t} else {\n\
+\t\tcache[ id ] = null;\n\
+\t}\n\
+}\n\
+\n\
+jQuery.extend({\n\
+\tcache: {},\n\
+\n\
+\t// The following elements (space-suffixed to avoid Object.prototype collisions)\n\
+\t// throw uncatchable exceptions if you attempt to set expando properties\n\
+\tnoData: {\n\
+\t\t\"applet \": true,\n\
+\t\t\"embed \": true,\n\
+\t\t// ...but Flash objects (which have this classid) *can* handle expandos\n\
+\t\t\"object \": \"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"\n\
+\t},\n\
+\n\
+\thasData: function( elem ) {\n\
+\t\telem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ];\n\
+\t\treturn !!elem && !isEmptyDataObject( elem );\n\
+\t},\n\
+\n\
+\tdata: function( elem, name, data ) {\n\
+\t\treturn internalData( elem, name, data );\n\
+\t},\n\
+\n\
+\tremoveData: function( elem, name ) {\n\
+\t\treturn internalRemoveData( elem, name );\n\
+\t},\n\
+\n\
+\t// For internal use only.\n\
+\t_data: function( elem, name, data ) {\n\
+\t\treturn internalData( elem, name, data, true );\n\
+\t},\n\
+\n\
+\t_removeData: function( elem, name ) {\n\
+\t\treturn internalRemoveData( elem, name, true );\n\
+\t}\n\
+});\n\
+\n\
+jQuery.fn.extend({\n\
+\tdata: function( key, value ) {\n\
+\t\tvar i, name, data,\n\
+\t\t\telem = this[0],\n\
+\t\t\tattrs = elem && elem.attributes;\n\
+\n\
+\t\t// Special expections of .data basically thwart jQuery.access,\n\
+\t\t// so implement the relevant behavior ourselves\n\
+\n\
+\t\t// Gets all values\n\
+\t\tif ( key === undefined ) {\n\
+\t\t\tif ( this.length ) {\n\
+\t\t\t\tdata = jQuery.data( elem );\n\
+\n\
+\t\t\t\tif ( elem.nodeType === 1 && !jQuery._data( elem, \"parsedAttrs\" ) ) {\n\
+\t\t\t\t\ti = attrs.length;\n\
+\t\t\t\t\twhile ( i-- ) {\n\
+\n\
+\t\t\t\t\t\t// Support: IE11+\n\
+\t\t\t\t\t\t// The attrs elements can be null (#14894)\n\
+\t\t\t\t\t\tif ( attrs[ i ] ) {\n\
+\t\t\t\t\t\t\tname = attrs[ i ].name;\n\
+\t\t\t\t\t\t\tif ( name.indexOf( \"data-\" ) === 0 ) {\n\
+\t\t\t\t\t\t\t\tname = jQuery.camelCase( name.slice(5) );\n\
+\t\t\t\t\t\t\t\tdataAttr( elem, name, data[ name ] );\n\
+\t\t\t\t\t\t\t}\n\
+\t\t\t\t\t\t}\n\
+\t\t\t\t\t}\n\
+\t\t\t\t\tjQuery._data( elem, \"parsedAttrs\", true );\n\
+\t\t\t\t}\n\
+\t\t\t}\n\
+\n\
+\t\t\treturn data;\n\
+\t\t}\n\
+\n\
+\t\t// Sets multiple values\n\
+\t\tif ( typeof key === \"object\" ) {\n\
+\t\t\treturn this.each(function() {\n\
+\t\t\t\tjQuery.data( this, key );\n\
+\t\t\t});\n\
+\t\t}\n\
+\n\
+\t\treturn arguments.length > 1 ?\n\
+\n\
+\t\t\t// Sets one value\n\
+\t\t\tthis.each(function() {\n\
+\t\t\t\tjQuery.data( this, key, value );\n\
+\t\t\t}) :\n\
+\n\
+\t\t\t// Gets one value\n\
+\t\t\t// Try to fetch any internally stored data first\n\
+\t\t\telem ? dataAttr( elem, key, jQuery.data( elem, key ) ) : undefined;\n\
+\t},\n\
+\n\
+\tremoveData: function( key ) {\n\
+\t\treturn this.each(function() {\n\
+\t\t\tjQuery.removeData( this, key );\n\
+\t\t});\n\
+\t}\n\
+});\n\
+\n\
+\n\
+jQuery.extend({\n\
+\tqueue: function( elem, type, data ) {\n\
+\t\tvar queue;\n\
+\n\
+\t\tif ( elem ) {\n\
+\t\t\ttype = ( type || \"fx\" ) + \"queue\";\n\
+\t\t\tqueue = jQuery._data( elem, type );\n\
+\n\
+\t\t\t// Speed up dequeue by getting out quickly if this is just a lookup\n\
+\t\t\tif ( data ) {\n\
+\t\t\t\tif ( !queue || jQuery.isArray(data) ) {\n\
+\t\t\t\t\tqueue = jQuery._data( elem, type, jQuery.makeArray(data) );\n\
+\t\t\t\t} else {\n\
+\t\t\t\t\tqueue.push( data );\n\
+\t\t\t\t}\n\
+\t\t\t}\n\
+\t\t\treturn queue || [];\n\
+\t\t}\n\
+\t},\n\
+\n\
+\tdequeue: function( elem, type ) {\n\
+\t\ttype = type || \"fx\";\n\
+\n\
+\t\tvar queue = jQuery.queue( elem, type ),\n\
+\t\t\tstartLength = queue.length,\n\
+\t\t\tfn = queue.shift(),\n\
+\t\t\thooks = jQuery._queueHooks( elem, type ),\n\
+\t\t\tnext = function() {\n\
+\t\t\t\tjQuery.dequeue( elem, type );\n\
+\t\t\t};\n\
+\n\
+\t\t// If the fx queue is dequeued, always remove the progress sentinel\n\
+\t\tif ( fn === \"inprogress\" ) {\n\
+\t\t\tfn = queue.shift();\n\
+\t\t\tstartLength--;\n\
+\t\t}\n\
+\n\
+\t\tif ( fn ) {\n\
+\n\
+\t\t\t// Add a progress sentinel to prevent the fx queue from being\n\
+\t\t\t// automatically dequeued\n\
+\t\t\tif ( type === \"fx\" ) {\n\
+\t\t\t\tqueue.unshift( \"inprogress\" );\n\
+\t\t\t}\n\
+\n\
+\t\t\t// clear up the last queue stop function\n\
+\t\t\tdelete hooks.stop;\n\
+\t\t\tfn.call( elem, next, hooks );\n\
+\t\t}\n\
+\n\
+\t\tif ( !startLength && hooks ) {\n\
+\t\t\thooks.empty.fire();\n\
+\t\t}\n\
+\t},\n\
+\n\
+\t// not intended for public consumption - generates a queueHooks object, or returns the current one\n\
+\t_queueHooks: function( elem, type ) {\n\
+\t\tvar key = type + \"queueHooks\";\n\
+\t\treturn jQuery._data( elem, key ) || jQuery._data( elem, key, {\n\
+\t\t\tempty: jQuery.Callbacks(\"once memory\").add(function() {\n\
+\t\t\t\tjQuery._removeData( elem, type + \"queue\" );\n\
+\t\t\t\tjQuery._removeData( elem, key );\n\
+\t\t\t})\n\
+\t\t});\n\
+\t}\n\
+});\n\
+\n\
+jQuery.fn.extend({\n\
+\tqueue: function( type, data ) {\n\
+\t\tvar setter = 2;\n\
+\n\
+\t\tif ( typeof type !== \"string\" ) {\n\
+\t\t\tdata = type;\n\
+\t\t\ttype = \"fx\";\n\
+\t\t\tsetter--;\n\
+\t\t}\n\
+\n\
+\t\tif ( arguments.length < setter ) {\n\
+\t\t\treturn jQuery.queue( this[0], type );\n\
+\t\t}\n\
+\n\
+\t\treturn data === undefined ?\n\
+\t\t\tthis :\n\
+\t\t\tthis.each(function() {\n\
+\t\t\t\tvar queue = jQuery.queue( this, type, data );\n\
+\n\
+\t\t\t\t// ensure a hooks for this queue\n\
+\t\t\t\tjQuery._queueHooks( this, type );\n\
+\n\
+\t\t\t\tif ( type === \"fx\" && queue[0] !== \"inprogress\" ) {\n\
+\t\t\t\t\tjQuery.dequeue( this, type );\n\
+\t\t\t\t}\n\
+\t\t\t});\n\
+\t},\n\
+\tdequeue: function( type ) {\n\
+\t\treturn this.each(function() {\n\
+\t\t\tjQuery.dequeue( this, type );\n\
+\t\t});\n\
+\t},\n\
+\tclearQueue: function( type ) {\n\
+\t\treturn this.queue( type || \"fx\", [] );\n\
+\t},\n\
+\t// Get a promise resolved when queues of a certain type\n\
+\t// are emptied (fx is the type by default)\n\
+\tpromise: function( type, obj ) {\n\
+\t\tvar tmp,\n\
+\t\t\tcount = 1,\n\
+\t\t\tdefer = jQuery.Deferred(),\n\
+\t\t\telements = this,\n\
+\t\t\ti = this.length,\n\
+\t\t\tresolve = function() {\n\
+\t\t\t\tif ( !( --count ) ) {\n\
+\t\t\t\t\tdefer.resolveWith( elements, [ elements ] );\n\
+\t\t\t\t}\n\
+\t\t\t};\n\
+\n\
+\t\tif ( typeof type !== \"string\" ) {\n\
+\t\t\tobj = type;\n\
+\t\t\ttype = undefined;\n\
+\t\t}\n\
+\t\ttype = type || \"fx\";\n\
+\n\
+\t\twhile ( i-- ) {\n\
+\t\t\ttmp = jQuery._data( elements[ i ], type + \"queueHooks\" );\n\
+\t\t\tif ( tmp && tmp.empty ) {\n\
+\t\t\t\tcount++;\n\
+\t\t\t\ttmp.empty.add( resolve );\n\
+\t\t\t}\n\
+\t\t}\n\
+\t\tresolve();\n\
+\t\treturn defer.promise( obj );\n\
+\t}\n\
+});\n\
+var pnum = (/[+-]?(?:\\d*\\.|)\\d+(?:[eE][+-]?\\d+|)/).source;\n\
+\n\
+var cssExpand = [ \"Top\", \"Right\", \"Bottom\", \"Left\" ];\n\
+\n\
+var isHidden = function( elem, el ) {\n\
+\t\t// isHidden might be called from jQuery#filter function;\n\
+\t\t// in that case, element will be second argument\n\
+\t\telem = el || elem;\n\
+\t\treturn jQuery.css( elem, \"display\" ) === \"none\" || !jQuery.contains( elem.ownerDocument, elem );\n\
+\t};\n\
+\n\
+\n\
+\n\
+// Multifunctional method to get and set values of a collection\n\
+// The value/s can optionally be executed if it's a function\n\
+var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw ) {\n\
+\tvar i = 0,\n\
+\t\tlength = elems.length,\n\
+\t\tbulk = key == null;\n\
+\n\
+\t// Sets many values\n\
+\tif ( jQuery.type( key ) === \"object\" ) {\n\
+\t\tchainable = true;\n\
+\t\tfor ( i in key ) {\n\
+\t\t\tjQuery.access( elems, fn, i, key[i], true, emptyGet, raw );\n\
+\t\t}\n\
+\n\
+\t// Sets one value\n\
+\t} else if ( value !== undefined ) {\n\
+\t\tchainable = true;\n\
+\n\
+\t\tif ( !jQuery.isFunction( value ) ) {\n\
+\t\t\traw = true;\n\
+\t\t}\n\
+\n\
+\t\tif ( bulk ) {\n\
+\t\t\t// Bulk operations run against the entire set\n\
+\t\t\tif ( raw ) {\n\
+\t\t\t\tfn.call( elems, value );\n\
+\t\t\t\tfn = null;\n\
+\n\
+\t\t\t// ...except when executing function values\n\
+\t\t\t} else {\n\
+\t\t\t\tbulk = fn;\n\
+\t\t\t\tfn = function( elem, key, value ) {\n\
+\t\t\t\t\treturn bulk.call( jQuery( elem ), value );\n\
+\t\t\t\t};\n\
+\t\t\t}\n\
+\t\t}\n\
+\n\
+\t\tif ( fn ) {\n\
+\t\t\tfor ( ; i < length; i++ ) {\n\
+\t\t\t\tfn( elems[i], key, raw ? value : value.call( elems[i], i, fn( elems[i], key ) ) );\n\
+\t\t\t}\n\
+\t\t}\n\
+\t}\n\
+\n\
+\treturn chainable ?\n\
+\t\telems :\n\
+\n\
+\t\t// Gets\n\
+\t\tbulk ?\n\
+\t\t\tfn.call( elems ) :\n\
+\t\t\tlength ? fn( elems[0], key ) : emptyGet;\n\
+};\n\
+var rcheckableType = (/^(?:checkbox|radio)$/i);\n\
+\n\
+\n\
+\n\
+(function() {\n\
+\t// Minified: var a,b,c\n\
+\tvar input = document.createElement( \"input\" ),\n\
+\t\tdiv = document.createElement( \"div\" ),\n\
+\t\tfragment = document.createDocumentFragment();\n\
+\n\
+\t// Setup\n\
+\tdiv.innerHTML = \"
a\";\n\
+\n\
+\t// IE strips leading whitespace when .innerHTML is used\n\
+\tsupport.leadingWhitespace = div.firstChild.nodeType === 3;\n\
+\n\
+\t// Make sure that tbody elements aren't automatically inserted\n\
+\t// IE will insert them into empty tables\n\
+\tsupport.tbody = !div.getElementsByTagName( \"tbody\" ).length;\n\
+\n\
+\t// Make sure that link elements get serialized correctly by innerHTML\n\
+\t// This requires a wrapper element in IE\n\
+\tsupport.htmlSerialize = !!div.getElementsByTagName( \"link\" ).length;\n\
+\n\
+\t// Makes sure cloning an html5 element does not cause problems\n\
+\t// Where outerHTML is undefined, this still works\n\
+\tsupport.html5Clone =\n\
+\t\tdocument.createElement( \"nav\" ).cloneNode( true ).outerHTML !== \"<:nav>\";\n\
+\n\
+\t// Check if a disconnected checkbox will retain its checked\n\
+\t// value of true after appended to the DOM (IE6/7)\n\
+\tinput.type = \"checkbox\";\n\
+\tinput.checked = true;\n\
+\tfragment.appendChild( input );\n\
+\tsupport.appendChecked = input.checked;\n\
+\n\
+\t// Make sure textarea (and checkbox) defaultValue is properly cloned\n\
+\t// Support: IE6-IE11+\n\
+\tdiv.innerHTML = \"\";\n\
+\tsupport.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;\n\
+\n\
+\t// #11217 - WebKit loses check when the name is after the checked attribute\n\
+\tfragment.appendChild( div );\n\
+\tdiv.innerHTML = \"\";\n\
+\n\
+\t// Support: Safari 5.1, iOS 5.1, Android 4.x, Android 2.3\n\
+\t// old WebKit doesn't clone checked state correctly in fragments\n\
+\tsupport.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;\n\
+\n\
+\t// Support: IE<9\n\
+\t// Opera does not clone events (and typeof div.attachEvent === undefined).\n\
+\t// IE9-10 clones events bound via attachEvent, but they don't trigger with .click()\n\
+\tsupport.noCloneEvent = true;\n\
+\tif ( div.attachEvent ) {\n\
+\t\tdiv.attachEvent( \"onclick\", function() {\n\
+\t\t\tsupport.noCloneEvent = false;\n\
+\t\t});\n\
+\n\
+\t\tdiv.cloneNode( true ).click();\n\
+\t}\n\
+\n\
+\t// Execute the test only if not already executed in another module.\n\
+\tif (support.deleteExpando == null) {\n\
+\t\t// Support: IE<9\n\
+\t\tsupport.deleteExpando = true;\n\
+\t\ttry {\n\
+\t\t\tdelete div.test;\n\
+\t\t} catch( e ) {\n\
+\t\t\tsupport.deleteExpando = false;\n\
+\t\t}\n\
+\t}\n\
+})();\n\
+\n\
+\n\
+(function() {\n\
+\tvar i, eventName,\n\
+\t\tdiv = document.createElement( \"div\" );\n\
+\n\
+\t// Support: IE<9 (lack submit/change bubble), Firefox 23+ (lack focusin event)\n\
+\tfor ( i in { submit: true, change: true, focusin: true }) {\n\
+\t\teventName = \"on\" + i;\n\
+\n\
+\t\tif ( !(support[ i + \"Bubbles\" ] = eventName in window) ) {\n\
+\t\t\t// Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP)\n\
+\t\t\tdiv.setAttribute( eventName, \"t\" );\n\
+\t\t\tsupport[ i + \"Bubbles\" ] = div.attributes[ eventName ].expando === false;\n\
+\t\t}\n\
+\t}\n\
+\n\
+\t// Null elements to avoid leaks in IE.\n\
+\tdiv = null;\n\
+})();\n\
+\n\
+\n\
+var rformElems = /^(?:input|select|textarea)$/i,\n\
+\trkeyEvent = /^key/,\n\
+\trmouseEvent = /^(?:mouse|pointer|contextmenu)|click/,\n\
+\trfocusMorph = /^(?:focusinfocus|focusoutblur)$/,\n\
+\trtypenamespace = /^([^.]*)(?:\\.(.+)|)$/;\n\
+\n\
+function returnTrue() {\n\
+\treturn true;\n\
+}\n\
+\n\
+function returnFalse() {\n\
+\treturn false;\n\
+}\n\
+\n\
+function safeActiveElement() {\n\
+\ttry {\n\
+\t\treturn document.activeElement;\n\
+\t} catch ( err ) { }\n\
+}\n\
+\n\
+/*\n\
+ * Helper functions for managing events -- not part of the public interface.\n\
+ * Props to Dean Edwards' addEvent library for many of the ideas.\n\
+ */\n\
+jQuery.event = {\n\
+\n\
+\tglobal: {},\n\
+\n\
+\tadd: function( elem, types, handler, data, selector ) {\n\
+\t\tvar tmp, events, t, handleObjIn,\n\
+\t\t\tspecial, eventHandle, handleObj,\n\
+\t\t\thandlers, type, namespaces, origType,\n\
+\t\t\telemData = jQuery._data( elem );\n\
+\n\
+\t\t// Don't attach events to noData or text/comment nodes (but allow plain objects)\n\
+\t\tif ( !elemData ) {\n\
+\t\t\treturn;\n\
+\t\t}\n\
+\n\
+\t\t// Caller can pass in an object of custom data in lieu of the handler\n\
+\t\tif ( handler.handler ) {\n\
+\t\t\thandleObjIn = handler;\n\
+\t\t\thandler = handleObjIn.handler;\n\
+\t\t\tselector = handleObjIn.selector;\n\
+\t\t}\n\
+\n\
+\t\t// Make sure that the handler has a unique ID, used to find/remove it later\n\
+\t\tif ( !handler.guid ) {\n\
+\t\t\thandler.guid = jQuery.guid++;\n\
+\t\t}\n\
+\n\
+\t\t// Init the element's event structure and main handler, if this is the first\n\
+\t\tif ( !(events = elemData.events) ) {\n\
+\t\t\tevents = elemData.events = {};\n\
+\t\t}\n\
+\t\tif ( !(eventHandle = elemData.handle) ) {\n\
+\t\t\teventHandle = elemData.handle = function( e ) {\n\
+\t\t\t\t// Discard the second event of a jQuery.event.trigger() and\n\
+\t\t\t\t// when an event is called after a page has unloaded\n\
+\t\t\t\treturn typeof jQuery !== strundefined && (!e || jQuery.event.triggered !== e.type) ?\n\
+\t\t\t\t\tjQuery.event.dispatch.apply( eventHandle.elem, arguments ) :\n\
+\t\t\t\t\tundefined;\n\
+\t\t\t};\n\
+\t\t\t// Add elem as a property of the handle fn to prevent a memory leak with IE non-native events\n\
+\t\t\teventHandle.elem = elem;\n\
+\t\t}\n\
+\n\
+\t\t// Handle multiple events separated by a space\n\
+\t\ttypes = ( types || \"\" ).match( rnotwhite ) || [ \"\" ];\n\
+\t\tt = types.length;\n\
+\t\twhile ( t-- ) {\n\
+\t\t\ttmp = rtypenamespace.exec( types[t] ) || [];\n\
+\t\t\ttype = origType = tmp[1];\n\
+\t\t\tnamespaces = ( tmp[2] || \"\" ).split( \".\" ).sort();\n\
+\n\
+\t\t\t// There *must* be a type, no attaching namespace-only handlers\n\
+\t\t\tif ( !type ) {\n\
+\t\t\t\tcontinue;\n\
+\t\t\t}\n\
+\n\
+\t\t\t// If event changes its type, use the special event handlers for the changed type\n\
+\t\t\tspecial = jQuery.event.special[ type ] || {};\n\
+\n\
+\t\t\t// If selector defined, determine special event api type, otherwise given type\n\
+\t\t\ttype = ( selector ? special.delegateType : special.bindType ) || type;\n\
+\n\
+\t\t\t// Update special based on newly reset type\n\
+\t\t\tspecial = jQuery.event.special[ type ] || {};\n\
+\n\
+\t\t\t// handleObj is passed to all event handlers\n\
+\t\t\thandleObj = jQuery.extend({\n\
+\t\t\t\ttype: type,\n\
+\t\t\t\torigType: origType,\n\
+\t\t\t\tdata: data,\n\
+\t\t\t\thandler: handler,\n\
+\t\t\t\tguid: handler.guid,\n\
+\t\t\t\tselector: selector,\n\
+\t\t\t\tneedsContext: selector && jQuery.expr.match.needsContext.test( selector ),\n\
+\t\t\t\tnamespace: namespaces.join(\".\")\n\
+\t\t\t}, handleObjIn );\n\
+\n\
+\t\t\t// Init the event handler queue if we're the first\n\
+\t\t\tif ( !(handlers = events[ type ]) ) {\n\
+\t\t\t\thandlers = events[ type ] = [];\n\
+\t\t\t\thandlers.delegateCount = 0;\n\
+\n\
+\t\t\t\t// Only use addEventListener/attachEvent if the special events handler returns false\n\
+\t\t\t\tif ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {\n\
+\t\t\t\t\t// Bind the global event handler to the element\n\
+\t\t\t\t\tif ( elem.addEventListener ) {\n\
+\t\t\t\t\t\telem.addEventListener( type, eventHandle, false );\n\
+\n\
+\t\t\t\t\t} else if ( elem.attachEvent ) {\n\
+\t\t\t\t\t\telem.attachEvent( \"on\" + type, eventHandle );\n\
+\t\t\t\t\t}\n\
+\t\t\t\t}\n\
+\t\t\t}\n\
+\n\
+\t\t\tif ( special.add ) {\n\
+\t\t\t\tspecial.add.call( elem, handleObj );\n\
+\n\
+\t\t\t\tif ( !handleObj.handler.guid ) {\n\
+\t\t\t\t\thandleObj.handler.guid = handler.guid;\n\
+\t\t\t\t}\n\
+\t\t\t}\n\
+\n\
+\t\t\t// Add to the element's handler list, delegates in front\n\
+\t\t\tif ( selector ) {\n\
+\t\t\t\thandlers.splice( handlers.delegateCount++, 0, handleObj );\n\
+\t\t\t} else {\n\
+\t\t\t\thandlers.push( handleObj );\n\
+\t\t\t}\n\
+\n\
+\t\t\t// Keep track of which events have ever been used, for event optimization\n\
+\t\t\tjQuery.event.global[ type ] = true;\n\
+\t\t}\n\
+\n\
+\t\t// Nullify elem to prevent memory leaks in IE\n\
+\t\telem = null;\n\
+\t},\n\
+\n\
+\t// Detach an event or set of events from an element\n\
+\tremove: function( elem, types, handler, selector, mappedTypes ) {\n\
+\t\tvar j, handleObj, tmp,\n\
+\t\t\torigCount, t, events,\n\
+\t\t\tspecial, handlers, type,\n\
+\t\t\tnamespaces, origType,\n\
+\t\t\telemData = jQuery.hasData( elem ) && jQuery._data( elem );\n\
+\n\
+\t\tif ( !elemData || !(events = elemData.events) ) {\n\
+\t\t\treturn;\n\
+\t\t}\n\
+\n\
+\t\t// Once for each type.namespace in types; type may be omitted\n\
+\t\ttypes = ( types || \"\" ).match( rnotwhite ) || [ \"\" ];\n\
+\t\tt = types.length;\n\
+\t\twhile ( t-- ) {\n\
+\t\t\ttmp = rtypenamespace.exec( types[t] ) || [];\n\
+\t\t\ttype = origType = tmp[1];\n\
+\t\t\tnamespaces = ( tmp[2] || \"\" ).split( \".\" ).sort();\n\
+\n\
+\t\t\t// Unbind all events (on this namespace, if provided) for the element\n\
+\t\t\tif ( !type ) {\n\
+\t\t\t\tfor ( type in events ) {\n\
+\t\t\t\t\tjQuery.event.remove( elem, type + types[ t ], handler, selector, true );\n\
+\t\t\t\t}\n\
+\t\t\t\tcontinue;\n\
+\t\t\t}\n\
+\n\
+\t\t\tspecial = jQuery.event.special[ type ] || {};\n\
+\t\t\ttype = ( selector ? special.delegateType : special.bindType ) || type;\n\
+\t\t\thandlers = events[ type ] || [];\n\
+\t\t\ttmp = tmp[2] && new RegExp( \"(^|\\\\.)\" + namespaces.join(\"\\\\.(?:.*\\\\.|)\") + \"(\\\\.|$)\" );\n\
+\n\
+\t\t\t// Remove matching events\n\
+\t\t\torigCount = j = handlers.length;\n\
+\t\t\twhile ( j-- ) {\n\
+\t\t\t\thandleObj = handlers[ j ];\n\
+\n\
+\t\t\t\tif ( ( mappedTypes || origType === handleObj.origType ) &&\n\
+\t\t\t\t\t( !handler || handler.guid === handleObj.guid ) &&\n\
+\t\t\t\t\t( !tmp || tmp.test( handleObj.namespace ) ) &&\n\
+\t\t\t\t\t( !selector || selector === handleObj.selector || selector === \"**\" && handleObj.selector ) ) {\n\
+\t\t\t\t\thandlers.splice( j, 1 );\n\
+\n\
+\t\t\t\t\tif ( handleObj.selector ) {\n\
+\t\t\t\t\t\thandlers.delegateCount--;\n\
+\t\t\t\t\t}\n\
+\t\t\t\t\tif ( special.remove ) {\n\
+\t\t\t\t\t\tspecial.remove.call( elem, handleObj );\n\
+\t\t\t\t\t}\n\
+\t\t\t\t}\n\
+\t\t\t}\n\
+\n\
+\t\t\t// Remove generic event handler if we removed something and no more handlers exist\n\
+\t\t\t// (avoids potential for endless recursion during removal of special event handlers)\n\
+\t\t\tif ( origCount && !handlers.length ) {\n\
+\t\t\t\tif ( !special.teardown || special.teardown.call( elem, namespaces, elemData.handle ) === false ) {\n\
+\t\t\t\t\tjQuery.removeEvent( elem, type, elemData.handle );\n\
+\t\t\t\t}\n\
+\n\
+\t\t\t\tdelete events[ type ];\n\
+\t\t\t}\n\
+\t\t}\n\
+\n\
+\t\t// Remove the expando if it's no longer used\n\
+\t\tif ( jQuery.isEmptyObject( events ) ) {\n\
+\t\t\tdelete elemData.handle;\n\
+\n\
+\t\t\t// removeData also checks for emptiness and clears the expando if empty\n\
+\t\t\t// so use it instead of delete\n\
+\t\t\tjQuery._removeData( elem, \"events\" );\n\
+\t\t}\n\
+\t},\n\
+\n\
+\ttrigger: function( event, data, elem, onlyHandlers ) {\n\
+\t\tvar handle, ontype, cur,\n\
+\t\t\tbubbleType, special, tmp, i,\n\
+\t\t\teventPath = [ elem || document ],\n\
+\t\t\ttype = hasOwn.call( event, \"type\" ) ? event.type : event,\n\
+\t\t\tnamespaces = hasOwn.call( event, \"namespace\" ) ? event.namespace.split(\".\") : [];\n\
+\n\
+\t\tcur = tmp = elem = elem || document;\n\
+\n\
+\t\t// Don't do events on text and comment nodes\n\
+\t\tif ( elem.nodeType === 3 || elem.nodeType === 8 ) {\n\
+\t\t\treturn;\n\
+\t\t}\n\
+\n\
+\t\t// focus/blur morphs to focusin/out; ensure we're not firing them right now\n\
+\t\tif ( rfocusMorph.test( type + jQuery.event.triggered ) ) {\n\
+\t\t\treturn;\n\
+\t\t}\n\
+\n\
+\t\tif ( type.indexOf(\".\") >= 0 ) {\n\
+\t\t\t// Namespaced trigger; create a regexp to match event type in handle()\n\
+\t\t\tnamespaces = type.split(\".\");\n\
+\t\t\ttype = namespaces.shift();\n\
+\t\t\tnamespaces.sort();\n\
+\t\t}\n\
+\t\tontype = type.indexOf(\":\") < 0 && \"on\" + type;\n\
+\n\
+\t\t// Caller can pass in a jQuery.Event object, Object, or just an event type string\n\
+\t\tevent = event[ jQuery.expando ] ?\n\
+\t\t\tevent :\n\
+\t\t\tnew jQuery.Event( type, typeof event === \"object\" && event );\n\
+\n\
+\t\t// Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)\n\
+\t\tevent.isTrigger = onlyHandlers ? 2 : 3;\n\
+\t\tevent.namespace = namespaces.join(\".\");\n\
+\t\tevent.namespace_re = event.namespace ?\n\
+\t\t\tnew RegExp( \"(^|\\\\.)\" + namespaces.join(\"\\\\.(?:.*\\\\.|)\") + \"(\\\\.|$)\" ) :\n\
+\t\t\tnull;\n\
+\n\
+\t\t// Clean up the event in case it is being reused\n\
+\t\tevent.result = undefined;\n\
+\t\tif ( !event.target ) {\n\
+\t\t\tevent.target = elem;\n\
+\t\t}\n\
+\n\
+\t\t// Clone any incoming data and prepend the event, creating the handler arg list\n\
+\t\tdata = data == null ?\n\
+\t\t\t[ event ] :\n\
+\t\t\tjQuery.makeArray( data, [ event ] );\n\
+\n\
+\t\t// Allow special events to draw outside the lines\n\
+\t\tspecial = jQuery.event.special[ type ] || {};\n\
+\t\tif ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) {\n\
+\t\t\treturn;\n\
+\t\t}\n\
+\n\
+\t\t// Determine event propagation path in advance, per W3C events spec (#9951)\n\
+\t\t// Bubble up to document, then to window; watch for a global ownerDocument var (#9724)\n\
+\t\tif ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {\n\
+\n\
+\t\t\tbubbleType = special.delegateType || type;\n\
+\t\t\tif ( !rfocusMorph.test( bubbleType + type ) ) {\n\
+\t\t\t\tcur = cur.parentNode;\n\
+\t\t\t}\n\
+\t\t\tfor ( ; cur; cur = cur.parentNode ) {\n\
+\t\t\t\teventPath.push( cur );\n\
+\t\t\t\ttmp = cur;\n\
+\t\t\t}\n\
+\n\
+\t\t\t// Only add window if we got to document (e.g., not plain obj or detached DOM)\n\
+\t\t\tif ( tmp === (elem.ownerDocument || document) ) {\n\
+\t\t\t\teventPath.push( tmp.defaultView || tmp.parentWindow || window );\n\
+\t\t\t}\n\
+\t\t}\n\
+\n\
+\t\t// Fire handlers on the event path\n\
+\t\ti = 0;\n\
+\t\twhile ( (cur = eventPath[i++]) && !event.isPropagationStopped() ) {\n\
+\n\
+\t\t\tevent.type = i > 1 ?\n\
+\t\t\t\tbubbleType :\n\
+\t\t\t\tspecial.bindType || type;\n\
+\n\
+\t\t\t// jQuery handler\n\
+\t\t\thandle = ( jQuery._data( cur, \"events\" ) || {} )[ event.type ] && jQuery._data( cur, \"handle\" );\n\
+\t\t\tif ( handle ) {\n\
+\t\t\t\thandle.apply( cur, data );\n\
+\t\t\t}\n\
+\n\
+\t\t\t// Native handler\n\
+\t\t\thandle = ontype && cur[ ontype ];\n\
+\t\t\tif ( handle && handle.apply && jQuery.acceptData( cur ) ) {\n\
+\t\t\t\tevent.result = handle.apply( cur, data );\n\
+\t\t\t\tif ( event.result === false ) {\n\
+\t\t\t\t\tevent.preventDefault();\n\
+\t\t\t\t}\n\
+\t\t\t}\n\
+\t\t}\n\
+\t\tevent.type = type;\n\
+\n\
+\t\t// If nobody prevented the default action, do it now\n\
+\t\tif ( !onlyHandlers && !event.isDefaultPrevented() ) {\n\
+\n\
+\t\t\tif ( (!special._default || special._default.apply( eventPath.pop(), data ) === false) &&\n\
+\t\t\t\tjQuery.acceptData( elem ) ) {\n\
+\n\
+\t\t\t\t// Call a native DOM method on the target with the same name name as the event.\n\
+\t\t\t\t// Can't use an .isFunction() check here because IE6/7 fails that test.\n\
+\t\t\t\t// Don't do default actions on window, that's where global variables be (#6170)\n\
+\t\t\t\tif ( ontype && elem[ type ] && !jQuery.isWindow( elem ) ) {\n\
+\n\
+\t\t\t\t\t// Don't re-trigger an onFOO event when we call its FOO() method\n\
+\t\t\t\t\ttmp = elem[ ontype ];\n\
+\n\
+\t\t\t\t\tif ( tmp ) {\n\
+\t\t\t\t\t\telem[ ontype ] = null;\n\
+\t\t\t\t\t}\n\
+\n\
+\t\t\t\t\t// Prevent re-triggering of the same event, since we already bubbled it above\n\
+\t\t\t\t\tjQuery.event.triggered = type;\n\
+\t\t\t\t\ttry {\n\
+\t\t\t\t\t\telem[ type ]();\n\
+\t\t\t\t\t} catch ( e ) {\n\
+\t\t\t\t\t\t// IE<9 dies on focus/blur to hidden element (#1486,#12518)\n\
+\t\t\t\t\t\t// only reproducible on winXP IE8 native, not IE9 in IE8 mode\n\
+\t\t\t\t\t}\n\
+\t\t\t\t\tjQuery.event.triggered = undefined;\n\
+\n\
+\t\t\t\t\tif ( tmp ) {\n\
+\t\t\t\t\t\telem[ ontype ] = tmp;\n\
+\t\t\t\t\t}\n\
+\t\t\t\t}\n\
+\t\t\t}\n\
+\t\t}\n\
+\n\
+\t\treturn event.result;\n\
+\t},\n\
+\n\
+\tdispatch: function( event ) {\n\
+\n\
+\t\t// Make a writable jQuery.Event from the native event object\n\
+\t\tevent = jQuery.event.fix( event );\n\
+\n\
+\t\tvar i, ret, handleObj, matched, j,\n\
+\t\t\thandlerQueue = [],\n\
+\t\t\targs = slice.call( arguments ),\n\
+\t\t\thandlers = ( jQuery._data( this, \"events\" ) || {} )[ event.type ] || [],\n\
+\t\t\tspecial = jQuery.event.special[ event.type ] || {};\n\
+\n\
+\t\t// Use the fix-ed jQuery.Event rather than the (read-only) native event\n\
+\t\targs[0] = event;\n\
+\t\tevent.delegateTarget = this;\n\
+\n\
+\t\t// Call the preDispatch hook for the mapped type, and let it bail if desired\n\
+\t\tif ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {\n\
+\t\t\treturn;\n\
+\t\t}\n\
+\n\
+\t\t// Determine handlers\n\
+\t\thandlerQueue = jQuery.event.handlers.call( this, event, handlers );\n\
+\n\
+\t\t// Run delegates first; they may want to stop propagation beneath us\n\
+\t\ti = 0;\n\
+\t\twhile ( (matched = handlerQueue[ i++ ]) && !event.isPropagationStopped() ) {\n\
+\t\t\tevent.currentTarget = matched.elem;\n\
+\n\
+\t\t\tj = 0;\n\
+\t\t\twhile ( (handleObj = matched.handlers[ j++ ]) && !event.isImmediatePropagationStopped() ) {\n\
+\n\
+\t\t\t\t// Triggered event must either 1) have no namespace, or\n\
+\t\t\t\t// 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace).\n\
+\t\t\t\tif ( !event.namespace_re || event.namespace_re.test( handleObj.namespace ) ) {\n\
+\n\
+\t\t\t\t\tevent.handleObj = handleObj;\n\
+\t\t\t\t\tevent.data = handleObj.data;\n\
+\n\
+\t\t\t\t\tret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler )\n\
+\t\t\t\t\t\t\t.apply( matched.elem, args );\n\
+\n\
+\t\t\t\t\tif ( ret !== undefined ) {\n\
+\t\t\t\t\t\tif ( (event.result = ret) === false ) {\n\
+\t\t\t\t\t\t\tevent.preventDefault();\n\
+\t\t\t\t\t\t\tevent.stopPropagation();\n\
+\t\t\t\t\t\t}\n\
+\t\t\t\t\t}\n\
+\t\t\t\t}\n\
+\t\t\t}\n\
+\t\t}\n\
+\n\
+\t\t// Call the postDispatch hook for the mapped type\n\
+\t\tif ( special.postDispatch ) {\n\
+\t\t\tspecial.postDispatch.call( this, event );\n\
+\t\t}\n\
+\n\
+\t\treturn event.result;\n\
+\t},\n\
+\n\
+\thandlers: function( event, handlers ) {\n\
+\t\tvar sel, handleObj, matches, i,\n\
+\t\t\thandlerQueue = [],\n\
+\t\t\tdelegateCount = handlers.delegateCount,\n\
+\t\t\tcur = event.target;\n\
+\n\
+\t\t// Find delegate handlers\n\
+\t\t// Black-hole SVG