/*! jquery v1.9.1 | (c) 2005, 2012 jquery foundation, inc. | jquery.org/license //@ sourcemappingurl=jquery.min.map */(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jquery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexof,m=l.tostring,y=l.hasownproperty,v=p.trim,b=function(e,t){return new b.fn.init(e,t,r)},x=/[+-]?(?:\d*\.|)\d+(?:[ee][+-]?\d+|)/.source,w=/\s+/g,t=/^[\s\ufeff\xa0]+|[\s\ufeff\xa0]+$/g,n=/^(?:(<[\w\w]+>)[^>]*|#([\w-]*))$/,c=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,k=/^[\],:{}\s]*$/,e=/(?:^|:|,)(?:\s*\[)+/g,s=/\\(?:["\\\/bfnrt]|u[\da-fa-f]{4})/g,a=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[ee][+-]?\d+|)/g,j=/^-ms-/,d=/-([\da-z])/gi,l=function(e,t){return t.touppercase()},h=function(e){(o.addeventlistener||"load"===e.type||"complete"===o.readystate)&&(q(),b.ready())},q=function(){o.addeventlistener?(o.removeeventlistener("domcontentloaded",h,!1),e.removeeventlistener("load",h,!1)):(o.detachevent("onreadystatechange",h),e.detachevent("onload",h))};b.fn=b.prototype={jquery:p,constructor:b,init:function(e,n,r){var i,a;if(!e)return this;if("string"==typeof e){if(i="<"===e.charat(0)&&">"===e.charat(e.length-1)&&e.length>=3?[null,e,null]:n.exec(e),!i||!i[1]&&n)return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e);if(i[1]){if(n=n instanceof b?n[0]:n,b.merge(this,b.parsehtml(i[1],n&&n.nodetype?n.ownerdocument||n:o,!0)),c.test(i[1])&&b.isplainobject(n))for(i in n)b.isfunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}if(a=o.getelementbyid(i[2]),a&&a.parentnode){if(a.id!==i[2])return r.find(e);this.length=1,this[0]=a}return this.context=o,this.selector=e,this}return e.nodetype?(this.context=this[0]=e,this.length=1,this):b.isfunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),b.makearray(e,this))},selector:"",length:0,size:function(){return this.length},toarray:function(){return h.call(this)},get:function(e){return null==e?this.toarray():0>e?this[this.length+e]:this[e]},pushstack:function(e){var t=b.merge(this.constructor(),e);return t.prevobject=this,t.context=this.context,t},each:function(e,t){return b.each(this,e,t)},ready:function(e){return b.ready.promise().done(e),this},slice:function(){return this.pushstack(h.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushstack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushstack(b.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevobject||this.constructor(null)},push:d,sort:[].sort,splice:[].splice},b.fn.init.prototype=b.fn,b.extend=b.fn.extend=function(){var e,n,r,i,o,a,s=arguments[0]||{},u=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},u=2),"object"==typeof s||b.isfunction(s)||(s={}),l===u&&(s=this,--u);l>u;u++)if(null!=(o=arguments[u]))for(i in o)e=s[i],r=o[i],s!==r&&(c&&r&&(b.isplainobject(r)||(n=b.isarray(r)))?(n?(n=!1,a=e&&b.isarray(e)?e:[]):a=e&&b.isplainobject(e)?e:{},s[i]=b.extend(c,a,r)):r!==t&&(s[i]=r));return s},b.extend({noconflict:function(t){return e.$===b&&(e.$=u),t&&e.jquery===b&&(e.jquery=s),b},isready:!1,readywait:1,holdready:function(e){e?b.readywait++:b.ready(!0)},ready:function(e){if(e===!0?!--b.readywait:!b.isready){if(!o.body)return settimeout(b.ready);b.isready=!0,e!==!0&&--b.readywait>0||(n.resolvewith(o,[b]),b.fn.trigger&&b(o).trigger("ready").off("ready"))}},isfunction:function(e){return"function"===b.type(e)},isarray:array.isarray||function(e){return"array"===b.type(e)},iswindow:function(e){return null!=e&&e==e.window},isnumeric:function(e){return!isnan(parsefloat(e))&&isfinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[m.call(e)]||"object":typeof e},isplainobject:function(e){if(!e||"object"!==b.type(e)||e.nodetype||b.iswindow(e))return!1;try{if(e.constructor&&!y.call(e,"constructor")&&!y.call(e.constructor.prototype,"isprototypeof"))return!1}catch(n){return!1}var r;for(r in e);return r===t||y.call(e,r)},isemptyobject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw error(e)},parsehtml:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||o;var r=c.exec(e),i=!n&&[];return r?[t.createelement(r[1])]:(r=b.buildfragment([e],t,i),i&&b(i).remove(),b.merge([],r.childnodes))},parsejson:function(n){return e.json&&e.json.parse?e.json.parse(n):null===n?n:"string"==typeof n&&(n=b.trim(n),n&&k.test(n.replace(s,"@").replace(a,"]").replace(e,"")))?function("return "+n)():(b.error("invalid json: "+n),t)},parsexml:function(n){var r,i;if(!n||"string"!=typeof n)return null;try{e.domparser?(i=new domparser,r=i.parsefromstring(n,"text/xml")):(r=new activexobject("microsoft.xmldom"),r.async="false",r.loadxml(n))}catch(o){r=t}return r&&r.documentelement&&!r.getelementsbytagname("parsererror").length||b.error("invalid xml: "+n),r},noop:function(){},globaleval:function(t){t&&b.trim(t)&&(e.execscript||function(t){e.eval.call(e,t)})(t)},camelcase:function(e){return e.replace(j,"ms-").replace(d,l)},nodename:function(e,t){return e.nodename&&e.nodename.tolowercase()===t.tolowercase()},each:function(e,t,n){var r,i=0,o=e.length,a=m(e);if(n){if(a){for(;o>i;i++)if(r=t.apply(e[i],n),r===!1)break}else for(i in e)if(r=t.apply(e[i],n),r===!1)break}else if(a){for(;o>i;i++)if(r=t.call(e[i],i,e[i]),r===!1)break}else for(i in e)if(r=t.call(e[i],i,e[i]),r===!1)break;return e},trim:v&&!v.call("\ufeff\u00a0")?function(e){return null==e?"":v.call(e)}:function(e){return null==e?"":(e+"").replace(t,"")},makearray:function(e,t){var n=t||[];return null!=e&&(m(object(e))?b.merge(n,"string"==typeof e?[e]:e):d.call(n,e)),n},inarray:function(e,t,n){var r;if(t){if(g)return g.call(t,e,n);for(r=t.length,n=n?0>n?math.max(0,r+n):n:0;r>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=n.length,i=e.length,o=0;if("number"==typeof r)for(;r>o;o++)e[i++]=n[o];else while(n[o]!==t)e[i++]=n[o++];return e.length=i,e},grep:function(e,t,n){var r,i=[],o=0,a=e.length;for(n=!!n;a>o;o++)r=!!t(e[o],o),n!==r&&i.push(e[o]);return i},map:function(e,t,n){var r,i=0,o=e.length,a=m(e),s=[];if(a)for(;o>i;i++)r=t(e[i],i,n),null!=r&&(s[s.length]=r);else for(i in e)r=t(e[i],i,n),null!=r&&(s[s.length]=r);return f.apply([],s)},guid:1,proxy:function(e,n){var r,i,o;return"string"==typeof n&&(o=e[n],n=e,e=o),b.isfunction(e)?(r=h.call(arguments,2),i=function(){return e.apply(n||this,r.concat(h.call(arguments)))},i.guid=e.guid=e.guid||b.guid++,i):t},access:function(e,n,r,i,o,a,s){var u=0,l=e.length,c=null==r;if("object"===b.type(r)){o=!0;for(u in r)b.access(e,n,u,r[u],!0,a,s)}else if(i!==t&&(o=!0,b.isfunction(i)||(s=!0),c&&(s?(n.call(e,i),n=null):(c=n,n=function(e,t,n){return c.call(b(e),n)})),n))for(;l>u;u++)n(e[u],r,s?i:i.call(e[u],u,n(e[u],r)));return o?e:c?n.call(e):l?n(e[0],r):a},now:function(){return(new date).gettime()}}),b.ready.promise=function(t){if(!n)if(n=b.deferred(),"complete"===o.readystate)settimeout(b.ready);else if(o.addeventlistener)o.addeventlistener("domcontentloaded",h,!1),e.addeventlistener("load",h,!1);else{o.attachevent("onreadystatechange",h),e.attachevent("onload",h);var r=!1;try{r=null==e.frameelement&&o.documentelement}catch(i){}r&&r.doscroll&&function a(){if(!b.isready){try{r.doscroll("left")}catch(e){return settimeout(a,50)}q(),b.ready()}}()}return n.promise(t)},b.each("boolean number string function array date regexp object error".split(" "),function(e,t){l["[object "+t+"]"]=t.tolowercase()});function m(e){var t=e.length,n=b.type(e);return b.iswindow(e)?!1:1===e.nodetype&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}r=b(o);var _={};function f(e){var t=_[e]={};return b.each(e.match(w)||[],function(e,n){t[n]=!0}),t}b.callbacks=function(e){e="string"==typeof e?_[e]||f(e):b.extend({},e);var n,r,i,o,a,s,u=[],l=!e.once&&[],c=function(t){for(r=e.memory&&t,i=!0,a=s||0,s=0,o=u.length,n=!0;u&&o>a;a++)if(u[a].apply(t[0],t[1])===!1&&e.stoponfalse){r=!1;break}n=!1,u&&(l?l.length&&c(l.shift()):r?u=[]:p.disable())},p={add:function(){if(u){var t=u.length;(function i(t){b.each(t,function(t,n){var r=b.type(n);"function"===r?e.unique&&p.has(n)||u.push(n):n&&n.length&&"string"!==r&&i(n)})})(arguments),n?o=u.length:r&&(s=t,c(r))}return this},remove:function(){return u&&b.each(arguments,function(e,t){var r;while((r=b.inarray(t,u,r))>-1)u.splice(r,1),n&&(o>=r&&o--,a>=r&&a--)}),this},has:function(e){return e?b.inarray(e,u)>-1:!(!u||!u.length)},empty:function(){return u=[],this},disable:function(){return u=l=r=t,this},disabled:function(){return!u},lock:function(){return l=t,r||p.disable(),this},locked:function(){return!l},firewith:function(e,t){return t=t||[],t=[e,t.slice?t.slice():t],!u||i&&!l||(n?l.push(t):c(t)),this},fire:function(){return p.firewith(this,arguments),this},fired:function(){return!!i}};return p},b.extend({deferred:function(e){var t=[["resolve","done",b.callbacks("once memory"),"resolved"],["reject","fail",b.callbacks("once memory"),"rejected"],["notify","progress",b.callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return b.deferred(function(n){b.each(t,function(t,o){var a=o[0],s=b.isfunction(e[t])&&e[t];i[o[1]](function(){var e=s&&s.apply(this,arguments);e&&b.isfunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a+"with"](this===r?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?b.extend(e,r):r}},i={};return r.pipe=r.then,b.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"with"](this===i?r:this,arguments),this},i[o[0]+"with"]=a.firewith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=h.call(arguments),r=n.length,i=1!==r||e&&b.isfunction(e.promise)?r:0,o=1===i?e:b.deferred(),a=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?h.call(arguments):r,n===s?o.notifywith(t,n):--i||o.resolvewith(t,n)}},s,u,l;if(r>1)for(s=array(r),u=array(r),l=array(r);r>t;t++)n[t]&&b.isfunction(n[t].promise)?n[t].promise().done(a(t,l,n)).fail(o.reject).progress(a(t,u,s)):--i;return i||o.resolvewith(l,n),o.promise()}}),b.support=function(){var t,n,r,a,s,u,l,c,p,f,d=o.createelement("div");if(d.setattribute("classname","t"),d.innerhtml="
a",n=d.getelementsbytagname("*"),r=d.getelementsbytagname("a")[0],!n||!r||!n.length)return{};s=o.createelement("select"),l=s.appendchild(o.createelement("option")),a=d.getelementsbytagname("input")[0],r.style.csstext="top:1px;float:left;opacity:.5",t={getsetattribute:"t"!==d.classname,leadingwhitespace:3===d.firstchild.nodetype,tbody:!d.getelementsbytagname("tbody").length,htmlserialize:!!d.getelementsbytagname("link").length,style:/top/.test(r.getattribute("style")),hrefnormalized:"/a"===r.getattribute("href"),opacity:/^0.5/.test(r.style.opacity),cssfloat:!!r.style.cssfloat,checkon:!!a.value,optselected:l.selected,enctype:!!o.createelement("form").enctype,html5clone:"<:nav>"!==o.createelement("nav").clonenode(!0).outerhtml,boxmodel:"css1compat"===o.compatmode,deleteexpando:!0,nocloneevent:!0,inlineblockneedslayout:!1,shrinkwrapblocks:!1,reliablemarginright:!0,boxsizingreliable:!0,pixelposition:!1},a.checked=!0,t.noclonechecked=a.clonenode(!0).checked,s.disabled=!0,t.optdisabled=!l.disabled;try{delete d.test}catch(h){t.deleteexpando=!1}a=o.createelement("input"),a.setattribute("value",""),t.input=""===a.getattribute("value"),a.value="t",a.setattribute("type","radio"),t.radiovalue="t"===a.value,a.setattribute("checked","t"),a.setattribute("name","t"),u=o.createdocumentfragment(),u.appendchild(a),t.appendchecked=a.checked,t.checkclone=u.clonenode(!0).clonenode(!0).lastchild.checked,d.attachevent&&(d.attachevent("onclick",function(){t.nocloneevent=!1}),d.clonenode(!0).click());for(f in{submit:!0,change:!0,focusin:!0})d.setattribute(c="on"+f,"t"),t[f+"bubbles"]=c in e||d.attributes[c].expando===!1;return d.style.backgroundclip="content-box",d.clonenode(!0).style.backgroundclip="",t.clearclonestyle="content-box"===d.style.backgroundclip,b(function(){var n,r,a,s="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",u=o.getelementsbytagname("body")[0];u&&(n=o.createelement("div"),n.style.csstext="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",u.appendchild(n).appendchild(d),d.innerhtml="
t
",a=d.getelementsbytagname("td"),a[0].style.csstext="padding:0;margin:0;border:0;display:none",p=0===a[0].offsetheight,a[0].style.display="",a[1].style.display="none",t.reliablehiddenoffsets=p&&0===a[0].offsetheight,d.innerhtml="",d.style.csstext="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",t.boxsizing=4===d.offsetwidth,t.doesnotincludemargininbodyoffset=1!==u.offsettop,e.getcomputedstyle&&(t.pixelposition="1%"!==(e.getcomputedstyle(d,null)||{}).top,t.boxsizingreliable="4px"===(e.getcomputedstyle(d,null)||{width:"4px"}).width,r=d.appendchild(o.createelement("div")),r.style.csstext=d.style.csstext=s,r.style.marginright=r.style.width="0",d.style.width="1px",t.reliablemarginright=!parsefloat((e.getcomputedstyle(r,null)||{}).marginright)),typeof d.style.zoom!==i&&(d.innerhtml="",d.style.csstext=s+"width:1px;padding:1px;display:inline;zoom:1",t.inlineblockneedslayout=3===d.offsetwidth,d.style.display="block",d.innerhtml="
",d.firstchild.style.width="5px",t.shrinkwrapblocks=3!==d.offsetwidth,t.inlineblockneedslayout&&(u.style.zoom=1)),u.removechild(n),n=d=a=r=null)}),n=s=u=l=r=a=null,t}();var o=/(?:\{[\s\s]*\}|\[[\s\s]*\])$/,b=/([a-z])/g;function p(e,n,r,i){if(b.acceptdata(e)){var o,a,s=b.expando,u="string"==typeof n,l=e.nodetype,p=l?b.cache:e,f=l?e[s]:e[s]&&s;if(f&&p[f]&&(i||p[f].data)||!u||r!==t)return f||(l?e[s]=f=c.pop()||b.guid++:f=s),p[f]||(p[f]={},l||(p[f].tojson=b.noop)),("object"==typeof n||"function"==typeof n)&&(i?p[f]=b.extend(p[f],n):p[f].data=b.extend(p[f].data,n)),o=p[f],i||(o.data||(o.data={}),o=o.data),r!==t&&(o[b.camelcase(n)]=r),u?(a=o[n],null==a&&(a=o[b.camelcase(n)])):a=o,a}}function r(e,t,n){if(b.acceptdata(e)){var r,i,o,a=e.nodetype,s=a?b.cache:e,u=a?e[b.expando]:b.expando;if(s[u]){if(t&&(o=n?s[u]:s[u].data)){b.isarray(t)?t=t.concat(b.map(t,b.camelcase)):t in o?t=[t]:(t=b.camelcase(t),t=t in o?[t]:t.split(" "));for(r=0,i=t.length;i>r;r++)delete o[t[r]];if(!(n?$:b.isemptyobject)(o))return}(n||(delete s[u].data,$(s[u])))&&(a?b.cleandata([e],!0):b.support.deleteexpando||s!=s.window?delete s[u]:s[u]=null)}}}b.extend({cache:{},expando:"jquery"+(p+math.random()).replace(/\d/g,""),nodata:{embed:!0,object:"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000",applet:!0},hasdata:function(e){return e=e.nodetype?b.cache[e[b.expando]]:e[b.expando],!!e&&!$(e)},data:function(e,t,n){return p(e,t,n)},removedata:function(e,t){return r(e,t)},_data:function(e,t,n){return p(e,t,n,!0)},_removedata:function(e,t){return r(e,t,!0)},acceptdata:function(e){if(e.nodetype&&1!==e.nodetype&&9!==e.nodetype)return!1;var t=e.nodename&&b.nodata[e.nodename.tolowercase()];return!t||t!==!0&&e.getattribute("classid")===t}}),b.fn.extend({data:function(e,n){var r,i,o=this[0],a=0,s=null;if(e===t){if(this.length&&(s=b.data(o),1===o.nodetype&&!b._data(o,"parsedattrs"))){for(r=o.attributes;r.length>a;a++)i=r[a].name,i.indexof("data-")||(i=b.camelcase(i.slice(5)),w(o,i,s[i]));b._data(o,"parsedattrs",!0)}return s}return"object"==typeof e?this.each(function(){b.data(this,e)}):b.access(this,function(n){return n===t?o?w(o,e,b.data(o,e)):null:(this.each(function(){b.data(this,e,n)}),t)},null,n,arguments.length>1,null,!0)},removedata:function(e){return this.each(function(){b.removedata(this,e)})}});function w(e,n,r){if(r===t&&1===e.nodetype){var i="data-"+n.replace(b,"-$1").tolowercase();if(r=e.getattribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:o.test(r)?b.parsejson(r):r}catch(o){}b.data(e,n,r)}else r=t}return r}function $(e){var t;for(t in e)if(("data"!==t||!b.isemptyobject(e[t]))&&"tojson"!==t)return!1;return!0}b.extend({queue:function(e,n,r){var i;return e?(n=(n||"fx")+"queue",i=b._data(e,n),r&&(!i||b.isarray(r)?i=b._data(e,n,b.makearray(r)):i.push(r)),i||[]):t},dequeue:function(e,t){t=t||"fx";var n=b.queue(e,t),r=n.length,i=n.shift(),o=b._queuehooks(e,t),a=function(){b.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),o.cur=i,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 b._data(e,n)||b._data(e,n,{empty:b.callbacks("once memory").add(function(){b._removedata(e,t+"queue"),b._removedata(e,n)})})}}),b.fn.extend({queue:function(e,n){var r=2;return"string"!=typeof e&&(n=e,e="fx",r--),r>arguments.length?b.queue(this[0],e):n===t?this:this.each(function(){var t=b.queue(this,e,n);b._queuehooks(this,e),"fx"===e&&"inprogress"!==t[0]&&b.dequeue(this,e)})},dequeue:function(e){return this.each(function(){b.dequeue(this,e)})},delay:function(e,t){return e=b.fx?b.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=settimeout(t,e);n.stop=function(){cleartimeout(r)}})},clearqueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,i=1,o=b.deferred(),a=this,s=this.length,u=function(){--i||o.resolvewith(a,[a])};"string"!=typeof e&&(n=e,e=t),e=e||"fx";while(s--)r=b._data(a[s],e+"queuehooks"),r&&r.empty&&(i++,r.empty.add(u));return u(),o.promise(n)}});var i,z,x=/[\t\r\n]/g,u=/\r/g,v=/^(?:input|select|textarea|button|object)$/i,y=/^(?:a|area)$/i,j=/^(?:checked|selected|autofocus|autoplay|async|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped)$/i,g=/^(?:checked|selected)$/i,q=b.support.getsetattribute,k=b.support.input;b.fn.extend({attr:function(e,t){return b.access(this,b.attr,e,t,arguments.length>1)},removeattr:function(e){return this.each(function(){b.removeattr(this,e)})},prop:function(e,t){return b.access(this,b.prop,e,t,arguments.length>1)},removeprop:function(e){return e=b.propfix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addclass:function(e){var t,n,r,i,o,a=0,s=this.length,u="string"==typeof e&&e;if(b.isfunction(e))return this.each(function(t){b(this).addclass(e.call(this,t,this.classname))});if(u)for(t=(e||"").match(w)||[];s>a;a++)if(n=this[a],r=1===n.nodetype&&(n.classname?(" "+n.classname+" ").replace(x," "):" ")){o=0;while(i=t[o++])0>r.indexof(" "+i+" ")&&(r+=i+" ");n.classname=b.trim(r)}return this},removeclass:function(e){var t,n,r,i,o,a=0,s=this.length,u=0===arguments.length||"string"==typeof e&&e;if(b.isfunction(e))return this.each(function(t){b(this).removeclass(e.call(this,t,this.classname))});if(u)for(t=(e||"").match(w)||[];s>a;a++)if(n=this[a],r=1===n.nodetype&&(n.classname?(" "+n.classname+" ").replace(x," "):"")){o=0;while(i=t[o++])while(r.indexof(" "+i+" ")>=0)r=r.replace(" "+i+" "," ");n.classname=e?b.trim(r):""}return this},toggleclass:function(e,t){var n=typeof e,r="boolean"==typeof t;return b.isfunction(e)?this.each(function(n){b(this).toggleclass(e.call(this,n,this.classname,t),t)}):this.each(function(){if("string"===n){var o,a=0,s=b(this),u=t,l=e.match(w)||[];while(o=l[a++])u=r?u:!s.hasclass(o),s[u?"addclass":"removeclass"](o)}else(n===i||"boolean"===n)&&(this.classname&&b._data(this,"__classname__",this.classname),this.classname=this.classname||e===!1?"":b._data(this,"__classname__")||"")})},hasclass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;r>n;n++)if(1===this[n].nodetype&&(" "+this[n].classname+" ").replace(x," ").indexof(t)>=0)return!0;return!1},val:function(e){var n,r,i,o=this[0];{if(arguments.length)return i=b.isfunction(e),this.each(function(n){var o,a=b(this);1===this.nodetype&&(o=i?e.call(this,n,a.val()):e,null==o?o="":"number"==typeof o?o+="":b.isarray(o)&&(o=b.map(o,function(e){return null==e?"":e+""})),r=b.valhooks[this.type]||b.valhooks[this.nodename.tolowercase()],r&&"set"in r&&r.set(this,o,"value")!==t||(this.value=o))});if(o)return r=b.valhooks[o.type]||b.valhooks[o.nodename.tolowercase()],r&&"get"in r&&(n=r.get(o,"value"))!==t?n:(n=o.value,"string"==typeof n?n.replace(u,""):null==n?"":n)}}}),b.extend({valhooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedindex,o="select-one"===e.type||0>i,a=o?null:[],s=o?i+1:r.length,u=0>i?s:o?i:0;for(;s>u;u++)if(n=r[u],!(!n.selected&&u!==i||(b.support.optdisabled?n.disabled:null!==n.getattribute("disabled"))||n.parentnode.disabled&&b.nodename(n.parentnode,"optgroup"))){if(t=b(n).val(),o)return t;a.push(t)}return a},set:function(e,t){var n=b.makearray(t);return b(e).find("option").each(function(){this.selected=b.inarray(b(this).val(),n)>=0}),n.length||(e.selectedindex=-1),n}}},attr:function(e,n,r){var o,a,s,u=e.nodetype;if(e&&3!==u&&8!==u&&2!==u)return typeof e.getattribute===i?b.prop(e,n,r):(a=1!==u||!b.isxmldoc(e),a&&(n=n.tolowercase(),o=b.attrhooks[n]||(j.test(n)?z:i)),r===t?o&&a&&"get"in o&&null!==(s=o.get(e,n))?s:(typeof e.getattribute!==i&&(s=e.getattribute(n)),null==s?t:s):null!==r?o&&a&&"set"in o&&(s=o.set(e,r,n))!==t?s:(e.setattribute(n,r+""),r):(b.removeattr(e,n),t))},removeattr:function(e,t){var n,r,i=0,o=t&&t.match(w);if(o&&1===e.nodetype)while(n=o[i++])r=b.propfix[n]||n,j.test(n)?!q&&g.test(n)?e[b.camelcase("default-"+n)]=e[r]=!1:e[r]=!1:b.attr(e,n,""),e.removeattribute(q?n:r)},attrhooks:{type:{set:function(e,t){if(!b.support.radiovalue&&"radio"===t&&b.nodename(e,"input")){var n=e.value;return e.setattribute("type",t),n&&(e.value=n),t}}}},propfix:{tabindex:"tabindex",readonly:"readonly","for":"htmlfor","class":"classname",maxlength:"maxlength",cellspacing:"cellspacing",cellpadding:"cellpadding",rowspan:"rowspan",colspan:"colspan",usemap:"usemap",frameborder:"frameborder",contenteditable:"contenteditable"},prop:function(e,n,r){var i,o,a,s=e.nodetype;if(e&&3!==s&&8!==s&&2!==s)return a=1!==s||!b.isxmldoc(e),a&&(n=b.propfix[n]||n,o=b.prophooks[n]),r!==t?o&&"set"in o&&(i=o.set(e,r,n))!==t?i:e[n]=r:o&&"get"in o&&null!==(i=o.get(e,n))?i:e[n]},prophooks:{tabindex:{get:function(e){var n=e.getattributenode("tabindex");return n&&n.specified?parseint(n.value,10):v.test(e.nodename)||y.test(e.nodename)&&e.href?0:t}}}}),z={get:function(e,n){var r=b.prop(e,n),i="boolean"==typeof r&&e.getattribute(n),o="boolean"==typeof r?k&&q?null!=i:g.test(n)?e[b.camelcase("default-"+n)]:!!i:e.getattributenode(n);return o&&o.value!==!1?n.tolowercase():t},set:function(e,t,n){return t===!1?b.removeattr(e,n):k&&q||!g.test(n)?e.setattribute(!q&&b.propfix[n]||n,n):e[b.camelcase("default-"+n)]=e[n]=!0,n}},k&&q||(b.attrhooks.value={get:function(e,n){var r=e.getattributenode(n);return b.nodename(e,"input")?e.defaultvalue:r&&r.specified?r.value:t},set:function(e,n,r){return b.nodename(e,"input")?(e.defaultvalue=n,t):i&&i.set(e,n,r)}}),q||(i=b.valhooks.button={get:function(e,n){var r=e.getattributenode(n);return r&&("id"===n||"name"===n||"coords"===n?""!==r.value:r.specified)?r.value:t},set:function(e,n,r){var i=e.getattributenode(r);return i||e.setattributenode(i=e.ownerdocument.createattribute(r)),i.value=n+="","value"===r||n===e.getattribute(r)?n:t}},b.attrhooks.contenteditable={get:i.get,set:function(e,t,n){i.set(e,""===t?!1:t,n)}},b.each(["width","height"],function(e,n){b.attrhooks[n]=b.extend(b.attrhooks[n],{set:function(e,r){return""===r?(e.setattribute(n,"auto"),r):t}})})),b.support.hrefnormalized||(b.each(["href","src","width","height"],function(e,n){b.attrhooks[n]=b.extend(b.attrhooks[n],{get:function(e){var r=e.getattribute(n,2);return null==r?t:r}})}),b.each(["href","src"],function(e,t){b.prophooks[t]={get:function(e){return e.getattribute(t,4)}}})),b.support.style||(b.attrhooks.style={get:function(e){return e.style.csstext||t},set:function(e,t){return e.style.csstext=t+""}}),b.support.optselected||(b.prophooks.selected=b.extend(b.prophooks.selected,{get:function(e){var t=e.parentnode;return t&&(t.selectedindex,t.parentnode&&t.parentnode.selectedindex),null}})),b.support.enctype||(b.propfix.enctype="encoding"),b.support.checkon||b.each(["radio","checkbox"],function(){b.valhooks[this]={get:function(e){return null===e.getattribute("value")?"on":e.value}}}),b.each(["radio","checkbox"],function(){b.valhooks[this]=b.extend(b.valhooks[this],{set:function(e,n){return b.isarray(n)?e.checked=b.inarray(b(e).val(),n)>=0:t}})});var z=/^(?:input|select|textarea)$/i,et=/^key/,tt=/^(?:mouse|contextmenu)|click/,nt=/^(?:focusinfocus|focusoutblur)$/,rt=/^([^.]*)(?:\.(.+)|)$/;function it(){return!0}function ot(){return!1}b.event={global:{},add:function(e,n,r,o,a){var s,u,l,c,p,f,d,h,g,m,y,v=b._data(e);if(v){r.handler&&(c=r,r=c.handler,a=c.selector),r.guid||(r.guid=b.guid++),(u=v.events)||(u=v.events={}),(f=v.handle)||(f=v.handle=function(e){return typeof b===i||e&&b.event.triggered===e.type?t:b.event.dispatch.apply(f.elem,arguments)},f.elem=e),n=(n||"").match(w)||[""],l=n.length;while(l--)s=rt.exec(n[l])||[],g=y=s[1],m=(s[2]||"").split(".").sort(),p=b.event.special[g]||{},g=(a?p.delegatetype:p.bindtype)||g,p=b.event.special[g]||{},d=b.extend({type:g,origtype:y,data:o,handler:r,guid:r.guid,selector:a,needscontext:a&&b.expr.match.needscontext.test(a),namespace:m.join(".")},c),(h=u[g])||(h=u[g]=[],h.delegatecount=0,p.setup&&p.setup.call(e,o,m,f)!==!1||(e.addeventlistener?e.addeventlistener(g,f,!1):e.attachevent&&e.attachevent("on"+g,f))),p.add&&(p.add.call(e,d),d.handler.guid||(d.handler.guid=r.guid)),a?h.splice(h.delegatecount++,0,d):h.push(d),b.event.global[g]=!0;e=null}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,p,f,d,h,g,m=b.hasdata(e)&&b._data(e);if(m&&(c=m.events)){t=(t||"").match(w)||[""],l=t.length;while(l--)if(s=rt.exec(t[l])||[],d=g=s[1],h=(s[2]||"").split(".").sort(),d){p=b.event.special[d]||{},d=(r?p.delegatetype:p.bindtype)||d,f=c[d]||[],s=s[2]&®exp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),u=o=f.length;while(o--)a=f[o],!i&&g!==a.origtype||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(f.splice(o,1),a.selector&&f.delegatecount--,p.remove&&p.remove.call(e,a));u&&!f.length&&(p.teardown&&p.teardown.call(e,h,m.handle)!==!1||b.removeevent(e,d,m.handle),delete c[d])}else for(d in c)b.event.remove(e,d+t[l],n,r,!0);b.isemptyobject(c)&&(delete m.handle,b._removedata(e,"events"))}},trigger:function(n,r,i,a){var s,u,l,c,p,f,d,h=[i||o],g=y.call(n,"type")?n.type:n,m=y.call(n,"namespace")?n.namespace.split("."):[];if(l=f=i=i||o,3!==i.nodetype&&8!==i.nodetype&&!nt.test(g+b.event.triggered)&&(g.indexof(".")>=0&&(m=g.split("."),g=m.shift(),m.sort()),u=0>g.indexof(":")&&"on"+g,n=n[b.expando]?n:new b.event(g,"object"==typeof n&&n),n.istrigger=!0,n.namespace=m.join("."),n.namespace_re=n.namespace?regexp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=t,n.target||(n.target=i),r=null==r?[n]:b.makearray(r,[n]),p=b.event.special[g]||{},a||!p.trigger||p.trigger.apply(i,r)!==!1)){if(!a&&!p.nobubble&&!b.iswindow(i)){for(c=p.delegatetype||g,nt.test(c+g)||(l=l.parentnode);l;l=l.parentnode)h.push(l),f=l;f===(i.ownerdocument||o)&&h.push(f.defaultview||f.parentwindow||e)}d=0;while((l=h[d++])&&!n.ispropagationstopped())n.type=d>1?c:p.bindtype||g,s=(b._data(l,"events")||{})[n.type]&&b._data(l,"handle"),s&&s.apply(l,r),s=u&&l[u],s&&b.acceptdata(l)&&s.apply&&s.apply(l,r)===!1&&n.preventdefault();if(n.type=g,!(a||n.isdefaultprevented()||p._default&&p._default.apply(i.ownerdocument,r)!==!1||"click"===g&&b.nodename(i,"a")||!b.acceptdata(i)||!u||!i[g]||b.iswindow(i))){f=i[u],f&&(i[u]=null),b.event.triggered=g;try{i[g]()}catch(v){}b.event.triggered=t,f&&(i[u]=f)}return n.result}},dispatch:function(e){e=b.event.fix(e);var n,r,i,o,a,s=[],u=h.call(arguments),l=(b._data(this,"events")||{})[e.type]||[],c=b.event.special[e.type]||{};if(u[0]=e,e.delegatetarget=this,!c.predispatch||c.predispatch.call(this,e)!==!1){s=b.event.handlers.call(this,e,l),n=0;while((o=s[n++])&&!e.ispropagationstopped()){e.currenttarget=o.elem,a=0;while((i=o.handlers[a++])&&!e.isimmediatepropagationstopped())(!e.namespace_re||e.namespace_re.test(i.namespace))&&(e.handleobj=i,e.data=i.data,r=((b.event.special[i.origtype]||{}).handle||i.handler).apply(o.elem,u),r!==t&&(e.result=r)===!1&&(e.preventdefault(),e.stoppropagation()))}return c.postdispatch&&c.postdispatch.call(this,e),e.result}},handlers:function(e,n){var r,i,o,a,s=[],u=n.delegatecount,l=e.target;if(u&&l.nodetype&&(!e.button||"click"!==e.type))for(;l!=this;l=l.parentnode||this)if(1===l.nodetype&&(l.disabled!==!0||"click"!==e.type)){for(o=[],a=0;u>a;a++)i=n[a],r=i.selector+" ",o[r]===t&&(o[r]=i.needscontext?b(r,this).index(l)>=0:b.find(r,this,null,[l]).length),o[r]&&o.push(i);o.length&&s.push({elem:l,handlers:o})}return n.length>u&&s.push({elem:this,handlers:n.slice(u)}),s},fix:function(e){if(e[b.expando])return e;var t,n,r,i=e.type,a=e,s=this.fixhooks[i];s||(this.fixhooks[i]=s=tt.test(i)?this.mousehooks:et.test(i)?this.keyhooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new b.event(a),t=r.length;while(t--)n=r[t],e[n]=a[n];return e.target||(e.target=a.srcelement||o),3===e.target.nodetype&&(e.target=e.target.parentnode),e.metakey=!!e.metakey,s.filter?s.filter(e,a):e},props:"altkey bubbles cancelable ctrlkey currenttarget eventphase metakey relatedtarget shiftkey target timestamp view which".split(" "),fixhooks:{},keyhooks:{props:"char charcode key keycode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charcode?t.charcode:t.keycode),e}},mousehooks:{props:"button buttons clientx clienty fromelement offsetx offsety pagex pagey screenx screeny toelement".split(" "),filter:function(e,n){var r,i,a,s=n.button,u=n.fromelement;return null==e.pagex&&null!=n.clientx&&(i=e.target.ownerdocument||o,a=i.documentelement,r=i.body,e.pagex=n.clientx+(a&&a.scrollleft||r&&r.scrollleft||0)-(a&&a.clientleft||r&&r.clientleft||0),e.pagey=n.clienty+(a&&a.scrolltop||r&&r.scrolltop||0)-(a&&a.clienttop||r&&r.clienttop||0)),!e.relatedtarget&&u&&(e.relatedtarget=u===e.target?n.toelement:u),e.which||s===t||(e.which=1&s?1:2&s?3:4&s?2:0),e}},special:{load:{nobubble:!0},click:{trigger:function(){return b.nodename(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):t}},focus:{trigger:function(){if(this!==o.activeelement&&this.focus)try{return this.focus(),!1}catch(e){}},delegatetype:"focusin"},blur:{trigger:function(){return this===o.activeelement&&this.blur?(this.blur(),!1):t},delegatetype:"focusout"},beforeunload:{postdispatch:function(e){e.result!==t&&(e.originalevent.returnvalue=e.result)}}},simulate:function(e,t,n,r){var i=b.extend(new b.event,n,{type:e,issimulated:!0,originalevent:{}});r?b.event.trigger(i,null,t):b.event.dispatch.call(t,i),i.isdefaultprevented()&&n.preventdefault()}},b.removeevent=o.removeeventlistener?function(e,t,n){e.removeeventlistener&&e.removeeventlistener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachevent&&(typeof e[r]===i&&(e[r]=null),e.detachevent(r,n))},b.event=function(e,n){return this instanceof b.event?(e&&e.type?(this.originalevent=e,this.type=e.type,this.isdefaultprevented=e.defaultprevented||e.returnvalue===!1||e.getpreventdefault&&e.getpreventdefault()?it:ot):this.type=e,n&&b.extend(this,n),this.timestamp=e&&e.timestamp||b.now(),this[b.expando]=!0,t):new b.event(e,n)},b.event.prototype={isdefaultprevented:ot,ispropagationstopped:ot,isimmediatepropagationstopped:ot,preventdefault:function(){var e=this.originalevent;this.isdefaultprevented=it,e&&(e.preventdefault?e.preventdefault():e.returnvalue=!1)},stoppropagation:function(){var e=this.originalevent;this.ispropagationstopped=it,e&&(e.stoppropagation&&e.stoppropagation(),e.cancelbubble=!0)},stopimmediatepropagation:function(){this.isimmediatepropagationstopped=it,this.stoppropagation()}},b.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){b.event.special[e]={delegatetype:t,bindtype:t,handle:function(e){var n,r=this,i=e.relatedtarget,o=e.handleobj; return(!i||i!==r&&!b.contains(r,i))&&(e.type=o.origtype,n=o.handler.apply(this,arguments),e.type=t),n}}}),b.support.submitbubbles||(b.event.special.submit={setup:function(){return b.nodename(this,"form")?!1:(b.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,r=b.nodename(n,"input")||b.nodename(n,"button")?n.form:t;r&&!b._data(r,"submitbubbles")&&(b.event.add(r,"submit._submit",function(e){e._submit_bubble=!0}),b._data(r,"submitbubbles",!0))}),t)},postdispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentnode&&!e.istrigger&&b.event.simulate("submit",this.parentnode,e,!0))},teardown:function(){return b.nodename(this,"form")?!1:(b.event.remove(this,"._submit"),t)}}),b.support.changebubbles||(b.event.special.change={setup:function(){return z.test(this.nodename)?(("checkbox"===this.type||"radio"===this.type)&&(b.event.add(this,"propertychange._change",function(e){"checked"===e.originalevent.propertyname&&(this._just_changed=!0)}),b.event.add(this,"click._change",function(e){this._just_changed&&!e.istrigger&&(this._just_changed=!1),b.event.simulate("change",this,e,!0)})),!1):(b.event.add(this,"beforeactivate._change",function(e){var t=e.target;z.test(t.nodename)&&!b._data(t,"changebubbles")&&(b.event.add(t,"change._change",function(e){!this.parentnode||e.issimulated||e.istrigger||b.event.simulate("change",this.parentnode,e,!0)}),b._data(t,"changebubbles",!0))}),t)},handle:function(e){var n=e.target;return this!==n||e.issimulated||e.istrigger||"radio"!==n.type&&"checkbox"!==n.type?e.handleobj.handler.apply(this,arguments):t},teardown:function(){return b.event.remove(this,"._change"),!z.test(this.nodename)}}),b.support.focusinbubbles||b.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){b.event.simulate(t,e.target,b.event.fix(e),!0)};b.event.special[t]={setup:function(){0===n++&&o.addeventlistener(e,r,!0)},teardown:function(){0===--n&&o.removeeventlistener(e,r,!0)}}}),b.fn.extend({on:function(e,n,r,i,o){var a,s;if("object"==typeof e){"string"!=typeof n&&(r=r||n,n=t);for(a in e)this.on(a,n,r,e[a],o);return this}if(null==r&&null==i?(i=n,r=n=t):null==i&&("string"==typeof n?(i=r,r=t):(i=r,r=n,n=t)),i===!1)i=ot;else if(!i)return this;return 1===o&&(s=i,i=function(e){return b().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=b.guid++)),this.each(function(){b.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,n,r){var i,o;if(e&&e.preventdefault&&e.handleobj)return i=e.handleobj,b(e.delegatetarget).off(i.namespace?i.origtype+"."+i.namespace:i.origtype,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,n,e[o]);return this}return(n===!1||"function"==typeof n)&&(r=n,n=t),r===!1&&(r=ot),this.each(function(){b.event.remove(this,e,r,n)})},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)},trigger:function(e,t){return this.each(function(){b.event.trigger(e,t,this)})},triggerhandler:function(e,n){var r=this[0];return r?b.event.trigger(e,n,r,!0):t}}),function(e,t){var n,r,i,o,a,s,u,l,c,p,f,d,h,g,m,y,v,x="sizzle"+-new date,w=e.document,t={},n=0,c=0,k=it(),e=it(),s=it(),a=typeof t,j=1<<31,d=[],l=d.pop,h=d.push,q=d.slice,m=d.indexof||function(e){var t=0,n=this.length;for(;n>t;t++)if(this[t]===e)return t;return-1},_="[\\x20\\t\\r\\n\\f]",f="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",o=f.replace("w","w#"),b="([*^$|!~]?=)",p="\\["+_+"*("+f+")"+_+"*(?:"+b+_+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+o+")|)|)"+_+"*\\]",r=":("+f+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+p.replace(3,8)+")*)|.*)\\)|)",w=regexp("^"+_+"+|((?:^|[^\\\\])(?:\\\\.)*)"+_+"+$","g"),$=regexp("^"+_+"*,"+_+"*"),i=regexp("^"+_+"*([\\x20\\t\\r\\n\\f>+~])"+_+"*"),z=regexp(r),x=regexp("^"+o+"$"),u={id:regexp("^#("+f+")"),class:regexp("^\\.("+f+")"),name:regexp("^\\[name=['\"]?("+f+")['\"]?\\]"),tag:regexp("^("+f.replace("w","w*")+")"),attr:regexp("^"+p),pseudo:regexp("^"+r),child:regexp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+_+"*(even|odd|(([+-]|)(\\d*)n|)"+_+"*(?:([+-]|)"+_+"*(\\d+)|))"+_+"*\\)|)","i"),needscontext:regexp("^"+_+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+_+"*((?:-\\d)?\\d*)"+_+"*\\)|)(?=[^-]|$)","i")},v=/[\x20\t\r\n\f]*[+~]/,y=/^[^{]+\{\s*\[native code/,j=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,g=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,k=/'|\\/g,z=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,et=/\\([\da-fa-f]{1,6}[\x20\t\r\n\f]?|.)/g,tt=function(e,t){var n="0x"+t-65536;return n!==n?t:0>n?string.fromcharcode(n+65536):string.fromcharcode(55296|n>>10,56320|1023&n)};try{q.call(w.documentelement.childnodes,0)[0].nodetype}catch(nt){q=function(e){var t,n=[];while(t=this[e++])n.push(t);return n}}function rt(e){return y.test(e+"")}function it(){var e,t=[];return e=function(n,r){return t.push(n+=" ")>i.cachelength&&delete e[t.shift()],e[n]=r}}function ot(e){return e[x]=!0,e}function at(e){var t=p.createelement("div");try{return e(t)}catch(n){return!1}finally{t=null}}function st(e,t,n,r){var i,o,a,s,u,l,f,g,m,v;if((t?t.ownerdocument||t:w)!==p&&c(t),t=t||p,n=n||[],!e||"string"!=typeof e)return n;if(1!==(s=t.nodetype)&&9!==s)return[];if(!d&&!r){if(i=j.exec(e))if(a=i[1]){if(9===s){if(o=t.getelementbyid(a),!o||!o.parentnode)return n;if(o.id===a)return n.push(o),n}else if(t.ownerdocument&&(o=t.ownerdocument.getelementbyid(a))&&y(t,o)&&o.id===a)return n.push(o),n}else{if(i[2])return h.apply(n,q.call(t.getelementsbytagname(e),0)),n;if((a=i[3])&&t.getbyclassname&&t.getelementsbyclassname)return h.apply(n,q.call(t.getelementsbyclassname(a),0)),n}if(t.qsa&&!h.test(e)){if(f=!0,g=x,m=t,v=9===s&&e,1===s&&"object"!==t.nodename.tolowercase()){l=ft(e),(f=t.getattribute("id"))?g=f.replace(k,"\\$&"):t.setattribute("id",g),g="[id='"+g+"'] ",u=l.length;while(u--)l[u]=g+dt(l[u]);m=v.test(e)&&t.parentnode||t,v=l.join(",")}if(v)try{return h.apply(n,q.call(m.queryselectorall(v),0)),n}catch(b){}finally{f||t.removeattribute("id")}}}return wt(e.replace(w,"$1"),t,n,r)}a=st.isxml=function(e){var t=e&&(e.ownerdocument||e).documentelement;return t?"html"!==t.nodename:!1},c=st.setdocument=function(e){var n=e?e.ownerdocument||e:w;return n!==p&&9===n.nodetype&&n.documentelement?(p=n,f=n.documentelement,d=a(n),t.tagnamenocomments=at(function(e){return e.appendchild(n.createcomment("")),!e.getelementsbytagname("*").length}),t.attributes=at(function(e){e.innerhtml="";var t=typeof e.lastchild.getattribute("multiple");return"boolean"!==t&&"string"!==t}),t.getbyclassname=at(function(e){return e.innerhtml="",e.getelementsbyclassname&&e.getelementsbyclassname("e").length?(e.lastchild.classname="e",2===e.getelementsbyclassname("e").length):!1}),t.getbyname=at(function(e){e.id=x+0,e.innerhtml="
",f.insertbefore(e,f.firstchild);var t=n.getelementsbyname&&n.getelementsbyname(x).length===2+n.getelementsbyname(x+0).length;return t.getidnotname=!n.getelementbyid(x),f.removechild(e),t}),i.attrhandle=at(function(e){return e.innerhtml="",e.firstchild&&typeof e.firstchild.getattribute!==a&&"#"===e.firstchild.getattribute("href")})?{}:{href:function(e){return e.getattribute("href",2)},type:function(e){return e.getattribute("type")}},t.getidnotname?(i.find.id=function(e,t){if(typeof t.getelementbyid!==a&&!d){var n=t.getelementbyid(e);return n&&n.parentnode?[n]:[]}},i.filter.id=function(e){var t=e.replace(et,tt);return function(e){return e.getattribute("id")===t}}):(i.find.id=function(e,n){if(typeof n.getelementbyid!==a&&!d){var r=n.getelementbyid(e);return r?r.id===e||typeof r.getattributenode!==a&&r.getattributenode("id").value===e?[r]:t:[]}},i.filter.id=function(e){var t=e.replace(et,tt);return function(e){var n=typeof e.getattributenode!==a&&e.getattributenode("id");return n&&n.value===t}}),i.find.tag=t.tagnamenocomments?function(e,n){return typeof n.getelementsbytagname!==a?n.getelementsbytagname(e):t}:function(e,t){var n,r=[],i=0,o=t.getelementsbytagname(e);if("*"===e){while(n=o[i++])1===n.nodetype&&r.push(n);return r}return o},i.find.name=t.getbyname&&function(e,n){return typeof n.getelementsbyname!==a?n.getelementsbyname(name):t},i.find.class=t.getbyclassname&&function(e,n){return typeof n.getelementsbyclassname===a||d?t:n.getelementsbyclassname(e)},g=[],h=[":focus"],(t.qsa=rt(n.queryselectorall))&&(at(function(e){e.innerhtml="",e.queryselectorall("[selected]").length||h.push("\\["+_+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.queryselectorall(":checked").length||h.push(":checked")}),at(function(e){e.innerhtml="",e.queryselectorall("[i^='']").length&&h.push("[*^$]="+_+"*(?:\"\"|'')"),e.queryselectorall(":enabled").length||h.push(":enabled",":disabled"),e.queryselectorall("*,:x"),h.push(",.*:")})),(t.matchesselector=rt(m=f.matchesselector||f.mozmatchesselector||f.webkitmatchesselector||f.omatchesselector||f.msmatchesselector))&&at(function(e){t.disconnectedmatch=m.call(e,"div"),m.call(e,"[s!='']:x"),g.push("!=",r)}),h=regexp(h.join("|")),g=regexp(g.join("|")),y=rt(f.contains)||f.comparedocumentposition?function(e,t){var n=9===e.nodetype?e.documentelement:e,r=t&&t.parentnode;return e===r||!(!r||1!==r.nodetype||!(n.contains?n.contains(r):e.comparedocumentposition&&16&e.comparedocumentposition(r)))}:function(e,t){if(t)while(t=t.parentnode)if(t===e)return!0;return!1},v=f.comparedocumentposition?function(e,t){var r;return e===t?(u=!0,0):(r=t.comparedocumentposition&&e.comparedocumentposition&&e.comparedocumentposition(t))?1&r||e.parentnode&&11===e.parentnode.nodetype?e===n||y(w,e)?-1:t===n||y(w,t)?1:0:4&r?-1:1:e.comparedocumentposition?-1:1}:function(e,t){var r,i=0,o=e.parentnode,a=t.parentnode,s=[e],l=[t];if(e===t)return u=!0,0;if(!o||!a)return e===n?-1:t===n?1:o?-1:a?1:0;if(o===a)return ut(e,t);r=e;while(r=r.parentnode)s.unshift(r);r=t;while(r=r.parentnode)l.unshift(r);while(s[i]===l[i])i++;return i?ut(s[i],l[i]):s[i]===w?-1:l[i]===w?1:0},u=!1,[0,0].sort(v),t.detectduplicates=u,p):p},st.matches=function(e,t){return st(e,null,null,t)},st.matchesselector=function(e,t){if((e.ownerdocument||e)!==p&&c(e),t=t.replace(z,"='$1']"),!(!t.matchesselector||d||g&&g.test(t)||h.test(t)))try{var n=m.call(e,t);if(n||t.disconnectedmatch||e.document&&11!==e.document.nodetype)return n}catch(r){}return st(t,p,null,[e]).length>0},st.contains=function(e,t){return(e.ownerdocument||e)!==p&&c(e),y(e,t)},st.attr=function(e,t){var n;return(e.ownerdocument||e)!==p&&c(e),d||(t=t.tolowercase()),(n=i.attrhandle[t])?n(e):d||t.attributes?e.getattribute(t):((n=e.getattributenode(t))||e.getattribute(t))&&e[t]===!0?t:n&&n.specified?n.value:null},st.error=function(e){throw error("syntax error, unrecognized expression: "+e)},st.uniquesort=function(e){var t,n=[],r=1,i=0;if(u=!t.detectduplicates,e.sort(v),u){for(;t=e[r];r++)t===e[r-1]&&(i=n.push(r));while(i--)e.splice(n[i],1)}return e};function ut(e,t){var n=t&&e,r=n&&(~t.sourceindex||j)-(~e.sourceindex||j);if(r)return r;if(n)while(n=n.nextsibling)if(n===t)return-1;return e?1:-1}function lt(e){return function(t){var n=t.nodename.tolowercase();return"input"===n&&t.type===e}}function ct(e){return function(t){var n=t.nodename.tolowercase();return("input"===n||"button"===n)&&t.type===e}}function pt(e){return ot(function(t){return t=+t,ot(function(n,r){var i,o=e([],n.length,t),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}o=st.gettext=function(e){var t,n="",r=0,i=e.nodetype;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textcontent)return e.textcontent;for(e=e.firstchild;e;e=e.nextsibling)n+=o(e)}else if(3===i||4===i)return e.nodevalue}else for(;t=e[r];r++)n+=o(t);return n},i=st.selectors={cachelength:50,createpseudo:ot,match:u,find:{},relative:{">":{dir:"parentnode",first:!0}," ":{dir:"parentnode"},"+":{dir:"previoussibling",first:!0},"~":{dir:"previoussibling"}},prefilter:{attr:function(e){return e[1]=e[1].replace(et,tt),e[3]=(e[4]||e[5]||"").replace(et,tt),"~="===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]||st.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]&&st.error(e[0]),e},pseudo:function(e){var t,n=!e[5]&&e[2];return u.child.test(e[0])?null:(e[4]?e[2]=e[4]:n&&z.test(n)&&(t=ft(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){return"*"===e?function(){return!0}:(e=e.replace(et,tt).tolowercase(),function(t){return t.nodename&&t.nodename.tolowercase()===e})},class:function(e){var t=k[e+" "];return t||(t=regexp("(^|"+_+")"+e+"("+_+"|$)"))&&k(e,function(e){return t.test(e.classname||typeof e.getattribute!==a&&e.getattribute("class")||"")})},attr:function(e,t,n){return function(r){var i=st.attr(r,e);return null==i?"!="===t:t?(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexof(n):"*="===t?n&&i.indexof(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexof(n)>-1:"|="===t?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},child:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentnode}:function(t,n,u){var l,c,p,f,d,h,g=o!==a?"nextsibling":"previoussibling",m=t.parentnode,y=s&&t.nodename.tolowercase(),v=!u&&!s;if(m){if(o){while(g){p=t;while(p=p[g])if(s?p.nodename.tolowercase()===y:1===p.nodetype)return!1;h=g="only"===e&&!h&&"nextsibling"}return!0}if(h=[a?m.firstchild:m.lastchild],a&&v){c=m[x]||(m[x]={}),l=c[e]||[],d=l[0]===n&&l[1],f=l[0]===n&&l[2],p=d&&m.childnodes[d];while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if(1===p.nodetype&&++f&&p===t){c[e]=[n,d,f];break}}else if(v&&(l=(t[x]||(t[x]={}))[e])&&l[0]===n)f=l[1];else while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if((s?p.nodename.tolowercase()===y:1===p.nodetype)&&++f&&(v&&((p[x]||(p[x]={}))[e]=[n,f]),p===t))break;return f-=i,f===r||0===f%r&&f/r>=0}}},pseudo:function(e,t){var n,r=i.pseudos[e]||i.setfilters[e.tolowercase()]||st.error("unsupported pseudo: "+e);return r[x]?r(t):r.length>1?(n=[e,e,"",t],i.setfilters.hasownproperty(e.tolowercase())?ot(function(e,n){var i,o=r(e,t),a=o.length;while(a--)i=m.call(e,o[a]),e[i]=!(n[i]=o[a])}):function(e){return r(e,0,n)}):r}},pseudos:{not:ot(function(e){var t=[],n=[],r=s(e.replace(w,"$1"));return r[x]?ot(function(e,t,n,i){var o,a=r(e,null,i,[]),s=e.length;while(s--)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}}),has:ot(function(e){return function(t){return st(e,t).length>0}}),contains:ot(function(e){return function(t){return(t.textcontent||t.innertext||o(t)).indexof(e)>-1}}),lang:ot(function(e){return x.test(e||"")||st.error("unsupported lang: "+e),e=e.replace(et,tt).tolowercase(),function(t){var n;do if(n=d?t.getattribute("xml:lang")||t.getattribute("lang"):t.lang)return n=n.tolowercase(),n===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===f},focus:function(e){return e===p.activeelement&&(!p.hasfocus||p.hasfocus())&&!!(e.type||e.href||~e.tabindex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodename.tolowercase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentnode&&e.parentnode.selectedindex,e.selected===!0},empty:function(e){for(e=e.firstchild;e;e=e.nextsibling)if(e.nodename>"@"||3===e.nodetype||4===e.nodetype)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return q.test(e.nodename)},input:function(e){return g.test(e.nodename)},button:function(e){var t=e.nodename.tolowercase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodename.tolowercase()&&"text"===e.type&&(null==(t=e.getattribute("type"))||t.tolowercase()===e.type)},first:pt(function(){return[0]}),last:pt(function(e,t){return[t-1]}),eq:pt(function(e,t,n){return[0>n?n+t:n]}),even:pt(function(e,t){var n=0;for(;t>n;n+=2)e.push(n);return e}),odd:pt(function(e,t){var n=1;for(;t>n;n+=2)e.push(n);return e}),lt:pt(function(e,t,n){var r=0>n?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:pt(function(e,t,n){var r=0>n?n+t:n;for(;t>++r;)e.push(r);return e})}};for(n in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[n]=lt(n);for(n in{submit:!0,reset:!0})i.pseudos[n]=ct(n);function ft(e,t){var n,r,o,a,s,u,l,c=e[e+" "];if(c)return t?0:c.slice(0);s=e,u=[],l=i.prefilter;while(s){(!n||(r=$.exec(s)))&&(r&&(s=s.slice(r[0].length)||s),u.push(o=[])),n=!1,(r=i.exec(s))&&(n=r.shift(),o.push({value:n,type:r[0].replace(w," ")}),s=s.slice(n.length));for(a in i.filter)!(r=u[a].exec(s))||l[a]&&!(r=l[a](r))||(n=r.shift(),o.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?st.error(e):e(e,u).slice(0)}function dt(e){var t=0,n=e.length,r="";for(;n>t;t++)r+=e[t].value;return r}function ht(e,t,n){var i=t.dir,o=n&&"parentnode"===i,a=c++;return t.first?function(t,n,r){while(t=t[i])if(1===t.nodetype||o)return e(t,n,r)}:function(t,n,s){var u,l,c,p=n+" "+a;if(s){while(t=t[i])if((1===t.nodetype||o)&&e(t,n,s))return!0}else while(t=t[i])if(1===t.nodetype||o)if(c=t[x]||(t[x]={}),(l=c[i])&&l[0]===p){if((u=l[1])===!0||u===r)return u===!0}else if(l=c[i]=[p],l[1]=e(t,n,s)||r,l[1]===!0)return!0}}function gt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function mt(e,t,n,r,i){var o,a=[],s=0,u=e.length,l=null!=t;for(;u>s;s++)(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),l&&t.push(s));return a}function yt(e,t,n,r,i,o){return r&&!r[x]&&(r=yt(r)),i&&!i[x]&&(i=yt(i,o)),ot(function(o,a,s,u){var l,c,p,f=[],d=[],h=a.length,g=o||xt(t||"*",s.nodetype?[s]:s,[]),m=!e||!o&&t?g:mt(g,f,e,s,u),y=n?i||(o?e:h||r)?[]:a:m;if(n&&n(m,y,s,u),r){l=mt(y,d),r(l,[],s,u),c=l.length;while(c--)(p=l[c])&&(y[d[c]]=!(m[d[c]]=p))}if(o){if(i||e){if(i){l=[],c=y.length;while(c--)(p=y[c])&&l.push(m[c]=p);i(null,y=[],l,u)}c=y.length;while(c--)(p=y[c])&&(l=i?m.call(o,p):f[c])>-1&&(o[l]=!(a[l]=p))}}else y=mt(y===a?y.splice(h,y.length):y),i?i(null,a,y,u):h.apply(a,y)})}function vt(e){var t,n,r,o=e.length,a=i.relative[e[0].type],s=a||i.relative[" "],u=a?1:0,c=ht(function(e){return e===t},s,!0),p=ht(function(e){return m.call(t,e)>-1},s,!0),f=[function(e,n,r){return!a&&(r||n!==l)||((t=n).nodetype?c(e,n,r):p(e,n,r))}];for(;o>u;u++)if(n=i.relative[e[u].type])f=[ht(gt(f),n)];else{if(n=i.filter[e[u].type].apply(null,e[u].matches),n[x]){for(r=++u;o>r;r++)if(i.relative[e[r].type])break;return yt(u>1&>(f),u>1&&dt(e.slice(0,u-1)).replace(w,"$1"),n,r>u&&vt(e.slice(u,r)),o>r&&vt(e=e.slice(r)),o>r&&dt(e))}f.push(n)}return gt(f)}function bt(e,t){var n=0,o=t.length>0,a=e.length>0,s=function(s,u,c,f,d){var h,g,m,y=[],v=0,b="0",x=s&&[],w=null!=d,t=l,c=s||a&&i.find.tag("*",d&&u.parentnode||u),k=n+=null==t?1:math.random()||.1;for(w&&(l=u!==p&&u,r=n);null!=(h=c[b]);b++){if(a&&h){g=0;while(m=e[g++])if(m(h,u,c)){f.push(h);break}w&&(n=k,r=++n)}o&&((h=!m&&h)&&v--,s&&x.push(h))}if(v+=b,o&&b!==v){g=0;while(m=t[g++])m(x,y,u,c);if(s){if(v>0)while(b--)x[b]||y[b]||(y[b]=l.call(f));y=mt(y)}h.apply(f,y),w&&!s&&y.length>0&&v+t.length>1&&st.uniquesort(f)}return w&&(n=k,l=t),x};return o?ot(s):s}s=st.compile=function(e,t){var n,r=[],i=[],o=s[e+" "];if(!o){t||(t=ft(e)),n=t.length;while(n--)o=vt(t[n]),o[x]?r.push(o):i.push(o);o=s(e,bt(i,r))}return o};function xt(e,t,n){var r=0,i=t.length;for(;i>r;r++)st(e,t[r],n);return n}function wt(e,t,n,r){var o,a,u,l,c,p=ft(e);if(!r&&1===p.length){if(a=p[0]=p[0].slice(0),a.length>2&&"id"===(u=a[0]).type&&9===t.nodetype&&!d&&i.relative[a[1].type]){if(t=i.find.id(u.matches[0].replace(et,tt),t)[0],!t)return n;e=e.slice(a.shift().value.length)}o=u.needscontext.test(e)?0:a.length;while(o--){if(u=a[o],i.relative[l=u.type])break;if((c=i.find[l])&&(r=c(u.matches[0].replace(et,tt),v.test(a[0].type)&&t.parentnode||t))){if(a.splice(o,1),e=r.length&&dt(a),!e)return h.apply(n,q.call(r,0)),n;break}}}return s(e,p)(r,t,d,n,v.test(e)),n}i.pseudos.nth=i.pseudos.eq;function tt(){}i.filters=tt.prototype=i.pseudos,i.setfilters=new tt,c(),st.attr=b.attr,b.find=st,b.expr=st.selectors,b.expr[":"]=b.expr.pseudos,b.unique=st.uniquesort,b.text=st.gettext,b.isxmldoc=st.isxml,b.contains=st.contains}(e);var at=/until$/,st=/^(?:parents|prev(?:until|all))/,ut=/^.[^:#\[\.,]*$/,lt=b.expr.match.needscontext,ct={children:!0,contents:!0,next:!0,prev:!0};b.fn.extend({find:function(e){var t,n,r,i=this.length;if("string"!=typeof e)return r=this,this.pushstack(b(e).filter(function(){for(t=0;i>t;t++)if(b.contains(r[t],this))return!0}));for(n=[],t=0;i>t;t++)b.find(e,this[t],n);return n=this.pushstack(i>1?b.unique(n):n),n.selector=(this.selector?this.selector+" ":"")+e,n},has:function(e){var t,n=b(e,this),r=n.length;return this.filter(function(){for(t=0;r>t;t++)if(b.contains(this,n[t]))return!0})},not:function(e){return this.pushstack(ft(this,e,!1))},filter:function(e){return this.pushstack(ft(this,e,!0))},is:function(e){return!!e&&("string"==typeof e?lt.test(e)?b(e,this.context).index(this[0])>=0:b.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){var n,r=0,i=this.length,o=[],a=lt.test(e)||"string"!=typeof e?b(e,t||this.context):0;for(;i>r;r++){n=this[r];while(n&&n.ownerdocument&&n!==t&&11!==n.nodetype){if(a?a.index(n)>-1:b.find.matchesselector(n,e)){o.push(n);break}n=n.parentnode}}return this.pushstack(o.length>1?b.unique(o):o)},index:function(e){return e?"string"==typeof e?b.inarray(this[0],b(e)):b.inarray(e.jquery?e[0]:e,this):this[0]&&this[0].parentnode?this.first().prevall().length:-1},add:function(e,t){var n="string"==typeof e?b(e,t):b.makearray(e&&e.nodetype?[e]:e),r=b.merge(this.get(),n);return this.pushstack(b.unique(r))},addback:function(e){return this.add(null==e?this.prevobject:this.prevobject.filter(e))}}),b.fn.andself=b.fn.addback;function pt(e,t){do e=e[t];while(e&&1!==e.nodetype);return e}b.each({parent:function(e){var t=e.parentnode;return t&&11!==t.nodetype?t:null},parents:function(e){return b.dir(e,"parentnode")},parentsuntil:function(e,t,n){return b.dir(e,"parentnode",n)},next:function(e){return pt(e,"nextsibling")},prev:function(e){return pt(e,"previoussibling")},nextall:function(e){return b.dir(e,"nextsibling")},prevall:function(e){return b.dir(e,"previoussibling")},nextuntil:function(e,t,n){return b.dir(e,"nextsibling",n)},prevuntil:function(e,t,n){return b.dir(e,"previoussibling",n)},siblings:function(e){return b.sibling((e.parentnode||{}).firstchild,e)},children:function(e){return b.sibling(e.firstchild)},contents:function(e){return b.nodename(e,"iframe")?e.contentdocument||e.contentwindow.document:b.merge([],e.childnodes)}},function(e,t){b.fn[e]=function(n,r){var i=b.map(this,t,n);return at.test(e)||(r=n),r&&"string"==typeof r&&(i=b.filter(r,i)),i=this.length>1&&!ct[e]?b.unique(i):i,this.length>1&&st.test(e)&&(i=i.reverse()),this.pushstack(i)}}),b.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),1===t.length?b.find.matchesselector(t[0],e)?[t[0]]:[]:b.find.matches(e,t)},dir:function(e,n,r){var i=[],o=e[n];while(o&&9!==o.nodetype&&(r===t||1!==o.nodetype||!b(o).is(r)))1===o.nodetype&&i.push(o),o=o[n];return i},sibling:function(e,t){var n=[];for(;e;e=e.nextsibling)1===e.nodetype&&e!==t&&n.push(e);return n}});function ft(e,t,n){if(t=t||0,b.isfunction(t))return b.grep(e,function(e,r){var i=!!t.call(e,r,e);return i===n});if(t.nodetype)return b.grep(e,function(e){return e===t===n});if("string"==typeof t){var r=b.grep(e,function(e){return 1===e.nodetype});if(ut.test(t))return b.filter(t,r,!n);t=b.filter(t,r)}return b.grep(e,function(e){return b.inarray(e,t)>=0===n})}function dt(e){var t=ht.split("|"),n=e.createdocumentfragment();if(n.createelement)while(t.length)n.createelement(t.pop());return n}var ht="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",gt=/ jquery\d+="(?:null|\d+)"/g,mt=regexp("<(?:"+ht+")[\\s/>]","i"),yt=/^\s+/,vt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bt=/<([\w:]+)/,xt=/\s*$/g,at={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:b.support.htmlserialize?[0,"",""]:[1,"x
","
"]},jt=dt(o),dt=jt.appendchild(o.createelement("div"));at.optgroup=at.option,at.tbody=at.tfoot=at.colgroup=at.caption=at.thead,at.th=at.td,b.fn.extend({text:function(e){return b.access(this,function(e){return e===t?b.text(this):this.empty().append((this[0]&&this[0].ownerdocument||o).createtextnode(e))},null,e,arguments.length)},wrapall:function(e){if(b.isfunction(e))return this.each(function(t){b(this).wrapall(e.call(this,t))});if(this[0]){var t=b(e,this[0].ownerdocument).eq(0).clone(!0);this[0].parentnode&&t.insertbefore(this[0]),t.map(function(){var e=this;while(e.firstchild&&1===e.firstchild.nodetype)e=e.firstchild;return e}).append(this)}return this},wrapinner:function(e){return b.isfunction(e)?this.each(function(t){b(this).wrapinner(e.call(this,t))}):this.each(function(){var t=b(this),n=t.contents();n.length?n.wrapall(e):t.append(e)})},wrap:function(e){var t=b.isfunction(e);return this.each(function(n){b(this).wrapall(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){b.nodename(this,"body")||b(this).replacewith(this.childnodes)}).end()},append:function(){return this.dommanip(arguments,!0,function(e){(1===this.nodetype||11===this.nodetype||9===this.nodetype)&&this.appendchild(e)})},prepend:function(){return this.dommanip(arguments,!0,function(e){(1===this.nodetype||11===this.nodetype||9===this.nodetype)&&this.insertbefore(e,this.firstchild)})},before:function(){return this.dommanip(arguments,!1,function(e){this.parentnode&&this.parentnode.insertbefore(e,this)})},after:function(){return this.dommanip(arguments,!1,function(e){this.parentnode&&this.parentnode.insertbefore(e,this.nextsibling)})},remove:function(e,t){var n,r=0;for(;null!=(n=this[r]);r++)(!e||b.filter(e,[n]).length>0)&&(t||1!==n.nodetype||b.cleandata(ot(n)),n.parentnode&&(t&&b.contains(n.ownerdocument,n)&&mt(ot(n,"script")),n.parentnode.removechild(n)));return this},empty:function(){var e,t=0;for(;null!=(e=this[t]);t++){1===e.nodetype&&b.cleandata(ot(e,!1));while(e.firstchild)e.removechild(e.firstchild);e.options&&b.nodename(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return b.clone(this,e,t)})},html:function(e){return b.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return 1===n.nodetype?n.innerhtml.replace(gt,""):t;if(!("string"!=typeof e||tt.test(e)||!b.support.htmlserialize&&mt.test(e)||!b.support.leadingwhitespace&&yt.test(e)||at[(bt.exec(e)||["",""])[1].tolowercase()])){e=e.replace(vt,"<$1>");try{for(;i>r;r++)n=this[r]||{},1===n.nodetype&&(b.cleandata(ot(n,!1)),n.innerhtml=e);n=0}catch(o){}}n&&this.empty().append(e)},null,e,arguments.length)},replacewith:function(e){var t=b.isfunction(e);return t||"string"==typeof e||(e=b(e).not(this).detach()),this.dommanip([e],!0,function(e){var t=this.nextsibling,n=this.parentnode;n&&(b(this).remove(),n.insertbefore(e,t))})},detach:function(e){return this.remove(e,!0)},dommanip:function(e,n,r){e=f.apply([],e);var i,o,a,s,u,l,c=0,p=this.length,d=this,h=p-1,g=e[0],m=b.isfunction(g);if(m||!(1>=p||"string"!=typeof g||b.support.checkclone)&&ct.test(g))return this.each(function(i){var o=d.eq(i);m&&(e[0]=g.call(this,i,n?o.html():t)),o.dommanip(e,n,r)});if(p&&(l=b.buildfragment(e,this[0].ownerdocument,!1,this),i=l.firstchild,1===l.childnodes.length&&(l=i),i)){for(n=n&&b.nodename(i,"tr"),s=b.map(ot(l,"script"),ht),a=s.length;p>c;c++)o=l,c!==h&&(o=b.clone(o,!0,!0),a&&b.merge(s,ot(o,"script"))),r.call(n&&b.nodename(this[c],"table")?lt(this[c],"tbody"):this[c],o,c);if(a)for(u=s[s.length-1].ownerdocument,b.map(s,qt),c=0;a>c;c++)o=s[c],kt.test(o.type||"")&&!b._data(o,"globaleval")&&b.contains(u,o)&&(o.src?b.ajax({url:o.src,type:"get",datatype:"script",async:!1,global:!1,"throws":!0}):b.globaleval((o.text||o.textcontent||o.innerhtml||"").replace(st,"")));l=i=null}return this}});function lt(e,t){return e.getelementsbytagname(t)[0]||e.appendchild(e.ownerdocument.createelement(t))}function ht(e){var t=e.getattributenode("type");return e.type=(t&&t.specified)+"/"+e.type,e}function qt(e){var t=et.exec(e.type);return t?e.type=t[1]:e.removeattribute("type"),e}function mt(e,t){var n,r=0;for(;null!=(n=e[r]);r++)b._data(n,"globaleval",!t||b._data(t[r],"globaleval"))}function _t(e,t){if(1===t.nodetype&&b.hasdata(e)){var n,r,i,o=b._data(e),a=b._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;i>r;r++)b.event.add(t,n,s[n][r])}a.data&&(a.data=b.extend({},a.data))}}function ft(e,t){var n,r,i;if(1===t.nodetype){if(n=t.nodename.tolowercase(),!b.support.nocloneevent&&t[b.expando]){i=b._data(t);for(r in i.events)b.removeevent(t,r,i.handle);t.removeattribute(b.expando)}"script"===n&&t.text!==e.text?(ht(t).text=e.text,qt(t)):"object"===n?(t.parentnode&&(t.outerhtml=e.outerhtml),b.support.html5clone&&e.innerhtml&&!b.trim(t.innerhtml)&&(t.innerhtml=e.innerhtml)):"input"===n&&nt.test(e.type)?(t.defaultchecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultselected=t.selected=e.defaultselected:("input"===n||"textarea"===n)&&(t.defaultvalue=e.defaultvalue)}}b.each({appendto:"append",prependto:"prepend",insertbefore:"before",insertafter:"after",replaceall:"replacewith"},function(e,t){b.fn[e]=function(e){var n,r=0,i=[],o=b(e),a=o.length-1;for(;a>=r;r++)n=r===a?this:this.clone(!0),b(o[r])[t](n),d.apply(i,n.get());return this.pushstack(i)}});function ot(e,n){var r,o,a=0,s=typeof e.getelementsbytagname!==i?e.getelementsbytagname(n||"*"):typeof e.queryselectorall!==i?e.queryselectorall(n||"*"):t;if(!s)for(s=[],r=e.childnodes||e;null!=(o=r[a]);a++)!n||b.nodename(o,n)?s.push(o):b.merge(s,ot(o,n));return n===t||n&&b.nodename(e,n)?b.merge([e],s):s}function bt(e){nt.test(e.type)&&(e.defaultchecked=e.checked)}b.extend({clone:function(e,t,n){var r,i,o,a,s,u=b.contains(e.ownerdocument,e);if(b.support.html5clone||b.isxmldoc(e)||!mt.test("<"+e.nodename+">")?o=e.clonenode(!0):(dt.innerhtml=e.outerhtml,dt.removechild(o=dt.firstchild)),!(b.support.nocloneevent&&b.support.noclonechecked||1!==e.nodetype&&11!==e.nodetype||b.isxmldoc(e)))for(r=ot(o),s=ot(e),a=0;null!=(i=s[a]);++a)r[a]&&ft(i,r[a]);if(t)if(n)for(s=s||ot(e),r=r||ot(o),a=0;null!=(i=s[a]);a++)_t(i,r[a]);else _t(e,o);return r=ot(o,"script"),r.length>0&&mt(r,!u&&ot(e,"script")),r=s=i=null,o},buildfragment:function(e,t,n,r){var i,o,a,s,u,l,c,p=e.length,f=dt(t),d=[],h=0;for(;p>h;h++)if(o=e[h],o||0===o)if("object"===b.type(o))b.merge(d,o.nodetype?[o]:o);else if(wt.test(o)){s=s||f.appendchild(t.createelement("div")),u=(bt.exec(o)||["",""])[1].tolowercase(),c=at[u]||at._default,s.innerhtml=c[1]+o.replace(vt,"<$1>")+c[2],i=c[0];while(i--)s=s.lastchild;if(!b.support.leadingwhitespace&&yt.test(o)&&d.push(t.createtextnode(yt.exec(o)[0])),!b.support.tbody){o="table"!==u||xt.test(o)?""!==c[1]||xt.test(o)?0:s:s.firstchild,i=o&&o.childnodes.length;while(i--)b.nodename(l=o.childnodes[i],"tbody")&&!l.childnodes.length&&o.removechild(l) }b.merge(d,s.childnodes),s.textcontent="";while(s.firstchild)s.removechild(s.firstchild);s=f.lastchild}else d.push(t.createtextnode(o));s&&f.removechild(s),b.support.appendchecked||b.grep(ot(d,"input"),bt),h=0;while(o=d[h++])if((!r||-1===b.inarray(o,r))&&(a=b.contains(o.ownerdocument,o),s=ot(f.appendchild(o),"script"),a&&mt(s),n)){i=0;while(o=s[i++])kt.test(o.type||"")&&n.push(o)}return s=null,f},cleandata:function(e,t){var n,r,o,a,s=0,u=b.expando,l=b.cache,p=b.support.deleteexpando,f=b.event.special;for(;null!=(n=e[s]);s++)if((t||b.acceptdata(n))&&(o=n[u],a=o&&l[o])){if(a.events)for(r in a.events)f[r]?b.event.remove(n,r):b.removeevent(n,r,a.handle);l[o]&&(delete l[o],p?delete n[u]:typeof n.removeattribute!==i?n.removeattribute(u):n[u]=null,c.push(o))}}});var pt,rt,wt,$t=/alpha\([^)]*\)/i,it=/opacity\s*=\s*([^)]*)/,zt=/^(top|right|bottom|left)$/,xt=/^(none|table(?!-c[ea]).+)/,ut=/^margin/,vt=regexp("^("+x+")(.*)$","i"),yt=regexp("^("+x+")(?!px)[a-z%]+$","i"),jt=regexp("^([+-])=("+x+")","i"),gt={body:"block"},qt={position:"absolute",visibility:"hidden",display:"block"},kt={letterspacing:0,fontweight:400},zt=["top","right","bottom","left"],en=["webkit","o","moz","ms"];function tn(e,t){if(t in e)return t;var n=t.charat(0).touppercase()+t.slice(1),r=t,i=en.length;while(i--)if(t=en[i]+n,t in e)return t;return r}function nn(e,t){return e=t||e,"none"===b.css(e,"display")||!b.contains(e.ownerdocument,e)}function rn(e,t){var n,r,i,o=[],a=0,s=e.length;for(;s>a;a++)r=e[a],r.style&&(o[a]=b._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&nn(r)&&(o[a]=b._data(r,"olddisplay",un(r.nodename)))):o[a]||(i=nn(r),(n&&"none"!==n||!i)&&b._data(r,"olddisplay",i?n:b.css(r,"display"))));for(a=0;s>a;a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}b.fn.extend({css:function(e,n){return b.access(this,function(e,n,r){var i,o,a={},s=0;if(b.isarray(n)){for(o=rt(e),i=n.length;i>s;s++)a[n[s]]=b.css(e,n[s],!1,o);return a}return r!==t?b.style(e,n,r):b.css(e,n)},e,n,arguments.length>1)},show:function(){return rn(this,!0)},hide:function(){return rn(this)},toggle:function(e){var t="boolean"==typeof e;return this.each(function(){(t?e:nn(this))?b(this).show():b(this).hide()})}}),b.extend({csshooks:{opacity:{get:function(e,t){if(t){var n=wt(e,"opacity");return""===n?"1":n}}}},cssnumber:{columncount:!0,fillopacity:!0,fontweight:!0,lineheight:!0,opacity:!0,orphans:!0,widows:!0,zindex:!0,zoom:!0},cssprops:{"float":b.support.cssfloat?"cssfloat":"stylefloat"},style:function(e,n,r,i){if(e&&3!==e.nodetype&&8!==e.nodetype&&e.style){var o,a,s,u=b.camelcase(n),l=e.style;if(n=b.cssprops[u]||(b.cssprops[u]=tn(l,u)),s=b.csshooks[n]||b.csshooks[u],r===t)return s&&"get"in s&&(o=s.get(e,!1,i))!==t?o:l[n];if(a=typeof r,"string"===a&&(o=jt.exec(r))&&(r=(o[1]+1)*o[2]+parsefloat(b.css(e,n)),a="number"),!(null==r||"number"===a&&isnan(r)||("number"!==a||b.cssnumber[u]||(r+="px"),b.support.clearclonestyle||""!==r||0!==n.indexof("background")||(l[n]="inherit"),s&&"set"in s&&(r=s.set(e,r,i))===t)))try{l[n]=r}catch(c){}}},css:function(e,n,r,i){var o,a,s,u=b.camelcase(n);return n=b.cssprops[u]||(b.cssprops[u]=tn(e.style,u)),s=b.csshooks[n]||b.csshooks[u],s&&"get"in s&&(a=s.get(e,!0,r)),a===t&&(a=wt(e,n,i)),"normal"===a&&n in kt&&(a=kt[n]),""===r||r?(o=parsefloat(a),r===!0||b.isnumeric(o)?o||0:a):a},swap:function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i}}),e.getcomputedstyle?(rt=function(t){return e.getcomputedstyle(t,null)},wt=function(e,n,r){var i,o,a,s=r||rt(e),u=s?s.getpropertyvalue(n)||s[n]:t,l=e.style;return s&&(""!==u||b.contains(e.ownerdocument,e)||(u=b.style(e,n)),yt.test(u)&&ut.test(n)&&(i=l.width,o=l.minwidth,a=l.maxwidth,l.minwidth=l.maxwidth=l.width=u,u=s.width,l.width=i,l.minwidth=o,l.maxwidth=a)),u}):o.documentelement.currentstyle&&(rt=function(e){return e.currentstyle},wt=function(e,n,r){var i,o,a,s=r||rt(e),u=s?s[n]:t,l=e.style;return null==u&&l&&l[n]&&(u=l[n]),yt.test(u)&&!zt.test(n)&&(i=l.left,o=e.runtimestyle,a=o&&o.left,a&&(o.left=e.currentstyle.left),l.left="fontsize"===n?"1em":u,u=l.pixelleft+"px",l.left=i,a&&(o.left=a)),""===u?"auto":u});function on(e,t,n){var r=vt.exec(t);return r?math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function an(e,t,n,r,i){var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;for(;4>o;o+=2)"margin"===n&&(a+=b.css(e,n+zt[o],!0,i)),r?("content"===n&&(a-=b.css(e,"padding"+zt[o],!0,i)),"margin"!==n&&(a-=b.css(e,"border"+zt[o]+"width",!0,i))):(a+=b.css(e,"padding"+zt[o],!0,i),"padding"!==n&&(a+=b.css(e,"border"+zt[o]+"width",!0,i)));return a}function sn(e,t,n){var r=!0,i="width"===t?e.offsetwidth:e.offsetheight,o=rt(e),a=b.support.boxsizing&&"border-box"===b.css(e,"boxsizing",!1,o);if(0>=i||null==i){if(i=wt(e,t,o),(0>i||null==i)&&(i=e.style[t]),yt.test(i))return i;r=a&&(b.support.boxsizingreliable||i===e.style[t]),i=parsefloat(i)||0}return i+an(e,t,n||(a?"border":"content"),r,o)+"px"}function un(e){var t=o,n=gt[e];return n||(n=ln(e,t),"none"!==n&&n||(pt=(pt||b("':""),e._keyevent=!1,b},_generatemonthyearheader:function(e,t,n,r,i,s,o,u){var a=this._get(e,"changemonth"),f=this._get(e,"changeyear"),l=this._get(e,"showmonthafteryear"),c='
',h="";if(s||!a)h+=''+o[t]+"";else{var p=r&&r.getfullyear()==n,d=i&&i.getfullyear()==n;h+='"}l||(c+=h+(s||!a||!f?" ":""));if(!e.yearshtml){e.yearshtml="";if(s||!f)c+=''+n+"";else{var m=this._get(e,"yearrange").split(":"),g=(new date).getfullyear(),y=function(e){var t=e.match(/c[+-].*/)?n+parseint(e.substring(1),10):e.match(/[+-].*/)?g+parseint(e,10):parseint(e,10);return isnan(t)?g:t},b=y(m[0]),w=math.max(b,y(m[1]||""));b=r?math.max(b,r.getfullyear()):b,w=i?math.min(w,i.getfullyear()):w,e.yearshtml+='",c+=e.yearshtml,e.yearshtml=null}}return c+=this._get(e,"yearsuffix"),l&&(c+=(s||!a||!f?" ":"")+h),c+="
",c},_adjustinstdate:function(e,t,n){var r=e.drawyear+(n=="y"?t:0),i=e.drawmonth+(n=="m"?t:0),s=math.min(e.selectedday,this._getdaysinmonth(r,i))+(n=="d"?t:0),o=this._restrictminmax(e,this._daylightsavingadjust(new date(r,i,s)));e.selectedday=o.getdate(),e.drawmonth=e.selectedmonth=o.getmonth(),e.drawyear=e.selectedyear=o.getfullyear(),(n=="m"||n=="y")&&this._notifychange(e)},_restrictminmax:function(e,t){var n=this._getminmaxdate(e,"min"),r=this._getminmaxdate(e,"max"),i=n&&tr?r:i,i},_notifychange:function(e){var t=this._get(e,"onchangemonthyear");t&&t.apply(e.input?e.input[0]:null,[e.selectedyear,e.selectedmonth+1,e])},_getnumberofmonths:function(e){var t=this._get(e,"numberofmonths");return t==null?[1,1]:typeof t=="number"?[1,t]:t},_getminmaxdate:function(e,t){return this._determinedate(e,this._get(e,t+"date"),null)},_getdaysinmonth:function(e,t){return 32-this._daylightsavingadjust(new date(e,t,32)).getdate()},_getfirstdayofmonth:function(e,t){return(new date(e,t,1)).getday()},_canadjustmonth:function(e,t,n,r){var i=this._getnumberofmonths(e),s=this._daylightsavingadjust(new date(n,r+(t<0?t:i[0]*i[1]),1));return t<0&&s.setdate(this._getdaysinmonth(s.getfullyear(),s.getmonth())),this._isinrange(e,s)},_isinrange:function(e,t){var n=this._getminmaxdate(e,"min"),r=this._getminmaxdate(e,"max");return(!n||t.gettime()>=n.gettime())&&(!r||t.gettime()<=r.gettime())},_getformatconfig:function(e){var t=this._get(e,"shortyearcutoff");return t=typeof t!="string"?t:(new date).getfullyear()%100+parseint(t,10),{shortyearcutoff:t,daynamesshort:this._get(e,"daynamesshort"),daynames:this._get(e,"daynames"),monthnamesshort:this._get(e,"monthnamesshort"),monthnames:this._get(e,"monthnames")}},_formatdate:function(e,t,n,r){t||(e.currentday=e.selectedday,e.currentmonth=e.selectedmonth,e.currentyear=e.selectedyear);var i=t?typeof t=="object"?t:this._daylightsavingadjust(new date(r,n,t)):this._daylightsavingadjust(new date(e.currentyear,e.currentmonth,e.currentday));return this.formatdate(this._get(e,"dateformat"),i,this._getformatconfig(e))}}),$.fn.datepicker=function(e){if(!this.length)return this;$.datepicker.initialized||($(document).mousedown($.datepicker._checkexternalclick).find(document.body).append($.datepicker.dpdiv),$.datepicker.initialized=!0);var t=array.prototype.slice.call(arguments,1);return typeof e!="string"||e!="isdisabled"&&e!="getdate"&&e!="widget"?e=="option"&&arguments.length==2&&typeof arguments[1]=="string"?$.datepicker["_"+e+"datepicker"].apply($.datepicker,[this[0]].concat(t)):this.each(function(){typeof e=="string"?$.datepicker["_"+e+"datepicker"].apply($.datepicker,[this].concat(t)):$.datepicker._attachdatepicker(this,e)}):$.datepicker["_"+e+"datepicker"].apply($.datepicker,[this[0]].concat(t))},$.datepicker=new datepicker,$.datepicker.initialized=!1,$.datepicker.uuid=(new date).gettime(),$.datepicker.version="1.9.1",window["dp_jquery_"+dpuuid]=$}(jquery),function(e,t){var n="ui-dialog ui-widget ui-widget-content ui-corner-all ",r={buttons:!0,height:!0,maxheight:!0,maxwidth:!0,minheight:!0,minwidth:!0,width:!0},i={maxheight:!0,maxwidth:!0,minheight:!0,minwidth:!0};e.widget("ui.dialog",{version:"1.9.1",options:{autoopen:!0,buttons:{},closeonescape:!0,closetext:"close",dialogclass:"",draggable:!0,hide:null,height:"auto",maxheight:!1,maxwidth:!1,minheight:150,minwidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var n=e(this).css(t).offset().top;n<0&&e(this).css("top",t.top-n)}},resizable:!0,show:null,stack:!0,title:"",width:300,zindex:1e3},_create:function(){this.originaltitle=this.element.attr("title"),typeof this.originaltitle!="string"&&(this.originaltitle=""),this.oldposition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.options.title=this.options.title||this.originaltitle;var t=this,r=this.options,i=r.title||" ",s,o,u,a,f;s=(this.uidialog=e("
")).addclass(n+r.dialogclass).css({display:"none",outline:0,zindex:r.zindex}).attr("tabindex",-1).keydown(function(n){r.closeonescape&&!n.isdefaultprevented()&&n.keycode&&n.keycode===e.ui.keycode.escape&&(t.close(n),n.preventdefault())}).mousedown(function(e){t.movetotop(!1,e)}).appendto("body"),this.element.show().removeattr("title").addclass("ui-dialog-content ui-widget-content").appendto(s),o=(this.uidialogtitlebar=e("
")).addclass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").bind("mousedown",function(){s.focus()}).prependto(s),u=e("").addclass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").click(function(e){e.preventdefault(),t.close(e)}).appendto(o),(this.uidialogtitlebarclosetext=e("")).addclass("ui-icon ui-icon-closethick").text(r.closetext).appendto(u),a=e("").uniqueid().addclass("ui-dialog-title").html(i).prependto(o),f=(this.uidialogbuttonpane=e("
")).addclass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),(this.uibuttonset=e("
")).addclass("ui-dialog-buttonset").appendto(f),s.attr({role:"dialog","aria-labelledby":a.attr("id")}),o.find("*").add(o).disableselection(),this._hoverable(u),this._focusable(u),r.draggable&&e.fn.draggable&&this._makedraggable(),r.resizable&&e.fn.resizable&&this._makeresizable(),this._createbuttons(r.buttons),this._isopen=!1,e.fn.bgiframe&&s.bgiframe(),this._on(s,{keydown:function(t){if(!r.modal||t.keycode!==e.ui.keycode.tab)return;var n=e(":tabbable",s),i=n.filter(":first"),o=n.filter(":last");if(t.target===o[0]&&!t.shiftkey)return i.focus(1),!1;if(t.target===i[0]&&t.shiftkey)return o.focus(1),!1}})},_init:function(){this.options.autoopen&&this.open()},_destroy:function(){var e,t=this.oldposition;this.overlay&&this.overlay.destroy(),this.uidialog.hide(),this.element.removeclass("ui-dialog-content ui-widget-content").hide().appendto("body"),this.uidialog.remove(),this.originaltitle&&this.element.attr("title",this.originaltitle),e=t.parent.children().eq(t.index),e.length&&e[0]!==this.element[0]?e.before(this.element):t.parent.append(this.element)},widget:function(){return this.uidialog},close:function(t){var n=this,r,i;if(!this._isopen)return;if(!1===this._trigger("beforeclose",t))return;return this._isopen=!1,this.overlay&&this.overlay.destroy(),this.options.hide?this._hide(this.uidialog,this.options.hide,function(){n._trigger("close",t)}):(this.uidialog.hide(),this._trigger("close",t)),e.ui.dialog.overlay.resize(),this.options.modal&&(r=0,e(".ui-dialog").each(function(){this!==n.uidialog[0]&&(i=e(this).css("z-index"),isnan(i)||(r=math.max(r,i)))}),e.ui.dialog.maxz=r),this},isopen:function(){return this._isopen},movetotop:function(t,n){var r=this.options,i;return r.modal&&!t||!r.stack&&!r.modal?this._trigger("focus",n):(r.zindex>e.ui.dialog.maxz&&(e.ui.dialog.maxz=r.zindex),this.overlay&&(e.ui.dialog.maxz+=1,e.ui.dialog.overlay.maxz=e.ui.dialog.maxz,this.overlay.$el.css("z-index",e.ui.dialog.overlay.maxz)),i={scrolltop:this.element.scrolltop(),scrollleft:this.element.scrollleft()},e.ui.dialog.maxz+=1,this.uidialog.css("z-index",e.ui.dialog.maxz),this.element.attr(i),this._trigger("focus",n),this)},open:function(){if(this._isopen)return;var t,n=this.options,r=this.uidialog;return this._size(),this._position(n.position),r.show(n.show),this.overlay=n.modal?new e.ui.dialog.overlay(this):null,this.movetotop(!0),t=this.element.find(":tabbable"),t.length||(t=this.uidialogbuttonpane.find(":tabbable"),t.length||(t=r)),t.eq(0).focus(),this._isopen=!0,this._trigger("open"),this},_createbuttons:function(t){var n=this,r=!1;this.uidialogbuttonpane.remove(),this.uibuttonset.empty(),typeof t=="object"&&t!==null&&e.each(t,function(){return!(r=!0)}),r?(e.each(t,function(t,r){r=e.isfunction(r)?{click:r,text:t}:r;var i=e("").attr(r,!0).unbind("click").click(function(){r.click.apply(n.element[0],arguments)}).appendto(n.uibuttonset);e.fn.button&&i.button()}),this.uidialog.addclass("ui-dialog-buttons"),this.uidialogbuttonpane.appendto(this.uidialog)):this.uidialog.removeclass("ui-dialog-buttons")},_makedraggable:function(){function r(e){return{position:e.position,offset:e.offset}}var t=this,n=this.options;this.uidialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(n,i){e(this).addclass("ui-dialog-dragging"),t._trigger("dragstart",n,r(i))},drag:function(e,n){t._trigger("drag",e,r(n))},stop:function(i,s){n.position=[s.position.left-t.document.scrollleft(),s.position.top-t.document.scrolltop()],e(this).removeclass("ui-dialog-dragging"),t._trigger("dragstop",i,r(s)),e.ui.dialog.overlay.resize()}})},_makeresizable:function(n){function u(e){return{originalposition:e.originalposition,originalsize:e.originalsize,position:e.position,size:e.size}}n=n===t?this.options.resizable:n;var r=this,i=this.options,s=this.uidialog.css("position"),o=typeof n=="string"?n:"n,e,s,w,se,sw,ne,nw";this.uidialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoresize:this.element,maxwidth:i.maxwidth,maxheight:i.maxheight,minwidth:i.minwidth,minheight:this._minheight(),handles:o,start:function(t,n){e(this).addclass("ui-dialog-resizing"),r._trigger("resizestart",t,u(n))},resize:function(e,t){r._trigger("resize",e,u(t))},stop:function(t,n){e(this).removeclass("ui-dialog-resizing"),i.height=e(this).height(),i.width=e(this).width(),r._trigger("resizestop",t,u(n)),e.ui.dialog.overlay.resize()}}).css("position",s).find(".ui-resizable-se").addclass("ui-icon ui-icon-grip-diagonal-se")},_minheight:function(){var e=this.options;return e.height==="auto"?e.minheight:math.min(e.minheight,e.height)},_position:function(t){var n=[],r=[0,0],i;if(t){if(typeof t=="string"||typeof t=="object"&&"0"in t)n=t.split?t.split(" "):[t[0],t[1]],n.length===1&&(n[1]=n[0]),e.each(["left","top"],function(e,t){+n[e]===n[e]&&(r[e]=n[e],n[e]=t)}),t={my:n[0]+(r[0]<0?r[0]:"+"+r[0])+" "+n[1]+(r[1]<0?r[1]:"+"+r[1]),at:n.join(" ")};t=e.extend({},e.ui.dialog.prototype.options.position,t)}else t=e.ui.dialog.prototype.options.position;i=this.uidialog.is(":visible"),i||this.uidialog.show(),this.uidialog.position(t),i||this.uidialog.hide()},_setoptions:function(t){var n=this,s={},o=!1;e.each(t,function(e,t){n._setoption(e,t),e in r&&(o=!0),e in i&&(s[e]=t)}),o&&this._size(),this.uidialog.is(":data(resizable)")&&this.uidialog.resizable("option",s)},_setoption:function(t,r){var i,s,o=this.uidialog;switch(t){case"buttons":this._createbuttons(r);break;case"closetext":this.uidialogtitlebarclosetext.text(""+r);break;case"dialogclass":o.removeclass(this.options.dialogclass).addclass(n+r);break;case"disabled":r?o.addclass("ui-dialog-disabled"):o.removeclass("ui-dialog-disabled");break;case"draggable":i=o.is(":data(draggable)"),i&&!r&&o.draggable("destroy"),!i&&r&&this._makedraggable();break;case"position":this._position(r);break;case"resizable":s=o.is(":data(resizable)"),s&&!r&&o.resizable("destroy"),s&&typeof r=="string"&&o.resizable("option","handles",r),!s&&r!==!1&&this._makeresizable(r);break;case"title":e(".ui-dialog-title",this.uidialogtitlebar).html(""+(r||" "))}this._super(t,r)},_size:function(){var t,n,r,i=this.options,s=this.uidialog.is(":visible");this.element.show().css({width:"auto",minheight:0,height:0}),i.minwidth>i.width&&(i.width=i.minwidth),t=this.uidialog.css({height:"auto",width:i.width}).outerheight(),n=math.max(0,i.minheight-t),i.height==="auto"?e.support.minheight?this.element.css({minheight:n,height:"auto"}):(this.uidialog.show(),r=this.element.css("height","auto").height(),s||this.uidialog.hide(),this.element.height(math.max(r,n))):this.element.height(math.max(i.height-t,0)),this.uidialog.is(":data(resizable)")&&this.uidialog.resizable("option","minheight",this._minheight())}}),e.extend(e.ui.dialog,{uuid:0,maxz:0,gettitleid:function(e){var t=e.attr("id");return t||(this.uuid+=1,t=this.uuid),"ui-dialog-title-"+t},overlay:function(t){this.$el=e.ui.dialog.overlay.create(t)}}),e.extend(e.ui.dialog.overlay,{instances:[],oldinstances:[],maxz:0,events:e.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(e){return e+".dialog-overlay"}).join(" "),create:function(t){this.instances.length===0&&(settimeout(function(){e.ui.dialog.overlay.instances.length&&e(document).bind(e.ui.dialog.overlay.events,function(t){if(e(t.target).zindex()").addclass("ui-widget-overlay");return e(document).bind("keydown.dialog-overlay",function(r){var i=e.ui.dialog.overlay.instances;i.length!==0&&i[i.length-1]===n&&t.options.closeonescape&&!r.isdefaultprevented()&&r.keycode&&r.keycode===e.ui.keycode.escape&&(t.close(r),r.preventdefault())}),n.appendto(document.body).css({width:this.width(),height:this.height()}),e.fn.bgiframe&&n.bgiframe(),this.instances.push(n),n},destroy:function(t){var n=e.inarray(t,this.instances),r=0;n!==-1&&this.oldinstances.push(this.instances.splice(n,1)[0]),this.instances.length===0&&e([document,window]).unbind(".dialog-overlay"),t.height(0).width(0).remove(),e.each(this.instances,function(){r=math.max(r,this.css("z-index"))}),this.maxz=r},height:function(){var t,n;return e.ui.ie?(t=math.max(document.documentelement.scrollheight,document.body.scrollheight),n=math.max(document.documentelement.offsetheight,document.body.offsetheight),t1&&b.splice.apply(b,[1,0].concat(b.splice(w,c+1))),r.dequeue()}}(jquery),function(e,t){e.effects.effect.clip=function(t,n){var r=e(this),i=["position","top","bottom","left","right","height","width"],s=e.effects.setmode(r,t.mode||"hide"),o=s==="show",u=t.direction||"vertical",a=u==="vertical",f=a?"height":"width",l=a?"top":"left",c={},h,p,d;e.effects.save(r,i),r.show(),h=e.effects.createwrapper(r).css({overflow:"hidden"}),p=r[0].tagname==="img"?h:r,d=p[f](),o&&(p.css(f,0),p.css(l,d/2)),c[f]=o?d:0,c[l]=o?0:d/2,p.animate(c,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){o||r.hide(),e.effects.restore(r,i),e.effects.removewrapper(r),n()}})}}(jquery),function(e,t){e.effects.effect.drop=function(t,n){var r=e(this),i=["position","top","bottom","left","right","opacity","height","width"],s=e.effects.setmode(r,t.mode||"hide"),o=s==="show",u=t.direction||"left",a=u==="up"||u==="down"?"top":"left",f=u==="up"||u==="left"?"pos":"neg",l={opacity:o?1:0},c;e.effects.save(r,i),r.show(),e.effects.createwrapper(r),c=t.distance||r[a==="top"?"outerheight":"outerwidth"](!0)/2,o&&r.css("opacity",0).css(a,f==="pos"?-c:c),l[a]=(o?f==="pos"?"+=":"-=":f==="pos"?"-=":"+=")+c,r.animate(l,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){s==="hide"&&r.hide(),e.effects.restore(r,i),e.effects.removewrapper(r),n()}})}}(jquery),function(e,t){e.effects.effect.explode=function(t,n){function y(){c.push(this),c.length===r*i&&b()}function b(){s.css({visibility:"visible"}),e(c).remove(),u||s.hide(),n()}var r=t.pieces?math.round(math.sqrt(t.pieces)):3,i=r,s=e(this),o=e.effects.setmode(s,t.mode||"hide"),u=o==="show",a=s.show().css("visibility","hidden").offset(),f=math.ceil(s.outerwidth()/i),l=math.ceil(s.outerheight()/r),c=[],h,p,d,v,m,g;for(h=0;h
").css({position:"absolute",visibility:"visible",left:-p*f,top:-h*l}).parent().addclass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:f,height:l,left:d+(u?m*f:0),top:v+(u?g*l:0),opacity:u?0:1}).animate({left:d+(u?0:m*f),top:v+(u?0:g*l),opacity:u?1:0},t.duration||500,t.easing,y)}}}(jquery),function(e,t){e.effects.effect.fade=function(t,n){var r=e(this),i=e.effects.setmode(r,t.mode||"toggle");r.animate({opacity:i},{queue:!1,duration:t.duration,easing:t.easing,complete:n})}}(jquery),function(e,t){e.effects.effect.fold=function(t,n){var r=e(this),i=["position","top","bottom","left","right","height","width"],s=e.effects.setmode(r,t.mode||"hide"),o=s==="show",u=s==="hide",a=t.size||15,f=/([0-9]+)%/.exec(a),l=!!t.horizfirst,c=o!==l,h=c?["width","height"]:["height","width"],p=t.duration/2,d,v,m={},g={};e.effects.save(r,i),r.show(),d=e.effects.createwrapper(r).css({overflow:"hidden"}),v=c?[d.width(),d.height()]:[d.height(),d.width()],f&&(a=parseint(f[1],10)/100*v[u?0:1]),o&&d.css(l?{height:0,width:a}:{height:a,width:0}),m[h[0]]=o?v[0]:a,g[h[1]]=o?v[1]:0,d.animate(m,p,t.easing).animate(g,p,t.easing,function(){u&&r.hide(),e.effects.restore(r,i),e.effects.removewrapper(r),n()})}}(jquery),function(e,t){e.effects.effect.highlight=function(t,n){var r=e(this),i=["backgroundimage","backgroundcolor","opacity"],s=e.effects.setmode(r,t.mode||"show"),o={backgroundcolor:r.css("backgroundcolor")};s==="hide"&&(o.opacity=0),e.effects.save(r,i),r.show().css({backgroundimage:"none",backgroundcolor:t.color||"#ffff99"}).animate(o,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){s==="hide"&&r.hide(),e.effects.restore(r,i),n()}})}}(jquery),function(e,t){e.effects.effect.pulsate=function(t,n){var r=e(this),i=e.effects.setmode(r,t.mode||"show"),s=i==="show",o=i==="hide",u=s||i==="hide",a=(t.times||5)*2+(u?1:0),f=t.duration/a,l=0,c=r.queue(),h=c.length,p;if(s||!r.is(":visible"))r.css("opacity",0).show(),l=1;for(p=1;p1&&c.splice.apply(c,[1,0].concat(c.splice(h,a+1))),r.dequeue()}}(jquery),function(e,t){e.effects.effect.puff=function(t,n){var r=e(this),i=e.effects.setmode(r,t.mode||"hide"),s=i==="hide",o=parseint(t.percent,10)||150,u=o/100,a={height:r.height(),width:r.width()};e.extend(t,{effect:"scale",queue:!1,fade:!0,mode:i,complete:n,percent:s?o:100,from:s?a:{height:a.height*u,width:a.width*u}}),r.effect(t)},e.effects.effect.scale=function(t,n){var r=e(this),i=e.extend(!0,{},t),s=e.effects.setmode(r,t.mode||"effect"),o=parseint(t.percent,10)||(parseint(t.percent,10)===0?0:s==="hide"?0:100),u=t.direction||"both",a=t.origin,f={height:r.height(),width:r.width(),outerheight:r.outerheight(),outerwidth:r.outerwidth()},l={y:u!=="horizontal"?o/100:1,x:u!=="vertical"?o/100:1};i.effect="size",i.queue=!1,i.complete=n,s!=="effect"&&(i.origin=a||["middle","center"],i.restore=!0),i.from=t.from||(s==="show"?{height:0,width:0}:f),i.to={height:f.height*l.y,width:f.width*l.x,outerheight:f.outerheight*l.y,outerwidth:f.outerwidth*l.x},i.fade&&(s==="show"&&(i.from.opacity=0,i.to.opacity=1),s==="hide"&&(i.from.opacity=1,i.to.opacity=0)),r.effect(i)},e.effects.effect.size=function(t,n){var r,i,s,o=e(this),u=["position","top","bottom","left","right","width","height","overflow","opacity"],a=["position","top","bottom","left","right","overflow","opacity"],f=["width","height","overflow"],l=["fontsize"],c=["bordertopwidth","borderbottomwidth","paddingtop","paddingbottom"],h=["borderleftwidth","borderrightwidth","paddingleft","paddingright"],p=e.effects.setmode(o,t.mode||"effect"),d=t.restore||p!=="effect",v=t.scale||"both",m=t.origin||["middle","center"],g=o.css("position"),y=d?u:a,b={height:0,width:0};p==="show"&&o.show(),r={height:o.height(),width:o.width(),outerheight:o.outerheight(),outerwidth:o.outerwidth()},t.mode==="toggle"&&p==="show"?(o.from=t.to||b,o.to=t.from||r):(o.from=t.from||(p==="show"?b:r),o.to=t.to||(p==="hide"?b:r)),s={from:{y:o.from.height/r.height,x:o.from.width/r.width},to:{y:o.to.height/r.height,x:o.to.width/r.width}};if(v==="box"||v==="both")s.from.y!==s.to.y&&(y=y.concat(c),o.from=e.effects.settransition(o,c,s.from.y,o.from),o.to=e.effects.settransition(o,c,s.to.y,o.to)),s.from.x!==s.to.x&&(y=y.concat(h),o.from=e.effects.settransition(o,h,s.from.x,o.from),o.to=e.effects.settransition(o,h,s.to.x,o.to));(v==="content"||v==="both")&&s.from.y!==s.to.y&&(y=y.concat(l).concat(f),o.from=e.effects.settransition(o,l,s.from.y,o.from),o.to=e.effects.settransition(o,l,s.to.y,o.to)),e.effects.save(o,y),o.show(),e.effects.createwrapper(o),o.css("overflow","hidden").css(o.from),m&&(i=e.effects.getbaseline(m,r),o.from.top=(r.outerheight-o.outerheight())*i.y,o.from.left=(r.outerwidth-o.outerwidth())*i.x,o.to.top=(r.outerheight-o.to.outerheight)*i.y,o.to.left=(r.outerwidth-o.to.outerwidth)*i.x),o.css(o.from);if(v==="content"||v==="both")c=c.concat(["margintop","marginbottom"]).concat(l),h=h.concat(["marginleft","marginright"]),f=u.concat(c).concat(h),o.find("*[width]").each(function(){var n=e(this),r={height:n.height(),width:n.width()};d&&e.effects.save(n,f),n.from={height:r.height*s.from.y,width:r.width*s.from.x},n.to={height:r.height*s.to.y,width:r.width*s.to.x},s.from.y!==s.to.y&&(n.from=e.effects.settransition(n,c,s.from.y,n.from),n.to=e.effects.settransition(n,c,s.to.y,n.to)),s.from.x!==s.to.x&&(n.from=e.effects.settransition(n,h,s.from.x,n.from),n.to=e.effects.settransition(n,h,s.to.x,n.to)),n.css(n.from),n.animate(n.to,t.duration,t.easing,function(){d&&e.effects.restore(n,f)})});o.animate(o.to,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){o.to.opacity===0&&o.css("opacity",o.from.opacity),p==="hide"&&o.hide(),e.effects.restore(o,y),d||(g==="static"?o.css({position:"relative",top:o.to.top,left:o.to.left}):e.each(["top","left"],function(e,t){o.css(t,function(t,n){var r=parseint(n,10),i=e?o.to.left:o.to.top;return n==="auto"?i+"px":r+i+"px"})})),e.effects.removewrapper(o),n()}})}}(jquery),function(e,t){e.effects.effect.shake=function(t,n){var r=e(this),i=["position","top","bottom","left","right","height","width"],s=e.effects.setmode(r,t.mode||"effect"),o=t.direction||"left",u=t.distance||20,a=t.times||3,f=a*2+1,l=math.round(t.duration/f),c=o==="up"||o==="down"?"top":"left",h=o==="up"||o==="left",p={},d={},v={},m,g=r.queue(),y=g.length;e.effects.save(r,i),r.show(),e.effects.createwrapper(r),p[c]=(h?"-=":"+=")+u,d[c]=(h?"+=":"-=")+u*2,v[c]=(h?"-=":"+=")+u*2,r.animate(p,l,t.easing);for(m=1;m1&&g.splice.apply(g,[1,0].concat(g.splice(y,f+1))),r.dequeue()}}(jquery),function(e,t){e.effects.effect.slide=function(t,n){var r=e(this),i=["position","top","bottom","left","right","width","height"],s=e.effects.setmode(r,t.mode||"show"),o=s==="show",u=t.direction||"left",a=u==="up"||u==="down"?"top":"left",f=u==="up"||u==="left",l,c={};e.effects.save(r,i),r.show(),l=t.distance||r[a==="top"?"outerheight":"outerwidth"](!0),e.effects.createwrapper(r).css({overflow:"hidden"}),o&&r.css(a,f?isnan(l)?"-"+l:-l:l),c[a]=(o?f?"+=":"-=":f?"-=":"+=")+l,r.animate(c,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){s==="hide"&&r.hide(),e.effects.restore(r,i),e.effects.removewrapper(r),n()}})}}(jquery),function(e,t){e.effects.effect.transfer=function(t,n){var r=e(this),i=e(t.to),s=i.css("position")==="fixed",o=e("body"),u=s?o.scrolltop():0,a=s?o.scrollleft():0,f=i.offset(),l={top:f.top-u,left:f.left-a,height:i.innerheight(),width:i.innerwidth()},c=r.offset(),h=e('
').appendto(document.body).addclass(t.classname).css({top:c.top-u,left:c.left-a,height:r.innerheight(),width:r.innerwidth(),position:s?"fixed":"absolute"}).animate(l,t.duration,t.easing,function(){h.remove(),n()})}}(jquery),function(e,t){var n=!1;e.widget("ui.menu",{version:"1.9.1",defaultelement:"
    ",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activemenu=this.element,this.element.uniqueid().addclass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleclass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabindex:0}).bind("click"+this.eventnamespace,e.proxy(function(e){this.options.disabled&&e.preventdefault()},this)),this.options.disabled&&this.element.addclass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item > a":function(e){e.preventdefault()},"click .ui-state-disabled > a":function(e){e.preventdefault()},"click .ui-menu-item:has(a)":function(t){var r=e(t.target).closest(".ui-menu-item");!n&&r.not(".ui-state-disabled").length&&(n=!0,this.select(t),r.has(".ui-menu").length?this.expand(t):this.element.is(":focus")||(this.element.trigger("focus",[!0]),this.active&&this.active.parents(".ui-menu").length===1&&cleartimeout(this.timer)))},"mouseenter .ui-menu-item":function(t){var n=e(t.currenttarget);n.siblings().children(".ui-state-active").removeclass("ui-state-active"),this.focus(t,n)},mouseleave:"collapseall","mouseleave .ui-menu":"collapseall",focus:function(e,t){var n=this.active||this.element.children(".ui-menu-item").eq(0);t||this.focus(e,n)},blur:function(t){this._delay(function(){e.contains(this.element[0],this.document[0].activeelement)||this.collapseall(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){e(t.target).closest(".ui-menu").length||this.collapseall(t),n=!1}})},_destroy:function(){this.element.removeattr("aria-activedescendant").find(".ui-menu").andself().removeclass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeattr("role").removeattr("tabindex").removeattr("aria-labelledby").removeattr("aria-expanded").removeattr("aria-hidden").removeattr("aria-disabled").removeuniqueid().show(),this.element.find(".ui-menu-item").removeclass("ui-menu-item").removeattr("role").removeattr("aria-disabled").children("a").removeuniqueid().removeclass("ui-corner-all ui-state-hover").removeattr("tabindex").removeattr("role").removeattr("aria-haspopup").children().each(function(){var t=e(this);t.data("ui-menu-submenu-carat")&&t.remove()}),this.element.find(".ui-menu-divider").removeclass("ui-menu-divider ui-widget-content")},_keydown:function(t){function a(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var n,r,i,s,o,u=!0;switch(t.keycode){case e.ui.keycode.page_up:this.previouspage(t);break;case e.ui.keycode.page_down:this.nextpage(t);break;case e.ui.keycode.home:this._move("first","first",t);break;case e.ui.keycode.end:this._move("last","last",t);break;case e.ui.keycode.up:this.previous(t);break;case e.ui.keycode.down:this.next(t);break;case e.ui.keycode.left:this.collapse(t);break;case e.ui.keycode.right:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case e.ui.keycode.enter:case e.ui.keycode.space:this._activate(t);break;case e.ui.keycode.escape:this.collapse(t);break;default:u=!1,r=this.previousfilter||"",i=string.fromcharcode(t.keycode),s=!1,cleartimeout(this.filtertimer),i===r?s=!0:i=r+i,o=new regexp("^"+a(i),"i"),n=this.activemenu.children(".ui-menu-item").filter(function(){return o.test(e(this).children("a").text())}),n=s&&n.index(this.active.next())!==-1?this.active.nextall(".ui-menu-item"):n,n.length||(i=string.fromcharcode(t.keycode),o=new regexp("^"+a(i),"i"),n=this.activemenu.children(".ui-menu-item").filter(function(){return o.test(e(this).children("a").text())})),n.length?(this.focus(t,n),n.length>1?(this.previousfilter=i,this.filtertimer=this._delay(function(){delete this.previousfilter},1e3)):delete this.previousfilter):delete this.previousfilter}u&&t.preventdefault()},_activate:function(e){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var t,n=this.options.icons.submenu,r=this.element.find(this.options.menus+":not(.ui-menu)").addclass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"});t=r.add(this.element),t.children(":not(.ui-menu-item):has(a)").addclass("ui-menu-item").attr("role","presentation").children("a").uniqueid().addclass("ui-corner-all").attr({tabindex:-1,role:this._itemrole()}),t.children(":not(.ui-menu-item)").each(function(){var t=e(this);/[^\-—–\s]/.test(t.text())||t.addclass("ui-widget-content ui-menu-divider")}),t.children(".ui-state-disabled").attr("aria-disabled","true"),r.each(function(){var t=e(this),r=t.prev("a"),i=e("").addclass("ui-menu-icon ui-icon "+n).data("ui-menu-submenu-carat",!0);r.attr("aria-haspopup","true").prepend(i),t.attr("aria-labelledby",r.attr("id"))}),this.active&&!e.contains(this.element[0],this.active[0])&&this.blur()},_itemrole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},focus:function(e,t){var n,r;this.blur(e,e&&e.type==="focus"),this._scrollintoview(t),this.active=t.first(),r=this.active.children("a").addclass("ui-state-focus"),this.options.role&&this.element.attr("aria-activedescendant",r.attr("id")),this.active.parent().closest(".ui-menu-item").children("a:first").addclass("ui-state-active"),e&&e.type==="keydown"?this._close():this.timer=this._delay(function(){this._close()},this.delay),n=t.children(".ui-menu"),n.length&&/^mouse/.test(e.type)&&this._startopening(n),this.activemenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollintoview:function(t){var n,r,i,s,o,u;this._hasscroll()&&(n=parsefloat(e.css(this.activemenu[0],"bordertopwidth"))||0,r=parsefloat(e.css(this.activemenu[0],"paddingtop"))||0,i=t.offset().top-this.activemenu.offset().top-n-r,s=this.activemenu.scrolltop(),o=this.activemenu.height(),u=t.height(),i<0?this.activemenu.scrolltop(s+i):i+u>o&&this.activemenu.scrolltop(s+i-o+u))},blur:function(e,t){t||cleartimeout(this.timer);if(!this.active)return;this.active.children("a").removeclass("ui-state-focus"),this.active=null,this._trigger("blur",e,{item:this.active})},_startopening:function(e){cleartimeout(this.timer);if(e.attr("aria-hidden")!=="true")return;this.timer=this._delay(function(){this._close(),this._open(e)},this.delay)},_open:function(t){var n=e.extend({of:this.active},this.options.position);cleartimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeattr("aria-hidden").attr("aria-expanded","true").position(n)},collapseall:function(t,n){cleartimeout(this.timer),this.timer=this._delay(function(){var r=n?this.element:e(t&&t.target).closest(this.element.find(".ui-menu"));r.length||(r=this.element),this._close(r),this.blur(t),this.activemenu=r},this.delay)},_close:function(e){e||(e=this.active?this.active.parent():this.element),e.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeclass("ui-state-active")},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(e,t)}))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isfirstitem:function(){return this.active&&!this.active.prevall(".ui-menu-item").length},islastitem:function(){return this.active&&!this.active.nextall(".ui-menu-item").length},_move:function(e,t,n){var r;this.active&&(e==="first"||e==="last"?r=this.active[e==="first"?"prevall":"nextall"](".ui-menu-item").eq(-1):r=this.active[e+"all"](".ui-menu-item").eq(0));if(!r||!r.length||!this.active)r=this.activemenu.children(".ui-menu-item")[t]();this.focus(n,r)},nextpage:function(t){var n,r,i;if(!this.active){this.next(t);return}if(this.islastitem())return;this._hasscroll()?(r=this.active.offset().top,i=this.element.height(),this.active.nextall(".ui-menu-item").each(function(){return n=e(this),n.offset().top-r-i<0}),this.focus(t,n)):this.focus(t,this.activemenu.children(".ui-menu-item")[this.active?"last":"first"]())},previouspage:function(t){var n,r,i;if(!this.active){this.next(t);return}if(this.isfirstitem())return;this._hasscroll()?(r=this.active.offset().top,i=this.element.height(),this.active.prevall(".ui-menu-item").each(function(){return n=e(this),n.offset().top-r+i>0}),this.focus(t,n)):this.focus(t,this.activemenu.children(".ui-menu-item").first())},_hasscroll:function(){return this.element.outerheight()
"),o=s.children()[0];return e("body").append(s),r=o.offsetwidth,s.css("overflow","scroll"),i=o.offsetwidth,r===i&&(i=s[0].clientwidth),s.remove(),n=r-i},getscrollinfo:function(t){var n=t.iswindow?"":t.element.css("overflow-x"),r=t.iswindow?"":t.element.css("overflow-y"),i=n==="scroll"||n==="auto"&&t.width0?"right":"center",vertical:u<0?"top":o>0?"bottom":"middle"};lr(i(o),i(u))?h.important="horizontal":h.important="vertical",t.using.call(this,e,h)}),a.offset(e.extend(c,{using:u}))})},e.ui.position={fit:{left:function(e,t){var n=t.within,i=n.iswindow?n.scrollleft:n.offset.left,s=n.width,o=e.left-t.collisionposition.marginleft,u=i-o,a=o+t.collisionwidth-s-i,f;t.collisionwidth>s?u>0&&a<=0?(f=e.left+u+t.collisionwidth-s-i,e.left+=u-f):a>0&&u<=0?e.left=i:u>a?e.left=i+s-t.collisionwidth:e.left=i:u>0?e.left+=u:a>0?e.left-=a:e.left=r(e.left-o,e.left)},top:function(e,t){var n=t.within,i=n.iswindow?n.scrolltop:n.offset.top,s=t.within.height,o=e.top-t.collisionposition.margintop,u=i-o,a=o+t.collisionheight-s-i,f;t.collisionheight>s?u>0&&a<=0?(f=e.top+u+t.collisionheight-s-i,e.top+=u-f):a>0&&u<=0?e.top=i:u>a?e.top=i+s-t.collisionheight:e.top=i:u>0?e.top+=u:a>0?e.top-=a:e.top=r(e.top-o,e.top)}},flip:{left:function(e,t){var n=t.within,r=n.offset.left+n.scrollleft,s=n.width,o=n.iswindow?n.scrollleft:n.offset.left,u=e.left-t.collisionposition.marginleft,a=u-o,f=u+t.collisionwidth-s-o,l=t.my[0]==="left"?-t.elemwidth:t.my[0]==="right"?t.elemwidth:0,c=t.at[0]==="left"?t.targetwidth:t.at[0]==="right"?-t.targetwidth:0,h=-2*t.offset[0],p,d;if(a<0){p=e.left+l+c+h+t.collisionwidth-s-r;if(p<0||p0){d=e.left-t.collisionposition.marginleft+l+c+h-o;if(d>0||i(d)a&&(v<0||v0&&(d=e.top-t.collisionposition.margintop+c+h+p-o,e.top+c+h+p>f&&(d>0||i(d)10&&i<11,t.innerhtml="",n.removechild(t)}(),e.uibackcompat!==!1&&function(e){var n=e.fn.position;e.fn.position=function(r){if(!r||!r.offset)return n.call(this,r);var i=r.offset.split(" "),s=r.at.split(" ");return i.length===1&&(i[1]=i[0]),/^\d/.test(i[0])&&(i[0]="+"+i[0]),/^\d/.test(i[1])&&(i[1]="+"+i[1]),s.length===1&&(/left|center|right/.test(s[0])?s[1]="center":(s[1]=s[0],s[0]="center")),n.call(this,e.extend(r,{at:s[0]+i[0]+" "+s[1]+i[1],offset:t}))}}(jquery)}(jquery),function(e,t){e.widget("ui.progressbar",{version:"1.9.1",options:{value:0,max:100},min:0,_create:function(){this.element.addclass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.options.max,"aria-valuenow":this._value()}),this.valuediv=e("
").appendto(this.element),this.oldvalue=this._value(),this._refreshvalue()},_destroy:function(){this.element.removeclass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeattr("role").removeattr("aria-valuemin").removeattr("aria-valuemax").removeattr("aria-valuenow"),this.valuediv.remove()},value:function(e){return e===t?this._value():(this._setoption("value",e),this)},_setoption:function(e,t){e==="value"&&(this.options.value=t,this._refreshvalue(),this._value()===this.options.max&&this._trigger("complete")),this._super(e,t)},_value:function(){var e=this.options.value;return typeof e!="number"&&(e=0),math.min(this.options.max,math.max(this.min,e))},_percentage:function(){return 100*this._value()/this.options.max},_refreshvalue:function(){var e=this.value(),t=this._percentage();this.oldvalue!==e&&(this.oldvalue=e,this._trigger("change")),this.valuediv.toggle(e>this.min).toggleclass("ui-corner-right",e===this.options.max).width(t.tofixed(0)+"%"),this.element.attr("aria-valuenow",e)}})}(jquery),function(e,t){var n=5;e.widget("ui.slider",e.ui.mouse,{version:"1.9.1",widgeteventprefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null},_create:function(){var t,r,i=this.options,s=this.element.find(".ui-slider-handle").addclass("ui-state-default ui-corner-all"),o="",u=[];this._keysliding=!1,this._mousesliding=!1,this._animateoff=!0,this._handleindex=null,this._detectorientation(),this._mouseinit(),this.element.addclass("ui-slider ui-slider-"+this.orientation+" ui-widget"+" ui-widget-content"+" ui-corner-all"+(i.disabled?" ui-slider-disabled ui-disabled":"")),this.range=e([]),i.range&&(i.range===!0&&(i.values||(i.values=[this._valuemin(),this._valuemin()]),i.values.length&&i.values.length!==2&&(i.values=[i.values[0],i.values[0]])),this.range=e("
").appendto(this.element).addclass("ui-slider-range ui-widget-header"+(i.range==="min"||i.range==="max"?" ui-slider-range-"+i.range:""))),r=i.values&&i.values.length||1;for(t=s.length;tn&&(i=n,s=e(this),o=t)}),c.range===!0&&this.values(1)===c.min&&(o+=1,s=e(this.handles[o])),u=this._start(t,o),u===!1?!1:(this._mousesliding=!0,this._handleindex=o,s.addclass("ui-state-active").focus(),a=s.offset(),f=!e(t.target).parents().andself().is(".ui-slider-handle"),this._clickoffset=f?{left:0,top:0}:{left:t.pagex-a.left-s.width()/2,top:t.pagey-a.top-s.height()/2-(parseint(s.css("bordertopwidth"),10)||0)-(parseint(s.css("borderbottomwidth"),10)||0)+(parseint(s.css("margintop"),10)||0)},this.handles.hasclass("ui-state-hover")||this._slide(t,o,r),this._animateoff=!0,!0))},_mousestart:function(){return!0},_mousedrag:function(e){var t={x:e.pagex,y:e.pagey},n=this._normvaluefrommouse(t);return this._slide(e,this._handleindex,n),!1},_mousestop:function(e){return this.handles.removeclass("ui-state-active"),this._mousesliding=!1,this._stop(e,this._handleindex),this._change(e,this._handleindex),this._handleindex=null,this._clickoffset=null,this._animateoff=!1,!1},_detectorientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normvaluefrommouse:function(e){var t,n,r,i,s;return this.orientation==="horizontal"?(t=this.elementsize.width,n=e.x-this.elementoffset.left-(this._clickoffset?this._clickoffset.left:0)):(t=this.elementsize.height,n=e.y-this.elementoffset.top-(this._clickoffset?this._clickoffset.top:0)),r=n/t,r>1&&(r=1),r<0&&(r=0),this.orientation==="vertical"&&(r=1-r),i=this._valuemax()-this._valuemin(),s=this._valuemin()+r*i,this._trimalignvalue(s)},_start:function(e,t){var n={handle:this.handles[t],value:this.value()};return this.options.values&&this.options.values.length&&(n.value=this.values(t),n.values=this.values()),this._trigger("start",e,n)},_slide:function(e,t,n){var r,i,s;this.options.values&&this.options.values.length?(r=this.values(t?0:1),this.options.values.length===2&&this.options.range===!0&&(t===0&&n>r||t===1&&n1){this.options.values[t]=this._trimalignvalue(n),this._refreshvalue(),this._change(null,t);return}if(!arguments.length)return this._values();if(!e.isarray(arguments[0]))return this.options.values&&this.options.values.length?this._values(t):this.value();r=this.options.values,i=arguments[0];for(s=0;s=this._valuemax())return this._valuemax();var t=this.options.step>0?this.options.step:1,n=(e-this._valuemin())%t,r=e-n;return math.abs(n)*2>=t&&(r+=n>0?t:-t),parsefloat(r.tofixed(5))},_valuemin:function(){return this.options.min},_valuemax:function(){return this.options.max},_refreshvalue:function(){var t,n,r,i,s,o=this.options.range,u=this.options,a=this,f=this._animateoff?!1:u.animate,l={};this.options.values&&this.options.values.length?this.handles.each(function(r){n=(a.values(r)-a._valuemin())/(a._valuemax()-a._valuemin())*100,l[a.orientation==="horizontal"?"left":"bottom"]=n+"%",e(this).stop(1,1)[f?"animate":"css"](l,u.animate),a.options.range===!0&&(a.orientation==="horizontal"?(r===0&&a.range.stop(1,1)[f?"animate":"css"]({left:n+"%"},u.animate),r===1&&a.range[f?"animate":"css"]({width:n-t+"%"},{queue:!1,duration:u.animate})):(r===0&&a.range.stop(1,1)[f?"animate":"css"]({bottom:n+"%"},u.animate),r===1&&a.range[f?"animate":"css"]({height:n-t+"%"},{queue:!1,duration:u.animate}))),t=n}):(r=this.value(),i=this._valuemin(),s=this._valuemax(),n=s!==i?(r-i)/(s-i)*100:0,l[this.orientation==="horizontal"?"left":"bottom"]=n+"%",this.handle.stop(1,1)[f?"animate":"css"](l,u.animate),o==="min"&&this.orientation==="horizontal"&&this.range.stop(1,1)[f?"animate":"css"]({width:n+"%"},u.animate),o==="max"&&this.orientation==="horizontal"&&this.range[f?"animate":"css"]({width:100-n+"%"},{queue:!1,duration:u.animate}),o==="min"&&this.orientation==="vertical"&&this.range.stop(1,1)[f?"animate":"css"]({height:n+"%"},u.animate),o==="max"&&this.orientation==="vertical"&&this.range[f?"animate":"css"]({height:100-n+"%"},{queue:!1,duration:u.animate}))}})}(jquery),function(e){function t(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger("change")}}e.widget("ui.spinner",{version:"1.9.1",defaultelement:"",widgeteventprefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberformat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setoption("max",this.options.max),this._setoption("min",this.options.min),this._setoption("step",this.options.step),this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeattr("autocomplete")}})},_getcreateoptions:function(){var t={},n=this.element;return e.each(["min","max","step"],function(e,r){var i=n.attr(r);i!==undefined&&i.length&&(t[r]=i)}),t},_events:{keydown:function(e){this._start(e)&&this._keydown(e)&&e.preventdefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(e){if(this.cancelblur){delete this.cancelblur;return}this._refresh(),this.previous!==this.element.val()&&this._trigger("change",e)},mousewheel:function(e,t){if(!t)return;if(!this.spinning&&!this._start(e))return!1;this._spin((t>0?1:-1)*this.options.step,e),cleartimeout(this.mousewheeltimer),this.mousewheeltimer=this._delay(function(){this.spinning&&this._stop(e)},100),e.preventdefault()},"mousedown .ui-spinner-button":function(t){function r(){var e=this.element[0]===this.document[0].activeelement;e||(this.element.focus(),this.previous=n,this._delay(function(){this.previous=n}))}var n;n=this.element[0]===this.document[0].activeelement?this.previous:this.element.val(),t.preventdefault(),r.call(this),this.cancelblur=!0,this._delay(function(){delete this.cancelblur,r.call(this)});if(this._start(t)===!1)return;this._repeat(null,e(t.currenttarget).hasclass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){if(!e(t.currenttarget).hasclass("ui-state-active"))return;if(this._start(t)===!1)return!1;this._repeat(null,e(t.currenttarget).hasclass("ui-spinner-up")?1:-1,t)},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var e=this.uispinner=this.element.addclass("ui-spinner-input").attr("autocomplete","off").wrap(this._uispinnerhtml()).parent().append(this._buttonhtml());this.element.attr("role","spinbutton"),this.buttons=e.find(".ui-spinner-button").attr("tabindex",-1).button().removeclass("ui-corner-all"),this.buttons.height()>math.ceil(e.height()*.5)&&e.height()>0&&e.height(e.height()),this.options.disabled&&this.disable()},_keydown:function(t){var n=this.options,r=e.ui.keycode;switch(t.keycode){case r.up:return this._repeat(null,1,t),!0;case r.down:return this._repeat(null,-1,t),!0;case r.page_up:return this._repeat(null,n.page,t),!0;case r.page_down:return this._repeat(null,-n.page,t),!0}return!1},_uispinnerhtml:function(){return""},_buttonhtml:function(){return""+""+""+""+""},_start:function(e){return!this.spinning&&this._trigger("start",e)===!1?!1:(this.counter||(this.counter=1),this.spinning=!0,!0)},_repeat:function(e,t,n){e=e||500,cleartimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,t,n)},e),this._spin(t*this.options.step,n)},_spin:function(e,t){var n=this.value()||0;this.counter||(this.counter=1),n=this._adjustvalue(n+e*this._increment(this.counter));if(!this.spinning||this._trigger("spin",t,{value:n})!==!1)this._value(n),this.counter++},_increment:function(t){var n=this.options.incremental;return n?e.isfunction(n)?n(t):math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var e=this._precisionof(this.options.step);return this.options.min!==null&&(e=math.max(e,this._precisionof(this.options.min))),e},_precisionof:function(e){var t=e.tostring(),n=t.indexof(".");return n===-1?0:t.length-n-1},_adjustvalue:function(e){var t,n,r=this.options;return t=r.min!==null?r.min:0,n=e-t,n=math.round(n/r.step)*r.step,e=t+n,e=parsefloat(e.tofixed(this._precision())),r.max!==null&&e>r.max?r.max:r.min!==null&&e1&&e.href.replace(r,"")===location.href.replace(r,"")}var n=0,r=/#.*$/;e.widget("ui.tabs",{version:"1.9.1",delay:300,options:{active:null,collapsible:!1,event:"click",heightstyle:"content",hide:null,show:null,activate:null,beforeactivate:null,beforeload:null,load:null},_create:function(){var t=this,n=this.options,r=n.active,i=location.hash.substring(1);this.running=!1,this.element.addclass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleclass("ui-tabs-collapsible",n.collapsible).delegate(".ui-tabs-nav > li","mousedown"+this.eventnamespace,function(t){e(this).is(".ui-state-disabled")&&t.preventdefault()}).delegate(".ui-tabs-anchor","focus"+this.eventnamespace,function(){e(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this._processtabs();if(r===null){i&&this.tabs.each(function(t,n){if(e(n).attr("aria-controls")===i)return r=t,!1}),r===null&&(r=this.tabs.index(this.tabs.filter(".ui-tabs-active")));if(r===null||r===-1)r=this.tabs.length?0:!1}r!==!1&&(r=this.tabs.index(this.tabs.eq(r)),r===-1&&(r=n.collapsible?!1:0)),n.active=r,!n.collapsible&&n.active===!1&&this.anchors.length&&(n.active=0),e.isarray(n.disabled)&&(n.disabled=e.unique(n.disabled.concat(e.map(this.tabs.filter(".ui-state-disabled"),function(e){return t.tabs.index(e)}))).sort()),this.options.active!==!1&&this.anchors.length?this.active=this._findactive(this.options.active):this.active=e(),this._refresh(),this.active.length&&this.load(n.active)},_getcreateeventdata:function(){return{tab:this.active,panel:this.active.length?this._getpanelfortab(this.active):e()}},_tabkeydown:function(t){var n=e(this.document[0].activeelement).closest("li"),r=this.tabs.index(n),i=!0;if(this._handlepagenav(t))return;switch(t.keycode){case e.ui.keycode.right:case e.ui.keycode.down:r++;break;case e.ui.keycode.up:case e.ui.keycode.left:i=!1,r--;break;case e.ui.keycode.end:r=this.anchors.length-1;break;case e.ui.keycode.home:r=0;break;case e.ui.keycode.space:t.preventdefault(),cleartimeout(this.activating),this._activate(r);return;case e.ui.keycode.enter:t.preventdefault(),cleartimeout(this.activating),this._activate(r===this.options.active?!1:r);return;default:return}t.preventdefault(),cleartimeout(this.activating),r=this._focusnexttab(r,i),t.ctrlkey||(n.attr("aria-selected","false"),this.tabs.eq(r).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",r)},this.delay))},_panelkeydown:function(t){if(this._handlepagenav(t))return;t.ctrlkey&&t.keycode===e.ui.keycode.up&&(t.preventdefault(),this.active.focus())},_handlepagenav:function(t){if(t.altkey&&t.keycode===e.ui.keycode.page_up)return this._activate(this._focusnexttab(this.options.active-1,!1)),!0;if(t.altkey&&t.keycode===e.ui.keycode.page_down)return this._activate(this._focusnexttab(this.options.active+1,!0)),!0},_findnexttab:function(t,n){function i(){return t>r&&(t=0),t<0&&(t=r),t}var r=this.tabs.length-1;while(e.inarray(i(),this.options.disabled)!==-1)t=n?t+1:t-1;return t},_focusnexttab:function(e,t){return e=this._findnexttab(e,t),this.tabs.eq(e).focus(),e},_setoption:function(e,t){if(e==="active"){this._activate(t);return}if(e==="disabled"){this._setupdisabled(t);return}this._super(e,t),e==="collapsible"&&(this.element.toggleclass("ui-tabs-collapsible",t),!t&&this.options.active===!1&&this._activate(0)),e==="event"&&this._setupevents(t),e==="heightstyle"&&this._setupheightstyle(t)},_tabid:function(e){return e.attr("aria-controls")||"ui-tabs-"+i()},_sanitizeselector:function(e){return e?e.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,n=this.tablist.children(":has(a[href])");t.disabled=e.map(n.filter(".ui-state-disabled"),function(e){return n.index(e)}),this._processtabs(),t.active===!1||!this.anchors.length?(t.active=!1,this.active=e()):this.active.length&&!e.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=e()):this._activate(this._findnexttab(math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active),this._refresh()},_refresh:function(){this._setupdisabled(this.options.disabled),this._setupevents(this.options.event),this._setupheightstyle(this.options.heightstyle),this.tabs.not(this.active).attr({"aria-selected":"false",tabindex:-1}),this.panels.not(this._getpanelfortab(this.active)).hide().attr({"aria-expanded":"false","aria-hidden":"true"}),this.active.length?(this.active.addclass("ui-tabs-active ui-state-active").attr({"aria-selected":"true",tabindex:0}),this._getpanelfortab(this.active).show().attr({"aria-expanded":"true","aria-hidden":"false"})):this.tabs.eq(0).attr("tabindex",0)},_processtabs:function(){var t=this;this.tablist=this._getlist().addclass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist"),this.tabs=this.tablist.find("> li:has(a[href])").addclass("ui-state-default ui-corner-top").attr({role:"tab",tabindex:-1}),this.anchors=this.tabs.map(function(){return e("a",this)[0]}).addclass("ui-tabs-anchor").attr({role:"presentation",tabindex:-1}),this.panels=e(),this.anchors.each(function(n,r){var i,o,u,a=e(r).uniqueid().attr("id"),f=e(r).closest("li"),l=f.attr("aria-controls");s(r)?(i=r.hash,o=t.element.find(t._sanitizeselector(i))):(u=t._tabid(f),i="#"+u,o=t.element.find(i),o.length||(o=t._createpanel(u),o.insertafter(t.panels[n-1]||t.tablist)),o.attr("aria-live","polite")),o.length&&(t.panels=t.panels.add(o)),l&&f.data("ui-tabs-aria-controls",l),f.attr({"aria-controls":i.substring(1),"aria-labelledby":a}),o.attr("aria-labelledby",a)}),this.panels.addclass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getlist:function(){return this.element.find("ol,ul").eq(0)},_createpanel:function(t){return e("
").attr("id",t).addclass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupdisabled:function(t){e.isarray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1);for(var n=0,r;r=this.tabs[n];n++)t===!0||e.inarray(n,t)!==-1?e(r).addclass("ui-state-disabled").attr("aria-disabled","true"):e(r).removeclass("ui-state-disabled").removeattr("aria-disabled");this.options.disabled=t},_setupevents:function(t){var n={click:function(e){e.preventdefault()}};t&&e.each(t.split(" "),function(e,t){n[t]="_eventhandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(this.anchors,n),this._on(this.tabs,{keydown:"_tabkeydown"}),this._on(this.panels,{keydown:"_panelkeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupheightstyle:function(t){var n,r,i=this.element.parent();t==="fill"?(e.support.minheight||(r=i.css("overflow"),i.css("overflow","hidden")),n=i.height(),this.element.siblings(":visible").each(function(){var t=e(this),r=t.css("position");if(r==="absolute"||r==="fixed")return;n-=t.outerheight(!0)}),r&&i.css("overflow",r),this.element.children().not(this.panels).each(function(){n-=e(this).outerheight(!0)}),this.panels.each(function(){e(this).height(math.max(0,n-e(this).innerheight()+e(this).height()))}).css("overflow","auto")):t==="auto"&&(n=0,this.panels.each(function(){n=math.max(n,e(this).height("").height())}).height(n))},_eventhandler:function(t){var n=this.options,r=this.active,i=e(t.currenttarget),s=i.closest("li"),o=s[0]===r[0],u=o&&n.collapsible,a=u?e():this._getpanelfortab(s),f=r.length?this._getpanelfortab(r):e(),l={oldtab:r,oldpanel:f,newtab:u?e():s,newpanel:a};t.preventdefault();if(s.hasclass("ui-state-disabled")||s.hasclass("ui-tabs-loading")||this.running||o&&!n.collapsible||this._trigger("beforeactivate",t,l)===!1)return;n.active=u?!1:this.tabs.index(s),this.active=o?e():s,this.xhr&&this.xhr.abort(),!f.length&&!a.length&&e.error("jquery ui tabs: mismatching fragment identifier."),a.length&&this.load(this.tabs.index(s),t),this._toggle(t,l)},_toggle:function(t,n){function o(){r.running=!1,r._trigger("activate",t,n)}function u(){n.newtab.closest("li").addclass("ui-tabs-active ui-state-active"),i.length&&r.options.show?r._show(i,r.options.show,o):(i.show(),o())}var r=this,i=n.newpanel,s=n.oldpanel;this.running=!0,s.length&&this.options.hide?this._hide(s,this.options.hide,function(){n.oldtab.closest("li").removeclass("ui-tabs-active ui-state-active"),u()}):(n.oldtab.closest("li").removeclass("ui-tabs-active ui-state-active"),s.hide(),u()),s.attr({"aria-expanded":"false","aria-hidden":"true"}),n.oldtab.attr("aria-selected","false"),i.length&&s.length?n.oldtab.attr("tabindex",-1):i.length&&this.tabs.filter(function(){return e(this).attr("tabindex")===0}).attr("tabindex",-1),i.attr({"aria-expanded":"true","aria-hidden":"false"}),n.newtab.attr({"aria-selected":"true",tabindex:0})},_activate:function(t){var n,r=this._findactive(t);if(r[0]===this.active[0])return;r.length||(r=this.active),n=r.find(".ui-tabs-anchor")[0],this._eventhandler({target:n,currenttarget:n,preventdefault:e.noop})},_findactive:function(t){return t===!1?e():this.tabs.eq(t)},_getindex:function(e){return typeof e=="string"&&(e=this.anchors.index(this.anchors.filter("[href$='"+e+"']"))),e},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeclass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeclass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeattr("role"),this.anchors.removeclass("ui-tabs-anchor").removeattr("role").removeattr("tabindex").removedata("href.tabs").removedata("load.tabs").removeuniqueid(),this.tabs.add(this.panels).each(function(){e.data(this,"ui-tabs-destroy")?e(this).remove():e(this).removeclass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeattr("tabindex").removeattr("aria-live").removeattr("aria-busy").removeattr("aria-selected").removeattr("aria-labelledby").removeattr("aria-hidden").removeattr("aria-expanded").removeattr("role")}),this.tabs.each(function(){var t=e(this),n=t.data("ui-tabs-aria-controls");n?t.attr("aria-controls",n):t.removeattr("aria-controls")}),this.options.heightstyle!=="content"&&this.panels.css("height","")},enable:function(n){var r=this.options.disabled;if(r===!1)return;n===t?r=!1:(n=this._getindex(n),e.isarray(r)?r=e.map(r,function(e){return e!==n?e:null}):r=e.map(this.tabs,function(e,t){return t!==n?t:null})),this._setupdisabled(r)},disable:function(n){var r=this.options.disabled;if(r===!0)return;if(n===t)r=!0;else{n=this._getindex(n);if(e.inarray(n,r)!==-1)return;e.isarray(r)?r=e.merge([n],r).sort():r=[n]}this._setupdisabled(r)},load:function(t,n){t=this._getindex(t);var r=this,i=this.tabs.eq(t),o=i.find(".ui-tabs-anchor"),u=this._getpanelfortab(i),a={tab:i,panel:u};if(s(o[0]))return;this.xhr=e.ajax(this._ajaxsettings(o,n,a)),this.xhr&&this.xhr.statustext!=="canceled"&&(i.addclass("ui-tabs-loading"),u.attr("aria-busy","true"),this.xhr.success(function(e){settimeout(function(){u.html(e),r._trigger("load",n,a)},1)}).complete(function(e,t){settimeout(function(){t==="abort"&&r.panels.stop(!1,!0),i.removeclass("ui-tabs-loading"),u.removeattr("aria-busy"),e===r.xhr&&delete r.xhr},1)}))},_ajaxsettings:function(t,n,r){var i=this;return{url:t.attr("href"),beforesend:function(t,s){return i._trigger("beforeload",n,e.extend({jqxhr:t,ajaxsettings:s},r))}}},_getpanelfortab:function(t){var n=e(t).attr("aria-controls");return this.element.find(this._sanitizeselector("#"+n))}}),e.uibackcompat!==!1&&(e.ui.tabs.prototype._ui=function(e,t){return{tab:e,panel:t,index:this.anchors.index(e)}},e.widget("ui.tabs",e.ui.tabs,{url:function(e,t){this.anchors.eq(e).attr("href",t)}}),e.widget("ui.tabs",e.ui.tabs,{options:{ajaxoptions:null,cache:!1},_create:function(){this._super();var t=this;this._on({tabsbeforeload:function(n,r){if(e.data(r.tab[0],"cache.tabs")){n.preventdefault();return}r.jqxhr.success(function(){t.options.cache&&e.data(r.tab[0],"cache.tabs",!0)})}})},_ajaxsettings:function(t,n,r){var i=this.options.ajaxoptions;return e.extend({},i,{error:function(e,t){try{i.error(e,t,r.tab.closest("li").index(),r.tab[0])}catch(n){}}},this._superapply(arguments))},_setoption:function(e,t){e==="cache"&&t===!1&&this.anchors.removedata("cache.tabs"),this._super(e,t)},_destroy:function(){this.anchors.removedata("cache.tabs"),this._super()},url:function(e){this.anchors.eq(e).removedata("cache.tabs"),this._superapply(arguments)}}),e.widget("ui.tabs",e.ui.tabs,{abort:function(){this.xhr&&this.xhr.abort()}}),e.widget("ui.tabs",e.ui.tabs,{options:{spinner:"loading…"},_create:function(){this._super(),this._on({tabsbeforeload:function(e,t){if(e.target!==this.element[0]||!this.options.spinner)return;var n=t.tab.find("span"),r=n.html();n.html(this.options.spinner),t.jqxhr.complete(function(){n.html(r)})}})}}),e.widget("ui.tabs",e.ui.tabs,{options:{enable:null,disable:null},enable:function(t){var n=this.options,r;if(t&&n.disabled===!0||e.isarray(n.disabled)&&e.inarray(t,n.disabled)!==-1)r=!0;this._superapply(arguments),r&&this._trigger("enable",null,this._ui(this.anchors[t],this.panels[t]))},disable:function(t){var n=this.options,r;if(t&&n.disabled===!1||e.isarray(n.disabled)&&e.inarray(t,n.disabled)===-1)r=!0;this._superapply(arguments),r&&this._trigger("disable",null,this._ui(this.anchors[t],this.panels[t]))}}),e.widget("ui.tabs",e.ui.tabs,{options:{add:null,remove:null,tabtemplate:"
  • #{label}
  • "},add:function(n,r,i){i===t&&(i=this.anchors.length);var s,o,u=this.options,a=e(u.tabtemplate.replace(/#\{href\}/g,n).replace(/#\{label\}/g,r)),f=n.indexof("#")?this._tabid(a):n.replace("#","");return a.addclass("ui-state-default ui-corner-top").data("ui-tabs-destroy",!0),a.attr("aria-controls",f),s=i>=this.tabs.length,o=this.element.find("#"+f),o.length||(o=this._createpanel(f),s?i>0?o.insertafter(this.panels.eq(-1)):o.appendto(this.element):o.insertbefore(this.panels[i])),o.addclass("ui-tabs-panel ui-widget-content ui-corner-bottom").hide(),s?a.appendto(this.tablist):a.insertbefore(this.tabs[i]),u.disabled=e.map(u.disabled,function(e){return e>=i?++e:e}),this.refresh(),this.tabs.length===1&&u.active===!1&&this.option("active",0),this._trigger("add",null,this._ui(this.anchors[i],this.panels[i])),this},remove:function(t){t=this._getindex(t);var n=this.options,r=this.tabs.eq(t).remove(),i=this._getpanelfortab(r).remove();return r.hasclass("ui-tabs-active")&&this.anchors.length>2&&this._activate(t+(t+1=t?--e:e}),this.refresh(),this._trigger("remove",null,this._ui(r.find("a")[0],i[0])),this}}),e.widget("ui.tabs",e.ui.tabs,{length:function(){return this.anchors.length}}),e.widget("ui.tabs",e.ui.tabs,{options:{idprefix:"ui-tabs-"},_tabid:function(t){var n=t.is("li")?t.find("a[href]"):t;return n=n[0],e(n).closest("li").attr("aria-controls")||n.title&&n.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uffff\-]/g,"")||this.options.idprefix+i()}}),e.widget("ui.tabs",e.ui.tabs,{options:{paneltemplate:"
    "},_createpanel:function(t){return e(this.options.paneltemplate).attr("id",t).addclass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)}}),e.widget("ui.tabs",e.ui.tabs,{_create:function(){var e=this.options;e.active===null&&e.selected!==t&&(e.active=e.selected===-1?!1:e.selected),this._super(),e.selected=e.active,e.selected===!1&&(e.selected=-1)},_setoption:function(e,t){if(e!=="selected")return this._super(e,t);var n=this.options;this._super("active",t===-1?!1:t),n.selected=n.active,n.selected===!1&&(n.selected=-1)},_eventhandler:function(){this._superapply(arguments),this.options.selected=this.options.active,this.options.selected===!1&&(this.options.selected=-1)}}),e.widget("ui.tabs",e.ui.tabs,{options:{show:null,select:null},_create:function(){this._super(),this.options.active!==!1&&this._trigger("show",null,this._ui(this.active.find(".ui-tabs-anchor")[0],this._getpanelfortab(this.active)[0]))},_trigger:function(e,t,n){var r=this._superapply(arguments);return r?(e==="beforeactivate"&&n.newtab.length?r=this._super("select",t,{tab:n.newtab.find(".ui-tabs-anchor")[0],panel:n.newpanel[0],index:n.newtab.closest("li").index()}):e==="activate"&&n.newtab.length&&(r=this._super("show",t,{tab:n.newtab.find(".ui-tabs-anchor")[0],panel:n.newpanel[0],index:n.newtab.closest("li").index()})),r):!1}}),e.widget("ui.tabs",e.ui.tabs,{select:function(e){e=this._getindex(e);if(e===-1){if(!this.options.collapsible||this.options.selected===-1)return;e=this.options.selected}this.anchors.eq(e).trigger(this.options.event+this.eventnamespace)}}),function(){var t=0;e.widget("ui.tabs",e.ui.tabs,{options:{cookie:null},_create:function(){var e=this.options,t;e.active==null&&e.cookie&&(t=parseint(this._cookie(),10),t===-1&&(t=!1),e.active=t),this._super()},_cookie:function(n){var r=[this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+ ++t)];return arguments.length&&(r.push(n===!1?-1:n),r.push(this.options.cookie)),e.cookie.apply(null,r)},_refresh:function(){this._super(),this.options.cookie&&this._cookie(this.options.active,this.options.cookie)},_eventhandler:function(){this._superapply(arguments),this.options.cookie&&this._cookie(this.options.active,this.options.cookie)},_destroy:function(){this._super(),this.options.cookie&&this._cookie(null,this.options.cookie)}})}(),e.widget("ui.tabs",e.ui.tabs,{_trigger:function(t,n,r){var i=e.extend({},r);return t==="load"&&(i.panel=i.panel[0],i.tab=i.tab.find(".ui-tabs-anchor")[0]),this._super(t,n,i)}}),e.widget("ui.tabs",e.ui.tabs,{options:{fx:null},_getfx:function(){var t,n,r=this.options.fx;return r&&(e.isarray(r)?(t=r[0],n=r[1]):t=n=r),r?{show:n,hide:t}:null},_toggle:function(e,t){function o(){n.running=!1,n._trigger("activate",e,t)}function u(){t.newtab.closest("li").addclass("ui-tabs-active ui-state-active"),r.length&&s.show?r.animate(s.show,s.show.duration,function(){o()}):(r.show(),o())}var n=this,r=t.newpanel,i=t.oldpanel,s=this._getfx();if(!s)return this._super(e,t);n.running=!0,i.length&&s.hide?i.animate(s.hide,s.hide.duration,function(){t.oldtab.closest("li").removeclass("ui-tabs-active ui-state-active"),u()}):(t.oldtab.closest("li").removeclass("ui-tabs-active ui-state-active"),i.hide(),u())}}))}(jquery),function(e){function n(t,n){var r=(t.attr("aria-describedby")||"").split(/\s+/);r.push(n),t.data("ui-tooltip-id",n).attr("aria-describedby",e.trim(r.join(" ")))}function r(t){var n=t.data("ui-tooltip-id"),r=(t.attr("aria-describedby")||"").split(/\s+/),i=e.inarray(n,r);i!==-1&&r.splice(i,1),t.removedata("ui-tooltip-id"),r=e.trim(r.join(" ")),r?t.attr("aria-describedby",r):t.removeattr("aria-describedby")}var t=0;e.widget("ui.tooltip",{version:"1.9.1",options:{content:function(){return e(this).attr("title")},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flipfit"},show:!0,tooltipclass:null,track:!1,close:null,open:null},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable()},_setoption:function(t,n){var r=this;if(t==="disabled"){this[n?"_disable":"_enable"](),this.options[t]=n;return}this._super(t,n),t==="content"&&e.each(this.tooltips,function(e,t){r._updatecontent(t)})},_disable:function(){var t=this;e.each(this.tooltips,function(n,r){var i=e.event("blur");i.target=i.currenttarget=r[0],t.close(i,!0)}),this.element.find(this.options.items).andself().each(function(){var t=e(this);t.is("[title]")&&t.data("ui-tooltip-title",t.attr("title")).attr("title","")})},_enable:function(){this.element.find(this.options.items).andself().each(function(){var t=e(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))})},open:function(t){var n=this,r=e(t?t.target:this.element).closest(this.options.items);if(!r.length)return;if(this.options.track&&r.data("ui-tooltip-id")){this._find(r).position(e.extend({of:r},this.options.position)),this._off(this.document,"mousemove");return}r.attr("title")&&r.data("ui-tooltip-title",r.attr("title")),r.data("tooltip-open",!0),t&&t.type==="mouseover"&&r.parents().each(function(){var t;e(this).data("tooltip-open")&&(t=e.event("blur"),t.target=t.currenttarget=this,n.close(t,!0)),this.title&&(e(this).uniqueid(),n.parents[this.id]={element:this,title:this.title},this.title="")}),this._updatecontent(r,t)},_updatecontent:function(e,t){var n,r=this.options.content,i=this;if(typeof r=="string")return this._open(t,e,r);n=r.call(e[0],function(n){if(!e.data("tooltip-open"))return;i._delay(function(){this._open(t,e,n)})}),n&&this._open(t,e,n)},_open:function(t,r,i){function f(e){a.of=e;if(s.is(":hidden"))return;s.position(a)}var s,o,u,a=e.extend({},this.options.position);if(!i)return;s=this._find(r);if(s.length){s.find(".ui-tooltip-content").html(i);return}r.is("[title]")&&(t&&t.type==="mouseover"?r.attr("title",""):r.removeattr("title")),s=this._tooltip(r),n(r,s.attr("id")),s.find(".ui-tooltip-content").html(i),this.options.track&&t&&/^mouse/.test(t.originalevent.type)?(this._on(this.document,{mousemove:f}),f(t)):s.position(e.extend({of:r},this.options.position)),s.hide(),this._show(s,this.options.show),this.options.show&&this.options.show.delay&&(u=setinterval(function(){s.is(":visible")&&(f(a.of),clearinterval(u))},e.fx.interval)),this._trigger("open",t,{tooltip:s}),o={keyup:function(t){if(t.keycode===e.ui.keycode.escape){var n=e.event(t);n.currenttarget=r[0],this.close(n,!0)}},remove:function(){this._removetooltip(s)}};if(!t||t.type==="mouseover")o.mouseleave="close";if(!t||t.type==="focusin")o.focusout="close";this._on(r,o)},close:function(t){var n=this,i=e(t?t.currenttarget:this.element),s=this._find(i);if(this.closing)return;i.data("ui-tooltip-title")&&i.attr("title",i.data("ui-tooltip-title")),r(i),s.stop(!0),this._hide(s,this.options.hide,function(){n._removetooltip(e(this))}),i.removedata("tooltip-open"),this._off(i,"mouseleave focusout keyup"),i[0]!==this.element[0]&&this._off(i,"remove"),this._off(this.document,"mousemove"),t&&t.type==="mouseleave"&&e.each(this.parents,function(e,t){t.element.title=t.title,delete n.parents[e]}),this.closing=!0,this._trigger("close",t,{tooltip:s}),this.closing=!1},_tooltip:function(n){var r="ui-tooltip-"+t++,i=e("
    ").attr({id:r,role:"tooltip"}).addclass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipclass||""));return e("
    ").addclass("ui-tooltip-content").appendto(i),i.appendto(this.document[0].body),e.fn.bgiframe&&i.bgiframe(),this.tooltips[r]=n,i},_find:function(t){var n=t.data("ui-tooltip-id");return n?e("#"+n):e()},_removetooltip:function(e){e.remove(),delete this.tooltips[e.attr("id")]},_destroy:function(){var t=this;e.each(this.tooltips,function(n,r){var i=e.event("blur");i.target=i.currenttarget=r[0],t.close(i,!0),e("#"+n).remove(),r.data("ui-tooltip-title")&&(r.attr("title",r.data("ui-tooltip-title")),r.removedata("ui-tooltip-title"))})}})}(jquery); /*! * jquery cookie plugin v1.4.1 * https://github.com/carhartl/jquery-cookie * * copyright 2006, 2014 klaus hartl * released under the mit license */ (function (factory) { if (typeof define === 'function' && define.amd) { // amd (register as an anonymous module) define(['jquery'], factory); } else if (typeof exports === 'object') { // node/commonjs module.exports = factory(require('jquery')); } else { // browser globals factory(jquery); } }(function ($) { var pluses = /\+/g; function encode(s) { return config.raw ? s : encodeuricomponent(s); } function decode(s) { return config.raw ? s : decodeuricomponent(s); } function stringifycookievalue(value) { return encode(config.json ? json.stringify(value) : string(value)); } function parsecookievalue(s) { if (s.indexof('"') === 0) { // this is a quoted cookie as according to rfc2068, unescape... s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\'); } try { // replace server-side written pluses with spaces. // if we can't decode the cookie, ignore it, it's unusable. // if we can't parse the cookie, ignore it, it's unusable. s = decodeuricomponent(s.replace(pluses, ' ')); return config.json ? json.parse(s) : s; } catch(e) {} } function read(s, converter) { var value = config.raw ? s : parsecookievalue(s); return $.isfunction(converter) ? converter(value) : value; } var config = $.cookie = function (key, value, options) { // write if (arguments.length > 1 && !$.isfunction(value)) { options = $.extend({}, config.defaults, options); if (typeof options.expires === 'number') { var days = options.expires, t = options.expires = new date(); t.setmilliseconds(t.getmilliseconds() + days * 864e+5); } return (document.cookie = [ encode(key), '=', stringifycookievalue(value), options.expires ? '; expires=' + options.expires.toutcstring() : '', // use expires attribute, max-age is not supported by ie options.path ? '; path=' + options.path : '', options.domain ? '; domain=' + options.domain : '', options.secure ? '; secure' : '' ].join('')); } // read var result = key ? undefined : {}, // to prevent the for loop in the first place assign an empty array // in case there are no cookies at all. also prevents odd result when // calling $.cookie(). cookies = document.cookie ? document.cookie.split('; ') : [], i = 0, l = cookies.length; for (; i < l; i++) { var parts = cookies[i].split('='), name = decode(parts.shift()), cookie = parts.join('='); if (key === name) { // if second argument (value) is a function it's a converter... result = read(cookie, value); break; } // prevent storing a cookie that we couldn't decode. if (!key && (cookie = read(cookie)) !== undefined) { result[name] = cookie; } } return result; }; config.defaults = {}; $.removecookie = function (key, options) { // must not alter options, thus extending a fresh object... $.cookie(key, '', $.extend({}, options, { expires: -1 })); return !$.cookie(key); }; }));