/*! jQuery v3.4.1 | (c) JS Foundation and other contributors | jquery.org/license */ !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],E=C.document,r=Object.getPrototypeOf,s=t.slice,g=t.concat,u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.4.1",k=function(e,t){return new k.fn.init(e,t)},p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function d(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp($),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(m.childNodes),m.childNodes),t[m.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&((e?e.ownerDocument||e:m)!==C&&T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!A[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&U.test(t)){(s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=k),o=(l=h(t)).length;while(o--)l[o]="#"+s+" "+xe(l[o]);c=l.join(","),f=ee.test(t)&&ye(e.parentNode)||e}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){A(t,!0)}finally{s===k&&e.removeAttribute("id")}}}return g(t.replace(B,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[k]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:m;return r!==C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),m!==C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=k,!C.getElementsByName||!C.getElementsByName(k).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+k+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+k+"+*").length||v.push(".#.+[+~]")}),ce(function(e){e.innerHTML="";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",$)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e===C||e.ownerDocument===m&&y(m,e)?-1:t===C||t.ownerDocument===m&&y(m,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===C?-1:t===C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]===m?-1:s[r]===m?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==C&&T(e),d.matchesSelector&&E&&!A[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){A(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=p[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&p(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?k.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?k.grep(e,function(e){return e===n!==r}):"string"!=typeof n?k.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||q,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:L.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),D.test(r[1])&&k.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,q=k(E);var H=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function P(e,t){while((e=e[t])&&1!==e.nodeType);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i,ge={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?k.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;nx",y.noCloneChecked=!!me.cloneNode(!0).lastChild.defaultValue;var Te=/^key/,Ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ee=/^([^.]*)(?:\.(.+)|)/;function ke(){return!0}function Se(){return!1}function Ne(e,t){return e===function(){try{return E.activeElement}catch(e){}}()==("focus"===t)}function Ae(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ae(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Se;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return k().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=k.guid++)),e.each(function(){k.event.add(this,t,i,r,n)})}function De(e,i,o){o?(Q.set(e,i,!1),k.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Q.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(k.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),Q.set(this,i,r),t=o(this,i),this[i](),r!==(n=Q.get(this,i))||t?Q.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else r.length&&(Q.set(this,i,{value:k.event.trigger(k.extend(r[0],k.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,i)&&k.event.add(e,i,ke)}k.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.get(t);if(v){n.handler&&(n=(o=n).handler,i=o.selector),i&&k.find.matchesSelector(ie,i),n.guid||(n.guid=k.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof k&&k.event.triggered!==e.type?k.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(R)||[""]).length;while(l--)d=g=(s=Ee.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=k.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=k.event.special[d]||{},c=k.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&k.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),k.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.hasData(e)&&Q.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(R)||[""]).length;while(l--)if(d=g=(s=Ee.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=k.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||k.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)k.event.remove(e,d+t[l],n,r,!0);k.isEmptyObject(u)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=k.event.fix(e),u=new Array(arguments.length),l=(Q.get(this,"events")||{})[s.type]||[],c=k.event.special[s.type]||{};for(u[0]=s,t=1;t\x20\t\r\n\f]*)[^>]*)\/>/gi,qe=/\s*$/g;function Oe(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function Pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Re(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Me(e,t){var n,r,i,o,a,s,u,l;if(1===t.nodeType){if(Q.hasData(e)&&(o=Q.access(e),a=Q.set(t,o),l=o.events))for(i in delete a.handle,a.events={},l)for(n=0,r=l[i].length;n")},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=oe(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(a=ve(c),r=0,i=(o=ve(e)).length;r").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var Vt,Gt=[],Yt=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Gt.pop()||k.expando+"_"+kt++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Yt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Yt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Yt,"$1"+r):!1!==e.jsonp&&(e.url+=(St.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||k.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?k(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Gt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((Vt=E.implementation.createHTMLDocument("").body).innerHTML="
",2===Vt.childNodes.length),k.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=D.exec(e))?[t.createElement(i[1])]:(i=we([e],t,o),o&&o.length&&k(o).remove(),k.merge([],i.childNodes)));var r,i,o},k.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(k.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){k.fn[t]=function(e){return this.on(t,e)}}),k.expr.pseudos.animated=function(t){return k.grep(k.timers,function(e){return t===e.elem}).length},k.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=k.css(e,"position"),c=k(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=k.css(e,"top"),u=k.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,k.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},k.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){k.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===k.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===k.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),i.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-k.css(r,"marginTop",!0),left:t.left-i.left-k.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===k.css(e,"position"))e=e.offsetParent;return e||ie})}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;k.fn[t]=function(e){return _(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),k.each(["top","left"],function(e,n){k.cssHooks[n]=ze(y.pixelPosition,function(e,t){if(t)return t=_e(e,n),$e.test(t)?k(e).position()[n]+"px":t})}),k.each({Height:"height",Width:"width"},function(a,s){k.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){k.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return _(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?k.css(e,t,i):k.style(e,t,n,i)},s,n?e:void 0,n)}})}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){k.fn[n]=function(e,t){return 0",options:{classes:{},disabled:false,create:null},_createWidget:function(ag,ah){ah=K(ah||this.defaultElement||this)[0];this.element=K(ah);this.uuid=aa++;this.eventNamespace="."+this.widgetName+this.uuid;this.bindings=K();this.hoverable=K();this.focusable=K();this.classesElementLookup={};if(ah!==this){K.data(ah,this.widgetFullName,this);this._on(true,this.element,{remove:function(ai){if(ai.target===ah){this.destroy()}}});this.document=K(ah.style?ah.ownerDocument:ah.document||ah);this.window=K(this.document[0].defaultView||this.document[0].parentWindow)}this.options=K.widget.extend({},this.options,this._getCreateOptions(),ag);this._create();if(this.options.disabled){this._setOptionDisabled(this.options.disabled)}this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:K.noop,_create:K.noop,_init:K.noop,destroy:function(){var ag=this;this._destroy();K.each(this.classesElementLookup,function(ah,ai){ag._removeClass(ai,ah)});this.element.off(this.eventNamespace).removeData(this.widgetFullName);this.widget().off(this.eventNamespace).removeAttr("aria-disabled");this.bindings.off(this.eventNamespace)},_destroy:K.noop,widget:function(){return this.element},option:function(aj,ak){var ag=aj;var al;var ai;var ah;if(arguments.length===0){return K.widget.extend({},this.options)}if(typeof aj==="string"){ag={};al=aj.split(".");aj=al.shift();if(al.length){ai=ag[aj]=K.widget.extend({},this.options[aj]);for(ah=0;ah
"),av=aw.children()[0];K("body").append(aw);au=av.offsetWidth;aw.css("overflow","scroll");at=av.offsetWidth;if(au===at){at=aw[0].clientWidth}aw.remove();return(an=au-at)},getScrollInfo:function(ax){var aw=ax.isWindow||ax.isDocument?"":ax.element.css("overflow-x"),av=ax.isWindow||ax.isDocument?"":ax.element.css("overflow-y"),au=aw==="scroll"||(aw==="auto"&&ax.width0?"right":"center",vertical:aR<0?"top":aU>0?"bottom":"middle"};if(aAao(ar(aU),ar(aR))){aQ.important="horizontal"}else{aQ.important="vertical"}aD.using.call(this,aT,aQ)}}aI.offset(K.extend(aL,{using:aP}))})};K.ui.position={fit:{left:function(ax,aw){var av=aw.within,az=av.isWindow?av.scrollLeft:av.offset.left,aB=av.width,ay=ax.left-aw.collisionPosition.marginLeft,aA=az-ay,au=ay+aw.collisionWidth-aB-az,at;if(aw.collisionWidth>aB){if(aA>0&&au<=0){at=ax.left+aA+aw.collisionWidth-aB-az;ax.left+=aA-at}else{if(au>0&&aA<=0){ax.left=az}else{if(aA>au){ax.left=az+aB-aw.collisionWidth}else{ax.left=az}}}}else{if(aA>0){ax.left+=aA}else{if(au>0){ax.left-=au}else{ax.left=ao(ax.left-ay,ax.left)}}}},top:function(aw,av){var au=av.within,aA=au.isWindow?au.scrollTop:au.offset.top,aB=av.within.height,ay=aw.top-av.collisionPosition.marginTop,az=aA-ay,ax=ay+av.collisionHeight-aB-aA,at;if(av.collisionHeight>aB){if(az>0&&ax<=0){at=aw.top+az+av.collisionHeight-aB-aA;aw.top+=az-at}else{if(ax>0&&az<=0){aw.top=aA}else{if(az>ax){aw.top=aA+aB-av.collisionHeight}else{aw.top=aA}}}}else{if(az>0){aw.top+=az}else{if(ax>0){aw.top-=ax}else{aw.top=ao(aw.top-ay,aw.top)}}}}},flip:{left:function(az,ay){var ax=ay.within,aD=ax.offset.left+ax.scrollLeft,aG=ax.width,av=ax.isWindow?ax.scrollLeft:ax.offset.left,aA=az.left-ay.collisionPosition.marginLeft,aE=aA-av,au=aA+ay.collisionWidth-aG-av,aC=ay.my[0]==="left"?-ay.elemWidth:ay.my[0]==="right"?ay.elemWidth:0,aF=ay.at[0]==="left"?ay.targetWidth:ay.at[0]==="right"?-ay.targetWidth:0,aw=-2*ay.offset[0],at,aB;if(aE<0){at=az.left+aC+aF+aw+ay.collisionWidth-aG-aD;if(at<0||at0){aB=az.left-ay.collisionPosition.marginLeft+aC+aF+aw-av;if(aB>0||ar(aB)0){aE=ay.top-ax.collisionPosition.marginTop+aB+aH+av-at;if(aE>0||ar(aE)0&&ai.is(":visible")}if(/^(input|select|textarea|button|object)$/.test(an)){al=!aj.disabled;if(al){ag=K(aj).closest("fieldset")[0];if(ag){al=!ag.disabled}}}else{if("a"===an){al=aj.href||ah}else{al=ah}}return al&&K(aj).is(":visible")&&E(K(aj))};function E(ah){var ag=ah.css("visibility");while(ag==="inherit"){ah=ah.parent();ag=ah.css("visibility")}return ag!=="hidden"}K.extend(K.expr[":"],{focusable:function(ag){return K.ui.focusable(ag,K.attr(ag,"tabindex")!=null)}});var B=K.ui.focusable;var P=K.fn.form=function(){return typeof this[0].form==="string"?this.closest("form"):K(this[0].form)}; /*! * jQuery UI Form Reset Mixin 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var i=K.ui.formResetMixin={_formResetHandler:function(){var ag=K(this);setTimeout(function(){var ah=ag.data("ui-form-reset-instances");K.each(ah,function(){this.refresh()})})},_bindFormResetHandler:function(){this.form=this.element.form();if(!this.form.length){return}var ag=this.form.data("ui-form-reset-instances")||[];if(!ag.length){this.form.on("reset.ui-form-reset",this._formResetHandler)}ag.push(this);this.form.data("ui-form-reset-instances",ag)},_unbindFormResetHandler:function(){if(!this.form.length){return}var ag=this.form.data("ui-form-reset-instances");ag.splice(K.inArray(this,ag),1);if(ag.length){this.form.data("ui-form-reset-instances",ag)}else{this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}}; /*! * jQuery UI Keycode 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var w=K.ui.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};var Y=K.ui.escapeSelector=(function(){var ag=/([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g;return function(ah){return ah.replace(ag,"\\$1")}})(); /*! * jQuery UI Labels 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var s=K.fn.labels=function(){var ah,ag,ak,aj,ai;if(this[0].labels&&this[0].labels.length){return this.pushStack(this[0].labels)}aj=this.eq(0).parents("label");ak=this.attr("id");if(ak){ah=this.eq(0).parents().last();ai=ah.add(ah.length?ah.siblings():this.siblings());ag="label[for='"+K.ui.escapeSelector(ak)+"']";aj=aj.add(ai.find(ag).addBack(ag))}return this.pushStack(aj)}; /*! * jQuery UI Scroll Parent 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var J=K.fn.scrollParent=function(ai){var ah=this.css("position"),ag=ah==="absolute",aj=ai?/(auto|scroll|hidden)/:/(auto|scroll)/,ak=this.parents().filter(function(){var al=K(this);if(ag&&al.css("position")==="static"){return false}return aj.test(al.css("overflow")+al.css("overflow-y")+al.css("overflow-x"))}).eq(0);return ah==="fixed"||!ak.length?K(this[0].ownerDocument||document):ak}; /*! * jQuery UI Tabbable 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var r=K.extend(K.expr[":"],{tabbable:function(ai){var ah=K.attr(ai,"tabindex"),ag=ah!=null;return(!ag||ah>=0)&&K.ui.focusable(ai,ag)}}); /*! * jQuery UI Unique ID 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var k=K.fn.extend({uniqueId:(function(){var ag=0;return function(){return this.each(function(){if(!this.id){this.id="ui-id-"+(++ag)}})}})(),removeUniqueId:function(){return this.each(function(){if(/^ui-id-\d+$/.test(this.id)){K(this).removeAttr("id")}})}});var N=K.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()); /*! * jQuery UI Mouse 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var e=false;K(document).on("mouseup",function(){e=false});var H=K.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var ag=this;this.element.on("mousedown."+this.widgetName,function(ah){return ag._mouseDown(ah)}).on("click."+this.widgetName,function(ah){if(true===K.data(ah.target,ag.widgetName+".preventClickEvent")){K.removeData(ah.target,ag.widgetName+".preventClickEvent");ah.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.off("."+this.widgetName);if(this._mouseMoveDelegate){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)}},_mouseDown:function(ai){if(e){return}this._mouseMoved=false;(this._mouseStarted&&this._mouseUp(ai));this._mouseDownEvent=ai;var ah=this,aj=(ai.which===1),ag=(typeof this.options.cancel==="string"&&ai.target.nodeName?K(ai.target).closest(this.options.cancel).length:false);if(!aj||ag||!this._mouseCapture(ai)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){ah.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(ai)&&this._mouseDelayMet(ai)){this._mouseStarted=(this._mouseStart(ai)!==false);if(!this._mouseStarted){ai.preventDefault();return true}}if(true===K.data(ai.target,this.widgetName+".preventClickEvent")){K.removeData(ai.target,this.widgetName+".preventClickEvent")}this._mouseMoveDelegate=function(ak){return ah._mouseMove(ak)};this._mouseUpDelegate=function(ak){return ah._mouseUp(ak)};this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate);ai.preventDefault();e=true;return true},_mouseMove:function(ag){if(this._mouseMoved){if(K.ui.ie&&(!document.documentMode||document.documentMode<9)&&!ag.button){return this._mouseUp(ag)}else{if(!ag.which){if(ag.originalEvent.altKey||ag.originalEvent.ctrlKey||ag.originalEvent.metaKey||ag.originalEvent.shiftKey){this.ignoreMissingWhich=true}else{if(!this.ignoreMissingWhich){return this._mouseUp(ag)}}}}}if(ag.which||ag.button){this._mouseMoved=true}if(this._mouseStarted){this._mouseDrag(ag);return ag.preventDefault()}if(this._mouseDistanceMet(ag)&&this._mouseDelayMet(ag)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,ag)!==false);(this._mouseStarted?this._mouseDrag(ag):this._mouseUp(ag))}return !this._mouseStarted},_mouseUp:function(ag){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;if(ag.target===this._mouseDownEvent.target){K.data(ag.target,this.widgetName+".preventClickEvent",true)}this._mouseStop(ag)}if(this._mouseDelayTimer){clearTimeout(this._mouseDelayTimer);delete this._mouseDelayTimer}this.ignoreMissingWhich=false;e=false;ag.preventDefault()},_mouseDistanceMet:function(ag){return(Math.max(Math.abs(this._mouseDownEvent.pageX-ag.pageX),Math.abs(this._mouseDownEvent.pageY-ag.pageY))>=this.options.distance)},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}});var ab=K.ui.plugin={add:function(ah,ai,ak){var ag,aj=K.ui[ah].prototype;for(ag in ak){aj.plugins[ag]=aj.plugins[ag]||[];aj.plugins[ag].push([ai,ak[ag]])}},call:function(ag,aj,ai,ah){var ak,al=ag.plugins[aj];if(!al){return}if(!ah&&(!ag.element[0].parentNode||ag.element[0].parentNode.nodeType===11)){return}for(ak=0;ak0){return false}this.handle=this._getHandle(ag);if(!this.handle){return false}this._blurActiveElement(ag);this._blockFrames(ah.iframeFix===true?"iframe":ah.iframeFix);return true},_blockFrames:function(ag){this.iframeBlocks=this.document.find(ag).map(function(){var ah=K(this);return K("
").css("position","absolute").appendTo(ah.parent()).outerWidth(ah.outerWidth()).outerHeight(ah.outerHeight()).offset(ah.offset())[0]})},_unblockFrames:function(){if(this.iframeBlocks){this.iframeBlocks.remove();delete this.iframeBlocks}},_blurActiveElement:function(ah){var ag=K.ui.safeActiveElement(this.document[0]),ai=K(ah.target);if(ai.closest(ag).length){return}K.ui.safeBlur(ag)},_mouseStart:function(ag){var ah=this.options;this.helper=this._createHelper(ag);this._addClass(this.helper,"ui-draggable-dragging");this._cacheHelperProportions();if(K.ui.ddmanager){K.ui.ddmanager.current=this}this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent(true);this.offsetParent=this.helper.offsetParent();this.hasFixedAncestor=this.helper.parents().filter(function(){return K(this).css("position")==="fixed"}).length>0;this.positionAbs=this.element.offset();this._refreshOffsets(ag);this.originalPosition=this.position=this._generatePosition(ag,false);this.originalPageX=ag.pageX;this.originalPageY=ag.pageY;(ah.cursorAt&&this._adjustOffsetFromHelper(ah.cursorAt));this._setContainment();if(this._trigger("start",ag)===false){this._clear();return false}this._cacheHelperProportions();if(K.ui.ddmanager&&!ah.dropBehaviour){K.ui.ddmanager.prepareOffsets(this,ag)}this._mouseDrag(ag,true);if(K.ui.ddmanager){K.ui.ddmanager.dragStart(this,ag)}return true},_refreshOffsets:function(ag){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:false,parent:this._getParentOffset(),relative:this._getRelativeOffset()};this.offset.click={left:ag.pageX-this.offset.left,top:ag.pageY-this.offset.top}},_mouseDrag:function(ag,ai){if(this.hasFixedAncestor){this.offset.parent=this._getParentOffset()}this.position=this._generatePosition(ag,true);this.positionAbs=this._convertPositionTo("absolute");if(!ai){var ah=this._uiHash();if(this._trigger("drag",ag,ah)===false){this._mouseUp(new K.Event("mouseup",ag));return false}this.position=ah.position}this.helper[0].style.left=this.position.left+"px";this.helper[0].style.top=this.position.top+"px";if(K.ui.ddmanager){K.ui.ddmanager.drag(this,ag)}return false},_mouseStop:function(ah){var ag=this,ai=false;if(K.ui.ddmanager&&!this.options.dropBehaviour){ai=K.ui.ddmanager.drop(this,ah)}if(this.dropped){ai=this.dropped;this.dropped=false}if((this.options.revert==="invalid"&&!ai)||(this.options.revert==="valid"&&ai)||this.options.revert===true||(K.isFunction(this.options.revert)&&this.options.revert.call(this.element,ai))){K(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){if(ag._trigger("stop",ah)!==false){ag._clear()}})}else{if(this._trigger("stop",ah)!==false){this._clear()}}return false},_mouseUp:function(ag){this._unblockFrames();if(K.ui.ddmanager){K.ui.ddmanager.dragStop(this,ag)}if(this.handleElement.is(ag.target)){this.element.trigger("focus")}return K.ui.mouse.prototype._mouseUp.call(this,ag)},cancel:function(){if(this.helper.is(".ui-draggable-dragging")){this._mouseUp(new K.Event("mouseup",{target:this.element[0]}))}else{this._clear()}return this},_getHandle:function(ag){return this.options.handle?!!K(ag.target).closest(this.element.find(this.options.handle)).length:true},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element;this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(ah){var aj=this.options,ai=K.isFunction(aj.helper),ag=ai?K(aj.helper.apply(this.element[0],[ah])):(aj.helper==="clone"?this.element.clone().removeAttr("id"):this.element);if(!ag.parents("body").length){ag.appendTo((aj.appendTo==="parent"?this.element[0].parentNode:aj.appendTo))}if(ai&&ag[0]===this.element[0]){this._setPositionRelative()}if(ag[0]!==this.element[0]&&!(/(fixed|absolute)/).test(ag.css("position"))){ag.css("position","absolute")}return ag},_setPositionRelative:function(){if(!(/^(?:r|a|f)/).test(this.element.css("position"))){this.element[0].style.position="relative"}},_adjustOffsetFromHelper:function(ag){if(typeof ag==="string"){ag=ag.split(" ")}if(K.isArray(ag)){ag={left:+ag[0],top:+ag[1]||0}}if("left" in ag){this.offset.click.left=ag.left+this.margins.left}if("right" in ag){this.offset.click.left=this.helperProportions.width-ag.right+this.margins.left}if("top" in ag){this.offset.click.top=ag.top+this.margins.top}if("bottom" in ag){this.offset.click.top=this.helperProportions.height-ag.bottom+this.margins.top}},_isRootNode:function(ag){return(/(html|body)/i).test(ag.tagName)||ag===this.document[0]},_getParentOffset:function(){var ah=this.offsetParent.offset(),ag=this.document[0];if(this.cssPosition==="absolute"&&this.scrollParent[0]!==ag&&K.contains(this.scrollParent[0],this.offsetParent[0])){ah.left+=this.scrollParent.scrollLeft();ah.top+=this.scrollParent.scrollTop()}if(this._isRootNode(this.offsetParent[0])){ah={top:0,left:0}}return{top:ah.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:ah.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition!=="relative"){return{top:0,left:0}}var ag=this.element.position(),ah=this._isRootNode(this.scrollParent[0]);return{top:ag.top-(parseInt(this.helper.css("top"),10)||0)+(!ah?this.scrollParent.scrollTop():0),left:ag.left-(parseInt(this.helper.css("left"),10)||0)+(!ah?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 ah,ak,ai,aj=this.options,ag=this.document[0];this.relativeContainer=null;if(!aj.containment){this.containment=null;return}if(aj.containment==="window"){this.containment=[K(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,K(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,K(window).scrollLeft()+K(window).width()-this.helperProportions.width-this.margins.left,K(window).scrollTop()+(K(window).height()||ag.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(aj.containment==="document"){this.containment=[0,0,K(ag).width()-this.helperProportions.width-this.margins.left,(K(ag).height()||ag.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(aj.containment.constructor===Array){this.containment=aj.containment;return}if(aj.containment==="parent"){aj.containment=this.helper[0].parentNode}ak=K(aj.containment);ai=ak[0];if(!ai){return}ah=/(scroll|auto)/.test(ak.css("overflow"));this.containment=[(parseInt(ak.css("borderLeftWidth"),10)||0)+(parseInt(ak.css("paddingLeft"),10)||0),(parseInt(ak.css("borderTopWidth"),10)||0)+(parseInt(ak.css("paddingTop"),10)||0),(ah?Math.max(ai.scrollWidth,ai.offsetWidth):ai.offsetWidth)-(parseInt(ak.css("borderRightWidth"),10)||0)-(parseInt(ak.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(ah?Math.max(ai.scrollHeight,ai.offsetHeight):ai.offsetHeight)-(parseInt(ak.css("borderBottomWidth"),10)||0)-(parseInt(ak.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relativeContainer=ak},_convertPositionTo:function(ah,aj){if(!aj){aj=this.position}var ag=ah==="absolute"?1:-1,ai=this._isRootNode(this.scrollParent[0]);return{top:(aj.top+this.offset.relative.top*ag+this.offset.parent.top*ag-((this.cssPosition==="fixed"?-this.offset.scroll.top:(ai?0:this.offset.scroll.top))*ag)),left:(aj.left+this.offset.relative.left*ag+this.offset.parent.left*ag-((this.cssPosition==="fixed"?-this.offset.scroll.left:(ai?0:this.offset.scroll.left))*ag))}},_generatePosition:function(ah,an){var ag,ao,ap,aj,ai=this.options,am=this._isRootNode(this.scrollParent[0]),al=ah.pageX,ak=ah.pageY;if(!am||!this.offset.scroll){this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}}if(an){if(this.containment){if(this.relativeContainer){ao=this.relativeContainer.offset();ag=[this.containment[0]+ao.left,this.containment[1]+ao.top,this.containment[2]+ao.left,this.containment[3]+ao.top]}else{ag=this.containment}if(ah.pageX-this.offset.click.leftag[2]){al=ag[2]+this.offset.click.left}if(ah.pageY-this.offset.click.top>ag[3]){ak=ag[3]+this.offset.click.top}}if(ai.grid){ap=ai.grid[1]?this.originalPageY+Math.round((ak-this.originalPageY)/ai.grid[1])*ai.grid[1]:this.originalPageY;ak=ag?((ap-this.offset.click.top>=ag[1]||ap-this.offset.click.top>ag[3])?ap:((ap-this.offset.click.top>=ag[1])?ap-ai.grid[1]:ap+ai.grid[1])):ap;aj=ai.grid[0]?this.originalPageX+Math.round((al-this.originalPageX)/ai.grid[0])*ai.grid[0]:this.originalPageX;al=ag?((aj-this.offset.click.left>=ag[0]||aj-this.offset.click.left>ag[2])?aj:((aj-this.offset.click.left>=ag[0])?aj-ai.grid[0]:aj+ai.grid[0])):aj}if(ai.axis==="y"){al=this.originalPageX}if(ai.axis==="x"){ak=this.originalPageY}}return{top:(ak-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.offset.scroll.top:(am?0:this.offset.scroll.top))),left:(al-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.offset.scroll.left:(am?0:this.offset.scroll.left)))}},_clear:function(){this._removeClass(this.helper,"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(ag,ah,ai){ai=ai||this._uiHash();K.ui.plugin.call(this,ag,[ah,ai,this],true);if(/^(drag|start|stop)/.test(ag)){this.positionAbs=this._convertPositionTo("absolute");ai.offset=this.positionAbs}return K.Widget.prototype._trigger.call(this,ag,ah,ai)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});K.ui.plugin.add("draggable","connectToSortable",{start:function(ai,aj,ag){var ah=K.extend({},aj,{item:ag.element});ag.sortables=[];K(ag.options.connectToSortable).each(function(){var ak=K(this).sortable("instance");if(ak&&!ak.options.disabled){ag.sortables.push(ak);ak.refreshPositions();ak._trigger("activate",ai,ah)}})},stop:function(ai,aj,ag){var ah=K.extend({},aj,{item:ag.element});ag.cancelHelperRemoval=false;K.each(ag.sortables,function(){var ak=this;if(ak.isOver){ak.isOver=0;ag.cancelHelperRemoval=true;ak.cancelHelperRemoval=false;ak._storedCSS={position:ak.placeholder.css("position"),top:ak.placeholder.css("top"),left:ak.placeholder.css("left")};ak._mouseStop(ai);ak.options.helper=ak.options._helper}else{ak.cancelHelperRemoval=true;ak._trigger("deactivate",ai,ah)}})},drag:function(ah,ai,ag){K.each(ag.sortables,function(){var aj=false,ak=this;ak.positionAbs=ag.positionAbs;ak.helperProportions=ag.helperProportions;ak.offset.click=ag.offset.click;if(ak._intersectsWith(ak.containerCache)){aj=true;K.each(ag.sortables,function(){this.positionAbs=ag.positionAbs;this.helperProportions=ag.helperProportions;this.offset.click=ag.offset.click;if(this!==ak&&this._intersectsWith(this.containerCache)&&K.contains(ak.element[0],this.element[0])){aj=false}return aj})}if(aj){if(!ak.isOver){ak.isOver=1;ag._parent=ai.helper.parent();ak.currentItem=ai.helper.appendTo(ak.element).data("ui-sortable-item",true);ak.options._helper=ak.options.helper;ak.options.helper=function(){return ai.helper[0]};ah.target=ak.currentItem[0];ak._mouseCapture(ah,true);ak._mouseStart(ah,true,true);ak.offset.click.top=ag.offset.click.top;ak.offset.click.left=ag.offset.click.left;ak.offset.parent.left-=ag.offset.parent.left-ak.offset.parent.left;ak.offset.parent.top-=ag.offset.parent.top-ak.offset.parent.top;ag._trigger("toSortable",ah);ag.dropped=ak.element;K.each(ag.sortables,function(){this.refreshPositions()});ag.currentItem=ag.element;ak.fromOutside=ag}if(ak.currentItem){ak._mouseDrag(ah);ai.position=ak.position}}else{if(ak.isOver){ak.isOver=0;ak.cancelHelperRemoval=true;ak.options._revert=ak.options.revert;ak.options.revert=false;ak._trigger("out",ah,ak._uiHash(ak));ak._mouseStop(ah,true);ak.options.revert=ak.options._revert;ak.options.helper=ak.options._helper;if(ak.placeholder){ak.placeholder.remove()}ai.helper.appendTo(ag._parent);ag._refreshOffsets(ah);ai.position=ag._generatePosition(ah,true);ag._trigger("fromSortable",ah);ag.dropped=false;K.each(ag.sortables,function(){this.refreshPositions()})}}})}});K.ui.plugin.add("draggable","cursor",{start:function(ai,aj,ag){var ah=K("body"),ak=ag.options;if(ah.css("cursor")){ak._cursor=ah.css("cursor")}ah.css("cursor",ak.cursor)},stop:function(ah,ai,ag){var aj=ag.options;if(aj._cursor){K("body").css("cursor",aj._cursor)}}});K.ui.plugin.add("draggable","opacity",{start:function(ai,aj,ag){var ah=K(aj.helper),ak=ag.options;if(ah.css("opacity")){ak._opacity=ah.css("opacity")}ah.css("opacity",ak.opacity)},stop:function(ah,ai,ag){var aj=ag.options;if(aj._opacity){K(ai.helper).css("opacity",aj._opacity)}}});K.ui.plugin.add("draggable","scroll",{start:function(ah,ai,ag){if(!ag.scrollParentNotHidden){ag.scrollParentNotHidden=ag.helper.scrollParent(false)}if(ag.scrollParentNotHidden[0]!==ag.document[0]&&ag.scrollParentNotHidden[0].tagName!=="HTML"){ag.overflowOffset=ag.scrollParentNotHidden.offset()}},drag:function(aj,ak,ai){var al=ai.options,ah=false,am=ai.scrollParentNotHidden[0],ag=ai.document[0];if(am!==ag&&am.tagName!=="HTML"){if(!al.axis||al.axis!=="x"){if((ai.overflowOffset.top+am.offsetHeight)-aj.pageY=0;au--){ar=aj.snapElements[au].left-aj.margins.left;ao=ar+aj.snapElements[au].width;an=aj.snapElements[au].top-aj.margins.top;az=an+aj.snapElements[au].height;if(avao+ax||ahaz+ax||!K.contains(aj.snapElements[au].item.ownerDocument,aj.snapElements[au].item)){if(aj.snapElements[au].snapping){(aj.options.snap.release&&aj.options.snap.release.call(aj.element,at,K.extend(aj._uiHash(),{snapItem:aj.snapElements[au].item})))}aj.snapElements[au].snapping=false;continue}if(aq.snapMode!=="inner"){ag=Math.abs(an-ah)<=ax;ay=Math.abs(az-ai)<=ax;al=Math.abs(ar-av)<=ax;am=Math.abs(ao-aw)<=ax;if(ag){ap.position.top=aj._convertPositionTo("relative",{top:an-aj.helperProportions.height,left:0}).top}if(ay){ap.position.top=aj._convertPositionTo("relative",{top:az,left:0}).top}if(al){ap.position.left=aj._convertPositionTo("relative",{top:0,left:ar-aj.helperProportions.width}).left}if(am){ap.position.left=aj._convertPositionTo("relative",{top:0,left:ao}).left}}ak=(ag||ay||al||am);if(aq.snapMode!=="outer"){ag=Math.abs(an-ai)<=ax;ay=Math.abs(az-ah)<=ax;al=Math.abs(ar-aw)<=ax;am=Math.abs(ao-av)<=ax;if(ag){ap.position.top=aj._convertPositionTo("relative",{top:an,left:0}).top}if(ay){ap.position.top=aj._convertPositionTo("relative",{top:az-aj.helperProportions.height,left:0}).top}if(al){ap.position.left=aj._convertPositionTo("relative",{top:0,left:ar}).left}if(am){ap.position.left=aj._convertPositionTo("relative",{top:0,left:ao-aj.helperProportions.width}).left}}if(!aj.snapElements[au].snapping&&(ag||ay||al||am||ak)){(aj.options.snap.snap&&aj.options.snap.snap.call(aj.element,at,K.extend(aj._uiHash(),{snapItem:aj.snapElements[au].item})))}aj.snapElements[au].snapping=(ag||ay||al||am||ak)}}});K.ui.plugin.add("draggable","stack",{start:function(ai,aj,ag){var ah,al=ag.options,ak=K.makeArray(K(al.stack)).sort(function(an,am){return(parseInt(K(an).css("zIndex"),10)||0)-(parseInt(K(am).css("zIndex"),10)||0)});if(!ak.length){return}ah=parseInt(K(ak[0]).css("zIndex"),10)||0;K(ak).each(function(am){K(this).css("zIndex",ah+am)});this.css("zIndex",(ah+ak.length))}});K.ui.plugin.add("draggable","zIndex",{start:function(ai,aj,ag){var ah=K(aj.helper),ak=ag.options;if(ah.css("zIndex")){ak._zIndex=ah.css("zIndex")}ah.css("zIndex",ak.zIndex)},stop:function(ah,ai,ag){var aj=ag.options;if(aj._zIndex){K(ai.helper).css("zIndex",aj._zIndex)}}});var ae=K.ui.draggable; /*! * jQuery UI Droppable 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ K.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:true,greedy:false,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var ah,ai=this.options,ag=ai.accept;this.isover=false;this.isout=true;this.accept=K.isFunction(ag)?ag:function(aj){return aj.is(ag)};this.proportions=function(){if(arguments.length){ah=arguments[0]}else{return ah?ah:ah={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}}};this._addToManager(ai.scope);ai.addClasses&&this._addClass("ui-droppable")},_addToManager:function(ag){K.ui.ddmanager.droppables[ag]=K.ui.ddmanager.droppables[ag]||[];K.ui.ddmanager.droppables[ag].push(this)},_splice:function(ag){var ah=0;for(;ah=ah)&&(ai<(ah+aj))}return function(at,am,aq,ai){if(!am.offset){return false}var ak=(at.positionAbs||at.position.absolute).left+at.margins.left,ap=(at.positionAbs||at.position.absolute).top+at.margins.top,aj=ak+at.helperProportions.width,ao=ap+at.helperProportions.height,al=am.offset.left,ar=am.offset.top,ah=al+am.proportions().width,an=ar+am.proportions().height;switch(aq){case"fit":return(al<=ak&&aj<=ah&&ar<=ap&&ao<=an);case"intersect":return(al=ar&&ap<=an)||(ao>=ar&&ao<=an)||(apan))&&((ak>=al&&ak<=ah)||(aj>=al&&aj<=ah)||(akah));default:return false}}})();K.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(aj,al){var ai,ah,ag=K.ui.ddmanager.droppables[aj.options.scope]||[],ak=al?al.type:null,am=(aj.currentItem||aj.element).find(":data(ui-droppable)").addBack();droppablesLoop:for(ai=0;ai0){return true}aj[ag]=1;ai=(aj[ag]>0);aj[ag]=0;return ai},_create:function(){var ah,ai=this.options,ag=this;this._addClass("ui-resizable");K.extend(this,{_aspectRatio:!!(ai.aspectRatio),aspectRatio:ai.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:ai.helper||ai.ghost||ai.animate?ai.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)){this.element.wrap(K("
").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;ah={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")};this.element.css(ah);this.originalElement.css("margin",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(ah);this._proportionallyResize()}this._setupHandles();if(ai.autoHide){K(this.element).on("mouseenter",function(){if(ai.disabled){return}ag._removeClass("ui-resizable-autohide");ag._handles.show()}).on("mouseleave",function(){if(ai.disabled){return}if(!ag.resizing){ag._addClass("ui-resizable-autohide");ag._handles.hide()}})}this._mouseInit()},_destroy:function(){this._mouseDestroy();var ah,ag=function(ai){K(ai).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){ag(this.element);ah=this.element;this.originalElement.css({position:ah.css("position"),width:ah.outerWidth(),height:ah.outerHeight(),top:ah.css("top"),left:ah.css("left")}).insertAfter(ah);ah.remove()}this.originalElement.css("resize",this.originalResizeStyle);ag(this.originalElement);return this},_setOption:function(ag,ah){this._super(ag,ah);switch(ag){case"handles":this._removeHandles();this._setupHandles();break;default:break}},_setupHandles:function(){var al=this.options,ak,ah,am,ag,ai,aj=this;this.handles=al.handles||(!K(".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"});this._handles=K();if(this.handles.constructor===String){if(this.handles==="all"){this.handles="n,e,s,w,se,sw,ne,nw"}am=this.handles.split(",");this.handles={};for(ah=0;ah");this._addClass(ai,"ui-resizable-handle "+ag);ai.css({zIndex:al.zIndex});this.handles[ak]=".ui-resizable-"+ak;this.element.append(ai)}}this._renderAxis=function(ar){var ao,ap,an,aq;ar=ar||this.element;for(ao in this.handles){if(this.handles[ao].constructor===String){this.handles[ao]=this.element.children(this.handles[ao]).first().show()}else{if(this.handles[ao].jquery||this.handles[ao].nodeType){this.handles[ao]=K(this.handles[ao]);this._on(this.handles[ao],{mousedown:aj._mouseDown})}}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)){ap=K(this.handles[ao],this.element);aq=/sw|ne|nw|se|n|s/.test(ao)?ap.outerHeight():ap.outerWidth();an=["padding",/ne|nw|n/.test(ao)?"Top":/se|sw|s/.test(ao)?"Bottom":/^e$/.test(ao)?"Right":"Left"].join("");ar.css(an,aq);this._proportionallyResize()}this._handles=this._handles.add(this.handles[ao])}};this._renderAxis(this.element);this._handles=this._handles.add(this.element.find(".ui-resizable-handle"));this._handles.disableSelection();this._handles.on("mouseover",function(){if(!aj.resizing){if(this.className){ai=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}aj.axis=ai&&ai[1]?ai[1]:"se"}});if(al.autoHide){this._handles.hide();this._addClass("ui-resizable-autohide")}},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(ai){var ah,aj,ag=false;for(ah in this.handles){aj=K(this.handles[ah])[0];if(aj===ai.target||K.contains(aj,ai.target)){ag=true}}return !this.options.disabled&&ag},_mouseStart:function(ah){var al,ai,ak,aj=this.options,ag=this.element;this.resizing=true;this._renderProxy();al=this._num(this.helper.css("left"));ai=this._num(this.helper.css("top"));if(aj.containment){al+=K(aj.containment).scrollLeft()||0;ai+=K(aj.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:al,top:ai};this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:ag.width(),height:ag.height()};this.originalSize=this._helper?{width:ag.outerWidth(),height:ag.outerHeight()}:{width:ag.width(),height:ag.height()};this.sizeDiff={width:ag.outerWidth()-ag.width(),height:ag.outerHeight()-ag.height()};this.originalPosition={left:al,top:ai};this.originalMousePosition={left:ah.pageX,top:ah.pageY};this.aspectRatio=(typeof aj.aspectRatio==="number")?aj.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);ak=K(".ui-resizable-"+this.axis).css("cursor");K("body").css("cursor",ak==="auto"?this.axis+"-resize":ak);this._addClass("ui-resizable-resizing");this._propagate("start",ah);return true},_mouseDrag:function(al){var am,ak,an=this.originalMousePosition,ah=this.axis,ai=(al.pageX-an.left)||0,ag=(al.pageY-an.top)||0,aj=this._change[ah];this._updatePrevProperties();if(!aj){return false}am=aj.apply(this,[al,ai,ag]);this._updateVirtualBoundaries(al.shiftKey);if(this._aspectRatio||al.shiftKey){am=this._updateRatio(am,al)}am=this._respectSize(am,al);this._updateCache(am);this._propagate("resize",al);ak=this._applyChanges();if(!this._helper&&this._proportionallyResizeElements.length){this._proportionallyResize()}if(!K.isEmptyObject(ak)){this._updatePrevProperties();this._trigger("resize",al,this.ui());this._applyChanges()}return false},_mouseStop:function(aj){this.resizing=false;var ai,ag,ah,am,ap,al,ao,ak=this.options,an=this;if(this._helper){ai=this._proportionallyResizeElements;ag=ai.length&&(/textarea/i).test(ai[0].nodeName);ah=ag&&this._hasScroll(ai[0],"left")?0:an.sizeDiff.height;am=ag?0:an.sizeDiff.width;ap={width:(an.helper.width()-am),height:(an.helper.height()-ah)};al=(parseFloat(an.element.css("left"))+(an.position.left-an.originalPosition.left))||null;ao=(parseFloat(an.element.css("top"))+(an.position.top-an.originalPosition.top))||null;if(!ak.animate){this.element.css(K.extend(ap,{top:ao,left:al}))}an.helper.height(an.size.height);an.helper.width(an.size.width);if(this._helper&&!ak.animate){this._proportionallyResize()}}K("body").css("cursor","auto");this._removeClass("ui-resizable-resizing");this._propagate("stop",aj);if(this._helper){this.helper.remove()}return false},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left};this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var ag={};if(this.position.top!==this.prevPosition.top){ag.top=this.position.top+"px"}if(this.position.left!==this.prevPosition.left){ag.left=this.position.left+"px"}if(this.size.width!==this.prevSize.width){ag.width=this.size.width+"px"}if(this.size.height!==this.prevSize.height){ag.height=this.size.height+"px"}this.helper.css(ag);return ag},_updateVirtualBoundaries:function(ai){var ak,aj,ah,am,ag,al=this.options;ag={minWidth:this._isNumber(al.minWidth)?al.minWidth:0,maxWidth:this._isNumber(al.maxWidth)?al.maxWidth:Infinity,minHeight:this._isNumber(al.minHeight)?al.minHeight:0,maxHeight:this._isNumber(al.maxHeight)?al.maxHeight:Infinity};if(this._aspectRatio||ai){ak=ag.minHeight*this.aspectRatio;ah=ag.minWidth/this.aspectRatio;aj=ag.maxHeight*this.aspectRatio;am=ag.maxWidth/this.aspectRatio;if(ak>ag.minWidth){ag.minWidth=ak}if(ah>ag.minHeight){ag.minHeight=ah}if(ajal.width),ap=this._isNumber(al.height)&&ai.minHeight&&(ai.minHeight>al.height),ah=this.originalPosition.left+this.originalSize.width,an=this.originalPosition.top+this.originalSize.height,ak=/sw|nw|w/.test(ao),ag=/nw|ne|n/.test(ao);if(aj){al.width=ai.minWidth}if(ap){al.height=ai.minHeight}if(aq){al.width=ai.maxWidth}if(am){al.height=ai.maxHeight}if(aj&&ak){al.left=ah-ai.minWidth}if(aq&&ak){al.left=ah-ai.maxWidth}if(ap&&ag){al.top=an-ai.minHeight}if(am&&ag){al.top=an-ai.maxHeight}if(!al.width&&!al.height&&!al.left&&al.top){al.top=null}else{if(!al.width&&!al.height&&!al.top&&al.left){al.left=null}}return al},_getPaddingPlusBorderDimensions:function(ai){var ah=0,aj=[],ak=[ai.css("borderTopWidth"),ai.css("borderRightWidth"),ai.css("borderBottomWidth"),ai.css("borderLeftWidth")],ag=[ai.css("paddingTop"),ai.css("paddingRight"),ai.css("paddingBottom"),ai.css("paddingLeft")];for(;ah<4;ah++){aj[ah]=(parseFloat(ak[ah])||0);aj[ah]+=(parseFloat(ag[ah])||0)}return{height:aj[0]+aj[2],width:aj[1]+aj[3]}},_proportionallyResize:function(){if(!this._proportionallyResizeElements.length){return}var ai,ah=0,ag=this.helper||this.element;for(;ah
");this._addClass(this.helper,this._helper);this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++ah.zIndex});this.helper.appendTo("body").disableSelection()}else{this.helper=this.element}},_change:{e:function(ah,ag){return{width:this.originalSize.width+ag}},w:function(ai,ag){var ah=this.originalSize,aj=this.originalPosition;return{left:aj.left+ag,width:ah.width-ag}},n:function(aj,ah,ag){var ai=this.originalSize,ak=this.originalPosition;return{top:ak.top+ag,height:ai.height-ag}},s:function(ai,ah,ag){return{height:this.originalSize.height+ag}},se:function(ai,ah,ag){return K.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[ai,ah,ag]))},sw:function(ai,ah,ag){return K.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[ai,ah,ag]))},ne:function(ai,ah,ag){return K.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[ai,ah,ag]))},nw:function(ai,ah,ag){return K.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[ai,ah,ag]))}},_propagate:function(ah,ag){K.ui.plugin.call(this,ah,[ag,this.ui()]);(ah!=="resize"&&this._trigger(ah,ag,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}}});K.ui.plugin.add("resizable","animate",{stop:function(aj){var ao=K(this).resizable("instance"),al=ao.options,ai=ao._proportionallyResizeElements,ag=ai.length&&(/textarea/i).test(ai[0].nodeName),ah=ag&&ao._hasScroll(ai[0],"left")?0:ao.sizeDiff.height,an=ag?0:ao.sizeDiff.width,ak={width:(ao.size.width-an),height:(ao.size.height-ah)},am=(parseFloat(ao.element.css("left"))+(ao.position.left-ao.originalPosition.left))||null,ap=(parseFloat(ao.element.css("top"))+(ao.position.top-ao.originalPosition.top))||null;ao.element.animate(K.extend(ak,ap&&am?{top:ap,left:am}:{}),{duration:al.animateDuration,easing:al.animateEasing,step:function(){var aq={width:parseFloat(ao.element.css("width")),height:parseFloat(ao.element.css("height")),top:parseFloat(ao.element.css("top")),left:parseFloat(ao.element.css("left"))};if(ai&&ai.length){K(ai[0]).css({width:aq.width,height:aq.height})}ao._updateCache(aq);ao._propagate("resize",aj)}})}});K.ui.plugin.add("resizable","containment",{start:function(){var ao,ai,aq,ag,an,aj,ar,ap=K(this).resizable("instance"),am=ap.options,al=ap.element,ah=am.containment,ak=(ah instanceof K)?ah.get(0):(/parent/.test(ah))?al.parent().get(0):ah;if(!ak){return}ap.containerElement=K(ak);if(/document/.test(ah)||ah===document){ap.containerOffset={left:0,top:0};ap.containerPosition={left:0,top:0};ap.parentData={element:K(document),left:0,top:0,width:K(document).width(),height:K(document).height()||document.body.parentNode.scrollHeight}}else{ao=K(ak);ai=[];K(["Top","Right","Left","Bottom"]).each(function(au,at){ai[au]=ap._num(ao.css("padding"+at))});ap.containerOffset=ao.offset();ap.containerPosition=ao.position();ap.containerSize={height:(ao.innerHeight()-ai[3]),width:(ao.innerWidth()-ai[1])};aq=ap.containerOffset;ag=ap.containerSize.height;an=ap.containerSize.width;aj=(ap._hasScroll(ak,"left")?ak.scrollWidth:an);ar=(ap._hasScroll(ak)?ak.scrollHeight:ag);ap.parentData={element:ak,left:aq.left,top:aq.top,width:aj,height:ar}}},resize:function(ah){var an,at,am,ak,ao=K(this).resizable("instance"),aj=ao.options,aq=ao.containerOffset,ap=ao.position,ar=ao._aspectRatio||ah.shiftKey,ag={top:0,left:0},ai=ao.containerElement,al=true;if(ai[0]!==document&&(/static/).test(ai.css("position"))){ag=aq}if(ap.left<(ao._helper?aq.left:0)){ao.size.width=ao.size.width+(ao._helper?(ao.position.left-aq.left):(ao.position.left-ag.left));if(ar){ao.size.height=ao.size.width/ao.aspectRatio;al=false}ao.position.left=aj.helper?aq.left:0}if(ap.top<(ao._helper?aq.top:0)){ao.size.height=ao.size.height+(ao._helper?(ao.position.top-aq.top):ao.position.top);if(ar){ao.size.width=ao.size.height*ao.aspectRatio;al=false}ao.position.top=ao._helper?aq.top:0}am=ao.containerElement.get(0)===ao.element.parent().get(0);ak=/relative|absolute/.test(ao.containerElement.css("position"));if(am&&ak){ao.offset.left=ao.parentData.left+ao.position.left;ao.offset.top=ao.parentData.top+ao.position.top}else{ao.offset.left=ao.element.offset().left;ao.offset.top=ao.element.offset().top}an=Math.abs(ao.sizeDiff.width+(ao._helper?ao.offset.left-ag.left:(ao.offset.left-aq.left)));at=Math.abs(ao.sizeDiff.height+(ao._helper?ao.offset.top-ag.top:(ao.offset.top-aq.top)));if(an+ao.size.width>=ao.parentData.width){ao.size.width=ao.parentData.width-an;if(ar){ao.size.height=ao.size.width/ao.aspectRatio;al=false}}if(at+ao.size.height>=ao.parentData.height){ao.size.height=ao.parentData.height-at;if(ar){ao.size.width=ao.size.height*ao.aspectRatio;al=false}}if(!al){ao.position.left=ao.prevPosition.left;ao.position.top=ao.prevPosition.top;ao.size.width=ao.prevSize.width;ao.size.height=ao.prevSize.height}},stop:function(){var al=K(this).resizable("instance"),ah=al.options,am=al.containerOffset,ag=al.containerPosition,ai=al.containerElement,aj=K(al.helper),ao=aj.offset(),an=aj.outerWidth()-al.sizeDiff.width,ak=aj.outerHeight()-al.sizeDiff.height;if(al._helper&&!ah.animate&&(/relative/).test(ai.css("position"))){K(this).css({left:ao.left-ag.left-am.left,width:an,height:ak})}if(al._helper&&!ah.animate&&(/static/).test(ai.css("position"))){K(this).css({left:ao.left-ag.left-am.left,width:an,height:ak})}}});K.ui.plugin.add("resizable","alsoResize",{start:function(){var ag=K(this).resizable("instance"),ah=ag.options;K(ah.alsoResize).each(function(){var ai=K(this);ai.data("ui-resizable-alsoresize",{width:parseFloat(ai.width()),height:parseFloat(ai.height()),left:parseFloat(ai.css("left")),top:parseFloat(ai.css("top"))})})},resize:function(ah,aj){var ag=K(this).resizable("instance"),ak=ag.options,ai=ag.originalSize,am=ag.originalPosition,al={height:(ag.size.height-ai.height)||0,width:(ag.size.width-ai.width)||0,top:(ag.position.top-am.top)||0,left:(ag.position.left-am.left)||0};K(ak.alsoResize).each(function(){var ap=K(this),aq=K(this).data("ui-resizable-alsoresize"),ao={},an=ap.parents(aj.originalElement[0]).length?["width","height"]:["width","height","top","left"];K.each(an,function(ar,au){var at=(aq[au]||0)+(al[au]||0);if(at&&at>=0){ao[au]=at||null}});ap.css(ao)})},stop:function(){K(this).removeData("ui-resizable-alsoresize")}});K.ui.plugin.add("resizable","ghost",{start:function(){var ah=K(this).resizable("instance"),ag=ah.size;ah.ghost=ah.originalElement.clone();ah.ghost.css({opacity:0.25,display:"block",position:"relative",height:ag.height,width:ag.width,margin:0,left:0,top:0});ah._addClass(ah.ghost,"ui-resizable-ghost");if(K.uiBackCompat!==false&&typeof ah.options.ghost==="string"){ah.ghost.addClass(this.options.ghost)}ah.ghost.appendTo(ah.helper)},resize:function(){var ag=K(this).resizable("instance");if(ag.ghost){ag.ghost.css({position:"relative",height:ag.size.height,width:ag.size.width})}},stop:function(){var ag=K(this).resizable("instance");if(ag.ghost&&ag.helper){ag.helper.get(0).removeChild(ag.ghost.get(0))}}});K.ui.plugin.add("resizable","grid",{resize:function(){var aj,ao=K(this).resizable("instance"),at=ao.options,am=ao.size,an=ao.originalSize,ap=ao.originalPosition,ay=ao.axis,ag=typeof at.grid==="number"?[at.grid,at.grid]:at.grid,aw=(ag[0]||1),av=(ag[1]||1),al=Math.round((am.width-an.width)/aw)*aw,ak=Math.round((am.height-an.height)/av)*av,aq=an.width+al,au=an.height+ak,ai=at.maxWidth&&(at.maxWidthaq),ah=at.minHeight&&(at.minHeight>au);at.grid=ag;if(ax){aq+=aw}if(ah){au+=av}if(ai){aq-=aw}if(ar){au-=av}if(/^(se|s|e)$/.test(ay)){ao.size.width=aq;ao.size.height=au}else{if(/^(ne)$/.test(ay)){ao.size.width=aq;ao.size.height=au;ao.position.top=ap.top-ak}else{if(/^(sw)$/.test(ay)){ao.size.width=aq;ao.size.height=au;ao.position.left=ap.left-al}else{if(au-av<=0||aq-aw<=0){aj=ao._getPaddingPlusBorderDimensions(this)}if(au-av>0){ao.size.height=au;ao.position.top=ap.top-ak}else{au=av-aj.height;ao.size.height=au;ao.position.top=ap.top+an.height-au}if(aq-aw>0){ao.size.width=aq;ao.position.left=ap.left-al}else{aq=aw-aj.width;ao.size.width=aq;ao.position.left=ap.left+an.width-aq}}}}}});var U=K.ui.resizable; /*! * jQuery UI Selectable 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var a=K.widget("ui.selectable",K.ui.mouse,{version:"1.12.1",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 ag=this;this._addClass("ui-selectable");this.dragged=false;this.refresh=function(){ag.elementPos=K(ag.element[0]).offset();ag.selectees=K(ag.options.filter,ag.element[0]);ag._addClass(ag.selectees,"ui-selectee");ag.selectees.each(function(){var ai=K(this),ah=ai.offset(),aj={left:ah.left-ag.elementPos.left,top:ah.top-ag.elementPos.top};K.data(this,"selectable-item",{element:this,$element:ai,left:aj.left,top:aj.top,right:aj.left+ai.outerWidth(),bottom:aj.top+ai.outerHeight(),startselected:false,selected:ai.hasClass("ui-selected"),selecting:ai.hasClass("ui-selecting"),unselecting:ai.hasClass("ui-unselecting")})})};this.refresh();this._mouseInit();this.helper=K("
");this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item");this._mouseDestroy()},_mouseStart:function(ai){var ah=this,ag=this.options;this.opos=[ai.pageX,ai.pageY];this.elementPos=K(this.element[0]).offset();if(this.options.disabled){return}this.selectees=K(ag.filter,this.element[0]);this._trigger("start",ai);K(ag.appendTo).append(this.helper);this.helper.css({left:ai.pageX,top:ai.pageY,width:0,height:0});if(ag.autoRefresh){this.refresh()}this.selectees.filter(".ui-selected").each(function(){var aj=K.data(this,"selectable-item");aj.startselected=true;if(!ai.metaKey&&!ai.ctrlKey){ah._removeClass(aj.$element,"ui-selected");aj.selected=false;ah._addClass(aj.$element,"ui-unselecting");aj.unselecting=true;ah._trigger("unselecting",ai,{unselecting:aj.element})}});K(ai.target).parents().addBack().each(function(){var aj,ak=K.data(this,"selectable-item");if(ak){aj=(!ai.metaKey&&!ai.ctrlKey)||!ak.$element.hasClass("ui-selected");ah._removeClass(ak.$element,aj?"ui-unselecting":"ui-selected")._addClass(ak.$element,aj?"ui-selecting":"ui-unselecting");ak.unselecting=!aj;ak.selecting=aj;ak.selected=aj;if(aj){ah._trigger("selecting",ai,{selecting:ak.element})}else{ah._trigger("unselecting",ai,{unselecting:ak.element})}return false}})},_mouseDrag:function(an){this.dragged=true;if(this.options.disabled){return}var ak,am=this,ai=this.options,ah=this.opos[0],al=this.opos[1],ag=an.pageX,aj=an.pageY;if(ah>ag){ak=ag;ag=ah;ah=ak}if(al>aj){ak=aj;aj=al;al=ak}this.helper.css({left:ah,top:al,width:ag-ah,height:aj-al});this.selectees.each(function(){var ao=K.data(this,"selectable-item"),ap=false,aq={};if(!ao||ao.element===am.element[0]){return}aq.left=ao.left+am.elementPos.left;aq.right=ao.right+am.elementPos.left;aq.top=ao.top+am.elementPos.top;aq.bottom=ao.bottom+am.elementPos.top;if(ai.tolerance==="touch"){ap=(!(aq.left>ag||aq.rightaj||aq.bottomah&&aq.rightal&&aq.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(ah,ag,ai){return(ah>=ag)&&(ah<(ag+ai))},_isFloating:function(ag){return(/left|right/).test(ag.css("float"))||(/inline|table-cell/).test(ag.css("display"))},_create:function(){this.containerCache={};this._addClass("ui-sortable");this.refresh();this.offset=this.element.offset();this._mouseInit();this._setHandleClassName();this.ready=true},_setOption:function(ag,ah){this._super(ag,ah);if(ag==="handle"){this._setHandleClassName()}},_setHandleClassName:function(){var ag=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle");K.each(this.items,function(){ag._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var ag=this.items.length-1;ag>=0;ag--){this.items[ag].item.removeData(this.widgetName+"-item")}return this},_mouseCapture:function(ai,aj){var ag=null,ak=false,ah=this;if(this.reverting){return false}if(this.options.disabled||this.options.type==="static"){return false}this._refreshItems(ai);K(ai.target).parents().each(function(){if(K.data(this,ah.widgetName+"-item")===ah){ag=K(this);return false}});if(K.data(ai.target,ah.widgetName+"-item")===ah){ag=K(ai.target)}if(!ag){return false}if(this.options.handle&&!aj){K(this.options.handle,ag).find("*").addBack().each(function(){if(this===ai.target){ak=true}});if(!ak){return false}}this.currentItem=ag;this._removeCurrentsFromItems();return true},_mouseStart:function(aj,ak,ah){var ai,ag,al=this.options;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(aj);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};K.extend(this.offset,{click:{left:aj.pageX-this.offset.left,top:aj.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(aj);this.originalPageX=aj.pageX;this.originalPageY=aj.pageY;(al.cursorAt&&this._adjustOffsetFromHelper(al.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(al.containment){this._setContainment()}if(al.cursor&&al.cursor!=="auto"){ag=this.document.find("body");this.storedCursor=ag.css("cursor");ag.css("cursor",al.cursor);this.storedStylesheet=K("").appendTo(ag)}if(al.opacity){if(this.helper.css("opacity")){this._storedOpacity=this.helper.css("opacity")}this.helper.css("opacity",al.opacity)}if(al.zIndex){if(this.helper.css("zIndex")){this._storedZIndex=this.helper.css("zIndex")}this.helper.css("zIndex",al.zIndex)}if(this.scrollParent[0]!==this.document[0]&&this.scrollParent[0].tagName!=="HTML"){this.overflowOffset=this.scrollParent.offset()}this._trigger("start",aj,this._uiHash());if(!this._preserveHelperProportions){this._cacheHelperProportions()}if(!ah){for(ai=this.containers.length-1;ai>=0;ai--){this.containers[ai]._trigger("activate",aj,this._uiHash(this))}}if(K.ui.ddmanager){K.ui.ddmanager.current=this}if(K.ui.ddmanager&&!al.dropBehaviour){K.ui.ddmanager.prepareOffsets(this,aj)}this.dragging=true;this._addClass(this.helper,"ui-sortable-helper");this._mouseDrag(aj);return true},_mouseDrag:function(ak){var ai,aj,ah,am,al=this.options,ag=false;this.position=this._generatePosition(ak);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs}if(this.options.scroll){if(this.scrollParent[0]!==this.document[0]&&this.scrollParent[0].tagName!=="HTML"){if((this.overflowOffset.top+this.scrollParent[0].offsetHeight)-ak.pageY=0;ai--){aj=this.items[ai];ah=aj.item[0];am=this._intersectsWithPointer(aj);if(!am){continue}if(aj.instance!==this.currentContainer){continue}if(ah!==this.currentItem[0]&&this.placeholder[am===1?"next":"prev"]()[0]!==ah&&!K.contains(this.placeholder[0],ah)&&(this.options.type==="semi-dynamic"?!K.contains(this.element[0],ah):true)){this.direction=am===1?"down":"up";if(this.options.tolerance==="pointer"||this._intersectsWithSides(aj)){this._rearrange(ak,aj)}else{break}this._trigger("change",ak,this._uiHash());break}}this._contactContainers(ak);if(K.ui.ddmanager){K.ui.ddmanager.drag(this,ak)}this._trigger("sort",ak,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(ai,ak){if(!ai){return}if(K.ui.ddmanager&&!this.options.dropBehaviour){K.ui.ddmanager.drop(this,ai)}if(this.options.revert){var ah=this,al=this.placeholder.offset(),ag=this.options.axis,aj={};if(!ag||ag==="x"){aj.left=al.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)}if(!ag||ag==="y"){aj.top=al.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)}this.reverting=true;K(this.helper).animate(aj,parseInt(this.options.revert,10)||500,function(){ah._clear(ai)})}else{this._clear(ai,ak)}return false},cancel:function(){if(this.dragging){this._mouseUp(new K.Event("mouseup",{target:null}));if(this.options.helper==="original"){this.currentItem.css(this._storedCSS);this._removeClass(this.currentItem,"ui-sortable-helper")}else{this.currentItem.show()}for(var ag=this.containers.length-1;ag>=0;ag--){this.containers[ag]._trigger("deactivate",null,this._uiHash(this));if(this.containers[ag].containerCache.over){this.containers[ag]._trigger("out",null,this._uiHash(this));this.containers[ag].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()}K.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});if(this.domPosition.prev){K(this.domPosition.prev).after(this.currentItem)}else{K(this.domPosition.parent).prepend(this.currentItem)}}return this},serialize:function(ai){var ag=this._getItemsAsjQuery(ai&&ai.connected),ah=[];ai=ai||{};K(ag).each(function(){var aj=(K(ai.item||this).attr(ai.attribute||"id")||"").match(ai.expression||(/(.+)[\-=_](.+)/));if(aj){ah.push((ai.key||aj[1]+"[]")+"="+(ai.key&&ai.expression?aj[1]:aj[2]))}});if(!ah.length&&ai.key){ah.push(ai.key+"=")}return ah.join("&")},toArray:function(ai){var ag=this._getItemsAsjQuery(ai&&ai.connected),ah=[];ai=ai||{};ag.each(function(){ah.push(K(ai.item||this).attr(ai.attribute||"id")||"")});return ah},_intersectsWith:function(ar){var ai=this.positionAbs.left,ah=ai+this.helperProportions.width,ap=this.positionAbs.top,ao=ap+this.helperProportions.height,aj=ar.left,ag=aj+ar.width,at=ar.top,an=at+ar.height,au=this.offset.click.top,am=this.offset.click.left,al=(this.options.axis==="x")||((ap+au)>at&&(ap+au)aj&&(ai+am)ar[this.floating?"width":"height"])){return ak}else{return(aj0?"down":"up")},_getDragHorizontalDirection:function(){var ag=this.positionAbs.left-this.lastPositionAbs.left;return ag!==0&&(ag>0?"right":"left")},refresh:function(ag){this._refreshItems(ag);this._setHandleClassName();this.refreshPositions();return this},_connectWith:function(){var ag=this.options;return ag.connectWith.constructor===String?[ag.connectWith]:ag.connectWith},_getItemsAsjQuery:function(ag){var ai,ah,an,ak,al=[],aj=[],am=this._connectWith();if(am&&ag){for(ai=am.length-1;ai>=0;ai--){an=K(am[ai],this.document[0]);for(ah=an.length-1;ah>=0;ah--){ak=K.data(an[ah],this.widgetFullName);if(ak&&ak!==this&&!ak.options.disabled){aj.push([K.isFunction(ak.options.items)?ak.options.items.call(ak.element):K(ak.options.items,ak.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),ak])}}}}aj.push([K.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):K(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);function ao(){al.push(this)}for(ai=aj.length-1;ai>=0;ai--){aj[ai][0].each(ao)}return K(al)},_removeCurrentsFromItems:function(){var ag=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=K.grep(this.items,function(ai){for(var ah=0;ah=0;ak--){ap=K(an[ak],this.document[0]);for(ai=ap.length-1;ai>=0;ai--){al=K.data(ap[ai],this.widgetFullName);if(al&&al!==this&&!al.options.disabled){aj.push([K.isFunction(al.options.items)?al.options.items.call(al.element[0],ag,{item:this.currentItem}):K(al.options.items,al.element),al]);this.containers.push(al)}}}}for(ak=aj.length-1;ak>=0;ak--){ao=aj[ak][1];ah=aj[ak][0];for(ai=0,aq=ah.length;ai=0;ai--){aj=this.items[ai];if(aj.instance!==this.currentContainer&&this.currentContainer&&aj.item[0]!==this.currentItem[0]){continue}ah=this.options.toleranceElement?K(this.options.toleranceElement,aj.item):aj.item;if(!ag){aj.width=ah.outerWidth();aj.height=ah.outerHeight()}ak=ah.offset();aj.left=ak.left;aj.top=ak.top}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(ai=this.containers.length-1;ai>=0;ai--){ak=this.containers[ai].element.offset();this.containers[ai].containerCache.left=ak.left;this.containers[ai].containerCache.top=ak.top;this.containers[ai].containerCache.width=this.containers[ai].element.outerWidth();this.containers[ai].containerCache.height=this.containers[ai].element.outerHeight()}}return this},_createPlaceholder:function(ah){ah=ah||this;var ag,ai=ah.options;if(!ai.placeholder||ai.placeholder.constructor===String){ag=ai.placeholder;ai.placeholder={element:function(){var ak=ah.currentItem[0].nodeName.toLowerCase(),aj=K("<"+ak+">",ah.document[0]);ah._addClass(aj,"ui-sortable-placeholder",ag||ah.currentItem[0].className)._removeClass(aj,"ui-sortable-helper");if(ak==="tbody"){ah._createTrPlaceholder(ah.currentItem.find("tr").eq(0),K("",ah.document[0]).appendTo(aj))}else{if(ak==="tr"){ah._createTrPlaceholder(ah.currentItem,aj)}else{if(ak==="img"){aj.attr("src",ah.currentItem.attr("src"))}}}if(!ag){aj.css("visibility","hidden")}return aj},update:function(aj,ak){if(ag&&!ai.forcePlaceholderSize){return}if(!ak.height()){ak.height(ah.currentItem.innerHeight()-parseInt(ah.currentItem.css("paddingTop")||0,10)-parseInt(ah.currentItem.css("paddingBottom")||0,10))}if(!ak.width()){ak.width(ah.currentItem.innerWidth()-parseInt(ah.currentItem.css("paddingLeft")||0,10)-parseInt(ah.currentItem.css("paddingRight")||0,10))}}}}ah.placeholder=K(ai.placeholder.element.call(ah.element,ah.currentItem));ah.currentItem.after(ah.placeholder);ai.placeholder.update(ah,ah.placeholder)},_createTrPlaceholder:function(ah,ag){var ai=this;ah.children().each(function(){K(" ",ai.document[0]).attr("colspan",K(this).attr("colspan")||1).appendTo(ag)})},_contactContainers:function(ag){var al,aj,ap,am,an,ar,at,ak,ao,ai,ah=null,aq=null;for(al=this.containers.length-1;al>=0;al--){if(K.contains(this.currentItem[0],this.containers[al].element[0])){continue}if(this._intersectsWith(this.containers[al].containerCache)){if(ah&&K.contains(this.containers[al].element[0],ah.element[0])){continue}ah=this.containers[al];aq=al}else{if(this.containers[al].containerCache.over){this.containers[al]._trigger("out",ag,this._uiHash(this));this.containers[al].containerCache.over=0}}}if(!ah){return}if(this.containers.length===1){if(!this.containers[aq].containerCache.over){this.containers[aq]._trigger("over",ag,this._uiHash(this));this.containers[aq].containerCache.over=1}}else{ap=10000;am=null;ao=ah.floating||this._isFloating(this.currentItem);an=ao?"left":"top";ar=ao?"width":"height";ai=ao?"pageX":"pageY";for(aj=this.items.length-1;aj>=0;aj--){if(!K.contains(this.containers[aq].element[0],this.items[aj].item[0])){continue}if(this.items[aj].item[0]===this.currentItem[0]){continue}at=this.items[aj].item.offset()[an];ak=false;if(ag[ai]-at>this.items[aj][ar]/2){ak=true}if(Math.abs(ag[ai]-at)this.containment[2]){ai=this.containment[2]+this.offset.click.left}if(aj.pageY-this.offset.click.top>this.containment[3]){ah=this.containment[3]+this.offset.click.top}}if(am.grid){al=this.originalPageY+Math.round((ah-this.originalPageY)/am.grid[1])*am.grid[1];ah=this.containment?((al-this.offset.click.top>=this.containment[1]&&al-this.offset.click.top<=this.containment[3])?al:((al-this.offset.click.top>=this.containment[1])?al-am.grid[1]:al+am.grid[1])):al;ak=this.originalPageX+Math.round((ai-this.originalPageX)/am.grid[0])*am.grid[0];ai=this.containment?((ak-this.offset.click.left>=this.containment[0]&&ak-this.offset.click.left<=this.containment[2])?ak:((ak-this.offset.click.left>=this.containment[0])?ak-am.grid[0]:ak+am.grid[0])):ak}}return{top:(ah-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+((this.cssPosition==="fixed"?-this.scrollParent.scrollTop():(an?0:ag.scrollTop())))),left:(ai-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+((this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():an?0:ag.scrollLeft())))}},_rearrange:function(ak,aj,ah,ai){ah?ah[0].appendChild(this.placeholder[0]):aj.item[0].parentNode.insertBefore(this.placeholder[0],(this.direction==="down"?aj.item[0]:aj.item[0].nextSibling));this.counter=this.counter?++this.counter:1;var ag=this.counter;this._delay(function(){if(ag===this.counter){this.refreshPositions(!ai)}})},_clear:function(ah,aj){this.reverting=false;var ag,ak=[];if(!this._noFinalSort&&this.currentItem.parent().length){this.placeholder.before(this.currentItem)}this._noFinalSort=null;if(this.helper[0]===this.currentItem[0]){for(ag in this._storedCSS){if(this._storedCSS[ag]==="auto"||this._storedCSS[ag]==="static"){this._storedCSS[ag]=""}}this.currentItem.css(this._storedCSS);this._removeClass(this.currentItem,"ui-sortable-helper")}else{this.currentItem.show()}if(this.fromOutside&&!aj){ak.push(function(al){this._trigger("receive",al,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])&&!aj){ak.push(function(al){this._trigger("update",al,this._uiHash())})}if(this!==this.currentContainer){if(!aj){ak.push(function(al){this._trigger("remove",al,this._uiHash())});ak.push((function(al){return function(am){al._trigger("receive",am,this._uiHash(this))}}).call(this,this.currentContainer));ak.push((function(al){return function(am){al._trigger("update",am,this._uiHash(this))}}).call(this,this.currentContainer))}}function ai(an,al,am){return function(ao){am._trigger(an,ao,al._uiHash(al))}}for(ag=this.containers.length-1;ag>=0;ag--){if(!aj){ak.push(ai("deactivate",this,this.containers[ag]))}if(this.containers[ag].containerCache.over){ak.push(ai("out",this,this.containers[ag]));this.containers[ag].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(!aj){this._trigger("beforeStop",ah,this._uiHash())}this.placeholder[0].parentNode.removeChild(this.placeholder[0]);if(!this.cancelHelperRemoval){if(this.helper[0]!==this.currentItem[0]){this.helper.remove()}this.helper=null}if(!aj){for(ag=0;ag
"))}K.extend(ac.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(ag){F(this._defaults,ag||{});return this},_attachDatepicker:function(aj,ag){var ak,ai,ah;ak=aj.nodeName.toLowerCase();ai=(ak==="div"||ak==="span");if(!aj.id){this.uuid+=1;aj.id="dp"+this.uuid}ah=this._newInst(K(aj),ai);ah.settings=K.extend({},ag||{});if(ak==="input"){this._connectDatepicker(aj,ah)}else{if(ai){this._inlineDatepicker(aj,ah)}}},_newInst:function(ah,ag){var ai=ah[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:ai,input:ah,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:ag,dpDiv:(!ag?this.dpDiv:l(K("
")))}},_connectDatepicker:function(ai,ah){var ag=K(ai);ah.append=K([]);ah.trigger=K([]);if(ag.hasClass(this.markerClassName)){return}this._attachments(ag,ah);ag.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp);this._autoSize(ah);K.data(ai,"datepicker",ah);if(ah.settings.disabled){this._disableDatepicker(ai)}},_attachments:function(ai,al){var ah,ak,ag,am=this._get(al,"appendText"),aj=this._get(al,"isRTL");if(al.append){al.append.remove()}if(am){al.append=K(""+am+"");ai[aj?"before":"after"](al.append)}ai.off("focus",this._showDatepicker);if(al.trigger){al.trigger.remove()}ah=this._get(al,"showOn");if(ah==="focus"||ah==="both"){ai.on("focus",this._showDatepicker)}if(ah==="button"||ah==="both"){ak=this._get(al,"buttonText");ag=this._get(al,"buttonImage");al.trigger=K(this._get(al,"buttonImageOnly")?K("").addClass(this._triggerClass).attr({src:ag,alt:ak,title:ak}):K("").addClass(this._triggerClass).html(!ag?ak:K("").attr({src:ag,alt:ak,title:ak})));ai[aj?"before":"after"](al.trigger);al.trigger.on("click",function(){if(K.datepicker._datepickerShowing&&K.datepicker._lastInput===ai[0]){K.datepicker._hideDatepicker()}else{if(K.datepicker._datepickerShowing&&K.datepicker._lastInput!==ai[0]){K.datepicker._hideDatepicker();K.datepicker._showDatepicker(ai[0])}else{K.datepicker._showDatepicker(ai[0])}}return false})}},_autoSize:function(am){if(this._get(am,"autoSize")&&!am.inline){var aj,ah,ai,al,ak=new Date(2009,12-1,20),ag=this._get(am,"dateFormat");if(ag.match(/[DM]/)){aj=function(an){ah=0;ai=0;for(al=0;alah){ah=an[al].length;ai=al}}return ai};ak.setMonth(aj(this._get(am,(ag.match(/MM/)?"monthNames":"monthNamesShort"))));ak.setDate(aj(this._get(am,(ag.match(/DD/)?"dayNames":"dayNamesShort")))+20-ak.getDay())}am.input.attr("size",this._formatDate(am,ak).length)}},_inlineDatepicker:function(ah,ag){var ai=K(ah);if(ai.hasClass(this.markerClassName)){return}ai.addClass(this.markerClassName).append(ag.dpDiv);K.data(ah,"datepicker",ag);this._setDate(ag,this._getDefaultDate(ag),true);this._updateDatepicker(ag);this._updateAlternate(ag);if(ag.settings.disabled){this._disableDatepicker(ah)}ag.dpDiv.css("display","block")},_dialogDatepicker:function(an,ah,al,ai,am){var ag,aq,ak,ap,ao,aj=this._dialogInst;if(!aj){this.uuid+=1;ag="dp"+this.uuid;this._dialogInput=K("");this._dialogInput.on("keydown",this._doKeyDown);K("body").append(this._dialogInput);aj=this._dialogInst=this._newInst(this._dialogInput,false);aj.settings={};K.data(this._dialogInput[0],"datepicker",aj)}F(aj.settings,ai||{});ah=(ah&&ah.constructor===Date?this._formatDate(aj,ah):ah);this._dialogInput.val(ah);this._pos=(am?(am.length?am:[am.pageX,am.pageY]):null);if(!this._pos){aq=document.documentElement.clientWidth;ak=document.documentElement.clientHeight;ap=document.documentElement.scrollLeft||document.body.scrollLeft;ao=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[(aq/2)-100+ap,(ak/2)-150+ao]}this._dialogInput.css("left",(this._pos[0]+20)+"px").css("top",this._pos[1]+"px");aj.settings.onSelect=al;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);if(K.blockUI){K.blockUI(this.dpDiv)}K.data(this._dialogInput[0],"datepicker",aj);return this},_destroyDatepicker:function(ai){var aj,ag=K(ai),ah=K.data(ai,"datepicker");if(!ag.hasClass(this.markerClassName)){return}aj=ai.nodeName.toLowerCase();K.removeData(ai,"datepicker");if(aj==="input"){ah.append.remove();ah.trigger.remove();ag.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)}else{if(aj==="div"||aj==="span"){ag.removeClass(this.markerClassName).empty()}}if(q===ah){q=null}},_enableDatepicker:function(aj){var ak,ai,ag=K(aj),ah=K.data(aj,"datepicker");if(!ag.hasClass(this.markerClassName)){return}ak=aj.nodeName.toLowerCase();if(ak==="input"){aj.disabled=false;ah.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else{if(ak==="div"||ak==="span"){ai=ag.children("."+this._inlineClass);ai.children().removeClass("ui-state-disabled");ai.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",false)}}this._disabledInputs=K.map(this._disabledInputs,function(al){return(al===aj?null:al)})},_disableDatepicker:function(aj){var ak,ai,ag=K(aj),ah=K.data(aj,"datepicker");if(!ag.hasClass(this.markerClassName)){return}ak=aj.nodeName.toLowerCase();if(ak==="input"){aj.disabled=true;ah.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else{if(ak==="div"||ak==="span"){ai=ag.children("."+this._inlineClass);ai.children().addClass("ui-state-disabled");ai.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",true)}}this._disabledInputs=K.map(this._disabledInputs,function(al){return(al===aj?null:al)});this._disabledInputs[this._disabledInputs.length]=aj},_isDisabledDatepicker:function(ah){if(!ah){return false}for(var ag=0;ag-1)}},_doKeyUp:function(ai){var ag,aj=K.datepicker._getInst(ai.target);if(aj.input.val()!==aj.lastVal){try{ag=K.datepicker.parseDate(K.datepicker._get(aj,"dateFormat"),(aj.input?aj.input.val():null),K.datepicker._getFormatConfig(aj));if(ag){K.datepicker._setDateFromField(aj);K.datepicker._updateAlternate(aj);K.datepicker._updateDatepicker(aj)}}catch(ah){}}return true},_showDatepicker:function(ah){ah=ah.target||ah;if(ah.nodeName.toLowerCase()!=="input"){ah=K("input",ah.parentNode)[0]}if(K.datepicker._isDisabledDatepicker(ah)||K.datepicker._lastInput===ah){return}var aj,an,ai,al,am,ag,ak;aj=K.datepicker._getInst(ah);if(K.datepicker._curInst&&K.datepicker._curInst!==aj){K.datepicker._curInst.dpDiv.stop(true,true);if(aj&&K.datepicker._datepickerShowing){K.datepicker._hideDatepicker(K.datepicker._curInst.input[0])}}an=K.datepicker._get(aj,"beforeShow");ai=an?an.apply(ah,[ah,aj]):{};if(ai===false){return}F(aj.settings,ai);aj.lastVal=null;K.datepicker._lastInput=ah;K.datepicker._setDateFromField(aj);if(K.datepicker._inDialog){ah.value=""}if(!K.datepicker._pos){K.datepicker._pos=K.datepicker._findPos(ah);K.datepicker._pos[1]+=ah.offsetHeight}al=false;K(ah).parents().each(function(){al|=K(this).css("position")==="fixed";return !al});am={left:K.datepicker._pos[0],top:K.datepicker._pos[1]};K.datepicker._pos=null;aj.dpDiv.empty();aj.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});K.datepicker._updateDatepicker(aj);am=K.datepicker._checkOffset(aj,am,al);aj.dpDiv.css({position:(K.datepicker._inDialog&&K.blockUI?"static":(al?"fixed":"absolute")),display:"none",left:am.left+"px",top:am.top+"px"});if(!aj.inline){ag=K.datepicker._get(aj,"showAnim");ak=K.datepicker._get(aj,"duration");aj.dpDiv.css("z-index",y(K(ah))+1);K.datepicker._datepickerShowing=true;if(K.effects&&K.effects.effect[ag]){aj.dpDiv.show(ag,K.datepicker._get(aj,"showOptions"),ak)}else{aj.dpDiv[ag||"show"](ag?ak:null)}if(K.datepicker._shouldFocusInput(aj)){aj.input.trigger("focus")}K.datepicker._curInst=aj}},_updateDatepicker:function(aj){this.maxRows=4;q=aj;aj.dpDiv.empty().append(this._generateHTML(aj));this._attachHandlers(aj);var al,ag=this._getNumberOfMonths(aj),ak=ag[1],ai=17,ah=aj.dpDiv.find("."+this._dayOverClass+" a");if(ah.length>0){v.apply(ah.get(0))}aj.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");if(ak>1){aj.dpDiv.addClass("ui-datepicker-multi-"+ak).css("width",(ai*ak)+"em")}aj.dpDiv[(ag[0]!==1||ag[1]!==1?"add":"remove")+"Class"]("ui-datepicker-multi");aj.dpDiv[(this._get(aj,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");if(aj===K.datepicker._curInst&&K.datepicker._datepickerShowing&&K.datepicker._shouldFocusInput(aj)){aj.input.trigger("focus")}if(aj.yearshtml){al=aj.yearshtml;setTimeout(function(){if(al===aj.yearshtml&&aj.yearshtml){aj.dpDiv.find("select.ui-datepicker-year:first").replaceWith(aj.yearshtml)}al=aj.yearshtml=null},0)}},_shouldFocusInput:function(ag){return ag.input&&ag.input.is(":visible")&&!ag.input.is(":disabled")&&!ag.input.is(":focus")},_checkOffset:function(al,aj,ai){var ak=al.dpDiv.outerWidth(),ao=al.dpDiv.outerHeight(),an=al.input?al.input.outerWidth():0,ag=al.input?al.input.outerHeight():0,am=document.documentElement.clientWidth+(ai?0:K(document).scrollLeft()),ah=document.documentElement.clientHeight+(ai?0:K(document).scrollTop());aj.left-=(this._get(al,"isRTL")?(ak-an):0);aj.left-=(ai&&aj.left===al.input.offset().left)?K(document).scrollLeft():0;aj.top-=(ai&&aj.top===(al.input.offset().top+ag))?K(document).scrollTop():0;aj.left-=Math.min(aj.left,(aj.left+ak>am&&am>ak)?Math.abs(aj.left+ak-am):0);aj.top-=Math.min(aj.top,(aj.top+ao>ah&&ah>ao)?Math.abs(ao+ag):0);return aj},_findPos:function(aj){var ag,ai=this._getInst(aj),ah=this._get(ai,"isRTL");while(aj&&(aj.type==="hidden"||aj.nodeType!==1||K.expr.filters.hidden(aj))){aj=aj[ah?"previousSibling":"nextSibling"]}ag=K(aj).offset();return[ag.left,ag.top]},_hideDatepicker:function(ai){var ah,al,ak,ag,aj=this._curInst;if(!aj||(ai&&aj!==K.data(ai,"datepicker"))){return}if(this._datepickerShowing){ah=this._get(aj,"showAnim");al=this._get(aj,"duration");ak=function(){K.datepicker._tidyDialog(aj)};if(K.effects&&(K.effects.effect[ah]||K.effects[ah])){aj.dpDiv.hide(ah,K.datepicker._get(aj,"showOptions"),al,ak)}else{aj.dpDiv[(ah==="slideDown"?"slideUp":(ah==="fadeIn"?"fadeOut":"hide"))]((ah?al:null),ak)}if(!ah){ak()}this._datepickerShowing=false;ag=this._get(aj,"onClose");if(ag){ag.apply((aj.input?aj.input[0]:null),[(aj.input?aj.input.val():""),aj])}this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(K.blockUI){K.unblockUI();K("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(ag){ag.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(ah){if(!K.datepicker._curInst){return}var ag=K(ah.target),ai=K.datepicker._getInst(ag[0]);if(((ag[0].id!==K.datepicker._mainDivId&&ag.parents("#"+K.datepicker._mainDivId).length===0&&!ag.hasClass(K.datepicker.markerClassName)&&!ag.closest("."+K.datepicker._triggerClass).length&&K.datepicker._datepickerShowing&&!(K.datepicker._inDialog&&K.blockUI)))||(ag.hasClass(K.datepicker.markerClassName)&&K.datepicker._curInst!==ai)){K.datepicker._hideDatepicker()}},_adjustDate:function(ak,aj,ai){var ah=K(ak),ag=this._getInst(ah[0]);if(this._isDisabledDatepicker(ah[0])){return}this._adjustInstDate(ag,aj+(ai==="M"?this._get(ag,"showCurrentAtPos"):0),ai);this._updateDatepicker(ag)},_gotoToday:function(aj){var ag,ai=K(aj),ah=this._getInst(ai[0]);if(this._get(ah,"gotoCurrent")&&ah.currentDay){ah.selectedDay=ah.currentDay;ah.drawMonth=ah.selectedMonth=ah.currentMonth;ah.drawYear=ah.selectedYear=ah.currentYear}else{ag=new Date();ah.selectedDay=ag.getDate();ah.drawMonth=ah.selectedMonth=ag.getMonth();ah.drawYear=ah.selectedYear=ag.getFullYear()}this._notifyChange(ah);this._adjustDate(ai)},_selectMonthYear:function(ak,ag,aj){var ai=K(ak),ah=this._getInst(ai[0]);ah["selected"+(aj==="M"?"Month":"Year")]=ah["draw"+(aj==="M"?"Month":"Year")]=parseInt(ag.options[ag.selectedIndex].value,10);this._notifyChange(ah);this._adjustDate(ai)},_selectDay:function(al,aj,ag,ak){var ah,ai=K(al);if(K(ak).hasClass(this._unselectableClass)||this._isDisabledDatepicker(ai[0])){return}ah=this._getInst(ai[0]);ah.selectedDay=ah.currentDay=K("a",ak).html();ah.selectedMonth=ah.currentMonth=aj;ah.selectedYear=ah.currentYear=ag;this._selectDate(al,this._formatDate(ah,ah.currentDay,ah.currentMonth,ah.currentYear))},_clearDate:function(ah){var ag=K(ah);this._selectDate(ag,"")},_selectDate:function(ak,ag){var ah,aj=K(ak),ai=this._getInst(aj[0]);ag=(ag!=null?ag:this._formatDate(ai));if(ai.input){ai.input.val(ag)}this._updateAlternate(ai);ah=this._get(ai,"onSelect");if(ah){ah.apply((ai.input?ai.input[0]:null),[ag,ai])}else{if(ai.input){ai.input.trigger("change")}}if(ai.inline){this._updateDatepicker(ai)}else{this._hideDatepicker();this._lastInput=ai.input[0];if(typeof(ai.input[0])!=="object"){ai.input.trigger("focus")}this._lastInput=null}},_updateAlternate:function(ak){var aj,ai,ag,ah=this._get(ak,"altField");if(ah){aj=this._get(ak,"altFormat")||this._get(ak,"dateFormat");ai=this._getDate(ak);ag=this.formatDate(aj,ai,this._getFormatConfig(ak));K(ah).val(ag)}},noWeekends:function(ah){var ag=ah.getDay();return[(ag>0&&ag<6),""]},iso8601Week:function(ag){var ah,ai=new Date(ag.getTime());ai.setDate(ai.getDate()+4-(ai.getDay()||7));ah=ai.getTime();ai.setMonth(0);ai.setDate(1);return Math.floor(Math.round((ah-ai)/86400000)/7)+1},parseDate:function(ax,ar,az){if(ax==null||ar==null){throw"Invalid arguments"}ar=(typeof ar==="object"?ar.toString():ar+"");if(ar===""){return null}var aj,au,ah,ay=0,am=(az?az.shortYearCutoff:null)||this._defaults.shortYearCutoff,ai=(typeof am!=="string"?am:new Date().getFullYear()%100+parseInt(am,10)),ap=(az?az.dayNamesShort:null)||this._defaults.dayNamesShort,aB=(az?az.dayNames:null)||this._defaults.dayNames,ag=(az?az.monthNamesShort:null)||this._defaults.monthNamesShort,ak=(az?az.monthNames:null)||this._defaults.monthNames,al=-1,aC=-1,aw=-1,ao=-1,av=false,aA,aq=function(aE){var aF=(aj+1-1){aC=1;aw=ao;do{au=this._getDaysInMonth(al,aC-1);if(aw<=au){break}aC++;aw-=au}while(true)}aA=this._daylightSavingAdjust(new Date(al,aC-1,aw));if(aA.getFullYear()!==al||aA.getMonth()+1!==aC||aA.getDate()!==aw){throw"Invalid date"}return aA},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(ap,aj,ak){if(!aj){return""}var ar,at=(ak?ak.dayNamesShort:null)||this._defaults.dayNamesShort,ah=(ak?ak.dayNames:null)||this._defaults.dayNames,an=(ak?ak.monthNamesShort:null)||this._defaults.monthNamesShort,al=(ak?ak.monthNames:null)||this._defaults.monthNames,aq=function(au){var av=(ar+112?ag.getHours()+2:0);return ag},_setDate:function(am,aj,al){var ag=!aj,ai=am.selectedMonth,ak=am.selectedYear,ah=this._restrictMinMax(am,this._determineDate(am,aj,new Date()));am.selectedDay=am.currentDay=ah.getDate();am.drawMonth=am.selectedMonth=am.currentMonth=ah.getMonth();am.drawYear=am.selectedYear=am.currentYear=ah.getFullYear();if((ai!==am.selectedMonth||ak!==am.selectedYear)&&!al){this._notifyChange(am)}this._adjustInstDate(am);if(am.input){am.input.val(ag?"":this._formatDate(am))}},_getDate:function(ah){var ag=(!ah.currentYear||(ah.input&&ah.input.val()==="")?null:this._daylightSavingAdjust(new Date(ah.currentYear,ah.currentMonth,ah.currentDay)));return ag},_attachHandlers:function(ah){var ag=this._get(ah,"stepMonths"),ai="#"+ah.id.replace(/\\\\/g,"\\");ah.dpDiv.find("[data-handler]").map(function(){var aj={prev:function(){K.datepicker._adjustDate(ai,-ag,"M")},next:function(){K.datepicker._adjustDate(ai,+ag,"M")},hide:function(){K.datepicker._hideDatepicker()},today:function(){K.datepicker._gotoToday(ai)},selectDay:function(){K.datepicker._selectDay(ai,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this);return false},selectMonth:function(){K.datepicker._selectMonthYear(ai,this,"M");return false},selectYear:function(){K.datepicker._selectMonthYear(ai,this,"Y");return false}};K(this).on(this.getAttribute("data-event"),aj[this.getAttribute("data-handler")])})},_generateHTML:function(aX){var aA,az,aS,aK,ak,a1,aV,aO,a4,aI,a8,ar,au,at,ah,a0,ap,aD,a3,aQ,a9,aC,aH,aq,al,aT,aM,aP,aN,ao,aF,av,aW,aZ,aj,a2,a6,aL,aw,aY=new Date(),aB=this._daylightSavingAdjust(new Date(aY.getFullYear(),aY.getMonth(),aY.getDate())),a5=this._get(aX,"isRTL"),a7=this._get(aX,"showButtonPanel"),aR=this._get(aX,"hideIfNoPrevNext"),aG=this._get(aX,"navigationAsDateFormat"),ax=this._getNumberOfMonths(aX),an=this._get(aX,"showCurrentAtPos"),aJ=this._get(aX,"stepMonths"),aE=(ax[0]!==1||ax[1]!==1),ai=this._daylightSavingAdjust((!aX.currentDay?new Date(9999,9,9):new Date(aX.currentYear,aX.currentMonth,aX.currentDay))),am=this._getMinMaxDate(aX,"min"),ay=this._getMinMaxDate(aX,"max"),ag=aX.drawMonth-an,aU=aX.drawYear;if(ag<0){ag+=12;aU--}if(ay){aA=this._daylightSavingAdjust(new Date(ay.getFullYear(),ay.getMonth()-(ax[0]*ax[1])+1,ay.getDate()));aA=(am&&aAaA){ag--;if(ag<0){ag=11;aU--}}}aX.drawMonth=ag;aX.drawYear=aU;az=this._get(aX,"prevText");az=(!aG?az:this.formatDate(az,this._daylightSavingAdjust(new Date(aU,ag-aJ,1)),this._getFormatConfig(aX)));aS=(this._canAdjustMonth(aX,-1,aU,ag)?""+az+"":(aR?"":""+az+""));aK=this._get(aX,"nextText");aK=(!aG?aK:this.formatDate(aK,this._daylightSavingAdjust(new Date(aU,ag+aJ,1)),this._getFormatConfig(aX)));ak=(this._canAdjustMonth(aX,+1,aU,ag)?""+aK+"":(aR?"":""+aK+""));a1=this._get(aX,"currentText");aV=(this._get(aX,"gotoCurrent")&&aX.currentDay?ai:aB);a1=(!aG?a1:this.formatDate(a1,aV,this._getFormatConfig(aX)));aO=(!aX.inline?"":"");a4=(a7)?"
"+(a5?aO:"")+(this._isInRange(aX,aV)?"":"")+(a5?"":aO)+"
":"";aI=parseInt(this._get(aX,"firstDay"),10);aI=(isNaN(aI)?0:aI);a8=this._get(aX,"showWeek");ar=this._get(aX,"dayNames");au=this._get(aX,"dayNamesMin");at=this._get(aX,"monthNames");ah=this._get(aX,"monthNamesShort");a0=this._get(aX,"beforeShowDay");ap=this._get(aX,"showOtherMonths");aD=this._get(aX,"selectOtherMonths");a3=this._getDefaultDate(aX);aQ="";for(aC=0;aC1){switch(aq){case 0:aM+=" ui-datepicker-group-first";aT=" ui-corner-"+(a5?"right":"left");break;case ax[1]-1:aM+=" ui-datepicker-group-last";aT=" ui-corner-"+(a5?"left":"right");break;default:aM+=" ui-datepicker-group-middle";aT="";break}}aM+="'>"}aM+="
"+(/all|left/.test(aT)&&aC===0?(a5?ak:aS):"")+(/all|right/.test(aT)&&aC===0?(a5?aS:ak):"")+this._generateMonthYearHeader(aX,ag,aU,am,ay,aC>0||aq>0,at,ah)+"
";aP=(a8?"":"");for(a9=0;a9<7;a9++){aN=(a9+aI)%7;aP+=""}aM+=aP+"";ao=this._getDaysInMonth(aU,ag);if(aU===aX.selectedYear&&ag===aX.selectedMonth){aX.selectedDay=Math.min(aX.selectedDay,ao)}aF=(this._getFirstDayOfMonth(aU,ag)-aI+7)%7;av=Math.ceil((aF+ao)/7);aW=(aE?this.maxRows>av?this.maxRows:av:av);this.maxRows=aW;aZ=this._daylightSavingAdjust(new Date(aU,ag,1-aF));for(aj=0;aj";a2=(!a8?"":"");for(a9=0;a9<7;a9++){a6=(a0?a0.apply((aX.input?aX.input[0]:null),[aZ]):[true,""]);aL=(aZ.getMonth()!==ag);aw=(aL&&!aD)||!a6[0]||(am&&aZay);a2+="";aZ.setDate(aZ.getDate()+1);aZ=this._daylightSavingAdjust(aZ)}aM+=a2+""}ag++;if(ag>11){ag=0;aU++}aM+="
"+this._get(aX,"weekHeader")+"=5?" class='ui-datepicker-week-end'":"")+">"+au[aN]+"
"+this._get(aX,"calculateWeek")(aZ)+""+(aL&&!ap?" ":(aw?""+aZ.getDate()+"":""+aZ.getDate()+""))+"
"+(aE?""+((ax[0]>0&&aq===ax[1]-1)?"
":""):"");aH+=aM}aQ+=aH}aQ+=a4;aX._keyEvent=false;return aQ},_generateMonthYearHeader:function(ak,ai,at,am,aq,au,ao,ag){var ay,ah,az,aw,al,av,ar,an,aj=this._get(ak,"changeMonth"),aA=this._get(ak,"changeYear"),aB=this._get(ak,"showMonthAfterYear"),ap="
",ax="";if(au||!aj){ax+=""+ao[ai]+""}else{ay=(am&&am.getFullYear()===at);ah=(aq&&aq.getFullYear()===at);ax+=""}if(!aB){ap+=ax+(au||!(aj&&aA)?" ":"")}if(!ak.yearshtml){ak.yearshtml="";if(au||!aA){ap+=""+at+""}else{aw=this._get(ak,"yearRange").split(":");al=new Date().getFullYear();av=function(aD){var aC=(aD.match(/c[+\-].*/)?at+parseInt(aD.substring(1),10):(aD.match(/[+\-].*/)?al+parseInt(aD,10):parseInt(aD,10)));return(isNaN(aC)?al:aC)};ar=av(aw[0]);an=Math.max(ar,av(aw[1]||""));ar=(am?Math.max(ar,am.getFullYear()):ar);an=(aq?Math.min(an,aq.getFullYear()):an);ak.yearshtml+="";ap+=ak.yearshtml;ak.yearshtml=null}}ap+=this._get(ak,"yearSuffix");if(aB){ap+=(au||!(aj&&aA)?" ":"")+ax}ap+="
";return ap},_adjustInstDate:function(aj,am,al){var ai=aj.selectedYear+(al==="Y"?am:0),ak=aj.selectedMonth+(al==="M"?am:0),ag=Math.min(aj.selectedDay,this._getDaysInMonth(ai,ak))+(al==="D"?am:0),ah=this._restrictMinMax(aj,this._daylightSavingAdjust(new Date(ai,ak,ag)));aj.selectedDay=ah.getDate();aj.drawMonth=aj.selectedMonth=ah.getMonth();aj.drawYear=aj.selectedYear=ah.getFullYear();if(al==="M"||al==="Y"){this._notifyChange(aj)}},_restrictMinMax:function(aj,ah){var ai=this._getMinMaxDate(aj,"min"),ak=this._getMinMaxDate(aj,"max"),ag=(ai&&ahak?ak:ag)},_notifyChange:function(ah){var ag=this._get(ah,"onChangeMonthYear");if(ag){ag.apply((ah.input?ah.input[0]:null),[ah.selectedYear,ah.selectedMonth+1,ah])}},_getNumberOfMonths:function(ah){var ag=this._get(ah,"numberOfMonths");return(ag==null?[1,1]:(typeof ag==="number"?[1,ag]:ag))},_getMinMaxDate:function(ah,ag){return this._determineDate(ah,this._get(ah,ag+"Date"),null)},_getDaysInMonth:function(ag,ah){return 32-this._daylightSavingAdjust(new Date(ag,ah,32)).getDate()},_getFirstDayOfMonth:function(ag,ah){return new Date(ag,ah,1).getDay()},_canAdjustMonth:function(aj,al,ai,ak){var ag=this._getNumberOfMonths(aj),ah=this._daylightSavingAdjust(new Date(ai,ak+(al<0?al:ag[0]*ag[1]),1));if(al<0){ah.setDate(this._getDaysInMonth(ah.getFullYear(),ah.getMonth()))}return this._isInRange(aj,ah)},_isInRange:function(ak,ai){var ah,an,aj=this._getMinMaxDate(ak,"min"),ag=this._getMinMaxDate(ak,"max"),ao=null,al=null,am=this._get(ak,"yearRange");if(am){ah=am.split(":");an=new Date().getFullYear();ao=parseInt(ah[0],10);al=parseInt(ah[1],10);if(ah[0].match(/[+\-].*/)){ao+=an}if(ah[1].match(/[+\-].*/)){al+=an}}return((!aj||ai.getTime()>=aj.getTime())&&(!ag||ai.getTime()<=ag.getTime())&&(!ao||ai.getFullYear()>=ao)&&(!al||ai.getFullYear()<=al))},_getFormatConfig:function(ag){var ah=this._get(ag,"shortYearCutoff");ah=(typeof ah!=="string"?ah:new Date().getFullYear()%100+parseInt(ah,10));return{shortYearCutoff:ah,dayNamesShort:this._get(ag,"dayNamesShort"),dayNames:this._get(ag,"dayNames"),monthNamesShort:this._get(ag,"monthNamesShort"),monthNames:this._get(ag,"monthNames")}},_formatDate:function(aj,ag,ak,ai){if(!ag){aj.currentDay=aj.selectedDay;aj.currentMonth=aj.selectedMonth;aj.currentYear=aj.selectedYear}var ah=(ag?(typeof ag==="object"?ag:this._daylightSavingAdjust(new Date(ai,ak,ag))):this._daylightSavingAdjust(new Date(aj.currentYear,aj.currentMonth,aj.currentDay)));return this.formatDate(this._get(aj,"dateFormat"),ah,this._getFormatConfig(aj))}});function l(ah){var ag="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return ah.on("mouseout",ag,function(){K(this).removeClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!==-1){K(this).removeClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!==-1){K(this).removeClass("ui-datepicker-next-hover")}}).on("mouseover",ag,v)}function v(){if(!K.datepicker._isDisabledDatepicker(q.inline?q.dpDiv.parent()[0]:q.input[0])){K(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");K(this).addClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!==-1){K(this).addClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!==-1){K(this).addClass("ui-datepicker-next-hover")}}}function F(ai,ah){K.extend(ai,ah);for(var ag in ah){if(ah[ag]==null){ai[ag]=ah[ag]}}return ai}K.fn.datepicker=function(ah){if(!this.length){return this}if(!K.datepicker.initialized){K(document).on("mousedown",K.datepicker._checkExternalClick);K.datepicker.initialized=true}if(K("#"+K.datepicker._mainDivId).length===0){K("body").append(K.datepicker.dpDiv)}var ag=Array.prototype.slice.call(arguments,1);if(typeof ah==="string"&&(ah==="isDisabled"||ah==="getDate"||ah==="widget")){return K.datepicker["_"+ah+"Datepicker"].apply(K.datepicker,[this[0]].concat(ag))}if(ah==="option"&&arguments.length===2&&typeof arguments[1]==="string"){return K.datepicker["_"+ah+"Datepicker"].apply(K.datepicker,[this[0]].concat(ag))}return this.each(function(){typeof ah==="string"?K.datepicker["_"+ah+"Datepicker"].apply(K.datepicker,[this].concat(ag)):K.datepicker._attachDatepicker(this,ah)})};K.datepicker=new ac();K.datepicker.initialized=false;K.datepicker.uuid=new Date().getTime();K.datepicker.version="1.12.1";var A=K.datepicker; /*! * jQuery UI Slider 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var d=K.widget("ui.slider",K.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:false,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},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._calculateNewMax();this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content");this._refresh();this._animateOff=false},_refresh:function(){this._createRange();this._createHandles();this._setupEvents();this._refreshValue()},_createHandles:function(){var aj,ag,ah=this.options,al=this.element.find(".ui-slider-handle"),ak="",ai=[];ag=(ah.values&&ah.values.length)||1;if(al.length>ag){al.slice(ag).remove();al=al.slice(0,ag)}for(aj=al.length;aj").appendTo(this.element);this._addClass(this.range,"ui-slider-range")}else{this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max");this.range.css({left:"",bottom:""})}if(ag.range==="min"||ag.range==="max"){this._addClass(this.range,"ui-slider-range-"+ag.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._mouseDestroy()},_mouseCapture:function(ai){var am,ap,ah,ak,ao,aq,al,ag,an=this,aj=this.options;if(aj.disabled){return false}this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();am={x:ai.pageX,y:ai.pageY};ap=this._normValueFromMouse(am);ah=this._valueMax()-this._valueMin()+1;this.handles.each(function(ar){var at=Math.abs(ap-an.values(ar));if((ah>at)||(ah===at&&(ar===an._lastChangedValue||an.values(ar)===aj.min))){ah=at;ak=K(this);ao=ar}});aq=this._start(ai,ao);if(aq===false){return false}this._mouseSliding=true;this._handleIndex=ao;this._addClass(ak,null,"ui-state-active");ak.trigger("focus");al=ak.offset();ag=!K(ai.target).parents().addBack().is(".ui-slider-handle");this._clickOffset=ag?{left:0,top:0}:{left:ai.pageX-al.left-(ak.width()/2),top:ai.pageY-al.top-(ak.height()/2)-(parseInt(ak.css("borderTopWidth"),10)||0)-(parseInt(ak.css("borderBottomWidth"),10)||0)+(parseInt(ak.css("marginTop"),10)||0)};if(!this.handles.hasClass("ui-state-hover")){this._slide(ai,ao,ap)}this._animateOff=true;return true},_mouseStart:function(){return true},_mouseDrag:function(ai){var ag={x:ai.pageX,y:ai.pageY},ah=this._normValueFromMouse(ag);this._slide(ai,this._handleIndex,ah);return false},_mouseStop:function(ag){this._removeClass(this.handles,null,"ui-state-active");this._mouseSliding=false;this._stop(ag,this._handleIndex);this._change(ag,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(ah){var ag,ak,aj,ai,al;if(this.orientation==="horizontal"){ag=this.elementSize.width;ak=ah.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{ag=this.elementSize.height;ak=ah.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}aj=(ak/ag);if(aj>1){aj=1}if(aj<0){aj=0}if(this.orientation==="vertical"){aj=1-aj}ai=this._valueMax()-this._valueMin();al=this._valueMin()+aj*ai;return this._trimAlignValue(al)},_uiHash:function(ai,aj,ag){var ah={handle:this.handles[ai],handleIndex:ai,value:aj!==undefined?aj:this.value()};if(this._hasMultipleValues()){ah.value=aj!==undefined?aj:this.values(ai);ah.values=ag||this.values()}return ah},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(ah,ag){return this._trigger("start",ah,this._uiHash(ag))},_slide:function(al,aj,ai){var am,ag,ak=this.value(),ah=this.values();if(this._hasMultipleValues()){ag=this.values(aj?0:1);ak=this.values(aj);if(this.options.values.length===2&&this.options.range===true){ai=aj===0?Math.min(ag,ai):Math.max(ag,ai)}ah[aj]=ai}if(ai===ak){return}am=this._trigger("slide",al,this._uiHash(aj,ai,ah));if(am===false){return}if(this._hasMultipleValues()){this.values(aj,ai)}else{this.value(ai)}},_stop:function(ah,ag){this._trigger("stop",ah,this._uiHash(ag))},_change:function(ah,ag){if(!this._keySliding&&!this._mouseSliding){this._lastChangedValue=ag;this._trigger("change",ah,this._uiHash(ag))}},value:function(ag){if(arguments.length){this.options.value=this._trimAlignValue(ag);this._refreshValue();this._change(null,0);return}return this._value()},values:function(ah,ak){var aj,ag,ai;if(arguments.length>1){this.options.values[ah]=this._trimAlignValue(ak);this._refreshValue();this._change(null,ah);return}if(arguments.length){if(K.isArray(arguments[0])){aj=this.options.values;ag=arguments[0];for(ai=0;ai=0;ag--){this._change(null,ag)}this._animateOff=false;break;case"step":case"min":case"max":this._animateOff=true;this._calculateNewMax();this._refreshValue();this._animateOff=false;break;case"range":this._animateOff=true;this._refresh();this._animateOff=false;break}},_setOptionDisabled:function(ag){this._super(ag);this._toggleClass(null,"ui-state-disabled",!!ag)},_value:function(){var ag=this.options.value;ag=this._trimAlignValue(ag);return ag},_values:function(ag){var aj,ai,ah;if(arguments.length){aj=this.options.values[ag];aj=this._trimAlignValue(aj);return aj}else{if(this._hasMultipleValues()){ai=this.options.values.slice();for(ah=0;ah=this._valueMax()){return this._valueMax()}var ag=(this.options.step>0)?this.options.step:1,ai=(aj-this._valueMin())%ag,ah=aj-ai;if(Math.abs(ai)*2>=ag){ah+=(ai>0)?ag:(-ag)}return parseFloat(ah.toFixed(5))},_calculateNewMax:function(){var ag=this.options.max,ah=this._valueMin(),ai=this.options.step,aj=Math.round((ag-ah)/ai)*ai;ag=aj+ah;if(ag>this.options.max){ag-=ai}this.max=parseFloat(ag.toFixed(this._precision()))},_precision:function(){var ag=this._precisionOf(this.options.step);if(this.options.min!==null){ag=Math.max(ag,this._precisionOf(this.options.min))}return ag},_precisionOf:function(ah){var ai=ah.toString(),ag=ai.indexOf(".");return ag===-1?0:ai.length-ag-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(ag){if(ag==="vertical"){this.range.css({width:"",left:""})}if(ag==="horizontal"){this.range.css({height:"",bottom:""})}},_refreshValue:function(){var al,ak,ao,am,ap,aj=this.options.range,ai=this.options,an=this,ah=(!this._animateOff)?ai.animate:false,ag={};if(this._hasMultipleValues()){this.handles.each(function(aq){ak=(an.values(aq)-an._valueMin())/(an._valueMax()-an._valueMin())*100;ag[an.orientation==="horizontal"?"left":"bottom"]=ak+"%";K(this).stop(1,1)[ah?"animate":"css"](ag,ai.animate);if(an.options.range===true){if(an.orientation==="horizontal"){if(aq===0){an.range.stop(1,1)[ah?"animate":"css"]({left:ak+"%"},ai.animate)}if(aq===1){an.range[ah?"animate":"css"]({width:(ak-al)+"%"},{queue:false,duration:ai.animate})}}else{if(aq===0){an.range.stop(1,1)[ah?"animate":"css"]({bottom:(ak)+"%"},ai.animate)}if(aq===1){an.range[ah?"animate":"css"]({height:(ak-al)+"%"},{queue:false,duration:ai.animate})}}}al=ak})}else{ao=this.value();am=this._valueMin();ap=this._valueMax();ak=(ap!==am)?(ao-am)/(ap-am)*100:0;ag[this.orientation==="horizontal"?"left":"bottom"]=ak+"%";this.handle.stop(1,1)[ah?"animate":"css"](ag,ai.animate);if(aj==="min"&&this.orientation==="horizontal"){this.range.stop(1,1)[ah?"animate":"css"]({width:ak+"%"},ai.animate)}if(aj==="max"&&this.orientation==="horizontal"){this.range.stop(1,1)[ah?"animate":"css"]({width:(100-ak)+"%"},ai.animate)}if(aj==="min"&&this.orientation==="vertical"){this.range.stop(1,1)[ah?"animate":"css"]({height:ak+"%"},ai.animate)}if(aj==="max"&&this.orientation==="vertical"){this.range.stop(1,1)[ah?"animate":"css"]({height:(100-ak)+"%"},ai.animate)}}},_handleEvents:{keydown:function(ak){var al,ai,ah,aj,ag=K(ak.target).data("ui-slider-handle-index");switch(ak.keyCode){case K.ui.keyCode.HOME:case K.ui.keyCode.END:case K.ui.keyCode.PAGE_UP:case K.ui.keyCode.PAGE_DOWN:case K.ui.keyCode.UP:case K.ui.keyCode.RIGHT:case K.ui.keyCode.DOWN:case K.ui.keyCode.LEFT:ak.preventDefault();if(!this._keySliding){this._keySliding=true;this._addClass(K(ak.target),null,"ui-state-active");al=this._start(ak,ag);if(al===false){return}}break}aj=this.options.step;if(this._hasMultipleValues()){ai=ah=this.values(ag)}else{ai=ah=this.value()}switch(ak.keyCode){case K.ui.keyCode.HOME:ah=this._valueMin();break;case K.ui.keyCode.END:ah=this._valueMax();break;case K.ui.keyCode.PAGE_UP:ah=this._trimAlignValue(ai+((this._valueMax()-this._valueMin())/this.numPages));break;case K.ui.keyCode.PAGE_DOWN:ah=this._trimAlignValue(ai-((this._valueMax()-this._valueMin())/this.numPages));break;case K.ui.keyCode.UP:case K.ui.keyCode.RIGHT:if(ai===this._valueMax()){return}ah=this._trimAlignValue(ai+aj);break;case K.ui.keyCode.DOWN:case K.ui.keyCode.LEFT:if(ai===this._valueMin()){return}ah=this._trimAlignValue(ai-aj);break}this._slide(ak,ag,ah)},keyup:function(ah){var ag=K(ah.target).data("ui-slider-handle-index");if(this._keySliding){this._keySliding=false;this._stop(ah,ag);this._change(ah,ag);this._removeClass(K(ah.target),null,"ui-state-active")}}}}); /*! * jQuery UI Effects 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var o="ui-effects-",t="ui-effects-style",u="ui-effects-animated",x=K;K.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(av,aj){var aq="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",an=/^([\-+])=\s*(\d+\.?\d*)/,am=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(aw){return[aw[1],aw[2],aw[3],aw[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(aw){return[aw[1]*2.55,aw[2]*2.55,aw[3]*2.55,aw[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(aw){return[parseInt(aw[1],16),parseInt(aw[2],16),parseInt(aw[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(aw){return[parseInt(aw[1]+aw[1],16),parseInt(aw[2]+aw[2],16),parseInt(aw[3]+aw[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(aw){return[aw[1],aw[2]/100,aw[3]/100,aw[4]]}}],ak=av.Color=function(ax,ay,aw,az){return new av.Color.fn.parse(ax,ay,aw,az)},ap={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"}}}},au={"byte":{floor:true,max:255},percent:{max:1},degrees:{mod:360,floor:true}},at=ak.support={},ah=av("

")[0],ag,ar=av.each;ah.style.cssText="background-color:rgba(1,1,1,.5)";at.rgba=ah.style.backgroundColor.indexOf("rgba")>-1;ar(ap,function(aw,ax){ax.cache="_"+aw;ax.props.alpha={idx:3,type:"percent",def:1}});function ao(ax,az,ay){var aw=au[az.type]||{};if(ax==null){return(ay||!az.def)?null:az.def}ax=aw.floor?~~ax:parseFloat(ax);if(isNaN(ax)){return az.def}if(aw.mod){return(ax+aw.mod)%aw.mod}return 0>ax?0:aw.maxaI.mod/2){aF+=aI.mod}else{if(aF-aE>aI.mod/2){aF-=aI.mod}}}aw[aG]=ao((aE-aF)*aD+aF,aJ)}});return this[az](aw)},blend:function(az){if(this._rgba[3]===1){return this}var ay=this._rgba.slice(),ax=ay.pop(),aw=ak(az)._rgba;return ak(av.map(ay,function(aA,aB){return(1-ax)*aw[aB]+ax*aA}))},toRgbaString:function(){var ax="rgba(",aw=av.map(this._rgba,function(ay,az){return ay==null?(az>2?1:0):ay});if(aw[3]===1){aw.pop();ax="rgb("}return ax+aw.join()+")"},toHslaString:function(){var ax="hsla(",aw=av.map(this.hsla(),function(ay,az){if(ay==null){ay=az>2?1:0}if(az&&az<3){ay=Math.round(ay*100)+"%"}return ay});if(aw[3]===1){aw.pop();ax="hsl("}return ax+aw.join()+")"},toHexString:function(aw){var ax=this._rgba.slice(),ay=ax.pop();if(aw){ax.push(~~(ay*255))}return"#"+av.map(ax,function(az){az=(az||0).toString(16);return az.length===1?"0"+az:az}).join("")},toString:function(){return this._rgba[3]===0?"transparent":this.toRgbaString()}});ak.fn.parse.prototype=ak.fn;function ai(ay,ax,aw){aw=(aw+1)%1;if(aw*6<1){return ay+(ax-ay)*aw*6}if(aw*2<1){return ax}if(aw*3<2){return ay+(ax-ay)*((2/3)-aw)*6}return ay}ap.hsla.to=function(ay){if(ay[0]==null||ay[1]==null||ay[2]==null){return[null,null,null,ay[3]]}var aw=ay[0]/255,aB=ay[1]/255,aC=ay[2]/255,aE=ay[3],aD=Math.max(aw,aB,aC),az=Math.min(aw,aB,aC),aF=aD-az,aG=aD+az,ax=aG*0.5,aA,aH;if(az===aD){aA=0}else{if(aw===aD){aA=(60*(aB-aC)/aF)+360}else{if(aB===aD){aA=(60*(aC-aw)/aF)+120}else{aA=(60*(aw-aB)/aF)+240}}}if(aF===0){aH=0}else{if(ax<=0.5){aH=aF/aG}else{aH=aF/(2-aG)}}return[Math.round(aA)%360,aH,ax,aE==null?1:aE]};ap.hsla.from=function(aA){if(aA[0]==null||aA[1]==null||aA[2]==null){return[null,null,null,aA[3]]}var az=aA[0]/360,ay=aA[1],ax=aA[2],aw=aA[3],aB=ax<=0.5?ax*(1+ay):ax+ay-ax*ay,aC=2*ax-aB;return[Math.round(ai(aC,aB,az+(1/3))*255),Math.round(ai(aC,aB,az)*255),Math.round(ai(aC,aB,az-(1/3))*255),aw]};ar(ap,function(ax,az){var ay=az.props,aw=az.cache,aB=az.to,aA=az.from;ak.fn[ax]=function(aG){if(aB&&!this[aw]){this[aw]=aB(this._rgba)}if(aG===aj){return this[aw].slice()}var aD,aF=av.type(aG),aC=(aF==="array"||aF==="object")?aG:arguments,aE=this[aw].slice();ar(ay,function(aH,aJ){var aI=aC[aF==="object"?aH:aJ.idx];if(aI==null){aI=aE[aJ.idx]}aE[aJ.idx]=ao(aI,aJ)});if(aA){aD=ak(aA(aE));aD[aw]=aE;return aD}else{return ak(aE)}};ar(ay,function(aC,aD){if(ak.fn[aC]){return}ak.fn[aC]=function(aH){var aJ=av.type(aH),aG=(aC==="alpha"?(this._hsla?"hsla":"rgba"):ax),aF=this[aG](),aI=aF[aD.idx],aE;if(aJ==="undefined"){return aI}if(aJ==="function"){aH=aH.call(this,aI);aJ=av.type(aH)}if(aH==null&&aD.empty){return this}if(aJ==="string"){aE=an.exec(aH);if(aE){aH=aI+parseFloat(aE[2])*(aE[1]==="+"?1:-1)}}aF[aD.idx]=aH;return this[aG](aF)}})});ak.hook=function(ax){var aw=ax.split(" ");ar(aw,function(ay,az){av.cssHooks[az]={set:function(aD,aE){var aB,aC,aA="";if(aE!=="transparent"&&(av.type(aE)!=="string"||(aB=al(aE)))){aE=ak(aB||aE);if(!at.rgba&&aE._rgba[3]!==1){aC=az==="backgroundColor"?aD.parentNode:aD;while((aA===""||aA==="transparent")&&aC&&aC.style){try{aA=av.css(aC,"backgroundColor");aC=aC.parentNode}catch(aF){}}aE=aE.blend(aA&&aA!=="transparent"?aA:"_default")}aE=aE.toRgbaString()}try{aD.style[az]=aE}catch(aF){}}};av.fx.step[az]=function(aA){if(!aA.colorInit){aA.start=ak(aA.elem,az);aA.end=ak(aA.end);aA.colorInit=true}av.cssHooks[az].set(aA.elem,aA.start.transition(aA.end,aA.pos))}})};ak.hook(aq);av.cssHooks.borderColor={expand:function(ax){var aw={};ar(["Top","Right","Bottom","Left"],function(az,ay){aw["border"+ay+"Color"]=ax});return aw}};ag=av.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"}})(x);(function(){var ah=["add","remove","toggle"],ai={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};K.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(ak,al){K.fx.step[al]=function(am){if(am.end!=="none"&&!am.setAttr||am.pos===1&&!am.setAttr){x.style(am.elem,al,am.end);am.setAttr=true}}});function aj(ao){var al,ak,am=ao.ownerDocument.defaultView?ao.ownerDocument.defaultView.getComputedStyle(ao,null):ao.currentStyle,an={};if(am&&am.length&&am[0]&&am[am[0]]){ak=am.length;while(ak--){al=am[ak];if(typeof am[al]==="string"){an[K.camelCase(al)]=am[al]}}}else{for(al in am){if(typeof am[al]==="string"){an[al]=am[al]}}}return an}function ag(ak,am){var ao={},al,an;for(al in am){an=am[al];if(ak[al]!==an){if(!ai[al]){if(K.fx.step[al]||!isNaN(parseFloat(an))){ao[al]=an}}}}return ao}if(!K.fn.addBack){K.fn.addBack=function(ak){return this.add(ak==null?this.prevObject:this.prevObject.filter(ak))}}K.effects.animateClass=function(ak,al,ao,an){var am=K.speed(al,ao,an);return this.queue(function(){var ar=K(this),ap=ar.attr("class")||"",aq,at=am.children?ar.find("*").addBack():ar;at=at.map(function(){var au=K(this);return{el:au,start:aj(this)}});aq=function(){K.each(ah,function(au,av){if(ak[av]){ar[av+"Class"](ak[av])}})};aq();at=at.map(function(){this.end=aj(this.el[0]);this.diff=ag(this.start,this.end);return this});ar.attr("class",ap);at=at.map(function(){var aw=this,au=K.Deferred(),av=K.extend({},am,{queue:false,complete:function(){au.resolve(aw)}});this.el.animate(this.diff,av);return au.promise()});K.when.apply(K,at.get()).done(function(){aq();K.each(arguments,function(){var au=this.el;K.each(this.diff,function(av){au.css(av,"")})});am.complete.call(ar[0])})})};K.fn.extend({addClass:(function(ak){return function(am,al,ao,an){return al?K.effects.animateClass.call(this,{add:am},al,ao,an):ak.apply(this,arguments)}})(K.fn.addClass),removeClass:(function(ak){return function(am,al,ao,an){return arguments.length>1?K.effects.animateClass.call(this,{remove:am},al,ao,an):ak.apply(this,arguments)}})(K.fn.removeClass),toggleClass:(function(ak){return function(an,am,al,ap,ao){if(typeof am==="boolean"||am===undefined){if(!al){return ak.apply(this,arguments)}else{return K.effects.animateClass.call(this,(am?{add:an}:{remove:an}),al,ap,ao)}}else{return K.effects.animateClass.call(this,{toggle:an},am,al,ap)}}})(K.fn.toggleClass),switchClass:function(ak,am,al,ao,an){return K.effects.animateClass.call(this,{add:am,remove:ak},al,ao,an)}})})();(function(){if(K.expr&&K.expr.filters&&K.expr.filters.animated){K.expr.filters.animated=(function(aj){return function(ak){return !!K(ak).data(u)||aj(ak)}})(K.expr.filters.animated)}if(K.uiBackCompat!==false){K.extend(K.effects,{save:function(ak,am){var aj=0,al=am.length;for(;aj").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),aj={width:ak.width(),height:ak.height()},an=document.activeElement;try{an.id}catch(am){an=document.body}ak.wrap(ao);if(ak[0]===an||K.contains(ak[0],an)){K(an).trigger("focus")}ao=ak.parent();if(ak.css("position")==="static"){ao.css({position:"relative"});ak.css({position:"relative"})}else{K.extend(al,{position:ak.css("position"),zIndex:ak.css("z-index")});K.each(["top","left","bottom","right"],function(ap,aq){al[aq]=ak.css(aq);if(isNaN(parseInt(al[aq],10))){al[aq]="auto"}});ak.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}ak.css(aj);return ao.css(al).show()},removeWrapper:function(aj){var ak=document.activeElement;if(aj.parent().is(".ui-effects-wrapper")){aj.parent().replaceWith(aj);if(aj[0]===ak||K.contains(aj[0],ak)){K(ak).trigger("focus")}}return aj}})}K.extend(K.effects,{version:"1.12.1",define:function(aj,al,ak){if(!ak){ak=al;al="effect"}K.effects.effect[aj]=ak;K.effects.effect[aj].mode=al;return ak},scaledDimensions:function(ak,al,am){if(al===0){return{height:0,width:0,outerHeight:0,outerWidth:0}}var aj=am!=="horizontal"?((al||100)/100):1,an=am!=="vertical"?((al||100)/100):1;return{height:ak.height()*an,width:ak.width()*aj,outerHeight:ak.outerHeight()*an,outerWidth:ak.outerWidth()*aj}},clipToBox:function(aj){return{width:aj.clip.right-aj.clip.left,height:aj.clip.bottom-aj.clip.top,left:aj.clip.left,top:aj.clip.top}},unshift:function(ak,am,al){var aj=ak.queue();if(am>1){aj.splice.apply(aj,[1,0].concat(aj.splice(am,al)))}ak.dequeue()},saveStyle:function(aj){aj.data(t,aj[0].style.cssText)},restoreStyle:function(aj){aj[0].style.cssText=aj.data(t)||"";aj.removeData(t)},mode:function(aj,al){var ak=aj.is(":hidden");if(al==="toggle"){al=ak?"show":"hide"}if(ak?al==="hide":al==="show"){al="none"}return al},getBaseline:function(ak,al){var am,aj;switch(ak[0]){case"top":am=0;break;case"middle":am=0.5;break;case"bottom":am=1;break;default:am=ak[0]/al.height}switch(ak[1]){case"left":aj=0;break;case"center":aj=0.5;break;case"right":aj=1;break;default:aj=ak[1]/al.width}return{x:aj,y:am}},createPlaceholder:function(ak){var am,al=ak.css("position"),aj=ak.position();ak.css({marginTop:ak.css("marginTop"),marginBottom:ak.css("marginBottom"),marginLeft:ak.css("marginLeft"),marginRight:ak.css("marginRight")}).outerWidth(ak.outerWidth()).outerHeight(ak.outerHeight());if(/^(static|relative)/.test(al)){al="absolute";am=K("<"+ak[0].nodeName+">").insertAfter(ak).css({display:/^(inline|ruby)/.test(ak.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:ak.css("marginTop"),marginBottom:ak.css("marginBottom"),marginLeft:ak.css("marginLeft"),marginRight:ak.css("marginRight"),"float":ak.css("float")}).outerWidth(ak.outerWidth()).outerHeight(ak.outerHeight()).addClass("ui-effects-placeholder");ak.data(o+"placeholder",am)}ak.css({position:al,left:aj.left,top:aj.top});return am},removePlaceholder:function(aj){var al=o+"placeholder",ak=aj.data(al);if(ak){ak.remove();aj.removeData(al)}},cleanUp:function(aj){K.effects.restoreStyle(aj);K.effects.removePlaceholder(aj)},setTransition:function(ak,am,aj,al){al=al||{};K.each(am,function(ao,an){var ap=ak.cssUnit(an);if(ap[0]>0){al[an]=ap[0]*aj+ap[1]}});return al}});function ah(ak,aj,al,am){if(K.isPlainObject(ak)){aj=ak;ak=ak.effect}ak={effect:ak};if(aj==null){aj={}}if(K.isFunction(aj)){am=aj;al=null;aj={}}if(typeof aj==="number"||K.fx.speeds[aj]){am=al;al=aj;aj={}}if(K.isFunction(al)){am=al;al=null}if(aj){K.extend(ak,aj)}al=al||aj.duration;ak.duration=K.fx.off?0:typeof al==="number"?al:al in K.fx.speeds?K.fx.speeds[al]:K.fx.speeds._default;ak.complete=am||aj.complete;return ak}function ai(aj){if(!aj||typeof aj==="number"||K.fx.speeds[aj]){return true}if(typeof aj==="string"&&!K.effects.effect[aj]){return true}if(K.isFunction(aj)){return true}if(typeof aj==="object"&&!aj.effect){return true}return false}K.fn.extend({effect:function(){var ar=ah.apply(this,arguments),aq=K.effects.effect[ar.effect],an=aq.mode,ap=ar.queue,am=ap||"fx",aj=ar.complete,ao=ar.mode,ak=[],at=function(aw){var av=K(this),au=K.effects.mode(av,ao)||an;av.data(u,true);ak.push(au);if(an&&(au==="show"||(au===an&&au==="hide"))){av.show()}if(!an||au!=="none"){K.effects.saveStyle(av)}if(K.isFunction(aw)){aw()}};if(K.fx.off||!aq){if(ao){return this[ao](ar.duration,aj)}else{return this.each(function(){if(aj){aj.call(this)}})}}function al(aw){var ax=K(this);function av(){ax.removeData(u);K.effects.cleanUp(ax);if(ar.mode==="hide"){ax.hide()}au()}function au(){if(K.isFunction(aj)){aj.call(ax[0])}if(K.isFunction(aw)){aw()}}ar.mode=ak.shift();if(K.uiBackCompat!==false&&!an){if(ax.is(":hidden")?ao==="hide":ao==="show"){ax[ao]();au()}else{aq.call(ax[0],ar,au)}}else{if(ar.mode==="none"){ax[ao]();au()}else{aq.call(ax[0],ar,av)}}}return ap===false?this.each(at).each(al):this.queue(am,at).queue(am,al)},show:(function(aj){return function(al){if(ai(al)){return aj.apply(this,arguments)}else{var ak=ah.apply(this,arguments);ak.mode="show";return this.effect.call(this,ak)}}})(K.fn.show),hide:(function(aj){return function(al){if(ai(al)){return aj.apply(this,arguments)}else{var ak=ah.apply(this,arguments);ak.mode="hide";return this.effect.call(this,ak)}}})(K.fn.hide),toggle:(function(aj){return function(al){if(ai(al)||typeof al==="boolean"){return aj.apply(this,arguments)}else{var ak=ah.apply(this,arguments);ak.mode="toggle";return this.effect.call(this,ak)}}})(K.fn.toggle),cssUnit:function(aj){var ak=this.css(aj),al=[];K.each(["em","px","%","pt"],function(am,an){if(ak.indexOf(an)>0){al=[parseFloat(ak),an]}});return al},cssClip:function(aj){if(aj){return this.css("clip","rect("+aj.top+"px "+aj.right+"px "+aj.bottom+"px "+aj.left+"px)")}return ag(this.css("clip"),this)},transfer:function(av,am){var ao=K(this),aq=K(av.to),au=aq.css("position")==="fixed",ap=K("body"),ar=au?ap.scrollTop():0,at=au?ap.scrollLeft():0,aj=aq.offset(),al={top:aj.top-ar,left:aj.left-at,height:aq.innerHeight(),width:aq.innerWidth()},an=ao.offset(),ak=K("

").appendTo("body").addClass(av.className).css({top:an.top-ar,left:an.left-at,height:ao.innerHeight(),width:ao.innerWidth(),position:au?"fixed":"absolute"}).animate(al,av.duration,av.easing,function(){ak.remove();if(K.isFunction(am)){am()}})}});function ag(ao,al){var an=al.outerWidth(),am=al.outerHeight(),ak=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/,aj=ak.exec(ao)||["",0,an,am,0];return{top:parseFloat(aj[1])||0,right:aj[2]==="auto"?an:parseFloat(aj[2]),bottom:aj[3]==="auto"?am:parseFloat(aj[3]),left:parseFloat(aj[4])||0}}K.fx.step.clip=function(aj){if(!aj.clipInit){aj.start=K(aj.elem).cssClip();if(typeof aj.end==="string"){aj.end=ag(aj.end,aj.elem)}aj.clipInit=true}K(aj.elem).cssClip({top:aj.pos*(aj.end.top-aj.start.top)+aj.start.top,right:aj.pos*(aj.end.right-aj.start.right)+aj.start.right,bottom:aj.pos*(aj.end.bottom-aj.start.bottom)+aj.start.bottom,left:aj.pos*(aj.end.left-aj.start.left)+aj.start.left})}})();(function(){var ag={};K.each(["Quad","Cubic","Quart","Quint","Expo"],function(ai,ah){ag[ah]=function(aj){return Math.pow(aj,ai+2)}});K.extend(ag,{Sine:function(ah){return 1-Math.cos(ah*Math.PI/2)},Circ:function(ah){return 1-Math.sqrt(1-ah*ah)},Elastic:function(ah){return ah===0||ah===1?ah:-Math.pow(2,8*(ah-1))*Math.sin(((ah-1)*80-7.5)*Math.PI/15)},Back:function(ah){return ah*ah*(3*ah-2)},Bounce:function(aj){var ah,ai=4;while(aj<((ah=Math.pow(2,--ai))-1)/11){}return 1/Math.pow(4,3-ai)-7.5625*Math.pow((ah*3-2)/22-aj,2)}});K.each(ag,function(ai,ah){K.easing["easeIn"+ai]=ah;K.easing["easeOut"+ai]=function(aj){return 1-ah(1-aj)};K.easing["easeInOut"+ai]=function(aj){return aj<0.5?ah(aj*2)/2:1-ah(aj*-2+2)/2}})})();var W=K.effects; /*! * jQuery UI Effects Blind 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var X=K.effects.define("blind","hide",function(ai,ag){var al={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},aj=K(this),ak=ai.direction||"up",an=aj.cssClip(),ah={clip:K.extend({},an)},am=K.effects.createPlaceholder(aj);ah.clip[al[ak][0]]=ah.clip[al[ak][1]];if(ai.mode==="show"){aj.cssClip(ah.clip);if(am){am.css(K.effects.clipToBox(ah))}ah.clip=an}if(am){am.animate(K.effects.clipToBox(ah),ai.duration,ai.easing)}aj.animate(ah,{queue:false,duration:ai.duration,easing:ai.easing,complete:ag})}); /*! * jQuery UI Effects Bounce 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var T=K.effects.define("bounce",function(ah,ao){var ak,at,aw,ag=K(this),an=ah.mode,am=an==="hide",ax=an==="show",ay=ah.direction||"up",ai=ah.distance,al=ah.times||5,az=al*2+(ax||am?1:0),av=ah.duration/az,aq=ah.easing,aj=(ay==="up"||ay==="down")?"top":"left",ap=(ay==="up"||ay==="left"),au=0,ar=ag.queue().length;K.effects.createPlaceholder(ag);aw=ag.css(aj);if(!ai){ai=ag[aj==="top"?"outerHeight":"outerWidth"]()/3}if(ax){at={opacity:1};at[aj]=aw;ag.css("opacity",0).css(aj,ap?-ai*2:ai*2).animate(at,av,aq)}if(am){ai=ai/Math.pow(2,al-1)}at={};at[aj]=aw;for(;au").css({position:"absolute",visibility:"visible",left:-aw*av,top:-ax*at}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:av,height:at,left:aj+(ay?aq*av:0),top:ar+(ay?ao*at:0),opacity:ay?0:1}).animate({left:aj+(ay?0:aq*av),top:ar+(ay?0:ao*at),opacity:ay?1:0},ah.duration||500,ah.easing,az)}}function ak(){ag.css({visibility:"visible"});K(am).remove();au()}}); /*! * jQuery UI Effects Fade 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var af=K.effects.define("fade","toggle",function(ai,ah){var ag=ai.mode==="show";K(this).css("opacity",ag?0:1).animate({opacity:ag?1:0},{queue:false,duration:ai.duration,easing:ai.easing,complete:ah})}); /*! * jQuery UI Effects Fold 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var S=K.effects.define("fold","hide",function(ax,al){var am=K(this),an=ax.mode,au=an==="show",ao=an==="hide",aw=ax.size||15,ap=/([0-9]+)%/.exec(aw),av=!!ax.horizFirst,aj=av?["right","bottom"]:["bottom","right"],ak=ax.duration/2,at=K.effects.createPlaceholder(am),ah=am.cssClip(),ar={clip:K.extend({},ah)},aq={clip:K.extend({},ah)},ag=[ah[aj[0]],ah[aj[1]]],ai=am.queue().length;if(ap){aw=parseInt(ap[1],10)/100*ag[ao?0:1]}ar.clip[aj[0]]=aw;aq.clip[aj[0]]=aw;aq.clip[aj[1]]=0;if(au){am.cssClip(aq.clip);if(at){at.css(K.effects.clipToBox(aq))}aq.clip=ah}am.queue(function(ay){if(at){at.animate(K.effects.clipToBox(ar),ak,ax.easing).animate(K.effects.clipToBox(aq),ak,ax.easing)}ay()}).animate(ar,ak,ax.easing).animate(aq,ak,ax.easing).queue(al);K.effects.unshift(am,ai,4)}); /*! * jQuery UI Effects Highlight 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var b=K.effects.define("highlight","show",function(ah,ag){var ai=K(this),aj={backgroundColor:ai.css("backgroundColor")};if(ah.mode==="hide"){aj.opacity=0}K.effects.saveStyle(ai);ai.css({backgroundImage:"none",backgroundColor:ah.color||"#ffff99"}).animate(aj,{queue:false,duration:ah.duration,easing:ah.easing,complete:ag})}); /*! * jQuery UI Effects Size 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var p=K.effects.define("size",function(aj,ap){var an,ao,au,ag=K(this),al=["fontSize"],av=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],ai=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],am=aj.mode,at=am!=="effect",ay=aj.scale||"both",aw=aj.origin||["middle","center"],ax=ag.css("position"),ak=ag.position(),aq=K.effects.scaledDimensions(ag),ar=aj.from||aq,ah=aj.to||K.effects.scaledDimensions(ag,0);K.effects.createPlaceholder(ag);if(am==="show"){au=ar;ar=ah;ah=au}ao={from:{y:ar.height/aq.height,x:ar.width/aq.width},to:{y:ah.height/aq.height,x:ah.width/aq.width}};if(ay==="box"||ay==="both"){if(ao.from.y!==ao.to.y){ar=K.effects.setTransition(ag,av,ao.from.y,ar);ah=K.effects.setTransition(ag,av,ao.to.y,ah)}if(ao.from.x!==ao.to.x){ar=K.effects.setTransition(ag,ai,ao.from.x,ar);ah=K.effects.setTransition(ag,ai,ao.to.x,ah)}}if(ay==="content"||ay==="both"){if(ao.from.y!==ao.to.y){ar=K.effects.setTransition(ag,al,ao.from.y,ar);ah=K.effects.setTransition(ag,al,ao.to.y,ah)}}if(aw){an=K.effects.getBaseline(aw,aq);ar.top=(aq.outerHeight-ar.outerHeight)*an.y+ak.top;ar.left=(aq.outerWidth-ar.outerWidth)*an.x+ak.left;ah.top=(aq.outerHeight-ah.outerHeight)*an.y+ak.top;ah.left=(aq.outerWidth-ah.outerWidth)*an.x+ak.left}ag.css(ar);if(ay==="content"||ay==="both"){av=av.concat(["marginTop","marginBottom"]).concat(al);ai=ai.concat(["marginLeft","marginRight"]);ag.find("*[width]").each(function(){var aC=K(this),az=K.effects.scaledDimensions(aC),aB={height:az.height*ao.from.y,width:az.width*ao.from.x,outerHeight:az.outerHeight*ao.from.y,outerWidth:az.outerWidth*ao.from.x},aA={height:az.height*ao.to.y,width:az.width*ao.to.x,outerHeight:az.height*ao.to.y,outerWidth:az.width*ao.to.x};if(ao.from.y!==ao.to.y){aB=K.effects.setTransition(aC,av,ao.from.y,aB);aA=K.effects.setTransition(aC,av,ao.to.y,aA)}if(ao.from.x!==ao.to.x){aB=K.effects.setTransition(aC,ai,ao.from.x,aB);aA=K.effects.setTransition(aC,ai,ao.to.x,aA)}if(at){K.effects.saveStyle(aC)}aC.css(aB);aC.animate(aA,aj.duration,aj.easing,function(){if(at){K.effects.restoreStyle(aC)}})})}ag.animate(ah,{queue:false,duration:aj.duration,easing:aj.easing,complete:function(){var az=ag.offset();if(ah.opacity===0){ag.css("opacity",ar.opacity)}if(!at){ag.css("position",ax==="static"?"relative":ax).offset(az);K.effects.saveStyle(ag)}ap()}})}); /*! * jQuery UI Effects Scale 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var f=K.effects.define("scale",function(ah,ag){var ai=K(this),al=ah.mode,aj=parseInt(ah.percent,10)||(parseInt(ah.percent,10)===0?0:(al!=="effect"?0:100)),ak=K.extend(true,{from:K.effects.scaledDimensions(ai),to:K.effects.scaledDimensions(ai,aj,ah.direction||"both"),origin:ah.origin||["middle","center"]},ah);if(ah.fade){ak.from.opacity=1;ak.to.opacity=0}K.effects.effect.size.call(this,ak,ag)}); /*! * jQuery UI Effects Puff 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var h=K.effects.define("puff","hide",function(ah,ag){var ai=K.extend(true,{},ah,{fade:true,percent:parseInt(ah.percent,10)||150});K.effects.effect.scale.call(this,ai,ag)}); /*! * jQuery UI Effects Pulsate 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var c=K.effects.define("pulsate","show",function(ar,ai){var ak=K(this),al=ar.mode,ap=al==="show",am=al==="hide",aq=ap||am,an=((ar.times||5)*2)+(aq?1:0),ah=ar.duration/an,ao=0,aj=1,ag=ak.queue().length;if(ap||!ak.is(":visible")){ak.css("opacity",0).show();ao=1}for(;aj0&&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('
'+PrimeFaces.escapeHTML(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 $("