if(!function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(t.document)return e(t);throw new Error("jQuery requires a window with a document")}:e(t)}("undefined"!=typeof window?window:this,function(C,P){function H(t,e){return e.toUpperCase()}var c=[],f=C.document,u=c.slice,R=c.concat,O=c.push,Q=c.indexOf,F={},B=F.toString,g=F.hasOwnProperty,m={},t="1.12.4",w=function(t,e){return new w.fn.init(t,e)},W=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,U=/^-ms-/,q=/-([\da-z])/gi;function z(t){var e=!!t&&"length"in t&&t.length,n=w.type(t);return"function"!==n&&!w.isWindow(t)&&("array"===n||0===e||"number"==typeof e&&0>10|55296,1023&i|56320)}function H(){w()}var t,f,y,o,R,g,O,Q,C,d,l,w,x,e,S,m,i,r,$,T="sizzle"+ +new Date,b=P.document,k=0,F=0,B=lt(),W=lt(),v=lt(),U=function(t,e){return t===e&&(l=!0),0},q={}.hasOwnProperty,n=[],z=n.pop,V=n.push,_=n.push,G=n.slice,D=function(t,e){for(var n=0,i=t.length;n+~]|"+a+")"+a+"*"),et=new RegExp("="+a+"*([^\\]'\"]*?)"+a+"*\\]","g"),nt=new RegExp(X),it=new RegExp("^"+s+"$"),h={ID:new RegExp("^#("+s+")"),CLASS:new RegExp("^\\.("+s+")"),TAG:new RegExp("^("+s+"|[*])"),ATTR:new RegExp("^"+J),PSEUDO:new RegExp("^"+X),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+a+"*(even|odd|(([+-]|)(\\d*)n|)"+a+"*(?:([+-]|)"+a+"*(\\d+)|))"+a+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+a+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+a+"*((?:-\\d)?\\d*)"+a+"*\\)|)(?=[^-]|$)","i")},rt=/^(?:input|select|textarea|button)$/i,ot=/^h\d$/i,u=/^[^{]+\{\s*\[native \w/,at=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,st=/[+~]/,dt=/'|\\/g,p=new RegExp("\\\\([\\da-f]{1,6}"+a+"?|("+a+")|.)","ig");try{_.apply(n=G.call(b.childNodes),b.childNodes),n[b.childNodes.length].nodeType}catch(t){_={apply:n.length?function(t,e){V.apply(t,G.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function I(t,e,n,i){var r,o,a,s,d,l,u,c,h=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!i&&((e?e.ownerDocument||e:b)!==x&&w(e),e=e||x,S)){if(11!==p&&(l=at.exec(t)))if(r=l[1]){if(9===p){if(!(a=e.getElementById(r)))return n;if(a.id===r)return n.push(a),n}else if(h&&(a=h.getElementById(r))&&$(e,a)&&a.id===r)return n.push(a),n}else{if(l[2])return _.apply(n,e.getElementsByTagName(t)),n;if((r=l[3])&&f.getElementsByClassName&&e.getElementsByClassName)return _.apply(n,e.getElementsByClassName(r)),n}if(f.qsa&&!v[t+" "]&&(!m||!m.test(t))){if(1!==p)h=e,c=t;else if("object"!==e.nodeName.toLowerCase()){for((s=e.getAttribute("id"))?s=s.replace(dt,"\\$&"):e.setAttribute("id",s=T),o=(u=g(t)).length,d=it.test(s)?"#"+s:"[id='"+s+"']";o--;)u[o]=d+" "+E(u[o]);c=u.join(","),h=st.test(t)&&ht(e.parentNode)||e}if(c)try{return _.apply(n,h.querySelectorAll(c)),n}catch(t){}finally{s===T&&e.removeAttribute("id")}}}return Q(t.replace(j,"$1"),e,n,i)}function lt(){var n=[];function i(t,e){return n.push(t+" ")>y.cacheLength&&delete i[n.shift()],i[t+" "]=e}return i}function A(t){return t[T]=!0,t}function L(t){var e=x.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e)}}function ut(t,e){for(var n=t.split("|"),i=n.length;i--;)y.attrHandle[n[i]]=e}function ct(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||1<<31)-(~t.sourceIndex||1<<31);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function N(a){return A(function(o){return o=+o,A(function(t,e){for(var n,i=a([],t.length,o),r=i.length;r--;)t[n=i[r]]&&(t[n]=!(e[n]=t[n]))})})}function ht(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in f=I.support={},R=I.isXML=function(t){t=t&&(t.ownerDocument||t).documentElement;return!!t&&"HTML"!==t.nodeName},w=I.setDocument=function(t){var t=t?t.ownerDocument||t:b;return t!==x&&9===t.nodeType&&t.documentElement&&(e=(x=t).documentElement,S=!R(x),(t=x.defaultView)&&t.top!==t&&(t.addEventListener?t.addEventListener("unload",H,!1):t.attachEvent&&t.attachEvent("onunload",H)),f.attributes=L(function(t){return t.className="i",!t.getAttribute("className")}),f.getElementsByTagName=L(function(t){return t.appendChild(x.createComment("")),!t.getElementsByTagName("*").length}),f.getElementsByClassName=u.test(x.getElementsByClassName),f.getById=L(function(t){return e.appendChild(t).id=T,!x.getElementsByName||!x.getElementsByName(T).length}),f.getById?(y.find.ID=function(t,e){if(void 0!==e.getElementById&&S)return(e=e.getElementById(t))?[e]:[]},y.filter.ID=function(t){var e=t.replace(p,c);return function(t){return t.getAttribute("id")===e}}):(delete y.find.ID,y.filter.ID=function(t){var e=t.replace(p,c);return function(t){t=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return t&&t.value===e}}),y.find.TAG=f.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):f.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],r=0,o=e.getElementsByTagName(t);if("*"!==t)return o;for(;n=o[r++];)1===n.nodeType&&i.push(n);return i},y.find.CLASS=f.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&S)return e.getElementsByClassName(t)},i=[],m=[],(f.qsa=u.test(x.querySelectorAll))&&(L(function(t){e.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+a+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\["+a+"*(?:value|"+K+")"),t.querySelectorAll("[id~="+T+"-]").length||m.push("~="),t.querySelectorAll(":checked").length||m.push(":checked"),t.querySelectorAll("a#"+T+"+*").length||m.push(".#.+[+~]")}),L(function(t){var e=x.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name"+a+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")})),(f.matchesSelector=u.test(r=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.msMatchesSelector))&&L(function(t){f.disconnectedMatch=r.call(t,"div"),r.call(t,"[s!='']:x"),i.push("!=",X)}),m=m.length&&new RegExp(m.join("|")),i=i.length&&new RegExp(i.join("|")),t=u.test(e.compareDocumentPosition),$=t||u.test(e.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,e=e&&e.parentNode;return t===e||!(!e||1!==e.nodeType||!(n.contains?n.contains(e):t.compareDocumentPosition&&16&t.compareDocumentPosition(e)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},U=t?function(t,e){if(t===e)return l=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!f.sortDetached&&e.compareDocumentPosition(t)===n?t===x||t.ownerDocument===b&&$(b,t)?-1:e===x||e.ownerDocument===b&&$(b,e)?1:d?D(d,t)-D(d,e):0:4&n?-1:1)}:function(t,e){if(t===e)return l=!0,0;var n,i=0,r=t.parentNode,o=e.parentNode,a=[t],s=[e];if(!r||!o)return t===x?-1:e===x?1:r?-1:o?1:d?D(d,t)-D(d,e):0;if(r===o)return ct(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?ct(a[i],s[i]):a[i]===b?-1:s[i]===b?1:0}),x},I.matches=function(t,e){return I(t,null,null,e)},I.matchesSelector=function(t,e){if((t.ownerDocument||t)!==x&&w(t),e=e.replace(et,"='$1']"),f.matchesSelector&&S&&!v[e+" "]&&(!i||!i.test(e))&&(!m||!m.test(e)))try{var n=r.call(t,e);if(n||f.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(p,c),t[3]=(t[3]||t[4]||t[5]||"").replace(p,c),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||I.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&I.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return h.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&nt.test(n)&&(e=g(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(p,c).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=B[t+" "];return e||(e=new RegExp("(^|"+a+")"+t+"("+a+"|$)"))&&B(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(e,n,i){return function(t){t=I.attr(t,e);return null==t?"!="===n:!n||(t+="","="===n?t===i:"!="===n?t!==i:"^="===n?i&&0===t.indexOf(i):"*="===n?i&&-1(?:<\/\1>|)$/,J=/^.[^:#\[\.,]*$/;function X(t,n,i){if(w.isFunction(n))return w.grep(t,function(t,e){return!!n.call(t,e,t)!==i});if(n.nodeType)return w.grep(t,function(t){return t===n!==i});if("string"==typeof n){if(J.test(n))return w.filter(n,t,i);n=w.filter(n,t)}return w.grep(t,function(t){return-1)[^>]*|#([\w-]*))$/,tt=((w.fn.init=function(t,e,n){if(!t)return this;if(n=n||Z,"string"!=typeof t)return t.nodeType?(this.context=this[0]=t,this.length=1,this):w.isFunction(t)?void 0!==n.ready?n.ready(t):t(w):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),w.makeArray(t,this));if(!(i="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&3<=t.length?[null,t,null]:Y.exec(t))||!i[1]&&e)return(!e||e.jquery?e||n:this.constructor(e)).find(t);if(i[1]){if(e=e instanceof w?e[0]:e,w.merge(this,w.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:f,!0)),K.test(i[1])&&w.isPlainObject(e))for(var i in e)w.isFunction(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}if((n=f.getElementById(i[2]))&&n.parentNode){if(n.id!==i[2])return Z.find(t);this.length=1,this[0]=n}return this.context=f,this.selector=t,this}).prototype=w.fn,Z=w(f),/^(?:parents|prev(?:Until|All))/),et={children:!0,contents:!0,next:!0,prev:!0};function nt(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}w.fn.extend({has:function(t){var e,n=w(t,this),i=n.length;return this.filter(function(){for(e=0;e
a",m.leadingWhitespace=3===_.firstChild.nodeType,m.tbody=!_.getElementsByTagName("tbody").length,m.htmlSerialize=!!_.getElementsByTagName("link").length,m.html5Clone="<:nav>"!==f.createElement("nav").cloneNode(!0).outerHTML,N.type="checkbox",N.checked=!0,k.appendChild(N),m.appendChecked=N.checked,_.innerHTML="",m.noCloneChecked=!!_.cloneNode(!0).lastChild.defaultValue,k.appendChild(_),(N=f.createElement("input")).setAttribute("type","radio"),N.setAttribute("checked","checked"),N.setAttribute("name","t"),_.appendChild(N),m.checkClone=_.cloneNode(!0).cloneNode(!0).lastChild.checked,m.noCloneEvent=!!_.addEventListener,_[w.expando]=1,m.attributes=!_.getAttribute(w.expando);var b={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:m.htmlSerialize?[0,"",""]:[1,"X
","
"]};function v(t,e){var n,i,r=0,o=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):void 0;if(!o)for(o=[],n=t.childNodes||t;null!=(i=n[r]);r++)!e||w.nodeName(i,e)?o.push(i):w.merge(o,v(i,e));return void 0===e||e&&w.nodeName(t,e)?w.merge([t],o):o}function Ct(t,e){for(var n,i=0;null!=(n=t[i]);i++)w._data(n,"globalEval",!e||w._data(e[i],"globalEval"))}b.optgroup=b.option,b.tbody=b.tfoot=b.colgroup=b.caption=b.thead,b.th=b.td;var wt=/<|&#?\w+;/,xt=/"!==c[1]||xt.test(a)?0:d:d.firstChild)&&a.childNodes.length;o--;)w.nodeName(u=a.childNodes[o],"tbody")&&!u.childNodes.length&&a.removeChild(u);for(w.merge(f,d.childNodes),d.textContent="";d.firstChild;)d.removeChild(d.firstChild);d=p.lastChild}else f.push(e.createTextNode(a));for(d&&p.removeChild(d),m.appendChecked||w.grep(v(f,"input"),St),g=0;a=f[g++];)if(i&&-1]","i"),Ot=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Qt=/\s*$/g,Ut=yt(f).appendChild(f.createElement("div"));function qt(t,e){return w.nodeName(t,"table")&&w.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function zt(t){return t.type=(null!==w.find.attr(t,"type"))+"/"+t.type,t}function Vt(t){var e=Bt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function Gt(t,e){if(1===e.nodeType&&w.hasData(t)){var n,i,r,t=w._data(t),o=w._data(e,t),a=t.events;if(a)for(n in delete o.handle,o.events={},a)for(i=0,r=a[n].length;i")},clone:function(t,e,n){var i,r,o,a,s,d=w.contains(t.ownerDocument,t);if(m.html5Clone||w.isXMLDoc(t)||!Rt.test("<"+t.nodeName+">")?o=t.cloneNode(!0):(Ut.innerHTML=t.outerHTML,Ut.removeChild(o=Ut.firstChild)),!(m.noCloneEvent&&m.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||w.isXMLDoc(t)))for(i=v(o),s=v(t),a=0;null!=(r=s[a]);++a)if(i[a]){c=u=l=p=h=void 0;var l,u,c,h=r,p=i[a];if(1===p.nodeType){if(l=p.nodeName.toLowerCase(),!m.noCloneEvent&&p[w.expando]){for(u in(c=w._data(p)).events)w.removeEvent(p,u,c.handle);p.removeAttribute(w.expando)}"script"===l&&p.text!==h.text?(zt(p).text=h.text,Vt(p)):"object"===l?(p.parentNode&&(p.outerHTML=h.outerHTML),m.html5Clone&&h.innerHTML&&!w.trim(p.innerHTML)&&(p.innerHTML=h.innerHTML)):"input"===l&>.test(h.type)?(p.defaultChecked=p.checked=h.checked,p.value!==h.value&&(p.value=h.value)):"option"===l?p.defaultSelected=p.selected=h.defaultSelected:"input"!==l&&"textarea"!==l||(p.defaultValue=h.defaultValue)}}if(e)if(n)for(s=s||v(t),i=i||v(o),a=0;null!=(r=s[a]);a++)Gt(r,i[a]);else Gt(t,o);return 0<(i=v(o,"script")).length&&Ct(i,!d&&v(t,"script")),i=s=r=null,o},cleanData:function(t,e){for(var n,i,r,o,a=0,s=w.expando,d=w.cache,l=m.attributes,u=w.event.special;null!=(n=t[a]);a++)if((e||$(n))&&(o=(r=n[s])&&d[r])){if(o.events)for(i in o.events)u[i]?w.event.remove(n,i):w.removeEvent(n,i,o.handle);d[r]&&(delete d[r],l||void 0===n.removeAttribute?n[s]=void 0:n.removeAttribute(s),c.push(r))}}}),w.fn.extend({domManip:y,detach:function(t){return Kt(this,t,!0)},remove:function(t){return Kt(this,t)},text:function(t){return h(this,function(t){return void 0===t?w.text(this):this.empty().append((this[0]&&this[0].ownerDocument||f).createTextNode(t))},null,t,arguments.length)},append:function(){return y(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||qt(this,t).appendChild(t)})},prepend:function(){return y(this,arguments,function(t){var e;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(e=qt(this,t)).insertBefore(t,e.firstChild)})},before:function(){return y(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return y(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodeType&&w.cleanData(v(t,!1));t.firstChild;)t.removeChild(t.firstChild);t.options&&w.nodeName(t,"select")&&(t.options.length=0)}return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return w.clone(this,t,e)})},html:function(t){return h(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t)return 1===e.nodeType?e.innerHTML.replace(Ht,""):void 0;if("string"==typeof t&&!Qt.test(t)&&(m.htmlSerialize||!Rt.test(t))&&(m.leadingWhitespace||!bt.test(t))&&!b[(mt.exec(t)||["",""])[1].toLowerCase()]){t=w.htmlPrefilter(t);try{for(;n")).appendTo(e.documentElement))[0].contentWindow||Jt[0].contentDocument).document).write(),e.close(),n=Zt(t,e),Jt.detach()),Xt[t]=n),n}function te(t,e,n,i){var r,o={};for(r in e)o[r]=t.style[r],t.style[r]=e[r];for(r in n=n.apply(t,i||[]),e)t.style[r]=o[r];return n}var n,ee,ne,ie,re,oe,ae,o,se=/^margin/,de=new RegExp("^("+t+")(?!px)[a-z%]+$","i"),le=f.documentElement;function a(){var t,e=f.documentElement;e.appendChild(ae),o.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",n=ne=oe=!1,ee=re=!0,C.getComputedStyle&&(t=C.getComputedStyle(o),n="1%"!==(t||{}).top,oe="2px"===(t||{}).marginLeft,ne="4px"===(t||{width:"4px"}).width,o.style.marginRight="50%",ee="4px"===(t||{marginRight:"4px"}).marginRight,(t=o.appendChild(f.createElement("div"))).style.cssText=o.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",o.style.width="1px",re=!parseFloat((C.getComputedStyle(t)||{}).marginRight),o.removeChild(t)),o.style.display="none",(ie=0===o.getClientRects().length)&&(o.style.display="",o.innerHTML="
t
",o.childNodes[0].style.borderCollapse="separate",(t=o.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(ie=0===t[0].offsetHeight)&&(t[0].style.display="",t[1].style.display="none",ie=0===t[0].offsetHeight)),e.removeChild(ae)}ae=f.createElement("div"),(o=f.createElement("div")).style&&(o.style.cssText="float:left;opacity:.5",m.opacity="0.5"===o.style.opacity,m.cssFloat=!!o.style.cssFloat,o.style.backgroundClip="content-box",o.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===o.style.backgroundClip,(ae=f.createElement("div")).style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",o.innerHTML="",ae.appendChild(o),m.boxSizing=""===o.style.boxSizing||""===o.style.MozBoxSizing||""===o.style.WebkitBoxSizing,w.extend(m,{reliableHiddenOffsets:function(){return null==n&&a(),ie},boxSizingReliable:function(){return null==n&&a(),ne},pixelMarginRight:function(){return null==n&&a(),ee},pixelPosition:function(){return null==n&&a(),n},reliableMarginRight:function(){return null==n&&a(),re},reliableMarginLeft:function(){return null==n&&a(),oe}}));var l,p,ue=/^(top|right|bottom|left)$/;function ce(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}C.getComputedStyle?(l=function(t){var e=t.ownerDocument.defaultView;return(e=e&&e.opener?e:C).getComputedStyle(t)},p=function(t,e,n){var i,r,o=t.style;return""!==(r=(n=n||l(t))?n.getPropertyValue(e)||n[e]:void 0)&&void 0!==r||w.contains(t.ownerDocument,t)||(r=w.style(t,e)),n&&!m.pixelMarginRight()&&de.test(r)&&se.test(e)&&(t=o.width,e=o.minWidth,i=o.maxWidth,o.minWidth=o.maxWidth=o.width=r,r=n.width,o.width=t,o.minWidth=e,o.maxWidth=i),void 0===r?r:r+""}):le.currentStyle&&(l=function(t){return t.currentStyle},p=function(t,e,n){var i,r,o,a=t.style;return null==(n=(n=n||l(t))?n[e]:void 0)&&a&&a[e]&&(n=a[e]),de.test(n)&&!ue.test(e)&&(i=a.left,(o=(r=t.runtimeStyle)&&r.left)&&(r.left=t.currentStyle.left),a.left="fontSize"===e?"1em":n,n=a.pixelLeft+"px",a.left=i,o&&(r.left=o)),void 0===n?n:n+""||"auto"});var he=/alpha\([^)]*\)/i,pe=/opacity\s*=\s*([^)]*)/i,fe=/^(none|table(?!-c[ea]).+)/,ge=new RegExp("^("+t+")(.*)$","i"),me={position:"absolute",visibility:"hidden",display:"block"},$e={letterSpacing:"0",fontWeight:"400"},be=["Webkit","O","Moz","ms"],ve=f.createElement("div").style;function ye(t){if(t in ve)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=be.length;n--;)if((t=be[n]+e)in ve)return t}function Ce(t,e){for(var n,i,r,o=[],a=0,s=t.length;a
a",M=N.getElementsByTagName("a")[0],k.setAttribute("type","checkbox"),N.appendChild(k),(M=N.getElementsByTagName("a")[0]).style.cssText="top:1px",m.getSetAttribute="t"!==N.className,m.style=/top/.test(M.getAttribute("style")),m.hrefNormalized="/a"===M.getAttribute("href"),m.checkOn=!!k.value,m.optSelected=t.selected,m.enctype=!!f.createElement("form").enctype,_.disabled=!0,m.optDisabled=!t.disabled,(k=f.createElement("input")).setAttribute("value",""),m.input=""===k.getAttribute("value"),k.value="t",k.setAttribute("type","radio"),m.radioValue="t"===k.value;var Ae=/\r/g,Le=/[\x20\t\r\n\f]+/g;w.fn.extend({val:function(e){var n,t,i,r=this[0];return arguments.length?(i=w.isFunction(e),this.each(function(t){1===this.nodeType&&(null==(t=i?e.call(this,t,w(this).val()):e)?t="":"number"==typeof t?t+="":w.isArray(t)&&(t=w.map(t,function(t){return null==t?"":t+""})),(n=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,t,"value")||(this.value=t))})):r?(n=w.valHooks[r.type]||w.valHooks[r.nodeName.toLowerCase()])&&"get"in n&&void 0!==(t=n.get(r,"value"))?t:"string"==typeof(t=r.value)?t.replace(Ae,""):null==t?"":t:void 0}}),w.extend({valHooks:{option:{get:function(t){var e=w.find.attr(t,"value");return null!=e?e:w.trim(w.text(t)).replace(Le," ")}},select:{get:function(t){for(var e,n=t.options,i=t.selectedIndex,r="select-one"===t.type||i<0,o=r?null:[],a=r?i+1:n.length,s=i<0?a:r?i:0;s").append(w.parseHTML(t)).find(i):t)}).always(n&&function(t,e){a.each(function(){n.apply(this,o||[t.responseText,e,t])})}),this},w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){w.fn[e]=function(t){return this.on(e,t)}}),w.expr.filters.animated=function(e){return w.grep(w.timers,function(t){return e===t.elem}).length},w.offset={setOffset:function(t,e,n){var i,r,o,a,s=w.css(t,"position"),d=w(t),l={};"static"===s&&(t.style.position="relative"),o=d.offset(),i=w.css(t,"top"),a=w.css(t,"left"),s=("absolute"===s||"fixed"===s)&&-1(window.innerHeight||document.documentElement.clientHeight),e.right=t.right>(window.innerWidth||document.documentElement.clientWidth),e.any=e.top||e.left||e.bottom||e.right,e.any}!function(){"use strict";var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||3this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):n==t?this.pause().cycle():this.slide(ndocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},a.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},a.prototype.checkScrollbar=function(){var t,e=window.innerWidth;e||(e=(t=document.documentElement.getBoundingClientRect()).right-Math.abs(t.left)),this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:t},d.prototype.init=function(t,e,n){if(this.enabled=!0,this.type=t,this.$element=p(e),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&p(document).find(p.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 i=this.options.trigger.split(" "),r=i.length;r--;){var o,a=i[r];"click"==a?this.$element.on("click."+this.type,this.options.selector,p.proxy(this.toggle,this)):"manual"!=a&&(o="hover"==a?"mouseleave":"focusout",this.$element.on(("hover"==a?"mouseenter":"focusin")+"."+this.type,this.options.selector,p.proxy(this.enter,this)),this.$element.on(o+"."+this.type,this.options.selector,p.proxy(this.leave,this)))}this.options.selector?this._options=p.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},d.prototype.getDefaults=function(){return d.DEFAULTS},d.prototype.getOptions=function(t){var e,n=this.$element.data();for(e in n)n.hasOwnProperty(e)&&-1!==p.inArray(e,i)&&delete n[e];return(t=p.extend({},this.getDefaults(),n,t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t.sanitize&&(t.template=r(t.template,t.whiteList,t.sanitizeFn)),t},d.prototype.getDelegateOptions=function(){var n={},i=this.getDefaults();return this._options&&p.each(this._options,function(t,e){i[t]!=e&&(n[t]=e)}),n},d.prototype.enter=function(t){var e=t instanceof this.constructor?t:p(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),p(t.currentTarget).data("bs."+this.type,e)),t instanceof p.Event&&(e.inState["focusin"==t.type?"focus":"hover"]=!0),e.tip().hasClass("in")||"in"==e.hoverState)e.hoverState="in";else{if(clearTimeout(e.timeout),e.hoverState="in",!e.options.delay||!e.options.delay.show)return e.show();e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)}},d.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},d.prototype.leave=function(t){var e=t instanceof this.constructor?t:p(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),p(t.currentTarget).data("bs."+this.type,e)),t instanceof p.Event&&(e.inState["focusout"==t.type?"focus":"hover"]=!1),!e.isInStateTrue()){if(clearTimeout(e.timeout),e.hoverState="out",!e.options.delay||!e.options.delay.hide)return e.hide();e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)}},d.prototype.show=function(){var e,t,n,i,r,o,a,s=p.Event("show.bs."+this.type);this.hasContent()&&this.enabled&&(this.$element.trigger(s),r=p.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),!s.isDefaultPrevented()&&r&&(s=(e=this).tip(),r=this.getUID(this.type),this.setContent(),s.attr("id",r),this.$element.attr("aria-describedby",r),this.options.animation&&s.addClass("fade"),r="function"==typeof this.options.placement?this.options.placement.call(this,s[0],this.$element[0]):this.options.placement,(a=(t=/\s?auto?\s?/i).test(r))&&(r=r.replace(t,"")||"top"),s.detach().css({top:0,left:0,display:"block"}).addClass(r).data("bs."+this.type,this),this.options.container?s.appendTo(p(document).find(this.options.container)):s.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type),t=this.getPosition(),n=s[0].offsetWidth,i=s[0].offsetHeight,a&&(a=r,o=this.getPosition(this.$viewport),r="bottom"==r&&t.bottom+i>o.bottom?"top":"top"==r&&t.top-io.width?"left":"left"==r&&t.left-na.top+a.height&&(r.top=a.top+a.height-i)):(t=e.left-o,i=e.left+o+n,ta.right&&(r.left=a.left+a.width-i)),r},d.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},d.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},d.prototype.tip=function(){if(this.$tip||(this.$tip=p(this.options.template),1==this.$tip.length))return this.$tip;throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!")},d.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},d.prototype.enable=function(){this.enabled=!0},d.prototype.disable=function(){this.enabled=!1},d.prototype.toggleEnabled=function(){this.enabled=!this.enabled},d.prototype.toggle=function(t){var e=this;t&&!(e=p(t.currentTarget).data("bs."+this.type))&&(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),p(t.currentTarget).data("bs."+this.type,e)),t?(e.inState.click=!e.inState.click,e.isInStateTrue()?e.enter(e):e.leave(e)):e.tip().hasClass("in")?e.leave(e):e.enter(e)},d.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})},d.prototype.sanitizeHtml=function(t){return r(t,this.options.whiteList,this.options.sanitizeFn)};var e=p.fn.tooltip;p.fn.tooltip=function(i){return this.each(function(){var t=p(this),e=t.data("bs.tooltip"),n="object"==typeof i&&i;!e&&/destroy|hide/.test(i)||(e||t.data("bs.tooltip",e=new d(this,n)),"string"==typeof i&&e[i]())})},p.fn.tooltip.Constructor=d,p.fn.tooltip.noConflict=function(){return p.fn.tooltip=e,this}}(jQuery),function(r){"use strict";function o(t,e){this.init("popover",t,e)}if(!r.fn.tooltip)throw new Error("Popover requires tooltip.js");o.VERSION="3.4.1",o.DEFAULTS=r.extend({},r.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),((o.prototype=r.extend({},r.fn.tooltip.Constructor.prototype)).constructor=o).prototype.getDefaults=function(){return o.DEFAULTS},o.prototype.setContent=function(){var t,e=this.tip(),n=this.getTitle(),i=this.getContent();this.options.html?(t=typeof i,this.options.sanitize&&(n=this.sanitizeHtml(n),"string"==t&&(i=this.sanitizeHtml(i))),e.find(".popover-title").html(n),e.find(".popover-content").children().detach().end()["string"==t?"html":"append"](i)):(e.find(".popover-title").text(n),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()},o.prototype.hasContent=function(){return this.getTitle()||this.getContent()},o.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},o.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var t=r.fn.popover;r.fn.popover=function(i){return this.each(function(){var t=r(this),e=t.data("bs.popover"),n="object"==typeof i&&i;!e&&/destroy|hide/.test(i)||(e||t.data("bs.popover",e=new o(this,n)),"string"==typeof i&&e[i]())})},r.fn.popover.Constructor=o,r.fn.popover.noConflict=function(){return r.fn.popover=t,this}}(jQuery),function(r){"use strict";function i(t,e){this.$body=r(document.body),this.$scrollElement=r(t).is(document.body)?r(window):r(t),this.options=r.extend({},i.DEFAULTS,e),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 e(n){return this.each(function(){var t=r(this),e=t.data("bs.scrollspy");e||t.data("bs.scrollspy",e=new i(this,"object"==typeof n&&n)),"string"==typeof n&&e[n]()})}i.VERSION="3.4.1",i.DEFAULTS={offset:10},i.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},i.prototype.refresh=function(){var t=this,n="offset",i=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),r.isWindow(this.$scrollElement[0])||(n="position",i=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=r(this),t=t.data("target")||t.attr("href"),e=/^#./.test(t)&&r(t);return e&&e.length&&e.is(":visible")?[[e[n]().top+i,t]]:null}).sort(function(t,e){return t[0]-e[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},i.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),r=this.offsets,o=this.targets,a=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),i<=e)return a!=(t=o[o.length-1])&&this.activate(t);if(a&&e=r[t]&&(void 0===r[t+1]||e .active"),r=n&&a.support.transition&&(i.length&&i.hasClass("fade")||!!e.find("> .fade").length);function o(){i.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),r?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),n&&n()}i.length&&r?i.one("bsTransitionEnd",o).emulateTransitionEnd(s.TRANSITION_DURATION):o(),i.removeClass("in")};function t(t){t.preventDefault(),e.call(a(this),"show")}var n=a.fn.tab;a.fn.tab=e,a.fn.tab.Constructor=s,a.fn.tab.noConflict=function(){return a.fn.tab=n,this};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',t).on("click.bs.tab.data-api",'[data-toggle="pill"]',t)}(jQuery),function(a){"use strict";function s(t,e){this.options=a.extend({},s.DEFAULTS,e),e=this.options.target===s.DEFAULTS.target?a(this.options.target):a(document).find(this.options.target),this.$target=e.on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(t),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()}function n(n){return this.each(function(){var t=a(this),e=t.data("bs.affix");e||t.data("bs.affix",e=new s(this,"object"==typeof n&&n)),"string"==typeof n&&e[n]()})}s.VERSION="3.4.1",s.RESET="affix affix-top affix-bottom",s.DEFAULTS={offset:0,target:window},s.prototype.getState=function(t,e,n,i){var r=this.$target.scrollTop(),o=this.$element.offset(),a=this.$target.height();if(null!=n&&"top"==this.affixed)return r")[A]("ifCreated").parent().append(u.insert),o=$('').css(e).appendTo(l),i.data(b,{o:u,s:i.attr("style")}).css(n),u.inheritClass&&l[j](r.className||""),u.inheritID&&t&&l.attr("id",b+"-"+t),"static"==l.css("position")&&l.css("position","relative"),E(i,!0,T),a.length&&a.on(_+".i mouseover.i mouseout.i "+D,function(t){var e=t[k],n=$(this);if(!r[x]){if(e==_){if($(t.target).is("a"))return;E(i,!1,!0)}else f&&(/ut|nd/.test(e)?(l[I](c),n[I](g)):(l[j](c),n[j](g)));if(!N)return!1;t.stopPropagation()}}),i.on(_+".i focus.i blur.i keyup.i keydown.i keypress.i",function(t){var e=t[k],t=t.keyCode;return e!=_&&("keydown"==e&&32==t?(r[k]==C&&r[w]||(r[w]?P:M)(i,w),!1):void("keyup"==e&&r[k]==C?r[w]||M(i,w):/us|ur/.test(e)&&l["blur"==e?I:j](h)))}),o.on(_+" mousedown mouseup mouseover mouseout "+D,function(t){var e=t[k],n=/wn|up/.test(e)?p:c;if(!r[x]){if(e==_?E(i,!1,!0):(/wn|er|in/.test(e)?l[j](n):l[I](n+" "+p),a.length&&f&&n==c&&a[/ut|nd/.test(e)?I:j](g)),!N)return!1;t.stopPropagation()}})}))}}(window.jQuery||window.Zepto),function(t){"object"!=typeof t.WHMCS&&(t.WHMCS={hasModule:function(t){return typeof WHMCS[t]!=="undefined"&&Object.getOwnPropertyNames(WHMCS[t]).length>0},loadModule:function(t,e){if(this.hasModule(t))return;WHMCS[t]={};if(typeof e==="function")e.apply(WHMCS[t]);else for(var n in e)if(e.hasOwnProperty(n)){WHMCS[t][n]={};e[n].apply(WHMCS[t][n])}}})}(window),jQuery(document).ready(function(){jQuery(document).on("click",".disable-on-click",function(){var t;jQuery(this).addClass("disabled"),jQuery(this).hasClass("spinner-on-click")&&(t=$(this).find("i.fas,i.far,i.fal,i.fab"),jQuery(t).removeAttr("class").addClass("fas fa-spinner fa-spin"))}).on("click","#openTicketSubmit.disabled",function(){return!1})}),WHMCS.hasModule("authn")||WHMCS.loadModule("authn",{provider:function(){var e=!1;return this.feedbackContainer=function(){return jQuery(".providerLinkingFeedback")},this.btnContainer=function(){return jQuery(".providerPreLinking")},this.feedbackMessage=function(t){void 0===t&&(t="complete_sign_in");t=jQuery("p.providerLinkingMsg-preLink-"+t);return t.length?t.first().html():""},this.showProgressMessage=function(t){this.feedbackContainer().fadeIn("fast",function(){"function"!=typeof t||e||(e=!0,t())})},this.preLinkInit=function(t){this.feedbackContainer().removeClass("alert-danger alert-success").addClass("alert alert-info").html(' '+this.feedbackMessage()).hide();var e,n=this.btnContainer();n.length?n.data("hideOnPrelink")?(e=this,n.fadeOut("false",function(){e.showProgressMessage(t)})):(n.data("disableOnPrelink")&&n.find(".btn").addClass("disabled"),this.showProgressMessage(t)):this.showProgressMessage(t)},this.displayError=function(t,e,n){jQuery("#providerLinkingMessages .provider-name").html(t);t=this.feedbackMessage("connect_error");e&&(e=this.feedbackMessage(e))&&(t=e),n&&0<$(".btn-logged-in-admin").length&&(t+=" Error: "+n),this.feedbackContainer().removeClass("alert-info alert-success").addClass("alert alert-danger").html(t).slideDown()},this.displaySuccess=function(t,e,n){var i,r,o,a=n.icon,s=e.htmlTarget,d=e.targetLogin,l=e.targetRegister,u=n.name,c="";switch(t.result){case"logged_in":case"2fa_needed":c=this.feedbackMessage("2fa_needed"),this.feedbackContainer().removeClass("alert-danger alert-warning alert-success").addClass("alert alert-info").html(c),window.location=t.redirect_url?decodeURIComponent(t.redirect_url):decodeURIComponent(e.redirectUrl);break;case"linking_complete":var h="";h=(h=t.remote_account.email||t.remote_account.firstname+" "+t.remote_account.lastname).trim(),c=this.feedbackMessage("linking_complete").trim().replace(":displayName",u),h&&(c=c.replace(/\.$/," ("+h+").")),this.feedbackContainer().removeClass("alert-danger alert-warning alert-info").addClass("alert alert-success").html(a+c);break;case"login_to_link":s===d?(c=this.feedbackMessage("login_to_link-signin-required"),this.feedbackContainer().removeClass("alert-danger alert-success alert-info").addClass("alert alert-warning").html(a+c)):(h=jQuery("input[name=email]"),i=jQuery("input[name=firstname]"),r=jQuery("input[name=lastname]"),""===h.val()&&h.val(t.remote_account.email),""===i.val()&&i.val(t.remote_account.firstname),""===r.val()&&r.val(t.remote_account.lastname),s===l?("object"==typeof WHMCS.client.registration&&WHMCS.client.registration.prefillPassword(),c=this.feedbackMessage("login_to_link-registration-required"),this.feedbackContainer().fadeOut("slow",function(){$(this).removeClass("alert-danger alert-success alert-info").addClass("alert alert-warning").html(a+c).fadeIn("fast")})):("object"==typeof WHMCS.client.registration&&WHMCS.client.registration.prefillPassword(),(o=this).feedbackContainer().each(function(t,e){var n=$(e),i=n.siblings("div .providerPreLinking").data("linkContext");n.fadeOut("slow",function(){c="checkout-new"===i?o.feedbackMessage("checkout-new"):o.feedbackMessage("login_to_link-signin-required"),n.removeClass("alert-danger alert-success alert-info").addClass("alert alert-warning").html(a+c).fadeIn("fast")})})));break;case"other_user_exists":c=this.feedbackMessage("other_user_exists"),this.feedbackContainer().removeClass("alert-info alert-success").addClass("alert alert-danger").html(a+c).slideDown();break;case"already_linked":c=this.feedbackMessage("already_linked"),this.feedbackContainer().removeClass("alert-info alert-success").addClass("alert alert-danger").html(a+c).slideDown();break;default:c=this.feedbackMessage("default"),this.feedbackContainer().removeClass("alert-info alert-success").addClass("alert alert-danger").html(a+c).slideDown()}},this.signIn=function(t,e,n,i,r){jQuery.ajax(t).done(function(t){i(),WHMCS.authn.provider.displaySuccess(t,e,n),jQuery("#tableLinkedAccounts").length&&WHMCS.ui.dataTable.getTableById("tableLinkedAccounts").ajax.reload()}).error(function(){r(),WHMCS.authn.provider.displayError()})},this}}),function(t){WHMCS.hasModule("client")||WHMCS.loadModule("client",t)}({registration:function(){return this.prefillPassword=function(i){function t(){for(var t=WHMCS.utils.simpleRNG(),e=0,n=i.form.password.length;epl',paging:!1,lengthChange:!1,searching:!1,ordering:!0,info:!1,autoWidth:!0,columns:[],lengthMenu:[10,25,50,100,500,1e3],language:{emptyTable:o.data("langEmptyTable")?o.data("langEmptyTable"):"No records found"}}),jQuery.each(o.data(),function(t,e){if(void 0!==e)if("ajaxUrl"===t)n.ajax={url:e};else if("lengthChange"===t)n.lengthChange=e;else{if("pageLength"!==t)return"langEmptyTable"===t?(void 0===n.language&&(n.language={}),void(n.language.emptyTable=e)):"langZeroRecords"===t?(void 0===n.language&&(n.language={}),void(n.language.zeroRecords=e)):void(n.key=e);n.pageLength=e}}),jQuery.each(o.find("th"),function(){void 0===n.columns&&(n.columns=[]),n.columns.push({data:jQuery(this).data("name")})}),r.tables[t]=r.initTable(o,n)):void 0!==n&&(i=(e=r.tables[t]).init(),i=jQuery.extend(i,n),e.destroy(),r.tables[t]=r.initTable(o,i)),r.tables[t]},this.initTable=function(i,t){var t=i.DataTable(t),e=this;return i.data("on-draw")?t.on("draw.dt",function(t,e){var n=i.data("on-draw");"function"==typeof window[n]&&window[n](t,e)}):i.data("on-draw-rebind-confirmation")&&t.on("draw.dt",function(t){e.rebindConfirmation(t)}),t},this.rebindConfirmation=function(t){for(var e=this,n=t.target.id,i=WHMCS.ui.confirmation.register(),r=0,o=i.length;r").css("position","fixed").css("opacity","0").css("width","1px").css("height","1px").val($(e).val());n.append(i),i.focus().select(),document.execCommand("copy")}finally{i.remove()}t.tooltip({trigger:"click",placement:"bottom"}),WHMCS.ui.toolTip.setTip(t,"Copied!"),WHMCS.ui.toolTip.hideTip(t)},this},toolTip:function(){this.setTip=function(t,e){var n=t.data("bs.tooltip");return"in"!==n.hoverState&&(n.hoverState="in"),t.attr("data-original-title",e),n.show(),n},this.hideTip=function(t){return setTimeout(function(){t.data("bs.tooltip").hide()},2e3)}},jsonForm:function(){return this.managedElements="input,textarea,select",this.initFields=function(t){var e=this;$(t).find(e.managedElements).each(function(){var t=this;$(t).on("keypress change",function(){e.fieldHasError(t)&&e.clearFieldError(t)})})},this.init=function(e){var n=this;n.initFields(e),$(e).on("submit",function(t){t.preventDefault(),t.stopPropagation(),n.clearErrors(e);t=$(e).parents('.modal[role="dialog"]').first();$(t).length&&($(t).on("show.bs.modal hidden.bs.modal",function(){n.clearErrors(e)}),$(t).on("show.bs.modal",function(){$(e)[0].reset()})),WHMCS.http.client.post({url:$(e).attr("action"),data:$(e).serializeArray()}).done(function(t){n.onSuccess(e,t)}).fail(function(t){n.onError(e,t)}).always(function(t){n.onRequestComplete(e,t)})})},this.initAll=function(){var t=this;$('form[data-role="json-form"]').each(function(){t.init(this)})},this.markFieldErrors=function(t,e){var n,i,r=null;for(i in e)e.hasOwnProperty(i)&&(r=e[i]),n=this.managedElements.split(",").map(function(t){return t+'[name="'+i+'"]'}).join(","),n=$(t).find(n),r&&($(n).parents(".form-group").addClass("has-error"),$(n).attr("title",r),$(n).tooltip());$(t).find(".form-group.has-error input[title]").first().tooltip("show")},this.fieldHasError=function(t){return $(t).parents(".form-group").hasClass("has-error")},this.clearFieldError=function(e){try{$(e).tooltip("dispose")}catch(t){$(e).tooltip("destroy")}$(e).parents(".form-group").removeClass("has-error")},this.onSuccess=function(t,e){t=$(t).data("on-success");"function"==typeof t&&t(e.data)},this.onError=function(t,e){e.responseJSON&&e.responseJSON.fields&&"object"==typeof e.responseJSON.fields?this.markFieldErrors(t,e.responseJSON.fields):console.log("Unknown error - please try again later.");t=$(t).data("on-error");"function"==typeof t&&t(e)},this.clearErrors=function(t){var e=this;$(t).find(e.managedElements).each(function(){e.clearFieldError(this)})},this.onRequestComplete=function(t,e){},this},effects:function(){this.errorShake=function(t){var d={},d=$.extend({direction:"left",distance:8,times:3,speed:90},d);return t.each(function(){var t=$(this),e={position:t.css("position"),top:t.css("top"),bottom:t.css("bottom"),left:t.css("left"),right:t.css("right")},n=(t.css("position","relative"),"up"===d.direction||"down"===d.direction?"top":"left"),i="up"===d.direction||"left"===d.direction?"pos":"neg",r={},o={},a={};r[n]=("pos"==i?"-=":"+=")+d.distance,o[n]=("pos"==i?"+=":"-=")+2*d.distance,a[n]=("pos"==i?"-=":"+=")+2*d.distance,t.animate(r,d.speed);for(var s=1;s Adding...');var n=jQuery("#renewalPeriod"+t).val();WHMCS.http.jqClient.post("clientarea.php","addRenewalToCart=1&token="+csrfToken+"&renewID="+t+"&period="+n,function(t){jQuery("#cartItemCount").html(+jQuery("#cartItemCount").html()+1),jQuery(e).html(' Added'),jQuery("#btnCheckout").fadeIn()})}function selectChangeNavigate(t){window.location.href=$(t).val()}function extraTicketAttachment(){jQuery("#fileUploadsContainer").append('')}function getStats(e){WHMCS.http.jqClient.post("serverstatus.php","getstats=1&num="+e,function(t){jQuery("#load"+e).html(t.load),jQuery("#uptime"+e).html(t.uptime)},"json")}function checkPort(e,n){WHMCS.http.jqClient.post("serverstatus.php","ping=1&num="+e+"&port="+n,function(t){jQuery("#port"+n+"_"+e).html(t)})}function getticketsuggestions(){(currentcheckcontent=jQuery("#message").val())!=lastcheckcontent&&""!=currentcheckcontent&&(WHMCS.http.jqClient.post("submitticket.php",{action:"getkbarticles",text:currentcheckcontent},function(t){t&&(jQuery("#searchresults").html(t),jQuery("#searchresults").hide().removeClass("hidden").slideDown())}),lastcheckcontent=currentcheckcontent),setTimeout("getticketsuggestions();",3e3)}function refreshCustomFields(t){jQuery("#customFieldsContainer").load("submitticket.php",{action:"getcustomfields",deptid:$(t).val()})}function autoSubmitFormByContainer(t){"undefined"!=typeof noAutoSubmit&&!1!==noAutoSubmit||jQuery("#"+t).find("form:first").submit()}function useDefaultWhois(t){jQuery("."+t.substr(0,t.length-1)+"customwhois").attr("disabled",!0),jQuery("."+t.substr(0,t.length-1)+"defaultwhois").attr("disabled",!1),jQuery("#"+t.substr(0,t.length-1)+"1").attr("checked","checked")}function useCustomWhois(t){jQuery("."+t.substr(0,t.length-1)+"customwhois").attr("disabled",!1),jQuery("."+t.substr(0,t.length-1)+"defaultwhois").attr("disabled",!0),jQuery("#"+t.substr(0,t.length-1)+"2").attr("checked","checked")}function showNewBillingAddressFields(){jQuery("#newBillingAddress").slideDown()}function hideNewBillingAddressFields(){jQuery("#newBillingAddress").slideUp()}function showNewCardInputFields(){var t=jQuery(".cc-details"),e=jQuery("#inputCardNumber"),n=jQuery("#billingAddressChoice");t.hasClass("hidden")&&t.hide().removeClass("hidden"),t.slideDown(),e.focus(),n.slideDown().find('input[name="billingcontact"]').first().iCheck("check")}function showNewAccountInputFields(){jQuery(".bank-details").hasClass("hidden")&&jQuery(".bank-details").hide().removeClass("hidden"),jQuery(".bank-details").slideDown(),jQuery("#billingAddressChoice").slideDown().find('input[name="billingcontact"]').first().iCheck("check")}function hideNewCardInputFields(){hideNewBillingAddressFields(),jQuery(".cc-details").slideUp(),jQuery("#billingAddressChoice").slideUp();var t=jQuery('input[name="ccinfo"]:checked').data("billing-contact-id");null!=t&&jQuery("#billingAddressChoice label.billing-contact-"+t).iCheck("check"),jQuery("#inputCardCvv").focus()}function hideNewAccountInputFields(){hideNewBillingAddressFields(),jQuery(".bank-details").slideUp(),jQuery("#billingAddressChoice").slideUp();var t=jQuery('input[name="paymethod"]:checked'),t=jQuery(t).data("billing-contact-id"),t=jQuery('.billing-contact-info[data-billing-contact-id="'+t+'"]');t.length&&(jQuery(".billing-contact-info").hide(),jQuery(t).show())}function getTicketSuggestions(){var t=jQuery("#inputMessage").val();t!=lastTicketMsg&&""!=t&&(WHMCS.http.jqClient.post("submitticket.php",{action:"getkbarticles",text:t},function(t){t&&(jQuery("#autoAnswerSuggestions").html(t),jQuery("#autoAnswerSuggestions").is(":visible")||jQuery("#autoAnswerSuggestions").hide().removeClass("hidden").slideDown())}),lastTicketMsg=t),setTimeout("getTicketSuggestions()",3e3)}function smoothScroll(t){$("html, body").animate({scrollTop:$(t).offset().top},500)}function irtpSubmit(){allowSubmit=!0;var t=0,e=jQuery("#modalIrtpOptOut"),n=jQuery("#modalReason"),i=jQuery("#irtpOptOut"),r=jQuery("#irtpOptOutReason");e.is(":checked")&&(t=1),i.val(t),r.val(n.val()),jQuery("#frmDomainContactModification").submit()}function showOverlay(t){jQuery("#fullpage-overlay .msg").html(t),jQuery("#fullpage-overlay").removeClass("hidden").show()}function hideOverlay(){jQuery("#fullpage-overlay").hide()}function getSslAttribute(t,e){return(t.data(e)?t:t.parent("td")).data(e)}function openValidationSubmitModal(t){var e=jQuery("#validationSubmitModal");e.find(".modal-body iframe").attr("src",t.dataset.url),e.modal("show")}function completeValidationComClientWorkflow(){var t=jQuery(".user-validation"),e=jQuery(".validation-status-label"),n=jQuery(".validation-submit-div"),i=!0;return $("#validationSubmitModal").modal("hide"),0!==t.length&&(t.slideUp(),i=!1),0!==e.length&&(t=n.find("a").data("submitted-string"),e.text(t).removeClass("label-default").addClass("label-warning"),n.hide(),i=!1),i&&(window.location.href=WHMCS.utils.autoDetermineBaseUrl()),!1}function customActionAjaxCall(t,e){return t.stopPropagation(),!!e.data("active")&&(e.attr("disabled","disabled").addClass("disabled"),jQuery(".loading",e).show(),WHMCS.http.jqClient.jsonPost({url:WHMCS.utils.getRouteUrl("/clientarea/service/"+e.data("serviceid")+"/custom-action/"+e.data("identifier")),data:{token:csrfToken},success:function(t){t.success?window.open(t.redirectTo):window.open("clientarea.php?action=productdetails&id="+e.data("serviceid")+"&customaction_error=1")},fail:function(){window.open("clientarea.php?action=productdetails&id="+e.data("serviceid")+"&customaction_ajax_error=1")},always:function(){jQuery(".loading",e).hide(),e.removeAttr("disabled").removeClass("disabled"),e.hasClass("dropdown-item")&&e.closest(".dropdown-menu").removeClass("show")}}),!0)}WHMCS.hasModule("recaptcha")||WHMCS.loadModule("recaptcha",function(){return this.register=function(){if(recaptchaLoadComplete)return;var h=[],t=jQuery(".btn-recaptcha").parents("form"),p=false;t.each(function(t,e){if(typeof recaptchaSiteKey==="undefined"){console.log("Recaptcha site key not defined");return}recaptchaCount+=1;var n=jQuery(e),i=n.find(".btn-recaptcha"),r=typeof requiredText!=="undefined"?requiredText:"Required",o="divDynamicRecaptcha"+recaptchaCount;p=i.hasClass("btn-recaptcha-invisible");var a=n.find("#"+o+" .g-recaptcha"),s=n.find(".recaptcha-container"),d=n;if(s.length){s.attr("id",s.attr("id")+recaptchaCount);d=s}if(!a.length){d.append('
');a=d.find("#"+o)}if(!p)a.data("toggle","tooltip").data("placement","bottom").data("trigger","manual").attr("title",r).hide();var l=n.find("input[name='submit']");if(l.length){var u=n.prop("action");n.prop("action",u+"&submit=1");l.remove()}var c=o+"Callback";window[c]=function(){if(p)n.submit()};if(p){recaptchaType="invisible";n.on("submit.recaptcha",function(t){var e=n.find(".g-recaptcha").data("recaptcha-id");if(!grecaptcha.getResponse(e).trim()){t.preventDefault();grecaptcha.execute(e);recaptchaValidationComplete=false}else recaptchaValidationComplete=true})}else{h.push(function(){a.slideDown("fast",function(){a.find(":first").addClass("center-block")})});h.push(function(){a.find(":first").addClass("center-block")})}});window.recaptchaLoadCallback=function(){jQuery(".g-recaptcha").each(function(t,e){var n=jQuery(e),i=n.closest("form"),r=i.find(".btn-recaptcha"),o=n.attr("id").substring(1);var a=grecaptcha.render(e,{sitekey:recaptchaSiteKey,size:r.hasClass("btn-recaptcha-invisible")?"invisible":"normal",callback:o+"Callback"});n.data("recaptcha-id",a)})};if(t.length){var e="https://www.google.com/recaptcha/api.js?onload=recaptchaLoadCallback&render=explicit";jQuery.getScript(e,function(){for(var t=h.length-1;t>=0;t--)h[t]()})}recaptchaLoadComplete=true},this}),function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():t.MicroPlugin=e()}(this,function(){var t={mixin:function(i){i.plugins={},i.prototype.initializePlugins=function(t){var e,n,i,r=[];if(this.plugins={names:[],settings:{},requested:{},loaded:{}},o.isArray(t))for(e=0,n=t.length;e.5)i+=btoa(v).substr(0,4);else i+=v;if(Math.random()>.5)i+=t.substr(Math.floor(Math.random()*13),1)}return i},this.getRouteUrl=function(t){return whmcsBaseUrl+"/index.php?rp="+t},this.validateBaseUrl=function(){if(typeof window.whmcsBaseUrl==="undefined"){console.log("Warning: The WHMCS Base URL definition is missing "+"from your active template. Please refer to "+"https://docs.whmcs.com/WHMCS_Base_URL_Template_Variable "+"for more information and details of how to resolve this "+"warning.");window.whmcsBaseUrl=this.autoDetermineBaseUrl();window.whmcsBaseUrlAutoSet=true}else if(window.whmcsBaseUrl===""&&typeof window.whmcsBaseUrlAutoSet!=="undefined"&&window.whmcsBaseUrlAutoSet===true)window.whmcsBaseUrl=this.autoDetermineBaseUrl()},this.autoDetermineBaseUrl=function(){var t=window.location.href;var e=-1;if(typeof t!=="undefined")e=t.indexOf(".php");if(e===-1){t=jQuery("#Primary_Navbar-Home a").attr("href");if(typeof t!=="undefined")e=t.indexOf(".php")}if(e!==-1){t=t.substring(0,e);var n=t.lastIndexOf("/");if(n!==false)return t.substring(0,n)}return""},this.normaliseStringValue=function(t){return t?t.toLowerCase().replace(/\s/g,"-"):""},this.generatePassword=function(t){var e=this.getPasswordCharacterSet();var n="";for(var i=0;t>i;i++)n+=e[this.randomInt(e.length)];return n},this.getPasswordCharacterSet=function(){var t="0123456789"+"abcdefghijklmnopqrstuvwxyz"+"ABCDEFGHIJKLMNOPQRSTUVWXYZ"+"!#$%()*+,-.:;=@_|{ldelim}{rdelim}~";var e=[];for(var n=0;t.length>n;n++){var i=t.charCodeAt(n);if(55296>i||i>=57344){var r=t.charAt(n);if(e.indexOf(r)==-1)e.push(r);continue}if(56320>i?t.length>n+1:false){var o=t.charCodeAt(n+1);if(o>=56320?57344>o:false){var r=t.substring(n,n+2);n++;if(e.indexOf(r)==-1)e.push(r);continue}}throw"Invalid UTF-16"}return e},this.randomInt=function(t){var e=this.randomIntMathRandom(t);e=(e+this.randomIntBrowserCrypto(t))%t;return e},this.randomIntMathRandom=function(t){var e=Math.floor(Math.random()*t);if(0>e||e>=t)throw"Arithmetic exception";return e},this.randomIntBrowserCrypto=function(t){var e=null;if("crypto"in window)e=crypto;else if("msCrypto"in window)e=msCrypto;else return 0;if(!("getRandomValues"in e)||!("Uint32Array"in window)||typeof Uint32Array!="function")e=null;if(e==null)return 0;var n=new Uint32Array(1);do{e.getRandomValues(n)}while(n[0]-n[0]%t>4294967296-t);return n[0]%t},this}),WHMCS.utils.validateBaseUrl(),jQuery(document).ready(function(){lightbox.init(),jQuery("#languageChooser").popover({container:"body",placement:"bottom",template:'',html:!0,content:function(){return jQuery("#languageChooserContent").html()}}),jQuery("#loginOrRegister").popover({container:"body",placement:"bottom",template:'',html:!0,content:function(){return jQuery("#loginOrRegisterContent").html()}}),jQuery("#accountNotifications").popover({container:"body",placement:"bottom",template:'',html:!0,content:function(){return jQuery("#accountNotificationsContent").html()}}),jQuery(".panel-sidebar .truncate").each(function(){jQuery(this).attr("title",jQuery(this).text()).attr("data-toggle","tooltip").attr("data-placement","bottom")}),jQuery('[data-toggle="popover"]').popover({html:!0}),jQuery(function(t){t("body").tooltip({selector:'[data-toggle="tooltip"]'})}),jQuery("body").on("click",function(t){jQuery('[data-toggle="popover"]').each(function(){jQuery(this).is(t.target)||0!==jQuery(this).has(t.target).length||0!==jQuery(".popover").has(t.target).length||jQuery(this).popover("hide")})}),jQuery(".list-group-tab-nav a").click(function(){if(jQuery(this).hasClass("disabled"))return!1;jQuery(".list-group-tab-nav a").removeClass("active"),jQuery(this).addClass("active");var t=this.href.split("#")[1];t&&(window.location.hash="#"+t)}),jQuery(".panel-minimise").click(function(t){t.preventDefault(),jQuery(this).hasClass("minimised")?(jQuery(this).parents(".panel").find(".panel-body, .list-group").slideDown(),jQuery(this).removeClass("minimised")):(jQuery(this).parents(".panel").find(".panel-body, .list-group").slideUp(),jQuery(this).addClass("minimised"))}),jQuery(".container").width()<=720&&(jQuery(".panel-sidebar").find(".panel-body, .list-group").hide(),jQuery(".panel-sidebar").find(".panel-minimise").addClass("minimised")),""!=jQuery(location).attr("hash").substr(1)&&(t=jQuery(location).attr("hash"),jQuery(".tab-pane").removeClass("active"),jQuery(t).removeClass("fade").addClass("active"),jQuery(".list-group-tab-nav a").removeClass("active"),jQuery('a[href="'+t+'"]').addClass("active"),setTimeout(function(){window.scrollTo(0,0)},1)),jQuery.prototype.bootstrapSwitch&&jQuery(".toggle-switch-success").bootstrapSwitch({onColor:"success"}),jQuery(".panel-collapsable .panel-heading").click(function(t){var e=jQuery(this);e.parents(".panel").hasClass("panel-collapsed")?(e.parents(".panel").removeClass("panel-collapsed").find(".panel-body").slideDown(),e.find(".collapse-icon i").removeClass("fa-plus").addClass("fa-minus")):(e.parents(".panel").addClass("panel-collapsed").find(".panel-body").slideUp(),e.find(".collapse-icon i").removeClass("fa-minus").addClass("fa-plus"))}),0<"#frmLogin".length&&jQuery("#frmLogin input:text:visible:first").focus(),0<"#twofaactivation".length&&jQuery("#twofaactivation input:text:visible:first,#twofaactivation input:password:visible:first").focus(),jQuery("#inputSubaccountActivate").click(function(){null!=jQuery("#inputSubaccountActivate:checked").val()?jQuery("#subacct-container").removeClass("hidden"):jQuery("#subacct-container").addClass("hidden")}),jQuery(".setBulkAction").click(function(t){t.preventDefault();var e,t=jQuery(this).attr("id").replace("Link",""),n=jQuery("#domainForm");"renewDomains"===t?n.attr("action",WHMCS.utils.getRouteUrl("/cart/domain/renew")):(0!==jQuery("#"+t).length&&(e=n.attr("action"),n.attr("action",e+"#"+t)),jQuery("#bulkaction").val(t)),n.submit()}),jQuery(".stopEventBubble").click(function(t){t.stopPropagation()}),jQuery(".tabControlLink").on("click",function(t){t.preventDefault();t=jQuery(this).attr("href");jQuery("a[href='/"+t+"']").click()}),jQuery(document).on("click",".delete-cc-email",function(){var e=jQuery(this),t=e.data("email"),n=jQuery("#divCcEmailFeedback");n.is(":visible")&&n.slideUp("fast"),WHMCS.http.jqClient.jsonPost({url:window.location.href,data:{action:"delete",email:t,token:csrfToken},success:function(t){t.success&&(e.closest(".ticket-cc-email").parent("div").slideUp("fast").remove(),n.slideUp("fast").removeClass("alert-danger hidden").addClass("alert-success").html(t.message).slideDown("fast"))},error:function(t){t&&n.slideUp("fast").removeClass("alert-success hidden").addClass("alert-danger").html(t).slideDown("fast")}})}).on("submit","#frmAddCcEmail",function(t){t.preventDefault();var t=jQuery(this),e=jQuery("#ccCloneRow").clone().removeAttr("id"),n=jQuery("#inputAddCcEmail"),i=jQuery("#divCcEmailFeedback");i.is(":visible")&&i.slideUp("fast"),WHMCS.http.jqClient.jsonPost({url:t.attr("action"),data:t.serialize(),success:function(t){t.success&&(e.find("span.email").html(n.val()).find("button").data("email",n.val()).end(),e.removeClass("hidden").appendTo(jQuery("#sidebarTicketCc").find(".list-group")),n.val(""),i.slideUp("fast").removeClass("alert-danger hidden").addClass("alert-success").html(t.message).slideDown("fast"))},error:function(t){t&&i.slideUp("fast").removeClass("alert-success hidden").addClass("alert-danger").html(t).slideDown("fast")}})}),jQuery(".ticket-reply .rating span.star").click(function(t){window.location="viewticket.php?tid="+jQuery(this).parent(".rating").attr("ticketid")+"&c="+jQuery(this).parent(".rating").attr("ticketkey")+"&rating=rate"+jQuery(this).parent(".rating").attr("ticketreplyid")+"_"+jQuery(this).attr("rate")}),jQuery("a.autoLinked").click(function(t){if(t.preventDefault(),jQuery(this).hasClass("disabled"))return!1;var e=window.open();e.opener=null,e.location=t.target.href}),jQuery("#inputAllowSso").on("switchChange.bootstrapSwitch",function(t,e){e?(jQuery("#ssoStatusTextEnabled").removeClass("hidden").show(),jQuery("#ssoStatusTextDisabled").hide()):(jQuery("#ssoStatusTextDisabled").removeClass("hidden").show(),jQuery("#ssoStatusTextEnabled").hide()),WHMCS.http.jqClient.post("clientarea.php",jQuery("#frmSingleSignOn").serialize())}),jQuery(".btn-service-sso").on("click",function(t){t.preventDefault();var e=jQuery(this),n=e.parents("form");(n=0===n.length?e.find("form"):n).hasClass("disabled")||e.hasClass("disabled")||(t=(t=n.data("href"))||window.location.href,e.attr("disabled","disabled").addClass("disabled"),jQuery(".loading",e).removeClass("hidden").show().end(),jQuery(".login-feedback",n).slideUp(),WHMCS.http.jqClient.post(t,n.serialize(),function(t){jQuery(".loading",e).hide().end().removeAttr("disabled"),jQuery(".login-feedback",n).html(""),t.error&&jQuery(".login-feedback",n).hide().html(t.error).slideDown(),void 0!==t.redirect&&"window|"===t.redirect.substr(0,7)&&window.open(t.redirect.substr(7),"_blank")},"json").always(function(){e.removeAttr("disabled").removeClass("disabled"),jQuery(".loading",e).hide().end()}))}),jQuery(".btn-sidebar-form-submit").on("click",function(t){t.preventDefault(),jQuery(this).find(".loading").removeClass("hidden").show().end().attr("disabled","disabled");t=jQuery(this).parents("form");0!==(t=0==t.length?jQuery(this).find("form"):t).length&&!1===t.hasClass("disabled")?t.submit():jQuery(this).find(".loading").hide().end().removeAttr("disabled")}),jQuery(".back-to-top").click(function(t){t.preventDefault(),jQuery("body,html").animate({scrollTop:0},500)}),jQuery(".choose-language").click(function(t){t.preventDefault()}),jQuery(".copy-to-clipboard").click(WHMCS.ui.clipboard.copy),jQuery(".generate-password").click(function(t){jQuery("#frmGeneratePassword").submit(),jQuery("#modalGeneratePassword").data("targetfields",jQuery(this).data("targetfields")).modal("show")}),jQuery("#frmGeneratePassword").submit(function(t){t.preventDefault();t=parseInt(jQuery("#inputGeneratePasswordLength").val(),10);t<8||64',autofocus:!1,savable:!1,resize:"vertical",iconlibrary:"glyph",language:locale,onShow:function(t){var e="",n=!1;"undefined"!=typeof Storage&&(n=!0,(e=localStorage.getItem(i))&&void 0!==e&&t.setContent(e)),jQuery("#"+r).html(o(e,n,saved))},onChange:function(t){var t=t.getContent(),e=!1;"undefined"!=typeof Storage&&(n=3,e=!0,localStorage.setItem(i,t),a()),jQuery("#"+r).html(o(t,e))},onPreview:function(t){var e,t=t.getContent();return jQuery.ajax({url:WHMCS.utils.getRouteUrl("/clientarea/message/preview"),async:!1,data:{token:csrfToken,content:t},dataType:"json",success:function(t){e=t}}),e.body||""},additionalButtons:[[{name:"groupCustom",data:[{name:"cmdHelp",title:"Help",hotkey:"Ctrl+F1",btnClass:"btn open-modal",icon:{glyph:"fas fa-question-circle",fa:"fas fa-question-circle","fa-3":"icon-question-sign"},callback:function(t){t.$editor.removeClass("md-fullscreen-mode")}}]}]],hiddenButtons:["cmdImage"]}),jQuery('button[data-handler="bootstrap-markdown-cmdHelp"]').attr("data-modal-title",markdownGuide).attr("href","submitticket.php?action=markdown"),jQuery(this).closest("form").bind({submit:function(){"undefined"!=typeof Storage&&localStorage.removeItem(i)}})}),jQuery(".btn-resend-verify-email")),t=(jQuery(i).click(function(){$(this).prop("disabled",!0).find(".loader").removeClass("hidden").show(),WHMCS.http.jqClient.post(jQuery(this).data("uri"),{token:csrfToken}).done(function(t){i.find(".loader").hide(),t.success?i.text(i.data("email-sent")):i.text(i.data("error-msg"))})}),jQuery("#btnEmailVerificationClose").click(function(t){t.preventDefault(),WHMCS.http.jqClient.post(jQuery(this).data("uri"),{token:csrfToken}),jQuery(".verification-banner.email-verification").hide()}),jQuery("#btnUserValidationClose").click(function(t){t.preventDefault(),WHMCS.http.jqClient.post(jQuery(this).data("uri"),{token:csrfToken}),jQuery(".verification-banner.user-validation").hide()}),jQuery("#servicesPanel").find(".list-group"));function o(t,e,n){n=n||saving;var i=[],r=0,o=0;if(t&&(i=t.match(/[^\s]+/g),o=t.split(/\\r\\n|\\r|\\n/).length),i)for(var a=0;alines: '+o+"   words: "+r+(e?'   '+n+"":"")+""}function a(){0<=n&&(0==n&&jQuery("span.markdown-save").html(saved),n--,setTimeout(a,1e3))}parseInt(t.css("height"),10)"),"active"===t.ssl.status?(jQuery("#ssl-startdate").text(t.ssl.startDate),jQuery("#ssl-expirydate").text(t.ssl.expiryDate),jQuery("#ssl-issuer").text(t.ssl.issuer)):(jQuery("#ssl-startdate").parent("div").hide(),jQuery("#ssl-expirydate").parent("div").hide(),jQuery("#ssl-issuer").parent("div").hide()),jQuery("#statusDisplayLabel").text(n))})}),jQuery(document).on("click",".ssl-state.ssl-inactive",function(t){t.preventDefault(),window.location.href=WHMCS.utils.getRouteUrl("/ssl-purchase")}),WHMCS.recaptcha.register(),jQuery("#divDynamicRecaptcha")),s=0-n._handleWidth/2,n._dragEnd=!1,n.state(n.options.inverse?!t:t)):n.state(!n.options.state),n._dragStart=!1)},"mouseleave.bootstrapSwitch":function(){n.$label.trigger("mouseup.bootstrapSwitch")}})}},{key:"_externalLabelHandler",value:function(){var e=this,n=this.$element.closest("label");n.on("click",function(t){t.preventDefault(),t.stopImmediatePropagation(),t.target===n[0]&&e.toggleState()})}},{key:"_formHandler",value:function(){var t=this.$element.closest("form");t.data("bootstrap-switch")||t.on("reset.bootstrapSwitch",function(){window.setTimeout(function(){t.find("input").filter(function(){return a(this).data("bootstrap-switch")}).each(function(){return a(this).bootstrapSwitch("state",this.checked)})},1)}).data("bootstrap-switch",!0)}},{key:"_getClass",value:function(t){return this.options.baseClass+"-"+t}},{key:"_getClasses",value:function(t){return a.isArray(t)?t.map(this._getClass.bind(this)):[this._getClass(t)]}}]),o);function o(i){var r=this,t=1",{class:function(){var t=[];return t.push(r.options.state?"on":"off"),r.options.size&&t.push(r.options.size),r.options.disabled&&t.push("disabled"),r.options.readonly&&t.push("readonly"),r.options.indeterminate&&t.push("indeterminate"),r.options.inverse&&t.push("inverse"),r.$element.attr("id")&&t.push("id-"+r.$element.attr("id")),t.map(r._getClass.bind(r)).concat([r.options.baseClass],r._getClasses(r.options.wrapperClass)).join(" ")}}),this.$container=a("
",{class:this._getClass("container")}),this.$on=a("",{html:this.options.onText,class:this._getClass("handle-on")+" "+this._getClass(this.options.onColor)}),this.$off=a("",{html:this.options.offText,class:this._getClass("handle-off")+" "+this._getClass(this.options.offColor)}),this.$label=a("",{html:this.options.labelText,class:this._getClass("label")}),this.$element.on("init.bootstrapSwitch",this.options.onInit.bind(this,i)),this.$element.on("switchChange.bootstrapSwitch",function(){for(var t=arguments.length,e=Array(t),n=0;n",{class:"btn-group"}),u=0;u");v.text(" "+this.__localize(f)).addClass("btn-default btn-sm").addClass(g),g.match(/btn\-(primary|success|info|warning|danger|link)/)&&v.removeClass("btn-default"),v.attr({type:"button",title:this.__localize(c.title)+b,tabindex:m,"data-provider":n,"data-handler":h,"data-hotkey":$}),!0===c.toggle&&v.attr("data-toggle","button"),(f=y("")).addClass(p),f.prependTo(v),l.append(v),i.push(h),r.push(c.callback)}e.append(l)}return e},__setListener:function(){var t=void 0!==this.$textarea.attr("rows"),e=5",{class:"md-editor",click:function(){r.focus()}});return null===this.$editor?(t=y("
",{class:"md-header btn-toolbar"}),i=[],0c.reorderButtonGroups.indexOf(e.name)?1:0}):i).length&&(t=this.__buildButtons([i],t)),c.fullscreen.enable&&t.append('
').on("click",".md-control-fullscreen",function(t){t.preventDefault(),r.setFullscreen(!0)}),h.append(t),s.is("textarea")?(s.before(h),(a=s).addClass("md-input"),h.append(a)):(e="function"==typeof toMarkdown?toMarkdown(s.html()):s.html(),e=y.trim(e),a=y("