/*! * jQuery JavaScript Library v1.10.0 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-05-24T18:39Z */ function ImageDialog(t){(self=this).defaults={callback:null,multiple:!1},this.settings=$.extend({},this.defaults,t),this.create=function(){this.callback=this.settings.callback,this.init_tabs(),this.init_select(),this.init_actions()},this.init_tabs=function(){var t=$("#dialog_menu_left input:radio"),e=t.parent().filter(".selected_radio").find("input:radio").first()||t.first();t.click(function(){self.switch_area($(this))}),e.attr("checked","true"),self.switch_area(e)},this.switch_area=function(t){$("#dialog_menu_left .selected_radio").removeClass("selected_radio"),t.parent().addClass("selected_radio"),$("#dialog_main .dialog_area").hide(),$("#"+t.val()+"_area").show()},this.init_select=function(){$("#existing_image_area_content ul li img").click(function(){self.toggle_image($(this))}),0<(selected_img=$("#existing_image_area_content ul li.selected img")).length&&self.toggle_image(selected_img.first())},this.toggle_image=function(t){if(0=]/g,"")))}},this.submit_image_choice=function(t){t.preventDefault(),selected_images=$("#existing_image_area_content ul li.selected img"),selected_images=self.settings.multiple?selected_images.get():selected_images.get(0),selected_images&&$.isFunction(self.callback)&&self.callback(selected_images),close_dialog(t)},this.init_actions=function(){$("#existing_image_area .form-actions-dialog #submit_button").not(".wym_iframe_body #existing_image_area .form-actions-dialog #submit_button").click($.proxy(self.submit_image_choice,self)),$(".form-actions-dialog #cancel_button").not(".wym_iframe_body .form-actions-dialog #cancel_button").click($.proxy(close_dialog,self)),$("#existing_image_size_area ul li a").click(function(t){$("#existing_image_size_area ul li").removeClass("selected"),$(this).parent().addClass("selected"),$("#existing_image_size_area #wants_to_resize_image").attr("checked","checked"),self.toggle_image($("#existing_image_area_content ul li.selected img")),t.preventDefault()}),$("#existing_image_size_area #wants_to_resize_image").change(function(){$(this).is(":checked")?$("#existing_image_size_area ul li:first a").click():($("#existing_image_size_area ul li").removeClass("selected"),self.toggle_image($("#existing_image_area_content ul li.selected img")))}),image_area=$("#existing_image_area").not("#wym_iframe_body #existing_image_area"),image_area.find(".form-actions input#submit_button").click($.proxy(function(t){t.preventDefault(),$(this.document.getElementById("wym_dialog_submit")).click()},parent)),image_area.find(".form-actions a.close_dialog").click(close_dialog)}}!function(m,k){function r(t){var e=t.length,i=Et.type(t);return!Et.isWindow(t)&&(!(1!==t.nodeType||!e)||("array"===i||"function"!==i&&(0===e||"number"==typeof e&&0").css("cssText","display:block !important")).appendTo(e.documentElement))[0].contentWindow||le[0].contentDocument).document).write(""),e.close(),i=E(t,e),le.detach()),_e[t]=i),i}function E(t,e){var i=Et(e.createElement(t)).appendTo(e.body),n=Et.css(i[0],"display");return i.remove(),n}function I(i,t,n,s){var e;if(Et.isArray(t))Et.each(t,function(t,e){n||De.test(i)?s(i,e):I(i+"["+("object"==typeof e?t:"")+"]",e,n,s)});else if(n||"object"!==Et.type(t))s(i,t);else for(e in t)I(i+"["+e+"]",t[e],n,s)}function P(o){return function(t,e){"string"!=typeof t&&(e=t,t="*");var i,n=0,s=t.toLowerCase().match(ut)||[];if(Et.isFunction(e))for(;i=s[n++];)"+"===i[0]?(i=i.slice(1)||"*",(o[i]=o[i]||[]).unshift(e)):(o[i]=o[i]||[]).push(e)}}function M(e,s,o,a){function r(t){var n;return l[t]=!0,Et.each(e[t]||[],function(t,e){var i=e(s,o,a);return"string"!=typeof i||h||l[i]?h?!(n=i):void 0:(s.dataTypes.unshift(i),r(i),!1)}),n}var l={},h=e===Re;return r(s.dataTypes[0])||!l["*"]&&r("*")}function A(t,e){var i,n,s=Et.ajaxSettings.flatOptions||{};for(n in e)e[n]!==k&&((s[n]?t:i||(i={}))[n]=e[n]);return i&&Et.extend(!0,t,i),t}function $(t,e,i){for(var n,s,o,a,r=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),s===k&&(s=t.mimeType||e.getResponseHeader("Content-Type"));if(s)for(a in r)if(r[a]&&r[a].test(s)){l.unshift(a);break}if(l[0]in i)o=l[0];else{for(a in i){if(!l[0]||t.converters[a+" "+l[0]]){o=a;break}n||(n=a)}o=o||n}if(o)return o!==l[0]&&l.unshift(o),i[o]}function z(t,e,i,n){var s,o,a,r,l,h={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)h[a.toLowerCase()]=t.converters[a];for(o=c.shift();o;)if(t.responseFields[o]&&(i[t.responseFields[o]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=h[l+" "+o]||h["* "+o]))for(s in h)if((r=s.split(" "))[1]===o&&(a=h[l+" "+r[0]]||h["* "+r[0]])){!0===a?a=h[s]:!0!==h[s]&&(o=r[0],c.unshift(r[1]));break}if(!0!==a)if(a&&t["throws"])e=a(e);else try{e=a(e)}catch(u){return{state:"parsererror",error:a?u:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}function H(){try{return new m.XMLHttpRequest}catch(t){}}function j(){try{return new m.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function W(){return setTimeout(function(){Qe=k}),Qe=Et.now()}function O(t,e,i){for(var n,s=(ii[e]||[]).concat(ii["*"]),o=0,a=s.length;o)[^>]*|#([\w-]*))$/,ft=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,mt=/^[\],:{}\s]*$/,gt=/(?:^|:|,)(?:\s*\[)+/g,vt=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,bt=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,_t=/^-ms-/,yt=/-([\da-z])/gi,wt=function(t,e){return e.toUpperCase()},xt=function(t){(Q.addEventListener||"load"===t.type||"complete"===Q.readyState)&&(kt(),Et.ready())},kt=function(){Q.addEventListener?(Q.removeEventListener("DOMContentLoaded",xt,!1),m.removeEventListener("load",xt,!1)):(Q.detachEvent("onreadystatechange",xt),m.detachEvent("onload",xt))};Et.fn=Et.prototype={jquery:it,constructor:Et,init:function(t,e,i){var n,s;if(!t)return this;if("string"==typeof t){if(!(n="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&3<=t.length?[null,t,null]:pt.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof Et?e[0]:e,Et.merge(this,Et.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:Q,!0)),ft.test(n[1])&&Et.isPlainObject(e))for(n in e)Et.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}if((s=Q.getElementById(n[2]))&&s.parentNode){if(s.id!==n[2])return i.find(t);this.length=1,this[0]=s}return this.context=Q,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):Et.isFunction(t)?i.ready(t):(t.selector!==k&&(this.selector=t.selector,this.context=t.context),Et.makeArray(t,this))},selector:"",length:0,toArray:function(){return ot.call(this)},get:function(t){return null==t?this.toArray():t<0?this[this.length+t]:this[t]},pushStack:function(t){var e=Et.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return Et.each(this,t,e)},ready:function(t){return Et.ready.promise().done(t),this},slice:function(){return this.pushStack(ot.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(0<=i&&iE.cacheLength&&delete i[n.shift()],i[t]=e}var n=[];return i}function l(t){return t[B]=!0,t}function n(t){var e=H.createElement("div");try{return!!t(e)}catch(i){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e,i){for(var n,s=(t=t.split("|")).length,o=i?null:e;s--;)(n=E.attrHandle[t[s]])&&n!==e||(E.attrHandle[t[s]]=o)}function a(t,e){var i=t.getAttributeNode(e);return i&&i.specified?i.value:!0===t[e]?e.toLowerCase():null}function r(t,e){return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}function h(t){if("input"===t.nodeName.toLowerCase())return t.defaultValue}function c(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||Z)-(~t.sourceIndex||Z);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function u(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function d(i){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===i}}function p(a){return l(function(o){return o=+o,l(function(t,e){for(var i,n=a([],t.length,o),s=n.length;s--;)t[i=n[s]]&&(t[i]=!(e[i]=t[i]))})})}function m(t,e){var i,n,s,o,a,r,l,h=V[t+" "];if(h)return e?0:h.slice(0);for(a=t,r=[],l=E.preFilter;a;){for(o in i&&!(n=ft.exec(a))||(n&&(a=a.slice(n[0].length)||a),r.push(s=[])),i=!1,(n=mt.exec(a))&&(i=n.shift(),s.push({value:i,type:n[0].replace(pt," ")}),a=a.slice(i.length)),E.filter)!(n=yt[o].exec(a))||l[o]&&!(n=l[o](n))||(i=n.shift(),s.push({value:i,type:o,matches:n}),a=a.slice(i.length));if(!i)break}return e?a.length:a?w.error(t):V(t,r).slice(0)}function g(t){for(var e=0,i=t.length,n="";e+~]|"+lt+")"+lt+"*"),gt=new RegExp(lt+"*[+~]"),vt=new RegExp("="+lt+"*([^\\]'\"]*)"+lt+"*\\]","g"),bt=new RegExp(dt),_t=new RegExp("^"+ct+"$"),yt={ID:new RegExp("^#("+ht+")"),CLASS:new RegExp("^\\.("+ht+")"),TAG:new RegExp("^("+ht.replace("w","w*")+")"),ATTR:new RegExp("^"+ut),PSEUDO:new RegExp("^"+dt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+lt+"*(even|odd|(([+-]|)(\\d*)n|)"+lt+"*(?:([+-]|)"+lt+"*(\\d+)|))"+lt+"*\\)|)","i"),bool:new RegExp("^(?:"+rt+")$","i"),needsContext:new RegExp("^"+lt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+lt+"*((?:-\\d)?\\d*)"+lt+"*\\)|)(?=[^-]|$)","i")},wt=/^[^{]+\{\s*\[native \w/,xt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,kt=/^(?:input|select|textarea|button)$/i,Ct=/^h\d$/i,Dt=/'|\\/g,Tt=new RegExp("\\\\([\\da-f]{1,6}"+lt+"?|("+lt+")|.)","ig"),St=function(t,e,i){var n="0x"+e-65536;return n!=n||i?e:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)};try{st.apply(et=ot.call(q.childNodes),q.childNodes),et[q.childNodes.length].nodeType}catch(Nt){st={apply:et.length?function(t,e){nt.apply(t,ot.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}for(T in P=w.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},S=w.support={},z=w.setDocument=function(t){var l=t?t.ownerDocument||t:q;return l!==H&&9===l.nodeType&&l.documentElement?(j=(H=l).documentElement,W=!P(l),S.attributes=n(function(t){return t.innerHTML="",o("type|href|height|width",r,"#"===t.firstChild.getAttribute("href")),o(rt,a,null==t.getAttribute("disabled")),t.className="i",!t.getAttribute("className")}),S.input=n(function(t){return t.innerHTML="",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}),o("value",h,S.attributes&&S.input),S.getElementsByTagName=n(function(t){return t.appendChild(l.createComment("")),!t.getElementsByTagName("*").length}),S.getElementsByClassName=n(function(t){return t.innerHTML="
",t.firstChild.className="i",2===t.getElementsByClassName("i").length}),S.getById=n(function(t){return j.appendChild(t).id=B,!l.getElementsByName||!l.getElementsByName(B).length}),S.getById?(E.find.ID=function(t,e){if(typeof e.getElementById!==J&&W){var i=e.getElementById(t);return i&&i.parentNode?[i]:[]}},E.filter.ID=function(t){var e=t.replace(Tt,St);return function(t){return t.getAttribute("id")===e}}):(delete E.find.ID,E.filter.ID=function(t){var i=t.replace(Tt,St);return function(t){var e=typeof t.getAttributeNode!==J&&t.getAttributeNode("id");return e&&e.value===i}}),E.find.TAG=S.getElementsByTagName?function(t,e){if(typeof e.getElementsByTagName!==J)return e.getElementsByTagName(t)}:function(t,e){var i,n=[],s=0,o=e.getElementsByTagName(t);if("*"===t){for(;i=o[s++];)1===i.nodeType&&n.push(i);return n}return o},E.find.CLASS=S.getElementsByClassName&&function(t,e){if(typeof e.getElementsByClassName!==J&&W)return e.getElementsByClassName(t)},L=[],O=[],(S.qsa=e(l.querySelectorAll))&&(n(function(t){t.innerHTML="",t.querySelectorAll("[selected]").length||O.push("\\["+lt+"*(?:value|"+rt+")"),t.querySelectorAll(":checked").length||O.push(":checked")}),n(function(t){var e=l.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("t",""),t.querySelectorAll("[t^='']").length&&O.push("[*^$]="+lt+"*(?:''|\"\")"),t.querySelectorAll(":enabled").length||O.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),O.push(",.*:")})),(S.matchesSelector=e(F=j.webkitMatchesSelector||j.mozMatchesSelector||j.oMatchesSelector||j.msMatchesSelector))&&n(function(t){S.disconnectedMatch=F.call(t,"div"),F.call(t,"[s!='']:x"),L.push("!=",dt)}),O=O.length&&new RegExp(O.join("|")),L=L.length&&new RegExp(L.join("|")),R=e(j.contains)||j.compareDocumentPosition?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},S.sortDetached=n(function(t){return 1&t.compareDocumentPosition(l.createElement("div"))}),G=j.compareDocumentPosition?function(t,e){if(t===e)return Q=!0,0;var i=e.compareDocumentPosition&&t.compareDocumentPosition&&t.compareDocumentPosition(e);return i?1&i||!S.sortDetached&&e.compareDocumentPosition(t)===i?t===l||R(q,t)?-1:e===l||R(q,e)?1:$?at.call($,t)-at.call($,e):0:4&i?-1:1:t.compareDocumentPosition?-1:1}:function(t,e){var i,n=0,s=t.parentNode,o=e.parentNode,a=[t],r=[e];if(t===e)return Q=!0,0;if(!s||!o)return t===l?-1:e===l?1:s?-1:o?1:$?at.call($,t)-at.call($,e):0;if(s===o)return c(t,e);for(i=t;i=i.parentNode;)a.unshift(i);for(i=e;i=i.parentNode;)r.unshift(i);for(;a[n]===r[n];)n++;return n?c(a[n],r[n]):a[n]===q?-1:r[n]===q?1:0},l):H},w.matches=function(t,e){return w(t,null,null,e)},w.matchesSelector=function(t,e){if((t.ownerDocument||t)!==H&&z(t),e=e.replace(vt,"='$1']"),S.matchesSelector&&W&&(!L||!L.test(e))&&(!O||!O.test(e)))try{var i=F.call(t,e);if(i||S.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(Nt){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(Tt,St),t[3]=(t[4]||t[5]||"").replace(Tt,St),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||w.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&w.error(t[0]),t},PSEUDO:function(t){var e,i=!t[5]&&t[2];return yt.CHILD.test(t[0])?null:(t[3]&&t[4]!==s?t[2]=t[4]:i&&bt.test(i)&&(e=m(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(Tt,St).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=K[t+" "];return e||(e=new RegExp("(^|"+lt+")"+t+"("+lt+"|$)"))&&K(t,function(t){return e.test("string"==typeof t.className&&t.className||typeof t.getAttribute!==J&&t.getAttribute("class")||"")})},ATTR:function(i,n,s){return function(t){var e=w.attr(t,i);return null==e?"!="===n:!n||(e+="","="===n?e===s:"!="===n?e!==s:"^="===n?s&&0===e.indexOf(s):"*="===n?s&&-1
a",t=c.getElementsByTagName("*")||[],!(e=c.getElementsByTagName("a")[0])||!e.style||!t.length)return o;a=(n=Q.createElement("select")).appendChild(Q.createElement("option")),i=c.getElementsByTagName("input")[0],e.style.cssText="top:1px;float:left;opacity:.5",o.getSetAttribute="t"!==c.className,o.leadingWhitespace=3===c.firstChild.nodeType,o.tbody=!c.getElementsByTagName("tbody").length,o.htmlSerialize=!!c.getElementsByTagName("link").length,o.style=/top/.test(e.getAttribute("style")),o.hrefNormalized="/a"===e.getAttribute("href"),o.opacity=/^0.5/.test(e.style.opacity),o.cssFloat=!!e.style.cssFloat,o.checkOn=!!i.value,o.optSelected=a.selected,o.enctype=!!Q.createElement("form").enctype,o.html5Clone="<:nav>"!==Q.createElement("nav").cloneNode(!0).outerHTML,o.inlineBlockNeedsLayout=!1,o.shrinkWrapBlocks=!1,o.pixelPosition=!1,o.deleteExpando=!0,o.noCloneEvent=!0,o.reliableMarginRight=!0,o.boxSizingReliable=!0,i.checked=!0,o.noCloneChecked=i.cloneNode(!0).checked,n.disabled=!0,o.optDisabled=!a.disabled;try{delete c.test}catch(u){o.deleteExpando=!1}for(h in(i=Q.createElement("input")).setAttribute("value",""),o.input=""===i.getAttribute("value"),i.value="t",i.setAttribute("type","radio"),o.radioValue="t"===i.value,i.setAttribute("checked","t"),i.setAttribute("name","t"),(s=Q.createDocumentFragment()).appendChild(i),o.appendChecked=i.checked,o.checkClone=s.cloneNode(!0).cloneNode(!0).lastChild.checked,c.attachEvent&&(c.attachEvent("onclick",function(){o.noCloneEvent=!1}),c.cloneNode(!0).click()),{submit:!0,change:!0,focusin:!0})c.setAttribute(r="on"+h,"t"),o[h+"Bubbles"]=r in m||!1===c.attributes[r].expando;for(h in c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",o.clearCloneStyle="content-box"===c.style.backgroundClip,Et(o))break;return o.ownLast="0"!==h,Et(function(){var t,e,i,n="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",s=Q.getElementsByTagName("body")[0];s&&((t=Q.createElement("div")).style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",s.appendChild(t).appendChild(c),c.innerHTML="
t
",(i=c.getElementsByTagName("td"))[0].style.cssText="padding:0;margin:0;border:0;display:none",l=0===i[0].offsetHeight,i[0].style.display="",i[1].style.display="none",o.reliableHiddenOffsets=l&&0===i[0].offsetHeight,c.innerHTML="",c.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",Et.swap(s,null!=s.style.zoom?{zoom:1}:{},function(){o.boxSizing=4===c.offsetWidth}),m.getComputedStyle&&(o.pixelPosition="1%"!==(m.getComputedStyle(c,null)||{}).top,o.boxSizingReliable="4px"===(m.getComputedStyle(c,null)||{width:"4px"}).width,(e=c.appendChild(Q.createElement("div"))).style.cssText=c.style.cssText=n,e.style.marginRight=e.style.width="0",c.style.width="1px",o.reliableMarginRight=!parseFloat((m.getComputedStyle(e,null)||{}).marginRight)),typeof c.style.zoom!==V&&(c.innerHTML="",c.style.cssText=n+"width:1px;padding:1px;display:inline;zoom:1",o.inlineBlockNeedsLayout=3===c.offsetWidth,c.style.display="block",c.innerHTML="
",c.firstChild.style.width="5px",o.shrinkWrapBlocks=3!==c.offsetWidth,o.inlineBlockNeedsLayout&&(s.style.zoom=1)),s.removeChild(t),t=c=i=e=null)}),t=n=s=a=e=i=null,o}({});var Dt=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,Tt=/([A-Z])/g;Et.extend({cache:{},noData:{applet:!0,embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return!!(t=t.nodeType?Et.cache[t[Et.expando]]:t[Et.expando])&&!h(t)},data:function(t,e,i){return n(t,e,i)},removeData:function(t,e){return i(t,e)},_data:function(t,e,i){return n(t,e,i,!0)},_removeData:function(t,e){return i(t,e,!0)},acceptData:function(t){if(t.nodeType&&1!==t.nodeType&&9!==t.nodeType)return!1;var e=t.nodeName&&Et.noData[t.nodeName.toLowerCase()];return!e||!0!==e&&t.getAttribute("classid")===e}}),Et.fn.extend({data:function(t,e){var i,n,s=null,o=0,a=this[0];if(t===k){if(this.length&&(s=Et.data(a),1===a.nodeType&&!Et._data(a,"parsedAttrs"))){for(i=a.attributes;o]","i"),Xt=/^\s+/,Qt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Gt=/<([\w:]+)/,Jt=/\s*$/g,ae={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:Et.support.htmlSerialize?[0,"",""]:[1,"X
","
"]},re=g(Q).appendChild(Q.createElement("div"));ae.optgroup=ae.option,ae.tbody=ae.tfoot=ae.colgroup=ae.caption=ae.thead,ae.th=ae.td,Et.fn.extend({text:function(t){return Et.access(this,function(t){return t===k?Et.text(this):this.empty().append((this[0]&&this[0].ownerDocument||Q).createTextNode(t))},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||u(this,t).appendChild(t)})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=u(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var i,n=t?Et.filter(t,this):this,s=0;null!=(i=n[s]);s++)e||1!==i.nodeType||Et.cleanData(y(i)),i.parentNode&&(e&&Et.contains(i.ownerDocument,i)&&_(y(i,"script")),i.parentNode.removeChild(i));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodeType&&Et.cleanData(y(t,!1));t.firstChild;)t.removeChild(t.firstChild);t.options&&Et.nodeName(t,"select")&&(t.options.length=0)}return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return Et.clone(this,t,e)})},html:function(t){return Et.access(this,function(t){var e=this[0]||{},i=0,n=this.length;if(t===k)return 1===e.nodeType?e.innerHTML.replace(Kt,""):k;if("string"==typeof t&&!te.test(t)&&(Et.support.htmlSerialize||!Vt.test(t))&&(Et.support.leadingWhitespace||!Xt.test(t))&&!ae[(Gt.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(Qt,"<$1>");try{for(;i")?o=t.cloneNode(!0):(re.innerHTML=t.outerHTML,re.removeChild(o=re.firstChild)),!(Et.support.noCloneEvent&&Et.support.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||Et.isXMLDoc(t)))for(n=y(o),r=y(t),a=0;null!=(s=r[a]);++a)n[a]&&p(s,n[a]);if(e)if(i)for(r=r||y(t),n=n||y(o),a=0;null!=(s=r[a]);a++)d(s,n[a]);else d(t,o);return 0<(n=y(o,"script")).length&&_(n,!l&&y(t,"script")),n=r=s=null,o},buildFragment:function(t,e,i,n){for(var s,o,a,r,l,h,c,u=t.length,d=g(e),p=[],f=0;f")+c[2],s=c[0];s--;)r=r.lastChild;if(!Et.support.leadingWhitespace&&Xt.test(o)&&p.push(e.createTextNode(Xt.exec(o)[0])),!Et.support.tbody)for(s=(o="table"!==l||Jt.test(o)?""!==c[1]||Jt.test(o)?0:r:r.firstChild)&&o.childNodes.length;s--;)Et.nodeName(h=o.childNodes[s],"tbody")&&!h.childNodes.length&&o.removeChild(h);for(Et.merge(p,r.childNodes),r.textContent="";r.firstChild;)r.removeChild(r.firstChild);r=d.lastChild}else p.push(e.createTextNode(o));for(r&&d.removeChild(r),Et.support.appendChecked||Et.grep(y(p,"input"),w),f=0;o=p[f++];)if((!n||-1===Et.inArray(o,n))&&(a=Et.contains(o.ownerDocument,o),r=y(d.appendChild(o),"script"),a&&_(r),i))for(s=0;o=r[s++];)ne.test(o.type||"")&&i.push(o);return r=null,d},cleanData:function(t,e){for(var i,n,s,o,a=0,r=Et.expando,l=Et.cache,h=Et.support.deleteExpando,c=Et.event.special;null!=(i=t[a]);a++)if((e||Et.acceptData(i))&&(o=(s=i[r])&&l[s])){if(o.events)for(n in o.events)c[n]?Et.event.remove(i,n):Et.removeEvent(i,n,o.handle);l[s]&&(delete l[s],h?delete i[r]:typeof i.removeAttribute!==V?i.removeAttribute(r):i[r]=null,et.push(s))}},_evalUrl:function(t){return Et.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})}}),Et.fn.extend({wrapAll:function(e){if(Et.isFunction(e))return this.each(function(t){Et(this).wrapAll(e.call(this,t))});if(this[0]){var t=Et(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t}).append(this)}return this},wrapInner:function(i){return Et.isFunction(i)?this.each(function(t){Et(this).wrapInner(i.call(this,t))}):this.each(function(){var t=Et(this),e=t.contents();e.length?e.wrapAll(i):t.append(i)})},wrap:function(e){var i=Et.isFunction(e);return this.each(function(t){Et(this).wrapAll(i?e.call(this,t):e)})},unwrap:function(){return this.parent().each(function(){Et.nodeName(this,"body")||Et(this).replaceWith(this.childNodes)}).end()}});var le,he,ce,ue=/alpha\([^)]*\)/i,de=/opacity\s*=\s*([^)]*)/,pe=/^(top|right|bottom|left)$/,fe=/^(none|table(?!-c[ea]).+)/,me=/^margin/,ge=new RegExp("^("+ct+")(.*)$","i"),ve=new RegExp("^("+ct+")(?!px)[a-z%]+$","i"),be=new RegExp("^([+-])=("+ct+")","i"),_e={BODY:"block"},ye={position:"absolute",visibility:"hidden",display:"block"},we={letterSpacing:0,fontWeight:400},xe=["Top","Right","Bottom","Left"],ke=["Webkit","O","Moz","ms"];Et.fn.extend({css:function(t,e){return Et.access(this,function(t,e,i){var n,s,o={},a=0;if(Et.isArray(e)){for(s=he(t),n=e.length;a").append(Et.parseHTML(t)).find(n):t)}).complete(i&&function(t,e){a.each(i,s||[t.responseText,e,t])}),this},Et.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){Et.fn[e]=function(t){return this.on(e,t)}}),Et.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ie,type:"GET",isLocal:He.test(Ee[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Be,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":Et.parseJSON,"text xml":Et.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?A(A(t,Et.ajaxSettings),e):A(Et.ajaxSettings,t)},ajaxPrefilter:P(Fe),ajaxTransport:P(Re),ajax:function(t,e){function i(t,e,i,n){var s,o,a,r,l,h=e;2!==w&&(w=2,d&&clearTimeout(d),f=k,u=n||"",x.readyState=0'),r='';o!==d&&s!==d&&(r+=''),n&&a.attr("target",n),a.hide().append(r).appendTo("body"),a.submit()},disableFormElements:function(t){t.find(p.disableSelector).each(function(){var t=u(this),e=t.is("button")?"html":"val";t.data("ujs:enable-with",t[e]()),t[e](t.data("disable-with")),t.prop("disabled",!0)})},enableFormElements:function(t){t.find(p.enableSelector).each(function(){var t=u(this),e=t.is("button")?"html":"val";t.data("ujs:enable-with")&&t[e](t.data("ujs:enable-with")),t.prop("disabled",!1)})},allowAction:function(t){var e,i=t.data("confirm"),n=!1;return!i||(p.fire(t,"confirm")&&(n=p.confirm(i),e=p.fire(t,"confirm:complete",[n])),n&&e)},blankInputs:function(t,e,i){var n,s=u(),o=e||"input,textarea",a=t.find(o);return a.each(function(){if(n=u(this),!(n.is("input[type=checkbox],input[type=radio]")?n.is(":checked"):n.val())==!i){if(n.is("input[type=radio]")&&a.filter('input[type=radio]:checked[name="'+n.attr("name")+'"]').length)return!0;s=s.add(n)}}),!!s.length&&s},nonBlankInputs:function(t,e){return p.blankInputs(t,e,!0)},stopEverything:function(t){return u(t.target).trigger("ujs:everythingStopped"),t.stopImmediatePropagation(),!1},disableElement:function(t){t.data("ujs:enable-with",t.html()),t.html(t.data("disable-with")),t.bind("click.railsDisable",function(t){return p.stopEverything(t)})},enableElement:function(t){t.data("ujs:enable-with")!==d&&(t.html(t.data("ujs:enable-with")),t.removeData("ujs:enable-with")),t.unbind("click.railsDisable")}},p.fire(u(document),"rails:attachBindings")&&(u.ajaxPrefilter(function(t,e,i){t.crossDomain||p.CSRFProtection(i)}),u(document).delegate(p.linkDisableSelector,"ajax:complete",function(){p.enableElement(u(this))}),u(document).delegate(p.linkClickSelector,"click.rails",function(t){var e=u(this),i=e.data("method"),n=e.data("params");if(!p.allowAction(e))return p.stopEverything(t);if(e.is(p.linkDisableSelector)&&p.disableElement(e),e.data("remote")!==d){if((t.metaKey||t.ctrlKey)&&(!i||"GET"===i)&&!n)return!0;var s=p.handleRemote(e);return!1===s?p.enableElement(e):s.error(function(){p.enableElement(e)}),!1}return e.data("method")?(p.handleMethod(e),!1):void 0}),u(document).delegate(p.buttonClickSelector,"click.rails",function(t){var e=u(this);return p.allowAction(e)?(p.handleRemote(e),!1):p.stopEverything(t)}),u(document).delegate(p.inputChangeSelector,"change.rails",function(t){var e=u(this);return p.allowAction(e)?(p.handleRemote(e),!1):p.stopEverything(t)}),u(document).delegate(p.formSubmitSelector,"submit.rails",function(t){var e=u(this),i=e.data("remote")!==d,n=p.blankInputs(e,p.requiredInputSelector),s=p.nonBlankInputs(e,p.fileInputSelector);if(!p.allowAction(e))return p.stopEverything(t);if(n&&e.attr("novalidate")==d&&p.fire(e,"ajax:aborted:required",[n]))return p.stopEverything(t);if(i){if(s){setTimeout(function(){p.disableFormElements(e)},13);var o=p.fire(e,"ajax:aborted:file",[s]);return o||setTimeout(function(){p.enableFormElements(e)},13),o}return p.handleRemote(e),!1}setTimeout(function(){p.disableFormElements(e)},13)}),u(document).delegate(p.formInputClickSelector,"click.rails",function(t){var e=u(this);if(!p.allowAction(e))return p.stopEverything(t);var i=e.attr("name"),n=i?{name:i,value:e.val()}:null;e.closest("form").data("ujs:submit-button",n)}),u(document).delegate(p.formSubmitSelector,"ajax:beforeSend.rails",function(t){this==t.target&&p.disableFormElements(u(this))}),u(document).delegate(p.formSubmitSelector,"ajax:complete.rails",function(t){this==t.target&&p.enableFormElements(u(this))}),u(function(){var t=u("meta[name=csrf-token]").attr("content"),e=u("meta[name=csrf-param]").attr("content");u('form input[name="'+e+'"]').val(t)}))}(jQuery), /*! jQuery UI - v1.10.3 - 2013-05-03 * http://jqueryui.com * Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.effect.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js, jquery.ui.button.js, jquery.ui.datepicker.js, jquery.ui.dialog.js, jquery.ui.effect-blind.js, jquery.ui.effect-bounce.js, jquery.ui.effect-clip.js, jquery.ui.effect-drop.js, jquery.ui.effect-explode.js, jquery.ui.effect-fade.js, jquery.ui.effect-fold.js, jquery.ui.effect-highlight.js, jquery.ui.effect-pulsate.js, jquery.ui.effect-scale.js, jquery.ui.effect-shake.js, jquery.ui.effect-slide.js, jquery.ui.effect-transfer.js, jquery.ui.menu.js, jquery.ui.position.js, jquery.ui.progressbar.js, jquery.ui.slider.js, jquery.ui.spinner.js, jquery.ui.tabs.js, jquery.ui.tooltip.js * Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ function(r,l){function n(t,e){var i,n,s,o=t.nodeName.toLowerCase();return"area"===o?(n=(i=t.parentNode).name,!(!t.href||!n||"map"!==i.nodeName.toLowerCase())&&(!!(s=r("img[usemap=#"+n+"]")[0])&&a(s))):(/input|select|textarea|button|object/.test(o)?!t.disabled:"a"===o&&t.href||e)&&a(t)}function a(t){return r.expr.filters.visible(t)&&!r(t).parents().addBack().filter(function(){return"hidden"===r.css(this,"visibility")}).length}var t,e,i=0,s=/^ui-id-\d+$/;r.ui=r.ui||{},r.extend(r.ui,{version:"1.10.3",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,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,SPACE:32,TAB:9,UP:38}}),r.fn.extend({focus:(t=r.fn.focus,function(e,i){return"number"==typeof e?this.each(function(){var t=this;setTimeout(function(){r(t).focus(),i&&i.call(t)},e)}):t.apply(this,arguments)}),scrollParent:function(){var t;return t=r.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(r.css(this,"position"))&&/(auto|scroll)/.test(r.css(this,"overflow")+r.css(this,"overflow-y")+r.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(r.css(this,"overflow")+r.css(this,"overflow-y")+r.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!t.length?r(document):t},zIndex:function(t){if(t!==l)return this.css("zIndex",t);if(this.length)for(var e,i,n=r(this[0]);n.length&&n[0]!==document;){if(("absolute"===(e=n.css("position"))||"relative"===e||"fixed"===e)&&(i=parseInt(n.css("zIndex"),10),!isNaN(i)&&0!==i))return i;n=n.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++i)})},removeUniqueId:function(){return this.each(function(){s.test(this.id)&&r(this).removeAttr("id")})}}),r.extend(r.expr[":"],{data:r.expr.createPseudo?r.expr.createPseudo(function(e){return function(t){return!!r.data(t,e)}}):function(t,e,i){return!!r.data(t,i[3])},focusable:function(t){return n(t,!isNaN(r.attr(t,"tabindex")))},tabbable:function(t){var e=r.attr(t,"tabindex"),i=isNaN(e);return(i||0<=e)&&n(t,!i)}}),r("").outerWidth(1).jquery||r.each(["Width","Height"],function(t,i){function n(t,e,i,n){return r.each(s,function(){e-=parseFloat(r.css(t,"padding"+this))||0,i&&(e-=parseFloat(r.css(t,"border"+this+"Width"))||0),n&&(e-=parseFloat(r.css(t,"margin"+this))||0)}),e}var s="Width"===i?["Left","Right"]:["Top","Bottom"],o=i.toLowerCase(),a={innerWidth:r.fn.innerWidth,innerHeight:r.fn.innerHeight,outerWidth:r.fn.outerWidth,outerHeight:r.fn.outerHeight};r.fn["inner"+i]=function(t){return t===l?a["inner"+i].call(this):this.each(function(){r(this).css(o,n(this,t)+"px")})},r.fn["outer"+i]=function(t,e){return"number"!=typeof t?a["outer"+i].call(this,t):this.each(function(){r(this).css(o,n(this,t,!0,e)+"px")})}}),r.fn.addBack||(r.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),r("").data("a-b","a").removeData("a-b").data("a-b")&&(r.fn.removeData=(e=r.fn.removeData,function(t){return arguments.length?e.call(this,r.camelCase(t)):e.call(this)})),r.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),r.support.selectstart="onselectstart"in document.createElement("div"),r.fn.extend({disableSelection:function(){return this.bind((r.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(t){t.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),r.extend(r.ui,{plugin:{add:function(t,e,i){var n,s=r.ui[t].prototype;for(n in i)s.plugins[n]=s.plugins[n]||[],s.plugins[n].push([e,i[n]])},call:function(t,e,i){var n,s=t.plugins[e];if(s&&t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType)for(n=0;n",options:{disabled:!1,create:null},_createWidget:function(t,e){e=c(e||this.defaultElement||this)[0],this.element=c(e),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=c.widget.extend({},this.options,this._getCreateOptions(),t),this.bindings=c(),this.hoverable=c(),this.focusable=c(),e!==this&&(c.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=c(e.style?e.ownerDocument:e.document||e),this.window=c(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:c.noop,_getCreateEventData:c.noop,_create:c.noop,_init:c.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(c.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:c.noop,widget:function(){return this.element},option:function(t,e){var i,n,s,o=t;if(0===arguments.length)return c.widget.extend({},this.options);if("string"==typeof t)if(o={},t=(i=t.split(".")).shift(),i.length){for(n=o[t]=c.widget.extend({},this.options[t]),s=0;s=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(jQuery),function(_){_.widget("ui.draggable",_.ui.mouse,{version:"1.10.3",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"!==this.options.helper||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy()},_mouseCapture:function(t){var e=this.options;return!(this.helper||e.disabled||0<_(t.target).closest(".ui-resizable-handle").length)&&(this.handle=this._getHandle(t),!!this.handle&&(_(!0===e.iframeFix?"iframe":e.iframeFix).each(function(){_("
").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(_(this).offset()).appendTo("body")}),!0))},_mouseStart:function(t){var e=this.options;return this.helper=this._createHelper(t),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),_.ui.ddmanager&&(_.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offsetParent=this.helper.offsetParent(),this.offsetParentCssPosition=this.offsetParent.css("position"),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.offset.scroll=!1,_.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,e.cursorAt&&this._adjustOffsetFromHelper(e.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),_.ui.ddmanager&&!e.dropBehaviour&&_.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),_.ui.ddmanager&&_.ui.ddmanager.dragStart(this,t),!0)},_mouseDrag:function(t,e){if("fixed"===this.offsetParentCssPosition&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),!e){var i=this._uiHash();if(!1===this._trigger("drag",t,i))return this._mouseUp({}),!1;this.position=i.position}return 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"),_.ui.ddmanager&&_.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var e=this,i=!1;return _.ui.ddmanager&&!this.options.dropBehaviour&&(i=_.ui.ddmanager.drop(this,t)),this.dropped&&(i=this.dropped,this.dropped=!1),("original"!==this.options.helper||_.contains(this.element[0].ownerDocument,this.element[0]))&&("invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||_.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)?_(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==e._trigger("stop",t)&&e._clear()}):!1!==this._trigger("stop",t)&&this._clear()),!1},_mouseUp:function(t){return _("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),_.ui.ddmanager&&_.ui.ddmanager.dragStop(this,t),_.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!_(t.target).closest(this.element.find(this.options.handle)).length},_createHelper:function(t){var e=this.options,i=_.isFunction(e.helper)?_(e.helper.apply(this.element[0],[t])):"clone"===e.helper?this.element.clone().removeAttr("id"):this.element;return i.parents("body").length||i.appendTo("parent"===e.appendTo?this.element[0].parentNode:e.appendTo),i[0]===this.element[0]||/(fixed|absolute)/.test(i.css("position"))||i.css("position","absolute"),i},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),_.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&_.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&_.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.element.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.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 t,e,i,n=this.options;n.containment?"window"!==n.containment?"document"!==n.containment?n.containment.constructor!==Array?("parent"===n.containment&&(n.containment=this.helper[0].parentNode),(i=(e=_(n.containment))[0])&&(t="hidden"!==e.css("overflow"),this.containment=[(parseInt(e.css("borderLeftWidth"),10)||0)+(parseInt(e.css("paddingLeft"),10)||0),(parseInt(e.css("borderTopWidth"),10)||0)+(parseInt(e.css("paddingTop"),10)||0),(t?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(e.css("borderRightWidth"),10)||0)-(parseInt(e.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(e.css("borderBottomWidth"),10)||0)-(parseInt(e.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=e)):this.containment=n.containment:this.containment=[0,0,_(document).width()-this.helperProportions.width-this.margins.left,(_(document).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[_(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,_(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,_(window).scrollLeft()+_(window).width()-this.helperProportions.width-this.margins.left,_(window).scrollTop()+(_(window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(t,e){e||(e=this.position);var i="absolute"===t?1:-1,n="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&_.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent;return this.offset.scroll||(this.offset.scroll={top:n.scrollTop(),left:n.scrollLeft()}),{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top)*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)*i}},_generatePosition:function(t){var e,i,n,s,o=this.options,a="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&_.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,r=t.pageX,l=t.pageY;return this.offset.scroll||(this.offset.scroll={top:a.scrollTop(),left:a.scrollLeft()}),this.originalPosition&&(this.containment&&(this.relative_container?(i=this.relative_container.offset(),e=[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):e=this.containment,t.pageX-this.offset.click.lefte[2]&&(r=e[2]+this.offset.click.left),t.pageY-this.offset.click.top>e[3]&&(l=e[3]+this.offset.click.top)),o.grid&&(n=o.grid[1]?this.originalPageY+Math.round((l-this.originalPageY)/o.grid[1])*o.grid[1]:this.originalPageY,l=e?n-this.offset.click.top>=e[1]||n-this.offset.click.top>e[3]?n:n-this.offset.click.top>=e[1]?n-o.grid[1]:n+o.grid[1]:n,s=o.grid[0]?this.originalPageX+Math.round((r-this.originalPageX)/o.grid[0])*o.grid[0]:this.originalPageX,r=e?s-this.offset.click.left>=e[0]||s-this.offset.click.left>e[2]?s:s-this.offset.click.left>=e[0]?s-o.grid[0]:s+o.grid[0]:s)),{top:l-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top),left:r-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)}},_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(t,e,i){return i=i||this._uiHash(),_.ui.plugin.call(this,t,[e,i]),"drag"===t&&(this.positionAbs=this._convertPositionTo("absolute")),_.Widget.prototype._trigger.call(this,t,e,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),_.ui.plugin.add("draggable","connectToSortable",{start:function(e,t){var i=_(this).data("ui-draggable"),n=i.options,s=_.extend({},t,{item:i.element});i.sortables=[],_(n.connectToSortable).each(function(){var t=_.data(this,"ui-sortable");t&&!t.options.disabled&&(i.sortables.push({instance:t,shouldRevert:t.options.revert}),t.refreshPositions(),t._trigger("activate",e,s))})},stop:function(t,e){var i=_(this).data("ui-draggable"),n=_.extend({},e,{item:i.element});_.each(i.sortables,function(){this.instance.isOver?(this.instance.isOver=0,i.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=this.shouldRevert),this.instance._mouseStop(t),this.instance.options.helper=this.instance.options._helper,"original"===i.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",t,n))})},drag:function(i,n){var s=_(this).data("ui-draggable"),o=this;_.each(s.sortables,function(){var t=!1,e=this;this.instance.positionAbs=s.positionAbs,this.instance.helperProportions=s.helperProportions,this.instance.offset.click=s.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(t=!0,_.each(s.sortables,function(){return this.instance.positionAbs=s.positionAbs,this.instance.helperProportions=s.helperProportions,this.instance.offset.click=s.offset.click,this!==e&&this.instance._intersectsWith(this.instance.containerCache)&&_.contains(e.instance.element[0],this.instance.element[0])&&(t=!1),t})),t?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=_(o).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return n.helper[0]},i.target=this.instance.currentItem[0],this.instance._mouseCapture(i,!0),this.instance._mouseStart(i,!0,!0),this.instance.offset.click.top=s.offset.click.top,this.instance.offset.click.left=s.offset.click.left,this.instance.offset.parent.left-=s.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=s.offset.parent.top-this.instance.offset.parent.top,s._trigger("toSortable",i),s.dropped=this.instance.element,s.currentItem=s.element,this.instance.fromOutside=s),this.instance.currentItem&&this.instance._mouseDrag(i)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",i,this.instance._uiHash(this.instance)),this.instance._mouseStop(i,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),s._trigger("fromSortable",i),s.dropped=!1)})}}),_.ui.plugin.add("draggable","cursor",{start:function(){var t=_("body"),e=_(this).data("ui-draggable").options;t.css("cursor")&&(e._cursor=t.css("cursor")),t.css("cursor",e.cursor)},stop:function(){var t=_(this).data("ui-draggable").options;t._cursor&&_("body").css("cursor",t._cursor)}}),_.ui.plugin.add("draggable","opacity",{start:function(t,e){var i=_(e.helper),n=_(this).data("ui-draggable").options;i.css("opacity")&&(n._opacity=i.css("opacity")),i.css("opacity",n.opacity)},stop:function(t,e){var i=_(this).data("ui-draggable").options;i._opacity&&_(e.helper).css("opacity",i._opacity)}}),_.ui.plugin.add("draggable","scroll",{start:function(){var t=_(this).data("ui-draggable");t.scrollParent[0]!==document&&"HTML"!==t.scrollParent[0].tagName&&(t.overflowOffset=t.scrollParent.offset())},drag:function(t){var e=_(this).data("ui-draggable"),i=e.options,n=!1;e.scrollParent[0]!==document&&"HTML"!==e.scrollParent[0].tagName?(i.axis&&"x"===i.axis||(e.overflowOffset.top+e.scrollParent[0].offsetHeight-t.pageY").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("ui-resizable",this.element.data("ui-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=o.handles||(v(".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"),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),t=this.handles.split(","),this.handles={},e=0;e")).css({zIndex:o.zIndex}),"se"===i&&n.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[i]=".ui-resizable-"+i,this.element.append(n);this._renderAxis=function(t){var e,i,n,s;for(e in t=t||this.element,this.handles)this.handles[e].constructor===String&&(this.handles[e]=v(this.handles[e],this.element).show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)&&(i=v(this.handles[e],this.element),s=/sw|ne|nw|se|n|s/.test(e)?i.outerHeight():i.outerWidth(),n=["padding",/ne|nw|n/.test(e)?"Top":/se|sw|s/.test(e)?"Bottom":/^e$/.test(e)?"Right":"Left"].join(""),t.css(n,s),this._proportionallyResize()),v(this.handles[e]).length},this._renderAxis(this.element),this._handles=v(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){s.resizing||(this.className&&(n=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),s.axis=n&&n[1]?n[1]:"se")}),o.autoHide&&(this._handles.hide(),v(this.element).addClass("ui-resizable-autohide").mouseenter(function(){o.disabled||(v(this).removeClass("ui-resizable-autohide"),s._handles.show())}).mouseleave(function(){o.disabled||s.resizing||(v(this).addClass("ui-resizable-autohide"),s._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var t,e=function(t){v(t).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(e(this.element),t=this.element,this.originalElement.css({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.css("top"),left:t.css("left")}).insertAfter(t),t.remove()),this.originalElement.css("resize",this.originalResizeStyle),e(this.originalElement),this},_mouseCapture:function(t){var e,i,n=!1;for(e in this.handles)((i=v(this.handles[e])[0])===t.target||v.contains(i,t.target))&&(n=!0);return!this.options.disabled&&n},_mouseStart:function(t){var e,i,n,s=this.options,o=this.element.position(),a=this.element;return this.resizing=!0,/absolute/.test(a.css("position"))?a.css({position:"absolute",top:a.css("top"),left:a.css("left")}):a.is(".ui-draggable")&&a.css({position:"absolute",top:o.top,left:o.left}),this._renderProxy(),e=d(this.helper.css("left")),i=d(this.helper.css("top")),s.containment&&(e+=v(s.containment).scrollLeft()||0,i+=v(s.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:e,top:i},this.size=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()},this.originalSize=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()},this.originalPosition={left:e,top:i},this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof s.aspectRatio?s.aspectRatio:this.originalSize.width/this.originalSize.height||1,n=v(".ui-resizable-"+this.axis).css("cursor"),v("body").css("cursor","auto"===n?this.axis+"-resize":n),a.addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var e,i=this.helper,n={},s=this.originalMousePosition,o=this.axis,a=this.position.top,r=this.position.left,l=this.size.width,h=this.size.height,c=t.pageX-s.left||0,u=t.pageY-s.top||0,d=this._change[o];return d&&(e=d.apply(this,[t,c,u]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(e=this._updateRatio(e,t)),e=this._respectSize(e,t),this._updateCache(e),this._propagate("resize",t),this.position.top!==a&&(n.top=this.position.top+"px"),this.position.left!==r&&(n.left=this.position.left+"px"),this.size.width!==l&&(n.width=this.size.width+"px"),this.size.height!==h&&(n.height=this.size.height+"px"),i.css(n),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),v.isEmptyObject(n)||this._trigger("resize",t,this.ui())),!1},_mouseStop:function(t){this.resizing=!1;var e,i,n,s,o,a,r,l=this.options,h=this;return this._helper&&(n=(i=(e=this._proportionallyResizeElements).length&&/textarea/i.test(e[0].nodeName))&&v.ui.hasScroll(e[0],"left")?0:h.sizeDiff.height,s=i?0:h.sizeDiff.width,o={width:h.helper.width()-s,height:h.helper.height()-n},a=parseInt(h.element.css("left"),10)+(h.position.left-h.originalPosition.left)||null,r=parseInt(h.element.css("top"),10)+(h.position.top-h.originalPosition.top)||null,l.animate||this.element.css(v.extend(o,{top:r,left:a})),h.helper.height(h.size.height),h.helper.width(h.size.width),this._helper&&!l.animate&&this._proportionallyResize()),v("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(t){var e,i,n,s,o,a=this.options;o={minWidth:u(a.minWidth)?a.minWidth:0,maxWidth:u(a.maxWidth)?a.maxWidth:Infinity,minHeight:u(a.minHeight)?a.minHeight:0,maxHeight:u(a.maxHeight)?a.maxHeight:Infinity},(this._aspectRatio||t)&&(e=o.minHeight*this.aspectRatio,n=o.minWidth/this.aspectRatio,i=o.maxHeight*this.aspectRatio,s=o.maxWidth/this.aspectRatio,e>o.minWidth&&(o.minWidth=e),n>o.minHeight&&(o.minHeight=n),it.width,a=u(t.height)&&e.minHeight&&e.minHeight>t.height,r=this.originalPosition.left+this.originalSize.width,l=this.position.top+this.size.height,h=/sw|nw|w/.test(i),c=/nw|ne|n/.test(i);return o&&(t.width=e.minWidth),a&&(t.height=e.minHeight),n&&(t.width=e.maxWidth),s&&(t.height=e.maxHeight),o&&h&&(t.left=r-e.minWidth),n&&h&&(t.left=r-e.maxWidth),a&&c&&(t.top=l-e.minHeight),s&&c&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_proportionallyResize:function(){if(this._proportionallyResizeElements.length){var t,e,i,n,s,o=this.helper||this.element;for(t=0;t"),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++e.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){var n=this.originalSize;return{top:this.originalPosition.top+i,height:n.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(t,e,i){return v.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,e,i]))},sw:function(t,e,i){return v.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,e,i]))},ne:function(t,e,i){return v.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,e,i]))},nw:function(t,e,i){return v.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,e,i]))}},_propagate:function(t,e){v.ui.plugin.call(this,t,[e,this.ui()]),"resize"!==t&&this._trigger(t,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}}}),v.ui.plugin.add("resizable","animate",{stop:function(e){var i=v(this).data("ui-resizable"),t=i.options,n=i._proportionallyResizeElements,s=n.length&&/textarea/i.test(n[0].nodeName),o=s&&v.ui.hasScroll(n[0],"left")?0:i.sizeDiff.height,a=s?0:i.sizeDiff.width,r={width:i.size.width-a,height:i.size.height-o},l=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,h=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(v.extend(r,h&&l?{top:h,left:l}:{}),{duration:t.animateDuration,easing:t.animateEasing,step:function(){var t={width:parseInt(i.element.css("width"),10),height:parseInt(i.element.css("height"),10),top:parseInt(i.element.css("top"),10),left:parseInt(i.element.css("left"),10)};n&&n.length&&v(n[0]).css({width:t.width,height:t.height}),i._updateCache(t),i._propagate("resize",e)}})}}),v.ui.plugin.add("resizable","containment",{start:function(){var i,n,t,e,s,o,a,r=v(this).data("ui-resizable"),l=r.options,h=r.element,c=l.containment,u=c instanceof v?c.get(0):/parent/.test(c)?h.parent().get(0):c;u&&(r.containerElement=v(u),/document/.test(c)||c===document?(r.containerOffset={left:0,top:0},r.containerPosition={left:0,top:0},r.parentData={element:v(document),left:0,top:0,width:v(document).width(),height:v(document).height()||document.body.parentNode.scrollHeight}):(i=v(u),n=[],v(["Top","Right","Left","Bottom"]).each(function(t,e){n[t]=d(i.css("padding"+e))}),r.containerOffset=i.offset(),r.containerPosition=i.position(),r.containerSize={height:i.innerHeight()-n[3],width:i.innerWidth()-n[1]},t=r.containerOffset,e=r.containerSize.height,s=r.containerSize.width,o=v.ui.hasScroll(u,"left")?u.scrollWidth:s,a=v.ui.hasScroll(u)?u.scrollHeight:e,r.parentData={element:u,left:t.left,top:t.top,width:o,height:a}))},resize:function(t){var e,i,n,s,o=v(this).data("ui-resizable"),a=o.options,r=o.containerOffset,l=o.position,h=o._aspectRatio||t.shiftKey,c={top:0,left:0},u=o.containerElement;u[0]!==document&&/static/.test(u.css("position"))&&(c=r),l.left<(o._helper?r.left:0)&&(o.size.width=o.size.width+(o._helper?o.position.left-r.left:o.position.left-c.left),h&&(o.size.height=o.size.width/o.aspectRatio),o.position.left=a.helper?r.left:0),l.top<(o._helper?r.top:0)&&(o.size.height=o.size.height+(o._helper?o.position.top-r.top:o.position.top),h&&(o.size.width=o.size.height*o.aspectRatio),o.position.top=o._helper?r.top:0),o.offset.left=o.parentData.left+o.position.left,o.offset.top=o.parentData.top+o.position.top,e=Math.abs((o._helper,o.offset.left-c.left+o.sizeDiff.width)),i=Math.abs((o._helper?o.offset.top-c.top:o.offset.top-r.top)+o.sizeDiff.height),n=o.containerElement.get(0)===o.element.parent().get(0),s=/relative|absolute/.test(o.containerElement.css("position")),n&&s&&(e-=o.parentData.left),e+o.size.width>=o.parentData.width&&(o.size.width=o.parentData.width-e,h&&(o.size.height=o.size.width/o.aspectRatio)),i+o.size.height>=o.parentData.height&&(o.size.height=o.parentData.height-i,h&&(o.size.width=o.size.height*o.aspectRatio))},stop:function(){var t=v(this).data("ui-resizable"),e=t.options,i=t.containerOffset,n=t.containerPosition,s=t.containerElement,o=v(t.helper),a=o.offset(),r=o.outerWidth()-t.sizeDiff.width,l=o.outerHeight()-t.sizeDiff.height;t._helper&&!e.animate&&/relative/.test(s.css("position"))&&v(this).css({left:a.left-n.left-i.left,width:r,height:l}),t._helper&&!e.animate&&/static/.test(s.css("position"))&&v(this).css({left:a.left-n.left-i.left,width:r,height:l})}}),v.ui.plugin.add("resizable","alsoResize",{start:function(){var t=v(this).data("ui-resizable").options,e=function(t){v(t).each(function(){var t=v(this);t.data("ui-resizable-alsoresize",{width:parseInt(t.width(),10),height:parseInt(t.height(),10),left:parseInt(t.css("left"),10),top:parseInt(t.css("top"),10)})})};"object"!=typeof t.alsoResize||t.alsoResize.parentNode?e(t.alsoResize):t.alsoResize.length?(t.alsoResize=t.alsoResize[0],e(t.alsoResize)):v.each(t.alsoResize,function(t){e(t)})},resize:function(t,o){var e=v(this).data("ui-resizable"),i=e.options,n=e.originalSize,s=e.originalPosition,a={height:e.size.height-n.height||0,width:e.size.width-n.width||0,top:e.position.top-s.top||0,left:e.position.left-s.left||0},r=function(t,i){v(t).each(function(){var t=v(this),n=v(this).data("ui-resizable-alsoresize"),s={},e=i&&i.length?i:t.parents(o.originalElement[0]).length?["width","height"]:["width","height","top","left"];v.each(e,function(t,e){var i=(n[e]||0)+(a[e]||0);i&&0<=i&&(s[e]=i||null)}),t.css(s)})};"object"!=typeof i.alsoResize||i.alsoResize.nodeType?r(i.alsoResize):v.each(i.alsoResize,function(t,e){r(t,e)})},stop:function(){v(this).removeData("resizable-alsoresize")}}),v.ui.plugin.add("resizable","ghost",{start:function(){var t=v(this).data("ui-resizable"),e=t.options,i=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof e.ghost?e.ghost:""),t.ghost.appendTo(t.helper)},resize:function(){var t=v(this).data("ui-resizable");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=v(this).data("ui-resizable");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),v.ui.plugin.add("resizable","grid",{resize:function(){var t=v(this).data("ui-resizable"),e=t.options,i=t.size,n=t.originalSize,s=t.originalPosition,o=t.axis,a="number"==typeof e.grid?[e.grid,e.grid]:e.grid,r=a[0]||1,l=a[1]||1,h=Math.round((i.width-n.width)/r)*r,c=Math.round((i.height-n.height)/l)*l,u=n.width+h,d=n.height+c,p=e.maxWidth&&e.maxWidthu,g=e.minHeight&&e.minHeight>d;e.grid=a,m&&(u+=r),g&&(d+=l),p&&(u-=r),f&&(d-=l),/^(se|s|e)$/.test(o)?(t.size.width=u,t.size.height=d):/^(ne)$/.test(o)?(t.size.width=u,t.size.height=d,t.position.top=s.top-c):(/^(sw)$/.test(o)?(t.size.width=u,t.size.height=d):(t.size.width=u,t.size.height=d,t.position.top=s.top-c),t.position.left=s.left-h)}})}(jQuery),function(h){h.widget("ui.selectable",h.ui.mouse,{version:"1.10.3",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var t,e=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){(t=h(e.options.filter,e.element[0])).addClass("ui-selectee"),t.each(function(){var t=h(this),e=t.offset();h.data(this,"selectable-item",{element:this,$element:t,left:e.left,top:e.top,right:e.left+t.outerWidth(),bottom:e.top+t.outerHeight(),startselected:!1,selected:t.hasClass("ui-selected"),selecting:t.hasClass("ui-selecting"),unselecting:t.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=t.addClass("ui-selectee"),this._mouseInit(),this.helper=h("
")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(i){var n=this,t=this.options;this.opos=[i.pageX,i.pageY],this.options.disabled||(this.selectees=h(t.filter,this.element[0]),this._trigger("start",i),h(t.appendTo).append(this.helper),this.helper.css({left:i.pageX,top:i.pageY,width:0,height:0}),t.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var t=h.data(this,"selectable-item");t.startselected=!0,i.metaKey||i.ctrlKey||(t.$element.removeClass("ui-selected"),t.selected=!1,t.$element.addClass("ui-unselecting"),t.unselecting=!0,n._trigger("unselecting",i,{unselecting:t.element}))}),h(i.target).parents().addBack().each(function(){var t,e=h.data(this,"selectable-item");if(e)return t=!i.metaKey&&!i.ctrlKey||!e.$element.hasClass("ui-selected"),e.$element.removeClass(t?"ui-unselecting":"ui-selected").addClass(t?"ui-selecting":"ui-unselecting"),e.unselecting=!t,e.selecting=t,(e.selected=t)?n._trigger("selecting",i,{selecting:e.element}):n._trigger("unselecting",i,{unselecting:e.element}),!1}))},_mouseDrag:function(i){if(this.dragged=!0,!this.options.disabled){var t,n=this,s=this.options,o=this.opos[0],a=this.opos[1],r=i.pageX,l=i.pageY;return rr||t.rightl||t.bottomo&&t.righta&&t.bottom *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_create:function(){var t=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=!!this.items.length&&("x"===t.axis||m(this.items[0].item)),this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var t=this.items.length-1;0<=t;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_setOption:function(t,e){"disabled"===t?(this.options[t]=e,this.widget().toggleClass("ui-sortable-disabled",!!e)):p.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(t,e){var i=null,n=!1,s=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(t),p(t.target).parents().each(function(){if(p.data(this,s.widgetName+"-item")===s)return i=p(this),!1}),p.data(t.target,s.widgetName+"-item")===s&&(i=p(t.target)),!!i&&(!(this.options.handle&&!e&&(p(this.options.handle,i).find("*").addBack().each(function(){this===t.target&&(n=!0)}),!n))&&(this.currentItem=i,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(t,e,i){var n,s,o=this.options;if((this.currentContainer=this).refreshPositions(),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},p.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,o.cursorAt&&this._adjustOffsetFromHelper(o.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),o.containment&&this._setContainment(),o.cursor&&"auto"!==o.cursor&&(s=this.document.find("body"),this.storedCursor=s.css("cursor"),s.css("cursor",o.cursor),this.storedStylesheet=p("").appendTo(s)),o.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",o.opacity)),o.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",o.zIndex)),this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(n=this.containers.length-1;0<=n;n--)this.containers[n]._trigger("activate",t,this._uiHash(this));return p.ui.ddmanager&&(p.ui.ddmanager.current=this),p.ui.ddmanager&&!o.dropBehaviour&&p.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(t),!0},_mouseDrag:function(t){var e,i,n,s,o=this.options,a=!1;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageYt[this.floating?"width":"height"]?p:o",i.document[0]).addClass(n||i.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tr"===t?i.currentItem.children().each(function(){p("
",i.document[0]).attr("colspan",p(this).attr("colspan")||1).appendTo(e)}):"img"===t&&e.attr("src",i.currentItem.attr("src")),n||e.css("visibility","hidden"),e},update:function(t,e){n&&!s.forcePlaceholderSize||(e.height()||e.height(i.currentItem.innerHeight()-parseInt(i.currentItem.css("paddingTop")||0,10)-parseInt(i.currentItem.css("paddingBottom")||0,10)),e.width()||e.width(i.currentItem.innerWidth()-parseInt(i.currentItem.css("paddingLeft")||0,10)-parseInt(i.currentItem.css("paddingRight")||0,10)))}}),i.placeholder=p(s.placeholder.element.call(i.element,i.currentItem)),i.currentItem.after(i.placeholder),s.placeholder.update(i,i.placeholder)},_contactContainers:function(t){var e,i,n,s,o,a,r,l,h,c,u=null,d=null;for(e=this.containers.length-1;0<=e;e--)if(!p.contains(this.currentItem[0],this.containers[e].element[0]))if(this._intersectsWith(this.containers[e].containerCache)){if(u&&p.contains(this.containers[e].element[0],u.element[0]))continue;u=this.containers[e],d=e}else this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",t,this._uiHash(this)),this.containers[e].containerCache.over=0);if(u)if(1===this.containers.length)this.containers[d].containerCache.over||(this.containers[d]._trigger("over",t,this._uiHash(this)),this.containers[d].containerCache.over=1);else{for(n=1e4,s=null,o=(c=u.floating||m(this.currentItem))?"left":"top",a=c?"width":"height",r=this.positionAbs[o]+this.offset.click[o],i=this.items.length-1;0<=i;i--)p.contains(this.containers[d].element[0],this.items[i].item[0])&&this.items[i].item[0]!==this.currentItem[0]&&(c&&!f(this.positionAbs.top+this.offset.click.top,this.items[i].top,this.items[i].height)||(l=this.items[i].item.offset()[o],h=!1,Math.abs(l-r)>Math.abs(l+this.items[i][a]-r)&&(h=!0,l+=this.items[i][a]),Math.abs(l-r)this.containment[2]&&(s=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(o=this.containment[3]+this.offset.click.top)),n.grid&&(e=this.originalPageY+Math.round((o-this.originalPageY)/n.grid[1])*n.grid[1],o=this.containment?e-this.offset.click.top>=this.containment[1]&&e-this.offset.click.top<=this.containment[3]?e:e-this.offset.click.top>=this.containment[1]?e-n.grid[1]:e+n.grid[1]:e,i=this.originalPageX+Math.round((s-this.originalPageX)/n.grid[0])*n.grid[0],s=this.containment?i-this.offset.click.left>=this.containment[0]&&i-this.offset.click.left<=this.containment[2]?i:i-this.offset.click.left>=this.containment[0]?i-n.grid[0]:i+n.grid[0]:i)),{top:o-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():r?0:a.scrollTop()),left:s-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():r?0:a.scrollLeft())}},_rearrange:function(t,e,i,n){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var s=this.counter;this._delay(function(){s===this.counter&&this.refreshPositions(!n)})},_clear:function(t,e){this.reverting=!1;var i,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&n.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||n.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&&(e||(n.push(function(t){this._trigger("remove",t,this._uiHash())}),n.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;0<=i;i--)e||n.push(function(e){return function(t){e._trigger("deactivate",t,this._uiHash(this))}}.call(this,this.containers[i])),this.containers[i].containerCache.over&&(n.push(function(e){return function(t){e._trigger("out",t,this._uiHash(this))}}.call(this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!e){for(this._trigger("beforeStop",t,this._uiHash()),i=0;i")[0],b=c.each;i.style.cssText="background-color:rgba(1,1,1,.5)",v.rgba=-1o.mod/2?n+=o.mod:n-s>o.mod/2&&(n-=o.mod)),h[i]=d((s-n)*a+n,e)))}),this[e](h)},blend:function(t){if(1===this._rgba[3])return this;var e=this._rgba.slice(),i=e.pop(),n=f(t)._rgba;return f(c.map(e,function(t,e){return(1-i)*n[e]+i*t}))},toRgbaString:function(){var t="rgba(",e=c.map(this._rgba,function(t,e){return null==t?2").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:i.width(),height:i.height()},s=document.activeElement;try{s.id}catch(o){s=document.body}return i.wrap(t),(i[0]===s||u.contains(i[0],s))&&u(s).focus(),t=i.parent(),"static"===i.css("position")?(t.css({position:"relative"}),i.css({position:"relative"})):(u.extend(n,{position:i.css("position"),zIndex:i.css("z-index")}),u.each(["top","left","bottom","right"],function(t,e){n[e]=i.css(e),isNaN(parseInt(n[e],10))&&(n[e]="auto")}),i.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),i.css(e),t.css(n).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===e||u.contains(t[0],e))&&u(e).focus()),t},setTransition:function(n,t,s,o){return o=o||{},u.each(t,function(t,e){var i=n.cssUnit(e);0 li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},_create:function(){var t=this.options;this.prevShow=this.prevHide=h(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),t.collapsible||!1!==t.active&&null!=t.active||(t.active=0),this._processPanels(),t.active<0&&(t.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():h(),content:this.active.length?this.active.next():h()}},_createIcons:function(){var t=this.options.icons;t&&(h("").addClass("ui-accordion-header-icon ui-icon "+t.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(t.header).addClass(t.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){"active"!==t?("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||!1!==this.options.active||this._activate(0),"icons"===t&&(this._destroyIcons(),e&&this._createIcons()),"disabled"===t&&this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!e)):this._activate(e)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var e=h.ui.keyCode,i=this.headers.length,n=this.headers.index(t.target),s=!1;switch(t.keyCode){case e.RIGHT:case e.DOWN:s=this.headers[(n+1)%i];break;case e.LEFT:case e.UP:s=this.headers[(n-1+i)%i];break;case e.SPACE:case e.ENTER:this._eventHandler(t);break;case e.HOME:s=this.headers[0];break;case e.END:s=this.headers[i-1]}s&&(h(t.target).attr("tabIndex",-1),h(s).attr("tabIndex",0),s.focus(),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===h.ui.keyCode.UP&&t.ctrlKey&&h(t.currentTarget).prev().focus()},refresh:function(){var t=this.options;this._processPanels(),!1===t.active&&!0===t.collapsible||!this.headers.length?(t.active=!1,this.active=h()):!1===t.active?this._activate(0):this.active.length&&!h.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=h()):this._activate(Math.max(0,t.active-1)):t.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all"),this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide()},_refresh:function(){var i,t=this.options,e=t.heightStyle,n=this.element.parent(),o=this.accordionId="ui-accordion-"+(this.element.attr("id")||++s);this.active=this._findActive(t.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all"),this.active.next().addClass("ui-accordion-content-active").show(),this.headers.attr("role","tab").each(function(t){var e=h(this),i=e.attr("id"),n=e.next(),s=n.attr("id");i||(i=o+"-header-"+t,e.attr("id",i)),s||(s=o+"-panel-"+t,n.attr("id",s)),e.attr("aria-controls",s),n.attr("aria-labelledby",i)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false",tabIndex:-1}).next().attr({"aria-expanded":"false","aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true",tabIndex:0}).next().attr({"aria-expanded":"true","aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(t.event),"fill"===e?(i=n.height(),this.element.siblings(":visible").each(function(){var t=h(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(i-=t.outerHeight(!0))}),this.headers.each(function(){i-=h(this).outerHeight(!0)}),this.headers.next().each(function(){h(this).height(Math.max(0,i-h(this).innerHeight()+h(this).height()))}).css("overflow","auto")):"auto"===e&&(i=0,this.headers.next().each(function(){i=Math.max(i,h(this).css("height","").height())}).height(i))},_activate:function(t){var e=this._findActive(t)[0];e!==this.active[0]&&(e=e||this.active[0],this._eventHandler({target:e,currentTarget:e,preventDefault:h.noop}))},_findActive:function(t){return"number"==typeof t?this.headers.eq(t):h()},_setupEvents:function(t){var i={keydown:"_keydown"};t&&h.each(t.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(t){var e=this.options,i=this.active,n=h(t.currentTarget),s=n[0]===i[0],o=s&&e.collapsible,a=o?h():n.next(),r=i.next(),l={oldHeader:i,oldPanel:r,newHeader:o?h():n,newPanel:a};t.preventDefault(),s&&!e.collapsible||!1===this._trigger("beforeActivate",t,l)||(e.active=!o&&this.headers.index(n),this.active=s?h():n,this._toggle(l),i.removeClass("ui-accordion-header-active ui-state-active"),e.icons&&i.children(".ui-accordion-header-icon").removeClass(e.icons.activeHeader).addClass(e.icons.header),s||(n.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),e.icons&&n.children(".ui-accordion-header-icon").removeClass(e.icons.header).addClass(e.icons.activeHeader),n.next().addClass("ui-accordion-content-active")))},_toggle:function(t){var e=t.newPanel,i=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=e,this.prevHide=i,this.options.animate?this._animate(e,i,t):(i.hide(),e.show(),this._toggleComplete(t)),i.attr({"aria-expanded":"false","aria-hidden":"true"}),i.prev().attr("aria-selected","false"),e.length&&i.length?i.prev().attr("tabIndex",-1):e.length&&this.headers.filter(function(){return 0===h(this).attr("tabIndex")}).attr("tabIndex",-1),e.attr({"aria-expanded":"true","aria-hidden":"false"}).prev().attr({"aria-selected":"true",tabIndex:0})},_animate:function(t,i,e){var n,s,o,a=this,r=0,l=t.length&&(!i.length||t.index()",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var i,n,s,t=this.element[0].nodeName.toLowerCase(),e="textarea"===t,o="input"===t;this.isMultiLine=!!e||!o&&this.element.prop("isContentEditable"),this.valueMethod=this.element[e||o?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(t){if(this.element.prop("readOnly"))n=s=i=!0;else{n=s=i=!1;var e=a.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:i=!0,this._move("previousPage",t);break;case e.PAGE_DOWN:i=!0,this._move("nextPage",t);break;case e.UP:i=!0,this._keyEvent("previous",t);break;case e.DOWN:i=!0,this._keyEvent("next",t);break;case e.ENTER:case e.NUMPAD_ENTER:this.menu.active&&(i=!0,t.preventDefault(),this.menu.select(t));break;case e.TAB:this.menu.active&&this.menu.select(t);break;case e.ESCAPE:this.menu.element.is(":visible")&&(this._value(this.term),this.close(t),t.preventDefault());break;default:n=!0,this._searchTimeout(t)}}},keypress:function(t){if(i)return i=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||t.preventDefault());if(!n){var e=a.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:this._move("previousPage",t);break;case e.PAGE_DOWN:this._move("nextPage",t);break;case e.UP:this._keyEvent("previous",t);break;case e.DOWN:this._keyEvent("next",t)}}},input:function(t){if(s)return s=!1,void t.preventDefault();this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){this.cancelBlur?delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),this._change(t))}}),this._initSource(),this.menu=a("
 
",N=u?"":"",w=0;w<7;w++)N+=""+p[E]+"";for(S+=N+"",I=this._getDaysInMonth(tt,Z),tt===t.selectedYear&&Z===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,I)),P=(this._getFirstDayOfMonth(tt,Z)-c+7)%7,M=Math.ceil((P+I)/7),A=X&&this.maxRows>M?this.maxRows:M,this.maxRows=A,$=this._daylightSavingAdjust(new Date(tt,Z,1-P)),z=0;z",H=u?"":"",w=0;w<7;w++)j=g?g.apply(t.input?t.input[0]:null,[$]):[!0,""],O=(W=$.getMonth()!==Z)&&!b||!j[0]||G&&$"+(W&&!v?" ":O?""+$.getDate()+"":""+$.getDate()+"")+"",$.setDate($.getDate()+1),$=this._daylightSavingAdjust($);S+=H+""}11<++Z&&(Z=0,tt++),k+=S+="
"+this._get(t,"weekHeader")+"
"+this._get(t,"calculateWeek")($)+"
"+(X?""+(0":""):"")}y+=k}return y+=h,t._keyEvent=!1,y},_generateMonthYearHeader:function(t,e,i,n,s,o,a,r){var l,h,c,u,d,p,f,m,g=this._get(t,"changeMonth"),v=this._get(t,"changeYear"),b=this._get(t,"showMonthAfterYear"),_="
",y="";if(o||!g)y+=""+a[e]+"";else{for(l=n&&n.getFullYear()===i,h=s&&s.getFullYear()===i,y+=""}if(b||(_+=y+(!o&&g&&v?"":" ")),!t.yearshtml)if(t.yearshtml="",o||!v)_+=""+i+"";else{for(u=this._get(t,"yearRange").split(":"),d=(new Date).getFullYear(),f=(p=function(t){var e=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?d+parseInt(t,10):parseInt(t,10);return isNaN(e)?d:e})(u[0]),m=Math.max(f,p(u[1]||"")),f=n?Math.max(f,n.getFullYear()):f,m=s?Math.min(m,s.getFullYear()):m,t.yearshtml+="",_+=t.yearshtml,t.yearshtml=null}return _+=this._get(t,"yearSuffix"),b&&(_+=(!o&&g&&v?"":" ")+y),_+="
"},_adjustInstDate:function(t,e,i){var n=t.drawYear+("Y"===i?e:0),s=t.drawMonth+("M"===i?e:0),o=Math.min(t.selectedDay,this._getDaysInMonth(n,s))+("D"===i?e:0),a=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(n,s,o)));t.selectedDay=a.getDate(),t.drawMonth=t.selectedMonth=a.getMonth(),t.drawYear=t.selectedYear=a.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),n=this._getMinMaxDate(t,"max"),s=i&&e=s.getTime())&&(!o||e.getTime()<=o.getTime())&&(!a||e.getFullYear()>=a)&&(!r||e.getFullYear()<=r)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,n){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var s=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(n,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),s,this._getFormatConfig(t))}}),k.fn.datepicker=function(t,e){if(!this.length)return this;k.datepicker.initialized||(k(document).mousedown(k.datepicker._checkExternalClick),k.datepicker.initialized=!0),0===k("#"+k.datepicker._mainDivId).length&&k("body").append(k.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof t||"isDisabled"!==t&&"getDate"!==t&&"widget"!==t?"option"===t&&2===arguments.length&&"string"==typeof e?k.datepicker["_"+t+"Datepicker"].apply(k.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof t?k.datepicker["_"+t+"Datepicker"].apply(k.datepicker,[this].concat(i)):k.datepicker._attachDatepicker(this,t)}):k.datepicker["_"+t+"Datepicker"].apply(k.datepicker,[this[0]].concat(i))},k.datepicker=new t,k.datepicker.initialized=!1,k.datepicker.uuid=(new Date).getTime(),k.datepicker.version="1.10.3"}(jQuery),function(a){var o={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},r={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0};a.widget("ui.dialog",{version:"1.10.3",options:{appendTo:"body",autoOpen:!0,buttons:[],closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var e=a(this).css(t).offset().top;e<0&&a(this).css("top",t.top-e)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),this.options.title=this.options.title||this.originalTitle,this._createWrapper(),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(this.uiDialog),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&a.fn.draggable&&this._makeDraggable(),this.options.resizable&&a.fn.resizable&&this._makeResizable(),this._isOpen=!1},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?a(t):this.document.find(t||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._destroyOverlay(),this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach(),this.uiDialog.stop(!0,!0).remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(t=e.parent.children().eq(e.index)).length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:a.noop,enable:a.noop,close:function(t){var e=this;this._isOpen&&!1!==this._trigger("beforeClose",t)&&(this._isOpen=!1,this._destroyOverlay(),this.opener.filter(":focusable").focus().length||a(this.document[0].activeElement).blur(),this._hide(this.uiDialog,this.options.hide,function(){e._trigger("close",t)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,e){var i=!!this.uiDialog.nextAll(":visible").insertBefore(this.uiDialog).length;return i&&!e&&this._trigger("focus",t),i},open:function(){var t=this;this._isOpen?this._moveToTop()&&this._focusTabbable():(this._isOpen=!0,this.opener=a(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this._show(this.uiDialog,this.options.show,function(){t._focusTabbable(),t._trigger("focus")}),this._trigger("open"))},_focusTabbable:function(){var t=this.element.find("[autofocus]");t.length||(t=this.element.find(":tabbable")),t.length||(t=this.uiDialogButtonPane.find(":tabbable")),t.length||(t=this.uiDialogTitlebarClose.filter(":tabbable")),t.length||(t=this.uiDialog),t.eq(0).focus()},_keepFocus:function(t){function e(){var t=this.document[0].activeElement;this.uiDialog[0]===t||a.contains(this.uiDialog[0],t)||this._focusTabbable()}t.preventDefault(),e.call(this),this._delay(e)},_createWrapper:function(){this.uiDialog=a("
").addClass("ui-dialog ui-widget ui-widget-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._on(this.uiDialog,{keydown:function(t){if(this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===a.ui.keyCode.ESCAPE)return t.preventDefault(),void this.close(t);if(t.keyCode===a.ui.keyCode.TAB){var e=this.uiDialog.find(":tabbable"),i=e.filter(":first"),n=e.filter(":last");t.target!==n[0]&&t.target!==this.uiDialog[0]||t.shiftKey?t.target!==i[0]&&t.target!==this.uiDialog[0]||!t.shiftKey||(n.focus(1),t.preventDefault()):(i.focus(1),t.preventDefault())}},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=a("
").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog),this._on(this.uiDialogTitlebar,{mousedown:function(t){a(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.focus()}}),this.uiDialogTitlebarClose=a("").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:!1}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),t=a("").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar),this._title(t),this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(t){this.options.title||t.html(" "),t.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=a("
").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),this.uiButtonSet=a("
").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane),this._createButtons()},_createButtons:function(){var s=this,t=this.options.buttons;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),a.isEmptyObject(t)||a.isArray(t)&&!t.length?this.uiDialog.removeClass("ui-dialog-buttons"):(a.each(t,function(t,e){var i,n;e=a.isFunction(e)?{click:e,text:t}:e,e=a.extend({type:"button"},e),i=e.click,e.click=function(){i.apply(s.element[0],arguments)},n={icons:e.icons,text:e.showText},delete e.icons,delete e.showText,a("",e).button(n).appendTo(s.uiButtonSet)}),this.uiDialog.addClass("ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function i(t){return{position:t.position,offset:t.offset}}var n=this,s=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(t,e){a(this).addClass("ui-dialog-dragging"),n._blockFrames(),n._trigger("dragStart",t,i(e))},drag:function(t,e){n._trigger("drag",t,i(e))},stop:function(t,e){s.position=[e.position.left-n.document.scrollLeft(),e.position.top-n.document.scrollTop()],a(this).removeClass("ui-dialog-dragging"),n._unblockFrames(),n._trigger("dragStop",t,i(e))}})},_makeResizable:function(){function i(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}var n=this,s=this.options,t=s.resizable,e=this.uiDialog.css("position"),o="string"==typeof t?t:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:s.maxWidth,maxHeight:s.maxHeight,minWidth:s.minWidth,minHeight:this._minHeight(),handles:o,start:function(t,e){a(this).addClass("ui-dialog-resizing"),n._blockFrames(),n._trigger("resizeStart",t,i(e))},resize:function(t,e){n._trigger("resize",t,i(e))},stop:function(t,e){s.height=a(this).height(),s.width=a(this).width(),a(this).removeClass("ui-dialog-resizing"),n._unblockFrames(),n._trigger("resizeStop",t,i(e))}}).css("position",e)},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(t){var i=this,n=!1,s={};a.each(t,function(t,e){i._setOption(t,e),t in o&&(n=!0),t in r&&(s[t]=e)}),n&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",s)},_setOption:function(t,e){var i,n,s=this.uiDialog;"dialogClass"===t&&s.removeClass(this.options.dialogClass).addClass(e),"disabled"!==t&&(this._super(t,e),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:""+e}),"draggable"===t&&((i=s.is(":data(ui-draggable)"))&&!e&&s.draggable("destroy"),!i&&e&&this._makeDraggable()),"position"===t&&this._position(),"resizable"===t&&((n=s.is(":data(ui-resizable)"))&&!e&&s.resizable("destroy"),n&&"string"==typeof e&&s.resizable("option","handles",e),n||!1===e||this._makeResizable()),"title"===t&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,e,i,n=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),n.minWidth>n.width&&(n.width=n.minWidth),t=this.uiDialog.css({height:"auto",width:n.width}).outerHeight(),e=Math.max(0,n.minHeight-t),i="number"==typeof n.maxHeight?Math.max(0,n.maxHeight-t):"none","auto"===n.height?this.element.css({minHeight:e,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,n.height-t)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var t=a(this);return a("
").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return!!a(t.target).closest(".ui-dialog").length||!!a(t.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var e=this,i=this.widgetFullName;a.ui.dialog.overlayInstances||this._delay(function(){a.ui.dialog.overlayInstances&&this.document.bind("focusin.dialog",function(t){e._allowInteraction(t)||(t.preventDefault(),a(".ui-dialog:visible:last .ui-dialog-content").data(i)._focusTabbable())})}),this.overlay=a("
").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo()),this._on(this.overlay,{mousedown:"_keepFocus"}),a.ui.dialog.overlayInstances++}},_destroyOverlay:function(){this.options.modal&&this.overlay&&(a.ui.dialog.overlayInstances--,a.ui.dialog.overlayInstances||this.document.unbind("focusin.dialog"),this.overlay.remove(),this.overlay=null)}}),a.ui.dialog.overlayInstances=0,!1!==a.uiBackCompat&&a.widget("ui.dialog",a.ui.dialog,{_position:function(){var t,e=this.options.position,i=[],n=[0,0];e?(("string"==typeof e||"object"==typeof e&&"0"in e)&&(1===(i=e.split?e.split(" "):[e[0],e[1]]).length&&(i[1]=i[0]),a.each(["left","top"],function(t,e){+i[t]===i[t]&&(n[t]=i[t],i[t]=e)}),e={my:i[0]+(n[0]<0?n[0]:"+"+n[0])+" "+i[1]+(n[1]<0?n[1]:"+"+n[1]),at:i.join(" ")}),e=a.extend({},a.ui.dialog.prototype.options.position,e)):e=a.ui.dialog.prototype.options.position,(t=this.uiDialog.is(":visible"))||this.uiDialog.show(),this.uiDialog.position(e),t||this.uiDialog.hide()}})}(jQuery),function(m){var g=/up|down|vertical/,v=/up|left|vertical|horizontal/;m.effects.effect.blind=function(t,e){var i,n,s,o=m(this),a=["position","top","bottom","left","right","height","width"],r=m.effects.setMode(o,t.mode||"hide"),l=t.direction||"up",h=g.test(l),c=h?"height":"width",u=h?"top":"left",d=v.test(l),p={},f="show"===r;o.parent().is(".ui-effects-wrapper")?m.effects.save(o.parent(),a):m.effects.save(o,a),o.show(),n=(i=m.effects.createWrapper(o).css({overflow:"hidden"}))[c](),s=parseFloat(i.css(u))||0,p[c]=f?n:0,d||(o.css(h?"bottom":"right",0).css(h?"top":"left","auto").css({position:"absolute"}),p[u]=f?s:n+s),f&&(i.css(c,0),d||i.css(u,s+n)),i.animate(p,{duration:t.duration,easing:t.easing,queue:!1,complete:function(){"hide"===r&&o.hide(),m.effects.restore(o,a),m.effects.removeWrapper(o),e()}})}}(jQuery),function(y){y.effects.effect.bounce=function(t,e){var i,n,s,o=y(this),a=["position","top","bottom","left","right","height","width"],r=y.effects.setMode(o,t.mode||"effect"),l="hide"===r,h="show"===r,c=t.direction||"up",u=t.distance,d=t.times||5,p=2*d+(h||l?1:0),f=t.duration/p,m=t.easing,g="up"===c||"down"===c?"top":"left",v="up"===c||"left"===c,b=o.queue(),_=b.length;for((h||l)&&a.push("opacity"),y.effects.save(o,a),o.show(),y.effects.createWrapper(o),u||(u=o["top"===g?"outerHeight":"outerWidth"]()/3),h&&((s={opacity:1})[g]=0,o.css("opacity",0).css(g,v?2*-u:2*u).animate(s,f,m)),l&&(u/=Math.pow(2,d-1)),i=(s={})[g]=0;i
").css({position:"absolute",visibility:"visible",left:-o*m,top:-s*g}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:m,height:g,left:a+(p?l*m:0),top:r+(p?h*g:0),opacity:p?0:1}).animate({left:a+(p?0:l*m),top:r+(p?0:h*g),opacity:p?1:0},t.duration||500,t.easing,i)}}(jQuery),function(s){s.effects.effect.fade=function(t,e){var i=s(this),n=s.effects.setMode(i,t.mode||"toggle");i.animate({opacity:n},{queue:!1,duration:t.duration,easing:t.easing,complete:e})}}(jQuery),function(v){v.effects.effect.fold=function(t,e){var i,n,s=v(this),o=["position","top","bottom","left","right","height","width"],a=v.effects.setMode(s,t.mode||"hide"),r="show"===a,l="hide"===a,h=t.size||15,c=/([0-9]+)%/.exec(h),u=!!t.horizFirst,d=r!==u,p=d?["width","height"]:["height","width"],f=t.duration/2,m={},g={};v.effects.save(s,o),s.show(),i=v.effects.createWrapper(s).css({overflow:"hidden"}),n=d?[i.width(),i.height()]:[i.height(),i.width()],c&&(h=parseInt(c[1],10)/100*n[l?0:1]),r&&i.css(u?{height:0,width:h}:{height:h,width:0}),m[p[0]]=r?n[0]:h,g[p[1]]=r?n[1]:0,i.animate(m,f,t.easing).animate(g,f,t.easing,function(){l&&s.hide(),v.effects.restore(s,o),v.effects.removeWrapper(s),e()})}}(jQuery),function(a){a.effects.effect.highlight=function(t,e){var i=a(this),n=["backgroundImage","backgroundColor","opacity"],s=a.effects.setMode(i,t.mode||"show"),o={backgroundColor:i.css("backgroundColor")};"hide"===s&&(o.opacity=0),a.effects.save(i,n),i.show().css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(o,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===s&&i.hide(),a.effects.restore(i,n),e()}})}}(jQuery),function(p){p.effects.effect.pulsate=function(t,e){var i,n=p(this),s=p.effects.setMode(n,t.mode||"show"),o="show"===s,a="hide"===s,r=o||"hide"===s,l=2*(t.times||5)+(r?1:0),h=t.duration/l,c=0,u=n.queue(),d=u.length;for(!o&&n.is(":visible")||(n.css("opacity",0).show(),c=1),i=1;i
").appendTo(document.body).addClass(t.className).css({top:c.top-a,left:c.left-r,height:i.innerHeight(),width:i.innerWidth(),position:s?"fixed":"absolute"}).animate(h,t.duration,t.easing,function(){u.remove(),e()})}}(jQuery),function(l){l.widget("ui.menu",{version:"1.10.3",defaultElement:"
    ",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,l.proxy(function(t){this.options.disabled&&t.preventDefault()},this)),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item > a":function(t){t.preventDefault()},"click .ui-state-disabled > a":function(t){t.preventDefault()},"click .ui-menu-item:has(a)":function(t){var e=l(t.target).closest(".ui-menu-item");!this.mouseHandled&&e.not(".ui-state-disabled").length&&(this.mouseHandled=!0,this.select(t),e.has(".ui-menu").length?this.expand(t):this.element.is(":focus")||(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(t){var e=l(t.currentTarget);e.siblings().children(".ui-state-active").removeClass("ui-state-active"),this.focus(t,e)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.children(".ui-menu-item").eq(0);e||this.focus(t,i)},blur:function(t){this._delay(function(){l.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){l(t.target).closest(".ui-menu").length||this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var t=l(this);t.data("ui-menu-submenu-carat")&&t.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(t){function e(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var i,n,s,o,a,r=!0;switch(t.keyCode){case l.ui.keyCode.PAGE_UP:this.previousPage(t);break;case l.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case l.ui.keyCode.HOME:this._move("first","first",t);break;case l.ui.keyCode.END:this._move("last","last",t);break;case l.ui.keyCode.UP:this.previous(t);break;case l.ui.keyCode.DOWN:this.next(t);break;case l.ui.keyCode.LEFT:this.collapse(t);break;case l.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case l.ui.keyCode.ENTER:case l.ui.keyCode.SPACE:this._activate(t);break;case l.ui.keyCode.ESCAPE:this.collapse(t);break;default:r=!1,n=this.previousFilter||"",s=String.fromCharCode(t.keyCode),o=!1,clearTimeout(this.filterTimer),s===n?o=!0:s=n+s,a=new RegExp("^"+e(s),"i"),i=this.activeMenu.children(".ui-menu-item").filter(function(){return a.test(l(this).children("a").text())}),(i=o&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i).length||(s=String.fromCharCode(t.keyCode),a=new RegExp("^"+e(s),"i"),i=this.activeMenu.children(".ui-menu-item").filter(function(){return a.test(l(this).children("a").text())})),i.length?(this.focus(t,i),1").addClass("ui-menu-icon ui-icon "+n).data("ui-menu-submenu-carat",!0);e.attr("aria-haspopup","true").prepend(i),t.attr("aria-labelledby", e.attr("id"))}),(t=e.add(this.element)).children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()}),t.children(":not(.ui-menu-item)").each(function(){var t=l(this);/[^\-\u2014\u2013\s]/.test(t.text())||t.addClass("ui-widget-content ui-menu-divider")}),t.children(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!l.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){"icons"===t&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(e.submenu),this._super(t,e)},focus:function(t,e){var i,n;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),n=this.active.children("a").addClass("ui-state-focus"),this.options.role&&this.element.attr("aria-activedescendant",n.attr("id")),this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=e.children(".ui-menu")).length&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(t){var e,i,n,s,o,a;this._hasScroll()&&(e=parseFloat(l.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(l.css(this.activeMenu[0],"paddingTop"))||0,n=t.offset().top-this.activeMenu.offset().top-e-i,s=this.activeMenu.scrollTop(),o=this.activeMenu.height(),a=t.height(),n<0?this.activeMenu.scrollTop(s+n):o
"),n=i.children()[0];return x("body").append(i),t=n.offsetWidth,i.css("overflow","scroll"),t===(e=n.offsetWidth)&&(e=i[0].clientWidth),i.remove(),o=t-e},getScrollInfo:function(t){var e=t.isWindow?"":t.element.css("overflow-x"),i=t.isWindow?"":t.element.css("overflow-y"),n="scroll"===e||"auto"===e&&t.widthD(T(n),T(s))?o.important="horizontal":o.important="vertical",u.using.call(this,t,o)}),a.offset(x.extend(h,{using:t}))})},x.ui.position={fit:{left:function(t,e){var i,n=e.within,s=n.isWindow?n.scrollLeft:n.offset.left,o=n.width,a=t.left-e.collisionPosition.marginLeft,r=s-a,l=a+e.collisionWidth-o-s;e.collisionWidth>o?0o?0h&&(n<0||nc&&(0
").appendTo(this.element),this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove()},value:function(t){if(t===e)return this.options.value;this.options.value=this._constrainedValue(t),this._refreshValue()},_constrainedValue:function(t){return t===e&&(t=this.options.value),this.indeterminate=!1===t,"number"!=typeof t&&(t=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){"max"===t&&(e=Math.max(this.min,e)),this._super(t,e)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var t=this.options.value,e=this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).toggleClass("ui-corner-right",t===this.options.max).width(e.toFixed(0)+"%"),this.element.toggleClass("ui-progressbar-indeterminate",this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=i("
").appendTo(this.valueDiv))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":t}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==t&&(this.oldValue=t,this._trigger("change")),t===this.options.max&&this._trigger("complete")}})}(jQuery),function(c){var o=5;c.widget("ui.slider",c.ui.mouse,{version:"1.10.3",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var t,e,i=this.options,n=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),s="",o=[];for(e=i.values&&i.values.length||1,n.length>e&&(n.slice(e).remove(),n=n.slice(0,e)),t=n.length;t
").appendTo(this.element),e="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(e+("min"===t.range||"max"===t.range?" ui-slider-range-"+t.range:""))):this.range=c([])},_setupEvents:function(){var t=this.handles.add(this.range).filter("a");this._off(t),this._on(t,this._handleEvents),this._hoverable(t),this._focusable(t)},_destroy:function(){this.handles.remove(),this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(t){var e,i,n,s,o,a,r,l=this,h=this.options;return!h.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e),n=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var e=Math.abs(i-l.values(t));(e=this._valueMax())return this._valueMax();var e=0=e&&(n+=0",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var n={},s=this.element;return o.each(["min","max","step"],function(t,e){var i=s.attr(e);i!==undefined&&i.length&&(n[e]=i)}),n},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){this.cancelBlur?delete this.cancelBlur:(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",t))},mousewheel:function(t,e){if(e){if(!this.spinning&&!this._start(t))return!1;this._spin((0Math.ceil(.5*t.height())&&0"},_buttonHtml:function(){return""},_start:function(t){return!(!this.spinning&&!1===this._trigger("start",t))&&(this.counter||(this.counter=1),this.spinning=!0)},_repeat:function(t,e,i){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,i)},t),this._spin(e*this.options.step,i)},_spin:function(t,e){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+t*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",e,{value:i})||(this._value(i),this.counter++)},_increment:function(t){var e=this.options.incremental;return e?o.isFunction(e)?e(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=t.toString(),i=e.indexOf(".");return-1===i?0:e.length-i-1},_adjustValue:function(t){var e,i,n=this.options;return i=t-(e=null!==n.min?n.min:0),t=e+(i=Math.round(i/n.step)*n.step),t=parseFloat(t.toFixed(this._precision())),null!==n.max&&t>n.max?n.max:null!==n.min&&t li","mousedown"+this.eventNamespace,function(t){h(this).is(".ui-state-disabled")&&t.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){h(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this._processTabs(),t.active=this._initialActive(),h.isArray(t.disabled)&&(t.disabled=h.unique(t.disabled.concat(h.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),!1!==this.options.active&&this.anchors.length?this.active=this._findActive(t.active):this.active=h(),this._refresh(),this.active.length&&this.load(t.active)},_initialActive:function(){var i=this.options.active,t=this.options.collapsible,n=location.hash.substring(1);return null===i&&(n&&this.tabs.each(function(t,e){if(h(e).attr("aria-controls")===n)return i=t,!1}),null===i&&(i=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),null!==i&&-1!==i||(i=!!this.tabs.length&&0)),!1!==i&&-1===(i=this.tabs.index(this.tabs.eq(i)))&&(i=!t&&0),!t&&!1===i&&this.anchors.length&&(i=0),i},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):h()}},_tabKeydown:function(t){var e=h(this.document[0].activeElement).closest("li"),i=this.tabs.index(e),n=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case h.ui.keyCode.RIGHT:case h.ui.keyCode.DOWN:i++;break;case h.ui.keyCode.UP:case h.ui.keyCode.LEFT:n=!1,i--;break;case h.ui.keyCode.END:i=this.anchors.length-1;break;case h.ui.keyCode.HOME:i=0;break;case h.ui.keyCode.SPACE:return t.preventDefault(),clearTimeout(this.activating),void this._activate(i);case h.ui.keyCode.ENTER:return t.preventDefault(),clearTimeout(this.activating),void this._activate(i!==this.options.active&&i);default:return}t.preventDefault(),clearTimeout(this.activating),i=this._focusNextTab(i,n),t.ctrlKey||(e.attr("aria-selected","false"),this.tabs.eq(i).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",i)},this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===h.ui.keyCode.UP&&(t.preventDefault(),this.active.focus())},_handlePageNav:function(t){return t.altKey&&t.keyCode===h.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===h.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,e){function i(){return n?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,e=this.tablist.children(":has(a[href])");t.disabled=h.map(e.filter(".ui-state-disabled"),function(t){return e.index(t)}),this._processTabs(),!1!==t.active&&this.anchors.length?this.active.length&&!h.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=h()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=h()),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-expanded":"false","aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-expanded":"true","aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var l=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist"),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return h("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=h(),this.anchors.each(function(t,e){var i,n,s,o=h(e).uniqueId().attr("id"),a=h(e).closest("li"),r=a.attr("aria-controls");c(e)?(i=e.hash,n=l.element.find(l._sanitizeSelector(i))):(i="#"+(s=l._tabId(a)),(n=l.element.find(i)).length||(n=l._createPanel(s)).insertAfter(l.panels[t-1]||l.tablist),n.attr("aria-live","polite")),n.length&&(l.panels=l.panels.add(n)),r&&a.data("ui-tabs-aria-controls",r),a.attr({"aria-controls":i.substring(1),"aria-labelledby":o}),n.attr("aria-labelledby",o)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.element.find("ol,ul").eq(0)},_createPanel:function(t){return h("
").attr("id",t).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(t){h.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1);for(var e,i=0;e=this.tabs[i];i++)!0===t||-1!==h.inArray(i,t)?h(e).addClass("ui-state-disabled").attr("aria-disabled","true"):h(e).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=t},_setupEvents:function(t){var i={click:function(t){t.preventDefault()}};t&&h.each(t.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var i,e=this.element.parent();"fill"===t?(i=e.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=h(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(i-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=h(this).outerHeight(!0)}),this.panels.each(function(){h(this).height(Math.max(0,i-h(this).innerHeight()+h(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.panels.each(function(){i=Math.max(i,h(this).height("").height())}).height(i))},_eventHandler:function(t){var e=this.options,i=this.active,n=h(t.currentTarget).closest("li"),s=n[0]===i[0],o=s&&e.collapsible,a=o?h():this._getPanelForTab(n),r=i.length?this._getPanelForTab(i):h(),l={oldTab:i,oldPanel:r,newTab:o?h():n,newPanel:a};t.preventDefault(),n.hasClass("ui-state-disabled")||n.hasClass("ui-tabs-loading")||this.running||s&&!e.collapsible||!1===this._trigger("beforeActivate",t,l)||(e.active=!o&&this.tabs.index(n),this.active=s?h():n,this.xhr&&this.xhr.abort(),r.length||a.length||h.error("jQuery UI Tabs: Mismatching fragment identifier."),a.length&&this.load(this.tabs.index(n),t),this._toggle(t,l))},_toggle:function(t,e){function i(){s.running=!1,s._trigger("activate",t,e)}function n(){e.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),o.length&&s.options.show?s._show(o,s.options.show,i):(o.show(),i())}var s=this,o=e.newPanel,a=e.oldPanel;this.running=!0,a.length&&this.options.hide?this._hide(a,this.options.hide,function(){e.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),n()}):(e.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),a.hide(),n()),a.attr({"aria-expanded":"false","aria-hidden":"true"}),e.oldTab.attr("aria-selected","false"),o.length&&a.length?e.oldTab.attr("tabIndex",-1):o.length&&this.tabs.filter(function(){return 0===h(this).attr("tabIndex")}).attr("tabIndex",-1),o.attr({"aria-expanded":"true","aria-hidden":"false"}),e.newTab.attr({"aria-selected":"true",tabIndex:0})},_activate:function(t){var e,i=this._findActive(t);i[0]!==this.active[0]&&(i.length||(i=this.active),e=i.find(".ui-tabs-anchor")[0],this._eventHandler({target:e,currentTarget:e,preventDefault:h.noop}))},_findActive:function(t){return!1===t?h():this.tabs.eq(t)},_getIndex:function(t){return"string"==typeof t&&(t=this.anchors.index(this.anchors.filter("[href$='"+t+"']"))),t},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){h.data(this,"ui-tabs-destroy")?h(this).remove():h(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),this.tabs.each(function(){var t=h(this),e=t.data("ui-tabs-aria-controls");e?t.attr("aria-controls",e).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(i){var t=this.options.disabled;!1!==t&&(i===n?t=!1:(i=this._getIndex(i),t=h.isArray(t)?h.map(t,function(t){return t!==i?t:null}):h.map(this.tabs,function(t,e){return e!==i?e:null})),this._setupDisabled(t))},disable:function(t){var e=this.options.disabled;if(!0!==e){if(t===n)e=!0;else{if(t=this._getIndex(t),-1!==h.inArray(t,e))return;e=h.isArray(e)?h.merge([t],e).sort():[t]}this._setupDisabled(e)}},load:function(t,e){t=this._getIndex(t);var i=this,n=this.tabs.eq(t),s=n.find(".ui-tabs-anchor"),o=this._getPanelForTab(n),a={tab:n,panel:o};c(s[0])||(this.xhr=h.ajax(this._ajaxSettings(s,e,a)),this.xhr&&"canceled"!==this.xhr.statusText&&(n.addClass("ui-tabs-loading"),o.attr("aria-busy","true"),this.xhr.success(function(t){setTimeout(function(){o.html(t),i._trigger("load",e,a)},1)}).complete(function(t,e){setTimeout(function(){"abort"===e&&i.panels.stop(!1,!0),n.removeClass("ui-tabs-loading"),o.removeAttr("aria-busy"),t===i.xhr&&delete i.xhr},1)})))},_ajaxSettings:function(t,i,n){var s=this;return{url:t.attr("href"),beforeSend:function(t,e){return s._trigger("beforeLoad",i,h.extend({jqXHR:t,ajaxSettings:e},n))}}},_getPanelForTab:function(t){var e=h(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+e))}})}(jQuery),function(l){function h(t,e){var i=(t.attr("aria-describedby")||"").split(/\s+/);i.push(e),t.data("ui-tooltip-id",e).attr("aria-describedby",l.trim(i.join(" ")))}function s(t){var e=t.data("ui-tooltip-id"),i=(t.attr("aria-describedby")||"").split(/\s+/),n=l.inArray(e,i);-1!==n&&i.splice(n,1),t.removeData("ui-tooltip-id"),(i=l.trim(i.join(" ")))?t.attr("aria-describedby",i):t.removeAttr("aria-describedby")}var n=0;l.widget("ui.tooltip",{version:"1.10.3",options:{content:function(){var t=l(this).attr("title")||"";return l("").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable()},_setOption:function(t,e){var i=this;if("disabled"===t)return this[e?"_disable":"_enable"](),void(this.options[t]=e);this._super(t,e),"content"===t&&l.each(this.tooltips,function(t,e){i._updateContent(e)})},_disable:function(){var n=this;l.each(this.tooltips,function(t,e){var i=l.Event("blur");i.target=i.currentTarget=e[0],n.close(i,!0)}),this.element.find(this.options.items).addBack().each(function(){var t=l(this);t.is("[title]")&&t.data("ui-tooltip-title",t.attr("title")).attr("title","")})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var t=l(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))})},open:function(t){var i=this,e=l(t?t.target:this.element).closest(this.options.items);e.length&&!e.data("ui-tooltip-id")&&(e.attr("title")&&e.data("ui-tooltip-title",e.attr("title")),e.data("ui-tooltip-open",!0),t&&"mouseover"===t.type&&e.parents().each(function(){var t,e=l(this);e.data("ui-tooltip-open")&&((t=l.Event("blur")).target=t.currentTarget=this,i.close(t,!0)),e.attr("title")&&(e.uniqueId(),i.parents[this.id]={element:this,title:e.attr("title")},e.attr("title",""))}),this._updateContent(e,t))},_updateContent:function(e,i){var t,n=this.options.content,s=this,o=i?i.type:null;if("string"==typeof n)return this._open(i,e,n);(t=n.call(e[0],function(t){e.data("ui-tooltip-open")&&s._delay(function(){i&&(i.type=o),this._open(i,e,t)})}))&&this._open(i,e,t)},_open:function(t,i,e){function n(t){r.of=t,s.is(":hidden")||s.position(r)}var s,o,a,r=l.extend({},this.options.position);e&&((s=this._find(i)).length?s.find(".ui-tooltip-content").html(e):(i.is("[title]")&&(t&&"mouseover"===t.type?i.attr("title",""):i.removeAttr("title")),s=this._tooltip(i),h(i,s.attr("id")),s.find(".ui-tooltip-content").html(e),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:n}),n(t)):s.position(l.extend({of:i},this.options.position)),s.hide(),this._show(s,this.options.show),this.options.show&&this.options.show.delay&&(a=this.delayedShow=setInterval(function(){s.is(":visible")&&(n(r.of),clearInterval(a))},l.fx.interval)),this._trigger("open",t,{tooltip:s}),o={keyup:function(t){if(t.keyCode===l.ui.keyCode.ESCAPE){var e=l.Event(t);e.currentTarget=i[0],this.close(e,!0)}},remove:function(){this._removeTooltip(s)}},t&&"mouseover"!==t.type||(o.mouseleave="close"),t&&"focusin"!==t.type||(o.focusout="close"),this._on(!0,i,o)))},close:function(t){var i=this,e=l(t?t.currentTarget:this.element),n=this._find(e);this.closing||(clearInterval(this.delayedShow),e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title")),s(e),n.stop(!0),this._hide(n,this.options.hide,function(){i._removeTooltip(l(this))}),e.removeData("ui-tooltip-open"),this._off(e,"mouseleave focusout keyup"),e[0]!==this.element[0]&&this._off(e,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&l.each(this.parents,function(t,e){l(e.element).attr("title",e.title),delete i.parents[t]}),this.closing=!0,this._trigger("close",t,{tooltip:n}),this.closing=!1)},_tooltip:function(t){var e="ui-tooltip-"+n++,i=l("
").attr({id:e,role:"tooltip"}).addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||""));return l("
").addClass("ui-tooltip-content").appendTo(i),i.appendTo(this.document[0].body),this.tooltips[e]=t,i},_find:function(t){var e=t.data("ui-tooltip-id");return e?l("#"+e):l()},_removeTooltip:function(t){t.remove(),delete this.tooltips[t.attr("id")]},_destroy:function(){var n=this;l.each(this.tooltips,function(t,e){var i=l.Event("blur");i.target=i.currentTarget=e[0],n.close(i,!0),l("#"+t).remove(),e.data("ui-tooltip-title")&&(e.attr("title",e.data("ui-tooltip-title")),e.removeData("ui-tooltip-title"))})}})}(jQuery),window.Modernizr=function(a,c,r){function n(t){_.cssText=t}function t(t,e){return n(k.join(t+";")+(e||""))}function o(t,e){return typeof t===e}function s(t,e){return!!~(""+t).indexOf(e)}function l(t,e){for(var i in t)if(_[t[i]]!==r)return"pfx"!=e||t[i];return!1}function h(t,e,i){for(var n in t){var s=e[t[n]];if(s!==r)return!1===i?t[n]:o(s,"function")?s.bind(i||e):s}return!1}function e(t,e,i){var n=t.charAt(0).toUpperCase()+t.substr(1),s=(t+" "+D.join(n+" ")+n).split(" ");return o(e,"string")||o(e,"undefined")?l(s,e):h(s=(t+" "+T.join(n+" ")+n).split(" "),e,i)}function i(){f.input=function(t){for(var e=0,i=t.length;e",t,""].join(""),r.id=v,h.innerHTML+=s,h.appendChild(r),l||(h.style.background="",g.appendChild(h)),o=e(r,t),l?r.parentNode.removeChild(r):h.parentNode.removeChild(h),!!o},$=function(){function t(t,e){e=e||c.createElement(n[t]||"div");var i=(t="on"+t)in e;return i||(e.setAttribute||(e=c.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(t,""),i=o(e[t],"function"),o(e[t],"undefined")||(e[t]=r),e.removeAttribute(t))),e=null,i}var n={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return t}(),z={}.hasOwnProperty;d=o(z,"undefined")||o(z.call,"undefined")?function(t,e){return e in t&&o(t.constructor.prototype[e],"undefined")}:function(t,e){return z.call(t,e)},Function.prototype.bind||(Function.prototype.bind=function(n){var s=this;if("function"!=typeof s)throw new TypeError;var o=M.call(arguments,1),a=function(){if(this instanceof a){var t=function(){};t.prototype=s.prototype;var e=new t,i=s.apply(e,o.concat(M.call(arguments)));return Object(i)===i?i:e}return s.apply(n,o.concat(M.call(arguments)))};return a});var H,j,W;H=["fontface","touch","csstransforms3d","generatedcontent"],j=['@font-face {font-family:"font";src:url("https://")}',["@media (",k.join("touch-enabled),("),v,")","{#touch{top:9px;position:absolute}}"].join(""),["@media (",k.join("transform-3d),("),v,")","{#csstransforms3d{left:9px;position:absolute;height:3px;}}"].join(""),['#generatedcontent:after{content:"',w,'";visibility:hidden}'].join("")].join(""),W=H.length,A(j,function(t,e){for(var i=c.styleSheets[c.styleSheets.length-1],n=i?i.cssRules&&i.cssRules[0]?i.cssRules[0].cssText:i.cssText||"":"",s=t.childNodes,o={};W--;)o[s[W].id]=s[W];f.touch="ontouchstart"in a||a.DocumentTouch&&c instanceof DocumentTouch||9===(o.touch&&o.touch.offsetTop),f.csstransforms3d=9===(o.csstransforms3d&&o.csstransforms3d.offsetLeft)&&3===o.csstransforms3d.offsetHeight,f.generatedcontent=1<=(o.generatedcontent&&o.generatedcontent.offsetHeight),f.fontface=/src/i.test(n)&&0===n.indexOf(e.split(" ")[0])},W,H);for(var O in N.flexbox=function(){return e("flexOrder")},N.canvas=function(){var t=c.createElement("canvas");return!!t.getContext&&!!t.getContext("2d")},N.canvastext=function(){return!!f.canvas&&!!o(c.createElement("canvas").getContext("2d").fillText,"function")},N.webgl=function(){try{var t,e=c.createElement("canvas");t=!(!a.WebGLRenderingContext||!e.getContext("experimental-webgl")&&!e.getContext("webgl")),e=r}catch(m){t=!1}return t},N.touch=function(){return f.touch},N.geolocation=function(){return!!navigator.geolocation},N.postmessage=function(){return!!a.postMessage},N.websqldatabase=function(){return!!a.openDatabase},N.indexedDB=function(){return!!e("indexedDB",a)},N.hashchange=function(){return $("hashchange",a)&&(c.documentMode===r||7",n.insertBefore(i.lastChild,n.firstChild)}function a(){var t=g.elements;return"string"==typeof t?t.split(" "):t}function i(t){var i={},n=t.createElement,s=(0,t.createDocumentFragment)();t.createElement=function(t){var e=(i[t]||(i[t]=n(t))).cloneNode();return g.shivMethods&&e.canHaveChildren&&!m.test(t)?s.appendChild(e):e},t.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+a().join().replace(/\w+/g,function(t){return i[t]=n(t),s.createElement(t),'c("'+t+'")'})+");return n}")(g,s)}function n(t){var e;return t.documentShived||(g.shivCSS&&!l&&(e=!!c(t,"article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio{display:none}canvas,video{display:inline-block;*display:inline;*zoom:1}[hidden]{display:none}audio[controls]{display:inline-block;*display:inline;*zoom:1}mark{background:#FF0;color:#000}")),h||(e=!i(t)),e&&(t.documentShived=e)),t}function u(t){for(var e,i=t.getElementsByTagName("*"),n=i.length,s=RegExp("^(?:"+a().join("|")+")$","i"),o=[];n--;)e=i[n],s.test(e.nodeName)&&o.push(e.applyElement(r(e)));return o}function r(t){for(var e,i=t.attributes,n=i.length,s=t.ownerDocument.createElement(_+":"+t.nodeName);n--;)(e=i[n]).specified&&s.setAttribute(e.nodeName,e.nodeValue);return s.style.cssText=t.style.cssText,s}function d(t){for(var e,i=t.split("{"),n=i.length,s=RegExp("(^|[\\s,>+~])("+a().join("|")+")(?=[[\\s,>+~#.:]|$)","gi"),o="$1"+_+"\\:$2";n--;)(e=i[n]=i[n].split("}"))[e.length-1]=e[e.length-1].replace(s,o),i[n]=e.join("}");return i.join("{")}function s(t){for(var e=t.length;e--;)t[e].removeNode()}function o(r){var l,h,t=r.namespaces,e=r.parentWindow;return!y||r.printShived||("undefined"==typeof t[_]&&t.add(_),e.attachEvent("onbeforeprint",function(){for(var t,e,i,n=r.styleSheets,s=[],o=n.length,a=Array(o);o--;)a[o]=n[o];for(;i=a.pop();)if(!i.disabled&&b.test(i.media)){for(o=0,e=(t=i.imports).length;o",l="hidden"in p,h=1==p.childNodes.length||function(){try{e.createElement("a")}catch(p){return!0}var t=e.createDocumentFragment();return"undefined"==typeof t.cloneNode||"undefined"==typeof t.createDocumentFragment||"undefined"==typeof t.createElement}();var g={elements:f.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:!1!==f.shivCSS,shivMethods:!1!==f.shivMethods,type:"default",shivDocument:n};t.html5=g,n(e);var v,b=/^$|\b(?:all|print)\b/,_="html5shiv",y=!h&&(v=e.documentElement,"undefined"!=typeof e.namespaces&&"undefined"!=typeof e.parentWindow&&"undefined"!=typeof v.applyElement&&"undefined"!=typeof v.removeNode&&"undefined"!=typeof t.attachEvent);g.type+=" print",(g.shivPrint=o)(e)}(this,document),function(t,d,l){function u(t){return"[object Function]"==s.call(t)}function p(t){return"string"==typeof t}function f(){}function m(t){return!t||"loaded"==t||"complete"==t||"uninitialized"==t}function g(){var t=y.shift();w=1,t?t.t?b(function(){("c"==t.t?v.injectCss:v.injectJs)(t.s,0,t.a,t.x,t.e,1)},0):(t(),g()):w=0}function o(i,n,t,e,s,o,a){function r(t){if(!h&&m(l.readyState)&&(u.r=h=1,!w&&g(),l.onload=l.onreadystatechange=null,t))for(var e in"img"!=i&&b(function(){k.removeChild(l)},50),T[n])T[n].hasOwnProperty(e)&&T[n][e].onload()}a=a||v.errorTimeout;var l={},h=0,c=0,u={t:t,s:n,e:s,a:o,x:a};1===T[n]&&(c=1,T[n]=[],l=d.createElement(i)),"object"==i?l.data=n:(l.src=n,l.type=i),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){r.call(this,c)},y.splice(e,0,u),"img"!=i&&(c||2===T[n]?(k.insertBefore(l,x?null:_),b(r,a)):T[n].push(l))}function e(t,e,i,n,s){return w=0,e=e||"j",p(t)?o("c"==e?c:r,t,e,this.i++,i,n,s):(y.splice(this.i++,0,t),1==y.length&&g()),this}function h(){var t=v;return t.loader={load:e,i:0},t}var i,v,n=d.documentElement,b=t.setTimeout,_=d.getElementsByTagName("script")[0],s={}.toString,y=[],w=0,a="MozAppearance"in n.style,x=a&&!!d.createRange().compareNode,k=x?n:_.parentNode,r=(n=t.opera&&"[object Opera]"==s.call(t.opera),n=!!d.attachEvent&&!n,a?"object":n?"script":"img"),c=n?"script":r,C=Array.isArray||function(t){return"[object Array]"==s.call(t)},D=[],T={},S={timeout:function(t,e){return e.length&&(t.timeout=e[0]),t}};(v=function(t){function r(t){t=t.split("!");var e,i,n,s=D.length,o=t.pop(),a=t.length;o={url:o,origUrl:o,prefixes:t};for(i=0;i')[0])},shim:function(t){var e={color:"#888",cls:"placeholder",lr_padding:4,selector:"input[placeholder], textarea[placeholder]"};s.extend(e,t),!this.browser_supported()&&s(e.selector)._placeholder_shim(e)}}}),s.extend(s.fn,{_placeholder_shim:function(n){function i(t){var e=s(t).offsetParent().offset(),i=s(t).offset();return{top:i.top-e.top+(s(t).outerHeight()-s(t).height())/2,left:i.left-e.left+n.lr_padding,width:s(t).width()-n.lr_padding}}return this.each(function(){if(s(this).data("placeholder"))return s(this).data("placeholder").css(i(s(this))),!0;var t={};"auto"!=s(this).css("height")&&(t={lineHeight:s(this).css("height")});var e=s("
")),this.container=this.container.parent()):this.container.hasClass("jcarousel-container")||(this.container=this.list.wrap("
").parent())):(this.container=_(t),this.list=this.container.find(this.options.listTag).eq(0)),""!=i&&-1==this.container.parent()[0].className.indexOf("jcarousel-skin")&&this.container.wrap('
'),this.clip=this.list.parent(),this.clip.length&&this.clip.hasClass("jcarousel-clip")||(this.clip=this.list.wrap("
").parent()),this.buttonNext=_(".jcarousel-next",this.container),0==this.buttonNext.size()&&null!=this.options.buttonNextHTML&&(this.buttonNext=this.clip.after(this.options.buttonNextHTML).next()),this.buttonNext.addClass(this.className("jcarousel-next")),this.buttonPrev=_(".jcarousel-prev",this.container),0==this.buttonPrev.size()&&null!=this.options.buttonPrevHTML&&(this.buttonPrev=this.clip.before(this.options.buttonPrevHTML).prev()),this.buttonPrev.addClass(this.className("jcarousel-prev")),this.clip.addClass(this.className("jcarousel-clip")).css({overflow:"hidden",position:"relative"}),this.list.addClass(this.className("jcarousel-list")).css({overflow:"hidden",position:"relative",top:0,left:0,margin:0,padding:0}),this.container.addClass(this.className("jcarousel-container")).css({position:"relative"});var o=null!=this.options.visible?Math.ceil(this.clipping()/this.options.visible):null,a=this.list.children(this.options.itemTag),r=this;if(0this.options.size&&(e=this.options.size);for(var i=t;i<=e;i++){var n=this.get(i);if(!n.length||n.hasClass("jcarousel-item-placeholder"))return!1}return!0},get:function(t){return _(".jcarousel-item-"+t,this.list)},add:function(t,e){var i=0;if(0==(s=this.get(t)).length){for(var n,s=this.create(t),o=y.intval(t);n=this.get(--o);)if(o<=0||n.length){o<=0?this.list.prepend(s):n.after(s);break}}else i=this.dimension(s);s.removeClass(this.className("jcarousel-item-placeholder")),"string"==typeof e?s.html(e):s.empty().append(e);var a=null!=this.options.visible?Math.ceil(this.clipping()/this.options.visible):null,r=this.dimension(s,a)-i;return 0=this.first&&t<=this.last)){var i=this.dimension(e);tthis.options.size?this.options.size:t);for(var i,n=this.first>t,s="circular"!=this.options.wrap&&this.first<=1?1:this.first,o=n?this.get(s):this.get(this.last),a=n?s:s-1,r=null,l=0,h=!1,c=0;n?--a>=t:++athis.options.size)&&(i=this.get(this.index(a))).length&&this.add(a,i.children().clone(!0))),o=r,c=this.dimension(r),h&&(l+=c),null!=this.first&&("circular"==this.options.wrap||1<=a&&(null==this.options.size||a<=this.options.size))&&(e=n?e+c:e-c);var u=this.clipping(),d=[],p=0,f=(a=t,0);for(o=this.get(t-1);++p;){if(h=!(r=this.get(a)).length,0==r.length&&(r=this.create(a).addClass(this.className("jcarousel-item-placeholder")),0==o.length?this.list.prepend(r):o[n?"before":"after"](r),null!=this.first&&"circular"==this.options.wrap&&null!==this.options.size&&(a<=0||a>this.options.size)&&(i=this.get(this.index(a))).length&&this.add(a,i.find(">*").clone(!0))),o=r,0==(c=this.dimension(r)))return console&&_.isFunction(console.log)&&console.log("jCarousel: No width/height set for items. This will cause an infinite loop. Aborting..."),0;if("circular"!=this.options.wrap&&null!==this.options.size&&a>this.options.size?d.push(r):h&&(l+=c),u<=(f+=c))break;a++}for(var m=0;mthis.options.size&&(g=this.options.size),gv;)e+=this.dimension(this.get(t));return this.prevFirst=this.first,this.prevLast=this.last,this.first=v,this.last=g,e},animate:function(t,e){if(!this.locked&&!this.animating){this.animating=!0;var i=this,n=function(){i.animating=!1,0==t&&i.list.css(i.lt,0),("circular"==i.options.wrap||"both"==i.options.wrap||"last"==i.options.wrap||null==i.options.size||i.last=this.options.size)||(t=null!=this.tail&&!this.inTail)}if(e==undefined||null==e){e=!this.locked&&0!==this.options.size&&(this.options.wrap&&"last"!=this.options.wrap||1",t)},format:function(t,e){var i=_(t).addClass(this.className("jcarousel-item")).addClass(this.className("jcarousel-item-"+e)).css({"float":"left","list-style":"none"});return i.attr("jcarouselindex",e),i},className:function(t){return t+" "+t+(this.options.vertical?"-vertical":"-horizontal")},dimension:function(t,e){var i=t.jquery!=undefined?t[0]:t,n=this.options.vertical?i.offsetHeight+y.margin(i,"marginTop")+y.margin(i,"marginBottom"):i.offsetWidth+y.margin(i,"marginLeft")+y.margin(i,"marginRight");if(e==undefined||n==e)return n;var s=this.options.vertical?e-y.margin(i,"marginTop")-y.margin(i,"marginBottom"):e-y.margin(i,"marginLeft")-y.margin(i,"marginRight");return _(i).css(this.wh,s+"px"),this.dimension(i)},clipping:function(){if(null!=this.clip[0])return this.options.vertical?this.clip[0].offsetHeight-y.intval(this.clip.css("borderTopWidth"))-y.intval(this.clip.css("borderBottomWidth")):this.clip[0].offsetWidth-y.intval(this.clip.css("borderLeftWidth"))-y.intval(this.clip.css("borderRightWidth"))},index:function(t,e){return e==undefined&&(e=this.options.size),Math.round(((t-1)/e-Math.floor((t-1)/e))*e)+1}}),y.extend({defaults:function(t){return _.extend(h,t||{})},margin:function(t,e){if(!t)return 0;var i=t.jquery!=undefined?t[0]:t;if("marginRight"==e&&_.browser.safari){var n,s,o={display:"block","float":"none",width:"auto"};return _.swap(i,o,function(){n=i.offsetWidth}),o.marginRight=0,_.swap(i,o,function(){s=i.offsetWidth}),s-n}return y.intval(_.css(i,e))},intval:function(t){return t=parseInt(t),isNaN(t)?0:t}})}(jQuery),function(t,e){"use strict";var i,n;t.uaMatch=function(t){t=t.toLowerCase();var e=/(chrome)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[],i=/(ipad)/.exec(t)||/(iphone)/.exec(t)||/(android)/.exec(t)||[];return{browser:e[1]||"",version:e[2]||"0",platform:i[0]||""}},n={},(i=t.uaMatch(e.navigator.userAgent)).browser&&(n[i.browser]=!0,n.version=i.version),i.platform&&(n[i.platform]=!0),n.chrome?n.webkit=!0:n.webkit&&(n.safari=!0),t.browser=n}(jQuery,window),"undefined"==typeof custom_wymeditor_boot_options&&(custom_wymeditor_boot_options={}),$(document).ready(function(){$("form input[type=text]:first").focus(),init_flash_messages()}),init_flash_messages=function(){$("#flash").css({opacity:0,visibility:"visible"}).animate({opacity:"1"},550),$("#flash_close").on("click",function(t){try{$("#flash").animate({opacity:0,visibility:"hidden"},330,function(){$("#flash").hide()})}catch(e){$("#flash").hide()}t.preventDefault()}),$("#flash.flash_message").prependTo("#records")},$(function(){$logo=$("#site_bar_content #site_bar_refinery_cms_logo"),$logo.css("left",$("#site_bar_content").width()/2-$logo.width()/2),$switch_anchor=$("#editor_switch a").not(".ie7 #editor_switch a, .ie6 #editor_switch a"),$("#editor_switch a").appendTo($("").prependTo("#editor_switch"))});var shiftHeld=!1,initialLoad=!0;init_refinery_admin=function(){init_interface(),init_sortable_menu(),init_submit_continue(),init_modal_dialogs(),init_tooltips(),init_ajaxy_pagination()},$(document).ready(init_refinery_admin),"object"==typeof window.onpopstate&&$(window).bind("popstate",function(){initialLoad||$(document).paginateTo(location.pathname+location.href.split(location.pathname)[1]),initialLoad=!1}),$.fn.paginateTo=function(t){$.ajax({url:t,cache:!1,success:function(t){$(".pagination_container").slideTo(t),$(".pagination_container .pagination a").each(function(){$(this).attr("href",$(this).attr("href").replace(/\?\_\=[^&]+&/,"?"))})},error:function(){window.location=popstate_location}})},$.fn.slideTo=function(t){return $(this).html(t),$(this).applyMinimumHeightFromChildren(),$(this).find(".pagination_frame").removeClass("frame_right").addClass("frame_center"),init_modal_dialogs(),init_tooltips(),$(this)},$.fn.applyMinimumHeightFromChildren=function(){return child_heights=0,$(this).children().each(function(t,i){child_heights+=$(i).height(),$.each(["marginTop","marginBottom","paddingTop","paddingBottom"],function(t,e){child_heights+=parseInt($(i).css(e))||0})}),$(this).css("min-height",child_heights),$(this)},init_modal_dialogs=function(){$('a[href*="dialog=true"]').not("#dialog_container a").each(function(t,e){$(e).data({"dialog-width":parseInt($($(e).attr("href").match("width=([0-9]*)")).last().get(0),10)||928,"dialog-height":parseInt($($(e).attr("href").match("height=([0-9]*)")).last().get(0),10)||473,"dialog-title":$(e).attr("title")||$(e).attr("name")||$(e).html()||null}).attr("href",$(e).attr("href").replace(/(&(amp;)?|\?)(dialog=true|(width|height)=\d+)/g,"").replace(/(\/[^&\?]*)&(amp;)?/,"$1?")).click(function(t){$anchor=$(this),iframe_src=(iframe_src=$anchor.attr("href"))+(-1"),iframe.dialog({title:$anchor.data("dialog-title"),modal:!0,resizable:!1,autoOpen:!0,width:$anchor.data("dialog-width"),height:$anchor.data("dialog-height"),open:onOpenDialog,close:onCloseDialog}),iframe.attr("src",iframe_src),t.preventDefault()})})},refinery_dialog_success=function(){close_dialog(),$.ajax({url:window.location.pathname+window.location.search,cache:!1,success:function(t){$(".pagination_container").html(t),$("#flash_container > #flash").remove(),$("#flash_container").append($(".pagination_container").find("#flash")),$("#flash").css({width:"auto",visibility:""}).fadeIn(550),init_refinery_admin()}})},trigger_reordering=function(t,e){$menu=$("#menu"),t.preventDefault(),$("#menu_reorder, #menu_reorder_done").toggle(),$("#site_bar, #content").fadeTo(500,e?.35:1),e?$menu.find(".tab a").click(function(t){t.preventDefault()}):$menu.find(".tab a").unbind("click"),$menu.sortable(e?"enable":"disable")},trigger_reordering_content_section=function(t,e){$menu=$("#page-tabs").sortable(),t.preventDefault(),$("#reorder_page_part, #reorder_page_part_done").toggle(),$("#site_bar, #menu, .field:not(:has(#page-tabs)), .page_part:visible, #more_options_field, .form-actions").fadeTo(500,e?.35:1),$menu.sortable(e?"enable":"disable").sortable({items:"li",stop:function(){$("#page-tabs li[data-index]").each(function(t){$("#page_parts_attributes_"+$(this).data("index")+"_position").val(t+1)})}})},submit_and_continue=function(t,e){$(this).hasClass("wymupdate")&&$.each(WYMeditor.INSTANCES,function(t,e){e.update()}),$("#continue_editing").val(!0),$("#flash").fadeOut(250),$(".fieldWithErrors").removeClass("fieldWithErrors").addClass("field"),$("#flash_container .errorExplanation").remove(),$.post($("#continue_editing").get(0).form.action,$($("#continue_editing").get(0).form).serialize(),function(t){0<($flash_container=$("#flash_container")).length&&($flash_container.html(t),$("#flash").css({width:"auto",visibility:null}).fadeIn(550),$(".errorExplanation").not($("#flash_container .errorExplanation")).remove(),null!=(error_fields=$("#fieldsWithErrors").val())?$.each(error_fields.split(","),function(){$("#"+this).wrap("
")}):e&&(window.location=e),$(".fieldWithErrors:first :input:first").focus(),$("#continue_editing").val(!1),init_flash_messages(),$("form").attr("action",$("#new_action").attr("value")))},"html"),t.preventDefault()},init_tooltips=function(t){$($(null!=t?t:"a[title], span[title], #image_grid img[title], *[tooltip]")).not(".no-tooltip").each(function(t,e){$(e).hover(function(i){"mouseenter"==i.type||"mouseover"==i.type?$(this).oneTime(350,"tooltip",$.proxy(function(){$(".tooltip").remove(),tooltip=$("
").appendTo("#tooltip_container"),tooltip.find("span").html($(this).attr("tooltip")),tooltip_nib_extension=$.browser.msie?".gif":".png",nib=$("").appendTo("#tooltip_container"),tooltip.css({opacity:0,maxWidth:"300px"}),required_left_offset=$(this).offset().left-tooltip.outerWidth()/2+$(this).outerWidth()/2,tooltip.css("left",0(window_width=$(window).width())&&tooltip.css("left",window_width-e),tooltip.css({top:$(this).offset().top-tooltip.outerHeight()-10}),nib.css({opacity:0}),(t=tooltip.offset())&&nib.css({left:$(this).offset().left+$(this).outerWidth()/2-5,top:t.top+tooltip.height()});try{tooltip.animate({top:t.top-10,opacity:1},200,"swing"),nib.animate({top:nib.offset().top-10,opacity:1},200)}catch(i){tooltip.show(),nib.show()}},$(this))):"mouseleave"!=i.type&&"mouseout"!=i.type||($(this).stopTime("tooltip"),null==(tt_offset=(tooltip=$(".tooltip")).css("z-index","-1").offset())&&(tt_offset={top:0,left:0}),tooltip.animate({top:tt_offset.top-20,opacity:0},125,"swing",function(){$(this).remove()}),null==(nib_offset=(nib=$(".tooltip-nib")).offset())&&(nib_offset={top:0,left:0}),nib.animate({top:nib_offset.top-20,opacity:0},125,"swing",function(){$(this).remove()}))}).click(function(){$(this).stopTime("tooltip")}),null==$(e).attr("tooltip")&&$(e).attr("tooltip",$(e).attr("title")),$elements=$(e).add($(e).children("img")).removeAttr("title"),$.browser.msie&&$elements.removeAttr("alt")})};var link_tester={email_re:new RegExp(/^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i),url_re:new RegExp(/^(https?|ftp):\/\/(-\.)?([^\s/?\.#-]+\.?)+(\/[^\s]*)?$/i),page_re:new RegExp("^(https?://"+document.location.host+"|/[a-z0-9]+)"),email:function(t,e){""!=t&&e(link_tester.email_re.test(t))},url:function(t,e){""!=t&&(link_tester.page_re.test(t)?link_tester.page(t,e):e(link_tester.url_re.test(t)))},page:function(t,e){var i=!1;$.ajax({url:t,timeout:5e3,success:function(){i=!0},complete:function(){e(i)}})},validate_textbox:function(t,e,i){var n="",s=$(""),o=$("");s.insertAfter($(e)),o.insertAfter(s),$(e).bind("paste blur",function(){$(e).stop(!0),$(e+"_test_loader").hide(),$(e+"_test_result").hide(),$(e+"_test_result").removeClass("success_icon").removeClass("failure_icon"),""!=this.value&&$(e).delay(300).queue(function(){$(e+"_test_loader").show(),$(e+"_test_result").hide(),$(e+"_test_result").removeClass("success_icon").removeClass("failure_icon"),t(this.value,function(t){n=t?"success_icon":"failure_icon",$(e+"_test_result").addClass(n).show(),$(e+"_test_loader").hide()}),i&&i($(e)),$(this).dequeue()})})},validate_url_textbox:function(t,e){link_tester.validate_textbox(link_tester.url,t,e)},validate_email_textbox:function(t,e){link_tester.validate_textbox(link_tester.email,t,e)}},link_dialog={initialised:!1,init:function(){this.initialised||(this.init_tabs(),this.init_resources_submit(),this.init_close(),this.page_tab(),this.web_tab(),this.email_tab(),this.initialised=!0)},init_tabs:function(){var t=$("#dialog_menu_left input:radio"),e=t.parent().filter(".selected_radio").find("input:radio").first()||t.first();t.click(function(){link_dialog.switch_area($(this))}),e.attr("checked","true"),link_dialog.switch_area(e)},init_resources_submit:function(){$("#existing_resource_area .form-actions-dialog #submit_button").click(function(t){t.preventDefault(),0<(resource_selected=$("#existing_resource_area_content ul li.linked a")).length&&(resourceUrl=parseURL(resource_selected.attr("href")),relevant_href=resourceUrl.pathname,resourceUrl.hostname.match(/s3.amazonaws.com/)&&(relevant_href=resourceUrl.protocol+"//"+resourceUrl.host+relevant_href),"function"==typeof resource_picker.callback&&resource_picker.callback({id:resource_selected.attr("id").replace("resource_",""),href:relevant_href,html:resource_selected.html()})),$(".form-actions-dialog #cancel_button").trigger("click")})},init_close:function(){$(".form-actions-dialog #cancel_button").not(".wym_iframe_body .form-actions-dialog #cancel_button").click(close_dialog),parent&&parent.document.location.href!=document.location.href&&null!=parent.document.getElementById("wym_dialog_submit")&&($("#dialog_container .form-actions input#submit_button").click(function(t){t.preventDefault(),$(parent.document.getElementById("wym_dialog_submit")).click()}),$("#dialog_container .form-actions a.close_dialog").click(close_dialog))},switch_area:function(t){$("#dialog_menu_left .selected_radio").removeClass("selected_radio"),$(t).parent().addClass("selected_radio"),$("#dialog_main .dialog_area").hide(),$("#"+$(t).val()+"_area").show()},page_tab:function(){$(".link_list li").click(function(t){t.preventDefault(),$(".link_list li.linked").removeClass("linked"),$(this).addClass("linked");var e=$(this).children("a.page_link").get(0),i=0.+?<\/em>/,""))})},web_tab:function(){link_tester.validate_url_textbox("#web_address_text",function(){}),$("#web_address_text, #web_address_target_blank").change(function(){link_dialog.update_parent($("#web_address_text").val(),$("#web_address_text").val(),$("#web_address_target_blank").get(0).checked?"_blank":"")})},email_tab:function(){link_tester.validate_email_textbox("#email_address_text",function(){}),$("#email_address_text, #email_default_subject_text, #email_default_body_text").change(function(){var t=$("#email_default_subject_text").val(),e=$("#email_default_body_text").val(),i=$("#email_address_text").val();modifier="?",additional="",0
"+e+""),page_options.tabs.tabs("refresh"),$("#page-tabs #page_parts li").last().attr("data-index",$("#new_page_part_index").val()),page_options.tabs.tabs("option","active",-1),WYMeditor.init(),$("#new_page_part_index").val(parseInt($("#new_page_part_index").val(),10)+1),$("#new_page_part_title").val(""),$("#new_page_part_dialog").dialog("close")},"html"):alert("A content section with that title already exists, please choose another.")}else alert("You have not entered a title for the content section, please enter one.")}),$("#new_page_part_cancel").click(function(t){t.preventDefault(),$("#new_page_part_dialog").dialog("close"),$("#new_page_part_title").val("")}),$("#delete_page_part").click(function(t){t.preventDefault();var e=page_options.tabs.find(".ui-tabs-active a").text();if(confirm("This will remove the content section '"+e+"' immediately even if you don't save this page, are you sure?")){var i=page_options.tabs.find(".ui-tabs-active a").attr("id").match(/\d+/)[0]-1;0<$("#page_parts_attributes_"+i+"_id").length&&$.ajax({url:page_options.del_part_url+"/"+$("#page_parts_attributes_"+i+"_id").val(),type:"DELETE"}),page_options.tabs.find(".ui-tabs-active").remove(),page_options.tabs.find("#page_part_"+e.toLowerCase()).remove(),page_options.tabs.find("#page_part_new_"+i).remove(),$("[id^=page_parts_attributes_"+i+"_]").remove(),$("#submit_continue_button").remove(),page_options.tabs.tabs("refresh")}}),$("#reorder_page_part").click(function(t){trigger_reordering_content_section(t,!0)}),$("#reorder_page_part_done").click(function(t){trigger_reordering_content_section(t,!1)})}},image_picker={initialised:!1,options:{selected:"",thumbnail:"medium",field:"#image",image_display:".current_picked_image",no_image_message:".no_picked_image_selected",image_container:".current_image_container",remove_image_button:".remove_picked_image",picker_container:".image_picker_container",image_link:".current_image_link",image_toggler:null},init:function(t){return this.initialised||(this.options=$.extend(this.options,t),$(this.options.picker_container).find(this.options.remove_image_button).click($.proxy(this.remove_image,{container:this.options.picker_container,picker:this})),$(this.options.picker_container).find(this.options.image_toggler).click($.proxy(this.toggle_image,{container:this.options.picker_container,picker:this})),this.initialised=!0),this},remove_image:function(t){t.preventDefault(),$(this.container).find(this.picker.options.image_display).removeClass("brown_border").attr({src:"",width:"",height:""}).css({width:"auto",height:"auto"}).hide(),$(this.container).find(this.picker.options.field).val("").trigger("change"),$(this.container).find(this.picker.options.no_image_message).show(),$(this.container).find(this.picker.options.remove_image_button).hide()},toggle_image:function(t){$(this.container).find(this.picker.options.image_toggler).html("Show"==$(this.container).find(this.picker.options.image_toggler).html()?"Hide":"Show"),$(this.container).find(this.picker.options.image_container).toggle(),t.preventDefault()},changed:function(){$(this.container).find(this.picker.options.field).val(this.image.id.replace("image_","")).trigger("change");var t=this.picker.options.thumbnail||"original";this.image.src=$(this.image).attr("data-"+t),current_image=$(this.container).find(this.picker.options.image_display),current_image.replaceWith($("")),$(this.container).find(this.picker.options.remove_image_button).show(),$(this.container).find(this.picker.options.no_image_message).hide()}},resource_picker={initialised:!1,callback:null,init:function(t){this.initialised||(this.callback=t,this.initialised=!0)}};close_dialog=function(t){iframed()?(the_body=$(parent.document.body),the_dialog=parent.$(".ui-dialog-content")):(the_body=$(document.body).removeClass("hide-overflow"),the_dialog=$(".ui-dialog-content"),the_dialog.filter(":data(dialog)").dialog("close"),the_dialog.remove()),$(document.body).hasClass("wym_iframe_body")||(the_body.removeClass("hide-overflow"),the_dialog.filter(":data(dialog)").dialog("close"),the_dialog.remove(),t&&t.preventDefault&&t.preventDefault())},parseURL=function(t){var e={href:t},i=t.replace("//","/").split("/");e.protocol=i[0],e.host=i[1],i[1]=i[1].split(":"),e.hostname=i[1][0],e.port=1 ul:not(.search_list) li a[href$="'+window.location.pathname+'"]').not(".not_a_link a").parent().addClass("selected"),0===$("nav#actions.multilist > ul:not(.search_list) li.selected").length&&$("nav#actions.multilist > ul:not(.search_list) li a:nth(1)").parent().addClass("selected"),$("nav#actions.multilist > ul:not(.search_list) li > a").not(".not_a_link a").not("a.reorder_icon").each(function(){null==$(this).data("dialog-title")&&$(this).bind("click",function(){$(this).css("background-image","url('/assets/refinery/ajax-loader-ba9484edf9b3e640a57fad6430b15bdd.gif') !important")})}),$("ul.collapsible_menu").each(function(){(first_li=$(this).children("li:first")).after(div=$("
")),$(" ").appendTo(first_li),0===$(this).children("li.selected").length&&(div.hide(),first_li.addClass("closed")),$(this).children("li:not(:first)").appendTo(div),first_li.find("> a, > span.arrow").click(function(t){$(this).parent().toggleClass("closed"),$(this).parent().toggleClass("open"),$(this).parent().next("div").animate({opacity:"toggle",height:"toggle"},250,$.proxy(function(){$(this).css("background-image",null)},$(this))),t.preventDefault()})}),$(".success_icon, .failure_icon").bind("click",function(t){$.get($(this).attr("href"),$.proxy(function(t){$(this).css("background-image","").removeClass("failure_icon").removeClass("success_icon").addClass(t.enabled?"success_icon":"failure_icon")},$(this))),t.preventDefault()})}),function(){this.init_interface=function(){var t;return parent&&parent.document.location.href!==document.location.href&&$("body#dialog_container.dialog").addClass("iframed"),$("input:submit:not(.button)").addClass("button"),$("textarea.wymeditor").each(function(){var t,e,i,n;if(n=$(this),null!=(t=WYMeditor.INSTANCES[$((n.next(".wym_box").find("iframe").attr("id")||"").split("_")).last().get(0)])&&(null!=(e=n.parent().next())&&0",buttonPrevHTML:"up",listTag:t.get(0).tagName.toLowerCase(),itemTag:t.children(":first").get(0).tagName.toLowerCase()}),$("#current_locale li a").click(function(t){return $("#current_locale li a span").each(function(){return $(this).css("display","none"===$(this).css("display")?"":"none")}),$("#other_locales").animate({opacity:"toggle",height:"toggle"},250),$("html,body").animate({scrollTop:$("#other_locales").parent().offset().top},250),t.preventDefault()}),$("#existing_image img").load(function(){var t;if(0<(t=$("#existing_image").height()-$("form.edit_image").height()+8))return $("form.edit_image .form-actions").css({"margin-top":t})}),$(".form-actions .form-actions-left input:submit#submit_button").click(function(){return $("").appendTo($(this).parent())}),$(".form-actions.form-actions-dialog .form-actions-left a.close_dialog").click(function(t){var e;return e=$(".ui-dialog-titlebar-close"),parent&&(e=parent.$(".ui-dialog-titlebar-close")),e.trigger("click"),t.preventDefault()}),$("a.suppress").on("click",function(t){return t.preventDefault()})}}.call(this),function(){this.init_sortable_menu=function(){var t;if(0!==(t=$("#menu")).length)return t.sortable({items:"> *:not(#menu_reorder, #menu_reorder_done)",axis:"x",cursor:"crosshair",connectWith:".nested",update:function(){return $.post("/refinery/update_menu_positions",t.sortable("serialize",{key:"menu[]",expression:/plugin_([\w]*)$/}))}}).tabs(),t.sortable("disable"),t.find("#menu_reorder").click(function(t){return trigger_reordering(t,!0)}),t.find("#menu_reorder_done").click(function(t){return trigger_reordering(t,!1)})}}.call(this),function(){this.init_submit_continue=function(){var t;return $("#submit_continue_button").click(submit_and_continue),$("form").change(function(){return $(this).attr("data-changes-made",!0)}),0<(t=$("#continue_editing")).length&&"no-prompt"!==t.attr("rel")&&$("#editor_switch a").click(function(t){if(0<$("form[data-changes-made]").length&&!confirm("translation missing: en.js.admin.confirm_changes"))return t.preventDefault()}),$("input[id=page_custom_slug]").change(function(){return $("#submit_continue_button").remove()})}}.call(this),function(){this.init_ajaxy_pagination=function(){if("function"==typeof window.history.pushState&&0<$(".pagination_container").length&&$(".pagination_container .pagination a").on("click",function(t){var e,i;return i=this.href.replace(/(\&(amp\;)?)?from_page\=\d+/,""),i=(i+="&from_page="+$(".current").text()).replace("?&","?").replace(/\s+/,""),e=location.pathname+location.href.split(location.pathname)[1],window.history.pushState({path:e},"",i),$(document).paginateTo(i),t.preventDefault()}),$(".pagination_container").applyMinimumHeightFromChildren(),0===$(".pagination_container").find(".pagination").length)return $(".pagination_frame").css("top","0px")}}.call(this);