text: function authorize(e,t,n){set("authorize",'{"Username": "'+e+'", "Password":"'+t+'","UserProfile":'+n+"}")}function getUser(){return get("authorize")}function deleteUser(){remove("authorize")}function set(e,t){isIE()?setCookie(e,t,365):window.localStorage.setItem(e,t)}function get(e){return isIE()?getCookie(e):window.localStorage.getItem(e)}function remove(e){isIE()?setCookie(e,"",-365):window.localStorage.removeItem(e)}function setCookie(e,t,n){var o=new Date;o.setTime(o.getTime()+24*n*60*60*1e3);var r="expires="+o.toUTCString();document.cookie=e+"="+t+";"+r+";path=/"}function getCookie(e){for(var t=e+"=",n=document.cookie.split(";"),o=0;o<n.length;o++){for(var r=n[o];" "===r.charAt(0);)r=r.substring(1);if(0===r.indexOf(t))return r.substring(t.length,r.length)}return""}function isIE(){return ua=navigator.userAgent,-1<ua.indexOf("MSIE ")||-1<ua.indexOf("Trident/")}function WexflowApproval(){"use strict";var c=Common.trimEnd(Settings.Uri,"/"),n=document.getElementById("lnk-manager"),o=document.getElementById("lnk-designer"),r=document.getElementById("lnk-approval"),i=document.getElementById("lnk-workiom"),s=document.getElementById("lnk-users"),a=document.getElementById("lnk-profiles"),f=-1,d={},p=null,e="",t="",h="";document.getElementById("wf-approval").innerHTML="<div id='wf-container'><div id='wf-cmd'><button id='wf-start' type='button' class='btn btn-primary btn-xs'>Start</button><button id='wf-pause' type='button' class='btn btn-secondary btn-xs'>Suspend</button><button id='wf-resume' type='button' class='btn btn-secondary btn-xs'>Resume</button><button id='wf-stop' type='button' class='btn btn-danger btn-xs'>Stop</button><button id='wf-approve' type='button' class='btn btn-primary btn-xs'>Approve</button><button id='wf-disapprove' type='button' class='btn btn-danger btn-xs'>Disapprove</button></div><div id='wf-notifier'><input id='wf-notifier-text' type='text' name='fname' readonly></div><div id='wf-search'><div id='wf-search-text-container'><input id='wf-search-text' type='text' name='fname'></div><button id='wf-search-action' type='button' class='btn btn-primary btn-xs'>Search</button></div><div id='wf-workflows'></div></div>";var g=document.getElementById("wf-start"),m=document.getElementById("wf-pause"),v=document.getElementById("wf-resume"),y=document.getElementById("wf-stop"),b=document.getElementById("wf-approve"),x=document.getElementById("wf-disapprove"),u=document.getElementById("wf-search-action"),l=document.getElementById("wf-search-text"),w=getUser();if(null===w||""===w)Common.redirectToLoginPage();else{var C=JSON.parse(w);e=C.Username,t=C.Password,h="Basic "+btoa(e+":"+t),Common.get(c+"/user?username="+encodeURIComponent(C.Username),function(e){if(C.Password!==e.Password)Common.redirectToLoginPage();else if(0===e.UserProfile||1===e.UserProfile){n.style.display="inline",o.style.display="inline",r.style.display="inline",i.style.display="inline",s.style.display="inline",0===e.UserProfile&&(a.style.display="inline");var t=document.getElementById("btn-logout");document.getElementById("wf-approval").style.display="block",t.onclick=function(){deleteUser(),Common.redirectToLoginPage()},t.innerHTML="Logout ("+e.Username+")",Common.disableButton(g,!0),Common.disableButton(m,!0),Common.disableButton(v,!0),Common.disableButton(y,!0),Common.disableButton(b,!0),Common.disableButton(x,!0),u.onclick=function(){k(),S(""),Common.disableButton(g,!0),Common.disableButton(m,!0),Common.disableButton(v,!0),Common.disableButton(y,!0),Common.disableButton(b,!0),Common.disableButton(x,!0)},l.onkeyup=function(e){e.preventDefault(),13===e.keyCode&&(k(),S(""),Common.disableButton(g,!0),Common.disableButton(m,!0),Common.disableButton(v,!0),Common.disableButton(y,!0),Common.disableButton(b,!0),Common.disableButton(x,!0))},k()}else Common.redirectToLoginPage()},function(){},h)}function T(e,t){return e.Id<t.Id?-1:e.Id>t.Id?1:0}function E(e){switch(e){case 0:return"Startup";case 1:return"Trigger";case 2:return"Periodic";case 3:return"Cron";default:return""}}function k(){Common.get(c+"/searchApprovalWorkflows?s="+encodeURIComponent(l.value),function(e){e.sort(T);var t,n=[];for(t=0;t<e.length;t++){var o=e[t],r=E((d[o.Id]=o).LaunchType);n.push("<tr><td class='wf-id' title='"+o.Id+"'>"+o.Id+"</td><td class='wf-n' title='"+o.Name+"'>"+o.Name+"</td><td class='wf-lt'>"+r+"</td><td class='wf-e'><input type='checkbox' readonly disabled "+(o.IsEnabled?"checked":"")+"></input></td><td class='wf-d' title='"+o.Description+"'>"+o.Description+"</td></tr>")}var i="<table id='wf-workflows-table' class='table'><thead class='thead-dark'><tr><th class='wf-id'>Id</th><th class='wf-n'>Name</th><th class='wf-lt'>LaunchType</th><th class='wf-e'>Enabled</th><th class='wf-d'>Description</th></tr></thead><tbody>"+n.join("")+"</tbody></table>";document.getElementById("wf-workflows").innerHTML=i;var s=document.getElementById("wf-workflows-table"),a=document.getElementsByClassName("wf-d");for(t=0;t<a.length;t++)a[t].style.width=s.offsetWidth-517+"px";function u(e,o){var t,n;t=e,n=function(e){if(!1===e.IsEnabled)S("This workflow is disabled."),Common.disableButton(g,!0),Common.disableButton(m,!0),Common.disableButton(v,!0),Common.disableButton(y,!0),Common.disableButton(b,!0),Common.disableButton(x,!0);else{if(!1===o&&!1===(n=d[(t=e).Id].IsRunning!==t.IsRunning||d[t.Id].IsPaused!==t.IsPaused||d[t.Id].IsWaitingForApproval!==t.IsWaitingForApproval,d[t.Id].IsRunning=t.IsRunning,d[t.Id].IsPaused=t.IsPaused,d[t.Id].IsWaitingForApproval=t.IsWaitingForApproval,n))return;Common.disableButton(g,e.IsRunning),Common.disableButton(y,!(e.IsRunning&&!e.IsPaused)),Common.disableButton(m,!(e.IsRunning&&!e.IsPaused)),Common.disableButton(v,!e.IsPaused),Common.disableButton(b,!(e.IsWaitingForApproval&&e.IsApproval)),Common.disableButton(x,!(e.IsWaitingForApproval&&e.IsApproval)),!0===e.IsApproval&&!0===e.IsWaitingForApproval&&!1===e.IsPaused?S("This workflow is waiting for approval..."):!0===e.IsRunning&&!1===e.IsPaused?S("This workflow is running..."):!0===e.IsPaused?S("This workflow is suspended."):S("")}var t,n},Common.get(c+"/workflow?w="+t,function(e){n(e)},function(){},h)}var l=s.getElementsByTagName("tbody")[0].getElementsByTagName("tr");for(t=0;t<l.length;t++)l[t].onclick=function(){f=parseInt(this.getElementsByClassName("wf-id")[0].innerHTML);var e=document.getElementsByClassName("selected");0<e.length&&(e[0].className=e[0].className.replace("selected","")),this.className+="selected",clearInterval(p),!0===d[f].IsEnabled&&(p=setInterval(function(){u(f,!1)},1e3)),u(f,!0)};g.onclick=function(){var e=c+"/start?w="+f;Common.post(e,function(){},function(){},"",h)},m.onclick=function(){var e=c+"/suspend?w="+f;Common.post(e,function(e){!0===e?u(f,!0):Common.toastInfo("This operation is not supported.")},function(){},"",h)},v.onclick=function(){var e=c+"/resume?w="+f;Common.post(e,function(){},function(){},"",h)},y.onclick=function(){var e=c+"/stop?w="+f;Common.post(e,function(e){!0===e?u(f,!0):Common.toastInfo("This operation is not supported.")},function(){},"",h)},b.onclick=function(){Common.disableButton(b,!0),Common.disableButton(y,!0);var e=c+"/approve?w="+f;Common.post(e,function(e){!0===e?(u(f,!0),Common.toastSuccess("The workflow "+f+" was approved.")):(Common.disableButton(b,!1),Common.disableButton(y,!1),Common.toastError("An error occured while approving the workflow "+f+"."))},function(){},"",h)},x.onclick=function(){Common.disableButton(x,!0),Common.disableButton(b,!0),Common.disableButton(y,!0);var e=c+"/disapprove?w="+f;Common.post(e,function(e){!0===e?(u(f,!0),Common.toastSuccess("The workflow "+f+" was disapproved.")):(Common.disableButton(x,!0),Common.disableButton(b,!1),Common.disableButton(y,!1),Common.toastError("An error occured while disapproving the workflow "+f+"."))},function(){},"",h)}},function(){Common.toastError("An error occured while retrieving workflows. Check that Wexflow server is running correctly.")},h)}function S(e){document.getElementById("wf-notifier-text").value=e}}!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(T,e){"use strict";var t=[],E=T.document,o=Object.getPrototypeOf,a=t.slice,g=t.concat,u=t.push,r=t.indexOf,n={},i=n.toString,m=n.hasOwnProperty,s=m.toString,l=s.call(Object),v={},y=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},b=function(e){return null!=e&&e===e.window},c={type:!0,src:!0,noModule:!0};function x(e,t,n){var o,r=(t=t||E).createElement("script");if(r.text=e,n)for(o in c)n[o]&&(r[o]=n[o]);t.head.appendChild(r).parentNode.removeChild(r)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[i.call(e)]||"object":typeof e}var k=function(e,t){return new k.fn.init(e,t)},f=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function d(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!y(e)&&!b(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}k.fn=k.prototype={jquery:"3.3.1",constructor:k,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=k.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return k.each(this,e)},map:function(n){return this.pushStack(k.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:t.sort,splice:t.splice},k.extend=k.fn.extend=function(){var e,t,n,o,r,i,s=arguments[0]||{},a=1,u=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[a]||{},a++),"object"==typeof s||y(s)||(s={}),a===u&&(s=this,a--);a<u;a++)if(null!=(e=arguments[a]))for(t in e)n=s[t],s!==(o=e[t])&&(l&&o&&(k.isPlainObject(o)||(r=Array.isArray(o)))?(i=r?(r=!1,n&&Array.isArray(n)?n:[]):n&&k.isPlainObject(n)?n:{},s[t]=k.extend(l,i,o)):void 0!==o&&(s[t]=o));return s},k.extend({expando:"jQuery"+("3.3.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==i.call(e)||(t=o(e))&&("function"!=typeof(n=m.call(t,"constructor")&&t.constructor)||s.call(n)!==l))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e){x(e)},each:function(e,t){var n,o=0;if(d(e))for(n=e.length;o<n&&!1!==t.call(e[o],o,e[o]);o++);else for(o in e)if(!1===t.call(e[o],o,e[o]))break;return e},trim:function(e){return null==e?"":(e+"").replace(f,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(d(Object(e))?k.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:r.call(t,e,n)},merge:function(e,t){for(var n=+t.length,o=0,r=e.length;o<n;o++)e[r++]=t[o];return e.length=r,e},grep:function(e,t,n){for(var o=[],r=0,i=e.length,s=!n;r<i;r++)!t(e[r],r)!==s&&o.push(e[r]);return o},map:function(e,t,n){var o,r,i=0,s=[];if(d(e))for(o=e.length;i<o;i++)null!=(r=t(e[i],i,n))&&s.push(r);else for(i in e)null!=(r=t(e[i],i,n))&&s.push(r);return g.apply([],s)},guid:1,support:v}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=t[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var p=function(n){var e,p,x,i,r,h,f,g,w,u,l,C,T,s,E,m,a,c,v,k="sizzle"+1*new Date,y=n.document,S=0,o=0,d=se(),b=se(),A=se(),N=function(e,t){return e===t&&(l=!0),0},j={}.hasOwnProperty,t=[],D=t.pop,I=t.push,q=t.push,H=t.slice,L=function(e,t){for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1},B="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",O="[\\x20\\t\\r\\n\\f]",P="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",_="\\["+O+"*("+P+")(?:"+O+"*([*^$|!~]?=)"+O+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+P+"))|)"+O+"*\\]",W=":("+P+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+_+")*)|.*)\\)|)",R=new RegExp(O+"+","g"),M=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g"),F=new RegExp("^"+O+"*,"+O+"*"),$=new RegExp("^"+O+"*([>+~]|"+O+")"+O+"*"),U=new RegExp("="+O+"*([^\\]'\"]*?)"+O+"*\\]","g"),z=new RegExp(W),X=new RegExp("^"+P+"$"),V={ID:new RegExp("^#("+P+")"),CLASS:new RegExp("^\\.("+P+")"),TAG:new RegExp("^("+P+"|[*])"),ATTR:new RegExp("^"+_),PSEUDO:new RegExp("^"+W),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("^(?:"+B+")$","i"),needsContext:new RegExp("^"+O+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,K=/[+~]/,Z=new RegExp("\\\\([\\da-f]{1,6}"+O+"?|("+O+")|.)","ig"),ee=function(e,t,n){var o="0x"+t-65536;return o!=o||n?t:o<0?String.fromCharCode(o+65536):String.fromCharCode(o>>10|55296,1023&o|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ne=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){C()},re=ye(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{q.apply(t=H.call(y.childNodes),y.childNodes),t[y.childNodes.length].nodeType}catch(n){q={apply:t.length?function(e,t){I.apply(e,H.call(t))}:function(e,t){for(var n=e.length,o=0;e[n++]=t[o++];);e.length=n-1}}}function ie(e,t,n,o){var r,i,s,a,u,l,c,f=t&&t.ownerDocument,d=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==d&&9!==d&&11!==d)return n;if(!o&&((t?t.ownerDocument||t:y)!==T&&C(t),t=t||T,E)){if(11!==d&&(u=Q.exec(e)))if(r=u[1]){if(9===d){if(!(s=t.getElementById(r)))return n;if(s.id===r)return n.push(s),n}else if(f&&(s=f.getElementById(r))&&v(t,s)&&s.id===r)return n.push(s),n}else{if(u[2])return q.apply(n,t.getElementsByTagName(e)),n;if((r=u[3])&&p.getElementsByClassName&&t.getElementsByClassName)return q.apply(n,t.getElementsByClassName(r)),n}if(p.qsa&&!A[e+" "]&&(!m||!m.test(e))){if(1!==d)f=t,c=e;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(te,ne):t.setAttribute("id",a=k),i=(l=h(e)).length;i--;)l[i]="#"+a+" "+ve(l[i]);c=l.join(","),f=K.test(e)&&ge(t.parentNode)||t}if(c)try{return q.apply(n,f.querySelectorAll(c)),n}catch(e){}finally{a===k&&t.removeAttribute("id")}}}return g(e.replace(M,"$1"),t,n,o)}function se(){var o=[];return function e(t,n){return o.push(t+" ")>x.cacheLength&&delete e[o.shift()],e[t+" "]=n}}function ae(e){return e[k]=!0,e}function ue(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function le(e,t){for(var n=e.split("|"),o=n.length;o--;)x.attrHandle[n[o]]=t}function ce(e,t){var n=t&&e,o=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(o)return o;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function fe(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function de(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function pe(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&re(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function he(s){return ae(function(i){return i=+i,ae(function(e,t){for(var n,o=s([],e.length,i),r=o.length;r--;)e[n=o[r]]&&(e[n]=!(t[n]=e[n]))})})}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in p=ie.support={},r=ie.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},C=ie.setDocument=function(e){var t,n,o=e?e.ownerDocument||e:y;return o!==T&&9===o.nodeType&&o.documentElement&&(s=(T=o).documentElement,E=!r(T),y!==T&&(n=T.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),p.attributes=ue(function(e){return e.className="i",!e.getAttribute("className")}),p.getElementsByTagName=ue(function(e){return e.appendChild(T.createComment("")),!e.getElementsByTagName("*").length}),p.getElementsByClassName=J.test(T.getElementsByClassName),p.getById=ue(function(e){return s.appendChild(e).id=k,!T.getElementsByName||!T.getElementsByName(k).length}),p.getById?(x.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){return e.getAttribute("id")===t}},x.find.ID=function(e,t){if(void 0!==t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(x.filter.ID=function(e){var n=e.replace(Z,ee);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},x.find.ID=function(e,t){if(void 0!==t.getElementById&&E){var n,o,r,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(r=t.getElementsByName(e),o=0;i=r[o++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),x.find.TAG=p.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):p.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,o=[],r=0,i=t.getElementsByTagName(e);if("*"!==e)return i;for(;n=i[r++];)1===n.nodeType&&o.push(n);return o},x.find.CLASS=p.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&E)return t.getElementsByClassName(e)},a=[],m=[],(p.qsa=J.test(T.querySelectorAll))&&(ue(function(e){s.appendChild(e).innerHTML="<a id='"+k+"'></a><select id='"+k+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+O+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+O+"*(?:value|"+B+")"),e.querySelectorAll("[id~="+k+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+k+"+*").length||m.push(".#.+[+~]")}),ue(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=T.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+O+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),s.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(p.matchesSelector=J.test(c=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&ue(function(e){p.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),a.push("!=",W)}),m=m.length&&new RegExp(m.join("|")),a=a.length&&new RegExp(a.join("|")),t=J.test(s.compareDocumentPosition),v=t||J.test(s.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,o=t&&t.parentNode;return e===o||!(!o||1!==o.nodeType||!(n.contains?n.contains(o):e.compareDocumentPosition&&16&e.compareDocumentPosition(o)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},N=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!p.sortDetached&&t.compareDocumentPosition(e)===n?e===T||e.ownerDocument===y&&v(y,e)?-1:t===T||t.ownerDocument===y&&v(y,t)?1:u?L(u,e)-L(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,o=0,r=e.parentNode,i=t.parentNode,s=[e],a=[t];if(!r||!i)return e===T?-1:t===T?1:r?-1:i?1:u?L(u,e)-L(u,t):0;if(r===i)return ce(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;s[o]===a[o];)o++;return o?ce(s[o],a[o]):s[o]===y?-1:a[o]===y?1:0}),T},ie.matches=function(e,t){return ie(e,null,null,t)},ie.matchesSelector=function(e,t){if((e.ownerDocument||e)!==T&&C(e),t=t.replace(U,"='$1']"),p.matchesSelector&&E&&!A[t+" "]&&(!a||!a.test(t))&&(!m||!m.test(t)))try{var n=c.call(e,t);if(n||p.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return 0<ie(t,T,null,[e]).length},ie.contains=function(e,t){return(e.ownerDocument||e)!==T&&C(e),v(e,t)},ie.attr=function(e,t){(e.ownerDocument||e)!==T&&C(e);var n=x.attrHandle[t.toLowerCase()],o=n&&j.call(x.attrHandle,t.toLowerCase())?n(e,t,!E):void 0;return void 0!==o?o:p.attributes||!E?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},ie.escape=function(e){return(e+"").replace(te,ne)},ie.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ie.uniqueSort=function(e){var t,n=[],o=0,r=0;if(l=!p.detectDuplicates,u=!p.sortStable&&e.slice(0),e.sort(N),l){for(;t=e[r++];)t===e[r]&&(o=n.push(r));for(;o--;)e.splice(n[o],1)}return u=null,e},i=ie.getText=function(e){var t,n="",o=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[o++];)n+=i(t);return n},(x=ie.selectors={cacheLength:50,createPseudo:ae,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(Z,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(Z,ee),"~="===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]||ie.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]&&ie.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=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Z,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=d[e+" "];return t||(t=new RegExp("(^|"+O+")"+e+"("+O+"|$)"))&&d(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,o,r){return function(e){var t=ie.attr(e,n);return null==t?"!="===o:!o||(t+="","="===o?t===r:"!="===o?t!==r:"^="===o?r&&0===t.indexOf(r):"*="===o?r&&-1<t.indexOf(r):"$="===o?r&&t.slice(-r.length)===r:"~="===o?-1<(" "+t.replace(R," ")+" ").indexOf(r):"|="===o&&(t===r||t.slice(0,r.length+1)===r+"-"))}},CHILD:function(h,e,t,g,m){var v="nth"!==h.slice(0,3),y="last"!==h.slice(-4),b="of-type"===e;return 1===g&&0===m?function(e){return!!e.parentNode}:function(e,t,n){var o,r,i,s,a,u,l=v!==y?"nextSibling":"previousSibling",c=e.parentNode,f=b&&e.nodeName.toLowerCase(),d=!n&&!b,p=!1;if(c){if(v){for(;l;){for(s=e;s=s[l];)if(b?s.nodeName.toLowerCase()===f:1===s.nodeType)return!1;u=l="only"===h&&!u&&"nextSibling"}return!0}if(u=[y?c.firstChild:c.lastChild],y&&d){for(p=(a=(o=(r=(i=(s=c)[k]||(s[k]={}))[s.uniqueID]||(i[s.uniqueID]={}))[h]||[])[0]===S&&o[1])&&o[2],s=a&&c.childNodes[a];s=++a&&s&&s[l]||(p=a=0)||u.pop();)if(1===s.nodeType&&++p&&s===e){r[h]=[S,a,p];break}}else if(d&&(p=a=(o=(r=(i=(s=e)[k]||(s[k]={}))[s.uniqueID]||(i[s.uniqueID]={}))[h]||[])[0]===S&&o[1]),!1===p)for(;(s=++a&&s&&s[l]||(p=a=0)||u.pop())&&((b?s.nodeName.toLowerCase()!==f:1!==s.nodeType)||!++p||(d&&((r=(i=s[k]||(s[k]={}))[s.uniqueID]||(i[s.uniqueID]={}))[h]=[S,p]),s!==e)););return(p-=m)===g||p%g==0&&0<=p/g}}},PSEUDO:function(e,i){var t,s=x.pseudos[e]||x.setFilters[e.toLowerCase()]||ie.error("unsupported pseudo: "+e);return s[k]?s(i):1<s.length?(t=[e,e,"",i],x.setFilters.hasOwnProperty(e.toLowerCase())?ae(function(e,t){for(var n,o=s(e,i),r=o.length;r--;)e[n=L(e,o[r])]=!(t[n]=o[r])}):function(e){return s(e,0,t)}):s}},pseudos:{not:ae(function(e){var o=[],r=[],a=f(e.replace(M,"$1"));return a[k]?ae(function(e,t,n,o){for(var r,i=a(e,null,o,[]),s=e.length;s--;)(r=i[s])&&(e[s]=!(t[s]=r))}):function(e,t,n){return o[0]=e,a(o,null,n,r),o[0]=null,!r.pop()}}),has:ae(function(t){return function(e){return 0<ie(t,e).length}}),contains:ae(function(t){return t=t.replace(Z,ee),function(e){return-1<(e.textContent||e.innerText||i(e)).indexOf(t)}}),lang:ae(function(n){return X.test(n||"")||ie.error("unsupported lang: "+n),n=n.replace(Z,ee).toLowerCase(),function(e){var t;do{if(t=E?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===s},focus:function(e){return e===T.activeElement&&(!T.hasFocus||T.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:pe(!1),disabled:pe(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!x.pseudos.empty(e)},header:function(e){return Y.test(e.nodeName)},input:function(e){return G.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<t;n+=2)e.push(n);return e}),odd:he(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:he(function(e,t,n){for(var o=n<0?n+t:n;0<=--o;)e.push(o);return e}),gt:he(function(e,t,n){for(var o=n<0?n+t:n;++o<t;)e.push(o);return e})}}).pseudos.nth=x.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[e]=fe(e);for(e in{submit:!0,reset:!0})x.pseudos[e]=de(e);function me(){}function ve(e){for(var t=0,n=e.length,o="";t<n;t++)o+=e[t].value;return o}function ye(a,e,t){var u=e.dir,l=e.next,c=l||u,f=t&&"parentNode"===c,d=o++;return e.first?function(e,t,n){for(;e=e[u];)if(1===e.nodeType||f)return a(e,t,n);return!1}:function(e,t,n){var o,r,i,s=[S,d];if(n){for(;e=e[u];)if((1===e.nodeType||f)&&a(e,t,n))return!0}else for(;e=e[u];)if(1===e.nodeType||f)if(r=(i=e[k]||(e[k]={}))[e.uniqueID]||(i[e.uniqueID]={}),l&&l===e.nodeName.toLowerCase())e=e[u]||e;else{if((o=r[c])&&o[0]===S&&o[1]===d)return s[2]=o[2];if((r[c]=s)[2]=a(e,t,n))return!0}return!1}}function be(r){return 1<r.length?function(e,t,n){for(var o=r.length;o--;)if(!r[o](e,t,n))return!1;return!0}:r[0]}function xe(e,t,n,o,r){for(var i,s=[],a=0,u=e.length,l=null!=t;a<u;a++)(i=e[a])&&(n&&!n(i,o,r)||(s.push(i),l&&t.push(a)));return s}function we(p,h,g,m,v,e){return m&&!m[k]&&(m=we(m)),v&&!v[k]&&(v=we(v,e)),ae(function(e,t,n,o){var r,i,s,a=[],u=[],l=t.length,c=e||function(e,t,n){for(var o=0,r=t.length;o<r;o++)ie(e,t[o],n);return n}(h||"*",n.nodeType?[n]:n,[]),f=!p||!e&&h?c:xe(c,a,p,n,o),d=g?v||(e?p:l||m)?[]:t:f;if(g&&g(f,d,n,o),m)for(r=xe(d,u),m(r,[],n,o),i=r.length;i--;)(s=r[i])&&(d[u[i]]=!(f[u[i]]=s));if(e){if(v||p){if(v){for(r=[],i=d.length;i--;)(s=d[i])&&r.push(f[i]=s);v(null,d=[],r,o)}for(i=d.length;i--;)(s=d[i])&&-1<(r=v?L(e,s):a[i])&&(e[r]=!(t[r]=s))}}else d=xe(d===t?d.splice(l,d.length):d),v?v(null,t,d,o):q.apply(t,d)})}function Ce(e){for(var r,t,n,o=e.length,i=x.relative[e[0].type],s=i||x.relative[" "],a=i?1:0,u=ye(function(e){return e===r},s,!0),l=ye(function(e){return-1<L(r,e)},s,!0),c=[function(e,t,n){var o=!i&&(n||t!==w)||((r=t).nodeType?u(e,t,n):l(e,t,n));return r=null,o}];a<o;a++)if(t=x.relative[e[a].type])c=[ye(be(c),t)];else{if((t=x.filter[e[a].type].apply(null,e[a].matches))[k]){for(n=++a;n<o&&!x.relative[e[n].type];n++);return we(1<a&&be(c),1<a&&ve(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(M,"$1"),t,a<n&&Ce(e.slice(a,n)),n<o&&Ce(e=e.slice(n)),n<o&&ve(e))}c.push(t)}return be(c)}return me.prototype=x.filters=x.pseudos,x.setFilters=new me,h=ie.tokenize=function(e,t){var n,o,r,i,s,a,u,l=b[e+" "];if(l)return t?0:l.slice(0);for(s=e,a=[],u=x.preFilter;s;){for(i in n&&!(o=F.exec(s))||(o&&(s=s.slice(o[0].length)||s),a.push(r=[])),n=!1,(o=$.exec(s))&&(n=o.shift(),r.push({value:n,type:o[0].replace(M," ")}),s=s.slice(n.length)),x.filter)!(o=V[i].exec(s))||u[i]&&!(o=u[i](o))||(n=o.shift(),r.push({value:n,type:i,matches:o}),s=s.slice(n.length));if(!n)break}return t?s.length:s?ie.error(e):b(e,a).slice(0)},f=ie.compile=function(e,t){var n,m,v,y,b,o,r=[],i=[],s=A[e+" "];if(!s){for(t||(t=h(e)),n=t.length;n--;)(s=Ce(t[n]))[k]?r.push(s):i.push(s);(s=A(e,(m=i,v=r,y=0<v.length,b=0<m.length,o=function(e,t,n,o,r){var i,s,a,u=0,l="0",c=e&&[],f=[],d=w,p=e||b&&x.find.TAG("*",r),h=S+=null==d?1:Math.random()||.1,g=p.length;for(r&&(w=t===T||t||r);l!==g&&null!=(i=p[l]);l++){if(b&&i){for(s=0,t||i.ownerDocument===T||(C(i),n=!E);a=m[s++];)if(a(i,t||T,n)){o.push(i);break}r&&(S=h)}y&&((i=!a&&i)&&u--,e&&c.push(i))}if(u+=l,y&&l!==u){for(s=0;a=v[s++];)a(c,f,t,n);if(e){if(0<u)for(;l--;)c[l]||f[l]||(f[l]=D.call(o));f=xe(f)}q.apply(o,f),r&&!e&&0<f.length&&1<u+v.length&&ie.uniqueSort(o)}return r&&(S=h,w=d),c},y?ae(o):o))).selector=e}return s},g=ie.select=function(e,t,n,o){var r,i,s,a,u,l="function"==typeof e&&e,c=!o&&h(e=l.selector||e);if(n=n||[],1===c.length){if(2<(i=c[0]=c[0].slice(0)).length&&"ID"===(s=i[0]).type&&9===t.nodeType&&E&&x.relative[i[1].type]){if(!(t=(x.find.ID(s.matches[0].replace(Z,ee),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(i.shift().value.length)}for(r=V.needsContext.test(e)?0:i.length;r--&&(s=i[r],!x.relative[a=s.type]);)if((u=x.find[a])&&(o=u(s.matches[0].replace(Z,ee),K.test(i[0].type)&&ge(t.parentNode)||t))){if(i.splice(r,1),!(e=o.length&&ve(i)))return q.apply(n,o),n;break}}return(l||f(e,c))(o,t,!E,n,!t||K.test(e)&&ge(t.parentNode)||t),n},p.sortStable=k.split("").sort(N).join("")===k,p.detectDuplicates=!!l,C(),p.sortDetached=ue(function(e){return 1&e.compareDocumentPosition(T.createElement("fieldset"))}),ue(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||le("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),p.attributes&&ue(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||le("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ue(function(e){return null==e.getAttribute("disabled")})||le(B,function(e,t,n){var o;if(!n)return!0===e[t]?t.toLowerCase():(o=e.getAttributeNode(t))&&o.specified?o.value:null}),ie}(T);k.find=p,k.expr=p.selectors,k.expr[":"]=k.expr.pseudos,k.uniqueSort=k.unique=p.uniqueSort,k.text=p.getText,k.isXMLDoc=p.isXML,k.contains=p.contains,k.escapeSelector=p.escape;var h=function(e,t,n){for(var o=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&k(e).is(n))break;o.push(e)}return o},C=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},S=k.expr.match.needsContext;function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,o){return y(n)?k.grep(e,function(e,t){return!!n.call(e,t,e)!==o}):n.nodeType?k.grep(e,function(e){return e===n!==o}):"string"!=typeof n?k.grep(e,function(e){return-1<r.call(n,e)!==o}):k.filter(n,e,o)}k.filter=function(e,t,n){var o=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===o.nodeType?k.find.matchesSelector(o,e)?[o]:[]:k.find.matches(e,k.grep(t,function(e){return 1===e.nodeType}))},k.fn.extend({find:function(e){var t,n,o=this.length,r=this;if("string"!=typeof e)return this.pushStack(k(e).filter(function(){for(t=0;t<o;t++)if(k.contains(r[t],this))return!0}));for(n=this.pushStack([]),t=0;t<o;t++)k.find(e,r[t],n);return 1<o?k.uniqueSort(n):n},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&S.test(e)?k(e):e||[],!1).length}});var D,I=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var o,r;if(!e)return this;if(n=n||D,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this);if(!(o="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:I.exec(e))||!o[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(o[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(o[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),N.test(o[1])&&k.isPlainObject(t))for(o in t)y(this[o])?this[o](t[o]):this.attr(o,t[o]);return this}return(r=E.getElementById(o[2]))&&(this[0]=r,this.length=1),this}).prototype=k.fn,D=k(E);var q=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function L(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(k.contains(this,t[e]))return!0})},closest:function(e,t){var n,o=0,r=this.length,i=[],s="string"!=typeof e&&k(e);if(!S.test(e))for(;o<r;o++)for(n=this[o];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?-1<s.index(n):1===n.nodeType&&k.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(1<i.length?k.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?r.call(k(e),this[0]):r.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),k.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return h(e,"parentNode")},parentsUntil:function(e,t,n){return h(e,"parentNode",n)},next:function(e){return L(e,"nextSibling")},prev:function(e){return L(e,"previousSibling")},nextAll:function(e){return h(e,"nextSibling")},prevAll:function(e){return h(e,"previousSibling")},nextUntil:function(e,t,n){return h(e,"nextSibling",n)},prevUntil:function(e,t,n){return h(e,"previousSibling",n)},siblings:function(e){return C((e.parentNode||{}).firstChild,e)},children:function(e){return C(e.firstChild)},contents:function(e){return A(e,"iframe")?e.contentDocument:(A(e,"template")&&(e=e.content||e),k.merge([],e.childNodes))}},function(o,r){k.fn[o]=function(e,t){var n=k.map(this,r,e);return"Until"!==o.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=k.filter(t,n)),1<this.length&&(H[o]||k.uniqueSort(n),q.test(o)&&n.reverse()),this.pushStack(n)}});var B=/[^\x20\t\r\n\f]+/g;function O(e){return e}function P(e){throw e}function _(e,t,n,o){var r;try{e&&y(r=e.promise)?r.call(e).done(t).fail(n):e&&y(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(o))}catch(e){n.apply(void 0,[e])}}k.Callbacks=function(o){var e,n;o="string"==typeof o?(e=o,n={},k.each(e.match(B)||[],function(e,t){n[t]=!0}),n):k.extend({},o);var r,t,i,s,a=[],u=[],l=-1,c=function(){for(s=s||o.once,i=r=!0;u.length;l=-1)for(t=u.shift();++l<a.length;)!1===a[l].apply(t[0],t[1])&&o.stopOnFalse&&(l=a.length,t=!1);o.memory||(t=!1),r=!1,s&&(a=t?[]:"")},f={add:function(){return a&&(t&&!r&&(l=a.length-1,u.push(t)),function n(e){k.each(e,function(e,t){y(t)?o.unique&&f.has(t)||a.push(t):t&&t.length&&"string"!==w(t)&&n(t)})}(arguments),t&&!r&&c()),this},remove:function(){return k.each(arguments,function(e,t){for(var n;-1<(n=k.inArray(t,a,n));)a.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<k.inArray(e,a):0<a.length},empty:function(){return a&&(a=[]),this},disable:function(){return s=u=[],a=t="",this},disabled:function(){return!a},lock:function(){return s=u=[],t||r||(a=t=""),this},locked:function(){return!!s},fireWith:function(e,t){return s||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),r||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!i}};return f},k.extend({Deferred:function(e){var i=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],r="pending",s={state:function(){return r},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return s.then(null,e)},pipe:function(){var r=arguments;return k.Deferred(function(o){k.each(i,function(e,t){var n=y(r[t[4]])&&r[t[4]];a[t[1]](function(){var e=n&&n.apply(this,arguments);e&&y(e.promise)?e.promise().progress(o.notify).done(o.resolve).fail(o.reject):o[t[0]+"With"](this,n?[e]:arguments)})}),r=null}).promise()},then:function(t,n,o){var u=0;function l(r,i,s,a){return function(){var n=this,o=arguments,e=function(){var e,t;if(!(r<u)){if((e=s.apply(n,o))===i.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,y(t)?a?t.call(e,l(u,i,O,a),l(u,i,P,a)):(u++,t.call(e,l(u,i,O,a),l(u,i,P,a),l(u,i,O,i.notifyWith))):(s!==O&&(n=void 0,o=[e]),(a||i.resolveWith)(n,o))}},t=a?e:function(){try{e()}catch(e){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(e,t.stackTrace),u<=r+1&&(s!==P&&(n=void 0,o=[e]),i.rejectWith(n,o))}};r?t():(k.Deferred.getStackHook&&(t.stackTrace=k.Deferred.getStackHook()),T.setTimeout(t))}}return k.Deferred(function(e){i[0][3].add(l(0,e,y(o)?o:O,e.notifyWith)),i[1][3].add(l(0,e,y(t)?t:O)),i[2][3].add(l(0,e,y(n)?n:P))}).promise()},promise:function(e){return null!=e?k.extend(e,s):s}},a={};return k.each(i,function(e,t){var n=t[2],o=t[5];s[t[1]]=n.add,o&&n.add(function(){r=o},i[3-e][2].disable,i[3-e][3].disable,i[0][2].lock,i[0][3].lock),n.add(t[3].fire),a[t[0]]=function(){return a[t[0]+"With"](this===a?void 0:this,arguments),this},a[t[0]+"With"]=n.fireWith}),s.promise(a),e&&e.call(a,a),a},when:function(e){var n=arguments.length,t=n,o=Array(t),r=a.call(arguments),i=k.Deferred(),s=function(t){return function(e){o[t]=this,r[t]=1<arguments.length?a.call(arguments):e,--n||i.resolveWith(o,r)}};if(n<=1&&(_(e,i.done(s(t)).resolve,i.reject,!n),"pending"===i.state()||y(r[t]&&r[t].then)))return i.then();for(;t--;)_(r[t],s(t),i.reject);return i.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(e,t){T.console&&T.console.warn&&e&&W.test(e.name)&&T.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},k.readyException=function(e){T.setTimeout(function(){throw e})};var R=k.Deferred();function M(){E.removeEventListener("DOMContentLoaded",M),T.removeEventListener("load",M),k.ready()}k.fn.ready=function(e){return R.then(e).catch(function(e){k.readyException(e)}),this},k.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--k.readyWait:k.isReady)||((k.isReady=!0)!==e&&0<--k.readyWait||R.resolveWith(E,[k]))}}),k.ready.then=R.then,"complete"===E.readyState||"loading"!==E.readyState&&!E.documentElement.doScroll?T.setTimeout(k.ready):(E.addEventListener("DOMContentLoaded",M),T.addEventListener("load",M));var F=function(e,t,n,o,r,i,s){var a=0,u=e.length,l=null==n;if("object"===w(n))for(a in r=!0,n)F(e,t,a,n[a],!0,i,s);else if(void 0!==o&&(r=!0,y(o)||(s=!0),l&&(t=s?(t.call(e,o),null):(l=t,function(e,t,n){return l.call(k(e),n)})),t))for(;a<u;a++)t(e[a],n,s?o:o.call(e[a],a,t(e[a],n)));return r?e:l?t.call(e):u?t(e[0],n):i},$=/^-ms-/,U=/-([a-z])/g;function z(e,t){return t.toUpperCase()}function X(e){return e.replace($,"ms-").replace(U,z)}var V=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function G(){this.expando=k.expando+G.uid++}G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},V(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var o,r=this.cache(e);if("string"==typeof t)r[X(t)]=n;else for(o in t)r[X(o)]=t[o];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][X(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,o=e[this.expando];if(void 0!==o){if(void 0!==t){n=(t=Array.isArray(t)?t.map(X):(t=X(t))in o?[t]:t.match(B)||[]).length;for(;n--;)delete o[t[n]]}(void 0===t||k.isEmptyObject(o))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!k.isEmptyObject(t)}};var Y=new G,J=new G,Q=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function Z(e,t,n){var o,r;if(void 0===n&&1===e.nodeType)if(o="data-"+t.replace(K,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(o))){try{n="true"===(r=n)||"false"!==r&&("null"===r?null:r===+r+""?+r:Q.test(r)?JSON.parse(r):r)}catch(e){}J.set(e,t,n)}else n=void 0;return n}k.extend({hasData:function(e){return J.hasData(e)||Y.hasData(e)},data:function(e,t,n){return J.access(e,t,n)},removeData:function(e,t){J.remove(e,t)},_data:function(e,t,n){return Y.access(e,t,n)},_removeData:function(e,t){Y.remove(e,t)}}),k.fn.extend({data:function(n,e){var t,o,r,i=this[0],s=i&&i.attributes;if(void 0!==n)return"object"==typeof n?this.each(function(){J.set(this,n)}):F(this,function(e){var t;if(i&&void 0===e){if(void 0!==(t=J.get(i,n)))return t;if(void 0!==(t=Z(i,n)))return t}else this.each(function(){J.set(this,n,e)})},null,e,1<arguments.length,null,!0);if(this.length&&(r=J.get(i),1===i.nodeType&&!Y.get(i,"hasDataAttrs"))){for(t=s.length;t--;)s[t]&&0===(o=s[t].name).indexOf("data-")&&(o=X(o.slice(5)),Z(i,o,r[o]));Y.set(i,"hasDataAttrs",!0)}return r},removeData:function(e){return this.each(function(){J.remove(this,e)})}}),k.extend({queue:function(e,t,n){var o;if(e)return t=(t||"fx")+"queue",o=Y.get(e,t),n&&(!o||Array.isArray(n)?o=Y.access(e,t,k.makeArray(n)):o.push(n)),o||[]},dequeue:function(e,t){t=t||"fx";var n=k.queue(e,t),o=n.length,r=n.shift(),i=k._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),o--),r&&("fx"===t&&n.unshift("inprogress"),delete i.stop,r.call(e,function(){k.dequeue(e,t)},i)),!o&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Y.get(e,n)||Y.access(e,n,{empty:k.Callbacks("once memory").add(function(){Y.remove(e,[t+"queue",n])})})}}),k.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?k.queue(this[0],t):void 0===n?this:this.each(function(){var e=k.queue(this,t,n);k._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&k.dequeue(this,t)})},dequeue:function(e){return this.each(function(){k.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,o=1,r=k.Deferred(),i=this,s=this.length,a=function(){--o||r.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=Y.get(i[s],e+"queueHooks"))&&n.empty&&(o++,n.empty.add(a));return a(),r.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],oe=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&k.contains(e.ownerDocument,e)&&"none"===k.css(e,"display")},re=function(e,t,n,o){var r,i,s={};for(i in t)s[i]=e.style[i],e.style[i]=t[i];for(i in r=n.apply(e,o||[]),t)e.style[i]=s[i];return r};function ie(e,t,n,o){var r,i,s=20,a=o?function(){return o.cur()}:function(){return k.css(e,t,"")},u=a(),l=n&&n[3]||(k.cssNumber[t]?"":"px"),c=(k.cssNumber[t]||"px"!==l&&+u)&&te.exec(k.css(e,t));if(c&&c[3]!==l){for(u/=2,l=l||c[3],c=+u||1;s--;)k.style(e,t,c+l),(1-i)*(1-(i=a()/u||.5))<=0&&(s=0),c/=i;c*=2,k.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],o&&(o.unit=l,o.start=c,o.end=r)),r}var se={};function ae(e,t){for(var n,o,r=[],i=0,s=e.length;i<s;i++)(o=e[i]).style&&(n=o.style.display,t?("none"===n&&(r[i]=Y.get(o,"display")||null,r[i]||(o.style.display="")),""===o.style.display&&oe(o)&&(r[i]=(f=l=u=void 0,l=(a=o).ownerDocument,c=a.nodeName,(f=se[c])||(u=l.body.appendChild(l.createElement(c)),f=k.css(u,"display"),u.parentNode.removeChild(u),"none"===f&&(f="block"),se[c]=f)))):"none"!==n&&(r[i]="none",Y.set(o,"display",n)));var a,u,l,c,f;for(i=0;i<s;i++)null!=r[i]&&(e[i].style.display=r[i]);return e}k.fn.extend({show:function(){return ae(this,!0)},hide:function(){return ae(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){oe(this)?k(this).show():k(this).hide()})}});var ue=/^(?:checkbox|radio)$/i,le=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,ce=/^$|^module$|\/(?:java|ecma)script/i,fe={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function de(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?k.merge([e],n):n}function pe(e,t){for(var n=0,o=e.length;n<o;n++)Y.set(e[n],"globalEval",!t||Y.get(t[n],"globalEval"))}fe.optgroup=fe.option,fe.tbody=fe.tfoot=fe.colgroup=fe.caption=fe.thead,fe.th=fe.td;var he,ge,me=/<|&#?\w+;/;function ve(e,t,n,o,r){for(var i,s,a,u,l,c,f=t.createDocumentFragment(),d=[],p=0,h=e.length;p<h;p++)if((i=e[p])||0===i)if("object"===w(i))k.merge(d,i.nodeType?[i]:i);else if(me.test(i)){for(s=s||f.appendChild(t.createElement("div")),a=(le.exec(i)||["",""])[1].toLowerCase(),u=fe[a]||fe._default,s.innerHTML=u[1]+k.htmlPrefilter(i)+u[2],c=u[0];c--;)s=s.lastChild;k.merge(d,s.childNodes),(s=f.firstChild).textContent=""}else d.push(t.createTextNode(i));for(f.textContent="",p=0;i=d[p++];)if(o&&-1<k.inArray(i,o))r&&r.push(i);else if(l=k.contains(i.ownerDocument,i),s=de(f.appendChild(i),"script"),l&&pe(s),n)for(c=0;i=s[c++];)ce.test(i.type||"")&&n.push(i);return f}he=E.createDocumentFragment().appendChild(E.createElement("div")),(ge=E.createElement("input")).setAttribute("type","radio"),ge.setAttribute("checked","checked"),ge.setAttribute("name","t"),he.appendChild(ge),v.checkClone=he.cloneNode(!0).cloneNode(!0).lastChild.checked,he.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!he.cloneNode(!0).lastChild.defaultValue;var ye=E.documentElement,be=/^key/,xe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,we=/^([^.]*)(?:\.(.+)|)/;function Ce(){return!0}function Te(){return!1}function Ee(){try{return E.activeElement}catch(e){}}function ke(e,t,n,o,r,i){var s,a;if("object"==typeof t){for(a in"string"!=typeof n&&(o=o||n,n=void 0),t)ke(e,a,n,o,t[a],i);return e}if(null==o&&null==r?(r=n,o=n=void 0):null==r&&("string"==typeof n?(r=o,o=void 0):(r=o,o=n,n=void 0)),!1===r)r=Te;else if(!r)return e;return 1===i&&(s=r,(r=function(e){return k().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=k.guid++)),e.each(function(){k.event.add(this,t,r,o,n)})}k.event={global:{},add:function(t,e,n,o,r){var i,s,a,u,l,c,f,d,p,h,g,m=Y.get(t);if(m)for(n.handler&&(n=(i=n).handler,r=i.selector),r&&k.find.matchesSelector(ye,r),n.guid||(n.guid=k.guid++),(u=m.events)||(u=m.events={}),(s=m.handle)||(s=m.handle=function(e){return void 0!==k&&k.event.triggered!==e.type?k.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(B)||[""]).length;l--;)p=g=(a=we.exec(e[l])||[])[1],h=(a[2]||"").split(".").sort(),p&&(f=k.event.special[p]||{},p=(r?f.delegateType:f.bindType)||p,f=k.event.special[p]||{},c=k.extend({type:p,origType:g,data:o,handler:n,guid:n.guid,selector:r,needsContext:r&&k.expr.match.needsContext.test(r),namespace:h.join(".")},i),(d=u[p])||((d=u[p]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,o,h,s)||t.addEventListener&&t.addEventListener(p,s)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),r?d.splice(d.delegateCount++,0,c):d.push(c),k.event.global[p]=!0)},remove:function(e,t,n,o,r){var i,s,a,u,l,c,f,d,p,h,g,m=Y.hasData(e)&&Y.get(e);if(m&&(u=m.events)){for(l=(t=(t||"").match(B)||[""]).length;l--;)if(p=g=(a=we.exec(t[l])||[])[1],h=(a[2]||"").split(".").sort(),p){for(f=k.event.special[p]||{},d=u[p=(o?f.delegateType:f.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=i=d.length;i--;)c=d[i],!r&&g!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||o&&o!==c.selector&&("**"!==o||!c.selector)||(d.splice(i,1),c.selector&&d.delegateCount--,f.remove&&f.remove.call(e,c));s&&!d.length&&(f.teardown&&!1!==f.teardown.call(e,h,m.handle)||k.removeEvent(e,p,m.handle),delete u[p])}else for(p in u)k.event.remove(e,p+t[l],n,o,!0);k.isEmptyObject(u)&&Y.remove(e,"handle events")}},dispatch:function(e){var t,n,o,r,i,s,a=k.event.fix(e),u=new Array(arguments.length),l=(Y.get(this,"events")||{})[a.type]||[],c=k.event.special[a.type]||{};for(u[0]=a,t=1;t<arguments.length;t++)u[t]=arguments[t];if(a.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,a)){for(s=k.event.handlers.call(this,a,l),t=0;(r=s[t++])&&!a.isPropagationStopped();)for(a.currentTarget=r.elem,n=0;(i=r.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!a.rnamespace.test(i.namespace)||(a.handleObj=i,a.data=i.data,void 0!==(o=((k.event.special[i.origType]||{}).handle||i.handler).apply(r.elem,u))&&!1===(a.result=o)&&(a.preventDefault(),a.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,a),a.result}},handlers:function(e,t){var n,o,r,i,s,a=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(i=[],s={},n=0;n<u;n++)void 0===s[r=(o=t[n]).selector+" "]&&(s[r]=o.needsContext?-1<k(r,this).index(l):k.find(r,this,null,[l]).length),s[r]&&i.push(o);i.length&&a.push({elem:l,handlers:i})}return l=this,u<t.length&&a.push({elem:l,handlers:t.slice(u)}),a},addProp:function(t,e){Object.defineProperty(k.Event.prototype,t,{enumerable:!0,configurable:!0,get:y(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[k.expando]?e:new k.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==Ee()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===Ee()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&A(this,"input"))return this.click(),!1},_default:function(e){return A(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},k.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},k.Event=function(e,t){if(!(this instanceof k.Event))return new k.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ce:Te,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&k.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[k.expando]=!0},k.Event.prototype={constructor:k.Event,isDefaultPrevented:Te,isPropagationStopped:Te,isImmediatePropagationStopped:Te,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ce,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ce,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ce,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},k.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&be.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&xe.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},k.event.addProp),k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,r){k.event.special[e]={delegateType:r,bindType:r,handle:function(e){var t,n=e.relatedTarget,o=e.handleObj;return n&&(n===this||k.contains(this,n))||(e.type=o.origType,t=o.handler.apply(this,arguments),e.type=r),t}}}),k.fn.extend({on:function(e,t,n,o){return ke(this,e,t,n,o)},one:function(e,t,n,o){return ke(this,e,t,n,o,1)},off:function(e,t,n){var o,r;if(e&&e.preventDefault&&e.handleObj)return o=e.handleObj,k(e.delegateTarget).off(o.namespace?o.origType+"."+o.namespace:o.origType,o.selector,o.handler),this;if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Te),this.each(function(){k.event.remove(this,e,n,t)});for(r in e)this.off(r,t,e[r]);return this}});var Se=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Ae=/<script|<style|<link/i,Ne=/checked\s*(?:[^=]|=\s*.checked.)/i,je=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function De(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function He(e,t){var n,o,r,i,s,a,u,l;if(1===t.nodeType){if(Y.hasData(e)&&(i=Y.access(e),s=Y.set(t,i),l=i.events))for(r in delete s.handle,s.events={},l)for(n=0,o=l[r].length;n<o;n++)k.event.add(t,r,l[r][n]);J.hasData(e)&&(a=J.access(e),u=k.extend({},a),J.set(t,u))}}function Le(n,o,r,i){o=g.apply([],o);var e,t,s,a,u,l,c=0,f=n.length,d=f-1,p=o[0],h=y(p);if(h||1<f&&"string"==typeof p&&!v.checkClone&&Ne.test(p))return n.each(function(e){var t=n.eq(e);h&&(o[0]=p.call(this,e,t.html())),Le(t,o,r,i)});if(f&&(t=(e=ve(o,n[0].ownerDocument,!1,n,i)).firstChild,1===e.childNodes.length&&(e=t),t||i)){for(a=(s=k.map(de(e,"script"),Ie)).length;c<f;c++)u=e,c!==d&&(u=k.clone(u,!0,!0),a&&k.merge(s,de(u,"script"))),r.call(n[c],u,c);if(a)for(l=s[s.length-1].ownerDocument,k.map(s,qe),c=0;c<a;c++)u=s[c],ce.test(u.type||"")&&!Y.access(u,"globalEval")&&k.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?k._evalUrl&&k._evalUrl(u.src):x(u.textContent.replace(je,""),l,u))}return n}function Be(e,t,n){for(var o,r=t?k.filter(t,e):e,i=0;null!=(o=r[i]);i++)n||1!==o.nodeType||k.cleanData(de(o)),o.parentNode&&(n&&k.contains(o.ownerDocument,o)&&pe(de(o,"script")),o.parentNode.removeChild(o));return e}k.extend({htmlPrefilter:function(e){return e.replace(Se,"<$1></$2>")},clone:function(e,t,n){var o,r,i,s,a,u,l,c=e.cloneNode(!0),f=k.contains(e.ownerDocument,e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(s=de(c),o=0,r=(i=de(e)).length;o<r;o++)a=i[o],u=s[o],void 0,"input"===(l=u.nodeName.toLowerCase())&&ue.test(a.type)?u.checked=a.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=a.defaultValue);if(t)if(n)for(i=i||de(e),s=s||de(c),o=0,r=i.length;o<r;o++)He(i[o],s[o]);else He(e,c);return 0<(s=de(c,"script")).length&&pe(s,!f&&de(e,"script")),c},cleanData:function(e){for(var t,n,o,r=k.event.special,i=0;void 0!==(n=e[i]);i++)if(V(n)){if(t=n[Y.expando]){if(t.events)for(o in t.events)r[o]?k.event.remove(n,o):k.removeEvent(n,o,t.handle);n[Y.expando]=void 0}n[J.expando]&&(n[J.expando]=void 0)}}}),k.fn.extend({detach:function(e){return Be(this,e,!0)},remove:function(e){return Be(this,e)},text:function(e){return F(this,function(e){return void 0===e?k.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Le(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||De(this,e).appendChild(e)})},prepend:function(){return Le(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=De(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++)1===e.nodeType&&(k.cleanData(de(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return k.clone(this,e,t)})},html:function(e){return F(this,function(e){var t=this[0]||{},n=0,o=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ae.test(e)&&!fe[(le.exec(e)||["",""])[1].toLowerCase()]){e=k.htmlPrefilter(e);try{for(;n<o;n++)1===(t=this[n]||{}).nodeType&&(k.cleanData(de(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return Le(this,arguments,function(e){var t=this.parentNode;k.inArray(this,n)<0&&(k.cleanData(de(this)),t&&t.replaceChild(e,this))},n)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,s){k.fn[e]=function(e){for(var t,n=[],o=k(e),r=o.length-1,i=0;i<=r;i++)t=i===r?this:this.clone(!0),k(o[i])[s](t),u.apply(n,t.get());return this.pushStack(n)}});var Oe=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Pe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=T),t.getComputedStyle(e)},_e=new RegExp(ne.join("|"),"i");function We(e,t,n){var o,r,i,s,a=e.style;return(n=n||Pe(e))&&(""!==(s=n.getPropertyValue(t)||n[t])||k.contains(e.ownerDocument,e)||(s=k.style(e,t)),!v.pixelBoxStyles()&&Oe.test(s)&&_e.test(t)&&(o=a.width,r=a.minWidth,i=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=o,a.minWidth=r,a.maxWidth=i)),void 0!==s?s+"":s}function Re(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){a.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ye.appendChild(a).appendChild(u);var e=T.getComputedStyle(u);n="1%"!==e.top,s=12===t(e.marginLeft),u.style.right="60%",i=36===t(e.right),o=36===t(e.width),u.style.position="absolute",r=36===u.offsetWidth||"absolute",ye.removeChild(a),u=null}}function t(e){return Math.round(parseFloat(e))}var n,o,r,i,s,a=E.createElement("div"),u=E.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===u.style.backgroundClip,k.extend(v,{boxSizingReliable:function(){return e(),o},pixelBoxStyles:function(){return e(),i},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),r}}))}();var Me=/^(none|table(?!-c[ea]).+)/,Fe=/^--/,$e={position:"absolute",visibility:"hidden",display:"block"},Ue={letterSpacing:"0",fontWeight:"400"},ze=["Webkit","Moz","ms"],Xe=E.createElement("div").style;function Ve(e){var t=k.cssProps[e];return t||(t=k.cssProps[e]=function(e){if(e in Xe)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=ze.length;n--;)if((e=ze[n]+t)in Xe)return e}(e)||e),t}function Ge(e,t,n){var o=te.exec(t);return o?Math.max(0,o[2]-(n||0))+(o[3]||"px"):t}function Ye(e,t,n,o,r,i){var s="width"===t?1:0,a=0,u=0;if(n===(o?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(u+=k.css(e,n+ne[s],!0,r)),o?("content"===n&&(u-=k.css(e,"padding"+ne[s],!0,r)),"margin"!==n&&(u-=k.css(e,"border"+ne[s]+"Width",!0,r))):(u+=k.css(e,"padding"+ne[s],!0,r),"padding"!==n?u+=k.css(e,"border"+ne[s]+"Width",!0,r):a+=k.css(e,"border"+ne[s]+"Width",!0,r));return!o&&0<=i&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-i-u-a-.5))),u}function Je(e,t,n){var o=Pe(e),r=We(e,t,o),i="border-box"===k.css(e,"boxSizing",!1,o),s=i;if(Oe.test(r)){if(!n)return r;r="auto"}return s=s&&(v.boxSizingReliable()||r===e.style[t]),("auto"===r||!parseFloat(r)&&"inline"===k.css(e,"display",!1,o))&&(r=e["offset"+t[0].toUpperCase()+t.slice(1)],s=!0),(r=parseFloat(r)||0)+Ye(e,t,n||(i?"border":"content"),s,o,r)+"px"}function Qe(e,t,n,o,r){return new Qe.prototype.init(e,t,n,o,r)}k.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=We(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,o){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,i,s,a=X(t),u=Fe.test(t),l=e.style;if(u||(t=Ve(a)),s=k.cssHooks[t]||k.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(r=s.get(e,!1,o))?r:l[t];"string"==(i=typeof n)&&(r=te.exec(n))&&r[1]&&(n=ie(e,t,r),i="number"),null!=n&&n==n&&("number"===i&&(n+=r&&r[3]||(k.cssNumber[a]?"":"px")),v.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,o))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,o){var r,i,s,a=X(t);return Fe.test(t)||(t=Ve(a)),(s=k.cssHooks[t]||k.cssHooks[a])&&"get"in s&&(r=s.get(e,!0,n)),void 0===r&&(r=We(e,t,o)),"normal"===r&&t in Ue&&(r=Ue[t]),""===n||n?(i=parseFloat(r),!0===n||isFinite(i)?i||0:r):r}}),k.each(["height","width"],function(e,a){k.cssHooks[a]={get:function(e,t,n){if(t)return!Me.test(k.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Je(e,a,n):re(e,$e,function(){return Je(e,a,n)})},set:function(e,t,n){var o,r=Pe(e),i="border-box"===k.css(e,"boxSizing",!1,r),s=n&&Ye(e,a,n,i,r);return i&&v.scrollboxSize()===r.position&&(s-=Math.ceil(e["offset"+a[0].toUpperCase()+a.slice(1)]-parseFloat(r[a])-Ye(e,a,"border",!1,r)-.5)),s&&(o=te.exec(t))&&"px"!==(o[3]||"px")&&(e.style[a]=t,t=k.css(e,a)),Ge(0,t,s)}}}),k.cssHooks.marginLeft=Re(v.reliableMarginLeft,function(e,t){if(t)return(parseFloat(We(e,"marginLeft"))||e.getBoundingClientRect().left-re(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),k.each({margin:"",padding:"",border:"Width"},function(r,i){k.cssHooks[r+i]={expand:function(e){for(var t=0,n={},o="string"==typeof e?e.split(" "):[e];t<4;t++)n[r+ne[t]+i]=o[t]||o[t-2]||o[0];return n}},"margin"!==r&&(k.cssHooks[r+i].set=Ge)}),k.fn.extend({css:function(e,t){return F(this,function(e,t,n){var o,r,i={},s=0;if(Array.isArray(t)){for(o=Pe(e),r=t.length;s<r;s++)i[t[s]]=k.css(e,t[s],!1,o);return i}return void 0!==n?k.style(e,t,n):k.css(e,t)},e,t,1<arguments.length)}}),((k.Tween=Qe).prototype={constructor:Qe,init:function(e,t,n,o,r,i){this.elem=e,this.prop=n,this.easing=r||k.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=o,this.unit=i||(k.cssNumber[n]?"":"px")},cur:function(){var e=Qe.propHooks[this.prop];return e&&e.get?e.get(this):Qe.propHooks._default.get(this)},run:function(e){var t,n=Qe.propHooks[this.prop];return this.options.duration?this.pos=t=k.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):Qe.propHooks._default.set(this),this}}).init.prototype=Qe.prototype,(Qe.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=k.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){k.fx.step[e.prop]?k.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[k.cssProps[e.prop]]&&!k.cssHooks[e.prop]?e.elem[e.prop]=e.now:k.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=Qe.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},k.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},k.fx=Qe.prototype.init,k.fx.step={};var Ke,Ze,et,tt,nt=/^(?:toggle|show|hide)$/,ot=/queueHooks$/;function rt(){Ze&&(!1===E.hidden&&T.requestAnimationFrame?T.requestAnimationFrame(rt):T.setTimeout(rt,k.fx.interval),k.fx.tick())}function it(){return T.setTimeout(function(){Ke=void 0}),Ke=Date.now()}function st(e,t){var n,o=0,r={height:e};for(t=t?1:0;o<4;o+=2-t)r["margin"+(n=ne[o])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function at(e,t,n){for(var o,r=(ut.tweeners[t]||[]).concat(ut.tweeners["*"]),i=0,s=r.length;i<s;i++)if(o=r[i].call(n,t,e))return o}function ut(i,e,t){var n,s,o=0,r=ut.prefilters.length,a=k.Deferred().always(function(){delete u.elem}),u=function(){if(s)return!1;for(var e=Ke||it(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),o=0,r=l.tweens.length;o<r;o++)l.tweens[o].run(n);return a.notifyWith(i,[l,n,t]),n<1&&r?t:(r||a.notifyWith(i,[l,1,0]),a.resolveWith(i,[l]),!1)},l=a.promise({elem:i,props:k.extend({},e),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},t),originalProperties:e,originalOptions:t,startTime:Ke||it(),duration:t.duration,tweens:[],createTween:function(e,t){var n=k.Tween(i,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(s)return this;for(s=!0;t<n;t++)l.tweens[t].run(1);return e?(a.notifyWith(i,[l,1,0]),a.resolveWith(i,[l,e])):a.rejectWith(i,[l,e]),this}}),c=l.props;for(function(e,t){var n,o,r,i,s;for(n in e)if(r=t[o=X(n)],i=e[n],Array.isArray(i)&&(r=i[1],i=e[n]=i[0]),n!==o&&(e[o]=i,delete e[n]),(s=k.cssHooks[o])&&"expand"in s)for(n in i=s.expand(i),delete e[o],i)n in e||(e[n]=i[n],t[n]=r);else t[o]=r}(c,l.opts.specialEasing);o<r;o++)if(n=ut.prefilters[o].call(l,i,c,l.opts))return y(n.stop)&&(k._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return k.map(c,at,l),y(l.opts.start)&&l.opts.start.call(i,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),k.fx.timer(k.extend(u,{elem:i,anim:l,queue:l.opts.queue})),l}k.Animation=k.extend(ut,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ie(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){for(var n,o=0,r=(e=y(e)?(t=e,["*"]):e.match(B)).length;o<r;o++)n=e[o],ut.tweeners[n]=ut.tweeners[n]||[],ut.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var o,r,i,s,a,u,l,c,f="width"in t||"height"in t,d=this,p={},h=e.style,g=e.nodeType&&oe(e),m=Y.get(e,"fxshow");for(o in n.queue||(null==(s=k._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,d.always(function(){d.always(function(){s.unqueued--,k.queue(e,"fx").length||s.empty.fire()})})),t)if(r=t[o],nt.test(r)){if(delete t[o],i=i||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!m||void 0===m[o])continue;g=!0}p[o]=m&&m[o]||k.style(e,o)}if((u=!k.isEmptyObject(t))||!k.isEmptyObject(p))for(o in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=m&&m.display)&&(l=Y.get(e,"display")),"none"===(c=k.css(e,"display"))&&(l?c=l:(ae([e],!0),l=e.style.display||l,c=k.css(e,"display"),ae([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===k.css(e,"float")&&(u||(d.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",d.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,p)u||(m?"hidden"in m&&(g=m.hidden):m=Y.access(e,"fxshow",{display:l}),i&&(m.hidden=!g),g&&ae([e],!0),d.done(function(){for(o in g||ae([e]),Y.remove(e,"fxshow"),p)k.style(e,o,p[o])})),u=at(g?m[o]:0,o,d),o in m||(m[o]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?ut.prefilters.unshift(e):ut.prefilters.push(e)}}),k.speed=function(e,t,n){var o=e&&"object"==typeof e?k.extend({},e):{complete:n||!n&&t||y(e)&&e,duration:e,easing:n&&t||t&&!y(t)&&t};return k.fx.off?o.duration=0:"number"!=typeof o.duration&&(o.duration in k.fx.speeds?o.duration=k.fx.speeds[o.duration]:o.duration=k.fx.speeds._default),null!=o.queue&&!0!==o.queue||(o.queue="fx"),o.old=o.complete,o.complete=function(){y(o.old)&&o.old.call(this),o.queue&&k.dequeue(this,o.queue)},o},k.fn.extend({fadeTo:function(e,t,n,o){return this.filter(oe).css("opacity",0).show().end().animate({opacity:t},e,n,o)},animate:function(t,e,n,o){var r=k.isEmptyObject(t),i=k.speed(e,n,o),s=function(){var e=ut(this,k.extend({},t),i);(r||Y.get(this,"finish"))&&e.stop(!0)};return s.finish=s,r||!1===i.queue?this.each(s):this.queue(i.queue,s)},stop:function(r,e,i){var s=function(e){var t=e.stop;delete e.stop,t(i)};return"string"!=typeof r&&(i=e,e=r,r=void 0),e&&!1!==r&&this.queue(r||"fx",[]),this.each(function(){var e=!0,t=null!=r&&r+"queueHooks",n=k.timers,o=Y.get(this);if(t)o[t]&&o[t].stop&&s(o[t]);else for(t in o)o[t]&&o[t].stop&&ot.test(t)&&s(o[t]);for(t=n.length;t--;)n[t].elem!==this||null!=r&&n[t].queue!==r||(n[t].anim.stop(i),e=!1,n.splice(t,1));!e&&i||k.dequeue(this,r)})},finish:function(s){return!1!==s&&(s=s||"fx"),this.each(function(){var e,t=Y.get(this),n=t[s+"queue"],o=t[s+"queueHooks"],r=k.timers,i=n?n.length:0;for(t.finish=!0,k.queue(this,s,[]),o&&o.stop&&o.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===s&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;e<i;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),k.each(["toggle","show","hide"],function(e,o){var r=k.fn[o];k.fn[o]=function(e,t,n){return null==e||"boolean"==typeof e?r.apply(this,arguments):this.animate(st(o,!0),e,t,n)}}),k.each({slideDown:st("show"),slideUp:st("hide"),slideToggle:st("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,o){k.fn[e]=function(e,t,n){return this.animate(o,e,t,n)}}),k.timers=[],k.fx.tick=function(){var e,t=0,n=k.timers;for(Ke=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||k.fx.stop(),Ke=void 0},k.fx.timer=function(e){k.timers.push(e),k.fx.start()},k.fx.interval=13,k.fx.start=function(){Ze||(Ze=!0,rt())},k.fx.stop=function(){Ze=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(o,e){return o=k.fx&&k.fx.speeds[o]||o,e=e||"fx",this.queue(e,function(e,t){var n=T.setTimeout(e,o);t.stop=function(){T.clearTimeout(n)}})},et=E.createElement("input"),tt=E.createElement("select").appendChild(E.createElement("option")),et.type="checkbox",v.checkOn=""!==et.value,v.optSelected=tt.selected,(et=E.createElement("input")).value="t",et.type="radio",v.radioValue="t"===et.value;var lt,ct=k.expr.attrHandle;k.fn.extend({attr:function(e,t){return F(this,k.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){k.removeAttr(this,e)})}}),k.extend({attr:function(e,t,n){var o,r,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?k.prop(e,t,n):(1===i&&k.isXMLDoc(e)||(r=k.attrHooks[t.toLowerCase()]||(k.expr.match.bool.test(t)?lt:void 0)),void 0!==n?null===n?void k.removeAttr(e,t):r&&"set"in r&&void 0!==(o=r.set(e,n,t))?o:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(o=r.get(e,t))?o:null==(o=k.find.attr(e,t))?void 0:o)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&A(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,o=0,r=t&&t.match(B);if(r&&1===e.nodeType)for(;n=r[o++];)e.removeAttribute(n)}}),lt={set:function(e,t,n){return!1===t?k.removeAttr(e,n):e.setAttribute(n,n),n}},k.each(k.expr.match.bool.source.match(/\w+/g),function(e,t){var s=ct[t]||k.find.attr;ct[t]=function(e,t,n){var o,r,i=t.toLowerCase();return n||(r=ct[i],ct[i]=o,o=null!=s(e,t,n)?i:null,ct[i]=r),o}});var ft=/^(?:input|select|textarea|button)$/i,dt=/^(?:a|area)$/i;function pt(e){return(e.match(B)||[]).join(" ")}function ht(e){return e.getAttribute&&e.getAttribute("class")||""}function gt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(B)||[]}k.fn.extend({prop:function(e,t){return F(this,k.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[k.propFix[e]||e]})}}),k.extend({prop:function(e,t,n){var o,r,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&k.isXMLDoc(e)||(t=k.propFix[t]||t,r=k.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(o=r.set(e,n,t))?o:e[t]=n:r&&"get"in r&&null!==(o=r.get(e,t))?o:e[t]},propHooks:{tabIndex:{get:function(e){var t=k.find.attr(e,"tabindex");return t?parseInt(t,10):ft.test(e.nodeName)||dt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(k.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){k.propFix[this.toLowerCase()]=this}),k.fn.extend({addClass:function(t){var e,n,o,r,i,s,a,u=0;if(y(t))return this.each(function(e){k(this).addClass(t.call(this,e,ht(this)))});if((e=gt(t)).length)for(;n=this[u++];)if(r=ht(n),o=1===n.nodeType&&" "+pt(r)+" "){for(s=0;i=e[s++];)o.indexOf(" "+i+" ")<0&&(o+=i+" ");r!==(a=pt(o))&&n.setAttribute("class",a)}return this},removeClass:function(t){var e,n,o,r,i,s,a,u=0;if(y(t))return this.each(function(e){k(this).removeClass(t.call(this,e,ht(this)))});if(!arguments.length)return this.attr("class","");if((e=gt(t)).length)for(;n=this[u++];)if(r=ht(n),o=1===n.nodeType&&" "+pt(r)+" "){for(s=0;i=e[s++];)for(;-1<o.indexOf(" "+i+" ");)o=o.replace(" "+i+" "," ");r!==(a=pt(o))&&n.setAttribute("class",a)}return this},toggleClass:function(r,t){var i=typeof r,s="string"===i||Array.isArray(r);return"boolean"==typeof t&&s?t?this.addClass(r):this.removeClass(r):y(r)?this.each(function(e){k(this).toggleClass(r.call(this,e,ht(this),t),t)}):this.each(function(){var e,t,n,o;if(s)for(t=0,n=k(this),o=gt(r);e=o[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else void 0!==r&&"boolean"!==i||((e=ht(this))&&Y.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===r?"":Y.get(this,"__className__")||""))})},hasClass:function(e){var t,n,o=0;for(t=" "+e+" ";n=this[o++];)if(1===n.nodeType&&-1<(" "+pt(ht(n))+" ").indexOf(t))return!0;return!1}});var mt=/\r/g;k.fn.extend({val:function(n){var o,e,r,t=this[0];return arguments.length?(r=y(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=r?n.call(this,e,k(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=k.map(t,function(e){return null==e?"":e+""})),(o=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in o&&void 0!==o.set(this,t,"value")||(this.value=t))})):t?(o=k.valHooks[t.type]||k.valHooks[t.nodeName.toLowerCase()])&&"get"in o&&void 0!==(e=o.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(mt,""):null==e?"":e:void 0}}),k.extend({valHooks:{option:{get:function(e){var t=k.find.attr(e,"value");return null!=t?t:pt(k.text(e))}},select:{get:function(e){var t,n,o,r=e.options,i=e.selectedIndex,s="select-one"===e.type,a=s?null:[],u=s?i+1:r.length;for(o=i<0?u:s?i:0;o<u;o++)if(((n=r[o]).selected||o===i)&&!n.disabled&&(!n.parentNode.disabled||!A(n.parentNode,"optgroup"))){if(t=k(n).val(),s)return t;a.push(t)}return a},set:function(e,t){for(var n,o,r=e.options,i=k.makeArray(t),s=r.length;s--;)((o=r[s]).selected=-1<k.inArray(k.valHooks.option.get(o),i))&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),k.each(["radio","checkbox"],function(){k.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<k.inArray(k(e).val(),t)}},v.checkOn||(k.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),v.focusin="onfocusin"in T;var vt=/^(?:focusinfocus|focusoutblur)$/,yt=function(e){e.stopPropagation()};k.extend(k.event,{trigger:function(e,t,n,o){var r,i,s,a,u,l,c,f,d=[n||E],p=m.call(e,"type")?e.type:e,h=m.call(e,"namespace")?e.namespace.split("."):[];if(i=f=s=n=n||E,3!==n.nodeType&&8!==n.nodeType&&!vt.test(p+k.event.triggered)&&(-1<p.indexOf(".")&&(p=(h=p.split(".")).shift(),h.sort()),u=p.indexOf(":")<0&&"on"+p,(e=e[k.expando]?e:new k.Event(p,"object"==typeof e&&e)).isTrigger=o?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:k.makeArray(t,[e]),c=k.event.special[p]||{},o||!c.trigger||!1!==c.trigger.apply(n,t))){if(!o&&!c.noBubble&&!b(n)){for(a=c.delegateType||p,vt.test(a+p)||(i=i.parentNode);i;i=i.parentNode)d.push(i),s=i;s===(n.ownerDocument||E)&&d.push(s.defaultView||s.parentWindow||T)}for(r=0;(i=d[r++])&&!e.isPropagationStopped();)f=i,e.type=1<r?a:c.bindType||p,(l=(Y.get(i,"events")||{})[e.type]&&Y.get(i,"handle"))&&l.apply(i,t),(l=u&&i[u])&&l.apply&&V(i)&&(e.result=l.apply(i,t),!1===e.result&&e.preventDefault());return e.type=p,o||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(d.pop(),t)||!V(n)||u&&y(n[p])&&!b(n)&&((s=n[u])&&(n[u]=null),k.event.triggered=p,e.isPropagationStopped()&&f.addEventListener(p,yt),n[p](),e.isPropagationStopped()&&f.removeEventListener(p,yt),k.event.triggered=void 0,s&&(n[u]=s)),e.result}},simulate:function(e,t,n){var o=k.extend(new k.Event,n,{type:e,isSimulated:!0});k.event.trigger(o,null,t)}}),k.fn.extend({trigger:function(e,t){return this.each(function(){k.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return k.event.trigger(e,t,n,!0)}}),v.focusin||k.each({focus:"focusin",blur:"focusout"},function(n,o){var r=function(e){k.event.simulate(o,e.target,k.event.fix(e))};k.event.special[o]={setup:function(){var e=this.ownerDocument||this,t=Y.access(e,o);t||e.addEventListener(n,r,!0),Y.access(e,o,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=Y.access(e,o)-1;t?Y.access(e,o,t):(e.removeEventListener(n,r,!0),Y.remove(e,o))}}});var bt=T.location,xt=Date.now(),wt=/\?/;k.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new T.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||k.error("Invalid XML: "+e),t};var Ct=/\[\]$/,Tt=/\r?\n/g,Et=/^(?:submit|button|image|reset|file)$/i,kt=/^(?:input|select|textarea|keygen)/i;function St(n,e,o,r){var t;if(Array.isArray(e))k.each(e,function(e,t){o||Ct.test(n)?r(n,t):St(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,o,r)});else if(o||"object"!==w(e))r(n,e);else for(t in e)St(n+"["+t+"]",e[t],o,r)}k.param=function(e,t){var n,o=[],r=function(e,t){var n=y(t)?t():t;o[o.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!k.isPlainObject(e))k.each(e,function(){r(this.name,this.value)});else for(n in e)St(n,e[n],t,r);return o.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=k.prop(this,"elements");return e?k.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!k(this).is(":disabled")&&kt.test(this.nodeName)&&!Et.test(e)&&(this.checked||!ue.test(e))}).map(function(e,t){var n=k(this).val();return null==n?null:Array.isArray(n)?k.map(n,function(e){return{name:t.name,value:e.replace(Tt,"\r\n")}}):{name:t.name,value:n.replace(Tt,"\r\n")}}).get()}});var At=/%20/g,Nt=/#.*$/,jt=/([?&])_=[^&]*/,Dt=/^(.*?):[ \t]*([^\r\n]*)$/gm,It=/^(?:GET|HEAD)$/,qt=/^\/\//,Ht={},Lt={},Bt="*/".concat("*"),Ot=E.createElement("a");function Pt(i){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,o=0,r=e.toLowerCase().match(B)||[];if(y(t))for(;n=r[o++];)"+"===n[0]?(n=n.slice(1)||"*",(i[n]=i[n]||[]).unshift(t)):(i[n]=i[n]||[]).push(t)}}function _t(t,r,i,s){var a={},u=t===Lt;function l(e){var o;return a[e]=!0,k.each(t[e]||[],function(e,t){var n=t(r,i,s);return"string"!=typeof n||u||a[n]?u?!(o=n):void 0:(r.dataTypes.unshift(n),l(n),!1)}),o}return l(r.dataTypes[0])||!a["*"]&&l("*")}function Wt(e,t){var n,o,r=k.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:o||(o={}))[n]=t[n]);return o&&k.extend(!0,e,o),e}Ot.href=bt.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:bt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(bt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Bt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Wt(Wt(e,k.ajaxSettings),t):Wt(k.ajaxSettings,e)},ajaxPrefilter:Pt(Ht),ajaxTransport:Pt(Lt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,d,n,p,o,h,g,r,i,m=k.ajaxSetup({},t),v=m.context||m,y=m.context&&(v.nodeType||v.jquery)?k(v):k.event,b=k.Deferred(),x=k.Callbacks("once memory"),w=m.statusCode||{},s={},a={},u="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n)for(n={};t=Dt.exec(d);)n[t[1].toLowerCase()]=t[2];t=n[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return h?d:null},setRequestHeader:function(e,t){return null==h&&(e=a[e.toLowerCase()]=a[e.toLowerCase()]||e,s[e]=t),this},overrideMimeType:function(e){return null==h&&(m.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)C.always(e[C.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(b.promise(C),m.url=((e||m.url||bt.href)+"").replace(qt,bt.protocol+"//"),m.type=t.method||t.type||m.method||m.type,m.dataTypes=(m.dataType||"*").toLowerCase().match(B)||[""],null==m.crossDomain){o=E.createElement("a");try{o.href=m.url,o.href=o.href,m.crossDomain=Ot.protocol+"//"+Ot.host!=o.protocol+"//"+o.host}catch(e){m.crossDomain=!0}}if(m.data&&m.processData&&"string"!=typeof m.data&&(m.data=k.param(m.data,m.traditional)),_t(Ht,m,t,C),h)return C;for(r in(g=k.event&&m.global)&&0==k.active++&&k.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!It.test(m.type),f=m.url.replace(Nt,""),m.hasContent?m.data&&m.processData&&0===(m.contentType||"").indexOf("application/x-www-form-urlencoded")&&(m.data=m.data.replace(At,"+")):(i=m.url.slice(f.length),m.data&&(m.processData||"string"==typeof m.data)&&(f+=(wt.test(f)?"&":"?")+m.data,delete m.data),!1===m.cache&&(f=f.replace(jt,"$1"),i=(wt.test(f)?"&":"?")+"_="+xt+++i),m.url=f+i),m.ifModified&&(k.lastModified[f]&&C.setRequestHeader("If-Modified-Since",k.lastModified[f]),k.etag[f]&&C.setRequestHeader("If-None-Match",k.etag[f])),(m.data&&m.hasContent&&!1!==m.contentType||t.contentType)&&C.setRequestHeader("Content-Type",m.contentType),C.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+Bt+"; q=0.01":""):m.accepts["*"]),m.headers)C.setRequestHeader(r,m.headers[r]);if(m.beforeSend&&(!1===m.beforeSend.call(v,C,m)||h))return C.abort();if(u="abort",x.add(m.complete),C.done(m.success),C.fail(m.error),c=_t(Lt,m,t,C)){if(C.readyState=1,g&&y.trigger("ajaxSend",[C,m]),h)return C;m.async&&0<m.timeout&&(p=T.setTimeout(function(){C.abort("timeout")},m.timeout));try{h=!1,c.send(s,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,o){var r,i,s,a,u,l=t;h||(h=!0,p&&T.clearTimeout(p),c=void 0,d=o||"",C.readyState=0<e?4:0,r=200<=e&&e<300||304===e,n&&(a=function(e,t,n){for(var o,r,i,s,a=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===o&&(o=e.mimeType||t.getResponseHeader("Content-Type"));if(o)for(r in a)if(a[r]&&a[r].test(o)){u.unshift(r);break}if(u[0]in n)i=u[0];else{for(r in n){if(!u[0]||e.converters[r+" "+u[0]]){i=r;break}s||(s=r)}i=i||s}if(i)return i!==u[0]&&u.unshift(i),n[i]}(m,C,n)),a=function(e,t,n,o){var r,i,s,a,u,l={},c=e.dataTypes.slice();if(c[1])for(s in e.converters)l[s.toLowerCase()]=e.converters[s];for(i=c.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!u&&o&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=i,i=c.shift())if("*"===i)i=u;else if("*"!==u&&u!==i){if(!(s=l[u+" "+i]||l["* "+i]))for(r in l)if((a=r.split(" "))[1]===i&&(s=l[u+" "+a[0]]||l["* "+a[0]])){!0===s?s=l[r]:!0!==l[r]&&(i=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+u+" to "+i}}}return{state:"success",data:t}}(m,a,C,r),r?(m.ifModified&&((u=C.getResponseHeader("Last-Modified"))&&(k.lastModified[f]=u),(u=C.getResponseHeader("etag"))&&(k.etag[f]=u)),204===e||"HEAD"===m.type?l="nocontent":304===e?l="notmodified":(l=a.state,i=a.data,r=!(s=a.error))):(s=l,!e&&l||(l="error",e<0&&(e=0))),C.status=e,C.statusText=(t||l)+"",r?b.resolveWith(v,[i,l,C]):b.rejectWith(v,[C,l,s]),C.statusCode(w),w=void 0,g&&y.trigger(r?"ajaxSuccess":"ajaxError",[C,m,r?i:s]),x.fireWith(v,[C,l]),g&&(y.trigger("ajaxComplete",[C,m]),--k.active||k.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return k.get(e,t,n,"json")},getScript:function(e,t){return k.get(e,void 0,t,"script")}}),k.each(["get","post"],function(e,r){k[r]=function(e,t,n,o){return y(t)&&(o=o||n,n=t,t=void 0),k.ajax(k.extend({url:e,type:r,dataType:o,data:t,success:n},k.isPlainObject(e)&&e))}}),k._evalUrl=function(e){return k.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},k.fn.extend({wrapAll:function(e){var t;return this[0]&&(y(e)&&(e=e.call(this[0])),t=k(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return y(n)?this.each(function(e){k(this).wrapInner(n.call(this,e))}):this.each(function(){var e=k(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=y(t);return this.each(function(e){k(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){k(this).replaceWith(this.childNodes)}),this}}),k.expr.pseudos.hidden=function(e){return!k.expr.pseudos.visible(e)},k.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new T.XMLHttpRequest}catch(e){}};var Rt={0:200,1223:204},Mt=k.ajaxSettings.xhr();v.cors=!!Mt&&"withCredentials"in Mt,v.ajax=Mt=!!Mt,k.ajaxTransport(function(r){var i,s;if(v.cors||Mt&&!r.crossDomain)return{send:function(e,t){var n,o=r.xhr();if(o.open(r.type,r.url,r.async,r.username,r.password),r.xhrFields)for(n in r.xhrFields)o[n]=r.xhrFields[n];for(n in r.mimeType&&o.overrideMimeType&&o.overrideMimeType(r.mimeType),r.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)o.setRequestHeader(n,e[n]);i=function(e){return function(){i&&(i=s=o.onload=o.onerror=o.onabort=o.ontimeout=o.onreadystatechange=null,"abort"===e?o.abort():"error"===e?"number"!=typeof o.status?t(0,"error"):t(o.status,o.statusText):t(Rt[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=i(),s=o.onerror=o.ontimeout=i("error"),void 0!==o.onabort?o.onabort=s:o.onreadystatechange=function(){4===o.readyState&&T.setTimeout(function(){i&&s()})},i=i("abort");try{o.send(r.hasContent&&r.data||null)}catch(e){if(i)throw e}},abort:function(){i&&i()}}}),k.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),k.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 k.globalEval(e),e}}}),k.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),k.ajaxTransport("script",function(n){var o,r;if(n.crossDomain)return{send:function(e,t){o=k("<script>").prop({charset:n.scriptCharset,src:n.url}).on("load error",r=function(e){o.remove(),r=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(o[0])},abort:function(){r&&r()}}});var Ft,$t=[],Ut=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=$t.pop()||k.expando+"_"+xt++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",function(e,t,n){var o,r,i,s=!1!==e.jsonp&&(Ut.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ut.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Ut,"$1"+o):!1!==e.jsonp&&(e.url+=(wt.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return i||k.error(o+" was not called"),i[0]},e.dataTypes[0]="json",r=T[o],T[o]=function(){i=arguments},n.always(function(){void 0===r?k(T).removeProp(o):T[o]=r,e[o]&&(e.jsonpCallback=t.jsonpCallback,$t.push(o)),i&&y(r)&&r(i[0]),i=r=void 0}),"script"}),v.createHTMLDocument=((Ft=E.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ft.childNodes.length),k.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(v.createHTMLDocument?((o=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(o)):t=E),i=!n&&[],(r=N.exec(e))?[t.createElement(r[1])]:(r=ve([e],t,i),i&&i.length&&k(i).remove(),k.merge([],r.childNodes)));var o,r,i},k.fn.load=function(e,t,n){var o,r,i,s=this,a=e.indexOf(" ");return-1<a&&(o=pt(e.slice(a)),e=e.slice(0,a)),y(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),0<s.length&&k.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){i=arguments,s.html(o?k("<div>").append(k.parseHTML(e)).find(o):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,i||[e.responseText,t,e])})}),this},k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){k.fn[t]=function(e){return this.on(t,e)}}),k.expr.pseudos.animated=function(t){return k.grep(k.timers,function(e){return t===e.elem}).length},k.offset={setOffset:function(e,t,n){var o,r,i,s,a,u,l=k.css(e,"position"),c=k(e),f={};"static"===l&&(e.style.position="relative"),a=c.offset(),i=k.css(e,"top"),u=k.css(e,"left"),r=("absolute"===l||"fixed"===l)&&-1<(i+u).indexOf("auto")?(s=(o=c.position()).top,o.left):(s=parseFloat(i)||0,parseFloat(u)||0),y(t)&&(t=t.call(e,n,k.extend({},a))),null!=t.top&&(f.top=t.top-a.top+s),null!=t.left&&(f.left=t.left-a.left+r),"using"in t?t.using.call(e,f):c.css(f)}},k.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){k.offset.setOffset(this,t,e)});var e,n,o=this[0];return o?o.getClientRects().length?(e=o.getBoundingClientRect(),n=o.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,o=this[0],r={top:0,left:0};if("fixed"===k.css(o,"position"))t=o.getBoundingClientRect();else{for(t=this.offset(),n=o.ownerDocument,e=o.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===k.css(e,"position");)e=e.parentNode;e&&e!==o&&1===e.nodeType&&((r=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),r.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-k.css(o,"marginTop",!0),left:t.left-r.left-k.css(o,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===k.css(e,"position");)e=e.offsetParent;return e||ye})}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var i="pageYOffset"===r;k.fn[t]=function(e){return F(this,function(e,t,n){var o;if(b(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===n)return o?o[r]:e[t];o?o.scrollTo(i?o.pageXOffset:n,i?n:o.pageYOffset):e[t]=n},t,e,arguments.length)}}),k.each(["top","left"],function(e,n){k.cssHooks[n]=Re(v.pixelPosition,function(e,t){if(t)return t=We(e,n),Oe.test(t)?k(e).position()[n]+"px":t})}),k.each({Height:"height",Width:"width"},function(s,a){k.each({padding:"inner"+s,content:a,"":"outer"+s},function(o,i){k.fn[i]=function(e,t){var n=arguments.length&&(o||"boolean"!=typeof e),r=o||(!0===e||!0===t?"margin":"border");return F(this,function(e,t,n){var o;return b(e)?0===i.indexOf("outer")?e["inner"+s]:e.document.documentElement["client"+s]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+s],o["scroll"+s],e.body["offset"+s],o["offset"+s],o["client"+s])):void 0===n?k.css(e,t,r):k.style(e,t,n,r)},a,n?e:void 0,n)}})}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){k.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}}),k.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),k.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,o){return this.on(t,e,n,o)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),k.proxy=function(e,t){var n,o,r;if("string"==typeof t&&(n=e[t],t=e,e=n),y(e))return o=a.call(arguments,2),(r=function(){return e.apply(t||this,o.concat(a.call(arguments)))}).guid=e.guid=e.guid||k.guid++,r},k.holdReady=function(e){e?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=A,k.isFunction=y,k.isWindow=b,k.camelCase=X,k.type=w,k.now=Date.now,k.isNumeric=function(e){var t=k.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return k});var zt=T.jQuery,Xt=T.$;return k.noConflict=function(e){return T.$===k&&(T.$=Xt),e&&T.jQuery===k&&(T.jQuery=zt),k},e||(T.jQuery=T.$=k),k}),"function"!=typeof Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),function(o,t,e,n){"use strict";var r={_positionClasses:["bottom-left","bottom-right","top-right","top-left","bottom-center","top-center","mid-center"],_defaultIcons:["success","error","info","warning"],init:function(e,t){this.prepareOptions(e,o.toast.options),this.process()},prepareOptions:function(e,t){var n={};"string"==typeof e||e instanceof Array?n.text=e:n=e,this.options=o.extend({},t,n)},process:function(){this.setup(),this.addToDom(),this.position(),this.bindToast(),this.animate()},setup:function(){var e="";if(this._toastEl=this._toastEl||o("<div></div>",{class:"jq-toast-single"}),e+='<span class="jq-toast-loader"></span>',this.options.allowToastClose&&(e+='<span class="close-jq-toast-single">&times;</span>'),this.options.text instanceof Array){this.options.heading&&(e+='<h2 class="jq-toast-heading">'+this.options.heading+"</h2>"),e+='<ul class="jq-toast-ul">';for(var t=0;t<this.options.text.length;t++)e+='<li class="jq-toast-li" id="jq-toast-item-'+t+'">'+this.options.text[t]+"</li>";e+="</ul>"}else this.options.heading&&(e+='<h2 class="jq-toast-heading">'+this.options.heading+"</h2>"),e+=this.options.text;this._toastEl.html(e),!1!==this.options.bgColor&&this._toastEl.css("background-color",this.options.bgColor),!1!==this.options.textColor&&this._toastEl.css("color",this.options.textColor),this.options.textAlign&&this._toastEl.css("text-align",this.options.textAlign),!1!==this.options.icon&&(this._toastEl.addClass("jq-has-icon"),-1!==o.inArray(this.options.icon,this._defaultIcons)&&this._toastEl.addClass("jq-icon-"+this.options.icon)),!1!==this.options.class&&this._toastEl.addClass(this.options.class)},position:function(){"string"==typeof this.options.position&&-1!==o.inArray(this.options.position,this._positionClasses)?"bottom-center"===this.options.position?this._container.css({left:o(t).outerWidth()/2-this._container.outerWidth()/2,bottom:20}):"top-center"===this.options.position?this._container.css({left:o(t).outerWidth()/2-this._container.outerWidth()/2,top:20}):"mid-center"===this.options.position?this._container.css({left:o(t).outerWidth()/2-this._container.outerWidth()/2,top:o(t).outerHeight()/2-this._container.outerHeight()/2}):this._container.addClass(this.options.position):"object"==typeof this.options.position?this._container.css({top:this.options.position.top?this.options.position.top:"auto",bottom:this.options.position.bottom?this.options.position.bottom:"auto",left:this.options.position.left?this.options.position.left:"auto",right:this.options.position.right?this.options.position.right:"auto"}):this._container.addClass("bottom-left")},bindToast:function(){var t=this;this._toastEl.on("afterShown",function(){t.processLoader()}),this._toastEl.find(".close-jq-toast-single").on("click",function(e){e.preventDefault(),"fade"===t.options.showHideTransition?(t._toastEl.trigger("beforeHide"),t._toastEl.fadeOut(function(){t._toastEl.trigger("afterHidden")})):"slide"===t.options.showHideTransition?(t._toastEl.trigger("beforeHide"),t._toastEl.slideUp(function(){t._toastEl.trigger("afterHidden")})):(t._toastEl.trigger("beforeHide"),t._toastEl.hide(function(){t._toastEl.trigger("afterHidden")}))}),"function"==typeof this.options.beforeShow&&this._toastEl.on("beforeShow",function(){t.options.beforeShow()}),"function"==typeof this.options.afterShown&&this._toastEl.on("afterShown",function(){t.options.afterShown()}),"function"==typeof this.options.beforeHide&&this._toastEl.on("beforeHide",function(){t.options.beforeHide()}),"function"==typeof this.options.afterHidden&&this._toastEl.on("afterHidden",function(){t.options.afterHidden()})},addToDom:function(){var e=o(".jq-toast-wrap");if(0===e.length?(e=o("<div></div>",{class:"jq-toast-wrap"}),o("body").append(e)):(!this.options.stack||isNaN(parseInt(this.options.stack,10)))&&e.empty(),e.find(".jq-toast-single:hidden").remove(),e.append(this._toastEl),this.options.stack&&!isNaN(parseInt(this.options.stack),10)){var t=e.find(".jq-toast-single").length-this.options.stack;0<t&&o(".jq-toast-wrap").find(".jq-toast-single").slice(0,t).remove()}this._container=e},canAutoHide:function(){return!1!==this.options.hideAfter&&!isNaN(parseInt(this.options.hideAfter,10))},processLoader:function(){if(!this.canAutoHide()||!1===this.options.loader)return!1;var e=this._toastEl.find(".jq-toast-loader"),t=(this.options.hideAfter-400)/1e3+"s",n=this.options.loaderBg,o=e.attr("style")||"";o=o.substring(0,o.indexOf("-webkit-transition")),o+="-webkit-transition: width "+t+" ease-in;                       -o-transition: width "+t+" ease-in;                       transition: width "+t+" ease-in;                       background-color: "+n+";",e.attr("style",o).addClass("jq-toast-loaded")},animate:function(){var e=this;if(this._toastEl.hide(),this._toastEl.trigger("beforeShow"),"fade"===this.options.showHideTransition.toLowerCase()?this._toastEl.fadeIn(function(){e._toastEl.trigger("afterShown")}):"slide"===this.options.showHideTransition.toLowerCase()?this._toastEl.slideDown(function(){e._toastEl.trigger("afterShown")}):this._toastEl.show(function(){e._toastEl.trigger("afterShown")}),this.canAutoHide()){e=this;t.setTimeout(function(){"fade"===e.options.showHideTransition.toLowerCase()?(e._toastEl.trigger("beforeHide"),e._toastEl.fadeOut(function(){e._toastEl.trigger("afterHidden")})):"slide"===e.options.showHideTransition.toLowerCase()?(e._toastEl.trigger("beforeHide"),e._toastEl.slideUp(function(){e._toastEl.trigger("afterHidden")})):(e._toastEl.trigger("beforeHide"),e._toastEl.hide(function(){e._toastEl.trigger("afterHidden")}))},this.options.hideAfter)}},reset:function(e){"all"===e?o(".jq-toast-wrap").remove():this._toastEl.remove()},update:function(e){this.prepareOptions(e,this.options),this.setup(),this.bindToast()}};o.toast=function(e){var t=Object.create(r);return t.init(e,this),{reset:function(e){t.reset(e)},update:function(e){t.update(e)}}},o.toast.options={text:"",heading:"",showHideTransition:"fade",allowToastClose:!0,hideAfter:3e3,loader:!0,loaderBg:"#9EC600",stack:5,position:"bottom-left",bgColor:!1,textColor:!1,textAlign:"left",icon:!1,beforeShow:function(){},afterShown:function(){},beforeHide:function(){},afterHidden:function(){}}}(jQuery,window,document),Common={redirectToLoginPage:function(){window.location.replace("index.html")},trimEnd:function(e,t){for(;e.charAt(e.length-1)===t;)e=e.substring(0,e.length-1);return e},get:function(e,t,n,o){var r=new XMLHttpRequest;r.onreadystatechange=function(){if(4===this.readyState&&200===this.status&&t)if(""!==this.responseText){var e=JSON.parse(this.responseText);t(e)}else t()},r.onerror=function(){n&&n()},r.open("GET",e,!0),o&&r.setRequestHeader("Authorization",o),r.send()},post:function(e,t,n,o,r){var i=new XMLHttpRequest;i.onreadystatechange=function(){if(4===this.readyState&&200===this.status&&t)if(""!==this.responseText){var e=JSON.parse(this.responseText);t(e)}else t()},i.onerror=function(){n&&n()},i.open("POST",e,!0),r&&i.setRequestHeader("Authorization",r),i.send(JSON.stringify(o))},launchType:function(e){switch(e){case 0:return"Startup";case 1:return"Trigger";case 2:return"Periodic";case 3:return"Cron";default:return""}},status:function(e){switch(e){case 0:return"<img src='images/pending-small.png' /> Pending";case 1:return"<img src='images/running-small.png' /> Running";case 2:return"<img src='images/done-small.png' /> Done";case 3:return"<img src='images/failed-small.png' /> Failed";case 4:return"<img src='images/warning-small.png' /> Warning";case 6:return"<img src='images/stopped-small.png' /> Stopped";case 7:return"<img src='images/disapproved-small.png' /> Disapproved";default:return""}},disableButton:function(e,t){e.disabled=t},formatDate:function(e){return("0"+e.getDate()).slice(-2)+"-"+("0"+(e.getMonth()+1)).slice(-2)+"-"+e.getFullYear()+" "+("0"+e.getHours()).slice(-2)+":"+("0"+e.getMinutes()).slice(-2)+":"+("0"+e.getSeconds()).slice(-2)},os:function(){var e="Unknown";return-1!==window.navigator.userAgent.indexOf("Windows NT 10.0")&&(e="Windows 10"),-1!==window.navigator.userAgent.indexOf("Windows NT 6.2")&&(e="Windows 8"),-1!==window.navigator.userAgent.indexOf("Windows NT 6.1")&&(e="Windows 7"),-1!==window.navigator.userAgent.indexOf("Windows NT 6.0")&&(e="Windows Vista"),-1!==window.navigator.userAgent.indexOf("Windows NT 5.1")&&(e="Windows XP"),-1!==window.navigator.userAgent.indexOf("Windows NT 5.0")&&(e="Windows 2000"),-1!==window.navigator.userAgent.indexOf("Mac")&&(e="Mac/iOS"),-1!==window.navigator.userAgent.indexOf("X11")&&(e="UNIX"),-1!==window.navigator.userAgent.indexOf("Linux")&&(e="Linux"),e},toastInfo:function(e){$.toast({heading:"Information",text:e,hideAfter:5e3,icon:"info"})},toastSuccess:function(e){$.toast({heading:"Success",text:e,hideAfter:5e3,icon:"success"})},toastError:function(e){$.toast({heading:"Error",text:e,hideAfter:5e3,icon:"error"})}};