/*! * jQuery JavaScript Library v1.11.3 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2015-04-28T16:19Z */ (function(b,a){if(typeof module==="object"&&typeof module.exports==="object"){module.exports=b.document?a(b,true):function(c){if(!c.document){throw new Error("jQuery requires a window with a document")}return a(c)}}else{a(b)}}(typeof window!=="undefined"?window:this,function(a4,au){var aO=[];var O=aO.slice;var ay=aO.concat;var w=aO.push;var bT=aO.indexOf;var ab={};var x=ab.toString;var J=ab.hasOwnProperty;var C={};var ah="1.11.3",bH=function(e,i){return new bH.fn.init(e,i)},D=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,bR=/^-ms-/,aV=/-([\da-z])/gi,N=function(e,i){return i.toUpperCase()};bH.fn=bH.prototype={jquery:ah,constructor:bH,selector:"",length:0,toArray:function(){return O.call(this)},get:function(e){return e!=null?(e<0?this[e+this.length]:this[e]):O.call(this)},pushStack:function(e){var i=bH.merge(this.constructor(),e);i.prevObject=this;i.context=this.context;return i},each:function(i,e){return bH.each(this,i,e)},map:function(e){return this.pushStack(bH.map(this,function(b6,b5){return e.call(b6,b5,b6)}))},slice:function(){return this.pushStack(O.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(b6){var e=this.length,b5=+b6+(b6<0?e:0);return this.pushStack(b5>=0&&b5=0},isEmptyObject:function(i){var e;for(e in i){return false}return true},isPlainObject:function(b6){var i;if(!b6||bH.type(b6)!=="object"||b6.nodeType||bH.isWindow(b6)){return false}try{if(b6.constructor&&!J.call(b6,"constructor")&&!J.call(b6.constructor.prototype,"isPrototypeOf")){return false}}catch(b5){return false}if(C.ownLast){for(i in b6){return J.call(b6,i)}}for(i in b6){}return i===undefined||J.call(b6,i)},type:function(e){if(e==null){return e+""}return typeof e==="object"||typeof e==="function"?ab[x.call(e)]||"object":typeof e},globalEval:function(e){if(e&&bH.trim(e)){(a4.execScript||function(i){a4["eval"].call(a4,i)})(e)}},camelCase:function(e){return e.replace(bR,"ms-").replace(aV,N)},nodeName:function(i,e){return i.nodeName&&i.nodeName.toLowerCase()===e.toLowerCase()},each:function(b9,ca,b5){var b8,b6=0,b7=b9.length,e=ac(b9);if(b5){if(e){for(;b60&&(i-1) in b5}var m= /*! * Sizzle CSS Selector Engine v2.2.0-pre * http://sizzlejs.com/ * * Copyright 2008, 2014 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2014-12-16 */ (function(dd){var cx,dg,cm,cG,cJ,ch,cV,df,dl,cH,cW,cY,cB,cn,c7,c2,de,cd,cE,c9="sizzle"+1*new Date(),cI=dd.document,dh=0,c3=0,b8=cz(),c8=cz(),cF=cz(),cD=function(i,e){if(i===e){cW=true}return 0},cP=1<<31,cN=({}).hasOwnProperty,db=[],dc=db.pop,cL=db.push,b6=db.push,cl=db.slice,cc=function(dp,dn){var dm=0,e=dp.length;for(;dm+~]|"+co+")"+co+"*"),cs=new RegExp("="+co+"*([^\\]'\"]*?)"+co+"*\\]","g"),cR=new RegExp(cj),cT=new RegExp("^"+cK+"$"),c1={ID:new RegExp("^#("+b5+")"),CLASS:new RegExp("^\\.("+b5+")"),TAG:new RegExp("^("+b5.replace("w","w*")+")"),ATTR:new RegExp("^"+c5),PSEUDO:new RegExp("^"+cj),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+co+"*(even|odd|(([+-]|)(\\d*)n|)"+co+"*(?:([+-]|)"+co+"*(\\d+)|))"+co+"*\\)|)","i"),bool:new RegExp("^(?:"+b7+")$","i"),needsContext:new RegExp("^"+co+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+co+"*((?:-\\d)?\\d*)"+co+"*\\)|)(?=[^-]|$)","i")},cb=/^(?:input|select|textarea|button)$/i,ck=/^h\d$/i,cO=/^[^{]+\{\s*\[native \w/,cQ=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,c0=/[+~]/,cM=/'|\\/g,cr=new RegExp("\\\\([\\da-f]{1,6}"+co+"?|("+co+")|.)","ig"),c4=function(e,dn,i){var dm="0x"+dn-65536;return dm!==dm||i?dn:dm<0?String.fromCharCode(dm+65536):String.fromCharCode(dm>>10|55296,dm&1023|56320)},dk=function(){cY()};try{b6.apply((db=cl.call(cI.childNodes)),cI.childNodes);db[cI.childNodes.length].nodeType}catch(cC){b6={apply:db.length?function(i,e){cL.apply(i,cl.call(e))}:function(dp,dn){var e=dp.length,dm=0;while((dp[e++]=dn[dm++])){}dp.length=e-1}}}function cv(du,dm,dy,dA){var dz,dr,ds,dw,dx,dq,dp,e,dn,dv;if((dm?dm.ownerDocument||dm:cI)!==cB){cY(dm)}dm=dm||cB;dy=dy||[];dw=dm.nodeType;if(typeof du!=="string"||!du||dw!==1&&dw!==9&&dw!==11){return dy}if(!dA&&c7){if(dw!==11&&(dz=cQ.exec(du))){if((ds=dz[1])){if(dw===9){dr=dm.getElementById(ds);if(dr&&dr.parentNode){if(dr.id===ds){dy.push(dr);return dy}}else{return dy}}else{if(dm.ownerDocument&&(dr=dm.ownerDocument.getElementById(ds))&&cE(dm,dr)&&dr.id===ds){dy.push(dr);return dy}}}else{if(dz[2]){b6.apply(dy,dm.getElementsByTagName(du));return dy}else{if((ds=dz[3])&&dg.getElementsByClassName){b6.apply(dy,dm.getElementsByClassName(ds));return dy}}}}if(dg.qsa&&(!c2||!c2.test(du))){e=dp=c9;dn=dm;dv=dw!==1&&du;if(dw===1&&dm.nodeName.toLowerCase()!=="object"){dq=ch(du);if((dp=dm.getAttribute("id"))){e=dp.replace(cM,"\\$&")}else{dm.setAttribute("id",e)}e="[id='"+e+"'] ";dx=dq.length;while(dx--){dq[dx]=e+cg(dq[dx])}dn=c0.test(du)&&cS(dm.parentNode)||dm;dv=dq.join(",")}if(dv){try{b6.apply(dy,dn.querySelectorAll(dv));return dy}catch(dt){}finally{if(!dp){dm.removeAttribute("id")}}}}}return df(du.replace(cq,"$1"),dm,dy,dA)}function cz(){var i=[];function e(dm,dn){if(i.push(dm+" ")>cm.cacheLength){delete e[i.shift()]}return(e[dm+" "]=dn)}return e}function ci(e){e[c9]=true;return e}function ce(i){var dn=cB.createElement("div");try{return !!i(dn)}catch(dm){return false}finally{if(dn.parentNode){dn.parentNode.removeChild(dn)}dn=null}}function di(dm,dp){var e=dm.split("|"),dn=dm.length;while(dn--){cm.attrHandle[e[dn]]=dp}}function b9(i,e){var dn=e&&i,dm=dn&&i.nodeType===1&&e.nodeType===1&&(~e.sourceIndex||cP)-(~i.sourceIndex||cP);if(dm){return dm}if(dn){while((dn=dn.nextSibling)){if(dn===e){return -1}}}return i?1:-1}function cw(e){return function(dm){var i=dm.nodeName.toLowerCase();return i==="input"&&dm.type===e}}function ca(e){return function(dm){var i=dm.nodeName.toLowerCase();return(i==="input"||i==="button")&&dm.type===e}}function c6(e){return ci(function(i){i=+i;return ci(function(dm,dr){var dp,dn=e([],dm.length,i),dq=dn.length;while(dq--){if(dm[(dp=dn[dq])]){dm[dp]=!(dr[dp]=dm[dp])}}})})}function cS(e){return e&&typeof e.getElementsByTagName!=="undefined"&&e}dg=cv.support={};cJ=cv.isXML=function(e){var i=e&&(e.ownerDocument||e).documentElement;return i?i.nodeName!=="HTML":false};cY=cv.setDocument=function(dm){var e,i,dn=dm?dm.ownerDocument||dm:cI;if(dn===cB||dn.nodeType!==9||!dn.documentElement){return cB}cB=dn;cn=dn.documentElement;i=dn.defaultView;if(i&&i!==i.top){if(i.addEventListener){i.addEventListener("unload",dk,false)}else{if(i.attachEvent){i.attachEvent("onunload",dk)}}}c7=!cJ(dn);dg.attributes=ce(function(dp){dp.className="i";return !dp.getAttribute("className")});dg.getElementsByTagName=ce(function(dp){dp.appendChild(dn.createComment(""));return !dp.getElementsByTagName("*").length});dg.getElementsByClassName=cO.test(dn.getElementsByClassName);dg.getById=ce(function(dp){cn.appendChild(dp).id=c9;return !dn.getElementsByName||!dn.getElementsByName(c9).length});if(dg.getById){cm.find.ID=function(dr,dq){if(typeof dq.getElementById!=="undefined"&&c7){var dp=dq.getElementById(dr);return dp&&dp.parentNode?[dp]:[]}};cm.filter.ID=function(dq){var dp=dq.replace(cr,c4);return function(dr){return dr.getAttribute("id")===dp}}}else{delete cm.find.ID;cm.filter.ID=function(dq){var dp=dq.replace(cr,c4);return function(ds){var dr=typeof ds.getAttributeNode!=="undefined"&&ds.getAttributeNode("id");return dr&&dr.value===dp}}}cm.find.TAG=dg.getElementsByTagName?function(dp,dq){if(typeof dq.getElementsByTagName!=="undefined"){return dq.getElementsByTagName(dp)}else{if(dg.qsa){return dq.querySelectorAll(dp)}}}:function(dp,dt){var du,ds=[],dr=0,dq=dt.getElementsByTagName(dp);if(dp==="*"){while((du=dq[dr++])){if(du.nodeType===1){ds.push(du)}}return ds}return dq};cm.find.CLASS=dg.getElementsByClassName&&function(dq,dp){if(c7){return dp.getElementsByClassName(dq)}};de=[];c2=[];if((dg.qsa=cO.test(dn.querySelectorAll))){ce(function(dp){cn.appendChild(dp).innerHTML="";if(dp.querySelectorAll("[msallowcapture^='']").length){c2.push("[*^$]="+co+"*(?:''|\"\")")}if(!dp.querySelectorAll("[selected]").length){c2.push("\\["+co+"*(?:value|"+b7+")")}if(!dp.querySelectorAll("[id~="+c9+"-]").length){c2.push("~=")}if(!dp.querySelectorAll(":checked").length){c2.push(":checked")}if(!dp.querySelectorAll("a#"+c9+"+*").length){c2.push(".#.+[+~]")}});ce(function(dq){var dp=dn.createElement("input");dp.setAttribute("type","hidden");dq.appendChild(dp).setAttribute("name","D");if(dq.querySelectorAll("[name=d]").length){c2.push("name"+co+"*[*^$|!~]?=")}if(!dq.querySelectorAll(":enabled").length){c2.push(":enabled",":disabled")}dq.querySelectorAll("*,:x");c2.push(",.*:")})}if((dg.matchesSelector=cO.test((cd=cn.matches||cn.webkitMatchesSelector||cn.mozMatchesSelector||cn.oMatchesSelector||cn.msMatchesSelector)))){ce(function(dp){dg.disconnectedMatch=cd.call(dp,"div");cd.call(dp,"[s!='']:x");de.push("!=",cj)})}c2=c2.length&&new RegExp(c2.join("|"));de=de.length&&new RegExp(de.join("|"));e=cO.test(cn.compareDocumentPosition);cE=e||cO.test(cn.contains)?function(dq,dp){var ds=dq.nodeType===9?dq.documentElement:dq,dr=dp&&dp.parentNode;return dq===dr||!!(dr&&dr.nodeType===1&&(ds.contains?ds.contains(dr):dq.compareDocumentPosition&&dq.compareDocumentPosition(dr)&16))}:function(dq,dp){if(dp){while((dp=dp.parentNode)){if(dp===dq){return true}}}return false};cD=e?function(dq,dp){if(dq===dp){cW=true;return 0}var dr=!dq.compareDocumentPosition-!dp.compareDocumentPosition;if(dr){return dr}dr=(dq.ownerDocument||dq)===(dp.ownerDocument||dp)?dq.compareDocumentPosition(dp):1;if(dr&1||(!dg.sortDetached&&dp.compareDocumentPosition(dq)===dr)){if(dq===dn||dq.ownerDocument===cI&&cE(cI,dq)){return -1}if(dp===dn||dp.ownerDocument===cI&&cE(cI,dp)){return 1}return cH?(cc(cH,dq)-cc(cH,dp)):0}return dr&4?-1:1}:function(dq,dp){if(dq===dp){cW=true;return 0}var dw,dt=0,dv=dq.parentNode,ds=dp.parentNode,dr=[dq],du=[dp];if(!dv||!ds){return dq===dn?-1:dp===dn?1:dv?-1:ds?1:cH?(cc(cH,dq)-cc(cH,dp)):0}else{if(dv===ds){return b9(dq,dp)}}dw=dq;while((dw=dw.parentNode)){dr.unshift(dw)}dw=dp;while((dw=dw.parentNode)){du.unshift(dw)}while(dr[dt]===du[dt]){dt++}return dt?b9(dr[dt],du[dt]):dr[dt]===cI?-1:du[dt]===cI?1:0};return dn};cv.matches=function(i,e){return cv(i,null,null,e)};cv.matchesSelector=function(dm,dp){if((dm.ownerDocument||dm)!==cB){cY(dm)}dp=dp.replace(cs,"='$1']");if(dg.matchesSelector&&c7&&(!de||!de.test(dp))&&(!c2||!c2.test(dp))){try{var i=cd.call(dm,dp);if(i||dg.disconnectedMatch||dm.document&&dm.document.nodeType!==11){return i}}catch(dn){}}return cv(dp,cB,null,[dm]).length>0};cv.contains=function(e,i){if((e.ownerDocument||e)!==cB){cY(e)}return cE(e,i)};cv.attr=function(dm,e){if((dm.ownerDocument||dm)!==cB){cY(dm)}var i=cm.attrHandle[e.toLowerCase()],dn=i&&cN.call(cm.attrHandle,e.toLowerCase())?i(dm,e,!c7):undefined;return dn!==undefined?dn:dg.attributes||!c7?dm.getAttribute(e):(dn=dm.getAttributeNode(e))&&dn.specified?dn.value:null};cv.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)};cv.uniqueSort=function(dn){var dp,dq=[],e=0,dm=0;cW=!dg.detectDuplicates;cH=!dg.sortStable&&dn.slice(0);dn.sort(cD);if(cW){while((dp=dn[dm++])){if(dp===dn[dm]){e=dq.push(dm)}}while(e--){dn.splice(dq[e],1)}}cH=null;return dn};cG=cv.getText=function(dq){var dp,dm="",dn=0,e=dq.nodeType;if(!e){while((dp=dq[dn++])){dm+=cG(dp)}}else{if(e===1||e===9||e===11){if(typeof dq.textContent==="string"){return dq.textContent}else{for(dq=dq.firstChild;dq;dq=dq.nextSibling){dm+=cG(dq)}}}else{if(e===3||e===4){return dq.nodeValue}}}return dm};cm=cv.selectors={cacheLength:50,createPseudo:ci,match:c1,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:true}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:true},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){e[1]=e[1].replace(cr,c4);e[3]=(e[3]||e[4]||e[5]||"").replace(cr,c4);if(e[2]==="~="){e[3]=" "+e[3]+" "}return e.slice(0,4)},CHILD:function(e){e[1]=e[1].toLowerCase();if(e[1].slice(0,3)==="nth"){if(!e[3]){cv.error(e[0])}e[4]=+(e[4]?e[5]+(e[6]||1):2*(e[3]==="even"||e[3]==="odd"));e[5]=+((e[7]+e[8])||e[3]==="odd")}else{if(e[3]){cv.error(e[0])}}return e},PSEUDO:function(i){var e,dm=!i[6]&&i[2];if(c1.CHILD.test(i[0])){return null}if(i[3]){i[2]=i[4]||i[5]||""}else{if(dm&&cR.test(dm)&&(e=ch(dm,true))&&(e=dm.indexOf(")",dm.length-e)-dm.length)){i[0]=i[0].slice(0,e);i[2]=dm.slice(0,e)}}return i.slice(0,3)}},filter:{TAG:function(i){var e=i.replace(cr,c4).toLowerCase();return i==="*"?function(){return true}:function(dm){return dm.nodeName&&dm.nodeName.toLowerCase()===e}},CLASS:function(e){var i=b8[e+" "];return i||(i=new RegExp("(^|"+co+")"+e+"("+co+"|$)"))&&b8(e,function(dm){return i.test(typeof dm.className==="string"&&dm.className||typeof dm.getAttribute!=="undefined"&&dm.getAttribute("class")||"")})},ATTR:function(dm,i,e){return function(dp){var dn=cv.attr(dp,dm);if(dn==null){return i==="!="}if(!i){return true}dn+="";return i==="="?dn===e:i==="!="?dn!==e:i==="^="?e&&dn.indexOf(e)===0:i==="*="?e&&dn.indexOf(e)>-1:i==="$="?e&&dn.slice(-e.length)===e:i==="~="?(" "+dn.replace(ct," ")+" ").indexOf(e)>-1:i==="|="?dn===e||dn.slice(0,e.length+1)===e+"-":false}},CHILD:function(i,dp,dn,dq,dm){var ds=i.slice(0,3)!=="nth",e=i.slice(-4)!=="last",dr=dp==="of-type";return dq===1&&dm===0?function(dt){return !!dt.parentNode}:function(dz,dx,dC){var dt,dF,dA,dE,dB,dw,dy=ds!==e?"nextSibling":"previousSibling",dD=dz.parentNode,dv=dr&&dz.nodeName.toLowerCase(),du=!dC&&!dr;if(dD){if(ds){while(dy){dA=dz;while((dA=dA[dy])){if(dr?dA.nodeName.toLowerCase()===dv:dA.nodeType===1){return false}}dw=dy=i==="only"&&!dw&&"nextSibling"}return true}dw=[e?dD.firstChild:dD.lastChild];if(e&&du){dF=dD[c9]||(dD[c9]={});dt=dF[i]||[];dB=dt[0]===dh&&dt[1];dE=dt[0]===dh&&dt[2];dA=dB&&dD.childNodes[dB];while((dA=++dB&&dA&&dA[dy]||(dE=dB=0)||dw.pop())){if(dA.nodeType===1&&++dE&&dA===dz){dF[i]=[dh,dB,dE];break}}}else{if(du&&(dt=(dz[c9]||(dz[c9]={}))[i])&&dt[0]===dh){dE=dt[1]}else{while((dA=++dB&&dA&&dA[dy]||(dE=dB=0)||dw.pop())){if((dr?dA.nodeName.toLowerCase()===dv:dA.nodeType===1)&&++dE){if(du){(dA[c9]||(dA[c9]={}))[i]=[dh,dE]}if(dA===dz){break}}}}}dE-=dm;return dE===dq||(dE%dq===0&&dE/dq>=0)}}},PSEUDO:function(dn,dm){var e,i=cm.pseudos[dn]||cm.setFilters[dn.toLowerCase()]||cv.error("unsupported pseudo: "+dn);if(i[c9]){return i(dm)}if(i.length>1){e=[dn,dn,"",dm];return cm.setFilters.hasOwnProperty(dn.toLowerCase())?ci(function(dr,dt){var dq,dp=i(dr,dm),ds=dp.length;while(ds--){dq=cc(dr,dp[ds]);dr[dq]=!(dt[dq]=dp[ds])}}):function(dp){return i(dp,0,e)}}return i}},pseudos:{not:ci(function(e){var i=[],dm=[],dn=cV(e.replace(cq,"$1"));return dn[c9]?ci(function(dq,dv,dt,dr){var du,dp=dn(dq,null,dr,[]),ds=dq.length;while(ds--){if((du=dp[ds])){dq[ds]=!(dv[ds]=du)}}}):function(dr,dq,dp){i[0]=dr;dn(i,null,dp,dm);i[0]=null;return !dm.pop()}}),has:ci(function(e){return function(i){return cv(e,i).length>0}}),contains:ci(function(e){e=e.replace(cr,c4);return function(i){return(i.textContent||i.innerText||cG(i)).indexOf(e)>-1}}),lang:ci(function(e){if(!cT.test(e||"")){cv.error("unsupported lang: "+e)}e=e.replace(cr,c4).toLowerCase();return function(dm){var i;do{if((i=c7?dm.lang:dm.getAttribute("xml:lang")||dm.getAttribute("lang"))){i=i.toLowerCase();return i===e||i.indexOf(e+"-")===0}}while((dm=dm.parentNode)&&dm.nodeType===1);return false}}),target:function(e){var i=dd.location&&dd.location.hash;return i&&i.slice(1)===e.id},root:function(e){return e===cn},focus:function(e){return e===cB.activeElement&&(!cB.hasFocus||cB.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===false},disabled:function(e){return e.disabled===true},checked:function(e){var i=e.nodeName.toLowerCase();return(i==="input"&&!!e.checked)||(i==="option"&&!!e.selected)},selected:function(e){if(e.parentNode){e.parentNode.selectedIndex}return e.selected===true},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling){if(e.nodeType<6){return false}}return true},parent:function(e){return !cm.pseudos.empty(e)},header:function(e){return ck.test(e.nodeName)},input:function(e){return cb.test(e.nodeName)},button:function(i){var e=i.nodeName.toLowerCase();return e==="input"&&i.type==="button"||e==="button"},text:function(i){var e;return i.nodeName.toLowerCase()==="input"&&i.type==="text"&&((e=i.getAttribute("type"))==null||e.toLowerCase()==="text")},first:c6(function(){return[0]}),last:c6(function(e,i){return[i-1]}),eq:c6(function(e,dm,i){return[i<0?i+dm:i]}),even:c6(function(e,dn){var dm=0;for(;dm=0;){e.push(dm)}return e}),gt:c6(function(e,dp,dn){var dm=dn<0?dn+dp:dn;for(;++dm1?function(dq,dp,dm){var dn=e.length;while(dn--){if(!e[dn](dq,dp,dm)){return false}}return true}:e[0]}function cy(dm,dq,dp){var dn=0,e=dq.length;for(;dn-1){dB[dD]=!(dy[dD]=dv)}}}}else{dx=cZ(dx===dy?dx.splice(ds,dx.length):dx);if(dq){dq(null,dy,dx,dA)}else{b6.apply(dy,dx)}}})}function da(ds){var dm,dq,dn,dr=ds.length,dv=cm.relative[ds[0].type],dw=dv||cm.relative[" "],dp=dv?1:0,dt=cp(function(i){return i===dm},dw,true),du=cp(function(i){return cc(dm,i)>-1},dw,true),e=[function(dz,dy,dx){var i=(!dv&&(dx||dy!==dl))||((dm=dy).nodeType?dt(dz,dy,dx):du(dz,dy,dx));dm=null;return i}];for(;dp1&&dj(e),dp>1&&cg(ds.slice(0,dp-1).concat({value:ds[dp-2].type===" "?"*":""})).replace(cq,"$1"),dq,dp0,dp=dn.length>0,i=function(dz,dt,dy,dx,dC){var du,dv,dA,dE=0,dw="0",dq=dz&&[],dF=[],dD=dl,ds=dz||dp&&cm.find.TAG("*",dC),dr=(dh+=dD==null?1:Math.random()||0.1),dB=ds.length;if(dC){dl=dt!==cB&&dt}for(;dw!==dB&&(du=ds[dw])!=null;dw++){if(dp&&du){dv=0;while((dA=dn[dv++])){if(dA(du,dt,dy)){dx.push(du);break}}if(dC){dh=dr}}if(e){if((du=!dA&&du)){dE--}if(dz){dq.push(du)}}}dE+=dw;if(e&&dw!==dE){dv=0;while((dA=dm[dv++])){dA(dq,dF,dt,dy)}if(dz){if(dE>0){while(dw--){if(!(dq[dw]||dF[dw])){dF[dw]=dc.call(dx)}}}dF=cZ(dF)}b6.apply(dx,dF);if(dC&&!dz&&dF.length>0&&(dE+dm.length)>1){cv.uniqueSort(dx)}}if(dC){dh=dr;dl=dD}return dq};return e?ci(i):i}cV=cv.compile=function(e,dn){var dp,dm=[],dr=[],dq=cF[e+" "];if(!dq){if(!dn){dn=ch(e)}dp=dn.length;while(dp--){dq=da(dn[dp]);if(dq[c9]){dm.push(dq)}else{dr.push(dq)}}dq=cF(e,cX(dr,dm));dq.selector=e}return dq};df=cv.select=function(dn,e,dp,ds){var dq,dv,dm,dw,dt,du=typeof dn==="function"&&dn,dr=!ds&&ch((dn=du.selector||dn));dp=dp||[];if(dr.length===1){dv=dr[0]=dr[0].slice(0);if(dv.length>2&&(dm=dv[0]).type==="ID"&&dg.getById&&e.nodeType===9&&c7&&cm.relative[dv[1].type]){e=(cm.find.ID(dm.matches[0].replace(cr,c4),e)||[])[0];if(!e){return dp}else{if(du){e=e.parentNode}}dn=dn.slice(dv.shift().value.length)}dq=c1.needsContext.test(dn)?0:dv.length;while(dq--){dm=dv[dq];if(cm.relative[(dw=dm.type)]){break}if((dt=cm.find[dw])){if((ds=dt(dm.matches[0].replace(cr,c4),c0.test(dv[0].type)&&cS(e.parentNode)||e))){dv.splice(dq,1);dn=ds.length&&cg(dv);if(!dn){b6.apply(dp,ds);return dp}break}}}}(du||cV(dn,dr))(ds,e,!c7,dp,c0.test(dn)&&cS(e.parentNode)||e);return dp};dg.sortStable=c9.split("").sort(cD).join("")===c9;dg.detectDuplicates=!!cW;cY();dg.sortDetached=ce(function(e){return e.compareDocumentPosition(cB.createElement("div"))&1});if(!ce(function(e){e.innerHTML="";return e.firstChild.getAttribute("href")==="#"})){di("type|href|height|width",function(i,e,dm){if(!dm){return i.getAttribute(e,e.toLowerCase()==="type"?1:2)}})}if(!dg.attributes||!ce(function(e){e.innerHTML="";e.firstChild.setAttribute("value","");return e.firstChild.getAttribute("value")===""})){di("value",function(i,e,dm){if(!dm&&i.nodeName.toLowerCase()==="input"){return i.defaultValue}})}if(!ce(function(e){return e.getAttribute("disabled")==null})){di(b7,function(i,e,dn){var dm;if(!dn){return i[e]===true?e.toLowerCase():(dm=i.getAttributeNode(e))&&dm.specified?dm.value:null}})}return cv})(a4);bH.find=m;bH.expr=m.selectors;bH.expr[":"]=bH.expr.pseudos;bH.unique=m.uniqueSort;bH.text=m.getText;bH.isXMLDoc=m.isXML;bH.contains=m.contains;var z=bH.expr.match.needsContext;var a=(/^<(\w+)\s*\/?>(?:<\/\1>|)$/);var aK=/^.[^:#\[\.,]*$/;function aQ(b5,e,i){if(bH.isFunction(e)){return bH.grep(b5,function(b7,b6){return !!e.call(b7,b6,b7)!==i})}if(e.nodeType){return bH.grep(b5,function(b6){return(b6===e)!==i})}if(typeof e==="string"){if(aK.test(e)){return bH.filter(e,b5,i)}e=bH.filter(e,b5)}return bH.grep(b5,function(b6){return(bH.inArray(b6,e)>=0)!==i})}bH.filter=function(b6,e,b5){var i=e[0];if(b5){b6=":not("+b6+")"}return e.length===1&&i.nodeType===1?bH.find.matchesSelector(i,b6)?[i]:[]:bH.find.matches(b6,bH.grep(e,function(b7){return b7.nodeType===1}))};bH.fn.extend({find:function(b5){var b8,b7=[],b6=this,e=b6.length;if(typeof b5!=="string"){return this.pushStack(bH(b5).filter(function(){for(b8=0;b81?bH.unique(b7):b7);b7.selector=this.selector?this.selector+" "+b5:b5;return b7},filter:function(e){return this.pushStack(aQ(this,e||[],false))},not:function(e){return this.pushStack(aQ(this,e||[],true))},is:function(e){return !!aQ(this,typeof e==="string"&&z.test(e)?bH(e):e||[],false).length}});var y,n=a4.document,bs=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,bU=bH.fn.init=function(e,b5){var i,b6;if(!e){return this}if(typeof e==="string"){if(e.charAt(0)==="<"&&e.charAt(e.length-1)===">"&&e.length>=3){i=[null,e,null]}else{i=bs.exec(e)}if(i&&(i[1]||!b5)){if(i[1]){b5=b5 instanceof bH?b5[0]:b5;bH.merge(this,bH.parseHTML(i[1],b5&&b5.nodeType?b5.ownerDocument||b5:n,true));if(a.test(i[1])&&bH.isPlainObject(b5)){for(i in b5){if(bH.isFunction(this[i])){this[i](b5[i])}else{this.attr(i,b5[i])}}}return this}else{b6=n.getElementById(i[2]);if(b6&&b6.parentNode){if(b6.id!==i[2]){return y.find(e)}this.length=1;this[0]=b6}this.context=n;this.selector=e;return this}}else{if(!b5||b5.jquery){return(b5||y).find(e)}else{return this.constructor(b5).find(e)}}}else{if(e.nodeType){this.context=this[0]=e;this.length=1;return this}else{if(bH.isFunction(e)){return typeof y.ready!=="undefined"?y.ready(e):e(bH)}}}if(e.selector!==undefined){this.selector=e.selector;this.context=e.context}return bH.makeArray(e,this)};bU.prototype=bH.fn;y=bH(n);var bu=/^(?:parents|prev(?:Until|All))/,by={children:true,contents:true,next:true,prev:true};bH.extend({dir:function(b5,i,b7){var e=[],b6=b5[i];while(b6&&b6.nodeType!==9&&(b7===undefined||b6.nodeType!==1||!bH(b6).is(b7))){if(b6.nodeType===1){e.push(b6)}b6=b6[i]}return e},sibling:function(b5,i){var e=[];for(;b5;b5=b5.nextSibling){if(b5.nodeType===1&&b5!==i){e.push(b5)}}return e}});bH.fn.extend({has:function(b7){var b6,b5=bH(b7,this),e=b5.length;return this.filter(function(){for(b6=0;b6-1:b9.nodeType===1&&bH.find.matchesSelector(b9,b8))){e.push(b9);break}}}return this.pushStack(e.length>1?bH.unique(e):e)},index:function(e){if(!e){return(this[0]&&this[0].parentNode)?this.first().prevAll().length:-1}if(typeof e==="string"){return bH.inArray(this[0],bH(e))}return bH.inArray(e.jquery?e[0]:e,this)},add:function(e,i){return this.pushStack(bH.unique(bH.merge(this.get(),bH(e,i))))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}});function aX(i,e){do{i=i[e]}while(i&&i.nodeType!==1);return i}bH.each({parent:function(i){var e=i.parentNode;return e&&e.nodeType!==11?e:null},parents:function(e){return bH.dir(e,"parentNode")},parentsUntil:function(b5,e,b6){return bH.dir(b5,"parentNode",b6)},next:function(e){return aX(e,"nextSibling")},prev:function(e){return aX(e,"previousSibling")},nextAll:function(e){return bH.dir(e,"nextSibling")},prevAll:function(e){return bH.dir(e,"previousSibling")},nextUntil:function(b5,e,b6){return bH.dir(b5,"nextSibling",b6)},prevUntil:function(b5,e,b6){return bH.dir(b5,"previousSibling",b6)},siblings:function(e){return bH.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return bH.sibling(e.firstChild)},contents:function(e){return bH.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:bH.merge([],e.childNodes)}},function(e,i){bH.fn[e]=function(b7,b5){var b6=bH.map(this,i,b7);if(e.slice(-5)!=="Until"){b5=b7}if(b5&&typeof b5==="string"){b6=bH.filter(b5,b6)}if(this.length>1){if(!by[e]){b6=bH.unique(b6)}if(bu.test(e)){b6=b6.reverse()}}return this.pushStack(b6)}});var aE=(/\S+/g);var b1={};function ae(i){var e=b1[i]={};bH.each(i.match(aE)||[],function(b6,b5){e[b5]=true});return e}bH.Callbacks=function(cd){cd=typeof cd==="string"?(b1[cd]||ae(cd)):bH.extend({},cd);var b7,b6,e,b8,b9,b5,ca=[],cb=!cd.once&&[],i=function(ce){b6=cd.memory&&ce;e=true;b9=b5||0;b5=0;b8=ca.length;b7=true;for(;ca&&b9-1){ca.splice(cf,1);if(b7){if(cf<=b8){b8--}if(cf<=b9){b9--}}}})}return this},has:function(ce){return ce?bH.inArray(ce,ca)>-1:!!(ca&&ca.length)},empty:function(){ca=[];b8=0;return this},disable:function(){ca=cb=b6=undefined;return this},disabled:function(){return !ca},lock:function(){cb=undefined;if(!b6){cc.disable()}return this},locked:function(){return !cb},fireWith:function(cf,ce){if(ca&&(!e||cb)){ce=ce||[];ce=[cf,ce.slice?ce.slice():ce];if(b7){cb.push(ce)}else{i(ce)}}return this},fire:function(){cc.fireWith(this,arguments);return this},fired:function(){return !!e}};return cc};bH.extend({Deferred:function(b5){var i=[["resolve","done",bH.Callbacks("once memory"),"resolved"],["reject","fail",bH.Callbacks("once memory"),"rejected"],["notify","progress",bH.Callbacks("memory")]],b6="pending",b7={state:function(){return b6},always:function(){e.done(arguments).fail(arguments);return this},then:function(){var b8=arguments;return bH.Deferred(function(b9){bH.each(i,function(cb,ca){var cc=bH.isFunction(b8[cb])&&b8[cb];e[ca[1]](function(){var cd=cc&&cc.apply(this,arguments);if(cd&&bH.isFunction(cd.promise)){cd.promise().done(b9.resolve).fail(b9.reject).progress(b9.notify)}else{b9[ca[0]+"With"](this===b7?b9.promise():this,cc?[cd]:arguments)}})});b8=null}).promise()},promise:function(b8){return b8!=null?bH.extend(b8,b7):b7}},e={};b7.pipe=b7.then;bH.each(i,function(b9,b8){var cb=b8[2],ca=b8[3];b7[b8[1]]=cb.add;if(ca){cb.add(function(){b6=ca},i[b9^1][2].disable,i[2][2].lock)}e[b8[0]]=function(){e[b8[0]+"With"](this===e?b7:this,arguments);return this};e[b8[0]+"With"]=cb.fireWith});b7.promise(e);if(b5){b5.call(e,e)}return e},when:function(b8){var b6=0,ca=O.call(arguments),e=ca.length,b5=e!==1||(b8&&bH.isFunction(b8.promise))?e:0,cd=b5===1?b8:bH.Deferred(),b7=function(cf,cg,ce){return function(i){cg[cf]=this;ce[cf]=arguments.length>1?O.call(arguments):i;if(ce===cc){cd.notifyWith(cg,ce)}else{if(!(--b5)){cd.resolveWith(cg,ce)}}}},cc,b9,cb;if(e>1){cc=new Array(e);b9=new Array(e);cb=new Array(e);for(;b60){return}aj.resolveWith(n,[bH]);if(bH.fn.triggerHandler){bH(n).triggerHandler("ready");bH(n).off("ready")}}});function bl(){if(n.addEventListener){n.removeEventListener("DOMContentLoaded",bY,false);a4.removeEventListener("load",bY,false)}else{n.detachEvent("onreadystatechange",bY);a4.detachEvent("onload",bY)}}function bY(){if(n.addEventListener||event.type==="load"||n.readyState==="complete"){bl();bH.ready()}}bH.ready.promise=function(b7){if(!aj){aj=bH.Deferred();if(n.readyState==="complete"){setTimeout(bH.ready)}else{if(n.addEventListener){n.addEventListener("DOMContentLoaded",bY,false);a4.addEventListener("load",bY,false)}else{n.attachEvent("onreadystatechange",bY);a4.attachEvent("onload",bY);var b6=false;try{b6=a4.frameElement==null&&n.documentElement}catch(b5){}if(b6&&b6.doScroll){(function i(){if(!bH.isReady){try{b6.doScroll("left")}catch(b8){return setTimeout(i,50)}bl();bH.ready()}})()}}}}return aj.promise(b7)};var aB=typeof undefined;var bg;for(bg in bH(C)){break}C.ownLast=bg!=="0";C.inlineBlockNeedsLayout=false;bH(function(){var b5,b6,e,i;e=n.getElementsByTagName("body")[0];if(!e||!e.style){return}b6=n.createElement("div");i=n.createElement("div");i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px";e.appendChild(i).appendChild(b6);if(typeof b6.style.zoom!==aB){b6.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1";C.inlineBlockNeedsLayout=b5=b6.offsetWidth===3;if(b5){e.style.zoom=1}}e.removeChild(i)});(function(){var b5=n.createElement("div");if(C.deleteExpando==null){C.deleteExpando=true;try{delete b5.test}catch(i){C.deleteExpando=false}}b5=null})();bH.acceptData=function(b5){var i=bH.noData[(b5.nodeName+" ").toLowerCase()],e=+b5.nodeType||1;return e!==1&&e!==9?false:!i||i!==true&&b5.getAttribute("classid")===i};var bx=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,aP=/([A-Z])/g;function bz(b6,b5,b7){if(b7===undefined&&b6.nodeType===1){var i="data-"+b5.replace(aP,"-$1").toLowerCase();b7=b6.getAttribute(i);if(typeof b7==="string"){try{b7=b7==="true"?true:b7==="false"?false:b7==="null"?null:+b7+""===b7?+b7:bx.test(b7)?bH.parseJSON(b7):b7}catch(b8){}bH.data(b6,b5,b7)}else{b7=undefined}}return b7}function P(i){var e;for(e in i){if(e==="data"&&bH.isEmptyObject(i[e])){continue}if(e!=="toJSON"){return false}}return true}function bb(b6,i,b8,b7){if(!bH.acceptData(b6)){return}var ca,b9,cb=bH.expando,cc=b6.nodeType,e=cc?bH.cache:b6,b5=cc?b6[cb]:b6[cb]&&cb;if((!b5||!e[b5]||(!b7&&!e[b5].data))&&b8===undefined&&typeof i==="string"){return}if(!b5){if(cc){b5=b6[cb]=aO.pop()||bH.guid++}else{b5=cb}}if(!e[b5]){e[b5]=cc?{}:{toJSON:bH.noop}}if(typeof i==="object"||typeof i==="function"){if(b7){e[b5]=bH.extend(e[b5],i)}else{e[b5].data=bH.extend(e[b5].data,i)}}b9=e[b5];if(!b7){if(!b9.data){b9.data={}}b9=b9.data}if(b8!==undefined){b9[bH.camelCase(i)]=b8}if(typeof i==="string"){ca=b9[i];if(ca==null){ca=b9[bH.camelCase(i)]}}else{ca=b9}return ca}function aa(b8,b6,e){if(!bH.acceptData(b8)){return}var ca,b7,b9=b8.nodeType,b5=b9?bH.cache:b8,cb=b9?b8[bH.expando]:bH.expando;if(!b5[cb]){return}if(b6){ca=e?b5[cb]:b5[cb].data;if(ca){if(!bH.isArray(b6)){if(b6 in ca){b6=[b6]}else{b6=bH.camelCase(b6);if(b6 in ca){b6=[b6]}else{b6=b6.split(" ")}}}else{b6=b6.concat(bH.map(b6,bH.camelCase))}b7=b6.length;while(b7--){delete ca[b6[b7]]}if(e?!P(ca):!bH.isEmptyObject(ca)){return}}}if(!e){delete b5[cb].data;if(!P(b5[cb])){return}}if(b9){bH.cleanData([b8],true)}else{if(C.deleteExpando||b5!=b5.window){delete b5[cb]}else{b5[cb]=null}}}bH.extend({cache:{},noData:{"applet ":true,"embed ":true,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){e=e.nodeType?bH.cache[e[bH.expando]]:e[bH.expando];return !!e&&!P(e)},data:function(i,e,b5){return bb(i,e,b5)},removeData:function(i,e){return aa(i,e)},_data:function(i,e,b5){return bb(i,e,b5,true)},_removeData:function(i,e){return aa(i,e,true)}});bH.fn.extend({data:function(b7,ca){var b6,b5,b9,b8=this[0],e=b8&&b8.attributes;if(b7===undefined){if(this.length){b9=bH.data(b8);if(b8.nodeType===1&&!bH._data(b8,"parsedAttrs")){b6=e.length;while(b6--){if(e[b6]){b5=e[b6].name;if(b5.indexOf("data-")===0){b5=bH.camelCase(b5.slice(5));bz(b8,b5,b9[b5])}}}bH._data(b8,"parsedAttrs",true)}}return b9}if(typeof b7==="object"){return this.each(function(){bH.data(this,b7)})}return arguments.length>1?this.each(function(){bH.data(this,b7,ca)}):b8?bz(b8,b7,bH.data(b8,b7)):undefined},removeData:function(e){return this.each(function(){bH.removeData(this,e)})}});bH.extend({queue:function(b5,i,b6){var e;if(b5){i=(i||"fx")+"queue";e=bH._data(b5,i);if(b6){if(!e||bH.isArray(b6)){e=bH._data(b5,i,bH.makeArray(b6))}else{e.push(b6)}}return e||[]}},dequeue:function(b8,b7){b7=b7||"fx";var i=bH.queue(b8,b7),b9=i.length,b6=i.shift(),e=bH._queueHooks(b8,b7),b5=function(){bH.dequeue(b8,b7)};if(b6==="inprogress"){b6=i.shift();b9--}if(b6){if(b7==="fx"){i.unshift("inprogress")}delete e.stop;b6.call(b8,b5,e)}if(!b9&&e){e.empty.fire()}},_queueHooks:function(b5,i){var e=i+"queueHooks";return bH._data(b5,e)||bH._data(b5,e,{empty:bH.Callbacks("once memory").add(function(){bH._removeData(b5,i+"queue");bH._removeData(b5,e)})})}});bH.fn.extend({queue:function(e,i){var b5=2;if(typeof e!=="string"){i=e;e="fx";b5--}if(arguments.length
a";C.leadingWhitespace=b7.firstChild.nodeType===3;C.tbody=!b7.getElementsByTagName("tbody").length;C.htmlSerialize=!!b7.getElementsByTagName("link").length;C.html5Clone=n.createElement("nav").cloneNode(true).outerHTML!=="<:nav>";i.type="checkbox";i.checked=true;b5.appendChild(i);C.appendChecked=i.checked;b7.innerHTML="";C.noCloneChecked=!!b7.cloneNode(true).lastChild.defaultValue;b5.appendChild(b7);b7.innerHTML="";C.checkClone=b7.cloneNode(true).cloneNode(true).lastChild.checked;C.noCloneEvent=true;if(b7.attachEvent){b7.attachEvent("onclick",function(){C.noCloneEvent=false});b7.cloneNode(true).click()}if(C.deleteExpando==null){C.deleteExpando=true;try{delete b7.test}catch(b6){C.deleteExpando=false}}})();(function(){var b5,e,b6=n.createElement("div");for(b5 in {submit:true,change:true,focusin:true}){e="on"+b5;if(!(C[b5+"Bubbles"]=e in a4)){b6.setAttribute(e,"t");C[b5+"Bubbles"]=b6.attributes[e].expando===false}}b6=null})();var bF=/^(?:input|select|textarea)$/i,a5=/^key/,bL=/^(?:mouse|pointer|contextmenu)|click/,bB=/^(?:focusinfocus|focusoutblur)$/,bw=/^([^.]*)(?:\.(.+)|)$/;function T(){return true}function Y(){return false}function al(){try{return n.activeElement}catch(e){}}bH.event={global:{},add:function(b7,cc,ch,b9,b8){var ca,ci,cj,b5,ce,cb,cg,b6,cf,e,i,cd=bH._data(b7);if(!cd){return}if(ch.handler){b5=ch;ch=b5.handler;b8=b5.selector}if(!ch.guid){ch.guid=bH.guid++}if(!(ci=cd.events)){ci=cd.events={}}if(!(cb=cd.handle)){cb=cd.handle=function(ck){return typeof bH!==aB&&(!ck||bH.event.triggered!==ck.type)?bH.event.dispatch.apply(cb.elem,arguments):undefined};cb.elem=b7}cc=(cc||"").match(aE)||[""];cj=cc.length;while(cj--){ca=bw.exec(cc[cj])||[];cf=i=ca[1];e=(ca[2]||"").split(".").sort();if(!cf){continue}ce=bH.event.special[cf]||{};cf=(b8?ce.delegateType:ce.bindType)||cf;ce=bH.event.special[cf]||{};cg=bH.extend({type:cf,origType:i,data:b9,handler:ch,guid:ch.guid,selector:b8,needsContext:b8&&bH.expr.match.needsContext.test(b8),namespace:e.join(".")},b5);if(!(b6=ci[cf])){b6=ci[cf]=[];b6.delegateCount=0;if(!ce.setup||ce.setup.call(b7,b9,e,cb)===false){if(b7.addEventListener){b7.addEventListener(cf,cb,false)}else{if(b7.attachEvent){b7.attachEvent("on"+cf,cb)}}}}if(ce.add){ce.add.call(b7,cg);if(!cg.handler.guid){cg.handler.guid=ch.guid}}if(b8){b6.splice(b6.delegateCount++,0,cg)}else{b6.push(cg)}bH.event.global[cf]=true}b7=null},remove:function(b6,cc,cj,b7,cb){var b9,cg,ca,b8,ci,ch,ce,b5,cf,e,i,cd=bH.hasData(b6)&&bH._data(b6);if(!cd||!(ch=cd.events)){return}cc=(cc||"").match(aE)||[""];ci=cc.length;while(ci--){ca=bw.exec(cc[ci])||[];cf=i=ca[1];e=(ca[2]||"").split(".").sort();if(!cf){for(cf in ch){bH.event.remove(b6,cf+cc[ci],cj,b7,true)}continue}ce=bH.event.special[cf]||{};cf=(b7?ce.delegateType:ce.bindType)||cf;b5=ch[cf]||[];ca=ca[2]&&new RegExp("(^|\\.)"+e.join("\\.(?:.*\\.|)")+"(\\.|$)");b8=b9=b5.length;while(b9--){cg=b5[b9];if((cb||i===cg.origType)&&(!cj||cj.guid===cg.guid)&&(!ca||ca.test(cg.namespace))&&(!b7||b7===cg.selector||b7==="**"&&cg.selector)){b5.splice(b9,1);if(cg.selector){b5.delegateCount--}if(ce.remove){ce.remove.call(b6,cg)}}}if(b8&&!b5.length){if(!ce.teardown||ce.teardown.call(b6,e,cd.handle)===false){bH.removeEvent(b6,cf,cd.handle)}delete ch[cf]}}if(bH.isEmptyObject(ch)){delete cd.handle;bH._removeData(b6,"events")}},trigger:function(b5,cc,b8,cj){var cd,b7,ch,ci,cf,cb,ca,b9=[b8||n],cg=J.call(b5,"type")?b5.type:b5,b6=J.call(b5,"namespace")?b5.namespace.split("."):[];ch=cb=b8=b8||n;if(b8.nodeType===3||b8.nodeType===8){return}if(bB.test(cg+bH.event.triggered)){return}if(cg.indexOf(".")>=0){b6=cg.split(".");cg=b6.shift();b6.sort()}b7=cg.indexOf(":")<0&&"on"+cg;b5=b5[bH.expando]?b5:new bH.Event(cg,typeof b5==="object"&&b5);b5.isTrigger=cj?2:3;b5.namespace=b6.join(".");b5.namespace_re=b5.namespace?new RegExp("(^|\\.)"+b6.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;b5.result=undefined;if(!b5.target){b5.target=b8}cc=cc==null?[b5]:bH.makeArray(cc,[b5]);cf=bH.event.special[cg]||{};if(!cj&&cf.trigger&&cf.trigger.apply(b8,cc)===false){return}if(!cj&&!cf.noBubble&&!bH.isWindow(b8)){ci=cf.delegateType||cg;if(!bB.test(ci+cg)){ch=ch.parentNode}for(;ch;ch=ch.parentNode){b9.push(ch);cb=ch}if(cb===(b8.ownerDocument||n)){b9.push(cb.defaultView||cb.parentWindow||a4)}}ca=0;while((ch=b9[ca++])&&!b5.isPropagationStopped()){b5.type=ca>1?ci:cf.bindType||cg;cd=(bH._data(ch,"events")||{})[b5.type]&&bH._data(ch,"handle");if(cd){cd.apply(ch,cc)}cd=b7&&ch[b7];if(cd&&cd.apply&&bH.acceptData(ch)){b5.result=cd.apply(ch,cc);if(b5.result===false){b5.preventDefault()}}}b5.type=cg;if(!cj&&!b5.isDefaultPrevented()){if((!cf._default||cf._default.apply(b9.pop(),cc)===false)&&bH.acceptData(b8)){if(b7&&b8[cg]&&!bH.isWindow(b8)){cb=b8[b7];if(cb){b8[b7]=null}bH.event.triggered=cg;try{b8[cg]()}catch(ce){}bH.event.triggered=undefined;if(cb){b8[b7]=cb}}}}return b5.result},dispatch:function(e){e=bH.event.fix(e);var b8,b9,cd,b5,b7,cc=[],cb=O.call(arguments),b6=(bH._data(this,"events")||{})[e.type]||[],ca=bH.event.special[e.type]||{};cb[0]=e;e.delegateTarget=this;if(ca.preDispatch&&ca.preDispatch.call(this,e)===false){return}cc=bH.event.handlers.call(this,e,b6);b8=0;while((b5=cc[b8++])&&!e.isPropagationStopped()){e.currentTarget=b5.elem;b7=0;while((cd=b5.handlers[b7++])&&!e.isImmediatePropagationStopped()){if(!e.namespace_re||e.namespace_re.test(cd.namespace)){e.handleObj=cd;e.data=cd.data;b9=((bH.event.special[cd.origType]||{}).handle||cd.handler).apply(b5.elem,cb);if(b9!==undefined){if((e.result=b9)===false){e.preventDefault();e.stopPropagation()}}}}}if(ca.postDispatch){ca.postDispatch.call(this,e)}return e.result},handlers:function(e,b6){var b5,cb,b9,b8,ca=[],b7=b6.delegateCount,cc=e.target;if(b7&&cc.nodeType&&(!e.button||e.type!=="click")){for(;cc!=this;cc=cc.parentNode||this){if(cc.nodeType===1&&(cc.disabled!==true||e.type!=="click")){b9=[];for(b8=0;b8=0:bH.find(b5,this,null,[cc]).length}if(b9[b5]){b9.push(cb)}}if(b9.length){ca.push({elem:cc,handlers:b9})}}}}if(b7]","i"),b4=/^\s+/,aG=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,o=/<([\w:]+)/,bZ=/\s*$/g,V={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:C.htmlSerialize?[0,"",""]:[1,"X
","
"]},aS=A(n),k=aS.appendChild(n.createElement("div"));V.optgroup=V.option;V.tbody=V.tfoot=V.colgroup=V.caption=V.thead;V.th=V.td;function l(b7,e){var b5,b8,b6=0,b9=typeof b7.getElementsByTagName!==aB?b7.getElementsByTagName(e||"*"):typeof b7.querySelectorAll!==aB?b7.querySelectorAll(e||"*"):undefined;if(!b9){for(b9=[],b5=b7.childNodes||b7;(b8=b5[b6])!=null;b6++){if(!e||bH.nodeName(b8,e)){b9.push(b8)}else{bH.merge(b9,l(b8,e))}}}return e===undefined||e&&bH.nodeName(b7,e)?bH.merge([b7],b9):b9}function bX(e){if(aL.test(e.type)){e.defaultChecked=e.checked}}function a2(i,e){return bH.nodeName(i,"table")&&bH.nodeName(e.nodeType!==11?e:e.firstChild,"tr")?i.getElementsByTagName("tbody")[0]||i.appendChild(i.ownerDocument.createElement("tbody")):i}function t(e){e.type=(bH.find.attr(e,"type")!==null)+"/"+e.type;return e}function be(i){var e=aq.exec(i.type);if(e){i.type=e[1]}else{i.removeAttribute("type")}return i}function bt(e,b6){var b7,b5=0;for(;(b7=e[b5])!=null;b5++){bH._data(b7,"globalEval",!b6||bH._data(b6[b5],"globalEval"))}}function ar(cb,b5){if(b5.nodeType!==1||!bH.hasData(cb)){return}var b8,b7,e,ca=bH._data(cb),b9=bH._data(b5,ca),b6=ca.events;if(b6){delete b9.handle;b9.events={};for(b8 in b6){for(b7=0,e=b6[b8].length;b7")){cc=b5.cloneNode(true)}else{k.innerHTML=b5.outerHTML;k.removeChild(cc=k.firstChild)}if((!C.noCloneEvent||!C.noCloneChecked)&&(b5.nodeType===1||b5.nodeType===11)&&!bH.isXMLDoc(b5)){b9=l(cc);ca=l(b5);for(b8=0;(b6=ca[b8])!=null;++b8){if(b9[b8]){S(b6,b9[b8])}}}if(b7){if(e){ca=ca||l(b5);b9=b9||l(cc);for(b8=0;(b6=ca[b8])!=null;b8++){ar(b6,b9[b8])}}else{ar(b5,cc)}}b9=l(cc,"script");if(b9.length>0){bt(b9,!cb&&l(b5,"script"))}b9=ca=b6=null;return cc},buildFragment:function(b5,b7,cc,ch){var cd,b9,cb,cg,ci,cf,b6,ca=b5.length,b8=A(b7),e=[],ce=0;for(;ce")+b6[2];cd=b6[0];while(cd--){cg=cg.lastChild}if(!C.leadingWhitespace&&b4.test(b9)){e.push(b7.createTextNode(b4.exec(b9)[0]))}if(!C.tbody){b9=ci==="table"&&!bZ.test(b9)?cg.firstChild:b6[1]===""&&!bZ.test(b9)?cg:0;cd=b9&&b9.childNodes.length;while(cd--){if(bH.nodeName((cf=b9.childNodes[cd]),"tbody")&&!cf.childNodes.length){b9.removeChild(cf)}}}bH.merge(e,cg.childNodes);cg.textContent="";while(cg.firstChild){cg.removeChild(cg.firstChild)}cg=b8.lastChild}}}}if(cg){b8.removeChild(cg)}if(!C.appendChecked){bH.grep(l(e,"input"),bX)}ce=0;while((b9=e[ce++])){if(ch&&bH.inArray(b9,ch)!==-1){continue}cb=bH.contains(b9.ownerDocument,b9);cg=l(b8.appendChild(b9),"script");if(cb){bt(cg)}if(cc){cd=0;while((b9=cg[cd++])){if(bA.test(b9.type||"")){cc.push(b9)}}}}cg=null;return b8},cleanData:function(b5,cd){var b7,cc,b6,b8,b9=0,ce=bH.expando,e=bH.cache,ca=C.deleteExpando,cb=bH.event.special;for(;(b7=b5[b9])!=null;b9++){if(cd||bH.acceptData(b7)){b6=b7[ce];b8=b6&&e[b6];if(b8){if(b8.events){for(cc in b8.events){if(cb[cc]){bH.event.remove(b7,cc)}else{bH.removeEvent(b7,cc,b8.handle)}}}if(e[b6]){delete e[b6];if(ca){delete b7[ce]}else{if(typeof b7.removeAttribute!==aB){b7.removeAttribute(ce)}else{b7[ce]=null}}aO.push(b6)}}}}}});bH.fn.extend({text:function(e){return aA(this,function(i){return i===undefined?bH.text(this):this.empty().append((this[0]&&this[0].ownerDocument||n).createTextNode(i))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var i=a2(this,e);i.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var i=a2(this,e);i.insertBefore(e,i.firstChild)}})},before:function(){return this.domManip(arguments,function(e){if(this.parentNode){this.parentNode.insertBefore(e,this)}})},after:function(){return this.domManip(arguments,function(e){if(this.parentNode){this.parentNode.insertBefore(e,this.nextSibling)}})},remove:function(e,b8){var b7,b5=e?bH.filter(e,this):this,b6=0;for(;(b7=b5[b6])!=null;b6++){if(!b8&&b7.nodeType===1){bH.cleanData(l(b7))}if(b7.parentNode){if(b8&&bH.contains(b7.ownerDocument,b7)){bt(l(b7,"script"))}b7.parentNode.removeChild(b7)}}return this},empty:function(){var b5,e=0;for(;(b5=this[e])!=null;e++){if(b5.nodeType===1){bH.cleanData(l(b5,false))}while(b5.firstChild){b5.removeChild(b5.firstChild)}if(b5.options&&bH.nodeName(b5,"select")){b5.options.length=0}}return this},clone:function(i,e){i=i==null?false:i;e=e==null?i:e;return this.map(function(){return bH.clone(this,i,e)})},html:function(e){return aA(this,function(b8){var b7=this[0]||{},b6=0,b5=this.length;if(b8===undefined){return b7.nodeType===1?b7.innerHTML.replace(aC,""):undefined}if(typeof b8==="string"&&!am.test(b8)&&(C.htmlSerialize||!L.test(b8))&&(C.leadingWhitespace||!b4.test(b8))&&!V[(o.exec(b8)||["",""])[1].toLowerCase()]){b8=b8.replace(aG,"<$1>");try{for(;b61&&typeof cd==="string"&&!C.checkClone&&bV.test(cd))){return this.each(function(ci){var i=ce.eq(ci);if(b5){cc[0]=cd.call(this,ci,i.html())}i.domManip(cc,ch)})}if(b7){cb=bH.buildFragment(cc,this[0].ownerDocument,false,this);ca=cb.firstChild;if(cb.childNodes.length===1){cb=ca}if(ca){b8=bH.map(l(cb,"script"),t);e=b8.length;for(;b9")).appendTo(i.documentElement);i=(aH[0].contentWindow||aH[0].contentDocument).document;i.write();i.close();e=a3(b5,i);aH.detach()}bk[b5]=e}return e}(function(){var e;C.shrinkWrapBlocks=function(){if(e!=null){return e}e=false;var b6,i,b5;i=n.getElementsByTagName("body")[0];if(!i||!i.style){return}b6=n.createElement("div");b5=n.createElement("div");b5.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px";i.appendChild(b5).appendChild(b6);if(typeof b6.style.zoom!==aB){b6.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1";b6.appendChild(n.createElement("div")).style.width="5px";e=b6.offsetWidth!==3}i.removeChild(b5);return e}})();var aY=(/^margin/);var X=new RegExp("^("+aD+")(?!px)[a-z%]+$","i");var bp,F,bn=/^(top|right|bottom|left)$/;if(a4.getComputedStyle){bp=function(e){if(e.ownerDocument.defaultView.opener){return e.ownerDocument.defaultView.getComputedStyle(e,null)}return a4.getComputedStyle(e,null)};F=function(ca,i,b9){var b7,b6,b8,e,b5=ca.style;b9=b9||bp(ca);e=b9?b9.getPropertyValue(i)||b9[i]:undefined;if(b9){if(e===""&&!bH.contains(ca.ownerDocument,ca)){e=bH.style(ca,i)}if(X.test(e)&&aY.test(i)){b7=b5.width;b6=b5.minWidth;b8=b5.maxWidth;b5.minWidth=b5.maxWidth=b5.width=e;e=b9.width;b5.width=b7;b5.minWidth=b6;b5.maxWidth=b8}}return e===undefined?e:e+""}}else{if(n.documentElement.currentStyle){bp=function(e){return e.currentStyle};F=function(b9,b6,b8){var ca,i,e,b5,b7=b9.style;b8=b8||bp(b9);b5=b8?b8[b6]:undefined;if(b5==null&&b7&&b7[b6]){b5=b7[b6]}if(X.test(b5)&&!bn.test(b6)){ca=b7.left;i=b9.runtimeStyle;e=i&&i.left;if(e){i.left=b9.currentStyle.left}b7.left=b6==="fontSize"?"1em":b5;b5=b7.pixelLeft+"px";b7.left=ca;if(e){i.left=e}}return b5===undefined?b5:b5+""||"auto"}}}function a6(e,i){return{get:function(){var b5=e();if(b5==null){return}if(b5){delete this.get;return}return(this.get=i).apply(this,arguments)}}}(function(){var ca,b8,b6,b9,b5,b7,i;ca=n.createElement("div");ca.innerHTML="
a";b6=ca.getElementsByTagName("a")[0];b8=b6&&b6.style;if(!b8){return}b8.cssText="float:left;opacity:.5";C.opacity=b8.opacity==="0.5";C.cssFloat=!!b8.cssFloat;ca.style.backgroundClip="content-box";ca.cloneNode(true).style.backgroundClip="";C.clearCloneStyle=ca.style.backgroundClip==="content-box";C.boxSizing=b8.boxSizing===""||b8.MozBoxSizing===""||b8.WebkitBoxSizing==="";bH.extend(C,{reliableHiddenOffsets:function(){if(b7==null){e()}return b7},boxSizingReliable:function(){if(b5==null){e()}return b5},pixelPosition:function(){if(b9==null){e()}return b9},reliableMarginRight:function(){if(i==null){e()}return i}});function e(){var ce,cb,cc,cd;cb=n.getElementsByTagName("body")[0];if(!cb||!cb.style){return}ce=n.createElement("div");cc=n.createElement("div");cc.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px";cb.appendChild(cc).appendChild(ce);ce.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute";b9=b5=false;i=true;if(a4.getComputedStyle){b9=(a4.getComputedStyle(ce,null)||{}).top!=="1%";b5=(a4.getComputedStyle(ce,null)||{width:"4px"}).width==="4px";cd=ce.appendChild(n.createElement("div"));cd.style.cssText=ce.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0";cd.style.marginRight=cd.style.width="0";ce.style.width="1px";i=!parseFloat((a4.getComputedStyle(cd,null)||{}).marginRight);ce.removeChild(cd)}ce.innerHTML="
t
";cd=ce.getElementsByTagName("td");cd[0].style.cssText="margin:0;border:0;padding:0;display:none";b7=cd[0].offsetHeight===0;if(b7){cd[0].style.display="";cd[1].style.display="none";b7=cd[0].offsetHeight===0}cb.removeChild(cc)}})();bH.swap=function(b8,b7,b9,b6){var b5,i,e={};for(i in b7){e[i]=b8.style[i];b8.style[i]=b7[i]}b5=b9.apply(b8,b6||[]);for(i in b7){b8.style[i]=e[i]}return b5};var bi=/alpha\([^)]*\)/i,aT=/opacity\s*=\s*([^)]*)/,G=/^(none|table(?!-c[ea]).+)/,ba=new RegExp("^("+aD+")(.*)$","i"),U=new RegExp("^([+-])=("+aD+")","i"),bd={position:"absolute",visibility:"hidden",display:"block"},bC={letterSpacing:"0",fontWeight:"400"},av=["Webkit","O","Moz","ms"];function c(b7,b5){if(b5 in b7){return b5}var b8=b5.charAt(0).toUpperCase()+b5.slice(1),e=b5,b6=av.length;while(b6--){b5=av[b6]+b8;if(b5 in b7){return b5}}return e}function r(b9,e){var ca,b7,b8,i=[],b5=0,b6=b9.length;for(;b5=1||b8==="")&&bH.trim(b5.replace(bi,""))===""&&b6.removeAttribute){b6.removeAttribute("filter");if(b8===""||i&&!i.filter){return}}b6.filter=bi.test(b5)?b5.replace(bi,e):b5+" "+e}}}bH.cssHooks.marginRight=a6(C.reliableMarginRight,function(i,e){if(e){return bH.swap(i,{display:"inline-block"},F,[i,"marginRight"])}});bH.each({margin:"",padding:"",border:"Width"},function(e,i){bH.cssHooks[e+i]={expand:function(b7){var b6=0,b5={},b8=typeof b7==="string"?b7.split(" "):[b7];for(;b6<4;b6++){b5[e+bS[b6]+i]=b8[b6]||b8[b6-2]||b8[0]}return b5}};if(!aY.test(e)){bH.cssHooks[e+i].set=aM}});bH.fn.extend({css:function(e,i){return aA(this,function(b9,b6,ca){var b8,b5,cb={},b7=0;if(bH.isArray(b6)){b8=bp(b9);b5=b6.length;for(;b71)},show:function(){return r(this,true)},hide:function(){return r(this)},toggle:function(e){if(typeof e==="boolean"){return e?this.show():this.hide()}return this.each(function(){if(R(this)){bH(this).show()}else{bH(this).hide()}})}});function I(b5,i,b7,e,b6){return new I.prototype.init(b5,i,b7,e,b6)}bH.Tween=I;I.prototype={constructor:I,init:function(b6,i,b8,e,b7,b5){this.elem=b6;this.prop=b8;this.easing=b7||"swing";this.options=i;this.start=this.now=this.cur();this.end=e;this.unit=b5||(bH.cssNumber[b8]?"":"px")},cur:function(){var e=I.propHooks[this.prop];return e&&e.get?e.get(this):I.propHooks._default.get(this)},run:function(b5){var i,e=I.propHooks[this.prop];if(this.options.duration){this.pos=i=bH.easing[this.easing](b5,this.options.duration*b5,0,1,this.options.duration)}else{this.pos=i=b5}this.now=(this.end-this.start)*i+this.start;if(this.options.step){this.options.step.call(this.elem,this.now,this)}if(e&&e.set){e.set(this)}else{I.propHooks._default.set(this)}return this}};I.prototype.init.prototype=I.prototype;I.propHooks={_default:{get:function(i){var e;if(i.elem[i.prop]!=null&&(!i.elem.style||i.elem.style[i.prop]==null)){return i.elem[i.prop]}e=bH.css(i.elem,i.prop,"");return !e||e==="auto"?0:e},set:function(e){if(bH.fx.step[e.prop]){bH.fx.step[e.prop](e)}else{if(e.elem.style&&(e.elem.style[bH.cssProps[e.prop]]!=null||bH.cssHooks[e.prop])){bH.style(e.elem,e.prop,e.now+e.unit)}else{e.elem[e.prop]=e.now}}}}};I.propHooks.scrollTop=I.propHooks.scrollLeft={set:function(e){if(e.elem.nodeType&&e.elem.parentNode){e.elem[e.prop]=e.now}}};bH.easing={linear:function(e){return e},swing:function(e){return 0.5-Math.cos(e*Math.PI)/2}};bH.fx=I.prototype.init;bH.fx.step={};var M,ad,bQ=/^(?:toggle|show|hide)$/,bI=new RegExp("^(?:([+-])=|)("+aD+")([a-z%]*)$","i"),bO=/queueHooks$/,aF=[h],a1={"*":[function(e,b9){var cb=this.createTween(e,b9),b7=cb.cur(),b6=bI.exec(b9),ca=b6&&b6[3]||(bH.cssNumber[e]?"":"px"),i=(bH.cssNumber[e]||ca!=="px"&&+b7)&&bI.exec(bH.css(cb.elem,e)),b5=1,b8=20;if(i&&i[3]!==ca){ca=ca||i[3];b6=b6||[];i=+b7||1;do{b5=b5||".5";i=i/b5;bH.style(cb.elem,e,i+ca)}while(b5!==(b5=cb.cur()/b7)&&b5!==1&&--b8)}if(b6){i=cb.start=+i||+b7||0;cb.unit=ca;cb.end=b6[1]?i+(b6[1]+1)*b6[2]:+b6[2]}return cb}]};function bm(){setTimeout(function(){M=undefined});return(M=bH.now())}function bG(b6,b8){var b7,e={height:b6},b5=0;b8=b8?1:0;for(;b5<4;b5+=2-b8){b7=bS[b5];e["margin"+b7]=e["padding"+b7]=b6}if(b8){e.opacity=e.width=b6}return e}function bc(b7,b9,b6){var i,b8=(a1[b9]||[]).concat(a1["*"]),e=0,b5=b8.length;for(;e
a";i=b7.getElementsByTagName("a")[0];e=n.createElement("select");b6=e.appendChild(n.createElement("option"));b5=b7.getElementsByTagName("input")[0];i.style.cssText="top:1px";C.getSetAttribute=b7.className!=="t";C.style=/top/.test(i.getAttribute("style"));C.hrefNormalized=i.getAttribute("href")==="/a";C.checkOn=!!b5.value;C.optSelected=b6.selected;C.enctype=!!n.createElement("form").enctype;e.disabled=true;C.optDisabled=!b6.disabled;b5=n.createElement("input");b5.setAttribute("value","");C.input=b5.getAttribute("value")==="";b5.value="t";b5.setAttribute("type","radio");C.radioValue=b5.value==="t"})();var ak=/\r/g;bH.fn.extend({val:function(b6){var e,i,b7,b5=this[0];if(!arguments.length){if(b5){e=bH.valHooks[b5.type]||bH.valHooks[b5.nodeName.toLowerCase()];if(e&&"get" in e&&(i=e.get(b5,"value"))!==undefined){return i}i=b5.value;return typeof i==="string"?i.replace(ak,""):i==null?"":i}return}b7=bH.isFunction(b6);return this.each(function(b8){var b9;if(this.nodeType!==1){return}if(b7){b9=b6.call(this,b8,bH(this).val())}else{b9=b6}if(b9==null){b9=""}else{if(typeof b9==="number"){b9+=""}else{if(bH.isArray(b9)){b9=bH.map(b9,function(ca){return ca==null?"":ca+""})}}}e=bH.valHooks[this.type]||bH.valHooks[this.nodeName.toLowerCase()];if(!e||!("set" in e)||e.set(this,b9,"value")===undefined){this.value=b9}})}});bH.extend({valHooks:{option:{get:function(e){var i=bH.find.attr(e,"value");return i!=null?i:bH.trim(bH.text(e))}},select:{get:function(e){var ca,b6,cc=e.options,b8=e.selectedIndex,b7=e.type==="select-one"||b8<0,cb=b7?null:[],b9=b7?b8+1:cc.length,b5=b8<0?b9:b7?b8:0;for(;b5=0){try{b8.selected=cb=true}catch(b5){b8.scrollHeight}}else{b8.selected=false}}if(!cb){b9.selectedIndex=-1}return b6}}}});bH.each(["radio","checkbox"],function(){bH.valHooks[this]={set:function(e,i){if(bH.isArray(i)){return(e.checked=bH.inArray(bH(e).val(),i)>=0)}}};if(!C.checkOn){bH.valHooks[this].get=function(e){return e.getAttribute("value")===null?"on":e.value}}});var a9,b2,bN=bH.expr.attrHandle,ap=/^(?:checked|selected)$/i,bM=C.getSetAttribute,bE=C.input;bH.fn.extend({attr:function(e,i){return aA(this,bH.attr,e,i,arguments.length>1)},removeAttr:function(e){return this.each(function(){bH.removeAttr(this,e)})}});bH.extend({attr:function(b7,b6,b8){var e,b5,i=b7.nodeType;if(!b7||i===3||i===8||i===2){return}if(typeof b7.getAttribute===aB){return bH.prop(b7,b6,b8)}if(i!==1||!bH.isXMLDoc(b7)){b6=b6.toLowerCase();e=bH.attrHooks[b6]||(bH.expr.match.bool.test(b6)?b2:a9)}if(b8!==undefined){if(b8===null){bH.removeAttr(b7,b6)}else{if(e&&"set" in e&&(b5=e.set(b7,b8,b6))!==undefined){return b5}else{b7.setAttribute(b6,b8+"");return b8}}}else{if(e&&"get" in e&&(b5=e.get(b7,b6))!==null){return b5}else{b5=bH.find.attr(b7,b6);return b5==null?undefined:b5}}},removeAttr:function(b6,b8){var e,b7,b5=0,b9=b8&&b8.match(aE);if(b9&&b6.nodeType===1){while((e=b9[b5++])){b7=bH.propFix[e]||e;if(bH.expr.match.bool.test(e)){if(bE&&bM||!ap.test(e)){b6[b7]=false}else{b6[bH.camelCase("default-"+e)]=b6[b7]=false}}else{bH.attr(b6,e,"")}b6.removeAttribute(bM?e:b7)}}},attrHooks:{type:{set:function(e,i){if(!C.radioValue&&i==="radio"&&bH.nodeName(e,"input")){var b5=e.value;e.setAttribute("type",i);if(b5){e.value=b5}return i}}}}});b2={set:function(i,b5,e){if(b5===false){bH.removeAttr(i,e)}else{if(bE&&bM||!ap.test(e)){i.setAttribute(!bM&&bH.propFix[e]||e,e)}else{i[bH.camelCase("default-"+e)]=i[e]=true}}return e}};bH.each(bH.expr.match.bool.source.match(/\w+/g),function(b6,b5){var e=bN[b5]||bH.find.attr;bN[b5]=bE&&bM||!ap.test(b5)?function(b8,b7,ca){var i,b9;if(!ca){b9=bN[b7];bN[b7]=i;i=e(b8,b7,ca)!=null?b7.toLowerCase():null;bN[b7]=b9}return i}:function(b7,i,b8){if(!b8){return b7[bH.camelCase("default-"+i)]?i.toLowerCase():null}}});if(!bE||!bM){bH.attrHooks.value={set:function(i,b5,e){if(bH.nodeName(i,"input")){i.defaultValue=b5}else{return a9&&a9.set(i,b5,e)}}}}if(!bM){a9={set:function(b5,b6,i){var e=b5.getAttributeNode(i);if(!e){b5.setAttributeNode((e=b5.ownerDocument.createAttribute(i)))}e.value=b6+="";if(i==="value"||b6===b5.getAttribute(i)){return b6}}};bN.id=bN.name=bN.coords=function(b5,i,b6){var e;if(!b6){return(e=b5.getAttributeNode(i))&&e.value!==""?e.value:null}};bH.valHooks.button={get:function(b5,i){var e=b5.getAttributeNode(i);if(e&&e.specified){return e.value}},set:a9.set};bH.attrHooks.contenteditable={set:function(i,b5,e){a9.set(i,b5===""?false:b5,e)}};bH.each(["width","height"],function(b5,e){bH.attrHooks[e]={set:function(i,b6){if(b6===""){i.setAttribute(e,"auto");return b6}}}})}if(!C.style){bH.attrHooks.style={get:function(e){return e.style.cssText||undefined},set:function(e,i){return(e.style.cssText=i+"")}}}var aI=/^(?:input|select|textarea|button|object)$/i,E=/^(?:a|area)$/i;bH.fn.extend({prop:function(e,i){return aA(this,bH.prop,e,i,arguments.length>1)},removeProp:function(e){e=bH.propFix[e]||e;return this.each(function(){try{this[e]=undefined;delete this[e]}catch(i){}})}});bH.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(b8,b6,b9){var b5,e,b7,i=b8.nodeType;if(!b8||i===3||i===8||i===2){return}b7=i!==1||!bH.isXMLDoc(b8);if(b7){b6=bH.propFix[b6]||b6;e=bH.propHooks[b6]}if(b9!==undefined){return e&&"set" in e&&(b5=e.set(b8,b9,b6))!==undefined?b5:(b8[b6]=b9)}else{return e&&"get" in e&&(b5=e.get(b8,b6))!==null?b5:b8[b6]}},propHooks:{tabIndex:{get:function(i){var e=bH.find.attr(i,"tabindex");return e?parseInt(e,10):aI.test(i.nodeName)||E.test(i.nodeName)&&i.href?0:-1}}}});if(!C.hrefNormalized){bH.each(["href","src"],function(b5,e){bH.propHooks[e]={get:function(i){return i.getAttribute(e,4)}}})}if(!C.optSelected){bH.propHooks.selected={get:function(i){var e=i.parentNode;if(e){e.selectedIndex;if(e.parentNode){e.parentNode.selectedIndex}}return null}}}bH.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){bH.propFix[this.toLowerCase()]=this});if(!C.enctype){bH.propFix.enctype="encoding"}var bK=/[\t\r\n\f]/g;bH.fn.extend({addClass:function(cc){var b6,b5,cd,ca,b7,e,b8=0,b9=this.length,cb=typeof cc==="string"&&cc;if(bH.isFunction(cc)){return this.each(function(i){bH(this).addClass(cc.call(this,i,this.className))})}if(cb){b6=(cc||"").match(aE)||[];for(;b8=0){cd=cd.replace(" "+ca+" "," ")}}e=cc?bH.trim(cd):"";if(b5.className!==e){b5.className=e}}}}return this},toggleClass:function(b5,e){var i=typeof b5;if(typeof e==="boolean"&&i==="string"){return e?this.addClass(b5):this.removeClass(b5)}if(bH.isFunction(b5)){return this.each(function(b6){bH(this).toggleClass(b5.call(this,b6,this.className,e),e)})}return this.each(function(){if(i==="string"){var b8,b7=0,b6=bH(this),b9=b5.match(aE)||[];while((b8=b9[b7++])){if(b6.hasClass(b8)){b6.removeClass(b8)}else{b6.addClass(b8)}}}else{if(i===aB||i==="boolean"){if(this.className){bH._data(this,"__className__",this.className)}this.className=this.className||b5===false?"":bH._data(this,"__className__")||""}}})},hasClass:function(e){var b7=" "+e+" ",b6=0,b5=this.length;for(;b6=0){return true}}return false}});bH.each(("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu").split(" "),function(b5,e){bH.fn[e]=function(b6,i){return arguments.length>0?this.on(e,null,b6,i):this.trigger(e)}});bH.fn.extend({hover:function(e,i){return this.mouseenter(e).mouseleave(i||e)},bind:function(e,b5,i){return this.on(e,null,b5,i)},unbind:function(e,i){return this.off(e,null,i)},delegate:function(e,i,b6,b5){return this.on(i,e,b6,b5)},undelegate:function(e,i,b5){return arguments.length===1?this.off(e,"**"):this.off(i,e||"**",b5)}});var bo=bH.now();var bP=(/\?/);var a0=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;bH.parseJSON=function(e){if(a4.JSON&&a4.JSON.parse){return a4.JSON.parse(e+"")}var b6,b5=null,i=bH.trim(e+"");return i&&!bH.trim(i.replace(a0,function(b9,b7,b8,ca){if(b6&&b7){b5=0}if(b5===0){return b9}b6=b8||b7;b5+=!ca-!b8;return""}))?(Function("return "+i))():bH.error("Invalid JSON: "+e)};bH.parseXML=function(b6){var i,b5;if(!b6||typeof b6!=="string"){return null}try{if(a4.DOMParser){b5=new DOMParser();i=b5.parseFromString(b6,"text/xml")}else{i=new ActiveXObject("Microsoft.XMLDOM");i.async="false";i.loadXML(b6)}}catch(b7){i=undefined}if(!i||!i.documentElement||i.getElementsByTagName("parsererror").length){bH.error("Invalid XML: "+b6)}return i};var b3,Z,ao=/#.*$/,Q=/([?&])_=[^&]*/,ag=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,B=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,q=/^(?:GET|HEAD)$/,aJ=/^\/\//,aU=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,v={},a8={},aW="*/".concat("*");try{Z=location.href}catch(bh){Z=n.createElement("a");Z.href="";Z=Z.href}b3=aU.exec(Z.toLowerCase())||[];function bJ(e){return function(b8,b9){if(typeof b8!=="string"){b9=b8;b8="*"}var b5,b6=0,b7=b8.toLowerCase().match(aE)||[];if(bH.isFunction(b9)){while((b5=b7[b6++])){if(b5.charAt(0)==="+"){b5=b5.slice(1)||"*";(e[b5]=e[b5]||[]).unshift(b9)}else{(e[b5]=e[b5]||[]).push(b9)}}}}}function p(e,b5,b9,b6){var i={},b7=(e===a8);function b8(ca){var cb;i[ca]=true;bH.each(e[ca]||[],function(cd,cc){var ce=cc(b5,b9,b6);if(typeof ce==="string"&&!b7&&!i[ce]){b5.dataTypes.unshift(ce);b8(ce);return false}else{if(b7){return !(cb=ce)}}});return cb}return b8(b5.dataTypes[0])||!i["*"]&&b8("*")}function s(b5,b6){var e,i,b7=bH.ajaxSettings.flatOptions||{};for(i in b6){if(b6[i]!==undefined){(b7[i]?b5:(e||(e={})))[i]=b6[i]}}if(e){bH.extend(true,b5,e)}return b5}function g(cb,ca,b7){var e,b6,b5,b8,i=cb.contents,b9=cb.dataTypes;while(b9[0]==="*"){b9.shift();if(b6===undefined){b6=cb.mimeType||ca.getResponseHeader("Content-Type")}}if(b6){for(b8 in i){if(i[b8]&&i[b8].test(b6)){b9.unshift(b8);break}}}if(b9[0] in b7){b5=b9[0]}else{for(b8 in b7){if(!b9[0]||cb.converters[b8+" "+b9[0]]){b5=b8;break}if(!e){e=b8}}b5=b5||e}if(b5){if(b5!==b9[0]){b9.unshift(b5)}return b7[b5]}}function af(cf,b7,cc,b5){var i,ca,cd,b8,b6,ce={},cb=cf.dataTypes.slice();if(cb[1]){for(cd in cf.converters){ce[cd.toLowerCase()]=cf.converters[cd]}}ca=cb.shift();while(ca){if(cf.responseFields[ca]){cc[cf.responseFields[ca]]=b7}if(!b6&&b5&&cf.dataFilter){b7=cf.dataFilter(b7,cf.dataType)}b6=ca;ca=cb.shift();if(ca){if(ca==="*"){ca=b6}else{if(b6!=="*"&&b6!==ca){cd=ce[b6+" "+ca]||ce["* "+ca];if(!cd){for(i in ce){b8=i.split(" ");if(b8[1]===ca){cd=ce[b6+" "+b8[0]]||ce["* "+b8[0]];if(cd){if(cd===true){cd=ce[i]}else{if(ce[i]!==true){ca=b8[0];cb.unshift(b8[1])}}break}}}}if(cd!==true){if(cd&&cf["throws"]){b7=cd(b7)}else{try{b7=cd(b7)}catch(b9){return{state:"parsererror",error:cd?b9:"No conversion from "+b6+" to "+ca}}}}}}}}return{state:"success",data:b7}}bH.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Z,type:"GET",isLocal:B.test(b3[1]),global:true,processData:true,async:true,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":aW,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":true,"text json":bH.parseJSON,"text xml":bH.parseXML},flatOptions:{url:true,context:true}},ajaxSetup:function(i,e){return e?s(s(i,bH.ajaxSettings),e):s(bH.ajaxSettings,i)},ajaxPrefilter:bJ(v),ajaxTransport:bJ(a8),ajax:function(b9,b6){if(typeof b9==="object"){b6=b9;b9=undefined}b6=b6||{};var ci,ck,ca,cp,ce,b5,cl,b7,cd=bH.ajaxSetup({},b6),cr=cd.context||cd,cg=cd.context&&(cr.nodeType||cr.jquery)?bH(cr):bH.event,cq=bH.Deferred(),cn=bH.Callbacks("once memory"),cb=cd.statusCode||{},ch={},co={},b8=0,cc="canceled",cj={readyState:0,getResponseHeader:function(i){var e;if(b8===2){if(!b7){b7={};while((e=ag.exec(cp))){b7[e[1].toLowerCase()]=e[2]}}e=b7[i.toLowerCase()]}return e==null?null:e},getAllResponseHeaders:function(){return b8===2?cp:null},setRequestHeader:function(i,cs){var e=i.toLowerCase();if(!b8){i=co[e]=co[e]||i;ch[i]=cs}return this},overrideMimeType:function(e){if(!b8){cd.mimeType=e}return this},statusCode:function(i){var e;if(i){if(b8<2){for(e in i){cb[e]=[cb[e],i[e]]}}else{cj.always(i[cj.status])}}return this},abort:function(i){var e=i||cc;if(cl){cl.abort(e)}cf(0,e);return this}};cq.promise(cj).complete=cn.add;cj.success=cj.done;cj.error=cj.fail;cd.url=((b9||cd.url||Z)+"").replace(ao,"").replace(aJ,b3[1]+"//");cd.type=b6.method||b6.type||cd.method||cd.type;cd.dataTypes=bH.trim(cd.dataType||"*").toLowerCase().match(aE)||[""];if(cd.crossDomain==null){ci=aU.exec(cd.url.toLowerCase());cd.crossDomain=!!(ci&&(ci[1]!==b3[1]||ci[2]!==b3[2]||(ci[3]||(ci[1]==="http:"?"80":"443"))!==(b3[3]||(b3[1]==="http:"?"80":"443"))))}if(cd.data&&cd.processData&&typeof cd.data!=="string"){cd.data=bH.param(cd.data,cd.traditional)}p(v,cd,b6,cj);if(b8===2){return cj}b5=bH.event&&cd.global;if(b5&&bH.active++===0){bH.event.trigger("ajaxStart")}cd.type=cd.type.toUpperCase();cd.hasContent=!q.test(cd.type);ca=cd.url;if(!cd.hasContent){if(cd.data){ca=(cd.url+=(bP.test(ca)?"&":"?")+cd.data);delete cd.data}if(cd.cache===false){cd.url=Q.test(ca)?ca.replace(Q,"$1_="+bo++):ca+(bP.test(ca)?"&":"?")+"_="+bo++}}if(cd.ifModified){if(bH.lastModified[ca]){cj.setRequestHeader("If-Modified-Since",bH.lastModified[ca])}if(bH.etag[ca]){cj.setRequestHeader("If-None-Match",bH.etag[ca])}}if(cd.data&&cd.hasContent&&cd.contentType!==false||b6.contentType){cj.setRequestHeader("Content-Type",cd.contentType)}cj.setRequestHeader("Accept",cd.dataTypes[0]&&cd.accepts[cd.dataTypes[0]]?cd.accepts[cd.dataTypes[0]]+(cd.dataTypes[0]!=="*"?", "+aW+"; q=0.01":""):cd.accepts["*"]);for(ck in cd.headers){cj.setRequestHeader(ck,cd.headers[ck])}if(cd.beforeSend&&(cd.beforeSend.call(cr,cj,cd)===false||b8===2)){return cj.abort()}cc="abort";for(ck in {success:1,error:1,complete:1}){cj[ck](cd[ck])}cl=p(a8,cd,b6,cj);if(!cl){cf(-1,"No Transport")}else{cj.readyState=1;if(b5){cg.trigger("ajaxSend",[cj,cd])}if(cd.async&&cd.timeout>0){ce=setTimeout(function(){cj.abort("timeout")},cd.timeout)}try{b8=1;cl.send(ch,cf)}catch(cm){if(b8<2){cf(-1,cm)}else{throw cm}}}function cf(cv,i,cw,ct){var e,cz,cx,cu,cy,cs=i;if(b8===2){return}b8=2;if(ce){clearTimeout(ce)}cl=undefined;cp=ct||"";cj.readyState=cv>0?4:0;e=cv>=200&&cv<300||cv===304;if(cw){cu=g(cd,cj,cw)}cu=af(cd,cu,cj,e);if(e){if(cd.ifModified){cy=cj.getResponseHeader("Last-Modified");if(cy){bH.lastModified[ca]=cy}cy=cj.getResponseHeader("etag");if(cy){bH.etag[ca]=cy}}if(cv===204||cd.type==="HEAD"){cs="nocontent"}else{if(cv===304){cs="notmodified"}else{cs=cu.state;cz=cu.data;cx=cu.error;e=!cx}}}else{cx=cs;if(cv||!cs){cs="error";if(cv<0){cv=0}}}cj.status=cv;cj.statusText=(i||cs)+"";if(e){cq.resolveWith(cr,[cz,cs,cj])}else{cq.rejectWith(cr,[cj,cs,cx])}cj.statusCode(cb);cb=undefined;if(b5){cg.trigger(e?"ajaxSuccess":"ajaxError",[cj,cd,e?cz:cx])}cn.fireWith(cr,[cj,cs]);if(b5){cg.trigger("ajaxComplete",[cj,cd]);if(!(--bH.active)){bH.event.trigger("ajaxStop")}}}return cj},getJSON:function(e,i,b5){return bH.get(e,i,b5,"json")},getScript:function(e,i){return bH.get(e,undefined,i,"script")}});bH.each(["get","post"],function(e,b5){bH[b5]=function(i,b7,b8,b6){if(bH.isFunction(b7)){b6=b6||b8;b8=b7;b7=undefined}return bH.ajax({url:i,type:b5,dataType:b6,data:b7,success:b8})}});bH._evalUrl=function(e){return bH.ajax({url:e,type:"GET",dataType:"script",async:false,global:false,"throws":true})};bH.fn.extend({wrapAll:function(e){if(bH.isFunction(e)){return this.each(function(b5){bH(this).wrapAll(e.call(this,b5))})}if(this[0]){var i=bH(e,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){i.insertBefore(this[0])}i.map(function(){var b5=this;while(b5.firstChild&&b5.firstChild.nodeType===1){b5=b5.firstChild}return b5}).append(this)}return this},wrapInner:function(e){if(bH.isFunction(e)){return this.each(function(b5){bH(this).wrapInner(e.call(this,b5))})}return this.each(function(){var i=bH(this),b5=i.contents();if(b5.length){b5.wrapAll(e)}else{i.append(e)}})},wrap:function(e){var i=bH.isFunction(e);return this.each(function(b5){bH(this).wrapAll(i?e.call(this,b5):e)})},unwrap:function(){return this.parent().each(function(){if(!bH.nodeName(this,"body")){bH(this).replaceWith(this.childNodes)}}).end()}});bH.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||(!C.reliableHiddenOffsets()&&((e.style&&e.style.display)||bH.css(e,"display"))==="none")};bH.expr.filters.visible=function(e){return !bH.expr.filters.hidden(e)};var bv=/%20/g,aR=/\[\]$/,W=/\r?\n/g,b=/^(?:submit|button|image|reset|file)$/i,at=/^(?:input|select|textarea|keygen)/i;function j(b5,b7,i,b6){var e;if(bH.isArray(b7)){bH.each(b7,function(b9,b8){if(i||aR.test(b5)){b6(b5,b8)}else{j(b5+"["+(typeof b8==="object"?b9:"")+"]",b8,i,b6)}})}else{if(!i&&bH.type(b7)==="object"){for(e in b7){j(b5+"["+e+"]",b7[e],i,b6)}}else{b6(b5,b7)}}}bH.param=function(e,b5){var b6,i=[],b7=function(b8,b9){b9=bH.isFunction(b9)?b9():(b9==null?"":b9);i[i.length]=encodeURIComponent(b8)+"="+encodeURIComponent(b9)};if(b5===undefined){b5=bH.ajaxSettings&&bH.ajaxSettings.traditional}if(bH.isArray(e)||(e.jquery&&!bH.isPlainObject(e))){bH.each(e,function(){b7(this.name,this.value)})}else{for(b6 in e){j(b6,e[b6],b5,b7)}}return i.join("&").replace(bv,"+")};bH.fn.extend({serialize:function(){return bH.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=bH.prop(this,"elements");return e?bH.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!bH(this).is(":disabled")&&at.test(this.nodeName)&&!b.test(e)&&(this.checked||!aL.test(e))}).map(function(e,b5){var b6=bH(this).val();return b6==null?null:bH.isArray(b6)?bH.map(b6,function(i){return{name:b5.name,value:i.replace(W,"\r\n")}}):{name:b5.name,value:b6.replace(W,"\r\n")}}).get()}});bH.ajaxSettings.xhr=a4.ActiveXObject!==undefined?function(){return !this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&bD()||bf()}:bD;var az=0,ai={},ax=bH.ajaxSettings.xhr();if(a4.attachEvent){a4.attachEvent("onunload",function(){for(var e in ai){ai[e](undefined,true)}})}C.cors=!!ax&&("withCredentials" in ax);ax=C.ajax=!!ax;if(ax){bH.ajaxTransport(function(e){if(!e.crossDomain||C.cors){var i;return{send:function(b8,b5){var b6,b7=e.xhr(),b9=++az;b7.open(e.type,e.url,e.async,e.username,e.password);if(e.xhrFields){for(b6 in e.xhrFields){b7[b6]=e.xhrFields[b6]}}if(e.mimeType&&b7.overrideMimeType){b7.overrideMimeType(e.mimeType)}if(!e.crossDomain&&!b8["X-Requested-With"]){b8["X-Requested-With"]="XMLHttpRequest"}for(b6 in b8){if(b8[b6]!==undefined){b7.setRequestHeader(b6,b8[b6]+"")}}b7.send((e.hasContent&&e.data)||null);i=function(cc,cb){var ca,cf,cd;if(i&&(cb||b7.readyState===4)){delete ai[b9];i=undefined;b7.onreadystatechange=bH.noop;if(cb){if(b7.readyState!==4){b7.abort()}}else{cd={};ca=b7.status;if(typeof b7.responseText==="string"){cd.text=b7.responseText}try{cf=b7.statusText}catch(ce){cf=""}if(!ca&&e.isLocal&&!e.crossDomain){ca=cd.text?200:404}else{if(ca===1223){ca=204}}}}if(cd){b5(ca,cf,cd,b7.getAllResponseHeaders())}};if(!e.async){i()}else{if(b7.readyState===4){setTimeout(i)}else{b7.onreadystatechange=ai[b9]=i}}},abort:function(){if(i){i(undefined,true)}}}}})}function bD(){try{return new a4.XMLHttpRequest()}catch(i){}}function bf(){try{return new a4.ActiveXObject("Microsoft.XMLHTTP")}catch(i){}}bH.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){bH.globalEval(e);return e}}});bH.ajaxPrefilter("script",function(e){if(e.cache===undefined){e.cache=false}if(e.crossDomain){e.type="GET";e.global=false}});bH.ajaxTransport("script",function(b5){if(b5.crossDomain){var e,i=n.head||bH("head")[0]||n.documentElement;return{send:function(b6,b7){e=n.createElement("script");e.async=true;if(b5.scriptCharset){e.charset=b5.scriptCharset}e.src=b5.url;e.onload=e.onreadystatechange=function(b9,b8){if(b8||!e.readyState||/loaded|complete/.test(e.readyState)){e.onload=e.onreadystatechange=null;if(e.parentNode){e.parentNode.removeChild(e)}e=null;if(!b8){b7(200,"success")}}};i.insertBefore(e,i.firstChild)},abort:function(){if(e){e.onload(undefined,true)}}}}});var br=[],a7=/(=)\?(?=&|$)|\?\?/;bH.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=br.pop()||(bH.expando+"_"+(bo++));this[e]=true;return e}});bH.ajaxPrefilter("json jsonp",function(b6,e,b7){var b9,i,b5,b8=b6.jsonp!==false&&(a7.test(b6.url)?"url":typeof b6.data==="string"&&!(b6.contentType||"").indexOf("application/x-www-form-urlencoded")&&a7.test(b6.data)&&"data");if(b8||b6.dataTypes[0]==="jsonp"){b9=b6.jsonpCallback=bH.isFunction(b6.jsonpCallback)?b6.jsonpCallback():b6.jsonpCallback;if(b8){b6[b8]=b6[b8].replace(a7,"$1"+b9)}else{if(b6.jsonp!==false){b6.url+=(bP.test(b6.url)?"&":"?")+b6.jsonp+"="+b9}}b6.converters["script json"]=function(){if(!b5){bH.error(b9+" was not called")}return b5[0]};b6.dataTypes[0]="json";i=a4[b9];a4[b9]=function(){b5=arguments};b7.always(function(){a4[b9]=i;if(b6[b9]){b6.jsonpCallback=e.jsonpCallback;br.push(b9)}if(b5&&bH.isFunction(i)){i(b5[0])}b5=i=undefined});return"script"}});bH.parseHTML=function(b7,b5,b6){if(!b7||typeof b7!=="string"){return null}if(typeof b5==="boolean"){b6=b5;b5=false}b5=b5||n;var i=a.exec(b7),e=!b6&&[];if(i){return[b5.createElement(i[1])]}i=bH.buildFragment([b7],b5,e);if(e&&e.length){bH(e).remove()}return bH.merge([],i.childNodes)};var b0=bH.fn.load;bH.fn.load=function(b6,b9,ca){if(typeof b6!=="string"&&b0){return b0.apply(this,arguments)}var e,b5,b7,i=this,b8=b6.indexOf(" ");if(b8>=0){e=bH.trim(b6.slice(b8,b6.length));b6=b6.slice(0,b8)}if(bH.isFunction(b9)){ca=b9;b9=undefined}else{if(b9&&typeof b9==="object"){b7="POST"}}if(i.length>0){bH.ajax({url:b6,type:b7,dataType:"html",data:b9}).done(function(cb){b5=arguments;i.html(e?bH("
").append(bH.parseHTML(cb)).find(e):cb)}).complete(ca&&function(cc,cb){i.each(ca,b5||[cc.responseText,cb,cc])})}return this};bH.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,b5){bH.fn[b5]=function(i){return this.on(b5,i)}});bH.expr.filters.animated=function(e){return bH.grep(bH.timers,function(i){return e===i.elem}).length};var bW=a4.document.documentElement;function bq(e){return bH.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:false}bH.offset={setOffset:function(b6,cg,ca){var cc,b9,e,b7,b5,ce,cf,cb=bH.css(b6,"position"),b8=bH(b6),cd={};if(cb==="static"){b6.style.position="relative"}b5=b8.offset();e=bH.css(b6,"top");ce=bH.css(b6,"left");cf=(cb==="absolute"||cb==="fixed")&&bH.inArray("auto",[e,ce])>-1;if(cf){cc=b8.position();b7=cc.top;b9=cc.left}else{b7=parseFloat(e)||0;b9=parseFloat(ce)||0}if(bH.isFunction(cg)){cg=cg.call(b6,ca,b5)}if(cg.top!=null){cd.top=(cg.top-b5.top)+b7}if(cg.left!=null){cd.left=(cg.left-b5.left)+b9}if("using" in cg){cg.using.call(b6,cd)}else{b8.css(cd)}}};bH.fn.extend({offset:function(i){if(arguments.length){return i===undefined?this:this.each(function(b9){bH.offset.setOffset(this,i,b9)})}var e,b8,b6={top:0,left:0},b5=this[0],b7=b5&&b5.ownerDocument;if(!b7){return}e=b7.documentElement;if(!bH.contains(e,b5)){return b6}if(typeof b5.getBoundingClientRect!==aB){b6=b5.getBoundingClientRect()}b8=bq(b7);return{top:b6.top+(b8.pageYOffset||e.scrollTop)-(e.clientTop||0),left:b6.left+(b8.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}},position:function(){if(!this[0]){return}var b5,b6,e={top:0,left:0},i=this[0];if(bH.css(i,"position")==="fixed"){b6=i.getBoundingClientRect()}else{b5=this.offsetParent();b6=this.offset();if(!bH.nodeName(b5[0],"html")){e=b5.offset()}e.top+=bH.css(b5[0],"borderTopWidth",true);e.left+=bH.css(b5[0],"borderLeftWidth",true)}return{top:b6.top-e.top-bH.css(i,"marginTop",true),left:b6.left-e.left-bH.css(i,"marginLeft",true)}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||bW;while(e&&(!bH.nodeName(e,"html")&&bH.css(e,"position")==="static")){e=e.offsetParent}return e||bW})}});bH.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(b5,i){var e=/Y/.test(i);bH.fn[b5]=function(b6){return aA(this,function(b7,ca,b9){var b8=bq(b7);if(b9===undefined){return b8?(i in b8)?b8[i]:b8.document.documentElement[ca]:b7[ca]}if(b8){b8.scrollTo(!e?b9:bH(b8).scrollLeft(),e?b9:bH(b8).scrollTop())}else{b7[ca]=b9}},b5,b6,arguments.length,null)}});bH.each(["top","left"],function(e,b5){bH.cssHooks[b5]=a6(C.pixelPosition,function(b6,i){if(i){i=F(b6,b5);return X.test(i)?bH(b6).position()[b5]+"px":i}})});bH.each({Height:"height",Width:"width"},function(e,i){bH.each({padding:"inner"+e,content:i,"":"outer"+e},function(b5,b6){bH.fn[b6]=function(ca,b9){var b8=arguments.length&&(b5||typeof ca!=="boolean"),b7=b5||(ca===true||b9===true?"margin":"border");return aA(this,function(cc,cb,cd){var ce;if(bH.isWindow(cc)){return cc.document.documentElement["client"+e]}if(cc.nodeType===9){ce=cc.documentElement;return Math.max(cc.body["scroll"+e],ce["scroll"+e],cc.body["offset"+e],ce["offset"+e],ce["client"+e])}return cd===undefined?bH.css(cc,cb,b7):bH.style(cc,cb,cd,b7)},i,b8?ca:undefined,b8,null)}})});bH.fn.size=function(){return this.length};bH.fn.andSelf=bH.fn.addBack;if(typeof define==="function"&&define.amd){define("jquery",[],function(){return bH})}var bj=a4.jQuery,H=a4.$;bH.noConflict=function(e){if(a4.$===bH){a4.$=H}if(e&&a4.jQuery===bH){a4.jQuery=bj}return bH};if(typeof au===aB){a4.jQuery=a4.$=bH}return bH})); /*! jQuery UI - v1.11.0 - 2014-07-22 * http://jqueryui.com * Includes: core.js, widget.js, mouse.js, position.js, draggable.js, droppable.js, resizable.js, selectable.js, sortable.js, datepicker.js, slider.js, effect.js, effect-blind.js, effect-bounce.js, effect-clip.js, effect-drop.js, effect-explode.js, effect-fade.js, effect-fold.js, effect-highlight.js, effect-puff.js, effect-pulsate.js, effect-scale.js, effect-shake.js, effect-size.js, effect-slide.js, effect-transfer.js * Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */ (function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a)}else{a(jQuery)}}(function(y){ /*! * jQuery UI Core 1.11.0 * http://jqueryui.com * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/category/ui-core/ */ y.ui=y.ui||{};y.extend(y.ui,{version:"1.11.0",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}});y.fn.extend({scrollParent:function(){var N=this.css("position"),M=N==="absolute",O=this.parents().filter(function(){var P=y(this);if(M&&P.css("position")==="static"){return false}return(/(auto|scroll)/).test(P.css("overflow")+P.css("overflow-y")+P.css("overflow-x"))}).eq(0);return N==="fixed"||!O.length?y(this[0].ownerDocument||document):O},uniqueId:(function(){var M=0;return function(){return this.each(function(){if(!this.id){this.id="ui-id-"+(++M)}})}})(),removeUniqueId:function(){return this.each(function(){if(/^ui-id-\d+$/.test(this.id)){y(this).removeAttr("id")}})}});function n(O,M){var Q,P,N,R=O.nodeName.toLowerCase();if("area"===R){Q=O.parentNode;P=Q.name;if(!O.href||!P||Q.nodeName.toLowerCase()!=="map"){return false}N=y("img[usemap=#"+P+"]")[0];return !!N&&o(N)}return(/input|select|textarea|button|object/.test(R)?!O.disabled:"a"===R?O.href||M:M)&&o(O)}function o(M){return y.expr.filters.visible(M)&&!y(M).parents().addBack().filter(function(){return y.css(this,"visibility")==="hidden"}).length}y.extend(y.expr[":"],{data:y.expr.createPseudo?y.expr.createPseudo(function(M){return function(N){return !!y.data(N,M)}}):function(O,N,M){return !!y.data(O,M[3])},focusable:function(M){return n(M,!isNaN(y.attr(M,"tabindex")))},tabbable:function(O){var M=y.attr(O,"tabindex"),N=isNaN(M);return(N||M>=0)&&n(O,!N)}});if(!y("").outerWidth(1).jquery){y.each(["Width","Height"],function(O,M){var N=M==="Width"?["Left","Right"]:["Top","Bottom"],P=M.toLowerCase(),R={innerWidth:y.fn.innerWidth,innerHeight:y.fn.innerHeight,outerWidth:y.fn.outerWidth,outerHeight:y.fn.outerHeight};function Q(U,T,S,V){y.each(N,function(){T-=parseFloat(y.css(U,"padding"+this))||0;if(S){T-=parseFloat(y.css(U,"border"+this+"Width"))||0}if(V){T-=parseFloat(y.css(U,"margin"+this))||0}});return T}y.fn["inner"+M]=function(S){if(S===undefined){return R["inner"+M].call(this)}return this.each(function(){y(this).css(P,Q(this,S)+"px")})};y.fn["outer"+M]=function(S,T){if(typeof S!=="number"){return R["outer"+M].call(this,S)}return this.each(function(){y(this).css(P,Q(this,S,true,T)+"px")})}})}if(!y.fn.addBack){y.fn.addBack=function(M){return this.add(M==null?this.prevObject:this.prevObject.filter(M))}}if(y("").data("a-b","a").removeData("a-b").data("a-b")){y.fn.removeData=(function(M){return function(N){if(arguments.length){return M.call(this,y.camelCase(N))}else{return M.call(this)}}})(y.fn.removeData)}y.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());y.fn.extend({focus:(function(M){return function(N,O){return typeof N==="number"?this.each(function(){var P=this;setTimeout(function(){y(P).focus();if(O){O.call(P)}},N)}):M.apply(this,arguments)}})(y.fn.focus),disableSelection:(function(){var M="onselectstart" in document.createElement("div")?"selectstart":"mousedown";return function(){return this.bind(M+".ui-disableSelection",function(N){N.preventDefault()})}})(),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(P){if(P!==undefined){return this.css("zIndex",P)}if(this.length){var N=y(this[0]),M,O;while(N.length&&N[0]!==document){M=N.css("position");if(M==="absolute"||M==="relative"||M==="fixed"){O=parseInt(N.css("zIndex"),10);if(!isNaN(O)&&O!==0){return O}}N=N.parent()}}return 0}});y.ui.plugin={add:function(N,O,Q){var M,P=y.ui[N].prototype;for(M in Q){P.plugins[M]=P.plugins[M]||[];P.plugins[M].push([O,Q[M]])}},call:function(M,P,O,N){var Q,R=M.plugins[P];if(!R){return}if(!N&&(!M.element[0].parentNode||M.element[0].parentNode.nodeType===11)){return}for(Q=0;Q",options:{disabled:false,create:null},_createWidget:function(M,N){N=y(N||this.defaultElement||this)[0];this.element=y(N);this.uuid=C++;this.eventNamespace="."+this.widgetName+this.uuid;this.options=y.widget.extend({},this.options,this._getCreateOptions(),M);this.bindings=y();this.hoverable=y();this.focusable=y();if(N!==this){y.data(N,this.widgetFullName,this);this._on(true,this.element,{remove:function(O){if(O.target===N){this.destroy()}}});this.document=y(N.style?N.ownerDocument:N.document||N);this.window=y(this.document[0].defaultView||this.document[0].parentWindow)}this._create();this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:y.noop,_getCreateEventData:y.noop,_create:y.noop,_init:y.noop,destroy:function(){this._destroy();this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(y.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:y.noop,widget:function(){return this.element},option:function(P,Q){var M=P,R,O,N;if(arguments.length===0){return y.widget.extend({},this.options)}if(typeof P==="string"){M={};R=P.split(".");P=R.shift();if(R.length){O=M[P]=y.widget.extend({},this.options[P]);for(N=0;N=this.options.distance)},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}}); /*! * jQuery UI Position 1.11.0 * http://jqueryui.com * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/position/ */ (function(){y.ui=y.ui||{};var T,W,U=Math.max,Z=Math.abs,X=Math.round,O=/left|center|right/,R=/top|center|bottom/,M=/[\+\-]\d+(\.[\d]+)?%?/,V=/^\w+/,N=/%$/,Q=y.fn.position;function Y(ac,ab,aa){return[parseFloat(ac[0])*(N.test(ac[0])?ab/100:1),parseFloat(ac[1])*(N.test(ac[1])?aa/100:1)]}function S(aa,ab){return parseInt(y.css(aa,ab),10)||0}function P(ab){var aa=ab[0];if(aa.nodeType===9){return{width:ab.width(),height:ab.height(),offset:{top:0,left:0}}}if(y.isWindow(aa)){return{width:ab.width(),height:ab.height(),offset:{top:ab.scrollTop(),left:ab.scrollLeft()}}}if(aa.preventDefault){return{width:0,height:0,offset:{top:aa.pageY,left:aa.pageX}}}return{width:ab.outerWidth(),height:ab.outerHeight(),offset:ab.offset()}}y.position={scrollbarWidth:function(){if(T!==undefined){return T}var ab,aa,ad=y("
"),ac=ad.children()[0];y("body").append(ad);ab=ac.offsetWidth;ad.css("overflow","scroll");aa=ac.offsetWidth;if(ab===aa){aa=ad[0].clientWidth}ad.remove();return(T=ab-aa)},getScrollInfo:function(ae){var ad=ae.isWindow||ae.isDocument?"":ae.element.css("overflow-x"),ac=ae.isWindow||ae.isDocument?"":ae.element.css("overflow-y"),ab=ad==="scroll"||(ad==="auto"&&ae.width0?"right":"center",vertical:az<0?"top":aC>0?"bottom":"middle"};if(ahU(Z(aC),Z(az))){ay.important="horizontal"}else{ay.important="vertical"}ak.using.call(this,aB,ay)}}ap.offset(y.extend(at,{using:ax}))})};y.ui.position={fit:{left:function(ae,ad){var ac=ad.within,ag=ac.isWindow?ac.scrollLeft:ac.offset.left,ai=ac.width,af=ae.left-ad.collisionPosition.marginLeft,ah=ag-af,ab=af+ad.collisionWidth-ai-ag,aa;if(ad.collisionWidth>ai){if(ah>0&&ab<=0){aa=ae.left+ah+ad.collisionWidth-ai-ag;ae.left+=ah-aa}else{if(ab>0&&ah<=0){ae.left=ag}else{if(ah>ab){ae.left=ag+ai-ad.collisionWidth}else{ae.left=ag}}}}else{if(ah>0){ae.left+=ah}else{if(ab>0){ae.left-=ab}else{ae.left=U(ae.left-af,ae.left)}}}},top:function(ad,ac){var ab=ac.within,ah=ab.isWindow?ab.scrollTop:ab.offset.top,ai=ac.within.height,af=ad.top-ac.collisionPosition.marginTop,ag=ah-af,ae=af+ac.collisionHeight-ai-ah,aa;if(ac.collisionHeight>ai){if(ag>0&&ae<=0){aa=ad.top+ag+ac.collisionHeight-ai-ah;ad.top+=ag-aa}else{if(ae>0&&ag<=0){ad.top=ah}else{if(ag>ae){ad.top=ah+ai-ac.collisionHeight}else{ad.top=ah}}}}else{if(ag>0){ad.top+=ag}else{if(ae>0){ad.top-=ae}else{ad.top=U(ad.top-af,ad.top)}}}}},flip:{left:function(ag,af){var ae=af.within,ak=ae.offset.left+ae.scrollLeft,an=ae.width,ac=ae.isWindow?ae.scrollLeft:ae.offset.left,ah=ag.left-af.collisionPosition.marginLeft,al=ah-ac,ab=ah+af.collisionWidth-an-ac,aj=af.my[0]==="left"?-af.elemWidth:af.my[0]==="right"?af.elemWidth:0,am=af.at[0]==="left"?af.targetWidth:af.at[0]==="right"?-af.targetWidth:0,ad=-2*af.offset[0],aa,ai;if(al<0){aa=ag.left+aj+am+ad+af.collisionWidth-an-ak;if(aa<0||aa0){ai=ag.left-af.collisionPosition.marginLeft+aj+am+ad-ac;if(ai>0||Z(ai)aj&&(ab<0||ab0){al=af.top-ae.collisionPosition.marginTop+ai+ao+ac-aa;if((af.top+ai+ao+ac)>ag&&(al>0||Z(al)10&&ad<11;ae.innerHTML="";ag.removeChild(ae)})()})();var D=y.ui.position; /*! * jQuery UI Draggable 1.11.0 * http://jqueryui.com * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/draggable/ */ y.widget("ui.draggable",y.ui.mouse,{version:"1.11.0",widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false,drag:null,start:null,stop:null},_create:function(){if(this.options.helper==="original"&&!(/^(?:r|a|f)/).test(this.element.css("position"))){this.element[0].style.position="relative"}if(this.options.addClasses){this.element.addClass("ui-draggable")}if(this.options.disabled){this.element.addClass("ui-draggable-disabled")}this._setHandleClassName();this._mouseInit()},_setOption:function(M,N){this._super(M,N);if(M==="handle"){this._setHandleClassName()}},_destroy:function(){if((this.helper||this.element).is(".ui-draggable-dragging")){this.destroyOnClear=true;return}this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._removeHandleClassName();this._mouseDestroy()},_mouseCapture:function(O){var M=this.document[0],P=this.options;try{if(M.activeElement&&M.activeElement.nodeName.toLowerCase()!=="body"){y(M.activeElement).blur()}}catch(N){}if(this.helper||P.disabled||y(O.target).closest(".ui-resizable-handle").length>0){return false}this.handle=this._getHandle(O);if(!this.handle){return false}y(P.iframeFix===true?"iframe":P.iframeFix).each(function(){y("
").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(y(this).offset()).appendTo("body")});return true},_mouseStart:function(M){var N=this.options;this.helper=this._createHelper(M);this.helper.addClass("ui-draggable-dragging");this._cacheHelperProportions();if(y.ui.ddmanager){y.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=false;y.extend(this.offset,{click:{left:M.pageX-this.offset.left,top:M.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(M,false);this.originalPageX=M.pageX;this.originalPageY=M.pageY;(N.cursorAt&&this._adjustOffsetFromHelper(N.cursorAt));this._setContainment();if(this._trigger("start",M)===false){this._clear();return false}this._cacheHelperProportions();if(y.ui.ddmanager&&!N.dropBehaviour){y.ui.ddmanager.prepareOffsets(this,M)}this._mouseDrag(M,true);if(y.ui.ddmanager){y.ui.ddmanager.dragStart(this,M)}return true},_mouseDrag:function(M,O){if(this.offsetParentCssPosition==="fixed"){this.offset.parent=this._getParentOffset()}this.position=this._generatePosition(M,true);this.positionAbs=this._convertPositionTo("absolute");if(!O){var N=this._uiHash();if(this._trigger("drag",M,N)===false){this._mouseUp({});return false}this.position=N.position}this.helper[0].style.left=this.position.left+"px";this.helper[0].style.top=this.position.top+"px";if(y.ui.ddmanager){y.ui.ddmanager.drag(this,M)}return false},_mouseStop:function(N){var M=this,O=false;if(y.ui.ddmanager&&!this.options.dropBehaviour){O=y.ui.ddmanager.drop(this,N)}if(this.dropped){O=this.dropped;this.dropped=false}if((this.options.revert==="invalid"&&!O)||(this.options.revert==="valid"&&O)||this.options.revert===true||(y.isFunction(this.options.revert)&&this.options.revert.call(this.element,O))){y(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){if(M._trigger("stop",N)!==false){M._clear()}})}else{if(this._trigger("stop",N)!==false){this._clear()}}return false},_mouseUp:function(M){y("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)});if(y.ui.ddmanager){y.ui.ddmanager.dragStop(this,M)}this.element.focus();return y.ui.mouse.prototype._mouseUp.call(this,M)},cancel:function(){if(this.helper.is(".ui-draggable-dragging")){this._mouseUp({})}else{this._clear()}return this},_getHandle:function(M){return this.options.handle?!!y(M.target).closest(this.element.find(this.options.handle)).length:true},_setHandleClassName:function(){this._removeHandleClassName();y(this.options.handle||this.element).addClass("ui-draggable-handle")},_removeHandleClassName:function(){this.element.find(".ui-draggable-handle").addBack().removeClass("ui-draggable-handle")},_createHelper:function(N){var O=this.options,M=y.isFunction(O.helper)?y(O.helper.apply(this.element[0],[N])):(O.helper==="clone"?this.element.clone().removeAttr("id"):this.element);if(!M.parents("body").length){M.appendTo((O.appendTo==="parent"?this.element[0].parentNode:O.appendTo))}if(M[0]!==this.element[0]&&!(/(fixed|absolute)/).test(M.css("position"))){M.css("position","absolute")}return M},_adjustOffsetFromHelper:function(M){if(typeof M==="string"){M=M.split(" ")}if(y.isArray(M)){M={left:+M[0],top:+M[1]||0}}if("left" in M){this.offset.click.left=M.left+this.margins.left}if("right" in M){this.offset.click.left=this.helperProportions.width-M.right+this.margins.left}if("top" in M){this.offset.click.top=M.top+this.margins.top}if("bottom" in M){this.offset.click.top=this.helperProportions.height-M.bottom+this.margins.top}},_isRootNode:function(M){return(/(html|body)/i).test(M.tagName)||M===this.document[0]},_getParentOffset:function(){var N=this.offsetParent.offset(),M=this.document[0];if(this.cssPosition==="absolute"&&this.scrollParent[0]!==M&&y.contains(this.scrollParent[0],this.offsetParent[0])){N.left+=this.scrollParent.scrollLeft();N.top+=this.scrollParent.scrollTop()}if(this._isRootNode(this.offsetParent[0])){N={top:0,left:0}}return{top:N.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:N.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition!=="relative"){return{top:0,left:0}}var M=this.element.position(),N=this._isRootNode(this.scrollParent[0]);return{top:M.top-(parseInt(this.helper.css("top"),10)||0)+(!N?this.scrollParent.scrollTop():0),left:M.left-(parseInt(this.helper.css("left"),10)||0)+(!N?this.scrollParent.scrollLeft():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 O,Q,N,P=this.options,M=this.document[0];this.relative_container=null;if(!P.containment){this.containment=null;return}if(P.containment==="window"){this.containment=[y(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,y(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,y(window).scrollLeft()+y(window).width()-this.helperProportions.width-this.margins.left,y(window).scrollTop()+(y(window).height()||M.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(P.containment==="document"){this.containment=[0,0,y(M).width()-this.helperProportions.width-this.margins.left,(y(M).height()||M.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(P.containment.constructor===Array){this.containment=P.containment;return}if(P.containment==="parent"){P.containment=this.helper[0].parentNode}Q=y(P.containment);N=Q[0];if(!N){return}O=Q.css("overflow")!=="hidden";this.containment=[(parseInt(Q.css("borderLeftWidth"),10)||0)+(parseInt(Q.css("paddingLeft"),10)||0),(parseInt(Q.css("borderTopWidth"),10)||0)+(parseInt(Q.css("paddingTop"),10)||0),(O?Math.max(N.scrollWidth,N.offsetWidth):N.offsetWidth)-(parseInt(Q.css("borderRightWidth"),10)||0)-(parseInt(Q.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(O?Math.max(N.scrollHeight,N.offsetHeight):N.offsetHeight)-(parseInt(Q.css("borderBottomWidth"),10)||0)-(parseInt(Q.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relative_container=Q},_convertPositionTo:function(N,P){if(!P){P=this.position}var M=N==="absolute"?1:-1,O=this._isRootNode(this.scrollParent[0]);return{top:(P.top+this.offset.relative.top*M+this.offset.parent.top*M-((this.cssPosition==="fixed"?-this.offset.scroll.top:(O?0:this.offset.scroll.top))*M)),left:(P.left+this.offset.relative.left*M+this.offset.parent.left*M-((this.cssPosition==="fixed"?-this.offset.scroll.left:(O?0:this.offset.scroll.left))*M))}},_generatePosition:function(N,T){var M,U,V,P,O=this.options,S=this._isRootNode(this.scrollParent[0]),R=N.pageX,Q=N.pageY;if(!S||!this.offset.scroll){this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}}if(T){if(this.containment){if(this.relative_container){U=this.relative_container.offset();M=[this.containment[0]+U.left,this.containment[1]+U.top,this.containment[2]+U.left,this.containment[3]+U.top]}else{M=this.containment}if(N.pageX-this.offset.click.leftM[2]){R=M[2]+this.offset.click.left}if(N.pageY-this.offset.click.top>M[3]){Q=M[3]+this.offset.click.top}}if(O.grid){V=O.grid[1]?this.originalPageY+Math.round((Q-this.originalPageY)/O.grid[1])*O.grid[1]:this.originalPageY;Q=M?((V-this.offset.click.top>=M[1]||V-this.offset.click.top>M[3])?V:((V-this.offset.click.top>=M[1])?V-O.grid[1]:V+O.grid[1])):V;P=O.grid[0]?this.originalPageX+Math.round((R-this.originalPageX)/O.grid[0])*O.grid[0]:this.originalPageX;R=M?((P-this.offset.click.left>=M[0]||P-this.offset.click.left>M[2])?P:((P-this.offset.click.left>=M[0])?P-O.grid[0]:P+O.grid[0])):P}if(O.axis==="y"){R=this.originalPageX}if(O.axis==="x"){Q=this.originalPageY}}return{top:(Q-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.offset.scroll.top:(S?0:this.offset.scroll.top))),left:(R-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.offset.scroll.left:(S?0:this.offset.scroll.left)))}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");if(this.helper[0]!==this.element[0]&&!this.cancelHelperRemoval){this.helper.remove()}this.helper=null;this.cancelHelperRemoval=false;if(this.destroyOnClear){this.destroy()}},_trigger:function(M,N,O){O=O||this._uiHash();y.ui.plugin.call(this,M,[N,O,this],true);if(M==="drag"){this.positionAbs=this._convertPositionTo("absolute")}return y.Widget.prototype._trigger.call(this,M,N,O)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});y.ui.plugin.add("draggable","connectToSortable",{start:function(N,P,O){var Q=O.options,M=y.extend({},P,{item:O.element});O.sortables=[];y(Q.connectToSortable).each(function(){var R=y(this).sortable("instance");if(R&&!R.options.disabled){O.sortables.push({instance:R,shouldRevert:R.options.revert});R.refreshPositions();R._trigger("activate",N,M)}})},stop:function(N,P,O){var M=y.extend({},P,{item:O.element});y.each(O.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;O.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=this.shouldRevert}this.instance._mouseStop(N);this.instance.options.helper=this.instance.options._helper;if(O.options.helper==="original"){this.instance.currentItem.css({top:"auto",left:"auto"})}}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",N,M)}})},drag:function(N,P,O){var M=this;y.each(O.sortables,function(){var Q=false,R=this;this.instance.positionAbs=O.positionAbs;this.instance.helperProportions=O.helperProportions;this.instance.offset.click=O.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){Q=true;y.each(O.sortables,function(){this.instance.positionAbs=O.positionAbs;this.instance.helperProportions=O.helperProportions;this.instance.offset.click=O.offset.click;if(this!==R&&this.instance._intersectsWith(this.instance.containerCache)&&y.contains(R.instance.element[0],this.instance.element[0])){Q=false}return Q})}if(Q){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=y(M).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return P.helper[0]};N.target=this.instance.currentItem[0];this.instance._mouseCapture(N,true);this.instance._mouseStart(N,true,true);this.instance.offset.click.top=O.offset.click.top;this.instance.offset.click.left=O.offset.click.left;this.instance.offset.parent.left-=O.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=O.offset.parent.top-this.instance.offset.parent.top;O._trigger("toSortable",N);O.dropped=this.instance.element;O.currentItem=O.element;this.instance.fromOutside=O}if(this.instance.currentItem){this.instance._mouseDrag(N)}}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",N,this.instance._uiHash(this.instance));this.instance._mouseStop(N,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder){this.instance.placeholder.remove()}O._trigger("fromSortable",N);O.dropped=false}}})}});y.ui.plugin.add("draggable","cursor",{start:function(O,P,M){var N=y("body"),Q=M.options;if(N.css("cursor")){Q._cursor=N.css("cursor")}N.css("cursor",Q.cursor)},stop:function(N,O,M){var P=M.options;if(P._cursor){y("body").css("cursor",P._cursor)}}});y.ui.plugin.add("draggable","opacity",{start:function(O,P,M){var N=y(P.helper),Q=M.options;if(N.css("opacity")){Q._opacity=N.css("opacity")}N.css("opacity",Q.opacity)},stop:function(N,O,M){var P=M.options;if(P._opacity){y(O.helper).css("opacity",P._opacity)}}});y.ui.plugin.add("draggable","scroll",{start:function(N,O,M){if(M.scrollParent[0]!==M.document[0]&&M.scrollParent[0].tagName!=="HTML"){M.overflowOffset=M.scrollParent.offset()}},drag:function(P,Q,O){var R=O.options,N=false,M=O.document[0];if(O.scrollParent[0]!==M&&O.scrollParent[0].tagName!=="HTML"){if(!R.axis||R.axis!=="x"){if((O.overflowOffset.top+O.scrollParent[0].offsetHeight)-P.pageY=0;Z--){X=P.snapElements[Z].left;U=X+P.snapElements[Z].width;T=P.snapElements[Z].top;ae=T+P.snapElements[Z].height;if(aaU+ac||Nae+ac||!y.contains(P.snapElements[Z].item.ownerDocument,P.snapElements[Z].item)){if(P.snapElements[Z].snapping){(P.options.snap.release&&P.options.snap.release.call(P.element,Y,y.extend(P._uiHash(),{snapItem:P.snapElements[Z].item})))}P.snapElements[Z].snapping=false;continue}if(W.snapMode!=="inner"){M=Math.abs(T-N)<=ac;ad=Math.abs(ae-O)<=ac;R=Math.abs(X-aa)<=ac;S=Math.abs(U-ab)<=ac;if(M){V.position.top=P._convertPositionTo("relative",{top:T-P.helperProportions.height,left:0}).top-P.margins.top}if(ad){V.position.top=P._convertPositionTo("relative",{top:ae,left:0}).top-P.margins.top}if(R){V.position.left=P._convertPositionTo("relative",{top:0,left:X-P.helperProportions.width}).left-P.margins.left}if(S){V.position.left=P._convertPositionTo("relative",{top:0,left:U}).left-P.margins.left}}Q=(M||ad||R||S);if(W.snapMode!=="outer"){M=Math.abs(T-O)<=ac;ad=Math.abs(ae-N)<=ac;R=Math.abs(X-ab)<=ac;S=Math.abs(U-aa)<=ac;if(M){V.position.top=P._convertPositionTo("relative",{top:T,left:0}).top-P.margins.top}if(ad){V.position.top=P._convertPositionTo("relative",{top:ae-P.helperProportions.height,left:0}).top-P.margins.top}if(R){V.position.left=P._convertPositionTo("relative",{top:0,left:X}).left-P.margins.left}if(S){V.position.left=P._convertPositionTo("relative",{top:0,left:U-P.helperProportions.width}).left-P.margins.left}}if(!P.snapElements[Z].snapping&&(M||ad||R||S||Q)){(P.options.snap.snap&&P.options.snap.snap.call(P.element,Y,y.extend(P._uiHash(),{snapItem:P.snapElements[Z].item})))}P.snapElements[Z].snapping=(M||ad||R||S||Q)}}});y.ui.plugin.add("draggable","stack",{start:function(O,P,M){var N,R=M.options,Q=y.makeArray(y(R.stack)).sort(function(T,S){return(parseInt(y(T).css("zIndex"),10)||0)-(parseInt(y(S).css("zIndex"),10)||0)});if(!Q.length){return}N=parseInt(y(Q[0]).css("zIndex"),10)||0;y(Q).each(function(S){y(this).css("zIndex",N+S)});this.css("zIndex",(N+Q.length))}});y.ui.plugin.add("draggable","zIndex",{start:function(O,P,M){var N=y(P.helper),Q=M.options;if(N.css("zIndex")){Q._zIndex=N.css("zIndex")}N.css("zIndex",Q.zIndex)},stop:function(N,O,M){var P=M.options;if(P._zIndex){y(O.helper).css("zIndex",P._zIndex)}}});var I=y.ui.draggable; /*! * jQuery UI Droppable 1.11.0 * http://jqueryui.com * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/droppable/ */ y.widget("ui.droppable",{version:"1.11.0",widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var N,O=this.options,M=O.accept;this.isover=false;this.isout=true;this.accept=y.isFunction(M)?M:function(P){return P.is(M)};this.proportions=function(){if(arguments.length){N=arguments[0]}else{return N?N:N={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}}};this._addToManager(O.scope);O.addClasses&&this.element.addClass("ui-droppable")},_addToManager:function(M){y.ui.ddmanager.droppables[M]=y.ui.ddmanager.droppables[M]||[];y.ui.ddmanager.droppables[M].push(this)},_splice:function(M){var N=0;for(;N=N)&&(O<(N+P))}return function(Z,T,X){if(!T.offset){return false}var R,S,P=(Z.positionAbs||Z.position.absolute).left,W=(Z.positionAbs||Z.position.absolute).top,O=P+Z.helperProportions.width,V=W+Z.helperProportions.height,Q=T.offset.left,Y=T.offset.top,N=Q+T.proportions().width,U=Y+T.proportions().height;switch(X){case"fit":return(Q<=P&&O<=N&&Y<=W&&V<=U);case"intersect":return(Q=Y&&W<=U)||(V>=Y&&V<=U)||(WU))&&((P>=Q&&P<=N)||(O>=Q&&O<=N)||(PN));default:return false}}})();y.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(P,R){var O,N,M=y.ui.ddmanager.droppables[P.options.scope]||[],Q=R?R.type:null,S=(P.currentItem||P.element).find(":data(ui-droppable)").addBack();droppablesLoop:for(O=0;O0){return true}P[M]=1;O=(P[M]>0);P[M]=0;return O},_create:function(){var S,N,Q,O,M,P=this,R=this.options;this.element.addClass("ui-resizable");y.extend(this,{_aspectRatio:!!(R.aspectRatio),aspectRatio:R.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:R.helper||R.ghost||R.animate?R.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){this.element.wrap(y("
").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.resizable("instance"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=R.handles||(!y(".ui-resizable-handle",this.element).length?"e,s,se":{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"});if(this.handles.constructor===String){if(this.handles==="all"){this.handles="n,e,s,w,se,sw,ne,nw"}S=this.handles.split(",");this.handles={};for(N=0;N
");O.css({zIndex:R.zIndex});if("se"===Q){O.addClass("ui-icon ui-icon-gripsmall-diagonal-se")}this.handles[Q]=".ui-resizable-"+Q;this.element.append(O)}}this._renderAxis=function(X){var U,V,T,W;X=X||this.element;for(U in this.handles){if(this.handles[U].constructor===String){this.handles[U]=this.element.children(this.handles[U]).first().show()}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){V=y(this.handles[U],this.element);W=/sw|ne|nw|se|n|s/.test(U)?V.outerHeight():V.outerWidth();T=["padding",/ne|nw|n/.test(U)?"Top":/se|sw|s/.test(U)?"Bottom":/^e$/.test(U)?"Right":"Left"].join("");X.css(T,W);this._proportionallyResize()}if(!y(this.handles[U]).length){continue}}};this._renderAxis(this.element);this._handles=y(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!P.resizing){if(this.className){O=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}P.axis=O&&O[1]?O[1]:"se"}});if(R.autoHide){this._handles.hide();y(this.element).addClass("ui-resizable-autohide").mouseenter(function(){if(R.disabled){return}y(this).removeClass("ui-resizable-autohide");P._handles.show()}).mouseleave(function(){if(R.disabled){return}if(!P.resizing){y(this).addClass("ui-resizable-autohide");P._handles.hide()}})}this._mouseInit()},_destroy:function(){this._mouseDestroy();var N,M=function(O){y(O).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){M(this.element);N=this.element;this.originalElement.css({position:N.css("position"),width:N.outerWidth(),height:N.outerHeight(),top:N.css("top"),left:N.css("left")}).insertAfter(N);N.remove()}this.originalElement.css("resize",this.originalResizeStyle);M(this.originalElement);return this},_mouseCapture:function(O){var N,P,M=false;for(N in this.handles){P=y(this.handles[N])[0];if(P===O.target||y.contains(P,O.target)){M=true}}return !this.options.disabled&&M},_mouseStart:function(N){var R,O,Q,P=this.options,M=this.element;this.resizing=true;this._renderProxy();R=this._num(this.helper.css("left"));O=this._num(this.helper.css("top"));if(P.containment){R+=y(P.containment).scrollLeft()||0;O+=y(P.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:R,top:O};this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:M.width(),height:M.height()};this.originalSize=this._helper?{width:M.outerWidth(),height:M.outerHeight()}:{width:M.width(),height:M.height()};this.originalPosition={left:R,top:O};this.sizeDiff={width:M.outerWidth()-M.width(),height:M.outerHeight()-M.height()};this.originalMousePosition={left:N.pageX,top:N.pageY};this.aspectRatio=(typeof P.aspectRatio==="number")?P.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);Q=y(".ui-resizable-"+this.axis).css("cursor");y("body").css("cursor",Q==="auto"?this.axis+"-resize":Q);M.addClass("ui-resizable-resizing");this._propagate("start",N);return true},_mouseDrag:function(M){var Q,N=this.helper,R={},P=this.originalMousePosition,S=this.axis,U=(M.pageX-P.left)||0,T=(M.pageY-P.top)||0,O=this._change[S];this.prevPosition={top:this.position.top,left:this.position.left};this.prevSize={width:this.size.width,height:this.size.height};if(!O){return false}Q=O.apply(this,[M,U,T]);this._updateVirtualBoundaries(M.shiftKey);if(this._aspectRatio||M.shiftKey){Q=this._updateRatio(Q,M)}Q=this._respectSize(Q,M);this._updateCache(Q);this._propagate("resize",M);if(this.position.top!==this.prevPosition.top){R.top=this.position.top+"px"}if(this.position.left!==this.prevPosition.left){R.left=this.position.left+"px"}if(this.size.width!==this.prevSize.width){R.width=this.size.width+"px"}if(this.size.height!==this.prevSize.height){R.height=this.size.height+"px"}N.css(R);if(!this._helper&&this._proportionallyResizeElements.length){this._proportionallyResize()}if(!y.isEmptyObject(R)){this._trigger("resize",M,this.ui())}return false},_mouseStop:function(P){this.resizing=false;var O,M,N,S,V,R,U,Q=this.options,T=this;if(this._helper){O=this._proportionallyResizeElements;M=O.length&&(/textarea/i).test(O[0].nodeName);N=M&&this._hasScroll(O[0],"left")?0:T.sizeDiff.height;S=M?0:T.sizeDiff.width;V={width:(T.helper.width()-S),height:(T.helper.height()-N)};R=(parseInt(T.element.css("left"),10)+(T.position.left-T.originalPosition.left))||null;U=(parseInt(T.element.css("top"),10)+(T.position.top-T.originalPosition.top))||null;if(!Q.animate){this.element.css(y.extend(V,{top:U,left:R}))}T.helper.height(T.size.height);T.helper.width(T.size.width);if(this._helper&&!Q.animate){this._proportionallyResize()}}y("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",P);if(this._helper){this.helper.remove()}return false},_updateVirtualBoundaries:function(O){var Q,P,N,S,M,R=this.options;M={minWidth:this._isNumber(R.minWidth)?R.minWidth:0,maxWidth:this._isNumber(R.maxWidth)?R.maxWidth:Infinity,minHeight:this._isNumber(R.minHeight)?R.minHeight:0,maxHeight:this._isNumber(R.maxHeight)?R.maxHeight:Infinity};if(this._aspectRatio||O){Q=M.minHeight*this.aspectRatio;N=M.minWidth/this.aspectRatio;P=M.maxHeight*this.aspectRatio;S=M.maxWidth/this.aspectRatio;if(Q>M.minWidth){M.minWidth=Q}if(N>M.minHeight){M.minHeight=N}if(PR.width),V=this._isNumber(R.height)&&O.minHeight&&(O.minHeight>R.height),N=this.originalPosition.left+this.originalSize.width,T=this.position.top+this.size.height,Q=/sw|nw|w/.test(U),M=/nw|ne|n/.test(U);if(P){R.width=O.minWidth}if(V){R.height=O.minHeight}if(W){R.width=O.maxWidth}if(S){R.height=O.maxHeight}if(P&&Q){R.left=N-O.minWidth}if(W&&Q){R.left=N-O.maxWidth}if(V&&M){R.top=T-O.minHeight}if(S&&M){R.top=T-O.maxHeight}if(!R.width&&!R.height&&!R.left&&R.top){R.top=null}else{if(!R.width&&!R.height&&!R.top&&R.left){R.left=null}}return R},_proportionallyResize:function(){if(!this._proportionallyResizeElements.length){return}var P,N,R,M,Q,O=this.helper||this.element;for(P=0;P");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:++N.zIndex});this.helper.appendTo("body").disableSelection()}else{this.helper=this.element}},_change:{e:function(N,M){return{width:this.originalSize.width+M}},w:function(O,M){var N=this.originalSize,P=this.originalPosition;return{left:P.left+M,width:N.width-M}},n:function(P,N,M){var O=this.originalSize,Q=this.originalPosition;return{top:Q.top+M,height:O.height-M}},s:function(O,N,M){return{height:this.originalSize.height+M}},se:function(O,N,M){return y.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[O,N,M]))},sw:function(O,N,M){return y.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[O,N,M]))},ne:function(O,N,M){return y.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[O,N,M]))},nw:function(O,N,M){return y.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[O,N,M]))}},_propagate:function(N,M){y.ui.plugin.call(this,N,[M,this.ui()]);(N!=="resize"&&this._trigger(N,M,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,prevSize:this.prevSize,prevPosition:this.prevPosition}}});y.ui.plugin.add("resizable","animate",{stop:function(P){var U=y(this).resizable("instance"),R=U.options,O=U._proportionallyResizeElements,M=O.length&&(/textarea/i).test(O[0].nodeName),N=M&&U._hasScroll(O[0],"left")?0:U.sizeDiff.height,T=M?0:U.sizeDiff.width,Q={width:(U.size.width-T),height:(U.size.height-N)},S=(parseInt(U.element.css("left"),10)+(U.position.left-U.originalPosition.left))||null,V=(parseInt(U.element.css("top"),10)+(U.position.top-U.originalPosition.top))||null;U.element.animate(y.extend(Q,V&&S?{top:V,left:S}:{}),{duration:R.animateDuration,easing:R.animateEasing,step:function(){var W={width:parseInt(U.element.css("width"),10),height:parseInt(U.element.css("height"),10),top:parseInt(U.element.css("top"),10),left:parseInt(U.element.css("left"),10)};if(O&&O.length){y(O[0]).css({width:W.width,height:W.height})}U._updateCache(W);U._propagate("resize",P)}})}});y.ui.plugin.add("resizable","containment",{start:function(){var U,O,W,M,T,P,X,V=y(this).resizable("instance"),S=V.options,R=V.element,N=S.containment,Q=(N instanceof y)?N.get(0):(/parent/.test(N))?R.parent().get(0):N;if(!Q){return}V.containerElement=y(Q);if(/document/.test(N)||N===document){V.containerOffset={left:0,top:0};V.containerPosition={left:0,top:0};V.parentData={element:y(document),left:0,top:0,width:y(document).width(),height:y(document).height()||document.body.parentNode.scrollHeight}}else{U=y(Q);O=[];y(["Top","Right","Left","Bottom"]).each(function(Z,Y){O[Z]=V._num(U.css("padding"+Y))});V.containerOffset=U.offset();V.containerPosition=U.position();V.containerSize={height:(U.innerHeight()-O[3]),width:(U.innerWidth()-O[1])};W=V.containerOffset;M=V.containerSize.height;T=V.containerSize.width;P=(V._hasScroll(Q,"left")?Q.scrollWidth:T);X=(V._hasScroll(Q)?Q.scrollHeight:M);V.parentData={element:Q,left:W.left,top:W.top,width:P,height:X}}},resize:function(N,X){var T,Z,S,Q,U=y(this).resizable("instance"),P=U.options,W=U.containerOffset,V=U.position,Y=U._aspectRatio||N.shiftKey,M={top:0,left:0},O=U.containerElement,R=true;if(O[0]!==document&&(/static/).test(O.css("position"))){M=W}if(V.left<(U._helper?W.left:0)){U.size.width=U.size.width+(U._helper?(U.position.left-W.left):(U.position.left-M.left));if(Y){U.size.height=U.size.width/U.aspectRatio;R=false}U.position.left=P.helper?W.left:0}if(V.top<(U._helper?W.top:0)){U.size.height=U.size.height+(U._helper?(U.position.top-W.top):U.position.top);if(Y){U.size.width=U.size.height*U.aspectRatio;R=false}U.position.top=U._helper?W.top:0}U.offset.left=U.parentData.left+U.position.left;U.offset.top=U.parentData.top+U.position.top;T=Math.abs((U._helper?U.offset.left-M.left:(U.offset.left-W.left))+U.sizeDiff.width);Z=Math.abs((U._helper?U.offset.top-M.top:(U.offset.top-W.top))+U.sizeDiff.height);S=U.containerElement.get(0)===U.element.parent().get(0);Q=/relative|absolute/.test(U.containerElement.css("position"));if(S&&Q){T-=Math.abs(U.parentData.left)}if(T+U.size.width>=U.parentData.width){U.size.width=U.parentData.width-T;if(Y){U.size.height=U.size.width/U.aspectRatio;R=false}}if(Z+U.size.height>=U.parentData.height){U.size.height=U.parentData.height-Z;if(Y){U.size.width=U.size.height*U.aspectRatio;R=false}}if(!R){U.position.left=X.prevPosition.left;U.position.top=X.prevPosition.top;U.size.width=X.prevSize.width;U.size.height=X.prevSize.height}},stop:function(){var R=y(this).resizable("instance"),N=R.options,S=R.containerOffset,M=R.containerPosition,O=R.containerElement,P=y(R.helper),U=P.offset(),T=P.outerWidth()-R.sizeDiff.width,Q=P.outerHeight()-R.sizeDiff.height;if(R._helper&&!N.animate&&(/relative/).test(O.css("position"))){y(this).css({left:U.left-M.left-S.left,width:T,height:Q})}if(R._helper&&!N.animate&&(/static/).test(O.css("position"))){y(this).css({left:U.left-M.left-S.left,width:T,height:Q})}}});y.ui.plugin.add("resizable","alsoResize",{start:function(){var M=y(this).resizable("instance"),O=M.options,N=function(P){y(P).each(function(){var Q=y(this);Q.data("ui-resizable-alsoresize",{width:parseInt(Q.width(),10),height:parseInt(Q.height(),10),left:parseInt(Q.css("left"),10),top:parseInt(Q.css("top"),10)})})};if(typeof(O.alsoResize)==="object"&&!O.alsoResize.parentNode){if(O.alsoResize.length){O.alsoResize=O.alsoResize[0];N(O.alsoResize)}else{y.each(O.alsoResize,function(P){N(P)})}}else{N(O.alsoResize)}},resize:function(O,Q){var N=y(this).resizable("instance"),R=N.options,P=N.originalSize,T=N.originalPosition,S={height:(N.size.height-P.height)||0,width:(N.size.width-P.width)||0,top:(N.position.top-T.top)||0,left:(N.position.left-T.left)||0},M=function(U,V){y(U).each(function(){var Y=y(this),Z=y(this).data("ui-resizable-alsoresize"),X={},W=V&&V.length?V:Y.parents(Q.originalElement[0]).length?["width","height"]:["width","height","top","left"];y.each(W,function(aa,ac){var ab=(Z[ac]||0)+(S[ac]||0);if(ab&&ab>=0){X[ac]=ab||null}});Y.css(X)})};if(typeof(R.alsoResize)==="object"&&!R.alsoResize.nodeType){y.each(R.alsoResize,function(U,V){M(U,V)})}else{M(R.alsoResize)}},stop:function(){y(this).removeData("resizable-alsoresize")}});y.ui.plugin.add("resizable","ghost",{start:function(){var N=y(this).resizable("instance"),O=N.options,M=N.size;N.ghost=N.originalElement.clone();N.ghost.css({opacity:0.25,display:"block",position:"relative",height:M.height,width:M.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof O.ghost==="string"?O.ghost:"");N.ghost.appendTo(N.helper)},resize:function(){var M=y(this).resizable("instance");if(M.ghost){M.ghost.css({position:"relative",height:M.size.height,width:M.size.width})}},stop:function(){var M=y(this).resizable("instance");if(M.ghost&&M.helper){M.helper.get(0).removeChild(M.ghost.get(0))}}});y.ui.plugin.add("resizable","grid",{resize:function(){var Y=y(this).resizable("instance"),Q=Y.options,Z=Y.size,S=Y.originalSize,V=Y.originalPosition,aa=Y.axis,N=typeof Q.grid==="number"?[Q.grid,Q.grid]:Q.grid,W=(N[0]||1),U=(N[1]||1),P=Math.round((Z.width-S.width)/W)*W,O=Math.round((Z.height-S.height)/U)*U,T=S.width+P,M=S.height+O,R=Q.maxWidth&&(Q.maxWidthT),ac=Q.minHeight&&(Q.minHeight>M);Q.grid=N;if(X){T=T+W}if(ac){M=M+U}if(R){T=T-W}if(ab){M=M-U}if(/^(se|s|e)$/.test(aa)){Y.size.width=T;Y.size.height=M}else{if(/^(ne)$/.test(aa)){Y.size.width=T;Y.size.height=M;Y.position.top=V.top-O}else{if(/^(sw)$/.test(aa)){Y.size.width=T;Y.size.height=M;Y.position.left=V.left-P}else{if(M-U>0){Y.size.height=M;Y.position.top=V.top-O}else{Y.size.height=U;Y.position.top=V.top+S.height-U}if(T-W>0){Y.size.width=T;Y.position.left=V.left-P}else{Y.size.width=W;Y.position.left=V.left+S.width-W}}}}}});var B=y.ui.resizable; /*! * jQuery UI Selectable 1.11.0 * http://jqueryui.com * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/selectable/ */ var d=y.widget("ui.selectable",y.ui.mouse,{version:"1.11.0",options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var N,M=this;this.element.addClass("ui-selectable");this.dragged=false;this.refresh=function(){N=y(M.options.filter,M.element[0]);N.addClass("ui-selectee");N.each(function(){var O=y(this),P=O.offset();y.data(this,"selectable-item",{element:this,$element:O,left:P.left,top:P.top,right:P.left+O.outerWidth(),bottom:P.top+O.outerHeight(),startselected:false,selected:O.hasClass("ui-selected"),selecting:O.hasClass("ui-selecting"),unselecting:O.hasClass("ui-unselecting")})})};this.refresh();this.selectees=N.addClass("ui-selectee");this._mouseInit();this.helper=y("
")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");this.element.removeClass("ui-selectable ui-selectable-disabled");this._mouseDestroy()},_mouseStart:function(O){var N=this,M=this.options;this.opos=[O.pageX,O.pageY];if(this.options.disabled){return}this.selectees=y(M.filter,this.element[0]);this._trigger("start",O);y(M.appendTo).append(this.helper);this.helper.css({left:O.pageX,top:O.pageY,width:0,height:0});if(M.autoRefresh){this.refresh()}this.selectees.filter(".ui-selected").each(function(){var P=y.data(this,"selectable-item");P.startselected=true;if(!O.metaKey&&!O.ctrlKey){P.$element.removeClass("ui-selected");P.selected=false;P.$element.addClass("ui-unselecting");P.unselecting=true;N._trigger("unselecting",O,{unselecting:P.element})}});y(O.target).parents().addBack().each(function(){var P,Q=y.data(this,"selectable-item");if(Q){P=(!O.metaKey&&!O.ctrlKey)||!Q.$element.hasClass("ui-selected");Q.$element.removeClass(P?"ui-unselecting":"ui-selected").addClass(P?"ui-selecting":"ui-unselecting");Q.unselecting=!P;Q.selecting=P;Q.selected=P;if(P){N._trigger("selecting",O,{selecting:Q.element})}else{N._trigger("unselecting",O,{unselecting:Q.element})}return false}})},_mouseDrag:function(T){this.dragged=true;if(this.options.disabled){return}var Q,S=this,O=this.options,N=this.opos[0],R=this.opos[1],M=T.pageX,P=T.pageY;if(N>M){Q=M;M=N;N=Q}if(R>P){Q=P;P=R;R=Q}this.helper.css({left:N,top:R,width:M-N,height:P-R});this.selectees.each(function(){var U=y.data(this,"selectable-item"),V=false;if(!U||U.element===S.element[0]){return}if(O.tolerance==="touch"){V=(!(U.left>M||U.rightP||U.bottomN&&U.rightR&&U.bottom *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1000,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(N,M,O){return(N>=M)&&(N<(M+O))},_isFloating:function(M){return(/left|right/).test(M.css("float"))||(/inline|table-cell/).test(M.css("display"))},_create:function(){var M=this.options;this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?M.axis==="x"||this._isFloating(this.items[0].item):false;this.offset=this.element.offset();this._mouseInit();this._setHandleClassName();this.ready=true},_setOption:function(M,N){this._super(M,N);if(M==="handle"){this._setHandleClassName()}},_setHandleClassName:function(){this.element.find(".ui-sortable-handle").removeClass("ui-sortable-handle");y.each(this.items,function(){(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item).addClass("ui-sortable-handle")})},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").find(".ui-sortable-handle").removeClass("ui-sortable-handle");this._mouseDestroy();for(var M=this.items.length-1;M>=0;M--){this.items[M].item.removeData(this.widgetName+"-item")}return this},_mouseCapture:function(O,P){var M=null,Q=false,N=this;if(this.reverting){return false}if(this.options.disabled||this.options.type==="static"){return false}this._refreshItems(O);y(O.target).parents().each(function(){if(y.data(this,N.widgetName+"-item")===N){M=y(this);return false}});if(y.data(O.target,N.widgetName+"-item")===N){M=y(O.target)}if(!M){return false}if(this.options.handle&&!P){y(this.options.handle,M).find("*").addBack().each(function(){if(this===O.target){Q=true}});if(!Q){return false}}this.currentItem=M;this._removeCurrentsFromItems();return true},_mouseStart:function(P,Q,N){var O,M,R=this.options;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(P);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};y.extend(this.offset,{click:{left:P.pageX-this.offset.left,top:P.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(P);this.originalPageX=P.pageX;this.originalPageY=P.pageY;(R.cursorAt&&this._adjustOffsetFromHelper(R.cursorAt));this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};if(this.helper[0]!==this.currentItem[0]){this.currentItem.hide()}this._createPlaceholder();if(R.containment){this._setContainment()}if(R.cursor&&R.cursor!=="auto"){M=this.document.find("body");this.storedCursor=M.css("cursor");M.css("cursor",R.cursor);this.storedStylesheet=y("").appendTo(M)}if(R.opacity){if(this.helper.css("opacity")){this._storedOpacity=this.helper.css("opacity")}this.helper.css("opacity",R.opacity)}if(R.zIndex){if(this.helper.css("zIndex")){this._storedZIndex=this.helper.css("zIndex")}this.helper.css("zIndex",R.zIndex)}if(this.scrollParent[0]!==document&&this.scrollParent[0].tagName!=="HTML"){this.overflowOffset=this.scrollParent.offset()}this._trigger("start",P,this._uiHash());if(!this._preserveHelperProportions){this._cacheHelperProportions()}if(!N){for(O=this.containers.length-1;O>=0;O--){this.containers[O]._trigger("activate",P,this._uiHash(this))}}if(y.ui.ddmanager){y.ui.ddmanager.current=this}if(y.ui.ddmanager&&!R.dropBehaviour){y.ui.ddmanager.prepareOffsets(this,P)}this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(P);return true},_mouseDrag:function(Q){var O,P,N,S,R=this.options,M=false;this.position=this._generatePosition(Q);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs}if(this.options.scroll){if(this.scrollParent[0]!==document&&this.scrollParent[0].tagName!=="HTML"){if((this.overflowOffset.top+this.scrollParent[0].offsetHeight)-Q.pageY=0;O--){P=this.items[O];N=P.item[0];S=this._intersectsWithPointer(P);if(!S){continue}if(P.instance!==this.currentContainer){continue}if(N!==this.currentItem[0]&&this.placeholder[S===1?"next":"prev"]()[0]!==N&&!y.contains(this.placeholder[0],N)&&(this.options.type==="semi-dynamic"?!y.contains(this.element[0],N):true)){this.direction=S===1?"down":"up";if(this.options.tolerance==="pointer"||this._intersectsWithSides(P)){this._rearrange(Q,P)}else{break}this._trigger("change",Q,this._uiHash());break}}this._contactContainers(Q);if(y.ui.ddmanager){y.ui.ddmanager.drag(this,Q)}this._trigger("sort",Q,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(O,Q){if(!O){return}if(y.ui.ddmanager&&!this.options.dropBehaviour){y.ui.ddmanager.drop(this,O)}if(this.options.revert){var N=this,R=this.placeholder.offset(),M=this.options.axis,P={};if(!M||M==="x"){P.left=R.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)}if(!M||M==="y"){P.top=R.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)}this.reverting=true;y(this.helper).animate(P,parseInt(this.options.revert,10)||500,function(){N._clear(O)})}else{this._clear(O,Q)}return false},cancel:function(){if(this.dragging){this._mouseUp({target:null});if(this.options.helper==="original"){this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}for(var M=this.containers.length-1;M>=0;M--){this.containers[M]._trigger("deactivate",null,this._uiHash(this));if(this.containers[M].containerCache.over){this.containers[M]._trigger("out",null,this._uiHash(this));this.containers[M].containerCache.over=0}}}if(this.placeholder){if(this.placeholder[0].parentNode){this.placeholder[0].parentNode.removeChild(this.placeholder[0])}if(this.options.helper!=="original"&&this.helper&&this.helper[0].parentNode){this.helper.remove()}y.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});if(this.domPosition.prev){y(this.domPosition.prev).after(this.currentItem)}else{y(this.domPosition.parent).prepend(this.currentItem)}}return this},serialize:function(O){var M=this._getItemsAsjQuery(O&&O.connected),N=[];O=O||{};y(M).each(function(){var P=(y(O.item||this).attr(O.attribute||"id")||"").match(O.expression||(/(.+)[\-=_](.+)/));if(P){N.push((O.key||P[1]+"[]")+"="+(O.key&&O.expression?P[1]:P[2]))}});if(!N.length&&O.key){N.push(O.key+"=")}return N.join("&")},toArray:function(O){var M=this._getItemsAsjQuery(O&&O.connected),N=[];O=O||{};M.each(function(){N.push(y(O.item||this).attr(O.attribute||"id")||"")});return N},_intersectsWith:function(X){var O=this.positionAbs.left,N=O+this.helperProportions.width,V=this.positionAbs.top,U=V+this.helperProportions.height,P=X.left,M=P+X.width,Y=X.top,T=Y+X.height,Z=this.offset.click.top,S=this.offset.click.left,R=(this.options.axis==="x")||((V+Z)>Y&&(V+Z)P&&(O+S)X[this.floating?"width":"height"])){return Q}else{return(P0?"down":"up")},_getDragHorizontalDirection:function(){var M=this.positionAbs.left-this.lastPositionAbs.left;return M!==0&&(M>0?"right":"left")},refresh:function(M){this._refreshItems(M);this._setHandleClassName();this.refreshPositions();return this},_connectWith:function(){var M=this.options;return M.connectWith.constructor===String?[M.connectWith]:M.connectWith},_getItemsAsjQuery:function(M){var O,N,T,Q,R=[],P=[],S=this._connectWith();if(S&&M){for(O=S.length-1;O>=0;O--){T=y(S[O]);for(N=T.length-1;N>=0;N--){Q=y.data(T[N],this.widgetFullName);if(Q&&Q!==this&&!Q.options.disabled){P.push([y.isFunction(Q.options.items)?Q.options.items.call(Q.element):y(Q.options.items,Q.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),Q])}}}}P.push([y.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):y(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);function U(){R.push(this)}for(O=P.length-1;O>=0;O--){P[O][0].each(U)}return y(R)},_removeCurrentsFromItems:function(){var M=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=y.grep(this.items,function(O){for(var N=0;N=0;Q--){V=y(T[Q]);for(O=V.length-1;O>=0;O--){R=y.data(V[O],this.widgetFullName);if(R&&R!==this&&!R.options.disabled){P.push([y.isFunction(R.options.items)?R.options.items.call(R.element[0],M,{item:this.currentItem}):y(R.options.items,R.element),R]);this.containers.push(R)}}}}for(Q=P.length-1;Q>=0;Q--){U=P[Q][1];N=P[Q][0];for(O=0,W=N.length;O=0;O--){P=this.items[O];if(P.instance!==this.currentContainer&&this.currentContainer&&P.item[0]!==this.currentItem[0]){continue}N=this.options.toleranceElement?y(this.options.toleranceElement,P.item):P.item;if(!M){P.width=N.outerWidth();P.height=N.outerHeight()}Q=N.offset();P.left=Q.left;P.top=Q.top}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(O=this.containers.length-1;O>=0;O--){Q=this.containers[O].element.offset();this.containers[O].containerCache.left=Q.left;this.containers[O].containerCache.top=Q.top;this.containers[O].containerCache.width=this.containers[O].element.outerWidth();this.containers[O].containerCache.height=this.containers[O].element.outerHeight()}}return this},_createPlaceholder:function(N){N=N||this;var M,O=N.options;if(!O.placeholder||O.placeholder.constructor===String){M=O.placeholder;O.placeholder={element:function(){var Q=N.currentItem[0].nodeName.toLowerCase(),P=y("<"+Q+">",N.document[0]).addClass(M||N.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");if(Q==="tr"){N.currentItem.children().each(function(){y(" ",N.document[0]).attr("colspan",y(this).attr("colspan")||1).appendTo(P)})}else{if(Q==="img"){P.attr("src",N.currentItem.attr("src"))}}if(!M){P.css("visibility","hidden")}return P},update:function(P,Q){if(M&&!O.forcePlaceholderSize){return}if(!Q.height()){Q.height(N.currentItem.innerHeight()-parseInt(N.currentItem.css("paddingTop")||0,10)-parseInt(N.currentItem.css("paddingBottom")||0,10))}if(!Q.width()){Q.width(N.currentItem.innerWidth()-parseInt(N.currentItem.css("paddingLeft")||0,10)-parseInt(N.currentItem.css("paddingRight")||0,10))}}}}N.placeholder=y(O.placeholder.element.call(N.element,N.currentItem));N.currentItem.after(N.placeholder);O.placeholder.update(N,N.placeholder)},_contactContainers:function(M){var R,P,V,S,T,X,Y,Q,U,O,N=null,W=null;for(R=this.containers.length-1;R>=0;R--){if(y.contains(this.currentItem[0],this.containers[R].element[0])){continue}if(this._intersectsWith(this.containers[R].containerCache)){if(N&&y.contains(this.containers[R].element[0],N.element[0])){continue}N=this.containers[R];W=R}else{if(this.containers[R].containerCache.over){this.containers[R]._trigger("out",M,this._uiHash(this));this.containers[R].containerCache.over=0}}}if(!N){return}if(this.containers.length===1){if(!this.containers[W].containerCache.over){this.containers[W]._trigger("over",M,this._uiHash(this));this.containers[W].containerCache.over=1}}else{V=10000;S=null;U=N.floating||this._isFloating(this.currentItem);T=U?"left":"top";X=U?"width":"height";O=U?"clientX":"clientY";for(P=this.items.length-1;P>=0;P--){if(!y.contains(this.containers[W].element[0],this.items[P].item[0])){continue}if(this.items[P].item[0]===this.currentItem[0]){continue}Y=this.items[P].item.offset()[T];Q=false;if(M[O]-Y>this.items[P][X]/2){Q=true}if(Math.abs(M[O]-Y)this.containment[2]){O=this.containment[2]+this.offset.click.left}if(P.pageY-this.offset.click.top>this.containment[3]){N=this.containment[3]+this.offset.click.top}}if(S.grid){R=this.originalPageY+Math.round((N-this.originalPageY)/S.grid[1])*S.grid[1];N=this.containment?((R-this.offset.click.top>=this.containment[1]&&R-this.offset.click.top<=this.containment[3])?R:((R-this.offset.click.top>=this.containment[1])?R-S.grid[1]:R+S.grid[1])):R;Q=this.originalPageX+Math.round((O-this.originalPageX)/S.grid[0])*S.grid[0];O=this.containment?((Q-this.offset.click.left>=this.containment[0]&&Q-this.offset.click.left<=this.containment[2])?Q:((Q-this.offset.click.left>=this.containment[0])?Q-S.grid[0]:Q+S.grid[0])):Q}}return{top:(N-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+((this.cssPosition==="fixed"?-this.scrollParent.scrollTop():(T?0:M.scrollTop())))),left:(O-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+((this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():T?0:M.scrollLeft())))}},_rearrange:function(Q,P,N,O){N?N[0].appendChild(this.placeholder[0]):P.item[0].parentNode.insertBefore(this.placeholder[0],(this.direction==="down"?P.item[0]:P.item[0].nextSibling));this.counter=this.counter?++this.counter:1;var M=this.counter;this._delay(function(){if(M===this.counter){this.refreshPositions(!O)}})},_clear:function(N,P){this.reverting=false;var M,Q=[];if(!this._noFinalSort&&this.currentItem.parent().length){this.placeholder.before(this.currentItem)}this._noFinalSort=null;if(this.helper[0]===this.currentItem[0]){for(M in this._storedCSS){if(this._storedCSS[M]==="auto"||this._storedCSS[M]==="static"){this._storedCSS[M]=""}}this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}if(this.fromOutside&&!P){Q.push(function(R){this._trigger("receive",R,this._uiHash(this.fromOutside))})}if((this.fromOutside||this.domPosition.prev!==this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!==this.currentItem.parent()[0])&&!P){Q.push(function(R){this._trigger("update",R,this._uiHash())})}if(this!==this.currentContainer){if(!P){Q.push(function(R){this._trigger("remove",R,this._uiHash())});Q.push((function(R){return function(S){R._trigger("receive",S,this._uiHash(this))}}).call(this,this.currentContainer));Q.push((function(R){return function(S){R._trigger("update",S,this._uiHash(this))}}).call(this,this.currentContainer))}}function O(T,R,S){return function(U){S._trigger(T,U,R._uiHash(R))}}for(M=this.containers.length-1;M>=0;M--){if(!P){Q.push(O("deactivate",this,this.containers[M]))}if(this.containers[M].containerCache.over){Q.push(O("out",this,this.containers[M]));this.containers[M].containerCache.over=0}}if(this.storedCursor){this.document.find("body").css("cursor",this.storedCursor);this.storedStylesheet.remove()}if(this._storedOpacity){this.helper.css("opacity",this._storedOpacity)}if(this._storedZIndex){this.helper.css("zIndex",this._storedZIndex==="auto"?"":this._storedZIndex)}this.dragging=false;if(this.cancelHelperRemoval){if(!P){this._trigger("beforeStop",N,this._uiHash());for(M=0;M"))}y.extend(K.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(M){p(this._defaults,M||{});return this},_attachDatepicker:function(P,M){var Q,O,N;Q=P.nodeName.toLowerCase();O=(Q==="div"||Q==="span");if(!P.id){this.uuid+=1;P.id="dp"+this.uuid}N=this._newInst(y(P),O);N.settings=y.extend({},M||{});if(Q==="input"){this._connectDatepicker(P,N)}else{if(O){this._inlineDatepicker(P,N)}}},_newInst:function(N,M){var O=N[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:O,input:N,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:M,dpDiv:(!M?this.dpDiv:g(y("
")))}},_connectDatepicker:function(O,N){var M=y(O);N.append=y([]);N.trigger=y([]);if(M.hasClass(this.markerClassName)){return}this._attachments(M,N);M.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp);this._autoSize(N);y.data(O,"datepicker",N);if(N.settings.disabled){this._disableDatepicker(O)}},_attachments:function(O,R){var N,Q,M,S=this._get(R,"appendText"),P=this._get(R,"isRTL");if(R.append){R.append.remove()}if(S){R.append=y(""+S+"");O[P?"before":"after"](R.append)}O.unbind("focus",this._showDatepicker);if(R.trigger){R.trigger.remove()}N=this._get(R,"showOn");if(N==="focus"||N==="both"){O.focus(this._showDatepicker)}if(N==="button"||N==="both"){Q=this._get(R,"buttonText");M=this._get(R,"buttonImage");R.trigger=y(this._get(R,"buttonImageOnly")?y("").addClass(this._triggerClass).attr({src:M,alt:Q,title:Q}):y("").addClass(this._triggerClass).html(!M?Q:y("").attr({src:M,alt:Q,title:Q})));O[P?"before":"after"](R.trigger);R.trigger.click(function(){if(y.datepicker._datepickerShowing&&y.datepicker._lastInput===O[0]){y.datepicker._hideDatepicker()}else{if(y.datepicker._datepickerShowing&&y.datepicker._lastInput!==O[0]){y.datepicker._hideDatepicker();y.datepicker._showDatepicker(O[0])}else{y.datepicker._showDatepicker(O[0])}}return false})}},_autoSize:function(S){if(this._get(S,"autoSize")&&!S.inline){var P,N,O,R,Q=new Date(2009,12-1,20),M=this._get(S,"dateFormat");if(M.match(/[DM]/)){P=function(T){N=0;O=0;for(R=0;RN){N=T[R].length;O=R}}return O};Q.setMonth(P(this._get(S,(M.match(/MM/)?"monthNames":"monthNamesShort"))));Q.setDate(P(this._get(S,(M.match(/DD/)?"dayNames":"dayNamesShort")))+20-Q.getDay())}S.input.attr("size",this._formatDate(S,Q).length)}},_inlineDatepicker:function(N,M){var O=y(N);if(O.hasClass(this.markerClassName)){return}O.addClass(this.markerClassName).append(M.dpDiv);y.data(N,"datepicker",M);this._setDate(M,this._getDefaultDate(M),true);this._updateDatepicker(M);this._updateAlternate(M);if(M.settings.disabled){this._disableDatepicker(N)}M.dpDiv.css("display","block")},_dialogDatepicker:function(T,N,R,O,S){var M,W,Q,V,U,P=this._dialogInst;if(!P){this.uuid+=1;M="dp"+this.uuid;this._dialogInput=y("");this._dialogInput.keydown(this._doKeyDown);y("body").append(this._dialogInput);P=this._dialogInst=this._newInst(this._dialogInput,false);P.settings={};y.data(this._dialogInput[0],"datepicker",P)}p(P.settings,O||{});N=(N&&N.constructor===Date?this._formatDate(P,N):N);this._dialogInput.val(N);this._pos=(S?(S.length?S:[S.pageX,S.pageY]):null);if(!this._pos){W=document.documentElement.clientWidth;Q=document.documentElement.clientHeight;V=document.documentElement.scrollLeft||document.body.scrollLeft;U=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[(W/2)-100+V,(Q/2)-150+U]}this._dialogInput.css("left",(this._pos[0]+20)+"px").css("top",this._pos[1]+"px");P.settings.onSelect=R;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);if(y.blockUI){y.blockUI(this.dpDiv)}y.data(this._dialogInput[0],"datepicker",P);return this},_destroyDatepicker:function(O){var P,M=y(O),N=y.data(O,"datepicker");if(!M.hasClass(this.markerClassName)){return}P=O.nodeName.toLowerCase();y.removeData(O,"datepicker");if(P==="input"){N.append.remove();N.trigger.remove();M.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else{if(P==="div"||P==="span"){M.removeClass(this.markerClassName).empty()}}},_enableDatepicker:function(P){var Q,O,M=y(P),N=y.data(P,"datepicker");if(!M.hasClass(this.markerClassName)){return}Q=P.nodeName.toLowerCase();if(Q==="input"){P.disabled=false;N.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else{if(Q==="div"||Q==="span"){O=M.children("."+this._inlineClass);O.children().removeClass("ui-state-disabled");O.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",false)}}this._disabledInputs=y.map(this._disabledInputs,function(R){return(R===P?null:R)})},_disableDatepicker:function(P){var Q,O,M=y(P),N=y.data(P,"datepicker");if(!M.hasClass(this.markerClassName)){return}Q=P.nodeName.toLowerCase();if(Q==="input"){P.disabled=true;N.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else{if(Q==="div"||Q==="span"){O=M.children("."+this._inlineClass);O.children().addClass("ui-state-disabled");O.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",true)}}this._disabledInputs=y.map(this._disabledInputs,function(R){return(R===P?null:R)});this._disabledInputs[this._disabledInputs.length]=P},_isDisabledDatepicker:function(N){if(!N){return false}for(var M=0;M-1)}},_doKeyUp:function(O){var M,P=y.datepicker._getInst(O.target);if(P.input.val()!==P.lastVal){try{M=y.datepicker.parseDate(y.datepicker._get(P,"dateFormat"),(P.input?P.input.val():null),y.datepicker._getFormatConfig(P));if(M){y.datepicker._setDateFromField(P);y.datepicker._updateAlternate(P);y.datepicker._updateDatepicker(P)}}catch(N){}}return true},_showDatepicker:function(N){N=N.target||N;if(N.nodeName.toLowerCase()!=="input"){N=y("input",N.parentNode)[0]}if(y.datepicker._isDisabledDatepicker(N)||y.datepicker._lastInput===N){return}var P,T,O,R,S,M,Q;P=y.datepicker._getInst(N);if(y.datepicker._curInst&&y.datepicker._curInst!==P){y.datepicker._curInst.dpDiv.stop(true,true);if(P&&y.datepicker._datepickerShowing){y.datepicker._hideDatepicker(y.datepicker._curInst.input[0])}}T=y.datepicker._get(P,"beforeShow");O=T?T.apply(N,[N,P]):{};if(O===false){return}p(P.settings,O);P.lastVal=null;y.datepicker._lastInput=N;y.datepicker._setDateFromField(P);if(y.datepicker._inDialog){N.value=""}if(!y.datepicker._pos){y.datepicker._pos=y.datepicker._findPos(N);y.datepicker._pos[1]+=N.offsetHeight}R=false;y(N).parents().each(function(){R|=y(this).css("position")==="fixed";return !R});S={left:y.datepicker._pos[0],top:y.datepicker._pos[1]};y.datepicker._pos=null;P.dpDiv.empty();P.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});y.datepicker._updateDatepicker(P);S=y.datepicker._checkOffset(P,S,R);P.dpDiv.css({position:(y.datepicker._inDialog&&y.blockUI?"static":(R?"fixed":"absolute")),display:"none",left:S.left+"px",top:S.top+"px"});if(!P.inline){M=y.datepicker._get(P,"showAnim");Q=y.datepicker._get(P,"duration");y.datepicker._datepickerShowing=true;if(y.effects&&y.effects.effect[M]){P.dpDiv.show(M,y.datepicker._get(P,"showOptions"),Q)}else{P.dpDiv[M||"show"](M?Q:null)}if(y.datepicker._shouldFocusInput(P)){P.input.focus()}y.datepicker._curInst=P}},_updateDatepicker:function(O){this.maxRows=4;j=O;O.dpDiv.empty().append(this._generateHTML(O));this._attachHandlers(O);O.dpDiv.find("."+this._dayOverClass+" a");var Q,M=this._getNumberOfMonths(O),P=M[1],N=17;O.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");if(P>1){O.dpDiv.addClass("ui-datepicker-multi-"+P).css("width",(N*P)+"em")}O.dpDiv[(M[0]!==1||M[1]!==1?"add":"remove")+"Class"]("ui-datepicker-multi");O.dpDiv[(this._get(O,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");if(O.yearshtml){Q=O.yearshtml;setTimeout(function(){if(Q===O.yearshtml&&O.yearshtml){O.dpDiv.find("select.ui-datepicker-year:first").replaceWith(O.yearshtml)}Q=O.yearshtml=null},0)}},_shouldFocusInput:function(M){return M.input&&M.input.is(":visible")&&!M.input.is(":disabled")&&!M.input.is(":focus")},_checkOffset:function(R,P,O){var Q=R.dpDiv.outerWidth(),U=R.dpDiv.outerHeight(),T=R.input?R.input.outerWidth():0,M=R.input?R.input.outerHeight():0,S=document.documentElement.clientWidth+(O?0:y(document).scrollLeft()),N=document.documentElement.clientHeight+(O?0:y(document).scrollTop());P.left-=(this._get(R,"isRTL")?(Q-T):0);P.left-=(O&&P.left===R.input.offset().left)?y(document).scrollLeft():0;P.top-=(O&&P.top===(R.input.offset().top+M))?y(document).scrollTop():0;P.left-=Math.min(P.left,(P.left+Q>S&&S>Q)?Math.abs(P.left+Q-S):0);P.top-=Math.min(P.top,(P.top+U>N&&N>U)?Math.abs(U+M):0);return P},_findPos:function(P){var M,O=this._getInst(P),N=this._get(O,"isRTL");while(P&&(P.type==="hidden"||P.nodeType!==1||y.expr.filters.hidden(P))){P=P[N?"previousSibling":"nextSibling"]}M=y(P).offset();return[M.left,M.top]},_hideDatepicker:function(O){var N,R,Q,M,P=this._curInst;if(!P||(O&&P!==y.data(O,"datepicker"))){return}if(this._datepickerShowing){N=this._get(P,"showAnim");R=this._get(P,"duration");Q=function(){y.datepicker._tidyDialog(P)};if(y.effects&&(y.effects.effect[N]||y.effects[N])){P.dpDiv.hide(N,y.datepicker._get(P,"showOptions"),R,Q)}else{P.dpDiv[(N==="slideDown"?"slideUp":(N==="fadeIn"?"fadeOut":"hide"))]((N?R:null),Q)}if(!N){Q()}this._datepickerShowing=false;M=this._get(P,"onClose");if(M){M.apply((P.input?P.input[0]:null),[(P.input?P.input.val():""),P])}this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(y.blockUI){y.unblockUI();y("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(M){M.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(N){if(!y.datepicker._curInst){return}var M=y(N.target),O=y.datepicker._getInst(M[0]);if(((M[0].id!==y.datepicker._mainDivId&&M.parents("#"+y.datepicker._mainDivId).length===0&&!M.hasClass(y.datepicker.markerClassName)&&!M.closest("."+y.datepicker._triggerClass).length&&y.datepicker._datepickerShowing&&!(y.datepicker._inDialog&&y.blockUI)))||(M.hasClass(y.datepicker.markerClassName)&&y.datepicker._curInst!==O)){y.datepicker._hideDatepicker()}},_adjustDate:function(Q,P,O){var N=y(Q),M=this._getInst(N[0]);if(this._isDisabledDatepicker(N[0])){return}this._adjustInstDate(M,P+(O==="M"?this._get(M,"showCurrentAtPos"):0),O);this._updateDatepicker(M)},_gotoToday:function(P){var M,O=y(P),N=this._getInst(O[0]);if(this._get(N,"gotoCurrent")&&N.currentDay){N.selectedDay=N.currentDay;N.drawMonth=N.selectedMonth=N.currentMonth;N.drawYear=N.selectedYear=N.currentYear}else{M=new Date();N.selectedDay=M.getDate();N.drawMonth=N.selectedMonth=M.getMonth();N.drawYear=N.selectedYear=M.getFullYear()}this._notifyChange(N);this._adjustDate(O);if(N.input){N.input.trigger("blur")}},_selectMonthYear:function(Q,M,P){var O=y(Q),N=this._getInst(O[0]);N["selected"+(P==="M"?"Month":"Year")]=N["draw"+(P==="M"?"Month":"Year")]=parseInt(M.options[M.selectedIndex].value,10);this._notifyChange(N);this._adjustDate(O)},_selectDay:function(R,P,M,Q){var N,O=y(R);if(y(Q).hasClass(this._unselectableClass)||this._isDisabledDatepicker(O[0])){return}N=this._getInst(O[0]);N.selectedDay=N.currentDay=y("a",Q).html();N.selectedMonth=N.currentMonth=P;N.selectedYear=N.currentYear=M;this._selectDate(R,this._formatDate(N,N.currentDay,N.currentMonth,N.currentYear))},_clearDate:function(N){var M=y(N);this._selectDate(M,"")},_selectDate:function(Q,M){var N,P=y(Q),O=this._getInst(P[0]);M=(M!=null?M:this._formatDate(O));if(O.input){O.input.val(M)}this._updateAlternate(O);N=this._get(O,"onSelect");if(N){N.apply((O.input?O.input[0]:null),[M,O])}else{if(O.input){O.input.trigger("change")}}if(O.inline){this._updateDatepicker(O)}else{this._hideDatepicker();this._lastInput=O.input[0];if(typeof(O.input[0])!=="object"){O.input.focus()}this._lastInput=null}},_updateAlternate:function(Q){var P,O,M,N=this._get(Q,"altField");if(N){P=this._get(Q,"altFormat")||this._get(Q,"dateFormat");O=this._getDate(Q);M=this.formatDate(P,O,this._getFormatConfig(Q));y(N).each(function(){y(this).val(M)})}},noWeekends:function(N){var M=N.getDay();return[(M>0&&M<6),""]},iso8601Week:function(M){var N,O=new Date(M.getTime());O.setDate(O.getDate()+4-(O.getDay()||7));N=O.getTime();O.setMonth(0);O.setDate(1);return Math.floor(Math.round((N-O)/86400000)/7)+1},parseDate:function(ac,X,ae){if(ac==null||X==null){throw"Invalid arguments"}X=(typeof X==="object"?X.toString():X+"");if(X===""){return null}var P,Z,N,ad=0,S=(ae?ae.shortYearCutoff:null)||this._defaults.shortYearCutoff,O=(typeof S!=="string"?S:new Date().getFullYear()%100+parseInt(S,10)),V=(ae?ae.dayNamesShort:null)||this._defaults.dayNamesShort,ag=(ae?ae.dayNames:null)||this._defaults.dayNames,M=(ae?ae.monthNamesShort:null)||this._defaults.monthNamesShort,Q=(ae?ae.monthNames:null)||this._defaults.monthNames,R=-1,ah=-1,ab=-1,U=-1,aa=false,af,W=function(aj){var ak=(P+1-1){ah=1;ab=U;do{Z=this._getDaysInMonth(R,ah-1);if(ab<=Z){break}ah++;ab-=Z}while(true)}af=this._daylightSavingAdjust(new Date(R,ah-1,ab));if(af.getFullYear()!==R||af.getMonth()+1!==ah||af.getDate()!==ab){throw"Invalid date"}return af},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(((1970-1)*365+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*24*60*60*10000000),formatDate:function(V,P,Q){if(!P){return""}var X,Y=(Q?Q.dayNamesShort:null)||this._defaults.dayNamesShort,N=(Q?Q.dayNames:null)||this._defaults.dayNames,T=(Q?Q.monthNamesShort:null)||this._defaults.monthNamesShort,R=(Q?Q.monthNames:null)||this._defaults.monthNames,W=function(Z){var aa=(X+112?M.getHours()+2:0);return M},_setDate:function(S,P,R){var M=!P,O=S.selectedMonth,Q=S.selectedYear,N=this._restrictMinMax(S,this._determineDate(S,P,new Date()));S.selectedDay=S.currentDay=N.getDate();S.drawMonth=S.selectedMonth=S.currentMonth=N.getMonth();S.drawYear=S.selectedYear=S.currentYear=N.getFullYear();if((O!==S.selectedMonth||Q!==S.selectedYear)&&!R){this._notifyChange(S)}this._adjustInstDate(S);if(S.input){S.input.val(M?"":this._formatDate(S))}},_getDate:function(N){var M=(!N.currentYear||(N.input&&N.input.val()==="")?null:this._daylightSavingAdjust(new Date(N.currentYear,N.currentMonth,N.currentDay)));return M},_attachHandlers:function(N){var M=this._get(N,"stepMonths"),O="#"+N.id.replace(/\\\\/g,"\\");N.dpDiv.find("[data-handler]").map(function(){var P={prev:function(){y.datepicker._adjustDate(O,-M,"M")},next:function(){y.datepicker._adjustDate(O,+M,"M")},hide:function(){y.datepicker._hideDatepicker()},today:function(){y.datepicker._gotoToday(O)},selectDay:function(){y.datepicker._selectDay(O,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this);return false},selectMonth:function(){y.datepicker._selectMonthYear(O,this,"M");return false},selectYear:function(){y.datepicker._selectMonthYear(O,this,"Y");return false}};y(this).bind(this.getAttribute("data-event"),P[this.getAttribute("data-handler")])})},_generateHTML:function(aD){var af,ae,ay,ap,Q,aH,aB,au,aK,an,aO,X,Z,Y,N,aG,V,ai,aJ,aw,aP,ah,am,W,R,az,ar,av,at,U,ak,aa,aC,aF,P,aI,aM,aq,ab,aE=new Date(),ag=this._daylightSavingAdjust(new Date(aE.getFullYear(),aE.getMonth(),aE.getDate())),aL=this._get(aD,"isRTL"),aN=this._get(aD,"showButtonPanel"),ax=this._get(aD,"hideIfNoPrevNext"),al=this._get(aD,"navigationAsDateFormat"),ac=this._getNumberOfMonths(aD),T=this._get(aD,"showCurrentAtPos"),ao=this._get(aD,"stepMonths"),aj=(ac[0]!==1||ac[1]!==1),O=this._daylightSavingAdjust((!aD.currentDay?new Date(9999,9,9):new Date(aD.currentYear,aD.currentMonth,aD.currentDay))),S=this._getMinMaxDate(aD,"min"),ad=this._getMinMaxDate(aD,"max"),M=aD.drawMonth-T,aA=aD.drawYear;if(M<0){M+=12;aA--}if(ad){af=this._daylightSavingAdjust(new Date(ad.getFullYear(),ad.getMonth()-(ac[0]*ac[1])+1,ad.getDate()));af=(S&&afaf){M--;if(M<0){M=11;aA--}}}aD.drawMonth=M;aD.drawYear=aA;ae=this._get(aD,"prevText");ae=(!al?ae:this.formatDate(ae,this._daylightSavingAdjust(new Date(aA,M-ao,1)),this._getFormatConfig(aD)));ay=(this._canAdjustMonth(aD,-1,aA,M)?"
"+ae+"":(ax?"":""+ae+""));ap=this._get(aD,"nextText");ap=(!al?ap:this.formatDate(ap,this._daylightSavingAdjust(new Date(aA,M+ao,1)),this._getFormatConfig(aD)));Q=(this._canAdjustMonth(aD,+1,aA,M)?""+ap+"":(ax?"":""+ap+""));aH=this._get(aD,"currentText");aB=(this._get(aD,"gotoCurrent")&&aD.currentDay?O:ag);aH=(!al?aH:this.formatDate(aH,aB,this._getFormatConfig(aD)));au=(!aD.inline?"":"");aK=(aN)?"
"+(aL?au:"")+(this._isInRange(aD,aB)?"":"")+(aL?"":au)+"
":"";an=parseInt(this._get(aD,"firstDay"),10);an=(isNaN(an)?0:an);aO=this._get(aD,"showWeek");X=this._get(aD,"dayNames");Z=this._get(aD,"dayNamesMin");Y=this._get(aD,"monthNames");N=this._get(aD,"monthNamesShort");aG=this._get(aD,"beforeShowDay");V=this._get(aD,"showOtherMonths");ai=this._get(aD,"selectOtherMonths");aJ=this._getDefaultDate(aD);aw="";aP;for(ah=0;ah1){switch(W){case 0:ar+=" ui-datepicker-group-first";az=" ui-corner-"+(aL?"right":"left");break;case ac[1]-1:ar+=" ui-datepicker-group-last";az=" ui-corner-"+(aL?"left":"right");break;default:ar+=" ui-datepicker-group-middle";az="";break}}ar+="'>"}ar+="
"+(/all|left/.test(az)&&ah===0?(aL?Q:ay):"")+(/all|right/.test(az)&&ah===0?(aL?ay:Q):"")+this._generateMonthYearHeader(aD,M,aA,S,ad,ah>0||W>0,Y,N)+"
";av=(aO?"":"");for(aP=0;aP<7;aP++){at=(aP+an)%7;av+=""}ar+=av+"";U=this._getDaysInMonth(aA,M);if(aA===aD.selectedYear&&M===aD.selectedMonth){aD.selectedDay=Math.min(aD.selectedDay,U)}ak=(this._getFirstDayOfMonth(aA,M)-an+7)%7;aa=Math.ceil((ak+U)/7);aC=(aj?this.maxRows>aa?this.maxRows:aa:aa);this.maxRows=aC;aF=this._daylightSavingAdjust(new Date(aA,M,1-ak));for(P=0;P";aI=(!aO?"":"");for(aP=0;aP<7;aP++){aM=(aG?aG.apply((aD.input?aD.input[0]:null),[aF]):[true,""]);aq=(aF.getMonth()!==M);ab=(aq&&!ai)||!aM[0]||(S&&aFad);aI+="";aF.setDate(aF.getDate()+1);aF=this._daylightSavingAdjust(aF)}ar+=aI+""}M++;if(M>11){M=0;aA++}ar+="
"+this._get(aD,"weekHeader")+"=5?" class='ui-datepicker-week-end'":"")+">"+Z[at]+"
"+this._get(aD,"calculateWeek")(aF)+""+(aq&&!V?" ":(ab?""+aF.getDate()+"":""+aF.getDate()+""))+"
"+(aj?""+((ac[0]>0&&W===ac[1]-1)?"
":""):"");am+=ar}aw+=am}aw+=aK;aD._keyEvent=false;return aw},_generateMonthYearHeader:function(Q,O,Y,S,W,Z,U,M){var ad,N,ae,ab,R,aa,X,T,P=this._get(Q,"changeMonth"),af=this._get(Q,"changeYear"),ag=this._get(Q,"showMonthAfterYear"),V="
",ac="";if(Z||!P){ac+=""+U[O]+""}else{ad=(S&&S.getFullYear()===Y);N=(W&&W.getFullYear()===Y);ac+=""}if(!ag){V+=ac+(Z||!(P&&af)?" ":"")}if(!Q.yearshtml){Q.yearshtml="";if(Z||!af){V+=""+Y+""}else{ab=this._get(Q,"yearRange").split(":");R=new Date().getFullYear();aa=function(ai){var ah=(ai.match(/c[+\-].*/)?Y+parseInt(ai.substring(1),10):(ai.match(/[+\-].*/)?R+parseInt(ai,10):parseInt(ai,10)));return(isNaN(ah)?R:ah)};X=aa(ab[0]);T=Math.max(X,aa(ab[1]||""));X=(S?Math.max(X,S.getFullYear()):X);T=(W?Math.min(T,W.getFullYear()):T);Q.yearshtml+="";V+=Q.yearshtml;Q.yearshtml=null}}V+=this._get(Q,"yearSuffix");if(ag){V+=(Z||!(P&&af)?" ":"")+ac}V+="
";return V},_adjustInstDate:function(P,S,R){var O=P.drawYear+(R==="Y"?S:0),Q=P.drawMonth+(R==="M"?S:0),M=Math.min(P.selectedDay,this._getDaysInMonth(O,Q))+(R==="D"?S:0),N=this._restrictMinMax(P,this._daylightSavingAdjust(new Date(O,Q,M)));P.selectedDay=N.getDate();P.drawMonth=P.selectedMonth=N.getMonth();P.drawYear=P.selectedYear=N.getFullYear();if(R==="M"||R==="Y"){this._notifyChange(P)}},_restrictMinMax:function(P,N){var O=this._getMinMaxDate(P,"min"),Q=this._getMinMaxDate(P,"max"),M=(O&&NQ?Q:M)},_notifyChange:function(N){var M=this._get(N,"onChangeMonthYear");if(M){M.apply((N.input?N.input[0]:null),[N.selectedYear,N.selectedMonth+1,N])}},_getNumberOfMonths:function(N){var M=this._get(N,"numberOfMonths");return(M==null?[1,1]:(typeof M==="number"?[1,M]:M))},_getMinMaxDate:function(N,M){return this._determineDate(N,this._get(N,M+"Date"),null)},_getDaysInMonth:function(M,N){return 32-this._daylightSavingAdjust(new Date(M,N,32)).getDate()},_getFirstDayOfMonth:function(M,N){return new Date(M,N,1).getDay()},_canAdjustMonth:function(P,R,O,Q){var M=this._getNumberOfMonths(P),N=this._daylightSavingAdjust(new Date(O,Q+(R<0?R:M[0]*M[1]),1));if(R<0){N.setDate(this._getDaysInMonth(N.getFullYear(),N.getMonth()))}return this._isInRange(P,N)},_isInRange:function(Q,O){var N,T,P=this._getMinMaxDate(Q,"min"),M=this._getMinMaxDate(Q,"max"),U=null,R=null,S=this._get(Q,"yearRange");if(S){N=S.split(":");T=new Date().getFullYear();U=parseInt(N[0],10);R=parseInt(N[1],10);if(N[0].match(/[+\-].*/)){U+=T}if(N[1].match(/[+\-].*/)){R+=T}}return((!P||O.getTime()>=P.getTime())&&(!M||O.getTime()<=M.getTime())&&(!U||O.getFullYear()>=U)&&(!R||O.getFullYear()<=R))},_getFormatConfig:function(M){var N=this._get(M,"shortYearCutoff");N=(typeof N!=="string"?N:new Date().getFullYear()%100+parseInt(N,10));return{shortYearCutoff:N,dayNamesShort:this._get(M,"dayNamesShort"),dayNames:this._get(M,"dayNames"),monthNamesShort:this._get(M,"monthNamesShort"),monthNames:this._get(M,"monthNames")}},_formatDate:function(P,M,Q,O){if(!M){P.currentDay=P.selectedDay;P.currentMonth=P.selectedMonth;P.currentYear=P.selectedYear}var N=(M?(typeof M==="object"?M:this._daylightSavingAdjust(new Date(O,Q,M))):this._daylightSavingAdjust(new Date(P.currentYear,P.currentMonth,P.currentDay)));return this.formatDate(this._get(P,"dateFormat"),N,this._getFormatConfig(P))}});function g(N){var M="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return N.delegate(M,"mouseout",function(){y(this).removeClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!==-1){y(this).removeClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!==-1){y(this).removeClass("ui-datepicker-next-hover")}}).delegate(M,"mouseover",function(){if(!y.datepicker._isDisabledDatepicker(j.inline?N.parent()[0]:j.input[0])){y(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");y(this).addClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!==-1){y(this).addClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!==-1){y(this).addClass("ui-datepicker-next-hover")}}})}function p(O,N){y.extend(O,N);for(var M in N){if(N[M]==null){O[M]=N[M]}}return O}y.fn.datepicker=function(N){if(!this.length){return this}if(!y.datepicker.initialized){y(document).mousedown(y.datepicker._checkExternalClick);y.datepicker.initialized=true}if(y("#"+y.datepicker._mainDivId).length===0){y("body").append(y.datepicker.dpDiv)}var M=Array.prototype.slice.call(arguments,1);if(typeof N==="string"&&(N==="isDisabled"||N==="getDate"||N==="widget")){return y.datepicker["_"+N+"Datepicker"].apply(y.datepicker,[this[0]].concat(M))}if(N==="option"&&arguments.length===2&&typeof arguments[1]==="string"){return y.datepicker["_"+N+"Datepicker"].apply(y.datepicker,[this[0]].concat(M))}return this.each(function(){typeof N==="string"?y.datepicker["_"+N+"Datepicker"].apply(y.datepicker,[this].concat(M)):y.datepicker._attachDatepicker(this,N)})};y.datepicker=new K();y.datepicker.initialized=false;y.datepicker.uuid=new Date().getTime();y.datepicker.version="1.11.0";var u=y.datepicker; /*! * jQuery UI Slider 1.11.0 * http://jqueryui.com * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/slider/ */ var f=y.widget("ui.slider",y.ui.mouse,{version:"1.11.0",widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=false;this._mouseSliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all");this._refresh();this._setOption("disabled",this.options.disabled);this._animateOff=false},_refresh:function(){this._createRange();this._createHandles();this._setupEvents();this._refreshValue()},_createHandles:function(){var P,M,N=this.options,R=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),Q="",O=[];M=(N.values&&N.values.length)||1;if(R.length>M){R.slice(M).remove();R=R.slice(0,M)}for(P=R.length;P").appendTo(this.element);N="ui-slider-range ui-widget-header ui-corner-all"}else{this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""})}this.range.addClass(N+((M.range==="min"||M.range==="max")?" ui-slider-range-"+M.range:""))}else{if(this.range){this.range.remove()}this.range=null}},_setupEvents:function(){this._off(this.handles);this._on(this.handles,this._handleEvents);this._hoverable(this.handles);this._focusable(this.handles)},_destroy:function(){this.handles.remove();if(this.range){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(O){var S,V,N,Q,U,W,R,M,T=this,P=this.options;if(P.disabled){return false}this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();S={x:O.pageX,y:O.pageY};V=this._normValueFromMouse(S);N=this._valueMax()-this._valueMin()+1;this.handles.each(function(X){var Y=Math.abs(V-T.values(X));if((N>Y)||(N===Y&&(X===T._lastChangedValue||T.values(X)===P.min))){N=Y;Q=y(this);U=X}});W=this._start(O,U);if(W===false){return false}this._mouseSliding=true;this._handleIndex=U;Q.addClass("ui-state-active").focus();R=Q.offset();M=!y(O.target).parents().addBack().is(".ui-slider-handle");this._clickOffset=M?{left:0,top:0}:{left:O.pageX-R.left-(Q.width()/2),top:O.pageY-R.top-(Q.height()/2)-(parseInt(Q.css("borderTopWidth"),10)||0)-(parseInt(Q.css("borderBottomWidth"),10)||0)+(parseInt(Q.css("marginTop"),10)||0)};if(!this.handles.hasClass("ui-state-hover")){this._slide(O,U,V)}this._animateOff=true;return true},_mouseStart:function(){return true},_mouseDrag:function(O){var M={x:O.pageX,y:O.pageY},N=this._normValueFromMouse(M);this._slide(O,this._handleIndex,N);return false},_mouseStop:function(M){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(M,this._handleIndex);this._change(M,this._handleIndex);this._handleIndex=null;this._clickOffset=null;this._animateOff=false;return false},_detectOrientation:function(){this.orientation=(this.options.orientation==="vertical")?"vertical":"horizontal"},_normValueFromMouse:function(N){var M,Q,P,O,R;if(this.orientation==="horizontal"){M=this.elementSize.width;Q=N.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{M=this.elementSize.height;Q=N.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}P=(Q/M);if(P>1){P=1}if(P<0){P=0}if(this.orientation==="vertical"){P=1-P}O=this._valueMax()-this._valueMin();R=this._valueMin()+P*O;return this._trimAlignValue(R)},_start:function(O,N){var M={handle:this.handles[N],value:this.value()};if(this.options.values&&this.options.values.length){M.value=this.values(N);M.values=this.values()}return this._trigger("start",O,M)},_slide:function(Q,P,O){var M,N,R;if(this.options.values&&this.options.values.length){M=this.values(P?0:1);if((this.options.values.length===2&&this.options.range===true)&&((P===0&&O>M)||(P===1&&O1){this.options.values[N]=this._trimAlignValue(Q);this._refreshValue();this._change(null,N);return}if(arguments.length){if(y.isArray(arguments[0])){P=this.options.values;M=arguments[0];for(O=0;O=this._valueMax()){return this._valueMax()}var M=(this.options.step>0)?this.options.step:1,O=(P-this._valueMin())%M,N=P-O;if(Math.abs(O)*2>=M){N+=(O>0)?M:(-M)}return parseFloat(N.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var R,Q,U,S,V,P=this.options.range,O=this.options,T=this,N=(!this._animateOff)?O.animate:false,M={};if(this.options.values&&this.options.values.length){this.handles.each(function(W){Q=(T.values(W)-T._valueMin())/(T._valueMax()-T._valueMin())*100;M[T.orientation==="horizontal"?"left":"bottom"]=Q+"%";y(this).stop(1,1)[N?"animate":"css"](M,O.animate);if(T.options.range===true){if(T.orientation==="horizontal"){if(W===0){T.range.stop(1,1)[N?"animate":"css"]({left:Q+"%"},O.animate)}if(W===1){T.range[N?"animate":"css"]({width:(Q-R)+"%"},{queue:false,duration:O.animate})}}else{if(W===0){T.range.stop(1,1)[N?"animate":"css"]({bottom:(Q)+"%"},O.animate)}if(W===1){T.range[N?"animate":"css"]({height:(Q-R)+"%"},{queue:false,duration:O.animate})}}}R=Q})}else{U=this.value();S=this._valueMin();V=this._valueMax();Q=(V!==S)?(U-S)/(V-S)*100:0;M[this.orientation==="horizontal"?"left":"bottom"]=Q+"%";this.handle.stop(1,1)[N?"animate":"css"](M,O.animate);if(P==="min"&&this.orientation==="horizontal"){this.range.stop(1,1)[N?"animate":"css"]({width:Q+"%"},O.animate)}if(P==="max"&&this.orientation==="horizontal"){this.range[N?"animate":"css"]({width:(100-Q)+"%"},{queue:false,duration:O.animate})}if(P==="min"&&this.orientation==="vertical"){this.range.stop(1,1)[N?"animate":"css"]({height:Q+"%"},O.animate)}if(P==="max"&&this.orientation==="vertical"){this.range[N?"animate":"css"]({height:(100-Q)+"%"},{queue:false,duration:O.animate})}}},_handleEvents:{keydown:function(Q){var R,O,N,P,M=y(Q.target).data("ui-slider-handle-index");switch(Q.which){case y.ui.keyCode.HOME:case y.ui.keyCode.END:case y.ui.keyCode.PAGE_UP:case y.ui.keyCode.PAGE_DOWN:case y.ui.keyCode.UP:case y.ui.keyCode.RIGHT:case y.ui.keyCode.DOWN:case y.ui.keyCode.LEFT:Q.preventDefault();if(!this._keySliding){this._keySliding=true;y(Q.target).addClass("ui-state-active");R=this._start(Q,M);if(R===false){return}}break}P=this.options.step;if(this.options.values&&this.options.values.length){O=N=this.values(M)}else{O=N=this.value()}switch(Q.which){case y.ui.keyCode.HOME:N=this._valueMin();break;case y.ui.keyCode.END:N=this._valueMax();break;case y.ui.keyCode.PAGE_UP:N=this._trimAlignValue(O+((this._valueMax()-this._valueMin())/this.numPages));break;case y.ui.keyCode.PAGE_DOWN:N=this._trimAlignValue(O-((this._valueMax()-this._valueMin())/this.numPages));break;case y.ui.keyCode.UP:case y.ui.keyCode.RIGHT:if(O===this._valueMax()){return}N=this._trimAlignValue(O+P);break;case y.ui.keyCode.DOWN:case y.ui.keyCode.LEFT:if(O===this._valueMin()){return}N=this._trimAlignValue(O-P);break}this._slide(Q,M,N)},keyup:function(N){var M=y(N.target).data("ui-slider-handle-index");if(this._keySliding){this._keySliding=false;this._stop(N,M);this._change(N,M);y(N.target).removeClass("ui-state-active")}}}}); /*! * jQuery UI Effects 1.11.0 * http://jqueryui.com * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/category/effects-core/ */ var i="ui-effects-";y.effects={effect:{}}; /*! * jQuery Color Animations v2.1.2 * https://github.com/jquery/jquery-color * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * Date: Wed Jan 16 08:47:09 2013 -0600 */ (function(aa,P){var W="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",T=/^([\-+])=\s*(\d+\.?\d*)/,S=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(ab){return[ab[1],ab[2],ab[3],ab[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(ab){return[ab[1]*2.55,ab[2]*2.55,ab[3]*2.55,ab[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(ab){return[parseInt(ab[1],16),parseInt(ab[2],16),parseInt(ab[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(ab){return[parseInt(ab[1]+ab[1],16),parseInt(ab[2]+ab[2],16),parseInt(ab[3]+ab[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(ab){return[ab[1],ab[2]/100,ab[3]/100,ab[4]]}}],Q=aa.Color=function(ac,ad,ab,ae){return new aa.Color.fn.parse(ac,ad,ab,ae)},V={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},Z={"byte":{floor:true,max:255},percent:{max:1},degrees:{mod:360,floor:true}},Y=Q.support={},N=aa("

")[0],M,X=aa.each;N.style.cssText="background-color:rgba(1,1,1,.5)";Y.rgba=N.style.backgroundColor.indexOf("rgba")>-1;X(V,function(ab,ac){ac.cache="_"+ab;ac.props.alpha={idx:3,type:"percent",def:1}});function U(ac,ae,ad){var ab=Z[ae.type]||{};if(ac==null){return(ad||!ae.def)?null:ae.def}ac=ab.floor?~~ac:parseFloat(ac);if(isNaN(ac)){return ae.def}if(ab.mod){return(ac+ab.mod)%ab.mod}return 0>ac?0:ab.maxan.mod/2){ak+=an.mod}else{if(ak-aj>an.mod/2){ak-=an.mod}}}ab[al]=U((aj-ak)*ai+ak,ao)}});return this[ae](ab)},blend:function(ae){if(this._rgba[3]===1){return this}var ad=this._rgba.slice(),ac=ad.pop(),ab=Q(ae)._rgba;return Q(aa.map(ad,function(af,ag){return(1-ac)*ab[ag]+ac*af}))},toRgbaString:function(){var ac="rgba(",ab=aa.map(this._rgba,function(ad,ae){return ad==null?(ae>2?1:0):ad});if(ab[3]===1){ab.pop();ac="rgb("}return ac+ab.join()+")"},toHslaString:function(){var ac="hsla(",ab=aa.map(this.hsla(),function(ad,ae){if(ad==null){ad=ae>2?1:0}if(ae&&ae<3){ad=Math.round(ad*100)+"%"}return ad});if(ab[3]===1){ab.pop();ac="hsl("}return ac+ab.join()+")"},toHexString:function(ab){var ac=this._rgba.slice(),ad=ac.pop();if(ab){ac.push(~~(ad*255))}return"#"+aa.map(ac,function(ae){ae=(ae||0).toString(16);return ae.length===1?"0"+ae:ae}).join("")},toString:function(){return this._rgba[3]===0?"transparent":this.toRgbaString()}});Q.fn.parse.prototype=Q.fn;function O(ad,ac,ab){ab=(ab+1)%1;if(ab*6<1){return ad+(ac-ad)*ab*6}if(ab*2<1){return ac}if(ab*3<2){return ad+(ac-ad)*((2/3)-ab)*6}return ad}V.hsla.to=function(ad){if(ad[0]==null||ad[1]==null||ad[2]==null){return[null,null,null,ad[3]]}var ab=ad[0]/255,ag=ad[1]/255,ah=ad[2]/255,aj=ad[3],ai=Math.max(ab,ag,ah),ae=Math.min(ab,ag,ah),ak=ai-ae,al=ai+ae,ac=al*0.5,af,am;if(ae===ai){af=0}else{if(ab===ai){af=(60*(ag-ah)/ak)+360}else{if(ag===ai){af=(60*(ah-ab)/ak)+120}else{af=(60*(ab-ag)/ak)+240}}}if(ak===0){am=0}else{if(ac<=0.5){am=ak/al}else{am=ak/(2-al)}}return[Math.round(af)%360,am,ac,aj==null?1:aj]};V.hsla.from=function(af){if(af[0]==null||af[1]==null||af[2]==null){return[null,null,null,af[3]]}var ae=af[0]/360,ad=af[1],ac=af[2],ab=af[3],ag=ac<=0.5?ac*(1+ad):ac+ad-ac*ad,ah=2*ac-ag;return[Math.round(O(ah,ag,ae+(1/3))*255),Math.round(O(ah,ag,ae)*255),Math.round(O(ah,ag,ae-(1/3))*255),ab]};X(V,function(ac,ae){var ad=ae.props,ab=ae.cache,ag=ae.to,af=ae.from;Q.fn[ac]=function(al){if(ag&&!this[ab]){this[ab]=ag(this._rgba)}if(al===P){return this[ab].slice()}var ai,ak=aa.type(al),ah=(ak==="array"||ak==="object")?al:arguments,aj=this[ab].slice();X(ad,function(am,ao){var an=ah[ak==="object"?am:ao.idx];if(an==null){an=aj[ao.idx]}aj[ao.idx]=U(an,ao)});if(af){ai=Q(af(aj));ai[ab]=aj;return ai}else{return Q(aj)}};X(ad,function(ah,ai){if(Q.fn[ah]){return}Q.fn[ah]=function(am){var ao=aa.type(am),al=(ah==="alpha"?(this._hsla?"hsla":"rgba"):ac),ak=this[al](),an=ak[ai.idx],aj;if(ao==="undefined"){return an}if(ao==="function"){am=am.call(this,an);ao=aa.type(am)}if(am==null&&ai.empty){return this}if(ao==="string"){aj=T.exec(am);if(aj){am=an+parseFloat(aj[2])*(aj[1]==="+"?1:-1)}}ak[ai.idx]=am;return this[al](ak)}})});Q.hook=function(ac){var ab=ac.split(" ");X(ab,function(ad,ae){aa.cssHooks[ae]={set:function(ai,aj){var ag,ah,af="";if(aj!=="transparent"&&(aa.type(aj)!=="string"||(ag=R(aj)))){aj=Q(ag||aj);if(!Y.rgba&&aj._rgba[3]!==1){ah=ae==="backgroundColor"?ai.parentNode:ai;while((af===""||af==="transparent")&&ah&&ah.style){try{af=aa.css(ah,"backgroundColor");ah=ah.parentNode}catch(ak){}}aj=aj.blend(af&&af!=="transparent"?af:"_default")}aj=aj.toRgbaString()}try{ai.style[ae]=aj}catch(ak){}}};aa.fx.step[ae]=function(af){if(!af.colorInit){af.start=Q(af.elem,ae);af.end=Q(af.end);af.colorInit=true}aa.cssHooks[ae].set(af.elem,af.start.transition(af.end,af.pos))}})};Q.hook(W);aa.cssHooks.borderColor={expand:function(ac){var ab={};X(["Top","Right","Bottom","Left"],function(ae,ad){ab["border"+ad+"Color"]=ac});return ab}};M=aa.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}})(jQuery);(function(){var N=["add","remove","toggle"],O={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};y.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(Q,R){y.fx.step[R]=function(S){if(S.end!=="none"&&!S.setAttr||S.pos===1&&!S.setAttr){jQuery.style(S.elem,R,S.end);S.setAttr=true}}});function P(U){var R,Q,S=U.ownerDocument.defaultView?U.ownerDocument.defaultView.getComputedStyle(U,null):U.currentStyle,T={};if(S&&S.length&&S[0]&&S[S[0]]){Q=S.length;while(Q--){R=S[Q];if(typeof S[R]==="string"){T[y.camelCase(R)]=S[R]}}}else{for(R in S){if(typeof S[R]==="string"){T[R]=S[R]}}}return T}function M(Q,S){var U={},R,T;for(R in S){T=S[R];if(Q[R]!==T){if(!O[R]){if(y.fx.step[R]||!isNaN(parseFloat(T))){U[R]=T}}}}return U}if(!y.fn.addBack){y.fn.addBack=function(Q){return this.add(Q==null?this.prevObject:this.prevObject.filter(Q))}}y.effects.animateClass=function(Q,R,U,T){var S=y.speed(R,U,T);return this.queue(function(){var X=y(this),V=X.attr("class")||"",W,Y=S.children?X.find("*").addBack():X;Y=Y.map(function(){var Z=y(this);return{el:Z,start:P(this)}});W=function(){y.each(N,function(Z,aa){if(Q[aa]){X[aa+"Class"](Q[aa])}})};W();Y=Y.map(function(){this.end=P(this.el[0]);this.diff=M(this.start,this.end);return this});X.attr("class",V);Y=Y.map(function(){var ab=this,Z=y.Deferred(),aa=y.extend({},S,{queue:false,complete:function(){Z.resolve(ab)}});this.el.animate(this.diff,aa);return Z.promise()});y.when.apply(y,Y.get()).done(function(){W();y.each(arguments,function(){var Z=this.el;y.each(this.diff,function(aa){Z.css(aa,"")})});S.complete.call(X[0])})})};y.fn.extend({addClass:(function(Q){return function(S,R,U,T){return R?y.effects.animateClass.call(this,{add:S},R,U,T):Q.apply(this,arguments)}})(y.fn.addClass),removeClass:(function(Q){return function(S,R,U,T){return arguments.length>1?y.effects.animateClass.call(this,{remove:S},R,U,T):Q.apply(this,arguments)}})(y.fn.removeClass),toggleClass:(function(Q){return function(T,S,R,V,U){if(typeof S==="boolean"||S===undefined){if(!R){return Q.apply(this,arguments)}else{return y.effects.animateClass.call(this,(S?{add:T}:{remove:T}),R,V,U)}}else{return y.effects.animateClass.call(this,{toggle:T},S,R,V)}}})(y.fn.toggleClass),switchClass:function(Q,S,R,U,T){return y.effects.animateClass.call(this,{add:S,remove:Q},R,U,T)}})})();(function(){y.extend(y.effects,{version:"1.11.0",save:function(P,Q){for(var O=0;O").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),O={width:P.width(),height:P.height()},S=document.activeElement;try{S.id}catch(R){S=document.body}P.wrap(T);if(P[0]===S||y.contains(P[0],S)){y(S).focus()}T=P.parent();if(P.css("position")==="static"){T.css({position:"relative"});P.css({position:"relative"})}else{y.extend(Q,{position:P.css("position"),zIndex:P.css("z-index")});y.each(["top","left","bottom","right"],function(U,V){Q[V]=P.css(V);if(isNaN(parseInt(Q[V],10))){Q[V]="auto"}});P.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}P.css(O);return T.css(Q).show()},removeWrapper:function(O){var P=document.activeElement;if(O.parent().is(".ui-effects-wrapper")){O.parent().replaceWith(O);if(O[0]===P||y.contains(O[0],P)){y(P).focus()}}return O},setTransition:function(P,R,O,Q){Q=Q||{};y.each(R,function(T,S){var U=P.cssUnit(S);if(U[0]>0){Q[S]=U[0]*O+U[1]}});return Q}});function M(P,O,Q,R){if(y.isPlainObject(P)){O=P;P=P.effect}P={effect:P};if(O==null){O={}}if(y.isFunction(O)){R=O;Q=null;O={}}if(typeof O==="number"||y.fx.speeds[O]){R=Q;Q=O;O={}}if(y.isFunction(Q)){R=Q;Q=null}if(O){y.extend(P,O)}Q=Q||O.duration;P.duration=y.fx.off?0:typeof Q==="number"?Q:Q in y.fx.speeds?y.fx.speeds[Q]:y.fx.speeds._default;P.complete=R||O.complete;return P}function N(O){if(!O||typeof O==="number"||y.fx.speeds[O]){return true}if(typeof O==="string"&&!y.effects.effect[O]){return true}if(y.isFunction(O)){return true}if(typeof O==="object"&&!O.effect){return true}return false}y.fn.extend({effect:function(){var Q=M.apply(this,arguments),S=Q.mode,O=Q.queue,P=y.effects.effect[Q.effect];if(y.fx.off||!P){if(S){return this[S](Q.duration,Q.complete)}else{return this.each(function(){if(Q.complete){Q.complete.call(this)}})}}function R(V){var W=y(this),U=Q.complete,X=Q.mode;function T(){if(y.isFunction(U)){U.call(W[0])}if(y.isFunction(V)){V()}}if(W.is(":hidden")?X==="hide":X==="show"){W[X]();T()}else{P.call(W[0],Q,T)}}return O===false?this.each(R):this.queue(O||"fx",R)},show:(function(O){return function(Q){if(N(Q)){return O.apply(this,arguments)}else{var P=M.apply(this,arguments);P.mode="show";return this.effect.call(this,P)}}})(y.fn.show),hide:(function(O){return function(Q){if(N(Q)){return O.apply(this,arguments)}else{var P=M.apply(this,arguments);P.mode="hide";return this.effect.call(this,P)}}})(y.fn.hide),toggle:(function(O){return function(Q){if(N(Q)||typeof Q==="boolean"){return O.apply(this,arguments)}else{var P=M.apply(this,arguments);P.mode="toggle";return this.effect.call(this,P)}}})(y.fn.toggle),cssUnit:function(O){var P=this.css(O),Q=[];y.each(["em","px","%","pt"],function(R,S){if(P.indexOf(S)>0){Q=[parseFloat(P),S]}});return Q}})})();(function(){var M={};y.each(["Quad","Cubic","Quart","Quint","Expo"],function(O,N){M[N]=function(P){return Math.pow(P,O+2)}});y.extend(M,{Sine:function(N){return 1-Math.cos(N*Math.PI/2)},Circ:function(N){return 1-Math.sqrt(1-N*N)},Elastic:function(N){return N===0||N===1?N:-Math.pow(2,8*(N-1))*Math.sin(((N-1)*80-7.5)*Math.PI/15)},Back:function(N){return N*N*(3*N-2)},Bounce:function(P){var N,O=4;while(P<((N=Math.pow(2,--O))-1)/11){}return 1/Math.pow(4,3-O)-7.5625*Math.pow((N*3-2)/22-P,2)}});y.each(M,function(O,N){y.easing["easeIn"+O]=N;y.easing["easeOut"+O]=function(P){return 1-N(1-P)};y.easing["easeInOut"+O]=function(P){return P<0.5?N(P*2)/2:1-N(P*-2+2)/2}})})();var H=y.effects; /*! * jQuery UI Effects Blind 1.11.0 * http://jqueryui.com * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/blind-effect/ */ var J=y.effects.effect.blind=function(O,U){var P=y(this),Y=/up|down|vertical/,X=/up|left|vertical|horizontal/,Z=["position","top","bottom","left","right","height","width"],V=y.effects.setMode(P,O.mode||"hide"),aa=O.direction||"up",R=Y.test(aa),Q=R?"height":"width",W=R?"top":"left",ac=X.test(aa),T={},ab=V==="show",N,M,S;if(P.parent().is(".ui-effects-wrapper")){y.effects.save(P.parent(),Z)}else{y.effects.save(P,Z)}P.show();N=y.effects.createWrapper(P).css({overflow:"hidden"});M=N[Q]();S=parseFloat(N.css(W))||0;T[Q]=ab?M:0;if(!ac){P.css(R?"bottom":"right",0).css(R?"top":"left","auto").css({position:"absolute"});T[W]=ab?S:M+S}if(ab){N.css(Q,0);if(!ac){N.css(W,S+M)}}N.animate(T,{duration:O.duration,easing:O.easing,queue:false,complete:function(){if(V==="hide"){P.hide()}y.effects.restore(P,Z);y.effects.removeWrapper(P);U()}})}; /*! * jQuery UI Effects Bounce 1.11.0 * http://jqueryui.com * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/bounce-effect/ */ var F=y.effects.effect.bounce=function(V,U){var M=y(this),N=["position","top","bottom","left","right","height","width"],T=y.effects.setMode(M,V.mode||"effect"),S=T==="hide",ad=T==="show",ae=V.direction||"up",O=V.distance,R=V.times||5,af=R*2+(ad||S?1:0),ac=V.duration/af,X=V.easing,P=(ae==="up"||ae==="down")?"top":"left",W=(ae==="up"||ae==="left"),ab,Q,aa,Y=M.queue(),Z=Y.length;if(ad||S){N.push("opacity")}y.effects.save(M,N);M.show();y.effects.createWrapper(M);if(!O){O=M[P==="top"?"outerHeight":"outerWidth"]()/3}if(ad){aa={opacity:1};aa[P]=0;M.css("opacity",0).css(P,W?-O*2:O*2).animate(aa,ac,X)}if(S){O=O/Math.pow(2,R-1)}aa={};aa[P]=0;for(ab=0;ab1){Y.splice.apply(Y,[1,0].concat(Y.splice(Z,af+1)))}M.dequeue()}; /*! * jQuery UI Effects Clip 1.11.0 * http://jqueryui.com * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/clip-effect/ */ var t=y.effects.effect.clip=function(P,S){var Q=y(this),W=["position","top","bottom","left","right","height","width"],V=y.effects.setMode(Q,P.mode||"hide"),Y=V==="show",X=P.direction||"vertical",U=X==="vertical",Z=U?"height":"width",T=U?"top":"left",R={},N,O,M;y.effects.save(Q,W);Q.show();N=y.effects.createWrapper(Q).css({overflow:"hidden"});O=(Q[0].tagName==="IMG")?N:Q;M=O[Z]();if(Y){O.css(Z,0);O.css(T,M/2)}R[Z]=Y?M:0;R[T]=Y?0:M/2;O.animate(R,{queue:false,duration:P.duration,easing:P.easing,complete:function(){if(!Y){Q.hide()}y.effects.restore(Q,W);y.effects.removeWrapper(Q);S()}})}; /*! * jQuery UI Effects Drop 1.11.0 * http://jqueryui.com * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/drop-effect/ */ var l=y.effects.effect.drop=function(N,R){var O=y(this),T=["position","top","bottom","left","right","opacity","height","width"],S=y.effects.setMode(O,N.mode||"hide"),V=S==="show",U=N.direction||"left",P=(U==="up"||U==="down")?"top":"left",W=(U==="up"||U==="left")?"pos":"neg",Q={opacity:V?1:0},M;y.effects.save(O,T);O.show();y.effects.createWrapper(O);M=N.distance||O[P==="top"?"outerHeight":"outerWidth"](true)/2;if(V){O.css("opacity",0).css(P,W==="pos"?-M:M)}Q[P]=(V?(W==="pos"?"+=":"-="):(W==="pos"?"-=":"+="))+M;O.animate(Q,{queue:false,duration:N.duration,easing:N.easing,complete:function(){if(S==="hide"){O.hide()}y.effects.restore(O,T);y.effects.removeWrapper(O);R()}})}; /*! * jQuery UI Effects Explode 1.11.0 * http://jqueryui.com * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/explode-effect/ */ var E=y.effects.effect.explode=function(Z,Y){var S=Z.pieces?Math.round(Math.sqrt(Z.pieces)):3,N=S,M=y(this),U=y.effects.setMode(M,Z.mode||"hide"),ad=U==="show",Q=M.show().css("visibility","hidden").offset(),aa=Math.ceil(M.outerWidth()/N),X=Math.ceil(M.outerHeight()/S),R=[],ac,ab,O,W,V,T;function ae(){R.push(this);if(R.length===S*N){P()}}for(ac=0;ac").css({position:"absolute",visibility:"visible",left:-ab*aa,top:-ac*X}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:aa,height:X,left:O+(ad?V*aa:0),top:W+(ad?T*X:0),opacity:ad?0:1}).animate({left:O+(ad?0:V*aa),top:W+(ad?0:T*X),opacity:ad?1:0},Z.duration||500,Z.easing,ae)}}function P(){M.css({visibility:"visible"});y(R).remove();if(!ad){M.hide()}Y()}}; /*! * jQuery UI Effects Fade 1.11.0 * http://jqueryui.com * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/fade-effect/ */ var G=y.effects.effect.fade=function(P,M){var N=y(this),O=y.effects.setMode(N,P.mode||"toggle");N.animate({opacity:O},{queue:false,duration:P.duration,easing:P.easing,complete:M})}; /*! * jQuery UI Effects Fold 1.11.0 * http://jqueryui.com * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/fold-effect/ */ var v=y.effects.effect.fold=function(O,S){var P=y(this),X=["position","top","bottom","left","right","height","width"],U=y.effects.setMode(P,O.mode||"hide"),aa=U==="show",V=U==="hide",ac=O.size||15,W=/([0-9]+)%/.exec(ac),ab=!!O.horizFirst,T=aa!==ab,Q=T?["width","height"]:["height","width"],R=O.duration/2,N,M,Z={},Y={};y.effects.save(P,X);P.show();N=y.effects.createWrapper(P).css({overflow:"hidden"});M=T?[N.width(),N.height()]:[N.height(),N.width()];if(W){ac=parseInt(W[1],10)/100*M[V?0:1]}if(aa){N.css(ab?{height:0,width:ac}:{height:ac,width:0})}Z[Q[0]]=aa?M[0]:ac;Y[Q[1]]=aa?M[1]:0;N.animate(Z,R,O.easing).animate(Y,R,O.easing,function(){if(V){P.hide()}y.effects.restore(P,X);y.effects.removeWrapper(P);S()})}; /*! * jQuery UI Effects Highlight 1.11.0 * http://jqueryui.com * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/highlight-effect/ */ var A=y.effects.effect.highlight=function(R,M){var O=y(this),N=["backgroundImage","backgroundColor","opacity"],Q=y.effects.setMode(O,R.mode||"show"),P={backgroundColor:O.css("backgroundColor")};if(Q==="hide"){P.opacity=0}y.effects.save(O,N);O.show().css({backgroundImage:"none",backgroundColor:R.color||"#ffff99"}).animate(P,{queue:false,duration:R.duration,easing:R.easing,complete:function(){if(Q==="hide"){O.hide()}y.effects.restore(O,N);M()}})}; /*! * jQuery UI Effects Size 1.11.0 * http://jqueryui.com * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/size-effect/ */ var a=y.effects.effect.size=function(V,U){var Z,S,T,M=y(this),Y=["position","top","bottom","left","right","width","height","overflow","opacity"],X=["position","top","bottom","left","right","overflow","opacity"],W=["width","height","overflow"],Q=["fontSize"],ab=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],N=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],R=y.effects.setMode(M,V.mode||"effect"),aa=V.restore||R!=="effect",ae=V.scale||"both",ac=V.origin||["middle","center"],ad=M.css("position"),O=aa?Y:X,P={height:0,width:0,outerHeight:0,outerWidth:0};if(R==="show"){M.show()}Z={height:M.height(),width:M.width(),outerHeight:M.outerHeight(),outerWidth:M.outerWidth()};if(V.mode==="toggle"&&R==="show"){M.from=V.to||P;M.to=V.from||Z}else{M.from=V.from||(R==="show"?P:Z);M.to=V.to||(R==="hide"?P:Z)}T={from:{y:M.from.height/Z.height,x:M.from.width/Z.width},to:{y:M.to.height/Z.height,x:M.to.width/Z.width}};if(ae==="box"||ae==="both"){if(T.from.y!==T.to.y){O=O.concat(ab);M.from=y.effects.setTransition(M,ab,T.from.y,M.from);M.to=y.effects.setTransition(M,ab,T.to.y,M.to)}if(T.from.x!==T.to.x){O=O.concat(N);M.from=y.effects.setTransition(M,N,T.from.x,M.from);M.to=y.effects.setTransition(M,N,T.to.x,M.to)}}if(ae==="content"||ae==="both"){if(T.from.y!==T.to.y){O=O.concat(Q).concat(W);M.from=y.effects.setTransition(M,Q,T.from.y,M.from);M.to=y.effects.setTransition(M,Q,T.to.y,M.to)}}y.effects.save(M,O);M.show();y.effects.createWrapper(M);M.css("overflow","hidden").css(M.from);if(ac){S=y.effects.getBaseline(ac,Z);M.from.top=(Z.outerHeight-M.outerHeight())*S.y;M.from.left=(Z.outerWidth-M.outerWidth())*S.x;M.to.top=(Z.outerHeight-M.to.outerHeight)*S.y;M.to.left=(Z.outerWidth-M.to.outerWidth)*S.x}M.css(M.from);if(ae==="content"||ae==="both"){ab=ab.concat(["marginTop","marginBottom"]).concat(Q);N=N.concat(["marginLeft","marginRight"]);W=Y.concat(ab).concat(N);M.find("*[width]").each(function(){var ag=y(this),af={height:ag.height(),width:ag.width(),outerHeight:ag.outerHeight(),outerWidth:ag.outerWidth()};if(aa){y.effects.save(ag,W)}ag.from={height:af.height*T.from.y,width:af.width*T.from.x,outerHeight:af.outerHeight*T.from.y,outerWidth:af.outerWidth*T.from.x};ag.to={height:af.height*T.to.y,width:af.width*T.to.x,outerHeight:af.height*T.to.y,outerWidth:af.width*T.to.x};if(T.from.y!==T.to.y){ag.from=y.effects.setTransition(ag,ab,T.from.y,ag.from);ag.to=y.effects.setTransition(ag,ab,T.to.y,ag.to)}if(T.from.x!==T.to.x){ag.from=y.effects.setTransition(ag,N,T.from.x,ag.from);ag.to=y.effects.setTransition(ag,N,T.to.x,ag.to)}ag.css(ag.from);ag.animate(ag.to,V.duration,V.easing,function(){if(aa){y.effects.restore(ag,W)}})})}M.animate(M.to,{queue:false,duration:V.duration,easing:V.easing,complete:function(){if(M.to.opacity===0){M.css("opacity",M.from.opacity)}if(R==="hide"){M.hide()}y.effects.restore(M,O);if(!aa){if(ad==="static"){M.css({position:"relative",top:M.to.top,left:M.to.left})}else{y.each(["top","left"],function(af,ag){M.css(ag,function(ai,ak){var aj=parseInt(ak,10),ah=af?M.to.left:M.to.top;if(ak==="auto"){return ah+"px"}return aj+ah+"px"})})}}y.effects.removeWrapper(M);U()}})}; /*! * jQuery UI Effects Scale 1.11.0 * http://jqueryui.com * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/scale-effect/ */ var e=y.effects.effect.scale=function(M,P){var N=y(this),V=y.extend(true,{},M),Q=y.effects.setMode(N,M.mode||"effect"),R=parseInt(M.percent,10)||(parseInt(M.percent,10)===0?0:(Q==="hide"?0:100)),T=M.direction||"both",U=M.origin,O={height:N.height(),width:N.width(),outerHeight:N.outerHeight(),outerWidth:N.outerWidth()},S={y:T!=="horizontal"?(R/100):1,x:T!=="vertical"?(R/100):1};V.effect="size";V.queue=false;V.complete=P;if(Q!=="effect"){V.origin=U||["middle","center"];V.restore=true}V.from=M.from||(Q==="show"?{height:0,width:0,outerHeight:0,outerWidth:0}:O);V.to={height:O.height*S.y,width:O.width*S.x,outerHeight:O.outerHeight*S.y,outerWidth:O.outerWidth*S.x};if(V.fade){if(Q==="show"){V.from.opacity=0;V.to.opacity=1}if(Q==="hide"){V.from.opacity=1;V.to.opacity=0}}N.effect(V)}; /*! * jQuery UI Effects Puff 1.11.0 * http://jqueryui.com * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/puff-effect/ */ var L=y.effects.effect.puff=function(T,M){var R=y(this),S=y.effects.setMode(R,T.mode||"hide"),P=S==="hide",Q=parseInt(T.percent,10)||150,O=Q/100,N={height:R.height(),width:R.width(),outerHeight:R.outerHeight(),outerWidth:R.outerWidth()};y.extend(T,{effect:"scale",queue:false,fade:true,mode:S,complete:M,percent:P?Q:100,from:P?N:{height:N.height*O,width:N.width*O,outerHeight:N.outerHeight*O,outerWidth:N.outerWidth*O}});R.effect(T)}; /*! * jQuery UI Effects Pulsate 1.11.0 * http://jqueryui.com * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/pulsate-effect/ */ var x=y.effects.effect.pulsate=function(M,Q){var O=y(this),T=y.effects.setMode(O,M.mode||"show"),X=T==="show",U=T==="hide",Y=(X||T==="hide"),V=((M.times||5)*2)+(Y?1:0),P=M.duration/V,W=0,S=O.queue(),N=S.length,R;if(X||!O.is(":visible")){O.css("opacity",0).show();W=1}for(R=1;R1){S.splice.apply(S,[1,0].concat(S.splice(N,V+1)))}O.dequeue()}; /*! * jQuery UI Effects Shake 1.11.0 * http://jqueryui.com * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/shake-effect/ */ var r=y.effects.effect.shake=function(U,T){var M=y(this),N=["position","top","bottom","left","right","height","width"],S=y.effects.setMode(M,U.mode||"effect"),ac=U.direction||"left",O=U.distance||20,R=U.times||3,ad=R*2+1,Y=Math.round(U.duration/ad),Q=(ac==="up"||ac==="down")?"top":"left",P=(ac==="up"||ac==="left"),ab={},aa={},Z={},X,V=M.queue(),W=V.length;y.effects.save(M,N);M.show();y.effects.createWrapper(M);ab[Q]=(P?"-=":"+=")+O;aa[Q]=(P?"+=":"-=")+O*2;Z[Q]=(P?"-=":"+=")+O*2;M.animate(ab,Y,U.easing);for(X=1;X1){V.splice.apply(V,[1,0].concat(V.splice(W,ad+1)))}M.dequeue()}; /*! * jQuery UI Effects Slide 1.11.0 * http://jqueryui.com * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/slide-effect/ */ var q=y.effects.effect.slide=function(O,S){var P=y(this),U=["position","top","bottom","left","right","width","height"],T=y.effects.setMode(P,O.mode||"show"),W=T==="show",V=O.direction||"left",Q=(V==="up"||V==="down")?"top":"left",N=(V==="up"||V==="left"),M,R={};y.effects.save(P,U);P.show();M=O.distance||P[Q==="top"?"outerHeight":"outerWidth"](true);y.effects.createWrapper(P).css({overflow:"hidden"});if(W){P.css(Q,N?(isNaN(M)?"-"+M:-M):M)}R[Q]=(W?(N?"+=":"-="):(N?"-=":"+="))+M;P.animate(R,{queue:false,duration:O.duration,easing:O.easing,complete:function(){if(T==="hide"){P.hide()}y.effects.restore(P,U);y.effects.removeWrapper(P);S()}})}; /*! * jQuery UI Effects Transfer 1.11.0 * http://jqueryui.com * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/transfer-effect/ */ var k=y.effects.effect.transfer=function(N,R){var P=y(this),U=y(N.to),X=U.css("position")==="fixed",T=y("body"),V=X?T.scrollTop():0,W=X?T.scrollLeft():0,M=U.offset(),Q={top:M.top-V,left:M.left-W,height:U.innerHeight(),width:U.innerWidth()},S=P.offset(),O=y("

").appendTo(document.body).addClass(N.className).css({top:S.top-V,left:S.left-W,height:P.innerHeight(),width:P.innerWidth(),position:X?"fixed":"absolute"}).animate(Q,N.duration,N.easing,function(){O.remove();R()})}})); /*! jQuery Timepicker Addon - v1.6.3 - 2016-04-20 * http://trentrichardson.com/examples/timepicker * Copyright (c) 2016 Trent Richardson; Licensed MIT */ (function(a){if(typeof define==="function"&&define.amd){define(["jquery","jquery-ui"],a)}else{a(jQuery)}}(function($){$.ui.timepicker=$.ui.timepicker||{};if($.ui.timepicker.version){return}$.extend($.ui,{timepicker:{version:"1.6.3"}});var Timepicker=function(){this.regional=[];this.regional[""]={currentText:"Now",closeText:"Done",amNames:["AM","A"],pmNames:["PM","P"],timeFormat:"HH:mm",timeSuffix:"",timeOnlyTitle:"Choose Time",timeText:"Time",hourText:"Hour",minuteText:"Minute",secondText:"Second",millisecText:"Millisecond",microsecText:"Microsecond",timezoneText:"Time Zone",isRTL:false};this._defaults={showButtonPanel:true,timeOnly:false,timeOnlyShowDate:false,showHour:null,showMinute:null,showSecond:null,showMillisec:null,showMicrosec:null,showTimezone:null,showTime:true,stepHour:1,stepMinute:1,stepSecond:1,stepMillisec:1,stepMicrosec:1,hour:0,minute:0,second:0,millisec:0,microsec:0,timezone:null,hourMin:0,minuteMin:0,secondMin:0,millisecMin:0,microsecMin:0,hourMax:23,minuteMax:59,secondMax:59,millisecMax:999,microsecMax:999,minDateTime:null,maxDateTime:null,maxTime:null,minTime:null,onSelect:null,hourGrid:0,minuteGrid:0,secondGrid:0,millisecGrid:0,microsecGrid:0,alwaysSetTime:true,separator:" ",altFieldTimeOnly:true,altTimeFormat:null,altSeparator:null,altTimeSuffix:null,altRedirectFocus:true,pickerTimeFormat:null,pickerTimeSuffix:null,showTimepicker:true,timezoneList:null,addSliderAccess:false,sliderAccessArgs:null,controlType:"slider",oneLine:false,defaultValue:null,parse:"strict",afterInject:null};$.extend(this._defaults,this.regional[""])};$.extend(Timepicker.prototype,{$input:null,$altInput:null,$timeObj:null,inst:null,hour_slider:null,minute_slider:null,second_slider:null,millisec_slider:null,microsec_slider:null,timezone_select:null,maxTime:null,minTime:null,hour:0,minute:0,second:0,millisec:0,microsec:0,timezone:null,hourMinOriginal:null,minuteMinOriginal:null,secondMinOriginal:null,millisecMinOriginal:null,microsecMinOriginal:null,hourMaxOriginal:null,minuteMaxOriginal:null,secondMaxOriginal:null,millisecMaxOriginal:null,microsecMaxOriginal:null,ampm:"",formattedDate:"",formattedTime:"",formattedDateTime:"",timezoneList:null,units:["hour","minute","second","millisec","microsec"],support:{},control:null,setDefaults:function(settings){extendRemove(this._defaults,settings||{});return this},_newInst:function($input,opts){var tp_inst=new Timepicker(),inlineSettings={},fns={},overrides,i;for(var attrName in this._defaults){if(this._defaults.hasOwnProperty(attrName)){var attrValue=$input.attr("time:"+attrName);if(attrValue){try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}}overrides={beforeShow:function(input,dp_inst){if($.isFunction(tp_inst._defaults.evnts.beforeShow)){return tp_inst._defaults.evnts.beforeShow.call($input[0],input,dp_inst,tp_inst)}},onChangeMonthYear:function(year,month,dp_inst){if($.isFunction(tp_inst._defaults.evnts.onChangeMonthYear)){tp_inst._defaults.evnts.onChangeMonthYear.call($input[0],year,month,dp_inst,tp_inst)}},onClose:function(dateText,dp_inst){if(tp_inst.timeDefined===true&&$input.val()!==""){tp_inst._updateDateTime(dp_inst)}if($.isFunction(tp_inst._defaults.evnts.onClose)){tp_inst._defaults.evnts.onClose.call($input[0],dateText,dp_inst,tp_inst)}}};for(i in overrides){if(overrides.hasOwnProperty(i)){fns[i]=opts[i]||this._defaults[i]||null}}tp_inst._defaults=$.extend({},this._defaults,inlineSettings,opts,overrides,{evnts:fns,timepicker:tp_inst});tp_inst.amNames=$.map(tp_inst._defaults.amNames,function(val){return val.toUpperCase()});tp_inst.pmNames=$.map(tp_inst._defaults.pmNames,function(val){return val.toUpperCase()});tp_inst.support=detectSupport(tp_inst._defaults.timeFormat+(tp_inst._defaults.pickerTimeFormat?tp_inst._defaults.pickerTimeFormat:"")+(tp_inst._defaults.altTimeFormat?tp_inst._defaults.altTimeFormat:""));if(typeof(tp_inst._defaults.controlType)==="string"){if(tp_inst._defaults.controlType==="slider"&&typeof($.ui.slider)==="undefined"){tp_inst._defaults.controlType="select"}tp_inst.control=tp_inst._controls[tp_inst._defaults.controlType]}else{tp_inst.control=tp_inst._defaults.controlType}var timezoneList=[-720,-660,-600,-570,-540,-480,-420,-360,-300,-270,-240,-210,-180,-120,-60,0,60,120,180,210,240,270,300,330,345,360,390,420,480,525,540,570,600,630,660,690,720,765,780,840];if(tp_inst._defaults.timezoneList!==null){timezoneList=tp_inst._defaults.timezoneList}var tzl=timezoneList.length,tzi=0,tzv=null;if(tzl>0&&typeof timezoneList[0]!=="object"){for(;tzitp_inst._defaults.hourMax?tp_inst._defaults.hourMax:tp_inst._defaults.hour;tp_inst.minute=tp_inst._defaults.minutetp_inst._defaults.minuteMax?tp_inst._defaults.minuteMax:tp_inst._defaults.minute;tp_inst.second=tp_inst._defaults.secondtp_inst._defaults.secondMax?tp_inst._defaults.secondMax:tp_inst._defaults.second;tp_inst.millisec=tp_inst._defaults.millisectp_inst._defaults.millisecMax?tp_inst._defaults.millisecMax:tp_inst._defaults.millisec;tp_inst.microsec=tp_inst._defaults.microsectp_inst._defaults.microsecMax?tp_inst._defaults.microsecMax:tp_inst._defaults.microsec;tp_inst.ampm="";tp_inst.$input=$input;if(tp_inst._defaults.altField){tp_inst.$altInput=$(tp_inst._defaults.altField);if(tp_inst._defaults.altRedirectFocus===true){tp_inst.$altInput.css({cursor:"pointer"}).focus(function(){$input.trigger("focus")})}}if(tp_inst._defaults.minDate===0||tp_inst._defaults.minDateTime===0){tp_inst._defaults.minDate=new Date()}if(tp_inst._defaults.maxDate===0||tp_inst._defaults.maxDateTime===0){tp_inst._defaults.maxDate=new Date()}if(tp_inst._defaults.minDate!==undefined&&tp_inst._defaults.minDate instanceof Date){tp_inst._defaults.minDateTime=new Date(tp_inst._defaults.minDate.getTime())}if(tp_inst._defaults.minDateTime!==undefined&&tp_inst._defaults.minDateTime instanceof Date){tp_inst._defaults.minDate=new Date(tp_inst._defaults.minDateTime.getTime())}if(tp_inst._defaults.maxDate!==undefined&&tp_inst._defaults.maxDate instanceof Date){tp_inst._defaults.maxDateTime=new Date(tp_inst._defaults.maxDate.getTime())}if(tp_inst._defaults.maxDateTime!==undefined&&tp_inst._defaults.maxDateTime instanceof Date){tp_inst._defaults.maxDate=new Date(tp_inst._defaults.maxDateTime.getTime())}tp_inst.$input.bind("focus",function(){tp_inst._onFocus()});return tp_inst},_addTimePicker:function(dp_inst){var currDT=$.trim((this.$altInput&&this._defaults.altFieldTimeOnly)?this.$input.val()+" "+this.$altInput.val():this.$input.val());this.timeDefined=this._parseTime(currDT);this._limitMinMaxDateTime(dp_inst,false);this._injectTimePicker();this._afterInject()},_parseTime:function(timeString,withDate){if(!this.inst){this.inst=$.datepicker._getInst(this.$input[0])}if(withDate||!this._defaults.timeOnly){var dp_dateFormat=$.datepicker._get(this.inst,"dateFormat");try{var parseRes=parseDateTimeInternal(dp_dateFormat,this._defaults.timeFormat,timeString,$.datepicker._getFormatConfig(this.inst),this._defaults);if(!parseRes.timeObj){return false}$.extend(this,parseRes.timeObj)}catch(err){$.timepicker.log("Error parsing the date/time string: "+err+"\ndate/time string = "+timeString+"\ntimeFormat = "+this._defaults.timeFormat+"\ndateFormat = "+dp_dateFormat);return false}return true}else{var timeObj=$.datepicker.parseTime(this._defaults.timeFormat,timeString,this._defaults);if(!timeObj){return false}$.extend(this,timeObj);return true}},_afterInject:function(){var o=this.inst.settings;if($.isFunction(o.afterInject)){o.afterInject.call(this)}},_injectTimePicker:function(){var $dp=this.inst.dpDiv,o=this.inst.settings,tp_inst=this,litem="",uitem="",show=null,max={},gridSize={},size=null,i=0,l=0;if($dp.find("div.ui-timepicker-div").length===0&&o.showTimepicker){var noDisplay=" ui_tpicker_unit_hide",html='
'+o.timeText+'
";for(i=0,l=this.units.length;i'+o[litem+"Text"]+'
';if(show&&o[litem+"Grid"]>0){html+='
';if(litem==="hour"){for(var h=o[litem+"Min"];h<=max[litem];h+=parseInt(o[litem+"Grid"],10)){gridSize[litem]++;var tmph=$.datepicker.formatTime(this.support.ampm?"hht":"HH",{hour:h},o);html+='"}}else{for(var m=o[litem+"Min"];m<=max[litem];m+=parseInt(o[litem+"Grid"],10)){gridSize[litem]++;html+='"}}html+="
'+tmph+"'+((m<10)?"0":"")+m+"
"}html+="
"}var showTz=o.showTimezone!==null?o.showTimezone:this.support.timezone;html+='
'+o.timezoneText+"
";html+='
';html+="
";var $tp=$(html);if(o.timeOnly===true){$tp.prepend('
'+o.timeOnlyTitle+"
");$dp.find(".ui-datepicker-header, .ui-datepicker-calendar").hide()}for(i=0,l=tp_inst.units.length;i0){size=100*gridSize[litem]*o[litem+"Grid"]/(max[litem]-o[litem+"Min"]);$tp.find(".ui_tpicker_"+litem+" table").css({width:size+"%",marginLeft:o.isRTL?"0":((size/(-2*gridSize[litem]))+"%"),marginRight:o.isRTL?((size/(-2*gridSize[litem]))+"%"):"0",borderCollapse:"collapse"}).find("td").click(function(e){var $t=$(this),h=$t.html(),n=parseInt(h.replace(/[^0-9]/g),10),ap=h.replace(/[^apm]/ig),f=$t.data("for");if(f==="hour"){if(ap.indexOf("p")!==-1&&n<12){n+=12}else{if(ap.indexOf("a")!==-1&&n===12){n=0}}}tp_inst.control.value(tp_inst,tp_inst[f+"_slider"],litem,n);tp_inst._onTimeChange();tp_inst._onSelectHandler()}).css({cursor:"pointer",width:(100/gridSize[litem])+"%",textAlign:"center",overflow:"hidden"})}}this.timezone_select=$tp.find(".ui_tpicker_timezone").append("").find("select");$.fn.append.apply(this.timezone_select,$.map(o.timezoneList,function(val,idx){return $("