Edit File by line
/home/barbar84/www/wp-inclu.../js/jquery
File: jquery.js
/*!
[0] Fix | Delete
* jQuery JavaScript Library v3.5.1
[1] Fix | Delete
* https://jquery.com/
[2] Fix | Delete
*
[3] Fix | Delete
* Includes Sizzle.js
[4] Fix | Delete
* https://sizzlejs.com/
[5] Fix | Delete
*
[6] Fix | Delete
* Copyright JS Foundation and other contributors
[7] Fix | Delete
* Released under the MIT license
[8] Fix | Delete
* https://jquery.org/license
[9] Fix | Delete
*
[10] Fix | Delete
* Date: 2020-05-04T22:49Z
[11] Fix | Delete
*/
[12] Fix | Delete
( function( global, factory ) {
[13] Fix | Delete
[14] Fix | Delete
"use strict";
[15] Fix | Delete
[16] Fix | Delete
if ( typeof module === "object" && typeof module.exports === "object" ) {
[17] Fix | Delete
[18] Fix | Delete
// For CommonJS and CommonJS-like environments where a proper `window`
[19] Fix | Delete
// is present, execute the factory and get jQuery.
[20] Fix | Delete
// For environments that do not have a `window` with a `document`
[21] Fix | Delete
// (such as Node.js), expose a factory as module.exports.
[22] Fix | Delete
// This accentuates the need for the creation of a real `window`.
[23] Fix | Delete
// e.g. var jQuery = require("jquery")(window);
[24] Fix | Delete
// See ticket #14549 for more info.
[25] Fix | Delete
module.exports = global.document ?
[26] Fix | Delete
factory( global, true ) :
[27] Fix | Delete
function( w ) {
[28] Fix | Delete
if ( !w.document ) {
[29] Fix | Delete
throw new Error( "jQuery requires a window with a document" );
[30] Fix | Delete
}
[31] Fix | Delete
return factory( w );
[32] Fix | Delete
};
[33] Fix | Delete
} else {
[34] Fix | Delete
factory( global );
[35] Fix | Delete
}
[36] Fix | Delete
[37] Fix | Delete
// Pass this if window is not defined yet
[38] Fix | Delete
} )( typeof window !== "undefined" ? window : this, function( window, noGlobal ) {
[39] Fix | Delete
[40] Fix | Delete
// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1
[41] Fix | Delete
// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode
[42] Fix | Delete
// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common
[43] Fix | Delete
// enough that all such attempts are guarded in a try block.
[44] Fix | Delete
"use strict";
[45] Fix | Delete
[46] Fix | Delete
var arr = [];
[47] Fix | Delete
[48] Fix | Delete
var getProto = Object.getPrototypeOf;
[49] Fix | Delete
[50] Fix | Delete
var slice = arr.slice;
[51] Fix | Delete
[52] Fix | Delete
var flat = arr.flat ? function( array ) {
[53] Fix | Delete
return arr.flat.call( array );
[54] Fix | Delete
} : function( array ) {
[55] Fix | Delete
return arr.concat.apply( [], array );
[56] Fix | Delete
};
[57] Fix | Delete
[58] Fix | Delete
[59] Fix | Delete
var push = arr.push;
[60] Fix | Delete
[61] Fix | Delete
var indexOf = arr.indexOf;
[62] Fix | Delete
[63] Fix | Delete
var class2type = {};
[64] Fix | Delete
[65] Fix | Delete
var toString = class2type.toString;
[66] Fix | Delete
[67] Fix | Delete
var hasOwn = class2type.hasOwnProperty;
[68] Fix | Delete
[69] Fix | Delete
var fnToString = hasOwn.toString;
[70] Fix | Delete
[71] Fix | Delete
var ObjectFunctionString = fnToString.call( Object );
[72] Fix | Delete
[73] Fix | Delete
var support = {};
[74] Fix | Delete
[75] Fix | Delete
var isFunction = function isFunction( obj ) {
[76] Fix | Delete
[77] Fix | Delete
// Support: Chrome <=57, Firefox <=52
[78] Fix | Delete
// In some browsers, typeof returns "function" for HTML <object> elements
[79] Fix | Delete
// (i.e., `typeof document.createElement( "object" ) === "function"`).
[80] Fix | Delete
// We don't want to classify *any* DOM node as a function.
[81] Fix | Delete
return typeof obj === "function" && typeof obj.nodeType !== "number";
[82] Fix | Delete
};
[83] Fix | Delete
[84] Fix | Delete
[85] Fix | Delete
var isWindow = function isWindow( obj ) {
[86] Fix | Delete
return obj != null && obj === obj.window;
[87] Fix | Delete
};
[88] Fix | Delete
[89] Fix | Delete
[90] Fix | Delete
var document = window.document;
[91] Fix | Delete
[92] Fix | Delete
[93] Fix | Delete
[94] Fix | Delete
var preservedScriptAttributes = {
[95] Fix | Delete
type: true,
[96] Fix | Delete
src: true,
[97] Fix | Delete
nonce: true,
[98] Fix | Delete
noModule: true
[99] Fix | Delete
};
[100] Fix | Delete
[101] Fix | Delete
function DOMEval( code, node, doc ) {
[102] Fix | Delete
doc = doc || document;
[103] Fix | Delete
[104] Fix | Delete
var i, val,
[105] Fix | Delete
script = doc.createElement( "script" );
[106] Fix | Delete
[107] Fix | Delete
script.text = code;
[108] Fix | Delete
if ( node ) {
[109] Fix | Delete
for ( i in preservedScriptAttributes ) {
[110] Fix | Delete
[111] Fix | Delete
// Support: Firefox 64+, Edge 18+
[112] Fix | Delete
// Some browsers don't support the "nonce" property on scripts.
[113] Fix | Delete
// On the other hand, just using `getAttribute` is not enough as
[114] Fix | Delete
// the `nonce` attribute is reset to an empty string whenever it
[115] Fix | Delete
// becomes browsing-context connected.
[116] Fix | Delete
// See https://github.com/whatwg/html/issues/2369
[117] Fix | Delete
// See https://html.spec.whatwg.org/#nonce-attributes
[118] Fix | Delete
// The `node.getAttribute` check was added for the sake of
[119] Fix | Delete
// `jQuery.globalEval` so that it can fake a nonce-containing node
[120] Fix | Delete
// via an object.
[121] Fix | Delete
val = node[ i ] || node.getAttribute && node.getAttribute( i );
[122] Fix | Delete
if ( val ) {
[123] Fix | Delete
script.setAttribute( i, val );
[124] Fix | Delete
}
[125] Fix | Delete
}
[126] Fix | Delete
}
[127] Fix | Delete
doc.head.appendChild( script ).parentNode.removeChild( script );
[128] Fix | Delete
}
[129] Fix | Delete
[130] Fix | Delete
[131] Fix | Delete
function toType( obj ) {
[132] Fix | Delete
if ( obj == null ) {
[133] Fix | Delete
return obj + "";
[134] Fix | Delete
}
[135] Fix | Delete
[136] Fix | Delete
// Support: Android <=2.3 only (functionish RegExp)
[137] Fix | Delete
return typeof obj === "object" || typeof obj === "function" ?
[138] Fix | Delete
class2type[ toString.call( obj ) ] || "object" :
[139] Fix | Delete
typeof obj;
[140] Fix | Delete
}
[141] Fix | Delete
/* global Symbol */
[142] Fix | Delete
// Defining this global in .eslintrc.json would create a danger of using the global
[143] Fix | Delete
// unguarded in another place, it seems safer to define global only for this module
[144] Fix | Delete
[145] Fix | Delete
[146] Fix | Delete
[147] Fix | Delete
var
[148] Fix | Delete
version = "3.5.1",
[149] Fix | Delete
[150] Fix | Delete
// Define a local copy of jQuery
[151] Fix | Delete
jQuery = function( selector, context ) {
[152] Fix | Delete
[153] Fix | Delete
// The jQuery object is actually just the init constructor 'enhanced'
[154] Fix | Delete
// Need init if jQuery is called (just allow error to be thrown if not included)
[155] Fix | Delete
return new jQuery.fn.init( selector, context );
[156] Fix | Delete
};
[157] Fix | Delete
[158] Fix | Delete
jQuery.fn = jQuery.prototype = {
[159] Fix | Delete
[160] Fix | Delete
// The current version of jQuery being used
[161] Fix | Delete
jquery: version,
[162] Fix | Delete
[163] Fix | Delete
constructor: jQuery,
[164] Fix | Delete
[165] Fix | Delete
// The default length of a jQuery object is 0
[166] Fix | Delete
length: 0,
[167] Fix | Delete
[168] Fix | Delete
toArray: function() {
[169] Fix | Delete
return slice.call( this );
[170] Fix | Delete
},
[171] Fix | Delete
[172] Fix | Delete
// Get the Nth element in the matched element set OR
[173] Fix | Delete
// Get the whole matched element set as a clean array
[174] Fix | Delete
get: function( num ) {
[175] Fix | Delete
[176] Fix | Delete
// Return all the elements in a clean array
[177] Fix | Delete
if ( num == null ) {
[178] Fix | Delete
return slice.call( this );
[179] Fix | Delete
}
[180] Fix | Delete
[181] Fix | Delete
// Return just the one element from the set
[182] Fix | Delete
return num < 0 ? this[ num + this.length ] : this[ num ];
[183] Fix | Delete
},
[184] Fix | Delete
[185] Fix | Delete
// Take an array of elements and push it onto the stack
[186] Fix | Delete
// (returning the new matched element set)
[187] Fix | Delete
pushStack: function( elems ) {
[188] Fix | Delete
[189] Fix | Delete
// Build a new jQuery matched element set
[190] Fix | Delete
var ret = jQuery.merge( this.constructor(), elems );
[191] Fix | Delete
[192] Fix | Delete
// Add the old object onto the stack (as a reference)
[193] Fix | Delete
ret.prevObject = this;
[194] Fix | Delete
[195] Fix | Delete
// Return the newly-formed element set
[196] Fix | Delete
return ret;
[197] Fix | Delete
},
[198] Fix | Delete
[199] Fix | Delete
// Execute a callback for every element in the matched set.
[200] Fix | Delete
each: function( callback ) {
[201] Fix | Delete
return jQuery.each( this, callback );
[202] Fix | Delete
},
[203] Fix | Delete
[204] Fix | Delete
map: function( callback ) {
[205] Fix | Delete
return this.pushStack( jQuery.map( this, function( elem, i ) {
[206] Fix | Delete
return callback.call( elem, i, elem );
[207] Fix | Delete
} ) );
[208] Fix | Delete
},
[209] Fix | Delete
[210] Fix | Delete
slice: function() {
[211] Fix | Delete
return this.pushStack( slice.apply( this, arguments ) );
[212] Fix | Delete
},
[213] Fix | Delete
[214] Fix | Delete
first: function() {
[215] Fix | Delete
return this.eq( 0 );
[216] Fix | Delete
},
[217] Fix | Delete
[218] Fix | Delete
last: function() {
[219] Fix | Delete
return this.eq( -1 );
[220] Fix | Delete
},
[221] Fix | Delete
[222] Fix | Delete
even: function() {
[223] Fix | Delete
return this.pushStack( jQuery.grep( this, function( _elem, i ) {
[224] Fix | Delete
return ( i + 1 ) % 2;
[225] Fix | Delete
} ) );
[226] Fix | Delete
},
[227] Fix | Delete
[228] Fix | Delete
odd: function() {
[229] Fix | Delete
return this.pushStack( jQuery.grep( this, function( _elem, i ) {
[230] Fix | Delete
return i % 2;
[231] Fix | Delete
} ) );
[232] Fix | Delete
},
[233] Fix | Delete
[234] Fix | Delete
eq: function( i ) {
[235] Fix | Delete
var len = this.length,
[236] Fix | Delete
j = +i + ( i < 0 ? len : 0 );
[237] Fix | Delete
return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] );
[238] Fix | Delete
},
[239] Fix | Delete
[240] Fix | Delete
end: function() {
[241] Fix | Delete
return this.prevObject || this.constructor();
[242] Fix | Delete
},
[243] Fix | Delete
[244] Fix | Delete
// For internal use only.
[245] Fix | Delete
// Behaves like an Array's method, not like a jQuery method.
[246] Fix | Delete
push: push,
[247] Fix | Delete
sort: arr.sort,
[248] Fix | Delete
splice: arr.splice
[249] Fix | Delete
};
[250] Fix | Delete
[251] Fix | Delete
jQuery.extend = jQuery.fn.extend = function() {
[252] Fix | Delete
var options, name, src, copy, copyIsArray, clone,
[253] Fix | Delete
target = arguments[ 0 ] || {},
[254] Fix | Delete
i = 1,
[255] Fix | Delete
length = arguments.length,
[256] Fix | Delete
deep = false;
[257] Fix | Delete
[258] Fix | Delete
// Handle a deep copy situation
[259] Fix | Delete
if ( typeof target === "boolean" ) {
[260] Fix | Delete
deep = target;
[261] Fix | Delete
[262] Fix | Delete
// Skip the boolean and the target
[263] Fix | Delete
target = arguments[ i ] || {};
[264] Fix | Delete
i++;
[265] Fix | Delete
}
[266] Fix | Delete
[267] Fix | Delete
// Handle case when target is a string or something (possible in deep copy)
[268] Fix | Delete
if ( typeof target !== "object" && !isFunction( target ) ) {
[269] Fix | Delete
target = {};
[270] Fix | Delete
}
[271] Fix | Delete
[272] Fix | Delete
// Extend jQuery itself if only one argument is passed
[273] Fix | Delete
if ( i === length ) {
[274] Fix | Delete
target = this;
[275] Fix | Delete
i--;
[276] Fix | Delete
}
[277] Fix | Delete
[278] Fix | Delete
for ( ; i < length; i++ ) {
[279] Fix | Delete
[280] Fix | Delete
// Only deal with non-null/undefined values
[281] Fix | Delete
if ( ( options = arguments[ i ] ) != null ) {
[282] Fix | Delete
[283] Fix | Delete
// Extend the base object
[284] Fix | Delete
for ( name in options ) {
[285] Fix | Delete
copy = options[ name ];
[286] Fix | Delete
[287] Fix | Delete
// Prevent Object.prototype pollution
[288] Fix | Delete
// Prevent never-ending loop
[289] Fix | Delete
if ( name === "__proto__" || target === copy ) {
[290] Fix | Delete
continue;
[291] Fix | Delete
}
[292] Fix | Delete
[293] Fix | Delete
// Recurse if we're merging plain objects or arrays
[294] Fix | Delete
if ( deep && copy && ( jQuery.isPlainObject( copy ) ||
[295] Fix | Delete
( copyIsArray = Array.isArray( copy ) ) ) ) {
[296] Fix | Delete
src = target[ name ];
[297] Fix | Delete
[298] Fix | Delete
// Ensure proper type for the source value
[299] Fix | Delete
if ( copyIsArray && !Array.isArray( src ) ) {
[300] Fix | Delete
clone = [];
[301] Fix | Delete
} else if ( !copyIsArray && !jQuery.isPlainObject( src ) ) {
[302] Fix | Delete
clone = {};
[303] Fix | Delete
} else {
[304] Fix | Delete
clone = src;
[305] Fix | Delete
}
[306] Fix | Delete
copyIsArray = false;
[307] Fix | Delete
[308] Fix | Delete
// Never move original objects, clone them
[309] Fix | Delete
target[ name ] = jQuery.extend( deep, clone, copy );
[310] Fix | Delete
[311] Fix | Delete
// Don't bring in undefined values
[312] Fix | Delete
} else if ( copy !== undefined ) {
[313] Fix | Delete
target[ name ] = copy;
[314] Fix | Delete
}
[315] Fix | Delete
}
[316] Fix | Delete
}
[317] Fix | Delete
}
[318] Fix | Delete
[319] Fix | Delete
// Return the modified object
[320] Fix | Delete
return target;
[321] Fix | Delete
};
[322] Fix | Delete
[323] Fix | Delete
jQuery.extend( {
[324] Fix | Delete
[325] Fix | Delete
// Unique for each copy of jQuery on the page
[326] Fix | Delete
expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ),
[327] Fix | Delete
[328] Fix | Delete
// Assume jQuery is ready without the ready module
[329] Fix | Delete
isReady: true,
[330] Fix | Delete
[331] Fix | Delete
error: function( msg ) {
[332] Fix | Delete
throw new Error( msg );
[333] Fix | Delete
},
[334] Fix | Delete
[335] Fix | Delete
noop: function() {},
[336] Fix | Delete
[337] Fix | Delete
isPlainObject: function( obj ) {
[338] Fix | Delete
var proto, Ctor;
[339] Fix | Delete
[340] Fix | Delete
// Detect obvious negatives
[341] Fix | Delete
// Use toString instead of jQuery.type to catch host objects
[342] Fix | Delete
if ( !obj || toString.call( obj ) !== "[object Object]" ) {
[343] Fix | Delete
return false;
[344] Fix | Delete
}
[345] Fix | Delete
[346] Fix | Delete
proto = getProto( obj );
[347] Fix | Delete
[348] Fix | Delete
// Objects with no prototype (e.g., `Object.create( null )`) are plain
[349] Fix | Delete
if ( !proto ) {
[350] Fix | Delete
return true;
[351] Fix | Delete
}
[352] Fix | Delete
[353] Fix | Delete
// Objects with prototype are plain iff they were constructed by a global Object function
[354] Fix | Delete
Ctor = hasOwn.call( proto, "constructor" ) && proto.constructor;
[355] Fix | Delete
return typeof Ctor === "function" && fnToString.call( Ctor ) === ObjectFunctionString;
[356] Fix | Delete
},
[357] Fix | Delete
[358] Fix | Delete
isEmptyObject: function( obj ) {
[359] Fix | Delete
var name;
[360] Fix | Delete
[361] Fix | Delete
for ( name in obj ) {
[362] Fix | Delete
return false;
[363] Fix | Delete
}
[364] Fix | Delete
return true;
[365] Fix | Delete
},
[366] Fix | Delete
[367] Fix | Delete
// Evaluates a script in a provided context; falls back to the global one
[368] Fix | Delete
// if not specified.
[369] Fix | Delete
globalEval: function( code, options, doc ) {
[370] Fix | Delete
DOMEval( code, { nonce: options && options.nonce }, doc );
[371] Fix | Delete
},
[372] Fix | Delete
[373] Fix | Delete
each: function( obj, callback ) {
[374] Fix | Delete
var length, i = 0;
[375] Fix | Delete
[376] Fix | Delete
if ( isArrayLike( obj ) ) {
[377] Fix | Delete
length = obj.length;
[378] Fix | Delete
for ( ; i < length; i++ ) {
[379] Fix | Delete
if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
[380] Fix | Delete
break;
[381] Fix | Delete
}
[382] Fix | Delete
}
[383] Fix | Delete
} else {
[384] Fix | Delete
for ( i in obj ) {
[385] Fix | Delete
if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
[386] Fix | Delete
break;
[387] Fix | Delete
}
[388] Fix | Delete
}
[389] Fix | Delete
}
[390] Fix | Delete
[391] Fix | Delete
return obj;
[392] Fix | Delete
},
[393] Fix | Delete
[394] Fix | Delete
// results is for internal usage only
[395] Fix | Delete
makeArray: function( arr, results ) {
[396] Fix | Delete
var ret = results || [];
[397] Fix | Delete
[398] Fix | Delete
if ( arr != null ) {
[399] Fix | Delete
if ( isArrayLike( Object( arr ) ) ) {
[400] Fix | Delete
jQuery.merge( ret,
[401] Fix | Delete
typeof arr === "string" ?
[402] Fix | Delete
[ arr ] : arr
[403] Fix | Delete
);
[404] Fix | Delete
} else {
[405] Fix | Delete
push.call( ret, arr );
[406] Fix | Delete
}
[407] Fix | Delete
}
[408] Fix | Delete
[409] Fix | Delete
return ret;
[410] Fix | Delete
},
[411] Fix | Delete
[412] Fix | Delete
inArray: function( elem, arr, i ) {
[413] Fix | Delete
return arr == null ? -1 : indexOf.call( arr, elem, i );
[414] Fix | Delete
},
[415] Fix | Delete
[416] Fix | Delete
// Support: Android <=4.0 only, PhantomJS 1 only
[417] Fix | Delete
// push.apply(_, arraylike) throws on ancient WebKit
[418] Fix | Delete
merge: function( first, second ) {
[419] Fix | Delete
var len = +second.length,
[420] Fix | Delete
j = 0,
[421] Fix | Delete
i = first.length;
[422] Fix | Delete
[423] Fix | Delete
for ( ; j < len; j++ ) {
[424] Fix | Delete
first[ i++ ] = second[ j ];
[425] Fix | Delete
}
[426] Fix | Delete
[427] Fix | Delete
first.length = i;
[428] Fix | Delete
[429] Fix | Delete
return first;
[430] Fix | Delete
},
[431] Fix | Delete
[432] Fix | Delete
grep: function( elems, callback, invert ) {
[433] Fix | Delete
var callbackInverse,
[434] Fix | Delete
matches = [],
[435] Fix | Delete
i = 0,
[436] Fix | Delete
length = elems.length,
[437] Fix | Delete
callbackExpect = !invert;
[438] Fix | Delete
[439] Fix | Delete
// Go through the array, only saving the items
[440] Fix | Delete
// that pass the validator function
[441] Fix | Delete
for ( ; i < length; i++ ) {
[442] Fix | Delete
callbackInverse = !callback( elems[ i ], i );
[443] Fix | Delete
if ( callbackInverse !== callbackExpect ) {
[444] Fix | Delete
matches.push( elems[ i ] );
[445] Fix | Delete
}
[446] Fix | Delete
}
[447] Fix | Delete
[448] Fix | Delete
return matches;
[449] Fix | Delete
},
[450] Fix | Delete
[451] Fix | Delete
// arg is for internal usage only
[452] Fix | Delete
map: function( elems, callback, arg ) {
[453] Fix | Delete
var length, value,
[454] Fix | Delete
i = 0,
[455] Fix | Delete
ret = [];
[456] Fix | Delete
[457] Fix | Delete
// Go through the array, translating each of the items to their new values
[458] Fix | Delete
if ( isArrayLike( elems ) ) {
[459] Fix | Delete
length = elems.length;
[460] Fix | Delete
for ( ; i < length; i++ ) {
[461] Fix | Delete
value = callback( elems[ i ], i, arg );
[462] Fix | Delete
[463] Fix | Delete
if ( value != null ) {
[464] Fix | Delete
ret.push( value );
[465] Fix | Delete
}
[466] Fix | Delete
}
[467] Fix | Delete
[468] Fix | Delete
// Go through every key on the object,
[469] Fix | Delete
} else {
[470] Fix | Delete
for ( i in elems ) {
[471] Fix | Delete
value = callback( elems[ i ], i, arg );
[472] Fix | Delete
[473] Fix | Delete
if ( value != null ) {
[474] Fix | Delete
ret.push( value );
[475] Fix | Delete
}
[476] Fix | Delete
}
[477] Fix | Delete
}
[478] Fix | Delete
[479] Fix | Delete
// Flatten any nested arrays
[480] Fix | Delete
return flat( ret );
[481] Fix | Delete
},
[482] Fix | Delete
[483] Fix | Delete
// A global GUID counter for objects
[484] Fix | Delete
guid: 1,
[485] Fix | Delete
[486] Fix | Delete
// jQuery.support is not used in Core but other projects attach their
[487] Fix | Delete
// properties to it so it needs to exist.
[488] Fix | Delete
support: support
[489] Fix | Delete
} );
[490] Fix | Delete
[491] Fix | Delete
if ( typeof Symbol === "function" ) {
[492] Fix | Delete
jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];
[493] Fix | Delete
}
[494] Fix | Delete
[495] Fix | Delete
// Populate the class2type map
[496] Fix | Delete
jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ),
[497] Fix | Delete
function( _i, name ) {
[498] Fix | Delete
class2type[ "[object " + name + "]" ] = name.toLowerCase();
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function