You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5 lines
9.9 KiB
JavaScript
5 lines
9.9 KiB
JavaScript
11 months ago
|
/*!
|
||
|
* jQuery Migrate - v1.4.1 - 2016-05-19
|
||
|
* Copyright jQuery Foundation and other contributors
|
||
|
*/
|
||
|
(function(u,I,j){u.migrateVersion="1.4.1";var p={};u.migrateWarnings=[];if(u.migrateTrace===j){u.migrateTrace=true}u.migrateReset=function(){p={};u.migrateWarnings.length=0};function K(R){var Q=I.console;if(!p[R]){p[R]=true;u.migrateWarnings.push(R);if(Q&&Q.warn&&!u.migrateMute){Q.warn("JQMIGRATE: "+R);if(u.migrateTrace&&Q.trace){Q.trace()}}}}function s(S,U,R,T){if(Object.defineProperty){try{Object.defineProperty(S,U,{configurable:true,enumerable:true,get:function(){K(T);return R},set:function(V){K(T);R=V}});return}catch(Q){}}u._definePropertyBroken=true;S[U]=R}if(document.compatMode==="BackCompat"){K("jQuery is not compatible with Quirks Mode")}var G=u("<input/>",{size:1}).attr("size")&&u.attrFn,M=u.attr,H=u.attrHooks.value&&u.attrHooks.value.get||function(){return null},r=u.attrHooks.value&&u.attrHooks.value.set||function(){return j},w=/^(?:input|button)$/i,o=/^[238]$/,O=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,f=/^(?:checked|selected)$/i;s(u,"attrFn",G||{},"jQuery.attrFn is deprecated");u.attr=function(U,S,V,T){var R=S.toLowerCase(),Q=U&&U.nodeType;if(T){if(M.length<4){K("jQuery.fn.attr( props, pass ) is deprecated")}if(U&&!o.test(Q)&&(G?S in G:u.isFunction(u.fn[S]))){return u(U)[S](V)}}if(S==="type"&&V!==j&&w.test(U.nodeName)&&U.parentNode){K("Can't change the 'type' of an input or button in IE 6/7/8")}if(!u.attrHooks[R]&&O.test(R)){u.attrHooks[R]={get:function(X,W){var Z,Y=u.prop(X,W);return Y===true||typeof Y!=="boolean"&&(Z=X.getAttributeNode(W))&&Z.nodeValue!==false?W.toLowerCase():j},set:function(X,Z,W){var Y;if(Z===false){u.removeAttr(X,W)}else{Y=u.propFix[W]||W;if(Y in X){X[Y]=true}X.setAttribute(W,W.toLowerCase())}return W}};if(f.test(R)){K("jQuery.fn.attr('"+R+"') might use property instead of attribute")}}return M.call(u,U,S,V)};u.attrHooks.value={get:function(R,Q){var S=(R.nodeName||"").toLowerCase();if(S==="button"){return H.apply(this,arguments)}if(S!=="input"&&S!=="option"){K("jQuery.fn.attr('value') no longer gets properties")}return Q in R?R.value:null},set:function(Q,R){var S=(Q.nodeName||"").toLowerCase();if(S==="button"){return r.apply(this,arguments)}if(S!=="input"&&S!=="option"){K("jQuery.fn.attr('value', val) no longer sets properties")}Q.value=R}};var h,b,t=u.fn.init,k=u.find,y=u.parseJSON,v=/^\s*</,l=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,A=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,F=/^([^<]*)(<[\w\W]+>)([^>]*)$/;u.fn.init=function(Q,U,T){var S,R;if(Q&&typeof Q==="string"){if(!u.isPlainObject(U)&&(S=F.exec(u.trim(Q)))&&S[0]){if(!v.test(Q)){K("$(html) HTML strings must start with '<' character")}if(S[3]){K("$(html) HTML text after last tag is ignored")}if(S[0].charAt(0)==="#"){K("HTML string cannot start with a '#' character");u.error("JQMIGRATE: Invalid selector string (XSS)")}if(U&&U.context&&U.context.nodeType){U=U.context}if(u.parseHTML){return t.call(this,u.parseHTML(S[2],U&&U.ownerDocument||U||document,true),U,T)}}}R=t.apply(this,arguments);if(Q&&Q.selector!==j){R.selector=Q.selector;R.context=Q.context}else{R.selector=typeof Q==="string"?Q:"";if(Q){R.context=Q.nodeType?Q:U||document}}return R};u.fn.init.prototype=u.fn;u.find=function(Q){var T=Array.prototype.slice.call(arguments);if(typeof Q==="string"&&l.test(Q)){try{document.querySelector(Q)}catch(S){Q=Q.replace(A,function(V,U,X,W){return"["+U+X+'"'+W+'"]'});try{document.querySelector(Q);K("Attribute selector with '#' must be quoted: "+T[0]);T[0]=Q}catch(R){K("Attribute selector with '#' was not fixed: "+T[0])}}}return k.apply(this,T)};var N;for(N in k){if(Object.prototype.hasOwnProperty.call(k,N)){u.find[N]=k[N]}}u.parseJSON=function(Q){if(!Q){K("jQuery.parseJSON requires a valid JSON string");return null}return y.apply(this,arguments)};u.uaMatch=function(R){R=R.toLowerCase();var Q=/(chrome)[ \/]([\w.]+)/.exec(R)||/(webkit)[ \/]([\w.]+)/.exec(R)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(R)||/(msie) ([\w.]+)/.exec(R)||R.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(R)||[];return{browser:Q[1]||"",version
|