View file TeraHoster/TeraHoster-WHMCS-theme/js/scripts.min.js

File size: 317.17Kb
function checkAll(t,e){"."!=t[0]&&(t="."+t),jQuery(t).removeAttr("checked"),jQuery(e).is(":checked")&&jQuery(t).click()}function clickableSafeRedirect(t,e,n){var i=t.target.tagName.toLowerCase(),r=t.target.parentNode.tagName.toLowerCase(),o=t.target.parentNode.parentNode.parentNode;return!jQuery(o).hasClass("collapsed")&&void("button"!=i&&"a"!=i&&"button"!=r&&"a"!=r&&(n?window.open(e):window.location.href=e))}function popupWindow(t,e,n,i,r){var o=(screen.width-n)/2,a=(screen.height-i)/2;o<0&&(o=0),a<0&&(a=0);var s="height="+i+",";s+="width="+n+",",s+="top="+a+",",s+="left="+o+",",s+=r,win=window.open(t,e,s),win.window.focus()}function addRenewalToCart(t,e){jQuery("#domainRow"+t).attr("disabled","disabled"),jQuery("#domainRow"+t).find("select,button").attr("disabled","disabled"),jQuery(e).html('<span class="glyphicon glyphicon-shopping-cart"></span> Adding...');var n=jQuery("#renewalPeriod"+t).val();jQuery.post("clientarea.php","addRenewalToCart=1&token="+csrfToken+"&renewID="+t+"&period="+n,function(t){jQuery("#cartItemCount").html(1*jQuery("#cartItemCount").html()+1),jQuery(e).html('<span class="glyphicon glyphicon-shopping-cart"></span> Added'),jQuery("#btnCheckout").fadeIn()})}function selectChangeNavigate(t){window.location.href=$(t).val()}function extraTicketAttachment(){jQuery("#fileUploadsContainer").append('<input type="file" name="attachments[]" class="form-control" />')}function getStats(t){jQuery.post("serverstatus.php","getstats=1&num="+t,function(e){jQuery("#load"+t).html(e.load),jQuery("#uptime"+t).html(e.uptime)},"json")}function checkPort(t,e){jQuery.post("serverstatus.php","ping=1&num="+t+"&port="+e,function(n){jQuery("#port"+e+"_"+t).html(n)})}function getticketsuggestions(){currentcheckcontent=jQuery("#message").val(),currentcheckcontent!=lastcheckcontent&&""!=currentcheckcontent&&(jQuery.post("submitticket.php",{action:"getkbarticles",text:currentcheckcontent},function(t){t&&(jQuery("#searchresults").html(t),jQuery("#searchresults").hide().removeClass("hidden").slideDown())}),lastcheckcontent=currentcheckcontent),setTimeout("getticketsuggestions();",3e3)}function refreshCustomFields(t){jQuery("#customFieldsContainer").load("submitticket.php",{action:"getcustomfields",deptid:$(t).val()})}function autoSubmitFormByContainer(t){jQuery("#"+t).find("form:first").submit()}function useDefaultWhois(t){jQuery("."+t.substr(0,t.length-1)+"customwhois").attr("disabled",!0),jQuery("."+t.substr(0,t.length-1)+"defaultwhois").attr("disabled",!1),jQuery("#"+t.substr(0,t.length-1)+"1").attr("checked","checked")}function useCustomWhois(t){jQuery("."+t.substr(0,t.length-1)+"customwhois").attr("disabled",!1),jQuery("."+t.substr(0,t.length-1)+"defaultwhois").attr("disabled",!0),jQuery("#"+t.substr(0,t.length-1)+"2").attr("checked","checked")}function editBillingAddress(){jQuery("#billingAddressSummary").hide(),jQuery(".cc-billing-address").hide().removeClass("hidden").fadeIn()}function showNewCardInputFields(){jQuery(".cc-details").hasClass("hidden")&&jQuery(".cc-details").hide().removeClass("hidden"),jQuery(".cc-details").slideDown(),jQuery("#btnEditBillingAddress").removeAttr("disabled")}function hideNewCardInputFields(){jQuery(".cc-billing-address").slideUp(),jQuery(".cc-details").slideUp(),jQuery("#btnEditBillingAddress").attr("disabled","disabled"),jQuery("#billingAddressSummary").hasClass("hidden")?jQuery("#billingAddressSummary").hide().removeClass("hidden").slideDown():jQuery("#billingAddressSummary").slideDown()}function getTicketSuggestions(){var t=jQuery("#inputMessage").val();t!=lastTicketMsg&&""!=t&&(jQuery.post("submitticket.php",{action:"getkbarticles",text:t},function(t){t&&(jQuery("#autoAnswerSuggestions").html(t),jQuery("#autoAnswerSuggestions").is(":visible")||jQuery("#autoAnswerSuggestions").hide().removeClass("hidden").slideDown())}),lastTicketMsg=t),setTimeout("getTicketSuggestions()",3e3)}function openModal(t,e,n,i,r,o,a,s){if(jQuery("#modalAjax .modal-title").html(n),i&&jQuery("#modalAjax").children('div[class="modal-dialog"]').addClass(i),r&&jQuery("#modalAjax").addClass(r),r&&jQuery("#modalAjax").addClass(r),o?(jQuery("#modalAjax .modal-submit").show().html(o),a&&jQuery("#modalAjax .modal-submit").attr("id",a)):jQuery("#modalAjax .modal-submit").hide(),s&&jQuery("#modalAjaxClose").hide(),jQuery("#modalAjax .modal-body").html(""),jQuery("#modalSkip").hide(),jQuery("#modalAjax .modal-submit").prop("disabled",!0),jQuery("#modalAjax").modal("show"),jQuery.post(t,e,function(t){updateAjaxModal(t)},"json").fail(function(){jQuery("#modalAjax .modal-body").html("An error occurred while communicating with the server. Please try again."),jQuery("#modalAjax .loader").fadeOut()}),a){var l=jQuery("#"+a);l.off("click"),l.on("click",function(){var t=jQuery("#modalAjax").find("form");jQuery("#modalAjax .loader").show();jQuery.post(t.attr("action"),t.serialize(),function(t){updateAjaxModal(t)},"json").fail(function(){jQuery("#modalAjax .modal-body").html("An error occurred while communicating with the server. Please try again."),jQuery("#modalAjax .loader").fadeOut()})})}}function updateAjaxModal(t){if(t.dismiss&&dialogClose(),t.successMsg&&jQuery.growl.notice({title:t.successMsgTitle,message:t.successMsg}),t.errorMsg&&jQuery.growl.warning({title:t.errorMsgTitle,message:t.errorMsg}),t.title&&jQuery("#modalAjax .modal-title").html(t.title),t.body?jQuery("#modalAjax .modal-body").html(t.body):t.url&&jQuery.post(t.url,"",function(t){jQuery("#modalAjax").find(".modal-body").html(t.body)},"json").fail(function(){jQuery("#modalAjax").find(".modal-body").html("An error occurred while communicating with the server. Please try again."),jQuery("#modalAjax").find(".loader").fadeOut()}),t.submitlabel&&(jQuery("#modalAjax .modal-submit").html(t.submitlabel).show(),t.submitId&&jQuery("#modalAjax").find(".modal-submit").attr("id",t.submitId)),t.submitId){var e=jQuery("#"+t.submitId);e.off("click"),e.on("click",function(){var t=jQuery("#modalAjax").find("form");jQuery("#modalAjax .loader").show();jQuery.post(t.attr("action"),t.serialize(),function(t){updateAjaxModal(t)},"json").fail(function(){jQuery("#modalAjax .modal-body").html("An error occurred while communicating with the server. Please try again."),jQuery("#modalAjax .loader").fadeOut()})})}jQuery("#modalAjax .loader").fadeOut(),jQuery("#modalAjax .modal-submit").removeProp("disabled")}function dialogSubmit(){jQuery("#modalAjax .modal-submit").prop("disabled",!0),jQuery("#modalAjax .loader").show(),jQuery.post("",jQuery("#modalAjax").find("form").serialize(),function(t){updateAjaxModal(t)},"json").fail(function(){jQuery("#modalAjax .modal-body").html("An error occurred while communicating with the server. Please try again."),jQuery("#modalAjax .loader").fadeOut()})}function dialogClose(){jQuery("#modalAjax").modal("hide")}if(function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){function n(t){var e=!!t&&"length"in t&&t.length,n=pt.type(t);return"function"!==n&&!pt.isWindow(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function i(t,e,n){if(pt.isFunction(e))return pt.grep(t,function(t,i){return!!e.call(t,i,t)!==n});if(e.nodeType)return pt.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(St.test(e))return pt.filter(e,t,n);e=pt.filter(e,t)}return pt.grep(t,function(t){return pt.inArray(t,e)>-1!==n})}function r(t,e){do t=t[e];while(t&&1!==t.nodeType);return t}function o(t){var e={};return pt.each(t.match($t)||[],function(t,n){e[n]=!0}),e}function a(){it.addEventListener?(it.removeEventListener("DOMContentLoaded",s),t.removeEventListener("load",s)):(it.detachEvent("onreadystatechange",s),t.detachEvent("onload",s))}function s(){(it.addEventListener||"load"===t.event.type||"complete"===it.readyState)&&(a(),pt.ready())}function l(t,e,n){if(void 0===n&&1===t.nodeType){var i="data-"+e.replace(Nt,"-$1").toLowerCase();if(n=t.getAttribute(i),"string"==typeof n){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:Et.test(n)?pt.parseJSON(n):n)}catch(t){}pt.data(t,e,n)}else n=void 0}return n}function c(t){var e;for(e in t)if(("data"!==e||!pt.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function u(t,e,n,i){if(Lt(t)){var r,o,a=pt.expando,s=t.nodeType,l=s?pt.cache:t,c=s?t[a]:t[a]&&a;if(c&&l[c]&&(i||l[c].data)||void 0!==n||"string"!=typeof e)return c||(c=s?t[a]=nt.pop()||pt.guid++:a),l[c]||(l[c]=s?{}:{toJSON:pt.noop}),"object"!=typeof e&&"function"!=typeof e||(i?l[c]=pt.extend(l[c],e):l[c].data=pt.extend(l[c].data,e)),o=l[c],i||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[pt.camelCase(e)]=n),"string"==typeof e?(r=o[e],null==r&&(r=o[pt.camelCase(e)])):r=o,r}}function d(t,e,n){if(Lt(t)){var i,r,o=t.nodeType,a=o?pt.cache:t,s=o?t[pt.expando]:pt.expando;if(a[s]){if(e&&(i=n?a[s]:a[s].data)){pt.isArray(e)?e=e.concat(pt.map(e,pt.camelCase)):e in i?e=[e]:(e=pt.camelCase(e),e=e in i?[e]:e.split(" ")),r=e.length;for(;r--;)delete i[e[r]];if(n?!c(i):!pt.isEmptyObject(i))return}(n||(delete a[s].data,c(a[s])))&&(o?pt.cleanData([t],!0):dt.deleteExpando||a!=a.window?delete a[s]:a[s]=void 0)}}}function h(t,e,n,i){var r,o=1,a=20,s=i?function(){return i.cur()}:function(){return pt.css(t,e,"")},l=s(),c=n&&n[3]||(pt.cssNumber[e]?"":"px"),u=(pt.cssNumber[e]||"px"!==c&&+l)&&Ht.exec(pt.css(t,e));if(u&&u[3]!==c){c=c||u[3],n=n||[],u=+l||1;do o=o||".5",u/=o,pt.style(t,e,u+c);while(o!==(o=s()/l)&&1!==o&&--a)}return n&&(u=+u||+l||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=r)),r}function p(t){var e=zt.split("|"),n=t.createDocumentFragment();if(n.createElement)for(;e.length;)n.createElement(e.pop());return n}function f(t,e){var n,i,r=0,o="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll(e||"*"):void 0;if(!o)for(o=[],n=t.childNodes||t;null!=(i=n[r]);r++)!e||pt.nodeName(i,e)?o.push(i):pt.merge(o,f(i,e));return void 0===e||e&&pt.nodeName(t,e)?pt.merge([t],o):o}function g(t,e){for(var n,i=0;null!=(n=t[i]);i++)pt._data(n,"globalEval",!e||pt._data(e[i],"globalEval"))}function m(t){Qt.test(t.type)&&(t.defaultChecked=t.checked)}function v(t,e,n,i,r){for(var o,a,s,l,c,u,d,h=t.length,v=p(e),b=[],y=0;y<h;y++)if(a=t[y],a||0===a)if("object"===pt.type(a))pt.merge(b,a.nodeType?[a]:a);else if(Ut.test(a)){for(l=l||v.appendChild(e.createElement("div")),c=(Mt.exec(a)||["",""])[1].toLowerCase(),d=qt[c]||qt._default,l.innerHTML=d[1]+pt.htmlPrefilter(a)+d[2],o=d[0];o--;)l=l.lastChild;if(!dt.leadingWhitespace&&Wt.test(a)&&b.push(e.createTextNode(Wt.exec(a)[0])),!dt.tbody)for(a="table"!==c||Vt.test(a)?"<table>"!==d[1]||Vt.test(a)?0:l:l.firstChild,o=a&&a.childNodes.length;o--;)pt.nodeName(u=a.childNodes[o],"tbody")&&!u.childNodes.length&&a.removeChild(u);for(pt.merge(b,l.childNodes),l.textContent="";l.firstChild;)l.removeChild(l.firstChild);l=v.lastChild}else b.push(e.createTextNode(a));for(l&&v.removeChild(l),dt.appendChecked||pt.grep(f(b,"input"),m),y=0;a=b[y++];)if(i&&pt.inArray(a,i)>-1)r&&r.push(a);else if(s=pt.contains(a.ownerDocument,a),l=f(v.appendChild(a),"script"),s&&g(l),n)for(o=0;a=l[o++];)Bt.test(a.type||"")&&n.push(a);return l=null,v}function b(){return!0}function y(){return!1}function w(){try{return it.activeElement}catch(t){}}function x(t,e,n,i,r,o){var a,s;if("object"==typeof e){"string"!=typeof n&&(i=i||n,n=void 0);for(s in e)x(t,s,n,i,e[s],o);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),r===!1)r=y;else if(!r)return t;return 1===o&&(a=r,r=function(t){return pt().off(t),a.apply(this,arguments)},r.guid=a.guid||(a.guid=pt.guid++)),t.each(function(){pt.event.add(this,e,r,i,n)})}function C(t,e){return pt.nodeName(t,"table")&&pt.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function S(t){return t.type=(null!==pt.find.attr(t,"type"))+"/"+t.type,t}function T(t){var e=re.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function k(t,e){if(1===e.nodeType&&pt.hasData(t)){var n,i,r,o=pt._data(t),a=pt._data(e,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(i=0,r=s[n].length;i<r;i++)pt.event.add(e,n,s[n][i])}a.data&&(a.data=pt.extend({},a.data))}}function D(t,e){var n,i,r;if(1===e.nodeType){if(n=e.nodeName.toLowerCase(),!dt.noCloneEvent&&e[pt.expando]){r=pt._data(e);for(i in r.events)pt.removeEvent(e,i,r.handle);e.removeAttribute(pt.expando)}"script"===n&&e.text!==t.text?(S(e).text=t.text,T(e)):"object"===n?(e.parentNode&&(e.outerHTML=t.outerHTML),dt.html5Clone&&t.innerHTML&&!pt.trim(e.innerHTML)&&(e.innerHTML=t.innerHTML)):"input"===n&&Qt.test(t.type)?(e.defaultChecked=e.checked=t.checked,e.value!==t.value&&(e.value=t.value)):"option"===n?e.defaultSelected=e.selected=t.defaultSelected:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}}function _(t,e,n,i){e=ot.apply([],e);var r,o,a,s,l,c,u=0,d=t.length,h=d-1,p=e[0],g=pt.isFunction(p);if(g||d>1&&"string"==typeof p&&!dt.checkClone&&ie.test(p))return t.each(function(r){var o=t.eq(r);g&&(e[0]=p.call(this,r,o.html())),_(o,e,n,i)});if(d&&(c=v(e,t[0].ownerDocument,!1,t,i),r=c.firstChild,1===c.childNodes.length&&(c=r),r||i)){for(s=pt.map(f(c,"script"),S),a=s.length;u<d;u++)o=c,u!==h&&(o=pt.clone(o,!0,!0),a&&pt.merge(s,f(o,"script"))),n.call(t[u],o,u);if(a)for(l=s[s.length-1].ownerDocument,pt.map(s,T),u=0;u<a;u++)o=s[u],Bt.test(o.type||"")&&!pt._data(o,"globalEval")&&pt.contains(l,o)&&(o.src?pt._evalUrl&&pt._evalUrl(o.src):pt.globalEval((o.text||o.textContent||o.innerHTML||"").replace(oe,"")));c=r=null}return t}function j(t,e,n){for(var i,r=e?pt.filter(e,t):t,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||pt.cleanData(f(i)),i.parentNode&&(n&&pt.contains(i.ownerDocument,i)&&g(f(i,"script")),i.parentNode.removeChild(i));return t}function $(t,e){var n=pt(e.createElement(t)).appendTo(e.body),i=pt.css(n[0],"display");return n.detach(),i}function A(t){var e=it,n=ce[t];return n||(n=$(t,e),"none"!==n&&n||(le=(le||pt("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=(le[0].contentWindow||le[0].contentDocument).document,e.write(),e.close(),n=$(t,e),le.detach()),ce[t]=n),n}function I(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function L(t){if(t in Te)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=Se.length;n--;)if(t=Se[n]+e,t in Te)return t}function E(t,e){for(var n,i,r,o=[],a=0,s=t.length;a<s;a++)i=t[a],i.style&&(o[a]=pt._data(i,"olddisplay"),n=i.style.display,e?(o[a]||"none"!==n||(i.style.display=""),""===i.style.display&&Rt(i)&&(o[a]=pt._data(i,"olddisplay",A(i.nodeName)))):(r=Rt(i),(n&&"none"!==n||!r)&&pt._data(i,"olddisplay",r?n:pt.css(i,"display"))));for(a=0;a<s;a++)i=t[a],i.style&&(e&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=e?o[a]||"":"none"));return t}function N(t,e,n){var i=we.exec(e);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):e}function P(t,e,n,i,r){for(var o=n===(i?"border":"content")?4:"width"===e?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=pt.css(t,n+Ot[o],!0,r)),i?("content"===n&&(a-=pt.css(t,"padding"+Ot[o],!0,r)),"margin"!==n&&(a-=pt.css(t,"border"+Ot[o]+"Width",!0,r))):(a+=pt.css(t,"padding"+Ot[o],!0,r),"padding"!==n&&(a+=pt.css(t,"border"+Ot[o]+"Width",!0,r)));return a}function H(t,e,n){var i=!0,r="width"===e?t.offsetWidth:t.offsetHeight,o=fe(t),a=dt.boxSizing&&"border-box"===pt.css(t,"boxSizing",!1,o);if(r<=0||null==r){if(r=ge(t,e,o),(r<0||null==r)&&(r=t.style[e]),de.test(r))return r;i=a&&(dt.boxSizingReliable()||r===t.style[e]),r=parseFloat(r)||0}return r+P(t,e,n||(a?"border":"content"),i,o)+"px"}function O(t,e,n,i,r){return new O.prototype.init(t,e,n,i,r)}function R(){return t.setTimeout(function(){ke=void 0}),ke=pt.now()}function F(t,e){var n,i={height:t},r=0;for(e=e?1:0;r<4;r+=2-e)n=Ot[r],i["margin"+n]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function Q(t,e,n){for(var i,r=(W.tweeners[e]||[]).concat(W.tweeners["*"]),o=0,a=r.length;o<a;o++)if(i=r[o].call(n,e,t))return i}function M(t,e,n){var i,r,o,a,s,l,c,u,d=this,h={},p=t.style,f=t.nodeType&&Rt(t),g=pt._data(t,"fxshow");n.queue||(s=pt._queueHooks(t,"fx"),null==s.unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,d.always(function(){d.always(function(){s.unqueued--,pt.queue(t,"fx").length||s.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],c=pt.css(t,"display"),u="none"===c?pt._data(t,"olddisplay")||A(t.nodeName):c,"inline"===u&&"none"===pt.css(t,"float")&&(dt.inlineBlockNeedsLayout&&"inline"!==A(t.nodeName)?p.zoom=1:p.display="inline-block")),n.overflow&&(p.overflow="hidden",dt.shrinkWrapBlocks()||d.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(i in e)if(r=e[i],_e.exec(r)){if(delete e[i],o=o||"toggle"===r,r===(f?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;f=!0}h[i]=g&&g[i]||pt.style(t,i)}else c=void 0;if(pt.isEmptyObject(h))"inline"===("none"===c?A(t.nodeName):c)&&(p.display=c);else{g?"hidden"in g&&(f=g.hidden):g=pt._data(t,"fxshow",{}),o&&(g.hidden=!f),f?pt(t).show():d.done(function(){pt(t).hide()}),d.done(function(){var e;pt._removeData(t,"fxshow");for(e in h)pt.style(t,e,h[e])});for(i in h)a=Q(f?g[i]:0,i,d),i in g||(g[i]=a.start,f&&(a.end=a.start,a.start="width"===i||"height"===i?1:0))}}function B(t,e){var n,i,r,o,a;for(n in t)if(i=pt.camelCase(n),r=e[i],o=t[n],pt.isArray(o)&&(r=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),a=pt.cssHooks[i],a&&"expand"in a){o=a.expand(o),delete t[i];for(n in o)n in t||(t[n]=o[n],e[n]=r)}else e[i]=r}function W(t,e,n){var i,r,o=0,a=W.prefilters.length,s=pt.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=ke||R(),n=Math.max(0,c.startTime+c.duration-e),i=n/c.duration||0,o=1-i,a=0,l=c.tweens.length;a<l;a++)c.tweens[a].run(o);return s.notifyWith(t,[c,o,n]),o<1&&l?n:(s.resolveWith(t,[c]),!1)},c=s.promise({elem:t,props:pt.extend({},e),opts:pt.extend(!0,{specialEasing:{},easing:pt.easing._default},n),originalProperties:e,originalOptions:n,startTime:ke||R(),duration:n.duration,tweens:[],createTween:function(e,n){var i=pt.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(i),i},stop:function(e){var n=0,i=e?c.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)c.tweens[n].run(1);return e?(s.notifyWith(t,[c,1,0]),s.resolveWith(t,[c,e])):s.rejectWith(t,[c,e]),this}}),u=c.props;for(B(u,c.opts.specialEasing);o<a;o++)if(i=W.prefilters[o].call(c,t,u,c.opts))return pt.isFunction(i.stop)&&(pt._queueHooks(c.elem,c.opts.queue).stop=pt.proxy(i.stop,i)),i;return pt.map(u,Q,c),pt.isFunction(c.opts.start)&&c.opts.start.call(t,c),pt.fx.timer(pt.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function z(t){return pt.attr(t,"class")||""}function q(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,o=e.toLowerCase().match($t)||[];if(pt.isFunction(n))for(;i=o[r++];)"+"===i.charAt(0)?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function U(t,e,n,i){function r(s){var l;return o[s]=!0,pt.each(t[s]||[],function(t,s){var c=s(e,n,i);return"string"!=typeof c||a||o[c]?a?!(l=c):void 0:(e.dataTypes.unshift(c),r(c),!1)}),l}var o={},a=t===Ye;return r(e.dataTypes[0])||!o["*"]&&r("*")}function V(t,e){var n,i,r=pt.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((r[i]?t:n||(n={}))[i]=e[i]);return n&&pt.extend(!0,t,n),t}function X(t,e,n){for(var i,r,o,a,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(a in s)if(s[a]&&s[a].test(r)){l.unshift(a);break}if(l[0]in n)o=l[0];else{for(a in n){if(!l[0]||t.converters[a+" "+l[0]]){o=a;break}i||(i=a)}o=o||i}if(o)return o!==l[0]&&l.unshift(o),n[o]}function J(t,e,n,i){var r,o,a,s,l,c={},u=t.dataTypes.slice();if(u[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];for(o=u.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(a=c[l+" "+o]||c["* "+o],!a)for(r in c)if(s=r.split(" "),s[1]===o&&(a=c[l+" "+s[0]]||c["* "+s[0]])){a===!0?a=c[r]:c[r]!==!0&&(o=s[0],u.unshift(s[1]));break}if(a!==!0)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}function G(t){return t.style&&t.style.display||pt.css(t,"display")}function K(t){if(!pt.contains(t.ownerDocument||it,t))return!0;for(;t&&1===t.nodeType;){if("none"===G(t)||"hidden"===t.type)return!0;t=t.parentNode}return!1}function Y(t,e,n,i){var r;if(pt.isArray(e))pt.each(e,function(e,r){n||rn.test(t)?i(t,r):Y(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,n,i)});else if(n||"object"!==pt.type(e))i(t,e);else for(r in e)Y(t+"["+r+"]",e[r],n,i)}function Z(){try{return new t.XMLHttpRequest}catch(t){}}function tt(){try{return new t.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function et(t){return pt.isWindow(t)?t:9===t.nodeType&&(t.defaultView||t.parentWindow)}var nt=[],it=t.document,rt=nt.slice,ot=nt.concat,at=nt.push,st=nt.indexOf,lt={},ct=lt.toString,ut=lt.hasOwnProperty,dt={},ht="1.12.4",pt=function(t,e){return new pt.fn.init(t,e)},ft=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,gt=/^-ms-/,mt=/-([\da-z])/gi,vt=function(t,e){return e.toUpperCase()};pt.fn=pt.prototype={jquery:ht,constructor:pt,selector:"",length:0,toArray:function(){return rt.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:rt.call(this)},pushStack:function(t){var e=pt.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t){return pt.each(this,t)},map:function(t){return this.pushStack(pt.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(rt.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:at,sort:nt.sort,splice:nt.splice},pt.extend=pt.fn.extend=function(){var t,e,n,i,r,o,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||pt.isFunction(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(r=arguments[s]))for(i in r)t=a[i],n=r[i],a!==n&&(c&&n&&(pt.isPlainObject(n)||(e=pt.isArray(n)))?(e?(e=!1,o=t&&pt.isArray(t)?t:[]):o=t&&pt.isPlainObject(t)?t:{},a[i]=pt.extend(c,o,n)):void 0!==n&&(a[i]=n));return a},pt.extend({expando:"jQuery"+(ht+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===pt.type(t)},isArray:Array.isArray||function(t){return"array"===pt.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){var e=t&&t.toString();return!pt.isArray(t)&&e-parseFloat(e)+1>=0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},isPlainObject:function(t){var e;if(!t||"object"!==pt.type(t)||t.nodeType||pt.isWindow(t))return!1;try{if(t.constructor&&!ut.call(t,"constructor")&&!ut.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}if(!dt.ownFirst)for(e in t)return ut.call(t,e);for(e in t);return void 0===e||ut.call(t,e)},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?lt[ct.call(t)]||"object":typeof t},globalEval:function(e){e&&pt.trim(e)&&(t.execScript||function(e){t.eval.call(t,e)})(e)},camelCase:function(t){return t.replace(gt,"ms-").replace(mt,vt)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var i,r=0;if(n(t))for(i=t.length;r<i&&e.call(t[r],r,t[r])!==!1;r++);else for(r in t)if(e.call(t[r],r,t[r])===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(ft,"")},makeArray:function(t,e){var i=e||[];return null!=t&&(n(Object(t))?pt.merge(i,"string"==typeof t?[t]:t):at.call(i,t)),i},inArray:function(t,e,n){var i;if(e){if(st)return st.call(e,t,n);for(i=e.length,n=n?n<0?Math.max(0,i+n):n:0;n<i;n++)if(n in e&&e[n]===t)return n}return-1},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;)t[r++]=e[i++];if(n!==n)for(;void 0!==e[i];)t[r++]=e[i++];return t.length=r,t},grep:function(t,e,n){for(var i,r=[],o=0,a=t.length,s=!n;o<a;o++)i=!e(t[o],o),i!==s&&r.push(t[o]);return r},map:function(t,e,i){var r,o,a=0,s=[];if(n(t))for(r=t.length;a<r;a++)o=e(t[a],a,i),null!=o&&s.push(o);else for(a in t)o=e(t[a],a,i),null!=o&&s.push(o);return ot.apply([],s)},guid:1,proxy:function(t,e){var n,i,r;if("string"==typeof e&&(r=t[e],e=t,t=r),pt.isFunction(t))return n=rt.call(arguments,2),i=function(){return t.apply(e||this,n.concat(rt.call(arguments)))},i.guid=t.guid=t.guid||pt.guid++,i},now:function(){return+new Date},support:dt}),"function"==typeof Symbol&&(pt.fn[Symbol.iterator]=nt[Symbol.iterator]),pt.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){lt["[object "+e+"]"]=e.toLowerCase()});var bt=function(t){function e(t,e,n,i){var r,o,a,s,l,c,d,p,f=e&&e.ownerDocument,g=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==g&&9!==g&&11!==g)return n;if(!i&&((e?e.ownerDocument||e:Q)!==L&&I(e),e=e||L,N)){if(11!==g&&(c=vt.exec(t)))if(r=c[1]){if(9===g){if(!(a=e.getElementById(r)))return n;if(a.id===r)return n.push(a),n}else if(f&&(a=f.getElementById(r))&&R(e,a)&&a.id===r)return n.push(a),n}else{if(c[2])return Y.apply(n,e.getElementsByTagName(t)),n;if((r=c[3])&&x.getElementsByClassName&&e.getElementsByClassName)return Y.apply(n,e.getElementsByClassName(r)),n}if(x.qsa&&!q[t+" "]&&(!P||!P.test(t))){if(1!==g)f=e,p=t;else if("object"!==e.nodeName.toLowerCase()){for((s=e.getAttribute("id"))?s=s.replace(yt,"\\$&"):e.setAttribute("id",s=F),d=k(t),o=d.length,l=ht.test(s)?"#"+s:"[id='"+s+"']";o--;)d[o]=l+" "+h(d[o]);p=d.join(","),f=bt.test(t)&&u(e.parentNode)||e}if(p)try{return Y.apply(n,f.querySelectorAll(p)),n}catch(t){}finally{s===F&&e.removeAttribute("id")}}}return _(t.replace(st,"$1"),e,n,i)}function n(){function t(n,i){return e.push(n+" ")>C.cacheLength&&delete t[e.shift()],t[n+" "]=i}var e=[];return t}function i(t){return t[F]=!0,t}function r(t){var e=L.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var n=t.split("|"),i=n.length;i--;)C.attrHandle[n[i]]=e}function a(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||V)-(~t.sourceIndex||V);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function s(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function l(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function c(t){return i(function(e){return e=+e,i(function(n,i){for(var r,o=t([],n.length,e),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))})})}function u(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function d(){}function h(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function p(t,e,n){var i=e.dir,r=n&&"parentNode"===i,o=B++;return e.first?function(e,n,o){for(;e=e[i];)if(1===e.nodeType||r)return t(e,n,o)}:function(e,n,a){var s,l,c,u=[M,o];if(a){for(;e=e[i];)if((1===e.nodeType||r)&&t(e,n,a))return!0}else for(;e=e[i];)if(1===e.nodeType||r){if(c=e[F]||(e[F]={}),l=c[e.uniqueID]||(c[e.uniqueID]={}),(s=l[i])&&s[0]===M&&s[1]===o)return u[2]=s[2];if(l[i]=u,u[2]=t(e,n,a))return!0}}}function f(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function g(t,n,i){for(var r=0,o=n.length;r<o;r++)e(t,n[r],i);return i}function m(t,e,n,i,r){for(var o,a=[],s=0,l=t.length,c=null!=e;s<l;s++)(o=t[s])&&(n&&!n(o,i,r)||(a.push(o),c&&e.push(s)));return a}function v(t,e,n,r,o,a){return r&&!r[F]&&(r=v(r)),o&&!o[F]&&(o=v(o,a)),i(function(i,a,s,l){var c,u,d,h=[],p=[],f=a.length,v=i||g(e||"*",s.nodeType?[s]:s,[]),b=!t||!i&&e?v:m(v,h,t,s,l),y=n?o||(i?t:f||r)?[]:a:b;if(n&&n(b,y,s,l),r)for(c=m(y,p),r(c,[],s,l),u=c.length;u--;)(d=c[u])&&(y[p[u]]=!(b[p[u]]=d));if(i){if(o||t){if(o){for(c=[],u=y.length;u--;)(d=y[u])&&c.push(b[u]=d);o(null,y=[],c,l)}for(u=y.length;u--;)(d=y[u])&&(c=o?tt(i,d):h[u])>-1&&(i[c]=!(a[c]=d))}}else y=m(y===a?y.splice(f,y.length):y),o?o(null,a,y,l):Y.apply(a,y)})}function b(t){for(var e,n,i,r=t.length,o=C.relative[t[0].type],a=o||C.relative[" "],s=o?1:0,l=p(function(t){return t===e},a,!0),c=p(function(t){return tt(e,t)>-1},a,!0),u=[function(t,n,i){var r=!o&&(i||n!==j)||((e=n).nodeType?l(t,n,i):c(t,n,i));return e=null,r}];s<r;s++)if(n=C.relative[t[s].type])u=[p(f(u),n)];else{if(n=C.filter[t[s].type].apply(null,t[s].matches),n[F]){for(i=++s;i<r&&!C.relative[t[i].type];i++);return v(s>1&&f(u),s>1&&h(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(st,"$1"),n,s<i&&b(t.slice(s,i)),i<r&&b(t=t.slice(i)),i<r&&h(t))}u.push(n)}return f(u)}function y(t,n){var r=n.length>0,o=t.length>0,a=function(i,a,s,l,c){var u,d,h,p=0,f="0",g=i&&[],v=[],b=j,y=i||o&&C.find.TAG("*",c),w=M+=null==b?1:Math.random()||.1,x=y.length;for(c&&(j=a===L||a||c);f!==x&&null!=(u=y[f]);f++){if(o&&u){for(d=0,a||u.ownerDocument===L||(I(u),s=!N);h=t[d++];)if(h(u,a||L,s)){l.push(u);break}c&&(M=w)}r&&((u=!h&&u)&&p--,i&&g.push(u))}if(p+=f,r&&f!==p){for(d=0;h=n[d++];)h(g,v,a,s);if(i){if(p>0)for(;f--;)g[f]||v[f]||(v[f]=G.call(l));v=m(v)}Y.apply(l,v),c&&!i&&v.length>0&&p+n.length>1&&e.uniqueSort(l)}return c&&(M=w,j=b),g};return r?i(a):a}var w,x,C,S,T,k,D,_,j,$,A,I,L,E,N,P,H,O,R,F="sizzle"+1*new Date,Q=t.document,M=0,B=0,W=n(),z=n(),q=n(),U=function(t,e){return t===e&&(A=!0),0},V=1<<31,X={}.hasOwnProperty,J=[],G=J.pop,K=J.push,Y=J.push,Z=J.slice,tt=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},et="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",nt="[\\x20\\t\\r\\n\\f]",it="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",rt="\\["+nt+"*("+it+")(?:"+nt+"*([*^$|!~]?=)"+nt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+it+"))|)"+nt+"*\\]",ot=":("+it+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+rt+")*)|.*)\\)|)",at=new RegExp(nt+"+","g"),st=new RegExp("^"+nt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+nt+"+$","g"),lt=new RegExp("^"+nt+"*,"+nt+"*"),ct=new RegExp("^"+nt+"*([>+~]|"+nt+")"+nt+"*"),ut=new RegExp("="+nt+"*([^\\]'\"]*?)"+nt+"*\\]","g"),dt=new RegExp(ot),ht=new RegExp("^"+it+"$"),pt={ID:new RegExp("^#("+it+")"),CLASS:new RegExp("^\\.("+it+")"),TAG:new RegExp("^("+it+"|[*])"),ATTR:new RegExp("^"+rt),PSEUDO:new RegExp("^"+ot),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+nt+"*(even|odd|(([+-]|)(\\d*)n|)"+nt+"*(?:([+-]|)"+nt+"*(\\d+)|))"+nt+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+nt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+nt+"*((?:-\\d)?\\d*)"+nt+"*\\)|)(?=[^-]|$)","i")},ft=/^(?:input|select|textarea|button)$/i,gt=/^h\d$/i,mt=/^[^{]+\{\s*\[native \w/,vt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,bt=/[+~]/,yt=/'|\\/g,wt=new RegExp("\\\\([\\da-f]{1,6}"+nt+"?|("+nt+")|.)","ig"),xt=function(t,e,n){var i="0x"+e-65536;return i!==i||n?e:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},Ct=function(){I()};try{Y.apply(J=Z.call(Q.childNodes),Q.childNodes),J[Q.childNodes.length].nodeType}catch(t){Y={apply:J.length?function(t,e){K.apply(t,Z.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}x=e.support={},T=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},I=e.setDocument=function(t){var e,n,i=t?t.ownerDocument||t:Q;
return i!==L&&9===i.nodeType&&i.documentElement?(L=i,E=L.documentElement,N=!T(L),(n=L.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Ct,!1):n.attachEvent&&n.attachEvent("onunload",Ct)),x.attributes=r(function(t){return t.className="i",!t.getAttribute("className")}),x.getElementsByTagName=r(function(t){return t.appendChild(L.createComment("")),!t.getElementsByTagName("*").length}),x.getElementsByClassName=mt.test(L.getElementsByClassName),x.getById=r(function(t){return E.appendChild(t).id=F,!L.getElementsByName||!L.getElementsByName(F).length}),x.getById?(C.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&N){var n=e.getElementById(t);return n?[n]:[]}},C.filter.ID=function(t){var e=t.replace(wt,xt);return function(t){return t.getAttribute("id")===e}}):(delete C.find.ID,C.filter.ID=function(t){var e=t.replace(wt,xt);return function(t){var n="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}}),C.find.TAG=x.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):x.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],r=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},C.find.CLASS=x.getElementsByClassName&&function(t,e){if("undefined"!=typeof e.getElementsByClassName&&N)return e.getElementsByClassName(t)},H=[],P=[],(x.qsa=mt.test(L.querySelectorAll))&&(r(function(t){E.appendChild(t).innerHTML="<a id='"+F+"'></a><select id='"+F+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&P.push("[*^$]="+nt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||P.push("\\["+nt+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+F+"-]").length||P.push("~="),t.querySelectorAll(":checked").length||P.push(":checked"),t.querySelectorAll("a#"+F+"+*").length||P.push(".#.+[+~]")}),r(function(t){var e=L.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&P.push("name"+nt+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||P.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),P.push(",.*:")})),(x.matchesSelector=mt.test(O=E.matches||E.webkitMatchesSelector||E.mozMatchesSelector||E.oMatchesSelector||E.msMatchesSelector))&&r(function(t){x.disconnectedMatch=O.call(t,"div"),O.call(t,"[s!='']:x"),H.push("!=",ot)}),P=P.length&&new RegExp(P.join("|")),H=H.length&&new RegExp(H.join("|")),e=mt.test(E.compareDocumentPosition),R=e||mt.test(E.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},U=e?function(t,e){if(t===e)return A=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n?n:(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!x.sortDetached&&e.compareDocumentPosition(t)===n?t===L||t.ownerDocument===Q&&R(Q,t)?-1:e===L||e.ownerDocument===Q&&R(Q,e)?1:$?tt($,t)-tt($,e):0:4&n?-1:1)}:function(t,e){if(t===e)return A=!0,0;var n,i=0,r=t.parentNode,o=e.parentNode,s=[t],l=[e];if(!r||!o)return t===L?-1:e===L?1:r?-1:o?1:$?tt($,t)-tt($,e):0;if(r===o)return a(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)l.unshift(n);for(;s[i]===l[i];)i++;return i?a(s[i],l[i]):s[i]===Q?-1:l[i]===Q?1:0},L):L},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==L&&I(t),n=n.replace(ut,"='$1']"),x.matchesSelector&&N&&!q[n+" "]&&(!H||!H.test(n))&&(!P||!P.test(n)))try{var i=O.call(t,n);if(i||x.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){}return e(n,L,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==L&&I(t),R(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==L&&I(t);var n=C.attrHandle[e.toLowerCase()],i=n&&X.call(C.attrHandle,e.toLowerCase())?n(t,e,!N):void 0;return void 0!==i?i:x.attributes||!N?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],i=0,r=0;if(A=!x.detectDuplicates,$=!x.sortStable&&t.slice(0),t.sort(U),A){for(;e=t[r++];)e===t[r]&&(i=n.push(r));for(;i--;)t.splice(n[i],1)}return $=null,t},S=e.getText=function(t){var e,n="",i=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=S(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[i++];)n+=S(e);return n},C=e.selectors={cacheLength:50,createPseudo:i,match:pt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(wt,xt),t[3]=(t[3]||t[4]||t[5]||"").replace(wt,xt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return pt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&dt.test(n)&&(e=k(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(wt,xt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=W[t+" "];return e||(e=new RegExp("(^|"+nt+")"+t+"("+nt+"|$)"))&&W(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(r){var o=e.attr(r,t);return null==o?"!="===n:!n||(o+="","="===n?o===i:"!="===n?o!==i:"^="===n?i&&0===o.indexOf(i):"*="===n?i&&o.indexOf(i)>-1:"$="===n?i&&o.slice(-i.length)===i:"~="===n?(" "+o.replace(at," ")+" ").indexOf(i)>-1:"|="===n&&(o===i||o.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,n,i,r){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var c,u,d,h,p,f,g=o!==a?"nextSibling":"previousSibling",m=e.parentNode,v=s&&e.nodeName.toLowerCase(),b=!l&&!s,y=!1;if(m){if(o){for(;g;){for(h=e;h=h[g];)if(s?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;f=g="only"===t&&!f&&"nextSibling"}return!0}if(f=[a?m.firstChild:m.lastChild],a&&b){for(h=m,d=h[F]||(h[F]={}),u=d[h.uniqueID]||(d[h.uniqueID]={}),c=u[t]||[],p=c[0]===M&&c[1],y=p&&c[2],h=p&&m.childNodes[p];h=++p&&h&&h[g]||(y=p=0)||f.pop();)if(1===h.nodeType&&++y&&h===e){u[t]=[M,p,y];break}}else if(b&&(h=e,d=h[F]||(h[F]={}),u=d[h.uniqueID]||(d[h.uniqueID]={}),c=u[t]||[],p=c[0]===M&&c[1],y=p),y===!1)for(;(h=++p&&h&&h[g]||(y=p=0)||f.pop())&&((s?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++y||(b&&(d=h[F]||(h[F]={}),u=d[h.uniqueID]||(d[h.uniqueID]={}),u[t]=[M,y]),h!==e)););return y-=r,y===i||y%i===0&&y/i>=0}}},PSEUDO:function(t,n){var r,o=C.pseudos[t]||C.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[F]?o(n):o.length>1?(r=[t,t,"",n],C.setFilters.hasOwnProperty(t.toLowerCase())?i(function(t,e){for(var i,r=o(t,n),a=r.length;a--;)i=tt(t,r[a]),t[i]=!(e[i]=r[a])}):function(t){return o(t,0,r)}):o}},pseudos:{not:i(function(t){var e=[],n=[],r=D(t.replace(st,"$1"));return r[F]?i(function(t,e,n,i){for(var o,a=r(t,null,i,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))}):function(t,i,o){return e[0]=t,r(e,null,o,n),e[0]=null,!n.pop()}}),has:i(function(t){return function(n){return e(t,n).length>0}}),contains:i(function(t){return t=t.replace(wt,xt),function(e){return(e.textContent||e.innerText||S(e)).indexOf(t)>-1}}),lang:i(function(t){return ht.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(wt,xt).toLowerCase(),function(e){var n;do if(n=N?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return n=n.toLowerCase(),n===t||0===n.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===E},focus:function(t){return t===L.activeElement&&(!L.hasFocus||L.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!0},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!C.pseudos.empty(t)},header:function(t){return gt.test(t.nodeName)},input:function(t){return ft.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:c(function(){return[0]}),last:c(function(t,e){return[e-1]}),eq:c(function(t,e,n){return[n<0?n+e:n]}),even:c(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:c(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:c(function(t,e,n){for(var i=n<0?n+e:n;--i>=0;)t.push(i);return t}),gt:c(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}},C.pseudos.nth=C.pseudos.eq;for(w in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})C.pseudos[w]=s(w);for(w in{submit:!0,reset:!0})C.pseudos[w]=l(w);return d.prototype=C.filters=C.pseudos,C.setFilters=new d,k=e.tokenize=function(t,n){var i,r,o,a,s,l,c,u=z[t+" "];if(u)return n?0:u.slice(0);for(s=t,l=[],c=C.preFilter;s;){i&&!(r=lt.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(o=[])),i=!1,(r=ct.exec(s))&&(i=r.shift(),o.push({value:i,type:r[0].replace(st," ")}),s=s.slice(i.length));for(a in C.filter)!(r=pt[a].exec(s))||c[a]&&!(r=c[a](r))||(i=r.shift(),o.push({value:i,type:a,matches:r}),s=s.slice(i.length));if(!i)break}return n?s.length:s?e.error(t):z(t,l).slice(0)},D=e.compile=function(t,e){var n,i=[],r=[],o=q[t+" "];if(!o){for(e||(e=k(t)),n=e.length;n--;)o=b(e[n]),o[F]?i.push(o):r.push(o);o=q(t,y(r,i)),o.selector=t}return o},_=e.select=function(t,e,n,i){var r,o,a,s,l,c="function"==typeof t&&t,d=!i&&k(t=c.selector||t);if(n=n||[],1===d.length){if(o=d[0]=d[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&x.getById&&9===e.nodeType&&N&&C.relative[o[1].type]){if(e=(C.find.ID(a.matches[0].replace(wt,xt),e)||[])[0],!e)return n;c&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(r=pt.needsContext.test(t)?0:o.length;r--&&(a=o[r],!C.relative[s=a.type]);)if((l=C.find[s])&&(i=l(a.matches[0].replace(wt,xt),bt.test(o[0].type)&&u(e.parentNode)||e))){if(o.splice(r,1),t=i.length&&h(o),!t)return Y.apply(n,i),n;break}}return(c||D(t,d))(i,e,!N,n,!e||bt.test(t)&&u(e.parentNode)||e),n},x.sortStable=F.split("").sort(U).join("")===F,x.detectDuplicates=!!A,I(),x.sortDetached=r(function(t){return 1&t.compareDocumentPosition(L.createElement("div"))}),r(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),x.attributes&&r(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),r(function(t){return null==t.getAttribute("disabled")})||o(et,function(t,e,n){var i;if(!n)return t[e]===!0?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),e}(t);pt.find=bt,pt.expr=bt.selectors,pt.expr[":"]=pt.expr.pseudos,pt.uniqueSort=pt.unique=bt.uniqueSort,pt.text=bt.getText,pt.isXMLDoc=bt.isXML,pt.contains=bt.contains;var yt=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&pt(t).is(n))break;i.push(t)}return i},wt=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},xt=pt.expr.match.needsContext,Ct=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,St=/^.[^:#\[\.,]*$/;pt.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?pt.find.matchesSelector(i,t)?[i]:[]:pt.find.matches(t,pt.grep(e,function(t){return 1===t.nodeType}))},pt.fn.extend({find:function(t){var e,n=[],i=this,r=i.length;if("string"!=typeof t)return this.pushStack(pt(t).filter(function(){for(e=0;e<r;e++)if(pt.contains(i[e],this))return!0}));for(e=0;e<r;e++)pt.find(t,i[e],n);return n=this.pushStack(r>1?pt.unique(n):n),n.selector=this.selector?this.selector+" "+t:t,n},filter:function(t){return this.pushStack(i(this,t||[],!1))},not:function(t){return this.pushStack(i(this,t||[],!0))},is:function(t){return!!i(this,"string"==typeof t&&xt.test(t)?pt(t):t||[],!1).length}});var Tt,kt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,Dt=pt.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||Tt,"string"==typeof t){if(i="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:kt.exec(t),!i||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof pt?e[0]:e,pt.merge(this,pt.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:it,!0)),Ct.test(i[1])&&pt.isPlainObject(e))for(i in e)pt.isFunction(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}if(r=it.getElementById(i[2]),r&&r.parentNode){if(r.id!==i[2])return Tt.find(t);this.length=1,this[0]=r}return this.context=it,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):pt.isFunction(t)?"undefined"!=typeof n.ready?n.ready(t):t(pt):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),pt.makeArray(t,this))};Dt.prototype=pt.fn,Tt=pt(it);var _t=/^(?:parents|prev(?:Until|All))/,jt={children:!0,contents:!0,next:!0,prev:!0};pt.fn.extend({has:function(t){var e,n=pt(t,this),i=n.length;return this.filter(function(){for(e=0;e<i;e++)if(pt.contains(this,n[e]))return!0})},closest:function(t,e){for(var n,i=0,r=this.length,o=[],a=xt.test(t)||"string"!=typeof t?pt(t,e||this.context):0;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&pt.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?pt.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?pt.inArray(this[0],pt(t)):pt.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(pt.uniqueSort(pt.merge(this.get(),pt(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),pt.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return yt(t,"parentNode")},parentsUntil:function(t,e,n){return yt(t,"parentNode",n)},next:function(t){return r(t,"nextSibling")},prev:function(t){return r(t,"previousSibling")},nextAll:function(t){return yt(t,"nextSibling")},prevAll:function(t){return yt(t,"previousSibling")},nextUntil:function(t,e,n){return yt(t,"nextSibling",n)},prevUntil:function(t,e,n){return yt(t,"previousSibling",n)},siblings:function(t){return wt((t.parentNode||{}).firstChild,t)},children:function(t){return wt(t.firstChild)},contents:function(t){return pt.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:pt.merge([],t.childNodes)}},function(t,e){pt.fn[t]=function(n,i){var r=pt.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=pt.filter(i,r)),this.length>1&&(jt[t]||(r=pt.uniqueSort(r)),_t.test(t)&&(r=r.reverse())),this.pushStack(r)}});var $t=/\S+/g;pt.Callbacks=function(t){t="string"==typeof t?o(t):pt.extend({},t);var e,n,i,r,a=[],s=[],l=-1,c=function(){for(r=t.once,i=e=!0;s.length;l=-1)for(n=s.shift();++l<a.length;)a[l].apply(n[0],n[1])===!1&&t.stopOnFalse&&(l=a.length,n=!1);t.memory||(n=!1),e=!1,r&&(a=n?[]:"")},u={add:function(){return a&&(n&&!e&&(l=a.length-1,s.push(n)),function e(n){pt.each(n,function(n,i){pt.isFunction(i)?t.unique&&u.has(i)||a.push(i):i&&i.length&&"string"!==pt.type(i)&&e(i)})}(arguments),n&&!e&&c()),this},remove:function(){return pt.each(arguments,function(t,e){for(var n;(n=pt.inArray(e,a,n))>-1;)a.splice(n,1),n<=l&&l--}),this},has:function(t){return t?pt.inArray(t,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return r=s=[],a=n="",this},disabled:function(){return!a},lock:function(){return r=!0,n||u.disable(),this},locked:function(){return!!r},fireWith:function(t,n){return r||(n=n||[],n=[t,n.slice?n.slice():n],s.push(n),e||c()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},pt.extend({Deferred:function(t){var e=[["resolve","done",pt.Callbacks("once memory"),"resolved"],["reject","fail",pt.Callbacks("once memory"),"rejected"],["notify","progress",pt.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var t=arguments;return pt.Deferred(function(n){pt.each(e,function(e,o){var a=pt.isFunction(t[e])&&t[e];r[o[1]](function(){var t=a&&a.apply(this,arguments);t&&pt.isFunction(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this===i?n.promise():this,a?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?pt.extend(t,i):i}},r={};return i.pipe=i.then,pt.each(e,function(t,o){var a=o[2],s=o[3];i[o[1]]=a.add,s&&a.add(function(){n=s},e[1^t][2].disable,e[2][2].lock),r[o[0]]=function(){return r[o[0]+"With"](this===r?i:this,arguments),this},r[o[0]+"With"]=a.fireWith}),i.promise(r),t&&t.call(r,r),r},when:function(t){var e,n,i,r=0,o=rt.call(arguments),a=o.length,s=1!==a||t&&pt.isFunction(t.promise)?a:0,l=1===s?t:pt.Deferred(),c=function(t,n,i){return function(r){n[t]=this,i[t]=arguments.length>1?rt.call(arguments):r,i===e?l.notifyWith(n,i):--s||l.resolveWith(n,i)}};if(a>1)for(e=new Array(a),n=new Array(a),i=new Array(a);r<a;r++)o[r]&&pt.isFunction(o[r].promise)?o[r].promise().progress(c(r,n,e)).done(c(r,i,o)).fail(l.reject):--s;return s||l.resolveWith(i,o),l.promise()}});var At;pt.fn.ready=function(t){return pt.ready.promise().done(t),this},pt.extend({isReady:!1,readyWait:1,holdReady:function(t){t?pt.readyWait++:pt.ready(!0)},ready:function(t){(t===!0?--pt.readyWait:pt.isReady)||(pt.isReady=!0,t!==!0&&--pt.readyWait>0||(At.resolveWith(it,[pt]),pt.fn.triggerHandler&&(pt(it).triggerHandler("ready"),pt(it).off("ready"))))}}),pt.ready.promise=function(e){if(!At)if(At=pt.Deferred(),"complete"===it.readyState||"loading"!==it.readyState&&!it.documentElement.doScroll)t.setTimeout(pt.ready);else if(it.addEventListener)it.addEventListener("DOMContentLoaded",s),t.addEventListener("load",s);else{it.attachEvent("onreadystatechange",s),t.attachEvent("onload",s);var n=!1;try{n=null==t.frameElement&&it.documentElement}catch(t){}n&&n.doScroll&&!function e(){if(!pt.isReady){try{n.doScroll("left")}catch(n){return t.setTimeout(e,50)}a(),pt.ready()}}()}return At.promise(e)},pt.ready.promise();var It;for(It in pt(dt))break;dt.ownFirst="0"===It,dt.inlineBlockNeedsLayout=!1,pt(function(){var t,e,n,i;n=it.getElementsByTagName("body")[0],n&&n.style&&(e=it.createElement("div"),i=it.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(e),"undefined"!=typeof e.style.zoom&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",dt.inlineBlockNeedsLayout=t=3===e.offsetWidth,t&&(n.style.zoom=1)),n.removeChild(i))}),function(){var t=it.createElement("div");dt.deleteExpando=!0;try{delete t.test}catch(t){dt.deleteExpando=!1}t=null}();var Lt=function(t){var e=pt.noData[(t.nodeName+" ").toLowerCase()],n=+t.nodeType||1;return(1===n||9===n)&&(!e||e!==!0&&t.getAttribute("classid")===e)},Et=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Nt=/([A-Z])/g;pt.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return t=t.nodeType?pt.cache[t[pt.expando]]:t[pt.expando],!!t&&!c(t)},data:function(t,e,n){return u(t,e,n)},removeData:function(t,e){return d(t,e)},_data:function(t,e,n){return u(t,e,n,!0)},_removeData:function(t,e){return d(t,e,!0)}}),pt.fn.extend({data:function(t,e){var n,i,r,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(r=pt.data(o),1===o.nodeType&&!pt._data(o,"parsedAttrs"))){for(n=a.length;n--;)a[n]&&(i=a[n].name,0===i.indexOf("data-")&&(i=pt.camelCase(i.slice(5)),l(o,i,r[i])));pt._data(o,"parsedAttrs",!0)}return r}return"object"==typeof t?this.each(function(){pt.data(this,t)}):arguments.length>1?this.each(function(){pt.data(this,t,e)}):o?l(o,t,pt.data(o,t)):void 0},removeData:function(t){return this.each(function(){pt.removeData(this,t)})}}),pt.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=pt._data(t,e),n&&(!i||pt.isArray(n)?i=pt._data(t,e,pt.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=pt.queue(t,e),i=n.length,r=n.shift(),o=pt._queueHooks(t,e),a=function(){pt.dequeue(t,e)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,a,o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return pt._data(t,n)||pt._data(t,n,{empty:pt.Callbacks("once memory").add(function(){pt._removeData(t,e+"queue"),pt._removeData(t,n)})})}}),pt.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?pt.queue(this[0],t):void 0===e?this:this.each(function(){var n=pt.queue(this,t,e);pt._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&pt.dequeue(this,t)})},dequeue:function(t){return this.each(function(){pt.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=pt.Deferred(),o=this,a=this.length,s=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)n=pt._data(o[a],t+"queueHooks"),n&&n.empty&&(i++,n.empty.add(s));return s(),r.promise(e)}}),function(){var t;dt.shrinkWrapBlocks=function(){if(null!=t)return t;t=!1;var e,n,i;return n=it.getElementsByTagName("body")[0],n&&n.style?(e=it.createElement("div"),i=it.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(e),"undefined"!=typeof e.style.zoom&&(e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",e.appendChild(it.createElement("div")).style.width="5px",t=3!==e.offsetWidth),n.removeChild(i),t):void 0}}();var Pt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ht=new RegExp("^(?:([+-])=|)("+Pt+")([a-z%]*)$","i"),Ot=["Top","Right","Bottom","Left"],Rt=function(t,e){return t=e||t,"none"===pt.css(t,"display")||!pt.contains(t.ownerDocument,t)},Ft=function(t,e,n,i,r,o,a){var s=0,l=t.length,c=null==n;if("object"===pt.type(n)){r=!0;for(s in n)Ft(t,e,s,n[s],!0,o,a)}else if(void 0!==i&&(r=!0,pt.isFunction(i)||(a=!0),c&&(a?(e.call(t,i),e=null):(c=e,e=function(t,e,n){return c.call(pt(t),n)})),e))for(;s<l;s++)e(t[s],n,a?i:i.call(t[s],s,e(t[s],n)));return r?t:c?e.call(t):l?e(t[0],n):o},Qt=/^(?:checkbox|radio)$/i,Mt=/<([\w:-]+)/,Bt=/^$|\/(?:java|ecma)script/i,Wt=/^\s+/,zt="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";!function(){var t=it.createElement("div"),e=it.createDocumentFragment(),n=it.createElement("input");t.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",dt.leadingWhitespace=3===t.firstChild.nodeType,dt.tbody=!t.getElementsByTagName("tbody").length,dt.htmlSerialize=!!t.getElementsByTagName("link").length,dt.html5Clone="<:nav></:nav>"!==it.createElement("nav").cloneNode(!0).outerHTML,n.type="checkbox",n.checked=!0,e.appendChild(n),dt.appendChecked=n.checked,t.innerHTML="<textarea>x</textarea>",dt.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,e.appendChild(t),n=it.createElement("input"),n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),dt.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,dt.noCloneEvent=!!t.addEventListener,t[pt.expando]=1,dt.attributes=!t.getAttribute(pt.expando)}();var qt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:dt.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};qt.optgroup=qt.option,qt.tbody=qt.tfoot=qt.colgroup=qt.caption=qt.thead,qt.th=qt.td;var Ut=/<|&#?\w+;/,Vt=/<tbody/i;!function(){var e,n,i=it.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})n="on"+e,(dt[e]=n in t)||(i.setAttribute(n,"t"),dt[e]=i.attributes[n].expando===!1);i=null}();var Xt=/^(?:input|select|textarea)$/i,Jt=/^key/,Gt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Kt=/^(?:focusinfocus|focusoutblur)$/,Yt=/^([^.]*)(?:\.(.+)|)/;pt.event={global:{},add:function(t,e,n,i,r){var o,a,s,l,c,u,d,h,p,f,g,m=pt._data(t);if(m){for(n.handler&&(l=n,n=l.handler,r=l.selector),n.guid||(n.guid=pt.guid++),(a=m.events)||(a=m.events={}),(u=m.handle)||(u=m.handle=function(t){return"undefined"==typeof pt||t&&pt.event.triggered===t.type?void 0:pt.event.dispatch.apply(u.elem,arguments)},u.elem=t),e=(e||"").match($t)||[""],s=e.length;s--;)o=Yt.exec(e[s])||[],p=g=o[1],f=(o[2]||"").split(".").sort(),p&&(c=pt.event.special[p]||{},p=(r?c.delegateType:c.bindType)||p,c=pt.event.special[p]||{},d=pt.extend({type:p,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&pt.expr.match.needsContext.test(r),namespace:f.join(".")},l),(h=a[p])||(h=a[p]=[],h.delegateCount=0,c.setup&&c.setup.call(t,i,f,u)!==!1||(t.addEventListener?t.addEventListener(p,u,!1):t.attachEvent&&t.attachEvent("on"+p,u))),c.add&&(c.add.call(t,d),d.handler.guid||(d.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,d):h.push(d),pt.event.global[p]=!0);t=null}},remove:function(t,e,n,i,r){var o,a,s,l,c,u,d,h,p,f,g,m=pt.hasData(t)&&pt._data(t);if(m&&(u=m.events)){for(e=(e||"").match($t)||[""],c=e.length;c--;)if(s=Yt.exec(e[c])||[],p=g=s[1],f=(s[2]||"").split(".").sort(),p){for(d=pt.event.special[p]||{},p=(i?d.delegateType:d.bindType)||p,h=u[p]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=h.length;o--;)a=h[o],!r&&g!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||i&&i!==a.selector&&("**"!==i||!a.selector)||(h.splice(o,1),a.selector&&h.delegateCount--,d.remove&&d.remove.call(t,a));l&&!h.length&&(d.teardown&&d.teardown.call(t,f,m.handle)!==!1||pt.removeEvent(t,p,m.handle),delete u[p])}else for(p in u)pt.event.remove(t,p+e[c],n,i,!0);pt.isEmptyObject(u)&&(delete m.handle,pt._removeData(t,"events"))}},trigger:function(e,n,i,r){var o,a,s,l,c,u,d,h=[i||it],p=ut.call(e,"type")?e.type:e,f=ut.call(e,"namespace")?e.namespace.split("."):[];if(s=u=i=i||it,3!==i.nodeType&&8!==i.nodeType&&!Kt.test(p+pt.event.triggered)&&(p.indexOf(".")>-1&&(f=p.split("."),p=f.shift(),f.sort()),a=p.indexOf(":")<0&&"on"+p,e=e[pt.expando]?e:new pt.Event(p,"object"==typeof e&&e),e.isTrigger=r?2:3,e.namespace=f.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),n=null==n?[e]:pt.makeArray(n,[e]),c=pt.event.special[p]||{},r||!c.trigger||c.trigger.apply(i,n)!==!1)){if(!r&&!c.noBubble&&!pt.isWindow(i)){for(l=c.delegateType||p,Kt.test(l+p)||(s=s.parentNode);s;s=s.parentNode)h.push(s),u=s;u===(i.ownerDocument||it)&&h.push(u.defaultView||u.parentWindow||t)}for(d=0;(s=h[d++])&&!e.isPropagationStopped();)e.type=d>1?l:c.bindType||p,o=(pt._data(s,"events")||{})[e.type]&&pt._data(s,"handle"),o&&o.apply(s,n),o=a&&s[a],o&&o.apply&&Lt(s)&&(e.result=o.apply(s,n),e.result===!1&&e.preventDefault());if(e.type=p,!r&&!e.isDefaultPrevented()&&(!c._default||c._default.apply(h.pop(),n)===!1)&&Lt(i)&&a&&i[p]&&!pt.isWindow(i)){u=i[a],u&&(i[a]=null),pt.event.triggered=p;try{i[p]()}catch(t){}pt.event.triggered=void 0,u&&(i[a]=u)}return e.result}},dispatch:function(t){t=pt.event.fix(t);var e,n,i,r,o,a=[],s=rt.call(arguments),l=(pt._data(this,"events")||{})[t.type]||[],c=pt.event.special[t.type]||{};if(s[0]=t,t.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,t)!==!1){for(a=pt.event.handlers.call(this,t,l),e=0;(r=a[e++])&&!t.isPropagationStopped();)for(t.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(o.namespace)||(t.handleObj=o,t.data=o.data,i=((pt.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s),void 0!==i&&(t.result=i)===!1&&(t.preventDefault(),t.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,i,r,o,a=[],s=e.delegateCount,l=t.target;if(s&&l.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(l.disabled!==!0||"click"!==t.type)){for(i=[],n=0;n<s;n++)o=e[n],r=o.selector+" ",void 0===i[r]&&(i[r]=o.needsContext?pt(r,this).index(l)>-1:pt.find(r,this,null,[l]).length),i[r]&&i.push(o);i.length&&a.push({elem:l,handlers:i})}return s<e.length&&a.push({elem:this,handlers:e.slice(s)}),a},fix:function(t){if(t[pt.expando])return t;var e,n,i,r=t.type,o=t,a=this.fixHooks[r];for(a||(this.fixHooks[r]=a=Gt.test(r)?this.mouseHooks:Jt.test(r)?this.keyHooks:{}),i=a.props?this.props.concat(a.props):this.props,t=new pt.Event(o),e=i.length;e--;)n=i[e],t[n]=o[n];return t.target||(t.target=o.srcElement||it),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey=!!t.metaKey,a.filter?a.filter(t,o):t},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,i,r,o=e.button,a=e.fromElement;return null==t.pageX&&null!=e.clientX&&(i=t.target.ownerDocument||it,r=i.documentElement,n=i.body,t.pageX=e.clientX+(r&&r.scrollLeft||n&&n.scrollLeft||0)-(r&&r.clientLeft||n&&n.clientLeft||0),t.pageY=e.clientY+(r&&r.scrollTop||n&&n.scrollTop||0)-(r&&r.clientTop||n&&n.clientTop||0)),!t.relatedTarget&&a&&(t.relatedTarget=a===t.target?e.toElement:a),t.which||void 0===o||(t.which=1&o?1:2&o?3:4&o?2:0),t}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==w()&&this.focus)try{return this.focus(),!1}catch(t){}},delegateType:"focusin"},blur:{trigger:function(){if(this===w()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(pt.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(t){return pt.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n){var i=pt.extend(new pt.Event,n,{type:t,isSimulated:!0});pt.event.trigger(i,null,e),i.isDefaultPrevented()&&n.preventDefault()}},pt.removeEvent=it.removeEventListener?function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)}:function(t,e,n){var i="on"+e;t.detachEvent&&("undefined"==typeof t[i]&&(t[i]=null),t.detachEvent(i,n))},pt.Event=function(t,e){return this instanceof pt.Event?(t&&t.type?(this.originalEvent=t,
this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?b:y):this.type=t,e&&pt.extend(this,e),this.timeStamp=t&&t.timeStamp||pt.now(),void(this[pt.expando]=!0)):new pt.Event(t,e)},pt.Event.prototype={constructor:pt.Event,isDefaultPrevented:y,isPropagationStopped:y,isImmediatePropagationStopped:y,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=b,t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=b,t&&!this.isSimulated&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=b,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},pt.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){pt.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=this,r=t.relatedTarget,o=t.handleObj;return r&&(r===i||pt.contains(i,r))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}}),dt.submit||(pt.event.special.submit={setup:function(){return!pt.nodeName(this,"form")&&void pt.event.add(this,"click._submit keypress._submit",function(t){var e=t.target,n=pt.nodeName(e,"input")||pt.nodeName(e,"button")?pt.prop(e,"form"):void 0;n&&!pt._data(n,"submit")&&(pt.event.add(n,"submit._submit",function(t){t._submitBubble=!0}),pt._data(n,"submit",!0))})},postDispatch:function(t){t._submitBubble&&(delete t._submitBubble,this.parentNode&&!t.isTrigger&&pt.event.simulate("submit",this.parentNode,t))},teardown:function(){return!pt.nodeName(this,"form")&&void pt.event.remove(this,"._submit")}}),dt.change||(pt.event.special.change={setup:function(){return Xt.test(this.nodeName)?("checkbox"!==this.type&&"radio"!==this.type||(pt.event.add(this,"propertychange._change",function(t){"checked"===t.originalEvent.propertyName&&(this._justChanged=!0)}),pt.event.add(this,"click._change",function(t){this._justChanged&&!t.isTrigger&&(this._justChanged=!1),pt.event.simulate("change",this,t)})),!1):void pt.event.add(this,"beforeactivate._change",function(t){var e=t.target;Xt.test(e.nodeName)&&!pt._data(e,"change")&&(pt.event.add(e,"change._change",function(t){!this.parentNode||t.isSimulated||t.isTrigger||pt.event.simulate("change",this.parentNode,t)}),pt._data(e,"change",!0))})},handle:function(t){var e=t.target;if(this!==e||t.isSimulated||t.isTrigger||"radio"!==e.type&&"checkbox"!==e.type)return t.handleObj.handler.apply(this,arguments)},teardown:function(){return pt.event.remove(this,"._change"),!Xt.test(this.nodeName)}}),dt.focusin||pt.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){pt.event.simulate(e,t.target,pt.event.fix(t))};pt.event.special[e]={setup:function(){var i=this.ownerDocument||this,r=pt._data(i,e);r||i.addEventListener(t,n,!0),pt._data(i,e,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this,r=pt._data(i,e)-1;r?pt._data(i,e,r):(i.removeEventListener(t,n,!0),pt._removeData(i,e))}}}),pt.fn.extend({on:function(t,e,n,i){return x(this,t,e,n,i)},one:function(t,e,n,i){return x(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,pt(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return e!==!1&&"function"!=typeof e||(n=e,e=void 0),n===!1&&(n=y),this.each(function(){pt.event.remove(this,t,n,e)})},trigger:function(t,e){return this.each(function(){pt.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return pt.event.trigger(t,e,n,!0)}});var Zt=/ jQuery\d+="(?:null|\d+)"/g,te=new RegExp("<(?:"+zt+")[\\s/>]","i"),ee=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ne=/<script|<style|<link/i,ie=/checked\s*(?:[^=]|=\s*.checked.)/i,re=/^true\/(.*)/,oe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ae=p(it),se=ae.appendChild(it.createElement("div"));pt.extend({htmlPrefilter:function(t){return t.replace(ee,"<$1></$2>")},clone:function(t,e,n){var i,r,o,a,s,l=pt.contains(t.ownerDocument,t);if(dt.html5Clone||pt.isXMLDoc(t)||!te.test("<"+t.nodeName+">")?o=t.cloneNode(!0):(se.innerHTML=t.outerHTML,se.removeChild(o=se.firstChild)),!(dt.noCloneEvent&&dt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||pt.isXMLDoc(t)))for(i=f(o),s=f(t),a=0;null!=(r=s[a]);++a)i[a]&&D(r,i[a]);if(e)if(n)for(s=s||f(t),i=i||f(o),a=0;null!=(r=s[a]);a++)k(r,i[a]);else k(t,o);return i=f(o,"script"),i.length>0&&g(i,!l&&f(t,"script")),i=s=r=null,o},cleanData:function(t,e){for(var n,i,r,o,a=0,s=pt.expando,l=pt.cache,c=dt.attributes,u=pt.event.special;null!=(n=t[a]);a++)if((e||Lt(n))&&(r=n[s],o=r&&l[r])){if(o.events)for(i in o.events)u[i]?pt.event.remove(n,i):pt.removeEvent(n,i,o.handle);l[r]&&(delete l[r],c||"undefined"==typeof n.removeAttribute?n[s]=void 0:n.removeAttribute(s),nt.push(r))}}}),pt.fn.extend({domManip:_,detach:function(t){return j(this,t,!0)},remove:function(t){return j(this,t)},text:function(t){return Ft(this,function(t){return void 0===t?pt.text(this):this.empty().append((this[0]&&this[0].ownerDocument||it).createTextNode(t))},null,t,arguments.length)},append:function(){return _(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=C(this,t);e.appendChild(t)}})},prepend:function(){return _(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=C(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return _(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return _(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodeType&&pt.cleanData(f(t,!1));t.firstChild;)t.removeChild(t.firstChild);t.options&&pt.nodeName(t,"select")&&(t.options.length=0)}return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return pt.clone(this,t,e)})},html:function(t){return Ft(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t)return 1===e.nodeType?e.innerHTML.replace(Zt,""):void 0;if("string"==typeof t&&!ne.test(t)&&(dt.htmlSerialize||!te.test(t))&&(dt.leadingWhitespace||!Wt.test(t))&&!qt[(Mt.exec(t)||["",""])[1].toLowerCase()]){t=pt.htmlPrefilter(t);try{for(;n<i;n++)e=this[n]||{},1===e.nodeType&&(pt.cleanData(f(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return _(this,arguments,function(e){var n=this.parentNode;pt.inArray(this,t)<0&&(pt.cleanData(f(this)),n&&n.replaceChild(e,this))},t)}}),pt.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){pt.fn[t]=function(t){for(var n,i=0,r=[],o=pt(t),a=o.length-1;i<=a;i++)n=i===a?this:this.clone(!0),pt(o[i])[e](n),at.apply(r,n.get());return this.pushStack(r)}});var le,ce={HTML:"block",BODY:"block"},ue=/^margin/,de=new RegExp("^("+Pt+")(?!px)[a-z%]+$","i"),he=function(t,e,n,i){var r,o,a={};for(o in e)a[o]=t.style[o],t.style[o]=e[o];r=n.apply(t,i||[]);for(o in e)t.style[o]=a[o];return r},pe=it.documentElement;!function(){function e(){var e,u,d=it.documentElement;d.appendChild(l),c.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",n=r=s=!1,i=a=!0,t.getComputedStyle&&(u=t.getComputedStyle(c),n="1%"!==(u||{}).top,s="2px"===(u||{}).marginLeft,r="4px"===(u||{width:"4px"}).width,c.style.marginRight="50%",i="4px"===(u||{marginRight:"4px"}).marginRight,e=c.appendChild(it.createElement("div")),e.style.cssText=c.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",c.style.width="1px",a=!parseFloat((t.getComputedStyle(e)||{}).marginRight),c.removeChild(e)),c.style.display="none",o=0===c.getClientRects().length,o&&(c.style.display="",c.innerHTML="<table><tr><td></td><td>t</td></tr></table>",c.childNodes[0].style.borderCollapse="separate",e=c.getElementsByTagName("td"),e[0].style.cssText="margin:0;border:0;padding:0;display:none",o=0===e[0].offsetHeight,o&&(e[0].style.display="",e[1].style.display="none",o=0===e[0].offsetHeight)),d.removeChild(l)}var n,i,r,o,a,s,l=it.createElement("div"),c=it.createElement("div");c.style&&(c.style.cssText="float:left;opacity:.5",dt.opacity="0.5"===c.style.opacity,dt.cssFloat=!!c.style.cssFloat,c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",dt.clearCloneStyle="content-box"===c.style.backgroundClip,l=it.createElement("div"),l.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",c.innerHTML="",l.appendChild(c),dt.boxSizing=""===c.style.boxSizing||""===c.style.MozBoxSizing||""===c.style.WebkitBoxSizing,pt.extend(dt,{reliableHiddenOffsets:function(){return null==n&&e(),o},boxSizingReliable:function(){return null==n&&e(),r},pixelMarginRight:function(){return null==n&&e(),i},pixelPosition:function(){return null==n&&e(),n},reliableMarginRight:function(){return null==n&&e(),a},reliableMarginLeft:function(){return null==n&&e(),s}}))}();var fe,ge,me=/^(top|right|bottom|left)$/;t.getComputedStyle?(fe=function(e){var n=e.ownerDocument.defaultView;return n&&n.opener||(n=t),n.getComputedStyle(e)},ge=function(t,e,n){var i,r,o,a,s=t.style;return n=n||fe(t),a=n?n.getPropertyValue(e)||n[e]:void 0,""!==a&&void 0!==a||pt.contains(t.ownerDocument,t)||(a=pt.style(t,e)),n&&!dt.pixelMarginRight()&&de.test(a)&&ue.test(e)&&(i=s.width,r=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=r,s.maxWidth=o),void 0===a?a:a+""}):pe.currentStyle&&(fe=function(t){return t.currentStyle},ge=function(t,e,n){var i,r,o,a,s=t.style;return n=n||fe(t),a=n?n[e]:void 0,null==a&&s&&s[e]&&(a=s[e]),de.test(a)&&!me.test(e)&&(i=s.left,r=t.runtimeStyle,o=r&&r.left,o&&(r.left=t.currentStyle.left),s.left="fontSize"===e?"1em":a,a=s.pixelLeft+"px",s.left=i,o&&(r.left=o)),void 0===a?a:a+""||"auto"});var ve=/alpha\([^)]*\)/i,be=/opacity\s*=\s*([^)]*)/i,ye=/^(none|table(?!-c[ea]).+)/,we=new RegExp("^("+Pt+")(.*)$","i"),xe={position:"absolute",visibility:"hidden",display:"block"},Ce={letterSpacing:"0",fontWeight:"400"},Se=["Webkit","O","Moz","ms"],Te=it.createElement("div").style;pt.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=ge(t,"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:{float:dt.cssFloat?"cssFloat":"styleFloat"},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,a,s=pt.camelCase(e),l=t.style;if(e=pt.cssProps[s]||(pt.cssProps[s]=L(s)||s),a=pt.cssHooks[e]||pt.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(t,!1,i))?r:l[e];if(o=typeof n,"string"===o&&(r=Ht.exec(n))&&r[1]&&(n=h(t,e,r),o="number"),null!=n&&n===n&&("number"===o&&(n+=r&&r[3]||(pt.cssNumber[s]?"":"px")),dt.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),!(a&&"set"in a&&void 0===(n=a.set(t,n,i)))))try{l[e]=n}catch(t){}}},css:function(t,e,n,i){var r,o,a,s=pt.camelCase(e);return e=pt.cssProps[s]||(pt.cssProps[s]=L(s)||s),a=pt.cssHooks[e]||pt.cssHooks[s],a&&"get"in a&&(o=a.get(t,!0,n)),void 0===o&&(o=ge(t,e,i)),"normal"===o&&e in Ce&&(o=Ce[e]),""===n||n?(r=parseFloat(o),n===!0||isFinite(r)?r||0:o):o}}),pt.each(["height","width"],function(t,e){pt.cssHooks[e]={get:function(t,n,i){if(n)return ye.test(pt.css(t,"display"))&&0===t.offsetWidth?he(t,xe,function(){return H(t,e,i)}):H(t,e,i)},set:function(t,n,i){var r=i&&fe(t);return N(t,n,i?P(t,e,i,dt.boxSizing&&"border-box"===pt.css(t,"boxSizing",!1,r),r):0)}}}),dt.opacity||(pt.cssHooks.opacity={get:function(t,e){return be.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":e?"1":""},set:function(t,e){var n=t.style,i=t.currentStyle,r=pt.isNumeric(e)?"alpha(opacity="+100*e+")":"",o=i&&i.filter||n.filter||"";n.zoom=1,(e>=1||""===e)&&""===pt.trim(o.replace(ve,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===e||i&&!i.filter)||(n.filter=ve.test(o)?o.replace(ve,r):o+" "+r)}}),pt.cssHooks.marginRight=I(dt.reliableMarginRight,function(t,e){if(e)return he(t,{display:"inline-block"},ge,[t,"marginRight"])}),pt.cssHooks.marginLeft=I(dt.reliableMarginLeft,function(t,e){if(e)return(parseFloat(ge(t,"marginLeft"))||(pt.contains(t.ownerDocument,t)?t.getBoundingClientRect().left-he(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}):0))+"px"}),pt.each({margin:"",padding:"",border:"Width"},function(t,e){pt.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+Ot[i]+e]=o[i]||o[i-2]||o[0];return r}},ue.test(t)||(pt.cssHooks[t+e].set=N)}),pt.fn.extend({css:function(t,e){return Ft(this,function(t,e,n){var i,r,o={},a=0;if(pt.isArray(e)){for(i=fe(t),r=e.length;a<r;a++)o[e[a]]=pt.css(t,e[a],!1,i);return o}return void 0!==n?pt.style(t,e,n):pt.css(t,e)},t,e,arguments.length>1)},show:function(){return E(this,!0)},hide:function(){return E(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Rt(this)?pt(this).show():pt(this).hide()})}}),pt.Tween=O,O.prototype={constructor:O,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||pt.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(pt.cssNumber[n]?"":"px")},cur:function(){var t=O.propHooks[this.prop];return t&&t.get?t.get(this):O.propHooks._default.get(this)},run:function(t){var e,n=O.propHooks[this.prop];return this.options.duration?this.pos=e=pt.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):O.propHooks._default.set(this),this}},O.prototype.init.prototype=O.prototype,O.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=pt.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){pt.fx.step[t.prop]?pt.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[pt.cssProps[t.prop]]&&!pt.cssHooks[t.prop]?t.elem[t.prop]=t.now:pt.style(t.elem,t.prop,t.now+t.unit)}}},O.propHooks.scrollTop=O.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},pt.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},pt.fx=O.prototype.init,pt.fx.step={};var ke,De,_e=/^(?:toggle|show|hide)$/,je=/queueHooks$/;pt.Animation=pt.extend(W,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return h(n.elem,t,Ht.exec(e),n),n}]},tweener:function(t,e){pt.isFunction(t)?(e=t,t=["*"]):t=t.match($t);for(var n,i=0,r=t.length;i<r;i++)n=t[i],W.tweeners[n]=W.tweeners[n]||[],W.tweeners[n].unshift(e)},prefilters:[M],prefilter:function(t,e){e?W.prefilters.unshift(t):W.prefilters.push(t)}}),pt.speed=function(t,e,n){var i=t&&"object"==typeof t?pt.extend({},t):{complete:n||!n&&e||pt.isFunction(t)&&t,duration:t,easing:n&&e||e&&!pt.isFunction(e)&&e};return i.duration=pt.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in pt.fx.speeds?pt.fx.speeds[i.duration]:pt.fx.speeds._default,null!=i.queue&&i.queue!==!0||(i.queue="fx"),i.old=i.complete,i.complete=function(){pt.isFunction(i.old)&&i.old.call(this),i.queue&&pt.dequeue(this,i.queue)},i},pt.fn.extend({fadeTo:function(t,e,n,i){return this.filter(Rt).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=pt.isEmptyObject(t),o=pt.speed(e,n,i),a=function(){var e=W(this,pt.extend({},t),o);(r||pt._data(this,"finish"))&&e.stop(!0)};return a.finish=a,r||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var e=!0,r=null!=t&&t+"queueHooks",o=pt.timers,a=pt._data(this);if(r)a[r]&&a[r].stop&&i(a[r]);else for(r in a)a[r]&&a[r].stop&&je.test(r)&&i(a[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(n),e=!1,o.splice(r,1));!e&&n||pt.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,n=pt._data(this),i=n[t+"queue"],r=n[t+"queueHooks"],o=pt.timers,a=i?i.length:0;for(n.finish=!0,pt.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),pt.each(["toggle","show","hide"],function(t,e){var n=pt.fn[e];pt.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(F(e,!0),t,i,r)}}),pt.each({slideDown:F("show"),slideUp:F("hide"),slideToggle:F("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){pt.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),pt.timers=[],pt.fx.tick=function(){var t,e=pt.timers,n=0;for(ke=pt.now();n<e.length;n++)t=e[n],t()||e[n]!==t||e.splice(n--,1);e.length||pt.fx.stop(),ke=void 0},pt.fx.timer=function(t){pt.timers.push(t),t()?pt.fx.start():pt.timers.pop()},pt.fx.interval=13,pt.fx.start=function(){De||(De=t.setInterval(pt.fx.tick,pt.fx.interval))},pt.fx.stop=function(){t.clearInterval(De),De=null},pt.fx.speeds={slow:600,fast:200,_default:400},pt.fn.delay=function(e,n){return e=pt.fx?pt.fx.speeds[e]||e:e,n=n||"fx",this.queue(n,function(n,i){var r=t.setTimeout(n,e);i.stop=function(){t.clearTimeout(r)}})},function(){var t,e=it.createElement("input"),n=it.createElement("div"),i=it.createElement("select"),r=i.appendChild(it.createElement("option"));n=it.createElement("div"),n.setAttribute("className","t"),n.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",t=n.getElementsByTagName("a")[0],e.setAttribute("type","checkbox"),n.appendChild(e),t=n.getElementsByTagName("a")[0],t.style.cssText="top:1px",dt.getSetAttribute="t"!==n.className,dt.style=/top/.test(t.getAttribute("style")),dt.hrefNormalized="/a"===t.getAttribute("href"),dt.checkOn=!!e.value,dt.optSelected=r.selected,dt.enctype=!!it.createElement("form").enctype,i.disabled=!0,dt.optDisabled=!r.disabled,e=it.createElement("input"),e.setAttribute("value",""),dt.input=""===e.getAttribute("value"),e.value="t",e.setAttribute("type","radio"),dt.radioValue="t"===e.value}();var $e=/\r/g,Ae=/[\x20\t\r\n\f]+/g;pt.fn.extend({val:function(t){var e,n,i,r=this[0];{if(arguments.length)return i=pt.isFunction(t),this.each(function(n){var r;1===this.nodeType&&(r=i?t.call(this,n,pt(this).val()):t,null==r?r="":"number"==typeof r?r+="":pt.isArray(r)&&(r=pt.map(r,function(t){return null==t?"":t+""})),e=pt.valHooks[this.type]||pt.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))});if(r)return e=pt.valHooks[r.type]||pt.valHooks[r.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:(n=r.value,"string"==typeof n?n.replace($e,""):null==n?"":n)}}}),pt.extend({valHooks:{option:{get:function(t){var e=pt.find.attr(t,"value");return null!=e?e:pt.trim(pt.text(t)).replace(Ae," ")}},select:{get:function(t){for(var e,n,i=t.options,r=t.selectedIndex,o="select-one"===t.type||r<0,a=o?null:[],s=o?r+1:i.length,l=r<0?s:o?r:0;l<s;l++)if(n=i[l],(n.selected||l===r)&&(dt.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!pt.nodeName(n.parentNode,"optgroup"))){if(e=pt(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,i,r=t.options,o=pt.makeArray(e),a=r.length;a--;)if(i=r[a],pt.inArray(pt.valHooks.option.get(i),o)>-1)try{i.selected=n=!0}catch(t){i.scrollHeight}else i.selected=!1;return n||(t.selectedIndex=-1),r}}}}),pt.each(["radio","checkbox"],function(){pt.valHooks[this]={set:function(t,e){if(pt.isArray(e))return t.checked=pt.inArray(pt(t).val(),e)>-1}},dt.checkOn||(pt.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var Ie,Le,Ee=pt.expr.attrHandle,Ne=/^(?:checked|selected)$/i,Pe=dt.getSetAttribute,He=dt.input;pt.fn.extend({attr:function(t,e){return Ft(this,pt.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){pt.removeAttr(this,t)})}}),pt.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof t.getAttribute?pt.prop(t,e,n):(1===o&&pt.isXMLDoc(t)||(e=e.toLowerCase(),r=pt.attrHooks[e]||(pt.expr.match.bool.test(e)?Le:Ie)),void 0!==n?null===n?void pt.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(i=r.get(t,e))?i:(i=pt.find.attr(t,e),null==i?void 0:i))},attrHooks:{type:{set:function(t,e){if(!dt.radioValue&&"radio"===e&&pt.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i,r=0,o=e&&e.match($t);if(o&&1===t.nodeType)for(;n=o[r++];)i=pt.propFix[n]||n,pt.expr.match.bool.test(n)?He&&Pe||!Ne.test(n)?t[i]=!1:t[pt.camelCase("default-"+n)]=t[i]=!1:pt.attr(t,n,""),t.removeAttribute(Pe?n:i)}}),Le={set:function(t,e,n){return e===!1?pt.removeAttr(t,n):He&&Pe||!Ne.test(n)?t.setAttribute(!Pe&&pt.propFix[n]||n,n):t[pt.camelCase("default-"+n)]=t[n]=!0,n}},pt.each(pt.expr.match.bool.source.match(/\w+/g),function(t,e){var n=Ee[e]||pt.find.attr;He&&Pe||!Ne.test(e)?Ee[e]=function(t,e,i){var r,o;return i||(o=Ee[e],Ee[e]=r,r=null!=n(t,e,i)?e.toLowerCase():null,Ee[e]=o),r}:Ee[e]=function(t,e,n){if(!n)return t[pt.camelCase("default-"+e)]?e.toLowerCase():null}}),He&&Pe||(pt.attrHooks.value={set:function(t,e,n){return pt.nodeName(t,"input")?void(t.defaultValue=e):Ie&&Ie.set(t,e,n)}}),Pe||(Ie={set:function(t,e,n){var i=t.getAttributeNode(n);if(i||t.setAttributeNode(i=t.ownerDocument.createAttribute(n)),i.value=e+="","value"===n||e===t.getAttribute(n))return e}},Ee.id=Ee.name=Ee.coords=function(t,e,n){var i;if(!n)return(i=t.getAttributeNode(e))&&""!==i.value?i.value:null},pt.valHooks.button={get:function(t,e){var n=t.getAttributeNode(e);if(n&&n.specified)return n.value},set:Ie.set},pt.attrHooks.contenteditable={set:function(t,e,n){Ie.set(t,""!==e&&e,n)}},pt.each(["width","height"],function(t,e){pt.attrHooks[e]={set:function(t,n){if(""===n)return t.setAttribute(e,"auto"),n}}})),dt.style||(pt.attrHooks.style={get:function(t){return t.style.cssText||void 0},set:function(t,e){return t.style.cssText=e+""}});var Oe=/^(?:input|select|textarea|button|object)$/i,Re=/^(?:a|area)$/i;pt.fn.extend({prop:function(t,e){return Ft(this,pt.prop,t,e,arguments.length>1)},removeProp:function(t){return t=pt.propFix[t]||t,this.each(function(){try{this[t]=void 0,delete this[t]}catch(t){}})}}),pt.extend({prop:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&pt.isXMLDoc(t)||(e=pt.propFix[e]||e,r=pt.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=pt.find.attr(t,"tabindex");return e?parseInt(e,10):Oe.test(t.nodeName)||Re.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),dt.hrefNormalized||pt.each(["href","src"],function(t,e){pt.propHooks[e]={get:function(t){return t.getAttribute(e,4)}}}),dt.optSelected||(pt.propHooks.selected={get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),pt.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){pt.propFix[this.toLowerCase()]=this}),dt.enctype||(pt.propFix.enctype="encoding");var Fe=/[\t\r\n\f]/g;pt.fn.extend({addClass:function(t){var e,n,i,r,o,a,s,l=0;if(pt.isFunction(t))return this.each(function(e){pt(this).addClass(t.call(this,e,z(this)))});if("string"==typeof t&&t)for(e=t.match($t)||[];n=this[l++];)if(r=z(n),i=1===n.nodeType&&(" "+r+" ").replace(Fe," ")){for(a=0;o=e[a++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");s=pt.trim(i),r!==s&&pt.attr(n,"class",s)}return this},removeClass:function(t){var e,n,i,r,o,a,s,l=0;if(pt.isFunction(t))return this.each(function(e){pt(this).removeClass(t.call(this,e,z(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match($t)||[];n=this[l++];)if(r=z(n),i=1===n.nodeType&&(" "+r+" ").replace(Fe," ")){for(a=0;o=e[a++];)for(;i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");s=pt.trim(i),r!==s&&pt.attr(n,"class",s)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):pt.isFunction(t)?this.each(function(n){pt(this).toggleClass(t.call(this,n,z(this),e),e)}):this.each(function(){var e,i,r,o;if("string"===n)for(i=0,r=pt(this),o=t.match($t)||[];e=o[i++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else void 0!==t&&"boolean"!==n||(e=z(this),e&&pt._data(this,"__className__",e),pt.attr(this,"class",e||t===!1?"":pt._data(this,"__className__")||""))})},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+z(n)+" ").replace(Fe," ").indexOf(e)>-1)return!0;return!1}}),pt.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){pt.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),pt.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}});var Qe=t.location,Me=pt.now(),Be=/\?/,We=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;pt.parseJSON=function(e){if(t.JSON&&t.JSON.parse)return t.JSON.parse(e+"");var n,i=null,r=pt.trim(e+"");return r&&!pt.trim(r.replace(We,function(t,e,r,o){return n&&e&&(i=0),0===i?t:(n=r||e,i+=!o-!r,"")}))?Function("return "+r)():pt.error("Invalid JSON: "+e)},pt.parseXML=function(e){var n,i;if(!e||"string"!=typeof e)return null;try{t.DOMParser?(i=new t.DOMParser,n=i.parseFromString(e,"text/xml")):(n=new t.ActiveXObject("Microsoft.XMLDOM"),n.async="false",n.loadXML(e))}catch(t){n=void 0}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||pt.error("Invalid XML: "+e),n};var ze=/#.*$/,qe=/([?&])_=[^&]*/,Ue=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Ve=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Xe=/^(?:GET|HEAD)$/,Je=/^\/\//,Ge=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Ke={},Ye={},Ze="*/".concat("*"),tn=Qe.href,en=Ge.exec(tn.toLowerCase())||[];pt.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:tn,type:"GET",isLocal:Ve.test(en[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ze,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":pt.parseJSON,"text xml":pt.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?V(V(t,pt.ajaxSettings),e):V(pt.ajaxSettings,t)},ajaxPrefilter:q(Ke),ajaxTransport:q(Ye),ajax:function(e,n){function i(e,n,i,r){var o,d,b,y,x,S=n;2!==w&&(w=2,l&&t.clearTimeout(l),u=void 0,s=r||"",C.readyState=e>0?4:0,o=e>=200&&e<300||304===e,i&&(y=X(h,C,i)),y=J(h,y,C,o),o?(h.ifModified&&(x=C.getResponseHeader("Last-Modified"),x&&(pt.lastModified[a]=x),x=C.getResponseHeader("etag"),x&&(pt.etag[a]=x)),204===e||"HEAD"===h.type?S="nocontent":304===e?S="notmodified":(S=y.state,d=y.data,b=y.error,o=!b)):(b=S,!e&&S||(S="error",e<0&&(e=0))),C.status=e,C.statusText=(n||S)+"",o?g.resolveWith(p,[d,S,C]):g.rejectWith(p,[C,S,b]),C.statusCode(v),v=void 0,c&&f.trigger(o?"ajaxSuccess":"ajaxError",[C,h,o?d:b]),m.fireWith(p,[C,S]),c&&(f.trigger("ajaxComplete",[C,h]),--pt.active||pt.event.trigger("ajaxStop")))}"object"==typeof e&&(n=e,e=void 0),n=n||{};var r,o,a,s,l,c,u,d,h=pt.ajaxSetup({},n),p=h.context||h,f=h.context&&(p.nodeType||p.jquery)?pt(p):pt.event,g=pt.Deferred(),m=pt.Callbacks("once memory"),v=h.statusCode||{},b={},y={},w=0,x="canceled",C={readyState:0,getResponseHeader:function(t){var e;if(2===w){if(!d)for(d={};e=Ue.exec(s);)d[e[1].toLowerCase()]=e[2];e=d[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===w?s:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return w||(t=y[n]=y[n]||t,b[t]=e),this},overrideMimeType:function(t){return w||(h.mimeType=t),this},statusCode:function(t){var e;if(t)if(w<2)for(e in t)v[e]=[v[e],t[e]];else C.always(t[C.status]);return this},abort:function(t){var e=t||x;return u&&u.abort(e),i(0,e),this}};if(g.promise(C).complete=m.add,C.success=C.done,C.error=C.fail,h.url=((e||h.url||tn)+"").replace(ze,"").replace(Je,en[1]+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=pt.trim(h.dataType||"*").toLowerCase().match($t)||[""],null==h.crossDomain&&(r=Ge.exec(h.url.toLowerCase()),h.crossDomain=!(!r||r[1]===en[1]&&r[2]===en[2]&&(r[3]||("http:"===r[1]?"80":"443"))===(en[3]||("http:"===en[1]?"80":"443")))),h.data&&h.processData&&"string"!=typeof h.data&&(h.data=pt.param(h.data,h.traditional)),U(Ke,h,n,C),2===w)return C;c=pt.event&&h.global,c&&0===pt.active++&&pt.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Xe.test(h.type),a=h.url,h.hasContent||(h.data&&(a=h.url+=(Be.test(a)?"&":"?")+h.data,delete h.data),h.cache===!1&&(h.url=qe.test(a)?a.replace(qe,"$1_="+Me++):a+(Be.test(a)?"&":"?")+"_="+Me++)),h.ifModified&&(pt.lastModified[a]&&C.setRequestHeader("If-Modified-Since",pt.lastModified[a]),pt.etag[a]&&C.setRequestHeader("If-None-Match",pt.etag[a])),(h.data&&h.hasContent&&h.contentType!==!1||n.contentType)&&C.setRequestHeader("Content-Type",h.contentType),C.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Ze+"; q=0.01":""):h.accepts["*"]);for(o in h.headers)C.setRequestHeader(o,h.headers[o]);if(h.beforeSend&&(h.beforeSend.call(p,C,h)===!1||2===w))return C.abort();x="abort";for(o in{success:1,error:1,complete:1})C[o](h[o]);if(u=U(Ye,h,n,C)){if(C.readyState=1,c&&f.trigger("ajaxSend",[C,h]),2===w)return C;h.async&&h.timeout>0&&(l=t.setTimeout(function(){C.abort("timeout")},h.timeout));try{w=1,u.send(b,i)}catch(t){if(!(w<2))throw t;i(-1,t)}}else i(-1,"No Transport");return C},getJSON:function(t,e,n){return pt.get(t,e,n,"json")},getScript:function(t,e){return pt.get(t,void 0,e,"script")}}),pt.each(["get","post"],function(t,e){pt[e]=function(t,n,i,r){return pt.isFunction(n)&&(r=r||i,i=n,n=void 0),pt.ajax(pt.extend({url:t,type:e,dataType:r,data:n,success:i},pt.isPlainObject(t)&&t))}}),pt._evalUrl=function(t){return pt.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},pt.fn.extend({wrapAll:function(t){if(pt.isFunction(t))return this.each(function(e){pt(this).wrapAll(t.call(this,e))});if(this[0]){var e=pt(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t}).append(this)}return this},wrapInner:function(t){return pt.isFunction(t)?this.each(function(e){pt(this).wrapInner(t.call(this,e))}):this.each(function(){var e=pt(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){
var e=pt.isFunction(t);return this.each(function(n){pt(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){pt.nodeName(this,"body")||pt(this).replaceWith(this.childNodes)}).end()}}),pt.expr.filters.hidden=function(t){return dt.reliableHiddenOffsets()?t.offsetWidth<=0&&t.offsetHeight<=0&&!t.getClientRects().length:K(t)},pt.expr.filters.visible=function(t){return!pt.expr.filters.hidden(t)};var nn=/%20/g,rn=/\[\]$/,on=/\r?\n/g,an=/^(?:submit|button|image|reset|file)$/i,sn=/^(?:input|select|textarea|keygen)/i;pt.param=function(t,e){var n,i=[],r=function(t,e){e=pt.isFunction(e)?e():null==e?"":e,i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=pt.ajaxSettings&&pt.ajaxSettings.traditional),pt.isArray(t)||t.jquery&&!pt.isPlainObject(t))pt.each(t,function(){r(this.name,this.value)});else for(n in t)Y(n,t[n],e,r);return i.join("&").replace(nn,"+")},pt.fn.extend({serialize:function(){return pt.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=pt.prop(this,"elements");return t?pt.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!pt(this).is(":disabled")&&sn.test(this.nodeName)&&!an.test(t)&&(this.checked||!Qt.test(t))}).map(function(t,e){var n=pt(this).val();return null==n?null:pt.isArray(n)?pt.map(n,function(t){return{name:e.name,value:t.replace(on,"\r\n")}}):{name:e.name,value:n.replace(on,"\r\n")}}).get()}}),pt.ajaxSettings.xhr=void 0!==t.ActiveXObject?function(){return this.isLocal?tt():it.documentMode>8?Z():/^(get|post|head|put|delete|options)$/i.test(this.type)&&Z()||tt()}:Z;var ln=0,cn={},un=pt.ajaxSettings.xhr();t.attachEvent&&t.attachEvent("onunload",function(){for(var t in cn)cn[t](void 0,!0)}),dt.cors=!!un&&"withCredentials"in un,un=dt.ajax=!!un,un&&pt.ajaxTransport(function(e){if(!e.crossDomain||dt.cors){var n;return{send:function(i,r){var o,a=e.xhr(),s=++ln;if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)a[o]=e.xhrFields[o];e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(o in i)void 0!==i[o]&&a.setRequestHeader(o,i[o]+"");a.send(e.hasContent&&e.data||null),n=function(t,i){var o,l,c;if(n&&(i||4===a.readyState))if(delete cn[s],n=void 0,a.onreadystatechange=pt.noop,i)4!==a.readyState&&a.abort();else{c={},o=a.status,"string"==typeof a.responseText&&(c.text=a.responseText);try{l=a.statusText}catch(t){l=""}o||!e.isLocal||e.crossDomain?1223===o&&(o=204):o=c.text?200:404}c&&r(o,l,c,a.getAllResponseHeaders())},e.async?4===a.readyState?t.setTimeout(n):a.onreadystatechange=cn[s]=n:n()},abort:function(){n&&n(void 0,!0)}}}}),pt.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return pt.globalEval(t),t}}}),pt.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),pt.ajaxTransport("script",function(t){if(t.crossDomain){var e,n=it.head||pt("head")[0]||it.documentElement;return{send:function(i,r){e=it.createElement("script"),e.async=!0,t.scriptCharset&&(e.charset=t.scriptCharset),e.src=t.url,e.onload=e.onreadystatechange=function(t,n){(n||!e.readyState||/loaded|complete/.test(e.readyState))&&(e.onload=e.onreadystatechange=null,e.parentNode&&e.parentNode.removeChild(e),e=null,n||r(200,"success"))},n.insertBefore(e,n.firstChild)},abort:function(){e&&e.onload(void 0,!0)}}}});var dn=[],hn=/(=)\?(?=&|$)|\?\?/;pt.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=dn.pop()||pt.expando+"_"+Me++;return this[t]=!0,t}}),pt.ajaxPrefilter("json jsonp",function(e,n,i){var r,o,a,s=e.jsonp!==!1&&(hn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&hn.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=pt.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(hn,"$1"+r):e.jsonp!==!1&&(e.url+=(Be.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return a||pt.error(r+" was not called"),a[0]},e.dataTypes[0]="json",o=t[r],t[r]=function(){a=arguments},i.always(function(){void 0===o?pt(t).removeProp(r):t[r]=o,e[r]&&(e.jsonpCallback=n.jsonpCallback,dn.push(r)),a&&pt.isFunction(o)&&o(a[0]),a=o=void 0}),"script"}),pt.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||it;var i=Ct.exec(t),r=!n&&[];return i?[e.createElement(i[1])]:(i=v([t],e,r),r&&r.length&&pt(r).remove(),pt.merge([],i.childNodes))};var pn=pt.fn.load;pt.fn.load=function(t,e,n){if("string"!=typeof t&&pn)return pn.apply(this,arguments);var i,r,o,a=this,s=t.indexOf(" ");return s>-1&&(i=pt.trim(t.slice(s,t.length)),t=t.slice(0,s)),pt.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),a.length>0&&pt.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done(function(t){o=arguments,a.html(i?pt("<div>").append(pt.parseHTML(t)).find(i):t)}).always(n&&function(t,e){a.each(function(){n.apply(this,o||[t.responseText,e,t])})}),this},pt.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){pt.fn[e]=function(t){return this.on(e,t)}}),pt.expr.filters.animated=function(t){return pt.grep(pt.timers,function(e){return t===e.elem}).length},pt.offset={setOffset:function(t,e,n){var i,r,o,a,s,l,c,u=pt.css(t,"position"),d=pt(t),h={};"static"===u&&(t.style.position="relative"),s=d.offset(),o=pt.css(t,"top"),l=pt.css(t,"left"),c=("absolute"===u||"fixed"===u)&&pt.inArray("auto",[o,l])>-1,c?(i=d.position(),a=i.top,r=i.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),pt.isFunction(e)&&(e=e.call(t,n,pt.extend({},s))),null!=e.top&&(h.top=e.top-s.top+a),null!=e.left&&(h.left=e.left-s.left+r),"using"in e?e.using.call(t,h):d.css(h)}},pt.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){pt.offset.setOffset(this,t,e)});var e,n,i={top:0,left:0},r=this[0],o=r&&r.ownerDocument;if(o)return e=o.documentElement,pt.contains(e,r)?("undefined"!=typeof r.getBoundingClientRect&&(i=r.getBoundingClientRect()),n=et(o),{top:i.top+(n.pageYOffset||e.scrollTop)-(e.clientTop||0),left:i.left+(n.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):i},position:function(){if(this[0]){var t,e,n={top:0,left:0},i=this[0];return"fixed"===pt.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),pt.nodeName(t[0],"html")||(n=t.offset()),n.top+=pt.css(t[0],"borderTopWidth",!0),n.left+=pt.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-pt.css(i,"marginTop",!0),left:e.left-n.left-pt.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&!pt.nodeName(t,"html")&&"static"===pt.css(t,"position");)t=t.offsetParent;return t||pe})}}),pt.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n=/Y/.test(e);pt.fn[t]=function(i){return Ft(this,function(t,i,r){var o=et(t);return void 0===r?o?e in o?o[e]:o.document.documentElement[i]:t[i]:void(o?o.scrollTo(n?pt(o).scrollLeft():r,n?r:pt(o).scrollTop()):t[i]=r)},t,i,arguments.length,null)}}),pt.each(["top","left"],function(t,e){pt.cssHooks[e]=I(dt.pixelPosition,function(t,n){if(n)return n=ge(t,e),de.test(n)?pt(t).position()[e]+"px":n})}),pt.each({Height:"height",Width:"width"},function(t,e){pt.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,i){pt.fn[i]=function(i,r){var o=arguments.length&&(n||"boolean"!=typeof i),a=n||(i===!0||r===!0?"margin":"border");return Ft(this,function(e,n,i){var r;return pt.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+t],r["scroll"+t],e.body["offset"+t],r["offset"+t],r["client"+t])):void 0===i?pt.css(e,n,a):pt.style(e,n,i,a)},e,o?i:void 0,o,null)}})}),pt.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}}),pt.fn.size=function(){return this.length},pt.fn.andSelf=pt.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return pt});var fn=t.jQuery,gn=t.$;return pt.noConflict=function(e){return t.$===pt&&(t.$=gn),e&&t.jQuery===pt&&(t.jQuery=fn),pt},e||(t.jQuery=t.$=pt),pt}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){"use strict";var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),+function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]};return!1}t.fn.emulateTransitionEnd=function(e){var n=!1,i=this;t(this).one("bsTransitionEnd",function(){n=!0});var r=function(){n||t(i).trigger(t.support.transition.end)};return setTimeout(r,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),r=n.data("bs.alert");r||n.data("bs.alert",r=new i(this)),"string"==typeof e&&r[e].call(n)})}var n='[data-dismiss="alert"]',i=function(e){t(e).on("click",n,this.close)};i.VERSION="3.3.7",i.TRANSITION_DURATION=150,i.prototype.close=function(e){function n(){a.detach().trigger("closed.bs.alert").remove()}var r=t(this),o=r.attr("data-target");o||(o=r.attr("href"),o=o&&o.replace(/.*(?=#[^\s]*$)/,""));var a=t("#"===o?[]:o);e&&e.preventDefault(),a.length||(a=r.closest(".alert")),a.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(a.removeClass("in"),t.support.transition&&a.hasClass("fade")?a.one("bsTransitionEnd",n).emulateTransitionEnd(i.TRANSITION_DURATION):n())};var r=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=i,t.fn.alert.noConflict=function(){return t.fn.alert=r,this},t(document).on("click.bs.alert.data-api",n,i.prototype.close)}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),r=i.data("bs.button"),o="object"==typeof e&&e;r||i.data("bs.button",r=new n(this,o)),"toggle"==e?r.toggle():e&&r.setState(e)})}var n=function(e,i){this.$element=t(e),this.options=t.extend({},n.DEFAULTS,i),this.isLoading=!1};n.VERSION="3.3.7",n.DEFAULTS={loadingText:"loading..."},n.prototype.setState=function(e){var n="disabled",i=this.$element,r=i.is("input")?"val":"html",o=i.data();e+="Text",null==o.resetText&&i.data("resetText",i[r]()),setTimeout(t.proxy(function(){i[r](null==o[e]?this.options[e]:o[e]),"loadingText"==e?(this.isLoading=!0,i.addClass(n).attr(n,n).prop(n,!0)):this.isLoading&&(this.isLoading=!1,i.removeClass(n).removeAttr(n).prop(n,!1))},this),0)},n.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var i=t.fn.button;t.fn.button=e,t.fn.button.Constructor=n,t.fn.button.noConflict=function(){return t.fn.button=i,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(n){var i=t(n.target).closest(".btn");e.call(i,"toggle"),t(n.target).is('input[type="radio"], input[type="checkbox"]')||(n.preventDefault(),i.is("input,button")?i.trigger("focus"):i.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),r=i.data("bs.carousel"),o=t.extend({},n.DEFAULTS,i.data(),"object"==typeof e&&e),a="string"==typeof e?e:o.slide;r||i.data("bs.carousel",r=new n(this,o)),"number"==typeof e?r.to(e):a?r[a]():o.interval&&r.pause().cycle()})}var n=function(e,n){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};n.VERSION="3.3.7",n.TRANSITION_DURATION=600,n.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},n.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},n.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},n.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},n.prototype.getItemForDirection=function(t,e){var n=this.getItemIndex(e),i="prev"==t&&0===n||"next"==t&&n==this.$items.length-1;if(i&&!this.options.wrap)return e;var r="prev"==t?-1:1,o=(n+r)%this.$items.length;return this.$items.eq(o)},n.prototype.to=function(t){var e=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):n==t?this.pause().cycle():this.slide(t>n?"next":"prev",this.$items.eq(t))},n.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},n.prototype.next=function(){if(!this.sliding)return this.slide("next")},n.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},n.prototype.slide=function(e,i){var r=this.$element.find(".item.active"),o=i||this.getItemForDirection(e,r),a=this.interval,s="next"==e?"left":"right",l=this;if(o.hasClass("active"))return this.sliding=!1;var c=o[0],u=t.Event("slide.bs.carousel",{relatedTarget:c,direction:s});if(this.$element.trigger(u),!u.isDefaultPrevented()){if(this.sliding=!0,a&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var d=t(this.$indicators.children()[this.getItemIndex(o)]);d&&d.addClass("active")}var h=t.Event("slid.bs.carousel",{relatedTarget:c,direction:s});return t.support.transition&&this.$element.hasClass("slide")?(o.addClass(e),o[0].offsetWidth,r.addClass(s),o.addClass(s),r.one("bsTransitionEnd",function(){o.removeClass([e,s].join(" ")).addClass("active"),r.removeClass(["active",s].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(h)},0)}).emulateTransitionEnd(n.TRANSITION_DURATION)):(r.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(h)),a&&this.cycle(),this}};var i=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=n,t.fn.carousel.noConflict=function(){return t.fn.carousel=i,this};var r=function(n){var i,r=t(this),o=t(r.attr("data-target")||(i=r.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""));if(o.hasClass("carousel")){var a=t.extend({},o.data(),r.data()),s=r.attr("data-slide-to");s&&(a.interval=!1),e.call(o,a),s&&o.data("bs.carousel").to(s),n.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var n=t(this);e.call(n,n.data())})})}(jQuery),+function(t){"use strict";function e(e){var n,i=e.attr("data-target")||(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return t(i)}function n(e){return this.each(function(){var n=t(this),r=n.data("bs.collapse"),o=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e);!r&&o.toggle&&/show|hide/.test(e)&&(o.toggle=!1),r||n.data("bs.collapse",r=new i(this,o)),"string"==typeof e&&r[e]()})}var i=function(e,n){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,n),this.$trigger=t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};i.VERSION="3.3.7",i.TRANSITION_DURATION=350,i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){var t=this.$element.hasClass("width");return t?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(r&&r.length&&(e=r.data("bs.collapse"),e&&e.transitioning))){var o=t.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){r&&r.length&&(n.call(r,"hide"),e||r.data("bs.collapse",null));var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[a](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return s.call(this);var l=t.camelCase(["scroll",a].join("-"));this.$element.one("bsTransitionEnd",t.proxy(s,this)).emulateTransitionEnd(i.TRANSITION_DURATION)[a](this.$element[0][l])}}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var r=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return t.support.transition?void this.$element[n](0).one("bsTransitionEnd",t.proxy(r,this)).emulateTransitionEnd(i.TRANSITION_DURATION):r.call(this)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},i.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(n,i){var r=t(i);this.addAriaAndCollapsedClass(e(r),r)},this)).end()},i.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var r=t.fn.collapse;t.fn.collapse=n,t.fn.collapse.Constructor=i,t.fn.collapse.noConflict=function(){return t.fn.collapse=r,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(i){var r=t(this);r.attr("data-target")||i.preventDefault();var o=e(r),a=o.data("bs.collapse"),s=a?"toggle":r.data();n.call(o,s)})}(jQuery),+function(t){"use strict";function e(e){var n=e.attr("data-target");n||(n=e.attr("href"),n=n&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i=n&&t(n);return i&&i.length?i:e.parent()}function n(n){n&&3===n.which||(t(r).remove(),t(o).each(function(){var i=t(this),r=e(i),o={relatedTarget:this};r.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&t.contains(r[0],n.target)||(r.trigger(n=t.Event("hide.bs.dropdown",o)),n.isDefaultPrevented()||(i.attr("aria-expanded","false"),r.removeClass("open").trigger(t.Event("hidden.bs.dropdown",o)))))}))}function i(e){return this.each(function(){var n=t(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new a(this)),"string"==typeof e&&i[e].call(n)})}var r=".dropdown-backdrop",o='[data-toggle="dropdown"]',a=function(e){t(e).on("click.bs.dropdown",this.toggle)};a.VERSION="3.3.7",a.prototype.toggle=function(i){var r=t(this);if(!r.is(".disabled, :disabled")){var o=e(r),a=o.hasClass("open");if(n(),!a){"ontouchstart"in document.documentElement&&!o.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",n);var s={relatedTarget:this};if(o.trigger(i=t.Event("show.bs.dropdown",s)),i.isDefaultPrevented())return;r.trigger("focus").attr("aria-expanded","true"),o.toggleClass("open").trigger(t.Event("shown.bs.dropdown",s))}return!1}},a.prototype.keydown=function(n){if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)){var i=t(this);if(n.preventDefault(),n.stopPropagation(),!i.is(".disabled, :disabled")){var r=e(i),a=r.hasClass("open");if(!a&&27!=n.which||a&&27==n.which)return 27==n.which&&r.find(o).trigger("focus"),i.trigger("click");var s=" li:not(.disabled):visible a",l=r.find(".dropdown-menu"+s);if(l.length){var c=l.index(n.target);38==n.which&&c>0&&c--,40==n.which&&c<l.length-1&&c++,~c||(c=0),l.eq(c).trigger("focus")}}}};var s=t.fn.dropdown;t.fn.dropdown=i,t.fn.dropdown.Constructor=a,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=s,this},t(document).on("click.bs.dropdown.data-api",n).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",o,a.prototype.toggle).on("keydown.bs.dropdown.data-api",o,a.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",a.prototype.keydown)}(jQuery),+function(t){"use strict";function e(e,i){return this.each(function(){var r=t(this),o=r.data("bs.modal"),a=t.extend({},n.DEFAULTS,r.data(),"object"==typeof e&&e);o||r.data("bs.modal",o=new n(this,a)),"string"==typeof e?o[e](i):a.show&&o.show(i)})}var n=function(e,n){this.options=n,this.$body=t(document.body),this.$element=t(e),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};n.VERSION="3.3.7",n.TRANSITION_DURATION=300,n.BACKDROP_TRANSITION_DURATION=150,n.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},n.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},n.prototype.show=function(e){var i=this,r=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(r),this.isShown||r.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){i.$element.one("mouseup.dismiss.bs.modal",function(e){t(e.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var r=t.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),r&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var o=t.Event("shown.bs.modal",{relatedTarget:e});r?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(o)}).emulateTransitionEnd(n.TRANSITION_DURATION):i.$element.trigger("focus").trigger(o)}))},n.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(n.TRANSITION_DURATION):this.hideModal())},n.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},n.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},n.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},n.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},n.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},n.prototype.backdrop=function(e){var i=this,r=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=t.support.transition&&r;if(this.$backdrop=t(document.createElement("div")).addClass("modal-backdrop "+r).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;o?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var a=function(){i.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",a).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):a()}else e&&e()},n.prototype.handleUpdate=function(){this.adjustDialog()},n.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},n.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},n.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},n.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},n.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},n.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var i=t.fn.modal;t.fn.modal=e,t.fn.modal.Constructor=n,t.fn.modal.noConflict=function(){return t.fn.modal=i,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(n){var i=t(this),r=i.attr("href"),o=t(i.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),a=o.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(r)&&r},o.data(),i.data());i.is("a")&&n.preventDefault(),o.one("show.bs.modal",function(t){t.isDefaultPrevented()||o.one("hidden.bs.modal",function(){i.is(":visible")&&i.trigger("focus")})}),e.call(o,a,this)})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),r=i.data("bs.tooltip"),o="object"==typeof e&&e;!r&&/destroy|hide/.test(e)||(r||i.data("bs.tooltip",r=new n(this,o)),"string"==typeof e&&r[e]())})}var n=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};n.VERSION="3.3.7",n.TRANSITION_DURATION=150,n.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},n.prototype.init=function(e,n,i){if(this.enabled=!0,this.type=e,this.$element=t(n),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&t(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var r=this.options.trigger.split(" "),o=r.length;o--;){var a=r[o];if("click"==a)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=a){var s="hover"==a?"mouseenter":"focusin",l="hover"==a?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.getOptions=function(e){return e=t.extend({},this.getDefaults(),this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},n.prototype.getDelegateOptions=function(){var e={},n=this.getDefaults();return this._options&&t.each(this._options,function(t,i){n[t]!=i&&(e[t]=i)}),e},n.prototype.enter=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusin"==e.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState?void(n.hoverState="in"):(clearTimeout(n.timeout),n.hoverState="in",n.options.delay&&n.options.delay.show?void(n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)):n.show())},n.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},n.prototype.leave=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusout"==e.type?"focus":"hover"]=!1),!n.isInStateTrue())return clearTimeout(n.timeout),n.hoverState="out",n.options.delay&&n.options.delay.hide?void(n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)):n.hide()},n.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var i=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!i)return;var r=this,o=this.tip(),a=this.getUID(this.type);this.setContent(),o.attr("id",a),this.$element.attr("aria-describedby",a),this.options.animation&&o.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,c=l.test(s);
c&&(s=s.replace(l,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var u=this.getPosition(),d=o[0].offsetWidth,h=o[0].offsetHeight;if(c){var p=s,f=this.getPosition(this.$viewport);s="bottom"==s&&u.bottom+h>f.bottom?"top":"top"==s&&u.top-h<f.top?"bottom":"right"==s&&u.right+d>f.width?"left":"left"==s&&u.left-d<f.left?"right":s,o.removeClass(p).addClass(s)}var g=this.getCalculatedOffset(s,u,d,h);this.applyPlacement(g,s);var m=function(){var t=r.hoverState;r.$element.trigger("shown.bs."+r.type),r.hoverState=null,"out"==t&&r.leave(r)};t.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",m).emulateTransitionEnd(n.TRANSITION_DURATION):m()}},n.prototype.applyPlacement=function(e,n){var i=this.tip(),r=i[0].offsetWidth,o=i[0].offsetHeight,a=parseInt(i.css("margin-top"),10),s=parseInt(i.css("margin-left"),10);isNaN(a)&&(a=0),isNaN(s)&&(s=0),e.top+=a,e.left+=s,t.offset.setOffset(i[0],t.extend({using:function(t){i.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),i.addClass("in");var l=i[0].offsetWidth,c=i[0].offsetHeight;"top"==n&&c!=o&&(e.top=e.top+o-c);var u=this.getViewportAdjustedDelta(n,e,l,c);u.left?e.left+=u.left:e.top+=u.top;var d=/top|bottom/.test(n),h=d?2*u.left-r+l:2*u.top-o+c,p=d?"offsetWidth":"offsetHeight";i.offset(e),this.replaceArrow(h,i[0][p],d)},n.prototype.replaceArrow=function(t,e,n){this.arrow().css(n?"left":"top",50*(1-t/e)+"%").css(n?"top":"left","")},n.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},n.prototype.hide=function(e){function i(){"in"!=r.hoverState&&o.detach(),r.$element&&r.$element.removeAttr("aria-describedby").trigger("hidden.bs."+r.type),e&&e()}var r=this,o=t(this.$tip),a=t.Event("hide.bs."+this.type);if(this.$element.trigger(a),!a.isDefaultPrevented())return o.removeClass("in"),t.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",i).emulateTransitionEnd(n.TRANSITION_DURATION):i(),this.hoverState=null,this},n.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},n.prototype.hasContent=function(){return this.getTitle()},n.prototype.getPosition=function(e){e=e||this.$element;var n=e[0],i="BODY"==n.tagName,r=n.getBoundingClientRect();null==r.width&&(r=t.extend({},r,{width:r.right-r.left,height:r.bottom-r.top}));var o=window.SVGElement&&n instanceof window.SVGElement,a=i?{top:0,left:0}:o?null:e.offset(),s={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},l=i?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},r,s,l,a)},n.prototype.getCalculatedOffset=function(t,e,n,i){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-n/2}:"top"==t?{top:e.top-i,left:e.left+e.width/2-n/2}:"left"==t?{top:e.top+e.height/2-i/2,left:e.left-n}:{top:e.top+e.height/2-i/2,left:e.left+e.width}},n.prototype.getViewportAdjustedDelta=function(t,e,n,i){var r={top:0,left:0};if(!this.$viewport)return r;var o=this.options.viewport&&this.options.viewport.padding||0,a=this.getPosition(this.$viewport);if(/right|left/.test(t)){var s=e.top-o-a.scroll,l=e.top+o-a.scroll+i;s<a.top?r.top=a.top-s:l>a.top+a.height&&(r.top=a.top+a.height-l)}else{var c=e.left-o,u=e.left+o+n;c<a.left?r.left=a.left-c:u>a.right&&(r.left=a.left+a.width-u)}return r},n.prototype.getTitle=function(){var t,e=this.$element,n=this.options;return t=e.attr("data-original-title")||("function"==typeof n.title?n.title.call(e[0]):n.title)},n.prototype.getUID=function(t){do t+=~~(1e6*Math.random());while(document.getElementById(t));return t},n.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},n.prototype.enable=function(){this.enabled=!0},n.prototype.disable=function(){this.enabled=!1},n.prototype.toggleEnabled=function(){this.enabled=!this.enabled},n.prototype.toggle=function(e){var n=this;e&&(n=t(e.currentTarget).data("bs."+this.type),n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n))),e?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},n.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})};var i=t.fn.tooltip;t.fn.tooltip=e,t.fn.tooltip.Constructor=n,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=i,this}}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),r=i.data("bs.popover"),o="object"==typeof e&&e;!r&&/destroy|hide/.test(e)||(r||i.data("bs.popover",r=new n(this,o)),"string"==typeof e&&r[e]())})}var n=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");n.VERSION="3.3.7",n.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),n.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),n.prototype.constructor=n,n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},n.prototype.hasContent=function(){return this.getTitle()||this.getContent()},n.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var i=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=n,t.fn.popover.noConflict=function(){return t.fn.popover=i,this}}(jQuery),+function(t){"use strict";function e(n,i){this.$body=t(document.body),this.$scrollElement=t(t(n).is(document.body)?window:n),this.options=t.extend({},e.DEFAULTS,i),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each(function(){var i=t(this),r=i.data("bs.scrollspy"),o="object"==typeof n&&n;r||i.data("bs.scrollspy",r=new e(this,o)),"string"==typeof n&&r[n]()})}e.VERSION="3.3.7",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e=this,n="offset",i=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(n="position",i=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=t(this),r=e.data("target")||e.attr("href"),o=/^#./.test(r)&&t(r);return o&&o.length&&o.is(":visible")&&[[o[n]().top+i,r]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),r=this.offsets,o=this.targets,a=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),e>=i)return a!=(t=o[o.length-1])&&this.activate(t);if(a&&e<r[0])return this.activeTarget=null,this.clear();for(t=r.length;t--;)a!=o[t]&&e>=r[t]&&(void 0===r[t+1]||e<r[t+1])&&this.activate(o[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var n=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',i=t(n).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},e.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var i=t.fn.scrollspy;t.fn.scrollspy=n,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=i,this},t(window).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);n.call(e,e.data())})})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),r=i.data("bs.tab");r||i.data("bs.tab",r=new n(this)),"string"==typeof e&&r[e]()})}var n=function(e){this.element=t(e)};n.VERSION="3.3.7",n.TRANSITION_DURATION=150,n.prototype.show=function(){var e=this.element,n=e.closest("ul:not(.dropdown-menu)"),i=e.data("target");if(i||(i=e.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var r=n.find(".active:last a"),o=t.Event("hide.bs.tab",{relatedTarget:e[0]}),a=t.Event("show.bs.tab",{relatedTarget:r[0]});if(r.trigger(o),e.trigger(a),!a.isDefaultPrevented()&&!o.isDefaultPrevented()){var s=t(i);this.activate(e.closest("li"),n),this.activate(s,s.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:r[0]})})}}},n.prototype.activate=function(e,i,r){function o(){a.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),s?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu").length&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),r&&r()}var a=i.find("> .active"),s=r&&t.support.transition&&(a.length&&a.hasClass("fade")||!!i.find("> .fade").length);a.length&&s?a.one("bsTransitionEnd",o).emulateTransitionEnd(n.TRANSITION_DURATION):o(),a.removeClass("in")};var i=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=n,t.fn.tab.noConflict=function(){return t.fn.tab=i,this};var r=function(n){n.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',r).on("click.bs.tab.data-api",'[data-toggle="pill"]',r)}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),r=i.data("bs.affix"),o="object"==typeof e&&e;r||i.data("bs.affix",r=new n(this,o)),"string"==typeof e&&r[e]()})}var n=function(e,i){this.options=t.extend({},n.DEFAULTS,i),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(e),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};n.VERSION="3.3.7",n.RESET="affix affix-top affix-bottom",n.DEFAULTS={offset:0,target:window},n.prototype.getState=function(t,e,n,i){var r=this.$target.scrollTop(),o=this.$element.offset(),a=this.$target.height();if(null!=n&&"top"==this.affixed)return r<n&&"top";if("bottom"==this.affixed)return null!=n?!(r+this.unpin<=o.top)&&"bottom":!(r+a<=t-i)&&"bottom";var s=null==this.affixed,l=s?r:o.top,c=s?a:e;return null!=n&&r<=n?"top":null!=i&&l+c>=t-i&&"bottom"},n.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(n.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},n.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},n.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),i=this.options.offset,r=i.top,o=i.bottom,a=Math.max(t(document).height(),t(document.body).height());"object"!=typeof i&&(o=r=i),"function"==typeof r&&(r=i.top(this.$element)),"function"==typeof o&&(o=i.bottom(this.$element));var s=this.getState(a,e,r,o);if(this.affixed!=s){null!=this.unpin&&this.$element.css("top","");var l="affix"+(s?"-"+s:""),c=t.Event(l+".bs.affix");if(this.$element.trigger(c),c.isDefaultPrevented())return;this.affixed=s,this.unpin="bottom"==s?this.getPinnedOffset():null,this.$element.removeClass(n.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==s&&this.$element.offset({top:a-e-o})}};var i=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=n,t.fn.affix.noConflict=function(){return t.fn.affix=i,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var n=t(this),i=n.data();i.offset=i.offset||{},null!=i.offsetBottom&&(i.offset.bottom=i.offsetBottom),null!=i.offsetTop&&(i.offset.top=i.offsetTop),e.call(n,i)})})}(jQuery),function(t){"use strict";function e(t){for(var e=window,n=t.split("."),i=n.pop(),r=0,o=n.length;r<o;r++)e=e[n[r]];return function(){e[i].call(this)}}var n;if(!t.fn.popover)throw new Error("Confirmation requires popover.js");var i=function(t,e){e.trigger="click",this.init(t,e)};i.VERSION="2.4.0",i.KEYMAP={13:"Enter",27:"Escape",39:"ArrowRight",40:"ArrowDown"},i.DEFAULTS=t.extend({},t.fn.popover.Constructor.DEFAULTS,{placement:"top",title:"Are you sure?",popout:!1,singleton:!1,copyAttributes:"href target",buttons:null,onConfirm:t.noop,onCancel:t.noop,btnOkClass:"btn-xs btn-primary",btnOkIcon:"glyphicon glyphicon-ok",btnOkLabel:"Yes",btnCancelClass:"btn-xs btn-default",btnCancelIcon:"glyphicon glyphicon-remove",btnCancelLabel:"No",template:'<div class="popover confirmation"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"><p class="confirmation-content"></p><div class="confirmation-buttons text-center"><div class="btn-group"><a href="#" class="btn" data-apply="confirmation"></a><a href="#" class="btn" data-dismiss="confirmation"></a></div></div></div></div>'}),i.prototype=t.extend({},t.fn.popover.Constructor.prototype),i.prototype.constructor=i,i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.init=function(e,n){if(t.fn.popover.Constructor.prototype.init.call(this,"confirmation",e,n),(this.options.popout||this.options.singleton)&&!n.rootSelector)throw new Error("The rootSelector option is required to use popout and singleton features since jQuery 3.");this.options._isDelegate=!1,n.selector?this.options._selector=this._options._selector=n.rootSelector+" "+n.selector:n._selector?(this.options._selector=n._selector,this.options._isDelegate=!0):this.options._selector=n.rootSelector;var i=this;this.options.selector?this.$element.on(this.options.trigger,this.options.selector,function(t,e){e||(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}):(this.options._attributes={},this.options.copyAttributes?"string"==typeof this.options.copyAttributes&&(this.options.copyAttributes=this.options.copyAttributes.split(" ")):this.options.copyAttributes=[],this.options.copyAttributes.forEach(function(t){this.options._attributes[t]=this.$element.attr(t)},this),this.$element.on(this.options.trigger,function(t,e){e||(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}),this.$element.on("show.bs.confirmation",function(e){i.options.singleton&&t(i.options._selector).not(t(this)).filter(function(){return void 0!==t(this).data("bs.confirmation")}).confirmation("hide")})),this.options._isDelegate||(this.eventBody=!1,this.uid=this.$element[0].id||this.getUID("group_"),this.$element.on("shown.bs.confirmation",function(e){i.options.popout&&!i.eventBody&&(i.eventBody=t("body").on("click.bs.confirmation."+i.uid,function(e){t(i.options._selector).is(e.target)||(t(i.options._selector).filter(function(){return void 0!==t(this).data("bs.confirmation")}).confirmation("hide"),t("body").off("click.bs."+i.uid),i.eventBody=!1)}))}))},i.prototype.hasContent=function(){return!0},i.prototype.setContent=function(){var e=this,i=this.tip(),r=this.getTitle(),o=this.getContent();if(i.find(".popover-title")[this.options.html?"html":"text"](r),i.find(".confirmation-content").toggle(!!o).children().detach().end()[this.options.html?"string"==typeof o?"html":"append":"text"](o),i.on("click",function(t){t.stopPropagation()}),this.options.buttons){var a=i.find(".confirmation-buttons .btn-group").empty();this.options.buttons.forEach(function(n){a.append(t('<a href="#"></a>').addClass(n.class||"btn btn-xs btn-default").html(n.label||"").attr(n.attr||{}).prepend(t("<i></i>").addClass(n.icon)," ").one("click",function(i){"#"===t(this).attr("href")&&i.preventDefault(),n.onClick&&n.onClick.call(e.$element),n.cancel?(e.getOnCancel.call(e).call(e.$element),e.$element.trigger("canceled.bs.confirmation")):(e.getOnConfirm.call(e).call(e.$element),e.$element.trigger("confirmed.bs.confirmation")),e.inState&&(e.inState.click=!1),e.hide()}))},this)}else i.find('[data-apply="confirmation"]').addClass(this.options.btnOkClass).html(this.options.btnOkLabel).attr(this.options._attributes).prepend(t("<i></i>").addClass(this.options.btnOkIcon)," ").off("click").one("click",function(n){"#"===t(this).attr("href")&&n.preventDefault(),e.getOnConfirm.call(e).call(e.$element),e.$element.trigger("confirmed.bs.confirmation"),e.$element.trigger(e.options.trigger,[!0]),e.hide()}),i.find('[data-dismiss="confirmation"]').addClass(this.options.btnCancelClass).html(this.options.btnCancelLabel).prepend(t("<i></i>").addClass(this.options.btnCancelIcon)," ").off("click").one("click",function(t){t.preventDefault(),e.getOnCancel.call(e).call(e.$element),e.$element.trigger("canceled.bs.confirmation"),e.inState&&(e.inState.click=!1),e.hide()});i.removeClass("fade top bottom left right in"),i.find(".popover-title").html()||i.find(".popover-title").hide(),n=this,t(window).off("keyup.bs.confirmation").on("keyup.bs.confirmation",this._onKeyup.bind(this))},i.prototype.destroy=function(){n===this&&(n=void 0,t(window).off("keyup.bs.confirmation")),t.fn.popover.Constructor.prototype.destroy.call(this)},i.prototype.hide=function(){n===this&&(n=void 0,t(window).off("keyup.bs.confirmation")),t.fn.popover.Constructor.prototype.hide.call(this)},i.prototype._onKeyup=function(e){if(!this.$tip)return n=void 0,void t(window).off("keyup.bs.confirmation");var r,o=e.key||i.KEYMAP[e.keyCode||e.which],a=this.$tip.find(".confirmation-buttons .btn-group"),s=a.find(".active");switch(o){case"Escape":this.hide();break;case"ArrowRight":r=s.length&&s.next().length?s.next():a.children().first(),s.removeClass("active"),r.addClass("active").focus();break;case"ArrowLeft":r=s.length&&s.prev().length?s.prev():a.children().last(),s.removeClass("active"),r.addClass("active").focus()}},i.prototype.getOnConfirm=function(){return this.$element.attr("data-on-confirm")?e(this.$element.attr("data-on-confirm")):this.options.onConfirm},i.prototype.getOnCancel=function(){return this.$element.attr("data-on-cancel")?e(this.$element.attr("data-on-cancel")):this.options.onCancel};var r=t.fn.confirmation;t.fn.confirmation=function(e){var n="object"==typeof e&&e||{};return n.rootSelector=this.selector||n.rootSelector,this.each(function(){var r=t(this),o=r.data("bs.confirmation");(o||"destroy"!=e)&&(o||r.data("bs.confirmation",o=new i(this,n)),"string"==typeof e&&(o[e](),"hide"==e&&o.inState&&(o.inState.click=!1)))})},t.fn.confirmation.Constructor=i,t.fn.confirmation.noConflict=function(){return t.fn.confirmation=r,this}}(jQuery),function(t,e){"object"!=typeof t.WHMCS&&(t.WHMCS=e)}(window,{hasModule:function(t){return"undefined"!=typeof WHMCS[t]&&Object.getOwnPropertyNames(WHMCS[t]).length>0},loadModule:function(t,e){if(!this.hasModule(t))if(WHMCS[t]={},"function"==typeof e)e.apply(WHMCS[t]);else for(var n in e)e.hasOwnProperty(n)&&(WHMCS[t][n]={},e[n].apply(WHMCS[t][n]))}}),function(t){WHMCS.hasModule("authn")||WHMCS.loadModule("authn",t)}({provider:function(){var t=!1;return this.feedbackContainer=function(){return jQuery(".providerLinkingFeedback")},this.btnContainer=function(){return jQuery(".providerPreLinking")},this.feedbackMessage=function(t){"undefined"==typeof t&&(t="complete_sign_in");var e=jQuery("p.providerLinkingMsg-preLink-"+t);return e.length?e.first().html():""},this.showProgressMessage=function(e){this.feedbackContainer().fadeIn("fast",function(){"function"!=typeof e||t||(t=!0,e())})},this.preLinkInit=function(t){var e='<i class="fa fa-fw fa-spinner fa-spin"></i> ';this.feedbackContainer().removeClass("alert-danger alert-success").addClass("alert alert-info").html(e+this.feedbackMessage()).hide();var n=this.btnContainer();if(n.length)if(n.data("hideOnPrelink")){var i=this;n.fadeOut("false",function(){i.showProgressMessage(t)})}else n.data("disableOnPrelink")?(n.find(".btn").addClass("disabled"),this.showProgressMessage(t)):this.showProgressMessage(t);else this.showProgressMessage(t)},this.displayError=function(t,e,n){jQuery("#providerLinkingMessages .provider-name").html(t);var i=this.feedbackMessage("connect_error");if(e){var r=this.feedbackMessage(e);r&&(i=r)}n&&$(".btn-logged-in-admin").length>0&&(i+=" Error: "+n),this.feedbackContainer().removeClass("alert-info alert-success").addClass("alert alert-danger").html(i).slideDown()},this.displaySuccess=function(t,e,n){var i=n.icon,r=e.htmlTarget,o=e.targetLogin,a=e.targetRegister,s=n.name,l="";switch(t.result){case"logged_in":case"2fa_needed":l=this.feedbackMessage("2fa_needed"),this.feedbackContainer().removeClass("alert-danger alert-warning alert-success").addClass("alert alert-info").html(l),window.location=t.redirect_url?t.redirect_url:e.redirectUrl;break;case"linking_complete":var c="";c=t.remote_account.email?t.remote_account.email:t.remote_account.firstname+" "+t.remote_account.lastname,c=c.trim(),l=this.feedbackMessage("linking_complete").trim().replace(":displayName",s),c&&(l=l.replace(/\.$/," ("+c+").")),this.feedbackContainer().removeClass("alert-danger alert-warning alert-info").addClass("alert alert-success").html(i+l);break;case"login_to_link":if(r===o)l=this.feedbackMessage("login_to_link-signin-required"),this.feedbackContainer().removeClass("alert-danger alert-success alert-info").addClass("alert alert-warning").html(i+l);else{var u=jQuery("input[name=email]"),d=jQuery("input[name=firstname]"),h=jQuery("input[name=lastname]");if(""===u.val()&&u.val(t.remote_account.email),""===d.val()&&d.val(t.remote_account.firstname),""===h.val()&&h.val(t.remote_account.lastname),r===a)"object"==typeof WHMCS.client.registration&&WHMCS.client.registration.prefillPassword(),l=this.feedbackMessage("login_to_link-registration-required"),this.feedbackContainer().fadeOut("slow",function(){$(this).removeClass("alert-danger alert-success alert-info").addClass("alert alert-warning").html(i+l).fadeIn("fast")});else{"object"==typeof WHMCS.client.registration&&WHMCS.client.registration.prefillPassword();var p=this;this.feedbackContainer().each(function(t,e){var n=$(e),r=n.siblings("div .providerPreLinking").data("linkContext");n.fadeOut("slow",function(){l="checkout-new"===r?p.feedbackMessage("checkout-new"):p.feedbackMessage("login_to_link-signin-required"),n.removeClass("alert-danger alert-success alert-info").addClass("alert alert-warning").html(i+l).fadeIn("fast")})})}}break;case"other_user_exists":l=this.feedbackMessage("other_user_exists"),this.feedbackContainer().removeClass("alert-info alert-success").addClass("alert alert-danger").html(i+l).slideDown();break;case"already_linked":l=this.feedbackMessage("already_linked"),this.feedbackContainer().removeClass("alert-info alert-success").addClass("alert alert-danger").html(i+l).slideDown();break;default:l=this.feedbackMessage("default"),this.feedbackContainer().removeClass("alert-info alert-success").addClass("alert alert-danger").html(i+l).slideDown()}},this.signIn=function(t,e,n,i,r){jQuery.ajax(t).done(function(t){i(),WHMCS.authn.provider.displaySuccess(t,e,n);var r=jQuery("#tableLinkedAccounts");r.length&&WHMCS.ui.dataTable.getTableById("tableLinkedAccounts").ajax.reload()}).error(function(){r(),WHMCS.authn.provider.displayError()})},this}}),function(t){WHMCS.hasModule("client")||WHMCS.loadModule("client",t)}({registration:function(){return this.prefillPassword=function(t){if(t=t||{},"undefined"==typeof t.hideContainer){var e=jQuery("#inputSecurityQId").attr("id")?"#containerPassword":"#containerNewUserSecurity";t.hideContainer=jQuery(e),t.hideInputs=!0}else"string"==typeof t.hideContainer&&t.hideContainer.length&&(t.hideContainer=jQuery(t.hideContainer));"undefined"==typeof t.form&&(t.form={password:[{id:"inputNewPassword1"},{id:"inputNewPassword2"}]});var n=function(){for(var e=WHMCS.utils.simpleRNG(),n=0,i=t.form.password.length;n<i;n++)jQuery("#"+t.form.password[n].id).val(e).trigger("keyup")};t.hideInputs?t.hideContainer.slideUp("fast",n):n()},this}}),function(t){WHMCS.hasModule("ui")||WHMCS.loadModule("ui",t)}({confirmation:function(){var t=[];return this.register=function(e){return"undefined"==typeof e&&(e="[data-toggle=confirmation]"),t.indexOf(e)<0&&t.push(e),jQuery(e).confirmation({rootSelector:e}),t},this},dataTable:function(){return this.tables={},this.register=function(){var t=this;jQuery("table.data-driven").each(function(e,n){t.getTableById(n.id,void 0)})},this.getTableById=function(t,e){if("undefined"==typeof this.tables[t]){var n=jQuery("#"+t);"undefined"==typeof e&&(e={paging:!1,searching:!1,ordering:!1,info:!1,language:{emptyTable:n.data("lang-empty-table")?n.data("lang-empty-table"):"No linked accounts found"},ajax:{url:n.data("ajax-url")}});var i=n.DataTable(e);if(n.data("on-draw"))i.on("draw.dt",function(t,e){var i=n.data("on-draw");"function"==typeof window[i]&&window[i](t,e)});else if(n.data("on-draw-rebind-confirmation")){var r=this;i.on("draw.dt",function(t){r.rebindConfirmation(t)})}this.tables[t]=i}return this.tables[t]},this.rebindConfirmation=function(t){for(var e=this,n=t.target.id,i=WHMCS.ui.confirmation.register(),r=0,o=i.length;r<o;r++)jQuery(i[r]).on("confirmed.bs.confirmation",function(t){t.preventDefault(),jQuery.post(jQuery(t.target).data("target-url"),{token:csrfToken}).done(function(t){"success"===t.status&&e.getTableById(n,void 0).ajax.reload()})})},this}}),function(t){WHMCS.hasModule("utils")||WHMCS.loadModule("utils",t)}(function(){return this.simpleRNG=function(){for(var t="./$_-#!,^*()|",e=0,n=0;e<3;n++)e+=Math.floor(10*Math.random()/2);e=Math.floor(e);for(var i="",r=0;r<e;r++)v=(Math.random()+1).toString(24).split(".")[1],i+=Math.random()>.5?btoa(v).substr(0,4):v,Math.random()>.5&&(i+=t.substr(Math.floor(13*Math.random()),1));return i},this}),jQuery(document).ready(function(){function t(t,e,n){n=n||saving;var i=/[^\s]+/g,r=[],o=0,a=0;if(t&&(r=t.match(i),a=t.split(/\\r\\n|\\r|\\n/).length),r)for(var s=0;s<r.length;s++)o+=r[s].charCodeAt(0)>=19968?r[s].length:1;return'<div class="small-font">lines: '+a+"&nbsp;&nbsp;&nbsp;words: "+o+(e?'&nbsp;&nbsp;&nbsp;<span class="markdown-save">'+n+"</span>":"")+"</div>"}function e(){o>=0&&(0==o&&jQuery("span.markdown-save").html(saved),o--,setTimeout(e,1e3))}if(jQuery("#languageChooser").popover({container:"body",placement:"bottom",template:'<div class="popover language-popover" role="tooltip"><div class="arrow"></div><div class="popover-content"></div></div>',html:!0,content:function(){return jQuery("#languageChooserContent").html()}}),jQuery("#loginOrRegister").popover({container:"body",placement:"bottom",template:'<div class="popover login-popover" role="tooltip"><div class="arrow"></div><div class="popover-content"></div></div>',html:!0,content:function(){return jQuery("#loginOrRegisterContent").html()}}),jQuery("#accountNotifications").popover({container:"body",placement:"bottom",template:'<div class="popover popover-user-notifications" role="tooltip"><div class="arrow"></div><div class="popover-inner"><h3 class="popover-title"></h3><div class="popover-content"><p></p></div></div></div>',html:!0,content:function(){return jQuery("#accountNotificationsContent").html()}}),jQuery(".truncate").each(function(){jQuery(this).attr("title",jQuery(this).text()).attr("data-toggle","tooltip").attr("data-placement","bottom")}),jQuery('[data-toggle="popover"]').popover({html:!0}),jQuery('[data-toggle="tooltip"]').tooltip(),jQuery("body").on("click",function(t){jQuery('[data-toggle="popover"]').each(function(){jQuery(this).is(t.target)||0!==jQuery(this).has(t.target).length||0!==jQuery(".popover").has(t.target).length||jQuery(this).popover("hide")})}),jQuery(".list-group-tab-nav a").click(function(){if(jQuery(this).hasClass("disabled"))return!1;jQuery(".list-group-tab-nav a").removeClass("active"),jQuery(this).addClass("active");var t=this.href.split("#")[1];t&&(window.location.hash="#"+t)}),jQuery(".panel-minimise").click(function(t){t.preventDefault(),jQuery(this).hasClass("minimised")?(jQuery(this).parents(".panel").find(".panel-body, .list-group").slideDown(),jQuery(this).removeClass("minimised")):(jQuery(this).parents(".panel").find(".panel-body, .list-group").slideUp(),jQuery(this).addClass("minimised"))}),jQuery(".container").width()<=720&&(jQuery(".panel-sidebar").find(".panel-body, .list-group").hide(),jQuery(".panel-sidebar").find(".panel-minimise").addClass("minimised")),""!=jQuery(location).attr("hash").substr(1)){var n=jQuery(location).attr("hash");jQuery(".tab-pane").removeClass("active"),jQuery(n).removeClass("fade").addClass("active"),jQuery(".list-group-tab-nav a").removeClass("active"),jQuery('a[href="'+n+'"]').addClass("active"),setTimeout(function(){window.scrollTo(0,0)},1)}jQuery.prototype.bootstrapSwitch&&jQuery(".toggle-switch-success").bootstrapSwitch({onColor:"success"}),jQuery(".panel-collapsable .panel-heading").click(function(t){var e=jQuery(this);e.parents(".panel").hasClass("panel-collapsed")?(e.parents(".panel").removeClass("panel-collapsed").find(".panel-body").slideDown(),e.find(".collapse-icon i").removeClass("fa-plus").addClass("fa-minus")):(e.parents(".panel").addClass("panel-collapsed").find(".panel-body").slideUp(),e.find(".collapse-icon i").removeClass("fa-minus").addClass("fa-plus"))}),"#frmLogin".length>0&&jQuery("#frmLogin input:text:visible:first").focus(),"#twofaactivation".length>0&&jQuery("#twofaactivation input:text:visible:first,#twofaactivation input:password:visible:first").focus(),jQuery("#inputSubaccountActivate").click(function(){null!=jQuery("#inputSubaccountActivate:checked").val()?jQuery("#subacct-container").removeClass("hidden"):jQuery("#subacct-container").addClass("hidden")}),jQuery(".setBulkAction").click(function(t){t.preventDefault();var e=jQuery(this).attr("id").replace("Link","");if(0!=jQuery("#"+e).length){var n=jQuery("#domainForm").attr("action");jQuery("#domainForm").attr("action",n+"#"+e)}jQuery("#bulkaction").val(e),jQuery("#domainForm").submit()}),jQuery(".stopEventBubble").click(function(t){t.stopPropagation()}),jQuery(".tabControlLink").on("click",function(t){t.preventDefault();var e=jQuery(this).attr("href");jQuery("a[href='/"+e+"']").click()}),jQuery(".ticket-reply .rating span.star").click(function(t){window.location="viewticket.php?tid="+jQuery(this).parent(".rating").attr("ticketid")+"&c="+jQuery(this).parent(".rating").attr("ticketkey")+"&rating=rate"+jQuery(this).parent(".rating").attr("ticketreplyid")+"_"+jQuery(this).attr("rate")}),jQuery("a.autoLinked").click(function(t){t.preventDefault();var e=window.open();e.opener=null,e.location=t.target.href}),jQuery("#inputAllowSso").on("switchChange.bootstrapSwitch",function(t,e){e?(jQuery("#ssoStatusTextEnabled").removeClass("hidden").show(),jQuery("#ssoStatusTextDisabled").hide()):(jQuery("#ssoStatusTextDisabled").removeClass("hidden").show(),
jQuery("#ssoStatusTextEnabled").hide()),jQuery.post("clientarea.php",jQuery("#frmSingleSignOn").serialize())}),jQuery(".btn-service-sso").on("click",function(t){t.preventDefault();var e=jQuery(this),n=e.parents("form");0==n.length&&(n=e.find("form")),n.hasClass("disabled")||(e.find(".loading").removeClass("hidden").show().end().attr("disabled","disabled"),jQuery.post(window.location.href,n.serialize(),function(t){e.find(".loading").hide().end().removeAttr("disabled"),n.find(".login-feedback").html(""),t.error&&n.find(".login-feedback").html(t.error),void 0!==t.redirect&&"window|"===t.redirect.substr(0,7)&&window.open(t.redirect.substr(7),"_blank")},"json"))}),jQuery(".btn-sidebar-form-submit").on("click",function(t){t.preventDefault(),jQuery(this).find(".loading").removeClass("hidden").show().end().attr("disabled","disabled");var e=jQuery(this).parents("form");0==e.length&&(e=jQuery(this).find("form")),0!==e.length&&e.hasClass("disabled")===!1?e.submit():jQuery(this).find(".loading").hide().end().removeAttr("disabled")}),jQuery(".email-verification .btn.close").click(function(t){t.preventDefault(),jQuery.post("clientarea.php","action=dismiss-email-banner&token="+csrfToken),jQuery(".email-verification").hide()}),jQuery(".back-to-top").click(function(t){t.preventDefault(),jQuery("body,html").animate({scrollTop:0},500)}),jQuery(".choose-language").click(function(t){t.preventDefault()});var i=0,r="clientMDE",o=0;jQuery(".markdown-editor").each(function(n){i++;var a=jQuery(this).data("auto-save-name"),s=jQuery(this).attr("id")+"-footer";"undefined"==typeof a&&(a="client_area"),window[r+i.toString()]=jQuery(this).markdown({footer:'<div id="'+s+'" class="markdown-editor-status"></div>',autofocus:!1,savable:!1,resize:"vertical",iconlibrary:"fa",language:locale,onShow:function(e){var n="",i=!1;"undefined"!=typeof Storage&&(n=localStorage.getItem(a),i=!0,n&&"undefined"!=typeof n&&e.setContent(n)),jQuery("#"+s).html(t(n,i,saved))},onChange:function(n){var i=n.getContent(),r=!1;"undefined"!=typeof Storage&&(o=3,r=!0,localStorage.setItem(a,i),e()),jQuery("#"+s).html(t(i,r))},onPreview:function(t){var e,n=t.getContent();return jQuery.ajax({url:"clientarea.php",async:!1,data:{token:csrfToken,action:"parseMarkdown",content:n},dataType:"json",success:function(t){e=t}}),e.body?e.body:""},additionalButtons:[[{name:"groupCustom",data:[{name:"cmdHelp",title:"Help",hotkey:"Ctrl+F1",btnClass:"btn open-modal",icon:{glyph:"glyphicons glyphicons-question-sign",fa:"fa fa-question-circle","fa-3":"icon-question-sign"},callback:function(t){t.$editor.removeClass("md-fullscreen-mode")}}]}]],hiddenButtons:["cmdImage"]}),jQuery('button[data-handler="bootstrap-markdown-cmdHelp"]').attr("data-modal-title",markdownGuide).attr("href","submitticket.php?action=markdown"),jQuery(this).closest("form").bind({submit:function(){"undefined"!=typeof Storage&&localStorage.removeItem(a)}})}),jQuery("#btnResendVerificationEmail").click(function(){jQuery.post("clientarea.php",{token:csrfToken,action:"resendVerificationEmail"}).done(function(t){jQuery("#btnResendVerificationEmail").html("Email Sent").prop("disabled",!0)})});var a=jQuery("input[name=2fasetup]").parent("form");a.submit(function(t){t.preventDefault(),openModal(a.attr("action"),a.serialize(),"Loading...")}),jQuery("#frmPayment").find("#btnSubmit").on("click",function(){jQuery(this).find("span").toggleClass("hidden")}),jQuery(".btn-resend-approver-email").click(function(){jQuery.post(jQuery(this).data("url"),{addonId:jQuery(this).data("addonid"),serviceId:jQuery(this).data("serviceid")},function(t){1==t.success?jQuery(".alert-table-ssl-manage").addClass("alert-success").text("Approver Email Resent").removeClass("hidden"):jQuery(".alert-table-ssl-manage").addClass("alert-danger").text("Error: "+t.message).removeClass("hidden")})}),WHMCS.ui.dataTable.register(),WHMCS.ui.confirmation.register(),jQuery("#frmReply").submit(function(t){jQuery("#frmReply").find('input[type="submit"]').addClass("disabled").prop("disabled",!0)})});var lastTicketMsg;jQuery(document).ready(function(){jQuery(document).on("click",".open-modal",function(t){t.preventDefault();var e=jQuery(this).attr("href"),n=jQuery(this).data("modal-size"),i=jQuery(this).data("modal-class"),r=jQuery(this).data("modal-title"),o=jQuery(this).data("btn-submit-id"),a=jQuery(this).data("btn-submit-label"),s=jQuery(this).data("btn-close-hide"),l=jQuery(this).attr("disabled");l||openModal(e,"",r,n,i,a,o,s)}),jQuery("#modalAjax").on("hidden.bs.modal",function(t){if(jQuery(this).hasClass("modal-feature-highlights")){var e=jQuery("#cbFeatureHighlightsDismissForVersion").is(":checked");jQuery.ajax("whatsnew.php?dismiss=1&until_next_update="+(e?"1":"0"),{dataType:"json"})}jQuery("#modalAjax").find(".modal-body").empty(),jQuery("#modalAjax").children("div.modal-dialog").removeClass("modal-lg"),jQuery("#modalAjax").removeClass().addClass("modal whmcs-modal fade"),jQuery("#modalAjax .modal-title").html("Title"),jQuery("#modalAjax .modal-submit").html("Submit").removeClass().addClass("btn btn-primary modal-submit").removeAttr("id").removeAttr("disabled"),jQuery("#modalAjax .loader").show()})}),function(){var t=[].slice;!function(e,n){"use strict";var i;return i=function(){function t(t,n){null==n&&(n={}),this.$element=e(t),this.options=e.extend({},e.fn.bootstrapSwitch.defaults,{state:this.$element.is(":checked"),size:this.$element.data("size"),animate:this.$element.data("animate"),disabled:this.$element.is(":disabled"),readonly:this.$element.is("[readonly]"),indeterminate:this.$element.data("indeterminate"),inverse:this.$element.data("inverse"),radioAllOff:this.$element.data("radio-all-off"),onColor:this.$element.data("on-color"),offColor:this.$element.data("off-color"),onText:this.$element.data("on-text"),offText:this.$element.data("off-text"),labelText:this.$element.data("label-text"),handleWidth:this.$element.data("handle-width"),labelWidth:this.$element.data("label-width"),baseClass:this.$element.data("base-class"),wrapperClass:this.$element.data("wrapper-class")},n),this.$wrapper=e("<div>",{class:function(t){return function(){var e;return e=[""+t.options.baseClass].concat(t._getClasses(t.options.wrapperClass)),e.push(t.options.state?""+t.options.baseClass+"-on":""+t.options.baseClass+"-off"),null!=t.options.size&&e.push(""+t.options.baseClass+"-"+t.options.size),t.options.disabled&&e.push(""+t.options.baseClass+"-disabled"),t.options.readonly&&e.push(""+t.options.baseClass+"-readonly"),t.options.indeterminate&&e.push(""+t.options.baseClass+"-indeterminate"),t.options.inverse&&e.push(""+t.options.baseClass+"-inverse"),t.$element.attr("id")&&e.push(""+t.options.baseClass+"-id-"+t.$element.attr("id")),e.join(" ")}}(this)()}),this.$container=e("<div>",{class:""+this.options.baseClass+"-container"}),this.$on=e("<span>",{html:this.options.onText,class:""+this.options.baseClass+"-handle-on "+this.options.baseClass+"-"+this.options.onColor}),this.$off=e("<span>",{html:this.options.offText,class:""+this.options.baseClass+"-handle-off "+this.options.baseClass+"-"+this.options.offColor}),this.$label=e("<span>",{html:this.options.labelText,class:""+this.options.baseClass+"-label"}),this.$element.on("init.bootstrapSwitch",function(e){return function(){return e.options.onInit.apply(t,arguments)}}(this)),this.$element.on("switchChange.bootstrapSwitch",function(e){return function(){return e.options.onSwitchChange.apply(t,arguments)}}(this)),this.$container=this.$element.wrap(this.$container).parent(),this.$wrapper=this.$container.wrap(this.$wrapper).parent(),this.$element.before(this.options.inverse?this.$off:this.$on).before(this.$label).before(this.options.inverse?this.$on:this.$off),this.options.indeterminate&&this.$element.prop("indeterminate",!0),this._init(),this._elementHandlers(),this._handleHandlers(),this._labelHandlers(),this._formHandler(),this._externalLabelHandler(),this.$element.trigger("init.bootstrapSwitch")}return t.prototype._constructor=t,t.prototype.state=function(t,e){return"undefined"==typeof t?this.options.state:this.options.disabled||this.options.readonly?this.$element:this.options.state&&!this.options.radioAllOff&&this.$element.is(":radio")?this.$element:(this.options.indeterminate&&this.indeterminate(!1),t=!!t,this.$element.prop("checked",t).trigger("change.bootstrapSwitch",e),this.$element)},t.prototype.toggleState=function(t){return this.options.disabled||this.options.readonly?this.$element:this.options.indeterminate?(this.indeterminate(!1),this.state(!0)):this.$element.prop("checked",!this.options.state).trigger("change.bootstrapSwitch",t)},t.prototype.size=function(t){return"undefined"==typeof t?this.options.size:(null!=this.options.size&&this.$wrapper.removeClass(""+this.options.baseClass+"-"+this.options.size),t&&this.$wrapper.addClass(""+this.options.baseClass+"-"+t),this._width(),this._containerPosition(),this.options.size=t,this.$element)},t.prototype.animate=function(t){return"undefined"==typeof t?this.options.animate:(t=!!t,t===this.options.animate?this.$element:this.toggleAnimate())},t.prototype.toggleAnimate=function(){return this.options.animate=!this.options.animate,this.$wrapper.toggleClass(""+this.options.baseClass+"-animate"),this.$element},t.prototype.disabled=function(t){return"undefined"==typeof t?this.options.disabled:(t=!!t,t===this.options.disabled?this.$element:this.toggleDisabled())},t.prototype.toggleDisabled=function(){return this.options.disabled=!this.options.disabled,this.$element.prop("disabled",this.options.disabled),this.$wrapper.toggleClass(""+this.options.baseClass+"-disabled"),this.$element},t.prototype.readonly=function(t){return"undefined"==typeof t?this.options.readonly:(t=!!t,t===this.options.readonly?this.$element:this.toggleReadonly())},t.prototype.toggleReadonly=function(){return this.options.readonly=!this.options.readonly,this.$element.prop("readonly",this.options.readonly),this.$wrapper.toggleClass(""+this.options.baseClass+"-readonly"),this.$element},t.prototype.indeterminate=function(t){return"undefined"==typeof t?this.options.indeterminate:(t=!!t,t===this.options.indeterminate?this.$element:this.toggleIndeterminate())},t.prototype.toggleIndeterminate=function(){return this.options.indeterminate=!this.options.indeterminate,this.$element.prop("indeterminate",this.options.indeterminate),this.$wrapper.toggleClass(""+this.options.baseClass+"-indeterminate"),this._containerPosition(),this.$element},t.prototype.inverse=function(t){return"undefined"==typeof t?this.options.inverse:(t=!!t,t===this.options.inverse?this.$element:this.toggleInverse())},t.prototype.toggleInverse=function(){var t,e;return this.$wrapper.toggleClass(""+this.options.baseClass+"-inverse"),e=this.$on.clone(!0),t=this.$off.clone(!0),this.$on.replaceWith(t),this.$off.replaceWith(e),this.$on=t,this.$off=e,this.options.inverse=!this.options.inverse,this.$element},t.prototype.onColor=function(t){var e;return e=this.options.onColor,"undefined"==typeof t?e:(null!=e&&this.$on.removeClass(""+this.options.baseClass+"-"+e),this.$on.addClass(""+this.options.baseClass+"-"+t),this.options.onColor=t,this.$element)},t.prototype.offColor=function(t){var e;return e=this.options.offColor,"undefined"==typeof t?e:(null!=e&&this.$off.removeClass(""+this.options.baseClass+"-"+e),this.$off.addClass(""+this.options.baseClass+"-"+t),this.options.offColor=t,this.$element)},t.prototype.onText=function(t){return"undefined"==typeof t?this.options.onText:(this.$on.html(t),this._width(),this._containerPosition(),this.options.onText=t,this.$element)},t.prototype.offText=function(t){return"undefined"==typeof t?this.options.offText:(this.$off.html(t),this._width(),this._containerPosition(),this.options.offText=t,this.$element)},t.prototype.labelText=function(t){return"undefined"==typeof t?this.options.labelText:(this.$label.html(t),this._width(),this.options.labelText=t,this.$element)},t.prototype.handleWidth=function(t){return"undefined"==typeof t?this.options.handleWidth:(this.options.handleWidth=t,this._width(),this._containerPosition(),this.$element)},t.prototype.labelWidth=function(t){return"undefined"==typeof t?this.options.labelWidth:(this.options.labelWidth=t,this._width(),this._containerPosition(),this.$element)},t.prototype.baseClass=function(t){return this.options.baseClass},t.prototype.wrapperClass=function(t){return"undefined"==typeof t?this.options.wrapperClass:(t||(t=e.fn.bootstrapSwitch.defaults.wrapperClass),this.$wrapper.removeClass(this._getClasses(this.options.wrapperClass).join(" ")),this.$wrapper.addClass(this._getClasses(t).join(" ")),this.options.wrapperClass=t,this.$element)},t.prototype.radioAllOff=function(t){return"undefined"==typeof t?this.options.radioAllOff:(t=!!t,t===this.options.radioAllOff?this.$element:(this.options.radioAllOff=t,this.$element))},t.prototype.onInit=function(t){return"undefined"==typeof t?this.options.onInit:(t||(t=e.fn.bootstrapSwitch.defaults.onInit),this.options.onInit=t,this.$element)},t.prototype.onSwitchChange=function(t){return"undefined"==typeof t?this.options.onSwitchChange:(t||(t=e.fn.bootstrapSwitch.defaults.onSwitchChange),this.options.onSwitchChange=t,this.$element)},t.prototype.destroy=function(){var t;return t=this.$element.closest("form"),t.length&&t.off("reset.bootstrapSwitch").removeData("bootstrap-switch"),this.$container.children().not(this.$element).remove(),this.$element.unwrap().unwrap().off(".bootstrapSwitch").removeData("bootstrap-switch"),this.$element},t.prototype._width=function(){var t,e;return t=this.$on.add(this.$off),t.add(this.$label).css("width",""),e="auto"===this.options.handleWidth?Math.max(this.$on.width(),this.$off.width()):this.options.handleWidth,t.width(e),this.$label.width(function(t){return function(n,i){return"auto"!==t.options.labelWidth?t.options.labelWidth:i<e?e:i}}(this)),this._handleWidth=this.$on.outerWidth(),this._labelWidth=this.$label.outerWidth(),this.$container.width(2*this._handleWidth+this._labelWidth),this.$wrapper.width(this._handleWidth+this._labelWidth)},t.prototype._containerPosition=function(t,e){if(null==t&&(t=this.options.state),this.$container.css("margin-left",function(e){return function(){var n;return n=[0,"-"+e._handleWidth+"px"],e.options.indeterminate?"-"+e._handleWidth/2+"px":t?e.options.inverse?n[1]:n[0]:e.options.inverse?n[0]:n[1]}}(this)),e)return setTimeout(function(){return e()},50)},t.prototype._init=function(){var t,e;return t=function(t){return function(){return t._width(),t._containerPosition(null,function(){if(t.options.animate)return t.$wrapper.addClass(""+t.options.baseClass+"-animate")})}}(this),this.$wrapper.is(":visible")?t():e=n.setInterval(function(i){return function(){if(i.$wrapper.is(":visible"))return t(),n.clearInterval(e)}}(this),50)},t.prototype._elementHandlers=function(){return this.$element.on({"change.bootstrapSwitch":function(t){return function(n,i){var r;if(n.preventDefault(),n.stopImmediatePropagation(),r=t.$element.is(":checked"),t._containerPosition(r),r!==t.options.state)return t.options.state=r,t.$wrapper.toggleClass(""+t.options.baseClass+"-off").toggleClass(""+t.options.baseClass+"-on"),i?void 0:(t.$element.is(":radio")&&e("[name='"+t.$element.attr("name")+"']").not(t.$element).prop("checked",!1).trigger("change.bootstrapSwitch",!0),t.$element.trigger("switchChange.bootstrapSwitch",[r]))}}(this),"focus.bootstrapSwitch":function(t){return function(e){return e.preventDefault(),t.$wrapper.addClass(""+t.options.baseClass+"-focused")}}(this),"blur.bootstrapSwitch":function(t){return function(e){return e.preventDefault(),t.$wrapper.removeClass(""+t.options.baseClass+"-focused")}}(this),"keydown.bootstrapSwitch":function(t){return function(e){if(e.which&&!t.options.disabled&&!t.options.readonly)switch(e.which){case 37:return e.preventDefault(),e.stopImmediatePropagation(),t.state(!1);case 39:return e.preventDefault(),e.stopImmediatePropagation(),t.state(!0)}}}(this)})},t.prototype._handleHandlers=function(){return this.$on.on("click.bootstrapSwitch",function(t){return function(e){return e.preventDefault(),e.stopPropagation(),t.state(!1),t.$element.trigger("focus.bootstrapSwitch")}}(this)),this.$off.on("click.bootstrapSwitch",function(t){return function(e){return e.preventDefault(),e.stopPropagation(),t.state(!0),t.$element.trigger("focus.bootstrapSwitch")}}(this))},t.prototype._labelHandlers=function(){return this.$label.on({"mousedown.bootstrapSwitch touchstart.bootstrapSwitch":function(t){return function(e){if(!(t._dragStart||t.options.disabled||t.options.readonly))return e.preventDefault(),e.stopPropagation(),t._dragStart=(e.pageX||e.originalEvent.touches[0].pageX)-parseInt(t.$container.css("margin-left"),10),t.options.animate&&t.$wrapper.removeClass(""+t.options.baseClass+"-animate"),t.$element.trigger("focus.bootstrapSwitch")}}(this),"mousemove.bootstrapSwitch touchmove.bootstrapSwitch":function(t){return function(e){var n;if(null!=t._dragStart&&(e.preventDefault(),n=(e.pageX||e.originalEvent.touches[0].pageX)-t._dragStart,!(n<-t._handleWidth||n>0)))return t._dragEnd=n,t.$container.css("margin-left",""+t._dragEnd+"px")}}(this),"mouseup.bootstrapSwitch touchend.bootstrapSwitch":function(t){return function(e){var n;if(t._dragStart)return e.preventDefault(),t.options.animate&&t.$wrapper.addClass(""+t.options.baseClass+"-animate"),t._dragEnd?(n=t._dragEnd>-(t._handleWidth/2),t._dragEnd=!1,t.state(t.options.inverse?!n:n)):t.state(!t.options.state),t._dragStart=!1}}(this),"mouseleave.bootstrapSwitch":function(t){return function(e){return t.$label.trigger("mouseup.bootstrapSwitch")}}(this)})},t.prototype._externalLabelHandler=function(){var t;return t=this.$element.closest("label"),t.on("click",function(e){return function(n){if(n.preventDefault(),n.stopImmediatePropagation(),n.target===t[0])return e.toggleState()}}(this))},t.prototype._formHandler=function(){var t;if(t=this.$element.closest("form"),!t.data("bootstrap-switch"))return t.on("reset.bootstrapSwitch",function(){return n.setTimeout(function(){return t.find("input").filter(function(){return e(this).data("bootstrap-switch")}).each(function(){return e(this).bootstrapSwitch("state",this.checked)})},1)}).data("bootstrap-switch",!0)},t.prototype._getClasses=function(t){var n,i,r,o;if(!e.isArray(t))return[""+this.options.baseClass+"-"+t];for(i=[],r=0,o=t.length;r<o;r++)n=t[r],i.push(""+this.options.baseClass+"-"+n);return i},t}(),e.fn.bootstrapSwitch=function(){var n,r,o;return r=arguments[0],n=2<=arguments.length?t.call(arguments,1):[],o=this,this.each(function(){var t,a;if(t=e(this),a=t.data("bootstrap-switch"),a||t.data("bootstrap-switch",a=new i(this,r)),"string"==typeof r)return o=a[r].apply(a,n)}),o},e.fn.bootstrapSwitch.Constructor=i,e.fn.bootstrapSwitch.defaults={state:!0,size:null,animate:!0,disabled:!1,readonly:!1,indeterminate:!1,inverse:!1,radioAllOff:!1,onColor:"primary",offColor:"default",onText:"ON",offText:"OFF",labelText:"&nbsp;",handleWidth:"auto",labelWidth:"auto",baseClass:"bootstrap-switch",wrapperClass:"wrapper",onInit:function(){},onSwitchChange:function(){}}}(window.jQuery,window)}.call(this),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):jQuery)}(function(t){"use strict";var e=function(e,n){var i=["autofocus","savable","hideable","width","height","resize","iconlibrary","language","footer","fullscreen","hiddenButtons","disabledButtons"];t.each(i,function(i,r){"undefined"!=typeof t(e).data(r)&&(n="object"==typeof n?n:{},n[r]=t(e).data(r))}),this.$ns="bootstrap-markdown",this.$element=t(e),this.$editable={el:null,type:null,attrKeys:[],attrValues:[],content:null},this.$options=t.extend(!0,{},t.fn.markdown.defaults,n,this.$element.data("options")),this.$oldContent=null,this.$isPreview=!1,this.$isFullscreen=!1,this.$editor=null,this.$textarea=null,this.$handler=[],this.$callback=[],this.$nextTab=[],this.showEditor()};e.prototype={constructor:e,__alterButtons:function(e,n){var i=this.$handler,r="all"==e,o=this;t.each(i,function(t,i){var a=!0;a=!r&&i.indexOf(e)<0,a===!1&&n(o.$editor.find('button[data-handler="'+i+'"]'))})},__buildButtons:function(e,n){var i,r=this.$ns,o=this.$handler,a=this.$callback;for(i=0;i<e.length;i++){var s,l=e[i];for(s=0;s<l.length;s++){var c,u=l[s].data,d=t("<div/>",{class:"btn-group"});for(c=0;c<u.length;c++){var h,p,f=u[c],g=r+"-"+f.name,m=this.__getIcon(f.icon),v=f.btnText?f.btnText:"",b=f.btnClass?f.btnClass:"btn",y=f.tabIndex?f.tabIndex:"-1",w="undefined"!=typeof f.hotkey?f.hotkey:"",x="undefined"!=typeof jQuery.hotkeys&&""!==w?" ("+w+")":"";h=t("<button></button>"),h.text(" "+this.__localize(v)).addClass("btn-default btn-sm").addClass(b),b.match(/btn\-(primary|success|info|warning|danger|link)/)&&h.removeClass("btn-default"),h.attr({type:"button",title:this.__localize(f.title)+x,tabindex:y,"data-provider":r,"data-handler":g,"data-hotkey":w}),f.toggle===!0&&h.attr("data-toggle","button"),p=t("<span/>"),p.addClass(m),p.prependTo(h),d.append(h),o.push(g),a.push(f.callback)}n.append(d)}}return n},__setListener:function(){var e="undefined"!=typeof this.$textarea.attr("rows"),n=this.$textarea.val().split("\n").length>5?this.$textarea.val().split("\n").length:"5",i=e?this.$textarea.attr("rows"):n;this.$textarea.attr("rows",i),this.$options.resize&&this.$textarea.css("resize",this.$options.resize),this.$textarea.on({focus:t.proxy(this.focus,this),keyup:t.proxy(this.keyup,this),change:t.proxy(this.change,this),select:t.proxy(this.select,this)}),this.eventSupported("keydown")&&this.$textarea.on("keydown",t.proxy(this.keydown,this)),this.eventSupported("keypress")&&this.$textarea.on("keypress",t.proxy(this.keypress,this)),this.$textarea.data("markdown",this)},__handle:function(e){var n=t(e.currentTarget),i=this.$handler,r=this.$callback,o=n.attr("data-handler"),a=i.indexOf(o),s=r[a];t(e.currentTarget).focus(),s(this),this.change(this),o.indexOf("cmdSave")<0&&this.$textarea.focus(),e.preventDefault()},__localize:function(e){var n=t.fn.markdown.messages,i=this.$options.language;return"undefined"!=typeof n&&"undefined"!=typeof n[i]&&"undefined"!=typeof n[i][e]?n[i][e]:e},__getIcon:function(t){return"object"==typeof t?t[this.$options.iconlibrary]:t},setFullscreen:function(e){var n=this.$editor,i=this.$textarea;e===!0?(n.addClass("md-fullscreen-mode"),t("body").addClass("md-nooverflow"),this.$options.onFullscreen(this)):(n.removeClass("md-fullscreen-mode"),t("body").removeClass("md-nooverflow"),1==this.$isPreview&&this.hidePreview().showPreview()),this.$isFullscreen=e,i.focus()},showEditor:function(){var e,n=this,i=this.$ns,r=this.$element,o=(r.css("height"),r.css("width"),this.$editable),a=this.$handler,s=this.$callback,l=this.$options,c=t("<div/>",{class:"md-editor",click:function(){n.focus()}});if(null===this.$editor){var u=t("<div/>",{class:"md-header btn-toolbar"}),d=[];if(l.buttons.length>0&&(d=d.concat(l.buttons[0])),l.additionalButtons.length>0&&t.each(l.additionalButtons[0],function(e,n){var i=t.grep(d,function(t,e){return t.name===n.name});i.length>0?i[0].data=i[0].data.concat(n.data):d.push(l.additionalButtons[0][e])}),l.reorderButtonGroups.length>0&&(d=d.filter(function(t){return l.reorderButtonGroups.indexOf(t.name)>-1}).sort(function(t,e){return l.reorderButtonGroups.indexOf(t.name)<l.reorderButtonGroups.indexOf(e.name)?-1:l.reorderButtonGroups.indexOf(t.name)>l.reorderButtonGroups.indexOf(e.name)?1:0})),d.length>0&&(u=this.__buildButtons([d],u)),l.fullscreen.enable&&u.append('<div class="md-controls"><a class="md-control md-control-fullscreen" href="#"><span class="'+this.__getIcon(l.fullscreen.icons.fullscreenOn)+'"></span></a></div>').on("click",".md-control-fullscreen",function(t){t.preventDefault(),n.setFullscreen(!0)}),c.append(u),r.is("textarea"))r.before(c),e=r,e.addClass("md-input"),c.append(e);else{var h="function"==typeof toMarkdown?toMarkdown(r.html()):r.html(),p=t.trim(h);e=t("<textarea/>",{class:"md-input",val:p}),c.append(e),o.el=r,o.type=r.prop("tagName").toLowerCase(),o.content=r.html(),t(r[0].attributes).each(function(){o.attrKeys.push(this.nodeName),o.attrValues.push(this.nodeValue)}),r.replaceWith(c)}var f=t("<div/>",{class:"md-footer"}),g=!1,m="";if(l.savable){g=!0;var v="cmdSave";a.push(v),s.push(l.onSave),f.append('<button class="btn btn-success" data-provider="'+i+'" data-handler="'+v+'"><i class="icon icon-white icon-ok"></i> '+this.__localize("Save")+"</button>")}if(m="function"==typeof l.footer?l.footer(this):l.footer,""!==t.trim(m)&&(g=!0,f.append(m)),g&&c.append(f),l.width&&"inherit"!==l.width&&(jQuery.isNumeric(l.width)?(c.css("display","table"),e.css("width",l.width+"px")):c.addClass(l.width)),l.height&&"inherit"!==l.height)if(jQuery.isNumeric(l.height)){var b=l.height;u&&(b=Math.max(0,b-u.outerHeight())),f&&(b=Math.max(0,b-f.outerHeight())),e.css("height",b+"px")}else c.addClass(l.height);this.$editor=c,this.$textarea=e,this.$editable=o,this.$oldContent=this.getContent(),this.__setListener(),this.$editor.attr("id",(new Date).getTime()),this.$editor.on("click",'[data-provider="bootstrap-markdown"]',t.proxy(this.__handle,this)),(this.$element.is(":disabled")||this.$element.is("[readonly]"))&&(this.$editor.addClass("md-editor-disabled"),this.disableButtons("all")),this.eventSupported("keydown")&&"object"==typeof jQuery.hotkeys&&u.find('[data-provider="bootstrap-markdown"]').each(function(){var n=t(this),i=n.attr("data-hotkey");""!==i.toLowerCase()&&e.bind("keydown",i,function(){return n.trigger("click"),!1})}),"preview"===l.initialstate?this.showPreview():"fullscreen"===l.initialstate&&l.fullscreen.enable&&this.setFullscreen(!0)}else this.$editor.show();return l.autofocus&&(this.$textarea.focus(),this.$editor.addClass("active")),l.fullscreen.enable&&l.fullscreen!==!1&&(this.$editor.append('<div class="md-fullscreen-controls"><a href="#" class="exit-fullscreen" title="Exit fullscreen"><span class="'+this.__getIcon(l.fullscreen.icons.fullscreenOff)+'"></span></a></div>'),this.$editor.on("click",".exit-fullscreen",function(t){t.preventDefault(),n.setFullscreen(!1)})),this.hideButtons(l.hiddenButtons),this.disableButtons(l.disabledButtons),l.onShow(this),this},parseContent:function(t){var e,t=t||this.$textarea.val();return e=this.$options.parser?this.$options.parser(t):"object"==typeof markdown?markdown.toHTML(t):"function"==typeof marked?marked(t):t},showPreview:function(){var e,n,i=this.$options,r=this.$textarea,o=r.next(),a=t("<div/>",{class:"md-preview","data-provider":"markdown-preview"});return 1==this.$isPreview?this:(this.$isPreview=!0,this.disableButtons("all").enableButtons("cmdPreview"),n=i.onPreview(this),e="string"==typeof n?n:this.parseContent(),a.html(e),o&&"md-footer"==o.attr("class")?a.insertBefore(o):r.parent().append(a),a.css({width:r.outerWidth()+"px",height:r.outerHeight()+"px"}),this.$options.resize&&a.css("resize",this.$options.resize),r.hide(),a.data("markdown",this),(this.$element.is(":disabled")||this.$element.is("[readonly]"))&&(this.$editor.addClass("md-editor-disabled"),this.disableButtons("all")),this)},hidePreview:function(){this.$isPreview=!1;var t=this.$editor.find('div[data-provider="markdown-preview"]');return t.remove(),this.enableButtons("all"),this.disableButtons(this.$options.disabledButtons),this.$textarea.show(),this.__setListener(),this},isDirty:function(){return this.$oldContent!=this.getContent()},getContent:function(){return this.$textarea.val()},setContent:function(t){return this.$textarea.val(t),this},findSelection:function(t){var e,n=this.getContent();if(e=n.indexOf(t),e>=0&&t.length>0){var i,r=this.getSelection();return this.setSelection(e,e+t.length),i=this.getSelection(),this.setSelection(r.start,r.end),i}return null},getSelection:function(){var t=this.$textarea[0];return("selectionStart"in t&&function(){var e=t.selectionEnd-t.selectionStart;return{start:t.selectionStart,end:t.selectionEnd,length:e,text:t.value.substr(t.selectionStart,e)}}||function(){return null})()},setSelection:function(t,e){var n=this.$textarea[0];return("selectionStart"in n&&function(){n.selectionStart=t,n.selectionEnd=e}||function(){return null})()},replaceSelection:function(t){var e=this.$textarea[0];return("selectionStart"in e&&function(){return e.value=e.value.substr(0,e.selectionStart)+t+e.value.substr(e.selectionEnd,e.value.length),e.selectionStart=e.value.length,this}||function(){return e.value+=t,jQuery(e)})()},getNextTab:function(){if(0===this.$nextTab.length)return null;var t,e=this.$nextTab.shift();return"function"==typeof e?t=e():"object"==typeof e&&e.length>0&&(t=e),t},setNextTab:function(t,e){if("string"==typeof t){var n=this;this.$nextTab.push(function(){return n.findSelection(t)})}else if("number"==typeof t&&"number"==typeof e){var i=this.getSelection();this.setSelection(t,e),this.$nextTab.push(this.getSelection()),this.setSelection(i.start,i.end)}},__parseButtonNameParam:function(t){return"string"==typeof t?t.split(" "):t},enableButtons:function(e){var n=this.__parseButtonNameParam(e),i=this;return t.each(n,function(t,e){i.__alterButtons(n[t],function(t){t.removeAttr("disabled")})}),this},disableButtons:function(e){var n=this.__parseButtonNameParam(e),i=this;return t.each(n,function(t,e){i.__alterButtons(n[t],function(t){t.attr("disabled","disabled")})}),this},hideButtons:function(e){var n=this.__parseButtonNameParam(e),i=this;return t.each(n,function(t,e){i.__alterButtons(n[t],function(t){t.addClass("hidden")})}),this},showButtons:function(e){var n=this.__parseButtonNameParam(e),i=this;return t.each(n,function(t,e){i.__alterButtons(n[t],function(t){t.removeClass("hidden")})}),this},eventSupported:function(t){var e=t in this.$element;return e||(this.$element.setAttribute(t,"return;"),e="function"==typeof this.$element[t]),e},keyup:function(t){var e=!1;switch(t.keyCode){case 40:case 38:case 16:case 17:case 18:break;case 9:var n;if(n=this.getNextTab(),null!==n){var i=this;setTimeout(function(){i.setSelection(n.start,n.end)},500),e=!0}else{var r=this.getSelection();r.start==r.end&&r.end==this.getContent().length?e=!1:(this.setSelection(this.getContent().length,this.getContent().length),e=!0)}break;case 13:e=!1;break;case 27:this.$isFullscreen&&this.setFullscreen(!1),e=!1;break;default:e=!1}e&&(t.stopPropagation(),t.preventDefault()),this.$options.onChange(this)},change:function(t){return this.$options.onChange(this),this},select:function(t){return this.$options.onSelect(this),this},focus:function(e){var n=this.$options,i=(n.hideable,this.$editor);return i.addClass("active"),t(document).find(".md-editor").each(function(){if(t(this).attr("id")!==i.attr("id")){var e;e=t(this).find("textarea").data("markdown"),null===e&&(e=t(this).find('div[data-provider="markdown-preview"]').data("markdown")),e&&e.blur()}}),n.onFocus(this),this},blur:function(e){var n=this.$options,i=n.hideable,r=this.$editor,o=this.$editable;if(r.hasClass("active")||0===this.$element.parent().length){if(r.removeClass("active"),i)if(null!==o.el){var a=t("<"+o.type+"/>"),s=this.getContent(),l=this.parseContent(s);t(o.attrKeys).each(function(t,e){a.attr(o.attrKeys[t],o.attrValues[t])}),a.html(l),r.replaceWith(a)}else r.hide();n.onBlur(this)}return this}};var n=t.fn.markdown;t.fn.markdown=function(n){return this.each(function(){var i=t(this),r=i.data("markdown"),o="object"==typeof n&&n;r||i.data("markdown",r=new e(this,o))})},t.fn.markdown.messages={},t.fn.markdown.defaults={autofocus:!1,hideable:!1,savable:!1,width:"inherit",height:"inherit",resize:"none",iconlibrary:"glyph",language:"en",initialstate:"editor",parser:null,buttons:[[{name:"groupFont",data:[{name:"cmdBold",hotkey:"Ctrl+B",title:"Bold",icon:{glyph:"glyphicon glyphicon-bold",fa:"fa fa-bold","fa-3":"icon-bold"},callback:function(t){var e,n,i=t.getSelection(),r=t.getContent();e=0===i.length?t.__localize("strong text"):i.text,"**"===r.substr(i.start-2,2)&&"**"===r.substr(i.end,2)?(t.setSelection(i.start-2,i.end+2),t.replaceSelection(e),n=i.start-2):(t.replaceSelection("**"+e+"**"),n=i.start+2),t.setSelection(n,n+e.length)}},{name:"cmdItalic",title:"Italic",hotkey:"Ctrl+I",icon:{glyph:"glyphicon glyphicon-italic",fa:"fa fa-italic","fa-3":"icon-italic"
},callback:function(t){var e,n,i=t.getSelection(),r=t.getContent();e=0===i.length?t.__localize("emphasized text"):i.text,"_"===r.substr(i.start-1,1)&&"_"===r.substr(i.end,1)?(t.setSelection(i.start-1,i.end+1),t.replaceSelection(e),n=i.start-1):(t.replaceSelection("_"+e+"_"),n=i.start+1),t.setSelection(n,n+e.length)}},{name:"cmdHeading",title:"Heading",hotkey:"Ctrl+H",icon:{glyph:"glyphicon glyphicon-header",fa:"fa fa-header","fa-3":"icon-font"},callback:function(t){var e,n,i,r,o=t.getSelection(),a=t.getContent();e=0===o.length?t.__localize("heading text"):o.text+"\n",i=4,"### "===a.substr(o.start-i,i)||(i=3,"###"===a.substr(o.start-i,i))?(t.setSelection(o.start-i,o.end),t.replaceSelection(e),n=o.start-i):o.start>0&&(r=a.substr(o.start-1,1),!!r&&"\n"!=r)?(t.replaceSelection("\n\n### "+e),n=o.start+6):(t.replaceSelection("### "+e),n=o.start+4),t.setSelection(n,n+e.length)}}]},{name:"groupLink",data:[{name:"cmdUrl",title:"URL/Link",hotkey:"Ctrl+L",icon:{glyph:"glyphicon glyphicon-link",fa:"fa fa-link","fa-3":"icon-link"},callback:function(e){var n,i,r,o=e.getSelection();e.getContent();n=0===o.length?e.__localize("enter link description here"):o.text,r=prompt(e.__localize("Insert Hyperlink"),"http://");var a=new RegExp("^((http|https)://|(mailto:)|(//))[a-z0-9]","i");if(null!==r&&""!==r&&"http://"!==r&&a.test(r)){var s=t("<div>"+r+"</div>").text();e.replaceSelection("["+n+"]("+s+")"),i=o.start+1,e.setSelection(i,i+n.length)}}},{name:"cmdImage",title:"Image",hotkey:"Ctrl+G",icon:{glyph:"glyphicon glyphicon-picture",fa:"fa fa-picture-o","fa-3":"icon-picture"},callback:function(e){var n,i,r,o=e.getSelection();e.getContent();n=0===o.length?e.__localize("enter image description here"):o.text,r=prompt(e.__localize("Insert Image Hyperlink"),"http://");var a=new RegExp("^((http|https)://|(//))[a-z0-9]","i");if(null!==r&&""!==r&&"http://"!==r&&a.test(r)){var s=t("<div>"+r+"</div>").text();e.replaceSelection("!["+n+"]("+s+' "'+e.__localize("enter image title here")+'")'),i=o.start+2,e.setNextTab(e.__localize("enter image title here")),e.setSelection(i,i+n.length)}}}]},{name:"groupMisc",data:[{name:"cmdList",hotkey:"Ctrl+U",title:"Unordered List",icon:{glyph:"glyphicon glyphicon-list",fa:"fa fa-list","fa-3":"icon-list-ul"},callback:function(e){var n,i,r=e.getSelection();e.getContent();if(0===r.length)n=e.__localize("list text here"),e.replaceSelection("- "+n),i=r.start+2;else if(r.text.indexOf("\n")<0)n=r.text,e.replaceSelection("- "+n),i=r.start+2;else{var o=[];o=r.text.split("\n"),n=o[0],t.each(o,function(t,e){o[t]="- "+e}),e.replaceSelection("\n\n"+o.join("\n")),i=r.start+4}e.setSelection(i,i+n.length)}},{name:"cmdListO",hotkey:"Ctrl+O",title:"Ordered List",icon:{glyph:"glyphicon glyphicon-th-list",fa:"fa fa-list-ol","fa-3":"icon-list-ol"},callback:function(e){var n,i,r=e.getSelection();e.getContent();if(0===r.length)n=e.__localize("list text here"),e.replaceSelection("1. "+n),i=r.start+3;else if(r.text.indexOf("\n")<0)n=r.text,e.replaceSelection("1. "+n),i=r.start+3;else{var o=[];o=r.text.split("\n"),n=o[0],t.each(o,function(t,e){o[t]="1. "+e}),e.replaceSelection("\n\n"+o.join("\n")),i=r.start+5}e.setSelection(i,i+n.length)}},{name:"cmdCode",hotkey:"Ctrl+K",title:"Code",icon:{glyph:"glyphicon glyphicon-asterisk",fa:"fa fa-code","fa-3":"icon-code"},callback:function(t){var e,n,i=t.getSelection(),r=t.getContent();e=0===i.length?t.__localize("code text here"):i.text,"```\n"===r.substr(i.start-4,4)&&"\n```"===r.substr(i.end,4)?(t.setSelection(i.start-4,i.end+4),t.replaceSelection(e),n=i.start-4):"`"===r.substr(i.start-1,1)&&"`"===r.substr(i.end,1)?(t.setSelection(i.start-1,i.end+1),t.replaceSelection(e),n=i.start-1):r.indexOf("\n")>-1?(t.replaceSelection("```\n"+e+"\n```"),n=i.start+4):(t.replaceSelection("`"+e+"`"),n=i.start+1),t.setSelection(n,n+e.length)}},{name:"cmdQuote",hotkey:"Ctrl+Q",title:"Quote",icon:{glyph:"glyphicon glyphicon-comment",fa:"fa fa-quote-left","fa-3":"icon-quote-left"},callback:function(e){var n,i,r=e.getSelection();e.getContent();if(0===r.length)n=e.__localize("quote here"),e.replaceSelection("> "+n),i=r.start+2;else if(r.text.indexOf("\n")<0)n=r.text,e.replaceSelection("> "+n),i=r.start+2;else{var o=[];o=r.text.split("\n"),n=o[0],t.each(o,function(t,e){o[t]="> "+e}),e.replaceSelection("\n\n"+o.join("\n")),i=r.start+4}e.setSelection(i,i+n.length)}}]},{name:"groupUtil",data:[{name:"cmdPreview",toggle:!0,hotkey:"Ctrl+P",title:"Preview",btnText:"Preview",btnClass:"btn btn-primary btn-sm",icon:{glyph:"glyphicon glyphicon-search",fa:"fa fa-search","fa-3":"icon-search"},callback:function(t){var e=t.$isPreview;e===!1?t.showPreview():t.hidePreview()}}]}]],additionalButtons:[],reorderButtonGroups:[],hiddenButtons:[],disabledButtons:[],footer:"",fullscreen:{enable:!0,icons:{fullscreenOn:{fa:"fa fa-expand",glyph:"glyphicon glyphicon-fullscreen","fa-3":"icon-resize-full"},fullscreenOff:{fa:"fa fa-compress",glyph:"glyphicon glyphicon-fullscreen","fa-3":"icon-resize-small"}}},onShow:function(t){},onPreview:function(t){},onSave:function(t){},onBlur:function(t){},onFocus:function(t){},onChange:function(t){},onFullscreen:function(t){},onSelect:function(t){}},t.fn.markdown.Constructor=e,t.fn.markdown.noConflict=function(){return t.fn.markdown=n,this};var i=function(t){var e=t;return e.data("markdown")?void e.data("markdown").showEditor():void e.markdown()},r=function(e){var n=t(document.activeElement);t(document).find(".md-editor").each(function(){var e=t(this),i=n.closest(".md-editor")[0]===this,r=e.find("textarea").data("markdown")||e.find('div[data-provider="markdown-preview"]').data("markdown");r&&!i&&r.blur()})};t(document).on("click.markdown.data-api",'[data-provide="markdown-editable"]',function(e){i(t(this)),e.preventDefault()}).on("click focusin",function(t){r(t)}).ready(function(){t('textarea[data-provide="markdown"]').each(function(){i(t(this))})})}),function(t){t.fn.markdown.messages.nl={Bold:"غامق",Italic:"مائل",Heading:"عنوان","URL/Link":"URL/رابط",Image:"صورة",List:"قائمة",Preview:"استعراض","strong text":"نص غامق","emphasized text":"نص هام","heading text":"العنوان","enter link description here":"ادخل وصف الرابط هنا","Insert Hyperlink":"ادخل الرابط هنا","enter image description here":"ادخل وصف الصورة هنا","Insert Image Hyperlink":"ادخل رابط الصورة هنا","enter image title here":"ادخل عنوان الصورة هنا","list text here":"اكتب النص هنا"}}(jQuery),function(t){t.fn.markdown.messages.cs={Bold:"Tučně",Italic:"Kurzíva",Heading:"Nadpis","URL/Link":"URL/Odkaz",Image:"Obrázek","Unordered List":"Seznam","Ordered List":"Seřazený seznam",Code:"Úsek kódu",Quote:"Citace",Preview:"Náhled","strong text":"tučný text","emphasized text":"zdůrazněný text","heading text":"text nadpisu","enter link description here":"sem vlož popis odkazu","Insert Hyperlink":"Vložit Hyperlink","enter image description here":"sem vlož popis obrázku","Insert Image Hyperlink":"Vlož adresu obrázku","enter image title here":"sem vlož popis obrázku","list text here":"položka seznamu"}}(jQuery),function(t){t.fn.markdown.messages.nb={Bold:"Fed",Italic:"Kursiv",Heading:"Overskrift","URL/Link":"URL/Link",Image:"Billede",List:"Liste",Preview:"Forhåndsvisning","strong text":"stærk tekst","emphasized text":"fremhævet tekst","heading text":"overskrift tekst","enter link description here":"Skriv link beskrivelse her","Insert Hyperlink":"Indsæt link","enter image description here":"Indsæt billede beskrivelse her","Insert Image Hyperlink":"Indsæt billede link","enter image title here":"Indsæt billede titel","list text here":"Indsæt liste tekst her","quote here":"Indsæt citat her","code text here":"Indsæt kode her"}}(jQuery),function(t){t.fn.markdown.messages.de={Bold:"Fett",Italic:"Kursiv",Heading:"Überschrift","URL/Link":"Link hinzufügen",Image:"Bild hinzufügen","Unordered List":"Unnummerierte Liste","Ordered List":"Nummerierte Liste",Code:"Quelltext",Quote:"Zitat",Preview:"Vorschau","strong text":"Sehr betonter Text","emphasized text":"Betonter Text","heading text":"Überschrift Text","enter link description here":"Linkbeschreibung","Insert Hyperlink":"URL","enter image description here":"Bildbeschreibung","Insert Image Hyperlink":"Bild-URL","enter image title here":"Titel des Bildes","list text here":"Aufzählungs-Text"}}(jQuery),function(t){t.fn.markdown.messages.es={Bold:"Negrita",Italic:"Itálica",Heading:"Título","URL/Link":"Inserte un link",Image:"Inserte una imagen",List:"Lista de items",Preview:"Previsualizar","strong text":"texto importante","emphasized text":"texto con énfasis","heading text":"texto titular","enter link description here":"descripción del link","Insert Hyperlink":"Inserte un hipervínculo","enter image description here":"descripción de la imagen","Insert Image Hyperlink":"Inserte una imagen con un hipervínculo","enter image title here":"Inserte una imagen con título","list text here":"lista con texto"}}(jQuery),function(t){t.fn.markdown.messages.fa={Bold:"توپر",Italic:"مورب",Heading:"عنوان","URL/Link":"پیوند",Image:"تصویر",List:"فهرست",Preview:"پیش نمایش","strong text":"متن ضخیم","emphasized text":"نوشته تاکیدی","heading text":"عنوان","enter link description here":"توضیحات پیوند را بنویسید.","Insert Hyperlink":"پیوند را درج نمایید:","enter image description here":"توضیحی برای تصوی بنویسید.","Insert Image Hyperlink":"آدرس تصویر را بنویسید.","enter image title here":"عنوان تصویر را اینجا بنویسید","list text here":"محل متن فهرست"}}(jQuery),function(t){t.fn.markdown.messages.fr={Bold:"Gras",Italic:"Italique",Heading:"Titre","URL/Link":"Insérer un lien HTTP",Image:"Insérer une image",List:"Liste à puces",Preview:"Prévisualiser","strong text":"texte important","emphasized text":"texte en italique","heading text":"texte d'entête","enter link description here":"entrez la description du lien ici","Insert Hyperlink":"Insérez le lien hypertexte","enter image description here":"entrez la description de l'image ici","Insert Image Hyperlink":"Insérez le lien hypertexte de l'image","enter image title here":"entrez le titre de l'image ici","list text here":"texte à puce ici",Save:"Sauvegarder","Ordered List":"Liste ordonnée","Unordered List":"Liste désordonnée",Quote:"Citation","quote here":"Votre citation",Code:"Code","code text here":"écrire du code ici"}}(jQuery),function(t){t.fn.markdown.messages.ja={Bold:"太字",Italic:"斜体",Heading:"見出し","URL/Link":"リンク",Image:"画像","Unordered List":"リスト","Ordered List":"数字リスト",Code:"コード",Quote:"引用",Preview:"プレビュー","strong text":"太字","emphasized text":"強調","heading text":"見出し","enter link description here":"リンク説明","Insert Hyperlink":"リンク挿入","enter image description here":"画像説明","Insert Image Hyperlink":"画像挿入","enter image title here":"画像タイトル","list text here":"リスト挿入","code text here":"コード","quote here":"引用挿入"}}(jQuery),function(t){t.fn.markdown.messages.kr={Bold:"진하게",Italic:"이탤릭체",Heading:"머리글","URL/Link":"링크주소",Image:"이미지",List:"리스트",Preview:"미리보기","strong text":"강한 강조 텍스트","emphasized text":"강조 텍스트","heading text":"머리글 텍스트","enter link description here":"여기에 링크의 설명을 적으세요","Insert Hyperlink":"하이퍼링크 삽입","enter image description here":"여기세 이미지 설명을 적으세요","Insert Image Hyperlink":"이미지 링크 삽입","enter image title here":"여기에 이미지 제목을 적으세요","list text here":"리스트 텍스트"}}(jQuery),function(t){t.fn.markdown.messages.nb={Bold:"Fet",Italic:"Kursiv",Heading:"Overskrift","URL/Link":"URL/Lenke",Image:"Bilde",List:"Liste",Preview:"Forhåndsvisning","strong text":"sterk tekst","emphasized text":"streket tekst","heading text":"overskriften tekst","enter link description here":"Skriv linken beskrivelse her","Insert Hyperlink":"Sett inn lenke","enter image description here":"Angi bildebeskrivelse her","Insert Image Hyperlink":"Sett inn lenke for bilde","enter image title here":"Angi bildetittel her","list text here":"liste tekst her"}}(jQuery),function(t){t.fn.markdown.messages.nl={Bold:"Vet",Italic:"Cursief",Heading:"Titel","URL/Link":"URL/Link",Image:"Afbeelding",List:"Lijst",Preview:"Voorbeeld","strong text":"vet gedrukte tekst","emphasized text":"schuin gedrukte tekst","heading text":"Titel","enter link description here":"Voer een link beschrijving in","Insert Hyperlink":"Voer een http link in","enter image description here":"Voer een afbeelding beschrijving in","Insert Image Hyperlink":"Voer een afbeelding link in","enter image title here":"Voer de afbeelding titel in","list text here":"lijst item"}}(jQuery),function(t){t.fn.markdown.messages.pl={Bold:"Pogrubienie",Italic:"Kursywa",Heading:"Nagłówek","URL/Link":"Wstaw link",Image:"Wstaw obrazek","Unordered List":"Lista punktowana","Ordered List":"Lista numerowana",Code:"Kod źródłowy",Quote:"Cytat",Preview:"Podgląd","strong text":"pogrubiony tekst","emphasized text":"pochylony tekst","heading text":"nagłówek","enter link description here":"opis linka","Insert Hyperlink":"Wstaw link","enter image description here":"opis obrazka","Insert Image Hyperlink":"Wstaw obrazek","enter image title here":"tytuł obrazka","list text here":"lista"}}(jQuery),function(t){t.fn.markdown.messages.sl={Bold:"Odebeljeno",Italic:"Poševno",Heading:"Naslov","URL/Link":"Povezava",Image:"Slika","Unordered List":"Neurejen seznam","Ordered List":"Urejen seznam",Code:"Koda",Quote:"Citat",Preview:"Predogled","strong text":"odebeljeno besedilo","emphasized text":"poševno besedilo","heading text":"naslov","enter link description here":"opis povezave","Insert Hyperlink":"Vstavi povezavo","enter image description here":"opis slike","Insert Image Hyperlink":"Vstavi povezavo do slike","enter image title here":"naslov slike","list text here":"seznam"}}(jQuery),function(t){t.fn.markdown.messages.sv={Bold:"Fet",Italic:"Kursiv",Heading:"Rubrik","URL/Link":"URL/Länk",Image:"Bild",List:"Lista",Preview:"Förhandsgranska","strong text":"fet text","emphasized text":"överstruken text","heading text":"Rubrik","enter link description here":"Ange länk beskrivning här","Insert Hyperlink":"Sätt in länk","enter image description here":"Ange bild beskrivning här","Insert Image Hyperlink":"Sätt in länk för bild","enter image title here":"Ange bild rubrik här","list text here":"list text"}}(jQuery),function(t){t.fn.markdown.messages.tr={Bold:"Kalın",Italic:"İtalik",Heading:"Başlık","URL/Link":"Link ekle",Image:"Resim ekle",List:"Liste Oluşturun",Preview:"Önizleme","strong text":"kalın yazı","emphasized text":"italik yazı","heading text":"Başlık Yazısı","enter link description here":"Link açıklamasını buraya girin","Insert Hyperlink":"İnternet adresi girin","enter image description here":"resim açıklamasını buraya ekleyin","Insert Image Hyperlink":"Resim linkini ekleyin","enter image title here":"resim başlığını buraya ekleyin","list text here":"liste yazısı",Save:"Kaydet","Ordered List":"Numaralı Liste","Unordered List":"Madde imli liste",Quote:"Alıntı","quote here":"alıntıyı buraya ekleyin",Code:"Kod","code text here":"kodu buraya ekleyin"}}(jQuery),function(t){t.fn.markdown.messages.zh={Bold:"粗体",Italic:"斜体",Heading:"标题","URL/Link":"链接",Image:"图片",List:"列表","Unordered List":"无序列表","Ordered List":"有序列表",Code:"代码",Quote:"引用",Preview:"预览","strong text":"粗体","emphasized text":"强调","heading text":"标题","enter link description here":"输入链接说明","Insert Hyperlink":"URL地址","enter image description here":"输入图片说明","Insert Image Hyperlink":"图片URL地址","enter image title here":"在这里输入图片标题","list text here":"这里是列表文本","code text here":"这里输入代码","quote here":"这里输入引用文本"}}(jQuery),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window,document)}):"object"==typeof exports?module.exports=function(e,n){return e||(e=window),n||(n="undefined"!=typeof window?require("jquery"):require("jquery")(e)),t(n,e,e.document)}:t(jQuery,window,document)}(function(t,e,n,i){"use strict";function r(e){var n,i,o="a aa ai ao as b fn i m o s ",a={};t.each(e,function(t,s){n=t.match(/^([^A-Z]+?)([A-Z])/),n&&o.indexOf(n[1]+" ")!==-1&&(i=t.replace(n[0],n[2].toLowerCase()),a[i]=t,"o"===n[1]&&r(e[t]))}),e._hungarianMap=a}function o(e,n,a){e._hungarianMap||r(e);var s;t.each(n,function(r,l){s=e._hungarianMap[r],s===i||!a&&n[s]!==i||("o"===s.charAt(0)?(n[s]||(n[s]={}),t.extend(!0,n[s],n[r]),o(e[s],n[s],a)):n[s]=n[r])})}function a(t){var e=Xt.defaults.oLanguage,n=t.sZeroRecords;!t.sEmptyTable&&n&&"No data available in table"===e.sEmptyTable&&Et(t,t,"sZeroRecords","sEmptyTable"),!t.sLoadingRecords&&n&&"Loading..."===e.sLoadingRecords&&Et(t,t,"sZeroRecords","sLoadingRecords"),t.sInfoThousands&&(t.sThousands=t.sInfoThousands);var i=t.sDecimal;i&&Bt(i)}function s(t){fe(t,"ordering","bSort"),fe(t,"orderMulti","bSortMulti"),fe(t,"orderClasses","bSortClasses"),fe(t,"orderCellsTop","bSortCellsTop"),fe(t,"order","aaSorting"),fe(t,"orderFixed","aaSortingFixed"),fe(t,"paging","bPaginate"),fe(t,"pagingType","sPaginationType"),fe(t,"pageLength","iDisplayLength"),fe(t,"searching","bFilter"),"boolean"==typeof t.sScrollX&&(t.sScrollX=t.sScrollX?"100%":""),"boolean"==typeof t.scrollX&&(t.scrollX=t.scrollX?"100%":"");var e=t.aoSearchCols;if(e)for(var n=0,i=e.length;n<i;n++)e[n]&&o(Xt.models.oSearch,e[n])}function l(e){fe(e,"orderable","bSortable"),fe(e,"orderData","aDataSort"),fe(e,"orderSequence","asSorting"),fe(e,"orderDataType","sortDataType");var n=e.aDataSort;n&&!t.isArray(n)&&(e.aDataSort=[n])}function c(e){if(!Xt.__browser){var n={};Xt.__browser=n;var i=t("<div/>").css({position:"fixed",top:0,left:0,height:1,width:1,overflow:"hidden"}).append(t("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(t("<div/>").css({width:"100%",height:10}))).appendTo("body"),r=i.children(),o=r.children();n.barWidth=r[0].offsetWidth-r[0].clientWidth,n.bScrollOversize=100===o[0].offsetWidth&&100!==r[0].clientWidth,n.bScrollbarLeft=1!==Math.round(o.offset().left),n.bBounding=!!i[0].getBoundingClientRect().width,i.remove()}t.extend(e.oBrowser,Xt.__browser),e.oScroll.iBarWidth=Xt.__browser.barWidth}function u(t,e,n,r,o,a){var s,l=r,c=!1;for(n!==i&&(s=n,c=!0);l!==o;)t.hasOwnProperty(l)&&(s=c?e(s,t[l],l,t):t[l],c=!0,l+=a);return s}function d(e,i){var r=Xt.defaults.column,o=e.aoColumns.length,a=t.extend({},Xt.models.oColumn,r,{nTh:i?i:n.createElement("th"),sTitle:r.sTitle?r.sTitle:i?i.innerHTML:"",aDataSort:r.aDataSort?r.aDataSort:[o],mData:r.mData?r.mData:o,idx:o});e.aoColumns.push(a);var s=e.aoPreSearchCols;s[o]=t.extend({},Xt.models.oSearch,s[o]),h(e,o,t(i).data())}function h(e,n,r){var a=e.aoColumns[n],s=e.oClasses,c=t(a.nTh);if(!a.sWidthOrig){a.sWidthOrig=c.attr("width")||null;var u=(c.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);u&&(a.sWidthOrig=u[1])}r!==i&&null!==r&&(l(r),o(Xt.defaults.column,r),r.mDataProp===i||r.mData||(r.mData=r.mDataProp),r.sType&&(a._sManualType=r.sType),r.className&&!r.sClass&&(r.sClass=r.className),t.extend(a,r),Et(a,r,"sWidth","sWidthOrig"),r.iDataSort!==i&&(a.aDataSort=[r.iDataSort]),Et(a,r,"aDataSort"));var d=a.mData,h=_(d),p=a.mRender?_(a.mRender):null,f=function(t){return"string"==typeof t&&t.indexOf("@")!==-1};a._bAttrSrc=t.isPlainObject(d)&&(f(d.sort)||f(d.type)||f(d.filter)),a._setter=null,a.fnGetData=function(t,e,n){var r=h(t,e,i,n);return p&&e?p(r,e,t,n):r},a.fnSetData=function(t,e,n){return j(d)(t,e,n)},"number"!=typeof d&&(e._rowReadObject=!0),e.oFeatures.bSort||(a.bSortable=!1,c.addClass(s.sSortableNone));var g=t.inArray("asc",a.asSorting)!==-1,m=t.inArray("desc",a.asSorting)!==-1;a.bSortable&&(g||m)?g&&!m?(a.sSortingClass=s.sSortableAsc,a.sSortingClassJUI=s.sSortJUIAscAllowed):!g&&m?(a.sSortingClass=s.sSortableDesc,a.sSortingClassJUI=s.sSortJUIDescAllowed):(a.sSortingClass=s.sSortable,a.sSortingClassJUI=s.sSortJUI):(a.sSortingClass=s.sSortableNone,a.sSortingClassJUI="")}function p(t){if(t.oFeatures.bAutoWidth!==!1){var e=t.aoColumns;vt(t);for(var n=0,i=e.length;n<i;n++)e[n].nTh.style.width=e[n].sWidth}var r=t.oScroll;""===r.sY&&""===r.sX||gt(t),Ot(t,null,"column-sizing",[t])}function f(t,e){var n=v(t,"bVisible");return"number"==typeof n[e]?n[e]:null}function g(e,n){var i=v(e,"bVisible"),r=t.inArray(n,i);return r!==-1?r:null}function m(e){var n=0;return t.each(e.aoColumns,function(e,i){i.bVisible&&"none"!==t(i.nTh).css("display")&&n++}),n}function v(e,n){var i=[];return t.map(e.aoColumns,function(t,e){t[n]&&i.push(e)}),i}function b(t){var e,n,r,o,a,s,l,c,u,d=t.aoColumns,h=t.aoData,p=Xt.ext.type.detect;for(e=0,n=d.length;e<n;e++)if(l=d[e],u=[],!l.sType&&l._sManualType)l.sType=l._sManualType;else if(!l.sType){for(r=0,o=p.length;r<o;r++){for(a=0,s=h.length;a<s&&(u[a]===i&&(u[a]=T(t,a,e,"type")),c=p[r](u[a],t),c||r===p.length-1)&&"html"!==c;a++);if(c){l.sType=c;break}}l.sType||(l.sType="string")}}function y(e,n,r,o){var a,s,l,c,u,h,p,f=e.aoColumns;if(n)for(a=n.length-1;a>=0;a--){p=n[a];var g=p.targets!==i?p.targets:p.aTargets;for(t.isArray(g)||(g=[g]),l=0,c=g.length;l<c;l++)if("number"==typeof g[l]&&g[l]>=0){for(;f.length<=g[l];)d(e);o(g[l],p)}else if("number"==typeof g[l]&&g[l]<0)o(f.length+g[l],p);else if("string"==typeof g[l])for(u=0,h=f.length;u<h;u++)("_all"==g[l]||t(f[u].nTh).hasClass(g[l]))&&o(u,p)}if(r)for(a=0,s=r.length;a<s;a++)o(a,r[a])}function w(e,n,r,o){var a=e.aoData.length,s=t.extend(!0,{},Xt.models.oRow,{src:r?"dom":"data",idx:a});s._aData=n,e.aoData.push(s);for(var l=e.aoColumns,c=0,u=l.length;c<u;c++)l[c].sType=null;e.aiDisplayMaster.push(a);var d=e.rowIdFn(n);return d!==i&&(e.aIds[d]=s),!r&&e.oFeatures.bDeferRender||N(e,a,r,o),a}function x(e,n){var i;return n instanceof t||(n=t(n)),n.map(function(t,n){return i=E(e,n),w(e,i.data,n,i.cells)})}function C(t,e){return e._DT_RowIndex!==i?e._DT_RowIndex:null}function S(e,n,i){return t.inArray(i,e.aoData[n].anCells)}function T(t,e,n,r){var o=t.iDraw,a=t.aoColumns[n],s=t.aoData[e]._aData,l=a.sDefaultContent,c=a.fnGetData(s,r,{settings:t,row:e,col:n});if(c===i)return t.iDrawError!=o&&null===l&&(Lt(t,0,"Requested unknown parameter "+("function"==typeof a.mData?"{function}":"'"+a.mData+"'")+" for row "+e+", column "+n,4),t.iDrawError=o),l;if(c!==s&&null!==c||null===l||r===i){if("function"==typeof c)return c.call(s)}else c=l;return null===c&&"display"==r?"":c}function k(t,e,n,i){var r=t.aoColumns[n],o=t.aoData[e]._aData;r.fnSetData(o,i,{settings:t,row:e,col:n})}function D(e){return t.map(e.match(/(\\.|[^\.])+/g)||[""],function(t){return t.replace(/\\./g,".")})}function _(e){if(t.isPlainObject(e)){var n={};return t.each(e,function(t,e){e&&(n[t]=_(e))}),function(t,e,r,o){var a=n[e]||n._;return a!==i?a(t,e,r,o):t}}if(null===e)return function(t){return t};if("function"==typeof e)return function(t,n,i,r){return e(t,n,i,r)};if("string"!=typeof e||e.indexOf(".")===-1&&e.indexOf("[")===-1&&e.indexOf("(")===-1)return function(t,n){return t[e]};var r=function(e,n,o){var a,s,l,c;if(""!==o)for(var u=D(o),d=0,h=u.length;d<h;d++){if(a=u[d].match(ge),s=u[d].match(me),a){if(u[d]=u[d].replace(ge,""),""!==u[d]&&(e=e[u[d]]),l=[],u.splice(0,d+1),c=u.join("."),t.isArray(e))for(var p=0,f=e.length;p<f;p++)l.push(r(e[p],n,c));var g=a[0].substring(1,a[0].length-1);e=""===g?l:l.join(g);break}if(s)u[d]=u[d].replace(me,""),e=e[u[d]]();else{if(null===e||e[u[d]]===i)return i;e=e[u[d]]}}return e};return function(t,n){return r(t,n,e)}}function j(e){if(t.isPlainObject(e))return j(e._);if(null===e)return function(){};if("function"==typeof e)return function(t,n,i){e(t,"set",n,i)};if("string"!=typeof e||e.indexOf(".")===-1&&e.indexOf("[")===-1&&e.indexOf("(")===-1)return function(t,n){t[e]=n};var n=function(e,r,o){for(var a,s,l,c,u,d=D(o),h=d[d.length-1],p=0,f=d.length-1;p<f;p++){if(s=d[p].match(ge),l=d[p].match(me),s){if(d[p]=d[p].replace(ge,""),e[d[p]]=[],a=d.slice(),a.splice(0,p+1),u=a.join("."),t.isArray(r))for(var g=0,m=r.length;g<m;g++)c={},n(c,r[g],u),e[d[p]].push(c);else e[d[p]]=r;return}l&&(d[p]=d[p].replace(me,""),e=e[d[p]](r)),null!==e[d[p]]&&e[d[p]]!==i||(e[d[p]]={}),e=e[d[p]]}h.match(me)?e=e[h.replace(me,"")](r):e[h.replace(ge,"")]=r};return function(t,i){return n(t,i,e)}}function $(t){return le(t.aoData,"_aData")}function A(t){t.aoData.length=0,t.aiDisplayMaster.length=0,t.aiDisplay.length=0,t.aIds={}}function I(t,e,n){for(var r=-1,o=0,a=t.length;o<a;o++)t[o]==e?r=o:t[o]>e&&t[o]--;r!=-1&&n===i&&t.splice(r,1)}function L(t,e,n,r){var o,a,s=t.aoData[e],l=function(n,i){for(;n.childNodes.length;)n.removeChild(n.firstChild);n.innerHTML=T(t,e,i,"display")};if("dom"!==n&&(n&&"auto"!==n||"dom"!==s.src)){var c=s.anCells;if(c)if(r!==i)l(c[r],r);else for(o=0,a=c.length;o<a;o++)l(c[o],o)}else s._aData=E(t,s,r,r===i?i:s._aData).data;s._aSortData=null,s._aFilterData=null;var u=t.aoColumns;if(r!==i)u[r].sType=null;else{for(o=0,a=u.length;o<a;o++)u[o].sType=null;P(t,s)}}function E(e,n,r,o){var a,s,l,c=[],u=n.firstChild,d=0,h=e.aoColumns,p=e._rowReadObject;o=o!==i?o:p?{}:[];var f=function(t,e){if("string"==typeof t){var n=t.indexOf("@");if(n!==-1){var i=t.substring(n+1),r=j(t);r(o,e.getAttribute(i))}}},g=function(e){if(r===i||r===d)if(s=h[d],l=t.trim(e.innerHTML),s&&s._bAttrSrc){var n=j(s.mData._);n(o,l),f(s.mData.sort,e),f(s.mData.type,e),f(s.mData.filter,e)}else p?(s._setter||(s._setter=j(s.mData)),s._setter(o,l)):o[d]=l;d++};if(u)for(;u;)a=u.nodeName.toUpperCase(),"TD"!=a&&"TH"!=a||(g(u),c.push(u)),u=u.nextSibling;else{c=n.anCells;for(var m=0,v=c.length;m<v;m++)g(c[m])}var b=n.firstChild?n:n.nTr;if(b){var y=b.getAttribute("id");y&&j(e.rowId)(o,y)}return{data:o,cells:c}}function N(e,i,r,o){var a,s,l,c,u,d=e.aoData[i],h=d._aData,p=[];if(null===d.nTr){for(a=r||n.createElement("tr"),d.nTr=a,d.anCells=p,a._DT_RowIndex=i,P(e,d),c=0,u=e.aoColumns.length;c<u;c++)l=e.aoColumns[c],s=r?o[c]:n.createElement(l.sCellType),s._DT_CellIndex={row:i,column:c},p.push(s),r&&!l.mRender&&l.mData===c||t.isPlainObject(l.mData)&&l.mData._===c+".display"||(s.innerHTML=T(e,i,c,"display")),l.sClass&&(s.className+=" "+l.sClass),l.bVisible&&!r?a.appendChild(s):!l.bVisible&&r&&s.parentNode.removeChild(s),l.fnCreatedCell&&l.fnCreatedCell.call(e.oInstance,s,T(e,i,c),h,i,c);Ot(e,"aoRowCreatedCallback",null,[a,h,i])}d.nTr.setAttribute("role","row")}function P(e,n){var i=n.nTr,r=n._aData;if(i){var o=e.rowIdFn(r);if(o&&(i.id=o),r.DT_RowClass){var a=r.DT_RowClass.split(" ");n.__rowc=n.__rowc?pe(n.__rowc.concat(a)):a,t(i).removeClass(n.__rowc.join(" ")).addClass(r.DT_RowClass)}r.DT_RowAttr&&t(i).attr(r.DT_RowAttr),r.DT_RowData&&t(i).data(r.DT_RowData)}}function H(e){var n,i,r,o,a,s=e.nTHead,l=e.nTFoot,c=0===t("th, td",s).length,u=e.oClasses,d=e.aoColumns;for(c&&(o=t("<tr/>").appendTo(s)),n=0,i=d.length;n<i;n++)a=d[n],r=t(a.nTh).addClass(a.sClass),c&&r.appendTo(o),e.oFeatures.bSort&&(r.addClass(a.sSortingClass),a.bSortable!==!1&&(r.attr("tabindex",e.iTabIndex).attr("aria-controls",e.sTableId),Dt(e,a.nTh,n))),a.sTitle!=r[0].innerHTML&&r.html(a.sTitle),Ft(e,"header")(e,r,a,u);if(c&&M(e.aoHeader,s),t(s).find(">tr").attr("role","row"),t(s).find(">tr>th, >tr>td").addClass(u.sHeaderTH),t(l).find(">tr>th, >tr>td").addClass(u.sFooterTH),null!==l){var h=e.aoFooter[0];for(n=0,i=h.length;n<i;n++)a=d[n],a.nTf=h[n].cell,a.sClass&&t(a.nTf).addClass(a.sClass)}}function O(e,n,r){var o,a,s,l,c,u,d,h,p,f=[],g=[],m=e.aoColumns.length;if(n){for(r===i&&(r=!1),o=0,a=n.length;o<a;o++){for(f[o]=n[o].slice(),f[o].nTr=n[o].nTr,s=m-1;s>=0;s--)e.aoColumns[s].bVisible||r||f[o].splice(s,1);g.push([])}for(o=0,a=f.length;o<a;o++){if(d=f[o].nTr)for(;u=d.firstChild;)d.removeChild(u);for(s=0,l=f[o].length;s<l;s++)if(h=1,p=1,g[o][s]===i){for(d.appendChild(f[o][s].cell),g[o][s]=1;f[o+h]!==i&&f[o][s].cell==f[o+h][s].cell;)g[o+h][s]=1,h++;for(;f[o][s+p]!==i&&f[o][s].cell==f[o][s+p].cell;){for(c=0;c<h;c++)g[o+c][s+p]=1;p++}t(f[o][s].cell).attr("rowspan",h).attr("colspan",p)}}}}function R(e){var n=Ot(e,"aoPreDrawCallback","preDraw",[e]);if(t.inArray(!1,n)!==-1)return void pt(e,!1);var r=[],o=0,a=e.asStripeClasses,s=a.length,l=(e.aoOpenRows.length,e.oLanguage),c=e.iInitDisplayStart,u="ssp"==Qt(e),d=e.aiDisplay;e.bDrawing=!0,c!==i&&c!==-1&&(e._iDisplayStart=u?c:c>=e.fnRecordsDisplay()?0:c,e.iInitDisplayStart=-1);var h=e._iDisplayStart,p=e.fnDisplayEnd();if(e.bDeferLoading)e.bDeferLoading=!1,e.iDraw++,pt(e,!1);else if(u){if(!e.bDestroying&&!z(e))return}else e.iDraw++;if(0!==d.length)for(var f=u?0:h,g=u?e.aoData.length:p,v=f;v<g;v++){var b=d[v],y=e.aoData[b];null===y.nTr&&N(e,b);var w=y.nTr;if(0!==s){var x=a[o%s];y._sRowStripe!=x&&(t(w).removeClass(y._sRowStripe).addClass(x),y._sRowStripe=x)}Ot(e,"aoRowCallback",null,[w,y._aData,o,v]),r.push(w),o++}else{var C=l.sZeroRecords;1==e.iDraw&&"ajax"==Qt(e)?C=l.sLoadingRecords:l.sEmptyTable&&0===e.fnRecordsTotal()&&(C=l.sEmptyTable),r[0]=t("<tr/>",{class:s?a[0]:""}).append(t("<td />",{valign:"top",colSpan:m(e),class:e.oClasses.sRowEmpty}).html(C))[0]}Ot(e,"aoHeaderCallback","header",[t(e.nTHead).children("tr")[0],$(e),h,p,d]),Ot(e,"aoFooterCallback","footer",[t(e.nTFoot).children("tr")[0],$(e),h,p,d]);var S=t(e.nTBody);S.children().detach(),S.append(t(r)),Ot(e,"aoDrawCallback","draw",[e]),e.bSorted=!1,e.bFiltered=!1,e.bDrawing=!1}function F(t,e){var n=t.oFeatures,i=n.bSort,r=n.bFilter;i&&St(t),r?J(t,t.oPreviousSearch):t.aiDisplay=t.aiDisplayMaster.slice(),e!==!0&&(t._iDisplayStart=0),t._drawHold=e,R(t),t._drawHold=!1}function Q(e){var n=e.oClasses,i=t(e.nTable),r=t("<div/>").insertBefore(i),o=e.oFeatures,a=t("<div/>",{id:e.sTableId+"_wrapper",class:n.sWrapper+(e.nTFoot?"":" "+n.sNoFooter)});e.nHolding=r[0],e.nTableWrapper=a[0],e.nTableReinsertBefore=e.nTable.nextSibling;for(var s,l,c,u,d,h,p=e.sDom.split(""),f=0;f<p.length;f++){if(s=null,l=p[f],"<"==l){if(c=t("<div/>")[0],u=p[f+1],"'"==u||'"'==u){for(d="",h=2;p[f+h]!=u;)d+=p[f+h],h++;if("H"==d?d=n.sJUIHeader:"F"==d&&(d=n.sJUIFooter),d.indexOf(".")!=-1){var g=d.split(".");c.id=g[0].substr(1,g[0].length-1),c.className=g[1]}else"#"==d.charAt(0)?c.id=d.substr(1,d.length-1):c.className=d;f+=h}a.append(c),a=t(c)}else if(">"==l)a=a.parent();else if("l"==l&&o.bPaginate&&o.bLengthChange)s=ct(e);else if("f"==l&&o.bFilter)s=X(e);else if("r"==l&&o.bProcessing)s=ht(e);else if("t"==l)s=ft(e);else if("i"==l&&o.bInfo)s=it(e);else if("p"==l&&o.bPaginate)s=ut(e);else if(0!==Xt.ext.feature.length)for(var m=Xt.ext.feature,v=0,b=m.length;v<b;v++)if(l==m[v].cFeature){s=m[v].fnInit(e);break}if(s){var y=e.aanFeatures;y[l]||(y[l]=[]),y[l].push(s),a.append(s)}}r.replaceWith(a),e.nHolding=null}function M(e,n){var i,r,o,a,s,l,c,u,d,h,p,f=t(n).children("tr"),g=function(t,e,n){for(var i=t[e];i[n];)n++;return n};for(e.splice(0,e.length),o=0,l=f.length;o<l;o++)e.push([]);for(o=0,l=f.length;o<l;o++)for(i=f[o],u=0,r=i.firstChild;r;){if("TD"==r.nodeName.toUpperCase()||"TH"==r.nodeName.toUpperCase())for(d=1*r.getAttribute("colspan"),h=1*r.getAttribute("rowspan"),d=d&&0!==d&&1!==d?d:1,h=h&&0!==h&&1!==h?h:1,c=g(e,o,u),p=1===d,s=0;s<d;s++)for(a=0;a<h;a++)e[o+a][c+s]={cell:r,unique:p},e[o+a].nTr=i;r=r.nextSibling}}function B(t,e,n){var i=[];n||(n=t.aoHeader,e&&(n=[],M(n,e)));for(var r=0,o=n.length;r<o;r++)for(var a=0,s=n[r].length;a<s;a++)!n[r][a].unique||i[a]&&t.bSortCellsTop||(i[a]=n[r][a].cell);return i}function W(e,n,i){if(Ot(e,"aoServerParams","serverParams",[n]),n&&t.isArray(n)){var r={},o=/(.*?)\[\]$/;t.each(n,function(t,e){var n=e.name.match(o);if(n){var i=n[0];r[i]||(r[i]=[]),r[i].push(e.value)}else r[e.name]=e.value}),n=r}var a,s=e.ajax,l=e.oInstance,c=function(t){Ot(e,null,"xhr",[e,t,e.jqXHR]),i(t)};if(t.isPlainObject(s)&&s.data){a=s.data;var u=t.isFunction(a)?a(n,e):a;n=t.isFunction(a)&&u?u:t.extend(!0,n,u),delete s.data}var d={data:n,success:function(t){var n=t.error||t.sError;n&&Lt(e,0,n),e.json=t,c(t)},dataType:"json",cache:!1,type:e.sServerMethod,error:function(n,i,r){var o=Ot(e,null,"xhr",[e,null,e.jqXHR]);t.inArray(!0,o)===-1&&("parsererror"==i?Lt(e,0,"Invalid JSON response",1):4===n.readyState&&Lt(e,0,"Ajax error",7)),pt(e,!1)}};e.oAjaxData=n,Ot(e,null,"preXhr",[e,n]),e.fnServerData?e.fnServerData.call(l,e.sAjaxSource,t.map(n,function(t,e){return{name:e,value:t}}),c,e):e.sAjaxSource||"string"==typeof s?e.jqXHR=t.ajax(t.extend(d,{url:s||e.sAjaxSource})):t.isFunction(s)?e.jqXHR=s.call(l,n,c,e):(e.jqXHR=t.ajax(t.extend(d,s)),s.data=a)}function z(t){return!t.bAjaxDataGet||(t.iDraw++,pt(t,!0),W(t,q(t),function(e){U(t,e)}),!1)}function q(e){var n,i,r,o,a=e.aoColumns,s=a.length,l=e.oFeatures,c=e.oPreviousSearch,u=e.aoPreSearchCols,d=[],h=Ct(e),p=e._iDisplayStart,f=l.bPaginate!==!1?e._iDisplayLength:-1,g=function(t,e){
d.push({name:t,value:e})};g("sEcho",e.iDraw),g("iColumns",s),g("sColumns",le(a,"sName").join(",")),g("iDisplayStart",p),g("iDisplayLength",f);var m={draw:e.iDraw,columns:[],order:[],start:p,length:f,search:{value:c.sSearch,regex:c.bRegex}};for(n=0;n<s;n++)r=a[n],o=u[n],i="function"==typeof r.mData?"function":r.mData,m.columns.push({data:i,name:r.sName,searchable:r.bSearchable,orderable:r.bSortable,search:{value:o.sSearch,regex:o.bRegex}}),g("mDataProp_"+n,i),l.bFilter&&(g("sSearch_"+n,o.sSearch),g("bRegex_"+n,o.bRegex),g("bSearchable_"+n,r.bSearchable)),l.bSort&&g("bSortable_"+n,r.bSortable);l.bFilter&&(g("sSearch",c.sSearch),g("bRegex",c.bRegex)),l.bSort&&(t.each(h,function(t,e){m.order.push({column:e.col,dir:e.dir}),g("iSortCol_"+t,e.col),g("sSortDir_"+t,e.dir)}),g("iSortingCols",h.length));var v=Xt.ext.legacy.ajax;return null===v?e.sAjaxSource?d:m:v?d:m}function U(t,e){var n=function(t,n){return e[t]!==i?e[t]:e[n]},r=V(t,e),o=n("sEcho","draw"),a=n("iTotalRecords","recordsTotal"),s=n("iTotalDisplayRecords","recordsFiltered");if(o){if(1*o<t.iDraw)return;t.iDraw=1*o}A(t),t._iRecordsTotal=parseInt(a,10),t._iRecordsDisplay=parseInt(s,10);for(var l=0,c=r.length;l<c;l++)w(t,r[l]);t.aiDisplay=t.aiDisplayMaster.slice(),t.bAjaxDataGet=!1,R(t),t._bInitComplete||st(t,e),t.bAjaxDataGet=!0,pt(t,!1)}function V(e,n){var r=t.isPlainObject(e.ajax)&&e.ajax.dataSrc!==i?e.ajax.dataSrc:e.sAjaxDataProp;return"data"===r?n.aaData||n[r]:""!==r?_(r)(n):n}function X(e){var i=e.oClasses,r=e.sTableId,o=e.oLanguage,a=e.oPreviousSearch,s=e.aanFeatures,l='<input type="search" class="'+i.sFilterInput+'"/>',c=o.sSearch;c=c.match(/_INPUT_/)?c.replace("_INPUT_",l):c+l;var u=t("<div/>",{id:s.f?null:r+"_filter",class:i.sFilter}).append(t("<label/>").append(c)),d=function(){var t=(s.f,this.value?this.value:"");t!=a.sSearch&&(J(e,{sSearch:t,bRegex:a.bRegex,bSmart:a.bSmart,bCaseInsensitive:a.bCaseInsensitive}),e._iDisplayStart=0,R(e))},h=null!==e.searchDelay?e.searchDelay:"ssp"===Qt(e)?400:0,p=t("input",u).val(a.sSearch).attr("placeholder",o.sSearchPlaceholder).bind("keyup.DT search.DT input.DT paste.DT cut.DT",h?xe(d,h):d).bind("keypress.DT",function(t){if(13==t.keyCode)return!1}).attr("aria-controls",r);return t(e.nTable).on("search.dt.DT",function(t,i){if(e===i)try{p[0]!==n.activeElement&&p.val(a.sSearch)}catch(t){}}),u[0]}function J(t,e,n){var r=t.oPreviousSearch,o=t.aoPreSearchCols,a=function(t){r.sSearch=t.sSearch,r.bRegex=t.bRegex,r.bSmart=t.bSmart,r.bCaseInsensitive=t.bCaseInsensitive},s=function(t){return t.bEscapeRegex!==i?!t.bEscapeRegex:t.bRegex};if(b(t),"ssp"!=Qt(t)){Y(t,e.sSearch,n,s(e),e.bSmart,e.bCaseInsensitive),a(e);for(var l=0;l<o.length;l++)K(t,o[l].sSearch,l,s(o[l]),o[l].bSmart,o[l].bCaseInsensitive);G(t)}else a(e);t.bFiltered=!0,Ot(t,null,"search",[t])}function G(e){for(var n,i,r=Xt.ext.search,o=e.aiDisplay,a=0,s=r.length;a<s;a++){for(var l=[],c=0,u=o.length;c<u;c++)i=o[c],n=e.aoData[i],r[a](e,n._aFilterData,i,n._aData,c)&&l.push(i);o.length=0,t.merge(o,l)}}function K(t,e,n,i,r,o){if(""!==e)for(var a,s=t.aiDisplay,l=Z(e,i,r,o),c=s.length-1;c>=0;c--)a=t.aoData[s[c]]._aFilterData[n],l.test(a)||s.splice(c,1)}function Y(t,e,n,i,r,o){var a,s,l,c=Z(e,i,r,o),u=t.oPreviousSearch.sSearch,d=t.aiDisplayMaster;if(0!==Xt.ext.search.length&&(n=!0),s=tt(t),e.length<=0)t.aiDisplay=d.slice();else for((s||n||u.length>e.length||0!==e.indexOf(u)||t.bSorted)&&(t.aiDisplay=d.slice()),a=t.aiDisplay,l=a.length-1;l>=0;l--)c.test(t.aoData[a[l]]._sFilterRow)||a.splice(l,1)}function Z(e,n,i,r){if(e=n?e:ve(e),i){var o=t.map(e.match(/"[^"]+"|[^ ]+/g)||[""],function(t){if('"'===t.charAt(0)){var e=t.match(/^"(.*)"$/);t=e?e[1]:t}return t.replace('"',"")});e="^(?=.*?"+o.join(")(?=.*?")+").*$"}return new RegExp(e,r?"i":"")}function tt(t){var e,n,i,r,o,a,s,l,c=t.aoColumns,u=Xt.ext.type.search,d=!1;for(n=0,r=t.aoData.length;n<r;n++)if(l=t.aoData[n],!l._aFilterData){for(a=[],i=0,o=c.length;i<o;i++)e=c[i],e.bSearchable?(s=T(t,n,i,"filter"),u[e.sType]&&(s=u[e.sType](s)),null===s&&(s=""),"string"!=typeof s&&s.toString&&(s=s.toString())):s="",s.indexOf&&s.indexOf("&")!==-1&&(be.innerHTML=s,s=ye?be.textContent:be.innerText),s.replace&&(s=s.replace(/[\r\n]/g,"")),a.push(s);l._aFilterData=a,l._sFilterRow=a.join("  "),d=!0}return d}function et(t){return{search:t.sSearch,smart:t.bSmart,regex:t.bRegex,caseInsensitive:t.bCaseInsensitive}}function nt(t){return{sSearch:t.search,bSmart:t.smart,bRegex:t.regex,bCaseInsensitive:t.caseInsensitive}}function it(e){var n=e.sTableId,i=e.aanFeatures.i,r=t("<div/>",{class:e.oClasses.sInfo,id:i?null:n+"_info"});return i||(e.aoDrawCallback.push({fn:rt,sName:"information"}),r.attr("role","status").attr("aria-live","polite"),t(e.nTable).attr("aria-describedby",n+"_info")),r[0]}function rt(e){var n=e.aanFeatures.i;if(0!==n.length){var i=e.oLanguage,r=e._iDisplayStart+1,o=e.fnDisplayEnd(),a=e.fnRecordsTotal(),s=e.fnRecordsDisplay(),l=s?i.sInfo:i.sInfoEmpty;s!==a&&(l+=" "+i.sInfoFiltered),l+=i.sInfoPostFix,l=ot(e,l);var c=i.fnInfoCallback;null!==c&&(l=c.call(e.oInstance,e,r,o,a,s,l)),t(n).html(l)}}function ot(t,e){var n=t.fnFormatNumber,i=t._iDisplayStart+1,r=t._iDisplayLength,o=t.fnRecordsDisplay(),a=r===-1;return e.replace(/_START_/g,n.call(t,i)).replace(/_END_/g,n.call(t,t.fnDisplayEnd())).replace(/_MAX_/g,n.call(t,t.fnRecordsTotal())).replace(/_TOTAL_/g,n.call(t,o)).replace(/_PAGE_/g,n.call(t,a?1:Math.ceil(i/r))).replace(/_PAGES_/g,n.call(t,a?1:Math.ceil(o/r)))}function at(t){var e,n,i,r=t.iInitDisplayStart,o=t.aoColumns,a=t.oFeatures,s=t.bDeferLoading;if(!t.bInitialised)return void setTimeout(function(){at(t)},200);for(Q(t),H(t),O(t,t.aoHeader),O(t,t.aoFooter),pt(t,!0),a.bAutoWidth&&vt(t),e=0,n=o.length;e<n;e++)i=o[e],i.sWidth&&(i.nTh.style.width=xt(i.sWidth));Ot(t,null,"preInit",[t]),F(t);var l=Qt(t);("ssp"!=l||s)&&("ajax"==l?W(t,[],function(n){var i=V(t,n);for(e=0;e<i.length;e++)w(t,i[e]);t.iInitDisplayStart=r,F(t),pt(t,!1),st(t,n)},t):(pt(t,!1),st(t)))}function st(t,e){t._bInitComplete=!0,(e||t.oInit.aaData)&&p(t),Ot(t,null,"plugin-init",[t,e]),Ot(t,"aoInitComplete","init",[t,e])}function lt(t,e){var n=parseInt(e,10);t._iDisplayLength=n,Rt(t),Ot(t,null,"length",[t,n])}function ct(e){for(var n=e.oClasses,i=e.sTableId,r=e.aLengthMenu,o=t.isArray(r[0]),a=o?r[0]:r,s=o?r[1]:r,l=t("<select/>",{name:i+"_length","aria-controls":i,class:n.sLengthSelect}),c=0,u=a.length;c<u;c++)l[0][c]=new Option(s[c],a[c]);var d=t("<div><label/></div>").addClass(n.sLength);return e.aanFeatures.l||(d[0].id=i+"_length"),d.children().append(e.oLanguage.sLengthMenu.replace("_MENU_",l[0].outerHTML)),t("select",d).val(e._iDisplayLength).bind("change.DT",function(n){lt(e,t(this).val()),R(e)}),t(e.nTable).bind("length.dt.DT",function(n,i,r){e===i&&t("select",d).val(r)}),d[0]}function ut(e){var n=e.sPaginationType,i=Xt.ext.pager[n],r="function"==typeof i,o=function(t){R(t)},a=t("<div/>").addClass(e.oClasses.sPaging+n)[0],s=e.aanFeatures;return r||i.fnInit(e,a,o),s.p||(a.id=e.sTableId+"_paginate",e.aoDrawCallback.push({fn:function(t){if(r){var e,n,a=t._iDisplayStart,l=t._iDisplayLength,c=t.fnRecordsDisplay(),u=l===-1,d=u?0:Math.ceil(a/l),h=u?1:Math.ceil(c/l),p=i(d,h);for(e=0,n=s.p.length;e<n;e++)Ft(t,"pageButton")(t,s.p[e],e,p,d,h)}else i.fnUpdate(t,o)},sName:"pagination"})),a}function dt(t,e,n){var i=t._iDisplayStart,r=t._iDisplayLength,o=t.fnRecordsDisplay();0===o||r===-1?i=0:"number"==typeof e?(i=e*r,i>o&&(i=0)):"first"==e?i=0:"previous"==e?(i=r>=0?i-r:0,i<0&&(i=0)):"next"==e?i+r<o&&(i+=r):"last"==e?i=Math.floor((o-1)/r)*r:Lt(t,0,"Unknown paging action: "+e,5);var a=t._iDisplayStart!==i;return t._iDisplayStart=i,a&&(Ot(t,null,"page",[t]),n&&R(t)),a}function ht(e){return t("<div/>",{id:e.aanFeatures.r?null:e.sTableId+"_processing",class:e.oClasses.sProcessing}).html(e.oLanguage.sProcessing).insertBefore(e.nTable)[0]}function pt(e,n){e.oFeatures.bProcessing&&t(e.aanFeatures.r).css("display",n?"block":"none"),Ot(e,null,"processing",[e,n])}function ft(e){var n=t(e.nTable);n.attr("role","grid");var i=e.oScroll;if(""===i.sX&&""===i.sY)return e.nTable;var r=i.sX,o=i.sY,a=e.oClasses,s=n.children("caption"),l=s.length?s[0]._captionSide:null,c=t(n[0].cloneNode(!1)),u=t(n[0].cloneNode(!1)),d=n.children("tfoot"),h="<div/>",p=function(t){return t?xt(t):null};d.length||(d=null);var f=t(h,{class:a.sScrollWrapper}).append(t(h,{class:a.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:r?p(r):"100%"}).append(t(h,{class:a.sScrollHeadInner}).css({"box-sizing":"content-box",width:i.sXInner||"100%"}).append(c.removeAttr("id").css("margin-left",0).append("top"===l?s:null).append(n.children("thead"))))).append(t(h,{class:a.sScrollBody}).css({position:"relative",overflow:"auto",width:p(r)}).append(n));d&&f.append(t(h,{class:a.sScrollFoot}).css({overflow:"hidden",border:0,width:r?p(r):"100%"}).append(t(h,{class:a.sScrollFootInner}).append(u.removeAttr("id").css("margin-left",0).append("bottom"===l?s:null).append(n.children("tfoot")))));var g=f.children(),m=g[0],v=g[1],b=d?g[2]:null;return r&&t(v).on("scroll.DT",function(t){var e=this.scrollLeft;m.scrollLeft=e,d&&(b.scrollLeft=e)}),t(v).css(o&&i.bCollapse?"max-height":"height",o),e.nScrollHead=m,e.nScrollBody=v,e.nScrollFoot=b,e.aoDrawCallback.push({fn:gt,sName:"scrolling"}),f[0]}function gt(e){var n,r,o,a,s,l,c,u,d,h=e.oScroll,g=h.sX,m=h.sXInner,v=h.sY,b=h.iBarWidth,y=t(e.nScrollHead),w=y[0].style,x=y.children("div"),C=x[0].style,S=x.children("table"),T=e.nScrollBody,k=t(T),D=T.style,_=t(e.nScrollFoot),j=_.children("div"),$=j.children("table"),A=t(e.nTHead),I=t(e.nTable),L=I[0],E=L.style,N=e.nTFoot?t(e.nTFoot):null,P=e.oBrowser,H=P.bScrollOversize,O=le(e.aoColumns,"nTh"),R=[],F=[],Q=[],M=[],W=function(t){var e=t.style;e.paddingTop="0",e.paddingBottom="0",e.borderTopWidth="0",e.borderBottomWidth="0",e.height=0},z=T.scrollHeight>T.clientHeight;if(e.scrollBarVis!==z&&e.scrollBarVis!==i)return e.scrollBarVis=z,void p(e);e.scrollBarVis=z,I.children("thead, tfoot").remove(),N&&(l=N.clone().prependTo(I),r=N.find("tr"),a=l.find("tr")),s=A.clone().prependTo(I),n=A.find("tr"),o=s.find("tr"),s.find("th, td").removeAttr("tabindex"),g||(D.width="100%",y[0].style.width="100%"),t.each(B(e,s),function(t,n){c=f(e,t),n.style.width=e.aoColumns[c].sWidth}),N&&mt(function(t){t.style.width=""},a),d=I.outerWidth(),""===g?(E.width="100%",H&&(I.find("tbody").height()>T.offsetHeight||"scroll"==k.css("overflow-y"))&&(E.width=xt(I.outerWidth()-b)),d=I.outerWidth()):""!==m&&(E.width=xt(m),d=I.outerWidth()),mt(W,o),mt(function(e){Q.push(e.innerHTML),R.push(xt(t(e).css("width")))},o),mt(function(e,n){t.inArray(e,O)!==-1&&(e.style.width=R[n])},n),t(o).height(0),N&&(mt(W,a),mt(function(e){M.push(e.innerHTML),F.push(xt(t(e).css("width")))},a),mt(function(t,e){t.style.width=F[e]},r),t(a).height(0)),mt(function(t,e){t.innerHTML='<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+Q[e]+"</div>",t.style.width=R[e]},o),N&&mt(function(t,e){t.innerHTML='<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+M[e]+"</div>",t.style.width=F[e]},a),I.outerWidth()<d?(u=T.scrollHeight>T.offsetHeight||"scroll"==k.css("overflow-y")?d+b:d,H&&(T.scrollHeight>T.offsetHeight||"scroll"==k.css("overflow-y"))&&(E.width=xt(u-b)),""!==g&&""===m||Lt(e,1,"Possible column misalignment",6)):u="100%",D.width=xt(u),w.width=xt(u),N&&(e.nScrollFoot.style.width=xt(u)),v||H&&(D.height=xt(L.offsetHeight+b));var q=I.outerWidth();S[0].style.width=xt(q),C.width=xt(q);var U=I.height()>T.clientHeight||"scroll"==k.css("overflow-y"),V="padding"+(P.bScrollbarLeft?"Left":"Right");C[V]=U?b+"px":"0px",N&&($[0].style.width=xt(q),j[0].style.width=xt(q),j[0].style[V]=U?b+"px":"0px"),I.children("colgroup").insertBefore(I.children("thead")),k.scroll(),!e.bSorted&&!e.bFiltered||e._drawHold||(T.scrollTop=0)}function mt(t,e,n){for(var i,r,o=0,a=0,s=e.length;a<s;){for(i=e[a].firstChild,r=n?n[a].firstChild:null;i;)1===i.nodeType&&(n?t(i,r,o):t(i,o),o++),i=i.nextSibling,r=n?r.nextSibling:null;a++}}function vt(n){var i,r,o,a=n.nTable,s=n.aoColumns,l=n.oScroll,c=l.sY,u=l.sX,d=l.sXInner,h=s.length,g=v(n,"bVisible"),b=t("th",n.nTHead),y=a.getAttribute("width"),w=a.parentNode,x=!1,C=n.oBrowser,S=C.bScrollOversize,T=a.style.width;for(T&&T.indexOf("%")!==-1&&(y=T),i=0;i<g.length;i++)r=s[g[i]],null!==r.sWidth&&(r.sWidth=bt(r.sWidthOrig,w),x=!0);if(S||!x&&!u&&!c&&h==m(n)&&h==b.length)for(i=0;i<h;i++){var k=f(n,i);null!==k&&(s[k].sWidth=xt(b.eq(i).width()))}else{var D=t(a).clone().css("visibility","hidden").removeAttr("id");D.find("tbody tr").remove();var _=t("<tr/>").appendTo(D.find("tbody"));for(D.find("thead, tfoot").remove(),D.append(t(n.nTHead).clone()).append(t(n.nTFoot).clone()),D.find("tfoot th, tfoot td").css("width",""),b=B(n,D.find("thead")[0]),i=0;i<g.length;i++)r=s[g[i]],b[i].style.width=null!==r.sWidthOrig&&""!==r.sWidthOrig?xt(r.sWidthOrig):"",r.sWidthOrig&&u&&t(b[i]).append(t("<div/>").css({width:r.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(n.aoData.length)for(i=0;i<g.length;i++)o=g[i],r=s[o],t(yt(n,o)).clone(!1).append(r.sContentPadding).appendTo(_);t("[name]",D).removeAttr("name");var j=t("<div/>").css(u||c?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(D).appendTo(w);u&&d?D.width(d):u?(D.css("width","auto"),D.removeAttr("width"),D.width()<w.clientWidth&&y&&D.width(w.clientWidth)):c?D.width(w.clientWidth):y&&D.width(y);var $=0;for(i=0;i<g.length;i++){var A=t(b[i]),I=A.outerWidth()-A.width(),L=C.bBounding?Math.ceil(b[i].getBoundingClientRect().width):A.outerWidth();$+=L,s[g[i]].sWidth=xt(L-I)}a.style.width=xt($),j.remove()}if(y&&(a.style.width=xt(y)),(y||u)&&!n._reszEvt){var E=function(){t(e).bind("resize.DT-"+n.sInstance,xe(function(){p(n)}))};S?setTimeout(E,1e3):E(),n._reszEvt=!0}}function bt(e,i){if(!e)return 0;var r=t("<div/>").css("width",xt(e)).appendTo(i||n.body),o=r[0].offsetWidth;return r.remove(),o}function yt(e,n){var i=wt(e,n);if(i<0)return null;var r=e.aoData[i];return r.nTr?r.anCells[n]:t("<td/>").html(T(e,i,n,"display"))[0]}function wt(t,e){for(var n,i=-1,r=-1,o=0,a=t.aoData.length;o<a;o++)n=T(t,o,e,"display")+"",n=n.replace(we,""),n=n.replace(/&nbsp;/g," "),n.length>i&&(i=n.length,r=o);return r}function xt(t){return null===t?"0px":"number"==typeof t?t<0?"0px":t+"px":t.match(/\d$/)?t+"px":t}function Ct(e){var n,r,o,a,s,l,c,u=[],d=e.aoColumns,h=e.aaSortingFixed,p=t.isPlainObject(h),f=[],g=function(e){e.length&&!t.isArray(e[0])?f.push(e):t.merge(f,e)};for(t.isArray(h)&&g(h),p&&h.pre&&g(h.pre),g(e.aaSorting),p&&h.post&&g(h.post),n=0;n<f.length;n++)for(c=f[n][0],a=d[c].aDataSort,r=0,o=a.length;r<o;r++)s=a[r],l=d[s].sType||"string",f[n]._idx===i&&(f[n]._idx=t.inArray(f[n][1],d[s].asSorting)),u.push({src:c,col:s,dir:f[n][1],index:f[n]._idx,type:l,formatter:Xt.ext.type.order[l+"-pre"]});return u}function St(t){var e,n,i,r,o,a=[],s=Xt.ext.type.order,l=t.aoData,c=(t.aoColumns,0),u=t.aiDisplayMaster;for(b(t),o=Ct(t),e=0,n=o.length;e<n;e++)r=o[e],r.formatter&&c++,jt(t,r.col);if("ssp"!=Qt(t)&&0!==o.length){for(e=0,i=u.length;e<i;e++)a[u[e]]=e;c===o.length?u.sort(function(t,e){var n,i,r,s,c,u=o.length,d=l[t]._aSortData,h=l[e]._aSortData;for(r=0;r<u;r++)if(c=o[r],n=d[c.col],i=h[c.col],s=n<i?-1:n>i?1:0,0!==s)return"asc"===c.dir?s:-s;return n=a[t],i=a[e],n<i?-1:n>i?1:0}):u.sort(function(t,e){var n,i,r,c,u,d,h=o.length,p=l[t]._aSortData,f=l[e]._aSortData;for(r=0;r<h;r++)if(u=o[r],n=p[u.col],i=f[u.col],d=s[u.type+"-"+u.dir]||s["string-"+u.dir],c=d(n,i),0!==c)return c;return n=a[t],i=a[e],n<i?-1:n>i?1:0})}t.bSorted=!0}function Tt(t){for(var e,n,i=t.aoColumns,r=Ct(t),o=t.oLanguage.oAria,a=0,s=i.length;a<s;a++){var l=i[a],c=l.asSorting,u=l.sTitle.replace(/<.*?>/g,""),d=l.nTh;d.removeAttribute("aria-sort"),l.bSortable?(r.length>0&&r[0].col==a?(d.setAttribute("aria-sort","asc"==r[0].dir?"ascending":"descending"),n=c[r[0].index+1]||c[0]):n=c[0],e=u+("asc"===n?o.sSortAscending:o.sSortDescending)):e=u,d.setAttribute("aria-label",e)}}function kt(e,n,r,o){var a,s=e.aoColumns[n],l=e.aaSorting,c=s.asSorting,u=function(e,n){var r=e._idx;return r===i&&(r=t.inArray(e[1],c)),r+1<c.length?r+1:n?null:0};if("number"==typeof l[0]&&(l=e.aaSorting=[l]),r&&e.oFeatures.bSortMulti){var d=t.inArray(n,le(l,"0"));d!==-1?(a=u(l[d],!0),null===a&&1===l.length&&(a=0),null===a?l.splice(d,1):(l[d][1]=c[a],l[d]._idx=a)):(l.push([n,c[0],0]),l[l.length-1]._idx=0)}else l.length&&l[0][0]==n?(a=u(l[0]),l.length=1,l[0][1]=c[a],l[0]._idx=a):(l.length=0,l.push([n,c[0]]),l[0]._idx=0);F(e),"function"==typeof o&&o(e)}function Dt(t,e,n,i){var r=t.aoColumns[n];Pt(e,{},function(e){r.bSortable!==!1&&(t.oFeatures.bProcessing?(pt(t,!0),setTimeout(function(){kt(t,n,e.shiftKey,i),"ssp"!==Qt(t)&&pt(t,!1)},0)):kt(t,n,e.shiftKey,i))})}function _t(e){var n,i,r,o=e.aLastSort,a=e.oClasses.sSortColumn,s=Ct(e),l=e.oFeatures;if(l.bSort&&l.bSortClasses){for(n=0,i=o.length;n<i;n++)r=o[n].src,t(le(e.aoData,"anCells",r)).removeClass(a+(n<2?n+1:3));for(n=0,i=s.length;n<i;n++)r=s[n].src,t(le(e.aoData,"anCells",r)).addClass(a+(n<2?n+1:3))}e.aLastSort=s}function jt(t,e){var n,i=t.aoColumns[e],r=Xt.ext.order[i.sSortDataType];r&&(n=r.call(t.oInstance,t,e,g(t,e)));for(var o,a,s=Xt.ext.type.order[i.sType+"-pre"],l=0,c=t.aoData.length;l<c;l++)o=t.aoData[l],o._aSortData||(o._aSortData=[]),o._aSortData[e]&&!r||(a=r?n[l]:T(t,l,e,"sort"),o._aSortData[e]=s?s(a):a)}function $t(e){if(e.oFeatures.bStateSave&&!e.bDestroying){var n={time:+new Date,start:e._iDisplayStart,length:e._iDisplayLength,order:t.extend(!0,[],e.aaSorting),search:et(e.oPreviousSearch),columns:t.map(e.aoColumns,function(t,n){return{visible:t.bVisible,search:et(e.aoPreSearchCols[n])}})};Ot(e,"aoStateSaveParams","stateSaveParams",[e,n]),e.oSavedState=n,e.fnStateSaveCallback.call(e.oInstance,e,n)}}function At(e,n){var r,o,a=e.aoColumns;if(e.oFeatures.bStateSave){var s=e.fnStateLoadCallback.call(e.oInstance,e);if(s&&s.time){var l=Ot(e,"aoStateLoadParams","stateLoadParams",[e,s]);if(t.inArray(!1,l)===-1){var c=e.iStateDuration;if(!(c>0&&s.time<+new Date-1e3*c)&&a.length===s.columns.length){for(e.oLoadedState=t.extend(!0,{},s),s.start!==i&&(e._iDisplayStart=s.start,e.iInitDisplayStart=s.start),s.length!==i&&(e._iDisplayLength=s.length),s.order!==i&&(e.aaSorting=[],t.each(s.order,function(t,n){e.aaSorting.push(n[0]>=a.length?[0,n[1]]:n)})),s.search!==i&&t.extend(e.oPreviousSearch,nt(s.search)),r=0,o=s.columns.length;r<o;r++){var u=s.columns[r];u.visible!==i&&(a[r].bVisible=u.visible),u.search!==i&&t.extend(e.aoPreSearchCols[r],nt(u.search))}Ot(e,"aoStateLoaded","stateLoaded",[e,s])}}}}}function It(e){var n=Xt.settings,i=t.inArray(e,le(n,"nTable"));return i!==-1?n[i]:null}function Lt(t,n,i,r){if(i="DataTables warning: "+(t?"table id="+t.sTableId+" - ":"")+i,r&&(i+=". For more information about this error, please see http://datatables.net/tn/"+r),n)e.console&&console.log&&console.log(i);else{var o=Xt.ext,a=o.sErrMode||o.errMode;if(t&&Ot(t,null,"error",[t,r,i]),"alert"==a)alert(i);else{if("throw"==a)throw new Error(i);"function"==typeof a&&a(t,r,i)}}}function Et(e,n,r,o){return t.isArray(r)?void t.each(r,function(i,r){t.isArray(r)?Et(e,n,r[0],r[1]):Et(e,n,r)}):(o===i&&(o=r),void(n[r]!==i&&(e[o]=n[r])))}function Nt(e,n,i){var r;for(var o in n)n.hasOwnProperty(o)&&(r=n[o],t.isPlainObject(r)?(t.isPlainObject(e[o])||(e[o]={}),t.extend(!0,e[o],r)):i&&"data"!==o&&"aaData"!==o&&t.isArray(r)?e[o]=r.slice():e[o]=r);return e}function Pt(e,n,i){t(e).bind("click.DT",n,function(t){e.blur(),i(t)}).bind("keypress.DT",n,function(t){13===t.which&&(t.preventDefault(),i(t))}).bind("selectstart.DT",function(){return!1})}function Ht(t,e,n,i){n&&t[e].push({fn:n,sName:i})}function Ot(e,n,i,r){var o=[];if(n&&(o=t.map(e[n].slice().reverse(),function(t,n){return t.fn.apply(e.oInstance,r)})),null!==i){var a=t.Event(i+".dt");t(e.nTable).trigger(a,r),o.push(a.result)}return o}function Rt(t){var e=t._iDisplayStart,n=t.fnDisplayEnd(),i=t._iDisplayLength;e>=n&&(e=n-i),e-=e%i,(i===-1||e<0)&&(e=0),t._iDisplayStart=e}function Ft(e,n){var i=e.renderer,r=Xt.ext.renderer[n];return t.isPlainObject(i)&&i[n]?r[i[n]]||r._:"string"==typeof i?r[i]||r._:r._}function Qt(t){return t.oFeatures.bServerSide?"ssp":t.ajax||t.sAjaxSource?"ajax":"dom"}function Mt(t,e){var n=[],i=ze.numbers_length,r=Math.floor(i/2);return e<=i?n=ue(0,e):t<=r?(n=ue(0,i-2),n.push("ellipsis"),n.push(e-1)):t>=e-1-r?(n=ue(e-(i-2),e),n.splice(0,0,"ellipsis"),n.splice(0,0,0)):(n=ue(t-r+2,t+r-1),n.push("ellipsis"),n.push(e-1),n.splice(0,0,"ellipsis"),n.splice(0,0,0)),n.DT_el="span",n}function Bt(e){t.each({num:function(t){return qe(t,e)},"num-fmt":function(t){return qe(t,e,ee)},"html-num":function(t){return qe(t,e,Kt)},"html-num-fmt":function(t){return qe(t,e,Kt,ee)}},function(t,n){zt.type.order[t+e+"-pre"]=n,t.match(/^html\-/)&&(zt.type.search[t+e]=zt.type.search.html)})}function Wt(t){return function(){var e=[It(this[Xt.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return Xt.ext.internal[t].apply(this,e)}}var zt,qt,Ut,Vt,Xt=function(e){this.$=function(t,e){return this.api(!0).$(t,e)},this._=function(t,e){return this.api(!0).rows(t,e).data()},this.api=function(t){return new qt(t?It(this[zt.iApiIndex]):this)},this.fnAddData=function(e,n){var r=this.api(!0),o=t.isArray(e)&&(t.isArray(e[0])||t.isPlainObject(e[0]))?r.rows.add(e):r.row.add(e);return(n===i||n)&&r.draw(),o.flatten().toArray()},this.fnAdjustColumnSizing=function(t){var e=this.api(!0).columns.adjust(),n=e.settings()[0],r=n.oScroll;t===i||t?e.draw(!1):""===r.sX&&""===r.sY||gt(n)},this.fnClearTable=function(t){var e=this.api(!0).clear();(t===i||t)&&e.draw()},this.fnClose=function(t){this.api(!0).row(t).child.hide()},this.fnDeleteRow=function(t,e,n){var r=this.api(!0),o=r.rows(t),a=o.settings()[0],s=a.aoData[o[0][0]];return o.remove(),e&&e.call(this,a,s),(n===i||n)&&r.draw(),s},this.fnDestroy=function(t){this.api(!0).destroy(t)},this.fnDraw=function(t){this.api(!0).draw(t)},this.fnFilter=function(t,e,n,r,o,a){var s=this.api(!0);null===e||e===i?s.search(t,n,r,a):s.column(e).search(t,n,r,a),s.draw()},this.fnGetData=function(t,e){var n=this.api(!0);if(t!==i){var r=t.nodeName?t.nodeName.toLowerCase():"";return e!==i||"td"==r||"th"==r?n.cell(t,e).data():n.row(t).data()||null}return n.data().toArray()},this.fnGetNodes=function(t){var e=this.api(!0);return t!==i?e.row(t).node():e.rows().nodes().flatten().toArray()},this.fnGetPosition=function(t){var e=this.api(!0),n=t.nodeName.toUpperCase();if("TR"==n)return e.row(t).index();if("TD"==n||"TH"==n){var i=e.cell(t).index();return[i.row,i.columnVisible,i.column]}return null},this.fnIsOpen=function(t){return this.api(!0).row(t).child.isShown()},this.fnOpen=function(t,e,n){return this.api(!0).row(t).child(e,n).show().child()[0]},this.fnPageChange=function(t,e){var n=this.api(!0).page(t);(e===i||e)&&n.draw(!1)},this.fnSetColumnVis=function(t,e,n){var r=this.api(!0).column(t).visible(e);(n===i||n)&&r.columns.adjust().draw()},this.fnSettings=function(){return It(this[zt.iApiIndex])},this.fnSort=function(t){this.api(!0).order(t).draw()},this.fnSortListener=function(t,e,n){this.api(!0).order.listener(t,e,n)},this.fnUpdate=function(t,e,n,r,o){var a=this.api(!0);return n===i||null===n?a.row(e).data(t):a.cell(e,n).data(t),(o===i||o)&&a.columns.adjust(),(r===i||r)&&a.draw(),0},this.fnVersionCheck=zt.fnVersionCheck;var n=this,r=e===i,u=this.length;r&&(e={}),this.oApi=this.internal=zt.internal;for(var p in Xt.ext.internal)p&&(this[p]=Wt(p));return this.each(function(){var p,f={},g=u>1?Nt(f,e,!0):e,m=0,v=this.getAttribute("id"),b=!1,C=Xt.defaults,S=t(this);if("table"!=this.nodeName.toLowerCase())return void Lt(null,0,"Non-table node initialisation ("+this.nodeName+")",2);s(C),l(C.column),o(C,C,!0),o(C.column,C.column,!0),o(C,t.extend(g,S.data()));var T=Xt.settings;for(m=0,p=T.length;m<p;m++){var k=T[m];if(k.nTable==this||k.nTHead.parentNode==this||k.nTFoot&&k.nTFoot.parentNode==this){var D=g.bRetrieve!==i?g.bRetrieve:C.bRetrieve,j=g.bDestroy!==i?g.bDestroy:C.bDestroy;if(r||D)return k.oInstance;if(j){k.oInstance.fnDestroy();break}return void Lt(k,0,"Cannot reinitialise DataTable",3)}if(k.sTableId==this.id){T.splice(m,1);break}}null!==v&&""!==v||(v="DataTables_Table_"+Xt.ext._unique++,this.id=v);var $=t.extend(!0,{},Xt.models.oSettings,{sDestroyWidth:S[0].style.width,sInstance:v,sTableId:v});$.nTable=this,$.oApi=n.internal,$.oInit=g,T.push($),$.oInstance=1===n.length?n:S.dataTable(),s(g),g.oLanguage&&a(g.oLanguage),g.aLengthMenu&&!g.iDisplayLength&&(g.iDisplayLength=t.isArray(g.aLengthMenu[0])?g.aLengthMenu[0][0]:g.aLengthMenu[0]),g=Nt(t.extend(!0,{},C),g),Et($.oFeatures,g,["bPaginate","bLengthChange","bFilter","bSort","bSortMulti","bInfo","bProcessing","bAutoWidth","bSortClasses","bServerSide","bDeferRender"]),Et($,g,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"],["bJQueryUI","bJUI"]]),Et($.oScroll,g,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),Et($.oLanguage,g,"fnInfoCallback"),Ht($,"aoDrawCallback",g.fnDrawCallback,"user"),Ht($,"aoServerParams",g.fnServerParams,"user"),Ht($,"aoStateSaveParams",g.fnStateSaveParams,"user"),Ht($,"aoStateLoadParams",g.fnStateLoadParams,"user"),Ht($,"aoStateLoaded",g.fnStateLoaded,"user"),Ht($,"aoRowCallback",g.fnRowCallback,"user"),Ht($,"aoRowCreatedCallback",g.fnCreatedRow,"user"),Ht($,"aoHeaderCallback",g.fnHeaderCallback,"user"),Ht($,"aoFooterCallback",g.fnFooterCallback,"user"),Ht($,"aoInitComplete",g.fnInitComplete,"user"),Ht($,"aoPreDrawCallback",g.fnPreDrawCallback,"user"),$.rowIdFn=_(g.rowId),c($);var A=$.oClasses;if(g.bJQueryUI?(t.extend(A,Xt.ext.oJUIClasses,g.oClasses),g.sDom===C.sDom&&"lfrtip"===C.sDom&&($.sDom='<"H"lfr>t<"F"ip>'),$.renderer?t.isPlainObject($.renderer)&&!$.renderer.header&&($.renderer.header="jqueryui"):$.renderer="jqueryui"):t.extend(A,Xt.ext.classes,g.oClasses),S.addClass(A.sTable),$.iInitDisplayStart===i&&($.iInitDisplayStart=g.iDisplayStart,$._iDisplayStart=g.iDisplayStart),null!==g.iDeferLoading){$.bDeferLoading=!0;var I=t.isArray(g.iDeferLoading);$._iRecordsDisplay=I?g.iDeferLoading[0]:g.iDeferLoading,$._iRecordsTotal=I?g.iDeferLoading[1]:g.iDeferLoading}var L=$.oLanguage;t.extend(!0,L,g.oLanguage),""!==L.sUrl&&(t.ajax({dataType:"json",url:L.sUrl,success:function(e){a(e),o(C.oLanguage,e),t.extend(!0,L,e),at($)},error:function(){at($)}}),b=!0),null===g.asStripeClasses&&($.asStripeClasses=[A.sStripeOdd,A.sStripeEven]);var E=$.asStripeClasses,N=S.children("tbody").find("tr").eq(0);t.inArray(!0,t.map(E,function(t,e){return N.hasClass(t)}))!==-1&&(t("tbody tr",this).removeClass(E.join(" ")),$.asDestroyStripes=E.slice());var P,H=[],O=this.getElementsByTagName("thead");if(0!==O.length&&(M($.aoHeader,O[0]),H=B($)),null===g.aoColumns)for(P=[],m=0,p=H.length;m<p;m++)P.push(null);else P=g.aoColumns;for(m=0,p=P.length;m<p;m++)d($,H?H[m]:null);if(y($,g.aoColumnDefs,P,function(t,e){h($,t,e)}),N.length){var R=function(t,e){return null!==t.getAttribute("data-"+e)?e:null};t(N[0]).children("th, td").each(function(t,e){var n=$.aoColumns[t];if(n.mData===t){var r=R(e,"sort")||R(e,"order"),o=R(e,"filter")||R(e,"search");null===r&&null===o||(n.mData={_:t+".display",sort:null!==r?t+".@data-"+r:i,type:null!==r?t+".@data-"+r:i,filter:null!==o?t+".@data-"+o:i},h($,t))}})}var F=$.oFeatures;if(g.bStateSave&&(F.bStateSave=!0,At($,g),Ht($,"aoDrawCallback",$t,"state_save")),g.aaSorting===i){var Q=$.aaSorting;for(m=0,p=Q.length;m<p;m++)Q[m][1]=$.aoColumns[m].asSorting[0]}_t($),F.bSort&&Ht($,"aoDrawCallback",function(){if($.bSorted){var e=Ct($),n={};t.each(e,function(t,e){n[e.src]=e.dir}),Ot($,null,"order",[$,e,n]),Tt($)}}),Ht($,"aoDrawCallback",function(){($.bSorted||"ssp"===Qt($)||F.bDeferRender)&&_t($)},"sc");var W=S.children("caption").each(function(){this._captionSide=S.css("caption-side")}),z=S.children("thead");0===z.length&&(z=t("<thead/>").appendTo(this)),$.nTHead=z[0];var q=S.children("tbody");0===q.length&&(q=t("<tbody/>").appendTo(this)),$.nTBody=q[0];var U=S.children("tfoot");if(0===U.length&&W.length>0&&(""!==$.oScroll.sX||""!==$.oScroll.sY)&&(U=t("<tfoot/>").appendTo(this)),0===U.length||0===U.children().length?S.addClass(A.sNoFooter):U.length>0&&($.nTFoot=U[0],M($.aoFooter,$.nTFoot)),g.aaData)for(m=0;m<g.aaData.length;m++)w($,g.aaData[m]);else($.bDeferLoading||"dom"==Qt($))&&x($,t($.nTBody).children("tr"));$.aiDisplay=$.aiDisplayMaster.slice(),$.bInitialised=!0,b===!1&&at($)}),n=null,this},Jt={},Gt=/[\r\n]/g,Kt=/<.*?>/g,Yt=/^[\w\+\-]/,Zt=/[\w\+\-]$/,te=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),ee=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfk]/gi,ne=function(t){return!t||t===!0||"-"===t},ie=function(t){var e=parseInt(t,10);return!isNaN(e)&&isFinite(t)?e:null},re=function(t,e){return Jt[e]||(Jt[e]=new RegExp(ve(e),"g")),"string"==typeof t&&"."!==e?t.replace(/\./g,"").replace(Jt[e],"."):t},oe=function(t,e,n){var i="string"==typeof t;return!!ne(t)||(e&&i&&(t=re(t,e)),n&&i&&(t=t.replace(ee,"")),!isNaN(parseFloat(t))&&isFinite(t))},ae=function(t){return ne(t)||"string"==typeof t},se=function(t,e,n){if(ne(t))return!0;var i=ae(t);return i?!!oe(he(t),e,n)||null:null},le=function(t,e,n){var r=[],o=0,a=t.length;if(n!==i)for(;o<a;o++)t[o]&&t[o][e]&&r.push(t[o][e][n]);else for(;o<a;o++)t[o]&&r.push(t[o][e]);return r},ce=function(t,e,n,r){var o=[],a=0,s=e.length;if(r!==i)for(;a<s;a++)t[e[a]][n]&&o.push(t[e[a]][n][r]);else for(;a<s;a++)o.push(t[e[a]][n]);return o},ue=function(t,e){var n,r=[];e===i?(e=0,n=t):(n=e,e=t);for(var o=e;o<n;o++)r.push(o);return r},de=function(t){for(var e=[],n=0,i=t.length;n<i;n++)t[n]&&e.push(t[n]);return e},he=function(t){return t.replace(Kt,"")},pe=function(t){var e,n,i,r=[],o=t.length,a=0;t:for(n=0;n<o;n++){for(e=t[n],i=0;i<a;i++)if(r[i]===e)continue t;r.push(e),a++}return r};Xt.util={throttle:function(t,e){var n,r,o=e!==i?e:200;return function(){var e=this,a=+new Date,s=arguments;n&&a<n+o?(clearTimeout(r),r=setTimeout(function(){n=i,t.apply(e,s)},o)):(n=a,t.apply(e,s))}},escapeRegex:function(t){return t.replace(te,"\\$1")}};var fe=function(t,e,n){t[e]!==i&&(t[n]=t[e])},ge=/\[.*?\]$/,me=/\(\)$/,ve=Xt.util.escapeRegex,be=t("<div>")[0],ye=be.textContent!==i,we=/<.*?>/g,xe=Xt.util.throttle,Ce=[],Se=Array.prototype,Te=function(e){var n,i,r=Xt.settings,o=t.map(r,function(t,e){return t.nTable});return e?e.nTable&&e.oApi?[e]:e.nodeName&&"table"===e.nodeName.toLowerCase()?(n=t.inArray(e,o),n!==-1?[r[n]]:null):e&&"function"==typeof e.settings?e.settings().toArray():("string"==typeof e?i=t(e):e instanceof t&&(i=e),i?i.map(function(e){return n=t.inArray(this,o),n!==-1?r[n]:null}).toArray():void 0):[]};qt=function(e,n){if(!(this instanceof qt))return new qt(e,n);var i=[],r=function(t){var e=Te(t);e&&(i=i.concat(e))};if(t.isArray(e))for(var o=0,a=e.length;o<a;o++)r(e[o]);else r(e);this.context=pe(i),n&&t.merge(this,n),this.selector={rows:null,cols:null,opts:null},qt.extend(this,this,Ce)},Xt.Api=qt,t.extend(qt.prototype,{any:function(){return 0!==this.count()},concat:Se.concat,context:[],count:function(){return this.flatten().length},each:function(t){for(var e=0,n=this.length;e<n;e++)t.call(this,this[e],e,this);return this},eq:function(t){var e=this.context;return e.length>t?new qt(e[t],this[t]):null},filter:function(t){var e=[];if(Se.filter)e=Se.filter.call(this,t,this);else for(var n=0,i=this.length;n<i;n++)t.call(this,this[n],n,this)&&e.push(this[n]);return new qt(this.context,e)},flatten:function(){var t=[];return new qt(this.context,t.concat.apply(t,this.toArray()))},join:Se.join,indexOf:Se.indexOf||function(t,e){for(var n=e||0,i=this.length;n<i;n++)if(this[n]===t)return n;return-1},iterator:function(t,e,n,r){var o,a,s,l,c,u,d,h,p=[],f=this.context,g=this.selector;for("string"==typeof t&&(r=n,
n=e,e=t,t=!1),a=0,s=f.length;a<s;a++){var m=new qt(f[a]);if("table"===e)o=n.call(m,f[a],a),o!==i&&p.push(o);else if("columns"===e||"rows"===e)o=n.call(m,f[a],this[a],a),o!==i&&p.push(o);else if("column"===e||"column-rows"===e||"row"===e||"cell"===e)for(d=this[a],"column-rows"===e&&(u=Ae(f[a],g.opts)),l=0,c=d.length;l<c;l++)h=d[l],o="cell"===e?n.call(m,f[a],h.row,h.column,a,l):n.call(m,f[a],h,a,l,u),o!==i&&p.push(o)}if(p.length||r){var v=new qt(f,t?p.concat.apply([],p):p),b=v.selector;return b.rows=g.rows,b.cols=g.cols,b.opts=g.opts,v}return this},lastIndexOf:Se.lastIndexOf||function(t,e){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(t){var e=[];if(Se.map)e=Se.map.call(this,t,this);else for(var n=0,i=this.length;n<i;n++)e.push(t.call(this,this[n],n));return new qt(this.context,e)},pluck:function(t){return this.map(function(e){return e[t]})},pop:Se.pop,push:Se.push,reduce:Se.reduce||function(t,e){return u(this,t,e,0,this.length,1)},reduceRight:Se.reduceRight||function(t,e){return u(this,t,e,this.length-1,-1,-1)},reverse:Se.reverse,selector:null,shift:Se.shift,sort:Se.sort,splice:Se.splice,toArray:function(){return Se.slice.call(this)},to$:function(){return t(this)},toJQuery:function(){return t(this)},unique:function(){return new qt(this.context,pe(this))},unshift:Se.unshift}),qt.extend=function(e,n,i){if(i.length&&n&&(n instanceof qt||n.__dt_wrapper)){var r,o,a,s=function(t,e,n){return function(){var i=e.apply(t,arguments);return qt.extend(i,i,n.methodExt),i}};for(r=0,o=i.length;r<o;r++)a=i[r],n[a.name]="function"==typeof a.val?s(e,a.val,a):t.isPlainObject(a.val)?{}:a.val,n[a.name].__dt_wrapper=!0,qt.extend(e,n[a.name],a.propExt)}},qt.register=Ut=function(e,n){if(t.isArray(e))for(var i=0,r=e.length;i<r;i++)qt.register(e[i],n);else{var o,a,s,l,c=e.split("."),u=Ce,d=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n].name===e)return t[n];return null};for(o=0,a=c.length;o<a;o++){l=c[o].indexOf("()")!==-1,s=l?c[o].replace("()",""):c[o];var h=d(u,s);h||(h={name:s,val:{},methodExt:[],propExt:[]},u.push(h)),o===a-1?h.val=n:u=l?h.methodExt:h.propExt}}},qt.registerPlural=Vt=function(e,n,r){qt.register(e,r),qt.register(n,function(){var e=r.apply(this,arguments);return e===this?this:e instanceof qt?e.length?t.isArray(e[0])?new qt(e.context,e[0]):e[0]:i:e})};var ke=function(e,n){if("number"==typeof e)return[n[e]];var i=t.map(n,function(t,e){return t.nTable});return t(i).filter(e).map(function(e){var r=t.inArray(this,i);return n[r]}).toArray()};Ut("tables()",function(t){return t?new qt(ke(t,this.context)):this}),Ut("table()",function(t){var e=this.tables(t),n=e.context;return n.length?new qt(n[0]):e}),Vt("tables().nodes()","table().node()",function(){return this.iterator("table",function(t){return t.nTable},1)}),Vt("tables().body()","table().body()",function(){return this.iterator("table",function(t){return t.nTBody},1)}),Vt("tables().header()","table().header()",function(){return this.iterator("table",function(t){return t.nTHead},1)}),Vt("tables().footer()","table().footer()",function(){return this.iterator("table",function(t){return t.nTFoot},1)}),Vt("tables().containers()","table().container()",function(){return this.iterator("table",function(t){return t.nTableWrapper},1)}),Ut("draw()",function(t){return this.iterator("table",function(e){"page"===t?R(e):("string"==typeof t&&(t="full-hold"!==t),F(e,t===!1))})}),Ut("page()",function(t){return t===i?this.page.info().page:this.iterator("table",function(e){dt(e,t)})}),Ut("page.info()",function(t){if(0===this.context.length)return i;var e=this.context[0],n=e._iDisplayStart,r=e.oFeatures.bPaginate?e._iDisplayLength:-1,o=e.fnRecordsDisplay(),a=r===-1;return{page:a?0:Math.floor(n/r),pages:a?1:Math.ceil(o/r),start:n,end:e.fnDisplayEnd(),length:r,recordsTotal:e.fnRecordsTotal(),recordsDisplay:o,serverSide:"ssp"===Qt(e)}}),Ut("page.len()",function(t){return t===i?0!==this.context.length?this.context[0]._iDisplayLength:i:this.iterator("table",function(e){lt(e,t)})});var De=function(t,e,n){if(n){var i=new qt(t);i.one("draw",function(){n(i.ajax.json())})}if("ssp"==Qt(t))F(t,e);else{pt(t,!0);var r=t.jqXHR;r&&4!==r.readyState&&r.abort(),W(t,[],function(n){A(t);for(var i=V(t,n),r=0,o=i.length;r<o;r++)w(t,i[r]);F(t,e),pt(t,!1)})}};Ut("ajax.json()",function(){var t=this.context;if(t.length>0)return t[0].json}),Ut("ajax.params()",function(){var t=this.context;if(t.length>0)return t[0].oAjaxData}),Ut("ajax.reload()",function(t,e){return this.iterator("table",function(n){De(n,e===!1,t)})}),Ut("ajax.url()",function(e){var n=this.context;return e===i?0===n.length?i:(n=n[0],n.ajax?t.isPlainObject(n.ajax)?n.ajax.url:n.ajax:n.sAjaxSource):this.iterator("table",function(n){t.isPlainObject(n.ajax)?n.ajax.url=e:n.ajax=e})}),Ut("ajax.url().load()",function(t,e){return this.iterator("table",function(n){De(n,e===!1,t)})});var _e=function(e,n,r,o,a){var s,l,c,u,d,h,p=[],f=typeof n;for(n&&"string"!==f&&"function"!==f&&n.length!==i||(n=[n]),c=0,u=n.length;c<u;c++)for(l=n[c]&&n[c].split?n[c].split(","):[n[c]],d=0,h=l.length;d<h;d++)s=r("string"==typeof l[d]?t.trim(l[d]):l[d]),s&&s.length&&(p=p.concat(s));var g=zt.selector[e];if(g.length)for(c=0,u=g.length;c<u;c++)p=g[c](o,a,p);return pe(p)},je=function(e){return e||(e={}),e.filter&&e.search===i&&(e.search=e.filter),t.extend({search:"none",order:"current",page:"all"},e)},$e=function(t){for(var e=0,n=t.length;e<n;e++)if(t[e].length>0)return t[0]=t[e],t[0].length=1,t.length=1,t.context=[t.context[e]],t;return t.length=0,t},Ae=function(e,n){var i,r,o,a=[],s=e.aiDisplay,l=e.aiDisplayMaster,c=n.search,u=n.order,d=n.page;if("ssp"==Qt(e))return"removed"===c?[]:ue(0,l.length);if("current"==d)for(i=e._iDisplayStart,r=e.fnDisplayEnd();i<r;i++)a.push(s[i]);else if("current"==u||"applied"==u)a="none"==c?l.slice():"applied"==c?s.slice():t.map(l,function(e,n){return t.inArray(e,s)===-1?e:null});else if("index"==u||"original"==u)for(i=0,r=e.aoData.length;i<r;i++)"none"==c?a.push(i):(o=t.inArray(i,s),(o===-1&&"removed"==c||o>=0&&"applied"==c)&&a.push(i));return a},Ie=function(e,n,r){var o=function(n){var o=ie(n);if(null!==o&&!r)return[o];var a=Ae(e,r);if(null!==o&&t.inArray(o,a)!==-1)return[o];if(!n)return a;if("function"==typeof n)return t.map(a,function(t){var i=e.aoData[t];return n(t,i._aData,i.nTr)?t:null});var s=de(ce(e.aoData,a,"nTr"));if(n.nodeName){if(n._DT_RowIndex!==i)return[n._DT_RowIndex];if(n._DT_CellIndex)return[n._DT_CellIndex.row];var l=t(n).closest("*[data-dt-row]");return l.length?[l.data("dt-row")]:[]}if("string"==typeof n&&"#"===n.charAt(0)){var c=e.aIds[n.replace(/^#/,"")];if(c!==i)return[c.idx]}return t(s).filter(n).map(function(){return this._DT_RowIndex}).toArray()};return _e("row",n,o,e,r)};Ut("rows()",function(e,n){e===i?e="":t.isPlainObject(e)&&(n=e,e=""),n=je(n);var r=this.iterator("table",function(t){return Ie(t,e,n)},1);return r.selector.rows=e,r.selector.opts=n,r}),Ut("rows().nodes()",function(){return this.iterator("row",function(t,e){return t.aoData[e].nTr||i},1)}),Ut("rows().data()",function(){return this.iterator(!0,"rows",function(t,e){return ce(t.aoData,e,"_aData")},1)}),Vt("rows().cache()","row().cache()",function(t){return this.iterator("row",function(e,n){var i=e.aoData[n];return"search"===t?i._aFilterData:i._aSortData},1)}),Vt("rows().invalidate()","row().invalidate()",function(t){return this.iterator("row",function(e,n){L(e,n,t)})}),Vt("rows().indexes()","row().index()",function(){return this.iterator("row",function(t,e){return e},1)}),Vt("rows().ids()","row().id()",function(t){for(var e=[],n=this.context,i=0,r=n.length;i<r;i++)for(var o=0,a=this[i].length;o<a;o++){var s=n[i].rowIdFn(n[i].aoData[this[i][o]]._aData);e.push((t===!0?"#":"")+s)}return new qt(n,e)}),Vt("rows().remove()","row().remove()",function(){var t=this;return this.iterator("row",function(e,n,r){var o,a,s,l,c,u,d=e.aoData,h=d[n];for(d.splice(n,1),o=0,a=d.length;o<a;o++)if(c=d[o],u=c.anCells,null!==c.nTr&&(c.nTr._DT_RowIndex=o),null!==u)for(s=0,l=u.length;s<l;s++)u[s]._DT_CellIndex.row=o;I(e.aiDisplayMaster,n),I(e.aiDisplay,n),I(t[r],n,!1),Rt(e);var p=e.rowIdFn(h._aData);p!==i&&delete e.aIds[p]}),this.iterator("table",function(t){for(var e=0,n=t.aoData.length;e<n;e++)t.aoData[e].idx=e}),this}),Ut("rows.add()",function(e){var n=this.iterator("table",function(t){var n,i,r,o=[];for(i=0,r=e.length;i<r;i++)n=e[i],n.nodeName&&"TR"===n.nodeName.toUpperCase()?o.push(x(t,n)[0]):o.push(w(t,n));return o},1),i=this.rows(-1);return i.pop(),t.merge(i,n),i}),Ut("row()",function(t,e){return $e(this.rows(t,e))}),Ut("row().data()",function(t){var e=this.context;return t===i?e.length&&this.length?e[0].aoData[this[0]]._aData:i:(e[0].aoData[this[0]]._aData=t,L(e[0],this[0],"data"),this)}),Ut("row().node()",function(){var t=this.context;return t.length&&this.length?t[0].aoData[this[0]].nTr||null:null}),Ut("row.add()",function(e){e instanceof t&&e.length&&(e=e[0]);var n=this.iterator("table",function(t){return e.nodeName&&"TR"===e.nodeName.toUpperCase()?x(t,e)[0]:w(t,e)});return this.row(n[0])});var Le=function(e,n,i,r){var o=[],a=function(n,i){if(t.isArray(n)||n instanceof t)for(var r=0,s=n.length;r<s;r++)a(n[r],i);else if(n.nodeName&&"tr"===n.nodeName.toLowerCase())o.push(n);else{var l=t("<tr><td/></tr>").addClass(i);t("td",l).addClass(i).html(n)[0].colSpan=m(e),o.push(l[0])}};a(i,r),n._details&&n._details.remove(),n._details=t(o),n._detailsShow&&n._details.insertAfter(n.nTr)},Ee=function(t,e){var n=t.context;if(n.length){var r=n[0].aoData[e!==i?e:t[0]];r&&r._details&&(r._details.remove(),r._detailsShow=i,r._details=i)}},Ne=function(t,e){var n=t.context;if(n.length&&t.length){var i=n[0].aoData[t[0]];i._details&&(i._detailsShow=e,e?i._details.insertAfter(i.nTr):i._details.detach(),Pe(n[0]))}},Pe=function(t){var e=new qt(t),n=".dt.DT_details",i="draw"+n,r="column-visibility"+n,o="destroy"+n,a=t.aoData;e.off(i+" "+r+" "+o),le(a,"_details").length>0&&(e.on(i,function(n,i){t===i&&e.rows({page:"current"}).eq(0).each(function(t){var e=a[t];e._detailsShow&&e._details.insertAfter(e.nTr)})}),e.on(r,function(e,n,i,r){if(t===n)for(var o,s=m(n),l=0,c=a.length;l<c;l++)o=a[l],o._details&&o._details.children("td[colspan]").attr("colspan",s)}),e.on(o,function(n,i){if(t===i)for(var r=0,o=a.length;r<o;r++)a[r]._details&&Ee(e,r)}))},He="",Oe=He+"row().child",Re=Oe+"()";Ut(Re,function(t,e){var n=this.context;return t===i?n.length&&this.length?n[0].aoData[this[0]]._details:i:(t===!0?this.child.show():t===!1?Ee(this):n.length&&this.length&&Le(n[0],n[0].aoData[this[0]],t,e),this)}),Ut([Oe+".show()",Re+".show()"],function(t){return Ne(this,!0),this}),Ut([Oe+".hide()",Re+".hide()"],function(){return Ne(this,!1),this}),Ut([Oe+".remove()",Re+".remove()"],function(){return Ee(this),this}),Ut(Oe+".isShown()",function(){var t=this.context;return!(!t.length||!this.length)&&(t[0].aoData[this[0]]._detailsShow||!1)});var Fe=/^(.+):(name|visIdx|visible)$/,Qe=function(t,e,n,i,r){for(var o=[],a=0,s=r.length;a<s;a++)o.push(T(t,r[a],e));return o},Me=function(e,n,i){var r=e.aoColumns,o=le(r,"sName"),a=le(r,"nTh"),s=function(n){var s=ie(n);if(""===n)return ue(r.length);if(null!==s)return[s>=0?s:r.length+s];if("function"==typeof n){var l=Ae(e,i);return t.map(r,function(t,i){return n(i,Qe(e,i,0,0,l),a[i])?i:null})}var c="string"==typeof n?n.match(Fe):"";if(c)switch(c[2]){case"visIdx":case"visible":var u=parseInt(c[1],10);if(u<0){var d=t.map(r,function(t,e){return t.bVisible?e:null});return[d[d.length+u]]}return[f(e,u)];case"name":return t.map(o,function(t,e){return t===c[1]?e:null});default:return[]}if(n.nodeName&&n._DT_CellIndex)return[n._DT_CellIndex.column];var h=t(a).filter(n).map(function(){return t.inArray(this,a)}).toArray();if(h.length||!n.nodeName)return h;var p=t(n).closest("*[data-dt-column]");return p.length?[p.data("dt-column")]:[]};return _e("column",n,s,e,i)},Be=function(e,n,r){var o,a,s,l,c=e.aoColumns,u=c[n],d=e.aoData;if(r===i)return u.bVisible;if(u.bVisible!==r){if(r){var h=t.inArray(!0,le(c,"bVisible"),n+1);for(a=0,s=d.length;a<s;a++)l=d[a].nTr,o=d[a].anCells,l&&l.insertBefore(o[n],o[h]||null)}else t(le(e.aoData,"anCells",n)).detach();u.bVisible=r,O(e,e.aoHeader),O(e,e.aoFooter),$t(e)}};Ut("columns()",function(e,n){e===i?e="":t.isPlainObject(e)&&(n=e,e=""),n=je(n);var r=this.iterator("table",function(t){return Me(t,e,n)},1);return r.selector.cols=e,r.selector.opts=n,r}),Vt("columns().header()","column().header()",function(t,e){return this.iterator("column",function(t,e){return t.aoColumns[e].nTh},1)}),Vt("columns().footer()","column().footer()",function(t,e){return this.iterator("column",function(t,e){return t.aoColumns[e].nTf},1)}),Vt("columns().data()","column().data()",function(){return this.iterator("column-rows",Qe,1)}),Vt("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(t,e){return t.aoColumns[e].mData},1)}),Vt("columns().cache()","column().cache()",function(t){return this.iterator("column-rows",function(e,n,i,r,o){return ce(e.aoData,o,"search"===t?"_aFilterData":"_aSortData",n)},1)}),Vt("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(t,e,n,i,r){return ce(t.aoData,r,"anCells",e)},1)}),Vt("columns().visible()","column().visible()",function(t,e){var n=this.iterator("column",function(e,n){return t===i?e.aoColumns[n].bVisible:void Be(e,n,t)});return t!==i&&(this.iterator("column",function(n,i){Ot(n,null,"column-visibility",[n,i,t,e])}),(e===i||e)&&this.columns.adjust()),n}),Vt("columns().indexes()","column().index()",function(t){return this.iterator("column",function(e,n){return"visible"===t?g(e,n):n},1)}),Ut("columns.adjust()",function(){return this.iterator("table",function(t){p(t)},1)}),Ut("column.index()",function(t,e){if(0!==this.context.length){var n=this.context[0];if("fromVisible"===t||"toData"===t)return f(n,e);if("fromData"===t||"toVisible"===t)return g(n,e)}}),Ut("column()",function(t,e){return $e(this.columns(t,e))});var We=function(e,n,r){var o,a,s,l,c,u,d,h=e.aoData,p=Ae(e,r),f=de(ce(h,p,"anCells")),g=t([].concat.apply([],f)),m=e.aoColumns.length,v=function(n){var r="function"==typeof n;if(null===n||n===i||r){for(a=[],s=0,l=p.length;s<l;s++)for(o=p[s],c=0;c<m;c++)u={row:o,column:c},r?(d=h[o],n(u,T(e,o,c),d.anCells?d.anCells[c]:null)&&a.push(u)):a.push(u);return a}if(t.isPlainObject(n))return[n];var f=g.filter(n).map(function(t,e){return{row:e._DT_CellIndex.row,column:e._DT_CellIndex.column}}).toArray();return f.length||!n.nodeName?f:(d=t(n).closest("*[data-dt-row]"),d.length?[{row:d.data("dt-row"),column:d.data("dt-column")}]:[])};return _e("cell",n,v,e,r)};Ut("cells()",function(e,n,r){if(t.isPlainObject(e)&&(e.row===i?(r=e,e=null):(r=n,n=null)),t.isPlainObject(n)&&(r=n,n=null),null===n||n===i)return this.iterator("table",function(t){return We(t,e,je(r))});var o,a,s,l,c,u=this.columns(n,r),d=this.rows(e,r),h=this.iterator("table",function(t,e){for(o=[],a=0,s=d[e].length;a<s;a++)for(l=0,c=u[e].length;l<c;l++)o.push({row:d[e][a],column:u[e][l]});return o},1);return t.extend(h.selector,{cols:n,rows:e,opts:r}),h}),Vt("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(t,e,n){var r=t.aoData[e];return r&&r.anCells?r.anCells[n]:i},1)}),Ut("cells().data()",function(){return this.iterator("cell",function(t,e,n){return T(t,e,n)},1)}),Vt("cells().cache()","cell().cache()",function(t){return t="search"===t?"_aFilterData":"_aSortData",this.iterator("cell",function(e,n,i){return e.aoData[n][t][i]},1)}),Vt("cells().render()","cell().render()",function(t){return this.iterator("cell",function(e,n,i){return T(e,n,i,t)},1)}),Vt("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(t,e,n){return{row:e,column:n,columnVisible:g(t,n)}},1)}),Vt("cells().invalidate()","cell().invalidate()",function(t){return this.iterator("cell",function(e,n,i){L(e,n,t,i)})}),Ut("cell()",function(t,e,n){return $e(this.cells(t,e,n))}),Ut("cell().data()",function(t){var e=this.context,n=this[0];return t===i?e.length&&n.length?T(e[0],n[0].row,n[0].column):i:(k(e[0],n[0].row,n[0].column,t),L(e[0],n[0].row,"data",n[0].column),this)}),Ut("order()",function(e,n){var r=this.context;return e===i?0!==r.length?r[0].aaSorting:i:("number"==typeof e?e=[[e,n]]:e.length&&!t.isArray(e[0])&&(e=Array.prototype.slice.call(arguments)),this.iterator("table",function(t){t.aaSorting=e.slice()}))}),Ut("order.listener()",function(t,e,n){return this.iterator("table",function(i){Dt(i,t,e,n)})}),Ut("order.fixed()",function(e){if(!e){var n=this.context,r=n.length?n[0].aaSortingFixed:i;return t.isArray(r)?{pre:r}:r}return this.iterator("table",function(n){n.aaSortingFixed=t.extend(!0,{},e)})}),Ut(["columns().order()","column().order()"],function(e){var n=this;return this.iterator("table",function(i,r){var o=[];t.each(n[r],function(t,n){o.push([n,e])}),i.aaSorting=o})}),Ut("search()",function(e,n,r,o){var a=this.context;return e===i?0!==a.length?a[0].oPreviousSearch.sSearch:i:this.iterator("table",function(i){i.oFeatures.bFilter&&J(i,t.extend({},i.oPreviousSearch,{sSearch:e+"",bRegex:null!==n&&n,bSmart:null===r||r,bCaseInsensitive:null===o||o}),1)})}),Vt("columns().search()","column().search()",function(e,n,r,o){return this.iterator("column",function(a,s){var l=a.aoPreSearchCols;return e===i?l[s].sSearch:void(a.oFeatures.bFilter&&(t.extend(l[s],{sSearch:e+"",bRegex:null!==n&&n,bSmart:null===r||r,bCaseInsensitive:null===o||o}),J(a,a.oPreviousSearch,1)))})}),Ut("state()",function(){return this.context.length?this.context[0].oSavedState:null}),Ut("state.clear()",function(){return this.iterator("table",function(t){t.fnStateSaveCallback.call(t.oInstance,t,{})})}),Ut("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null}),Ut("state.save()",function(){return this.iterator("table",function(t){$t(t)})}),Xt.versionCheck=Xt.fnVersionCheck=function(t){for(var e,n,i=Xt.version.split("."),r=t.split("."),o=0,a=r.length;o<a;o++)if(e=parseInt(i[o],10)||0,n=parseInt(r[o],10)||0,e!==n)return e>n;return!0},Xt.isDataTable=Xt.fnIsDataTable=function(e){var n=t(e).get(0),i=!1;return t.each(Xt.settings,function(e,r){var o=r.nScrollHead?t("table",r.nScrollHead)[0]:null,a=r.nScrollFoot?t("table",r.nScrollFoot)[0]:null;r.nTable!==n&&o!==n&&a!==n||(i=!0)}),i},Xt.tables=Xt.fnTables=function(e){var n=!1;t.isPlainObject(e)&&(n=e.api,e=e.visible);var i=t.map(Xt.settings,function(n){if(!e||e&&t(n.nTable).is(":visible"))return n.nTable});return n?new qt(i):i},Xt.camelToHungarian=o,Ut("$()",function(e,n){var i=this.rows(n).nodes(),r=t(i);return t([].concat(r.filter(e).toArray(),r.find(e).toArray()))}),t.each(["on","one","off"],function(e,n){Ut(n+"()",function(){var e=Array.prototype.slice.call(arguments);e[0].match(/\.dt\b/)||(e[0]+=".dt");var i=t(this.tables().nodes());return i[n].apply(i,e),this})}),Ut("clear()",function(){return this.iterator("table",function(t){A(t)})}),Ut("settings()",function(){return new qt(this.context,this.context)}),Ut("init()",function(){var t=this.context;return t.length?t[0].oInit:null}),Ut("data()",function(){return this.iterator("table",function(t){return le(t.aoData,"_aData")}).flatten()}),Ut("destroy()",function(n){return n=n||!1,this.iterator("table",function(i){var r,o=i.nTableWrapper.parentNode,a=i.oClasses,s=i.nTable,l=i.nTBody,c=i.nTHead,u=i.nTFoot,d=t(s),h=t(l),p=t(i.nTableWrapper),f=t.map(i.aoData,function(t){return t.nTr});i.bDestroying=!0,Ot(i,"aoDestroyCallback","destroy",[i]),n||new qt(i).columns().visible(!0),p.unbind(".DT").find(":not(tbody *)").unbind(".DT"),t(e).unbind(".DT-"+i.sInstance),s!=c.parentNode&&(d.children("thead").detach(),d.append(c)),u&&s!=u.parentNode&&(d.children("tfoot").detach(),d.append(u)),i.aaSorting=[],i.aaSortingFixed=[],_t(i),t(f).removeClass(i.asStripeClasses.join(" ")),t("th, td",c).removeClass(a.sSortable+" "+a.sSortableAsc+" "+a.sSortableDesc+" "+a.sSortableNone),i.bJUI&&(t("th span."+a.sSortIcon+", td span."+a.sSortIcon,c).detach(),t("th, td",c).each(function(){var e=t("div."+a.sSortJUIWrapper,this);t(this).append(e.contents()),e.detach()})),h.children().detach(),h.append(f);var g=n?"remove":"detach";d[g](),p[g](),!n&&o&&(o.insertBefore(s,i.nTableReinsertBefore),d.css("width",i.sDestroyWidth).removeClass(a.sTable),r=i.asDestroyStripes.length,r&&h.children().each(function(e){t(this).addClass(i.asDestroyStripes[e%r])}));var m=t.inArray(i,Xt.settings);m!==-1&&Xt.settings.splice(m,1)})}),t.each(["column","row","cell"],function(t,e){Ut(e+"s().every()",function(t){var n=this.selector.opts,r=this;return this.iterator(e,function(o,a,s,l,c){t.call(r[e](a,"cell"===e?s:n,"cell"===e?n:i),a,s,l,c)})})}),Ut("i18n()",function(e,n,r){var o=this.context[0],a=_(e)(o.oLanguage);return a===i&&(a=n),r!==i&&t.isPlainObject(a)&&(a=a[r]!==i?a[r]:a._),a.replace("%d",r)}),Xt.version="1.10.12",Xt.settings=[],Xt.models={},Xt.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},Xt.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},Xt.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null},Xt.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bJQueryUI:!1,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(t){try{return JSON.parse((t.iStateDuration===-1?sessionStorage:localStorage).getItem("DataTables_"+t.sInstance+"_"+location.pathname))}catch(t){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(t,e){try{(t.iStateDuration===-1?sessionStorage:localStorage).setItem("DataTables_"+t.sInstance+"_"+location.pathname,JSON.stringify(e))}catch(t){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:t.extend({},Xt.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},r(Xt.defaults),Xt.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},r(Xt.defaults.column),Xt.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:i,oAjaxData:i,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,bJUI:null,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==Qt(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==Qt(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var t=this._iDisplayLength,e=this._iDisplayStart,n=e+t,i=this.aiDisplay.length,r=this.oFeatures,o=r.bPaginate;return r.bServerSide?o===!1||t===-1?e+i:Math.min(e+t,this._iRecordsDisplay):!o||n>i||t===-1?i:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},Xt.ext=zt={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:Xt.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:Xt.version},t.extend(zt,{afnFiltering:zt.search,aTypes:zt.type.detect,ofnSearch:zt.type.search,oSort:zt.type.order,afnSortData:zt.order,aoFeatures:zt.feature,oApi:zt.internal,oStdClasses:zt.classes,oPagination:zt.pager}),t.extend(Xt.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""}),function(){var e="";e="";var n=e+"ui-state-default",i=e+"css_right ui-icon ui-icon-",r=e+"fg-toolbar ui-toolbar ui-widget-header ui-helper-clearfix";t.extend(Xt.ext.oJUIClasses,Xt.ext.classes,{sPageButton:"fg-button ui-button "+n,sPageButtonActive:"ui-state-disabled",sPageButtonDisabled:"ui-state-disabled",sPaging:"dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_",sSortAsc:n+" sorting_asc",sSortDesc:n+" sorting_desc",sSortable:n+" sorting",sSortableAsc:n+" sorting_asc_disabled",sSortableDesc:n+" sorting_desc_disabled",sSortableNone:n+" sorting_disabled",sSortJUIAsc:i+"triangle-1-n",sSortJUIDesc:i+"triangle-1-s",sSortJUI:i+"carat-2-n-s",sSortJUIAscAllowed:i+"carat-1-n",sSortJUIDescAllowed:i+"carat-1-s",sSortJUIWrapper:"DataTables_sort_wrapper",sSortIcon:"DataTables_sort_icon",sScrollHead:"dataTables_scrollHead "+n,sScrollFoot:"dataTables_scrollFoot "+n,sHeaderTH:n,sFooterTH:n,sJUIHeader:r+" ui-corner-tl ui-corner-tr",sJUIFooter:r+" ui-corner-bl ui-corner-br"})}();var ze=Xt.ext.pager;t.extend(ze,{simple:function(t,e){return["previous","next"]},full:function(t,e){return["first","previous","next","last"]},numbers:function(t,e){return[Mt(t,e)]},simple_numbers:function(t,e){return["previous",Mt(t,e),"next"]},full_numbers:function(t,e){return["first","previous",Mt(t,e),"next","last"]},_numbers:Mt,numbers_length:7}),t.extend(!0,Xt.ext.renderer,{pageButton:{_:function(e,i,r,o,a,s){var l,c,u,d=e.oClasses,h=e.oLanguage.oPaginate,p=e.oLanguage.oAria.paginate||{},f=0,g=function(n,i){var o,u,m,v,b=function(t){dt(e,t.data.action,!0)};for(o=0,u=i.length;o<u;o++)if(v=i[o],t.isArray(v)){var y=t("<"+(v.DT_el||"div")+"/>").appendTo(n);g(y,v)}else{switch(l=null,c="",v){case"ellipsis":n.append('<span class="ellipsis">&#x2026;</span>');break;case"first":l=h.sFirst,c=v+(a>0?"":" "+d.sPageButtonDisabled);break;case"previous":l=h.sPrevious,c=v+(a>0?"":" "+d.sPageButtonDisabled);break;case"next":l=h.sNext,c=v+(a<s-1?"":" "+d.sPageButtonDisabled);break;case"last":l=h.sLast,c=v+(a<s-1?"":" "+d.sPageButtonDisabled);break;default:l=v+1,c=a===v?d.sPageButtonActive:""}null!==l&&(m=t("<a>",{class:d.sPageButton+" "+c,"aria-controls":e.sTableId,"aria-label":p[v],"data-dt-idx":f,tabindex:e.iTabIndex,id:0===r&&"string"==typeof v?e.sTableId+"_"+v:null}).html(l).appendTo(n),Pt(m,{action:v},b),f++)}};try{u=t(i).find(n.activeElement).data("dt-idx")}catch(t){}g(t(i).empty(),o),u&&t(i).find("[data-dt-idx="+u+"]").focus()}}}),t.extend(Xt.ext.type.detect,[function(t,e){var n=e.oLanguage.sDecimal;return oe(t,n)?"num"+n:null},function(t,e){if(t&&!(t instanceof Date)&&(!Yt.test(t)||!Zt.test(t)))return null;var n=Date.parse(t);return null!==n&&!isNaN(n)||ne(t)?"date":null},function(t,e){var n=e.oLanguage.sDecimal;return oe(t,n,!0)?"num-fmt"+n:null},function(t,e){var n=e.oLanguage.sDecimal;return se(t,n)?"html-num"+n:null},function(t,e){var n=e.oLanguage.sDecimal;return se(t,n,!0)?"html-num-fmt"+n:null},function(t,e){return ne(t)||"string"==typeof t&&t.indexOf("<")!==-1?"html":null}]),t.extend(Xt.ext.type.search,{html:function(t){return ne(t)?t:"string"==typeof t?t.replace(Gt," ").replace(Kt,""):""},string:function(t){return ne(t)?t:"string"==typeof t?t.replace(Gt," "):t}});var qe=function(t,e,n,i){return 0===t||t&&"-"!==t?(e&&(t=re(t,e)),t.replace&&(n&&(t=t.replace(n,"")),i&&(t=t.replace(i,""))),1*t):-(1/0)};t.extend(zt.type.order,{"date-pre":function(t){return Date.parse(t)||0},"html-pre":function(t){return ne(t)?"":t.replace?t.replace(/<.*?>/g,"").toLowerCase():t+""},"string-pre":function(t){return ne(t)?"":"string"==typeof t?t.toLowerCase():t.toString?t.toString():""},"string-asc":function(t,e){return t<e?-1:t>e?1:0},"string-desc":function(t,e){return t<e?1:t>e?-1:0}}),Bt(""),t.extend(!0,Xt.ext.renderer,{header:{_:function(e,n,i,r){t(e.nTable).on("order.dt.DT",function(t,o,a,s){if(e===o){var l=i.idx;n.removeClass(i.sSortingClass+" "+r.sSortAsc+" "+r.sSortDesc).addClass("asc"==s[l]?r.sSortAsc:"desc"==s[l]?r.sSortDesc:i.sSortingClass)}})},jqueryui:function(e,n,i,r){t("<div/>").addClass(r.sSortJUIWrapper).append(n.contents()).append(t("<span/>").addClass(r.sSortIcon+" "+i.sSortingClassJUI)).appendTo(n),t(e.nTable).on("order.dt.DT",function(t,o,a,s){if(e===o){var l=i.idx;n.removeClass(r.sSortAsc+" "+r.sSortDesc).addClass("asc"==s[l]?r.sSortAsc:"desc"==s[l]?r.sSortDesc:i.sSortingClass),n.find("span."+r.sSortIcon).removeClass(r.sSortJUIAsc+" "+r.sSortJUIDesc+" "+r.sSortJUI+" "+r.sSortJUIAscAllowed+" "+r.sSortJUIDescAllowed).addClass("asc"==s[l]?r.sSortJUIAsc:"desc"==s[l]?r.sSortJUIDesc:i.sSortingClassJUI)}});
}}});var Ue=function(t){return"string"==typeof t?t.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):t};return Xt.render={number:function(t,e,n,i,r){return{display:function(o){if("number"!=typeof o&&"string"!=typeof o)return o;var a=o<0?"-":"",s=parseFloat(o);if(isNaN(s))return Ue(o);o=Math.abs(s);var l=parseInt(o,10),c=n?e+(o-l).toFixed(n).substring(2):"";return a+(i||"")+l.toString().replace(/\B(?=(\d{3})+(?!\d))/g,t)+c+(r||"")}}},text:function(){return{display:Ue}}},t.extend(Xt.ext.internal,{_fnExternApiFunc:Wt,_fnBuildAjax:W,_fnAjaxUpdate:z,_fnAjaxParameters:q,_fnAjaxUpdateDraw:U,_fnAjaxDataSrc:V,_fnAddColumn:d,_fnColumnOptions:h,_fnAdjustColumnSizing:p,_fnVisibleToColumnIndex:f,_fnColumnIndexToVisible:g,_fnVisbleColumns:m,_fnGetColumns:v,_fnColumnTypes:b,_fnApplyColumnDefs:y,_fnHungarianMap:r,_fnCamelToHungarian:o,_fnLanguageCompat:a,_fnBrowserDetect:c,_fnAddData:w,_fnAddTr:x,_fnNodeToDataIndex:C,_fnNodeToColumnIndex:S,_fnGetCellData:T,_fnSetCellData:k,_fnSplitObjNotation:D,_fnGetObjectDataFn:_,_fnSetObjectDataFn:j,_fnGetDataMaster:$,_fnClearTable:A,_fnDeleteIndex:I,_fnInvalidate:L,_fnGetRowElements:E,_fnCreateTr:N,_fnBuildHead:H,_fnDrawHead:O,_fnDraw:R,_fnReDraw:F,_fnAddOptionsHtml:Q,_fnDetectHeader:M,_fnGetUniqueThs:B,_fnFeatureHtmlFilter:X,_fnFilterComplete:J,_fnFilterCustom:G,_fnFilterColumn:K,_fnFilter:Y,_fnFilterCreateSearch:Z,_fnEscapeRegex:ve,_fnFilterData:tt,_fnFeatureHtmlInfo:it,_fnUpdateInfo:rt,_fnInfoMacros:ot,_fnInitialise:at,_fnInitComplete:st,_fnLengthChange:lt,_fnFeatureHtmlLength:ct,_fnFeatureHtmlPaginate:ut,_fnPageChange:dt,_fnFeatureHtmlProcessing:ht,_fnProcessingDisplay:pt,_fnFeatureHtmlTable:ft,_fnScrollDraw:gt,_fnApplyToChildren:mt,_fnCalculateColumnWidths:vt,_fnThrottle:xe,_fnConvertToWidth:bt,_fnGetWidestNode:yt,_fnGetMaxLenString:wt,_fnStringToCss:xt,_fnSortFlatten:Ct,_fnSort:St,_fnSortAria:Tt,_fnSortListener:kt,_fnSortAttachListener:Dt,_fnSortingClasses:_t,_fnSortData:jt,_fnSaveState:$t,_fnLoadState:At,_fnSettingsFromNode:It,_fnLog:Lt,_fnMap:Et,_fnBindAction:Pt,_fnCallbackReg:Ht,_fnCallbackFire:Ot,_fnLengthOverflow:Rt,_fnRenderer:Ft,_fnDataSource:Qt,_fnRowAttributes:P,_fnCalculateEnd:function(){}}),t.fn.dataTable=Xt,Xt.$=t,t.fn.dataTableSettings=Xt.settings,t.fn.dataTableExt=Xt.ext,t.fn.DataTable=function(e){return t(this).dataTable(e).api()},t.each(Xt,function(e,n){t.fn.DataTable[e]=n}),t.fn.dataTable}),function(t){"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?module.exports=function(e,n){return e||(e=window),n&&n.fn.dataTable||(n=require("datatables.net")(e,n).$),t(n,e,e.document)}:t(jQuery,window,document)}(function(t,e,n,i){"use strict";var r=t.fn.dataTable;return t.extend(!0,r.defaults,{dom:"<'row'<'col-sm-6'l><'col-sm-6'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-5'i><'col-sm-7'p>>",renderer:"bootstrap"}),t.extend(r.ext.classes,{sWrapper:"dataTables_wrapper form-inline dt-bootstrap",sFilterInput:"form-control input-sm",sLengthSelect:"form-control input-sm",sProcessing:"dataTables_processing panel panel-default"}),r.ext.renderer.pageButton.bootstrap=function(e,i,o,a,s,l){var c,u,d,h=new r.Api(e),p=e.oClasses,f=e.oLanguage.oPaginate,g=e.oLanguage.oAria.paginate||{},m=0,v=function(n,i){var r,a,d,b,y=function(e){e.preventDefault(),t(e.currentTarget).hasClass("disabled")||h.page()==e.data.action||h.page(e.data.action).draw("page")};for(r=0,a=i.length;r<a;r++)if(b=i[r],t.isArray(b))v(n,b);else{switch(c="",u="",b){case"ellipsis":c="&#x2026;",u="disabled";break;case"first":c=f.sFirst,u=b+(s>0?"":" disabled");break;case"previous":c=f.sPrevious,u=b+(s>0?"":" disabled");break;case"next":c=f.sNext,u=b+(s<l-1?"":" disabled");break;case"last":c=f.sLast,u=b+(s<l-1?"":" disabled");break;default:c=b+1,u=s===b?"active":""}c&&(d=t("<li>",{class:p.sPageButton+" "+u,id:0===o&&"string"==typeof b?e.sTableId+"_"+b:null}).append(t("<a>",{href:"#","aria-controls":e.sTableId,"aria-label":g[b],"data-dt-idx":m,tabindex:e.iTabIndex}).html(c)).appendTo(n),e.oApi._fnBindAction(d,{action:b},y),m++)}};try{d=t(i).find(n.activeElement).data("dt-idx")}catch(t){}v(t(i).empty().html('<ul class="pagination"/>').children("ul"),a),d&&t(i).find("[data-dt-idx="+d+"]").focus()},r}),function(t){"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?module.exports=function(e,n){return e||(e=window),n&&n.fn.dataTable||(n=require("datatables.net")(e,n).$),t(n,e,e.document)}:t(jQuery,window,document)}(function(t,e,n,i){"use strict";var r=t.fn.dataTable,o=function(e,n){if(!r.versionCheck||!r.versionCheck("1.10.3"))throw"DataTables Responsive requires DataTables 1.10.3 or newer";this.s={dt:new r.Api(e),columns:[],current:[]},this.s.dt.settings()[0].responsive||(n&&"string"==typeof n.details?n.details={type:n.details}:n&&n.details===!1?n.details={type:!1}:n&&n.details===!0&&(n.details={type:"inline"}),this.c=t.extend(!0,{},o.defaults,r.defaults.responsive,n),e.responsive=this,this._constructor())};t.extend(o.prototype,{_constructor:function(){var n=this,i=this.s.dt,o=i.settings()[0],a=t(e).width();i.settings()[0]._responsive=this,t(e).on("resize.dtr orientationchange.dtr",r.util.throttle(function(){var i=t(e).width();i!==a&&(n._resize(),a=i)})),o.oApi._fnCallbackReg(o,"aoRowCreatedCallback",function(e,r,o){t.inArray(!1,n.s.current)!==-1&&t("td, th",e).each(function(e){var r=i.column.index("toData",e);n.s.current[r]===!1&&t(this).css("display","none")})}),i.on("destroy.dtr",function(){i.off(".dtr"),t(i.table().body()).off(".dtr"),t(e).off("resize.dtr orientationchange.dtr"),t.each(n.s.current,function(t,e){e===!1&&n._setColumnVis(t,!0)})}),this.c.breakpoints.sort(function(t,e){return t.width<e.width?1:t.width>e.width?-1:0}),this._classLogic(),this._resizeAuto();var s=this.c.details;s.type!==!1&&(n._detailsInit(),i.on("column-visibility.dtr",function(t,e,i,r){n._classLogic(),n._resizeAuto(),n._resize()}),i.on("draw.dtr",function(){n._redrawChildren()}),t(i.table().node()).addClass("dtr-"+s.type)),i.on("column-reorder.dtr",function(t,e,i){n._classLogic(),n._resizeAuto(),n._resize()}),i.on("column-sizing.dtr",function(){n._resizeAuto(),n._resize()}),i.on("init.dtr",function(e,r,o){n._resizeAuto(),n._resize(),t.inArray(!1,n.s.current)&&i.columns.adjust()}),this._resize()},_columnsVisiblity:function(e){var n,i,r=this.s.dt,o=this.s.columns,a=o.map(function(t,e){return{columnIdx:e,priority:t.priority}}).sort(function(t,e){return t.priority!==e.priority?t.priority-e.priority:t.columnIdx-e.columnIdx}),s=t.map(o,function(n){return(!n.auto||null!==n.minWidth)&&(n.auto===!0?"-":t.inArray(e,n.includeIn)!==-1)}),l=0;for(n=0,i=s.length;n<i;n++)s[n]===!0&&(l+=o[n].minWidth);var c=r.settings()[0].oScroll,u=c.sY||c.sX?c.iBarWidth:0,d=r.table().container().offsetWidth-u,h=d-l;for(n=0,i=s.length;n<i;n++)o[n].control&&(h-=o[n].minWidth);var p=!1;for(n=0,i=a.length;n<i;n++){var f=a[n].columnIdx;"-"===s[f]&&!o[f].control&&o[f].minWidth&&(p||h-o[f].minWidth<0?(p=!0,s[f]=!1):s[f]=!0,h-=o[f].minWidth)}var g=!1;for(n=0,i=o.length;n<i;n++)if(!o[n].control&&!o[n].never&&!s[n]){g=!0;break}for(n=0,i=o.length;n<i;n++)o[n].control&&(s[n]=g);return t.inArray(!0,s)===-1&&(s[0]=!0),s},_classLogic:function(){var e=this,n=this.c.breakpoints,r=this.s.dt,o=r.columns().eq(0).map(function(e){var n=this.column(e),o=n.header().className,a=r.settings()[0].aoColumns[e].responsivePriority;if(a===i){var s=t(n.header()).data("priority");a=s!==i?1*s:1e4}return{className:o,includeIn:[],auto:!1,control:!1,never:!!o.match(/\bnever\b/),priority:a}}),a=function(e,n){var i=o[e].includeIn;t.inArray(n,i)===-1&&i.push(n)},s=function(t,i,r,s){var l,c,u;if(r){if("max-"===r)for(l=e._find(i).width,c=0,u=n.length;c<u;c++)n[c].width<=l&&a(t,n[c].name);else if("min-"===r)for(l=e._find(i).width,c=0,u=n.length;c<u;c++)n[c].width>=l&&a(t,n[c].name);else if("not-"===r)for(c=0,u=n.length;c<u;c++)n[c].name.indexOf(s)===-1&&a(t,n[c].name)}else o[t].includeIn.push(i)};o.each(function(e,i){for(var r=e.className.split(" "),o=!1,a=0,l=r.length;a<l;a++){var c=t.trim(r[a]);if("all"===c)return o=!0,void(e.includeIn=t.map(n,function(t){return t.name}));if("none"===c||e.never)return void(o=!0);if("control"===c)return o=!0,void(e.control=!0);t.each(n,function(t,e){var n=e.name.split("-"),r=new RegExp("(min\\-|max\\-|not\\-)?("+n[0]+")(\\-[_a-zA-Z0-9])?"),a=c.match(r);a&&(o=!0,a[2]===n[0]&&a[3]==="-"+n[1]?s(i,e.name,a[1],a[2]+a[3]):a[2]!==n[0]||a[3]||s(i,e.name,a[1],a[2]))})}o||(e.auto=!0)}),this.s.columns=o},_detailsDisplay:function(e,n){var i=this,r=this.s.dt,o=this.c.details;if(o&&o.type!==!1){var a=o.display(e,n,function(){return o.renderer(r,e[0],i._detailsObj(e[0]))});a!==!0&&a!==!1||t(r.table().node()).triggerHandler("responsive-display.dt",[r,e,a,n])}},_detailsInit:function(){var e=this,n=this.s.dt,i=this.c.details;"inline"===i.type&&(i.target="td:first-child, th:first-child"),n.on("draw.dtr",function(){e._tabIndexes()}),e._tabIndexes(),t(n.table().body()).on("keyup.dtr","td, th",function(e){13===e.keyCode&&t(this).data("dtr-keyboard")&&t(this).click()});var r=i.target,o="string"==typeof r?r:"td, th";t(n.table().body()).on("click.dtr mousedown.dtr mouseup.dtr",o,function(i){if(t(n.table().node()).hasClass("collapsed")&&n.row(t(this).closest("tr")).length){if("number"==typeof r){var o=r<0?n.columns().eq(0).length+r:r;if(n.cell(this).index().column!==o)return}var a=n.row(t(this).closest("tr"));"click"===i.type?e._detailsDisplay(a,!1):"mousedown"===i.type?t(this).css("outline","none"):"mouseup"===i.type&&t(this).blur().css("outline","")}})},_detailsObj:function(e){var n=this,i=this.s.dt;return t.map(this.s.columns,function(t,r){if(!t.never&&!t.control)return{title:i.settings()[0].aoColumns[r].sTitle,data:i.cell(e,r).render(n.c.orthogonal),hidden:i.column(r).visible()&&!n.s.current[r],columnIndex:r,rowIndex:e}})},_find:function(t){for(var e=this.c.breakpoints,n=0,i=e.length;n<i;n++)if(e[n].name===t)return e[n]},_redrawChildren:function(){var t=this,e=this.s.dt;e.rows({page:"current"}).iterator("row",function(n,i){e.row(i);t._detailsDisplay(e.row(i),!0)})},_resize:function(){var n,i,r=this,o=this.s.dt,a=t(e).width(),s=this.c.breakpoints,l=s[0].name,c=this.s.columns,u=this.s.current.slice();for(n=s.length-1;n>=0;n--)if(a<=s[n].width){l=s[n].name;break}var d=this._columnsVisiblity(l);this.s.current=d;var h=!1;for(n=0,i=c.length;n<i;n++)if(d[n]===!1&&!c[n].never&&!c[n].control){h=!0;break}t(o.table().node()).toggleClass("collapsed",h);var p=!1;o.columns().eq(0).each(function(t,e){d[e]!==u[e]&&(p=!0,r._setColumnVis(t,d[e]))}),p&&(this._redrawChildren(),t(o.table().node()).trigger("responsive-resize.dt",[o,this.s.current]))},_resizeAuto:function(){var e=this.s.dt,n=this.s.columns;if(this.c.auto&&t.inArray(!0,t.map(n,function(t){return t.auto}))!==-1){var i=(e.table().node().offsetWidth,e.columns,e.table().node().cloneNode(!1)),r=t(e.table().header().cloneNode(!1)).appendTo(i),o=t(e.table().body()).clone(!1,!1).empty().appendTo(i),a=e.columns().header().filter(function(t){return e.column(t).visible()}).to$().clone(!1).css("display","table-cell");t(o).append(t(e.rows({page:"current"}).nodes()).clone(!1)).find("th, td").css("display","");var s=e.table().footer();if(s){var l=t(s.cloneNode(!1)).appendTo(i),c=e.columns().footer().filter(function(t){return e.column(t).visible()}).to$().clone(!1).css("display","table-cell");t("<tr/>").append(c).appendTo(l)}t("<tr/>").append(a).appendTo(r),"inline"===this.c.details.type&&t(i).addClass("dtr-inline collapsed"),t(i).find("[name]").removeAttr("name");var u=t("<div/>").css({width:1,height:1,overflow:"hidden"}).append(i);u.insertBefore(e.table().node()),a.each(function(t){var i=e.column.index("fromVisible",t);n[i].minWidth=this.offsetWidth||0}),u.remove()}},_setColumnVis:function(e,n){var i=this.s.dt,r=n?"":"none";t(i.column(e).header()).css("display",r),t(i.column(e).footer()).css("display",r),i.column(e).nodes().to$().css("display",r)},_tabIndexes:function(){var e=this.s.dt,n=e.cells({page:"current"}).nodes().to$(),i=e.settings()[0],r=this.c.details.target;n.filter("[data-dtr-keyboard]").removeData("[data-dtr-keyboard]");var o="number"==typeof r?":eq("+r+")":r;t(o,e.rows({page:"current"}).nodes()).attr("tabIndex",i.iTabIndex).data("dtr-keyboard",1)}}),o.breakpoints=[{name:"desktop",width:1/0},{name:"tablet-l",width:1024},{name:"tablet-p",width:768},{name:"mobile-l",width:480},{name:"mobile-p",width:320}],o.display={childRow:function(e,n,i){return n?t(e.node()).hasClass("parent")?(e.child(i(),"child").show(),!0):void 0:e.child.isShown()?(e.child(!1),t(e.node()).removeClass("parent"),!1):(e.child(i(),"child").show(),t(e.node()).addClass("parent"),!0)},childRowImmediate:function(e,n,i){return!n&&e.child.isShown()||!e.responsive.hasHidden()?(e.child(!1),t(e.node()).removeClass("parent"),!1):(e.child(i(),"child").show(),t(e.node()).addClass("parent"),!0)},modal:function(e){return function(i,r,o){if(r)t("div.dtr-modal-content").empty().append(o());else{var a=function(){s.remove(),t(n).off("keypress.dtr")},s=t('<div class="dtr-modal"/>').append(t('<div class="dtr-modal-display"/>').append(t('<div class="dtr-modal-content"/>').append(o())).append(t('<div class="dtr-modal-close">&times;</div>').click(function(){a()}))).append(t('<div class="dtr-modal-background"/>').click(function(){a()})).appendTo("body");t(n).on("keyup.dtr",function(t){27===t.keyCode&&(t.stopPropagation(),a())})}e&&e.header&&t("div.dtr-modal-content").prepend("<h2>"+e.header(i)+"</h2>")}}},o.renderer={listHidden:function(){return function(e,n,i){var r=t.map(i,function(t){return t.hidden?'<li data-dtr-index="'+t.columnIndex+'" data-dt-row="'+t.rowIndex+'" data-dt-column="'+t.columnIndex+'"><span class="dtr-title">'+t.title+'</span> <span class="dtr-data">'+t.data+"</span></li>":""}).join("");return!!r&&t('<ul data-dtr-index="'+n+'"/>').append(r)}},tableAll:function(e){return e=t.extend({tableClass:""},e),function(n,i,r){var o=t.map(r,function(t){return'<tr data-dt-row="'+t.rowIndex+'" data-dt-column="'+t.columnIndex+'"><td>'+t.title+":</td> <td>"+t.data+"</td></tr>"}).join("");return t('<table class="'+e.tableClass+'" width="100%"/>').append(o)}}},o.defaults={breakpoints:o.breakpoints,auto:!0,details:{display:o.display.childRow,renderer:o.renderer.listHidden(),target:0,type:"inline"},orthogonal:"display"};var a=t.fn.dataTable.Api;return a.register("responsive()",function(){return this}),a.register("responsive.index()",function(e){return e=t(e),{column:e.data("dtr-index"),row:e.parent().data("dtr-index")}}),a.register("responsive.rebuild()",function(){return this.iterator("table",function(t){t._responsive&&t._responsive._classLogic()})}),a.register("responsive.recalc()",function(){return this.iterator("table",function(t){t._responsive&&(t._responsive._resizeAuto(),t._responsive._resize())})}),a.register("responsive.hasHidden()",function(){var e=this.context[0];return!!e._responsive&&t.inArray(!1,e._responsive.s.current)!==-1}),o.version="2.1.0",t.fn.dataTable.Responsive=o,t.fn.DataTable.Responsive=o,t(n).on("preInit.dt.dtr",function(e,n,i){if("dt"===e.namespace&&(t(n.nTable).hasClass("responsive")||t(n.nTable).hasClass("dt-responsive")||n.oInit.responsive||r.defaults.responsive)){var a=n.oInit.responsive;a!==!1&&new o(n,t.isPlainObject(a)?a:{})}}),o}),function(t){"function"==typeof define&&define.amd?define(["jquery","datatables.net-bs","datatables.net-responsive"],function(e){return t(e,window,document)}):"object"==typeof exports?module.exports=function(e,n){return e||(e=window),n&&n.fn.dataTable||(n=require("datatables.net-bs")(e,n).$),n.fn.dataTable.Responsive||require("datatables.net-responsive")(e,n),t(n,e,e.document)}:t(jQuery,window,document)}(function(t,e,n,i){"use strict";var r=t.fn.dataTable,o=r.Responsive.display,a=o.modal,s=t('<div class="modal fade dtr-bs-modal" role="dialog"><div class="modal-dialog" role="document"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button></div><div class="modal-body"/></div></div></div>');return o.modal=function(e){return function(n,i,r){t.fn.modal?i||(e&&e.header&&s.find("div.modal-header").empty().append('<h4 class="modal-title">'+e.header(n)+"</h4>"),s.find("div.modal-body").empty().append(r()),s.appendTo("body").modal()):a(n,i,r)}},r.Responsive}),!function(t){"use strict";function e(t,e){for(var n=0;n<t.length;++n)e(t[n],n)}function n(e,n){this.$select=t(e),this.$select.attr("data-placeholder")&&(n.nonSelectedText=this.$select.data("placeholder")),this.options=this.mergeOptions(t.extend({},n,this.$select.data())),this.originalOptions=this.$select.clone()[0].options,this.query="",this.searchTimeout=null,this.lastToggledInput=null,this.options.multiple="multiple"===this.$select.attr("multiple"),this.options.onChange=t.proxy(this.options.onChange,this),this.options.onDropdownShow=t.proxy(this.options.onDropdownShow,this),this.options.onDropdownHide=t.proxy(this.options.onDropdownHide,this),this.options.onDropdownShown=t.proxy(this.options.onDropdownShown,this),this.options.onDropdownHidden=t.proxy(this.options.onDropdownHidden,this),this.buildContainer(),this.buildButton(),this.buildDropdown(),this.buildSelectAll(),this.buildDropdownOptions(),this.buildFilter(),this.updateButtonText(),this.updateSelectAll(),this.options.disableIfEmpty&&t("option",this.$select).length<=0&&this.disable(),this.$select.hide().after(this.$container)}"undefined"!=typeof ko&&ko.bindingHandlers&&!ko.bindingHandlers.multiselect&&(ko.bindingHandlers.multiselect={after:["options","value","selectedOptions"],init:function(e,n,i,r,o){var a=t(e),s=ko.toJS(n());if(a.multiselect(s),i.has("options")){var l=i.get("options");ko.isObservable(l)&&ko.computed({read:function(){l(),setTimeout(function(){var t=a.data("multiselect");t&&t.updateOriginalOptions(),a.multiselect("rebuild")},1)},disposeWhenNodeIsRemoved:e})}if(i.has("value")){var c=i.get("value");ko.isObservable(c)&&ko.computed({read:function(){c(),setTimeout(function(){a.multiselect("refresh")},1)},disposeWhenNodeIsRemoved:e}).extend({rateLimit:100,notifyWhenChangesStop:!0})}if(i.has("selectedOptions")){var u=i.get("selectedOptions");ko.isObservable(u)&&ko.computed({read:function(){u(),setTimeout(function(){a.multiselect("refresh")},1)},disposeWhenNodeIsRemoved:e}).extend({rateLimit:100,notifyWhenChangesStop:!0})}ko.utils.domNodeDisposal.addDisposeCallback(e,function(){a.multiselect("destroy")})},update:function(e,n,i,r,o){var a=t(e),s=ko.toJS(n());a.multiselect("setOptions",s),a.multiselect("rebuild")}}),n.prototype={defaults:{buttonText:function(e,n){if(0===e.length)return this.nonSelectedText;if(this.allSelectedText&&e.length===t("option",t(n)).length&&1!==t("option",t(n)).length&&this.multiple)return this.selectAllNumber?this.allSelectedText+" ("+e.length+")":this.allSelectedText;if(e.length>this.numberDisplayed)return e.length+" "+this.nSelectedText;var i="",r=this.delimiterText;return e.each(function(){var e=void 0!==t(this).attr("label")?t(this).attr("label"):t(this).text();i+=e+r}),i.substr(0,i.length-2)},buttonTitle:function(e,n){if(0===e.length)return this.nonSelectedText;var i="",r=this.delimiterText;return e.each(function(){var e=void 0!==t(this).attr("label")?t(this).attr("label"):t(this).text();i+=e+r}),i.substr(0,i.length-2)},optionLabel:function(e){return t(e).attr("label")||t(e).text()},onChange:function(t,e){},onDropdownShow:function(t){},onDropdownHide:function(t){},onDropdownShown:function(t){},onDropdownHidden:function(t){},onSelectAll:function(){},enableHTML:!1,buttonClass:"btn btn-default",inheritClass:!1,buttonWidth:"auto",buttonContainer:'<div class="btn-group" />',dropRight:!1,selectedClass:"active",maxHeight:!1,checkboxName:!1,includeSelectAllOption:!1,includeSelectAllIfMoreThan:0,selectAllText:" Select all",selectAllValue:"multiselect-all",selectAllName:!1,selectAllNumber:!0,enableFiltering:!1,enableCaseInsensitiveFiltering:!1,enableClickableOptGroups:!1,filterPlaceholder:"Search",filterBehavior:"text",includeFilterClearBtn:!0,preventInputChangeEvent:!1,nonSelectedText:"None selected",nSelectedText:"selected",allSelectedText:"All selected",numberDisplayed:3,disableIfEmpty:!1,delimiterText:", ",templates:{button:'<button type="button" class="multiselect dropdown-toggle" data-toggle="dropdown"><span class="multiselect-selected-text"></span> <b class="caret"></b></button>',ul:'<ul class="multiselect-container dropdown-menu"></ul>',filter:'<li class="multiselect-item filter"><div class="input-group"><span class="input-group-addon"><i class="glyphicon glyphicon-search"></i></span><input class="form-control multiselect-search" type="text"></div></li>',filterClearBtn:'<span class="input-group-btn"><button class="btn btn-default multiselect-clear-filter" type="button"><i class="glyphicon glyphicon-remove-circle"></i></button></span>',li:'<li><a tabindex="0"><label></label></a></li>',divider:'<li class="multiselect-item divider"></li>',liGroup:'<li class="multiselect-item multiselect-group"><label></label></li>'}},constructor:n,buildContainer:function(){this.$container=t(this.options.buttonContainer),this.$container.on("show.bs.dropdown",this.options.onDropdownShow),this.$container.on("hide.bs.dropdown",this.options.onDropdownHide),this.$container.on("shown.bs.dropdown",this.options.onDropdownShown),this.$container.on("hidden.bs.dropdown",this.options.onDropdownHidden)},buildButton:function(){this.$button=t(this.options.templates.button).addClass(this.options.buttonClass),this.$select.attr("class")&&this.options.inheritClass&&this.$button.addClass(this.$select.attr("class")),this.$select.prop("disabled")?this.disable():this.enable(),this.options.buttonWidth&&"auto"!==this.options.buttonWidth&&(this.$button.css({width:this.options.buttonWidth,overflow:"hidden","text-overflow":"ellipsis"}),this.$container.css({width:this.options.buttonWidth}));var e=this.$select.attr("tabindex");e&&this.$button.attr("tabindex",e),this.$container.prepend(this.$button)},buildDropdown:function(){this.$ul=t(this.options.templates.ul),this.options.dropRight&&this.$ul.addClass("pull-right"),this.options.maxHeight&&this.$ul.css({"max-height":this.options.maxHeight+"px","overflow-y":"auto","overflow-x":"hidden"}),this.$container.append(this.$ul)},buildDropdownOptions:function(){this.$select.children().each(t.proxy(function(e,n){var i=t(n),r=i.prop("tagName").toLowerCase();i.prop("value")!==this.options.selectAllValue&&("optgroup"===r?this.createOptgroup(n):"option"===r&&("divider"===i.data("role")?this.createDivider():this.createOptionValue(n)))},this)),t("li input",this.$ul).on("change",t.proxy(function(e){var n=t(e.target),i=n.prop("checked")||!1,r=n.val()===this.options.selectAllValue;this.options.selectedClass&&(i?n.closest("li").addClass(this.options.selectedClass):n.closest("li").removeClass(this.options.selectedClass));var o=n.val(),a=this.getOptionByValue(o),s=t("option",this.$select).not(a),l=t("input",this.$container).not(n);if(r&&(i?this.selectAll():this.deselectAll()),r||(i?(a.prop("selected",!0),this.options.multiple?a.prop("selected",!0):(this.options.selectedClass&&t(l).closest("li").removeClass(this.options.selectedClass),t(l).prop("checked",!1),s.prop("selected",!1),this.$button.click()),"active"===this.options.selectedClass&&s.closest("a").css("outline","")):a.prop("selected",!1)),this.$select.change(),this.updateButtonText(),this.updateSelectAll(),this.options.onChange(a,i),this.options.preventInputChangeEvent)return!1},this)),t("li a",this.$ul).on("mousedown",function(t){if(t.shiftKey)return!1}),t("li a",this.$ul).on("touchstart click",t.proxy(function(e){e.stopPropagation();var n=t(e.target);if(e.shiftKey&&this.options.multiple){n.is("label")&&(e.preventDefault(),n=n.find("input"),n.prop("checked",!n.prop("checked")));var i=n.prop("checked")||!1;if(null!==this.lastToggledInput&&this.lastToggledInput!==n){var r=n.closest("li").index(),o=this.lastToggledInput.closest("li").index();if(r>o){var a=o;o=r,r=a}++o;var s=this.$ul.find("li").slice(r,o).find("input");s.prop("checked",i),this.options.selectedClass&&s.closest("li").toggleClass(this.options.selectedClass,i);for(var l=0,c=s.length;l<c;l++){var u=t(s[l]),d=this.getOptionByValue(u.val());d.prop("selected",i)}}n.trigger("change")}n.is("input")&&!n.closest("li").is(".multiselect-item")&&(this.lastToggledInput=n),n.blur()},this)),this.$container.off("keydown.multiselect").on("keydown.multiselect",t.proxy(function(e){if(!t('input[type="text"]',this.$container).is(":focus"))if(9===e.keyCode&&this.$container.hasClass("open"))this.$button.click();else{var n=t(this.$container).find("li:not(.divider):not(.disabled) a").filter(":visible");if(!n.length)return;var i=n.index(n.filter(":focus"));38===e.keyCode&&i>0?i--:40===e.keyCode&&i<n.length-1?i++:~i||(i=0);var r=n.eq(i);if(r.focus(),32===e.keyCode||13===e.keyCode){var o=r.find("input");o.prop("checked",!o.prop("checked")),o.change()}e.stopPropagation(),e.preventDefault()}},this)),this.options.enableClickableOptGroups&&this.options.multiple&&t("li.multiselect-group",this.$ul).on("click",t.proxy(function(e){e.stopPropagation();var n=t(e.target).parent(),i=n.nextUntil("li.multiselect-group"),r=i.filter(":visible:not(.disabled)"),o=!0,a=r.find("input");a.each(function(){o=o&&t(this).prop("checked")}),a.prop("checked",!o).trigger("change")},this))},createOptionValue:function(e){var n=t(e);n.is(":selected")&&n.prop("selected",!0);var i=this.options.optionLabel(e),r=n.val(),o=this.options.multiple?"checkbox":"radio",a=t(this.options.templates.li),s=t("label",a);s.addClass(o),this.options.enableHTML?s.html(" "+i):s.text(" "+i);var l=t("<input/>").attr("type",o);this.options.checkboxName&&l.attr("name",this.options.checkboxName),s.prepend(l);var c=n.prop("selected")||!1;l.val(r),r===this.options.selectAllValue&&(a.addClass("multiselect-item multiselect-all"),l.parent().parent().addClass("multiselect-all")),s.attr("title",n.attr("title")),this.$ul.append(a),n.is(":disabled")&&l.attr("disabled","disabled").prop("disabled",!0).closest("a").attr("tabindex","-1").closest("li").addClass("disabled"),l.prop("checked",c),c&&this.options.selectedClass&&l.closest("li").addClass(this.options.selectedClass)},createDivider:function(e){var n=t(this.options.templates.divider);this.$ul.append(n)},createOptgroup:function(e){var n=t(e).prop("label"),i=t(this.options.templates.liGroup);this.options.enableHTML?t("label",i).html(n):t("label",i).text(n),this.options.enableClickableOptGroups&&i.addClass("multiselect-group-clickable"),this.$ul.append(i),t(e).is(":disabled")&&i.addClass("disabled"),t("option",e).each(t.proxy(function(t,e){this.createOptionValue(e)},this))},buildSelectAll:function(){"number"==typeof this.options.selectAllValue&&(this.options.selectAllValue=this.options.selectAllValue.toString());var e=this.hasSelectAll();if(!e&&this.options.includeSelectAllOption&&this.options.multiple&&t("option",this.$select).length>this.options.includeSelectAllIfMoreThan){this.options.includeSelectAllDivider&&this.$ul.prepend(t(this.options.templates.divider));var n=t(this.options.templates.li);t("label",n).addClass("checkbox"),this.options.enableHTML?t("label",n).html(" "+this.options.selectAllText):t("label",n).text(" "+this.options.selectAllText),this.options.selectAllName?t("label",n).prepend('<input type="checkbox" name="'+this.options.selectAllName+'" />'):t("label",n).prepend('<input type="checkbox" />');var i=t("input",n);i.val(this.options.selectAllValue),n.addClass("multiselect-item multiselect-all"),i.parent().parent().addClass("multiselect-all"),this.$ul.prepend(n),i.prop("checked",!1)}},buildFilter:function(){if(this.options.enableFiltering||this.options.enableCaseInsensitiveFiltering){var e=Math.max(this.options.enableFiltering,this.options.enableCaseInsensitiveFiltering);if(this.$select.find("option").length>=e){if(this.$filter=t(this.options.templates.filter),t("input",this.$filter).attr("placeholder",this.options.filterPlaceholder),this.options.includeFilterClearBtn){var n=t(this.options.templates.filterClearBtn);n.on("click",t.proxy(function(e){clearTimeout(this.searchTimeout),this.$filter.find(".multiselect-search").val(""),t("li",this.$ul).show().removeClass("filter-hidden"),this.updateSelectAll()},this)),this.$filter.find(".input-group").append(n)}this.$ul.prepend(this.$filter),this.$filter.val(this.query).on("click",function(t){t.stopPropagation()}).on("input keydown",t.proxy(function(e){13===e.which&&e.preventDefault(),clearTimeout(this.searchTimeout),this.searchTimeout=this.asyncFunction(t.proxy(function(){if(this.query!==e.target.value){this.query=e.target.value;var n,i;t.each(t("li",this.$ul),t.proxy(function(e,r){var o=t("input",r).length>0?t("input",r).val():"",a=t("label",r).text(),s="";if("text"===this.options.filterBehavior?s=a:"value"===this.options.filterBehavior?s=o:"both"===this.options.filterBehavior&&(s=a+"\n"+o),o!==this.options.selectAllValue&&a){var l=!1;this.options.enableCaseInsensitiveFiltering&&s.toLowerCase().indexOf(this.query.toLowerCase())>-1?l=!0:s.indexOf(this.query)>-1&&(l=!0),t(r).toggle(l).toggleClass("filter-hidden",!l),t(r).hasClass("multiselect-group")?(n=r,i=l):(l&&t(n).show().removeClass("filter-hidden"),!l&&i&&t(r).show().removeClass("filter-hidden"))}},this))}this.updateSelectAll()},this),300,this)},this))}}},destroy:function(){this.$container.remove(),this.$select.show(),this.$select.data("multiselect",null)},refresh:function(){t("option",this.$select).each(t.proxy(function(e,n){var i=t("li input",this.$ul).filter(function(){return t(this).val()===t(n).val()});t(n).is(":selected")?(i.prop("checked",!0),this.options.selectedClass&&i.closest("li").addClass(this.options.selectedClass)):(i.prop("checked",!1),this.options.selectedClass&&i.closest("li").removeClass(this.options.selectedClass)),t(n).is(":disabled")?i.attr("disabled","disabled").prop("disabled",!0).closest("li").addClass("disabled"):i.prop("disabled",!1).closest("li").removeClass("disabled")},this)),this.updateButtonText(),this.updateSelectAll()},select:function(e,n){t.isArray(e)||(e=[e]);for(var i=0;i<e.length;i++){var r=e[i];if(null!==r&&void 0!==r){var o=this.getOptionByValue(r),a=this.getInputByValue(r);void 0!==o&&void 0!==a&&(this.options.multiple||this.deselectAll(!1),this.options.selectedClass&&a.closest("li").addClass(this.options.selectedClass),a.prop("checked",!0),o.prop("selected",!0),n&&this.options.onChange(o,!0))}}this.updateButtonText(),this.updateSelectAll()},clearSelection:function(){this.deselectAll(!1),this.updateButtonText(),this.updateSelectAll()},deselect:function(e,n){t.isArray(e)||(e=[e]);for(var i=0;i<e.length;i++){var r=e[i];if(null!==r&&void 0!==r){var o=this.getOptionByValue(r),a=this.getInputByValue(r);void 0!==o&&void 0!==a&&(this.options.selectedClass&&a.closest("li").removeClass(this.options.selectedClass),a.prop("checked",!1),o.prop("selected",!1),n&&this.options.onChange(o,!1))}}this.updateButtonText(),this.updateSelectAll()},selectAll:function(e,n){var e="undefined"==typeof e||e,i=t("li input[type='checkbox']:enabled",this.$ul),r=i.filter(":visible"),o=i.length,a=r.length;if(e?(r.prop("checked",!0),t("li:not(.divider):not(.disabled)",this.$ul).filter(":visible").addClass(this.options.selectedClass)):(i.prop("checked",!0),t("li:not(.divider):not(.disabled)",this.$ul).addClass(this.options.selectedClass)),o===a||e===!1)t("option:enabled",this.$select).prop("selected",!0);else{var s=r.map(function(){return t(this).val()}).get();t("option:enabled",this.$select).filter(function(e){return t.inArray(t(this).val(),s)!==-1}).prop("selected",!0)}n&&this.options.onSelectAll()},deselectAll:function(e){var e="undefined"==typeof e||e;if(e){var n=t("li input[type='checkbox']:not(:disabled)",this.$ul).filter(":visible");n.prop("checked",!1);var i=n.map(function(){return t(this).val()}).get();t("option:enabled",this.$select).filter(function(e){return t.inArray(t(this).val(),i)!==-1}).prop("selected",!1),
this.options.selectedClass&&t("li:not(.divider):not(.disabled)",this.$ul).filter(":visible").removeClass(this.options.selectedClass)}else t("li input[type='checkbox']:enabled",this.$ul).prop("checked",!1),t("option:enabled",this.$select).prop("selected",!1),this.options.selectedClass&&t("li:not(.divider):not(.disabled)",this.$ul).removeClass(this.options.selectedClass)},rebuild:function(){this.$ul.html(""),this.options.multiple="multiple"===this.$select.attr("multiple"),this.buildSelectAll(),this.buildDropdownOptions(),this.buildFilter(),this.updateButtonText(),this.updateSelectAll(),this.options.disableIfEmpty&&t("option",this.$select).length<=0?this.disable():this.enable(),this.options.dropRight&&this.$ul.addClass("pull-right")},dataprovider:function(n){var i=0,r=this.$select.empty();t.each(n,function(n,o){var a;t.isArray(o.children)?(i++,a=t("<optgroup/>").attr({label:o.label||"Group "+i,disabled:!!o.disabled}),e(o.children,function(e){a.append(t("<option/>").attr({value:e.value,label:e.label||e.value,title:e.title,selected:!!e.selected,disabled:!!e.disabled}))})):a=t("<option/>").attr({value:o.value,label:o.label||o.value,title:o.title,selected:!!o.selected,disabled:!!o.disabled}),r.append(a)}),this.rebuild()},enable:function(){this.$select.prop("disabled",!1),this.$button.prop("disabled",!1).removeClass("disabled")},disable:function(){this.$select.prop("disabled",!0),this.$button.prop("disabled",!0).addClass("disabled")},setOptions:function(t){this.options=this.mergeOptions(t)},mergeOptions:function(e){return t.extend(!0,{},this.defaults,this.options,e)},hasSelectAll:function(){return t("li.multiselect-all",this.$ul).length>0},updateSelectAll:function(){if(this.hasSelectAll()){var e=t("li:not(.multiselect-item):not(.filter-hidden) input:enabled",this.$ul),n=e.length,i=e.filter(":checked").length,r=t("li.multiselect-all",this.$ul),o=r.find("input");i>0&&i===n?(o.prop("checked",!0),r.addClass(this.options.selectedClass),this.options.onSelectAll()):(o.prop("checked",!1),r.removeClass(this.options.selectedClass))}},updateButtonText:function(){var e=this.getSelected();this.options.enableHTML?t(".multiselect .multiselect-selected-text",this.$container).html(this.options.buttonText(e,this.$select)):t(".multiselect .multiselect-selected-text",this.$container).text(this.options.buttonText(e,this.$select)),t(".multiselect",this.$container).attr("title",this.options.buttonTitle(e,this.$select))},getSelected:function(){return t("option",this.$select).filter(":selected")},getOptionByValue:function(e){for(var n=t("option",this.$select),i=e.toString(),r=0;r<n.length;r+=1){var o=n[r];if(o.value===i)return t(o)}},getInputByValue:function(e){for(var n=t("li input",this.$ul),i=e.toString(),r=0;r<n.length;r+=1){var o=n[r];if(o.value===i)return t(o)}},updateOriginalOptions:function(){this.originalOptions=this.$select.clone()[0].options},asyncFunction:function(t,e,n){var i=Array.prototype.slice.call(arguments,3);return setTimeout(function(){t.apply(n||window,i)},e)},setAllSelectedText:function(t){this.options.allSelectedText=t,this.updateButtonText()}},t.fn.multiselect=function(e,i,r){return this.each(function(){var o=t(this).data("multiselect"),a="object"==typeof e&&e;o||(o=new n(this,a),t(this).data("multiselect",o)),"string"==typeof e&&(o[e](i,r),"destroy"===e&&t(this).data("multiselect",!1))})},t.fn.multiselect.Constructor=n,t(function(){t("select[data-role=multiselect]").multiselect()})}(window.jQuery);