mailcatcher-ng 1.0.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,22 @@
1
- !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(ue,e){"use strict";function g(e,t,n){var r,i,o=(n=n||xe).createElement("script");if(o.text=e,t)for(r in we)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function m(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?se[pe.call(e)]||"object":typeof e}function s(e){var t=!!e&&"length"in e&&e.length,n=m(e);return!ve(e)&&!be(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function le(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function t(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}function n(e,n,r){return ve(n)?Se.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?Se.grep(e,function(e){return e===n!==r}):"string"!=typeof n?Se.grep(e,function(e){return-1<fe.call(n,e)!==r}):Se.filter(n,e,r)}function r(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function c(e){var n={};return Se.each(e.match(Ie)||[],function(e,t){n[t]=!0}),n}function d(e){return e}function f(e){throw e}function u(e,t,n,r){var i;try{e&&ve(i=e.promise)?i.call(e).done(t).fail(n):e&&ve(i=e.then)?i.call(e,t,n):t.apply(undefined,[e].slice(r))}catch(e){n.apply(undefined,[e])}}function i(){xe.removeEventListener("DOMContentLoaded",i),ue.removeEventListener("load",i),Se.ready()}function o(e,t){return t.toUpperCase()}function p(e){return e.replace(Ue,"ms-").replace(Xe,o)}function a(){this.expando=Se.expando+a.uid++}function l(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Je.test(e)?JSON.parse(e):e)}function h(e,t,n){var r;if(n===undefined&&1===e.nodeType)if(r="data-"+t.replace(Ge,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=l(n)}catch(i){}Ye.set(e,t,n)}else n=undefined;return n}function y(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return Se.css(e,t,"")},u=s(),l=n&&n[3]||(Se.cssNumber[t]?"":"px"),c=e.nodeType&&(Se.cssNumber[t]||"px"!==l&&+u)&&Ze.exec(Se.css(e,t));if(c&&c[3]!==l){for(u/=2,l=l||c[3],c=+u||1;a--;)Se.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,Se.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}function v(e){var t,n=e.ownerDocument,r=e.nodeName,i=ot[r];return i||(t=n.body.appendChild(n.createElement(r)),i=Se.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),ot[r]=i)}function b(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(i[o]=Ve.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&it(r)&&(i[o]=v(r))):"none"!==n&&(i[o]="none",Ve.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}function x(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],t===undefined||t&&le(e,t)?Se.merge([e],n):n}function w(e,t){for(var n=0,r=e.length;n<r;n++)Ve.set(e[n],"globalEval",!t||Ve.get(t[n],"globalEval"))}function T(e,t,n,r,i){for(var o,a,s,u,l,c,d=t.createDocumentFragment(),f=[],p=0,h=e.length;p<h;p++)if((o=e[p])||0===o)if("object"===m(o))Se.merge(f,o.nodeType?[o]:o);else if(ft.test(o)){for(a=a||d.appendChild(t.createElement("div")),s=(lt.exec(o)||["",""])[1].toLowerCase(),u=dt[s]||dt._default,a.innerHTML=u[1]+Se.htmlPrefilter(o)+u[2],c=u[0];c--;)a=a.lastChild;Se.merge(f,a.childNodes),(a=d.firstChild).textContent=""}else f.push(t.createTextNode(o));for(d.textContent="",p=0;o=f[p++];)if(r&&-1<Se.inArray(o,r))i&&i.push(o);else if(l=nt(o),a=x(d.appendChild(o),"script"),l&&w(a),n)for(c=0;o=a[c++];)ct.test(o.type||"")&&n.push(o);return d}function C(){return!0}function S(){return!1}function k(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=undefined),t)k(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=undefined):null==i&&("string"==typeof n?(i=r,r=undefined):(i=r,r=n,n=undefined)),!1===i)i=S;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return Se().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=Se.guid++)),e.each(function(){Se.event.add(this,t,i,r,n)})}function E(e,r,t){t?(Ve.set(e,r,!1),Se.event.add(e,r,{namespace:!1,handler:function(e){var t,n=Ve.get(this,r);if(1&e.isTrigger&&this[r]){if(n)(Se.event.special[r]||{}).delegateType&&e.stopPropagation();else if(n=de.call(arguments),Ve.set(this,r,n),this[r](),t=Ve.get(this,r),Ve.set(this,r,!1),n!==t)return e.stopImmediatePropagation(),e.preventDefault(),t}else n&&(Ve.set(this,r,Se.event.trigger(n[0],n.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=C)}})):Ve.get(e,r)===undefined&&Se.event.add(e,r,C)}function $(e,t){return le(e,"table")&&le(11!==t.nodeType?t:t.firstChild,"tr")&&Se(e).children("tbody")[0]||e}function A(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function D(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function j(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Ve.hasData(e)&&(s=Ve.get(e).events))for(i in Ve.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)Se.event.add(t,i,s[i][n]);Ye.hasData(e)&&(o=Ye.access(e),a=Se.extend({},o),Ye.set(t,a))}}function M(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ut.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function N(n,r,i,o){r=oe(r);var e,t,a,s,u,l,c=0,d=n.length,f=d-1,p=r[0],h=ve(p);if(h||1<d&&"string"==typeof p&&!ye.checkClone&&gt.test(p))return n.each(function(e){var t=n.eq(e);h&&(r[0]=p.call(this,e,t.html())),N(t,r,i,o)});if(d&&(t=(e=T(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=Se.map(x(e,"script"),A)).length;c<d;c++)u=e,c!==f&&(u=Se.clone(u,!0,!0),s&&Se.merge(a,x(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,Se.map(a,D),c=0;c<s;c++)u=a[c],ct.test(u.type||"")&&!Ve.access(u,"globalEval")&&Se.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?Se._evalUrl&&!u.noModule&&Se._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):g(u.textContent.replace(mt,""),u,l))}return n}function q(e,t,n){for(var r,i=t?Se.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||Se.cleanData(x(r)),r.parentNode&&(n&&nt(r)&&w(x(r,"script")),r.parentNode.removeChild(r));return e}function L(e,t,n){var r,i,o,a,s=vt.test(t),u=e.style;return(n=n||bt(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(De,"$1")||undefined),""!==a||nt(e)||(a=Se.style(e,t)),!ye.pixelBoxStyles()&&yt.test(a)&&wt.test(t)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=n.width,u.width=r,u.minWidth=i,u.maxWidth=o)),a!==undefined?a+"":a}function H(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}function O(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Tt.length;n--;)if((e=Tt[n]+t)in Ct)return e}function R(e){var t=Se.cssProps[e]||St[e];return t||(e in Ct?e:St[e]=O(e)||e)}function P(e,t,n){var r=Ze.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function W(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=Se.css(e,n+et[a],!0,i)),r?("content"===n&&(u-=Se.css(e,"padding"+et[a],!0,i)),"margin"!==n&&(u-=Se.css(e,"border"+et[a]+"Width",!0,i))):(u+=Se.css(e,"padding"+et[a],!0,i),"padding"!==n?u+=Se.css(e,"border"+et[a]+"Width",!0,i):s+=Se.css(e,"border"+et[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u+l}function F(e,t,n){var r=bt(e),i=(!ye.boxSizingReliable()||n)&&"border-box"===Se.css(e,"boxSizing",!1,r),o=i,a=L(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(yt.test(a)){if(!n)return a;a="auto"}return(!ye.boxSizingReliable()&&i||!ye.reliableTrDimensions()&&le(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===Se.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===Se.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+W(e,t,n||(i?"border":"content"),o,r,a)+"px"}function I(e,t,n,r,i){return new I.prototype.init(e,t,n,r,i)}function B(){Dt&&(!1===xe.hidden&&ue.requestAnimationFrame?ue.requestAnimationFrame(B):ue.setTimeout(B,Se.fx.interval),Se.fx.tick())}function _(){return ue.setTimeout(function(){At=undefined}),At=Date.now()}function z(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=et[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function U(e,t,n){for(var r,i=(V.tweeners[t]||[]).concat(V.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function X(e,t,n){var r,i,o,a,s,u,l,c,d="width"in t||"height"in t,f=this,p={},h=e.style,g=e.nodeType&&it(e),m=Ve.get(e,"fxshow");for(r in n.queue||(null==(a=Se._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,f.always(function(){f.always(function(){a.unqueued--,Se.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],Nt.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!m||m[r]===undefined)continue;g=!0}p[r]=m&&m[r]||Se.style(e,r)}if((u=!Se.isEmptyObject(t))||!Se.isEmptyObject(p))for(r in d&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=m&&m.display)&&(l=Ve.get(e,"display")),"none"===(c=Se.css(e,"display"))&&(l?c=l:(b([e],!0),l=e.style.display||l,c=Se.css(e,"display"),b([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===Se.css(e,"float")&&(u||(f.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",f.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,p)u||(m?"hidden"in m&&(g=m.hidden):m=Ve.access(e,"fxshow",{display:l}),o&&(m.hidden=!g),g&&b([e],!0),f.done(function(){for(r in g||b([e]),Ve.remove(e,"fxshow"),p)Se.style(e,r,p[r])})),u=U(g?m[r]:0,r,f),r in m||(m[r]=u.start,g&&(u.end=u.start,u.start=0))}function Q(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=p(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=Se.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}function V(o,e,t){var n,a,r=0,i=V.prefilters.length,s=Se.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=At||_(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:Se.extend({},e),opts:Se.extend(!0,{specialEasing:{},easing:Se.easing._default},t),originalProperties:e,originalOptions:t,startTime:At||_(),duration:t.duration,tweens:[],createTween:function(e,t){var n=Se.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(Q(c,l.opts.specialEasing);r<i;r++)if(n=V.prefilters[r].call(l,o,c,l.opts))return ve(n.stop)&&(Se._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return Se.map(c,U,l),ve(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),Se.fx.timer(Se.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}function Y(e){return(e.match(Ie)||[]).join(" ")}function J(e){return e.getAttribute&&e.getAttribute("class")||""}function G(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(Ie)||[]}function K(n,e,r,i){var t;if(Array.isArray(e))Se.each(e,function(e,t){r||zt.test(n)?i(n,t):K(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==m(e))i(n,e);else for(t in e)K(n+"["+t+"]",e[t],r,i)}function Z(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(Ie)||[];if(ve(t))for(;n=i[r++];)"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function ee(t,i,o,a){function s(e){var r;return u[e]=!0,Se.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||l||u[n]?l?!(r=n):void 0:(i.dataTypes.unshift(n),s(n),!1)}),r}var u={},l=t===nn;return s(i.dataTypes[0])||!u["*"]&&s("*")}function te(e,t){var n,r,i=Se.ajaxSettings.flatOptions||{};for(n in t)t[n]!==undefined&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&Se.extend(!0,e,r),e}function ne(e,t,n){for(var r,i,o,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),r===undefined&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}function re(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(d){return{state:"parsererror",error:a?d:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}var ce=[],ie=Object.getPrototypeOf,de=ce.slice,oe=ce.flat?function(e){return ce.flat.call(e)}:function(e){return ce.concat.apply([],e)},ae=ce.push,fe=ce.indexOf,se={},pe=se.toString,he=se.hasOwnProperty,ge=he.toString,me=ge.call(Object),ye={},ve=function ve(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},be=function be(e){return null!=e&&e===e.window},xe=ue.document,we={type:!0,src:!0,nonce:!0,noModule:!0},Te="3.7.1",Ce=/HTML$/i,Se=function(e,t){return new Se.fn.init(e,t)};Se.fn=Se.prototype={jquery:Te,constructor:Se,length:0,toArray:function(){return de.call(this)},get:function(e){return null==e?de.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=Se.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return Se.each(this,e)},map:function(n){return this.pushStack(Se.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(de.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(Se.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(Se.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:ae,sort:ce.sort,splice:ce.splice},Se.extend=Se.fn.extend=function(e){var t,n,r,i,o,a,s=e||{},u=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[u]||{},u++),"object"==typeof s||ve(s)||(s={}),u===l&&(s=this,u--);u<l;u++)if(null!=(t=arguments[u]))for(n in t)i=t[n],"__proto__"!==n&&s!==i&&(c&&i&&(Se.isPlainObject(i)||(o=Array.isArray(i)))?(r=s[n],a=o&&!Array.isArray(r)?[]:o||Se.isPlainObject(r)?r:{},o=!1,s[n]=Se.extend(c,a,i)):i!==undefined&&(s[n]=i));return s},Se.extend({expando:"jQuery"+(Te+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==pe.call(e))&&(!(t=ie(e))||"function"==typeof(n=he.call(t,"constructor")&&t.constructor)&&ge.call(n)===me)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){g(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(s(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,i=e.nodeType;if(!i)for(;t=e[r++];)n+=Se.text(t);return 1===i||11===i?e.textContent:9===i?e.documentElement.textContent:3===i||4===i?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(s(Object(e))?Se.merge(n,"string"==typeof e?[e]:e):ae.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:fe.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Ce.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(s(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return oe(a)},guid:1,support:ye}),"function"==typeof Symbol&&(Se.fn[Symbol.iterator]=ce[Symbol.iterator]),Se.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){se["[object "+t+"]"]=t.toLowerCase()});var ke=ce.pop,Ee=ce.sort,$e=ce.splice,Ae="[\\x20\\t\\r\\n\\f]",De=new RegExp("^"+Ae+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Ae+"+$","g");Se.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var je=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;Se.escapeSelector=function(e){return(e+"").replace(je,t)};var Me=xe,Ne=ae;!function(){function t(){try{return A.activeElement}catch(e){}}function h(e,t,n,r){var i,o,a,s,u,l,c,d=t&&t.ownerDocument,f=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==f&&9!==f&&11!==f)return n;if(!r&&(x(t),t=t||A,j)){if(11!==f&&(u=te.exec(e)))if(i=u[1]){if(9===f){if(!(a=t.getElementById(i)))return n;if(a.id===i)return q.call(n,a),n}else if(d&&(a=d.getElementById(i))&&h.contains(t,a)&&a.id===i)return q.call(n,a),n}else{if(u[2])return q.apply(n,t.getElementsByTagName(e)),n;if((i=u[3])&&t.getElementsByClassName)return q.apply(n,t.getElementsByClassName(i)),n}if(!(F[e+" "]||M&&M.test(e))){if(c=e,d=t,1===f&&(Y.test(e)||V.test(e))){for((d=ne.test(e)&&g(t.parentNode)||t)==t&&ye.scope||((s=t.getAttribute("id"))?s=Se.escapeSelector(s):t.setAttribute("id",s=L)),o=(l=m(e)).length;o--;)l[o]=(s?"#"+s:":scope")+" "+y(l[o]);c=l.join(",")}try{return q.apply(n,d.querySelectorAll(c)),n}catch(p){F(e,!0)}finally{s===L&&t.removeAttribute("id")}}}return C(e.replace(De,"$1"),t,n,r)}function e(){function n(e,t){return r.push(e+" ")>S.cacheLength&&delete n[r.shift()],n[e+" "]=t}var r=[];return n}function n(e){return e[L]=!0,e}function r(e){var t=A.createElement("fieldset");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function i(t){return function(e){return le(e,"input")&&e.type===t}}function o(t){return function(e){return(le(e,"input")||le(e,"button"))&&e.type===t}}function a(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function s(a){return n(function(o){return o=+o,n(function(e,t){for(var n,r=a([],e.length,o),i=r.length;i--;)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function g(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function x(e){var t,n=e?e.ownerDocument||e:Me;return n!=A&&9===n.nodeType&&n.documentElement&&(D=(A=n).documentElement,j=!Se.isXMLDoc(A),N=D.matches||D.webkitMatchesSelector||D.msMatchesSelector,D.msMatchesSelector&&Me!=A&&(t=A.defaultView)&&t.top!==t&&t.addEventListener("unload",oe),ye.getById=r(function(e){return D.appendChild(e).id=Se.expando,!A.getElementsByName||!A.getElementsByName(Se.expando).length}),ye.disconnectedMatch=r(function(e){return N.call(e,"*")}),ye.scope=r(function(){return A.querySelectorAll(":scope")}),ye.cssHas=r(function(){try{return A.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),ye.getById?(S.filter.ID=function(e){var t=e.replace(re,ie);return function(e){return e.getAttribute("id")===t}},S.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&j){var n=t.getElementById(e);return n?[n]:[]}}):(S.filter.ID=function(e){var n=e.replace(re,ie);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},S.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&j){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),S.find.TAG=function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},S.find.CLASS=function(e,t){if("undefined"!=typeof t.getElementsByClassName&&j)return t.getElementsByClassName(e)},M=[],r(function(e){var t;D.appendChild(e).innerHTML="<a id='"+L+"' href='' disabled='disabled'></a><select id='"+L+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||M.push("\\["+Ae+"*(?:value|"+B+")"),e.querySelectorAll("[id~="+L+"-]").length||M.push("~="),e.querySelectorAll("a#"+L+"+*").length||M.push(".#.+[+~]"),e.querySelectorAll(":checked").length||M.push(":checked"),(t=A.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),D.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&M.push(":enabled",":disabled"),(t=A.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||M.push("\\["+Ae+"*name"+Ae+"*="+Ae+"*(?:''|\"\")")}),ye.cssHas||M.push(":has"),M=M.length&&new RegExp(M.join("|")),I=function(e,t){if(e===t)return $=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!ye.sortDetached&&t.compareDocumentPosition(e)===n?e===A||e.ownerDocument==Me&&h.contains(Me,e)?-1:t===A||t.ownerDocument==Me&&h.contains(Me,t)?1:E?fe.call(E,e)-fe.call(E,t):0:4&n?-1:1)}),A}function u(){}function m(e,t){var n,r,i,o,a,s,u,l=P[e+" "];if(l)return t?0:l.slice(0);for(a=e,s=[],u=S.preFilter;a;){for(o in n&&!(r=Q.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=V.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(De," ")}),a=a.slice(n.length)),S.filter)!(r=K[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?h.error(e):P(e,s).slice(0)}function y(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function d(a,e,t){var s=e.dir,u=e.next,l=u||s,c=t&&"parentNode"===l,d=O++;return e.first?function(e,t,n){for(;e=e[s];)if(1===e.nodeType||c)return a(e,t,n);return!1}:function(e,t,n){var r,i,o=[H,d];if(n){for(;e=e[s];)if((1===e.nodeType||c)&&a(e,t,n))return!0}else for(;e=e[s];)if(1===e.nodeType||c)if(i=e[L]||(e[L]={}),u&&le(e,u))e=e[s]||e;else{if((r=i[l])&&r[0]===H&&r[1]===d)return o[2]=r[2];if((i[l]=o)[2]=a(e,t,n))return!0}return!1}}function f(i){return 1<i.length?function(e,t,n){for(var r=i.length;r--;)if(!i[r](e,t,n))return!1;return!0}:i[0]}function v(e,t,n){for(var r=0,i=t.length;r<i;r++)h(e,t[r],n);return n}function w(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function b(p,h,g,m,y,e){return m&&!m[L]&&(m=b(m)),y&&!y[L]&&(y=b(y,e)),n(function(e,t,n,r){var i,o,a,s,u=[],l=[],c=t.length,d=e||v(h||"*",n.nodeType?[n]:n,[]),f=!p||!e&&h?d:w(d,u,p,n,r);if(g?g(f,s=y||(e?p:c||m)?[]:t,n,r):s=f,m)for(i=w(s,l),m(i,[],n,r),o=i.length;o--;)(a=i[o])&&(s[l[o]]=!(f[l[o]]=a));if(e){if(y||p){if(y){for(i=[],o=s.length;o--;)(a=s[o])&&i.push(f[o]=a);y(null,s=[],i,r)}for(o=s.length;o--;)(a=s[o])&&-1<(i=y?fe.call(e,a):u[o])&&(e[i]=!(t[i]=a))}}else s=w(s===t?s.splice(c,s.length):s),y?y(null,t,s,r):q.apply(t,s)})}function p(e){for(var i,t,n,r=e.length,o=S.relative[e[0].type],a=o||S.relative[" "],s=o?1:0,u=d(function(e){return e===i},a,!0),l=d(function(e){return-1<fe.call(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!=k)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=S.relative[e[s].type])c=[d(f(c),t)];else{if((t=S.filter[e[s].type].apply(null,e[s].matches))[L]){for(n=++s;n<r&&!S.relative[e[n].type];n++);return b(1<s&&f(c),1<s&&y(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(De,"$1"),t,s<n&&p(e.slice(s,n)),n<r&&p(e=e.slice(n)),n<r&&y(e))}c.push(t)}return f(c)}function l(m,y){var v=0<y.length,b=0<m.length,e=function(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],d=[],f=k,p=e||b&&S.find.TAG("*",i),h=H+=null==f?1:Math.random()||.1,g=p.length;for(i&&(k=t==A||t||i);l!==g&&null!=(o=p[l]);l++){if(b&&o){for(a=0,t||o.ownerDocument==A||(x(o),n=!j);s=m[a++];)if(s(o,t||A,n)){q.call(r,o);break}i&&(H=h)}v&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,v&&l!==u){for(a=0;s=y[a++];)s(c,d,t,n);if(e){if(0<u)for(;l--;)c[l]||d[l]||(d[l]=ke.call(r));d=w(d)}q.apply(r,d),i&&!e&&0<d.length&&1<u+y.length&&Se.uniqueSort(r)}return i&&(H=h,k=f),c};return v?n(e):e}function T(e,t){var n,r=[],i=[],o=W[e+" "];if(!o){for(t||(t=m(e)),n=t.length;n--;)(o=p(t[n]))[L]?r.push(o):i.push(o);(o=W(e,l(i,r))).selector=e}return o}function C(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&m(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&j&&S.relative[o[1].type]){if(!(t=(S.find.ID(a.matches[0].replace(re,ie),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=K.needsContext.test(e)?0:o.length;i--&&(a=o[i],!S.relative[s=a.type]);)if((u=S.find[s])&&(r=u(a.matches[0].replace(re,ie),ne.test(o[0].type)&&g(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&y(o)))return q.apply(n,r),n;break}}return(l||T(e,c))(r,t,!j,n,!t||ne.test(e)&&g(t.parentNode)||t),n}var c,S,k,E,$,A,D,j,M,N,q=Ne,L=Se.expando,H=0,O=0,R=e(),P=e(),W=e(),F=e(),I=function(e,t){return e===t&&($=!0),0},B="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",_="(?:\\\\[\\da-fA-F]{1,6}"+Ae+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",z="\\["+Ae+"*("+_+")(?:"+Ae+"*([*^$|!~]?=)"+Ae+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+_+"))|)"+Ae+"*\\]",U=":("+_+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+z+")*)|.*)\\)|)",X=new RegExp(Ae+"+","g"),Q=new RegExp("^"+Ae+"*,"+Ae+"*"),V=new RegExp("^"+Ae+"*([>+~]|"+Ae+")"+Ae+"*"),Y=new RegExp(Ae+"|>"),J=new RegExp(U),G=new RegExp("^"+_+"$"),K={ID:new RegExp("^#("+_+")"),CLASS:new RegExp("^\\.("+_+")"),TAG:new RegExp("^("+_+"|[*])"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+U),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Ae+"*(even|odd|(([+-]|)(\\d*)n|)"+Ae+"*(?:([+-]|)"+Ae+"*(\\d+)|))"+Ae+"*\\)|)","i"),bool:new RegExp("^(?:"+B+")$","i"),needsContext:new RegExp("^"+Ae+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Ae+"*((?:-\\d)?\\d*)"+Ae+"*\\)|)(?=[^-]|$)","i")},Z=/^(?:input|select|textarea|button)$/i,ee=/^h\d$/i,te=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ne=/[+~]/,re=new RegExp("\\\\[\\da-fA-F]{1,6}"+Ae+"?|\\\\([^\\r\\n\\f])","g"),ie=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},oe=function(){x()},ae=d(function(e){return!0===e.disabled&&le(e,"fieldset")},{dir:"parentNode",next:"legend"});try{q.apply(ce=de.call(Me.childNodes),Me.childNodes),ce[Me.childNodes.length].nodeType}catch(se){q={apply:function(e,t){Ne.apply(e,de.call(t))},call:function(e){Ne.apply(e,de.call(arguments,1))}}}for(c in h.matches=function(e,t){return h(e,null,null,t)},h.matchesSelector=function(e,t){if(x(e),j&&!F[t+" "]&&(!M||!M.test(t)))try{var n=N.call(e,t);if(n||ye.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(se){F(t,!0)}return 0<h(t,A,null,[e]).length},h.contains=function(e,t){return(e.ownerDocument||e)!=A&&x(e),Se.contains(e,t)},h.attr=function(e,t){(e.ownerDocument||e)!=A&&x(e);var n=S.attrHandle[t.toLowerCase()],r=n&&he.call(S.attrHandle,t.toLowerCase())?n(e,t,!j):undefined;return r!==undefined?r:e.getAttribute(t)},h.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},Se.uniqueSort=function(e){var t,n=[],r=0,i=0;if($=!ye.sortStable,E=!ye.sortStable&&de.call(e,0),Ee.call(e,I),$){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)$e.call(e,n[r],1)}return E=null,e},Se.fn.uniqueSort=function(){return this.pushStack(Se.uniqueSort(de.apply(this)))},(S=Se.expr={cacheLength:50,createPseudo:n,match:K,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(re,ie),e[3]=(e[3]||e[4]||e[5]||"").replace(re,ie),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||h.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&h.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return K.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&J.test(n)&&(t=m(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(re,ie).toLowerCase();return"*"===e?function(){return!0}:function(e){return le(e,t)}},CLASS:function(e){var t=R[e+" "];return t||(t=new RegExp("(^|"+Ae+")"+e+"("+Ae+"|$)"))&&R(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=h.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(X," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(p,e,t,h,g){var m="nth"!==p.slice(0,3),y="last"!==p.slice(-4),v="of-type"===e;return 1===h&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u=m!==y?"nextSibling":"previousSibling",l=e.parentNode,c=v&&e.nodeName.toLowerCase(),d=!n&&!v,f=!1;if(l){if(m){for(;u;){for(o=e;o=o[u];)if(v?le(o,c):1===o.nodeType)return!1;s=u="only"===p&&!s&&"nextSibling"}return!0}if(s=[y?l.firstChild:l.lastChild],y&&d){for(f=(a=(r=(i=l[L]||(l[L]={}))[p]||[])[0]===H&&r[1])&&r[2],o=a&&l.childNodes[a];o=++a&&o&&o[u]||(f=a=0)||s.pop();)if(1===o.nodeType&&++f&&o===e){i[p]=[H,a,f];break}}else if(d&&(f=a=(r=(i=e[L]||(e[L]={}))[p]||[])[0]===H&&r[1]),!1===f)for(;(o=++a&&o&&o[u]||(f=a=0)||s.pop())&&((v?!le(o,c):1!==o.nodeType)||!++f||(d&&((i=o[L]||(o[L]={}))[p]=[H,f]),o!==e)););return(f-=g)===h||f%h==0&&0<=f/h}}},PSEUDO:function(e,o){var t,a=S.pseudos[e]||S.setFilters[e.toLowerCase()]||h.error("unsupported pseudo: "+e);return a[L]?a(o):1<a.length?(t=[e,e,"",o],S.setFilters.hasOwnProperty(e.toLowerCase())?n(function(e,t){for(var n,r=a(e,o),i=r.length;i--;)e[n=fe.call(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:n(function(e){var r=[],i=[],s=T(e.replace(De,"$1"));return s[L]?n(function(e,t,n,r){for(var i,o=s(e,null,r,[]),a=e.length;a--;)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:n(function(t){return function(e){return 0<h(t,e).length}}),contains:n(function(t){return t=t.replace(re,ie),function(e){return-1<(e.textContent||Se.text(e)).indexOf(t)}}),lang:n(function(n){return G.test(n||"")||h.error("unsupported lang: "+n),n=n.replace(re,ie).toLowerCase(),function(e){var t;do{if(t=j?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=ue.location&&ue.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===D},focus:function(e){return e===t()&&A.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:a(!1),disabled:a(!0),checked:function(e){return le(e,"input")&&!!e.checked||le(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!S.pseudos.empty(e)},header:function(e){return ee.test(e.nodeName)},input:function(e){return Z.test(e.nodeName)},button:function(e){return le(e,"input")&&"button"===e.type||le(e,"button")},
2
- text:function(e){var t;return le(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:s(function(){return[0]}),last:s(function(e,t){return[t-1]}),eq:s(function(e,t,n){return[n<0?n+t:n]}),even:s(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:s(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:s(function(e,t,n){var r;for(r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:s(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=S.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})S.pseudos[c]=i(c);for(c in{submit:!0,reset:!0})S.pseudos[c]=o(c);u.prototype=S.filters=S.pseudos,S.setFilters=new u,ye.sortStable=L.split("").sort(I).join("")===L,x(),ye.sortDetached=r(function(e){return 1&e.compareDocumentPosition(A.createElement("fieldset"))}),Se.find=h,Se.expr[":"]=Se.expr.pseudos,Se.unique=Se.uniqueSort,h.compile=T,h.select=C,h.setDocument=x,h.tokenize=m,h.escape=Se.escapeSelector,h.getText=Se.text,h.isXML=Se.isXMLDoc,h.selectors=Se.expr,h.support=Se.support,h.uniqueSort=Se.uniqueSort}();var qe=function(e,t,n){for(var r=[],i=n!==undefined;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&Se(e).is(n))break;r.push(e)}return r},Le=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},He=Se.expr.match.needsContext,Oe=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;Se.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?Se.find.matchesSelector(r,e)?[r]:[]:Se.find.matches(e,Se.grep(t,function(e){return 1===e.nodeType}))},Se.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(Se(e).filter(function(){for(t=0;t<r;t++)if(Se.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)Se.find(e,i[t],n);return 1<r?Se.uniqueSort(n):n},filter:function(e){return this.pushStack(n(this,e||[],!1))},not:function(e){return this.pushStack(n(this,e||[],!0))},is:function(e){return!!n(this,"string"==typeof e&&He.test(e)?Se(e):e||[],!1).length}});var Re,Pe=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(Se.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||Re,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):ve(e)?n.ready!==undefined?n.ready(e):e(Se):Se.makeArray(e,this);if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:Pe.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof Se?t[0]:t,Se.merge(this,Se.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:xe,!0)),Oe.test(r[1])&&Se.isPlainObject(t))for(r in t)ve(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=xe.getElementById(r[2]))&&(this[0]=i,this.length=1),this}).prototype=Se.fn,Re=Se(xe);var We=/^(?:parents|prev(?:Until|All))/,Fe={children:!0,contents:!0,next:!0,prev:!0};Se.fn.extend({has:function(e){var t=Se(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(Se.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&Se(e);if(!He.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&Se.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?Se.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?fe.call(Se(e),this[0]):fe.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(Se.uniqueSort(Se.merge(this.get(),Se(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),Se.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return qe(e,"parentNode")},parentsUntil:function(e,t,n){return qe(e,"parentNode",n)},next:function(e){return r(e,"nextSibling")},prev:function(e){return r(e,"previousSibling")},nextAll:function(e){return qe(e,"nextSibling")},prevAll:function(e){return qe(e,"previousSibling")},nextUntil:function(e,t,n){return qe(e,"nextSibling",n)},prevUntil:function(e,t,n){return qe(e,"previousSibling",n)},siblings:function(e){return Le((e.parentNode||{}).firstChild,e)},children:function(e){return Le(e.firstChild)},contents:function(e){return null!=e.contentDocument&&ie(e.contentDocument)?e.contentDocument:(le(e,"template")&&(e=e.content||e),Se.merge([],e.childNodes))}},function(r,i){Se.fn[r]=function(e,t){var n=Se.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=Se.filter(t,n)),1<this.length&&(Fe[r]||Se.uniqueSort(n),We.test(r)&&n.reverse()),this.pushStack(n)}});var Ie=/[^\x20\t\r\n\f]+/g;Se.Callbacks=function(r){r="string"==typeof r?c(r):Se.extend({},r);var i,e,t,n,o=[],a=[],s=-1,u=function(){for(n=n||r.once,t=i=!0;a.length;s=-1)for(e=a.shift();++s<o.length;)!1===o[s].apply(e[0],e[1])&&r.stopOnFalse&&(s=o.length,e=!1);r.memory||(e=!1),i=!1,n&&(o=e?[]:"")},l={add:function(){return o&&(e&&!i&&(s=o.length-1,a.push(e)),function n(e){Se.each(e,function(e,t){ve(t)?r.unique&&l.has(t)||o.push(t):t&&t.length&&"string"!==m(t)&&n(t)})}(arguments),e&&!i&&u()),this},remove:function(){return Se.each(arguments,function(e,t){for(var n;-1<(n=Se.inArray(t,o,n));)o.splice(n,1),n<=s&&s--}),this},has:function(e){return e?-1<Se.inArray(e,o):0<o.length},empty:function(){return o&&(o=[]),this},disable:function(){return n=a=[],o=e="",this},disabled:function(){return!o},lock:function(){return n=a=[],e||i||(o=e=""),this},locked:function(){return!!n},fireWith:function(e,t){return n||(t=[e,(t=t||[]).slice?t.slice():t],a.push(t),i||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!t}};return l},Se.extend({Deferred:function(e){var o=[["notify","progress",Se.Callbacks("memory"),Se.Callbacks("memory"),2],["resolve","done",Se.Callbacks("once memory"),Se.Callbacks("once memory"),0,"resolved"],["reject","fail",Se.Callbacks("once memory"),Se.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return a.then(null,e)},pipe:function(){var i=arguments;return Se.Deferred(function(r){Se.each(o,function(e,t){var n=ve(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&ve(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){function l(o,a,s,u){return function(){var n=this,r=arguments,t=function(){var e,t;if(!(o<c)){if((e=s.apply(n,r))===a.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,ve(t)?u?t.call(e,l(c,a,d,u),l(c,a,f,u)):(c++,t.call(e,l(c,a,d,u),l(c,a,f,u),l(c,a,d,a.notifyWith))):(s!==d&&(n=undefined,r=[e]),(u||a.resolveWith)(n,r))}},i=u?t:function(){try{t()}catch(e){Se.Deferred.exceptionHook&&Se.Deferred.exceptionHook(e,i.error),c<=o+1&&(s!==f&&(n=undefined,r=[e]),a.rejectWith(n,r))}};o?i():(Se.Deferred.getErrorHook?i.error=Se.Deferred.getErrorHook():Se.Deferred.getStackHook&&(i.error=Se.Deferred.getStackHook()),ue.setTimeout(i))}}var c=0;return Se.Deferred(function(e){o[0][3].add(l(0,e,ve(r)?r:d,e.notifyWith)),o[1][3].add(l(0,e,ve(t)?t:d)),o[2][3].add(l(0,e,ve(n)?n:f))}).promise()},promise:function(e){return null!=e?Se.extend(e,a):a}},s={};return Se.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?undefined:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=de.call(arguments),o=Se.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?de.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(u(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||ve(i[t]&&i[t].then)))return o.then();for(;t--;)u(i[t],a(t),o.reject);return o.promise()}});var Be=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;Se.Deferred.exceptionHook=function(e,t){ue.console&&ue.console.warn&&e&&Be.test(e.name)&&ue.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},Se.readyException=function(e){ue.setTimeout(function(){throw e})};var _e=Se.Deferred();Se.fn.ready=function(e){return _e.then(e)["catch"](function(e){Se.readyException(e)}),this},Se.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--Se.readyWait:Se.isReady)||(Se.isReady=!0)!==e&&0<--Se.readyWait||_e.resolveWith(xe,[Se])}}),Se.ready.then=_e.then,"complete"===xe.readyState||"loading"!==xe.readyState&&!xe.documentElement.doScroll?ue.setTimeout(Se.ready):(xe.addEventListener("DOMContentLoaded",i),ue.addEventListener("load",i));var ze=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===m(n))for(s in i=!0,n)ze(e,t,s,n[s],!0,o,a);else if(r!==undefined&&(i=!0,ve(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(Se(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},Ue=/^-ms-/,Xe=/-([a-z])/g,Qe=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};a.uid=1,a.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Qe(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[p(t)]=n;else for(r in t)i[p(r)]=t[r];return i},get:function(e,t){return t===undefined?this.cache(e):e[this.expando]&&e[this.expando][p(t)]},access:function(e,t,n){return t===undefined||t&&"string"==typeof t&&n===undefined?this.get(e,t):(this.set(e,t,n),n!==undefined?n:t)},remove:function(e,t){var n,r=e[this.expando];if(r!==undefined){if(t!==undefined){n=(t=Array.isArray(t)?t.map(p):(t=p(t))in r?[t]:t.match(Ie)||[]).length;for(;n--;)delete r[t[n]]}(t===undefined||Se.isEmptyObject(r))&&(e.nodeType?e[this.expando]=undefined:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return t!==undefined&&!Se.isEmptyObject(t)}};var Ve=new a,Ye=new a,Je=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ge=/[A-Z]/g;Se.extend({hasData:function(e){return Ye.hasData(e)||Ve.hasData(e)},data:function(e,t,n){return Ye.access(e,t,n)},removeData:function(e,t){Ye.remove(e,t)},_data:function(e,t,n){return Ve.access(e,t,n)},_removeData:function(e,t){Ve.remove(e,t)}}),Se.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(n!==undefined)return"object"==typeof n?this.each(function(){Ye.set(this,n)}):ze(this,function(e){var t;if(o&&e===undefined)return(t=Ye.get(o,n))!==undefined?t:(t=h(o,n))!==undefined?t:void 0;this.each(function(){Ye.set(this,n,e)})},null,e,1<arguments.length,null,!0);if(this.length&&(i=Ye.get(o),1===o.nodeType&&!Ve.get(o,"hasDataAttrs"))){for(t=a.length;t--;)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=p(r.slice(5)),h(o,r,i[r]));Ve.set(o,"hasDataAttrs",!0)}return i},removeData:function(e){return this.each(function(){Ye.remove(this,e)})}}),Se.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Ve.get(e,t),n&&(!r||Array.isArray(n)?r=Ve.access(e,t,Se.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=Se.queue(e,t),r=n.length,i=n.shift(),o=Se._queueHooks(e,t),a=function(){Se.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Ve.get(e,n)||Ve.access(e,n,{empty:Se.Callbacks("once memory").add(function(){Ve.remove(e,[t+"queue",n])})})}}),Se.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?Se.queue(this[0],t):n===undefined?this:this.each(function(){var e=Se.queue(this,t,n);Se._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&Se.dequeue(this,t)})},dequeue:function(e){return this.each(function(){Se.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=Se.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=undefined),e=e||"fx";a--;)(n=Ve.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var Ke=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ze=new RegExp("^(?:([+-])=|)("+Ke+")([a-z%]*)$","i"),et=["Top","Right","Bottom","Left"],tt=xe.documentElement,nt=function(e){return Se.contains(e.ownerDocument,e)},rt={composed:!0};tt.getRootNode&&(nt=function(e){return Se.contains(e.ownerDocument,e)||e.getRootNode(rt)===e.ownerDocument});var it=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&nt(e)&&"none"===Se.css(e,"display")},ot={};Se.fn.extend({show:function(){return b(this,!0)},hide:function(){return b(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){it(this)?Se(this).show():Se(this).hide()})}});var at,st,ut=/^(?:checkbox|radio)$/i,lt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ct=/^$|^module$|\/(?:java|ecma)script/i;at=xe.createDocumentFragment().appendChild(xe.createElement("div")),(st=xe.createElement("input")).setAttribute("type","radio"),st.setAttribute("checked","checked"),st.setAttribute("name","t"),at.appendChild(st),ye.checkClone=at.cloneNode(!0).cloneNode(!0).lastChild.checked,at.innerHTML="<textarea>x</textarea>",ye.noCloneChecked=!!at.cloneNode(!0).lastChild.defaultValue,at.innerHTML="<option></option>",ye.option=!!at.lastChild;var dt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};dt.tbody=dt.tfoot=dt.colgroup=dt.caption=dt.thead,dt.th=dt.td,ye.option||(dt.optgroup=dt.option=[1,"<select multiple='multiple'>","</select>"]);var ft=/<|&#?\w+;/,pt=/^([^.]*)(?:\.(.+)|)/;Se.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,d,f,p,h,g,m=Ve.get(t);if(Qe(t))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&Se.find.matchesSelector(tt,i),n.guid||(n.guid=Se.guid++),(u=m.events)||(u=m.events=Object.create(null)),(a=m.handle)||(a=m.handle=function(e){return void 0!==Se&&Se.event.triggered!==e.type?Se.event.dispatch.apply(t,arguments):undefined}),l=(e=(e||"").match(Ie)||[""]).length;l--;)p=g=(s=pt.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),p&&(d=Se.event.special[p]||{},p=(i?d.delegateType:d.bindType)||p,d=Se.event.special[p]||{},c=Se.extend({type:p,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&Se.expr.match.needsContext.test(i),namespace:h.join(".")},o),(f=u[p])||((f=u[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(p,a)),d.add&&(d.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,c):f.push(c),Se.event.global[p]=!0)},remove:function(e,t,n,r,i){var o,a,s,u,l,c,d,f,p,h,g,m=Ve.hasData(e)&&Ve.get(e);if(m&&(u=m.events)){for(l=(t=(t||"").match(Ie)||[""]).length;l--;)if(p=g=(s=pt.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),p){for(d=Se.event.special[p]||{},f=u[p=(r?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=f.length;o--;)c=f[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(f.splice(o,1),c.selector&&f.delegateCount--,d.remove&&d.remove.call(e,c));a&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,h,m.handle)||Se.removeEvent(e,p,m.handle),delete u[p])}else for(p in u)Se.event.remove(e,p+t[l],n,r,!0);Se.isEmptyObject(u)&&Ve.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=Se.event.fix(e),l=(Ve.get(this,"events")||Object.create(null))[u.type]||[],c=Se.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){for(a=Se.event.handlers.call(this,u,l),t=0;(i=a[t++])&&!u.isPropagationStopped();)for(u.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!u.isImmediatePropagationStopped();)u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,(r=((Se.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))!==undefined&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)a[i=(r=t[n]).selector+" "]===undefined&&(a[i]=r.needsContext?-1<Se(i,this).index(l):Se.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(Se.Event.prototype,t,{enumerable:!0,configurable:!0,get:ve(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[Se.expando]?e:new Se.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return ut.test(t.type)&&t.click&&le(t,"input")&&E(t,"click",!0),!1},trigger:function(e){var t=this||e;return ut.test(t.type)&&t.click&&le(t,"input")&&E(t,"click"),!0},_default:function(e){var t=e.target;return ut.test(t.type)&&t.click&&le(t,"input")&&Ve.get(t,"click")||le(t,"a")}},beforeunload:{postDispatch:function(e){e.result!==undefined&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},Se.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},Se.Event=function(e,t){if(!(this instanceof Se.Event))return new Se.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.defaultPrevented===undefined&&!1===e.returnValue?C:S,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&Se.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[Se.expando]=!0},Se.Event.prototype={constructor:Se.Event,isDefaultPrevented:S,isPropagationStopped:S,isImmediatePropagationStopped:S,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=C,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=C,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=C,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},Se.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},Se.event.addProp),Se.each({focus:"focusin",blur:"focusout"},function(r,i){function o(e){if(xe.documentMode){var t=Ve.get(this,"handle"),n=Se.event.fix(e);n.type="focusin"===e.type?"focus":"blur",n.isSimulated=!0,t(e),n.target===n.currentTarget&&t(n)}else Se.event.simulate(i,e.target,Se.event.fix(e))}Se.event.special[r]={setup:function(){var e;if(E(this,r,!0),!xe.documentMode)return!1;(e=Ve.get(this,i))||this.addEventListener(i,o),Ve.set(this,i,(e||0)+1)},trigger:function(){return E(this,r),!0},teardown:function(){var e;if(!xe.documentMode)return!1;(e=Ve.get(this,i)-1)?Ve.set(this,i,e):(this.removeEventListener(i,o),Ve.remove(this,i))},_default:function(e){return Ve.get(e.target,r)},delegateType:i},Se.event.special[i]={setup:function(){var e=this.ownerDocument||this.document||this,t=xe.documentMode?this:e,n=Ve.get(t,i);n||(xe.documentMode?this.addEventListener(i,o):e.addEventListener(r,o,!0)),Ve.set(t,i,(n||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=xe.documentMode?this:e,n=Ve.get(t,i)-1;n?Ve.set(t,i,n):(xe.documentMode?this.removeEventListener(i,o):e.removeEventListener(r,o,!0),Ve.remove(t,i))}}}),Se.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,o){Se.event.special[e]={delegateType:o,bindType:o,handle:function(e){var t,n=this,r=e.relatedTarget,i=e.handleObj;return r&&(r===n||Se.contains(n,r))||(e.type=i.origType,t=i.handler.apply(this,arguments),e.type=o),t}}}),Se.fn.extend({on:function(e,t,n,r){return k(this,e,t,n,r)},one:function(e,t,n,r){return k(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,Se(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=undefined),!1===n&&(n=S),this.each(function(){Se.event.remove(this,e,n,t)});for(i in e)this.off(i,t,e[i]);return this}});var ht=/<script|<style|<link/i,gt=/checked\s*(?:[^=]|=\s*.checked.)/i,mt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;Se.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),u=nt(e);if(!(ye.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||Se.isXMLDoc(e)))for(a=x(s),r=0,i=(o=x(e)).length;r<i;r++)M(o[r],a[r]);if(t)if(n)for(o=o||x(e),a=a||x(s),r=0,i=o.length;r<i;r++)j(o[r],a[r]);else j(e,s);return 0<(a=x(s,"script")).length&&w(a,!u&&x(e,"script")),s},cleanData:function(e){for(var t,n,r,i=Se.event.special,o=0;(n=e[o])!==undefined;o++)if(Qe(n)){if(t=n[Ve.expando]){if(t.events)for(r in t.events)i[r]?Se.event.remove(n,r):Se.removeEvent(n,r,t.handle);n[Ve.expando]=undefined}n[Ye.expando]&&(n[Ye.expando]=undefined)}}}),Se.fn.extend({detach:function(e){return q(this,e,!0)},remove:function(e){return q(this,e)},text:function(e){return ze(this,function(e){return e===undefined?Se.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return N(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||$(this,e).appendChild(e)})},prepend:function(){return N(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=$(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return N(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return N(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(Se.cleanData(x(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return Se.clone(this,e,t)})},html:function(e){return ze(this,function(e){var t=this[0]||{},n=0,r=this.length;if(e===undefined&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ht.test(e)&&!dt[(lt.exec(e)||["",""])[1].toLowerCase()]){e=Se.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(Se.cleanData(x(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return N(this,arguments,function(e){var t=this.parentNode;Se.inArray(this,n)<0&&(Se.cleanData(x(this)),t&&t.replaceChild(e,this))},n)}}),Se.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){Se.fn[e]=function(e){for(var t,n=[],r=Se(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),Se(r[o])[a](t),ae.apply(n,t.get());return this.pushStack(n)}});var yt=new RegExp("^("+Ke+")(?!px)[a-z%]+$","i"),vt=/^--/,bt=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=ue),t.getComputedStyle(e)},xt=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},wt=new RegExp(et.join("|"),"i");!function(){function e(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",tt.appendChild(u).appendChild(l);var e=ue.getComputedStyle(l);n="1%"!==e.top,s=12===t(e.marginLeft),l.style.right="60%",o=36===t(e.right),r=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),tt.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s,u=xe.createElement("div"),l=xe.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",ye.clearCloneStyle="content-box"===l.style.backgroundClip,Se.extend(ye,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=xe.createElement("table"),t=xe.createElement("tr"),n=xe.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",tt.appendChild(e).appendChild(t).appendChild(n),r=ue.getComputedStyle(t),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,tt.removeChild(e)),a}}))}();var Tt=["Webkit","Moz","ms"],Ct=xe.createElement("div").style,St={},kt=/^(none|table(?!-c[ea]).+)/,Et={position:"absolute",visibility:"hidden",display:"block"},$t={letterSpacing:"0",fontWeight:"400"};Se.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=L(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=p(t),u=vt.test(t),l=e.style;if(u||(t=R(s)),a=Se.cssHooks[t]||Se.cssHooks[s],n===undefined)return a&&"get"in a&&(i=a.get(e,!1,r))!==undefined?i:l[t];"string"===(o=typeof n)&&(i=Ze.exec(n))&&i[1]&&(n=y(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(Se.cssNumber[s]?"":"px")),ye.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&(n=a.set(e,n,r))===undefined||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=p(t);return vt.test(t)||(t=R(s)),(a=Se.cssHooks[t]||Se.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),i===undefined&&(i=L(e,t,r)),"normal"===i&&t in $t&&(i=$t[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),Se.each(["height","width"],function(e,u){Se.cssHooks[u]={get:function(e,t,n){if(t)return!kt.test(Se.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?F(e,u,n):xt(e,Et,function(){return F(e,u,n)})},set:function(e,t,n){var r,i=bt(e),o=!ye.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===Se.css(e,"boxSizing",!1,i),s=n?W(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-W(e,u,"border",!1,i)-.5)),s&&(r=Ze.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=Se.css(e,u)),P(e,t,s)}}}),Se.cssHooks.marginLeft=H(ye.reliableMarginLeft,function(e,t){if(t)return(parseFloat(L(e,"marginLeft"))||e.getBoundingClientRect().left-xt(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),Se.each({margin:"",padding:"",border:"Width"},function(i,o){Se.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+et[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(Se.cssHooks[i+o].set=P)}),Se.fn.extend({css:function(e,t){return ze(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=bt(e),i=t.length;a<i;a++)o[t[a]]=Se.css(e,t[a],!1,r);return o}return n!==undefined?Se.style(e,t,n):Se.css(e,t)},e,t,1<arguments.length)}}),(Se.Tween=I).prototype={constructor:I,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||Se.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(Se.cssNumber[n]?"":"px")},cur:function(){var e=I.propHooks[this.prop];return e&&e.get?e.get(this):I.propHooks._default.get(this)},run:function(e){var t,n=I.propHooks[this.prop];return this.options.duration?this.pos=t=Se.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):I.propHooks._default.set(this),this}},I.prototype.init.prototype=I.prototype,I.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=Se.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){Se.fx.step[e.prop]?Se.fx.step[e.prop](e):1!==e.elem.nodeType||!Se.cssHooks[e.prop]&&null==e.elem.style[R(e.prop)]?e.elem[e.prop]=e.now:Se.style(e.elem,e.prop,e.now+e.unit)}}},I.propHooks.scrollTop=I.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},Se.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},Se.fx=I.prototype.init,Se.fx.step={};var At,Dt,jt,Mt,Nt=/^(?:toggle|show|hide)$/,qt=/queueHooks$/;Se.Animation=Se.extend(V,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return y(n.elem,e,Ze.exec(t),n),n}]},tweener:function(e,t){ve(e)?(t=e,e=["*"]):e=e.match(Ie);for(var n,r=0,i=e.length;r<i;r++)n=e[r],V.tweeners[n]=V.tweeners[n]||[],V.tweeners[n].unshift(t)},prefilters:[X],prefilter:function(e,t){t?V.prefilters.unshift(e):V.prefilters.push(e)}}),Se.speed=function(e,t,n){var r=e&&"object"==typeof e?Se.extend({},e):{complete:n||!n&&t||ve(e)&&e,duration:e,easing:n&&t||t&&!ve(t)&&t};return Se.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in Se.fx.speeds?r.duration=Se.fx.speeds[r.duration]:r.duration=Se.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){ve(r.old)&&r.old.call(this),r.queue&&Se.dequeue(this,r.queue)},r},Se.fn.extend({fadeTo:function(e,t,n,r){return this.filter(it).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=Se.isEmptyObject(t),o=Se.speed(e,n,r),a=function(){var e=V(this,Se.extend({},t),o);(i||Ve.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=undefined),e&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=Se.timers,r=Ve.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&qt.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||Se.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=Ve.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=Se.timers,o=n?n.length:0;for(t.finish=!0,Se.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),Se.each(["toggle","show","hide"],function(e,r){var i=Se.fn[r];Se.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(z(r,!0),e,t,n)}}),Se.each({slideDown:z("show"),slideUp:z("hide"),slideToggle:z("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){Se.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),Se.timers=[],Se.fx.tick=function(){var e,t=0,n=Se.timers;for(At=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||Se.fx.stop(),At=undefined},Se.fx.timer=function(e){Se.timers.push(e),Se.fx.start()},Se.fx.interval=13,Se.fx.start=function(){Dt||(Dt=!0,B())},Se.fx.stop=function(){Dt=null},Se.fx.speeds={slow:600,fast:200,_default:400},Se.fn.delay=function(r,e){return r=Se.fx&&Se.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=ue.setTimeout(e,r);t.stop=function(){ue.clearTimeout(n)}})},
3
- jt=xe.createElement("input"),Mt=xe.createElement("select").appendChild(xe.createElement("option")),jt.type="checkbox",ye.checkOn=""!==jt.value,ye.optSelected=Mt.selected,(jt=xe.createElement("input")).value="t",jt.type="radio",ye.radioValue="t"===jt.value;var Lt,Ht=Se.expr.attrHandle;Se.fn.extend({attr:function(e,t){return ze(this,Se.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){Se.removeAttr(this,e)})}}),Se.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?Se.prop(e,t,n):(1===o&&Se.isXMLDoc(e)||(i=Se.attrHooks[t.toLowerCase()]||(Se.expr.match.bool.test(t)?Lt:undefined)),n!==undefined?null===n?void Se.removeAttr(e,t):i&&"set"in i&&(r=i.set(e,n,t))!==undefined?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=Se.find.attr(e,t))?undefined:r)},attrHooks:{type:{set:function(e,t){if(!ye.radioValue&&"radio"===t&&le(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(Ie);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),Lt={set:function(e,t,n){return!1===t?Se.removeAttr(e,n):e.setAttribute(n,n),n}},Se.each(Se.expr.match.bool.source.match(/\w+/g),function(e,t){var a=Ht[t]||Se.find.attr;Ht[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=Ht[o],Ht[o]=r,r=null!=a(e,t,n)?o:null,Ht[o]=i),r}});var Ot=/^(?:input|select|textarea|button)$/i,Rt=/^(?:a|area)$/i;Se.fn.extend({prop:function(e,t){return ze(this,Se.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[Se.propFix[e]||e]})}}),Se.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&Se.isXMLDoc(e)||(t=Se.propFix[t]||t,i=Se.propHooks[t]),n!==undefined?i&&"set"in i&&(r=i.set(e,n,t))!==undefined?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=Se.find.attr(e,"tabindex");return t?parseInt(t,10):Ot.test(e.nodeName)||Rt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),ye.optSelected||(Se.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),Se.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){Se.propFix[this.toLowerCase()]=this}),Se.fn.extend({addClass:function(t){var e,n,r,i,o,a;return ve(t)?this.each(function(e){Se(this).addClass(t.call(this,e,J(this)))}):(e=G(t)).length?this.each(function(){if(r=J(this),n=1===this.nodeType&&" "+Y(r)+" "){for(o=0;o<e.length;o++)i=e[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=Y(n),r!==a&&this.setAttribute("class",a)}}):this},removeClass:function(t){var e,n,r,i,o,a;return ve(t)?this.each(function(e){Se(this).removeClass(t.call(this,e,J(this)))}):arguments.length?(e=G(t)).length?this.each(function(){if(r=J(this),n=1===this.nodeType&&" "+Y(r)+" "){for(o=0;o<e.length;o++)for(i=e[o];-1<n.indexOf(" "+i+" ");)n=n.replace(" "+i+" "," ");a=Y(n),r!==a&&this.setAttribute("class",a)}}):this:this.attr("class","")},toggleClass:function(t,n){var e,r,i,o,a=typeof t,s="string"===a||Array.isArray(t);return ve(t)?this.each(function(e){Se(this).toggleClass(t.call(this,e,J(this),n),n)}):"boolean"==typeof n&&s?n?this.addClass(t):this.removeClass(t):(e=G(t),this.each(function(){if(s)for(o=Se(this),i=0;i<e.length;i++)r=e[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else t!==undefined&&"boolean"!==a||((r=J(this))&&Ve.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===t?"":Ve.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&-1<(" "+Y(J(n))+" ").indexOf(t))return!0;return!1}});var Pt=/\r/g;Se.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=ve(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,Se(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=Se.map(t,function(e){return null==e?"":e+""})),(r=Se.valHooks[this.type]||Se.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&r.set(this,t,"value")!==undefined||(this.value=t))})):t?(r=Se.valHooks[t.type]||Se.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&(e=r.get(t,"value"))!==undefined?e:"string"==typeof(e=t.value)?e.replace(Pt,""):null==e?"":e:void 0}}),Se.extend({valHooks:{option:{get:function(e){var t=Se.find.attr(e,"value");return null!=t?t:Y(Se.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!le(n.parentNode,"optgroup"))){if(t=Se(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=Se.makeArray(t),a=i.length;a--;)((r=i[a]).selected=-1<Se.inArray(Se.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),Se.each(["radio","checkbox"],function(){Se.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<Se.inArray(Se(e).val(),t)}},ye.checkOn||(Se.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Wt=ue.location,Ft={guid:Date.now()},It=/\?/;Se.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new ue.DOMParser).parseFromString(e,"text/xml")}catch(r){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||Se.error("Invalid XML: "+(n?Se.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Bt=/^(?:focusinfocus|focusoutblur)$/,_t=function(e){e.stopPropagation()};Se.extend(Se.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,d,f=[n||xe],p=he.call(e,"type")?e.type:e,h=he.call(e,"namespace")?e.namespace.split("."):[];if(o=d=a=n=n||xe,3!==n.nodeType&&8!==n.nodeType&&!Bt.test(p+Se.event.triggered)&&(-1<p.indexOf(".")&&(p=(h=p.split(".")).shift(),h.sort()),u=p.indexOf(":")<0&&"on"+p,(e=e[Se.expando]?e:new Se.Event(p,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=undefined,e.target||(e.target=n),t=null==t?[e]:Se.makeArray(t,[e]),c=Se.event.special[p]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!be(n)){for(s=c.delegateType||p,Bt.test(s+p)||(o=o.parentNode);o;o=o.parentNode)f.push(o),a=o;a===(n.ownerDocument||xe)&&f.push(a.defaultView||a.parentWindow||ue)}for(i=0;(o=f[i++])&&!e.isPropagationStopped();)d=o,e.type=1<i?s:c.bindType||p,(l=(Ve.get(o,"events")||Object.create(null))[e.type]&&Ve.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&Qe(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=p,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(f.pop(),t)||!Qe(n)||u&&ve(n[p])&&!be(n)&&((a=n[u])&&(n[u]=null),Se.event.triggered=p,e.isPropagationStopped()&&d.addEventListener(p,_t),n[p](),e.isPropagationStopped()&&d.removeEventListener(p,_t),Se.event.triggered=undefined,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=Se.extend(new Se.Event,n,{type:e,isSimulated:!0});Se.event.trigger(r,null,t)}}),Se.fn.extend({trigger:function(e,t){return this.each(function(){Se.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return Se.event.trigger(e,t,n,!0)}});var zt=/\[\]$/,Ut=/\r?\n/g,Xt=/^(?:submit|button|image|reset|file)$/i,Qt=/^(?:input|select|textarea|keygen)/i;Se.param=function(e,t){var n,r=[],i=function(e,t){var n=ve(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!Se.isPlainObject(e))Se.each(e,function(){i(this.name,this.value)});else for(n in e)K(n,e[n],t,i);return r.join("&")},Se.fn.extend({serialize:function(){return Se.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=Se.prop(this,"elements");return e?Se.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!Se(this).is(":disabled")&&Qt.test(this.nodeName)&&!Xt.test(e)&&(this.checked||!ut.test(e))}).map(function(e,t){var n=Se(this).val();return null==n?null:Array.isArray(n)?Se.map(n,function(e){return{name:t.name,value:e.replace(Ut,"\r\n")}}):{name:t.name,value:n.replace(Ut,"\r\n")}}).get()}});var Vt=/%20/g,Yt=/#.*$/,Jt=/([?&])_=[^&]*/,Gt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Kt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Zt=/^(?:GET|HEAD)$/,en=/^\/\//,tn={},nn={},rn="*/".concat("*"),on=xe.createElement("a");on.href=Wt.href,Se.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Wt.href,type:"GET",isLocal:Kt.test(Wt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":rn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":Se.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?te(te(e,Se.ajaxSettings),t):te(Se.ajaxSettings,e)},ajaxPrefilter:Z(tn),ajaxTransport:Z(nn),ajax:function(e,t){function n(e,t,n,r){var i,o,a,s,u,l=t;h||(h=!0,p&&ue.clearTimeout(p),c=undefined,f=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=ne(m,T,n)),!i&&-1<Se.inArray("script",m.dataTypes)&&Se.inArray("json",m.dataTypes)<0&&(m.converters["text script"]=function(){}),s=re(m,s,T,i),i?(m.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(Se.lastModified[d]=u),(u=T.getResponseHeader("etag"))&&(Se.etag[d]=u)),204===e||"HEAD"===m.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?b.resolveWith(y,[o,l,T]):b.rejectWith(y,[T,l,a]),T.statusCode(w),w=undefined,g&&v.trigger(i?"ajaxSuccess":"ajaxError",[T,m,i?o:a]),x.fireWith(y,[T,l]),g&&(v.trigger("ajaxComplete",[T,m]),--Se.active||Se.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=undefined),t=t||{};var c,d,f,r,p,i,h,g,o,a,m=Se.ajaxSetup({},t),y=m.context||m,v=m.context&&(y.nodeType||y.jquery)?Se(y):Se.event,b=Se.Deferred(),x=Se.Callbacks("once memory"),w=m.statusCode||{},s={},u={},l="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!r)for(r={};t=Gt.exec(f);)r[t[1].toLowerCase()+" "]=(r[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=r[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?f:null},setRequestHeader:function(e,t){return null==h&&(e=u[e.toLowerCase()]=u[e.toLowerCase()]||e,s[e]=t),this},overrideMimeType:function(e){return null==h&&(m.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||l;return c&&c.abort(t),n(0,t),this}};if(b.promise(T),m.url=((e||m.url||Wt.href)+"").replace(en,Wt.protocol+"//"),m.type=t.method||t.type||m.method||m.type,m.dataTypes=(m.dataType||"*").toLowerCase().match(Ie)||[""],null==m.crossDomain){i=xe.createElement("a");try{i.href=m.url,i.href=i.href,m.crossDomain=on.protocol+"//"+on.host!=i.protocol+"//"+i.host}catch(C){m.crossDomain=!0}}if(m.data&&m.processData&&"string"!=typeof m.data&&(m.data=Se.param(m.data,m.traditional)),ee(tn,m,t,T),h)return T;for(o in(g=Se.event&&m.global)&&0==Se.active++&&Se.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!Zt.test(m.type),d=m.url.replace(Yt,""),m.hasContent?m.data&&m.processData&&0===(m.contentType||"").indexOf("application/x-www-form-urlencoded")&&(m.data=m.data.replace(Vt,"+")):(a=m.url.slice(d.length),m.data&&(m.processData||"string"==typeof m.data)&&(d+=(It.test(d)?"&":"?")+m.data,delete m.data),!1===m.cache&&(d=d.replace(Jt,"$1"),a=(It.test(d)?"&":"?")+"_="+Ft.guid+++a),m.url=d+a),m.ifModified&&(Se.lastModified[d]&&T.setRequestHeader("If-Modified-Since",Se.lastModified[d]),Se.etag[d]&&T.setRequestHeader("If-None-Match",Se.etag[d])),(m.data&&m.hasContent&&!1!==m.contentType||t.contentType)&&T.setRequestHeader("Content-Type",m.contentType),T.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+rn+"; q=0.01":""):m.accepts["*"]),m.headers)T.setRequestHeader(o,m.headers[o]);if(m.beforeSend&&(!1===m.beforeSend.call(y,T,m)||h))return T.abort();if(l="abort",x.add(m.complete),T.done(m.success),T.fail(m.error),c=ee(nn,m,t,T)){if(T.readyState=1,g&&v.trigger("ajaxSend",[T,m]),h)return T;m.async&&0<m.timeout&&(p=ue.setTimeout(function(){T.abort("timeout")},m.timeout));try{h=!1,c.send(s,n)}catch(C){if(h)throw C;n(-1,C)}}else n(-1,"No Transport");return T},getJSON:function(e,t,n){return Se.get(e,t,n,"json")},getScript:function(e,t){return Se.get(e,undefined,t,"script")}}),Se.each(["get","post"],function(e,i){Se[i]=function(e,t,n,r){return ve(t)&&(r=r||n,n=t,t=undefined),Se.ajax(Se.extend({url:e,type:i,dataType:r,data:t,success:n},Se.isPlainObject(e)&&e))}}),Se.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),Se._evalUrl=function(e,t,n){return Se.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){Se.globalEval(e,t,n)}})},Se.fn.extend({wrapAll:function(e){var t;return this[0]&&(ve(e)&&(e=e.call(this[0])),t=Se(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return ve(n)?this.each(function(e){Se(this).wrapInner(n.call(this,e))}):this.each(function(){var e=Se(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=ve(t);return this.each(function(e){Se(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){Se(this).replaceWith(this.childNodes)}),this}}),Se.expr.pseudos.hidden=function(e){return!Se.expr.pseudos.visible(e)},Se.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},Se.ajaxSettings.xhr=function(){try{return new ue.XMLHttpRequest}catch(e){}};var an={0:200,1223:204},sn=Se.ajaxSettings.xhr();ye.cors=!!sn&&"withCredentials"in sn,ye.ajax=sn=!!sn,Se.ajaxTransport(function(o){var a,s;if(ye.cors||sn&&!o.crossDomain)return{send:function(e,t){var n,r=o.xhr();if(r.open(o.type,o.url,o.async,o.username,o.password),o.xhrFields)for(n in o.xhrFields)r[n]=o.xhrFields[n];for(n in o.mimeType&&r.overrideMimeType&&r.overrideMimeType(o.mimeType),o.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);a=function(e){return function(){a&&(a=s=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(an[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=a(),s=r.onerror=r.ontimeout=a("error"),r.onabort!==undefined?r.onabort=s:r.onreadystatechange=function(){4===r.readyState&&ue.setTimeout(function(){a&&s()})},a=a("abort");try{r.send(o.hasContent&&o.data||null)}catch(i){if(a)throw i}},abort:function(){a&&a()}}}),Se.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),Se.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return Se.globalEval(e),e}}}),Se.ajaxPrefilter("script",function(e){e.cache===undefined&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),Se.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=Se("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),xe.head.appendChild(r[0])},abort:function(){i&&i()}}});var un,ln=[],cn=/(=)\?(?=&|$)|\?\?/;Se.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=ln.pop()||Se.expando+"_"+Ft.guid++;return this[e]=!0,e}}),Se.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(cn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&cn.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=ve(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(cn,"$1"+r):!1!==e.jsonp&&(e.url+=(It.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||Se.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=ue[r],ue[r]=function(){o=arguments},n.always(function(){i===undefined?Se(ue).removeProp(r):ue[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,ln.push(r)),o&&ve(i)&&i(o[0]),o=i=undefined}),"script"}),ye.createHTMLDocument=((un=xe.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===un.childNodes.length),Se.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(ye.createHTMLDocument?((r=(t=xe.implementation.createHTMLDocument("")).createElement("base")).href=xe.location.href,t.head.appendChild(r)):t=xe),o=!n&&[],(i=Oe.exec(e))?[t.createElement(i[1])]:(i=T([e],t,o),o&&o.length&&Se(o).remove(),Se.merge([],i.childNodes)));var r,i,o},Se.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=Y(e.slice(s)),e=e.slice(0,s)),ve(t)?(n=t,t=undefined):t&&"object"==typeof t&&(i="POST"),0<a.length&&Se.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?Se("<div>").append(Se.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},Se.expr.pseudos.animated=function(t){return Se.grep(Se.timers,function(e){return t===e.elem}).length},Se.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=Se.css(e,"position"),c=Se(e),d={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=Se.css(e,"top"),u=Se.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),ve(t)&&(t=t.call(e,n,Se.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):c.css(d)}},Se.fn.extend({offset:function(t){if(arguments.length)return t===undefined?this:this.each(function(e){Se.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===Se.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===Se.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=Se(e).offset()).top+=Se.css(e,"borderTopWidth",!0),i.left+=Se.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-Se.css(r,"marginTop",!0),left:t.left-i.left-Se.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===Se.css(e,"position");)e=e.offsetParent;return e||tt})}}),Se.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;Se.fn[t]=function(e){return ze(this,function(e,t,n){var r;if(be(e)?r=e:9===e.nodeType&&(r=e.defaultView),n===undefined)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),Se.each(["top","left"],function(e,n){Se.cssHooks[n]=H(ye.pixelPosition,function(e,t){if(t)return t=L(e,n),yt.test(t)?Se(e).position()[n]+"px":t})}),Se.each({Height:"height",Width:"width"},function(a,s){Se.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){Se.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return ze(this,function(e,t,n){var r;return be(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):n===undefined?Se.css(e,t,i):Se.style(e,t,n,i)},s,n?e:undefined,n)}})}),Se.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){Se.fn[t]=function(e){return this.on(t,e)}}),Se.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),Se.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){Se.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var dn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;Se.proxy=function(e,t){var n,r,i;return"string"==typeof t&&(n=e[t],t=e,e=n),ve(e)?(r=de.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(de.call(arguments)))}).guid=e.guid=e.guid||Se.guid++,i):undefined},Se.holdReady=function(e){e?Se.readyWait++:Se.ready(!0)},Se.isArray=Array.isArray,Se.parseJSON=JSON.parse,Se.nodeName=le,Se.isFunction=ve,Se.isWindow=be,Se.camelCase=p,Se.type=m,Se.now=Date.now,Se.isNumeric=function(e){var t=Se.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},Se.trim=function(e){return null==e?"":(e+"").replace(dn,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return Se});var fn=ue.jQuery,pn=ue.$;return Se.noConflict=function(e){return ue.$===Se&&(ue.$=pn),e&&ue.jQuery===Se&&(ue.jQuery=fn),Se},void 0===e&&(ue.jQuery=ue.$=Se),Se}),function(){function e(e){this.icon=e,this.opacity=.4,this.canvas=document.createElement("canvas"),this.font="Helvetica, Arial, sans-serif"}function r(e){return e=Math.round(e),isNaN(e)||e<1?"":e<10?" "+e:99<e?"99":e}function i(e,t,n,r,i){var o,a,s,u,l,c,d,f=document.getElementsByTagName("head")[0],p=document.createElement("link");p.rel="icon",a=11*(o=r.width/16),l=11*(u=o),d=2*(c=o),e.height=e.width=r.width,(s=e.getContext("2d")).font="bold "+a+"px "+n,i&&(s.globalAlpha=t),s.drawImage(r,0,0),s.globalAlpha=1,s.shadowColor="#FFF",s.shadowBlur=d,s.shadowOffsetX=0,s.shadowOffsetY=0,s.fillStyle="#FFF",s.fillText(i,u,l),s.fillText(i,u+c,l),s.fillText(i,u,l+c),s.fillText(i,u+c,l+c),s.fillStyle="#000",s.fillText(i,u+c/2,l+c/2),p.href=e.toDataURL("image/png"),f.removeChild(document.querySelector("link[rel=icon]")),f.appendChild(p)}e.prototype.set=function(e){var t=this,n=document.createElement("img");t.canvas.getContext&&(n.crossOrigin="anonymous",n.onload=function(){i(t.canvas,t.opacity,t.font,n,r(e))},n.src=this.icon)},this.Favcount=e}.call(this),function(){Favcount.VERSION="1.5.0"}.call(this),function(){var e,c=function(e,t){return function(){return e.apply(t,arguments)}};jQuery.expr.pseudos.icontains=function(e,t,n){var r,i;return 0<=(null!=(r=null!=(i=e.textContent)?i:e.innerText)?r:"").toUpperCase().indexOf(n[3].toUpperCase())},e=function(){function e(){var t,n,r,e,i,o,a,s,u,l;this.nextTab=c(this.nextTab,this),this.previousTab=c(this.previousTab,this),this.openTab=c(this.openTab,this),this.selectedTab=c(this.selectedTab,this),this.getTab=c(this.getTab,this),$("#messages").on("click","tr",(t=this,function(e){return e.preventDefault(),t.loadMessage($(e.currentTarget).attr("data-message-id"))})),$("input[name=search]").on("keyup",(n=this,function(e){var t;return(t=$.trim($(e.currentTarget).val()))?n.searchMessages(t):n.clearSearch(),n.applyFilters()})),$("#searchClear").on("click",(r=this,function(e){return e.preventDefault(),$("input[name=search]").val("").focus(),r.clearSearch(),r.applyFilters()})),$("#attachmentFilter").on("change",(e=this,function(){return e.applyFilters()})),$("#message").on("click",".views .format.tab a",(i=this,function(e){return e.preventDefault(),i.loadMessageBody(i.selectedMessage(),$($(e.currentTarget).parent("li")).data("message-format"))})),$("#message iframe").on("load",(o=this,function(){return o.decorateMessageBody()})),$("#resizer").on("mousedown",(a=this,function(e){var t;return e.preventDefault(),t={mouseup:function(e){return e.preventDefault(),$(window).off(t)},mousemove:function(e){return e.preventDefault(),a.resizeTo(e.clientY)}},$(window).on(t)})),this.resizeToSaved(),$("nav.app .clear a").on("click",(s=this,function(e){if(e.preventDefault(),confirm("You will lose all your received messages.\n\nAre you sure you want to clear all messages?"))return $.ajax({url:new URL("messages",document.baseURI).toString(),type:"DELETE",success:function(){return s.clearMessages()},error:function(){return alert("Error while clearing all messages.")}})})),$("nav.app .quit a").on("click",(u=this,function(e){if(e.preventDefault(),confirm("You will lose all your received messages.\n\nAre you sure you want to quit?"))return u.quitting=!0,$.ajax({type:"DELETE",success:function(){return u.hasQuit()},error:function(){return u.quitting=!1,alert("Error while quitting.")}})})),this.favcount=new Favcount($('link[rel="icon"]').attr("href")),document.addEventListener("keydown",(l=this,function(e){var t;if("search"!==e.target.type){switch(e.code){case"ArrowUp":e.preventDefault(),l.selectedMessage()?l.loadMessage($("#messages tr.selected").prevAll(":visible").first().data("message-id")):l.loadMessage($("#messages tbody tr[data-message-id]").first().data("message-id"));break;case"ArrowDown":e.preventDefault(),l.selectedMessage()?l.loadMessage($("#messages tr.selected").nextAll(":visible").data("message-id")):l.loadMessage($("#messages tbody tr[data-message-id]:first").data("message-id"));break;case"ArrowLeft":e.preventDefault(),l.openTab(l.previousTab());break;case"ArrowRight":e.preventDefault(),l.openTab(l.nextTab());break;case"Backspace":case"Delete":e.preventDefault(),null!=(t=l.selectedMessage())&&$.ajax({url:new URL("messages/"+t,document.baseURI).toString(),type:"DELETE",success:function(){return l.removeMessage(t)},error:function(){return alert("Error while removing message.")}})}if(e.ctrlKey||e.metaKey)switch(e.code){case"ArrowUp":return e.preventDefault(),l.loadMessage($("#messages tbody tr[data-message-id]:visible").first().data("message-id"));case"ArrowDown":return e.preventDefault(),l.loadMessage($("#messages tbody tr[data-message-id]:visible").last().data("message-id"))}}})),this.refresh(),this.subscribe()}return e.prototype.parseDate=function(e){return"string"==typeof e?new Date(e):e},e.prototype.formatDate=function(e){var t;return"string"==typeof e&&(e=this.parseDate(e)),e?(t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][e.getDay()]+", "+String(e.getDate()).padStart(2,"0")+" "+t[e.getMonth()]+" "+e.getFullYear()+" "+String(e.getHours()).padStart(2,"0")+":"+String(e.getMinutes()).padStart(2,"0")+":"+String(e.getSeconds()).padStart(2,"0")):null},e.prototype.formatSize=function(e){var t,n,r;return e?0===(e=parseInt(e))?"0 B":(n=1024,r=["B","KB","MB","GB"],t=Math.floor(Math.log(e)/Math.log(n)),(e/Math.pow(n,t)).toFixed(2).replace(/\.?0+$/,"")+" "+r[t]):"-"},e.prototype.messagesCount=function(){return $("#messages tr").length-1},e.prototype.updateMessagesCount=function(){return this.favcount.set(this.messagesCount()),document.title="MailCatcher ("+this.messagesCount()+")"},e.prototype.tabs=function(){return $("#message ul").children(".tab")},e.prototype.getTab=function(e){return $(this.tabs()[e])},e.prototype.selectedTab=function(){return this.tabs().index($("#message li.tab.selected"))},e.prototype.openTab=function(e){return this.getTab(e).children("a").click()},e.prototype.previousTab=function(e){var t;return(t=e||0===e?e:this.selectedTab()-1)<0&&(t=this.tabs().length-1),this.getTab(t).is(":visible")?t:this.previousTab(t-1)},e.prototype.nextTab=function(e){var t;return(t=e||this.selectedTab()+1)>this.tabs().length-1&&(t=0),this.getTab(t).is(":visible")?t:this.nextTab(t+1)},e.prototype.haveMessage=function(e){return null!=e.id&&(e=e.id),0<$('#messages tbody tr[data-message-id="'+e+'"]').length},e.prototype.selectedMessage=function(){return $("#messages tr.selected").data("message-id")},e.prototype.currentSearchQuery="",e.prototype.currentAttachmentFilter="all",e.prototype.searchMessages=function(e){return this.currentSearchQuery=e,this.applyFilters()},e.prototype.clearSearch=function(){return this.currentSearchQuery="",this.applyFilters()},e.prototype.applyFilters=function(){var e,l,c,d;return e=$("#messages tbody tr"),c=this.currentSearchQuery,l=$("#attachmentFilter").val(),this.currentAttachmentFilter=l,e.each((d=this,function(e,t){var n,r,i,o,a,s,u;if(n=$(t),a=!0,c&&(u=c.split(/\s+/),s=n.text().toUpperCase(),a=u.every(function(e){return 0<=s.indexOf(e.toUpperCase())})),r=!0,(o=n.attr("data-message-id"))&&"all"!==l){if(void 0===(i=n.data("has-attachments")))return void $.getJSON("messages/"+o+".json",function(e){return n.data("has-attachments",e.attachments&&0<e.attachments.length),d.applyFilters()});"with"===l?r=i:"without"===l&&(r=!i)}return a&&r?n.show():n.hide()}))},e.prototype.formatSender=function(e){var t;return e?(t=(e=e.replace(/^<(.+?)>$/,"$1")).match(/^(.+?)\s+<(.+?)>$/))?t[1].trim()+" "+t[2].trim():e:""},e.prototype.parseSender=function(e){var t,n;return e?(n=(t=e.replace(/^<(.+?)>$/,"$1")).match(/^(.+?)\s+<(.+?)>$/))?{name:n[1].trim(),email:n[2].trim()}:{name:"",email:t}:{name:"",email:""}},e.prototype.getEmailPreview=function(e,n){var t;return this,e.formats&&(e.formats.includes("plain")||e.formats.includes("html"))?(t=e.formats.includes("plain")?"plain":"html",$.ajax({url:"messages/"+e.id+"."+t,type:"GET",success:function(e){var t;if(100<=(t=(t=e.replace(/<[^>]*>/g,"").trim()).substring(0,100)).length&&(t+="..."),n)return n(t)},error:function(){if(n)return n("")}})):n?n(""):void 0},e.prototype.addMessage=function(e){var a,s,t,n,u,l,c,d,r,i,o,f,p,h,g,m,y,v,b,x;return this.formatSender(e.sender||"No sender"),y=e.attachments&&0<e.attachments.length,f=$("<td/>").addClass("subject-cell"),o=$("<div/>").addClass("subject-text").html("<strong>"+this.escapeHtml(e.subject||"No subject")+"</strong>"),l=$("<div/>").addClass("preview-text").text(""),f.append(o).append(l),n=$("<td/>").addClass("from-cell"),x=this.parseSender(e.sender||""),u=$("<div/>").addClass("sender-text-container"),x.name?(i=$("<div/>").addClass("sender-name").html("<strong>"+this.escapeHtml(x.name)+"</strong>"),r=$("<div/>").addClass("sender-email").text(x.email),u.append(i).append(r)):(r=$("<div/>").addClass("sender-email").text(x.email),u.append(r)),n.append(u).toggleClass("blank",!e.sender),a=$("<td/>").addClass("col-attachments"),y&&a.text("\ud83d\udcce"),s=$("<td/>").addClass("col-bimi"),(t=$("<svg/>").addClass("bimi-placeholder-icon").attr("viewBox","0 0 24 24").attr("fill","none").attr("stroke","currentColor").attr("stroke-width","2")).append($("<circle/>").attr("cx","12").attr("cy","12").attr("r","10")),t.append($("<text/>").attr("x","12").attr("y","13").attr("text-anchor","middle").attr("font-size","10").attr("font-weight","bold").text("B")),s.append(t),p=$("<td/>").addClass("to-cell"),e.recipients&&0<e.recipients.length?(m=e.recipients[0],v=this.parseSender(m),h=$("<div/>").addClass("sender-text-container"),v.name?(d=$("<div/>").addClass("sender-name").html("<strong>"+this.escapeHtml(v.name)+"</strong>"),c=$("<div/>").addClass("sender-email").text(v.email),h.append(d).append(c)):(c=$("<div/>").addClass("sender-email").text(v.email),h.append(c)),p.append(h)):p.addClass("blank").text("No recipients"),(g=$("<tr />").attr("data-message-id",e.id.toString()).append(a).append(s).append(n).append(p).append(f).append($("<td/>").text(this.formatDate(e.created_at))).append($("<td/>").text(this.formatSize(e.size)))).data("has-attachments",y),g.prependTo($("#messages tbody")),b=this,$.getJSON("messages/"+e.id+".json",function(e){var t,n,r,i,o;if(e.from_header&&(u.empty(),(i=b.parseSender(e.from_header)).name?(r=$("<div/>").addClass("sender-name").html("<strong>"+b.escapeHtml(i.name)+"</strong>"),n=$("<div/>").addClass("sender-email").text(i.email),u.append(r
4
- ).append(n)):(n=$("<div/>").addClass("sender-email").text(i.email),u.append(n))),e.to_header&&(p.empty(),0<(o=e.to_header.split(",").map(function(e){return e.trim()})).length&&(m=o[0],v=b.parseSender(m),h=$("<div/>").addClass("sender-text-container"),v.name?(d=$("<div/>").addClass("sender-name").html("<strong>"+b.escapeHtml(v.name)+"</strong>"),c=$("<div/>").addClass("sender-email").text(v.email),h.append(d).append(c)):(c=$("<div/>").addClass("sender-email").text(v.email),h.append(c)),p.append(h))),e.attachments&&0<e.attachments.length&&(g.data("has-attachments",!0),a.text("\ud83d\udcce")),e.preview_text?l.text(e.preview_text):b.getEmailPreview(e,function(e){return l.text(e)}),e.bimi_location)return s.empty(),t=$("<img/>").addClass("bimi-image").attr("src",e.bimi_location).attr("alt","BIMI"),s.append(t)}),this.updateMessagesCount(),this.applyFilters()},e.prototype.escapeHtml=function(e){var t;return(t=document.createElement("div")).textContent=e,t.innerHTML},e.prototype.removeMessage=function(e){var t,n,r;return(t=(n=$('#messages tbody tr[data-message-id="'+e+'"]')).is(".selected"))&&(r=n.next().data("message-id")||n.prev().data("message-id")),n.remove(),t&&(r?this.loadMessage(r):this.unselectMessage()),this.updateMessagesCount()},e.prototype.clearMessages=function(){return $("#messages tbody tr").remove(),this.unselectMessage(),this.updateMessagesCount()},e.prototype.scrollToRow=function(e){var t,n;return(n=e.offset().top-$("#messages").offset().top)<0?$("#messages").scrollTop($("#messages").scrollTop()+n-20):0<(t=n+e.height()-$("#messages").height())?$("#messages").scrollTop($("#messages").scrollTop()+t+20):void 0},e.prototype.unselectMessage=function(){return $("#messages tbody, #message .metadata dd").empty(),$(".attachments-list").empty(),$(".attachments-column").removeClass("visible"),$("#message iframe").attr("src","about:blank"),null},e.prototype.cleanEmailAddress=function(e){return e?e.replace(/^<(.+)>$/,"$1"):e},e.prototype.loadMessage=function(s){var t,n;if(null!=(null!=s?s.id:void 0)&&(s=s.id),s||(s=$("#messages tr.selected").attr("data-message-id")),null!=s)return $("#messages tbody tr:not([data-message-id='"+s+"'])").removeClass("selected"),(t=$("#messages tbody tr[data-message-id='"+s+"']")).addClass("selected"),this.scrollToRow(t),$.getJSON("messages/"+s+".json",(n=this,function(i){var o,a,e;return(t=$("#messages tbody tr[data-message-id='"+s+"']")).data("has-attachments",i.attachments&&0<i.attachments.length),$("#message .metadata dd.created_at").text(n.formatDate(i.created_at)),i.from_header?$("#message .metadata dd.from").text(n.formatSender(i.from_header)):$("#message .metadata dd.from").text(n.cleanEmailAddress(i.sender)),i.to_header?(e=i.to_header.split(",").map(function(e){return n.formatSender(e.trim())}).join(", "),$("#message .metadata dd.to").text(e)):$("#message .metadata dd.to").text((i.recipients||[]).map(function(e){return n.cleanEmailAddress(e)}).join(", ")),$("#message .metadata dd.subject").text(i.subject),$("#message .views .tab.format").each(function(e,t){var n,r;return r=(n=$(t)).attr("data-message-format"),0<=$.inArray(r,i.formats)?(n.find("a").attr("href","messages/"+s+"."+r),n.show()):n.hide()}),$("#message .views .tab.selected:not(:visible)").length&&($("#message .views .tab.selected").removeClass("selected"),$("#message .views .tab:visible:first").addClass("selected")),i.attachments.length?(o=$(".attachments-list").empty(),a=n,$.each(i.attachments,function(e,t){var n,r,i;return r=$("<li/>"),n=$("<a/>").attr("href","messages/"+s+"/parts/"+t.cid).addClass(t.type.split("/",1)[0]).addClass(t.type.replace("/","-")).text(t.filename),(i=$("<div/>").addClass("attachment-meta")).append($("<div/>").addClass("attachment-size").text(a.formatSize(t.size))),i.append($("<div/>").addClass("attachment-type").text(t.type)),r.append(n).append(i),o.append(r)}),$(".attachments-column").addClass("visible")):$(".attachments-column").removeClass("visible"),$("#message .views .download a").attr("href","messages/"+s+".eml"),n.loadMessageBody()}))},e.prototype.loadMessageBody=function(e,t){if(e||(e=this.selectedMessage()),t||(t=$("#message .views .tab.format.selected").attr("data-message-format")),t||(t="html"),$('#message .views .tab[data-message-format="'+t+'"]:not(.selected)').addClass("selected"),$('#message .views .tab:not([data-message-format="'+t+'"]).selected').removeClass("selected"),null!=e)return $("#message iframe").attr("src","messages/"+e+"."+t)},e.prototype.decorateMessageBody=function(){var e,t,n,r,i;switch($("#message .views .tab.format.selected").attr("data-message-format")){case"html":return e=$("#message iframe").contents().find("body"),$("a",e).attr("target","_blank");case"plain":return(e=(n=$("#message iframe").contents()).find("body")).length?(e.css("font-family","sans-serif"),e.css("white-space","pre-wrap"),e.css("word-wrap","break-word")):(i=(i=(i=(i=(i=(i=n.text()).replace(/&/g,"&amp;")).replace(/</g,"&lt;")).replace(/>/g,"&gt;")).replace(/"/g,"&quot;")).replace(/((http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&amp;:\/~\+#]*[\w\-\@?^=%&amp;\/~\+#])?)/g,'<a href="$1" target="_blank">$1</a>'),n.find("html").html('<body style="font-family: sans-serif; white-space: pre-wrap; word-wrap: break-word">'+i+"</body>"));case"source":if((e=(n=$("#message iframe").contents()).find("body")).length&&(t=e.text()))return r="<body style=\"background: #f5f5f5; color: #1a1a1a; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif; padding: 0; margin: 0; line-height: 1.6;\">\n <div style=\"padding: 20px 28px;\">\n "+('<pre><code class="language-xml">'+t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")+"</code></pre>")+"\n </div>\n</body>",n.find("html").html(r),setTimeout(function(){return n.find("code").each(function(e,t){return hljs.highlightElement(t)})},0)}},e.prototype.refresh=function(){return $.getJSON("messages",(n=this,function(e){return $.each(e,function(e,t){if(!n.haveMessage(t))return n.addMessage(t)}),n.updateMessagesCount()}));var n},e.prototype.subscribe=function(){return"undefined"!=typeof WebSocket&&null!==WebSocket?this.subscribeWebSocket():this.subscribePoll()},e.prototype.reconnectWebSocketAttempts=0,e.prototype.maxReconnectAttempts=10,e.prototype.reconnectBaseDelay=1e3,e.prototype.subscribeWebSocket=function(){var e,t,n,i,r,o;return e="https:"===window.location.protocol,(t=new URL("messages",document.baseURI)).protocol=e?"wss":"ws",this.websocket=new WebSocket(t.toString()),this.websocket.onopen=(n=this,function(){return console.log("[MailCatcher] WebSocket connection established"),n.reconnectWebSocketAttempts=0,n.updateWebSocketStatus(!0)}),this.websocket.onmessage=(i=this,function(e){var t,n;try{if(t=JSON.parse(e.data),console.log("[MailCatcher] WebSocket message received:",t),"add"===t.type)return i.addMessage(t.message);if("remove"===t.type)return i.removeMessage(t.id);if("clear"===t.type)return i.clearMessages();if("quit"===t.type&&!i.quitting)return i.hasQuit()}catch(r){return n=r,console.error("[MailCatcher] Error processing WebSocket message:",n)}}),this.websocket.onerror=(r=this,function(e){return console.error("[MailCatcher] WebSocket error:",e),r.updateWebSocketStatus(!1)}),this.websocket.onclose=(o=this,function(){return console.log("[MailCatcher] WebSocket connection closed"),o.updateWebSocketStatus(!1),o.attemptWebSocketReconnect()})},e.prototype.subscribePoll=function(){if(null==this.refreshInterval)return this.refreshInterval=setInterval((e=this,function(){return e.refresh()}),1e3);var e},e.prototype.attemptWebSocketReconnect=function(){var e,t;return this.reconnectWebSocketAttempts<this.maxReconnectAttempts?(e=this.reconnectBaseDelay*Math.pow(2,this.reconnectWebSocketAttempts),this.reconnectWebSocketAttempts++,console.log("[MailCatcher] Attempting WebSocket reconnection in "+e+"ms (attempt "+this.reconnectWebSocketAttempts+"/"+this.maxReconnectAttempts+")"),setTimeout((t=this,function(){return t.subscribeWebSocket()}),e)):(console.log("[MailCatcher] Max WebSocket reconnection attempts reached, staying in polling mode"),this.subscribePoll())},e.prototype.resizeToSavedKey="mailcatcherSeparatorHeight",e.prototype.resizeTo=function(e){var t;return $("#messages").css({height:e-$("#messages").offset().top}),null!=(t=window.localStorage)?t.setItem(this.resizeToSavedKey,e):void 0},e.prototype.resizeToSaved=function(){var e,t;if(e=parseInt(null!=(t=window.localStorage)?t.getItem(this.resizeToSavedKey):void 0),!isNaN(e))return this.resizeTo(e)},e.prototype.updateWebSocketStatus=function(e){var t,n;if(t=document.getElementById("websocketStatus"),n=document.getElementById("statusText"),t&&n)return e?(t.classList.remove("disconnected"),n.textContent="Connected"):(t.classList.add("disconnected"),n.textContent="Disconnected")},e.prototype.hasQuit=function(){return console.log("[MailCatcher] Server has quit")},e}(),$(function(){return window.MailCatcher=new e})}.call(this);
1
+ /*!
2
+ * jQuery JavaScript Library v3.7.1
3
+ * https://jquery.com/
4
+ *
5
+ * Copyright OpenJS Foundation and other contributors
6
+ * Released under the MIT license
7
+ * https://jquery.org/license
8
+ *
9
+ * Date: 2023-08-28T13:37Z
10
+ */
11
+ !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";function n(e,t,n){var r,i,o=(n=n||xe).createElement("script");if(o.text=e,t)for(r in we)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function r(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?fe[pe.call(e)]||"object":typeof e}function i(e){var t=!!e&&"length"in e&&e.length,n=r(e);return!ve(e)&&!be(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function o(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function a(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}function s(e,t,n){return ve(t)?Se.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?Se.grep(e,function(e){return e===t!==n}):"string"!=typeof t?Se.grep(e,function(e){return de.call(t,e)>-1!==n}):Se.filter(t,e,n)}function u(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function l(e){var t={};return Se.each(e.match(Ie)||[],function(e,n){t[n]=!0}),t}function c(e){return e}function d(e){throw e}function f(e,t,n,r){var i;try{e&&ve(i=e.promise)?i.call(e).done(t).fail(n):e&&ve(i=e.then)?i.call(e,t,n):t.apply(undefined,[e].slice(r))}catch(e){n.apply(undefined,[e])}}function p(){xe.removeEventListener("DOMContentLoaded",p),e.removeEventListener("load",p),Se.ready()}function h(e,t){return t.toUpperCase()}function g(e){return e.replace(Ue,"ms-").replace(Xe,h)}function m(){this.expando=Se.expando+m.uid++}function y(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Je.test(e)?JSON.parse(e):e)}function v(e,t,n){var r;if(n===undefined&&1===e.nodeType)if(r="data-"+t.replace(Ge,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=y(n)}catch(i){}Ye.set(e,t,n)}else n=undefined;return n}function b(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return Se.css(e,t,"")},u=s(),l=n&&n[3]||(Se.cssNumber[t]?"":"px"),c=e.nodeType&&(Se.cssNumber[t]||"px"!==l&&+u)&&Ze.exec(Se.css(e,t));if(c&&c[3]!==l){for(u/=2,l=l||c[3],c=+u||1;a--;)Se.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,Se.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}function x(e){var t,n=e.ownerDocument,r=e.nodeName,i=ot[r];return i||(t=n.body.appendChild(n.createElement(r)),i=Se.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),ot[r]=i,i)}function w(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(i[o]=Ve.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&it(r)&&(i[o]=x(r))):"none"!==n&&(i[o]="none",Ve.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}function T(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],t===undefined||t&&o(e,t)?Se.merge([e],n):n}function C(e,t){for(var n=0,r=e.length;n<r;n++)Ve.set(e[n],"globalEval",!t||Ve.get(t[n],"globalEval"))}function S(e,t,n,i,o){for(var a,s,u,l,c,d,f=t.createDocumentFragment(),p=[],h=0,g=e.length;h<g;h++)if((a=e[h])||0===a)if("object"===r(a))Se.merge(p,a.nodeType?[a]:a);else if(ft.test(a)){for(s=s||f.appendChild(t.createElement("div")),u=(lt.exec(a)||["",""])[1].toLowerCase(),l=dt[u]||dt._default,s.innerHTML=l[1]+Se.htmlPrefilter(a)+l[2],d=l[0];d--;)s=s.lastChild;Se.merge(p,s.childNodes),(s=f.firstChild).textContent=""}else p.push(t.createTextNode(a));for(f.textContent="",h=0;a=p[h++];)if(i&&Se.inArray(a,i)>-1)o&&o.push(a);else if(c=nt(a),s=T(f.appendChild(a),"script"),c&&C(s),n)for(d=0;a=s[d++];)ct.test(a.type||"")&&n.push(a);return f}function k(){return!0}function E(){return!1}function $(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=undefined),t)$(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=undefined):null==i&&("string"==typeof n?(i=r,r=undefined):(i=r,r=n,n=undefined)),!1===i)i=E;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return Se().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=Se.guid++)),e.each(function(){Se.event.add(this,t,i,r,n)})}function A(e,t,n){n?(Ve.set(e,t,!1),Se.event.add(e,t,{namespace:!1,handler:function(e){var n,r=Ve.get(this,t);if(1&e.isTrigger&&this[t]){if(r)(Se.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=ue.call(arguments),Ve.set(this,t,r),this[t](),n=Ve.get(this,t),Ve.set(this,t,!1),r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else r&&(Ve.set(this,t,Se.event.trigger(r[0],r.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=k)}})):Ve.get(e,t)===undefined&&Se.event.add(e,t,k)}function D(e,t){return o(e,"table")&&o(11!==t.nodeType?t:t.firstChild,"tr")&&Se(e).children("tbody")[0]||e}function j(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function M(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function N(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Ve.hasData(e)&&(s=Ve.get(e).events))for(i in Ve.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)Se.event.add(t,i,s[i][n]);Ye.hasData(e)&&(o=Ye.access(e),a=Se.extend({},o),Ye.set(t,a))}}function q(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ut.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function L(e,t,r,i){t=le(t);var o,a,s,u,l,c,d=0,f=e.length,p=f-1,h=t[0],g=ve(h);if(g||f>1&&"string"==typeof h&&!ye.checkClone&&gt.test(h))return e.each(function(n){var o=e.eq(n);g&&(t[0]=h.call(this,n,o.html())),L(o,t,r,i)});if(f&&(a=(o=S(t,e[0].ownerDocument,!1,e,i)).firstChild,1===o.childNodes.length&&(o=a),a||i)){for(u=(s=Se.map(T(o,"script"),j)).length;d<f;d++)l=o,d!==p&&(l=Se.clone(l,!0,!0),u&&Se.merge(s,T(l,"script"))),r.call(e[d],l,d);if(u)for(c=s[s.length-1].ownerDocument,Se.map(s,M),d=0;d<u;d++)l=s[d],ct.test(l.type||"")&&!Ve.access(l,"globalEval")&&Se.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?Se._evalUrl&&!l.noModule&&Se._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},c):n(l.textContent.replace(mt,""),l,c))}return e}function H(e,t,n){for(var r,i=t?Se.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||Se.cleanData(T(r)),r.parentNode&&(n&&nt(r)&&C(T(r,"script")),r.parentNode.removeChild(r));return e}function O(e,t,n){var r,i,o,a,s=vt.test(t),u=e.style;return(n=n||bt(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(De,"$1")||undefined),""!==a||nt(e)||(a=Se.style(e,t)),!ye.pixelBoxStyles()&&yt.test(a)&&wt.test(t)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=n.width,u.width=r,u.minWidth=i,u.maxWidth=o)),a!==undefined?a+"":a}function R(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}function P(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Tt.length;n--;)if((e=Tt[n]+t)in Ct)return e}function W(e){var t=Se.cssProps[e]||St[e];return t||(e in Ct?e:St[e]=P(e)||e)}function F(e,t,n){var r=Ze.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function I(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=Se.css(e,n+et[a],!0,i)),r?("content"===n&&(u-=Se.css(e,"padding"+et[a],!0,i)),"margin"!==n&&(u-=Se.css(e,"border"+et[a]+"Width",!0,i))):(u+=Se.css(e,"padding"+et[a],!0,i),"padding"!==n?u+=Se.css(e,"border"+et[a]+"Width",!0,i):s+=Se.css(e,"border"+et[a]+"Width",!0,i));return!r&&o>=0&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u+l}function B(e,t,n){var r=bt(e),i=(!ye.boxSizingReliable()||n)&&"border-box"===Se.css(e,"boxSizing",!1,r),a=i,s=O(e,t,r),u="offset"+t[0].toUpperCase()+t.slice(1);if(yt.test(s)){if(!n)return s;s="auto"}return(!ye.boxSizingReliable()&&i||!ye.reliableTrDimensions()&&o(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===Se.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===Se.css(e,"boxSizing",!1,r),(a=u in e)&&(s=e[u])),(s=parseFloat(s)||0)+I(e,t,n||(i?"border":"content"),a,r,s)+"px"}function _(e,t,n,r,i){return new _.prototype.init(e,t,n,r,i)}function z(){Dt&&(!1===xe.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(z):e.setTimeout(z,Se.fx.interval),Se.fx.tick())}function U(){return e.setTimeout(function(){At=undefined}),At=Date.now()}function X(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=et[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function Q(e,t,n){for(var r,i=(J.tweeners[t]||[]).concat(J.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function V(e,t,n){var r,i,o,a,s,u,l,c,d="width"in t||"height"in t,f=this,p={},h=e.style,g=e.nodeType&&it(e),m=Ve.get(e,"fxshow");for(r in n.queue||(null==(a=Se._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,f.always(function(){f.always(function(){a.unqueued--,Se.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],jt.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!m||m[r]===undefined)continue;g=!0}p[r]=m&&m[r]||Se.style(e,r)}if((u=!Se.isEmptyObject(t))||!Se.isEmptyObject(p))for(r in d&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=m&&m.display)&&(l=Ve.get(e,"display")),"none"===(c=Se.css(e,"display"))&&(l?c=l:(w([e],!0),l=e.style.display||l,c=Se.css(e,"display"),w([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===Se.css(e,"float")&&(u||(f.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",f.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,p)u||(m?"hidden"in m&&(g=m.hidden):m=Ve.access(e,"fxshow",{display:l}),o&&(m.hidden=!g),g&&w([e],!0),f.done(function(){for(r in g||w([e]),Ve.remove(e,"fxshow"),p)Se.style(e,r,p[r])})),u=Q(g?m[r]:0,r,f),r in m||(m[r]=u.start,g&&(u.end=u.start,u.start=0))}function Y(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=g(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=Se.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}function J(e,t,n){var r,i,o=0,a=J.prefilters.length,s=Se.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=At||U(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),o=0,a=l.tweens.length;o<a;o++)l.tweens[o].run(r);return s.notifyWith(e,[l,r,n]),r<1&&a?n:(a||s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:Se.extend({},t),opts:Se.extend(!0,{specialEasing:{},easing:Se.easing._default},n),originalProperties:t,originalOptions:n,startTime:At||U(),duration:n.duration,tweens:[],createTween:function(t,n){var r=Se.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),c=l.props;for(Y(c,l.opts.specialEasing);o<a;o++)if(r=J.prefilters[o].call(l,e,c,l.opts))return ve(r.stop)&&(Se._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return Se.map(c,Q,l),ve(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),Se.fx.timer(Se.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l}function G(e){return(e.match(Ie)||[]).join(" ")}function K(e){return e.getAttribute&&e.getAttribute("class")||""}function Z(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(Ie)||[]}function ee(e,t,n,i){var o;if(Array.isArray(t))Se.each(t,function(t,r){n||Bt.test(e)?i(e,r):ee(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,i)});else if(n||"object"!==r(t))i(e,t);else for(o in t)ee(e+"["+o+"]",t[o],n,i)}function te(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(Ie)||[];if(ve(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function ne(e,t,n,r){function i(s){var u;return o[s]=!0,Se.each(e[s]||[],function(e,s){var l=s(t,n,r);return"string"!=typeof l||a||o[l]?a?!(u=l):void 0:(t.dataTypes.unshift(l),i(l),!1)}),u}var o={},a=e===en;return i(t.dataTypes[0])||!o["*"]&&i("*")}function re(e,t){var n,r,i=Se.ajaxSettings.flatOptions||{};for(n in t)t[n]!==undefined&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&Se.extend(!0,e,r),e}function ie(e,t,n){for(var r,i,o,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),r===undefined&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}function oe(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(d){return{state:"parsererror",error:a?d:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}var ae=[],se=Object.getPrototypeOf,ue=ae.slice,le=ae.flat?function(e){return ae.flat.call(e)}:function(e){return ae.concat.apply([],e)},ce=ae.push,de=ae.indexOf,fe={},pe=fe.toString,he=fe.hasOwnProperty,ge=he.toString,me=ge.call(Object),ye={},ve=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},be=function(e){return null!=e&&e===e.window},xe=e.document,we={type:!0,src:!0,nonce:!0,noModule:!0},Te="3.7.1",Ce=/HTML$/i,Se=function(e,t){return new Se.fn.init(e,t)};Se.fn=Se.prototype={jquery:Te,constructor:Se,length:0,toArray:function(){return ue.call(this)},get:function(e){return null==e?ue.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=Se.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return Se.each(this,e)},map:function(e){return this.pushStack(Se.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(ue.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(Se.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(Se.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:ce,sort:ae.sort,splice:ae.splice},Se.extend=Se.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||ve(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(Se.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||Se.isPlainObject(n)?n:{},i=!1,a[t]=Se.extend(l,o,r)):r!==undefined&&(a[t]=r));return a},Se.extend({expando:"jQuery"+(Te+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==pe.call(e))&&(!(t=se(e))||"function"==typeof(n=he.call(t,"constructor")&&t.constructor)&&ge.call(n)===me)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,r){n(e,{nonce:t&&t.nonce},r)},each:function(e,t){var n,r=0;if(i(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,i=e.nodeType;if(!i)for(;t=e[r++];)n+=Se.text(t);return 1===i||11===i?e.textContent:9===i?e.documentElement.textContent:3===i||4===i?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(i(Object(e))?Se.merge(n,"string"==typeof e?[e]:e):ce.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:de.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Ce.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,o,a=0,s=[];if(i(e))for(r=e.length;a<r;a++)null!=(o=t(e[a],a,n))&&s.push(o);else for(a in e)null!=(o=t(e[a],a,n))&&s.push(o);return le(s)},guid:1,support:ye}),"function"==typeof Symbol&&(Se.fn[Symbol.iterator]=ae[Symbol.iterator]),Se.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){fe["[object "+t+"]"]=t.toLowerCase()});var ke=ae.pop,Ee=ae.sort,$e=ae.splice,Ae="[\\x20\\t\\r\\n\\f]",De=new RegExp("^"+Ae+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Ae+"+$","g");Se.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var je=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;Se.escapeSelector=function(e){return(e+"").replace(je,a)};var Me=xe,Ne=ce;!function(){function t(){try{return j.activeElement}catch(e){}}function n(e,t,r,i){var o,a,s,u,l,c,p,m=t&&t.ownerDocument,y=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==y&&9!==y&&11!==y)return r;if(!i&&(f(t),t=t||j,N)){if(11!==y&&(l=re.exec(e)))if(o=l[1]){if(9===y){if(!(s=t.getElementById(o)))return r;if(s.id===o)return H.call(r,s),r}else if(m&&(s=m.getElementById(o))&&n.contains(t,s)&&s.id===o)return H.call(r,s),r}else{if(l[2])return H.apply(r,t.getElementsByTagName(e)),r;if((o=l[3])&&t.getElementsByClassName)return H.apply(r,t.getElementsByClassName(o)),r}if(!(B[e+" "]||q&&q.test(e))){if(p=e,m=t,1===y&&(G.test(e)||J.test(e))){for((m=ie.test(e)&&d(t.parentNode)||t)==t&&ye.scope||((u=t.getAttribute("id"))?u=Se.escapeSelector(u):t.setAttribute("id",u=O)),a=(c=h(e)).length;a--;)c[a]=(u?"#"+u:":scope")+" "+g(c[a]);p=c.join(",")}try{return H.apply(r,m.querySelectorAll(p)),r}catch(v){B(e,!0)}finally{u===O&&t.removeAttribute("id")}}}return S(e.replace(De,"$1"),t,r,i)}function r(){function e(n,r){return t.push(n+" ")>E.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function i(e){return e[O]=!0,e}function a(e){var t=j.createElement("fieldset");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function s(e){return function(t){return o(t,"input")&&t.type===e}}function u(e){return function(t){return(o(t,"input")||o(t,"button"))&&t.type===e}}function l(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ce(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function c(e){return i(function(t){return t=+t,i(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function d(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function f(e){var t,r=e?e.ownerDocument||e:Me;return r!=j&&9===r.nodeType&&r.documentElement?(M=(j=r).documentElement,N=!Se.isXMLDoc(j),L=M.matches||M.webkitMatchesSelector||M.msMatchesSelector,M.msMatchesSelector&&Me!=j&&(t=j.defaultView)&&t.top!==t&&t.addEventListener("unload",le),ye.getById=a(function(e){return M.appendChild(e).id=Se.expando,!j.getElementsByName||!j.getElementsByName(Se.expando).length}),ye.disconnectedMatch=a(function(e){return L.call(e,"*")}),ye.scope=a(function(){return j.querySelectorAll(":scope")}),ye.cssHas=a(function(){try{return j.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),ye.getById?(E.filter.ID=function(e){var t=e.replace(oe,se);return function(e){return e.getAttribute("id")===t}},E.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&N){var n=t.getElementById(e);return n?[n]:[]}}):(E.filter.ID=function(e){var t=e.replace(oe,se);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},E.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&N){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),E.find.TAG=function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},E.find.CLASS=function(e,t){if("undefined"!=typeof t.getElementsByClassName&&N)return t.getElementsByClassName(e)},q=[],a(function(e){var t;M.appendChild(e).innerHTML="<a id='"+O+"' href='' disabled='disabled'></a><select id='"+O+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||q.push("\\["+Ae+"*(?:value|"+z+")"),e.querySelectorAll("[id~="+O+"-]").length||q.push("~="),e.querySelectorAll("a#"+O+"+*").length||q.push(".#.+[+~]"),e.querySelectorAll(":checked").length||q.push(":checked"),(t=j.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),M.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&q.push(":enabled",":disabled"),(t=j.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||q.push("\\["+Ae+"*name"+Ae+"*="+Ae+"*(?:''|\"\")")}),ye.cssHas||q.push(":has"),q=q.length&&new RegExp(q.join("|")),_=function(e,t){if(e===t)return D=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!ye.sortDetached&&t.compareDocumentPosition(e)===r?e===j||e.ownerDocument==Me&&n.contains(Me,e)?-1:t===j||t.ownerDocument==Me&&n.contains(Me,t)?1:A?de.call(A,e)-de.call(A,t):0:4&r?-1:1)},j):j}function p(){}function h(e,t){var r,i,o,a,s,u,l,c=F[e+" "];if(c)return t?0:c.slice(0);for(s=e,u=[],l=E.preFilter;s;){for(a in r&&!(i=Y.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),r=!1,(i=J.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(De," ")}),s=s.slice(r.length)),E.filter)!(i=ee[a].exec(s))||l[a]&&!(i=l[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return t?s.length:s?n.error(e):F(e,u).slice(0)}function g(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function m(e,t,n){var r=t.dir,i=t.next,a=i||r,s=n&&"parentNode"===a,u=P++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||s)return e(t,n,i);return!1}:function(t,n,l){var c,d,f=[R,u];if(l){for(;t=t[r];)if((1===t.nodeType||s)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||s)if(d=t[O]||(t[O]={}),i&&o(t,i))t=t[r]||t;else{if((c=d[a])&&c[0]===R&&c[1]===u)return f[2]=c[2];if(d[a]=f,f[2]=e(t,n,l))return!0}return!1}}function y(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function v(e,t,r){for(var i=0,o=t.length;i<o;i++)n(e,t[i],r);return r}function b(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function x(e,t,n,r,o,a){return r&&!r[O]&&(r=x(r)),o&&!o[O]&&(o=x(o,a)),i(function(i,a,s,u){var l,c,d,f,p=[],h=[],g=a.length,m=i||v(t||"*",s.nodeType?[s]:s,[]),y=!e||!i&&t?m:b(m,p,e,s,u);if(n?n(y,f=o||(i?e:g||r)?[]:a,s,u):f=y,r)for(l=b(f,h),r(l,[],s,u),c=l.length;c--;)(d=l[c])&&(f[h[c]]=!(y[h[c]]=d));if(i){if(o||e){if(o){for(l=[],c=f.length;c--;)(d=f[c])&&l.push(y[c]=d);o(null,f=[],l,u)}for(c=f.length;c--;)(d=f[c])&&(l=o?de.call(i,d):p[c])>-1&&(i[l]=!(a[l]=d))}}else f=b(f===a?f.splice(g,f.length):f),o?o(null,a,f,u):H.apply(a,f)})}function w(e){for(var t,n,r,i=e.length,o=E.relative[e[0].type],a=o||E.relative[" "],s=o?1:0,u=m(function(e){return e===t},a,!0),l=m(function(e){return de.call(t,e)>-1},a,!0),c=[function(e,n,r){var i=!o&&(r||n!=$)||((t=n).nodeType?u(e,n,r):l(e,n,r));return t=null,i}];s<i;s++)if(n=E.relative[e[s].type])c=[m(y(c),n)];else{if((n=E.filter[e[s].type].apply(null,e[s].matches))[O]){for(r=++s;r<i&&!E.relative[e[r].type];r++);return x(s>1&&y(c),s>1&&g(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(De,"$1"),n,s<r&&w(e.slice(s,r)),r<i&&w(e=e.slice(r)),r<i&&g(e))}c.push(n)}return y(c)}function T(e,t){var n=t.length>0,r=e.length>0,o=function(i,o,a,s,u){var l,c,d,p=0,h="0",g=i&&[],m=[],y=$,v=i||r&&E.find.TAG("*",u),x=R+=null==y?1:Math.random()||.1,w=v.length;for(u&&($=o==j||o||u);h!==w&&null!=(l=v[h]);h++){if(r&&l){for(c=0,o||l.ownerDocument==j||(f(l),a=!N);d=e[c++];)if(d(l,o||j,a)){H.call(s,l);break}u&&(R=x)}n&&((l=!d&&l)&&p--,i&&g.push(l))}if(p+=h,n&&h!==p){for(c=0;d=t[c++];)d(g,m,o,a);if(i){if(p>0)for(;h--;)g[h]||m[h]||(m[h]=ke.call(s));m=b(m)}H.apply(s,m),u&&!i&&m.length>0&&p+t.length>1&&Se.uniqueSort(s)}return u&&(R=x,$=y),g};return n?i(o):o}function C(e,t){var n,r=[],i=[],o=I[e+" "];if(!o){for(t||(t=h(e)),n=t.length;n--;)(o=w(t[n]))[O]?r.push(o):i.push(o);(o=I(e,T(i,r))).selector=e}return o}function S(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&h(e=l.selector||e);if(n=n||[],1===c.length){if((o=c[0]=c[0].slice(0)).length>2&&"ID"===(a=o[0]).type&&9===t.nodeType&&N&&E.relative[o[1].type]){if(!(t=(E.find.ID(a.matches[0].replace(oe,se),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=ee.needsContext.test(e)?0:o.length;i--&&(a=o[i],!E.relative[s=a.type]);)if((u=E.find[s])&&(r=u(a.matches[0].replace(oe,se),ie.test(o[0].type)&&d(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&g(o)))return H.apply(n,r),n;break}}return(l||C(e,c))(r,t,!N,n,!t||ie.test(e)&&d(t.parentNode)||t),n}var k,E,$,A,D,j,M,N,q,L,H=Ne,O=Se.expando,R=0,P=0,W=r(),F=r(),I=r(),B=r(),_=function(e,t){return e===t&&(D=!0),0},z="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",U="(?:\\\\[\\da-fA-F]{1,6}"+Ae+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",X="\\["+Ae+"*("+U+")(?:"+Ae+"*([*^$|!~]?=)"+Ae+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+U+"))|)"+Ae+"*\\]",Q=":("+U+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+X+")*)|.*)\\)|)",V=new RegExp(Ae+"+","g"),Y=new RegExp("^"+Ae+"*,"+Ae+"*"),J=new RegExp("^"+Ae+"*([>+~]|"+Ae+")"+Ae+"*"),G=new RegExp(Ae+"|>"),K=new RegExp(Q),Z=new RegExp("^"+U+"$"),ee={ID:new RegExp("^#("+U+")"),CLASS:new RegExp("^\\.("+U+")"),TAG:new RegExp("^("+U+"|[*])"),ATTR:new RegExp("^"+X),PSEUDO:new RegExp("^"+Q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Ae+"*(even|odd|(([+-]|)(\\d*)n|)"+Ae+"*(?:([+-]|)"+Ae+"*(\\d+)|))"+Ae+"*\\)|)","i"),bool:new RegExp("^(?:"+z+")$","i"),needsContext:new RegExp("^"+Ae+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Ae+"*((?:-\\d)?\\d*)"+Ae+"*\\)|)(?=[^-]|$)","i")},te=/^(?:input|select|textarea|button)$/i,ne=/^h\d$/i,re=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ie=/[+~]/,oe=new RegExp("\\\\[\\da-fA-F]{1,6}"+Ae+"?|\\\\([^\\r\\n\\f])","g"),se=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},le=function(){f()},ce=m(function(e){return!0===e.disabled&&o(e,"fieldset")},{dir:"parentNode",next:"legend"});try{H.apply(ae=ue.call(Me.childNodes),Me.childNodes),ae[Me.childNodes.length].nodeType}catch(fe){H={apply:function(e,t){Ne.apply(e,ue.call(t))},call:function(e){Ne.apply(e,ue.call(arguments,1))}}}for(k in n.matches=function(e,t){return n(e,null,null,t)},n.matchesSelector=function(e,t){if(f(e),N&&!B[t+" "]&&(!q||!q.test(t)))try{var r=L.call(e,t);if(r||ye.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(fe){B(t,!0)}return n(t,j,null,[e]).length>0},n.contains=function(e,t){return(e.ownerDocument||e)!=j&&f(e),Se.contains(e,t)},n.attr=function(e,t){(e.ownerDocument||e)!=j&&f(e);var n=E.attrHandle[t.toLowerCase()],r=n&&he.call(E.attrHandle,t.toLowerCase())?n(e,t,!N):undefined;return r!==undefined?r:e.getAttribute(t)},n.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},Se.uniqueSort=function(e){var t,n=[],r=0,i=0;if(D=!ye.sortStable,A=!ye.sortStable&&ue.call(e,0),Ee.call(e,_),D){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)$e.call(e,n[r],1)}return A=null,e},Se.fn.uniqueSort=function(){return this.pushStack(Se.uniqueSort(ue.apply(this)))},(E=Se.expr={cacheLength:50,createPseudo:i,match:ee,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(oe,se),e[3]=(e[3]||e[4]||e[5]||"").replace(oe,se),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||n.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&n.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return ee.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&K.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(oe,se).toLowerCase();return"*"===e?function(){return!0}:function(e){return o(e,t)}},CLASS:function(e){var t=W[e+" "];return t||(t=new RegExp("(^|"+Ae+")"+e+"("+Ae+"|$)"))&&W(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,r){return function(i){var o=n.attr(i,e);return null==o?"!="===t:!t||(o+="","="===t?o===r:"!="===t?o!==r:"^="===t?r&&0===o.indexOf(r):"*="===t?r&&o.indexOf(r)>-1:"$="===t?r&&o.slice(-r.length)===r:"~="===t?(" "+o.replace(V," ")+" ").indexOf(r)>-1:"|="===t&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,i){var a="nth"!==e.slice(0,3),s="last"!==e.slice(-4),u="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var c,d,f,p,h,g=a!==s?"nextSibling":"previousSibling",m=t.parentNode,y=u&&t.nodeName.toLowerCase(),v=!l&&!u,b=!1;if(m){if(a){for(;g;){for(f=t;f=f[g];)if(u?o(f,y):1===f.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[s?m.firstChild:m.lastChild],s&&v){for(b=(p=(c=(d=m[O]||(m[O]={}))[e]||[])[0]===R&&c[1])&&c[2],f=p&&m.childNodes[p];f=++p&&f&&f[g]||(b=p=0)||h.pop();)if(1===f.nodeType&&++b&&f===t){d[e]=[R,p,b];break}}else if(v&&(b=p=(c=(d=t[O]||(t[O]={}))[e]||[])[0]===R&&c[1]),!1===b)for(;(f=++p&&f&&f[g]||(b=p=0)||h.pop())&&((u?!o(f,y):1!==f.nodeType)||!++b||(v&&((d=f[O]||(f[O]={}))[e]=[R,b]),f!==t)););return(b-=i)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,t){var r,o=E.pseudos[e]||E.setFilters[e.toLowerCase()]||n.error("unsupported pseudo: "+e);return o[O]?o(t):o.length>1?(r=[e,e,"",t],E.setFilters.hasOwnProperty(e.toLowerCase())?i(function(e,n){for(var r,i=o(e,t),a=i.length;a--;)e[r=de.call(e,i[a])]=!(n[r]=i[a])}):function(e){return o(e,0,r)}):o}},pseudos:{not:i(function(e){var t=[],n=[],r=C(e.replace(De,"$1"));return r[O]?i(function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}}),has:i(function(e){return function(t){return n(e,t).length>0}}),contains:i(function(e){return e=e.replace(oe,se),function(t){return(t.textContent||Se.text(t)).indexOf(e)>-1}}),lang:i(function(e){return Z.test(e||"")||n.error("unsupported lang: "+e),e=e.replace(oe,se).toLowerCase(),function(t){var n;do{if(n=N?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===M},focus:function(e){return e===t()&&j.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:l(!1),disabled:l(!0),checked:function(e){return o(e,"input")&&!!e.checked||o(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!E.pseudos.empty(e)},header:function(e){return ne.test(e.nodeName)},input:function(e){return te.test(e.nodeName)},button:function(e){return o(e,"input")&&"button"===e.type||o(e,"button")},
12
+ text:function(e){var t;return o(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:c(function(){return[0]}),last:c(function(e,t){return[t-1]}),eq:c(function(e,t,n){return[n<0?n+t:n]}),even:c(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:c(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:c(function(e,t,n){var r;for(r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e}),gt:c(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=E.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})E.pseudos[k]=s(k);for(k in{submit:!0,reset:!0})E.pseudos[k]=u(k);p.prototype=E.filters=E.pseudos,E.setFilters=new p,ye.sortStable=O.split("").sort(_).join("")===O,f(),ye.sortDetached=a(function(e){return 1&e.compareDocumentPosition(j.createElement("fieldset"))}),Se.find=n,Se.expr[":"]=Se.expr.pseudos,Se.unique=Se.uniqueSort,n.compile=C,n.select=S,n.setDocument=f,n.tokenize=h,n.escape=Se.escapeSelector,n.getText=Se.text,n.isXML=Se.isXMLDoc,n.selectors=Se.expr,n.support=Se.support,n.uniqueSort=Se.uniqueSort}();var qe=function(e,t,n){for(var r=[],i=n!==undefined;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&Se(e).is(n))break;r.push(e)}return r},Le=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},He=Se.expr.match.needsContext,Oe=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;Se.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?Se.find.matchesSelector(r,e)?[r]:[]:Se.find.matches(e,Se.grep(t,function(e){return 1===e.nodeType}))},Se.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(Se(e).filter(function(){for(t=0;t<r;t++)if(Se.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)Se.find(e,i[t],n);return r>1?Se.uniqueSort(n):n},filter:function(e){return this.pushStack(s(this,e||[],!1))},not:function(e){return this.pushStack(s(this,e||[],!0))},is:function(e){return!!s(this,"string"==typeof e&&He.test(e)?Se(e):e||[],!1).length}});var Re,Pe=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(Se.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||Re,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:Pe.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof Se?t[0]:t,Se.merge(this,Se.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:xe,!0)),Oe.test(r[1])&&Se.isPlainObject(t))for(r in t)ve(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=xe.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):ve(e)?n.ready!==undefined?n.ready(e):e(Se):Se.makeArray(e,this)}).prototype=Se.fn,Re=Se(xe);var We=/^(?:parents|prev(?:Until|All))/,Fe={children:!0,contents:!0,next:!0,prev:!0};Se.fn.extend({has:function(e){var t=Se(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(Se.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&Se(e);if(!He.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&Se.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?Se.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?de.call(Se(e),this[0]):de.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(Se.uniqueSort(Se.merge(this.get(),Se(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),Se.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return qe(e,"parentNode")},parentsUntil:function(e,t,n){return qe(e,"parentNode",n)},next:function(e){return u(e,"nextSibling")},prev:function(e){return u(e,"previousSibling")},nextAll:function(e){return qe(e,"nextSibling")},prevAll:function(e){return qe(e,"previousSibling")},nextUntil:function(e,t,n){return qe(e,"nextSibling",n)},prevUntil:function(e,t,n){return qe(e,"previousSibling",n)},siblings:function(e){return Le((e.parentNode||{}).firstChild,e)},children:function(e){return Le(e.firstChild)},contents:function(e){return null!=e.contentDocument&&se(e.contentDocument)?e.contentDocument:(o(e,"template")&&(e=e.content||e),Se.merge([],e.childNodes))}},function(e,t){Se.fn[e]=function(n,r){var i=Se.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=Se.filter(r,i)),this.length>1&&(Fe[e]||Se.uniqueSort(i),We.test(e)&&i.reverse()),this.pushStack(i)}});var Ie=/[^\x20\t\r\n\f]+/g;Se.Callbacks=function(e){e="string"==typeof e?l(e):Se.extend({},e);var t,n,i,o,a=[],s=[],u=-1,c=function(){for(o=o||e.once,i=t=!0;s.length;u=-1)for(n=s.shift();++u<a.length;)!1===a[u].apply(n[0],n[1])&&e.stopOnFalse&&(u=a.length,n=!1);e.memory||(n=!1),t=!1,o&&(a=n?[]:"")},d={add:function(){return a&&(n&&!t&&(u=a.length-1,s.push(n)),function i(t){Se.each(t,function(t,n){ve(n)?e.unique&&d.has(n)||a.push(n):n&&n.length&&"string"!==r(n)&&i(n)})}(arguments),n&&!t&&c()),this},remove:function(){return Se.each(arguments,function(e,t){for(var n;(n=Se.inArray(t,a,n))>-1;)a.splice(n,1),n<=u&&u--}),this},has:function(e){return e?Se.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return o=s=[],a=n="",this},disabled:function(){return!a},lock:function(){return o=s=[],n||t||(a=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=[e,(n=n||[]).slice?n.slice():n],s.push(n),t||c()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!i}};return d},Se.extend({Deferred:function(t){var n=[["notify","progress",Se.Callbacks("memory"),Se.Callbacks("memory"),2],["resolve","done",Se.Callbacks("once memory"),Se.Callbacks("once memory"),0,"resolved"],["reject","fail",Se.Callbacks("once memory"),Se.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},"catch":function(e){return i.then(null,e)},pipe:function(){var e=arguments;return Se.Deferred(function(t){Se.each(n,function(n,r){var i=ve(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&ve(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){function o(t,n,r,i){return function(){var s=this,u=arguments,l=function(){var e,l;if(!(t<a)){if((e=r.apply(s,u))===n.promise())throw new TypeError("Thenable self-resolution");l=e&&("object"==typeof e||"function"==typeof e)&&e.then,ve(l)?i?l.call(e,o(a,n,c,i),o(a,n,d,i)):(a++,l.call(e,o(a,n,c,i),o(a,n,d,i),o(a,n,c,n.notifyWith))):(r!==c&&(s=undefined,u=[e]),(i||n.resolveWith)(s,u))}},f=i?l:function(){try{l()}catch(e){Se.Deferred.exceptionHook&&Se.Deferred.exceptionHook(e,f.error),t+1>=a&&(r!==d&&(s=undefined,u=[e]),n.rejectWith(s,u))}};t?f():(Se.Deferred.getErrorHook?f.error=Se.Deferred.getErrorHook():Se.Deferred.getStackHook&&(f.error=Se.Deferred.getStackHook()),e.setTimeout(f))}}var a=0;return Se.Deferred(function(e){n[0][3].add(o(0,e,ve(i)?i:c,e.notifyWith)),n[1][3].add(o(0,e,ve(t)?t:c)),n[2][3].add(o(0,e,ve(r)?r:d))}).promise()},promise:function(e){return null!=e?Se.extend(e,i):i}},o={};return Se.each(n,function(e,t){var a=t[2],s=t[5];i[t[1]]=a.add,s&&a.add(function(){r=s},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),a.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?undefined:this,arguments),this},o[t[0]+"With"]=a.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=ue.call(arguments),o=Se.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?ue.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(f(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||ve(i[n]&&i[n].then)))return o.then();for(;n--;)f(i[n],a(n),o.reject);return o.promise()}});var Be=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;Se.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&Be.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},Se.readyException=function(t){e.setTimeout(function(){throw t})};var _e=Se.Deferred();Se.fn.ready=function(e){return _e.then(e)["catch"](function(e){Se.readyException(e)}),this},Se.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--Se.readyWait:Se.isReady)||(Se.isReady=!0,!0!==e&&--Se.readyWait>0||_e.resolveWith(xe,[Se]))}}),Se.ready.then=_e.then,"complete"===xe.readyState||"loading"!==xe.readyState&&!xe.documentElement.doScroll?e.setTimeout(Se.ready):(xe.addEventListener("DOMContentLoaded",p),e.addEventListener("load",p));var ze=function(e,t,n,i,o,a,s){var u=0,l=e.length,c=null==n;if("object"===r(n))for(u in o=!0,n)ze(e,t,u,n[u],!0,a,s);else if(i!==undefined&&(o=!0,ve(i)||(s=!0),c&&(s?(t.call(e,i),t=null):(c=t,t=function(e,t,n){return c.call(Se(e),n)})),t))for(;u<l;u++)t(e[u],n,s?i:i.call(e[u],u,t(e[u],n)));return o?e:c?t.call(e):l?t(e[0],n):a},Ue=/^-ms-/,Xe=/-([a-z])/g,Qe=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};m.uid=1,m.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Qe(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[g(t)]=n;else for(r in t)i[g(r)]=t[r];return i},get:function(e,t){return t===undefined?this.cache(e):e[this.expando]&&e[this.expando][g(t)]},access:function(e,t,n){return t===undefined||t&&"string"==typeof t&&n===undefined?this.get(e,t):(this.set(e,t,n),n!==undefined?n:t)},remove:function(e,t){var n,r=e[this.expando];if(r!==undefined){if(t!==undefined){n=(t=Array.isArray(t)?t.map(g):(t=g(t))in r?[t]:t.match(Ie)||[]).length;for(;n--;)delete r[t[n]]}(t===undefined||Se.isEmptyObject(r))&&(e.nodeType?e[this.expando]=undefined:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return t!==undefined&&!Se.isEmptyObject(t)}};var Ve=new m,Ye=new m,Je=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ge=/[A-Z]/g;Se.extend({hasData:function(e){return Ye.hasData(e)||Ve.hasData(e)},data:function(e,t,n){return Ye.access(e,t,n)},removeData:function(e,t){Ye.remove(e,t)},_data:function(e,t,n){return Ve.access(e,t,n)},_removeData:function(e,t){Ve.remove(e,t)}}),Se.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(e===undefined){if(this.length&&(i=Ye.get(o),1===o.nodeType&&!Ve.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=g(r.slice(5)),v(o,r,i[r]));Ve.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){Ye.set(this,e)}):ze(this,function(t){var n;if(o&&t===undefined)return(n=Ye.get(o,e))!==undefined?n:(n=v(o,e))!==undefined?n:void 0;this.each(function(){Ye.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Ye.remove(this,e)})}}),Se.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Ve.get(e,t),n&&(!r||Array.isArray(n)?r=Ve.access(e,t,Se.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=Se.queue(e,t),r=n.length,i=n.shift(),o=Se._queueHooks(e,t),a=function(){Se.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Ve.get(e,n)||Ve.access(e,n,{empty:Se.Callbacks("once memory").add(function(){Ve.remove(e,[t+"queue",n])})})}}),Se.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?Se.queue(this[0],e):t===undefined?this:this.each(function(){var n=Se.queue(this,e,t);Se._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&Se.dequeue(this,e)})},dequeue:function(e){return this.each(function(){Se.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=Se.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=undefined),e=e||"fx";a--;)(n=Ve.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var Ke=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ze=new RegExp("^(?:([+-])=|)("+Ke+")([a-z%]*)$","i"),et=["Top","Right","Bottom","Left"],tt=xe.documentElement,nt=function(e){return Se.contains(e.ownerDocument,e)},rt={composed:!0};tt.getRootNode&&(nt=function(e){return Se.contains(e.ownerDocument,e)||e.getRootNode(rt)===e.ownerDocument});var it=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&nt(e)&&"none"===Se.css(e,"display")},ot={};Se.fn.extend({show:function(){return w(this,!0)},hide:function(){return w(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){it(this)?Se(this).show():Se(this).hide()})}});var at,st,ut=/^(?:checkbox|radio)$/i,lt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ct=/^$|^module$|\/(?:java|ecma)script/i;at=xe.createDocumentFragment().appendChild(xe.createElement("div")),(st=xe.createElement("input")).setAttribute("type","radio"),st.setAttribute("checked","checked"),st.setAttribute("name","t"),at.appendChild(st),ye.checkClone=at.cloneNode(!0).cloneNode(!0).lastChild.checked,at.innerHTML="<textarea>x</textarea>",ye.noCloneChecked=!!at.cloneNode(!0).lastChild.defaultValue,at.innerHTML="<option></option>",ye.option=!!at.lastChild;var dt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};dt.tbody=dt.tfoot=dt.colgroup=dt.caption=dt.thead,dt.th=dt.td,ye.option||(dt.optgroup=dt.option=[1,"<select multiple='multiple'>","</select>"]);var ft=/<|&#?\w+;/,pt=/^([^.]*)(?:\.(.+)|)/;Se.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,d,f,p,h,g,m=Ve.get(e);if(Qe(e))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&Se.find.matchesSelector(tt,i),n.guid||(n.guid=Se.guid++),(u=m.events)||(u=m.events=Object.create(null)),(a=m.handle)||(a=m.handle=function(t){return void 0!==Se&&Se.event.triggered!==t.type?Se.event.dispatch.apply(e,arguments):undefined}),l=(t=(t||"").match(Ie)||[""]).length;l--;)p=g=(s=pt.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),p&&(d=Se.event.special[p]||{},p=(i?d.delegateType:d.bindType)||p,d=Se.event.special[p]||{},c=Se.extend({type:p,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&Se.expr.match.needsContext.test(i),namespace:h.join(".")},o),(f=u[p])||((f=u[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(p,a)),d.add&&(d.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,c):f.push(c),Se.event.global[p]=!0)},remove:function(e,t,n,r,i){var o,a,s,u,l,c,d,f,p,h,g,m=Ve.hasData(e)&&Ve.get(e);if(m&&(u=m.events)){for(l=(t=(t||"").match(Ie)||[""]).length;l--;)if(p=g=(s=pt.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),p){for(d=Se.event.special[p]||{},f=u[p=(r?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=f.length;o--;)c=f[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(f.splice(o,1),c.selector&&f.delegateCount--,d.remove&&d.remove.call(e,c));a&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,h,m.handle)||Se.removeEvent(e,p,m.handle),delete u[p])}else for(p in u)Se.event.remove(e,p+t[l],n,r,!0);Se.isEmptyObject(u)&&Ve.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=Se.event.fix(e),l=(Ve.get(this,"events")||Object.create(null))[u.type]||[],c=Se.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){for(a=Se.event.handlers.call(this,u,l),t=0;(i=a[t++])&&!u.isPropagationStopped();)for(u.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!u.isImmediatePropagationStopped();)u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,(r=((Se.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))!==undefined&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&e.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)a[i=(r=t[n]).selector+" "]===undefined&&(a[i]=r.needsContext?Se(i,this).index(l)>-1:Se.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(e,t){Object.defineProperty(Se.Event.prototype,e,{enumerable:!0,configurable:!0,get:ve(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[Se.expando]?e:new Se.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return ut.test(t.type)&&t.click&&o(t,"input")&&A(t,"click",!0),!1},trigger:function(e){var t=this||e;return ut.test(t.type)&&t.click&&o(t,"input")&&A(t,"click"),!0},_default:function(e){var t=e.target;return ut.test(t.type)&&t.click&&o(t,"input")&&Ve.get(t,"click")||o(t,"a")}},beforeunload:{postDispatch:function(e){e.result!==undefined&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},Se.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},Se.Event=function(e,t){if(!(this instanceof Se.Event))return new Se.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.defaultPrevented===undefined&&!1===e.returnValue?k:E,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&Se.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[Se.expando]=!0},Se.Event.prototype={constructor:Se.Event,isDefaultPrevented:E,isPropagationStopped:E,isImmediatePropagationStopped:E,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=k,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=k,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=k,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},Se.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},Se.event.addProp),Se.each({focus:"focusin",blur:"focusout"},function(e,t){function n(e){if(xe.documentMode){var n=Ve.get(this,"handle"),r=Se.event.fix(e);r.type="focusin"===e.type?"focus":"blur",r.isSimulated=!0,n(e),r.target===r.currentTarget&&n(r)}else Se.event.simulate(t,e.target,Se.event.fix(e))}Se.event.special[e]={setup:function(){var r;if(A(this,e,!0),!xe.documentMode)return!1;(r=Ve.get(this,t))||this.addEventListener(t,n),Ve.set(this,t,(r||0)+1)},trigger:function(){return A(this,e),!0},teardown:function(){var e;if(!xe.documentMode)return!1;(e=Ve.get(this,t)-1)?Ve.set(this,t,e):(this.removeEventListener(t,n),Ve.remove(this,t))},_default:function(t){return Ve.get(t.target,e)},delegateType:t},Se.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=xe.documentMode?this:r,o=Ve.get(i,t);o||(xe.documentMode?this.addEventListener(t,n):r.addEventListener(e,n,!0)),Ve.set(i,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=xe.documentMode?this:r,o=Ve.get(i,t)-1;o?Ve.set(i,t,o):(xe.documentMode?this.removeEventListener(t,n):r.removeEventListener(e,n,!0),Ve.remove(i,t))}}}),Se.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){Se.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||Se.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),Se.fn.extend({on:function(e,t,n,r){return $(this,e,t,n,r)},one:function(e,t,n,r){return $(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,Se(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=undefined),!1===n&&(n=E),this.each(function(){Se.event.remove(this,e,n,t)})}});var ht=/<script|<style|<link/i,gt=/checked\s*(?:[^=]|=\s*.checked.)/i,mt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;Se.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),u=nt(e);if(!(ye.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||Se.isXMLDoc(e)))for(a=T(s),r=0,i=(o=T(e)).length;r<i;r++)q(o[r],a[r]);if(t)if(n)for(o=o||T(e),a=a||T(s),r=0,i=o.length;r<i;r++)N(o[r],a[r]);else N(e,s);return(a=T(s,"script")).length>0&&C(a,!u&&T(e,"script")),s},cleanData:function(e){for(var t,n,r,i=Se.event.special,o=0;(n=e[o])!==undefined;o++)if(Qe(n)){if(t=n[Ve.expando]){if(t.events)for(r in t.events)i[r]?Se.event.remove(n,r):Se.removeEvent(n,r,t.handle);n[Ve.expando]=undefined}n[Ye.expando]&&(n[Ye.expando]=undefined)}}}),Se.fn.extend({detach:function(e){return H(this,e,!0)},remove:function(e){return H(this,e)},text:function(e){return ze(this,function(e){return e===undefined?Se.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return L(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||D(this,e).appendChild(e)})},prepend:function(){return L(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=D(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return L(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return L(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(Se.cleanData(T(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return Se.clone(this,e,t)})},html:function(e){return ze(this,function(e){var t=this[0]||{},n=0,r=this.length;if(e===undefined&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ht.test(e)&&!dt[(lt.exec(e)||["",""])[1].toLowerCase()]){e=Se.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(Se.cleanData(T(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return L(this,arguments,function(t){var n=this.parentNode;Se.inArray(this,e)<0&&(Se.cleanData(T(this)),n&&n.replaceChild(t,this))},e)}}),Se.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){Se.fn[e]=function(e){for(var n,r=[],i=Se(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),Se(i[a])[t](n),ce.apply(r,n.get());return this.pushStack(r)}});var yt=new RegExp("^("+Ke+")(?!px)[a-z%]+$","i"),vt=/^--/,bt=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},xt=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},wt=new RegExp(et.join("|"),"i");!function(){function t(){if(c){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",tt.appendChild(l).appendChild(c);var t=e.getComputedStyle(c);r="1%"!==t.top,u=12===n(t.marginLeft),c.style.right="60%",a=36===n(t.right),i=36===n(t.width),c.style.position="absolute",o=12===n(c.offsetWidth/3),tt.removeChild(l),c=null}}function n(e){return Math.round(parseFloat(e))}var r,i,o,a,s,u,l=xe.createElement("div"),c=xe.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",ye.clearCloneStyle="content-box"===c.style.backgroundClip,Se.extend(ye,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),r},reliableMarginLeft:function(){return t(),u},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,n,r,i;return null==s&&(t=xe.createElement("table"),n=xe.createElement("tr"),r=xe.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",n.style.cssText="box-sizing:content-box;border:1px solid",n.style.height="1px",r.style.height="9px",r.style.display="block",tt.appendChild(t).appendChild(n).appendChild(r),i=e.getComputedStyle(n),s=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===n.offsetHeight,tt.removeChild(t)),s}}))}();var Tt=["Webkit","Moz","ms"],Ct=xe.createElement("div").style,St={},kt=/^(none|table(?!-c[ea]).+)/,Et={position:"absolute",visibility:"hidden",display:"block"},$t={letterSpacing:"0",fontWeight:"400"};Se.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=O(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=g(t),u=vt.test(t),l=e.style;if(u||(t=W(s)),a=Se.cssHooks[t]||Se.cssHooks[s],n===undefined)return a&&"get"in a&&(i=a.get(e,!1,r))!==undefined?i:l[t];"string"===(o=typeof n)&&(i=Ze.exec(n))&&i[1]&&(n=b(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(Se.cssNumber[s]?"":"px")),ye.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&(n=a.set(e,n,r))===undefined||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=g(t);return vt.test(t)||(t=W(s)),(a=Se.cssHooks[t]||Se.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),i===undefined&&(i=O(e,t,r)),"normal"===i&&t in $t&&(i=$t[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),Se.each(["height","width"],function(e,t){Se.cssHooks[t]={get:function(e,n,r){if(n)return!kt.test(Se.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?B(e,t,r):xt(e,Et,function(){return B(e,t,r)})},set:function(e,n,r){var i,o=bt(e),a=!ye.scrollboxSize()&&"absolute"===o.position,s=(a||r)&&"border-box"===Se.css(e,"boxSizing",!1,o),u=r?I(e,t,r,s,o):0;return s&&a&&(u-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-I(e,t,"border",!1,o)-.5)),u&&(i=Ze.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=Se.css(e,t)),F(e,n,u)}}}),Se.cssHooks.marginLeft=R(ye.reliableMarginLeft,function(e,t){if(t)return(parseFloat(O(e,"marginLeft"))||e.getBoundingClientRect().left-xt(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),Se.each({margin:"",padding:"",border:"Width"},function(e,t){Se.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+et[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(Se.cssHooks[e+t].set=F)}),Se.fn.extend({css:function(e,t){return ze(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=bt(e),i=t.length;a<i;a++)o[t[a]]=Se.css(e,t[a],!1,r);return o}return n!==undefined?Se.style(e,t,n):Se.css(e,t)},e,t,arguments.length>1)}}),Se.Tween=_,_.prototype={constructor:_,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||Se.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(Se.cssNumber[n]?"":"px")},cur:function(){var e=_.propHooks[this.prop];return e&&e.get?e.get(this):_.propHooks._default.get(this)},run:function(e){var t,n=_.propHooks[this.prop];return this.options.duration?this.pos=t=Se.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):_.propHooks._default.set(this),this}},_.prototype.init.prototype=_.prototype,_.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=Se.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){Se.fx.step[e.prop]?Se.fx.step[e.prop](e):1!==e.elem.nodeType||!Se.cssHooks[e.prop]&&null==e.elem.style[W(e.prop)]?e.elem[e.prop]=e.now:Se.style(e.elem,e.prop,e.now+e.unit)}}},_.propHooks.scrollTop=_.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},Se.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},Se.fx=_.prototype.init,Se.fx.step={};var At,Dt,jt=/^(?:toggle|show|hide)$/,Mt=/queueHooks$/;Se.Animation=Se.extend(J,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return b(n.elem,e,Ze.exec(t),n),n}]},tweener:function(e,t){ve(e)?(t=e,e=["*"]):e=e.match(Ie);for(var n,r=0,i=e.length;r<i;r++)n=e[r],J.tweeners[n]=J.tweeners[n]||[],J.tweeners[n].unshift(t)},prefilters:[V],prefilter:function(e,t){t?J.prefilters.unshift(e):J.prefilters.push(e)}}),Se.speed=function(e,t,n){var r=e&&"object"==typeof e?Se.extend({},e):{complete:n||!n&&t||ve(e)&&e,duration:e,easing:n&&t||t&&!ve(t)&&t};return Se.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in Se.fx.speeds?r.duration=Se.fx.speeds[r.duration]:r.duration=Se.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){ve(r.old)&&r.old.call(this),r.queue&&Se.dequeue(this,r.queue)},r},Se.fn.extend({fadeTo:function(e,t,n,r){return this.filter(it).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=Se.isEmptyObject(e),o=Se.speed(t,n,r),a=function(){var t=J(this,Se.extend({},e),o);(i||Ve.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=undefined),t&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=Se.timers,a=Ve.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&Mt.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||Se.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=Ve.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=Se.timers,a=r?r.length:0;for(n.finish=!0,Se.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),Se.each(["toggle","show","hide"],function(e,t){var n=Se.fn[t];Se.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(X(t,!0),e,r,i)}}),Se.each({slideDown:X("show"),slideUp:X("hide"),slideToggle:X("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){Se.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),Se.timers=[],Se.fx.tick=function(){var e,t=0,n=Se.timers;for(At=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||Se.fx.stop(),At=undefined},Se.fx.timer=function(e){Se.timers.push(e),Se.fx.start()},Se.fx.interval=13,Se.fx.start=function(){Dt||(Dt=!0,z())},Se.fx.stop=function(){Dt=null},Se.fx.speeds={slow:600,fast:200,_default:400},Se.fn.delay=function(t,n){return t=Se.fx&&Se.fx.speeds[t]||t,n=n||"fx",this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})},function(){
13
+ var e=xe.createElement("input"),t=xe.createElement("select").appendChild(xe.createElement("option"));e.type="checkbox",ye.checkOn=""!==e.value,ye.optSelected=t.selected,(e=xe.createElement("input")).value="t",e.type="radio",ye.radioValue="t"===e.value}();var Nt,qt=Se.expr.attrHandle;Se.fn.extend({attr:function(e,t){return ze(this,Se.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){Se.removeAttr(this,e)})}}),Se.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?Se.prop(e,t,n):(1===o&&Se.isXMLDoc(e)||(i=Se.attrHooks[t.toLowerCase()]||(Se.expr.match.bool.test(t)?Nt:undefined)),n!==undefined?null===n?void Se.removeAttr(e,t):i&&"set"in i&&(r=i.set(e,n,t))!==undefined?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=Se.find.attr(e,t))?undefined:r)},attrHooks:{type:{set:function(e,t){if(!ye.radioValue&&"radio"===t&&o(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(Ie);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),Nt={set:function(e,t,n){return!1===t?Se.removeAttr(e,n):e.setAttribute(n,n),n}},Se.each(Se.expr.match.bool.source.match(/\w+/g),function(e,t){var n=qt[t]||Se.find.attr;qt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=qt[a],qt[a]=i,i=null!=n(e,t,r)?a:null,qt[a]=o),i}});var Lt=/^(?:input|select|textarea|button)$/i,Ht=/^(?:a|area)$/i;Se.fn.extend({prop:function(e,t){return ze(this,Se.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[Se.propFix[e]||e]})}}),Se.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&Se.isXMLDoc(e)||(t=Se.propFix[t]||t,i=Se.propHooks[t]),n!==undefined?i&&"set"in i&&(r=i.set(e,n,t))!==undefined?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=Se.find.attr(e,"tabindex");return t?parseInt(t,10):Lt.test(e.nodeName)||Ht.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),ye.optSelected||(Se.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),Se.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){Se.propFix[this.toLowerCase()]=this}),Se.fn.extend({addClass:function(e){var t,n,r,i,o,a;return ve(e)?this.each(function(t){Se(this).addClass(e.call(this,t,K(this)))}):(t=Z(e)).length?this.each(function(){if(r=K(this),n=1===this.nodeType&&" "+G(r)+" "){for(o=0;o<t.length;o++)i=t[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=G(n),r!==a&&this.setAttribute("class",a)}}):this},removeClass:function(e){var t,n,r,i,o,a;return ve(e)?this.each(function(t){Se(this).removeClass(e.call(this,t,K(this)))}):arguments.length?(t=Z(e)).length?this.each(function(){if(r=K(this),n=1===this.nodeType&&" "+G(r)+" "){for(o=0;o<t.length;o++)for(i=t[o];n.indexOf(" "+i+" ")>-1;)n=n.replace(" "+i+" "," ");a=G(n),r!==a&&this.setAttribute("class",a)}}):this:this.attr("class","")},toggleClass:function(e,t){var n,r,i,o,a=typeof e,s="string"===a||Array.isArray(e);return ve(e)?this.each(function(n){Se(this).toggleClass(e.call(this,n,K(this),t),t)}):"boolean"==typeof t&&s?t?this.addClass(e):this.removeClass(e):(n=Z(e),this.each(function(){if(s)for(o=Se(this),i=0;i<n.length;i++)r=n[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else e!==undefined&&"boolean"!==a||((r=K(this))&&Ve.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===e?"":Ve.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+G(K(n))+" ").indexOf(t)>-1)return!0;return!1}});var Ot=/\r/g;Se.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=ve(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,Se(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=Se.map(i,function(e){return null==e?"":e+""})),(t=Se.valHooks[this.type]||Se.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&t.set(this,i,"value")!==undefined||(this.value=i))})):i?(t=Se.valHooks[i.type]||Se.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&(n=t.get(i,"value"))!==undefined?n:"string"==typeof(n=i.value)?n.replace(Ot,""):null==n?"":n:void 0}}),Se.extend({valHooks:{option:{get:function(e){var t=Se.find.attr(e,"value");return null!=t?t:G(Se.text(e))}},select:{get:function(e){var t,n,r,i=e.options,a=e.selectedIndex,s="select-one"===e.type,u=s?null:[],l=s?a+1:i.length;for(r=a<0?l:s?a:0;r<l;r++)if(((n=i[r]).selected||r===a)&&!n.disabled&&(!n.parentNode.disabled||!o(n.parentNode,"optgroup"))){if(t=Se(n).val(),s)return t;u.push(t)}return u},set:function(e,t){for(var n,r,i=e.options,o=Se.makeArray(t),a=i.length;a--;)((r=i[a]).selected=Se.inArray(Se.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),Se.each(["radio","checkbox"],function(){Se.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=Se.inArray(Se(e).val(),t)>-1}},ye.checkOn||(Se.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Rt=e.location,Pt={guid:Date.now()},Wt=/\?/;Se.parseXML=function(t){var n,r;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(i){}return r=n&&n.getElementsByTagName("parsererror")[0],n&&!r||Se.error("Invalid XML: "+(r?Se.map(r.childNodes,function(e){return e.textContent}).join("\n"):t)),n};var Ft=/^(?:focusinfocus|focusoutblur)$/,It=function(e){e.stopPropagation()};Se.extend(Se.event,{trigger:function(t,n,r,i){var o,a,s,u,l,c,d,f,p=[r||xe],h=he.call(t,"type")?t.type:t,g=he.call(t,"namespace")?t.namespace.split("."):[];if(a=f=s=r=r||xe,3!==r.nodeType&&8!==r.nodeType&&!Ft.test(h+Se.event.triggered)&&(h.indexOf(".")>-1&&(h=(g=h.split(".")).shift(),g.sort()),l=h.indexOf(":")<0&&"on"+h,(t=t[Se.expando]?t:new Se.Event(h,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=undefined,t.target||(t.target=r),n=null==n?[t]:Se.makeArray(n,[t]),d=Se.event.special[h]||{},i||!d.trigger||!1!==d.trigger.apply(r,n))){if(!i&&!d.noBubble&&!be(r)){for(u=d.delegateType||h,Ft.test(u+h)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(r.ownerDocument||xe)&&p.push(s.defaultView||s.parentWindow||e)}for(o=0;(a=p[o++])&&!t.isPropagationStopped();)f=a,t.type=o>1?u:d.bindType||h,(c=(Ve.get(a,"events")||Object.create(null))[t.type]&&Ve.get(a,"handle"))&&c.apply(a,n),(c=l&&a[l])&&c.apply&&Qe(a)&&(t.result=c.apply(a,n),!1===t.result&&t.preventDefault());return t.type=h,i||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),n)||!Qe(r)||l&&ve(r[h])&&!be(r)&&((s=r[l])&&(r[l]=null),Se.event.triggered=h,t.isPropagationStopped()&&f.addEventListener(h,It),r[h](),t.isPropagationStopped()&&f.removeEventListener(h,It),Se.event.triggered=undefined,s&&(r[l]=s)),t.result}},simulate:function(e,t,n){var r=Se.extend(new Se.Event,n,{type:e,isSimulated:!0});Se.event.trigger(r,null,t)}}),Se.fn.extend({trigger:function(e,t){return this.each(function(){Se.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return Se.event.trigger(e,t,n,!0)}});var Bt=/\[\]$/,_t=/\r?\n/g,zt=/^(?:submit|button|image|reset|file)$/i,Ut=/^(?:input|select|textarea|keygen)/i;Se.param=function(e,t){var n,r=[],i=function(e,t){var n=ve(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!Se.isPlainObject(e))Se.each(e,function(){i(this.name,this.value)});else for(n in e)ee(n,e[n],t,i);return r.join("&")},Se.fn.extend({serialize:function(){return Se.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=Se.prop(this,"elements");return e?Se.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!Se(this).is(":disabled")&&Ut.test(this.nodeName)&&!zt.test(e)&&(this.checked||!ut.test(e))}).map(function(e,t){var n=Se(this).val();return null==n?null:Array.isArray(n)?Se.map(n,function(e){return{name:t.name,value:e.replace(_t,"\r\n")}}):{name:t.name,value:n.replace(_t,"\r\n")}}).get()}});var Xt=/%20/g,Qt=/#.*$/,Vt=/([?&])_=[^&]*/,Yt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Jt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Gt=/^(?:GET|HEAD)$/,Kt=/^\/\//,Zt={},en={},tn="*/".concat("*"),nn=xe.createElement("a");nn.href=Rt.href,Se.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Rt.href,type:"GET",isLocal:Jt.test(Rt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":tn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":Se.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?re(re(e,Se.ajaxSettings),t):re(Se.ajaxSettings,e)},ajaxPrefilter:te(Zt),ajaxTransport:te(en),ajax:function(t,n){function r(t,n,r,s){var l,f,p,x,w,T=n;c||(c=!0,u&&e.clearTimeout(u),i=undefined,a=s||"",C.readyState=t>0?4:0,l=t>=200&&t<300||304===t,r&&(x=ie(h,C,r)),!l&&Se.inArray("script",h.dataTypes)>-1&&Se.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),x=oe(h,x,C,l),l?(h.ifModified&&((w=C.getResponseHeader("Last-Modified"))&&(Se.lastModified[o]=w),(w=C.getResponseHeader("etag"))&&(Se.etag[o]=w)),204===t||"HEAD"===h.type?T="nocontent":304===t?T="notmodified":(T=x.state,f=x.data,l=!(p=x.error))):(p=T,!t&&T||(T="error",t<0&&(t=0))),C.status=t,C.statusText=(n||T)+"",l?y.resolveWith(g,[f,T,C]):y.rejectWith(g,[C,T,p]),C.statusCode(b),b=undefined,d&&m.trigger(l?"ajaxSuccess":"ajaxError",[C,h,l?f:p]),v.fireWith(g,[C,T]),d&&(m.trigger("ajaxComplete",[C,h]),--Se.active||Se.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=undefined),n=n||{};var i,o,a,s,u,l,c,d,f,p,h=Se.ajaxSetup({},n),g=h.context||h,m=h.context&&(g.nodeType||g.jquery)?Se(g):Se.event,y=Se.Deferred(),v=Se.Callbacks("once memory"),b=h.statusCode||{},x={},w={},T="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=Yt.exec(a);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)C.always(e[C.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||T;return i&&i.abort(t),r(0,t),this}};if(y.promise(C),h.url=((t||h.url||Rt.href)+"").replace(Kt,Rt.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(Ie)||[""],null==h.crossDomain){l=xe.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=nn.protocol+"//"+nn.host!=l.protocol+"//"+l.host}catch(S){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=Se.param(h.data,h.traditional)),ne(Zt,h,n,C),c)return C;for(f in(d=Se.event&&h.global)&&0==Se.active++&&Se.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Gt.test(h.type),o=h.url.replace(Qt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Xt,"+")):(p=h.url.slice(o.length),h.data&&(h.processData||"string"==typeof h.data)&&(o+=(Wt.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(Vt,"$1"),p=(Wt.test(o)?"&":"?")+"_="+Pt.guid+++p),h.url=o+p),h.ifModified&&(Se.lastModified[o]&&C.setRequestHeader("If-Modified-Since",Se.lastModified[o]),Se.etag[o]&&C.setRequestHeader("If-None-Match",Se.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||n.contentType)&&C.setRequestHeader("Content-Type",h.contentType),C.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+tn+"; q=0.01":""):h.accepts["*"]),h.headers)C.setRequestHeader(f,h.headers[f]);if(h.beforeSend&&(!1===h.beforeSend.call(g,C,h)||c))return C.abort();if(T="abort",v.add(h.complete),C.done(h.success),C.fail(h.error),i=ne(en,h,n,C)){if(C.readyState=1,d&&m.trigger("ajaxSend",[C,h]),c)return C;h.async&&h.timeout>0&&(u=e.setTimeout(function(){C.abort("timeout")},h.timeout));try{c=!1,i.send(x,r)}catch(S){if(c)throw S;r(-1,S)}}else r(-1,"No Transport");return C},getJSON:function(e,t,n){return Se.get(e,t,n,"json")},getScript:function(e,t){return Se.get(e,undefined,t,"script")}}),Se.each(["get","post"],function(e,t){Se[t]=function(e,n,r,i){return ve(n)&&(i=i||r,r=n,n=undefined),Se.ajax(Se.extend({url:e,type:t,dataType:i,data:n,success:r},Se.isPlainObject(e)&&e))}}),Se.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),Se._evalUrl=function(e,t,n){return Se.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){Se.globalEval(e,t,n)}})},Se.fn.extend({wrapAll:function(e){var t;return this[0]&&(ve(e)&&(e=e.call(this[0])),t=Se(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return ve(e)?this.each(function(t){Se(this).wrapInner(e.call(this,t))}):this.each(function(){var t=Se(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=ve(e);return this.each(function(n){Se(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){Se(this).replaceWith(this.childNodes)}),this}}),Se.expr.pseudos.hidden=function(e){return!Se.expr.pseudos.visible(e)},Se.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},Se.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(t){}};var rn={0:200,1223:204},on=Se.ajaxSettings.xhr();ye.cors=!!on&&"withCredentials"in on,ye.ajax=on=!!on,Se.ajaxTransport(function(t){var n,r;if(ye.cors||on&&!t.crossDomain)return{send:function(i,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);n=function(e){return function(){n&&(n=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(rn[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),r=s.onerror=s.ontimeout=n("error"),s.onabort!==undefined?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(u){if(n)throw u}},abort:function(){n&&n()}}}),Se.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),Se.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return Se.globalEval(e),e}}}),Se.ajaxPrefilter("script",function(e){e.cache===undefined&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),Se.ajaxTransport("script",function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=Se("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),xe.head.appendChild(t[0])},abort:function(){n&&n()}}});var an,sn=[],un=/(=)\?(?=&|$)|\?\?/;Se.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=sn.pop()||Se.expando+"_"+Pt.guid++;return this[e]=!0,e}}),Se.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,a,s=!1!==t.jsonp&&(un.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&un.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=ve(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(un,"$1"+i):!1!==t.jsonp&&(t.url+=(Wt.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||Se.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always(function(){o===undefined?Se(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,sn.push(i)),a&&ve(o)&&o(a[0]),a=o=undefined}),"script"}),ye.createHTMLDocument=((an=xe.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===an.childNodes.length),Se.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(ye.createHTMLDocument?((r=(t=xe.implementation.createHTMLDocument("")).createElement("base")).href=xe.location.href,t.head.appendChild(r)):t=xe),o=!n&&[],(i=Oe.exec(e))?[t.createElement(i[1])]:(i=S([e],t,o),o&&o.length&&Se(o).remove(),Se.merge([],i.childNodes)));var r,i,o},Se.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=G(e.slice(s)),e=e.slice(0,s)),ve(t)?(n=t,t=undefined):t&&"object"==typeof t&&(i="POST"),a.length>0&&Se.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?Se("<div>").append(Se.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},Se.expr.pseudos.animated=function(e){return Se.grep(Se.timers,function(t){return e===t.elem}).length},Se.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=Se.css(e,"position"),c=Se(e),d={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=Se.css(e,"top"),u=Se.css(e,"left"),("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),ve(t)&&(t=t.call(e,n,Se.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):c.css(d)}},Se.fn.extend({offset:function(e){if(arguments.length)return e===undefined?this:this.each(function(t){Se.offset.setOffset(this,e,t)});var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===Se.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===Se.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=Se(e).offset()).top+=Se.css(e,"borderTopWidth",!0),i.left+=Se.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-Se.css(r,"marginTop",!0),left:t.left-i.left-Se.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===Se.css(e,"position");)e=e.offsetParent;return e||tt})}}),Se.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;Se.fn[e]=function(r){return ze(this,function(e,r,i){var o;if(be(e)?o=e:9===e.nodeType&&(o=e.defaultView),i===undefined)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i},e,r,arguments.length)}}),Se.each(["top","left"],function(e,t){Se.cssHooks[t]=R(ye.pixelPosition,function(e,n){if(n)return n=O(e,t),yt.test(n)?Se(e).position()[t]+"px":n})}),Se.each({Height:"height",Width:"width"},function(e,t){Se.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){Se.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return ze(this,function(t,n,i){var o;return be(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):i===undefined?Se.css(t,n,s):Se.style(t,n,i,s)},t,a?i:undefined,a)}})}),Se.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){Se.fn[t]=function(e){return this.on(t,e)}}),Se.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),Se.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){Se.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}});var ln=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;Se.proxy=function(e,t){var n,r,i;return"string"==typeof t&&(n=e[t],t=e,e=n),ve(e)?(r=ue.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(ue.call(arguments)))}).guid=e.guid=e.guid||Se.guid++,i):undefined},Se.holdReady=function(e){e?Se.readyWait++:Se.ready(!0)},Se.isArray=Array.isArray,Se.parseJSON=JSON.parse,Se.nodeName=o,Se.isFunction=ve,Se.isWindow=be,Se.camelCase=g,Se.type=r,Se.now=Date.now,Se.isNumeric=function(e){var t=Se.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},Se.trim=function(e){return null==e?"":(e+"").replace(ln,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return Se});var cn=e.jQuery,dn=e.$;return Se.noConflict=function(t){return e.$===Se&&(e.$=dn),t&&e.jQuery===Se&&(e.jQuery=cn),Se},void 0===t&&(e.jQuery=e.$=Se),Se}),
14
+ /*
15
+ * favcount.js v1.5.0
16
+ * http://chrishunt.co/favcount
17
+ * Dynamically updates the favicon with a number.
18
+ *
19
+ * Copyright 2013, Chris Hunt
20
+ * Released under the MIT license
21
+ */
22
+ function(){function e(e){this.icon=e,this.opacity=.4,this.canvas=document.createElement("canvas"),this.font="Helvetica, Arial, sans-serif"}function t(e){return e=Math.round(e),isNaN(e)||e<1?"":e<10?" "+e:e>99?"99":e}function n(e,t,n,r,i){var o,a,s,u,l,c,d,f=document.getElementsByTagName("head")[0],p=document.createElement("link");p.rel="icon",a=11*(o=r.width/16),u=o,l=11*o,c=o,d=2*o,e.height=e.width=r.width,(s=e.getContext("2d")).font="bold "+a+"px "+n,i&&(s.globalAlpha=t),s.drawImage(r,0,0),s.globalAlpha=1,s.shadowColor="#FFF",s.shadowBlur=d,s.shadowOffsetX=0,s.shadowOffsetY=0,s.fillStyle="#FFF",s.fillText(i,u,l),s.fillText(i,u+c,l),s.fillText(i,u,l+c),s.fillText(i,u+c,l+c),s.fillStyle="#000",s.fillText(i,u+c/2,l+c/2),p.href=e.toDataURL("image/png"),f.removeChild(document.querySelector("link[rel=icon]")),f.appendChild(p)}e.prototype.set=function(e){var r=this,i=document.createElement("img");r.canvas.getContext&&(i.crossOrigin="anonymous",i.onload=function(){n(r.canvas,r.opacity,r.font,i,t(e))},i.src=this.icon)},this.Favcount=e}.call(this),function(){Favcount.VERSION="1.5.0"}.call(this),function(){var e,t=function(e,t){return function(){return e.apply(t,arguments)}};jQuery.expr.pseudos.icontains=function(e,t,n){var r,i;return(null!=(r=null!=(i=e.textContent)?i:e.innerText)?r:"").toUpperCase().indexOf(n[3].toUpperCase())>=0},e=function(){function e(){var e;this.nextTab=t(this.nextTab,this),this.previousTab=t(this.previousTab,this),this.openTab=t(this.openTab,this),this.selectedTab=t(this.selectedTab,this),this.getTab=t(this.getTab,this),$("#messages").on("click","tr",(e=this,function(t){return t.preventDefault(),e.loadMessage($(t.currentTarget).attr("data-message-id"))})),$("input[name=search]").on("keyup",function(e){return function(t){var n;return(n=$.trim($(t.currentTarget).val()))?e.searchMessages(n):e.clearSearch(),e.applyFilters()}}(this)),$("#searchClear").on("click",function(e){return function(t){return t.preventDefault(),$("input[name=search]").val("").focus(),e.clearSearch(),e.applyFilters()}}(this)),$("#attachmentFilter").on("change",function(e){return function(){return e.applyFilters()}}(this)),$("#message").on("click",".views .format.tab a",function(e){return function(t){return t.preventDefault(),e.loadMessageBody(e.selectedMessage(),$($(t.currentTarget).parent("li")).data("message-format"))}}(this)),$("#message iframe").on("load",function(e){return function(){return e.decorateMessageBody()}}(this)),$("#resizer").on("mousedown",function(e){return function(t){var n;return t.preventDefault(),n={mouseup:function(e){return e.preventDefault(),$(window).off(n)},mousemove:function(t){return t.preventDefault(),e.resizeTo(t.clientY)}},$(window).on(n)}}(this)),this.resizeToSaved(),$("nav.app .clear a").on("click",function(e){return function(t){if(t.preventDefault(),confirm("You will lose all your received messages.\n\nAre you sure you want to clear all messages?"))return $.ajax({url:new URL("messages",document.baseURI).toString(),type:"DELETE",success:function(){return e.clearMessages()},error:function(){return alert("Error while clearing all messages.")}})}}(this)),$("nav.app .quit a").on("click",function(e){return function(t){if(t.preventDefault(),confirm("You will lose all your received messages.\n\nAre you sure you want to quit?"))return e.quitting=!0,$.ajax({type:"DELETE",success:function(){return e.hasQuit()},error:function(){return e.quitting=!1,alert("Error while quitting.")}})}}(this)),this.favcount=new Favcount($('link[rel="icon"]').attr("href")),document.addEventListener("keydown",function(e){return function(t){var n;if("search"!==t.target.type){switch(t.code){case"ArrowUp":t.preventDefault(),e.selectedMessage()?e.loadMessage($("#messages tr.selected").prevAll(":visible").first().data("message-id")):e.loadMessage($("#messages tbody tr[data-message-id]").first().data("message-id"));break;case"ArrowDown":t.preventDefault(),e.selectedMessage()?e.loadMessage($("#messages tr.selected").nextAll(":visible").data("message-id")):e.loadMessage($("#messages tbody tr[data-message-id]:first").data("message-id"));break;case"ArrowLeft":t.preventDefault(),e.openTab(e.previousTab());break;case"ArrowRight":t.preventDefault(),e.openTab(e.nextTab());break;case"Backspace":case"Delete":t.preventDefault(),null!=(n=e.selectedMessage())&&$.ajax({url:new URL("messages/"+n,document.baseURI).toString(),type:"DELETE",success:function(){return e.removeMessage(n)},error:function(){return alert("Error while removing message.")}})}if(t.ctrlKey||t.metaKey)switch(t.code){case"ArrowUp":return t.preventDefault(),e.loadMessage($("#messages tbody tr[data-message-id]:visible").first().data("message-id"));case"ArrowDown":return t.preventDefault(),e.loadMessage($("#messages tbody tr[data-message-id]:visible").last().data("message-id"))}}}}(this)),this.refresh(),this.subscribe()}return e.prototype.parseDate=function(e){return"string"==typeof e?new Date(e):e},e.prototype.formatDate=function(e){var t;return"string"==typeof e&&(e=this.parseDate(e)),e?(t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][e.getDay()]+", "+String(e.getDate()).padStart(2,"0")+" "+t[e.getMonth()]+" "+e.getFullYear()+" "+String(e.getHours()).padStart(2,"0")+":"+String(e.getMinutes()).padStart(2,"0")+":"+String(e.getSeconds()).padStart(2,"0")):null},e.prototype.formatSize=function(e){var t,n,r;return e?0===(e=parseInt(e))?"0 B":(n=1024,r=["B","KB","MB","GB"],t=Math.floor(Math.log(e)/Math.log(n)),(e/Math.pow(n,t)).toFixed(2).replace(/\.?0+$/,"")+" "+r[t]):"-"},e.prototype.messagesCount=function(){return $("#messages tr").length-1},e.prototype.updateMessagesCount=function(){return this.favcount.set(this.messagesCount()),document.title="MailCatcher ("+this.messagesCount()+")"},e.prototype.tabs=function(){return $("#message ul").children(".tab")},e.prototype.getTab=function(e){return $(this.tabs()[e])},e.prototype.selectedTab=function(){return this.tabs().index($("#message li.tab.selected"))},e.prototype.openTab=function(e){return this.getTab(e).children("a").click()},e.prototype.previousTab=function(e){var t;return(t=e||0===e?e:this.selectedTab()-1)<0&&(t=this.tabs().length-1),this.getTab(t).is(":visible")?t:this.previousTab(t-1)},e.prototype.nextTab=function(e){var t;return(t=e||this.selectedTab()+1)>this.tabs().length-1&&(t=0),this.getTab(t).is(":visible")?t:this.nextTab(t+1)},e.prototype.haveMessage=function(e){return null!=e.id&&(e=e.id),$('#messages tbody tr[data-message-id="'+e+'"]').length>0},e.prototype.selectedMessage=function(){return $("#messages tr.selected").data("message-id")},e.prototype.currentSearchQuery="",e.prototype.currentAttachmentFilter="all",e.prototype.searchMessages=function(e){return this.currentSearchQuery=e,this.applyFilters()},e.prototype.clearSearch=function(){return this.currentSearchQuery="",this.applyFilters()},e.prototype.applyFilters=function(){var e,t,n,r;return e=$("#messages tbody tr"),n=this.currentSearchQuery,t=$("#attachmentFilter").val(),this.currentAttachmentFilter=t,e.each((r=this,function(e,i){var o,a,s,u,l,c,d;if(o=$(i),l=!0,n&&(d=n.split(/\s+/),c=o.text().toUpperCase(),l=d.every(function(e){return c.indexOf(e.toUpperCase())>=0})),a=!0,(u=o.attr("data-message-id"))&&"all"!==t){if(void 0===(s=o.data("has-attachments")))return void $.getJSON("messages/"+u+".json",function(e){return o.data("has-attachments",e.attachments&&e.attachments.length>0),r.applyFilters()});"with"===t?a=s:"without"===t&&(a=!s)}return l&&a?o.show():o.hide()}))},e.prototype.formatSender=function(e){var t;return e?(t=(e=e.replace(/^<(.+?)>$/,"$1")).match(/^(.+?)\s+<(.+?)>$/))?t[1].trim()+" "+t[2].trim():e:""},e.prototype.parseSender=function(e){var t,n;return e?(n=(t=e.replace(/^<(.+?)>$/,"$1")).match(/^(.+?)\s+<(.+?)>$/))?{name:n[1].trim(),email:n[2].trim()}:{name:"",email:t}:{name:"",email:""}},e.prototype.getEmailPreview=function(e,t){var n;return this,e.formats&&(e.formats.includes("plain")||e.formats.includes("html"))?(n=e.formats.includes("plain")?"plain":"html",$.ajax({url:"messages/"+e.id+"."+n,type:"GET",success:function(e){var n;if((n=(n=e.replace(/<[^>]*>/g,"").trim()).substring(0,100)).length>=100&&(n+="..."),t)return t(n)},error:function(){if(t)return t("")}})):t?t(""):void 0},e.prototype.addMessage=function(e){var t,n,r,i,o,a,s,u,l,c,d,f,p,h,g,m,y,v,b,x;return this.formatSender(e.sender||"No sender"),y=e.attachments&&e.attachments.length>0,f=$("<td/>").addClass("subject-cell"),d=$("<div/>").addClass("subject-text").html("<strong>"+this.escapeHtml(e.subject||"No subject")+"</strong>"),a=$("<div/>").addClass("preview-text").text(""),f.append(d).append(a),i=$("<td/>").addClass("from-cell"),x=this.parseSender(e.sender||""),o=$("<div/>").addClass("sender-text-container"),x.name?(c=$("<div/>").addClass("sender-name").html("<strong>"+this.escapeHtml(x.name)+"</strong>"),l=$("<div/>").addClass("sender-email").text(x.email),o.append(c).append(l)):(l=$("<div/>").addClass("sender-email").text(x.email),o.append(l)),i.append(o).toggleClass("blank",!e.sender),t=$("<td/>").addClass("col-attachments"),y&&t.text("\ud83d\udcce"),n=$("<td/>").addClass("col-bimi"),(r=$("<svg/>").addClass("bimi-placeholder-icon").attr("viewBox","0 0 24 24").attr("fill","none").attr("stroke","currentColor").attr("stroke-width","2")).append($("<circle/>").attr("cx","12").attr("cy","12").attr("r","10")),r.append($("<text/>").attr("x","12").attr("y","13").attr("text-anchor","middle").attr("font-size","10").attr("font-weight","bold").text("B")),n.append(r),p=$("<td/>").addClass("to-cell"),e.recipients&&e.recipients.length>0?(m=e.recipients[0],v=this.parseSender(m),h=$("<div/>").addClass("sender-text-container"),v.name?(u=$("<div/>").addClass("sender-name").html("<strong>"+this.escapeHtml(v.name)+"</strong>"),s=$("<div/>").addClass("sender-email").text(v.email),h.append(u).append(s)):(s=$("<div/>").addClass("sender-email").text(v.email),h.append(s)),p.append(h)):p.addClass("blank").text("No recipients"),(g=$("<tr />").attr("data-message-id",e.id.toString()).append(t).append(n).append(i).append(p).append(f).append($("<td/>").text(this.formatDate(e.created_at))).append($("<td/>").text(this.formatSize(e.size)))).data("has-attachments",y),g.prependTo($("#messages tbody")),b=this,$.getJSON("messages/"+e.id+".json",function(e){var r,i,l,c,d;if(e.from_header&&(o.empty(),(c=b.parseSender(e.from_header)).name?(l=$("<div/>").addClass("sender-name").html("<strong>"+b.escapeHtml(c.name)+"</strong>"),i=$("<div/>").addClass("sender-email").text(c.email),o.append(l).append(i)):(i=$("<div/>").addClass("sender-email").text(c.email),o.append(i))),e.to_header&&(p.empty(),(d=e.to_header.split(",").map(function(e){return e.trim()})).length>0&&(m=d[0],v=b.parseSender(m),h=$("<div/>").addClass("sender-text-container"),v.name?(u=$("<div/>").addClass("sender-name").html("<strong>"+b.escapeHtml(v.name)+"</strong>"),s=$("<div/>").addClass("sender-email").text(v.email),h.append(u).append(s)):(s=$("<div/>").addClass("sender-email").text(v.email),h.append(s)),p.append(h))),e.attachments&&e.attachments.length>0&&(g.data("has-attachments",!0),t.text("\ud83d\udcce")),e.preview_text?a.text(e.preview_text):b.getEmailPreview(e,function(e){return a.text(e)}),e.bimi_location)return n.empty(),r=$("<img/>").addClass("bimi-image").attr("src",e.bimi_location).attr("alt","BIMI"),n.append(r)}),this.updateMessagesCount(),this.applyFilters()},e.prototype.escapeHtml=function(e){var t;return(t=document.createElement("div")).textContent=e,t.innerHTML},e.prototype.removeMessage=function(e){var t,n,r;return(t=(n=$('#messages tbody tr[data-message-id="'+e+'"]')).is(".selected"))&&(r=n.next().data("message-id")||n.prev().data("message-id")),n.remove(),t&&(r?this.loadMessage(r):this.unselectMessage()),this.updateMessagesCount()},e.prototype.clearMessages=function(){return $("#messages tbody tr").remove(),this.unselectMessage(),this.updateMessagesCount()},e.prototype.scrollToRow=function(e){var t,n;return(n=e.offset().top-$("#messages").offset().top)<0?$("#messages").scrollTop($("#messages").scrollTop()+n-20):(t=n+e.height()-$("#messages").height())>0?$("#messages").scrollTop($("#messages").scrollTop()+t+20):void 0},e.prototype.unselectMessage=function(){return $("#messages tbody, #message .metadata dd").empty(),$(".attachments-list").empty(),$(".attachments-column").removeClass("visible"),$("#message iframe").attr("src","about:blank"),null},e.prototype.cleanEmailAddress=function(e){return e?e.replace(/^<(.+)>$/,"$1"):e},e.prototype.loadMessage=function(e){var t,n;if(null!=(null!=e?e.id:void 0)&&(e=e.id),e||(e=$("#messages tr.selected").attr("data-message-id")),null!=e)return $("#messages tbody tr:not([data-message-id='"+e+"'])").removeClass("selected"),(t=$("#messages tbody tr[data-message-id='"+e+"']")).addClass("selected"),this.scrollToRow(t),$.getJSON("messages/"+e+".json",(n=this,function(r){var i,o,a;return(t=$("#messages tbody tr[data-message-id='"+e+"']")).data("has-attachments",r.attachments&&r.attachments.length>0),$("#message .metadata dd.created_at").text(n.formatDate(r.created_at)),r.from_header?$("#message .metadata dd.from").text(n.formatSender(r.from_header)):$("#message .metadata dd.from").text(n.cleanEmailAddress(r.sender)),r.to_header?(a=r.to_header.split(",").map(function(e){return n.formatSender(e.trim())}).join(", "),$("#message .metadata dd.to").text(a)):$("#message .metadata dd.to").text((r.recipients||[]).map(function(e){return n.cleanEmailAddress(e)}).join(", ")),$("#message .metadata dd.subject").text(r.subject),$("#message .views .tab.format").each(function(t,n){var i,o;return o=(i=$(n)).attr("data-message-format"),$.inArray(o,r.formats)>=0?(i.find("a").attr("href","messages/"+e+"."+o),i.show()):i.hide()}),$("#message .views .tab.selected:not(:visible)").length&&($("#message .views .tab.selected").removeClass("selected"),$("#message .views .tab:visible:first").addClass("selected")),r.attachments.length?(i=$(".attachments-list").empty(),o=n,$.each(r.attachments,function(t,n){var r,a,s;return a=$("<li/>"),r=$("<a/>").attr("href","messages/"+e+"/parts/"+n.cid).addClass(n.type.split("/",1)[0]).addClass(n.type.replace("/","-")).text(n.filename),(s=$("<div/>").addClass("attachment-meta")).append($("<div/>").addClass("attachment-size").text(o.formatSize(n.size))),s.append($("<div/>").addClass("attachment-type").text(n.type)),a.append(r).append(s),i.append(a)}),$(".attachments-column").addClass("visible")):$(".attachments-column").removeClass("visible"),$("#message .views .download a").attr("href","messages/"+e+".eml"),n.loadMessageBody()}))},e.prototype.loadMessageBody=function(e,t){if(e||(e=this.selectedMessage()),t||(t=$("#message .views .tab.format.selected").attr("data-message-format")),t||(t="html"),$('#message .views .tab[data-message-format="'+t+'"]:not(.selected)').addClass("selected"),$('#message .views .tab:not([data-message-format="'+t+'"]).selected').removeClass("selected"),null!=e)return $("#message iframe").attr("src","messages/"+e+"."+t)},e.prototype.decorateMessageBody=function(){var e,t,n,r,i;switch($("#message .views .tab.format.selected").attr("data-message-format")){case"html":return e=$("#message iframe").contents().find("body"),$("a",e).attr("target","_blank");case"plain":return(e=(n=$("#message iframe").contents()).find("body")).length?(e.css("font-family","sans-serif"),e.css("white-space","pre-wrap"),e.css("word-wrap","break-word")):(i=(i=(i=(i=(i=(i=n.text()).replace(/&/g,"&amp;")).replace(/</g,"&lt;")).replace(/>/g,"&gt;")).replace(/"/g,"&quot;")).replace(/((http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&amp;:\/~\+#]*[\w\-\@?^=%&amp;\/~\+#])?)/g,'<a href="$1" target="_blank">$1</a>'),n.find("html").html('<body style="font-family: sans-serif; white-space: pre-wrap; word-wrap: break-word">'+i+"</body>"));case"source":if((e=(n=$("#message iframe").contents()).find("body")).length&&(t=e.text()))return r="<body style=\"background: #f5f5f5; color: #1a1a1a; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif; padding: 0; margin: 0; line-height: 1.6;\">\n <div style=\"padding: 20px 28px;\">\n "+('<pre><code class="language-xml">'+t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")+"</code></pre>")+"\n </div>\n</body>",n.find("html").html(r),setTimeout(function(){return n.find("code").each(function(e,t){return hljs.highlightElement(t)})},0)}},e.prototype.refresh=function(){return $.getJSON("messages",(e=this,function(t){return $.each(t,function(t,n){if(!e.haveMessage(n))return e.addMessage(n)}),e.updateMessagesCount()}));var e},e.prototype.subscribe=function(){return"undefined"!=typeof WebSocket&&null!==WebSocket?this.subscribeWebSocket():this.subscribePoll()},e.prototype.reconnectWebSocketAttempts=0,e.prototype.maxReconnectAttempts=10,e.prototype.reconnectBaseDelay=1e3,e.prototype.subscribeWebSocket=function(){var e,t,n;return e="https:"===window.location.protocol,(t=new URL("messages",document.baseURI)).protocol=e?"wss":"ws",this.websocket=new WebSocket(t.toString()),this.websocket.onopen=(n=this,function(){return console.log("[MailCatcher] WebSocket connection established"),n.reconnectWebSocketAttempts=0,n.updateWebSocketStatus(!0)}),this.websocket.onmessage=function(e){return function(t){var n,r;try{if(n=JSON.parse(t.data),console.log("[MailCatcher] WebSocket message received:",n),"add"===n.type)return e.addMessage(n.message);if("remove"===n.type)return e.removeMessage(n.id);if("clear"===n.type)return e.clearMessages();if("quit"===n.type&&!e.quitting)return e.hasQuit()}catch(i){return r=i,console.error("[MailCatcher] Error processing WebSocket message:",r)}}}(this),this.websocket.onerror=function(e){return function(t){return console.error("[MailCatcher] WebSocket error:",t),e.updateWebSocketStatus(!1)}}(this),this.websocket.onclose=function(e){return function(){return console.log("[MailCatcher] WebSocket connection closed"),e.updateWebSocketStatus(!1),e.attemptWebSocketReconnect()}}(this)},e.prototype.subscribePoll=function(){if(null==this.refreshInterval)return this.refreshInterval=setInterval((e=this,function(){return e.refresh()}),1e3);var e},e.prototype.attemptWebSocketReconnect=function(){var e,t;return this.reconnectWebSocketAttempts<this.maxReconnectAttempts?(e=this.reconnectBaseDelay*Math.pow(2,this.reconnectWebSocketAttempts),this.reconnectWebSocketAttempts++,console.log("[MailCatcher] Attempting WebSocket reconnection in "+e+"ms (attempt "+this.reconnectWebSocketAttempts+"/"+this.maxReconnectAttempts+")"),setTimeout((t=this,function(){return t.subscribeWebSocket()}),e)):(console.log("[MailCatcher] Max WebSocket reconnection attempts reached, staying in polling mode"),this.subscribePoll())},e.prototype.resizeToSavedKey="mailcatcherSeparatorHeight",e.prototype.resizeTo=function(e){var t;return $("#messages").css({height:e-$("#messages").offset().top}),null!=(t=window.localStorage)?t.setItem(this.resizeToSavedKey,e):void 0},e.prototype.resizeToSaved=function(){var e,t;if(e=parseInt(null!=(t=window.localStorage)?t.getItem(this.resizeToSavedKey):void 0),!isNaN(e))return this.resizeTo(e)},e.prototype.updateWebSocketStatus=function(e){var t,n;if(t=document.getElementById("websocketStatus"),n=document.getElementById("statusText"),t&&n)return e?(t.classList.remove("disconnected"),n.textContent="Connected"):(t.classList.add("disconnected"),n.textContent="Disconnected")},e.prototype.hasQuit=function(){return console.log("[MailCatcher] Server has quit")},e}(),$(function(){return window.MailCatcher=new e})}.call(this);