📚 The CoCalc Library - books, templates and other resources
License: OTHER
/*!1* jQuery JavaScript Library v1.11.12* http://jquery.com/3*4* Includes Sizzle.js5* http://sizzlejs.com/6*7* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors8* Released under the MIT license9* http://jquery.org/license10*11* Date: 2014-05-01T17:42Z12*/1314(function( global, factory ) {1516if ( typeof module === "object" && typeof module.exports === "object" ) {17// For CommonJS and CommonJS-like environments where a proper window is present,18// execute the factory and get jQuery19// For environments that do not inherently posses a window with a document20// (such as Node.js), expose a jQuery-making factory as module.exports21// This accentuates the need for the creation of a real window22// e.g. var jQuery = require("jquery")(window);23// See ticket #14549 for more info24module.exports = global.document ?25factory( global, true ) :26function( w ) {27if ( !w.document ) {28throw new Error( "jQuery requires a window with a document" );29}30return factory( w );31};32} else {33factory( global );34}3536// Pass this if window is not defined yet37}(typeof window !== "undefined" ? window : this, function( window, noGlobal ) {3839// Can't do this because several apps including ASP.NET trace40// the stack via arguments.caller.callee and Firefox dies if41// you try to trace through "use strict" call chains. (#13335)42// Support: Firefox 18+43//4445var deletedIds = [];4647var slice = deletedIds.slice;4849var concat = deletedIds.concat;5051var push = deletedIds.push;5253var indexOf = deletedIds.indexOf;5455var class2type = {};5657var toString = class2type.toString;5859var hasOwn = class2type.hasOwnProperty;6061var support = {};62636465var66version = "1.11.1",6768// Define a local copy of jQuery69jQuery = function( selector, context ) {70// The jQuery object is actually just the init constructor 'enhanced'71// Need init if jQuery is called (just allow error to be thrown if not included)72return new jQuery.fn.init( selector, context );73},7475// Support: Android<4.1, IE<976// Make sure we trim BOM and NBSP77rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,7879// Matches dashed string for camelizing80rmsPrefix = /^-ms-/,81rdashAlpha = /-([\da-z])/gi,8283// Used by jQuery.camelCase as callback to replace()84fcamelCase = function( all, letter ) {85return letter.toUpperCase();86};8788jQuery.fn = jQuery.prototype = {89// The current version of jQuery being used90jquery: version,9192constructor: jQuery,9394// Start with an empty selector95selector: "",9697// The default length of a jQuery object is 098length: 0,99100toArray: function() {101return slice.call( this );102},103104// Get the Nth element in the matched element set OR105// Get the whole matched element set as a clean array106get: function( num ) {107return num != null ?108109// Return just the one element from the set110( num < 0 ? this[ num + this.length ] : this[ num ] ) :111112// Return all the elements in a clean array113slice.call( this );114},115116// Take an array of elements and push it onto the stack117// (returning the new matched element set)118pushStack: function( elems ) {119120// Build a new jQuery matched element set121var ret = jQuery.merge( this.constructor(), elems );122123// Add the old object onto the stack (as a reference)124ret.prevObject = this;125ret.context = this.context;126127// Return the newly-formed element set128return ret;129},130131// Execute a callback for every element in the matched set.132// (You can seed the arguments with an array of args, but this is133// only used internally.)134each: function( callback, args ) {135return jQuery.each( this, callback, args );136},137138map: function( callback ) {139return this.pushStack( jQuery.map(this, function( elem, i ) {140return callback.call( elem, i, elem );141}));142},143144slice: function() {145return this.pushStack( slice.apply( this, arguments ) );146},147148first: function() {149return this.eq( 0 );150},151152last: function() {153return this.eq( -1 );154},155156eq: function( i ) {157var len = this.length,158j = +i + ( i < 0 ? len : 0 );159return this.pushStack( j >= 0 && j < len ? [ this[j] ] : [] );160},161162end: function() {163return this.prevObject || this.constructor(null);164},165166// For internal use only.167// Behaves like an Array's method, not like a jQuery method.168push: push,169sort: deletedIds.sort,170splice: deletedIds.splice171};172173jQuery.extend = jQuery.fn.extend = function() {174var src, copyIsArray, copy, name, options, clone,175target = arguments[0] || {},176i = 1,177length = arguments.length,178deep = false;179180// Handle a deep copy situation181if ( typeof target === "boolean" ) {182deep = target;183184// skip the boolean and the target185target = arguments[ i ] || {};186i++;187}188189// Handle case when target is a string or something (possible in deep copy)190if ( typeof target !== "object" && !jQuery.isFunction(target) ) {191target = {};192}193194// extend jQuery itself if only one argument is passed195if ( i === length ) {196target = this;197i--;198}199200for ( ; i < length; i++ ) {201// Only deal with non-null/undefined values202if ( (options = arguments[ i ]) != null ) {203// Extend the base object204for ( name in options ) {205src = target[ name ];206copy = options[ name ];207208// Prevent never-ending loop209if ( target === copy ) {210continue;211}212213// Recurse if we're merging plain objects or arrays214if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {215if ( copyIsArray ) {216copyIsArray = false;217clone = src && jQuery.isArray(src) ? src : [];218219} else {220clone = src && jQuery.isPlainObject(src) ? src : {};221}222223// Never move original objects, clone them224target[ name ] = jQuery.extend( deep, clone, copy );225226// Don't bring in undefined values227} else if ( copy !== undefined ) {228target[ name ] = copy;229}230}231}232}233234// Return the modified object235return target;236};237238jQuery.extend({239// Unique for each copy of jQuery on the page240expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ),241242// Assume jQuery is ready without the ready module243isReady: true,244245error: function( msg ) {246throw new Error( msg );247},248249noop: function() {},250251// See test/unit/core.js for details concerning isFunction.252// Since version 1.3, DOM methods and functions like alert253// aren't supported. They return false on IE (#2968).254isFunction: function( obj ) {255return jQuery.type(obj) === "function";256},257258isArray: Array.isArray || function( obj ) {259return jQuery.type(obj) === "array";260},261262isWindow: function( obj ) {263/* jshint eqeqeq: false */264return obj != null && obj == obj.window;265},266267isNumeric: function( obj ) {268// parseFloat NaNs numeric-cast false positives (null|true|false|"")269// ...but misinterprets leading-number strings, particularly hex literals ("0x...")270// subtraction forces infinities to NaN271return !jQuery.isArray( obj ) && obj - parseFloat( obj ) >= 0;272},273274isEmptyObject: function( obj ) {275var name;276for ( name in obj ) {277return false;278}279return true;280},281282isPlainObject: function( obj ) {283var key;284285// Must be an Object.286// Because of IE, we also have to check the presence of the constructor property.287// Make sure that DOM nodes and window objects don't pass through, as well288if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {289return false;290}291292try {293// Not own constructor property must be Object294if ( obj.constructor &&295!hasOwn.call(obj, "constructor") &&296!hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) {297return false;298}299} catch ( e ) {300// IE8,9 Will throw exceptions on certain host objects #9897301return false;302}303304// Support: IE<9305// Handle iteration over inherited properties before own properties.306if ( support.ownLast ) {307for ( key in obj ) {308return hasOwn.call( obj, key );309}310}311312// Own properties are enumerated firstly, so to speed up,313// if last one is own, then all properties are own.314for ( key in obj ) {}315316return key === undefined || hasOwn.call( obj, key );317},318319type: function( obj ) {320if ( obj == null ) {321return obj + "";322}323return typeof obj === "object" || typeof obj === "function" ?324class2type[ toString.call(obj) ] || "object" :325typeof obj;326},327328// Evaluates a script in a global context329// Workarounds based on findings by Jim Driscoll330// http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context331globalEval: function( data ) {332if ( data && jQuery.trim( data ) ) {333// We use execScript on Internet Explorer334// We use an anonymous function so that context is window335// rather than jQuery in Firefox336( window.execScript || function( data ) {337window[ "eval" ].call( window, data );338} )( data );339}340},341342// Convert dashed to camelCase; used by the css and data modules343// Microsoft forgot to hump their vendor prefix (#9572)344camelCase: function( string ) {345return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );346},347348nodeName: function( elem, name ) {349return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();350},351352// args is for internal usage only353each: function( obj, callback, args ) {354var value,355i = 0,356length = obj.length,357isArray = isArraylike( obj );358359if ( args ) {360if ( isArray ) {361for ( ; i < length; i++ ) {362value = callback.apply( obj[ i ], args );363364if ( value === false ) {365break;366}367}368} else {369for ( i in obj ) {370value = callback.apply( obj[ i ], args );371372if ( value === false ) {373break;374}375}376}377378// A special, fast, case for the most common use of each379} else {380if ( isArray ) {381for ( ; i < length; i++ ) {382value = callback.call( obj[ i ], i, obj[ i ] );383384if ( value === false ) {385break;386}387}388} else {389for ( i in obj ) {390value = callback.call( obj[ i ], i, obj[ i ] );391392if ( value === false ) {393break;394}395}396}397}398399return obj;400},401402// Support: Android<4.1, IE<9403trim: function( text ) {404return text == null ?405"" :406( text + "" ).replace( rtrim, "" );407},408409// results is for internal usage only410makeArray: function( arr, results ) {411var ret = results || [];412413if ( arr != null ) {414if ( isArraylike( Object(arr) ) ) {415jQuery.merge( ret,416typeof arr === "string" ?417[ arr ] : arr418);419} else {420push.call( ret, arr );421}422}423424return ret;425},426427inArray: function( elem, arr, i ) {428var len;429430if ( arr ) {431if ( indexOf ) {432return indexOf.call( arr, elem, i );433}434435len = arr.length;436i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0;437438for ( ; i < len; i++ ) {439// Skip accessing in sparse arrays440if ( i in arr && arr[ i ] === elem ) {441return i;442}443}444}445446return -1;447},448449merge: function( first, second ) {450var len = +second.length,451j = 0,452i = first.length;453454while ( j < len ) {455first[ i++ ] = second[ j++ ];456}457458// Support: IE<9459// Workaround casting of .length to NaN on otherwise arraylike objects (e.g., NodeLists)460if ( len !== len ) {461while ( second[j] !== undefined ) {462first[ i++ ] = second[ j++ ];463}464}465466first.length = i;467468return first;469},470471grep: function( elems, callback, invert ) {472var callbackInverse,473matches = [],474i = 0,475length = elems.length,476callbackExpect = !invert;477478// Go through the array, only saving the items479// that pass the validator function480for ( ; i < length; i++ ) {481callbackInverse = !callback( elems[ i ], i );482if ( callbackInverse !== callbackExpect ) {483matches.push( elems[ i ] );484}485}486487return matches;488},489490// arg is for internal usage only491map: function( elems, callback, arg ) {492var value,493i = 0,494length = elems.length,495isArray = isArraylike( elems ),496ret = [];497498// Go through the array, translating each of the items to their new values499if ( isArray ) {500for ( ; i < length; i++ ) {501value = callback( elems[ i ], i, arg );502503if ( value != null ) {504ret.push( value );505}506}507508// Go through every key on the object,509} else {510for ( i in elems ) {511value = callback( elems[ i ], i, arg );512513if ( value != null ) {514ret.push( value );515}516}517}518519// Flatten any nested arrays520return concat.apply( [], ret );521},522523// A global GUID counter for objects524guid: 1,525526// Bind a function to a context, optionally partially applying any527// arguments.528proxy: function( fn, context ) {529var args, proxy, tmp;530531if ( typeof context === "string" ) {532tmp = fn[ context ];533context = fn;534fn = tmp;535}536537// Quick check to determine if target is callable, in the spec538// this throws a TypeError, but we will just return undefined.539if ( !jQuery.isFunction( fn ) ) {540return undefined;541}542543// Simulated bind544args = slice.call( arguments, 2 );545proxy = function() {546return fn.apply( context || this, args.concat( slice.call( arguments ) ) );547};548549// Set the guid of unique handler to the same of original handler, so it can be removed550proxy.guid = fn.guid = fn.guid || jQuery.guid++;551552return proxy;553},554555now: function() {556return +( new Date() );557},558559// jQuery.support is not used in Core but other projects attach their560// properties to it so it needs to exist.561support: support562});563564// Populate the class2type map565jQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(i, name) {566class2type[ "[object " + name + "]" ] = name.toLowerCase();567});568569function isArraylike( obj ) {570var length = obj.length,571type = jQuery.type( obj );572573if ( type === "function" || jQuery.isWindow( obj ) ) {574return false;575}576577if ( obj.nodeType === 1 && length ) {578return true;579}580581return type === "array" || length === 0 ||582typeof length === "number" && length > 0 && ( length - 1 ) in obj;583}584var Sizzle =585/*!586* Sizzle CSS Selector Engine v1.10.19587* http://sizzlejs.com/588*589* Copyright 2013 jQuery Foundation, Inc. and other contributors590* Released under the MIT license591* http://jquery.org/license592*593* Date: 2014-04-18594*/595(function( window ) {596597var i,598support,599Expr,600getText,601isXML,602tokenize,603compile,604select,605outermostContext,606sortInput,607hasDuplicate,608609// Local document vars610setDocument,611document,612docElem,613documentIsHTML,614rbuggyQSA,615rbuggyMatches,616matches,617contains,618619// Instance-specific data620expando = "sizzle" + -(new Date()),621preferredDoc = window.document,622dirruns = 0,623done = 0,624classCache = createCache(),625tokenCache = createCache(),626compilerCache = createCache(),627sortOrder = function( a, b ) {628if ( a === b ) {629hasDuplicate = true;630}631return 0;632},633634// General-purpose constants635strundefined = typeof undefined,636MAX_NEGATIVE = 1 << 31,637638// Instance methods639hasOwn = ({}).hasOwnProperty,640arr = [],641pop = arr.pop,642push_native = arr.push,643push = arr.push,644slice = arr.slice,645// Use a stripped-down indexOf if we can't use a native one646indexOf = arr.indexOf || function( elem ) {647var i = 0,648len = this.length;649for ( ; i < len; i++ ) {650if ( this[i] === elem ) {651return i;652}653}654return -1;655},656657booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",658659// Regular expressions660661// Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace662whitespace = "[\\x20\\t\\r\\n\\f]",663// http://www.w3.org/TR/css3-syntax/#characters664characterEncoding = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",665666// Loosely modeled on CSS identifier characters667// An unquoted value should be a CSS identifier http://www.w3.org/TR/css3-selectors/#attribute-selectors668// Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier669identifier = characterEncoding.replace( "w", "w#" ),670671// Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors672attributes = "\\[" + whitespace + "*(" + characterEncoding + ")(?:" + whitespace +673// Operator (capture 2)674"*([*^$|!~]?=)" + whitespace +675// "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]"676"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace +677"*\\]",678679pseudos = ":(" + characterEncoding + ")(?:\\((" +680// To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:681// 1. quoted (capture 3; capture 4 or capture 5)682"('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" +683// 2. simple (capture 6)684"((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" +685// 3. anything else (capture 2)686".*" +687")\\)|)",688689// Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter690rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ),691692rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ),693rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ),694695rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", "g" ),696697rpseudo = new RegExp( pseudos ),698ridentifier = new RegExp( "^" + identifier + "$" ),699700matchExpr = {701"ID": new RegExp( "^#(" + characterEncoding + ")" ),702"CLASS": new RegExp( "^\\.(" + characterEncoding + ")" ),703"TAG": new RegExp( "^(" + characterEncoding.replace( "w", "w*" ) + ")" ),704"ATTR": new RegExp( "^" + attributes ),705"PSEUDO": new RegExp( "^" + pseudos ),706"CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace +707"*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace +708"*(\\d+)|))" + whitespace + "*\\)|)", "i" ),709"bool": new RegExp( "^(?:" + booleans + ")$", "i" ),710// For use in libraries implementing .is()711// We use this for POS matching in `select`712"needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" +713whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" )714},715716rinputs = /^(?:input|select|textarea|button)$/i,717rheader = /^h\d$/i,718719rnative = /^[^{]+\{\s*\[native \w/,720721// Easily-parseable/retrievable ID or TAG or CLASS selectors722rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,723724rsibling = /[+~]/,725rescape = /'|\\/g,726727// CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters728runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ),729funescape = function( _, escaped, escapedWhitespace ) {730var high = "0x" + escaped - 0x10000;731// NaN means non-codepoint732// Support: Firefox<24733// Workaround erroneous numeric interpretation of +"0x"734return high !== high || escapedWhitespace ?735escaped :736high < 0 ?737// BMP codepoint738String.fromCharCode( high + 0x10000 ) :739// Supplemental Plane codepoint (surrogate pair)740String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );741};742743// Optimize for push.apply( _, NodeList )744try {745push.apply(746(arr = slice.call( preferredDoc.childNodes )),747preferredDoc.childNodes748);749// Support: Android<4.0750// Detect silently failing push.apply751arr[ preferredDoc.childNodes.length ].nodeType;752} catch ( e ) {753push = { apply: arr.length ?754755// Leverage slice if possible756function( target, els ) {757push_native.apply( target, slice.call(els) );758} :759760// Support: IE<9761// Otherwise append directly762function( target, els ) {763var j = target.length,764i = 0;765// Can't trust NodeList.length766while ( (target[j++] = els[i++]) ) {}767target.length = j - 1;768}769};770}771772function Sizzle( selector, context, results, seed ) {773var match, elem, m, nodeType,774// QSA vars775i, groups, old, nid, newContext, newSelector;776777if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) {778setDocument( context );779}780781context = context || document;782results = results || [];783784if ( !selector || typeof selector !== "string" ) {785return results;786}787788if ( (nodeType = context.nodeType) !== 1 && nodeType !== 9 ) {789return [];790}791792if ( documentIsHTML && !seed ) {793794// Shortcuts795if ( (match = rquickExpr.exec( selector )) ) {796// Speed-up: Sizzle("#ID")797if ( (m = match[1]) ) {798if ( nodeType === 9 ) {799elem = context.getElementById( m );800// Check parentNode to catch when Blackberry 4.6 returns801// nodes that are no longer in the document (jQuery #6963)802if ( elem && elem.parentNode ) {803// Handle the case where IE, Opera, and Webkit return items804// by name instead of ID805if ( elem.id === m ) {806results.push( elem );807return results;808}809} else {810return results;811}812} else {813// Context is not a document814if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) &&815contains( context, elem ) && elem.id === m ) {816results.push( elem );817return results;818}819}820821// Speed-up: Sizzle("TAG")822} else if ( match[2] ) {823push.apply( results, context.getElementsByTagName( selector ) );824return results;825826// Speed-up: Sizzle(".CLASS")827} else if ( (m = match[3]) && support.getElementsByClassName && context.getElementsByClassName ) {828push.apply( results, context.getElementsByClassName( m ) );829return results;830}831}832833// QSA path834if ( support.qsa && (!rbuggyQSA || !rbuggyQSA.test( selector )) ) {835nid = old = expando;836newContext = context;837newSelector = nodeType === 9 && selector;838839// qSA works strangely on Element-rooted queries840// We can work around this by specifying an extra ID on the root841// and working up from there (Thanks to Andrew Dupont for the technique)842// IE 8 doesn't work on object elements843if ( nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) {844groups = tokenize( selector );845846if ( (old = context.getAttribute("id")) ) {847nid = old.replace( rescape, "\\$&" );848} else {849context.setAttribute( "id", nid );850}851nid = "[id='" + nid + "'] ";852853i = groups.length;854while ( i-- ) {855groups[i] = nid + toSelector( groups[i] );856}857newContext = rsibling.test( selector ) && testContext( context.parentNode ) || context;858newSelector = groups.join(",");859}860861if ( newSelector ) {862try {863push.apply( results,864newContext.querySelectorAll( newSelector )865);866return results;867} catch(qsaError) {868} finally {869if ( !old ) {870context.removeAttribute("id");871}872}873}874}875}876877// All others878return select( selector.replace( rtrim, "$1" ), context, results, seed );879}880881/**882* Create key-value caches of limited size883* @returns {Function(string, Object)} Returns the Object data after storing it on itself with884* property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)885* deleting the oldest entry886*/887function createCache() {888var keys = [];889890function cache( key, value ) {891// Use (key + " ") to avoid collision with native prototype properties (see Issue #157)892if ( keys.push( key + " " ) > Expr.cacheLength ) {893// Only keep the most recent entries894delete cache[ keys.shift() ];895}896return (cache[ key + " " ] = value);897}898return cache;899}900901/**902* Mark a function for special use by Sizzle903* @param {Function} fn The function to mark904*/905function markFunction( fn ) {906fn[ expando ] = true;907return fn;908}909910/**911* Support testing using an element912* @param {Function} fn Passed the created div and expects a boolean result913*/914function assert( fn ) {915var div = document.createElement("div");916917try {918return !!fn( div );919} catch (e) {920return false;921} finally {922// Remove from its parent by default923if ( div.parentNode ) {924div.parentNode.removeChild( div );925}926// release memory in IE927div = null;928}929}930931/**932* Adds the same handler for all of the specified attrs933* @param {String} attrs Pipe-separated list of attributes934* @param {Function} handler The method that will be applied935*/936function addHandle( attrs, handler ) {937var arr = attrs.split("|"),938i = attrs.length;939940while ( i-- ) {941Expr.attrHandle[ arr[i] ] = handler;942}943}944945/**946* Checks document order of two siblings947* @param {Element} a948* @param {Element} b949* @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b950*/951function siblingCheck( a, b ) {952var cur = b && a,953diff = cur && a.nodeType === 1 && b.nodeType === 1 &&954( ~b.sourceIndex || MAX_NEGATIVE ) -955( ~a.sourceIndex || MAX_NEGATIVE );956957// Use IE sourceIndex if available on both nodes958if ( diff ) {959return diff;960}961962// Check if b follows a963if ( cur ) {964while ( (cur = cur.nextSibling) ) {965if ( cur === b ) {966return -1;967}968}969}970971return a ? 1 : -1;972}973974/**975* Returns a function to use in pseudos for input types976* @param {String} type977*/978function createInputPseudo( type ) {979return function( elem ) {980var name = elem.nodeName.toLowerCase();981return name === "input" && elem.type === type;982};983}984985/**986* Returns a function to use in pseudos for buttons987* @param {String} type988*/989function createButtonPseudo( type ) {990return function( elem ) {991var name = elem.nodeName.toLowerCase();992return (name === "input" || name === "button") && elem.type === type;993};994}995996/**997* Returns a function to use in pseudos for positionals998* @param {Function} fn999*/1000function createPositionalPseudo( fn ) {1001return markFunction(function( argument ) {1002argument = +argument;1003return markFunction(function( seed, matches ) {1004var j,1005matchIndexes = fn( [], seed.length, argument ),1006i = matchIndexes.length;10071008// Match elements found at the specified indexes1009while ( i-- ) {1010if ( seed[ (j = matchIndexes[i]) ] ) {1011seed[j] = !(matches[j] = seed[j]);1012}1013}1014});1015});1016}10171018/**1019* Checks a node for validity as a Sizzle context1020* @param {Element|Object=} context1021* @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value1022*/1023function testContext( context ) {1024return context && typeof context.getElementsByTagName !== strundefined && context;1025}10261027// Expose support vars for convenience1028support = Sizzle.support = {};10291030/**1031* Detects XML nodes1032* @param {Element|Object} elem An element or a document1033* @returns {Boolean} True iff elem is a non-HTML XML node1034*/1035isXML = Sizzle.isXML = function( elem ) {1036// documentElement is verified for cases where it doesn't yet exist1037// (such as loading iframes in IE - #4833)1038var documentElement = elem && (elem.ownerDocument || elem).documentElement;1039return documentElement ? documentElement.nodeName !== "HTML" : false;1040};10411042/**1043* Sets document-related variables once based on the current document1044* @param {Element|Object} [doc] An element or document object to use to set the document1045* @returns {Object} Returns the current document1046*/1047setDocument = Sizzle.setDocument = function( node ) {1048var hasCompare,1049doc = node ? node.ownerDocument || node : preferredDoc,1050parent = doc.defaultView;10511052// If no document and documentElement is available, return1053if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {1054return document;1055}10561057// Set our document1058document = doc;1059docElem = doc.documentElement;10601061// Support tests1062documentIsHTML = !isXML( doc );10631064// Support: IE>81065// If iframe document is assigned to "document" variable and if iframe has been reloaded,1066// IE will throw "permission denied" error when accessing "document" variable, see jQuery #139361067// IE6-8 do not support the defaultView property so parent will be undefined1068if ( parent && parent !== parent.top ) {1069// IE11 does not have attachEvent, so all must suffer1070if ( parent.addEventListener ) {1071parent.addEventListener( "unload", function() {1072setDocument();1073}, false );1074} else if ( parent.attachEvent ) {1075parent.attachEvent( "onunload", function() {1076setDocument();1077});1078}1079}10801081/* Attributes1082---------------------------------------------------------------------- */10831084// Support: IE<81085// Verify that getAttribute really returns attributes and not properties (excepting IE8 booleans)1086support.attributes = assert(function( div ) {1087div.className = "i";1088return !div.getAttribute("className");1089});10901091/* getElement(s)By*1092---------------------------------------------------------------------- */10931094// Check if getElementsByTagName("*") returns only elements1095support.getElementsByTagName = assert(function( div ) {1096div.appendChild( doc.createComment("") );1097return !div.getElementsByTagName("*").length;1098});10991100// Check if getElementsByClassName can be trusted1101support.getElementsByClassName = rnative.test( doc.getElementsByClassName ) && assert(function( div ) {1102div.innerHTML = "<div class='a'></div><div class='a i'></div>";11031104// Support: Safari<41105// Catch class over-caching1106div.firstChild.className = "i";1107// Support: Opera<101108// Catch gEBCN failure to find non-leading classes1109return div.getElementsByClassName("i").length === 2;1110});11111112// Support: IE<101113// Check if getElementById returns elements by name1114// The broken getElementById methods don't pick up programatically-set names,1115// so use a roundabout getElementsByName test1116support.getById = assert(function( div ) {1117docElem.appendChild( div ).id = expando;1118return !doc.getElementsByName || !doc.getElementsByName( expando ).length;1119});11201121// ID find and filter1122if ( support.getById ) {1123Expr.find["ID"] = function( id, context ) {1124if ( typeof context.getElementById !== strundefined && documentIsHTML ) {1125var m = context.getElementById( id );1126// Check parentNode to catch when Blackberry 4.6 returns1127// nodes that are no longer in the document #69631128return m && m.parentNode ? [ m ] : [];1129}1130};1131Expr.filter["ID"] = function( id ) {1132var attrId = id.replace( runescape, funescape );1133return function( elem ) {1134return elem.getAttribute("id") === attrId;1135};1136};1137} else {1138// Support: IE6/71139// getElementById is not reliable as a find shortcut1140delete Expr.find["ID"];11411142Expr.filter["ID"] = function( id ) {1143var attrId = id.replace( runescape, funescape );1144return function( elem ) {1145var node = typeof elem.getAttributeNode !== strundefined && elem.getAttributeNode("id");1146return node && node.value === attrId;1147};1148};1149}11501151// Tag1152Expr.find["TAG"] = support.getElementsByTagName ?1153function( tag, context ) {1154if ( typeof context.getElementsByTagName !== strundefined ) {1155return context.getElementsByTagName( tag );1156}1157} :1158function( tag, context ) {1159var elem,1160tmp = [],1161i = 0,1162results = context.getElementsByTagName( tag );11631164// Filter out possible comments1165if ( tag === "*" ) {1166while ( (elem = results[i++]) ) {1167if ( elem.nodeType === 1 ) {1168tmp.push( elem );1169}1170}11711172return tmp;1173}1174return results;1175};11761177// Class1178Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) {1179if ( typeof context.getElementsByClassName !== strundefined && documentIsHTML ) {1180return context.getElementsByClassName( className );1181}1182};11831184/* QSA/matchesSelector1185---------------------------------------------------------------------- */11861187// QSA and matchesSelector support11881189// matchesSelector(:active) reports false when true (IE9/Opera 11.5)1190rbuggyMatches = [];11911192// qSa(:focus) reports false when true (Chrome 21)1193// We allow this because of a bug in IE8/9 that throws an error1194// whenever `document.activeElement` is accessed on an iframe1195// So, we allow :focus to pass through QSA all the time to avoid the IE error1196// See http://bugs.jquery.com/ticket/133781197rbuggyQSA = [];11981199if ( (support.qsa = rnative.test( doc.querySelectorAll )) ) {1200// Build QSA regex1201// Regex strategy adopted from Diego Perini1202assert(function( div ) {1203// Select is set to empty string on purpose1204// This is to test IE's treatment of not explicitly1205// setting a boolean content attribute,1206// since its presence should be enough1207// http://bugs.jquery.com/ticket/123591208div.innerHTML = "<select msallowclip=''><option selected=''></option></select>";12091210// Support: IE8, Opera 11-12.161211// Nothing should be selected when empty strings follow ^= or $= or *=1212// The test attribute must be unknown in Opera but "safe" for WinRT1213// http://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section1214if ( div.querySelectorAll("[msallowclip^='']").length ) {1215rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" );1216}12171218// Support: IE81219// Boolean attributes and "value" are not treated correctly1220if ( !div.querySelectorAll("[selected]").length ) {1221rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" );1222}12231224// Webkit/Opera - :checked should return selected option elements1225// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked1226// IE8 throws error here and will not see later tests1227if ( !div.querySelectorAll(":checked").length ) {1228rbuggyQSA.push(":checked");1229}1230});12311232assert(function( div ) {1233// Support: Windows 8 Native Apps1234// The type and name attributes are restricted during .innerHTML assignment1235var input = doc.createElement("input");1236input.setAttribute( "type", "hidden" );1237div.appendChild( input ).setAttribute( "name", "D" );12381239// Support: IE81240// Enforce case-sensitivity of name attribute1241if ( div.querySelectorAll("[name=d]").length ) {1242rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" );1243}12441245// FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)1246// IE8 throws error here and will not see later tests1247if ( !div.querySelectorAll(":enabled").length ) {1248rbuggyQSA.push( ":enabled", ":disabled" );1249}12501251// Opera 10-11 does not throw on post-comma invalid pseudos1252div.querySelectorAll("*,:x");1253rbuggyQSA.push(",.*:");1254});1255}12561257if ( (support.matchesSelector = rnative.test( (matches = docElem.matches ||1258docElem.webkitMatchesSelector ||1259docElem.mozMatchesSelector ||1260docElem.oMatchesSelector ||1261docElem.msMatchesSelector) )) ) {12621263assert(function( div ) {1264// Check to see if it's possible to do matchesSelector1265// on a disconnected node (IE 9)1266support.disconnectedMatch = matches.call( div, "div" );12671268// This should fail with an exception1269// Gecko does not error, returns false instead1270matches.call( div, "[s!='']:x" );1271rbuggyMatches.push( "!=", pseudos );1272});1273}12741275rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") );1276rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") );12771278/* Contains1279---------------------------------------------------------------------- */1280hasCompare = rnative.test( docElem.compareDocumentPosition );12811282// Element contains another1283// Purposefully does not implement inclusive descendent1284// As in, an element does not contain itself1285contains = hasCompare || rnative.test( docElem.contains ) ?1286function( a, b ) {1287var adown = a.nodeType === 9 ? a.documentElement : a,1288bup = b && b.parentNode;1289return a === bup || !!( bup && bup.nodeType === 1 && (1290adown.contains ?1291adown.contains( bup ) :1292a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 161293));1294} :1295function( a, b ) {1296if ( b ) {1297while ( (b = b.parentNode) ) {1298if ( b === a ) {1299return true;1300}1301}1302}1303return false;1304};13051306/* Sorting1307---------------------------------------------------------------------- */13081309// Document order sorting1310sortOrder = hasCompare ?1311function( a, b ) {13121313// Flag for duplicate removal1314if ( a === b ) {1315hasDuplicate = true;1316return 0;1317}13181319// Sort on method existence if only one input has compareDocumentPosition1320var compare = !a.compareDocumentPosition - !b.compareDocumentPosition;1321if ( compare ) {1322return compare;1323}13241325// Calculate position if both inputs belong to the same document1326compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ?1327a.compareDocumentPosition( b ) :13281329// Otherwise we know they are disconnected13301;13311332// Disconnected nodes1333if ( compare & 1 ||1334(!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) {13351336// Choose the first element that is related to our preferred document1337if ( a === doc || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) {1338return -1;1339}1340if ( b === doc || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) {1341return 1;1342}13431344// Maintain original order1345return sortInput ?1346( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) :13470;1348}13491350return compare & 4 ? -1 : 1;1351} :1352function( a, b ) {1353// Exit early if the nodes are identical1354if ( a === b ) {1355hasDuplicate = true;1356return 0;1357}13581359var cur,1360i = 0,1361aup = a.parentNode,1362bup = b.parentNode,1363ap = [ a ],1364bp = [ b ];13651366// Parentless nodes are either documents or disconnected1367if ( !aup || !bup ) {1368return a === doc ? -1 :1369b === doc ? 1 :1370aup ? -1 :1371bup ? 1 :1372sortInput ?1373( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) :13740;13751376// If the nodes are siblings, we can do a quick check1377} else if ( aup === bup ) {1378return siblingCheck( a, b );1379}13801381// Otherwise we need full lists of their ancestors for comparison1382cur = a;1383while ( (cur = cur.parentNode) ) {1384ap.unshift( cur );1385}1386cur = b;1387while ( (cur = cur.parentNode) ) {1388bp.unshift( cur );1389}13901391// Walk down the tree looking for a discrepancy1392while ( ap[i] === bp[i] ) {1393i++;1394}13951396return i ?1397// Do a sibling check if the nodes have a common ancestor1398siblingCheck( ap[i], bp[i] ) :13991400// Otherwise nodes in our document sort first1401ap[i] === preferredDoc ? -1 :1402bp[i] === preferredDoc ? 1 :14030;1404};14051406return doc;1407};14081409Sizzle.matches = function( expr, elements ) {1410return Sizzle( expr, null, null, elements );1411};14121413Sizzle.matchesSelector = function( elem, expr ) {1414// Set document vars if needed1415if ( ( elem.ownerDocument || elem ) !== document ) {1416setDocument( elem );1417}14181419// Make sure that attribute selectors are quoted1420expr = expr.replace( rattributeQuotes, "='$1']" );14211422if ( support.matchesSelector && documentIsHTML &&1423( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&1424( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) {14251426try {1427var ret = matches.call( elem, expr );14281429// IE 9's matchesSelector returns false on disconnected nodes1430if ( ret || support.disconnectedMatch ||1431// As well, disconnected nodes are said to be in a document1432// fragment in IE 91433elem.document && elem.document.nodeType !== 11 ) {1434return ret;1435}1436} catch(e) {}1437}14381439return Sizzle( expr, document, null, [ elem ] ).length > 0;1440};14411442Sizzle.contains = function( context, elem ) {1443// Set document vars if needed1444if ( ( context.ownerDocument || context ) !== document ) {1445setDocument( context );1446}1447return contains( context, elem );1448};14491450Sizzle.attr = function( elem, name ) {1451// Set document vars if needed1452if ( ( elem.ownerDocument || elem ) !== document ) {1453setDocument( elem );1454}14551456var fn = Expr.attrHandle[ name.toLowerCase() ],1457// Don't get fooled by Object.prototype properties (jQuery #13807)1458val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?1459fn( elem, name, !documentIsHTML ) :1460undefined;14611462return val !== undefined ?1463val :1464support.attributes || !documentIsHTML ?1465elem.getAttribute( name ) :1466(val = elem.getAttributeNode(name)) && val.specified ?1467val.value :1468null;1469};14701471Sizzle.error = function( msg ) {1472throw new Error( "Syntax error, unrecognized expression: " + msg );1473};14741475/**1476* Document sorting and removing duplicates1477* @param {ArrayLike} results1478*/1479Sizzle.uniqueSort = function( results ) {1480var elem,1481duplicates = [],1482j = 0,1483i = 0;14841485// Unless we *know* we can detect duplicates, assume their presence1486hasDuplicate = !support.detectDuplicates;1487sortInput = !support.sortStable && results.slice( 0 );1488results.sort( sortOrder );14891490if ( hasDuplicate ) {1491while ( (elem = results[i++]) ) {1492if ( elem === results[ i ] ) {1493j = duplicates.push( i );1494}1495}1496while ( j-- ) {1497results.splice( duplicates[ j ], 1 );1498}1499}15001501// Clear input after sorting to release objects1502// See https://github.com/jquery/sizzle/pull/2251503sortInput = null;15041505return results;1506};15071508/**1509* Utility function for retrieving the text value of an array of DOM nodes1510* @param {Array|Element} elem1511*/1512getText = Sizzle.getText = function( elem ) {1513var node,1514ret = "",1515i = 0,1516nodeType = elem.nodeType;15171518if ( !nodeType ) {1519// If no nodeType, this is expected to be an array1520while ( (node = elem[i++]) ) {1521// Do not traverse comment nodes1522ret += getText( node );1523}1524} else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {1525// Use textContent for elements1526// innerText usage removed for consistency of new lines (jQuery #11153)1527if ( typeof elem.textContent === "string" ) {1528return elem.textContent;1529} else {1530// Traverse its children1531for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {1532ret += getText( elem );1533}1534}1535} else if ( nodeType === 3 || nodeType === 4 ) {1536return elem.nodeValue;1537}1538// Do not include comment or processing instruction nodes15391540return ret;1541};15421543Expr = Sizzle.selectors = {15441545// Can be adjusted by the user1546cacheLength: 50,15471548createPseudo: markFunction,15491550match: matchExpr,15511552attrHandle: {},15531554find: {},15551556relative: {1557">": { dir: "parentNode", first: true },1558" ": { dir: "parentNode" },1559"+": { dir: "previousSibling", first: true },1560"~": { dir: "previousSibling" }1561},15621563preFilter: {1564"ATTR": function( match ) {1565match[1] = match[1].replace( runescape, funescape );15661567// Move the given value to match[3] whether quoted or unquoted1568match[3] = ( match[3] || match[4] || match[5] || "" ).replace( runescape, funescape );15691570if ( match[2] === "~=" ) {1571match[3] = " " + match[3] + " ";1572}15731574return match.slice( 0, 4 );1575},15761577"CHILD": function( match ) {1578/* matches from matchExpr["CHILD"]15791 type (only|nth|...)15802 what (child|of-type)15813 argument (even|odd|\d*|\d*n([+-]\d+)?|...)15824 xn-component of xn+y argument ([+-]?\d*n|)15835 sign of xn-component15846 x of xn-component15857 sign of y-component15868 y of y-component1587*/1588match[1] = match[1].toLowerCase();15891590if ( match[1].slice( 0, 3 ) === "nth" ) {1591// nth-* requires argument1592if ( !match[3] ) {1593Sizzle.error( match[0] );1594}15951596// numeric x and y parameters for Expr.filter.CHILD1597// remember that false/true cast respectively to 0/11598match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) );1599match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" );16001601// other types prohibit arguments1602} else if ( match[3] ) {1603Sizzle.error( match[0] );1604}16051606return match;1607},16081609"PSEUDO": function( match ) {1610var excess,1611unquoted = !match[6] && match[2];16121613if ( matchExpr["CHILD"].test( match[0] ) ) {1614return null;1615}16161617// Accept quoted arguments as-is1618if ( match[3] ) {1619match[2] = match[4] || match[5] || "";16201621// Strip excess characters from unquoted arguments1622} else if ( unquoted && rpseudo.test( unquoted ) &&1623// Get excess from tokenize (recursively)1624(excess = tokenize( unquoted, true )) &&1625// advance to the next closing parenthesis1626(excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) {16271628// excess is a negative index1629match[0] = match[0].slice( 0, excess );1630match[2] = unquoted.slice( 0, excess );1631}16321633// Return only captures needed by the pseudo filter method (type and argument)1634return match.slice( 0, 3 );1635}1636},16371638filter: {16391640"TAG": function( nodeNameSelector ) {1641var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();1642return nodeNameSelector === "*" ?1643function() { return true; } :1644function( elem ) {1645return elem.nodeName && elem.nodeName.toLowerCase() === nodeName;1646};1647},16481649"CLASS": function( className ) {1650var pattern = classCache[ className + " " ];16511652return pattern ||1653(pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) &&1654classCache( className, function( elem ) {1655return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== strundefined && elem.getAttribute("class") || "" );1656});1657},16581659"ATTR": function( name, operator, check ) {1660return function( elem ) {1661var result = Sizzle.attr( elem, name );16621663if ( result == null ) {1664return operator === "!=";1665}1666if ( !operator ) {1667return true;1668}16691670result += "";16711672return operator === "=" ? result === check :1673operator === "!=" ? result !== check :1674operator === "^=" ? check && result.indexOf( check ) === 0 :1675operator === "*=" ? check && result.indexOf( check ) > -1 :1676operator === "$=" ? check && result.slice( -check.length ) === check :1677operator === "~=" ? ( " " + result + " " ).indexOf( check ) > -1 :1678operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" :1679false;1680};1681},16821683"CHILD": function( type, what, argument, first, last ) {1684var simple = type.slice( 0, 3 ) !== "nth",1685forward = type.slice( -4 ) !== "last",1686ofType = what === "of-type";16871688return first === 1 && last === 0 ?16891690// Shortcut for :nth-*(n)1691function( elem ) {1692return !!elem.parentNode;1693} :16941695function( elem, context, xml ) {1696var cache, outerCache, node, diff, nodeIndex, start,1697dir = simple !== forward ? "nextSibling" : "previousSibling",1698parent = elem.parentNode,1699name = ofType && elem.nodeName.toLowerCase(),1700useCache = !xml && !ofType;17011702if ( parent ) {17031704// :(first|last|only)-(child|of-type)1705if ( simple ) {1706while ( dir ) {1707node = elem;1708while ( (node = node[ dir ]) ) {1709if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) {1710return false;1711}1712}1713// Reverse direction for :only-* (if we haven't yet done so)1714start = dir = type === "only" && !start && "nextSibling";1715}1716return true;1717}17181719start = [ forward ? parent.firstChild : parent.lastChild ];17201721// non-xml :nth-child(...) stores cache data on `parent`1722if ( forward && useCache ) {1723// Seek `elem` from a previously-cached index1724outerCache = parent[ expando ] || (parent[ expando ] = {});1725cache = outerCache[ type ] || [];1726nodeIndex = cache[0] === dirruns && cache[1];1727diff = cache[0] === dirruns && cache[2];1728node = nodeIndex && parent.childNodes[ nodeIndex ];17291730while ( (node = ++nodeIndex && node && node[ dir ] ||17311732// Fallback to seeking `elem` from the start1733(diff = nodeIndex = 0) || start.pop()) ) {17341735// When found, cache indexes on `parent` and break1736if ( node.nodeType === 1 && ++diff && node === elem ) {1737outerCache[ type ] = [ dirruns, nodeIndex, diff ];1738break;1739}1740}17411742// Use previously-cached element index if available1743} else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) {1744diff = cache[1];17451746// xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...)1747} else {1748// Use the same loop as above to seek `elem` from the start1749while ( (node = ++nodeIndex && node && node[ dir ] ||1750(diff = nodeIndex = 0) || start.pop()) ) {17511752if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) {1753// Cache the index of each encountered element1754if ( useCache ) {1755(node[ expando ] || (node[ expando ] = {}))[ type ] = [ dirruns, diff ];1756}17571758if ( node === elem ) {1759break;1760}1761}1762}1763}17641765// Incorporate the offset, then check against cycle size1766diff -= last;1767return diff === first || ( diff % first === 0 && diff / first >= 0 );1768}1769};1770},17711772"PSEUDO": function( pseudo, argument ) {1773// pseudo-class names are case-insensitive1774// http://www.w3.org/TR/selectors/#pseudo-classes1775// Prioritize by case sensitivity in case custom pseudos are added with uppercase letters1776// Remember that setFilters inherits from pseudos1777var args,1778fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||1779Sizzle.error( "unsupported pseudo: " + pseudo );17801781// The user may use createPseudo to indicate that1782// arguments are needed to create the filter function1783// just as Sizzle does1784if ( fn[ expando ] ) {1785return fn( argument );1786}17871788// But maintain support for old signatures1789if ( fn.length > 1 ) {1790args = [ pseudo, pseudo, "", argument ];1791return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?1792markFunction(function( seed, matches ) {1793var idx,1794matched = fn( seed, argument ),1795i = matched.length;1796while ( i-- ) {1797idx = indexOf.call( seed, matched[i] );1798seed[ idx ] = !( matches[ idx ] = matched[i] );1799}1800}) :1801function( elem ) {1802return fn( elem, 0, args );1803};1804}18051806return fn;1807}1808},18091810pseudos: {1811// Potentially complex pseudos1812"not": markFunction(function( selector ) {1813// Trim the selector passed to compile1814// to avoid treating leading and trailing1815// spaces as combinators1816var input = [],1817results = [],1818matcher = compile( selector.replace( rtrim, "$1" ) );18191820return matcher[ expando ] ?1821markFunction(function( seed, matches, context, xml ) {1822var elem,1823unmatched = matcher( seed, null, xml, [] ),1824i = seed.length;18251826// Match elements unmatched by `matcher`1827while ( i-- ) {1828if ( (elem = unmatched[i]) ) {1829seed[i] = !(matches[i] = elem);1830}1831}1832}) :1833function( elem, context, xml ) {1834input[0] = elem;1835matcher( input, null, xml, results );1836return !results.pop();1837};1838}),18391840"has": markFunction(function( selector ) {1841return function( elem ) {1842return Sizzle( selector, elem ).length > 0;1843};1844}),18451846"contains": markFunction(function( text ) {1847return function( elem ) {1848return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1;1849};1850}),18511852// "Whether an element is represented by a :lang() selector1853// is based solely on the element's language value1854// being equal to the identifier C,1855// or beginning with the identifier C immediately followed by "-".1856// The matching of C against the element's language value is performed case-insensitively.1857// The identifier C does not have to be a valid language name."1858// http://www.w3.org/TR/selectors/#lang-pseudo1859"lang": markFunction( function( lang ) {1860// lang value must be a valid identifier1861if ( !ridentifier.test(lang || "") ) {1862Sizzle.error( "unsupported lang: " + lang );1863}1864lang = lang.replace( runescape, funescape ).toLowerCase();1865return function( elem ) {1866var elemLang;1867do {1868if ( (elemLang = documentIsHTML ?1869elem.lang :1870elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) {18711872elemLang = elemLang.toLowerCase();1873return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0;1874}1875} while ( (elem = elem.parentNode) && elem.nodeType === 1 );1876return false;1877};1878}),18791880// Miscellaneous1881"target": function( elem ) {1882var hash = window.location && window.location.hash;1883return hash && hash.slice( 1 ) === elem.id;1884},18851886"root": function( elem ) {1887return elem === docElem;1888},18891890"focus": function( elem ) {1891return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex);1892},18931894// Boolean properties1895"enabled": function( elem ) {1896return elem.disabled === false;1897},18981899"disabled": function( elem ) {1900return elem.disabled === true;1901},19021903"checked": function( elem ) {1904// In CSS3, :checked should return both checked and selected elements1905// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked1906var nodeName = elem.nodeName.toLowerCase();1907return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected);1908},19091910"selected": function( elem ) {1911// Accessing this property makes selected-by-default1912// options in Safari work properly1913if ( elem.parentNode ) {1914elem.parentNode.selectedIndex;1915}19161917return elem.selected === true;1918},19191920// Contents1921"empty": function( elem ) {1922// http://www.w3.org/TR/selectors/#empty-pseudo1923// :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),1924// but not by others (comment: 8; processing instruction: 7; etc.)1925// nodeType < 6 works because attributes (2) do not appear as children1926for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {1927if ( elem.nodeType < 6 ) {1928return false;1929}1930}1931return true;1932},19331934"parent": function( elem ) {1935return !Expr.pseudos["empty"]( elem );1936},19371938// Element/input types1939"header": function( elem ) {1940return rheader.test( elem.nodeName );1941},19421943"input": function( elem ) {1944return rinputs.test( elem.nodeName );1945},19461947"button": function( elem ) {1948var name = elem.nodeName.toLowerCase();1949return name === "input" && elem.type === "button" || name === "button";1950},19511952"text": function( elem ) {1953var attr;1954return elem.nodeName.toLowerCase() === "input" &&1955elem.type === "text" &&19561957// Support: IE<81958// New HTML5 attribute values (e.g., "search") appear with elem.type === "text"1959( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" );1960},19611962// Position-in-collection1963"first": createPositionalPseudo(function() {1964return [ 0 ];1965}),19661967"last": createPositionalPseudo(function( matchIndexes, length ) {1968return [ length - 1 ];1969}),19701971"eq": createPositionalPseudo(function( matchIndexes, length, argument ) {1972return [ argument < 0 ? argument + length : argument ];1973}),19741975"even": createPositionalPseudo(function( matchIndexes, length ) {1976var i = 0;1977for ( ; i < length; i += 2 ) {1978matchIndexes.push( i );1979}1980return matchIndexes;1981}),19821983"odd": createPositionalPseudo(function( matchIndexes, length ) {1984var i = 1;1985for ( ; i < length; i += 2 ) {1986matchIndexes.push( i );1987}1988return matchIndexes;1989}),19901991"lt": createPositionalPseudo(function( matchIndexes, length, argument ) {1992var i = argument < 0 ? argument + length : argument;1993for ( ; --i >= 0; ) {1994matchIndexes.push( i );1995}1996return matchIndexes;1997}),19981999"gt": createPositionalPseudo(function( matchIndexes, length, argument ) {2000var i = argument < 0 ? argument + length : argument;2001for ( ; ++i < length; ) {2002matchIndexes.push( i );2003}2004return matchIndexes;2005})2006}2007};20082009Expr.pseudos["nth"] = Expr.pseudos["eq"];20102011// Add button/input type pseudos2012for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {2013Expr.pseudos[ i ] = createInputPseudo( i );2014}2015for ( i in { submit: true, reset: true } ) {2016Expr.pseudos[ i ] = createButtonPseudo( i );2017}20182019// Easy API for creating new setFilters2020function setFilters() {}2021setFilters.prototype = Expr.filters = Expr.pseudos;2022Expr.setFilters = new setFilters();20232024tokenize = Sizzle.tokenize = function( selector, parseOnly ) {2025var matched, match, tokens, type,2026soFar, groups, preFilters,2027cached = tokenCache[ selector + " " ];20282029if ( cached ) {2030return parseOnly ? 0 : cached.slice( 0 );2031}20322033soFar = selector;2034groups = [];2035preFilters = Expr.preFilter;20362037while ( soFar ) {20382039// Comma and first run2040if ( !matched || (match = rcomma.exec( soFar )) ) {2041if ( match ) {2042// Don't consume trailing commas as valid2043soFar = soFar.slice( match[0].length ) || soFar;2044}2045groups.push( (tokens = []) );2046}20472048matched = false;20492050// Combinators2051if ( (match = rcombinators.exec( soFar )) ) {2052matched = match.shift();2053tokens.push({2054value: matched,2055// Cast descendant combinators to space2056type: match[0].replace( rtrim, " " )2057});2058soFar = soFar.slice( matched.length );2059}20602061// Filters2062for ( type in Expr.filter ) {2063if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] ||2064(match = preFilters[ type ]( match ))) ) {2065matched = match.shift();2066tokens.push({2067value: matched,2068type: type,2069matches: match2070});2071soFar = soFar.slice( matched.length );2072}2073}20742075if ( !matched ) {2076break;2077}2078}20792080// Return the length of the invalid excess2081// if we're just parsing2082// Otherwise, throw an error or return tokens2083return parseOnly ?2084soFar.length :2085soFar ?2086Sizzle.error( selector ) :2087// Cache the tokens2088tokenCache( selector, groups ).slice( 0 );2089};20902091function toSelector( tokens ) {2092var i = 0,2093len = tokens.length,2094selector = "";2095for ( ; i < len; i++ ) {2096selector += tokens[i].value;2097}2098return selector;2099}21002101function addCombinator( matcher, combinator, base ) {2102var dir = combinator.dir,2103checkNonElements = base && dir === "parentNode",2104doneName = done++;21052106return combinator.first ?2107// Check against closest ancestor/preceding element2108function( elem, context, xml ) {2109while ( (elem = elem[ dir ]) ) {2110if ( elem.nodeType === 1 || checkNonElements ) {2111return matcher( elem, context, xml );2112}2113}2114} :21152116// Check against all ancestor/preceding elements2117function( elem, context, xml ) {2118var oldCache, outerCache,2119newCache = [ dirruns, doneName ];21202121// We can't set arbitrary data on XML nodes, so they don't benefit from dir caching2122if ( xml ) {2123while ( (elem = elem[ dir ]) ) {2124if ( elem.nodeType === 1 || checkNonElements ) {2125if ( matcher( elem, context, xml ) ) {2126return true;2127}2128}2129}2130} else {2131while ( (elem = elem[ dir ]) ) {2132if ( elem.nodeType === 1 || checkNonElements ) {2133outerCache = elem[ expando ] || (elem[ expando ] = {});2134if ( (oldCache = outerCache[ dir ]) &&2135oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) {21362137// Assign to newCache so results back-propagate to previous elements2138return (newCache[ 2 ] = oldCache[ 2 ]);2139} else {2140// Reuse newcache so results back-propagate to previous elements2141outerCache[ dir ] = newCache;21422143// A match means we're done; a fail means we have to keep checking2144if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) {2145return true;2146}2147}2148}2149}2150}2151};2152}21532154function elementMatcher( matchers ) {2155return matchers.length > 1 ?2156function( elem, context, xml ) {2157var i = matchers.length;2158while ( i-- ) {2159if ( !matchers[i]( elem, context, xml ) ) {2160return false;2161}2162}2163return true;2164} :2165matchers[0];2166}21672168function multipleContexts( selector, contexts, results ) {2169var i = 0,2170len = contexts.length;2171for ( ; i < len; i++ ) {2172Sizzle( selector, contexts[i], results );2173}2174return results;2175}21762177function condense( unmatched, map, filter, context, xml ) {2178var elem,2179newUnmatched = [],2180i = 0,2181len = unmatched.length,2182mapped = map != null;21832184for ( ; i < len; i++ ) {2185if ( (elem = unmatched[i]) ) {2186if ( !filter || filter( elem, context, xml ) ) {2187newUnmatched.push( elem );2188if ( mapped ) {2189map.push( i );2190}2191}2192}2193}21942195return newUnmatched;2196}21972198function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {2199if ( postFilter && !postFilter[ expando ] ) {2200postFilter = setMatcher( postFilter );2201}2202if ( postFinder && !postFinder[ expando ] ) {2203postFinder = setMatcher( postFinder, postSelector );2204}2205return markFunction(function( seed, results, context, xml ) {2206var temp, i, elem,2207preMap = [],2208postMap = [],2209preexisting = results.length,22102211// Get initial elements from seed or context2212elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ),22132214// Prefilter to get matcher input, preserving a map for seed-results synchronization2215matcherIn = preFilter && ( seed || !selector ) ?2216condense( elems, preMap, preFilter, context, xml ) :2217elems,22182219matcherOut = matcher ?2220// If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,2221postFinder || ( seed ? preFilter : preexisting || postFilter ) ?22222223// ...intermediate processing is necessary2224[] :22252226// ...otherwise use results directly2227results :2228matcherIn;22292230// Find primary matches2231if ( matcher ) {2232matcher( matcherIn, matcherOut, context, xml );2233}22342235// Apply postFilter2236if ( postFilter ) {2237temp = condense( matcherOut, postMap );2238postFilter( temp, [], context, xml );22392240// Un-match failing elements by moving them back to matcherIn2241i = temp.length;2242while ( i-- ) {2243if ( (elem = temp[i]) ) {2244matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem);2245}2246}2247}22482249if ( seed ) {2250if ( postFinder || preFilter ) {2251if ( postFinder ) {2252// Get the final matcherOut by condensing this intermediate into postFinder contexts2253temp = [];2254i = matcherOut.length;2255while ( i-- ) {2256if ( (elem = matcherOut[i]) ) {2257// Restore matcherIn since elem is not yet a final match2258temp.push( (matcherIn[i] = elem) );2259}2260}2261postFinder( null, (matcherOut = []), temp, xml );2262}22632264// Move matched elements from seed to results to keep them synchronized2265i = matcherOut.length;2266while ( i-- ) {2267if ( (elem = matcherOut[i]) &&2268(temp = postFinder ? indexOf.call( seed, elem ) : preMap[i]) > -1 ) {22692270seed[temp] = !(results[temp] = elem);2271}2272}2273}22742275// Add elements to results, through postFinder if defined2276} else {2277matcherOut = condense(2278matcherOut === results ?2279matcherOut.splice( preexisting, matcherOut.length ) :2280matcherOut2281);2282if ( postFinder ) {2283postFinder( null, results, matcherOut, xml );2284} else {2285push.apply( results, matcherOut );2286}2287}2288});2289}22902291function matcherFromTokens( tokens ) {2292var checkContext, matcher, j,2293len = tokens.length,2294leadingRelative = Expr.relative[ tokens[0].type ],2295implicitRelative = leadingRelative || Expr.relative[" "],2296i = leadingRelative ? 1 : 0,22972298// The foundational matcher ensures that elements are reachable from top-level context(s)2299matchContext = addCombinator( function( elem ) {2300return elem === checkContext;2301}, implicitRelative, true ),2302matchAnyContext = addCombinator( function( elem ) {2303return indexOf.call( checkContext, elem ) > -1;2304}, implicitRelative, true ),2305matchers = [ function( elem, context, xml ) {2306return ( !leadingRelative && ( xml || context !== outermostContext ) ) || (2307(checkContext = context).nodeType ?2308matchContext( elem, context, xml ) :2309matchAnyContext( elem, context, xml ) );2310} ];23112312for ( ; i < len; i++ ) {2313if ( (matcher = Expr.relative[ tokens[i].type ]) ) {2314matchers = [ addCombinator(elementMatcher( matchers ), matcher) ];2315} else {2316matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches );23172318// Return special upon seeing a positional matcher2319if ( matcher[ expando ] ) {2320// Find the next relative operator (if any) for proper handling2321j = ++i;2322for ( ; j < len; j++ ) {2323if ( Expr.relative[ tokens[j].type ] ) {2324break;2325}2326}2327return setMatcher(2328i > 1 && elementMatcher( matchers ),2329i > 1 && toSelector(2330// If the preceding token was a descendant combinator, insert an implicit any-element `*`2331tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" })2332).replace( rtrim, "$1" ),2333matcher,2334i < j && matcherFromTokens( tokens.slice( i, j ) ),2335j < len && matcherFromTokens( (tokens = tokens.slice( j )) ),2336j < len && toSelector( tokens )2337);2338}2339matchers.push( matcher );2340}2341}23422343return elementMatcher( matchers );2344}23452346function matcherFromGroupMatchers( elementMatchers, setMatchers ) {2347var bySet = setMatchers.length > 0,2348byElement = elementMatchers.length > 0,2349superMatcher = function( seed, context, xml, results, outermost ) {2350var elem, j, matcher,2351matchedCount = 0,2352i = "0",2353unmatched = seed && [],2354setMatched = [],2355contextBackup = outermostContext,2356// We must always have either seed elements or outermost context2357elems = seed || byElement && Expr.find["TAG"]( "*", outermost ),2358// Use integer dirruns iff this is the outermost matcher2359dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1),2360len = elems.length;23612362if ( outermost ) {2363outermostContext = context !== document && context;2364}23652366// Add elements passing elementMatchers directly to results2367// Keep `i` a string if there are no elements so `matchedCount` will be "00" below2368// Support: IE<9, Safari2369// Tolerate NodeList properties (IE: "length"; Safari: <number>) matching elements by id2370for ( ; i !== len && (elem = elems[i]) != null; i++ ) {2371if ( byElement && elem ) {2372j = 0;2373while ( (matcher = elementMatchers[j++]) ) {2374if ( matcher( elem, context, xml ) ) {2375results.push( elem );2376break;2377}2378}2379if ( outermost ) {2380dirruns = dirrunsUnique;2381}2382}23832384// Track unmatched elements for set filters2385if ( bySet ) {2386// They will have gone through all possible matchers2387if ( (elem = !matcher && elem) ) {2388matchedCount--;2389}23902391// Lengthen the array for every element, matched or not2392if ( seed ) {2393unmatched.push( elem );2394}2395}2396}23972398// Apply set filters to unmatched elements2399matchedCount += i;2400if ( bySet && i !== matchedCount ) {2401j = 0;2402while ( (matcher = setMatchers[j++]) ) {2403matcher( unmatched, setMatched, context, xml );2404}24052406if ( seed ) {2407// Reintegrate element matches to eliminate the need for sorting2408if ( matchedCount > 0 ) {2409while ( i-- ) {2410if ( !(unmatched[i] || setMatched[i]) ) {2411setMatched[i] = pop.call( results );2412}2413}2414}24152416// Discard index placeholder values to get only actual matches2417setMatched = condense( setMatched );2418}24192420// Add matches to results2421push.apply( results, setMatched );24222423// Seedless set matches succeeding multiple successful matchers stipulate sorting2424if ( outermost && !seed && setMatched.length > 0 &&2425( matchedCount + setMatchers.length ) > 1 ) {24262427Sizzle.uniqueSort( results );2428}2429}24302431// Override manipulation of globals by nested matchers2432if ( outermost ) {2433dirruns = dirrunsUnique;2434outermostContext = contextBackup;2435}24362437return unmatched;2438};24392440return bySet ?2441markFunction( superMatcher ) :2442superMatcher;2443}24442445compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) {2446var i,2447setMatchers = [],2448elementMatchers = [],2449cached = compilerCache[ selector + " " ];24502451if ( !cached ) {2452// Generate a function of recursive functions that can be used to check each element2453if ( !match ) {2454match = tokenize( selector );2455}2456i = match.length;2457while ( i-- ) {2458cached = matcherFromTokens( match[i] );2459if ( cached[ expando ] ) {2460setMatchers.push( cached );2461} else {2462elementMatchers.push( cached );2463}2464}24652466// Cache the compiled function2467cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) );24682469// Save selector and tokenization2470cached.selector = selector;2471}2472return cached;2473};24742475/**2476* A low-level selection function that works with Sizzle's compiled2477* selector functions2478* @param {String|Function} selector A selector or a pre-compiled2479* selector function built with Sizzle.compile2480* @param {Element} context2481* @param {Array} [results]2482* @param {Array} [seed] A set of elements to match against2483*/2484select = Sizzle.select = function( selector, context, results, seed ) {2485var i, tokens, token, type, find,2486compiled = typeof selector === "function" && selector,2487match = !seed && tokenize( (selector = compiled.selector || selector) );24882489results = results || [];24902491// Try to minimize operations if there is no seed and only one group2492if ( match.length === 1 ) {24932494// Take a shortcut and set the context if the root selector is an ID2495tokens = match[0] = match[0].slice( 0 );2496if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&2497support.getById && context.nodeType === 9 && documentIsHTML &&2498Expr.relative[ tokens[1].type ] ) {24992500context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];2501if ( !context ) {2502return results;25032504// Precompiled matchers will still verify ancestry, so step up a level2505} else if ( compiled ) {2506context = context.parentNode;2507}25082509selector = selector.slice( tokens.shift().value.length );2510}25112512// Fetch a seed set for right-to-left matching2513i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length;2514while ( i-- ) {2515token = tokens[i];25162517// Abort if we hit a combinator2518if ( Expr.relative[ (type = token.type) ] ) {2519break;2520}2521if ( (find = Expr.find[ type ]) ) {2522// Search, expanding context for leading sibling combinators2523if ( (seed = find(2524token.matches[0].replace( runescape, funescape ),2525rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context2526)) ) {25272528// If seed is empty or no tokens remain, we can return early2529tokens.splice( i, 1 );2530selector = seed.length && toSelector( tokens );2531if ( !selector ) {2532push.apply( results, seed );2533return results;2534}25352536break;2537}2538}2539}2540}25412542// Compile and execute a filtering function if one is not provided2543// Provide `match` to avoid retokenization if we modified the selector above2544( compiled || compile( selector, match ) )(2545seed,2546context,2547!documentIsHTML,2548results,2549rsibling.test( selector ) && testContext( context.parentNode ) || context2550);2551return results;2552};25532554// One-time assignments25552556// Sort stability2557support.sortStable = expando.split("").sort( sortOrder ).join("") === expando;25582559// Support: Chrome<142560// Always assume duplicates if they aren't passed to the comparison function2561support.detectDuplicates = !!hasDuplicate;25622563// Initialize against the default document2564setDocument();25652566// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)2567// Detached nodes confoundingly follow *each other*2568support.sortDetached = assert(function( div1 ) {2569// Should return 1, but returns 4 (following)2570return div1.compareDocumentPosition( document.createElement("div") ) & 1;2571});25722573// Support: IE<82574// Prevent attribute/property "interpolation"2575// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx2576if ( !assert(function( div ) {2577div.innerHTML = "<a href='#'></a>";2578return div.firstChild.getAttribute("href") === "#" ;2579}) ) {2580addHandle( "type|href|height|width", function( elem, name, isXML ) {2581if ( !isXML ) {2582return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 );2583}2584});2585}25862587// Support: IE<92588// Use defaultValue in place of getAttribute("value")2589if ( !support.attributes || !assert(function( div ) {2590div.innerHTML = "<input/>";2591div.firstChild.setAttribute( "value", "" );2592return div.firstChild.getAttribute( "value" ) === "";2593}) ) {2594addHandle( "value", function( elem, name, isXML ) {2595if ( !isXML && elem.nodeName.toLowerCase() === "input" ) {2596return elem.defaultValue;2597}2598});2599}26002601// Support: IE<92602// Use getAttributeNode to fetch booleans when getAttribute lies2603if ( !assert(function( div ) {2604return div.getAttribute("disabled") == null;2605}) ) {2606addHandle( booleans, function( elem, name, isXML ) {2607var val;2608if ( !isXML ) {2609return elem[ name ] === true ? name.toLowerCase() :2610(val = elem.getAttributeNode( name )) && val.specified ?2611val.value :2612null;2613}2614});2615}26162617return Sizzle;26182619})( window );2620262126222623jQuery.find = Sizzle;2624jQuery.expr = Sizzle.selectors;2625jQuery.expr[":"] = jQuery.expr.pseudos;2626jQuery.unique = Sizzle.uniqueSort;2627jQuery.text = Sizzle.getText;2628jQuery.isXMLDoc = Sizzle.isXML;2629jQuery.contains = Sizzle.contains;2630263126322633var rneedsContext = jQuery.expr.match.needsContext;26342635var rsingleTag = (/^<(\w+)\s*\/?>(?:<\/\1>|)$/);2636263726382639var risSimple = /^.[^:#\[\.,]*$/;26402641// Implement the identical functionality for filter and not2642function winnow( elements, qualifier, not ) {2643if ( jQuery.isFunction( qualifier ) ) {2644return jQuery.grep( elements, function( elem, i ) {2645/* jshint -W018 */2646return !!qualifier.call( elem, i, elem ) !== not;2647});26482649}26502651if ( qualifier.nodeType ) {2652return jQuery.grep( elements, function( elem ) {2653return ( elem === qualifier ) !== not;2654});26552656}26572658if ( typeof qualifier === "string" ) {2659if ( risSimple.test( qualifier ) ) {2660return jQuery.filter( qualifier, elements, not );2661}26622663qualifier = jQuery.filter( qualifier, elements );2664}26652666return jQuery.grep( elements, function( elem ) {2667return ( jQuery.inArray( elem, qualifier ) >= 0 ) !== not;2668});2669}26702671jQuery.filter = function( expr, elems, not ) {2672var elem = elems[ 0 ];26732674if ( not ) {2675expr = ":not(" + expr + ")";2676}26772678return elems.length === 1 && elem.nodeType === 1 ?2679jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [] :2680jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {2681return elem.nodeType === 1;2682}));2683};26842685jQuery.fn.extend({2686find: function( selector ) {2687var i,2688ret = [],2689self = this,2690len = self.length;26912692if ( typeof selector !== "string" ) {2693return this.pushStack( jQuery( selector ).filter(function() {2694for ( i = 0; i < len; i++ ) {2695if ( jQuery.contains( self[ i ], this ) ) {2696return true;2697}2698}2699}) );2700}27012702for ( i = 0; i < len; i++ ) {2703jQuery.find( selector, self[ i ], ret );2704}27052706// Needed because $( selector, context ) becomes $( context ).find( selector )2707ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret );2708ret.selector = this.selector ? this.selector + " " + selector : selector;2709return ret;2710},2711filter: function( selector ) {2712return this.pushStack( winnow(this, selector || [], false) );2713},2714not: function( selector ) {2715return this.pushStack( winnow(this, selector || [], true) );2716},2717is: function( selector ) {2718return !!winnow(2719this,27202721// If this is a positional/relative selector, check membership in the returned set2722// so $("p:first").is("p:last") won't return true for a doc with two "p".2723typeof selector === "string" && rneedsContext.test( selector ) ?2724jQuery( selector ) :2725selector || [],2726false2727).length;2728}2729});273027312732// Initialize a jQuery object273327342735// A central reference to the root jQuery(document)2736var rootjQuery,27372738// Use the correct document accordingly with window argument (sandbox)2739document = window.document,27402741// A simple way to check for HTML strings2742// Prioritize #id over <tag> to avoid XSS via location.hash (#9521)2743// Strict HTML recognition (#11290: must start with <)2744rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,27452746init = jQuery.fn.init = function( selector, context ) {2747var match, elem;27482749// HANDLE: $(""), $(null), $(undefined), $(false)2750if ( !selector ) {2751return this;2752}27532754// Handle HTML strings2755if ( typeof selector === "string" ) {2756if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) {2757// Assume that strings that start and end with <> are HTML and skip the regex check2758match = [ null, selector, null ];27592760} else {2761match = rquickExpr.exec( selector );2762}27632764// Match html or make sure no context is specified for #id2765if ( match && (match[1] || !context) ) {27662767// HANDLE: $(html) -> $(array)2768if ( match[1] ) {2769context = context instanceof jQuery ? context[0] : context;27702771// scripts is true for back-compat2772// Intentionally let the error be thrown if parseHTML is not present2773jQuery.merge( this, jQuery.parseHTML(2774match[1],2775context && context.nodeType ? context.ownerDocument || context : document,2776true2777) );27782779// HANDLE: $(html, props)2780if ( rsingleTag.test( match[1] ) && jQuery.isPlainObject( context ) ) {2781for ( match in context ) {2782// Properties of context are called as methods if possible2783if ( jQuery.isFunction( this[ match ] ) ) {2784this[ match ]( context[ match ] );27852786// ...and otherwise set as attributes2787} else {2788this.attr( match, context[ match ] );2789}2790}2791}27922793return this;27942795// HANDLE: $(#id)2796} else {2797elem = document.getElementById( match[2] );27982799// Check parentNode to catch when Blackberry 4.6 returns2800// nodes that are no longer in the document #69632801if ( elem && elem.parentNode ) {2802// Handle the case where IE and Opera return items2803// by name instead of ID2804if ( elem.id !== match[2] ) {2805return rootjQuery.find( selector );2806}28072808// Otherwise, we inject the element directly into the jQuery object2809this.length = 1;2810this[0] = elem;2811}28122813this.context = document;2814this.selector = selector;2815return this;2816}28172818// HANDLE: $(expr, $(...))2819} else if ( !context || context.jquery ) {2820return ( context || rootjQuery ).find( selector );28212822// HANDLE: $(expr, context)2823// (which is just equivalent to: $(context).find(expr)2824} else {2825return this.constructor( context ).find( selector );2826}28272828// HANDLE: $(DOMElement)2829} else if ( selector.nodeType ) {2830this.context = this[0] = selector;2831this.length = 1;2832return this;28332834// HANDLE: $(function)2835// Shortcut for document ready2836} else if ( jQuery.isFunction( selector ) ) {2837return typeof rootjQuery.ready !== "undefined" ?2838rootjQuery.ready( selector ) :2839// Execute immediately if ready is not present2840selector( jQuery );2841}28422843if ( selector.selector !== undefined ) {2844this.selector = selector.selector;2845this.context = selector.context;2846}28472848return jQuery.makeArray( selector, this );2849};28502851// Give the init function the jQuery prototype for later instantiation2852init.prototype = jQuery.fn;28532854// Initialize central reference2855rootjQuery = jQuery( document );285628572858var rparentsprev = /^(?:parents|prev(?:Until|All))/,2859// methods guaranteed to produce a unique set when starting from a unique set2860guaranteedUnique = {2861children: true,2862contents: true,2863next: true,2864prev: true2865};28662867jQuery.extend({2868dir: function( elem, dir, until ) {2869var matched = [],2870cur = elem[ dir ];28712872while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) {2873if ( cur.nodeType === 1 ) {2874matched.push( cur );2875}2876cur = cur[dir];2877}2878return matched;2879},28802881sibling: function( n, elem ) {2882var r = [];28832884for ( ; n; n = n.nextSibling ) {2885if ( n.nodeType === 1 && n !== elem ) {2886r.push( n );2887}2888}28892890return r;2891}2892});28932894jQuery.fn.extend({2895has: function( target ) {2896var i,2897targets = jQuery( target, this ),2898len = targets.length;28992900return this.filter(function() {2901for ( i = 0; i < len; i++ ) {2902if ( jQuery.contains( this, targets[i] ) ) {2903return true;2904}2905}2906});2907},29082909closest: function( selectors, context ) {2910var cur,2911i = 0,2912l = this.length,2913matched = [],2914pos = rneedsContext.test( selectors ) || typeof selectors !== "string" ?2915jQuery( selectors, context || this.context ) :29160;29172918for ( ; i < l; i++ ) {2919for ( cur = this[i]; cur && cur !== context; cur = cur.parentNode ) {2920// Always skip document fragments2921if ( cur.nodeType < 11 && (pos ?2922pos.index(cur) > -1 :29232924// Don't pass non-elements to Sizzle2925cur.nodeType === 1 &&2926jQuery.find.matchesSelector(cur, selectors)) ) {29272928matched.push( cur );2929break;2930}2931}2932}29332934return this.pushStack( matched.length > 1 ? jQuery.unique( matched ) : matched );2935},29362937// Determine the position of an element within2938// the matched set of elements2939index: function( elem ) {29402941// No argument, return index in parent2942if ( !elem ) {2943return ( this[0] && this[0].parentNode ) ? this.first().prevAll().length : -1;2944}29452946// index in selector2947if ( typeof elem === "string" ) {2948return jQuery.inArray( this[0], jQuery( elem ) );2949}29502951// Locate the position of the desired element2952return jQuery.inArray(2953// If it receives a jQuery object, the first element is used2954elem.jquery ? elem[0] : elem, this );2955},29562957add: function( selector, context ) {2958return this.pushStack(2959jQuery.unique(2960jQuery.merge( this.get(), jQuery( selector, context ) )2961)2962);2963},29642965addBack: function( selector ) {2966return this.add( selector == null ?2967this.prevObject : this.prevObject.filter(selector)2968);2969}2970});29712972function sibling( cur, dir ) {2973do {2974cur = cur[ dir ];2975} while ( cur && cur.nodeType !== 1 );29762977return cur;2978}29792980jQuery.each({2981parent: function( elem ) {2982var parent = elem.parentNode;2983return parent && parent.nodeType !== 11 ? parent : null;2984},2985parents: function( elem ) {2986return jQuery.dir( elem, "parentNode" );2987},2988parentsUntil: function( elem, i, until ) {2989return jQuery.dir( elem, "parentNode", until );2990},2991next: function( elem ) {2992return sibling( elem, "nextSibling" );2993},2994prev: function( elem ) {2995return sibling( elem, "previousSibling" );2996},2997nextAll: function( elem ) {2998return jQuery.dir( elem, "nextSibling" );2999},3000prevAll: function( elem ) {3001return jQuery.dir( elem, "previousSibling" );3002},3003nextUntil: function( elem, i, until ) {3004return jQuery.dir( elem, "nextSibling", until );3005},3006prevUntil: function( elem, i, until ) {3007return jQuery.dir( elem, "previousSibling", until );3008},3009siblings: function( elem ) {3010return jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem );3011},3012children: function( elem ) {3013return jQuery.sibling( elem.firstChild );3014},3015contents: function( elem ) {3016return jQuery.nodeName( elem, "iframe" ) ?3017elem.contentDocument || elem.contentWindow.document :3018jQuery.merge( [], elem.childNodes );3019}3020}, function( name, fn ) {3021jQuery.fn[ name ] = function( until, selector ) {3022var ret = jQuery.map( this, fn, until );30233024if ( name.slice( -5 ) !== "Until" ) {3025selector = until;3026}30273028if ( selector && typeof selector === "string" ) {3029ret = jQuery.filter( selector, ret );3030}30313032if ( this.length > 1 ) {3033// Remove duplicates3034if ( !guaranteedUnique[ name ] ) {3035ret = jQuery.unique( ret );3036}30373038// Reverse order for parents* and prev-derivatives3039if ( rparentsprev.test( name ) ) {3040ret = ret.reverse();3041}3042}30433044return this.pushStack( ret );3045};3046});3047var rnotwhite = (/\S+/g);3048304930503051// String to Object options format cache3052var optionsCache = {};30533054// Convert String-formatted options into Object-formatted ones and store in cache3055function createOptions( options ) {3056var object = optionsCache[ options ] = {};3057jQuery.each( options.match( rnotwhite ) || [], function( _, flag ) {3058object[ flag ] = true;3059});3060return object;3061}30623063/*3064* Create a callback list using the following parameters:3065*3066* options: an optional list of space-separated options that will change how3067* the callback list behaves or a more traditional option object3068*3069* By default a callback list will act like an event callback list and can be3070* "fired" multiple times.3071*3072* Possible options:3073*3074* once: will ensure the callback list can only be fired once (like a Deferred)3075*3076* memory: will keep track of previous values and will call any callback added3077* after the list has been fired right away with the latest "memorized"3078* values (like a Deferred)3079*3080* unique: will ensure a callback can only be added once (no duplicate in the list)3081*3082* stopOnFalse: interrupt callings when a callback returns false3083*3084*/3085jQuery.Callbacks = function( options ) {30863087// Convert options from String-formatted to Object-formatted if needed3088// (we check in cache first)3089options = typeof options === "string" ?3090( optionsCache[ options ] || createOptions( options ) ) :3091jQuery.extend( {}, options );30923093var // Flag to know if list is currently firing3094firing,3095// Last fire value (for non-forgettable lists)3096memory,3097// Flag to know if list was already fired3098fired,3099// End of the loop when firing3100firingLength,3101// Index of currently firing callback (modified by remove if needed)3102firingIndex,3103// First callback to fire (used internally by add and fireWith)3104firingStart,3105// Actual callback list3106list = [],3107// Stack of fire calls for repeatable lists3108stack = !options.once && [],3109// Fire callbacks3110fire = function( data ) {3111memory = options.memory && data;3112fired = true;3113firingIndex = firingStart || 0;3114firingStart = 0;3115firingLength = list.length;3116firing = true;3117for ( ; list && firingIndex < firingLength; firingIndex++ ) {3118if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) {3119memory = false; // To prevent further calls using add3120break;3121}3122}3123firing = false;3124if ( list ) {3125if ( stack ) {3126if ( stack.length ) {3127fire( stack.shift() );3128}3129} else if ( memory ) {3130list = [];3131} else {3132self.disable();3133}3134}3135},3136// Actual Callbacks object3137self = {3138// Add a callback or a collection of callbacks to the list3139add: function() {3140if ( list ) {3141// First, we save the current length3142var start = list.length;3143(function add( args ) {3144jQuery.each( args, function( _, arg ) {3145var type = jQuery.type( arg );3146if ( type === "function" ) {3147if ( !options.unique || !self.has( arg ) ) {3148list.push( arg );3149}3150} else if ( arg && arg.length && type !== "string" ) {3151// Inspect recursively3152add( arg );3153}3154});3155})( arguments );3156// Do we need to add the callbacks to the3157// current firing batch?3158if ( firing ) {3159firingLength = list.length;3160// With memory, if we're not firing then3161// we should call right away3162} else if ( memory ) {3163firingStart = start;3164fire( memory );3165}3166}3167return this;3168},3169// Remove a callback from the list3170remove: function() {3171if ( list ) {3172jQuery.each( arguments, function( _, arg ) {3173var index;3174while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {3175list.splice( index, 1 );3176// Handle firing indexes3177if ( firing ) {3178if ( index <= firingLength ) {3179firingLength--;3180}3181if ( index <= firingIndex ) {3182firingIndex--;3183}3184}3185}3186});3187}3188return this;3189},3190// Check if a given callback is in the list.3191// If no argument is given, return whether or not list has callbacks attached.3192has: function( fn ) {3193return fn ? jQuery.inArray( fn, list ) > -1 : !!( list && list.length );3194},3195// Remove all callbacks from the list3196empty: function() {3197list = [];3198firingLength = 0;3199return this;3200},3201// Have the list do nothing anymore3202disable: function() {3203list = stack = memory = undefined;3204return this;3205},3206// Is it disabled?3207disabled: function() {3208return !list;3209},3210// Lock the list in its current state3211lock: function() {3212stack = undefined;3213if ( !memory ) {3214self.disable();3215}3216return this;3217},3218// Is it locked?3219locked: function() {3220return !stack;3221},3222// Call all callbacks with the given context and arguments3223fireWith: function( context, args ) {3224if ( list && ( !fired || stack ) ) {3225args = args || [];3226args = [ context, args.slice ? args.slice() : args ];3227if ( firing ) {3228stack.push( args );3229} else {3230fire( args );3231}3232}3233return this;3234},3235// Call all the callbacks with the given arguments3236fire: function() {3237self.fireWith( this, arguments );3238return this;3239},3240// To know if the callbacks have already been called at least once3241fired: function() {3242return !!fired;3243}3244};32453246return self;3247};324832493250jQuery.extend({32513252Deferred: function( func ) {3253var tuples = [3254// action, add listener, listener list, final state3255[ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ],3256[ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ],3257[ "notify", "progress", jQuery.Callbacks("memory") ]3258],3259state = "pending",3260promise = {3261state: function() {3262return state;3263},3264always: function() {3265deferred.done( arguments ).fail( arguments );3266return this;3267},3268then: function( /* fnDone, fnFail, fnProgress */ ) {3269var fns = arguments;3270return jQuery.Deferred(function( newDefer ) {3271jQuery.each( tuples, function( i, tuple ) {3272var fn = jQuery.isFunction( fns[ i ] ) && fns[ i ];3273// deferred[ done | fail | progress ] for forwarding actions to newDefer3274deferred[ tuple[1] ](function() {3275var returned = fn && fn.apply( this, arguments );3276if ( returned && jQuery.isFunction( returned.promise ) ) {3277returned.promise()3278.done( newDefer.resolve )3279.fail( newDefer.reject )3280.progress( newDefer.notify );3281} else {3282newDefer[ tuple[ 0 ] + "With" ]( this === promise ? newDefer.promise() : this, fn ? [ returned ] : arguments );3283}3284});3285});3286fns = null;3287}).promise();3288},3289// Get a promise for this deferred3290// If obj is provided, the promise aspect is added to the object3291promise: function( obj ) {3292return obj != null ? jQuery.extend( obj, promise ) : promise;3293}3294},3295deferred = {};32963297// Keep pipe for back-compat3298promise.pipe = promise.then;32993300// Add list-specific methods3301jQuery.each( tuples, function( i, tuple ) {3302var list = tuple[ 2 ],3303stateString = tuple[ 3 ];33043305// promise[ done | fail | progress ] = list.add3306promise[ tuple[1] ] = list.add;33073308// Handle state3309if ( stateString ) {3310list.add(function() {3311// state = [ resolved | rejected ]3312state = stateString;33133314// [ reject_list | resolve_list ].disable; progress_list.lock3315}, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock );3316}33173318// deferred[ resolve | reject | notify ]3319deferred[ tuple[0] ] = function() {3320deferred[ tuple[0] + "With" ]( this === deferred ? promise : this, arguments );3321return this;3322};3323deferred[ tuple[0] + "With" ] = list.fireWith;3324});33253326// Make the deferred a promise3327promise.promise( deferred );33283329// Call given func if any3330if ( func ) {3331func.call( deferred, deferred );3332}33333334// All done!3335return deferred;3336},33373338// Deferred helper3339when: function( subordinate /* , ..., subordinateN */ ) {3340var i = 0,3341resolveValues = slice.call( arguments ),3342length = resolveValues.length,33433344// the count of uncompleted subordinates3345remaining = length !== 1 || ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0,33463347// the master Deferred. If resolveValues consist of only a single Deferred, just use that.3348deferred = remaining === 1 ? subordinate : jQuery.Deferred(),33493350// Update function for both resolve and progress values3351updateFunc = function( i, contexts, values ) {3352return function( value ) {3353contexts[ i ] = this;3354values[ i ] = arguments.length > 1 ? slice.call( arguments ) : value;3355if ( values === progressValues ) {3356deferred.notifyWith( contexts, values );33573358} else if ( !(--remaining) ) {3359deferred.resolveWith( contexts, values );3360}3361};3362},33633364progressValues, progressContexts, resolveContexts;33653366// add listeners to Deferred subordinates; treat others as resolved3367if ( length > 1 ) {3368progressValues = new Array( length );3369progressContexts = new Array( length );3370resolveContexts = new Array( length );3371for ( ; i < length; i++ ) {3372if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) {3373resolveValues[ i ].promise()3374.done( updateFunc( i, resolveContexts, resolveValues ) )3375.fail( deferred.reject )3376.progress( updateFunc( i, progressContexts, progressValues ) );3377} else {3378--remaining;3379}3380}3381}33823383// if we're not waiting on anything, resolve the master3384if ( !remaining ) {3385deferred.resolveWith( resolveContexts, resolveValues );3386}33873388return deferred.promise();3389}3390});339133923393// The deferred used on DOM ready3394var readyList;33953396jQuery.fn.ready = function( fn ) {3397// Add the callback3398jQuery.ready.promise().done( fn );33993400return this;3401};34023403jQuery.extend({3404// Is the DOM ready to be used? Set to true once it occurs.3405isReady: false,34063407// A counter to track how many items to wait for before3408// the ready event fires. See #67813409readyWait: 1,34103411// Hold (or release) the ready event3412holdReady: function( hold ) {3413if ( hold ) {3414jQuery.readyWait++;3415} else {3416jQuery.ready( true );3417}3418},34193420// Handle when the DOM is ready3421ready: function( wait ) {34223423// Abort if there are pending holds or we're already ready3424if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {3425return;3426}34273428// Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).3429if ( !document.body ) {3430return setTimeout( jQuery.ready );3431}34323433// Remember that the DOM is ready3434jQuery.isReady = true;34353436// If a normal DOM Ready event fired, decrement, and wait if need be3437if ( wait !== true && --jQuery.readyWait > 0 ) {3438return;3439}34403441// If there are functions bound, to execute3442readyList.resolveWith( document, [ jQuery ] );34433444// Trigger any bound ready events3445if ( jQuery.fn.triggerHandler ) {3446jQuery( document ).triggerHandler( "ready" );3447jQuery( document ).off( "ready" );3448}3449}3450});34513452/**3453* Clean-up method for dom ready events3454*/3455function detach() {3456if ( document.addEventListener ) {3457document.removeEventListener( "DOMContentLoaded", completed, false );3458window.removeEventListener( "load", completed, false );34593460} else {3461document.detachEvent( "onreadystatechange", completed );3462window.detachEvent( "onload", completed );3463}3464}34653466/**3467* The ready event handler and self cleanup method3468*/3469function completed() {3470// readyState === "complete" is good enough for us to call the dom ready in oldIE3471if ( document.addEventListener || event.type === "load" || document.readyState === "complete" ) {3472detach();3473jQuery.ready();3474}3475}34763477jQuery.ready.promise = function( obj ) {3478if ( !readyList ) {34793480readyList = jQuery.Deferred();34813482// Catch cases where $(document).ready() is called after the browser event has already occurred.3483// we once tried to use readyState "interactive" here, but it caused issues like the one3484// discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:153485if ( document.readyState === "complete" ) {3486// Handle it asynchronously to allow scripts the opportunity to delay ready3487setTimeout( jQuery.ready );34883489// Standards-based browsers support DOMContentLoaded3490} else if ( document.addEventListener ) {3491// Use the handy event callback3492document.addEventListener( "DOMContentLoaded", completed, false );34933494// A fallback to window.onload, that will always work3495window.addEventListener( "load", completed, false );34963497// If IE event model is used3498} else {3499// Ensure firing before onload, maybe late but safe also for iframes3500document.attachEvent( "onreadystatechange", completed );35013502// A fallback to window.onload, that will always work3503window.attachEvent( "onload", completed );35043505// If IE and not a frame3506// continually check to see if the document is ready3507var top = false;35083509try {3510top = window.frameElement == null && document.documentElement;3511} catch(e) {}35123513if ( top && top.doScroll ) {3514(function doScrollCheck() {3515if ( !jQuery.isReady ) {35163517try {3518// Use the trick by Diego Perini3519// http://javascript.nwbox.com/IEContentLoaded/3520top.doScroll("left");3521} catch(e) {3522return setTimeout( doScrollCheck, 50 );3523}35243525// detach all dom ready events3526detach();35273528// and execute any waiting functions3529jQuery.ready();3530}3531})();3532}3533}3534}3535return readyList.promise( obj );3536};353735383539var strundefined = typeof undefined;3540354135423543// Support: IE<93544// Iteration over object's inherited properties before its own3545var i;3546for ( i in jQuery( support ) ) {3547break;3548}3549support.ownLast = i !== "0";35503551// Note: most support tests are defined in their respective modules.3552// false until the test is run3553support.inlineBlockNeedsLayout = false;35543555// Execute ASAP in case we need to set body.style.zoom3556jQuery(function() {3557// Minified: var a,b,c,d3558var val, div, body, container;35593560body = document.getElementsByTagName( "body" )[ 0 ];3561if ( !body || !body.style ) {3562// Return for frameset docs that don't have a body3563return;3564}35653566// Setup3567div = document.createElement( "div" );3568container = document.createElement( "div" );3569container.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px";3570body.appendChild( container ).appendChild( div );35713572if ( typeof div.style.zoom !== strundefined ) {3573// Support: IE<83574// Check if natively block-level elements act like inline-block3575// elements when setting their display to 'inline' and giving3576// them layout3577div.style.cssText = "display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1";35783579support.inlineBlockNeedsLayout = val = div.offsetWidth === 3;3580if ( val ) {3581// Prevent IE 6 from affecting layout for positioned elements #110483582// Prevent IE from shrinking the body in IE 7 mode #128693583// Support: IE<83584body.style.zoom = 1;3585}3586}35873588body.removeChild( container );3589});35903591359235933594(function() {3595var div = document.createElement( "div" );35963597// Execute the test only if not already executed in another module.3598if (support.deleteExpando == null) {3599// Support: IE<93600support.deleteExpando = true;3601try {3602delete div.test;3603} catch( e ) {3604support.deleteExpando = false;3605}3606}36073608// Null elements to avoid leaks in IE.3609div = null;3610})();361136123613/**3614* Determines whether an object can have data3615*/3616jQuery.acceptData = function( elem ) {3617var noData = jQuery.noData[ (elem.nodeName + " ").toLowerCase() ],3618nodeType = +elem.nodeType || 1;36193620// Do not set data on non-element DOM nodes because it will not be cleared (#8335).3621return nodeType !== 1 && nodeType !== 9 ?3622false :36233624// Nodes accept data unless otherwise specified; rejection can be conditional3625!noData || noData !== true && elem.getAttribute("classid") === noData;3626};362736283629var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,3630rmultiDash = /([A-Z])/g;36313632function dataAttr( elem, key, data ) {3633// If nothing was found internally, try to fetch any3634// data from the HTML5 data-* attribute3635if ( data === undefined && elem.nodeType === 1 ) {36363637var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase();36383639data = elem.getAttribute( name );36403641if ( typeof data === "string" ) {3642try {3643data = data === "true" ? true :3644data === "false" ? false :3645data === "null" ? null :3646// Only convert to a number if it doesn't change the string3647+data + "" === data ? +data :3648rbrace.test( data ) ? jQuery.parseJSON( data ) :3649data;3650} catch( e ) {}36513652// Make sure we set the data so it isn't changed later3653jQuery.data( elem, key, data );36543655} else {3656data = undefined;3657}3658}36593660return data;3661}36623663// checks a cache object for emptiness3664function isEmptyDataObject( obj ) {3665var name;3666for ( name in obj ) {36673668// if the public data object is empty, the private is still empty3669if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) {3670continue;3671}3672if ( name !== "toJSON" ) {3673return false;3674}3675}36763677return true;3678}36793680function internalData( elem, name, data, pvt /* Internal Use Only */ ) {3681if ( !jQuery.acceptData( elem ) ) {3682return;3683}36843685var ret, thisCache,3686internalKey = jQuery.expando,36873688// We have to handle DOM nodes and JS objects differently because IE6-73689// can't GC object references properly across the DOM-JS boundary3690isNode = elem.nodeType,36913692// Only DOM nodes need the global jQuery cache; JS object data is3693// attached directly to the object so GC can occur automatically3694cache = isNode ? jQuery.cache : elem,36953696// Only defining an ID for JS objects if its cache already exists allows3697// the code to shortcut on the same path as a DOM node with no cache3698id = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey;36993700// Avoid doing any more work than we need to when trying to get data on an3701// object that has no data at all3702if ( (!id || !cache[id] || (!pvt && !cache[id].data)) && data === undefined && typeof name === "string" ) {3703return;3704}37053706if ( !id ) {3707// Only DOM nodes need a new unique ID for each element since their data3708// ends up in the global cache3709if ( isNode ) {3710id = elem[ internalKey ] = deletedIds.pop() || jQuery.guid++;3711} else {3712id = internalKey;3713}3714}37153716if ( !cache[ id ] ) {3717// Avoid exposing jQuery metadata on plain JS objects when the object3718// is serialized using JSON.stringify3719cache[ id ] = isNode ? {} : { toJSON: jQuery.noop };3720}37213722// An object can be passed to jQuery.data instead of a key/value pair; this gets3723// shallow copied over onto the existing cache3724if ( typeof name === "object" || typeof name === "function" ) {3725if ( pvt ) {3726cache[ id ] = jQuery.extend( cache[ id ], name );3727} else {3728cache[ id ].data = jQuery.extend( cache[ id ].data, name );3729}3730}37313732thisCache = cache[ id ];37333734// jQuery data() is stored in a separate object inside the object's internal data3735// cache in order to avoid key collisions between internal data and user-defined3736// data.3737if ( !pvt ) {3738if ( !thisCache.data ) {3739thisCache.data = {};3740}37413742thisCache = thisCache.data;3743}37443745if ( data !== undefined ) {3746thisCache[ jQuery.camelCase( name ) ] = data;3747}37483749// Check for both converted-to-camel and non-converted data property names3750// If a data property was specified3751if ( typeof name === "string" ) {37523753// First Try to find as-is property data3754ret = thisCache[ name ];37553756// Test for null|undefined property data3757if ( ret == null ) {37583759// Try to find the camelCased property3760ret = thisCache[ jQuery.camelCase( name ) ];3761}3762} else {3763ret = thisCache;3764}37653766return ret;3767}37683769function internalRemoveData( elem, name, pvt ) {3770if ( !jQuery.acceptData( elem ) ) {3771return;3772}37733774var thisCache, i,3775isNode = elem.nodeType,37763777// See jQuery.data for more information3778cache = isNode ? jQuery.cache : elem,3779id = isNode ? elem[ jQuery.expando ] : jQuery.expando;37803781// If there is already no cache entry for this object, there is no3782// purpose in continuing3783if ( !cache[ id ] ) {3784return;3785}37863787if ( name ) {37883789thisCache = pvt ? cache[ id ] : cache[ id ].data;37903791if ( thisCache ) {37923793// Support array or space separated string names for data keys3794if ( !jQuery.isArray( name ) ) {37953796// try the string as a key before any manipulation3797if ( name in thisCache ) {3798name = [ name ];3799} else {38003801// split the camel cased version by spaces unless a key with the spaces exists3802name = jQuery.camelCase( name );3803if ( name in thisCache ) {3804name = [ name ];3805} else {3806name = name.split(" ");3807}3808}3809} else {3810// If "name" is an array of keys...3811// When data is initially created, via ("key", "val") signature,3812// keys will be converted to camelCase.3813// Since there is no way to tell _how_ a key was added, remove3814// both plain key and camelCase key. #127863815// This will only penalize the array argument path.3816name = name.concat( jQuery.map( name, jQuery.camelCase ) );3817}38183819i = name.length;3820while ( i-- ) {3821delete thisCache[ name[i] ];3822}38233824// If there is no data left in the cache, we want to continue3825// and let the cache object itself get destroyed3826if ( pvt ? !isEmptyDataObject(thisCache) : !jQuery.isEmptyObject(thisCache) ) {3827return;3828}3829}3830}38313832// See jQuery.data for more information3833if ( !pvt ) {3834delete cache[ id ].data;38353836// Don't destroy the parent cache unless the internal data object3837// had been the only thing left in it3838if ( !isEmptyDataObject( cache[ id ] ) ) {3839return;3840}3841}38423843// Destroy the cache3844if ( isNode ) {3845jQuery.cleanData( [ elem ], true );38463847// Use delete when supported for expandos or `cache` is not a window per isWindow (#10080)3848/* jshint eqeqeq: false */3849} else if ( support.deleteExpando || cache != cache.window ) {3850/* jshint eqeqeq: true */3851delete cache[ id ];38523853// When all else fails, null3854} else {3855cache[ id ] = null;3856}3857}38583859jQuery.extend({3860cache: {},38613862// The following elements (space-suffixed to avoid Object.prototype collisions)3863// throw uncatchable exceptions if you attempt to set expando properties3864noData: {3865"applet ": true,3866"embed ": true,3867// ...but Flash objects (which have this classid) *can* handle expandos3868"object ": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"3869},38703871hasData: function( elem ) {3872elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ];3873return !!elem && !isEmptyDataObject( elem );3874},38753876data: function( elem, name, data ) {3877return internalData( elem, name, data );3878},38793880removeData: function( elem, name ) {3881return internalRemoveData( elem, name );3882},38833884// For internal use only.3885_data: function( elem, name, data ) {3886return internalData( elem, name, data, true );3887},38883889_removeData: function( elem, name ) {3890return internalRemoveData( elem, name, true );3891}3892});38933894jQuery.fn.extend({3895data: function( key, value ) {3896var i, name, data,3897elem = this[0],3898attrs = elem && elem.attributes;38993900// Special expections of .data basically thwart jQuery.access,3901// so implement the relevant behavior ourselves39023903// Gets all values3904if ( key === undefined ) {3905if ( this.length ) {3906data = jQuery.data( elem );39073908if ( elem.nodeType === 1 && !jQuery._data( elem, "parsedAttrs" ) ) {3909i = attrs.length;3910while ( i-- ) {39113912// Support: IE11+3913// The attrs elements can be null (#14894)3914if ( attrs[ i ] ) {3915name = attrs[ i ].name;3916if ( name.indexOf( "data-" ) === 0 ) {3917name = jQuery.camelCase( name.slice(5) );3918dataAttr( elem, name, data[ name ] );3919}3920}3921}3922jQuery._data( elem, "parsedAttrs", true );3923}3924}39253926return data;3927}39283929// Sets multiple values3930if ( typeof key === "object" ) {3931return this.each(function() {3932jQuery.data( this, key );3933});3934}39353936return arguments.length > 1 ?39373938// Sets one value3939this.each(function() {3940jQuery.data( this, key, value );3941}) :39423943// Gets one value3944// Try to fetch any internally stored data first3945elem ? dataAttr( elem, key, jQuery.data( elem, key ) ) : undefined;3946},39473948removeData: function( key ) {3949return this.each(function() {3950jQuery.removeData( this, key );3951});3952}3953});395439553956jQuery.extend({3957queue: function( elem, type, data ) {3958var queue;39593960if ( elem ) {3961type = ( type || "fx" ) + "queue";3962queue = jQuery._data( elem, type );39633964// Speed up dequeue by getting out quickly if this is just a lookup3965if ( data ) {3966if ( !queue || jQuery.isArray(data) ) {3967queue = jQuery._data( elem, type, jQuery.makeArray(data) );3968} else {3969queue.push( data );3970}3971}3972return queue || [];3973}3974},39753976dequeue: function( elem, type ) {3977type = type || "fx";39783979var queue = jQuery.queue( elem, type ),3980startLength = queue.length,3981fn = queue.shift(),3982hooks = jQuery._queueHooks( elem, type ),3983next = function() {3984jQuery.dequeue( elem, type );3985};39863987// If the fx queue is dequeued, always remove the progress sentinel3988if ( fn === "inprogress" ) {3989fn = queue.shift();3990startLength--;3991}39923993if ( fn ) {39943995// Add a progress sentinel to prevent the fx queue from being3996// automatically dequeued3997if ( type === "fx" ) {3998queue.unshift( "inprogress" );3999}40004001// clear up the last queue stop function4002delete hooks.stop;4003fn.call( elem, next, hooks );4004}40054006if ( !startLength && hooks ) {4007hooks.empty.fire();4008}4009},40104011// not intended for public consumption - generates a queueHooks object, or returns the current one4012_queueHooks: function( elem, type ) {4013var key = type + "queueHooks";4014return jQuery._data( elem, key ) || jQuery._data( elem, key, {4015empty: jQuery.Callbacks("once memory").add(function() {4016jQuery._removeData( elem, type + "queue" );4017jQuery._removeData( elem, key );4018})4019});4020}4021});40224023jQuery.fn.extend({4024queue: function( type, data ) {4025var setter = 2;40264027if ( typeof type !== "string" ) {4028data = type;4029type = "fx";4030setter--;4031}40324033if ( arguments.length < setter ) {4034return jQuery.queue( this[0], type );4035}40364037return data === undefined ?4038this :4039this.each(function() {4040var queue = jQuery.queue( this, type, data );40414042// ensure a hooks for this queue4043jQuery._queueHooks( this, type );40444045if ( type === "fx" && queue[0] !== "inprogress" ) {4046jQuery.dequeue( this, type );4047}4048});4049},4050dequeue: function( type ) {4051return this.each(function() {4052jQuery.dequeue( this, type );4053});4054},4055clearQueue: function( type ) {4056return this.queue( type || "fx", [] );4057},4058// Get a promise resolved when queues of a certain type4059// are emptied (fx is the type by default)4060promise: function( type, obj ) {4061var tmp,4062count = 1,4063defer = jQuery.Deferred(),4064elements = this,4065i = this.length,4066resolve = function() {4067if ( !( --count ) ) {4068defer.resolveWith( elements, [ elements ] );4069}4070};40714072if ( typeof type !== "string" ) {4073obj = type;4074type = undefined;4075}4076type = type || "fx";40774078while ( i-- ) {4079tmp = jQuery._data( elements[ i ], type + "queueHooks" );4080if ( tmp && tmp.empty ) {4081count++;4082tmp.empty.add( resolve );4083}4084}4085resolve();4086return defer.promise( obj );4087}4088});4089var pnum = (/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/).source;40904091var cssExpand = [ "Top", "Right", "Bottom", "Left" ];40924093var isHidden = function( elem, el ) {4094// isHidden might be called from jQuery#filter function;4095// in that case, element will be second argument4096elem = el || elem;4097return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem );4098};4099410041014102// Multifunctional method to get and set values of a collection4103// The value/s can optionally be executed if it's a function4104var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw ) {4105var i = 0,4106length = elems.length,4107bulk = key == null;41084109// Sets many values4110if ( jQuery.type( key ) === "object" ) {4111chainable = true;4112for ( i in key ) {4113jQuery.access( elems, fn, i, key[i], true, emptyGet, raw );4114}41154116// Sets one value4117} else if ( value !== undefined ) {4118chainable = true;41194120if ( !jQuery.isFunction( value ) ) {4121raw = true;4122}41234124if ( bulk ) {4125// Bulk operations run against the entire set4126if ( raw ) {4127fn.call( elems, value );4128fn = null;41294130// ...except when executing function values4131} else {4132bulk = fn;4133fn = function( elem, key, value ) {4134return bulk.call( jQuery( elem ), value );4135};4136}4137}41384139if ( fn ) {4140for ( ; i < length; i++ ) {4141fn( elems[i], key, raw ? value : value.call( elems[i], i, fn( elems[i], key ) ) );4142}4143}4144}41454146return chainable ?4147elems :41484149// Gets4150bulk ?4151fn.call( elems ) :4152length ? fn( elems[0], key ) : emptyGet;4153};4154var rcheckableType = (/^(?:checkbox|radio)$/i);4155415641574158(function() {4159// Minified: var a,b,c4160var input = document.createElement( "input" ),4161div = document.createElement( "div" ),4162fragment = document.createDocumentFragment();41634164// Setup4165div.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";41664167// IE strips leading whitespace when .innerHTML is used4168support.leadingWhitespace = div.firstChild.nodeType === 3;41694170// Make sure that tbody elements aren't automatically inserted4171// IE will insert them into empty tables4172support.tbody = !div.getElementsByTagName( "tbody" ).length;41734174// Make sure that link elements get serialized correctly by innerHTML4175// This requires a wrapper element in IE4176support.htmlSerialize = !!div.getElementsByTagName( "link" ).length;41774178// Makes sure cloning an html5 element does not cause problems4179// Where outerHTML is undefined, this still works4180support.html5Clone =4181document.createElement( "nav" ).cloneNode( true ).outerHTML !== "<:nav></:nav>";41824183// Check if a disconnected checkbox will retain its checked4184// value of true after appended to the DOM (IE6/7)4185input.type = "checkbox";4186input.checked = true;4187fragment.appendChild( input );4188support.appendChecked = input.checked;41894190// Make sure textarea (and checkbox) defaultValue is properly cloned4191// Support: IE6-IE11+4192div.innerHTML = "<textarea>x</textarea>";4193support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;41944195// #11217 - WebKit loses check when the name is after the checked attribute4196fragment.appendChild( div );4197div.innerHTML = "<input type='radio' checked='checked' name='t'/>";41984199// Support: Safari 5.1, iOS 5.1, Android 4.x, Android 2.34200// old WebKit doesn't clone checked state correctly in fragments4201support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;42024203// Support: IE<94204// Opera does not clone events (and typeof div.attachEvent === undefined).4205// IE9-10 clones events bound via attachEvent, but they don't trigger with .click()4206support.noCloneEvent = true;4207if ( div.attachEvent ) {4208div.attachEvent( "onclick", function() {4209support.noCloneEvent = false;4210});42114212div.cloneNode( true ).click();4213}42144215// Execute the test only if not already executed in another module.4216if (support.deleteExpando == null) {4217// Support: IE<94218support.deleteExpando = true;4219try {4220delete div.test;4221} catch( e ) {4222support.deleteExpando = false;4223}4224}4225})();422642274228(function() {4229var i, eventName,4230div = document.createElement( "div" );42314232// Support: IE<9 (lack submit/change bubble), Firefox 23+ (lack focusin event)4233for ( i in { submit: true, change: true, focusin: true }) {4234eventName = "on" + i;42354236if ( !(support[ i + "Bubbles" ] = eventName in window) ) {4237// Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP)4238div.setAttribute( eventName, "t" );4239support[ i + "Bubbles" ] = div.attributes[ eventName ].expando === false;4240}4241}42424243// Null elements to avoid leaks in IE.4244div = null;4245})();424642474248var rformElems = /^(?:input|select|textarea)$/i,4249rkeyEvent = /^key/,4250rmouseEvent = /^(?:mouse|pointer|contextmenu)|click/,4251rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,4252rtypenamespace = /^([^.]*)(?:\.(.+)|)$/;42534254function returnTrue() {4255return true;4256}42574258function returnFalse() {4259return false;4260}42614262function safeActiveElement() {4263try {4264return document.activeElement;4265} catch ( err ) { }4266}42674268/*4269* Helper functions for managing events -- not part of the public interface.4270* Props to Dean Edwards' addEvent library for many of the ideas.4271*/4272jQuery.event = {42734274global: {},42754276add: function( elem, types, handler, data, selector ) {4277var tmp, events, t, handleObjIn,4278special, eventHandle, handleObj,4279handlers, type, namespaces, origType,4280elemData = jQuery._data( elem );42814282// Don't attach events to noData or text/comment nodes (but allow plain objects)4283if ( !elemData ) {4284return;4285}42864287// Caller can pass in an object of custom data in lieu of the handler4288if ( handler.handler ) {4289handleObjIn = handler;4290handler = handleObjIn.handler;4291selector = handleObjIn.selector;4292}42934294// Make sure that the handler has a unique ID, used to find/remove it later4295if ( !handler.guid ) {4296handler.guid = jQuery.guid++;4297}42984299// Init the element's event structure and main handler, if this is the first4300if ( !(events = elemData.events) ) {4301events = elemData.events = {};4302}4303if ( !(eventHandle = elemData.handle) ) {4304eventHandle = elemData.handle = function( e ) {4305// Discard the second event of a jQuery.event.trigger() and4306// when an event is called after a page has unloaded4307return typeof jQuery !== strundefined && (!e || jQuery.event.triggered !== e.type) ?4308jQuery.event.dispatch.apply( eventHandle.elem, arguments ) :4309undefined;4310};4311// Add elem as a property of the handle fn to prevent a memory leak with IE non-native events4312eventHandle.elem = elem;4313}43144315// Handle multiple events separated by a space4316types = ( types || "" ).match( rnotwhite ) || [ "" ];4317t = types.length;4318while ( t-- ) {4319tmp = rtypenamespace.exec( types[t] ) || [];4320type = origType = tmp[1];4321namespaces = ( tmp[2] || "" ).split( "." ).sort();43224323// There *must* be a type, no attaching namespace-only handlers4324if ( !type ) {4325continue;4326}43274328// If event changes its type, use the special event handlers for the changed type4329special = jQuery.event.special[ type ] || {};43304331// If selector defined, determine special event api type, otherwise given type4332type = ( selector ? special.delegateType : special.bindType ) || type;43334334// Update special based on newly reset type4335special = jQuery.event.special[ type ] || {};43364337// handleObj is passed to all event handlers4338handleObj = jQuery.extend({4339type: type,4340origType: origType,4341data: data,4342handler: handler,4343guid: handler.guid,4344selector: selector,4345needsContext: selector && jQuery.expr.match.needsContext.test( selector ),4346namespace: namespaces.join(".")4347}, handleObjIn );43484349// Init the event handler queue if we're the first4350if ( !(handlers = events[ type ]) ) {4351handlers = events[ type ] = [];4352handlers.delegateCount = 0;43534354// Only use addEventListener/attachEvent if the special events handler returns false4355if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {4356// Bind the global event handler to the element4357if ( elem.addEventListener ) {4358elem.addEventListener( type, eventHandle, false );43594360} else if ( elem.attachEvent ) {4361elem.attachEvent( "on" + type, eventHandle );4362}4363}4364}43654366if ( special.add ) {4367special.add.call( elem, handleObj );43684369if ( !handleObj.handler.guid ) {4370handleObj.handler.guid = handler.guid;4371}4372}43734374// Add to the element's handler list, delegates in front4375if ( selector ) {4376handlers.splice( handlers.delegateCount++, 0, handleObj );4377} else {4378handlers.push( handleObj );4379}43804381// Keep track of which events have ever been used, for event optimization4382jQuery.event.global[ type ] = true;4383}43844385// Nullify elem to prevent memory leaks in IE4386elem = null;4387},43884389// Detach an event or set of events from an element4390remove: function( elem, types, handler, selector, mappedTypes ) {4391var j, handleObj, tmp,4392origCount, t, events,4393special, handlers, type,4394namespaces, origType,4395elemData = jQuery.hasData( elem ) && jQuery._data( elem );43964397if ( !elemData || !(events = elemData.events) ) {4398return;4399}44004401// Once for each type.namespace in types; type may be omitted4402types = ( types || "" ).match( rnotwhite ) || [ "" ];4403t = types.length;4404while ( t-- ) {4405tmp = rtypenamespace.exec( types[t] ) || [];4406type = origType = tmp[1];4407namespaces = ( tmp[2] || "" ).split( "." ).sort();44084409// Unbind all events (on this namespace, if provided) for the element4410if ( !type ) {4411for ( type in events ) {4412jQuery.event.remove( elem, type + types[ t ], handler, selector, true );4413}4414continue;4415}44164417special = jQuery.event.special[ type ] || {};4418type = ( selector ? special.delegateType : special.bindType ) || type;4419handlers = events[ type ] || [];4420tmp = tmp[2] && new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" );44214422// Remove matching events4423origCount = j = handlers.length;4424while ( j-- ) {4425handleObj = handlers[ j ];44264427if ( ( mappedTypes || origType === handleObj.origType ) &&4428( !handler || handler.guid === handleObj.guid ) &&4429( !tmp || tmp.test( handleObj.namespace ) ) &&4430( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {4431handlers.splice( j, 1 );44324433if ( handleObj.selector ) {4434handlers.delegateCount--;4435}4436if ( special.remove ) {4437special.remove.call( elem, handleObj );4438}4439}4440}44414442// Remove generic event handler if we removed something and no more handlers exist4443// (avoids potential for endless recursion during removal of special event handlers)4444if ( origCount && !handlers.length ) {4445if ( !special.teardown || special.teardown.call( elem, namespaces, elemData.handle ) === false ) {4446jQuery.removeEvent( elem, type, elemData.handle );4447}44484449delete events[ type ];4450}4451}44524453// Remove the expando if it's no longer used4454if ( jQuery.isEmptyObject( events ) ) {4455delete elemData.handle;44564457// removeData also checks for emptiness and clears the expando if empty4458// so use it instead of delete4459jQuery._removeData( elem, "events" );4460}4461},44624463trigger: function( event, data, elem, onlyHandlers ) {4464var handle, ontype, cur,4465bubbleType, special, tmp, i,4466eventPath = [ elem || document ],4467type = hasOwn.call( event, "type" ) ? event.type : event,4468namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split(".") : [];44694470cur = tmp = elem = elem || document;44714472// Don't do events on text and comment nodes4473if ( elem.nodeType === 3 || elem.nodeType === 8 ) {4474return;4475}44764477// focus/blur morphs to focusin/out; ensure we're not firing them right now4478if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {4479return;4480}44814482if ( type.indexOf(".") >= 0 ) {4483// Namespaced trigger; create a regexp to match event type in handle()4484namespaces = type.split(".");4485type = namespaces.shift();4486namespaces.sort();4487}4488ontype = type.indexOf(":") < 0 && "on" + type;44894490// Caller can pass in a jQuery.Event object, Object, or just an event type string4491event = event[ jQuery.expando ] ?4492event :4493new jQuery.Event( type, typeof event === "object" && event );44944495// Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)4496event.isTrigger = onlyHandlers ? 2 : 3;4497event.namespace = namespaces.join(".");4498event.namespace_re = event.namespace ?4499new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ) :4500null;45014502// Clean up the event in case it is being reused4503event.result = undefined;4504if ( !event.target ) {4505event.target = elem;4506}45074508// Clone any incoming data and prepend the event, creating the handler arg list4509data = data == null ?4510[ event ] :4511jQuery.makeArray( data, [ event ] );45124513// Allow special events to draw outside the lines4514special = jQuery.event.special[ type ] || {};4515if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) {4516return;4517}45184519// Determine event propagation path in advance, per W3C events spec (#9951)4520// Bubble up to document, then to window; watch for a global ownerDocument var (#9724)4521if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {45224523bubbleType = special.delegateType || type;4524if ( !rfocusMorph.test( bubbleType + type ) ) {4525cur = cur.parentNode;4526}4527for ( ; cur; cur = cur.parentNode ) {4528eventPath.push( cur );4529tmp = cur;4530}45314532// Only add window if we got to document (e.g., not plain obj or detached DOM)4533if ( tmp === (elem.ownerDocument || document) ) {4534eventPath.push( tmp.defaultView || tmp.parentWindow || window );4535}4536}45374538// Fire handlers on the event path4539i = 0;4540while ( (cur = eventPath[i++]) && !event.isPropagationStopped() ) {45414542event.type = i > 1 ?4543bubbleType :4544special.bindType || type;45454546// jQuery handler4547handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" );4548if ( handle ) {4549handle.apply( cur, data );4550}45514552// Native handler4553handle = ontype && cur[ ontype ];4554if ( handle && handle.apply && jQuery.acceptData( cur ) ) {4555event.result = handle.apply( cur, data );4556if ( event.result === false ) {4557event.preventDefault();4558}4559}4560}4561event.type = type;45624563// If nobody prevented the default action, do it now4564if ( !onlyHandlers && !event.isDefaultPrevented() ) {45654566if ( (!special._default || special._default.apply( eventPath.pop(), data ) === false) &&4567jQuery.acceptData( elem ) ) {45684569// Call a native DOM method on the target with the same name name as the event.4570// Can't use an .isFunction() check here because IE6/7 fails that test.4571// Don't do default actions on window, that's where global variables be (#6170)4572if ( ontype && elem[ type ] && !jQuery.isWindow( elem ) ) {45734574// Don't re-trigger an onFOO event when we call its FOO() method4575tmp = elem[ ontype ];45764577if ( tmp ) {4578elem[ ontype ] = null;4579}45804581// Prevent re-triggering of the same event, since we already bubbled it above4582jQuery.event.triggered = type;4583try {4584elem[ type ]();4585} catch ( e ) {4586// IE<9 dies on focus/blur to hidden element (#1486,#12518)4587// only reproducible on winXP IE8 native, not IE9 in IE8 mode4588}4589jQuery.event.triggered = undefined;45904591if ( tmp ) {4592elem[ ontype ] = tmp;4593}4594}4595}4596}45974598return event.result;4599},46004601dispatch: function( event ) {46024603// Make a writable jQuery.Event from the native event object4604event = jQuery.event.fix( event );46054606var i, ret, handleObj, matched, j,4607handlerQueue = [],4608args = slice.call( arguments ),4609handlers = ( jQuery._data( this, "events" ) || {} )[ event.type ] || [],4610special = jQuery.event.special[ event.type ] || {};46114612// Use the fix-ed jQuery.Event rather than the (read-only) native event4613args[0] = event;4614event.delegateTarget = this;46154616// Call the preDispatch hook for the mapped type, and let it bail if desired4617if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {4618return;4619}46204621// Determine handlers4622handlerQueue = jQuery.event.handlers.call( this, event, handlers );46234624// Run delegates first; they may want to stop propagation beneath us4625i = 0;4626while ( (matched = handlerQueue[ i++ ]) && !event.isPropagationStopped() ) {4627event.currentTarget = matched.elem;46284629j = 0;4630while ( (handleObj = matched.handlers[ j++ ]) && !event.isImmediatePropagationStopped() ) {46314632// Triggered event must either 1) have no namespace, or4633// 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace).4634if ( !event.namespace_re || event.namespace_re.test( handleObj.namespace ) ) {46354636event.handleObj = handleObj;4637event.data = handleObj.data;46384639ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler )4640.apply( matched.elem, args );46414642if ( ret !== undefined ) {4643if ( (event.result = ret) === false ) {4644event.preventDefault();4645event.stopPropagation();4646}4647}4648}4649}4650}46514652// Call the postDispatch hook for the mapped type4653if ( special.postDispatch ) {4654special.postDispatch.call( this, event );4655}46564657return event.result;4658},46594660handlers: function( event, handlers ) {4661var sel, handleObj, matches, i,4662handlerQueue = [],4663delegateCount = handlers.delegateCount,4664cur = event.target;46654666// Find delegate handlers4667// Black-hole SVG <use> instance trees (#13180)4668// Avoid non-left-click bubbling in Firefox (#3861)4669if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) {46704671/* jshint eqeqeq: false */4672for ( ; cur != this; cur = cur.parentNode || this ) {4673/* jshint eqeqeq: true */46744675// Don't check non-elements (#13208)4676// Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)4677if ( cur.nodeType === 1 && (cur.disabled !== true || event.type !== "click") ) {4678matches = [];4679for ( i = 0; i < delegateCount; i++ ) {4680handleObj = handlers[ i ];46814682// Don't conflict with Object.prototype properties (#13203)4683sel = handleObj.selector + " ";46844685if ( matches[ sel ] === undefined ) {4686matches[ sel ] = handleObj.needsContext ?4687jQuery( sel, this ).index( cur ) >= 0 :4688jQuery.find( sel, this, null, [ cur ] ).length;4689}4690if ( matches[ sel ] ) {4691matches.push( handleObj );4692}4693}4694if ( matches.length ) {4695handlerQueue.push({ elem: cur, handlers: matches });4696}4697}4698}4699}47004701// Add the remaining (directly-bound) handlers4702if ( delegateCount < handlers.length ) {4703handlerQueue.push({ elem: this, handlers: handlers.slice( delegateCount ) });4704}47054706return handlerQueue;4707},47084709fix: function( event ) {4710if ( event[ jQuery.expando ] ) {4711return event;4712}47134714// Create a writable copy of the event object and normalize some properties4715var i, prop, copy,4716type = event.type,4717originalEvent = event,4718fixHook = this.fixHooks[ type ];47194720if ( !fixHook ) {4721this.fixHooks[ type ] = fixHook =4722rmouseEvent.test( type ) ? this.mouseHooks :4723rkeyEvent.test( type ) ? this.keyHooks :4724{};4725}4726copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props;47274728event = new jQuery.Event( originalEvent );47294730i = copy.length;4731while ( i-- ) {4732prop = copy[ i ];4733event[ prop ] = originalEvent[ prop ];4734}47354736// Support: IE<94737// Fix target property (#1925)4738if ( !event.target ) {4739event.target = originalEvent.srcElement || document;4740}47414742// Support: Chrome 23+, Safari?4743// Target should not be a text node (#504, #13143)4744if ( event.target.nodeType === 3 ) {4745event.target = event.target.parentNode;4746}47474748// Support: IE<94749// For mouse/key events, metaKey==false if it's undefined (#3368, #11328)4750event.metaKey = !!event.metaKey;47514752return fixHook.filter ? fixHook.filter( event, originalEvent ) : event;4753},47544755// Includes some event props shared by KeyEvent and MouseEvent4756props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),47574758fixHooks: {},47594760keyHooks: {4761props: "char charCode key keyCode".split(" "),4762filter: function( event, original ) {47634764// Add which for key events4765if ( event.which == null ) {4766event.which = original.charCode != null ? original.charCode : original.keyCode;4767}47684769return event;4770}4771},47724773mouseHooks: {4774props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),4775filter: function( event, original ) {4776var body, eventDoc, doc,4777button = original.button,4778fromElement = original.fromElement;47794780// Calculate pageX/Y if missing and clientX/Y available4781if ( event.pageX == null && original.clientX != null ) {4782eventDoc = event.target.ownerDocument || document;4783doc = eventDoc.documentElement;4784body = eventDoc.body;47854786event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 );4787event.pageY = original.clientY + ( doc && doc.scrollTop || body && body.scrollTop || 0 ) - ( doc && doc.clientTop || body && body.clientTop || 0 );4788}47894790// Add relatedTarget, if necessary4791if ( !event.relatedTarget && fromElement ) {4792event.relatedTarget = fromElement === event.target ? original.toElement : fromElement;4793}47944795// Add which for click: 1 === left; 2 === middle; 3 === right4796// Note: button is not normalized, so don't use it4797if ( !event.which && button !== undefined ) {4798event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );4799}48004801return event;4802}4803},48044805special: {4806load: {4807// Prevent triggered image.load events from bubbling to window.load4808noBubble: true4809},4810focus: {4811// Fire native event if possible so blur/focus sequence is correct4812trigger: function() {4813if ( this !== safeActiveElement() && this.focus ) {4814try {4815this.focus();4816return false;4817} catch ( e ) {4818// Support: IE<94819// If we error on focus to hidden element (#1486, #12518),4820// let .trigger() run the handlers4821}4822}4823},4824delegateType: "focusin"4825},4826blur: {4827trigger: function() {4828if ( this === safeActiveElement() && this.blur ) {4829this.blur();4830return false;4831}4832},4833delegateType: "focusout"4834},4835click: {4836// For checkbox, fire native event so checked state will be right4837trigger: function() {4838if ( jQuery.nodeName( this, "input" ) && this.type === "checkbox" && this.click ) {4839this.click();4840return false;4841}4842},48434844// For cross-browser consistency, don't fire native .click() on links4845_default: function( event ) {4846return jQuery.nodeName( event.target, "a" );4847}4848},48494850beforeunload: {4851postDispatch: function( event ) {48524853// Support: Firefox 20+4854// Firefox doesn't alert if the returnValue field is not set.4855if ( event.result !== undefined && event.originalEvent ) {4856event.originalEvent.returnValue = event.result;4857}4858}4859}4860},48614862simulate: function( type, elem, event, bubble ) {4863// Piggyback on a donor event to simulate a different one.4864// Fake originalEvent to avoid donor's stopPropagation, but if the4865// simulated event prevents default then we do the same on the donor.4866var e = jQuery.extend(4867new jQuery.Event(),4868event,4869{4870type: type,4871isSimulated: true,4872originalEvent: {}4873}4874);4875if ( bubble ) {4876jQuery.event.trigger( e, null, elem );4877} else {4878jQuery.event.dispatch.call( elem, e );4879}4880if ( e.isDefaultPrevented() ) {4881event.preventDefault();4882}4883}4884};48854886jQuery.removeEvent = document.removeEventListener ?4887function( elem, type, handle ) {4888if ( elem.removeEventListener ) {4889elem.removeEventListener( type, handle, false );4890}4891} :4892function( elem, type, handle ) {4893var name = "on" + type;48944895if ( elem.detachEvent ) {48964897// #8545, #7054, preventing memory leaks for custom events in IE6-84898// detachEvent needed property on element, by name of that event, to properly expose it to GC4899if ( typeof elem[ name ] === strundefined ) {4900elem[ name ] = null;4901}49024903elem.detachEvent( name, handle );4904}4905};49064907jQuery.Event = function( src, props ) {4908// Allow instantiation without the 'new' keyword4909if ( !(this instanceof jQuery.Event) ) {4910return new jQuery.Event( src, props );4911}49124913// Event object4914if ( src && src.type ) {4915this.originalEvent = src;4916this.type = src.type;49174918// Events bubbling up the document may have been marked as prevented4919// by a handler lower down the tree; reflect the correct value.4920this.isDefaultPrevented = src.defaultPrevented ||4921src.defaultPrevented === undefined &&4922// Support: IE < 9, Android < 4.04923src.returnValue === false ?4924returnTrue :4925returnFalse;49264927// Event type4928} else {4929this.type = src;4930}49314932// Put explicitly provided properties onto the event object4933if ( props ) {4934jQuery.extend( this, props );4935}49364937// Create a timestamp if incoming event doesn't have one4938this.timeStamp = src && src.timeStamp || jQuery.now();49394940// Mark it as fixed4941this[ jQuery.expando ] = true;4942};49434944// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding4945// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html4946jQuery.Event.prototype = {4947isDefaultPrevented: returnFalse,4948isPropagationStopped: returnFalse,4949isImmediatePropagationStopped: returnFalse,49504951preventDefault: function() {4952var e = this.originalEvent;49534954this.isDefaultPrevented = returnTrue;4955if ( !e ) {4956return;4957}49584959// If preventDefault exists, run it on the original event4960if ( e.preventDefault ) {4961e.preventDefault();49624963// Support: IE4964// Otherwise set the returnValue property of the original event to false4965} else {4966e.returnValue = false;4967}4968},4969stopPropagation: function() {4970var e = this.originalEvent;49714972this.isPropagationStopped = returnTrue;4973if ( !e ) {4974return;4975}4976// If stopPropagation exists, run it on the original event4977if ( e.stopPropagation ) {4978e.stopPropagation();4979}49804981// Support: IE4982// Set the cancelBubble property of the original event to true4983e.cancelBubble = true;4984},4985stopImmediatePropagation: function() {4986var e = this.originalEvent;49874988this.isImmediatePropagationStopped = returnTrue;49894990if ( e && e.stopImmediatePropagation ) {4991e.stopImmediatePropagation();4992}49934994this.stopPropagation();4995}4996};49974998// Create mouseenter/leave events using mouseover/out and event-time checks4999jQuery.each({5000mouseenter: "mouseover",5001mouseleave: "mouseout",5002pointerenter: "pointerover",5003pointerleave: "pointerout"5004}, function( orig, fix ) {5005jQuery.event.special[ orig ] = {5006delegateType: fix,5007bindType: fix,50085009handle: function( event ) {5010var ret,5011target = this,5012related = event.relatedTarget,5013handleObj = event.handleObj;50145015// For mousenter/leave call the handler if related is outside the target.5016// NB: No relatedTarget if the mouse left/entered the browser window5017if ( !related || (related !== target && !jQuery.contains( target, related )) ) {5018event.type = handleObj.origType;5019ret = handleObj.handler.apply( this, arguments );5020event.type = fix;5021}5022return ret;5023}5024};5025});50265027// IE submit delegation5028if ( !support.submitBubbles ) {50295030jQuery.event.special.submit = {5031setup: function() {5032// Only need this for delegated form submit events5033if ( jQuery.nodeName( this, "form" ) ) {5034return false;5035}50365037// Lazy-add a submit handler when a descendant form may potentially be submitted5038jQuery.event.add( this, "click._submit keypress._submit", function( e ) {5039// Node name check avoids a VML-related crash in IE (#9807)5040var elem = e.target,5041form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined;5042if ( form && !jQuery._data( form, "submitBubbles" ) ) {5043jQuery.event.add( form, "submit._submit", function( event ) {5044event._submit_bubble = true;5045});5046jQuery._data( form, "submitBubbles", true );5047}5048});5049// return undefined since we don't need an event listener5050},50515052postDispatch: function( event ) {5053// If form was submitted by the user, bubble the event up the tree5054if ( event._submit_bubble ) {5055delete event._submit_bubble;5056if ( this.parentNode && !event.isTrigger ) {5057jQuery.event.simulate( "submit", this.parentNode, event, true );5058}5059}5060},50615062teardown: function() {5063// Only need this for delegated form submit events5064if ( jQuery.nodeName( this, "form" ) ) {5065return false;5066}50675068// Remove delegated handlers; cleanData eventually reaps submit handlers attached above5069jQuery.event.remove( this, "._submit" );5070}5071};5072}50735074// IE change delegation and checkbox/radio fix5075if ( !support.changeBubbles ) {50765077jQuery.event.special.change = {50785079setup: function() {50805081if ( rformElems.test( this.nodeName ) ) {5082// IE doesn't fire change on a check/radio until blur; trigger it on click5083// after a propertychange. Eat the blur-change in special.change.handle.5084// This still fires onchange a second time for check/radio after blur.5085if ( this.type === "checkbox" || this.type === "radio" ) {5086jQuery.event.add( this, "propertychange._change", function( event ) {5087if ( event.originalEvent.propertyName === "checked" ) {5088this._just_changed = true;5089}5090});5091jQuery.event.add( this, "click._change", function( event ) {5092if ( this._just_changed && !event.isTrigger ) {5093this._just_changed = false;5094}5095// Allow triggered, simulated change events (#11500)5096jQuery.event.simulate( "change", this, event, true );5097});5098}5099return false;5100}5101// Delegated event; lazy-add a change handler on descendant inputs5102jQuery.event.add( this, "beforeactivate._change", function( e ) {5103var elem = e.target;51045105if ( rformElems.test( elem.nodeName ) && !jQuery._data( elem, "changeBubbles" ) ) {5106jQuery.event.add( elem, "change._change", function( event ) {5107if ( this.parentNode && !event.isSimulated && !event.isTrigger ) {5108jQuery.event.simulate( "change", this.parentNode, event, true );5109}5110});5111jQuery._data( elem, "changeBubbles", true );5112}5113});5114},51155116handle: function( event ) {5117var elem = event.target;51185119// Swallow native change events from checkbox/radio, we already triggered them above5120if ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) {5121return event.handleObj.handler.apply( this, arguments );5122}5123},51245125teardown: function() {5126jQuery.event.remove( this, "._change" );51275128return !rformElems.test( this.nodeName );5129}5130};5131}51325133// Create "bubbling" focus and blur events5134if ( !support.focusinBubbles ) {5135jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) {51365137// Attach a single capturing handler on the document while someone wants focusin/focusout5138var handler = function( event ) {5139jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true );5140};51415142jQuery.event.special[ fix ] = {5143setup: function() {5144var doc = this.ownerDocument || this,5145attaches = jQuery._data( doc, fix );51465147if ( !attaches ) {5148doc.addEventListener( orig, handler, true );5149}5150jQuery._data( doc, fix, ( attaches || 0 ) + 1 );5151},5152teardown: function() {5153var doc = this.ownerDocument || this,5154attaches = jQuery._data( doc, fix ) - 1;51555156if ( !attaches ) {5157doc.removeEventListener( orig, handler, true );5158jQuery._removeData( doc, fix );5159} else {5160jQuery._data( doc, fix, attaches );5161}5162}5163};5164});5165}51665167jQuery.fn.extend({51685169on: function( types, selector, data, fn, /*INTERNAL*/ one ) {5170var type, origFn;51715172// Types can be a map of types/handlers5173if ( typeof types === "object" ) {5174// ( types-Object, selector, data )5175if ( typeof selector !== "string" ) {5176// ( types-Object, data )5177data = data || selector;5178selector = undefined;5179}5180for ( type in types ) {5181this.on( type, selector, data, types[ type ], one );5182}5183return this;5184}51855186if ( data == null && fn == null ) {5187// ( types, fn )5188fn = selector;5189data = selector = undefined;5190} else if ( fn == null ) {5191if ( typeof selector === "string" ) {5192// ( types, selector, fn )5193fn = data;5194data = undefined;5195} else {5196// ( types, data, fn )5197fn = data;5198data = selector;5199selector = undefined;5200}5201}5202if ( fn === false ) {5203fn = returnFalse;5204} else if ( !fn ) {5205return this;5206}52075208if ( one === 1 ) {5209origFn = fn;5210fn = function( event ) {5211// Can use an empty set, since event contains the info5212jQuery().off( event );5213return origFn.apply( this, arguments );5214};5215// Use same guid so caller can remove using origFn5216fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );5217}5218return this.each( function() {5219jQuery.event.add( this, types, fn, data, selector );5220});5221},5222one: function( types, selector, data, fn ) {5223return this.on( types, selector, data, fn, 1 );5224},5225off: function( types, selector, fn ) {5226var handleObj, type;5227if ( types && types.preventDefault && types.handleObj ) {5228// ( event ) dispatched jQuery.Event5229handleObj = types.handleObj;5230jQuery( types.delegateTarget ).off(5231handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType,5232handleObj.selector,5233handleObj.handler5234);5235return this;5236}5237if ( typeof types === "object" ) {5238// ( types-object [, selector] )5239for ( type in types ) {5240this.off( type, selector, types[ type ] );5241}5242return this;5243}5244if ( selector === false || typeof selector === "function" ) {5245// ( types [, fn] )5246fn = selector;5247selector = undefined;5248}5249if ( fn === false ) {5250fn = returnFalse;5251}5252return this.each(function() {5253jQuery.event.remove( this, types, fn, selector );5254});5255},52565257trigger: function( type, data ) {5258return this.each(function() {5259jQuery.event.trigger( type, data, this );5260});5261},5262triggerHandler: function( type, data ) {5263var elem = this[0];5264if ( elem ) {5265return jQuery.event.trigger( type, data, elem, true );5266}5267}5268});526952705271function createSafeFragment( document ) {5272var list = nodeNames.split( "|" ),5273safeFrag = document.createDocumentFragment();52745275if ( safeFrag.createElement ) {5276while ( list.length ) {5277safeFrag.createElement(5278list.pop()5279);5280}5281}5282return safeFrag;5283}52845285var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|" +5286"header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",5287rinlinejQuery = / jQuery\d+="(?:null|\d+)"/g,5288rnoshimcache = new RegExp("<(?:" + nodeNames + ")[\\s/>]", "i"),5289rleadingWhitespace = /^\s+/,5290rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,5291rtagName = /<([\w:]+)/,5292rtbody = /<tbody/i,5293rhtml = /<|&#?\w+;/,5294rnoInnerhtml = /<(?:script|style|link)/i,5295// checked="checked" or checked5296rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,5297rscriptType = /^$|\/(?:java|ecma)script/i,5298rscriptTypeMasked = /^true\/(.*)/,5299rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,53005301// We have to close these tags to support XHTML (#13200)5302wrapMap = {5303option: [ 1, "<select multiple='multiple'>", "</select>" ],5304legend: [ 1, "<fieldset>", "</fieldset>" ],5305area: [ 1, "<map>", "</map>" ],5306param: [ 1, "<object>", "</object>" ],5307thead: [ 1, "<table>", "</table>" ],5308tr: [ 2, "<table><tbody>", "</tbody></table>" ],5309col: [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ],5310td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],53115312// IE6-8 can't serialize link, script, style, or any html5 (NoScope) tags,5313// unless wrapped in a div with non-breaking characters in front of it.5314_default: support.htmlSerialize ? [ 0, "", "" ] : [ 1, "X<div>", "</div>" ]5315},5316safeFragment = createSafeFragment( document ),5317fragmentDiv = safeFragment.appendChild( document.createElement("div") );53185319wrapMap.optgroup = wrapMap.option;5320wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;5321wrapMap.th = wrapMap.td;53225323function getAll( context, tag ) {5324var elems, elem,5325i = 0,5326found = typeof context.getElementsByTagName !== strundefined ? context.getElementsByTagName( tag || "*" ) :5327typeof context.querySelectorAll !== strundefined ? context.querySelectorAll( tag || "*" ) :5328undefined;53295330if ( !found ) {5331for ( found = [], elems = context.childNodes || context; (elem = elems[i]) != null; i++ ) {5332if ( !tag || jQuery.nodeName( elem, tag ) ) {5333found.push( elem );5334} else {5335jQuery.merge( found, getAll( elem, tag ) );5336}5337}5338}53395340return tag === undefined || tag && jQuery.nodeName( context, tag ) ?5341jQuery.merge( [ context ], found ) :5342found;5343}53445345// Used in buildFragment, fixes the defaultChecked property5346function fixDefaultChecked( elem ) {5347if ( rcheckableType.test( elem.type ) ) {5348elem.defaultChecked = elem.checked;5349}5350}53515352// Support: IE<85353// Manipulating tables requires a tbody5354function manipulationTarget( elem, content ) {5355return jQuery.nodeName( elem, "table" ) &&5356jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ?53575358elem.getElementsByTagName("tbody")[0] ||5359elem.appendChild( elem.ownerDocument.createElement("tbody") ) :5360elem;5361}53625363// Replace/restore the type attribute of script elements for safe DOM manipulation5364function disableScript( elem ) {5365elem.type = (jQuery.find.attr( elem, "type" ) !== null) + "/" + elem.type;5366return elem;5367}5368function restoreScript( elem ) {5369var match = rscriptTypeMasked.exec( elem.type );5370if ( match ) {5371elem.type = match[1];5372} else {5373elem.removeAttribute("type");5374}5375return elem;5376}53775378// Mark scripts as having already been evaluated5379function setGlobalEval( elems, refElements ) {5380var elem,5381i = 0;5382for ( ; (elem = elems[i]) != null; i++ ) {5383jQuery._data( elem, "globalEval", !refElements || jQuery._data( refElements[i], "globalEval" ) );5384}5385}53865387function cloneCopyEvent( src, dest ) {53885389if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) {5390return;5391}53925393var type, i, l,5394oldData = jQuery._data( src ),5395curData = jQuery._data( dest, oldData ),5396events = oldData.events;53975398if ( events ) {5399delete curData.handle;5400curData.events = {};54015402for ( type in events ) {5403for ( i = 0, l = events[ type ].length; i < l; i++ ) {5404jQuery.event.add( dest, type, events[ type ][ i ] );5405}5406}5407}54085409// make the cloned public data object a copy from the original5410if ( curData.data ) {5411curData.data = jQuery.extend( {}, curData.data );5412}5413}54145415function fixCloneNodeIssues( src, dest ) {5416var nodeName, e, data;54175418// We do not need to do anything for non-Elements5419if ( dest.nodeType !== 1 ) {5420return;5421}54225423nodeName = dest.nodeName.toLowerCase();54245425// IE6-8 copies events bound via attachEvent when using cloneNode.5426if ( !support.noCloneEvent && dest[ jQuery.expando ] ) {5427data = jQuery._data( dest );54285429for ( e in data.events ) {5430jQuery.removeEvent( dest, e, data.handle );5431}54325433// Event data gets referenced instead of copied if the expando gets copied too5434dest.removeAttribute( jQuery.expando );5435}54365437// IE blanks contents when cloning scripts, and tries to evaluate newly-set text5438if ( nodeName === "script" && dest.text !== src.text ) {5439disableScript( dest ).text = src.text;5440restoreScript( dest );54415442// IE6-10 improperly clones children of object elements using classid.5443// IE10 throws NoModificationAllowedError if parent is null, #12132.5444} else if ( nodeName === "object" ) {5445if ( dest.parentNode ) {5446dest.outerHTML = src.outerHTML;5447}54485449// This path appears unavoidable for IE9. When cloning an object5450// element in IE9, the outerHTML strategy above is not sufficient.5451// If the src has innerHTML and the destination does not,5452// copy the src.innerHTML into the dest.innerHTML. #103245453if ( support.html5Clone && ( src.innerHTML && !jQuery.trim(dest.innerHTML) ) ) {5454dest.innerHTML = src.innerHTML;5455}54565457} else if ( nodeName === "input" && rcheckableType.test( src.type ) ) {5458// IE6-8 fails to persist the checked state of a cloned checkbox5459// or radio button. Worse, IE6-7 fail to give the cloned element5460// a checked appearance if the defaultChecked value isn't also set54615462dest.defaultChecked = dest.checked = src.checked;54635464// IE6-7 get confused and end up setting the value of a cloned5465// checkbox/radio button to an empty string instead of "on"5466if ( dest.value !== src.value ) {5467dest.value = src.value;5468}54695470// IE6-8 fails to return the selected option to the default selected5471// state when cloning options5472} else if ( nodeName === "option" ) {5473dest.defaultSelected = dest.selected = src.defaultSelected;54745475// IE6-8 fails to set the defaultValue to the correct value when5476// cloning other types of input fields5477} else if ( nodeName === "input" || nodeName === "textarea" ) {5478dest.defaultValue = src.defaultValue;5479}5480}54815482jQuery.extend({5483clone: function( elem, dataAndEvents, deepDataAndEvents ) {5484var destElements, node, clone, i, srcElements,5485inPage = jQuery.contains( elem.ownerDocument, elem );54865487if ( support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test( "<" + elem.nodeName + ">" ) ) {5488clone = elem.cloneNode( true );54895490// IE<=8 does not properly clone detached, unknown element nodes5491} else {5492fragmentDiv.innerHTML = elem.outerHTML;5493fragmentDiv.removeChild( clone = fragmentDiv.firstChild );5494}54955496if ( (!support.noCloneEvent || !support.noCloneChecked) &&5497(elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) {54985499// We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/25500destElements = getAll( clone );5501srcElements = getAll( elem );55025503// Fix all IE cloning issues5504for ( i = 0; (node = srcElements[i]) != null; ++i ) {5505// Ensure that the destination node is not null; Fixes #95875506if ( destElements[i] ) {5507fixCloneNodeIssues( node, destElements[i] );5508}5509}5510}55115512// Copy the events from the original to the clone5513if ( dataAndEvents ) {5514if ( deepDataAndEvents ) {5515srcElements = srcElements || getAll( elem );5516destElements = destElements || getAll( clone );55175518for ( i = 0; (node = srcElements[i]) != null; i++ ) {5519cloneCopyEvent( node, destElements[i] );5520}5521} else {5522cloneCopyEvent( elem, clone );5523}5524}55255526// Preserve script evaluation history5527destElements = getAll( clone, "script" );5528if ( destElements.length > 0 ) {5529setGlobalEval( destElements, !inPage && getAll( elem, "script" ) );5530}55315532destElements = srcElements = node = null;55335534// Return the cloned set5535return clone;5536},55375538buildFragment: function( elems, context, scripts, selection ) {5539var j, elem, contains,5540tmp, tag, tbody, wrap,5541l = elems.length,55425543// Ensure a safe fragment5544safe = createSafeFragment( context ),55455546nodes = [],5547i = 0;55485549for ( ; i < l; i++ ) {5550elem = elems[ i ];55515552if ( elem || elem === 0 ) {55535554// Add nodes directly5555if ( jQuery.type( elem ) === "object" ) {5556jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );55575558// Convert non-html into a text node5559} else if ( !rhtml.test( elem ) ) {5560nodes.push( context.createTextNode( elem ) );55615562// Convert html into DOM nodes5563} else {5564tmp = tmp || safe.appendChild( context.createElement("div") );55655566// Deserialize a standard representation5567tag = (rtagName.exec( elem ) || [ "", "" ])[ 1 ].toLowerCase();5568wrap = wrapMap[ tag ] || wrapMap._default;55695570tmp.innerHTML = wrap[1] + elem.replace( rxhtmlTag, "<$1></$2>" ) + wrap[2];55715572// Descend through wrappers to the right content5573j = wrap[0];5574while ( j-- ) {5575tmp = tmp.lastChild;5576}55775578// Manually add leading whitespace removed by IE5579if ( !support.leadingWhitespace && rleadingWhitespace.test( elem ) ) {5580nodes.push( context.createTextNode( rleadingWhitespace.exec( elem )[0] ) );5581}55825583// Remove IE's autoinserted <tbody> from table fragments5584if ( !support.tbody ) {55855586// String was a <table>, *may* have spurious <tbody>5587elem = tag === "table" && !rtbody.test( elem ) ?5588tmp.firstChild :55895590// String was a bare <thead> or <tfoot>5591wrap[1] === "<table>" && !rtbody.test( elem ) ?5592tmp :55930;55945595j = elem && elem.childNodes.length;5596while ( j-- ) {5597if ( jQuery.nodeName( (tbody = elem.childNodes[j]), "tbody" ) && !tbody.childNodes.length ) {5598elem.removeChild( tbody );5599}5600}5601}56025603jQuery.merge( nodes, tmp.childNodes );56045605// Fix #12392 for WebKit and IE > 95606tmp.textContent = "";56075608// Fix #12392 for oldIE5609while ( tmp.firstChild ) {5610tmp.removeChild( tmp.firstChild );5611}56125613// Remember the top-level container for proper cleanup5614tmp = safe.lastChild;5615}5616}5617}56185619// Fix #11356: Clear elements from fragment5620if ( tmp ) {5621safe.removeChild( tmp );5622}56235624// Reset defaultChecked for any radios and checkboxes5625// about to be appended to the DOM in IE 6/7 (#8060)5626if ( !support.appendChecked ) {5627jQuery.grep( getAll( nodes, "input" ), fixDefaultChecked );5628}56295630i = 0;5631while ( (elem = nodes[ i++ ]) ) {56325633// #4087 - If origin and destination elements are the same, and this is5634// that element, do not do anything5635if ( selection && jQuery.inArray( elem, selection ) !== -1 ) {5636continue;5637}56385639contains = jQuery.contains( elem.ownerDocument, elem );56405641// Append to fragment5642tmp = getAll( safe.appendChild( elem ), "script" );56435644// Preserve script evaluation history5645if ( contains ) {5646setGlobalEval( tmp );5647}56485649// Capture executables5650if ( scripts ) {5651j = 0;5652while ( (elem = tmp[ j++ ]) ) {5653if ( rscriptType.test( elem.type || "" ) ) {5654scripts.push( elem );5655}5656}5657}5658}56595660tmp = null;56615662return safe;5663},56645665cleanData: function( elems, /* internal */ acceptData ) {5666var elem, type, id, data,5667i = 0,5668internalKey = jQuery.expando,5669cache = jQuery.cache,5670deleteExpando = support.deleteExpando,5671special = jQuery.event.special;56725673for ( ; (elem = elems[i]) != null; i++ ) {5674if ( acceptData || jQuery.acceptData( elem ) ) {56755676id = elem[ internalKey ];5677data = id && cache[ id ];56785679if ( data ) {5680if ( data.events ) {5681for ( type in data.events ) {5682if ( special[ type ] ) {5683jQuery.event.remove( elem, type );56845685// This is a shortcut to avoid jQuery.event.remove's overhead5686} else {5687jQuery.removeEvent( elem, type, data.handle );5688}5689}5690}56915692// Remove cache only if it was not already removed by jQuery.event.remove5693if ( cache[ id ] ) {56945695delete cache[ id ];56965697// IE does not allow us to delete expando properties from nodes,5698// nor does it have a removeAttribute function on Document nodes;5699// we must handle all of these cases5700if ( deleteExpando ) {5701delete elem[ internalKey ];57025703} else if ( typeof elem.removeAttribute !== strundefined ) {5704elem.removeAttribute( internalKey );57055706} else {5707elem[ internalKey ] = null;5708}57095710deletedIds.push( id );5711}5712}5713}5714}5715}5716});57175718jQuery.fn.extend({5719text: function( value ) {5720return access( this, function( value ) {5721return value === undefined ?5722jQuery.text( this ) :5723this.empty().append( ( this[0] && this[0].ownerDocument || document ).createTextNode( value ) );5724}, null, value, arguments.length );5725},57265727append: function() {5728return this.domManip( arguments, function( elem ) {5729if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {5730var target = manipulationTarget( this, elem );5731target.appendChild( elem );5732}5733});5734},57355736prepend: function() {5737return this.domManip( arguments, function( elem ) {5738if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {5739var target = manipulationTarget( this, elem );5740target.insertBefore( elem, target.firstChild );5741}5742});5743},57445745before: function() {5746return this.domManip( arguments, function( elem ) {5747if ( this.parentNode ) {5748this.parentNode.insertBefore( elem, this );5749}5750});5751},57525753after: function() {5754return this.domManip( arguments, function( elem ) {5755if ( this.parentNode ) {5756this.parentNode.insertBefore( elem, this.nextSibling );5757}5758});5759},57605761remove: function( selector, keepData /* Internal Use Only */ ) {5762var elem,5763elems = selector ? jQuery.filter( selector, this ) : this,5764i = 0;57655766for ( ; (elem = elems[i]) != null; i++ ) {57675768if ( !keepData && elem.nodeType === 1 ) {5769jQuery.cleanData( getAll( elem ) );5770}57715772if ( elem.parentNode ) {5773if ( keepData && jQuery.contains( elem.ownerDocument, elem ) ) {5774setGlobalEval( getAll( elem, "script" ) );5775}5776elem.parentNode.removeChild( elem );5777}5778}57795780return this;5781},57825783empty: function() {5784var elem,5785i = 0;57865787for ( ; (elem = this[i]) != null; i++ ) {5788// Remove element nodes and prevent memory leaks5789if ( elem.nodeType === 1 ) {5790jQuery.cleanData( getAll( elem, false ) );5791}57925793// Remove any remaining nodes5794while ( elem.firstChild ) {5795elem.removeChild( elem.firstChild );5796}57975798// If this is a select, ensure that it displays empty (#12336)5799// Support: IE<95800if ( elem.options && jQuery.nodeName( elem, "select" ) ) {5801elem.options.length = 0;5802}5803}58045805return this;5806},58075808clone: function( dataAndEvents, deepDataAndEvents ) {5809dataAndEvents = dataAndEvents == null ? false : dataAndEvents;5810deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;58115812return this.map(function() {5813return jQuery.clone( this, dataAndEvents, deepDataAndEvents );5814});5815},58165817html: function( value ) {5818return access( this, function( value ) {5819var elem = this[ 0 ] || {},5820i = 0,5821l = this.length;58225823if ( value === undefined ) {5824return elem.nodeType === 1 ?5825elem.innerHTML.replace( rinlinejQuery, "" ) :5826undefined;5827}58285829// See if we can take a shortcut and just use innerHTML5830if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&5831( support.htmlSerialize || !rnoshimcache.test( value ) ) &&5832( support.leadingWhitespace || !rleadingWhitespace.test( value ) ) &&5833!wrapMap[ (rtagName.exec( value ) || [ "", "" ])[ 1 ].toLowerCase() ] ) {58345835value = value.replace( rxhtmlTag, "<$1></$2>" );58365837try {5838for (; i < l; i++ ) {5839// Remove element nodes and prevent memory leaks5840elem = this[i] || {};5841if ( elem.nodeType === 1 ) {5842jQuery.cleanData( getAll( elem, false ) );5843elem.innerHTML = value;5844}5845}58465847elem = 0;58485849// If using innerHTML throws an exception, use the fallback method5850} catch(e) {}5851}58525853if ( elem ) {5854this.empty().append( value );5855}5856}, null, value, arguments.length );5857},58585859replaceWith: function() {5860var arg = arguments[ 0 ];58615862// Make the changes, replacing each context element with the new content5863this.domManip( arguments, function( elem ) {5864arg = this.parentNode;58655866jQuery.cleanData( getAll( this ) );58675868if ( arg ) {5869arg.replaceChild( elem, this );5870}5871});58725873// Force removal if there was no new content (e.g., from empty arguments)5874return arg && (arg.length || arg.nodeType) ? this : this.remove();5875},58765877detach: function( selector ) {5878return this.remove( selector, true );5879},58805881domManip: function( args, callback ) {58825883// Flatten any nested arrays5884args = concat.apply( [], args );58855886var first, node, hasScripts,5887scripts, doc, fragment,5888i = 0,5889l = this.length,5890set = this,5891iNoClone = l - 1,5892value = args[0],5893isFunction = jQuery.isFunction( value );58945895// We can't cloneNode fragments that contain checked, in WebKit5896if ( isFunction ||5897( l > 1 && typeof value === "string" &&5898!support.checkClone && rchecked.test( value ) ) ) {5899return this.each(function( index ) {5900var self = set.eq( index );5901if ( isFunction ) {5902args[0] = value.call( this, index, self.html() );5903}5904self.domManip( args, callback );5905});5906}59075908if ( l ) {5909fragment = jQuery.buildFragment( args, this[ 0 ].ownerDocument, false, this );5910first = fragment.firstChild;59115912if ( fragment.childNodes.length === 1 ) {5913fragment = first;5914}59155916if ( first ) {5917scripts = jQuery.map( getAll( fragment, "script" ), disableScript );5918hasScripts = scripts.length;59195920// Use the original fragment for the last item instead of the first because it can end up5921// being emptied incorrectly in certain situations (#8070).5922for ( ; i < l; i++ ) {5923node = fragment;59245925if ( i !== iNoClone ) {5926node = jQuery.clone( node, true, true );59275928// Keep references to cloned scripts for later restoration5929if ( hasScripts ) {5930jQuery.merge( scripts, getAll( node, "script" ) );5931}5932}59335934callback.call( this[i], node, i );5935}59365937if ( hasScripts ) {5938doc = scripts[ scripts.length - 1 ].ownerDocument;59395940// Reenable scripts5941jQuery.map( scripts, restoreScript );59425943// Evaluate executable scripts on first document insertion5944for ( i = 0; i < hasScripts; i++ ) {5945node = scripts[ i ];5946if ( rscriptType.test( node.type || "" ) &&5947!jQuery._data( node, "globalEval" ) && jQuery.contains( doc, node ) ) {59485949if ( node.src ) {5950// Optional AJAX dependency, but won't run scripts if not present5951if ( jQuery._evalUrl ) {5952jQuery._evalUrl( node.src );5953}5954} else {5955jQuery.globalEval( ( node.text || node.textContent || node.innerHTML || "" ).replace( rcleanScript, "" ) );5956}5957}5958}5959}59605961// Fix #11809: Avoid leaking memory5962fragment = first = null;5963}5964}59655966return this;5967}5968});59695970jQuery.each({5971appendTo: "append",5972prependTo: "prepend",5973insertBefore: "before",5974insertAfter: "after",5975replaceAll: "replaceWith"5976}, function( name, original ) {5977jQuery.fn[ name ] = function( selector ) {5978var elems,5979i = 0,5980ret = [],5981insert = jQuery( selector ),5982last = insert.length - 1;59835984for ( ; i <= last; i++ ) {5985elems = i === last ? this : this.clone(true);5986jQuery( insert[i] )[ original ]( elems );59875988// Modern browsers can apply jQuery collections as arrays, but oldIE needs a .get()5989push.apply( ret, elems.get() );5990}59915992return this.pushStack( ret );5993};5994});599559965997var iframe,5998elemdisplay = {};59996000/**6001* Retrieve the actual display of a element6002* @param {String} name nodeName of the element6003* @param {Object} doc Document object6004*/6005// Called only from within defaultDisplay6006function actualDisplay( name, doc ) {6007var style,6008elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ),60096010// getDefaultComputedStyle might be reliably used only on attached element6011display = window.getDefaultComputedStyle && ( style = window.getDefaultComputedStyle( elem[ 0 ] ) ) ?60126013// Use of this method is a temporary fix (more like optmization) until something better comes along,6014// since it was removed from specification and supported only in FF6015style.display : jQuery.css( elem[ 0 ], "display" );60166017// We don't have any data stored on the element,6018// so use "detach" method as fast way to get rid of the element6019elem.detach();60206021return display;6022}60236024/**6025* Try to determine the default display value of an element6026* @param {String} nodeName6027*/6028function defaultDisplay( nodeName ) {6029var doc = document,6030display = elemdisplay[ nodeName ];60316032if ( !display ) {6033display = actualDisplay( nodeName, doc );60346035// If the simple way fails, read from inside an iframe6036if ( display === "none" || !display ) {60376038// Use the already-created iframe if possible6039iframe = (iframe || jQuery( "<iframe frameborder='0' width='0' height='0'/>" )).appendTo( doc.documentElement );60406041// Always write a new HTML skeleton so Webkit and Firefox don't choke on reuse6042doc = ( iframe[ 0 ].contentWindow || iframe[ 0 ].contentDocument ).document;60436044// Support: IE6045doc.write();6046doc.close();60476048display = actualDisplay( nodeName, doc );6049iframe.detach();6050}60516052// Store the correct default display6053elemdisplay[ nodeName ] = display;6054}60556056return display;6057}605860596060(function() {6061var shrinkWrapBlocksVal;60626063support.shrinkWrapBlocks = function() {6064if ( shrinkWrapBlocksVal != null ) {6065return shrinkWrapBlocksVal;6066}60676068// Will be changed later if needed.6069shrinkWrapBlocksVal = false;60706071// Minified: var b,c,d6072var div, body, container;60736074body = document.getElementsByTagName( "body" )[ 0 ];6075if ( !body || !body.style ) {6076// Test fired too early or in an unsupported environment, exit.6077return;6078}60796080// Setup6081div = document.createElement( "div" );6082container = document.createElement( "div" );6083container.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px";6084body.appendChild( container ).appendChild( div );60856086// Support: IE66087// Check if elements with layout shrink-wrap their children6088if ( typeof div.style.zoom !== strundefined ) {6089// Reset CSS: box-sizing; display; margin; border6090div.style.cssText =6091// Support: Firefox<29, Android 2.36092// Vendor-prefix box-sizing6093"-webkit-box-sizing:content-box;-moz-box-sizing:content-box;" +6094"box-sizing:content-box;display:block;margin:0;border:0;" +6095"padding:1px;width:1px;zoom:1";6096div.appendChild( document.createElement( "div" ) ).style.width = "5px";6097shrinkWrapBlocksVal = div.offsetWidth !== 3;6098}60996100body.removeChild( container );61016102return shrinkWrapBlocksVal;6103};61046105})();6106var rmargin = (/^margin/);61076108var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" );6109611061116112var getStyles, curCSS,6113rposition = /^(top|right|bottom|left)$/;61146115if ( window.getComputedStyle ) {6116getStyles = function( elem ) {6117return elem.ownerDocument.defaultView.getComputedStyle( elem, null );6118};61196120curCSS = function( elem, name, computed ) {6121var width, minWidth, maxWidth, ret,6122style = elem.style;61236124computed = computed || getStyles( elem );61256126// getPropertyValue is only needed for .css('filter') in IE9, see #125376127ret = computed ? computed.getPropertyValue( name ) || computed[ name ] : undefined;61286129if ( computed ) {61306131if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) {6132ret = jQuery.style( elem, name );6133}61346135// A tribute to the "awesome hack by Dean Edwards"6136// Chrome < 17 and Safari 5.0 uses "computed value" instead of "used value" for margin-right6137// Safari 5.1.7 (at least) returns percentage for a larger set of values, but width seems to be reliably pixels6138// this is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values6139if ( rnumnonpx.test( ret ) && rmargin.test( name ) ) {61406141// Remember the original values6142width = style.width;6143minWidth = style.minWidth;6144maxWidth = style.maxWidth;61456146// Put in the new values to get a computed value out6147style.minWidth = style.maxWidth = style.width = ret;6148ret = computed.width;61496150// Revert the changed values6151style.width = width;6152style.minWidth = minWidth;6153style.maxWidth = maxWidth;6154}6155}61566157// Support: IE6158// IE returns zIndex value as an integer.6159return ret === undefined ?6160ret :6161ret + "";6162};6163} else if ( document.documentElement.currentStyle ) {6164getStyles = function( elem ) {6165return elem.currentStyle;6166};61676168curCSS = function( elem, name, computed ) {6169var left, rs, rsLeft, ret,6170style = elem.style;61716172computed = computed || getStyles( elem );6173ret = computed ? computed[ name ] : undefined;61746175// Avoid setting ret to empty string here6176// so we don't default to auto6177if ( ret == null && style && style[ name ] ) {6178ret = style[ name ];6179}61806181// From the awesome hack by Dean Edwards6182// http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-10229161836184// If we're not dealing with a regular pixel number6185// but a number that has a weird ending, we need to convert it to pixels6186// but not position css attributes, as those are proportional to the parent element instead6187// and we can't measure the parent instead because it might trigger a "stacking dolls" problem6188if ( rnumnonpx.test( ret ) && !rposition.test( name ) ) {61896190// Remember the original values6191left = style.left;6192rs = elem.runtimeStyle;6193rsLeft = rs && rs.left;61946195// Put in the new values to get a computed value out6196if ( rsLeft ) {6197rs.left = elem.currentStyle.left;6198}6199style.left = name === "fontSize" ? "1em" : ret;6200ret = style.pixelLeft + "px";62016202// Revert the changed values6203style.left = left;6204if ( rsLeft ) {6205rs.left = rsLeft;6206}6207}62086209// Support: IE6210// IE returns zIndex value as an integer.6211return ret === undefined ?6212ret :6213ret + "" || "auto";6214};6215}62166217621862196220function addGetHookIf( conditionFn, hookFn ) {6221// Define the hook, we'll check on the first run if it's really needed.6222return {6223get: function() {6224var condition = conditionFn();62256226if ( condition == null ) {6227// The test was not ready at this point; screw the hook this time6228// but check again when needed next time.6229return;6230}62316232if ( condition ) {6233// Hook not needed (or it's not possible to use it due to missing dependency),6234// remove it.6235// Since there are no other hooks for marginRight, remove the whole object.6236delete this.get;6237return;6238}62396240// Hook needed; redefine it so that the support test is not executed again.62416242return (this.get = hookFn).apply( this, arguments );6243}6244};6245}624662476248(function() {6249// Minified: var b,c,d,e,f,g, h,i6250var div, style, a, pixelPositionVal, boxSizingReliableVal,6251reliableHiddenOffsetsVal, reliableMarginRightVal;62526253// Setup6254div = document.createElement( "div" );6255div.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";6256a = div.getElementsByTagName( "a" )[ 0 ];6257style = a && a.style;62586259// Finish early in limited (non-browser) environments6260if ( !style ) {6261return;6262}62636264style.cssText = "float:left;opacity:.5";62656266// Support: IE<96267// Make sure that element opacity exists (as opposed to filter)6268support.opacity = style.opacity === "0.5";62696270// Verify style float existence6271// (IE uses styleFloat instead of cssFloat)6272support.cssFloat = !!style.cssFloat;62736274div.style.backgroundClip = "content-box";6275div.cloneNode( true ).style.backgroundClip = "";6276support.clearCloneStyle = div.style.backgroundClip === "content-box";62776278// Support: Firefox<29, Android 2.36279// Vendor-prefix box-sizing6280support.boxSizing = style.boxSizing === "" || style.MozBoxSizing === "" ||6281style.WebkitBoxSizing === "";62826283jQuery.extend(support, {6284reliableHiddenOffsets: function() {6285if ( reliableHiddenOffsetsVal == null ) {6286computeStyleTests();6287}6288return reliableHiddenOffsetsVal;6289},62906291boxSizingReliable: function() {6292if ( boxSizingReliableVal == null ) {6293computeStyleTests();6294}6295return boxSizingReliableVal;6296},62976298pixelPosition: function() {6299if ( pixelPositionVal == null ) {6300computeStyleTests();6301}6302return pixelPositionVal;6303},63046305// Support: Android 2.36306reliableMarginRight: function() {6307if ( reliableMarginRightVal == null ) {6308computeStyleTests();6309}6310return reliableMarginRightVal;6311}6312});63136314function computeStyleTests() {6315// Minified: var b,c,d,j6316var div, body, container, contents;63176318body = document.getElementsByTagName( "body" )[ 0 ];6319if ( !body || !body.style ) {6320// Test fired too early or in an unsupported environment, exit.6321return;6322}63236324// Setup6325div = document.createElement( "div" );6326container = document.createElement( "div" );6327container.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px";6328body.appendChild( container ).appendChild( div );63296330div.style.cssText =6331// Support: Firefox<29, Android 2.36332// Vendor-prefix box-sizing6333"-webkit-box-sizing:border-box;-moz-box-sizing:border-box;" +6334"box-sizing:border-box;display:block;margin-top:1%;top:1%;" +6335"border:1px;padding:1px;width:4px;position:absolute";63366337// Support: IE<96338// Assume reasonable values in the absence of getComputedStyle6339pixelPositionVal = boxSizingReliableVal = false;6340reliableMarginRightVal = true;63416342// Check for getComputedStyle so that this code is not run in IE<9.6343if ( window.getComputedStyle ) {6344pixelPositionVal = ( window.getComputedStyle( div, null ) || {} ).top !== "1%";6345boxSizingReliableVal =6346( window.getComputedStyle( div, null ) || { width: "4px" } ).width === "4px";63476348// Support: Android 2.36349// Div with explicit width and no margin-right incorrectly6350// gets computed margin-right based on width of container (#3333)6351// WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right6352contents = div.appendChild( document.createElement( "div" ) );63536354// Reset CSS: box-sizing; display; margin; border; padding6355contents.style.cssText = div.style.cssText =6356// Support: Firefox<29, Android 2.36357// Vendor-prefix box-sizing6358"-webkit-box-sizing:content-box;-moz-box-sizing:content-box;" +6359"box-sizing:content-box;display:block;margin:0;border:0;padding:0";6360contents.style.marginRight = contents.style.width = "0";6361div.style.width = "1px";63626363reliableMarginRightVal =6364!parseFloat( ( window.getComputedStyle( contents, null ) || {} ).marginRight );6365}63666367// Support: IE86368// Check if table cells still have offsetWidth/Height when they are set6369// to display:none and there are still other visible table cells in a6370// table row; if so, offsetWidth/Height are not reliable for use when6371// determining if an element has been hidden directly using6372// display:none (it is still safe to use offsets if a parent element is6373// hidden; don safety goggles and see bug #4512 for more information).6374div.innerHTML = "<table><tr><td></td><td>t</td></tr></table>";6375contents = div.getElementsByTagName( "td" );6376contents[ 0 ].style.cssText = "margin:0;border:0;padding:0;display:none";6377reliableHiddenOffsetsVal = contents[ 0 ].offsetHeight === 0;6378if ( reliableHiddenOffsetsVal ) {6379contents[ 0 ].style.display = "";6380contents[ 1 ].style.display = "none";6381reliableHiddenOffsetsVal = contents[ 0 ].offsetHeight === 0;6382}63836384body.removeChild( container );6385}63866387})();638863896390// A method for quickly swapping in/out CSS properties to get correct calculations.6391jQuery.swap = function( elem, options, callback, args ) {6392var ret, name,6393old = {};63946395// Remember the old values, and insert the new ones6396for ( name in options ) {6397old[ name ] = elem.style[ name ];6398elem.style[ name ] = options[ name ];6399}64006401ret = callback.apply( elem, args || [] );64026403// Revert the old values6404for ( name in options ) {6405elem.style[ name ] = old[ name ];6406}64076408return ret;6409};641064116412var6413ralpha = /alpha\([^)]*\)/i,6414ropacity = /opacity\s*=\s*([^)]*)/,64156416// swappable if display is none or starts with table except "table", "table-cell", or "table-caption"6417// see here for display values: https://developer.mozilla.org/en-US/docs/CSS/display6418rdisplayswap = /^(none|table(?!-c[ea]).+)/,6419rnumsplit = new RegExp( "^(" + pnum + ")(.*)$", "i" ),6420rrelNum = new RegExp( "^([+-])=(" + pnum + ")", "i" ),64216422cssShow = { position: "absolute", visibility: "hidden", display: "block" },6423cssNormalTransform = {6424letterSpacing: "0",6425fontWeight: "400"6426},64276428cssPrefixes = [ "Webkit", "O", "Moz", "ms" ];642964306431// return a css property mapped to a potentially vendor prefixed property6432function vendorPropName( style, name ) {64336434// shortcut for names that are not vendor prefixed6435if ( name in style ) {6436return name;6437}64386439// check for vendor prefixed names6440var capName = name.charAt(0).toUpperCase() + name.slice(1),6441origName = name,6442i = cssPrefixes.length;64436444while ( i-- ) {6445name = cssPrefixes[ i ] + capName;6446if ( name in style ) {6447return name;6448}6449}64506451return origName;6452}64536454function showHide( elements, show ) {6455var display, elem, hidden,6456values = [],6457index = 0,6458length = elements.length;64596460for ( ; index < length; index++ ) {6461elem = elements[ index ];6462if ( !elem.style ) {6463continue;6464}64656466values[ index ] = jQuery._data( elem, "olddisplay" );6467display = elem.style.display;6468if ( show ) {6469// Reset the inline display of this element to learn if it is6470// being hidden by cascaded rules or not6471if ( !values[ index ] && display === "none" ) {6472elem.style.display = "";6473}64746475// Set elements which have been overridden with display: none6476// in a stylesheet to whatever the default browser style is6477// for such an element6478if ( elem.style.display === "" && isHidden( elem ) ) {6479values[ index ] = jQuery._data( elem, "olddisplay", defaultDisplay(elem.nodeName) );6480}6481} else {6482hidden = isHidden( elem );64836484if ( display && display !== "none" || !hidden ) {6485jQuery._data( elem, "olddisplay", hidden ? display : jQuery.css( elem, "display" ) );6486}6487}6488}64896490// Set the display of most of the elements in a second loop6491// to avoid the constant reflow6492for ( index = 0; index < length; index++ ) {6493elem = elements[ index ];6494if ( !elem.style ) {6495continue;6496}6497if ( !show || elem.style.display === "none" || elem.style.display === "" ) {6498elem.style.display = show ? values[ index ] || "" : "none";6499}6500}65016502return elements;6503}65046505function setPositiveNumber( elem, value, subtract ) {6506var matches = rnumsplit.exec( value );6507return matches ?6508// Guard against undefined "subtract", e.g., when used as in cssHooks6509Math.max( 0, matches[ 1 ] - ( subtract || 0 ) ) + ( matches[ 2 ] || "px" ) :6510value;6511}65126513function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {6514var i = extra === ( isBorderBox ? "border" : "content" ) ?6515// If we already have the right measurement, avoid augmentation65164 :6517// Otherwise initialize for horizontal or vertical properties6518name === "width" ? 1 : 0,65196520val = 0;65216522for ( ; i < 4; i += 2 ) {6523// both box models exclude margin, so add it if we want it6524if ( extra === "margin" ) {6525val += jQuery.css( elem, extra + cssExpand[ i ], true, styles );6526}65276528if ( isBorderBox ) {6529// border-box includes padding, so remove it if we want content6530if ( extra === "content" ) {6531val -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );6532}65336534// at this point, extra isn't border nor margin, so remove border6535if ( extra !== "margin" ) {6536val -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );6537}6538} else {6539// at this point, extra isn't content, so add padding6540val += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );65416542// at this point, extra isn't content nor padding, so add border6543if ( extra !== "padding" ) {6544val += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );6545}6546}6547}65486549return val;6550}65516552function getWidthOrHeight( elem, name, extra ) {65536554// Start with offset property, which is equivalent to the border-box value6555var valueIsBorderBox = true,6556val = name === "width" ? elem.offsetWidth : elem.offsetHeight,6557styles = getStyles( elem ),6558isBorderBox = support.boxSizing && jQuery.css( elem, "boxSizing", false, styles ) === "border-box";65596560// some non-html elements return undefined for offsetWidth, so check for null/undefined6561// svg - https://bugzilla.mozilla.org/show_bug.cgi?id=6492856562// MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=4916686563if ( val <= 0 || val == null ) {6564// Fall back to computed then uncomputed css if necessary6565val = curCSS( elem, name, styles );6566if ( val < 0 || val == null ) {6567val = elem.style[ name ];6568}65696570// Computed unit is not pixels. Stop here and return.6571if ( rnumnonpx.test(val) ) {6572return val;6573}65746575// we need the check for style in case a browser which returns unreliable values6576// for getComputedStyle silently falls back to the reliable elem.style6577valueIsBorderBox = isBorderBox && ( support.boxSizingReliable() || val === elem.style[ name ] );65786579// Normalize "", auto, and prepare for extra6580val = parseFloat( val ) || 0;6581}65826583// use the active box-sizing model to add/subtract irrelevant styles6584return ( val +6585augmentWidthOrHeight(6586elem,6587name,6588extra || ( isBorderBox ? "border" : "content" ),6589valueIsBorderBox,6590styles6591)6592) + "px";6593}65946595jQuery.extend({6596// Add in style property hooks for overriding the default6597// behavior of getting and setting a style property6598cssHooks: {6599opacity: {6600get: function( elem, computed ) {6601if ( computed ) {6602// We should always get a number back from opacity6603var ret = curCSS( elem, "opacity" );6604return ret === "" ? "1" : ret;6605}6606}6607}6608},66096610// Don't automatically add "px" to these possibly-unitless properties6611cssNumber: {6612"columnCount": true,6613"fillOpacity": true,6614"flexGrow": true,6615"flexShrink": true,6616"fontWeight": true,6617"lineHeight": true,6618"opacity": true,6619"order": true,6620"orphans": true,6621"widows": true,6622"zIndex": true,6623"zoom": true6624},66256626// Add in properties whose names you wish to fix before6627// setting or getting the value6628cssProps: {6629// normalize float css property6630"float": support.cssFloat ? "cssFloat" : "styleFloat"6631},66326633// Get and set the style property on a DOM Node6634style: function( elem, name, value, extra ) {6635// Don't set styles on text and comment nodes6636if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {6637return;6638}66396640// Make sure that we're working with the right name6641var ret, type, hooks,6642origName = jQuery.camelCase( name ),6643style = elem.style;66446645name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( style, origName ) );66466647// gets hook for the prefixed version6648// followed by the unprefixed version6649hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];66506651// Check if we're setting a value6652if ( value !== undefined ) {6653type = typeof value;66546655// convert relative number strings (+= or -=) to relative numbers. #73456656if ( type === "string" && (ret = rrelNum.exec( value )) ) {6657value = ( ret[1] + 1 ) * ret[2] + parseFloat( jQuery.css( elem, name ) );6658// Fixes bug #92376659type = "number";6660}66616662// Make sure that null and NaN values aren't set. See: #71166663if ( value == null || value !== value ) {6664return;6665}66666667// If a number was passed in, add 'px' to the (except for certain CSS properties)6668if ( type === "number" && !jQuery.cssNumber[ origName ] ) {6669value += "px";6670}66716672// Fixes #8908, it can be done more correctly by specifing setters in cssHooks,6673// but it would mean to define eight (for every problematic property) identical functions6674if ( !support.clearCloneStyle && value === "" && name.indexOf("background") === 0 ) {6675style[ name ] = "inherit";6676}66776678// If a hook was provided, use that value, otherwise just set the specified value6679if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value, extra )) !== undefined ) {66806681// Support: IE6682// Swallow errors from 'invalid' CSS values (#5509)6683try {6684style[ name ] = value;6685} catch(e) {}6686}66876688} else {6689// If a hook was provided get the non-computed value from there6690if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) {6691return ret;6692}66936694// Otherwise just get the value from the style object6695return style[ name ];6696}6697},66986699css: function( elem, name, extra, styles ) {6700var num, val, hooks,6701origName = jQuery.camelCase( name );67026703// Make sure that we're working with the right name6704name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( elem.style, origName ) );67056706// gets hook for the prefixed version6707// followed by the unprefixed version6708hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];67096710// If a hook was provided get the computed value from there6711if ( hooks && "get" in hooks ) {6712val = hooks.get( elem, true, extra );6713}67146715// Otherwise, if a way to get the computed value exists, use that6716if ( val === undefined ) {6717val = curCSS( elem, name, styles );6718}67196720//convert "normal" to computed value6721if ( val === "normal" && name in cssNormalTransform ) {6722val = cssNormalTransform[ name ];6723}67246725// Return, converting to number if forced or a qualifier was provided and val looks numeric6726if ( extra === "" || extra ) {6727num = parseFloat( val );6728return extra === true || jQuery.isNumeric( num ) ? num || 0 : val;6729}6730return val;6731}6732});67336734jQuery.each([ "height", "width" ], function( i, name ) {6735jQuery.cssHooks[ name ] = {6736get: function( elem, computed, extra ) {6737if ( computed ) {6738// certain elements can have dimension info if we invisibly show them6739// however, it must have a current display style that would benefit from this6740return rdisplayswap.test( jQuery.css( elem, "display" ) ) && elem.offsetWidth === 0 ?6741jQuery.swap( elem, cssShow, function() {6742return getWidthOrHeight( elem, name, extra );6743}) :6744getWidthOrHeight( elem, name, extra );6745}6746},67476748set: function( elem, value, extra ) {6749var styles = extra && getStyles( elem );6750return setPositiveNumber( elem, value, extra ?6751augmentWidthOrHeight(6752elem,6753name,6754extra,6755support.boxSizing && jQuery.css( elem, "boxSizing", false, styles ) === "border-box",6756styles6757) : 06758);6759}6760};6761});67626763if ( !support.opacity ) {6764jQuery.cssHooks.opacity = {6765get: function( elem, computed ) {6766// IE uses filters for opacity6767return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?6768( 0.01 * parseFloat( RegExp.$1 ) ) + "" :6769computed ? "1" : "";6770},67716772set: function( elem, value ) {6773var style = elem.style,6774currentStyle = elem.currentStyle,6775opacity = jQuery.isNumeric( value ) ? "alpha(opacity=" + value * 100 + ")" : "",6776filter = currentStyle && currentStyle.filter || style.filter || "";67776778// IE has trouble with opacity if it does not have layout6779// Force it by setting the zoom level6780style.zoom = 1;67816782// if setting opacity to 1, and no other filters exist - attempt to remove filter attribute #66526783// if value === "", then remove inline opacity #126856784if ( ( value >= 1 || value === "" ) &&6785jQuery.trim( filter.replace( ralpha, "" ) ) === "" &&6786style.removeAttribute ) {67876788// Setting style.filter to null, "" & " " still leave "filter:" in the cssText6789// if "filter:" is present at all, clearType is disabled, we want to avoid this6790// style.removeAttribute is IE Only, but so apparently is this code path...6791style.removeAttribute( "filter" );67926793// if there is no filter style applied in a css rule or unset inline opacity, we are done6794if ( value === "" || currentStyle && !currentStyle.filter ) {6795return;6796}6797}67986799// otherwise, set new filter values6800style.filter = ralpha.test( filter ) ?6801filter.replace( ralpha, opacity ) :6802filter + " " + opacity;6803}6804};6805}68066807jQuery.cssHooks.marginRight = addGetHookIf( support.reliableMarginRight,6808function( elem, computed ) {6809if ( computed ) {6810// WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right6811// Work around by temporarily setting element display to inline-block6812return jQuery.swap( elem, { "display": "inline-block" },6813curCSS, [ elem, "marginRight" ] );6814}6815}6816);68176818// These hooks are used by animate to expand properties6819jQuery.each({6820margin: "",6821padding: "",6822border: "Width"6823}, function( prefix, suffix ) {6824jQuery.cssHooks[ prefix + suffix ] = {6825expand: function( value ) {6826var i = 0,6827expanded = {},68286829// assumes a single number if not a string6830parts = typeof value === "string" ? value.split(" ") : [ value ];68316832for ( ; i < 4; i++ ) {6833expanded[ prefix + cssExpand[ i ] + suffix ] =6834parts[ i ] || parts[ i - 2 ] || parts[ 0 ];6835}68366837return expanded;6838}6839};68406841if ( !rmargin.test( prefix ) ) {6842jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;6843}6844});68456846jQuery.fn.extend({6847css: function( name, value ) {6848return access( this, function( elem, name, value ) {6849var styles, len,6850map = {},6851i = 0;68526853if ( jQuery.isArray( name ) ) {6854styles = getStyles( elem );6855len = name.length;68566857for ( ; i < len; i++ ) {6858map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles );6859}68606861return map;6862}68636864return value !== undefined ?6865jQuery.style( elem, name, value ) :6866jQuery.css( elem, name );6867}, name, value, arguments.length > 1 );6868},6869show: function() {6870return showHide( this, true );6871},6872hide: function() {6873return showHide( this );6874},6875toggle: function( state ) {6876if ( typeof state === "boolean" ) {6877return state ? this.show() : this.hide();6878}68796880return this.each(function() {6881if ( isHidden( this ) ) {6882jQuery( this ).show();6883} else {6884jQuery( this ).hide();6885}6886});6887}6888});688968906891function Tween( elem, options, prop, end, easing ) {6892return new Tween.prototype.init( elem, options, prop, end, easing );6893}6894jQuery.Tween = Tween;68956896Tween.prototype = {6897constructor: Tween,6898init: function( elem, options, prop, end, easing, unit ) {6899this.elem = elem;6900this.prop = prop;6901this.easing = easing || "swing";6902this.options = options;6903this.start = this.now = this.cur();6904this.end = end;6905this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" );6906},6907cur: function() {6908var hooks = Tween.propHooks[ this.prop ];69096910return hooks && hooks.get ?6911hooks.get( this ) :6912Tween.propHooks._default.get( this );6913},6914run: function( percent ) {6915var eased,6916hooks = Tween.propHooks[ this.prop ];69176918if ( this.options.duration ) {6919this.pos = eased = jQuery.easing[ this.easing ](6920percent, this.options.duration * percent, 0, 1, this.options.duration6921);6922} else {6923this.pos = eased = percent;6924}6925this.now = ( this.end - this.start ) * eased + this.start;69266927if ( this.options.step ) {6928this.options.step.call( this.elem, this.now, this );6929}69306931if ( hooks && hooks.set ) {6932hooks.set( this );6933} else {6934Tween.propHooks._default.set( this );6935}6936return this;6937}6938};69396940Tween.prototype.init.prototype = Tween.prototype;69416942Tween.propHooks = {6943_default: {6944get: function( tween ) {6945var result;69466947if ( tween.elem[ tween.prop ] != null &&6948(!tween.elem.style || tween.elem.style[ tween.prop ] == null) ) {6949return tween.elem[ tween.prop ];6950}69516952// passing an empty string as a 3rd parameter to .css will automatically6953// attempt a parseFloat and fallback to a string if the parse fails6954// so, simple values such as "10px" are parsed to Float.6955// complex values such as "rotate(1rad)" are returned as is.6956result = jQuery.css( tween.elem, tween.prop, "" );6957// Empty strings, null, undefined and "auto" are converted to 0.6958return !result || result === "auto" ? 0 : result;6959},6960set: function( tween ) {6961// use step hook for back compat - use cssHook if its there - use .style if its6962// available and use plain properties where available6963if ( jQuery.fx.step[ tween.prop ] ) {6964jQuery.fx.step[ tween.prop ]( tween );6965} else if ( tween.elem.style && ( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null || jQuery.cssHooks[ tween.prop ] ) ) {6966jQuery.style( tween.elem, tween.prop, tween.now + tween.unit );6967} else {6968tween.elem[ tween.prop ] = tween.now;6969}6970}6971}6972};69736974// Support: IE <=96975// Panic based approach to setting things on disconnected nodes69766977Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {6978set: function( tween ) {6979if ( tween.elem.nodeType && tween.elem.parentNode ) {6980tween.elem[ tween.prop ] = tween.now;6981}6982}6983};69846985jQuery.easing = {6986linear: function( p ) {6987return p;6988},6989swing: function( p ) {6990return 0.5 - Math.cos( p * Math.PI ) / 2;6991}6992};69936994jQuery.fx = Tween.prototype.init;69956996// Back Compat <1.8 extension point6997jQuery.fx.step = {};69986999700070017002var7003fxNow, timerId,7004rfxtypes = /^(?:toggle|show|hide)$/,7005rfxnum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" ),7006rrun = /queueHooks$/,7007animationPrefilters = [ defaultPrefilter ],7008tweeners = {7009"*": [ function( prop, value ) {7010var tween = this.createTween( prop, value ),7011target = tween.cur(),7012parts = rfxnum.exec( value ),7013unit = parts && parts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),70147015// Starting value computation is required for potential unit mismatches7016start = ( jQuery.cssNumber[ prop ] || unit !== "px" && +target ) &&7017rfxnum.exec( jQuery.css( tween.elem, prop ) ),7018scale = 1,7019maxIterations = 20;70207021if ( start && start[ 3 ] !== unit ) {7022// Trust units reported by jQuery.css7023unit = unit || start[ 3 ];70247025// Make sure we update the tween properties later on7026parts = parts || [];70277028// Iteratively approximate from a nonzero starting point7029start = +target || 1;70307031do {7032// If previous iteration zeroed out, double until we get *something*7033// Use a string for doubling factor so we don't accidentally see scale as unchanged below7034scale = scale || ".5";70357036// Adjust and apply7037start = start / scale;7038jQuery.style( tween.elem, prop, start + unit );70397040// Update scale, tolerating zero or NaN from tween.cur()7041// And breaking the loop if scale is unchanged or perfect, or if we've just had enough7042} while ( scale !== (scale = tween.cur() / target) && scale !== 1 && --maxIterations );7043}70447045// Update tween properties7046if ( parts ) {7047start = tween.start = +start || +target || 0;7048tween.unit = unit;7049// If a +=/-= token was provided, we're doing a relative animation7050tween.end = parts[ 1 ] ?7051start + ( parts[ 1 ] + 1 ) * parts[ 2 ] :7052+parts[ 2 ];7053}70547055return tween;7056} ]7057};70587059// Animations created synchronously will run synchronously7060function createFxNow() {7061setTimeout(function() {7062fxNow = undefined;7063});7064return ( fxNow = jQuery.now() );7065}70667067// Generate parameters to create a standard animation7068function genFx( type, includeWidth ) {7069var which,7070attrs = { height: type },7071i = 0;70727073// if we include width, step value is 1 to do all cssExpand values,7074// if we don't include width, step value is 2 to skip over Left and Right7075includeWidth = includeWidth ? 1 : 0;7076for ( ; i < 4 ; i += 2 - includeWidth ) {7077which = cssExpand[ i ];7078attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;7079}70807081if ( includeWidth ) {7082attrs.opacity = attrs.width = type;7083}70847085return attrs;7086}70877088function createTween( value, prop, animation ) {7089var tween,7090collection = ( tweeners[ prop ] || [] ).concat( tweeners[ "*" ] ),7091index = 0,7092length = collection.length;7093for ( ; index < length; index++ ) {7094if ( (tween = collection[ index ].call( animation, prop, value )) ) {70957096// we're done with this property7097return tween;7098}7099}7100}71017102function defaultPrefilter( elem, props, opts ) {7103/* jshint validthis: true */7104var prop, value, toggle, tween, hooks, oldfire, display, checkDisplay,7105anim = this,7106orig = {},7107style = elem.style,7108hidden = elem.nodeType && isHidden( elem ),7109dataShow = jQuery._data( elem, "fxshow" );71107111// handle queue: false promises7112if ( !opts.queue ) {7113hooks = jQuery._queueHooks( elem, "fx" );7114if ( hooks.unqueued == null ) {7115hooks.unqueued = 0;7116oldfire = hooks.empty.fire;7117hooks.empty.fire = function() {7118if ( !hooks.unqueued ) {7119oldfire();7120}7121};7122}7123hooks.unqueued++;71247125anim.always(function() {7126// doing this makes sure that the complete handler will be called7127// before this completes7128anim.always(function() {7129hooks.unqueued--;7130if ( !jQuery.queue( elem, "fx" ).length ) {7131hooks.empty.fire();7132}7133});7134});7135}71367137// height/width overflow pass7138if ( elem.nodeType === 1 && ( "height" in props || "width" in props ) ) {7139// Make sure that nothing sneaks out7140// Record all 3 overflow attributes because IE does not7141// change the overflow attribute when overflowX and7142// overflowY are set to the same value7143opts.overflow = [ style.overflow, style.overflowX, style.overflowY ];71447145// Set display property to inline-block for height/width7146// animations on inline elements that are having width/height animated7147display = jQuery.css( elem, "display" );71487149// Test default display if display is currently "none"7150checkDisplay = display === "none" ?7151jQuery._data( elem, "olddisplay" ) || defaultDisplay( elem.nodeName ) : display;71527153if ( checkDisplay === "inline" && jQuery.css( elem, "float" ) === "none" ) {71547155// inline-level elements accept inline-block;7156// block-level elements need to be inline with layout7157if ( !support.inlineBlockNeedsLayout || defaultDisplay( elem.nodeName ) === "inline" ) {7158style.display = "inline-block";7159} else {7160style.zoom = 1;7161}7162}7163}71647165if ( opts.overflow ) {7166style.overflow = "hidden";7167if ( !support.shrinkWrapBlocks() ) {7168anim.always(function() {7169style.overflow = opts.overflow[ 0 ];7170style.overflowX = opts.overflow[ 1 ];7171style.overflowY = opts.overflow[ 2 ];7172});7173}7174}71757176// show/hide pass7177for ( prop in props ) {7178value = props[ prop ];7179if ( rfxtypes.exec( value ) ) {7180delete props[ prop ];7181toggle = toggle || value === "toggle";7182if ( value === ( hidden ? "hide" : "show" ) ) {71837184// If there is dataShow left over from a stopped hide or show and we are going to proceed with show, we should pretend to be hidden7185if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) {7186hidden = true;7187} else {7188continue;7189}7190}7191orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop );71927193// Any non-fx value stops us from restoring the original display value7194} else {7195display = undefined;7196}7197}71987199if ( !jQuery.isEmptyObject( orig ) ) {7200if ( dataShow ) {7201if ( "hidden" in dataShow ) {7202hidden = dataShow.hidden;7203}7204} else {7205dataShow = jQuery._data( elem, "fxshow", {} );7206}72077208// store state if its toggle - enables .stop().toggle() to "reverse"7209if ( toggle ) {7210dataShow.hidden = !hidden;7211}7212if ( hidden ) {7213jQuery( elem ).show();7214} else {7215anim.done(function() {7216jQuery( elem ).hide();7217});7218}7219anim.done(function() {7220var prop;7221jQuery._removeData( elem, "fxshow" );7222for ( prop in orig ) {7223jQuery.style( elem, prop, orig[ prop ] );7224}7225});7226for ( prop in orig ) {7227tween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim );72287229if ( !( prop in dataShow ) ) {7230dataShow[ prop ] = tween.start;7231if ( hidden ) {7232tween.end = tween.start;7233tween.start = prop === "width" || prop === "height" ? 1 : 0;7234}7235}7236}72377238// If this is a noop like .hide().hide(), restore an overwritten display value7239} else if ( (display === "none" ? defaultDisplay( elem.nodeName ) : display) === "inline" ) {7240style.display = display;7241}7242}72437244function propFilter( props, specialEasing ) {7245var index, name, easing, value, hooks;72467247// camelCase, specialEasing and expand cssHook pass7248for ( index in props ) {7249name = jQuery.camelCase( index );7250easing = specialEasing[ name ];7251value = props[ index ];7252if ( jQuery.isArray( value ) ) {7253easing = value[ 1 ];7254value = props[ index ] = value[ 0 ];7255}72567257if ( index !== name ) {7258props[ name ] = value;7259delete props[ index ];7260}72617262hooks = jQuery.cssHooks[ name ];7263if ( hooks && "expand" in hooks ) {7264value = hooks.expand( value );7265delete props[ name ];72667267// not quite $.extend, this wont overwrite keys already present.7268// also - reusing 'index' from above because we have the correct "name"7269for ( index in value ) {7270if ( !( index in props ) ) {7271props[ index ] = value[ index ];7272specialEasing[ index ] = easing;7273}7274}7275} else {7276specialEasing[ name ] = easing;7277}7278}7279}72807281function Animation( elem, properties, options ) {7282var result,7283stopped,7284index = 0,7285length = animationPrefilters.length,7286deferred = jQuery.Deferred().always( function() {7287// don't match elem in the :animated selector7288delete tick.elem;7289}),7290tick = function() {7291if ( stopped ) {7292return false;7293}7294var currentTime = fxNow || createFxNow(),7295remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),7296// archaic crash bug won't allow us to use 1 - ( 0.5 || 0 ) (#12497)7297temp = remaining / animation.duration || 0,7298percent = 1 - temp,7299index = 0,7300length = animation.tweens.length;73017302for ( ; index < length ; index++ ) {7303animation.tweens[ index ].run( percent );7304}73057306deferred.notifyWith( elem, [ animation, percent, remaining ]);73077308if ( percent < 1 && length ) {7309return remaining;7310} else {7311deferred.resolveWith( elem, [ animation ] );7312return false;7313}7314},7315animation = deferred.promise({7316elem: elem,7317props: jQuery.extend( {}, properties ),7318opts: jQuery.extend( true, { specialEasing: {} }, options ),7319originalProperties: properties,7320originalOptions: options,7321startTime: fxNow || createFxNow(),7322duration: options.duration,7323tweens: [],7324createTween: function( prop, end ) {7325var tween = jQuery.Tween( elem, animation.opts, prop, end,7326animation.opts.specialEasing[ prop ] || animation.opts.easing );7327animation.tweens.push( tween );7328return tween;7329},7330stop: function( gotoEnd ) {7331var index = 0,7332// if we are going to the end, we want to run all the tweens7333// otherwise we skip this part7334length = gotoEnd ? animation.tweens.length : 0;7335if ( stopped ) {7336return this;7337}7338stopped = true;7339for ( ; index < length ; index++ ) {7340animation.tweens[ index ].run( 1 );7341}73427343// resolve when we played the last frame7344// otherwise, reject7345if ( gotoEnd ) {7346deferred.resolveWith( elem, [ animation, gotoEnd ] );7347} else {7348deferred.rejectWith( elem, [ animation, gotoEnd ] );7349}7350return this;7351}7352}),7353props = animation.props;73547355propFilter( props, animation.opts.specialEasing );73567357for ( ; index < length ; index++ ) {7358result = animationPrefilters[ index ].call( animation, elem, props, animation.opts );7359if ( result ) {7360return result;7361}7362}73637364jQuery.map( props, createTween, animation );73657366if ( jQuery.isFunction( animation.opts.start ) ) {7367animation.opts.start.call( elem, animation );7368}73697370jQuery.fx.timer(7371jQuery.extend( tick, {7372elem: elem,7373anim: animation,7374queue: animation.opts.queue7375})7376);73777378// attach callbacks from options7379return animation.progress( animation.opts.progress )7380.done( animation.opts.done, animation.opts.complete )7381.fail( animation.opts.fail )7382.always( animation.opts.always );7383}73847385jQuery.Animation = jQuery.extend( Animation, {7386tweener: function( props, callback ) {7387if ( jQuery.isFunction( props ) ) {7388callback = props;7389props = [ "*" ];7390} else {7391props = props.split(" ");7392}73937394var prop,7395index = 0,7396length = props.length;73977398for ( ; index < length ; index++ ) {7399prop = props[ index ];7400tweeners[ prop ] = tweeners[ prop ] || [];7401tweeners[ prop ].unshift( callback );7402}7403},74047405prefilter: function( callback, prepend ) {7406if ( prepend ) {7407animationPrefilters.unshift( callback );7408} else {7409animationPrefilters.push( callback );7410}7411}7412});74137414jQuery.speed = function( speed, easing, fn ) {7415var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {7416complete: fn || !fn && easing ||7417jQuery.isFunction( speed ) && speed,7418duration: speed,7419easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing7420};74217422opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :7423opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;74247425// normalize opt.queue - true/undefined/null -> "fx"7426if ( opt.queue == null || opt.queue === true ) {7427opt.queue = "fx";7428}74297430// Queueing7431opt.old = opt.complete;74327433opt.complete = function() {7434if ( jQuery.isFunction( opt.old ) ) {7435opt.old.call( this );7436}74377438if ( opt.queue ) {7439jQuery.dequeue( this, opt.queue );7440}7441};74427443return opt;7444};74457446jQuery.fn.extend({7447fadeTo: function( speed, to, easing, callback ) {74487449// show any hidden elements after setting opacity to 07450return this.filter( isHidden ).css( "opacity", 0 ).show()74517452// animate to the value specified7453.end().animate({ opacity: to }, speed, easing, callback );7454},7455animate: function( prop, speed, easing, callback ) {7456var empty = jQuery.isEmptyObject( prop ),7457optall = jQuery.speed( speed, easing, callback ),7458doAnimation = function() {7459// Operate on a copy of prop so per-property easing won't be lost7460var anim = Animation( this, jQuery.extend( {}, prop ), optall );74617462// Empty animations, or finishing resolves immediately7463if ( empty || jQuery._data( this, "finish" ) ) {7464anim.stop( true );7465}7466};7467doAnimation.finish = doAnimation;74687469return empty || optall.queue === false ?7470this.each( doAnimation ) :7471this.queue( optall.queue, doAnimation );7472},7473stop: function( type, clearQueue, gotoEnd ) {7474var stopQueue = function( hooks ) {7475var stop = hooks.stop;7476delete hooks.stop;7477stop( gotoEnd );7478};74797480if ( typeof type !== "string" ) {7481gotoEnd = clearQueue;7482clearQueue = type;7483type = undefined;7484}7485if ( clearQueue && type !== false ) {7486this.queue( type || "fx", [] );7487}74887489return this.each(function() {7490var dequeue = true,7491index = type != null && type + "queueHooks",7492timers = jQuery.timers,7493data = jQuery._data( this );74947495if ( index ) {7496if ( data[ index ] && data[ index ].stop ) {7497stopQueue( data[ index ] );7498}7499} else {7500for ( index in data ) {7501if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) {7502stopQueue( data[ index ] );7503}7504}7505}75067507for ( index = timers.length; index--; ) {7508if ( timers[ index ].elem === this && (type == null || timers[ index ].queue === type) ) {7509timers[ index ].anim.stop( gotoEnd );7510dequeue = false;7511timers.splice( index, 1 );7512}7513}75147515// start the next in the queue if the last step wasn't forced7516// timers currently will call their complete callbacks, which will dequeue7517// but only if they were gotoEnd7518if ( dequeue || !gotoEnd ) {7519jQuery.dequeue( this, type );7520}7521});7522},7523finish: function( type ) {7524if ( type !== false ) {7525type = type || "fx";7526}7527return this.each(function() {7528var index,7529data = jQuery._data( this ),7530queue = data[ type + "queue" ],7531hooks = data[ type + "queueHooks" ],7532timers = jQuery.timers,7533length = queue ? queue.length : 0;75347535// enable finishing flag on private data7536data.finish = true;75377538// empty the queue first7539jQuery.queue( this, type, [] );75407541if ( hooks && hooks.stop ) {7542hooks.stop.call( this, true );7543}75447545// look for any active animations, and finish them7546for ( index = timers.length; index--; ) {7547if ( timers[ index ].elem === this && timers[ index ].queue === type ) {7548timers[ index ].anim.stop( true );7549timers.splice( index, 1 );7550}7551}75527553// look for any animations in the old queue and finish them7554for ( index = 0; index < length; index++ ) {7555if ( queue[ index ] && queue[ index ].finish ) {7556queue[ index ].finish.call( this );7557}7558}75597560// turn off finishing flag7561delete data.finish;7562});7563}7564});75657566jQuery.each([ "toggle", "show", "hide" ], function( i, name ) {7567var cssFn = jQuery.fn[ name ];7568jQuery.fn[ name ] = function( speed, easing, callback ) {7569return speed == null || typeof speed === "boolean" ?7570cssFn.apply( this, arguments ) :7571this.animate( genFx( name, true ), speed, easing, callback );7572};7573});75747575// Generate shortcuts for custom animations7576jQuery.each({7577slideDown: genFx("show"),7578slideUp: genFx("hide"),7579slideToggle: genFx("toggle"),7580fadeIn: { opacity: "show" },7581fadeOut: { opacity: "hide" },7582fadeToggle: { opacity: "toggle" }7583}, function( name, props ) {7584jQuery.fn[ name ] = function( speed, easing, callback ) {7585return this.animate( props, speed, easing, callback );7586};7587});75887589jQuery.timers = [];7590jQuery.fx.tick = function() {7591var timer,7592timers = jQuery.timers,7593i = 0;75947595fxNow = jQuery.now();75967597for ( ; i < timers.length; i++ ) {7598timer = timers[ i ];7599// Checks the timer has not already been removed7600if ( !timer() && timers[ i ] === timer ) {7601timers.splice( i--, 1 );7602}7603}76047605if ( !timers.length ) {7606jQuery.fx.stop();7607}7608fxNow = undefined;7609};76107611jQuery.fx.timer = function( timer ) {7612jQuery.timers.push( timer );7613if ( timer() ) {7614jQuery.fx.start();7615} else {7616jQuery.timers.pop();7617}7618};76197620jQuery.fx.interval = 13;76217622jQuery.fx.start = function() {7623if ( !timerId ) {7624timerId = setInterval( jQuery.fx.tick, jQuery.fx.interval );7625}7626};76277628jQuery.fx.stop = function() {7629clearInterval( timerId );7630timerId = null;7631};76327633jQuery.fx.speeds = {7634slow: 600,7635fast: 200,7636// Default speed7637_default: 4007638};763976407641// Based off of the plugin by Clint Helfers, with permission.7642// http://blindsignals.com/index.php/2009/07/jquery-delay/7643jQuery.fn.delay = function( time, type ) {7644time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;7645type = type || "fx";76467647return this.queue( type, function( next, hooks ) {7648var timeout = setTimeout( next, time );7649hooks.stop = function() {7650clearTimeout( timeout );7651};7652});7653};765476557656(function() {7657// Minified: var a,b,c,d,e7658var input, div, select, a, opt;76597660// Setup7661div = document.createElement( "div" );7662div.setAttribute( "className", "t" );7663div.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";7664a = div.getElementsByTagName("a")[ 0 ];76657666// First batch of tests.7667select = document.createElement("select");7668opt = select.appendChild( document.createElement("option") );7669input = div.getElementsByTagName("input")[ 0 ];76707671a.style.cssText = "top:1px";76727673// Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7)7674support.getSetAttribute = div.className !== "t";76757676// Get the style information from getAttribute7677// (IE uses .cssText instead)7678support.style = /top/.test( a.getAttribute("style") );76797680// Make sure that URLs aren't manipulated7681// (IE normalizes it by default)7682support.hrefNormalized = a.getAttribute("href") === "/a";76837684// Check the default checkbox/radio value ("" on WebKit; "on" elsewhere)7685support.checkOn = !!input.value;76867687// Make sure that a selected-by-default option has a working selected property.7688// (WebKit defaults to false instead of true, IE too, if it's in an optgroup)7689support.optSelected = opt.selected;76907691// Tests for enctype support on a form (#6743)7692support.enctype = !!document.createElement("form").enctype;76937694// Make sure that the options inside disabled selects aren't marked as disabled7695// (WebKit marks them as disabled)7696select.disabled = true;7697support.optDisabled = !opt.disabled;76987699// Support: IE8 only7700// Check if we can trust getAttribute("value")7701input = document.createElement( "input" );7702input.setAttribute( "value", "" );7703support.input = input.getAttribute( "value" ) === "";77047705// Check if an input maintains its value after becoming a radio7706input.value = "t";7707input.setAttribute( "type", "radio" );7708support.radioValue = input.value === "t";7709})();771077117712var rreturn = /\r/g;77137714jQuery.fn.extend({7715val: function( value ) {7716var hooks, ret, isFunction,7717elem = this[0];77187719if ( !arguments.length ) {7720if ( elem ) {7721hooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ];77227723if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) {7724return ret;7725}77267727ret = elem.value;77287729return typeof ret === "string" ?7730// handle most common string cases7731ret.replace(rreturn, "") :7732// handle cases where value is null/undef or number7733ret == null ? "" : ret;7734}77357736return;7737}77387739isFunction = jQuery.isFunction( value );77407741return this.each(function( i ) {7742var val;77437744if ( this.nodeType !== 1 ) {7745return;7746}77477748if ( isFunction ) {7749val = value.call( this, i, jQuery( this ).val() );7750} else {7751val = value;7752}77537754// Treat null/undefined as ""; convert numbers to string7755if ( val == null ) {7756val = "";7757} else if ( typeof val === "number" ) {7758val += "";7759} else if ( jQuery.isArray( val ) ) {7760val = jQuery.map( val, function( value ) {7761return value == null ? "" : value + "";7762});7763}77647765hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];77667767// If set returns undefined, fall back to normal setting7768if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) {7769this.value = val;7770}7771});7772}7773});77747775jQuery.extend({7776valHooks: {7777option: {7778get: function( elem ) {7779var val = jQuery.find.attr( elem, "value" );7780return val != null ?7781val :7782// Support: IE10-11+7783// option.text throws exceptions (#14686, #14858)7784jQuery.trim( jQuery.text( elem ) );7785}7786},7787select: {7788get: function( elem ) {7789var value, option,7790options = elem.options,7791index = elem.selectedIndex,7792one = elem.type === "select-one" || index < 0,7793values = one ? null : [],7794max = one ? index + 1 : options.length,7795i = index < 0 ?7796max :7797one ? index : 0;77987799// Loop through all the selected options7800for ( ; i < max; i++ ) {7801option = options[ i ];78027803// oldIE doesn't update selected after form reset (#2551)7804if ( ( option.selected || i === index ) &&7805// Don't return options that are disabled or in a disabled optgroup7806( support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null ) &&7807( !option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" ) ) ) {78087809// Get the specific value for the option7810value = jQuery( option ).val();78117812// We don't need an array for one selects7813if ( one ) {7814return value;7815}78167817// Multi-Selects return an array7818values.push( value );7819}7820}78217822return values;7823},78247825set: function( elem, value ) {7826var optionSet, option,7827options = elem.options,7828values = jQuery.makeArray( value ),7829i = options.length;78307831while ( i-- ) {7832option = options[ i ];78337834if ( jQuery.inArray( jQuery.valHooks.option.get( option ), values ) >= 0 ) {78357836// Support: IE67837// When new option element is added to select box we need to7838// force reflow of newly added node in order to workaround delay7839// of initialization properties7840try {7841option.selected = optionSet = true;78427843} catch ( _ ) {78447845// Will be executed only in IE67846option.scrollHeight;7847}78487849} else {7850option.selected = false;7851}7852}78537854// Force browsers to behave consistently when non-matching value is set7855if ( !optionSet ) {7856elem.selectedIndex = -1;7857}78587859return options;7860}7861}7862}7863});78647865// Radios and checkboxes getter/setter7866jQuery.each([ "radio", "checkbox" ], function() {7867jQuery.valHooks[ this ] = {7868set: function( elem, value ) {7869if ( jQuery.isArray( value ) ) {7870return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 );7871}7872}7873};7874if ( !support.checkOn ) {7875jQuery.valHooks[ this ].get = function( elem ) {7876// Support: Webkit7877// "" is returned instead of "on" if a value isn't specified7878return elem.getAttribute("value") === null ? "on" : elem.value;7879};7880}7881});78827883788478857886var nodeHook, boolHook,7887attrHandle = jQuery.expr.attrHandle,7888ruseDefault = /^(?:checked|selected)$/i,7889getSetAttribute = support.getSetAttribute,7890getSetInput = support.input;78917892jQuery.fn.extend({7893attr: function( name, value ) {7894return access( this, jQuery.attr, name, value, arguments.length > 1 );7895},78967897removeAttr: function( name ) {7898return this.each(function() {7899jQuery.removeAttr( this, name );7900});7901}7902});79037904jQuery.extend({7905attr: function( elem, name, value ) {7906var hooks, ret,7907nType = elem.nodeType;79087909// don't get/set attributes on text, comment and attribute nodes7910if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {7911return;7912}79137914// Fallback to prop when attributes are not supported7915if ( typeof elem.getAttribute === strundefined ) {7916return jQuery.prop( elem, name, value );7917}79187919// All attributes are lowercase7920// Grab necessary hook if one is defined7921if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {7922name = name.toLowerCase();7923hooks = jQuery.attrHooks[ name ] ||7924( jQuery.expr.match.bool.test( name ) ? boolHook : nodeHook );7925}79267927if ( value !== undefined ) {79287929if ( value === null ) {7930jQuery.removeAttr( elem, name );79317932} else if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {7933return ret;79347935} else {7936elem.setAttribute( name, value + "" );7937return value;7938}79397940} else if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) {7941return ret;79427943} else {7944ret = jQuery.find.attr( elem, name );79457946// Non-existent attributes return null, we normalize to undefined7947return ret == null ?7948undefined :7949ret;7950}7951},79527953removeAttr: function( elem, value ) {7954var name, propName,7955i = 0,7956attrNames = value && value.match( rnotwhite );79577958if ( attrNames && elem.nodeType === 1 ) {7959while ( (name = attrNames[i++]) ) {7960propName = jQuery.propFix[ name ] || name;79617962// Boolean attributes get special treatment (#10870)7963if ( jQuery.expr.match.bool.test( name ) ) {7964// Set corresponding property to false7965if ( getSetInput && getSetAttribute || !ruseDefault.test( name ) ) {7966elem[ propName ] = false;7967// Support: IE<97968// Also clear defaultChecked/defaultSelected (if appropriate)7969} else {7970elem[ jQuery.camelCase( "default-" + name ) ] =7971elem[ propName ] = false;7972}79737974// See #9699 for explanation of this approach (setting first, then removal)7975} else {7976jQuery.attr( elem, name, "" );7977}79787979elem.removeAttribute( getSetAttribute ? name : propName );7980}7981}7982},79837984attrHooks: {7985type: {7986set: function( elem, value ) {7987if ( !support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) {7988// Setting the type on a radio button after the value resets the value in IE6-97989// Reset value to default in case type is set after value during creation7990var val = elem.value;7991elem.setAttribute( "type", value );7992if ( val ) {7993elem.value = val;7994}7995return value;7996}7997}7998}7999}8000});80018002// Hook for boolean attributes8003boolHook = {8004set: function( elem, value, name ) {8005if ( value === false ) {8006// Remove boolean attributes when set to false8007jQuery.removeAttr( elem, name );8008} else if ( getSetInput && getSetAttribute || !ruseDefault.test( name ) ) {8009// IE<8 needs the *property* name8010elem.setAttribute( !getSetAttribute && jQuery.propFix[ name ] || name, name );80118012// Use defaultChecked and defaultSelected for oldIE8013} else {8014elem[ jQuery.camelCase( "default-" + name ) ] = elem[ name ] = true;8015}80168017return name;8018}8019};80208021// Retrieve booleans specially8022jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) {80238024var getter = attrHandle[ name ] || jQuery.find.attr;80258026attrHandle[ name ] = getSetInput && getSetAttribute || !ruseDefault.test( name ) ?8027function( elem, name, isXML ) {8028var ret, handle;8029if ( !isXML ) {8030// Avoid an infinite loop by temporarily removing this function from the getter8031handle = attrHandle[ name ];8032attrHandle[ name ] = ret;8033ret = getter( elem, name, isXML ) != null ?8034name.toLowerCase() :8035null;8036attrHandle[ name ] = handle;8037}8038return ret;8039} :8040function( elem, name, isXML ) {8041if ( !isXML ) {8042return elem[ jQuery.camelCase( "default-" + name ) ] ?8043name.toLowerCase() :8044null;8045}8046};8047});80488049// fix oldIE attroperties8050if ( !getSetInput || !getSetAttribute ) {8051jQuery.attrHooks.value = {8052set: function( elem, value, name ) {8053if ( jQuery.nodeName( elem, "input" ) ) {8054// Does not return so that setAttribute is also used8055elem.defaultValue = value;8056} else {8057// Use nodeHook if defined (#1954); otherwise setAttribute is fine8058return nodeHook && nodeHook.set( elem, value, name );8059}8060}8061};8062}80638064// IE6/7 do not support getting/setting some attributes with get/setAttribute8065if ( !getSetAttribute ) {80668067// Use this for any attribute in IE6/78068// This fixes almost every IE6/7 issue8069nodeHook = {8070set: function( elem, value, name ) {8071// Set the existing or create a new attribute node8072var ret = elem.getAttributeNode( name );8073if ( !ret ) {8074elem.setAttributeNode(8075(ret = elem.ownerDocument.createAttribute( name ))8076);8077}80788079ret.value = value += "";80808081// Break association with cloned elements by also using setAttribute (#9646)8082if ( name === "value" || value === elem.getAttribute( name ) ) {8083return value;8084}8085}8086};80878088// Some attributes are constructed with empty-string values when not defined8089attrHandle.id = attrHandle.name = attrHandle.coords =8090function( elem, name, isXML ) {8091var ret;8092if ( !isXML ) {8093return (ret = elem.getAttributeNode( name )) && ret.value !== "" ?8094ret.value :8095null;8096}8097};80988099// Fixing value retrieval on a button requires this module8100jQuery.valHooks.button = {8101get: function( elem, name ) {8102var ret = elem.getAttributeNode( name );8103if ( ret && ret.specified ) {8104return ret.value;8105}8106},8107set: nodeHook.set8108};81098110// Set contenteditable to false on removals(#10429)8111// Setting to empty string throws an error as an invalid value8112jQuery.attrHooks.contenteditable = {8113set: function( elem, value, name ) {8114nodeHook.set( elem, value === "" ? false : value, name );8115}8116};81178118// Set width and height to auto instead of 0 on empty string( Bug #8150 )8119// This is for removals8120jQuery.each([ "width", "height" ], function( i, name ) {8121jQuery.attrHooks[ name ] = {8122set: function( elem, value ) {8123if ( value === "" ) {8124elem.setAttribute( name, "auto" );8125return value;8126}8127}8128};8129});8130}81318132if ( !support.style ) {8133jQuery.attrHooks.style = {8134get: function( elem ) {8135// Return undefined in the case of empty string8136// Note: IE uppercases css property names, but if we were to .toLowerCase()8137// .cssText, that would destroy case senstitivity in URL's, like in "background"8138return elem.style.cssText || undefined;8139},8140set: function( elem, value ) {8141return ( elem.style.cssText = value + "" );8142}8143};8144}81458146814781488149var rfocusable = /^(?:input|select|textarea|button|object)$/i,8150rclickable = /^(?:a|area)$/i;81518152jQuery.fn.extend({8153prop: function( name, value ) {8154return access( this, jQuery.prop, name, value, arguments.length > 1 );8155},81568157removeProp: function( name ) {8158name = jQuery.propFix[ name ] || name;8159return this.each(function() {8160// try/catch handles cases where IE balks (such as removing a property on window)8161try {8162this[ name ] = undefined;8163delete this[ name ];8164} catch( e ) {}8165});8166}8167});81688169jQuery.extend({8170propFix: {8171"for": "htmlFor",8172"class": "className"8173},81748175prop: function( elem, name, value ) {8176var ret, hooks, notxml,8177nType = elem.nodeType;81788179// don't get/set properties on text, comment and attribute nodes8180if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {8181return;8182}81838184notxml = nType !== 1 || !jQuery.isXMLDoc( elem );81858186if ( notxml ) {8187// Fix name and attach hooks8188name = jQuery.propFix[ name ] || name;8189hooks = jQuery.propHooks[ name ];8190}81918192if ( value !== undefined ) {8193return hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ?8194ret :8195( elem[ name ] = value );81968197} else {8198return hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ?8199ret :8200elem[ name ];8201}8202},82038204propHooks: {8205tabIndex: {8206get: function( elem ) {8207// elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set8208// http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/8209// Use proper attribute retrieval(#12072)8210var tabindex = jQuery.find.attr( elem, "tabindex" );82118212return tabindex ?8213parseInt( tabindex, 10 ) :8214rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?82150 :8216-1;8217}8218}8219}8220});82218222// Some attributes require a special call on IE8223// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx8224if ( !support.hrefNormalized ) {8225// href/src property should get the full normalized URL (#10299/#12915)8226jQuery.each([ "href", "src" ], function( i, name ) {8227jQuery.propHooks[ name ] = {8228get: function( elem ) {8229return elem.getAttribute( name, 4 );8230}8231};8232});8233}82348235// Support: Safari, IE9+8236// mis-reports the default selected property of an option8237// Accessing the parent's selectedIndex property fixes it8238if ( !support.optSelected ) {8239jQuery.propHooks.selected = {8240get: function( elem ) {8241var parent = elem.parentNode;82428243if ( parent ) {8244parent.selectedIndex;82458246// Make sure that it also works with optgroups, see #57018247if ( parent.parentNode ) {8248parent.parentNode.selectedIndex;8249}8250}8251return null;8252}8253};8254}82558256jQuery.each([8257"tabIndex",8258"readOnly",8259"maxLength",8260"cellSpacing",8261"cellPadding",8262"rowSpan",8263"colSpan",8264"useMap",8265"frameBorder",8266"contentEditable"8267], function() {8268jQuery.propFix[ this.toLowerCase() ] = this;8269});82708271// IE6/7 call enctype encoding8272if ( !support.enctype ) {8273jQuery.propFix.enctype = "encoding";8274}82758276827782788279var rclass = /[\t\r\n\f]/g;82808281jQuery.fn.extend({8282addClass: function( value ) {8283var classes, elem, cur, clazz, j, finalValue,8284i = 0,8285len = this.length,8286proceed = typeof value === "string" && value;82878288if ( jQuery.isFunction( value ) ) {8289return this.each(function( j ) {8290jQuery( this ).addClass( value.call( this, j, this.className ) );8291});8292}82938294if ( proceed ) {8295// The disjunction here is for better compressibility (see removeClass)8296classes = ( value || "" ).match( rnotwhite ) || [];82978298for ( ; i < len; i++ ) {8299elem = this[ i ];8300cur = elem.nodeType === 1 && ( elem.className ?8301( " " + elem.className + " " ).replace( rclass, " " ) :8302" "8303);83048305if ( cur ) {8306j = 0;8307while ( (clazz = classes[j++]) ) {8308if ( cur.indexOf( " " + clazz + " " ) < 0 ) {8309cur += clazz + " ";8310}8311}83128313// only assign if different to avoid unneeded rendering.8314finalValue = jQuery.trim( cur );8315if ( elem.className !== finalValue ) {8316elem.className = finalValue;8317}8318}8319}8320}83218322return this;8323},83248325removeClass: function( value ) {8326var classes, elem, cur, clazz, j, finalValue,8327i = 0,8328len = this.length,8329proceed = arguments.length === 0 || typeof value === "string" && value;83308331if ( jQuery.isFunction( value ) ) {8332return this.each(function( j ) {8333jQuery( this ).removeClass( value.call( this, j, this.className ) );8334});8335}8336if ( proceed ) {8337classes = ( value || "" ).match( rnotwhite ) || [];83388339for ( ; i < len; i++ ) {8340elem = this[ i ];8341// This expression is here for better compressibility (see addClass)8342cur = elem.nodeType === 1 && ( elem.className ?8343( " " + elem.className + " " ).replace( rclass, " " ) :8344""8345);83468347if ( cur ) {8348j = 0;8349while ( (clazz = classes[j++]) ) {8350// Remove *all* instances8351while ( cur.indexOf( " " + clazz + " " ) >= 0 ) {8352cur = cur.replace( " " + clazz + " ", " " );8353}8354}83558356// only assign if different to avoid unneeded rendering.8357finalValue = value ? jQuery.trim( cur ) : "";8358if ( elem.className !== finalValue ) {8359elem.className = finalValue;8360}8361}8362}8363}83648365return this;8366},83678368toggleClass: function( value, stateVal ) {8369var type = typeof value;83708371if ( typeof stateVal === "boolean" && type === "string" ) {8372return stateVal ? this.addClass( value ) : this.removeClass( value );8373}83748375if ( jQuery.isFunction( value ) ) {8376return this.each(function( i ) {8377jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal );8378});8379}83808381return this.each(function() {8382if ( type === "string" ) {8383// toggle individual class names8384var className,8385i = 0,8386self = jQuery( this ),8387classNames = value.match( rnotwhite ) || [];83888389while ( (className = classNames[ i++ ]) ) {8390// check each className given, space separated list8391if ( self.hasClass( className ) ) {8392self.removeClass( className );8393} else {8394self.addClass( className );8395}8396}83978398// Toggle whole class name8399} else if ( type === strundefined || type === "boolean" ) {8400if ( this.className ) {8401// store className if set8402jQuery._data( this, "__className__", this.className );8403}84048405// If the element has a class name or if we're passed "false",8406// then remove the whole classname (if there was one, the above saved it).8407// Otherwise bring back whatever was previously saved (if anything),8408// falling back to the empty string if nothing was stored.8409this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || "";8410}8411});8412},84138414hasClass: function( selector ) {8415var className = " " + selector + " ",8416i = 0,8417l = this.length;8418for ( ; i < l; i++ ) {8419if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) >= 0 ) {8420return true;8421}8422}84238424return false;8425}8426});84278428842984308431// Return jQuery for attributes-only inclusion843284338434jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +8435"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +8436"change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) {84378438// Handle event binding8439jQuery.fn[ name ] = function( data, fn ) {8440return arguments.length > 0 ?8441this.on( name, null, data, fn ) :8442this.trigger( name );8443};8444});84458446jQuery.fn.extend({8447hover: function( fnOver, fnOut ) {8448return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );8449},84508451bind: function( types, data, fn ) {8452return this.on( types, null, data, fn );8453},8454unbind: function( types, fn ) {8455return this.off( types, null, fn );8456},84578458delegate: function( selector, types, data, fn ) {8459return this.on( types, selector, data, fn );8460},8461undelegate: function( selector, types, fn ) {8462// ( namespace ) or ( selector, types [, fn] )8463return arguments.length === 1 ? this.off( selector, "**" ) : this.off( types, selector || "**", fn );8464}8465});846684678468var nonce = jQuery.now();84698470var rquery = (/\?/);8471847284738474var rvalidtokens = /(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;84758476jQuery.parseJSON = function( data ) {8477// Attempt to parse using the native JSON parser first8478if ( window.JSON && window.JSON.parse ) {8479// Support: Android 2.38480// Workaround failure to string-cast null input8481return window.JSON.parse( data + "" );8482}84838484var requireNonComma,8485depth = null,8486str = jQuery.trim( data + "" );84878488// Guard against invalid (and possibly dangerous) input by ensuring that nothing remains8489// after removing valid tokens8490return str && !jQuery.trim( str.replace( rvalidtokens, function( token, comma, open, close ) {84918492// Force termination if we see a misplaced comma8493if ( requireNonComma && comma ) {8494depth = 0;8495}84968497// Perform no more replacements after returning to outermost depth8498if ( depth === 0 ) {8499return token;8500}85018502// Commas must not follow "[", "{", or ","8503requireNonComma = open || comma;85048505// Determine new depth8506// array/object open ("[" or "{"): depth += true - false (increment)8507// array/object close ("]" or "}"): depth += false - true (decrement)8508// other cases ("," or primitive): depth += true - true (numeric cast)8509depth += !close - !open;85108511// Remove this token8512return "";8513}) ) ?8514( Function( "return " + str ) )() :8515jQuery.error( "Invalid JSON: " + data );8516};851785188519// Cross-browser xml parsing8520jQuery.parseXML = function( data ) {8521var xml, tmp;8522if ( !data || typeof data !== "string" ) {8523return null;8524}8525try {8526if ( window.DOMParser ) { // Standard8527tmp = new DOMParser();8528xml = tmp.parseFromString( data, "text/xml" );8529} else { // IE8530xml = new ActiveXObject( "Microsoft.XMLDOM" );8531xml.async = "false";8532xml.loadXML( data );8533}8534} catch( e ) {8535xml = undefined;8536}8537if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) {8538jQuery.error( "Invalid XML: " + data );8539}8540return xml;8541};854285438544var8545// Document location8546ajaxLocParts,8547ajaxLocation,85488549rhash = /#.*$/,8550rts = /([?&])_=[^&]*/,8551rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at EOL8552// #7653, #8125, #8152: local protocol detection8553rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,8554rnoContent = /^(?:GET|HEAD)$/,8555rprotocol = /^\/\//,8556rurl = /^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,85578558/* Prefilters8559* 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)8560* 2) These are called:8561* - BEFORE asking for a transport8562* - AFTER param serialization (s.data is a string if s.processData is true)8563* 3) key is the dataType8564* 4) the catchall symbol "*" can be used8565* 5) execution will start with transport dataType and THEN continue down to "*" if needed8566*/8567prefilters = {},85688569/* Transports bindings8570* 1) key is the dataType8571* 2) the catchall symbol "*" can be used8572* 3) selection will start with transport dataType and THEN go to "*" if needed8573*/8574transports = {},85758576// Avoid comment-prolog char sequence (#10098); must appease lint and evade compression8577allTypes = "*/".concat("*");85788579// #8138, IE may throw an exception when accessing8580// a field from window.location if document.domain has been set8581try {8582ajaxLocation = location.href;8583} catch( e ) {8584// Use the href attribute of an A element8585// since IE will modify it given document.location8586ajaxLocation = document.createElement( "a" );8587ajaxLocation.href = "";8588ajaxLocation = ajaxLocation.href;8589}85908591// Segment location into parts8592ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || [];85938594// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport8595function addToPrefiltersOrTransports( structure ) {85968597// dataTypeExpression is optional and defaults to "*"8598return function( dataTypeExpression, func ) {85998600if ( typeof dataTypeExpression !== "string" ) {8601func = dataTypeExpression;8602dataTypeExpression = "*";8603}86048605var dataType,8606i = 0,8607dataTypes = dataTypeExpression.toLowerCase().match( rnotwhite ) || [];86088609if ( jQuery.isFunction( func ) ) {8610// For each dataType in the dataTypeExpression8611while ( (dataType = dataTypes[i++]) ) {8612// Prepend if requested8613if ( dataType.charAt( 0 ) === "+" ) {8614dataType = dataType.slice( 1 ) || "*";8615(structure[ dataType ] = structure[ dataType ] || []).unshift( func );86168617// Otherwise append8618} else {8619(structure[ dataType ] = structure[ dataType ] || []).push( func );8620}8621}8622}8623};8624}86258626// Base inspection function for prefilters and transports8627function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {86288629var inspected = {},8630seekingTransport = ( structure === transports );86318632function inspect( dataType ) {8633var selected;8634inspected[ dataType ] = true;8635jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {8636var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );8637if ( typeof dataTypeOrTransport === "string" && !seekingTransport && !inspected[ dataTypeOrTransport ] ) {8638options.dataTypes.unshift( dataTypeOrTransport );8639inspect( dataTypeOrTransport );8640return false;8641} else if ( seekingTransport ) {8642return !( selected = dataTypeOrTransport );8643}8644});8645return selected;8646}86478648return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" );8649}86508651// A special extend for ajax options8652// that takes "flat" options (not to be deep extended)8653// Fixes #98878654function ajaxExtend( target, src ) {8655var deep, key,8656flatOptions = jQuery.ajaxSettings.flatOptions || {};86578658for ( key in src ) {8659if ( src[ key ] !== undefined ) {8660( flatOptions[ key ] ? target : ( deep || (deep = {}) ) )[ key ] = src[ key ];8661}8662}8663if ( deep ) {8664jQuery.extend( true, target, deep );8665}86668667return target;8668}86698670/* Handles responses to an ajax request:8671* - finds the right dataType (mediates between content-type and expected dataType)8672* - returns the corresponding response8673*/8674function ajaxHandleResponses( s, jqXHR, responses ) {8675var firstDataType, ct, finalDataType, type,8676contents = s.contents,8677dataTypes = s.dataTypes;86788679// Remove auto dataType and get content-type in the process8680while ( dataTypes[ 0 ] === "*" ) {8681dataTypes.shift();8682if ( ct === undefined ) {8683ct = s.mimeType || jqXHR.getResponseHeader("Content-Type");8684}8685}86868687// Check if we're dealing with a known content-type8688if ( ct ) {8689for ( type in contents ) {8690if ( contents[ type ] && contents[ type ].test( ct ) ) {8691dataTypes.unshift( type );8692break;8693}8694}8695}86968697// Check to see if we have a response for the expected dataType8698if ( dataTypes[ 0 ] in responses ) {8699finalDataType = dataTypes[ 0 ];8700} else {8701// Try convertible dataTypes8702for ( type in responses ) {8703if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[0] ] ) {8704finalDataType = type;8705break;8706}8707if ( !firstDataType ) {8708firstDataType = type;8709}8710}8711// Or just use first one8712finalDataType = finalDataType || firstDataType;8713}87148715// If we found a dataType8716// We add the dataType to the list if needed8717// and return the corresponding response8718if ( finalDataType ) {8719if ( finalDataType !== dataTypes[ 0 ] ) {8720dataTypes.unshift( finalDataType );8721}8722return responses[ finalDataType ];8723}8724}87258726/* Chain conversions given the request and the original response8727* Also sets the responseXXX fields on the jqXHR instance8728*/8729function ajaxConvert( s, response, jqXHR, isSuccess ) {8730var conv2, current, conv, tmp, prev,8731converters = {},8732// Work with a copy of dataTypes in case we need to modify it for conversion8733dataTypes = s.dataTypes.slice();87348735// Create converters map with lowercased keys8736if ( dataTypes[ 1 ] ) {8737for ( conv in s.converters ) {8738converters[ conv.toLowerCase() ] = s.converters[ conv ];8739}8740}87418742current = dataTypes.shift();87438744// Convert to each sequential dataType8745while ( current ) {87468747if ( s.responseFields[ current ] ) {8748jqXHR[ s.responseFields[ current ] ] = response;8749}87508751// Apply the dataFilter if provided8752if ( !prev && isSuccess && s.dataFilter ) {8753response = s.dataFilter( response, s.dataType );8754}87558756prev = current;8757current = dataTypes.shift();87588759if ( current ) {87608761// There's only work to do if current dataType is non-auto8762if ( current === "*" ) {87638764current = prev;87658766// Convert response if prev dataType is non-auto and differs from current8767} else if ( prev !== "*" && prev !== current ) {87688769// Seek a direct converter8770conv = converters[ prev + " " + current ] || converters[ "* " + current ];87718772// If none found, seek a pair8773if ( !conv ) {8774for ( conv2 in converters ) {87758776// If conv2 outputs current8777tmp = conv2.split( " " );8778if ( tmp[ 1 ] === current ) {87798780// If prev can be converted to accepted input8781conv = converters[ prev + " " + tmp[ 0 ] ] ||8782converters[ "* " + tmp[ 0 ] ];8783if ( conv ) {8784// Condense equivalence converters8785if ( conv === true ) {8786conv = converters[ conv2 ];87878788// Otherwise, insert the intermediate dataType8789} else if ( converters[ conv2 ] !== true ) {8790current = tmp[ 0 ];8791dataTypes.unshift( tmp[ 1 ] );8792}8793break;8794}8795}8796}8797}87988799// Apply converter (if not an equivalence)8800if ( conv !== true ) {88018802// Unless errors are allowed to bubble, catch and return them8803if ( conv && s[ "throws" ] ) {8804response = conv( response );8805} else {8806try {8807response = conv( response );8808} catch ( e ) {8809return { state: "parsererror", error: conv ? e : "No conversion from " + prev + " to " + current };8810}8811}8812}8813}8814}8815}88168817return { state: "success", data: response };8818}88198820jQuery.extend({88218822// Counter for holding the number of active queries8823active: 0,88248825// Last-Modified header cache for next request8826lastModified: {},8827etag: {},88288829ajaxSettings: {8830url: ajaxLocation,8831type: "GET",8832isLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ),8833global: true,8834processData: true,8835async: true,8836contentType: "application/x-www-form-urlencoded; charset=UTF-8",8837/*8838timeout: 0,8839data: null,8840dataType: null,8841username: null,8842password: null,8843cache: null,8844throws: false,8845traditional: false,8846headers: {},8847*/88488849accepts: {8850"*": allTypes,8851text: "text/plain",8852html: "text/html",8853xml: "application/xml, text/xml",8854json: "application/json, text/javascript"8855},88568857contents: {8858xml: /xml/,8859html: /html/,8860json: /json/8861},88628863responseFields: {8864xml: "responseXML",8865text: "responseText",8866json: "responseJSON"8867},88688869// Data converters8870// Keys separate source (or catchall "*") and destination types with a single space8871converters: {88728873// Convert anything to text8874"* text": String,88758876// Text to html (true = no transformation)8877"text html": true,88788879// Evaluate text as a json expression8880"text json": jQuery.parseJSON,88818882// Parse text as xml8883"text xml": jQuery.parseXML8884},88858886// For options that shouldn't be deep extended:8887// you can add your own custom options here if8888// and when you create one that shouldn't be8889// deep extended (see ajaxExtend)8890flatOptions: {8891url: true,8892context: true8893}8894},88958896// Creates a full fledged settings object into target8897// with both ajaxSettings and settings fields.8898// If target is omitted, writes into ajaxSettings.8899ajaxSetup: function( target, settings ) {8900return settings ?89018902// Building a settings object8903ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :89048905// Extending ajaxSettings8906ajaxExtend( jQuery.ajaxSettings, target );8907},89088909ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),8910ajaxTransport: addToPrefiltersOrTransports( transports ),89118912// Main method8913ajax: function( url, options ) {89148915// If url is an object, simulate pre-1.5 signature8916if ( typeof url === "object" ) {8917options = url;8918url = undefined;8919}89208921// Force options to be an object8922options = options || {};89238924var // Cross-domain detection vars8925parts,8926// Loop variable8927i,8928// URL without anti-cache param8929cacheURL,8930// Response headers as string8931responseHeadersString,8932// timeout handle8933timeoutTimer,89348935// To know if global events are to be dispatched8936fireGlobals,89378938transport,8939// Response headers8940responseHeaders,8941// Create the final options object8942s = jQuery.ajaxSetup( {}, options ),8943// Callbacks context8944callbackContext = s.context || s,8945// Context for global events is callbackContext if it is a DOM node or jQuery collection8946globalEventContext = s.context && ( callbackContext.nodeType || callbackContext.jquery ) ?8947jQuery( callbackContext ) :8948jQuery.event,8949// Deferreds8950deferred = jQuery.Deferred(),8951completeDeferred = jQuery.Callbacks("once memory"),8952// Status-dependent callbacks8953statusCode = s.statusCode || {},8954// Headers (they are sent all at once)8955requestHeaders = {},8956requestHeadersNames = {},8957// The jqXHR state8958state = 0,8959// Default abort message8960strAbort = "canceled",8961// Fake xhr8962jqXHR = {8963readyState: 0,89648965// Builds headers hashtable if needed8966getResponseHeader: function( key ) {8967var match;8968if ( state === 2 ) {8969if ( !responseHeaders ) {8970responseHeaders = {};8971while ( (match = rheaders.exec( responseHeadersString )) ) {8972responseHeaders[ match[1].toLowerCase() ] = match[ 2 ];8973}8974}8975match = responseHeaders[ key.toLowerCase() ];8976}8977return match == null ? null : match;8978},89798980// Raw string8981getAllResponseHeaders: function() {8982return state === 2 ? responseHeadersString : null;8983},89848985// Caches the header8986setRequestHeader: function( name, value ) {8987var lname = name.toLowerCase();8988if ( !state ) {8989name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;8990requestHeaders[ name ] = value;8991}8992return this;8993},89948995// Overrides response content-type header8996overrideMimeType: function( type ) {8997if ( !state ) {8998s.mimeType = type;8999}9000return this;9001},90029003// Status-dependent callbacks9004statusCode: function( map ) {9005var code;9006if ( map ) {9007if ( state < 2 ) {9008for ( code in map ) {9009// Lazy-add the new callback in a way that preserves old ones9010statusCode[ code ] = [ statusCode[ code ], map[ code ] ];9011}9012} else {9013// Execute the appropriate callbacks9014jqXHR.always( map[ jqXHR.status ] );9015}9016}9017return this;9018},90199020// Cancel the request9021abort: function( statusText ) {9022var finalText = statusText || strAbort;9023if ( transport ) {9024transport.abort( finalText );9025}9026done( 0, finalText );9027return this;9028}9029};90309031// Attach deferreds9032deferred.promise( jqXHR ).complete = completeDeferred.add;9033jqXHR.success = jqXHR.done;9034jqXHR.error = jqXHR.fail;90359036// Remove hash character (#7531: and string promotion)9037// Add protocol if not provided (#5866: IE7 issue with protocol-less urls)9038// Handle falsy url in the settings object (#10093: consistency with old signature)9039// We also use the url parameter if available9040s.url = ( ( url || s.url || ajaxLocation ) + "" ).replace( rhash, "" ).replace( rprotocol, ajaxLocParts[ 1 ] + "//" );90419042// Alias method option to type as per ticket #120049043s.type = options.method || options.type || s.method || s.type;90449045// Extract dataTypes list9046s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().match( rnotwhite ) || [ "" ];90479048// A cross-domain request is in order when we have a protocol:host:port mismatch9049if ( s.crossDomain == null ) {9050parts = rurl.exec( s.url.toLowerCase() );9051s.crossDomain = !!( parts &&9052( parts[ 1 ] !== ajaxLocParts[ 1 ] || parts[ 2 ] !== ajaxLocParts[ 2 ] ||9053( parts[ 3 ] || ( parts[ 1 ] === "http:" ? "80" : "443" ) ) !==9054( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? "80" : "443" ) ) )9055);9056}90579058// Convert data if not already a string9059if ( s.data && s.processData && typeof s.data !== "string" ) {9060s.data = jQuery.param( s.data, s.traditional );9061}90629063// Apply prefilters9064inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );90659066// If request was aborted inside a prefilter, stop there9067if ( state === 2 ) {9068return jqXHR;9069}90709071// We can fire global events as of now if asked to9072fireGlobals = s.global;90739074// Watch for a new set of requests9075if ( fireGlobals && jQuery.active++ === 0 ) {9076jQuery.event.trigger("ajaxStart");9077}90789079// Uppercase the type9080s.type = s.type.toUpperCase();90819082// Determine if request has content9083s.hasContent = !rnoContent.test( s.type );90849085// Save the URL in case we're toying with the If-Modified-Since9086// and/or If-None-Match header later on9087cacheURL = s.url;90889089// More options handling for requests with no content9090if ( !s.hasContent ) {90919092// If data is available, append data to url9093if ( s.data ) {9094cacheURL = ( s.url += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data );9095// #9682: remove data so that it's not used in an eventual retry9096delete s.data;9097}90989099// Add anti-cache in url if needed9100if ( s.cache === false ) {9101s.url = rts.test( cacheURL ) ?91029103// If there is already a '_' parameter, set its value9104cacheURL.replace( rts, "$1_=" + nonce++ ) :91059106// Otherwise add one to the end9107cacheURL + ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + nonce++;9108}9109}91109111// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.9112if ( s.ifModified ) {9113if ( jQuery.lastModified[ cacheURL ] ) {9114jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] );9115}9116if ( jQuery.etag[ cacheURL ] ) {9117jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] );9118}9119}91209121// Set the correct header, if data is being sent9122if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {9123jqXHR.setRequestHeader( "Content-Type", s.contentType );9124}91259126// Set the Accepts header for the server, depending on the dataType9127jqXHR.setRequestHeader(9128"Accept",9129s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ?9130s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :9131s.accepts[ "*" ]9132);91339134// Check for headers option9135for ( i in s.headers ) {9136jqXHR.setRequestHeader( i, s.headers[ i ] );9137}91389139// Allow custom headers/mimetypes and early abort9140if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {9141// Abort if not done already and return9142return jqXHR.abort();9143}91449145// aborting is no longer a cancellation9146strAbort = "abort";91479148// Install callbacks on deferreds9149for ( i in { success: 1, error: 1, complete: 1 } ) {9150jqXHR[ i ]( s[ i ] );9151}91529153// Get transport9154transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );91559156// If no transport, we auto-abort9157if ( !transport ) {9158done( -1, "No Transport" );9159} else {9160jqXHR.readyState = 1;91619162// Send global event9163if ( fireGlobals ) {9164globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );9165}9166// Timeout9167if ( s.async && s.timeout > 0 ) {9168timeoutTimer = setTimeout(function() {9169jqXHR.abort("timeout");9170}, s.timeout );9171}91729173try {9174state = 1;9175transport.send( requestHeaders, done );9176} catch ( e ) {9177// Propagate exception as error if not done9178if ( state < 2 ) {9179done( -1, e );9180// Simply rethrow otherwise9181} else {9182throw e;9183}9184}9185}91869187// Callback for when everything is done9188function done( status, nativeStatusText, responses, headers ) {9189var isSuccess, success, error, response, modified,9190statusText = nativeStatusText;91919192// Called once9193if ( state === 2 ) {9194return;9195}91969197// State is "done" now9198state = 2;91999200// Clear timeout if it exists9201if ( timeoutTimer ) {9202clearTimeout( timeoutTimer );9203}92049205// Dereference transport for early garbage collection9206// (no matter how long the jqXHR object will be used)9207transport = undefined;92089209// Cache response headers9210responseHeadersString = headers || "";92119212// Set readyState9213jqXHR.readyState = status > 0 ? 4 : 0;92149215// Determine if successful9216isSuccess = status >= 200 && status < 300 || status === 304;92179218// Get response data9219if ( responses ) {9220response = ajaxHandleResponses( s, jqXHR, responses );9221}92229223// Convert no matter what (that way responseXXX fields are always set)9224response = ajaxConvert( s, response, jqXHR, isSuccess );92259226// If successful, handle type chaining9227if ( isSuccess ) {92289229// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.9230if ( s.ifModified ) {9231modified = jqXHR.getResponseHeader("Last-Modified");9232if ( modified ) {9233jQuery.lastModified[ cacheURL ] = modified;9234}9235modified = jqXHR.getResponseHeader("etag");9236if ( modified ) {9237jQuery.etag[ cacheURL ] = modified;9238}9239}92409241// if no content9242if ( status === 204 || s.type === "HEAD" ) {9243statusText = "nocontent";92449245// if not modified9246} else if ( status === 304 ) {9247statusText = "notmodified";92489249// If we have data, let's convert it9250} else {9251statusText = response.state;9252success = response.data;9253error = response.error;9254isSuccess = !error;9255}9256} else {9257// We extract error from statusText9258// then normalize statusText and status for non-aborts9259error = statusText;9260if ( status || !statusText ) {9261statusText = "error";9262if ( status < 0 ) {9263status = 0;9264}9265}9266}92679268// Set data for the fake xhr object9269jqXHR.status = status;9270jqXHR.statusText = ( nativeStatusText || statusText ) + "";92719272// Success/Error9273if ( isSuccess ) {9274deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );9275} else {9276deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );9277}92789279// Status-dependent callbacks9280jqXHR.statusCode( statusCode );9281statusCode = undefined;92829283if ( fireGlobals ) {9284globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError",9285[ jqXHR, s, isSuccess ? success : error ] );9286}92879288// Complete9289completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );92909291if ( fireGlobals ) {9292globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );9293// Handle the global AJAX counter9294if ( !( --jQuery.active ) ) {9295jQuery.event.trigger("ajaxStop");9296}9297}9298}92999300return jqXHR;9301},93029303getJSON: function( url, data, callback ) {9304return jQuery.get( url, data, callback, "json" );9305},93069307getScript: function( url, callback ) {9308return jQuery.get( url, undefined, callback, "script" );9309}9310});93119312jQuery.each( [ "get", "post" ], function( i, method ) {9313jQuery[ method ] = function( url, data, callback, type ) {9314// shift arguments if data argument was omitted9315if ( jQuery.isFunction( data ) ) {9316type = type || callback;9317callback = data;9318data = undefined;9319}93209321return jQuery.ajax({9322url: url,9323type: method,9324dataType: type,9325data: data,9326success: callback9327});9328};9329});93309331// Attach a bunch of functions for handling common AJAX events9332jQuery.each( [ "ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend" ], function( i, type ) {9333jQuery.fn[ type ] = function( fn ) {9334return this.on( type, fn );9335};9336});933793389339jQuery._evalUrl = function( url ) {9340return jQuery.ajax({9341url: url,9342type: "GET",9343dataType: "script",9344async: false,9345global: false,9346"throws": true9347});9348};934993509351jQuery.fn.extend({9352wrapAll: function( html ) {9353if ( jQuery.isFunction( html ) ) {9354return this.each(function(i) {9355jQuery(this).wrapAll( html.call(this, i) );9356});9357}93589359if ( this[0] ) {9360// The elements to wrap the target around9361var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true);93629363if ( this[0].parentNode ) {9364wrap.insertBefore( this[0] );9365}93669367wrap.map(function() {9368var elem = this;93699370while ( elem.firstChild && elem.firstChild.nodeType === 1 ) {9371elem = elem.firstChild;9372}93739374return elem;9375}).append( this );9376}93779378return this;9379},93809381wrapInner: function( html ) {9382if ( jQuery.isFunction( html ) ) {9383return this.each(function(i) {9384jQuery(this).wrapInner( html.call(this, i) );9385});9386}93879388return this.each(function() {9389var self = jQuery( this ),9390contents = self.contents();93919392if ( contents.length ) {9393contents.wrapAll( html );93949395} else {9396self.append( html );9397}9398});9399},94009401wrap: function( html ) {9402var isFunction = jQuery.isFunction( html );94039404return this.each(function(i) {9405jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html );9406});9407},94089409unwrap: function() {9410return this.parent().each(function() {9411if ( !jQuery.nodeName( this, "body" ) ) {9412jQuery( this ).replaceWith( this.childNodes );9413}9414}).end();9415}9416});941794189419jQuery.expr.filters.hidden = function( elem ) {9420// Support: Opera <= 12.129421// Opera reports offsetWidths and offsetHeights less than zero on some elements9422return elem.offsetWidth <= 0 && elem.offsetHeight <= 0 ||9423(!support.reliableHiddenOffsets() &&9424((elem.style && elem.style.display) || jQuery.css( elem, "display" )) === "none");9425};94269427jQuery.expr.filters.visible = function( elem ) {9428return !jQuery.expr.filters.hidden( elem );9429};94309431943294339434var r20 = /%20/g,9435rbracket = /\[\]$/,9436rCRLF = /\r?\n/g,9437rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,9438rsubmittable = /^(?:input|select|textarea|keygen)/i;94399440function buildParams( prefix, obj, traditional, add ) {9441var name;94429443if ( jQuery.isArray( obj ) ) {9444// Serialize array item.9445jQuery.each( obj, function( i, v ) {9446if ( traditional || rbracket.test( prefix ) ) {9447// Treat each array item as a scalar.9448add( prefix, v );94499450} else {9451// Item is non-scalar (array or object), encode its numeric index.9452buildParams( prefix + "[" + ( typeof v === "object" ? i : "" ) + "]", v, traditional, add );9453}9454});94559456} else if ( !traditional && jQuery.type( obj ) === "object" ) {9457// Serialize object item.9458for ( name in obj ) {9459buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );9460}94619462} else {9463// Serialize scalar item.9464add( prefix, obj );9465}9466}94679468// Serialize an array of form elements or a set of9469// key/values into a query string9470jQuery.param = function( a, traditional ) {9471var prefix,9472s = [],9473add = function( key, value ) {9474// If value is a function, invoke it and return its value9475value = jQuery.isFunction( value ) ? value() : ( value == null ? "" : value );9476s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );9477};94789479// Set traditional to true for jQuery <= 1.3.2 behavior.9480if ( traditional === undefined ) {9481traditional = jQuery.ajaxSettings && jQuery.ajaxSettings.traditional;9482}94839484// If an array was passed in, assume that it is an array of form elements.9485if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {9486// Serialize the form elements9487jQuery.each( a, function() {9488add( this.name, this.value );9489});94909491} else {9492// If traditional, encode the "old" way (the way 1.3.2 or older9493// did it), otherwise encode params recursively.9494for ( prefix in a ) {9495buildParams( prefix, a[ prefix ], traditional, add );9496}9497}94989499// Return the resulting serialization9500return s.join( "&" ).replace( r20, "+" );9501};95029503jQuery.fn.extend({9504serialize: function() {9505return jQuery.param( this.serializeArray() );9506},9507serializeArray: function() {9508return this.map(function() {9509// Can add propHook for "elements" to filter or add form elements9510var elements = jQuery.prop( this, "elements" );9511return elements ? jQuery.makeArray( elements ) : this;9512})9513.filter(function() {9514var type = this.type;9515// Use .is(":disabled") so that fieldset[disabled] works9516return this.name && !jQuery( this ).is( ":disabled" ) &&9517rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&9518( this.checked || !rcheckableType.test( type ) );9519})9520.map(function( i, elem ) {9521var val = jQuery( this ).val();95229523return val == null ?9524null :9525jQuery.isArray( val ) ?9526jQuery.map( val, function( val ) {9527return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };9528}) :9529{ name: elem.name, value: val.replace( rCRLF, "\r\n" ) };9530}).get();9531}9532});953395349535// Create the request object9536// (This is still attached to ajaxSettings for backward compatibility)9537jQuery.ajaxSettings.xhr = window.ActiveXObject !== undefined ?9538// Support: IE6+9539function() {95409541// XHR cannot access local files, always use ActiveX for that case9542return !this.isLocal &&95439544// Support: IE7-89545// oldIE XHR does not support non-RFC2616 methods (#13240)9546// See http://msdn.microsoft.com/en-us/library/ie/ms536648(v=vs.85).aspx9547// and http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec99548// Although this check for six methods instead of eight9549// since IE also does not support "trace" and "connect"9550/^(get|post|head|put|delete|options)$/i.test( this.type ) &&95519552createStandardXHR() || createActiveXHR();9553} :9554// For all other browsers, use the standard XMLHttpRequest object9555createStandardXHR;95569557var xhrId = 0,9558xhrCallbacks = {},9559xhrSupported = jQuery.ajaxSettings.xhr();95609561// Support: IE<109562// Open requests must be manually aborted on unload (#5280)9563if ( window.ActiveXObject ) {9564jQuery( window ).on( "unload", function() {9565for ( var key in xhrCallbacks ) {9566xhrCallbacks[ key ]( undefined, true );9567}9568});9569}95709571// Determine support properties9572support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported );9573xhrSupported = support.ajax = !!xhrSupported;95749575// Create transport if the browser can provide an xhr9576if ( xhrSupported ) {95779578jQuery.ajaxTransport(function( options ) {9579// Cross domain only allowed if supported through XMLHttpRequest9580if ( !options.crossDomain || support.cors ) {95819582var callback;95839584return {9585send: function( headers, complete ) {9586var i,9587xhr = options.xhr(),9588id = ++xhrId;95899590// Open the socket9591xhr.open( options.type, options.url, options.async, options.username, options.password );95929593// Apply custom fields if provided9594if ( options.xhrFields ) {9595for ( i in options.xhrFields ) {9596xhr[ i ] = options.xhrFields[ i ];9597}9598}95999600// Override mime type if needed9601if ( options.mimeType && xhr.overrideMimeType ) {9602xhr.overrideMimeType( options.mimeType );9603}96049605// X-Requested-With header9606// For cross-domain requests, seeing as conditions for a preflight are9607// akin to a jigsaw puzzle, we simply never set it to be sure.9608// (it can always be set on a per-request basis or even using ajaxSetup)9609// For same-domain requests, won't change header if already provided.9610if ( !options.crossDomain && !headers["X-Requested-With"] ) {9611headers["X-Requested-With"] = "XMLHttpRequest";9612}96139614// Set headers9615for ( i in headers ) {9616// Support: IE<99617// IE's ActiveXObject throws a 'Type Mismatch' exception when setting9618// request header to a null-value.9619//9620// To keep consistent with other XHR implementations, cast the value9621// to string and ignore `undefined`.9622if ( headers[ i ] !== undefined ) {9623xhr.setRequestHeader( i, headers[ i ] + "" );9624}9625}96269627// Do send the request9628// This may raise an exception which is actually9629// handled in jQuery.ajax (so no try/catch here)9630xhr.send( ( options.hasContent && options.data ) || null );96319632// Listener9633callback = function( _, isAbort ) {9634var status, statusText, responses;96359636// Was never called and is aborted or complete9637if ( callback && ( isAbort || xhr.readyState === 4 ) ) {9638// Clean up9639delete xhrCallbacks[ id ];9640callback = undefined;9641xhr.onreadystatechange = jQuery.noop;96429643// Abort manually if needed9644if ( isAbort ) {9645if ( xhr.readyState !== 4 ) {9646xhr.abort();9647}9648} else {9649responses = {};9650status = xhr.status;96519652// Support: IE<109653// Accessing binary-data responseText throws an exception9654// (#11426)9655if ( typeof xhr.responseText === "string" ) {9656responses.text = xhr.responseText;9657}96589659// Firefox throws an exception when accessing9660// statusText for faulty cross-domain requests9661try {9662statusText = xhr.statusText;9663} catch( e ) {9664// We normalize with Webkit giving an empty statusText9665statusText = "";9666}96679668// Filter status for non standard behaviors96699670// If the request is local and we have data: assume a success9671// (success with no data won't get notified, that's the best we9672// can do given current implementations)9673if ( !status && options.isLocal && !options.crossDomain ) {9674status = responses.text ? 200 : 404;9675// IE - #1450: sometimes returns 1223 when it should be 2049676} else if ( status === 1223 ) {9677status = 204;9678}9679}9680}96819682// Call complete if needed9683if ( responses ) {9684complete( status, statusText, responses, xhr.getAllResponseHeaders() );9685}9686};96879688if ( !options.async ) {9689// if we're in sync mode we fire the callback9690callback();9691} else if ( xhr.readyState === 4 ) {9692// (IE6 & IE7) if it's in cache and has been9693// retrieved directly we need to fire the callback9694setTimeout( callback );9695} else {9696// Add to the list of active xhr callbacks9697xhr.onreadystatechange = xhrCallbacks[ id ] = callback;9698}9699},97009701abort: function() {9702if ( callback ) {9703callback( undefined, true );9704}9705}9706};9707}9708});9709}97109711// Functions to create xhrs9712function createStandardXHR() {9713try {9714return new window.XMLHttpRequest();9715} catch( e ) {}9716}97179718function createActiveXHR() {9719try {9720return new window.ActiveXObject( "Microsoft.XMLHTTP" );9721} catch( e ) {}9722}97239724972597269727// Install script dataType9728jQuery.ajaxSetup({9729accepts: {9730script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"9731},9732contents: {9733script: /(?:java|ecma)script/9734},9735converters: {9736"text script": function( text ) {9737jQuery.globalEval( text );9738return text;9739}9740}9741});97429743// Handle cache's special case and global9744jQuery.ajaxPrefilter( "script", function( s ) {9745if ( s.cache === undefined ) {9746s.cache = false;9747}9748if ( s.crossDomain ) {9749s.type = "GET";9750s.global = false;9751}9752});97539754// Bind script tag hack transport9755jQuery.ajaxTransport( "script", function(s) {97569757// This transport only deals with cross domain requests9758if ( s.crossDomain ) {97599760var script,9761head = document.head || jQuery("head")[0] || document.documentElement;97629763return {97649765send: function( _, callback ) {97669767script = document.createElement("script");97689769script.async = true;97709771if ( s.scriptCharset ) {9772script.charset = s.scriptCharset;9773}97749775script.src = s.url;97769777// Attach handlers for all browsers9778script.onload = script.onreadystatechange = function( _, isAbort ) {97799780if ( isAbort || !script.readyState || /loaded|complete/.test( script.readyState ) ) {97819782// Handle memory leak in IE9783script.onload = script.onreadystatechange = null;97849785// Remove the script9786if ( script.parentNode ) {9787script.parentNode.removeChild( script );9788}97899790// Dereference the script9791script = null;97929793// Callback if not abort9794if ( !isAbort ) {9795callback( 200, "success" );9796}9797}9798};97999800// Circumvent IE6 bugs with base elements (#2709 and #4378) by prepending9801// Use native DOM manipulation to avoid our domManip AJAX trickery9802head.insertBefore( script, head.firstChild );9803},98049805abort: function() {9806if ( script ) {9807script.onload( undefined, true );9808}9809}9810};9811}9812});98139814981598169817var oldCallbacks = [],9818rjsonp = /(=)\?(?=&|$)|\?\?/;98199820// Default jsonp settings9821jQuery.ajaxSetup({9822jsonp: "callback",9823jsonpCallback: function() {9824var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( nonce++ ) );9825this[ callback ] = true;9826return callback;9827}9828});98299830// Detect, normalize options and install callbacks for jsonp requests9831jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {98329833var callbackName, overwritten, responseContainer,9834jsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ?9835"url" :9836typeof s.data === "string" && !( s.contentType || "" ).indexOf("application/x-www-form-urlencoded") && rjsonp.test( s.data ) && "data"9837);98389839// Handle iff the expected data type is "jsonp" or we have a parameter to set9840if ( jsonProp || s.dataTypes[ 0 ] === "jsonp" ) {98419842// Get callback name, remembering preexisting value associated with it9843callbackName = s.jsonpCallback = jQuery.isFunction( s.jsonpCallback ) ?9844s.jsonpCallback() :9845s.jsonpCallback;98469847// Insert callback into url or form data9848if ( jsonProp ) {9849s[ jsonProp ] = s[ jsonProp ].replace( rjsonp, "$1" + callbackName );9850} else if ( s.jsonp !== false ) {9851s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName;9852}98539854// Use data converter to retrieve json after script execution9855s.converters["script json"] = function() {9856if ( !responseContainer ) {9857jQuery.error( callbackName + " was not called" );9858}9859return responseContainer[ 0 ];9860};98619862// force json dataType9863s.dataTypes[ 0 ] = "json";98649865// Install callback9866overwritten = window[ callbackName ];9867window[ callbackName ] = function() {9868responseContainer = arguments;9869};98709871// Clean-up function (fires after converters)9872jqXHR.always(function() {9873// Restore preexisting value9874window[ callbackName ] = overwritten;98759876// Save back as free9877if ( s[ callbackName ] ) {9878// make sure that re-using the options doesn't screw things around9879s.jsonpCallback = originalSettings.jsonpCallback;98809881// save the callback name for future use9882oldCallbacks.push( callbackName );9883}98849885// Call if it was a function and we have a response9886if ( responseContainer && jQuery.isFunction( overwritten ) ) {9887overwritten( responseContainer[ 0 ] );9888}98899890responseContainer = overwritten = undefined;9891});98929893// Delegate to script9894return "script";9895}9896});98979898989999009901// data: string of html9902// context (optional): If specified, the fragment will be created in this context, defaults to document9903// keepScripts (optional): If true, will include scripts passed in the html string9904jQuery.parseHTML = function( data, context, keepScripts ) {9905if ( !data || typeof data !== "string" ) {9906return null;9907}9908if ( typeof context === "boolean" ) {9909keepScripts = context;9910context = false;9911}9912context = context || document;99139914var parsed = rsingleTag.exec( data ),9915scripts = !keepScripts && [];99169917// Single tag9918if ( parsed ) {9919return [ context.createElement( parsed[1] ) ];9920}99219922parsed = jQuery.buildFragment( [ data ], context, scripts );99239924if ( scripts && scripts.length ) {9925jQuery( scripts ).remove();9926}99279928return jQuery.merge( [], parsed.childNodes );9929};993099319932// Keep a copy of the old load method9933var _load = jQuery.fn.load;99349935/**9936* Load a url into a page9937*/9938jQuery.fn.load = function( url, params, callback ) {9939if ( typeof url !== "string" && _load ) {9940return _load.apply( this, arguments );9941}99429943var selector, response, type,9944self = this,9945off = url.indexOf(" ");99469947if ( off >= 0 ) {9948selector = jQuery.trim( url.slice( off, url.length ) );9949url = url.slice( 0, off );9950}99519952// If it's a function9953if ( jQuery.isFunction( params ) ) {99549955// We assume that it's the callback9956callback = params;9957params = undefined;99589959// Otherwise, build a param string9960} else if ( params && typeof params === "object" ) {9961type = "POST";9962}99639964// If we have elements to modify, make the request9965if ( self.length > 0 ) {9966jQuery.ajax({9967url: url,99689969// if "type" variable is undefined, then "GET" method will be used9970type: type,9971dataType: "html",9972data: params9973}).done(function( responseText ) {99749975// Save response for use in complete callback9976response = arguments;99779978self.html( selector ?99799980// If a selector was specified, locate the right elements in a dummy div9981// Exclude scripts to avoid IE 'Permission Denied' errors9982jQuery("<div>").append( jQuery.parseHTML( responseText ) ).find( selector ) :99839984// Otherwise use the full result9985responseText );99869987}).complete( callback && function( jqXHR, status ) {9988self.each( callback, response || [ jqXHR.responseText, status, jqXHR ] );9989});9990}99919992return this;9993};99949995999699979998jQuery.expr.filters.animated = function( elem ) {9999return jQuery.grep(jQuery.timers, function( fn ) {10000return elem === fn.elem;10001}).length;10002};100031000410005100061000710008var docElem = window.document.documentElement;1000910010/**10011* Gets a window from an element10012*/10013function getWindow( elem ) {10014return jQuery.isWindow( elem ) ?10015elem :10016elem.nodeType === 9 ?10017elem.defaultView || elem.parentWindow :10018false;10019}1002010021jQuery.offset = {10022setOffset: function( elem, options, i ) {10023var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,10024position = jQuery.css( elem, "position" ),10025curElem = jQuery( elem ),10026props = {};1002710028// set position first, in-case top/left are set even on static elem10029if ( position === "static" ) {10030elem.style.position = "relative";10031}1003210033curOffset = curElem.offset();10034curCSSTop = jQuery.css( elem, "top" );10035curCSSLeft = jQuery.css( elem, "left" );10036calculatePosition = ( position === "absolute" || position === "fixed" ) &&10037jQuery.inArray("auto", [ curCSSTop, curCSSLeft ] ) > -1;1003810039// need to be able to calculate position if either top or left is auto and position is either absolute or fixed10040if ( calculatePosition ) {10041curPosition = curElem.position();10042curTop = curPosition.top;10043curLeft = curPosition.left;10044} else {10045curTop = parseFloat( curCSSTop ) || 0;10046curLeft = parseFloat( curCSSLeft ) || 0;10047}1004810049if ( jQuery.isFunction( options ) ) {10050options = options.call( elem, i, curOffset );10051}1005210053if ( options.top != null ) {10054props.top = ( options.top - curOffset.top ) + curTop;10055}10056if ( options.left != null ) {10057props.left = ( options.left - curOffset.left ) + curLeft;10058}1005910060if ( "using" in options ) {10061options.using.call( elem, props );10062} else {10063curElem.css( props );10064}10065}10066};1006710068jQuery.fn.extend({10069offset: function( options ) {10070if ( arguments.length ) {10071return options === undefined ?10072this :10073this.each(function( i ) {10074jQuery.offset.setOffset( this, options, i );10075});10076}1007710078var docElem, win,10079box = { top: 0, left: 0 },10080elem = this[ 0 ],10081doc = elem && elem.ownerDocument;1008210083if ( !doc ) {10084return;10085}1008610087docElem = doc.documentElement;1008810089// Make sure it's not a disconnected DOM node10090if ( !jQuery.contains( docElem, elem ) ) {10091return box;10092}1009310094// If we don't have gBCR, just use 0,0 rather than error10095// BlackBerry 5, iOS 3 (original iPhone)10096if ( typeof elem.getBoundingClientRect !== strundefined ) {10097box = elem.getBoundingClientRect();10098}10099win = getWindow( doc );10100return {10101top: box.top + ( win.pageYOffset || docElem.scrollTop ) - ( docElem.clientTop || 0 ),10102left: box.left + ( win.pageXOffset || docElem.scrollLeft ) - ( docElem.clientLeft || 0 )10103};10104},1010510106position: function() {10107if ( !this[ 0 ] ) {10108return;10109}1011010111var offsetParent, offset,10112parentOffset = { top: 0, left: 0 },10113elem = this[ 0 ];1011410115// fixed elements are offset from window (parentOffset = {top:0, left: 0}, because it is its only offset parent10116if ( jQuery.css( elem, "position" ) === "fixed" ) {10117// we assume that getBoundingClientRect is available when computed position is fixed10118offset = elem.getBoundingClientRect();10119} else {10120// Get *real* offsetParent10121offsetParent = this.offsetParent();1012210123// Get correct offsets10124offset = this.offset();10125if ( !jQuery.nodeName( offsetParent[ 0 ], "html" ) ) {10126parentOffset = offsetParent.offset();10127}1012810129// Add offsetParent borders10130parentOffset.top += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true );10131parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true );10132}1013310134// Subtract parent offsets and element margins10135// note: when an element has margin: auto the offsetLeft and marginLeft10136// are the same in Safari causing offset.left to incorrectly be 010137return {10138top: offset.top - parentOffset.top - jQuery.css( elem, "marginTop", true ),10139left: offset.left - parentOffset.left - jQuery.css( elem, "marginLeft", true)10140};10141},1014210143offsetParent: function() {10144return this.map(function() {10145var offsetParent = this.offsetParent || docElem;1014610147while ( offsetParent && ( !jQuery.nodeName( offsetParent, "html" ) && jQuery.css( offsetParent, "position" ) === "static" ) ) {10148offsetParent = offsetParent.offsetParent;10149}10150return offsetParent || docElem;10151});10152}10153});1015410155// Create scrollLeft and scrollTop methods10156jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function( method, prop ) {10157var top = /Y/.test( prop );1015810159jQuery.fn[ method ] = function( val ) {10160return access( this, function( elem, method, val ) {10161var win = getWindow( elem );1016210163if ( val === undefined ) {10164return win ? (prop in win) ? win[ prop ] :10165win.document.documentElement[ method ] :10166elem[ method ];10167}1016810169if ( win ) {10170win.scrollTo(10171!top ? val : jQuery( win ).scrollLeft(),10172top ? val : jQuery( win ).scrollTop()10173);1017410175} else {10176elem[ method ] = val;10177}10178}, method, val, arguments.length, null );10179};10180});1018110182// Add the top/left cssHooks using jQuery.fn.position10183// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=2908410184// getComputedStyle returns percent when specified for top/left/bottom/right10185// rather than make the css module depend on the offset module, we just check for it here10186jQuery.each( [ "top", "left" ], function( i, prop ) {10187jQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition,10188function( elem, computed ) {10189if ( computed ) {10190computed = curCSS( elem, prop );10191// if curCSS returns percentage, fallback to offset10192return rnumnonpx.test( computed ) ?10193jQuery( elem ).position()[ prop ] + "px" :10194computed;10195}10196}10197);10198});101991020010201// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods10202jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {10203jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name }, function( defaultExtra, funcName ) {10204// margin is only for outerHeight, outerWidth10205jQuery.fn[ funcName ] = function( margin, value ) {10206var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ),10207extra = defaultExtra || ( margin === true || value === true ? "margin" : "border" );1020810209return access( this, function( elem, type, value ) {10210var doc;1021110212if ( jQuery.isWindow( elem ) ) {10213// As of 5/8/2012 this will yield incorrect results for Mobile Safari, but there10214// isn't a whole lot we can do. See pull request at this URL for discussion:10215// https://github.com/jquery/jquery/pull/76410216return elem.document.documentElement[ "client" + name ];10217}1021810219// Get document width or height10220if ( elem.nodeType === 9 ) {10221doc = elem.documentElement;1022210223// Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height], whichever is greatest10224// unfortunately, this causes bug #3838 in IE6/8 only, but there is currently no good, small way to fix it.10225return Math.max(10226elem.body[ "scroll" + name ], doc[ "scroll" + name ],10227elem.body[ "offset" + name ], doc[ "offset" + name ],10228doc[ "client" + name ]10229);10230}1023110232return value === undefined ?10233// Get width or height on the element, requesting but not forcing parseFloat10234jQuery.css( elem, type, extra ) :1023510236// Set width or height on the element10237jQuery.style( elem, type, value, extra );10238}, type, chainable ? margin : undefined, chainable, null );10239};10240});10241});102421024310244// The number of elements contained in the matched element set10245jQuery.fn.size = function() {10246return this.length;10247};1024810249jQuery.fn.andSelf = jQuery.fn.addBack;1025010251102521025310254// Register as a named AMD module, since jQuery can be concatenated with other10255// files that may use define, but not via a proper concatenation script that10256// understands anonymous AMD modules. A named AMD is safest and most robust10257// way to register. Lowercase jquery is used because AMD module names are10258// derived from file names, and jQuery is normally delivered in a lowercase10259// file name. Do this after creating the global so that if an AMD module wants10260// to call noConflict to hide this version of jQuery, it will work.1026110262// Note that for maximum portability, libraries that are not jQuery should10263// declare themselves as anonymous modules, and avoid setting a global if an10264// AMD loader is present. jQuery is a special case. For more information, see10265// https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon1026610267if ( typeof define === "function" && define.amd ) {10268define( "jquery", [], function() {10269return jQuery;10270});10271}1027210273102741027510276var10277// Map over jQuery in case of overwrite10278_jQuery = window.jQuery,1027910280// Map over the $ in case of overwrite10281_$ = window.$;1028210283jQuery.noConflict = function( deep ) {10284if ( window.$ === jQuery ) {10285window.$ = _$;10286}1028710288if ( deep && window.jQuery === jQuery ) {10289window.jQuery = _jQuery;10290}1029110292return jQuery;10293};1029410295// Expose jQuery and $ identifiers, even in10296// AMD (#7102#comment:10, https://github.com/jquery/jquery/pull/557)10297// and CommonJS for browser emulators (#13566)10298if ( typeof noGlobal === strundefined ) {10299window.jQuery = window.$ = jQuery;10300}1030110302103031030410305return jQuery;1030610307}));103081030910310