18 lines
88 KiB
JavaScript
18 lines
88 KiB
JavaScript
|
/*!
|
||
|
* jQuery JavaScript Library v1.6
|
||
|
* http://jquery.com/
|
||
|
*
|
||
|
* Copyright 2011, John Resig
|
||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||
|
* http://jquery.org/license
|
||
|
*
|
||
|
* Includes Sizzle.js
|
||
|
* http://sizzlejs.com/
|
||
|
* Copyright 2011, The Dojo Foundation
|
||
|
* Released under the MIT, BSD, and GPL Licenses.
|
||
|
*
|
||
|
* Date: Mon May 2 13:50:00 2011 -0400
|
||
|
*/(function(j,N){function ae(e){return n.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:!1}function Ce(e){if(!we[e]){var t=n("<"+e+">").appendTo("body"),r=t.css("display");t.remove(),(r==="none"||r==="")&&(z||(z=E.createElement("iframe"),z.frameBorder=z.width=z.height=0),E.body.appendChild(z),(!Z||!z.createElement)&&(Z=(z.contentWindow||z.contentDocument).document,Z.write("<!doctype><html><body></body></html>")),t=Z.createElement(e),Z.body.appendChild(t),r=n.css(t,"display"),E.body.removeChild(z)),we[e]=r}return we[e]}function G(e,t){var r={};return n.each(rt.concat.apply([],rt.slice(0,t)),function(){r[this]=e}),r}function ot(){le=N}function Ee(){return setTimeout(ot,0),le=n.now()}function st(){try{return new j.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}function be(){try{return new j.XMLHttpRequest}catch(e){}}function lt(e,t){e.dataFilter&&(t=e.dataFilter(t,e.dataType));var r=e.dataTypes,i={},o,s,l=r.length,u,d=r[0],p,g,C,F,b;for(o=1;o<l;o++){if(o===1)for(s in e.converters)typeof s=="string"&&(i[s.toLowerCase()]=e.converters[s]);if(p=d,d=r[o],d==="*")d=p;else if(p!=="*"&&p!==d){if(g=p+" "+d,C=i[g]||i["* "+d],!C){b=N;for(F in i)if(u=F.split(" "),(u[0]===p||u[0]==="*")&&(b=i[u[1]+" "+d],b)){F=i[F],F===!0?C=b:b===!0&&(C=F);break}}!C&&!b&&n.error("No conversion from "+g.replace(" "," to ")),C!==!0&&(t=C?C(t):b(F(t)))}}return t}function at(e,t,r){var i=e.contents,o=e.dataTypes,s=e.responseFields,l,u,d,p;for(u in s)u in r&&(t[s[u]]=r[u]);for(;o[0]==="*";)o.shift(),l===N&&(l=e.mimeType||t.getResponseHeader("content-type"));if(l){for(u in i)if(i[u]&&i[u].test(l)){o.unshift(u);break}}if(o[0]in r)d=o[0];else{for(u in r){if(!o[0]||e.converters[u+" "+o[0]]){d=u;break}p||(p=u)}d=d||p}if(d)return d!==o[0]&&o.unshift(d),r[d]}function ue(e,t,r,i){if(n.isArray(t))n.each(t,function(s,l){r||Vt.test(e)?i(e,l):ue(e+"["+(typeof l=="object"||n.isArray(l)?s:"")+"]",l,r,i)});else if(!r&&t!=null&&typeof t=="object")for(var o in t)ue(e+"["+o+"]",t[o],r,i);else i(e,t)}function ee(e,t,r,i,o,s){o=o||t.dataTypes[0],s=s||{},s[o]=!0;for(var l=e[o],u=0,d=l?l.length:0,p=e===ye,g;u<d&&(p||!g);u++)g=l[u](t,r,i),typeof g=="string"&&(!p||s[g]?g=N:(t.dataTypes.unshift(g),g=ee(e,t,r,i,g,s)));return(p||!g)&&!s["*"]&&(g=ee(e,t,r,i,"*",s)),g}function Se(e){return function(t,r){if(typeof t!="string"&&(r=t,t="*"),n.isFunction(r))for(var i=t.toLowerCase().split(Ze),o=0,s=i.length,l,u,d;o<s;o++)l=i[o],d=/^\+/.test(l),d&&(l=l.substr(1)||"*"),u=e[l]=e[l]||[],u[d?"unshift":"push"](r)}}function Ae(e,t,r){var i=t==="width"?Wt:$t,o=t==="width"?e.offsetWidth:e.offsetHeight;return r==="border"||n.each(i,function(){r||(o-=parseFloat(n.css(e,"padding"+this))||0),r==="margin"?o+=parseFloat(n.css(e,"margin"+this))||0:o-=parseFloat(n.css(e,"border"+this+"Width"))||0}),o}function ut(e,t){t.src?n.ajax({url:t.src,async:!1,dataType:"script"}):n.globalEval(t.text||t.textContent||t.innerHTML||""),t.parentNode&&t.parentNode.removeChild(t)}function De(e){n.nodeName(e,"input")?Fe(e):e.getElementsByTagName&&n.grep(e.getElementsByTagName("input"),Fe)}function Fe(e){(e.type==="checkbox"||e.type==="radio")&&(e.defaultChecked=e.checked)}function te(e){return"getElementsByTagName"in e?e.getElementsByTagName("*"):"querySelectorAll"in e?e.querySelectorAll("*"):[]}function ke(e,t){var r;t.nodeType===1&&(t.clearAttributes&&t.clearAttributes(),t.mergeAttributes&&t.mergeAttributes(e),r=t.nodeName.toLowerCase(),r==="object"?t.outerHTML=e.outerHTML:r!=="input"||e.type!=="checkbox"&&e.type!=="radio"?r==="option"?t.selected=e.defaultSelected:(r==="input"||r==="textarea")&&(t.defaultValue=e.defaultValue):(e.checked&&(t.defaultChecked=t.checked=e.checked),t.value!==e.value&&(t.value=e.value)),t.removeAttribute(n.expando))}function Le(e,t){if(t.nodeType===1&&!!n.hasData(e)){var r=n.expando,i=n.data(e),o=n.data(t,i);if(i=i[r]){var s=i.events;if(o=o[r]=n.extend({},i),s){delete o.handle,o.events={};for(var l in s)for(var u=0,d=s[l].length;u<d;u++)n.event.add(t,l+(s[l][u].namespace?".":"")+s[l][u].namespace,s[l][u],s[l][u].data)}}}}function ft(e,t){return n.nodeName(e,"table")?e.getElementsByTag
|
||
|
`)}}):{name:t.name,value:r.replace(Ke,`\r
|
||
|
`)}}).get()}}),n.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,t){n.fn[t]=function(r){return this.bind(t,r)}}),n.each(["get","post"],function(e,t){n[t]=function(r,i,o,s){return n.isFunction(i)&&(s=s||o,o=i,i=N),n.ajax({type:t,url:r,data:i,success:o,dataType:s})}}),n.extend({getScript:function(e,t){return n.get(e,N,t,"script")},getJSON:function(e,t,r){return n.get(e,t,r,"json")},ajaxSetup:function(e,t){t?n.extend(!0,e,n.ajaxSettings,t):(t=e,e=n.extend(!0,n.ajaxSettings,t));for(var r in{context:1,url:1})r in t?e[r]=t[r]:r in n.ajaxSettings&&(e[r]=n.ajaxSettings[r]);return e},ajaxSettings:{url:V,isLocal:Jt.test(U[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":j.String,"text html":!0,"text json":n.parseJSON,"text xml":n.parseXML}},ajaxPrefilter:Se(ye),ajaxTransport:Se(nt),ajax:function(e,t){function r(m,y,S,A){if(H!==2){H=2,P&&clearTimeout(P),k=N,F=A||"",h.readyState=m?4:0;var L,R,q,f=S?at(i,h,S):N,T,D;if(m>=200&&m<300||m===304)if(i.ifModified&&((T=h.getResponseHeader("Last-Modified"))&&(n.lastModified[p]=T),(D=h.getResponseHeader("Etag"))&&(n.etag[p]=D)),m===304)y="notmodified",L=!0;else try{R=lt(i,f),y="success",L=!0}catch(w){y="parsererror",q=w}else q=y,(!y||m)&&(y="error",m<0&&(m=0));h.status=m,h.statusText=y,L?l.resolveWith(o,[R,y,h]):l.rejectWith(o,[h,y,q]),h.statusCode(d),d=N,a&&s.trigger("ajax"+(L?"Success":"Error"),[h,i,L?R:q]),u.resolveWith(o,[h,y]),a&&(s.trigger("ajaxComplete",[h,i]),--n.active||n.event.trigger("ajaxStop"))}}typeof e=="object"&&(t=e,e=N),t=t||{};var i=n.ajaxSetup({},t),o=i.context||i,s=o!==i&&(o.nodeType||o instanceof n)?n(o):n.event,l=n.Deferred(),u=n._Deferred(),d=i.statusCode||{},p,g={},C={},F,b,k,P,O,H=0,a,c,h={readyState:0,setRequestHeader:function(m,y){if(!H){var S=m.toLowerCase();m=C[S]=C[S]||m,g[m]=y}return this},getAllResponseHeaders:function(){return H===2?F:null},getResponseHeader:function(m){var y;if(H===2){if(!b)for(b={};y=Gt.exec(F);)b[y[1].toLowerCase()]=y[2];y=b[m.toLowerCase()]}return y===N?null:y},overrideMimeType:function(m){return H||(i.mimeType=m),this},abort:function(m){return m=m||"abort",k&&k.abort(m),r(0,m),this}};if(l.promise(h),h.success=h.done,h.error=h.fail,h.complete=u.done,h.statusCode=function(m){if(m){var y;if(H<2)for(y in m)d[y]=[d[y],m[y]];else y=m[h.status],h.then(y,y)}return this},i.url=((e||i.url)+"").replace(Ut,"").replace(Qt,U[1]+"//"),i.dataTypes=n.trim(i.dataType||"*").toLowerCase().split(Ze),i.crossDomain==null&&(O=et.exec(i.url.toLowerCase()),i.crossDomain=!(!O||O[1]==U[1]&&O[2]==U[2]&&(O[3]||(O[1]==="http:"?80:443))==(U[3]||(U[1]==="http:"?80:443)))),i.data&&i.processData&&typeof i.data!="string"&&(i.data=n.param(i.data,i.traditional)),ee(ye,i,t,h),H===2)return!1;if(a=i.global,i.type=i.type.toUpperCase(),i.hasContent=!Kt.test(i.type),a&&n.active++==0&&n.event.trigger("ajaxStart"),!i.hasContent&&(i.data&&(i.url+=(Qe.test(i.url)?"&":"?")+i.data),p=i.url,i.cache===!1)){var v=n.now(),x=i.url.replace(tn,"$1_="+v);i.url=x+(x===i.url?(Qe.test(i.url)?"&":"?")+"_="+v:"")}(i.data&&i.hasContent&&i.contentType!==!1||t.contentType)&&h.setRequestHeader("Content-Type",i.contentType),i.ifModified&&(p=p||i.url,n.lastModified[p]&&h.setRequestHeader("If-Modified-Since",n.lastModified[p]),n.etag[p]&&h.setRequestHeader("If-None-Match",n.etag[p])),h.setRequestHeader("Accept",i.dataTypes[0]&&i.accepts[i.dataTypes[0]]?i.accepts[i.dataTypes[0]]+(i.dataTypes[0]!=="*"?", */*; q=0.01":""):i.accepts["*"]);for(c in i.headers)h.setRequestHeader(c,i.headers[c]);if(i.beforeSend&&(i.beforeSend.call(o,h,i)===!1||H===2))return h.abort(),!1;for(c in{success:1,error:1,complete:1})h[c](i[c]);if(k=ee(nt,i,t,h),!k)r(-1,"No Transport");else{h.readyState=1,a&&s.trigger("ajaxSend",[h,i]),i.async&&i.timeout>0&&(P=setTimeout(function(){h.abort("timeout")},i.t
|