").append(b.parseHTML(e)).find(i):e)})).complete(r&&function(e,t){s.each(r,o||[e.responseText,t,e])}),this},b.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){b.fn[t]=function(e){return this.on(t,e)}})),b.each(["get","post"],(function(e,n){b[n]=function(e,r,i,o){return b.isFunction(r)&&(o=o||i,i=r,r=t),b.ajax({url:e,type:n,dataType:o,data:r,success:i})}})),b.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:dt,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(pt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":kt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":b.parseJSON,"text xml":b.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?At(At(e,b.ajaxSettings),t):At(b.ajaxSettings,e)},ajaxPrefilter:Et(Nt),ajaxTransport:Et(Ct),ajax:function(e,n){"object"==typeof e&&(n=e,e=t),n=n||{};var r,i,o,a,s,u,l,c,f=b.ajaxSetup({},n),p=f.context||f,d=f.context&&(p.nodeType||p.jquery)?b(p):b.event,h=b.Deferred(),g=b.Callbacks("once memory"),m=f.statusCode||{},y={},v={},x=0,T="canceled",N={readyState:0,getResponseHeader:function(e){var t;if(2===x){if(!c)for(c={};t=vt.exec(a);)c[t[1].toLowerCase()]=t[2];t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===x?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return x||(e=v[n]=v[n]||e,y[e]=t),this},overrideMimeType:function(e){return x||(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(x<2)for(t in e)m[t]=[m[t],e[t]];else N.always(e[N.status]);return this},abort:function(e){var t=e||T;return l&&l.abort(t),C(0,t),this}};if(h.promise(N).complete=g.add,N.success=N.done,N.error=N.fail,f.url=((e||f.url||dt)+"").replace(mt,"").replace(xt,pt[1]+"//"),f.type=n.method||n.type||f.method||f.type,f.dataTypes=b.trim(f.dataType||"*").toLowerCase().match(w)||[""],null==f.crossDomain&&(r=wt.exec(f.url.toLowerCase()),f.crossDomain=!(!r||r[1]===pt[1]&&r[2]===pt[2]&&(r[3]||("http:"===r[1]?80:443))==(pt[3]||("http:"===pt[1]?80:443)))),f.data&&f.processData&&"string"!=typeof f.data&&(f.data=b.param(f.data,f.traditional)),St(Nt,f,n,N),2===x)return N;for(i in(u=f.global)&&0==b.active++&&b.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!bt.test(f.type),o=f.url,f.hasContent||(f.data&&(o=f.url+=(gt.test(o)?"&":"?")+f.data,delete f.data),!1===f.cache&&(f.url=yt.test(o)?o.replace(yt,"$1_="+ht++):o+(gt.test(o)?"&":"?")+"_="+ht++)),f.ifModified&&(b.lastModified[o]&&N.setRequestHeader("If-Modified-Since",b.lastModified[o]),b.etag[o]&&N.setRequestHeader("If-None-Match",b.etag[o])),(f.data&&f.hasContent&&!1!==f.contentType||n.contentType)&&N.setRequestHeader("Content-Type",f.contentType),N.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+kt+"; q=0.01":""):f.accepts["*"]),f.headers)N.setRequestHeader(i,f.headers[i]);if(f.beforeSend&&(!1===f.beforeSend.call(p,N,f)||2===x))return N.abort();for(i in T="abort",{success:1,error:1,complete:1})N[i](f[i]);if(l=St(Ct,f,n,N)){N.readyState=1,u&&d.trigger("ajaxSend",[N,f]),f.async&&f.timeout>0&&(s=setTimeout((function(){N.abort("timeout")}),f.timeout));try{x=1,l.send(y,C)}catch(e){if(!(x<2))throw e;C(-1,e)}}else C(-1,"No Transport");function C(e,n,r,i){var c,y,v,w,T,C=n;2!==x&&(x=2,s&&clearTimeout(s),l=t,a=i||"",N.readyState=e>0?4:0,r&&(w=function(e,n,r){var i,o,a,s,u=e.contents,l=e.dataTypes,c=e.responseFields;for(s in c)s in r&&(n[c[s]]=r[s]);for(;"*"===l[0];)l.shift(),o===t&&(o=e.mimeType||n.getResponseHeader("Content-Type"));if(o)for(s in u)if(u[s]&&u[s].test(o)){l.unshift(s);break}if(l[0]in r)a=l[0];else{for(s in r){if(!l[0]||e.converters[s+" "+l[0]]){a=s;break}i||(i=s)}a=a||i}if(a)return a!==l[0]&&l.unshift(a),r[a]}(f,N,r)),e>=200&&e<300||304===e?(f.ifModified&&((T=N.getResponseHeader("Last-Modified"))&&(b.lastModified[o]=T),(T=N.getResponseHeader("etag"))&&(b.etag[o]=T)),204===e?(c=!0,C="nocontent"):304===e?(c=!0,C="notmodified"):(c=function(e,t){var n,r,i,o,a={},s=0,u=e.dataTypes.slice(),l=u[0];e.dataFilter&&(t=e.dataFilter(t,e.dataType));if(u[1])for(i in e.converters)a[i.toLowerCase()]=e.converters[i];for(;r=u[++s];)if("*"!==r){if("*"!==l&&l!==r){if(!(i=a[l+" "+r]||a["* "+r]))for(n in a)if((o=n.split(" "))[1]===r&&(i=a[l+" "+o[0]]||a["* "+o[0]])){!0===i?i=a[n]:!0!==a[n]&&(r=o[0],u.splice(s--,0,r));break}if(!0!==i)if(i&&e.throws)t=i(t);else try{t=i(t)}catch(e){return{state:"parsererror",error:i?e:"No conversion from "+l+" to "+r}}}l=r}return{state:"success",data:t}}(f,w),C=c.state,y=c.data,c=!(v=c.error))):(v=C,!e&&C||(C="error",e<0&&(e=0))),N.status=e,N.statusText=(n||C)+"",c?h.resolveWith(p,[y,C,N]):h.rejectWith(p,[N,C,v]),N.statusCode(m),m=t,u&&d.trigger(c?"ajaxSuccess":"ajaxError",[N,f,c?y:v]),g.fireWith(p,[N,C]),u&&(d.trigger("ajaxComplete",[N,f]),--b.active||b.event.trigger("ajaxStop")))}return N},getScript:function(e,n){return b.get(e,t,n,"script")},getJSON:function(e,t,n){return b.get(e,t,n,"json")}}),b.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return b.globalEval(e),e}}}),b.ajaxPrefilter("script",(function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)})),b.ajaxTransport("script",(function(e){if(e.crossDomain){var n,r=o.head||b("head")[0]||o.documentElement;return{send:function(t,i){(n=o.createElement("script")).async=!0,e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,t){(t||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),n=null,t||i(200,"success"))},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(t,!0)}}}}));var jt=[],Dt=/(=)\?(?=&|$)|\?\?/;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=jt.pop()||b.expando+"_"+ht++;return this[e]=!0,e}}),b.ajaxPrefilter("json jsonp",(function(n,r,i){var o,a,s,u=!1!==n.jsonp&&(Dt.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Dt.test(n.data)&&"data");if(u||"jsonp"===n.dataTypes[0])return o=n.jsonpCallback=b.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,u?n[u]=n[u].replace(Dt,"$1"+o):!1!==n.jsonp&&(n.url+=(gt.test(n.url)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return s||b.error(o+" was not called"),s[0]},n.dataTypes[0]="json",a=e[o],e[o]=function(){s=arguments},i.always((function(){e[o]=a,n[o]&&(n.jsonpCallback=r.jsonpCallback,jt.push(o)),s&&b.isFunction(a)&&a(s[0]),s=a=t})),"script"}));var Lt,Ht,qt=0,Mt=e.ActiveXObject&&function(){var e;for(e in Lt)Lt[e](t,!0)};function _t(){try{return new e.XMLHttpRequest}catch(e){}}b.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&_t()||function(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}()}:_t,Ht=b.ajaxSettings.xhr(),b.support.cors=!!Ht&&"withCredentials"in Ht,(Ht=b.support.ajax=!!Ht)&&b.ajaxTransport((function(n){var r;if(!n.crossDomain||b.support.cors)return{send:function(i,o){var a,s,u=n.xhr();if(n.username?u.open(n.type,n.url,n.async,n.username,n.password):u.open(n.type,n.url,n.async),n.xhrFields)for(s in n.xhrFields)u[s]=n.xhrFields[s];n.mimeType&&u.overrideMimeType&&u.overrideMimeType(n.mimeType),n.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");try{for(s in i)u.setRequestHeader(s,i[s])}catch(e){}u.send(n.hasContent&&n.data||null),r=function(e,i){var s,l,c,f;try{if(r&&(i||4===u.readyState))if(r=t,a&&(u.onreadystatechange=b.noop,Mt&&delete Lt[a]),i)4!==u.readyState&&u.abort();else{f={},s=u.status,l=u.getAllResponseHeaders(),"string"==typeof u.responseText&&(f.text=u.responseText);try{c=u.statusText}catch(e){c=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=f.text?200:404}}catch(e){i||o(-1,e)}f&&o(s,c,f,l)},n.async?4===u.readyState?setTimeout(r):(a=++qt,Mt&&(Lt||(Lt={},b(e).unload(Mt)),Lt[a]=r),u.onreadystatechange=r):r()},abort:function(){r&&r(t,!0)}}}));var Ft,Ot,Bt=/^(?:toggle|show|hide)$/,Pt=new RegExp("^(?:([+-])=|)("+x+")([a-z%]*)$","i"),Rt=/queueHooks$/,Wt=[function(e,t,n){var r,i,o,a,s,u,l,c,f,p=this,d=e.style,h={},g=[],m=e.nodeType&&Ze(e);n.queue||(null==(c=b._queueHooks(e,"fx")).unqueued&&(c.unqueued=0,f=c.empty.fire,c.empty.fire=function(){c.unqueued||f()}),c.unqueued++,p.always((function(){p.always((function(){c.unqueued--,b.queue(e,"fx").length||c.empty.fire()}))})));1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],"inline"===b.css(e,"display")&&"none"===b.css(e,"float")&&(b.support.inlineBlockNeedsLayout&&"inline"!==it(e.nodeName)?d.zoom=1:d.display="inline-block"));n.overflow&&(d.overflow="hidden",b.support.shrinkWrapBlocks||p.always((function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]})));for(i in t)if(a=t[i],Bt.exec(a)){if(delete t[i],u=u||"toggle"===a,a===(m?"hide":"show"))continue;g.push(i)}if(o=g.length){"hidden"in(s=b._data(e,"fxshow")||b._data(e,"fxshow",{}))&&(m=s.hidden),u&&(s.hidden=!m),m?b(e).show():p.done((function(){b(e).hide()})),p.done((function(){var t;for(t in b._removeData(e,"fxshow"),h)b.style(e,t,h[t])}));for(i=0;i
-1?(i=(f=a.position()).top,o=f.left):(i=parseFloat(u)||0,o=parseFloat(l)||0),b.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(c.top=t.top-s.top+i),null!=t.left&&(c.left=t.left-s.left+o),"using"in t?t.using.call(e,c):a.css(c)}},b.fn.extend({position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===b.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),b.nodeName(e[0],"html")||(n=e.offset()),n.top+=b.css(e[0],"borderTopWidth",!0),n.left+=b.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-b.css(r,"marginTop",!0),left:t.left-n.left-b.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent||o.documentElement;e&&!b.nodeName(e,"html")&&"static"===b.css(e,"position");)e=e.offsetParent;return e||o.documentElement}))}}),b.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,n){var r=/Y/.test(n);b.fn[e]=function(i){return b.access(this,(function(e,i,o){var a=Vt(e);if(o===t)return a?n in a?a[n]:a.document.documentElement[i]:e[i];a?a.scrollTo(r?b(a).scrollLeft():o,r?o:b(a).scrollTop()):e[i]=o}),e,i,arguments.length,null)}})),b.each({Height:"height",Width:"width"},(function(e,n){b.each({padding:"inner"+e,content:n,"":"outer"+e},(function(r,i){b.fn[i]=function(i,o){var a=arguments.length&&(r||"boolean"!=typeof i),s=r||(!0===i||!0===o?"margin":"border");return b.access(this,(function(n,r,i){var o;return b.isWindow(n)?n.document.documentElement["client"+e]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+e],o["scroll"+e],n.body["offset"+e],o["offset"+e],o["client"+e])):i===t?b.css(n,r,s):b.style(n,r,i,s)}),n,a?i:t,a,null)}}))})),e.jQuery=e.$=b,"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],(function(){return b}))}(window);