(function(a,b){function e(){if(!i.isReady){try{z.documentElement.doScroll("left")}catch(d){setTimeout(e,1);return}i.ready()}}function g(d,k){k.src?i.ajax({url:k.src,async:false,dataType:"script"}):i.globalEval(k.text||k.textContent||k.innerHTML||"");k.parentNode&&k.parentNode.removeChild(k)}function f(d,k,n,o,p,x){var y=d.length;if(typeof k==="object"){for(var D in k)f(d,D,k[D],o,p,n);return d}if(n!==b){o=!x&&o&&i.isFunction(n);for(D=0;D<y;D++)p(d[D],k,o?n.call(d[D],D,p(d[D],k)):n,x);return d}return y?
p(d[0],k):b}function h(){return(new Date).getTime()}function l(){return false}function c(){return true}function j(d,k,n){n[0].type=d;return i.event.handle.apply(k,n)}function m(d){var k,n=[],o=[],p=arguments,x,y,D,B,E,I;y=i.data(this,"events");if(!(d.liveFired===this||!y||!y.live||d.button&&d.type==="click")){d.liveFired=this;var O=y.live.slice(0);for(B=0;B<O.length;B++){y=O[B];y.origType.replace(ua,"")===d.type?o.push(y.selector):O.splice(B--,1)}x=i(d.target).closest(o,d.currentTarget);E=0;for(I=
x.length;E<I;E++)for(B=0;B<O.length;B++){y=O[B];if(x[E].selector===y.selector){D=x[E].elem;o=null;if(y.preType==="mouseenter"||y.preType==="mouseleave")o=i(d.relatedTarget).closest(y.selector)[0];if(!o||o!==D)n.push({elem:D,handleObj:y})}}E=0;for(I=n.length;E<I;E++){x=n[E];d.currentTarget=x.elem;d.data=x.handleObj.data;d.handleObj=x.handleObj;if(x.handleObj.origHandler.apply(x.elem,p)===false){k=false;break}}return k}}function q(d,k){return"live."+(d&&d!=="*"?d+".":"")+k.replace(/\./g,"`").replace(/ /g,
"&")}function s(d,k){var n=0;k.each(function(){if(this.nodeName===(d[n]&&d[n].nodeName)){var o=i.data(d[n++]),p=i.data(this,o);if(o=o&&o.events){delete p.handle;p.events={};for(var x in o)for(var y in o[x])i.event.add(this,x,o[x][y],o[x][y].data)}}})}function t(d,k,n){var o,p,x;k=k&&k[0]?k[0].ownerDocument||k[0]:z;if(d.length===1&&typeof d[0]==="string"&&d[0].length<512&&k===z&&!La.test(d[0])&&(i.support.checkClone||!Ma.test(d[0]))){p=true;if(x=i.fragments[d[0]])if(x!==1)o=x}if(!o){o=k.createDocumentFragment();
i.clean(d,k,o,n)}if(p)i.fragments[d[0]]=x?o:1;return{fragment:o,cacheable:p}}function v(d,k){var n={};i.each(Na.concat.apply([],Na.slice(0,k)),function(){n[this]=d});return n}function u(d){return"scrollTo"in d&&d.document?d:d.nodeType===9?d.defaultView||d.parentWindow:false}var i=function(d,k){return new i.fn.init(d,k)},F=a.jQuery,J=a.$,z=a.document,L,Q=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,M=/^.[^:#\[\.,]*$/,S=/\S/,U=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,ba=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,Z=navigator.userAgent,
V=false,ea=[],la,ma=Object.prototype.toString,ia=Object.prototype.hasOwnProperty,aa=Array.prototype.push,ja=Array.prototype.slice,na=Array.prototype.indexOf;i.fn=i.prototype={init:function(d,k){var n,o;if(!d)return this;if(d.nodeType){this.context=this[0]=d;this.length=1;return this}if(d==="body"&&!k){this.context=z;this[0]=z.body;this.selector="body";this.length=1;return this}if(typeof d==="string")if((n=Q.exec(d))&&(n[1]||!k))if(n[1]){o=k?k.ownerDocument||k:z;if(d=ba.exec(d))if(i.isPlainObject(k)){d=
[z.createElement(d[1])];i.fn.attr.call(d,k,true)}else d=[o.createElement(d[1])];else{d=t([n[1]],[o]);d=(d.cacheable?d.fragment.cloneNode(true):d.fragment).childNodes}return i.merge(this,d)}else{if(k=z.getElementById(n[2])){if(k.id!==n[2])return L.find(d);this.length=1;this[0]=k}this.context=z;this.selector=d;return this}else if(!k&&/^\w+$/.test(d)){this.selector=d;this.context=z;d=z.getElementsByTagName(d);return i.merge(this,d)}else return!k||k.jquery?(k||L).find(d):i(k).find(d);else if(i.isFunction(d))return L.ready(d);
if(d.selector!==b){this.selector=d.selector;this.context=d.context}return i.makeArray(d,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return ja.call(this,0)},get:function(d){return d==null?this.toArray():d<0?this.slice(d)[0]:this[d]},pushStack:function(d,k,n){var o=i();i.isArray(d)?aa.apply(o,d):i.merge(o,d);o.prevObject=this;o.context=this.context;if(k==="find")o.selector=this.selector+(this.selector?" ":"")+n;else if(k)o.selector=this.selector+
"."+k+"("+n+")";return o},each:function(d,k){return i.each(this,d,k)},ready:function(d){i.bindReady();if(i.isReady)d.call(z,i);else ea&&ea.push(d);return this},eq:function(d){return d===-1?this.slice(d):this.slice(d,+d+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(ja.apply(this,arguments),"slice",ja.call(arguments).join(","))},map:function(d){return this.pushStack(i.map(this,function(k,n){return d.call(k,n,k)}))},end:function(){return this.prevObject||
i(null)},push:aa,sort:[].sort,splice:[].splice};i.fn.init.prototype=i.fn;i.extend=i.fn.extend=function(){var d=arguments[0]||{},k=1,n=arguments.length,o=false,p,x,y,D;if(typeof d==="boolean"){o=d;d=arguments[1]||{};k=2}if(typeof d!=="object"&&!i.isFunction(d))d={};if(n===k){d=this;--k}for(;k<n;k++)if((p=arguments[k])!=null)for(x in p){y=d[x];D=p[x];if(d!==D)if(o&&D&&(i.isPlainObject(D)||i.isArray(D))){y=y&&(i.isPlainObject(y)||i.isArray(y))?y:i.isArray(D)?[]:{};d[x]=i.extend(o,y,D)}else if(D!==b)d[x]=
D}return d};i.extend({noConflict:function(d){a.$=J;if(d)a.jQuery=F;return i},isReady:false,ready:function(){if(!i.isReady){if(!z.body)return setTimeout(i.ready,13);i.isReady=true;if(ea){for(var d,k=0;d=ea[k++];)d.call(z,i);ea=null}i.fn.triggerHandler&&i(z).triggerHandler("ready")}},bindReady:function(){if(!V){V=true;if(z.readyState==="complete")return i.ready();if(z.addEventListener){z.addEventListener("DOMContentLoaded",la,false);a.addEventListener("load",i.ready,false)}else if(z.attachEvent){z.attachEvent("onreadystatechange",
la);a.attachEvent("onload",i.ready);var d=false;try{d=a.frameElement==null}catch(k){}z.documentElement.doScroll&&d&&e()}}},isFunction:function(d){return ma.call(d)==="[object Function]"},isArray:function(d){return ma.call(d)==="[object Array]"},isPlainObject:function(d){if(!d||ma.call(d)!=="[object Object]"||d.nodeType||d.setInterval)return false;if(d.constructor&&!ia.call(d,"constructor")&&!ia.call(d.constructor.prototype,"isPrototypeOf"))return false;var k;for(k in d);return k===b||ia.call(d,k)},
isEmptyObject:function(d){for(var k in d)return false;return true},error:function(d){throw d;},parseJSON:function(d){if(typeof d!=="string"||!d)return null;d=i.trim(d);if(/^[\],:{}\s]*$/.test(d.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return a.JSON&&a.JSON.parse?a.JSON.parse(d):(new Function("return "+d))();else i.error("Invalid JSON: "+d)},noop:function(){},globalEval:function(d){if(d&&
S.test(d)){var k=z.getElementsByTagName("head")[0]||z.documentElement,n=z.createElement("script");n.type="text/javascript";if(i.support.scriptEval)n.appendChild(z.createTextNode(d));else n.text=d;k.insertBefore(n,k.firstChild);k.removeChild(n)}},nodeName:function(d,k){return d.nodeName&&d.nodeName.toUpperCase()===k.toUpperCase()},each:function(d,k,n){var o,p=0,x=d.length,y=x===b||i.isFunction(d);if(n)if(y)for(o in d){if(k.apply(d[o],n)===false)break}else for(;p<x;){if(k.apply(d[p++],n)===false)break}else if(y)for(o in d){if(k.call(d[o],
o,d[o])===false)break}else for(n=d[0];p<x&&k.call(n,p,n)!==false;n=d[++p]);return d},trim:function(d){return(d||"").replace(U,"")},makeArray:function(d,k){k=k||[];if(d!=null)d.length==null||typeof d==="string"||i.isFunction(d)||typeof d!=="function"&&d.setInterval?aa.call(k,d):i.merge(k,d);return k},inArray:function(d,k){if(k.indexOf)return k.indexOf(d);for(var n=0,o=k.length;n<o;n++)if(k[n]===d)return n;return-1},merge:function(d,k){var n=d.length,o=0;if(typeof k.length==="number")for(var p=k.length;o<
p;o++)d[n++]=k[o];else for(;k[o]!==b;)d[n++]=k[o++];d.length=n;return d},grep:function(d,k,n){for(var o=[],p=0,x=d.length;p<x;p++)!n!==!k(d[p],p)&&o.push(d[p]);return o},map:function(d,k,n){for(var o=[],p,x=0,y=d.length;x<y;x++){p=k(d[x],x,n);if(p!=null)o[o.length]=p}return o.concat.apply([],o)},guid:1,proxy:function(d,k,n){if(arguments.length===2)if(typeof k==="string"){n=d;d=n[k];k=b}else if(k&&!i.isFunction(k)){n=k;k=b}if(!k&&d)k=function(){return d.apply(n||this,arguments)};if(d)k.guid=d.guid=
d.guid||k.guid||i.guid++;return k},uaMatch:function(d){d=d.toLowerCase();d=/(webkit)[ \/]([\w.]+)/.exec(d)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(d)||/(msie) ([\w.]+)/.exec(d)||!/compatible/.test(d)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(d)||[];return{browser:d[1]||"",version:d[2]||"0"}},browser:{}});Z=i.uaMatch(Z);if(Z.browser){i.browser[Z.browser]=true;i.browser.version=Z.version}if(i.browser.webkit)i.browser.safari=true;if(na)i.inArray=function(d,k){return na.call(k,d)};L=i(z);if(z.addEventListener)la=
function(){z.removeEventListener("DOMContentLoaded",la,false);i.ready()};else if(z.attachEvent)la=function(){if(z.readyState==="complete"){z.detachEvent("onreadystatechange",la);i.ready()}};(function(){i.support={};var d=z.documentElement,k=z.createElement("script"),n=z.createElement("div"),o="script"+h();n.style.display="none";n.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var p=n.getElementsByTagName("*"),x=n.getElementsByTagName("a")[0];
if(!(!p||!p.length||!x)){i.support={leadingWhitespace:n.firstChild.nodeType===3,tbody:!n.getElementsByTagName("tbody").length,htmlSerialize:!!n.getElementsByTagName("link").length,style:/red/.test(x.getAttribute("style")),hrefNormalized:x.getAttribute("href")==="/a",opacity:/^0.55$/.test(x.style.opacity),cssFloat:!!x.style.cssFloat,checkOn:n.getElementsByTagName("input")[0].value==="on",optSelected:z.createElement("select").appendChild(z.createElement("option")).selected,parentNode:n.removeChild(n.appendChild(z.createElement("div"))).parentNode===
null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};k.type="text/javascript";try{k.appendChild(z.createTextNode("window."+o+"=1;"))}catch(y){}d.insertBefore(k,d.firstChild);if(a[o]){i.support.scriptEval=true;delete a[o]}try{delete k.test}catch(D){i.support.deleteExpando=false}d.removeChild(k);if(n.attachEvent&&n.fireEvent){n.attachEvent("onclick",function B(){i.support.noCloneEvent=false;n.detachEvent("onclick",B)});n.cloneNode(true).fireEvent("onclick")}n=z.createElement("div");
n.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";d=z.createDocumentFragment();d.appendChild(n.firstChild);i.support.checkClone=d.cloneNode(true).cloneNode(true).lastChild.checked;i(function(){var B=z.createElement("div");B.style.width=B.style.paddingLeft="1px";z.body.appendChild(B);i.boxModel=i.support.boxModel=B.offsetWidth===2;z.body.removeChild(B).style.display="none"});d=function(B){var E=z.createElement("div");B="on"+B;var I=B in E;if(!I){E.setAttribute(B,"return;");I=typeof E[B]===
"function"}return I};i.support.submitBubbles=d("submit");i.support.changeBubbles=d("change");d=k=n=p=x=null}})();i.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var ka="jQuery"+h(),$=0,ca={};i.extend({cache:{},expando:ka,noData:{embed:true,object:true,applet:true},data:function(d,k,n){if(!(d.nodeName&&i.noData[d.nodeName.toLowerCase()])){d=
d==a?ca:d;var o=d[ka],p=i.cache;if(!o&&typeof k==="string"&&n===b)return null;o||(o=++$);if(typeof k==="object"){d[ka]=o;p[o]=i.extend(true,{},k)}else if(!p[o]){d[ka]=o;p[o]={}}d=p[o];if(n!==b)d[k]=n;return typeof k==="string"?d[k]:d}},removeData:function(d,k){if(!(d.nodeName&&i.noData[d.nodeName.toLowerCase()])){d=d==a?ca:d;var n=d[ka],o=i.cache,p=o[n];if(k){if(p){delete p[k];i.isEmptyObject(p)&&i.removeData(d)}}else{if(i.support.deleteExpando)delete d[i.expando];else d.removeAttribute&&d.removeAttribute(i.expando);
delete o[n]}}}});i.fn.extend({data:function(d,k){if(typeof d==="undefined"&&this.length)return i.data(this[0]);else if(typeof d==="object")return this.each(function(){i.data(this,d)});var n=d.split(".");n[1]=n[1]?"."+n[1]:"";if(k===b){var o=this.triggerHandler("getData"+n[1]+"!",[n[0]]);if(o===b&&this.length)o=i.data(this[0],d);return o===b&&n[1]?this.data(n[0]):o}else return this.trigger("setData"+n[1]+"!",[n[0],k]).each(function(){i.data(this,d,k)})},removeData:function(d){return this.each(function(){i.removeData(this,
d)})}});i.extend({queue:function(d,k,n){if(d){k=(k||"fx")+"queue";var o=i.data(d,k);if(!n)return o||[];if(!o||i.isArray(n))o=i.data(d,k,i.makeArray(n));else o.push(n);return o}},dequeue:function(d,k){k=k||"fx";var n=i.queue(d,k),o=n.shift();if(o==="inprogress")o=n.shift();if(o){k==="fx"&&n.unshift("inprogress");o.call(d,function(){i.dequeue(d,k)})}}});i.fn.extend({queue:function(d,k){if(typeof d!=="string"){k=d;d="fx"}if(k===b)return i.queue(this[0],d);return this.each(function(){var n=i.queue(this,
d,k);d==="fx"&&n[0]!=="inprogress"&&i.dequeue(this,d)})},dequeue:function(d){return this.each(function(){i.dequeue(this,d)})},delay:function(d,k){d=i.fx?i.fx.speeds[d]||d:d;k=k||"fx";return this.queue(k,function(){var n=this;setTimeout(function(){i.dequeue(n,k)},d)})},clearQueue:function(d){return this.queue(d||"fx",[])}});var da=/[\n\t]/g,W=/\s+/,xa=/\r/g,ya=/href|src|style/,ra=/(button|input)/i,oa=/(button|input|object|select|textarea)/i,va=/^(a|area)$/i,Oa=/radio|checkbox/;i.fn.extend({attr:function(d,
k){return f(this,d,k,true,i.attr)},removeAttr:function(d){return this.each(function(){i.attr(this,d,"");this.nodeType===1&&this.removeAttribute(d)})},addClass:function(d){if(i.isFunction(d))return this.each(function(E){var I=i(this);I.addClass(d.call(this,E,I.attr("class")))});if(d&&typeof d==="string")for(var k=(d||"").split(W),n=0,o=this.length;n<o;n++){var p=this[n];if(p.nodeType===1)if(p.className){for(var x=" "+p.className+" ",y=p.className,D=0,B=k.length;D<B;D++)if(x.indexOf(" "+k[D]+" ")<0)y+=
" "+k[D];p.className=i.trim(y)}else p.className=d}return this},removeClass:function(d){if(i.isFunction(d))return this.each(function(B){var E=i(this);E.removeClass(d.call(this,B,E.attr("class")))});if(d&&typeof d==="string"||d===b)for(var k=(d||"").split(W),n=0,o=this.length;n<o;n++){var p=this[n];if(p.nodeType===1&&p.className)if(d){for(var x=(" "+p.className+" ").replace(da," "),y=0,D=k.length;y<D;y++)x=x.replace(" "+k[y]+" "," ");p.className=i.trim(x)}else p.className=""}return this},toggleClass:function(d,
k){var n=typeof d,o=typeof k==="boolean";if(i.isFunction(d))return this.each(function(p){var x=i(this);x.toggleClass(d.call(this,p,x.attr("class"),k),k)});return this.each(function(){if(n==="string")for(var p,x=0,y=i(this),D=k,B=d.split(W);p=B[x++];){D=o?D:!y.hasClass(p);y[D?"addClass":"removeClass"](p)}else if(n==="undefined"||n==="boolean"){this.className&&i.data(this,"__className__",this.className);this.className=this.className||d===false?"":i.data(this,"__className__")||""}})},hasClass:function(d){d=
" "+d+" ";for(var k=0,n=this.length;k<n;k++)if((" "+this[k].className+" ").replace(da," ").indexOf(d)>-1)return true;return false},val:function(d){if(d===b){var k=this[0];if(k){if(i.nodeName(k,"option"))return(k.attributes.value||{}).specified?k.value:k.text;if(i.nodeName(k,"select")){var n=k.selectedIndex,o=[],p=k.options;k=k.type==="select-one";if(n<0)return null;var x=k?n:0;for(n=k?n+1:p.length;x<n;x++){var y=p[x];if(y.selected){d=i(y).val();if(k)return d;o.push(d)}}return o}if(Oa.test(k.type)&&
!i.support.checkOn)return k.getAttribute("value")===null?"on":k.value;return(k.value||"").replace(xa,"")}return b}var D=i.isFunction(d);return this.each(function(B){var E=i(this),I=d;if(this.nodeType===1){if(D)I=d.call(this,B,E.val());if(typeof I==="number")I+="";if(i.isArray(I)&&Oa.test(this.type))this.checked=i.inArray(E.val(),I)>=0;else if(i.nodeName(this,"select")){var O=i.makeArray(I);i("option",this).each(function(){this.selected=i.inArray(i(this).val(),O)>=0});if(!O.length)this.selectedIndex=
-1}else this.value=I}})}});i.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(d,k,n,o){if(!d||d.nodeType===3||d.nodeType===8)return b;if(o&&k in i.attrFn)return i(d)[k](n);o=d.nodeType!==1||!i.isXMLDoc(d);var p=n!==b;k=o&&i.props[k]||k;if(d.nodeType===1){var x=ya.test(k);if(k in d&&o&&!x){if(p){k==="type"&&ra.test(d.nodeName)&&d.parentNode&&i.error("type property can't be changed");d[k]=n}if(i.nodeName(d,"form")&&d.getAttributeNode(k))return d.getAttributeNode(k).nodeValue;
if(k==="tabIndex")return(k=d.getAttributeNode("tabIndex"))&&k.specified?k.value:oa.test(d.nodeName)||va.test(d.nodeName)&&d.href?0:b;return d[k]}if(!i.support.style&&o&&k==="style"){if(p)d.style.cssText=""+n;return d.style.cssText}p&&d.setAttribute(k,""+n);d=!i.support.hrefNormalized&&o&&x?d.getAttribute(k,2):d.getAttribute(k);return d===null?b:d}return i.style(d,k,n)}});var ua=/\.(.*)$/,cb=function(d){return d.replace(/[^\w\s\.\|`]/g,function(k){return"\\"+k})};i.event={add:function(d,k,n,o){if(!(d.nodeType===
3||d.nodeType===8)){if(d.setInterval&&d!==a&&!d.frameElement)d=a;var p,x;if(n.handler){p=n;n=p.handler}if(!n.guid)n.guid=i.guid++;if(x=i.data(d)){var y=x.events=x.events||{},D=x.handle;if(!D)x.handle=D=function(){return typeof i!=="undefined"&&!i.event.triggered?i.event.handle.apply(D.elem,arguments):b};D.elem=d;k=k.split(" ");for(var B,E=0,I;B=k[E++];){x=p?i.extend({},p):{handler:n,data:o};if(B.indexOf(".")>-1){I=B.split(".");B=I.shift();x.namespace=I.slice(0).sort().join(".")}else{I=[];x.namespace=
""}x.type=B;x.guid=n.guid;var O=y[B],T=i.event.special[B]||{};if(!O){O=y[B]=[];if(!T.setup||T.setup.call(d,o,I,D)===false)if(d.addEventListener)d.addEventListener(B,D,false);else d.attachEvent&&d.attachEvent("on"+B,D)}if(T.add){T.add.call(d,x);if(!x.handler.guid)x.handler.guid=n.guid}O.push(x);i.event.global[B]=true}d=null}}},global:{},remove:function(d,k,n,o){if(!(d.nodeType===3||d.nodeType===8)){var p,x=0,y,D,B,E,I,O,T=i.data(d),Y=T&&T.events;if(T&&Y){if(k&&k.type){n=k.handler;k=k.type}if(!k||typeof k===
"string"&&k.charAt(0)==="."){k=k||"";for(p in Y)i.event.remove(d,p+k)}else{for(k=k.split(" ");p=k[x++];){E=p;y=p.indexOf(".")<0;D=[];if(!y){D=p.split(".");p=D.shift();B=RegExp("(^|\\.)"+i.map(D.slice(0).sort(),cb).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(I=Y[p])if(n){E=i.event.special[p]||{};for(X=o||0;X<I.length;X++){O=I[X];if(n.guid===O.guid){if(y||B.test(O.namespace)){o==null&&I.splice(X--,1);E.remove&&E.remove.call(d,O)}if(o!=null)break}}if(I.length===0||o!=null&&I.length===1){if(!E.teardown||E.teardown.call(d,
D)===false)Pa(d,p,T.handle);delete Y[p]}}else for(var X=0;X<I.length;X++){O=I[X];if(y||B.test(O.namespace)){i.event.remove(d,E,O.handler,X);I.splice(X--,1)}}}if(i.isEmptyObject(Y)){if(k=T.handle)k.elem=null;delete T.events;delete T.handle;i.isEmptyObject(T)&&i.removeData(d)}}}}},trigger:function(d,k,n,o){var p=d.type||d;if(!o){d=typeof d==="object"?d[ka]?d:i.extend(i.Event(p),d):i.Event(p);if(p.indexOf("!")>=0){d.type=p=p.slice(0,-1);d.exclusive=true}if(!n){d.stopPropagation();i.event.global[p]&&
i.each(i.cache,function(){this.events&&this.events[p]&&i.event.trigger(d,k,this.handle.elem)})}if(!n||n.nodeType===3||n.nodeType===8)return b;d.result=b;d.target=n;k=i.makeArray(k);k.unshift(d)}d.currentTarget=n;(o=i.data(n,"handle"))&&o.apply(n,k);o=n.parentNode||n.ownerDocument;try{if(!(n&&n.nodeName&&i.noData[n.nodeName.toLowerCase()]))if(n["on"+p]&&n["on"+p].apply(n,k)===false)d.result=false}catch(x){}if(!d.isPropagationStopped()&&o)i.event.trigger(d,k,o,true);else if(!d.isDefaultPrevented()){o=
d.target;var y,D=i.nodeName(o,"a")&&p==="click",B=i.event.special[p]||{};if((!B._default||B._default.call(n,d)===false)&&!D&&!(o&&o.nodeName&&i.noData[o.nodeName.toLowerCase()])){try{if(o[p]){if(y=o["on"+p])o["on"+p]=null;i.event.triggered=true;o[p]()}}catch(E){}if(y)o["on"+p]=y;i.event.triggered=false}}},handle:function(d){var k,n,o,p;d=arguments[0]=i.event.fix(d||a.event);d.currentTarget=this;k=d.type.indexOf(".")<0&&!d.exclusive;if(!k){n=d.type.split(".");d.type=n.shift();o=RegExp("(^|\\.)"+n.slice(0).sort().join("\\.(?:.*\\.)?")+
"(\\.|$)")}p=i.data(this,"events");n=p[d.type];if(p&&n){n=n.slice(0);p=0;for(var x=n.length;p<x;p++){var y=n[p];if(k||o.test(y.namespace)){d.handler=y.handler;d.data=y.data;d.handleObj=y;y=y.handler.apply(this,arguments);if(y!==b){d.result=y;if(y===false){d.preventDefault();d.stopPropagation()}}if(d.isImmediatePropagationStopped())break}}}return d.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
fix:function(d){if(d[ka])return d;var k=d;d=i.Event(k);for(var n=this.props.length,o;n;){o=this.props[--n];d[o]=k[o]}if(!d.target)d.target=d.srcElement||z;if(d.target.nodeType===3)d.target=d.target.parentNode;if(!d.relatedTarget&&d.fromElement)d.relatedTarget=d.fromElement===d.target?d.toElement:d.fromElement;if(d.pageX==null&&d.clientX!=null){k=z.documentElement;n=z.body;d.pageX=d.clientX+(k&&k.scrollLeft||n&&n.scrollLeft||0)-(k&&k.clientLeft||n&&n.clientLeft||0);d.pageY=d.clientY+(k&&k.scrollTop||
n&&n.scrollTop||0)-(k&&k.clientTop||n&&n.clientTop||0)}if(!d.which&&(d.charCode||d.charCode===0?d.charCode:d.keyCode))d.which=d.charCode||d.keyCode;if(!d.metaKey&&d.ctrlKey)d.metaKey=d.ctrlKey;if(!d.which&&d.button!==b)d.which=d.button&1?1:d.button&2?3:d.button&4?2:0;return d},guid:1E8,proxy:i.proxy,special:{ready:{setup:i.bindReady,teardown:i.noop},live:{add:function(d){i.event.add(this,d.origType,i.extend({},d,{handler:m}))},remove:function(d){var k=true,n=d.origType.replace(ua,"");i.each(i.data(this,
"events").live||[],function(){if(n===this.origType.replace(ua,""))return k=false});k&&i.event.remove(this,d.origType,m)}},beforeunload:{setup:function(d,k,n){if(this.setInterval)this.onbeforeunload=n;return false},teardown:function(d,k){if(this.onbeforeunload===k)this.onbeforeunload=null}}}};var Pa=z.removeEventListener?function(d,k,n){d.removeEventListener(k,n,false)}:function(d,k,n){d.detachEvent("on"+k,n)};i.Event=function(d){if(!this.preventDefault)return new i.Event(d);if(d&&d.type){this.originalEvent=
d;this.type=d.type}else this.type=d;this.timeStamp=h();this[ka]=true};i.Event.prototype={preventDefault:function(){this.isDefaultPrevented=c;var d=this.originalEvent;if(d){d.preventDefault&&d.preventDefault();d.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=c;var d=this.originalEvent;if(d){d.stopPropagation&&d.stopPropagation();d.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=c;this.stopPropagation()},isDefaultPrevented:l,isPropagationStopped:l,
isImmediatePropagationStopped:l};var Qa=function(d){var k=d.relatedTarget;try{for(;k&&k!==this;)k=k.parentNode;if(k!==this){d.type=d.data;i.event.handle.apply(this,arguments)}}catch(n){}},Ra=function(d){d.type=d.data;i.event.handle.apply(this,arguments)};i.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(d,k){i.event.special[d]={setup:function(n){i.event.add(this,k,n&&n.selector?Ra:Qa,d)},teardown:function(n){i.event.remove(this,k,n&&n.selector?Ra:Qa)}}});if(!i.support.submitBubbles)i.event.special.submit=
{setup:function(){if(this.nodeName.toLowerCase()!=="form"){i.event.add(this,"click.specialSubmit",function(d){var k=d.target,n=k.type;if((n==="submit"||n==="image")&&i(k).closest("form").length)return j("submit",this,arguments)});i.event.add(this,"keypress.specialSubmit",function(d){var k=d.target,n=k.type;if((n==="text"||n==="password")&&i(k).closest("form").length&&d.keyCode===13)return j("submit",this,arguments)})}else return false},teardown:function(){i.event.remove(this,".specialSubmit")}};if(!i.support.changeBubbles){var Ca=
/textarea|input|select/i,Da,Sa=function(d){var k=d.type,n=d.value;if(k==="radio"||k==="checkbox")n=d.checked;else if(k==="select-multiple")n=d.selectedIndex>-1?i.map(d.options,function(o){return o.selected}).join("-"):"";else if(d.nodeName.toLowerCase()==="select")n=d.selectedIndex;return n},Ea=function(d,k){var n=d.target,o,p;if(!(!Ca.test(n.nodeName)||n.readOnly)){o=i.data(n,"_change_data");p=Sa(n);if(d.type!=="focusout"||n.type!=="radio")i.data(n,"_change_data",p);if(!(o===b||p===o))if(o!=null||
p){d.type="change";return i.event.trigger(d,k,n)}}};i.event.special.change={filters:{focusout:Ea,click:function(d){var k=d.target,n=k.type;if(n==="radio"||n==="checkbox"||k.nodeName.toLowerCase()==="select")return Ea.call(this,d)},keydown:function(d){var k=d.target,n=k.type;if(d.keyCode===13&&k.nodeName.toLowerCase()!=="textarea"||d.keyCode===32&&(n==="checkbox"||n==="radio")||n==="select-multiple")return Ea.call(this,d)},beforeactivate:function(d){d=d.target;i.data(d,"_change_data",Sa(d))}},setup:function(){if(this.type===
"file")return false;for(var d in Da)i.event.add(this,d+".specialChange",Da[d]);return Ca.test(this.nodeName)},teardown:function(){i.event.remove(this,".specialChange");return Ca.test(this.nodeName)}};Da=i.event.special.change.filters}z.addEventListener&&i.each({focus:"focusin",blur:"focusout"},function(d,k){function n(o){o=i.event.fix(o);o.type=k;return i.event.handle.call(this,o)}i.event.special[k]={setup:function(){this.addEventListener(d,n,true)},teardown:function(){this.removeEventListener(d,
n,true)}}});i.each(["bind","one"],function(d,k){i.fn[k]=function(n,o,p){if(typeof n==="object"){for(var x in n)this[k](x,o,n[x],p);return this}if(i.isFunction(o)){p=o;o=b}var y=k==="one"?i.proxy(p,function(B){i(this).unbind(B,y);return p.apply(this,arguments)}):p;if(n==="unload"&&k!=="one")this.one(n,o,p);else{x=0;for(var D=this.length;x<D;x++)i.event.add(this[x],n,y,o)}return this}});i.fn.extend({unbind:function(d,k){if(typeof d==="object"&&!d.preventDefault)for(var n in d)this.unbind(n,d[n]);else{n=
0;for(var o=this.length;n<o;n++)i.event.remove(this[n],d,k)}return this},delegate:function(d,k,n,o){return this.live(k,n,o,d)},undelegate:function(d,k,n){return arguments.length===0?this.unbind("live"):this.die(k,null,n,d)},trigger:function(d,k){return this.each(function(){i.event.trigger(d,k,this)})},triggerHandler:function(d,k){if(this[0]){d=i.Event(d);d.preventDefault();d.stopPropagation();i.event.trigger(d,k,this[0]);return d.result}},toggle:function(d){for(var k=arguments,n=1;n<k.length;)i.proxy(d,
k[n++]);return this.click(i.proxy(d,function(o){var p=(i.data(this,"lastToggle"+d.guid)||0)%n;i.data(this,"lastToggle"+d.guid,p+1);o.preventDefault();return k[p].apply(this,arguments)||false}))},hover:function(d,k){return this.mouseenter(d).mouseleave(k||d)}});var Ta={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};i.each(["live","die"],function(d,k){i.fn[k]=function(n,o,p,x){var y,D=0,B,E,I=x||this.selector,O=x?this:i(this.context);if(i.isFunction(o)){p=o;o=b}for(n=
(n||"").split(" ");(y=n[D++])!=null;){x=ua.exec(y);B="";if(x){B=x[0];y=y.replace(ua,"")}if(y==="hover")n.push("mouseenter"+B,"mouseleave"+B);else{E=y;if(y==="focus"||y==="blur"){n.push(Ta[y]+B);y+=B}else y=(Ta[y]||y)+B;k==="live"?O.each(function(){i.event.add(this,q(y,I),{data:o,selector:I,handler:p,origType:y,origHandler:p,preType:E})}):O.unbind(q(y,I),p)}}return this}});i.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),
function(d,k){i.fn[k]=function(n){return n?this.bind(k,n):this.trigger(k)};if(i.attrFn)i.attrFn[k]=true});a.attachEvent&&!a.addEventListener&&a.attachEvent("onunload",function(){for(var d in i.cache)if(i.cache[d].handle)try{i.event.remove(i.cache[d].handle.elem)}catch(k){}});(function(){function d(r){for(var w="",A,C=0;r[C];C++){A=r[C];if(A.nodeType===3||A.nodeType===4)w+=A.nodeValue;else if(A.nodeType!==8)w+=d(A.childNodes)}return w}function k(r,w,A,C,H,G){H=0;for(var N=C.length;H<N;H++){var K=C[H];
if(K){K=K[r];for(var R=false;K;){if(K.sizcache===A){R=C[K.sizset];break}if(K.nodeType===1&&!G){K.sizcache=A;K.sizset=H}if(K.nodeName.toLowerCase()===w){R=K;break}K=K[r]}C[H]=R}}}function n(r,w,A,C,H,G){H=0;for(var N=C.length;H<N;H++){var K=C[H];if(K){K=K[r];for(var R=false;K;){if(K.sizcache===A){R=C[K.sizset];break}if(K.nodeType===1){if(!G){K.sizcache=A;K.sizset=H}if(typeof w!=="string"){if(K===w){R=true;break}}else if(B.filter(w,[K]).length>0){R=K;break}}K=K[r]}C[H]=R}}}var o=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
p=0,x=Object.prototype.toString,y=false,D=true;[0,0].sort(function(){D=false;return 0});var B=function(r,w,A,C){A=A||[];var H=w=w||z;if(w.nodeType!==1&&w.nodeType!==9)return[];if(!r||typeof r!=="string")return A;for(var G=[],N,K,R,wa,pa=true,sa=P(w),qa=r;(o.exec(""),N=o.exec(qa))!==null;){qa=N[3];G.push(N[1]);if(N[2]){wa=N[3];break}}if(G.length>1&&I.exec(r))if(G.length===2&&E.relative[G[0]])K=Fa(G[0]+G[1],w);else for(K=E.relative[G[0]]?[w]:B(G.shift(),w);G.length;){r=G.shift();if(E.relative[r])r+=
G.shift();K=Fa(r,K)}else{if(!C&&G.length>1&&w.nodeType===9&&!sa&&E.match.ID.test(G[0])&&!E.match.ID.test(G[G.length-1])){N=B.find(G.shift(),w,sa);w=N.expr?B.filter(N.expr,N.set)[0]:N.set[0]}if(w){N=C?{expr:G.pop(),set:T(C)}:B.find(G.pop(),G.length===1&&(G[0]==="~"||G[0]==="+")&&w.parentNode?w.parentNode:w,sa);K=N.expr?B.filter(N.expr,N.set):N.set;if(G.length>0)R=T(K);else pa=false;for(;G.length;){var fa=G.pop();N=fa;if(E.relative[fa])N=G.pop();else fa="";if(N==null)N=w;E.relative[fa](R,N,sa)}}else R=
[]}R||(R=K);R||B.error(fa||r);if(x.call(R)==="[object Array]")if(pa)if(w&&w.nodeType===1)for(r=0;R[r]!=null;r++){if(R[r]&&(R[r]===true||R[r].nodeType===1&&ga(w,R[r])))A.push(K[r])}else for(r=0;R[r]!=null;r++)R[r]&&R[r].nodeType===1&&A.push(K[r]);else A.push.apply(A,R);else T(R,A);if(wa){B(wa,H,A,C);B.uniqueSort(A)}return A};B.uniqueSort=function(r){if(X){y=D;r.sort(X);if(y)for(var w=1;w<r.length;w++)r[w]===r[w-1]&&r.splice(w--,1)}return r};B.matches=function(r,w){return B(r,null,null,w)};B.find=function(r,
w,A){var C,H;if(!r)return[];for(var G=0,N=E.order.length;G<N;G++){var K=E.order[G];if(H=E.leftMatch[K].exec(r)){var R=H[1];H.splice(1,1);if(R.substr(R.length-1)!=="\\"){H[1]=(H[1]||"").replace(/\\/g,"");C=E.find[K](H,w,A);if(C!=null){r=r.replace(E.match[K],"");break}}}}C||(C=w.getElementsByTagName("*"));return{set:C,expr:r}};B.filter=function(r,w,A,C){for(var H=r,G=[],N=w,K,R,wa=w&&w[0]&&P(w[0]);r&&w.length;){for(var pa in E.filter)if((K=E.leftMatch[pa].exec(r))!=null&&K[2]){var sa=E.filter[pa],qa,
fa;fa=K[1];R=false;K.splice(1,1);if(fa.substr(fa.length-1)!=="\\"){if(N===G)G=[];if(E.preFilter[pa])if(K=E.preFilter[pa](K,N,A,G,C,wa)){if(K===true)continue}else R=qa=true;if(K)for(var za=0;(fa=N[za])!=null;za++)if(fa){qa=sa(fa,K,za,N);var Ua=C^!!qa;if(A&&qa!=null)if(Ua)R=true;else N[za]=false;else if(Ua){G.push(fa);R=true}}if(qa!==b){A||(N=G);r=r.replace(E.match[pa],"");if(!R)return[];break}}}if(r===H)if(R==null)B.error(r);else break;H=r}return N};B.error=function(r){throw"Syntax error, unrecognized expression: "+
r;};var E=B.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},
leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(r){return r.getAttribute("href")}},relative:{"+":function(r,w){var A=typeof w==="string",C=A&&!/\W/.test(w);A=A&&!C;if(C)w=w.toLowerCase();C=0;for(var H=r.length,G;C<H;C++)if(G=r[C]){for(;(G=G.previousSibling)&&G.nodeType!==1;);r[C]=A||G&&G.nodeName.toLowerCase()===w?G||false:G===w}A&&B.filter(w,r,true)},">":function(r,w){var A=typeof w==="string";if(A&&!/\W/.test(w)){w=w.toLowerCase();for(var C=0,H=r.length;C<H;C++){var G=
r[C];if(G){A=G.parentNode;r[C]=A.nodeName.toLowerCase()===w?A:false}}}else{C=0;for(H=r.length;C<H;C++)if(G=r[C])r[C]=A?G.parentNode:G.parentNode===w;A&&B.filter(w,r,true)}},"":function(r,w,A){var C=p++,H=n;if(typeof w==="string"&&!/\W/.test(w)){var G=w=w.toLowerCase();H=k}H("parentNode",w,C,r,G,A)},"~":function(r,w,A){var C=p++,H=n;if(typeof w==="string"&&!/\W/.test(w)){var G=w=w.toLowerCase();H=k}H("previousSibling",w,C,r,G,A)}},find:{ID:function(r,w,A){if(typeof w.getElementById!=="undefined"&&
!A)return(r=w.getElementById(r[1]))?[r]:[]},NAME:function(r,w){if(typeof w.getElementsByName!=="undefined"){var A=[];w=w.getElementsByName(r[1]);for(var C=0,H=w.length;C<H;C++)w[C].getAttribute("name")===r[1]&&A.push(w[C]);return A.length===0?null:A}},TAG:function(r,w){return w.getElementsByTagName(r[1])}},preFilter:{CLASS:function(r,w,A,C,H,G){r=" "+r[1].replace(/\\/g,"")+" ";if(G)return r;G=0;for(var N;(N=w[G])!=null;G++)if(N)if(H^(N.className&&(" "+N.className+" ").replace(/[\t\n]/g," ").indexOf(r)>=
0))A||C.push(N);else if(A)w[G]=false;return false},ID:function(r){return r[1].replace(/\\/g,"")},TAG:function(r){return r[1].toLowerCase()},CHILD:function(r){if(r[1]==="nth"){var w=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(r[2]==="even"&&"2n"||r[2]==="odd"&&"2n+1"||!/\D/.test(r[2])&&"0n+"+r[2]||r[2]);r[2]=w[1]+(w[2]||1)-0;r[3]=w[3]-0}r[0]=p++;return r},ATTR:function(r,w,A,C,H,G){w=r[1].replace(/\\/g,"");if(!G&&E.attrMap[w])r[1]=E.attrMap[w];if(r[2]==="~=")r[4]=" "+r[4]+" ";return r},PSEUDO:function(r,w,A,C,
H){if(r[1]==="not")if((o.exec(r[3])||"").length>1||/^\w/.test(r[3]))r[3]=B(r[3],null,null,w);else{r=B.filter(r[3],w,A,true^H);A||C.push.apply(C,r);return false}else if(E.match.POS.test(r[0])||E.match.CHILD.test(r[0]))return true;return r},POS:function(r){r.unshift(true);return r}},filters:{enabled:function(r){return r.disabled===false&&r.type!=="hidden"},disabled:function(r){return r.disabled===true},checked:function(r){return r.checked===true},selected:function(r){return r.selected===true},parent:function(r){return!!r.firstChild},
empty:function(r){return!r.firstChild},has:function(r,w,A){return!!B(A[3],r).length},header:function(r){return/h\d/i.test(r.nodeName)},text:function(r){return"text"===r.type},radio:function(r){return"radio"===r.type},checkbox:function(r){return"checkbox"===r.type},file:function(r){return"file"===r.type},password:function(r){return"password"===r.type},submit:function(r){return"submit"===r.type},image:function(r){return"image"===r.type},reset:function(r){return"reset"===r.type},button:function(r){return"button"===
r.type||r.nodeName.toLowerCase()==="button"},input:function(r){return/input|select|textarea|button/i.test(r.nodeName)}},setFilters:{first:function(r,w){return w===0},last:function(r,w,A,C){return w===C.length-1},even:function(r,w){return w%2===0},odd:function(r,w){return w%2===1},lt:function(r,w,A){return w<A[3]-0},gt:function(r,w,A){return w>A[3]-0},nth:function(r,w,A){return A[3]-0===w},eq:function(r,w,A){return A[3]-0===w}},filter:{PSEUDO:function(r,w,A,C){var H=w[1],G=E.filters[H];if(G)return G(r,
A,w,C);else if(H==="contains")return(r.textContent||r.innerText||d([r])||"").indexOf(w[3])>=0;else if(H==="not"){w=w[3];A=0;for(C=w.length;A<C;A++)if(w[A]===r)return false;return true}else B.error("Syntax error, unrecognized expression: "+H)},CHILD:function(r,w){var A=w[1],C=r;switch(A){case "only":case "first":for(;C=C.previousSibling;)if(C.nodeType===1)return false;if(A==="first")return true;C=r;case "last":for(;C=C.nextSibling;)if(C.nodeType===1)return false;return true;case "nth":A=w[2];var H=
w[3];if(A===1&&H===0)return true;w=w[0];var G=r.parentNode;if(G&&(G.sizcache!==w||!r.nodeIndex)){var N=0;for(C=G.firstChild;C;C=C.nextSibling)if(C.nodeType===1)C.nodeIndex=++N;G.sizcache=w}r=r.nodeIndex-H;return A===0?r===0:r%A===0&&r/A>=0}},ID:function(r,w){return r.nodeType===1&&r.getAttribute("id")===w},TAG:function(r,w){return w==="*"&&r.nodeType===1||r.nodeName.toLowerCase()===w},CLASS:function(r,w){return(" "+(r.className||r.getAttribute("class"))+" ").indexOf(w)>-1},ATTR:function(r,w){var A=
w[1];r=E.attrHandle[A]?E.attrHandle[A](r):r[A]!=null?r[A]:r.getAttribute(A);A=r+"";var C=w[2];w=w[4];return r==null?C==="!=":C==="="?A===w:C==="*="?A.indexOf(w)>=0:C==="~="?(" "+A+" ").indexOf(w)>=0:!w?A&&r!==false:C==="!="?A!==w:C==="^="?A.indexOf(w)===0:C==="$="?A.substr(A.length-w.length)===w:C==="|="?A===w||A.substr(0,w.length+1)===w+"-":false},POS:function(r,w,A,C){var H=E.setFilters[w[2]];if(H)return H(r,A,w,C)}}},I=E.match.POS;for(var O in E.match){E.match[O]=RegExp(E.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source);
E.leftMatch[O]=RegExp(/(^(?:.|\r|\n)*?)/.source+E.match[O].source.replace(/\\(\d+)/g,function(r,w){return"\\"+(w-0+1)}))}var T=function(r,w){r=Array.prototype.slice.call(r,0);if(w){w.push.apply(w,r);return w}return r};try{Array.prototype.slice.call(z.documentElement.childNodes,0)}catch(Y){T=function(r,w){w=w||[];if(x.call(r)==="[object Array]")Array.prototype.push.apply(w,r);else if(typeof r.length==="number")for(var A=0,C=r.length;A<C;A++)w.push(r[A]);else for(A=0;r[A];A++)w.push(r[A]);return w}}var X;
if(z.documentElement.compareDocumentPosition)X=function(r,w){if(!r.compareDocumentPosition||!w.compareDocumentPosition){if(r==w)y=true;return r.compareDocumentPosition?-1:1}r=r.compareDocumentPosition(w)&4?-1:r===w?0:1;if(r===0)y=true;return r};else if("sourceIndex"in z.documentElement)X=function(r,w){if(!r.sourceIndex||!w.sourceIndex){if(r==w)y=true;return r.sourceIndex?-1:1}r=r.sourceIndex-w.sourceIndex;if(r===0)y=true;return r};else if(z.createRange)X=function(r,w){if(!r.ownerDocument||!w.ownerDocument){if(r==
w)y=true;return r.ownerDocument?-1:1}var A=r.ownerDocument.createRange(),C=w.ownerDocument.createRange();A.setStart(r,0);A.setEnd(r,0);C.setStart(w,0);C.setEnd(w,0);r=A.compareBoundaryPoints(Range.START_TO_END,C);if(r===0)y=true;return r};(function(){var r=z.createElement("div"),w="script"+(new Date).getTime();r.innerHTML="<a name='"+w+"'/>";var A=z.documentElement;A.insertBefore(r,A.firstChild);if(z.getElementById(w)){E.find.ID=function(C,H,G){if(typeof H.getElementById!=="undefined"&&!G)return(H=
H.getElementById(C[1]))?H.id===C[1]||typeof H.getAttributeNode!=="undefined"&&H.getAttributeNode("id").nodeValue===C[1]?[H]:b:[]};E.filter.ID=function(C,H){var G=typeof C.getAttributeNode!=="undefined"&&C.getAttributeNode("id");return C.nodeType===1&&G&&G.nodeValue===H}}A.removeChild(r);A=r=null})();(function(){var r=z.createElement("div");r.appendChild(z.createComment(""));if(r.getElementsByTagName("*").length>0)E.find.TAG=function(w,A){A=A.getElementsByTagName(w[1]);if(w[1]==="*"){w=[];for(var C=
0;A[C];C++)A[C].nodeType===1&&w.push(A[C]);A=w}return A};r.innerHTML="<a href='#'></a>";if(r.firstChild&&typeof r.firstChild.getAttribute!=="undefined"&&r.firstChild.getAttribute("href")!=="#")E.attrHandle.href=function(w){return w.getAttribute("href",2)};r=null})();z.querySelectorAll&&function(){var r=B,w=z.createElement("div");w.innerHTML="<p class='TEST'></p>";if(!(w.querySelectorAll&&w.querySelectorAll(".TEST").length===0)){B=function(C,H,G,N){H=H||z;if(!N&&H.nodeType===9&&!P(H))try{return T(H.querySelectorAll(C),
G)}catch(K){}return r(C,H,G,N)};for(var A in r)B[A]=r[A];w=null}}();(function(){var r=z.createElement("div");r.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!r.getElementsByClassName||r.getElementsByClassName("e").length===0)){r.lastChild.className="e";if(r.getElementsByClassName("e").length!==1){E.order.splice(1,0,"CLASS");E.find.CLASS=function(w,A,C){if(typeof A.getElementsByClassName!=="undefined"&&!C)return A.getElementsByClassName(w[1])};r=null}}})();var ga=z.compareDocumentPosition?
function(r,w){return!!(r.compareDocumentPosition(w)&16)}:function(r,w){return r!==w&&(r.contains?r.contains(w):true)},P=function(r){return(r=(r?r.ownerDocument||r:0).documentElement)?r.nodeName!=="HTML":false},Fa=function(r,w){var A=[],C="",H;for(w=w.nodeType?[w]:w;H=E.match.PSEUDO.exec(r);){C+=H[0];r=r.replace(E.match.PSEUDO,"")}r=E.relative[r]?r+"*":r;H=0;for(var G=w.length;H<G;H++)B(r,w[H],A);return B.filter(C,A)};i.find=B;i.expr=B.selectors;i.expr[":"]=i.expr.filters;i.unique=B.uniqueSort;i.text=
d;i.isXMLDoc=P;i.contains=ga})();var db=/Until$/,eb=/^(?:parents|prevUntil|prevAll)/,fb=/,/;ja=Array.prototype.slice;var Va=function(d,k,n){if(i.isFunction(k))return i.grep(d,function(p,x){return!!k.call(p,x,p)===n});else if(k.nodeType)return i.grep(d,function(p){return p===k===n});else if(typeof k==="string"){var o=i.grep(d,function(p){return p.nodeType===1});if(M.test(k))return i.filter(k,o,!n);else k=i.filter(k,o)}return i.grep(d,function(p){return i.inArray(p,k)>=0===n})};i.fn.extend({find:function(d){for(var k=
this.pushStack("","find",d),n=0,o=0,p=this.length;o<p;o++){n=k.length;i.find(d,this[o],k);if(o>0)for(var x=n;x<k.length;x++)for(var y=0;y<n;y++)if(k[y]===k[x]){k.splice(x--,1);break}}return k},has:function(d){var k=i(d);return this.filter(function(){for(var n=0,o=k.length;n<o;n++)if(i.contains(this,k[n]))return true})},not:function(d){return this.pushStack(Va(this,d,false),"not",d)},filter:function(d){return this.pushStack(Va(this,d,true),"filter",d)},is:function(d){return!!d&&i.filter(d,this).length>
0},closest:function(d,k){if(i.isArray(d)){var n=[],o=this[0],p,x={},y;if(o&&d.length){p=0;for(var D=d.length;p<D;p++){y=d[p];x[y]||(x[y]=i.expr.match.POS.test(y)?i(y,k||this.context):y)}for(;o&&o.ownerDocument&&o!==k;){for(y in x){p=x[y];if(p.jquery?p.index(o)>-1:i(o).is(p)){n.push({selector:y,elem:o});delete x[y]}}o=o.parentNode}}return n}var B=i.expr.match.POS.test(d)?i(d,k||this.context):null;return this.map(function(E,I){for(;I&&I.ownerDocument&&I!==k;){if(B?B.index(I)>-1:i(I).is(d))return I;
I=I.parentNode}return null})},index:function(d){if(!d||typeof d==="string")return i.inArray(this[0],d?i(d):this.parent().children());return i.inArray(d.jquery?d[0]:d,this)},add:function(d,k){d=typeof d==="string"?i(d,k||this.context):i.makeArray(d);k=i.merge(this.get(),d);return this.pushStack(!d[0]||!d[0].parentNode||d[0].parentNode.nodeType===11||!k[0]||!k[0].parentNode||k[0].parentNode.nodeType===11?k:i.unique(k))},andSelf:function(){return this.add(this.prevObject)}});i.each({parent:function(d){return(d=
d.parentNode)&&d.nodeType!==11?d:null},parents:function(d){return i.dir(d,"parentNode")},parentsUntil:function(d,k,n){return i.dir(d,"parentNode",n)},next:function(d){return i.nth(d,2,"nextSibling")},prev:function(d){return i.nth(d,2,"previousSibling")},nextAll:function(d){return i.dir(d,"nextSibling")},prevAll:function(d){return i.dir(d,"previousSibling")},nextUntil:function(d,k,n){return i.dir(d,"nextSibling",n)},prevUntil:function(d,k,n){return i.dir(d,"previousSibling",n)},siblings:function(d){return i.sibling(d.parentNode.firstChild,
d)},children:function(d){return i.sibling(d.firstChild)},contents:function(d){return i.nodeName(d,"iframe")?d.contentDocument||d.contentWindow.document:i.makeArray(d.childNodes)}},function(d,k){i.fn[d]=function(n,o){var p=i.map(this,k,n);db.test(d)||(o=n);if(o&&typeof o==="string")p=i.filter(o,p);p=this.length>1?i.unique(p):p;if((this.length>1||fb.test(o))&&eb.test(d))p=p.reverse();return this.pushStack(p,d,ja.call(arguments).join(","))}});i.extend({filter:function(d,k,n){if(n)d=":not("+d+")";return i.find.matches(d,
k)},dir:function(d,k,n){var o=[];for(d=d[k];d&&d.nodeType!==9&&(n===b||d.nodeType!==1||!i(d).is(n));){d.nodeType===1&&o.push(d);d=d[k]}return o},nth:function(d,k,n){k=k||1;for(var o=0;d;d=d[n])if(d.nodeType===1&&++o===k)break;return d},sibling:function(d,k){for(var n=[];d;d=d.nextSibling)d.nodeType===1&&d!==k&&n.push(d);return n}});var Wa=/ jQuery\d+="(?:\d+|null)"/g,Aa=/^\s+/,Xa=/(<([\w:]+)[^>]*?)\/>/g,gb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,Ya=/<([\w:]+)/,hb=/<tbody/i,ib=/<|&#?\w+;/,
La=/<script|<object|<embed|<option|<style/i,Ma=/checked\s*(?:[^=]|=\s*.checked.)/i,Za=function(d,k,n){return gb.test(n)?d:k+"></"+n+">"},ha={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};ha.optgroup=ha.option;ha.tbody=
ha.tfoot=ha.colgroup=ha.caption=ha.thead;ha.th=ha.td;if(!i.support.htmlSerialize)ha._default=[1,"div<div>","</div>"];i.fn.extend({text:function(d){if(i.isFunction(d))return this.each(function(k){var n=i(this);n.text(d.call(this,k,n.text()))});if(typeof d!=="object"&&d!==b)return this.empty().append((this[0]&&this[0].ownerDocument||z).createTextNode(d));return i.text(this)},wrapAll:function(d){if(i.isFunction(d))return this.each(function(n){i(this).wrapAll(d.call(this,n))});if(this[0]){var k=i(d,this[0].ownerDocument).eq(0).clone(true);
this[0].parentNode&&k.insertBefore(this[0]);k.map(function(){for(var n=this;n.firstChild&&n.firstChild.nodeType===1;)n=n.firstChild;return n}).append(this)}return this},wrapInner:function(d){if(i.isFunction(d))return this.each(function(k){i(this).wrapInner(d.call(this,k))});return this.each(function(){var k=i(this),n=k.contents();n.length?n.wrapAll(d):k.append(d)})},wrap:function(d){return this.each(function(){i(this).wrapAll(d)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,
"body")||i(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(d){this.nodeType===1&&this.appendChild(d)})},prepend:function(){return this.domManip(arguments,true,function(d){this.nodeType===1&&this.insertBefore(d,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(k){this.parentNode.insertBefore(k,this)});else if(arguments.length){var d=i(arguments[0]);d.push.apply(d,this.toArray());
return this.pushStack(d,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(k){this.parentNode.insertBefore(k,this.nextSibling)});else if(arguments.length){var d=this.pushStack(this,"after",arguments);d.push.apply(d,i(arguments[0]).toArray());return d}},remove:function(d,k){for(var n=0,o;(o=this[n])!=null;n++)if(!d||i.filter(d,[o]).length){if(!k&&o.nodeType===1){i.cleanData(o.getElementsByTagName("*"));i.cleanData([o])}o.parentNode&&
o.parentNode.removeChild(o)}return this},empty:function(){for(var d=0,k;(k=this[d])!=null;d++)for(k.nodeType===1&&i.cleanData(k.getElementsByTagName("*"));k.firstChild;)k.removeChild(k.firstChild);return this},clone:function(d){var k=this.map(function(){if(!i.support.noCloneEvent&&!i.isXMLDoc(this)){var n=this.outerHTML,o=this.ownerDocument;if(!n){n=o.createElement("div");n.appendChild(this.cloneNode(true));n=n.innerHTML}return i.clean([n.replace(Wa,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(Aa,
"")],o)[0]}else return this.cloneNode(true)});if(d===true){s(this,k);s(this.find("*"),k.find("*"))}return k},html:function(d){if(d===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Wa,""):null;else if(typeof d==="string"&&!La.test(d)&&(i.support.leadingWhitespace||!Aa.test(d))&&!ha[(Ya.exec(d)||["",""])[1].toLowerCase()]){d=d.replace(Xa,Za);try{for(var k=0,n=this.length;k<n;k++)if(this[k].nodeType===1){i.cleanData(this[k].getElementsByTagName("*"));this[k].innerHTML=d}}catch(o){this.empty().append(d)}}else i.isFunction(d)?
this.each(function(p){var x=i(this),y=x.html();x.empty().append(function(){return d.call(this,p,y)})}):this.empty().append(d);return this},replaceWith:function(d){if(this[0]&&this[0].parentNode){if(i.isFunction(d))return this.each(function(k){var n=i(this),o=n.html();n.replaceWith(d.call(this,k,o))});if(typeof d!=="string")d=i(d).detach();return this.each(function(){var k=this.nextSibling,n=this.parentNode;i(this).remove();k?i(k).before(d):i(n).append(d)})}else return this.pushStack(i(i.isFunction(d)?
d():d),"replaceWith",d)},detach:function(d){return this.remove(d,true)},domManip:function(d,k,n){var o,p,x=d[0],y=[],D;if(!i.support.checkClone&&arguments.length===3&&typeof x==="string"&&Ma.test(x))return this.each(function(){i(this).domManip(d,k,n,true)});if(i.isFunction(x))return this.each(function(E){var I=i(this);d[0]=x.call(this,E,k?I.html():b);I.domManip(d,k,n)});if(this[0]){o=x&&x.parentNode;o=i.support.parentNode&&o&&o.nodeType===11&&o.childNodes.length===this.length?{fragment:o}:t(d,this,
y);D=o.fragment;if(p=D.childNodes.length===1?D=D.firstChild:D.firstChild){k=k&&i.nodeName(p,"tr");p=0;for(var B=this.length;p<B;p++)n.call(k?i.nodeName(this[p],"table")?this[p].getElementsByTagName("tbody")[0]||this[p].appendChild(this[p].ownerDocument.createElement("tbody")):this[p]:this[p],p>0||o.cacheable||this.length>1?D.cloneNode(true):D)}y.length&&i.each(y,g)}return this}});i.fragments={};i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},
function(d,k){i.fn[d]=function(n){var o=[];n=i(n);var p=this.length===1&&this[0].parentNode;if(p&&p.nodeType===11&&p.childNodes.length===1&&n.length===1){n[k](this[0]);return this}else{p=0;for(var x=n.length;p<x;p++){var y=(p>0?this.clone(true):this).get();i.fn[k].apply(i(n[p]),y);o=o.concat(y)}return this.pushStack(o,d,n.selector)}}});i.extend({clean:function(d,k,n,o){k=k||z;if(typeof k.createElement==="undefined")k=k.ownerDocument||k[0]&&k[0].ownerDocument||z;for(var p=[],x=0,y;(y=d[x])!=null;x++){if(typeof y===
"number")y+="";if(y){if(typeof y==="string"&&!ib.test(y))y=k.createTextNode(y);else if(typeof y==="string"){y=y.replace(Xa,Za);var D=(Ya.exec(y)||["",""])[1].toLowerCase(),B=ha[D]||ha._default,E=B[0],I=k.createElement("div");for(I.innerHTML=B[1]+y+B[2];E--;)I=I.lastChild;if(!i.support.tbody){E=hb.test(y);D=D==="table"&&!E?I.firstChild&&I.firstChild.childNodes:B[1]==="<table>"&&!E?I.childNodes:[];for(B=D.length-1;B>=0;--B)i.nodeName(D[B],"tbody")&&!D[B].childNodes.length&&D[B].parentNode.removeChild(D[B])}!i.support.leadingWhitespace&&
Aa.test(y)&&I.insertBefore(k.createTextNode(Aa.exec(y)[0]),I.firstChild);y=I.childNodes}if(y.nodeType)p.push(y);else p=i.merge(p,y)}}if(n)for(x=0;p[x];x++)if(o&&i.nodeName(p[x],"script")&&(!p[x].type||p[x].type.toLowerCase()==="text/javascript"))o.push(p[x].parentNode?p[x].parentNode.removeChild(p[x]):p[x]);else{p[x].nodeType===1&&p.splice.apply(p,[x+1,0].concat(i.makeArray(p[x].getElementsByTagName("script"))));n.appendChild(p[x])}return p},cleanData:function(d){for(var k,n,o=i.cache,p=i.event.special,
x=i.support.deleteExpando,y=0,D;(D=d[y])!=null;y++)if(n=D[i.expando]){k=o[n];if(k.events)for(var B in k.events)p[B]?i.event.remove(D,B):Pa(D,B,k.handle);if(x)delete D[i.expando];else D.removeAttribute&&D.removeAttribute(i.expando);delete o[n]}}});var jb=/z-?index|font-?weight|opacity|zoom|line-?height/i,$a=/alpha\([^)]*\)/,ab=/opacity=([^)]*)/,Ga=/float/i,Ha=/-([a-z])/ig,kb=/([A-Z])/g,lb=/^-?\d+(?:px)?$/i,mb=/^-?\d/,nb={position:"absolute",visibility:"hidden",display:"block"},ob=["Left","Right"],
pb=["Top","Bottom"],qb=z.defaultView&&z.defaultView.getComputedStyle,bb=i.support.cssFloat?"cssFloat":"styleFloat",Ia=function(d,k){return k.toUpperCase()};i.fn.css=function(d,k){return f(this,d,k,true,function(n,o,p){if(p===b)return i.curCSS(n,o);if(typeof p==="number"&&!jb.test(o))p+="px";i.style(n,o,p)})};i.extend({style:function(d,k,n){if(!d||d.nodeType===3||d.nodeType===8)return b;if((k==="width"||k==="height")&&parseFloat(n)<0)n=b;var o=d.style||d,p=n!==b;if(!i.support.opacity&&k==="opacity"){if(p){o.zoom=
1;k=parseInt(n,10)+""==="NaN"?"":"alpha(opacity="+n*100+")";d=o.filter||i.curCSS(d,"filter")||"";o.filter=$a.test(d)?d.replace($a,k):k}return o.filter&&o.filter.indexOf("opacity=")>=0?parseFloat(ab.exec(o.filter)[1])/100+"":""}if(Ga.test(k))k=bb;k=k.replace(Ha,Ia);if(p)o[k]=n;return o[k]},css:function(d,k,n,o){if(k==="width"||k==="height"){var p,x=k==="width"?ob:pb;n=function(){p=k==="width"?d.offsetWidth:d.offsetHeight;o!=="border"&&i.each(x,function(){o||(p-=parseFloat(i.curCSS(d,"padding"+this,
true))||0);if(o==="margin")p+=parseFloat(i.curCSS(d,"margin"+this,true))||0;else p-=parseFloat(i.curCSS(d,"border"+this+"Width",true))||0})};d.offsetWidth!==0?n():i.swap(d,nb,n);return Math.max(0,Math.round(p))}return i.curCSS(d,k,n)},curCSS:function(d,k,n){var o,p=d.style;if(!i.support.opacity&&k==="opacity"&&d.currentStyle){o=ab.test(d.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return o===""?"1":o}if(Ga.test(k))k=bb;if(!n&&p&&p[k])o=p[k];else if(qb){if(Ga.test(k))k="float";k=k.replace(kb,
"-$1").toLowerCase();p=d.ownerDocument.defaultView;if(!p)return null;if(d=p.getComputedStyle(d,null))o=d.getPropertyValue(k);if(k==="opacity"&&o==="")o="1"}else if(d.currentStyle){n=k.replace(Ha,Ia);o=d.currentStyle[k]||d.currentStyle[n];if(!lb.test(o)&&mb.test(o)){k=p.left;var x=d.runtimeStyle.left;d.runtimeStyle.left=d.currentStyle.left;p.left=n==="fontSize"?"1em":o||0;o=p.pixelLeft+"px";p.left=k;d.runtimeStyle.left=x}}return o},swap:function(d,k,n){var o={};for(var p in k){o[p]=d.style[p];d.style[p]=
k[p]}n.call(d);for(p in k)d.style[p]=o[p]}});if(i.expr&&i.expr.filters){i.expr.filters.hidden=function(d){var k=d.offsetWidth,n=d.offsetHeight,o=d.nodeName.toLowerCase()==="tr";return k===0&&n===0&&!o?true:k>0&&n>0&&!o?false:i.curCSS(d,"display")==="none"};i.expr.filters.visible=function(d){return!i.expr.filters.hidden(d)}}var rb=h(),sb=/<script(.|\s)*?\/script>/gi,tb=/select|textarea/i,ub=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,ta=/=\?(&|$)/,
Ja=/\?/,vb=/(\?|&)_=.*?(&|$)/,wb=/^(\w+:)?\/\/([^\/?#]+)/,xb=/%20/g,yb=i.fn.load;i.fn.extend({load:function(d,k,n){if(typeof d!=="string")return yb.call(this,d);else if(!this.length)return this;var o=d.indexOf(" ");if(o>=0){var p=d.slice(o,d.length);d=d.slice(0,o)}o="GET";if(k)if(i.isFunction(k)){n=k;k=null}else if(typeof k==="object"){k=i.param(k,i.ajaxSettings.traditional);o="POST"}var x=this;i.ajax({url:d,type:o,dataType:"html",data:k,complete:function(y,D){if(D==="success"||D==="notmodified")x.html(p?
i("<div />").append(y.responseText.replace(sb,"")).find(p):y.responseText);n&&x.each(n,[y.responseText,D,y])}});return this},serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?i.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||tb.test(this.nodeName)||ub.test(this.type))}).map(function(d,k){d=i(this).val();return d==null?null:i.isArray(d)?i.map(d,function(n){return{name:k.name,
value:n}}):{name:k.name,value:d}}).get()}});i.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(d,k){i.fn[k]=function(n){return this.bind(k,n)}});i.extend({get:function(d,k,n,o){if(i.isFunction(k)){o=o||n;n=k;k=null}return i.ajax({type:"GET",url:d,data:k,success:n,dataType:o})},getScript:function(d,k){return i.get(d,null,k,"script")},getJSON:function(d,k,n){return i.get(d,k,n,"json")},post:function(d,k,n,o){if(i.isFunction(k)){o=o||n;n=k;k={}}return i.ajax({type:"POST",
url:d,data:k,success:n,dataType:o})},ajaxSetup:function(d){i.extend(i.ajaxSettings,d)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:a.XMLHttpRequest&&(a.location.protocol!=="file:"||!a.ActiveXObject)?function(){return new a.XMLHttpRequest}:function(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(d){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",
json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(d){function k(){p.success&&p.success.call(B,D,y,P);p.global&&o("ajaxSuccess",[P,p])}function n(){p.complete&&p.complete.call(B,P,y);p.global&&o("ajaxComplete",[P,p]);p.global&&!--i.active&&i.event.trigger("ajaxStop")}function o(H,G){(p.context?i(p.context):i.event).trigger(H,G)}var p=i.extend(true,{},i.ajaxSettings,d),x,y,D,B=d&&d.context||p,E=p.type.toUpperCase();if(p.data&&p.processData&&
typeof p.data!=="string")p.data=i.param(p.data,p.traditional);if(p.dataType==="jsonp"){if(E==="GET")ta.test(p.url)||(p.url+=(Ja.test(p.url)?"&":"?")+(p.jsonp||"callback")+"=?");else if(!p.data||!ta.test(p.data))p.data=(p.data?p.data+"&":"")+(p.jsonp||"callback")+"=?";p.dataType="json"}if(p.dataType==="json"&&(p.data&&ta.test(p.data)||ta.test(p.url))){x=p.jsonpCallback||"jsonp"+rb++;if(p.data)p.data=(p.data+"").replace(ta,"="+x+"$1");p.url=p.url.replace(ta,"="+x+"$1");p.dataType="script";a[x]=a[x]||
function(H){D=H;k();n();a[x]=b;try{delete a[x]}catch(G){}T&&T.removeChild(Y)}}if(p.dataType==="script"&&p.cache===null)p.cache=false;if(p.cache===false&&E==="GET"){var I=h(),O=p.url.replace(vb,"$1_="+I+"$2");p.url=O+(O===p.url?(Ja.test(p.url)?"&":"?")+"_="+I:"")}if(p.data&&E==="GET")p.url+=(Ja.test(p.url)?"&":"?")+p.data;p.global&&!i.active++&&i.event.trigger("ajaxStart");I=(I=wb.exec(p.url))&&(I[1]&&I[1]!==location.protocol||I[2]!==location.host);if(p.dataType==="script"&&E==="GET"&&I){var T=z.getElementsByTagName("head")[0]||
z.documentElement,Y=z.createElement("script");Y.src=p.url;if(p.scriptCharset)Y.charset=p.scriptCharset;if(!x){var X=false;Y.onload=Y.onreadystatechange=function(){if(!X&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){X=true;k();n();Y.onload=Y.onreadystatechange=null;T&&Y.parentNode&&T.removeChild(Y)}}}T.insertBefore(Y,T.firstChild);return b}var ga=false,P=p.xhr();if(P){p.username?P.open(E,p.url,p.async,p.username,p.password):P.open(E,p.url,p.async);try{if(p.data||d&&
d.contentType)P.setRequestHeader("Content-Type",p.contentType);if(p.ifModified){i.lastModified[p.url]&&P.setRequestHeader("If-Modified-Since",i.lastModified[p.url]);i.etag[p.url]&&P.setRequestHeader("If-None-Match",i.etag[p.url])}I||P.setRequestHeader("X-Requested-With","XMLHttpRequest");P.setRequestHeader("Accept",p.dataType&&p.accepts[p.dataType]?p.accepts[p.dataType]+", */*":p.accepts._default)}catch(Fa){}if(p.beforeSend&&p.beforeSend.call(B,P,p)===false){p.global&&!--i.active&&i.event.trigger("ajaxStop");
P.abort();return false}p.global&&o("ajaxSend",[P,p]);var r=P.onreadystatechange=function(H){if(!P||P.readyState===0||H==="abort"){ga||n();ga=true;if(P)P.onreadystatechange=i.noop}else if(!ga&&P&&(P.readyState===4||H==="timeout")){ga=true;P.onreadystatechange=i.noop;y=H==="timeout"?"timeout":!i.httpSuccess(P)?"error":p.ifModified&&i.httpNotModified(P,p.url)?"notmodified":"success";var G;if(y==="success")try{D=i.httpData(P,p.dataType,p)}catch(N){y="parsererror";G=N}if(y==="success"||y==="notmodified")x||
k();else i.handleError(p,P,y,G);n();H==="timeout"&&P.abort();if(p.async)P=null}};try{var w=P.abort;P.abort=function(){P&&w.call(P);r("abort")}}catch(A){}p.async&&p.timeout>0&&setTimeout(function(){P&&!ga&&r("timeout")},p.timeout);try{P.send(E==="POST"||E==="PUT"||E==="DELETE"?p.data:null)}catch(C){i.handleError(p,P,null,C);n()}p.async||r();return P}},handleError:function(d,k,n,o){if(d.error)d.error.call(d.context||d,k,n,o);if(d.global)(d.context?i(d.context):i.event).trigger("ajaxError",[k,d,o])},
active:0,httpSuccess:function(d){try{return!d.status&&location.protocol==="file:"||d.status>=200&&d.status<300||d.status===304||d.status===1223||d.status===0}catch(k){}return false},httpNotModified:function(d,k){var n=d.getResponseHeader("Last-Modified"),o=d.getResponseHeader("Etag");if(n)i.lastModified[k]=n;if(o)i.etag[k]=o;return d.status===304||d.status===0},httpData:function(d,k,n){var o=d.getResponseHeader("content-type")||"",p=k==="xml"||!k&&o.indexOf("xml")>=0;d=p?d.responseXML:d.responseText;
p&&d.documentElement.nodeName==="parsererror"&&i.error("parsererror");if(n&&n.dataFilter)d=n.dataFilter(d,k);if(typeof d==="string")if(k==="json"||!k&&o.indexOf("json")>=0)d=i.parseJSON(d);else if(k==="script"||!k&&o.indexOf("javascript")>=0)i.globalEval(d);return d},param:function(d,k){function n(y,D){if(i.isArray(D))i.each(D,function(B,E){k||/\[\]$/.test(y)?o(y,E):n(y+"["+(typeof E==="object"||i.isArray(E)?B:"")+"]",E)});else!k&&D!=null&&typeof D==="object"?i.each(D,function(B,E){n(y+"["+B+"]",
E)}):o(y,D)}function o(y,D){D=i.isFunction(D)?D():D;p[p.length]=encodeURIComponent(y)+"="+encodeURIComponent(D)}var p=[];if(k===b)k=i.ajaxSettings.traditional;if(i.isArray(d)||d.jquery)i.each(d,function(){o(this.name,this.value)});else for(var x in d)n(x,d[x]);return p.join("&").replace(xb,"+")}});var Ka={},zb=/toggle|show|hide/,Ab=/^([+-]=)?([\d+-.]+)(.*)$/,Ba,Na=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],
["opacity"]];i.fn.extend({show:function(d,k){if(d||d===0)return this.animate(v("show",3),d,k);else{d=0;for(k=this.length;d<k;d++){var n=i.data(this[d],"olddisplay");this[d].style.display=n||"";if(i.css(this[d],"display")==="none"){n=this[d].nodeName;var o;if(Ka[n])o=Ka[n];else{var p=i("<"+n+" />").appendTo("body");o=p.css("display");if(o==="none")o="block";p.remove();Ka[n]=o}i.data(this[d],"olddisplay",o)}}d=0;for(k=this.length;d<k;d++)this[d].style.display=i.data(this[d],"olddisplay")||"";return this}},
hide:function(d,k){if(d||d===0)return this.animate(v("hide",3),d,k);else{d=0;for(k=this.length;d<k;d++){var n=i.data(this[d],"olddisplay");!n&&n!=="none"&&i.data(this[d],"olddisplay",i.css(this[d],"display"))}d=0;for(k=this.length;d<k;d++)this[d].style.display="none";return this}},_toggle:i.fn.toggle,toggle:function(d,k){var n=typeof d==="boolean";if(i.isFunction(d)&&i.isFunction(k))this._toggle.apply(this,arguments);else d==null||n?this.each(function(){var o=n?d:i(this).is(":hidden");i(this)[o?"show":
"hide"]()}):this.animate(v("toggle",3),d,k);return this},fadeTo:function(d,k,n){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:k},d,n)},animate:function(d,k,n,o){var p=i.speed(k,n,o);if(i.isEmptyObject(d))return this.each(p.complete);return this[p.queue===false?"each":"queue"](function(){var x=i.extend({},p),y,D=this.nodeType===1&&i(this).is(":hidden"),B=this;for(y in d){var E=y.replace(Ha,Ia);if(y!==E){d[E]=d[y];delete d[y];y=E}if(d[y]==="hide"&&D||d[y]==="show"&&!D)return x.complete.call(this);
if((y==="height"||y==="width")&&this.style){x.display=i.css(this,"display");x.overflow=this.style.overflow}if(i.isArray(d[y])){(x.specialEasing=x.specialEasing||{})[y]=d[y][1];d[y]=d[y][0]}}if(x.overflow!=null)this.style.overflow="hidden";x.curAnim=i.extend({},d);i.each(d,function(I,O){var T=new i.fx(B,x,I);if(zb.test(O))T[O==="toggle"?D?"show":"hide":O](d);else{var Y=Ab.exec(O),X=T.cur(true)||0;if(Y){O=parseFloat(Y[2]);var ga=Y[3]||"px";if(ga!=="px"){B.style[I]=(O||1)+ga;X=(O||1)/T.cur(true)*X;B.style[I]=
X+ga}if(Y[1])O=(Y[1]==="-="?-1:1)*O+X;T.custom(X,O,ga)}else T.custom(X,O,"")}});return true})},stop:function(d,k){var n=i.timers;d&&this.queue([]);this.each(function(){for(var o=n.length-1;o>=0;o--)if(n[o].elem===this){k&&n[o](true);n.splice(o,1)}});k||this.dequeue();return this}});i.each({slideDown:v("show",1),slideUp:v("hide",1),slideToggle:v("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(d,k){i.fn[d]=function(n,o){return this.animate(k,n,o)}});i.extend({speed:function(d,
k,n){var o=d&&typeof d==="object"?d:{complete:n||!n&&k||i.isFunction(d)&&d,duration:d,easing:n&&k||k&&!i.isFunction(k)&&k};o.duration=i.fx.off?0:typeof o.duration==="number"?o.duration:i.fx.speeds[o.duration]||i.fx.speeds._default;o.old=o.complete;o.complete=function(){o.queue!==false&&i(this).dequeue();i.isFunction(o.old)&&o.old.call(this)};return o},easing:{linear:function(d,k,n,o){return n+o*d},swing:function(d,k,n,o){return(-Math.cos(d*Math.PI)/2+0.5)*o+n}},timers:[],fx:function(d,k,n){this.options=
k;this.elem=d;this.prop=n;if(!k.orig)k.orig={}}});i.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(i.fx.step[this.prop]||i.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(d){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(d=parseFloat(i.css(this.elem,this.prop,d)))&&d>-10000?d:parseFloat(i.curCSS(this.elem,
this.prop))||0},custom:function(d,k,n){function o(x){return p.step(x)}this.startTime=h();this.start=d;this.end=k;this.unit=n||this.unit||"px";this.now=this.start;this.pos=this.state=0;var p=this;o.elem=this.elem;if(o()&&i.timers.push(o)&&!Ba)Ba=setInterval(i.fx.tick,13)},show:function(){this.options.orig[this.prop]=i.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());i(this.elem).show()},hide:function(){this.options.orig[this.prop]=
i.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(d){var k=h(),n=true;if(d||k>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var o in this.options.curAnim)if(this.options.curAnim[o]!==true)n=false;if(n){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;d=i.data(this.elem,"olddisplay");this.elem.style.display=d?d:this.options.display;if(i.css(this.elem,
"display")==="none")this.elem.style.display="block"}this.options.hide&&i(this.elem).hide();if(this.options.hide||this.options.show)for(var p in this.options.curAnim)i.style(this.elem,p,this.options.orig[p]);this.options.complete.call(this.elem)}return false}else{p=k-this.startTime;this.state=p/this.options.duration;d=this.options.easing||(i.easing.swing?"swing":"linear");this.pos=i.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||d](this.state,p,0,1,this.options.duration);
this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};i.extend(i.fx,{tick:function(){for(var d=i.timers,k=0;k<d.length;k++)d[k]()||d.splice(k--,1);d.length||i.fx.stop()},stop:function(){clearInterval(Ba);Ba=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(d){i.style(d.elem,"opacity",d.now)},_default:function(d){if(d.elem.style&&d.elem.style[d.prop]!=null)d.elem.style[d.prop]=(d.prop==="width"||d.prop==="height"?Math.max(0,d.now):d.now)+d.unit;else d.elem[d.prop]=
d.now}}});if(i.expr&&i.expr.filters)i.expr.filters.animated=function(d){return i.grep(i.timers,function(k){return d===k.elem}).length};i.fn.offset="getBoundingClientRect"in z.documentElement?function(d){var k=this[0];if(d)return this.each(function(p){i.offset.setOffset(this,d,p)});if(!k||!k.ownerDocument)return null;if(k===k.ownerDocument.body)return i.offset.bodyOffset(k);var n=k.getBoundingClientRect(),o=k.ownerDocument;k=o.body;o=o.documentElement;return{top:n.top+(self.pageYOffset||i.support.boxModel&&
o.scrollTop||k.scrollTop)-(o.clientTop||k.clientTop||0),left:n.left+(self.pageXOffset||i.support.boxModel&&o.scrollLeft||k.scrollLeft)-(o.clientLeft||k.clientLeft||0)}}:function(d){var k=this[0];if(d)return this.each(function(I){i.offset.setOffset(this,d,I)});if(!k||!k.ownerDocument)return null;if(k===k.ownerDocument.body)return i.offset.bodyOffset(k);i.offset.initialize();var n=k.offsetParent,o=k,p=k.ownerDocument,x,y=p.documentElement,D=p.body;o=(p=p.defaultView)?p.getComputedStyle(k,null):k.currentStyle;
for(var B=k.offsetTop,E=k.offsetLeft;(k=k.parentNode)&&k!==D&&k!==y;){if(i.offset.supportsFixedPosition&&o.position==="fixed")break;x=p?p.getComputedStyle(k,null):k.currentStyle;B-=k.scrollTop;E-=k.scrollLeft;if(k===n){B+=k.offsetTop;E+=k.offsetLeft;if(i.offset.doesNotAddBorder&&!(i.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(k.nodeName))){B+=parseFloat(x.borderTopWidth)||0;E+=parseFloat(x.borderLeftWidth)||0}o=n;n=k.offsetParent}if(i.offset.subtractsBorderForOverflowNotVisible&&x.overflow!==
"visible"){B+=parseFloat(x.borderTopWidth)||0;E+=parseFloat(x.borderLeftWidth)||0}o=x}if(o.position==="relative"||o.position==="static"){B+=D.offsetTop;E+=D.offsetLeft}if(i.offset.supportsFixedPosition&&o.position==="fixed"){B+=Math.max(y.scrollTop,D.scrollTop);E+=Math.max(y.scrollLeft,D.scrollLeft)}return{top:B,left:E}};i.offset={initialize:function(){var d=z.body,k=z.createElement("div"),n,o,p,x=parseFloat(i.curCSS(d,"marginTop",true))||0;i.extend(k.style,{position:"absolute",top:0,left:0,margin:0,
border:0,width:"1px",height:"1px",visibility:"hidden"});k.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";d.insertBefore(k,d.firstChild);n=k.firstChild;o=n.firstChild;p=n.nextSibling.firstChild.firstChild;this.doesNotAddBorder=o.offsetTop!==5;this.doesAddBorderForTableAndCells=
p.offsetTop===5;o.style.position="fixed";o.style.top="20px";this.supportsFixedPosition=o.offsetTop===20||o.offsetTop===15;o.style.position=o.style.top="";n.style.overflow="hidden";n.style.position="relative";this.subtractsBorderForOverflowNotVisible=o.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=d.offsetTop!==x;d.removeChild(k);i.offset.initialize=i.noop},bodyOffset:function(d){var k=d.offsetTop,n=d.offsetLeft;i.offset.initialize();if(i.offset.doesNotIncludeMarginInBodyOffset){k+=parseFloat(i.curCSS(d,
"marginTop",true))||0;n+=parseFloat(i.curCSS(d,"marginLeft",true))||0}return{top:k,left:n}},setOffset:function(d,k,n){if(/static/.test(i.curCSS(d,"position")))d.style.position="relative";var o=i(d),p=o.offset(),x=parseInt(i.curCSS(d,"top",true),10)||0,y=parseInt(i.curCSS(d,"left",true),10)||0;if(i.isFunction(k))k=k.call(d,n,p);n={top:k.top-p.top+x,left:k.left-p.left+y};"using"in k?k.using.call(d,n):o.css(n)}};i.fn.extend({position:function(){if(!this[0])return null;var d=this[0],k=this.offsetParent(),
n=this.offset(),o=/^body|html$/i.test(k[0].nodeName)?{top:0,left:0}:k.offset();n.top-=parseFloat(i.curCSS(d,"marginTop",true))||0;n.left-=parseFloat(i.curCSS(d,"marginLeft",true))||0;o.top+=parseFloat(i.curCSS(k[0],"borderTopWidth",true))||0;o.left+=parseFloat(i.curCSS(k[0],"borderLeftWidth",true))||0;return{top:n.top-o.top,left:n.left-o.left}},offsetParent:function(){return this.map(function(){for(var d=this.offsetParent||z.body;d&&!/^body|html$/i.test(d.nodeName)&&i.css(d,"position")==="static";)d=
d.offsetParent;return d})}});i.each(["Left","Top"],function(d,k){var n="scroll"+k;i.fn[n]=function(o){var p=this[0],x;if(!p)return null;return o!==b?this.each(function(){if(x=u(this))x.scrollTo(!d?o:i(x).scrollLeft(),d?o:i(x).scrollTop());else this[n]=o}):(x=u(p))?"pageXOffset"in x?x[d?"pageYOffset":"pageXOffset"]:i.support.boxModel&&x.document.documentElement[n]||x.document.body[n]:p[n]}});i.each(["Height","Width"],function(d,k){var n=k.toLowerCase();i.fn["inner"+k]=function(){return this[0]?i.css(this[0],
n,false,"padding"):null};i.fn["outer"+k]=function(o){return this[0]?i.css(this[0],n,false,o?"margin":"border"):null};i.fn[n]=function(o){var p=this[0];if(!p)return o==null?null:this;if(i.isFunction(o))return this.each(function(x){var y=i(this);y[n](o.call(this,x,y[n]()))});return"scrollTo"in p&&p.document?p.document.compatMode==="CSS1Compat"&&p.document.documentElement["client"+k]||p.document.body["client"+k]:p.nodeType===9?Math.max(p.documentElement["client"+k],p.body["scroll"+k],p.documentElement["scroll"+
k],p.body["offset"+k],p.documentElement["offset"+k]):o===b?i.css(p,n):this.css(n,typeof o==="string"?o:o+"px")}});a.jQuery=a.$=i})(window);
(function(a){a.toJSON=function(g){if(typeof JSON=="object"&&JSON.stringify)return JSON.stringify(g);var f=typeof g;if(g===null)return"null";if(f!="undefined"){if(f=="number"||f=="boolean")return g+"";if(f=="string")return a.quoteString(g);if(f=="object"){if(typeof g.toJSON=="function")return a.toJSON(g.toJSON());if(g.constructor===Date){var h=g.getUTCMonth()+1;if(h<10)h="0"+h;var l=g.getUTCDate();if(l<10)l="0"+l;f=g.getUTCFullYear();var c=g.getUTCHours();if(c<10)c="0"+c;var j=g.getUTCMinutes();if(j<
10)j="0"+j;var m=g.getUTCSeconds();if(m<10)m="0"+m;g=g.getUTCMilliseconds();if(g<100)g="0"+g;if(g<10)g="0"+g;return'"'+f+"-"+h+"-"+l+"T"+c+":"+j+":"+m+"."+g+'Z"'}if(g.constructor===Array){h=[];for(l=0;l<g.length;l++)h.push(a.toJSON(g[l])||"null");return"["+h.join(",")+"]"}h=[];for(l in g){f=typeof l;if(f=="number")f='"'+l+'"';else if(f=="string")f=a.quoteString(l);else continue;if(typeof g[l]!="function"){c=a.toJSON(g[l]);h.push(f+":"+c)}}return"{"+h.join(", ")+"}"}}};a.evalJSON=function(g){if(typeof JSON==
"object"&&JSON.parse)return JSON.parse(g);return eval("("+g+")")};a.secureEvalJSON=function(g){if(typeof JSON=="object"&&JSON.parse)return JSON.parse(g);var f=g;f=f.replace(/\\["\\\/bfnrtu]/g,"@");f=f.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]");f=f.replace(/(?:^|:|,)(?:\s*\[)+/g,"");if(/^[\],:{}\s]*$/.test(f))return eval("("+g+")");else throw new SyntaxError("Error parsing JSON, source is not valid.");};a.quoteString=function(g){if(g.match(b))return'"'+g.replace(b,
function(f){var h=e[f];if(typeof h==="string")return h;h=f.charCodeAt();return"\\u00"+Math.floor(h/16).toString(16)+(h%16).toString(16)})+'"';return'"'+g+'"'};var b=/["\\\x00-\x1f\x7f-\x9f]/g,e={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"}})(jQuery);
jQuery.cookie=function(a,b,e){if(arguments.length>1&&String(b)!=="[object Object]"){e=jQuery.extend({},e);if(b===null||b===undefined)e.expires=-1;if(typeof e.expires==="number"){var g=e.expires,f=e.expires=new Date;f.setDate(f.getDate()+g)}b=String(b);return document.cookie=[encodeURIComponent(a),"=",e.raw?b:encodeURIComponent(b),e.expires?"; expires="+e.expires.toUTCString():"",e.path?"; path="+e.path:"",e.domain?"; domain="+e.domain:"",e.secure?"; secure":""].join("")}e=b||{};f=e.raw?function(h){return h}:
decodeURIComponent;return(g=RegExp("(?:^|; )"+encodeURIComponent(a)+"=([^;]*)").exec(document.cookie))?f(g[1]):null};
(function(a,b){function e(f,h){var l=f.nodeName.toLowerCase();if("area"===l){l=f.parentNode;var c=l.name,j;return!f.href||!c||l.nodeName.toLowerCase()!=="map"?false:(j=a("img[usemap=#"+c+"]")[0],!!j&&g(j))}return(/input|select|textarea|button|object/.test(l)?!f.disabled:"a"==l?f.href||h:h)&&g(f)}function g(f){return!a(f).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}a.ui=a.ui||{};if(!a.ui.version){a.extend(a.ui,{version:"1.8.24",
keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});a.fn.extend({propAttr:a.fn.prop||a.fn.attr,_focus:a.fn.focus,focus:function(f,h){return typeof f=="number"?this.each(function(){var l=
this;setTimeout(function(){a(l).focus();h&&h.call(l)},f)}):this._focus.apply(this,arguments)},scrollParent:function(){var f;return a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?f=this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.curCSS(this,"position",1))&&/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0):f=this.parents().filter(function(){return/(auto|scroll)/.test(a.curCSS(this,
"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0),/fixed/.test(this.css("position"))||!f.length?a(document):f},zIndex:function(f){if(f!==b)return this.css("zIndex",f);if(this.length){f=a(this[0]);for(var h;f.length&&f[0]!==document;){h=f.css("position");if(h==="absolute"||h==="relative"||h==="fixed"){h=parseInt(f.css("zIndex"),10);if(!isNaN(h)&&h!==0)return h}f=f.parent()}}return 0},disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":
"mousedown")+".ui-disableSelection",function(f){f.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});a("<a>").outerWidth(1).jquery||a.each(["Width","Height"],function(f,h){function l(q,s,t,v){return a.each(c,function(){s-=parseFloat(a.curCSS(q,"padding"+this,true))||0;t&&(s-=parseFloat(a.curCSS(q,"border"+this+"Width",true))||0);v&&(s-=parseFloat(a.curCSS(q,"margin"+this,true))||0)}),s}var c=h==="Width"?["Left","Right"]:["Top","Bottom"],j=h.toLowerCase(),
m={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+h]=function(q){return q===b?m["inner"+h].call(this):this.each(function(){a(this).css(j,l(this,q)+"px")})};a.fn["outer"+h]=function(q,s){return typeof q!="number"?m["outer"+h].call(this,q):this.each(function(){a(this).css(j,l(this,q,true,s)+"px")})}});a.extend(a.expr[":"],{data:a.expr.createPseudo?a.expr.createPseudo(function(f){return function(h){return!!a.data(h,f)}}):
function(f,h,l){return!!a.data(f,l[3])},focusable:function(f){return e(f,!isNaN(a.attr(f,"tabindex")))},tabbable:function(f){var h=a.attr(f,"tabindex"),l=isNaN(h);return(l||h>=0)&&e(f,!l)}});a(function(){var f=document.body,h=f.appendChild(h=document.createElement("div"));a.extend(h.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});a.support.minHeight=h.offsetHeight===100;a.support.selectstart="onselectstart"in h;f.removeChild(h).style.display="none"});a.curCSS||(a.curCSS=a.css);a.extend(a.ui,
{plugin:{add:function(f,h,l){f=a.ui[f].prototype;for(var c in l){f.plugins[c]=f.plugins[c]||[];f.plugins[c].push([h,l[c]])}},call:function(f,h,l){if((h=f.plugins[h])&&f.element[0].parentNode)for(var c=0;c<h.length;c++)f.options[h[c][0]]&&h[c][1].apply(f.element,l)}},contains:function(f,h){return document.compareDocumentPosition?f.compareDocumentPosition(h)&16:f!==h&&f.contains(h)},hasScroll:function(f,h){if(a(f).css("overflow")==="hidden")return false;var l=h&&h==="left"?"scrollLeft":"scrollTop",
c=false;return f[l]>0?true:(f[l]=1,c=f[l]>0,f[l]=0,c)},isOverAxis:function(f,h,l){return f>h&&f<h+l},isOver:function(f,h,l,c,j,m){return a.ui.isOverAxis(f,l,j)&&a.ui.isOverAxis(h,c,m)}})}})(jQuery);
(function(a,b){if(a.cleanData){var e=a.cleanData;a.cleanData=function(f){for(var h=0,l;(l=f[h])!=null;h++)try{a(l).triggerHandler("remove")}catch(c){}e(f)}}else{var g=a.fn.remove;a.fn.remove=function(f,h){return this.each(function(){return h||(!f||a.filter(f,[this]).length)&&a("*",this).add([this]).each(function(){try{a(this).triggerHandler("remove")}catch(l){}}),g.call(a(this),f,h)})}}a.widget=function(f,h,l){var c=f.split(".")[0],j;f=f.split(".")[1];j=c+"-"+f;l||(l=h,h=a.Widget);a.expr[":"][j]=
function(m){return!!a.data(m,f)};a[c]=a[c]||{};a[c][f]=function(m,q){arguments.length&&this._createWidget(m,q)};h=new h;h.options=a.extend(true,{},h.options);a[c][f].prototype=a.extend(true,h,{namespace:c,widgetName:f,widgetEventPrefix:a[c][f].prototype.widgetEventPrefix||f,widgetBaseClass:j},l);a.widget.bridge(f,a[c][f])};a.widget.bridge=function(f,h){a.fn[f]=function(l){var c=typeof l=="string",j=Array.prototype.slice.call(arguments,1),m=this;return l=!c&&j.length?a.extend.apply(null,[true,l].concat(j)):
l,c&&l.charAt(0)==="_"?m:(c?this.each(function(){var q=a.data(this,f),s=q&&a.isFunction(q[l])?q[l].apply(q,j):q;if(s!==q&&s!==b)return m=s,false}):this.each(function(){var q=a.data(this,f);q?q.option(l||{})._init():a.data(this,f,new h(l,this))}),m)}};a.Widget=function(f,h){arguments.length&&this._createWidget(f,h)};a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(f,h){a.data(h,this.widgetName,this);this.element=a(h);this.options=a.extend(true,
{},this.options,this._getCreateOptions(),f);var l=this;this.element.bind("remove."+this.widgetName,function(){l.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return a.metadata&&a.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+
"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(f,h){var l=f;if(arguments.length===0)return a.extend({},this.options);if(typeof f=="string"){if(h===b)return this.options[f];l={};l[f]=h}return this._setOptions(l),this},_setOptions:function(f){var h=this;return a.each(f,function(l,c){h._setOption(l,c)}),this},_setOption:function(f,h){return this.options[f]=h,f==="disabled"&&this.widget()[h?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",
h),this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(f,h,l){var c,j=this.options[f];l=l||{};h=a.Event(h);h.type=(f===this.widgetEventPrefix?f:this.widgetEventPrefix+f).toLowerCase();h.target=this.element[0];if(f=h.originalEvent)for(c in f)c in h||(h[c]=f[c]);return this.element.trigger(h,l),!(a.isFunction(j)&&j.call(this.element[0],h,l)===false||h.isDefaultPrevented())}}})(jQuery);
(function(a){var b=false;a(document).mouseup(function(){b=false});a.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind("mousedown."+this.widgetName,function(g){return e._mouseDown(g)}).bind("click."+this.widgetName,function(g){if(true===a.data(g.target,e.widgetName+".preventClickEvent"))return a.removeData(g.target,e.widgetName+".preventClickEvent"),g.stopImmediatePropagation(),false});this.started=false},_mouseDestroy:function(){this.element.unbind("."+
this.widgetName);this._mouseMoveDelegate&&a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!b){this._mouseStarted&&this._mouseUp(e);this._mouseDownEvent=e;var g=this,f=e.which==1,h=typeof this.options.cancel=="string"&&e.target.nodeName?a(e.target).closest(this.options.cancel).length:false;if(!f||h||!this._mouseCapture(e))return true;(this.mouseDelayMet=!this.options.delay)||(this._mouseDelayTimer=
setTimeout(function(){g.mouseDelayMet=true},this.options.delay));if(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)){this._mouseStarted=this._mouseStart(e)!==false;if(!this._mouseStarted)return e.preventDefault(),true}return true===a.data(e.target,this.widgetName+".preventClickEvent")&&a.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(l){return g._mouseMove(l)},this._mouseUpDelegate=function(l){return g._mouseUp(l)},a(document).bind("mousemove."+this.widgetName,
this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),b=true,true}},_mouseMove:function(e){return!a.browser.msie||document.documentMode>=9||e.button?this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,e)!==false,this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted):this._mouseUp(e)},_mouseUp:function(e){return a(document).unbind("mousemove."+
this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=false,e.target==this._mouseDownEvent.target&&a.data(e.target,this.widgetName+".preventClickEvent",true),this._mouseStop(e)),false},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},
_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);
(function(a){a.widget("ui.draggable",a.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){this.options.helper=="original"&&
!/^(?:r|a|f)/.test(this.element.css("position"))&&(this.element[0].style.position="relative");this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable"))return this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy(),this},_mouseCapture:function(b){var e=this.options;
return this.helper||e.disabled||a(b.target).is(".ui-resizable-handle")?false:(this.handle=this._getHandle(b),this.handle?(e.iframeFix&&a(e.iframeFix===true?"iframe":e.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(a(this).offset()).appendTo("body")}),true):false)},_mouseStart:function(b){var e=this.options;return this.helper=this._createHelper(b),
this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),a.ui.ddmanager&&(a.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),
this.originalPosition=this.position=this._generatePosition(b),this.originalPageX=b.pageX,this.originalPageY=b.pageY,e.cursorAt&&this._adjustOffsetFromHelper(e.cursorAt),e.containment&&this._setContainment(),this._trigger("start",b)===false?(this._clear(),false):(this._cacheHelperProportions(),a.ui.ddmanager&&!e.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b),this._mouseDrag(b,true),a.ui.ddmanager&&a.ui.ddmanager.dragStart(this,b),true)},_mouseDrag:function(b,e){this.position=this._generatePosition(b);
this.positionAbs=this._convertPositionTo("absolute");if(!e){var g=this._uiHash();if(this._trigger("drag",b,g)===false)return this._mouseUp({}),false;this.position=g.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";return a.ui.ddmanager&&a.ui.ddmanager.drag(this,b),false},_mouseStop:function(b){var e=false;a.ui.ddmanager&&!this.options.dropBehaviour&&
(e=a.ui.ddmanager.drop(this,b));this.dropped&&(e=this.dropped,this.dropped=false);for(var g=this.element[0],f=false;g&&(g=g.parentNode);)g==document&&(f=true);if(!f&&this.options.helper==="original")return false;if(this.options.revert=="invalid"&&!e||this.options.revert=="valid"&&e||this.options.revert===true||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,e)){var h=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){h._trigger("stop",
b)!==false&&h._clear()})}else this._trigger("stop",b)!==false&&this._clear();return false},_mouseUp:function(b){return a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),a.ui.ddmanager&&a.ui.ddmanager.dragStop(this,b),a.ui.mouse.prototype._mouseUp.call(this,b)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(b){var e=!this.options.handle||!a(this.options.handle,this.element).length?true:false;
return a(this.options.handle,this.element).find("*").andSelf().each(function(){this==b.target&&(e=true)}),e},_createHelper:function(b){var e=this.options;b=a.isFunction(e.helper)?a(e.helper.apply(this.element[0],[b])):e.helper=="clone"?this.element.clone().removeAttr("id"):this.element;return b.parents("body").length||b.appendTo(e.appendTo=="parent"?this.element[0].parentNode:e.appendTo),b[0]!=this.element[0]&&!/(fixed|absolute)/.test(b.css("position"))&&b.css("position","absolute"),b},_adjustOffsetFromHelper:function(b){typeof b==
"string"&&(b=b.split(" "));a.isArray(b)&&(b={left:+b[0],top:+b[1]||0});"left"in b&&(this.offset.click.left=b.left+this.margins.left);"right"in b&&(this.offset.click.left=this.helperProportions.width-b.right+this.margins.left);"top"in b&&(this.offset.click.top=b.top+this.margins.top);"bottom"in b&&(this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();this.cssPosition==
"absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(b.left+=this.scrollParent.scrollLeft(),b.top+=this.scrollParent.scrollTop());if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)b={top:0,left:0};return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==
"relative"){var b=this.element.position();return{top:b.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions=
{width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var b=this.options;b.containment=="parent"&&(b.containment=this.helper[0].parentNode);if(b.containment=="document"||b.containment=="window")this.containment=[b.containment=="document"?0:a(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,b.containment=="document"?0:a(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,(b.containment=="document"?0:a(window).scrollLeft())+
a(b.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(b.containment=="document"?0:a(window).scrollTop())+(a(b.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(b.containment)&&b.containment.constructor!=Array){b=a(b.containment);var e=b[0];if(e){b.offset();var g=a(e).css("overflow")!="hidden";this.containment=[(parseInt(a(e).css("borderLeftWidth"),
10)||0)+(parseInt(a(e).css("paddingLeft"),10)||0),(parseInt(a(e).css("borderTopWidth"),10)||0)+(parseInt(a(e).css("paddingTop"),10)||0),(g?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(a(e).css("borderLeftWidth"),10)||0)-(parseInt(a(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(g?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(a(e).css("borderTopWidth"),10)||0)-(parseInt(a(e).css("paddingBottom"),10)||0)-this.helperProportions.height-
this.margins.top-this.margins.bottom];this.relative_container=b}}else b.containment.constructor==Array&&(this.containment=b.containment)},_convertPositionTo:function(b,e){e||(e=this.position);var g=b=="absolute"?1:-1,f=this.cssPosition=="absolute"&&(this.scrollParent[0]==document||!a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,h=/(html|body)/i.test(f[0].tagName);return{top:e.top+this.offset.relative.top*g+this.offset.parent.top*g-(a.browser.safari&&
a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():h?0:f.scrollTop())*g),left:e.left+this.offset.relative.left*g+this.offset.parent.left*g-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():h?0:f.scrollLeft())*g)}},_generatePosition:function(b){var e=this.options,g=this.cssPosition=="absolute"&&(this.scrollParent[0]==document||!a.ui.contains(this.scrollParent[0],
this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(g[0].tagName),h=b.pageX,l=b.pageY;if(this.originalPosition){var c;if(this.containment){if(this.relative_container){c=this.relative_container.offset();c=[this.containment[0]+c.left,this.containment[1]+c.top,this.containment[2]+c.left,this.containment[3]+c.top]}else c=this.containment;b.pageX-this.offset.click.left<c[0]&&(h=c[0]+this.offset.click.left);b.pageY-this.offset.click.top<c[1]&&(l=c[1]+this.offset.click.top);
b.pageX-this.offset.click.left>c[2]&&(h=c[2]+this.offset.click.left);b.pageY-this.offset.click.top>c[3]&&(l=c[3]+this.offset.click.top)}if(e.grid){l=e.grid[1]?this.originalPageY+Math.round((l-this.originalPageY)/e.grid[1])*e.grid[1]:this.originalPageY;l=c?l-this.offset.click.top<c[1]||l-this.offset.click.top>c[3]?l-this.offset.click.top<c[1]?l+e.grid[1]:l-e.grid[1]:l:l;h=e.grid[0]?this.originalPageX+Math.round((h-this.originalPageX)/e.grid[0])*e.grid[0]:this.originalPageX;h=c?h-this.offset.click.left<
c[0]||h-this.offset.click.left>c[2]?h-this.offset.click.left<c[0]?h+e.grid[0]:h-e.grid[0]:h:h}}return{top:l-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:g.scrollTop()),left:h-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():
f?0:g.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(b,e,g){return g=g||this._uiHash(),a.ui.plugin.call(this,b,[e,g]),b=="drag"&&(this.positionAbs=this._convertPositionTo("absolute")),a.Widget.prototype._trigger.call(this,b,e,g)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,
offset:this.positionAbs}}});a.extend(a.ui.draggable,{version:"1.8.24"});a.ui.plugin.add("draggable","connectToSortable",{start:function(b,e){var g=a(this).data("draggable"),f=g.options,h=a.extend({},e,{item:g.element});g.sortables=[];a(f.connectToSortable).each(function(){var l=a.data(this,"sortable");l&&!l.options.disabled&&(g.sortables.push({instance:l,shouldRevert:l.options.revert}),l.refreshPositions(),l._trigger("activate",b,h))})},stop:function(b,e){var g=a(this).data("draggable"),f=a.extend({},
e,{item:g.element});a.each(g.sortables,function(){this.instance.isOver?(this.instance.isOver=0,g.cancelHelperRemoval=true,this.instance.cancelHelperRemoval=false,this.shouldRevert&&(this.instance.options.revert=true),this.instance._mouseStop(b),this.instance.options.helper=this.instance.options._helper,g.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=false,this.instance._trigger("deactivate",b,f))})},drag:function(b,e){var g=
a(this).data("draggable"),f=this;a.each(g.sortables,function(){this.instance.positionAbs=g.positionAbs;this.instance.helperProportions=g.helperProportions;this.instance.offset.click=g.offset.click;this.instance._intersectsWith(this.instance.containerCache)?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=a(f).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",true),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=
function(){return e.helper[0]},b.target=this.instance.currentItem[0],this.instance._mouseCapture(b,true),this.instance._mouseStart(b,true,true),this.instance.offset.click.top=g.offset.click.top,this.instance.offset.click.left=g.offset.click.left,this.instance.offset.parent.left-=g.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=g.offset.parent.top-this.instance.offset.parent.top,g._trigger("toSortable",b),g.dropped=this.instance.element,g.currentItem=g.element,
this.instance.fromOutside=g),this.instance.currentItem&&this.instance._mouseDrag(b)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=true,this.instance.options.revert=false,this.instance._trigger("out",b,this.instance._uiHash(this.instance)),this.instance._mouseStop(b,true),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),g._trigger("fromSortable",b),g.dropped=
false)})}});a.ui.plugin.add("draggable","cursor",{start:function(){var b=a("body"),e=a(this).data("draggable").options;b.css("cursor")&&(e._cursor=b.css("cursor"));b.css("cursor",e.cursor)},stop:function(){var b=a(this).data("draggable").options;b._cursor&&a("body").css("cursor",b._cursor)}});a.ui.plugin.add("draggable","opacity",{start:function(b,e){var g=a(e.helper),f=a(this).data("draggable").options;g.css("opacity")&&(f._opacity=g.css("opacity"));g.css("opacity",f.opacity)},stop:function(b,e){var g=
a(this).data("draggable").options;g._opacity&&a(e.helper).css("opacity",g._opacity)}});a.ui.plugin.add("draggable","scroll",{start:function(){var b=a(this).data("draggable");b.scrollParent[0]!=document&&b.scrollParent[0].tagName!="HTML"&&(b.overflowOffset=b.scrollParent.offset())},drag:function(b){var e=a(this).data("draggable"),g=e.options,f=false;if(e.scrollParent[0]!=document&&e.scrollParent[0].tagName!="HTML"){if(!g.axis||g.axis!="x")e.overflowOffset.top+e.scrollParent[0].offsetHeight-b.pageY<
g.scrollSensitivity?e.scrollParent[0].scrollTop=f=e.scrollParent[0].scrollTop+g.scrollSpeed:b.pageY-e.overflowOffset.top<g.scrollSensitivity&&(e.scrollParent[0].scrollTop=f=e.scrollParent[0].scrollTop-g.scrollSpeed);if(!g.axis||g.axis!="y")e.overflowOffset.left+e.scrollParent[0].offsetWidth-b.pageX<g.scrollSensitivity?e.scrollParent[0].scrollLeft=f=e.scrollParent[0].scrollLeft+g.scrollSpeed:b.pageX-e.overflowOffset.left<g.scrollSensitivity&&(e.scrollParent[0].scrollLeft=f=e.scrollParent[0].scrollLeft-
g.scrollSpeed)}else{if(!g.axis||g.axis!="x")b.pageY-a(document).scrollTop()<g.scrollSensitivity?f=a(document).scrollTop(a(document).scrollTop()-g.scrollSpeed):a(window).height()-(b.pageY-a(document).scrollTop())<g.scrollSensitivity&&(f=a(document).scrollTop(a(document).scrollTop()+g.scrollSpeed));if(!g.axis||g.axis!="y")b.pageX-a(document).scrollLeft()<g.scrollSensitivity?f=a(document).scrollLeft(a(document).scrollLeft()-g.scrollSpeed):a(window).width()-(b.pageX-a(document).scrollLeft())<g.scrollSensitivity&&
(f=a(document).scrollLeft(a(document).scrollLeft()+g.scrollSpeed))}f!==false&&a.ui.ddmanager&&!g.dropBehaviour&&a.ui.ddmanager.prepareOffsets(e,b)}});a.ui.plugin.add("draggable","snap",{start:function(){var b=a(this).data("draggable"),e=b.options;b.snapElements=[];a(e.snap.constructor!=String?e.snap.items||":data(draggable)":e.snap).each(function(){var g=a(this),f=g.offset();this!=b.element[0]&&b.snapElements.push({item:this,width:g.outerWidth(),height:g.outerHeight(),top:f.top,left:f.left})})},drag:function(b,
e){for(var g=a(this).data("draggable"),f=g.options,h=f.snapTolerance,l=e.offset.left,c=l+g.helperProportions.width,j=e.offset.top,m=j+g.helperProportions.height,q=g.snapElements.length-1;q>=0;q--){var s=g.snapElements[q].left,t=s+g.snapElements[q].width,v=g.snapElements[q].top,u=v+g.snapElements[q].height;if(s-h<l&&l<t+h&&v-h<j&&j<u+h||s-h<l&&l<t+h&&v-h<m&&m<u+h||s-h<c&&c<t+h&&v-h<j&&j<u+h||s-h<c&&c<t+h&&v-h<m&&m<u+h){if(f.snapMode!="inner"){var i=Math.abs(v-m)<=h,F=Math.abs(u-j)<=h,J=Math.abs(s-
c)<=h,z=Math.abs(t-l)<=h;i&&(e.position.top=g._convertPositionTo("relative",{top:v-g.helperProportions.height,left:0}).top-g.margins.top);F&&(e.position.top=g._convertPositionTo("relative",{top:u,left:0}).top-g.margins.top);J&&(e.position.left=g._convertPositionTo("relative",{top:0,left:s-g.helperProportions.width}).left-g.margins.left);z&&(e.position.left=g._convertPositionTo("relative",{top:0,left:t}).left-g.margins.left)}var L=i||F||J||z;if(f.snapMode!="outer"){i=Math.abs(v-j)<=h;F=Math.abs(u-
m)<=h;J=Math.abs(s-l)<=h;z=Math.abs(t-c)<=h;i&&(e.position.top=g._convertPositionTo("relative",{top:v,left:0}).top-g.margins.top);F&&(e.position.top=g._convertPositionTo("relative",{top:u-g.helperProportions.height,left:0}).top-g.margins.top);J&&(e.position.left=g._convertPositionTo("relative",{top:0,left:s}).left-g.margins.left);z&&(e.position.left=g._convertPositionTo("relative",{top:0,left:t-g.helperProportions.width}).left-g.margins.left)}!g.snapElements[q].snapping&&(i||F||J||z||L)&&g.options.snap.snap&&
g.options.snap.snap.call(g.element,b,a.extend(g._uiHash(),{snapItem:g.snapElements[q].item}));g.snapElements[q].snapping=i||F||J||z||L}else{g.snapElements[q].snapping&&g.options.snap.release&&g.options.snap.release.call(g.element,b,a.extend(g._uiHash(),{snapItem:g.snapElements[q].item}));g.snapElements[q].snapping=false}}}});a.ui.plugin.add("draggable","stack",{start:function(){var b=a(this).data("draggable").options;b=a.makeArray(a(b.stack)).sort(function(g,f){return(parseInt(a(g).css("zIndex"),
10)||0)-(parseInt(a(f).css("zIndex"),10)||0)});if(b.length){var e=parseInt(b[0].style.zIndex)||0;a(b).each(function(g){this.style.zIndex=e+g});this[0].style.zIndex=e+b.length}}});a.ui.plugin.add("draggable","zIndex",{start:function(b,e){var g=a(e.helper),f=a(this).data("draggable").options;g.css("zIndex")&&(f._zIndex=g.css("zIndex"));g.css("zIndex",f.zIndex)},stop:function(b,e){var g=a(this).data("draggable").options;g._zIndex&&a(e.helper).css("zIndex",g._zIndex)}})})(jQuery);
(function(a){a.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"},_create:function(){var b=this.options,e=b.accept;this.isover=0;this.isout=1;this.accept=a.isFunction(e)?e:function(g){return g.is(e)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};a.ui.ddmanager.droppables[b.scope]=a.ui.ddmanager.droppables[b.scope]||[];a.ui.ddmanager.droppables[b.scope].push(this);
b.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var b=a.ui.ddmanager.droppables[this.options.scope],e=0;e<b.length;e++)b[e]==this&&b.splice(e,1);return this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable"),this},_setOption:function(b,e){b=="accept"&&(this.accept=a.isFunction(e)?e:function(g){return g.is(e)});a.Widget.prototype._setOption.apply(this,arguments)},_activate:function(b){var e=a.ui.ddmanager.current;this.options.activeClass&&
this.element.addClass(this.options.activeClass);e&&this._trigger("activate",b,this.ui(e))},_deactivate:function(b){var e=a.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);e&&this._trigger("deactivate",b,this.ui(e))},_over:function(b){var e=a.ui.ddmanager.current;!e||(e.currentItem||e.element)[0]==this.element[0]||this.accept.call(this.element[0],e.currentItem||e.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",
b,this.ui(e)))},_out:function(b){var e=a.ui.ddmanager.current;!e||(e.currentItem||e.element)[0]==this.element[0]||this.accept.call(this.element[0],e.currentItem||e.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",b,this.ui(e)))},_drop:function(b,e){var g=e||a.ui.ddmanager.current;if(!g||(g.currentItem||g.element)[0]==this.element[0])return false;var f=false;return this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var h=
a.data(this,"droppable");if(h.options.greedy&&!h.options.disabled&&h.options.scope==g.options.scope&&h.accept.call(h.element[0],g.currentItem||g.element)&&a.ui.intersect(g,a.extend(h,{offset:h.element.offset()}),h.options.tolerance))return f=true,false}),f?false:this.accept.call(this.element[0],g.currentItem||g.element)?(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",b,this.ui(g)),
this.element):false},ui:function(b){return{draggable:b.currentItem||b.element,helper:b.helper,position:b.position,offset:b.positionAbs}}});a.extend(a.ui.droppable,{version:"1.8.24"});a.ui.intersect=function(b,e,g){if(!e.offset)return false;var f=(b.positionAbs||b.position.absolute).left,h=f+b.helperProportions.width,l=(b.positionAbs||b.position.absolute).top,c=l+b.helperProportions.height,j=e.offset.left,m=j+e.proportions.width,q=e.offset.top,s=q+e.proportions.height;switch(g){case "fit":return j<=
f&&h<=m&&q<=l&&c<=s;case "intersect":return j<f+b.helperProportions.width/2&&h-b.helperProportions.width/2<m&&q<l+b.helperProportions.height/2&&c-b.helperProportions.height/2<s;case "pointer":return a.ui.isOver((b.positionAbs||b.position.absolute).top+(b.clickOffset||b.offset.click).top,(b.positionAbs||b.position.absolute).left+(b.clickOffset||b.offset.click).left,q,j,e.proportions.height,e.proportions.width);case "touch":return(l>=q&&l<=s||c>=q&&c<=s||l<q&&c>s)&&(f>=j&&f<=m||h>=j&&h<=m||f<j&&h>m);
default:return false}};a.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(b,e){var g=a.ui.ddmanager.droppables[b.options.scope]||[],f=e?e.type:null,h=(b.currentItem||b.element).find(":data(droppable)").andSelf(),l=0;a:for(;l<g.length;l++)if(!(g[l].options.disabled||b&&!g[l].accept.call(g[l].element[0],b.currentItem||b.element))){for(var c=0;c<h.length;c++)if(h[c]==g[l].element[0]){g[l].proportions.height=0;continue a}g[l].visible=g[l].element.css("display")!="none";if(g[l].visible){f==
"mousedown"&&g[l]._activate.call(g[l],e);g[l].offset=g[l].element.offset();g[l].proportions={width:g[l].element[0].offsetWidth,height:g[l].element[0].offsetHeight}}}},drop:function(b,e){var g=false;return a.each(a.ui.ddmanager.droppables[b.options.scope]||[],function(){if(this.options){!this.options.disabled&&this.visible&&a.ui.intersect(b,this,this.options.tolerance)&&(g=this._drop.call(this,e)||g);!this.options.disabled&&this.visible&&this.accept.call(this.element[0],b.currentItem||b.element)&&
(this.isout=1,this.isover=0,this._deactivate.call(this,e))}}),g},dragStart:function(b,e){b.element.parents(":not(body,html)").bind("scroll.droppable",function(){b.options.refreshPositions||a.ui.ddmanager.prepareOffsets(b,e)})},drag:function(b,e){b.options.refreshPositions&&a.ui.ddmanager.prepareOffsets(b,e);a.each(a.ui.ddmanager.droppables[b.options.scope]||[],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var g=a.ui.intersect(b,this,this.options.tolerance);if(g=!g&&this.isover==
1?"isout":g&&this.isover==0?"isover":null){var f;if(this.options.greedy){var h=this.options.scope,l=this.element.parents(":data(droppable)").filter(function(){return a.data(this,"droppable").options.scope===h});l.length&&(f=a.data(l[0],"droppable"),f.greedyChild=g=="isover"?1:0)}f&&g=="isover"&&(f.isover=0,f.isout=1,f._out.call(f,e));this[g]=1;this[g=="isout"?"isover":"isout"]=0;this[g=="isover"?"_over":"_out"].call(this,e);f&&g=="isout"&&(f.isout=0,f.isover=1,f._over.call(f,e))}}})},dragStop:function(b,
e){b.element.parents(":not(body,html)").unbind("scroll.droppable");b.options.refreshPositions||a.ui.ddmanager.prepareOffsets(b,e)}}})(jQuery);
(function(a){a.widget("ui.resizable",a.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1E3},_create:function(){var g=this,f=this.options;this.element.addClass("ui-resizable");a.extend(this,{_aspectRatio:!!f.aspectRatio,aspectRatio:f.aspectRatio,originalElement:this.element,
_proportionallyResizeElements:[],_helper:f.helper||f.ghost||f.animate?f.helper||"ui-resizable-helper":null});this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(a('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("resizable",this.element.data("resizable")),
this.elementIsWrapper=true,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",
zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize());this.handles=f.handles||(a(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se");if(this.handles.constructor==String){this.handles=="all"&&(this.handles="n,e,s,w,se,sw,ne,nw");var h=this.handles.split(",");
this.handles={};for(var l=0;l<h.length;l++){var c=a.trim(h[l]),j=a('<div class="ui-resizable-handle '+("ui-resizable-"+c)+'"></div>');j.css({zIndex:f.zIndex});"se"==c&&j.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[c]=".ui-resizable-"+c;this.element.append(j)}}this._renderAxis=function(m){m=m||this.element;for(var q in this.handles){this.handles[q].constructor==String&&(this.handles[q]=a(this.handles[q],this.element).show());if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var s=
a(this.handles[q],this.element),t=0;t=/sw|ne|nw|se|n|s/.test(q)?s.outerHeight():s.outerWidth();s=["padding",/ne|nw|n/.test(q)?"Top":/se|sw|s/.test(q)?"Bottom":/^e$/.test(q)?"Right":"Left"].join("");m.css(s,t);this._proportionallyResize()}a(this.handles[q])}};this._renderAxis(this.element);this._handles=a(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!g.resizing){if(this.className)var m=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);g.axis=
m&&m[1]?m[1]:"se"}});f.autoHide&&(this._handles.hide(),a(this.element).addClass("ui-resizable-autohide").hover(function(){if(!f.disabled){a(this).removeClass("ui-resizable-autohide");g._handles.show()}},function(){f.disabled||g.resizing||(a(this).addClass("ui-resizable-autohide"),g._handles.hide())}));this._mouseInit()},destroy:function(){this._mouseDestroy();var g=function(h){a(h).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};
if(this.elementIsWrapper){g(this.element);var f=this.element;f.after(this.originalElement.css({position:f.css("position"),width:f.outerWidth(),height:f.outerHeight(),top:f.css("top"),left:f.css("left")})).remove()}return this.originalElement.css("resize",this.originalResizeStyle),g(this.originalElement),this},_mouseCapture:function(g){var f=false;for(var h in this.handles)a(this.handles[h])[0]==g.target&&(f=true);return!this.options.disabled&&f},_mouseStart:function(g){var f=this.options,h=this.element.position(),
l=this.element;this.resizing=true;this.documentScroll={top:a(document).scrollTop(),left:a(document).scrollLeft()};(l.is(".ui-draggable")||/absolute/.test(l.css("position")))&&l.css({position:"absolute",top:h.top,left:h.left});this._renderProxy();h=b(this.helper.css("left"));var c=b(this.helper.css("top"));f.containment&&(h+=a(f.containment).scrollLeft()||0,c+=a(f.containment).scrollTop()||0);this.offset=this.helper.offset();this.position={left:h,top:c};this.size=this._helper?{width:l.outerWidth(),
height:l.outerHeight()}:{width:l.width(),height:l.height()};this.originalSize=this._helper?{width:l.outerWidth(),height:l.outerHeight()}:{width:l.width(),height:l.height()};this.originalPosition={left:h,top:c};this.sizeDiff={width:l.outerWidth()-l.width(),height:l.outerHeight()-l.height()};this.originalMousePosition={left:g.pageX,top:g.pageY};this.aspectRatio=typeof f.aspectRatio=="number"?f.aspectRatio:this.originalSize.width/this.originalSize.height||1;f=a(".ui-resizable-"+this.axis).css("cursor");
return a("body").css("cursor",f=="auto"?this.axis+"-resize":f),l.addClass("ui-resizable-resizing"),this._propagate("start",g),true},_mouseDrag:function(g){var f=this.helper,h=this.originalMousePosition,l=this._change[this.axis];if(!l)return false;h=l.apply(this,[g,g.pageX-h.left||0,g.pageY-h.top||0]);this._updateVirtualBoundaries(g.shiftKey);if(this._aspectRatio||g.shiftKey)h=this._updateRatio(h,g);return h=this._respectSize(h,g),this._propagate("resize",g),f.css({top:this.position.top+"px",left:this.position.left+
"px",width:this.size.width+"px",height:this.size.height+"px"}),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),this._updateCache(h),this._trigger("resize",g,this.ui()),false},_mouseStop:function(g){this.resizing=false;var f=this.options;if(this._helper){var h=this._proportionallyResizeElements,l=h.length&&/textarea/i.test(h[0].nodeName);h=l&&a.ui.hasScroll(h[0],"left")?0:this.sizeDiff.height;l=l?0:this.sizeDiff.width;l={width:this.helper.width()-l,height:this.helper.height()-
h};h=parseInt(this.element.css("left"),10)+(this.position.left-this.originalPosition.left)||null;var c=parseInt(this.element.css("top"),10)+(this.position.top-this.originalPosition.top)||null;f.animate||this.element.css(a.extend(l,{top:c,left:h}));this.helper.height(this.size.height);this.helper.width(this.size.width);this._helper&&!f.animate&&this._proportionallyResize()}return a("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",g),this._helper&&
this.helper.remove(),false},_updateVirtualBoundaries:function(g){var f=this.options,h,l,c;f={minWidth:e(f.minWidth)?f.minWidth:0,maxWidth:e(f.maxWidth)?f.maxWidth:Infinity,minHeight:e(f.minHeight)?f.minHeight:0,maxHeight:e(f.maxHeight)?f.maxHeight:Infinity};if(this._aspectRatio||g){g=f.minHeight*this.aspectRatio;l=f.minWidth/this.aspectRatio;h=f.maxHeight*this.aspectRatio;c=f.maxWidth/this.aspectRatio;g>f.minWidth&&(f.minWidth=g);l>f.minHeight&&(f.minHeight=l);h<f.maxWidth&&(f.maxWidth=h);c<f.maxHeight&&
(f.maxHeight=c)}this._vBoundaries=f},_updateCache:function(g){this.offset=this.helper.offset();e(g.left)&&(this.position.left=g.left);e(g.top)&&(this.position.top=g.top);e(g.height)&&(this.size.height=g.height);e(g.width)&&(this.size.width=g.width)},_updateRatio:function(g){var f=this.position,h=this.size,l=this.axis;return e(g.height)?g.width=g.height*this.aspectRatio:e(g.width)&&(g.height=g.width/this.aspectRatio),l=="sw"&&(g.left=f.left+(h.width-g.width),g.top=null),l=="nw"&&(g.top=f.top+(h.height-
g.height),g.left=f.left+(h.width-g.width)),g},_respectSize:function(g){var f=this._vBoundaries,h=this.axis,l=e(g.width)&&f.maxWidth&&f.maxWidth<g.width,c=e(g.height)&&f.maxHeight&&f.maxHeight<g.height,j=e(g.width)&&f.minWidth&&f.minWidth>g.width,m=e(g.height)&&f.minHeight&&f.minHeight>g.height;j&&(g.width=f.minWidth);m&&(g.height=f.minHeight);l&&(g.width=f.maxWidth);c&&(g.height=f.maxHeight);var q=this.originalPosition.left+this.originalSize.width,s=this.position.top+this.size.height,t=/sw|nw|w/.test(h);
h=/nw|ne|n/.test(h);j&&t&&(g.left=q-f.minWidth);l&&t&&(g.left=q-f.maxWidth);m&&h&&(g.top=s-f.minHeight);c&&h&&(g.top=s-f.maxHeight);f=!g.width&&!g.height;return f&&!g.left&&g.top?g.top=null:f&&!g.top&&g.left&&(g.left=null),g},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var g=this.helper||this.element,f=0;f<this._proportionallyResizeElements.length;f++){var h=this._proportionallyResizeElements[f];if(!this.borderDif){var l=[h.css("borderTopWidth"),h.css("borderRightWidth"),
h.css("borderBottomWidth"),h.css("borderLeftWidth")],c=[h.css("paddingTop"),h.css("paddingRight"),h.css("paddingBottom"),h.css("paddingLeft")];this.borderDif=a.map(l,function(j,m){var q=parseInt(j,10)||0,s=parseInt(c[m],10)||0;return q+s})}if(!a.browser.msie||!a(g).is(":hidden")&&!a(g).parents(":hidden").length)h.css({height:g.height()-this.borderDif[0]-this.borderDif[2]||0,width:g.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var g=this.options;this.elementOffset=this.element.offset();
if(this._helper){this.helper=this.helper||a('<div style="overflow:hidden;"></div>');var f=a.browser.msie&&a.browser.version<7,h=f?1:0;f=f?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+f,height:this.element.outerHeight()+f,position:"absolute",left:this.elementOffset.left-h+"px",top:this.elementOffset.top-h+"px",zIndex:++g.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(g,f){return{width:this.originalSize.width+
f}},w:function(g,f){return{left:this.originalPosition.left+f,width:this.originalSize.width-f}},n:function(g,f,h){return{top:this.originalPosition.top+h,height:this.originalSize.height-h}},s:function(g,f,h){return{height:this.originalSize.height+h}},se:function(g,f,h){return a.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[g,f,h]))},sw:function(g,f,h){return a.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[g,f,h]))},ne:function(g,f,h){return a.extend(this._change.n.apply(this,
arguments),this._change.e.apply(this,[g,f,h]))},nw:function(g,f,h){return a.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[g,f,h]))}},_propagate:function(g,f){a.ui.plugin.call(this,g,[f,this.ui()]);g!="resize"&&this._trigger(g,f,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});a.extend(a.ui.resizable,
{version:"1.8.24"});a.ui.plugin.add("resizable","alsoResize",{start:function(){var g=a(this).data("resizable").options,f=function(h){a(h).each(function(){var l=a(this);l.data("resizable-alsoresize",{width:parseInt(l.width(),10),height:parseInt(l.height(),10),left:parseInt(l.css("left"),10),top:parseInt(l.css("top"),10)})})};typeof g.alsoResize=="object"&&!g.alsoResize.parentNode?g.alsoResize.length?(g.alsoResize=g.alsoResize[0],f(g.alsoResize)):a.each(g.alsoResize,function(h){f(h)}):f(g.alsoResize)},
resize:function(g,f){var h=a(this).data("resizable"),l=h.options,c=h.originalSize,j=h.originalPosition,m={height:h.size.height-c.height||0,width:h.size.width-c.width||0,top:h.position.top-j.top||0,left:h.position.left-j.left||0},q=function(s,t){a(s).each(function(){var v=a(this),u=a(this).data("resizable-alsoresize"),i={},F=t&&t.length?t:v.parents(f.originalElement[0]).length?["width","height"]:["width","height","top","left"];a.each(F,function(J,z){var L=(u[z]||0)+(m[z]||0);L&&L>=0&&(i[z]=L||null)});
v.css(i)})};typeof l.alsoResize=="object"&&!l.alsoResize.nodeType?a.each(l.alsoResize,function(s,t){q(s,t)}):q(l.alsoResize)},stop:function(){a(this).removeData("resizable-alsoresize")}});a.ui.plugin.add("resizable","animate",{stop:function(g){var f=a(this).data("resizable"),h=f.options,l=f._proportionallyResizeElements,c=l.length&&/textarea/i.test(l[0].nodeName),j=c&&a.ui.hasScroll(l[0],"left")?0:f.sizeDiff.height;c={width:f.size.width-(c?0:f.sizeDiff.width),height:f.size.height-j};j=parseInt(f.element.css("left"),
10)+(f.position.left-f.originalPosition.left)||null;var m=parseInt(f.element.css("top"),10)+(f.position.top-f.originalPosition.top)||null;f.element.animate(a.extend(c,m&&j?{top:m,left:j}:{}),{duration:h.animateDuration,easing:h.animateEasing,step:function(){var q={width:parseInt(f.element.css("width"),10),height:parseInt(f.element.css("height"),10),top:parseInt(f.element.css("top"),10),left:parseInt(f.element.css("left"),10)};l&&l.length&&a(l[0]).css({width:q.width,height:q.height});f._updateCache(q);
f._propagate("resize",g)}})}});a.ui.plugin.add("resizable","containment",{start:function(){var g=a(this).data("resizable"),f=g.element,h=g.options.containment;if(f=h instanceof a?h.get(0):/parent/.test(h)?f.parent().get(0):h){g.containerElement=a(f);if(/document/.test(h)||h==document){g.containerOffset={left:0,top:0};g.containerPosition={left:0,top:0};g.parentData={element:a(document),left:0,top:0,width:a(document).width(),height:a(document).height()||document.body.parentNode.scrollHeight}}else{var l=
a(f),c=[];a(["Top","Right","Left","Bottom"]).each(function(q,s){c[q]=b(l.css("padding"+s))});g.containerOffset=l.offset();g.containerPosition=l.position();g.containerSize={height:l.innerHeight()-c[3],width:l.innerWidth()-c[1]};h=g.containerOffset;var j=g.containerSize.height,m=g.containerSize.width;m=a.ui.hasScroll(f,"left")?f.scrollWidth:m;j=a.ui.hasScroll(f)?f.scrollHeight:j;g.parentData={element:f,left:h.left,top:h.top,width:m,height:j}}}},resize:function(g){var f=a(this).data("resizable"),h=f.options,
l=f.containerOffset,c=f.position;g=f._aspectRatio||g.shiftKey;var j={top:0,left:0},m=f.containerElement;m[0]!=document&&/static/.test(m.css("position"))&&(j=l);c.left<(f._helper?l.left:0)&&(f.size.width+=f._helper?f.position.left-l.left:f.position.left-j.left,g&&(f.size.height=f.size.width/f.aspectRatio),f.position.left=h.helper?l.left:0);c.top<(f._helper?l.top:0)&&(f.size.height+=f._helper?f.position.top-l.top:f.position.top,g&&(f.size.width=f.size.height*f.aspectRatio),f.position.top=f._helper?
l.top:0);f.offset.left=f.parentData.left+f.position.left;f.offset.top=f.parentData.top+f.position.top;h=Math.abs((f._helper?f.offset.left-j.left:f.offset.left-j.left)+f.sizeDiff.width);l=Math.abs((f._helper?f.offset.top-j.top:f.offset.top-l.top)+f.sizeDiff.height);c=f.containerElement.get(0)==f.element.parent().get(0);j=/relative|absolute/.test(f.containerElement.css("position"));c&&j&&(h-=f.parentData.left);h+f.size.width>=f.parentData.width&&(f.size.width=f.parentData.width-h,g&&(f.size.height=
f.size.width/f.aspectRatio));l+f.size.height>=f.parentData.height&&(f.size.height=f.parentData.height-l,g&&(f.size.width=f.size.height*f.aspectRatio))},stop:function(){var g=a(this).data("resizable"),f=g.options,h=g.containerOffset,l=g.containerPosition,c=g.containerElement,j=a(g.helper),m=j.offset(),q=j.outerWidth()-g.sizeDiff.width;j=j.outerHeight()-g.sizeDiff.height;g._helper&&!f.animate&&/relative/.test(c.css("position"))&&a(this).css({left:m.left-l.left-h.left,width:q,height:j});g._helper&&!f.animate&&
/static/.test(c.css("position"))&&a(this).css({left:m.left-l.left-h.left,width:q,height:j})}});a.ui.plugin.add("resizable","ghost",{start:function(){var g=a(this).data("resizable"),f=g.options,h=g.size;g.ghost=g.originalElement.clone();g.ghost.css({opacity:0.25,display:"block",position:"relative",height:h.height,width:h.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof f.ghost=="string"?f.ghost:"");g.ghost.appendTo(g.helper)},resize:function(){var g=a(this).data("resizable");
g.ghost&&g.ghost.css({position:"relative",height:g.size.height,width:g.size.width})},stop:function(){var g=a(this).data("resizable");g.ghost&&g.helper&&g.helper.get(0).removeChild(g.ghost.get(0))}});a.ui.plugin.add("resizable","grid",{resize:function(){var g=a(this).data("resizable"),f=g.options,h=g.size,l=g.originalSize,c=g.originalPosition,j=g.axis;f.grid=typeof f.grid=="number"?[f.grid,f.grid]:f.grid;var m=Math.round((h.width-l.width)/(f.grid[0]||1))*(f.grid[0]||1);f=Math.round((h.height-l.height)/
(f.grid[1]||1))*(f.grid[1]||1);/^(se|s|e)$/.test(j)?(g.size.width=l.width+m,g.size.height=l.height+f):/^(ne)$/.test(j)?(g.size.width=l.width+m,g.size.height=l.height+f,g.position.top=c.top-f):/^(sw)$/.test(j)?(g.size.width=l.width+m,g.size.height=l.height+f,g.position.left=c.left-m):(g.size.width=l.width+m,g.size.height=l.height+f,g.position.top=c.top-f,g.position.left=c.left-m)}});var b=function(g){return parseInt(g,10)||0},e=function(g){return!isNaN(parseInt(g,10))}})(jQuery);
(function(a){a.widget("ui.selectable",a.ui.mouse,{options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch"},_create:function(){var b=this;this.element.addClass("ui-selectable");this.dragged=false;var e;this.refresh=function(){e=a(b.options.filter,b.element[0]);e.addClass("ui-selectee");e.each(function(){var g=a(this),f=g.offset();a.data(this,"selectable-item",{element:this,$element:g,left:f.left,top:f.top,right:f.left+g.outerWidth(),bottom:f.top+g.outerHeight(),startselected:false,
selected:g.hasClass("ui-selected"),selecting:g.hasClass("ui-selecting"),unselecting:g.hasClass("ui-unselecting")})})};this.refresh();this.selectees=e.addClass("ui-selectee");this._mouseInit();this.helper=a("<div class='ui-selectable-helper'></div>")},destroy:function(){return this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable"),this._mouseDestroy(),this},_mouseStart:function(b){var e=
this;this.opos=[b.pageX,b.pageY];if(!this.options.disabled){var g=this.options;this.selectees=a(g.filter,this.element[0]);this._trigger("start",b);a(g.appendTo).append(this.helper);this.helper.css({left:b.clientX,top:b.clientY,width:0,height:0});g.autoRefresh&&this.refresh();this.selectees.filter(".ui-selected").each(function(){var f=a.data(this,"selectable-item");f.startselected=true;!b.metaKey&&!b.ctrlKey&&(f.$element.removeClass("ui-selected"),f.selected=false,f.$element.addClass("ui-unselecting"),
f.unselecting=true,e._trigger("unselecting",b,{unselecting:f.element}))});a(b.target).parents().andSelf().each(function(){var f=a.data(this,"selectable-item");if(f){var h=!b.metaKey&&!b.ctrlKey||!f.$element.hasClass("ui-selected");return f.$element.removeClass(h?"ui-unselecting":"ui-selected").addClass(h?"ui-selecting":"ui-unselecting"),f.unselecting=!h,f.selecting=h,f.selected=h,h?e._trigger("selecting",b,{selecting:f.element}):e._trigger("unselecting",b,{unselecting:f.element}),false}})}},_mouseDrag:function(b){var e=
this;this.dragged=true;if(!this.options.disabled){var g=this.options,f=this.opos[0],h=this.opos[1],l=b.pageX,c=b.pageY;if(f>l){var j=l;l=f;f=j}if(h>c){j=c;c=h;h=j}return this.helper.css({left:f,top:h,width:l-f,height:c-h}),this.selectees.each(function(){var m=a.data(this,"selectable-item");if(!(!m||m.element==e.element[0])){var q=false;g.tolerance=="touch"?q=!(m.left>l||m.right<f||m.top>c||m.bottom<h):g.tolerance=="fit"&&(q=m.left>f&&m.right<l&&m.top>h&&m.bottom<c);q?(m.selected&&(m.$element.removeClass("ui-selected"),
m.selected=false),m.unselecting&&(m.$element.removeClass("ui-unselecting"),m.unselecting=false),m.selecting||(m.$element.addClass("ui-selecting"),m.selecting=true,e._trigger("selecting",b,{selecting:m.element}))):(m.selecting&&((b.metaKey||b.ctrlKey)&&m.startselected?(m.$element.removeClass("ui-selecting"),m.selecting=false,m.$element.addClass("ui-selected"),m.selected=true):(m.$element.removeClass("ui-selecting"),m.selecting=false,m.startselected&&(m.$element.addClass("ui-unselecting"),m.unselecting=
true),e._trigger("unselecting",b,{unselecting:m.element}))),m.selected&&!b.metaKey&&!b.ctrlKey&&!m.startselected&&(m.$element.removeClass("ui-selected"),m.selected=false,m.$element.addClass("ui-unselecting"),m.unselecting=true,e._trigger("unselecting",b,{unselecting:m.element})))}}),false}},_mouseStop:function(b){var e=this;this.dragged=false;return a(".ui-unselecting",this.element[0]).each(function(){var g=a.data(this,"selectable-item");g.$element.removeClass("ui-unselecting");g.unselecting=false;
g.startselected=false;e._trigger("unselected",b,{unselected:g.element})}),a(".ui-selecting",this.element[0]).each(function(){var g=a.data(this,"selectable-item");g.$element.removeClass("ui-selecting").addClass("ui-selected");g.selecting=false;g.selected=true;g.startselected=true;e._trigger("selected",b,{selected:g.element})}),this._trigger("stop",b),this.helper.remove(),false}});a.extend(a.ui.selectable,{version:"1.8.24"})})(jQuery);
(function(a){a.widget("ui.sortable",a.ui.mouse,{widgetEventPrefix:"sort",ready:false,options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1E3},_create:function(){var b=this.options;this.containerCache=
{};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?b.axis==="x"||/left|right/.test(this.items[0].item.css("float"))||/inline|table-cell/.test(this.items[0].item.css("display")):false;this.offset=this.element.offset();this._mouseInit();this.ready=true},destroy:function(){a.Widget.prototype.destroy.call(this);this.element.removeClass("ui-sortable ui-sortable-disabled");this._mouseDestroy();for(var b=this.items.length-1;b>=0;b--)this.items[b].item.removeData(this.widgetName+
"-item");return this},_setOption:function(b,e){b==="disabled"?(this.options[b]=e,this.widget()[e?"addClass":"removeClass"]("ui-sortable-disabled")):a.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(b,e){var g=this;if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(b);var f=null,h=this;a(b.target).parents().each(function(){if(a.data(this,g.widgetName+"-item")==h)return f=a(this),false});a.data(b.target,g.widgetName+
"-item")==h&&(f=a(b.target));if(!f)return false;if(this.options.handle&&!e){var l=false;a(this.options.handle,f).find("*").andSelf().each(function(){this==b.target&&(l=true)});if(!l)return false}return this.currentItem=f,this._removeCurrentsFromItems(),true},_mouseStart:function(b,e,g){e=this.options;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(b);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();
this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");this.originalPosition=this._generatePosition(b);this.originalPageX=b.pageX;this.originalPageY=b.pageY;e.cursorAt&&this._adjustOffsetFromHelper(e.cursorAt);this.domPosition=
{prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();e.containment&&this._setContainment();e.cursor&&(a("body").css("cursor")&&(this._storedCursor=a("body").css("cursor")),a("body").css("cursor",e.cursor));e.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",e.opacity));e.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),
this.helper.css("zIndex",e.zIndex));this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"&&(this.overflowOffset=this.scrollParent.offset());this._trigger("start",b,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!g)for(g=this.containers.length-1;g>=0;g--)this.containers[g]._trigger("activate",b,this._uiHash(this));return a.ui.ddmanager&&(a.ui.ddmanager.current=this),a.ui.ddmanager&&!e.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b),this.dragging=
true,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(b),true},_mouseDrag:function(b){this.position=this._generatePosition(b);this.positionAbs=this._convertPositionTo("absolute");this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs);if(this.options.scroll){var e=this.options,g=false;this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-b.pageY<e.scrollSensitivity?this.scrollParent[0].scrollTop=g=this.scrollParent[0].scrollTop+
e.scrollSpeed:b.pageY-this.overflowOffset.top<e.scrollSensitivity&&(this.scrollParent[0].scrollTop=g=this.scrollParent[0].scrollTop-e.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-b.pageX<e.scrollSensitivity?this.scrollParent[0].scrollLeft=g=this.scrollParent[0].scrollLeft+e.scrollSpeed:b.pageX-this.overflowOffset.left<e.scrollSensitivity&&(this.scrollParent[0].scrollLeft=g=this.scrollParent[0].scrollLeft-e.scrollSpeed)):(b.pageY-a(document).scrollTop()<e.scrollSensitivity?
g=a(document).scrollTop(a(document).scrollTop()-e.scrollSpeed):a(window).height()-(b.pageY-a(document).scrollTop())<e.scrollSensitivity&&(g=a(document).scrollTop(a(document).scrollTop()+e.scrollSpeed)),b.pageX-a(document).scrollLeft()<e.scrollSensitivity?g=a(document).scrollLeft(a(document).scrollLeft()-e.scrollSpeed):a(window).width()-(b.pageX-a(document).scrollLeft())<e.scrollSensitivity&&(g=a(document).scrollLeft(a(document).scrollLeft()+e.scrollSpeed)));g!==false&&a.ui.ddmanager&&!e.dropBehaviour&&
a.ui.ddmanager.prepareOffsets(this,b)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";for(e=this.items.length-1;e>=0;e--){g=this.items[e];var f=g.item[0],h=this._intersectsWithPointer(g);if(h)if(g.instance===this.currentContainer)if(f!=this.currentItem[0]&&this.placeholder[h==1?"next":"prev"]()[0]!=f&&!a.ui.contains(this.placeholder[0],
f)&&(this.options.type=="semi-dynamic"?!a.ui.contains(this.element[0],f):true)){this.direction=h==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(g))this._rearrange(b,g);else break;this._trigger("change",b,this._uiHash());break}}return this._contactContainers(b),a.ui.ddmanager&&a.ui.ddmanager.drag(this,b),this._trigger("sort",b,this._uiHash()),this.lastPositionAbs=this.positionAbs,false},_mouseStop:function(b,e){if(b){a.ui.ddmanager&&!this.options.dropBehaviour&&a.ui.ddmanager.drop(this,
b);if(this.options.revert){var g=this,f=g.placeholder.offset();g.reverting=true;a(this.helper).animate({left:f.left-this.offset.parent.left-g.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:f.top-this.offset.parent.top-g.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){g._clear(b)})}else this._clear(b,e);return false}},cancel:function(){if(this.dragging){this._mouseUp({target:null});
this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var b=this.containers.length-1;b>=0;b--){this.containers[b]._trigger("deactivate",null,this._uiHash(this));this.containers[b].containerCache.over&&(this.containers[b]._trigger("out",null,this._uiHash(this)),this.containers[b].containerCache.over=0)}}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),
this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),a.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null}),this.domPosition.prev?a(this.domPosition.prev).after(this.currentItem):a(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(b){var e=this._getItemsAsjQuery(b&&b.connected),g=[];return b=b||{},a(e).each(function(){var f=(a(b.item||this).attr(b.attribute||"id")||"").match(b.expression||/(.+)[-=_](.+)/);f&&
g.push((b.key||f[1]+"[]")+"="+(b.key&&b.expression?f[1]:f[2]))}),!g.length&&b.key&&g.push(b.key+"="),g.join("&")},toArray:function(b){var e=this._getItemsAsjQuery(b&&b.connected),g=[];return b=b||{},e.each(function(){g.push(a(b.item||this).attr(b.attribute||"id")||"")}),g},_intersectsWith:function(b){var e=this.positionAbs.left,g=e+this.helperProportions.width,f=this.positionAbs.top,h=f+this.helperProportions.height,l=b.left,c=l+b.width,j=b.top,m=j+b.height,q=this.offset.click.top,s=this.offset.click.left;
q=f+q>j&&f+q<m&&e+s>l&&e+s<c;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>b[this.floating?"width":"height"]?q:l<e+this.helperProportions.width/2&&g-this.helperProportions.width/2<c&&j<f+this.helperProportions.height/2&&h-this.helperProportions.height/2<m},_intersectsWithPointer:function(b){var e=this.options.axis==="x"||a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,
b.top,b.height);b=this.options.axis==="y"||a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,b.left,b.width);e=e&&b;b=this._getDragVerticalDirection();var g=this._getDragHorizontalDirection();return e?this.floating?g&&g=="right"||b=="down"?2:1:b&&(b=="down"?2:1):false},_intersectsWithSides:function(b){var e=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,b.top+b.height/2,b.height);b=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,b.left+b.width/2,b.width);var g=
this._getDragVerticalDirection(),f=this._getDragHorizontalDirection();return this.floating&&f?f=="right"&&b||f=="left"&&!b:g&&(g=="down"&&e||g=="up"&&!e)},_getDragVerticalDirection:function(){var b=this.positionAbs.top-this.lastPositionAbs.top;return b!=0&&(b>0?"down":"up")},_getDragHorizontalDirection:function(){var b=this.positionAbs.left-this.lastPositionAbs.left;return b!=0&&(b>0?"right":"left")},refresh:function(b){return this._refreshItems(b),this.refreshPositions(),this},_connectWith:function(){var b=
this.options;return b.connectWith.constructor==String?[b.connectWith]:b.connectWith},_getItemsAsjQuery:function(b){var e=[],g=[],f=this._connectWith();if(f&&b)for(b=f.length-1;b>=0;b--)for(var h=a(f[b]),l=h.length-1;l>=0;l--){var c=a.data(h[l],this.widgetName);c&&c!=this&&!c.options.disabled&&g.push([a.isFunction(c.options.items)?c.options.items.call(c.element):a(c.options.items,c.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),c])}g.push([a.isFunction(this.options.items)?this.options.items.call(this.element,
null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(b=g.length-1;b>=0;b--)g[b][0].each(function(){e.push(this)});return a(e)},_removeCurrentsFromItems:function(){for(var b=this.currentItem.find(":data("+this.widgetName+"-item)"),e=0;e<this.items.length;e++)for(var g=0;g<b.length;g++)b[g]==this.items[e].item[0]&&this.items.splice(e,1)},_refreshItems:function(b){this.items=[];this.containers=[this];
var e=this.items,g=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],b,{item:this.currentItem}):a(this.options.items,this.element),this]],f=this._connectWith();if(f&&this.ready)for(var h=f.length-1;h>=0;h--)for(var l=a(f[h]),c=l.length-1;c>=0;c--){var j=a.data(l[c],this.widgetName);j&&j!=this&&!j.options.disabled&&(g.push([a.isFunction(j.options.items)?j.options.items.call(j.element[0],b,{item:this.currentItem}):a(j.options.items,j.element),j]),this.containers.push(j))}for(h=
g.length-1;h>=0;h--){b=g[h][1];f=g[h][0];c=0;for(l=f.length;c<l;c++){j=a(f[c]);j.data(this.widgetName+"-item",b);e.push({item:j,instance:b,width:0,height:0,left:0,top:0})}}},refreshPositions:function(b){this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());for(var e=this.items.length-1;e>=0;e--){var g=this.items[e];if(!(g.instance!=this.currentContainer&&this.currentContainer&&g.item[0]!=this.currentItem[0])){var f=this.options.toleranceElement?a(this.options.toleranceElement,
g.item):g.item;b||(g.width=f.outerWidth(),g.height=f.outerHeight());f=f.offset();g.left=f.left;g.top=f.top}}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=this.containers.length-1;e>=0;e--){f=this.containers[e].element.offset();this.containers[e].containerCache.left=f.left;this.containers[e].containerCache.top=f.top;this.containers[e].containerCache.width=this.containers[e].element.outerWidth();this.containers[e].containerCache.height=
this.containers[e].element.outerHeight()}return this},_createPlaceholder:function(b){var e=b||this,g=e.options;if(!g.placeholder||g.placeholder.constructor==String){var f=g.placeholder;g.placeholder={element:function(){var h=a(document.createElement(e.currentItem[0].nodeName)).addClass(f||e.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];return f||(h.style.visibility="hidden"),h},update:function(h,l){if(!(f&&!g.forcePlaceholderSize)){l.height()||l.height(e.currentItem.innerHeight()-
parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10));l.width()||l.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10))}}}}e.placeholder=a(g.placeholder.element.call(e.element,e.currentItem));e.currentItem.after(e.placeholder);g.placeholder.update(e,e.placeholder)},_contactContainers:function(b){for(var e=null,g=null,f=this.containers.length-1;f>=0;f--)if(!a.ui.contains(this.currentItem[0],
this.containers[f].element[0]))if(this._intersectsWith(this.containers[f].containerCache)){if(!(e&&a.ui.contains(this.containers[f].element[0],e.element[0]))){e=this.containers[f];g=f}}else this.containers[f].containerCache.over&&(this.containers[f]._trigger("out",b,this._uiHash(this)),this.containers[f].containerCache.over=0);if(e)if(this.containers.length===1){this.containers[g]._trigger("over",b,this._uiHash(this));this.containers[g].containerCache.over=1}else if(this.currentContainer!=this.containers[g]){e=
1E4;f=null;for(var h=this.positionAbs[this.containers[g].floating?"left":"top"],l=this.items.length-1;l>=0;l--)if(a.ui.contains(this.containers[g].element[0],this.items[l].item[0])){var c=this.containers[g].floating?this.items[l].item.offset().left:this.items[l].item.offset().top;Math.abs(c-h)<e&&(e=Math.abs(c-h),f=this.items[l],this.direction=c-h>0?"down":"up")}if(f||this.options.dropOnEmpty){this.currentContainer=this.containers[g];f?this._rearrange(b,f,null,true):this._rearrange(b,null,this.containers[g].element,
true);this._trigger("change",b,this._uiHash());this.containers[g]._trigger("change",b,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[g]._trigger("over",b,this._uiHash(this));this.containers[g].containerCache.over=1}}},_createHelper:function(b){var e=this.options;b=a.isFunction(e.helper)?a(e.helper.apply(this.element[0],[b,this.currentItem])):e.helper=="clone"?this.currentItem.clone():this.currentItem;return b.parents("body").length||a(e.appendTo!=
"parent"?e.appendTo:this.currentItem[0].parentNode)[0].appendChild(b[0]),b[0]==this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(b[0].style.width==""||e.forceHelperSize)&&b.width(this.currentItem.width()),(b[0].style.height==""||e.forceHelperSize)&&b.height(this.currentItem.height()),b},_adjustOffsetFromHelper:function(b){typeof b==
"string"&&(b=b.split(" "));a.isArray(b)&&(b={left:+b[0],top:+b[1]||0});"left"in b&&(this.offset.click.left=b.left+this.margins.left);"right"in b&&(this.offset.click.left=this.helperProportions.width-b.right+this.margins.left);"top"in b&&(this.offset.click.top=b.top+this.margins.top);"bottom"in b&&(this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();this.cssPosition==
"absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(b.left+=this.scrollParent.scrollLeft(),b.top+=this.scrollParent.scrollTop());if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)b={top:0,left:0};return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==
"relative"){var b=this.currentItem.position();return{top:b.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},
_setContainment:function(){var b=this.options;b.containment=="parent"&&(b.containment=this.helper[0].parentNode);if(b.containment=="document"||b.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(b.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(b.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-
this.margins.top];if(!/^(document|window|parent)$/.test(b.containment)){var e=a(b.containment)[0];b=a(b.containment).offset();var g=a(e).css("overflow")!="hidden";this.containment=[b.left+(parseInt(a(e).css("borderLeftWidth"),10)||0)+(parseInt(a(e).css("paddingLeft"),10)||0)-this.margins.left,b.top+(parseInt(a(e).css("borderTopWidth"),10)||0)+(parseInt(a(e).css("paddingTop"),10)||0)-this.margins.top,b.left+(g?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(a(e).css("borderLeftWidth"),
10)||0)-(parseInt(a(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,b.top+(g?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(a(e).css("borderTopWidth"),10)||0)-(parseInt(a(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(b,e){e||(e=this.position);var g=b=="absolute"?1:-1,f=this.cssPosition=="absolute"&&(this.scrollParent[0]==document||!a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?
this.offsetParent:this.scrollParent,h=/(html|body)/i.test(f[0].tagName);return{top:e.top+this.offset.relative.top*g+this.offset.parent.top*g-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():h?0:f.scrollTop())*g),left:e.left+this.offset.relative.left*g+this.offset.parent.left*g-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():h?0:f.scrollLeft())*g)}},_generatePosition:function(b){var e=
this.options,g=this.cssPosition=="absolute"&&(this.scrollParent[0]==document||!a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(g[0].tagName);this.cssPosition=="relative"&&(this.scrollParent[0]==document||this.scrollParent[0]==this.offsetParent[0])&&(this.offset.relative=this._getRelativeOffset());var h=b.pageX,l=b.pageY;if(this.originalPosition){this.containment&&(b.pageX-this.offset.click.left<this.containment[0]&&(h=this.containment[0]+
this.offset.click.left),b.pageY-this.offset.click.top<this.containment[1]&&(l=this.containment[1]+this.offset.click.top),b.pageX-this.offset.click.left>this.containment[2]&&(h=this.containment[2]+this.offset.click.left),b.pageY-this.offset.click.top>this.containment[3]&&(l=this.containment[3]+this.offset.click.top));if(e.grid){l=this.originalPageY+Math.round((l-this.originalPageY)/e.grid[1])*e.grid[1];l=this.containment?l-this.offset.click.top<this.containment[1]||l-this.offset.click.top>this.containment[3]?
l-this.offset.click.top<this.containment[1]?l+e.grid[1]:l-e.grid[1]:l:l;h=this.originalPageX+Math.round((h-this.originalPageX)/e.grid[0])*e.grid[0];h=this.containment?h-this.offset.click.left<this.containment[0]||h-this.offset.click.left>this.containment[2]?h-this.offset.click.left<this.containment[0]?h+e.grid[0]:h-e.grid[0]:h:h}}return{top:l-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():
f?0:g.scrollTop()),left:h-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:g.scrollLeft())}},_rearrange:function(b,e,g,f){g?g[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?e.item[0]:e.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var h=this,l=this.counter;window.setTimeout(function(){l==
h.counter&&h.refreshPositions(!f)},0)},_clear:function(b,e){this.reverting=false;var g=[];!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var f in this._storedCSS)if(this._storedCSS[f]=="auto"||this._storedCSS[f]=="static")this._storedCSS[f]="";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!e&&g.push(function(h){this._trigger("receive",
h,this._uiHash(this.fromOutside))});(this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!e&&g.push(function(h){this._trigger("update",h,this._uiHash())});this!==this.currentContainer&&(e||(g.push(function(h){this._trigger("remove",h,this._uiHash())}),g.push(function(h){return function(l){h._trigger("receive",l,this._uiHash(this))}}.call(this,this.currentContainer)),g.push(function(h){return function(l){h._trigger("update",
l,this._uiHash(this))}}.call(this,this.currentContainer))));for(f=this.containers.length-1;f>=0;f--){e||g.push(function(h){return function(l){h._trigger("deactivate",l,this._uiHash(this))}}.call(this,this.containers[f]));this.containers[f].containerCache.over&&(g.push(function(h){return function(l){h._trigger("out",l,this._uiHash(this))}}.call(this,this.containers[f])),this.containers[f].containerCache.over=0)}this._storedCursor&&a("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",
this._storedOpacity);this._storedZIndex&&this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex);this.dragging=false;if(this.cancelHelperRemoval){if(!e){this._trigger("beforeStop",b,this._uiHash());for(f=0;f<g.length;f++)g[f].call(this,b);this._trigger("stop",b,this._uiHash())}return this.fromOutside=false,false}e||this._trigger("beforeStop",b,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();
this.helper=null;if(!e){for(f=0;f<g.length;f++)g[f].call(this,b);this._trigger("stop",b,this._uiHash())}return this.fromOutside=false,true},_trigger:function(){a.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},_uiHash:function(b){var e=b||this;return{helper:e.helper,placeholder:e.placeholder||a([]),position:e.position,originalPosition:e.originalPosition,offset:e.positionAbs,item:e.currentItem,sender:b?b.element:null}}});a.extend(a.ui.sortable,{version:"1.8.24"})})(jQuery);
jQuery.effects||function(a,b){function e(t){var v;return t&&t.constructor==Array&&t.length==3?t:(v=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(t))?[parseInt(v[1],10),parseInt(v[2],10),parseInt(v[3],10)]:(v=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(t))?[parseFloat(v[1])*2.55,parseFloat(v[2])*2.55,parseFloat(v[3])*2.55]:(v=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(t))?[parseInt(v[1],16),parseInt(v[2],
16),parseInt(v[3],16)]:(v=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(t))?[parseInt(v[1]+v[1],16),parseInt(v[2]+v[2],16),parseInt(v[3]+v[3],16)]:/rgba\(0, 0, 0, 0\)/.exec(t)?j.transparent:j[a.trim(t).toLowerCase()]}function g(){var t=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,v={},u,i;if(t&&t.length&&t[0]&&t[t[0]])for(var F=t.length;F--;){u=t[F];typeof t[u]=="string"&&(i=u.replace(/\-(\w)/g,function(J,z){return z.toUpperCase()}),v[i]=t[u])}else for(u in t)typeof t[u]==
"string"&&(v[u]=t[u]);return v}function f(t){var v,u;for(v in t){u=t[v];(u==null||a.isFunction(u)||v in q||/scrollbar/.test(v)||!/color/i.test(v)&&isNaN(parseFloat(u)))&&delete t[v]}return t}function h(t,v){var u={_:0},i;for(i in v)t[i]!=v[i]&&(u[i]=v[i]);return u}function l(t,v,u,i){typeof t=="object"&&(i=v,u=null,v=t,t=v.effect);a.isFunction(v)&&(i=v,u=null,v={});if(typeof v=="number"||a.fx.speeds[v]){i=u;u=v;v={}}return a.isFunction(u)&&null,v=v||{},u||v.duration,u=a.fx.off?0:typeof u=="number"?
u:u in a.fx.speeds?a.fx.speeds[u]:a.fx.speeds._default,i=i||v.complete,[t,v,u,i]}function c(t){return!t||typeof t=="number"||a.fx.speeds[t]?true:typeof t=="string"&&!a.effects[t]?true:false}a.effects={};a.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","borderColor","color","outlineColor"],function(t,v){a.fx.step[v]=function(u){if(!u.colorInit){var i;i=u.elem;var F=v,J;do{J=(a.curCSS||a.css)(i,F);if(J!=""&&J!="transparent"||a.nodeName(i,"body"))break;
F="backgroundColor"}while(i=i.parentNode);i=e(J);u.start=i;u.end=e(u.end);u.colorInit=true}u.elem.style[v]="rgb("+Math.max(Math.min(parseInt(u.pos*(u.end[0]-u.start[0])+u.start[0],10),255),0)+","+Math.max(Math.min(parseInt(u.pos*(u.end[1]-u.start[1])+u.start[1],10),255),0)+","+Math.max(Math.min(parseInt(u.pos*(u.end[2]-u.start[2])+u.start[2],10),255),0)+")"}});var j={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,
0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,
255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},m=["add","remove","toggle"],q={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};a.effects.animateClass=function(t,v,u,i){return a.isFunction(u)&&(i=u,u=null),this.queue(function(){var F=
a(this),J=F.attr("style")||" ",z=f(g.call(this)),L,Q=F.attr("class")||"";a.each(m,function(M,S){t[S]&&F[S+"Class"](t[S])});L=f(g.call(this));F.attr("class",Q);F.animate(h(z,L),{queue:false,duration:v,easing:u,complete:function(){a.each(m,function(M,S){t[S]&&F[S+"Class"](t[S])});typeof F.attr("style")=="object"?(F.attr("style").cssText="",F.attr("style").cssText=J):F.attr("style",J);i&&i.apply(this,arguments);a.dequeue(this)}})})};a.fn.extend({_addClass:a.fn.addClass,addClass:function(t,v,u,i){return v?
a.effects.animateClass.apply(this,[{add:t},v,u,i]):this._addClass(t)},_removeClass:a.fn.removeClass,removeClass:function(t,v,u,i){return v?a.effects.animateClass.apply(this,[{remove:t},v,u,i]):this._removeClass(t)},_toggleClass:a.fn.toggleClass,toggleClass:function(t,v,u,i,F){return typeof v=="boolean"||v===b?u?a.effects.animateClass.apply(this,[v?{add:t}:{remove:t},u,i,F]):this._toggleClass(t,v):a.effects.animateClass.apply(this,[{toggle:t},v,u,i])},switchClass:function(t,v,u,i,F){return a.effects.animateClass.apply(this,
[{add:v,remove:t},u,i,F])}});a.extend(a.effects,{version:"1.8.24",save:function(t,v){for(var u=0;u<v.length;u++)v[u]!==null&&t.data("ec.storage."+v[u],t[0].style[v[u]])},restore:function(t,v){for(var u=0;u<v.length;u++)v[u]!==null&&t.css(v[u],t.data("ec.storage."+v[u]))},setMode:function(t,v){return v=="toggle"&&(v=t.is(":hidden")?"show":"hide"),v},getBaseline:function(t,v){var u,i;switch(t[0]){case "top":u=0;break;case "middle":u=0.5;break;case "bottom":u=1;break;default:u=t[0]/v.height}switch(t[1]){case "left":i=
0;break;case "center":i=0.5;break;case "right":i=1;break;default:i=t[1]/v.width}return{x:i,y:u}},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var v={width:t.outerWidth(true),height:t.outerHeight(true),"float":t.css("float")},u=a("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),i=document.activeElement;return t.wrap(u),(t[0]===i||a.contains(t[0],i))&&a(i).focus(),u=t.parent(),t.css("position")==
"static"?(u.css({position:"relative"}),t.css({position:"relative"})):(a.extend(v,{position:t.css("position"),zIndex:t.css("z-index")}),a.each(["top","left","bottom","right"],function(F,J){v[J]=t.css(J);isNaN(parseInt(v[J],10))&&(v[J]="auto")}),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),u.css(v).show()},removeWrapper:function(t){var v,u=document.activeElement;return t.parent().is(".ui-effects-wrapper")?(v=t.parent().replaceWith(t),(t[0]===u||a.contains(t[0],u))&&a(u).focus(),
v):t},setTransition:function(t,v,u,i){return i=i||{},a.each(v,function(F,J){var z=t.cssUnit(J);z[0]>0&&(i[J]=z[0]*u+z[1])}),i}});a.fn.extend({effect:function(t){var v=l.apply(this,arguments),u={options:v[1],duration:v[2],callback:v[3]};v=u.options.mode;var i=a.effects[t];return a.fx.off||!i?v?this[v](u.duration,u.callback):this.each(function(){u.callback&&u.callback.call(this)}):i.call(this,u)},_show:a.fn.show,show:function(t){if(c(t))return this._show.apply(this,arguments);var v=l.apply(this,arguments);
return v[1].mode="show",this.effect.apply(this,v)},_hide:a.fn.hide,hide:function(t){if(c(t))return this._hide.apply(this,arguments);var v=l.apply(this,arguments);return v[1].mode="hide",this.effect.apply(this,v)},__toggle:a.fn.toggle,toggle:function(t){if(c(t)||typeof t=="boolean"||a.isFunction(t))return this.__toggle.apply(this,arguments);var v=l.apply(this,arguments);return v[1].mode="toggle",this.effect.apply(this,v)},cssUnit:function(t){var v=this.css(t),u=[];return a.each(["em","px","%","pt"],
function(i,F){v.indexOf(F)>0&&(u=[parseFloat(v),F])}),u}});var s={};a.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,v){s[v]=function(u){return Math.pow(u,t+2)}});a.extend(s,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return t===0||t===1?t:-Math.pow(2,8*(t-1))*Math.sin(((t-1)*80-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var v,u=4;t<((v=Math.pow(2,--u))-1)/11;);return 1/Math.pow(4,3-u)-
7.5625*Math.pow((v*3-2)/22-t,2)}});a.each(s,function(t,v){a.easing["easeIn"+t]=v;a.easing["easeOut"+t]=function(u){return 1-v(1-u)};a.easing["easeInOut"+t]=function(u){return u<0.5?v(u*2)/2:v(u*-2+2)/-2+1}})}(jQuery);
(function(a){a.effects.blind=function(b){return this.queue(function(){var e=a(this),g=["position","top","bottom","left","right"],f=a.effects.setMode(e,b.options.mode||"hide"),h=b.options.direction||"vertical";a.effects.save(e,g);e.show();var l=a.effects.createWrapper(e).css({overflow:"hidden"}),c=h=="vertical"?"height":"width";h=h=="vertical"?l.height():l.width();f=="show"&&l.css(c,0);var j={};j[c]=f=="show"?h:0;l.animate(j,b.duration,b.options.easing,function(){f=="hide"&&e.hide();a.effects.restore(e,
g);a.effects.removeWrapper(e);b.callback&&b.callback.apply(e[0],arguments);e.dequeue()})})}})(jQuery);
(function(a){a.effects.bounce=function(b){return this.queue(function(){var e=a(this),g=["position","top","bottom","left","right"],f=a.effects.setMode(e,b.options.mode||"effect"),h=b.options.direction||"up",l=b.options.distance||20,c=b.options.times||5,j=b.duration||250;/show|hide/.test(f)&&g.push("opacity");a.effects.save(e,g);e.show();a.effects.createWrapper(e);var m=h=="up"||h=="down"?"top":"left";h=h=="up"||h=="left"?"pos":"neg";l=b.options.distance||(m=="top"?e.outerHeight(true)/3:e.outerWidth(true)/
3);f=="show"&&e.css("opacity",0).css(m,h=="pos"?-l:l);f=="hide"&&(l/=c*2);f!="hide"&&c--;if(f=="show"){var q={opacity:1};q[m]=(h=="pos"?"+=":"-=")+l;e.animate(q,j/2,b.options.easing);l/=2;c--}for(q=0;q<c;q++){var s={},t={};s[m]=(h=="pos"?"-=":"+=")+l;t[m]=(h=="pos"?"+=":"-=")+l;e.animate(s,j/2,b.options.easing).animate(t,j/2,b.options.easing);l=f=="hide"?l*2:l/2}if(f=="hide"){q={opacity:0};q[m]=(h=="pos"?"-=":"+=")+l;e.animate(q,j/2,b.options.easing,function(){e.hide();a.effects.restore(e,g);a.effects.removeWrapper(e);
b.callback&&b.callback.apply(this,arguments)})}else{s={};t={};s[m]=(h=="pos"?"-=":"+=")+l;t[m]=(h=="pos"?"+=":"-=")+l;e.animate(s,j/2,b.options.easing).animate(t,j/2,b.options.easing,function(){a.effects.restore(e,g);a.effects.removeWrapper(e);b.callback&&b.callback.apply(this,arguments)})}e.queue("fx",function(){e.dequeue()});e.dequeue()})}})(jQuery);
(function(a){a.effects.clip=function(b){return this.queue(function(){var e=a(this),g=["position","top","bottom","left","right","height","width"],f=a.effects.setMode(e,b.options.mode||"hide"),h=b.options.direction||"vertical";a.effects.save(e,g);e.show();var l=a.effects.createWrapper(e).css({overflow:"hidden"});l=e[0].tagName=="IMG"?l:e;var c={size:h=="vertical"?"height":"width",position:h=="vertical"?"top":"left"};h=h=="vertical"?l.height():l.width();f=="show"&&(l.css(c.size,0),l.css(c.position,h/
2));var j={};j[c.size]=f=="show"?h:0;j[c.position]=f=="show"?0:h/2;l.animate(j,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){f=="hide"&&e.hide();a.effects.restore(e,g);a.effects.removeWrapper(e);b.callback&&b.callback.apply(e[0],arguments);e.dequeue()}})})}})(jQuery);
(function(a){a.effects.drop=function(b){return this.queue(function(){var e=a(this),g=["position","top","bottom","left","right","opacity"],f=a.effects.setMode(e,b.options.mode||"hide"),h=b.options.direction||"left";a.effects.save(e,g);e.show();a.effects.createWrapper(e);var l=h=="up"||h=="down"?"top":"left";h=h=="up"||h=="left"?"pos":"neg";var c=b.options.distance||(l=="top"?e.outerHeight(true)/2:e.outerWidth(true)/2);f=="show"&&e.css("opacity",0).css(l,h=="pos"?-c:c);var j={opacity:f=="show"?1:0};
j[l]=(f=="show"?h=="pos"?"+=":"-=":h=="pos"?"-=":"+=")+c;e.animate(j,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){f=="hide"&&e.hide();a.effects.restore(e,g);a.effects.removeWrapper(e);b.callback&&b.callback.apply(this,arguments);e.dequeue()}})})}})(jQuery);
(function(a){a.effects.explode=function(b){return this.queue(function(){var e=b.options.pieces?Math.round(Math.sqrt(b.options.pieces)):3,g=b.options.pieces?Math.round(Math.sqrt(b.options.pieces)):3;b.options.mode=b.options.mode=="toggle"?a(this).is(":visible")?"hide":"show":b.options.mode;var f=a(this).show().css("visibility","hidden"),h=f.offset();h.top-=parseInt(f.css("marginTop"),10)||0;h.left-=parseInt(f.css("marginLeft"),10)||0;for(var l=f.outerWidth(true),c=f.outerHeight(true),j=0;j<e;j++)for(var m=
0;m<g;m++)f.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-m*(l/g),top:-j*(c/e)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:l/g,height:c/e,left:h.left+m*(l/g)+(b.options.mode=="show"?(m-Math.floor(g/2))*(l/g):0),top:h.top+j*(c/e)+(b.options.mode=="show"?(j-Math.floor(e/2))*(c/e):0),opacity:b.options.mode=="show"?0:1}).animate({left:h.left+m*(l/g)+(b.options.mode=="show"?0:(m-Math.floor(g/2))*(l/g)),top:h.top+
j*(c/e)+(b.options.mode=="show"?0:(j-Math.floor(e/2))*(c/e)),opacity:b.options.mode=="show"?1:0},b.duration||500);setTimeout(function(){b.options.mode=="show"?f.css({visibility:"visible"}):f.css({visibility:"visible"}).hide();b.callback&&b.callback.apply(f[0]);f.dequeue();a("div.ui-effects-explode").remove()},b.duration||500)})}})(jQuery);
(function(a){a.effects.fade=function(b){return this.queue(function(){var e=a(this),g=a.effects.setMode(e,b.options.mode||"hide");e.animate({opacity:g},{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){b.callback&&b.callback.apply(this,arguments);e.dequeue()}})})}})(jQuery);
(function(a){a.effects.fold=function(b){return this.queue(function(){var e=a(this),g=["position","top","bottom","left","right"],f=a.effects.setMode(e,b.options.mode||"hide"),h=b.options.size||15,l=!!b.options.horizFirst,c=b.duration?b.duration/2:a.fx.speeds._default/2;a.effects.save(e,g);e.show();var j=a.effects.createWrapper(e).css({overflow:"hidden"}),m=f=="show"!=l,q=m?["width","height"]:["height","width"];m=m?[j.width(),j.height()]:[j.height(),j.width()];var s=/([0-9]+)%/.exec(h);s&&(h=parseInt(s[1],
10)/100*m[f=="hide"?0:1]);f=="show"&&j.css(l?{height:0,width:h}:{height:h,width:0});l={};s={};l[q[0]]=f=="show"?m[0]:h;s[q[1]]=f=="show"?m[1]:0;j.animate(l,c,b.options.easing).animate(s,c,b.options.easing,function(){f=="hide"&&e.hide();a.effects.restore(e,g);a.effects.removeWrapper(e);b.callback&&b.callback.apply(e[0],arguments);e.dequeue()})})}})(jQuery);
(function(a){a.effects.highlight=function(b){return this.queue(function(){var e=a(this),g=["backgroundImage","backgroundColor","opacity"],f=a.effects.setMode(e,b.options.mode||"show"),h={backgroundColor:e.css("backgroundColor")};f=="hide"&&(h.opacity=0);a.effects.save(e,g);e.show().css({backgroundImage:"none",backgroundColor:b.options.color||"#ffff99"}).animate(h,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){f=="hide"&&e.hide();a.effects.restore(e,g);f=="show"&&!a.support.opacity&&
this.style.removeAttribute("filter");b.callback&&b.callback.apply(this,arguments);e.dequeue()}})})}})(jQuery);
(function(a){a.effects.pulsate=function(b){return this.queue(function(){var e=a(this),g=a.effects.setMode(e,b.options.mode||"show"),f=(b.options.times||5)*2-1,h=b.duration?b.duration/2:a.fx.speeds._default/2,l=e.is(":visible"),c=0;l||(e.css("opacity",0).show(),c=1);(g=="hide"&&l||g=="show"&&!l)&&f--;for(g=0;g<f;g++){e.animate({opacity:c},h,b.options.easing);c=(c+1)%2}e.animate({opacity:c},h,b.options.easing,function(){c==0&&e.hide();b.callback&&b.callback.apply(this,arguments)});e.queue("fx",function(){e.dequeue()}).dequeue()})}})(jQuery);
(function(a){a.effects.puff=function(b){return this.queue(function(){var e=a(this),g=a.effects.setMode(e,b.options.mode||"hide"),f=parseInt(b.options.percent,10)||150,h=f/100,l={height:e.height(),width:e.width()};a.extend(b.options,{fade:true,mode:g,percent:g=="hide"?f:100,from:g=="hide"?l:{height:l.height*h,width:l.width*h}});e.effect("scale",b.options,b.duration,b.callback);e.dequeue()})};a.effects.scale=function(b){return this.queue(function(){var e=a(this),g=a.extend(true,{},b.options),f=a.effects.setMode(e,
b.options.mode||"effect"),h=parseInt(b.options.percent,10)||(parseInt(b.options.percent,10)==0?0:f=="hide"?0:100),l=b.options.direction||"both",c=b.options.origin;f!="effect"&&(g.origin=c||["middle","center"],g.restore=true);c={height:e.height(),width:e.width()};e.from=b.options.from||(f=="show"?{height:0,width:0}:c);h={y:l!="horizontal"?h/100:1,x:l!="vertical"?h/100:1};e.to={height:c.height*h.y,width:c.width*h.x};b.options.fade&&(f=="show"&&(e.from.opacity=0,e.to.opacity=1),f=="hide"&&(e.from.opacity=
1,e.to.opacity=0));g.from=e.from;g.to=e.to;g.mode=f;e.effect("size",g,b.duration,b.callback);e.dequeue()})};a.effects.size=function(b){return this.queue(function(){var e=a(this),g=["position","top","bottom","left","right","width","height","overflow","opacity"],f=["position","top","bottom","left","right","overflow","opacity"],h=["width","height","overflow"],l=["fontSize"],c=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],j=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],
m=a.effects.setMode(e,b.options.mode||"effect"),q=b.options.restore||false,s=b.options.scale||"both",t=b.options.origin,v={height:e.height(),width:e.width()};e.from=b.options.from||v;e.to=b.options.to||v;if(t){t=a.effects.getBaseline(t,v);e.from.top=(v.height-e.from.height)*t.y;e.from.left=(v.width-e.from.width)*t.x;e.to.top=(v.height-e.to.height)*t.y;e.to.left=(v.width-e.to.width)*t.x}var u={from:{y:e.from.height/v.height,x:e.from.width/v.width},to:{y:e.to.height/v.height,x:e.to.width/v.width}};
if(s=="box"||s=="both"){u.from.y!=u.to.y&&(g=g.concat(c),e.from=a.effects.setTransition(e,c,u.from.y,e.from),e.to=a.effects.setTransition(e,c,u.to.y,e.to));u.from.x!=u.to.x&&(g=g.concat(j),e.from=a.effects.setTransition(e,j,u.from.x,e.from),e.to=a.effects.setTransition(e,j,u.to.x,e.to))}(s=="content"||s=="both")&&u.from.y!=u.to.y&&(g=g.concat(l),e.from=a.effects.setTransition(e,l,u.from.y,e.from),e.to=a.effects.setTransition(e,l,u.to.y,e.to));a.effects.save(e,q?g:f);e.show();a.effects.createWrapper(e);
e.css("overflow","hidden").css(e.from);if(s=="content"||s=="both"){c=c.concat(["marginTop","marginBottom"]).concat(l);j=j.concat(["marginLeft","marginRight"]);h=g.concat(c).concat(j);e.find("*[width]").each(function(){var i=a(this);q&&a.effects.save(i,h);var F={height:i.height(),width:i.width()};i.from={height:F.height*u.from.y,width:F.width*u.from.x};i.to={height:F.height*u.to.y,width:F.width*u.to.x};u.from.y!=u.to.y&&(i.from=a.effects.setTransition(i,c,u.from.y,i.from),i.to=a.effects.setTransition(i,
c,u.to.y,i.to));u.from.x!=u.to.x&&(i.from=a.effects.setTransition(i,j,u.from.x,i.from),i.to=a.effects.setTransition(i,j,u.to.x,i.to));i.css(i.from);i.animate(i.to,b.duration,b.options.easing,function(){q&&a.effects.restore(i,h)})})}e.animate(e.to,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){e.to.opacity===0&&e.css("opacity",e.from.opacity);m=="hide"&&e.hide();a.effects.restore(e,q?g:f);a.effects.removeWrapper(e);b.callback&&b.callback.apply(this,arguments);e.dequeue()}})})}})(jQuery);
(function(a){a.effects.shake=function(b){return this.queue(function(){var e=a(this),g=["position","top","bottom","left","right"];a.effects.setMode(e,b.options.mode||"effect");var f=b.options.direction||"left",h=b.options.distance||20,l=b.options.times||3,c=b.duration||b.options.duration||140;a.effects.save(e,g);e.show();a.effects.createWrapper(e);var j=f=="up"||f=="down"?"top":"left",m=f=="up"||f=="left"?"pos":"neg";f={};var q={},s={};f[j]=(m=="pos"?"-=":"+=")+h;q[j]=(m=="pos"?"+=":"-=")+h*2;s[j]=
(m=="pos"?"-=":"+=")+h*2;e.animate(f,c,b.options.easing);for(h=1;h<l;h++)e.animate(q,c,b.options.easing).animate(s,c,b.options.easing);e.animate(q,c,b.options.easing).animate(f,c/2,b.options.easing,function(){a.effects.restore(e,g);a.effects.removeWrapper(e);b.callback&&b.callback.apply(this,arguments)});e.queue("fx",function(){e.dequeue()});e.dequeue()})}})(jQuery);
(function(a){a.effects.slide=function(b){return this.queue(function(){var e=a(this),g=["position","top","bottom","left","right"],f=a.effects.setMode(e,b.options.mode||"show"),h=b.options.direction||"left";a.effects.save(e,g);e.show();a.effects.createWrapper(e).css({overflow:"hidden"});var l=h=="up"||h=="down"?"top":"left";h=h=="up"||h=="left"?"pos":"neg";var c=b.options.distance||(l=="top"?e.outerHeight(true):e.outerWidth(true));f=="show"&&e.css(l,h=="pos"?isNaN(c)?"-"+c:-c:c);var j={};j[l]=(f=="show"?
h=="pos"?"+=":"-=":h=="pos"?"-=":"+=")+c;e.animate(j,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){f=="hide"&&e.hide();a.effects.restore(e,g);a.effects.removeWrapper(e);b.callback&&b.callback.apply(this,arguments);e.dequeue()}})})}})(jQuery);
(function(a){a.effects.transfer=function(b){return this.queue(function(){var e=a(this),g=a(b.options.to),f=g.offset();g={top:f.top,left:f.left,height:g.innerHeight(),width:g.innerWidth()};f=e.offset();var h=a('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(b.options.className).css({top:f.top,left:f.left,height:e.innerHeight(),width:e.innerWidth(),position:"absolute"}).animate(g,b.duration,b.options.easing,function(){h.remove();b.callback&&b.callback.apply(e[0],arguments);
e.dequeue()})})}})(jQuery);
(function(a){a.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var b=this,e=b.options;b.running=0;b.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix");b.headers=
b.element.find(e.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){e.disabled||a(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){e.disabled||a(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){e.disabled||a(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){e.disabled||a(this).removeClass("ui-state-focus")});b.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");
if(e.navigation){var g=b.element.find("a").filter(e.navigationFilter).eq(0);if(g.length){var f=g.closest(".ui-accordion-header");f.length?b.active=f:b.active=g.closest(".ui-accordion-content").prev()}}b.active=b._findActive(b.active||e.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");b.active.next().addClass("ui-accordion-content-active");b._createIcons();b.resize();b.element.attr("role","tablist");b.headers.attr("role","tab").bind("keydown.accordion",
function(h){return b._keydown(h)}).next().attr("role","tabpanel");b.headers.not(b.active||"").attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).next().hide();b.active.length?b.active.attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}):b.headers.eq(0).attr("tabIndex",0);a.browser.safari||b.headers.find("a").attr("tabIndex",-1);e.event&&b.headers.bind(e.event.split(" ").join(".accordion ")+".accordion",function(h){b._clickHandler.call(b,h,this);h.preventDefault()})},_createIcons:function(){var b=
this.options;b.icons&&(a("<span></span>").addClass("ui-icon "+b.icons.header).prependTo(this.headers),this.active.children(".ui-icon").toggleClass(b.icons.header).toggleClass(b.icons.headerSelected),this.element.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var b=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("tabIndex");
this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var e=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");return(b.autoHeight||b.fillHeight)&&e.css("height",""),a.Widget.prototype.destroy.call(this)},_setOption:function(b,e){a.Widget.prototype._setOption.apply(this,arguments);b=="active"&&this.activate(e);b=="icons"&&(this._destroyIcons(),
e&&this._createIcons());b=="disabled"&&this.headers.add(this.headers.next())[e?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(b){if(!(this.options.disabled||b.altKey||b.ctrlKey)){var e=a.ui.keyCode,g=this.headers.length,f=this.headers.index(b.target),h=false;switch(b.keyCode){case e.RIGHT:case e.DOWN:h=this.headers[(f+1)%g];break;case e.LEFT:case e.UP:h=this.headers[(f-1+g)%g];break;case e.SPACE:case e.ENTER:this._clickHandler({target:b.target},b.target);b.preventDefault()}return h?
(a(b.target).attr("tabIndex",-1),a(h).attr("tabIndex",0),h.focus(),false):true}},resize:function(){var b=this.options,e;if(b.fillSpace){if(a.browser.msie){var g=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}e=this.element.parent().height();a.browser.msie&&this.element.parent().css("overflow",g);this.headers.each(function(){e-=a(this).outerHeight(true)});this.headers.next().each(function(){a(this).height(Math.max(0,e-a(this).innerHeight()+a(this).height()))}).css("overflow",
"auto")}else b.autoHeight&&(e=0,this.headers.next().each(function(){e=Math.max(e,a(this).height("").height())}).height(e));return this},activate:function(b){this.options.active=b;b=this._findActive(b)[0];return this._clickHandler({target:b},b),this},_findActive:function(b){return b?typeof b=="number"?this.headers.filter(":eq("+b+")"):this.headers.not(this.headers.not(b)):b===false?a([]):this.headers.filter(":eq(0)")},_clickHandler:function(b,e){var g=this.options;if(!g.disabled)if(b.target){var f=
a(b.currentTarget||e),h=f[0]===this.active[0];g.active=g.collapsible&&h?false:this.headers.index(f);if(!(this.running||!g.collapsible&&h)){var l=this.active;q=f.next();j=this.active.next();m={options:g,newHeader:h&&g.collapsible?a([]):f,oldHeader:this.active,newContent:h&&g.collapsible?a([]):q,oldContent:j};var c=this.headers.index(this.active[0])>this.headers.index(f[0]);this.active=h?a([]):f;this._toggle(q,j,m,h,c);l.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(g.icons.headerSelected).addClass(g.icons.header);
h||(f.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(g.icons.header).addClass(g.icons.headerSelected),f.next().addClass("ui-accordion-content-active"))}}else if(g.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(g.icons.headerSelected).addClass(g.icons.header);this.active.next().addClass("ui-accordion-content-active");var j=this.active.next(),
m={options:g,newHeader:a([]),oldHeader:g.active,newContent:a([]),oldContent:j},q=this.active=a([]);this._toggle(q,j,m)}},_toggle:function(b,e,g,f,h){var l=this,c=l.options;l.toShow=b;l.toHide=e;l.data=g;var j=function(){if(l)return l._completed.apply(l,arguments)};l._trigger("changestart",null,l.data);l.running=e.size()===0?b.size():e.size();if(c.animated){g={};c.collapsible&&f?g={toShow:a([]),toHide:e,complete:j,down:h,autoHeight:c.autoHeight||c.fillSpace}:g={toShow:b,toHide:e,complete:j,down:h,
autoHeight:c.autoHeight||c.fillSpace};c.proxied||(c.proxied=c.animated);c.proxiedDuration||(c.proxiedDuration=c.duration);c.animated=a.isFunction(c.proxied)?c.proxied(g):c.proxied;c.duration=a.isFunction(c.proxiedDuration)?c.proxiedDuration(g):c.proxiedDuration;f=a.ui.accordion.animations;var m=c.duration,q=c.animated;q&&!f[q]&&!a.easing[q]&&(q="slide");f[q]||(f[q]=function(s){this.slide(s,{easing:q,duration:m||700})});f[q](g)}else{c.collapsible&&f?b.toggle():(e.hide(),b.show());j(true)}e.prev().attr({"aria-expanded":"false",
"aria-selected":"false",tabIndex:-1}).blur();b.prev().attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}).focus()},_completed:function(b){this.running=b?0:--this.running;if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.toHide.removeClass("ui-accordion-content-active");this.toHide.length&&(this.toHide.parent()[0].className=this.toHide.parent()[0].className);this._trigger("change",null,this.data)}}});a.extend(a.ui.accordion,{version:"1.8.24",
animations:{slide:function(b,e){b=a.extend({easing:"swing",duration:300},b,e);if(b.toHide.size())if(b.toShow.size()){var g=b.toShow.css("overflow"),f=0,h={},l={},c,j=b.toShow;c=j[0].style.width;j.width(j.parent().width()-parseFloat(j.css("paddingLeft"))-parseFloat(j.css("paddingRight"))-(parseFloat(j.css("borderLeftWidth"))||0)-(parseFloat(j.css("borderRightWidth"))||0));a.each(["height","paddingTop","paddingBottom"],function(m,q){l[q]="hide";var s=(""+a.css(b.toShow[0],q)).match(/^([\d+-.]+)(.*)$/);
h[q]={value:s[1],unit:s[2]||"px"}});b.toShow.css({height:0,overflow:"hidden"}).show();b.toHide.filter(":hidden").each(b.complete).end().filter(":visible").animate(l,{step:function(m,q){q.prop=="height"&&(f=q.end-q.start===0?0:(q.now-q.start)/(q.end-q.start));b.toShow[0].style[q.prop]=f*h[q.prop].value+h[q.prop].unit},duration:b.duration,easing:b.easing,complete:function(){b.autoHeight||b.toShow.css("height","");b.toShow.css({width:c,overflow:g});b.complete()}})}else b.toHide.animate({height:"hide",
paddingTop:"hide",paddingBottom:"hide"},b);else b.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},b)},bounceslide:function(b){this.slide(b,{easing:b.down?"easeOutBounce":"swing",duration:b.down?1E3:200})}}})})(jQuery);
(function(a){var b=0;a.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:false,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var e=this,g=this.element[0].ownerDocument,f;this.isMultiLine=this.element.is("textarea");this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(h){if(!(e.options.disabled||
e.element.propAttr("readOnly"))){f=false;var l=a.ui.keyCode;switch(h.keyCode){case l.PAGE_UP:e._move("previousPage",h);break;case l.PAGE_DOWN:e._move("nextPage",h);break;case l.UP:e._keyEvent("previous",h);break;case l.DOWN:e._keyEvent("next",h);break;case l.ENTER:case l.NUMPAD_ENTER:e.menu.active&&(f=true,h.preventDefault());case l.TAB:if(!e.menu.active)return;e.menu.select(h);break;case l.ESCAPE:e.element.val(e.term);e.close(h);break;default:clearTimeout(e.searching);e.searching=setTimeout(function(){e.term!=
e.element.val()&&(e.selectedItem=null,e.search(null,h))},e.options.delay)}}}).bind("keypress.autocomplete",function(h){f&&(f=false,h.preventDefault())}).bind("focus.autocomplete",function(){if(!e.options.disabled){e.selectedItem=null;e.previous=e.element.val()}}).bind("blur.autocomplete",function(h){if(!e.options.disabled){clearTimeout(e.searching);e.closing=setTimeout(function(){e.close(h);e._change(h)},150)}});this._initSource();this.menu=a("<ul></ul>").addClass("ui-autocomplete").appendTo(a(this.options.appendTo||
"body",g)[0]).mousedown(function(h){var l=e.menu.element[0];a(h.target).closest(".ui-menu-item").length||setTimeout(function(){a(document).one("mousedown",function(c){c.target!==e.element[0]&&c.target!==l&&!a.ui.contains(l,c.target)&&e.close()})},1);setTimeout(function(){clearTimeout(e.closing)},13)}).menu({focus:function(h,l){var c=l.item.data("item.autocomplete");false!==e._trigger("focus",h,{item:c})&&/^key/.test(h.originalEvent.type)&&e.element.val(c.value)},selected:function(h,l){var c=l.item.data("item.autocomplete"),
j=e.previous;e.element[0]!==g.activeElement&&(e.element.focus(),e.previous=j,setTimeout(function(){e.previous=j;e.selectedItem=c},1));false!==e._trigger("select",h,{item:c})&&e.element.val(c.value);e.term=e.element.val();e.close(h);e.selectedItem=c},blur:function(){e.menu.element.is(":visible")&&e.element.val()!==e.term&&e.element.val(e.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");a.fn.bgiframe&&this.menu.element.bgiframe();e.beforeunloadHandler=function(){e.element.removeAttr("autocomplete")};
a(window).bind("beforeunload",e.beforeunloadHandler)},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");this.menu.element.remove();a(window).unbind("beforeunload",this.beforeunloadHandler);a.Widget.prototype.destroy.call(this)},_setOption:function(e,g){a.Widget.prototype._setOption.apply(this,arguments);e==="source"&&this._initSource();e==="appendTo"&&this.menu.element.appendTo(a(g||
"body",this.element[0].ownerDocument)[0]);e==="disabled"&&g&&this.xhr&&this.xhr.abort()},_initSource:function(){var e=this,g,f;a.isArray(this.options.source)?(g=this.options.source,this.source=function(h,l){l(a.ui.autocomplete.filter(g,h.term))}):typeof this.options.source=="string"?(f=this.options.source,this.source=function(h,l){e.xhr&&e.xhr.abort();e.xhr=a.ajax({url:f,data:h,dataType:"json",success:function(c){l(c)},error:function(){l([])}})}):this.source=this.options.source},search:function(e,
g){e=e!=null?e:this.element.val();this.term=this.element.val();if(e.length<this.options.minLength)return this.close(g);clearTimeout(this.closing);if(this._trigger("search",g)!==false)return this._search(e)},_search:function(e){this.pending++;this.element.addClass("ui-autocomplete-loading");this.source({term:e},this._response())},_response:function(){var e=this,g=++b;return function(f){g===b&&e.__response(f);e.pending--;e.pending||e.element.removeClass("ui-autocomplete-loading")}},__response:function(e){!this.options.disabled&&
e&&e.length?(e=this._normalize(e),this._suggest(e),this._trigger("open")):this.close()},close:function(e){clearTimeout(this.closing);this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.deactivate(),this._trigger("close",e))},_change:function(e){this.previous!==this.element.val()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:a.map(e,function(g){return typeof g=="string"?{label:g,value:g}:a.extend({label:g.label||
g.value,value:g.value||g.label},g)})},_suggest:function(e){var g=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(g,e);this.menu.deactivate();this.menu.refresh();g.show();this._resizeMenu();g.position(a.extend({of:this.element},this.options.position));this.options.autoFocus&&this.menu.next(new a.Event("mouseover"))},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,g){var f=
this;a.each(g,function(h,l){f._renderItem(e,l)})},_renderItem:function(e,g){return a("<li></li>").data("item.autocomplete",g).append(a("<a></a>").text(g.label)).appendTo(e)},_move:function(e,g){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(e)||this.menu.last()&&/^next/.test(e)){this.element.val(this.term);this.menu.deactivate()}else this.menu[e](g);else this.search(null,g)},widget:function(){return this.menu.element},_keyEvent:function(e,g){if(!this.isMultiLine||this.menu.element.is(":visible")){this._move(e,
g);g.preventDefault()}}});a.extend(a.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(e,g){var f=RegExp(a.ui.autocomplete.escapeRegex(g),"i");return a.grep(e,function(h){return f.test(h.label||h.value||h)})}})})(jQuery);
(function(a){a.widget("ui.menu",{_create:function(){var b=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(e){if(a(e.target).closest(".ui-menu-item a").length){e.preventDefault();b.select(e)}});this.refresh()},refresh:function(){var b=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",
-1).mouseenter(function(e){b.activate(e,a(this).parent())}).mouseleave(function(){b.deactivate()})},activate:function(b,e){this.deactivate();if(this.hasScroll()){var g=e.offset().top-this.element.offset().top,f=this.element.scrollTop(),h=this.element.height();g<0?this.element.scrollTop(f+g):g>=h&&this.element.scrollTop(f+g-h+e.height())}this.active=e.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",b,{item:e})},deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id");
this._trigger("blur");this.active=null}},next:function(b){this.move("next",".ui-menu-item:first",b)},previous:function(b){this.move("prev",".ui-menu-item:last",b)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(b,e,g){if(this.active){b=this.active[b+"All"](".ui-menu-item").eq(0);b.length?this.activate(g,b):this.activate(g,this.element.children(e))}else this.activate(g,
this.element.children(e))},nextPage:function(b){if(this.hasScroll())if(!this.active||this.last())this.activate(b,this.element.children(".ui-menu-item:first"));else{var e=this.active.offset().top,g=this.element.height(),f=this.element.children(".ui-menu-item").filter(function(){var h=a(this).offset().top-e-g+a(this).height();return h<10&&h>-10});f.length||(f=this.element.children(".ui-menu-item:last"));this.activate(b,f)}else this.activate(b,this.element.children(".ui-menu-item").filter(!this.active||
this.last()?":first":":last"))},previousPage:function(b){if(this.hasScroll())if(!this.active||this.first())this.activate(b,this.element.children(".ui-menu-item:last"));else{var e=this.active.offset().top,g=this.element.height(),f=this.element.children(".ui-menu-item").filter(function(){var h=a(this).offset().top-e+g-a(this).height();return h<10&&h>-10});f.length||(f=this.element.children(".ui-menu-item:first"));this.activate(b,f)}else this.activate(b,this.element.children(".ui-menu-item").filter(!this.active||
this.first()?":last":":first"))},hasScroll:function(){return this.element.height()<this.element[a.fn.prop?"prop":"attr"]("scrollHeight")},select:function(b){this._trigger("selected",b,{item:this.active})}})})(jQuery);
(function(a){var b,e,g,f,h=function(){var c=a(this).find(":ui-button");setTimeout(function(){c.button("refresh")},1)},l=function(c){var j=c.name,m=c.form,q=a([]);return j&&(m?q=a(m).find("[name='"+j+"']"):q=a("[name='"+j+"']",c.ownerDocument).filter(function(){return!this.form})),q};a.widget("ui.button",{options:{disabled:null,text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",h);typeof this.options.disabled!=
"boolean"?this.options.disabled=!!this.element.propAttr("disabled"):this.element.propAttr("disabled",this.options.disabled);this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var c=this,j=this.options,m=this.type==="checkbox"||this.type==="radio",q="ui-state-hover"+(m?"":" ui-state-active");j.label===null&&(j.label=this.buttonElement.html());this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role","button").bind("mouseenter.button",function(){if(!j.disabled){a(this).addClass("ui-state-hover");
this===b&&a(this).addClass("ui-state-active")}}).bind("mouseleave.button",function(){j.disabled||a(this).removeClass(q)}).bind("click.button",function(s){j.disabled&&(s.preventDefault(),s.stopImmediatePropagation())});this.element.bind("focus.button",function(){c.buttonElement.addClass("ui-state-focus")}).bind("blur.button",function(){c.buttonElement.removeClass("ui-state-focus")});m&&(this.element.bind("change.button",function(){f||c.refresh()}),this.buttonElement.bind("mousedown.button",function(s){if(!j.disabled){f=
false;e=s.pageX;g=s.pageY}}).bind("mouseup.button",function(s){if(!j.disabled)if(e!==s.pageX||g!==s.pageY)f=true}));this.type==="checkbox"?this.buttonElement.bind("click.button",function(){if(j.disabled||f)return false;a(this).toggleClass("ui-state-active");c.buttonElement.attr("aria-pressed",c.element[0].checked)}):this.type==="radio"?this.buttonElement.bind("click.button",function(){if(j.disabled||f)return false;a(this).addClass("ui-state-active");c.buttonElement.attr("aria-pressed","true");var s=
c.element[0];l(s).not(s).map(function(){return a(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown.button",function(){if(j.disabled)return false;a(this).addClass("ui-state-active");b=this;a(document).one("mouseup",function(){b=null})}).bind("mouseup.button",function(){if(j.disabled)return false;a(this).removeClass("ui-state-active")}).bind("keydown.button",function(s){if(j.disabled)return false;(s.keyCode==a.ui.keyCode.SPACE||
s.keyCode==a.ui.keyCode.ENTER)&&a(this).addClass("ui-state-active")}).bind("keyup.button",function(){a(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&&this.buttonElement.keyup(function(s){s.keyCode===a.ui.keyCode.SPACE&&a(this).click()}));this._setOption("disabled",j.disabled);this._resetButton()},_determineButtonType:function(){this.element.is(":checkbox")?this.type="checkbox":this.element.is(":radio")?this.type="radio":this.element.is("input")?this.type="input":this.type="button";
if(this.type==="checkbox"||this.type==="radio"){var c=this.element.parents().filter(":last"),j="label[for='"+this.element.attr("id")+"']";this.buttonElement=c.find(j);this.buttonElement.length||(c=c.length?c.siblings():this.element.siblings(),this.buttonElement=c.filter(j),this.buttonElement.length||(this.buttonElement=c.find(j)));this.element.addClass("ui-helper-hidden-accessible");(c=this.element.is(":checked"))&&this.buttonElement.addClass("ui-state-active");this.buttonElement.attr("aria-pressed",
c)}else this.buttonElement=this.element},widget:function(){return this.buttonElement},destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass("ui-button ui-widget ui-state-default ui-corner-all ui-state-hover ui-state-active  ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only").removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());
this.hasTitle||this.buttonElement.removeAttr("title");a.Widget.prototype.destroy.call(this)},_setOption:function(c,j){a.Widget.prototype._setOption.apply(this,arguments);if(c==="disabled")j?this.element.propAttr("disabled",true):this.element.propAttr("disabled",false);else this._resetButton()},refresh:function(){var c=this.element.is(":disabled");c!==this.options.disabled&&this._setOption("disabled",c);this.type==="radio"?l(this.element[0]).each(function(){a(this).is(":checked")?a(this).button("widget").addClass("ui-state-active").attr("aria-pressed",
"true"):a(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):this.type==="checkbox"&&(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if(this.type==="input")this.options.label&&this.element.val(this.options.label);else{var c=this.buttonElement.removeClass("ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only"),
j=a("<span></span>",this.element[0].ownerDocument).addClass("ui-button-text").html(this.options.label).appendTo(c.empty()).text(),m=this.options.icons,q=m.primary&&m.secondary,s=[];m.primary||m.secondary?(this.options.text&&s.push("ui-button-text-icon"+(q?"s":m.primary?"-primary":"-secondary")),m.primary&&c.prepend("<span class='ui-button-icon-primary ui-icon "+m.primary+"'></span>"),m.secondary&&c.append("<span class='ui-button-icon-secondary ui-icon "+m.secondary+"'></span>"),this.options.text||
(s.push(q?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||c.attr("title",j))):s.push("ui-button-text-only");c.addClass(s.join(" "))}}});a.widget("ui.buttonset",{options:{items:":button, :submit, :reset, :checkbox, :radio, a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(c,j){c==="disabled"&&this.buttons.button("option",c,j);a.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){var c=this.element.css("direction")===
"rtl";this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(c?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(c?"ui-corner-left":"ui-corner-right").end().end()},destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");
a.Widget.prototype.destroy.call(this)}})})(jQuery);
(function(a,b){function e(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._inDialog=this._datepickerShowing=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass=
"ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su",
"Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",
minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false,disabled:false};a.extend(this._defaults,this.regional[""]);this.dpDiv=g(a('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}function g(c){return c.bind("mouseout",
function(j){j=a(j.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");j.length&&j.removeClass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover")}).bind("mouseover",function(j){j=a(j.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");if(!(a.datepicker._isDisabledDatepicker(l.inline?c.parent()[0]:l.input[0])||!j.length)){j.parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");
j.addClass("ui-state-hover");j.hasClass("ui-datepicker-prev")&&j.addClass("ui-datepicker-prev-hover");j.hasClass("ui-datepicker-next")&&j.addClass("ui-datepicker-next-hover")}})}function f(c,j){a.extend(c,j);for(var m in j)if(j[m]==null||j[m]==b)c[m]=j[m];return c}a.extend(a.ui,{datepicker:{version:"1.8.24"}});var h=(new Date).getTime(),l;a.extend(e.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},
setDefaults:function(c){return f(this._defaults,c||{}),this},_attachDatepicker:function(c,j){var m=null;for(var q in this._defaults){var s=c.getAttribute("date:"+q);if(s){m=m||{};try{m[q]=eval(s)}catch(t){m[q]=s}}}q=c.nodeName.toLowerCase();s=q=="div"||q=="span";c.id||(this.uuid+=1,c.id="dp"+this.uuid);var v=this._newInst(a(c),s);v.settings=a.extend({},j||{},m||{});q=="input"?this._connectDatepicker(c,v):s&&this._inlineDatepicker(c,v)},_newInst:function(c,j){return{id:c[0].id.replace(/([^A-Za-z0-9_-])/g,
"\\\\$1"),input:c,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:j,dpDiv:j?g(a('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')):this.dpDiv}},_connectDatepicker:function(c,j){var m=a(c);j.append=a([]);j.trigger=a([]);if(!m.hasClass(this.markerClassName)){this._attachments(m,j);m.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",
function(q,s,t){j.settings[s]=t}).bind("getData.datepicker",function(q,s){return this._get(j,s)});this._autoSize(j);a.data(c,"datepicker",j);j.settings.disabled&&this._disableDatepicker(c)}},_attachments:function(c,j){var m=this._get(j,"appendText"),q=this._get(j,"isRTL");j.append&&j.append.remove();m&&(j.append=a('<span class="'+this._appendClass+'">'+m+"</span>"),c[q?"before":"after"](j.append));c.unbind("focus",this._showDatepicker);j.trigger&&j.trigger.remove();m=this._get(j,"showOn");(m=="focus"||
m=="both")&&c.focus(this._showDatepicker);if(m=="button"||m=="both"){m=this._get(j,"buttonText");var s=this._get(j,"buttonImage");j.trigger=a(this._get(j,"buttonImageOnly")?a("<img/>").addClass(this._triggerClass).attr({src:s,alt:m,title:m}):a('<button type="button"></button>').addClass(this._triggerClass).html(s==""?m:a("<img/>").attr({src:s,alt:m,title:m})));c[q?"before":"after"](j.trigger);j.trigger.click(function(){return a.datepicker._datepickerShowing&&a.datepicker._lastInput==c[0]?a.datepicker._hideDatepicker():
a.datepicker._datepickerShowing&&a.datepicker._lastInput!=c[0]?(a.datepicker._hideDatepicker(),a.datepicker._showDatepicker(c[0])):a.datepicker._showDatepicker(c[0]),false})}},_autoSize:function(c){if(this._get(c,"autoSize")&&!c.inline){var j=new Date(2009,11,20),m=this._get(c,"dateFormat");if(m.match(/[DM]/)){var q=function(s){for(var t=0,v=0,u=0;u<s.length;u++)s[u].length>t&&(t=s[u].length,v=u);return v};j.setMonth(q(this._get(c,m.match(/MM/)?"monthNames":"monthNamesShort")));j.setDate(q(this._get(c,
m.match(/DD/)?"dayNames":"dayNamesShort"))+20-j.getDay())}c.input.attr("size",this._formatDate(c,j).length)}},_inlineDatepicker:function(c,j){var m=a(c);if(!m.hasClass(this.markerClassName)){m.addClass(this.markerClassName).append(j.dpDiv).bind("setData.datepicker",function(q,s,t){j.settings[s]=t}).bind("getData.datepicker",function(q,s){return this._get(j,s)});a.data(c,"datepicker",j);this._setDate(j,this._getDefaultDate(j),true);this._updateDatepicker(j);this._updateAlternate(j);j.settings.disabled&&
this._disableDatepicker(c);j.dpDiv.css("display","block")}},_dialogDatepicker:function(c,j,m,q,s){c=this._dialogInst;if(!c){this.uuid+=1;this._dialogInput=a('<input type="text" id="'+("dp"+this.uuid)+'" style="position: absolute; top: -100px; width: 0px;"/>');this._dialogInput.keydown(this._doKeyDown);a("body").append(this._dialogInput);c=this._dialogInst=this._newInst(this._dialogInput,false);c.settings={};a.data(this._dialogInput[0],"datepicker",c)}f(c.settings,q||{});j=j&&j.constructor==Date?this._formatDate(c,
j):j;this._dialogInput.val(j);this._pos=s?s.length?s:[s.pageX,s.pageY]:null;if(!this._pos)this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)];return this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),c.settings.onSelect=m,this._inDialog=true,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),
a.blockUI&&a.blockUI(this.dpDiv),a.data(this._dialogInput[0],"datepicker",c),this},_destroyDatepicker:function(c){var j=a(c),m=a.data(c,"datepicker");if(j.hasClass(this.markerClassName)){var q=c.nodeName.toLowerCase();a.removeData(c,"datepicker");q=="input"?(m.append.remove(),m.trigger.remove(),j.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):(q=="div"||q=="span")&&j.removeClass(this.markerClassName).empty()}},
_enableDatepicker:function(c){var j=a(c),m=a.data(c,"datepicker");if(j.hasClass(this.markerClassName)){var q=c.nodeName.toLowerCase();if(q=="input"){c.disabled=false;m.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else if(q=="div"||q=="span"){j=j.children("."+this._inlineClass);j.children().removeClass("ui-state-disabled");j.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("disabled")}this._disabledInputs=
a.map(this._disabledInputs,function(s){return s==c?null:s})}},_disableDatepicker:function(c){var j=a(c),m=a.data(c,"datepicker");if(j.hasClass(this.markerClassName)){var q=c.nodeName.toLowerCase();if(q=="input"){c.disabled=true;m.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else if(q=="div"||q=="span"){j=j.children("."+this._inlineClass);j.children().addClass("ui-state-disabled");j.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled",
"disabled")}this._disabledInputs=a.map(this._disabledInputs,function(s){return s==c?null:s});this._disabledInputs[this._disabledInputs.length]=c}},_isDisabledDatepicker:function(c){if(!c)return false;for(var j=0;j<this._disabledInputs.length;j++)if(this._disabledInputs[j]==c)return true;return false},_getInst:function(c){try{return a.data(c,"datepicker")}catch(j){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(c,j,m){var q=this._getInst(c);if(arguments.length==2&&typeof j==
"string")return j=="defaults"?a.extend({},a.datepicker._defaults):q?j=="all"?a.extend({},q.settings):this._get(q,j):null;var s=j||{};typeof j=="string"&&(s={},s[j]=m);if(q){this._curInst==q&&this._hideDatepicker();var t=this._getDateDatepicker(c,true),v=this._getMinMaxDate(q,"min"),u=this._getMinMaxDate(q,"max");f(q.settings,s);v!==null&&s.dateFormat!==b&&s.minDate===b&&(q.settings.minDate=this._formatDate(q,v));u!==null&&s.dateFormat!==b&&s.maxDate===b&&(q.settings.maxDate=this._formatDate(q,u));
this._attachments(a(c),q);this._autoSize(q);this._setDate(q,t);this._updateAlternate(q);this._updateDatepicker(q)}},_changeDatepicker:function(c,j,m){this._optionDatepicker(c,j,m)},_refreshDatepicker:function(c){(c=this._getInst(c))&&this._updateDatepicker(c)},_setDateDatepicker:function(c,j){var m=this._getInst(c);m&&(this._setDate(m,j),this._updateDatepicker(m),this._updateAlternate(m))},_getDateDatepicker:function(c,j){var m=this._getInst(c);return m&&!m.inline&&this._setDateFromField(m,j),m?this._getDate(m):
null},_doKeyDown:function(c){var j=a.datepicker._getInst(c.target),m=true,q=j.dpDiv.is(".ui-datepicker-rtl");j._keyEvent=true;if(a.datepicker._datepickerShowing)switch(c.keyCode){case 9:a.datepicker._hideDatepicker();m=false;break;case 13:m=a("td."+a.datepicker._dayOverClass+":not(."+a.datepicker._currentClass+")",j.dpDiv);m[0]&&a.datepicker._selectDay(c.target,j.selectedMonth,j.selectedYear,m[0]);if(c=a.datepicker._get(j,"onSelect")){m=a.datepicker._formatDate(j);c.apply(j.input?j.input[0]:null,
[m,j])}else a.datepicker._hideDatepicker();return false;case 27:a.datepicker._hideDatepicker();break;case 33:a.datepicker._adjustDate(c.target,c.ctrlKey?-a.datepicker._get(j,"stepBigMonths"):-a.datepicker._get(j,"stepMonths"),"M");break;case 34:a.datepicker._adjustDate(c.target,c.ctrlKey?+a.datepicker._get(j,"stepBigMonths"):+a.datepicker._get(j,"stepMonths"),"M");break;case 35:(c.ctrlKey||c.metaKey)&&a.datepicker._clearDate(c.target);m=c.ctrlKey||c.metaKey;break;case 36:(c.ctrlKey||c.metaKey)&&a.datepicker._gotoToday(c.target);
m=c.ctrlKey||c.metaKey;break;case 37:(c.ctrlKey||c.metaKey)&&a.datepicker._adjustDate(c.target,q?1:-1,"D");m=c.ctrlKey||c.metaKey;c.originalEvent.altKey&&a.datepicker._adjustDate(c.target,c.ctrlKey?-a.datepicker._get(j,"stepBigMonths"):-a.datepicker._get(j,"stepMonths"),"M");break;case 38:(c.ctrlKey||c.metaKey)&&a.datepicker._adjustDate(c.target,-7,"D");m=c.ctrlKey||c.metaKey;break;case 39:(c.ctrlKey||c.metaKey)&&a.datepicker._adjustDate(c.target,q?-1:1,"D");m=c.ctrlKey||c.metaKey;c.originalEvent.altKey&&
a.datepicker._adjustDate(c.target,c.ctrlKey?+a.datepicker._get(j,"stepBigMonths"):+a.datepicker._get(j,"stepMonths"),"M");break;case 40:(c.ctrlKey||c.metaKey)&&a.datepicker._adjustDate(c.target,7,"D");m=c.ctrlKey||c.metaKey;break;default:m=false}else c.keyCode==36&&c.ctrlKey?a.datepicker._showDatepicker(this):m=false;m&&(c.preventDefault(),c.stopPropagation())},_doKeyPress:function(c){var j=a.datepicker._getInst(c.target);if(a.datepicker._get(j,"constrainInput")){j=a.datepicker._possibleChars(a.datepicker._get(j,
"dateFormat"));var m=String.fromCharCode(c.charCode==b?c.keyCode:c.charCode);return c.ctrlKey||c.metaKey||m<" "||!j||j.indexOf(m)>-1}},_doKeyUp:function(c){c=a.datepicker._getInst(c.target);if(c.input.val()!=c.lastVal)try{a.datepicker.parseDate(a.datepicker._get(c,"dateFormat"),c.input?c.input.val():null,a.datepicker._getFormatConfig(c))&&(a.datepicker._setDateFromField(c),a.datepicker._updateAlternate(c),a.datepicker._updateDatepicker(c))}catch(j){a.datepicker.log(j)}return true},_showDatepicker:function(c){c=
c.target||c;c.nodeName.toLowerCase()!="input"&&(c=a("input",c.parentNode)[0]);if(!(a.datepicker._isDisabledDatepicker(c)||a.datepicker._lastInput==c)){var j=a.datepicker._getInst(c);a.datepicker._curInst&&a.datepicker._curInst!=j&&(a.datepicker._curInst.dpDiv.stop(true,true),j&&a.datepicker._datepickerShowing&&a.datepicker._hideDatepicker(a.datepicker._curInst.input[0]));var m=a.datepicker._get(j,"beforeShow");m=m?m.apply(c,[c,j]):{};if(m!==false){f(j.settings,m);j.lastVal=null;a.datepicker._lastInput=
c;a.datepicker._setDateFromField(j);a.datepicker._inDialog&&(c.value="");a.datepicker._pos||(a.datepicker._pos=a.datepicker._findPos(c),a.datepicker._pos[1]+=c.offsetHeight);var q=false;a(c).parents().each(function(){return q|=a(this).css("position")=="fixed",!q});q&&a.browser.opera&&(a.datepicker._pos[0]-=document.documentElement.scrollLeft,a.datepicker._pos[1]-=document.documentElement.scrollTop);m={left:a.datepicker._pos[0],top:a.datepicker._pos[1]};a.datepicker._pos=null;j.dpDiv.empty();j.dpDiv.css({position:"absolute",
display:"block",top:"-1000px"});a.datepicker._updateDatepicker(j);m=a.datepicker._checkOffset(j,m,q);j.dpDiv.css({position:a.datepicker._inDialog&&a.blockUI?"static":q?"fixed":"absolute",display:"none",left:m.left+"px",top:m.top+"px"});if(!j.inline){m=a.datepicker._get(j,"showAnim");var s=a.datepicker._get(j,"duration"),t=function(){var v=j.dpDiv.find("iframe.ui-datepicker-cover");if(v.length){var u=a.datepicker._getBorders(j.dpDiv);v.css({left:-u[0],top:-u[1],width:j.dpDiv.outerWidth(),height:j.dpDiv.outerHeight()})}};
j.dpDiv.zIndex(a(c).zIndex()+1);a.datepicker._datepickerShowing=true;a.effects&&a.effects[m]?j.dpDiv.show(m,a.datepicker._get(j,"showOptions"),s,t):j.dpDiv[m||"show"](m?s:null,t);(!m||!s)&&t();j.input.is(":visible")&&!j.input.is(":disabled")&&j.input.focus();a.datepicker._curInst=j}}}},_updateDatepicker:function(c){this.maxRows=4;var j=a.datepicker._getBorders(c.dpDiv);l=c;c.dpDiv.empty().append(this._generateHTML(c));this._attachHandlers(c);var m=c.dpDiv.find("iframe.ui-datepicker-cover");!m.length||
m.css({left:-j[0],top:-j[1],width:c.dpDiv.outerWidth(),height:c.dpDiv.outerHeight()});c.dpDiv.find("."+this._dayOverClass+" a").mouseover();j=this._getNumberOfMonths(c);m=j[1];c.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");m>1&&c.dpDiv.addClass("ui-datepicker-multi-"+m).css("width",17*m+"em");c.dpDiv[(j[0]!=1||j[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");c.dpDiv[(this._get(c,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");c==a.datepicker._curInst&&
a.datepicker._datepickerShowing&&c.input&&c.input.is(":visible")&&!c.input.is(":disabled")&&c.input[0]!=document.activeElement&&c.input.focus();if(c.yearshtml){var q=c.yearshtml;setTimeout(function(){q===c.yearshtml&&c.yearshtml&&c.dpDiv.find("select.ui-datepicker-year:first").replaceWith(c.yearshtml);q=c.yearshtml=null},0)}},_getBorders:function(c){var j=function(m){return{thin:1,medium:2,thick:3}[m]||m};return[parseFloat(j(c.css("border-left-width"))),parseFloat(j(c.css("border-top-width")))]},
_checkOffset:function(c,j,m){var q=c.dpDiv.outerWidth(),s=c.dpDiv.outerHeight(),t=c.input?c.input.outerWidth():0,v=c.input?c.input.outerHeight():0,u=document.documentElement.clientWidth+(m?0:a(document).scrollLeft()),i=document.documentElement.clientHeight+(m?0:a(document).scrollTop());return j.left-=this._get(c,"isRTL")?q-t:0,j.left-=m&&j.left==c.input.offset().left?a(document).scrollLeft():0,j.top-=m&&j.top==c.input.offset().top+v?a(document).scrollTop():0,j.left-=Math.min(j.left,j.left+q>u&&u>
q?Math.abs(j.left+q-u):0),j.top-=Math.min(j.top,j.top+s>i&&i>s?Math.abs(s+v):0),j},_findPos:function(c){for(var j=this._get(this._getInst(c),"isRTL");c&&(c.type=="hidden"||c.nodeType!=1||a.expr.filters.hidden(c));)c=c[j?"previousSibling":"nextSibling"];c=a(c).offset();return[c.left,c.top]},_hideDatepicker:function(c){var j=this._curInst;if(!(!j||c&&j!=a.data(c,"datepicker")))if(this._datepickerShowing){c=this._get(j,"showAnim");var m=this._get(j,"duration"),q=function(){a.datepicker._tidyDialog(j)};
a.effects&&a.effects[c]?j.dpDiv.hide(c,a.datepicker._get(j,"showOptions"),m,q):j.dpDiv[c=="slideDown"?"slideUp":c=="fadeIn"?"fadeOut":"hide"](c?m:null,q);c||q();this._datepickerShowing=false;(c=this._get(j,"onClose"))&&c.apply(j.input?j.input[0]:null,[j.input?j.input.val():"",j]);this._lastInput=null;this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),a.blockUI&&(a.unblockUI(),a("body").append(this.dpDiv)));this._inDialog=false}},_tidyDialog:function(c){c.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},
_checkExternalClick:function(c){if(a.datepicker._curInst){c=a(c.target);var j=a.datepicker._getInst(c[0]);(c[0].id!=a.datepicker._mainDivId&&c.parents("#"+a.datepicker._mainDivId).length==0&&!c.hasClass(a.datepicker.markerClassName)&&!c.closest("."+a.datepicker._triggerClass).length&&a.datepicker._datepickerShowing&&(!a.datepicker._inDialog||!a.blockUI)||c.hasClass(a.datepicker.markerClassName)&&a.datepicker._curInst!=j)&&a.datepicker._hideDatepicker()}},_adjustDate:function(c,j,m){c=a(c);var q=this._getInst(c[0]);
if(!this._isDisabledDatepicker(c[0])){this._adjustInstDate(q,j+(m=="M"?this._get(q,"showCurrentAtPos"):0),m);this._updateDatepicker(q)}},_gotoToday:function(c){c=a(c);var j=this._getInst(c[0]);if(this._get(j,"gotoCurrent")&&j.currentDay){j.selectedDay=j.currentDay;j.drawMonth=j.selectedMonth=j.currentMonth;j.drawYear=j.selectedYear=j.currentYear}else{var m=new Date;j.selectedDay=m.getDate();j.drawMonth=j.selectedMonth=m.getMonth();j.drawYear=j.selectedYear=m.getFullYear()}this._notifyChange(j);this._adjustDate(c)},
_selectMonthYear:function(c,j,m){c=a(c);var q=this._getInst(c[0]);q["selected"+(m=="M"?"Month":"Year")]=q["draw"+(m=="M"?"Month":"Year")]=parseInt(j.options[j.selectedIndex].value,10);this._notifyChange(q);this._adjustDate(c)},_selectDay:function(c,j,m,q){var s=a(c);if(!(a(q).hasClass(this._unselectableClass)||this._isDisabledDatepicker(s[0]))){s=this._getInst(s[0]);s.selectedDay=s.currentDay=a("a",q).html();s.selectedMonth=s.currentMonth=j;s.selectedYear=s.currentYear=m;this._selectDate(c,this._formatDate(s,
s.currentDay,s.currentMonth,s.currentYear))}},_clearDate:function(c){c=a(c);this._getInst(c[0]);this._selectDate(c,"")},_selectDate:function(c,j){var m=this._getInst(a(c)[0]);j=j!=null?j:this._formatDate(m);m.input&&m.input.val(j);this._updateAlternate(m);var q=this._get(m,"onSelect");q?q.apply(m.input?m.input[0]:null,[j,m]):m.input&&m.input.trigger("change");m.inline?this._updateDatepicker(m):(this._hideDatepicker(),this._lastInput=m.input[0],typeof m.input[0]!="object"&&m.input.focus(),this._lastInput=
null)},_updateAlternate:function(c){var j=this._get(c,"altField");if(j){var m=this._get(c,"altFormat")||this._get(c,"dateFormat"),q=this._getDate(c),s=this.formatDate(m,q,this._getFormatConfig(c));a(j).each(function(){a(this).val(s)})}},noWeekends:function(c){c=c.getDay();return[c>0&&c<6,""]},iso8601Week:function(c){c=new Date(c.getTime());c.setDate(c.getDate()+4-(c.getDay()||7));var j=c.getTime();return c.setMonth(0),c.setDate(1),Math.floor(Math.round((j-c)/864E5)/7)+1},parseDate:function(c,j,m){if(c==
null||j==null)throw"Invalid arguments";j=typeof j=="object"?j.toString():j+"";if(j=="")return null;var q=(m?m.shortYearCutoff:null)||this._defaults.shortYearCutoff;q=typeof q!="string"?q:(new Date).getFullYear()%100+parseInt(q,10);for(var s=(m?m.dayNamesShort:null)||this._defaults.dayNamesShort,t=(m?m.dayNames:null)||this._defaults.dayNames,v=(m?m.monthNamesShort:null)||this._defaults.monthNamesShort,u=(m?m.monthNames:null)||this._defaults.monthNames,i=m=-1,F=-1,J=-1,z=false,L=function(V){V=ba+1<
c.length&&c.charAt(ba+1)==V;return V&&ba++,V},Q=function(V){var ea=L(V);V=RegExp("^\\d{1,"+(V=="@"?14:V=="!"?20:V=="y"&&ea?4:V=="o"?3:2)+"}");V=j.substring(U).match(V);if(!V)throw"Missing number at position "+U;return U+=V[0].length,parseInt(V[0],10)},M=function(V,ea,la){V=a.map(L(V)?la:ea,function(ia,aa){return[[aa,ia]]}).sort(function(ia,aa){return-(ia[1].length-aa[1].length)});var ma=-1;a.each(V,function(ia,aa){var ja=aa[1];if(j.substr(U,ja.length).toLowerCase()==ja.toLowerCase())return ma=aa[0],
U+=ja.length,false});if(ma!=-1)return ma+1;throw"Unknown name at position "+U;},S=function(){if(j.charAt(U)!=c.charAt(ba))throw"Unexpected literal at position "+U;U++},U=0,ba=0;ba<c.length;ba++)if(z)c.charAt(ba)=="'"&&!L("'")?z=false:S();else switch(c.charAt(ba)){case "d":F=Q("d");break;case "D":M("D",s,t);break;case "o":J=Q("o");break;case "m":i=Q("m");break;case "M":i=M("M",v,u);break;case "y":m=Q("y");break;case "@":var Z=new Date(Q("@"));m=Z.getFullYear();i=Z.getMonth()+1;F=Z.getDate();break;
case "!":Z=new Date((Q("!")-this._ticksTo1970)/1E4);m=Z.getFullYear();i=Z.getMonth()+1;F=Z.getDate();break;case "'":L("'")?S():z=true;break;default:S()}if(U<j.length)throw"Extra/unparsed characters found in date: "+j.substring(U);m==-1?m=(new Date).getFullYear():m<100&&(m+=(new Date).getFullYear()-(new Date).getFullYear()%100+(m<=q?0:-100));if(J>-1){i=1;F=J;do{q=this._getDaysInMonth(m,i-1);if(F<=q)break;i++;F-=q}while(1)}Z=this._daylightSavingAdjust(new Date(m,i-1,F));if(Z.getFullYear()!=m||Z.getMonth()+
1!=i||Z.getDate()!=F)throw"Invalid date";return Z},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*1E7,formatDate:function(c,j,m){if(!j)return"";var q=(m?m.dayNamesShort:null)||this._defaults.dayNamesShort,s=(m?m.dayNames:null)||this._defaults.dayNames,
t=(m?m.monthNamesShort:null)||this._defaults.monthNamesShort;m=(m?m.monthNames:null)||this._defaults.monthNames;var v=function(L){L=z+1<c.length&&c.charAt(z+1)==L;return L&&z++,L},u=function(L,Q,M){Q=""+Q;if(v(L))for(;Q.length<M;)Q="0"+Q;return Q},i=function(L,Q,M,S){return v(L)?S[Q]:M[Q]},F="",J=false;if(j)for(var z=0;z<c.length;z++)if(J)c.charAt(z)=="'"&&!v("'")?J=false:F+=c.charAt(z);else switch(c.charAt(z)){case "d":F+=u("d",j.getDate(),2);break;case "D":F+=i("D",j.getDay(),q,s);break;case "o":F+=
u("o",Math.round(((new Date(j.getFullYear(),j.getMonth(),j.getDate())).getTime()-(new Date(j.getFullYear(),0,0)).getTime())/864E5),3);break;case "m":F+=u("m",j.getMonth()+1,2);break;case "M":F+=i("M",j.getMonth(),t,m);break;case "y":F+=v("y")?j.getFullYear():(j.getYear()%100<10?"0":"")+j.getYear()%100;break;case "@":F+=j.getTime();break;case "!":F+=j.getTime()*1E4+this._ticksTo1970;break;case "'":v("'")?F+="'":J=true;break;default:F+=c.charAt(z)}return F},_possibleChars:function(c){for(var j="",m=
false,q=function(t){t=s+1<c.length&&c.charAt(s+1)==t;return t&&s++,t},s=0;s<c.length;s++)if(m)c.charAt(s)=="'"&&!q("'")?m=false:j+=c.charAt(s);else switch(c.charAt(s)){case "d":case "m":case "y":case "@":j+="0123456789";break;case "D":case "M":return null;case "'":q("'")?j+="'":m=true;break;default:j+=c.charAt(s)}return j},_get:function(c,j){return c.settings[j]!==b?c.settings[j]:this._defaults[j]},_setDateFromField:function(c,j){if(c.input.val()!=c.lastVal){var m=this._get(c,"dateFormat"),q=c.lastVal=
c.input?c.input.val():null,s,t;s=t=this._getDefaultDate(c);var v=this._getFormatConfig(c);try{s=this.parseDate(m,q,v)||t}catch(u){this.log(u);q=j?"":q}c.selectedDay=s.getDate();c.drawMonth=c.selectedMonth=s.getMonth();c.drawYear=c.selectedYear=s.getFullYear();c.currentDay=q?s.getDate():0;c.currentMonth=q?s.getMonth():0;c.currentYear=q?s.getFullYear():0;this._adjustInstDate(c)}},_getDefaultDate:function(c){return this._restrictMinMax(c,this._determineDate(c,this._get(c,"defaultDate"),new Date))},_determineDate:function(c,
j,m){var q=function(t){var v=new Date;return v.setDate(v.getDate()+t),v},s=function(t){try{return a.datepicker.parseDate(a.datepicker._get(c,"dateFormat"),t,a.datepicker._getFormatConfig(c))}catch(v){}var u=(t.toLowerCase().match(/^c/)?a.datepicker._getDate(c):null)||new Date,i=u.getFullYear(),F=u.getMonth();u=u.getDate();for(var J=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,z=J.exec(t);z;){switch(z[2]||"d"){case "d":case "D":u+=parseInt(z[1],10);break;case "w":case "W":u+=parseInt(z[1],10)*7;break;case "m":case "M":F+=
parseInt(z[1],10);u=Math.min(u,a.datepicker._getDaysInMonth(i,F));break;case "y":case "Y":i+=parseInt(z[1],10);u=Math.min(u,a.datepicker._getDaysInMonth(i,F))}z=J.exec(t)}return new Date(i,F,u)};j=j==null||j===""?m:typeof j=="string"?s(j):typeof j=="number"?isNaN(j)?m:q(j):new Date(j.getTime());return j=j&&j.toString()=="Invalid Date"?m:j,j&&(j.setHours(0),j.setMinutes(0),j.setSeconds(0),j.setMilliseconds(0)),this._daylightSavingAdjust(j)},_daylightSavingAdjust:function(c){return c?(c.setHours(c.getHours()>
12?c.getHours()+2:0),c):null},_setDate:function(c,j,m){var q=!j,s=c.selectedMonth,t=c.selectedYear;j=this._restrictMinMax(c,this._determineDate(c,j,new Date));c.selectedDay=c.currentDay=j.getDate();c.drawMonth=c.selectedMonth=c.currentMonth=j.getMonth();c.drawYear=c.selectedYear=c.currentYear=j.getFullYear();(s!=c.selectedMonth||t!=c.selectedYear)&&!m&&this._notifyChange(c);this._adjustInstDate(c);c.input&&c.input.val(q?"":this._formatDate(c))},_getDate:function(c){return!c.currentYear||c.input&&
c.input.val()==""?null:this._daylightSavingAdjust(new Date(c.currentYear,c.currentMonth,c.currentDay))},_attachHandlers:function(c){var j=this._get(c,"stepMonths"),m="#"+c.id.replace(/\\\\/g,"\\");c.dpDiv.find("[data-handler]").map(function(){var q={prev:function(){window["DP_jQuery_"+h].datepicker._adjustDate(m,-j,"M")},next:function(){window["DP_jQuery_"+h].datepicker._adjustDate(m,+j,"M")},hide:function(){window["DP_jQuery_"+h].datepicker._hideDatepicker()},today:function(){window["DP_jQuery_"+
h].datepicker._gotoToday(m)},selectDay:function(){return window["DP_jQuery_"+h].datepicker._selectDay(m,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),false},selectMonth:function(){return window["DP_jQuery_"+h].datepicker._selectMonthYear(m,this,"M"),false},selectYear:function(){return window["DP_jQuery_"+h].datepicker._selectMonthYear(m,this,"Y"),false}};a(this).bind(this.getAttribute("data-event"),q[this.getAttribute("data-handler")])})},_generateHTML:function(c){var j=new Date;
j=this._daylightSavingAdjust(new Date(j.getFullYear(),j.getMonth(),j.getDate()));var m=this._get(c,"isRTL"),q=this._get(c,"showButtonPanel"),s=this._get(c,"hideIfNoPrevNext"),t=this._get(c,"navigationAsDateFormat"),v=this._getNumberOfMonths(c),u=this._get(c,"showCurrentAtPos"),i=this._get(c,"stepMonths"),F=v[0]!=1||v[1]!=1,J=this._daylightSavingAdjust(c.currentDay?new Date(c.currentYear,c.currentMonth,c.currentDay):new Date(9999,9,9)),z=this._getMinMaxDate(c,"min"),L=this._getMinMaxDate(c,"max");
u=c.drawMonth-u;var Q=c.drawYear;u<0&&(u+=12,Q--);if(L){var M=this._daylightSavingAdjust(new Date(L.getFullYear(),L.getMonth()-v[0]*v[1]+1,L.getDate()));for(M=z&&M<z?z:M;this._daylightSavingAdjust(new Date(Q,u,1))>M;){u--;u<0&&(u=11,Q--)}}c.drawMonth=u;c.drawYear=Q;M=this._get(c,"prevText");M=t?this.formatDate(M,this._daylightSavingAdjust(new Date(Q,u-i,1)),this._getFormatConfig(c)):M;M=this._canAdjustMonth(c,-1,Q,u)?'<a class="ui-datepicker-prev ui-corner-all" data-handler="prev" data-event="click" title="'+
M+'"><span class="ui-icon ui-icon-circle-triangle-'+(m?"e":"w")+'">'+M+"</span></a>":s?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+M+'"><span class="ui-icon ui-icon-circle-triangle-'+(m?"e":"w")+'">'+M+"</span></a>";var S=this._get(c,"nextText");S=t?this.formatDate(S,this._daylightSavingAdjust(new Date(Q,u+i,1)),this._getFormatConfig(c)):S;s=this._canAdjustMonth(c,1,Q,u)?'<a class="ui-datepicker-next ui-corner-all" data-handler="next" data-event="click" title="'+S+'"><span class="ui-icon ui-icon-circle-triangle-'+
(m?"w":"e")+'">'+S+"</span></a>":s?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+S+'"><span class="ui-icon ui-icon-circle-triangle-'+(m?"w":"e")+'">'+S+"</span></a>";i=this._get(c,"currentText");S=this._get(c,"gotoCurrent")&&c.currentDay?J:j;i=t?this.formatDate(i,S,this._getFormatConfig(c)):i;t=c.inline?"":'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" data-handler="hide" data-event="click">'+this._get(c,"closeText")+
"</button>";q=q?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(m?t:"")+(this._isInRange(c,S)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" data-handler="today" data-event="click">'+i+"</button>":"")+(m?"":t)+"</div>":"";t=parseInt(this._get(c,"firstDay"),10);t=isNaN(t)?0:t;i=this._get(c,"showWeek");S=this._get(c,"dayNames");this._get(c,"dayNamesShort");var U=this._get(c,"dayNamesMin"),ba=this._get(c,"monthNames"),Z=this._get(c,
"monthNamesShort"),V=this._get(c,"beforeShowDay"),ea=this._get(c,"showOtherMonths"),la=this._get(c,"selectOtherMonths");this._get(c,"calculateWeek");for(var ma=this._getDefaultDate(c),ia="",aa=0;aa<v[0];aa++){var ja="";this.maxRows=4;for(var na=0;na<v[1];na++){var ka=this._daylightSavingAdjust(new Date(Q,u,c.selectedDay)),$=" ui-corner-all",ca="";if(F){ca+='<div class="ui-datepicker-group';if(v[1]>1)switch(na){case 0:ca+=" ui-datepicker-group-first";$=" ui-corner-"+(m?"right":"left");break;case v[1]-
1:ca+=" ui-datepicker-group-last";$=" ui-corner-"+(m?"left":"right");break;default:ca+=" ui-datepicker-group-middle";$=""}ca+='">'}ca+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+$+'">'+(/all|left/.test($)&&aa==0?m?s:M:"")+(/all|right/.test($)&&aa==0?m?M:s:"")+this._generateMonthYearHeader(c,u,Q,z,L,aa>0||na>0,ba,Z)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var da=i?'<th class="ui-datepicker-week-col">'+this._get(c,"weekHeader")+"</th>":"";for($=0;$<7;$++){var W=
($+t)%7;da+="<th"+(($+t+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+S[W]+'">'+U[W]+"</span></th>"}ca+=da+"</tr></thead><tbody>";da=this._getDaysInMonth(Q,u);Q==c.selectedYear&&u==c.selectedMonth&&(c.selectedDay=Math.min(c.selectedDay,da));$=(this._getFirstDayOfMonth(Q,u)-t+7)%7;da=Math.ceil(($+da)/7);this.maxRows=da=F?this.maxRows>da?this.maxRows:da:da;W=this._daylightSavingAdjust(new Date(Q,u,1-$));for(var xa=0;xa<da;xa++){ca+="<tr>";var ya=i?'<td class="ui-datepicker-week-col">'+
this._get(c,"calculateWeek")(W)+"</td>":"";for($=0;$<7;$++){var ra=V?V.apply(c.input?c.input[0]:null,[W]):[true,""],oa=W.getMonth()!=u,va=oa&&!la||!ra[0]||z&&W<z||L&&W>L;ya+='<td class="'+(($+t+6)%7>=5?" ui-datepicker-week-end":"")+(oa?" ui-datepicker-other-month":"")+(W.getTime()==ka.getTime()&&u==c.selectedMonth&&c._keyEvent||ma.getTime()==W.getTime()&&ma.getTime()==ka.getTime()?" "+this._dayOverClass:"")+(va?" "+this._unselectableClass+" ui-state-disabled":"")+(oa&&!ea?"":" "+ra[1]+(W.getTime()==
J.getTime()?" "+this._currentClass:"")+(W.getTime()==j.getTime()?" ui-datepicker-today":""))+'"'+((!oa||ea)&&ra[2]?' title="'+ra[2]+'"':"")+(va?"":' data-handler="selectDay" data-event="click" data-month="'+W.getMonth()+'" data-year="'+W.getFullYear()+'"')+">"+(oa&&!ea?"&#xa0;":va?'<span class="ui-state-default">'+W.getDate()+"</span>":'<a class="ui-state-default'+(W.getTime()==j.getTime()?" ui-state-highlight":"")+(W.getTime()==J.getTime()?" ui-state-active":"")+(oa?" ui-priority-secondary":"")+
'" href="#">'+W.getDate()+"</a>")+"</td>";W.setDate(W.getDate()+1);W=this._daylightSavingAdjust(W)}ca+=ya+"</tr>"}u++;u>11&&(u=0,Q++);ca+="</tbody></table>"+(F?"</div>"+(v[0]>0&&na==v[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");ja+=ca}ia+=ja}return ia+=q+(a.browser.msie&&parseInt(a.browser.version,10)<7&&!c.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':""),c._keyEvent=false,ia},_generateMonthYearHeader:function(c,j,m,q,s,t,v,u){var i=
this._get(c,"changeMonth"),F=this._get(c,"changeYear"),J=this._get(c,"showMonthAfterYear"),z='<div class="ui-datepicker-title">',L="";if(t||!i)L+='<span class="ui-datepicker-month">'+v[j]+"</span>";else{v=q&&q.getFullYear()==m;var Q=s&&s.getFullYear()==m;L+='<select class="ui-datepicker-month" data-handler="selectMonth" data-event="change">';for(var M=0;M<12;M++)(!v||M>=q.getMonth())&&(!Q||M<=s.getMonth())&&(L+='<option value="'+M+'"'+(M==j?' selected="selected"':"")+">"+u[M]+"</option>");L+="</select>"}J||
(z+=L+(t||!i||!F?"&#xa0;":""));if(!c.yearshtml){c.yearshtml="";if(t||!F)z+='<span class="ui-datepicker-year">'+m+"</span>";else{u=this._get(c,"yearRange").split(":");var S=(new Date).getFullYear();v=function(U){U=U.match(/c[+-].*/)?m+parseInt(U.substring(1),10):U.match(/[+-].*/)?S+parseInt(U,10):parseInt(U,10);return isNaN(U)?S:U};j=v(u[0]);u=Math.max(j,v(u[1]||""));j=q?Math.max(j,q.getFullYear()):j;u=s?Math.min(u,s.getFullYear()):u;for(c.yearshtml+='<select class="ui-datepicker-year" data-handler="selectYear" data-event="change">';j<=
u;j++)c.yearshtml+='<option value="'+j+'"'+(j==m?' selected="selected"':"")+">"+j+"</option>";c.yearshtml+="</select>";z+=c.yearshtml;c.yearshtml=null}}return z+=this._get(c,"yearSuffix"),J&&(z+=(t||!i||!F?"&#xa0;":"")+L),z+="</div>",z},_adjustInstDate:function(c,j,m){var q=c.drawYear+(m=="Y"?j:0),s=c.drawMonth+(m=="M"?j:0);j=Math.min(c.selectedDay,this._getDaysInMonth(q,s))+(m=="D"?j:0);q=this._restrictMinMax(c,this._daylightSavingAdjust(new Date(q,s,j)));c.selectedDay=q.getDate();c.drawMonth=c.selectedMonth=
q.getMonth();c.drawYear=c.selectedYear=q.getFullYear();(m=="M"||m=="Y")&&this._notifyChange(c)},_restrictMinMax:function(c,j){var m=this._getMinMaxDate(c,"min"),q=this._getMinMaxDate(c,"max");m=m&&j<m?m:j;return m=q&&m>q?q:m,m},_notifyChange:function(c){var j=this._get(c,"onChangeMonthYear");j&&j.apply(c.input?c.input[0]:null,[c.selectedYear,c.selectedMonth+1,c])},_getNumberOfMonths:function(c){c=this._get(c,"numberOfMonths");return c==null?[1,1]:typeof c=="number"?[1,c]:c},_getMinMaxDate:function(c,
j){return this._determineDate(c,this._get(c,j+"Date"),null)},_getDaysInMonth:function(c,j){return 32-this._daylightSavingAdjust(new Date(c,j,32)).getDate()},_getFirstDayOfMonth:function(c,j){return(new Date(c,j,1)).getDay()},_canAdjustMonth:function(c,j,m,q){var s=this._getNumberOfMonths(c);m=this._daylightSavingAdjust(new Date(m,q+(j<0?j:s[0]*s[1]),1));return j<0&&m.setDate(this._getDaysInMonth(m.getFullYear(),m.getMonth())),this._isInRange(c,m)},_isInRange:function(c,j){var m=this._getMinMaxDate(c,
"min"),q=this._getMinMaxDate(c,"max");return(!m||j.getTime()>=m.getTime())&&(!q||j.getTime()<=q.getTime())},_getFormatConfig:function(c){var j=this._get(c,"shortYearCutoff");return j=typeof j!="string"?j:(new Date).getFullYear()%100+parseInt(j,10),{shortYearCutoff:j,dayNamesShort:this._get(c,"dayNamesShort"),dayNames:this._get(c,"dayNames"),monthNamesShort:this._get(c,"monthNamesShort"),monthNames:this._get(c,"monthNames")}},_formatDate:function(c,j,m,q){j||(c.currentDay=c.selectedDay,c.currentMonth=
c.selectedMonth,c.currentYear=c.selectedYear);j=j?typeof j=="object"?j:this._daylightSavingAdjust(new Date(q,m,j)):this._daylightSavingAdjust(new Date(c.currentYear,c.currentMonth,c.currentDay));return this.formatDate(this._get(c,"dateFormat"),j,this._getFormatConfig(c))}});a.fn.datepicker=function(c){if(!this.length)return this;a.datepicker.initialized||(a(document).mousedown(a.datepicker._checkExternalClick).find("body").append(a.datepicker.dpDiv),a.datepicker.initialized=true);var j=Array.prototype.slice.call(arguments,
1);return typeof c!="string"||c!="isDisabled"&&c!="getDate"&&c!="widget"?c=="option"&&arguments.length==2&&typeof arguments[1]=="string"?a.datepicker["_"+c+"Datepicker"].apply(a.datepicker,[this[0]].concat(j)):this.each(function(){typeof c=="string"?a.datepicker["_"+c+"Datepicker"].apply(a.datepicker,[this].concat(j)):a.datepicker._attachDatepicker(this,c)}):a.datepicker["_"+c+"Datepicker"].apply(a.datepicker,[this[0]].concat(j))};a.datepicker=new e;a.datepicker.initialized=false;a.datepicker.uuid=
(new Date).getTime();a.datepicker.version="1.8.24";window["DP_jQuery_"+h]=a})(jQuery);
(function(a,b){var e={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},g={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true};a.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:{my:"center",at:"center",collision:"fit",using:function(f){var h=a(this).css(f).offset().top;h<0&&
a(this).css("top",f.top-h)}},resizable:true,show:null,stack:true,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");typeof this.originalTitle!="string"&&(this.originalTitle="");this.options.title=this.options.title||this.originalTitle;var f=this,h=f.options,l=h.title||"&#160;",c=a.ui.dialog.getTitleId(f.element),j=(f.uiDialog=a("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+h.dialogClass).css({zIndex:h.zIndex}).attr("tabIndex",
-1).css("outline",0).keydown(function(s){h.closeOnEscape&&!s.isDefaultPrevented()&&s.keyCode&&s.keyCode===a.ui.keyCode.ESCAPE&&(f.close(s),s.preventDefault())}).attr({role:"dialog","aria-labelledby":c}).mousedown(function(s){f.moveToTop(false,s)});f.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(j);var m=(f.uiDialogTitlebar=a("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(j),q=a('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role",
"button").hover(function(){q.addClass("ui-state-hover")},function(){q.removeClass("ui-state-hover")}).focus(function(){q.addClass("ui-state-focus")}).blur(function(){q.removeClass("ui-state-focus")}).click(function(s){return f.close(s),false}).appendTo(m);(f.uiDialogTitlebarCloseText=a("<span></span>")).addClass("ui-icon ui-icon-closethick").text(h.closeText).appendTo(q);a("<span></span>").addClass("ui-dialog-title").attr("id",c).html(l).prependTo(m);a.isFunction(h.beforeclose)&&!a.isFunction(h.beforeClose)&&
(h.beforeClose=h.beforeclose);m.find("*").add(m).disableSelection();h.draggable&&a.fn.draggable&&f._makeDraggable();h.resizable&&a.fn.resizable&&f._makeResizable();f._createButtons(h.buttons);f._isOpen=false;a.fn.bgiframe&&j.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){return this.overlay&&this.overlay.destroy(),this.uiDialog.hide(),this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body"),
this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),this},widget:function(){return this.uiDialog},close:function(f){var h=this,l,c;if(false!==h._trigger("beforeClose",f))return h.overlay&&h.overlay.destroy(),h.uiDialog.unbind("keypress.ui-dialog"),h._isOpen=false,h.options.hide?h.uiDialog.hide(h.options.hide,function(){h._trigger("close",f)}):(h.uiDialog.hide(),h._trigger("close",f)),a.ui.dialog.overlay.resize(),h.options.modal&&(l=0,a(".ui-dialog").each(function(){this!==
h.uiDialog[0]&&(c=a(this).css("z-index"),isNaN(c)||(l=Math.max(l,c)))}),a.ui.dialog.maxZ=l),h},isOpen:function(){return this._isOpen},moveToTop:function(f,h){var l=this.options,c;return l.modal&&!f||!l.stack&&!l.modal?this._trigger("focus",h):(l.zIndex>a.ui.dialog.maxZ&&(a.ui.dialog.maxZ=l.zIndex),this.overlay&&(a.ui.dialog.maxZ+=1,this.overlay.$el.css("z-index",a.ui.dialog.overlay.maxZ=a.ui.dialog.maxZ)),c={scrollTop:this.element.scrollTop(),scrollLeft:this.element.scrollLeft()},a.ui.dialog.maxZ+=
1,this.uiDialog.css("z-index",a.ui.dialog.maxZ),this.element.attr(c),this._trigger("focus",h),this)},open:function(){if(!this._isOpen){var f=this.options,h=this.uiDialog;return this.overlay=f.modal?new a.ui.dialog.overlay(this):null,this._size(),this._position(f.position),h.show(f.show),this.moveToTop(true),f.modal&&h.bind("keydown.ui-dialog",function(l){if(l.keyCode===a.ui.keyCode.TAB){var c=a(":tabbable",this),j=c.filter(":first");c=c.filter(":last");if(l.target===c[0]&&!l.shiftKey)return j.focus(1),
false;if(l.target===j[0]&&l.shiftKey)return c.focus(1),false}}),a(this.element.find(":tabbable").get().concat(h.find(".ui-dialog-buttonpane :tabbable").get().concat(h.get()))).eq(0).focus(),this._isOpen=true,this._trigger("open"),this}},_createButtons:function(f){var h=this,l=false,c=a("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),j=a("<div></div>").addClass("ui-dialog-buttonset").appendTo(c);h.uiDialog.find(".ui-dialog-buttonpane").remove();typeof f=="object"&&
f!==null&&a.each(f,function(){return!(l=true)});l&&(a.each(f,function(m,q){q=a.isFunction(q)?{click:q,text:m}:q;var s=a('<button type="button"></button>').click(function(){q.click.apply(h.element[0],arguments)}).appendTo(j);a.each(q,function(t,v){if(t!=="click")t in s?s[t](v):s.attr(t,v)});a.fn.button&&s.button()}),c.appendTo(h.uiDialog))},_makeDraggable:function(){function f(m){return{position:m.position,offset:m.offset}}var h=this,l=h.options,c=a(document),j;h.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",
handle:".ui-dialog-titlebar",containment:"document",start:function(m,q){j=l.height==="auto"?"auto":a(this).height();a(this).height(a(this).height()).addClass("ui-dialog-dragging");h._trigger("dragStart",m,f(q))},drag:function(m,q){h._trigger("drag",m,f(q))},stop:function(m,q){l.position=[q.position.left-c.scrollLeft(),q.position.top-c.scrollTop()];a(this).removeClass("ui-dialog-dragging").height(j);h._trigger("dragStop",m,f(q));a.ui.dialog.overlay.resize()}})},_makeResizable:function(f){function h(m){return{originalPosition:m.originalPosition,
originalSize:m.originalSize,position:m.position,size:m.size}}f=f===b?this.options.resizable:f;var l=this,c=l.options,j=l.uiDialog.css("position");f=typeof f=="string"?f:"n,e,s,w,se,sw,ne,nw";l.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:l.element,maxWidth:c.maxWidth,maxHeight:c.maxHeight,minWidth:c.minWidth,minHeight:l._minHeight(),handles:f,start:function(m,q){a(this).addClass("ui-dialog-resizing");l._trigger("resizeStart",m,h(q))},resize:function(m,q){l._trigger("resize",
m,h(q))},stop:function(m,q){a(this).removeClass("ui-dialog-resizing");c.height=a(this).height();c.width=a(this).width();l._trigger("resizeStop",m,h(q));a.ui.dialog.overlay.resize()}}).css("position",j).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var f=this.options;return f.height==="auto"?f.minHeight:Math.min(f.minHeight,f.height)},_position:function(f){var h=[],l=[0,0],c;if(f){if(typeof f=="string"||typeof f=="object"&&"0"in f){h=f.split?f.split(" "):
[f[0],f[1]];h.length===1&&(h[1]=h[0]);a.each(["left","top"],function(j,m){+h[j]===h[j]&&(l[j]=h[j],h[j]=m)});f={my:h.join(" "),at:h.join(" "),offset:l.join(" ")}}f=a.extend({},a.ui.dialog.prototype.options.position,f)}else f=a.ui.dialog.prototype.options.position;(c=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(a.extend({of:window},f));c||this.uiDialog.hide()},_setOptions:function(f){var h=this,l={},c=false;a.each(f,function(j,m){h._setOption(j,m);
j in e&&(c=true);j in g&&(l[j]=m)});c&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",l)},_setOption:function(f,h){var l=this.uiDialog;switch(f){case "beforeclose":f="beforeClose";break;case "buttons":this._createButtons(h);break;case "closeText":this.uiDialogTitlebarCloseText.text(""+h);break;case "dialogClass":l.removeClass(this.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+h);break;case "disabled":h?l.addClass("ui-dialog-disabled"):
l.removeClass("ui-dialog-disabled");break;case "draggable":var c=l.is(":data(draggable)");c&&!h&&l.draggable("destroy");!c&&h&&this._makeDraggable();break;case "position":this._position(h);break;case "resizable":(c=l.is(":data(resizable)"))&&!h&&l.resizable("destroy");c&&typeof h=="string"&&l.resizable("option","handles",h);!c&&h!==false&&this._makeResizable(h);break;case "title":a(".ui-dialog-title",this.uiDialogTitlebar).html(""+(h||"&#160;"))}a.Widget.prototype._setOption.apply(this,arguments)},
_size:function(){var f=this.options,h,l,c=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});f.minWidth>f.width&&(f.width=f.minWidth);h=this.uiDialog.css({height:"auto",width:f.width}).height();l=Math.max(0,f.minHeight-h);if(f.height==="auto")if(a.support.minHeight)this.element.css({minHeight:l,height:"auto"});else{this.uiDialog.show();f=this.element.css("height","auto").height();c||this.uiDialog.hide();this.element.height(Math.max(f,l))}else this.element.height(Math.max(f.height-
h,0));this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});a.extend(a.ui.dialog,{version:"1.8.24",uuid:0,maxZ:0,getTitleId:function(f){f=f.attr("id");return f||(this.uuid+=1,f=this.uuid),"ui-dialog-title-"+f},overlay:function(f){this.$el=a.ui.dialog.overlay.create(f)}});a.extend(a.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:a.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(f){return f+".dialog-overlay"}).join(" "),
create:function(f){this.instances.length===0&&(setTimeout(function(){a.ui.dialog.overlay.instances.length&&a(document).bind(a.ui.dialog.overlay.events,function(l){if(a(l.target).zIndex()<a.ui.dialog.overlay.maxZ)return false})},1),a(document).bind("keydown.dialog-overlay",function(l){f.options.closeOnEscape&&!l.isDefaultPrevented()&&l.keyCode&&l.keyCode===a.ui.keyCode.ESCAPE&&(f.close(l),l.preventDefault())}),a(window).bind("resize.dialog-overlay",a.ui.dialog.overlay.resize));var h=(this.oldInstances.pop()||
a("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});return a.fn.bgiframe&&h.bgiframe(),this.instances.push(h),h},destroy:function(f){var h=a.inArray(f,this.instances);h!=-1&&this.oldInstances.push(this.instances.splice(h,1)[0]);this.instances.length===0&&a([document,window]).unbind(".dialog-overlay");f.remove();var l=0;a.each(this.instances,function(){l=Math.max(l,this.css("z-index"))});this.maxZ=l},height:function(){var f,h;return a.browser.msie&&
a.browser.version<7?(f=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),h=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight),f<h?a(window).height()+"px":f+"px"):a(document).height()+"px"},width:function(){var f,h;return a.browser.msie?(f=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),h=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth),f<h?a(window).width()+"px":f+"px"):a(document).width()+"px"},resize:function(){var f=
a([]);a.each(a.ui.dialog.overlay.instances,function(){f=f.add(this)});f.css({width:0,height:0}).css({width:a.ui.dialog.overlay.width(),height:a.ui.dialog.overlay.height()})}});a.extend(a.ui.dialog.overlay.prototype,{destroy:function(){a.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);
(function(a){a.ui=a.ui||{};var b=/left|center|right/,e=/top|center|bottom/,g={},f=a.fn.position,h=a.fn.offset;a.fn.position=function(l){if(!l||!l.of)return f.apply(this,arguments);l=a.extend({},l);var c=a(l.of),j=c[0],m=(l.collision||"flip").split(" "),q=l.offset?l.offset.split(" "):[0,0],s,t,v;return j.nodeType===9?(s=c.width(),t=c.height(),v={top:0,left:0}):j.setTimeout?(s=c.width(),t=c.height(),v={top:c.scrollTop(),left:c.scrollLeft()}):j.preventDefault?(l.at="left top",s=t=0,v={top:l.of.pageY,
left:l.of.pageX}):(s=c.outerWidth(),t=c.outerHeight(),v=c.offset()),a.each(["my","at"],function(){var u=(l[this]||"").split(" ");u.length===1&&(u=b.test(u[0])?u.concat(["center"]):e.test(u[0])?["center"].concat(u):["center","center"]);u[0]=b.test(u[0])?u[0]:"center";u[1]=e.test(u[1])?u[1]:"center";l[this]=u}),m.length===1&&(m[1]=m[0]),q[0]=parseInt(q[0],10)||0,q.length===1&&(q[1]=q[0]),q[1]=parseInt(q[1],10)||0,l.at[0]==="right"?v.left+=s:l.at[0]==="center"&&(v.left+=s/2),l.at[1]==="bottom"?v.top+=
t:l.at[1]==="center"&&(v.top+=t/2),v.left+=q[0],v.top+=q[1],this.each(function(){var u=a(this),i=u.outerWidth(),F=u.outerHeight(),J=parseInt(a.curCSS(this,"marginLeft",true))||0,z=parseInt(a.curCSS(this,"marginTop",true))||0,L=i+J+(parseInt(a.curCSS(this,"marginRight",true))||0),Q=F+z+(parseInt(a.curCSS(this,"marginBottom",true))||0),M=a.extend({},v),S;l.my[0]==="right"?M.left-=i:l.my[0]==="center"&&(M.left-=i/2);l.my[1]==="bottom"?M.top-=F:l.my[1]==="center"&&(M.top-=F/2);g.fractions||(M.left=Math.round(M.left),
M.top=Math.round(M.top));S={left:M.left-J,top:M.top-z};a.each(["left","top"],function(U,ba){a.ui.position[m[U]]&&a.ui.position[m[U]][ba](M,{targetWidth:s,targetHeight:t,elemWidth:i,elemHeight:F,collisionPosition:S,collisionWidth:L,collisionHeight:Q,offset:q,my:l.my,at:l.at})});a.fn.bgiframe&&u.bgiframe();u.offset(a.extend(M,{using:l.using}))})};a.ui.position={fit:{left:function(l,c){var j=a(window);j=c.collisionPosition.left+c.collisionWidth-j.width()-j.scrollLeft();l.left=j>0?l.left-j:Math.max(l.left-
c.collisionPosition.left,l.left)},top:function(l,c){var j=a(window);j=c.collisionPosition.top+c.collisionHeight-j.height()-j.scrollTop();l.top=j>0?l.top-j:Math.max(l.top-c.collisionPosition.top,l.top)}},flip:{left:function(l,c){if(c.at[0]!=="center"){var j=a(window);j=c.collisionPosition.left+c.collisionWidth-j.width()-j.scrollLeft();var m=c.my[0]==="left"?-c.elemWidth:c.my[0]==="right"?c.elemWidth:0,q=c.at[0]==="left"?c.targetWidth:-c.targetWidth,s=-2*c.offset[0];l.left+=c.collisionPosition.left<
0?m+q+s:j>0?m+q+s:0}},top:function(l,c){if(c.at[1]!=="center"){var j=a(window);j=c.collisionPosition.top+c.collisionHeight-j.height()-j.scrollTop();var m=c.my[1]==="top"?-c.elemHeight:c.my[1]==="bottom"?c.elemHeight:0,q=c.at[1]==="top"?c.targetHeight:-c.targetHeight,s=-2*c.offset[1];l.top+=c.collisionPosition.top<0?m+q+s:j>0?m+q+s:0}}}};a.offset.setOffset||(a.offset.setOffset=function(l,c){/static/.test(a.curCSS(l,"position"))&&(l.style.position="relative");var j=a(l),m=j.offset(),q=parseInt(a.curCSS(l,
"top",true),10)||0,s=parseInt(a.curCSS(l,"left",true),10)||0;m={top:c.top-m.top+q,left:c.left-m.left+s};"using"in c?c.using.call(l,m):j.css(m)},a.fn.offset=function(l){var c=this[0];return!c||!c.ownerDocument?null:l?a.isFunction(l)?this.each(function(j){a(this).offset(l.call(this,j,a(this).offset()))}):this.each(function(){a.offset.setOffset(this,l)}):h.call(this)});a.curCSS||(a.curCSS=a.css);(function(){var l=document.getElementsByTagName("body")[0],c=document.createElement("div"),j,m;j=document.createElement(l?
"div":"body");m={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};l&&a.extend(m,{position:"absolute",left:"-1000px",top:"-1000px"});for(var q in m)j.style[q]=m[q];j.appendChild(c);m=l||document.documentElement;m.insertBefore(j,m.firstChild);c.style.cssText="position: absolute; left: 10.7432222px; top: 10.432325px; height: 30px; width: 201px;";c=a(c).offset(function(s,t){return t}).offset();j.innerHTML="";m.removeChild(j);l=c.top+c.left+(l?2E3:0);g.fractions=l>21&&l<22})()})(jQuery);
(function(a,b){a.widget("ui.progressbar",{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=a("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").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();a.Widget.prototype.destroy.apply(this,arguments)},value:function(e){return e===b?this._value():(this._setOption("value",e),this)},_setOption:function(e,g){e==="value"&&(this.options.value=g,this._refreshValue(),this._value()===this.options.max&&this._trigger("complete"));a.Widget.prototype._setOption.apply(this,arguments)},_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(),g=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(g.toFixed(0)+"%");this.element.attr("aria-valuenow",e)}});a.extend(a.ui.progressbar,{version:"1.8.24"})})(jQuery);
(function(a){a.widget("ui.slider",a.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var b=this,e=this.options,g=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),f=e.values&&e.values.length||1,h=[];this._mouseSliding=this._keySliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+
this.orientation+" ui-widget ui-widget-content ui-corner-all"+(e.disabled?" ui-slider-disabled ui-disabled":""));this.range=a([]);e.range&&(e.range===true&&(e.values||(e.values=[this._valueMin(),this._valueMin()]),e.values.length&&e.values.length!==2&&(e.values=[e.values[0],e.values[0]])),this.range=a("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+(e.range==="min"||e.range==="max"?" ui-slider-range-"+e.range:"")));for(var l=g.length;l<f;l+=1)h.push("<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>");
this.handles=g.add(a(h.join("")).appendTo(b.element));this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(c){c.preventDefault()}).hover(function(){e.disabled||a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")}).focus(function(){e.disabled?a(this).blur():(a(".ui-slider .ui-state-focus").removeClass("ui-state-focus"),a(this).addClass("ui-state-focus"))}).blur(function(){a(this).removeClass("ui-state-focus")});this.handles.each(function(c){a(this).data("index.ui-slider-handle",
c)});this.handles.keydown(function(c){var j=a(this).data("index.ui-slider-handle"),m,q,s;if(!b.options.disabled){switch(c.keyCode){case a.ui.keyCode.HOME:case a.ui.keyCode.END:case a.ui.keyCode.PAGE_UP:case a.ui.keyCode.PAGE_DOWN:case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:c.preventDefault();if(!b._keySliding){b._keySliding=true;a(this).addClass("ui-state-active");m=b._start(c,j);if(m===false)return}}m=b.options.step;b.options.values&&b.options.values.length?
q=s=b.values(j):q=s=b.value();switch(c.keyCode){case a.ui.keyCode.HOME:s=b._valueMin();break;case a.ui.keyCode.END:s=b._valueMax();break;case a.ui.keyCode.PAGE_UP:s=b._trimAlignValue(q+(b._valueMax()-b._valueMin())/5);break;case a.ui.keyCode.PAGE_DOWN:s=b._trimAlignValue(q-(b._valueMax()-b._valueMin())/5);break;case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(q===b._valueMax())return;s=b._trimAlignValue(q+m);break;case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(q===b._valueMin())return;s=b._trimAlignValue(q-
m)}b._slide(c,j,s)}}).keyup(function(c){var j=a(this).data("index.ui-slider-handle");b._keySliding&&(b._keySliding=false,b._stop(c,j),b._change(c,j),a(this).removeClass("ui-state-active"))});this._refreshValue();this._animateOff=false},destroy:function(){return this.handles.remove(),this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider"),this._mouseDestroy(),
this},_mouseCapture:function(b){var e=this.options,g,f,h,l,c,j,m,q,s;return e.disabled?false:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),g={x:b.pageX,y:b.pageY},f=this._normValueFromMouse(g),h=this._valueMax()-this._valueMin()+1,c=this,this.handles.each(function(t){var v=Math.abs(f-c.values(t));h>v&&(h=v,l=a(this),j=t)}),e.range===true&&this.values(1)===e.min&&(j+=1,l=a(this.handles[j])),m=this._start(b,j),m===false?
false:(this._mouseSliding=true,c._handleIndex=j,l.addClass("ui-state-active").focus(),q=l.offset(),s=!a(b.target).parents().andSelf().is(".ui-slider-handle"),this._clickOffset=s?{left:0,top:0}:{left:b.pageX-q.left-l.width()/2,top:b.pageY-q.top-l.height()/2-(parseInt(l.css("borderTopWidth"),10)||0)-(parseInt(l.css("borderBottomWidth"),10)||0)+(parseInt(l.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(b,j,f),this._animateOff=true,true))},_mouseStart:function(){return true},
_mouseDrag:function(b){var e=this._normValueFromMouse({x:b.pageX,y:b.pageY});return this._slide(b,this._handleIndex,e),false},_mouseStop:function(b){return this.handles.removeClass("ui-state-active"),this._mouseSliding=false,this._stop(b,this._handleIndex),this._change(b,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=false,false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(b){var e,
g,f,h,l;return this.orientation==="horizontal"?b.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0):(e=this.elementSize.height,g=b.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),f=g/e,f>1&&(f=1),f<0&&0,this.orientation==="vertical"&&(f=1-f),h=this._valueMax()-this._valueMin(),l=this._valueMin()+f*h,this._trimAlignValue(l)},_start:function(b,e){var g={handle:this.handles[e],value:this.value()};return this.options.values&&this.options.values.length&&(g.value=
this.values(e),g.values=this.values()),this._trigger("start",b,g)},_slide:function(b,e,g){var f,h,l;this.options.values&&this.options.values.length?(f=this.values(e?0:1),this.options.values.length===2&&this.options.range===true&&(e===0&&g>f||e===1&&g<f)&&(g=f),g!==this.values(e)&&(h=this.values(),h[e]=g,l=this._trigger("slide",b,{handle:this.handles[e],value:g,values:h}),this.values(e?0:1),l!==false&&this.values(e,g,true))):g!==this.value()&&(l=this._trigger("slide",b,{handle:this.handles[e],value:g}),
l!==false&&this.value(g))},_stop:function(b,e){var g={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(g.value=this.values(e),g.values=this.values());this._trigger("stop",b,g)},_change:function(b,e){if(!this._keySliding&&!this._mouseSliding){var g={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(g.value=this.values(e),g.values=this.values());this._trigger("change",b,g)}},value:function(b){if(arguments.length){this.options.value=
this._trimAlignValue(b);this._refreshValue();this._change(null,0)}else return this._value()},values:function(b,e){var g,f,h;if(arguments.length>1){this.options.values[b]=this._trimAlignValue(e);this._refreshValue();this._change(null,b)}else{if(!arguments.length)return this._values();if(!a.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(b):this.value();g=this.options.values;f=arguments[0];for(h=0;h<g.length;h+=1){g[h]=this._trimAlignValue(f[h]);this._change(null,
h)}this._refreshValue()}},_setOption:function(b,e){var g,f=0;a.isArray(this.options.values)&&(f=this.options.values.length);a.Widget.prototype._setOption.apply(this,arguments);switch(b){case "disabled":e?(this.handles.filter(".ui-state-focus").blur(),this.handles.removeClass("ui-state-hover"),this.handles.propAttr("disabled",true),this.element.addClass("ui-disabled")):(this.handles.propAttr("disabled",false),this.element.removeClass("ui-disabled"));break;case "orientation":this._detectOrientation();
this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();break;case "value":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case "values":this._animateOff=true;this._refreshValue();for(g=0;g<f;g+=1)this._change(null,g);this._animateOff=false}},_value:function(){var b=this.options.value;return b=this._trimAlignValue(b),b},_values:function(){var b,e;if(arguments.length)return b=this._trimAlignValue(b),
b;b=this.options.values.slice();for(e=0;e<b.length;e+=1)b[e]=this._trimAlignValue(b[e]);return b},_trimAlignValue:function(b){if(b<=this._valueMin())return this._valueMin();if(b>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,g=(b-this._valueMin())%e;b=b-g;return Math.abs(g)*2>=e&&(b+=g>0?e:-e),parseFloat(b.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var b=this.options.range,
e=this.options,g=this,f=this._animateOff?false:e.animate,h,l={},c,j,m,q;this.options.values&&this.options.values.length?this.handles.each(function(s){h=(g.values(s)-g._valueMin())/(g._valueMax()-g._valueMin())*100;l[g.orientation==="horizontal"?"left":"bottom"]=h+"%";a(this).stop(1,1)[f?"animate":"css"](l,e.animate);g.options.range===true&&(g.orientation==="horizontal"?(s===0&&g.range.stop(1,1)[f?"animate":"css"]({left:h+"%"},e.animate),s===1&&g.range[f?"animate":"css"]({width:h-c+"%"},{queue:false,
duration:e.animate})):(s===0&&g.range.stop(1,1)[f?"animate":"css"]({bottom:h+"%"},e.animate),s===1&&g.range[f?"animate":"css"]({height:h-c+"%"},{queue:false,duration:e.animate})));c=h}):(j=this.value(),m=this._valueMin(),q=this._valueMax(),h=q!==m?(j-m)/(q-m)*100:0,l[g.orientation==="horizontal"?"left":"bottom"]=h+"%",this.handle.stop(1,1)[f?"animate":"css"](l,e.animate),b==="min"&&this.orientation==="horizontal"&&this.range.stop(1,1)[f?"animate":"css"]({width:h+"%"},e.animate),b==="max"&&this.orientation===
"horizontal"&&this.range[f?"animate":"css"]({width:100-h+"%"},{queue:false,duration:e.animate}),b==="min"&&this.orientation==="vertical"&&this.range.stop(1,1)[f?"animate":"css"]({height:h+"%"},e.animate),b==="max"&&this.orientation==="vertical"&&this.range[f?"animate":"css"]({height:100-h+"%"},{queue:false,duration:e.animate}))}});a.extend(a.ui.slider,{version:"1.8.24"})})(jQuery);
(function(a,b){var e=0,g=0;a.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading&#8230;</em>",tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},_create:function(){this._tabify(true)},_setOption:function(f,h){if(f=="selected")this.options.collapsible&&h==this.options.selected||
this.select(h);else{this.options[f]=h;this._tabify()}},_tabId:function(f){return f.title&&f.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+ ++e},_sanitizeSelector:function(f){return f.replace(/:/g,"\\:")},_cookie:function(){var f=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+ ++g);return a.cookie.apply(null,[f].concat(a.makeArray(arguments)))},_ui:function(f,h){return{tab:f,panel:h,index:this.anchors.index(f)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var f=
a(this);f.html(f.data("label.tabs")).removeData("label.tabs")})},_tabify:function(f){function h(i,F){i.css("display","");!a.support.opacity&&F.opacity&&i[0].style.removeAttribute("filter")}var l=this,c=this.options,j=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=a(" > li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return a("a",this)[0]});this.panels=a([]);this.anchors.each(function(i,F){var J=a(F).attr("href"),z=J.split("#")[0],L;z&&(z===location.toString().split("#")[0]||
(L=a("base")[0])&&z===L.href)&&(J=F.hash,F.href=J);if(j.test(J))l.panels=l.panels.add(l.element.find(l._sanitizeSelector(J)));else if(J&&J!=="#"){a.data(F,"href.tabs",J);a.data(F,"load.tabs",J.replace(/#.*$/,""));J=l._tabId(F);F.href="#"+J;z=l.element.find("#"+J);z.length||(z=a(c.panelTemplate).attr("id",J).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(l.panels[i-1]||l.list),z.data("destroy.tabs",true));l.panels=l.panels.add(z)}else c.disabled.push(i)});f?(this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all"),
this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"),this.lis.addClass("ui-state-default ui-corner-top"),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom"),c.selected===b?(location.hash&&this.anchors.each(function(i,F){if(F.hash==location.hash)return c.selected=i,false}),typeof c.selected!="number"&&c.cookie&&(c.selected=parseInt(l._cookie(),10)),typeof c.selected!="number"&&this.lis.filter(".ui-tabs-selected").length&&(c.selected=
this.lis.index(this.lis.filter(".ui-tabs-selected"))),c.selected=c.selected||(this.lis.length?0:-1)):c.selected===null&&(c.selected=-1),c.selected=c.selected>=0&&this.anchors[c.selected]||c.selected<0?c.selected:0,c.disabled=a.unique(c.disabled.concat(a.map(this.lis.filter(".ui-state-disabled"),function(i){return l.lis.index(i)}))).sort(),a.inArray(c.selected,c.disabled)!=-1&&c.disabled.splice(a.inArray(c.selected,c.disabled),1),this.panels.addClass("ui-tabs-hide"),this.lis.removeClass("ui-tabs-selected ui-state-active"),
c.selected>=0&&this.anchors.length&&(l.element.find(l._sanitizeSelector(l.anchors[c.selected].hash)).removeClass("ui-tabs-hide"),this.lis.eq(c.selected).addClass("ui-tabs-selected ui-state-active"),l.element.queue("tabs",function(){l._trigger("show",null,l._ui(l.anchors[c.selected],l.element.find(l._sanitizeSelector(l.anchors[c.selected].hash))[0]))}),this.load(c.selected)),a(window).bind("unload",function(){l.lis.add(l.anchors).unbind(".tabs");l.lis=l.anchors=l.panels=null})):c.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));
this.element[c.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");c.cookie&&this._cookie(c.selected,c.cookie);f=0;for(var m;m=this.lis[f];f++)a(m)[a.inArray(f,c.disabled)!=-1&&!a(m).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");c.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(c.event!=="mouseover"){var q=function(i,F){F.is(":not(.ui-state-disabled)")&&F.addClass("ui-state-"+i)};this.lis.bind("mouseover.tabs",
function(){q("hover",a(this))});this.lis.bind("mouseout.tabs",function(){a(this).removeClass("ui-state-hover")});this.anchors.bind("focus.tabs",function(){q("focus",a(this).closest("li"))});this.anchors.bind("blur.tabs",function(){a(this).closest("li").removeClass("ui-state-focus")})}var s,t;c.fx&&(a.isArray(c.fx)?(s=c.fx[0],t=c.fx[1]):s=t=c.fx);var v=t?function(i,F){a(i).closest("li").addClass("ui-tabs-selected ui-state-active");F.hide().removeClass("ui-tabs-hide").animate(t,t.duration||"normal",
function(){h(F,t);l._trigger("show",null,l._ui(i,F[0]))})}:function(i,F){a(i).closest("li").addClass("ui-tabs-selected ui-state-active");F.removeClass("ui-tabs-hide");l._trigger("show",null,l._ui(i,F[0]))},u=s?function(i,F){F.animate(s,s.duration||"normal",function(){l.lis.removeClass("ui-tabs-selected ui-state-active");F.addClass("ui-tabs-hide");h(F,s);l.element.dequeue("tabs")})}:function(i,F){l.lis.removeClass("ui-tabs-selected ui-state-active");F.addClass("ui-tabs-hide");l.element.dequeue("tabs")};
this.anchors.bind(c.event+".tabs",function(){var i=this,F=a(i).closest("li"),J=l.panels.filter(":not(.ui-tabs-hide)"),z=l.element.find(l._sanitizeSelector(i.hash));if(F.hasClass("ui-tabs-selected")&&!c.collapsible||F.hasClass("ui-state-disabled")||F.hasClass("ui-state-processing")||l.panels.filter(":animated").length||l._trigger("select",null,l._ui(this,z[0]))===false)return this.blur(),false;c.selected=l.anchors.index(this);l.abort();if(c.collapsible){if(F.hasClass("ui-tabs-selected"))return c.selected=
-1,c.cookie&&l._cookie(c.selected,c.cookie),l.element.queue("tabs",function(){u(i,J)}).dequeue("tabs"),this.blur(),false;if(!J.length)return c.cookie&&l._cookie(c.selected,c.cookie),l.element.queue("tabs",function(){v(i,z)}),l.load(l.anchors.index(this)),this.blur(),false}c.cookie&&l._cookie(c.selected,c.cookie);if(z.length){J.length&&l.element.queue("tabs",function(){u(i,J)});l.element.queue("tabs",function(){v(i,z)});l.load(l.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier.";
a.browser.msie&&this.blur()});this.anchors.bind("click.tabs",function(){return false})},_getIndex:function(f){return typeof f=="string"&&(f=this.anchors.index(this.anchors.filter("[href$='"+f+"']"))),f},destroy:function(){var f=this.options;return this.abort(),this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs"),this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"),this.anchors.each(function(){var h=
a.data(this,"href.tabs");h&&(this.href=h);var l=a(this).unbind(".tabs");a.each(["href","load","cache"],function(c,j){l.removeData(j+".tabs")})}),this.lis.unbind(".tabs").add(this.panels).each(function(){a.data(this,"destroy.tabs")?a(this).remove():a(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide")}),f.cookie&&this._cookie(null,f.cookie),this},add:function(f,
h,l){l===b&&(l=this.anchors.length);var c=this,j=this.options;h=a(j.tabTemplate.replace(/#\{href\}/g,f).replace(/#\{label\}/g,h));f=f.indexOf("#")?this._tabId(a("a",h)[0]):f.replace("#","");h.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var m=c.element.find("#"+f);return m.length||(m=a(j.panelTemplate).attr("id",f).data("destroy.tabs",true)),m.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide"),l>=this.lis.length?(h.appendTo(this.list),m.appendTo(this.list[0].parentNode)):
(h.insertBefore(this.lis[l]),m.insertBefore(this.panels[l])),j.disabled=a.map(j.disabled,function(q){return q>=l?++q:q}),this._tabify(),this.anchors.length==1&&(j.selected=0,h.addClass("ui-tabs-selected ui-state-active"),m.removeClass("ui-tabs-hide"),this.element.queue("tabs",function(){c._trigger("show",null,c._ui(c.anchors[0],c.panels[0]))}),this.load(0)),this._trigger("add",null,this._ui(this.anchors[l],this.panels[l])),this},remove:function(f){f=this._getIndex(f);var h=this.options,l=this.lis.eq(f).remove(),
c=this.panels.eq(f).remove();return l.hasClass("ui-tabs-selected")&&this.anchors.length>1&&this.select(f+(f+1<this.anchors.length?1:-1)),h.disabled=a.map(a.grep(h.disabled,function(j){return j!=f}),function(j){return j>=f?--j:j}),this._tabify(),this._trigger("remove",null,this._ui(l.find("a")[0],c[0])),this},enable:function(f){f=this._getIndex(f);var h=this.options;if(a.inArray(f,h.disabled)!=-1)return this.lis.eq(f).removeClass("ui-state-disabled"),h.disabled=a.grep(h.disabled,function(l){return l!=
f}),this._trigger("enable",null,this._ui(this.anchors[f],this.panels[f])),this},disable:function(f){f=this._getIndex(f);var h=this.options;return f!=h.selected&&(this.lis.eq(f).addClass("ui-state-disabled"),h.disabled.push(f),h.disabled.sort(),this._trigger("disable",null,this._ui(this.anchors[f],this.panels[f]))),this},select:function(f){f=this._getIndex(f);if(f==-1)if(this.options.collapsible&&this.options.selected!=-1)f=this.options.selected;else return this;return this.anchors.eq(f).trigger(this.options.event+
".tabs"),this},load:function(f){f=this._getIndex(f);var h=this,l=this.options,c=this.anchors.eq(f)[0],j=a.data(c,"load.tabs");this.abort();if(!j||this.element.queue("tabs").length!==0&&a.data(c,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(f).addClass("ui-state-processing");if(l.spinner){var m=a("span",c);m.data("label.tabs",m.html()).html(l.spinner)}return this.xhr=a.ajax(a.extend({},l.ajaxOptions,{url:j,success:function(q,s){h.element.find(h._sanitizeSelector(c.hash)).html(q);h._cleanup();
l.cache&&a.data(c,"cache.tabs",true);h._trigger("load",null,h._ui(h.anchors[f],h.panels[f]));try{l.ajaxOptions.success(q,s)}catch(t){}},error:function(q,s){h._cleanup();h._trigger("load",null,h._ui(h.anchors[f],h.panels[f]));try{l.ajaxOptions.error(q,s,f,c)}catch(t){}}})),h.element.dequeue("tabs"),this}},abort:function(){return this.element.queue([]),this.panels.stop(false,true),this.element.queue("tabs",this.element.queue("tabs").splice(-2,2)),this.xhr&&(this.xhr.abort(),delete this.xhr),this._cleanup(),
this},url:function(f,h){return this.anchors.eq(f).removeData("cache.tabs").data("load.tabs",h),this},length:function(){return this.anchors.length}});a.extend(a.ui.tabs,{version:"1.8.24"});a.extend(a.ui.tabs.prototype,{rotation:null,rotate:function(f,h){var l=this,c=this.options,j=l._rotate||(l._rotate=function(q){clearTimeout(l.rotation);l.rotation=setTimeout(function(){var s=c.selected;l.select(++s<l.anchors.length?s:0)},f);q&&q.stopPropagation()}),m=l._unrotate||(l._unrotate=h?function(){j()}:function(q){q.clientX&&
l.rotate(null)});return f?(this.element.bind("tabsshow",j),this.anchors.bind(c.event+".tabs",m),j()):(clearTimeout(l.rotation),this.element.unbind("tabsshow",j),this.anchors.unbind(c.event+".tabs",m),delete this._rotate,delete this._unrotate),this}})})(jQuery);
(function(a){a.widget("ui.selectmenu",{getter:"value",version:"1.9",eventPrefix:"selectmenu",options:{transferClasses:true,appendTo:"body",typeAhead:1E3,style:"dropdown",positionOptions:{my:"left top",at:"left bottom",offset:null},width:null,menuWidth:null,handleWidth:26,maxHeight:null,icons:null,format:null,escapeHtml:false,bgImage:function(){}},_create:function(){var b=this,e=this.options,g=(this.element.attr("id")||"ui-selectmenu-"+Math.random().toString(16).slice(2,10)).replace(":","\\:");this.ids=
[g,g+"-button",g+"-menu"];this._safemouseup=true;this.isOpen=false;this.newelement=a("<a />",{"class":this.widgetBaseClass+" ui-widget ui-state-default ui-corner-all",id:this.ids[1],role:"button",href:"#nogo",tabindex:this.element.attr("disabled")?1:0,"aria-haspopup":true,"aria-owns":this.ids[2]});this.newelementWrap=a("<span />").append(this.newelement).insertAfter(this.element);(g=this.element.attr("tabindex"))&&this.newelement.attr("tabindex",g);this.newelement.data("selectelement",this.element);
this.selectmenuIcon=a('<span class="'+this.widgetBaseClass+'-icon ui-icon"></span>').prependTo(this.newelement);this.newelement.prepend('<span class="'+b.widgetBaseClass+'-status" />');this.element.bind({"click.selectmenu":function(f){b.newelement.focus();f.preventDefault()}});this.newelement.bind("mousedown.selectmenu",function(f){b._toggle(f,true);if(e.style=="popup"){b._safemouseup=false;setTimeout(function(){b._safemouseup=true},300)}return false}).bind("click.selectmenu",function(){return false}).bind("keydown.selectmenu",
function(f){var h=false;switch(f.keyCode){case a.ui.keyCode.ENTER:h=true;break;case a.ui.keyCode.SPACE:b._toggle(f);break;case a.ui.keyCode.UP:f.altKey?b.open(f):b._moveSelection(-1);break;case a.ui.keyCode.DOWN:f.altKey?b.open(f):b._moveSelection(1);break;case a.ui.keyCode.LEFT:b._moveSelection(-1);break;case a.ui.keyCode.RIGHT:b._moveSelection(1);break;case a.ui.keyCode.TAB:h=true;break;case a.ui.keyCode.PAGE_UP:case a.ui.keyCode.HOME:b.index(0);break;case a.ui.keyCode.PAGE_DOWN:case a.ui.keyCode.END:b.index(b._optionLis.length);
break;default:h=true}return h}).bind("keypress.selectmenu",function(f){f.which>0&&b._typeAhead(f.which,"mouseup");return true}).bind("mouseover.selectmenu",function(){e.disabled||a(this).addClass("ui-state-hover")}).bind("mouseout.selectmenu",function(){e.disabled||a(this).removeClass("ui-state-hover")}).bind("focus.selectmenu",function(){e.disabled||a(this).addClass("ui-state-focus")}).bind("blur.selectmenu",function(){e.disabled||a(this).removeClass("ui-state-focus")});a(document).bind("mousedown.selectmenu-"+
this.ids[0],function(f){b.isOpen&&b.close(f)});this.element.bind("click.selectmenu",function(){b._refreshValue()}).bind("focus.selectmenu",function(){b.newelement&&b.newelement[0].focus()});if(!e.width)e.width=this.element.outerWidth();this.newelement.width(e.width);this.element.hide();this.list=a("<ul />",{"class":"ui-widget ui-widget-content","aria-hidden":true,role:"listbox","aria-labelledby":this.ids[1],id:this.ids[2]});this.listWrap=a("<div />",{"class":b.widgetBaseClass+"-menu"}).append(this.list).appendTo(e.appendTo);
this.list.bind("keydown.selectmenu",function(f){var h=false;switch(f.keyCode){case a.ui.keyCode.UP:f.altKey?b.close(f,true):b._moveFocus(-1);break;case a.ui.keyCode.DOWN:f.altKey?b.close(f,true):b._moveFocus(1);break;case a.ui.keyCode.LEFT:b._moveFocus(-1);break;case a.ui.keyCode.RIGHT:b._moveFocus(1);break;case a.ui.keyCode.HOME:b._moveFocus(":first");break;case a.ui.keyCode.PAGE_UP:b._scrollPage("up");break;case a.ui.keyCode.PAGE_DOWN:b._scrollPage("down");break;case a.ui.keyCode.END:b._moveFocus(":last");
break;case a.ui.keyCode.ENTER:case a.ui.keyCode.SPACE:b.close(f,true);a(f.target).parents("li:eq(0)").trigger("mouseup");break;case a.ui.keyCode.TAB:h=true;b.close(f,true);a(f.target).parents("li:eq(0)").trigger("mouseup");break;case a.ui.keyCode.ESCAPE:b.close(f,true);break;default:h=true}return h}).bind("keypress.selectmenu",function(f){f.which>0&&b._typeAhead(f.which,"focus");return true}).bind("mousedown.selectmenu mouseup.selectmenu",function(){return false});a(window).bind("resize.selectmenu-"+
this.ids[0],a.proxy(b.close,this))},_init:function(){var b=this,e=this.options,g=[];this.element.find("option").each(function(){var m=a(this);g.push({value:m.attr("value"),text:b._formatText(m.text()),selected:m.attr("selected"),disabled:m.attr("disabled"),classes:m.attr("class"),typeahead:m.attr("typeahead"),parentOptGroup:m.parent("optgroup"),bgImage:e.bgImage.call(m)})});var f=b.options.style=="popup"?" ui-state-active":"";this.list.html("");if(g.length)for(var h=0;h<g.length;h++){var l={role:"presentation"};
if(g[h].disabled)l["class"]=this.namespace+"-state-disabled";var c={html:g[h].text||"&nbsp;",href:"#nogo",tabindex:-1,role:"option","aria-selected":false};if(g[h].disabled)c["aria-disabled"]=g[h].disabled;if(g[h].typeahead)c.typeahead=g[h].typeahead;c=a("<a/>",c);l=a("<li/>",l).append(c).data("index",h).addClass(g[h].classes).data("optionClasses",g[h].classes||"").bind("mouseup.selectmenu",function(m){if(b._safemouseup&&!b._disabled(m.currentTarget)&&!b._disabled(a(m.currentTarget).parents("ul>li."+
b.widgetBaseClass+"-group "))){var q=a(this).data("index")!=b._selectedIndex();b.index(a(this).data("index"));b.select(m);q&&b.change(m);b.close(m,true)}return false}).bind("click.selectmenu",function(){return false}).bind("mouseover.selectmenu focus.selectmenu",function(m){if(!a(m.currentTarget).hasClass(b.namespace+"-state-disabled")&&!a(m.currentTarget).parent("ul").parent("li").hasClass(b.namespace+"-state-disabled")){b._selectedOptionLi().addClass(f);b._focusedOptionLi().removeClass(b.widgetBaseClass+
"-item-focus ui-state-hover");a(this).removeClass("ui-state-active").addClass(b.widgetBaseClass+"-item-focus ui-state-hover")}}).bind("mouseout.selectmenu blur.selectmenu",function(){a(this).is(b._selectedOptionLi().selector)&&a(this).addClass(f);a(this).removeClass(b.widgetBaseClass+"-item-focus ui-state-hover")});if(g[h].parentOptGroup.length){c=b.widgetBaseClass+"-group-"+this.element.find("optgroup").index(g[h].parentOptGroup);this.list.find("li."+c).length?this.list.find("li."+c+":last ul").append(l):
a(' <li role="presentation" class="'+b.widgetBaseClass+"-group "+c+(g[h].parentOptGroup.attr("disabled")?" "+this.namespace+'-state-disabled" aria-disabled="true"':'"')+'><span class="'+b.widgetBaseClass+'-group-label">'+g[h].parentOptGroup.attr("label")+"</span><ul></ul></li> ").appendTo(this.list).find("ul").append(l)}else l.appendTo(this.list);if(e.icons)for(var j in e.icons)if(l.is(e.icons[j].find)){l.data("optionClasses",g[h].classes+" "+b.widgetBaseClass+"-hasIcon").addClass(b.widgetBaseClass+
"-hasIcon");c=e.icons[j].icon||"";l.find("a:eq(0)").prepend('<span class="'+b.widgetBaseClass+"-item-icon ui-icon "+c+'"></span>');g[h].bgImage&&l.find("span").css("background-image",g[h].bgImage)}}else a('<li role="presentation"><a href="#nogo" tabindex="-1" role="option"></a></li>').appendTo(this.list);h=e.style=="dropdown";this.newelement.toggleClass(b.widgetBaseClass+"-dropdown",h).toggleClass(b.widgetBaseClass+"-popup",!h);this.list.toggleClass(b.widgetBaseClass+"-menu-dropdown ui-corner-bottom",
h).toggleClass(b.widgetBaseClass+"-menu-popup ui-corner-all",!h).find("li:first").toggleClass("ui-corner-top",!h).end().find("li:last").addClass("ui-corner-bottom");this.selectmenuIcon.toggleClass("ui-icon-triangle-1-s",h).toggleClass("ui-icon-triangle-2-n-s",!h);if(e.transferClasses){h=this.element.attr("class")||"";this.newelement.add(this.list).addClass(h)}e.style=="dropdown"?this.list.width(e.menuWidth?e.menuWidth:e.width):this.list.width(e.menuWidth?e.menuWidth:e.width-e.handleWidth);this.list.css("height",
"auto");h=this.listWrap.height();j=a(window).height();j=e.maxHeight?Math.min(e.maxHeight,j):j/3;h>j&&this.list.height(j);this._optionLis=this.list.find("li:not(."+b.widgetBaseClass+"-group)");this.element.attr("disabled")?this.disable():this.enable();this.index(this._selectedIndex());this._selectedOptionLi().addClass(this.widgetBaseClass+"-item-focus");clearTimeout(this.refreshTimeout);this.refreshTimeout=window.setTimeout(function(){b._refreshPosition()},200)},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+
"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled").unbind(".selectmenu");a(window).unbind(".selectmenu-"+this.ids[0]);a(document).unbind(".selectmenu-"+this.ids[0]);this.newelementWrap.remove();this.listWrap.remove();this.element.unbind(".selectmenu").show();a.Widget.prototype.destroy.apply(this,arguments)},_typeAhead:function(b,e){var g=this,f=String.fromCharCode(b).toLowerCase(),h=null,l=null;if(g._typeAhead_timer){window.clearTimeout(g._typeAhead_timer);g._typeAhead_timer=
undefined}g._typeAhead_chars=(g._typeAhead_chars===undefined?"":g._typeAhead_chars).concat(f);if(g._typeAhead_chars.length<2||g._typeAhead_chars.substr(-2,1)===f&&g._typeAhead_cycling){g._typeAhead_cycling=true;h=f}else{g._typeAhead_cycling=false;h=g._typeAhead_chars}f=(e!=="focus"?this._selectedOptionLi().data("index"):this._focusedOptionLi().data("index"))||0;for(var c=0;c<this._optionLis.length;c++)if(this._optionLis.eq(c).text().substr(0,h.length).toLowerCase()===h)if(g._typeAhead_cycling){if(l===
null)l=c;if(c>f){l=c;break}}else l=c;l!==null&&this._optionLis.eq(l).find("a").trigger(e);g._typeAhead_timer=window.setTimeout(function(){g._typeAhead_timer=undefined;g._typeAhead_chars=undefined;g._typeAhead_cycling=undefined},g.options.typeAhead)},_uiHash:function(){var b=this.index();return{index:b,option:a("option",this.element).get(b),value:this.element[0].value}},open:function(b){var e=this.options;if(this.newelement.attr("aria-disabled")!="true"){this._closeOthers(b);this.newelement.addClass("ui-state-active");
this.listWrap.appendTo(e.appendTo);this.list.attr("aria-hidden",false);this.listWrap.addClass(this.widgetBaseClass+"-open");var g=this._selectedOptionLi();e.style=="dropdown"?this.newelement.removeClass("ui-corner-all").addClass("ui-corner-top"):this.list.css("left",-5000).scrollTop(this.list.scrollTop()+g.position().top-this.list.outerHeight()/2+g.outerHeight()/2).css("left","auto");this._refreshPosition();e=g.find("a");e.length&&e[0].focus();this.isOpen=true;this._trigger("open",b,this._uiHash())}},
close:function(b,e){if(this.newelement.is(".ui-state-active")){this.newelement.removeClass("ui-state-active");this.listWrap.removeClass(this.widgetBaseClass+"-open");this.list.attr("aria-hidden",true);this.options.style=="dropdown"&&this.newelement.removeClass("ui-corner-top").addClass("ui-corner-all");e&&this.newelement.focus();this.isOpen=false;this._trigger("close",b,this._uiHash())}},change:function(b){this.element.trigger("change");this._trigger("change",b,this._uiHash())},select:function(b){if(this._disabled(b.currentTarget))return false;
this._trigger("select",b,this._uiHash())},widget:function(){return this.listWrap.add(this.newelementWrap)},_closeOthers:function(b){a("."+this.widgetBaseClass+".ui-state-active").not(this.newelement).each(function(){a(this).data("selectelement").selectmenu("close",b)});a("."+this.widgetBaseClass+".ui-state-hover").trigger("mouseout")},_toggle:function(b,e){this.isOpen?this.close(b,e):this.open(b)},_formatText:function(b){if(this.options.format)b=this.options.format(b);else if(this.options.escapeHtml)b=
a("<div />").text(b).html();return b},_selectedIndex:function(){return this.element[0].selectedIndex},_selectedOptionLi:function(){return this._optionLis.eq(this._selectedIndex())},_focusedOptionLi:function(){return this.list.find("."+this.widgetBaseClass+"-item-focus")},_moveSelection:function(b,e){if(!this.options.disabled){var g=parseInt(this._selectedOptionLi().data("index")||0,10)+b;if(g<0)g=0;if(g>this._optionLis.size()-1)g=this._optionLis.size()-1;if(g===e)return false;if(this._optionLis.eq(g).hasClass(this.namespace+
"-state-disabled")){b>0?++b:--b;this._moveSelection(b,g)}else this._optionLis.eq(g).trigger("mouseover").trigger("mouseup")}},_moveFocus:function(b,e){var g=isNaN(b)?parseInt(this._optionLis.filter(b).data("index"),10):parseInt(this._focusedOptionLi().data("index")||0,10)+b;if(g<0)g=0;if(g>this._optionLis.size()-1)g=this._optionLis.size()-1;if(g===e)return false;var f=this.widgetBaseClass+"-item-"+Math.round(Math.random()*1E3);this._focusedOptionLi().find("a:eq(0)").attr("id","");if(this._optionLis.eq(g).hasClass(this.namespace+
"-state-disabled")){b>0?++b:--b;this._moveFocus(b,g)}else this._optionLis.eq(g).find("a:eq(0)").attr("id",f).focus();this.list.attr("aria-activedescendant",f)},_scrollPage:function(b){var e=Math.floor(this.list.outerHeight()/this._optionLis.first().outerHeight());e=b=="up"?-e:e;this._moveFocus(e)},_setOption:function(b,e){this.options[b]=e;if(b=="disabled"){e&&this.close();this.element.add(this.newelement).add(this.list)[e?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+
"-state-disabled").attr("aria-disabled",e)}},disable:function(b,e){if(typeof b=="undefined")this._setOption("disabled",true);else e=="optgroup"?this._disableOptgroup(b):this._disableOption(b)},enable:function(b,e){if(typeof b=="undefined")this._setOption("disabled",false);else e=="optgroup"?this._enableOptgroup(b):this._enableOption(b)},_disabled:function(b){return a(b).hasClass(this.namespace+"-state-disabled")},_disableOption:function(b){var e=this._optionLis.eq(b);if(e){e.addClass(this.namespace+
"-state-disabled").find("a").attr("aria-disabled",true);this.element.find("option").eq(b).attr("disabled","disabled")}},_enableOption:function(b){var e=this._optionLis.eq(b);if(e){e.removeClass(this.namespace+"-state-disabled").find("a").attr("aria-disabled",false);this.element.find("option").eq(b).removeAttr("disabled")}},_disableOptgroup:function(b){var e=this.list.find("li."+this.widgetBaseClass+"-group-"+b);if(e){e.addClass(this.namespace+"-state-disabled").attr("aria-disabled",true);this.element.find("optgroup").eq(b).attr("disabled",
"disabled")}},_enableOptgroup:function(b){var e=this.list.find("li."+this.widgetBaseClass+"-group-"+b);if(e){e.removeClass(this.namespace+"-state-disabled").attr("aria-disabled",false);this.element.find("optgroup").eq(b).removeAttr("disabled")}},index:function(b){if(arguments.length)if(this._disabled(a(this._optionLis[b])))return false;else{this.element[0].selectedIndex=b;this._refreshValue()}else return this._selectedIndex()},value:function(b){if(arguments.length){this.element[0].value=b;this._refreshValue()}else return this.element[0].value},
_refreshValue:function(){var b=this.options.style=="popup"?" ui-state-active":"",e=this.widgetBaseClass+"-item-"+Math.round(Math.random()*1E3);this.list.find("."+this.widgetBaseClass+"-item-selected").removeClass(this.widgetBaseClass+"-item-selected"+b).find("a").attr("aria-selected","false").attr("id","");this._selectedOptionLi().addClass(this.widgetBaseClass+"-item-selected"+b).find("a").attr("aria-selected","true").attr("id",e);b=this.newelement.data("optionClasses")?this.newelement.data("optionClasses"):
"";var g=this._selectedOptionLi().data("optionClasses")?this._selectedOptionLi().data("optionClasses"):"";this.newelement.removeClass(b).data("optionClasses",g).addClass(g).find("."+this.widgetBaseClass+"-status").html(this._selectedOptionLi().find("a:eq(0)").html());this.list.attr("aria-activedescendant",e)},_refreshPosition:function(){var b=this.options;if(b.style=="popup"&&!b.positionOptions.offset){var e=this._selectedOptionLi();e="0 "+(this.list.offset().top-e.offset().top-(this.newelement.outerHeight()+
e.outerHeight())/2)}this.listWrap.zIndex(this.element.zIndex()+1).position({of:b.positionOptions.of||this.newelement,my:b.positionOptions.my,at:b.positionOptions.at,offset:b.positionOptions.offset||e,collision:b.positionOptions.collision||b.style=="popup"?"fit":"flip"})}})})(jQuery);
