Path: blob/main/website/GAUSS/js/jquery-1.11.0.js
2941 views
/*!1* jQuery JavaScript Library v1.11.02* 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-01-23T21:02Z12*/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 trim = "".trim;6263var support = {};64656667var68version = "1.11.0",6970// Define a local copy of jQuery71jQuery = function( selector, context ) {72// The jQuery object is actually just the init constructor 'enhanced'73// Need init if jQuery is called (just allow error to be thrown if not included)74return new jQuery.fn.init( selector, context );75},7677// Make sure we trim BOM and NBSP (here's looking at you, Safari 5.0 and IE)78rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,7980// Matches dashed string for camelizing81rmsPrefix = /^-ms-/,82rdashAlpha = /-([\da-z])/gi,8384// Used by jQuery.camelCase as callback to replace()85fcamelCase = function( all, letter ) {86return letter.toUpperCase();87};8889jQuery.fn = jQuery.prototype = {90// The current version of jQuery being used91jquery: version,9293constructor: jQuery,9495// Start with an empty selector96selector: "",9798// The default length of a jQuery object is 099length: 0,100101toArray: function() {102return slice.call( this );103},104105// Get the Nth element in the matched element set OR106// Get the whole matched element set as a clean array107get: function( num ) {108return num != null ?109110// Return a 'clean' array111( num < 0 ? this[ num + this.length ] : this[ num ] ) :112113// Return just the object114slice.call( this );115},116117// Take an array of elements and push it onto the stack118// (returning the new matched element set)119pushStack: function( elems ) {120121// Build a new jQuery matched element set122var ret = jQuery.merge( this.constructor(), elems );123124// Add the old object onto the stack (as a reference)125ret.prevObject = this;126ret.context = this.context;127128// Return the newly-formed element set129return ret;130},131132// Execute a callback for every element in the matched set.133// (You can seed the arguments with an array of args, but this is134// only used internally.)135each: function( callback, args ) {136return jQuery.each( this, callback, args );137},138139map: function( callback ) {140return this.pushStack( jQuery.map(this, function( elem, i ) {141return callback.call( elem, i, elem );142}));143},144145slice: function() {146return this.pushStack( slice.apply( this, arguments ) );147},148149first: function() {150return this.eq( 0 );151},152153last: function() {154return this.eq( -1 );155},156157eq: function( i ) {158var len = this.length,159j = +i + ( i < 0 ? len : 0 );160return this.pushStack( j >= 0 && j < len ? [ this[j] ] : [] );161},162163end: function() {164return this.prevObject || this.constructor(null);165},166167// For internal use only.168// Behaves like an Array's method, not like a jQuery method.169push: push,170sort: deletedIds.sort,171splice: deletedIds.splice172};173174jQuery.extend = jQuery.fn.extend = function() {175var src, copyIsArray, copy, name, options, clone,176target = arguments[0] || {},177i = 1,178length = arguments.length,179deep = false;180181// Handle a deep copy situation182if ( typeof target === "boolean" ) {183deep = target;184185// skip the boolean and the target186target = arguments[ i ] || {};187i++;188}189190// Handle case when target is a string or something (possible in deep copy)191if ( typeof target !== "object" && !jQuery.isFunction(target) ) {192target = {};193}194195// extend jQuery itself if only one argument is passed196if ( i === length ) {197target = this;198i--;199}200201for ( ; i < length; i++ ) {202// Only deal with non-null/undefined values203if ( (options = arguments[ i ]) != null ) {204// Extend the base object205for ( name in options ) {206src = target[ name ];207copy = options[ name ];208209// Prevent never-ending loop210if ( target === copy ) {211continue;212}213214// Recurse if we're merging plain objects or arrays215if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {216if ( copyIsArray ) {217copyIsArray = false;218clone = src && jQuery.isArray(src) ? src : [];219220} else {221clone = src && jQuery.isPlainObject(src) ? src : {};222}223224// Never move original objects, clone them225target[ name ] = jQuery.extend( deep, clone, copy );226227// Don't bring in undefined values228} else if ( copy !== undefined ) {229target[ name ] = copy;230}231}232}233}234235// Return the modified object236return target;237};238239jQuery.extend({240// Unique for each copy of jQuery on the page241expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ),242243// Assume jQuery is ready without the ready module244isReady: true,245246error: function( msg ) {247throw new Error( msg );248},249250noop: function() {},251252// See test/unit/core.js for details concerning isFunction.253// Since version 1.3, DOM methods and functions like alert254// aren't supported. They return false on IE (#2968).255isFunction: function( obj ) {256return jQuery.type(obj) === "function";257},258259isArray: Array.isArray || function( obj ) {260return jQuery.type(obj) === "array";261},262263isWindow: function( obj ) {264/* jshint eqeqeq: false */265return obj != null && obj == obj.window;266},267268isNumeric: function( obj ) {269// parseFloat NaNs numeric-cast false positives (null|true|false|"")270// ...but misinterprets leading-number strings, particularly hex literals ("0x...")271// subtraction forces infinities to NaN272return obj - parseFloat( obj ) >= 0;273},274275isEmptyObject: function( obj ) {276var name;277for ( name in obj ) {278return false;279}280return true;281},282283isPlainObject: function( obj ) {284var key;285286// Must be an Object.287// Because of IE, we also have to check the presence of the constructor property.288// Make sure that DOM nodes and window objects don't pass through, as well289if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {290return false;291}292293try {294// Not own constructor property must be Object295if ( obj.constructor &&296!hasOwn.call(obj, "constructor") &&297!hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) {298return false;299}300} catch ( e ) {301// IE8,9 Will throw exceptions on certain host objects #9897302return false;303}304305// Support: IE<9306// Handle iteration over inherited properties before own properties.307if ( support.ownLast ) {308for ( key in obj ) {309return hasOwn.call( obj, key );310}311}312313// Own properties are enumerated firstly, so to speed up,314// if last one is own, then all properties are own.315for ( key in obj ) {}316317return key === undefined || hasOwn.call( obj, key );318},319320type: function( obj ) {321if ( obj == null ) {322return obj + "";323}324return typeof obj === "object" || typeof obj === "function" ?325class2type[ toString.call(obj) ] || "object" :326typeof obj;327},328329// Evaluates a script in a global context330// Workarounds based on findings by Jim Driscoll331// http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context332globalEval: function( data ) {333if ( data && jQuery.trim( data ) ) {334// We use execScript on Internet Explorer335// We use an anonymous function so that context is window336// rather than jQuery in Firefox337( window.execScript || function( data ) {338window[ "eval" ].call( window, data );339} )( data );340}341},342343// Convert dashed to camelCase; used by the css and data modules344// Microsoft forgot to hump their vendor prefix (#9572)345camelCase: function( string ) {346return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );347},348349nodeName: function( elem, name ) {350return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();351},352353// args is for internal usage only354each: function( obj, callback, args ) {355var value,356i = 0,357length = obj.length,358isArray = isArraylike( obj );359360if ( args ) {361if ( isArray ) {362for ( ; i < length; i++ ) {363value = callback.apply( obj[ i ], args );364365if ( value === false ) {366break;367}368}369} else {370for ( i in obj ) {371value = callback.apply( obj[ i ], args );372373if ( value === false ) {374break;375}376}377}378379// A special, fast, case for the most common use of each380} else {381if ( isArray ) {382for ( ; i < length; i++ ) {383value = callback.call( obj[ i ], i, obj[ i ] );384385if ( value === false ) {386break;387}388}389} else {390for ( i in obj ) {391value = callback.call( obj[ i ], i, obj[ i ] );392393if ( value === false ) {394break;395}396}397}398}399400return obj;401},402403// Use native String.trim function wherever possible404trim: trim && !trim.call("\uFEFF\xA0") ?405function( text ) {406return text == null ?407"" :408trim.call( text );409} :410411// Otherwise use our own trimming functionality412function( text ) {413return text == null ?414"" :415( text + "" ).replace( rtrim, "" );416},417418// results is for internal usage only419makeArray: function( arr, results ) {420var ret = results || [];421422if ( arr != null ) {423if ( isArraylike( Object(arr) ) ) {424jQuery.merge( ret,425typeof arr === "string" ?426[ arr ] : arr427);428} else {429push.call( ret, arr );430}431}432433return ret;434},435436inArray: function( elem, arr, i ) {437var len;438439if ( arr ) {440if ( indexOf ) {441return indexOf.call( arr, elem, i );442}443444len = arr.length;445i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0;446447for ( ; i < len; i++ ) {448// Skip accessing in sparse arrays449if ( i in arr && arr[ i ] === elem ) {450return i;451}452}453}454455return -1;456},457458merge: function( first, second ) {459var len = +second.length,460j = 0,461i = first.length;462463while ( j < len ) {464first[ i++ ] = second[ j++ ];465}466467// Support: IE<9468// Workaround casting of .length to NaN on otherwise arraylike objects (e.g., NodeLists)469if ( len !== len ) {470while ( second[j] !== undefined ) {471first[ i++ ] = second[ j++ ];472}473}474475first.length = i;476477return first;478},479480grep: function( elems, callback, invert ) {481var callbackInverse,482matches = [],483i = 0,484length = elems.length,485callbackExpect = !invert;486487// Go through the array, only saving the items488// that pass the validator function489for ( ; i < length; i++ ) {490callbackInverse = !callback( elems[ i ], i );491if ( callbackInverse !== callbackExpect ) {492matches.push( elems[ i ] );493}494}495496return matches;497},498499// arg is for internal usage only500map: function( elems, callback, arg ) {501var value,502i = 0,503length = elems.length,504isArray = isArraylike( elems ),505ret = [];506507// Go through the array, translating each of the items to their new values508if ( isArray ) {509for ( ; i < length; i++ ) {510value = callback( elems[ i ], i, arg );511512if ( value != null ) {513ret.push( value );514}515}516517// Go through every key on the object,518} else {519for ( i in elems ) {520value = callback( elems[ i ], i, arg );521522if ( value != null ) {523ret.push( value );524}525}526}527528// Flatten any nested arrays529return concat.apply( [], ret );530},531532// A global GUID counter for objects533guid: 1,534535// Bind a function to a context, optionally partially applying any536// arguments.537proxy: function( fn, context ) {538var args, proxy, tmp;539540if ( typeof context === "string" ) {541tmp = fn[ context ];542context = fn;543fn = tmp;544}545546// Quick check to determine if target is callable, in the spec547// this throws a TypeError, but we will just return undefined.548if ( !jQuery.isFunction( fn ) ) {549return undefined;550}551552// Simulated bind553args = slice.call( arguments, 2 );554proxy = function() {555return fn.apply( context || this, args.concat( slice.call( arguments ) ) );556};557558// Set the guid of unique handler to the same of original handler, so it can be removed559proxy.guid = fn.guid = fn.guid || jQuery.guid++;560561return proxy;562},563564now: function() {565return +( new Date() );566},567568// jQuery.support is not used in Core but other projects attach their569// properties to it so it needs to exist.570support: support571});572573// Populate the class2type map574jQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(i, name) {575class2type[ "[object " + name + "]" ] = name.toLowerCase();576});577578function isArraylike( obj ) {579var length = obj.length,580type = jQuery.type( obj );581582if ( type === "function" || jQuery.isWindow( obj ) ) {583return false;584}585586if ( obj.nodeType === 1 && length ) {587return true;588}589590return type === "array" || length === 0 ||591typeof length === "number" && length > 0 && ( length - 1 ) in obj;592}593var Sizzle =594/*!595* Sizzle CSS Selector Engine v1.10.16596* http://sizzlejs.com/597*598* Copyright 2013 jQuery Foundation, Inc. and other contributors599* Released under the MIT license600* http://jquery.org/license601*602* Date: 2014-01-13603*/604(function( window ) {605606var i,607support,608Expr,609getText,610isXML,611compile,612outermostContext,613sortInput,614hasDuplicate,615616// Local document vars617setDocument,618document,619docElem,620documentIsHTML,621rbuggyQSA,622rbuggyMatches,623matches,624contains,625626// Instance-specific data627expando = "sizzle" + -(new Date()),628preferredDoc = window.document,629dirruns = 0,630done = 0,631classCache = createCache(),632tokenCache = createCache(),633compilerCache = createCache(),634sortOrder = function( a, b ) {635if ( a === b ) {636hasDuplicate = true;637}638return 0;639},640641// General-purpose constants642strundefined = typeof undefined,643MAX_NEGATIVE = 1 << 31,644645// Instance methods646hasOwn = ({}).hasOwnProperty,647arr = [],648pop = arr.pop,649push_native = arr.push,650push = arr.push,651slice = arr.slice,652// Use a stripped-down indexOf if we can't use a native one653indexOf = arr.indexOf || function( elem ) {654var i = 0,655len = this.length;656for ( ; i < len; i++ ) {657if ( this[i] === elem ) {658return i;659}660}661return -1;662},663664booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",665666// Regular expressions667668// Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace669whitespace = "[\\x20\\t\\r\\n\\f]",670// http://www.w3.org/TR/css3-syntax/#characters671characterEncoding = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",672673// Loosely modeled on CSS identifier characters674// An unquoted value should be a CSS identifier http://www.w3.org/TR/css3-selectors/#attribute-selectors675// Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier676identifier = characterEncoding.replace( "w", "w#" ),677678// Acceptable operators http://www.w3.org/TR/selectors/#attribute-selectors679attributes = "\\[" + whitespace + "*(" + characterEncoding + ")" + whitespace +680"*(?:([*^$|!~]?=)" + whitespace + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + identifier + ")|)|)" + whitespace + "*\\]",681682// Prefer arguments quoted,683// then not containing pseudos/brackets,684// then attribute selectors/non-parenthetical expressions,685// then anything else686// These preferences are here to reduce the number of selectors687// needing tokenize in the PSEUDO preFilter688pseudos = ":(" + characterEncoding + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + attributes.replace( 3, 8 ) + ")*)|.*)\\)|)",689690// Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter691rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ),692693rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ),694rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ),695696rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", "g" ),697698rpseudo = new RegExp( pseudos ),699ridentifier = new RegExp( "^" + identifier + "$" ),700701matchExpr = {702"ID": new RegExp( "^#(" + characterEncoding + ")" ),703"CLASS": new RegExp( "^\\.(" + characterEncoding + ")" ),704"TAG": new RegExp( "^(" + characterEncoding.replace( "w", "w*" ) + ")" ),705"ATTR": new RegExp( "^" + attributes ),706"PSEUDO": new RegExp( "^" + pseudos ),707"CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace +708"*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace +709"*(\\d+)|))" + whitespace + "*\\)|)", "i" ),710"bool": new RegExp( "^(?:" + booleans + ")$", "i" ),711// For use in libraries implementing .is()712// We use this for POS matching in `select`713"needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" +714whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" )715},716717rinputs = /^(?:input|select|textarea|button)$/i,718rheader = /^h\d$/i,719720rnative = /^[^{]+\{\s*\[native \w/,721722// Easily-parseable/retrievable ID or TAG or CLASS selectors723rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,724725rsibling = /[+~]/,726rescape = /'|\\/g,727728// CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters729runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ),730funescape = function( _, escaped, escapedWhitespace ) {731var high = "0x" + escaped - 0x10000;732// NaN means non-codepoint733// Support: Firefox734// Workaround erroneous numeric interpretation of +"0x"735return high !== high || escapedWhitespace ?736escaped :737high < 0 ?738// BMP codepoint739String.fromCharCode( high + 0x10000 ) :740// Supplemental Plane codepoint (surrogate pair)741String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );742};743744// Optimize for push.apply( _, NodeList )745try {746push.apply(747(arr = slice.call( preferredDoc.childNodes )),748preferredDoc.childNodes749);750// Support: Android<4.0751// Detect silently failing push.apply752arr[ preferredDoc.childNodes.length ].nodeType;753} catch ( e ) {754push = { apply: arr.length ?755756// Leverage slice if possible757function( target, els ) {758push_native.apply( target, slice.call(els) );759} :760761// Support: IE<9762// Otherwise append directly763function( target, els ) {764var j = target.length,765i = 0;766// Can't trust NodeList.length767while ( (target[j++] = els[i++]) ) {}768target.length = j - 1;769}770};771}772773function Sizzle( selector, context, results, seed ) {774var match, elem, m, nodeType,775// QSA vars776i, groups, old, nid, newContext, newSelector;777778if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) {779setDocument( context );780}781782context = context || document;783results = results || [];784785if ( !selector || typeof selector !== "string" ) {786return results;787}788789if ( (nodeType = context.nodeType) !== 1 && nodeType !== 9 ) {790return [];791}792793if ( documentIsHTML && !seed ) {794795// Shortcuts796if ( (match = rquickExpr.exec( selector )) ) {797// Speed-up: Sizzle("#ID")798if ( (m = match[1]) ) {799if ( nodeType === 9 ) {800elem = context.getElementById( m );801// Check parentNode to catch when Blackberry 4.6 returns802// nodes that are no longer in the document (jQuery #6963)803if ( elem && elem.parentNode ) {804// Handle the case where IE, Opera, and Webkit return items805// by name instead of ID806if ( elem.id === m ) {807results.push( elem );808return results;809}810} else {811return results;812}813} else {814// Context is not a document815if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) &&816contains( context, elem ) && elem.id === m ) {817results.push( elem );818return results;819}820}821822// Speed-up: Sizzle("TAG")823} else if ( match[2] ) {824push.apply( results, context.getElementsByTagName( selector ) );825return results;826827// Speed-up: Sizzle(".CLASS")828} else if ( (m = match[3]) && support.getElementsByClassName && context.getElementsByClassName ) {829push.apply( results, context.getElementsByClassName( m ) );830return results;831}832}833834// QSA path835if ( support.qsa && (!rbuggyQSA || !rbuggyQSA.test( selector )) ) {836nid = old = expando;837newContext = context;838newSelector = nodeType === 9 && selector;839840// qSA works strangely on Element-rooted queries841// We can work around this by specifying an extra ID on the root842// and working up from there (Thanks to Andrew Dupont for the technique)843// IE 8 doesn't work on object elements844if ( nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) {845groups = tokenize( selector );846847if ( (old = context.getAttribute("id")) ) {848nid = old.replace( rescape, "\\$&" );849} else {850context.setAttribute( "id", nid );851}852nid = "[id='" + nid + "'] ";853854i = groups.length;855while ( i-- ) {856groups[i] = nid + toSelector( groups[i] );857}858newContext = rsibling.test( selector ) && testContext( context.parentNode ) || context;859newSelector = groups.join(",");860}861862if ( newSelector ) {863try {864push.apply( results,865newContext.querySelectorAll( newSelector )866);867return results;868} catch(qsaError) {869} finally {870if ( !old ) {871context.removeAttribute("id");872}873}874}875}876}877878// All others879return select( selector.replace( rtrim, "$1" ), context, results, seed );880}881882/**883* Create key-value caches of limited size884* @returns {Function(string, Object)} Returns the Object data after storing it on itself with885* property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)886* deleting the oldest entry887*/888function createCache() {889var keys = [];890891function cache( key, value ) {892// Use (key + " ") to avoid collision with native prototype properties (see Issue #157)893if ( keys.push( key + " " ) > Expr.cacheLength ) {894// Only keep the most recent entries895delete cache[ keys.shift() ];896}897return (cache[ key + " " ] = value);898}899return cache;900}901902/**903* Mark a function for special use by Sizzle904* @param {Function} fn The function to mark905*/906function markFunction( fn ) {907fn[ expando ] = true;908return fn;909}910911/**912* Support testing using an element913* @param {Function} fn Passed the created div and expects a boolean result914*/915function assert( fn ) {916var div = document.createElement("div");917918try {919return !!fn( div );920} catch (e) {921return false;922} finally {923// Remove from its parent by default924if ( div.parentNode ) {925div.parentNode.removeChild( div );926}927// release memory in IE928div = null;929}930}931932/**933* Adds the same handler for all of the specified attrs934* @param {String} attrs Pipe-separated list of attributes935* @param {Function} handler The method that will be applied936*/937function addHandle( attrs, handler ) {938var arr = attrs.split("|"),939i = attrs.length;940941while ( i-- ) {942Expr.attrHandle[ arr[i] ] = handler;943}944}945946/**947* Checks document order of two siblings948* @param {Element} a949* @param {Element} b950* @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b951*/952function siblingCheck( a, b ) {953var cur = b && a,954diff = cur && a.nodeType === 1 && b.nodeType === 1 &&955( ~b.sourceIndex || MAX_NEGATIVE ) -956( ~a.sourceIndex || MAX_NEGATIVE );957958// Use IE sourceIndex if available on both nodes959if ( diff ) {960return diff;961}962963// Check if b follows a964if ( cur ) {965while ( (cur = cur.nextSibling) ) {966if ( cur === b ) {967return -1;968}969}970}971972return a ? 1 : -1;973}974975/**976* Returns a function to use in pseudos for input types977* @param {String} type978*/979function createInputPseudo( type ) {980return function( elem ) {981var name = elem.nodeName.toLowerCase();982return name === "input" && elem.type === type;983};984}985986/**987* Returns a function to use in pseudos for buttons988* @param {String} type989*/990function createButtonPseudo( type ) {991return function( elem ) {992var name = elem.nodeName.toLowerCase();993return (name === "input" || name === "button") && elem.type === type;994};995}996997/**998* Returns a function to use in pseudos for positionals999* @param {Function} fn1000*/1001function createPositionalPseudo( fn ) {1002return markFunction(function( argument ) {1003argument = +argument;1004return markFunction(function( seed, matches ) {1005var j,1006matchIndexes = fn( [], seed.length, argument ),1007i = matchIndexes.length;10081009// Match elements found at the specified indexes1010while ( i-- ) {1011if ( seed[ (j = matchIndexes[i]) ] ) {1012seed[j] = !(matches[j] = seed[j]);1013}1014}1015});1016});1017}10181019/**1020* Checks a node for validity as a Sizzle context1021* @param {Element|Object=} context1022* @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value1023*/1024function testContext( context ) {1025return context && typeof context.getElementsByTagName !== strundefined && context;1026}10271028// Expose support vars for convenience1029support = Sizzle.support = {};10301031/**1032* Detects XML nodes1033* @param {Element|Object} elem An element or a document1034* @returns {Boolean} True iff elem is a non-HTML XML node1035*/1036isXML = Sizzle.isXML = function( elem ) {1037// documentElement is verified for cases where it doesn't yet exist1038// (such as loading iframes in IE - #4833)1039var documentElement = elem && (elem.ownerDocument || elem).documentElement;1040return documentElement ? documentElement.nodeName !== "HTML" : false;1041};10421043/**1044* Sets document-related variables once based on the current document1045* @param {Element|Object} [doc] An element or document object to use to set the document1046* @returns {Object} Returns the current document1047*/1048setDocument = Sizzle.setDocument = function( node ) {1049var hasCompare,1050doc = node ? node.ownerDocument || node : preferredDoc,1051parent = doc.defaultView;10521053// If no document and documentElement is available, return1054if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {1055return document;1056}10571058// Set our document1059document = doc;1060docElem = doc.documentElement;10611062// Support tests1063documentIsHTML = !isXML( doc );10641065// Support: IE>81066// If iframe document is assigned to "document" variable and if iframe has been reloaded,1067// IE will throw "permission denied" error when accessing "document" variable, see jQuery #139361068// IE6-8 do not support the defaultView property so parent will be undefined1069if ( parent && parent !== parent.top ) {1070// IE11 does not have attachEvent, so all must suffer1071if ( parent.addEventListener ) {1072parent.addEventListener( "unload", function() {1073setDocument();1074}, false );1075} else if ( parent.attachEvent ) {1076parent.attachEvent( "onunload", function() {1077setDocument();1078});1079}1080}10811082/* Attributes1083---------------------------------------------------------------------- */10841085// Support: IE<81086// Verify that getAttribute really returns attributes and not properties (excepting IE8 booleans)1087support.attributes = assert(function( div ) {1088div.className = "i";1089return !div.getAttribute("className");1090});10911092/* getElement(s)By*1093---------------------------------------------------------------------- */10941095// Check if getElementsByTagName("*") returns only elements1096support.getElementsByTagName = assert(function( div ) {1097div.appendChild( doc.createComment("") );1098return !div.getElementsByTagName("*").length;1099});11001101// Check if getElementsByClassName can be trusted1102support.getElementsByClassName = rnative.test( doc.getElementsByClassName ) && assert(function( div ) {1103div.innerHTML = "<div class='a'></div><div class='a i'></div>";11041105// Support: Safari<41106// Catch class over-caching1107div.firstChild.className = "i";1108// Support: Opera<101109// Catch gEBCN failure to find non-leading classes1110return div.getElementsByClassName("i").length === 2;1111});11121113// Support: IE<101114// Check if getElementById returns elements by name1115// The broken getElementById methods don't pick up programatically-set names,1116// so use a roundabout getElementsByName test1117support.getById = assert(function( div ) {1118docElem.appendChild( div ).id = expando;1119return !doc.getElementsByName || !doc.getElementsByName( expando ).length;1120});11211122// ID find and filter1123if ( support.getById ) {1124Expr.find["ID"] = function( id, context ) {1125if ( typeof context.getElementById !== strundefined && documentIsHTML ) {1126var m = context.getElementById( id );1127// Check parentNode to catch when Blackberry 4.6 returns1128// nodes that are no longer in the document #69631129return m && m.parentNode ? [m] : [];1130}1131};1132Expr.filter["ID"] = function( id ) {1133var attrId = id.replace( runescape, funescape );1134return function( elem ) {1135return elem.getAttribute("id") === attrId;1136};1137};1138} else {1139// Support: IE6/71140// getElementById is not reliable as a find shortcut1141delete Expr.find["ID"];11421143Expr.filter["ID"] = function( id ) {1144var attrId = id.replace( runescape, funescape );1145return function( elem ) {1146var node = typeof elem.getAttributeNode !== strundefined && elem.getAttributeNode("id");1147return node && node.value === attrId;1148};1149};1150}11511152// Tag1153Expr.find["TAG"] = support.getElementsByTagName ?1154function( tag, context ) {1155if ( typeof context.getElementsByTagName !== strundefined ) {1156return context.getElementsByTagName( tag );1157}1158} :1159function( tag, context ) {1160var elem,1161tmp = [],1162i = 0,1163results = context.getElementsByTagName( tag );11641165// Filter out possible comments1166if ( tag === "*" ) {1167while ( (elem = results[i++]) ) {1168if ( elem.nodeType === 1 ) {1169tmp.push( elem );1170}1171}11721173return tmp;1174}1175return results;1176};11771178// Class1179Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) {1180if ( typeof context.getElementsByClassName !== strundefined && documentIsHTML ) {1181return context.getElementsByClassName( className );1182}1183};11841185/* QSA/matchesSelector1186---------------------------------------------------------------------- */11871188// QSA and matchesSelector support11891190// matchesSelector(:active) reports false when true (IE9/Opera 11.5)1191rbuggyMatches = [];11921193// qSa(:focus) reports false when true (Chrome 21)1194// We allow this because of a bug in IE8/9 that throws an error1195// whenever `document.activeElement` is accessed on an iframe1196// So, we allow :focus to pass through QSA all the time to avoid the IE error1197// See http://bugs.jquery.com/ticket/133781198rbuggyQSA = [];11991200if ( (support.qsa = rnative.test( doc.querySelectorAll )) ) {1201// Build QSA regex1202// Regex strategy adopted from Diego Perini1203assert(function( div ) {1204// Select is set to empty string on purpose1205// This is to test IE's treatment of not explicitly1206// setting a boolean content attribute,1207// since its presence should be enough1208// http://bugs.jquery.com/ticket/123591209div.innerHTML = "<select t=''><option selected=''></option></select>";12101211// Support: IE8, Opera 10-121212// Nothing should be selected when empty strings follow ^= or $= or *=1213if ( div.querySelectorAll("[t^='']").length ) {1214rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" );1215}12161217// Support: IE81218// Boolean attributes and "value" are not treated correctly1219if ( !div.querySelectorAll("[selected]").length ) {1220rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" );1221}12221223// Webkit/Opera - :checked should return selected option elements1224// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked1225// IE8 throws error here and will not see later tests1226if ( !div.querySelectorAll(":checked").length ) {1227rbuggyQSA.push(":checked");1228}1229});12301231assert(function( div ) {1232// Support: Windows 8 Native Apps1233// The type and name attributes are restricted during .innerHTML assignment1234var input = doc.createElement("input");1235input.setAttribute( "type", "hidden" );1236div.appendChild( input ).setAttribute( "name", "D" );12371238// Support: IE81239// Enforce case-sensitivity of name attribute1240if ( div.querySelectorAll("[name=d]").length ) {1241rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" );1242}12431244// FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)1245// IE8 throws error here and will not see later tests1246if ( !div.querySelectorAll(":enabled").length ) {1247rbuggyQSA.push( ":enabled", ":disabled" );1248}12491250// Opera 10-11 does not throw on post-comma invalid pseudos1251div.querySelectorAll("*,:x");1252rbuggyQSA.push(",.*:");1253});1254}12551256if ( (support.matchesSelector = rnative.test( (matches = docElem.webkitMatchesSelector ||1257docElem.mozMatchesSelector ||1258docElem.oMatchesSelector ||1259docElem.msMatchesSelector) )) ) {12601261assert(function( div ) {1262// Check to see if it's possible to do matchesSelector1263// on a disconnected node (IE 9)1264support.disconnectedMatch = matches.call( div, "div" );12651266// This should fail with an exception1267// Gecko does not error, returns false instead1268matches.call( div, "[s!='']:x" );1269rbuggyMatches.push( "!=", pseudos );1270});1271}12721273rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") );1274rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") );12751276/* Contains1277---------------------------------------------------------------------- */1278hasCompare = rnative.test( docElem.compareDocumentPosition );12791280// Element contains another1281// Purposefully does not implement inclusive descendent1282// As in, an element does not contain itself1283contains = hasCompare || rnative.test( docElem.contains ) ?1284function( a, b ) {1285var adown = a.nodeType === 9 ? a.documentElement : a,1286bup = b && b.parentNode;1287return a === bup || !!( bup && bup.nodeType === 1 && (1288adown.contains ?1289adown.contains( bup ) :1290a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 161291));1292} :1293function( a, b ) {1294if ( b ) {1295while ( (b = b.parentNode) ) {1296if ( b === a ) {1297return true;1298}1299}1300}1301return false;1302};13031304/* Sorting1305---------------------------------------------------------------------- */13061307// Document order sorting1308sortOrder = hasCompare ?1309function( a, b ) {13101311// Flag for duplicate removal1312if ( a === b ) {1313hasDuplicate = true;1314return 0;1315}13161317// Sort on method existence if only one input has compareDocumentPosition1318var compare = !a.compareDocumentPosition - !b.compareDocumentPosition;1319if ( compare ) {1320return compare;1321}13221323// Calculate position if both inputs belong to the same document1324compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ?1325a.compareDocumentPosition( b ) :13261327// Otherwise we know they are disconnected13281;13291330// Disconnected nodes1331if ( compare & 1 ||1332(!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) {13331334// Choose the first element that is related to our preferred document1335if ( a === doc || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) {1336return -1;1337}1338if ( b === doc || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) {1339return 1;1340}13411342// Maintain original order1343return sortInput ?1344( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) :13450;1346}13471348return compare & 4 ? -1 : 1;1349} :1350function( a, b ) {1351// Exit early if the nodes are identical1352if ( a === b ) {1353hasDuplicate = true;1354return 0;1355}13561357var cur,1358i = 0,1359aup = a.parentNode,1360bup = b.parentNode,1361ap = [ a ],1362bp = [ b ];13631364// Parentless nodes are either documents or disconnected1365if ( !aup || !bup ) {1366return a === doc ? -1 :1367b === doc ? 1 :1368aup ? -1 :1369bup ? 1 :1370sortInput ?1371( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) :13720;13731374// If the nodes are siblings, we can do a quick check1375} else if ( aup === bup ) {1376return siblingCheck( a, b );1377}13781379// Otherwise we need full lists of their ancestors for comparison1380cur = a;1381while ( (cur = cur.parentNode) ) {1382ap.unshift( cur );1383}1384cur = b;1385while ( (cur = cur.parentNode) ) {1386bp.unshift( cur );1387}13881389// Walk down the tree looking for a discrepancy1390while ( ap[i] === bp[i] ) {1391i++;1392}13931394return i ?1395// Do a sibling check if the nodes have a common ancestor1396siblingCheck( ap[i], bp[i] ) :13971398// Otherwise nodes in our document sort first1399ap[i] === preferredDoc ? -1 :1400bp[i] === preferredDoc ? 1 :14010;1402};14031404return doc;1405};14061407Sizzle.matches = function( expr, elements ) {1408return Sizzle( expr, null, null, elements );1409};14101411Sizzle.matchesSelector = function( elem, expr ) {1412// Set document vars if needed1413if ( ( elem.ownerDocument || elem ) !== document ) {1414setDocument( elem );1415}14161417// Make sure that attribute selectors are quoted1418expr = expr.replace( rattributeQuotes, "='$1']" );14191420if ( support.matchesSelector && documentIsHTML &&1421( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&1422( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) {14231424try {1425var ret = matches.call( elem, expr );14261427// IE 9's matchesSelector returns false on disconnected nodes1428if ( ret || support.disconnectedMatch ||1429// As well, disconnected nodes are said to be in a document1430// fragment in IE 91431elem.document && elem.document.nodeType !== 11 ) {1432return ret;1433}1434} catch(e) {}1435}14361437return Sizzle( expr, document, null, [elem] ).length > 0;1438};14391440Sizzle.contains = function( context, elem ) {1441// Set document vars if needed1442if ( ( context.ownerDocument || context ) !== document ) {1443setDocument( context );1444}1445return contains( context, elem );1446};14471448Sizzle.attr = function( elem, name ) {1449// Set document vars if needed1450if ( ( elem.ownerDocument || elem ) !== document ) {1451setDocument( elem );1452}14531454var fn = Expr.attrHandle[ name.toLowerCase() ],1455// Don't get fooled by Object.prototype properties (jQuery #13807)1456val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?1457fn( elem, name, !documentIsHTML ) :1458undefined;14591460return val !== undefined ?1461val :1462support.attributes || !documentIsHTML ?1463elem.getAttribute( name ) :1464(val = elem.getAttributeNode(name)) && val.specified ?1465val.value :1466null;1467};14681469Sizzle.error = function( msg ) {1470throw new Error( "Syntax error, unrecognized expression: " + msg );1471};14721473/**1474* Document sorting and removing duplicates1475* @param {ArrayLike} results1476*/1477Sizzle.uniqueSort = function( results ) {1478var elem,1479duplicates = [],1480j = 0,1481i = 0;14821483// Unless we *know* we can detect duplicates, assume their presence1484hasDuplicate = !support.detectDuplicates;1485sortInput = !support.sortStable && results.slice( 0 );1486results.sort( sortOrder );14871488if ( hasDuplicate ) {1489while ( (elem = results[i++]) ) {1490if ( elem === results[ i ] ) {1491j = duplicates.push( i );1492}1493}1494while ( j-- ) {1495results.splice( duplicates[ j ], 1 );1496}1497}14981499// Clear input after sorting to release objects1500// See https://github.com/jquery/sizzle/pull/2251501sortInput = null;15021503return results;1504};15051506/**1507* Utility function for retrieving the text value of an array of DOM nodes1508* @param {Array|Element} elem1509*/1510getText = Sizzle.getText = function( elem ) {1511var node,1512ret = "",1513i = 0,1514nodeType = elem.nodeType;15151516if ( !nodeType ) {1517// If no nodeType, this is expected to be an array1518while ( (node = elem[i++]) ) {1519// Do not traverse comment nodes1520ret += getText( node );1521}1522} else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {1523// Use textContent for elements1524// innerText usage removed for consistency of new lines (jQuery #11153)1525if ( typeof elem.textContent === "string" ) {1526return elem.textContent;1527} else {1528// Traverse its children1529for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {1530ret += getText( elem );1531}1532}1533} else if ( nodeType === 3 || nodeType === 4 ) {1534return elem.nodeValue;1535}1536// Do not include comment or processing instruction nodes15371538return ret;1539};15401541Expr = Sizzle.selectors = {15421543// Can be adjusted by the user1544cacheLength: 50,15451546createPseudo: markFunction,15471548match: matchExpr,15491550attrHandle: {},15511552find: {},15531554relative: {1555">": { dir: "parentNode", first: true },1556" ": { dir: "parentNode" },1557"+": { dir: "previousSibling", first: true },1558"~": { dir: "previousSibling" }1559},15601561preFilter: {1562"ATTR": function( match ) {1563match[1] = match[1].replace( runescape, funescape );15641565// Move the given value to match[3] whether quoted or unquoted1566match[3] = ( match[4] || match[5] || "" ).replace( runescape, funescape );15671568if ( match[2] === "~=" ) {1569match[3] = " " + match[3] + " ";1570}15711572return match.slice( 0, 4 );1573},15741575"CHILD": function( match ) {1576/* matches from matchExpr["CHILD"]15771 type (only|nth|...)15782 what (child|of-type)15793 argument (even|odd|\d*|\d*n([+-]\d+)?|...)15804 xn-component of xn+y argument ([+-]?\d*n|)15815 sign of xn-component15826 x of xn-component15837 sign of y-component15848 y of y-component1585*/1586match[1] = match[1].toLowerCase();15871588if ( match[1].slice( 0, 3 ) === "nth" ) {1589// nth-* requires argument1590if ( !match[3] ) {1591Sizzle.error( match[0] );1592}15931594// numeric x and y parameters for Expr.filter.CHILD1595// remember that false/true cast respectively to 0/11596match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) );1597match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" );15981599// other types prohibit arguments1600} else if ( match[3] ) {1601Sizzle.error( match[0] );1602}16031604return match;1605},16061607"PSEUDO": function( match ) {1608var excess,1609unquoted = !match[5] && match[2];16101611if ( matchExpr["CHILD"].test( match[0] ) ) {1612return null;1613}16141615// Accept quoted arguments as-is1616if ( match[3] && match[4] !== undefined ) {1617match[2] = match[4];16181619// Strip excess characters from unquoted arguments1620} else if ( unquoted && rpseudo.test( unquoted ) &&1621// Get excess from tokenize (recursively)1622(excess = tokenize( unquoted, true )) &&1623// advance to the next closing parenthesis1624(excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) {16251626// excess is a negative index1627match[0] = match[0].slice( 0, excess );1628match[2] = unquoted.slice( 0, excess );1629}16301631// Return only captures needed by the pseudo filter method (type and argument)1632return match.slice( 0, 3 );1633}1634},16351636filter: {16371638"TAG": function( nodeNameSelector ) {1639var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();1640return nodeNameSelector === "*" ?1641function() { return true; } :1642function( elem ) {1643return elem.nodeName && elem.nodeName.toLowerCase() === nodeName;1644};1645},16461647"CLASS": function( className ) {1648var pattern = classCache[ className + " " ];16491650return pattern ||1651(pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) &&1652classCache( className, function( elem ) {1653return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== strundefined && elem.getAttribute("class") || "" );1654});1655},16561657"ATTR": function( name, operator, check ) {1658return function( elem ) {1659var result = Sizzle.attr( elem, name );16601661if ( result == null ) {1662return operator === "!=";1663}1664if ( !operator ) {1665return true;1666}16671668result += "";16691670return operator === "=" ? result === check :1671operator === "!=" ? result !== check :1672operator === "^=" ? check && result.indexOf( check ) === 0 :1673operator === "*=" ? check && result.indexOf( check ) > -1 :1674operator === "$=" ? check && result.slice( -check.length ) === check :1675operator === "~=" ? ( " " + result + " " ).indexOf( check ) > -1 :1676operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" :1677false;1678};1679},16801681"CHILD": function( type, what, argument, first, last ) {1682var simple = type.slice( 0, 3 ) !== "nth",1683forward = type.slice( -4 ) !== "last",1684ofType = what === "of-type";16851686return first === 1 && last === 0 ?16871688// Shortcut for :nth-*(n)1689function( elem ) {1690return !!elem.parentNode;1691} :16921693function( elem, context, xml ) {1694var cache, outerCache, node, diff, nodeIndex, start,1695dir = simple !== forward ? "nextSibling" : "previousSibling",1696parent = elem.parentNode,1697name = ofType && elem.nodeName.toLowerCase(),1698useCache = !xml && !ofType;16991700if ( parent ) {17011702// :(first|last|only)-(child|of-type)1703if ( simple ) {1704while ( dir ) {1705node = elem;1706while ( (node = node[ dir ]) ) {1707if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) {1708return false;1709}1710}1711// Reverse direction for :only-* (if we haven't yet done so)1712start = dir = type === "only" && !start && "nextSibling";1713}1714return true;1715}17161717start = [ forward ? parent.firstChild : parent.lastChild ];17181719// non-xml :nth-child(...) stores cache data on `parent`1720if ( forward && useCache ) {1721// Seek `elem` from a previously-cached index1722outerCache = parent[ expando ] || (parent[ expando ] = {});1723cache = outerCache[ type ] || [];1724nodeIndex = cache[0] === dirruns && cache[1];1725diff = cache[0] === dirruns && cache[2];1726node = nodeIndex && parent.childNodes[ nodeIndex ];17271728while ( (node = ++nodeIndex && node && node[ dir ] ||17291730// Fallback to seeking `elem` from the start1731(diff = nodeIndex = 0) || start.pop()) ) {17321733// When found, cache indexes on `parent` and break1734if ( node.nodeType === 1 && ++diff && node === elem ) {1735outerCache[ type ] = [ dirruns, nodeIndex, diff ];1736break;1737}1738}17391740// Use previously-cached element index if available1741} else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) {1742diff = cache[1];17431744// xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...)1745} else {1746// Use the same loop as above to seek `elem` from the start1747while ( (node = ++nodeIndex && node && node[ dir ] ||1748(diff = nodeIndex = 0) || start.pop()) ) {17491750if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) {1751// Cache the index of each encountered element1752if ( useCache ) {1753(node[ expando ] || (node[ expando ] = {}))[ type ] = [ dirruns, diff ];1754}17551756if ( node === elem ) {1757break;1758}1759}1760}1761}17621763// Incorporate the offset, then check against cycle size1764diff -= last;1765return diff === first || ( diff % first === 0 && diff / first >= 0 );1766}1767};1768},17691770"PSEUDO": function( pseudo, argument ) {1771// pseudo-class names are case-insensitive1772// http://www.w3.org/TR/selectors/#pseudo-classes1773// Prioritize by case sensitivity in case custom pseudos are added with uppercase letters1774// Remember that setFilters inherits from pseudos1775var args,1776fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||1777Sizzle.error( "unsupported pseudo: " + pseudo );17781779// The user may use createPseudo to indicate that1780// arguments are needed to create the filter function1781// just as Sizzle does1782if ( fn[ expando ] ) {1783return fn( argument );1784}17851786// But maintain support for old signatures1787if ( fn.length > 1 ) {1788args = [ pseudo, pseudo, "", argument ];1789return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?1790markFunction(function( seed, matches ) {1791var idx,1792matched = fn( seed, argument ),1793i = matched.length;1794while ( i-- ) {1795idx = indexOf.call( seed, matched[i] );1796seed[ idx ] = !( matches[ idx ] = matched[i] );1797}1798}) :1799function( elem ) {1800return fn( elem, 0, args );1801};1802}18031804return fn;1805}1806},18071808pseudos: {1809// Potentially complex pseudos1810"not": markFunction(function( selector ) {1811// Trim the selector passed to compile1812// to avoid treating leading and trailing1813// spaces as combinators1814var input = [],1815results = [],1816matcher = compile( selector.replace( rtrim, "$1" ) );18171818return matcher[ expando ] ?1819markFunction(function( seed, matches, context, xml ) {1820var elem,1821unmatched = matcher( seed, null, xml, [] ),1822i = seed.length;18231824// Match elements unmatched by `matcher`1825while ( i-- ) {1826if ( (elem = unmatched[i]) ) {1827seed[i] = !(matches[i] = elem);1828}1829}1830}) :1831function( elem, context, xml ) {1832input[0] = elem;1833matcher( input, null, xml, results );1834return !results.pop();1835};1836}),18371838"has": markFunction(function( selector ) {1839return function( elem ) {1840return Sizzle( selector, elem ).length > 0;1841};1842}),18431844"contains": markFunction(function( text ) {1845return function( elem ) {1846return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1;1847};1848}),18491850// "Whether an element is represented by a :lang() selector1851// is based solely on the element's language value1852// being equal to the identifier C,1853// or beginning with the identifier C immediately followed by "-".1854// The matching of C against the element's language value is performed case-insensitively.1855// The identifier C does not have to be a valid language name."1856// http://www.w3.org/TR/selectors/#lang-pseudo1857"lang": markFunction( function( lang ) {1858// lang value must be a valid identifier1859if ( !ridentifier.test(lang || "") ) {1860Sizzle.error( "unsupported lang: " + lang );1861}1862lang = lang.replace( runescape, funescape ).toLowerCase();1863return function( elem ) {1864var elemLang;1865do {1866if ( (elemLang = documentIsHTML ?1867elem.lang :1868elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) {18691870elemLang = elemLang.toLowerCase();1871return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0;1872}1873} while ( (elem = elem.parentNode) && elem.nodeType === 1 );1874return false;1875};1876}),18771878// Miscellaneous1879"target": function( elem ) {1880var hash = window.location && window.location.hash;1881return hash && hash.slice( 1 ) === elem.id;1882},18831884"root": function( elem ) {1885return elem === docElem;1886},18871888"focus": function( elem ) {1889return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex);1890},18911892// Boolean properties1893"enabled": function( elem ) {1894return elem.disabled === false;1895},18961897"disabled": function( elem ) {1898return elem.disabled === true;1899},19001901"checked": function( elem ) {1902// In CSS3, :checked should return both checked and selected elements1903// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked1904var nodeName = elem.nodeName.toLowerCase();1905return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected);1906},19071908"selected": function( elem ) {1909// Accessing this property makes selected-by-default1910// options in Safari work properly1911if ( elem.parentNode ) {1912elem.parentNode.selectedIndex;1913}19141915return elem.selected === true;1916},19171918// Contents1919"empty": function( elem ) {1920// http://www.w3.org/TR/selectors/#empty-pseudo1921// :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),1922// but not by others (comment: 8; processing instruction: 7; etc.)1923// nodeType < 6 works because attributes (2) do not appear as children1924for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {1925if ( elem.nodeType < 6 ) {1926return false;1927}1928}1929return true;1930},19311932"parent": function( elem ) {1933return !Expr.pseudos["empty"]( elem );1934},19351936// Element/input types1937"header": function( elem ) {1938return rheader.test( elem.nodeName );1939},19401941"input": function( elem ) {1942return rinputs.test( elem.nodeName );1943},19441945"button": function( elem ) {1946var name = elem.nodeName.toLowerCase();1947return name === "input" && elem.type === "button" || name === "button";1948},19491950"text": function( elem ) {1951var attr;1952return elem.nodeName.toLowerCase() === "input" &&1953elem.type === "text" &&19541955// Support: IE<81956// New HTML5 attribute values (e.g., "search") appear with elem.type === "text"1957( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" );1958},19591960// Position-in-collection1961"first": createPositionalPseudo(function() {1962return [ 0 ];1963}),19641965"last": createPositionalPseudo(function( matchIndexes, length ) {1966return [ length - 1 ];1967}),19681969"eq": createPositionalPseudo(function( matchIndexes, length, argument ) {1970return [ argument < 0 ? argument + length : argument ];1971}),19721973"even": createPositionalPseudo(function( matchIndexes, length ) {1974var i = 0;1975for ( ; i < length; i += 2 ) {1976matchIndexes.push( i );1977}1978return matchIndexes;1979}),19801981"odd": createPositionalPseudo(function( matchIndexes, length ) {1982var i = 1;1983for ( ; i < length; i += 2 ) {1984matchIndexes.push( i );1985}1986return matchIndexes;1987}),19881989"lt": createPositionalPseudo(function( matchIndexes, length, argument ) {1990var i = argument < 0 ? argument + length : argument;1991for ( ; --i >= 0; ) {1992matchIndexes.push( i );1993}1994return matchIndexes;1995}),19961997"gt": createPositionalPseudo(function( matchIndexes, length, argument ) {1998var i = argument < 0 ? argument + length : argument;1999for ( ; ++i < length; ) {2000matchIndexes.push( i );2001}2002return matchIndexes;2003})2004}2005};20062007Expr.pseudos["nth"] = Expr.pseudos["eq"];20082009// Add button/input type pseudos2010for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {2011Expr.pseudos[ i ] = createInputPseudo( i );2012}2013for ( i in { submit: true, reset: true } ) {2014Expr.pseudos[ i ] = createButtonPseudo( i );2015}20162017// Easy API for creating new setFilters2018function setFilters() {}2019setFilters.prototype = Expr.filters = Expr.pseudos;2020Expr.setFilters = new setFilters();20212022function tokenize( selector, parseOnly ) {2023var matched, match, tokens, type,2024soFar, groups, preFilters,2025cached = tokenCache[ selector + " " ];20262027if ( cached ) {2028return parseOnly ? 0 : cached.slice( 0 );2029}20302031soFar = selector;2032groups = [];2033preFilters = Expr.preFilter;20342035while ( soFar ) {20362037// Comma and first run2038if ( !matched || (match = rcomma.exec( soFar )) ) {2039if ( match ) {2040// Don't consume trailing commas as valid2041soFar = soFar.slice( match[0].length ) || soFar;2042}2043groups.push( (tokens = []) );2044}20452046matched = false;20472048// Combinators2049if ( (match = rcombinators.exec( soFar )) ) {2050matched = match.shift();2051tokens.push({2052value: matched,2053// Cast descendant combinators to space2054type: match[0].replace( rtrim, " " )2055});2056soFar = soFar.slice( matched.length );2057}20582059// Filters2060for ( type in Expr.filter ) {2061if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] ||2062(match = preFilters[ type ]( match ))) ) {2063matched = match.shift();2064tokens.push({2065value: matched,2066type: type,2067matches: match2068});2069soFar = soFar.slice( matched.length );2070}2071}20722073if ( !matched ) {2074break;2075}2076}20772078// Return the length of the invalid excess2079// if we're just parsing2080// Otherwise, throw an error or return tokens2081return parseOnly ?2082soFar.length :2083soFar ?2084Sizzle.error( selector ) :2085// Cache the tokens2086tokenCache( selector, groups ).slice( 0 );2087}20882089function toSelector( tokens ) {2090var i = 0,2091len = tokens.length,2092selector = "";2093for ( ; i < len; i++ ) {2094selector += tokens[i].value;2095}2096return selector;2097}20982099function addCombinator( matcher, combinator, base ) {2100var dir = combinator.dir,2101checkNonElements = base && dir === "parentNode",2102doneName = done++;21032104return combinator.first ?2105// Check against closest ancestor/preceding element2106function( elem, context, xml ) {2107while ( (elem = elem[ dir ]) ) {2108if ( elem.nodeType === 1 || checkNonElements ) {2109return matcher( elem, context, xml );2110}2111}2112} :21132114// Check against all ancestor/preceding elements2115function( elem, context, xml ) {2116var oldCache, outerCache,2117newCache = [ dirruns, doneName ];21182119// We can't set arbitrary data on XML nodes, so they don't benefit from dir caching2120if ( xml ) {2121while ( (elem = elem[ dir ]) ) {2122if ( elem.nodeType === 1 || checkNonElements ) {2123if ( matcher( elem, context, xml ) ) {2124return true;2125}2126}2127}2128} else {2129while ( (elem = elem[ dir ]) ) {2130if ( elem.nodeType === 1 || checkNonElements ) {2131outerCache = elem[ expando ] || (elem[ expando ] = {});2132if ( (oldCache = outerCache[ dir ]) &&2133oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) {21342135// Assign to newCache so results back-propagate to previous elements2136return (newCache[ 2 ] = oldCache[ 2 ]);2137} else {2138// Reuse newcache so results back-propagate to previous elements2139outerCache[ dir ] = newCache;21402141// A match means we're done; a fail means we have to keep checking2142if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) {2143return true;2144}2145}2146}2147}2148}2149};2150}21512152function elementMatcher( matchers ) {2153return matchers.length > 1 ?2154function( elem, context, xml ) {2155var i = matchers.length;2156while ( i-- ) {2157if ( !matchers[i]( elem, context, xml ) ) {2158return false;2159}2160}2161return true;2162} :2163matchers[0];2164}21652166function condense( unmatched, map, filter, context, xml ) {2167var elem,2168newUnmatched = [],2169i = 0,2170len = unmatched.length,2171mapped = map != null;21722173for ( ; i < len; i++ ) {2174if ( (elem = unmatched[i]) ) {2175if ( !filter || filter( elem, context, xml ) ) {2176newUnmatched.push( elem );2177if ( mapped ) {2178map.push( i );2179}2180}2181}2182}21832184return newUnmatched;2185}21862187function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {2188if ( postFilter && !postFilter[ expando ] ) {2189postFilter = setMatcher( postFilter );2190}2191if ( postFinder && !postFinder[ expando ] ) {2192postFinder = setMatcher( postFinder, postSelector );2193}2194return markFunction(function( seed, results, context, xml ) {2195var temp, i, elem,2196preMap = [],2197postMap = [],2198preexisting = results.length,21992200// Get initial elements from seed or context2201elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ),22022203// Prefilter to get matcher input, preserving a map for seed-results synchronization2204matcherIn = preFilter && ( seed || !selector ) ?2205condense( elems, preMap, preFilter, context, xml ) :2206elems,22072208matcherOut = matcher ?2209// If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,2210postFinder || ( seed ? preFilter : preexisting || postFilter ) ?22112212// ...intermediate processing is necessary2213[] :22142215// ...otherwise use results directly2216results :2217matcherIn;22182219// Find primary matches2220if ( matcher ) {2221matcher( matcherIn, matcherOut, context, xml );2222}22232224// Apply postFilter2225if ( postFilter ) {2226temp = condense( matcherOut, postMap );2227postFilter( temp, [], context, xml );22282229// Un-match failing elements by moving them back to matcherIn2230i = temp.length;2231while ( i-- ) {2232if ( (elem = temp[i]) ) {2233matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem);2234}2235}2236}22372238if ( seed ) {2239if ( postFinder || preFilter ) {2240if ( postFinder ) {2241// Get the final matcherOut by condensing this intermediate into postFinder contexts2242temp = [];2243i = matcherOut.length;2244while ( i-- ) {2245if ( (elem = matcherOut[i]) ) {2246// Restore matcherIn since elem is not yet a final match2247temp.push( (matcherIn[i] = elem) );2248}2249}2250postFinder( null, (matcherOut = []), temp, xml );2251}22522253// Move matched elements from seed to results to keep them synchronized2254i = matcherOut.length;2255while ( i-- ) {2256if ( (elem = matcherOut[i]) &&2257(temp = postFinder ? indexOf.call( seed, elem ) : preMap[i]) > -1 ) {22582259seed[temp] = !(results[temp] = elem);2260}2261}2262}22632264// Add elements to results, through postFinder if defined2265} else {2266matcherOut = condense(2267matcherOut === results ?2268matcherOut.splice( preexisting, matcherOut.length ) :2269matcherOut2270);2271if ( postFinder ) {2272postFinder( null, results, matcherOut, xml );2273} else {2274push.apply( results, matcherOut );2275}2276}2277});2278}22792280function matcherFromTokens( tokens ) {2281var checkContext, matcher, j,2282len = tokens.length,2283leadingRelative = Expr.relative[ tokens[0].type ],2284implicitRelative = leadingRelative || Expr.relative[" "],2285i = leadingRelative ? 1 : 0,22862287// The foundational matcher ensures that elements are reachable from top-level context(s)2288matchContext = addCombinator( function( elem ) {2289return elem === checkContext;2290}, implicitRelative, true ),2291matchAnyContext = addCombinator( function( elem ) {2292return indexOf.call( checkContext, elem ) > -1;2293}, implicitRelative, true ),2294matchers = [ function( elem, context, xml ) {2295return ( !leadingRelative && ( xml || context !== outermostContext ) ) || (2296(checkContext = context).nodeType ?2297matchContext( elem, context, xml ) :2298matchAnyContext( elem, context, xml ) );2299} ];23002301for ( ; i < len; i++ ) {2302if ( (matcher = Expr.relative[ tokens[i].type ]) ) {2303matchers = [ addCombinator(elementMatcher( matchers ), matcher) ];2304} else {2305matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches );23062307// Return special upon seeing a positional matcher2308if ( matcher[ expando ] ) {2309// Find the next relative operator (if any) for proper handling2310j = ++i;2311for ( ; j < len; j++ ) {2312if ( Expr.relative[ tokens[j].type ] ) {2313break;2314}2315}2316return setMatcher(2317i > 1 && elementMatcher( matchers ),2318i > 1 && toSelector(2319// If the preceding token was a descendant combinator, insert an implicit any-element `*`2320tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" })2321).replace( rtrim, "$1" ),2322matcher,2323i < j && matcherFromTokens( tokens.slice( i, j ) ),2324j < len && matcherFromTokens( (tokens = tokens.slice( j )) ),2325j < len && toSelector( tokens )2326);2327}2328matchers.push( matcher );2329}2330}23312332return elementMatcher( matchers );2333}23342335function matcherFromGroupMatchers( elementMatchers, setMatchers ) {2336var bySet = setMatchers.length > 0,2337byElement = elementMatchers.length > 0,2338superMatcher = function( seed, context, xml, results, outermost ) {2339var elem, j, matcher,2340matchedCount = 0,2341i = "0",2342unmatched = seed && [],2343setMatched = [],2344contextBackup = outermostContext,2345// We must always have either seed elements or outermost context2346elems = seed || byElement && Expr.find["TAG"]( "*", outermost ),2347// Use integer dirruns iff this is the outermost matcher2348dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1),2349len = elems.length;23502351if ( outermost ) {2352outermostContext = context !== document && context;2353}23542355// Add elements passing elementMatchers directly to results2356// Keep `i` a string if there are no elements so `matchedCount` will be "00" below2357// Support: IE<9, Safari2358// Tolerate NodeList properties (IE: "length"; Safari: <number>) matching elements by id2359for ( ; i !== len && (elem = elems[i]) != null; i++ ) {2360if ( byElement && elem ) {2361j = 0;2362while ( (matcher = elementMatchers[j++]) ) {2363if ( matcher( elem, context, xml ) ) {2364results.push( elem );2365break;2366}2367}2368if ( outermost ) {2369dirruns = dirrunsUnique;2370}2371}23722373// Track unmatched elements for set filters2374if ( bySet ) {2375// They will have gone through all possible matchers2376if ( (elem = !matcher && elem) ) {2377matchedCount--;2378}23792380// Lengthen the array for every element, matched or not2381if ( seed ) {2382unmatched.push( elem );2383}2384}2385}23862387// Apply set filters to unmatched elements2388matchedCount += i;2389if ( bySet && i !== matchedCount ) {2390j = 0;2391while ( (matcher = setMatchers[j++]) ) {2392matcher( unmatched, setMatched, context, xml );2393}23942395if ( seed ) {2396// Reintegrate element matches to eliminate the need for sorting2397if ( matchedCount > 0 ) {2398while ( i-- ) {2399if ( !(unmatched[i] || setMatched[i]) ) {2400setMatched[i] = pop.call( results );2401}2402}2403}24042405// Discard index placeholder values to get only actual matches2406setMatched = condense( setMatched );2407}24082409// Add matches to results2410push.apply( results, setMatched );24112412// Seedless set matches succeeding multiple successful matchers stipulate sorting2413if ( outermost && !seed && setMatched.length > 0 &&2414( matchedCount + setMatchers.length ) > 1 ) {24152416Sizzle.uniqueSort( results );2417}2418}24192420// Override manipulation of globals by nested matchers2421if ( outermost ) {2422dirruns = dirrunsUnique;2423outermostContext = contextBackup;2424}24252426return unmatched;2427};24282429return bySet ?2430markFunction( superMatcher ) :2431superMatcher;2432}24332434compile = Sizzle.compile = function( selector, group /* Internal Use Only */ ) {2435var i,2436setMatchers = [],2437elementMatchers = [],2438cached = compilerCache[ selector + " " ];24392440if ( !cached ) {2441// Generate a function of recursive functions that can be used to check each element2442if ( !group ) {2443group = tokenize( selector );2444}2445i = group.length;2446while ( i-- ) {2447cached = matcherFromTokens( group[i] );2448if ( cached[ expando ] ) {2449setMatchers.push( cached );2450} else {2451elementMatchers.push( cached );2452}2453}24542455// Cache the compiled function2456cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) );2457}2458return cached;2459};24602461function multipleContexts( selector, contexts, results ) {2462var i = 0,2463len = contexts.length;2464for ( ; i < len; i++ ) {2465Sizzle( selector, contexts[i], results );2466}2467return results;2468}24692470function select( selector, context, results, seed ) {2471var i, tokens, token, type, find,2472match = tokenize( selector );24732474if ( !seed ) {2475// Try to minimize operations if there is only one group2476if ( match.length === 1 ) {24772478// Take a shortcut and set the context if the root selector is an ID2479tokens = match[0] = match[0].slice( 0 );2480if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&2481support.getById && context.nodeType === 9 && documentIsHTML &&2482Expr.relative[ tokens[1].type ] ) {24832484context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];2485if ( !context ) {2486return results;2487}2488selector = selector.slice( tokens.shift().value.length );2489}24902491// Fetch a seed set for right-to-left matching2492i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length;2493while ( i-- ) {2494token = tokens[i];24952496// Abort if we hit a combinator2497if ( Expr.relative[ (type = token.type) ] ) {2498break;2499}2500if ( (find = Expr.find[ type ]) ) {2501// Search, expanding context for leading sibling combinators2502if ( (seed = find(2503token.matches[0].replace( runescape, funescape ),2504rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context2505)) ) {25062507// If seed is empty or no tokens remain, we can return early2508tokens.splice( i, 1 );2509selector = seed.length && toSelector( tokens );2510if ( !selector ) {2511push.apply( results, seed );2512return results;2513}25142515break;2516}2517}2518}2519}2520}25212522// Compile and execute a filtering function2523// Provide `match` to avoid retokenization if we modified the selector above2524compile( selector, match )(2525seed,2526context,2527!documentIsHTML,2528results,2529rsibling.test( selector ) && testContext( context.parentNode ) || context2530);2531return results;2532}25332534// One-time assignments25352536// Sort stability2537support.sortStable = expando.split("").sort( sortOrder ).join("") === expando;25382539// Support: Chrome<142540// Always assume duplicates if they aren't passed to the comparison function2541support.detectDuplicates = !!hasDuplicate;25422543// Initialize against the default document2544setDocument();25452546// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)2547// Detached nodes confoundingly follow *each other*2548support.sortDetached = assert(function( div1 ) {2549// Should return 1, but returns 4 (following)2550return div1.compareDocumentPosition( document.createElement("div") ) & 1;2551});25522553// Support: IE<82554// Prevent attribute/property "interpolation"2555// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx2556if ( !assert(function( div ) {2557div.innerHTML = "<a href='#'></a>";2558return div.firstChild.getAttribute("href") === "#" ;2559}) ) {2560addHandle( "type|href|height|width", function( elem, name, isXML ) {2561if ( !isXML ) {2562return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 );2563}2564});2565}25662567// Support: IE<92568// Use defaultValue in place of getAttribute("value")2569if ( !support.attributes || !assert(function( div ) {2570div.innerHTML = "<input/>";2571div.firstChild.setAttribute( "value", "" );2572return div.firstChild.getAttribute( "value" ) === "";2573}) ) {2574addHandle( "value", function( elem, name, isXML ) {2575if ( !isXML && elem.nodeName.toLowerCase() === "input" ) {2576return elem.defaultValue;2577}2578});2579}25802581// Support: IE<92582// Use getAttributeNode to fetch booleans when getAttribute lies2583if ( !assert(function( div ) {2584return div.getAttribute("disabled") == null;2585}) ) {2586addHandle( booleans, function( elem, name, isXML ) {2587var val;2588if ( !isXML ) {2589return elem[ name ] === true ? name.toLowerCase() :2590(val = elem.getAttributeNode( name )) && val.specified ?2591val.value :2592null;2593}2594});2595}25962597return Sizzle;25982599})( window );2600260126022603jQuery.find = Sizzle;2604jQuery.expr = Sizzle.selectors;2605jQuery.expr[":"] = jQuery.expr.pseudos;2606jQuery.unique = Sizzle.uniqueSort;2607jQuery.text = Sizzle.getText;2608jQuery.isXMLDoc = Sizzle.isXML;2609jQuery.contains = Sizzle.contains;2610261126122613var rneedsContext = jQuery.expr.match.needsContext;26142615var rsingleTag = (/^<(\w+)\s*\/?>(?:<\/\1>|)$/);2616261726182619var risSimple = /^.[^:#\[\.,]*$/;26202621// Implement the identical functionality for filter and not2622function winnow( elements, qualifier, not ) {2623if ( jQuery.isFunction( qualifier ) ) {2624return jQuery.grep( elements, function( elem, i ) {2625/* jshint -W018 */2626return !!qualifier.call( elem, i, elem ) !== not;2627});26282629}26302631if ( qualifier.nodeType ) {2632return jQuery.grep( elements, function( elem ) {2633return ( elem === qualifier ) !== not;2634});26352636}26372638if ( typeof qualifier === "string" ) {2639if ( risSimple.test( qualifier ) ) {2640return jQuery.filter( qualifier, elements, not );2641}26422643qualifier = jQuery.filter( qualifier, elements );2644}26452646return jQuery.grep( elements, function( elem ) {2647return ( jQuery.inArray( elem, qualifier ) >= 0 ) !== not;2648});2649}26502651jQuery.filter = function( expr, elems, not ) {2652var elem = elems[ 0 ];26532654if ( not ) {2655expr = ":not(" + expr + ")";2656}26572658return elems.length === 1 && elem.nodeType === 1 ?2659jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [] :2660jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {2661return elem.nodeType === 1;2662}));2663};26642665jQuery.fn.extend({2666find: function( selector ) {2667var i,2668ret = [],2669self = this,2670len = self.length;26712672if ( typeof selector !== "string" ) {2673return this.pushStack( jQuery( selector ).filter(function() {2674for ( i = 0; i < len; i++ ) {2675if ( jQuery.contains( self[ i ], this ) ) {2676return true;2677}2678}2679}) );2680}26812682for ( i = 0; i < len; i++ ) {2683jQuery.find( selector, self[ i ], ret );2684}26852686// Needed because $( selector, context ) becomes $( context ).find( selector )2687ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret );2688ret.selector = this.selector ? this.selector + " " + selector : selector;2689return ret;2690},2691filter: function( selector ) {2692return this.pushStack( winnow(this, selector || [], false) );2693},2694not: function( selector ) {2695return this.pushStack( winnow(this, selector || [], true) );2696},2697is: function( selector ) {2698return !!winnow(2699this,27002701// If this is a positional/relative selector, check membership in the returned set2702// so $("p:first").is("p:last") won't return true for a doc with two "p".2703typeof selector === "string" && rneedsContext.test( selector ) ?2704jQuery( selector ) :2705selector || [],2706false2707).length;2708}2709});271027112712// Initialize a jQuery object271327142715// A central reference to the root jQuery(document)2716var rootjQuery,27172718// Use the correct document accordingly with window argument (sandbox)2719document = window.document,27202721// A simple way to check for HTML strings2722// Prioritize #id over <tag> to avoid XSS via location.hash (#9521)2723// Strict HTML recognition (#11290: must start with <)2724rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,27252726init = jQuery.fn.init = function( selector, context ) {2727var match, elem;27282729// HANDLE: $(""), $(null), $(undefined), $(false)2730if ( !selector ) {2731return this;2732}27332734// Handle HTML strings2735if ( typeof selector === "string" ) {2736if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) {2737// Assume that strings that start and end with <> are HTML and skip the regex check2738match = [ null, selector, null ];27392740} else {2741match = rquickExpr.exec( selector );2742}27432744// Match html or make sure no context is specified for #id2745if ( match && (match[1] || !context) ) {27462747// HANDLE: $(html) -> $(array)2748if ( match[1] ) {2749context = context instanceof jQuery ? context[0] : context;27502751// scripts is true for back-compat2752// Intentionally let the error be thrown if parseHTML is not present2753jQuery.merge( this, jQuery.parseHTML(2754match[1],2755context && context.nodeType ? context.ownerDocument || context : document,2756true2757) );27582759// HANDLE: $(html, props)2760if ( rsingleTag.test( match[1] ) && jQuery.isPlainObject( context ) ) {2761for ( match in context ) {2762// Properties of context are called as methods if possible2763if ( jQuery.isFunction( this[ match ] ) ) {2764this[ match ]( context[ match ] );27652766// ...and otherwise set as attributes2767} else {2768this.attr( match, context[ match ] );2769}2770}2771}27722773return this;27742775// HANDLE: $(#id)2776} else {2777elem = document.getElementById( match[2] );27782779// Check parentNode to catch when Blackberry 4.6 returns2780// nodes that are no longer in the document #69632781if ( elem && elem.parentNode ) {2782// Handle the case where IE and Opera return items2783// by name instead of ID2784if ( elem.id !== match[2] ) {2785return rootjQuery.find( selector );2786}27872788// Otherwise, we inject the element directly into the jQuery object2789this.length = 1;2790this[0] = elem;2791}27922793this.context = document;2794this.selector = selector;2795return this;2796}27972798// HANDLE: $(expr, $(...))2799} else if ( !context || context.jquery ) {2800return ( context || rootjQuery ).find( selector );28012802// HANDLE: $(expr, context)2803// (which is just equivalent to: $(context).find(expr)2804} else {2805return this.constructor( context ).find( selector );2806}28072808// HANDLE: $(DOMElement)2809} else if ( selector.nodeType ) {2810this.context = this[0] = selector;2811this.length = 1;2812return this;28132814// HANDLE: $(function)2815// Shortcut for document ready2816} else if ( jQuery.isFunction( selector ) ) {2817return typeof rootjQuery.ready !== "undefined" ?2818rootjQuery.ready( selector ) :2819// Execute immediately if ready is not present2820selector( jQuery );2821}28222823if ( selector.selector !== undefined ) {2824this.selector = selector.selector;2825this.context = selector.context;2826}28272828return jQuery.makeArray( selector, this );2829};28302831// Give the init function the jQuery prototype for later instantiation2832init.prototype = jQuery.fn;28332834// Initialize central reference2835rootjQuery = jQuery( document );283628372838var rparentsprev = /^(?:parents|prev(?:Until|All))/,2839// methods guaranteed to produce a unique set when starting from a unique set2840guaranteedUnique = {2841children: true,2842contents: true,2843next: true,2844prev: true2845};28462847jQuery.extend({2848dir: function( elem, dir, until ) {2849var matched = [],2850cur = elem[ dir ];28512852while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) {2853if ( cur.nodeType === 1 ) {2854matched.push( cur );2855}2856cur = cur[dir];2857}2858return matched;2859},28602861sibling: function( n, elem ) {2862var r = [];28632864for ( ; n; n = n.nextSibling ) {2865if ( n.nodeType === 1 && n !== elem ) {2866r.push( n );2867}2868}28692870return r;2871}2872});28732874jQuery.fn.extend({2875has: function( target ) {2876var i,2877targets = jQuery( target, this ),2878len = targets.length;28792880return this.filter(function() {2881for ( i = 0; i < len; i++ ) {2882if ( jQuery.contains( this, targets[i] ) ) {2883return true;2884}2885}2886});2887},28882889closest: function( selectors, context ) {2890var cur,2891i = 0,2892l = this.length,2893matched = [],2894pos = rneedsContext.test( selectors ) || typeof selectors !== "string" ?2895jQuery( selectors, context || this.context ) :28960;28972898for ( ; i < l; i++ ) {2899for ( cur = this[i]; cur && cur !== context; cur = cur.parentNode ) {2900// Always skip document fragments2901if ( cur.nodeType < 11 && (pos ?2902pos.index(cur) > -1 :29032904// Don't pass non-elements to Sizzle2905cur.nodeType === 1 &&2906jQuery.find.matchesSelector(cur, selectors)) ) {29072908matched.push( cur );2909break;2910}2911}2912}29132914return this.pushStack( matched.length > 1 ? jQuery.unique( matched ) : matched );2915},29162917// Determine the position of an element within2918// the matched set of elements2919index: function( elem ) {29202921// No argument, return index in parent2922if ( !elem ) {2923return ( this[0] && this[0].parentNode ) ? this.first().prevAll().length : -1;2924}29252926// index in selector2927if ( typeof elem === "string" ) {2928return jQuery.inArray( this[0], jQuery( elem ) );2929}29302931// Locate the position of the desired element2932return jQuery.inArray(2933// If it receives a jQuery object, the first element is used2934elem.jquery ? elem[0] : elem, this );2935},29362937add: function( selector, context ) {2938return this.pushStack(2939jQuery.unique(2940jQuery.merge( this.get(), jQuery( selector, context ) )2941)2942);2943},29442945addBack: function( selector ) {2946return this.add( selector == null ?2947this.prevObject : this.prevObject.filter(selector)2948);2949}2950});29512952function sibling( cur, dir ) {2953do {2954cur = cur[ dir ];2955} while ( cur && cur.nodeType !== 1 );29562957return cur;2958}29592960jQuery.each({2961parent: function( elem ) {2962var parent = elem.parentNode;2963return parent && parent.nodeType !== 11 ? parent : null;2964},2965parents: function( elem ) {2966return jQuery.dir( elem, "parentNode" );2967},2968parentsUntil: function( elem, i, until ) {2969return jQuery.dir( elem, "parentNode", until );2970},2971next: function( elem ) {2972return sibling( elem, "nextSibling" );2973},2974prev: function( elem ) {2975return sibling( elem, "previousSibling" );2976},2977nextAll: function( elem ) {2978return jQuery.dir( elem, "nextSibling" );2979},2980prevAll: function( elem ) {2981return jQuery.dir( elem, "previousSibling" );2982},2983nextUntil: function( elem, i, until ) {2984return jQuery.dir( elem, "nextSibling", until );2985},2986prevUntil: function( elem, i, until ) {2987return jQuery.dir( elem, "previousSibling", until );2988},2989siblings: function( elem ) {2990return jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem );2991},2992children: function( elem ) {2993return jQuery.sibling( elem.firstChild );2994},2995contents: function( elem ) {2996return jQuery.nodeName( elem, "iframe" ) ?2997elem.contentDocument || elem.contentWindow.document :2998jQuery.merge( [], elem.childNodes );2999}3000}, function( name, fn ) {3001jQuery.fn[ name ] = function( until, selector ) {3002var ret = jQuery.map( this, fn, until );30033004if ( name.slice( -5 ) !== "Until" ) {3005selector = until;3006}30073008if ( selector && typeof selector === "string" ) {3009ret = jQuery.filter( selector, ret );3010}30113012if ( this.length > 1 ) {3013// Remove duplicates3014if ( !guaranteedUnique[ name ] ) {3015ret = jQuery.unique( ret );3016}30173018// Reverse order for parents* and prev-derivatives3019if ( rparentsprev.test( name ) ) {3020ret = ret.reverse();3021}3022}30233024return this.pushStack( ret );3025};3026});3027var rnotwhite = (/\S+/g);3028302930303031// String to Object options format cache3032var optionsCache = {};30333034// Convert String-formatted options into Object-formatted ones and store in cache3035function createOptions( options ) {3036var object = optionsCache[ options ] = {};3037jQuery.each( options.match( rnotwhite ) || [], function( _, flag ) {3038object[ flag ] = true;3039});3040return object;3041}30423043/*3044* Create a callback list using the following parameters:3045*3046* options: an optional list of space-separated options that will change how3047* the callback list behaves or a more traditional option object3048*3049* By default a callback list will act like an event callback list and can be3050* "fired" multiple times.3051*3052* Possible options:3053*3054* once: will ensure the callback list can only be fired once (like a Deferred)3055*3056* memory: will keep track of previous values and will call any callback added3057* after the list has been fired right away with the latest "memorized"3058* values (like a Deferred)3059*3060* unique: will ensure a callback can only be added once (no duplicate in the list)3061*3062* stopOnFalse: interrupt callings when a callback returns false3063*3064*/3065jQuery.Callbacks = function( options ) {30663067// Convert options from String-formatted to Object-formatted if needed3068// (we check in cache first)3069options = typeof options === "string" ?3070( optionsCache[ options ] || createOptions( options ) ) :3071jQuery.extend( {}, options );30723073var // Flag to know if list is currently firing3074firing,3075// Last fire value (for non-forgettable lists)3076memory,3077// Flag to know if list was already fired3078fired,3079// End of the loop when firing3080firingLength,3081// Index of currently firing callback (modified by remove if needed)3082firingIndex,3083// First callback to fire (used internally by add and fireWith)3084firingStart,3085// Actual callback list3086list = [],3087// Stack of fire calls for repeatable lists3088stack = !options.once && [],3089// Fire callbacks3090fire = function( data ) {3091memory = options.memory && data;3092fired = true;3093firingIndex = firingStart || 0;3094firingStart = 0;3095firingLength = list.length;3096firing = true;3097for ( ; list && firingIndex < firingLength; firingIndex++ ) {3098if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) {3099memory = false; // To prevent further calls using add3100break;3101}3102}3103firing = false;3104if ( list ) {3105if ( stack ) {3106if ( stack.length ) {3107fire( stack.shift() );3108}3109} else if ( memory ) {3110list = [];3111} else {3112self.disable();3113}3114}3115},3116// Actual Callbacks object3117self = {3118// Add a callback or a collection of callbacks to the list3119add: function() {3120if ( list ) {3121// First, we save the current length3122var start = list.length;3123(function add( args ) {3124jQuery.each( args, function( _, arg ) {3125var type = jQuery.type( arg );3126if ( type === "function" ) {3127if ( !options.unique || !self.has( arg ) ) {3128list.push( arg );3129}3130} else if ( arg && arg.length && type !== "string" ) {3131// Inspect recursively3132add( arg );3133}3134});3135})( arguments );3136// Do we need to add the callbacks to the3137// current firing batch?3138if ( firing ) {3139firingLength = list.length;3140// With memory, if we're not firing then3141// we should call right away3142} else if ( memory ) {3143firingStart = start;3144fire( memory );3145}3146}3147return this;3148},3149// Remove a callback from the list3150remove: function() {3151if ( list ) {3152jQuery.each( arguments, function( _, arg ) {3153var index;3154while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {3155list.splice( index, 1 );3156// Handle firing indexes3157if ( firing ) {3158if ( index <= firingLength ) {3159firingLength--;3160}3161if ( index <= firingIndex ) {3162firingIndex--;3163}3164}3165}3166});3167}3168return this;3169},3170// Check if a given callback is in the list.3171// If no argument is given, return whether or not list has callbacks attached.3172has: function( fn ) {3173return fn ? jQuery.inArray( fn, list ) > -1 : !!( list && list.length );3174},3175// Remove all callbacks from the list3176empty: function() {3177list = [];3178firingLength = 0;3179return this;3180},3181// Have the list do nothing anymore3182disable: function() {3183list = stack = memory = undefined;3184return this;3185},3186// Is it disabled?3187disabled: function() {3188return !list;3189},3190// Lock the list in its current state3191lock: function() {3192stack = undefined;3193if ( !memory ) {3194self.disable();3195}3196return this;3197},3198// Is it locked?3199locked: function() {3200return !stack;3201},3202// Call all callbacks with the given context and arguments3203fireWith: function( context, args ) {3204if ( list && ( !fired || stack ) ) {3205args = args || [];3206args = [ context, args.slice ? args.slice() : args ];3207if ( firing ) {3208stack.push( args );3209} else {3210fire( args );3211}3212}3213return this;3214},3215// Call all the callbacks with the given arguments3216fire: function() {3217self.fireWith( this, arguments );3218return this;3219},3220// To know if the callbacks have already been called at least once3221fired: function() {3222return !!fired;3223}3224};32253226return self;3227};322832293230jQuery.extend({32313232Deferred: function( func ) {3233var tuples = [3234// action, add listener, listener list, final state3235[ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ],3236[ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ],3237[ "notify", "progress", jQuery.Callbacks("memory") ]3238],3239state = "pending",3240promise = {3241state: function() {3242return state;3243},3244always: function() {3245deferred.done( arguments ).fail( arguments );3246return this;3247},3248then: function( /* fnDone, fnFail, fnProgress */ ) {3249var fns = arguments;3250return jQuery.Deferred(function( newDefer ) {3251jQuery.each( tuples, function( i, tuple ) {3252var fn = jQuery.isFunction( fns[ i ] ) && fns[ i ];3253// deferred[ done | fail | progress ] for forwarding actions to newDefer3254deferred[ tuple[1] ](function() {3255var returned = fn && fn.apply( this, arguments );3256if ( returned && jQuery.isFunction( returned.promise ) ) {3257returned.promise()3258.done( newDefer.resolve )3259.fail( newDefer.reject )3260.progress( newDefer.notify );3261} else {3262newDefer[ tuple[ 0 ] + "With" ]( this === promise ? newDefer.promise() : this, fn ? [ returned ] : arguments );3263}3264});3265});3266fns = null;3267}).promise();3268},3269// Get a promise for this deferred3270// If obj is provided, the promise aspect is added to the object3271promise: function( obj ) {3272return obj != null ? jQuery.extend( obj, promise ) : promise;3273}3274},3275deferred = {};32763277// Keep pipe for back-compat3278promise.pipe = promise.then;32793280// Add list-specific methods3281jQuery.each( tuples, function( i, tuple ) {3282var list = tuple[ 2 ],3283stateString = tuple[ 3 ];32843285// promise[ done | fail | progress ] = list.add3286promise[ tuple[1] ] = list.add;32873288// Handle state3289if ( stateString ) {3290list.add(function() {3291// state = [ resolved | rejected ]3292state = stateString;32933294// [ reject_list | resolve_list ].disable; progress_list.lock3295}, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock );3296}32973298// deferred[ resolve | reject | notify ]3299deferred[ tuple[0] ] = function() {3300deferred[ tuple[0] + "With" ]( this === deferred ? promise : this, arguments );3301return this;3302};3303deferred[ tuple[0] + "With" ] = list.fireWith;3304});33053306// Make the deferred a promise3307promise.promise( deferred );33083309// Call given func if any3310if ( func ) {3311func.call( deferred, deferred );3312}33133314// All done!3315return deferred;3316},33173318// Deferred helper3319when: function( subordinate /* , ..., subordinateN */ ) {3320var i = 0,3321resolveValues = slice.call( arguments ),3322length = resolveValues.length,33233324// the count of uncompleted subordinates3325remaining = length !== 1 || ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0,33263327// the master Deferred. If resolveValues consist of only a single Deferred, just use that.3328deferred = remaining === 1 ? subordinate : jQuery.Deferred(),33293330// Update function for both resolve and progress values3331updateFunc = function( i, contexts, values ) {3332return function( value ) {3333contexts[ i ] = this;3334values[ i ] = arguments.length > 1 ? slice.call( arguments ) : value;3335if ( values === progressValues ) {3336deferred.notifyWith( contexts, values );33373338} else if ( !(--remaining) ) {3339deferred.resolveWith( contexts, values );3340}3341};3342},33433344progressValues, progressContexts, resolveContexts;33453346// add listeners to Deferred subordinates; treat others as resolved3347if ( length > 1 ) {3348progressValues = new Array( length );3349progressContexts = new Array( length );3350resolveContexts = new Array( length );3351for ( ; i < length; i++ ) {3352if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) {3353resolveValues[ i ].promise()3354.done( updateFunc( i, resolveContexts, resolveValues ) )3355.fail( deferred.reject )3356.progress( updateFunc( i, progressContexts, progressValues ) );3357} else {3358--remaining;3359}3360}3361}33623363// if we're not waiting on anything, resolve the master3364if ( !remaining ) {3365deferred.resolveWith( resolveContexts, resolveValues );3366}33673368return deferred.promise();3369}3370});337133723373// The deferred used on DOM ready3374var readyList;33753376jQuery.fn.ready = function( fn ) {3377// Add the callback3378jQuery.ready.promise().done( fn );33793380return this;3381};33823383jQuery.extend({3384// Is the DOM ready to be used? Set to true once it occurs.3385isReady: false,33863387// A counter to track how many items to wait for before3388// the ready event fires. See #67813389readyWait: 1,33903391// Hold (or release) the ready event3392holdReady: function( hold ) {3393if ( hold ) {3394jQuery.readyWait++;3395} else {3396jQuery.ready( true );3397}3398},33993400// Handle when the DOM is ready3401ready: function( wait ) {34023403// Abort if there are pending holds or we're already ready3404if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {3405return;3406}34073408// Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).3409if ( !document.body ) {3410return setTimeout( jQuery.ready );3411}34123413// Remember that the DOM is ready3414jQuery.isReady = true;34153416// If a normal DOM Ready event fired, decrement, and wait if need be3417if ( wait !== true && --jQuery.readyWait > 0 ) {3418return;3419}34203421// If there are functions bound, to execute3422readyList.resolveWith( document, [ jQuery ] );34233424// Trigger any bound ready events3425if ( jQuery.fn.trigger ) {3426jQuery( document ).trigger("ready").off("ready");3427}3428}3429});34303431/**3432* Clean-up method for dom ready events3433*/3434function detach() {3435if ( document.addEventListener ) {3436document.removeEventListener( "DOMContentLoaded", completed, false );3437window.removeEventListener( "load", completed, false );34383439} else {3440document.detachEvent( "onreadystatechange", completed );3441window.detachEvent( "onload", completed );3442}3443}34443445/**3446* The ready event handler and self cleanup method3447*/3448function completed() {3449// readyState === "complete" is good enough for us to call the dom ready in oldIE3450if ( document.addEventListener || event.type === "load" || document.readyState === "complete" ) {3451detach();3452jQuery.ready();3453}3454}34553456jQuery.ready.promise = function( obj ) {3457if ( !readyList ) {34583459readyList = jQuery.Deferred();34603461// Catch cases where $(document).ready() is called after the browser event has already occurred.3462// we once tried to use readyState "interactive" here, but it caused issues like the one3463// discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:153464if ( document.readyState === "complete" ) {3465// Handle it asynchronously to allow scripts the opportunity to delay ready3466setTimeout( jQuery.ready );34673468// Standards-based browsers support DOMContentLoaded3469} else if ( document.addEventListener ) {3470// Use the handy event callback3471document.addEventListener( "DOMContentLoaded", completed, false );34723473// A fallback to window.onload, that will always work3474window.addEventListener( "load", completed, false );34753476// If IE event model is used3477} else {3478// Ensure firing before onload, maybe late but safe also for iframes3479document.attachEvent( "onreadystatechange", completed );34803481// A fallback to window.onload, that will always work3482window.attachEvent( "onload", completed );34833484// If IE and not a frame3485// continually check to see if the document is ready3486var top = false;34873488try {3489top = window.frameElement == null && document.documentElement;3490} catch(e) {}34913492if ( top && top.doScroll ) {3493(function doScrollCheck() {3494if ( !jQuery.isReady ) {34953496try {3497// Use the trick by Diego Perini3498// http://javascript.nwbox.com/IEContentLoaded/3499top.doScroll("left");3500} catch(e) {3501return setTimeout( doScrollCheck, 50 );3502}35033504// detach all dom ready events3505detach();35063507// and execute any waiting functions3508jQuery.ready();3509}3510})();3511}3512}3513}3514return readyList.promise( obj );3515};351635173518var strundefined = typeof undefined;3519352035213522// Support: IE<93523// Iteration over object's inherited properties before its own3524var i;3525for ( i in jQuery( support ) ) {3526break;3527}3528support.ownLast = i !== "0";35293530// Note: most support tests are defined in their respective modules.3531// false until the test is run3532support.inlineBlockNeedsLayout = false;35333534jQuery(function() {3535// We need to execute this one support test ASAP because we need to know3536// if body.style.zoom needs to be set.35373538var container, div,3539body = document.getElementsByTagName("body")[0];35403541if ( !body ) {3542// Return for frameset docs that don't have a body3543return;3544}35453546// Setup3547container = document.createElement( "div" );3548container.style.cssText = "border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px";35493550div = document.createElement( "div" );3551body.appendChild( container ).appendChild( div );35523553if ( typeof div.style.zoom !== strundefined ) {3554// Support: IE<83555// Check if natively block-level elements act like inline-block3556// elements when setting their display to 'inline' and giving3557// them layout3558div.style.cssText = "border:0;margin:0;width:1px;padding:1px;display:inline;zoom:1";35593560if ( (support.inlineBlockNeedsLayout = ( div.offsetWidth === 3 )) ) {3561// Prevent IE 6 from affecting layout for positioned elements #110483562// Prevent IE from shrinking the body in IE 7 mode #128693563// Support: IE<83564body.style.zoom = 1;3565}3566}35673568body.removeChild( container );35693570// Null elements to avoid leaks in IE3571container = div = null;3572});35733574357535763577(function() {3578var div = document.createElement( "div" );35793580// Execute the test only if not already executed in another module.3581if (support.deleteExpando == null) {3582// Support: IE<93583support.deleteExpando = true;3584try {3585delete div.test;3586} catch( e ) {3587support.deleteExpando = false;3588}3589}35903591// Null elements to avoid leaks in IE.3592div = null;3593})();359435953596/**3597* Determines whether an object can have data3598*/3599jQuery.acceptData = function( elem ) {3600var noData = jQuery.noData[ (elem.nodeName + " ").toLowerCase() ],3601nodeType = +elem.nodeType || 1;36023603// Do not set data on non-element DOM nodes because it will not be cleared (#8335).3604return nodeType !== 1 && nodeType !== 9 ?3605false :36063607// Nodes accept data unless otherwise specified; rejection can be conditional3608!noData || noData !== true && elem.getAttribute("classid") === noData;3609};361036113612var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,3613rmultiDash = /([A-Z])/g;36143615function dataAttr( elem, key, data ) {3616// If nothing was found internally, try to fetch any3617// data from the HTML5 data-* attribute3618if ( data === undefined && elem.nodeType === 1 ) {36193620var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase();36213622data = elem.getAttribute( name );36233624if ( typeof data === "string" ) {3625try {3626data = data === "true" ? true :3627data === "false" ? false :3628data === "null" ? null :3629// Only convert to a number if it doesn't change the string3630+data + "" === data ? +data :3631rbrace.test( data ) ? jQuery.parseJSON( data ) :3632data;3633} catch( e ) {}36343635// Make sure we set the data so it isn't changed later3636jQuery.data( elem, key, data );36373638} else {3639data = undefined;3640}3641}36423643return data;3644}36453646// checks a cache object for emptiness3647function isEmptyDataObject( obj ) {3648var name;3649for ( name in obj ) {36503651// if the public data object is empty, the private is still empty3652if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) {3653continue;3654}3655if ( name !== "toJSON" ) {3656return false;3657}3658}36593660return true;3661}36623663function internalData( elem, name, data, pvt /* Internal Use Only */ ) {3664if ( !jQuery.acceptData( elem ) ) {3665return;3666}36673668var ret, thisCache,3669internalKey = jQuery.expando,36703671// We have to handle DOM nodes and JS objects differently because IE6-73672// can't GC object references properly across the DOM-JS boundary3673isNode = elem.nodeType,36743675// Only DOM nodes need the global jQuery cache; JS object data is3676// attached directly to the object so GC can occur automatically3677cache = isNode ? jQuery.cache : elem,36783679// Only defining an ID for JS objects if its cache already exists allows3680// the code to shortcut on the same path as a DOM node with no cache3681id = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey;36823683// Avoid doing any more work than we need to when trying to get data on an3684// object that has no data at all3685if ( (!id || !cache[id] || (!pvt && !cache[id].data)) && data === undefined && typeof name === "string" ) {3686return;3687}36883689if ( !id ) {3690// Only DOM nodes need a new unique ID for each element since their data3691// ends up in the global cache3692if ( isNode ) {3693id = elem[ internalKey ] = deletedIds.pop() || jQuery.guid++;3694} else {3695id = internalKey;3696}3697}36983699if ( !cache[ id ] ) {3700// Avoid exposing jQuery metadata on plain JS objects when the object3701// is serialized using JSON.stringify3702cache[ id ] = isNode ? {} : { toJSON: jQuery.noop };3703}37043705// An object can be passed to jQuery.data instead of a key/value pair; this gets3706// shallow copied over onto the existing cache3707if ( typeof name === "object" || typeof name === "function" ) {3708if ( pvt ) {3709cache[ id ] = jQuery.extend( cache[ id ], name );3710} else {3711cache[ id ].data = jQuery.extend( cache[ id ].data, name );3712}3713}37143715thisCache = cache[ id ];37163717// jQuery data() is stored in a separate object inside the object's internal data3718// cache in order to avoid key collisions between internal data and user-defined3719// data.3720if ( !pvt ) {3721if ( !thisCache.data ) {3722thisCache.data = {};3723}37243725thisCache = thisCache.data;3726}37273728if ( data !== undefined ) {3729thisCache[ jQuery.camelCase( name ) ] = data;3730}37313732// Check for both converted-to-camel and non-converted data property names3733// If a data property was specified3734if ( typeof name === "string" ) {37353736// First Try to find as-is property data3737ret = thisCache[ name ];37383739// Test for null|undefined property data3740if ( ret == null ) {37413742// Try to find the camelCased property3743ret = thisCache[ jQuery.camelCase( name ) ];3744}3745} else {3746ret = thisCache;3747}37483749return ret;3750}37513752function internalRemoveData( elem, name, pvt ) {3753if ( !jQuery.acceptData( elem ) ) {3754return;3755}37563757var thisCache, i,3758isNode = elem.nodeType,37593760// See jQuery.data for more information3761cache = isNode ? jQuery.cache : elem,3762id = isNode ? elem[ jQuery.expando ] : jQuery.expando;37633764// If there is already no cache entry for this object, there is no3765// purpose in continuing3766if ( !cache[ id ] ) {3767return;3768}37693770if ( name ) {37713772thisCache = pvt ? cache[ id ] : cache[ id ].data;37733774if ( thisCache ) {37753776// Support array or space separated string names for data keys3777if ( !jQuery.isArray( name ) ) {37783779// try the string as a key before any manipulation3780if ( name in thisCache ) {3781name = [ name ];3782} else {37833784// split the camel cased version by spaces unless a key with the spaces exists3785name = jQuery.camelCase( name );3786if ( name in thisCache ) {3787name = [ name ];3788} else {3789name = name.split(" ");3790}3791}3792} else {3793// If "name" is an array of keys...3794// When data is initially created, via ("key", "val") signature,3795// keys will be converted to camelCase.3796// Since there is no way to tell _how_ a key was added, remove3797// both plain key and camelCase key. #127863798// This will only penalize the array argument path.3799name = name.concat( jQuery.map( name, jQuery.camelCase ) );3800}38013802i = name.length;3803while ( i-- ) {3804delete thisCache[ name[i] ];3805}38063807// If there is no data left in the cache, we want to continue3808// and let the cache object itself get destroyed3809if ( pvt ? !isEmptyDataObject(thisCache) : !jQuery.isEmptyObject(thisCache) ) {3810return;3811}3812}3813}38143815// See jQuery.data for more information3816if ( !pvt ) {3817delete cache[ id ].data;38183819// Don't destroy the parent cache unless the internal data object3820// had been the only thing left in it3821if ( !isEmptyDataObject( cache[ id ] ) ) {3822return;3823}3824}38253826// Destroy the cache3827if ( isNode ) {3828jQuery.cleanData( [ elem ], true );38293830// Use delete when supported for expandos or `cache` is not a window per isWindow (#10080)3831/* jshint eqeqeq: false */3832} else if ( support.deleteExpando || cache != cache.window ) {3833/* jshint eqeqeq: true */3834delete cache[ id ];38353836// When all else fails, null3837} else {3838cache[ id ] = null;3839}3840}38413842jQuery.extend({3843cache: {},38443845// The following elements (space-suffixed to avoid Object.prototype collisions)3846// throw uncatchable exceptions if you attempt to set expando properties3847noData: {3848"applet ": true,3849"embed ": true,3850// ...but Flash objects (which have this classid) *can* handle expandos3851"object ": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"3852},38533854hasData: function( elem ) {3855elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ];3856return !!elem && !isEmptyDataObject( elem );3857},38583859data: function( elem, name, data ) {3860return internalData( elem, name, data );3861},38623863removeData: function( elem, name ) {3864return internalRemoveData( elem, name );3865},38663867// For internal use only.3868_data: function( elem, name, data ) {3869return internalData( elem, name, data, true );3870},38713872_removeData: function( elem, name ) {3873return internalRemoveData( elem, name, true );3874}3875});38763877jQuery.fn.extend({3878data: function( key, value ) {3879var i, name, data,3880elem = this[0],3881attrs = elem && elem.attributes;38823883// Special expections of .data basically thwart jQuery.access,3884// so implement the relevant behavior ourselves38853886// Gets all values3887if ( key === undefined ) {3888if ( this.length ) {3889data = jQuery.data( elem );38903891if ( elem.nodeType === 1 && !jQuery._data( elem, "parsedAttrs" ) ) {3892i = attrs.length;3893while ( i-- ) {3894name = attrs[i].name;38953896if ( name.indexOf("data-") === 0 ) {3897name = jQuery.camelCase( name.slice(5) );38983899dataAttr( elem, name, data[ name ] );3900}3901}3902jQuery._data( elem, "parsedAttrs", true );3903}3904}39053906return data;3907}39083909// Sets multiple values3910if ( typeof key === "object" ) {3911return this.each(function() {3912jQuery.data( this, key );3913});3914}39153916return arguments.length > 1 ?39173918// Sets one value3919this.each(function() {3920jQuery.data( this, key, value );3921}) :39223923// Gets one value3924// Try to fetch any internally stored data first3925elem ? dataAttr( elem, key, jQuery.data( elem, key ) ) : undefined;3926},39273928removeData: function( key ) {3929return this.each(function() {3930jQuery.removeData( this, key );3931});3932}3933});393439353936jQuery.extend({3937queue: function( elem, type, data ) {3938var queue;39393940if ( elem ) {3941type = ( type || "fx" ) + "queue";3942queue = jQuery._data( elem, type );39433944// Speed up dequeue by getting out quickly if this is just a lookup3945if ( data ) {3946if ( !queue || jQuery.isArray(data) ) {3947queue = jQuery._data( elem, type, jQuery.makeArray(data) );3948} else {3949queue.push( data );3950}3951}3952return queue || [];3953}3954},39553956dequeue: function( elem, type ) {3957type = type || "fx";39583959var queue = jQuery.queue( elem, type ),3960startLength = queue.length,3961fn = queue.shift(),3962hooks = jQuery._queueHooks( elem, type ),3963next = function() {3964jQuery.dequeue( elem, type );3965};39663967// If the fx queue is dequeued, always remove the progress sentinel3968if ( fn === "inprogress" ) {3969fn = queue.shift();3970startLength--;3971}39723973if ( fn ) {39743975// Add a progress sentinel to prevent the fx queue from being3976// automatically dequeued3977if ( type === "fx" ) {3978queue.unshift( "inprogress" );3979}39803981// clear up the last queue stop function3982delete hooks.stop;3983fn.call( elem, next, hooks );3984}39853986if ( !startLength && hooks ) {3987hooks.empty.fire();3988}3989},39903991// not intended for public consumption - generates a queueHooks object, or returns the current one3992_queueHooks: function( elem, type ) {3993var key = type + "queueHooks";3994return jQuery._data( elem, key ) || jQuery._data( elem, key, {3995empty: jQuery.Callbacks("once memory").add(function() {3996jQuery._removeData( elem, type + "queue" );3997jQuery._removeData( elem, key );3998})3999});4000}4001});40024003jQuery.fn.extend({4004queue: function( type, data ) {4005var setter = 2;40064007if ( typeof type !== "string" ) {4008data = type;4009type = "fx";4010setter--;4011}40124013if ( arguments.length < setter ) {4014return jQuery.queue( this[0], type );4015}40164017return data === undefined ?4018this :4019this.each(function() {4020var queue = jQuery.queue( this, type, data );40214022// ensure a hooks for this queue4023jQuery._queueHooks( this, type );40244025if ( type === "fx" && queue[0] !== "inprogress" ) {4026jQuery.dequeue( this, type );4027}4028});4029},4030dequeue: function( type ) {4031return this.each(function() {4032jQuery.dequeue( this, type );4033});4034},4035clearQueue: function( type ) {4036return this.queue( type || "fx", [] );4037},4038// Get a promise resolved when queues of a certain type4039// are emptied (fx is the type by default)4040promise: function( type, obj ) {4041var tmp,4042count = 1,4043defer = jQuery.Deferred(),4044elements = this,4045i = this.length,4046resolve = function() {4047if ( !( --count ) ) {4048defer.resolveWith( elements, [ elements ] );4049}4050};40514052if ( typeof type !== "string" ) {4053obj = type;4054type = undefined;4055}4056type = type || "fx";40574058while ( i-- ) {4059tmp = jQuery._data( elements[ i ], type + "queueHooks" );4060if ( tmp && tmp.empty ) {4061count++;4062tmp.empty.add( resolve );4063}4064}4065resolve();4066return defer.promise( obj );4067}4068});4069var pnum = (/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/).source;40704071var cssExpand = [ "Top", "Right", "Bottom", "Left" ];40724073var isHidden = function( elem, el ) {4074// isHidden might be called from jQuery#filter function;4075// in that case, element will be second argument4076elem = el || elem;4077return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem );4078};4079408040814082// Multifunctional method to get and set values of a collection4083// The value/s can optionally be executed if it's a function4084var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw ) {4085var i = 0,4086length = elems.length,4087bulk = key == null;40884089// Sets many values4090if ( jQuery.type( key ) === "object" ) {4091chainable = true;4092for ( i in key ) {4093jQuery.access( elems, fn, i, key[i], true, emptyGet, raw );4094}40954096// Sets one value4097} else if ( value !== undefined ) {4098chainable = true;40994100if ( !jQuery.isFunction( value ) ) {4101raw = true;4102}41034104if ( bulk ) {4105// Bulk operations run against the entire set4106if ( raw ) {4107fn.call( elems, value );4108fn = null;41094110// ...except when executing function values4111} else {4112bulk = fn;4113fn = function( elem, key, value ) {4114return bulk.call( jQuery( elem ), value );4115};4116}4117}41184119if ( fn ) {4120for ( ; i < length; i++ ) {4121fn( elems[i], key, raw ? value : value.call( elems[i], i, fn( elems[i], key ) ) );4122}4123}4124}41254126return chainable ?4127elems :41284129// Gets4130bulk ?4131fn.call( elems ) :4132length ? fn( elems[0], key ) : emptyGet;4133};4134var rcheckableType = (/^(?:checkbox|radio)$/i);4135413641374138(function() {4139var fragment = document.createDocumentFragment(),4140div = document.createElement("div"),4141input = document.createElement("input");41424143// Setup4144div.setAttribute( "className", "t" );4145div.innerHTML = " <link/><table></table><a href='/a'>a</a>";41464147// IE strips leading whitespace when .innerHTML is used4148support.leadingWhitespace = div.firstChild.nodeType === 3;41494150// Make sure that tbody elements aren't automatically inserted4151// IE will insert them into empty tables4152support.tbody = !div.getElementsByTagName( "tbody" ).length;41534154// Make sure that link elements get serialized correctly by innerHTML4155// This requires a wrapper element in IE4156support.htmlSerialize = !!div.getElementsByTagName( "link" ).length;41574158// Makes sure cloning an html5 element does not cause problems4159// Where outerHTML is undefined, this still works4160support.html5Clone =4161document.createElement( "nav" ).cloneNode( true ).outerHTML !== "<:nav></:nav>";41624163// Check if a disconnected checkbox will retain its checked4164// value of true after appended to the DOM (IE6/7)4165input.type = "checkbox";4166input.checked = true;4167fragment.appendChild( input );4168support.appendChecked = input.checked;41694170// Make sure textarea (and checkbox) defaultValue is properly cloned4171// Support: IE6-IE11+4172div.innerHTML = "<textarea>x</textarea>";4173support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;41744175// #11217 - WebKit loses check when the name is after the checked attribute4176fragment.appendChild( div );4177div.innerHTML = "<input type='radio' checked='checked' name='t'/>";41784179// Support: Safari 5.1, iOS 5.1, Android 4.x, Android 2.34180// old WebKit doesn't clone checked state correctly in fragments4181support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;41824183// Support: IE<94184// Opera does not clone events (and typeof div.attachEvent === undefined).4185// IE9-10 clones events bound via attachEvent, but they don't trigger with .click()4186support.noCloneEvent = true;4187if ( div.attachEvent ) {4188div.attachEvent( "onclick", function() {4189support.noCloneEvent = false;4190});41914192div.cloneNode( true ).click();4193}41944195// Execute the test only if not already executed in another module.4196if (support.deleteExpando == null) {4197// Support: IE<94198support.deleteExpando = true;4199try {4200delete div.test;4201} catch( e ) {4202support.deleteExpando = false;4203}4204}42054206// Null elements to avoid leaks in IE.4207fragment = div = input = null;4208})();420942104211(function() {4212var i, eventName,4213div = document.createElement( "div" );42144215// Support: IE<9 (lack submit/change bubble), Firefox 23+ (lack focusin event)4216for ( i in { submit: true, change: true, focusin: true }) {4217eventName = "on" + i;42184219if ( !(support[ i + "Bubbles" ] = eventName in window) ) {4220// Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP)4221div.setAttribute( eventName, "t" );4222support[ i + "Bubbles" ] = div.attributes[ eventName ].expando === false;4223}4224}42254226// Null elements to avoid leaks in IE.4227div = null;4228})();422942304231var rformElems = /^(?:input|select|textarea)$/i,4232rkeyEvent = /^key/,4233rmouseEvent = /^(?:mouse|contextmenu)|click/,4234rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,4235rtypenamespace = /^([^.]*)(?:\.(.+)|)$/;42364237function returnTrue() {4238return true;4239}42404241function returnFalse() {4242return false;4243}42444245function safeActiveElement() {4246try {4247return document.activeElement;4248} catch ( err ) { }4249}42504251/*4252* Helper functions for managing events -- not part of the public interface.4253* Props to Dean Edwards' addEvent library for many of the ideas.4254*/4255jQuery.event = {42564257global: {},42584259add: function( elem, types, handler, data, selector ) {4260var tmp, events, t, handleObjIn,4261special, eventHandle, handleObj,4262handlers, type, namespaces, origType,4263elemData = jQuery._data( elem );42644265// Don't attach events to noData or text/comment nodes (but allow plain objects)4266if ( !elemData ) {4267return;4268}42694270// Caller can pass in an object of custom data in lieu of the handler4271if ( handler.handler ) {4272handleObjIn = handler;4273handler = handleObjIn.handler;4274selector = handleObjIn.selector;4275}42764277// Make sure that the handler has a unique ID, used to find/remove it later4278if ( !handler.guid ) {4279handler.guid = jQuery.guid++;4280}42814282// Init the element's event structure and main handler, if this is the first4283if ( !(events = elemData.events) ) {4284events = elemData.events = {};4285}4286if ( !(eventHandle = elemData.handle) ) {4287eventHandle = elemData.handle = function( e ) {4288// Discard the second event of a jQuery.event.trigger() and4289// when an event is called after a page has unloaded4290return typeof jQuery !== strundefined && (!e || jQuery.event.triggered !== e.type) ?4291jQuery.event.dispatch.apply( eventHandle.elem, arguments ) :4292undefined;4293};4294// Add elem as a property of the handle fn to prevent a memory leak with IE non-native events4295eventHandle.elem = elem;4296}42974298// Handle multiple events separated by a space4299types = ( types || "" ).match( rnotwhite ) || [ "" ];4300t = types.length;4301while ( t-- ) {4302tmp = rtypenamespace.exec( types[t] ) || [];4303type = origType = tmp[1];4304namespaces = ( tmp[2] || "" ).split( "." ).sort();43054306// There *must* be a type, no attaching namespace-only handlers4307if ( !type ) {4308continue;4309}43104311// If event changes its type, use the special event handlers for the changed type4312special = jQuery.event.special[ type ] || {};43134314// If selector defined, determine special event api type, otherwise given type4315type = ( selector ? special.delegateType : special.bindType ) || type;43164317// Update special based on newly reset type4318special = jQuery.event.special[ type ] || {};43194320// handleObj is passed to all event handlers4321handleObj = jQuery.extend({4322type: type,4323origType: origType,4324data: data,4325handler: handler,4326guid: handler.guid,4327selector: selector,4328needsContext: selector && jQuery.expr.match.needsContext.test( selector ),4329namespace: namespaces.join(".")4330}, handleObjIn );43314332// Init the event handler queue if we're the first4333if ( !(handlers = events[ type ]) ) {4334handlers = events[ type ] = [];4335handlers.delegateCount = 0;43364337// Only use addEventListener/attachEvent if the special events handler returns false4338if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {4339// Bind the global event handler to the element4340if ( elem.addEventListener ) {4341elem.addEventListener( type, eventHandle, false );43424343} else if ( elem.attachEvent ) {4344elem.attachEvent( "on" + type, eventHandle );4345}4346}4347}43484349if ( special.add ) {4350special.add.call( elem, handleObj );43514352if ( !handleObj.handler.guid ) {4353handleObj.handler.guid = handler.guid;4354}4355}43564357// Add to the element's handler list, delegates in front4358if ( selector ) {4359handlers.splice( handlers.delegateCount++, 0, handleObj );4360} else {4361handlers.push( handleObj );4362}43634364// Keep track of which events have ever been used, for event optimization4365jQuery.event.global[ type ] = true;4366}43674368// Nullify elem to prevent memory leaks in IE4369elem = null;4370},43714372// Detach an event or set of events from an element4373remove: function( elem, types, handler, selector, mappedTypes ) {4374var j, handleObj, tmp,4375origCount, t, events,4376special, handlers, type,4377namespaces, origType,4378elemData = jQuery.hasData( elem ) && jQuery._data( elem );43794380if ( !elemData || !(events = elemData.events) ) {4381return;4382}43834384// Once for each type.namespace in types; type may be omitted4385types = ( types || "" ).match( rnotwhite ) || [ "" ];4386t = types.length;4387while ( t-- ) {4388tmp = rtypenamespace.exec( types[t] ) || [];4389type = origType = tmp[1];4390namespaces = ( tmp[2] || "" ).split( "." ).sort();43914392// Unbind all events (on this namespace, if provided) for the element4393if ( !type ) {4394for ( type in events ) {4395jQuery.event.remove( elem, type + types[ t ], handler, selector, true );4396}4397continue;4398}43994400special = jQuery.event.special[ type ] || {};4401type = ( selector ? special.delegateType : special.bindType ) || type;4402handlers = events[ type ] || [];4403tmp = tmp[2] && new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" );44044405// Remove matching events4406origCount = j = handlers.length;4407while ( j-- ) {4408handleObj = handlers[ j ];44094410if ( ( mappedTypes || origType === handleObj.origType ) &&4411( !handler || handler.guid === handleObj.guid ) &&4412( !tmp || tmp.test( handleObj.namespace ) ) &&4413( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {4414handlers.splice( j, 1 );44154416if ( handleObj.selector ) {4417handlers.delegateCount--;4418}4419if ( special.remove ) {4420special.remove.call( elem, handleObj );4421}4422}4423}44244425// Remove generic event handler if we removed something and no more handlers exist4426// (avoids potential for endless recursion during removal of special event handlers)4427if ( origCount && !handlers.length ) {4428if ( !special.teardown || special.teardown.call( elem, namespaces, elemData.handle ) === false ) {4429jQuery.removeEvent( elem, type, elemData.handle );4430}44314432delete events[ type ];4433}4434}44354436// Remove the expando if it's no longer used4437if ( jQuery.isEmptyObject( events ) ) {4438delete elemData.handle;44394440// removeData also checks for emptiness and clears the expando if empty4441// so use it instead of delete4442jQuery._removeData( elem, "events" );4443}4444},44454446trigger: function( event, data, elem, onlyHandlers ) {4447var handle, ontype, cur,4448bubbleType, special, tmp, i,4449eventPath = [ elem || document ],4450type = hasOwn.call( event, "type" ) ? event.type : event,4451namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split(".") : [];44524453cur = tmp = elem = elem || document;44544455// Don't do events on text and comment nodes4456if ( elem.nodeType === 3 || elem.nodeType === 8 ) {4457return;4458}44594460// focus/blur morphs to focusin/out; ensure we're not firing them right now4461if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {4462return;4463}44644465if ( type.indexOf(".") >= 0 ) {4466// Namespaced trigger; create a regexp to match event type in handle()4467namespaces = type.split(".");4468type = namespaces.shift();4469namespaces.sort();4470}4471ontype = type.indexOf(":") < 0 && "on" + type;44724473// Caller can pass in a jQuery.Event object, Object, or just an event type string4474event = event[ jQuery.expando ] ?4475event :4476new jQuery.Event( type, typeof event === "object" && event );44774478// Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)4479event.isTrigger = onlyHandlers ? 2 : 3;4480event.namespace = namespaces.join(".");4481event.namespace_re = event.namespace ?4482new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ) :4483null;44844485// Clean up the event in case it is being reused4486event.result = undefined;4487if ( !event.target ) {4488event.target = elem;4489}44904491// Clone any incoming data and prepend the event, creating the handler arg list4492data = data == null ?4493[ event ] :4494jQuery.makeArray( data, [ event ] );44954496// Allow special events to draw outside the lines4497special = jQuery.event.special[ type ] || {};4498if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) {4499return;4500}45014502// Determine event propagation path in advance, per W3C events spec (#9951)4503// Bubble up to document, then to window; watch for a global ownerDocument var (#9724)4504if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {45054506bubbleType = special.delegateType || type;4507if ( !rfocusMorph.test( bubbleType + type ) ) {4508cur = cur.parentNode;4509}4510for ( ; cur; cur = cur.parentNode ) {4511eventPath.push( cur );4512tmp = cur;4513}45144515// Only add window if we got to document (e.g., not plain obj or detached DOM)4516if ( tmp === (elem.ownerDocument || document) ) {4517eventPath.push( tmp.defaultView || tmp.parentWindow || window );4518}4519}45204521// Fire handlers on the event path4522i = 0;4523while ( (cur = eventPath[i++]) && !event.isPropagationStopped() ) {45244525event.type = i > 1 ?4526bubbleType :4527special.bindType || type;45284529// jQuery handler4530handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" );4531if ( handle ) {4532handle.apply( cur, data );4533}45344535// Native handler4536handle = ontype && cur[ ontype ];4537if ( handle && handle.apply && jQuery.acceptData( cur ) ) {4538event.result = handle.apply( cur, data );4539if ( event.result === false ) {4540event.preventDefault();4541}4542}4543}4544event.type = type;45454546// If nobody prevented the default action, do it now4547if ( !onlyHandlers && !event.isDefaultPrevented() ) {45484549if ( (!special._default || special._default.apply( eventPath.pop(), data ) === false) &&4550jQuery.acceptData( elem ) ) {45514552// Call a native DOM method on the target with the same name name as the event.4553// Can't use an .isFunction() check here because IE6/7 fails that test.4554// Don't do default actions on window, that's where global variables be (#6170)4555if ( ontype && elem[ type ] && !jQuery.isWindow( elem ) ) {45564557// Don't re-trigger an onFOO event when we call its FOO() method4558tmp = elem[ ontype ];45594560if ( tmp ) {4561elem[ ontype ] = null;4562}45634564// Prevent re-triggering of the same event, since we already bubbled it above4565jQuery.event.triggered = type;4566try {4567elem[ type ]();4568} catch ( e ) {4569// IE<9 dies on focus/blur to hidden element (#1486,#12518)4570// only reproducible on winXP IE8 native, not IE9 in IE8 mode4571}4572jQuery.event.triggered = undefined;45734574if ( tmp ) {4575elem[ ontype ] = tmp;4576}4577}4578}4579}45804581return event.result;4582},45834584dispatch: function( event ) {45854586// Make a writable jQuery.Event from the native event object4587event = jQuery.event.fix( event );45884589var i, ret, handleObj, matched, j,4590handlerQueue = [],4591args = slice.call( arguments ),4592handlers = ( jQuery._data( this, "events" ) || {} )[ event.type ] || [],4593special = jQuery.event.special[ event.type ] || {};45944595// Use the fix-ed jQuery.Event rather than the (read-only) native event4596args[0] = event;4597event.delegateTarget = this;45984599// Call the preDispatch hook for the mapped type, and let it bail if desired4600if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {4601return;4602}46034604// Determine handlers4605handlerQueue = jQuery.event.handlers.call( this, event, handlers );46064607// Run delegates first; they may want to stop propagation beneath us4608i = 0;4609while ( (matched = handlerQueue[ i++ ]) && !event.isPropagationStopped() ) {4610event.currentTarget = matched.elem;46114612j = 0;4613while ( (handleObj = matched.handlers[ j++ ]) && !event.isImmediatePropagationStopped() ) {46144615// Triggered event must either 1) have no namespace, or4616// 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace).4617if ( !event.namespace_re || event.namespace_re.test( handleObj.namespace ) ) {46184619event.handleObj = handleObj;4620event.data = handleObj.data;46214622ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler )4623.apply( matched.elem, args );46244625if ( ret !== undefined ) {4626if ( (event.result = ret) === false ) {4627event.preventDefault();4628event.stopPropagation();4629}4630}4631}4632}4633}46344635// Call the postDispatch hook for the mapped type4636if ( special.postDispatch ) {4637special.postDispatch.call( this, event );4638}46394640return event.result;4641},46424643handlers: function( event, handlers ) {4644var sel, handleObj, matches, i,4645handlerQueue = [],4646delegateCount = handlers.delegateCount,4647cur = event.target;46484649// Find delegate handlers4650// Black-hole SVG <use> instance trees (#13180)4651// Avoid non-left-click bubbling in Firefox (#3861)4652if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) {46534654/* jshint eqeqeq: false */4655for ( ; cur != this; cur = cur.parentNode || this ) {4656/* jshint eqeqeq: true */46574658// Don't check non-elements (#13208)4659// Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)4660if ( cur.nodeType === 1 && (cur.disabled !== true || event.type !== "click") ) {4661matches = [];4662for ( i = 0; i < delegateCount; i++ ) {4663handleObj = handlers[ i ];46644665// Don't conflict with Object.prototype properties (#13203)4666sel = handleObj.selector + " ";46674668if ( matches[ sel ] === undefined ) {4669matches[ sel ] = handleObj.needsContext ?4670jQuery( sel, this ).index( cur ) >= 0 :4671jQuery.find( sel, this, null, [ cur ] ).length;4672}4673if ( matches[ sel ] ) {4674matches.push( handleObj );4675}4676}4677if ( matches.length ) {4678handlerQueue.push({ elem: cur, handlers: matches });4679}4680}4681}4682}46834684// Add the remaining (directly-bound) handlers4685if ( delegateCount < handlers.length ) {4686handlerQueue.push({ elem: this, handlers: handlers.slice( delegateCount ) });4687}46884689return handlerQueue;4690},46914692fix: function( event ) {4693if ( event[ jQuery.expando ] ) {4694return event;4695}46964697// Create a writable copy of the event object and normalize some properties4698var i, prop, copy,4699type = event.type,4700originalEvent = event,4701fixHook = this.fixHooks[ type ];47024703if ( !fixHook ) {4704this.fixHooks[ type ] = fixHook =4705rmouseEvent.test( type ) ? this.mouseHooks :4706rkeyEvent.test( type ) ? this.keyHooks :4707{};4708}4709copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props;47104711event = new jQuery.Event( originalEvent );47124713i = copy.length;4714while ( i-- ) {4715prop = copy[ i ];4716event[ prop ] = originalEvent[ prop ];4717}47184719// Support: IE<94720// Fix target property (#1925)4721if ( !event.target ) {4722event.target = originalEvent.srcElement || document;4723}47244725// Support: Chrome 23+, Safari?4726// Target should not be a text node (#504, #13143)4727if ( event.target.nodeType === 3 ) {4728event.target = event.target.parentNode;4729}47304731// Support: IE<94732// For mouse/key events, metaKey==false if it's undefined (#3368, #11328)4733event.metaKey = !!event.metaKey;47344735return fixHook.filter ? fixHook.filter( event, originalEvent ) : event;4736},47374738// Includes some event props shared by KeyEvent and MouseEvent4739props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),47404741fixHooks: {},47424743keyHooks: {4744props: "char charCode key keyCode".split(" "),4745filter: function( event, original ) {47464747// Add which for key events4748if ( event.which == null ) {4749event.which = original.charCode != null ? original.charCode : original.keyCode;4750}47514752return event;4753}4754},47554756mouseHooks: {4757props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),4758filter: function( event, original ) {4759var body, eventDoc, doc,4760button = original.button,4761fromElement = original.fromElement;47624763// Calculate pageX/Y if missing and clientX/Y available4764if ( event.pageX == null && original.clientX != null ) {4765eventDoc = event.target.ownerDocument || document;4766doc = eventDoc.documentElement;4767body = eventDoc.body;47684769event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 );4770event.pageY = original.clientY + ( doc && doc.scrollTop || body && body.scrollTop || 0 ) - ( doc && doc.clientTop || body && body.clientTop || 0 );4771}47724773// Add relatedTarget, if necessary4774if ( !event.relatedTarget && fromElement ) {4775event.relatedTarget = fromElement === event.target ? original.toElement : fromElement;4776}47774778// Add which for click: 1 === left; 2 === middle; 3 === right4779// Note: button is not normalized, so don't use it4780if ( !event.which && button !== undefined ) {4781event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );4782}47834784return event;4785}4786},47874788special: {4789load: {4790// Prevent triggered image.load events from bubbling to window.load4791noBubble: true4792},4793focus: {4794// Fire native event if possible so blur/focus sequence is correct4795trigger: function() {4796if ( this !== safeActiveElement() && this.focus ) {4797try {4798this.focus();4799return false;4800} catch ( e ) {4801// Support: IE<94802// If we error on focus to hidden element (#1486, #12518),4803// let .trigger() run the handlers4804}4805}4806},4807delegateType: "focusin"4808},4809blur: {4810trigger: function() {4811if ( this === safeActiveElement() && this.blur ) {4812this.blur();4813return false;4814}4815},4816delegateType: "focusout"4817},4818click: {4819// For checkbox, fire native event so checked state will be right4820trigger: function() {4821if ( jQuery.nodeName( this, "input" ) && this.type === "checkbox" && this.click ) {4822this.click();4823return false;4824}4825},48264827// For cross-browser consistency, don't fire native .click() on links4828_default: function( event ) {4829return jQuery.nodeName( event.target, "a" );4830}4831},48324833beforeunload: {4834postDispatch: function( event ) {48354836// Even when returnValue equals to undefined Firefox will still show alert4837if ( event.result !== undefined ) {4838event.originalEvent.returnValue = event.result;4839}4840}4841}4842},48434844simulate: function( type, elem, event, bubble ) {4845// Piggyback on a donor event to simulate a different one.4846// Fake originalEvent to avoid donor's stopPropagation, but if the4847// simulated event prevents default then we do the same on the donor.4848var e = jQuery.extend(4849new jQuery.Event(),4850event,4851{4852type: type,4853isSimulated: true,4854originalEvent: {}4855}4856);4857if ( bubble ) {4858jQuery.event.trigger( e, null, elem );4859} else {4860jQuery.event.dispatch.call( elem, e );4861}4862if ( e.isDefaultPrevented() ) {4863event.preventDefault();4864}4865}4866};48674868jQuery.removeEvent = document.removeEventListener ?4869function( elem, type, handle ) {4870if ( elem.removeEventListener ) {4871elem.removeEventListener( type, handle, false );4872}4873} :4874function( elem, type, handle ) {4875var name = "on" + type;48764877if ( elem.detachEvent ) {48784879// #8545, #7054, preventing memory leaks for custom events in IE6-84880// detachEvent needed property on element, by name of that event, to properly expose it to GC4881if ( typeof elem[ name ] === strundefined ) {4882elem[ name ] = null;4883}48844885elem.detachEvent( name, handle );4886}4887};48884889jQuery.Event = function( src, props ) {4890// Allow instantiation without the 'new' keyword4891if ( !(this instanceof jQuery.Event) ) {4892return new jQuery.Event( src, props );4893}48944895// Event object4896if ( src && src.type ) {4897this.originalEvent = src;4898this.type = src.type;48994900// Events bubbling up the document may have been marked as prevented4901// by a handler lower down the tree; reflect the correct value.4902this.isDefaultPrevented = src.defaultPrevented ||4903src.defaultPrevented === undefined && (4904// Support: IE < 94905src.returnValue === false ||4906// Support: Android < 4.04907src.getPreventDefault && src.getPreventDefault() ) ?4908returnTrue :4909returnFalse;49104911// Event type4912} else {4913this.type = src;4914}49154916// Put explicitly provided properties onto the event object4917if ( props ) {4918jQuery.extend( this, props );4919}49204921// Create a timestamp if incoming event doesn't have one4922this.timeStamp = src && src.timeStamp || jQuery.now();49234924// Mark it as fixed4925this[ jQuery.expando ] = true;4926};49274928// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding4929// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html4930jQuery.Event.prototype = {4931isDefaultPrevented: returnFalse,4932isPropagationStopped: returnFalse,4933isImmediatePropagationStopped: returnFalse,49344935preventDefault: function() {4936var e = this.originalEvent;49374938this.isDefaultPrevented = returnTrue;4939if ( !e ) {4940return;4941}49424943// If preventDefault exists, run it on the original event4944if ( e.preventDefault ) {4945e.preventDefault();49464947// Support: IE4948// Otherwise set the returnValue property of the original event to false4949} else {4950e.returnValue = false;4951}4952},4953stopPropagation: function() {4954var e = this.originalEvent;49554956this.isPropagationStopped = returnTrue;4957if ( !e ) {4958return;4959}4960// If stopPropagation exists, run it on the original event4961if ( e.stopPropagation ) {4962e.stopPropagation();4963}49644965// Support: IE4966// Set the cancelBubble property of the original event to true4967e.cancelBubble = true;4968},4969stopImmediatePropagation: function() {4970this.isImmediatePropagationStopped = returnTrue;4971this.stopPropagation();4972}4973};49744975// Create mouseenter/leave events using mouseover/out and event-time checks4976jQuery.each({4977mouseenter: "mouseover",4978mouseleave: "mouseout"4979}, function( orig, fix ) {4980jQuery.event.special[ orig ] = {4981delegateType: fix,4982bindType: fix,49834984handle: function( event ) {4985var ret,4986target = this,4987related = event.relatedTarget,4988handleObj = event.handleObj;49894990// For mousenter/leave call the handler if related is outside the target.4991// NB: No relatedTarget if the mouse left/entered the browser window4992if ( !related || (related !== target && !jQuery.contains( target, related )) ) {4993event.type = handleObj.origType;4994ret = handleObj.handler.apply( this, arguments );4995event.type = fix;4996}4997return ret;4998}4999};5000});50015002// IE submit delegation5003if ( !support.submitBubbles ) {50045005jQuery.event.special.submit = {5006setup: function() {5007// Only need this for delegated form submit events5008if ( jQuery.nodeName( this, "form" ) ) {5009return false;5010}50115012// Lazy-add a submit handler when a descendant form may potentially be submitted5013jQuery.event.add( this, "click._submit keypress._submit", function( e ) {5014// Node name check avoids a VML-related crash in IE (#9807)5015var elem = e.target,5016form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined;5017if ( form && !jQuery._data( form, "submitBubbles" ) ) {5018jQuery.event.add( form, "submit._submit", function( event ) {5019event._submit_bubble = true;5020});5021jQuery._data( form, "submitBubbles", true );5022}5023});5024// return undefined since we don't need an event listener5025},50265027postDispatch: function( event ) {5028// If form was submitted by the user, bubble the event up the tree5029if ( event._submit_bubble ) {5030delete event._submit_bubble;5031if ( this.parentNode && !event.isTrigger ) {5032jQuery.event.simulate( "submit", this.parentNode, event, true );5033}5034}5035},50365037teardown: function() {5038// Only need this for delegated form submit events5039if ( jQuery.nodeName( this, "form" ) ) {5040return false;5041}50425043// Remove delegated handlers; cleanData eventually reaps submit handlers attached above5044jQuery.event.remove( this, "._submit" );5045}5046};5047}50485049// IE change delegation and checkbox/radio fix5050if ( !support.changeBubbles ) {50515052jQuery.event.special.change = {50535054setup: function() {50555056if ( rformElems.test( this.nodeName ) ) {5057// IE doesn't fire change on a check/radio until blur; trigger it on click5058// after a propertychange. Eat the blur-change in special.change.handle.5059// This still fires onchange a second time for check/radio after blur.5060if ( this.type === "checkbox" || this.type === "radio" ) {5061jQuery.event.add( this, "propertychange._change", function( event ) {5062if ( event.originalEvent.propertyName === "checked" ) {5063this._just_changed = true;5064}5065});5066jQuery.event.add( this, "click._change", function( event ) {5067if ( this._just_changed && !event.isTrigger ) {5068this._just_changed = false;5069}5070// Allow triggered, simulated change events (#11500)5071jQuery.event.simulate( "change", this, event, true );5072});5073}5074return false;5075}5076// Delegated event; lazy-add a change handler on descendant inputs5077jQuery.event.add( this, "beforeactivate._change", function( e ) {5078var elem = e.target;50795080if ( rformElems.test( elem.nodeName ) && !jQuery._data( elem, "changeBubbles" ) ) {5081jQuery.event.add( elem, "change._change", function( event ) {5082if ( this.parentNode && !event.isSimulated && !event.isTrigger ) {5083jQuery.event.simulate( "change", this.parentNode, event, true );5084}5085});5086jQuery._data( elem, "changeBubbles", true );5087}5088});5089},50905091handle: function( event ) {5092var elem = event.target;50935094// Swallow native change events from checkbox/radio, we already triggered them above5095if ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) {5096return event.handleObj.handler.apply( this, arguments );5097}5098},50995100teardown: function() {5101jQuery.event.remove( this, "._change" );51025103return !rformElems.test( this.nodeName );5104}5105};5106}51075108// Create "bubbling" focus and blur events5109if ( !support.focusinBubbles ) {5110jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) {51115112// Attach a single capturing handler on the document while someone wants focusin/focusout5113var handler = function( event ) {5114jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true );5115};51165117jQuery.event.special[ fix ] = {5118setup: function() {5119var doc = this.ownerDocument || this,5120attaches = jQuery._data( doc, fix );51215122if ( !attaches ) {5123doc.addEventListener( orig, handler, true );5124}5125jQuery._data( doc, fix, ( attaches || 0 ) + 1 );5126},5127teardown: function() {5128var doc = this.ownerDocument || this,5129attaches = jQuery._data( doc, fix ) - 1;51305131if ( !attaches ) {5132doc.removeEventListener( orig, handler, true );5133jQuery._removeData( doc, fix );5134} else {5135jQuery._data( doc, fix, attaches );5136}5137}5138};5139});5140}51415142jQuery.fn.extend({51435144on: function( types, selector, data, fn, /*INTERNAL*/ one ) {5145var type, origFn;51465147// Types can be a map of types/handlers5148if ( typeof types === "object" ) {5149// ( types-Object, selector, data )5150if ( typeof selector !== "string" ) {5151// ( types-Object, data )5152data = data || selector;5153selector = undefined;5154}5155for ( type in types ) {5156this.on( type, selector, data, types[ type ], one );5157}5158return this;5159}51605161if ( data == null && fn == null ) {5162// ( types, fn )5163fn = selector;5164data = selector = undefined;5165} else if ( fn == null ) {5166if ( typeof selector === "string" ) {5167// ( types, selector, fn )5168fn = data;5169data = undefined;5170} else {5171// ( types, data, fn )5172fn = data;5173data = selector;5174selector = undefined;5175}5176}5177if ( fn === false ) {5178fn = returnFalse;5179} else if ( !fn ) {5180return this;5181}51825183if ( one === 1 ) {5184origFn = fn;5185fn = function( event ) {5186// Can use an empty set, since event contains the info5187jQuery().off( event );5188return origFn.apply( this, arguments );5189};5190// Use same guid so caller can remove using origFn5191fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );5192}5193return this.each( function() {5194jQuery.event.add( this, types, fn, data, selector );5195});5196},5197one: function( types, selector, data, fn ) {5198return this.on( types, selector, data, fn, 1 );5199},5200off: function( types, selector, fn ) {5201var handleObj, type;5202if ( types && types.preventDefault && types.handleObj ) {5203// ( event ) dispatched jQuery.Event5204handleObj = types.handleObj;5205jQuery( types.delegateTarget ).off(5206handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType,5207handleObj.selector,5208handleObj.handler5209);5210return this;5211}5212if ( typeof types === "object" ) {5213// ( types-object [, selector] )5214for ( type in types ) {5215this.off( type, selector, types[ type ] );5216}5217return this;5218}5219if ( selector === false || typeof selector === "function" ) {5220// ( types [, fn] )5221fn = selector;5222selector = undefined;5223}5224if ( fn === false ) {5225fn = returnFalse;5226}5227return this.each(function() {5228jQuery.event.remove( this, types, fn, selector );5229});5230},52315232trigger: function( type, data ) {5233return this.each(function() {5234jQuery.event.trigger( type, data, this );5235});5236},5237triggerHandler: function( type, data ) {5238var elem = this[0];5239if ( elem ) {5240return jQuery.event.trigger( type, data, elem, true );5241}5242}5243});524452455246function createSafeFragment( document ) {5247var list = nodeNames.split( "|" ),5248safeFrag = document.createDocumentFragment();52495250if ( safeFrag.createElement ) {5251while ( list.length ) {5252safeFrag.createElement(5253list.pop()5254);5255}5256}5257return safeFrag;5258}52595260var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|" +5261"header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",5262rinlinejQuery = / jQuery\d+="(?:null|\d+)"/g,5263rnoshimcache = new RegExp("<(?:" + nodeNames + ")[\\s/>]", "i"),5264rleadingWhitespace = /^\s+/,5265rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,5266rtagName = /<([\w:]+)/,5267rtbody = /<tbody/i,5268rhtml = /<|&#?\w+;/,5269rnoInnerhtml = /<(?:script|style|link)/i,5270// checked="checked" or checked5271rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,5272rscriptType = /^$|\/(?:java|ecma)script/i,5273rscriptTypeMasked = /^true\/(.*)/,5274rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,52755276// We have to close these tags to support XHTML (#13200)5277wrapMap = {5278option: [ 1, "<select multiple='multiple'>", "</select>" ],5279legend: [ 1, "<fieldset>", "</fieldset>" ],5280area: [ 1, "<map>", "</map>" ],5281param: [ 1, "<object>", "</object>" ],5282thead: [ 1, "<table>", "</table>" ],5283tr: [ 2, "<table><tbody>", "</tbody></table>" ],5284col: [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ],5285td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],52865287// IE6-8 can't serialize link, script, style, or any html5 (NoScope) tags,5288// unless wrapped in a div with non-breaking characters in front of it.5289_default: support.htmlSerialize ? [ 0, "", "" ] : [ 1, "X<div>", "</div>" ]5290},5291safeFragment = createSafeFragment( document ),5292fragmentDiv = safeFragment.appendChild( document.createElement("div") );52935294wrapMap.optgroup = wrapMap.option;5295wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;5296wrapMap.th = wrapMap.td;52975298function getAll( context, tag ) {5299var elems, elem,5300i = 0,5301found = typeof context.getElementsByTagName !== strundefined ? context.getElementsByTagName( tag || "*" ) :5302typeof context.querySelectorAll !== strundefined ? context.querySelectorAll( tag || "*" ) :5303undefined;53045305if ( !found ) {5306for ( found = [], elems = context.childNodes || context; (elem = elems[i]) != null; i++ ) {5307if ( !tag || jQuery.nodeName( elem, tag ) ) {5308found.push( elem );5309} else {5310jQuery.merge( found, getAll( elem, tag ) );5311}5312}5313}53145315return tag === undefined || tag && jQuery.nodeName( context, tag ) ?5316jQuery.merge( [ context ], found ) :5317found;5318}53195320// Used in buildFragment, fixes the defaultChecked property5321function fixDefaultChecked( elem ) {5322if ( rcheckableType.test( elem.type ) ) {5323elem.defaultChecked = elem.checked;5324}5325}53265327// Support: IE<85328// Manipulating tables requires a tbody5329function manipulationTarget( elem, content ) {5330return jQuery.nodeName( elem, "table" ) &&5331jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ?53325333elem.getElementsByTagName("tbody")[0] ||5334elem.appendChild( elem.ownerDocument.createElement("tbody") ) :5335elem;5336}53375338// Replace/restore the type attribute of script elements for safe DOM manipulation5339function disableScript( elem ) {5340elem.type = (jQuery.find.attr( elem, "type" ) !== null) + "/" + elem.type;5341return elem;5342}5343function restoreScript( elem ) {5344var match = rscriptTypeMasked.exec( elem.type );5345if ( match ) {5346elem.type = match[1];5347} else {5348elem.removeAttribute("type");5349}5350return elem;5351}53525353// Mark scripts as having already been evaluated5354function setGlobalEval( elems, refElements ) {5355var elem,5356i = 0;5357for ( ; (elem = elems[i]) != null; i++ ) {5358jQuery._data( elem, "globalEval", !refElements || jQuery._data( refElements[i], "globalEval" ) );5359}5360}53615362function cloneCopyEvent( src, dest ) {53635364if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) {5365return;5366}53675368var type, i, l,5369oldData = jQuery._data( src ),5370curData = jQuery._data( dest, oldData ),5371events = oldData.events;53725373if ( events ) {5374delete curData.handle;5375curData.events = {};53765377for ( type in events ) {5378for ( i = 0, l = events[ type ].length; i < l; i++ ) {5379jQuery.event.add( dest, type, events[ type ][ i ] );5380}5381}5382}53835384// make the cloned public data object a copy from the original5385if ( curData.data ) {5386curData.data = jQuery.extend( {}, curData.data );5387}5388}53895390function fixCloneNodeIssues( src, dest ) {5391var nodeName, e, data;53925393// We do not need to do anything for non-Elements5394if ( dest.nodeType !== 1 ) {5395return;5396}53975398nodeName = dest.nodeName.toLowerCase();53995400// IE6-8 copies events bound via attachEvent when using cloneNode.5401if ( !support.noCloneEvent && dest[ jQuery.expando ] ) {5402data = jQuery._data( dest );54035404for ( e in data.events ) {5405jQuery.removeEvent( dest, e, data.handle );5406}54075408// Event data gets referenced instead of copied if the expando gets copied too5409dest.removeAttribute( jQuery.expando );5410}54115412// IE blanks contents when cloning scripts, and tries to evaluate newly-set text5413if ( nodeName === "script" && dest.text !== src.text ) {5414disableScript( dest ).text = src.text;5415restoreScript( dest );54165417// IE6-10 improperly clones children of object elements using classid.5418// IE10 throws NoModificationAllowedError if parent is null, #12132.5419} else if ( nodeName === "object" ) {5420if ( dest.parentNode ) {5421dest.outerHTML = src.outerHTML;5422}54235424// This path appears unavoidable for IE9. When cloning an object5425// element in IE9, the outerHTML strategy above is not sufficient.5426// If the src has innerHTML and the destination does not,5427// copy the src.innerHTML into the dest.innerHTML. #103245428if ( support.html5Clone && ( src.innerHTML && !jQuery.trim(dest.innerHTML) ) ) {5429dest.innerHTML = src.innerHTML;5430}54315432} else if ( nodeName === "input" && rcheckableType.test( src.type ) ) {5433// IE6-8 fails to persist the checked state of a cloned checkbox5434// or radio button. Worse, IE6-7 fail to give the cloned element5435// a checked appearance if the defaultChecked value isn't also set54365437dest.defaultChecked = dest.checked = src.checked;54385439// IE6-7 get confused and end up setting the value of a cloned5440// checkbox/radio button to an empty string instead of "on"5441if ( dest.value !== src.value ) {5442dest.value = src.value;5443}54445445// IE6-8 fails to return the selected option to the default selected5446// state when cloning options5447} else if ( nodeName === "option" ) {5448dest.defaultSelected = dest.selected = src.defaultSelected;54495450// IE6-8 fails to set the defaultValue to the correct value when5451// cloning other types of input fields5452} else if ( nodeName === "input" || nodeName === "textarea" ) {5453dest.defaultValue = src.defaultValue;5454}5455}54565457jQuery.extend({5458clone: function( elem, dataAndEvents, deepDataAndEvents ) {5459var destElements, node, clone, i, srcElements,5460inPage = jQuery.contains( elem.ownerDocument, elem );54615462if ( support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test( "<" + elem.nodeName + ">" ) ) {5463clone = elem.cloneNode( true );54645465// IE<=8 does not properly clone detached, unknown element nodes5466} else {5467fragmentDiv.innerHTML = elem.outerHTML;5468fragmentDiv.removeChild( clone = fragmentDiv.firstChild );5469}54705471if ( (!support.noCloneEvent || !support.noCloneChecked) &&5472(elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) {54735474// We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/25475destElements = getAll( clone );5476srcElements = getAll( elem );54775478// Fix all IE cloning issues5479for ( i = 0; (node = srcElements[i]) != null; ++i ) {5480// Ensure that the destination node is not null; Fixes #95875481if ( destElements[i] ) {5482fixCloneNodeIssues( node, destElements[i] );5483}5484}5485}54865487// Copy the events from the original to the clone5488if ( dataAndEvents ) {5489if ( deepDataAndEvents ) {5490srcElements = srcElements || getAll( elem );5491destElements = destElements || getAll( clone );54925493for ( i = 0; (node = srcElements[i]) != null; i++ ) {5494cloneCopyEvent( node, destElements[i] );5495}5496} else {5497cloneCopyEvent( elem, clone );5498}5499}55005501// Preserve script evaluation history5502destElements = getAll( clone, "script" );5503if ( destElements.length > 0 ) {5504setGlobalEval( destElements, !inPage && getAll( elem, "script" ) );5505}55065507destElements = srcElements = node = null;55085509// Return the cloned set5510return clone;5511},55125513buildFragment: function( elems, context, scripts, selection ) {5514var j, elem, contains,5515tmp, tag, tbody, wrap,5516l = elems.length,55175518// Ensure a safe fragment5519safe = createSafeFragment( context ),55205521nodes = [],5522i = 0;55235524for ( ; i < l; i++ ) {5525elem = elems[ i ];55265527if ( elem || elem === 0 ) {55285529// Add nodes directly5530if ( jQuery.type( elem ) === "object" ) {5531jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );55325533// Convert non-html into a text node5534} else if ( !rhtml.test( elem ) ) {5535nodes.push( context.createTextNode( elem ) );55365537// Convert html into DOM nodes5538} else {5539tmp = tmp || safe.appendChild( context.createElement("div") );55405541// Deserialize a standard representation5542tag = (rtagName.exec( elem ) || [ "", "" ])[ 1 ].toLowerCase();5543wrap = wrapMap[ tag ] || wrapMap._default;55445545tmp.innerHTML = wrap[1] + elem.replace( rxhtmlTag, "<$1></$2>" ) + wrap[2];55465547// Descend through wrappers to the right content5548j = wrap[0];5549while ( j-- ) {5550tmp = tmp.lastChild;5551}55525553// Manually add leading whitespace removed by IE5554if ( !support.leadingWhitespace && rleadingWhitespace.test( elem ) ) {5555nodes.push( context.createTextNode( rleadingWhitespace.exec( elem )[0] ) );5556}55575558// Remove IE's autoinserted <tbody> from table fragments5559if ( !support.tbody ) {55605561// String was a <table>, *may* have spurious <tbody>5562elem = tag === "table" && !rtbody.test( elem ) ?5563tmp.firstChild :55645565// String was a bare <thead> or <tfoot>5566wrap[1] === "<table>" && !rtbody.test( elem ) ?5567tmp :55680;55695570j = elem && elem.childNodes.length;5571while ( j-- ) {5572if ( jQuery.nodeName( (tbody = elem.childNodes[j]), "tbody" ) && !tbody.childNodes.length ) {5573elem.removeChild( tbody );5574}5575}5576}55775578jQuery.merge( nodes, tmp.childNodes );55795580// Fix #12392 for WebKit and IE > 95581tmp.textContent = "";55825583// Fix #12392 for oldIE5584while ( tmp.firstChild ) {5585tmp.removeChild( tmp.firstChild );5586}55875588// Remember the top-level container for proper cleanup5589tmp = safe.lastChild;5590}5591}5592}55935594// Fix #11356: Clear elements from fragment5595if ( tmp ) {5596safe.removeChild( tmp );5597}55985599// Reset defaultChecked for any radios and checkboxes5600// about to be appended to the DOM in IE 6/7 (#8060)5601if ( !support.appendChecked ) {5602jQuery.grep( getAll( nodes, "input" ), fixDefaultChecked );5603}56045605i = 0;5606while ( (elem = nodes[ i++ ]) ) {56075608// #4087 - If origin and destination elements are the same, and this is5609// that element, do not do anything5610if ( selection && jQuery.inArray( elem, selection ) !== -1 ) {5611continue;5612}56135614contains = jQuery.contains( elem.ownerDocument, elem );56155616// Append to fragment5617tmp = getAll( safe.appendChild( elem ), "script" );56185619// Preserve script evaluation history5620if ( contains ) {5621setGlobalEval( tmp );5622}56235624// Capture executables5625if ( scripts ) {5626j = 0;5627while ( (elem = tmp[ j++ ]) ) {5628if ( rscriptType.test( elem.type || "" ) ) {5629scripts.push( elem );5630}5631}5632}5633}56345635tmp = null;56365637return safe;5638},56395640cleanData: function( elems, /* internal */ acceptData ) {5641var elem, type, id, data,5642i = 0,5643internalKey = jQuery.expando,5644cache = jQuery.cache,5645deleteExpando = support.deleteExpando,5646special = jQuery.event.special;56475648for ( ; (elem = elems[i]) != null; i++ ) {5649if ( acceptData || jQuery.acceptData( elem ) ) {56505651id = elem[ internalKey ];5652data = id && cache[ id ];56535654if ( data ) {5655if ( data.events ) {5656for ( type in data.events ) {5657if ( special[ type ] ) {5658jQuery.event.remove( elem, type );56595660// This is a shortcut to avoid jQuery.event.remove's overhead5661} else {5662jQuery.removeEvent( elem, type, data.handle );5663}5664}5665}56665667// Remove cache only if it was not already removed by jQuery.event.remove5668if ( cache[ id ] ) {56695670delete cache[ id ];56715672// IE does not allow us to delete expando properties from nodes,5673// nor does it have a removeAttribute function on Document nodes;5674// we must handle all of these cases5675if ( deleteExpando ) {5676delete elem[ internalKey ];56775678} else if ( typeof elem.removeAttribute !== strundefined ) {5679elem.removeAttribute( internalKey );56805681} else {5682elem[ internalKey ] = null;5683}56845685deletedIds.push( id );5686}5687}5688}5689}5690}5691});56925693jQuery.fn.extend({5694text: function( value ) {5695return access( this, function( value ) {5696return value === undefined ?5697jQuery.text( this ) :5698this.empty().append( ( this[0] && this[0].ownerDocument || document ).createTextNode( value ) );5699}, null, value, arguments.length );5700},57015702append: function() {5703return this.domManip( arguments, function( elem ) {5704if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {5705var target = manipulationTarget( this, elem );5706target.appendChild( elem );5707}5708});5709},57105711prepend: function() {5712return this.domManip( arguments, function( elem ) {5713if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {5714var target = manipulationTarget( this, elem );5715target.insertBefore( elem, target.firstChild );5716}5717});5718},57195720before: function() {5721return this.domManip( arguments, function( elem ) {5722if ( this.parentNode ) {5723this.parentNode.insertBefore( elem, this );5724}5725});5726},57275728after: function() {5729return this.domManip( arguments, function( elem ) {5730if ( this.parentNode ) {5731this.parentNode.insertBefore( elem, this.nextSibling );5732}5733});5734},57355736remove: function( selector, keepData /* Internal Use Only */ ) {5737var elem,5738elems = selector ? jQuery.filter( selector, this ) : this,5739i = 0;57405741for ( ; (elem = elems[i]) != null; i++ ) {57425743if ( !keepData && elem.nodeType === 1 ) {5744jQuery.cleanData( getAll( elem ) );5745}57465747if ( elem.parentNode ) {5748if ( keepData && jQuery.contains( elem.ownerDocument, elem ) ) {5749setGlobalEval( getAll( elem, "script" ) );5750}5751elem.parentNode.removeChild( elem );5752}5753}57545755return this;5756},57575758empty: function() {5759var elem,5760i = 0;57615762for ( ; (elem = this[i]) != null; i++ ) {5763// Remove element nodes and prevent memory leaks5764if ( elem.nodeType === 1 ) {5765jQuery.cleanData( getAll( elem, false ) );5766}57675768// Remove any remaining nodes5769while ( elem.firstChild ) {5770elem.removeChild( elem.firstChild );5771}57725773// If this is a select, ensure that it displays empty (#12336)5774// Support: IE<95775if ( elem.options && jQuery.nodeName( elem, "select" ) ) {5776elem.options.length = 0;5777}5778}57795780return this;5781},57825783clone: function( dataAndEvents, deepDataAndEvents ) {5784dataAndEvents = dataAndEvents == null ? false : dataAndEvents;5785deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;57865787return this.map(function() {5788return jQuery.clone( this, dataAndEvents, deepDataAndEvents );5789});5790},57915792html: function( value ) {5793return access( this, function( value ) {5794var elem = this[ 0 ] || {},5795i = 0,5796l = this.length;57975798if ( value === undefined ) {5799return elem.nodeType === 1 ?5800elem.innerHTML.replace( rinlinejQuery, "" ) :5801undefined;5802}58035804// See if we can take a shortcut and just use innerHTML5805if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&5806( support.htmlSerialize || !rnoshimcache.test( value ) ) &&5807( support.leadingWhitespace || !rleadingWhitespace.test( value ) ) &&5808!wrapMap[ (rtagName.exec( value ) || [ "", "" ])[ 1 ].toLowerCase() ] ) {58095810value = value.replace( rxhtmlTag, "<$1></$2>" );58115812try {5813for (; i < l; i++ ) {5814// Remove element nodes and prevent memory leaks5815elem = this[i] || {};5816if ( elem.nodeType === 1 ) {5817jQuery.cleanData( getAll( elem, false ) );5818elem.innerHTML = value;5819}5820}58215822elem = 0;58235824// If using innerHTML throws an exception, use the fallback method5825} catch(e) {}5826}58275828if ( elem ) {5829this.empty().append( value );5830}5831}, null, value, arguments.length );5832},58335834replaceWith: function() {5835var arg = arguments[ 0 ];58365837// Make the changes, replacing each context element with the new content5838this.domManip( arguments, function( elem ) {5839arg = this.parentNode;58405841jQuery.cleanData( getAll( this ) );58425843if ( arg ) {5844arg.replaceChild( elem, this );5845}5846});58475848// Force removal if there was no new content (e.g., from empty arguments)5849return arg && (arg.length || arg.nodeType) ? this : this.remove();5850},58515852detach: function( selector ) {5853return this.remove( selector, true );5854},58555856domManip: function( args, callback ) {58575858// Flatten any nested arrays5859args = concat.apply( [], args );58605861var first, node, hasScripts,5862scripts, doc, fragment,5863i = 0,5864l = this.length,5865set = this,5866iNoClone = l - 1,5867value = args[0],5868isFunction = jQuery.isFunction( value );58695870// We can't cloneNode fragments that contain checked, in WebKit5871if ( isFunction ||5872( l > 1 && typeof value === "string" &&5873!support.checkClone && rchecked.test( value ) ) ) {5874return this.each(function( index ) {5875var self = set.eq( index );5876if ( isFunction ) {5877args[0] = value.call( this, index, self.html() );5878}5879self.domManip( args, callback );5880});5881}58825883if ( l ) {5884fragment = jQuery.buildFragment( args, this[ 0 ].ownerDocument, false, this );5885first = fragment.firstChild;58865887if ( fragment.childNodes.length === 1 ) {5888fragment = first;5889}58905891if ( first ) {5892scripts = jQuery.map( getAll( fragment, "script" ), disableScript );5893hasScripts = scripts.length;58945895// Use the original fragment for the last item instead of the first because it can end up5896// being emptied incorrectly in certain situations (#8070).5897for ( ; i < l; i++ ) {5898node = fragment;58995900if ( i !== iNoClone ) {5901node = jQuery.clone( node, true, true );59025903// Keep references to cloned scripts for later restoration5904if ( hasScripts ) {5905jQuery.merge( scripts, getAll( node, "script" ) );5906}5907}59085909callback.call( this[i], node, i );5910}59115912if ( hasScripts ) {5913doc = scripts[ scripts.length - 1 ].ownerDocument;59145915// Reenable scripts5916jQuery.map( scripts, restoreScript );59175918// Evaluate executable scripts on first document insertion5919for ( i = 0; i < hasScripts; i++ ) {5920node = scripts[ i ];5921if ( rscriptType.test( node.type || "" ) &&5922!jQuery._data( node, "globalEval" ) && jQuery.contains( doc, node ) ) {59235924if ( node.src ) {5925// Optional AJAX dependency, but won't run scripts if not present5926if ( jQuery._evalUrl ) {5927jQuery._evalUrl( node.src );5928}5929} else {5930jQuery.globalEval( ( node.text || node.textContent || node.innerHTML || "" ).replace( rcleanScript, "" ) );5931}5932}5933}5934}59355936// Fix #11809: Avoid leaking memory5937fragment = first = null;5938}5939}59405941return this;5942}5943});59445945jQuery.each({5946appendTo: "append",5947prependTo: "prepend",5948insertBefore: "before",5949insertAfter: "after",5950replaceAll: "replaceWith"5951}, function( name, original ) {5952jQuery.fn[ name ] = function( selector ) {5953var elems,5954i = 0,5955ret = [],5956insert = jQuery( selector ),5957last = insert.length - 1;59585959for ( ; i <= last; i++ ) {5960elems = i === last ? this : this.clone(true);5961jQuery( insert[i] )[ original ]( elems );59625963// Modern browsers can apply jQuery collections as arrays, but oldIE needs a .get()5964push.apply( ret, elems.get() );5965}59665967return this.pushStack( ret );5968};5969});597059715972var iframe,5973elemdisplay = {};59745975/**5976* Retrieve the actual display of a element5977* @param {String} name nodeName of the element5978* @param {Object} doc Document object5979*/5980// Called only from within defaultDisplay5981function actualDisplay( name, doc ) {5982var elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ),59835984// getDefaultComputedStyle might be reliably used only on attached element5985display = window.getDefaultComputedStyle ?59865987// Use of this method is a temporary fix (more like optmization) until something better comes along,5988// since it was removed from specification and supported only in FF5989window.getDefaultComputedStyle( elem[ 0 ] ).display : jQuery.css( elem[ 0 ], "display" );59905991// We don't have any data stored on the element,5992// so use "detach" method as fast way to get rid of the element5993elem.detach();59945995return display;5996}59975998/**5999* Try to determine the default display value of an element6000* @param {String} nodeName6001*/6002function defaultDisplay( nodeName ) {6003var doc = document,6004display = elemdisplay[ nodeName ];60056006if ( !display ) {6007display = actualDisplay( nodeName, doc );60086009// If the simple way fails, read from inside an iframe6010if ( display === "none" || !display ) {60116012// Use the already-created iframe if possible6013iframe = (iframe || jQuery( "<iframe frameborder='0' width='0' height='0'/>" )).appendTo( doc.documentElement );60146015// Always write a new HTML skeleton so Webkit and Firefox don't choke on reuse6016doc = ( iframe[ 0 ].contentWindow || iframe[ 0 ].contentDocument ).document;60176018// Support: IE6019doc.write();6020doc.close();60216022display = actualDisplay( nodeName, doc );6023iframe.detach();6024}60256026// Store the correct default display6027elemdisplay[ nodeName ] = display;6028}60296030return display;6031}603260336034(function() {6035var a, shrinkWrapBlocksVal,6036div = document.createElement( "div" ),6037divReset =6038"-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;" +6039"display:block;padding:0;margin:0;border:0";60406041// Setup6042div.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";6043a = div.getElementsByTagName( "a" )[ 0 ];60446045a.style.cssText = "float:left;opacity:.5";60466047// Make sure that element opacity exists6048// (IE uses filter instead)6049// Use a regex to work around a WebKit issue. See #51456050support.opacity = /^0.5/.test( a.style.opacity );60516052// Verify style float existence6053// (IE uses styleFloat instead of cssFloat)6054support.cssFloat = !!a.style.cssFloat;60556056div.style.backgroundClip = "content-box";6057div.cloneNode( true ).style.backgroundClip = "";6058support.clearCloneStyle = div.style.backgroundClip === "content-box";60596060// Null elements to avoid leaks in IE.6061a = div = null;60626063support.shrinkWrapBlocks = function() {6064var body, container, div, containerStyles;60656066if ( shrinkWrapBlocksVal == null ) {6067body = document.getElementsByTagName( "body" )[ 0 ];6068if ( !body ) {6069// Test fired too early or in an unsupported environment, exit.6070return;6071}60726073containerStyles = "border:0;width:0;height:0;position:absolute;top:0;left:-9999px";6074container = document.createElement( "div" );6075div = document.createElement( "div" );60766077body.appendChild( container ).appendChild( div );60786079// Will be changed later if needed.6080shrinkWrapBlocksVal = false;60816082if ( typeof div.style.zoom !== strundefined ) {6083// Support: IE66084// Check if elements with layout shrink-wrap their children6085div.style.cssText = divReset + ";width:1px;padding:1px;zoom:1";6086div.innerHTML = "<div></div>";6087div.firstChild.style.width = "5px";6088shrinkWrapBlocksVal = div.offsetWidth !== 3;6089}60906091body.removeChild( container );60926093// Null elements to avoid leaks in IE.6094body = container = div = null;6095}60966097return shrinkWrapBlocksVal;6098};60996100})();6101var rmargin = (/^margin/);61026103var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" );6104610561066107var getStyles, curCSS,6108rposition = /^(top|right|bottom|left)$/;61096110if ( window.getComputedStyle ) {6111getStyles = function( elem ) {6112return elem.ownerDocument.defaultView.getComputedStyle( elem, null );6113};61146115curCSS = function( elem, name, computed ) {6116var width, minWidth, maxWidth, ret,6117style = elem.style;61186119computed = computed || getStyles( elem );61206121// getPropertyValue is only needed for .css('filter') in IE9, see #125376122ret = computed ? computed.getPropertyValue( name ) || computed[ name ] : undefined;61236124if ( computed ) {61256126if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) {6127ret = jQuery.style( elem, name );6128}61296130// A tribute to the "awesome hack by Dean Edwards"6131// Chrome < 17 and Safari 5.0 uses "computed value" instead of "used value" for margin-right6132// Safari 5.1.7 (at least) returns percentage for a larger set of values, but width seems to be reliably pixels6133// this is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values6134if ( rnumnonpx.test( ret ) && rmargin.test( name ) ) {61356136// Remember the original values6137width = style.width;6138minWidth = style.minWidth;6139maxWidth = style.maxWidth;61406141// Put in the new values to get a computed value out6142style.minWidth = style.maxWidth = style.width = ret;6143ret = computed.width;61446145// Revert the changed values6146style.width = width;6147style.minWidth = minWidth;6148style.maxWidth = maxWidth;6149}6150}61516152// Support: IE6153// IE returns zIndex value as an integer.6154return ret === undefined ?6155ret :6156ret + "";6157};6158} else if ( document.documentElement.currentStyle ) {6159getStyles = function( elem ) {6160return elem.currentStyle;6161};61626163curCSS = function( elem, name, computed ) {6164var left, rs, rsLeft, ret,6165style = elem.style;61666167computed = computed || getStyles( elem );6168ret = computed ? computed[ name ] : undefined;61696170// Avoid setting ret to empty string here6171// so we don't default to auto6172if ( ret == null && style && style[ name ] ) {6173ret = style[ name ];6174}61756176// From the awesome hack by Dean Edwards6177// http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-10229161786179// If we're not dealing with a regular pixel number6180// but a number that has a weird ending, we need to convert it to pixels6181// but not position css attributes, as those are proportional to the parent element instead6182// and we can't measure the parent instead because it might trigger a "stacking dolls" problem6183if ( rnumnonpx.test( ret ) && !rposition.test( name ) ) {61846185// Remember the original values6186left = style.left;6187rs = elem.runtimeStyle;6188rsLeft = rs && rs.left;61896190// Put in the new values to get a computed value out6191if ( rsLeft ) {6192rs.left = elem.currentStyle.left;6193}6194style.left = name === "fontSize" ? "1em" : ret;6195ret = style.pixelLeft + "px";61966197// Revert the changed values6198style.left = left;6199if ( rsLeft ) {6200rs.left = rsLeft;6201}6202}62036204// Support: IE6205// IE returns zIndex value as an integer.6206return ret === undefined ?6207ret :6208ret + "" || "auto";6209};6210}62116212621362146215function addGetHookIf( conditionFn, hookFn ) {6216// Define the hook, we'll check on the first run if it's really needed.6217return {6218get: function() {6219var condition = conditionFn();62206221if ( condition == null ) {6222// The test was not ready at this point; screw the hook this time6223// but check again when needed next time.6224return;6225}62266227if ( condition ) {6228// Hook not needed (or it's not possible to use it due to missing dependency),6229// remove it.6230// Since there are no other hooks for marginRight, remove the whole object.6231delete this.get;6232return;6233}62346235// Hook needed; redefine it so that the support test is not executed again.62366237return (this.get = hookFn).apply( this, arguments );6238}6239};6240}624162426243(function() {6244var a, reliableHiddenOffsetsVal, boxSizingVal, boxSizingReliableVal,6245pixelPositionVal, reliableMarginRightVal,6246div = document.createElement( "div" ),6247containerStyles = "border:0;width:0;height:0;position:absolute;top:0;left:-9999px",6248divReset =6249"-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;" +6250"display:block;padding:0;margin:0;border:0";62516252// Setup6253div.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";6254a = div.getElementsByTagName( "a" )[ 0 ];62556256a.style.cssText = "float:left;opacity:.5";62576258// Make sure that element opacity exists6259// (IE uses filter instead)6260// Use a regex to work around a WebKit issue. See #51456261support.opacity = /^0.5/.test( a.style.opacity );62626263// Verify style float existence6264// (IE uses styleFloat instead of cssFloat)6265support.cssFloat = !!a.style.cssFloat;62666267div.style.backgroundClip = "content-box";6268div.cloneNode( true ).style.backgroundClip = "";6269support.clearCloneStyle = div.style.backgroundClip === "content-box";62706271// Null elements to avoid leaks in IE.6272a = div = null;62736274jQuery.extend(support, {6275reliableHiddenOffsets: function() {6276if ( reliableHiddenOffsetsVal != null ) {6277return reliableHiddenOffsetsVal;6278}62796280var container, tds, isSupported,6281div = document.createElement( "div" ),6282body = document.getElementsByTagName( "body" )[ 0 ];62836284if ( !body ) {6285// Return for frameset docs that don't have a body6286return;6287}62886289// Setup6290div.setAttribute( "className", "t" );6291div.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";62926293container = document.createElement( "div" );6294container.style.cssText = containerStyles;62956296body.appendChild( container ).appendChild( div );62976298// Support: IE86299// Check if table cells still have offsetWidth/Height when they are set6300// to display:none and there are still other visible table cells in a6301// table row; if so, offsetWidth/Height are not reliable for use when6302// determining if an element has been hidden directly using6303// display:none (it is still safe to use offsets if a parent element is6304// hidden; don safety goggles and see bug #4512 for more information).6305div.innerHTML = "<table><tr><td></td><td>t</td></tr></table>";6306tds = div.getElementsByTagName( "td" );6307tds[ 0 ].style.cssText = "padding:0;margin:0;border:0;display:none";6308isSupported = ( tds[ 0 ].offsetHeight === 0 );63096310tds[ 0 ].style.display = "";6311tds[ 1 ].style.display = "none";63126313// Support: IE86314// Check if empty table cells still have offsetWidth/Height6315reliableHiddenOffsetsVal = isSupported && ( tds[ 0 ].offsetHeight === 0 );63166317body.removeChild( container );63186319// Null elements to avoid leaks in IE.6320div = body = null;63216322return reliableHiddenOffsetsVal;6323},63246325boxSizing: function() {6326if ( boxSizingVal == null ) {6327computeStyleTests();6328}6329return boxSizingVal;6330},63316332boxSizingReliable: function() {6333if ( boxSizingReliableVal == null ) {6334computeStyleTests();6335}6336return boxSizingReliableVal;6337},63386339pixelPosition: function() {6340if ( pixelPositionVal == null ) {6341computeStyleTests();6342}6343return pixelPositionVal;6344},63456346reliableMarginRight: function() {6347var body, container, div, marginDiv;63486349// Use window.getComputedStyle because jsdom on node.js will break without it.6350if ( reliableMarginRightVal == null && window.getComputedStyle ) {6351body = document.getElementsByTagName( "body" )[ 0 ];6352if ( !body ) {6353// Test fired too early or in an unsupported environment, exit.6354return;6355}63566357container = document.createElement( "div" );6358div = document.createElement( "div" );6359container.style.cssText = containerStyles;63606361body.appendChild( container ).appendChild( div );63626363// Check if div with explicit width and no margin-right incorrectly6364// gets computed margin-right based on width of container. (#3333)6365// Fails in WebKit before Feb 2011 nightlies6366// WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right6367marginDiv = div.appendChild( document.createElement( "div" ) );6368marginDiv.style.cssText = div.style.cssText = divReset;6369marginDiv.style.marginRight = marginDiv.style.width = "0";6370div.style.width = "1px";63716372reliableMarginRightVal =6373!parseFloat( ( window.getComputedStyle( marginDiv, null ) || {} ).marginRight );63746375body.removeChild( container );6376}63776378return reliableMarginRightVal;6379}6380});63816382function computeStyleTests() {6383var container, div,6384body = document.getElementsByTagName( "body" )[ 0 ];63856386if ( !body ) {6387// Test fired too early or in an unsupported environment, exit.6388return;6389}63906391container = document.createElement( "div" );6392div = document.createElement( "div" );6393container.style.cssText = containerStyles;63946395body.appendChild( container ).appendChild( div );63966397div.style.cssText =6398"-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;" +6399"position:absolute;display:block;padding:1px;border:1px;width:4px;" +6400"margin-top:1%;top:1%";64016402// Workaround failing boxSizing test due to offsetWidth returning wrong value6403// with some non-1 values of body zoom, ticket #135436404jQuery.swap( body, body.style.zoom != null ? { zoom: 1 } : {}, function() {6405boxSizingVal = div.offsetWidth === 4;6406});64076408// Will be changed later if needed.6409boxSizingReliableVal = true;6410pixelPositionVal = false;6411reliableMarginRightVal = true;64126413// Use window.getComputedStyle because jsdom on node.js will break without it.6414if ( window.getComputedStyle ) {6415pixelPositionVal = ( window.getComputedStyle( div, null ) || {} ).top !== "1%";6416boxSizingReliableVal =6417( window.getComputedStyle( div, null ) || { width: "4px" } ).width === "4px";6418}64196420body.removeChild( container );64216422// Null elements to avoid leaks in IE.6423div = body = null;6424}64256426})();642764286429// A method for quickly swapping in/out CSS properties to get correct calculations.6430jQuery.swap = function( elem, options, callback, args ) {6431var ret, name,6432old = {};64336434// Remember the old values, and insert the new ones6435for ( name in options ) {6436old[ name ] = elem.style[ name ];6437elem.style[ name ] = options[ name ];6438}64396440ret = callback.apply( elem, args || [] );64416442// Revert the old values6443for ( name in options ) {6444elem.style[ name ] = old[ name ];6445}64466447return ret;6448};644964506451var6452ralpha = /alpha\([^)]*\)/i,6453ropacity = /opacity\s*=\s*([^)]*)/,64546455// swappable if display is none or starts with table except "table", "table-cell", or "table-caption"6456// see here for display values: https://developer.mozilla.org/en-US/docs/CSS/display6457rdisplayswap = /^(none|table(?!-c[ea]).+)/,6458rnumsplit = new RegExp( "^(" + pnum + ")(.*)$", "i" ),6459rrelNum = new RegExp( "^([+-])=(" + pnum + ")", "i" ),64606461cssShow = { position: "absolute", visibility: "hidden", display: "block" },6462cssNormalTransform = {6463letterSpacing: 0,6464fontWeight: 4006465},64666467cssPrefixes = [ "Webkit", "O", "Moz", "ms" ];646864696470// return a css property mapped to a potentially vendor prefixed property6471function vendorPropName( style, name ) {64726473// shortcut for names that are not vendor prefixed6474if ( name in style ) {6475return name;6476}64776478// check for vendor prefixed names6479var capName = name.charAt(0).toUpperCase() + name.slice(1),6480origName = name,6481i = cssPrefixes.length;64826483while ( i-- ) {6484name = cssPrefixes[ i ] + capName;6485if ( name in style ) {6486return name;6487}6488}64896490return origName;6491}64926493function showHide( elements, show ) {6494var display, elem, hidden,6495values = [],6496index = 0,6497length = elements.length;64986499for ( ; index < length; index++ ) {6500elem = elements[ index ];6501if ( !elem.style ) {6502continue;6503}65046505values[ index ] = jQuery._data( elem, "olddisplay" );6506display = elem.style.display;6507if ( show ) {6508// Reset the inline display of this element to learn if it is6509// being hidden by cascaded rules or not6510if ( !values[ index ] && display === "none" ) {6511elem.style.display = "";6512}65136514// Set elements which have been overridden with display: none6515// in a stylesheet to whatever the default browser style is6516// for such an element6517if ( elem.style.display === "" && isHidden( elem ) ) {6518values[ index ] = jQuery._data( elem, "olddisplay", defaultDisplay(elem.nodeName) );6519}6520} else {65216522if ( !values[ index ] ) {6523hidden = isHidden( elem );65246525if ( display && display !== "none" || !hidden ) {6526jQuery._data( elem, "olddisplay", hidden ? display : jQuery.css( elem, "display" ) );6527}6528}6529}6530}65316532// Set the display of most of the elements in a second loop6533// to avoid the constant reflow6534for ( index = 0; index < length; index++ ) {6535elem = elements[ index ];6536if ( !elem.style ) {6537continue;6538}6539if ( !show || elem.style.display === "none" || elem.style.display === "" ) {6540elem.style.display = show ? values[ index ] || "" : "none";6541}6542}65436544return elements;6545}65466547function setPositiveNumber( elem, value, subtract ) {6548var matches = rnumsplit.exec( value );6549return matches ?6550// Guard against undefined "subtract", e.g., when used as in cssHooks6551Math.max( 0, matches[ 1 ] - ( subtract || 0 ) ) + ( matches[ 2 ] || "px" ) :6552value;6553}65546555function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {6556var i = extra === ( isBorderBox ? "border" : "content" ) ?6557// If we already have the right measurement, avoid augmentation65584 :6559// Otherwise initialize for horizontal or vertical properties6560name === "width" ? 1 : 0,65616562val = 0;65636564for ( ; i < 4; i += 2 ) {6565// both box models exclude margin, so add it if we want it6566if ( extra === "margin" ) {6567val += jQuery.css( elem, extra + cssExpand[ i ], true, styles );6568}65696570if ( isBorderBox ) {6571// border-box includes padding, so remove it if we want content6572if ( extra === "content" ) {6573val -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );6574}65756576// at this point, extra isn't border nor margin, so remove border6577if ( extra !== "margin" ) {6578val -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );6579}6580} else {6581// at this point, extra isn't content, so add padding6582val += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );65836584// at this point, extra isn't content nor padding, so add border6585if ( extra !== "padding" ) {6586val += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );6587}6588}6589}65906591return val;6592}65936594function getWidthOrHeight( elem, name, extra ) {65956596// Start with offset property, which is equivalent to the border-box value6597var valueIsBorderBox = true,6598val = name === "width" ? elem.offsetWidth : elem.offsetHeight,6599styles = getStyles( elem ),6600isBorderBox = support.boxSizing() && jQuery.css( elem, "boxSizing", false, styles ) === "border-box";66016602// some non-html elements return undefined for offsetWidth, so check for null/undefined6603// svg - https://bugzilla.mozilla.org/show_bug.cgi?id=6492856604// MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=4916686605if ( val <= 0 || val == null ) {6606// Fall back to computed then uncomputed css if necessary6607val = curCSS( elem, name, styles );6608if ( val < 0 || val == null ) {6609val = elem.style[ name ];6610}66116612// Computed unit is not pixels. Stop here and return.6613if ( rnumnonpx.test(val) ) {6614return val;6615}66166617// we need the check for style in case a browser which returns unreliable values6618// for getComputedStyle silently falls back to the reliable elem.style6619valueIsBorderBox = isBorderBox && ( support.boxSizingReliable() || val === elem.style[ name ] );66206621// Normalize "", auto, and prepare for extra6622val = parseFloat( val ) || 0;6623}66246625// use the active box-sizing model to add/subtract irrelevant styles6626return ( val +6627augmentWidthOrHeight(6628elem,6629name,6630extra || ( isBorderBox ? "border" : "content" ),6631valueIsBorderBox,6632styles6633)6634) + "px";6635}66366637jQuery.extend({6638// Add in style property hooks for overriding the default6639// behavior of getting and setting a style property6640cssHooks: {6641opacity: {6642get: function( elem, computed ) {6643if ( computed ) {6644// We should always get a number back from opacity6645var ret = curCSS( elem, "opacity" );6646return ret === "" ? "1" : ret;6647}6648}6649}6650},66516652// Don't automatically add "px" to these possibly-unitless properties6653cssNumber: {6654"columnCount": true,6655"fillOpacity": true,6656"fontWeight": true,6657"lineHeight": true,6658"opacity": true,6659"order": true,6660"orphans": true,6661"widows": true,6662"zIndex": true,6663"zoom": true6664},66656666// Add in properties whose names you wish to fix before6667// setting or getting the value6668cssProps: {6669// normalize float css property6670"float": support.cssFloat ? "cssFloat" : "styleFloat"6671},66726673// Get and set the style property on a DOM Node6674style: function( elem, name, value, extra ) {6675// Don't set styles on text and comment nodes6676if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {6677return;6678}66796680// Make sure that we're working with the right name6681var ret, type, hooks,6682origName = jQuery.camelCase( name ),6683style = elem.style;66846685name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( style, origName ) );66866687// gets hook for the prefixed version6688// followed by the unprefixed version6689hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];66906691// Check if we're setting a value6692if ( value !== undefined ) {6693type = typeof value;66946695// convert relative number strings (+= or -=) to relative numbers. #73456696if ( type === "string" && (ret = rrelNum.exec( value )) ) {6697value = ( ret[1] + 1 ) * ret[2] + parseFloat( jQuery.css( elem, name ) );6698// Fixes bug #92376699type = "number";6700}67016702// Make sure that null and NaN values aren't set. See: #71166703if ( value == null || value !== value ) {6704return;6705}67066707// If a number was passed in, add 'px' to the (except for certain CSS properties)6708if ( type === "number" && !jQuery.cssNumber[ origName ] ) {6709value += "px";6710}67116712// Fixes #8908, it can be done more correctly by specifing setters in cssHooks,6713// but it would mean to define eight (for every problematic property) identical functions6714if ( !support.clearCloneStyle && value === "" && name.indexOf("background") === 0 ) {6715style[ name ] = "inherit";6716}67176718// If a hook was provided, use that value, otherwise just set the specified value6719if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value, extra )) !== undefined ) {67206721// Support: IE6722// Swallow errors from 'invalid' CSS values (#5509)6723try {6724// Support: Chrome, Safari6725// Setting style to blank string required to delete "style: x !important;"6726style[ name ] = "";6727style[ name ] = value;6728} catch(e) {}6729}67306731} else {6732// If a hook was provided get the non-computed value from there6733if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) {6734return ret;6735}67366737// Otherwise just get the value from the style object6738return style[ name ];6739}6740},67416742css: function( elem, name, extra, styles ) {6743var num, val, hooks,6744origName = jQuery.camelCase( name );67456746// Make sure that we're working with the right name6747name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( elem.style, origName ) );67486749// gets hook for the prefixed version6750// followed by the unprefixed version6751hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];67526753// If a hook was provided get the computed value from there6754if ( hooks && "get" in hooks ) {6755val = hooks.get( elem, true, extra );6756}67576758// Otherwise, if a way to get the computed value exists, use that6759if ( val === undefined ) {6760val = curCSS( elem, name, styles );6761}67626763//convert "normal" to computed value6764if ( val === "normal" && name in cssNormalTransform ) {6765val = cssNormalTransform[ name ];6766}67676768// Return, converting to number if forced or a qualifier was provided and val looks numeric6769if ( extra === "" || extra ) {6770num = parseFloat( val );6771return extra === true || jQuery.isNumeric( num ) ? num || 0 : val;6772}6773return val;6774}6775});67766777jQuery.each([ "height", "width" ], function( i, name ) {6778jQuery.cssHooks[ name ] = {6779get: function( elem, computed, extra ) {6780if ( computed ) {6781// certain elements can have dimension info if we invisibly show them6782// however, it must have a current display style that would benefit from this6783return elem.offsetWidth === 0 && rdisplayswap.test( jQuery.css( elem, "display" ) ) ?6784jQuery.swap( elem, cssShow, function() {6785return getWidthOrHeight( elem, name, extra );6786}) :6787getWidthOrHeight( elem, name, extra );6788}6789},67906791set: function( elem, value, extra ) {6792var styles = extra && getStyles( elem );6793return setPositiveNumber( elem, value, extra ?6794augmentWidthOrHeight(6795elem,6796name,6797extra,6798support.boxSizing() && jQuery.css( elem, "boxSizing", false, styles ) === "border-box",6799styles6800) : 06801);6802}6803};6804});68056806if ( !support.opacity ) {6807jQuery.cssHooks.opacity = {6808get: function( elem, computed ) {6809// IE uses filters for opacity6810return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?6811( 0.01 * parseFloat( RegExp.$1 ) ) + "" :6812computed ? "1" : "";6813},68146815set: function( elem, value ) {6816var style = elem.style,6817currentStyle = elem.currentStyle,6818opacity = jQuery.isNumeric( value ) ? "alpha(opacity=" + value * 100 + ")" : "",6819filter = currentStyle && currentStyle.filter || style.filter || "";68206821// IE has trouble with opacity if it does not have layout6822// Force it by setting the zoom level6823style.zoom = 1;68246825// if setting opacity to 1, and no other filters exist - attempt to remove filter attribute #66526826// if value === "", then remove inline opacity #126856827if ( ( value >= 1 || value === "" ) &&6828jQuery.trim( filter.replace( ralpha, "" ) ) === "" &&6829style.removeAttribute ) {68306831// Setting style.filter to null, "" & " " still leave "filter:" in the cssText6832// if "filter:" is present at all, clearType is disabled, we want to avoid this6833// style.removeAttribute is IE Only, but so apparently is this code path...6834style.removeAttribute( "filter" );68356836// if there is no filter style applied in a css rule or unset inline opacity, we are done6837if ( value === "" || currentStyle && !currentStyle.filter ) {6838return;6839}6840}68416842// otherwise, set new filter values6843style.filter = ralpha.test( filter ) ?6844filter.replace( ralpha, opacity ) :6845filter + " " + opacity;6846}6847};6848}68496850jQuery.cssHooks.marginRight = addGetHookIf( support.reliableMarginRight,6851function( elem, computed ) {6852if ( computed ) {6853// WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right6854// Work around by temporarily setting element display to inline-block6855return jQuery.swap( elem, { "display": "inline-block" },6856curCSS, [ elem, "marginRight" ] );6857}6858}6859);68606861// These hooks are used by animate to expand properties6862jQuery.each({6863margin: "",6864padding: "",6865border: "Width"6866}, function( prefix, suffix ) {6867jQuery.cssHooks[ prefix + suffix ] = {6868expand: function( value ) {6869var i = 0,6870expanded = {},68716872// assumes a single number if not a string6873parts = typeof value === "string" ? value.split(" ") : [ value ];68746875for ( ; i < 4; i++ ) {6876expanded[ prefix + cssExpand[ i ] + suffix ] =6877parts[ i ] || parts[ i - 2 ] || parts[ 0 ];6878}68796880return expanded;6881}6882};68836884if ( !rmargin.test( prefix ) ) {6885jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;6886}6887});68886889jQuery.fn.extend({6890css: function( name, value ) {6891return access( this, function( elem, name, value ) {6892var styles, len,6893map = {},6894i = 0;68956896if ( jQuery.isArray( name ) ) {6897styles = getStyles( elem );6898len = name.length;68996900for ( ; i < len; i++ ) {6901map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles );6902}69036904return map;6905}69066907return value !== undefined ?6908jQuery.style( elem, name, value ) :6909jQuery.css( elem, name );6910}, name, value, arguments.length > 1 );6911},6912show: function() {6913return showHide( this, true );6914},6915hide: function() {6916return showHide( this );6917},6918toggle: function( state ) {6919if ( typeof state === "boolean" ) {6920return state ? this.show() : this.hide();6921}69226923return this.each(function() {6924if ( isHidden( this ) ) {6925jQuery( this ).show();6926} else {6927jQuery( this ).hide();6928}6929});6930}6931});693269336934function Tween( elem, options, prop, end, easing ) {6935return new Tween.prototype.init( elem, options, prop, end, easing );6936}6937jQuery.Tween = Tween;69386939Tween.prototype = {6940constructor: Tween,6941init: function( elem, options, prop, end, easing, unit ) {6942this.elem = elem;6943this.prop = prop;6944this.easing = easing || "swing";6945this.options = options;6946this.start = this.now = this.cur();6947this.end = end;6948this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" );6949},6950cur: function() {6951var hooks = Tween.propHooks[ this.prop ];69526953return hooks && hooks.get ?6954hooks.get( this ) :6955Tween.propHooks._default.get( this );6956},6957run: function( percent ) {6958var eased,6959hooks = Tween.propHooks[ this.prop ];69606961if ( this.options.duration ) {6962this.pos = eased = jQuery.easing[ this.easing ](6963percent, this.options.duration * percent, 0, 1, this.options.duration6964);6965} else {6966this.pos = eased = percent;6967}6968this.now = ( this.end - this.start ) * eased + this.start;69696970if ( this.options.step ) {6971this.options.step.call( this.elem, this.now, this );6972}69736974if ( hooks && hooks.set ) {6975hooks.set( this );6976} else {6977Tween.propHooks._default.set( this );6978}6979return this;6980}6981};69826983Tween.prototype.init.prototype = Tween.prototype;69846985Tween.propHooks = {6986_default: {6987get: function( tween ) {6988var result;69896990if ( tween.elem[ tween.prop ] != null &&6991(!tween.elem.style || tween.elem.style[ tween.prop ] == null) ) {6992return tween.elem[ tween.prop ];6993}69946995// passing an empty string as a 3rd parameter to .css will automatically6996// attempt a parseFloat and fallback to a string if the parse fails6997// so, simple values such as "10px" are parsed to Float.6998// complex values such as "rotate(1rad)" are returned as is.6999result = jQuery.css( tween.elem, tween.prop, "" );7000// Empty strings, null, undefined and "auto" are converted to 0.7001return !result || result === "auto" ? 0 : result;7002},7003set: function( tween ) {7004// use step hook for back compat - use cssHook if its there - use .style if its7005// available and use plain properties where available7006if ( jQuery.fx.step[ tween.prop ] ) {7007jQuery.fx.step[ tween.prop ]( tween );7008} else if ( tween.elem.style && ( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null || jQuery.cssHooks[ tween.prop ] ) ) {7009jQuery.style( tween.elem, tween.prop, tween.now + tween.unit );7010} else {7011tween.elem[ tween.prop ] = tween.now;7012}7013}7014}7015};70167017// Support: IE <=97018// Panic based approach to setting things on disconnected nodes70197020Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {7021set: function( tween ) {7022if ( tween.elem.nodeType && tween.elem.parentNode ) {7023tween.elem[ tween.prop ] = tween.now;7024}7025}7026};70277028jQuery.easing = {7029linear: function( p ) {7030return p;7031},7032swing: function( p ) {7033return 0.5 - Math.cos( p * Math.PI ) / 2;7034}7035};70367037jQuery.fx = Tween.prototype.init;70387039// Back Compat <1.8 extension point7040jQuery.fx.step = {};70417042704370447045var7046fxNow, timerId,7047rfxtypes = /^(?:toggle|show|hide)$/,7048rfxnum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" ),7049rrun = /queueHooks$/,7050animationPrefilters = [ defaultPrefilter ],7051tweeners = {7052"*": [ function( prop, value ) {7053var tween = this.createTween( prop, value ),7054target = tween.cur(),7055parts = rfxnum.exec( value ),7056unit = parts && parts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),70577058// Starting value computation is required for potential unit mismatches7059start = ( jQuery.cssNumber[ prop ] || unit !== "px" && +target ) &&7060rfxnum.exec( jQuery.css( tween.elem, prop ) ),7061scale = 1,7062maxIterations = 20;70637064if ( start && start[ 3 ] !== unit ) {7065// Trust units reported by jQuery.css7066unit = unit || start[ 3 ];70677068// Make sure we update the tween properties later on7069parts = parts || [];70707071// Iteratively approximate from a nonzero starting point7072start = +target || 1;70737074do {7075// If previous iteration zeroed out, double until we get *something*7076// Use a string for doubling factor so we don't accidentally see scale as unchanged below7077scale = scale || ".5";70787079// Adjust and apply7080start = start / scale;7081jQuery.style( tween.elem, prop, start + unit );70827083// Update scale, tolerating zero or NaN from tween.cur()7084// And breaking the loop if scale is unchanged or perfect, or if we've just had enough7085} while ( scale !== (scale = tween.cur() / target) && scale !== 1 && --maxIterations );7086}70877088// Update tween properties7089if ( parts ) {7090start = tween.start = +start || +target || 0;7091tween.unit = unit;7092// If a +=/-= token was provided, we're doing a relative animation7093tween.end = parts[ 1 ] ?7094start + ( parts[ 1 ] + 1 ) * parts[ 2 ] :7095+parts[ 2 ];7096}70977098return tween;7099} ]7100};71017102// Animations created synchronously will run synchronously7103function createFxNow() {7104setTimeout(function() {7105fxNow = undefined;7106});7107return ( fxNow = jQuery.now() );7108}71097110// Generate parameters to create a standard animation7111function genFx( type, includeWidth ) {7112var which,7113attrs = { height: type },7114i = 0;71157116// if we include width, step value is 1 to do all cssExpand values,7117// if we don't include width, step value is 2 to skip over Left and Right7118includeWidth = includeWidth ? 1 : 0;7119for ( ; i < 4 ; i += 2 - includeWidth ) {7120which = cssExpand[ i ];7121attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;7122}71237124if ( includeWidth ) {7125attrs.opacity = attrs.width = type;7126}71277128return attrs;7129}71307131function createTween( value, prop, animation ) {7132var tween,7133collection = ( tweeners[ prop ] || [] ).concat( tweeners[ "*" ] ),7134index = 0,7135length = collection.length;7136for ( ; index < length; index++ ) {7137if ( (tween = collection[ index ].call( animation, prop, value )) ) {71387139// we're done with this property7140return tween;7141}7142}7143}71447145function defaultPrefilter( elem, props, opts ) {7146/* jshint validthis: true */7147var prop, value, toggle, tween, hooks, oldfire, display, dDisplay,7148anim = this,7149orig = {},7150style = elem.style,7151hidden = elem.nodeType && isHidden( elem ),7152dataShow = jQuery._data( elem, "fxshow" );71537154// handle queue: false promises7155if ( !opts.queue ) {7156hooks = jQuery._queueHooks( elem, "fx" );7157if ( hooks.unqueued == null ) {7158hooks.unqueued = 0;7159oldfire = hooks.empty.fire;7160hooks.empty.fire = function() {7161if ( !hooks.unqueued ) {7162oldfire();7163}7164};7165}7166hooks.unqueued++;71677168anim.always(function() {7169// doing this makes sure that the complete handler will be called7170// before this completes7171anim.always(function() {7172hooks.unqueued--;7173if ( !jQuery.queue( elem, "fx" ).length ) {7174hooks.empty.fire();7175}7176});7177});7178}71797180// height/width overflow pass7181if ( elem.nodeType === 1 && ( "height" in props || "width" in props ) ) {7182// Make sure that nothing sneaks out7183// Record all 3 overflow attributes because IE does not7184// change the overflow attribute when overflowX and7185// overflowY are set to the same value7186opts.overflow = [ style.overflow, style.overflowX, style.overflowY ];71877188// Set display property to inline-block for height/width7189// animations on inline elements that are having width/height animated7190display = jQuery.css( elem, "display" );7191dDisplay = defaultDisplay( elem.nodeName );7192if ( display === "none" ) {7193display = dDisplay;7194}7195if ( display === "inline" &&7196jQuery.css( elem, "float" ) === "none" ) {71977198// inline-level elements accept inline-block;7199// block-level elements need to be inline with layout7200if ( !support.inlineBlockNeedsLayout || dDisplay === "inline" ) {7201style.display = "inline-block";7202} else {7203style.zoom = 1;7204}7205}7206}72077208if ( opts.overflow ) {7209style.overflow = "hidden";7210if ( !support.shrinkWrapBlocks() ) {7211anim.always(function() {7212style.overflow = opts.overflow[ 0 ];7213style.overflowX = opts.overflow[ 1 ];7214style.overflowY = opts.overflow[ 2 ];7215});7216}7217}72187219// show/hide pass7220for ( prop in props ) {7221value = props[ prop ];7222if ( rfxtypes.exec( value ) ) {7223delete props[ prop ];7224toggle = toggle || value === "toggle";7225if ( value === ( hidden ? "hide" : "show" ) ) {72267227// 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 hidden7228if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) {7229hidden = true;7230} else {7231continue;7232}7233}7234orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop );7235}7236}72377238if ( !jQuery.isEmptyObject( orig ) ) {7239if ( dataShow ) {7240if ( "hidden" in dataShow ) {7241hidden = dataShow.hidden;7242}7243} else {7244dataShow = jQuery._data( elem, "fxshow", {} );7245}72467247// store state if its toggle - enables .stop().toggle() to "reverse"7248if ( toggle ) {7249dataShow.hidden = !hidden;7250}7251if ( hidden ) {7252jQuery( elem ).show();7253} else {7254anim.done(function() {7255jQuery( elem ).hide();7256});7257}7258anim.done(function() {7259var prop;7260jQuery._removeData( elem, "fxshow" );7261for ( prop in orig ) {7262jQuery.style( elem, prop, orig[ prop ] );7263}7264});7265for ( prop in orig ) {7266tween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim );72677268if ( !( prop in dataShow ) ) {7269dataShow[ prop ] = tween.start;7270if ( hidden ) {7271tween.end = tween.start;7272tween.start = prop === "width" || prop === "height" ? 1 : 0;7273}7274}7275}7276}7277}72787279function propFilter( props, specialEasing ) {7280var index, name, easing, value, hooks;72817282// camelCase, specialEasing and expand cssHook pass7283for ( index in props ) {7284name = jQuery.camelCase( index );7285easing = specialEasing[ name ];7286value = props[ index ];7287if ( jQuery.isArray( value ) ) {7288easing = value[ 1 ];7289value = props[ index ] = value[ 0 ];7290}72917292if ( index !== name ) {7293props[ name ] = value;7294delete props[ index ];7295}72967297hooks = jQuery.cssHooks[ name ];7298if ( hooks && "expand" in hooks ) {7299value = hooks.expand( value );7300delete props[ name ];73017302// not quite $.extend, this wont overwrite keys already present.7303// also - reusing 'index' from above because we have the correct "name"7304for ( index in value ) {7305if ( !( index in props ) ) {7306props[ index ] = value[ index ];7307specialEasing[ index ] = easing;7308}7309}7310} else {7311specialEasing[ name ] = easing;7312}7313}7314}73157316function Animation( elem, properties, options ) {7317var result,7318stopped,7319index = 0,7320length = animationPrefilters.length,7321deferred = jQuery.Deferred().always( function() {7322// don't match elem in the :animated selector7323delete tick.elem;7324}),7325tick = function() {7326if ( stopped ) {7327return false;7328}7329var currentTime = fxNow || createFxNow(),7330remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),7331// archaic crash bug won't allow us to use 1 - ( 0.5 || 0 ) (#12497)7332temp = remaining / animation.duration || 0,7333percent = 1 - temp,7334index = 0,7335length = animation.tweens.length;73367337for ( ; index < length ; index++ ) {7338animation.tweens[ index ].run( percent );7339}73407341deferred.notifyWith( elem, [ animation, percent, remaining ]);73427343if ( percent < 1 && length ) {7344return remaining;7345} else {7346deferred.resolveWith( elem, [ animation ] );7347return false;7348}7349},7350animation = deferred.promise({7351elem: elem,7352props: jQuery.extend( {}, properties ),7353opts: jQuery.extend( true, { specialEasing: {} }, options ),7354originalProperties: properties,7355originalOptions: options,7356startTime: fxNow || createFxNow(),7357duration: options.duration,7358tweens: [],7359createTween: function( prop, end ) {7360var tween = jQuery.Tween( elem, animation.opts, prop, end,7361animation.opts.specialEasing[ prop ] || animation.opts.easing );7362animation.tweens.push( tween );7363return tween;7364},7365stop: function( gotoEnd ) {7366var index = 0,7367// if we are going to the end, we want to run all the tweens7368// otherwise we skip this part7369length = gotoEnd ? animation.tweens.length : 0;7370if ( stopped ) {7371return this;7372}7373stopped = true;7374for ( ; index < length ; index++ ) {7375animation.tweens[ index ].run( 1 );7376}73777378// resolve when we played the last frame7379// otherwise, reject7380if ( gotoEnd ) {7381deferred.resolveWith( elem, [ animation, gotoEnd ] );7382} else {7383deferred.rejectWith( elem, [ animation, gotoEnd ] );7384}7385return this;7386}7387}),7388props = animation.props;73897390propFilter( props, animation.opts.specialEasing );73917392for ( ; index < length ; index++ ) {7393result = animationPrefilters[ index ].call( animation, elem, props, animation.opts );7394if ( result ) {7395return result;7396}7397}73987399jQuery.map( props, createTween, animation );74007401if ( jQuery.isFunction( animation.opts.start ) ) {7402animation.opts.start.call( elem, animation );7403}74047405jQuery.fx.timer(7406jQuery.extend( tick, {7407elem: elem,7408anim: animation,7409queue: animation.opts.queue7410})7411);74127413// attach callbacks from options7414return animation.progress( animation.opts.progress )7415.done( animation.opts.done, animation.opts.complete )7416.fail( animation.opts.fail )7417.always( animation.opts.always );7418}74197420jQuery.Animation = jQuery.extend( Animation, {7421tweener: function( props, callback ) {7422if ( jQuery.isFunction( props ) ) {7423callback = props;7424props = [ "*" ];7425} else {7426props = props.split(" ");7427}74287429var prop,7430index = 0,7431length = props.length;74327433for ( ; index < length ; index++ ) {7434prop = props[ index ];7435tweeners[ prop ] = tweeners[ prop ] || [];7436tweeners[ prop ].unshift( callback );7437}7438},74397440prefilter: function( callback, prepend ) {7441if ( prepend ) {7442animationPrefilters.unshift( callback );7443} else {7444animationPrefilters.push( callback );7445}7446}7447});74487449jQuery.speed = function( speed, easing, fn ) {7450var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {7451complete: fn || !fn && easing ||7452jQuery.isFunction( speed ) && speed,7453duration: speed,7454easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing7455};74567457opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :7458opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;74597460// normalize opt.queue - true/undefined/null -> "fx"7461if ( opt.queue == null || opt.queue === true ) {7462opt.queue = "fx";7463}74647465// Queueing7466opt.old = opt.complete;74677468opt.complete = function() {7469if ( jQuery.isFunction( opt.old ) ) {7470opt.old.call( this );7471}74727473if ( opt.queue ) {7474jQuery.dequeue( this, opt.queue );7475}7476};74777478return opt;7479};74807481jQuery.fn.extend({7482fadeTo: function( speed, to, easing, callback ) {74837484// show any hidden elements after setting opacity to 07485return this.filter( isHidden ).css( "opacity", 0 ).show()74867487// animate to the value specified7488.end().animate({ opacity: to }, speed, easing, callback );7489},7490animate: function( prop, speed, easing, callback ) {7491var empty = jQuery.isEmptyObject( prop ),7492optall = jQuery.speed( speed, easing, callback ),7493doAnimation = function() {7494// Operate on a copy of prop so per-property easing won't be lost7495var anim = Animation( this, jQuery.extend( {}, prop ), optall );74967497// Empty animations, or finishing resolves immediately7498if ( empty || jQuery._data( this, "finish" ) ) {7499anim.stop( true );7500}7501};7502doAnimation.finish = doAnimation;75037504return empty || optall.queue === false ?7505this.each( doAnimation ) :7506this.queue( optall.queue, doAnimation );7507},7508stop: function( type, clearQueue, gotoEnd ) {7509var stopQueue = function( hooks ) {7510var stop = hooks.stop;7511delete hooks.stop;7512stop( gotoEnd );7513};75147515if ( typeof type !== "string" ) {7516gotoEnd = clearQueue;7517clearQueue = type;7518type = undefined;7519}7520if ( clearQueue && type !== false ) {7521this.queue( type || "fx", [] );7522}75237524return this.each(function() {7525var dequeue = true,7526index = type != null && type + "queueHooks",7527timers = jQuery.timers,7528data = jQuery._data( this );75297530if ( index ) {7531if ( data[ index ] && data[ index ].stop ) {7532stopQueue( data[ index ] );7533}7534} else {7535for ( index in data ) {7536if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) {7537stopQueue( data[ index ] );7538}7539}7540}75417542for ( index = timers.length; index--; ) {7543if ( timers[ index ].elem === this && (type == null || timers[ index ].queue === type) ) {7544timers[ index ].anim.stop( gotoEnd );7545dequeue = false;7546timers.splice( index, 1 );7547}7548}75497550// start the next in the queue if the last step wasn't forced7551// timers currently will call their complete callbacks, which will dequeue7552// but only if they were gotoEnd7553if ( dequeue || !gotoEnd ) {7554jQuery.dequeue( this, type );7555}7556});7557},7558finish: function( type ) {7559if ( type !== false ) {7560type = type || "fx";7561}7562return this.each(function() {7563var index,7564data = jQuery._data( this ),7565queue = data[ type + "queue" ],7566hooks = data[ type + "queueHooks" ],7567timers = jQuery.timers,7568length = queue ? queue.length : 0;75697570// enable finishing flag on private data7571data.finish = true;75727573// empty the queue first7574jQuery.queue( this, type, [] );75757576if ( hooks && hooks.stop ) {7577hooks.stop.call( this, true );7578}75797580// look for any active animations, and finish them7581for ( index = timers.length; index--; ) {7582if ( timers[ index ].elem === this && timers[ index ].queue === type ) {7583timers[ index ].anim.stop( true );7584timers.splice( index, 1 );7585}7586}75877588// look for any animations in the old queue and finish them7589for ( index = 0; index < length; index++ ) {7590if ( queue[ index ] && queue[ index ].finish ) {7591queue[ index ].finish.call( this );7592}7593}75947595// turn off finishing flag7596delete data.finish;7597});7598}7599});76007601jQuery.each([ "toggle", "show", "hide" ], function( i, name ) {7602var cssFn = jQuery.fn[ name ];7603jQuery.fn[ name ] = function( speed, easing, callback ) {7604return speed == null || typeof speed === "boolean" ?7605cssFn.apply( this, arguments ) :7606this.animate( genFx( name, true ), speed, easing, callback );7607};7608});76097610// Generate shortcuts for custom animations7611jQuery.each({7612slideDown: genFx("show"),7613slideUp: genFx("hide"),7614slideToggle: genFx("toggle"),7615fadeIn: { opacity: "show" },7616fadeOut: { opacity: "hide" },7617fadeToggle: { opacity: "toggle" }7618}, function( name, props ) {7619jQuery.fn[ name ] = function( speed, easing, callback ) {7620return this.animate( props, speed, easing, callback );7621};7622});76237624jQuery.timers = [];7625jQuery.fx.tick = function() {7626var timer,7627timers = jQuery.timers,7628i = 0;76297630fxNow = jQuery.now();76317632for ( ; i < timers.length; i++ ) {7633timer = timers[ i ];7634// Checks the timer has not already been removed7635if ( !timer() && timers[ i ] === timer ) {7636timers.splice( i--, 1 );7637}7638}76397640if ( !timers.length ) {7641jQuery.fx.stop();7642}7643fxNow = undefined;7644};76457646jQuery.fx.timer = function( timer ) {7647jQuery.timers.push( timer );7648if ( timer() ) {7649jQuery.fx.start();7650} else {7651jQuery.timers.pop();7652}7653};76547655jQuery.fx.interval = 13;76567657jQuery.fx.start = function() {7658if ( !timerId ) {7659timerId = setInterval( jQuery.fx.tick, jQuery.fx.interval );7660}7661};76627663jQuery.fx.stop = function() {7664clearInterval( timerId );7665timerId = null;7666};76677668jQuery.fx.speeds = {7669slow: 600,7670fast: 200,7671// Default speed7672_default: 4007673};767476757676// Based off of the plugin by Clint Helfers, with permission.7677// http://blindsignals.com/index.php/2009/07/jquery-delay/7678jQuery.fn.delay = function( time, type ) {7679time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;7680type = type || "fx";76817682return this.queue( type, function( next, hooks ) {7683var timeout = setTimeout( next, time );7684hooks.stop = function() {7685clearTimeout( timeout );7686};7687});7688};768976907691(function() {7692var a, input, select, opt,7693div = document.createElement("div" );76947695// Setup7696div.setAttribute( "className", "t" );7697div.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";7698a = div.getElementsByTagName("a")[ 0 ];76997700// First batch of tests.7701select = document.createElement("select");7702opt = select.appendChild( document.createElement("option") );7703input = div.getElementsByTagName("input")[ 0 ];77047705a.style.cssText = "top:1px";77067707// Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7)7708support.getSetAttribute = div.className !== "t";77097710// Get the style information from getAttribute7711// (IE uses .cssText instead)7712support.style = /top/.test( a.getAttribute("style") );77137714// Make sure that URLs aren't manipulated7715// (IE normalizes it by default)7716support.hrefNormalized = a.getAttribute("href") === "/a";77177718// Check the default checkbox/radio value ("" on WebKit; "on" elsewhere)7719support.checkOn = !!input.value;77207721// Make sure that a selected-by-default option has a working selected property.7722// (WebKit defaults to false instead of true, IE too, if it's in an optgroup)7723support.optSelected = opt.selected;77247725// Tests for enctype support on a form (#6743)7726support.enctype = !!document.createElement("form").enctype;77277728// Make sure that the options inside disabled selects aren't marked as disabled7729// (WebKit marks them as disabled)7730select.disabled = true;7731support.optDisabled = !opt.disabled;77327733// Support: IE8 only7734// Check if we can trust getAttribute("value")7735input = document.createElement( "input" );7736input.setAttribute( "value", "" );7737support.input = input.getAttribute( "value" ) === "";77387739// Check if an input maintains its value after becoming a radio7740input.value = "t";7741input.setAttribute( "type", "radio" );7742support.radioValue = input.value === "t";77437744// Null elements to avoid leaks in IE.7745a = input = select = opt = div = null;7746})();774777487749var rreturn = /\r/g;77507751jQuery.fn.extend({7752val: function( value ) {7753var hooks, ret, isFunction,7754elem = this[0];77557756if ( !arguments.length ) {7757if ( elem ) {7758hooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ];77597760if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) {7761return ret;7762}77637764ret = elem.value;77657766return typeof ret === "string" ?7767// handle most common string cases7768ret.replace(rreturn, "") :7769// handle cases where value is null/undef or number7770ret == null ? "" : ret;7771}77727773return;7774}77757776isFunction = jQuery.isFunction( value );77777778return this.each(function( i ) {7779var val;77807781if ( this.nodeType !== 1 ) {7782return;7783}77847785if ( isFunction ) {7786val = value.call( this, i, jQuery( this ).val() );7787} else {7788val = value;7789}77907791// Treat null/undefined as ""; convert numbers to string7792if ( val == null ) {7793val = "";7794} else if ( typeof val === "number" ) {7795val += "";7796} else if ( jQuery.isArray( val ) ) {7797val = jQuery.map( val, function( value ) {7798return value == null ? "" : value + "";7799});7800}78017802hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];78037804// If set returns undefined, fall back to normal setting7805if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) {7806this.value = val;7807}7808});7809}7810});78117812jQuery.extend({7813valHooks: {7814option: {7815get: function( elem ) {7816var val = jQuery.find.attr( elem, "value" );7817return val != null ?7818val :7819jQuery.text( elem );7820}7821},7822select: {7823get: function( elem ) {7824var value, option,7825options = elem.options,7826index = elem.selectedIndex,7827one = elem.type === "select-one" || index < 0,7828values = one ? null : [],7829max = one ? index + 1 : options.length,7830i = index < 0 ?7831max :7832one ? index : 0;78337834// Loop through all the selected options7835for ( ; i < max; i++ ) {7836option = options[ i ];78377838// oldIE doesn't update selected after form reset (#2551)7839if ( ( option.selected || i === index ) &&7840// Don't return options that are disabled or in a disabled optgroup7841( support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null ) &&7842( !option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" ) ) ) {78437844// Get the specific value for the option7845value = jQuery( option ).val();78467847// We don't need an array for one selects7848if ( one ) {7849return value;7850}78517852// Multi-Selects return an array7853values.push( value );7854}7855}78567857return values;7858},78597860set: function( elem, value ) {7861var optionSet, option,7862options = elem.options,7863values = jQuery.makeArray( value ),7864i = options.length;78657866while ( i-- ) {7867option = options[ i ];78687869if ( jQuery.inArray( jQuery.valHooks.option.get( option ), values ) >= 0 ) {78707871// Support: IE67872// When new option element is added to select box we need to7873// force reflow of newly added node in order to workaround delay7874// of initialization properties7875try {7876option.selected = optionSet = true;78777878} catch ( _ ) {78797880// Will be executed only in IE67881option.scrollHeight;7882}78837884} else {7885option.selected = false;7886}7887}78887889// Force browsers to behave consistently when non-matching value is set7890if ( !optionSet ) {7891elem.selectedIndex = -1;7892}78937894return options;7895}7896}7897}7898});78997900// Radios and checkboxes getter/setter7901jQuery.each([ "radio", "checkbox" ], function() {7902jQuery.valHooks[ this ] = {7903set: function( elem, value ) {7904if ( jQuery.isArray( value ) ) {7905return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 );7906}7907}7908};7909if ( !support.checkOn ) {7910jQuery.valHooks[ this ].get = function( elem ) {7911// Support: Webkit7912// "" is returned instead of "on" if a value isn't specified7913return elem.getAttribute("value") === null ? "on" : elem.value;7914};7915}7916});79177918791979207921var nodeHook, boolHook,7922attrHandle = jQuery.expr.attrHandle,7923ruseDefault = /^(?:checked|selected)$/i,7924getSetAttribute = support.getSetAttribute,7925getSetInput = support.input;79267927jQuery.fn.extend({7928attr: function( name, value ) {7929return access( this, jQuery.attr, name, value, arguments.length > 1 );7930},79317932removeAttr: function( name ) {7933return this.each(function() {7934jQuery.removeAttr( this, name );7935});7936}7937});79387939jQuery.extend({7940attr: function( elem, name, value ) {7941var hooks, ret,7942nType = elem.nodeType;79437944// don't get/set attributes on text, comment and attribute nodes7945if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {7946return;7947}79487949// Fallback to prop when attributes are not supported7950if ( typeof elem.getAttribute === strundefined ) {7951return jQuery.prop( elem, name, value );7952}79537954// All attributes are lowercase7955// Grab necessary hook if one is defined7956if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {7957name = name.toLowerCase();7958hooks = jQuery.attrHooks[ name ] ||7959( jQuery.expr.match.bool.test( name ) ? boolHook : nodeHook );7960}79617962if ( value !== undefined ) {79637964if ( value === null ) {7965jQuery.removeAttr( elem, name );79667967} else if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {7968return ret;79697970} else {7971elem.setAttribute( name, value + "" );7972return value;7973}79747975} else if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) {7976return ret;79777978} else {7979ret = jQuery.find.attr( elem, name );79807981// Non-existent attributes return null, we normalize to undefined7982return ret == null ?7983undefined :7984ret;7985}7986},79877988removeAttr: function( elem, value ) {7989var name, propName,7990i = 0,7991attrNames = value && value.match( rnotwhite );79927993if ( attrNames && elem.nodeType === 1 ) {7994while ( (name = attrNames[i++]) ) {7995propName = jQuery.propFix[ name ] || name;79967997// Boolean attributes get special treatment (#10870)7998if ( jQuery.expr.match.bool.test( name ) ) {7999// Set corresponding property to false8000if ( getSetInput && getSetAttribute || !ruseDefault.test( name ) ) {8001elem[ propName ] = false;8002// Support: IE<98003// Also clear defaultChecked/defaultSelected (if appropriate)8004} else {8005elem[ jQuery.camelCase( "default-" + name ) ] =8006elem[ propName ] = false;8007}80088009// See #9699 for explanation of this approach (setting first, then removal)8010} else {8011jQuery.attr( elem, name, "" );8012}80138014elem.removeAttribute( getSetAttribute ? name : propName );8015}8016}8017},80188019attrHooks: {8020type: {8021set: function( elem, value ) {8022if ( !support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) {8023// Setting the type on a radio button after the value resets the value in IE6-98024// Reset value to default in case type is set after value during creation8025var val = elem.value;8026elem.setAttribute( "type", value );8027if ( val ) {8028elem.value = val;8029}8030return value;8031}8032}8033}8034}8035});80368037// Hook for boolean attributes8038boolHook = {8039set: function( elem, value, name ) {8040if ( value === false ) {8041// Remove boolean attributes when set to false8042jQuery.removeAttr( elem, name );8043} else if ( getSetInput && getSetAttribute || !ruseDefault.test( name ) ) {8044// IE<8 needs the *property* name8045elem.setAttribute( !getSetAttribute && jQuery.propFix[ name ] || name, name );80468047// Use defaultChecked and defaultSelected for oldIE8048} else {8049elem[ jQuery.camelCase( "default-" + name ) ] = elem[ name ] = true;8050}80518052return name;8053}8054};80558056// Retrieve booleans specially8057jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) {80588059var getter = attrHandle[ name ] || jQuery.find.attr;80608061attrHandle[ name ] = getSetInput && getSetAttribute || !ruseDefault.test( name ) ?8062function( elem, name, isXML ) {8063var ret, handle;8064if ( !isXML ) {8065// Avoid an infinite loop by temporarily removing this function from the getter8066handle = attrHandle[ name ];8067attrHandle[ name ] = ret;8068ret = getter( elem, name, isXML ) != null ?8069name.toLowerCase() :8070null;8071attrHandle[ name ] = handle;8072}8073return ret;8074} :8075function( elem, name, isXML ) {8076if ( !isXML ) {8077return elem[ jQuery.camelCase( "default-" + name ) ] ?8078name.toLowerCase() :8079null;8080}8081};8082});80838084// fix oldIE attroperties8085if ( !getSetInput || !getSetAttribute ) {8086jQuery.attrHooks.value = {8087set: function( elem, value, name ) {8088if ( jQuery.nodeName( elem, "input" ) ) {8089// Does not return so that setAttribute is also used8090elem.defaultValue = value;8091} else {8092// Use nodeHook if defined (#1954); otherwise setAttribute is fine8093return nodeHook && nodeHook.set( elem, value, name );8094}8095}8096};8097}80988099// IE6/7 do not support getting/setting some attributes with get/setAttribute8100if ( !getSetAttribute ) {81018102// Use this for any attribute in IE6/78103// This fixes almost every IE6/7 issue8104nodeHook = {8105set: function( elem, value, name ) {8106// Set the existing or create a new attribute node8107var ret = elem.getAttributeNode( name );8108if ( !ret ) {8109elem.setAttributeNode(8110(ret = elem.ownerDocument.createAttribute( name ))8111);8112}81138114ret.value = value += "";81158116// Break association with cloned elements by also using setAttribute (#9646)8117if ( name === "value" || value === elem.getAttribute( name ) ) {8118return value;8119}8120}8121};81228123// Some attributes are constructed with empty-string values when not defined8124attrHandle.id = attrHandle.name = attrHandle.coords =8125function( elem, name, isXML ) {8126var ret;8127if ( !isXML ) {8128return (ret = elem.getAttributeNode( name )) && ret.value !== "" ?8129ret.value :8130null;8131}8132};81338134// Fixing value retrieval on a button requires this module8135jQuery.valHooks.button = {8136get: function( elem, name ) {8137var ret = elem.getAttributeNode( name );8138if ( ret && ret.specified ) {8139return ret.value;8140}8141},8142set: nodeHook.set8143};81448145// Set contenteditable to false on removals(#10429)8146// Setting to empty string throws an error as an invalid value8147jQuery.attrHooks.contenteditable = {8148set: function( elem, value, name ) {8149nodeHook.set( elem, value === "" ? false : value, name );8150}8151};81528153// Set width and height to auto instead of 0 on empty string( Bug #8150 )8154// This is for removals8155jQuery.each([ "width", "height" ], function( i, name ) {8156jQuery.attrHooks[ name ] = {8157set: function( elem, value ) {8158if ( value === "" ) {8159elem.setAttribute( name, "auto" );8160return value;8161}8162}8163};8164});8165}81668167if ( !support.style ) {8168jQuery.attrHooks.style = {8169get: function( elem ) {8170// Return undefined in the case of empty string8171// Note: IE uppercases css property names, but if we were to .toLowerCase()8172// .cssText, that would destroy case senstitivity in URL's, like in "background"8173return elem.style.cssText || undefined;8174},8175set: function( elem, value ) {8176return ( elem.style.cssText = value + "" );8177}8178};8179}81808181818281838184var rfocusable = /^(?:input|select|textarea|button|object)$/i,8185rclickable = /^(?:a|area)$/i;81868187jQuery.fn.extend({8188prop: function( name, value ) {8189return access( this, jQuery.prop, name, value, arguments.length > 1 );8190},81918192removeProp: function( name ) {8193name = jQuery.propFix[ name ] || name;8194return this.each(function() {8195// try/catch handles cases where IE balks (such as removing a property on window)8196try {8197this[ name ] = undefined;8198delete this[ name ];8199} catch( e ) {}8200});8201}8202});82038204jQuery.extend({8205propFix: {8206"for": "htmlFor",8207"class": "className"8208},82098210prop: function( elem, name, value ) {8211var ret, hooks, notxml,8212nType = elem.nodeType;82138214// don't get/set properties on text, comment and attribute nodes8215if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {8216return;8217}82188219notxml = nType !== 1 || !jQuery.isXMLDoc( elem );82208221if ( notxml ) {8222// Fix name and attach hooks8223name = jQuery.propFix[ name ] || name;8224hooks = jQuery.propHooks[ name ];8225}82268227if ( value !== undefined ) {8228return hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ?8229ret :8230( elem[ name ] = value );82318232} else {8233return hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ?8234ret :8235elem[ name ];8236}8237},82388239propHooks: {8240tabIndex: {8241get: function( elem ) {8242// elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set8243// http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/8244// Use proper attribute retrieval(#12072)8245var tabindex = jQuery.find.attr( elem, "tabindex" );82468247return tabindex ?8248parseInt( tabindex, 10 ) :8249rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?82500 :8251-1;8252}8253}8254}8255});82568257// Some attributes require a special call on IE8258// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx8259if ( !support.hrefNormalized ) {8260// href/src property should get the full normalized URL (#10299/#12915)8261jQuery.each([ "href", "src" ], function( i, name ) {8262jQuery.propHooks[ name ] = {8263get: function( elem ) {8264return elem.getAttribute( name, 4 );8265}8266};8267});8268}82698270// Support: Safari, IE9+8271// mis-reports the default selected property of an option8272// Accessing the parent's selectedIndex property fixes it8273if ( !support.optSelected ) {8274jQuery.propHooks.selected = {8275get: function( elem ) {8276var parent = elem.parentNode;82778278if ( parent ) {8279parent.selectedIndex;82808281// Make sure that it also works with optgroups, see #57018282if ( parent.parentNode ) {8283parent.parentNode.selectedIndex;8284}8285}8286return null;8287}8288};8289}82908291jQuery.each([8292"tabIndex",8293"readOnly",8294"maxLength",8295"cellSpacing",8296"cellPadding",8297"rowSpan",8298"colSpan",8299"useMap",8300"frameBorder",8301"contentEditable"8302], function() {8303jQuery.propFix[ this.toLowerCase() ] = this;8304});83058306// IE6/7 call enctype encoding8307if ( !support.enctype ) {8308jQuery.propFix.enctype = "encoding";8309}83108311831283138314var rclass = /[\t\r\n\f]/g;83158316jQuery.fn.extend({8317addClass: function( value ) {8318var classes, elem, cur, clazz, j, finalValue,8319i = 0,8320len = this.length,8321proceed = typeof value === "string" && value;83228323if ( jQuery.isFunction( value ) ) {8324return this.each(function( j ) {8325jQuery( this ).addClass( value.call( this, j, this.className ) );8326});8327}83288329if ( proceed ) {8330// The disjunction here is for better compressibility (see removeClass)8331classes = ( value || "" ).match( rnotwhite ) || [];83328333for ( ; i < len; i++ ) {8334elem = this[ i ];8335cur = elem.nodeType === 1 && ( elem.className ?8336( " " + elem.className + " " ).replace( rclass, " " ) :8337" "8338);83398340if ( cur ) {8341j = 0;8342while ( (clazz = classes[j++]) ) {8343if ( cur.indexOf( " " + clazz + " " ) < 0 ) {8344cur += clazz + " ";8345}8346}83478348// only assign if different to avoid unneeded rendering.8349finalValue = jQuery.trim( cur );8350if ( elem.className !== finalValue ) {8351elem.className = finalValue;8352}8353}8354}8355}83568357return this;8358},83598360removeClass: function( value ) {8361var classes, elem, cur, clazz, j, finalValue,8362i = 0,8363len = this.length,8364proceed = arguments.length === 0 || typeof value === "string" && value;83658366if ( jQuery.isFunction( value ) ) {8367return this.each(function( j ) {8368jQuery( this ).removeClass( value.call( this, j, this.className ) );8369});8370}8371if ( proceed ) {8372classes = ( value || "" ).match( rnotwhite ) || [];83738374for ( ; i < len; i++ ) {8375elem = this[ i ];8376// This expression is here for better compressibility (see addClass)8377cur = elem.nodeType === 1 && ( elem.className ?8378( " " + elem.className + " " ).replace( rclass, " " ) :8379""8380);83818382if ( cur ) {8383j = 0;8384while ( (clazz = classes[j++]) ) {8385// Remove *all* instances8386while ( cur.indexOf( " " + clazz + " " ) >= 0 ) {8387cur = cur.replace( " " + clazz + " ", " " );8388}8389}83908391// only assign if different to avoid unneeded rendering.8392finalValue = value ? jQuery.trim( cur ) : "";8393if ( elem.className !== finalValue ) {8394elem.className = finalValue;8395}8396}8397}8398}83998400return this;8401},84028403toggleClass: function( value, stateVal ) {8404var type = typeof value;84058406if ( typeof stateVal === "boolean" && type === "string" ) {8407return stateVal ? this.addClass( value ) : this.removeClass( value );8408}84098410if ( jQuery.isFunction( value ) ) {8411return this.each(function( i ) {8412jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal );8413});8414}84158416return this.each(function() {8417if ( type === "string" ) {8418// toggle individual class names8419var className,8420i = 0,8421self = jQuery( this ),8422classNames = value.match( rnotwhite ) || [];84238424while ( (className = classNames[ i++ ]) ) {8425// check each className given, space separated list8426if ( self.hasClass( className ) ) {8427self.removeClass( className );8428} else {8429self.addClass( className );8430}8431}84328433// Toggle whole class name8434} else if ( type === strundefined || type === "boolean" ) {8435if ( this.className ) {8436// store className if set8437jQuery._data( this, "__className__", this.className );8438}84398440// If the element has a class name or if we're passed "false",8441// then remove the whole classname (if there was one, the above saved it).8442// Otherwise bring back whatever was previously saved (if anything),8443// falling back to the empty string if nothing was stored.8444this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || "";8445}8446});8447},84488449hasClass: function( selector ) {8450var className = " " + selector + " ",8451i = 0,8452l = this.length;8453for ( ; i < l; i++ ) {8454if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) >= 0 ) {8455return true;8456}8457}84588459return false;8460}8461});84628463846484658466// Return jQuery for attributes-only inclusion846784688469jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +8470"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +8471"change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) {84728473// Handle event binding8474jQuery.fn[ name ] = function( data, fn ) {8475return arguments.length > 0 ?8476this.on( name, null, data, fn ) :8477this.trigger( name );8478};8479});84808481jQuery.fn.extend({8482hover: function( fnOver, fnOut ) {8483return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );8484},84858486bind: function( types, data, fn ) {8487return this.on( types, null, data, fn );8488},8489unbind: function( types, fn ) {8490return this.off( types, null, fn );8491},84928493delegate: function( selector, types, data, fn ) {8494return this.on( types, selector, data, fn );8495},8496undelegate: function( selector, types, fn ) {8497// ( namespace ) or ( selector, types [, fn] )8498return arguments.length === 1 ? this.off( selector, "**" ) : this.off( types, selector || "**", fn );8499}8500});850185028503var nonce = jQuery.now();85048505var rquery = (/\?/);8506850785088509var rvalidtokens = /(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;85108511jQuery.parseJSON = function( data ) {8512// Attempt to parse using the native JSON parser first8513if ( window.JSON && window.JSON.parse ) {8514// Support: Android 2.38515// Workaround failure to string-cast null input8516return window.JSON.parse( data + "" );8517}85188519var requireNonComma,8520depth = null,8521str = jQuery.trim( data + "" );85228523// Guard against invalid (and possibly dangerous) input by ensuring that nothing remains8524// after removing valid tokens8525return str && !jQuery.trim( str.replace( rvalidtokens, function( token, comma, open, close ) {85268527// Force termination if we see a misplaced comma8528if ( requireNonComma && comma ) {8529depth = 0;8530}85318532// Perform no more replacements after returning to outermost depth8533if ( depth === 0 ) {8534return token;8535}85368537// Commas must not follow "[", "{", or ","8538requireNonComma = open || comma;85398540// Determine new depth8541// array/object open ("[" or "{"): depth += true - false (increment)8542// array/object close ("]" or "}"): depth += false - true (decrement)8543// other cases ("," or primitive): depth += true - true (numeric cast)8544depth += !close - !open;85458546// Remove this token8547return "";8548}) ) ?8549( Function( "return " + str ) )() :8550jQuery.error( "Invalid JSON: " + data );8551};855285538554// Cross-browser xml parsing8555jQuery.parseXML = function( data ) {8556var xml, tmp;8557if ( !data || typeof data !== "string" ) {8558return null;8559}8560try {8561if ( window.DOMParser ) { // Standard8562tmp = new DOMParser();8563xml = tmp.parseFromString( data, "text/xml" );8564} else { // IE8565xml = new ActiveXObject( "Microsoft.XMLDOM" );8566xml.async = "false";8567xml.loadXML( data );8568}8569} catch( e ) {8570xml = undefined;8571}8572if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) {8573jQuery.error( "Invalid XML: " + data );8574}8575return xml;8576};857785788579var8580// Document location8581ajaxLocParts,8582ajaxLocation,85838584rhash = /#.*$/,8585rts = /([?&])_=[^&]*/,8586rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at EOL8587// #7653, #8125, #8152: local protocol detection8588rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,8589rnoContent = /^(?:GET|HEAD)$/,8590rprotocol = /^\/\//,8591rurl = /^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,85928593/* Prefilters8594* 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)8595* 2) These are called:8596* - BEFORE asking for a transport8597* - AFTER param serialization (s.data is a string if s.processData is true)8598* 3) key is the dataType8599* 4) the catchall symbol "*" can be used8600* 5) execution will start with transport dataType and THEN continue down to "*" if needed8601*/8602prefilters = {},86038604/* Transports bindings8605* 1) key is the dataType8606* 2) the catchall symbol "*" can be used8607* 3) selection will start with transport dataType and THEN go to "*" if needed8608*/8609transports = {},86108611// Avoid comment-prolog char sequence (#10098); must appease lint and evade compression8612allTypes = "*/".concat("*");86138614// #8138, IE may throw an exception when accessing8615// a field from window.location if document.domain has been set8616try {8617ajaxLocation = location.href;8618} catch( e ) {8619// Use the href attribute of an A element8620// since IE will modify it given document.location8621ajaxLocation = document.createElement( "a" );8622ajaxLocation.href = "";8623ajaxLocation = ajaxLocation.href;8624}86258626// Segment location into parts8627ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || [];86288629// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport8630function addToPrefiltersOrTransports( structure ) {86318632// dataTypeExpression is optional and defaults to "*"8633return function( dataTypeExpression, func ) {86348635if ( typeof dataTypeExpression !== "string" ) {8636func = dataTypeExpression;8637dataTypeExpression = "*";8638}86398640var dataType,8641i = 0,8642dataTypes = dataTypeExpression.toLowerCase().match( rnotwhite ) || [];86438644if ( jQuery.isFunction( func ) ) {8645// For each dataType in the dataTypeExpression8646while ( (dataType = dataTypes[i++]) ) {8647// Prepend if requested8648if ( dataType.charAt( 0 ) === "+" ) {8649dataType = dataType.slice( 1 ) || "*";8650(structure[ dataType ] = structure[ dataType ] || []).unshift( func );86518652// Otherwise append8653} else {8654(structure[ dataType ] = structure[ dataType ] || []).push( func );8655}8656}8657}8658};8659}86608661// Base inspection function for prefilters and transports8662function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {86638664var inspected = {},8665seekingTransport = ( structure === transports );86668667function inspect( dataType ) {8668var selected;8669inspected[ dataType ] = true;8670jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {8671var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );8672if ( typeof dataTypeOrTransport === "string" && !seekingTransport && !inspected[ dataTypeOrTransport ] ) {8673options.dataTypes.unshift( dataTypeOrTransport );8674inspect( dataTypeOrTransport );8675return false;8676} else if ( seekingTransport ) {8677return !( selected = dataTypeOrTransport );8678}8679});8680return selected;8681}86828683return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" );8684}86858686// A special extend for ajax options8687// that takes "flat" options (not to be deep extended)8688// Fixes #98878689function ajaxExtend( target, src ) {8690var deep, key,8691flatOptions = jQuery.ajaxSettings.flatOptions || {};86928693for ( key in src ) {8694if ( src[ key ] !== undefined ) {8695( flatOptions[ key ] ? target : ( deep || (deep = {}) ) )[ key ] = src[ key ];8696}8697}8698if ( deep ) {8699jQuery.extend( true, target, deep );8700}87018702return target;8703}87048705/* Handles responses to an ajax request:8706* - finds the right dataType (mediates between content-type and expected dataType)8707* - returns the corresponding response8708*/8709function ajaxHandleResponses( s, jqXHR, responses ) {8710var firstDataType, ct, finalDataType, type,8711contents = s.contents,8712dataTypes = s.dataTypes;87138714// Remove auto dataType and get content-type in the process8715while ( dataTypes[ 0 ] === "*" ) {8716dataTypes.shift();8717if ( ct === undefined ) {8718ct = s.mimeType || jqXHR.getResponseHeader("Content-Type");8719}8720}87218722// Check if we're dealing with a known content-type8723if ( ct ) {8724for ( type in contents ) {8725if ( contents[ type ] && contents[ type ].test( ct ) ) {8726dataTypes.unshift( type );8727break;8728}8729}8730}87318732// Check to see if we have a response for the expected dataType8733if ( dataTypes[ 0 ] in responses ) {8734finalDataType = dataTypes[ 0 ];8735} else {8736// Try convertible dataTypes8737for ( type in responses ) {8738if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[0] ] ) {8739finalDataType = type;8740break;8741}8742if ( !firstDataType ) {8743firstDataType = type;8744}8745}8746// Or just use first one8747finalDataType = finalDataType || firstDataType;8748}87498750// If we found a dataType8751// We add the dataType to the list if needed8752// and return the corresponding response8753if ( finalDataType ) {8754if ( finalDataType !== dataTypes[ 0 ] ) {8755dataTypes.unshift( finalDataType );8756}8757return responses[ finalDataType ];8758}8759}87608761/* Chain conversions given the request and the original response8762* Also sets the responseXXX fields on the jqXHR instance8763*/8764function ajaxConvert( s, response, jqXHR, isSuccess ) {8765var conv2, current, conv, tmp, prev,8766converters = {},8767// Work with a copy of dataTypes in case we need to modify it for conversion8768dataTypes = s.dataTypes.slice();87698770// Create converters map with lowercased keys8771if ( dataTypes[ 1 ] ) {8772for ( conv in s.converters ) {8773converters[ conv.toLowerCase() ] = s.converters[ conv ];8774}8775}87768777current = dataTypes.shift();87788779// Convert to each sequential dataType8780while ( current ) {87818782if ( s.responseFields[ current ] ) {8783jqXHR[ s.responseFields[ current ] ] = response;8784}87858786// Apply the dataFilter if provided8787if ( !prev && isSuccess && s.dataFilter ) {8788response = s.dataFilter( response, s.dataType );8789}87908791prev = current;8792current = dataTypes.shift();87938794if ( current ) {87958796// There's only work to do if current dataType is non-auto8797if ( current === "*" ) {87988799current = prev;88008801// Convert response if prev dataType is non-auto and differs from current8802} else if ( prev !== "*" && prev !== current ) {88038804// Seek a direct converter8805conv = converters[ prev + " " + current ] || converters[ "* " + current ];88068807// If none found, seek a pair8808if ( !conv ) {8809for ( conv2 in converters ) {88108811// If conv2 outputs current8812tmp = conv2.split( " " );8813if ( tmp[ 1 ] === current ) {88148815// If prev can be converted to accepted input8816conv = converters[ prev + " " + tmp[ 0 ] ] ||8817converters[ "* " + tmp[ 0 ] ];8818if ( conv ) {8819// Condense equivalence converters8820if ( conv === true ) {8821conv = converters[ conv2 ];88228823// Otherwise, insert the intermediate dataType8824} else if ( converters[ conv2 ] !== true ) {8825current = tmp[ 0 ];8826dataTypes.unshift( tmp[ 1 ] );8827}8828break;8829}8830}8831}8832}88338834// Apply converter (if not an equivalence)8835if ( conv !== true ) {88368837// Unless errors are allowed to bubble, catch and return them8838if ( conv && s[ "throws" ] ) {8839response = conv( response );8840} else {8841try {8842response = conv( response );8843} catch ( e ) {8844return { state: "parsererror", error: conv ? e : "No conversion from " + prev + " to " + current };8845}8846}8847}8848}8849}8850}88518852return { state: "success", data: response };8853}88548855jQuery.extend({88568857// Counter for holding the number of active queries8858active: 0,88598860// Last-Modified header cache for next request8861lastModified: {},8862etag: {},88638864ajaxSettings: {8865url: ajaxLocation,8866type: "GET",8867isLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ),8868global: true,8869processData: true,8870async: true,8871contentType: "application/x-www-form-urlencoded; charset=UTF-8",8872/*8873timeout: 0,8874data: null,8875dataType: null,8876username: null,8877password: null,8878cache: null,8879throws: false,8880traditional: false,8881headers: {},8882*/88838884accepts: {8885"*": allTypes,8886text: "text/plain",8887html: "text/html",8888xml: "application/xml, text/xml",8889json: "application/json, text/javascript"8890},88918892contents: {8893xml: /xml/,8894html: /html/,8895json: /json/8896},88978898responseFields: {8899xml: "responseXML",8900text: "responseText",8901json: "responseJSON"8902},89038904// Data converters8905// Keys separate source (or catchall "*") and destination types with a single space8906converters: {89078908// Convert anything to text8909"* text": String,89108911// Text to html (true = no transformation)8912"text html": true,89138914// Evaluate text as a json expression8915"text json": jQuery.parseJSON,89168917// Parse text as xml8918"text xml": jQuery.parseXML8919},89208921// For options that shouldn't be deep extended:8922// you can add your own custom options here if8923// and when you create one that shouldn't be8924// deep extended (see ajaxExtend)8925flatOptions: {8926url: true,8927context: true8928}8929},89308931// Creates a full fledged settings object into target8932// with both ajaxSettings and settings fields.8933// If target is omitted, writes into ajaxSettings.8934ajaxSetup: function( target, settings ) {8935return settings ?89368937// Building a settings object8938ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :89398940// Extending ajaxSettings8941ajaxExtend( jQuery.ajaxSettings, target );8942},89438944ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),8945ajaxTransport: addToPrefiltersOrTransports( transports ),89468947// Main method8948ajax: function( url, options ) {89498950// If url is an object, simulate pre-1.5 signature8951if ( typeof url === "object" ) {8952options = url;8953url = undefined;8954}89558956// Force options to be an object8957options = options || {};89588959var // Cross-domain detection vars8960parts,8961// Loop variable8962i,8963// URL without anti-cache param8964cacheURL,8965// Response headers as string8966responseHeadersString,8967// timeout handle8968timeoutTimer,89698970// To know if global events are to be dispatched8971fireGlobals,89728973transport,8974// Response headers8975responseHeaders,8976// Create the final options object8977s = jQuery.ajaxSetup( {}, options ),8978// Callbacks context8979callbackContext = s.context || s,8980// Context for global events is callbackContext if it is a DOM node or jQuery collection8981globalEventContext = s.context && ( callbackContext.nodeType || callbackContext.jquery ) ?8982jQuery( callbackContext ) :8983jQuery.event,8984// Deferreds8985deferred = jQuery.Deferred(),8986completeDeferred = jQuery.Callbacks("once memory"),8987// Status-dependent callbacks8988statusCode = s.statusCode || {},8989// Headers (they are sent all at once)8990requestHeaders = {},8991requestHeadersNames = {},8992// The jqXHR state8993state = 0,8994// Default abort message8995strAbort = "canceled",8996// Fake xhr8997jqXHR = {8998readyState: 0,89999000// Builds headers hashtable if needed9001getResponseHeader: function( key ) {9002var match;9003if ( state === 2 ) {9004if ( !responseHeaders ) {9005responseHeaders = {};9006while ( (match = rheaders.exec( responseHeadersString )) ) {9007responseHeaders[ match[1].toLowerCase() ] = match[ 2 ];9008}9009}9010match = responseHeaders[ key.toLowerCase() ];9011}9012return match == null ? null : match;9013},90149015// Raw string9016getAllResponseHeaders: function() {9017return state === 2 ? responseHeadersString : null;9018},90199020// Caches the header9021setRequestHeader: function( name, value ) {9022var lname = name.toLowerCase();9023if ( !state ) {9024name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;9025requestHeaders[ name ] = value;9026}9027return this;9028},90299030// Overrides response content-type header9031overrideMimeType: function( type ) {9032if ( !state ) {9033s.mimeType = type;9034}9035return this;9036},90379038// Status-dependent callbacks9039statusCode: function( map ) {9040var code;9041if ( map ) {9042if ( state < 2 ) {9043for ( code in map ) {9044// Lazy-add the new callback in a way that preserves old ones9045statusCode[ code ] = [ statusCode[ code ], map[ code ] ];9046}9047} else {9048// Execute the appropriate callbacks9049jqXHR.always( map[ jqXHR.status ] );9050}9051}9052return this;9053},90549055// Cancel the request9056abort: function( statusText ) {9057var finalText = statusText || strAbort;9058if ( transport ) {9059transport.abort( finalText );9060}9061done( 0, finalText );9062return this;9063}9064};90659066// Attach deferreds9067deferred.promise( jqXHR ).complete = completeDeferred.add;9068jqXHR.success = jqXHR.done;9069jqXHR.error = jqXHR.fail;90709071// Remove hash character (#7531: and string promotion)9072// Add protocol if not provided (#5866: IE7 issue with protocol-less urls)9073// Handle falsy url in the settings object (#10093: consistency with old signature)9074// We also use the url parameter if available9075s.url = ( ( url || s.url || ajaxLocation ) + "" ).replace( rhash, "" ).replace( rprotocol, ajaxLocParts[ 1 ] + "//" );90769077// Alias method option to type as per ticket #120049078s.type = options.method || options.type || s.method || s.type;90799080// Extract dataTypes list9081s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().match( rnotwhite ) || [ "" ];90829083// A cross-domain request is in order when we have a protocol:host:port mismatch9084if ( s.crossDomain == null ) {9085parts = rurl.exec( s.url.toLowerCase() );9086s.crossDomain = !!( parts &&9087( parts[ 1 ] !== ajaxLocParts[ 1 ] || parts[ 2 ] !== ajaxLocParts[ 2 ] ||9088( parts[ 3 ] || ( parts[ 1 ] === "http:" ? "80" : "443" ) ) !==9089( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? "80" : "443" ) ) )9090);9091}90929093// Convert data if not already a string9094if ( s.data && s.processData && typeof s.data !== "string" ) {9095s.data = jQuery.param( s.data, s.traditional );9096}90979098// Apply prefilters9099inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );91009101// If request was aborted inside a prefilter, stop there9102if ( state === 2 ) {9103return jqXHR;9104}91059106// We can fire global events as of now if asked to9107fireGlobals = s.global;91089109// Watch for a new set of requests9110if ( fireGlobals && jQuery.active++ === 0 ) {9111jQuery.event.trigger("ajaxStart");9112}91139114// Uppercase the type9115s.type = s.type.toUpperCase();91169117// Determine if request has content9118s.hasContent = !rnoContent.test( s.type );91199120// Save the URL in case we're toying with the If-Modified-Since9121// and/or If-None-Match header later on9122cacheURL = s.url;91239124// More options handling for requests with no content9125if ( !s.hasContent ) {91269127// If data is available, append data to url9128if ( s.data ) {9129cacheURL = ( s.url += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data );9130// #9682: remove data so that it's not used in an eventual retry9131delete s.data;9132}91339134// Add anti-cache in url if needed9135if ( s.cache === false ) {9136s.url = rts.test( cacheURL ) ?91379138// If there is already a '_' parameter, set its value9139cacheURL.replace( rts, "$1_=" + nonce++ ) :91409141// Otherwise add one to the end9142cacheURL + ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + nonce++;9143}9144}91459146// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.9147if ( s.ifModified ) {9148if ( jQuery.lastModified[ cacheURL ] ) {9149jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] );9150}9151if ( jQuery.etag[ cacheURL ] ) {9152jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] );9153}9154}91559156// Set the correct header, if data is being sent9157if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {9158jqXHR.setRequestHeader( "Content-Type", s.contentType );9159}91609161// Set the Accepts header for the server, depending on the dataType9162jqXHR.setRequestHeader(9163"Accept",9164s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ?9165s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :9166s.accepts[ "*" ]9167);91689169// Check for headers option9170for ( i in s.headers ) {9171jqXHR.setRequestHeader( i, s.headers[ i ] );9172}91739174// Allow custom headers/mimetypes and early abort9175if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {9176// Abort if not done already and return9177return jqXHR.abort();9178}91799180// aborting is no longer a cancellation9181strAbort = "abort";91829183// Install callbacks on deferreds9184for ( i in { success: 1, error: 1, complete: 1 } ) {9185jqXHR[ i ]( s[ i ] );9186}91879188// Get transport9189transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );91909191// If no transport, we auto-abort9192if ( !transport ) {9193done( -1, "No Transport" );9194} else {9195jqXHR.readyState = 1;91969197// Send global event9198if ( fireGlobals ) {9199globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );9200}9201// Timeout9202if ( s.async && s.timeout > 0 ) {9203timeoutTimer = setTimeout(function() {9204jqXHR.abort("timeout");9205}, s.timeout );9206}92079208try {9209state = 1;9210transport.send( requestHeaders, done );9211} catch ( e ) {9212// Propagate exception as error if not done9213if ( state < 2 ) {9214done( -1, e );9215// Simply rethrow otherwise9216} else {9217throw e;9218}9219}9220}92219222// Callback for when everything is done9223function done( status, nativeStatusText, responses, headers ) {9224var isSuccess, success, error, response, modified,9225statusText = nativeStatusText;92269227// Called once9228if ( state === 2 ) {9229return;9230}92319232// State is "done" now9233state = 2;92349235// Clear timeout if it exists9236if ( timeoutTimer ) {9237clearTimeout( timeoutTimer );9238}92399240// Dereference transport for early garbage collection9241// (no matter how long the jqXHR object will be used)9242transport = undefined;92439244// Cache response headers9245responseHeadersString = headers || "";92469247// Set readyState9248jqXHR.readyState = status > 0 ? 4 : 0;92499250// Determine if successful9251isSuccess = status >= 200 && status < 300 || status === 304;92529253// Get response data9254if ( responses ) {9255response = ajaxHandleResponses( s, jqXHR, responses );9256}92579258// Convert no matter what (that way responseXXX fields are always set)9259response = ajaxConvert( s, response, jqXHR, isSuccess );92609261// If successful, handle type chaining9262if ( isSuccess ) {92639264// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.9265if ( s.ifModified ) {9266modified = jqXHR.getResponseHeader("Last-Modified");9267if ( modified ) {9268jQuery.lastModified[ cacheURL ] = modified;9269}9270modified = jqXHR.getResponseHeader("etag");9271if ( modified ) {9272jQuery.etag[ cacheURL ] = modified;9273}9274}92759276// if no content9277if ( status === 204 || s.type === "HEAD" ) {9278statusText = "nocontent";92799280// if not modified9281} else if ( status === 304 ) {9282statusText = "notmodified";92839284// If we have data, let's convert it9285} else {9286statusText = response.state;9287success = response.data;9288error = response.error;9289isSuccess = !error;9290}9291} else {9292// We extract error from statusText9293// then normalize statusText and status for non-aborts9294error = statusText;9295if ( status || !statusText ) {9296statusText = "error";9297if ( status < 0 ) {9298status = 0;9299}9300}9301}93029303// Set data for the fake xhr object9304jqXHR.status = status;9305jqXHR.statusText = ( nativeStatusText || statusText ) + "";93069307// Success/Error9308if ( isSuccess ) {9309deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );9310} else {9311deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );9312}93139314// Status-dependent callbacks9315jqXHR.statusCode( statusCode );9316statusCode = undefined;93179318if ( fireGlobals ) {9319globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError",9320[ jqXHR, s, isSuccess ? success : error ] );9321}93229323// Complete9324completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );93259326if ( fireGlobals ) {9327globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );9328// Handle the global AJAX counter9329if ( !( --jQuery.active ) ) {9330jQuery.event.trigger("ajaxStop");9331}9332}9333}93349335return jqXHR;9336},93379338getJSON: function( url, data, callback ) {9339return jQuery.get( url, data, callback, "json" );9340},93419342getScript: function( url, callback ) {9343return jQuery.get( url, undefined, callback, "script" );9344}9345});93469347jQuery.each( [ "get", "post" ], function( i, method ) {9348jQuery[ method ] = function( url, data, callback, type ) {9349// shift arguments if data argument was omitted9350if ( jQuery.isFunction( data ) ) {9351type = type || callback;9352callback = data;9353data = undefined;9354}93559356return jQuery.ajax({9357url: url,9358type: method,9359dataType: type,9360data: data,9361success: callback9362});9363};9364});93659366// Attach a bunch of functions for handling common AJAX events9367jQuery.each( [ "ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend" ], function( i, type ) {9368jQuery.fn[ type ] = function( fn ) {9369return this.on( type, fn );9370};9371});937293739374jQuery._evalUrl = function( url ) {9375return jQuery.ajax({9376url: url,9377type: "GET",9378dataType: "script",9379async: false,9380global: false,9381"throws": true9382});9383};938493859386jQuery.fn.extend({9387wrapAll: function( html ) {9388if ( jQuery.isFunction( html ) ) {9389return this.each(function(i) {9390jQuery(this).wrapAll( html.call(this, i) );9391});9392}93939394if ( this[0] ) {9395// The elements to wrap the target around9396var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true);93979398if ( this[0].parentNode ) {9399wrap.insertBefore( this[0] );9400}94019402wrap.map(function() {9403var elem = this;94049405while ( elem.firstChild && elem.firstChild.nodeType === 1 ) {9406elem = elem.firstChild;9407}94089409return elem;9410}).append( this );9411}94129413return this;9414},94159416wrapInner: function( html ) {9417if ( jQuery.isFunction( html ) ) {9418return this.each(function(i) {9419jQuery(this).wrapInner( html.call(this, i) );9420});9421}94229423return this.each(function() {9424var self = jQuery( this ),9425contents = self.contents();94269427if ( contents.length ) {9428contents.wrapAll( html );94299430} else {9431self.append( html );9432}9433});9434},94359436wrap: function( html ) {9437var isFunction = jQuery.isFunction( html );94389439return this.each(function(i) {9440jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html );9441});9442},94439444unwrap: function() {9445return this.parent().each(function() {9446if ( !jQuery.nodeName( this, "body" ) ) {9447jQuery( this ).replaceWith( this.childNodes );9448}9449}).end();9450}9451});945294539454jQuery.expr.filters.hidden = function( elem ) {9455// Support: Opera <= 12.129456// Opera reports offsetWidths and offsetHeights less than zero on some elements9457return elem.offsetWidth <= 0 && elem.offsetHeight <= 0 ||9458(!support.reliableHiddenOffsets() &&9459((elem.style && elem.style.display) || jQuery.css( elem, "display" )) === "none");9460};94619462jQuery.expr.filters.visible = function( elem ) {9463return !jQuery.expr.filters.hidden( elem );9464};94659466946794689469var r20 = /%20/g,9470rbracket = /\[\]$/,9471rCRLF = /\r?\n/g,9472rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,9473rsubmittable = /^(?:input|select|textarea|keygen)/i;94749475function buildParams( prefix, obj, traditional, add ) {9476var name;94779478if ( jQuery.isArray( obj ) ) {9479// Serialize array item.9480jQuery.each( obj, function( i, v ) {9481if ( traditional || rbracket.test( prefix ) ) {9482// Treat each array item as a scalar.9483add( prefix, v );94849485} else {9486// Item is non-scalar (array or object), encode its numeric index.9487buildParams( prefix + "[" + ( typeof v === "object" ? i : "" ) + "]", v, traditional, add );9488}9489});94909491} else if ( !traditional && jQuery.type( obj ) === "object" ) {9492// Serialize object item.9493for ( name in obj ) {9494buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );9495}94969497} else {9498// Serialize scalar item.9499add( prefix, obj );9500}9501}95029503// Serialize an array of form elements or a set of9504// key/values into a query string9505jQuery.param = function( a, traditional ) {9506var prefix,9507s = [],9508add = function( key, value ) {9509// If value is a function, invoke it and return its value9510value = jQuery.isFunction( value ) ? value() : ( value == null ? "" : value );9511s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );9512};95139514// Set traditional to true for jQuery <= 1.3.2 behavior.9515if ( traditional === undefined ) {9516traditional = jQuery.ajaxSettings && jQuery.ajaxSettings.traditional;9517}95189519// If an array was passed in, assume that it is an array of form elements.9520if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {9521// Serialize the form elements9522jQuery.each( a, function() {9523add( this.name, this.value );9524});95259526} else {9527// If traditional, encode the "old" way (the way 1.3.2 or older9528// did it), otherwise encode params recursively.9529for ( prefix in a ) {9530buildParams( prefix, a[ prefix ], traditional, add );9531}9532}95339534// Return the resulting serialization9535return s.join( "&" ).replace( r20, "+" );9536};95379538jQuery.fn.extend({9539serialize: function() {9540return jQuery.param( this.serializeArray() );9541},9542serializeArray: function() {9543return this.map(function() {9544// Can add propHook for "elements" to filter or add form elements9545var elements = jQuery.prop( this, "elements" );9546return elements ? jQuery.makeArray( elements ) : this;9547})9548.filter(function() {9549var type = this.type;9550// Use .is(":disabled") so that fieldset[disabled] works9551return this.name && !jQuery( this ).is( ":disabled" ) &&9552rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&9553( this.checked || !rcheckableType.test( type ) );9554})9555.map(function( i, elem ) {9556var val = jQuery( this ).val();95579558return val == null ?9559null :9560jQuery.isArray( val ) ?9561jQuery.map( val, function( val ) {9562return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };9563}) :9564{ name: elem.name, value: val.replace( rCRLF, "\r\n" ) };9565}).get();9566}9567});956895699570// Create the request object9571// (This is still attached to ajaxSettings for backward compatibility)9572jQuery.ajaxSettings.xhr = window.ActiveXObject !== undefined ?9573// Support: IE6+9574function() {95759576// XHR cannot access local files, always use ActiveX for that case9577return !this.isLocal &&95789579// Support: IE7-89580// oldIE XHR does not support non-RFC2616 methods (#13240)9581// See http://msdn.microsoft.com/en-us/library/ie/ms536648(v=vs.85).aspx9582// and http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec99583// Although this check for six methods instead of eight9584// since IE also does not support "trace" and "connect"9585/^(get|post|head|put|delete|options)$/i.test( this.type ) &&95869587createStandardXHR() || createActiveXHR();9588} :9589// For all other browsers, use the standard XMLHttpRequest object9590createStandardXHR;95919592var xhrId = 0,9593xhrCallbacks = {},9594xhrSupported = jQuery.ajaxSettings.xhr();95959596// Support: IE<109597// Open requests must be manually aborted on unload (#5280)9598if ( window.ActiveXObject ) {9599jQuery( window ).on( "unload", function() {9600for ( var key in xhrCallbacks ) {9601xhrCallbacks[ key ]( undefined, true );9602}9603});9604}96059606// Determine support properties9607support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported );9608xhrSupported = support.ajax = !!xhrSupported;96099610// Create transport if the browser can provide an xhr9611if ( xhrSupported ) {96129613jQuery.ajaxTransport(function( options ) {9614// Cross domain only allowed if supported through XMLHttpRequest9615if ( !options.crossDomain || support.cors ) {96169617var callback;96189619return {9620send: function( headers, complete ) {9621var i,9622xhr = options.xhr(),9623id = ++xhrId;96249625// Open the socket9626xhr.open( options.type, options.url, options.async, options.username, options.password );96279628// Apply custom fields if provided9629if ( options.xhrFields ) {9630for ( i in options.xhrFields ) {9631xhr[ i ] = options.xhrFields[ i ];9632}9633}96349635// Override mime type if needed9636if ( options.mimeType && xhr.overrideMimeType ) {9637xhr.overrideMimeType( options.mimeType );9638}96399640// X-Requested-With header9641// For cross-domain requests, seeing as conditions for a preflight are9642// akin to a jigsaw puzzle, we simply never set it to be sure.9643// (it can always be set on a per-request basis or even using ajaxSetup)9644// For same-domain requests, won't change header if already provided.9645if ( !options.crossDomain && !headers["X-Requested-With"] ) {9646headers["X-Requested-With"] = "XMLHttpRequest";9647}96489649// Set headers9650for ( i in headers ) {9651// Support: IE<99652// IE's ActiveXObject throws a 'Type Mismatch' exception when setting9653// request header to a null-value.9654//9655// To keep consistent with other XHR implementations, cast the value9656// to string and ignore `undefined`.9657if ( headers[ i ] !== undefined ) {9658xhr.setRequestHeader( i, headers[ i ] + "" );9659}9660}96619662// Do send the request9663// This may raise an exception which is actually9664// handled in jQuery.ajax (so no try/catch here)9665xhr.send( ( options.hasContent && options.data ) || null );96669667// Listener9668callback = function( _, isAbort ) {9669var status, statusText, responses;96709671// Was never called and is aborted or complete9672if ( callback && ( isAbort || xhr.readyState === 4 ) ) {9673// Clean up9674delete xhrCallbacks[ id ];9675callback = undefined;9676xhr.onreadystatechange = jQuery.noop;96779678// Abort manually if needed9679if ( isAbort ) {9680if ( xhr.readyState !== 4 ) {9681xhr.abort();9682}9683} else {9684responses = {};9685status = xhr.status;96869687// Support: IE<109688// Accessing binary-data responseText throws an exception9689// (#11426)9690if ( typeof xhr.responseText === "string" ) {9691responses.text = xhr.responseText;9692}96939694// Firefox throws an exception when accessing9695// statusText for faulty cross-domain requests9696try {9697statusText = xhr.statusText;9698} catch( e ) {9699// We normalize with Webkit giving an empty statusText9700statusText = "";9701}97029703// Filter status for non standard behaviors97049705// If the request is local and we have data: assume a success9706// (success with no data won't get notified, that's the best we9707// can do given current implementations)9708if ( !status && options.isLocal && !options.crossDomain ) {9709status = responses.text ? 200 : 404;9710// IE - #1450: sometimes returns 1223 when it should be 2049711} else if ( status === 1223 ) {9712status = 204;9713}9714}9715}97169717// Call complete if needed9718if ( responses ) {9719complete( status, statusText, responses, xhr.getAllResponseHeaders() );9720}9721};97229723if ( !options.async ) {9724// if we're in sync mode we fire the callback9725callback();9726} else if ( xhr.readyState === 4 ) {9727// (IE6 & IE7) if it's in cache and has been9728// retrieved directly we need to fire the callback9729setTimeout( callback );9730} else {9731// Add to the list of active xhr callbacks9732xhr.onreadystatechange = xhrCallbacks[ id ] = callback;9733}9734},97359736abort: function() {9737if ( callback ) {9738callback( undefined, true );9739}9740}9741};9742}9743});9744}97459746// Functions to create xhrs9747function createStandardXHR() {9748try {9749return new window.XMLHttpRequest();9750} catch( e ) {}9751}97529753function createActiveXHR() {9754try {9755return new window.ActiveXObject( "Microsoft.XMLHTTP" );9756} catch( e ) {}9757}97589759976097619762// Install script dataType9763jQuery.ajaxSetup({9764accepts: {9765script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"9766},9767contents: {9768script: /(?:java|ecma)script/9769},9770converters: {9771"text script": function( text ) {9772jQuery.globalEval( text );9773return text;9774}9775}9776});97779778// Handle cache's special case and global9779jQuery.ajaxPrefilter( "script", function( s ) {9780if ( s.cache === undefined ) {9781s.cache = false;9782}9783if ( s.crossDomain ) {9784s.type = "GET";9785s.global = false;9786}9787});97889789// Bind script tag hack transport9790jQuery.ajaxTransport( "script", function(s) {97919792// This transport only deals with cross domain requests9793if ( s.crossDomain ) {97949795var script,9796head = document.head || jQuery("head")[0] || document.documentElement;97979798return {97999800send: function( _, callback ) {98019802script = document.createElement("script");98039804script.async = true;98059806if ( s.scriptCharset ) {9807script.charset = s.scriptCharset;9808}98099810script.src = s.url;98119812// Attach handlers for all browsers9813script.onload = script.onreadystatechange = function( _, isAbort ) {98149815if ( isAbort || !script.readyState || /loaded|complete/.test( script.readyState ) ) {98169817// Handle memory leak in IE9818script.onload = script.onreadystatechange = null;98199820// Remove the script9821if ( script.parentNode ) {9822script.parentNode.removeChild( script );9823}98249825// Dereference the script9826script = null;98279828// Callback if not abort9829if ( !isAbort ) {9830callback( 200, "success" );9831}9832}9833};98349835// Circumvent IE6 bugs with base elements (#2709 and #4378) by prepending9836// Use native DOM manipulation to avoid our domManip AJAX trickery9837head.insertBefore( script, head.firstChild );9838},98399840abort: function() {9841if ( script ) {9842script.onload( undefined, true );9843}9844}9845};9846}9847});98489849985098519852var oldCallbacks = [],9853rjsonp = /(=)\?(?=&|$)|\?\?/;98549855// Default jsonp settings9856jQuery.ajaxSetup({9857jsonp: "callback",9858jsonpCallback: function() {9859var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( nonce++ ) );9860this[ callback ] = true;9861return callback;9862}9863});98649865// Detect, normalize options and install callbacks for jsonp requests9866jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {98679868var callbackName, overwritten, responseContainer,9869jsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ?9870"url" :9871typeof s.data === "string" && !( s.contentType || "" ).indexOf("application/x-www-form-urlencoded") && rjsonp.test( s.data ) && "data"9872);98739874// Handle iff the expected data type is "jsonp" or we have a parameter to set9875if ( jsonProp || s.dataTypes[ 0 ] === "jsonp" ) {98769877// Get callback name, remembering preexisting value associated with it9878callbackName = s.jsonpCallback = jQuery.isFunction( s.jsonpCallback ) ?9879s.jsonpCallback() :9880s.jsonpCallback;98819882// Insert callback into url or form data9883if ( jsonProp ) {9884s[ jsonProp ] = s[ jsonProp ].replace( rjsonp, "$1" + callbackName );9885} else if ( s.jsonp !== false ) {9886s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName;9887}98889889// Use data converter to retrieve json after script execution9890s.converters["script json"] = function() {9891if ( !responseContainer ) {9892jQuery.error( callbackName + " was not called" );9893}9894return responseContainer[ 0 ];9895};98969897// force json dataType9898s.dataTypes[ 0 ] = "json";98999900// Install callback9901overwritten = window[ callbackName ];9902window[ callbackName ] = function() {9903responseContainer = arguments;9904};99059906// Clean-up function (fires after converters)9907jqXHR.always(function() {9908// Restore preexisting value9909window[ callbackName ] = overwritten;99109911// Save back as free9912if ( s[ callbackName ] ) {9913// make sure that re-using the options doesn't screw things around9914s.jsonpCallback = originalSettings.jsonpCallback;99159916// save the callback name for future use9917oldCallbacks.push( callbackName );9918}99199920// Call if it was a function and we have a response9921if ( responseContainer && jQuery.isFunction( overwritten ) ) {9922overwritten( responseContainer[ 0 ] );9923}99249925responseContainer = overwritten = undefined;9926});99279928// Delegate to script9929return "script";9930}9931});99329933993499359936// data: string of html9937// context (optional): If specified, the fragment will be created in this context, defaults to document9938// keepScripts (optional): If true, will include scripts passed in the html string9939jQuery.parseHTML = function( data, context, keepScripts ) {9940if ( !data || typeof data !== "string" ) {9941return null;9942}9943if ( typeof context === "boolean" ) {9944keepScripts = context;9945context = false;9946}9947context = context || document;99489949var parsed = rsingleTag.exec( data ),9950scripts = !keepScripts && [];99519952// Single tag9953if ( parsed ) {9954return [ context.createElement( parsed[1] ) ];9955}99569957parsed = jQuery.buildFragment( [ data ], context, scripts );99589959if ( scripts && scripts.length ) {9960jQuery( scripts ).remove();9961}99629963return jQuery.merge( [], parsed.childNodes );9964};996599669967// Keep a copy of the old load method9968var _load = jQuery.fn.load;99699970/**9971* Load a url into a page9972*/9973jQuery.fn.load = function( url, params, callback ) {9974if ( typeof url !== "string" && _load ) {9975return _load.apply( this, arguments );9976}99779978var selector, response, type,9979self = this,9980off = url.indexOf(" ");99819982if ( off >= 0 ) {9983selector = url.slice( off, url.length );9984url = url.slice( 0, off );9985}99869987// If it's a function9988if ( jQuery.isFunction( params ) ) {99899990// We assume that it's the callback9991callback = params;9992params = undefined;99939994// Otherwise, build a param string9995} else if ( params && typeof params === "object" ) {9996type = "POST";9997}99989999// If we have elements to modify, make the request10000if ( self.length > 0 ) {10001jQuery.ajax({10002url: url,1000310004// if "type" variable is undefined, then "GET" method will be used10005type: type,10006dataType: "html",10007data: params10008}).done(function( responseText ) {1000910010// Save response for use in complete callback10011response = arguments;1001210013self.html( selector ?1001410015// If a selector was specified, locate the right elements in a dummy div10016// Exclude scripts to avoid IE 'Permission Denied' errors10017jQuery("<div>").append( jQuery.parseHTML( responseText ) ).find( selector ) :1001810019// Otherwise use the full result10020responseText );1002110022}).complete( callback && function( jqXHR, status ) {10023self.each( callback, response || [ jqXHR.responseText, status, jqXHR ] );10024});10025}1002610027return this;10028};1002910030100311003210033jQuery.expr.filters.animated = function( elem ) {10034return jQuery.grep(jQuery.timers, function( fn ) {10035return elem === fn.elem;10036}).length;10037};100381003910040100411004210043var docElem = window.document.documentElement;1004410045/**10046* Gets a window from an element10047*/10048function getWindow( elem ) {10049return jQuery.isWindow( elem ) ?10050elem :10051elem.nodeType === 9 ?10052elem.defaultView || elem.parentWindow :10053false;10054}1005510056jQuery.offset = {10057setOffset: function( elem, options, i ) {10058var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,10059position = jQuery.css( elem, "position" ),10060curElem = jQuery( elem ),10061props = {};1006210063// set position first, in-case top/left are set even on static elem10064if ( position === "static" ) {10065elem.style.position = "relative";10066}1006710068curOffset = curElem.offset();10069curCSSTop = jQuery.css( elem, "top" );10070curCSSLeft = jQuery.css( elem, "left" );10071calculatePosition = ( position === "absolute" || position === "fixed" ) &&10072jQuery.inArray("auto", [ curCSSTop, curCSSLeft ] ) > -1;1007310074// need to be able to calculate position if either top or left is auto and position is either absolute or fixed10075if ( calculatePosition ) {10076curPosition = curElem.position();10077curTop = curPosition.top;10078curLeft = curPosition.left;10079} else {10080curTop = parseFloat( curCSSTop ) || 0;10081curLeft = parseFloat( curCSSLeft ) || 0;10082}1008310084if ( jQuery.isFunction( options ) ) {10085options = options.call( elem, i, curOffset );10086}1008710088if ( options.top != null ) {10089props.top = ( options.top - curOffset.top ) + curTop;10090}10091if ( options.left != null ) {10092props.left = ( options.left - curOffset.left ) + curLeft;10093}1009410095if ( "using" in options ) {10096options.using.call( elem, props );10097} else {10098curElem.css( props );10099}10100}10101};1010210103jQuery.fn.extend({10104offset: function( options ) {10105if ( arguments.length ) {10106return options === undefined ?10107this :10108this.each(function( i ) {10109jQuery.offset.setOffset( this, options, i );10110});10111}1011210113var docElem, win,10114box = { top: 0, left: 0 },10115elem = this[ 0 ],10116doc = elem && elem.ownerDocument;1011710118if ( !doc ) {10119return;10120}1012110122docElem = doc.documentElement;1012310124// Make sure it's not a disconnected DOM node10125if ( !jQuery.contains( docElem, elem ) ) {10126return box;10127}1012810129// If we don't have gBCR, just use 0,0 rather than error10130// BlackBerry 5, iOS 3 (original iPhone)10131if ( typeof elem.getBoundingClientRect !== strundefined ) {10132box = elem.getBoundingClientRect();10133}10134win = getWindow( doc );10135return {10136top: box.top + ( win.pageYOffset || docElem.scrollTop ) - ( docElem.clientTop || 0 ),10137left: box.left + ( win.pageXOffset || docElem.scrollLeft ) - ( docElem.clientLeft || 0 )10138};10139},1014010141position: function() {10142if ( !this[ 0 ] ) {10143return;10144}1014510146var offsetParent, offset,10147parentOffset = { top: 0, left: 0 },10148elem = this[ 0 ];1014910150// fixed elements are offset from window (parentOffset = {top:0, left: 0}, because it is its only offset parent10151if ( jQuery.css( elem, "position" ) === "fixed" ) {10152// we assume that getBoundingClientRect is available when computed position is fixed10153offset = elem.getBoundingClientRect();10154} else {10155// Get *real* offsetParent10156offsetParent = this.offsetParent();1015710158// Get correct offsets10159offset = this.offset();10160if ( !jQuery.nodeName( offsetParent[ 0 ], "html" ) ) {10161parentOffset = offsetParent.offset();10162}1016310164// Add offsetParent borders10165parentOffset.top += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true );10166parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true );10167}1016810169// Subtract parent offsets and element margins10170// note: when an element has margin: auto the offsetLeft and marginLeft10171// are the same in Safari causing offset.left to incorrectly be 010172return {10173top: offset.top - parentOffset.top - jQuery.css( elem, "marginTop", true ),10174left: offset.left - parentOffset.left - jQuery.css( elem, "marginLeft", true)10175};10176},1017710178offsetParent: function() {10179return this.map(function() {10180var offsetParent = this.offsetParent || docElem;1018110182while ( offsetParent && ( !jQuery.nodeName( offsetParent, "html" ) && jQuery.css( offsetParent, "position" ) === "static" ) ) {10183offsetParent = offsetParent.offsetParent;10184}10185return offsetParent || docElem;10186});10187}10188});1018910190// Create scrollLeft and scrollTop methods10191jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function( method, prop ) {10192var top = /Y/.test( prop );1019310194jQuery.fn[ method ] = function( val ) {10195return access( this, function( elem, method, val ) {10196var win = getWindow( elem );1019710198if ( val === undefined ) {10199return win ? (prop in win) ? win[ prop ] :10200win.document.documentElement[ method ] :10201elem[ method ];10202}1020310204if ( win ) {10205win.scrollTo(10206!top ? val : jQuery( win ).scrollLeft(),10207top ? val : jQuery( win ).scrollTop()10208);1020910210} else {10211elem[ method ] = val;10212}10213}, method, val, arguments.length, null );10214};10215});1021610217// Add the top/left cssHooks using jQuery.fn.position10218// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=2908410219// getComputedStyle returns percent when specified for top/left/bottom/right10220// rather than make the css module depend on the offset module, we just check for it here10221jQuery.each( [ "top", "left" ], function( i, prop ) {10222jQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition,10223function( elem, computed ) {10224if ( computed ) {10225computed = curCSS( elem, prop );10226// if curCSS returns percentage, fallback to offset10227return rnumnonpx.test( computed ) ?10228jQuery( elem ).position()[ prop ] + "px" :10229computed;10230}10231}10232);10233});102341023510236// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods10237jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {10238jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name }, function( defaultExtra, funcName ) {10239// margin is only for outerHeight, outerWidth10240jQuery.fn[ funcName ] = function( margin, value ) {10241var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ),10242extra = defaultExtra || ( margin === true || value === true ? "margin" : "border" );1024310244return access( this, function( elem, type, value ) {10245var doc;1024610247if ( jQuery.isWindow( elem ) ) {10248// As of 5/8/2012 this will yield incorrect results for Mobile Safari, but there10249// isn't a whole lot we can do. See pull request at this URL for discussion:10250// https://github.com/jquery/jquery/pull/76410251return elem.document.documentElement[ "client" + name ];10252}1025310254// Get document width or height10255if ( elem.nodeType === 9 ) {10256doc = elem.documentElement;1025710258// Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height], whichever is greatest10259// unfortunately, this causes bug #3838 in IE6/8 only, but there is currently no good, small way to fix it.10260return Math.max(10261elem.body[ "scroll" + name ], doc[ "scroll" + name ],10262elem.body[ "offset" + name ], doc[ "offset" + name ],10263doc[ "client" + name ]10264);10265}1026610267return value === undefined ?10268// Get width or height on the element, requesting but not forcing parseFloat10269jQuery.css( elem, type, extra ) :1027010271// Set width or height on the element10272jQuery.style( elem, type, value, extra );10273}, type, chainable ? margin : undefined, chainable, null );10274};10275});10276});102771027810279// The number of elements contained in the matched element set10280jQuery.fn.size = function() {10281return this.length;10282};1028310284jQuery.fn.andSelf = jQuery.fn.addBack;1028510286102871028810289// Register as a named AMD module, since jQuery can be concatenated with other10290// files that may use define, but not via a proper concatenation script that10291// understands anonymous AMD modules. A named AMD is safest and most robust10292// way to register. Lowercase jquery is used because AMD module names are10293// derived from file names, and jQuery is normally delivered in a lowercase10294// file name. Do this after creating the global so that if an AMD module wants10295// to call noConflict to hide this version of jQuery, it will work.10296if ( typeof define === "function" && define.amd ) {10297define( "jquery", [], function() {10298return jQuery;10299});10300}1030110302103031030410305var10306// Map over jQuery in case of overwrite10307_jQuery = window.jQuery,1030810309// Map over the $ in case of overwrite10310_$ = window.$;1031110312jQuery.noConflict = function( deep ) {10313if ( window.$ === jQuery ) {10314window.$ = _$;10315}1031610317if ( deep && window.jQuery === jQuery ) {10318window.jQuery = _jQuery;10319}1032010321return jQuery;10322};1032310324// Expose jQuery and $ identifiers, even in10325// AMD (#7102#comment:10, https://github.com/jquery/jquery/pull/557)10326// and CommonJS for browser emulators (#13566)10327if ( typeof noGlobal === strundefined ) {10328window.jQuery = window.$ = jQuery;10329}1033010331103321033310334return jQuery;1033510336}));103371033810339