/* Includes files for bootstrap front-office skins */
if(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(k,e){"use strict";function g(e){return null!=e&&e===e.window}var t=[],n=Object.getPrototypeOf,a=t.slice,m=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},l=t.push,o=t.indexOf,i={},r=i.toString,_=i.hasOwnProperty,s=_.toString,c=s.call(Object),v={},y=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},j=k.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,i){var n,o,r=(i=i||j).createElement("script");if(r.text=e,t)for(n in u)(o=t[n]||t.getAttribute&&t.getAttribute(n))&&r.setAttribute(n,o);i.head.appendChild(r).parentNode.removeChild(r)}function b(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?i[r.call(e)]||"object":typeof e}var d="3.5.1",C=function(e,t){return new C.fn.init(e,t)};function h(e){var t=!!e&&"length"in e&&e.length,i=b(e);return!y(e)&&!g(e)&&("array"===i||0===t||"number"==typeof t&&0<t&&t-1 in e)}C.fn=C.prototype={jquery:d,constructor:C,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=C.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return C.each(this,e)},map:function(i){return this.pushStack(C.map(this,function(e,t){return i.call(e,t,e)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(C.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(C.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,i=+e+(e<0?t:0);return this.pushStack(0<=i&&i<t?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:t.sort,splice:t.splice},C.extend=C.fn.extend=function(){var e,t,i,n,o,r,s=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||y(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)n=e[t],"__proto__"!==t&&s!==n&&(c&&n&&(C.isPlainObject(n)||(o=Array.isArray(n)))?(i=s[t],r=o&&!Array.isArray(i)?[]:o||C.isPlainObject(i)?i:{},o=!1,s[t]=C.extend(c,r,n)):void 0!==n&&(s[t]=n));return s},C.extend({expando:"jQuery"+(d+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,i;return!(!e||"[object Object]"!==r.call(e)||(t=n(e))&&("function"!=typeof(i=_.call(t,"constructor")&&t.constructor)||s.call(i)!==c))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,i){w(e,{nonce:t&&t.nonce},i)},each:function(e,t){var i,n=0;if(h(e))for(i=e.length;n<i&&!1!==t.call(e[n],n,e[n]);n++);else for(n in e)if(!1===t.call(e[n],n,e[n]))break;return e},makeArray:function(e,t){var i=t||[];return null!=e&&(h(Object(e))?C.merge(i,"string"==typeof e?[e]:e):l.call(i,e)),i},inArray:function(e,t,i){return null==t?-1:o.call(t,e,i)},merge:function(e,t){for(var i=+t.length,n=0,o=e.length;n<i;n++)e[o++]=t[n];return e.length=o,e},grep:function(e,t,i){for(var n=[],o=0,r=e.length,s=!i;o<r;o++)!t(e[o],o)!=s&&n.push(e[o]);return n},map:function(e,t,i){var n,o,r=0,s=[];if(h(e))for(n=e.length;r<n;r++)null!=(o=t(e[r],r,i))&&s.push(o);else for(r in e)null!=(o=t(e[r],r,i))&&s.push(o);return m(s)},guid:1,support:v}),"function"==typeof Symbol&&(C.fn[Symbol.iterator]=t[Symbol.iterator]),C.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){i["[object "+t+"]"]=t.toLowerCase()});var p=function(i){function d(e,t){var i="0x"+e.slice(1)-65536;return t||(i<0?String.fromCharCode(65536+i):String.fromCharCode(i>>10|55296,1023&i|56320))}function o(){x()}var e,p,w,r,s,f,h,g,b,l,c,x,k,a,j,m,u,_,v,C="sizzle"+1*new Date,y=i.document,D=0,n=0,T=le(),Q=le(),S=le(),I=le(),E=function(e,t){return e===t&&(c=!0),0},A={}.hasOwnProperty,t=[],M=t.pop,N=t.push,P=t.push,O=t.slice,H=function(e,t){for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1},$="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",z="[\\x20\\t\\r\\n\\f]",R="(?:\\\\[\\da-fA-F]{1,6}"+z+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",L="\\["+z+"*("+R+")(?:"+z+"*([*^$|!~]?=)"+z+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+z+"*\\]",W=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+L+")*)|.*)\\)|)",F=new RegExp(z+"+","g"),q=new RegExp("^"+z+"+|((?:^|[^\\\\])(?:\\\\.)*)"+z+"+$","g"),B=new RegExp("^"+z+"*,"+z+"*"),U=new RegExp("^"+z+"*([>+~]|"+z+")"+z+"*"),Y=new RegExp(z+"|>"),K=new RegExp(W),V=new RegExp("^"+R+"$"),X={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+L),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+z+"*(even|odd|(([+-]|)(\\d*)n|)"+z+"*(?:([+-]|)"+z+"*(\\d+)|))"+z+"*\\)|)","i"),bool:new RegExp("^(?:"+$+")$","i"),needsContext:new RegExp("^"+z+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+z+"*((?:-\\d)?\\d*)"+z+"*\\)|)(?=[^-]|$)","i")},G=/HTML$/i,J=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,ee=/^[^{]+\{\s*\[native \w/,te=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ie=/[+~]/,ne=new RegExp("\\\\[\\da-fA-F]{1,6}"+z+"?|\\\\([^\\r\\n\\f])","g"),oe=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,re=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},se=we(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{P.apply(t=O.call(y.childNodes),y.childNodes),t[y.childNodes.length].nodeType}catch(e){P={apply:t.length?function(e,t){N.apply(e,O.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}function ae(e,t,i,n){var o,r,s,a,l,c,u,d=t&&t.ownerDocument,h=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return i;if(!n&&(x(t),t=t||k,j)){if(11!==h&&(l=te.exec(e)))if(o=l[1]){if(9===h){if(!(s=t.getElementById(o)))return i;if(s.id===o)return i.push(s),i}else if(d&&(s=d.getElementById(o))&&v(t,s)&&s.id===o)return i.push(s),i}else{if(l[2])return P.apply(i,t.getElementsByTagName(e)),i;if((o=l[3])&&p.getElementsByClassName&&t.getElementsByClassName)return P.apply(i,t.getElementsByClassName(o)),i}if(p.qsa&&!I[e+" "]&&(!m||!m.test(e))&&(1!==h||"object"!==t.nodeName.toLowerCase())){if(u=e,d=t,1===h&&(Y.test(e)||U.test(e))){for((d=ie.test(e)&&_e(t.parentNode)||t)===t&&p.scope||((a=t.getAttribute("id"))?a=a.replace(oe,re):t.setAttribute("id",a=C)),r=(c=f(e)).length;r--;)c[r]=(a?"#"+a:":scope")+" "+ye(c[r]);u=c.join(",")}try{return P.apply(i,d.querySelectorAll(u)),i}catch(t){I(e,!0)}finally{a===C&&t.removeAttribute("id")}}}return g(e.replace(q,"$1"),t,i,n)}function le(){var n=[];return function e(t,i){return n.push(t+" ")>w.cacheLength&&delete e[n.shift()],e[t+" "]=i}}function ce(e){return e[C]=!0,e}function ue(e){var t=k.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var i=e.split("|"),n=i.length;n--;)w.attrHandle[i[n]]=t}function he(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function pe(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function fe(i){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===i}}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&&se(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function me(s){return ce(function(r){return r=+r,ce(function(e,t){for(var i,n=s([],e.length,r),o=n.length;o--;)e[i=n[o]]&&(e[i]=!(t[i]=e[i]))})})}function _e(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in p=ae.support={},s=ae.isXML=function(e){var t=e.namespaceURI,i=(e.ownerDocument||e).documentElement;return!G.test(t||i&&i.nodeName||"HTML")},x=ae.setDocument=function(e){var t,i,n=e?e.ownerDocument||e:y;return n!=k&&9===n.nodeType&&n.documentElement&&(a=(k=n).documentElement,j=!s(k),y!=k&&(i=k.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",o,!1):i.attachEvent&&i.attachEvent("onunload",o)),p.scope=ue(function(e){return a.appendChild(e).appendChild(k.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),p.attributes=ue(function(e){return e.className="i",!e.getAttribute("className")}),p.getElementsByTagName=ue(function(e){return e.appendChild(k.createComment("")),!e.getElementsByTagName("*").length}),p.getElementsByClassName=ee.test(k.getElementsByClassName),p.getById=ue(function(e){return a.appendChild(e).id=C,!k.getElementsByName||!k.getElementsByName(C).length}),p.getById?(w.filter.ID=function(e){var t=e.replace(ne,d);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&j){var i=t.getElementById(e);return i?[i]:[]}}):(w.filter.ID=function(e){var i=e.replace(ne,d);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===i}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&j){var i,n,o,r=t.getElementById(e);if(r){if((i=r.getAttributeNode("id"))&&i.value===e)return[r];for(o=t.getElementsByName(e),n=0;r=o[n++];)if((i=r.getAttributeNode("id"))&&i.value===e)return[r]}return[]}}),w.find.TAG=p.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):p.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,n=[],o=0,r=t.getElementsByTagName(e);if("*"!==e)return r;for(;i=r[o++];)1===i.nodeType&&n.push(i);return n},w.find.CLASS=p.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&j)return t.getElementsByClassName(e)},u=[],m=[],(p.qsa=ee.test(k.querySelectorAll))&&(ue(function(e){var t;a.appendChild(e).innerHTML="<a id='"+C+"'></a><select id='"+C+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+z+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+z+"*(?:value|"+$+")"),e.querySelectorAll("[id~="+C+"-]").length||m.push("~="),(t=k.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||m.push("\\["+z+"*name"+z+"*="+z+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+C+"+*").length||m.push(".#.+[+~]"),e.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")}),ue(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=k.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+z+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(p.matchesSelector=ee.test(_=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ue(function(e){p.disconnectedMatch=_.call(e,"*"),_.call(e,"[s!='']:x"),u.push("!=",W)}),m=m.length&&new RegExp(m.join("|")),u=u.length&&new RegExp(u.join("|")),t=ee.test(a.compareDocumentPosition),v=t||ee.test(a.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},E=t?function(e,t){if(e===t)return c=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!p.sortDetached&&t.compareDocumentPosition(e)===i?e==k||e.ownerDocument==y&&v(y,e)?-1:t==k||t.ownerDocument==y&&v(y,t)?1:l?H(l,e)-H(l,t):0:4&i?-1:1)}:function(e,t){if(e===t)return c=!0,0;var i,n=0,o=e.parentNode,r=t.parentNode,s=[e],a=[t];if(!o||!r)return e==k?-1:t==k?1:o?-1:r?1:l?H(l,e)-H(l,t):0;if(o===r)return he(e,t);for(i=e;i=i.parentNode;)s.unshift(i);for(i=t;i=i.parentNode;)a.unshift(i);for(;s[n]===a[n];)n++;return n?he(s[n],a[n]):s[n]==y?-1:a[n]==y?1:0}),k},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if(x(e),p.matchesSelector&&j&&!I[t+" "]&&(!u||!u.test(t))&&(!m||!m.test(t)))try{var i=_.call(e,t);if(i||p.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){I(t,!0)}return 0<ae(t,k,null,[e]).length},ae.contains=function(e,t){return(e.ownerDocument||e)!=k&&x(e),v(e,t)},ae.attr=function(e,t){(e.ownerDocument||e)!=k&&x(e);var i=w.attrHandle[t.toLowerCase()],n=i&&A.call(w.attrHandle,t.toLowerCase())?i(e,t,!j):void 0;return void 0!==n?n:p.attributes||!j?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},ae.escape=function(e){return(e+"").replace(oe,re)},ae.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var t,i=[],n=0,o=0;if(c=!p.detectDuplicates,l=!p.sortStable&&e.slice(0),e.sort(E),c){for(;t=e[o++];)t===e[o]&&(n=i.push(o));for(;n--;)e.splice(i[n],1)}return l=null,e},r=ae.getText=function(e){var t,i="",n=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=r(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[n++];)i+=r(t);return i},(w=ae.selectors={cacheLength:50,createPseudo:ce,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ne,d),e[3]=(e[3]||e[4]||e[5]||"").replace(ne,d),"~="===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]||ae.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]&&ae.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return X.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&K.test(i)&&(t=f(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ne,d).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=T[e+" "];return t||(t=new RegExp("(^|"+z+")"+e+"("+z+"|$)"))&&T(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(i,n,o){return function(e){var t=ae.attr(e,i);return null==t?"!="===n:!n||(t+="","="===n?t===o:"!="===n?t!==o:"^="===n?o&&0===t.indexOf(o):"*="===n?o&&-1<t.indexOf(o):"$="===n?o&&t.slice(-o.length)===o:"~="===n?-1<(" "+t.replace(F," ")+" ").indexOf(o):"|="===n&&(t===o||t.slice(0,o.length+1)===o+"-"))}},CHILD:function(f,e,t,g,m){var _="nth"!==f.slice(0,3),v="last"!==f.slice(-4),y="of-type"===e;return 1===g&&0===m?function(e){return!!e.parentNode}:function(e,t,i){var n,o,r,s,a,l,c=_!=v?"nextSibling":"previousSibling",u=e.parentNode,d=y&&e.nodeName.toLowerCase(),h=!i&&!y,p=!1;if(u){if(_){for(;c;){for(s=e;s=s[c];)if(y?s.nodeName.toLowerCase()===d:1===s.nodeType)return!1;l=c="only"===f&&!l&&"nextSibling"}return!0}if(l=[v?u.firstChild:u.lastChild],v&&h){for(p=(a=(n=(o=(r=(s=u)[C]||(s[C]={}))[s.uniqueID]||(r[s.uniqueID]={}))[f]||[])[0]===D&&n[1])&&n[2],s=a&&u.childNodes[a];s=++a&&s&&s[c]||(p=a=0)||l.pop();)if(1===s.nodeType&&++p&&s===e){o[f]=[D,a,p];break}}else if(h&&(p=a=(n=(o=(r=(s=e)[C]||(s[C]={}))[s.uniqueID]||(r[s.uniqueID]={}))[f]||[])[0]===D&&n[1]),!1===p)for(;(s=++a&&s&&s[c]||(p=a=0)||l.pop())&&((y?s.nodeName.toLowerCase()!==d:1!==s.nodeType)||!++p||(h&&((o=(r=s[C]||(s[C]={}))[s.uniqueID]||(r[s.uniqueID]={}))[f]=[D,p]),s!==e)););return(p-=m)===g||p%g==0&&0<=p/g}}},PSEUDO:function(e,r){var t,s=w.pseudos[e]||w.setFilters[e.toLowerCase()]||ae.error("unsupported pseudo: "+e);return s[C]?s(r):1<s.length?(t=[e,e,"",r],w.setFilters.hasOwnProperty(e.toLowerCase())?ce(function(e,t){for(var i,n=s(e,r),o=n.length;o--;)e[i=H(e,n[o])]=!(t[i]=n[o])}):function(e){return s(e,0,t)}):s}},pseudos:{not:ce(function(e){var n=[],o=[],a=h(e.replace(q,"$1"));return a[C]?ce(function(e,t,i,n){for(var o,r=a(e,null,n,[]),s=e.length;s--;)(o=r[s])&&(e[s]=!(t[s]=o))}):function(e,t,i){return n[0]=e,a(n,null,i,o),n[0]=null,!o.pop()}}),has:ce(function(t){return function(e){return 0<ae(t,e).length}}),contains:ce(function(t){return t=t.replace(ne,d),function(e){return-1<(e.textContent||r(e)).indexOf(t)}}),lang:ce(function(i){return V.test(i||"")||ae.error("unsupported lang: "+i),i=i.replace(ne,d).toLowerCase(),function(e){var t;do{if(t=j?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===i||0===t.indexOf(i+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=i.location&&i.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===a},focus:function(e){return e===k.activeElement&&(!k.hasFocus||k.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!w.pseudos.empty(e)},header:function(e){return Z.test(e.nodeName)},input:function(e){return J.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:me(function(){return[0]}),last:me(function(e,t){return[t-1]}),eq:me(function(e,t,i){return[i<0?i+t:i]}),even:me(function(e,t){for(var i=0;i<t;i+=2)e.push(i);return e}),odd:me(function(e,t){for(var i=1;i<t;i+=2)e.push(i);return e}),lt:me(function(e,t,i){for(var n=i<0?i+t:t<i?t:i;0<=--n;)e.push(n);return e}),gt:me(function(e,t,i){for(var n=i<0?i+t:i;++n<t;)e.push(n);return e})}}).pseudos.nth=w.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[e]=pe(e);for(e in{submit:!0,reset:!0})w.pseudos[e]=fe(e);function ve(){}function ye(e){for(var t=0,i=e.length,n="";t<i;t++)n+=e[t].value;return n}function we(a,e,t){var l=e.dir,c=e.next,u=c||l,d=t&&"parentNode"===u,h=n++;return e.first?function(e,t,i){for(;e=e[l];)if(1===e.nodeType||d)return a(e,t,i);return!1}:function(e,t,i){var n,o,r,s=[D,h];if(i){for(;e=e[l];)if((1===e.nodeType||d)&&a(e,t,i))return!0}else for(;e=e[l];)if(1===e.nodeType||d)if(o=(r=e[C]||(e[C]={}))[e.uniqueID]||(r[e.uniqueID]={}),c&&c===e.nodeName.toLowerCase())e=e[l]||e;else{if((n=o[u])&&n[0]===D&&n[1]===h)return s[2]=n[2];if((o[u]=s)[2]=a(e,t,i))return!0}return!1}}function be(o){return 1<o.length?function(e,t,i){for(var n=o.length;n--;)if(!o[n](e,t,i))return!1;return!0}:o[0]}function xe(e,t,i,n,o){for(var r,s=[],a=0,l=e.length,c=null!=t;a<l;a++)(r=e[a])&&(i&&!i(r,n,o)||(s.push(r),c&&t.push(a)));return s}function ke(p,f,g,m,_,e){return m&&!m[C]&&(m=ke(m)),_&&!_[C]&&(_=ke(_,e)),ce(function(e,t,i,n){var o,r,s,a=[],l=[],c=t.length,u=e||function(e,t,i){for(var n=0,o=t.length;n<o;n++)ae(e,t[n],i);return i}(f||"*",i.nodeType?[i]:i,[]),d=!p||!e&&f?u:xe(u,a,p,i,n),h=g?_||(e?p:c||m)?[]:t:d;if(g&&g(d,h,i,n),m)for(o=xe(h,l),m(o,[],i,n),r=o.length;r--;)(s=o[r])&&(h[l[r]]=!(d[l[r]]=s));if(e){if(_||p){if(_){for(o=[],r=h.length;r--;)(s=h[r])&&o.push(d[r]=s);_(null,h=[],o,n)}for(r=h.length;r--;)(s=h[r])&&-1<(o=_?H(e,s):a[r])&&(e[o]=!(t[o]=s))}}else h=xe(h===t?h.splice(c,h.length):h),_?_(null,t,h,n):P.apply(t,h)})}function je(e){for(var o,t,i,n=e.length,r=w.relative[e[0].type],s=r||w.relative[" "],a=r?1:0,l=we(function(e){return e===o},s,!0),c=we(function(e){return-1<H(o,e)},s,!0),u=[function(e,t,i){var n=!r&&(i||t!==b)||((o=t).nodeType?l(e,t,i):c(e,t,i));return o=null,n}];a<n;a++)if(t=w.relative[e[a].type])u=[we(be(u),t)];else{if((t=w.filter[e[a].type].apply(null,e[a].matches))[C]){for(i=++a;i<n&&!w.relative[e[i].type];i++);return ke(1<a&&be(u),1<a&&ye(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(q,"$1"),t,a<i&&je(e.slice(a,i)),i<n&&je(e=e.slice(i)),i<n&&ye(e))}u.push(t)}return be(u)}return ve.prototype=w.filters=w.pseudos,w.setFilters=new ve,f=ae.tokenize=function(e,t){var i,n,o,r,s,a,l,c=Q[e+" "];if(c)return t?0:c.slice(0);for(s=e,a=[],l=w.preFilter;s;){for(r in i&&!(n=B.exec(s))||(n&&(s=s.slice(n[0].length)||s),a.push(o=[])),i=!1,(n=U.exec(s))&&(i=n.shift(),o.push({value:i,type:n[0].replace(q," ")}),s=s.slice(i.length)),w.filter)!(n=X[r].exec(s))||l[r]&&!(n=l[r](n))||(i=n.shift(),o.push({value:i,type:r,matches:n}),s=s.slice(i.length));if(!i)break}return t?s.length:s?ae.error(e):Q(e,a).slice(0)},h=ae.compile=function(e,t){var i,m,_,v,y,n,o=[],r=[],s=S[e+" "];if(!s){for(i=(t=t||f(e)).length;i--;)(s=je(t[i]))[C]?o.push(s):r.push(s);(s=S(e,(m=r,v=0<(_=o).length,y=0<m.length,n=function(e,t,i,n,o){var r,s,a,l=0,c="0",u=e&&[],d=[],h=b,p=e||y&&w.find.TAG("*",o),f=D+=null==h?1:Math.random()||.1,g=p.length;for(o&&(b=t==k||t||o);c!==g&&null!=(r=p[c]);c++){if(y&&r){for(s=0,t||r.ownerDocument==k||(x(r),i=!j);a=m[s++];)if(a(r,t||k,i)){n.push(r);break}o&&(D=f)}v&&((r=!a&&r)&&l--,e&&u.push(r))}if(l+=c,v&&c!==l){for(s=0;a=_[s++];)a(u,d,t,i);if(e){if(0<l)for(;c--;)u[c]||d[c]||(d[c]=M.call(n));d=xe(d)}P.apply(n,d),o&&!e&&0<d.length&&1<l+_.length&&ae.uniqueSort(n)}return o&&(D=f,b=h),u},v?ce(n):n))).selector=e}return s},g=ae.select=function(e,t,i,n){var o,r,s,a,l,c="function"==typeof e&&e,u=!n&&f(e=c.selector||e);if(i=i||[],1===u.length){if(2<(r=u[0]=u[0].slice(0)).length&&"ID"===(s=r[0]).type&&9===t.nodeType&&j&&w.relative[r[1].type]){if(!(t=(w.find.ID(s.matches[0].replace(ne,d),t)||[])[0]))return i;c&&(t=t.parentNode),e=e.slice(r.shift().value.length)}for(o=X.needsContext.test(e)?0:r.length;o--&&(s=r[o],!w.relative[a=s.type]);)if((l=w.find[a])&&(n=l(s.matches[0].replace(ne,d),ie.test(r[0].type)&&_e(t.parentNode)||t))){if(r.splice(o,1),!(e=n.length&&ye(r)))return P.apply(i,n),i;break}}return(c||h(e,u))(n,t,!j,i,!t||ie.test(e)&&_e(t.parentNode)||t),i},p.sortStable=C.split("").sort(E).join("")===C,p.detectDuplicates=!!c,x(),p.sortDetached=ue(function(e){return 1&e.compareDocumentPosition(k.createElement("fieldset"))}),ue(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||de("type|href|height|width",function(e,t,i){if(!i)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),p.attributes&&ue(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||de("value",function(e,t,i){if(!i&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ue(function(e){return null==e.getAttribute("disabled")})||de($,function(e,t,i){var n;if(!i)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}),ae}(k);C.find=p,C.expr=p.selectors,C.expr[":"]=C.expr.pseudos,C.uniqueSort=C.unique=p.uniqueSort,C.text=p.getText,C.isXMLDoc=p.isXML,C.contains=p.contains,C.escapeSelector=p.escape;function f(e,t,i){for(var n=[],o=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&C(e).is(i))break;n.push(e)}return n}function x(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i}var D=C.expr.match.needsContext;function T(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var Q=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function S(e,i,n){return y(i)?C.grep(e,function(e,t){return!!i.call(e,t,e)!==n}):i.nodeType?C.grep(e,function(e){return e===i!==n}):"string"!=typeof i?C.grep(e,function(e){return-1<o.call(i,e)!==n}):C.filter(i,e,n)}C.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?C.find.matchesSelector(n,e)?[n]:[]:C.find.matches(e,C.grep(t,function(e){return 1===e.nodeType}))},C.fn.extend({find:function(e){var t,i,n=this.length,o=this;if("string"!=typeof e)return this.pushStack(C(e).filter(function(){for(t=0;t<n;t++)if(C.contains(o[t],this))return!0}));for(i=this.pushStack([]),t=0;t<n;t++)C.find(e,o[t],i);return 1<n?C.uniqueSort(i):i},filter:function(e){return this.pushStack(S(this,e||[],!1))},not:function(e){return this.pushStack(S(this,e||[],!0))},is:function(e){return!!S(this,"string"==typeof e&&D.test(e)?C(e):e||[],!1).length}});var I,E=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(C.fn.init=function(e,t,i){var n,o;if(!e)return this;if(i=i||I,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==i.ready?i.ready(e):e(C):C.makeArray(e,this);if(!(n="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:E.exec(e))||!n[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof C?t[0]:t,C.merge(this,C.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:j,!0)),Q.test(n[1])&&C.isPlainObject(t))for(n in t)y(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(o=j.getElementById(n[2]))&&(this[0]=o,this.length=1),this}).prototype=C.fn,I=C(j);var A=/^(?:parents|prev(?:Until|All))/,M={children:!0,contents:!0,next:!0,prev:!0};function N(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}C.fn.extend({has:function(e){var t=C(e,this),i=t.length;return this.filter(function(){for(var e=0;e<i;e++)if(C.contains(this,t[e]))return!0})},closest:function(e,t){var i,n=0,o=this.length,r=[],s="string"!=typeof e&&C(e);if(!D.test(e))for(;n<o;n++)for(i=this[n];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(s?-1<s.index(i):1===i.nodeType&&C.find.matchesSelector(i,e))){r.push(i);break}return this.pushStack(1<r.length?C.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?o.call(C(e),this[0]):o.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(C.uniqueSort(C.merge(this.get(),C(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),C.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return f(e,"parentNode")},parentsUntil:function(e,t,i){return f(e,"parentNode",i)},next:function(e){return N(e,"nextSibling")},prev:function(e){return N(e,"previousSibling")},nextAll:function(e){return f(e,"nextSibling")},prevAll:function(e){return f(e,"previousSibling")},nextUntil:function(e,t,i){return f(e,"nextSibling",i)},prevUntil:function(e,t,i){return f(e,"previousSibling",i)},siblings:function(e){return x((e.parentNode||{}).firstChild,e)},children:function(e){return x(e.firstChild)},contents:function(e){return null!=e.contentDocument&&n(e.contentDocument)?e.contentDocument:(T(e,"template")&&(e=e.content||e),C.merge([],e.childNodes))}},function(n,o){C.fn[n]=function(e,t){var i=C.map(this,o,e);return"Until"!==n.slice(-5)&&(t=e),t&&"string"==typeof t&&(i=C.filter(t,i)),1<this.length&&(M[n]||C.uniqueSort(i),A.test(n)&&i.reverse()),this.pushStack(i)}});var P=/[^\x20\t\r\n\f]+/g;function O(e){return e}function H(e){throw e}function $(e,t,i,n){var o;try{e&&y(o=e.promise)?o.call(e).done(t).fail(i):e&&y(o=e.then)?o.call(e,t,i):t.apply(void 0,[e].slice(n))}catch(e){i.apply(void 0,[e])}}C.Callbacks=function(n){var e,i;n="string"==typeof n?(e=n,i={},C.each(e.match(P)||[],function(e,t){i[t]=!0}),i):C.extend({},n);function o(){for(a=a||n.once,s=r=!0;c.length;u=-1)for(t=c.shift();++u<l.length;)!1===l[u].apply(t[0],t[1])&&n.stopOnFalse&&(u=l.length,t=!1);n.memory||(t=!1),r=!1,a&&(l=t?[]:"")}var r,t,s,a,l=[],c=[],u=-1,d={add:function(){return l&&(t&&!r&&(u=l.length-1,c.push(t)),function i(e){C.each(e,function(e,t){y(t)?n.unique&&d.has(t)||l.push(t):t&&t.length&&"string"!==b(t)&&i(t)})}(arguments),t&&!r&&o()),this},remove:function(){return C.each(arguments,function(e,t){for(var i;-1<(i=C.inArray(t,l,i));)l.splice(i,1),i<=u&&u--}),this},has:function(e){return e?-1<C.inArray(e,l):0<l.length},empty:function(){return l=l&&[],this},disable:function(){return a=c=[],l=t="",this},disabled:function(){return!l},lock:function(){return a=c=[],t||r||(l=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],c.push(t),r||o()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!s}};return d},C.extend({Deferred:function(e){var r=[["notify","progress",C.Callbacks("memory"),C.Callbacks("memory"),2],["resolve","done",C.Callbacks("once memory"),C.Callbacks("once memory"),0,"resolved"],["reject","fail",C.Callbacks("once memory"),C.Callbacks("once memory"),1,"rejected"]],o="pending",s={state:function(){return o},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return s.then(null,e)},pipe:function(){var o=arguments;return C.Deferred(function(n){C.each(r,function(e,t){var i=y(o[t[4]])&&o[t[4]];a[t[1]](function(){var e=i&&i.apply(this,arguments);e&&y(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[t[0]+"With"](this,i?[e]:arguments)})}),o=null}).promise()},then:function(t,i,n){var l=0;function c(o,r,s,a){return function(){function e(){var e,t;if(!(o<l)){if((e=s.apply(i,n))===r.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,y(t)?a?t.call(e,c(l,r,O,a),c(l,r,H,a)):(l++,t.call(e,c(l,r,O,a),c(l,r,H,a),c(l,r,O,r.notifyWith))):(s!==O&&(i=void 0,n=[e]),(a||r.resolveWith)(i,n))}}var i=this,n=arguments,t=a?e:function(){try{e()}catch(e){C.Deferred.exceptionHook&&C.Deferred.exceptionHook(e,t.stackTrace),l<=o+1&&(s!==H&&(i=void 0,n=[e]),r.rejectWith(i,n))}};o?t():(C.Deferred.getStackHook&&(t.stackTrace=C.Deferred.getStackHook()),k.setTimeout(t))}}return C.Deferred(function(e){r[0][3].add(c(0,e,y(n)?n:O,e.notifyWith)),r[1][3].add(c(0,e,y(t)?t:O)),r[2][3].add(c(0,e,y(i)?i:H))}).promise()},promise:function(e){return null!=e?C.extend(e,s):s}},a={};return C.each(r,function(e,t){var i=t[2],n=t[5];s[t[1]]=i.add,n&&i.add(function(){o=n},r[3-e][2].disable,r[3-e][3].disable,r[0][2].lock,r[0][3].lock),i.add(t[3].fire),a[t[0]]=function(){return a[t[0]+"With"](this===a?void 0:this,arguments),this},a[t[0]+"With"]=i.fireWith}),s.promise(a),e&&e.call(a,a),a},when:function(e){function t(t){return function(e){o[t]=this,r[t]=1<arguments.length?a.call(arguments):e,--i||s.resolveWith(o,r)}}var i=arguments.length,n=i,o=Array(n),r=a.call(arguments),s=C.Deferred();if(i<=1&&($(e,s.done(t(n)).resolve,s.reject,!i),"pending"===s.state()||y(r[n]&&r[n].then)))return s.then();for(;n--;)$(r[n],t(n),s.reject);return s.promise()}});var z=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;C.Deferred.exceptionHook=function(e,t){k.console&&k.console.warn&&e&&z.test(e.name)&&k.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},C.readyException=function(e){k.setTimeout(function(){throw e})};var R=C.Deferred();function L(){j.removeEventListener("DOMContentLoaded",L),k.removeEventListener("load",L),C.ready()}C.fn.ready=function(e){return R.then(e).catch(function(e){C.readyException(e)}),this},C.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--C.readyWait:C.isReady)||(C.isReady=!0)!==e&&0<--C.readyWait||R.resolveWith(j,[C])}}),C.ready.then=R.then,"complete"===j.readyState||"loading"!==j.readyState&&!j.documentElement.doScroll?k.setTimeout(C.ready):(j.addEventListener("DOMContentLoaded",L),k.addEventListener("load",L));var W=function(e,t,i,n,o,r,s){var a=0,l=e.length,c=null==i;if("object"===b(i))for(a in o=!0,i)W(e,t,a,i[a],!0,r,s);else if(void 0!==n&&(o=!0,y(n)||(s=!0),c&&(t=s?(t.call(e,n),null):(c=t,function(e,t,i){return c.call(C(e),i)})),t))for(;a<l;a++)t(e[a],i,s?n:n.call(e[a],a,t(e[a],i)));return o?e:c?t.call(e):l?t(e[0],i):r},F=/^-ms-/,q=/-([a-z])/g;function B(e,t){return t.toUpperCase()}function U(e){return e.replace(F,"ms-").replace(q,B)}function Y(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function K(){this.expando=C.expando+K.uid++}K.uid=1,K.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Y(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,i){var n,o=this.cache(e);if("string"==typeof t)o[U(t)]=i;else for(n in t)o[U(n)]=t[n];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][U(t)]},access:function(e,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(e,t):(this.set(e,t,i),void 0!==i?i:t)},remove:function(e,t){var i,n=e[this.expando];if(void 0!==n){if(void 0!==t){i=(t=Array.isArray(t)?t.map(U):(t=U(t))in n?[t]:t.match(P)||[]).length;for(;i--;)delete n[t[i]]}void 0!==t&&!C.isEmptyObject(n)||(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!C.isEmptyObject(t)}};var V=new K,X=new K,G=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,J=/[A-Z]/g;function Z(e,t,i){var n,o;if(void 0===i&&1===e.nodeType)if(n="data-"+t.replace(J,"-$&").toLowerCase(),"string"==typeof(i=e.getAttribute(n))){try{i="true"===(o=i)||"false"!==o&&("null"===o?null:o===+o+""?+o:G.test(o)?JSON.parse(o):o)}catch(e){}X.set(e,t,i)}else i=void 0;return i}C.extend({hasData:function(e){return X.hasData(e)||V.hasData(e)},data:function(e,t,i){return X.access(e,t,i)},removeData:function(e,t){X.remove(e,t)},_data:function(e,t,i){return V.access(e,t,i)},_removeData:function(e,t){V.remove(e,t)}}),C.fn.extend({data:function(i,e){var t,n,o,r=this[0],s=r&&r.attributes;if(void 0!==i)return"object"==typeof i?this.each(function(){X.set(this,i)}):W(this,function(e){var t;if(r&&void 0===e)return void 0!==(t=X.get(r,i))?t:void 0!==(t=Z(r,i))?t:void 0;this.each(function(){X.set(this,i,e)})},null,e,1<arguments.length,null,!0);if(this.length&&(o=X.get(r),1===r.nodeType&&!V.get(r,"hasDataAttrs"))){for(t=s.length;t--;)s[t]&&0===(n=s[t].name).indexOf("data-")&&(n=U(n.slice(5)),Z(r,n,o[n]));V.set(r,"hasDataAttrs",!0)}return o},removeData:function(e){return this.each(function(){X.remove(this,e)})}}),C.extend({queue:function(e,t,i){var n;if(e)return t=(t||"fx")+"queue",n=V.get(e,t),i&&(!n||Array.isArray(i)?n=V.access(e,t,C.makeArray(i)):n.push(i)),n||[]},dequeue:function(e,t){t=t||"fx";var i=C.queue(e,t),n=i.length,o=i.shift(),r=C._queueHooks(e,t);"inprogress"===o&&(o=i.shift(),n--),o&&("fx"===t&&i.unshift("inprogress"),delete r.stop,o.call(e,function(){C.dequeue(e,t)},r)),!n&&r&&r.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return V.get(e,i)||V.access(e,i,{empty:C.Callbacks("once memory").add(function(){V.remove(e,[t+"queue",i])})})}}),C.fn.extend({queue:function(t,i){var e=2;return"string"!=typeof t&&(i=t,t="fx",e--),arguments.length<e?C.queue(this[0],t):void 0===i?this:this.each(function(){var e=C.queue(this,t,i);C._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&C.dequeue(this,t)})},dequeue:function(e){return this.each(function(){C.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function i(){--o||r.resolveWith(s,[s])}var n,o=1,r=C.Deferred(),s=this,a=this.length;for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=V.get(s[a],e+"queueHooks"))&&n.empty&&(o++,n.empty.add(i));return i(),r.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ie=["Top","Right","Bottom","Left"],ne=j.documentElement,oe=function(e){return C.contains(e.ownerDocument,e)},re={composed:!0};ne.getRootNode&&(oe=function(e){return C.contains(e.ownerDocument,e)||e.getRootNode(re)===e.ownerDocument});function se(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&oe(e)&&"none"===C.css(e,"display")}function ae(e,t,i,n){var o,r,s=20,a=n?function(){return n.cur()}:function(){return C.css(e,t,"")},l=a(),c=i&&i[3]||(C.cssNumber[t]?"":"px"),u=e.nodeType&&(C.cssNumber[t]||"px"!==c&&+l)&&te.exec(C.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;s--;)C.style(e,t,u+c),(1-r)*(1-(r=a()/l||.5))<=0&&(s=0),u/=r;u*=2,C.style(e,t,u+c),i=i||[]}return i&&(u=+u||+l||0,o=i[1]?u+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=u,n.end=o)),o}var le={};function ce(e,t){for(var i,n,o,r,s,a,l,c=[],u=0,d=e.length;u<d;u++)(n=e[u]).style&&(i=n.style.display,t?("none"===i&&(c[u]=V.get(n,"display")||null,c[u]||(n.style.display="")),""===n.style.display&&se(n)&&(c[u]=(l=s=r=void 0,s=(o=n).ownerDocument,a=o.nodeName,(l=le[a])||(r=s.body.appendChild(s.createElement(a)),l=C.css(r,"display"),r.parentNode.removeChild(r),"none"===l&&(l="block"),le[a]=l)))):"none"!==i&&(c[u]="none",V.set(n,"display",i)));for(u=0;u<d;u++)null!=c[u]&&(e[u].style.display=c[u]);return e}C.fn.extend({show:function(){return ce(this,!0)},hide:function(){return ce(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){se(this)?C(this).show():C(this).hide()})}});var ue,de,he=/^(?:checkbox|radio)$/i,pe=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,fe=/^$|^module$|\/(?:java|ecma)script/i;ue=j.createDocumentFragment().appendChild(j.createElement("div")),(de=j.createElement("input")).setAttribute("type","radio"),de.setAttribute("checked","checked"),de.setAttribute("name","t"),ue.appendChild(de),v.checkClone=ue.cloneNode(!0).cloneNode(!0).lastChild.checked,ue.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!ue.cloneNode(!0).lastChild.defaultValue,ue.innerHTML="<option></option>",v.option=!!ue.lastChild;var ge={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function me(e,t){var i;return i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&T(e,t)?C.merge([e],i):i}function _e(e,t){for(var i=0,n=e.length;i<n;i++)V.set(e[i],"globalEval",!t||V.get(t[i],"globalEval"))}ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td,v.option||(ge.optgroup=ge.option=[1,"<select multiple='multiple'>","</select>"]);var ve=/<|&#?\w+;/;function ye(e,t,i,n,o){for(var r,s,a,l,c,u,d=t.createDocumentFragment(),h=[],p=0,f=e.length;p<f;p++)if((r=e[p])||0===r)if("object"===b(r))C.merge(h,r.nodeType?[r]:r);else if(ve.test(r)){for(s=s||d.appendChild(t.createElement("div")),a=(pe.exec(r)||["",""])[1].toLowerCase(),l=ge[a]||ge._default,s.innerHTML=l[1]+C.htmlPrefilter(r)+l[2],u=l[0];u--;)s=s.lastChild;C.merge(h,s.childNodes),(s=d.firstChild).textContent=""}else h.push(t.createTextNode(r));for(d.textContent="",p=0;r=h[p++];)if(n&&-1<C.inArray(r,n))o&&o.push(r);else if(c=oe(r),s=me(d.appendChild(r),"script"),c&&_e(s),i)for(u=0;r=s[u++];)fe.test(r.type||"")&&i.push(r);return d}var we=/^key/,be=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,xe=/^([^.]*)(?:\.(.+)|)/;function ke(){return!0}function je(){return!1}function Ce(e,t){return e===function(){try{return j.activeElement}catch(e){}}()==("focus"===t)}function De(e,t,i,n,o,r){var s,a;if("object"==typeof t){for(a in"string"!=typeof i&&(n=n||i,i=void 0),t)De(e,a,i,n,t[a],r);return e}if(null==n&&null==o?(o=i,n=i=void 0):null==o&&("string"==typeof i?(o=n,n=void 0):(o=n,n=i,i=void 0)),!1===o)o=je;else if(!o)return e;return 1===r&&(s=o,(o=function(e){return C().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=C.guid++)),e.each(function(){C.event.add(this,t,o,n,i)})}function Te(e,o,r){r?(V.set(e,o,!1),C.event.add(e,o,{namespace:!1,handler:function(e){var t,i,n=V.get(this,o);if(1&e.isTrigger&&this[o]){if(n.length)(C.event.special[o]||{}).delegateType&&e.stopPropagation();else if(n=a.call(arguments),V.set(this,o,n),t=r(this,o),this[o](),n!==(i=V.get(this,o))||t?V.set(this,o,!1):i={},n!==i)return e.stopImmediatePropagation(),e.preventDefault(),i.value}else n.length&&(V.set(this,o,{value:C.event.trigger(C.extend(n[0],C.Event.prototype),n.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===V.get(e,o)&&C.event.add(e,o,ke)}C.event={global:{},add:function(t,e,i,n,o){var r,s,a,l,c,u,d,h,p,f,g,m=V.get(t);if(Y(t))for(i.handler&&(i=(r=i).handler,o=r.selector),o&&C.find.matchesSelector(ne,o),i.guid||(i.guid=C.guid++),(l=m.events)||(l=m.events=Object.create(null)),(s=m.handle)||(s=m.handle=function(e){return void 0!==C&&C.event.triggered!==e.type?C.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(P)||[""]).length;c--;)p=g=(a=xe.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),p&&(d=C.event.special[p]||{},p=(o?d.delegateType:d.bindType)||p,d=C.event.special[p]||{},u=C.extend({type:p,origType:g,data:n,handler:i,guid:i.guid,selector:o,needsContext:o&&C.expr.match.needsContext.test(o),namespace:f.join(".")},r),(h=l[p])||((h=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,n,f,s)||t.addEventListener&&t.addEventListener(p,s)),d.add&&(d.add.call(t,u),u.handler.guid||(u.handler.guid=i.guid)),o?h.splice(h.delegateCount++,0,u):h.push(u),C.event.global[p]=!0)},remove:function(e,t,i,n,o){var r,s,a,l,c,u,d,h,p,f,g,m=V.hasData(e)&&V.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(P)||[""]).length;c--;)if(p=g=(a=xe.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),p){for(d=C.event.special[p]||{},h=l[p=(n?d.delegateType:d.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=r=h.length;r--;)u=h[r],!o&&g!==u.origType||i&&i.guid!==u.guid||a&&!a.test(u.namespace)||n&&n!==u.selector&&("**"!==n||!u.selector)||(h.splice(r,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));s&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,f,m.handle)||C.removeEvent(e,p,m.handle),delete l[p])}else for(p in l)C.event.remove(e,p+t[c],i,n,!0);C.isEmptyObject(l)&&V.remove(e,"handle events")}},dispatch:function(e){var t,i,n,o,r,s,a=new Array(arguments.length),l=C.event.fix(e),c=(V.get(this,"events")||Object.create(null))[l.type]||[],u=C.event.special[l.type]||{};for(a[0]=l,t=1;t<arguments.length;t++)a[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(s=C.event.handlers.call(this,l,c),t=0;(o=s[t++])&&!l.isPropagationStopped();)for(l.currentTarget=o.elem,i=0;(r=o.handlers[i++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==r.namespace&&!l.rnamespace.test(r.namespace)||(l.handleObj=r,l.data=r.data,void 0!==(n=((C.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,a))&&!1===(l.result=n)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var i,n,o,r,s,a=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&1<=e.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(r=[],s={},i=0;i<l;i++)void 0===s[o=(n=t[i]).selector+" "]&&(s[o]=n.needsContext?-1<C(o,this).index(c):C.find(o,this,null,[c]).length),s[o]&&r.push(n);r.length&&a.push({elem:c,handlers:r})}return c=this,l<t.length&&a.push({elem:c,handlers:t.slice(l)}),a},addProp:function(t,e){Object.defineProperty(C.Event.prototype,t,{enumerable:!0,configurable:!0,get:y(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[C.expando]?e:new C.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return he.test(t.type)&&t.click&&T(t,"input")&&Te(t,"click",ke),!1},trigger:function(e){var t=this||e;return he.test(t.type)&&t.click&&T(t,"input")&&Te(t,"click"),!0},_default:function(e){var t=e.target;return he.test(t.type)&&t.click&&T(t,"input")&&V.get(t,"click")||T(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},C.removeEvent=function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i)},C.Event=function(e,t){if(!(this instanceof C.Event))return new C.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?ke:je,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&C.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[C.expando]=!0},C.Event.prototype={constructor:C.Event,isDefaultPrevented:je,isPropagationStopped:je,isImmediatePropagationStopped:je,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ke,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ke,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=ke,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},C.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&we.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&be.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},C.event.addProp),C.each({focus:"focusin",blur:"focusout"},function(e,t){C.event.special[e]={setup:function(){return Te(this,e,Ce),!1},trigger:function(){return Te(this,e),!0},delegateType:t}}),C.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,o){C.event.special[e]={delegateType:o,bindType:o,handle:function(e){var t,i=e.relatedTarget,n=e.handleObj;return i&&(i===this||C.contains(this,i))||(e.type=n.origType,t=n.handler.apply(this,arguments),e.type=o),t}}}),C.fn.extend({on:function(e,t,i,n){return De(this,e,t,i,n)},one:function(e,t,i,n){return De(this,e,t,i,n,1)},off:function(e,t,i){var n,o;if(e&&e.preventDefault&&e.handleObj)return n=e.handleObj,C(e.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(i=t,t=void 0),!1===i&&(i=je),this.each(function(){C.event.remove(this,e,i,t)});for(o in e)this.off(o,t,e[o]);return this}});var Qe=/<script|<style|<link/i,Se=/checked\s*(?:[^=]|=\s*.checked.)/i,Ie=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ee(e,t){return T(e,"table")&&T(11!==t.nodeType?t:t.firstChild,"tr")&&C(e).children("tbody")[0]||e}function Ae(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Me(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ne(e,t){var i,n,o,r,s,a;if(1===t.nodeType){if(V.hasData(e)&&(a=V.get(e).events))for(o in V.remove(t,"handle events"),a)for(i=0,n=a[o].length;i<n;i++)C.event.add(t,o,a[o][i]);X.hasData(e)&&(r=X.access(e),s=C.extend({},r),X.set(t,s))}}function Pe(i,n,o,r){n=m(n);var e,t,s,a,l,c,u=0,d=i.length,h=d-1,p=n[0],f=y(p);if(f||1<d&&"string"==typeof p&&!v.checkClone&&Se.test(p))return i.each(function(e){var t=i.eq(e);f&&(n[0]=p.call(this,e,t.html())),Pe(t,n,o,r)});if(d&&(t=(e=ye(n,i[0].ownerDocument,!1,i,r)).firstChild,1===e.childNodes.length&&(e=t),t||r)){for(a=(s=C.map(me(e,"script"),Ae)).length;u<d;u++)l=e,u!==h&&(l=C.clone(l,!0,!0),a&&C.merge(s,me(l,"script"))),o.call(i[u],l,u);if(a)for(c=s[s.length-1].ownerDocument,C.map(s,Me),u=0;u<a;u++)l=s[u],fe.test(l.type||"")&&!V.access(l,"globalEval")&&C.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?C._evalUrl&&!l.noModule&&C._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},c):w(l.textContent.replace(Ie,""),l,c))}return i}function Oe(e,t,i){for(var n,o=t?C.filter(t,e):e,r=0;null!=(n=o[r]);r++)i||1!==n.nodeType||C.cleanData(me(n)),n.parentNode&&(i&&oe(n)&&_e(me(n,"script")),n.parentNode.removeChild(n));return e}C.extend({htmlPrefilter:function(e){return e},clone:function(e,t,i){var n,o,r,s,a,l,c,u=e.cloneNode(!0),d=oe(e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||C.isXMLDoc(e)))for(s=me(u),n=0,o=(r=me(e)).length;n<o;n++)a=r[n],"input"===(c=(l=s[n]).nodeName.toLowerCase())&&he.test(a.type)?l.checked=a.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=a.defaultValue);if(t)if(i)for(r=r||me(e),s=s||me(u),n=0,o=r.length;n<o;n++)Ne(r[n],s[n]);else Ne(e,u);return 0<(s=me(u,"script")).length&&_e(s,!d&&me(e,"script")),u},cleanData:function(e){for(var t,i,n,o=C.event.special,r=0;void 0!==(i=e[r]);r++)if(Y(i)){if(t=i[V.expando]){if(t.events)for(n in t.events)o[n]?C.event.remove(i,n):C.removeEvent(i,n,t.handle);i[V.expando]=void 0}i[X.expando]&&(i[X.expando]=void 0)}}}),C.fn.extend({detach:function(e){return Oe(this,e,!0)},remove:function(e){return Oe(this,e)},text:function(e){return W(this,function(e){return void 0===e?C.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Pe(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ee(this,e).appendChild(e)})},prepend:function(){return Pe(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ee(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Pe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Pe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(C.cleanData(me(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return C.clone(this,e,t)})},html:function(e){return W(this,function(e){var t=this[0]||{},i=0,n=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Qe.test(e)&&!ge[(pe.exec(e)||["",""])[1].toLowerCase()]){e=C.htmlPrefilter(e);try{for(;i<n;i++)1===(t=this[i]||{}).nodeType&&(C.cleanData(me(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var i=[];return Pe(this,arguments,function(e){var t=this.parentNode;C.inArray(this,i)<0&&(C.cleanData(me(this)),t&&t.replaceChild(e,this))},i)}}),C.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,s){C.fn[e]=function(e){for(var t,i=[],n=C(e),o=n.length-1,r=0;r<=o;r++)t=r===o?this:this.clone(!0),C(n[r])[s](t),l.apply(i,t.get());return this.pushStack(i)}});function He(e,t,i){var n,o,r={};for(o in t)r[o]=e.style[o],e.style[o]=t[o];for(o in n=i.call(e),t)e.style[o]=r[o];return n}var $e,ze,Re,Le,We,Fe,qe,Be,Ue=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Ye=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=k),t.getComputedStyle(e)},Ke=new RegExp(ie.join("|"),"i");function Ve(e,t,i){var n,o,r,s,a=e.style;return(i=i||Ye(e))&&(""!==(s=i.getPropertyValue(t)||i[t])||oe(e)||(s=C.style(e,t)),!v.pixelBoxStyles()&&Ue.test(s)&&Ke.test(t)&&(n=a.width,o=a.minWidth,r=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=i.width,a.width=n,a.minWidth=o,a.maxWidth=r)),void 0!==s?s+"":s}function Xe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}function Ge(){if(Be){qe.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Be.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ne.appendChild(qe).appendChild(Be);var e=k.getComputedStyle(Be);$e="1%"!==e.top,Fe=12===Je(e.marginLeft),Be.style.right="60%",Le=36===Je(e.right),ze=36===Je(e.width),Be.style.position="absolute",Re=12===Je(Be.offsetWidth/3),ne.removeChild(qe),Be=null}}function Je(e){return Math.round(parseFloat(e))}qe=j.createElement("div"),(Be=j.createElement("div")).style&&(Be.style.backgroundClip="content-box",Be.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===Be.style.backgroundClip,C.extend(v,{boxSizingReliable:function(){return Ge(),ze},pixelBoxStyles:function(){return Ge(),Le},pixelPosition:function(){return Ge(),$e},reliableMarginLeft:function(){return Ge(),Fe},scrollboxSize:function(){return Ge(),Re},reliableTrDimensions:function(){var e,t,i,n;return null==We&&(e=j.createElement("table"),t=j.createElement("tr"),i=j.createElement("div"),e.style.cssText="position:absolute;left:-11111px",t.style.height="1px",i.style.height="9px",ne.appendChild(e).appendChild(t).appendChild(i),n=k.getComputedStyle(t),We=3<parseInt(n.height),ne.removeChild(e)),We}}));var Ze=["Webkit","Moz","ms"],et=j.createElement("div").style,tt={};function it(e){return C.cssProps[e]||tt[e]||(e in et?e:tt[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),i=Ze.length;i--;)if((e=Ze[i]+t)in et)return e}(e)||e)}var nt=/^(none|table(?!-c[ea]).+)/,ot=/^--/,rt={position:"absolute",visibility:"hidden",display:"block"},st={letterSpacing:"0",fontWeight:"400"};function at(e,t,i){var n=te.exec(t);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):t}function lt(e,t,i,n,o,r){var s="width"===t?1:0,a=0,l=0;if(i===(n?"border":"content"))return 0;for(;s<4;s+=2)"margin"===i&&(l+=C.css(e,i+ie[s],!0,o)),n?("content"===i&&(l-=C.css(e,"padding"+ie[s],!0,o)),"margin"!==i&&(l-=C.css(e,"border"+ie[s]+"Width",!0,o))):(l+=C.css(e,"padding"+ie[s],!0,o),"padding"!==i?l+=C.css(e,"border"+ie[s]+"Width",!0,o):a+=C.css(e,"border"+ie[s]+"Width",!0,o));return!n&&0<=r&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-r-l-a-.5))||0),l}function ct(e,t,i){var n=Ye(e),o=(!v.boxSizingReliable()||i)&&"border-box"===C.css(e,"boxSizing",!1,n),r=o,s=Ve(e,t,n),a="offset"+t[0].toUpperCase()+t.slice(1);if(Ue.test(s)){if(!i)return s;s="auto"}return(!v.boxSizingReliable()&&o||!v.reliableTrDimensions()&&T(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===C.css(e,"display",!1,n))&&e.getClientRects().length&&(o="border-box"===C.css(e,"boxSizing",!1,n),(r=a in e)&&(s=e[a])),(s=parseFloat(s)||0)+lt(e,t,i||(o?"border":"content"),r,n,s)+"px"}function ut(e,t,i,n,o){return new ut.prototype.init(e,t,i,n,o)}C.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=Ve(e,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,i,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,r,s,a=U(t),l=ot.test(t),c=e.style;if(l||(t=it(a)),s=C.cssHooks[t]||C.cssHooks[a],void 0===i)return s&&"get"in s&&void 0!==(o=s.get(e,!1,n))?o:c[t];"string"==(r=typeof i)&&(o=te.exec(i))&&o[1]&&(i=ae(e,t,o),r="number"),null!=i&&i==i&&("number"!==r||l||(i+=o&&o[3]||(C.cssNumber[a]?"":"px")),v.clearCloneStyle||""!==i||0!==t.indexOf("background")||(c[t]="inherit"),s&&"set"in s&&void 0===(i=s.set(e,i,n))||(l?c.setProperty(t,i):c[t]=i))}},css:function(e,t,i,n){var o,r,s,a=U(t);return ot.test(t)||(t=it(a)),(s=C.cssHooks[t]||C.cssHooks[a])&&"get"in s&&(o=s.get(e,!0,i)),void 0===o&&(o=Ve(e,t,n)),"normal"===o&&t in st&&(o=st[t]),""===i||i?(r=parseFloat(o),!0===i||isFinite(r)?r||0:o):o}}),C.each(["height","width"],function(e,l){C.cssHooks[l]={get:function(e,t,i){if(t)return!nt.test(C.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ct(e,l,i):He(e,rt,function(){return ct(e,l,i)})},set:function(e,t,i){var n,o=Ye(e),r=!v.scrollboxSize()&&"absolute"===o.position,s=(r||i)&&"border-box"===C.css(e,"boxSizing",!1,o),a=i?lt(e,l,i,s,o):0;return s&&r&&(a-=Math.ceil(e["offset"+l[0].toUpperCase()+l.slice(1)]-parseFloat(o[l])-lt(e,l,"border",!1,o)-.5)),a&&(n=te.exec(t))&&"px"!==(n[3]||"px")&&(e.style[l]=t,t=C.css(e,l)),at(0,t,a)}}}),C.cssHooks.marginLeft=Xe(v.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ve(e,"marginLeft"))||e.getBoundingClientRect().left-He(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),C.each({margin:"",padding:"",border:"Width"},function(o,r){C.cssHooks[o+r]={expand:function(e){for(var t=0,i={},n="string"==typeof e?e.split(" "):[e];t<4;t++)i[o+ie[t]+r]=n[t]||n[t-2]||n[0];return i}},"margin"!==o&&(C.cssHooks[o+r].set=at)}),C.fn.extend({css:function(e,t){return W(this,function(e,t,i){var n,o,r={},s=0;if(Array.isArray(t)){for(n=Ye(e),o=t.length;s<o;s++)r[t[s]]=C.css(e,t[s],!1,n);return r}return void 0!==i?C.style(e,t,i):C.css(e,t)},e,t,1<arguments.length)}}),((C.Tween=ut).prototype={constructor:ut,init:function(e,t,i,n,o,r){this.elem=e,this.prop=i,this.easing=o||C.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=r||(C.cssNumber[i]?"":"px")},cur:function(){var e=ut.propHooks[this.prop];return e&&e.get?e.get(this):ut.propHooks._default.get(this)},run:function(e){var t,i=ut.propHooks[this.prop];return this.options.duration?this.pos=t=C.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):ut.propHooks._default.set(this),this}}).init.prototype=ut.prototype,(ut.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=C.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){C.fx.step[e.prop]?C.fx.step[e.prop](e):1!==e.elem.nodeType||!C.cssHooks[e.prop]&&null==e.elem.style[it(e.prop)]?e.elem[e.prop]=e.now:C.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=ut.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},C.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},C.fx=ut.prototype.init,C.fx.step={};var dt,ht,pt,ft,gt=/^(?:toggle|show|hide)$/,mt=/queueHooks$/;function _t(){ht&&(!1===j.hidden&&k.requestAnimationFrame?k.requestAnimationFrame(_t):k.setTimeout(_t,C.fx.interval),C.fx.tick())}function vt(){return k.setTimeout(function(){dt=void 0}),dt=Date.now()}function yt(e,t){var i,n=0,o={height:e};for(t=t?1:0;n<4;n+=2-t)o["margin"+(i=ie[n])]=o["padding"+i]=e;return t&&(o.opacity=o.width=e),o}function wt(e,t,i){for(var n,o=(bt.tweeners[t]||[]).concat(bt.tweeners["*"]),r=0,s=o.length;r<s;r++)if(n=o[r].call(i,t,e))return n}function bt(r,e,t){var i,s,n=0,o=bt.prefilters.length,a=C.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var e=dt||vt(),t=Math.max(0,c.startTime+c.duration-e),i=1-(t/c.duration||0),n=0,o=c.tweens.length;n<o;n++)c.tweens[n].run(i);return a.notifyWith(r,[c,i,t]),i<1&&o?t:(o||a.notifyWith(r,[c,1,0]),a.resolveWith(r,[c]),!1)},c=a.promise({elem:r,props:C.extend({},e),opts:C.extend(!0,{specialEasing:{},easing:C.easing._default},t),originalProperties:e,originalOptions:t,startTime:dt||vt(),duration:t.duration,tweens:[],createTween:function(e,t){var i=C.Tween(r,c.opts,e,t,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(i),i},stop:function(e){var t=0,i=e?c.tweens.length:0;if(s)return this;for(s=!0;t<i;t++)c.tweens[t].run(1);return e?(a.notifyWith(r,[c,1,0]),a.resolveWith(r,[c,e])):a.rejectWith(r,[c,e]),this}}),u=c.props;for(function(e,t){var i,n,o,r,s;for(i in e)if(o=t[n=U(i)],r=e[i],Array.isArray(r)&&(o=r[1],r=e[i]=r[0]),i!==n&&(e[n]=r,delete e[i]),(s=C.cssHooks[n])&&"expand"in s)for(i in r=s.expand(r),delete e[n],r)i in e||(e[i]=r[i],t[i]=o);else t[n]=o}(u,c.opts.specialEasing);n<o;n++)if(i=bt.prefilters[n].call(c,r,u,c.opts))return y(i.stop)&&(C._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return C.map(u,wt,c),y(c.opts.start)&&c.opts.start.call(r,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),C.fx.timer(C.extend(l,{elem:r,anim:c,queue:c.opts.queue})),c}C.Animation=C.extend(bt,{tweeners:{"*":[function(e,t){var i=this.createTween(e,t);return ae(i.elem,e,te.exec(t),i),i}]},tweener:function(e,t){for(var i,n=0,o=(e=y(e)?(t=e,["*"]):e.match(P)).length;n<o;n++)i=e[n],bt.tweeners[i]=bt.tweeners[i]||[],bt.tweeners[i].unshift(t)},prefilters:[function(e,t,i){var n,o,r,s,a,l,c,u,d="width"in t||"height"in t,h=this,p={},f=e.style,g=e.nodeType&&se(e),m=V.get(e,"fxshow");for(n in i.queue||(null==(s=C._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,h.always(function(){h.always(function(){s.unqueued--,C.queue(e,"fx").length||s.empty.fire()})})),t)if(o=t[n],gt.test(o)){if(delete t[n],r=r||"toggle"===o,o===(g?"hide":"show")){if("show"!==o||!m||void 0===m[n])continue;g=!0}p[n]=m&&m[n]||C.style(e,n)}if((l=!C.isEmptyObject(t))||!C.isEmptyObject(p))for(n in d&&1===e.nodeType&&(i.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=m&&m.display)&&(c=V.get(e,"display")),"none"===(u=C.css(e,"display"))&&(c?u=c:(ce([e],!0),c=e.style.display||c,u=C.css(e,"display"),ce([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===C.css(e,"float")&&(l||(h.done(function(){f.display=c}),null==c&&(u=f.display,c="none"===u?"":u)),f.display="inline-block")),i.overflow&&(f.overflow="hidden",h.always(function(){f.overflow=i.overflow[0],f.overflowX=i.overflow[1],f.overflowY=i.overflow[2]})),l=!1,p)l||(m?"hidden"in m&&(g=m.hidden):m=V.access(e,"fxshow",{display:c}),r&&(m.hidden=!g),g&&ce([e],!0),h.done(function(){for(n in g||ce([e]),V.remove(e,"fxshow"),p)C.style(e,n,p[n])})),l=wt(g?m[n]:0,n,h),n in m||(m[n]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?bt.prefilters.unshift(e):bt.prefilters.push(e)}}),C.speed=function(e,t,i){var n=e&&"object"==typeof e?C.extend({},e):{complete:i||!i&&t||y(e)&&e,duration:e,easing:i&&t||t&&!y(t)&&t};return C.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in C.fx.speeds?n.duration=C.fx.speeds[n.duration]:n.duration=C.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){y(n.old)&&n.old.call(this),n.queue&&C.dequeue(this,n.queue)},n},C.fn.extend({fadeTo:function(e,t,i,n){return this.filter(se).css("opacity",0).show().end().animate({opacity:t},e,i,n)},animate:function(t,e,i,n){function o(){var e=bt(this,C.extend({},t),s);(r||V.get(this,"finish"))&&e.stop(!0)}var r=C.isEmptyObject(t),s=C.speed(e,i,n);return o.finish=o,r||!1===s.queue?this.each(o):this.queue(s.queue,o)},stop:function(o,e,r){function s(e){var t=e.stop;delete e.stop,t(r)}return"string"!=typeof o&&(r=e,e=o,o=void 0),e&&this.queue(o||"fx",[]),this.each(function(){var e=!0,t=null!=o&&o+"queueHooks",i=C.timers,n=V.get(this);if(t)n[t]&&n[t].stop&&s(n[t]);else for(t in n)n[t]&&n[t].stop&&mt.test(t)&&s(n[t]);for(t=i.length;t--;)i[t].elem!==this||null!=o&&i[t].queue!==o||(i[t].anim.stop(r),e=!1,i.splice(t,1));!e&&r||C.dequeue(this,o)})},finish:function(s){return!1!==s&&(s=s||"fx"),this.each(function(){var e,t=V.get(this),i=t[s+"queue"],n=t[s+"queueHooks"],o=C.timers,r=i?i.length:0;for(t.finish=!0,C.queue(this,s,[]),n&&n.stop&&n.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===s&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<r;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete t.finish})}}),C.each(["toggle","show","hide"],function(e,n){var o=C.fn[n];C.fn[n]=function(e,t,i){return null==e||"boolean"==typeof e?o.apply(this,arguments):this.animate(yt(n,!0),e,t,i)}}),C.each({slideDown:yt("show"),slideUp:yt("hide"),slideToggle:yt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,n){C.fn[e]=function(e,t,i){return this.animate(n,e,t,i)}}),C.timers=[],C.fx.tick=function(){var e,t=0,i=C.timers;for(dt=Date.now();t<i.length;t++)(e=i[t])()||i[t]!==e||i.splice(t--,1);i.length||C.fx.stop(),dt=void 0},C.fx.timer=function(e){C.timers.push(e),C.fx.start()},C.fx.interval=13,C.fx.start=function(){ht||(ht=!0,_t())},C.fx.stop=function(){ht=null},C.fx.speeds={slow:600,fast:200,_default:400},C.fn.delay=function(n,e){return n=C.fx&&C.fx.speeds[n]||n,e=e||"fx",this.queue(e,function(e,t){var i=k.setTimeout(e,n);t.stop=function(){k.clearTimeout(i)}})},pt=j.createElement("input"),ft=j.createElement("select").appendChild(j.createElement("option")),pt.type="checkbox",v.checkOn=""!==pt.value,v.optSelected=ft.selected,(pt=j.createElement("input")).value="t",pt.type="radio",v.radioValue="t"===pt.value;var xt,kt=C.expr.attrHandle;C.fn.extend({attr:function(e,t){return W(this,C.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){C.removeAttr(this,e)})}}),C.extend({attr:function(e,t,i){var n,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===e.getAttribute?C.prop(e,t,i):(1===r&&C.isXMLDoc(e)||(o=C.attrHooks[t.toLowerCase()]||(C.expr.match.bool.test(t)?xt:void 0)),void 0!==i?null===i?void C.removeAttr(e,t):o&&"set"in o&&void 0!==(n=o.set(e,i,t))?n:(e.setAttribute(t,i+""),i):o&&"get"in o&&null!==(n=o.get(e,t))?n:null==(n=C.find.attr(e,t))?void 0:n)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&T(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,n=0,o=t&&t.match(P);if(o&&1===e.nodeType)for(;i=o[n++];)e.removeAttribute(i)}}),xt={set:function(e,t,i){return!1===t?C.removeAttr(e,i):e.setAttribute(i,i),i}},C.each(C.expr.match.bool.source.match(/\w+/g),function(e,t){var s=kt[t]||C.find.attr;kt[t]=function(e,t,i){var n,o,r=t.toLowerCase();return i||(o=kt[r],kt[r]=n,n=null!=s(e,t,i)?r:null,kt[r]=o),n}});var jt=/^(?:input|select|textarea|button)$/i,Ct=/^(?:a|area)$/i;function Dt(e){return(e.match(P)||[]).join(" ")}function Tt(e){return e.getAttribute&&e.getAttribute("class")||""}function Qt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(P)||[]}C.fn.extend({prop:function(e,t){return W(this,C.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[C.propFix[e]||e]})}}),C.extend({prop:function(e,t,i){var n,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&C.isXMLDoc(e)||(t=C.propFix[t]||t,o=C.propHooks[t]),void 0!==i?o&&"set"in o&&void 0!==(n=o.set(e,i,t))?n:e[t]=i:o&&"get"in o&&null!==(n=o.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=C.find.attr(e,"tabindex");return t?parseInt(t,10):jt.test(e.nodeName)||Ct.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(C.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),C.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){C.propFix[this.toLowerCase()]=this}),C.fn.extend({addClass:function(t){var e,i,n,o,r,s,a,l=0;if(y(t))return this.each(function(e){C(this).addClass(t.call(this,e,Tt(this)))});if((e=Qt(t)).length)for(;i=this[l++];)if(o=Tt(i),n=1===i.nodeType&&" "+Dt(o)+" "){for(s=0;r=e[s++];)n.indexOf(" "+r+" ")<0&&(n+=r+" ");o!==(a=Dt(n))&&i.setAttribute("class",a)}return this},removeClass:function(t){var e,i,n,o,r,s,a,l=0;if(y(t))return this.each(function(e){C(this).removeClass(t.call(this,e,Tt(this)))});if(!arguments.length)return this.attr("class","");if((e=Qt(t)).length)for(;i=this[l++];)if(o=Tt(i),n=1===i.nodeType&&" "+Dt(o)+" "){for(s=0;r=e[s++];)for(;-1<n.indexOf(" "+r+" ");)n=n.replace(" "+r+" "," ");o!==(a=Dt(n))&&i.setAttribute("class",a)}return this},toggleClass:function(o,t){var r=typeof o,s="string"==r||Array.isArray(o);return"boolean"==typeof t&&s?t?this.addClass(o):this.removeClass(o):y(o)?this.each(function(e){C(this).toggleClass(o.call(this,e,Tt(this),t),t)}):this.each(function(){var e,t,i,n;if(s)for(t=0,i=C(this),n=Qt(o);e=n[t++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else void 0!==o&&"boolean"!=r||((e=Tt(this))&&V.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===o?"":V.get(this,"__className__")||""))})},hasClass:function(e){var t,i,n=0;for(t=" "+e+" ";i=this[n++];)if(1===i.nodeType&&-1<(" "+Dt(Tt(i))+" ").indexOf(t))return!0;return!1}});var St=/\r/g;C.fn.extend({val:function(i){var n,e,o,t=this[0];return arguments.length?(o=y(i),this.each(function(e){var t;1===this.nodeType&&(null==(t=o?i.call(this,e,C(this).val()):i)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=C.map(t,function(e){return null==e?"":e+""})),(n=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,t,"value")||(this.value=t))})):t?(n=C.valHooks[t.type]||C.valHooks[t.nodeName.toLowerCase()])&&"get"in n&&void 0!==(e=n.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(St,""):null==e?"":e:void 0}}),C.extend({valHooks:{option:{get:function(e){var t=C.find.attr(e,"value");return null!=t?t:Dt(C.text(e))}},select:{get:function(e){var t,i,n,o=e.options,r=e.selectedIndex,s="select-one"===e.type,a=s?null:[],l=s?r+1:o.length;for(n=r<0?l:s?r:0;n<l;n++)if(((i=o[n]).selected||n===r)&&!i.disabled&&(!i.parentNode.disabled||!T(i.parentNode,"optgroup"))){if(t=C(i).val(),s)return t;a.push(t)}return a},set:function(e,t){for(var i,n,o=e.options,r=C.makeArray(t),s=o.length;s--;)((n=o[s]).selected=-1<C.inArray(C.valHooks.option.get(n),r))&&(i=!0);return i||(e.selectedIndex=-1),r}}}}),C.each(["radio","checkbox"],function(){C.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<C.inArray(C(e).val(),t)}},v.checkOn||(C.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),v.focusin="onfocusin"in k;function It(e){e.stopPropagation()}var Et=/^(?:focusinfocus|focusoutblur)$/;C.extend(C.event,{trigger:function(e,t,i,n){var o,r,s,a,l,c,u,d,h=[i||j],p=_.call(e,"type")?e.type:e,f=_.call(e,"namespace")?e.namespace.split("."):[];if(r=d=s=i=i||j,3!==i.nodeType&&8!==i.nodeType&&!Et.test(p+C.event.triggered)&&(-1<p.indexOf(".")&&(p=(f=p.split(".")).shift(),f.sort()),l=p.indexOf(":")<0&&"on"+p,(e=e[C.expando]?e:new C.Event(p,"object"==typeof e&&e)).isTrigger=n?2:3,e.namespace=f.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:C.makeArray(t,[e]),u=C.event.special[p]||{},n||!u.trigger||!1!==u.trigger.apply(i,t))){if(!n&&!u.noBubble&&!g(i)){for(a=u.delegateType||p,Et.test(a+p)||(r=r.parentNode);r;r=r.parentNode)h.push(r),s=r;s===(i.ownerDocument||j)&&h.push(s.defaultView||s.parentWindow||k)}for(o=0;(r=h[o++])&&!e.isPropagationStopped();)d=r,e.type=1<o?a:u.bindType||p,(c=(V.get(r,"events")||Object.create(null))[e.type]&&V.get(r,"handle"))&&c.apply(r,t),(c=l&&r[l])&&c.apply&&Y(r)&&(e.result=c.apply(r,t),!1===e.result&&e.preventDefault());return e.type=p,n||e.isDefaultPrevented()||u._default&&!1!==u._default.apply(h.pop(),t)||!Y(i)||l&&y(i[p])&&!g(i)&&((s=i[l])&&(i[l]=null),C.event.triggered=p,e.isPropagationStopped()&&d.addEventListener(p,It),i[p](),e.isPropagationStopped()&&d.removeEventListener(p,It),C.event.triggered=void 0,s&&(i[l]=s)),e.result}},simulate:function(e,t,i){var n=C.extend(new C.Event,i,{type:e,isSimulated:!0});C.event.trigger(n,null,t)}}),C.fn.extend({trigger:function(e,t){return this.each(function(){C.event.trigger(e,t,this)})},triggerHandler:function(e,t){var i=this[0];if(i)return C.event.trigger(e,t,i,!0)}}),v.focusin||C.each({focus:"focusin",blur:"focusout"},function(i,n){function o(e){C.event.simulate(n,e.target,C.event.fix(e))}C.event.special[n]={setup:function(){var e=this.ownerDocument||this.document||this,t=V.access(e,n);t||e.addEventListener(i,o,!0),V.access(e,n,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=V.access(e,n)-1;t?V.access(e,n,t):(e.removeEventListener(i,o,!0),V.remove(e,n))}}});var At=k.location,Mt={guid:Date.now()},Nt=/\?/;C.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new k.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||C.error("Invalid XML: "+e),t};var Pt=/\[\]$/,Ot=/\r?\n/g,Ht=/^(?:submit|button|image|reset|file)$/i,$t=/^(?:input|select|textarea|keygen)/i;function zt(i,e,n,o){var t;if(Array.isArray(e))C.each(e,function(e,t){n||Pt.test(i)?o(i,t):zt(i+"["+("object"==typeof t&&null!=t?e:"")+"]",t,n,o)});else if(n||"object"!==b(e))o(i,e);else for(t in e)zt(i+"["+t+"]",e[t],n,o)}C.param=function(e,t){function i(e,t){var i=y(t)?t():t;o[o.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==i?"":i)}var n,o=[];if(null==e)return"";if(Array.isArray(e)||e.jquery&&!C.isPlainObject(e))C.each(e,function(){i(this.name,this.value)});else for(n in e)zt(n,e[n],t,i);return o.join("&")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=C.prop(this,"elements");return e?C.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!C(this).is(":disabled")&&$t.test(this.nodeName)&&!Ht.test(e)&&(this.checked||!he.test(e))}).map(function(e,t){var i=C(this).val();return null==i?null:Array.isArray(i)?C.map(i,function(e){return{name:t.name,value:e.replace(Ot,"\r\n")}}):{name:t.name,value:i.replace(Ot,"\r\n")}}).get()}});var Rt=/%20/g,Lt=/#.*$/,Wt=/([?&])_=[^&]*/,Ft=/^(.*?):[ \t]*([^\r\n]*)$/gm,qt=/^(?:GET|HEAD)$/,Bt=/^\/\//,Ut={},Yt={},Kt="*/".concat("*"),Vt=j.createElement("a");function Xt(r){return function(e,t){"string"!=typeof e&&(t=e,e="*");var i,n=0,o=e.toLowerCase().match(P)||[];if(y(t))for(;i=o[n++];)"+"===i[0]?(i=i.slice(1)||"*",(r[i]=r[i]||[]).unshift(t)):(r[i]=r[i]||[]).push(t)}}function Gt(t,o,r,s){var a={},l=t===Yt;function c(e){var n;return a[e]=!0,C.each(t[e]||[],function(e,t){var i=t(o,r,s);return"string"!=typeof i||l||a[i]?l?!(n=i):void 0:(o.dataTypes.unshift(i),c(i),!1)}),n}return c(o.dataTypes[0])||!a["*"]&&c("*")}function Jt(e,t){var i,n,o=C.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((o[i]?e:n=n||{})[i]=t[i]);return n&&C.extend(!0,e,n),e}Vt.href=At.href,C.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:At.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(At.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Kt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":C.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Jt(Jt(e,C.ajaxSettings),t):Jt(C.ajaxSettings,e)},ajaxPrefilter:Xt(Ut),ajaxTransport:Xt(Yt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var u,d,h,i,p,n,f,g,o,r,m=C.ajaxSetup({},t),_=m.context||m,v=m.context&&(_.nodeType||_.jquery)?C(_):C.event,y=C.Deferred(),w=C.Callbacks("once memory"),b=m.statusCode||{},s={},a={},l="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(f){if(!i)for(i={};t=Ft.exec(h);)i[t[1].toLowerCase()+" "]=(i[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=i[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return f?h:null},setRequestHeader:function(e,t){return null==f&&(e=a[e.toLowerCase()]=a[e.toLowerCase()]||e,s[e]=t),this},overrideMimeType:function(e){return null==f&&(m.mimeType=e),this},statusCode:function(e){var t;if(e)if(f)x.always(e[x.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||l;return u&&u.abort(t),c(0,t),this}};if(y.promise(x),m.url=((e||m.url||At.href)+"").replace(Bt,At.protocol+"//"),m.type=t.method||t.type||m.method||m.type,m.dataTypes=(m.dataType||"*").toLowerCase().match(P)||[""],null==m.crossDomain){n=j.createElement("a");try{n.href=m.url,n.href=n.href,m.crossDomain=Vt.protocol+"//"+Vt.host!=n.protocol+"//"+n.host}catch(e){m.crossDomain=!0}}if(m.data&&m.processData&&"string"!=typeof m.data&&(m.data=C.param(m.data,m.traditional)),Gt(Ut,m,t,x),f)return x;for(o in(g=C.event&&m.global)&&0==C.active++&&C.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!qt.test(m.type),d=m.url.replace(Lt,""),m.hasContent?m.data&&m.processData&&0===(m.contentType||"").indexOf("application/x-www-form-urlencoded")&&(m.data=m.data.replace(Rt,"+")):(r=m.url.slice(d.length),m.data&&(m.processData||"string"==typeof m.data)&&(d+=(Nt.test(d)?"&":"?")+m.data,delete m.data),!1===m.cache&&(d=d.replace(Wt,"$1"),r=(Nt.test(d)?"&":"?")+"_="+Mt.guid+++r),m.url=d+r),m.ifModified&&(C.lastModified[d]&&x.setRequestHeader("If-Modified-Since",C.lastModified[d]),C.etag[d]&&x.setRequestHeader("If-None-Match",C.etag[d])),(m.data&&m.hasContent&&!1!==m.contentType||t.contentType)&&x.setRequestHeader("Content-Type",m.contentType),x.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+Kt+"; q=0.01":""):m.accepts["*"]),m.headers)x.setRequestHeader(o,m.headers[o]);if(m.beforeSend&&(!1===m.beforeSend.call(_,x,m)||f))return x.abort();if(l="abort",w.add(m.complete),x.done(m.success),x.fail(m.error),u=Gt(Yt,m,t,x)){if(x.readyState=1,g&&v.trigger("ajaxSend",[x,m]),f)return x;m.async&&0<m.timeout&&(p=k.setTimeout(function(){x.abort("timeout")},m.timeout));try{f=!1,u.send(s,c)}catch(e){if(f)throw e;c(-1,e)}}else c(-1,"No Transport");function c(e,t,i,n){var o,r,s,a,l,c=t;f||(f=!0,p&&k.clearTimeout(p),u=void 0,h=n||"",x.readyState=0<e?4:0,o=200<=e&&e<300||304===e,i&&(a=function(e,t,i){for(var n,o,r,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n)for(o in a)if(a[o]&&a[o].test(n)){l.unshift(o);break}if(l[0]in i)r=l[0];else{for(o in i){if(!l[0]||e.converters[o+" "+l[0]]){r=o;break}s=s||o}r=r||s}if(r)return r!==l[0]&&l.unshift(r),i[r]}(m,x,i)),!o&&-1<C.inArray("script",m.dataTypes)&&(m.converters["text script"]=function(){}),a=function(e,t,i,n){var o,r,s,a,l,c={},u=e.dataTypes.slice();if(u[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(r=u.shift();r;)if(e.responseFields[r]&&(i[e.responseFields[r]]=t),!l&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=r,r=u.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(s=c[l+" "+r]||c["* "+r]))for(o in c)if((a=o.split(" "))[1]===r&&(s=c[l+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[o]:!0!==c[o]&&(r=a[0],u.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+r}}}return{state:"success",data:t}}(m,a,x,o),o?(m.ifModified&&((l=x.getResponseHeader("Last-Modified"))&&(C.lastModified[d]=l),(l=x.getResponseHeader("etag"))&&(C.etag[d]=l)),204===e||"HEAD"===m.type?c="nocontent":304===e?c="notmodified":(c=a.state,r=a.data,o=!(s=a.error))):(s=c,!e&&c||(c="error",e<0&&(e=0))),x.status=e,x.statusText=(t||c)+"",o?y.resolveWith(_,[r,c,x]):y.rejectWith(_,[x,c,s]),x.statusCode(b),b=void 0,g&&v.trigger(o?"ajaxSuccess":"ajaxError",[x,m,o?r:s]),w.fireWith(_,[x,c]),g&&(v.trigger("ajaxComplete",[x,m]),--C.active||C.event.trigger("ajaxStop")))}return x},getJSON:function(e,t,i){return C.get(e,t,i,"json")},getScript:function(e,t){return C.get(e,void 0,t,"script")}}),C.each(["get","post"],function(e,o){C[o]=function(e,t,i,n){return y(t)&&(n=n||i,i=t,t=void 0),C.ajax(C.extend({url:e,type:o,dataType:n,data:t,success:i},C.isPlainObject(e)&&e))}}),C.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),C._evalUrl=function(e,t,i){return C.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){C.globalEval(e,t,i)}})},C.fn.extend({wrapAll:function(e){var t;return this[0]&&(y(e)&&(e=e.call(this[0])),t=C(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(i){return y(i)?this.each(function(e){C(this).wrapInner(i.call(this,e))}):this.each(function(){var e=C(this),t=e.contents();t.length?t.wrapAll(i):e.append(i)})},wrap:function(t){var i=y(t);return this.each(function(e){C(this).wrapAll(i?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){C(this).replaceWith(this.childNodes)}),this}}),C.expr.pseudos.hidden=function(e){return!C.expr.pseudos.visible(e)},C.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},C.ajaxSettings.xhr=function(){try{return new k.XMLHttpRequest}catch(e){}};var Zt={0:200,1223:204},ei=C.ajaxSettings.xhr();v.cors=!!ei&&"withCredentials"in ei,v.ajax=ei=!!ei,C.ajaxTransport(function(o){var r,s;if(v.cors||ei&&!o.crossDomain)return{send:function(e,t){var i,n=o.xhr();if(n.open(o.type,o.url,o.async,o.username,o.password),o.xhrFields)for(i in o.xhrFields)n[i]=o.xhrFields[i];for(i in o.mimeType&&n.overrideMimeType&&n.overrideMimeType(o.mimeType),o.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)n.setRequestHeader(i,e[i]);r=function(e){return function(){r&&(r=s=n.onload=n.onerror=n.onabort=n.ontimeout=n.onreadystatechange=null,"abort"===e?n.abort():"error"===e?"number"!=typeof n.status?t(0,"error"):t(n.status,n.statusText):t(Zt[n.status]||n.status,n.statusText,"text"!==(n.responseType||"text")||"string"!=typeof n.responseText?{binary:n.response}:{text:n.responseText},n.getAllResponseHeaders()))}},n.onload=r(),s=n.onerror=n.ontimeout=r("error"),void 0!==n.onabort?n.onabort=s:n.onreadystatechange=function(){4===n.readyState&&k.setTimeout(function(){r&&s()})},r=r("abort");try{n.send(o.hasContent&&o.data||null)}catch(e){if(r)throw e}},abort:function(){r&&r()}}}),C.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),C.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return C.globalEval(e),e}}}),C.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),C.ajaxTransport("script",function(i){var n,o;if(i.crossDomain||i.scriptAttrs)return{send:function(e,t){n=C("<script>").attr(i.scriptAttrs||{}).prop({charset:i.scriptCharset,src:i.url}).on("load error",o=function(e){n.remove(),o=null,e&&t("error"===e.type?404:200,e.type)}),j.head.appendChild(n[0])},abort:function(){o&&o()}}});var ti,ii=[],ni=/(=)\?(?=&|$)|\?\?/;C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=ii.pop()||C.expando+"_"+Mt.guid++;return this[e]=!0,e}}),C.ajaxPrefilter("json jsonp",function(e,t,i){var n,o,r,s=!1!==e.jsonp&&(ni.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&ni.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return n=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(ni,"$1"+n):!1!==e.jsonp&&(e.url+=(Nt.test(e.url)?"&":"?")+e.jsonp+"="+n),e.converters["script json"]=function(){return r||C.error(n+" was not called"),r[0]},e.dataTypes[0]="json",o=k[n],k[n]=function(){r=arguments},i.always(function(){void 0===o?C(k).removeProp(n):k[n]=o,e[n]&&(e.jsonpCallback=t.jsonpCallback,ii.push(n)),r&&y(o)&&o(r[0]),r=o=void 0}),"script"}),v.createHTMLDocument=((ti=j.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===ti.childNodes.length),C.parseHTML=function(e,t,i){return"string"!=typeof e?[]:("boolean"==typeof t&&(i=t,t=!1),t||(v.createHTMLDocument?((n=(t=j.implementation.createHTMLDocument("")).createElement("base")).href=j.location.href,t.head.appendChild(n)):t=j),r=!i&&[],(o=Q.exec(e))?[t.createElement(o[1])]:(o=ye([e],t,r),r&&r.length&&C(r).remove(),C.merge([],o.childNodes)));var n,o,r},C.fn.load=function(e,t,i){var n,o,r,s=this,a=e.indexOf(" ");return-1<a&&(n=Dt(e.slice(a)),e=e.slice(0,a)),y(t)?(i=t,t=void 0):t&&"object"==typeof t&&(o="POST"),0<s.length&&C.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){r=arguments,s.html(n?C("<div>").append(C.parseHTML(e)).find(n):e)}).always(i&&function(e,t){s.each(function(){i.apply(this,r||[e.responseText,t,e])})}),this},C.expr.pseudos.animated=function(t){return C.grep(C.timers,function(e){return t===e.elem}).length},C.offset={setOffset:function(e,t,i){var n,o,r,s,a,l,c=C.css(e,"position"),u=C(e),d={};"static"===c&&(e.style.position="relative"),a=u.offset(),r=C.css(e,"top"),l=C.css(e,"left"),o=("absolute"===c||"fixed"===c)&&-1<(r+l).indexOf("auto")?(s=(n=u.position()).top,n.left):(s=parseFloat(r)||0,parseFloat(l)||0),y(t)&&(t=t.call(e,i,C.extend({},a))),null!=t.top&&(d.top=t.top-a.top+s),null!=t.left&&(d.left=t.left-a.left+o),"using"in t?t.using.call(e,d):("number"==typeof d.top&&(d.top+="px"),"number"==typeof d.left&&(d.left+="px"),u.css(d))}},C.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){C.offset.setOffset(this,t,e)});var e,i,n=this[0];return n?n.getClientRects().length?(e=n.getBoundingClientRect(),i=n.ownerDocument.defaultView,{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,i,n=this[0],o={top:0,left:0};if("fixed"===C.css(n,"position"))t=n.getBoundingClientRect();else{for(t=this.offset(),i=n.ownerDocument,e=n.offsetParent||i.documentElement;e&&(e===i.body||e===i.documentElement)&&"static"===C.css(e,"position");)e=e.parentNode;e&&e!==n&&1===e.nodeType&&((o=C(e).offset()).top+=C.css(e,"borderTopWidth",!0),o.left+=C.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-C.css(n,"marginTop",!0),left:t.left-o.left-C.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===C.css(e,"position");)e=e.offsetParent;return e||ne})}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,o){var r="pageYOffset"===o;C.fn[t]=function(e){return W(this,function(e,t,i){var n;if(g(e)?n=e:9===e.nodeType&&(n=e.defaultView),void 0===i)return n?n[o]:e[t];n?n.scrollTo(r?n.pageXOffset:i,r?i:n.pageYOffset):e[t]=i},t,e,arguments.length)}}),C.each(["top","left"],function(e,i){C.cssHooks[i]=Xe(v.pixelPosition,function(e,t){if(t)return t=Ve(e,i),Ue.test(t)?C(e).position()[i]+"px":t})}),C.each({Height:"height",Width:"width"},function(s,a){C.each({padding:"inner"+s,content:a,"":"outer"+s},function(n,r){C.fn[r]=function(e,t){var i=arguments.length&&(n||"boolean"!=typeof e),o=n||(!0===e||!0===t?"margin":"border");return W(this,function(e,t,i){var n;return g(e)?0===r.indexOf("outer")?e["inner"+s]:e.document.documentElement["client"+s]:9===e.nodeType?(n=e.documentElement,Math.max(e.body["scroll"+s],n["scroll"+s],e.body["offset"+s],n["offset"+s],n["client"+s])):void 0===i?C.css(e,t,o):C.style(e,t,i,o)},a,i?e:void 0,i)}})}),C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){C.fn[t]=function(e){return this.on(t,e)}}),C.fn.extend({bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),C.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,i){C.fn[i]=function(e,t){return 0<arguments.length?this.on(i,null,e,t):this.trigger(i)}});var oi=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;C.proxy=function(e,t){var i,n,o;if("string"==typeof t&&(i=e[t],t=e,e=i),y(e))return n=a.call(arguments,2),(o=function(){return e.apply(t||this,n.concat(a.call(arguments)))}).guid=e.guid=e.guid||C.guid++,o},C.holdReady=function(e){e?C.readyWait++:C.ready(!0)},C.isArray=Array.isArray,C.parseJSON=JSON.parse,C.nodeName=T,C.isFunction=y,C.isWindow=g,C.camelCase=U,C.type=b,C.now=Date.now,C.isNumeric=function(e){var t=C.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},C.trim=function(e){return null==e?"":(e+"").replace(oi,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return C});var ri=k.jQuery,si=k.$;return C.noConflict=function(e){return k.$===C&&(k.$=si),e&&k.jQuery===C&&(k.jQuery=ri),C},void 0===e&&(k.jQuery=k.$=C),C}),void 0===jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(a,n){"use strict";function e(e){return 0<=function(e,t){var i,n=/^(\d+)\.(\d+)\.(\d+)/,o=n.exec(e)||[],r=n.exec(t)||[];for(i=1;i<=3;i++){if(+o[i]>+r[i])return 1;if(+o[i]<+r[i])return-1}return 0}(a.fn.jquery,e)}a.migrateVersion="3.3.0",n.console&&n.console.log&&(a&&e("3.0.0")||n.console.log("JQMIGRATE: jQuery 3.0.0+ REQUIRED"),a.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(a.migrateMute?"":" with logging active")+", version "+a.migrateVersion));var i={};function l(e){var t=n.console;a.migrateDeduplicateWarnings&&i[e]||(i[e]=!0,a.migrateWarnings.push(e),t&&t.warn&&!a.migrateMute&&(t.warn("JQMIGRATE: "+e),a.migrateTrace&&t.trace&&t.trace()))}function t(e,t,i,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return l(n),i},set:function(e){l(n),i=e}})}function o(e,t,i,n){e[t]=function(){return l(n),i.apply(this,arguments)}}a.migrateDeduplicateWarnings=!0,a.migrateWarnings=[],void 0===a.migrateTrace&&(a.migrateTrace=!0),a.migrateReset=function(){i={},a.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&l("jQuery is not compatible with Quirks Mode");var r,s={},c=a.fn.init,u=a.find,d=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;for(r in a.fn.init=function(e){var t=Array.prototype.slice.call(arguments);return"string"==typeof e&&"#"===e&&(l("jQuery( '#' ) is not a valid selector"),t[0]=[]),c.apply(this,t)},a.fn.init.prototype=a.fn,a.find=function(t){var i=Array.prototype.slice.call(arguments);if("string"==typeof t&&d.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(h,function(e,t,i,n){return"["+t+i+'"'+n+'"]'});try{n.document.querySelector(t),l("Attribute selector with '#' must be quoted: "+i[0]),i[0]=t}catch(e){l("Attribute selector with '#' was not fixed: "+i[0])}}return u.apply(this,i)},u)Object.prototype.hasOwnProperty.call(u,r)&&(a.find[r]=u[r]);if(o(a.fn,"size",function(){return this.length},"jQuery.fn.size() is deprecated and removed; use the .length property"),o(a,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"jQuery.parseJSON is deprecated; use JSON.parse"),o(a,"holdReady",a.holdReady,"jQuery.holdReady is deprecated"),o(a,"unique",a.uniqueSort,"jQuery.unique is deprecated; use jQuery.uniqueSort"),t(a.expr,"filters",a.expr.pseudos,"jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),t(a.expr,":",a.expr.pseudos,"jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&o(a,"trim",function(e){return null==e?"":(e+"").replace(p,"")},"jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&o(a,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"jQuery.nodeName is deprecated"),e("3.3.0")&&(o(a,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"jQuery.isNumeric() is deprecated"),a.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){s["[object "+t+"]"]=t.toLowerCase()}),o(a,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?s[Object.prototype.toString.call(e)]||"object":typeof e},"jQuery.type is deprecated"),o(a,"isFunction",function(e){return"function"==typeof e},"jQuery.isFunction() is deprecated"),o(a,"isWindow",function(e){return null!=e&&e===e.window},"jQuery.isWindow() is deprecated"),o(a,"isArray",Array.isArray,"jQuery.isArray is deprecated; use Array.isArray")),a.ajax){var f=a.ajax;a.ajax=function(){var e=f.apply(this,arguments);return e.promise&&(o(e,"success",e.done,"jQXHR.success is deprecated and removed"),o(e,"error",e.fail,"jQXHR.error is deprecated and removed"),o(e,"complete",e.always,"jQXHR.complete is deprecated and removed")),e}}var g=a.fn.removeAttr,m=a.fn.toggleClass,_=/\S+/g;function v(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}a.fn.removeAttr=function(e){var i=this;return a.each(e.match(_),function(e,t){a.expr.match.bool.test(t)&&(l("jQuery.fn.removeAttr no longer sets boolean properties: "+t),i.prop(t,!1))}),g.apply(this,arguments)};var y,w=!(a.fn.toggleClass=function(t){return void 0!==t&&"boolean"!=typeof t?m.apply(this,arguments):(l("jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&a.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":a.data(this,"__className__")||"")}))}),b=/^[a-z]/,x=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;a.swap&&a.each(["height","width","reliableMarginRight"],function(e,t){var i=a.cssHooks[t]&&a.cssHooks[t].get;i&&(a.cssHooks[t].get=function(){var e;return w=!0,e=i.apply(this,arguments),w=!1,e})}),a.swap=function(e,t,i,n){var o,r,s={};for(r in w||l("jQuery.swap() is undocumented and deprecated"),t)s[r]=e.style[r],e.style[r]=t[r];for(r in o=i.apply(e,n||[]),t)e.style[r]=s[r];return o},e("3.4.0")&&"undefined"!=typeof Proxy&&(a.cssProps=new Proxy(a.cssProps||{},{set:function(){return l("JQMIGRATE: jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),a.cssNumber||(a.cssNumber={}),y=a.fn.css,a.fn.css=function(e,t){var i,n=this;return"string"!=typeof e&&a.each(e,function(e,t){a.fn.css.call(n,e,t)}),"number"!=typeof t||(i=v(e),b.test(i)&&x.test(i[0].toUpperCase()+i.slice(1)))||l("Use of number-typed values is deprecated in jQuery.fn.css"),y.apply(this,arguments)};var k=a.data;if(a.data=function(e,t,i){var n,o,r;if(t&&"object"==typeof t&&2===arguments.length){for(r in n=a.hasData(e)&&k.call(this,e),o={},t)r!==v(r)?(l("jQuery.data() always sets/gets camelCased names: "+r),n[r]=t[r]):o[r]=t[r];return k.call(this,e,o),t}return t&&"string"==typeof t&&t!==v(t)&&(n=a.hasData(e)&&k.call(this,e))&&t in n?(l("jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=i),n[t]):k.apply(this,arguments)},a.fx){var j,C,D=a.Tween.prototype.run,T=function(e){return e};a.Tween.prototype.run=function(){1<a.easing[this.easing].length&&(l("'jQuery.easing."+this.easing.toString()+"' should use only one argument"),a.easing[this.easing]=T),D.apply(this,arguments)},j=a.fx.interval||13,C="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(a.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||l(C),j},set:function(e){l(C),j=e}})}var Q=a.fn.load,S=a.event.add,I=a.event.fix;function E(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}function A(e){var t=e.replace(M,"<$1></$2>");t!==e&&E(e)!==E(t)&&l("HTML tags must be properly nested and closed: "+e)}a.event.props=[],a.event.fixHooks={},t(a.event.props,"concat",a.event.props.concat,"jQuery.event.props.concat() is deprecated and removed"),a.event.fix=function(e){var t,i=e.type,n=this.fixHooks[i],o=a.event.props;if(o.length)for(l("jQuery.event.props are deprecated and removed: "+o.join());o.length;)a.event.addProp(o.pop());if(n&&!n._migrated_&&(n._migrated_=!0,l("jQuery.event.fixHooks are deprecated and removed: "+i),(o=n.props)&&o.length))for(;o.length;)a.event.addProp(o.pop());return t=I.call(this,e),n&&n.filter?n.filter(t,e):t},a.event.add=function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&l("jQuery(window).on('load'...) called after load event occurred"),S.apply(this,arguments)},a.each(["load","unload","error"],function(e,t){a.fn[t]=function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?Q.apply(this,e):(l("jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))}}),a.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,i){a.fn[i]=function(e,t){return l("jQuery.fn."+i+"() event shorthand is deprecated"),0<arguments.length?this.on(i,null,e,t):this.trigger(i)}}),a(function(){a(n.document).triggerHandler("ready")}),a.event.special.ready={setup:function(){this===n.document&&l("'ready' event is deprecated")}},a.fn.extend({bind:function(e,t,i){return l("jQuery.fn.bind() is deprecated"),this.on(e,null,t,i)},unbind:function(e,t){return l("jQuery.fn.unbind() is deprecated"),this.off(e,null,t)},delegate:function(e,t,i,n){return l("jQuery.fn.delegate() is deprecated"),this.on(t,e,i,n)},undelegate:function(e,t,i){return l("jQuery.fn.undelegate() is deprecated"),1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)},hover:function(e,t){return l("jQuery.fn.hover() is deprecated"),this.on("mouseenter",e).on("mouseleave",t||e)}});var M=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,N=a.htmlPrefilter;a.UNSAFE_restoreLegacyHtmlPrefilter=function(){a.htmlPrefilter=function(e){return A(e),e.replace(M,"<$1></$2>")}},a.htmlPrefilter=function(e){return A(e),N(e)};var P=a.fn.offset;if(a.fn.offset=function(){var e,t=this[0];if(t&&t.nodeType)return e=(t.ownerDocument||n.document).documentElement,a.contains(e,t)?P.apply(this,arguments):(l("jQuery.fn.offset() requires an element connected to a document"),{top:0,left:0});l("jQuery.fn.offset() requires a valid DOM element")},a.ajax){var O=a.param;a.param=function(e,t){var i=a.ajaxSettings&&a.ajaxSettings.traditional;return void 0===t&&i&&(l("jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=i),O.call(this,e,t)}}var H=a.fn.andSelf||a.fn.addBack;if(a.fn.andSelf=function(){return l("jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),H.apply(this,arguments)},a.Deferred){var $=a.Deferred,z=[["resolve","done",a.Callbacks("once memory"),a.Callbacks("once memory"),"resolved"],["reject","fail",a.Callbacks("once memory"),a.Callbacks("once memory"),"rejected"],["notify","progress",a.Callbacks("memory"),a.Callbacks("memory")]];a.Deferred=function(e){var r=$(),s=r.promise();return r.pipe=s.pipe=function(){var o=arguments;return l("deferred.pipe() is deprecated"),a.Deferred(function(n){a.each(z,function(e,t){var i="function"==typeof o[e]&&o[e];r[t[1]](function(){var e=i&&i.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===s?n.promise():this,i?[e]:arguments)})}),o=null}).promise()},e&&e.call(r,r),r},a.Deferred.exceptionHook=$.exceptionHook}return a}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(k){function e(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},k.extend(this._defaults,this.regional[""]),this.regional.en=k.extend(!0,{},this.regional[""]),this.regional["en-US"]=k.extend(!0,{},this.regional.en),this.dpDiv=i(k("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function i(e){var t="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",t,function(){k(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&k(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&k(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",t,r)}function r(){k.datepicker._isDisabledDatepicker(m.inline?m.dpDiv.parent()[0]:m.input[0])||(k(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),k(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&k(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&k(this).addClass("ui-datepicker-next-hover"))}function d(e,t){for(var i in k.extend(e,t),t)null==t[i]&&(e[i]=t[i]);return e}k.ui=k.ui||{},k.ui.version="1.12.1";var t,n,o,x,j,s,a,l,c,u,C,h,p=0,f=Array.prototype.slice;function D(e,t,i){return[parseFloat(e[0])*(u.test(e[0])?t/100:1),parseFloat(e[1])*(u.test(e[1])?i/100:1)]}function T(e,t){return parseInt(k.css(e,t),10)||0}k.cleanData=(h=k.cleanData,function(e){var t,i,n;for(n=0;null!=(i=e[n]);n++)try{(t=k._data(i,"events"))&&t.remove&&k(i).triggerHandler("remove")}catch(e){}h(e)}),k.widget=function(e,i,t){var n,o,r,s={},a=e.split(".")[0],l=a+"-"+(e=e.split(".")[1]);return t||(t=i,i=k.Widget),k.isArray(t)&&(t=k.extend.apply(null,[{}].concat(t))),k.expr[":"][l.toLowerCase()]=function(e){return!!k.data(e,l)},k[a]=k[a]||{},n=k[a][e],o=k[a][e]=function(e,t){return this._createWidget?void(arguments.length&&this._createWidget(e,t)):new o(e,t)},k.extend(o,n,{version:t.version,_proto:k.extend({},t),_childConstructors:[]}),(r=new i).options=k.widget.extend({},r.options),k.each(t,function(t,n){return k.isFunction(n)?void(s[t]=function(){var e,t=this._super,i=this._superApply;return this._super=o,this._superApply=r,e=n.apply(this,arguments),this._super=t,this._superApply=i,e}):void(s[t]=n);function o(){return i.prototype[t].apply(this,arguments)}function r(e){return i.prototype[t].apply(this,e)}}),o.prototype=k.widget.extend(r,{widgetEventPrefix:n&&r.widgetEventPrefix||e},s,{constructor:o,namespace:a,widgetName:e,widgetFullName:l}),n?(k.each(n._childConstructors,function(e,t){var i=t.prototype;k.widget(i.namespace+"."+i.widgetName,o,t._proto)}),delete n._childConstructors):i._childConstructors.push(o),k.widget.bridge(e,o),o},k.widget.extend=function(e){for(var t,i,n=f.call(arguments,1),o=0,r=n.length;o<r;o++)for(t in n[o])i=n[o][t],n[o].hasOwnProperty(t)&&void 0!==i&&(e[t]=k.isPlainObject(i)?k.isPlainObject(e[t])?k.widget.extend({},e[t],i):k.widget.extend({},i):i);return e},k.widget.bridge=function(r,t){var s=t.prototype.widgetFullName||r;k.fn[r]=function(i){var e="string"==typeof i,n=f.call(arguments,1),o=this;return e?this.length||"instance"!==i?this.each(function(){var e,t=k.data(this,s);return"instance"===i?(o=t,!1):t?k.isFunction(t[i])&&"_"!==i.charAt(0)?(e=t[i].apply(t,n))!==t&&void 0!==e?(o=e&&e.jquery?o.pushStack(e.get()):e,!1):void 0:k.error("no such method '"+i+"' for "+r+" widget instance"):k.error("cannot call methods on "+r+" prior to initialization; attempted to call method '"+i+"'")}):o=void 0:(n.length&&(i=k.widget.extend.apply(null,[i].concat(n))),this.each(function(){var e=k.data(this,s);e?(e.option(i||{}),e._init&&e._init()):k.data(this,s,new t(i,this))})),o}},k.Widget=function(){},k.Widget._childConstructors=[],k.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,t){t=k(t||this.defaultElement||this)[0],this.element=k(t),this.uuid=p++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=k(),this.hoverable=k(),this.focusable=k(),this.classesElementLookup={},t!==this&&(k.data(t,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===t&&this.destroy()}}),this.document=k(t.style?t.ownerDocument:t.document||t),this.window=k(this.document[0].defaultView||this.document[0].parentWindow)),this.options=k.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),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 i=this;this._destroy(),k.each(this.classesElementLookup,function(e,t){i._removeClass(t,e)}),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(e,t){var i,n,o,r=e;if(0===arguments.length)return k.widget.extend({},this.options);if("string"==typeof e)if(r={},e=(i=e.split(".")).shift(),i.length){for(n=r[e]=k.widget.extend({},this.options[e]),o=0;i.length-1>o;o++)n[i[o]]=n[i[o]]||{},n=n[i[o]];if(e=i.pop(),1===arguments.length)return void 0===n[e]?null:n[e];n[e]=t}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];r[e]=t}return this._setOptions(r),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return"classes"===e&&this._setOptionClasses(t),this.options[e]=t,"disabled"===e&&this._setOptionDisabled(t),this},_setOptionClasses:function(e){var t,i,n;for(t in e)n=this.classesElementLookup[t],e[t]!==this.options.classes[t]&&n&&n.length&&(i=k(n.get()),this._removeClass(n,t),i.addClass(this._classes({element:i,keys:t,classes:e,add:!0})))},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(o){function e(e,t){var i,n;for(n=0;e.length>n;n++)i=s.classesElementLookup[e[n]]||k(),i=o.add?k(k.unique(i.get().concat(o.element.get()))):k(i.not(o.element).get()),s.classesElementLookup[e[n]]=i,r.push(e[n]),t&&o.classes[e[n]]&&r.push(o.classes[e[n]])}var r=[],s=this;return o=k.extend({element:this.element,classes:this.options.classes||{}},o),this._on(o.element,{remove:"_untrackClassesElement"}),o.keys&&e(o.keys.match(/\S+/g)||[],!0),o.extra&&e(o.extra.match(/\S+/g)||[]),r.join(" ")},_untrackClassesElement:function(i){var n=this;k.each(n.classesElementLookup,function(e,t){-1!==k.inArray(i.target,t)&&(n.classesElementLookup[e]=k(t.not(i.target).get()))})},_removeClass:function(e,t,i){return this._toggleClass(e,t,i,!1)},_addClass:function(e,t,i){return this._toggleClass(e,t,i,!0)},_toggleClass:function(e,t,i,n){n="boolean"==typeof n?n:i;var o="string"==typeof e||null===e,r={extra:o?t:i,keys:o?e:t,element:o?this.element:e,add:n};return r.element.toggleClass(this._classes(r),n),this},_on:function(s,a,e){var l,c=this;"boolean"!=typeof s&&(e=a,a=s,s=!1),e?(a=l=k(a),this.bindings=this.bindings.add(a)):(e=a,a=this.element,l=this.widget()),k.each(e,function(e,t){function i(){return s||!0!==c.options.disabled&&!k(this).hasClass("ui-state-disabled")?("string"==typeof t?c[t]:t).apply(c,arguments):void 0}"string"!=typeof t&&(i.guid=t.guid=t.guid||i.guid||k.guid++);var n=e.match(/^([\w:-]*)\s*(.*)$/),o=n[1]+c.eventNamespace,r=n[2];r?l.on(o,r,i):a.on(o,i)})},_off:function(e,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(t).off(t),this.bindings=k(this.bindings.not(e).get()),this.focusable=k(this.focusable.not(e).get()),this.hoverable=k(this.hoverable.not(e).get())},_delay:function(e,t){var i=this;return setTimeout(function(){return("string"==typeof e?i[e]:e).apply(i,arguments)},t||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(k(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(k(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(k(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(k(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,t,i){var n,o,r=this.options[e];if(i=i||{},(t=k.Event(t)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),t.target=this.element[0],o=t.originalEvent)for(n in o)n in t||(t[n]=o[n]);return this.element.trigger(t,i),!(k.isFunction(r)&&!1===r.apply(this.element[0],[t].concat(i))||t.isDefaultPrevented())}},k.each({show:"fadeIn",hide:"fadeOut"},function(r,s){k.Widget.prototype["_"+r]=function(t,e,i){"string"==typeof e&&(e={effect:e});var n,o=e?!0===e||"number"==typeof e?s:e.effect||s:r;"number"==typeof(e=e||{})&&(e={duration:e}),n=!k.isEmptyObject(e),e.complete=i,e.delay&&t.delay(e.delay),n&&k.effects&&k.effects.effect[o]?t[r](e):o!==r&&t[o]?t[o](e.duration,e.easing,i):t.queue(function(e){k(this)[r](),i&&i.call(t[0]),e()})}}),k.widget,x=Math.max,j=Math.abs,s=/left|center|right/,a=/top|center|bottom/,l=/[\+\-]\d+(\.[\d]+)?%?/,c=/^\w+/,u=/%$/,C=k.fn.position,k.position={scrollbarWidth:function(){if(void 0!==o)return o;var e,t,i=k("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),n=i.children()[0];return k("body").append(i),e=n.offsetWidth,i.css("overflow","scroll"),e===(t=n.offsetWidth)&&(t=i[0].clientWidth),i.remove(),o=e-t},getScrollInfo:function(e){var t=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),i=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),n="scroll"===t||"auto"===t&&e.width<e.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&e.height<e.element[0].scrollHeight?k.position.scrollbarWidth():0,height:n?k.position.scrollbarWidth():0}},getWithinInfo:function(e){var t=k(e||window),i=k.isWindow(t[0]),n=!!t[0]&&9===t[0].nodeType;return{element:t,isWindow:i,isDocument:n,offset:i||n?{left:0,top:0}:k(e).offset(),scrollLeft:t.scrollLeft(),scrollTop:t.scrollTop(),width:t.outerWidth(),height:t.outerHeight()}}},k.fn.position=function(d){if(!d||!d.of)return C.apply(this,arguments);d=k.extend({},d);var h,p,f,g,m,e,_=k(d.of),v=k.position.getWithinInfo(d.within),y=k.position.getScrollInfo(v),w=(d.collision||"flip").split(" "),b={};return e=function(e){var t=e[0];return 9===t.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:k.isWindow(t)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:t.preventDefault?{width:0,height:0,offset:{top:t.pageY,left:t.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}(_),_[0].preventDefault&&(d.at="left top"),p=e.width,f=e.height,g=e.offset,m=k.extend({},g),k.each(["my","at"],function(){var e,t,i=(d[this]||"").split(" ");1===i.length&&(i=s.test(i[0])?i.concat(["center"]):a.test(i[0])?["center"].concat(i):["center","center"]),i[0]=s.test(i[0])?i[0]:"center",i[1]=a.test(i[1])?i[1]:"center",e=l.exec(i[0]),t=l.exec(i[1]),b[this]=[e?e[0]:0,t?t[0]:0],d[this]=[c.exec(i[0])[0],c.exec(i[1])[0]]}),1===w.length&&(w[1]=w[0]),"right"===d.at[0]?m.left+=p:"center"===d.at[0]&&(m.left+=p/2),"bottom"===d.at[1]?m.top+=f:"center"===d.at[1]&&(m.top+=f/2),h=D(b.at,p,f),m.left+=h[0],m.top+=h[1],this.each(function(){var i,e,s=k(this),a=s.outerWidth(),l=s.outerHeight(),t=T(this,"marginLeft"),n=T(this,"marginTop"),o=a+t+T(this,"marginRight")+y.width,r=l+n+T(this,"marginBottom")+y.height,c=k.extend({},m),u=D(b.my,s.outerWidth(),s.outerHeight());"right"===d.my[0]?c.left-=a:"center"===d.my[0]&&(c.left-=a/2),"bottom"===d.my[1]?c.top-=l:"center"===d.my[1]&&(c.top-=l/2),c.left+=u[0],c.top+=u[1],i={marginLeft:t,marginTop:n},k.each(["left","top"],function(e,t){k.ui.position[w[e]]&&k.ui.position[w[e]][t](c,{targetWidth:p,targetHeight:f,elemWidth:a,elemHeight:l,collisionPosition:i,collisionWidth:o,collisionHeight:r,offset:[h[0]+u[0],h[1]+u[1]],my:d.my,at:d.at,within:v,elem:s})}),d.using&&(e=function(e){var t=g.left-c.left,i=t+p-a,n=g.top-c.top,o=n+f-l,r={target:{element:_,left:g.left,top:g.top,width:p,height:f},element:{element:s,left:c.left,top:c.top,width:a,height:l},horizontal:i<0?"left":0<t?"right":"center",vertical:o<0?"top":0<n?"bottom":"middle"};p<a&&p>j(t+i)&&(r.horizontal="center"),f<l&&f>j(n+o)&&(r.vertical="middle"),r.important=x(j(t),j(i))>x(j(n),j(o))?"horizontal":"vertical",d.using.call(this,e,r)}),s.offset(k.extend(c,{using:e}))})},k.ui.position={fit:{left:function(e,t){var i,n=t.within,o=n.isWindow?n.scrollLeft:n.offset.left,r=n.width,s=e.left-t.collisionPosition.marginLeft,a=o-s,l=s+t.collisionWidth-r-o;t.collisionWidth>r?0<a&&l<=0?(i=e.left+a+t.collisionWidth-r-o,e.left+=a-i):e.left=0<l&&a<=0?o:l<a?o+r-t.collisionWidth:o:0<a?e.left+=a:0<l?e.left-=l:e.left=x(e.left-s,e.left)},top:function(e,t){var i,n=t.within,o=n.isWindow?n.scrollTop:n.offset.top,r=t.within.height,s=e.top-t.collisionPosition.marginTop,a=o-s,l=s+t.collisionHeight-r-o;t.collisionHeight>r?0<a&&l<=0?(i=e.top+a+t.collisionHeight-r-o,e.top+=a-i):e.top=0<l&&a<=0?o:l<a?o+r-t.collisionHeight:o:0<a?e.top+=a:0<l?e.top-=l:e.top=x(e.top-s,e.top)}},flip:{left:function(e,t){var i,n,o=t.within,r=o.offset.left+o.scrollLeft,s=o.width,a=o.isWindow?o.scrollLeft:o.offset.left,l=e.left-t.collisionPosition.marginLeft,c=l-a,u=l+t.collisionWidth-s-a,d="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,h="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,p=-2*t.offset[0];c<0?((i=e.left+d+h+p+t.collisionWidth-s-r)<0||j(c)>i)&&(e.left+=d+h+p):0<u&&(0<(n=e.left-t.collisionPosition.marginLeft+d+h+p-a)||u>j(n))&&(e.left+=d+h+p)},top:function(e,t){var i,n,o=t.within,r=o.offset.top+o.scrollTop,s=o.height,a=o.isWindow?o.scrollTop:o.offset.top,l=e.top-t.collisionPosition.marginTop,c=l-a,u=l+t.collisionHeight-s-a,d="top"===t.my[1]?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,h="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0,p=-2*t.offset[1];c<0?((n=e.top+d+h+p+t.collisionHeight-s-r)<0||j(c)>n)&&(e.top+=d+h+p):0<u&&(0<(i=e.top-t.collisionPosition.marginTop+d+h+p-a)||u>j(i))&&(e.top+=d+h+p)}},flipfit:{left:function(){k.ui.position.flip.left.apply(this,arguments),k.ui.position.fit.left.apply(this,arguments)},top:function(){k.ui.position.flip.top.apply(this,arguments),k.ui.position.fit.top.apply(this,arguments)}}},k.ui.position,k.extend(k.expr[":"],{data:k.expr.createPseudo?k.expr.createPseudo(function(t){return function(e){return!!k.data(e,t)}}):function(e,t,i){return!!k.data(e,i[3])}}),k.fn.extend({disableSelection:(n="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(n+".ui-disableSelection",function(e){e.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}}),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},k.fn.scrollParent=function(e){var t=this.css("position"),i="absolute"===t,n=e?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter(function(){var e=k(this);return(!i||"static"!==e.css("position"))&&n.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==t&&o.length?o:k(this[0].ownerDocument||document)},k.fn.extend({uniqueId:(t=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++t)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&k(this).removeAttr("id")})}}),k.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var g=!1;k(document).on("mouseup",function(){g=!1}),k.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(e){return!0===k.data(e.target,t.widgetName+".preventClickEvent")?(k.removeData(e.target,t.widgetName+".preventClickEvent"),e.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!g){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var t=this,i=1===e.which,n=!("string"!=typeof this.options.cancel||!e.target.nodeName)&&k(e.target).closest(this.options.cancel).length;return i&&!n&&this._mouseCapture(e)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){t.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?e.preventDefault():(!0===k.data(e.target,this.widgetName+".preventClickEvent")&&k.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return t._mouseMove(e)},this._mouseUpDelegate=function(e){return t._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),g=!0)),!0}},_mouseMove:function(e){if(this._mouseMoved){if(k.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&k.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,g=!1,e.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),k.ui.plugin={add:function(e,t,i){var n,o=k.ui[e].prototype;for(n in i)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([t,i[n]])},call:function(e,t,i,n){var o,r=e.plugins[t];if(r&&(n||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(o=0;r.length>o;o++)e.options[r[o][0]]&&r[o][1].apply(e.element,i)}},k.ui.safeActiveElement=function(t){var i;try{i=t.activeElement}catch(e){i=t.body}return(i=i||t.body).nodeName||(i=t.body),i},k.ui.safeBlur=function(e){e&&"body"!==e.nodeName.toLowerCase()&&k(e).trigger("blur")},k.widget("ui.draggable",k.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(e,t){this._super(e,t),"handle"===e&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?void(this.destroyOnClear=!0):(this._removeHandleClassName(),void this._mouseDestroy())},_mouseCapture:function(e){var t=this.options;return!(this.helper||t.disabled||0<k(e.target).closest(".ui-resizable-handle").length)&&(this.handle=this._getHandle(e),!!this.handle&&(this._blurActiveElement(e),this._blockFrames(!0===t.iframeFix?"iframe":t.iframeFix),!0))},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map(function(){var e=k(this);return k("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var t=k.ui.safeActiveElement(this.document[0]);k(e.target).closest(t).length||k.ui.safeBlur(t)},_mouseStart:function(e){var t=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),k.ui.ddmanager&&(k.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=0<this.helper.parents().filter(function(){return"fixed"===k(this).css("position")}).length,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,t.cursorAt&&this._adjustOffsetFromHelper(t.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),k.ui.ddmanager&&!t.dropBehaviour&&k.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),k.ui.ddmanager&&k.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(e){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top}},_mouseDrag:function(e,t){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!t){var i=this._uiHash();if(!1===this._trigger("drag",e,i))return this._mouseUp(new k.Event("mouseup",e)),!1;this.position=i.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",k.ui.ddmanager&&k.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var t=this,i=!1;return k.ui.ddmanager&&!this.options.dropBehaviour&&(i=k.ui.ddmanager.drop(this,e)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||k.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)?k(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==t._trigger("stop",e)&&t._clear()}):!1!==this._trigger("stop",e)&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),k.ui.ddmanager&&k.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),k.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new k.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!k(e.target).closest(this.element.find(this.options.handle)).length},_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(e){var t=this.options,i=k.isFunction(t.helper),n=i?k(t.helper.apply(this.element[0],[e])):"clone"===t.helper?this.element.clone().removeAttr("id"):this.element;return n.parents("body").length||n.appendTo("parent"===t.appendTo?this.element[0].parentNode:t.appendTo),i&&n[0]===this.element[0]&&this._setPositionRelative(),n[0]===this.element[0]||/(fixed|absolute)/.test(n.css("position"))||n.css("position","absolute"),n},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),k.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),t=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==t&&k.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(t?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,t,i,n=this.options,o=this.document[0];return this.relativeContainer=null,n.containment?"window"===n.containment?void(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()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===n.containment?void(this.containment=[0,0,k(o).width()-this.helperProportions.width-this.margins.left,(k(o).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):n.containment.constructor===Array?void(this.containment=n.containment):("parent"===n.containment&&(n.containment=this.helper[0].parentNode),void((i=(t=k(n.containment))[0])&&(e=/(scroll|auto)/.test(t.css("overflow")),this.containment=[(parseInt(t.css("borderLeftWidth"),10)||0)+(parseInt(t.css("paddingLeft"),10)||0),(parseInt(t.css("borderTopWidth"),10)||0)+(parseInt(t.css("paddingTop"),10)||0),(e?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(t.css("borderRightWidth"),10)||0)-(parseInt(t.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(t.css("borderBottomWidth"),10)||0)-(parseInt(t.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=t))):void(this.containment=null)},_convertPositionTo:function(e,t){t=t||this.position;var i="absolute"===e?1:-1,n=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top)*i,left:t.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:n?0:this.offset.scroll.left)*i}},_generatePosition:function(e,t){var i,n,o,r,s=this.options,a=this._isRootNode(this.scrollParent[0]),l=e.pageX,c=e.pageY;return a&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(i=this.relativeContainer?(n=this.relativeContainer.offset(),[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):this.containment,e.pageX-this.offset.click.left<i[0]&&(l=i[0]+this.offset.click.left),e.pageY-this.offset.click.top<i[1]&&(c=i[1]+this.offset.click.top),e.pageX-this.offset.click.left>i[2]&&(l=i[2]+this.offset.click.left),e.pageY-this.offset.click.top>i[3]&&(c=i[3]+this.offset.click.top)),s.grid&&(o=s.grid[1]?this.originalPageY+Math.round((c-this.originalPageY)/s.grid[1])*s.grid[1]:this.originalPageY,c=i?o-this.offset.click.top>=i[1]||o-this.offset.click.top>i[3]?o:o-this.offset.click.top>=i[1]?o-s.grid[1]:o+s.grid[1]:o,r=s.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/s.grid[0])*s.grid[0]:this.originalPageX,l=i?r-this.offset.click.left>=i[0]||r-this.offset.click.left>i[2]?r:r-this.offset.click.left>=i[0]?r-s.grid[0]:r+s.grid[0]:r),"y"===s.axis&&(l=this.originalPageX),"x"===s.axis&&(c=this.originalPageY)),{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:a?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:a?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,t,i){return i=i||this._uiHash(),k.ui.plugin.call(this,e,[t,i,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),k.Widget.prototype._trigger.call(this,e,t,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),k.ui.plugin.add("draggable","connectToSortable",{start:function(t,e,i){var n=k.extend({},e,{item:i.element});i.sortables=[],k(i.options.connectToSortable).each(function(){var e=k(this).sortable("instance");e&&!e.options.disabled&&(i.sortables.push(e),e.refreshPositions(),e._trigger("activate",t,n))})},stop:function(t,e,i){var n=k.extend({},e,{item:i.element});i.cancelHelperRemoval=!1,k.each(i.sortables,function(){var e=this;e.isOver?(e.isOver=0,i.cancelHelperRemoval=!0,e.cancelHelperRemoval=!1,e._storedCSS={position:e.placeholder.css("position"),top:e.placeholder.css("top"),left:e.placeholder.css("left")},e._mouseStop(t),e.options.helper=e.options._helper):(e.cancelHelperRemoval=!0,e._trigger("deactivate",t,n))})},drag:function(i,n,o){k.each(o.sortables,function(){var e=!1,t=this;t.positionAbs=o.positionAbs,t.helperProportions=o.helperProportions,t.offset.click=o.offset.click,t._intersectsWith(t.containerCache)&&(e=!0,k.each(o.sortables,function(){return this.positionAbs=o.positionAbs,this.helperProportions=o.helperProportions,this.offset.click=o.offset.click,this!==t&&this._intersectsWith(this.containerCache)&&k.contains(t.element[0],this.element[0])&&(e=!1),e})),e?(t.isOver||(t.isOver=1,o._parent=n.helper.parent(),t.currentItem=n.helper.appendTo(t.element).data("ui-sortable-item",!0),t.options._helper=t.options.helper,t.options.helper=function(){return n.helper[0]},i.target=t.currentItem[0],t._mouseCapture(i,!0),t._mouseStart(i,!0,!0),t.offset.click.top=o.offset.click.top,t.offset.click.left=o.offset.click.left,t.offset.parent.left-=o.offset.parent.left-t.offset.parent.left,t.offset.parent.top-=o.offset.parent.top-t.offset.parent.top,o._trigger("toSortable",i),o.dropped=t.element,k.each(o.sortables,function(){this.refreshPositions()}),o.currentItem=o.element,t.fromOutside=o),t.currentItem&&(t._mouseDrag(i),n.position=t.position)):t.isOver&&(t.isOver=0,t.cancelHelperRemoval=!0,t.options._revert=t.options.revert,t.options.revert=!1,t._trigger("out",i,t._uiHash(t)),t._mouseStop(i,!0),t.options.revert=t.options._revert,t.options.helper=t.options._helper,t.placeholder&&t.placeholder.remove(),n.helper.appendTo(o._parent),o._refreshOffsets(i),n.position=o._generatePosition(i,!0),o._trigger("fromSortable",i),o.dropped=!1,k.each(o.sortables,function(){this.refreshPositions()}))})}}),k.ui.plugin.add("draggable","cursor",{start:function(e,t,i){var n=k("body"),o=i.options;n.css("cursor")&&(o._cursor=n.css("cursor")),n.css("cursor",o.cursor)},stop:function(e,t,i){var n=i.options;n._cursor&&k("body").css("cursor",n._cursor)}}),k.ui.plugin.add("draggable","opacity",{start:function(e,t,i){var n=k(t.helper),o=i.options;n.css("opacity")&&(o._opacity=n.css("opacity")),n.css("opacity",o.opacity)},stop:function(e,t,i){var n=i.options;n._opacity&&k(t.helper).css("opacity",n._opacity)}}),k.ui.plugin.add("draggable","scroll",{start:function(e,t,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(e,t,i){var n=i.options,o=!1,r=i.scrollParentNotHidden[0],s=i.document[0];r!==s&&"HTML"!==r.tagName?(n.axis&&"x"===n.axis||(i.overflowOffset.top+r.offsetHeight-e.pageY<n.scrollSensitivity?r.scrollTop=o=r.scrollTop+n.scrollSpeed:e.pageY-i.overflowOffset.top<n.scrollSensitivity&&(r.scrollTop=o=r.scrollTop-n.scrollSpeed)),n.axis&&"y"===n.axis||(i.overflowOffset.left+r.offsetWidth-e.pageX<n.scrollSensitivity?r.scrollLeft=o=r.scrollLeft+n.scrollSpeed:e.pageX-i.overflowOffset.left<n.scrollSensitivity&&(r.scrollLeft=o=r.scrollLeft-n.scrollSpeed))):(n.axis&&"x"===n.axis||(e.pageY-k(s).scrollTop()<n.scrollSensitivity?o=k(s).scrollTop(k(s).scrollTop()-n.scrollSpeed):k(window).height()-(e.pageY-k(s).scrollTop())<n.scrollSensitivity&&(o=k(s).scrollTop(k(s).scrollTop()+n.scrollSpeed))),n.axis&&"y"===n.axis||(e.pageX-k(s).scrollLeft()<n.scrollSensitivity?o=k(s).scrollLeft(k(s).scrollLeft()-n.scrollSpeed):k(window).width()-(e.pageX-k(s).scrollLeft())<n.scrollSensitivity&&(o=k(s).scrollLeft(k(s).scrollLeft()+n.scrollSpeed)))),!1!==o&&k.ui.ddmanager&&!n.dropBehaviour&&k.ui.ddmanager.prepareOffsets(i,e)}}),k.ui.plugin.add("draggable","snap",{start:function(e,t,i){var n=i.options;i.snapElements=[],k(n.snap.constructor!==String?n.snap.items||":data(ui-draggable)":n.snap).each(function(){var e=k(this),t=e.offset();this!==i.element[0]&&i.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:t.top,left:t.left})})},drag:function(e,t,i){var n,o,r,s,a,l,c,u,d,h,p=i.options,f=p.snapTolerance,g=t.offset.left,m=g+i.helperProportions.width,_=t.offset.top,v=_+i.helperProportions.height;for(d=i.snapElements.length-1;0<=d;d--)l=(a=i.snapElements[d].left-i.margins.left)+i.snapElements[d].width,u=(c=i.snapElements[d].top-i.margins.top)+i.snapElements[d].height,m<a-f||l+f<g||v<c-f||u+f<_||!k.contains(i.snapElements[d].item.ownerDocument,i.snapElements[d].item)?(i.snapElements[d].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,e,k.extend(i._uiHash(),{snapItem:i.snapElements[d].item})),i.snapElements[d].snapping=!1):("inner"!==p.snapMode&&(n=f>=Math.abs(c-v),o=f>=Math.abs(u-_),r=f>=Math.abs(a-m),s=f>=Math.abs(l-g),n&&(t.position.top=i._convertPositionTo("relative",{top:c-i.helperProportions.height,left:0}).top),o&&(t.position.top=i._convertPositionTo("relative",{top:u,left:0}).top),r&&(t.position.left=i._convertPositionTo("relative",{top:0,left:a-i.helperProportions.width}).left),s&&(t.position.left=i._convertPositionTo("relative",{top:0,left:l}).left)),h=n||o||r||s,"outer"!==p.snapMode&&(n=f>=Math.abs(c-_),o=f>=Math.abs(u-v),r=f>=Math.abs(a-g),s=f>=Math.abs(l-m),n&&(t.position.top=i._convertPositionTo("relative",{top:c,left:0}).top),o&&(t.position.top=i._convertPositionTo("relative",{top:u-i.helperProportions.height,left:0}).top),r&&(t.position.left=i._convertPositionTo("relative",{top:0,left:a}).left),s&&(t.position.left=i._convertPositionTo("relative",{top:0,left:l-i.helperProportions.width}).left)),!i.snapElements[d].snapping&&(n||o||r||s||h)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,e,k.extend(i._uiHash(),{snapItem:i.snapElements[d].item})),i.snapElements[d].snapping=n||o||r||s||h)}}),k.ui.plugin.add("draggable","stack",{start:function(e,t,i){var n,o=i.options,r=k.makeArray(k(o.stack)).sort(function(e,t){return(parseInt(k(e).css("zIndex"),10)||0)-(parseInt(k(t).css("zIndex"),10)||0)});r.length&&(n=parseInt(k(r[0]).css("zIndex"),10)||0,k(r).each(function(e){k(this).css("zIndex",n+e)}),this.css("zIndex",n+r.length))}}),k.ui.plugin.add("draggable","zIndex",{start:function(e,t,i){var n=k(t.helper),o=i.options;n.css("zIndex")&&(o._zIndex=n.css("zIndex")),n.css("zIndex",o.zIndex)},stop:function(e,t,i){var n=i.options;n._zIndex&&k(t.helper).css("zIndex",n._zIndex)}}),k.ui.draggable,k.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,t=this.options,i=t.accept;this.isover=!1,this.isout=!0,this.accept=k.isFunction(i)?i:function(e){return e.is(i)},this.proportions=function(){return arguments.length?void(e=arguments[0]):e||(e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight})},this._addToManager(t.scope),t.addClasses&&this._addClass("ui-droppable")},_addToManager:function(e){k.ui.ddmanager.droppables[e]=k.ui.ddmanager.droppables[e]||[],k.ui.ddmanager.droppables[e].push(this)},_splice:function(e){for(var t=0;e.length>t;t++)e[t]===this&&e.splice(t,1)},_destroy:function(){var e=k.ui.ddmanager.droppables[this.options.scope];this._splice(e)},_setOption:function(e,t){if("accept"===e)this.accept=k.isFunction(t)?t:function(e){return e.is(t)};else if("scope"===e){var i=k.ui.ddmanager.droppables[this.options.scope];this._splice(i),this._addToManager(t)}this._super(e,t)},_activate:function(e){var t=k.ui.ddmanager.current;this._addActiveClass(),t&&this._trigger("activate",e,this.ui(t))},_deactivate:function(e){var t=k.ui.ddmanager.current;this._removeActiveClass(),t&&this._trigger("deactivate",e,this.ui(t))},_over:function(e){var t=k.ui.ddmanager.current;t&&(t.currentItem||t.element)[0]!==this.element[0]&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this._addHoverClass(),this._trigger("over",e,this.ui(t)))},_out:function(e){var t=k.ui.ddmanager.current;t&&(t.currentItem||t.element)[0]!==this.element[0]&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this._removeHoverClass(),this._trigger("out",e,this.ui(t)))},_drop:function(t,e){var i=e||k.ui.ddmanager.current,n=!1;return!(!i||(i.currentItem||i.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var e=k(this).droppable("instance");return e.options.greedy&&!e.options.disabled&&e.options.scope===i.options.scope&&e.accept.call(e.element[0],i.currentItem||i.element)&&_(i,k.extend(e,{offset:e.element.offset()}),e.options.tolerance,t)?!(n=!0):void 0}),!n&&(!!this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",t,this.ui(i)),this.element)))},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}});var m,_=k.ui.intersect=function(e,t,i,n){if(!t.offset)return!1;var o=(e.positionAbs||e.position.absolute).left+e.margins.left,r=(e.positionAbs||e.position.absolute).top+e.margins.top,s=o+e.helperProportions.width,a=r+e.helperProportions.height,l=t.offset.left,c=t.offset.top,u=l+t.proportions().width,d=c+t.proportions().height;switch(i){case"fit":return l<=o&&s<=u&&c<=r&&a<=d;case"intersect":return o+e.helperProportions.width/2>l&&u>s-e.helperProportions.width/2&&r+e.helperProportions.height/2>c&&d>a-e.helperProportions.height/2;case"pointer":return v(n.pageY,c,t.proportions().height)&&v(n.pageX,l,t.proportions().width);case"touch":return(c<=r&&r<=d||c<=a&&a<=d||r<c&&d<a)&&(l<=o&&o<=u||l<=s&&s<=u||o<l&&u<s);default:return!1}};function v(e,t,i){return t<=e&&e<t+i}!(k.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(e,t){var i,n,o=k.ui.ddmanager.droppables[e.options.scope]||[],r=t?t.type:null,s=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();e:for(i=0;o.length>i;i++)if(!(o[i].options.disabled||e&&!o[i].accept.call(o[i].element[0],e.currentItem||e.element))){for(n=0;s.length>n;n++)if(s[n]===o[i].element[0]){o[i].proportions().height=0;continue e}o[i].visible="none"!==o[i].element.css("display"),o[i].visible&&("mousedown"===r&&o[i]._activate.call(o[i],t),o[i].offset=o[i].element.offset(),o[i].proportions({width:o[i].element[0].offsetWidth,height:o[i].element[0].offsetHeight}))}},drop:function(e,t){var i=!1;return k.each((k.ui.ddmanager.droppables[e.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&_(e,this,this.options.tolerance,t)&&(i=this._drop.call(this,t)||i),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,t)))}),i},dragStart:function(e,t){e.element.parentsUntil("body").on("scroll.droppable",function(){e.options.refreshPositions||k.ui.ddmanager.prepareOffsets(e,t)})},drag:function(r,s){r.options.refreshPositions&&k.ui.ddmanager.prepareOffsets(r,s),k.each(k.ui.ddmanager.droppables[r.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var e,t,i,n=_(r,this,this.options.tolerance,s),o=!n&&this.isover?"isout":n&&!this.isover?"isover":null;o&&(this.options.greedy&&(t=this.options.scope,(i=this.element.parents(":data(ui-droppable)").filter(function(){return k(this).droppable("instance").options.scope===t})).length&&((e=k(i[0]).droppable("instance")).greedyChild="isover"===o)),e&&"isover"===o&&(e.isover=!1,e.isout=!0,e._out.call(e,s)),this[o]=!0,this["isout"===o?"isover":"isout"]=!1,this["isover"===o?"_over":"_out"].call(this,s),e&&"isout"===o&&(e.isout=!1,e.isover=!0,e._over.call(e,s)))}})},dragStop:function(e,t){e.element.parentsUntil("body").off("scroll.droppable"),e.options.refreshPositions||k.ui.ddmanager.prepareOffsets(e,t)}})!==k.uiBackCompat&&k.widget("ui.droppable",k.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}}),k.ui.droppable,k.widget("ui.resizable",k.ui.mouse,{version:"1.12.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(e){return parseFloat(e)||0},_isNumber:function(e){return!isNaN(parseFloat(e))},_hasScroll:function(e,t){if("hidden"===k(e).css("overflow"))return!1;var i=t&&"left"===t?"scrollLeft":"scrollTop",n=!1;return 0<e[i]||(e[i]=1,n=0<e[i],e[i]=0,n)},_create:function(){var e,t=this.options,i=this;this._addClass("ui-resizable"),k.extend(this,{_aspectRatio:!!t.aspectRatio,aspectRatio:t.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:t.helper||t.ghost||t.animate?t.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(k("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,e={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(e),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(e),this._proportionallyResize()),this._setupHandles(),t.autoHide&&k(this.element).on("mouseenter",function(){t.disabled||(i._removeClass("ui-resizable-autohide"),i._handles.show())}).on("mouseleave",function(){t.disabled||i.resizing||(i._addClass("ui-resizable-autohide"),i._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy();function e(e){k(e).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()}var t;return this.elementIsWrapper&&(e(this.element),t=this.element,this.originalElement.css({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.css("top"),left:t.css("left")}).insertAfter(t),t.remove()),this.originalElement.css("resize",this.originalResizeStyle),e(this.originalElement),this},_setOption:function(e,t){switch(this._super(e,t),e){case"handles":this._removeHandles(),this._setupHandles()}},_setupHandles:function(){var e,t,i,n,o,r=this.options,s=this;if(this.handles=r.handles||(k(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=k(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),i=this.handles.split(","),this.handles={},t=0;i.length>t;t++)n="ui-resizable-"+(e=k.trim(i[t])),o=k("<div>"),this._addClass(o,"ui-resizable-handle "+n),o.css({zIndex:r.zIndex}),this.handles[e]=".ui-resizable-"+e,this.element.append(o);this._renderAxis=function(e){var t,i,n,o;for(t in e=e||this.element,this.handles)this.handles[t].constructor===String?this.handles[t]=this.element.children(this.handles[t]).first().show():(this.handles[t].jquery||this.handles[t].nodeType)&&(this.handles[t]=k(this.handles[t]),this._on(this.handles[t],{mousedown:s._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(i=k(this.handles[t],this.element),o=/sw|ne|nw|se|n|s/.test(t)?i.outerHeight():i.outerWidth(),n=["padding",/ne|nw|n/.test(t)?"Top":/se|sw|s/.test(t)?"Bottom":/^e$/.test(t)?"Right":"Left"].join(""),e.css(n,o),this._proportionallyResize()),this._handles=this._handles.add(this.handles[t])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){s.resizing||(this.className&&(o=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),s.axis=o&&o[1]?o[1]:"se")}),r.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(e){var t,i,n=!1;for(t in this.handles)(i=k(this.handles[t])[0])!==e.target&&!k.contains(i,e.target)||(n=!0);return!this.options.disabled&&n},_mouseStart:function(e){var t,i,n,o=this.options,r=this.element;return this.resizing=!0,this._renderProxy(),t=this._num(this.helper.css("left")),i=this._num(this.helper.css("top")),o.containment&&(t+=k(o.containment).scrollLeft()||0,i+=k(o.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:t,top:i},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:r.width(),height:r.height()},this.originalSize=this._helper?{width:r.outerWidth(),height:r.outerHeight()}:{width:r.width(),height:r.height()},this.sizeDiff={width:r.outerWidth()-r.width(),height:r.outerHeight()-r.height()},this.originalPosition={left:t,top:i},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof o.aspectRatio?o.aspectRatio:this.originalSize.width/this.originalSize.height||1,n=k(".ui-resizable-"+this.axis).css("cursor"),k("body").css("cursor","auto"===n?this.axis+"-resize":n),this._addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var t,i,n=this.originalMousePosition,o=this.axis,r=e.pageX-n.left||0,s=e.pageY-n.top||0,a=this._change[o];return this._updatePrevProperties(),a&&(t=a.apply(this,[e,r,s]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(t=this._updateRatio(t,e)),t=this._respectSize(t,e),this._updateCache(t),this._propagate("resize",e),i=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),k.isEmptyObject(i)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges())),!1},_mouseStop:function(e){this.resizing=!1;var t,i,n,o,r,s,a,l=this.options,c=this;return this._helper&&(n=(i=(t=this._proportionallyResizeElements).length&&/textarea/i.test(t[0].nodeName))&&this._hasScroll(t[0],"left")?0:c.sizeDiff.height,o=i?0:c.sizeDiff.width,r={width:c.helper.width()-o,height:c.helper.height()-n},s=parseFloat(c.element.css("left"))+(c.position.left-c.originalPosition.left)||null,a=parseFloat(c.element.css("top"))+(c.position.top-c.originalPosition.top)||null,l.animate||this.element.css(k.extend(r,{top:a,left:s})),c.helper.height(c.size.height),c.helper.width(c.size.width),this._helper&&!l.animate&&this._proportionallyResize()),k("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_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 e={};return this.position.top!==this.prevPosition.top&&(e.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(e.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(e.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(e.height=this.size.height+"px"),this.helper.css(e),e},_updateVirtualBoundaries:function(e){var t,i,n,o,r,s=this.options;r={minWidth:this._isNumber(s.minWidth)?s.minWidth:0,maxWidth:this._isNumber(s.maxWidth)?s.maxWidth:1/0,minHeight:this._isNumber(s.minHeight)?s.minHeight:0,maxHeight:this._isNumber(s.maxHeight)?s.maxHeight:1/0},(this._aspectRatio||e)&&(t=r.minHeight*this.aspectRatio,n=r.minWidth/this.aspectRatio,i=r.maxHeight*this.aspectRatio,o=r.maxWidth/this.aspectRatio,t>r.minWidth&&(r.minWidth=t),n>r.minHeight&&(r.minHeight=n),r.maxWidth>i&&(r.maxWidth=i),r.maxHeight>o&&(r.maxHeight=o)),this._vBoundaries=r},_updateCache:function(e){this.offset=this.helper.offset(),this._isNumber(e.left)&&(this.position.left=e.left),this._isNumber(e.top)&&(this.position.top=e.top),this._isNumber(e.height)&&(this.size.height=e.height),this._isNumber(e.width)&&(this.size.width=e.width)},_updateRatio:function(e){var t=this.position,i=this.size,n=this.axis;return this._isNumber(e.height)?e.width=e.height*this.aspectRatio:this._isNumber(e.width)&&(e.height=e.width/this.aspectRatio),"sw"===n&&(e.left=t.left+(i.width-e.width),e.top=null),"nw"===n&&(e.top=t.top+(i.height-e.height),e.left=t.left+(i.width-e.width)),e},_respectSize:function(e){var t=this._vBoundaries,i=this.axis,n=this._isNumber(e.width)&&t.maxWidth&&t.maxWidth<e.width,o=this._isNumber(e.height)&&t.maxHeight&&t.maxHeight<e.height,r=this._isNumber(e.width)&&t.minWidth&&t.minWidth>e.width,s=this._isNumber(e.height)&&t.minHeight&&t.minHeight>e.height,a=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,c=/sw|nw|w/.test(i),u=/nw|ne|n/.test(i);return r&&(e.width=t.minWidth),s&&(e.height=t.minHeight),n&&(e.width=t.maxWidth),o&&(e.height=t.maxHeight),r&&c&&(e.left=a-t.minWidth),n&&c&&(e.left=a-t.maxWidth),s&&u&&(e.top=l-t.minHeight),o&&u&&(e.top=l-t.maxHeight),e.width||e.height||e.left||!e.top?e.width||e.height||e.top||!e.left||(e.left=null):e.top=null,e},_getPaddingPlusBorderDimensions:function(e){for(var t=0,i=[],n=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],o=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")];t<4;t++)i[t]=parseFloat(n[t])||0,i[t]+=parseFloat(o[t])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var e,t=0,i=this.helper||this.element;this._proportionallyResizeElements.length>t;t++)e=this._proportionallyResizeElements[t],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(e)),e.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,t=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||k("<div style='overflow:hidden;'></div>"),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:++t.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(e,t){return{width:this.originalSize.width+t}},w:function(e,t){var i=this.originalSize;return{left:this.originalPosition.left+t,width:i.width-t}},n:function(e,t,i){var n=this.originalSize;return{top:this.originalPosition.top+i,height:n.height-i}},s:function(e,t,i){return{height:this.originalSize.height+i}},se:function(e,t,i){return k.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,t,i]))},sw:function(e,t,i){return k.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,t,i]))},ne:function(e,t,i){return k.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,t,i]))},nw:function(e,t,i){return k.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,t,i]))}},_propagate:function(e,t){k.ui.plugin.call(this,e,[t,this.ui()]),"resize"!==e&&this._trigger(e,t,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(t){var i=k(this).resizable("instance"),e=i.options,n=i._proportionallyResizeElements,o=n.length&&/textarea/i.test(n[0].nodeName),r=o&&i._hasScroll(n[0],"left")?0:i.sizeDiff.height,s=o?0:i.sizeDiff.width,a={width:i.size.width-s,height:i.size.height-r},l=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,c=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(k.extend(a,c&&l?{top:c,left:l}:{}),{duration:e.animateDuration,easing:e.animateEasing,step:function(){var e={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};n&&n.length&&k(n[0]).css({width:e.width,height:e.height}),i._updateCache(e),i._propagate("resize",t)}})}}),k.ui.plugin.add("resizable","containment",{start:function(){var i,n,e,t,o,r,s,a=k(this).resizable("instance"),l=a.options,c=a.element,u=l.containment,d=u instanceof k?u.get(0):/parent/.test(u)?c.parent().get(0):u;d&&(a.containerElement=k(d),/document/.test(u)||u===document?(a.containerOffset={left:0,top:0},a.containerPosition={left:0,top:0},a.parentData={element:k(document),left:0,top:0,width:k(document).width(),height:k(document).height()||document.body.parentNode.scrollHeight}):(i=k(d),n=[],k(["Top","Right","Left","Bottom"]).each(function(e,t){n[e]=a._num(i.css("padding"+t))}),a.containerOffset=i.offset(),a.containerPosition=i.position(),a.containerSize={height:i.innerHeight()-n[3],width:i.innerWidth()-n[1]},e=a.containerOffset,t=a.containerSize.height,o=a.containerSize.width,r=a._hasScroll(d,"left")?d.scrollWidth:o,s=a._hasScroll(d)?d.scrollHeight:t,a.parentData={element:d,left:e.left,top:e.top,width:r,height:s}))},resize:function(e){var t,i,n,o,r=k(this).resizable("instance"),s=r.options,a=r.containerOffset,l=r.position,c=r._aspectRatio||e.shiftKey,u={top:0,left:0},d=r.containerElement,h=!0;d[0]!==document&&/static/.test(d.css("position"))&&(u=a),l.left<(r._helper?a.left:0)&&(r.size.width=r.size.width+(r._helper?r.position.left-a.left:r.position.left-u.left),c&&(r.size.height=r.size.width/r.aspectRatio,h=!1),r.position.left=s.helper?a.left:0),l.top<(r._helper?a.top:0)&&(r.size.height=r.size.height+(r._helper?r.position.top-a.top:r.position.top),c&&(r.size.width=r.size.height*r.aspectRatio,h=!1),r.position.top=r._helper?a.top:0),n=r.containerElement.get(0)===r.element.parent().get(0),o=/relative|absolute/.test(r.containerElement.css("position")),n&&o?(r.offset.left=r.parentData.left+r.position.left,r.offset.top=r.parentData.top+r.position.top):(r.offset.left=r.element.offset().left,r.offset.top=r.element.offset().top),t=Math.abs(r.sizeDiff.width+(r._helper?r.offset.left-u.left:r.offset.left-a.left)),i=Math.abs(r.sizeDiff.height+(r._helper?r.offset.top-u.top:r.offset.top-a.top)),t+r.size.width>=r.parentData.width&&(r.size.width=r.parentData.width-t,c&&(r.size.height=r.size.width/r.aspectRatio,h=!1)),i+r.size.height>=r.parentData.height&&(r.size.height=r.parentData.height-i,c&&(r.size.width=r.size.height*r.aspectRatio,h=!1)),h||(r.position.left=r.prevPosition.left,r.position.top=r.prevPosition.top,r.size.width=r.prevSize.width,r.size.height=r.prevSize.height)},stop:function(){var e=k(this).resizable("instance"),t=e.options,i=e.containerOffset,n=e.containerPosition,o=e.containerElement,r=k(e.helper),s=r.offset(),a=r.outerWidth()-e.sizeDiff.width,l=r.outerHeight()-e.sizeDiff.height;e._helper&&!t.animate&&/relative/.test(o.css("position"))&&k(this).css({left:s.left-n.left-i.left,width:a,height:l}),e._helper&&!t.animate&&/static/.test(o.css("position"))&&k(this).css({left:s.left-n.left-i.left,width:a,height:l})}}),k.ui.plugin.add("resizable","alsoResize",{start:function(){var e=k(this).resizable("instance").options;k(e.alsoResize).each(function(){var e=k(this);e.data("ui-resizable-alsoresize",{width:parseFloat(e.width()),height:parseFloat(e.height()),left:parseFloat(e.css("left")),top:parseFloat(e.css("top"))})})},resize:function(e,i){var t=k(this).resizable("instance"),n=t.options,o=t.originalSize,r=t.originalPosition,s={height:t.size.height-o.height||0,width:t.size.width-o.width||0,top:t.position.top-r.top||0,left:t.position.left-r.left||0};k(n.alsoResize).each(function(){var e=k(this),n=k(this).data("ui-resizable-alsoresize"),o={},t=e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];k.each(t,function(e,t){var i=(n[t]||0)+(s[t]||0);i&&0<=i&&(o[t]=i||null)}),e.css(o)})},stop:function(){k(this).removeData("ui-resizable-alsoresize")}}),k.ui.plugin.add("resizable","ghost",{start:function(){var e=k(this).resizable("instance"),t=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:t.height,width:t.width,margin:0,left:0,top:0}),e._addClass(e.ghost,"ui-resizable-ghost"),!1!==k.uiBackCompat&&"string"==typeof e.options.ghost&&e.ghost.addClass(this.options.ghost),e.ghost.appendTo(e.helper)},resize:function(){var e=k(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=k(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),k.ui.plugin.add("resizable","grid",{resize:function(){var e,t=k(this).resizable("instance"),i=t.options,n=t.size,o=t.originalSize,r=t.originalPosition,s=t.axis,a="number"==typeof i.grid?[i.grid,i.grid]:i.grid,l=a[0]||1,c=a[1]||1,u=Math.round((n.width-o.width)/l)*l,d=Math.round((n.height-o.height)/c)*c,h=o.width+u,p=o.height+d,f=i.maxWidth&&h>i.maxWidth,g=i.maxHeight&&p>i.maxHeight,m=i.minWidth&&i.minWidth>h,_=i.minHeight&&i.minHeight>p;i.grid=a,m&&(h+=l),_&&(p+=c),f&&(h-=l),g&&(p-=c),/^(se|s|e)$/.test(s)?(t.size.width=h,t.size.height=p):/^(ne)$/.test(s)?(t.size.width=h,t.size.height=p,t.position.top=r.top-d):/^(sw)$/.test(s)?(t.size.width=h,t.size.height=p,t.position.left=r.left-u):((p-c<=0||h-l<=0)&&(e=t._getPaddingPlusBorderDimensions(this)),0<p-c?(t.size.height=p,t.position.top=r.top-d):(p=c-e.height,t.size.height=p,t.position.top=r.top+o.height-p),0<h-l?(t.size.width=h,t.position.left=r.left-u):(h=l-e.width,t.size.width=h,t.position.left=r.left+o.width-h))}}),k.ui.resizable,k.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault()},"click .ui-menu-item":function(e){var t=k(e.target),i=k(k.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&t.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),t.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&i.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){if(!this.previousFilter){var t=k(e.target).closest(".ui-menu-item"),i=k(e.currentTarget);t[0]===i[0]&&(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,i))}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var i=this.active||this.element.find(this.options.items).eq(0);t||this.focus(e,i)},blur:function(e){this._delay(function(){k.contains(this.element[0],k.ui.safeActiveElement(this.document[0]))||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e),this.mouseHandled=!1}})},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),e.children().each(function(){var e=k(this);e.data("ui-menu-submenu-caret")&&e.remove()})},_keydown:function(e){var t,i,n,o,r=!0;switch(e.keyCode){case k.ui.keyCode.PAGE_UP:this.previousPage(e);break;case k.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case k.ui.keyCode.HOME:this._move("first","first",e);break;case k.ui.keyCode.END:this._move("last","last",e);break;case k.ui.keyCode.UP:this.previous(e);break;case k.ui.keyCode.DOWN:this.next(e);break;case k.ui.keyCode.LEFT:this.collapse(e);break;case k.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case k.ui.keyCode.ENTER:case k.ui.keyCode.SPACE:this._activate(e);break;case k.ui.keyCode.ESCAPE:this.collapse(e);break;default:r=!1,i=this.previousFilter||"",o=!1,n=96<=e.keyCode&&e.keyCode<=105?""+(e.keyCode-96):String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),n===i?o=!0:n=i+n,t=this._filterMenuItems(n),(t=o&&-1!==t.index(this.active.next())?this.active.nextAll(".ui-menu-item"):t).length||(n=String.fromCharCode(e.keyCode),t=this._filterMenuItems(n)),t.length?(this.focus(e,t),this.previousFilter=n,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}r&&e.preventDefault()},_activate:function(e){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var e,t,i,n,o=this,r=this.options.icons.submenu,s=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),t=s.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=k(this),t=e.prev(),i=k("<span>").data("ui-menu-submenu-caret",!0);o._addClass(i,"ui-menu-icon","ui-icon "+r),t.attr("aria-haspopup","true").prepend(i),e.attr("aria-labelledby",t.attr("id"))}),this._addClass(t,"ui-menu","ui-widget ui-widget-content ui-front"),(e=s.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var e=k(this);o._isDivider(e)&&o._addClass(e,"ui-menu-divider","ui-widget-content")}),n=(i=e.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(i,"ui-menu-item")._addClass(n,"ui-menu-item-wrapper"),e.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!k.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){if("icons"===e){var i=this.element.find(".ui-menu-icon");this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,t.submenu)}this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",e+""),this._toggleClass(null,"ui-state-disabled",!!e)},focus:function(e,t){var i,n,o;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.first(),n=this.active.children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",n.attr("id")),o=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(o,null,"ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=t.children(".ui-menu")).length&&e&&/^mouse/.test(e.type)&&this._startOpening(i),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(e){var t,i,n,o,r,s;this._hasScroll()&&(t=parseFloat(k.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(k.css(this.activeMenu[0],"paddingTop"))||0,n=e.offset().top-this.activeMenu.offset().top-t-i,o=this.activeMenu.scrollTop(),r=this.activeMenu.height(),s=e.outerHeight(),n<0?this.activeMenu.scrollTop(o+n):r<n+s&&this.activeMenu.scrollTop(o+n-r+s))},blur:function(e,t){t||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",e,{item:this.active}),this.active=null)},_startOpening:function(e){clearTimeout(this.timer),"true"===e.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(e)},this.delay))},_open:function(e){var t=k.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(t)},collapseAll:function(t,i){clearTimeout(this.timer),this.timer=this._delay(function(){var e=i?this.element:k(t&&t.target).closest(this.element.find(".ui-menu"));e.length||(e=this.element),this._close(e),this.blur(t),this._removeClass(e.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=e},this.delay)},_close:function(e){(e=e||(this.active?this.active.parent():this.element)).find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(e){return!k(e.target).closest(".ui-menu").length},_isDivider:function(e){return!/[^\-\u2014\u2013\s]/.test(e.text())},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(e,t)}))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(e,t,i){var n;this.active&&(n="first"===e||"last"===e?this.active["first"===e?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[e+"All"](".ui-menu-item").eq(0)),n&&n.length&&this.active||(n=this.activeMenu.find(this.options.items)[t]()),this.focus(i,n)},nextPage:function(e){var t,i,n;return this.active?void(this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,n=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return(t=k(this)).offset().top-i-n<0}),this.focus(e,t)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]()))):void this.next(e)},previousPage:function(e){var t,i,n;return this.active?void(this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,n=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return 0<(t=k(this)).offset().top-i+n}),this.focus(e,t)):this.focus(e,this.activeMenu.find(this.options.items).first()))):void this.next(e)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||k(e.target).closest(".ui-menu-item");var t={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,t)},_filterMenuItems:function(e){var t=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),i=RegExp("^"+t,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return i.test(k.trim(k(this).children(".ui-menu-item-wrapper").text()))})}}),k.widget("ui.autocomplete",{version:"1.12.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var i,n,o,e=this.element[0].nodeName.toLowerCase(),t="textarea"===e,r="input"===e;this.isMultiLine=t||!r&&this._isContentEditable(this.element),this.valueMethod=this.element[t||r?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(e){if(this.element.prop("readOnly"))n=o=i=!0;else{n=o=i=!1;var t=k.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:i=!0,this._move("previousPage",e);break;case t.PAGE_DOWN:i=!0,this._move("nextPage",e);break;case t.UP:i=!0,this._keyEvent("previous",e);break;case t.DOWN:i=!0,this._keyEvent("next",e);break;case t.ENTER:this.menu.active&&(i=!0,e.preventDefault(),this.menu.select(e));break;case t.TAB:this.menu.active&&this.menu.select(e);break;case t.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(e),e.preventDefault());break;default:n=!0,this._searchTimeout(e)}}},keypress:function(e){if(i)return i=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||e.preventDefault());if(!n){var t=k.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:this._move("previousPage",e);break;case t.PAGE_DOWN:this._move("nextPage",e);break;case t.UP:this._keyEvent("previous",e);break;case t.DOWN:this._keyEvent("next",e)}}},input:function(e){return o?(o=!1,void e.preventDefault()):void this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(e),void this._change(e))}}),this._initSource(),this.menu=k("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==k.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(e,t){var i,n;return this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type))?(this.menu.blur(),void this.document.one("mousemove",function(){k(e.target).trigger(e.originalEvent)})):(n=t.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:n})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(n.value),void((i=t.item.attr("aria-label")||n.value)&&k.trim(i).length&&(this.liveRegion.children().hide(),k("<div>").text(i).appendTo(this.liveRegion))))},menuselect:function(e,t){var i=t.item.data("ui-autocomplete-item"),n=this.previous;this.element[0]!==k.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=n,this._delay(function(){this.previous=n,this.selectedItem=i})),!1!==this._trigger("select",e,{item:i})&&this._value(i.value),this.term=this._value(),this.close(e),this.selectedItem=i}}),this.liveRegion=k("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var t=this.menu.element[0];return e.target===this.element[0]||e.target===t||k.contains(t,e.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var e=this.options.appendTo;return(e=e&&(e.jquery||e.nodeType?k(e):this.document.find(e).eq(0)))&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_initSource:function(){var i,n,o=this;k.isArray(this.options.source)?(i=this.options.source,this.source=function(e,t){t(k.ui.autocomplete.filter(i,e.term))}):"string"==typeof this.options.source?(n=this.options.source,this.source=function(e,t){o.xhr&&o.xhr.abort(),o.xhr=k.ajax({url:n,data:e,dataType:"json",success:function(e){t(e)},error:function(){t([])}})}):this.source=this.options.source},_searchTimeout:function(n){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),t=this.menu.element.is(":visible"),i=n.altKey||n.ctrlKey||n.metaKey||n.shiftKey;e&&(!e||t||i)||(this.selectedItem=null,this.search(null,n))},this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):!1!==this._trigger("search",t)?this._search(e):void 0},_search:function(e){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var t=++this.requestIndex;return k.proxy(function(e){t===this.requestIndex&&this.__response(e),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")},this)},__response:function(e){e=e&&this._normalize(e),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:k.map(e,function(e){return"string"==typeof e?{label:e,value:e}:k.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var t=this.menu.element.empty();this._renderMenu(t,e),this.isNewMenu=!0,this.menu.refresh(),t.show(),this._resizeMenu(),t.position(k.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(i,e){var n=this;k.each(e,function(e,t){n._renderItemData(i,t)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(e,t){return k("<li>").append(k("<div>").text(t.label)).appendTo(e)},_move:function(e,t){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[e](t):void this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(e,t),t.preventDefault())},_isContentEditable:function(e){if(!e.length)return!1;var t=e.prop("contentEditable");return"inherit"===t?this._isContentEditable(e.parent()):"true"===t}}),k.extend(k.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,t){var i=RegExp(k.ui.autocomplete.escapeRegex(t),"i");return k.grep(e,function(e){return i.test(e.label||e.value||e)})}}),k.widget("ui.autocomplete",k.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(1<e?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var t;this._superApply(arguments),this.options.disabled||this.cancelSearch||(t=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),k("<div>").text(t).appendTo(this.liveRegion))}}),k.ui.autocomplete,k.extend(k.ui,{datepicker:{version:"1.12.1"}}),k.extend(e.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return d(this._defaults,e||{}),this},_attachDatepicker:function(e,t){var i,n,o;n="div"===(i=e.nodeName.toLowerCase())||"span"===i,e.id||(this.uuid+=1,e.id="dp"+this.uuid),(o=this._newInst(k(e),n)).settings=k.extend({},t||{}),"input"===i?this._connectDatepicker(e,o):n&&this._inlineDatepicker(e,o)},_newInst:function(e,t){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:t,dpDiv:t?i(k("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,t){var i=k(e);t.append=k([]),t.trigger=k([]),i.hasClass(this.markerClassName)||(this._attachments(i,t),i.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(t),k.data(e,"datepicker",t),t.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,t){var i,n,o,r=this._get(t,"appendText"),s=this._get(t,"isRTL");t.append&&t.append.remove(),r&&(t.append=k("<span class='"+this._appendClass+"'>"+r+"</span>"),e[s?"before":"after"](t.append)),e.off("focus",this._showDatepicker),t.trigger&&t.trigger.remove(),"focus"!==(i=this._get(t,"showOn"))&&"both"!==i||e.on("focus",this._showDatepicker),"button"!==i&&"both"!==i||(n=this._get(t,"buttonText"),o=this._get(t,"buttonImage"),t.trigger=k(this._get(t,"buttonImageOnly")?k("<img/>").addClass(this._triggerClass).attr({src:o,alt:n,title:n}):k("<button type='button'></button>").addClass(this._triggerClass).html(o?k("<img/>").attr({src:o,alt:n,title:n}):n)),e[s?"before":"after"](t.trigger),t.trigger.on("click",function(){return k.datepicker._datepickerShowing&&k.datepicker._lastInput===e[0]?k.datepicker._hideDatepicker():(k.datepicker._datepickerShowing&&k.datepicker._lastInput!==e[0]&&k.datepicker._hideDatepicker(),k.datepicker._showDatepicker(e[0])),!1}))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,i,n,o,r=new Date(2009,11,20),s=this._get(e,"dateFormat");s.match(/[DM]/)&&(t=function(e){for(o=n=i=0;e.length>o;o++)e[o].length>i&&(i=e[o].length,n=o);return n},r.setMonth(t(this._get(e,s.match(/MM/)?"monthNames":"monthNamesShort"))),r.setDate(t(this._get(e,s.match(/DD/)?"dayNames":"dayNamesShort"))+20-r.getDay())),e.input.attr("size",this._formatDate(e,r).length)}},_inlineDatepicker:function(e,t){var i=k(e);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(t.dpDiv),k.data(e,"datepicker",t),this._setDate(t,this._getDefaultDate(t),!0),this._updateDatepicker(t),this._updateAlternate(t),t.settings.disabled&&this._disableDatepicker(e),t.dpDiv.css("display","block"))},_dialogDatepicker:function(e,t,i,n,o){var r,s,a,l,c,u=this._dialogInst;return u||(this.uuid+=1,r="dp"+this.uuid,this._dialogInput=k("<input type='text' id='"+r+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),k("body").append(this._dialogInput),(u=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},k.data(this._dialogInput[0],"datepicker",u)),d(u.settings,n||{}),t=t&&t.constructor===Date?this._formatDate(u,t):t,this._dialogInput.val(t),this._pos=o?o.length?o:[o.pageX,o.pageY]:null,this._pos||(s=document.documentElement.clientWidth,a=document.documentElement.clientHeight,l=document.documentElement.scrollLeft||document.body.scrollLeft,c=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[s/2-100+l,a/2-150+c]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),u.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),k.blockUI&&k.blockUI(this.dpDiv),k.data(this._dialogInput[0],"datepicker",u),this},_destroyDatepicker:function(e){var t,i=k(e),n=k.data(e,"datepicker");i.hasClass(this.markerClassName)&&(t=e.nodeName.toLowerCase(),k.removeData(e,"datepicker"),"input"===t?(n.append.remove(),n.trigger.remove(),i.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==t&&"span"!==t||i.removeClass(this.markerClassName).empty(),m===n&&(m=null))},_enableDatepicker:function(t){var e,i,n=k(t),o=k.data(t,"datepicker");n.hasClass(this.markerClassName)&&("input"===(e=t.nodeName.toLowerCase())?(t.disabled=!1,o.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==e&&"span"!==e||((i=n.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=k.map(this._disabledInputs,function(e){return e===t?null:e}))},_disableDatepicker:function(t){var e,i,n=k(t),o=k.data(t,"datepicker");n.hasClass(this.markerClassName)&&("input"===(e=t.nodeName.toLowerCase())?(t.disabled=!0,o.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==e&&"span"!==e||((i=n.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=k.map(this._disabledInputs,function(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;this._disabledInputs.length>t;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(e){try{return k.data(e,"datepicker")}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,t,i){var n,o,r,s,a=this._getInst(e);return 2===arguments.length&&"string"==typeof t?"defaults"===t?k.extend({},k.datepicker._defaults):a?"all"===t?k.extend({},a.settings):this._get(a,t):null:(n=t||{},"string"==typeof t&&((n={})[t]=i),void(a&&(this._curInst===a&&this._hideDatepicker(),o=this._getDateDatepicker(e,!0),r=this._getMinMaxDate(a,"min"),s=this._getMinMaxDate(a,"max"),d(a.settings,n),null!==r&&void 0!==n.dateFormat&&void 0===n.minDate&&(a.settings.minDate=this._formatDate(a,r)),null!==s&&void 0!==n.dateFormat&&void 0===n.maxDate&&(a.settings.maxDate=this._formatDate(a,s)),"disabled"in n&&(n.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(k(e),a),this._autoSize(a),this._setDate(a,o),this._updateAlternate(a),this._updateDatepicker(a))))},_changeDatepicker:function(e,t,i){this._optionDatepicker(e,t,i)},_refreshDatepicker:function(e){var t=this._getInst(e);t&&this._updateDatepicker(t)},_setDateDatepicker:function(e,t){var i=this._getInst(e);i&&(this._setDate(i,t),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(e,t){var i=this._getInst(e);return i&&!i.inline&&this._setDateFromField(i,t),i?this._getDate(i):null},_doKeyDown:function(e){var t,i,n,o=k.datepicker._getInst(e.target),r=!0,s=o.dpDiv.is(".ui-datepicker-rtl");if(o._keyEvent=!0,k.datepicker._datepickerShowing)switch(e.keyCode){case 9:k.datepicker._hideDatepicker(),r=!1;break;case 13:return(n=k("td."+k.datepicker._dayOverClass+":not(."+k.datepicker._currentClass+")",o.dpDiv))[0]&&k.datepicker._selectDay(e.target,o.selectedMonth,o.selectedYear,n[0]),(t=k.datepicker._get(o,"onSelect"))?(i=k.datepicker._formatDate(o),t.apply(o.input?o.input[0]:null,[i,o])):k.datepicker._hideDatepicker(),!1;case 27:k.datepicker._hideDatepicker();break;case 33:k.datepicker._adjustDate(e.target,e.ctrlKey?-k.datepicker._get(o,"stepBigMonths"):-k.datepicker._get(o,"stepMonths"),"M");break;case 34:k.datepicker._adjustDate(e.target,e.ctrlKey?+k.datepicker._get(o,"stepBigMonths"):+k.datepicker._get(o,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&k.datepicker._clearDate(e.target),r=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&k.datepicker._gotoToday(e.target),r=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&k.datepicker._adjustDate(e.target,s?1:-1,"D"),r=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&k.datepicker._adjustDate(e.target,e.ctrlKey?-k.datepicker._get(o,"stepBigMonths"):-k.datepicker._get(o,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&k.datepicker._adjustDate(e.target,-7,"D"),r=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&k.datepicker._adjustDate(e.target,s?-1:1,"D"),r=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&k.datepicker._adjustDate(e.target,e.ctrlKey?+k.datepicker._get(o,"stepBigMonths"):+k.datepicker._get(o,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&k.datepicker._adjustDate(e.target,7,"D"),r=e.ctrlKey||e.metaKey;break;default:r=!1}else 36===e.keyCode&&e.ctrlKey?k.datepicker._showDatepicker(this):r=!1;r&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var t,i,n=k.datepicker._getInst(e.target);return k.datepicker._get(n,"constrainInput")?(t=k.datepicker._possibleChars(k.datepicker._get(n,"dateFormat")),i=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||i<" "||!t||-1<t.indexOf(i)):void 0},_doKeyUp:function(e){var t=k.datepicker._getInst(e.target);if(t.input.val()!==t.lastVal)try{k.datepicker.parseDate(k.datepicker._get(t,"dateFormat"),t.input?t.input.val():null,k.datepicker._getFormatConfig(t))&&(k.datepicker._setDateFromField(t),k.datepicker._updateAlternate(t),k.datepicker._updateDatepicker(t))}catch(e){}return!0},_showDatepicker:function(e){var t,i,n,o,r,s,a;"input"!==(e=e.target||e).nodeName.toLowerCase()&&(e=k("input",e.parentNode)[0]),k.datepicker._isDisabledDatepicker(e)||k.datepicker._lastInput===e||(t=k.datepicker._getInst(e),k.datepicker._curInst&&k.datepicker._curInst!==t&&(k.datepicker._curInst.dpDiv.stop(!0,!0),t&&k.datepicker._datepickerShowing&&k.datepicker._hideDatepicker(k.datepicker._curInst.input[0])),!1!==(n=(i=k.datepicker._get(t,"beforeShow"))?i.apply(e,[e,t]):{})&&(d(t.settings,n),t.lastVal=null,k.datepicker._lastInput=e,k.datepicker._setDateFromField(t),k.datepicker._inDialog&&(e.value=""),k.datepicker._pos||(k.datepicker._pos=k.datepicker._findPos(e),k.datepicker._pos[1]+=e.offsetHeight),o=!1,k(e).parents().each(function(){return!(o|="fixed"===k(this).css("position"))}),r={left:k.datepicker._pos[0],top:k.datepicker._pos[1]},k.datepicker._pos=null,t.dpDiv.empty(),t.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),k.datepicker._updateDatepicker(t),r=k.datepicker._checkOffset(t,r,o),t.dpDiv.css({position:k.datepicker._inDialog&&k.blockUI?"static":o?"fixed":"absolute",display:"none",left:r.left+"px",top:r.top+"px"}),t.inline||(s=k.datepicker._get(t,"showAnim"),a=k.datepicker._get(t,"duration"),t.dpDiv.css("z-index",function(e){for(var t,i;e.length&&e[0]!==document;){if(("absolute"===(t=e.css("position"))||"relative"===t||"fixed"===t)&&(i=parseInt(e.css("zIndex"),10),!isNaN(i)&&0!==i))return i;e=e.parent()}return 0}(k(e))+1),k.datepicker._datepickerShowing=!0,k.effects&&k.effects.effect[s]?t.dpDiv.show(s,k.datepicker._get(t,"showOptions"),a):t.dpDiv[s||"show"](s?a:null),k.datepicker._shouldFocusInput(t)&&t.input.trigger("focus"),k.datepicker._curInst=t)))},_updateDatepicker:function(e){this.maxRows=4,(m=e).dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var t,i=this._getNumberOfMonths(e),n=i[1],o=e.dpDiv.find("."+this._dayOverClass+" a");0<o.length&&r.apply(o.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<n&&e.dpDiv.addClass("ui-datepicker-multi-"+n).css("width",17*n+"em"),e.dpDiv[(1!==i[0]||1!==i[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===k.datepicker._curInst&&k.datepicker._datepickerShowing&&k.datepicker._shouldFocusInput(e)&&e.input.trigger("focus"),e.yearshtml&&(t=e.yearshtml,setTimeout(function(){t===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),t=e.yearshtml=null},0))},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(e,t,i){var n=e.dpDiv.outerWidth(),o=e.dpDiv.outerHeight(),r=e.input?e.input.outerWidth():0,s=e.input?e.input.outerHeight():0,a=document.documentElement.clientWidth+(i?0:k(document).scrollLeft()),l=document.documentElement.clientHeight+(i?0:k(document).scrollTop());return t.left-=this._get(e,"isRTL")?n-r:0,t.left-=i&&t.left===e.input.offset().left?k(document).scrollLeft():0,t.top-=i&&t.top===e.input.offset().top+s?k(document).scrollTop():0,t.left-=Math.min(t.left,t.left+n>a&&n<a?Math.abs(t.left+n-a):0),t.top-=Math.min(t.top,t.top+o>l&&o<l?Math.abs(o+s):0),t},_findPos:function(e){for(var t,i=this._getInst(e),n=this._get(i,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||k.expr.filters.hidden(e));)e=e[n?"previousSibling":"nextSibling"];return[(t=k(e).offset()).left,t.top]},_hideDatepicker:function(e){var t,i,n,o,r=this._curInst;!r||e&&r!==k.data(e,"datepicker")||this._datepickerShowing&&(t=this._get(r,"showAnim"),i=this._get(r,"duration"),n=function(){k.datepicker._tidyDialog(r)},k.effects&&(k.effects.effect[t]||k.effects[t])?r.dpDiv.hide(t,k.datepicker._get(r,"showOptions"),i,n):r.dpDiv["slideDown"===t?"slideUp":"fadeIn"===t?"fadeOut":"hide"](t?i:null,n),t||n(),this._datepickerShowing=!1,(o=this._get(r,"onClose"))&&o.apply(r.input?r.input[0]:null,[r.input?r.input.val():"",r]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),k.blockUI&&(k.unblockUI(),k("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(k.datepicker._curInst){var t=k(e.target),i=k.datepicker._getInst(t[0]);(t[0].id===k.datepicker._mainDivId||0!==t.parents("#"+k.datepicker._mainDivId).length||t.hasClass(k.datepicker.markerClassName)||t.closest("."+k.datepicker._triggerClass).length||!k.datepicker._datepickerShowing||k.datepicker._inDialog&&k.blockUI)&&(!t.hasClass(k.datepicker.markerClassName)||k.datepicker._curInst===i)||k.datepicker._hideDatepicker()}},_adjustDate:function(e,t,i){var n=k(e),o=this._getInst(n[0]);this._isDisabledDatepicker(n[0])||(this._adjustInstDate(o,t+("M"===i?this._get(o,"showCurrentAtPos"):0),i),this._updateDatepicker(o))},_gotoToday:function(e){var t,i=k(e),n=this._getInst(i[0]);this._get(n,"gotoCurrent")&&n.currentDay?(n.selectedDay=n.currentDay,n.drawMonth=n.selectedMonth=n.currentMonth,n.drawYear=n.selectedYear=n.currentYear):(t=new Date,n.selectedDay=t.getDate(),n.drawMonth=n.selectedMonth=t.getMonth(),n.drawYear=n.selectedYear=t.getFullYear()),this._notifyChange(n),this._adjustDate(i)},_selectMonthYear:function(e,t,i){var n=k(e),o=this._getInst(n[0]);o["selected"+("M"===i?"Month":"Year")]=o["draw"+("M"===i?"Month":"Year")]=parseInt(t.options[t.selectedIndex].value,10),this._notifyChange(o),this._adjustDate(n)},_selectDay:function(e,t,i,n){var o,r=k(e);k(n).hasClass(this._unselectableClass)||this._isDisabledDatepicker(r[0])||((o=this._getInst(r[0])).selectedDay=o.currentDay=k("a",n).html(),o.selectedMonth=o.currentMonth=t,o.selectedYear=o.currentYear=i,this._selectDate(e,this._formatDate(o,o.currentDay,o.currentMonth,o.currentYear)))},_clearDate:function(e){var t=k(e);this._selectDate(t,"")},_selectDate:function(e,t){var i,n=k(e),o=this._getInst(n[0]);t=null!=t?t:this._formatDate(o),o.input&&o.input.val(t),this._updateAlternate(o),(i=this._get(o,"onSelect"))?i.apply(o.input?o.input[0]:null,[t,o]):o.input&&o.input.trigger("change"),o.inline?this._updateDatepicker(o):(this._hideDatepicker(),this._lastInput=o.input[0],"object"!=typeof o.input[0]&&o.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var t,i,n,o=this._get(e,"altField");o&&(t=this._get(e,"altFormat")||this._get(e,"dateFormat"),i=this._getDate(e),n=this.formatDate(t,i,this._getFormatConfig(e)),k(o).val(n))},noWeekends:function(e){var t=e.getDay();return[0<t&&t<6,""]},iso8601Week:function(e){var t,i=new Date(e.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),t=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((t-i)/864e5)/7)+1},parseDate:function(i,r,e){if(null==i||null==r)throw"Invalid arguments";if(""===(r="object"==typeof r?""+r:r+""))return null;function s(e){var t=i.length>a+1&&i.charAt(a+1)===e;return t&&a++,t}function t(e){var t=s(e),i="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,n=RegExp("^\\d{"+("y"===e?i:1)+","+i+"}"),o=r.substring(d).match(n);if(!o)throw"Missing number at position "+d;return d+=o[0].length,parseInt(o[0],10)}function n(e,t,i){var n=-1,o=k.map(s(e)?i:t,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)});if(k.each(o,function(e,t){var i=t[1];return r.substr(d,i.length).toLowerCase()===i.toLowerCase()?(n=t[0],d+=i.length,!1):void 0}),-1!==n)return n+1;throw"Unknown name at position "+d}function o(){if(r.charAt(d)!==i.charAt(a))throw"Unexpected literal at position "+d;d++}var a,l,c,u,d=0,h=(e?e.shortYearCutoff:null)||this._defaults.shortYearCutoff,p="string"!=typeof h?h:(new Date).getFullYear()%100+parseInt(h,10),f=(e?e.dayNamesShort:null)||this._defaults.dayNamesShort,g=(e?e.dayNames:null)||this._defaults.dayNames,m=(e?e.monthNamesShort:null)||this._defaults.monthNamesShort,_=(e?e.monthNames:null)||this._defaults.monthNames,v=-1,y=-1,w=-1,b=-1,x=!1;for(a=0;i.length>a;a++)if(x)"'"!==i.charAt(a)||s("'")?o():x=!1;else switch(i.charAt(a)){case"d":w=t("d");break;case"D":n("D",f,g);break;case"o":b=t("o");break;case"m":y=t("m");break;case"M":y=n("M",m,_);break;case"y":v=t("y");break;case"@":v=(u=new Date(t("@"))).getFullYear(),y=u.getMonth()+1,w=u.getDate();break;case"!":v=(u=new Date((t("!")-this._ticksTo1970)/1e4)).getFullYear(),y=u.getMonth()+1,w=u.getDate();break;case"'":s("'")?o():x=!0;break;default:o()}if(r.length>d&&(c=r.substr(d),!/^\s+/.test(c)))throw"Extra/unparsed characters found in date: "+c;if(-1===v?v=(new Date).getFullYear():v<100&&(v+=(new Date).getFullYear()-(new Date).getFullYear()%100+(v<=p?0:-100)),-1<b)for(y=1,w=b;!(w<=(l=this._getDaysInMonth(v,y-1)));)y++,w-=l;if((u=this._daylightSavingAdjust(new Date(v,y-1,w))).getFullYear()!==v||u.getMonth()+1!==y||u.getDate()!==w)throw"Invalid date";return u},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:864e9*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(i,e,t){if(!e)return"";function o(e){var t=i.length>s+1&&i.charAt(s+1)===e;return t&&s++,t}function n(e,t,i){var n=""+t;if(o(e))for(;i>n.length;)n="0"+n;return n}function r(e,t,i,n){return o(e)?n[t]:i[t]}var s,a=(t?t.dayNamesShort:null)||this._defaults.dayNamesShort,l=(t?t.dayNames:null)||this._defaults.dayNames,c=(t?t.monthNamesShort:null)||this._defaults.monthNamesShort,u=(t?t.monthNames:null)||this._defaults.monthNames,d="",h=!1;if(e)for(s=0;i.length>s;s++)if(h)"'"!==i.charAt(s)||o("'")?d+=i.charAt(s):h=!1;else switch(i.charAt(s)){case"d":d+=n("d",e.getDate(),2);break;case"D":d+=r("D",e.getDay(),a,l);break;case"o":d+=n("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":d+=n("m",e.getMonth()+1,2);break;case"M":d+=r("M",e.getMonth(),c,u);break;case"y":d+=o("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":d+=e.getTime();break;case"!":d+=1e4*e.getTime()+this._ticksTo1970;break;case"'":o("'")?d+="'":h=!0;break;default:d+=i.charAt(s)}return d},_possibleChars:function(i){function e(e){var t=i.length>n+1&&i.charAt(n+1)===e;return t&&n++,t}var n,t="",o=!1;for(n=0;i.length>n;n++)if(o)"'"!==i.charAt(n)||e("'")?t+=i.charAt(n):o=!1;else switch(i.charAt(n)){case"d":case"m":case"y":case"@":t+="0123456789";break;case"D":case"M":return null;case"'":e("'")?t+="'":o=!0;break;default:t+=i.charAt(n)}return t},_get:function(e,t){return void 0!==e.settings[t]?e.settings[t]:this._defaults[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var i=this._get(e,"dateFormat"),n=e.lastVal=e.input?e.input.val():null,o=this._getDefaultDate(e),r=o,s=this._getFormatConfig(e);try{r=this.parseDate(i,n,s)||o}catch(e){n=t?"":n}e.selectedDay=r.getDate(),e.drawMonth=e.selectedMonth=r.getMonth(),e.drawYear=e.selectedYear=r.getFullYear(),e.currentDay=n?r.getDate():0,e.currentMonth=n?r.getMonth():0,e.currentYear=n?r.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(a,e,t){var i,n,o=null==e||""===e?t:"string"==typeof e?function(e){try{return k.datepicker.parseDate(k.datepicker._get(a,"dateFormat"),e,k.datepicker._getFormatConfig(a))}catch(e){}for(var t=(e.toLowerCase().match(/^c/)?k.datepicker._getDate(a):null)||new Date,i=t.getFullYear(),n=t.getMonth(),o=t.getDate(),r=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,s=r.exec(e);s;){switch(s[2]||"d"){case"d":case"D":o+=parseInt(s[1],10);break;case"w":case"W":o+=7*parseInt(s[1],10);break;case"m":case"M":n+=parseInt(s[1],10),o=Math.min(o,k.datepicker._getDaysInMonth(i,n));break;case"y":case"Y":i+=parseInt(s[1],10),o=Math.min(o,k.datepicker._getDaysInMonth(i,n))}s=r.exec(e)}return new Date(i,n,o)}(e):"number"==typeof e?isNaN(e)?t:(i=e,(n=new Date).setDate(n.getDate()+i),n):new Date(e.getTime());return(o=o&&"Invalid Date"==""+o?t:o)&&(o.setHours(0),o.setMinutes(0),o.setSeconds(0),o.setMilliseconds(0)),this._daylightSavingAdjust(o)},_daylightSavingAdjust:function(e){return e?(e.setHours(12<e.getHours()?e.getHours()+2:0),e):null},_setDate:function(e,t,i){var n=!t,o=e.selectedMonth,r=e.selectedYear,s=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=s.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=s.getMonth(),e.drawYear=e.selectedYear=e.currentYear=s.getFullYear(),o===e.selectedMonth&&r===e.selectedYear||i||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(n?"":this._formatDate(e))},_getDate:function(e){return!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay))},_attachHandlers:function(e){var t=this._get(e,"stepMonths"),i="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){k.datepicker._adjustDate(i,-t,"M")},next:function(){k.datepicker._adjustDate(i,+t,"M")},hide:function(){k.datepicker._hideDatepicker()},today:function(){k.datepicker._gotoToday(i)},selectDay:function(){return k.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return k.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return k.datepicker._selectMonthYear(i,this,"Y"),!1}};k(this).on(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(e){var t,i,n,o,r,s,a,l,c,u,d,h,p,f,g,m,_,v,y,w,b,x,k,j,C,D,T,Q,S,I,E,A,M,N,P,O,H,$,z,R=new Date,L=this._daylightSavingAdjust(new Date(R.getFullYear(),R.getMonth(),R.getDate())),W=this._get(e,"isRTL"),F=this._get(e,"showButtonPanel"),q=this._get(e,"hideIfNoPrevNext"),B=this._get(e,"navigationAsDateFormat"),U=this._getNumberOfMonths(e),Y=this._get(e,"showCurrentAtPos"),K=this._get(e,"stepMonths"),V=1!==U[0]||1!==U[1],X=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),G=this._getMinMaxDate(e,"min"),J=this._getMinMaxDate(e,"max"),Z=e.drawMonth-Y,ee=e.drawYear;if(Z<0&&(Z+=12,ee--),J)for(t=this._daylightSavingAdjust(new Date(J.getFullYear(),J.getMonth()-U[0]*U[1]+1,J.getDate())),t=G&&t<G?G:t;this._daylightSavingAdjust(new Date(ee,Z,1))>t;)--Z<0&&(Z=11,ee--);for(e.drawMonth=Z,e.drawYear=ee,i=this._get(e,"prevText"),i=B?this.formatDate(i,this._daylightSavingAdjust(new Date(ee,Z-K,1)),this._getFormatConfig(e)):i,n=this._canAdjustMonth(e,-1,ee,Z)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(W?"e":"w")+"'>"+i+"</span></a>":q?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(W?"e":"w")+"'>"+i+"</span></a>",o=this._get(e,"nextText"),o=B?this.formatDate(o,this._daylightSavingAdjust(new Date(ee,Z+K,1)),this._getFormatConfig(e)):o,r=this._canAdjustMonth(e,1,ee,Z)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+o+"'><span class='ui-icon ui-icon-circle-triangle-"+(W?"w":"e")+"'>"+o+"</span></a>":q?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+o+"'><span class='ui-icon ui-icon-circle-triangle-"+(W?"w":"e")+"'>"+o+"</span></a>",s=this._get(e,"currentText"),a=this._get(e,"gotoCurrent")&&e.currentDay?X:L,s=B?this.formatDate(s,a,this._getFormatConfig(e)):s,l=e.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(e,"closeText")+"</button>",c=F?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(W?l:"")+(this._isInRange(e,a)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+s+"</button>":"")+(W?"":l)+"</div>":"",u=parseInt(this._get(e,"firstDay"),10),u=isNaN(u)?0:u,d=this._get(e,"showWeek"),h=this._get(e,"dayNames"),p=this._get(e,"dayNamesMin"),f=this._get(e,"monthNames"),g=this._get(e,"monthNamesShort"),m=this._get(e,"beforeShowDay"),_=this._get(e,"showOtherMonths"),v=this._get(e,"selectOtherMonths"),y=this._getDefaultDate(e),w="",x=0;U[0]>x;x++){for(k="",this.maxRows=4,j=0;U[1]>j;j++){if(C=this._daylightSavingAdjust(new Date(ee,Z,e.selectedDay)),D=" ui-corner-all",T="",V){if(T+="<div class='ui-datepicker-group",1<U[1])switch(j){case 0:T+=" ui-datepicker-group-first",D=" ui-corner-"+(W?"right":"left");break;case U[1]-1:T+=" ui-datepicker-group-last",D=" ui-corner-"+(W?"left":"right");break;default:T+=" ui-datepicker-group-middle",D=""}T+="'>"}for(T+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+D+"'>"+(/all|left/.test(D)&&0===x?W?r:n:"")+(/all|right/.test(D)&&0===x?W?n:r:"")+this._generateMonthYearHeader(e,Z,ee,G,J,0<x||0<j,f,g)+"</div><table class='ui-datepicker-calendar'><thead><tr>",Q=d?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",b=0;b<7;b++)Q+="<th scope='col'"+(5<=(b+u+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+h[S=(b+u)%7]+"'>"+p[S]+"</span></th>";for(T+=Q+"</tr></thead><tbody>",I=this._getDaysInMonth(ee,Z),ee===e.selectedYear&&Z===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,I)),E=(this._getFirstDayOfMonth(ee,Z)-u+7)%7,A=Math.ceil((E+I)/7),M=V&&this.maxRows>A?this.maxRows:A,this.maxRows=M,N=this._daylightSavingAdjust(new Date(ee,Z,1-E)),P=0;P<M;P++){for(T+="<tr>",O=d?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(N)+"</td>":"",b=0;b<7;b++)H=m?m.apply(e.input?e.input[0]:null,[N]):[!0,""],z=($=N.getMonth()!==Z)&&!v||!H[0]||G&&N<G||J&&J<N,O+="<td class='"+(5<=(b+u+6)%7?" ui-datepicker-week-end":"")+($?" ui-datepicker-other-month":"")+(N.getTime()===C.getTime()&&Z===e.selectedMonth&&e._keyEvent||y.getTime()===N.getTime()&&y.getTime()===C.getTime()?" "+this._dayOverClass:"")+(z?" "+this._unselectableClass+" ui-state-disabled":"")+($&&!_?"":" "+H[1]+(N.getTime()===X.getTime()?" "+this._currentClass:"")+(N.getTime()===L.getTime()?" ui-datepicker-today":""))+"'"+($&&!_||!H[2]?"":" title='"+H[2].replace(/'/g,"'")+"'")+(z?"":" data-handler='selectDay' data-event='click' data-month='"+N.getMonth()+"' data-year='"+N.getFullYear()+"'")+">"+($&&!_?" ":z?"<span class='ui-state-default'>"+N.getDate()+"</span>":"<a class='ui-state-default"+(N.getTime()===L.getTime()?" ui-state-highlight":"")+(N.getTime()===X.getTime()?" ui-state-active":"")+($?" ui-priority-secondary":"")+"' href='#'>"+N.getDate()+"</a>")+"</td>",N.setDate(N.getDate()+1),N=this._daylightSavingAdjust(N);T+=O+"</tr>"}11<++Z&&(Z=0,ee++),k+=T+="</tbody></table>"+(V?"</div>"+(0<U[0]&&j===U[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}w+=k}return w+=c,e._keyEvent=!1,w},_generateMonthYearHeader:function(e,t,i,n,o,r,s,a){var l,c,u,d,h,p,f,g,m=this._get(e,"changeMonth"),_=this._get(e,"changeYear"),v=this._get(e,"showMonthAfterYear"),y="<div class='ui-datepicker-title'>",w="";if(r||!m)w+="<span class='ui-datepicker-month'>"+s[t]+"</span>";else{for(l=n&&n.getFullYear()===i,c=o&&o.getFullYear()===i,w+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",u=0;u<12;u++)(!l||u>=n.getMonth())&&(!c||o.getMonth()>=u)&&(w+="<option value='"+u+"'"+(u===t?" selected='selected'":"")+">"+a[u]+"</option>");w+="</select>"}if(v||(y+=w+(!r&&m&&_?"":" ")),!e.yearshtml)if(e.yearshtml="",r||!_)y+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(d=this._get(e,"yearRange").split(":"),h=(new Date).getFullYear(),f=(p=function(e){var t=e.match(/c[+\-].*/)?i+parseInt(e.substring(1),10):e.match(/[+\-].*/)?h+parseInt(e,10):parseInt(e,10);return isNaN(t)?h:t})(d[0]),g=Math.max(f,p(d[1]||"")),f=n?Math.max(f,n.getFullYear()):f,g=o?Math.min(g,o.getFullYear()):g,e.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";f<=g;f++)e.yearshtml+="<option value='"+f+"'"+(f===i?" selected='selected'":"")+">"+f+"</option>";e.yearshtml+="</select>",y+=e.yearshtml,e.yearshtml=null}return y+=this._get(e,"yearSuffix"),v&&(y+=(!r&&m&&_?"":" ")+w),y+"</div>"},_adjustInstDate:function(e,t,i){var n=e.selectedYear+("Y"===i?t:0),o=e.selectedMonth+("M"===i?t:0),r=Math.min(e.selectedDay,this._getDaysInMonth(n,o))+("D"===i?t:0),s=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(n,o,r)));e.selectedDay=s.getDate(),e.drawMonth=e.selectedMonth=s.getMonth(),e.drawYear=e.selectedYear=s.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(e)},_restrictMinMax:function(e,t){var i=this._getMinMaxDate(e,"min"),n=this._getMinMaxDate(e,"max"),o=i&&t<i?i:t;return n&&n<o?n:o},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,i,n){var o=this._getNumberOfMonths(e),r=this._daylightSavingAdjust(new Date(i,n+(t<0?t:o[0]*o[1]),1));return t<0&&r.setDate(this._getDaysInMonth(r.getFullYear(),r.getMonth())),this._isInRange(e,r)},_isInRange:function(e,t){var i,n,o=this._getMinMaxDate(e,"min"),r=this._getMinMaxDate(e,"max"),s=null,a=null,l=this._get(e,"yearRange");return l&&(i=l.split(":"),n=(new Date).getFullYear(),s=parseInt(i[0],10),a=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(s+=n),i[1].match(/[+\-].*/)&&(a+=n)),(!o||t.getTime()>=o.getTime())&&(!r||t.getTime()<=r.getTime())&&(!s||t.getFullYear()>=s)&&(!a||a>=t.getFullYear())},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,i,n){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var o=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(n,i,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),o,this._getFormatConfig(e))}}),k.fn.datepicker=function(e){if(!this.length)return this;k.datepicker.initialized||(k(document).on("mousedown",k.datepicker._checkExternalClick),k.datepicker.initialized=!0),0===k("#"+k.datepicker._mainDivId).length&&k("body").append(k.datepicker.dpDiv);var t=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?k.datepicker["_"+e+"Datepicker"].apply(k.datepicker,[this[0]].concat(t)):this.each(function(){"string"==typeof e?k.datepicker["_"+e+"Datepicker"].apply(k.datepicker,[this].concat(t)):k.datepicker._attachDatepicker(this,e)}):k.datepicker["_"+e+"Datepicker"].apply(k.datepicker,[this[0]].concat(t))},k.datepicker=new e,k.datepicker.initialized=!1,k.datepicker.uuid=(new Date).getTime(),k.datepicker.version="1.12.1",k.datepicker;var y,w,b,Q,S,I,E,A,M,N,P,O,H,$,z,R,L,W,F,q,B,U="ui-effects-",Y="ui-effects-style",K="ui-effects-animated",V=k;function X(e,t,i,n){return k.isPlainObject(e)&&(e=(t=e).effect),e={effect:e},null==t&&(t={}),k.isFunction(t)&&(n=t,i=null,t={}),"number"!=typeof t&&!k.fx.speeds[t]||(n=i,i=t,t={}),k.isFunction(i)&&(n=i,i=null),t&&k.extend(e,t),i=i||t.duration,e.duration=k.fx.off?0:"number"==typeof i?i:i in k.fx.speeds?k.fx.speeds[i]:k.fx.speeds._default,e.complete=n||t.complete,e}function G(e){return!(e&&"number"!=typeof e&&!k.fx.speeds[e])||("string"==typeof e&&!k.effects.effect[e]||(!!k.isFunction(e)||"object"==typeof e&&!e.effect))}function J(e,t){var i=t.outerWidth(),n=t.outerHeight(),o=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(e)||["",0,i,n,0];return{top:parseFloat(o[1])||0,right:"auto"===o[2]?i:parseFloat(o[2]),bottom:"auto"===o[3]?n:parseFloat(o[3]),left:parseFloat(o[4])||0}}function Z(e){var t,i,n=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,o={};if(n&&n.length&&n[0]&&n[n[0]])for(i=n.length;i--;)"string"==typeof n[t=n[i]]&&(o[k.camelCase(t)]=n[t]);else for(t in n)"string"==typeof n[t]&&(o[t]=n[t]);return o}function ee(e,t,i){var n=W[t.type]||{};return null==e?i||!t.def?null:t.def:(e=n.floor?~~e:parseFloat(e),isNaN(e)?t.def:n.mod?(e+n.mod)%n.mod:e<0?0:e>n.max?n.max:e)}function te(s){var a=R(),l=a._rgba=[];return s=s.toLowerCase(),B(z,function(e,t){var i,n=t.re.exec(s),o=n&&t.parse(n),r=t.space||"rgba";return o?(i=a[r](o),a[L[r].cache]=i[L[r].cache],l=a._rgba=i._rgba,!1):O}),l.length?("0,0,0,0"===l.join()&&P.extend(l,H.transparent),a):H[s]}function ie(e,t,i){return 6*(i=(i+1)%1)<1?e+6*(t-e)*i:2*i<1?t:3*i<2?e+6*(t-e)*(2/3-i):e}k.effects={effect:{}},$=/^([\-+])=\s*(\d+\.?\d*)/,z=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[2.55*e[1],2.55*e[2],2.55*e[3],e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],R=(P=V).Color=function(e,t,i,n){return new P.Color.fn.parse(e,t,i,n)},L={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"}}}},W={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},F=R.support={},q=P("<p>")[0],B=P.each,q.style.cssText="background-color:rgba(1,1,1,.5)",F.rgba=-1<q.style.backgroundColor.indexOf("rgba"),B(L,function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}}),R.fn=P.extend(R.prototype,{parse:function(o,e,t,i){if(o===O)return this._rgba=[null,null,null,null],this;(o.jquery||o.nodeType)&&(o=P(o).css(e),e=O);var r=this,n=P.type(o),s=this._rgba=[];return e!==O&&(o=[o,e,t,i],n="array"),"string"===n?this.parse(te(o)||H._default):"array"===n?(B(L.rgba.props,function(e,t){s[t.idx]=ee(o[t.idx],t)}),this):"object"===n?(B(L,o instanceof R?function(e,t){o[t.cache]&&(r[t.cache]=o[t.cache].slice())}:function(e,i){var n=i.cache;B(i.props,function(e,t){if(!r[n]&&i.to){if("alpha"===e||null==o[e])return;r[n]=i.to(r._rgba)}r[n][t.idx]=ee(o[e],t,!0)}),r[n]&&P.inArray(null,r[n].slice(0,3))<0&&(r[n][3]=1,i.from&&(r._rgba=i.from(r[n])))}),this):O},is:function(e){var o=R(e),r=!0,s=this;return B(L,function(e,t){var i,n=o[t.cache];return n&&(i=s[t.cache]||t.to&&t.to(s._rgba)||[],B(t.props,function(e,t){return null!=n[t.idx]?r=n[t.idx]===i[t.idx]:O})),r}),r},_space:function(){var i=[],n=this;return B(L,function(e,t){n[t.cache]&&i.push(e)}),i.pop()},transition:function(e,s){var a=R(e),t=a._space(),i=L[t],n=0===this.alpha()?R("transparent"):this,l=n[i.cache]||i.to(n._rgba),c=l.slice();return a=a[i.cache],B(i.props,function(e,t){var i=t.idx,n=l[i],o=a[i],r=W[t.type]||{};null!==o&&(null===n?c[i]=o:(r.mod&&(o-n>r.mod/2?n+=r.mod:n-o>r.mod/2&&(n-=r.mod)),c[i]=ee((o-n)*s+n,t)))}),this[t](c)},blend:function(e){if(1===this._rgba[3])return this;var t=this._rgba.slice(),i=t.pop(),n=R(e)._rgba;return R(P.map(t,function(e,t){return(1-i)*n[t]+i*e}))},toRgbaString:function(){var e="rgba(",t=P.map(this._rgba,function(e,t){return null==e?2<t?1:0:e});return 1===t[3]&&(t.pop(),e="rgb("),e+t.join()+")"},toHslaString:function(){var e="hsla(",t=P.map(this.hsla(),function(e,t){return null==e&&(e=2<t?1:0),t&&t<3&&(e=Math.round(100*e)+"%"),e});return 1===t[3]&&(t.pop(),e="hsl("),e+t.join()+")"},toHexString:function(e){var t=this._rgba.slice(),i=t.pop();return e&&t.push(~~(255*i)),"#"+P.map(t,function(e){return 1===(e=(e||0).toString(16)).length?"0"+e:e}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),R.fn.parse.prototype=R.fn,L.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t,i,n=e[0]/255,o=e[1]/255,r=e[2]/255,s=e[3],a=Math.max(n,o,r),l=Math.min(n,o,r),c=a-l,u=a+l,d=.5*u;return t=l===a?0:n===a?60*(o-r)/c+360:o===a?60*(r-n)/c+120:60*(n-o)/c+240,i=0==c?0:d<=.5?c/u:c/(2-u),[Math.round(t)%360,i,d,null==s?1:s]},L.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/360,i=e[1],n=e[2],o=e[3],r=n<=.5?n*(1+i):n+i-n*i,s=2*n-r;return[Math.round(255*ie(s,r,t+1/3)),Math.round(255*ie(s,r,t)),Math.round(255*ie(s,r,t-1/3)),o]},B(L,function(l,e){var i=e.props,s=e.cache,a=e.to,c=e.from;R.fn[l]=function(e){if(a&&!this[s]&&(this[s]=a(this._rgba)),e===O)return this[s].slice();var t,n=P.type(e),o="array"===n||"object"===n?e:arguments,r=this[s].slice();return B(i,function(e,t){var i=o["object"===n?e:t.idx];null==i&&(i=r[t.idx]),r[t.idx]=ee(i,t)}),c?((t=R(c(r)))[s]=r,t):R(r)},B(i,function(s,a){R.fn[s]||(R.fn[s]=function(e){var t,i=P.type(e),n="alpha"===s?this._hsla?"hsla":"rgba":l,o=this[n](),r=o[a.idx];return"undefined"===i?r:("function"===i&&(e=e.call(this,r),i=P.type(e)),null==e&&a.empty?this:("string"===i&&(t=$.exec(e))&&(e=r+parseFloat(t[2])*("+"===t[1]?1:-1)),o[a.idx]=e,this[n](o)))})})}),R.hook=function(e){var t=e.split(" ");B(t,function(e,r){P.cssHooks[r]={set:function(e,t){var i,n,o="";if("transparent"!==t&&("string"!==P.type(t)||(i=te(t)))){if(t=R(i||t),!F.rgba&&1!==t._rgba[3]){for(n="backgroundColor"===r?e.parentNode:e;(""===o||"transparent"===o)&&n&&n.style;)try{o=P.css(n,"backgroundColor"),n=n.parentNode}catch(e){}t=t.blend(o&&"transparent"!==o?o:"_default")}t=t.toRgbaString()}try{e.style[r]=t}catch(e){}}},P.fx.step[r]=function(e){e.colorInit||(e.start=R(e.elem,r),e.end=R(e.end),e.colorInit=!0),P.cssHooks[r].set(e.elem,e.start.transition(e.end,e.pos))}})},R.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),P.cssHooks.borderColor={expand:function(i){var n={};return B(["Top","Right","Bottom","Left"],function(e,t){n["border"+t+"Color"]=i}),n}},H=P.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"},M=["add","remove","toggle"],N={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(e,t){k.fx.step[t]=function(e){("none"!==e.end&&!e.setAttr||1===e.pos&&!e.setAttr)&&(V.style(e.elem,t,e.end),e.setAttr=!0)}}),k.fn.addBack||(k.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),k.effects.animateClass=function(o,e,t,i){var r=k.speed(e,t,i);return this.queue(function(){var e,i=k(this),t=i.attr("class")||"",n=r.children?i.find("*").addBack():i;n=n.map(function(){return{el:k(this),start:Z(this)}}),(e=function(){k.each(M,function(e,t){o[t]&&i[t+"Class"](o[t])})})(),n=n.map(function(){return this.end=Z(this.el[0]),this.diff=function(e,t){var i,n,o={};for(i in t)n=t[i],e[i]!==n&&(N[i]||!k.fx.step[i]&&isNaN(parseFloat(n))||(o[i]=n));return o}(this.start,this.end),this}),i.attr("class",t),n=n.map(function(){var e=this,t=k.Deferred(),i=k.extend({},r,{queue:!1,complete:function(){t.resolve(e)}});return this.el.animate(this.diff,i),t.promise()}),k.when.apply(k,n.get()).done(function(){e(),k.each(arguments,function(){var t=this.el;k.each(this.diff,function(e){t.css(e,"")})}),r.complete.call(i[0])})})},k.fn.extend({addClass:(A=k.fn.addClass,function(e,t,i,n){return t?k.effects.animateClass.call(this,{add:e},t,i,n):A.apply(this,arguments)}),removeClass:(E=k.fn.removeClass,function(e,t,i,n){return 1<arguments.length?k.effects.animateClass.call(this,{remove:e},t,i,n):E.apply(this,arguments)}),toggleClass:(I=k.fn.toggleClass,function(e,t,i,n,o){return"boolean"==typeof t||void 0===t?i?k.effects.animateClass.call(this,t?{add:e}:{remove:e},i,n,o):I.apply(this,arguments):k.effects.animateClass.call(this,{toggle:e},t,i,n)}),switchClass:function(e,t,i,n,o){return k.effects.animateClass.call(this,{add:t,remove:e},i,n,o)}}),k.expr&&k.expr.filters&&k.expr.filters.animated&&(k.expr.filters.animated=(S=k.expr.filters.animated,function(e){return!!k(e).data(K)||S(e)})),!1!==k.uiBackCompat&&k.extend(k.effects,{save:function(e,t){for(var i=0,n=t.length;i<n;i++)null!==t[i]&&e.data(U+t[i],e[0].style[t[i]])},restore:function(e,t){for(var i,n=0,o=t.length;n<o;n++)null!==t[n]&&(i=e.data(U+t[n]),e.css(t[n],i))},setMode:function(e,t){return"toggle"===t&&(t=e.is(":hidden")?"show":"hide"),t},createWrapper:function(i){if(i.parent().is(".ui-effects-wrapper"))return i.parent();var n={width:i.outerWidth(!0),height:i.outerHeight(!0),float:i.css("float")},e=k("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),t={width:i.width(),height:i.height()},o=document.activeElement;try{o.id}catch(e){o=document.body}return i.wrap(e),i[0]!==o&&!k.contains(i[0],o)||k(o).trigger("focus"),e=i.parent(),"static"===i.css("position")?(e.css({position:"relative"}),i.css({position:"relative"})):(k.extend(n,{position:i.css("position"),zIndex:i.css("z-index")}),k.each(["top","left","bottom","right"],function(e,t){n[t]=i.css(t),isNaN(parseInt(n[t],10))&&(n[t]="auto")}),i.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),i.css(t),e.css(n).show()},removeWrapper:function(e){var t=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),e[0]!==t&&!k.contains(e[0],t)||k(t).trigger("focus")),e}}),k.extend(k.effects,{version:"1.12.1",define:function(e,t,i){return i||(i=t,t="effect"),k.effects.effect[e]=i,k.effects.effect[e].mode=t,i},scaledDimensions:function(e,t,i){if(0===t)return{height:0,width:0,outerHeight:0,outerWidth:0};var n="horizontal"!==i?(t||100)/100:1,o="vertical"!==i?(t||100)/100:1;return{height:e.height()*o,width:e.width()*n,outerHeight:e.outerHeight()*o,outerWidth:e.outerWidth()*n}},clipToBox:function(e){return{width:e.clip.right-e.clip.left,height:e.clip.bottom-e.clip.top,left:e.clip.left,top:e.clip.top}},unshift:function(e,t,i){var n=e.queue();1<t&&n.splice.apply(n,[1,0].concat(n.splice(t,i))),e.dequeue()},saveStyle:function(e){e.data(Y,e[0].style.cssText)},restoreStyle:function(e){e[0].style.cssText=e.data(Y)||"",e.removeData(Y)},mode:function(e,t){var i=e.is(":hidden");return"toggle"===t&&(t=i?"show":"hide"),(i?"hide"===t:"show"===t)&&(t="none"),t},getBaseline:function(e,t){var i,n;switch(e[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=e[0]/t.height}switch(e[1]){case"left":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=e[1]/t.width}return{x:n,y:i}},createPlaceholder:function(e){var t,i=e.css("position"),n=e.position();return e.css({marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()),/^(static|relative)/.test(i)&&(i="absolute",t=k("<"+e[0].nodeName+">").insertAfter(e).css({display:/^(inline|ruby)/.test(e.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight"),float:e.css("float")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).addClass("ui-effects-placeholder"),e.data(U+"placeholder",t)),e.css({position:i,left:n.left,top:n.top}),t},removePlaceholder:function(e){var t=U+"placeholder",i=e.data(t);i&&(i.remove(),e.removeData(t))},cleanUp:function(e){k.effects.restoreStyle(e),k.effects.removePlaceholder(e)},setTransition:function(n,e,o,r){return r=r||{},k.each(e,function(e,t){var i=n.cssUnit(t);0<i[0]&&(r[t]=i[0]*o+i[1])}),r}}),k.fn.extend({effect:function(){function e(e){function t(){k.isFunction(a)&&a.call(i[0]),k.isFunction(e)&&e()}var i=k(this);n.mode=c.shift(),!1===k.uiBackCompat||r?"none"===n.mode?(i[l](),t()):o.call(i[0],n,function(){i.removeData(K),k.effects.cleanUp(i),"hide"===n.mode&&i.hide(),t()}):(i.is(":hidden")?"hide"===l:"show"===l)?(i[l](),t()):o.call(i[0],n,t)}function t(e){var t=k(this),i=k.effects.mode(t,l)||r;t.data(K,!0),c.push(i),r&&("show"===i||i===r&&"hide"===i)&&t.show(),r&&"none"===i||k.effects.saveStyle(t),k.isFunction(e)&&e()}var n=X.apply(this,arguments),o=k.effects.effect[n.effect],r=o.mode,i=n.queue,s=i||"fx",a=n.complete,l=n.mode,c=[];return k.fx.off||!o?l?this[l](n.duration,a):this.each(function(){a&&a.call(this)}):!1===i?this.each(t).each(e):this.queue(s,t).queue(s,e)},show:(Q=k.fn.show,function(e){if(G(e))return Q.apply(this,arguments);var t=X.apply(this,arguments);return t.mode="show",this.effect.call(this,t)}),hide:(b=k.fn.hide,function(e){if(G(e))return b.apply(this,arguments);var t=X.apply(this,arguments);return t.mode="hide",this.effect.call(this,t)}),toggle:(w=k.fn.toggle,function(e){if(G(e)||"boolean"==typeof e)return w.apply(this,arguments);var t=X.apply(this,arguments);return t.mode="toggle",this.effect.call(this,t)}),cssUnit:function(e){var i=this.css(e),n=[];return k.each(["em","px","%","pt"],function(e,t){0<i.indexOf(t)&&(n=[parseFloat(i),t])}),n},cssClip:function(e){return e?this.css("clip","rect("+e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px)"):J(this.css("clip"),this)},transfer:function(e,t){var i=k(this),n=k(e.to),o="fixed"===n.css("position"),r=k("body"),s=o?r.scrollTop():0,a=o?r.scrollLeft():0,l=n.offset(),c={top:l.top-s,left:l.left-a,height:n.innerHeight(),width:n.innerWidth()},u=i.offset(),d=k("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(e.className).css({top:u.top-s,left:u.left-a,height:i.innerHeight(),width:i.innerWidth(),position:o?"fixed":"absolute"}).animate(c,e.duration,e.easing,function(){d.remove(),k.isFunction(t)&&t()})}}),k.fx.step.clip=function(e){e.clipInit||(e.start=k(e.elem).cssClip(),"string"==typeof e.end&&(e.end=J(e.end,e.elem)),e.clipInit=!0),k(e.elem).cssClip({top:e.pos*(e.end.top-e.start.top)+e.start.top,right:e.pos*(e.end.right-e.start.right)+e.start.right,bottom:e.pos*(e.end.bottom-e.start.bottom)+e.start.bottom,left:e.pos*(e.end.left-e.start.left)+e.start.left})},y={},k.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,e){y[e]=function(e){return Math.pow(e,t+2)}}),k.extend(y,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,i=4;((t=Math.pow(2,--i))-1)/11>e;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*t-2)/22-e,2)}}),k.each(y,function(e,t){k.easing["easeIn"+e]=t,k.easing["easeOut"+e]=function(e){return 1-t(1-e)},k.easing["easeInOut"+e]=function(e){return e<.5?t(2*e)/2:1-t(-2*e+2)/2}});k.effects;k.effects.define("highlight","show",function(e,t){var i=k(this),n={backgroundColor:i.css("backgroundColor")};"hide"===e.mode&&(n.opacity=0),k.effects.saveStyle(i),i.css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(n,{queue:!1,duration:e.duration,easing:e.easing,complete:t})}),!1!==k.uiBackCompat&&k.effects.define("transfer",function(e,t){k(this).transfer(e,t)})}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");function evo_prevent_key_enter(e){jQuery(e).keypress(function(e){if(13==e.keyCode)return!1})}function link_attachment_window(e,t,i,n,o,r){openModalWindow('<span class="loader_img loader_user_report absolute_center" title="'+evo_link_attachment_window_config.loader_title+'"></span>',"90%","80%",!0,evo_link_attachment_window_config.window_title,"",!0);var s={action:"link_attachment",link_owner_type:e,link_owner_ID:t,crumb_link:evo_link_attachment_window_config.crumb_link,root:void 0===i?"":i,path:void 0===n?"":n,fm_highlight:void 0===o?"":o,prefix:void 0===r?"":r};return jQuery.ajax({type:"POST",url:htsrv_url+"async.php",data:s,success:function(e){openModalWindow(e,"90%","80%",!0,evo_link_attachment_window_config.window_title,"")}}),!1}!function(){"use strict";var e=jQuery.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||3<e[0])throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(),function(n){"use strict";n.fn.emulateTransitionEnd=function(e){var t=!1,i=this;return n(this).one("bsTransitionEnd",function(){t=!0}),setTimeout(function(){t||n(i).trigger(n.support.transition.end)},e),this},n(function(){n.support.transition=function(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in t)if(void 0!==e.style[i])return{end:t[i]};return!1}(),n.support.transition&&(n.event.special.bsTransitionEnd={bindType:n.support.transition.end,delegateType:n.support.transition.end,handle:function(e){if(n(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(r){"use strict";function s(e){r(e).on("click",t,this.close)}var t='[data-dismiss="alert"]';s.VERSION="3.4.1",s.TRANSITION_DURATION=150,s.prototype.close=function(e){var t=r(this),i=t.attr("data-target");i="#"===(i=i||(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,""))?[]:i;var n=r(document).find(i);function o(){n.detach().trigger("closed.bs.alert").remove()}e&&e.preventDefault(),n.length||(n=t.closest(".alert")),n.trigger(e=r.Event("close.bs.alert")),e.isDefaultPrevented()||(n.removeClass("in"),r.support.transition&&n.hasClass("fade")?n.one("bsTransitionEnd",o).emulateTransitionEnd(s.TRANSITION_DURATION):o())};var e=r.fn.alert;r.fn.alert=function(i){return this.each(function(){var e=r(this),t=e.data("bs.alert");t||e.data("bs.alert",t=new s(this)),"string"==typeof i&&t[i].call(e)})},r.fn.alert.Constructor=s,r.fn.alert.noConflict=function(){return r.fn.alert=e,this},r(document).on("click.bs.alert.data-api",t,s.prototype.close)}(jQuery),function(r){"use strict";var o=function(e,t){this.$element=r(e),this.options=r.extend({},o.DEFAULTS,t),this.isLoading=!1};function i(n){return this.each(function(){var e=r(this),t=e.data("bs.button"),i="object"==typeof n&&n;t||e.data("bs.button",t=new o(this,i)),"toggle"==n?t.toggle():n&&t.setState(n)})}o.VERSION="3.4.1",o.DEFAULTS={loadingText:"loading..."},o.prototype.setState=function(e){var t="disabled",i=this.$element,n=i.is("input")?"val":"html",o=i.data();e+="Text",null==o.resetText&&i.data("resetText",i[n]()),setTimeout(r.proxy(function(){i[n](null==o[e]?this.options[e]:o[e]),"loadingText"==e?(this.isLoading=!0,i.addClass(t).attr(t,t).prop(t,!0)):this.isLoading&&(this.isLoading=!1,i.removeClass(t).removeAttr(t).prop(t,!1))},this),0)},o.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var i=this.$element.find("input");"radio"==i.prop("type")?(i.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==i.prop("type")&&(i.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),i.prop("checked",this.$element.hasClass("active")),e&&i.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var e=r.fn.button;r.fn.button=i,r.fn.button.Constructor=o,r.fn.button.noConflict=function(){return r.fn.button=e,this},r(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(e){var t=r(e.target).closest(".btn");i.call(t,"toggle"),r(e.target).is('input[type="radio"], input[type="checkbox"]')||(e.preventDefault(),t.is("input,button")?t.trigger("focus"):t.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){r(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(jQuery),function(d){"use strict";function h(e,t){this.$element=d(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=t,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",d.proxy(this.keydown,this)),"hover"!=this.options.pause||"ontouchstart"in document.documentElement||this.$element.on("mouseenter.bs.carousel",d.proxy(this.pause,this)).on("mouseleave.bs.carousel",d.proxy(this.cycle,this))}function a(o){return this.each(function(){var e=d(this),t=e.data("bs.carousel"),i=d.extend({},h.DEFAULTS,e.data(),"object"==typeof o&&o),n="string"==typeof o?o:i.slide;t||e.data("bs.carousel",t=new h(this,i)),"number"==typeof o?t.to(o):n?t[n]():i.interval&&t.pause().cycle()})}h.VERSION="3.4.1",h.TRANSITION_DURATION=600,h.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},h.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},h.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(d.proxy(this.next,this),this.options.interval)),this},h.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},h.prototype.getItemForDirection=function(e,t){var i=this.getItemIndex(t);if(("prev"==e&&0===i||"next"==e&&i==this.$items.length-1)&&!this.options.wrap)return t;var n=(i+("prev"==e?-1:1))%this.$items.length;return this.$items.eq(n)},h.prototype.to=function(e){var t=this,i=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){t.to(e)}):i==e?this.pause().cycle():this.slide(i<e?"next":"prev",this.$items.eq(e))},h.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&d.support.transition&&(this.$element.trigger(d.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},h.prototype.next=function(){if(!this.sliding)return this.slide("next")},h.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},h.prototype.slide=function(e,t){var i=this.$element.find(".item.active"),n=t||this.getItemForDirection(e,i),o=this.interval,r="next"==e?"left":"right",s=this;if(n.hasClass("active"))return this.sliding=!1;var a=n[0],l=d.Event("slide.bs.carousel",{relatedTarget:a,direction:r});if(this.$element.trigger(l),!l.isDefaultPrevented()){if(this.sliding=!0,o&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var c=d(this.$indicators.children()[this.getItemIndex(n)]);c&&c.addClass("active")}var u=d.Event("slid.bs.carousel",{relatedTarget:a,direction:r});return d.support.transition&&this.$element.hasClass("slide")?(n.addClass(e),"object"==typeof n&&n.length&&n[0].offsetWidth,i.addClass(r),n.addClass(r),i.one("bsTransitionEnd",function(){n.removeClass([e,r].join(" ")).addClass("active"),i.removeClass(["active",r].join(" ")),s.sliding=!1,setTimeout(function(){s.$element.trigger(u)},0)}).emulateTransitionEnd(h.TRANSITION_DURATION)):(i.removeClass("active"),n.addClass("active"),this.sliding=!1,this.$element.trigger(u)),o&&this.cycle(),this}};var e=d.fn.carousel;d.fn.carousel=a,d.fn.carousel.Constructor=h,d.fn.carousel.noConflict=function(){return d.fn.carousel=e,this};function t(e){var t=d(this),i=t.attr("href");i=i&&i.replace(/.*(?=#[^\s]+$)/,"");var n=t.attr("data-target")||i,o=d(document).find(n);if(o.hasClass("carousel")){var r=d.extend({},o.data(),t.data()),s=t.attr("data-slide-to");s&&(r.interval=!1),a.call(o,r),s&&o.data("bs.carousel").to(s),e.preventDefault()}}d(document).on("click.bs.carousel.data-api","[data-slide]",t).on("click.bs.carousel.data-api","[data-slide-to]",t),d(window).on("load",function(){d('[data-ride="carousel"]').each(function(){var e=d(this);a.call(e,e.data())})})}(jQuery),function(s){"use strict";var a=function(e,t){this.$element=s(e),this.options=s.extend({},a.DEFAULTS,t),this.$trigger=s('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function o(e){var t,i=e.attr("data-target")||(t=e.attr("href"))&&t.replace(/.*(?=#[^\s]+$)/,"");return s(document).find(i)}function l(n){return this.each(function(){var e=s(this),t=e.data("bs.collapse"),i=s.extend({},a.DEFAULTS,e.data(),"object"==typeof n&&n);!t&&i.toggle&&/show|hide/.test(n)&&(i.toggle=!1),t||e.data("bs.collapse",t=new a(this,i)),"string"==typeof n&&t[n]()})}a.VERSION="3.4.1",a.TRANSITION_DURATION=350,a.DEFAULTS={toggle:!0},a.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},a.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,t=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(t&&t.length&&(e=t.data("bs.collapse"))&&e.transitioning)){var i=s.Event("show.bs.collapse");if(this.$element.trigger(i),!i.isDefaultPrevented()){t&&t.length&&(l.call(t,"hide"),e||t.data("bs.collapse",null));var n=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[n](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var o=function(){this.$element.removeClass("collapsing").addClass("collapse in")[n](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!s.support.transition)return o.call(this);var r=s.camelCase(["scroll",n].join("-"));this.$element.one("bsTransitionEnd",s.proxy(o,this)).emulateTransitionEnd(a.TRANSITION_DURATION)[n](this.$element[0][r])}}}},a.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=s.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var t=this.dimension();this.$element[t](this.$element[t]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var i=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!s.support.transition)return i.call(this);this.$element[t](0).one("bsTransitionEnd",s.proxy(i,this)).emulateTransitionEnd(a.TRANSITION_DURATION)}}},a.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},a.prototype.getParent=function(){return s(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(s.proxy(function(e,t){var i=s(t);this.addAriaAndCollapsedClass(o(i),i)},this)).end()},a.prototype.addAriaAndCollapsedClass=function(e,t){var i=e.hasClass("in");e.attr("aria-expanded",i),t.toggleClass("collapsed",!i).attr("aria-expanded",i)};var e=s.fn.collapse;s.fn.collapse=l,s.fn.collapse.Constructor=a,s.fn.collapse.noConflict=function(){return s.fn.collapse=e,this},s(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(e){var t=s(this);t.attr("data-target")||e.preventDefault();var i=o(t),n=i.data("bs.collapse")?"toggle":t.data();l.call(i,n)})}(jQuery),function(s){"use strict";function n(e){s(e).on("click.bs.dropdown",this.toggle)}var a='[data-toggle="dropdown"]';function l(e){var t=e.attr("data-target"),i="#"!==(t=t||(t=e.attr("href"))&&/#[A-Za-z]/.test(t)&&t.replace(/.*(?=#[^\s]*$)/,""))?s(document).find(t):null;return i&&i.length?i:e.parent()}function r(n){n&&3===n.which||(s(".dropdown-backdrop").remove(),s(a).each(function(){var e=s(this),t=l(e),i={relatedTarget:this};t.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&s.contains(t[0],n.target)||(t.trigger(n=s.Event("hide.bs.dropdown",i)),n.isDefaultPrevented()||(e.attr("aria-expanded","false"),t.removeClass("open").trigger(s.Event("hidden.bs.dropdown",i)))))}))}n.VERSION="3.4.1",n.prototype.toggle=function(e){var t=s(this);if(!t.is(".disabled, :disabled")){var i=l(t),n=i.hasClass("open");if(r(),!n){"ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&s(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(s(this)).on("click",r);var o={relatedTarget:this};if(i.trigger(e=s.Event("show.bs.dropdown",o)),e.isDefaultPrevented())return;t.trigger("focus").attr("aria-expanded","true"),i.toggleClass("open").trigger(s.Event("shown.bs.dropdown",o))}return!1}},n.prototype.keydown=function(e){if(/(38|40|27|32)/.test(e.which)&&!/input|textarea/i.test(e.target.tagName)){var t=s(this);if(e.preventDefault(),e.stopPropagation(),!t.is(".disabled, :disabled")){var i=l(t),n=i.hasClass("open");if(!n&&27!=e.which||n&&27==e.which)return 27==e.which&&i.find(a).trigger("focus"),t.trigger("click");var o=i.find(".dropdown-menu li:not(.disabled):visible a");if(o.length){var r=o.index(e.target);38==e.which&&0<r&&r--,40==e.which&&r<o.length-1&&r++,~r||(r=0),o.eq(r).trigger("focus")}}}};var e=s.fn.dropdown;s.fn.dropdown=function(i){return this.each(function(){var e=s(this),t=e.data("bs.dropdown");t||e.data("bs.dropdown",t=new n(this)),"string"==typeof i&&t[i].call(e)})},s.fn.dropdown.Constructor=n,s.fn.dropdown.noConflict=function(){return s.fn.dropdown=e,this},s(document).on("click.bs.dropdown.data-api",r).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",a,n.prototype.toggle).on("keydown.bs.dropdown.data-api",a,n.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",n.prototype.keydown)}(jQuery),function(s){"use strict";function r(e,t){this.options=t,this.$body=s(document.body),this.$element=s(e),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,s.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))}function a(n,o){return this.each(function(){var e=s(this),t=e.data("bs.modal"),i=s.extend({},r.DEFAULTS,e.data(),"object"==typeof n&&n);t||e.data("bs.modal",t=new r(this,i)),"string"==typeof n?t[n](o):i.show&&t.show(o)})}r.VERSION="3.4.1",r.TRANSITION_DURATION=300,r.BACKDROP_TRANSITION_DURATION=150,r.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},r.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},r.prototype.show=function(i){var n=this,e=s.Event("show.bs.modal",{relatedTarget:i});this.$element.trigger(e),this.isShown||e.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',s.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){n.$element.one("mouseup.dismiss.bs.modal",function(e){s(e.target).is(n.$element)&&(n.ignoreBackdropClick=!0)})}),this.backdrop(function(){var e=s.support.transition&&n.$element.hasClass("fade");n.$element.parent().length||n.$element.appendTo(n.$body),n.$element.show().scrollTop(0),n.adjustDialog(),e&&n.$element[0].offsetWidth,n.$element.addClass("in"),n.enforceFocus();var t=s.Event("shown.bs.modal",{relatedTarget:i});e?n.$dialog.one("bsTransitionEnd",function(){n.$element.trigger("focus").trigger(t)}).emulateTransitionEnd(r.TRANSITION_DURATION):n.$element.trigger("focus").trigger(t)}))},r.prototype.hide=function(e){e&&e.preventDefault(),e=s.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),s(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),s.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",s.proxy(this.hideModal,this)).emulateTransitionEnd(r.TRANSITION_DURATION):this.hideModal())},r.prototype.enforceFocus=function(){s(document).off("focusin.bs.modal").on("focusin.bs.modal",s.proxy(function(e){document===e.target||this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")},this))},r.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",s.proxy(function(e){27==e.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},r.prototype.resize=function(){this.isShown?s(window).on("resize.bs.modal",s.proxy(this.handleUpdate,this)):s(window).off("resize.bs.modal")},r.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop(function(){e.$body.removeClass("modal-open"),e.resetAdjustments(),e.resetScrollbar(),e.$element.trigger("hidden.bs.modal")})},r.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},r.prototype.backdrop=function(e){var t=this,i=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var n=s.support.transition&&i;if(this.$backdrop=s(document.createElement("div")).addClass("modal-backdrop "+i).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",s.proxy(function(e){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),n&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;n?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(r.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var o=function(){t.removeBackdrop(),e&&e()};s.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",o).emulateTransitionEnd(r.BACKDROP_TRANSITION_DURATION):o()}else e&&e()},r.prototype.handleUpdate=function(){this.adjustDialog()},r.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},r.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},r.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},r.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";var o=this.scrollbarWidth;this.bodyIsOverflowing&&(this.$body.css("padding-right",e+o),s(this.fixedContent).each(function(e,t){var i=t.style.paddingRight,n=s(t).css("padding-right");s(t).data("padding-right",i).css("padding-right",parseFloat(n)+o+"px")}))},r.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad),s(this.fixedContent).each(function(e,t){var i=s(t).data("padding-right");s(t).removeData("padding-right"),t.style.paddingRight=i||""})},r.prototype.measureScrollbar=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",this.$body.append(e);var t=e.offsetWidth-e.clientWidth;return this.$body[0].removeChild(e),t};var e=s.fn.modal;s.fn.modal=a,s.fn.modal.Constructor=r,s.fn.modal.noConflict=function(){return s.fn.modal=e,this},s(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(e){var t=s(this),i=t.attr("href"),n=t.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,""),o=s(document).find(n),r=o.data("bs.modal")?"toggle":s.extend({remote:!/#/.test(i)&&i},o.data(),t.data());t.is("a")&&e.preventDefault(),o.one("show.bs.modal",function(e){e.isDefaultPrevented()||o.one("hidden.bs.modal",function(){t.is(":visible")&&t.trigger("focus")})}),a.call(o,r,this)})}(jQuery),function(g){"use strict";var n=["sanitize","whiteList","sanitizeFn"],s=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],a=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,l=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function f(e,t){var i=e.nodeName.toLowerCase();if(-1!==g.inArray(i,t))return-1===g.inArray(i,s)||Boolean(e.nodeValue.match(a)||e.nodeValue.match(l));for(var n=g(t).filter(function(e,t){return t instanceof RegExp}),o=0,r=n.length;o<r;o++)if(i.match(n[o]))return!0;return!1}function o(e,t,i){if(0===e.length)return e;if(i&&"function"==typeof i)return i(e);if(!document.implementation||!document.implementation.createHTMLDocument)return e;var n=document.implementation.createHTMLDocument("sanitization");n.body.innerHTML=e;for(var o=g.map(t,function(e,t){return t}),r=g(n.body).find("*"),s=0,a=r.length;s<a;s++){var l=r[s],c=l.nodeName.toLowerCase();if(-1!==g.inArray(c,o))for(var u=g.map(l.attributes,function(e){return e}),d=[].concat(t["*"]||[],t[c]||[]),h=0,p=u.length;h<p;h++)f(u[h],d)||l.removeAttribute(u[h].nodeName);else l.parentNode.removeChild(l)}return n.body.innerHTML}function m(e,t){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",e,t)}m.VERSION="3.4.1",m.TRANSITION_DURATION=150,m.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]}},m.prototype.init=function(e,t,i){if(this.enabled=!0,this.type=e,this.$element=g(t),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&g(document).find(g.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var n=this.options.trigger.split(" "),o=n.length;o--;){var r=n[o];if("click"==r)this.$element.on("click."+this.type,this.options.selector,g.proxy(this.toggle,this));else if("manual"!=r){var s="hover"==r?"mouseenter":"focusin",a="hover"==r?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,g.proxy(this.enter,this)),this.$element.on(a+"."+this.type,this.options.selector,g.proxy(this.leave,this))}}this.options.selector?this._options=g.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},m.prototype.getDefaults=function(){return m.DEFAULTS},m.prototype.getOptions=function(e){var t=this.$element.data();for(var i in t)t.hasOwnProperty(i)&&-1!==g.inArray(i,n)&&delete t[i];return(e=g.extend({},this.getDefaults(),t,e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e.sanitize&&(e.template=o(e.template,e.whiteList,e.sanitizeFn)),e},m.prototype.getDelegateOptions=function(){var i={},n=this.getDefaults();return this._options&&g.each(this._options,function(e,t){n[e]!=t&&(i[e]=t)}),i},m.prototype.enter=function(e){var t=e instanceof this.constructor?e:g(e.currentTarget).data("bs."+this.type);if(t||(t=new this.constructor(e.currentTarget,this.getDelegateOptions()),g(e.currentTarget).data("bs."+this.type,t)),e instanceof g.Event&&(t.inState["focusin"==e.type?"focus":"hover"]=!0),t.tip().hasClass("in")||"in"==t.hoverState)t.hoverState="in";else{if(clearTimeout(t.timeout),t.hoverState="in",!t.options.delay||!t.options.delay.show)return t.show();t.timeout=setTimeout(function(){"in"==t.hoverState&&t.show()},t.options.delay.show)}},m.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},m.prototype.leave=function(e){var t=e instanceof this.constructor?e:g(e.currentTarget).data("bs."+this.type);if(t||(t=new this.constructor(e.currentTarget,this.getDelegateOptions()),g(e.currentTarget).data("bs."+this.type,t)),e instanceof g.Event&&(t.inState["focusout"==e.type?"focus":"hover"]=!1),!t.isInStateTrue()){if(clearTimeout(t.timeout),t.hoverState="out",!t.options.delay||!t.options.delay.hide)return t.hide();t.timeout=setTimeout(function(){"out"==t.hoverState&&t.hide()},t.options.delay.hide)}},m.prototype.show=function(){var e=g.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var t=g.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!t)return;var i=this,n=this.tip(),o=this.getUID(this.type);this.setContent(),n.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&n.addClass("fade");var r="function"==typeof this.options.placement?this.options.placement.call(this,n[0],this.$element[0]):this.options.placement,s=/\s?auto?\s?/i,a=s.test(r);a&&(r=r.replace(s,"")||"top"),n.detach().css({top:0,left:0,display:"block"}).addClass(r).data("bs."+this.type,this),this.options.container?n.appendTo(g(document).find(this.options.container)):n.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var l=this.getPosition(),c=n[0].offsetWidth,u=n[0].offsetHeight;if(a){var d=r,h=this.getPosition(this.$viewport);r="bottom"==r&&l.bottom+u>h.bottom?"top":"top"==r&&l.top-u<h.top?"bottom":"right"==r&&l.right+c>h.width?"left":"left"==r&&l.left-c<h.left?"right":r,n.removeClass(d).addClass(r)}var p=this.getCalculatedOffset(r,l,c,u);this.applyPlacement(p,r);var f=function(){var e=i.hoverState;i.$element.trigger("shown.bs."+i.type),i.hoverState=null,"out"==e&&i.leave(i)};g.support.transition&&this.$tip.hasClass("fade")?n.one("bsTransitionEnd",f).emulateTransitionEnd(m.TRANSITION_DURATION):f()}},m.prototype.applyPlacement=function(e,t){var i=this.tip(),n=i[0].offsetWidth,o=i[0].offsetHeight,r=parseInt(i.css("margin-top"),10),s=parseInt(i.css("margin-left"),10);isNaN(r)&&(r=0),isNaN(s)&&(s=0),e.top+=r,e.left+=s,g.offset.setOffset(i[0],g.extend({using:function(e){i.css({top:Math.round(e.top),left:Math.round(e.left)})}},e),0),i.addClass("in");var a=i[0].offsetWidth,l=i[0].offsetHeight;"top"==t&&l!=o&&(e.top=e.top+o-l);var c=this.getViewportAdjustedDelta(t,e,a,l);c.left?e.left+=c.left:e.top+=c.top;var u=/top|bottom/.test(t),d=u?2*c.left-n+a:2*c.top-o+l,h=u?"offsetWidth":"offsetHeight";i.offset(e),this.replaceArrow(d,i[0][h],u)},m.prototype.replaceArrow=function(e,t,i){this.arrow().css(i?"left":"top",50*(1-e/t)+"%").css(i?"top":"left","")},m.prototype.setContent=function(){var e=this.tip(),t=this.getTitle();this.options.html?(this.options.sanitize&&(t=o(t,this.options.whiteList,this.options.sanitizeFn)),e.find(".tooltip-inner").html(t)):e.find(".tooltip-inner").text(t),e.removeClass("fade in top bottom left right")},m.prototype.hide=function(e){var t=this,i=g(this.$tip),n=g.Event("hide.bs."+this.type);function o(){"in"!=t.hoverState&&i.detach(),t.$element&&t.$element.removeAttr("aria-describedby").trigger("hidden.bs."+t.type),e&&e()}if(this.$element.trigger(n),!n.isDefaultPrevented())return i.removeClass("in"),g.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",o).emulateTransitionEnd(m.TRANSITION_DURATION):o(),this.hoverState=null,this},m.prototype.fixTitle=function(){var e=this.$element;!e.attr("title")&&"string"==typeof e.attr("data-original-title")||e.attr("data-original-title",e.attr("title")||"").attr("title","")},m.prototype.hasContent=function(){return this.getTitle()},m.prototype.getPosition=function(e){var t=(e=e||this.$element)[0],i="BODY"==t.tagName,n=t.getBoundingClientRect();null==n.width&&(n=g.extend({},n,{width:n.right-n.left,height:n.bottom-n.top}));var o=window.SVGElement&&t instanceof window.SVGElement,r=i?{top:0,left:0}:o?null:e.offset(),s={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},a=i?{width:g(window).width(),height:g(window).height()}:null;return g.extend({},n,s,a,r)},m.prototype.getCalculatedOffset=function(e,t,i,n){return"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-i/2}:"top"==e?{top:t.top-n,left:t.left+t.width/2-i/2}:"left"==e?{top:t.top+t.height/2-n/2,left:t.left-i}:{top:t.top+t.height/2-n/2,left:t.left+t.width}},m.prototype.getViewportAdjustedDelta=function(e,t,i,n){var o={top:0,left:0};if(!this.$viewport)return o;var r=this.options.viewport&&this.options.viewport.padding||0,s=this.getPosition(this.$viewport);if(/right|left/.test(e)){var a=t.top-r-s.scroll,l=t.top+r-s.scroll+n;a<s.top?o.top=s.top-a:l>s.top+s.height&&(o.top=s.top+s.height-l)}else{var c=t.left-r,u=t.left+r+i;c<s.left?o.left=s.left-c:u>s.right&&(o.left=s.left+s.width-u)}return o},m.prototype.getTitle=function(){var e=this.$element,t=this.options;return e.attr("data-original-title")||("function"==typeof t.title?t.title.call(e[0]):t.title)},m.prototype.getUID=function(e){for(;e+=~~(1e6*Math.random()),document.getElementById(e););return e},m.prototype.tip=function(){if(!this.$tip&&(this.$tip=g(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},m.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},m.prototype.enable=function(){this.enabled=!0},m.prototype.disable=function(){this.enabled=!1},m.prototype.toggleEnabled=function(){this.enabled=!this.enabled},m.prototype.toggle=function(e){var t=this;e&&((t=g(e.currentTarget).data("bs."+this.type))||(t=new this.constructor(e.currentTarget,this.getDelegateOptions()),g(e.currentTarget).data("bs."+this.type,t))),e?(t.inState.click=!t.inState.click,t.isInStateTrue()?t.enter(t):t.leave(t)):t.tip().hasClass("in")?t.leave(t):t.enter(t)},m.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide(function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null})},m.prototype.sanitizeHtml=function(e){return o(e,this.options.whiteList,this.options.sanitizeFn)};var e=g.fn.tooltip;g.fn.tooltip=function(n){return this.each(function(){var e=g(this),t=e.data("bs.tooltip"),i="object"==typeof n&&n;!t&&/destroy|hide/.test(n)||(t||e.data("bs.tooltip",t=new m(this,i)),"string"==typeof n&&t[n]())})},g.fn.tooltip.Constructor=m,g.fn.tooltip.noConflict=function(){return g.fn.tooltip=e,this}}(jQuery),function(o){"use strict";function r(e,t){this.init("popover",e,t)}if(!o.fn.tooltip)throw new Error("Popover requires tooltip.js");r.VERSION="3.4.1",r.DEFAULTS=o.extend({},o.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),((r.prototype=o.extend({},o.fn.tooltip.Constructor.prototype)).constructor=r).prototype.getDefaults=function(){return r.DEFAULTS},r.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),i=this.getContent();if(this.options.html){var n=typeof i;this.options.sanitize&&(t=this.sanitizeHtml(t),"string"==n&&(i=this.sanitizeHtml(i))),e.find(".popover-title").html(t),e.find(".popover-content").children().detach().end()["string"==n?"html":"append"](i)}else e.find(".popover-title").text(t),e.find(".popover-content").children().detach().end().text(i);e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},r.prototype.hasContent=function(){return this.getTitle()||this.getContent()},r.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},r.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var e=o.fn.popover;o.fn.popover=function(n){return this.each(function(){var e=o(this),t=e.data("bs.popover"),i="object"==typeof n&&n;!t&&/destroy|hide/.test(n)||(t||e.data("bs.popover",t=new r(this,i)),"string"==typeof n&&t[n]())})},o.fn.popover.Constructor=r,o.fn.popover.noConflict=function(){return o.fn.popover=e,this}}(jQuery),function(r){"use strict";function o(e,t){this.$body=r(document.body),this.$scrollElement=r(e).is(document.body)?r(window):r(e),this.options=r.extend({},o.DEFAULTS,t),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",r.proxy(this.process,this)),this.refresh(),this.process()}function t(n){return this.each(function(){var e=r(this),t=e.data("bs.scrollspy"),i="object"==typeof n&&n;t||e.data("bs.scrollspy",t=new o(this,i)),"string"==typeof n&&t[n]()})}o.VERSION="3.4.1",o.DEFAULTS={offset:10},o.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},o.prototype.refresh=function(){var e=this,n="offset",o=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),r.isWindow(this.$scrollElement[0])||(n="position",o=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=r(this),t=e.data("target")||e.attr("href"),i=/^#./.test(t)&&r(t);return i&&i.length&&i.is(":visible")&&[[i[n]().top+o,t]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},o.prototype.process=function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),n=this.options.offset+i-this.$scrollElement.height(),o=this.offsets,r=this.targets,s=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),n<=t)return s!=(e=r[r.length-1])&&this.activate(e);if(s&&t<o[0])return this.activeTarget=null,this.clear();for(e=o.length;e--;)s!=r[e]&&t>=o[e]&&(void 0===o[e+1]||t<o[e+1])&&this.activate(r[e])},o.prototype.activate=function(e){this.activeTarget=e,this.clear();var t=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',i=r(t).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},o.prototype.clear=function(){r(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var e=r.fn.scrollspy;r.fn.scrollspy=t,r.fn.scrollspy.Constructor=o,r.fn.scrollspy.noConflict=function(){return r.fn.scrollspy=e,this},r(window).on("load.bs.scrollspy.data-api",function(){r('[data-spy="scroll"]').each(function(){var e=r(this);t.call(e,e.data())})})}(jQuery),function(a){"use strict";function s(e){this.element=a(e)}function t(i){return this.each(function(){var e=a(this),t=e.data("bs.tab");t||e.data("bs.tab",t=new s(this)),"string"==typeof i&&t[i]()})}s.VERSION="3.4.1",s.TRANSITION_DURATION=150,s.prototype.show=function(){var e=this.element,t=e.closest("ul:not(.dropdown-menu)"),i=e.data("target");if(i=i||(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,""),!e.parent("li").hasClass("active")){var n=t.find(".active:last a"),o=a.Event("hide.bs.tab",{relatedTarget:e[0]}),r=a.Event("show.bs.tab",{relatedTarget:n[0]});if(n.trigger(o),e.trigger(r),!r.isDefaultPrevented()&&!o.isDefaultPrevented()){var s=a(document).find(i);this.activate(e.closest("li"),t),this.activate(s,s.parent(),function(){n.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:n[0]})})}}},s.prototype.activate=function(e,t,i){var n=t.find("> .active"),o=i&&a.support.transition&&(n.length&&n.hasClass("fade")||!!t.find("> .fade").length);function r(){n.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),o?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu").length&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}n.length&&o?n.one("bsTransitionEnd",r).emulateTransitionEnd(s.TRANSITION_DURATION):r(),n.removeClass("in")};var e=a.fn.tab;a.fn.tab=t,a.fn.tab.Constructor=s,a.fn.tab.noConflict=function(){return a.fn.tab=e,this};function i(e){e.preventDefault(),t.call(a(this),"show")}a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery),function(l){"use strict";var c=function(e,t){this.options=l.extend({},c.DEFAULTS,t);var i=this.options.target===c.DEFAULTS.target?l(this.options.target):l(document).find(this.options.target);this.$target=i.on("scroll.bs.affix.data-api",l.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",l.proxy(this.checkPositionWithEventLoop,this)),this.$element=l(e),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function i(n){return this.each(function(){var e=l(this),t=e.data("bs.affix"),i="object"==typeof n&&n;t||e.data("bs.affix",t=new c(this,i)),"string"==typeof n&&t[n]()})}c.VERSION="3.4.1",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(e,t,i,n){var o=this.$target.scrollTop(),r=this.$element.offset(),s=this.$target.height();if(null!=i&&"top"==this.affixed)return o<i&&"top";if("bottom"==this.affixed)return null!=i?!(o+this.unpin<=r.top)&&"bottom":!(o+s<=e-n)&&"bottom";var a=null==this.affixed,l=a?o:r.top;return null!=i&&o<=i?"top":null!=n&&e-n<=l+(a?s:t)&&"bottom"},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var e=this.$target.scrollTop(),t=this.$element.offset();return this.pinnedOffset=t.top-e},c.prototype.checkPositionWithEventLoop=function(){setTimeout(l.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),t=this.options.offset,i=t.top,n=t.bottom,o=Math.max(l(document).height(),l(document.body).height());"object"!=typeof t&&(n=i=t),"function"==typeof i&&(i=t.top(this.$element)),"function"==typeof n&&(n=t.bottom(this.$element));var r=this.getState(o,e,i,n);if(this.affixed!=r){null!=this.unpin&&this.$element.css("top","");var s="affix"+(r?"-"+r:""),a=l.Event(s+".bs.affix");if(this.$element.trigger(a),a.isDefaultPrevented())return;this.affixed=r,this.unpin="bottom"==r?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(s).trigger(s.replace("affix","affixed")+".bs.affix")}"bottom"==r&&this.$element.offset({top:o-e-n})}};var e=l.fn.affix;l.fn.affix=i,l.fn.affix.Constructor=c,l.fn.affix.noConflict=function(){return l.fn.affix=e,this},l(window).on("load",function(){l('[data-spy="affix"]').each(function(){var e=l(this),t=e.data();t.offset=t.offset||{},null!=t.offsetBottom&&(t.offset.bottom=t.offsetBottom),null!=t.offsetTop&&(t.offset.top=t.offsetTop),i.call(e,t)})})}(jQuery),"undefined"==typeof evoFadeBg&&(evoFadeBg=function evoFadeBg(selector,bgs,options){var origBg=jQuery(selector).css("backgroundColor"),speed=options&&options.speed||'"slow"',toEval="jQuery(selector).animate({ backgroundColor: ";for(e in bgs)"string"==typeof bgs[e]&&(toEval+='"'+bgs[e]+'"}, '+speed+" ).animate({ backgroundColor: ");toEval+="origBg }, "+speed+', "", function(){jQuery( this ).css( "backgroundColor", "" );});',eval(toEval)}),"undefined"==typeof evoFadeSuccess&&(evoFadeSuccess=function(e){evoFadeBg(e,new Array("#ddff00","#bbff00"))}),jQuery(document).ready(function(){if("undefined"!=typeof evo_init_scroll_to_top&&(window.offset=400,offset_opacity=1200,scroll_top_duration=700,$slide_top=jQuery(".slide-top"),jQuery(window).scroll(function(){jQuery(this).scrollTop()>offset?$slide_top.addClass("slide-top-visible"):$slide_top.removeClass("slide-top-visible")}),$slide_top.on("click",function(e){e.preventDefault(),jQuery("body, html").animate({scrollTop:0},scroll_top_duration)})),"undefined"!=typeof evo_init_datepicker&&jQuery(evo_init_datepicker.selector).datepicker(evo_init_datepicker.config),"undefined"!=typeof evo_link_position_config&&(window.displayInlineReminder=evo_link_position_config.display_inline_reminder,window.deferInlineReminder=evo_link_position_config.defer_inline_reminder,jQuery(document).on("change",evo_link_position_config.selector,{url:evo_link_position_config.url,crumb:evo_link_position_config.crumb},function(e){"inline"==this.value&&window.displayInlineReminder&&!window.deferInlineReminder&&(alert(evo_link_position_config.alert_msg),window.displayInlineReminder=!1),evo_link_change_position(this,e.data.url,e.data.crumb)})),"undefined"!=typeof evo_itemform_renderers__click&&jQuery("#itemform_renderers .dropdown-menu").on("click",function(e){e.stopPropagation()}),"undefined"!=typeof evo_commentform_renderers__click&&jQuery("#commentform_renderers .dropdown-menu").on("click",function(e){e.stopPropagation()}),"undefined"!=typeof evo_init_comment_reply_config&&(jQuery(document).on("click","a.comment_reply",function(){var e=jQuery(this).attr("rel");jQuery("a.comment_reply_current").remove(),jQuery("input[name=reply_ID]").remove(),jQuery("a.comment_reply").removeClass("active").html(evo_init_comment_reply_config.reply_button_msg);var t='<a href="'+evo_init_comment_reply_config.link_back_url+"#c"+e+'" class="comment_reply_current" rel="'+e+'">'+evo_init_comment_reply_config.link_back_specific_comment_msg+"</a>",i='<input type="hidden" name="reply_ID" value="'+e+'" />';return jQuery("#evo_comment_form_id_"+evo_init_comment_reply_config.item_ID).prepend(t+i),jQuery(this).addClass("active").html(evo_init_comment_reply_config.link_back_current_comment_msg),jQuery(window).scrollTop(jQuery("#evo_comment_form_id_"+evo_init_comment_reply_config.item_ID).offset().top-30),!1}),jQuery(document).on("click","a.comment_reply_current",function(){var e=jQuery(this).attr("rel");return jQuery(window).scrollTop(jQuery("a#c"+e).offset().top-10),!1})),"undefined"!=typeof evo_disp_download_delay_config&&(window.b2evo_download_timer=evo_disp_download_delay_config,window.downloadInterval=setInterval(function(){jQuery("#download_timer").html(window.b2evo_download_timer),0==window.b2evo_download_timer&&(clearInterval(window.downloadInterval),jQuery("#download_help_url").show()),window.b2evo_download_timer--},1e3),jQuery("#download_timer_js").show()),"undefined"!=typeof evo_skin_bootstrap_forum__quote_button_click&&jQuery(".quote_button").click(function(){var e=jQuery("form[id^=evo_comment_form_id_]");return 0==e.length||(e.attr("action",jQuery(this).attr("href")),e.submit(),!1)}),"undefined"!=typeof evo_ajax_form_config)for(var t=Object.values(evo_ajax_form_config),i=0;i<t.length;i++)!function(){var o=t[i];window["ajax_form_offset_"+o.form_number]=jQuery("#ajax_form_number_"+o.form_number).offset().top,window["request_sent_"+o.form_number]=!1,window["ajax_form_loading_number_"+o.form_number]=0;var r="get_form_"+o.form_number;window[r]=function(){var n="#ajax_form_number_"+o.form_number;window["ajax_form_loading_number_"+o.form_number]++,jQuery.ajax({url:htsrv_url+"anon_async.php",type:"POST",data:o.json_params,success:function(e){jQuery(n).html(ajax_debug_clear(e))},error:function(e,t,i){jQuery(".loader_ajax_form",n).after('<div class="red center">'+i+": "+e.responseText+"</div>"),window["ajax_form_loading_number_"+o.form_number]<3&&setTimeout(function(){jQuery(".loader_ajax_form",n).next().remove(),window[r]()},1e3)}})};var e="check_and_show_"+o.form_number;window[e]=function(e){if(!window["request_sent_"+o.form_number]){var t=null!=typeof e&&e;(t=t||jQuery(window).scrollTop()>=window["ajax_form_offset_"+o.form_number]-jQuery(window).height()-20)&&(window["request_sent_"+o.form_number]=!0,window[r]())}},jQuery(window).scroll(function(){window[e]()}),jQuery(window).resize(function(){window[e]()}),window[e](o.load_ajax_form_on_page_load)}();if("undefined"!=typeof evo_thread_form_config&&(window.check_multiple_recipients=function(){1<jQuery('input[name="thrd_recipients_array[login][]"]').length?jQuery("#multiple_recipients").show():jQuery("#multiple_recipients").hide()},window.check_form_thread=function(){return""==jQuery("input#token-input-thrd_recipients").val()||(alert(evo_thread_form_config.missing_username_msg),jQuery("input#token-input-thrd_recipients").focus(),!1)},evo_thread_form_config.token_input_config.tokenFormatter=function(e){return"<li>"+e[evo_thread_form_config.username_display]+'<input type="hidden" name="thrd_recipients_array[id][]" value="'+e.id+'" /><input type="hidden" name="thrd_recipients_array[login][]" value="'+e.login+'" /></li>'},evo_thread_form_config.token_input_config.resultsFormatter=function(e){var t=e.login;return null!=e.fullname&&void 0!==e.fullname&&(t+="<br />"+e.fullname),"<li>"+e.avatar+"<div>"+t+"</div><span></span></li>"},evo_thread_form_config.token_input_config.onAdd=function(){window.check_multiple_recipients()},evo_thread_form_config.token_input_config.onDelete=function(){window.check_multiple_recipients()},evo_thread_form_config.token_input_config.onReady=function(){evo_thread_form_config.thrd_recipients_has_error&&jQuery(".token-input-list-facebook").addClass("token-input-list-error"),jQuery("#thrd_recipients").removeAttr("required")},jQuery("#thrd_recipients").tokenInput(restapi_url+"users/recipients",evo_thread_form_config.token_input_config),window.check_multiple_recipients()),"undefined"!=typeof evo_comment_form_preview_button_config&&jQuery("input[type=submit].preview.btn-info").val(evo_comment_form_preview_button_config.button_value),"undefined"!=typeof evo_user_func__callback_filter_userlist&&(jQuery("#country").change(function(){jQuery(this),jQuery.ajax({type:"POST",url:htsrv_url+"anon_async.php",data:"action=get_regions_option_list&ctry_id="+jQuery(this).val(),success:function(e){jQuery("#region").html(ajax_debug_clear(e)),1<jQuery("#region option").length?jQuery("#region_filter").show():jQuery("#region_filter").hide(),window.load_subregions(0)}})}),jQuery("#region").change(function(){window.load_subregions(jQuery(this).val())}),jQuery("#subregion").change(function(){window.load_cities(jQuery("#country").val(),jQuery("#region").val(),jQuery(this).val())}),window.load_subregions=function(t){jQuery.ajax({type:"POST",url:htsrv_url+"anon_async.php",data:"action=get_subregions_option_list&rgn_id="+t,success:function(e){jQuery("#subregion").html(ajax_debug_clear(e)),1<jQuery("#subregion option").length?jQuery("#subregion_filter").show():jQuery("#subregion_filter").hide(),load_cities(jQuery("#country").val(),t,0)}})},window.load_cities=function(e,t,i){void 0===e&&(e=0),jQuery.ajax({type:"POST",url:htsrv_url+"anon_async.php",data:"action=get_cities_option_list&ctry_id="+e+"&rgn_id="+t+"&subrg_id="+i,success:function(e){jQuery("#city").html(ajax_debug_clear(e)),1<jQuery("#city option").length?jQuery("#city_filter").show():jQuery("#city_filter").hide()}})}),"undefined"!=typeof coll_activity_stats_widget_config&&(window.coll_activity_stats_widget_resize_timer,window.resize_coll_activity_stat_widget=function(){for(var e=Object.values(window.activity_stats_widgets),t=0;t<e.length;t++){var i=e[t];if(null==i._original){i._display=coll_activity_stats_widget_config.time_period,i._original={data:[],xLabels:[]};for(var n=0;n<i.series.length;n++)i._original.data.push(i.series[n].data);i._original.xLabels=i.axes.xaxis.ticks}if(null==i._week)if(i._week={data:[],xLabels:[]},7==i._original.xLabels.length)i._week=i._original;else for(n=0;n<i._original.data.length;n++){for(var o=[],r=7,s=1;0<r;r--,s++)o.unshift([r,i._original.data[n][i._original.data[n].length-s][1]]);i._week.data.push(o),i._week.xLabels=i._original.xLabels.slice(-7)}if(jQuery(i.target).width()<650){if("last_week"!=i._display){for(n=0;n<i.series.length;n++)i.series[n].data=i._week.data[n];i.axes.xaxis.ticks=i._week.xLabels,i._display="last_week"}}else if("last_month"!=i._display){for(n=0;n<i.series.length;n++)i.series[n].data=i._original.data[n];i.axes.xaxis.ticks=i._original.xLabels,i._display="last_month"}i.replot({resetAxes:!0})}},jQuery(window).resize(function(){clearTimeout(window.coll_activity_stats_widget_resize_timer),window.coll_activity_stats_widget_resize_timer=setTimeout(window.resize_coll_activity_stat_widget,100)})),"undefined"!=typeof evo_item_tags_widget_config){window.add_quick_tag=function(e,t){var i=jQuery(t).text();jQuery("#item_tags_"+e).tokenInput("add",{id:i,name:i})},window.init_edit_item_tags_icon=function(e,t){jQuery("#evo_widget_item_tags_edit_icon_"+t).click(function(){return jQuery("#evo_widget_item_tags_edit_form_"+t).show(),jQuery("input#token-input-"+e,"#evo_widget_item_tags_edit_form_"+t).focus(),jQuery("#evo_widget_item_tags_list_"+t).hide(),!1})};var e=Object.values(evo_item_tags_widget_config);for(i=0;i<e.length;i++)n=e[i],window.init_edit_item_tags_icon(n.input_ID,n.widget_ID);delete e}var n;if("undefined"!=typeof evo_workflow_properties_widget_config&&jQuery("[id^=evo_widget_item_workflow_properties_] a").click(function(){var e=jQuery(this).closest("[id^=evo_widget_item_workflow_properties_]");return e.next("[id^=evo_widget_item_workflow_form_]").show(),e.hide(),!1}),"undefined"!=typeof evo_display_attachments_fieldset_config&&function(){for(var e=Object.values(evo_display_attachments_fieldset_config),t=0;t<e.length;t++)jQuery("#"+e[t].fieldset_prefix+e[t].form_id).show()}(),"undefined"!=typeof evo_tabs_ajax_load__click&&jQuery('[data-toggle="tabajax"]').click(function(e){var t=jQuery(this),i=t.attr("href"),n=t.attr("data-target");return t.closest("li").hasClass("active")||(jQuery.get(i,function(e){jQuery(n).html(e)}),t.tab("show")),!1}),"undefined"!=typeof evo_contact_list_view_config&&(window.get_selected_users=function(){var e="";return jQuery("input[name^=contacts]").each(function(){jQuery(this).is(":checked")&&(e+=jQuery(this).val()+",")}),0<e.length&&(e=e.substr(0,e.length-1)),e},jQuery("#send_selected_recipients").click(function(){var e="",t=window.get_selected_users();return 0<t.length&&(e="&recipients="+t),location.href=evo_contact_list_view_config.recipients_link_url+e,!1}),jQuery("#add_group_contacts").submit(function(){jQuery("input[name=users]").val(window.get_selected_users())})),"undefined"!=typeof evo_user_identity_form_config&&function(){var o=evo_user_identity_form_config;window.replace_form_params=function(e,t){return t=void 0===t?"":' id="'+t+'"',e.replace("#fieldstart#",o.fieldstart).replace("#fieldend#",o.fieldend).replace("#labelclass#",o.labelclass).replace("#labelstart#",o.labelstart).replace("#labelend#",o.labelend).replace("#inputstart#",o.inputstart).replace("#inputend#",o.inputend)},jQuery("#button_add_field").click(function(){var e=jQuery(this).prev().find("option:selected").val();if(""==e)return window.field_type_error(o.msg_select_field_type),!1;window.field_type_error_clear();var t=o.params;return jQuery.ajax({type:"POST",url:htsrv_url+"anon_async.php",data:"action=get_user_new_field&user_id="+o.user_ID+"&field_id="+e+t,success:function(e){if("[0]"==(e=ajax_debug_clear(e)))window.field_type_error(o.msg_field_already_added);else{if(e=window.replace_form_params(e),0==parseInt(e.replace(/^\[(\d+)\](.*)/,"$1"))){var t=parseInt(e.replace(/(.*)fieldset id="ffield_uf_add_(\d+)_(.*)/,"$2"));if(jQuery("#new_field_type option[value="+t+"]").remove(),0<jQuery("[id^=uf_new_"+t+"], [id^=uf_add_"+t+"]").length)return window.field_type_error(o.msg_field_already_added),!1}jQuery("#ffield_new_field_type").before(e.replace(/^\[\d+\](.*)/,"$1")),jQuery("span[rel^=add_ufdf_]").show(),bind_autocomplete(jQuery("#ffield_new_field_type").prev().prev().find("input[id^=uf_add_][autocomplete=on]"))}}}),!1}),jQuery(document).on("focus","[rel^=ufdf_]",function(){var e=parseInt(jQuery(this).attr("rel").replace(/^ufdf_(\d+)$/,"$1"));0<e&&(jQuery("#new_field_type").val(e),window.field_type_error_clear())}),jQuery("#new_field_type").change(function(){window.field_type_error_clear()}),window.field_type_error=function(e){jQuery("select#new_field_type").addClass("field_error");var t=jQuery("select#new_field_type").next().find("span.field_error");0<t.length?t.html(e):jQuery("select#new_field_type").next().append('<span class="field_error">'+e+"</span>")},window.field_type_error_clear=function(){jQuery("select#new_field_type").removeClass("field_error").next().find("span.field_error").remove()},jQuery("span[rel^=add_ufdf_]").show(),jQuery(document).on("click","span[rel^=add_ufdf_]",function(){var n=jQuery(this),e=n.attr("rel").replace(/^add_ufdf_(\d+)$/,"$1"),t=o.params;jQuery.ajax({type:"POST",url:htsrv_url+"anon_async.php",data:"action=get_user_new_field&user_id="+o.user_ID+"&field_id="+e+t,success:function(e){if("[0]"==(e=ajax_debug_clear(e)))window.field_type_error(o.msg_field_already_added);else{if(e=window.replace_form_params(e),0==parseInt(e.replace(/^\[(\d+)\](.*)/,"$1")))return window.field_type_error(o.msg_field_already_added),!1;var t=n.parent().parent().parent();t.after(e.replace(/^\[\d+\](.*)/,"$1")).next().find("span[rel^=add_ufdf_]").show();var i=t.next().find("input[id^=uf_add_]");"on"==i.attr("autocomplete")&&bind_autocomplete(i),i.focus()}}})}),jQuery(document).on("mouseover","span[rel^=add_ufdf_]",function(){jQuery(this).parent().prev().focus(),jQuery(this).css("z-index",jQuery(this).parent().prev().css("z-index"))}),jQuery(document).on("mouseout","span[rel^=add_ufdf_]",function(){var e=jQuery(this).parent().prev();if(e.is(":focus"))return!1;e.blur()});var i='[id^="ffield_organizations_"]',n=o.max_organizations,r=0;jQuery(document).on("click","span.add_org",function(){var t=jQuery(this),e=o.params;e+="undefined"!=typeof remove_obj_after_org_adding?"&first_org=1":"",jQuery.ajax({type:"POST",url:htsrv_url+"anon_async.php",data:"action=get_user_new_org"+e,success:function(e){e=window.replace_form_params(ajax_debug_clear(e),"ffield_organizations_"+r),t.closest(i).after(e),"undefined"!=typeof remove_obj_after_org_adding&&(remove_obj_after_org_adding.remove(),delete remove_obj_after_org_adding),jQuery(i).length>=n&&jQuery("span.add_org").hide(),1<jQuery(i).length?jQuery("span.remove_org").show():jQuery("span.remove_org").hide(),r++}})}),jQuery(document).on("click","span.remove_org",function(){1<jQuery(i).length?jQuery(this).closest(i).remove():(remove_obj_after_org_adding=jQuery(this).closest(i),jQuery(this).parent().find("span.add_org").click()),jQuery(i).length<n&&jQuery("span.add_org").show(),0<jQuery(i).length?jQuery("span.remove_org").show():jQuery("span.remove_org").hide()}),window.bind_autocomplete=function(e){0<e.length&&e.autocomplete({source:function(e,t){jQuery.getJSON(htsrv_url+"anon_async.php?action=get_user_field_autocomplete",{term:e.term,attr_id:this.element[0].getAttribute("id")},t)}})},bind_autocomplete(jQuery("input[id^=uf_][autocomplete=on]"))}(),"undefined"!=typeof evo_user_organization_config&&jQuery(document).on("click","span[rel^=org_status_]",function(){var t=jQuery(this),e=evo_user_organization_config.params;jQuery.ajax({type:"POST",url:htsrv_url+"anon_async.php",data:"action=change_user_org_status&status="+t.attr("rel")+"&crumb_userorg="+evo_user_organization_config.crumb_userorg+e,success:function(e){t.after(ajax_debug_clear(e)).remove()}})}),"undefined"!=typeof evo_item_type_change_buttons_config&&jQuery("button[data-item-type]").on("click",function(){jQuery("[required]").removeAttr("required"),jQuery("input[name=item_typ_ID]").val(jQuery(this).data("item-type")),jQuery(this).closest("form").append('<input type="hidden" name="action" value="'+evo_item_type_change_buttons_config.action+'">').submit()}),"undefined"!=typeof evo_status_dropdown_button_config){var o=Object.values(evo_status_dropdown_button_config);for(i=0;i<o.length;i++)!function(){var l=o[i];jQuery("."+l.type+"_status_dropdown li a").click(function(){var e=l.tooltip_titles_js_array,t=jQuery(this).parent(),i=t.attr("rel"),n=t.parent().parent(),o=n.parent().parent(),r=n.find("button"),s=r.parent().find("button:first"),a=o.find('input[type="submit"]:not(.quick-publish)').add(r);return"published"==i?o.find(".quick-publish").hide():o.find(".quick-publish").show(),a.each(function(){jQuery(this).attr("class",jQuery(this).attr("class").replace(/btn-status-[^\s]+/,"btn-status-"+i))}),s.find("span:first").html(t.find("span:last").html()),jQuery("input[type=hidden][name="+l.type+"_status]").val(i),n.removeClass("open"),"submit"==s.attr("type")&&s.click(),n.tooltip("hide").attr("data-original-title",e[i]).tooltip("show"),!1})}()}if("undefined"!=typeof evo_init_onchange_newcat&&jQuery("#new_category_name").keypress(function(){var e=jQuery("#sel_maincat_new");e.attr("checked")||(e.attr("checked",!0),jQuery("#sel_extracat_new").attr("checked",!0))}),"undefined"!=typeof evo_autocomplete_tags_config){window.init_autocomplete_tags=function(t,i){if(!i&&window.evo_autocomplete_input_tag_configs[t]&&(i=window.evo_autocomplete_input_tag_configs[t]),i){var e=jQuery(t).val(),n=new Array;if(e&&0<e.length){for(var o in e=e.split(","))n.push({id:e[o].trim(),name:e[o].trim()});i.token_input_params.prePopulate=n}i.update_by_ajax&&(i.token_input_params.onAdd=function(e){i.use_quick_tags&&window.evo_update_item_quick_tags(e),window.evo_update_item_tags_by_ajax(i.item_ID,t,e,"add")},i.token_input_params.onDelete=function(e){window.evo_update_item_tags_by_ajax(i.item_ID,t,e,"delete")}),jQuery(t).tokenInput(restapi_url+"tags",i.token_input_params)}},window.evo_update_item_quick_tags=function(e){var t=e.name.trim(),i=jQuery.cookie("quick_item_tags"),n=(i=null==i||0==i.length?[]:i.split(",")).indexOf(t);-1===n||i.splice(n,1),i.push(t),i=i.splice(-5),jQuery.cookie("quick_item_tags",i.join(","),{domain:evo_autocomplete_tags_config.cookie_domain,path:evo_autocomplete_tags_config.cookie_path})},window.evo_update_item_tags_by_ajax=function(e,t,i,n,o){var r=jQuery(".token-input-"+t.substr(1));r.removeClass("token-input-list-error").addClass("token-input-list-process"),jQuery.ajax({type:"POST",url:htsrv_url+"action.php",data:{mname:"collections",action:"update_tags",item_ID:e,item_tags:jQuery(t).val(),crumb_collections_update_tags:evo_autocomplete_tags_config.crumb_collections_update_tags},success:function(){r.removeClass("token-input-list-process")},error:function(){r.removeClass("token-input-list-process").addClass("token-input-list-error")}})},window.evo_autocomplete_input_tag_configs=window.evo_autocomplete_input_tag_configs||{};for(var r=Object.values(evo_autocomplete_input_tags_config),s=(i=0,r.length);i<s;i++)!function(){var e=r[i],t="#"+e.input_ID;window.evo_autocomplete_input_tag_configs[t]=e,0!=jQuery("#suggest_item_tags").length&&!jQuery("#suggest_item_tags").is(":checked")||window.init_autocomplete_tags(t,e),jQuery("#suggest_item_tags").click(function(){jQuery(this).is(":checked")?(jQuery(t).hide(),window.init_autocomplete_tags(t)):(jQuery(t).show(),jQuery(t).parent().find("ul.token-input-list-facebook").remove())}),evo_prevent_key_enter("#token-input-"+e.input_ID)}();delete r}"undefined"!=typeof evo_fieldset_folding_config&&(jQuery(document).on("click","span[id^=icon_folding_], span[id^=title_folding_]",function(){var e=jQuery(this).attr("id").match(/^icon_folding_/),t=jQuery(this).closest(".fieldset_wrapper"),i=e?jQuery(this).prev():jQuery(this).prev().prev();if(0==t.length||0==i.length)return!1;"1"==i.val()?(t.removeClass("folded"),i.val("0")):(t.addClass("folded"),i.val("1"));var n=e?jQuery(this):jQuery(this).prev();if(n.hasClass("fa")||n.hasClass("glyphicon")){if(""!=n.data("toggle")){var o=n.hasClass("fa")?"fa":"glyphicon";null==n.data("toggle-orig-class")&&n.data("toggle-orig-class",n.attr("class").replace(new RegExp("^"+o+" (.+)$","g"),"$1")),n.hasClass(n.data("toggle-orig-class"))?n.removeClass(n.data("toggle-orig-class")).addClass(o+"-"+n.data("toggle")):n.removeClass(o+"-"+n.data("toggle")).addClass(n.data("toggle-orig-class"))}}else{var r=n.css("background-position");n.css("background-position",n.data("xy")),n.data("xy",r)}var s=n.attr("title");n.attr("title",n.data("title")),n.data("title",s)}),jQuery("input[type=hidden][id^=folding_value_]").each(function(){var e=jQuery(this).closest(".fieldset_wrapper");"1"==jQuery(this).val()?e.addClass("folded"):e.removeClass("folded")}),jQuery(".field_error").closest(".fieldset_wrapper.folded").find("span[id^=icon_folding_]").click()),"undefined"!=typeof evo_init_item_list_clipboard_js&&(window.clipboard=new ClipboardJS("a.clipboard-copy")),"undefined"!=typeof evo_item_checklist_config&&(window.update_checklist_tab_badge=function(){var e=document.getElementById("checklist_counter"),t=document.querySelectorAll('.checklist_lines .checklist_line input[type="checkbox"]:not(:checked)').length;if(e)0<t?e.innerHTML=t:e.remove();else if(0<t){var i=document.querySelector('a[href="#checklist"][data-toggle="tab"]');i&&((e=document.createElement("span")).classList.add("badge","badge-important"),e.innerHTML=t,e.setAttribute("id","checklist_counter"),i.appendChild(document.createTextNode(" ")),i.appendChild(e))}},jQuery(".checklist_lines").on("click",'.checklist_line input[type="checkbox"]',window.update_checklist_tab_badge))}),jQuery(document).ready(function(){if("undefined"!=typeof evo_init_password_indicator_config){var h=evo_init_password_indicator_config;window.passcheck=function(){var e=jQuery("input#"+h.pass1_id);if(0!=e.length){h.field_width||(h.field_width=e.outerWidth());var t=jQuery("input#"+h.pass2_id);0!=t.length&&t.css("width",h.field_width-2+"px"),e.css("width",h.field_width-2+"px"),e.attr("onkeyup","return passinfo( this );"),e.parent().append('<div id="p-container"><div id="p-result"></div><div id="p-status"></div><div id="p-time"></div></div>'),jQuery("head").append("<style>#p-container { position: relative; margin-top: 4px; height:5px; border: 1px solid #CCC; font-size: 84%; line-height:normal; color: #999; background: #FFF } #p-result { height:5px } #p-status { position:absolute; width: 100px; top:-5px; left: "+(h.field_width+8)+"px } #p-time { position:absolute; width: 400px } </style>"),jQuery("#p-container").css("width",e.outerWidth()-2);var i=parseInt(e.css("margin-left"));0<i&&jQuery("#p-container").css("margin-left",i+"px")}},window.passinfo=function(e){var t=document.getElementById("p-result"),i=document.getElementById("p-status"),n=document.getElementById("p-time"),o="",r=document.getElementById(h.login_id);null!=r&&""!=r.value&&(o=r.value);var s="",a=document.getElementById(h.email_id);null!=a&&""!=a.value&&(s=a.value);var l=[o,s],c=zxcvbn(e.value,l.concat(h.blacklist)),u="red",d=h.msg_status_very_weak;switch(0==e.value.length?(t.style.display="none",i.style.display="none",n.style.display="none"):(t.style.display="block",i.style.display="block",n.style.display="block"),c.score){case 1:u="#F88158",d=h.msg_status_weak;break;case 2:u="#FBB917",d=h.msg_status_soso;break;case 3:u="#8BB381",d=h.msg_status_good;break;case 4:u="#59E817",d=h.msg_status_great}t.style.width=20*c.score+20+"%",t.style.background=u,h.disp_status&&(i.innerHTML=d),h.disp_time&&(document.getElementById("p-time").innerHTML=h.msg_est_crack_time+": "+c.crack_time_display)},function(){var e;e=function(){var e,t;return(t=document.createElement("script")).src=h.rsc_url+"js/zxcvbn.js",t.type="text/javascript",t.async=!0,(e=document.getElementsByTagName("script")[0]).parentNode.insertBefore(t,e)},null!=window.attachEvent?window.attachEvent("onload",e):window.addEventListener("load",e,!1)}.call(this),jQuery("input#"+h.pass1_id+", input#"+h.pass2_id).keyup(function(){var e=h.min_pwd_len,t=jQuery("input#"+h.pass1_id),i=jQuery("input#"+h.pass2_id),n=jQuery("#pass2_status"),o="",r=/^[^\<\&\>]+$/g;t.val().length&&null==t.val().match(r)||i.val().length&&null==i.val().match(r)?(o=h.msg_illegal_char,t[0].setCustomValidity(t.val().match(r)?"":o),i[0].setCustomValidity(i.val().match(r)?"":o),n.html(h.error_icon+" "+o)):0<t.val().length&&t.val().length<e||0<i.val().length&&i.val().length<e?(o=h.msg_min_pwd_len,t[0].setCustomValidity(t.val().length<e?o:""),i[0].setCustomValidity(i.val().length<e?o:""),n.html(h.error_icon+" "+o)):i.val()!=t.val()?(o=h.msg_pwd_not_matching,t[0].setCustomValidity(""),i[0].setCustomValidity(o),n.html(h.error_icon+" "+o)):(t[0].setCustomValidity(o),i[0].setCustomValidity(o),n.html(o))}),window.passcheck()}}),jQuery(document).ready(function(){if("undefined"!=typeof evo_init_password_edit_config){var r=evo_init_password_edit_config;window.user_pass_clear_style=function(e){jQuery(e).each(function(){jQuery(this).parent().find("span.field_error span:visible").length?jQuery(this).addClass("field_error"):jQuery(this).removeClass("field_error")})},jQuery("#current_user_pass").keyup(function(){var e=jQuery(this).parent().find("span.field_error");e.length&&(""==jQuery(this).val()?e.show():e.hide()),user_pass_clear_style("#current_user_pass")}),jQuery("#edited_user_pass1, #edited_user_pass2").keyup(function(){var e=jQuery(this).parent().find(".pass_check_min");e.length&&(jQuery.trim(jQuery(this).val()).length>=r.user_minpwdlen?e.hide():e.show());var t=jQuery(".pass_check_diff");t.length&&jQuery("#edited_user_pass1").val()==jQuery(" #edited_user_pass2").val()&&t.hide();var i=jQuery(this).parent().find(".pass_check_new");i.length&&(""==jQuery(this).val()?i.show():i.hide());var n=jQuery(this).parent().find(".pass_check_twice");n.length&&(""==jQuery(this).val()?n.show():n.hide());var o=jQuery(this).parent().find(".pass_check_warning");jQuery.trim(jQuery(this).val())!=jQuery(this).val()?o.length||jQuery(this).parent().append('<span class="pass_check_warning notes field_error">'+r.msg_pwd_trim_warning+"</span>"):o.length&&o.remove(),user_pass_clear_style("#edited_user_pass1, #edited_user_pass2")})}}),jQuery(document).ready(function(){if("undefined"!=typeof evo_init_login_validator_config){var e=evo_init_login_validator_config,i=e.login_icon_load,n=(e.login_icon_available,e.login_icon_exists),o=e.login_icon_error,r=e.login_text_empty,s=(e.login_text_available,e.login_text_exists),a=jQuery("#register_form input#"+e.login_id);a.change(function(){var t=jQuery("#login_status_msg");""==jQuery(this).val()?(jQuery("#login_status").html(""),t.html(r).attr("class","notes")):(jQuery("#login_status").html(i),jQuery.ajax({type:"POST",url:e.login_htsrv_url+"anon_async.php",data:"action=validate_login&login="+jQuery(this).val(),success:function(e){"exists"==(e=ajax_debug_clear(e))?(jQuery("#login_status").html(""),t.html(n+" "+s).attr("class","red"),a[0].setCustomValidity(s)):"available"==e?(jQuery("#login_status").html(""),t.html(""),a[0].setCustomValidity("")):(jQuery("#login_status").html(""),t.html(o.replace("$error_msg$",e.replace(/(<([^>]+)>)/gi,""))+" "+e).attr("class","red"),a[0].setCustomValidity(e.replace(/(<([^>]+)>)/gi,"")))}}))})}}),jQuery(document).ready(function(){"undefined"!=typeof evo_skin_bootstrap_forums__post_list_header&&jQuery("#evo_workflow_status_filter").change(function(){var e=location.href.replace(/([\?&])((status|redir)=[^&]*(&|$))+/,"$1"),t=jQuery(this).val();""!==t&&(e+=(-1==e.indexOf("?")?"?":"&")+"status="+t+"&redir=no"),location.href=e.replace("?&","?").replace(/\?$/,"")})}),jQuery(document).ready(function(){"undefined"!=typeof evo_autocomplete_login_config&&(jQuery("input.autocomplete_login").on("added",function(){jQuery("input.autocomplete_login").each(function(){if(!jQuery(this).hasClass("tt-input")&&!jQuery(this).hasClass("tt-hint")){var t="";t=jQuery(this).hasClass("only_assignees")?restapi_url+evo_autocomplete_login_config.url:restapi_url+"users/logins",jQuery(this).data("status")&&(t+="&status="+jQuery(this).data("status")),jQuery(this).typeahead(null,{displayKey:"login",source:function(e,n){jQuery.ajax({type:"GET",dataType:"JSON",url:t,data:{q:e},success:function(e){var t=new Array;for(var i in e.list)t.push({login:e.list[i]});n(t)}})}})}})}),jQuery("input.autocomplete_login").trigger("added"),evo_prevent_key_enter(evo_autocomplete_login_config.selector))}),jQuery(document).ready(function(){"undefined"!=typeof evo_widget_poll_initialize&&(jQuery('.evo_poll__selector input[type="checkbox"]').on("click",function(){var e=jQuery(this).closest(".evo_poll__table"),t=jQuery(".evo_poll__selector input:checked",e).length>=e.data("max-answers");jQuery(".evo_poll__selector input[type=checkbox]:not(:checked)",e).prop("disabled",t)}),jQuery(".evo_poll__table").each(function(){var e=jQuery(this);e.width()>e.parent().width()&&(jQuery(".evo_poll__title",e).css("white-space","normal"),jQuery(".evo_poll__title label",e).css({width:Math.floor(e.parent().width()/2)+"px","word-wrap":"break-word"}))}))}),jQuery(document).ready(function(){if("undefined"!=typeof evo_init_checklist_lines_config){var c=evo_init_checklist_lines_config;window.toggle_add_checklist_line_input=function(e,t){var i=jQuery(".add_checklist_line_input",e),n=jQuery(".checklist_add_btn"),o=jQuery(".checklist_close_btn");null==t&&(t=0===jQuery(".add_checklist_line_input",e).is(":visible").length),1==t?(n.html(c.button_label_add),i.show(),o.show(),i.focus()):0==t&&(n.html(c.button_label_add_an_item),i.hide(),o.hide())},window.update_checklist_line=function(r,e){jQuery.ajax({type:"POST",url:htsrv_url+"action.php",data:{mname:"collections",action:"checklist_line",item_ID:c.item_ID,check_ID:e,check_label:r.val(),check_checked:r.checked,crumb_collections_checklist_line:c.crumb_checklist_line},dataType:"json",success:function(e){if("add"==e.status){var t=r.closest("div.checklist_wrapper"),i=jQuery(".checklist_lines",t),n=c.checklist_line_template;if(n=(n=n.replace(/\$checklist_line_ID\$/g,e.check_ID)).replace(/\$checklist_line_label\$/g,e.check_label),n=jQuery(n),i.append(n),window.dragndrop_checklist_lines(n),r.hasClass("add_checklist_line_input")){r.val("");var o=r.get(0);o.setAttribute("style","height:"+o.scrollHeight+"px;overflow-y:hidden;"),o.style.height="auto",o.style.height=o.scrollHeight+"px",r.focus()}}else"update"==e.status&&r.closest(".checklist_line_label").html(e.check_label)},error:function(){console.error("Add/update checklist line request error.")}})},window.toggle_checklist_line=function(e,t){jQuery.ajax({type:"POST",url:htsrv_url+"action.php",data:{mname:"collections",action:"checklist_line",item_action:"toggle_check",item_ID:c.item_ID,check_ID:t,check_checked:jQuery(e).is(":checked"),crumb_collections_checklist_line:c.crumb_checklist_line},dataType:"json",success:function(e){},error:function(){console.error("Add/update checklist line request error.")}})},window.delete_checklist_line=function(t,e){jQuery.ajax({type:"POST",url:htsrv_url+"action.php",data:{mname:"collections",action:"checklist_line",item_action:"delete",item_ID:c.item_ID,check_ID:e,crumb_collections_checklist_line:c.crumb_checklist_line},dataType:"json",success:function(e){"delete"==e.status&&jQuery(t).closest(".checklist_line").remove()},error:function(){console.error("Delete checklist line request error.")}})},window.reorder_checklist_lines=function(e){var i=[];jQuery(".checklist_line",e).each(function(e,t){i.push(jQuery("input",t).val())}),jQuery.ajax({type:"POST",url:htsrv_url+"action.php",data:{mname:"collections",action:"checklist_line",item_action:"reorder",item_ID:c.item_ID,item_order:i,crumb_collections_checklist_line:c.crumb_checklist_line},dataType:"json",success:function(e){},error:function(){console.error("Delete checklist line request error.")}})},window.dragndrop_checklist_lines=function(e){jQuery(e).draggable({axis:"y",helper:"original",scroll:!0,scrollSensitivity:100,zIndex:999,opacity:.8,cursor:"move",cancel:"input,textarea,button,select,option,a",stop:function(){jQuery(this).removeAttr("style")}}).addClass("draggable_checklist_line"),jQuery(e).droppable({accept:".draggable_checklist_line",hoverClass:"droppable-hover",greedy:!0,tolerance:"pointer",delay:1e3,drop:function(e,t){var i=jQuery(this).closest(".checklist_lines");jQuery(this).after(t.draggable),window.reorder_checklist_lines(i)}})},jQuery(".checklist_add_btn").on("click",function(){var e=jQuery(this).closest("div.checklist_wrapper"),t=jQuery("textarea.add_checklist_line_input",e);t.is(":visible")?window.update_checklist_line(t):window.toggle_add_checklist_line_input(e,!0)}),jQuery(".checklist_close_btn").on("click",function(){var e=jQuery(this).closest("div.checklist_wrapper");window.toggle_add_checklist_line_input(e,!1)}),jQuery(document).on("click",".checklist_lines label .checklist_line_label",function(e){var t=jQuery(this),i=t.html(),n=t.closest(".checklist_line"),o=jQuery('input[type="checkbox"]',n),r=n.closest("div.checklist_wrapper");if(e.preventDefault(),0===t.has("textarea.checklist_line_input").length){window.toggle_add_checklist_line_input(r,!1);var s=jQuery(c.checklist_line_input_template),a=jQuery("textarea.checklist_line_input",s);a.attr("id","checklist_line_input_"+o.val()),a.attr("name","checklist_line_input_"+o.val()),a.val(i),a.data("checkId",o.val()),a.data("content",i),t.html(a);var l=a.get(0);l.setAttribute("style","height:"+l.scrollHeight+"px;overflow-y:hidden;"),l.style.height="auto",l.style.height=l.scrollHeight+"px",a.focus()}}),jQuery(document).on("blur",".checklist_lines .checklist_line_label .checklist_line_input",function(e){var t=jQuery(this),i=t.data("content"),n=t.closest(".checklist_line_label");setTimeout(function(){n.html(i)},10)}),jQuery(document).on("keypress",".checklist_line_input",function(e){var t=jQuery(this);13==e.keyCode&&(e.preventDefault(),t.val().length&&window.update_checklist_line(t,t.data("checkId")))}),jQuery(document).on("change",'.checklist_lines .checklist_line input[type="checkbox"]',function(e){var t=jQuery(this);window.toggle_checklist_line(t,t.val())}),jQuery(document).on("click",".checklist_lines .checklist_line .checklist_line_delete",function(e){var t=jQuery(this),i=t.closest(".checklist_line"),n=jQuery('input[type="checkbox"]',i),o=i.closest("div.checklist_wrapper");return window.toggle_add_checklist_line_input(o,!1),window.delete_checklist_line(t,n.val()),!1}),jQuery(document).on("input","textarea.checklist_line_input",function(e){this.style.height="auto",this.style.height=this.scrollHeight+"px"}),window.dragndrop_checklist_lines(".checklist_lines .checklist_line, .checklist_droparea")}}),jQuery(document).ready(function(){if("undefined"!=typeof evo_plugin_auto_anchors_settings){jQuery("h1, h2, h3, h4, h5, h6").each(function(){if(jQuery(this).attr("id")&&jQuery(this).hasClass("evo_auto_anchor_header")){var e=location.href.replace(/#.+$/,"")+"#"+jQuery(this).attr("id");jQuery(this).append(' <a href="'+e+'" class="evo_auto_anchor_link" style="visibility:hidden"><span class="fa fa-link"></span></a>')}});var t=jQuery("#evo_toolbar").length?jQuery("#evo_toolbar").height():0;jQuery(".evo_auto_anchor_link").on("click",function(){var e=jQuery(this).attr("href");return jQuery("html,body").animate({scrollTop:jQuery(this).offset().top-t-evo_plugin_auto_anchors_settings.offset_scroll},function(){window.history.pushState("","",e)}),!1})}}),jQuery(document).ready(function(){if("undefined"!=typeof evo_init_custom_tags_toolbar_config)for(var e=Object.values(evo_init_custom_tags_toolbar_config),t=0;t<e.length;t++){var r=e[t];!function(){var o=r.js_prefix+r.plugin_code+"_";window[o+"tagButtons"]=new Array,window[o+"tagOpenTags"]=new Array,window[o+"tagButton"]=function(e,t,i,n,o,r,s,a){this.id=e,this.display=t,this.style=i,this.tagStart=n,this.tagEnd=o,this.access=r,this.title=s,this.open=a};for(var e=Object.values(r.tag_buttons),i=0,n=e.length;i<n;i++)window[o+"tagButtons"][window[o+"tagButtons"].length]=new window[o+"tagButton"]("tag_"+e[i].title,e[i].name,"",e[i].start,e[i].end,"",e[i].title);window[o+"tagGetButton"]=function(e,t){return'<input type="button" id="'+e.id+'" accesskey="'+e.access+'" title="'+e.title+'" style="'+e.style+'" class="'+r.toolbar_button_class+'" data-func="'+o+"tagInsertTag|"+r.js_prefix+"b2evoCanvas|"+t+'" value="'+e.display+'" />'},window[o+"tagAddTag"]=function(e){""!=window[o+"tagButtons"][e].tagEnd&&(window[o+"tagOpenTags"][window[o+"tagOpenTags"].length]=e,document.getElementById(window[o+"tagButtons"][e].id).style.fontWeight="bold")},window[o+"tagRemoveTag"]=function(e){for(i=0,n=window[o+"tagOpenTags"].length;i<n;i++)window[o+"tagOpenTags"][i]==e&&(window[o+"tagOpenTags"].splice(i,1),document.getElementById(window[o+"tagButtons"][e].id).style.fontWeight="normal")},window[o+"tagCheckOpenTags"]=function(e){var t=0;for(i=0,n=window[o+"tagOpenTags"].length;i<n;i++)window[o+"tagOpenTags"][i]==e&&t++;return 0<t},window[o+"tagCloseAllTags"]=function(){var e=window[o+"tagOpenTags"].length;for(i=0;i<e;i++)window[o+"tagInsertTag"](window[r.js_prefix+"b2evoCanvas"],window[o+"tagOpenTags"][window[o+"tagOpenTags"].length-1])},window[o+"tagToolbar"]=function(){var e=r.toolbar_title_before+r.toolbar_label+" "+r.toolbar_title_after;e+=r.toolbar_group_before;for(var t=0,i=window[o+"tagButtons"].length;t<i;t++)e+=window[o+"tagGetButton"](window[o+"tagButtons"][t],t);e+=r.toolbar_group_after+r.toolbar_group_before,e+='<input type="button" id="tag_close" class="'+r.toolbar_button_class+'" data-func="'+o+'tagCloseAllTags" title="'+r.btn_title_close_all_tags+'" value="X" />',e+=r.toolbar_group_after,jQuery("."+o+"toolbar").html(e)},window[o+"tagInsertTag"]=function(e,t){var i=b2evo_Callbacks.trigger_callback("get_selected_text_for_"+e.id),n=!1;null!=i&&0!=i||(document.selection?(e.focus(),i=document.selection.createRange().text,n=!0):!e.selectionStart&&"0"!=e.selectionStart||(i=e.selectionStart!=e.selectionEnd)),i?textarea_wrap_selection(e,window[o+"tagButtons"][t].tagStart,window[o+"tagButtons"][t].tagEnd,0):window[o+"tagCheckOpenTags"](t)&&""!=window[o+"tagButtons"][t].tagEnd?(textarea_wrap_selection(e,"",window[o+"tagButtons"][t].tagEnd,0),window[o+"tagRemoveTag"](t)):(textarea_wrap_selection(e,window[o+"tagButtons"][t].tagStart,"",0),window[o+"tagAddTag"](t)),n&&e.focus()},window[o+"tagToolbar"]()}()}}),jQuery(document).ready(function(){if("undefined"!=typeof evo_plugin_table_contents_settings){var i=jQuery("#evo_toolbar").length?jQuery("#evo_toolbar").height():0;jQuery(".evo_plugin__table_of_contents a").on("click",function(){var e=jQuery("#"+jQuery(this).data("anchor"));if(0==e.length||!e.prop("tagName").match(/^h[1-6]$/i))return!0;var t=jQuery(this).attr("href");return jQuery("html,body").animate({scrollTop:e.offset().top-i-evo_plugin_table_contents_settings.offset_scroll},function(){window.history.pushState("","",t)}),!1})}}),jQuery(document).ready(function(){if(window.evo_init_shortlinks_toolbar=function(i){window.shortlinks_toolbar=function(e){var t=i.toolbar_title_before+e+i.toolbar_title_after+i.toolbar_group_before+'<input type="button" title="'+i.button_title+'" class="'+i.button_class+'" data-func="shortlinks_load_window|'+i.js_prefix+'" value="'+i.button_value+'" />'+i.toolbar_group_after;jQuery("."+i.js_prefix+i.plugin_code+"_toolbar").html(t)},window.shortlinks_toolbar(i.toolbar_title)},"undefined"!=typeof evo_init_shortlinks_toolbar_config){for(var e=Object.values(evo_init_shortlinks_toolbar_config),t=0;t<e.length;t++)window.evo_init_shortlinks_toolbar(e[t]);delete e}}),jQuery(document).ready(function(){if(window.evo_init_inlines_toolbar=function(r){var n=r.target_ID,o=r.temp_ID,s=r.target_type,a=new Array;window.inline_button=function(e,t,i,n,o){this.id=e,this.text=t,this.type=i,this.title=n,this.style=o},a[a.length]=new window.inline_button("inline_image","image","image",r.button_title,""),window.inline_toolbar=function(e,t){for(var i=r.toolbar_title_before+e+r.toolbar_title_after+r.toolbar_group_before,n=0;n<a.length;n++){var o=a[n];i+='<input type="button" id="'+o.id+'" title="'+o.title+'"'+(void 0!==o.style?' style="'+o.style+'"':"")+' class="'+r.button_class+'" data-func="insert_inline|'+o.type+'" value="'+o.text+'" />'}i+=r.toolbar_group_after,jQuery("."+t+r.plugin_code+"_toolbar").html(i)},window.insert_inline=function(){switch(s){case"Item":if(!n&&!o)return alert(evo_js_lang_alert_before_insert_item),!1;break;case"Comment":if(!n)return alert(evo_js_lang_alert_before_insert_comment),!1;break;case"EmailCampaign":if(!n)return alert(evo_js_lang_alert_before_insert_emailcampaign),!1;break;case"Message":if(!n&&!o)return alert(evo_js_lang_alert_before_insert_message),!1}"undefined"!=typeof tinyMCE&&void 0!==tinyMCE.activeEditor&&tinyMCE.activeEditor?(tinyMCE.execCommand("mceFocus",!1,tinyMCE.activeEditor.id),tinyMCE.execCommand("evo_view_edit_inline",!1,tinyMCE.activeEditor.id)):(openModalWindow('<span class="loader_img loader_user_report absolute_center" title="'+evo_js_lang_loading+'..."></span>',"80%","",!0,evo_js_lang_select_image_insert,"",!0),jQuery.ajax({type:"POST",url:r.insert_inline_url,success:function(e){var t,i;i=null==o?(t=s,n):(t="temporary",o),openModalWindow(e,"90%","80%",!0,"Select image","","","","","",function(){evo_link_refresh_list(t,i,"refresh"),evo_link_fix_wrapper_height()})}}))},window.inline_toolbar(r.toolbar_title,r.prefix)},"undefined"!=typeof evo_init_inlines_toolbar_config){for(var e=Object.values(evo_init_inlines_toolbar_config),t=0;t<e.length;t++)window.evo_init_inlines_toolbar(e[t]);delete e}}),jQuery(document).ready(function(){if(window.evo_init_markdown_toolbar=function(o){window[o.js_prefix+"markdown_btns"]=new Array,window[o.js_prefix+"markdown_open_tags"]=new Array,window.markdown_btn=function(e,t,i,n,o,r,s,a){this.id=e,this.text=t,this.title=i,this.tag_start=n,this.tag_end=o,this.style=r,this.open=s,this.grp_pos=a},o.enable_text_styles&&(window[o.js_prefix+"markdown_btns"][window[o.js_prefix+"markdown_btns"].length]=new markdown_btn(o.js_prefix+"mrkdwn_bold","bold",o.btn_title_bold,"**","**","font-weight:bold"),window[o.js_prefix+"markdown_btns"][window[o.js_prefix+"markdown_btns"].length]=new markdown_btn(o.js_prefix+"mrkdwn_italic","italic",o.btn_title_italic,"*","*","font-style:italic",-1,"last")),o.enable_links&&(window[o.js_prefix+"markdown_btns"][window[o.js_prefix+"markdown_btns"].length]=new markdown_btn(o.js_prefix+"mrkdwn_link","link",o.btn_title_link,"","","text-decoration:underline",-1,o.enable_images?void 0:"last")),o.enable_images&&(window[o.js_prefix+"markdown_btns"][window[o.js_prefix+"markdown_btns"].length]=new markdown_btn(o.js_prefix+"mrkdwn_img","img",o.btn_title_image,"","","",-1,"last")),window[o.js_prefix+"markdown_btns"][window[o.js_prefix+"markdown_btns"].length]=new markdown_btn(o.js_prefix+"mrkdwn_h1","H1",o.btn_title_h1,"\n# ","","",-1),window[o.js_prefix+"markdown_btns"][window[o.js_prefix+"markdown_btns"].length]=new markdown_btn(o.js_prefix+"mrkdwn_h2","H2",o.btn_title_h2,"\n## ","","",-1),window[o.js_prefix+"markdown_btns"][window[o.js_prefix+"markdown_btns"].length]=new markdown_btn(o.js_prefix+"mrkdwn_h3","H3",o.btn_title_h3,"\n### ","","",-1),window[o.js_prefix+"markdown_btns"][window[o.js_prefix+"markdown_btns"].length]=new markdown_btn(o.js_prefix+"mrkdwn_h4","H4",o.btn_title_h4,"\n#### ","","",-1),window[o.js_prefix+"markdown_btns"][window[o.js_prefix+"markdown_btns"].length]=new markdown_btn(o.js_prefix+"mrkdwn_h5","H5",o.btn_title_h5,"\n##### ","","",-1),window[o.js_prefix+"markdown_btns"][window[o.js_prefix+"markdown_btns"].length]=new markdown_btn(o.js_prefix+"mrkdwn_h6","H6",o.btn_title_h6,"\n###### ","","",-1,"last"),window[o.js_prefix+"markdown_btns"][window[o.js_prefix+"markdown_btns"].length]=new markdown_btn(o.js_prefix+"mrkdwn_li","li",o.btn_title_li,"\n* ","","",-1),window[o.js_prefix+"markdown_btns"][window[o.js_prefix+"markdown_btns"].length]=new markdown_btn(o.js_prefix+"mrkdwn_ol","ol",o.btn_title_ol,"\n1. ","","",-1),window[o.js_prefix+"markdown_btns"][window[o.js_prefix+"markdown_btns"].length]=new markdown_btn(o.js_prefix+"mrkdwn_blockquote","blockquote",o.btn_title_blockquote,"\n> ","","",-1,"last"),window[o.js_prefix+"markdown_btns"][window[o.js_prefix+"markdown_btns"].length]=new markdown_btn(o.js_prefix+"mrkdwn_codespan","codespan",o.btn_title_codespan,"`","`","",-1),window[o.js_prefix+"markdown_btns"][window[o.js_prefix+"markdown_btns"].length]=new markdown_btn(o.js_prefix+"mrkdwn_preblock","preblock",o.btn_title_preblock,"\n\t","","",-1,"last"),window[o.js_prefix+"markdown_btns"][window[o.js_prefix+"markdown_btns"].length]=new markdown_btn(o.js_prefix+"mrkdwn_codeblock","codeblock",o.btn_title_codeblock,"\n```\n","\n```\n","",-1,"last"),window[o.js_prefix+"markdown_btns"][window[o.js_prefix+"markdown_btns"].length]=new markdown_btn(o.js_prefix+"mrkdwn_hr","hr",o.btn_title_hr,"\n---\n","","",-1),window[o.js_prefix+"markdown_btns"][window[o.js_prefix+"markdown_btns"].length]=new markdown_btn(o.js_prefix+"mrkdwn_br","<br>",o.btn_title_br," \n","","",-1),window[o.js_prefix+"markdown_get_btn"]=function(e,t){var i="";return e.id==window[o.js_prefix+"mrkdwn_img"]?i+='<input type="button" id="'+e.id+'" accesskey="'+e.access+'" title="'+e.title+'" style="'+e.style+'" class="'+o.toolbar_button_class+'" data-func="'+o.js_prefix+"markdown_insert_lnkimg|"+o.js_prefix+'b2evoCanvas|img" value="'+e.text+'" />':e.id==o.js_prefix+"mrkdwn_link"?i+='<input type="button" id="'+e.id+'" accesskey="'+e.access+'" title="'+e.title+'" style="'+e.style+'" class="'+o.toolbar_button_class+'" data-func="'+o.js_prefix+"markdown_insert_lnkimg|"+o.js_prefix+'b2evoCanvas" value="'+e.text+'" />':i+='<input type="button" id="'+e.id+'" accesskey="'+e.access+'" title="'+e.title+'" style="'+e.style+'" class="'+o.toolbar_button_class+'" data-func="'+o.js_prefix+"markdown_insert_tag|"+o.js_prefix+"b2evoCanvas|"+t+'" value="'+e.text+'" />',i},window[o.js_prefix+"markdown_add_tag"]=function(e){""!=window[o.js_prefix+"markdown_btns"][e].tag_end&&(window[o.js_prefix+"markdown_open_tags"][window[o.js_prefix+"markdown_open_tags"].length]=e,document.getElementById(window[o.js_prefix+"markdown_btns"][e].id).value="/"+document.getElementById(window[o.js_prefix+"markdown_btns"][e].id).value)},window[o.js_prefix+"markdown_remove_tag"]=function(e){for(i=0;i<window[o.js_prefix+"markdown_open_tags"].length;i++)window[o.js_prefix+"markdown_open_tags"][i]==e&&(window[o.js_prefix+"markdown_open_tags"].splice(i,1),document.getElementById(window[o.js_prefix+"markdown_btns"][e].id).value=document.getElementById(window[o.js_prefix+"markdown_btns"][e].id).value.replace("/",""))},window[o.js_prefix+"markdown_check_open_tags"]=function(e){var t=0;for(i=0;i<window[o.js_prefix+"markdown_open_tags"].length;i++)window[o.js_prefix+"markdown_open_tags"][i]==e&&t++;return 0<t},window[o.js_prefix+"markdown_close_all_tags"]=function(){for(var e=window[o.js_prefix+"markdown_open_tags"].length,t=0;t<e;t++)window[o.js_prefix+"markdown_insert_tag"](window[o.js_prefix+"b2evoCanvas"],window[o.js_prefix+"markdown_open_tags"][window[o.js_prefix+"markdown_open_tags"].length-1])},window[o.js_prefix+"markdown_toolbar"]=function(e){for(var t=o.toolbar_title_before+e+o.toolbar_title_after+o.toolbar_group_before,i=0;i<window[o.js_prefix+"markdown_btns"].length;i++)t+=window[o.js_prefix+"markdown_get_btn"](window[o.js_prefix+"markdown_btns"][i],i),"last"==window[o.js_prefix+"markdown_btns"][i].grp_pos&&0<i&&i<window[o.js_prefix+"markdown_btns"].length-1&&(t+=o.toolbar_group_after+o.toolbar_group_before);t+=o.toolbar_group_after+o.toolbar_group_before+'<input type="button" id="'+o.js_prefix+'mrkdwn_close" class="'+o.toolbar_button_class+'" data-func="'+o.js_prefix+'markdown_close_all_tags" title="'+o.btn_title_close_all_tags+'" value="X" />'+o.toolbar_group_after,jQuery("."+o.js_prefix+o.plugin_code+"_toolbar").html(t)},window[o.js_prefix+"markdown_insert_tag"]=function(e,t){var i=b2evo_Callbacks.trigger_callback("get_selected_text_for_"+e.id),n=!1;null==i&&(document.selection?(e.focus(),i=document.selection.createRange().text,n=!0):!e.selectionStart&&"0"!=e.selectionStart||(i=e.selectionStart!=e.selectionEnd)),i?textarea_wrap_selection(e,window[o.js_prefix+"markdown_btns"][t].tag_start,window[o.js_prefix+"markdown_btns"][t].tag_end,0):window[o.js_prefix+"markdown_check_open_tags"](t)&&""!=window[o.js_prefix+"markdown_btns"][t].tag_end?(textarea_wrap_selection(e,"",window[o.js_prefix+"markdown_btns"][t].tag_end,0),window[o.js_prefix+"markdown_remove_tag"](t)):(textarea_wrap_selection(e,window[o.js_prefix+"markdown_btns"][t].tag_start,"",0),window[o.js_prefix+"markdown_add_tag"](t)),n&&e.focus()},window[o.js_prefix+"markdown_insert_lnkimg"]=function(e,t){var i=prompt(o.prompt_url+":","http://");if(i){i="["+prompt(o.prompt_text+":","")+"]("+i;var n=prompt(o.prompt_title+":","");""!=n&&(i+=' "'+n+'"'),i+=")",void 0!==t&&"img"==t&&(i="!"+i),textarea_wrap_selection(e,i,"",1)}},window[o.js_prefix+"markdown_toolbar"](o.toolbar_title+": ")},"undefined"!=typeof evo_init_markdown_toolbar_config){for(var e=Object.values(evo_init_markdown_toolbar_config),i=0;i<e.length;i++)window.evo_init_markdown_toolbar(e[i]);delete e}}),jQuery(document).ready(function(){if(window.evo_init_polls_toolbar=function(n){window.polls_toolbar=function(e,t){var i=n.toolbar_title_before+e+n.toolbar_title_after+n.toolbar_group_before+'<input type="button" title="'+n.button_title+'" class="'+n.button_class+'" data-func="polls_load_window|'+t+'" value="'+n.button_value+'" />'+n.toolbar_group_after;jQuery("."+t+n.plugin_code+"_toolbar").html(i)},window.polls_load_window=function(e){return openModalWindow('<div id="poll_wrapper"></div>',"auto","",!0,n.modal_window_title,["Insert Poll"],!0),polls_load_polls(e),!1},window.polls_api_request=function(e,t,i){jQuery.ajax({url:restapi_url+e}).then(i,function(e){polls_api_print_error(t,e)})},window.polls_api_print_error=function(e,t){if("string"!=typeof t&&void 0===t.code&&(t=void 0===t.responseJSON?t.statusText:t.responseJSON),void 0===t.code)var i='<h4 class="text-danger">Unknown error: '+t+"</h4>";else i='<h4 class="text-danger">'+t.message+"</h4>",n.debug&&(i+="<div><b>Code:</b> "+t.code+"</div><div><b>Status:</b> "+t.data.status+"</div>");jQuery(e).html(i)},window.polls_load_polls=function(o){o=o||"",polls_api_request("polls","#poll_wrapper",function(e){var t='<div id="'+o+'polls_list">';for(var i in t+="<ul>",e.polls){var n=e.polls[i];t+='<li><a href="#" data-poll-id="'+n.pqst_ID+'" data-prefix="'+o+'">'+n.pqst_question_text+"</a></li>"}t+="</ul>",t+="</div>",jQuery("#poll_wrapper").html(t),jQuery(document).on("click","#"+o+"polls_list a[data-poll-id]",function(){"undefined"!=typeof tinyMCE&&void 0!==tinyMCE.activeEditor&&tinyMCE.activeEditor&&tinyMCE.execCommand("mceFocus",!1,tinyMCE.activeEditor.id);var e=jQuery(this).data("prefix")?jQuery(this).data("prefix"):"";return textarea_wrap_selection(window[e+"b2evoCanvas"],"[poll:"+jQuery(this).data("pollId")+"]","",0),closeModalWindow(),!1})})},window.polls_toolbar(n.toolbar_title,n.prefix)},"undefined"!=typeof evo_init_polls_toolbar_config){for(var e=Object.values(evo_init_polls_toolbar_config),t=0;t<e.length;t++)window.evo_init_polls_toolbar(e[t]);delete e}}),jQuery(document).ready(function(){if(window.evo_init_shortcodes_toolbar=function(r){window[r.js_prefix+"shortcodes_buttons"]=new Array,window.shortcodes_button=function(e,t,i,n,o){this.id=e,this.text=t,this.tag=i,this.title=n,this.style=o},window[r.js_prefix+"shortcodes_buttons"][window[r.js_prefix+"shortcodes_buttons"].length]=new shortcodes_button("shortcodes_teaserbreak","[teaserbreak]","[teaserbreak]",r.btn_title_teaserbreak,""),window[r.js_prefix+"shortcodes_buttons"][window[r.js_prefix+"shortcodes_buttons"].length]=new shortcodes_button("shortcodes_pagebreak","[pagebreak]","[pagebreak]",r.btn_title_pagebreak,""),window[r.js_prefix+"shortcodes_toolbar"]=function(e){for(var t=r.toolbar_title_before+e+r.toolbar_title_after+r.toolbar_group_before,i=0,n=window[r.js_prefix+"shortcodes_buttons"].length;i<n;i++){var o=window[r.js_prefix+"shortcodes_buttons"][i];t+='<input type="button" id="'+o.id+'" title="'+o.title+'"'+(void 0!==o.style?' style="'+o.style+'"':"")+' class="'+r.toolbar_button_class+'" data-func="'+r.js_prefix+"shortcodes_insert_tag|"+r.js_prefix+"b2evoCanvas|"+i+'" value="'+o.text+'" />'}t+=r.toolbar_group_after,jQuery("."+r.js_prefix+r.plugin_code+"_toolbar").html(t)},window[r.js_prefix+"shortcodes_insert_tag"]=function(e,t){"undefined"!=typeof tinyMCE&&void 0!==tinyMCE.activeEditor&&tinyMCE.activeEditor&&tinyMCE.execCommand("mceFocus",!1,tinyMCE.activeEditor.id),textarea_wrap_selection(e,window[r.js_prefix+"shortcodes_buttons"][t].tag,"",0)},window[r.js_prefix+"shortcodes_toolbar"](r.toolbar_title+": ")},"undefined"!=typeof evo_init_shortcodes_toolbar_config){for(var e=Object.values(evo_init_shortcodes_toolbar_config),t=0;t<e.length;t++)window.evo_init_shortcodes_toolbar(e[t]);delete e}}),jQuery(document).ready(function(){if("undefined"!=typeof evo_init_widescroll_toolbar_config)for(var e=Object.values(evo_init_widescroll_toolbar_config),t=0;t<e.length;t++){var r=e[t];window[r.js_prefix+"widescroll_buttons"]=new Array,window[r.js_prefix+"widescroll_buttons"][window[r.js_prefix+"widescroll_buttons"].length]=new function(e,t,i,n,o,r){this.id="widescroll",this.text="wide scroll",this.tag_open='<div class="wide_scroll">',this.tag_close="</div>",this.title=o,this.style=""}("widescroll","wide scroll",'<div class="wide_scroll">',"</div>",r.btn_title_teaserbreak,""),window[r.js_prefix+"widescroll_toolbar"]=function(e){for(var t=r.toolbar_title_before+e+r.toolbar_title_after+r.toolbar_group_before,i=0,n=window[r.js_prefix+"widescroll_buttons"].length;i<n;i++){var o=window[r.js_prefix+"widescroll_buttons"][i];t+='<input type="button" id="'+o.id+'" title="'+o.title+'"'+(void 0!==o.style?' style="'+o.style+'"':"")+' class="'+r.toolbar_button_class+'" data-func="'+r.js_prefix+"widescroll_insert_tag|"+r.js_prefix+"b2evoCanvas|"+i+'" value="'+o.text+'" />'}t+=r.toolbar_group_after,jQuery("."+r.js_prefix+r.plugin_code+"_toolbar").html(t)},window[r.js_prefix+"widescroll_insert_tag"]=function(e,t){"undefined"!=typeof tinyMCE&&void 0!==tinyMCE.activeEditor&&tinyMCE.activeEditor&&tinyMCE.execCommand("mceFocus",!1,tinyMCE.activeEditor.id),textarea_wrap_selection(e,window[r.js_prefix+"widescroll_buttons"][t].tag_open,window[r.js_prefix+"widescroll_buttons"][t].tag_close,0)},window[r.js_prefix+"widescroll_toolbar"](r.toolbar_title+": ")}}),jQuery(document).ready(function(){"undefined"!=typeof evo_plugin_videoplug_config&&(jQuery(evo_plugin_videoplug_config.youtube_lazyload_selector).each(function(){var e=jQuery(this),t=new Image;t.src="https://img.youtube.com/vi/"+e.data("embed")+"/sddefault.jpg",t.addEventListener("load",function(){e.append(t)})}),jQuery(evo_plugin_videoplug_config.youtube_lazyload_selector).click(function(){var e=document.createElement("iframe");e.setAttribute("frameborder","0"),e.setAttribute("allowfullscreen",""),e.setAttribute("allow","accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"),e.setAttribute("src","https://www.youtube.com/embed/"+jQuery(this).data("embed")+"?rel=0&showinfo=0&autoplay=1"),jQuery(this).html(e)}))}),jQuery(document).ready(function(){if("undefined"!=typeof evo_init_editable_column_config)for(var keys=Object.keys(evo_init_editable_column_config),i=0;i<keys.length;i++)!function(){var config=evo_init_editable_column_config[keys[i]];0<jQuery(config.column_selector).length&&jQuery(config.column_selector).editable(config.ajax_url,{data:function(value,settings){if(value=ajax_debug_clear(value),"select"==config.field_type){var result=value.match(/rel="([^"]*)"/);return config.options_eval?eval(config.options_eval):config.options instanceof Object?jQuery.extend({},config.options,{selected:result[1]}):config.options}var result=value.match(/>\s*([^<]+)\s*</);return result[1]==config.null_text?"":result[1]},type:config.field_type,class_name:config.field_class,name:config.new_field_name,tooltip:config.tooltip,event:"click",onblur:"text"==config.field_type?"submit":"cancel",onedit:function(e,t){var i=jQuery(t).width();jQuery(t).css({width:i,"max-width":i})},callback:function(settings,original){if(config.colored_cells){jQuery(this).html(ajax_debug_clear(settings));var link=jQuery(this).find("a");jQuery(this).css("background-color","none"==link.attr("color")?"transparent":link.attr("color")),link.removeAttr("color")}else"function"==typeof evoFadeSuccess&&evoFadeSuccess(this);config.callback_code&&eval(config.callback_code)},submitdata:function(value,settings){var return_obj={};return return_obj[config.ID_name]=eval(config.ID_value),return_obj},onerror:function(e,t,i){"function"==typeof evoFadeFailure&&evoFadeFailure(t);var n=jQuery(t).find("input");0<n.length&&(jQuery(t).find("span.field_error").remove(),n.addClass("field_error"),void 0!==i.responseText&&n.after('<span class="note field_error">'+i.responseText+"</span>"))}})}()}),jQuery(document).ready(function(){if("undefined"!=typeof evo_regional_config){window.check_regional_required_fields=function(e){jQuery("#"+e+"_rgn_ID, #"+e+"_subrg_ID, #"+e+"_city_ID").each(function(){void 0!==jQuery(this).attr("required")||!0===jQuery(this).data("required")?(1<jQuery(this).find("option").length?jQuery(this).attr("required","required"):jQuery(this).removeAttr("required"),jQuery(this).data("required",!0)):jQuery(this).data("required",!1)})},window.load_regions=function(e,t,i){jQuery("#"+i+"_rgn_ID").next().find("button").hide().next().show(),jQuery.ajax({type:"POST",url:htsrv_url+"anon_async.php",data:"action=get_regions_option_list&page=edit&mode=load_all&ctry_id="+e+"&rgn_id="+t,success:function(e){jQuery("#"+i+"_rgn_ID").next().find("button").show().next().hide();var t=(e=ajax_debug_clear(e)).split("-##-");jQuery("#"+i+"_rgn_ID").html(t[0]),jQuery("#"+i+"_subrg_ID").html(t[1]),jQuery("#"+i+"_city_ID").html(t[2]),window.check_regional_required_fields(i)}})},window.load_subregions=function(e,t,i){jQuery("#"+i+"_subrg_ID").next().find("button").hide().next().show(),jQuery.ajax({type:"POST",url:htsrv_url+"anon_async.php",data:"action=get_subregions_option_list&page=edit&mode=load_all&ctry_id="+e+"&rgn_id="+t,success:function(e){jQuery("#"+i+"_subrg_ID").next().find("button").show().next().hide();var t=(e=ajax_debug_clear(e)).split("-##-");jQuery("#"+i+"_subrg_ID").html(t[0]),jQuery("#"+i+"_city_ID").html(t[1]),window.check_regional_required_fields(i)}})},window.load_cities=function(e,t,i,n){jQuery("#"+n+"_city_ID").next().find("button").hide().next().show(),jQuery.ajax({type:"POST",url:htsrv_url+"anon_async.php",data:"action=get_cities_option_list&page=edit&ctry_id="+e+"&rgn_id="+t+"&subrg_id="+i,success:function(e){jQuery("#"+n+"_city_ID").html(ajax_debug_clear(e)),jQuery("#"+n+"_city_ID").next().find("button").show().next().hide(),window.check_regional_required_fields()}})};for(var t=Object.values(evo_regional_config),i=0;i<t.length;i++)!function(){var e=t[i];window.check_regional_required_fields(e.prefix),jQuery("#"+e.prefix+"_ctry_ID").change(function(){window.load_regions(jQuery(this).val(),0,e.prefix)}),jQuery("#"+e.prefix+"_rgn_ID").change(function(){window.load_subregions(jQuery("#"+e.prefix+"_ctry_ID").val(),jQuery(this).val(),e.prefix)}),jQuery("#"+e.prefix+"_subrg_ID").change(function(){window.load_cities(jQuery("#"+e.prefix+"_ctry_ID").val(),jQuery("#"+e.prefix+"_rgn_ID").val(),jQuery(this).val(),e.prefix)}),jQuery("#button_refresh_region").click(function(){return window.load_regions(jQuery("#"+e.prefix+"_ctry_ID").val(),0,e.prefix),!1}),jQuery("#button_refresh_subregion").click(function(){return window.load_subregions(jQuery("#"+e.prefix+"_ctry_ID").val(),jQuery("#"+e.prefix+"_rgn_ID").val(),e.prefix),!1}),jQuery("#button_refresh_city").click(function(){return window.load_cities(jQuery("#"+e.prefix+"_ctry_ID").val(),jQuery("#"+e.prefix+"_rgn_ID").val(),jQuery("#"+e.prefix+"_subrg_ID").val(),e.prefix),!1})}()}}),jQuery(function(){jQuery('[data-toggle="tooltip"]').tooltip({html:!0})}),jQuery(document).ready(function(){if("undefined"!=typeof evo_comment_funcs_config){var p=evo_comment_funcs_config,f=new Array,c=new Array,u=p.displayed,t=!1;window.isDefined=function(e){return void 0!==e},window.fadeIn=function(e,t){if(0!=jQuery(e).length){"TR"==jQuery(e).get(0).tagName&&(e+=" td");var i=jQuery(e).css("backgroundColor");return jQuery(e).animate({backgroundColor:t},200),i}},window.fadeInStatus=function(e,t){switch(t){case"published":return fadeIn(e,"#99EE44");case"community":return fadeIn(e,"#2E8BB9");case"protected":return fadeIn(e,"#FF9C2A");case"review":return fadeIn(e,"#CC0099");case"deprecated":return fadeIn(e,"#656565");case"deleted":return fadeIn(e,"#fcc");case"spam":return fadeIn(e,"#ffc9c9");case"notsure":return fadeIn(e,"#bbbbbb");case"ok":return fadeIn(e,"#bcffb5")}},window.delete_comment_url=function(e){var t="#commenturl_"+e;fadeIn(t,"#fcc"),jQuery.ajax({type:"POST",url:htsrv_url+"async.php",data:{blogid:p.blog_ID,commentid:e,action:"delete_comment_url",crumb_comment:p.crumb_comment},success:function(e){jQuery(t).remove()}})},window.show_modified=function(){for(var e in f)fadeInStatus("#"+e,f[e])},window.setCommentStatus=function(e,t,o,i){var r="comment_"+e,s="[id="+r+"]";if(void 0===f[r]){f[r]=t;var a=fadeInStatus(s,t),n=get_show_statuses(),l=get_expiry_status(),c=get_current_page(),u=get_itemid(),d=get_limit(),h={blogid:p.blog_ID,commentid:e,status:t,limit:d,action:"set_comment_status",request_from:o,moderation:"commentlist",statuses:n,expiry_status:l,itemid:u,currentpage:c,redirect_to:i,crumb_comment:p.crumb_comment};p.is_admin_page&&(h.is_backoffice=1),jQuery.ajax({type:"POST",url:htsrv_url+"anon_async.php",data:h,success:function(e){if(delete f[r],"front"==o){fadeIn(s,a);var t=ajax_debug_clear(e).split(":"),i=t[0];if(""==i)return;var n=jQuery(s).attr("class");n=n.replace(/vs_([a-z]+)/g,"vs_"+i),jQuery(s).attr("class",n),update_moderation_buttons(s,t[1],t[2])}else"dashboard"==o||"coll_settings"==o?updateCommentsList(r):(jQuery("#comments_container").html(ajax_debug_clear(e)),jQuery(".vote_spam").show(),show_modifieds())},error:function(e){e&&""!=e.statusText&&evoAlert(e.statusText),fadeIn(s,a),delete f[r]}})}},jQuery(".vote_spam").show(),window.setCommentVote=function(t,i,e){var n="#comment_"+t,o=fadeInStatus(n,e),r="";switch(e){case"spam":r=p.button_class_button_red;break;case"ok":r=p.button_class_button_green}var s={blog:p.blog_ID,commentid:t,type:i,vote:e,action:"set_comment_vote",b2evo_icons_type:p.b2evo_icons_type,crumb_comment:p.crumb_comment};p.is_admin_page&&(s.is_backoffice=1),""!=r&&jQuery("#vote_"+i+"_"+t).find(p.button_class_button).addClass(r),jQuery.ajax({type:"POST",url:htsrv_url+"anon_async.php",data:s,success:function(e){fadeIn(n,o),jQuery("#vote_"+i+"_"+t).after(ajax_debug_clear(e)),jQuery("#vote_"+i+"_"+t).remove()}})},window.edit_comment=function(e,t){var i=jQuery("#editable_comment_"+t);if(0==i.length)return!0;var n="";if("update"==e){var o=i.find("textarea");if(0==o.length)return;n=o.val()}return jQuery.ajax({type:"POST",url:htsrv_url+"async.php",data:{commentid:t,action:"edit_comment",comment_action:e,comment_content:n,crumb_comment:p.crumb_comment},success:function(e){i.html(ajax_debug_clear(e)),window.init_autocomplete_usernames&&init_autocomplete_usernames()}}),!1},window.deleteComment=function(e,i,n){if(void 0===n&&(n="feedback"),"meta"==n&&!confirm(p.delete_confirmation_msg))return!1;var o="comment_"+e,r="#"+o;if(void 0===f[o]){f[o]="deleted";var t=fadeIn(r,"#fcc"),s=get_show_statuses(),a=get_expiry_status(),l=get_itemid(),c=get_current_page(),u=get_limit();if("meta"!=n){var d=jQuery("#recycle_bin");0<d.length&&""==d.html()&&jQuery.ajax({type:"POST",url:htsrv_url+"async.php",data:{action:"get_opentrash_link",blog:p.blog_ID,request_from:i,crumb_comment:p.crumb_comment},success:function(e){d.replaceWith(ajax_debug_clear(e))}})}jQuery.ajax({type:"POST",url:htsrv_url+"async.php",data:{blogid:p.blog_ID,commentid:e,action:"delete_comment",request_from:i,itemid:l,comment_type:n,statuses:s,expiry_status:a,currentpage:c,limit:u,crumb_comment:p.crumb_comment},success:function(e){var t="meta"==n?"#comments":"#recycle_bin";jQuery(r).transfer({to:t,duration:700},function(){delete f[o],"dashboard"==i||"coll_settings"==i?updateCommentsList(o):(jQuery("#comments_container").html(ajax_debug_clear(e)),jQuery(".vote_spam").show(),show_modifieds())})},error:function(e){e&&""!=e.statusText&&evoAlert(e.statusText),""!=t&&fadeIn(r,t),delete f[o]}})}},window.ban_url=function(e){openModalWindow('<span class="loader_img loader_ban_url absolute_center" title="'+p.loading_msg+'"></span><iframe id="modal_window_frame_ban" src="'+p.admin_url+"?ctrl=antispam&action=ban&display_mode=js&mode=iframe&request=checkban&keyword="+e+"&crumb_antispam="+p.crumb_antispam+'" width="100%" height="500px" frameborder="0" style="display:none"></iframe>',"90%","",!0,p.confirm_ban_delete_title,[p.perform_selected_operations_msg,"btn-danger","#antispam_ban"],!0,!1,"modal_window_frame_ban");var t=jQuery(".modal-footer button:submit").not("[data-dismiss=modal]");t.on("click",function(){addSpinner(this)}),jQuery("#modal_window_frame_ban").on("load",function(){t.hasClass("btn-spinner")&&(t.removeClass("btn-spinner"),t.css("width","-=24px"))})},window.refreshAfterBan=function(e){for(var t=String(e).split(","),i=0;i<t.length;++i)fadeIn("#comment_"+t[i],"#fcc");var n=get_itemid();refresh_item_comments(n)},window.closedModalAfterBan=function(){jQuery("#server_messages").html("").append(jQuery("#modal_window_frame_ban").contents().find(".action_messages")),closeModalWindow()},window.processResult=function(e,t){var i=jQuery("<div/>");i.html(e);var n=0;for(var o in c){var r=i.find("#"+c[o]);0!==r.length&&(r.remove(),i.find(".hidden_comment:first").removeClass("hidden_comment"),n+=1)}c.length=0,jQuery("#comments_container").html(i.html());var s=jQuery("#comments_container [id^=comment_]");for(var o in u=s?s.length:0,t)switch(t[o]){case"published":jQuery("#"+o).css("backgroundColor","#339900");break;case"deprecated":jQuery("#"+o).css("backgroundColor","#656565");break;case"deleted":jQuery("#"+o).css("backgroundColor","#fcc")}var a=jQuery("#new_badge").val();if("0"==a)jQuery("#comments_block").effect("blind",{},200),jQuery("#comments_block").remove();else{var l=parseInt(a)-n;jQuery("#badge").text(l)}},window.refreshComments=function(e){t||(t=!0,jQuery.ajax({type:"POST",url:htsrv_url+"async.php",data:{blogid:p.blog_ID,action:"refresh_comments",request_from:e,crumb_comment:p.crumb_comment},success:function(e){processResult(ajax_debug_clear(e),f),jQuery("#comments_container").slideDown("fast"),jQuery(".vote_spam").show(),t=!1},error:function(e){e&&""!=e.statusText&&evoAlert(e.statusText),t=!1}}))},window.startRefreshComments=function(e,t,i,n){"dashboard"==e||"coll_settings"==e?jQuery("#comments_container").slideUp("fast",refreshComments(e)):jQuery("#comments_container").fadeTo("slow",.1,function(){refresh_item_comments(t,i,n)})},window.endRefreshComments=function(e){jQuery("#comments_container").html(e),jQuery("#comments_container").fadeTo("slow",1),jQuery(".vote_spam").show()},window.get_current_page=function(){return isDefined(jQuery("#currentpage"))&&isDefined(jQuery("#currentpage").attr("value"))?jQuery("#currentpage").attr("value"):1},window.get_limit=function(){var e=jQuery("select[name$=_per_page]");return isDefined(e)?e.val():0},window.get_show_statuses=function(){return jQuery("#only_moderation")&&jQuery("#only_moderation").is(":checked")?"#only_moderation#":jQuery("#only_valid")&&jQuery("#only_valid").is(":checked")?"#only_valid#":"#all#"},window.get_expiry_status=function(){var e="active";return jQuery("#show_expiry_all")&&jQuery("#show_expiry_all").prop("checked")&&(e="all"),e},window.get_itemid=function(){var e=jQuery("#comments_container").attr("value");return isDefined(e)||(e=-1),e},window.refresh_item_comments=function(e,t,i){var n=get_show_statuses(),o=get_expiry_status();isDefined(t)||(t=get_current_page()),isDefined(e)||(e=-1),void 0===i&&(i="feedback"),jQuery.ajax({type:"POST",url:htsrv_url+"async.php",data:{blogid:p.blog_ID,action:"refresh_comments",request_from:p.request_from,itemid:e,statuses:n,expiry_status:o,currentpage:t,comment_type:i},success:function(e){endRefreshComments(ajax_debug_clear(e)),show_modifieds()},error:function(e){e&&""!=e.statusText&&evoAlert(e.statusText)}})},window.decrease_comments_number=function(e){var t=parseInt(jQuery("#badge").text());t&&(t-=e,jQuery("#badge").text(t))},window.updateCommentsList=function(e){u-=1,decrease_comments_number(1),jQuery("#"+e).remove(),jQuery(".hidden_comment:first").removeClass("hidden_comment"),t&&c.push(e),jQuery(".dashboard_post:visible").removeClass("dashboard_post_odd dashboard_post_even"),jQuery(".dashboard_post:visible:even").addClass("dashboard_post_even"),jQuery(".dashboard_post:visible:odd").addClass("dashboard_post_odd"),u<6&&refreshComments("dashboard")},window.update_moderation_buttons=function(e,t,i){var n=p.button_class_group+" ";void 0!==e&&(n=e+" "+n),e=n+p.button_class_text,jQuery(e).removeClass("first-child last-child btn_next_status"),jQuery(e+".btn_raise_status_"+t).addClass("btn_next_status"),jQuery(e+".btn_lower_status_"+i).addClass("btn_next_status"),jQuery(e+":visible:first").addClass("first-child"),jQuery(e+":visible:last").addClass("last-child")}}}),jQuery(document).ready(function(){if("undefined"!=typeof evo_user_funcs_config){var i=evo_user_funcs_config;window.userfield_criteria_autocomplete=function(e){if(0<e.find("option:selected[rel=suggest]").length){var i=e.val();e.nextAll("input").first().autocomplete({source:function(e,t){jQuery.getJSON(htsrv_url+"anon_async.php?action=get_user_field_autocomplete",{term:e.term,attr_id:i},t)}})}else e.nextAll("input").first().autocomplete().autocomplete("destroy")},jQuery(document).on("change","select[id^=criteria_type]",function(){window.userfield_criteria_autocomplete(jQuery(this))});for(var e=0;e<jQuery("select[id^=criteria_type]").length;e++)window.userfield_criteria_autocomplete(jQuery("select[id^=criteria_type]:eq("+e+")"));i.can_edit_user_level&&jQuery(".user_level_edit").each(function(){0==jQuery(this).find("a").length&&jQuery(this).removeClass("user_level_edit")}),window.merge_duplicated_users=function(e){var t=jQuery("[name=selected_user_ID]:checked");return 0==t.length?alert(i.msg_select_remaining_account):location.href=jQuery(e).attr("href")+"&selected_user_ID="+t.val(),!1}}}),function(u,l,e){var s,c,d,h,p,f,g,o,m,_,v,y,w,b,a,x,k,j,C,D,T,Q,S,I,E,A,M,N,P,O,t,H,$,n={transition:"elastic",speed:300,width:!1,initialWidth:"600",innerWidth:!1,minWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,minHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,inline:!1,html:!1,iframe:!1,fastIframe:!0,photo:!1,href:!1,title:!1,rel:!1,preloading:!0,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",openNewWindowText:"open in new window",open:!1,returnFocus:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:!1,displayVoting:!1,votingUrl:""},z="colorbox",R="cbox",L="cboxElement",W="cbox_closed",F="cbox_purge",q=!u.support.opacity;function r(e,t,i){return i=l.createElement("div"),e&&(i.id=R+e),i.style.cssText=t||"",u(i)}function B(e,t){return Math.round((/%/.test(e)?("x"===t?f.width():f.height())/100:1)*parseInt(e,10))}function U(e){return k.photo||/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i.test(e)}function Y(e){for(e in k=u.extend({},u.data(E,z)))u.isFunction(k[e])&&"on"!==e.substring(0,2)&&(k[e]=k[e].call(E));k.rel=k.rel||E.rel||"nofollow",k.href=k.href||u(E).attr("href"),k.title=k.title||E.title,"string"==typeof k.href&&(k.href=u.trim(k.href))}function K(e,t){t&&t.call(E),u.event.trigger(e)}function V(e){if(!O){if(E=e,j={},Y(),p=u(E),A=0,"nofollow"!==k.rel&&(p=u("."+L).filter(function(){return(u.data(this,z).rel||this.rel)===k.rel}),-1===(A=p.index(E))&&(p=p.add(E),A=p.length-1)),!N){if(N=P=!0,c.show(),k.returnFocus)try{E.blur(),u(E).one(W,function(){try{this.focus()}catch(e){}})}catch(e){}s.css({cursor:k.overlayClose?"pointer":"auto"}).show(),k.w=B(k.initialWidth,"x"),k.h=B(k.initialHeight,"y"),$.position(),K("cbox_open",k.onOpen),x.add(_).hide(),a.html(k.close).show(),o="cboxSlideshow_",r="click.cbox",k.slideshow&&p[1]?(i=function(){y.text(k.slideshowStop).one(r,n),c.removeClass(o+"off").addClass(o+"on"),t=setInterval(function(){N&&(k.loop||A!=p.length-1)||n(),$.next()},k.slideshowSpeed)},n=function(){clearInterval(t),y.text(k.slideshowStart).one(r,i),c.removeClass(o+"on").addClass(o+"off")},k.slideshowAuto?i():n()):c.removeClass(o+"off "+o+"on")}$.load(!0)}var t,i,n,o,r}($=u.fn[z]=u[z]=function(e,t){var i=this;if(e=e||{},!i[0]){if(i.selector)return i;i=u("<a/>"),e.open=!0}return t&&(e.onComplete=t),i.each(function(){u.data(this,z,u.extend({},u.data(this,z)||n,e)),u(this).addClass(L)}),(u.isFunction(e.open)&&e.open.call(i)||e.open)&&V(i[0]),i}).init=function(){f=u(e),c=r().attr({id:z,class:q?"cboxIE":""}),s=r("Overlay").hide(),d=r("Wrapper"),h=r("Content").append(g=r("LoadedContent","width:0; height:0; overflow:hidden"),m=r("LoadingOverlay").add(r("LoadingGraphic")),_=r("Title"),$infoBar=r("InfoBar").append($nav=r("Navigation").append(b=r("Previous"),v=r("Current"),w=r("Next")),$voting=r("Voting"),y=r("Slideshow"),a=r("Close"),$open=r("Open"))),d.append(h),o=r(!1,"position:absolute; width:9999px; visibility:hidden; display:none"),u("body").prepend(s,c.append(d,o)),$voting.data("voting_positions_done",0),previous_title="",h.children().on("mouseenter",function(){u(this).addClass("hover")}).on("mouseleave",function(){u(this).removeClass("hover")}).addClass("hover"),C=h.outerHeight(!0)-h.height(),D=h.outerWidth(!0)-h.width(),Q=g.outerHeight(!0),S=g.outerWidth(!0),T=Q,I=a.height()+4,c.css({"padding-bottom":C,"padding-right":D}).hide(),w.on("click",function(){$.next()}),b.on("click",function(){$.prev()}),a.on("click",function(){$.close()}),$open.on("click",function(){$.close()}),x=w.add(b).add(v).add(y),h.children().removeClass("hover"),s.on("click",function(){k.overlayClose&&$.close()}),u(l).bind("keydown.cbox",function(e){var t=e.keyCode;N&&k.escKey&&27===t&&(e.preventDefault(),$.close()),N&&k.arrowKey&&p[1]&&(37===t?(e.preventDefault(),b.trigger("click")):39===t&&(e.preventDefault(),w.trigger("click")))})},$.remove=function(){c.add(s).remove(),u("."+L).removeData(z).removeClass(L)},$.position=function(e,t){var i=null==j.pw||k.w>j.pw?k.w:j.pw,n=null==j.ph||k.h>j.ph?k.h:j.ph,o=u("#colorbox .voting_wrapper");parseInt(h.css("border-bottom")),$infoBar.css({minHeight:I+"px"}),Q=i<=700&&$voting.is(":visible")?(o.addClass("compact"),2*T-3):(o.removeClass("compact"),T);var r=0,s=0;function a(e){h[0].style.width=e.style.width,m[0].style.height=m[1].style.height=h[0].style.height=e.style.height}f.unbind("resize.cbox"),c.hide(),k.fixed?c.css({position:"fixed"}):(r=f.scrollTop(),s=f.scrollLeft(),c.css({position:"absolute"})),!1!==k.right?s+=Math.max(f.width()-i-S-D-B(k.right,"x"),0):!1!==k.left?s+=B(k.left,"x"):s+=Math.round(Math.max(f.width()-i-S-D,0)/2),!1!==k.bottom?r+=Math.max(l.documentElement.clientHeight-n-Q-C-B(k.bottom,"y"),0):!1!==k.top?r+=B(k.top,"y"):r+=Math.round(Math.max(l.documentElement.clientHeight-n-Q-C,0)/2),c.show(),e=c.width()===i+S&&c.height()===n+Q?0:e||0,d[0].style.width=d[0].style.height="9999px",c.dequeue().animate({width:i+S,height:n+Q,top:r,left:s},{duration:e,complete:function(){a(this),P=!1,d[0].style.width=i+S+D+"px",d[0].style.height=n+Q+C+"px",t&&t(),setTimeout(function(){f.bind("resize.cbox",$.position)},1),$.resizeVoting(),d.parent().width()<380?y.hide():y.show()},step:function(){a(this)}})},$.resize=function(e){if(N){if((e=e||{}).width&&(k.w=B(e.width,"x")-S-D),e.innerWidth&&(k.w=B(e.innerWidth,"x")),g.css({width:k.w}),e.height&&(k.h=B(e.height,"y")-Q-C),e.innerHeight&&(k.h=B(e.innerHeight,"y")),!e.innerHeight&&!e.height){var t=g.wrapInner("<div style='overflow:auto'></div>").children();k.h=t.outerHeight(),t.replaceWith(t.children())}g.css({height:k.h}),j.pw=k.w,j.ph=k.h,$.position("none"===k.transition?0:k.speed)}},$.prep=function(e){if(N){var t,l="none"===k.transition?0:k.speed;g.remove(),(g=r("LoadedContent").append(e)).hide().appendTo(o.show()).css({width:(k.w=k.w||g.width(),k.w=k.mw&&k.mw<k.w?k.mw:k.w,k.w=k.minWidth&&k.minWidth>k.w?k.minWidth:k.w,j.pw=null==j.pw||k.w>j.pw?k.w:j.pw,j.pw),overflow:k.scrolling?"auto":"hidden"}).css({height:(k.h=k.h||g.height(),k.h=k.mh&&k.mh<k.h?k.mh:k.h,k.h=k.minHeight&&k.minHeight>k.h?k.minHeight:k.h,j.ph=null==j.ph||k.h>j.ph?k.h:j.ph,j.ph)}).prependTo(h),o.hide(),u(M).css({float:"none"}),t=function(){var e,t,i,n,o,r,s=p.length;function a(){q&&c[0].style.removeProperty("filter")}N&&(r=function(){clearTimeout(H),m.hide(),K("cbox_complete",k.onComplete)},q&&M&&g.fadeIn(100),_.add(g).show(),1<s?("string"==typeof k.current&&380<g.width()&&v.html(k.current.replace("{current}",A+1).replace("{total}",s)).show(),w[k.loop||A<s-1?"show":"hide"]().html(k.next),b[k.loop||A?"show":"hide"]().html(k.previous),e=A?p[A-1]:p[s-1],i=A<s-1?p[A+1]:p[0],k.slideshow&&380<g.width()&&y.show(),k.preloading&&(n=u.data(i,z).href||i.href,t=u.data(e,z).href||e.href,n=u.isFunction(n)?n.call(i):n,t=u.isFunction(t)?t.call(e):t,U(n)&&(u("<img/>")[0].src=n),U(t)&&(u("<img/>")[0].src=t))):x.hide(),k.iframe?(o=u("<iframe/>").addClass("cboxIframe")[0],k.fastIframe?r():u(o).one("load",r),o.name=R+ +new Date,o.src=k.href,k.scrolling||(o.scrolling="no"),q&&(o.frameBorder=0,o.allowTransparency="true"),u(o).appendTo(g).one(F,function(){o.src="//about:blank"})):r(),"fade"===k.transition?c.fadeTo(l,1,a):a())},"fade"===k.transition?c.fadeTo(l,0,function(){$.position(0,t)}):$.position(l,t)}},$.load=function(e){var t,i,n=$.prep;M=!(P=!0),E=p[A],e||Y(),K(F),K("cbox_load",k.onLoad),previous_title=k.title,k.displayVoting&&""!=k.votingUrl&&""!=E.id?(0==$voting.data("voting_positions_done")&&(0==Q&&(Q=g.outerHeight(!0)),$voting.data("voting_positions_done",1)),$voting.show(),init_voting_bar($voting,k.votingUrl,E.id,!0)):""!=$voting.html()&&($voting.html("").hide(),$voting.data("voting_positions_done",0)),k.h=k.height?B(k.height,"y")-Q-C:k.innerHeight&&B(k.innerHeight,"y"),k.w=k.width?B(k.width,"x")-S-D:k.innerWidth&&B(k.innerWidth,"x"),k.mw=k.w,k.mh=k.h,k.maxWidth&&(k.mw=B(k.maxWidth,"x")-S-D,k.mw=k.w&&k.w<k.mw?k.w:k.mw),k.maxHeight&&(k.mh=B(k.maxHeight,"y")-Q-C,k.mh=k.h&&k.h<k.mh?k.h:k.mh),t=k.href,H=setTimeout(function(){m.show()},100),k.inline?(r().hide().insertBefore(u(t)[0]).one(F,function(){u(this).replaceWith(g.children())}),n(u(t))):k.iframe?n(" "):k.html?n(k.html):U(t)?(u(M=new Image).addClass("cboxPhoto").on("error",function(){k.title=!1,n(r("Error").text("This image could not be loaded"))}).on("load",function(){var e;M.onload=null,k.scalePhotos&&(i=function(){M.height-=M.height*e,M.width-=M.width*e},k.mw&&M.width>k.mw&&(e=(M.width-k.mw)/M.width,i()),k.mh&&M.height>k.mh&&(e=(M.height-k.mh)/M.height,i())),k.h&&(M.style.marginTop=Math.max(k.h-M.height,0)/2+"px"),jQuery(M).removeClass("zoomin zoomout"),colorbox_is_zoomed=!1;var l=0,c=0,t=M.naturalWidth>1.1*M.width||M.naturalHeight>1.1*M.height;t&&(M.className=M.className+" zoomin"),!t&&p[1]&&(A<p.length-1||k.loop)&&(M.onclick=function(e){$.next()}),t&&jQuery(M).bind("click dblclick",function(e,t){if(colorbox_is_zoomed)M.className=M.className.replace(/zoomout/,""),M.width=l,M.height=c,jQuery(this).parent().scrollLeft(0).scrollTop(0),jQuery(this).css({position:"relative",top:"0",left:"0"});else{$.resize({width:k.mw,height:k.mh+parseInt(g.css("margin-bottom"))});var i=jQuery(this).offset(),n=void 0!==e.pageX?e.pageX:t.originalEvent.touches[0].pageX,o=void 0!==e.pageY?e.pageY:t.originalEvent.touches[0].pageY,r=(n-i.left)/jQuery(this).width(),s=(o-i.top)/jQuery(this).height();M.className=M.className+" zoomout",u(M).css({position:"static",top:0,left:0,transform:"none"}),l=M.width,c=M.height,M.removeAttribute("width"),M.removeAttribute("height");var a=jQuery(this).parent()[0];jQuery(this).parent().scrollLeft(r*(a.scrollWidth-a.clientWidth)).scrollTop(s*(a.scrollHeight-a.clientHeight))}colorbox_is_zoomed=!colorbox_is_zoomed}),q&&(M.style.msInterpolationMode="bicubic"),setTimeout(function(){n(M)},1)}),setTimeout(function(){M.src=t},1)):t&&o.load(t,k.data,function(e,t,i){n("error"===t?r("Error").text("Request unsuccessful: "+i.statusText):u(this).contents())})},$.next=function(){!P&&p[1]&&(A<p.length-1||k.loop)&&(A=A<p.length-1?A+1:0,$.load())},$.prev=function(){!P&&p[1]&&(A||k.loop)&&(A=A?A-1:p.length-1,$.load())},$.close=function(){N&&!O&&(N=!(O=!0),K("cbox_cleanup",k.onCleanup),f.unbind(".cbox"),s.fadeTo(200,0),c.stop().fadeTo(300,0,function(){c.add(s).css({opacity:1,cursor:"auto"}).hide(),K(F),g.remove(),setTimeout(function(){O=!1,K(W,k.onClosed)},1)}))},$.resizeVoting=function(){var e=u("#colorbox .voting_wrapper"),t=d.parent().width();t<=480?v.hide():v.show(),$infoBar.css({minHeight:I+"px"}),Q=t<=700&&$voting.is(":visible")?(e.addClass("compact"),2*T-3):(e.removeClass("compact"),T)},$.element=function(){return u(E)},$.settings=n,t=function(e){0!==e.button&&void 0!==e.button||e.ctrlKey||e.shiftKey||e.altKey||(e.preventDefault(),V(this))},u(l).on("click","."+L,t),u($.init)}(jQuery,document,this),jQuery.event.special.dblclick={setup:function(e,t){jQuery(this).bind("touchstart.dblclick",jQuery.event.special.dblclick.handler)},teardown:function(e){jQuery(this).unbind("touchstart.dblclick")},handler:function(e){var t=e.target,i=jQuery(t),n=i.data("lastTouch")||0,o=(new Date).getTime(),r=o-n;20<r&&r<500?(i.data("lastTouch",0),i.trigger("dblclick",e)):i.data("lastTouch",o)}},window.init_voting_bar=function(a,l,e,t){function c(){if("cboxVoting"==a.attr("id")){var e=jQuery("#colorbox").width(),t=a.width();e<t&&jQuery("#colorbox").css({left:jQuery("#colorbox").position().left-Math.round(t-e)/2,width:t})}}if(t&&(a.html('<div class="loading"> </div>'),jQuery.ajax({type:"POST",url:l+"&vote_ID="+e,success:function(e){a.html(ajax_debug_clear(e)),jQuery("a.action_icon",a).data("votingPanel",a),c(),window.votingAdjust()}})),null==jQuery(a).data("initialized")){function i(t,e,i,n){var o=a.find("#voting_action"),r=o.length?o.val():l;0<a.find("#votingID").length&&(r+="&vote_ID="+a.find("#votingID").val()),0<a.find("#widgetID").length&&(r+="&widget_ID="+a.find("#widgetID").val()),0<a.find("#skinID").length&&(r+="&skin_ID="+a.find("#skinID").val());var s=a.css("backgroundColor");jQuery(t).is(":checkbox")?jQuery(t).is(":checked")?(r+="&checked=1",window.votingFadeIn(a,i)):(r+="&checked=0",window.votingFadeIn(a,n)):(jQuery(t).removeAttr("id"),window.votingFadeIn(a,i)),jQuery.ajax({type:"POST",url:r+"&vote_action="+e,success:function(e){jQuery(t).is(":checkbox")||(a.html(ajax_debug_clear(e)),c()),window.votingFadeIn(a,s),window.votingAdjust()}})}a.on("click","a.action_icon",function(){return!1}),a.on("click","#votingLike",function(){i(this,"like","#bcffb5")}),a.on("click","#votingNoopinion",function(){i(this,"noopinion","#bbb")}),a.on("click","#votingDontlike",function(){i(this,"dontlike","#ffc9c9")}),a.on("click","#votingInappropriate",function(){i(this,"inappropriate","#dcc","#bbb")}),a.on("click","#votingSpam",function(){i(this,"spam","#dcc","#bbb")}),jQuery(a).data("initialized",!0)}},window.votingFadeIn=function(e,t){var i="transparent"==t||"rgba(0, 0, 0, 0)"==t;if(i){for(var n=e.parent(),o=t;n&&("transparent"==o||"rgba(0, 0, 0, 0)"==o);)o=n.css("backgroundColor"),n=n.parent();"HTML"!=n[0].tagName&&(t=o)}e.animate({backgroundColor:t},200,function(){i&&e.css("background-color","transparent")})},window.votingAdjust=function(){$prev=jQuery("#cboxPrevious"),$wrap=jQuery("#cboxWrapper"),$voting=jQuery("#cboxVoting"),$prev.width();var e=$("#colorbox .voting_wrapper"),t=($("#colorbox .voting_wrapper > .btn-group"),$("#colorbox .vote_title_panel"),$("#colorbox .vote_others"),$("#colorbox .separator"),$wrap.parent().width());e.removeClass("compact"),t<=700&&e.addClass("compact")},jQuery(document).ready(function(){"undefined"!=typeof evo_init_comment_voting_config&&jQuery("span[id^=vote_helpful_").each(function(){window.init_voting_bar(jQuery(this),evo_init_comment_voting_config.action_url,jQuery(this).find("#votingID").val(),!1)}),"undefined"!=typeof evo_init_item_voting_config&&jQuery("span[id^=vote_item_").each(function(){window.init_voting_bar(jQuery(this),evo_init_item_voting_config.action_url,jQuery(this).find("#votingID").val(),!1)})}),function(e){"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)}(function(oe){"use strict";var re="left",se="right",ae="down",le="horizontal",ce="vertical",ue="move",de="end",he="cancel",pe="ontouchstart"in window,fe="TouchSwipe";function n(e,b){var t=pe||!b.fallbackToMouseEvents,i=t?"touchstart":"mousedown",n=t?"touchmove":"mousemove",o=t?"touchend":"mouseup",r=t?null:"mouseleave",s="touchcancel",x=0,k=null,j=0,C=0,D=0,T=1,Q=0,S=0,I=null,a=oe(e),E="start",A=0,M=null,l=0,N=0,c=0,u=0,d=0,h=null;try{a.bind(i,p),a.bind(s,m)}catch(e){oe.error("events not supported "+i+","+s+" on jQuery.swipe")}function p(e){if(!0!==a.data(fe+"_intouch")&&!(0<oe(e.target).closest(b.excludedElements,a).length)){var t,i=e.originalEvent?e.originalEvent:e,n=pe?i.touches[0]:i;return E="start",pe?A=i.touches.length:e.preventDefault(),S=k=null,T=1,Q=D=C=j=x=0,M=function(){for(var e=[],t=0;t<=5;t++)e.push({start:{x:0,y:0},end:{x:0,y:0},identifier:0});return e}(),(o={}).left=ee(re),o[se]=ee(se),o.up=ee("up"),o.down=ee(ae),I=o,K(),!pe||A===b.fingers||"all"===b.fingers||R()?(G(0,n),l=ne(),2==A&&(G(1,i.touches[1]),C=D=ie(M[0].start,M[1].start)),(b.swipeStatus||b.pinchStatus)&&(t=O(i,E))):t=!1,!1===t?(O(i,E=he),t):(X(!0),null)}var o}function f(e){var t,i,n,o,r,s,a,l,c,u,d,h,p,f,g,m,_=e.originalEvent?e.originalEvent:e;if(E!==de&&E!==he&&!V()){var v,y=J(pe?_.touches[0]:_);if(N=ne(),pe&&(A=_.touches.length),E=ue,2==A&&(0==C?(G(1,_.touches[1]),C=D=ie(M[0].start,M[1].start)):(J(_.touches[1]),D=ie(M[0].end,M[1].end),M[0].end,M[1].end,S=T<1?"out":"in"),T=(D/C*1).toFixed(2),Q=Math.abs(C-D)),A===b.fingers||"all"===b.fingers||!pe||R()){if(function(e,t){if("none"===b.allowPageScroll||R())e.preventDefault();else{var i="auto"===b.allowPageScroll;switch(t){case re:(b.swipeLeft&&i||!i&&b.allowPageScroll!=le)&&e.preventDefault();break;case se:(b.swipeRight&&i||!i&&b.allowPageScroll!=le)&&e.preventDefault();break;case"up":(b.swipeUp&&i||!i&&b.allowPageScroll!=ce)&&e.preventDefault();break;case ae:(b.swipeDown&&i||!i&&b.allowPageScroll!=ce)&&e.preventDefault()}}}(e,(c=y.start,d=y.end,h=(u=c).x-d.x,p=d.y-u.y,f=Math.atan2(p,h),(g=Math.round(180*f/Math.PI))<0&&(g=360-Math.abs(g)),k=(m=g)<=45&&0<=m?re:m<=360&&315<=m?re:135<=m&&m<=225?se:45<m&&m<135?ae:"up")),a=y.start,l=y.end,x=Math.round(Math.sqrt(Math.pow(l.x-a.x,2)+Math.pow(l.y-a.y,2))),j=te(),r=k,s=x,s=Math.max(s,Z(r)),I[r].distance=s,(b.swipeStatus||b.pinchStatus)&&(v=O(_,E)),!b.triggerOnTouchEnd||b.triggerOnTouchLeave){var w=!0;b.triggerOnTouchLeave&&(i={left:(o=(n=oe(n=this)).offset()).left,right:o.left+n.outerWidth(),top:o.top,bottom:o.top+n.outerHeight()},w=(t=y.end).x>i.left&&t.x<i.right&&t.y>i.top&&t.y<i.bottom),!b.triggerOnTouchEnd&&w?E=P(ue):b.triggerOnTouchLeave&&!w&&(E=P(de)),E!=he&&E!=de||O(_,E)}}else O(_,E=he);!1===v&&O(_,E=he)}}function g(e){var t=e.originalEvent;return pe&&0<t.touches.length?(c=ne(),u=event.touches.length+1,!0):(V()&&(A=u),e.preventDefault(),N=ne(),j=te(),H()?O(t,E=he):b.triggerOnTouchEnd||0==b.triggerOnTouchEnd&&E===ue?O(t,E=de):!b.triggerOnTouchEnd&&B()?y(t,E=de,"tap"):E===ue&&O(t,E=he),X(!1),null)}function m(){D=C=l=N=A=0,T=1,K(),X(!1)}function _(e){var t=e.originalEvent;b.triggerOnTouchLeave&&O(t,E=P(de))}function v(){a.unbind(i,p),a.unbind(s,m),a.unbind(n,f),a.unbind(o,g),r&&a.unbind(r,_),X(!1)}function P(e){var t=e,i=$(),n=w(),o=H();return!i||o?t=he:!n||e!=ue||b.triggerOnTouchEnd&&!b.triggerOnTouchLeave?!n&&e==de&&b.triggerOnTouchLeave&&(t=he):t=de,t}function O(e,t){var i=void 0;return L()&&W()||W()?i=y(e,t,"swipe"):(z()&&R()||R())&&!1!==i&&(i=y(e,t,"pinch")),Y()&&U()&&!1!==i?i=y(e,t,"doubletap"):j>b.longTapThreshold&&x<10&&b.longTap&&!1!==i?i=y(e,t,"longtap"):1!==A&&pe||!isNaN(x)&&0!==x||!B()||!1===i||(i=y(e,t,"tap")),t===he&&m(),t===de&&(pe?0==e.touches.length&&m():m()),i}function y(e,t,i){var n=void 0;if("swipe"==i){if(a.trigger("swipeStatus",[t,k||null,x||0,j||0,A]),b.swipeStatus&&!1===(n=b.swipeStatus.call(a,e,t,k||null,x||0,j||0,A)))return!1;if(t==de&&L()){if(a.trigger("swipe",[k,x,j,A]),b.swipe&&!1===(n=b.swipe.call(a,e,k,x,j,A)))return!1;switch(k){case re:a.trigger("swipeLeft",[k,x,j,A]),b.swipeLeft&&(n=b.swipeLeft.call(a,e,k,x,j,A));break;case se:a.trigger("swipeRight",[k,x,j,A]),b.swipeRight&&(n=b.swipeRight.call(a,e,k,x,j,A));break;case"up":a.trigger("swipeUp",[k,x,j,A]),b.swipeUp&&(n=b.swipeUp.call(a,e,k,x,j,A));break;case ae:a.trigger("swipeDown",[k,x,j,A]),b.swipeDown&&(n=b.swipeDown.call(a,e,k,x,j,A))}}}if("pinch"==i){if(a.trigger("pinchStatus",[t,S||null,Q||0,j||0,A,T]),b.pinchStatus&&!1===(n=b.pinchStatus.call(a,e,t,S||null,Q||0,j||0,A,T)))return!1;if(t==de&&z())switch(S){case"in":a.trigger("pinchIn",[S||null,Q||0,j||0,A,T]),b.pinchIn&&(n=b.pinchIn.call(a,e,S||null,Q||0,j||0,A,T));break;case"out":a.trigger("pinchOut",[S||null,Q||0,j||0,A,T]),b.pinchOut&&(n=b.pinchOut.call(a,e,S||null,Q||0,j||0,A,T))}}return"tap"==i?t!==he&&t!==de||(clearTimeout(h),U()&&!Y()?(d=ne(),h=setTimeout(oe.proxy(function(){d=null,a.trigger("tap",[e.target]),b.tap&&(n=b.tap.call(a,e,e.target))},this),b.doubleTapThreshold)):(d=null,a.trigger("tap",[e.target]),b.tap&&(n=b.tap.call(a,e,e.target)))):"doubletap"==i?t!==he&&t!==de||(clearTimeout(h),d=null,a.trigger("doubletap",[e.target]),b.doubleTap&&(n=b.doubleTap.call(a,e,e.target))):"longtap"==i&&(t!==he&&t!==de||(clearTimeout(h),d=null,a.trigger("longtap",[e.target]),b.longTap&&(n=b.longTap.call(a,e,e.target)))),n}function w(){var e=!0;return null!==b.threshold&&(e=x>=b.threshold),e}function H(){var e=!1;return null!==b.cancelThreshold&&null!==k&&(e=Z(k)-x>=b.cancelThreshold),e}function $(){return!(b.maxTimeThreshold&&j>=b.maxTimeThreshold)}function z(){var e=F(),t=q(),i=null===b.pinchThreshold||Q>=b.pinchThreshold;return e&&t&&i}function R(){return!!(b.pinchStatus||b.pinchIn||b.pinchOut)}function L(){var e=$(),t=w(),i=F(),n=q();return!H()&&n&&i&&t&&e}function W(){return!!(b.swipe||b.swipeStatus||b.swipeLeft||b.swipeRight||b.swipeUp||b.swipeDown)}function F(){return A===b.fingers||"all"===b.fingers||!pe}function q(){return 0!==M[0].end.x}function B(){return!!b.tap}function U(){return!!b.doubleTap}function Y(){if(null==d)return!1;var e=ne();return U()&&e-d<=b.doubleTapThreshold}function K(){u=c=0}function V(){var e=!1;return c&&ne()-c<=b.fingerReleaseThreshold&&(e=!0),e}function X(e){!0===e?(a.bind(n,f),a.bind(o,g),r&&a.bind(r,_)):(a.unbind(n,f,!1),a.unbind(o,g,!1),r&&a.unbind(r,_,!1)),a.data(fe+"_intouch",!0===e)}function G(e,t){var i=void 0!==t.identifier?t.identifier:0;return M[e].identifier=i,M[e].start.x=M[e].end.x=t.pageX||t.clientX,M[e].start.y=M[e].end.y=t.pageY||t.clientY,M[e]}function J(e){var t=function(e){for(var t=0;t<M.length;t++)if(M[t].identifier==e)return M[t]}(void 0!==e.identifier?e.identifier:0);return t.end.x=e.pageX||e.clientX,t.end.y=e.pageY||e.clientY,t}function Z(e){if(I[e])return I[e].distance}function ee(e){return{direction:e,distance:0}}function te(){return N-l}function ie(e,t){var i=Math.abs(e.x-t.x),n=Math.abs(e.y-t.y);return Math.round(Math.sqrt(i*i+n*n))}function ne(){return(new Date).getTime()}this.enable=function(){return a.bind(i,p),a.bind(s,m),a},this.disable=function(){return v(),a},this.destroy=function(){return v(),a.data(fe,null),a},this.option=function(e,t){if(void 0!==b[e]){if(void 0===t)return b[e];b[e]=t}else oe.error("Option "+e+" does not exist on jQuery.swipe.options");return null}}oe.fn.swipe=function(e){var t=oe(this),i=t.data(fe);if(i&&"string"==typeof e){if(i[e])return i[e].apply(this,Array.prototype.slice.call(arguments,1));oe.error("Method "+e+" does not exist on jQuery.swipe")}else if(!(i||"object"!=typeof e&&e))return function(i){return!i||void 0!==i.allowPageScroll||void 0===i.swipe&&void 0===i.swipeStatus||(i.allowPageScroll="none"),void 0!==i.click&&void 0===i.tap&&(i.tap=i.click),i=i||{},i=oe.extend({},oe.fn.swipe.defaults,i),this.each(function(){var e=oe(this),t=e.data(fe);t||(t=new n(this,i),e.data(fe,t))})}.apply(this,arguments);return t},oe.fn.swipe.defaults={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:"label, button, input, select, textarea, a, .noSwipe"},oe.fn.swipe.phases={PHASE_START:"start",PHASE_MOVE:ue,PHASE_END:de,PHASE_CANCEL:he},oe.fn.swipe.directions={LEFT:re,RIGHT:se,UP:"up",DOWN:ae,IN:"in",OUT:"out"},oe.fn.swipe.pageScroll={NONE:"none",HORIZONTAL:le,VERTICAL:ce,AUTO:"auto"},oe.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,ALL:"all"}});var b2evo_colorbox_params={maxWidth:480<jQuery(window).width()?"95%":"100%",maxHeight:480<jQuery(window).height()?"90%":"100%",slideshow:!0,slideshowAuto:!1};function init_colorbox(e){if("object"==typeof e&&0!=e.length){var t=e.attr("rel").match(/lightbox\[([a-z]+)/i);switch(t=t?t[1]:""){case"p":e.colorbox(b2evo_colorbox_params_post);break;case"c":e.colorbox(b2evo_colorbox_params_cmnt);break;case"user":e.colorbox(b2evo_colorbox_params_user);break;default:e.colorbox(b2evo_colorbox_params)}}}jQuery(document).ready(function(){"undefined"!=typeof b2evo_colorbox_params_post&&"undefined"!=typeof b2evo_colorbox_params_cmnt&&"undefined"!=typeof b2evo_colorbox_params_user&&"undefined"!=typeof b2evo_colorbox_params_other&&(b2evo_colorbox_params_post=jQuery.extend({},b2evo_colorbox_params,b2evo_colorbox_params_post),b2evo_colorbox_params_cmnt=jQuery.extend({},b2evo_colorbox_params,b2evo_colorbox_params_cmnt),b2evo_colorbox_params_user=jQuery.extend({},b2evo_colorbox_params,b2evo_colorbox_params_user),b2evo_colorbox_params=jQuery.extend({},b2evo_colorbox_params,b2evo_colorbox_params_other),jQuery('a[rel^="lightbox"]').each(function(){init_colorbox(jQuery(this))}),jQuery("#colorbox").swipe({swipeLeft:function(e,t,i,n,o){"undefined"!=typeof colorbox_is_zoomed&&colorbox_is_zoomed||jQuery.colorbox.next()},swipeRight:function(e,t,i,n,o){"undefined"!=typeof colorbox_is_zoomed&&colorbox_is_zoomed||jQuery.colorbox.prev()}}),jQuery(document).on("click","#colorbox img.cboxPhoto",function(){jQuery(this).hasClass("zoomout")?jQuery("#colorbox").swipe("disable"):jQuery("#colorbox").swipe("enable")}))});var modal_window_js_initialized=!1;function openModalWindow(e,t,i,n,o,r,s,a,l,c,u){var d=void 0===t||"auto"==t?"":"width:"+t+";",h=void 0===i||0==i||""==i?"":"height:"+i,p=h.match(/%$/i)?" evo_modal_window__percent_height":"",f=void 0===r||!1!==r,g="form";if(void 0!==r&&""!=r)if("object"==typeof r){var m=r[0],_=r[1];g=void 0===r[2]?"form":r[2]}else m=r,_="btn-primary";if(void 0!==s&&s&&jQuery("#modal_window").remove(),0==jQuery("#modal_window").length){var v='<div id="modal_window" class="modal fade'+p+'" tabindex="-1" role="dialog" aria-hidden="true"><div class="modal-dialog" style="'+d+h+'"><div class="modal-content">';void 0!==o&&""!=o&&(v+='<div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h4 class="modal-title">'+o+"</h4></div>"),v+='<div class="modal-body">'+e,l&&(jQuery("#"+l),v+="<script>jQuery( document ).ready( function() {var iframe = jQuery( '#"+l+"' );iframe.on( 'load', function() {iframe.closest( '.modal-body' ).find( 'span.loader_img' ).remove();setModalIFrameUnload( '"+l+"' );});});<\/script>"),v+="</div>",f&&(v+='<div class="modal-footer">',void 0!==r&&""!=r&&(v+='<button class="btn '+_+'" type="submit" style="display:none">'+m+"</button>"),v+='<button class="btn btn-default" data-dismiss="modal" aria-hidden="true">'+evo_js_lang_close+"</button></div>"),v+="</div></div></div>",jQuery("body").append(v)}else jQuery("#modal_window .modal-body").html(e);void 0!==l?jQuery("#"+l).on("load",function(){prepareModalWindow(jQuery(this).contents(),g,f,a),jQuery("#modal_window .loader_img").remove(),jQuery("#"+l).show()}):prepareModalWindow("#modal_window",g,f,a),"function"==typeof c&&jQuery("#modal_window").on("shown.bs.modal",c);var y={};modal_window_js_initialized&&(y="show"),jQuery("#modal_window").modal(y),d||(jQuery("#modal_window .modal-dialog").css({display:"table",width:"auto"}),jQuery("#modal_window .modal-dialog .modal-content").css({display:"table-cell"})),jQuery("#modal_window").on("hidden.bs.modal",function(){jQuery(this).remove(),"function"==typeof u&&u()}),modal_window_js_initialized=!0}function prepareModalWindow(e,t,i,n){i&&(void 0!==n&&n||(jQuery("legend",e).remove(),jQuery("#close_button",e).remove(),jQuery(".panel, .panel-body",e).removeClass("panel panel-default panel-body")),0==jQuery(t+" input[type=submit]",e).length?jQuery("#modal_window .modal-footer button[type=submit]").hide():(jQuery(t+" input[type=submit]",e).hide(),jQuery("#modal_window .modal-footer button[type=submit]").show()),jQuery(t,e).change(function(){var e=jQuery(this).find("input[type=submit]");0<e.length?(e.hide(),jQuery("#modal_window .modal-footer button[type=submit]").show()):jQuery("#modal_window .modal-footer button[type=submit]").hide()}),jQuery("#modal_window .modal-footer button[type=submit]").off("click"),jQuery("#modal_window .modal-footer button[type=submit]").on("click",function(){1!==jQuery(this).data("click_init")&&(jQuery(t+" input[type=submit]",e).click(),jQuery(this).data("click_init",1))}));var o="";jQuery(t+" a.btn",e).each(function(){o+="<a href="+jQuery(this).attr("href")+'><button type="button" class="'+jQuery(this).attr("class")+'">'+jQuery(this).html()+"</button></a> ",jQuery(this).remove()}),jQuery("#modal_window .modal-footer").prepend(o),0<jQuery(t+" #current_modal_title",e).length&&jQuery("#modal_window .modal-title").html(jQuery(t+" #current_modal_title",e).html())}function closeModalWindow(e,t){return void 0===e&&(e=window.document),"function"==typeof t&&jQuery("#modal_window").on("hidden.bs.modal",t),jQuery("#modal_window",e).modal("hide"),!1}function setModalIFrameUnload(e){var i=jQuery("#"+e);i[0].contentWindow.onunload=function(){var e=i.closest(".modal-body"),t=jQuery('<span class="loader_img absolute_center" title="'+evo_js_lang_loading+'"></span>');jQuery(e).prepend(t)}}function user_crop_avatar(e,t,i){void 0===i&&(i="avatar");var n=jQuery(window).width(),o=jQuery(window).height(),r=o/n,s=10,a=10;s=320<(n=750<n?750:n<320?320:n)-2*s?10:0,a=320<(o=750<o?750:o<320?320:o)-2*a?10:0;var l=750<n?750:n,c=750<o?750:o;openModalWindow('<span id="spinner" class="loader_img loader_user_report absolute_center" title="'+evo_js_lang_loading+'"></span>',l+"px",c+"px",!0,evo_js_lang_crop_profile_pic,[evo_js_lang_crop,"btn-primary"],!0);var u=jQuery("div.modal-dialog div.modal-body").length?jQuery("div.modal-dialog div.modal-body"):jQuery("#overlay_page"),d=parseInt(u.css("paddingTop")),h=parseInt(u.css("paddingRight")),p=parseInt(u.css("paddingBottom")),f=parseInt(u.css("paddingLeft")),g=(jQuery("div.modal-dialog div.modal-body").length?parseInt(u.css("min-height")):c-100)-(d+p),m={user_ID:e,file_ID:t,aspect_ratio:r,content_width:l-(f+h),content_height:g,display_mode:"js",crumb_user:evo_js_crumb_user};return evo_js_is_backoffice?(m.ctrl="user",m.user_tab="crop",m.user_tab_from=i):(m.blog=evo_js_blog,m.disp="avatar",m.action="crop"),jQuery.ajax({type:"POST",url:evo_js_user_crop_ajax_url,data:m,success:function(e){openModalWindow(e,l+"px",c+"px",!0,evo_js_lang_crop_profile_pic,[evo_js_lang_crop,"btn-primary"])}}),!1}function user_report(e,t){openModalWindow('<span class="loader_img loader_user_report absolute_center" title="'+evo_js_lang_loading+'"></span>',"auto","",!0,evo_js_lang_report_user,[evo_js_lang_report_this_user_now,"btn-danger"],!0);var i={action:"get_user_report_form",user_ID:e,crumb_user:evo_js_crumb_user};return evo_js_is_backoffice?(i.is_backoffice=1,i.user_tab=t):i.blog=evo_js_blog,jQuery.ajax({type:"POST",url:evo_js_user_report_ajax_url,data:i,success:function(e){openModalWindow(e,"auto","",!0,evo_js_lang_report_user,[evo_js_lang_report_this_user_now,"btn-danger"])}}),!1}function user_contact_groups(e){return openModalWindow('<span class="loader_img loader_user_report absolute_center" title="'+evo_js_lang_loading+'"></span>',"auto","",!0,evo_js_lang_contact_groups,evo_js_lang_save,!0),jQuery.ajax({type:"POST",url:evo_js_user_contact_groups_ajax_url,data:{action:"get_user_contact_form",blog:evo_js_blog,user_ID:e,crumb_user:evo_js_crumb_user},success:function(e){openModalWindow(e,"auto","",!0,evo_js_lang_contact_groups,evo_js_lang_save)}}),!1}function evo_rest_api_request(url,params_func,func_method,method){var params=params_func,func=func_method;"function"==typeof params_func&&(func=params_func,params={},method=func_method),void 0===method&&(method="GET"),jQuery.ajax({contentType:"application/json; charset=utf-8",type:method,url:restapi_url+url,data:params}).then(function(data,textStatus,jqXHR){"object"==typeof jqXHR.responseJSON&&eval(func)(data,textStatus,jqXHR)})}function evo_rest_api_print_error(e,t,i){if("string"!=typeof t&&void 0===t.code&&(t=void 0===t.responseJSON?t.statusText:t.responseJSON),void 0===t.code)var n='<h4 class="text-danger">Unknown error: '+t+"</h4>";else n='<h4 class="text-danger">'+t.message+"</h4>",i&&(n+="<div><b>Code:</b> "+t.code+"</div><div><b>Status:</b> "+t.data.status+"</div>");evo_rest_api_end_loading(e,n)}function evo_rest_api_start_loading(e){jQuery(e).addClass("evo_rest_api_loading").append('<div class="evo_rest_api_loader">loading...</div>')}function evo_rest_api_end_loading(e,t){jQuery(e).removeClass("evo_rest_api_loading").html(t).find(".evo_rest_api_loader").remove()}function evo_link_initialize_fieldset(i){if(0<jQuery("#"+i+"attachments_fieldset_table").length){var e=jQuery("#"+i+"attachments_fieldset_table").height();e=320<e?320:e<97?97:e,jQuery("#"+i+"attachments_fieldset_wrapper").height(e),jQuery("#"+i+"attachments_fieldset_wrapper").resizable({minHeight:80,handles:"s",zIndex:0,resize:function(e,t){jQuery("#"+i+"attachments_fieldset_wrapper").resizable("option","maxHeight",jQuery("#"+i+"attachments_fieldset_table").height()),evo_link_update_overlay(i)}}),jQuery(document).on("click","#"+i+"attachments_fieldset_wrapper .ui-resizable-handle",function(){var e=jQuery("#"+i+"attachments_fieldset_table").height(),t=jQuery("#"+i+"attachments_fieldset_wrapper").height()+80;jQuery("#"+i+"attachments_fieldset_wrapper").css("height",e<t?e:t),evo_link_update_overlay(i)})}}function evo_link_update_overlay(e){jQuery("#"+e+"attachments_fieldset_overlay").length&&jQuery("#"+e+"attachments_fieldset_overlay").css("height",jQuery("#"+e+"attachments_fieldset_wrapper").closest(".panel").height())}function evo_link_fix_wrapper_height(e){var t=void 0===e?"":e,i=jQuery("#"+t+"attachments_fieldset_table").height();jQuery("#"+t+"attachments_fieldset_wrapper").height()!=i&&jQuery("#"+t+"attachments_fieldset_wrapper").height(jQuery("#"+t+"attachments_fieldset_table").height())}function evo_link_change_position(i,e,t){var n=i,o=i.value,r=i.id.substr(17);return jQuery.get(e+"anon_async.php?action=set_object_link_position&link_ID="+r+"&link_position="+o+"&crumb_link="+t,{},function(e,t){"OK"==(e=ajax_debug_clear(e))?(evoFadeSuccess(jQuery(n).closest("tr")),jQuery(n).closest("td").removeClass("error"),"cover"!=o&&"background"!=o||jQuery("select[name=link_position][id!="+i.id+"] option[value=cover]:selected").each(function(){jQuery(this).parent().val("aftermore"),evoFadeSuccess(jQuery(this).closest("tr"))})):(jQuery(n).val(e),evoFadeFailure(jQuery(n).closest("tr")),jQuery(n.form).closest("td").addClass("error"))}),!1}function evo_link_insert_inline(e,t,i,n,o,r){if(null==n&&(n=0),void 0!==r){var s="["+e+":"+t;i.length&&(s+=":"+i),s+="]",void 0!==o&&!1!==o&&(s+=o+"[/"+e+"]");var a=jQuery("#display_position_"+t);0!=a.length&&"inline"!=a.val()?(deferInlineReminder=!0,evo_rest_api_request("links/"+t+"/position/inline",function(e){a.val("inline"),evoFadeSuccess(a.closest("tr")),a.closest("td").removeClass("error"),textarea_wrap_selection(r,s,"",n,window.document)},"POST"),deferInlineReminder=!1):textarea_wrap_selection(r,s,"",n,window.document)}}function evo_link_delete(n,o,r,e){return evo_rest_api_request("links/"+r,{action:e},function(e){if("item"==o||"comment"==o||"emailcampaign"==o||"message"==o){var t=window.b2evoCanvas;if(null!=t){var i=new RegExp("\\[(image|file|inline|video|audio|thumbnail):"+r+":?[^\\]]*\\]","ig");textarea_str_replace(t,i,"",window.document)}}jQuery(n).closest("tr").remove(),evo_link_fix_wrapper_height()},"DELETE"),!1}function evo_link_change_order(l,e,c){return evo_rest_api_request("links/"+e+"/"+c,function(e){var t=jQuery(l).closest("tr"),i=t.find("span[data-order]");if("move_up"==c){var n=i.attr("data-order"),o=jQuery(t.prev()).find("span[data-order]"),r=o.attr("data-order");t.prev().before(t),i.attr("data-order",r),o.attr("data-order",n)}else{n=i.attr("data-order");var s=jQuery(t.next()).find("span[data-order]"),a=s.attr("data-order");t.next().after(t),i.attr("data-order",a),s.attr("data-order",n)}evoFadeSuccess(t)},"POST"),!1}function evo_link_attach(e,t,i,n,o){return evo_rest_api_request("links",{action:"attach",type:e,object_ID:t,root:i,path:n},function(e){void 0===o&&(o="");var t=jQuery("#"+o+"attachments_fieldset_table .results table",window.parent.document),i=jQuery(e.list_content);t.replaceWith(jQuery("table",i)).promise().done(function(e){setTimeout(function(){window.parent.evo_link_fix_wrapper_height()},10)})}),!1}function evo_link_ajax_loading_overlay(e){var t=jQuery("#"+(void 0===e?"":e)+"attachments_fieldset_table"),i=!1;return 0==t.find(".results_ajax_loading").length&&(i=jQuery('<div class="results_ajax_loading"><div> </div></div>'),t.css("position","relative"),i.css({width:t.width(),height:t.height()}),t.append(i)),i}function evo_link_refresh_list(e,t,i,n){var o=void 0===n?"":n,r=evo_link_ajax_loading_overlay(o);return void 0===i&&(i="refresh"),r&&evo_rest_api_request("links",{action:i,type:e.toLowerCase(),object_ID:t,prefix:o},function(e){jQuery("#"+o+"attachments_fieldset_table").html(e.html),window.evo_init_dragdrop_button_config&&window.evo_init_dragdrop_button_config["fieldset_"+o]&&init_uploader(window.evo_init_dragdrop_button_config["fieldset_"+o]),evo_link_fix_wrapper_height(o),r.remove()}),!1}function evo_link_sort_list(e){var i,n=void 0===e?"":e,o=jQuery("#"+n+"attachments_fieldset_table tbody.filelist_tbody tr");o.sort(function(e,t){var i=parseInt(jQuery("span[data-order]",e).attr("data-order")),n=parseInt(jQuery("span[data-order]",t).attr("data-order"));return(i=i||o.length)<(n=n||o.length)?-1:n<i?1:0}),$.each(o,function(e,t){0===e?jQuery(t).prependTo("#"+n+"attachments_fieldset_table tbody.filelist_tbody"):jQuery(t).insertAfter(i),i=t})}function ajax_debug_clear(e){return e=(e=e.replace(/<!-- Ajax response end -->/,"")).replace(/(<div class="jslog">[\s\S]*)/i,""),jQuery.trim(e)}function ajax_response_is_correct(e){return!!e.match(/<!-- Ajax response end -->/)&&""!=ajax_debug_clear(e)}jQuery(document).ready(function(){jQuery("img.loadimg").each(function(){jQuery(this).prop("complete")?(jQuery(this).removeClass("loadimg"),""==jQuery(this).attr("class")&&jQuery(this).removeAttr("class")):jQuery(this).on("load",function(){jQuery(this).removeClass("loadimg"),""==jQuery(this).attr("class")&&jQuery(this).removeAttr("class")})})}),jQuery(document).on("click","a.evo_post_flag_btn",function(){var t=jQuery(this),e=parseInt(t.data("id"));return 0<e&&(t.data("status","inprogress"),jQuery("span",jQuery(this)).addClass("fa-x--hover"),evo_rest_api_request("collections/"+t.data("coll")+"/items/"+e+"/flag",function(e){e.flag?(t.find("span:first").show(),t.find("span:last").hide()):(t.find("span:last").show(),t.find("span:first").hide()),jQuery("span",t).removeClass("fa-x--hover"),setTimeout(function(){t.removeData("status")},500)},"PUT")),!1}),jQuery(document).on("mouseover","a.evo_post_flag_btn",function(){"inprogress"!=jQuery(this).data("status")&&jQuery("span",jQuery(this)).addClass("fa-x--hover")}),jQuery(document).on("keydown","textarea, input",function(e){!e.metaKey&&!e.ctrlKey||13!=e.keyCode&&10!=e.keyCode||jQuery(this).closest("form").submit()}),jQuery(document).on("click","button[data-checkbox-control]",function(){var e=!0;switch(jQuery(this).data("checkbox-control-type")){case"uncheck":e=!1;break;case"reverse":e=function(e,t){return!t}}("$all$"==jQuery(this).data("checkbox-control")?jQuery(this).closest("form").find("input[type=checkbox]"):jQuery('input[type=checkbox][name="'+jQuery(this).data("checkbox-control")+'[]"]')).prop("checked",e)}),jQuery(document).on("mouseover mouseout","button[data-checkbox-control]",function(e){var t=jQuery(this).data("checkbox-control-type");("$all$"==jQuery(this).data("checkbox-control")?jQuery(this).closest("form").find("input[type=checkbox]"):jQuery('input[type=checkbox][name="'+jQuery(this).data("checkbox-control")+'[]"]')).each(function(){"mouseout"==e.type?jQuery(this).unwrap(".checkbox_surround"):0==jQuery(this).parent("span.checkbox_surround").length&&("check"==t&&!jQuery(this).prop("checked")||"uncheck"==t&&jQuery(this).prop("checked")||"reverse"==t)&&jQuery(this).wrap('<span class="checkbox_surround"></span>')})});