/*! * jQuery JavaScript Library v1.12.4 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2016-05-20T17:17Z */ function scrollToGatewayInputError(){var e=jQuery(".gateway-errors,.assisted-cc-input-feedback").first(),t=e.closest("form");t||(t=jQuery("form").first()),t.find('button[type="submit"],input[type="submit"]').prop("disabled",!1).removeClass("disabled").find("i.fas,i.far,i.fal,i.fab").removeAttr("class").addClass("fas fa-arrow-circle-right").find("span").toggle(),e.length&&elementOutOfViewPort(e[0])&&jQuery("html, body").animate({scrollTop:e.offset().top-50},500)}function elementOutOfViewPort(e){var t=e.getBoundingClientRect(),n={};return n.top=t.top<0,n.left=t.left<0,n.bottom=t.bottom>(window.innerHeight||document.documentElement.clientHeight),n.right=t.right>(window.innerWidth||document.documentElement.clientWidth),n.any=n.top||n.left||n.bottom||n.right,n.any}function showCheckoutError(e,t=null){jQuery(".alert-danger").hide();t||(t=jQuery([".checkout-error-feedback","#existingLoginMessage",".gateway-errors",".assisted-cc-input-feedback"].join(", ")).first()),t.length&&t.html(e).slideDown("fast")} /** * WHMCS authentication module * * @copyright Copyright (c) WHMCS Limited 2005-2017 * @license http://www.whmcs.com/license/ WHMCS Eula */!function(e,t){"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(e,t){var n=[],i=e.document,r=n.slice,a=n.concat,o=n.push,s=n.indexOf,d={},l=d.toString,u=d.hasOwnProperty,c={},h="1.12.4",f=function(e,t){return new f.fn.init(e,t)},p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,g=/^-ms-/,m=/-([\da-z])/gi,v=function(e,t){return t.toUpperCase()};function y(e){var t=!!e&&"length"in e&&e.length,n=f.type(e);return"function"!==n&&!f.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}f.fn=f.prototype={jquery:h,constructor:f,selector:"",length:0,toArray:function(){return r.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:r.call(this)},pushStack:function(e){var t=f.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return f.each(this,e)},map:function(e){return this.pushStack(f.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(r.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==f.type(e)||e.nodeType||f.isWindow(e))return!1;try{if(e.constructor&&!u.call(e,"constructor")&&!u.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}if(!c.ownFirst)for(t in e)return u.call(e,t);for(t in e);return void 0===t||u.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[l.call(e)]||"object":typeof e},globalEval:function(t){t&&f.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(g,"ms-").replace(m,v)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,i=0;if(y(e))for(n=e.length;i+~]|"+O+")"+O+"*"),q=new RegExp("="+O+"*([^\\]'\"]*?)"+O+"*\\]","g"),z=new RegExp(Q),G=new RegExp("^"+H+"$"),V={ID:new RegExp("^#("+H+")"),CLASS:new RegExp("^\\.("+H+")"),TAG:new RegExp("^("+H+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+Q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^"+O+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)","i")},K=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,Y=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/[+~]/,ee=/'|\\/g,te=new RegExp("\\\\([\\da-f]{1,6}"+O+"?|("+O+")|.)","ig"),ne=function(e,t,n){var i="0x"+t-65536;return i!=i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},ie=function(){h()};try{N.apply(I=L.call(C.childNodes),C.childNodes),I[C.childNodes.length].nodeType}catch(e){N={apply:I.length?function(e,t){E.apply(e,L.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function re(e,t,i,r){var a,s,l,u,c,p,v,y,w=t&&t.ownerDocument,_=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==_&&9!==_&&11!==_)return i;if(!r&&((t?t.ownerDocument||t:C)!==f&&h(t),t=t||f,g)){if(11!==_&&(p=Y.exec(e)))if(a=p[1]){if(9===_){if(!(l=t.getElementById(a)))return i;if(l.id===a)return i.push(l),i}else if(w&&(l=w.getElementById(a))&&b(t,l)&&l.id===a)return i.push(l),i}else{if(p[2])return N.apply(i,t.getElementsByTagName(e)),i;if((a=p[3])&&n.getElementsByClassName&&t.getElementsByClassName)return N.apply(i,t.getElementsByClassName(a)),i}if(n.qsa&&!T[e+" "]&&(!m||!m.test(e))){if(1!==_)w=t,y=e;else if("object"!==t.nodeName.toLowerCase()){for((u=t.getAttribute("id"))?u=u.replace(ee,"\\$&"):t.setAttribute("id",u=$),s=(v=o(e)).length,c=G.test(u)?"#"+u:"[id='"+u+"']";s--;)v[s]=c+" "+ge(v[s]);y=v.join(","),w=Z.test(e)&&fe(t.parentNode)||t}if(y)try{return N.apply(i,w.querySelectorAll(y)),i}catch(e){}finally{u===$&&t.removeAttribute("id")}}}return d(e.replace(B,"$1"),t,i,r)}function ae(){var e=[];return function t(n,r){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=r}}function oe(e){return e[$]=!0,e}function se(e){var t=f.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),r=n.length;r--;)i.attrHandle[n[r]]=t}function le(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||D)-(~e.sourceIndex||D);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ue(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function ce(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function he(e){return oe((function(t){return t=+t,oe((function(n,i){for(var r,a=e([],n.length,t),o=a.length;o--;)n[r=a[o]]&&(n[r]=!(i[r]=n[r]))}))}))}function fe(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=re.support={},a=re.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},h=re.setDocument=function(e){var t,r,o=e?e.ownerDocument||e:C;return o!==f&&9===o.nodeType&&o.documentElement?(p=(f=o).documentElement,g=!a(f),(r=f.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",ie,!1):r.attachEvent&&r.attachEvent("onunload",ie)),n.attributes=se((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=se((function(e){return e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=X.test(f.getElementsByClassName),n.getById=se((function(e){return p.appendChild(e).id=$,!f.getElementsByName||!f.getElementsByName($).length})),n.getById?(i.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}},i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}}):(delete i.find.ID,i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),i.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,a=t.getElementsByTagName(e);if("*"===e){for(;n=a[r++];)1===n.nodeType&&i.push(n);return i}return a},i.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},v=[],m=[],(n.qsa=X.test(f.querySelectorAll))&&(se((function(e){p.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+O+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+O+"*(?:value|"+P+")"),e.querySelectorAll("[id~="+$+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+$+"+*").length||m.push(".#.+[+~]")})),se((function(e){var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+O+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")}))),(n.matchesSelector=X.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&se((function(e){n.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),v.push("!=",Q)})),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),t=X.test(p.compareDocumentPosition),b=t||X.test(p.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},k=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)||!n.sortDetached&&t.compareDocumentPosition(e)===i?e===f||e.ownerDocument===C&&b(C,e)?-1:t===f||t.ownerDocument===C&&b(C,t)?1:u?M(u,e)-M(u,t):0:4&i?-1:1)}:function(e,t){if(e===t)return c=!0,0;var n,i=0,r=e.parentNode,a=t.parentNode,o=[e],s=[t];if(!r||!a)return e===f?-1:t===f?1:r?-1:a?1:u?M(u,e)-M(u,t):0;if(r===a)return le(e,t);for(n=e;n=n.parentNode;)o.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;o[i]===s[i];)i++;return i?le(o[i],s[i]):o[i]===C?-1:s[i]===C?1:0},f):f},re.matches=function(e,t){return re(e,null,null,t)},re.matchesSelector=function(e,t){if((e.ownerDocument||e)!==f&&h(e),t=t.replace(q,"='$1']"),n.matchesSelector&&g&&!T[t+" "]&&(!v||!v.test(t))&&(!m||!m.test(t)))try{var i=y.call(e,t);if(i||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){}return re(t,f,null,[e]).length>0},re.contains=function(e,t){return(e.ownerDocument||e)!==f&&h(e),b(e,t)},re.attr=function(e,t){(e.ownerDocument||e)!==f&&h(e);var r=i.attrHandle[t.toLowerCase()],a=r&&j.call(i.attrHandle,t.toLowerCase())?r(e,t,!g):void 0;return void 0!==a?a:n.attributes||!g?e.getAttribute(t):(a=e.getAttributeNode(t))&&a.specified?a.value:null},re.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},re.uniqueSort=function(e){var t,i=[],r=0,a=0;if(c=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(k),c){for(;t=e[a++];)t===e[a]&&(r=i.push(a));for(;r--;)e.splice(i[r],1)}return u=null,e},r=re.getText=function(e){var t,n="",i=0,a=e.nodeType;if(a){if(1===a||9===a||11===a){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=r(e)}else if(3===a||4===a)return e.nodeValue}else for(;t=e[i++];)n+=r(t);return n},i=re.selectors={cacheLength:50,createPseudo:oe,match:V,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(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||re.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]&&re.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return V.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&z.test(n)&&(t=o(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=S[e+" "];return t||(t=new RegExp("(^|"+O+")"+e+"("+O+"|$)"))&&S(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(i){var r=re.attr(i,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&r.indexOf(n)>-1:"$="===t?n&&r.slice(-n.length)===n:"~="===t?(" "+r.replace(R," ")+" ").indexOf(n)>-1:"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,r){var a="nth"!==e.slice(0,3),o="last"!==e.slice(-4),s="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,d){var l,u,c,h,f,p,g=a!==o?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!d&&!s,b=!1;if(m){if(a){for(;g;){for(h=t;h=h[g];)if(s?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;p=g="only"===e&&!p&&"nextSibling"}return!0}if(p=[o?m.firstChild:m.lastChild],o&&y){for(b=(f=(l=(u=(c=(h=m)[$]||(h[$]={}))[h.uniqueID]||(c[h.uniqueID]={}))[e]||[])[0]===w&&l[1])&&l[2],h=f&&m.childNodes[f];h=++f&&h&&h[g]||(b=f=0)||p.pop();)if(1===h.nodeType&&++b&&h===t){u[e]=[w,f,b];break}}else if(y&&(b=f=(l=(u=(c=(h=t)[$]||(h[$]={}))[h.uniqueID]||(c[h.uniqueID]={}))[e]||[])[0]===w&&l[1]),!1===b)for(;(h=++f&&h&&h[g]||(b=f=0)||p.pop())&&((s?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++b||(y&&((u=(c=h[$]||(h[$]={}))[h.uniqueID]||(c[h.uniqueID]={}))[e]=[w,b]),h!==t)););return(b-=r)===i||b%i==0&&b/i>=0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||re.error("unsupported pseudo: "+e);return r[$]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?oe((function(e,n){for(var i,a=r(e,t),o=a.length;o--;)e[i=M(e,a[o])]=!(n[i]=a[o])})):function(e){return r(e,0,n)}):r}},pseudos:{not:oe((function(e){var t=[],n=[],i=s(e.replace(B,"$1"));return i[$]?oe((function(e,t,n,r){for(var a,o=i(e,null,r,[]),s=e.length;s--;)(a=o[s])&&(e[s]=!(t[s]=a))})):function(e,r,a){return t[0]=e,i(t,null,a,n),t[0]=null,!n.pop()}})),has:oe((function(e){return function(t){return re(e,t).length>0}})),contains:oe((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||t.innerText||r(t)).indexOf(e)>-1}})),lang:oe((function(e){return G.test(e||"")||re.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},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!i.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return K.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:he((function(){return[0]})),last:he((function(e,t){return[t-1]})),eq:he((function(e,t,n){return[n<0?n+t:n]})),even:he((function(e,t){for(var n=0;n=0;)e.push(i);return e})),gt:he((function(e,t,n){for(var i=n<0?n+t:n;++i1?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function ye(e,t,n,i,r){for(var a,o=[],s=0,d=e.length,l=null!=t;s-1&&(a[l]=!(o[l]=c))}}else v=ye(v===o?v.splice(p,v.length):v),r?r(null,o,v,d):N.apply(o,v)}))}function $e(e){for(var t,n,r,a=e.length,o=i.relative[e[0].type],s=o||i.relative[" "],d=o?1:0,u=me((function(e){return e===t}),s,!0),c=me((function(e){return M(t,e)>-1}),s,!0),h=[function(e,n,i){var r=!o&&(i||n!==l)||((t=n).nodeType?u(e,n,i):c(e,n,i));return t=null,r}];d1&&ve(h),d>1&&ge(e.slice(0,d-1).concat({value:" "===e[d-2].type?"*":""})).replace(B,"$1"),n,d0,r=e.length>0,a=function(a,o,s,d,u){var c,p,m,v=0,y="0",b=a&&[],$=[],C=l,_=a||r&&i.find.TAG("*",u),S=w+=null==C?1:Math.random()||.1,x=_.length;for(u&&(l=o===f||o||u);y!==x&&null!=(c=_[y]);y++){if(r&&c){for(p=0,o||c.ownerDocument===f||(h(c),s=!g);m=e[p++];)if(m(c,o||f,s)){d.push(c);break}u&&(w=S)}n&&((c=!m&&c)&&v--,a&&b.push(c))}if(v+=y,n&&y!==v){for(p=0;m=t[p++];)m(b,$,o,s);if(a){if(v>0)for(;y--;)b[y]||$[y]||($[y]=A.call(d));$=ye($)}N.apply(d,$),u&&!a&&$.length>0&&v+t.length>1&&re.uniqueSort(d)}return u&&(w=S,l=C),b};return n?oe(a):a}(a,r)),s.selector=e}return s},d=re.select=function(e,t,r,a){var d,l,u,c,h,f="function"==typeof e&&e,p=!a&&o(e=f.selector||e);if(r=r||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"ID"===(u=l[0]).type&&n.getById&&9===t.nodeType&&g&&i.relative[l[1].type]){if(!(t=(i.find.ID(u.matches[0].replace(te,ne),t)||[])[0]))return r;f&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(d=V.needsContext.test(e)?0:l.length;d--&&(u=l[d],!i.relative[c=u.type]);)if((h=i.find[c])&&(a=h(u.matches[0].replace(te,ne),Z.test(l[0].type)&&fe(t.parentNode)||t))){if(l.splice(d,1),!(e=a.length&&ge(l)))return N.apply(r,a),r;break}}return(f||s(e,p))(a,t,!g,r,!t||Z.test(e)&&fe(t.parentNode)||t),r},n.sortStable=$.split("").sort(k).join("")===$,n.detectDuplicates=!!c,h(),n.sortDetached=se((function(e){return 1&e.compareDocumentPosition(f.createElement("div"))})),se((function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")}))||de("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&se((function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||de("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),se((function(e){return null==e.getAttribute("disabled")}))||de(P,(function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null})),re}(e);f.find=b,f.expr=b.selectors,f.expr[":"]=f.expr.pseudos,f.uniqueSort=f.unique=b.uniqueSort,f.text=b.getText,f.isXMLDoc=b.isXML,f.contains=b.contains;var $=function(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&f(e).is(n))break;i.push(e)}return i},C=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},w=f.expr.match.needsContext,_=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,S=/^.[^:#\[\.,]*$/;function x(e,t,n){if(f.isFunction(t))return f.grep(e,(function(e,i){return!!t.call(e,i,e)!==n}));if(t.nodeType)return f.grep(e,(function(e){return e===t!==n}));if("string"==typeof t){if(S.test(t))return f.filter(t,e,n);t=f.filter(t,e)}return f.grep(e,(function(e){return f.inArray(e,t)>-1!==n}))}f.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?f.find.matchesSelector(i,e)?[i]:[]:f.find.matches(e,f.grep(t,(function(e){return 1===e.nodeType})))},f.fn.extend({find:function(e){var t,n=[],i=this,r=i.length;if("string"!=typeof e)return this.pushStack(f(e).filter((function(){for(t=0;t1?f.unique(n):n)).selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(x(this,e||[],!1))},not:function(e){return this.pushStack(x(this,e||[],!0))},is:function(e){return!!x(this,"string"==typeof e&&w.test(e)?f(e):e||[],!1).length}});var T,k=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(f.fn.init=function(e,t,n){var r,a;if(!e)return this;if(n=n||T,"string"==typeof e){if(!(r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:k.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof f?t[0]:t,f.merge(this,f.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:i,!0)),_.test(r[1])&&f.isPlainObject(t))for(r in t)f.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}if((a=i.getElementById(r[2]))&&a.parentNode){if(a.id!==r[2])return T.find(e);this.length=1,this[0]=a}return this.context=i,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):f.isFunction(e)?void 0!==n.ready?n.ready(e):e(f):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),f.makeArray(e,this))}).prototype=f.fn,T=f(i);var D=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function I(e,t){do{e=e[t]}while(e&&1!==e.nodeType);return e}f.fn.extend({has:function(e){var t,n=f(e,this),i=n.length;return this.filter((function(){for(t=0;t-1:1===n.nodeType&&f.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(a.length>1?f.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?f.inArray(this[0],f(e)):f.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(f.uniqueSort(f.merge(this.get(),f(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),f.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return $(e,"parentNode")},parentsUntil:function(e,t,n){return $(e,"parentNode",n)},next:function(e){return I(e,"nextSibling")},prev:function(e){return I(e,"previousSibling")},nextAll:function(e){return $(e,"nextSibling")},prevAll:function(e){return $(e,"previousSibling")},nextUntil:function(e,t,n){return $(e,"nextSibling",n)},prevUntil:function(e,t,n){return $(e,"previousSibling",n)},siblings:function(e){return C((e.parentNode||{}).firstChild,e)},children:function(e){return C(e.firstChild)},contents:function(e){return f.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:f.merge([],e.childNodes)}},(function(e,t){f.fn[e]=function(n,i){var r=f.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=f.filter(i,r)),this.length>1&&(j[e]||(r=f.uniqueSort(r)),D.test(e)&&(r=r.reverse())),this.pushStack(r)}}));var A,E,N=/\S+/g;function L(){i.addEventListener?(i.removeEventListener("DOMContentLoaded",M),e.removeEventListener("load",M)):(i.detachEvent("onreadystatechange",M),e.detachEvent("onload",M))}function M(){(i.addEventListener||"load"===e.event.type||"complete"===i.readyState)&&(L(),f.ready())}for(E in f.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return f.each(e.match(N)||[],(function(e,n){t[n]=!0})),t}(e):f.extend({},e);var t,n,i,r,a=[],o=[],s=-1,d=function(){for(r=e.once,i=t=!0;o.length;s=-1)for(n=o.shift();++s-1;)a.splice(n,1),n<=s&&s--})),this},has:function(e){return e?f.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return r=o=[],a=n="",this},disabled:function(){return!a},lock:function(){return r=!0,n||l.disable(),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=[e,(n=n||[]).slice?n.slice():n],o.push(n),t||d()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!i}};return l},f.extend({Deferred:function(e){var t=[["resolve","done",f.Callbacks("once memory"),"resolved"],["reject","fail",f.Callbacks("once memory"),"rejected"],["notify","progress",f.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var e=arguments;return f.Deferred((function(n){f.each(t,(function(t,a){var o=f.isFunction(e[t])&&e[t];r[a[1]]((function(){var e=o&&o.apply(this,arguments);e&&f.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[a[0]+"With"](this===i?n.promise():this,o?[e]:arguments)}))})),e=null})).promise()},promise:function(e){return null!=e?f.extend(e,i):i}},r={};return i.pipe=i.then,f.each(t,(function(e,a){var o=a[2],s=a[3];i[a[1]]=o.add,s&&o.add((function(){n=s}),t[1^e][2].disable,t[2][2].lock),r[a[0]]=function(){return r[a[0]+"With"](this===r?i:this,arguments),this},r[a[0]+"With"]=o.fireWith})),i.promise(r),e&&e.call(r,r),r},when:function(e){var t,n,i,a=0,o=r.call(arguments),s=o.length,d=1!==s||e&&f.isFunction(e.promise)?s:0,l=1===d?e:f.Deferred(),u=function(e,n,i){return function(a){n[e]=this,i[e]=arguments.length>1?r.call(arguments):a,i===t?l.notifyWith(n,i):--d||l.resolveWith(n,i)}};if(s>1)for(t=new Array(s),n=new Array(s),i=new Array(s);a0||(A.resolveWith(i,[f]),f.fn.triggerHandler&&(f(i).triggerHandler("ready"),f(i).off("ready"))))}}),f.ready.promise=function(t){if(!A)if(A=f.Deferred(),"complete"===i.readyState||"loading"!==i.readyState&&!i.documentElement.doScroll)e.setTimeout(f.ready);else if(i.addEventListener)i.addEventListener("DOMContentLoaded",M),e.addEventListener("load",M);else{i.attachEvent("onreadystatechange",M),e.attachEvent("onload",M);var n=!1;try{n=null==e.frameElement&&i.documentElement}catch(e){}n&&n.doScroll&&function t(){if(!f.isReady){try{n.doScroll("left")}catch(n){return e.setTimeout(t,50)}L(),f.ready()}}()}return A.promise(t)},f.ready.promise(),f(c))break;c.ownFirst="0"===E,c.inlineBlockNeedsLayout=!1,f((function(){var e,t,n,r;(n=i.getElementsByTagName("body")[0])&&n.style&&(t=i.createElement("div"),(r=i.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),void 0!==t.style.zoom&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",c.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(n.style.zoom=1)),n.removeChild(r))})),function(){var e=i.createElement("div");c.deleteExpando=!0;try{delete e.test}catch(e){c.deleteExpando=!1}e=null}();var P,O=function(e){var t=f.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return(1===n||9===n)&&(!t||!0!==t&&e.getAttribute("classid")===t)},H=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,F=/([A-Z])/g;function Q(e,t,n){if(void 0===n&&1===e.nodeType){var i="data-"+t.replace(F,"-$1").toLowerCase();if("string"==typeof(n=e.getAttribute(i))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:H.test(n)?f.parseJSON(n):n)}catch(e){}f.data(e,t,n)}else n=void 0}return n}function R(e){var t;for(t in e)if(("data"!==t||!f.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function B(e,t,i,r){if(O(e)){var a,o,s=f.expando,d=e.nodeType,l=d?f.cache:e,u=d?e[s]:e[s]&&s;if(u&&l[u]&&(r||l[u].data)||void 0!==i||"string"!=typeof t)return u||(u=d?e[s]=n.pop()||f.guid++:s),l[u]||(l[u]=d?{}:{toJSON:f.noop}),"object"!=typeof t&&"function"!=typeof t||(r?l[u]=f.extend(l[u],t):l[u].data=f.extend(l[u].data,t)),o=l[u],r||(o.data||(o.data={}),o=o.data),void 0!==i&&(o[f.camelCase(t)]=i),"string"==typeof t?null==(a=o[t])&&(a=o[f.camelCase(t)]):a=o,a}}function W(e,t,n){if(O(e)){var i,r,a=e.nodeType,o=a?f.cache:e,s=a?e[f.expando]:f.expando;if(o[s]){if(t&&(i=n?o[s]:o[s].data)){r=(t=f.isArray(t)?t.concat(f.map(t,f.camelCase)):t in i||(t=f.camelCase(t))in i?[t]:t.split(" ")).length;for(;r--;)delete i[t[r]];if(n?!R(i):!f.isEmptyObject(i))return}(n||(delete o[s].data,R(o[s])))&&(a?f.cleanData([e],!0):c.deleteExpando||o!=o.window?delete o[s]:o[s]=void 0)}}}f.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return!!(e=e.nodeType?f.cache[e[f.expando]]:e[f.expando])&&!R(e)},data:function(e,t,n){return B(e,t,n)},removeData:function(e,t){return W(e,t)},_data:function(e,t,n){return B(e,t,n,!0)},_removeData:function(e,t){return W(e,t,!0)}}),f.fn.extend({data:function(e,t){var n,i,r,a=this[0],o=a&&a.attributes;if(void 0===e){if(this.length&&(r=f.data(a),1===a.nodeType&&!f._data(a,"parsedAttrs"))){for(n=o.length;n--;)o[n]&&0===(i=o[n].name).indexOf("data-")&&Q(a,i=f.camelCase(i.slice(5)),r[i]);f._data(a,"parsedAttrs",!0)}return r}return"object"==typeof e?this.each((function(){f.data(this,e)})):arguments.length>1?this.each((function(){f.data(this,e,t)})):a?Q(a,e,f.data(a,e)):void 0},removeData:function(e){return this.each((function(){f.removeData(this,e)}))}}),f.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=f._data(e,t),n&&(!i||f.isArray(n)?i=f._data(e,t,f.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=f.queue(e,t),i=n.length,r=n.shift(),a=f._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete a.stop,r.call(e,(function(){f.dequeue(e,t)}),a)),!i&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return f._data(e,n)||f._data(e,n,{empty:f.Callbacks("once memory").add((function(){f._removeData(e,t+"queue"),f._removeData(e,n)}))})}}),f.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length
a",c.leadingWhitespace=3===K.firstChild.nodeType,c.tbody=!K.getElementsByTagName("tbody").length,c.htmlSerialize=!!K.getElementsByTagName("link").length,c.html5Clone="<:nav>"!==i.createElement("nav").cloneNode(!0).outerHTML,X.type="checkbox",X.checked=!0,J.appendChild(X),c.appendChecked=X.checked,K.innerHTML="",c.noCloneChecked=!!K.cloneNode(!0).lastChild.defaultValue,J.appendChild(K),(X=i.createElement("input")).setAttribute("type","radio"),X.setAttribute("checked","checked"),X.setAttribute("name","t"),K.appendChild(X),c.checkClone=K.cloneNode(!0).cloneNode(!0).lastChild.checked,c.noCloneEvent=!!K.addEventListener,K[f.expando]=1,c.attributes=!K.getAttribute(f.expando);var ae={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:c.htmlSerialize?[0,"",""]:[1,"X
","
"]};function oe(e,t){var n,i,r=0,a=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):void 0;if(!a)for(a=[],n=e.childNodes||e;null!=(i=n[r]);r++)!t||f.nodeName(i,t)?a.push(i):f.merge(a,oe(i,t));return void 0===t||t&&f.nodeName(e,t)?f.merge([e],a):a}function se(e,t){for(var n,i=0;null!=(n=e[i]);i++)f._data(n,"globalEval",!t||f._data(t[i],"globalEval"))}ae.optgroup=ae.option,ae.tbody=ae.tfoot=ae.colgroup=ae.caption=ae.thead,ae.th=ae.td;var de=/<|&#?\w+;/,le=/"!==h[1]||le.test(o)?0:d:d.firstChild)&&o.childNodes.length;a--;)f.nodeName(u=o.childNodes[a],"tbody")&&!u.childNodes.length&&o.removeChild(u);for(f.merge(m,d.childNodes),d.textContent="";d.firstChild;)d.removeChild(d.firstChild);d=g.lastChild}else m.push(t.createTextNode(o));for(d&&g.removeChild(d),c.appendChecked||f.grep(oe(m,"input"),ue),v=0;o=m[v++];)if(i&&f.inArray(o,i)>-1)r&&r.push(o);else if(s=f.contains(o.ownerDocument,o),d=oe(g.appendChild(o),"script"),s&&se(d),n)for(a=0;o=d[a++];)te.test(o.type||"")&&n.push(o);return d=null,g}!function(){var t,n,r=i.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})n="on"+t,(c[t]=n in e)||(r.setAttribute(n,"t"),c[t]=!1===r.attributes[n].expando);r=null}();var he=/^(?:input|select|textarea)$/i,fe=/^key/,pe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ge=/^(?:focusinfocus|focusoutblur)$/,me=/^([^.]*)(?:\.(.+)|)/;function ve(){return!0}function ye(){return!1}function be(){try{return i.activeElement}catch(e){}}function $e(e,t,n,i,r,a){var o,s;if("object"==typeof t){for(s in"string"!=typeof n&&(i=i||n,n=void 0),t)$e(e,s,n,i,t[s],a);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=ye;else if(!r)return e;return 1===a&&(o=r,r=function(e){return f().off(e),o.apply(this,arguments)},r.guid=o.guid||(o.guid=f.guid++)),e.each((function(){f.event.add(this,t,r,i,n)}))}f.event={global:{},add:function(e,t,n,i,r){var a,o,s,d,l,u,c,h,p,g,m,v=f._data(e);if(v){for(n.handler&&(n=(d=n).handler,r=d.selector),n.guid||(n.guid=f.guid++),(o=v.events)||(o=v.events={}),(u=v.handle)||(u=v.handle=function(e){return void 0===f||e&&f.event.triggered===e.type?void 0:f.event.dispatch.apply(u.elem,arguments)},u.elem=e),s=(t=(t||"").match(N)||[""]).length;s--;)p=m=(a=me.exec(t[s])||[])[1],g=(a[2]||"").split(".").sort(),p&&(l=f.event.special[p]||{},p=(r?l.delegateType:l.bindType)||p,l=f.event.special[p]||{},c=f.extend({type:p,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&f.expr.match.needsContext.test(r),namespace:g.join(".")},d),(h=o[p])||((h=o[p]=[]).delegateCount=0,l.setup&&!1!==l.setup.call(e,i,g,u)||(e.addEventListener?e.addEventListener(p,u,!1):e.attachEvent&&e.attachEvent("on"+p,u))),l.add&&(l.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,c):h.push(c),f.event.global[p]=!0);e=null}},remove:function(e,t,n,i,r){var a,o,s,d,l,u,c,h,p,g,m,v=f.hasData(e)&&f._data(e);if(v&&(u=v.events)){for(l=(t=(t||"").match(N)||[""]).length;l--;)if(p=m=(s=me.exec(t[l])||[])[1],g=(s[2]||"").split(".").sort(),p){for(c=f.event.special[p]||{},h=u[p=(i?c.delegateType:c.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"),d=a=h.length;a--;)o=h[a],!r&&m!==o.origType||n&&n.guid!==o.guid||s&&!s.test(o.namespace)||i&&i!==o.selector&&("**"!==i||!o.selector)||(h.splice(a,1),o.selector&&h.delegateCount--,c.remove&&c.remove.call(e,o));d&&!h.length&&(c.teardown&&!1!==c.teardown.call(e,g,v.handle)||f.removeEvent(e,p,v.handle),delete u[p])}else for(p in u)f.event.remove(e,p+t[l],n,i,!0);f.isEmptyObject(u)&&(delete v.handle,f._removeData(e,"events"))}},trigger:function(t,n,r,a){var o,s,d,l,c,h,p,g=[r||i],m=u.call(t,"type")?t.type:t,v=u.call(t,"namespace")?t.namespace.split("."):[];if(d=h=r=r||i,3!==r.nodeType&&8!==r.nodeType&&!ge.test(m+f.event.triggered)&&(m.indexOf(".")>-1&&(v=m.split("."),m=v.shift(),v.sort()),s=m.indexOf(":")<0&&"on"+m,(t=t[f.expando]?t:new f.Event(m,"object"==typeof t&&t)).isTrigger=a?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:f.makeArray(n,[t]),c=f.event.special[m]||{},a||!c.trigger||!1!==c.trigger.apply(r,n))){if(!a&&!c.noBubble&&!f.isWindow(r)){for(l=c.delegateType||m,ge.test(l+m)||(d=d.parentNode);d;d=d.parentNode)g.push(d),h=d;h===(r.ownerDocument||i)&&g.push(h.defaultView||h.parentWindow||e)}for(p=0;(d=g[p++])&&!t.isPropagationStopped();)t.type=p>1?l:c.bindType||m,(o=(f._data(d,"events")||{})[t.type]&&f._data(d,"handle"))&&o.apply(d,n),(o=s&&d[s])&&o.apply&&O(d)&&(t.result=o.apply(d,n),!1===t.result&&t.preventDefault());if(t.type=m,!a&&!t.isDefaultPrevented()&&(!c._default||!1===c._default.apply(g.pop(),n))&&O(r)&&s&&r[m]&&!f.isWindow(r)){(h=r[s])&&(r[s]=null),f.event.triggered=m;try{r[m]()}catch(e){}f.event.triggered=void 0,h&&(r[s]=h)}return t.result}},dispatch:function(e){e=f.event.fix(e);var t,n,i,a,o,s,d=r.call(arguments),l=(f._data(this,"events")||{})[e.type]||[],u=f.event.special[e.type]||{};if(d[0]=e,e.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,e)){for(s=f.event.handlers.call(this,e,l),t=0;(a=s[t++])&&!e.isPropagationStopped();)for(e.currentTarget=a.elem,n=0;(o=a.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(o.namespace)||(e.handleObj=o,e.data=o.data,void 0!==(i=((f.event.special[o.origType]||{}).handle||o.handler).apply(a.elem,d))&&!1===(e.result=i)&&(e.preventDefault(),e.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,i,r,a,o=[],s=t.delegateCount,d=e.target;if(s&&d.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;d!=this;d=d.parentNode||this)if(1===d.nodeType&&(!0!==d.disabled||"click"!==e.type)){for(i=[],n=0;n-1:f.find(r,this,null,[d]).length),i[r]&&i.push(a);i.length&&o.push({elem:d,handlers:i})}return s]","i"),_e=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Se=/\s*$/g,De=re(i).appendChild(i.createElement("div"));function je(e,t){return f.nodeName(e,"table")&&f.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function Ie(e){return e.type=(null!==f.find.attr(e,"type"))+"/"+e.type,e}function Ae(e){var t=Te.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Ee(e,t){if(1===t.nodeType&&f.hasData(e)){var n,i,r,a=f._data(e),o=f._data(t,a),s=a.events;if(s)for(n in delete o.handle,o.events={},s)for(i=0,r=s[n].length;i1&&"string"==typeof m&&!c.checkClone&&xe.test(m))return e.each((function(r){var a=e.eq(r);v&&(t[0]=m.call(this,r,a.html())),Le(a,t,n,i)}));if(p&&(r=(u=ce(t,e[0].ownerDocument,!1,e,i)).firstChild,1===u.childNodes.length&&(u=r),r||i)){for(s=(d=f.map(oe(u,"script"),Ie)).length;h")},clone:function(e,t,n){var i,r,a,o,s,d=f.contains(e.ownerDocument,e);if(c.html5Clone||f.isXMLDoc(e)||!we.test("<"+e.nodeName+">")?a=e.cloneNode(!0):(De.innerHTML=e.outerHTML,De.removeChild(a=De.firstChild)),!(c.noCloneEvent&&c.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||f.isXMLDoc(e)))for(i=oe(a),s=oe(e),o=0;null!=(r=s[o]);++o)i[o]&&Ne(r,i[o]);if(t)if(n)for(s=s||oe(e),i=i||oe(a),o=0;null!=(r=s[o]);o++)Ee(r,i[o]);else Ee(e,a);return(i=oe(a,"script")).length>0&&se(i,!d&&oe(e,"script")),i=s=r=null,a},cleanData:function(e,t){for(var i,r,a,o,s=0,d=f.expando,l=f.cache,u=c.attributes,h=f.event.special;null!=(i=e[s]);s++)if((t||O(i))&&(o=(a=i[d])&&l[a])){if(o.events)for(r in o.events)h[r]?f.event.remove(i,r):f.removeEvent(i,r,o.handle);l[a]&&(delete l[a],u||void 0===i.removeAttribute?i[d]=void 0:i.removeAttribute(d),n.push(a))}}}),f.fn.extend({domManip:Le,detach:function(e){return Me(this,e,!0)},remove:function(e){return Me(this,e)},text:function(e){return Y(this,(function(e){return void 0===e?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||i).createTextNode(e))}),null,e,arguments.length)},append:function(){return Le(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||je(this,e).appendChild(e)}))},prepend:function(){return Le(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=je(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Le(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Le(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&f.cleanData(oe(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&f.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return f.clone(this,e,t)}))},html:function(e){return Y(this,(function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(Ce,""):void 0;if("string"==typeof e&&!Se.test(e)&&(c.htmlSerialize||!we.test(e))&&(c.leadingWhitespace||!ne.test(e))&&!ae[(ee.exec(e)||["",""])[1].toLowerCase()]){e=f.htmlPrefilter(e);try{for(;n")).appendTo(t.documentElement))[0].contentWindow||Pe[0].contentDocument).document).write(),t.close(),n=He(e,t),Pe.detach()),Oe[e]=n),n}var Qe=/^margin/,Re=new RegExp("^("+U+")(?!px)[a-z%]+$","i"),Be=function(e,t,n,i){var r,a,o={};for(a in t)o[a]=e.style[a],e.style[a]=t[a];for(a in r=n.apply(e,i||[]),t)e.style[a]=o[a];return r},We=i.documentElement;!function(){var t,n,r,a,o,s,d=i.createElement("div"),l=i.createElement("div");function u(){var u,c,h=i.documentElement;h.appendChild(d),l.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%",t=r=s=!1,n=o=!0,e.getComputedStyle&&(c=e.getComputedStyle(l),t="1%"!==(c||{}).top,s="2px"===(c||{}).marginLeft,r="4px"===(c||{width:"4px"}).width,l.style.marginRight="50%",n="4px"===(c||{marginRight:"4px"}).marginRight,(u=l.appendChild(i.createElement("div"))).style.cssText=l.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",u.style.marginRight=u.style.width="0",l.style.width="1px",o=!parseFloat((e.getComputedStyle(u)||{}).marginRight),l.removeChild(u)),l.style.display="none",(a=0===l.getClientRects().length)&&(l.style.display="",l.innerHTML="
t
",l.childNodes[0].style.borderCollapse="separate",(u=l.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(a=0===u[0].offsetHeight)&&(u[0].style.display="",u[1].style.display="none",a=0===u[0].offsetHeight)),h.removeChild(d)}l.style&&(l.style.cssText="float:left;opacity:.5",c.opacity="0.5"===l.style.opacity,c.cssFloat=!!l.style.cssFloat,l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",c.clearCloneStyle="content-box"===l.style.backgroundClip,(d=i.createElement("div")).style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",l.innerHTML="",d.appendChild(l),c.boxSizing=""===l.style.boxSizing||""===l.style.MozBoxSizing||""===l.style.WebkitBoxSizing,f.extend(c,{reliableHiddenOffsets:function(){return null==t&&u(),a},boxSizingReliable:function(){return null==t&&u(),r},pixelMarginRight:function(){return null==t&&u(),n},pixelPosition:function(){return null==t&&u(),t},reliableMarginRight:function(){return null==t&&u(),o},reliableMarginLeft:function(){return null==t&&u(),s}}))}();var Ue,qe,ze=/^(top|right|bottom|left)$/;function Ge(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}e.getComputedStyle?(Ue=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},qe=function(e,t,n){var i,r,a,o,s=e.style;return""!==(o=(n=n||Ue(e))?n.getPropertyValue(t)||n[t]:void 0)&&void 0!==o||f.contains(e.ownerDocument,e)||(o=f.style(e,t)),n&&!c.pixelMarginRight()&&Re.test(o)&&Qe.test(t)&&(i=s.width,r=s.minWidth,a=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=n.width,s.width=i,s.minWidth=r,s.maxWidth=a),void 0===o?o:o+""}):We.currentStyle&&(Ue=function(e){return e.currentStyle},qe=function(e,t,n){var i,r,a,o,s=e.style;return null==(o=(n=n||Ue(e))?n[t]:void 0)&&s&&s[t]&&(o=s[t]),Re.test(o)&&!ze.test(t)&&(i=s.left,(a=(r=e.runtimeStyle)&&r.left)&&(r.left=e.currentStyle.left),s.left="fontSize"===t?"1em":o,o=s.pixelLeft+"px",s.left=i,a&&(r.left=a)),void 0===o?o:o+""||"auto"});var Ve=/alpha\([^)]*\)/i,Ke=/opacity\s*=\s*([^)]*)/i,Je=/^(none|table(?!-c[ea]).+)/,Xe=new RegExp("^("+U+")(.*)$","i"),Ye={position:"absolute",visibility:"hidden",display:"block"},Ze={letterSpacing:"0",fontWeight:"400"},et=["Webkit","O","Moz","ms"],tt=i.createElement("div").style;function nt(e){if(e in tt)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=et.length;n--;)if((e=et[n]+t)in tt)return e}function it(e,t){for(var n,i,r,a=[],o=0,s=e.length;o=1||""===t)&&""===f.trim(a.replace(Ve,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||i&&!i.filter)||(n.filter=Ve.test(a)?a.replace(Ve,r):a+" "+r)}}),f.cssHooks.marginRight=Ge(c.reliableMarginRight,(function(e,t){if(t)return Be(e,{display:"inline-block"},qe,[e,"marginRight"])})),f.cssHooks.marginLeft=Ge(c.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(qe(e,"marginLeft"))||(f.contains(e.ownerDocument,e)?e.getBoundingClientRect().left-Be(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})):0))+"px"})),f.each({margin:"",padding:"",border:"Width"},(function(e,t){f.cssHooks[e+t]={expand:function(n){for(var i=0,r={},a="string"==typeof n?n.split(" "):[n];i<4;i++)r[e+z[i]+t]=a[i]||a[i-2]||a[0];return r}},Qe.test(e)||(f.cssHooks[e+t].set=rt)})),f.fn.extend({css:function(e,t){return Y(this,(function(e,t,n){var i,r,a={},o=0;if(f.isArray(t)){for(i=Ue(e),r=t.length;o1)},show:function(){return it(this,!0)},hide:function(){return it(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){G(this)?f(this).show():f(this).hide()}))}}),f.Tween=st,st.prototype={constructor:st,init:function(e,t,n,i,r,a){this.elem=e,this.prop=n,this.easing=r||f.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=a||(f.cssNumber[n]?"":"px")},cur:function(){var e=st.propHooks[this.prop];return e&&e.get?e.get(this):st.propHooks._default.get(this)},run:function(e){var t,n=st.propHooks[this.prop];return this.options.duration?this.pos=t=f.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),n&&n.set?n.set(this):st.propHooks._default.set(this),this}},st.prototype.init.prototype=st.prototype,st.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=f.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){f.fx.step[e.prop]?f.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[f.cssProps[e.prop]]&&!f.cssHooks[e.prop]?e.elem[e.prop]=e.now:f.style(e.elem,e.prop,e.now+e.unit)}}},st.propHooks.scrollTop=st.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},f.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},f.fx=st.prototype.init,f.fx.step={};var dt,lt,ut=/^(?:toggle|show|hide)$/,ct=/queueHooks$/;function ht(){return e.setTimeout((function(){dt=void 0})),dt=f.now()}function ft(e,t){var n,i={height:e},r=0;for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=z[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function pt(e,t,n){for(var i,r=(gt.tweeners[t]||[]).concat(gt.tweeners["*"]),a=0,o=r.length;a
a",e=n.getElementsByTagName("a")[0],t.setAttribute("type","checkbox"),n.appendChild(t),(e=n.getElementsByTagName("a")[0]).style.cssText="top:1px",c.getSetAttribute="t"!==n.className,c.style=/top/.test(e.getAttribute("style")),c.hrefNormalized="/a"===e.getAttribute("href"),c.checkOn=!!t.value,c.optSelected=a.selected,c.enctype=!!i.createElement("form").enctype,r.disabled=!0,c.optDisabled=!a.disabled,(t=i.createElement("input")).setAttribute("value",""),c.input=""===t.getAttribute("value"),t.value="t",t.setAttribute("type","radio"),c.radioValue="t"===t.value}();var mt=/\r/g,vt=/[\x20\t\r\n\f]+/g;f.fn.extend({val:function(e){var t,n,i,r=this[0];return arguments.length?(i=f.isFunction(e),this.each((function(n){var r;1===this.nodeType&&(null==(r=i?e.call(this,n,f(this).val()):e)?r="":"number"==typeof r?r+="":f.isArray(r)&&(r=f.map(r,(function(e){return null==e?"":e+""}))),(t=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))}))):r?(t=f.valHooks[r.type]||f.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(mt,""):null==n?"":n:void 0}}),f.extend({valHooks:{option:{get:function(e){var t=f.find.attr(e,"value");return null!=t?t:f.trim(f.text(e)).replace(vt," ")}},select:{get:function(e){for(var t,n,i=e.options,r=e.selectedIndex,a="select-one"===e.type||r<0,o=a?null:[],s=a?r+1:i.length,d=r<0?s:a?r:0;d-1)try{i.selected=n=!0}catch(e){i.scrollHeight}else i.selected=!1;return n||(e.selectedIndex=-1),r}}}}),f.each(["radio","checkbox"],(function(){f.valHooks[this]={set:function(e,t){if(f.isArray(t))return e.checked=f.inArray(f(e).val(),t)>-1}},c.checkOn||(f.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var yt,bt,$t=f.expr.attrHandle,Ct=/^(?:checked|selected)$/i,wt=c.getSetAttribute,_t=c.input;f.fn.extend({attr:function(e,t){return Y(this,f.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){f.removeAttr(this,e)}))}}),f.extend({attr:function(e,t,n){var i,r,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===e.getAttribute?f.prop(e,t,n):(1===a&&f.isXMLDoc(e)||(t=t.toLowerCase(),r=f.attrHooks[t]||(f.expr.match.bool.test(t)?bt:yt)),void 0!==n?null===n?void f.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=f.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!c.radioValue&&"radio"===t&&f.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i,r=0,a=t&&t.match(N);if(a&&1===e.nodeType)for(;n=a[r++];)i=f.propFix[n]||n,f.expr.match.bool.test(n)?_t&&wt||!Ct.test(n)?e[i]=!1:e[f.camelCase("default-"+n)]=e[i]=!1:f.attr(e,n,""),e.removeAttribute(wt?n:i)}}),bt={set:function(e,t,n){return!1===t?f.removeAttr(e,n):_t&&wt||!Ct.test(n)?e.setAttribute(!wt&&f.propFix[n]||n,n):e[f.camelCase("default-"+n)]=e[n]=!0,n}},f.each(f.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=$t[t]||f.find.attr;_t&&wt||!Ct.test(t)?$t[t]=function(e,t,i){var r,a;return i||(a=$t[t],$t[t]=r,r=null!=n(e,t,i)?t.toLowerCase():null,$t[t]=a),r}:$t[t]=function(e,t,n){if(!n)return e[f.camelCase("default-"+t)]?t.toLowerCase():null}})),_t&&wt||(f.attrHooks.value={set:function(e,t,n){if(!f.nodeName(e,"input"))return yt&&yt.set(e,t,n);e.defaultValue=t}}),wt||(yt={set:function(e,t,n){var i=e.getAttributeNode(n);if(i||e.setAttributeNode(i=e.ownerDocument.createAttribute(n)),i.value=t+="","value"===n||t===e.getAttribute(n))return t}},$t.id=$t.name=$t.coords=function(e,t,n){var i;if(!n)return(i=e.getAttributeNode(t))&&""!==i.value?i.value:null},f.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);if(n&&n.specified)return n.value},set:yt.set},f.attrHooks.contenteditable={set:function(e,t,n){yt.set(e,""!==t&&t,n)}},f.each(["width","height"],(function(e,t){f.attrHooks[t]={set:function(e,n){if(""===n)return e.setAttribute(t,"auto"),n}}}))),c.style||(f.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var St=/^(?:input|select|textarea|button|object)$/i,xt=/^(?:a|area)$/i;f.fn.extend({prop:function(e,t){return Y(this,f.prop,e,t,arguments.length>1)},removeProp:function(e){return e=f.propFix[e]||e,this.each((function(){try{this[e]=void 0,delete this[e]}catch(e){}}))}}),f.extend({prop:function(e,t,n){var i,r,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&f.isXMLDoc(e)||(t=f.propFix[t]||t,r=f.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=f.find.attr(e,"tabindex");return t?parseInt(t,10):St.test(e.nodeName)||xt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),c.hrefNormalized||f.each(["href","src"],(function(e,t){f.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}})),c.optSelected||(f.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),f.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){f.propFix[this.toLowerCase()]=this})),c.enctype||(f.propFix.enctype="encoding");var Tt=/[\t\r\n\f]/g;function kt(e){return f.attr(e,"class")||""}f.fn.extend({addClass:function(e){var t,n,i,r,a,o,s,d=0;if(f.isFunction(e))return this.each((function(t){f(this).addClass(e.call(this,t,kt(this)))}));if("string"==typeof e&&e)for(t=e.match(N)||[];n=this[d++];)if(r=kt(n),i=1===n.nodeType&&(" "+r+" ").replace(Tt," ")){for(o=0;a=t[o++];)i.indexOf(" "+a+" ")<0&&(i+=a+" ");r!==(s=f.trim(i))&&f.attr(n,"class",s)}return this},removeClass:function(e){var t,n,i,r,a,o,s,d=0;if(f.isFunction(e))return this.each((function(t){f(this).removeClass(e.call(this,t,kt(this)))}));if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(N)||[];n=this[d++];)if(r=kt(n),i=1===n.nodeType&&(" "+r+" ").replace(Tt," ")){for(o=0;a=t[o++];)for(;i.indexOf(" "+a+" ")>-1;)i=i.replace(" "+a+" "," ");r!==(s=f.trim(i))&&f.attr(n,"class",s)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):f.isFunction(e)?this.each((function(n){f(this).toggleClass(e.call(this,n,kt(this),t),t)})):this.each((function(){var t,i,r,a;if("string"===n)for(i=0,r=f(this),a=e.match(N)||[];t=a[i++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else void 0!==e&&"boolean"!==n||((t=kt(this))&&f._data(this,"__className__",t),f.attr(this,"class",t||!1===e?"":f._data(this,"__className__")||""))}))},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+kt(n)+" ").replace(Tt," ").indexOf(t)>-1)return!0;return!1}}),f.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),(function(e,t){f.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}})),f.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}});var Dt=e.location,jt=f.now(),It=/\?/,At=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;f.parseJSON=function(t){if(e.JSON&&e.JSON.parse)return e.JSON.parse(t+"");var n,i=null,r=f.trim(t+"");return r&&!f.trim(r.replace(At,(function(e,t,r,a){return n&&t&&(i=0),0===i?e:(n=r||t,i+=!a-!r,"")})))?Function("return "+r)():f.error("Invalid JSON: "+t)},f.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{e.DOMParser?n=(new e.DOMParser).parseFromString(t,"text/xml"):((n=new e.ActiveXObject("Microsoft.XMLDOM")).async="false",n.loadXML(t))}catch(e){n=void 0}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||f.error("Invalid XML: "+t),n};var Et=/#.*$/,Nt=/([?&])_=[^&]*/,Lt=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Mt=/^(?:GET|HEAD)$/,Pt=/^\/\//,Ot=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Ht={},Ft={},Qt="*/".concat("*"),Rt=Dt.href,Bt=Ot.exec(Rt.toLowerCase())||[];function Wt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r=0,a=t.toLowerCase().match(N)||[];if(f.isFunction(n))for(;i=a[r++];)"+"===i.charAt(0)?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function Ut(e,t,n,i){var r={},a=e===Ft;function o(s){var d;return r[s]=!0,f.each(e[s]||[],(function(e,s){var l=s(t,n,i);return"string"!=typeof l||a||r[l]?a?!(d=l):void 0:(t.dataTypes.unshift(l),o(l),!1)})),d}return o(t.dataTypes[0])||!r["*"]&&o("*")}function qt(e,t){var n,i,r=f.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((r[i]?e:n||(n={}))[i]=t[i]);return n&&f.extend(!0,e,n),e}function zt(e){return e.style&&e.style.display||f.css(e,"display")}f.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Rt,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Bt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Qt,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":f.parseJSON,"text xml":f.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?qt(qt(e,f.ajaxSettings),t):qt(f.ajaxSettings,e)},ajaxPrefilter:Wt(Ht),ajaxTransport:Wt(Ft),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,r,a,o,s,d,l,u,c=f.ajaxSetup({},n),h=c.context||c,p=c.context&&(h.nodeType||h.jquery)?f(h):f.event,g=f.Deferred(),m=f.Callbacks("once memory"),v=c.statusCode||{},y={},b={},$=0,C="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(2===$){if(!u)for(u={};t=Lt.exec(o);)u[t[1].toLowerCase()]=t[2];t=u[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===$?o:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return $||(e=b[n]=b[n]||e,y[e]=t),this},overrideMimeType:function(e){return $||(c.mimeType=e),this},statusCode:function(e){var t;if(e)if($<2)for(t in e)v[t]=[v[t],e[t]];else w.always(e[w.status]);return this},abort:function(e){var t=e||C;return l&&l.abort(t),_(0,t),this}};if(g.promise(w).complete=m.add,w.success=w.done,w.error=w.fail,c.url=((t||c.url||Rt)+"").replace(Et,"").replace(Pt,Bt[1]+"//"),c.type=n.method||n.type||c.method||c.type,c.dataTypes=f.trim(c.dataType||"*").toLowerCase().match(N)||[""],null==c.crossDomain&&(i=Ot.exec(c.url.toLowerCase()),c.crossDomain=!(!i||i[1]===Bt[1]&&i[2]===Bt[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(Bt[3]||("http:"===Bt[1]?"80":"443")))),c.data&&c.processData&&"string"!=typeof c.data&&(c.data=f.param(c.data,c.traditional)),Ut(Ht,c,n,w),2===$)return w;for(r in(d=f.event&&c.global)&&0==f.active++&&f.event.trigger("ajaxStart"),c.type=c.type.toUpperCase(),c.hasContent=!Mt.test(c.type),a=c.url,c.hasContent||(c.data&&(a=c.url+=(It.test(a)?"&":"?")+c.data,delete c.data),!1===c.cache&&(c.url=Nt.test(a)?a.replace(Nt,"$1_="+jt++):a+(It.test(a)?"&":"?")+"_="+jt++)),c.ifModified&&(f.lastModified[a]&&w.setRequestHeader("If-Modified-Since",f.lastModified[a]),f.etag[a]&&w.setRequestHeader("If-None-Match",f.etag[a])),(c.data&&c.hasContent&&!1!==c.contentType||n.contentType)&&w.setRequestHeader("Content-Type",c.contentType),w.setRequestHeader("Accept",c.dataTypes[0]&&c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+("*"!==c.dataTypes[0]?", "+Qt+"; q=0.01":""):c.accepts["*"]),c.headers)w.setRequestHeader(r,c.headers[r]);if(c.beforeSend&&(!1===c.beforeSend.call(h,w,c)||2===$))return w.abort();for(r in C="abort",{success:1,error:1,complete:1})w[r](c[r]);if(l=Ut(Ft,c,n,w)){if(w.readyState=1,d&&p.trigger("ajaxSend",[w,c]),2===$)return w;c.async&&c.timeout>0&&(s=e.setTimeout((function(){w.abort("timeout")}),c.timeout));try{$=1,l.send(y,_)}catch(e){if(!($<2))throw e;_(-1,e)}}else _(-1,"No Transport");function _(t,n,i,r){var u,y,b,C,_,S=n;2!==$&&($=2,s&&e.clearTimeout(s),l=void 0,o=r||"",w.readyState=t>0?4:0,u=t>=200&&t<300||304===t,i&&(C=function(e,t,n){for(var i,r,a,o,s=e.contents,d=e.dataTypes;"*"===d[0];)d.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(o in s)if(s[o]&&s[o].test(r)){d.unshift(o);break}if(d[0]in n)a=d[0];else{for(o in n){if(!d[0]||e.converters[o+" "+d[0]]){a=o;break}i||(i=o)}a=a||i}if(a)return a!==d[0]&&d.unshift(a),n[a]}(c,w,i)),C=function(e,t,n,i){var r,a,o,s,d,l={},u=e.dataTypes.slice();if(u[1])for(o in e.converters)l[o.toLowerCase()]=e.converters[o];for(a=u.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!d&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),d=a,a=u.shift())if("*"===a)a=d;else if("*"!==d&&d!==a){if(!(o=l[d+" "+a]||l["* "+a]))for(r in l)if((s=r.split(" "))[1]===a&&(o=l[d+" "+s[0]]||l["* "+s[0]])){!0===o?o=l[r]:!0!==l[r]&&(a=s[0],u.unshift(s[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+d+" to "+a}}}return{state:"success",data:t}}(c,C,w,u),u?(c.ifModified&&((_=w.getResponseHeader("Last-Modified"))&&(f.lastModified[a]=_),(_=w.getResponseHeader("etag"))&&(f.etag[a]=_)),204===t||"HEAD"===c.type?S="nocontent":304===t?S="notmodified":(S=C.state,y=C.data,u=!(b=C.error))):(b=S,!t&&S||(S="error",t<0&&(t=0))),w.status=t,w.statusText=(n||S)+"",u?g.resolveWith(h,[y,S,w]):g.rejectWith(h,[w,S,b]),w.statusCode(v),v=void 0,d&&p.trigger(u?"ajaxSuccess":"ajaxError",[w,c,u?y:b]),m.fireWith(h,[w,S]),d&&(p.trigger("ajaxComplete",[w,c]),--f.active||f.event.trigger("ajaxStop")))}return w},getJSON:function(e,t,n){return f.get(e,t,n,"json")},getScript:function(e,t){return f.get(e,void 0,t,"script")}}),f.each(["get","post"],(function(e,t){f[t]=function(e,n,i,r){return f.isFunction(n)&&(r=r||i,i=n,n=void 0),f.ajax(f.extend({url:e,type:t,dataType:r,data:n,success:i},f.isPlainObject(e)&&e))}})),f._evalUrl=function(e){return f.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},f.fn.extend({wrapAll:function(e){if(f.isFunction(e))return this.each((function(t){f(this).wrapAll(e.call(this,t))}));if(this[0]){var t=f(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e})).append(this)}return this},wrapInner:function(e){return f.isFunction(e)?this.each((function(t){f(this).wrapInner(e.call(this,t))})):this.each((function(){var t=f(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=f.isFunction(e);return this.each((function(n){f(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(){return this.parent().each((function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)})).end()}}),f.expr.filters.hidden=function(e){return c.reliableHiddenOffsets()?e.offsetWidth<=0&&e.offsetHeight<=0&&!e.getClientRects().length:function(e){if(!f.contains(e.ownerDocument||i,e))return!0;for(;e&&1===e.nodeType;){if("none"===zt(e)||"hidden"===e.type)return!0;e=e.parentNode}return!1}(e)},f.expr.filters.visible=function(e){return!f.expr.filters.hidden(e)};var Gt=/%20/g,Vt=/\[\]$/,Kt=/\r?\n/g,Jt=/^(?:submit|button|image|reset|file)$/i,Xt=/^(?:input|select|textarea|keygen)/i;function Yt(e,t,n,i){var r;if(f.isArray(t))f.each(t,(function(t,r){n||Vt.test(e)?i(e,r):Yt(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,i)}));else if(n||"object"!==f.type(t))i(e,t);else for(r in t)Yt(e+"["+r+"]",t[r],n,i)}f.param=function(e,t){var n,i=[],r=function(e,t){t=f.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=f.ajaxSettings&&f.ajaxSettings.traditional),f.isArray(e)||e.jquery&&!f.isPlainObject(e))f.each(e,(function(){r(this.name,this.value)}));else for(n in e)Yt(n,e[n],t,r);return i.join("&").replace(Gt,"+")},f.fn.extend({serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=f.prop(this,"elements");return e?f.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!f(this).is(":disabled")&&Xt.test(this.nodeName)&&!Jt.test(e)&&(this.checked||!Z.test(e))})).map((function(e,t){var n=f(this).val();return null==n?null:f.isArray(n)?f.map(n,(function(e){return{name:t.name,value:e.replace(Kt,"\r\n")}})):{name:t.name,value:n.replace(Kt,"\r\n")}})).get()}}),f.ajaxSettings.xhr=void 0!==e.ActiveXObject?function(){return this.isLocal?rn():i.documentMode>8?nn():/^(get|post|head|put|delete|options)$/i.test(this.type)&&nn()||rn()}:nn;var Zt=0,en={},tn=f.ajaxSettings.xhr();function nn(){try{return new e.XMLHttpRequest}catch(e){}}function rn(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}e.attachEvent&&e.attachEvent("onunload",(function(){for(var e in en)en[e](void 0,!0)})),c.cors=!!tn&&"withCredentials"in tn,(tn=c.ajax=!!tn)&&f.ajaxTransport((function(t){var n;if(!t.crossDomain||c.cors)return{send:function(i,r){var a,o=t.xhr(),s=++Zt;if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)o[a]=t.xhrFields[a];for(a in t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)void 0!==i[a]&&o.setRequestHeader(a,i[a]+"");o.send(t.hasContent&&t.data||null),n=function(e,i){var a,d,l;if(n&&(i||4===o.readyState))if(delete en[s],n=void 0,o.onreadystatechange=f.noop,i)4!==o.readyState&&o.abort();else{l={},a=o.status,"string"==typeof o.responseText&&(l.text=o.responseText);try{d=o.statusText}catch(e){d=""}a||!t.isLocal||t.crossDomain?1223===a&&(a=204):a=l.text?200:404}l&&r(a,d,l,o.getAllResponseHeaders())},t.async?4===o.readyState?e.setTimeout(n):o.onreadystatechange=en[s]=n:n()},abort:function(){n&&n(void 0,!0)}}})),f.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 f.globalEval(e),e}}}),f.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)})),f.ajaxTransport("script",(function(e){if(e.crossDomain){var t,n=i.head||f("head")[0]||i.documentElement;return{send:function(r,a){(t=i.createElement("script")).async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,n){(n||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,n||a(200,"success"))},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}}));var an=[],on=/(=)\?(?=&|$)|\?\?/;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=an.pop()||f.expando+"_"+jt++;return this[e]=!0,e}}),f.ajaxPrefilter("json jsonp",(function(t,n,i){var r,a,o,s=!1!==t.jsonp&&(on.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&on.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=f.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(on,"$1"+r):!1!==t.jsonp&&(t.url+=(It.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return o||f.error(r+" was not called"),o[0]},t.dataTypes[0]="json",a=e[r],e[r]=function(){o=arguments},i.always((function(){void 0===a?f(e).removeProp(r):e[r]=a,t[r]&&(t.jsonpCallback=n.jsonpCallback,an.push(r)),o&&f.isFunction(a)&&a(o[0]),o=a=void 0})),"script"})),f.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||i;var r=_.exec(e),a=!n&&[];return r?[t.createElement(r[1])]:(r=ce([e],t,a),a&&a.length&&f(a).remove(),f.merge([],r.childNodes))};var sn=f.fn.load;function dn(e){return f.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}f.fn.load=function(e,t,n){if("string"!=typeof e&&sn)return sn.apply(this,arguments);var i,r,a,o=this,s=e.indexOf(" ");return s>-1&&(i=f.trim(e.slice(s,e.length)),e=e.slice(0,s)),f.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),o.length>0&&f.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done((function(e){a=arguments,o.html(i?f("
").append(f.parseHTML(e)).find(i):e)})).always(n&&function(e,t){o.each((function(){n.apply(this,a||[e.responseText,t,e])}))}),this},f.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){f.fn[t]=function(e){return this.on(t,e)}})),f.expr.filters.animated=function(e){return f.grep(f.timers,(function(t){return e===t.elem})).length},f.offset={setOffset:function(e,t,n){var i,r,a,o,s,d,l=f.css(e,"position"),u=f(e),c={};"static"===l&&(e.style.position="relative"),s=u.offset(),a=f.css(e,"top"),d=f.css(e,"left"),("absolute"===l||"fixed"===l)&&f.inArray("auto",[a,d])>-1?(o=(i=u.position()).top,r=i.left):(o=parseFloat(a)||0,r=parseFloat(d)||0),f.isFunction(t)&&(t=t.call(e,n,f.extend({},s))),null!=t.top&&(c.top=t.top-s.top+o),null!=t.left&&(c.left=t.left-s.left+r),"using"in t?t.using.call(e,c):u.css(c)}},f.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){f.offset.setOffset(this,e,t)}));var t,n,i={top:0,left:0},r=this[0],a=r&&r.ownerDocument;return a?(t=a.documentElement,f.contains(t,r)?(void 0!==r.getBoundingClientRect&&(i=r.getBoundingClientRect()),n=dn(a),{top:i.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left:i.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):i):void 0},position:function(){if(this[0]){var e,t,n={top:0,left:0},i=this[0];return"fixed"===f.css(i,"position")?t=i.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),f.nodeName(e[0],"html")||(n=e.offset()),n.top+=f.css(e[0],"borderTopWidth",!0),n.left+=f.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-f.css(i,"marginTop",!0),left:t.left-n.left-f.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&!f.nodeName(e,"html")&&"static"===f.css(e,"position");)e=e.offsetParent;return e||We}))}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n=/Y/.test(t);f.fn[e]=function(i){return Y(this,(function(e,i,r){var a=dn(e);if(void 0===r)return a?t in a?a[t]:a.document.documentElement[i]:e[i];a?a.scrollTo(n?f(a).scrollLeft():r,n?r:f(a).scrollTop()):e[i]=r}),e,i,arguments.length,null)}})),f.each(["top","left"],(function(e,t){f.cssHooks[t]=Ge(c.pixelPosition,(function(e,n){if(n)return n=qe(e,t),Re.test(n)?f(e).position()[t]+"px":n}))})),f.each({Height:"height",Width:"width"},(function(e,t){f.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,i){f.fn[i]=function(i,r){var a=arguments.length&&(n||"boolean"!=typeof i),o=n||(!0===i||!0===r?"margin":"border");return Y(this,(function(t,n,i){var r;return f.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===i?f.css(t,n,o):f.style(t,n,i,o)}),t,a?i:void 0,a,null)}}))})),f.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),f.fn.size=function(){return this.length},f.fn.andSelf=f.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],(function(){return f}));var ln=e.jQuery,un=e.$;return f.noConflict=function(t){return e.$===f&&(e.$=un),t&&e.jQuery===f&&(e.jQuery=ln),f},t||(e.jQuery=e.$=f),f})), /*! * Bootstrap v4.5.3 (https://getbootstrap.com/) * Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */ function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap={},e.jQuery)}(this,(function(e,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=n(t);function r(e,t){for(var n=0;n=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};l.jQueryDetection(),i.default.fn.emulateTransitionEnd=d,i.default.event.special[l.TRANSITION_END]={bindType:s,delegateType:s,handle:function(e){if(i.default(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}};var u="alert",c="bs.alert",h="."+c,f=i.default.fn[u],p="close"+h,g="closed"+h,m="click"+h+".data-api",v=function(){function e(e){this._element=e}var t=e.prototype;return t.close=function(e){var t=this._element;e&&(t=this._getRootElement(e)),this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},t.dispose=function(){i.default.removeData(this._element,c),this._element=null},t._getRootElement=function(e){var t=l.getSelectorFromElement(e),n=!1;return t&&(n=document.querySelector(t)),n||(n=i.default(e).closest(".alert")[0]),n},t._triggerCloseEvent=function(e){var t=i.default.Event(p);return i.default(e).trigger(t),t},t._removeElement=function(e){var t=this;if(i.default(e).removeClass("show"),i.default(e).hasClass("fade")){var n=l.getTransitionDurationFromElement(e);i.default(e).one(l.TRANSITION_END,(function(n){return t._destroyElement(e,n)})).emulateTransitionEnd(n)}else this._destroyElement(e)},t._destroyElement=function(e){i.default(e).detach().trigger(g).remove()},e._jQueryInterface=function(t){return this.each((function(){var n=i.default(this),r=n.data(c);r||(r=new e(this),n.data(c,r)),"close"===t&&r[t](this)}))},e._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},a(e,null,[{key:"VERSION",get:function(){return"4.5.3"}}]),e}();i.default(document).on(m,'[data-dismiss="alert"]',v._handleDismiss(new v)),i.default.fn[u]=v._jQueryInterface,i.default.fn[u].Constructor=v,i.default.fn[u].noConflict=function(){return i.default.fn[u]=f,v._jQueryInterface};var y="button",b="bs.button",$="."+b,C=".data-api",w=i.default.fn[y],_="active",S='[data-toggle^="button"]',x='input:not([type="hidden"])',T=".btn",k="click"+$+C,D="focus"+$+C+" blur"+$+C,j="load"+$+C,I=function(){function e(e){this._element=e,this.shouldAvoidTriggerChange=!1}var t=e.prototype;return t.toggle=function(){var e=!0,t=!0,n=i.default(this._element).closest('[data-toggle="buttons"]')[0];if(n){var r=this._element.querySelector(x);if(r){if("radio"===r.type)if(r.checked&&this._element.classList.contains(_))e=!1;else{var a=n.querySelector(".active");a&&i.default(a).removeClass(_)}e&&("checkbox"!==r.type&&"radio"!==r.type||(r.checked=!this._element.classList.contains(_)),this.shouldAvoidTriggerChange||i.default(r).trigger("change")),r.focus(),t=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(t&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(_)),e&&i.default(this._element).toggleClass(_))},t.dispose=function(){i.default.removeData(this._element,b),this._element=null},e._jQueryInterface=function(t,n){return this.each((function(){var r=i.default(this),a=r.data(b);a||(a=new e(this),r.data(b,a)),a.shouldAvoidTriggerChange=n,"toggle"===t&&a[t]()}))},a(e,null,[{key:"VERSION",get:function(){return"4.5.3"}}]),e}();i.default(document).on(k,S,(function(e){var t=e.target,n=t;if(i.default(t).hasClass("btn")||(t=i.default(t).closest(T)[0]),!t||t.hasAttribute("disabled")||t.classList.contains("disabled"))e.preventDefault();else{var r=t.querySelector(x);if(r&&(r.hasAttribute("disabled")||r.classList.contains("disabled")))return void e.preventDefault();"INPUT"!==n.tagName&&"LABEL"===t.tagName||I._jQueryInterface.call(i.default(t),"toggle","INPUT"===n.tagName)}})).on(D,S,(function(e){var t=i.default(e.target).closest(T)[0];i.default(t).toggleClass("focus",/^focus(in)?$/.test(e.type))})),i.default(window).on(j,(function(){for(var e=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn')),t=0,n=e.length;t0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var t=e.prototype;return t.next=function(){this._isSliding||this._slide(H)},t.nextWhenVisible=function(){var e=i.default(this._element);!document.hidden&&e.is(":visible")&&"hidden"!==e.css("visibility")&&this.next()},t.prev=function(){this._isSliding||this._slide(F)},t.pause=function(e){e||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(l.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},t.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},t.to=function(e){var t=this;this._activeElement=this._element.querySelector(ee);var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)i.default(this._element).one(R,(function(){return t.to(e)}));else{if(n===e)return this.pause(),void this.cycle();var r=e>n?H:F;this._slide(r,this._items[e])}},t.dispose=function(){i.default(this._element).off(N),i.default.removeData(this._element,E),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},t._getConfig=function(e){return e=o({},P,e),l.typeCheckConfig(A,e,O),e},t._handleSwipe=function(){var e=Math.abs(this.touchDeltaX);if(!(e<=40)){var t=e/this.touchDeltaX;this.touchDeltaX=0,t>0&&this.prev(),t<0&&this.next()}},t._addEventListeners=function(){var e=this;this._config.keyboard&&i.default(this._element).on(B,(function(t){return e._keydown(t)})),"hover"===this._config.pause&&i.default(this._element).on(W,(function(t){return e.pause(t)})).on(U,(function(t){return e.cycle(t)})),this._config.touch&&this._addTouchEventListeners()},t._addTouchEventListeners=function(){var e=this;if(this._touchSupported){var t=function(t){e._pointerEvent&&te[t.originalEvent.pointerType.toUpperCase()]?e.touchStartX=t.originalEvent.clientX:e._pointerEvent||(e.touchStartX=t.originalEvent.touches[0].clientX)},n=function(t){e._pointerEvent&&te[t.originalEvent.pointerType.toUpperCase()]&&(e.touchDeltaX=t.originalEvent.clientX-e.touchStartX),e._handleSwipe(),"hover"===e._config.pause&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout((function(t){return e.cycle(t)}),500+e._config.interval))};i.default(this._element.querySelectorAll(".carousel-item img")).on(J,(function(e){return e.preventDefault()})),this._pointerEvent?(i.default(this._element).on(V,(function(e){return t(e)})),i.default(this._element).on(K,(function(e){return n(e)})),this._element.classList.add("pointer-event")):(i.default(this._element).on(q,(function(e){return t(e)})),i.default(this._element).on(z,(function(t){return function(t){t.originalEvent.touches&&t.originalEvent.touches.length>1?e.touchDeltaX=0:e.touchDeltaX=t.originalEvent.touches[0].clientX-e.touchStartX}(t)})),i.default(this._element).on(G,(function(e){return n(e)})))}},t._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:e.preventDefault(),this.prev();break;case 39:e.preventDefault(),this.next()}},t._getItemIndex=function(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(e)},t._getItemByDirection=function(e,t){var n=e===H,i=e===F,r=this._getItemIndex(t),a=this._items.length-1;if((i&&0===r||n&&r===a)&&!this._config.wrap)return t;var o=(r+(e===F?-1:1))%this._items.length;return-1===o?this._items[this._items.length-1]:this._items[o]},t._triggerSlideEvent=function(e,t){var n=this._getItemIndex(e),r=this._getItemIndex(this._element.querySelector(ee)),a=i.default.Event(Q,{relatedTarget:e,direction:t,from:r,to:n});return i.default(this._element).trigger(a),a},t._setActiveIndicatorElement=function(e){if(this._indicatorsElement){var t=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));i.default(t).removeClass(Z);var n=this._indicatorsElement.children[this._getItemIndex(e)];n&&i.default(n).addClass(Z)}},t._slide=function(e,t){var n,r,a,o=this,s=this._element.querySelector(ee),d=this._getItemIndex(s),u=t||s&&this._getItemByDirection(e,s),c=this._getItemIndex(u),h=Boolean(this._interval);if(e===H?(n="carousel-item-left",r="carousel-item-next",a="left"):(n="carousel-item-right",r="carousel-item-prev",a="right"),u&&i.default(u).hasClass(Z))this._isSliding=!1;else if(!this._triggerSlideEvent(u,a).isDefaultPrevented()&&s&&u){this._isSliding=!0,h&&this.pause(),this._setActiveIndicatorElement(u);var f=i.default.Event(R,{relatedTarget:u,direction:a,from:d,to:c});if(i.default(this._element).hasClass("slide")){i.default(u).addClass(r),l.reflow(u),i.default(s).addClass(n),i.default(u).addClass(n);var p=parseInt(u.getAttribute("data-interval"),10);p?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=p):this._config.interval=this._config.defaultInterval||this._config.interval;var g=l.getTransitionDurationFromElement(s);i.default(s).one(l.TRANSITION_END,(function(){i.default(u).removeClass(n+" "+r).addClass(Z),i.default(s).removeClass(Z+" "+r+" "+n),o._isSliding=!1,setTimeout((function(){return i.default(o._element).trigger(f)}),0)})).emulateTransitionEnd(g)}else i.default(s).removeClass(Z),i.default(u).addClass(Z),this._isSliding=!1,i.default(this._element).trigger(f);h&&this.cycle()}},e._jQueryInterface=function(t){return this.each((function(){var n=i.default(this).data(E),r=o({},P,i.default(this).data());"object"==typeof t&&(r=o({},r,t));var a="string"==typeof t?t:r.slide;if(n||(n=new e(this,r),i.default(this).data(E,n)),"number"==typeof t)n.to(t);else if("string"==typeof a){if(void 0===n[a])throw new TypeError('No method named "'+a+'"');n[a]()}else r.interval&&r.ride&&(n.pause(),n.cycle())}))},e._dataApiClickHandler=function(t){var n=l.getSelectorFromElement(this);if(n){var r=i.default(n)[0];if(r&&i.default(r).hasClass("carousel")){var a=o({},i.default(r).data(),i.default(this).data()),s=this.getAttribute("data-slide-to");s&&(a.interval=!1),e._jQueryInterface.call(i.default(r),a),s&&i.default(r).data(E).to(s),t.preventDefault()}}},a(e,null,[{key:"VERSION",get:function(){return"4.5.3"}},{key:"Default",get:function(){return P}}]),e}();i.default(document).on(Y,"[data-slide], [data-slide-to]",ne._dataApiClickHandler),i.default(window).on(X,(function(){for(var e=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),t=0,n=e.length;t0&&(this._selector=o,this._triggerArray.push(a))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var t=e.prototype;return t.toggle=function(){i.default(this._element).hasClass(pe)?this.hide():this.show()},t.show=function(){var t,n,r=this;if(!this._isTransitioning&&!i.default(this._element).hasClass(pe)&&(this._parent&&0===(t=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter((function(e){return"string"==typeof r._config.parent?e.getAttribute("data-parent")===r._config.parent:e.classList.contains(ge)}))).length&&(t=null),!(t&&(n=i.default(t).not(this._selector).data(re))&&n._isTransitioning))){var a=i.default.Event(le);if(i.default(this._element).trigger(a),!a.isDefaultPrevented()){t&&(e._jQueryInterface.call(i.default(t).not(this._selector),"hide"),n||i.default(t).data(re,null));var o=this._getDimension();i.default(this._element).removeClass(ge).addClass(me),this._element.style[o]=0,this._triggerArray.length&&i.default(this._triggerArray).removeClass(ve).attr("aria-expanded",!0),this.setTransitioning(!0);var s="scroll"+(o[0].toUpperCase()+o.slice(1)),d=l.getTransitionDurationFromElement(this._element);i.default(this._element).one(l.TRANSITION_END,(function(){i.default(r._element).removeClass(me).addClass(ge+" "+pe),r._element.style[o]="",r.setTransitioning(!1),i.default(r._element).trigger(ue)})).emulateTransitionEnd(d),this._element.style[o]=this._element[s]+"px"}}},t.hide=function(){var e=this;if(!this._isTransitioning&&i.default(this._element).hasClass(pe)){var t=i.default.Event(ce);if(i.default(this._element).trigger(t),!t.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",l.reflow(this._element),i.default(this._element).addClass(me).removeClass(ge+" "+pe);var r=this._triggerArray.length;if(r>0)for(var a=0;a=0)return 1;return 0}();var _e=Ce&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),we))}};function Se(e){return e&&"[object Function]"==={}.toString.call(e)}function xe(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function Te(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function ke(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=xe(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/(auto|scroll|overlay)/.test(n+r+i)?e:ke(Te(e))}function De(e){return e&&e.referenceNode?e.referenceNode:e}var je=Ce&&!(!window.MSInputMethodContext||!document.documentMode),Ie=Ce&&/MSIE 10/.test(navigator.userAgent);function Ae(e){return 11===e?je:10===e?Ie:je||Ie}function Ee(e){if(!e)return document.documentElement;for(var t=Ae(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===xe(n,"position")?Ee(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Ne(e){return null!==e.parentNode?Ne(e.parentNode):e}function Le(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?e:t,r=n?t:e,a=document.createRange();a.setStart(i,0),a.setEnd(r,0);var o,s,d=a.commonAncestorContainer;if(e!==d&&t!==d||i.contains(r))return"BODY"===(s=(o=d).nodeName)||"HTML"!==s&&Ee(o.firstElementChild)!==o?Ee(d):d;var l=Ne(e);return l.host?Le(l.host,t):Le(e,Ne(t).host)}function Me(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var i=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||i)[t]}return e[t]}function Pe(e,t){var n="x"===t?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+i+"Width"])}function Oe(e,t,n,i){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Ae(10)?parseInt(n["offset"+e])+parseInt(i["margin"+("Height"===e?"Top":"Left")])+parseInt(i["margin"+("Height"===e?"Bottom":"Right")]):0)}function He(e){var t=e.body,n=e.documentElement,i=Ae(10)&&getComputedStyle(n);return{height:Oe("Height",t,n,i),width:Oe("Width",t,n,i)}}var Fe=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],i=Ae(10),r="HTML"===t.nodeName,a=We(e),o=We(t),s=ke(e),d=xe(t),l=parseFloat(d.borderTopWidth),u=parseFloat(d.borderLeftWidth);n&&r&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var c=Be({top:a.top-o.top-l,left:a.left-o.left-u,width:a.width,height:a.height});if(c.marginTop=0,c.marginLeft=0,!i&&r){var h=parseFloat(d.marginTop),f=parseFloat(d.marginLeft);c.top-=l-h,c.bottom-=l-h,c.left-=u-f,c.right-=u-f,c.marginTop=h,c.marginLeft=f}return(i&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(c=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=Me(t,"top"),r=Me(t,"left"),a=n?-1:1;return e.top+=i*a,e.bottom+=i*a,e.left+=r*a,e.right+=r*a,e}(c,t)),c}function qe(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===xe(e,"position"))return!0;var n=Te(e);return!!n&&qe(n)}function ze(e){if(!e||!e.parentElement||Ae())return document.documentElement;for(var t=e.parentElement;t&&"none"===xe(t,"transform");)t=t.parentElement;return t||document.documentElement}function Ge(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a={top:0,left:0},o=r?ze(e):Le(e,De(t));if("viewport"===i)a=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,i=Ue(e,n),r=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),o=t?0:Me(n),s=t?0:Me(n,"left");return Be({top:o-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:r,height:a})}(o,r);else{var s=void 0;"scrollParent"===i?"BODY"===(s=ke(Te(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===i?e.ownerDocument.documentElement:i;var d=Ue(s,o,r);if("HTML"!==s.nodeName||qe(o))a=d;else{var l=He(e.ownerDocument),u=l.height,c=l.width;a.top+=d.top-d.marginTop,a.bottom=u+d.top,a.left+=d.left-d.marginLeft,a.right=c+d.left}}var h="number"==typeof(n=n||0);return a.left+=h?n:n.left||0,a.top+=h?n:n.top||0,a.right-=h?n:n.right||0,a.bottom-=h?n:n.bottom||0,a}function Ve(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var o=Ge(n,i,a,r),s={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},d=Object.keys(s).map((function(e){return Re({key:e},s[e],{area:(t=s[e],t.width*t.height)});var t})).sort((function(e,t){return t.area-e.area})),l=d.filter((function(e){var t=e.width,i=e.height;return t>=n.clientWidth&&i>=n.clientHeight})),u=l.length>0?l[0].key:d[0].key,c=e.split("-")[1];return u+(c?"-"+c:"")}function Ke(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return Ue(n,i?ze(t):Le(t,De(n)),i)}function Je(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),i=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+i,height:e.offsetHeight+n}}function Xe(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function Ye(e,t,n){n=n.split("-")[0];var i=Je(e),r={width:i.width,height:i.height},a=-1!==["right","left"].indexOf(n),o=a?"top":"left",s=a?"left":"top",d=a?"height":"width",l=a?"width":"height";return r[o]=t[o]+t[d]/2-i[d]/2,r[s]=n===s?t[s]-i[l]:t[Xe(s)],r}function Ze(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function et(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var i=Ze(e,(function(e){return e[t]===n}));return e.indexOf(i)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&Se(n)&&(t.offsets.popper=Be(t.offsets.popper),t.offsets.reference=Be(t.offsets.reference),t=n(t,e))})),t}function tt(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Ke(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Ve(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=Ye(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=et(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function nt(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function it(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i1&&void 0!==arguments[1]&&arguments[1],n=gt.indexOf(e),i=gt.slice(n+1).concat(gt.slice(0,n));return t?i.reverse():i}var vt="flip",yt="clockwise",bt="counterclockwise";function $t(e,t,n,i){var r=[0,0],a=-1!==["right","left"].indexOf(i),o=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=o.indexOf(Ze(o,(function(e){return-1!==e.search(/,|\s/)})));o[s]&&-1===o[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var d=/\s*,\s*|\s+/,l=-1!==s?[o.slice(0,s).concat([o[s].split(d)[0]]),[o[s].split(d)[1]].concat(o.slice(s+1))]:[o];return l=l.map((function(e,i){var r=(1===i?!a:a)?"height":"width",o=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,o=!0,e):o?(e[e.length-1]+=t,o=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,i){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+r[1],o=r[2];if(!a)return e;if(0===o.indexOf("%")){return Be("%p"===o?n:i)[t]/100*a}if("vh"===o||"vw"===o)return("vh"===o?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*a;return a}(e,r,t,n)}))})),l.forEach((function(e,t){e.forEach((function(n,i){ut(n)&&(r[t]+=n*("-"===e[i-1]?-1:1))}))})),r}var Ct={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],i=t.split("-")[1];if(i){var r=e.offsets,a=r.reference,o=r.popper,s=-1!==["bottom","top"].indexOf(n),d=s?"left":"top",l=s?"width":"height",u={start:Qe({},d,a[d]),end:Qe({},d,a[d]+a[l]-o[l])};e.offsets.popper=Re({},o,u[i])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,i=e.placement,r=e.offsets,a=r.popper,o=r.reference,s=i.split("-")[0],d=void 0;return d=ut(+n)?[+n,0]:$t(n,a,o,s),"left"===s?(a.top+=d[0],a.left-=d[1]):"right"===s?(a.top+=d[0],a.left+=d[1]):"top"===s?(a.left+=d[0],a.top-=d[1]):"bottom"===s&&(a.left+=d[0],a.top+=d[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||Ee(e.instance.popper);e.instance.reference===n&&(n=Ee(n));var i=it("transform"),r=e.instance.popper.style,a=r.top,o=r.left,s=r[i];r.top="",r.left="",r[i]="";var d=Ge(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);r.top=a,r.left=o,r[i]=s,t.boundaries=d;var l=t.priority,u=e.offsets.popper,c={primary:function(e){var n=u[e];return u[e]d[e]&&!t.escapeWithReference&&(i=Math.min(u[n],d[e]-("right"===e?u.width:u.height))),Qe({},n,i)}};return l.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=Re({},u,c[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,i=t.reference,r=e.placement.split("-")[0],a=Math.floor,o=-1!==["top","bottom"].indexOf(r),s=o?"right":"bottom",d=o?"left":"top",l=o?"width":"height";return n[s]a(i[s])&&(e.offsets.popper[d]=a(i[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!ft(e.instance.modifiers,"arrow","keepTogether"))return e;var i=t.element;if("string"==typeof i){if(!(i=e.instance.popper.querySelector(i)))return e}else if(!e.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],a=e.offsets,o=a.popper,s=a.reference,d=-1!==["left","right"].indexOf(r),l=d?"height":"width",u=d?"Top":"Left",c=u.toLowerCase(),h=d?"left":"top",f=d?"bottom":"right",p=Je(i)[l];s[f]-po[f]&&(e.offsets.popper[c]+=s[c]+p-o[f]),e.offsets.popper=Be(e.offsets.popper);var g=s[c]+s[l]/2-p/2,m=xe(e.instance.popper),v=parseFloat(m["margin"+u]),y=parseFloat(m["border"+u+"Width"]),b=g-e.offsets.popper[c]-v-y;return b=Math.max(Math.min(o[l]-p,b),0),e.arrowElement=i,e.offsets.arrow=(Qe(n={},c,Math.round(b)),Qe(n,h,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(nt(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=Ge(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),i=e.placement.split("-")[0],r=Xe(i),a=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case vt:o=[i,r];break;case yt:o=mt(i);break;case bt:o=mt(i,!0);break;default:o=t.behavior}return o.forEach((function(s,d){if(i!==s||o.length===d+1)return e;i=e.placement.split("-")[0],r=Xe(i);var l=e.offsets.popper,u=e.offsets.reference,c=Math.floor,h="left"===i&&c(l.right)>c(u.left)||"right"===i&&c(l.left)c(u.top)||"bottom"===i&&c(l.top)c(n.right),g=c(l.top)c(n.bottom),v="left"===i&&f||"right"===i&&p||"top"===i&&g||"bottom"===i&&m,y=-1!==["top","bottom"].indexOf(i),b=!!t.flipVariations&&(y&&"start"===a&&f||y&&"end"===a&&p||!y&&"start"===a&&g||!y&&"end"===a&&m),$=!!t.flipVariationsByContent&&(y&&"start"===a&&p||y&&"end"===a&&f||!y&&"start"===a&&m||!y&&"end"===a&&g),C=b||$;(h||v||C)&&(e.flipped=!0,(h||v)&&(i=o[d+1]),C&&(a=function(e){return"end"===e?"start":"start"===e?"end":e}(a)),e.placement=i+(a?"-"+a:""),e.offsets.popper=Re({},e.offsets.popper,Ye(e.instance.popper,e.offsets.reference,e.placement)),e=et(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],i=e.offsets,r=i.popper,a=i.reference,o=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return r[o?"left":"top"]=a[n]-(s?r[o?"width":"height"]:0),e.placement=Xe(t),e.offsets.popper=Be(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!ft(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Ze(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=_e(this.update.bind(this)),this.options=Re({},e.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Re({},e.Defaults.modifiers,r.modifiers)).forEach((function(t){i.options.modifiers[t]=Re({},e.Defaults.modifiers[t]||{},r.modifiers?r.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return Re({name:e},i.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&Se(e.onLoad)&&e.onLoad(i.reference,i.popper,i.options,e,i.state)})),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return Fe(e,[{key:"update",value:function(){return tt.call(this)}},{key:"destroy",value:function(){return rt.call(this)}},{key:"enableEventListeners",value:function(){return dt.call(this)}},{key:"disableEventListeners",value:function(){return lt.call(this)}}]),e}();_t.Utils=("undefined"!=typeof window?window:global).PopperUtils,_t.placements=pt,_t.Defaults=wt;var St="dropdown",xt="bs.dropdown",Tt="."+xt,kt=".data-api",Dt=i.default.fn[St],jt=new RegExp("38|40|27"),It="hide"+Tt,At="hidden"+Tt,Et="show"+Tt,Nt="shown"+Tt,Lt="click"+Tt,Mt="click"+Tt+kt,Pt="keydown"+Tt+kt,Ot="keyup"+Tt+kt,Ht="disabled",Ft="show",Qt="dropdown-menu-right",Rt='[data-toggle="dropdown"]',Bt=".dropdown-menu",Wt={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"static",popperConfig:null},Ut={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},qt=function(){function e(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var t=e.prototype;return t.toggle=function(){if(!this._element.disabled&&!i.default(this._element).hasClass(Ht)){var t=i.default(this._menu).hasClass(Ft);e._clearMenus(),t||this.show(!0)}},t.show=function(t){if(void 0===t&&(t=!1),!(this._element.disabled||i.default(this._element).hasClass(Ht)||i.default(this._menu).hasClass(Ft))){var n={relatedTarget:this._element},r=i.default.Event(Et,n),a=e._getParentFromElement(this._element);if(i.default(a).trigger(r),!r.isDefaultPrevented()){if(!this._inNavbar&&t){if(void 0===_t)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");var o=this._element;"parent"===this._config.reference?o=a:l.isElement(this._config.reference)&&(o=this._config.reference,void 0!==this._config.reference.jquery&&(o=this._config.reference[0])),"scrollParent"!==this._config.boundary&&i.default(a).addClass("position-static"),this._popper=new _t(o,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===i.default(a).closest(".navbar-nav").length&&i.default(document.body).children().on("mouseover",null,i.default.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),i.default(this._menu).toggleClass(Ft),i.default(a).toggleClass(Ft).trigger(i.default.Event(Nt,n))}}},t.hide=function(){if(!this._element.disabled&&!i.default(this._element).hasClass(Ht)&&i.default(this._menu).hasClass(Ft)){var t={relatedTarget:this._element},n=i.default.Event(It,t),r=e._getParentFromElement(this._element);i.default(r).trigger(n),n.isDefaultPrevented()||(this._popper&&this._popper.destroy(),i.default(this._menu).toggleClass(Ft),i.default(r).toggleClass(Ft).trigger(i.default.Event(At,t)))}},t.dispose=function(){i.default.removeData(this._element,xt),i.default(this._element).off(Tt),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},t.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},t._addEventListeners=function(){var e=this;i.default(this._element).on(Lt,(function(t){t.preventDefault(),t.stopPropagation(),e.toggle()}))},t._getConfig=function(e){return e=o({},this.constructor.Default,i.default(this._element).data(),e),l.typeCheckConfig(St,e,this.constructor.DefaultType),e},t._getMenuElement=function(){if(!this._menu){var t=e._getParentFromElement(this._element);t&&(this._menu=t.querySelector(Bt))}return this._menu},t._getPlacement=function(){var e=i.default(this._element.parentNode),t="bottom-start";return e.hasClass("dropup")?t=i.default(this._menu).hasClass(Qt)?"top-end":"top-start":e.hasClass("dropright")?t="right-start":e.hasClass("dropleft")?t="left-start":i.default(this._menu).hasClass(Qt)&&(t="bottom-end"),t},t._detectNavbar=function(){return i.default(this._element).closest(".navbar").length>0},t._getOffset=function(){var e=this,t={};return"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=o({},t.offsets,e._config.offset(t.offsets,e._element)||{}),t}:t.offset=this._config.offset,t},t._getPopperConfig=function(){var e={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(e.modifiers.applyStyle={enabled:!1}),o({},e,this._config.popperConfig)},e._jQueryInterface=function(t){return this.each((function(){var n=i.default(this).data(xt);if(n||(n=new e(this,"object"==typeof t?t:null),i.default(this).data(xt,n)),"string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]()}}))},e._clearMenus=function(t){if(!t||3!==t.which&&("keyup"!==t.type||9===t.which))for(var n=[].slice.call(document.querySelectorAll(Rt)),r=0,a=n.length;r0&&o--,40===t.which&&odocument.documentElement.clientHeight;n||(this._element.style.overflowY="hidden"),this._element.classList.add(pn);var r=l.getTransitionDurationFromElement(this._dialog);i.default(this._element).off(l.TRANSITION_END),i.default(this._element).one(l.TRANSITION_END,(function(){e._element.classList.remove(pn),n||i.default(e._element).one(l.TRANSITION_END,(function(){e._element.style.overflowY=""})).emulateTransitionEnd(e._element,r)})).emulateTransitionEnd(r),this._element.focus()}else this.hide()},t._showElement=function(e){var t=this,n=i.default(this._element).hasClass(hn),r=this._dialog?this._dialog.querySelector(".modal-body"):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),i.default(this._dialog).hasClass("modal-dialog-scrollable")&&r?r.scrollTop=0:this._element.scrollTop=0,n&&l.reflow(this._element),i.default(this._element).addClass(fn),this._config.focus&&this._enforceFocus();var a=i.default.Event(nn,{relatedTarget:e}),o=function(){t._config.focus&&t._element.focus(),t._isTransitioning=!1,i.default(t._element).trigger(a)};if(n){var s=l.getTransitionDurationFromElement(this._dialog);i.default(this._dialog).one(l.TRANSITION_END,o).emulateTransitionEnd(s)}else o()},t._enforceFocus=function(){var e=this;i.default(document).off(rn).on(rn,(function(t){document!==t.target&&e._element!==t.target&&0===i.default(e._element).has(t.target).length&&e._element.focus()}))},t._setEscapeEvent=function(){var e=this;this._isShown?i.default(this._element).on(sn,(function(t){e._config.keyboard&&27===t.which?(t.preventDefault(),e.hide()):e._config.keyboard||27!==t.which||e._triggerBackdropTransition()})):this._isShown||i.default(this._element).off(sn)},t._setResizeEvent=function(){var e=this;this._isShown?i.default(window).on(an,(function(t){return e.handleUpdate(t)})):i.default(window).off(an)},t._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop((function(){i.default(document.body).removeClass(cn),e._resetAdjustments(),e._resetScrollbar(),i.default(e._element).trigger(en)}))},t._removeBackdrop=function(){this._backdrop&&(i.default(this._backdrop).remove(),this._backdrop=null)},t._showBackdrop=function(e){var t=this,n=i.default(this._element).hasClass(hn)?hn:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",n&&this._backdrop.classList.add(n),i.default(this._backdrop).appendTo(document.body),i.default(this._element).on(on,(function(e){t._ignoreBackdropClick?t._ignoreBackdropClick=!1:e.target===e.currentTarget&&t._triggerBackdropTransition()})),n&&l.reflow(this._backdrop),i.default(this._backdrop).addClass(fn),!e)return;if(!n)return void e();var r=l.getTransitionDurationFromElement(this._backdrop);i.default(this._backdrop).one(l.TRANSITION_END,e).emulateTransitionEnd(r)}else if(!this._isShown&&this._backdrop){i.default(this._backdrop).removeClass(fn);var a=function(){t._removeBackdrop(),e&&e()};if(i.default(this._element).hasClass(hn)){var o=l.getTransitionDurationFromElement(this._backdrop);i.default(this._backdrop).one(l.TRANSITION_END,a).emulateTransitionEnd(o)}else a()}else e&&e()},t._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},t._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},t._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(e.left+e.right)
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:bn,popperConfig:null},Nn="show",Ln="out",Mn={HIDE:"hide"+xn,HIDDEN:"hidden"+xn,SHOW:"show"+xn,SHOWN:"shown"+xn,INSERTED:"inserted"+xn,CLICK:"click"+xn,FOCUSIN:"focusin"+xn,FOCUSOUT:"focusout"+xn,MOUSEENTER:"mouseenter"+xn,MOUSELEAVE:"mouseleave"+xn},Pn="fade",On="show",Hn="hover",Fn="focus",Qn=function(){function e(e,t){if(void 0===_t)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var t=e.prototype;return t.enable=function(){this._isEnabled=!0},t.disable=function(){this._isEnabled=!1},t.toggleEnabled=function(){this._isEnabled=!this._isEnabled},t.toggle=function(e){if(this._isEnabled)if(e){var t=this.constructor.DATA_KEY,n=i.default(e.currentTarget).data(t);n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),i.default(e.currentTarget).data(t,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(i.default(this.getTipElement()).hasClass(On))return void this._leave(null,this);this._enter(null,this)}},t.dispose=function(){clearTimeout(this._timeout),i.default.removeData(this.element,this.constructor.DATA_KEY),i.default(this.element).off(this.constructor.EVENT_KEY),i.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&i.default(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},t.show=function(){var e=this;if("none"===i.default(this.element).css("display"))throw new Error("Please use show on visible elements");var t=i.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){i.default(this.element).trigger(t);var n=l.findShadowRoot(this.element),r=i.default.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!r)return;var a=this.getTipElement(),o=l.getUID(this.constructor.NAME);a.setAttribute("id",o),this.element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&i.default(a).addClass(Pn);var s="function"==typeof this.config.placement?this.config.placement.call(this,a,this.element):this.config.placement,d=this._getAttachment(s);this.addAttachmentClass(d);var u=this._getContainer();i.default(a).data(this.constructor.DATA_KEY,this),i.default.contains(this.element.ownerDocument.documentElement,this.tip)||i.default(a).appendTo(u),i.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new _t(this.element,a,this._getPopperConfig(d)),i.default(a).addClass(On),"ontouchstart"in document.documentElement&&i.default(document.body).children().on("mouseover",null,i.default.noop);var c=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,i.default(e.element).trigger(e.constructor.Event.SHOWN),t===Ln&&e._leave(null,e)};if(i.default(this.tip).hasClass(Pn)){var h=l.getTransitionDurationFromElement(this.tip);i.default(this.tip).one(l.TRANSITION_END,c).emulateTransitionEnd(h)}else c()}},t.hide=function(e){var t=this,n=this.getTipElement(),r=i.default.Event(this.constructor.Event.HIDE),a=function(){t._hoverState!==Nn&&n.parentNode&&n.parentNode.removeChild(n),t._cleanTipClass(),t.element.removeAttribute("aria-describedby"),i.default(t.element).trigger(t.constructor.Event.HIDDEN),null!==t._popper&&t._popper.destroy(),e&&e()};if(i.default(this.element).trigger(r),!r.isDefaultPrevented()){if(i.default(n).removeClass(On),"ontouchstart"in document.documentElement&&i.default(document.body).children().off("mouseover",null,i.default.noop),this._activeTrigger.click=!1,this._activeTrigger[Fn]=!1,this._activeTrigger[Hn]=!1,i.default(this.tip).hasClass(Pn)){var o=l.getTransitionDurationFromElement(n);i.default(n).one(l.TRANSITION_END,a).emulateTransitionEnd(o)}else a();this._hoverState=""}},t.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},t.isWithContent=function(){return Boolean(this.getTitle())},t.addAttachmentClass=function(e){i.default(this.getTipElement()).addClass(kn+"-"+e)},t.getTipElement=function(){return this.tip=this.tip||i.default(this.config.template)[0],this.tip},t.setContent=function(){var e=this.getTipElement();this.setElementContent(i.default(e.querySelectorAll(".tooltip-inner")),this.getTitle()),i.default(e).removeClass(Pn+" "+On)},t.setElementContent=function(e,t){"object"!=typeof t||!t.nodeType&&!t.jquery?this.config.html?(this.config.sanitize&&(t=wn(t,this.config.whiteList,this.config.sanitizeFn)),e.html(t)):e.text(t):this.config.html?i.default(t).parent().is(e)||e.empty().append(t):e.text(i.default(t).text())},t.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e||(e="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),e},t._getPopperConfig=function(e){var t=this;return o({},{placement:e,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){return t._handlePopperPlacementChange(e)}},this.config.popperConfig)},t._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=o({},t.offsets,e.config.offset(t.offsets,e.element)||{}),t}:t.offset=this.config.offset,t},t._getContainer=function(){return!1===this.config.container?document.body:l.isElement(this.config.container)?i.default(this.config.container):i.default(document).find(this.config.container)},t._getAttachment=function(e){return An[e.toUpperCase()]},t._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach((function(t){if("click"===t)i.default(e.element).on(e.constructor.Event.CLICK,e.config.selector,(function(t){return e.toggle(t)}));else if("manual"!==t){var n=t===Hn?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,r=t===Hn?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;i.default(e.element).on(n,e.config.selector,(function(t){return e._enter(t)})).on(r,e.config.selector,(function(t){return e._leave(t)}))}})),this._hideModalHandler=function(){e.element&&e.hide()},i.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=o({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},t._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},t._enter=function(e,t){var n=this.constructor.DATA_KEY;(t=t||i.default(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),i.default(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusin"===e.type?Fn:Hn]=!0),i.default(t.getTipElement()).hasClass(On)||t._hoverState===Nn?t._hoverState=Nn:(clearTimeout(t._timeout),t._hoverState=Nn,t.config.delay&&t.config.delay.show?t._timeout=setTimeout((function(){t._hoverState===Nn&&t.show()}),t.config.delay.show):t.show())},t._leave=function(e,t){var n=this.constructor.DATA_KEY;(t=t||i.default(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),i.default(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusout"===e.type?Fn:Hn]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=Ln,t.config.delay&&t.config.delay.hide?t._timeout=setTimeout((function(){t._hoverState===Ln&&t.hide()}),t.config.delay.hide):t.hide())},t._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},t._getConfig=function(e){var t=i.default(this.element).data();return Object.keys(t).forEach((function(e){-1!==jn.indexOf(e)&&delete t[e]})),"number"==typeof(e=o({},this.constructor.Default,t,"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),l.typeCheckConfig(_n,e,this.constructor.DefaultType),e.sanitize&&(e.template=wn(e.template,e.whiteList,e.sanitizeFn)),e},t._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},t._cleanTipClass=function(){var e=i.default(this.getTipElement()),t=e.attr("class").match(Dn);null!==t&&t.length&&e.removeClass(t.join(""))},t._handlePopperPlacementChange=function(e){this.tip=e.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},t._fixTransition=function(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&(i.default(e).removeClass(Pn),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},e._jQueryInterface=function(t){return this.each((function(){var n=i.default(this),r=n.data(Sn),a="object"==typeof t&&t;if((r||!/dispose|hide/.test(t))&&(r||(r=new e(this,a),n.data(Sn,r)),"string"==typeof t)){if(void 0===r[t])throw new TypeError('No method named "'+t+'"');r[t]()}}))},a(e,null,[{key:"VERSION",get:function(){return"4.5.3"}},{key:"Default",get:function(){return En}},{key:"NAME",get:function(){return _n}},{key:"DATA_KEY",get:function(){return Sn}},{key:"Event",get:function(){return Mn}},{key:"EVENT_KEY",get:function(){return xn}},{key:"DefaultType",get:function(){return In}}]),e}();i.default.fn[_n]=Qn._jQueryInterface,i.default.fn[_n].Constructor=Qn,i.default.fn[_n].noConflict=function(){return i.default.fn[_n]=Tn,Qn._jQueryInterface};var Rn="popover",Bn="bs.popover",Wn="."+Bn,Un=i.default.fn[Rn],qn="bs-popover",zn=new RegExp("(^|\\s)"+qn+"\\S+","g"),Gn=o({},Qn.Default,{placement:"right",trigger:"click",content:"",template:''}),Vn=o({},Qn.DefaultType,{content:"(string|element|function)"}),Kn={HIDE:"hide"+Wn,HIDDEN:"hidden"+Wn,SHOW:"show"+Wn,SHOWN:"shown"+Wn,INSERTED:"inserted"+Wn,CLICK:"click"+Wn,FOCUSIN:"focusin"+Wn,FOCUSOUT:"focusout"+Wn,MOUSEENTER:"mouseenter"+Wn,MOUSELEAVE:"mouseleave"+Wn},Jn=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.isWithContent=function(){return this.getTitle()||this._getContent()},o.addAttachmentClass=function(e){i.default(this.getTipElement()).addClass(qn+"-"+e)},o.getTipElement=function(){return this.tip=this.tip||i.default(this.config.template)[0],this.tip},o.setContent=function(){var e=i.default(this.getTipElement());this.setElementContent(e.find(".popover-header"),this.getTitle());var t=this._getContent();"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(e.find(".popover-body"),t),e.removeClass("fade show")},o._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},o._cleanTipClass=function(){var e=i.default(this.getTipElement()),t=e.attr("class").match(zn);null!==t&&t.length>0&&e.removeClass(t.join(""))},r._jQueryInterface=function(e){return this.each((function(){var t=i.default(this).data(Bn),n="object"==typeof e?e:null;if((t||!/dispose|hide/.test(e))&&(t||(t=new r(this,n),i.default(this).data(Bn,t)),"string"==typeof e)){if(void 0===t[e])throw new TypeError('No method named "'+e+'"');t[e]()}}))},a(r,null,[{key:"VERSION",get:function(){return"4.5.3"}},{key:"Default",get:function(){return Gn}},{key:"NAME",get:function(){return Rn}},{key:"DATA_KEY",get:function(){return Bn}},{key:"Event",get:function(){return Kn}},{key:"EVENT_KEY",get:function(){return Wn}},{key:"DefaultType",get:function(){return Vn}}]),r}(Qn);i.default.fn[Rn]=Jn._jQueryInterface,i.default.fn[Rn].Constructor=Jn,i.default.fn[Rn].noConflict=function(){return i.default.fn[Rn]=Un,Jn._jQueryInterface};var Xn="scrollspy",Yn="bs.scrollspy",Zn="."+Yn,ei=i.default.fn[Xn],ti={offset:10,method:"auto",target:""},ni={offset:"number",method:"string",target:"(string|element)"},ii="activate"+Zn,ri="scroll"+Zn,ai="load"+Zn+".data-api",oi="active",si=".nav, .list-group",di=".nav-link",li=".list-group-item",ui="position",ci=function(){function e(e,t){var n=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(t),this._selector=this._config.target+" "+di+","+this._config.target+" "+li+","+this._config.target+" .dropdown-item",this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,i.default(this._scrollElement).on(ri,(function(e){return n._process(e)})),this.refresh(),this._process()}var t=e.prototype;return t.refresh=function(){var e=this,t=this._scrollElement===this._scrollElement.window?"offset":ui,n="auto"===this._config.method?t:this._config.method,r=n===ui?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(e){var t,a=l.getSelectorFromElement(e);if(a&&(t=document.querySelector(a)),t){var o=t.getBoundingClientRect();if(o.width||o.height)return[i.default(t)[n]().top+r,a]}return null})).filter((function(e){return e})).sort((function(e,t){return e[0]-t[0]})).forEach((function(t){e._offsets.push(t[0]),e._targets.push(t[1])}))},t.dispose=function(){i.default.removeData(this._element,Yn),i.default(this._scrollElement).off(Zn),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},t._getConfig=function(e){if("string"!=typeof(e=o({},ti,"object"==typeof e&&e?e:{})).target&&l.isElement(e.target)){var t=i.default(e.target).attr("id");t||(t=l.getUID(Xn),i.default(e.target).attr("id",t)),e.target="#"+t}return l.typeCheckConfig(Xn,e,ni),e},t._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},t._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},t._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},t._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&e0)return this._activeTarget=null,void this._clear();for(var r=this._offsets.length;r--;){this._activeTarget!==this._targets[r]&&e>=this._offsets[r]&&(void 0===this._offsets[r+1]||e li > .active",Ti=function(){function e(e){this._element=e}var t=e.prototype;return t.show=function(){var e=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&i.default(this._element).hasClass(Ci)||i.default(this._element).hasClass("disabled"))){var t,n,r=i.default(this._element).closest(".nav, .list-group")[0],a=l.getSelectorFromElement(this._element);if(r){var o="UL"===r.nodeName||"OL"===r.nodeName?xi:Si;n=(n=i.default.makeArray(i.default(r).find(o)))[n.length-1]}var s=i.default.Event(mi,{relatedTarget:this._element}),d=i.default.Event(yi,{relatedTarget:n});if(n&&i.default(n).trigger(s),i.default(this._element).trigger(d),!d.isDefaultPrevented()&&!s.isDefaultPrevented()){a&&(t=document.querySelector(a)),this._activate(this._element,r);var u=function(){var t=i.default.Event(vi,{relatedTarget:e._element}),r=i.default.Event(bi,{relatedTarget:n});i.default(n).trigger(t),i.default(e._element).trigger(r)};t?this._activate(t,t.parentNode,u):u()}}},t.dispose=function(){i.default.removeData(this._element,fi),this._element=null},t._activate=function(e,t,n){var r=this,a=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?i.default(t).children(Si):i.default(t).find(xi))[0],o=n&&a&&i.default(a).hasClass(wi),s=function(){return r._transitionComplete(e,a,n)};if(a&&o){var d=l.getTransitionDurationFromElement(a);i.default(a).removeClass(_i).one(l.TRANSITION_END,s).emulateTransitionEnd(d)}else s()},t._transitionComplete=function(e,t,n){if(t){i.default(t).removeClass(Ci);var r=i.default(t.parentNode).find("> .dropdown-menu .active")[0];r&&i.default(r).removeClass(Ci),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}if(i.default(e).addClass(Ci),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),l.reflow(e),e.classList.contains(wi)&&e.classList.add(_i),e.parentNode&&i.default(e.parentNode).hasClass("dropdown-menu")){var a=i.default(e).closest(".dropdown")[0];if(a){var o=[].slice.call(a.querySelectorAll(".dropdown-toggle"));i.default(o).addClass(Ci)}e.setAttribute("aria-expanded",!0)}n&&n()},e._jQueryInterface=function(t){return this.each((function(){var n=i.default(this),r=n.data(fi);if(r||(r=new e(this),n.data(fi,r)),"string"==typeof t){if(void 0===r[t])throw new TypeError('No method named "'+t+'"');r[t]()}}))},a(e,null,[{key:"VERSION",get:function(){return"4.5.3"}}]),e}();i.default(document).on($i,'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',(function(e){e.preventDefault(),Ti._jQueryInterface.call(i.default(this),"show")})),i.default.fn[hi]=Ti._jQueryInterface,i.default.fn[hi].Constructor=Ti,i.default.fn[hi].noConflict=function(){return i.default.fn[hi]=gi,Ti._jQueryInterface};var ki="toast",Di="bs.toast",ji="."+Di,Ii=i.default.fn[ki],Ai="click.dismiss"+ji,Ei="hide"+ji,Ni="hidden"+ji,Li="show"+ji,Mi="shown"+ji,Pi="hide",Oi="show",Hi="showing",Fi={animation:"boolean",autohide:"boolean",delay:"number"},Qi={animation:!0,autohide:!0,delay:500},Ri=function(){function e(e,t){this._element=e,this._config=this._getConfig(t),this._timeout=null,this._setListeners()}var t=e.prototype;return t.show=function(){var e=this,t=i.default.Event(Li);if(i.default(this._element).trigger(t),!t.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");var n=function(){e._element.classList.remove(Hi),e._element.classList.add(Oi),i.default(e._element).trigger(Mi),e._config.autohide&&(e._timeout=setTimeout((function(){e.hide()}),e._config.delay))};if(this._element.classList.remove(Pi),l.reflow(this._element),this._element.classList.add(Hi),this._config.animation){var r=l.getTransitionDurationFromElement(this._element);i.default(this._element).one(l.TRANSITION_END,n).emulateTransitionEnd(r)}else n()}},t.hide=function(){if(this._element.classList.contains(Oi)){var e=i.default.Event(Ei);i.default(this._element).trigger(e),e.isDefaultPrevented()||this._close()}},t.dispose=function(){this._clearTimeout(),this._element.classList.contains(Oi)&&this._element.classList.remove(Oi),i.default(this._element).off(Ai),i.default.removeData(this._element,Di),this._element=null,this._config=null},t._getConfig=function(e){return e=o({},Qi,i.default(this._element).data(),"object"==typeof e&&e?e:{}),l.typeCheckConfig(ki,e,this.constructor.DefaultType),e},t._setListeners=function(){var e=this;i.default(this._element).on(Ai,'[data-dismiss="toast"]',(function(){return e.hide()}))},t._close=function(){var e=this,t=function(){e._element.classList.add(Pi),i.default(e._element).trigger(Ni)};if(this._element.classList.remove(Oi),this._config.animation){var n=l.getTransitionDurationFromElement(this._element);i.default(this._element).one(l.TRANSITION_END,t).emulateTransitionEnd(n)}else t()},t._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},e._jQueryInterface=function(t){return this.each((function(){var n=i.default(this),r=n.data(Di);if(r||(r=new e(this,"object"==typeof t&&t),n.data(Di,r)),"string"==typeof t){if(void 0===r[t])throw new TypeError('No method named "'+t+'"');r[t](this)}}))},a(e,null,[{key:"VERSION",get:function(){return"4.5.3"}},{key:"DefaultType",get:function(){return Fi}},{key:"Default",get:function(){return Qi}}]),e}();i.default.fn[ki]=Ri._jQueryInterface,i.default.fn[ki].Constructor=Ri,i.default.fn[ki].noConflict=function(){return i.default.fn[ki]=Ii,Ri._jQueryInterface},e.Alert=v,e.Button=I,e.Carousel=ne,e.Collapse=$e,e.Dropdown=qt,e.Modal=vn,e.Popover=Jn,e.Scrollspy=ci,e.Tab=Ti,e.Toast=Ri,e.Tooltip=Qn,e.Util=l,Object.defineProperty(e,"__esModule",{value:!0})})), /*! * iCheck v1.0.3, http://git.io/arlzeA * =================================== * Powerful jQuery and Zepto plugin for checkboxes and radio buttons customization * * (c) 2013 Damir Sultanov, http://fronteed.com * MIT Licensed */ function(e){var t="iCheck",n=t+"-helper",i="checkbox",r="radio",a="checked",o="un"+a,s="disabled",d="determinate",l="in"+d,u="update",c="type",h="click",f="touchbegin.i touchend.i",p="addClass",g="removeClass",m="trigger",v="label",y="cursor",b=/ip(hone|od|ad)|android|blackberry|windows phone|opera mini|silk/i.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1;function $(e,t,n){var i=e[0],o=/er/.test(n)?l:/bl/.test(n)?s:a,h=n==u?{checked:i[a],disabled:i[s],indeterminate:"true"==e.attr(l)||"false"==e.attr(d)}:i[o];if(/^(ch|di|in)/.test(n)&&!h)C(e,o);else if(/^(un|en|de)/.test(n)&&h)w(e,o);else if(n==u)for(var f in h)h[f]?C(e,f,!0):w(e,f,!0);else t&&"toggle"!=n||(t||e[m]("ifClicked"),h?i[c]!==r&&w(e,o):C(e,o))}function C(i,u,h){var f=i[0],m=i.parent(),v=u==a,b=u==l,$=u==s,C=b?d:v?o:"enabled",_=S(i,C+x(f[c])),k=S(i,u+x(f[c]));if(!0!==f[u]){if(!h&&u==a&&f[c]==r&&f.name){var D=i.closest("form"),j='input[name="'+f.name+'"]';(j=D.length?D.find(j):e(j)).each((function(){this!==f&&e(this).data(t)&&w(e(this),u)}))}b?(f[u]=!0,f[a]&&w(i,a,"force")):(h||(f[u]=!0),v&&f[l]&&w(i,l,!1)),T(i,v,u,h)}f[s]&&S(i,y,!0)&&m.find("."+n).css(y,"default"),m[p](k||S(i,u)||""),m.attr("role")&&!b&&m.attr("aria-"+($?s:a),"true"),m[g](_||S(i,C)||"")}function w(e,t,i){var r=e[0],u=e.parent(),h=t==a,f=t==l,m=t==s,v=f?d:h?o:"enabled",b=S(e,v+x(r[c])),$=S(e,t+x(r[c]));!1!==r[t]&&(!f&&i&&"force"!=i||(r[t]=!1),T(e,h,v,i)),!r[s]&&S(e,y,!0)&&u.find("."+n).css(y,"pointer"),u[g]($||S(e,t)||""),u.attr("role")&&!f&&u.attr("aria-"+(m?s:a),"false"),u[p](b||S(e,v)||"")}function _(n,i){n.data(t)&&(n.parent().html(n.attr("style",n.data(t).s||"")),i&&n[m](i),n.off(".i").unwrap(),e(v+'[for="'+n[0].id+'"]').add(n.closest(v)).off(".i"))}function S(e,n,i){if(e.data(t))return e.data(t).o[n+(i?"":"Class")]}function x(e){return e.charAt(0).toUpperCase()+e.slice(1)}function T(e,t,n,i){i||(t&&e[m]("ifToggled"),e[m]("change")[m]("ifChanged")[m]("if"+x(n)))}e.fn[t]=function(o,d){var y='input[type="'+i+'"], input[type="'+r+'"]',S=e(),x=function(t){t.each((function(){var t=e(this);S=t.is(y)?S.add(t):S.add(t.find(y))}))};if(/^(check|uncheck|toggle|indeterminate|determinate|disable|enable|update|destroy)$/i.test(o))return o=o.toLowerCase(),x(this),S.each((function(){var t=e(this);"destroy"==o?_(t,"ifDestroyed"):$(t,!0,o),e.isFunction(d)&&d()}));if("object"!=typeof o&&o)return this;var T=e.extend({checkedClass:a,disabledClass:s,indeterminateClass:l,labelHover:!0},o),k=T.handle,D=T.hoverClass||"hover",j=T.focusClass||"focus",I=T.activeClass||"active",A=!!T.labelHover,E=T.labelHoverClass||"hover",N=0|(""+T.increaseArea).replace("%","");return k!=i&&k!=r||(y='input[type="'+k+'"]'),N<-50&&(N=-50),x(this),S.each((function(){var o=e(this);_(o);var d,l=this,y=l.id,S=-N+"%",x=100+2*N+"%",k={position:"absolute",top:S,left:S,display:"block",width:x,height:x,margin:0,padding:0,background:"#fff",border:0,opacity:0},L=b?{position:"absolute",visibility:"hidden"}:N?k:{position:"absolute",opacity:0},M=l[c]==i?T.checkboxClass||"i"+i:T.radioClass||"i"+r,P=e(v+'[for="'+y+'"]').add(o.closest(v)),O=!!T.aria,H=t+"-"+Math.random().toString(36).substr(2,6),F='
")[m]("ifCreated").parent().append(T.insert),d=e('').css(k).appendTo(F),o.data(t,{o:T,s:o.attr("style")}).css(L),T.inheritClass&&F[p](l.className||""),T.inheritID&&y&&F.attr("id",t+"-"+y),"static"==F.css("position")&&F.css("position","relative"),$(o,!0,u),P.length&&P.on(h+".i mouseover.i mouseout.i "+f,(function(t){var n=t[c],i=e(this);if(!l[s]){if(n==h){if(e(t.target).is("a"))return;$(o,!1,!0)}else A&&(/ut|nd/.test(n)?(F[g](D),i[g](E)):(F[p](D),i[p](E)));if(!b)return!1;t.stopPropagation()}})),o.on(h+".i focus.i blur.i keyup.i keydown.i keypress.i",(function(e){var t=e[c],n=e.keyCode;return t!=h&&("keydown"==t&&32==n?(l[c]==r&&l[a]||(l[a]?w(o,a):C(o,a)),!1):void("keyup"==t&&l[c]==r?!l[a]&&C(o,a):/us|ur/.test(t)&&F["blur"==t?g:p](j)))})),d.on(h+" mousedown mouseup mouseover mouseout "+f,(function(e){var t=e[c],n=/wn|up/.test(t)?I:D;if(!l[s]){if(t==h?$(o,!1,!0):(/wn|er|in/.test(t)?F[p](n):F[g](n+" "+I),P.length&&A&&n==D&&P[/ut|nd/.test(t)?g:p](E)),!b)return!1;e.stopPropagation()}}))}))}}(window.jQuery||window.Zepto), /** * WHMCS core JS library reference * * @copyright Copyright (c) WHMCS Limited 2005-2017 * @license http://www.whmcs.com/license/ WHMCS Eula */ function(e,t){"object"!=typeof e.WHMCS&&(e.WHMCS=t)}(window,{hasModule:function(e){return void 0!==WHMCS[e]&&Object.getOwnPropertyNames(WHMCS[e]).length>0},loadModule:function(e,t){if(!this.hasModule(e))if(WHMCS[e]={},"function"==typeof t)t.apply(WHMCS[e]);else for(var n in t)t.hasOwnProperty(n)&&(WHMCS[e][n]={},t[n].apply(WHMCS[e][n]))}}),jQuery(document).ready((function(){jQuery(document).on("click",".disable-on-click",(function(){if(jQuery(this).addClass("disabled"),jQuery(this).hasClass("spinner-on-click")){var e=$(this).find("i.fas,i.far,i.fal,i.fab");jQuery(e).removeAttr("class").addClass("fas fa-spinner fa-spin")}})).on("click","#openTicketSubmit.disabled",(function(){return!1}))})),function(e){WHMCS.hasModule("authn")||WHMCS.loadModule("authn",e)}({provider:function(){var e=!1;this.feedbackContainer=function(){return jQuery(".providerLinkingFeedback")},this.btnContainer=function(){return jQuery(".providerPreLinking")},this.feedbackMessage=function(e){void 0===e&&(e="complete_sign_in");var t=jQuery("p.providerLinkingMsg-preLink-"+e);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(e){this.feedbackContainer().removeClass("alert-danger alert-success").addClass("alert alert-info").html(' '+this.feedbackMessage()).hide();var t=this.btnContainer();if(t.length)if(t.data("hideOnPrelink")){var n=this;t.fadeOut("false",(function(){n.showProgressMessage(e)}))}else t.data("disableOnPrelink")?(t.find(".btn").addClass("disabled"),this.showProgressMessage(e)):this.showProgressMessage(e);else this.showProgressMessage(e)},this.displayError=function(e,t,n){jQuery("#providerLinkingMessages .provider-name").html(e);var i=this.feedbackMessage("connect_error");if(t){var r=this.feedbackMessage(t);r&&(i=r)}n&&$(".btn-logged-in-admin").length>0&&(i+=" Error: "+n),this.feedbackContainer().removeClass("alert-info alert-success").addClass("alert alert-danger").html(i).slideDown()},this.displaySuccess=function(e,t,n){var i=n.icon,r=t.htmlTarget,a=t.targetLogin,o=t.targetRegister,s=n.name,d="";switch(e.result){case"logged_in":case"2fa_needed":d=this.feedbackMessage("2fa_needed"),this.feedbackContainer().removeClass("alert-danger alert-warning alert-success").addClass("alert alert-info").html(d),window.location=e.redirect_url?decodeURIComponent(e.redirect_url):decodeURIComponent(t.redirectUrl);break;case"linking_complete":var l="";l=(l=e.remote_account.email?e.remote_account.email:e.remote_account.firstname+" "+e.remote_account.lastname).trim(),d=this.feedbackMessage("linking_complete").trim().replace(":displayName",s),l&&(d=d.replace(/\.$/," ("+l+").")),this.feedbackContainer().removeClass("alert-danger alert-warning alert-info").addClass("alert alert-success").html(i+d);break;case"login_to_link":if(r===a)d=this.feedbackMessage("login_to_link-signin-required"),this.feedbackContainer().removeClass("alert-danger alert-success alert-info").addClass("alert alert-warning").html(i+d);else{var u=jQuery("input[name=email]"),c=jQuery("input[name=firstname]"),h=jQuery("input[name=lastname]");if(""===u.val()&&u.val(e.remote_account.email),""===c.val()&&c.val(e.remote_account.firstname),""===h.val()&&h.val(e.remote_account.lastname),r===o)"object"==typeof WHMCS.client.registration&&WHMCS.client.registration.prefillPassword(),d=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(i+d).fadeIn("fast")}));else{"object"==typeof WHMCS.client.registration&&WHMCS.client.registration.prefillPassword();var f=this;this.feedbackContainer().each((function(e,t){var n=$(t),r=n.siblings("div .providerPreLinking").data("linkContext");n.fadeOut("slow",(function(){d="checkout-new"===r?f.feedbackMessage("checkout-new"):f.feedbackMessage("login_to_link-signin-required"),n.removeClass("alert-danger alert-success alert-info").addClass("alert alert-warning").html(i+d).fadeIn("fast")}))}))}}break;case"other_user_exists":d=this.feedbackMessage("other_user_exists"),this.feedbackContainer().removeClass("alert-info alert-success").addClass("alert alert-danger").html(i+d).slideDown();break;case"already_linked":d=this.feedbackMessage("already_linked"),this.feedbackContainer().removeClass("alert-info alert-success").addClass("alert alert-danger").html(i+d).slideDown();break;default:d=this.feedbackMessage("default"),this.feedbackContainer().removeClass("alert-info alert-success").addClass("alert alert-danger").html(i+d).slideDown()}},this.signIn=function(e,t,n,i,r){jQuery.ajax(e).done((function(e){i(),WHMCS.authn.provider.displaySuccess(e,t,n),jQuery("#tableLinkedAccounts").length&&WHMCS.ui.dataTable.getTableById("tableLinkedAccounts").ajax.reload()})).error((function(){r(),WHMCS.authn.provider.displayError()}))};var t=[],n=!1;return this.registerSdkErrorHandler=function(e){for(var i=this,r=0;r").attr("id","whmcsAutoPostForm").attr("target","_self").attr("method","POST").append(jQuery("").attr("type","hidden").attr("name","token").attr("value",csrfToken)),jQuery("body").append(this.postForm)),this.postForm},this.isSameOrigin=function(e){return e.origin&&e.origin===this.hostOrigin},this.isClientModopCustom=function(e){return!(!e.pathname||!e.pathname.match(/\/clientarea.php$/))&&!(!e.searchParams||"custom"!==e.searchParams.get("modop"))},this.getFqUrl=function(e){try{if(!e.match(/[a-z]+:\/\//i)){if(0!==e.indexOf("/")){e=`${window.location.pathname.split("/").slice(0,-1).join("/")}/${e}`}e=`${this.hostOrigin}${e}`}return url=new URL(e)}catch(e){return null}},this.isUrlEligibleForToken=function(e){return!("string"==typeof e&&!(e=this.getFqUrl(e)))&&("object"==typeof e&&(!!this.isSameOrigin(e)&&this.isClientModopCustom(e)))},this.submitUrlViaPost=function(e,t){jQuery(this.getAutoPostForm()).attr("target",t||"_self").attr("action",e).submit()},this.processTokenSubmitters=function(){jQuery("a").each(((e,t)=>{const n=jQuery(t).attr("href");n&&this.isUrlEligibleForToken(n)&&(jQuery(t).data("whmcs-tokenized")||(jQuery(t).data("whmcs-tokenized",!0),jQuery(t).attr("href","#"),jQuery(t).on("click",(e=>{let i=jQuery(t).attr("target");(e.metaKey||e.ctrlKey)&&(i="_blank"),e.preventDefault(),this.submitUrlViaPost(n,i)})),jQuery(t).on("contextmenu",(e=>(e.preventDefault(),!1)))))}))}}}), /** * WHMCS HTTP module * * @copyright Copyright (c) WHMCS Limited 2005-2018 * @license http://www.whmcs.com/license/ WHMCS Eula */ function(e){WHMCS.hasModule("http")||WHMCS.loadModule("http",e)}({jqClient:function(){return _getSettings=function(e,t,n,i){return"object"==typeof e?e:("function"==typeof t&&(n=t,t=null),{url:e,data:t,success:n,dataType:i})},this.get=function(e,t,n,i){return WHMCS.http.client.request(jQuery.extend(_getSettings(e,t,n,i),{type:"GET"}))},this.post=function(e,t,n,i){return WHMCS.http.client.request(jQuery.extend(_getSettings(e,t,n,i),{type:"POST"}))},this.jsonGet=function(e){e=e||{},this.get(e.url,e.data,(function(t){t.warning?(console.log("[WHMCS] Warning: "+t.warning),"function"==typeof e.warning&&e.warning(t.warning)):t.error?(console.log("[WHMCS] Error: "+t.error),"function"==typeof e.error&&e.error(t.error)):"function"==typeof e.success&&e.success(t)}),"json").error((function(t,n){console.log("[WHMCS] Error: "+n),"function"==typeof e.fail&&e.fail(n)})).always((function(){"function"==typeof e.always&&e.always()}))},this.jsonPost=function(e){e=e||{},this.post(e.url,e.data,(function(t,n,i){t.warning?(console.log("[WHMCS] Warning: "+t.warning),"function"==typeof e.warning&&e.warning(t.warning,t,i),$(".btn-checkout").length&&($(".btn-checkout span").removeClass("invisible"),$(".btn-checkout loader").addClass("hidden"))):t.error?(console.log("[WHMCS] Error: "+t.error),"function"==typeof e.error&&e.error(t.error,t,i),$(".btn-checkout").length&&($(".btn-checkout span").removeClass("invisible"),$(".btn-checkout loader").addClass("hidden"))):"function"==typeof e.success&&e.success(t,i)}),"json").fail((function(t,n,i){console.log("[WHMCS] Fail: "+n),"function"==typeof e.fail&&e.fail(n,t.responseJSON,t)})).always((function(t,n,i){"function"==typeof e.always&&e.always(t)}))},this},client:function(){var e=this;return _beforeRequest=function(e){return void 0===e.type&&(e.type="GET"),e},this.request=function(e){return e=_beforeRequest(e||{}),jQuery.ajax(e)},jQuery.each(["get","post","put","delete"],(function(t,n){e[n]=function(e,t){return function(n){return(n=n||{}).type=e.toUpperCase(),t.request(n)}}(n,e)})),this}}), /** * WHMCS UI module * * @copyright Copyright (c) WHMCS Limited 2005-2017 * @license http://www.whmcs.com/license/ WHMCS Eula */ function(e){WHMCS.hasModule("ui")||WHMCS.loadModule("ui",e)}({confirmation:function(){var e=[];return this.register=function(t){return void 0===t&&(t="[data-toggle=confirmation]"),e.indexOf(t)<0&&e.push(t),jQuery(t).confirmation({rootSelector:t}),e},this},dataTable:function(){return this.tables={},this.register=function(){var e=this;jQuery("table.data-driven").each((function(t,n){e.getTableById(n.id,void 0)}))},this.getTableById=function(e,t){var n=this,i=jQuery("#"+e);if(void 0===n.tables[e])void 0===t&&(t={dom:'<"listtable"ift>pl',paging:!1,lengthChange:!1,searching:!1,ordering:!0,info:!1,autoWidth:!0,columns:[],lengthMenu:[10,25,50,100,500,1e3],language:{emptyTable:i.data("langEmptyTable")?i.data("langEmptyTable"):"No records found"}}),jQuery.each(i.data(),(function(e,n){if(void 0!==n)if("ajaxUrl"!==e)if("lengthChange"!==e){if("pageLength"!==e)return"langEmptyTable"===e?(void 0===t.language&&(t.language={}),void(t.language.emptyTable=n)):"langZeroRecords"===e?(void 0===t.language&&(t.language={}),void(t.language.zeroRecords=n)):void(t.key=n);t.pageLength=n}else t.lengthChange=n;else t.ajax={url:n}})),jQuery.each(i.find("th"),(function(){void 0===t.columns&&(t.columns=[]),t.columns.push({data:jQuery(this).data("name")})})),n.tables[e]=n.initTable(i,t);else if(void 0!==t){var r=n.tables[e],a=r.init(),o=jQuery.extend(a,t);r.destroy(),n.tables[e]=n.initTable(i,o)}return n.tables[e]},this.initTable=function(e,t){var n=e.DataTable(t),i=this;return e.data("on-draw")?n.on("draw.dt",(function(t,n){var i=e.data("on-draw");"function"==typeof window[i]&&window[i](t,n)})):e.data("on-draw-rebind-confirmation")&&n.on("draw.dt",(function(e){i.rebindConfirmation(e)})),n},this.rebindConfirmation=function(e){for(var t=this,n=e.target.id,i=WHMCS.ui.confirmation.register(),r=0,a=i.length;r").css("position","fixed").css("opacity","0").css("width","1px").css("height","1px").val($(n).val());i.append(r),r.focus().select(),document.execCommand("copy")}finally{r.remove()}t.tooltip({trigger:"click",placement:"bottom"}),WHMCS.ui.toolTip.setTip(t,"Copied!"),WHMCS.ui.toolTip.hideTip(t)},this},toolTip:function(){this.setTip=function(e,t){var n=e.data("bs.tooltip");return"in"!==n.hoverState&&(n.hoverState="in"),e.attr("data-original-title",t),n.show(),n},this.hideTip=function(e,t){return t||(t=2e3),setTimeout((function(){e.data("bs.tooltip").hide()}),t)}},jsonForm:function(){return this.managedElements="input,textarea,select",this.initFields=function(e){var t=this;$(e).find(t.managedElements).each((function(){var e=this;$(e).on("keypress change",(function(){t.fieldHasError(e)&&t.clearFieldError(e)}))}))},this.init=function(e){var t=this;t.initFields(e),$(e).on("submit",(function(n){n.preventDefault(),n.stopPropagation(),t.clearErrors(e);var i=$(e).parents('.modal[role="dialog"]').first();$(i).length&&($(i).on("show.bs.modal hidden.bs.modal",(function(){t.clearErrors(e)})),$(i).on("show.bs.modal",(function(){$(e)[0].reset()}))),WHMCS.http.client.post({url:$(e).attr("action"),data:$(e).serializeArray()}).done((function(n){t.onSuccess(e,n)})).fail((function(n){t.onError(e,n)})).always((function(n){t.onRequestComplete(e,n)}))}))},this.initAll=function(){var e=this;$('form[data-role="json-form"]').each((function(){e.init(this)}))},this.markFieldErrors=function(e,t){var n,i,r=null;for(var a in t)t.hasOwnProperty(a)&&(r=t[a]),i=this.managedElements.split(",").map((function(e){return e+'[name="'+a+'"]'})).join(","),n=$(e).find(i),r&&($(n).parents(".form-group").addClass("has-error"),$(n).attr("title",r),$(n).tooltip());$(e).find(".form-group.has-error input[title]").first().tooltip("show")},this.fieldHasError=function(e){return $(e).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(e,t){var n=$(e).data("on-success");"function"==typeof n&&n(t.data)},this.onError=function(e,t){t.responseJSON&&t.responseJSON.fields&&"object"==typeof t.responseJSON.fields?this.markFieldErrors(e,t.responseJSON.fields):console.log("Unknown error - please try again later.");var n=$(e).data("on-error");"function"==typeof n&&n(t)},this.clearErrors=function(e){var t=this;$(e).find(t.managedElements).each((function(){t.clearFieldError(this)}))},this.onRequestComplete=function(e,t){},this},effects:function(){this.errorShake=function(e){t=t||{};var t=$.extend({direction:"left",distance:8,times:3,speed:90},t);return e.each((function(){var e=$(this),n={position:e.css("position"),top:e.css("top"),bottom:e.css("bottom"),left:e.css("left"),right:e.css("right")};e.css("position","relative");var i="up"===t.direction||"down"===t.direction?"top":"left",r="up"===t.direction||"left"===t.direction?"pos":"neg",a={},o={},s={};a[i]=("pos"===r?"-=":"+=")+t.distance,o[i]=("pos"===r?"+=":"-=")+2*t.distance,s[i]=("pos"===r?"-=":"+=")+2*t.distance,e.animate(a,t.speed);for(var d=1;d${gravatar} ${username} - ${name} (${email})',insertTpl:mentionsFormat,data:e.data("tagging-url"),limit:5})},this.getEditorById=function(e){let t=this,n=jQuery("#"+e);return void 0===t.editors[e]&&(t.editors[e]=t.init(n)),t.editors[e]},this.init=function(e){let t=this,n=e.attr("id"),i=n+"-footer",r="#"+i,a='
',o=void 0===e.data("locale")?"en":e.data("locale"),s=e.data("localStorageId"),d=csrfToken,l=e.data("fetchPreviewUrl");return t.counters[n]=0,e.markdown({footer:a,autofocus:!1,savable:!1,resize:"vertical",iconlibrary:"glyph",language:o,onShow:function(e){let n="",i=!1;"undefined"!=typeof Storage&&(n=localStorage.getItem(s),i=!0,n&&void 0!==n&&e.setContent(n)),jQuery(r).html(t.parseMdeFooter(n,i,"saved"))},onChange:function(e){let i=e.getContent(),a=!1;n=e.$element.attr("id"),"undefined"!=typeof Storage&&(t.counters[n]=3,a=!0,localStorage.setItem(s,i),t.doCountdown(n)),jQuery(r).html(t.parseMdeFooter(i,a))},onPreview:function(e){let t,n=e.getContent();return jQuery.ajax({url:l,async:!1,data:{token:d,action:"parseMarkdown",content:n},dataType:"json",success:function(e){t=e},method:"POST"}),t.body?t.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(e){e.$editor.removeClass("md-fullscreen-mode")}}]}]],hiddenButtons:["cmdImage"]}),t.addEventHelpModal(e),e},this.parseMdeFooter=function(e,t,n){void 0===n&&(n="autosaving");let i=/[^\s]+/g,r=[],a=0,o=0;if(e&&(r=e.match(i),o=e.split(/\\r\\n|\\r|\\n/).length),r)for(let e=0;e=19968?a+=r[e].length:a+=1;return'
lines: '+o+"   words: "+a+(t?'   '+n+"":"")+"
"},this.doCountdown=function(e){let t=this;t.counters[e]>=0&&(0===t.counters[e]&&jQuery("span.markdown-save").html("saved"),t.counters[e]--,setTimeout((function(e){t.doCountdown(e)}),1e3,e))},this.addEventHelpModal=function(e){return e.parent().find('button[data-handler="bootstrap-markdown-cmdHelp"]').attr("data-modal-title","Markdown Guide").attr("data-modal-size","modal-lg").attr("href",e.data("fetchHelpUrl")),this}}}),WHMCS.hasModule("form")||WHMCS.loadModule("form",(function(){return this.checkAllBound=!1,this.register=function(){this.checkAllBound||(this.bindCheckAll(),this.checkAllBound=!0)},this.bindCheckAll=function(){var e=".btn-check-all";jQuery("body").on("click",e,(function(e){var t=jQuery(e.target),n=jQuery("#"+t.data("checkbox-container")+' input[type="checkbox"]');if(t.data("btn-check-toggle")){var i="Deselect All",r="Select All";t.data("label-text-deselect")&&(i=t.data("label-text-deselect")),t.data("label-text-select")&&(r=t.data("label-text-select")),t.hasClass("toggle-active")?(n.prop("checked",!1),t.text(r),t.removeClass("toggle-active")):(n.prop("checked",!0),t.text(i),t.addClass("toggle-active"))}else t.data("btn-toggle-on")?n.prop("checked",!0):n.prop("checked",!1)}))},this.reloadCaptcha=e=>{if("undefined"!=typeof grecaptcha)return recaptchaValidationComplete=!1,grecaptcha.reset(),void WHMCS.recaptcha.restoreDefaultCallback();e||(e=jQuery("#inputCaptchaImage"));const t=jQuery("#inputCaptcha");e.length&&(e.attr("src",whmcsBaseUrl+"/includes/verifyimage.php?nocache="+(new Date).getTime()),t.val(""))},this})); /** * reCaptcha module - used for captcha apis compatible with the google recaptcha api * * @copyright Copyright (c) WHMCS Limited 2005-2020 * @license http://www.whmcs.com/license/ WHMCS Eula */ var currentcheckcontent,lastcheckcontent,lastTicketMsg,recaptchaLoadComplete=!1,recaptchaCount=0,recaptchaType="recaptcha",recaptchaValidationComplete=!1,PASSWORD_RESET_BUTTON_ID="resetPasswordButton";function disableFields(e,t){"."!==e[0]&&(e="."+e);var n=jQuery(e);n.prop("disabled",t),t?n.addClass("disabled"):n.removeClass("disabled")}function checkAll(e,t){"."!==e[0]&&(e="."+e),jQuery(e).removeAttr("checked"),jQuery(t).is(":checked")&&jQuery(e).click()}function clickableSafeRedirect(e,t,n){var i=e.target.tagName.toLowerCase(),r=e.target.parentNode.tagName.toLowerCase(),a=e.target.parentNode.parentNode.parentNode;return!jQuery(a).hasClass("collapsed")&&(("i"!==i||!jQuery(e.target).hasClass("ssl-required"))&&void("button"!==i&&"a"!==i&&"button"!==r&&"a"!==r&&(n?window.open(t):window.location.href=t)))}function popupWindow(e,t,n,i,r){var a=(screen.width-n)/2,o=(screen.height-i)/2;a<0&&(a=0),o<0&&(o=0);var s="height="+i+",";s+="width="+n+",",s+="top="+o+",",s+="left="+a+",",s+=r,window.open(e,t,s).window.focus()}function selectChangeNavigate(e){const t=$(e).val();"object"==typeof WHMCS.client.tokenProcessor&&WHMCS.client.tokenProcessor.isUrlEligibleForToken(t)?WHMCS.client.tokenProcessor.submitUrlViaPost(t):window.location.href=t}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,t){WHMCS.http.jqClient.post("serverstatus.php","ping=1&num="+e+"&port="+t,(function(n){jQuery("#port"+t+"_"+e).html(n)}))}function getticketsuggestions(){(currentcheckcontent=jQuery("#message").val())!==lastcheckcontent&&""!==currentcheckcontent&&(WHMCS.http.jqClient.post("submitticket.php",{action:"getkbarticles",text:currentcheckcontent},(function(e){e&&jQuery("#searchresults").html(e).slideDown()})),lastcheckcontent=currentcheckcontent),setTimeout("getticketsuggestions();",3e3)}function refreshCustomFields(e){jQuery("#customFieldsContainer").load("submitticket.php",{action:"getcustomfields",deptid:$(e).val()}).promise().done((function(){setTimeout((function(){$("#customFieldsContainer").find("input.icheck-control:not(.icheck-input):not(.switch__checkbox), .addon-selector").iCheck({checkboxClass:"checkbox-styled",radioClass:"radio-styled",increaseArea:"40%"})}),2e3)}))}function autoSubmitFormByContainer(e){"undefined"!=typeof noAutoSubmit&&!1!==noAutoSubmit||jQuery("#"+e).find("form:first").submit()}function useDefaultWhois(e){jQuery("."+e.substr(0,e.length-1)+"customwhois").attr("disabled",!0),jQuery("."+e.substr(0,e.length-1)+"defaultwhois").attr("disabled",!1),jQuery("#"+e.substr(0,e.length-1)+"1").attr("checked","checked")}function useCustomWhois(e){jQuery("."+e.substr(0,e.length-1)+"customwhois").attr("disabled",!1),jQuery("."+e.substr(0,e.length-1)+"defaultwhois").attr("disabled",!0),jQuery("#"+e.substr(0,e.length-1)+"2").attr("checked","checked")}function showNewBillingAddressFields(){jQuery("#newBillingAddress").parent("div").slideDown()}function hideNewBillingAddressFields(){jQuery("#newBillingAddress").parent("div").slideUp()}function showNewCardInputFields(){var e,t=jQuery(".cc-details"),n=jQuery("#inputCardNumber"),i=jQuery("#billingAddressChoice");(e=t.parent("div")).not(":visible")&&e.show(),jQuery(".cc-details").slideDown(),n.focus(),(e=i.parent("div")).not(":visible")&&e.show(),i.slideDown().find('input[name="billingcontact"]').first().iCheck("check")}function showNewAccountInputFields(){var e=jQuery(".bank-details").parent("div");e.not(":visible")&&e.slideDown(),jQuery("#billingAddressChoice").parent("div").slideDown().find('input[name="billingcontact"]').first().iCheck("check")}function hideNewCardInputFields(){hideNewBillingAddressFields(),jQuery(".cc-details").slideUp(),jQuery("#billingAddressChoice").slideUp();var e=jQuery('input[name="ccinfo"]:checked').data("billing-contact-id");null!=e&&jQuery("#billingAddressChoice label.billing-contact-"+e).iCheck("check"),jQuery("#inputCardCvv").focus()}function hideNewAccountInputFields(){hideNewBillingAddressFields(),jQuery(".bank-details").parent("div").slideUp(),jQuery("#billingAddressChoice").parent("div").slideUp();var e=jQuery('input[name="paymethod"]:checked'),t=jQuery(e).data("billing-contact-id"),n=jQuery('.billing-contact-info[data-billing-contact-id="'+t+'"]');n.length&&(jQuery(".billing-contact-info").hide(),jQuery(n).show())}function getTicketSuggestions(){var e=jQuery("#inputMessage").val();e!==lastTicketMsg&&""!==e&&(WHMCS.http.jqClient.post("submitticket.php",{action:"getkbarticles",text:e},(function(e){var t=jQuery("#autoAnswerSuggestions");e&&(t.html(e),t.not(":visible")&&t.slideDown())})),lastTicketMsg=e),setTimeout("getTicketSuggestions()",3e3)}function smoothScroll(e){$("html").addClass("scroll-smooth-block"),$("html, body").animate({scrollTop:$(e).offset().top},500),setTimeout((function(){$("html").removeClass("scroll-smooth-block")}),1e3)}WHMCS.hasModule("recaptcha")||WHMCS.loadModule("recaptcha",(function(){return this.register=function(){if(recaptchaLoadComplete)return;var e=[],t=jQuery(".btn-recaptcha").parents("form"),n=!1;t.each((function(t,i){if(void 0!==recaptcha.siteKey)if(void 0!==recaptcha.libUrl)if(void 0!==recaptcha.apiObject){var r=jQuery(i),a=r.find(".btn-recaptcha");if(a.attr("id")!==PASSWORD_RESET_BUTTON_ID||a.data("captcha-required")){var o=void 0!==recaptcha.requiredText?recaptcha.requiredText:"Required",s="divDynamicRecaptcha"+recaptchaCount;n=a.hasClass("btn-recaptcha-invisible");var d=r.find("#"+s+" .g-recaptcha"),l=r.find(".recaptcha-container"),u=r;l.length&&(l.attr("id",l.attr("id")+recaptchaCount),u=l),d.length||(u.append('
'),d=u.find("#"+s)),n||d.data("toggle","tooltip").data("placement","bottom").data("trigger","manual").attr("title",o).hide(),window[s+"Callback"]=function(){n&&r.submit()},n?(recaptchaType="invisible",r.on("submit.recaptcha",(function(e){var t=r.find(".g-recaptcha").data("recaptcha-id");window[recaptcha.apiObject].getResponse(t).trim()?recaptchaValidationComplete=!0:(e.preventDefault(),window[recaptcha.apiObject].execute(t),recaptchaValidationComplete=!1)}))):(e.push((function(){d.slideDown("fast",(function(){d.find(":first").addClass("center-block")}))})),e.push((function(){d.find(":first").addClass("center-block")})))}}else console.error("Recaptcha client js api object name not defined");else console.error("Recaptcha client js url not defined");else console.error("Recaptcha site key not defined")})),window.recaptchaLoadCallback=function(){jQuery(".g-recaptcha").each((function(e,t){var n=jQuery(t),i=n.closest("form").find(".btn-recaptcha"),r=n.attr("id").substring(1),a=grecaptcha.render(t,{sitekey:recaptcha.siteKey,size:i.hasClass("btn-recaptcha-invisible")?"invisible":"normal",callback:r+"Callback"});n.data("recaptcha-id",a)}))},t.length&&jQuery.getScript(recaptcha.libUrl,(function(){for(var t=e.length-1;t>=0;t--)e[t]()}));let i=jQuery(".captcha-overlay-badge"),r=jQuery(".captcha-overlay-popup");if(t.length&&i.length&&(i.show(),r.length)){let s;function a(){r.hide()}function o(e,t){return function(){const n=this,i=arguments;clearTimeout(s),s=setTimeout((function(){e.apply(n,i)}),t)}}const d=o(a,3e3);i.bind("mouseenter",(function(){r.show(),clearTimeout(s)})),i.bind("mouseleave",d),i.bind("touchstart",(function(){r.show(),clearTimeout(s),s=setTimeout(a,3e3)}))}recaptchaLoadComplete=!0},this.setupCallback=e=>{"function"==typeof e&&jQuery(".g-recaptcha").each((function(t,n){const i=jQuery(n).attr("id").substring(1)+"Callback",r=i+"Original";void 0===window[r]&&(window[r]=window[i]),window[i]=e}))},this.restoreDefaultCallback=()=>{jQuery(".g-recaptcha").each((function(e,t){const n=jQuery(t).attr("id").substring(1)+"Callback",i=n+"Original";void 0!==window[i]&&(window[n]=window[i],delete window[i])}))},this})), /** * WHMCS client area checkout and invoice payment UX module integration interface. * Stability: alpha - no guarantees are made against the stability of this interface. * @copyright Copyright (c) WHMCS Limited 2005-2023 * @license http://www.whmcs.com/license/ WHMCS Eula */ function(e){WHMCS.hasModule("payment")||WHMCS.loadModule("payment",e)}({internal:function(){this.isRenderSource=function(e){return["checkout","invoice-pay","admin-payment-method-add","admin-payment-method-edit","payment-method-add","payment-method-edit"].includes(e)},this.reportUnknownSource=function(e){return!WHMCS.payment.internal.isRenderSource(e)&&(WHMCS.payment.internal.logError("unknown source: "+e),!0)},this.logError=function(e){console.error("[WHMCS.payment] "+e)}},handler:function(){this.make=function(e){return new function(e){this.module=e,this.onGatewayInit=function(e,t={}){var n={...WHMCS.payment.register.defaultEventOpts(),...t};return WHMCS.payment.register.onGatewayInit(this.module,e,n),this},this.onGatewayOptionInit=function(e,t={}){var n={...WHMCS.payment.register.defaultEventOpts(),...t};return WHMCS.payment.register.onGatewayOptionInit(this.module,e,n),this},this.onGatewaySelected=function(e,t={}){var n={...WHMCS.payment.register.defaultEventOpts(),...t};return WHMCS.payment.register.onGatewaySelected(this.module,e,n),this},this.onGatewayUnselected=function(e,t={}){var n={...WHMCS.payment.register.defaultEventOpts(),...t};return WHMCS.payment.register.onGatewayUnselected(this.module,e,n),this},this.onCheckoutFormSubmit=function(e,t={}){var n={...WHMCS.payment.register.defaultEventOpts(),...t};return WHMCS.payment.register.onCheckoutFormSubmit(this.module,e,n),this},this.onAddPayMethodFormSubmit=function(e,t={}){var n={...WHMCS.payment.register.defaultEventOpts(),...t};return WHMCS.payment.register.onAddPayMethodFormSubmit(this.module,e,n),this},this.manageInputsContainer=function(e,t={}){var n={...WHMCS.payment.register.defaultEventOpts(),priority:1,...t};return this.onGatewayInit((function(t,n){"invoice-pay"==t._source&&(WHMCS.payment.display.reset(),WHMCS.payment.display.show(jQuery(e)))}),n),this.onGatewaySelected((function(t,n){"payment-method-add"==t._source&&(WHMCS.payment.display.reset(),jQuery("div.fieldgroup-creditcard,div.fieldgroup-bankaccount,div.fieldgroup-auxfields").hide()),WHMCS.payment.display.show(jQuery(e))}),n),this.onGatewayUnselected((function(t,n){WHMCS.payment.display.hide(jQuery(e))}),n),this}}(e)}},register:function(){this.onGatewayInit=function(e,t,n){return this.isFunction("register.gatewayInit",t)?(this.registerForEvent(WHMCS.payment.event.observersGatewayInit,e,t,n),this):this},this.onGatewayOptionInit=function(e,t,n){return this.isFunction("register.gatewayOptionInit",t)?(this.registerForEvent(WHMCS.payment.event.observersGatewayOptionInit,e,t,n),this):this},this.onGatewaySelected=function(e,t,n){return this.isFunction("register.onGatewaySelected",t)?(this.registerForEvent(WHMCS.payment.event.observersGatewaySelected,e,t,n),this):this},this.onGatewayUnselected=function(e,t,n){return this.isFunction("register.onGatewayUnselected",t)?(this.registerForEvent(WHMCS.payment.event.observersGatewayUnselected,e,t,n),this):this},this.onCheckoutFormSubmit=function(e,t,n){return this.isFunction("register.onCheckoutFormSubmit",t)?(this.registerForEvent(WHMCS.payment.event.observersCheckoutFormSubmit,e,t,n),this):this},this.onAddPayMethodFormSubmit=function(e,t,n){return this.isFunction("register.onAddPayMethodFormSubmit",t)?(this.registerForEvent(WHMCS.payment.event.observersAddPayMethodFormSubmit,e,t,n),this):this},this.defaultEventOpts=function(){return{priority:100,once:!1}},this.registerForEvent=function(e,t,n,i){return e.has(t)||e.set(t,new Map),e.get(t).set(i.priority,{_fn:n,...i}),this},this.isFunction=function(e,t){return"function"==typeof t||(console.error("[register."+e+"] Expecting a function, got "+t),!1)}},event:function(){this.observersGatewayInit=new Map,this.observersGatewayOptionInit=new Map,this.observersGatewaySelected=new Map,this.observersGatewayUnselected=new Map,this.observersCheckoutFormSubmit=new Map,this.observersAddPayMethodFormSubmit=new Map,this.previouslySelected=null,this.gatewayInit=function(e,t){this.notifyEvent("gatewayInit",this.observersGatewayInit,t,e)},this.gatewayOptionInit=function(e,t,n){this.notifyEvent("gatewayOptionInit",this.observersGatewayOptionInit,t,e,n)},this.gatewaySelected=function(e,t,n){this.previouslySelected={formElement:n,module:t},this.notifyEvent("gatewaySelected",this.observersGatewaySelected,t,e,n)},this.gatewayUnselected=function(e){null!=this.previouslySelected&&this.notifyEvent("gatewayUnselected",this.observersGatewayUnselected,this.previouslySelected.module,e,this.previouslySelected.formElement)},this.checkoutFormSubmit=function(e,t,n){this.notifyEvent("checkoutFormSubmit",this.observersCheckoutFormSubmit,t,e,n)},this.addPayMethodFormSubmit=function(e,t,n){this.notifyEvent("addPayMethodFormSubmit",this.observersAddPayMethodFormSubmit,t,e,n)},this.notifyEvent=function(e,t,n,i,r){if(t.has(n)){var a=t.get(n),o=[];this.notifyOrdered(a,(function(e,t){e._fn(i,r),e.once&&o.push(t)})),o.forEach((function(e){a.delete(e)}))}},this.notifyOrdered=function(e,t){new Map([...e.entries()].sort()).forEach(t)}},query:function(){this.isGatewaySelected=function(e){return null!=WHMCS.payment.event.previouslySelected&&WHMCS.payment.event.previouslySelected.module==e}},behavior:function(){this.disableDefaultCardValidation=function(e){"invoice-pay"==e?"function"==typeof validateCreditCardInput&&jQuery("#frmPayment").off("submit",validateCreditCardInput):"checkout"==e?"function"==typeof validateCheckoutCreditCardInput&&jQuery("#frmCheckout").off("submit",validateCheckoutCreditCardInput):WHMCS.payment.internal.reportUnknownSource(e)},this.enableDefaultCardValidation=function(e){"invoice-pay"==e?"function"==typeof validateCreditCardInput&&jQuery("#frmPayment").on("submit",validateCreditCardInput):"checkout"==e?"function"==typeof validateCheckoutCreditCardInput&&jQuery("#frmCheckout").on("submit",validateCheckoutCreditCardInput):WHMCS.payment.internal.reportUnknownSource(e)}},display:function(){this.reset=function(){var e=jQuery("#paymentGatewayInput");if(0!=e.length){var t=e.children();return t.hide(),jQuery("body").append(t),this}},this.show=function(e){var t=jQuery("#paymentGatewayInput");if(0!=t.length)return t.append(e),e.slideDown(),this},this.hide=function(e){return e.slideUp({complete:function(){jQuery("body").append(e)}}),this},this.error=function(e){return jQuery(".gateway-errors").html(e),this},this.errorClear=function(){let e=jQuery(".gateway-errors");if(0!=e.length)return this.error(""),e.slideUp(),this},this.errorShow=(e,t="invoice-pay")=>{let n=jQuery(".gateway-errors");if("checkout"===t&&"function"==typeof showCheckoutError&&showCheckoutError(e,n),"invoice-pay"===t){if(0===n.length)return this;this.error(e),n.slideDown()}return this},this.submitReset=function(e){"invoice-pay"==e?this.invoiceSubmitReset():"checkout"==e?this.checkoutSubmitReset():WHMCS.payment.internal.reportUnknownSource(e)},this.invoiceSubmitReset=function(){let e=jQuery("#btnSubmit").prop("disabled",!1).removeClass("disabled");e.find(".click-text").hide(),e.find(".pay-text").show()},this.checkoutSubmitReset=function(){jQuery("#btnCompleteOrder").removeClass("disabled").removeClass("disable-on-click").removeClass("spinner-on-click").addClass("disable-on-click spinner-on-click").prop("disabled",!1).find("i.fas").removeAttr("class").addClass("fas fa-arrow-circle-right")},this.submitDisable=function(e){"invoice-pay"==e?this.invoiceSubmitDisable():"checkout"==e?this.checkoutSubmitDisable():WHMCS.payment.internal.reportUnknownSource(e)},this.invoiceSubmitDisable=function(){jQuery("#btnSubmit").addClass("disabled").prop("disabled",!0)},this.checkoutSubmitDisable=function(){jQuery("#btnCompleteOrder").addClass("disabled").prop("disabled",!0)}}}),function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.MicroPlugin=t()}(this,(function(){var e={mixin:function(e){e.plugins={},e.prototype.initializePlugins=function(e){var n,i,r,a=this,o=[];if(a.plugins={names:[],settings:{},requested:{},loaded:{}},t.isArray(e))for(n=0,i=e.length;n0)&&i.items.push({score:n,id:r})})):o.iterator(o.items,(function(e,t){i.items.push({score:1,id:t})})),(r=o.getSortFunction(i,t))&&i.items.sort(r),i.total=i.items.length,"number"==typeof t.limit&&(i.items=i.items.slice(0,t.limit)),i};var t=function(e,t){return"number"==typeof e&&"number"==typeof t?e>t?1:e(t=d(String(t||"")))?1:t>e?-1:0},n=function(e,t){var n,i,r,a;for(n=1,i=arguments.length;n.5?i+=btoa(v).substr(0,4):i+=v,Math.random()>.5&&(i+=e.substr(Math.floor(13*Math.random()),1));return i},this.getRouteUrl=function(e){return whmcsBaseUrl+"/index.php?rp="+e},this.validateBaseUrl=function(){void 0===window.whmcsBaseUrl?(console.log("Warning: The WHMCS Base URL definition is missing from your active template. Please refer to https://go.whmcs.com/1961/base-url for more information and details of how to resolve this warning."),window.whmcsBaseUrl=this.autoDetermineBaseUrl(),window.whmcsBaseUrlAutoSet=!0):""===window.whmcsBaseUrl&&void 0!==window.whmcsBaseUrlAutoSet&&!0===window.whmcsBaseUrlAutoSet&&(window.whmcsBaseUrl=this.autoDetermineBaseUrl())},this.autoDetermineBaseUrl=function(){var e=window.location.href,t=-1;if(void 0!==e&&(t=e.indexOf(".php")),-1===t&&void 0!==(e=jQuery("#Primary_Navbar-Home a").attr("href"))&&(t=e.indexOf(".php")),-1!==t){var n=(e=e.substring(0,t)).lastIndexOf("/");if(!1!==n)return e.substring(0,n)}return""},this.normaliseStringValue=function(e){return e?e.toLowerCase().replace(/\s/g,"-"):""},this.generatePassword=function(e,t){for(var n=this.getPasswordCharacterSet(t),i="",r=0;e>r;r++)i+=n[this.randomInt(n.length)];return i},this.getPasswordCharacterSet=function(e){for(var t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"+(!1!==e?e:"!#$%()*+,-.:;=@_|{ldelim}{rdelim}~"),n=[],i=0;t.length>i;i++){var r=t.charCodeAt(i);if(!(55296>r||r>=57344)){if(56320>r&&t.length>i+1){var a=t.charCodeAt(i+1);if(a>=56320&&57344>a){o=t.substring(i,i+2),i++,-1==n.indexOf(o)&&n.push(o);continue}}throw"Invalid UTF-16"}var o=t.charAt(i);-1==n.indexOf(o)&&n.push(o)}return n},this.randomInt=function(e){var t=this.randomIntMathRandom(e);return t=(t+this.randomIntBrowserCrypto(e))%e},this.randomIntMathRandom=function(e){var t=Math.floor(Math.random()*e);if(0>t||t>=e)throw"Arithmetic exception";return t},this.randomIntBrowserCrypto=function(e){var t=null;if("crypto"in window)t=crypto;else{if(!("msCrypto"in window))return 0;t=msCrypto}if("getRandomValues"in t&&"Uint32Array"in window&&"function"==typeof Uint32Array||(t=null),null==t)return 0;var n=new Uint32Array(1);do{t.getRandomValues(n)}while(n[0]-n[0]%e>4294967296-e);return n[0]%e},this})),WHMCS.utils.validateBaseUrl(), /*! * WHMCS Twenty-One Theme * Global Javascript * Copyright (c) 2020 WHMCS Limited * https://www.whmcs.com/license/ */ jQuery(document).ready((function(){autoCollapse("#nav",30),jQuery(window).on("resize",(function(){jQuery('button[data-target="#mainNavbar"], button[data-toggle="collapse"]').is(":visible")||autoCollapse("#nav",30)})),jQuery(".item-selector .item").click((function(e){e.preventDefault(),jQuery(this).closest(".item-selector").find(".item").removeClass("active").end().find("input").val(jQuery(this).data("value")),jQuery(this).addClass("active")})),jQuery(document).on("click",".btn-reveal-pw",(function(e){$targetField=jQuery(this).closest(".input-group").find(".pw-input"),"password"==$targetField.attr("type")?$targetField.attr("type","text"):$targetField.attr("type","password")})),jQuery("#accountNotifications").popover({container:"body",placement:"bottom",template:'',html:!0,content:function(){return jQuery("#accountNotificationsContent").html()}}),jQuery(".card-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(e){e("body").tooltip({selector:'[data-toggle="tooltip"]'})})),jQuery("body").on("click",(function(e){jQuery('[data-toggle="popover"]').each((function(){jQuery(this).is(e.target)||0!==jQuery(this).has(e.target).length||0!==jQuery(".popover").has(e.target).length||jQuery(this).popover("hide")}))})),jQuery(".list-group-tab-nav a").click((function(){if(jQuery(this).hasClass("disabled"))return!1;var e=this.href.split("#")[1];e&&(window.location.hash="#"+e)})),jQuery(".card-minimise").click((function(e){e.preventDefault();var t=jQuery(this).closest(".card").find(".collapsable-card-body");jQuery(this).hasClass("minimised")?(t.slideDown(),jQuery(this).removeClass("minimised")):(t.slideUp(),jQuery(this).addClass("minimised"))})),jQuery(".container").width()<=720&&jQuery(".card-sidebar").find(".collapsable-card-body").hide().end().find(".card-minimise").addClass("minimised");var e=!1;if("undefined"!=typeof disableInternalTabSelection&&disableInternalTabSelection&&(e=!0),!e&&""!==jQuery(location).attr("hash").substr(1)){var t=jQuery(location).attr("hash");jQuery(".primary-content > .tab-content > .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 .card-header").click((function(e){var t=jQuery(this);t.closest(".card").hasClass("panel-collapsed")?(t.closest(".card").removeClass("panel-collapsed").find(".card-body").slideDown(),t.find(".collapse-icon i").removeClass("fa-plus").addClass("fa-minus")):(t.closest(".card").addClass("panel-collapsed").find(".card-body").slideUp(),t.find(".collapse-icon i").removeClass("fa-minus").addClass("fa-plus"))})),jQuery("#frmLogin input:text:visible:first").focus(),jQuery("#twofaactivation input:text:visible:first,#twofaactivation input:password:visible:first").focus(),jQuery("#inputSubaccountActivate").click((function(){null!=jQuery("#inputSubaccountActivate:checked").val()?jQuery("#subacct-container").show():jQuery("#subacct-container").hide()})),jQuery(".setBulkAction").click((function(e){e.preventDefault();var t=jQuery(this).attr("id").replace("Link",""),n=jQuery("#domainForm");if("renewDomains"===t)n.attr("action",WHMCS.utils.getRouteUrl("/cart/domain/renew"));else{if(0!==jQuery("#"+t).length){var i=n.attr("action");n.attr("action",i+"#"+t)}jQuery("#bulkaction").val(t)}n.submit()})),jQuery(".stopEventBubble").click((function(e){e.stopPropagation()})),jQuery(".tabControlLink").on("click",(function(e){e.preventDefault();var t=jQuery(this).attr("href");jQuery("a[href='/"+t+"']").click()})),jQuery(document).on("click",".delete-cc-email",(function(){var e=jQuery(this),t=e.attr("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(i){i.success&&(e.closest(".ticket-cc-email").parent("div").slideUp("fast").remove(),document.querySelector(`[data-recipient-email="${t}"]`)&&(document.querySelector(`[data-recipient-email="${t}"]`).remove(),0==document.querySelectorAll("[data-recipient-email]").length&&(document.querySelector("#recipients .tab-no-data").classList.remove("hidden"),document.querySelector("#recipients .tab-details").classList.add("hidden")),$('a[href="#recipients"] .badge').text($("[data-recipient-email]").length),$('a[href="#recipients"] .badge').hasClass("badge-primary-faded")&&0==$("[data-recipient-email]").length&&($('a[href="#recipients"] .badge').removeClass("badge-primary-faded"),$('a[href="#recipients"] .badge').addClass("badge-default"))),n.removeClass("alert-danger").addClass("alert-success").html(i.message).slideDown("fast"))},error:function(e){e&&n.removeClass("alert-success").addClass("alert-danger").html(e).slideDown("fast")}})})).on("submit","#frmAddCcEmail",(function(e){e.preventDefault();var t=jQuery(this),n=jQuery("#ccCloneRow").clone().removeAttr("id"),i=jQuery("#inputAddCcEmail"),r=jQuery("#divCcEmailFeedback"),a=$(".tab-details").attr("data-lang-remove");$newElement=$(`\n
\n
\n
\n \n
\n
${i.val()}
\n
\n \n
\n
\n
\n `),r.is(":visible")&&r.slideUp("fast"),WHMCS.http.jqClient.jsonPost({url:t.attr("action"),data:t.serialize(),success:function(e){e.success&&(n.find("span.email").html(i.val()).find("button").data("email",i.val()).end(),n.show().appendTo(jQuery("#sidebarTicketCc").find(".list-group")),$("#recipients .tab-details")&&($("#recipients .tab-details").append($newElement),$("#recipients .tab-details").hasClass("hidden")&&$("#recipients .tab-details").removeClass("hidden"),$("#recipients .tab-no-data").hasClass("hidden")||$("#recipients .tab-no-data").addClass("hidden"),$('a[href="#recipients"] .badge').text($("[data-recipient-email]").length),$('a[href="#recipients"] .badge').hasClass("badge-default")&&($('a[href="#recipients"] .badge').removeClass("badge-default"),$('a[href="#recipients"] .badge').addClass("badge-primary-faded"))),i.val(""),r.slideUp("fast").removeClass("alert-danger hidden").addClass("alert-success").html(''+e.message).slideDown("fast"))},error:function(e){e&&r.slideUp("fast").removeClass("alert-success hidden").addClass("alert-danger").html(''+e).slideDown("fast")}})})),jQuery(".ticket-reply .rating span.star").click((function(e){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(e){if(e.preventDefault(),jQuery(this).hasClass("disabled"))return!1;var t=window.open();t.opener=null,t.location=e.target.href})),jQuery("#inputAllowSso").on("switchChange.bootstrapSwitch",(function(e,t){t?(jQuery("#ssoStatusTextEnabled").show(),jQuery("#ssoStatusTextDisabled").hide()):(jQuery("#ssoStatusTextDisabled").show(),jQuery("#ssoStatusTextEnabled").hide()),WHMCS.http.jqClient.post("clientarea.php",jQuery("#frmSingleSignOn").serialize())})),jQuery(".btn-service-sso").on("click",(function(e){e.preventDefault();var t=jQuery(this),n=t.closest("form");if(0===n.length&&(n=t.find("form")),!n.hasClass("disabled")&&!t.hasClass("disabled")){var i=n.data("href");i||(i=window.location.href),t.attr("disabled","disabled").addClass("disabled"),jQuery(".loading",t).show().end(),jQuery(".login-feedback",n).slideUp(),WHMCS.http.jqClient.post(i,n.serialize()+"&token="+csrfToken,(function(e){jQuery(".loading",t).hide().end().removeAttr("disabled"),jQuery(".login-feedback",n).html(""),e.error&&jQuery(".login-feedback",n).hide().html(e.error).slideDown(),void 0!==e.redirect&&"window|"===e.redirect.substr(0,7)&&window.open(e.redirect.substr(7),"_blank")}),"json").always((function(){t.removeAttr("disabled").removeClass("disabled"),t.find(".loading").hide().end()}))}})),jQuery(".btn-sidebar-form-submit").on("click",(function(e){e.preventDefault(),jQuery(this).find(".loading").show().end().attr("disabled","disabled");var t=jQuery(this).closest("form");0===t.length&&(t=jQuery(this).find("form")),0!==t.length&&!1===t.hasClass("disabled")?t.submit():jQuery(this).find(".loading").hide().end().removeAttr("disabled")})),jQuery(".back-to-top").click((function(e){e.preventDefault(),jQuery("body,html").animate({scrollTop:0},500)})),jQuery(".choose-language").click((function(e){e.preventDefault()})),jQuery(".copy-to-clipboard").click(WHMCS.ui.clipboard.copy),jQuery("#modalChooseLanguage button[type=submit]").click((function(e){e.preventDefault();var t=jQuery(this).closest("form");window.location.replace(t.attr("action")+"language="+t.find("input").val())})),jQuery(".generate-password").click((function(e){jQuery("#frmGeneratePassword").submit(),jQuery("#modalGeneratePassword").data("targetfields",jQuery(this).data("targetfields")).modal("show")})),jQuery("#frmGeneratePassword").submit((function(e){e.preventDefault();var t=parseInt(jQuery("#inputGeneratePasswordLength").val(),10),n=!1;jQuery("#frmGeneratePassword [data-custom-special-chars]").length>0&&void 0===(n=jQuery("#frmGeneratePassword [data-custom-special-chars]").data("custom-special-chars"))&&(n=""),t<8||t>64?jQuery("#generatePwLengthError").show():jQuery("#inputGeneratePasswordOutput").val(WHMCS.utils.generatePassword(t,n))})),jQuery("#btnGeneratePasswordInsert").click(WHMCS.ui.clipboard.copy).click((function(e){jQuery(this).closest(".modal").modal("hide");var t=jQuery(this).closest(".modal").data("targetfields"),n=jQuery("#inputGeneratePasswordOutput");t=t.split(",");for(var i=0;i
',autofocus:!1,savable:!1,resize:"vertical",iconlibrary:"fa-5",language:locale,onShow:function(e){var n="",i=!1;"undefined"!=typeof Storage&&(i=!0,(n=localStorage.getItem(t))&&void 0!==n&&e.setContent(n)),jQuery("#"+r).html(a(n,i,saved))},onChange:function(e){var n=e.getContent(),s=!1;"undefined"!=typeof Storage&&(i=3,s=!0,localStorage.setItem(t,n),o()),jQuery("#"+r).html(a(n,s))},onPreview:function(e){var t,n=e.getContent();return jQuery.ajax({url:WHMCS.utils.getRouteUrl("/clientarea/message/preview"),async:!1,data:{token:csrfToken,content:n},dataType:"json",success:function(e){t=e}}),t.body?t.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","fa-5":"fas fa-question-circle"},callback:function(e){e.$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(t)}})}));var r=jQuery(".btn-resend-verify-email");function a(e,t,n){n=n||saving;var i=[],r=0,a=0;if(e&&(i=e.match(/[^\s]+/g),a=e.split(/\\r\\n|\\r|\\n/).length),i)for(var o=0;o=19968?r+=i[o].length:r+=1;return'
lines: '+a+"   words: "+r+(t?'   '+n+"":"")+"
"}function o(){i>=0&&(0===i&&jQuery("span.markdown-save").html(saved),i--,setTimeout(o,1e3))}jQuery(r).click((function(){$(this).prop("disabled",!0).find(".loader").removeClass("hidden"),$(this).find("span:not(.loader)").addClass("invisible"),WHMCS.http.jqClient.post(jQuery(this).data("uri"),{token:csrfToken}).done((function(e){r.find(".loader").hide(),e.success?r.text(r.data("email-sent")):r.text(r.data("error-msg"))}))})),jQuery("#btnEmailVerificationClose").click((function(e){e.preventDefault(),WHMCS.http.jqClient.post(jQuery(this).data("uri"),{token:csrfToken}),jQuery(".verification-banner.email-verification").hide()})),jQuery("#btnUserValidationClose").click((function(e){e.preventDefault(),WHMCS.http.jqClient.post(jQuery(this).data("uri"),{token:csrfToken}),jQuery(".verification-banner.user-validation").hide()}));var s=jQuery("input[name=2fasetup]").parent("form");s.submit((function(e){e.preventDefault(),openModal(s.attr("action"),s.serialize(),"Loading...")})),$.fn.setInputError=function(e){return this.closest(".form-group").addClass("has-error").find(".field-error-msg").text(e),this},jQuery.fn.showInputError=function(){return this.closest(".form-group").addClass("has-error").find(".field-error-msg").show(),this},jQuery("#frmPayment").on("submit",(function(){var e=jQuery("#btnSubmit");e.find("span").toggle(),e.prop("disabled",!0).addClass("disabled")})),jQuery(".btn-resend-approver-email").click((function(){WHMCS.http.jqClient.post(jQuery(this).data("url"),{addonId:jQuery(this).data("addonid"),serviceId:jQuery(this).data("serviceid")},(function(e){!0===e.success?jQuery(".alert-table-ssl-manage").addClass("alert-success").text("Approver Email Resent").show():jQuery(".alert-table-ssl-manage").addClass("alert-danger").text("Error: "+e.message).show()}))})),jQuery(".tld-filters a").click((function(e){e.preventDefault();var t=jQuery(".tld-row.no-tlds");jQuery(this).hasClass("badge-success")?jQuery(this).removeClass("badge-success"):jQuery(this).addClass("badge-success"),t.is(":visible")&&t.hide(),jQuery(".tld-row").removeClass("filtered-row"),jQuery(".tld-filters a.badge-success").each((function(e){var t=jQuery(this).data("category");jQuery('.tld-row[data-category*="'+t+'"]').addClass("filtered-row")})),jQuery(".filtered-row:even").removeClass("highlighted"),jQuery(".filtered-row:odd").addClass("highlighted");var n=jQuery('.tld-row:not(".filtered-row")');n.fadeOut("fast"),n.promise().done((function(){0===jQuery(".filtered-row").length?t.show():jQuery(".tld-row.filtered-row").show()}))})),jQuery(".filtered-row:even").removeClass("highlighted"),jQuery(".filtered-row:odd").addClass("highlighted"),WHMCS.ui.dataTable.register(),WHMCS.ui.jsonForm.initAll(),jQuery(document).on("click","#btnTicketAttachmentsAdd",(function(){jQuery("#fileUploadsContainer").append(jQuery(".file-upload").html())})),jQuery(document).on("change",".custom-file-input",(function(){var e=jQuery(this).val().split("\\").pop();jQuery(this).siblings(".custom-file-label").text(e)})),jQuery("#frmReply").submit((function(e){jQuery("#frmReply").find('input[type="submit"]').addClass("disabled").prop("disabled",!0)})),jQuery("#frmDomainContactModification").on("submit",(function(){if(!allowSubmit){var e=!1;if(jQuery(".irtp-field").each((function(){jQuery(this).val()!==jQuery(this).data("original-value")&&(e=!0)})),e)return jQuery("#modalIRTPConfirmation").modal("show"),!1}return!0})),jQuery(".ssl-state.ssl-sync").each((function(){var e=jQuery(this),t=getSslAttribute(e,"type"),n=getSslAttribute(e,"domain");WHMCS.http.jqClient.post(WHMCS.utils.getRouteUrl("/domain/ssl-check"),{type:t,domain:n,token:csrfToken},(function(t){if(t.invalid)e.hide();else{var n="",i="";e.attr("width")&&(n=' width="'+e.attr("width")+'"'),e.data("showlabel")&&(i=" "+t.statusDisplayLabel),e.replaceWith(''+t.tooltip+'"),"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(i)}}))})),jQuery(document).on("click",".ssl-state.ssl-inactive",(function(e){e.preventDefault(),window.location.href=WHMCS.utils.getRouteUrl("/ssl-purchase")})),WHMCS.recaptcha.register();var d=jQuery("#divDynamicRecaptcha"),l=jQuery(d).length>0,u=l&&"invisible"===jQuery(d).data("size"),c=jQuery("#frmDomainHomepage");jQuery(c).find('button[data-domain-action="transfer"]').click((function(){jQuery(c).find('input[name="transfer"]').val("1")})),l&&!u&&jQuery("section#home-banner").addClass("with-recaptcha"),jQuery(".domainchecker-homepage-captcha").length&&!u&&jQuery(c).submit((function(e){jQuery(c).find('input[name="domain"]');var t=jQuery("#divDynamicRecaptcha"),n=jQuery("#g-recaptcha-response"),i=jQuery("#inputCaptcha");if(n.length&&!n.val())return t.tooltip("show"),void e.preventDefault();i.length&&!i.val()&&(i.tooltip("show"),e.preventDefault())})),$(".icheck-button").iCheck({inheritID:!0,checkboxClass:"icheckbox_square-blue",radioClass:"iradio_square-blue",increaseArea:"20%"}),jQuery("#inputNoStore").on("switchChange.bootstrapSwitch",(function(e,t){var n=jQuery("#inputDescription");t||n.prop("disabled",!0).addClass("disabled"),t&&n.removeClass("disabled").prop("disabled",!1)})),jQuery(document).on("click","#btnConfirmModalConfirmBtn",(function(){var e=jQuery(this),t=e.closest("div.modal"),n=e.data("target-url"),i=e.closest('table.dataTable[data-on-draw-rebind-confirmation-modal="true"]');WHMCS.http.jqClient.jsonPost({url:n,data:{token:csrfToken},success:function(e){"success"!==e.status&&"okay"!==e.status||i.length>0&&i.DataTable().ajax.reload()}}),t.modal("toggle")})),hideOverlay(),jQuery('input[name="approval_method"]').on("ifChecked",(function(e){var t=$("#containerApprovalMethodFile"),n=$("#containerApprovalMethodEmail"),i=$("#containerApprovalMethodDns");"file"==jQuery(this).attr("value")?(t.show(),i.hide(),n.hide()):"dns-txt-token"==jQuery(this).attr("value")?(i.show(),t.hide(),n.hide()):(t.hide(),i.hide(),n.show())})),jQuery(".div-service-status").css("width",jQuery(".div-service-status .label-placeholder").outerWidth()+5),jQuery('div[menuitemname="Active Products/Services"] .list-group-item:visible').last().css("border-bottom","1px solid #ddd"),jQuery('div[menuitemname="Active Products/Services"] .btn-view-more').on("click",(function(e){var t=jQuery('div[menuitemname="Active Products/Services"] .list-group-item:hidden');e.preventDefault(),t.slice(0,8).css("display","block"),t.length-8<=0&&jQuery(e.target).addClass("disabled").attr("aria-disabled",!0),jQuery('div[menuitemname="Active Products/Services"] .list-group-item:visible').css("border-bottom","").last().css("border-bottom","1px solid #ddd")})),jQuery('div[menuitemname="Service Details Actions"] a[data-identifier][data-serviceid][data-active="1"]').on("click",(function(e){return customActionAjaxCall(e,jQuery(e.target).closest("a"))})),jQuery(".div-service-item").on("click",(function(e){var t=jQuery(e.target);return!!t.is(".dropdown-toggle, .dropdown-menu")||(t.hasClass("btn-custom-action")?customActionAjaxCall(e,t):(window.location.href=t.closest(".div-service-item").data("href"),!1))}));try{"object"==typeof WHMCS.client.tokenProcessor&&WHMCS.client.tokenProcessor.processTokenSubmitters()}catch(e){}}));var allowSubmit=!1;function irtpSubmit(){allowSubmit=!0;var e=0,t=jQuery("#modalIrtpOptOut"),n=jQuery("#modalReason"),i=jQuery("#irtpOptOut"),r=jQuery("#irtpOptOutReason");t.is(":checked")&&(e=1),i.val(e),r.val(n.val()),jQuery("#frmDomainContactModification").submit()}function showOverlay(e){jQuery("#fullpage-overlay .msg").html(e),jQuery("#fullpage-overlay").show()}function hideOverlay(){jQuery("#fullpage-overlay").hide()}function getSslAttribute(e,t){return e.data(t)?e.data(t):e.parent("td").data(t)}function removeRetweets(){jQuery("#twitter-widget-0").contents().find(".timeline-Tweet--isRetweet").parent("li").remove()}function addTwitterWidgetObserverWhenNodeAvailable(){elementsWaitTimeout&&clearTimeout(elementsWaitTimeout);var e=document.getElementById("twitter-widget-0");if(e){var t=e.contentWindow.document.getElementsByClassName("timeline-TweetList")[0];t?(jQuery("#twitter-widget-0").contents().find("head").append(""),removeRetweets(),observerTwitterWidget.observe(t,observerConfig)):elementsWaitTimeout=window.setTimeout(addTwitterWidgetObserverWhenNodeAvailable,500)}else elementsWaitTimeout=window.setTimeout(addTwitterWidgetObserverWhenNodeAvailable,500)}function openValidationSubmitModal(e){var t=jQuery("#validationSubmitModal");t.find(".modal-body iframe").attr("src",e.dataset.url),t.modal("show")}function completeValidationComClientWorkflow(){var e=jQuery(".user-validation"),t=jQuery(".validation-status-label"),n=jQuery(".validation-submit-div"),i=!0;if($("#validationSubmitModal").modal("hide"),0!==e.length&&(e.slideUp(),i=!1),0!==t.length){var r=n.find("a").data("submitted-string");t.text(r).removeClass("label-default").addClass("label-warning"),n.hide(),i=!1}return i&&(window.location.href=WHMCS.utils.autoDetermineBaseUrl()),!1}var autoCollapse=function(e,t){var n=!0,i=jQuery(e),r=i.innerHeight();if(r>=t){for(jQuery(e+" .collapsable-dropdown").removeClass("d-none"),jQuery(".navbar-nav").removeClass("w-auto").addClass("w-100");r>t&&n;){var a=i.children(e+' li:not(:last-child):not(".no-collapse")'),o=a.length;if(o)a.data("original-classes",a.attr("class")),(d=jQuery(a[o-1])).removeClass().addClass("dropdown-item"),d.prependTo(e+" .collapsable-dropdown-menu");else n=!1;r=i.innerHeight()}jQuery(".navbar-nav").addClass("w-auto").removeClass("w-100")}else{var s=jQuery(e+" .collapsable-dropdown-menu").children(e+" li");for(0===s.length&&jQuery(e+" .collapsable-dropdown").addClass("d-none");r0&&s.length>0;){var d;s=jQuery(e+" .collapsable-dropdown-menu").children("li"),(d=jQuery(s[0])).removeClass().addClass(d.data("original-classes")),d.insertBefore(i.children(e+" li:last-child")),r=i.innerHeight()}r>t&&autoCollapse(e,t)}};function customActionAjaxCall(e,t){var n=jQuery(".loading",t);if(e.stopPropagation(),!t.data("active"))return!1;t.attr("disabled","disabled").addClass("disabled"),n.show();const i="_self"===jQuery(t).data("ca-target")||"_self"===jQuery(t).attr("target")?function(e){window.location.href=e}:window.open;return WHMCS.http.jqClient.jsonPost({url:WHMCS.utils.getRouteUrl("/clientarea/service/"+t.data("serviceid")+"/custom-action/"+t.data("identifier")),data:{token:csrfToken},success:function(e){e.success?i(e.redirectTo):i("clientarea.php?action=productdetails&id="+t.data("serviceid")+"&customaction_error=1")},fail:function(){i("clientarea.php?action=productdetails&id="+t.data("serviceid")+"&customaction_ajax_error=1")},error:function(){i("clientarea.php?action=productdetails&id="+t.data("serviceid")+"&customaction_ajax_error=1")},always:function(){n.hide(),t.removeAttr("disabled").removeClass("disabled"),t.hasClass("dropdown-item")&&t.closest(".dropdown-menu").removeClass("show")}}),!0}document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".js-service-command-form").forEach((e=>{e.addEventListener("submit",(t=>{t.preventDefault(),e.querySelectorAll(".js-field-error").forEach((e=>e.remove()));const n=new FormData(e);fetch(e.action,{method:"POST",body:n,credentials:"same-origin"}).then((e=>e.json())).then((t=>{const n=document.getElementById("js-global-command-result");n.innerHTML="",!t.success&&t.errors&&Object.entries(t.errors).forEach((([t,n])=>{const i=e.querySelector(`[name="config[${t}]"]`);if(i){const e=document.createElement("div");e.classList.add("alert","alert-danger","mt-1","js-field-error"),e.innerHTML=n.join("
"),i.closest(".form-group")?.appendChild(e)}}));const i=document.createElement("div");i.classList.add("alert","mt-2"),i.classList.add(t.success?"alert-success":"alert-danger"),i.innerText=t.message??(t.success?"Success":"Error"),n.appendChild(i),setTimeout((()=>{n.innerHTML=""}),5e3)})).catch((()=>{const e=document.getElementById("js-global-command-result");e.innerHTML='
The request failed.
',setTimeout((()=>{e.innerHTML=""}),5e3)}))}))}))})); /*! * WHMCS Ajax Driven Modal Framework * * @copyright Copyright (c) WHMCS Limited 2005-2021 * @license https://www.whmcs.com/license/ WHMCS Eula */ var ajaxModalSubmitEvents=[],ajaxModalPostSubmitEvents=[];function openModal(e,t,n,i,r,a,o,s,d,l){if(jQuery("#modalAjax .modal-title").html(n),i&&jQuery("#modalAjax").children('div[class="modal-dialog"]').addClass(i),r&&jQuery("#modalAjax").addClass(r),a?(jQuery("#modalAjax .modal-submit").show().html(a),o&&jQuery("#modalAjax .modal-submit").attr("id",o)):jQuery("#modalAjax .modal-submit").hide(),d&&jQuery("#modalAjaxClose").hide(),s&&jQuery("#modalAjax .modal-submit").removeClass("btn-primary").addClass("btn-"+s),jQuery("#modalAjax .modal-body").html(""),jQuery("#modalSkip").hide(),disableSubmit(),jQuery("#modalAjax").modal({show:!0,keyboard:!0,backdrop:!jQuery("#modalAjax").hasClass("static")||"static"}),WHMCS.http.jqClient.post(e,t,(function(e){updateAjaxModal(e)}),"json").fail((function(e){if((e.getResponseHeader("content-type")||"").includes("text/html"))return document.open(),document.write(e.responseText),void document.close();jQuery("#modalAjax .modal-body").html("An error occurred while communicating with the server. Please try again."),jQuery("#modalAjax .loader").fadeOut()})).always((function(){var e=jQuery("#modalAjax").find("form");o&&e.submit((function(e){return submitIdAjaxModalClickEvent(),!1})),l&&e.data("successDataTable",l);var t=jQuery(e).find("input:not(input[type=checkbox],input[type=radio],input[type=hidden])");t.length>0&&jQuery(t).first().focus()})),o){var u=jQuery("#"+o);u.off("click"),u.on("click",submitIdAjaxModalClickEvent)}}function submitIdAjaxModalClickEvent(){var e=!0,t=jQuery("#modalAjax .loader");if(disableSubmit(),t.show(),ajaxModalSubmitEvents.length&&jQuery.each(ajaxModalSubmitEvents,(function(t,n){var i=window[n];e&&"function"==typeof i&&(e=i())})),!e)return enableSubmit(),void t.hide();var n=jQuery("#modalAjax").find("form"),i=jQuery("#modalAjax .modal-body"),r=jQuery(i).find(".admin-modal-error");jQuery(r).slideUp();WHMCS.http.jqClient.post(n.attr("action"),n.serialize(),(function(e){n.data("successDataTable")&&(e.successDataTable=n.data("successDataTable")),ajaxModalPostSubmitEvents.length&&jQuery.each(ajaxModalPostSubmitEvents,(function(t,i){var r=window[i];"function"==typeof r&&r(e,n)})),updateAjaxModal(e)}),"json").fail((function(e){var t=e.responseJSON,n="An error occurred while communicating with the server. Please try again.";t&&t.data?(t=t.data).errorMsg?r.length>0?jQuery(r).html(t.errorMsg).slideDown():jQuery.growl.warning({title:t.errorMsgTitle,message:t.errorMsg}):t.data.body?jQuery(i).html(t.body):jQuery(i).html(n):jQuery(i).html(n),jQuery("#modalAjax .loader").fadeOut(),enableSubmit()}))}function updateAjaxModal(e){if(e.reloadPage)"string"==typeof e.reloadPage?window.location=e.reloadPage:window.location.reload();else{if(e.successDataTable&&WHMCS.ui.dataTable.getTableById(e.successDataTable,void 0).ajax.reload(),e.redirect&&(window.location=e.redirect),e.successWindow&&"function"==typeof window[e.successWindow]&&window[e.successWindow](),e.dismiss&&dialogClose(),e.successMsg&&jQuery.growl.notice({title:e.successMsgTitle,message:e.successMsg}),e.errorMsg){var t=jQuery("#modalAjax .modal-body .admin-modal-error");t.length>0&&!e.dismiss?jQuery(t).html(e.errorMsg).slideDown():jQuery.growl.warning({title:e.errorMsgTitle,message:e.errorMsg})}if(e.title&&jQuery("#modalAjax .modal-title").html(e.title),e.body?jQuery("#modalAjax .modal-body").html(e.body):e.url&&WHMCS.http.jqClient.post(e.url,"",(function(e){jQuery("#modalAjax").find(".modal-body").html(e.body)}),"json").fail((function(){jQuery("#modalAjax").find(".modal-body").html("An error occurred while communicating with the server. Please try again."),jQuery("#modalAjax").find(".loader").fadeOut()})),e.submitlabel&&(jQuery("#modalAjax .modal-submit").html(e.submitlabel).show(),e.submitId&&jQuery("#modalAjax").find(".modal-submit").attr("id",e.submitId)),e.submitId){var n=jQuery("#"+e.submitId);n.off("click"),n.on("click",submitIdAjaxModalClickEvent)}e.disableSubmit?disableSubmit():enableSubmit();var i=!0;void 0!==e.dismissLoader&&(i=e.dismissLoader),dismissLoaderAfterRender(i),e.hideSubmit&&ajaxModalHideSubmit()}}function dialogSubmit(){disableSubmit(),jQuery("#modalAjax .loader").show();var e=jQuery("#modalAjax").find("form").attr("action");WHMCS.http.jqClient.post(e,jQuery("#modalAjax").find("form").serialize(),(function(e){updateAjaxModal(e)}),"json").fail((function(){jQuery("#modalAjax .modal-body").html("An error occurred while communicating with the server. Please try again."),jQuery("#modalAjax .loader").fadeOut()}))}function dialogClose(){jQuery("#modalAjax").modal("hide")}function addAjaxModalSubmitEvents(e){e&&ajaxModalSubmitEvents.push(e)}function removeAjaxModalSubmitEvents(e){if(e){var t=ajaxModalSubmitEvents.indexOf(e);t>=0&&ajaxModalSubmitEvents.splice(t,1)}}function addAjaxModalPostSubmitEvents(e){e&&ajaxModalPostSubmitEvents.push(e)}function removeAjaxModalPostSubmitEvents(e){if(e){var t=ajaxModalPostSubmitEvents.indexOf(e);t>=0&&ajaxModalPostSubmitEvents.splice(t,1)}}function disableSubmit(){jQuery("#modalAjax .modal-submit").prop("disabled",!0).addClass("disabled")}function enableSubmit(){jQuery("#modalAjax .modal-submit").prop("disabled",!1).removeClass("disabled")}function ajaxModalHideSubmit(){jQuery("#modalAjax .modal-submit").hide()}function dismissLoaderAfterRender(e){!1===e?jQuery("#modalAjax .loader").show():jQuery("#modalAjax .loader").fadeOut()} /** * bootstrap-switch - Turn checkboxes and radio buttons into toggle switches. * * @version v4.0.0-alpha.1 * @homepage http://www.bootstrap-switch.org * @author Mattia Larentis (http://larentis.eu) * @license Apache-2.0 */jQuery(document).ready((function(){jQuery(document).on("click",".open-modal",(function(e){e.preventDefault();var t=jQuery(this).attr("href"),n=jQuery(this).data("modal-size"),i=jQuery(this).data("modal-class"),r=jQuery(this).data("modal-title"),a=jQuery(this).data("btn-submit-id"),o=jQuery(this).data("btn-submit-label"),s=jQuery(this).data("btn-submit-color"),d=jQuery(this).data("btn-close-hide"),l=jQuery(this).attr("disabled"),u=jQuery(this).data("datatable-reload-success"),c="";csrfToken&&(c={token:csrfToken}),l||openModal(t,c,r,n,i,o,a,s,d,u)})),jQuery("#modalAjax").on("hidden.bs.modal",(function(e){if(jQuery(this).hasClass("modal-feature-highlights")){var t=jQuery("#cbFeatureHighlightsDismissForVersion").is(":checked");WHMCS.http.jqClient.post("whatsnew.php",{dismiss:"1",until_next_update:t?"1":"0",token:csrfToken})}jQuery("#modalAjax").find(".modal-body").empty(),jQuery("#modalAjax").children("div.modal-dialog").removeClass("modal-lg"),jQuery("#modalAjax").removeClass().addClass("modal whmcs-modal fade"),jQuery("#modalAjax .modal-title").html("Title"),jQuery("#modalAjax .modal-submit").html("Submit").removeClass().addClass("btn btn-primary modal-submit").removeAttr("id").removeAttr("disabled"),jQuery("#modalAjax .loader").show()}))}));var _createClass=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};_classCallCheck(this,n),this.$element=e(t),this.options=e.extend({},e.fn.bootstrapSwitch.defaults,this._getElementOptions(),r),this.prevOptions={},this.$wrapper=e("
",{class:function(){var e=[];return e.push(i.options.state?"on":"off"),i.options.size&&e.push(i.options.size),i.options.disabled&&e.push("disabled"),i.options.readonly&&e.push("readonly"),i.options.indeterminate&&e.push("indeterminate"),i.options.inverse&&e.push("inverse"),i.$element.attr("id")&&e.push("id-"+i.$element.attr("id")),e.map(i._getClass.bind(i)).concat([i.options.baseClass],i._getClasses(i.options.wrapperClass)).join(" ")}}),this.$container=e("
",{class:this._getClass("container")}),this.$on=e("",{html:this.options.onText,class:this._getClass("handle-on")+" "+this._getClass(this.options.onColor)}),this.$off=e("",{html:this.options.offText,class:this._getClass("handle-off")+" "+this._getClass(this.options.offColor)}),this.$label=e("",{html:this.options.labelText,class:this._getClass("label")}),this.$element.on("init.bootstrapSwitch",this.options.onInit.bind(this,t)),this.$element.on("switchChange.bootstrapSwitch",(function(){for(var n=arguments.length,r=Array(n),a=0;a0&&void 0!==arguments[0]?arguments[0]:this.options.state;this.$container.css("margin-left",(function(){var n=[0,"-"+e._handleWidth+"px"];return e.options.indeterminate?"-"+e._handleWidth/2+"px":t?e.options.inverse?n[1]:n[0]:e.options.inverse?n[0]:n[1]}))}},{key:"_init",value:function(){var e=this,n=function(){e.setPrevOptions(),e._width(),e._containerPosition(),setTimeout((function(){if(e.options.animate)return e.$wrapper.addClass(e._getClass("animate"))}),50)};if(this.$wrapper.is(":visible"))n();else var i=t.setInterval((function(){if(e.$wrapper.is(":visible"))return n(),t.clearInterval(i)}),50)}},{key:"_elementHandlers",value:function(){var t=this;return this.$element.on({"setPreviousOptions.bootstrapSwitch":this.setPrevOptions.bind(this),"previousState.bootstrapSwitch":function(){t.options=t.prevOptions,t.options.indeterminate&&t.$wrapper.addClass(t._getClass("indeterminate")),t.$element.prop("checked",t.options.state).trigger("change.bootstrapSwitch",!0)},"change.bootstrapSwitch":function(n,i){n.preventDefault(),n.stopImmediatePropagation();var r=t.$element.is(":checked");t._containerPosition(r),r!==t.options.state&&(t.options.state=r,t.$wrapper.toggleClass(t._getClass("off")).toggleClass(t._getClass("on")),i||(t.$element.is(":radio")&&e('[name="'+t.$element.attr("name")+'"]').not(t.$element).prop("checked",!1).trigger("change.bootstrapSwitch",!0),t.$element.trigger("switchChange.bootstrapSwitch",[r])))},"focus.bootstrapSwitch":function(e){e.preventDefault(),t.$wrapper.addClass(t._getClass("focused"))},"blur.bootstrapSwitch":function(e){e.preventDefault(),t.$wrapper.removeClass(t._getClass("focused"))},"keydown.bootstrapSwitch":function(e){!e.which||t.options.disabled||t.options.readonly||37!==e.which&&39!==e.which||(e.preventDefault(),e.stopImmediatePropagation(),t.state(39===e.which))}})}},{key:"_handleHandlers",value:function(){var e=this;return this.$on.on("click.bootstrapSwitch",(function(t){return t.preventDefault(),t.stopPropagation(),e.state(!1),e.$element.trigger("focus.bootstrapSwitch")})),this.$off.on("click.bootstrapSwitch",(function(t){return t.preventDefault(),t.stopPropagation(),e.state(!0),e.$element.trigger("focus.bootstrapSwitch")}))}},{key:"_labelHandlers",value:function(){var e=this,t={click:function(e){e.stopPropagation()},"mousedown.bootstrapSwitch touchstart.bootstrapSwitch":function(t){e._dragStart||e.options.disabled||e.options.readonly||(t.preventDefault(),t.stopPropagation(),e._dragStart=(t.pageX||t.originalEvent.touches[0].pageX)-parseInt(e.$container.css("margin-left"),10),e.options.animate&&e.$wrapper.removeClass(e._getClass("animate")),e.$element.trigger("focus.bootstrapSwitch"))},"mousemove.bootstrapSwitch touchmove.bootstrapSwitch":function(t){if(null!=e._dragStart){var n=(t.pageX||t.originalEvent.touches[0].pageX)-e._dragStart;t.preventDefault(),n<-e._handleWidth||n>0||(e._dragEnd=n,e.$container.css("margin-left",e._dragEnd+"px"))}},"mouseup.bootstrapSwitch touchend.bootstrapSwitch":function(t){if(e._dragStart){if(t.preventDefault(),e.options.animate&&e.$wrapper.addClass(e._getClass("animate")),e._dragEnd){var n=e._dragEnd>-e._handleWidth/2;e._dragEnd=!1,e.state(e.options.inverse?!n:n)}else e.state(!e.options.state);e._dragStart=!1}},"mouseleave.bootstrapSwitch":function(){e.$label.trigger("mouseup.bootstrapSwitch")}};this.$label.on(t)}},{key:"_externalLabelHandler",value:function(){var e=this,t=this.$element.closest("label");t.on("click",(function(n){n.preventDefault(),n.stopImmediatePropagation(),n.target===t[0]&&e.toggleState()}))}},{key:"_formHandler",value:function(){var n=this.$element.closest("form");n.data("bootstrap-switch")||n.on("reset.bootstrapSwitch",(function(){t.setTimeout((function(){n.find("input").filter((function(){return e(this).data("bootstrap-switch")})).each((function(){return e(this).bootstrapSwitch("state",this.checked)}))}),1)})).data("bootstrap-switch",!0)}},{key:"_getClass",value:function(e){return this.options.baseClass+"-"+e}},{key:"_getClasses",value:function(t){return e.isArray(t)?t.map(this._getClass.bind(this)):[this._getClass(t)]}}]),n}();e.fn.bootstrapSwitch=function(t){for(var i=arguments.length,r=Array(i>1?i-1:0),a=1;a",{class:"btn-group"});for(l=0;l")).text(" "+this.__localize(v)).addClass("btn-default btn-xs").addClass(y),y.match(/btn\-(primary|success|info|warning|danger|link)/)&&h.removeClass("btn-default"),h.attr({type:"button",title:this.__localize(p.title)+C,tabindex:b,"data-provider":r,"data-handler":g,"data-hotkey":$}),!0===p.toggle&&h.attr("data-toggle","button"),(f=e("")).addClass(m),f.prependTo(h),c.append(h),a.push(g),o.push(p.callback)}n.append(c)}}return n},__setListener:function(){var e=void 0!==this.$textarea.attr("rows"),t=this.$textarea.val().split("\n").length>5?this.$textarea.val().split("\n").length:"5",n=e?this.$textarea.attr("rows"):t;this.$textarea.attr("rows",n),this.$options.resize&&this.$textarea.css("resize",this.$options.resize),this.$textarea.data("markdown",this)},__setEventListeners:function(){this.$textarea.on({focus:e.proxy(this.focus,this),keyup:e.proxy(this.keyup,this),change:e.proxy(this.change,this),select:e.proxy(this.select,this)}),this.eventSupported("keydown")&&this.$textarea.on("keydown",e.proxy(this.keydown,this)),this.eventSupported("keypress")&&this.$textarea.on("keypress",e.proxy(this.keypress,this))},__handle:function(t){var n=e(t.currentTarget),i=this.$handler,r=this.$callback,a=n.attr("data-handler"),o=r[i.indexOf(a)];e(t.currentTarget).focus(),o(this),this.change(this),a.indexOf("cmdSave")<0&&this.$textarea.focus(),t.preventDefault()},__localize:function(t){var n=e.fn.markdown.messages,i=this.$options.language;return void 0!==n&&void 0!==n[i]&&void 0!==n[i][t]?n[i][t]:t},__getIcon:function(e){if("object"==typeof e){var t=this.$options.customIcons[e.name];return void 0===t?e.icon[this.$options.iconlibrary]:t}return e},setFullscreen:function(t){var n=this.$editor,i=this.$textarea;!0===t?(n.addClass("md-fullscreen-mode"),e("body").addClass("md-nooverflow"),this.$options.onFullscreen(this)):(n.removeClass("md-fullscreen-mode"),e("body").removeClass("md-nooverflow"),this.$options.onFullscreenExit(this),!0===this.$isPreview&&this.hidePreview().showPreview()),this.$isFullscreen=t,i.focus()},showEditor:function(){var t,n=this,i=this.$ns,r=this.$element,a=(r.css("height"),r.css("width"),this.$editable),o=this.$handler,s=this.$callback,d=this.$options,l=e("
",{class:"md-editor",click:function(){n.focus()}});if(null===this.$editor){var u=e("
",{class:"md-header btn-toolbar"}),c=[];if(d.buttons.length>0&&(c=c.concat(d.buttons[0])),d.additionalButtons.length>0&&e.each(d.additionalButtons[0],(function(t,n){var i=e.grep(c,(function(e,t){return e.name===n.name}));i.length>0?i[0].data=i[0].data.concat(n.data):c.push(d.additionalButtons[0][t])})),d.reorderButtonGroups.length>0&&(c=c.filter((function(e){return d.reorderButtonGroups.indexOf(e.name)>-1})).sort((function(e,t){return d.reorderButtonGroups.indexOf(e.name)d.reorderButtonGroups.indexOf(t.name)?1:0}))),c.length>0&&(u=this.__buildButtons([c],u)),d.fullscreen.enable&&u.append('
').on("click",".md-control-fullscreen",(function(e){e.preventDefault(),n.setFullscreen(!0)})),l.append(u),r.is("textarea"))r.before(l),(t=r).addClass("md-input"),l.append(t);else{var h="function"==typeof toMarkdown?toMarkdown(r.html()):r.html(),f=e.trim(h);t=e("