(function(a,e){function b(f){return g.isWindow(f)?f:9===f.nodeType?f.defaultView||f.parentWindow:!1}function h(f){if(!ta[f]){var a=v.body,c=g("<"+f+">").appendTo(a),A=c.css("display");c.remove();if("none"===A||""===A)P||(P=v.createElement("iframe"),P.frameBorder=P.width=P.height=0),a.appendChild(P),ca&&P.createElement||(ca=(P.contentWindow||P.contentDocument).document,ca.write((g.support.boxModel?"":"")+""),ca.close()),c=ca.createElement(f),ca.body.appendChild(c),A=g.css(c, "display"),a.removeChild(P);ta[f]=A}return ta[f]}function l(f,a){var c={};g.each(ma.concat.apply([],ma.slice(0,a)),function(){c[this]=f});return c}function d(){na=e}function m(){setTimeout(d,0);return na=g.now()}function c(){try{return new a.XMLHttpRequest}catch(f){}}function k(f,a,c,A){if(g.isArray(a))g.each(a,function(a,F){c||bb.test(f)?A(f,F):k(f+"["+("object"==typeof F?a:"")+"]",F,c,A)});else if(c||"object"!==g.type(a))A(f,a);else for(var d in a)k(f+"["+d+"]",a[d],c,A)}function p(f,a){var c,A, d=g.ajaxSettings.flatOptions||{};for(c in a)a[c]!==e&&((d[c]?f:A||(A={}))[c]=a[c]);A&&g.extend(!0,f,A)}function u(f,a,c,g,d,b){d=d||a.dataTypes[0];b=b||{};b[d]=!0;d=f[d];for(var k=0,l=d?d.length:0,h=f===ua,m;kb;b+=2)c||(d-=parseFloat(g.css(f,"padding"+X[b]))||0),"margin"===c?d+=parseFloat(g.css(f,c+X[b]))||0:d-=parseFloat(g.css(f,"border"+X[b]+"Width"))||0;return d+"px"}d=da(f,a);if(0>d||null==d)d=f.style[a];if(va.test(d))return d;d=parseFloat(d)||0;if(c)for(;4>b;b+=2)d+=parseFloat(g.css(f,"padding"+ X[b]))||0,"padding"!==c&&(d+=parseFloat(g.css(f,"border"+X[b]+"Width"))||0),"margin"===c&&(d+=parseFloat(g.css(f,c+X[b]))||0);return d+"px"}function t(f){var a=(f.nodeName||"").toLowerCase();"input"===a?r(f):"script"!==a&&"undefined"!=typeof f.getElementsByTagName&&g.grep(f.getElementsByTagName("input"),r)}function r(f){if("checkbox"===f.type||"radio"===f.type)f.defaultChecked=f.checked}function w(f){return"undefined"!=typeof f.getElementsByTagName?f.getElementsByTagName("*"):"undefined"!=typeof f.querySelectorAll? f.querySelectorAll("*"):[]}function x(f,a){var c;1===a.nodeType&&(a.clearAttributes&&a.clearAttributes(),a.mergeAttributes&&a.mergeAttributes(f),c=a.nodeName.toLowerCase(),"object"===c?a.outerHTML=f.outerHTML:"input"!==c||"checkbox"!==f.type&&"radio"!==f.type?"option"===c?a.selected=f.defaultSelected:"input"===c||"textarea"===c?a.defaultValue=f.defaultValue:"script"===c&&a.text!==f.text&&(a.text=f.text):(f.checked&&(a.defaultChecked=a.checked=f.checked),a.value!==f.value&&(a.value=f.value)),a.removeAttribute(g.expando), a.removeAttribute("_submit_attached"),a.removeAttribute("_change_attached"))}function D(f,a){if(1===a.nodeType&&g.hasData(f)){var c,d,b;d=g._data(f);var k=g._data(a,d),e=d.events;if(e)for(c in delete k.handle,k.events={},e)for(d=0,b=e[c].length;d)[^>]*$|#([\w\-]*)$)/,l=/\S/,h=/^\s+/,m=/\s+$/, n=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,q=/^[\],:{}\s]*$/,p=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,t=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,u=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,w=/(opera)(?:.*version)?[ \/]([\w.]+)/,x=/(msie) ([\w.]+)/,D=/(mozilla)(?:.*? rv:([\w.]+))?/,z=/-([a-z]|[0-9])/ig,C=/^-ms-/,y=function(f,a){return(a+"").toUpperCase()},fa=pa.userAgent,Z,ga,db=Object.prototype.toString,xa=Object.prototype.hasOwnProperty,ya=Array.prototype.push,ka=Array.prototype.slice, Ha=String.prototype.trim,B=Array.prototype.indexOf,H={};c.fn=c.prototype={constructor:c,init:function(f,a,g){var d,b;if(!f)return this;if(f.nodeType)return this.context=this[0]=f,this.length=1,this;if("body"===f&&!a&&v.body)return this.context=v,this[0]=v.body,this.selector=f,this.length=1,this;if("string"==typeof f){"<"!==f.charAt(0)||">"!==f.charAt(f.length-1)||3>f.length?d=k.exec(f):d=[null,f,null];if(d&&(d[1]||!a)){if(d[1])return b=(a=a instanceof c?a[0]:a)?a.ownerDocument||a:v,(g=n.exec(f))? c.isPlainObject(a)?(f=[v.createElement(g[1])],c.fn.attr.call(f,a,!0)):f=[b.createElement(g[1])]:(g=c.buildFragment([d[1]],[b]),f=(g.cacheable?c.clone(g.fragment):g.fragment).childNodes),c.merge(this,f);if((a=v.getElementById(d[2]))&&a.parentNode){if(a.id!==d[2])return g.find(f);this.length=1;this[0]=a}this.context=v;this.selector=f;return this}return!a||a.jquery?(a||g).find(f):this.constructor(a).find(f)}if(c.isFunction(f))return g.ready(f);f.selector!==e&&(this.selector=f.selector,this.context=f.context); return c.makeArray(f,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return ka.call(this,0)},get:function(f){return null==f?this.toArray():0>f?this[this.length+f]:this[f]},pushStack:function(f,a,g){var d=this.constructor();c.isArray(f)?ya.apply(d,f):c.merge(d,f);d.prevObject=this;d.context=this.context;"find"===a?d.selector=this.selector+(this.selector?" ":"")+g:a&&(d.selector=this.selector+"."+a+"("+g+")");return d},each:function(f,a){return c.each(this, f,a)},ready:function(f){c.bindReady();Z.add(f);return this},eq:function(f){f=+f;return-1===f?this.slice(f):this.slice(f,f+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(ka.apply(this,arguments),"slice",ka.call(arguments).join(","))},map:function(f){return this.pushStack(c.map(this,function(a,c){return f.call(a,c,a)}))},end:function(){return this.prevObject||this.constructor(null)},push:ya,sort:[].sort,splice:[].splice};c.fn.init.prototype= c.fn;c.extend=c.fn.extend=function(){var f,a,g,d,b,k,G=arguments[0]||{},A=1,l=arguments.length,h=!1;"boolean"==typeof G&&(h=G,G=arguments[1]||{},A=2);"object"!=typeof G&&!c.isFunction(G)&&(G={});for(l===A&&(G=this,--A);Ac?Math.max(0,g+c):c:0;cf.indexOf("compatible")&&D.exec(f)||[];return{browser:f[1]||"",version:f[2]||"0"}},sub:function(){function f(a,c){return new f.fn.init(a,c)}c.extend(!0,f,this);f.superclass=this;f.fn=f.prototype=this();f.fn.constructor=f;f.sub=this.sub;f.fn.init=function(g,d){d&&d instanceof c&&!(d instanceof f)&&(d=f(d));return c.fn.init.call(this,g,d,a)};f.fn.init.prototype=f.fn;var a=f(v);return f},browser:{}});c.each("Boolean Number String Function Array Date RegExp Object".split(" "), function(f,a){H["[object "+a+"]"]=a.toLowerCase()});fa=c.uaMatch(fa);fa.browser&&(c.browser[fa.browser]=!0,c.browser.version=fa.version);c.browser.webkit&&(c.browser.safari=!0);l.test(" ")&&(h=/^[\s\xA0]+/,m=/[\s\xA0]+$/);b=c(v);v.addEventListener?ga=function(){v.removeEventListener("DOMContentLoaded",ga,!1);c.ready()}:v.attachEvent&&(ga=function(){"complete"===v.readyState&&(v.detachEvent("onreadystatechange",ga),c.ready())});return c}(),ea={};g.Callbacks=function(f){f=f?ea[f]||S(f):{};var a=[], c=[],d,b,k,h,l,m,n=function(c){var d,b,k,e;d=0;for(b=c.length;d=k&&f&&g.isFunction(f.promise)?f:g.Deferred(),m=h.promise();if(1
a";c=m.getElementsByTagName("*");d=m.getElementsByTagName("a")[0];if(!c||!c.length||!d)return{};b=v.createElement("select");k=b.appendChild(v.createElement("option")); c=m.getElementsByTagName("input")[0];f={leadingWhitespace:3===m.firstChild.nodeType,tbody:!m.getElementsByTagName("tbody").length,htmlSerialize:!!m.getElementsByTagName("link").length,style:/top/.test(d.getAttribute("style")),hrefNormalized:"/a"===d.getAttribute("href"),opacity:/^0.55/.test(d.style.opacity),cssFloat:!!d.style.cssFloat,checkOn:"on"===c.value,optSelected:k.selected,getSetAttribute:"t"!==m.className,enctype:!!v.createElement("form").enctype,html5Clone:"<:nav>"!==v.createElement("nav").cloneNode(!0).outerHTML, submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0};g.boxModel=f.boxModel="CSS1Compat"===v.compatMode;c.checked=!0;f.noCloneChecked=c.cloneNode(!0).checked;b.disabled=!0;f.optDisabled=!k.disabled;try{delete m.test}catch(n){f.deleteExpando=!1}!m.addEventListener&&m.attachEvent&&m.fireEvent&&(m.attachEvent("onclick",function(){f.noCloneEvent=!1}),m.cloneNode(!0).fireEvent("onclick")); c=v.createElement("input");c.value="t";c.setAttribute("type","radio");f.radioValue="t"===c.value;c.setAttribute("checked","checked");c.setAttribute("name","t");m.appendChild(c);d=v.createDocumentFragment();d.appendChild(m.lastChild);f.checkClone=d.cloneNode(!0).cloneNode(!0).lastChild.checked;f.appendChecked=c.checked;d.removeChild(c);d.appendChild(m);if(m.attachEvent)for(l in{submit:1,change:1,focusin:1})c="on"+l,(h=c in m)||(m.setAttribute(c,"return;"),h="function"==typeof m[c]),f[l+"Bubbles"]= h;d.removeChild(m);d=b=k=m=c=null;g(function(){var c,d,F,b,k,l,G=v.getElementsByTagName("body")[0];!G||(c=v.createElement("div"),c.style.cssText="padding:0;margin:0;border:0;visibility:hidden;width:0;height:0;position:static;top:0;margin-top:1px",G.insertBefore(c,G.firstChild),m=v.createElement("div"),c.appendChild(m),m.innerHTML="
t
",e=m.getElementsByTagName("td"),h=0===e[0].offsetHeight,e[0].style.display= "",e[1].style.display="none",f.reliableHiddenOffsets=h&&0===e[0].offsetHeight,a.getComputedStyle&&(m.innerHTML="",l=v.createElement("div"),l.style.width="0",l.style.marginRight="0",m.style.width="2px",m.appendChild(l),f.reliableMarginRight=0===(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)),"undefined"!=typeof m.style.zoom&&(m.innerHTML="",m.style.width=m.style.padding="1px",m.style.border=0,m.style.overflow="hidden",m.style.display="inline",m.style.zoom=1,f.inlineBlockNeedsLayout= 3===m.offsetWidth,m.style.display="block",m.style.overflow="visible",m.innerHTML="
",f.shrinkWrapBlocks=3!==m.offsetWidth),m.style.cssText="position:absolute;top:0;left:0;width:1px;height:1px;padding:0;margin:0;border:0;visibility:hidden;",m.innerHTML="
", d=m.firstChild,F=d.firstChild,b=d.nextSibling.firstChild.firstChild,k={doesNotAddBorder:5!==F.offsetTop,doesAddBorderForTableAndCells:5===b.offsetTop},F.style.position="fixed",F.style.top="20px",k.fixedPosition=20===F.offsetTop||15===F.offsetTop,F.style.position=F.style.top="",d.style.overflow="hidden",d.style.position="relative",k.subtractsBorderForOverflowNotVisible=-5===F.offsetTop,k.doesNotIncludeMarginInBodyOffset=1!==G.offsetTop,a.getComputedStyle&&(m.style.marginTop="1%",f.pixelMargin="1%"!== (a.getComputedStyle(m,null)||{marginTop:0}).marginTop),"undefined"!=typeof c.style.zoom&&(c.style.zoom=1),G.removeChild(c),m=null,g.extend(f,k))});return f}();var oa=/^(?:\{.*\}|\[.*\])$/,L=/([A-Z])/g;g.extend({cache:{},uuid:0,expando:"jQuery"+(g.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(f){f=f.nodeType?g.cache[f[g.expando]]:f[g.expando];return!!f&&!O(f)},data:function(f,a,c,d){if(g.acceptData(f)){var b, k;b=g.expando;var l="string"==typeof a,h=f.nodeType,m=h?g.cache:f,n=h?f[b]:f[b]&&b,q="events"===a;if(n&&m[n]&&(q||d||m[n].data)||!l||c!==e){n||(h?f[b]=n=++g.uuid:n=b);m[n]||(m[n]={},h||(m[n].toJSON=g.noop));if("object"==typeof a||"function"==typeof a)d?m[n]=g.extend(m[n],a):m[n].data=g.extend(m[n].data,a);f=b=m[n];d||(b.data||(b.data={}),b=b.data);c!==e&&(b[g.camelCase(a)]=c);if(q&&!b[a])return f.events;l?(k=b[a],null==k&&(k=b[g.camelCase(a)])):k=b;return k}}},removeData:function(f,a,c){if(g.acceptData(f)){var d, b,k,e=g.expando,l=f.nodeType,h=l?g.cache:f,m=l?f[e]:e;if(h[m]){if(a&&(d=c?h[m]:h[m].data)){g.isArray(a)||(a in d?a=[a]:(a=g.camelCase(a),a in d?a=[a]:a=a.split(" ")));b=0;for(k=a.length;bd)return null;f=e?d:0;for(c=e?d+1:k.length;fk.indexOf(":")?"on"+k:"",d){if(f.result=e,f.target|| (f.target=d),c=null!=c?g.makeArray(c):[],c.unshift(f),q=g.event.special[k]||{},!q.trigger||!1!==q.trigger.apply(d,c)){t=[[d,q.bindType||k]];if(!b&&!q.noBubble&&!g.isWindow(d)){m=q.delegateType||k;l=La.test(m+k)?d:d.parentNode;for(n=null;l;l=l.parentNode)t.push([l,m]),n=l;n&&n===d.ownerDocument&&t.push([n.defaultView||n.parentWindow||a,m])}for(m=0;md&&h.push({elem:this,matches:c.slice(d)});for(m=0;m+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,b="sizcache"+(Math.random()+"").replace(".",""),k=0,l=Object.prototype.toString,h=!1,m=!0,n=/\\/g,q=/\r\n/g,p=/\W/;[0,0].sort(function(){m=!1;return 0});var t=function(a,f,c,g){c=c||[];var b=f=f||v;if(1!==f.nodeType&& 9!==f.nodeType)return[];if(!a||"string"!=typeof a)return c;var k,h,e,m,n,q,p=!0,F=t.isXML(f),A=[],u=a;do if(d.exec(""),k=d.exec(u))if(u=k[3],A.push(k[1]),k[2]){m=k[3];break}while(k);if(1":function(a,f){var c,d="string"==typeof f,g=0,b=a.length;if(d&&!p.test(f))for(f=f.toLowerCase();gc[3]-0},nth:function(a,f,c){return c[3]-0===f},eq:function(a,f,c){return c[3]-0===f}},filter:{PSEUDO:function(a,f,c,d){var g=f[1],b=r.filters[g];if(b)return b(a,c,f,d);if("contains"===g)return 0<=(a.textContent||a.innerText|| u([a])||"").indexOf(f[3]);if("not"===g){f=f[3];c=0;for(d=f.length;c";c.insertBefore(a,c.firstChild);v.getElementById(f)&&(r.find.ID=function(a,f,c){if("undefined"!=typeof f.getElementById&&!c)return(f=f.getElementById(a[1]))?f.id===a[1]||"undefined"!=typeof f.getAttributeNode&&f.getAttributeNode("id").nodeValue===a[1]?[f]:e:[]},r.filter.ID= function(a,f){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return 1===a.nodeType&&c&&c.nodeValue===f});c.removeChild(a);c=a=null})();(function(){var a=v.createElement("div");a.appendChild(v.createComment(""));0

";if(!f.querySelectorAll||0!==f.querySelectorAll(".TEST").length){t=function(f,c,d,g){c=c||v;if(!g&&!t.isXML(c)){var b=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(f);if(b&&(1===c.nodeType||9===c.nodeType)){if(b[1])return z(c.getElementsByTagName(f),d);if(b[2]&&r.find.CLASS&&c.getElementsByClassName)return z(c.getElementsByClassName(b[2]), d)}if(9===c.nodeType){if("body"===f&&c.body)return z([c.body],d);if(b&&b[3]){var k=c.getElementById(b[3]);if(!k||!k.parentNode)return z([],d);if(k.id===b[3])return z([k],d)}try{return z(c.querySelectorAll(f),d)}catch(e){}}else if(1===c.nodeType&&"object"!==c.nodeName.toLowerCase()){var b=c,l=(k=c.getAttribute("id"))||"__sizzle__",h=c.parentNode,m=/^\s*[+~]/.test(f);k?l=l.replace(/'/g,"\\$&"):c.setAttribute("id",l);m&&h&&(c=c.parentNode);try{if(!m||h)return z(c.querySelectorAll("[id='"+l+"'] "+f), d)}catch(e){}finally{k||b.removeAttribute("id")}}}return a(f,c,d,g)};for(var c in a)t[c]=a[c];f=null}}();(function(){var a=v.documentElement,f=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(f){var c=!f.call(v.createElement("div"),"div"),d=!1;try{f.call(v.documentElement,"[test!='']:sizzle")}catch(g){d=!0}t.matchesSelector=function(a,g){g=g.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!t.isXML(a))try{if(d||!r.match.PSEUDO.test(g)&&!/!=/.test(g)){var b=f.call(a, g);if(b||!c||a.document&&11!==a.document.nodeType)return b}}catch(k){}return 0
";a.getElementsByClassName&&0!==a.getElementsByClassName("e").length&&(a.lastChild.className="e",1!==a.getElementsByClassName("e").length&&(r.order.splice(1,0,"CLASS"),r.find.CLASS=function(a,f,c){if("undefined"!=typeof f.getElementsByClassName&&!c)return f.getElementsByClassName(a[1])}, a=null))})();v.documentElement.contains?t.contains=function(a,f){return a!==f&&(a.contains?a.contains(f):!0)}:v.documentElement.compareDocumentPosition?t.contains=function(a,f){return!!(a.compareDocumentPosition(f)&16)}:t.contains=function(){return!1};t.isXML=function(a){return(a=(a?a.ownerDocument||a:0).documentElement)?"HTML"!==a.nodeName:!1};var y=function(a,f,c){var d,g=[],b="";for(f=f.nodeType?[f]:f;d=r.match.PSEUDO.exec(a);)b+=d[0],a=a.replace(r.match.PSEUDO,"");a=r.relative[a]?a+"*":a;d=0; for(var k=f.length;d]*)\/>/ig,Pa=/<([\w:]+)/,pb=/]","i"),Ra=/checked\s*(?:[^=]|=\s*.checked.)/i,Sa=/\/(java|ecma)script/i,tb=/^\s*",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"", "
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},Ba=y(v);Q.optgroup=Q.option;Q.tbody=Q.tfoot=Q.colgroup=Q.caption=Q.thead;Q.th=Q.td;g.support.htmlSerialize||(Q._default=[1,"div
","
"]);g.fn.extend({text:function(a){return g.access(this,function(a){return a===e?g.text(this):this.empty().append((this[0]&&this[0].ownerDocument||v).createTextNode(a))},null,a,arguments.length)}, wrapAll:function(a){if(g.isFunction(a))return this.each(function(c){g(this).wrapAll(a.call(this,c))});if(this[0]){var c=g(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&c.insertBefore(this[0]);c.map(function(){for(var a=this;a.firstChild&&1===a.firstChild.nodeType;)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return g.isFunction(a)?this.each(function(c){g(this).wrapInner(a.call(this,c))}):this.each(function(){var c=g(this),d=c.contents();d.length?d.wrapAll(a): c.append(a)})},wrap:function(a){var c=g.isFunction(a);return this.each(function(d){g(this).wrapAll(c?a.call(this,d):a)})},unwrap:function(){return this.parent().each(function(){g.nodeName(this,"body")||g(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){1===this.nodeType&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){1===this.nodeType&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&& this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=g.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,g.clean(arguments));return a}},remove:function(a, c){for(var d=0,b;null!=(b=this[d]);d++)if(!a||g.filter(a,[b]).length)!c&&1===b.nodeType&&(g.cleanData(b.getElementsByTagName("*")),g.cleanData([b])),b.parentNode&&b.parentNode.removeChild(b);return this},empty:function(){for(var a=0,c;null!=(c=this[a]);a++)for(1===c.nodeType&&g.cleanData(c.getElementsByTagName("*"));c.firstChild;)c.removeChild(c.firstChild);return this},clone:function(a,c){a=null==a?!1:a;c=null==c?a:c;return this.map(function(){return g.clone(this,a,c)})},html:function(a){return g.access(this, function(a){var c=this[0]||{},f=0,d=this.length;if(a===e)return 1===c.nodeType?c.innerHTML.replace(ob,""):null;if(!("string"!=typeof a||rb.test(a)||!g.support.leadingWhitespace&&Aa.test(a)||Q[(Pa.exec(a)||["",""])[1].toLowerCase()])){a=a.replace(Oa,"<$1>");try{for(;fh.length&&e===v&&"<"===h.charAt(0)&&!sb.test(h)&&(g.support.checkClone||!Ra.test(h))&&(g.support.html5Clone||!Qa.test(h))&& (k=!0,l=g.fragments[h],l&&1!==l&&(b=l));b||(b=e.createDocumentFragment(),g.clean(a,e,b,d));k&&(g.fragments[h]=l?b:1);return{fragment:b,cacheable:k}};g.fragments={};g.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,c){g.fn[a]=function(d){var b=[];d=g(d);var k=1===this.length&&this[0].parentNode;if(k&&11===k.nodeType&&1===k.childNodes.length&&1===d.length)return d[c](this[0]),this;for(var k=0,l=d.length;k")?b=a.cloneNode(!0):(b=v.createElement("div"),Ba.appendChild(b),b.innerHTML=a.outerHTML,b=b.firstChild);var e=b;if(!(g.support.noCloneEvent&&g.support.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||g.isXMLDoc(a)))for(x(a,e),b=w(a),k=w(e),l=0;b[l];++l)k[l]&&x(b[l],k[l]);if(c&&(D(a,e),d))for(b=w(a),k=w(e),l=0;b[l];++l)D(b[l], k[l]);return e},clean:function(a,c,d,b){var k,l=[];c=c||v;"undefined"==typeof c.createElement&&(c=c.ownerDocument||c[0]&&c[0].ownerDocument||v);for(var e=0,h;null!=(h=a[e]);e++)if("number"==typeof h&&(h+=""),h){if("string"==typeof h)if(qb.test(h)){h=h.replace(Oa,"<$1>");k=(Pa.exec(h)||["",""])[1].toLowerCase();var m=Q[k]||Q._default,n=m[0],q=c.createElement("div"),p=Ba.childNodes,u;c===v?Ba.appendChild(q):y(c).appendChild(q);for(q.innerHTML=m[1]+h+m[2];n--;)q=q.lastChild;if(!g.support.tbody)for(n= pb.test(h),m="table"!==k||n?""!==m[1]||n?[]:q.childNodes:q.firstChild&&q.firstChild.childNodes,k=m.length-1;0<=k;--k)g.nodeName(m[k],"tbody")&&!m[k].childNodes.length&&m[k].parentNode.removeChild(m[k]);!g.support.leadingWhitespace&&Aa.test(h)&&q.insertBefore(c.createTextNode(Aa.exec(h)[0]),q.firstChild);h=q.childNodes;q&&(q.parentNode.removeChild(q),0d;d++)g[a+X[d]+c]=b[d]||b[d-2]||b[0];return g}}});var Ab=/%20/g,bb=/\[\]$/,Va=/\r?\n/g,Bb=/#.*$/,Cb=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,Db=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Eb=/^(?:GET|HEAD)$/,Fb=/^\/\//, Wa=/\?/,Gb=/)<[^<]*)*<\/script>/gi,Hb=/^(?:select|textarea)/i,Fa=/\s+/,Ib=/([?&])_=[^&]*/,Xa=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,Ya=g.fn.load,ua={},Za={},aa,ba,$a=["*/"]+["*"];try{aa=R.href}catch(f){aa=v.createElement("a"),aa.href="",aa=aa.href}ba=Xa.exec(aa.toLowerCase())||[];g.fn.extend({load:function(a,c,d){if("string"!=typeof a&&Ya)return Ya.apply(this,arguments);if(!this.length)return this;var b=a.indexOf(" ");if(0<=b){var k=a.slice(b,a.length);a=a.slice(0, b)}b="GET";c&&(g.isFunction(c)?(d=c,c=e):"object"==typeof c&&(c=g.param(c,g.ajaxSettings.traditional),b="POST"));var l=this;g.ajax({url:a,type:b,dataType:"html",data:c,complete:function(a,c,f){f=a.responseText;a.isResolved()&&(a.done(function(a){f=a}),l.html(k?g("
").append(f.replace(Gb,"")).find(k):f));d&&l.each(d,[f,c,a])}});return this},serialize:function(){return g.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?g.makeArray(this.elements): this}).filter(function(){return this.name&&!this.disabled&&(this.checked||Hb.test(this.nodeName)||Db.test(this.type))}).map(function(a,c){var d=g(this).val();return null==d?null:g.isArray(d)?g.map(d,function(a,f){return{name:c.name,value:a.replace(Va,"\r\n")}}):{name:c.name,value:d.replace(Va,"\r\n")}}).get()}});g.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,c){g.fn[c]=function(a){return this.on(c,a)}});g.each(["get","post"],function(a,c){g[c]=function(a, f,d,b){g.isFunction(f)&&(b=b||d,d=f,f=e);return g.ajax({type:c,url:a,data:f,success:d,dataType:b})}});g.extend({getScript:function(a,c){return g.get(a,e,c,"script")},getJSON:function(a,c,d){return g.get(a,c,d,"json")},ajaxSetup:function(a,c){c?p(a,g.ajaxSettings):(c=a,a=g.ajaxSettings);p(a,c);return a},ajaxSettings:{url:aa,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(ba[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0, async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":$a},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":g.parseJSON,"text xml":g.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:q(ua),ajaxTransport:q(Za),ajax:function(a,c){function d(a,c,f,p){if(2!==z){z=2;v&&clearTimeout(v);x=e;r=p||"";y.readyState=0a||304===a){if(b.ifModified){if(E=y.getResponseHeader("Last-Modified"))g.lastModified[q]= E;if(E=y.getResponseHeader("Etag"))g.etag[q]=E}if(304===a)p="notmodified",t=!0;else try{E=b;E.dataFilter&&(f=E.dataFilter(f,E.dataType));var J=E.dataTypes;K={};var I,L,O=J.length,M,R=J[0],N,Q,P,Y,S;for(I=1;Ia&&(a=0);y.status=a;y.statusText=""+(c||p);t?h.resolveWith(k,[u,p,y]):h.rejectWith(k,[y,p,F]);y.statusCode(n);n=e;C&&l.trigger("ajax"+(t?"Success":"Error"),[y,b,t?u:F]);m.fireWith(k,[y,p]);C&&(l.trigger("ajaxComplete",[y,b]),--g.active||g.event.trigger("ajaxStop"))}}"object"==typeof a&&(c=a,a=e);c=c||{};var b=g.ajaxSetup({},c),k=b.context|| b,l=k!==b&&(k.nodeType||k instanceof g)?g(k):g.event,h=g.Deferred(),m=g.Callbacks("once memory"),n=b.statusCode||{},q,p={},t={},r,w,x,v,D,z=0,C,B,y={readyState:0,setRequestHeader:function(a,c){if(!z){var f=a.toLowerCase();a=t[f]=t[f]||a;p[a]=c}return this},getAllResponseHeaders:function(){return 2===z?r:null},getResponseHeader:function(a){var c;if(2===z){if(!w)for(w={};c=Cb.exec(r);)w[c[1].toLowerCase()]=c[2];c=w[a.toLowerCase()]}return c===e?null:c},overrideMimeType:function(a){z||(b.mimeType=a); return this},abort:function(a){a=a||"abort";x&&x.abort(a);d(0,a);return this}};h.promise(y);y.success=y.done;y.error=y.fail;y.complete=m.add;y.statusCode=function(a){if(a){var c;if(2>z)for(c in a)n[c]=[n[c],a[c]];else c=a[y.status],y.then(c,c)}return this};b.url=((a||b.url)+"").replace(Bb,"").replace(Fb,ba[1]+"//");b.dataTypes=g.trim(b.dataType||"*").toLowerCase().split(Fa);null==b.crossDomain&&(D=Xa.exec(b.url.toLowerCase()),b.crossDomain=!(!D||D[1]==ba[1]&&D[2]==ba[2]&&(D[3]||("http:"===D[1]?80: 443))==(ba[3]||("http:"===ba[1]?80:443))));b.data&&b.processData&&"string"!=typeof b.data&&(b.data=g.param(b.data,b.traditional));u(ua,b,c,y);if(2===z)return!1;C=b.global;b.type=b.type.toUpperCase();b.hasContent=!Eb.test(b.type);C&&0===g.active++&&g.event.trigger("ajaxStart");if(!b.hasContent&&(b.data&&(b.url+=(Wa.test(b.url)?"&":"?")+b.data,delete b.data),q=b.url,!1===b.cache)){D=g.now();var H=b.url.replace(Ib,"$1_="+D);b.url=H+(H===b.url?(Wa.test(b.url)?"&":"?")+"_="+D:"")}(b.data&&b.hasContent&& !1!==b.contentType||c.contentType)&&y.setRequestHeader("Content-Type",b.contentType);b.ifModified&&(q=q||b.url,g.lastModified[q]&&y.setRequestHeader("If-Modified-Since",g.lastModified[q]),g.etag[q]&&y.setRequestHeader("If-None-Match",g.etag[q]));y.setRequestHeader("Accept",b.dataTypes[0]&&b.accepts[b.dataTypes[0]]?b.accepts[b.dataTypes[0]]+("*"!==b.dataTypes[0]?", "+$a+"; q=0.01":""):b.accepts["*"]);for(B in b.headers)y.setRequestHeader(B,b.headers[B]);if(b.beforeSend&&(!1===b.beforeSend.call(k,y, b)||2===z))return y.abort(),!1;for(B in{success:1,error:1,complete:1})y[B](b[B]);if(x=u(Za,b,c,y)){y.readyState=1;C&&l.trigger("ajaxSend",[y,b]);b.async&&0z)d(-1,Z);else throw Z;}}else d(-1,"No Transport");return y},param:function(a,c){var d=[],b=function(a,c){c=g.isFunction(c)?c():c;d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(c)};c===e&&(c=g.ajaxSettings.traditional);if(g.isArray(a)|| a.jquery&&!g.isPlainObject(a))g.each(a,function(){b(this.name,this.value)});else for(var l in a)k(l,a[l],c,b);return d.join("&").replace(Ab,"+")}});g.extend({active:0,lastModified:{},etag:{}});var Jb=g.now(),ra=/(\=)\?(&|$)|\?\?/i;g.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return g.expando+"_"+Jb++}});g.ajaxPrefilter("json jsonp",function(c,d,b){d="string"==typeof c.data&&/^application\/x\-www\-form\-urlencoded/.test(c.contentType);if("jsonp"===c.dataTypes[0]||!1!==c.jsonp&&(ra.test(c.url)|| d&&ra.test(c.data))){var k,l=c.jsonpCallback=g.isFunction(c.jsonpCallback)?c.jsonpCallback():c.jsonpCallback,h=a[l],e=c.url,m=c.data,n="$1"+l+"$2";!1!==c.jsonp&&(e=e.replace(ra,n),c.url===e&&(d&&(m=m.replace(ra,n)),c.data===m&&(e+=(/\?/.test(e)?"&":"?")+c.jsonp+"="+l)));c.url=e;c.data=m;a[l]=function(a){k=[a]};b.always(function(){a[l]=h;k&&g.isFunction(h)&&a[l](k[0])});c.converters["script json"]=function(){k||g.error(l+" was not called");return k[0]};c.dataTypes[0]="json";return"script"}});g.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"}, contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){g.globalEval(a);return a}}});g.ajaxPrefilter("script",function(a){a.cache===e&&(a.cache=!1);a.crossDomain&&(a.type="GET",a.global=!1)});g.ajaxTransport("script",function(a){if(a.crossDomain){var c,d=v.head||v.getElementsByTagName("head")[0]||v.documentElement;return{send:function(b,k){c=v.createElement("script");c.async="async";a.scriptCharset&&(c.charset=a.scriptCharset);c.src=a.url;c.onload=c.onreadystatechange=function(a, f){if(f||!c.readyState||/loaded|complete/.test(c.readyState))c.onload=c.onreadystatechange=null,d&&c.parentNode&&d.removeChild(c),c=e,f||k(200,"success")};d.insertBefore(c,d.firstChild)},abort:function(){c&&c.onload(0,1)}}}});var Da=a.ActiveXObject?function(){for(var a in ja)ja[a](0,1)}:!1,Kb=0,ja;g.ajaxSettings.xhr=a.ActiveXObject?function(){var f;if(!(f=!this.isLocal&&c()))a:{try{f=new a.ActiveXObject("Microsoft.XMLHTTP");break a}catch(d){}f=void 0}return f}:c;(function(a){g.extend(g.support,{ajax:!!a, cors:!!a&&"withCredentials"in a})})(g.ajaxSettings.xhr());g.support.ajax&&g.ajaxTransport(function(c){if(!c.crossDomain||g.support.cors){var d;return{send:function(b,k){var l=c.xhr(),h,m;c.username?l.open(c.type,c.url,c.async,c.username,c.password):l.open(c.type,c.url,c.async);if(c.xhrFields)for(m in c.xhrFields)l[m]=c.xhrFields[m];c.mimeType&&l.overrideMimeType&&l.overrideMimeType(c.mimeType);c.crossDomain||b["X-Requested-With"]||(b["X-Requested-With"]="XMLHttpRequest");try{for(m in b)l.setRequestHeader(m, b[m])}catch(n){}l.send(c.hasContent&&c.data||null);d=function(a,b){var m,n,q,p,t;try{if(d&&(b||4===l.readyState))if(d=e,h&&(l.onreadystatechange=g.noop,Da&&delete ja[h]),b)4!==l.readyState&&l.abort();else{m=l.status;q=l.getAllResponseHeaders();p={};(t=l.responseXML)&&t.documentElement&&(p.xml=t);try{p.text=l.responseText}catch(u){}try{n=l.statusText}catch(u){n=""}m||!c.isLocal||c.crossDomain?1223===m&&(m=204):m=p.text?200:404}}catch(u){b||k(-1,u)}p&&k(m,n,p,q)};c.async&&4!==l.readyState?(h=++Kb,Da&& (ja||(ja={},g(a).unload(Da)),ja[h]=d),l.onreadystatechange=d):d()},abort:function(){d&&d(0,1)}}}});var ta={},P,ca,Lb=/^(?:toggle|show|hide)$/,Mb=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,sa,ma=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],na;g.fn.extend({show:function(a,c,d){var b;if(a||0===a)return this.animate(l("show",3),a,c,d);c=0;for(d=this.length;c=h.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();h.animatedProperties[this.prop]=!0;for(c in h.animatedProperties)!0!==h.animatedProperties[c]&&(k=!1);if(k){null!=h.overflow&&!g.support.shrinkWrapBlocks&&g.each(["","X","Y"],function(a,c){l.style["overflow"+c]=h.overflow[a]});h.hide&&g(l).hide();if(h.hide||h.show)for(c in h.animatedProperties)g.style(l,c,h.orig[c]),g.removeData(l,"fxshow"+c,!0),g.removeData(l,"toggle"+ c,!0);(a=h.complete)&&(h.complete=!1,a.call(l))}return!1}Infinity==h.duration?this.now=b:(d=b-this.startTime,this.state=d/h.duration,this.pos=g.easing[h.animatedProperties[this.prop]](this.state,d,0,1,h.duration),this.now=this.start+(this.end-this.start)*this.pos);this.update();return!0}};g.extend(g.fx,{tick:function(){for(var a,c=g.timers,d=0;d=c[b]?c[d]:Math.max(a.body[b],c[b],a.body[k],c[k]);if(f===e)return a=g.css(a,c),c=parseFloat(a),g.isNumeric(c)?c:a;g(a).css(c,f)},c,a,arguments.length,null)}});a.jQuery=a.$=g;"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return g})})(window);(function(a,e){function b(b,d){var e=b.nodeName.toLowerCase();if("area"===e){d=b.parentNode;e=d.name;if(!b.href||!e||"map"!==d.nodeName.toLowerCase())return!1;b=a("img[usemap=#"+e+"]")[0];return!!b&&h(b)}return(/input|select|textarea|button|object/.test(e)?!b.disabled:"a"==e?b.href||d:d)&&h(b)}function h(b){return!a(b).parents().andSelf().filter(function(){return"hidden"===a.curCSS(this,"visibility")||a.expr.filters.hidden(this)}).length}a.ui=a.ui||{};a.ui.version||(a.extend(a.ui,{version:"1.8.16", 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(b,d){return"number"===typeof b?this.each(function(){var h= this;setTimeout(function(){a(h).focus();d&&d.call(h)},b)}):this._focus.apply(this,arguments)},scrollParent:function(){var b;b=a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?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):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);return/fixed/.test(this.css("position"))||!b.length?a(document):b},zIndex:function(b){if(b!==e)return this.css("zIndex",b);if(this.length){b=a(this[0]);for(var d;b.length&&b[0]!==document;){d=b.css("position");if("absolute"===d||"relative"===d||"fixed"===d)if(d=parseInt(b.css("zIndex"),10),!isNaN(d)&&0!==d)return d;b=b.parent()}}return 0},disableSelection:function(){return this.bind((a.support.selectstart?"selectstart": "mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),a.each(["Width","Height"],function(b,d){function h(d,b,k,l){a.each(c,function(){b-=parseFloat(a.curCSS(d,"padding"+this,!0))||0;k&&(b-=parseFloat(a.curCSS(d,"border"+this+"Width",!0))||0);l&&(b-=parseFloat(a.curCSS(d,"margin"+this,!0))||0)});return b}var c="Width"===d?["Left","Right"]:["Top","Bottom"],k=d.toLowerCase(),p={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight, outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+d]=function(c){return c===e?p["inner"+d].call(this):this.each(function(){a(this).css(k,h(this,c)+"px")})};a.fn["outer"+d]=function(c,b){return"number"!==typeof c?p["outer"+d].call(this,c):this.each(function(){a(this).css(k,h(this,c,!0,b)+"px")})}}),a.extend(a.expr[":"],{data:function(b,d,h){return!!a.data(b,h[3])},focusable:function(l){return b(l,!isNaN(a.attr(l,"tabindex")))},tabbable:function(l){var d=a.attr(l,"tabindex"),h=isNaN(d); return(h||0<=d)&&b(l,!h)}}),a(function(){var b=document.body,d=b.appendChild(d=document.createElement("div"));a.extend(d.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});a.support.minHeight=100===d.offsetHeight;a.support.selectstart="onselectstart"in d;b.removeChild(d).style.display="none"}),a.extend(a.ui,{plugin:{add:function(b,d,h){b=a.ui[b].prototype;for(var c in h)b.plugins[c]=b.plugins[c]||[],b.plugins[c].push([d,h[c]])},call:function(a,d,b){if((d=a.plugins[d])&&a.element[0].parentNode)for(var c= 0;cd&&a=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})(jQuery); (function(a){a.ui=a.ui||{};var e=/left|center|right/,b=/top|center|bottom/,h=a.fn.position,l=a.fn.offset;a.fn.position=function(d){if(!d||!d.of)return h.apply(this,arguments);d=a.extend({},d);var l=a(d.of),c=l[0],k=(d.collision||"flip").split(" "),p=d.offset?d.offset.split(" "):[0,0],u,q,n;9===c.nodeType?(u=l.width(),q=l.height(),n={top:0,left:0}):c.setTimeout?(u=l.width(),q=l.height(),n={top:l.scrollTop(),left:l.scrollLeft()}):c.preventDefault?(d.at="left top",u=q=0,n={top:d.of.pageY,left:d.of.pageX}): (u=l.outerWidth(),q=l.outerHeight(),n=l.offset());a.each(["my","at"],function(){var a=(d[this]||"").split(" ");1===a.length&&(a=e.test(a[0])?a.concat(["center"]):b.test(a[0])?["center"].concat(a):["center","center"]);a[0]=e.test(a[0])?a[0]:"center";a[1]=b.test(a[1])?a[1]:"center";d[this]=a});1===k.length&&(k[1]=k[0]);p[0]=parseInt(p[0],10)||0;1===p.length&&(p[1]=p[0]);p[1]=parseInt(p[1],10)||0;"right"===d.at[0]?n.left+=u:"center"===d.at[0]&&(n.left+=u/2);"bottom"===d.at[1]?n.top+=q:"center"===d.at[1]&& (n.top+=q/2);n.left+=p[0];n.top+=p[1];return this.each(function(){var c=a(this),b=c.outerWidth(),h=c.outerHeight(),e=parseInt(a.curCSS(this,"marginLeft",!0))||0,l=parseInt(a.curCSS(this,"marginTop",!0))||0,m=b+e+(parseInt(a.curCSS(this,"marginRight",!0))||0),y=h+l+(parseInt(a.curCSS(this,"marginBottom",!0))||0),z=a.extend({},n),B;"right"===d.my[0]?z.left-=b:"center"===d.my[0]&&(z.left-=b/2);"bottom"===d.my[1]?z.top-=h:"center"===d.my[1]&&(z.top-=h/2);z.left=Math.round(z.left);z.top=Math.round(z.top); B={left:z.left-e,top:z.top-l};a.each(["left","top"],function(c,e){a.ui.position[k[c]]&&a.ui.position[k[c]][e](z,{targetWidth:u,targetHeight:q,elemWidth:b,elemHeight:h,collisionPosition:B,collisionWidth:m,collisionHeight:y,offset:p,my:d.my,at:d.at})});a.fn.bgiframe&&c.bgiframe();c.offset(a.extend(z,{using:d.using}))})};a.ui.position={fit:{left:function(d,b){var c=a(window),c=b.collisionPosition.left+b.collisionWidth-c.width()-c.scrollLeft();d.left=0b.collisionPosition.left?k+h+e:0b.collisionPosition.top?k+h+e:0
').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(a(this).offset()).appendTo("body")});return!0},_mouseStart:function(e){var b=this.options;this.helper=this._createHelper(e);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:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(e);this.originalPageX=e.pageX; this.originalPageY=e.pageY;b.cursorAt&&this._adjustOffsetFromHelper(b.cursorAt);b.containment&&this._setContainment();if(!1===this._trigger("start",e))return this._clear(),!1;this._cacheHelperProportions();a.ui.ddmanager&&!b.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,e);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(e,!0);a.ui.ddmanager&&a.ui.ddmanager.dragStart(this,e);return!0},_mouseDrag:function(e,b){this.position=this._generatePosition(e);this.positionAbs=this._convertPositionTo("absolute"); if(!b){b=this._uiHash();if(!1===this._trigger("drag",e,b))return this._mouseUp({}),!1;this.position=b.position}this.options.axis&&"y"==this.options.axis||(this.helper[0].style.left=this.position.left+"px");this.options.axis&&"x"==this.options.axis||(this.helper[0].style.top=this.position.top+"px");a.ui.ddmanager&&a.ui.ddmanager.drag(this,e);return!1},_mouseStop:function(e){var b=!1;a.ui.ddmanager&&!this.options.dropBehaviour&&(b=a.ui.ddmanager.drop(this,e));this.dropped&&(b=this.dropped,this.dropped= !1);if(!(this.element[0]&&this.element[0].parentNode||"original"!=this.options.helper))return!1;if("invalid"==this.options.revert&&!b||"valid"==this.options.revert&&b||!0===this.options.revert||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,b)){var h=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==h._trigger("stop",e)&&h._clear()})}else!1!==this._trigger("stop",e)&&this._clear();return!1},_mouseUp:function(e){!0=== this.options.iframeFix&&a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)});a.ui.ddmanager&&a.ui.ddmanager.dragStop(this,e);return a.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(e){var b=this.options.handle&&a(this.options.handle,this.element).length?!1:!0;a(this.options.handle,this.element).find("*").andSelf().each(function(){this==e.target&&(b= !0)});return b},_createHelper:function(e){var b=this.options;e=a.isFunction(b.helper)?a(b.helper.apply(this.element[0],[e])):"clone"==b.helper?this.element.clone().removeAttr("id"):this.element;e.parents("body").length||e.appendTo("parent"==b.appendTo?this.element[0].parentNode:b.appendTo);e[0]!=this.element[0]&&!/(fixed|absolute)/.test(e.css("position"))&&e.css("position","absolute");return e},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" "));a.isArray(e)&&(e={left:+e[0],top:+e[1]|| 0});"left"in e&&(this.offset.click.left=e.left+this.margins.left);"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left);"top"in e&&(this.offset.click.top=e.top+this.margins.top);"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();"absolute"==this.cssPosition&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0], this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop());if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&"html"==this.offsetParent[0].tagName.toLowerCase()&&a.browser.msie)e={top:0,left:0};return{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"==this.cssPosition){var a=this.element.position();return{top:a.top- (parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.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 e=this.options;"parent"==e.containment&&(e.containment=this.helper[0].parentNode);if("document"==e.containment||"window"==e.containment)this.containment=["document"==e.containment?0:a(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,"document"==e.containment?0:a(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,("document"==e.containment?0:a(window).scrollLeft())+a("document"==e.containment?document: window).width()-this.helperProportions.width-this.margins.left,("document"==e.containment?0:a(window).scrollTop())+(a("document"==e.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(/^(document|window|parent)$/.test(e.containment)||e.containment.constructor==Array)e.containment.constructor==Array&&(this.containment=e.containment);else{var e=a(e.containment),b=e[0];if(b){e.offset();var h="hidden"!=a(b).css("overflow");this.containment= [(parseInt(a(b).css("borderLeftWidth"),10)||0)+(parseInt(a(b).css("paddingLeft"),10)||0),(parseInt(a(b).css("borderTopWidth"),10)||0)+(parseInt(a(b).css("paddingTop"),10)||0),(h?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(a(b).css("borderLeftWidth"),10)||0)-(parseInt(a(b).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(h?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(a(b).css("borderTopWidth"),10)||0)-(parseInt(a(b).css("paddingBottom"), 10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relative_container=e}}},_convertPositionTo:function(e,b){b||(b=this.position);e="absolute"==e?1:-1;var h="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(h[0].tagName);return{top:b.top+this.offset.relative.top*e+this.offset.parent.top*e-(a.browser.safari&&526>a.browser.version&&"fixed"==this.cssPosition? 0:("fixed"==this.cssPosition?-this.scrollParent.scrollTop():l?0:h.scrollTop())*e),left:b.left+this.offset.relative.left*e+this.offset.parent.left*e-(a.browser.safari&&526>a.browser.version&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():l?0:h.scrollLeft())*e)}},_generatePosition:function(e){var b=this.options,h="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent, l=/(html|body)/i.test(h[0].tagName),d=e.pageX,m=e.pageY;if(this.originalPosition){var c;this.containment&&(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]):c=this.containment,e.pageX-this.offset.click.leftc[2]&&(d=c[2]+this.offset.click.left), e.pageY-this.offset.click.top>c[3]&&(m=c[3]+this.offset.click.top));b.grid&&(m=b.grid[1]?this.originalPageY+Math.round((m-this.originalPageY)/b.grid[1])*b.grid[1]:this.originalPageY,m=c?m-this.offset.click.topc[3]?m-this.offset.click.topc[2]?d-this.offset.click.lefta.browser.version&&"fixed"==this.cssPosition?0:"fixed"==this.cssPosition?-this.scrollParent.scrollTop():l?0:h.scrollTop()),left:d-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&526>a.browser.version&&"fixed"==this.cssPosition?0:"fixed"==this.cssPosition?-this.scrollParent.scrollLeft():l?0:h.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=!1},_trigger:function(e,b,h){h=h||this._uiHash();a.ui.plugin.call(this,e,[b,h]);"drag"==e&&(this.positionAbs=this._convertPositionTo("absolute"));return a.Widget.prototype._trigger.call(this,e,b,h)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});a.extend(a.ui.draggable,{version:"1.8.16"}); a.ui.plugin.add("draggable","connectToSortable",{start:function(e,b){var h=a(this).data("draggable"),l=h.options,d=a.extend({},b,{item:h.element});h.sortables=[];a(l.connectToSortable).each(function(){var b=a.data(this,"sortable");b&&!b.options.disabled&&(h.sortables.push({instance:b,shouldRevert:b.options.revert}),b.refreshPositions(),b._trigger("activate",e,d))})},stop:function(e,b){var h=a(this).data("draggable"),l=a.extend({},b,{item:h.element});a.each(h.sortables,function(){this.instance.isOver? (this.instance.isOver=0,h.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=!0),this.instance._mouseStop(e),this.instance.options.helper=this.instance.options._helper,"original"==h.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",e,l))})},drag:function(e,b){var h=a(this).data("draggable"),l=this;a.each(h.sortables,function(){this.instance.positionAbs= h.positionAbs;this.instance.helperProportions=h.helperProportions;this.instance.offset.click=h.offset.click;this.instance._intersectsWith(this.instance.containerCache)?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=a(l).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return b.helper[0]},e.target=this.instance.currentItem[0],this.instance._mouseCapture(e, !0),this.instance._mouseStart(e,!0,!0),this.instance.offset.click.top=h.offset.click.top,this.instance.offset.click.left=h.offset.click.left,this.instance.offset.parent.left-=h.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=h.offset.parent.top-this.instance.offset.parent.top,h._trigger("toSortable",e),h.dropped=this.instance.element,h.currentItem=h.element,this.instance.fromOutside=h),this.instance.currentItem&&this.instance._mouseDrag(e)):this.instance.isOver&& (this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",e,this.instance._uiHash(this.instance)),this.instance._mouseStop(e,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),h._trigger("fromSortable",e),h.dropped=!1)})}});a.ui.plugin.add("draggable","cursor",{start:function(){var e=a("body"),b=a(this).data("draggable").options; e.css("cursor")&&(b._cursor=e.css("cursor"));e.css("cursor",b.cursor)},stop:function(){var e=a(this).data("draggable").options;e._cursor&&a("body").css("cursor",e._cursor)}});a.ui.plugin.add("draggable","opacity",{start:function(e,b){e=a(b.helper);b=a(this).data("draggable").options;e.css("opacity")&&(b._opacity=e.css("opacity"));e.css("opacity",b.opacity)},stop:function(e,b){e=a(this).data("draggable").options;e._opacity&&a(b.helper).css("opacity",e._opacity)}});a.ui.plugin.add("draggable","scroll", {start:function(){var e=a(this).data("draggable");e.scrollParent[0]!=document&&"HTML"!=e.scrollParent[0].tagName&&(e.overflowOffset=e.scrollParent.offset())},drag:function(e){var b=a(this).data("draggable"),h=b.options,l=!1;b.scrollParent[0]!=document&&"HTML"!=b.scrollParent[0].tagName?(h.axis&&"x"==h.axis||(b.overflowOffset.top+b.scrollParent[0].offsetHeight-e.pageY=u&&m<=q||c>=u&&c<=q||mq)&&(l>=k&&l<=p||d>=k&&d<=p||lp);default:return!1}}; a.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(e,b){var h=a.ui.ddmanager.droppables[e.options.scope]||[],l=b?b.type:null,d=(e.currentItem||e.element).find(":data(droppable)").andSelf(),m=0;a:for(;m').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=!0,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=e.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){"all"== this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw");var d=this.handles.split(",");this.handles={};for(var m=0;m');/sw|se|ne|nw/.test(c)&&k.css({zIndex:++e.zIndex});"se"==c&&k.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[c]=".ui-resizable-"+c;this.element.append(k)}}this._renderAxis=function(c){c=c||this.element;for(var b in this.handles){this.handles[b].constructor==String&&(this.handles[b]= a(this.handles[b],this.element).show());if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var d=a(this.handles[b],this.element),k=0,k=/sw|ne|nw|se|n|s/.test(b)?d.outerHeight():d.outerWidth(),d=["padding",/ne|nw|n/.test(b)?"Top":/se|sw|s/.test(b)?"Bottom":/^e$/.test(b)?"Right":"Left"].join("");c.css(d,k);this._proportionallyResize()}a(this.handles[b])}};this._renderAxis(this.element);this._handles=a(".ui-resizable-handle",this.element).disableSelection(); this._handles.mouseover(function(){if(!b.resizing){if(this.className)var a=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);b.axis=a&&a[1]?a[1]:"se"}});e.autoHide&&(this._handles.hide(),a(this.element).addClass("ui-resizable-autohide").hover(function(){e.disabled||(a(this).removeClass("ui-resizable-autohide"),b._handles.show())},function(){e.disabled||b.resizing||(a(this).addClass("ui-resizable-autohide"),b._handles.hide())}));this._mouseInit()},destroy:function(){this._mouseDestroy(); var b=function(b){a(b).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){b(this.element);var e=this.element;e.after(this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);b(this.originalElement);return this},_mouseCapture:function(b){var e= !1,d;for(d in this.handles)a(this.handles[d])[0]==b.target&&(e=!0);return!this.options.disabled&&e},_mouseStart:function(b){var l=this.options,d=this.element.position(),m=this.element;this.resizing=!0;this.documentScroll={top:a(document).scrollTop(),left:a(document).scrollLeft()};(m.is(".ui-draggable")||/absolute/.test(m.css("position")))&&m.css({position:"absolute",top:d.top,left:d.left});a.browser.opera&&/relative/.test(m.css("position"))&&m.css({position:"relative",top:"auto",left:"auto"});this._renderProxy(); var d=e(this.helper.css("left")),c=e(this.helper.css("top"));l.containment&&(d+=a(l.containment).scrollLeft()||0,c+=a(l.containment).scrollTop()||0);this.offset=this.helper.offset();this.position={left:d,top:c};this.size=this._helper?{width:m.outerWidth(),height:m.outerHeight()}:{width:m.width(),height:m.height()};this.originalSize=this._helper?{width:m.outerWidth(),height:m.outerHeight()}:{width:m.width(),height:m.height()};this.originalPosition={left:d,top:c};this.sizeDiff={width:m.outerWidth()- m.width(),height:m.outerHeight()-m.height()};this.originalMousePosition={left:b.pageX,top:b.pageY};this.aspectRatio="number"==typeof l.aspectRatio?l.aspectRatio:this.originalSize.width/this.originalSize.height||1;l=a(".ui-resizable-"+this.axis).css("cursor");a("body").css("cursor","auto"==l?this.axis+"-resize":l);m.addClass("ui-resizable-resizing");this._propagate("start",b);return!0},_mouseDrag:function(a){var b=this.helper,d=this.originalMousePosition,e=this._change[this.axis];if(!e)return!1;d= e.apply(this,[a,a.pageX-d.left||0,a.pageY-d.top||0]);this._updateVirtualBoundaries(a.shiftKey);if(this._aspectRatio||a.shiftKey)d=this._updateRatio(d,a);d=this._respectSize(d,a);this._propagate("resize",a);b.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(d);this._trigger("resize",a,this.ui());return!1},_mouseStop:function(b){this.resizing= !1;var e=this.options;if(this._helper){var d=this._proportionallyResizeElements,m=d.length&&/textarea/i.test(d[0].nodeName),d=m&&a.ui.hasScroll(d[0],"left")?0:this.sizeDiff.height,m=m?0:this.sizeDiff.width,m={width:this.helper.width()-m,height:this.helper.height()-d},d=parseInt(this.element.css("left"),10)+(this.position.left-this.originalPosition.left)||null,c=parseInt(this.element.css("top"),10)+(this.position.top-this.originalPosition.top)||null;e.animate||this.element.css(a.extend(m,{top:c,left:d})); this.helper.height(this.size.height);this.helper.width(this.size.width);this._helper&&!e.animate&&this._proportionallyResize()}a("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",b);this._helper&&this.helper.remove();return!1},_updateVirtualBoundaries:function(a){var e=this.options,d,m,c,e={minWidth:b(e.minWidth)?e.minWidth:0,maxWidth:b(e.maxWidth)?e.maxWidth:Infinity,minHeight:b(e.minHeight)?e.minHeight:0,maxHeight:b(e.maxHeight)?e.maxHeight:Infinity}; if(this._aspectRatio||a)a=e.minHeight*this.aspectRatio,m=e.minWidth/this.aspectRatio,d=e.maxHeight*this.aspectRatio,c=e.maxWidth/this.aspectRatio,a>e.minWidth&&(e.minWidth=a),m>e.minHeight&&(e.minHeight=m),da.width,p=b(a.height)&&e.minHeight&&e.minHeight> a.height;k&&(a.width=e.minWidth);p&&(a.height=e.minHeight);m&&(a.width=e.maxWidth);c&&(a.height=e.maxHeight);var u=this.originalPosition.left+this.originalSize.width,q=this.position.top+this.size.height,n=/sw|nw|w/.test(d),d=/nw|ne|n/.test(d);k&&n&&(a.left=u-e.minWidth);m&&n&&(a.left=u-e.maxWidth);p&&d&&(a.top=q-e.minHeight);c&&d&&(a.top=q-e.maxHeight);(e=!a.width&&!a.height)&&!a.left&&a.top?a.top=null:e&&!a.top&&a.left&&(a.left=null);return a},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var b= this.helper||this.element,e=0;e');var e=a.browser.msie&&7>a.browser.version,d=e?1:0,e=e?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+e,height:this.element.outerHeight()+e,position:"absolute",left:this.elementOffset.left- d+"px",top:this.elementOffset.top-d+"px",zIndex:++b.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(a,b){return{width:this.originalSize.width+b}},w:function(a,b){return{left:this.originalPosition.left+b,width:this.originalSize.width-b}},n:function(a,b,d){return{top:this.originalPosition.top+d,height:this.originalSize.height-d}},s:function(a,b,d){return{height:this.originalSize.height+d}},se:function(b,e,d){return a.extend(this._change.s.apply(this, arguments),this._change.e.apply(this,[b,e,d]))},sw:function(b,e,d){return a.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[b,e,d]))},ne:function(b,e,d){return a.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[b,e,d]))},nw:function(b,e,d){return a.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[b,e,d]))}},_propagate:function(b,e){a.ui.plugin.call(this,b,[e,this.ui()]);"resize"!=b&&this._trigger(b,e,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.16"});a.ui.plugin.add("resizable","alsoResize",{start:function(){var b=a(this).data("resizable").options,e=function(b){a(b).each(function(){var b=a(this);b.data("resizable-alsoresize",{width:parseInt(b.width(),10),height:parseInt(b.height(),10),left:parseInt(b.css("left"),10),top:parseInt(b.css("top"),10),position:b.css("position")})})}; "object"!=typeof b.alsoResize||b.alsoResize.parentNode?e(b.alsoResize):b.alsoResize.length?(b.alsoResize=b.alsoResize[0],e(b.alsoResize)):a.each(b.alsoResize,function(a){e(a)})},resize:function(b,e){var d=a(this).data("resizable");b=d.options;var m=d.originalSize,c=d.originalPosition,k={height:d.size.height-m.height||0,width:d.size.width-m.width||0,top:d.position.top-c.top||0,left:d.position.left-c.left||0},p=function(c,b){a(c).each(function(){var c=a(this),h=a(this).data("resizable-alsoresize"), m={},p=b&&b.length?b:c.parents(e.originalElement[0]).length?["width","height"]:["width","height","top","left"];a.each(p,function(a,c){(a=(h[c]||0)+(k[c]||0))&&0<=a&&(m[c]=a||null)});a.browser.opera&&/relative/.test(c.css("position"))&&(d._revertToRelativePosition=!0,c.css({position:"absolute",top:"auto",left:"auto"}));c.css(m)})};"object"!=typeof b.alsoResize||b.alsoResize.nodeType?p(b.alsoResize):a.each(b.alsoResize,function(a,c){p(a,c)})},stop:function(){var b=a(this).data("resizable"),e=b.options, d=function(b){a(b).each(function(){var c=a(this);c.css({position:c.data("resizable-alsoresize").position})})};b._revertToRelativePosition&&(b._revertToRelativePosition=!1,"object"!=typeof e.alsoResize||e.alsoResize.nodeType?d(e.alsoResize):a.each(e.alsoResize,function(a){d(a)}));a(this).removeData("resizable-alsoresize")}});a.ui.plugin.add("resizable","animate",{stop:function(b){var e=a(this).data("resizable"),d=e.options,m=e._proportionallyResizeElements,c=m.length&&/textarea/i.test(m[0].nodeName), k=c&&a.ui.hasScroll(m[0],"left")?0:e.sizeDiff.height,c={width:e.size.width-(c?0:e.sizeDiff.width),height:e.size.height-k},k=parseInt(e.element.css("left"),10)+(e.position.left-e.originalPosition.left)||null,p=parseInt(e.element.css("top"),10)+(e.position.top-e.originalPosition.top)||null;e.element.animate(a.extend(c,p&&k?{top:p,left:k}:{}),{duration:d.animateDuration,easing:d.animateEasing,step:function(){var c={width:parseInt(e.element.css("width"),10),height:parseInt(e.element.css("height"),10), top:parseInt(e.element.css("top"),10),left:parseInt(e.element.css("left"),10)};m&&m.length&&a(m[0]).css({width:c.width,height:c.height});e._updateCache(c);e._propagate("resize",b)}})}});a.ui.plugin.add("resizable","containment",{start:function(){var b=a(this).data("resizable"),l=b.element,d=b.options.containment;if(l=d instanceof a?d.get(0):/parent/.test(d)?l.parent().get(0):d)if(b.containerElement=a(l),/document/.test(d)||d==document)b.containerOffset={left:0,top:0},b.containerPosition={left:0,top:0}, b.parentData={element:a(document),left:0,top:0,width:a(document).width(),height:a(document).height()||document.body.parentNode.scrollHeight};else{var m=a(l),c=[];a(["Top","Right","Left","Bottom"]).each(function(a,b){c[a]=e(m.css("padding"+b))});b.containerOffset=m.offset();b.containerPosition=m.position();b.containerSize={height:m.innerHeight()-c[3],width:m.innerWidth()-c[1]};var d=b.containerOffset,k=b.containerSize.height,p=b.containerSize.width,p=a.ui.hasScroll(l,"left")?l.scrollWidth:p,k=a.ui.hasScroll(l)? l.scrollHeight:k;b.parentData={element:l,left:d.left,top:d.top,width:p,height:k}}},resize:function(b){var e=a(this).data("resizable"),d=e.options,m=e.containerOffset,c=e.position;b=e._aspectRatio||b.shiftKey;var k={top:0,left:0},p=e.containerElement;p[0]!=document&&/static/.test(p.css("position"))&&(k=m);c.left<(e._helper?m.left:0)&&(e.size.width+=e._helper?e.position.left-m.left:e.position.left-k.left,b&&(e.size.height=e.size.width/d.aspectRatio),e.position.left=d.helper?m.left:0);c.top<(e._helper? m.top:0)&&(e.size.height+=e._helper?e.position.top-m.top:e.position.top,b&&(e.size.width=e.size.height*d.aspectRatio),e.position.top=e._helper?m.top:0);e.offset.left=e.parentData.left+e.position.left;e.offset.top=e.parentData.top+e.position.top;d=Math.abs(e.offset.left-k.left+e.sizeDiff.width);m=Math.abs((e._helper?e.offset.top-k.top:e.offset.top-m.top)+e.sizeDiff.height);c=e.containerElement.get(0)==e.element.parent().get(0);k=/relative|absolute/.test(e.containerElement.css("position"));c&&k&&(d-= e.parentData.left);d+e.size.width>=e.parentData.width&&(e.size.width=e.parentData.width-d,b&&(e.size.height=e.size.width/e.aspectRatio));m+e.size.height>=e.parentData.height&&(e.size.height=e.parentData.height-m,b&&(e.size.width=e.size.height*e.aspectRatio))},stop:function(){var b=a(this).data("resizable"),e=b.options,d=b.containerOffset,m=b.containerPosition,c=b.containerElement,k=a(b.helper),p=k.offset(),u=k.outerWidth()-b.sizeDiff.width,k=k.outerHeight()-b.sizeDiff.height;b._helper&&!e.animate&& /relative/.test(c.css("position"))&&a(this).css({left:p.left-m.left-d.left,width:u,height:k});b._helper&&!e.animate&&/static/.test(c.css("position"))&&a(this).css({left:p.left-m.left-d.left,width:u,height:k})}});a.ui.plugin.add("resizable","ghost",{start:function(){var b=a(this).data("resizable"),e=b.options,d=b.size;b.ghost=b.originalElement.clone();b.ghost.css({opacity:.25,display:"block",position:"relative",height:d.height,width:d.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"== typeof e.ghost?e.ghost:"");b.ghost.appendTo(b.helper)},resize:function(){var b=a(this).data("resizable");b.ghost&&b.ghost.css({position:"relative",height:b.size.height,width:b.size.width})},stop:function(){var b=a(this).data("resizable");b.ghost&&b.helper&&b.helper.get(0).removeChild(b.ghost.get(0))}});a.ui.plugin.add("resizable","grid",{resize:function(){var b=a(this).data("resizable"),e=b.options,d=b.size,m=b.originalSize,c=b.originalPosition,k=b.axis;e.grid="number"==typeof e.grid?[e.grid,e.grid]: e.grid;var p=Math.round((d.width-m.width)/(e.grid[0]||1))*(e.grid[0]||1),e=Math.round((d.height-m.height)/(e.grid[1]||1))*(e.grid[1]||1);/^(se|s|e)$/.test(k)?(b.size.width=m.width+p,b.size.height=m.height+e):/^(ne)$/.test(k)?(b.size.width=m.width+p,b.size.height=m.height+e,b.position.top=c.top-e):(/^(sw)$/.test(k)?(b.size.width=m.width+p,b.size.height=m.height+e):(b.size.width=m.width+p,b.size.height=m.height+e,b.position.top=c.top-e),b.position.left=c.left-p)}});var e=function(a){return parseInt(a, 10)||0},b=function(a){return!isNaN(parseInt(a,10))}})(jQuery); (function(a){var e=0;a.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var b=this,e=this.element[0].ownerDocument,l;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(d){if(!b.options.disabled&&!b.element.propAttr("readOnly")){l= !1;var e=a.ui.keyCode;switch(d.keyCode){case e.PAGE_UP:b._move("previousPage",d);break;case e.PAGE_DOWN:b._move("nextPage",d);break;case e.UP:b._move("previous",d);d.preventDefault();break;case e.DOWN:b._move("next",d);d.preventDefault();break;case e.ENTER:case e.NUMPAD_ENTER:b.menu.active&&(l=!0,d.preventDefault());case e.TAB:if(!b.menu.active)break;b.menu.select(d);break;case e.ESCAPE:b.element.val(b.term);b.close(d);break;default:clearTimeout(b.searching),b.searching=setTimeout(function(){b.term!= b.element.val()&&(b.selectedItem=null,b.search(null,d))},b.options.delay)}}}).bind("keypress.autocomplete",function(a){l&&(l=!1,a.preventDefault())}).bind("focus.autocomplete",function(){b.options.disabled||(b.selectedItem=null,b.previous=b.element.val())}).bind("blur.autocomplete",function(a){b.options.disabled||(clearTimeout(b.searching),b.closing=setTimeout(function(){b.close(a);b._change(a)},150))});this._initSource();this.response=function(){return b._response.apply(b,arguments)};this.menu=a("
    ").addClass("ui-autocomplete").appendTo(a(this.options.appendTo|| "body",e)[0]).mousedown(function(d){var e=b.menu.element[0];a(d.target).closest(".ui-menu-item").length||setTimeout(function(){a(document).one("mousedown",function(c){c.target!==b.element[0]&&c.target!==e&&!a.ui.contains(e,c.target)&&b.close()})},1);setTimeout(function(){clearTimeout(b.closing)},13)}).menu({focus:function(a,e){e=e.item.data("item.autocomplete");!1!==b._trigger("focus",a,{item:e})&&/^key/.test(a.originalEvent.type)&&b.element.val(e.value)},selected:function(a,m){var c=m.item.data("item.autocomplete"), k=b.previous;b.element[0]!==e.activeElement&&(b.element.focus(),b.previous=k,setTimeout(function(){b.previous=k;b.selectedItem=c},1));!1!==b._trigger("select",a,{item:c})&&b.element.val(c.value);b.term=b.element.val();b.close(a);b.selectedItem=c},blur:function(){b.menu.element.is(":visible")&&b.element.val()!==b.term&&b.element.val(b.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");a.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup"); this.menu.element.remove();a.Widget.prototype.destroy.call(this)},_setOption:function(b,e){a.Widget.prototype._setOption.apply(this,arguments);"source"===b&&this._initSource();"appendTo"===b&&this.menu.element.appendTo(a(e||"body",this.element[0].ownerDocument)[0]);"disabled"===b&&e&&this.xhr&&this.xhr.abort()},_initSource:function(){var b=this,h,l;a.isArray(this.options.source)?(h=this.options.source,this.source=function(b,e){e(a.ui.autocomplete.filter(h,b.term))}):"string"===typeof this.options.source? (l=this.options.source,this.source=function(d,h){b.xhr&&b.xhr.abort();b.xhr=a.ajax({url:l,data:d,dataType:"json",autocompleteRequest:++e,success:function(a){this.autocompleteRequest===e&&h(a)},error:function(){this.autocompleteRequest===e&&h([])}})}):this.source=this.options.source},search:function(a,e){a=null!=a?a:this.element.val();this.term=this.element.val();if(a.length").data("item.autocomplete",e).append(a("").text(e.label)).appendTo(b)},_move:function(a,e){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(a)||this.menu.last()&& /^next/.test(a))this.element.val(this.term),this.menu.deactivate();else this.menu[a](e);else this.search(null,e)},widget:function(){return this.menu.element}});a.extend(a.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(b,e){var l=new RegExp(a.ui.autocomplete.escapeRegex(e),"i");return a.grep(b,function(a){return l.test(a.label||a.value||a)})}})})(jQuery); (function(a){a.widget("ui.menu",{_create:function(){var e=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(b){a(b.target).closest(".ui-menu-item a").length&&(b.preventDefault(),e.select(b))});this.refresh()},refresh:function(){var e=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(b){e.activate(b,a(this).parent())}).mouseleave(function(){e.deactivate()})},activate:function(a,b){this.deactivate();if(this.hasScroll()){var h=b.offset().top-this.element.offset().top,l=this.element.scrollTop(),d=this.element.height();0>h?this.element.scrollTop(l+h):h>=d&&this.element.scrollTop(l+h-d+b.height())}this.active=b.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",a,{item:b})},deactivate:function(){this.active&& (this.active.children("a").removeClass("ui-state-hover").removeAttr("id"),this._trigger("blur"),this.active=null)},next:function(a){this.move("next",".ui-menu-item:first",a)},previous:function(a){this.move("prev",".ui-menu-item:last",a)},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(a,b,h){this.active?(a=this.active[a+"All"](".ui-menu-item").eq(0),a.length?this.activate(h, a):this.activate(h,this.element.children(b))):this.activate(h,this.element.children(b))},nextPage:function(e){if(this.hasScroll())if(!this.active||this.last())this.activate(e,this.element.children(".ui-menu-item:first"));else{var b=this.active.offset().top,h=this.element.height(),l=this.element.children(".ui-menu-item").filter(function(){var d=a(this).offset().top-b-h+a(this).height();return 10>d&&-10e&&-10e&&a(this).css("top",b.top-e)}},resizable:!0,show:null,stack:!0,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");"string"!==typeof this.originalTitle&&(this.originalTitle="");this.options.title=this.options.title||this.originalTitle;var b=this,e=b.options,c=e.title||"\u00a0",k=a.ui.dialog.getTitleId(b.element),h=(b.uiDialog=a("
    ")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+ e.dialogClass).css({zIndex:e.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(c){e.closeOnEscape&&!c.isDefaultPrevented()&&c.keyCode&&c.keyCode===a.ui.keyCode.ESCAPE&&(b.close(c),c.preventDefault())}).attr({role:"dialog","aria-labelledby":k}).mousedown(function(a){b.moveToTop(!1,a)});b.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(h);var l=(b.uiDialogTitlebar=a("
    ")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(h), q=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(a){b.close(a);return!1}).appendTo(l);(b.uiDialogTitlebarCloseText=a("")).addClass("ui-icon ui-icon-closethick").text(e.closeText).appendTo(q);a("").addClass("ui-dialog-title").attr("id", k).html(c).prependTo(l);a.isFunction(e.beforeclose)&&!a.isFunction(e.beforeClose)&&(e.beforeClose=e.beforeclose);l.find("*").add(l).disableSelection();e.draggable&&a.fn.draggable&&b._makeDraggable();e.resizable&&a.fn.resizable&&b._makeResizable();b._createButtons(e.buttons);b._isOpen=!1;a.fn.bgiframe&&h.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){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);return this},widget:function(){return this.uiDialog},close:function(b){var e=this,c,k;if(!1!==e._trigger("beforeClose",b))return e.overlay&&e.overlay.destroy(),e.uiDialog.unbind("keypress.ui-dialog"),e._isOpen=!1,e.options.hide?e.uiDialog.hide(e.options.hide,function(){e._trigger("close",b)}):(e.uiDialog.hide(),e._trigger("close",b)),a.ui.dialog.overlay.resize(),e.options.modal&&(c=0,a(".ui-dialog").each(function(){this!== e.uiDialog[0]&&(k=a(this).css("z-index"),isNaN(k)||(c=Math.max(c,k)))}),a.ui.dialog.maxZ=c),e},isOpen:function(){return this._isOpen},moveToTop:function(b,e){var c=this.options;if(c.modal&&!b||!c.stack&&!c.modal)return this._trigger("focus",e);c.zIndex>a.ui.dialog.maxZ&&(a.ui.dialog.maxZ=c.zIndex);this.overlay&&(a.ui.dialog.maxZ+=1,this.overlay.$el.css("z-index",a.ui.dialog.overlay.maxZ=a.ui.dialog.maxZ));b={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(b);this._trigger("focus",e);return this},open:function(){if(!this._isOpen){var b=this.options,e=this.uiDialog;this.overlay=b.modal?new a.ui.dialog.overlay(this):null;this._size();this._position(b.position);e.show(b.show);this.moveToTop(!0);b.modal&&e.bind("keypress.ui-dialog",function(c){if(c.keyCode===a.ui.keyCode.TAB){var b=a(":tabbable",this),d=b.filter(":first"),b=b.filter(":last");if(c.target===b[0]&&!c.shiftKey)return d.focus(1), !1;if(c.target===d[0]&&c.shiftKey)return b.focus(1),!1}});a(this.element.find(":tabbable").get().concat(e.find(".ui-dialog-buttonpane :tabbable").get().concat(e.get()))).eq(0).focus();this._isOpen=!0;this._trigger("open");return this}},_createButtons:function(b){var e=this,c=!1,k=a("
    ").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),h=a("
    ").addClass("ui-dialog-buttonset").appendTo(k);e.uiDialog.find(".ui-dialog-buttonpane").remove();"object"===typeof b&& null!==b&&a.each(b,function(){return!(c=!0)});c&&(a.each(b,function(c,b){b=a.isFunction(b)?{click:b,text:c}:b;var d=a('').click(function(){b.click.apply(e.element[0],arguments)}).appendTo(h);a.each(b,function(a,c){"click"!==a&&(a in l?d[a](c):d.attr(a,c))});a.fn.button&&d.button()}),k.appendTo(e.uiDialog))},_makeDraggable:function(){function b(a){return{position:a.position,offset:a.offset}}var e=this,c=e.options,k=a(document),h;e.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close", handle:".ui-dialog-titlebar",containment:"document",start:function(k,l){h="auto"===c.height?"auto":a(this).height();a(this).height(a(this).height()).addClass("ui-dialog-dragging");e._trigger("dragStart",k,b(l))},drag:function(a,c){e._trigger("drag",a,b(c))},stop:function(l,q){c.position=[q.position.left-k.scrollLeft(),q.position.top-k.scrollTop()];a(this).removeClass("ui-dialog-dragging").height(h);e._trigger("dragStop",l,b(q));a.ui.dialog.overlay.resize()}})},_makeResizable:function(b){function h(a){return{originalPosition:a.originalPosition, originalSize:a.originalSize,position:a.position,size:a.size}}b=b===e?this.options.resizable:b;var c=this,k=c.options,l=c.uiDialog.css("position");b="string"===typeof b?b:"n,e,s,w,se,sw,ne,nw";c.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:c.element,maxWidth:k.maxWidth,maxHeight:k.maxHeight,minWidth:k.minWidth,minHeight:c._minHeight(),handles:b,start:function(b,d){a(this).addClass("ui-dialog-resizing");c._trigger("resizeStart",b,h(d))},resize:function(a,b){c._trigger("resize", a,h(b))},stop:function(b,d){a(this).removeClass("ui-dialog-resizing");k.height=a(this).height();k.width=a(this).width();c._trigger("resizeStop",b,h(d));a.ui.dialog.overlay.resize()}}).css("position",l).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var a=this.options;return"auto"===a.height?a.minHeight:Math.min(a.minHeight,a.height)},_position:function(b){var e=[],c=[0,0],k;if(b){if("string"===typeof b||"object"===typeof b&&"0"in b)e=b.split?b.split(" "): [b[0],b[1]],1===e.length&&(e[1]=e[0]),a.each(["left","top"],function(a,b){+e[a]===e[a]&&(c[a]=e[a],e[a]=b)}),b={my:e.join(" "),at:e.join(" "),offset:c.join(" ")};b=a.extend({},a.ui.dialog.prototype.options.position,b)}else b=a.ui.dialog.prototype.options.position;(k=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(a.extend({of:window},b));k||this.uiDialog.hide()},_setOptions:function(d){var e=this,c={},k=!1;a.each(d,function(a,d){e._setOption(a,d);a in b&&(k=!0);a in h&&(c[a]=d)});k&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",c)},_setOption:function(b,e){var c=this.uiDialog;switch(b){case "beforeclose":b="beforeClose";break;case "buttons":this._createButtons(e);break;case "closeText":this.uiDialogTitlebarCloseText.text(""+e);break;case "dialogClass":c.removeClass(this.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+e);break;case "disabled":e?c.addClass("ui-dialog-disabled"): c.removeClass("ui-dialog-disabled");break;case "draggable":var k=c.is(":data(draggable)");k&&!e&&c.draggable("destroy");!k&&e&&this._makeDraggable();break;case "position":this._position(e);break;case "resizable":(k=c.is(":data(resizable)"))&&!e&&c.resizable("destroy");k&&"string"===typeof e&&c.resizable("option","handles",e);!k&&!1!==e&&this._makeResizable(e);break;case "title":a(".ui-dialog-title",this.uiDialogTitlebar).html(""+(e||"\u00a0"))}a.Widget.prototype._setOption.apply(this,arguments)}, _size:function(){var b=this.options,e,c,k=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});b.minWidth>b.width&&(b.width=b.minWidth);e=this.uiDialog.css({height:"auto",width:b.width}).height();c=Math.max(0,b.minHeight-e);"auto"===b.height?a.support.minHeight?this.element.css({minHeight:c,height:"auto"}):(this.uiDialog.show(),b=this.element.css("height","auto").height(),k||this.uiDialog.hide(),this.element.height(Math.max(b,c))):this.element.height(Math.max(b.height- e,0));this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});a.extend(a.ui.dialog,{version:"1.8.16",uuid:0,maxZ:0,getTitleId:function(a){a=a.attr("id");a||(a=this.uuid+=1);return"ui-dialog-title-"+a},overlay:function(b){this.$el=a.ui.dialog.overlay.create(b)}});a.extend(a.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:a.map("focus mousedown mouseup keydown keypress click".split(" "),function(a){return a+".dialog-overlay"}).join(" "), create:function(b){0===this.instances.length&&(setTimeout(function(){a.ui.dialog.overlay.instances.length&&a(document).bind(a.ui.dialog.overlay.events,function(c){if(a(c.target).zIndex()").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});a.fn.bgiframe&&e.bgiframe();this.instances.push(e);return e},destroy:function(b){var e=a.inArray(b,this.instances);-1!=e&&this.oldInstances.push(this.instances.splice(e,1)[0]);0===this.instances.length&&a([document,window]).unbind(".dialog-overlay");b.remove();var c=0;a.each(this.instances,function(){c=Math.max(c,this.css("z-index"))});this.maxZ=c},height:function(){var b,e;return a.browser.msie&& 7>a.browser.version?(b=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),e=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight),b'))}function h(c){return c.bind("mouseout",function(c){c=a(c.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a"); c.length&&c.removeClass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover")}).bind("mouseover",function(b){b=a(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");!a.datepicker._isDisabledDatepicker(m.inline?c.parent()[0]:m.input[0])&&b.length&&(b.parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),b.addClass("ui-state-hover"),b.hasClass("ui-datepicker-prev")&&b.addClass("ui-datepicker-prev-hover"),b.hasClass("ui-datepicker-next")&& b.addClass("ui-datepicker-next-hover"))})}function l(c,b){a.extend(c,b);for(var d in b)if(null==b[d]||b[d]==e)c[d]=b[d];return c}a.extend(a.ui,{datepicker:{version:"1.8.16"}});var d=(new Date).getTime(),m;a.extend(b.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){l(this._defaults,a||{});return this},_attachDatepicker:function(c,b){var d=null,e;for(e in this._defaults){var h= c.getAttribute("date:"+e);if(h){d=d||{};try{d[e]=eval(h)}catch(l){d[e]=h}}}e=c.nodeName.toLowerCase();h="div"==e||"span"==e;c.id||(this.uuid+=1,c.id="dp"+this.uuid);var n=this._newInst(a(c),h);n.settings=a.extend({},b||{},d||{});"input"==e?this._connectDatepicker(c,n):h&&this._inlineDatepicker(c,n)},_newInst:function(c,b){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:b,dpDiv:b?h(a('
    ')):this.dpDiv}},_connectDatepicker:function(c,b){var d=a(c);b.append=a([]);b.trigger=a([]);d.hasClass(this.markerClassName)||(this._attachments(d,b),d.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(a,c,d){b.settings[c]=d}).bind("getData.datepicker",function(a,c){return this._get(b,c)}),this._autoSize(b),a.data(c,"datepicker", b),b.settings.disabled&&this._disableDatepicker(c))},_attachments:function(c,b){var d=this._get(b,"appendText"),e=this._get(b,"isRTL");b.append&&b.append.remove();d&&(b.append=a(''+d+""),c[e?"before":"after"](b.append));c.unbind("focus",this._showDatepicker);b.trigger&&b.trigger.remove();d=this._get(b,"showOn");"focus"!=d&&"both"!=d||c.focus(this._showDatepicker);if("button"==d||"both"==d){var d=this._get(b,"buttonText"),h=this._get(b,"buttonImage");b.trigger= a(this._get(b,"buttonImageOnly")?a("").addClass(this._triggerClass).attr({src:h,alt:d,title:d}):a('').addClass(this._triggerClass).html(""==h?d:a("").attr({src:h,alt:d,title:d})));c[e?"before":"after"](b.trigger);b.trigger.click(function(){a.datepicker._datepickerShowing&&a.datepicker._lastInput==c[0]?a.datepicker._hideDatepicker():a.datepicker._showDatepicker(c[0]);return!1})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b=new Date(2009, 11,20),d=this._get(a,"dateFormat");if(d.match(/[DM]/)){var e=function(a){for(var c=0,b=0,d=0;dc&&(c=a[d].length,b=d);return b};b.setMonth(e(this._get(a,d.match(/MM/)?"monthNames":"monthNamesShort")));b.setDate(e(this._get(a,d.match(/DD/)?"dayNames":"dayNamesShort"))+20-b.getDay())}a.input.attr("size",this._formatDate(a,b).length)}},_inlineDatepicker:function(c,b){var d=a(c);d.hasClass(this.markerClassName)||(d.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker", function(a,c,d){b.settings[c]=d}).bind("getData.datepicker",function(a,c){return this._get(b,c)}),a.data(c,"datepicker",b),this._setDate(b,this._getDefaultDate(b),!0),this._updateDatepicker(b),this._updateAlternate(b),b.settings.disabled&&this._disableDatepicker(c),b.dpDiv.css("display","block"))},_dialogDatepicker:function(c,b,d,e,h){c=this._dialogInst;c||(this.uuid+=1,this._dialogInput=a(''), this._dialogInput.keydown(this._doKeyDown),a("body").append(this._dialogInput),c=this._dialogInst=this._newInst(this._dialogInput,!1),c.settings={},a.data(this._dialogInput[0],"datepicker",c));l(c.settings,e||{});b=b&&b.constructor==Date?this._formatDate(c,b):b;this._dialogInput.val(b);this._pos=h?h.length?h:[h.pageX,h.pageY]:null;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)]);this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");c.settings.onSelect=d;this._inDialog=!0;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);a.blockUI&&a.blockUI(this.dpDiv);a.data(this._dialogInput[0],"datepicker",c);return this},_destroyDatepicker:function(c){var b=a(c),d=a.data(c,"datepicker");if(b.hasClass(this.markerClassName)){var e=c.nodeName.toLowerCase();a.removeData(c, "datepicker");"input"==e?(d.append.remove(),d.trigger.remove(),b.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):"div"!=e&&"span"!=e||b.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(c){var b=a(c),d=a.data(c,"datepicker");if(b.hasClass(this.markerClassName)){var e=c.nodeName.toLowerCase();if("input"==e)c.disabled=!1,d.trigger.filter("button").each(function(){this.disabled= !1}).end().filter("img").css({opacity:"1.0",cursor:""});else if("div"==e||"span"==e)b=b.children("."+this._inlineClass),b.children().removeClass("ui-state-disabled"),b.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("disabled");this._disabledInputs=a.map(this._disabledInputs,function(a){return a==c?null:a})}},_disableDatepicker:function(c){var b=a(c),d=a.data(c,"datepicker");if(b.hasClass(this.markerClassName)){var e=c.nodeName.toLowerCase();if("input"==e)c.disabled=!0,d.trigger.filter("button").each(function(){this.disabled= !0}).end().filter("img").css({opacity:"0.5",cursor:"default"});else if("div"==e||"span"==e)b=b.children("."+this._inlineClass),b.children().addClass("ui-state-disabled"),b.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","disabled");this._disabledInputs=a.map(this._disabledInputs,function(a){return a==c?null:a});this._disabledInputs[this._disabledInputs.length]=c}},_isDisabledDatepicker:function(a){if(!a)return!1;for(var b=0;bd||!b||-1r&&r>e?Math.abs(b.left+e-r):0);b.top-=Math.min(b.top,b.top+h>w&&w>h?Math.abs(h+m):0);return b},_findPos:function(c){for(var b=this._get(this._getInst(c),"isRTL");c&&("hidden"==c.type||1!=c.nodeType||a.expr.filters.hidden(c));)c=c[b?"previousSibling":"nextSibling"];c=a(c).offset();return[c.left,c.top]},_triggerOnClose:function(a){var b= this._get(a,"onClose");b&&b.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a])},_hideDatepicker:function(c){var b=this._curInst;if(b&&(!c||b==a.data(c,"datepicker"))&&this._datepickerShowing){c=this._get(b,"showAnim");var d=this._get(b,"duration"),e=function(){a.datepicker._tidyDialog(b);this._curInst=null};a.effects&&a.effects[c]?b.dpDiv.hide(c,a.datepicker._get(b,"showOptions"),d,e):b.dpDiv["slideDown"==c?"slideUp":"fadeIn"==c?"fadeOut":"hide"](c?d:null,e);c||e();a.datepicker._triggerOnClose(b); this._datepickerShowing=!1;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=!1}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(c){a.datepicker._curInst&&(c=a(c.target),c[0].id==a.datepicker._mainDivId||0!=c.parents("#"+a.datepicker._mainDivId).length||c.hasClass(a.datepicker.markerClassName)|| c.hasClass(a.datepicker._triggerClass)||!a.datepicker._datepickerShowing||a.datepicker._inDialog&&a.blockUI||a.datepicker._hideDatepicker())},_adjustDate:function(c,b,d){c=a(c);var e=this._getInst(c[0]);this._isDisabledDatepicker(c[0])||(this._adjustInstDate(e,b+("M"==d?this._get(e,"showCurrentAtPos"):0),d),this._updateDatepicker(e))},_gotoToday:function(c){c=a(c);var b=this._getInst(c[0]);if(this._get(b,"gotoCurrent")&&b.currentDay)b.selectedDay=b.currentDay,b.drawMonth=b.selectedMonth=b.currentMonth, b.drawYear=b.selectedYear=b.currentYear;else{var d=new Date;b.selectedDay=d.getDate();b.drawMonth=b.selectedMonth=d.getMonth();b.drawYear=b.selectedYear=d.getFullYear()}this._notifyChange(b);this._adjustDate(c)},_selectMonthYear:function(c,b,d){c=a(c);var e=this._getInst(c[0]);e["selected"+("M"==d?"Month":"Year")]=e["draw"+("M"==d?"Month":"Year")]=parseInt(b.options[b.selectedIndex].value,10);this._notifyChange(e);this._adjustDate(c)},_selectDay:function(c,b,d,e){var h=a(c);a(e).hasClass(this._unselectableClass)|| this._isDisabledDatepicker(h[0])||(h=this._getInst(h[0]),h.selectedDay=h.currentDay=a("a",e).html(),h.selectedMonth=h.currentMonth=b,h.selectedYear=h.currentYear=d,this._selectDate(c,this._formatDate(h,h.currentDay,h.currentMonth,h.currentYear)))},_clearDate:function(c){c=a(c);this._getInst(c[0]);this._selectDate(c,"")},_selectDate:function(c,b){c=this._getInst(a(c)[0]);b=null!=b?b:this._formatDate(c);c.input&&c.input.val(b);this._updateAlternate(c);var d=this._get(c,"onSelect");d?d.apply(c.input? c.input[0]:null,[b,c]):c.input&&c.input.trigger("change");c.inline?this._updateDatepicker(c):(this._hideDatepicker(),this._lastInput=c.input[0],"object"!=typeof c.input[0]&&c.input.focus(),this._lastInput=null)},_updateAlternate:function(c){var b=this._get(c,"altField");if(b){var d=this._get(c,"altFormat")||this._get(c,"dateFormat"),e=this._getDate(c),h=this.formatDate(d,e,this._getFormatConfig(c));a(b).each(function(){a(this).val(h)})}},noWeekends:function(a){a=a.getDay();return[0a,""]},iso8601Week:function(a){a= new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var b=a.getTime();a.setMonth(0);a.setDate(1);return Math.floor(Math.round((b-a)/864E5)/7)+1},parseDate:function(c,b,d){if(null==c||null==b)throw"Invalid arguments";b="object"==typeof b?b.toString():b+"";if(""==b)return null;for(var e=(d?d.shortYearCutoff:null)||this._defaults.shortYearCutoff,e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),h=(d?d.dayNamesShort:null)||this._defaults.dayNamesShort,l=(d?d.dayNames:null)|| this._defaults.dayNames,m=(d?d.monthNamesShort:null)||this._defaults.monthNamesShort,r=(d?d.monthNames:null)||this._defaults.monthNames,w=d=-1,x=-1,D=-1,C=!1,y=function(a){(a=N+1d&&(d+=(new Date).getFullYear()-(new Date).getFullYear()%100+(d<=e?0:-100));if(-1b.getYear()%100?"0":"")+b.getYear()%100;break;case "@":x+=b.getTime();break;case "!":x+=1E4*b.getTime()+this._ticksTo1970;break;case "'":m("'")?x+="'":D=!0;break; default:x+=a.charAt(C)}return x},_possibleChars:function(a){for(var b="",d=!1,e=function(b){(b=h+1r&&(r+=12,z--);if(y)for(var B=this._daylightSavingAdjust(new Date(y.getFullYear(),y.getMonth()-m[0]*m[1]+1,y.getDate())),B=C&&BB;)r--,0>r&&(r=11,z--);c.drawMonth=r;c.drawYear=z;var B=this._get(c,"prevText"),B=n? this.formatDate(B,this._daylightSavingAdjust(new Date(z,r-w,1)),this._getFormatConfig(c)):B,B=this._canAdjustMonth(c,-1,z,r)?''+B+"":l?"":''+B+"", E=this._get(c,"nextText"),E=n?this.formatDate(E,this._daylightSavingAdjust(new Date(z,r+w,1)),this._getFormatConfig(c)):E,l=this._canAdjustMonth(c,1,z,r)?''+E+"":l?"":''+E+"",w=this._get(c,"currentText"),E=this._get(c,"gotoCurrent")&&c.currentDay?D:b,w=n?this.formatDate(w,E,this._getFormatConfig(c)):w,n=c.inline?"":'",h=h?'
    '+(e?n:"")+(this._isInRange(c,E)?'":"")+(e?"":n)+"
    ":"",n=parseInt(this._get(c,"firstDay"),10),n=isNaN(n)?0:n,w=this._get(c,"showWeek"),E=this._get(c,"dayNames");this._get(c,"dayNamesShort");var H=this._get(c,"dayNamesMin"),N=this._get(c,"monthNames"),O=this._get(c,"monthNamesShort"),K=this._get(c,"beforeShowDay"),S=this._get(c,"showOtherMonths"),v=this._get(c,"selectOtherMonths");this._get(c,"calculateWeek");for(var pa=this._getDefaultDate(c),R="",g=0;g'+ (/all|left/.test(L)&&0==g?e?l:B:"")+(/all|right/.test(L)&&0==g?e?B:l:"")+this._generateMonthYearHeader(c,r,z,C,y,0
    '),M=w?'":"",L=0;7>L;L++)var I=(L+n)%7,M=M+("'+H[I]+"");J+=M+"";M=this._getDaysInMonth(z,r);z==c.selectedYear&&r==c.selectedMonth&&(c.selectedDay= Math.min(c.selectedDay,M));L=(this._getFirstDayOfMonth(z,r)-n+7)%7;M=Math.ceil((L+M)/7);this.maxRows=M=x?this.maxRows>M?this.maxRows:M:M;for(var I=this._daylightSavingAdjust(new Date(z,r,1-L)),qa=0;qa",la=w?'":"",L=0;7>L;L++){var ha=K?K.apply(c.input?c.input[0]:null,[I]):[!0,""],U=I.getMonth()!=r,ia=U&&!v||!ha[0]||C&&Iy,la=la+('");I.setDate(I.getDate()+1);I=this._daylightSavingAdjust(I)}J+=la+""}r++;11
    '+this._get(c,"weekHeader")+"
    '+this._get(c,"calculateWeek")(I)+""+(U&&!S?"\u00a0":ia?''+I.getDate()+"":''+I.getDate()+"")+"
    "+(x?""+(0':""):"");ea+=J}R+=ea}R+=h+(a.browser.msie&& 7>parseInt(a.browser.version,10)&&!c.inline?'':"");c._keyEvent=!1;return R},_generateMonthYearHeader:function(a,b,e,h,l,n,m,r){var w=this._get(a,"changeMonth"),x=this._get(a,"changeYear"),D=this._get(a,"showMonthAfterYear"),C='
    ',y="";if(n||!w)y+=''+m[b]+"";else{m=h&&h.getFullYear()==e;for(var z=l&&l.getFullYear()==e,y=y+('"}D||(C+=y+(!n&&w&&x?"":"\u00a0"));if(!a.yearshtml)if(a.yearshtml="",n||!x)C+=''+e+"";else{r=this._get(a,"yearRange").split(":");var E=(new Date).getFullYear();m=function(a){a=a.match(/c[+-].*/)?e+parseInt(a.substring(1),10):a.match(/[+-].*/)? E+parseInt(a,10):parseInt(a,10);return isNaN(a)?E:a};b=m(r[0]);r=Math.max(b,m(r[1]||""));b=h?Math.max(b,h.getFullYear()):b;r=l?Math.min(r,l.getFullYear()):r;for(a.yearshtml+='";C+=a.yearshtml;a.yearshtml=null}C+=this._get(a,"yearSuffix");D&&(C+=(!n&&w&&x?"":"\u00a0")+ y);return C+"
    "},_adjustInstDate:function(a,b,d){var e=a.drawYear+("Y"==d?b:0),h=a.drawMonth+("M"==d?b:0);b=Math.min(a.selectedDay,this._getDaysInMonth(e,h))+("D"==d?b:0);e=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(e,h,b)));a.selectedDay=e.getDate();a.drawMonth=a.selectedMonth=e.getMonth();a.drawYear=a.selectedYear=e.getFullYear();"M"!=d&&"Y"!=d||this._notifyChange(a)},_restrictMinMax:function(a,b){var d=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");b=d&&ba?a:b},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");b&&b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return null==a?[1,1]:"number"==typeof a?[1,a]:a},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return(new Date(a, b,1)).getDay()},_canAdjustMonth:function(a,b,d,e){var h=this._getNumberOfMonths(a);d=this._daylightSavingAdjust(new Date(d,e+(0>b?b:h[0]*h[1]),1));0>b&&d.setDate(this._getDaysInMonth(d.getFullYear(),d.getMonth()));return this._isInRange(a,d)},_isInRange:function(a,b){var d=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");return(!d||b.getTime()>=d.getTime())&&(!a||b.getTime()<=a.getTime())},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff"),b="string"!=typeof b?b:(new Date).getFullYear()% 100+parseInt(b,10);return{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,d,e){b||(a.currentDay=a.selectedDay,a.currentMonth=a.selectedMonth,a.currentYear=a.selectedYear);b=b?"object"==typeof b?b:this._daylightSavingAdjust(new Date(e,d,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a, "dateFormat"),b,this._getFormatConfig(a))}});a.fn.datepicker=function(b){if(!this.length)return this;a.datepicker.initialized||(a(document).mousedown(a.datepicker._checkExternalClick).find("body").append(a.datepicker.dpDiv),a.datepicker.initialized=!0);var d=Array.prototype.slice.call(arguments,1);return"string"==typeof b&&("isDisabled"==b||"getDate"==b||"widget"==b)||"option"==b&&2==arguments.length&&"string"==typeof arguments[1]?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(d)): this.each(function(){"string"==typeof b?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this].concat(d)):a.datepicker._attachDatepicker(this,b)})};a.datepicker=new b;a.datepicker.initialized=!1;a.datepicker.uuid=(new Date).getTime();a.datepicker.version="1.8.16";window["DP_jQuery_"+d]=a})(jQuery); jQuery.effects||function(a,e){function b(b){var c;return b&&b.constructor==Array&&3==b.length?b:(c=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(b))?[parseInt(c[1],10),parseInt(c[2],10),parseInt(c[3],10)]:(c=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(b))?[2.55*parseFloat(c[1]),2.55*parseFloat(c[2]),2.55*parseFloat(c[3])]:(c=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(b))?[parseInt(c[1],16),parseInt(c[2], 16),parseInt(c[3],16)]:(c=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(b))?[parseInt(c[1]+c[1],16),parseInt(c[2]+c[2],16),parseInt(c[3]+c[3],16)]:/rgba\(0, 0, 0, 0\)/.exec(b)?k.transparent:k[a.trim(b).toLowerCase()]}function h(){var a=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,b={},c,d;if(a&&a.length&&a[0]&&a[a[0]])for(var e=a.length;e--;)c=a[e],"string"==typeof a[c]&&(d=c.replace(/\-(\w)/g,function(a,b){return b.toUpperCase()}),b[d]=a[c]);else for(c in a)"string"=== typeof a[c]&&(b[c]=a[c]);return b}function l(b){var c,d;for(c in b)d=b[c],(null==d||a.isFunction(d)||c in u||/scrollbar/.test(c)||!/color/i.test(c)&&isNaN(parseFloat(d)))&&delete b[c];return b}function d(a,b){var c={_:0},d;for(d in b)a[d]!=b[d]&&(c[d]=b[d]);return c}function m(b,c,d,e){"object"==typeof b&&(e=c,d=null,c=b,b=c.effect);a.isFunction(c)&&(e=c,d=null,c={});if("number"==typeof c||a.fx.speeds[c])e=d,d=c,c={};a.isFunction(d)&&(e=d,d=null);c=c||{};d=d||c.duration;d=a.fx.off?0:"number"==typeof d? d:d in a.fx.speeds?a.fx.speeds[d]:a.fx.speeds._default;e=e||c.complete;return[b,c,d,e]}function c(b){return!b||"number"===typeof b||a.fx.speeds[b]||"string"===typeof b&&!a.effects[b]?!0:!1}a.effects={};a.each("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor borderColor color outlineColor".split(" "),function(c,d){a.fx.step[d]=function(c){if(!c.colorInit){var e;e=c.elem;var h=d,k;do{k=a.curCSS(e,h);if(""!=k&&"transparent"!=k||a.nodeName(e,"body"))break;h="backgroundColor"}while(e= e.parentNode);e=b(k);c.start=e;c.end=b(c.end);c.colorInit=!0}c.elem.style[d]="rgb("+Math.max(Math.min(parseInt(c.pos*(c.end[0]-c.start[0])+c.start[0],10),255),0)+","+Math.max(Math.min(parseInt(c.pos*(c.end[1]-c.start[1])+c.start[1],10),255),0)+","+Math.max(Math.min(parseInt(c.pos*(c.end[2]-c.start[2])+c.start[2],10),255),0)+")"}});var k={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]},p=["add","remove","toggle"],u={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};a.effects.animateClass=function(b,c,e,k){a.isFunction(e)&&(k=e,e=null);return this.queue(function(){var m=a(this),x=m.attr("style")|| " ",u=l(h.call(this)),C,y=m.attr("class");a.each(p,function(a,c){b[c]&&m[c+"Class"](b[c])});C=l(h.call(this));m.attr("class",y);m.animate(d(u,C),{queue:!1,duration:c,easing:e,complete:function(){a.each(p,function(a,c){b[c]&&m[c+"Class"](b[c])});"object"==typeof m.attr("style")?(m.attr("style").cssText="",m.attr("style").cssText=x):m.attr("style",x);k&&k.apply(this,arguments);a.dequeue(this)}})})};a.fn.extend({_addClass:a.fn.addClass,addClass:function(b,c,d,e){return c?a.effects.animateClass.apply(this, [{add:b},c,d,e]):this._addClass(b)},_removeClass:a.fn.removeClass,removeClass:function(b,c,d,e){return c?a.effects.animateClass.apply(this,[{remove:b},c,d,e]):this._removeClass(b)},_toggleClass:a.fn.toggleClass,toggleClass:function(b,c,d,h,k){return"boolean"==typeof c||c===e?d?a.effects.animateClass.apply(this,[c?{add:b}:{remove:b},d,h,k]):this._toggleClass(b,c):a.effects.animateClass.apply(this,[{toggle:b},c,d,h])},switchClass:function(b,c,d,e,h){return a.effects.animateClass.apply(this,[{add:c, remove:b},d,e,h])}});a.extend(a.effects,{version:"1.8.16",save:function(a,b){for(var c=0;c").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e=document.activeElement;b.wrap(d);(b[0]===e||a.contains(b[0],e))&&a(e).focus();d=b.parent();"static"==b.css("position")? (d.css({position:"relative"}),b.css({position:"relative"})):(a.extend(c,{position:b.css("position"),zIndex:b.css("z-index")}),a.each(["top","left","bottom","right"],function(a,d){c[d]=b.css(d);isNaN(parseInt(c[d],10))&&(c[d]="auto")}),b.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"}));return d.css(c).show()},removeWrapper:function(b){var c,d=document.activeElement;return b.parent().is(".ui-effects-wrapper")?(c=b.parent().replaceWith(b),(b[0]===d||a.contains(b[0],d))&&a(d).focus(), c):b},setTransition:function(b,c,d,e){e=e||{};a.each(c,function(a,c){unit=b.cssUnit(c);0(b/=e/2)?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b= b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){return 1>(b/=e/2)?d/2*b*b*b+c:d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeOutQuart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,e){return 1>(b/=e/2)?d/2*b*b*b*b+c:-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,e){return 1>(b/=e/2)?d/2* b*b*b*b*b+c:d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,e){return-d*Math.cos(b/e*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeInExpo:function(a,b,c,d,e){return 0==b?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return 0==b?c:b==e?c+d:1>(b/=e/2)?d/2*Math.pow(2,10*(b-1))+c:d/ 2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,d,e){return-d*(Math.sqrt(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){return 1>(b/=e/2)?-d/2*(Math.sqrt(1-b*b)-1)+c:d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,e){var h=0,k=d;if(0==b)return c;if(1==(b/=e))return c+d;h||(h=.3*e);kb?-.5*k*Math.pow(2,10*--b)*Math.sin(2*(b*e-a)*Math.PI/h)+c:k*Math.pow(2,-10*--b)*Math.sin(2*(b*e-a)*Math.PI/h)*.5+d+c},easeInBack:function(a, b,c,d,h,k){k==e&&(k=1.70158);return d*(b/=h)*b*((k+1)*b-k)+c},easeOutBack:function(a,b,c,d,h,k){k==e&&(k=1.70158);return d*((b=b/h-1)*b*((k+1)*b+k)+1)+c},easeInOutBack:function(a,b,c,d,h,k){k==e&&(k=1.70158);return 1>(b/=h/2)?d/2*b*b*(((k*=1.525)+1)*b-k)+c:d/2*((b-=2)*b*(((k*=1.525)+1)*b+k)+2)+c},easeInBounce:function(b,c,d,e,h){return e-a.easing.easeOutBounce(b,h-c,0,e,h)+d},easeOutBounce:function(a,b,c,d,e){return(b/=e)<1/2.75?7.5625*d*b*b+c:b<2/2.75?d*(7.5625*(b-=1.5/2.75)*b+.75)+c:b<2.5/2.75? d*(7.5625*(b-=2.25/2.75)*b+.9375)+c:d*(7.5625*(b-=2.625/2.75)*b+.984375)+c},easeInOutBounce:function(b,c,d,e,h){return c").css({position:"absolute",visibility:"visible",left:m/h*-p,top:c/b*-k}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:m/h,height:c/b,left:d.left+m/h*p+("show"==e.options.mode?m/h*(p-Math.floor(h/2)):0),top:d.top+c/b*k+("show"==e.options.mode?c/b*(k-Math.floor(b/2)):0),opacity:"show"==e.options.mode?0:1}).animate({left:d.left+m/h*p+("show"==e.options.mode?0:m/h*(p-Math.floor(h/2))),top:d.top+c/b*k+("show"== e.options.mode?0:c/b*(k-Math.floor(b/2))),opacity:"show"==e.options.mode?1:0},e.duration||500);setTimeout(function(){"show"==e.options.mode?l.css({visibility:"visible"}):l.css({visibility:"visible"}).hide();e.callback&&e.callback.apply(l[0]);l.dequeue();a("div.ui-effects-explode").remove()},e.duration||500)})}})(jQuery); (function(a){a.effects.fade=function(e){return this.queue(function(){var b=a(this),h=a.effects.setMode(b,e.options.mode||"hide");b.animate({opacity:h},{queue:!1,duration:e.duration,easing:e.options.easing,complete:function(){e.callback&&e.callback.apply(this,arguments);b.dequeue()}})})}})(jQuery); (function(a){a.effects.fold=function(e){return this.queue(function(){var b=a(this),h=["position","top","bottom","left","right"],l=a.effects.setMode(b,e.options.mode||"hide"),d=e.options.size||15,m=!!e.options.horizFirst,c=e.duration?e.duration/2:a.fx.speeds._default/2;a.effects.save(b,h);b.show();var k=a.effects.createWrapper(b).css({overflow:"hidden"}),p="show"==l!=m,u=p?["width","height"]:["height","width"],p=p?[k.width(),k.height()]:[k.height(),k.width()],q=/([0-9]+)%/.exec(d);q&&(d=parseInt(q[1], 10)/100*p["hide"==l?0:1]);"show"==l&&k.css(m?{height:0,width:d}:{height:d,width:0});m={};q={};m[u[0]]="show"==l?p[0]:d;q[u[1]]="show"==l?p[1]:0;k.animate(m,c,e.options.easing).animate(q,c,e.options.easing,function(){"hide"==l&&b.hide();a.effects.restore(b,h);a.effects.removeWrapper(b);e.callback&&e.callback.apply(b[0],arguments);b.dequeue()})})}})(jQuery); (function(a){a.effects.highlight=function(e){return this.queue(function(){var b=a(this),h=["backgroundImage","backgroundColor","opacity"],l=a.effects.setMode(b,e.options.mode||"show"),d={backgroundColor:b.css("backgroundColor")};"hide"==l&&(d.opacity=0);a.effects.save(b,h);b.show().css({backgroundImage:"none",backgroundColor:e.options.color||"#ffff99"}).animate(d,{queue:!1,duration:e.duration,easing:e.options.easing,complete:function(){"hide"==l&&b.hide();a.effects.restore(b,h);"show"==l&&!a.support.opacity&& this.style.removeAttribute("filter");e.callback&&e.callback.apply(this,arguments);b.dequeue()}})})}})(jQuery); (function(a){a.effects.pulsate=function(e){return this.queue(function(){var b=a(this),h=a.effects.setMode(b,e.options.mode||"show");times=2*(e.options.times||5)-1;duration=e.duration?e.duration/2:a.fx.speeds._default/2;isVisible=b.is(":visible");animateTo=0;isVisible||(b.css("opacity",0).show(),animateTo=1);("hide"==h&&isVisible||"show"==h&&!isVisible)&×--;for(h=0;h').appendTo(document.body).addClass(e.options.className).css({top:l.top,left:l.left,height:b.innerHeight(),width:b.innerWidth(),position:"absolute"}).animate(h,e.duration,e.options.easing,function(){d.remove();e.callback&&e.callback.apply(b[0],arguments);b.dequeue()})})}})(jQuery);