HEX
Server: Apache/2.4.18 (Ubuntu)
System: Linux phubuntu06.apexhosting.com 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
User: master06 (1000)
PHP: 7.0.33-0ubuntu0.16.04.16
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
Upload Files
File: //usr/share/webmin/authentic-theme/unauthenticated/js/bundle.min.js
/*! jQuery v3.4.1 | (c) JS Foundation and other contributors | jquery.org/license */
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";function n(e,t,n){var r,i,o=(n=n||K).createElement("script");if(o.text=e,t)for(r in pe)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function r(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ie[oe.call(e)]||"object":typeof e}function i(e){var t=!!e&&"length"in e&&e.length,n=r(e);return!ce(e)&&!fe(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function o(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function a(e,t,n){return ce(t)?he.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?he.grep(e,function(e){return e===t!==n}):"string"!=typeof t?he.grep(e,function(e){return-1<re.call(t,e)!==n}):he.filter(t,e,n)}function s(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function u(e){return e}function l(e){throw e}function c(e,t,n,r){var i;try{e&&ce(i=e.promise)?i.call(e).done(t).fail(n):e&&ce(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}function f(){K.removeEventListener("DOMContentLoaded",f),e.removeEventListener("load",f),he.ready()}function p(e,t){return t.toUpperCase()}function d(e){return e.replace(Ae,"ms-").replace(De,p)}function h(){this.expando=he.expando+h.uid++}function g(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(Oe,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:He.test(i)?JSON.parse(i):i)}catch(e){}Le.set(e,t,n)}else n=void 0;return n}function v(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return he.css(e,t,"")},u=s(),l=n&&n[3]||(he.cssNumber[t]?"":"px"),c=e.nodeType&&(he.cssNumber[t]||"px"!==l&&+u)&&Re.exec(he.css(e,t));if(c&&c[3]!==l){for(u/=2,l=l||c[3],c=+u||1;a--;)he.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,he.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}function y(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=qe.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&Fe(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=_e[s])||(o=a.body.appendChild(a.createElement(s)),u=he.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),_e[s]=u)))):"none"!==n&&(l[c]="none",qe.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}function m(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&o(e,t)?he.merge([e],n):n}function x(e,t){for(var n=0,r=e.length;n<r;n++)qe.set(e[n],"globalEval",!t||qe.get(t[n],"globalEval"))}function b(e,t,n,i,o){for(var a,s,u,l,c,f,p=t.createDocumentFragment(),d=[],h=0,g=e.length;h<g;h++)if((a=e[h])||0===a)if("object"===r(a))he.merge(d,a.nodeType?[a]:a);else if(Qe.test(a)){for(s=s||p.appendChild(t.createElement("div")),u=(Ue.exec(a)||["",""])[1].toLowerCase(),l=Ve[u]||Ve._default,s.innerHTML=l[1]+he.htmlPrefilter(a)+l[2],f=l[0];f--;)s=s.lastChild;he.merge(d,s.childNodes),(s=p.firstChild).textContent=""}else d.push(t.createTextNode(a));for(p.textContent="",h=0;a=d[h++];)if(i&&-1<he.inArray(a,i))o&&o.push(a);else if(c=We(a),s=m(p.appendChild(a),"script"),c&&x(s),n)for(f=0;a=s[f++];)Xe.test(a.type||"")&&n.push(a);return p}function w(){return!0}function T(){return!1}function C(e,t){return e===function(){try{return K.activeElement}catch(e){}}()==("focus"===t)}function E(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)E(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=T;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return he().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=he.guid++)),e.each(function(){he.event.add(this,t,i,r,n)})}function S(e,t,n){n?(qe.set(e,t,!1),he.event.add(e,t,{namespace:!1,handler:function(e){var r,i,o=qe.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(he.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=ee.call(arguments),qe.set(this,t,o),r=n(this,t),this[t](),o!==(i=qe.get(this,t))||r?qe.set(this,t,!1):i={},o!==i)return e.stopImmediatePropagation(),e.preventDefault(),i.value}else o.length&&(qe.set(this,t,{value:he.event.trigger(he.extend(o[0],he.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===qe.get(e,t)&&he.event.add(e,t,w)}function k(e,t){return o(e,"table")&&o(11!==t.nodeType?t:t.firstChild,"tr")&&he(e).children("tbody")[0]||e}function N(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function A(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function D(e,t){var n,r,i,o,a,s,u,l;if(1===t.nodeType){if(qe.hasData(e)&&(o=qe.access(e),a=qe.set(t,o),l=o.events))for(i in delete a.handle,a.events={},l)for(n=0,r=l[i].length;n<r;n++)he.event.add(t,i,l[i][n]);Le.hasData(e)&&(s=Le.access(e),u=he.extend({},s),Le.set(t,u))}}function j(e,t,r,i){t=te.apply([],t);var o,a,s,u,l,c,f=0,p=e.length,d=p-1,h=t[0],g=ce(h);if(g||1<p&&"string"==typeof h&&!le.checkClone&&tt.test(h))return e.each(function(n){var o=e.eq(n);g&&(t[0]=h.call(this,n,o.html())),j(o,t,r,i)});if(p&&(a=(o=b(t,e[0].ownerDocument,!1,e,i)).firstChild,1===o.childNodes.length&&(o=a),a||i)){for(u=(s=he.map(m(o,"script"),N)).length;f<p;f++)l=o,f!==d&&(l=he.clone(l,!0,!0),u&&he.merge(s,m(l,"script"))),r.call(e[f],l,f);if(u)for(c=s[s.length-1].ownerDocument,he.map(s,A),f=0;f<u;f++)l=s[f],Xe.test(l.type||"")&&!qe.access(l,"globalEval")&&he.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?he._evalUrl&&!l.noModule&&he._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")}):n(l.textContent.replace(nt,""),l,c))}return e}function q(e,t,n){for(var r,i=t?he.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||he.cleanData(m(r)),r.parentNode&&(n&&We(r)&&x(m(r,"script")),r.parentNode.removeChild(r));return e}function L(e,t,n){var r,i,o,a,s=e.style;return(n=n||it(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||We(e)||(a=he.style(e,t)),!le.pixelBoxStyles()&&rt.test(a)&&ot.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function H(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}function O(e){return he.cssProps[e]||ut[e]||(e in st?e:ut[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=at.length;n--;)if((e=at[n]+t)in st)return e}(e)||e)}function P(e,t,n){var r=Re.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function R(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=he.css(e,n+Me[a],!0,i)),r?("content"===n&&(u-=he.css(e,"padding"+Me[a],!0,i)),"margin"!==n&&(u-=he.css(e,"border"+Me[a]+"Width",!0,i))):(u+=he.css(e,"padding"+Me[a],!0,i),"padding"!==n?u+=he.css(e,"border"+Me[a]+"Width",!0,i):s+=he.css(e,"border"+Me[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u}function M(e,t,n){var r=it(e),i=(!le.boxSizingReliable()||n)&&"border-box"===he.css(e,"boxSizing",!1,r),o=i,a=L(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(rt.test(a)){if(!n)return a;a="auto"}return(!le.boxSizingReliable()&&i||"auto"===a||!parseFloat(a)&&"inline"===he.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===he.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+R(e,t,n||(i?"border":"content"),o,r,a)+"px"}function I(e,t,n,r,i){return new I.prototype.init(e,t,n,r,i)}function W(){ht&&(!1===K.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(W):e.setTimeout(W,he.fx.interval),he.fx.tick())}function $(){return e.setTimeout(function(){dt=void 0}),dt=Date.now()}function F(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=Me[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function B(e,t,n){for(var r,i=(_.tweeners[t]||[]).concat(_.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function _(e,t,n){var r,i,o=0,a=_.prefilters.length,s=he.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=dt||$(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),o=0,a=l.tweens.length;o<a;o++)l.tweens[o].run(r);return s.notifyWith(e,[l,r,n]),r<1&&a?n:(a||s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:he.extend({},t),opts:he.extend(!0,{specialEasing:{},easing:he.easing._default},n),originalProperties:t,originalOptions:n,startTime:dt||$(),duration:n.duration,tweens:[],createTween:function(t,n){var r=he.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),c=l.props;for((!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=d(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=he.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing));o<a;o++)if(r=_.prefilters[o].call(l,e,c,l.opts))return ce(r.stop)&&(he._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return he.map(c,B,l),ce(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),he.fx.timer(he.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l}function z(e){return(e.match(Ee)||[]).join(" ")}function U(e){return e.getAttribute&&e.getAttribute("class")||""}function X(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(Ee)||[]}function V(e,t,n,i){var o;if(Array.isArray(t))he.each(t,function(t,r){n||At.test(e)?i(e,r):V(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,i)});else if(n||"object"!==r(t))i(e,t);else for(o in t)V(e+"["+o+"]",t[o],n,i)}function G(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(Ee)||[];if(ce(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Y(e,t,n,r){function i(s){var u;return o[s]=!0,he.each(e[s]||[],function(e,s){var l=s(t,n,r);return"string"!=typeof l||a||o[l]?a?!(u=l):void 0:(t.dataTypes.unshift(l),i(l),!1)}),u}var o={},a=e===Ot;return i(t.dataTypes[0])||!o["*"]&&i("*")}function Q(e,t){var n,r,i=he.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&he.extend(!0,e,r),e}var J=[],K=e.document,Z=Object.getPrototypeOf,ee=J.slice,te=J.concat,ne=J.push,re=J.indexOf,ie={},oe=ie.toString,ae=ie.hasOwnProperty,se=ae.toString,ue=se.call(Object),le={},ce=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},fe=function(e){return null!=e&&e===e.window},pe={type:!0,src:!0,nonce:!0,noModule:!0},de="3.4.1",he=function(e,t){return new he.fn.init(e,t)};he.fn=he.prototype={jquery:de,constructor:he,length:0,toArray:function(){return ee.call(this)},get:function(e){return null==e?ee.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=he.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return he.each(this,e)},map:function(e){return this.pushStack(he.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(ee.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:ne,sort:J.sort,splice:J.splice},he.extend=he.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||ce(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(he.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||he.isPlainObject(n)?n:{},i=!1,a[t]=he.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},he.extend({expando:"jQuery"+(de+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==oe.call(e)||(t=Z(e))&&("function"!=typeof(n=ae.call(t,"constructor")&&t.constructor)||se.call(n)!==ue))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t){n(e,{nonce:t&&t.nonce})},each:function(e,t){var n,r=0;if(i(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(i(Object(e))?he.merge(n,"string"==typeof e?[e]:e):ne.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:re.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,o,a=0,s=[];if(i(e))for(r=e.length;a<r;a++)null!=(o=t(e[a],a,n))&&s.push(o);else for(a in e)null!=(o=t(e[a],a,n))&&s.push(o);return te.apply([],s)},guid:1,support:le}),"function"==typeof Symbol&&(he.fn[Symbol.iterator]=J[Symbol.iterator]),he.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){ie["[object "+t+"]"]=t.toLowerCase()});var ge=function(e){function t(e,t,n,r){var i,o,a,s,u,c,p,d=t&&t.ownerDocument,h=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return n;if(!r&&((t?t.ownerDocument||t:M)!==D&&A(t),t=t||D,q)){if(11!==h&&(u=ge.exec(e)))if(i=u[1]){if(9===h){if(!(a=t.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(d&&(a=d.getElementById(i))&&P(t,a)&&a.id===i)return n.push(a),n}else{if(u[2])return Y.apply(n,t.getElementsByTagName(e)),n;if((i=u[3])&&m.getElementsByClassName&&t.getElementsByClassName)return Y.apply(n,t.getElementsByClassName(i)),n}if(m.qsa&&!_[e+" "]&&(!L||!L.test(e))&&(1!==h||"object"!==t.nodeName.toLowerCase())){if(p=e,d=t,1===h&&se.test(e)){for((s=t.getAttribute("id"))?s=s.replace(xe,be):t.setAttribute("id",s=R),o=(c=T(e)).length;o--;)c[o]="#"+s+" "+f(c[o]);p=c.join(","),d=ve.test(e)&&l(t.parentNode)||t}try{return Y.apply(n,d.querySelectorAll(p)),n}catch(t){_(e,!0)}finally{s===R&&t.removeAttribute("id")}}}return E(e.replace(ie,"$1"),t,n,r)}function n(){var e=[];return function t(n,r){return e.push(n+" ")>x.cacheLength&&delete t[e.shift()],t[n+" "]=r}}function r(e){return e[R]=!0,e}function i(e){var t=D.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=n.length;r--;)x.attrHandle[n[r]]=t}function a(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Te(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function u(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function l(e){return e&&void 0!==e.getElementsByTagName&&e}function c(){}function f(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function p(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=W++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,u){var l,c,f,p=[I,s];if(u){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,u))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(c=(f=t[R]||(t[R]={}))[t.uniqueID]||(f[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((l=c[o])&&l[0]===I&&l[1]===s)return p[2]=l[2];if((c[o]=p)[2]=e(t,n,u))return!0}return!1}}function d(e){return 1<e.length?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function h(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function g(e,n,i,o,a,s){return o&&!o[R]&&(o=g(o)),a&&!a[R]&&(a=g(a,s)),r(function(r,s,u,l){var c,f,p,d=[],g=[],v=s.length,y=r||function(e,n,r){for(var i=0,o=n.length;i<o;i++)t(e,n[i],r);return r}(n||"*",u.nodeType?[u]:u,[]),m=!e||!r&&n?y:h(y,d,e,u,l),x=i?a||(r?e:v||o)?[]:s:m;if(i&&i(m,x,u,l),o)for(c=h(x,g),o(c,[],u,l),f=c.length;f--;)(p=c[f])&&(x[g[f]]=!(m[g[f]]=p));if(r){if(a||e){if(a){for(c=[],f=x.length;f--;)(p=x[f])&&c.push(m[f]=p);a(null,x=[],c,l)}for(f=x.length;f--;)(p=x[f])&&-1<(c=a?J(r,p):d[f])&&(r[c]=!(s[c]=p))}}else x=h(x===s?x.splice(v,x.length):x),a?a(null,s,x,l):Y.apply(s,x)})}function v(e){for(var t,n,r,i=e.length,o=x.relative[e[0].type],a=o||x.relative[" "],s=o?1:0,u=p(function(e){return e===t},a,!0),l=p(function(e){return-1<J(t,e)},a,!0),c=[function(e,n,r){var i=!o&&(r||n!==S)||((t=n).nodeType?u(e,n,r):l(e,n,r));return t=null,i}];s<i;s++)if(n=x.relative[e[s].type])c=[p(d(c),n)];else{if((n=x.filter[e[s].type].apply(null,e[s].matches))[R]){for(r=++s;r<i&&!x.relative[e[r].type];r++);return g(1<s&&d(c),1<s&&f(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ie,"$1"),n,s<r&&v(e.slice(s,r)),r<i&&v(e=e.slice(r)),r<i&&f(e))}c.push(n)}return d(c)}var y,m,x,b,w,T,C,E,S,k,N,A,D,j,q,L,H,O,P,R="sizzle"+1*new Date,M=e.document,I=0,W=0,$=n(),F=n(),B=n(),_=n(),z=function(e,t){return e===t&&(N=!0),0},U={}.hasOwnProperty,X=[],V=X.pop,G=X.push,Y=X.push,Q=X.slice,J=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Z="[\\x20\\t\\r\\n\\f]",ee="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",te="\\["+Z+"*("+ee+")(?:"+Z+"*([*^$|!~]?=)"+Z+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ee+"))|)"+Z+"*\\]",ne=":("+ee+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+te+")*)|.*)\\)|)",re=new RegExp(Z+"+","g"),ie=new RegExp("^"+Z+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Z+"+$","g"),oe=new RegExp("^"+Z+"*,"+Z+"*"),ae=new RegExp("^"+Z+"*([>+~]|"+Z+")"+Z+"*"),se=new RegExp(Z+"|>"),ue=new RegExp(ne),le=new RegExp("^"+ee+"$"),ce={ID:new RegExp("^#("+ee+")"),CLASS:new RegExp("^\\.("+ee+")"),TAG:new RegExp("^("+ee+"|[*])"),ATTR:new RegExp("^"+te),PSEUDO:new RegExp("^"+ne),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Z+"*(even|odd|(([+-]|)(\\d*)n|)"+Z+"*(?:([+-]|)"+Z+"*(\\d+)|))"+Z+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+Z+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Z+"*((?:-\\d)?\\d*)"+Z+"*\\)|)(?=[^-]|$)","i")},fe=/HTML$/i,pe=/^(?:input|select|textarea|button)$/i,de=/^h\d$/i,he=/^[^{]+\{\s*\[native \w/,ge=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ve=/[+~]/,ye=new RegExp("\\\\([\\da-f]{1,6}"+Z+"?|("+Z+")|.)","ig"),me=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},xe=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,be=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},we=function(){A()},Te=p(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{Y.apply(X=Q.call(M.childNodes),M.childNodes),X[M.childNodes.length].nodeType}catch(e){Y={apply:X.length?function(e,t){G.apply(e,Q.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}for(y in m=t.support={},w=t.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!fe.test(t||n&&n.nodeName||"HTML")},A=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:M;return r!==D&&9===r.nodeType&&r.documentElement&&(j=(D=r).documentElement,q=!w(D),M!==D&&(n=D.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",we,!1):n.attachEvent&&n.attachEvent("onunload",we)),m.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),m.getElementsByTagName=i(function(e){return e.appendChild(D.createComment("")),!e.getElementsByTagName("*").length}),m.getElementsByClassName=he.test(D.getElementsByClassName),m.getById=i(function(e){return j.appendChild(e).id=R,!D.getElementsByName||!D.getElementsByName(R).length}),m.getById?(x.filter.ID=function(e){var t=e.replace(ye,me);return function(e){return e.getAttribute("id")===t}},x.find.ID=function(e,t){if(void 0!==t.getElementById&&q){var n=t.getElementById(e);return n?[n]:[]}}):(x.filter.ID=function(e){var t=e.replace(ye,me);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},x.find.ID=function(e,t){if(void 0!==t.getElementById&&q){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),x.find.TAG=m.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):m.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},x.find.CLASS=m.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&q)return t.getElementsByClassName(e)},H=[],L=[],(m.qsa=he.test(D.querySelectorAll))&&(i(function(e){j.appendChild(e).innerHTML="<a id='"+R+"'></a><select id='"+R+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&L.push("[*^$]="+Z+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||L.push("\\["+Z+"*(?:value|"+K+")"),e.querySelectorAll("[id~="+R+"-]").length||L.push("~="),e.querySelectorAll(":checked").length||L.push(":checked"),e.querySelectorAll("a#"+R+"+*").length||L.push(".#.+[+~]")}),i(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=D.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&L.push("name"+Z+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&L.push(":enabled",":disabled"),j.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&L.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),L.push(",.*:")})),(m.matchesSelector=he.test(O=j.matches||j.webkitMatchesSelector||j.mozMatchesSelector||j.oMatchesSelector||j.msMatchesSelector))&&i(function(e){m.disconnectedMatch=O.call(e,"*"),O.call(e,"[s!='']:x"),H.push("!=",ne)}),L=L.length&&new RegExp(L.join("|")),H=H.length&&new RegExp(H.join("|")),t=he.test(j.compareDocumentPosition),P=t||he.test(j.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},z=t?function(e,t){if(e===t)return N=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!m.sortDetached&&t.compareDocumentPosition(e)===n?e===D||e.ownerDocument===M&&P(M,e)?-1:t===D||t.ownerDocument===M&&P(M,t)?1:k?J(k,e)-J(k,t):0:4&n?-1:1)}:function(e,t){if(e===t)return N=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,s=[e],u=[t];if(!i||!o)return e===D?-1:t===D?1:i?-1:o?1:k?J(k,e)-J(k,t):0;if(i===o)return a(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;s[r]===u[r];)r++;return r?a(s[r],u[r]):s[r]===M?-1:u[r]===M?1:0}),D},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==D&&A(e),m.matchesSelector&&q&&!_[n+" "]&&(!H||!H.test(n))&&(!L||!L.test(n)))try{var r=O.call(e,n);if(r||m.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){_(n,!0)}return 0<t(n,D,null,[e]).length},t.contains=function(e,t){return(e.ownerDocument||e)!==D&&A(e),P(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==D&&A(e);var n=x.attrHandle[t.toLowerCase()],r=n&&U.call(x.attrHandle,t.toLowerCase())?n(e,t,!q):void 0;return void 0!==r?r:m.attributes||!q?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.escape=function(e){return(e+"").replace(xe,be)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(N=!m.detectDuplicates,k=!m.sortStable&&e.slice(0),e.sort(z),N){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return k=null,e},b=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=b(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=b(t);return n},(x=t.selectors={cacheLength:50,createPseudo:r,match:ce,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ye,me),e[3]=(e[3]||e[4]||e[5]||"").replace(ye,me),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return ce.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ue.test(n)&&(t=T(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ye,me).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=$[e+" "];return t||(t=new RegExp("(^|"+Z+")"+e+"("+Z+"|$)"))&&$(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&-1<o.indexOf(r):"$="===n?r&&o.slice(-r.length)===r:"~="===n?-1<(" "+o.replace(re," ")+" ").indexOf(r):"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,p,d,h,g=o!==a?"nextSibling":"previousSibling",v=t.parentNode,y=s&&t.nodeName.toLowerCase(),m=!u&&!s,x=!1;if(v){if(o){for(;g;){for(p=t;p=p[g];)if(s?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?v.firstChild:v.lastChild],a&&m){for(x=(d=(l=(c=(f=(p=v)[R]||(p[R]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===I&&l[1])&&l[2],p=d&&v.childNodes[d];p=++d&&p&&p[g]||(x=d=0)||h.pop();)if(1===p.nodeType&&++x&&p===t){c[e]=[I,d,x];break}}else if(m&&(x=d=(l=(c=(f=(p=t)[R]||(p[R]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===I&&l[1]),!1===x)for(;(p=++d&&p&&p[g]||(x=d=0)||h.pop())&&((s?p.nodeName.toLowerCase()!==y:1!==p.nodeType)||!++x||(m&&((c=(f=p[R]||(p[R]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]=[I,x]),p!==t)););return(x-=i)===r||x%r==0&&0<=x/r}}},PSEUDO:function(e,n){var i,o=x.pseudos[e]||x.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[R]?o(n):1<o.length?(i=[e,e,"",n],x.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),a=i.length;a--;)e[r=J(e,i[a])]=!(t[r]=i[a])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=C(e.replace(ie,"$1"));return i[R]?r(function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return 0<t(e,n).length}}),contains:r(function(e){return e=e.replace(ye,me),function(t){return-1<(t.textContent||b(t)).indexOf(e)}}),lang:r(function(e){return le.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(ye,me).toLowerCase(),function(t){var n;do if(n=q?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType)return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===j},focus:function(e){return e===D.activeElement&&(!D.hasFocus||D.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:s(!1),disabled:s(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!x.pseudos.empty(e)},header:function(e){return de.test(e.nodeName)},input:function(e){return pe.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:u(function(){return[0]}),last:u(function(e,t){return[t-1]}),eq:u(function(e,t,n){return[n<0?n+t:n]}),even:u(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:u(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:u(function(e,t,n){for(var r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:u(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=x.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[y]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(y);for(y in{submit:!0,reset:!0})x.pseudos[y]=function(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}(y);return c.prototype=x.filters=x.pseudos,x.setFilters=new c,T=t.tokenize=function(e,n){var r,i,o,a,s,u,l,c=F[e+" "];if(c)return n?0:c.slice(0);for(s=e,u=[],l=x.preFilter;s;){for(a in r&&!(i=oe.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),r=!1,(i=ae.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(ie," ")}),s=s.slice(r.length)),x.filter)!(i=ce[a].exec(s))||l[a]&&!(i=l[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?t.error(e):F(e,u).slice(0)},C=t.compile=function(e,n){var i,o,a,s,u,l,c=[],f=[],p=B[e+" "];if(!p){for(n||(n=T(e)),i=n.length;i--;)(p=v(n[i]))[R]?c.push(p):f.push(p);(p=B(e,(o=f,s=0<(a=c).length,u=0<o.length,l=function(e,n,r,i,l){var c,f,p,d=0,g="0",v=e&&[],y=[],m=S,b=e||u&&x.find.TAG("*",l),w=I+=null==m?1:Math.random()||.1,T=b.length;for(l&&(S=n===D||n||l);g!==T&&null!=(c=b[g]);g++){if(u&&c){for(f=0,n||c.ownerDocument===D||(A(c),r=!q);p=o[f++];)if(p(c,n||D,r)){i.push(c);break}l&&(I=w)}s&&((c=!p&&c)&&d--,e&&v.push(c))}if(d+=g,s&&g!==d){for(f=0;p=a[f++];)p(v,y,n,r);if(e){if(0<d)for(;g--;)v[g]||y[g]||(y[g]=V.call(i));y=h(y)}Y.apply(i,y),l&&!e&&0<y.length&&1<d+a.length&&t.uniqueSort(i)}return l&&(I=w,S=m),v},s?r(l):l))).selector=e}return p},E=t.select=function(e,t,n,r){
var i,o,a,s,u,c="function"==typeof e&&e,p=!r&&T(e=c.selector||e);if(n=n||[],1===p.length){if(2<(o=p[0]=p[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&q&&x.relative[o[1].type]){if(!(t=(x.find.ID(a.matches[0].replace(ye,me),t)||[])[0]))return n;c&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=ce.needsContext.test(e)?0:o.length;i--&&(a=o[i],!x.relative[s=a.type]);)if((u=x.find[s])&&(r=u(a.matches[0].replace(ye,me),ve.test(o[0].type)&&l(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&f(o)))return Y.apply(n,r),n;break}}return(c||C(e,p))(r,t,!q,n,!t||ve.test(e)&&l(t.parentNode)||t),n},m.sortStable=R.split("").sort(z).join("")===R,m.detectDuplicates=!!N,A(),m.sortDetached=i(function(e){return 1&e.compareDocumentPosition(D.createElement("fieldset"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),m.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(K,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);he.find=ge,he.expr=ge.selectors,he.expr[":"]=he.expr.pseudos,he.uniqueSort=he.unique=ge.uniqueSort,he.text=ge.getText,he.isXMLDoc=ge.isXML,he.contains=ge.contains,he.escapeSelector=ge.escape;var ve=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&he(e).is(n))break;r.push(e)}return r},ye=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},me=he.expr.match.needsContext,xe=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;he.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?he.find.matchesSelector(r,e)?[r]:[]:he.find.matches(e,he.grep(t,function(e){return 1===e.nodeType}))},he.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(he(e).filter(function(){for(t=0;t<r;t++)if(he.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)he.find(e,i[t],n);return 1<r?he.uniqueSort(n):n},filter:function(e){return this.pushStack(a(this,e||[],!1))},not:function(e){return this.pushStack(a(this,e||[],!0))},is:function(e){return!!a(this,"string"==typeof e&&me.test(e)?he(e):e||[],!1).length}});var be,we=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(he.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||be,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:we.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof he?t[0]:t,he.merge(this,he.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:K,!0)),xe.test(r[1])&&he.isPlainObject(t))for(r in t)ce(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=K.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):ce(e)?void 0!==n.ready?n.ready(e):e(he):he.makeArray(e,this)}).prototype=he.fn,be=he(K);var Te=/^(?:parents|prev(?:Until|All))/,Ce={children:!0,contents:!0,next:!0,prev:!0};he.fn.extend({has:function(e){var t=he(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(he.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&he(e);if(!me.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&he.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?he.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?re.call(he(e),this[0]):re.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(he.uniqueSort(he.merge(this.get(),he(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),he.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return ve(e,"parentNode")},parentsUntil:function(e,t,n){return ve(e,"parentNode",n)},next:function(e){return s(e,"nextSibling")},prev:function(e){return s(e,"previousSibling")},nextAll:function(e){return ve(e,"nextSibling")},prevAll:function(e){return ve(e,"previousSibling")},nextUntil:function(e,t,n){return ve(e,"nextSibling",n)},prevUntil:function(e,t,n){return ve(e,"previousSibling",n)},siblings:function(e){return ye((e.parentNode||{}).firstChild,e)},children:function(e){return ye(e.firstChild)},contents:function(e){return void 0!==e.contentDocument?e.contentDocument:(o(e,"template")&&(e=e.content||e),he.merge([],e.childNodes))}},function(e,t){he.fn[e]=function(n,r){var i=he.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=he.filter(r,i)),1<this.length&&(Ce[e]||he.uniqueSort(i),Te.test(e)&&i.reverse()),this.pushStack(i)}});var Ee=/[^\x20\t\r\n\f]+/g;he.Callbacks=function(e){var t,n;e="string"==typeof e?(t=e,n={},he.each(t.match(Ee)||[],function(e,t){n[t]=!0}),n):he.extend({},e);var i,o,a,s,u=[],l=[],c=-1,f=function(){for(s=s||e.once,a=i=!0;l.length;c=-1)for(o=l.shift();++c<u.length;)!1===u[c].apply(o[0],o[1])&&e.stopOnFalse&&(c=u.length,o=!1);e.memory||(o=!1),i=!1,s&&(u=o?[]:"")},p={add:function(){return u&&(o&&!i&&(c=u.length-1,l.push(o)),function t(n){he.each(n,function(n,i){ce(i)?e.unique&&p.has(i)||u.push(i):i&&i.length&&"string"!==r(i)&&t(i)})}(arguments),o&&!i&&f()),this},remove:function(){return he.each(arguments,function(e,t){for(var n;-1<(n=he.inArray(t,u,n));)u.splice(n,1),n<=c&&c--}),this},has:function(e){return e?-1<he.inArray(e,u):0<u.length},empty:function(){return u&&(u=[]),this},disable:function(){return s=l=[],u=o="",this},disabled:function(){return!u},lock:function(){return s=l=[],o||i||(u=o=""),this},locked:function(){return!!s},fireWith:function(e,t){return s||(t=[e,(t=t||[]).slice?t.slice():t],l.push(t),i||f()),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!a}};return p},he.extend({Deferred:function(t){var n=[["notify","progress",he.Callbacks("memory"),he.Callbacks("memory"),2],["resolve","done",he.Callbacks("once memory"),he.Callbacks("once memory"),0,"resolved"],["reject","fail",he.Callbacks("once memory"),he.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return he.Deferred(function(t){he.each(n,function(n,r){var i=ce(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&ce(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){function o(t,n,r,i){return function(){var s=this,c=arguments,f=function(){var e,f;if(!(t<a)){if((e=r.apply(s,c))===n.promise())throw new TypeError("Thenable self-resolution");f=e&&("object"==typeof e||"function"==typeof e)&&e.then,ce(f)?i?f.call(e,o(a,n,u,i),o(a,n,l,i)):(a++,f.call(e,o(a,n,u,i),o(a,n,l,i),o(a,n,u,n.notifyWith))):(r!==u&&(s=void 0,c=[e]),(i||n.resolveWith)(s,c))}},p=i?f:function(){try{f()}catch(e){he.Deferred.exceptionHook&&he.Deferred.exceptionHook(e,p.stackTrace),a<=t+1&&(r!==l&&(s=void 0,c=[e]),n.rejectWith(s,c))}};t?p():(he.Deferred.getStackHook&&(p.stackTrace=he.Deferred.getStackHook()),e.setTimeout(p))}}var a=0;return he.Deferred(function(e){n[0][3].add(o(0,e,ce(i)?i:u,e.notifyWith)),n[1][3].add(o(0,e,ce(t)?t:u)),n[2][3].add(o(0,e,ce(r)?r:l))}).promise()},promise:function(e){return null!=e?he.extend(e,i):i}},o={};return he.each(n,function(e,t){var a=t[2],s=t[5];i[t[1]]=a.add,s&&a.add(function(){r=s},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),a.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=a.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=ee.call(arguments),o=he.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=1<arguments.length?ee.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(c(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||ce(i[n]&&i[n].then)))return o.then();for(;n--;)c(i[n],a(n),o.reject);return o.promise()}});var Se=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;he.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&Se.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},he.readyException=function(t){e.setTimeout(function(){throw t})};var ke=he.Deferred();he.fn.ready=function(e){return ke.then(e).catch(function(e){he.readyException(e)}),this},he.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--he.readyWait:he.isReady)||(he.isReady=!0)!==e&&0<--he.readyWait||ke.resolveWith(K,[he])}}),he.ready.then=ke.then,"complete"===K.readyState||"loading"!==K.readyState&&!K.documentElement.doScroll?e.setTimeout(he.ready):(K.addEventListener("DOMContentLoaded",f),e.addEventListener("load",f));var Ne=function(e,t,n,i,o,a,s){var u=0,l=e.length,c=null==n;if("object"===r(n))for(u in o=!0,n)Ne(e,t,u,n[u],!0,a,s);else if(void 0!==i&&(o=!0,ce(i)||(s=!0),c&&(s?(t.call(e,i),t=null):(c=t,t=function(e,t,n){return c.call(he(e),n)})),t))for(;u<l;u++)t(e[u],n,s?i:i.call(e[u],u,t(e[u],n)));return o?e:c?t.call(e):l?t(e[0],n):a},Ae=/^-ms-/,De=/-([a-z])/g,je=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};h.uid=1,h.prototype={cache:function(e){var t=e[this.expando];return t||(t={},je(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[d(t)]=n;else for(r in t)i[d(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][d(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(d):(t=d(t))in r?[t]:t.match(Ee)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||he.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!he.isEmptyObject(t)}};var qe=new h,Le=new h,He=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Oe=/[A-Z]/g;he.extend({hasData:function(e){return Le.hasData(e)||qe.hasData(e)},data:function(e,t,n){return Le.access(e,t,n)},removeData:function(e,t){Le.remove(e,t)},_data:function(e,t,n){return qe.access(e,t,n)},_removeData:function(e,t){qe.remove(e,t)}}),he.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=Le.get(o),1===o.nodeType&&!qe.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=d(r.slice(5)),g(o,r,i[r]));qe.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){Le.set(this,e)}):Ne(this,function(t){var n;if(o&&void 0===t)return void 0!==(n=Le.get(o,e))?n:void 0!==(n=g(o,e))?n:void 0;this.each(function(){Le.set(this,e,t)})},null,t,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){Le.remove(this,e)})}}),he.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=qe.get(e,t),n&&(!r||Array.isArray(n)?r=qe.access(e,t,he.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=he.queue(e,t),r=n.length,i=n.shift(),o=he._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){he.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return qe.get(e,n)||qe.access(e,n,{empty:he.Callbacks("once memory").add(function(){qe.remove(e,[t+"queue",n])})})}}),he.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?he.queue(this[0],e):void 0===t?this:this.each(function(){var n=he.queue(this,e,t);he._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&he.dequeue(this,e)})},dequeue:function(e){return this.each(function(){he.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=he.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=qe.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var Pe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Re=new RegExp("^(?:([+-])=|)("+Pe+")([a-z%]*)$","i"),Me=["Top","Right","Bottom","Left"],Ie=K.documentElement,We=function(e){return he.contains(e.ownerDocument,e)},$e={composed:!0};Ie.getRootNode&&(We=function(e){return he.contains(e.ownerDocument,e)||e.getRootNode($e)===e.ownerDocument});var Fe=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&We(e)&&"none"===he.css(e,"display")},Be=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in i=n.apply(e,r||[]),t)e.style[o]=a[o];return i},_e={};he.fn.extend({show:function(){return y(this,!0)},hide:function(){return y(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Fe(this)?he(this).show():he(this).hide()})}});var ze=/^(?:checkbox|radio)$/i,Ue=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Xe=/^$|^module$|\/(?:java|ecma)script/i,Ve={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Ve.optgroup=Ve.option,Ve.tbody=Ve.tfoot=Ve.colgroup=Ve.caption=Ve.thead,Ve.th=Ve.td;var Ge,Ye,Qe=/<|&#?\w+;/;Ge=K.createDocumentFragment().appendChild(K.createElement("div")),(Ye=K.createElement("input")).setAttribute("type","radio"),Ye.setAttribute("checked","checked"),Ye.setAttribute("name","t"),Ge.appendChild(Ye),le.checkClone=Ge.cloneNode(!0).cloneNode(!0).lastChild.checked,Ge.innerHTML="<textarea>x</textarea>",le.noCloneChecked=!!Ge.cloneNode(!0).lastChild.defaultValue;var Je=/^key/,Ke=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ze=/^([^.]*)(?:\.(.+)|)/;he.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=qe.get(e);if(v)for(n.handler&&(n=(o=n).handler,i=o.selector),i&&he.find.matchesSelector(Ie,i),n.guid||(n.guid=he.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(t){return void 0!==he&&he.event.triggered!==t.type?he.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(Ee)||[""]).length;l--;)d=g=(s=Ze.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=he.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=he.event.special[d]||{},c=he.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&he.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(d,a)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),he.event.global[d]=!0)},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=qe.hasData(e)&&qe.get(e);if(v&&(u=v.events)){for(l=(t=(t||"").match(Ee)||[""]).length;l--;)if(d=g=(s=Ze.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){for(f=he.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||he.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)he.event.remove(e,d+t[l],n,r,!0);he.isEmptyObject(u)&&qe.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=he.event.fix(e),u=new Array(arguments.length),l=(qe.get(this,"events")||{})[s.type]||[],c=he.event.special[s.type]||{};for(u[0]=s,t=1;t<arguments.length;t++)u[t]=arguments[t];if(s.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,s)){for(a=he.event.handlers.call(this,s,l),t=0;(i=a[t++])&&!s.isPropagationStopped();)for(s.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!1!==o.namespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,void 0!==(r=((he.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<he(i,this).index(l):he.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(e,t){Object.defineProperty(he.Event.prototype,e,{enumerable:!0,configurable:!0,get:ce(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[he.expando]?e:new he.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return ze.test(t.type)&&t.click&&o(t,"input")&&S(t,"click",w),!1},trigger:function(e){var t=this||e;return ze.test(t.type)&&t.click&&o(t,"input")&&S(t,"click"),!0},_default:function(e){var t=e.target;return ze.test(t.type)&&t.click&&o(t,"input")&&qe.get(t,"click")||o(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},he.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},he.Event=function(e,t){if(!(this instanceof he.Event))return new he.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?w:T,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&he.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[he.expando]=!0},he.Event.prototype={constructor:he.Event,isDefaultPrevented:T,isPropagationStopped:T,isImmediatePropagationStopped:T,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=w,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=w,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=w,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},he.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&Je.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Ke.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},he.event.addProp),he.each({focus:"focusin",blur:"focusout"},function(e,t){he.event.special[e]={setup:function(){return S(this,e,C),!1},trigger:function(){return S(this,e),!0},delegateType:t}}),he.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){he.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||he.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}}),he.fn.extend({on:function(e,t,n,r){return E(this,e,t,n,r)},one:function(e,t,n,r){return E(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,he(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=T),this.each(function(){he.event.remove(this,e,n,t)})}});var et=/<script|<style|<link/i,tt=/checked\s*(?:[^=]|=\s*.checked.)/i,nt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;he.extend({htmlPrefilter:function(e){return e.replace(/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,"<$1></$2>")},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=We(e);if(!(le.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||he.isXMLDoc(e)))for(a=m(c),r=0,i=(o=m(e)).length;r<i;r++)s=o[r],u=a[r],"input"===(l=u.nodeName.toLowerCase())&&ze.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||m(e),a=a||m(c),r=0,i=o.length;r<i;r++)D(o[r],a[r]);else D(e,c);return 0<(a=m(c,"script")).length&&x(a,!f&&m(e,"script")),c},cleanData:function(e){for(var t,n,r,i=he.event.special,o=0;void 0!==(n=e[o]);o++)if(je(n)){if(t=n[qe.expando]){if(t.events)for(r in t.events)i[r]?he.event.remove(n,r):he.removeEvent(n,r,t.handle);n[qe.expando]=void 0}n[Le.expando]&&(n[Le.expando]=void 0)}}}),he.fn.extend({detach:function(e){return q(this,e,!0)},remove:function(e){return q(this,e)},text:function(e){return Ne(this,function(e){return void 0===e?he.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return j(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||k(this,e).appendChild(e)})},prepend:function(){return j(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=k(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return j(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return j(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(he.cleanData(m(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return he.clone(this,e,t)})},html:function(e){return Ne(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!et.test(e)&&!Ve[(Ue.exec(e)||["",""])[1].toLowerCase()]){e=he.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(he.cleanData(m(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return j(this,arguments,function(t){var n=this.parentNode;he.inArray(this,e)<0&&(he.cleanData(m(this)),n&&n.replaceChild(t,this))},e)}}),he.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){he.fn[e]=function(e){for(var n,r=[],i=he(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),he(i[a])[t](n),ne.apply(r,n.get());return this.pushStack(r)}});var rt=new RegExp("^("+Pe+")(?!px)[a-z%]+$","i"),it=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},ot=new RegExp(Me.join("|"),"i");!function(){function t(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Ie.appendChild(u).appendChild(l);var t=e.getComputedStyle(l);r="1%"!==t.top,s=12===n(t.marginLeft),l.style.right="60%",a=36===n(t.right),i=36===n(t.width),l.style.position="absolute",o=12===n(l.offsetWidth/3),Ie.removeChild(u),l=null}}function n(e){return Math.round(parseFloat(e))}var r,i,o,a,s,u=K.createElement("div"),l=K.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",le.clearCloneStyle="content-box"===l.style.backgroundClip,he.extend(le,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),r},reliableMarginLeft:function(){return t(),s},scrollboxSize:function(){return t(),o}}))}();var at=["Webkit","Moz","ms"],st=K.createElement("div").style,ut={},lt=/^(none|table(?!-c[ea]).+)/,ct=/^--/,ft={position:"absolute",visibility:"hidden",display:"block"},pt={letterSpacing:"0",fontWeight:"400"};he.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=L(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=d(t),u=ct.test(t),l=e.style;if(u||(t=O(s)),a=he.cssHooks[t]||he.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"==(o=typeof n)&&(i=Re.exec(n))&&i[1]&&(n=v(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(he.cssNumber[s]?"":"px")),le.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=d(t);return ct.test(t)||(t=O(s)),(a=he.cssHooks[t]||he.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=L(e,t,r)),"normal"===i&&t in pt&&(i=pt[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),he.each(["height","width"],function(e,t){he.cssHooks[t]={get:function(e,n,r){if(n)return!lt.test(he.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?M(e,t,r):Be(e,ft,function(){return M(e,t,r)})},set:function(e,n,r){var i,o=it(e),a=!le.scrollboxSize()&&"absolute"===o.position,s=(a||r)&&"border-box"===he.css(e,"boxSizing",!1,o),u=r?R(e,t,r,s,o):0;return s&&a&&(u-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-R(e,t,"border",!1,o)-.5)),u&&(i=Re.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=he.css(e,t)),P(0,n,u)}}}),he.cssHooks.marginLeft=H(le.reliableMarginLeft,function(e,t){if(t)return(parseFloat(L(e,"marginLeft"))||e.getBoundingClientRect().left-Be(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),he.each({margin:"",padding:"",border:"Width"},function(e,t){he.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+Me[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(he.cssHooks[e+t].set=P)}),he.fn.extend({css:function(e,t){return Ne(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=it(e),i=t.length;a<i;a++)o[t[a]]=he.css(e,t[a],!1,r);return o}return void 0!==n?he.style(e,t,n):he.css(e,t)},e,t,1<arguments.length)}}),((he.Tween=I).prototype={constructor:I,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||he.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(he.cssNumber[n]?"":"px")},cur:function(){var e=I.propHooks[this.prop];return e&&e.get?e.get(this):I.propHooks._default.get(this)},run:function(e){var t,n=I.propHooks[this.prop];return this.options.duration?this.pos=t=he.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):I.propHooks._default.set(this),this}}).init.prototype=I.prototype,(I.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=he.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){he.fx.step[e.prop]?he.fx.step[e.prop](e):1!==e.elem.nodeType||!he.cssHooks[e.prop]&&null==e.elem.style[O(e.prop)]?e.elem[e.prop]=e.now:he.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=I.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},he.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},he.fx=I.prototype.init,he.fx.step={};var dt,ht,gt,vt,yt=/^(?:toggle|show|hide)$/,mt=/queueHooks$/;he.Animation=he.extend(_,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return v(n.elem,e,Re.exec(t),n),n}]},tweener:function(e,t){ce(e)?(t=e,e=["*"]):e=e.match(Ee);for(var n,r=0,i=e.length;r<i;r++)n=e[r],_.tweeners[n]=_.tweeners[n]||[],_.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&Fe(e),v=qe.get(e,"fxshow");for(r in n.queue||(null==(a=he._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,he.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],yt.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||he.style(e,r)}if((u=!he.isEmptyObject(t))||!he.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=qe.get(e,"display")),"none"===(c=he.css(e,"display"))&&(l?c=l:(y([e],!0),l=e.style.display||l,c=he.css(e,"display"),y([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===he.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=qe.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&y([e],!0),p.done(function(){for(r in g||y([e]),qe.remove(e,"fxshow"),d)he.style(e,r,d[r])})),u=B(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?_.prefilters.unshift(e):_.prefilters.push(e)}}),he.speed=function(e,t,n){var r=e&&"object"==typeof e?he.extend({},e):{complete:n||!n&&t||ce(e)&&e,duration:e,easing:n&&t||t&&!ce(t)&&t};return he.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in he.fx.speeds?r.duration=he.fx.speeds[r.duration]:r.duration=he.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){ce(r.old)&&r.old.call(this),r.queue&&he.dequeue(this,r.queue)},r},he.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Fe).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=he.isEmptyObject(e),o=he.speed(t,n,r),a=function(){var t=_(this,he.extend({},e),o);(i||qe.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=he.timers,a=qe.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&mt.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||he.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),
this.each(function(){var t,n=qe.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=he.timers,a=r?r.length:0;for(n.finish=!0,he.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),he.each(["toggle","show","hide"],function(e,t){var n=he.fn[t];he.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(F(t,!0),e,r,i)}}),he.each({slideDown:F("show"),slideUp:F("hide"),slideToggle:F("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){he.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),he.timers=[],he.fx.tick=function(){var e,t=0,n=he.timers;for(dt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||he.fx.stop(),dt=void 0},he.fx.timer=function(e){he.timers.push(e),he.fx.start()},he.fx.interval=13,he.fx.start=function(){ht||(ht=!0,W())},he.fx.stop=function(){ht=null},he.fx.speeds={slow:600,fast:200,_default:400},he.fn.delay=function(t,n){return t=he.fx&&he.fx.speeds[t]||t,n=n||"fx",this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})},gt=K.createElement("input"),vt=K.createElement("select").appendChild(K.createElement("option")),gt.type="checkbox",le.checkOn=""!==gt.value,le.optSelected=vt.selected,(gt=K.createElement("input")).value="t",gt.type="radio",le.radioValue="t"===gt.value;var xt,bt=he.expr.attrHandle;he.fn.extend({attr:function(e,t){return Ne(this,he.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){he.removeAttr(this,e)})}}),he.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?he.prop(e,t,n):(1===o&&he.isXMLDoc(e)||(i=he.attrHooks[t.toLowerCase()]||(he.expr.match.bool.test(t)?xt:void 0)),void 0!==n?null===n?void he.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=he.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!le.radioValue&&"radio"===t&&o(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(Ee);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),xt={set:function(e,t,n){return!1===t?he.removeAttr(e,n):e.setAttribute(n,n),n}},he.each(he.expr.match.bool.source.match(/\w+/g),function(e,t){var n=bt[t]||he.find.attr;bt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=bt[a],bt[a]=i,i=null!=n(e,t,r)?a:null,bt[a]=o),i}});var wt=/^(?:input|select|textarea|button)$/i,Tt=/^(?:a|area)$/i;he.fn.extend({prop:function(e,t){return Ne(this,he.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[he.propFix[e]||e]})}}),he.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&he.isXMLDoc(e)||(t=he.propFix[t]||t,i=he.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=he.find.attr(e,"tabindex");return t?parseInt(t,10):wt.test(e.nodeName)||Tt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),le.optSelected||(he.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),he.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){he.propFix[this.toLowerCase()]=this}),he.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,u=0;if(ce(e))return this.each(function(t){he(this).addClass(e.call(this,t,U(this)))});if((t=X(e)).length)for(;n=this[u++];)if(i=U(n),r=1===n.nodeType&&" "+z(i)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=z(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,u=0;if(ce(e))return this.each(function(t){he(this).removeClass(e.call(this,t,U(this)))});if(!arguments.length)return this.attr("class","");if((t=X(e)).length)for(;n=this[u++];)if(i=U(n),r=1===n.nodeType&&" "+z(i)+" "){for(a=0;o=t[a++];)for(;-1<r.indexOf(" "+o+" ");)r=r.replace(" "+o+" "," ");i!==(s=z(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):ce(e)?this.each(function(n){he(this).toggleClass(e.call(this,n,U(this),t),t)}):this.each(function(){var t,i,o,a;if(r)for(i=0,o=he(this),a=X(e);t=a[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=U(this))&&qe.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":qe.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&-1<(" "+z(U(n))+" ").indexOf(t))return!0;return!1}});he.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=ce(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,he(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=he.map(i,function(e){return null==e?"":e+""})),(t=he.valHooks[this.type]||he.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))})):i?(t=he.valHooks[i.type]||he.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(/\r/g,""):null==n?"":n:void 0}}),he.extend({valHooks:{option:{get:function(e){var t=he.find.attr(e,"value");return null!=t?t:z(he.text(e))}},select:{get:function(e){var t,n,r,i=e.options,a=e.selectedIndex,s="select-one"===e.type,u=s?null:[],l=s?a+1:i.length;for(r=a<0?l:s?a:0;r<l;r++)if(((n=i[r]).selected||r===a)&&!n.disabled&&(!n.parentNode.disabled||!o(n.parentNode,"optgroup"))){if(t=he(n).val(),s)return t;u.push(t)}return u},set:function(e,t){for(var n,r,i=e.options,o=he.makeArray(t),a=i.length;a--;)((r=i[a]).selected=-1<he.inArray(he.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),he.each(["radio","checkbox"],function(){he.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<he.inArray(he(e).val(),t)}},le.checkOn||(he.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),le.focusin="onfocusin"in e;var Ct=/^(?:focusinfocus|focusoutblur)$/,Et=function(e){e.stopPropagation()};he.extend(he.event,{trigger:function(t,n,r,i){var o,a,s,u,l,c,f,p,d=[r||K],h=ae.call(t,"type")?t.type:t,g=ae.call(t,"namespace")?t.namespace.split("."):[];if(a=p=s=r=r||K,3!==r.nodeType&&8!==r.nodeType&&!Ct.test(h+he.event.triggered)&&(-1<h.indexOf(".")&&(h=(g=h.split(".")).shift(),g.sort()),l=h.indexOf(":")<0&&"on"+h,(t=t[he.expando]?t:new he.Event(h,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:he.makeArray(n,[t]),f=he.event.special[h]||{},i||!f.trigger||!1!==f.trigger.apply(r,n))){if(!i&&!f.noBubble&&!fe(r)){for(u=f.delegateType||h,Ct.test(u+h)||(a=a.parentNode);a;a=a.parentNode)d.push(a),s=a;s===(r.ownerDocument||K)&&d.push(s.defaultView||s.parentWindow||e)}for(o=0;(a=d[o++])&&!t.isPropagationStopped();)p=a,t.type=1<o?u:f.bindType||h,(c=(qe.get(a,"events")||{})[t.type]&&qe.get(a,"handle"))&&c.apply(a,n),(c=l&&a[l])&&c.apply&&je(a)&&(t.result=c.apply(a,n),!1===t.result&&t.preventDefault());return t.type=h,i||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(d.pop(),n)||!je(r)||l&&ce(r[h])&&!fe(r)&&((s=r[l])&&(r[l]=null),he.event.triggered=h,t.isPropagationStopped()&&p.addEventListener(h,Et),r[h](),t.isPropagationStopped()&&p.removeEventListener(h,Et),he.event.triggered=void 0,s&&(r[l]=s)),t.result}},simulate:function(e,t,n){var r=he.extend(new he.Event,n,{type:e,isSimulated:!0});he.event.trigger(r,null,t)}}),he.fn.extend({trigger:function(e,t){return this.each(function(){he.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return he.event.trigger(e,t,n,!0)}}),le.focusin||he.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){he.event.simulate(t,e.target,he.event.fix(e))};he.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=qe.access(r,t);i||r.addEventListener(e,n,!0),qe.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=qe.access(r,t)-1;i?qe.access(r,t,i):(r.removeEventListener(e,n,!0),qe.remove(r,t))}}});var St=e.location,kt=Date.now(),Nt=/\?/;he.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||he.error("Invalid XML: "+t),n};var At=/\[\]$/,Dt=/^(?:submit|button|image|reset|file)$/i,jt=/^(?:input|select|textarea|keygen)/i;he.param=function(e,t){var n,r=[],i=function(e,t){var n=ce(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!he.isPlainObject(e))he.each(e,function(){i(this.name,this.value)});else for(n in e)V(n,e[n],t,i);return r.join("&")},he.fn.extend({serialize:function(){return he.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=he.prop(this,"elements");return e?he.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!he(this).is(":disabled")&&jt.test(this.nodeName)&&!Dt.test(e)&&(this.checked||!ze.test(e))}).map(function(e,t){var n=he(this).val();return null==n?null:Array.isArray(n)?he.map(n,function(e){return{name:t.name,value:e.replace(/\r?\n/g,"\r\n")}}):{name:t.name,value:n.replace(/\r?\n/g,"\r\n")}}).get()}});var qt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Lt=/^(?:GET|HEAD)$/,Ht={},Ot={},Pt="*/".concat("*"),Rt=K.createElement("a");Rt.href=St.href,he.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:St.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(St.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Pt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":he.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Q(Q(e,he.ajaxSettings),t):Q(he.ajaxSettings,e)},ajaxPrefilter:G(Ht),ajaxTransport:G(Ot),ajax:function(t,n){function r(t,n,r,s){var l,p,d,b,w,T=n;c||(c=!0,u&&e.clearTimeout(u),i=void 0,a=s||"",C.readyState=0<t?4:0,l=200<=t&&t<300||304===t,r&&(b=function(e,t,n){for(var r,i,o,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(h,C,r)),b=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(h,b,C,l),l?(h.ifModified&&((w=C.getResponseHeader("Last-Modified"))&&(he.lastModified[o]=w),(w=C.getResponseHeader("etag"))&&(he.etag[o]=w)),204===t||"HEAD"===h.type?T="nocontent":304===t?T="notmodified":(T=b.state,p=b.data,l=!(d=b.error))):(d=T,!t&&T||(T="error",t<0&&(t=0))),C.status=t,C.statusText=(n||T)+"",l?y.resolveWith(g,[p,T,C]):y.rejectWith(g,[C,T,d]),C.statusCode(x),x=void 0,f&&v.trigger(l?"ajaxSuccess":"ajaxError",[C,h,l?p:d]),m.fireWith(g,[C,T]),f&&(v.trigger("ajaxComplete",[C,h]),--he.active||he.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,o,a,s,u,l,c,f,p,d,h=he.ajaxSetup({},n),g=h.context||h,v=h.context&&(g.nodeType||g.jquery)?he(g):he.event,y=he.Deferred(),m=he.Callbacks("once memory"),x=h.statusCode||{},b={},w={},T="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=qt.exec(a);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)C.always(e[C.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||T;return i&&i.abort(t),r(0,t),this}};if(y.promise(C),h.url=((t||h.url||St.href)+"").replace(/^\/\//,St.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(Ee)||[""],null==h.crossDomain){l=K.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Rt.protocol+"//"+Rt.host!=l.protocol+"//"+l.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=he.param(h.data,h.traditional)),Y(Ht,h,n,C),c)return C;for(p in(f=he.event&&h.global)&&0==he.active++&&he.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Lt.test(h.type),o=h.url.replace(/#.*$/,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(/%20/g,"+")):(d=h.url.slice(o.length),h.data&&(h.processData||"string"==typeof h.data)&&(o+=(Nt.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(/([?&])_=[^&]*/,"$1"),d=(Nt.test(o)?"&":"?")+"_="+kt+++d),h.url=o+d),h.ifModified&&(he.lastModified[o]&&C.setRequestHeader("If-Modified-Since",he.lastModified[o]),he.etag[o]&&C.setRequestHeader("If-None-Match",he.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||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]?", "+Pt+"; q=0.01":""):h.accepts["*"]),h.headers)C.setRequestHeader(p,h.headers[p]);if(h.beforeSend&&(!1===h.beforeSend.call(g,C,h)||c))return C.abort();if(T="abort",m.add(h.complete),C.done(h.success),C.fail(h.error),i=Y(Ot,h,n,C)){if(C.readyState=1,f&&v.trigger("ajaxSend",[C,h]),c)return C;h.async&&0<h.timeout&&(u=e.setTimeout(function(){C.abort("timeout")},h.timeout));try{c=!1,i.send(b,r)}catch(e){if(c)throw e;r(-1,e)}}else r(-1,"No Transport");return C},getJSON:function(e,t,n){return he.get(e,t,n,"json")},getScript:function(e,t){return he.get(e,void 0,t,"script")}}),he.each(["get","post"],function(e,t){he[t]=function(e,n,r,i){return ce(n)&&(i=i||r,r=n,n=void 0),he.ajax(he.extend({url:e,type:t,dataType:i,data:n,success:r},he.isPlainObject(e)&&e))}}),he._evalUrl=function(e,t){return he.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){he.globalEval(e,t)}})},he.fn.extend({wrapAll:function(e){var t;return this[0]&&(ce(e)&&(e=e.call(this[0])),t=he(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return ce(e)?this.each(function(t){he(this).wrapInner(e.call(this,t))}):this.each(function(){var t=he(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=ce(e);return this.each(function(n){he(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){he(this).replaceWith(this.childNodes)}),this}}),he.expr.pseudos.hidden=function(e){return!he.expr.pseudos.visible(e)},he.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},he.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Mt={0:200,1223:204},It=he.ajaxSettings.xhr();le.cors=!!It&&"withCredentials"in It,le.ajax=It=!!It,he.ajaxTransport(function(t){var n,r;if(le.cors||It&&!t.crossDomain)return{send:function(i,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);n=function(e){return function(){n&&(n=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Mt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),r=s.onerror=s.ontimeout=n("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),he.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),he.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return he.globalEval(e),e}}}),he.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),he.ajaxTransport("script",function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=he("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),K.head.appendChild(t[0])},abort:function(){n&&n()}}});var Wt,$t=[],Ft=/(=)\?(?=&|$)|\?\?/;he.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=$t.pop()||he.expando+"_"+kt++;return this[e]=!0,e}}),he.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,a,s=!1!==t.jsonp&&(Ft.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ft.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=ce(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Ft,"$1"+i):!1!==t.jsonp&&(t.url+=(Nt.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||he.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always(function(){void 0===o?he(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,$t.push(i)),a&&ce(o)&&o(a[0]),a=o=void 0}),"script"}),le.createHTMLDocument=((Wt=K.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Wt.childNodes.length),he.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(le.createHTMLDocument?((r=(t=K.implementation.createHTMLDocument("")).createElement("base")).href=K.location.href,t.head.appendChild(r)):t=K),o=!n&&[],(i=xe.exec(e))?[t.createElement(i[1])]:(i=b([e],t,o),o&&o.length&&he(o).remove(),he.merge([],i.childNodes)));var r,i,o},he.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=z(e.slice(s)),e=e.slice(0,s)),ce(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&he.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?he("<div>").append(he.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},he.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){he.fn[t]=function(e){return this.on(t,e)}}),he.expr.pseudos.animated=function(e){return he.grep(he.timers,function(t){return e===t.elem}).length},he.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=he.css(e,"position"),c=he(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=he.css(e,"top"),u=he.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),ce(t)&&(t=t.call(e,n,he.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},he.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){he.offset.setOffset(this,e,t)});var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===he.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===he.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=he(e).offset()).top+=he.css(e,"borderTopWidth",!0),i.left+=he.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-he.css(r,"marginTop",!0),left:t.left-i.left-he.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===he.css(e,"position");)e=e.offsetParent;return e||Ie})}}),he.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;he.fn[e]=function(r){return Ne(this,function(e,r,i){var o;if(fe(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i},e,r,arguments.length)}}),he.each(["top","left"],function(e,t){he.cssHooks[t]=H(le.pixelPosition,function(e,n){if(n)return n=L(e,t),rt.test(n)?he(e).position()[t]+"px":n})}),he.each({Height:"height",Width:"width"},function(e,t){he.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){he.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return Ne(this,function(t,n,i){var o;return fe(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?he.css(t,n,s):he.style(t,n,i,s)},t,a?i:void 0,a)}})}),he.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){he.fn[t]=function(e,n){return 0<arguments.length?this.on(t,null,e,n):this.trigger(t)}}),he.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),he.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),he.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),ce(e))return r=ee.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(ee.call(arguments)))}).guid=e.guid=e.guid||he.guid++,i},he.holdReady=function(e){e?he.readyWait++:he.ready(!0)},he.isArray=Array.isArray,he.parseJSON=JSON.parse,he.nodeName=o,he.isFunction=ce,he.isWindow=fe,he.camelCase=d,he.type=r,he.now=Date.now,he.isNumeric=function(e){var t=he.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return he});var Bt=e.jQuery,_t=e.$;return he.noConflict=function(t){return e.$===he&&(e.$=_t),t&&e.jQuery===he&&(e.jQuery=Bt),he},t||(e.jQuery=e.$=he),he});/*!
 * Bootstrap v3.4.1 (https://getbootstrap.com/)
 * Copyright 2011-2019 Twitter, Inc.
 * Licensed under the MIT license
 */
if("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 i in e)if(void 0!==t.style[i])return{end:e[i]};return!1}t.fn.emulateTransitionEnd=function(e){var i=!1,o=this;t(this).one("bsTransitionEnd",function(){i=!0});var n=function(){i||t(o).trigger(t.support.transition.end)};return setTimeout(n,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 i=t(this),n=i.data("bs.alert");n||i.data("bs.alert",n=new o(this)),"string"==typeof e&&n[e].call(i)})}var i='[data-dismiss="alert"]',o=function(e){t(e).on("click",i,this.close)};o.VERSION="3.4.1",o.TRANSITION_DURATION=150,o.prototype.close=function(e){function i(){a.detach().trigger("closed.bs.alert").remove()}var n=t(this),s=n.attr("data-target");s||(s=n.attr("href"),s=s&&s.replace(/.*(?=#[^\s]*$)/,"")),s="#"===s?[]:s;var a=t(document).find(s);e&&e.preventDefault(),a.length||(a=n.closest(".alert")),a.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(a.removeClass("in"),t.support.transition&&a.hasClass("fade")?a.one("bsTransitionEnd",i).emulateTransitionEnd(o.TRANSITION_DURATION):i())};var n=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=o,t.fn.alert.noConflict=function(){return t.fn.alert=n,this},t(document).on("click.bs.alert.data-api",i,o.prototype.close)}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var o=t(this),n=o.data("bs.button"),s="object"==typeof e&&e;n||o.data("bs.button",n=new i(this,s)),"toggle"==e?n.toggle():e&&n.setState(e)})}var i=function(e,o){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,o),this.isLoading=!1};i.VERSION="3.4.1",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(e){var i="disabled",o=this.$element,n=o.is("input")?"val":"html",s=o.data();e+="Text",null==s.resetText&&o.data("resetText",o[n]()),setTimeout(t.proxy(function(){o[n](null==s[e]?this.options[e]:s[e]),"loadingText"==e?(this.isLoading=!0,o.addClass(i).attr(i,i).prop(i,!0)):this.isLoading&&(this.isLoading=!1,o.removeClass(i).removeAttr(i).prop(i,!1))},this),0)},i.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var i=this.$element.find("input");"radio"==i.prop("type")?(i.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==i.prop("type")&&(i.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),i.prop("checked",this.$element.hasClass("active")),t&&i.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var o=t.fn.button;t.fn.button=e,t.fn.button.Constructor=i,t.fn.button.noConflict=function(){return t.fn.button=o,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(i){var o=t(i.target).closest(".btn");e.call(o,"toggle"),t(i.target).is('input[type="radio"], input[type="checkbox"]')||(i.preventDefault(),o.is("input,button")?o.trigger("focus"):o.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){var i,o=e.attr("data-target")||(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return t(document).find(o)}function i(e){return this.each(function(){var i=t(this),n=i.data("bs.collapse"),s=t.extend({},o.DEFAULTS,i.data(),"object"==typeof e&&e);!n&&s.toggle&&/show|hide/.test(e)&&(s.toggle=!1),n||i.data("bs.collapse",n=new o(this,s)),"string"==typeof e&&n[e]()})}var o=function(e,i){this.$element=t(e),this.options=t.extend({},o.DEFAULTS,i),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()};o.VERSION="3.4.1",o.TRANSITION_DURATION=0,o.DEFAULTS={toggle:!0},o.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},o.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,n=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(n&&n.length&&(e=n.data("bs.collapse"))&&e.transitioning)){var s=t.Event("show.bs.collapse");if(this.$element.trigger(s),!s.isDefaultPrevented()){n&&n.length&&(i.call(n,"hide"),e||n.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 r=function(){this.$element.removeClass("collapsing").addClass("collapse in")[a](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return r.call(this);var l=t.camelCase(["scroll",a].join("-"));this.$element.one("bsTransitionEnd",t.proxy(r,this)).emulateTransitionEnd(o.TRANSITION_DURATION)[a](this.$element[0][l])}}}},o.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 i=this.dimension();this.$element[i](this.$element[i]())[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 n=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!t.support.transition)return n.call(this);this.$element[i](0).one("bsTransitionEnd",t.proxy(n,this)).emulateTransitionEnd(o.TRANSITION_DURATION)}}},o.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},o.prototype.getParent=function(){return t(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(i,o){var n=t(o);this.addAriaAndCollapsedClass(e(n),n)},this)).end()},o.prototype.addAriaAndCollapsedClass=function(t,e){var i=t.hasClass("in");t.attr("aria-expanded",i),e.toggleClass("collapsed",!i).attr("aria-expanded",i)};var n=t.fn.collapse;t.fn.collapse=i,t.fn.collapse.Constructor=o,t.fn.collapse.noConflict=function(){return t.fn.collapse=n,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(o){var n=t(this);n.attr("data-target")||o.preventDefault();var s=e(n),a=s.data("bs.collapse"),r=a?"toggle":n.data();i.call(s,r)})}(jQuery),function(t){"use strict";function e(e){var i=e.attr("data-target");i||(i=e.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var o="#"!==i?t(document).find(i):null;return o&&o.length?o:e.parent()}function i(i){i&&3===i.which||(t(n).remove(),t(s).each(function(){var o=t(this),n=e(o),s={relatedTarget:this};n.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&t.contains(n[0],i.target)||(n.trigger(i=t.Event("hide.bs.dropdown",s)),i.isDefaultPrevented()||(o.attr("aria-expanded","false"),n.removeClass("open").trigger(t.Event("hidden.bs.dropdown",s)))))}))}function o(e){return this.each(function(){var i=t(this),o=i.data("bs.dropdown");o||i.data("bs.dropdown",o=new a(this)),"string"==typeof e&&o[e].call(i)})}var n=".dropdown-backdrop",s='[data-toggle="dropdown"]',a=function(e){t(e).on("click.bs.dropdown",this.toggle)};a.VERSION="3.4.1",a.prototype.toggle=function(o){var n=t(this);if(!n.is(".disabled, :disabled")){var s=e(n),a=s.hasClass("open");if(i(),!a){"ontouchstart"in document.documentElement&&!s.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",i);var r={relatedTarget:this};if(s.trigger(o=t.Event("show.bs.dropdown",r)),o.isDefaultPrevented())return;n.trigger("focus").attr("aria-expanded","true"),s.toggleClass("open").trigger(t.Event("shown.bs.dropdown",r))}return!1}},a.prototype.keydown=function(i){if(/(38|40|27|32)/.test(i.which)&&!/input|textarea/i.test(i.target.tagName)){var o=t(this);if(i.preventDefault(),i.stopPropagation(),!o.is(".disabled, :disabled")){var n=e(o),a=n.hasClass("open");if(!a&&27!=i.which||a&&27==i.which)return 27==i.which&&n.find(s).trigger("focus"),o.trigger("click");var r=n.find(".dropdown-menu li:not(.disabled):visible a");if(r.length){var l=r.index(i.target);38==i.which&&l>0&&l--,40==i.which&&l<r.length-1&&l++,~l||(l=0),r.eq(l).trigger("focus")}}}};var r=t.fn.dropdown;t.fn.dropdown=o,t.fn.dropdown.Constructor=a,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=r,this},t(document).on("click.bs.dropdown.data-api",i).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",s,a.prototype.toggle).on("keydown.bs.dropdown.data-api",s,a.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",a.prototype.keydown)}(jQuery),function(t){"use strict";function e(e,o){return this.each(function(){var n=t(this),s=n.data("bs.modal"),a=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e);s||n.data("bs.modal",s=new i(this,a)),"string"==typeof e?s[e](o):a.show&&s.show(o)})}var i=function(e,i){this.options=i,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.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};i.VERSION="3.4.1",i.TRANSITION_DURATION=300,i.BACKDROP_TRANSITION_DURATION=150,i.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},i.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},i.prototype.show=function(e){var o=this,n=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(n),this.isShown||n.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(){o.$element.one("mouseup.dismiss.bs.modal",function(e){t(e.target).is(o.$element)&&(o.ignoreBackdropClick=!0)})}),this.backdrop(function(){var n=t.support.transition&&o.$element.hasClass("fade");o.$element.parent().length||o.$element.appendTo(o.$body),o.$element.show().scrollTop(0),o.adjustDialog(),n&&o.$element[0].offsetWidth,o.$element.addClass("in"),o.enforceFocus();var s=t.Event("shown.bs.modal",{relatedTarget:e});n?o.$dialog.one("bsTransitionEnd",function(){o.$element.trigger("focus").trigger(s)}).emulateTransitionEnd(i.TRANSITION_DURATION):o.$element.trigger("focus").trigger(s)}))},i.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(i.TRANSITION_DURATION):this.hideModal())},i.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))},i.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")},i.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},i.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")})},i.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},i.prototype.backdrop=function(e){var o=this,n=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var s=t.support.transition&&n;if(this.$backdrop=t(document.createElement("div")).addClass("modal-backdrop "+n).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){if(this.ignoreBackdropClick)return void(this.ignoreBackdropClick=!1);t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),s&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;s?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var a=function(){o.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",a).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):a()}else e&&e()},i.prototype.handleUpdate=function(){this.adjustDialog()},i.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:""})},i.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},i.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()},i.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";var i=this.scrollbarWidth;this.bodyIsOverflowing&&(this.$body.css("padding-right",e+i),t(this.fixedContent).each(function(e,o){var n=o.style.paddingRight,s=t(o).css("padding-right");t(o).data("padding-right",n).css("padding-right",parseFloat(s)+i+"px")}))},i.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad),t(this.fixedContent).each(function(e,i){var o=t(i).data("padding-right");t(i).removeData("padding-right"),i.style.paddingRight=o?o:""})},i.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 o=t.fn.modal;t.fn.modal=e,t.fn.modal.Constructor=i,t.fn.modal.noConflict=function(){return t.fn.modal=o,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(i){var o=t(this),n=o.attr("href"),s=o.attr("data-target")||n&&n.replace(/.*(?=#[^\s]+$)/,""),a=t(document).find(s),r=a.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(n)&&n},a.data(),o.data());o.is("a")&&i.preventDefault(),a.one("show.bs.modal",function(t){t.isDefaultPrevented()||a.one("hidden.bs.modal",function(){o.is(":visible")&&o.trigger("focus")})}),e.call(a,r,this)})}(jQuery),function(t){"use strict";function e(e,i){var o=e.nodeName.toLowerCase();if(t.inArray(o,i)!==-1)return t.inArray(o,s)===-1||Boolean(e.nodeValue.match(r)||e.nodeValue.match(l));for(var n=t(i).filter(function(t,e){return e instanceof RegExp}),a=0,d=n.length;a<d;a++)if(o.match(n[a]))return!0;return!1}function i(i,o,n){if(0===i.length)return i;if(n&&"function"==typeof n)return n(i);if(!document.implementation||!document.implementation.createHTMLDocument)return i;var s=document.implementation.createHTMLDocument("sanitization");s.body.innerHTML=i;for(var a=t.map(o,function(t,e){return e}),r=t(s.body).find("*"),l=0,d=r.length;l<d;l++){var h=r[l],p=h.nodeName.toLowerCase();if(t.inArray(p,a)!==-1)for(var c=t.map(h.attributes,function(t){return t}),u=[].concat(o["*"]||[],o[p]||[]),f=0,g=c.length;f<g;f++)e(c[f],u)||h.removeAttribute(c[f].nodeName);else h.parentNode.removeChild(h)}return s.body.innerHTML}function o(e){return this.each(function(){var i=t(this),o=i.data("bs.tooltip"),n="object"==typeof e&&e;!o&&/destroy|hide/.test(e)||(o||i.data("bs.tooltip",o=new d(this,n)),"string"==typeof e&&o[e]())})}var n=["sanitize","whiteList","sanitizeFn"],s=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],a={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},r=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,l=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,d=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)};d.VERSION="3.4.1",d.TRANSITION_DURATION=150,d.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:a},d.prototype.init=function(e,i,o){if(this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(o),this.$viewport=this.options.viewport&&t(document).find(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 n=this.options.trigger.split(" "),s=n.length;s--;){var a=n[s];if("click"==a)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=a){var r="hover"==a?"mouseenter":"focusin",l="hover"==a?"mouseleave":"focusout";this.$element.on(r+"."+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()},d.prototype.getDefaults=function(){return d.DEFAULTS},d.prototype.getOptions=function(e){var o=this.$element.data();for(var s in o)o.hasOwnProperty(s)&&t.inArray(s,n)!==-1&&delete o[s];return e=t.extend({},this.getDefaults(),o,e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e.sanitize&&(e.template=i(e.template,e.whiteList,e.sanitizeFn)),e},d.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,function(t,o){i[t]!=o&&(e[t]=o)}),e},d.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusin"==e.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState?void(i.hoverState="in"):(clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show())},d.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},d.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusout"==e.type?"focus":"hover"]=!1),!i.isInStateTrue()){if(clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)}},d.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 o=this,n=this.tip(),s=this.getUID(this.type);this.setContent(),n.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&n.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,n[0],this.$element[0]):this.options.placement,r=/\s?auto?\s?/i,l=r.test(a);l&&(a=a.replace(r,"")||"top"),n.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?n.appendTo(t(document).find(this.options.container)):n.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var h=this.getPosition(),p=n[0].offsetWidth,c=n[0].offsetHeight;if(l){var u=a,f=this.getPosition(this.$viewport);a="bottom"==a&&h.bottom+c>f.bottom?"top":"top"==a&&h.top-c<f.top?"bottom":"right"==a&&h.right+p>f.width?"left":"left"==a&&h.left-p<f.left?"right":a,n.removeClass(u).addClass(a)}var g=this.getCalculatedOffset(a,h,p,c);this.applyPlacement(g,a);var m=function(){var t=o.hoverState;o.$element.trigger("shown.bs."+o.type),o.hoverState=null,"out"==t&&o.leave(o)};t.support.transition&&this.$tip.hasClass("fade")?n.one("bsTransitionEnd",m).emulateTransitionEnd(d.TRANSITION_DURATION):m()}},d.prototype.applyPlacement=function(e,i){var o=this.tip(),n=o[0].offsetWidth,s=o[0].offsetHeight,a=parseInt(o.css("margin-top"),10),r=parseInt(o.css("margin-left"),10);isNaN(a)&&(a=0),isNaN(r)&&(r=0),e.top+=a,e.left+=r,t.offset.setOffset(o[0],t.extend({using:function(t){o.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),o.addClass("in");var l=o[0].offsetWidth,d=o[0].offsetHeight;"top"==i&&d!=s&&(e.top=e.top+s-d);var h=this.getViewportAdjustedDelta(i,e,l,d);h.left?e.left+=h.left:e.top+=h.top;var p=/top|bottom/.test(i),c=p?2*h.left-n+l:2*h.top-s+d,u=p?"offsetWidth":"offsetHeight";o.offset(e),this.replaceArrow(c,o[0][u],p)},d.prototype.replaceArrow=function(t,e,i){this.arrow().css(i?"left":"top",50*(1-t/e)+"%").css(i?"top":"left","")},d.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();this.options.html?(this.options.sanitize&&(e=i(e,this.options.whiteList,this.options.sanitizeFn)),t.find(".tooltip-inner").html(e)):t.find(".tooltip-inner").text(e),t.removeClass("fade in top bottom left right")},d.prototype.hide=function(e){function i(){"in"!=o.hoverState&&n.detach(),o.$element&&o.$element.removeAttr("aria-describedby").trigger("hidden.bs."+o.type),e&&e()}var o=this,n=t(this.$tip),s=t.Event("hide.bs."+this.type);if(this.$element.trigger(s),!s.isDefaultPrevented())return n.removeClass("in"),t.support.transition&&n.hasClass("fade")?n.one("bsTransitionEnd",i).emulateTransitionEnd(d.TRANSITION_DURATION):i(),this.hoverState=null,this},d.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","")},d.prototype.hasContent=function(){return this.getTitle()},d.prototype.getPosition=function(e){e=e||this.$element;var i=e[0],o="BODY"==i.tagName,n=i.getBoundingClientRect();null==n.width&&(n=t.extend({},n,{width:n.right-n.left,height:n.bottom-n.top}));var s=window.SVGElement&&i instanceof window.SVGElement,a=o?{top:0,left:0}:s?null:e.offset(),r={scroll:o?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},l=o?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},n,r,l,a)},d.prototype.getCalculatedOffset=function(t,e,i,o){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-o,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-o/2,left:e.left-i}:{top:e.top+e.height/2-o/2,left:e.left+e.width}},d.prototype.getViewportAdjustedDelta=function(t,e,i,o){var n={top:0,left:0};if(!this.$viewport)return n;var s=this.options.viewport&&this.options.viewport.padding||0,a=this.getPosition(this.$viewport);if(/right|left/.test(t)){var r=e.top-s-a.scroll,l=e.top+s-a.scroll+o;r<a.top?n.top=a.top-r:l>a.top+a.height&&(n.top=a.top+a.height-l)}else{var d=e.left-s,h=e.left+s+i;d<a.left?n.left=a.left-d:h>a.right&&(n.left=a.left+a.width-h)}return n},d.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},d.prototype.getUID=function(t){do t+=~~(1e6*Math.random());while(document.getElementById(t))return t},d.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},d.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},d.prototype.enable=function(){this.enabled=!0},d.prototype.disable=function(){this.enabled=!1},d.prototype.toggleEnabled=function(){this.enabled=!this.enabled},d.prototype.toggle=function(e){var i=this;e&&((i=t(e.currentTarget).data("bs."+this.type))||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i))),e?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)},d.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})},d.prototype.sanitizeHtml=function(t){return i(t,this.options.whiteList,this.options.sanitizeFn)};var h=t.fn.tooltip;t.fn.tooltip=o,t.fn.tooltip.Constructor=d,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=h,this}}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var o=t(this),n=o.data("bs.popover"),s="object"==typeof e&&e;!n&&/destroy|hide/.test(e)||(n||o.data("bs.popover",n=new i(this,s)),"string"==typeof e&&n[e]())})}var i=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");i.VERSION="3.4.1",i.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>'}),i.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),i.prototype.constructor=i,i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();if(this.options.html){var o=typeof i;this.options.sanitize&&(e=this.sanitizeHtml(e),"string"===o&&(i=this.sanitizeHtml(i))),t.find(".popover-title").html(e),t.find(".popover-content").children().detach().end()["string"===o?"html":"append"](i)}else t.find(".popover-title").text(e),t.find(".popover-content").children().detach().end().text(i);t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},i.prototype.hasContent=function(){return this.getTitle()||this.getContent()},i.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)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var o=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=i,t.fn.popover.noConflict=function(){return t.fn.popover=o,this}}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var o=t(this),n=o.data("bs.tab");n||o.data("bs.tab",n=new i(this)),"string"==typeof e&&n[e]()})}var i=function(e){this.element=t(e)};i.VERSION="3.4.1",i.TRANSITION_DURATION=60,i.prototype.show=function(){var e=this.element,i=e.closest("ul:not(.dropdown-menu)"),o=e.data("target");if(o||(o=e.attr("href"),o=o&&o.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var n=i.find(".active:last a"),s=t.Event("hide.bs.tab",{relatedTarget:e[0]}),a=t.Event("show.bs.tab",{relatedTarget:n[0]});if(n.trigger(s),e.trigger(a),!a.isDefaultPrevented()&&!s.isDefaultPrevented()){var r=t(document).find(o);this.activate(e.closest("li"),i),this.activate(r,r.parent(),function(){n.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:n[0]})})}}},i.prototype.activate=function(e,o,n){function s(){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),r?(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),n&&n()}var a=o.find("> .active"),r=n&&t.support.transition&&(a.length&&a.hasClass("fade")||!!o.find("> .fade").length);a.length&&r?a.one("bsTransitionEnd",s).emulateTransitionEnd(i.TRANSITION_DURATION):s(),a.removeClass("in")};var o=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=i,t.fn.tab.noConflict=function(){return t.fn.tab=o,this};var n=function(i){i.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',n).on("click.bs.tab.data-api",'[data-toggle="pill"]',n)}(jQuery);/*!
 * $.fn.scrollIntoView - similar to the default browser scrollIntoView
 * The default browser behavior always places the element at the top or bottom of its container.
 * This override is smart enough to not scroll if the element is already visible.
 *
 * Copyright 2011 Arwid Bancewicz
 * Licensed under the MIT license
 * http://www.opensource.org/licenses/mit-license.php
 *
 * @date 8 Jan 2013
 * @author Arwid Bancewicz http://arwid.ca
 * @version 0.3
 */
!function(o){o.fn.scrollIntoView=function(t,e,n){function l(t,e){void 0===e?o.isFunction(s.complete)&&s.complete.call(t):s.smooth?o(t).stop().animate({scrollTop:e},s):(t.scrollTop=e,o.isFunction(s.complete)&&s.complete.call(t))}var s=o.extend({},o.fn.scrollIntoView.defaults);"object"==o.type(t)?o.extend(s,t):"number"==o.type(t)?o.extend(s,{duration:t,easing:e,complete:n}):0==t&&(s.smooth=!1);var i=1/0,r=0;1==this.length?null==(i=this.get(0).offsetTop)||(r=i+this.get(0).offsetHeight):this.each(function(o,t){t.offsetTop<i?i=t.offsetTop:t.offsetTop+t.offsetHeight>r&&(r=t.offsetTop+t.offsetHeight)}),r-=i;for(var c=this.commonAncestor().get(0),f=o(window).height();c;){var a=c.scrollTop,p=c.clientHeight;if(p>f&&(p=f),0==p&&"BODY"==c.tagName&&(p=f),c.scrollTop!=(null==(c.scrollTop+=1)||c.scrollTop)&&null!=(c.scrollTop-=1)||c.scrollTop!=(null==(c.scrollTop-=1)||c.scrollTop)&&null!=(c.scrollTop+=1))return void(i<=a?l(c,i):i+r>a+p?l(c,i+r-p):l(c,void 0));c=c.parentNode}return this},o.fn.scrollIntoView.defaults={smooth:!0,duration:null,easing:o.easing&&o.easing.easeOutExpo?"easeOutExpo":null,complete:o.noop(),step:null,specialEasing:{}},o.fn.isOutOfView=function(o){var t=!0;return this.each(function(){var e=this.parentNode,n=e.scrollTop,l=e.clientHeight,s=this.offsetTop,i=this.offsetHeight;(o?s>n+l:s+i>n+l)||(o?s+i<n:s<n)||(t=!1)}),t},o.fn.commonAncestor=function(){var t=[],e=1/0;o(this).each(function(){var n=o(this).parents();t.push(n),e=Math.min(e,n.length)});for(var n=0;n<t.length;n++)t[n]=t[n].slice(t[n].length-e);for(var n=0;n<t[0].length;n++){var l=!0;for(var s in t)if(t[s][n]!=t[0][n]){l=!1;break}if(l)return o(t[0][n])}return o([])}}(jQuery);/*!
 * bootbox.js [v4.4.0]
 *
 * http://bootboxjs.com/license.txt
 */
!function(t,o){"use strict";"function"==typeof define&&define.amd?define(["jquery"],o):"object"==typeof exports?module.exports=o(require("jquery")):t.bootbox=o(t.jQuery)}(this,function t(o,e){"use strict";function a(t){var o=C[d.locale];return o?o[t]:C.en[t]}function n(t,e,a){t.stopPropagation(),t.preventDefault(),o.isFunction(a)&&a.call(e,t)===!1||e.modal("hide")}function r(t){var o,e=0;for(o in t)e++;return e}function c(t,e){var a=0;o.each(t,function(t,o){e(t,o,a++)})}function l(t){var e,a;if("object"!=typeof t)throw new Error("Please supply an object of options");if(!t.message)throw new Error("Please specify a message");return t=o.extend({},d,t),t.buttons||(t.buttons={}),e=t.buttons,a=r(e),c(e,function(t,n,r){if(o.isFunction(n)&&(n=e[t]={callback:n}),"object"!==o.type(n))throw new Error("button with key "+t+" must be an object");n.label||(n.label=t),n.className||(n.className=a<=2&&r===a-1?"btn-primary":"btn-default")}),t}function i(t,o){var e=t.length,a={};if(e<1||e>2)throw new Error("Invalid argument length");return 2===e||"string"==typeof t[0]?(a[o[0]]=t[0],a[o[1]]=t[1]):a=t[0],a}function s(t,e,a){return o.extend(!0,{},t,i(e,a))}function u(t,o,e,a){return b(s({className:"bootbox-"+t,buttons:p.apply(null,o)},a,e),o)}function p(){for(var t={},o=0,e=arguments.length;o<e;o++){var n=arguments[o],r=n.toLowerCase(),c=n.toUpperCase();t[r]={label:a(c)}}return t}function b(t,o){var a={};return c(o,function(t,o){a[o]=!0}),c(t.buttons,function(t){if(a[t]===e)throw new Error("button key "+t+" is not allowed (options are "+o.join("\n")+")")}),t}var f={dialog:"<div class='bootbox modal' tabindex='-1' role='dialog'><div class='modal-dialog'><div class='modal-content'><div class='modal-body'><div class='bootbox-body'></div></div></div></div></div>",header:"<div class='modal-header'><h4 class='modal-title'></h4></div>",footer:"<div class='modal-footer'></div>",closeButton:"<button type='button' class='bootbox-close-button close' data-dismiss='modal' aria-hidden='true'>&times;</button>",form:"<form class='bootbox-form'></form>",inputs:{text:"<input class='bootbox-input bootbox-input-text form-control' autocomplete=off autocorrect=off type=text />",textarea:"<textarea class='bootbox-input bootbox-input-textarea form-control'></textarea>",email:"<input class='bootbox-input bootbox-input-email form-control' autocomplete='off' autocorrect='off' type='email' />",select:"<select class='bootbox-input bootbox-input-select form-control'></select>",checkbox:"<div class='checkbox'><label><input class='bootbox-input bootbox-input-checkbox' type='checkbox' /></label></div>",date:"<input class='bootbox-input bootbox-input-date form-control' autocomplete=off autocorrect=off type='date' />",time:"<input class='bootbox-input bootbox-input-time form-control' autocomplete=off autocorrect=off type='time' />",number:"<input class='bootbox-input bootbox-input-number form-control' autocomplete=off autocorrect=off type='number' />",password:"<input class='bootbox-input bootbox-input-password form-control' autocomplete='off' autocorrect='off' type='password' />"}},d={locale:"en",backdrop:"static",animate:!0,className:null,closeButton:!0,show:!0,container:"body"},m={};m.alert=function(){var t;if(t=u("alert",["ok"],["message","callback"],arguments),t.callback&&!o.isFunction(t.callback))throw new Error("alert requires callback property to be a function when provided");return t.buttons.ok.callback=t.onEscape=function(){return!o.isFunction(t.callback)||t.callback.call(this)},m.dialog(t)},m.confirm=function(){var t;if(t=u("confirm",["cancel","confirm"],["message","callback"],arguments),t.buttons.cancel.callback=t.onEscape=function(){return t.callback.call(this,!1)},t.buttons.confirm.callback=function(){return t.callback.call(this,!0)},!o.isFunction(t.callback))throw new Error("confirm requires a callback");return m.dialog(t)},m.prompt=function(){var t,a,n,r,l,i,u;if(r=o(f.form),a={className:"bootbox-prompt",buttons:p(),value:"",inputType:"text"},t=b(s(a,arguments,["title","callback"]),["cancel","confirm"]),i=t.show===e||t.show,t.message=r,t.buttons.cancel.callback=t.onEscape=function(){return t.callback.call(this,null)},t.buttons.confirm.callback=function(){var e;switch(t.inputType){case"text":case"textarea":case"email":case"select":case"date":case"time":case"number":case"password":e=l.val();break;case"checkbox":var a=l.find("input:checked");e=[],c(a,function(t,a){e.push(o(a).val())})}return t.callback.call(this,e)},t.show=!1,!t.title)throw new Error("prompt requires a title");if(!o.isFunction(t.callback))throw new Error("prompt requires a callback");if(!f.inputs[t.inputType])throw new Error("invalid prompt type");switch(l=o(f.inputs[t.inputType]),t.inputType){case"text":case"textarea":case"email":case"date":case"time":case"number":case"password":l.val(t.value);break;case"select":var d={};if(u=t.inputOptions||[],!o.isArray(u))throw new Error("Please pass an array of input options");if(!u.length)throw new Error("prompt with select requires options");c(u,function(t,a){var n=l;if(a.value===e||a.text===e)throw new Error("given options in wrong format");a.group&&(d[a.group]||(d[a.group]=o("<optgroup/>").attr("label",a.group)),n=d[a.group]),n.append("<option value='"+a.value+"'>"+a.text+"</option>")}),c(d,function(t,o){l.append(o)}),l.val(t.value);break;case"checkbox":var C=o.isArray(t.value)?t.value:[t.value];if(u=t.inputOptions||[],!u.length)throw new Error("prompt with checkbox requires options");if(!u[0].value||!u[0].text)throw new Error("given options in wrong format");l=o("<div/>"),c(u,function(e,a){var n=o(f.inputs[t.inputType]);n.find("input").attr("value",a.value),n.find("label").append(a.text),c(C,function(t,o){o===a.value&&n.find("input").prop("checked",!0)}),l.append(n)})}return t.placeholder&&l.attr("placeholder",t.placeholder),t.pattern&&l.attr("pattern",t.pattern),t.maxlength&&l.attr("maxlength",t.maxlength),r.append(l),r.on("submit",function(t){t.preventDefault(),t.stopPropagation(),n.find(".btn-primary").click()}),n=m.dialog(t),n.off("shown.bs.modal"),n.on("shown.bs.modal",function(){l.focus()}),i===!0&&n.modal("show"),n},m.dialog=function(t){t=l(t);var a=o(f.dialog),r=a.find(".modal-dialog"),i=a.find(".modal-body"),s=t.buttons,u="",p={onEscape:t.onEscape};if(o.fn.modal===e)throw new Error("$.fn.modal is not defined; please double check you have included the Bootstrap JavaScript library. See http://getbootstrap.com/javascript/ for more details.");if(c(s,function(t,o){u+="<button data-bb-handler='"+t+"' type='button' class='btn "+o.className+"'>"+o.label+"</button>",p[t]=o.callback}),i.find(".bootbox-body").html(t.message),t.animate===!0&&a.addClass("fade"),t.className&&a.addClass(t.className),"large"===t.size?r.addClass("modal-lg"):"small"===t.size&&r.addClass("modal-sm"),t.title&&i.before(f.header),t.closeButton){var b=o(f.closeButton);t.title?a.find(".modal-header").prepend(b):b.css("margin-top","-10px").prependTo(i)}return t.title&&a.find(".modal-title").html(t.title),u.length&&(i.after(f.footer),a.find(".modal-footer").html(u)),a.on("hidden.bs.modal",function(t){t.target===this&&a.remove()}),a.on("shown.bs.modal",function(){a.find(".btn-primary:first").focus()}),"static"!==t.backdrop&&a.on("click.dismiss.bs.modal",function(t){a.children(".modal-backdrop").length&&(t.currentTarget=a.children(".modal-backdrop").get(0)),t.target===t.currentTarget&&a.trigger("escape.close.bb")}),a.on("escape.close.bb",function(t){p.onEscape&&n(t,a,p.onEscape)}),a.on("click",".modal-footer button",function(t){n(t,a,p[o(this).data("bb-handler")])}),a.on("click",".bootbox-close-button",function(t){n(t,a,p.onEscape)}),a.on("keyup",function(t){27===t.which&&a.trigger("escape.close.bb")}),o(t.container).append(a),a.modal({backdrop:!!t.backdrop&&"static",keyboard:!1,show:!1}),t.show&&a.modal("show"),a},m.setDefaults=function(){var t={};2===arguments.length?t[arguments[0]]=arguments[1]:t=arguments[0],o.extend(d,t)},m.hideAll=function(){return o(".bootbox").modal("hide"),m};var C={bg_BG:{OK:"Ок",CANCEL:"Отказ",CONFIRM:"Потвърждавам"},br:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Sim"},cs:{OK:"OK",CANCEL:"Zrušit",CONFIRM:"Potvrdit"},da:{OK:"OK",CANCEL:"Annuller",CONFIRM:"Accepter"},de:{OK:"OK",CANCEL:"Abbrechen",CONFIRM:"Akzeptieren"},el:{OK:"Εντάξει",CANCEL:"Ακύρωση",CONFIRM:"Επιβεβαίωση"},en:{OK:"OK",CANCEL:"Cancel",CONFIRM:"OK"},es:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Aceptar"},et:{OK:"OK",CANCEL:"Katkesta",CONFIRM:"OK"},fa:{OK:"قبول",CANCEL:"لغو",CONFIRM:"تایید"},fi:{OK:"OK",CANCEL:"Peruuta",CONFIRM:"OK"},fr:{OK:"OK",CANCEL:"Annuler",CONFIRM:"D'accord"},he:{OK:"אישור",CANCEL:"ביטול",CONFIRM:"אישור"},hu:{OK:"OK",CANCEL:"Mégsem",CONFIRM:"Megerősít"},hr:{OK:"OK",CANCEL:"Odustani",CONFIRM:"Potvrdi"},id:{OK:"OK",CANCEL:"Batal",CONFIRM:"OK"},it:{OK:"OK",CANCEL:"Annulla",CONFIRM:"Conferma"},ja:{OK:"OK",CANCEL:"キャンセル",CONFIRM:"確認"},lt:{OK:"Gerai",CANCEL:"Atšaukti",CONFIRM:"Patvirtinti"},lv:{OK:"Labi",CANCEL:"Atcelt",CONFIRM:"Apstiprināt"},nl:{OK:"OK",CANCEL:"Annuleren",CONFIRM:"Accepteren"},no:{OK:"OK",CANCEL:"Avbryt",CONFIRM:"OK"},pl:{OK:"OK",CANCEL:"Anuluj",CONFIRM:"Potwierdź"},pt:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Confirmar"},ru:{OK:"OK",CANCEL:"Отмена",CONFIRM:"Применить"},sq:{OK:"OK",CANCEL:"Anulo",CONFIRM:"Prano"},sv:{OK:"OK",CANCEL:"Avbryt",CONFIRM:"OK"},th:{OK:"ตกลง",CANCEL:"ยกเลิก",CONFIRM:"ยืนยัน"},tr:{OK:"Tamam",CANCEL:"İptal",CONFIRM:"Onayla"},zh_CN:{OK:"OK",CANCEL:"取消",CONFIRM:"确认"},zh_TW:{OK:"OK",CANCEL:"取消",CONFIRM:"確認"}};return m.addLocale=function(t,e){return o.each(["OK","CANCEL","CONFIRM"],function(t,o){if(!e[o])throw new Error("Please supply a translation for '"+o+"'")}),C[t]={OK:e.OK,CANCEL:e.CANCEL,CONFIRM:e.CONFIRM},m},m.removeLocale=function(t){return delete C[t],m},m.setLocale=function(t){return m.setDefaults("locale",t)},m.init=function(e){return t(e||o)},m});/*!
 * Bootstrap Tags Input [v0.8.0]
 * https://github.com/bootstrap-tagsinput/bootstrap-tagsinput
 * https://github.com/bootstrap-tagsinput/bootstrap-tagsinput/blob/master/LICENSE
 */
!function(t){"use strict";function e(e,n){this.itemsArray=[],this.$element=t(e),this.$element.hide(),this.isSelect="SELECT"===e.tagName,this.multiple=this.isSelect&&e.hasAttribute("multiple"),this.objectItems=n&&n.itemValue,this.placeholderText=e.hasAttribute("placeholder")?this.$element.attr("placeholder"):"",this.inputSize=Math.max(1,this.placeholderText.length),this.$container=t('<div class="bootstrap-tagsinput"></div>'),this.$input=t('<input type="text" placeholder="'+this.placeholderText+'"/>').appendTo(this.$container),this.$element.before(this.$container),this.build(n)}function n(t,e){if("function"!=typeof t[e]){var n=t[e];t[e]=function(t){return t[n]}}}function i(t,e){if("function"!=typeof t[e]){var n=t[e];t[e]=function(){return n}}}function a(t){return t?l.text(t).html():""}function r(t){var e=0;if(document.selection){t.focus();var n=document.selection.createRange();n.moveStart("character",-t.value.length),e=n.text.length}else(t.selectionStart||"0"==t.selectionStart)&&(e=t.selectionStart);return e}function o(e,n){var i=!1;return t.each(n,function(t,n){if("number"==typeof n&&e.which===n)return i=!0,!1;if(e.which===n.which){var a=!n.hasOwnProperty("altKey")||e.altKey===n.altKey,r=!n.hasOwnProperty("shiftKey")||e.shiftKey===n.shiftKey,o=!n.hasOwnProperty("ctrlKey")||e.ctrlKey===n.ctrlKey;if(a&&r&&o)return i=!0,!1}}),i}var s={tagClass:function(t){return"label label-info"},itemValue:function(t){return t?t.toString():t},itemText:function(t){return this.itemValue(t)},itemTitle:function(t){return null},freeInput:!0,addOnBlur:!0,maxTags:void 0,maxChars:void 0,confirmKeys:[13,44],delimiter:",",delimiterRegex:null,cancelConfirmKeysOnEmpty:!0,onTagExists:function(t,e){e.hide().fadeIn()},trimValue:!1,allowDuplicates:!1};e.prototype={constructor:e,add:function(e,n,i){var r=this;if(!(r.options.maxTags&&r.itemsArray.length>=r.options.maxTags)&&(e===!1||e)){if("string"==typeof e&&r.options.trimValue&&(e=t.trim(e)),"object"==typeof e&&!r.objectItems)throw"Can't add objects when itemValue option is not set";if(!e.toString().match(/^\s*$/)){if(r.isSelect&&!r.multiple&&r.itemsArray.length>0&&r.remove(r.itemsArray[0]),"string"==typeof e&&"INPUT"===this.$element[0].tagName){var o=r.options.delimiterRegex?r.options.delimiterRegex:r.options.delimiter,s=e.split(o);if(s.length>1){for(var l=0;l<s.length;l++)this.add(s[l],!0);return void(n||r.pushVal())}}var u=r.options.itemValue(e),p=r.options.itemText(e),c=r.options.tagClass(e),h=r.options.itemTitle(e),m=t.grep(r.itemsArray,function(t){return r.options.itemValue(t)===u})[0];if(!m||r.options.allowDuplicates){if(!(r.items().toString().length+e.length+1>r.options.maxInputLength)){var f=t.Event("beforeItemAdd",{item:e,cancel:!1,options:i});if(r.$element.trigger(f),!f.cancel){r.itemsArray.push(e);var d=t('<span class="tag '+a(c)+(null!==h?'" title="'+h:"")+'">'+a(p)+'<span data-role="remove"></span></span>');if(d.data("item",e),r.findInputWrapper().before(d),d.after(" "),r.isSelect&&!t('option[value="'+encodeURIComponent(u)+'"]',r.$element)[0]){var v=t("<option selected>"+a(p)+"</option>");v.data("item",e),v.attr("value",u),r.$element.append(v)}n||r.pushVal(),r.options.maxTags!==r.itemsArray.length&&r.items().toString().length!==r.options.maxInputLength||r.$container.addClass("bootstrap-tagsinput-max"),r.$element.trigger(t.Event("itemAdded",{item:e,options:i}))}}}else if(r.options.onTagExists){var g=t(".tag",r.$container).filter(function(){return t(this).data("item")===m});r.options.onTagExists(e,g)}}}},remove:function(e,n,i){var a=this;if(a.objectItems&&(e="object"==typeof e?t.grep(a.itemsArray,function(t){return a.options.itemValue(t)==a.options.itemValue(e)}):t.grep(a.itemsArray,function(t){return a.options.itemValue(t)==e}),e=e[e.length-1]),e){var r=t.Event("beforeItemRemove",{item:e,cancel:!1,options:i});if(a.$element.trigger(r),r.cancel)return;t(".tag",a.$container).filter(function(){return t(this).data("item")===e}).remove(),t("option",a.$element).filter(function(){return t(this).data("item")===e}).remove(),t.inArray(e,a.itemsArray)!==-1&&a.itemsArray.splice(t.inArray(e,a.itemsArray),1)}n||a.pushVal(),a.options.maxTags>a.itemsArray.length&&a.$container.removeClass("bootstrap-tagsinput-max"),a.$element.trigger(t.Event("itemRemoved",{item:e,options:i}))},removeAll:function(){var e=this;for(t(".tag",e.$container).remove(),t("option",e.$element).remove();e.itemsArray.length>0;)e.itemsArray.pop();e.pushVal()},refresh:function(){var e=this;t(".tag",e.$container).each(function(){var n=t(this),i=n.data("item"),r=e.options.itemValue(i),o=e.options.itemText(i),s=e.options.tagClass(i);if(n.attr("class",null),n.addClass("tag "+a(s)),n.contents().filter(function(){return 3==this.nodeType})[0].nodeValue=a(o),e.isSelect){t("option",e.$element).filter(function(){return t(this).data("item")===i}).attr("value",r)}})},items:function(){return this.itemsArray},pushVal:function(){var e=this,n=t.map(e.items(),function(t){return e.options.itemValue(t).toString()});e.$element.val(n,!0).trigger("change")},build:function(e){var a=this;if(a.options=t.extend({},s,e),a.objectItems&&(a.options.freeInput=!1),n(a.options,"itemValue"),n(a.options,"itemText"),i(a.options,"tagClass"),a.options.typeahead){var l=a.options.typeahead||{};i(l,"source"),a.$input.typeahead(t.extend({},l,{source:function(e,n){function i(t){for(var e=[],i=0;i<t.length;i++){var o=a.options.itemText(t[i]);r[o]=t[i],e.push(o)}n(e)}this.map={};var r=this.map,o=l.source(e);t.isFunction(o.success)?o.success(i):t.isFunction(o.then)?o.then(i):t.when(o).then(i)},updater:function(t){return a.add(this.map[t]),this.map[t]},matcher:function(t){return t.toLowerCase().indexOf(this.query.trim().toLowerCase())!==-1},sorter:function(t){return t.sort()},highlighter:function(t){var e=new RegExp("("+this.query+")","gi");return t.replace(e,"<strong>$1</strong>")}}))}if(a.options.typeaheadjs){var u=null,p={},c=a.options.typeaheadjs;t.isArray(c)?(u=c[0],p=c[1]):p=c,a.$input.typeahead(u,p).on("typeahead:selected",t.proxy(function(t,e){p.valueKey?a.add(e[p.valueKey]):a.add(e),a.$input.typeahead("val","")},a))}a.$container.on("click",t.proxy(function(t){a.$element.attr("disabled")||a.$input.removeAttr("disabled"),a.$input.focus()},a)),a.options.addOnBlur&&a.options.freeInput&&a.$input.on("focusout",t.proxy(function(e){0===t(".typeahead, .twitter-typeahead",a.$container).length&&(a.add(a.$input.val()),a.$input.val(""))},a)),a.$container.on("keydown","input",t.proxy(function(e){var n=t(e.target),i=a.findInputWrapper();if(a.$element.attr("disabled"))return void a.$input.attr("disabled","disabled");switch(e.which){case 8:if(0===r(n[0])){var o=i.prev();o.length&&a.remove(o.data("item"))}break;case 46:if(0===r(n[0])){var s=i.next();s.length&&a.remove(s.data("item"))}break;case 37:var l=i.prev();0===n.val().length&&l[0]&&(l.before(i),n.focus());break;case 39:var u=i.next();0===n.val().length&&u[0]&&(u.after(i),n.focus())}var p=n.val().length;Math.ceil(p/5);n.attr("size",Math.max(this.inputSize,n.val().length))},a)),a.$container.on("keypress","input",t.proxy(function(e){var n=t(e.target);if(a.$element.attr("disabled"))return void a.$input.attr("disabled","disabled");var i=n.val(),r=a.options.maxChars&&i.length>=a.options.maxChars;a.options.freeInput&&(o(e,a.options.confirmKeys)||r)&&(0!==i.length&&(a.add(r?i.substr(0,a.options.maxChars):i),n.val("")),a.options.cancelConfirmKeysOnEmpty===!1&&e.preventDefault());var s=n.val().length;Math.ceil(s/5);n.attr("size",Math.max(this.inputSize,n.val().length))},a)),a.$container.on("click","[data-role=remove]",t.proxy(function(e){a.$element.attr("disabled")||a.remove(t(e.target).closest(".tag").data("item"))},a)),a.options.itemValue===s.itemValue&&("INPUT"===a.$element[0].tagName?a.add(a.$element.val()):t("option",a.$element).each(function(){a.add(t(this).attr("value"),!0)}))},destroy:function(){var t=this;t.$container.off("keypress","input"),t.$container.off("click","[role=remove]"),t.$container.remove(),t.$element.removeData("tagsinput"),t.$element.show()},focus:function(){this.$input.focus()},input:function(){return this.$input},findInputWrapper:function(){for(var e=this.$input[0],n=this.$container[0];e&&e.parentNode!==n;)e=e.parentNode;return t(e)}},t.fn.tagsinput=function(n,i,a){var r=[];return this.each(function(){var o=t(this).data("tagsinput");if(o)if(n||i){if(void 0!==o[n]){if(3===o[n].length&&void 0!==a)var s=o[n](i,null,a);else var s=o[n](i);void 0!==s&&r.push(s)}}else r.push(o);else o=new e(this,n),t(this).data("tagsinput",o),r.push(o),"SELECT"===this.tagName&&t("option",t(this)).attr("selected","selected"),t(this).val(t(this).val())}),"string"==typeof n?r.length>1?r:r[0]:r},t.fn.tagsinput.Constructor=e;var l=t("<div />");t(function(){t("input[data-role=tagsinput], select[multiple][data-role=tagsinput]").tagsinput()})}(window.jQuery);/*!
 * Datepicker for Bootstrap v1.6.4 (https://github.com/eternicode/bootstrap-datepicker)
 *
 * Copyright 2012 Stefan Petre
 * Improvements by Andrew Rowls
 * Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0)
 */
!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):jQuery)}(function(t,e){function a(){return new Date(Date.UTC.apply(Date,arguments))}function i(){var t=new Date;return a(t.getFullYear(),t.getMonth(),t.getDate())}function s(t,e){return t.getUTCFullYear()===e.getUTCFullYear()&&t.getUTCMonth()===e.getUTCMonth()&&t.getUTCDate()===e.getUTCDate()}function n(t){return function(){return this[t].apply(this,arguments)}}function r(t){return t&&!isNaN(t.getTime())}function o(e,a){function i(t,e){return e.toLowerCase()}var s,n=t(e).data(),r={},o=new RegExp("^"+a.toLowerCase()+"([A-Z])");a=new RegExp("^"+a.toLowerCase());for(var h in n)a.test(h)&&(s=h.replace(o,i),r[s]=n[h]);return r}function h(e){var a={};if(m[e]||(e=e.split("-")[0],m[e])){var i=m[e];return t.each(g,function(t,e){e in i&&(a[e]=i[e])}),a}}var d=function(){var e={get:function(t){return this.slice(t)[0]},contains:function(t){for(var e=t&&t.valueOf(),a=0,i=this.length;i>a;a++)if(this[a].valueOf()===e)return a;return-1},remove:function(t){this.splice(t,1)},replace:function(e){e&&(t.isArray(e)||(e=[e]),this.clear(),this.push.apply(this,e))},clear:function(){this.length=0},copy:function(){var t=new d;return t.replace(this),t}};return function(){var a=[];return a.push.apply(a,arguments),t.extend(a,e),a}}(),l=function(e,a){t(e).data("datepicker",this),this._process_options(a),this.dates=new d,this.viewDate=this.o.defaultViewDate,this.focusDate=null,this.element=t(e),this.isInput=this.element.is("input"),this.inputField=this.isInput?this.element:this.element.find("input"),this.component=!!this.element.hasClass("date")&&this.element.find(".add-on, .input-group-addon, .btn"),this.hasInput=this.component&&this.inputField.length,this.component&&0===this.component.length&&(this.component=!1),this.isInline=!this.component&&this.element.is("div"),this.picker=t(y.template),this._check_template(this.o.templates.leftArrow)&&this.picker.find(".prev").html(this.o.templates.leftArrow),this._check_template(this.o.templates.rightArrow)&&this.picker.find(".next").html(this.o.templates.rightArrow),this._buildEvents(),this._attachEvents(),this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu"),this.o.rtl&&this.picker.addClass("datepicker-rtl"),this.viewMode=this.o.startView,this.o.calendarWeeks&&this.picker.find("thead .datepicker-title, tfoot .today, tfoot .clear").attr("colspan",function(t,e){return parseInt(e)+1}),this._allow_update=!1,this.setStartDate(this._o.startDate),this.setEndDate(this._o.endDate),this.setDaysOfWeekDisabled(this.o.daysOfWeekDisabled),this.setDaysOfWeekHighlighted(this.o.daysOfWeekHighlighted),this.setDatesDisabled(this.o.datesDisabled),this.fillDow(),this.fillMonths(),this._allow_update=!0,this.update(),this.showMode(),this.isInline&&this.show()};l.prototype={constructor:l,_resolveViewName:function(t,a){return 0===t||"days"===t||"month"===t?0:1===t||"months"===t||"year"===t?1:2===t||"years"===t||"decade"===t?2:3===t||"decades"===t||"century"===t?3:4===t||"centuries"===t||"millennium"===t?4:a!==e&&a},_check_template:function(a){try{if(a===e||""===a)return!1;if((a.match(/[<>]/g)||[]).length<=0)return!0;return t(a).length>0}catch(t){return!1}},_process_options:function(e){this._o=t.extend({},this._o,e);var s=this.o=t.extend({},this._o),n=s.language;m[n]||(n=n.split("-")[0],m[n]||(n=f.language)),s.language=n,s.startView=this._resolveViewName(s.startView,0),s.minViewMode=this._resolveViewName(s.minViewMode,0),s.maxViewMode=this._resolveViewName(s.maxViewMode,4),s.startView=Math.min(s.startView,s.maxViewMode),s.startView=Math.max(s.startView,s.minViewMode),s.multidate!==!0&&(s.multidate=Number(s.multidate)||!1,s.multidate!==!1&&(s.multidate=Math.max(0,s.multidate))),s.multidateSeparator=String(s.multidateSeparator),s.weekStart%=7,s.weekEnd=(s.weekStart+6)%7;var r=y.parseFormat(s.format);s.startDate!==-(1/0)&&(s.startDate?s.startDate instanceof Date?s.startDate=this._local_to_utc(this._zero_time(s.startDate)):s.startDate=y.parseDate(s.startDate,r,s.language,s.assumeNearbyYear):s.startDate=-(1/0)),s.endDate!==1/0&&(s.endDate?s.endDate instanceof Date?s.endDate=this._local_to_utc(this._zero_time(s.endDate)):s.endDate=y.parseDate(s.endDate,r,s.language,s.assumeNearbyYear):s.endDate=1/0),s.daysOfWeekDisabled=s.daysOfWeekDisabled||[],t.isArray(s.daysOfWeekDisabled)||(s.daysOfWeekDisabled=s.daysOfWeekDisabled.split(/[,\s]*/)),s.daysOfWeekDisabled=t.map(s.daysOfWeekDisabled,function(t){return parseInt(t,10)}),s.daysOfWeekHighlighted=s.daysOfWeekHighlighted||[],t.isArray(s.daysOfWeekHighlighted)||(s.daysOfWeekHighlighted=s.daysOfWeekHighlighted.split(/[,\s]*/)),s.daysOfWeekHighlighted=t.map(s.daysOfWeekHighlighted,function(t){return parseInt(t,10)}),s.datesDisabled=s.datesDisabled||[],t.isArray(s.datesDisabled)||(s.datesDisabled=[s.datesDisabled]),s.datesDisabled=t.map(s.datesDisabled,function(t){return y.parseDate(t,r,s.language,s.assumeNearbyYear)});var o=String(s.orientation).toLowerCase().split(/\s+/g),h=s.orientation.toLowerCase();if(o=t.grep(o,function(t){return/^auto|left|right|top|bottom$/.test(t)}),s.orientation={x:"auto",y:"auto"},h&&"auto"!==h)if(1===o.length)switch(o[0]){case"top":case"bottom":s.orientation.y=o[0];break;case"left":case"right":s.orientation.x=o[0]}else h=t.grep(o,function(t){return/^left|right$/.test(t)}),s.orientation.x=h[0]||"auto",h=t.grep(o,function(t){return/^top|bottom$/.test(t)}),s.orientation.y=h[0]||"auto";if(s.defaultViewDate){var d=s.defaultViewDate.year||(new Date).getFullYear(),l=s.defaultViewDate.month||0,u=s.defaultViewDate.day||1;s.defaultViewDate=a(d,l,u)}else s.defaultViewDate=i()},_events:[],_secondaryEvents:[],_applyEvents:function(t){for(var a,i,s,n=0;n<t.length;n++)a=t[n][0],2===t[n].length?(i=e,s=t[n][1]):3===t[n].length&&(i=t[n][1],s=t[n][2]),a.on(s,i)},_unapplyEvents:function(t){for(var a,i,s,n=0;n<t.length;n++)a=t[n][0],2===t[n].length?(s=e,i=t[n][1]):3===t[n].length&&(s=t[n][1],i=t[n][2]),a.off(i,s)},_buildEvents:function(){var e={keyup:t.proxy(function(e){-1===t.inArray(e.keyCode,[27,37,39,38,40,32,13,9])&&this.update()},this),keydown:t.proxy(this.keydown,this),paste:t.proxy(this.paste,this)};this.o.showOnFocus===!0&&(e.focus=t.proxy(this.show,this)),this.isInput?this._events=[[this.element,e]]:this.component&&this.hasInput?this._events=[[this.inputField,e],[this.component,{click:t.proxy(this.show,this)}]]:this._events=[[this.element,{click:t.proxy(this.show,this),keydown:t.proxy(this.keydown,this)}]],this._events.push([this.element,"*",{blur:t.proxy(function(t){this._focused_from=t.target},this)}],[this.element,{blur:t.proxy(function(t){this._focused_from=t.target},this)}]),this.o.immediateUpdates&&this._events.push([this.element,{"changeYear changeMonth":t.proxy(function(t){this.update(t.date)},this)}]),this._secondaryEvents=[[this.picker,{click:t.proxy(this.click,this)}],[t(window),{resize:t.proxy(this.place,this)}],[t(document),{mousedown:t.proxy(function(t){this.element.is(t.target)||this.element.find(t.target).length||this.picker.is(t.target)||this.picker.find(t.target).length||this.isInline||this.hide()},this)}]]},_attachEvents:function(){this._detachEvents(),this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents(),this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(e,a){var i=a||this.dates.get(-1),s=this._utc_to_local(i);this.element.trigger({type:e,date:s,dates:t.map(this.dates,this._utc_to_local),format:t.proxy(function(t,e){0===arguments.length?(t=this.dates.length-1,e=this.o.format):"string"==typeof t&&(e=t,t=this.dates.length-1),e=e||this.o.format;var a=this.dates.get(t);return y.formatDate(a,e,this.o.language)},this)})},show:function(){return this.inputField.prop("disabled")||this.inputField.prop("readonly")&&this.o.enableOnReadonly===!1?void 0:(this.isInline||this.picker.appendTo(this.o.container),this.place(),this.picker.show(),this._attachSecondaryEvents(),this._trigger("show"),(window.navigator.msMaxTouchPoints||"ontouchstart"in document)&&this.o.disableTouchKeyboard&&t(this.element).blur(),this)},hide:function(){return this.isInline||!this.picker.is(":visible")?this:(this.focusDate=null,this.picker.hide().detach(),this._detachSecondaryEvents(),this.viewMode=this.o.startView,this.showMode(),this.o.forceParse&&this.inputField.val()&&this.setValue(),this._trigger("hide"),this)},destroy:function(){return this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date,this},paste:function(e){var a;if(e.originalEvent.clipboardData&&e.originalEvent.clipboardData.types&&-1!==t.inArray("text/plain",e.originalEvent.clipboardData.types))a=e.originalEvent.clipboardData.getData("text/plain");else{if(!window.clipboardData)return;a=window.clipboardData.getData("Text")}this.setDate(a),this.update(),e.preventDefault()},_utc_to_local:function(t){return t&&new Date(t.getTime()+6e4*t.getTimezoneOffset())},_local_to_utc:function(t){return t&&new Date(t.getTime()-6e4*t.getTimezoneOffset())},_zero_time:function(t){return t&&new Date(t.getFullYear(),t.getMonth(),t.getDate())},_zero_utc_time:function(t){return t&&new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()))},getDates:function(){return t.map(this.dates,this._utc_to_local)},getUTCDates:function(){return t.map(this.dates,function(t){return new Date(t)})},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){var t=this.dates.get(-1);return void 0!==t?new Date(t):null},clearDates:function(){this.inputField&&this.inputField.val(""),this.update(),this._trigger("changeDate"),this.o.autoclose&&this.hide()},setDates:function(){var e=t.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,e),this._trigger("changeDate"),this.setValue(),this},setUTCDates:function(){var e=t.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,t.map(e,this._utc_to_local)),this._trigger("changeDate"),this.setValue(),this},setDate:n("setDates"),setUTCDate:n("setUTCDates"),remove:n("destroy"),setValue:function(){var t=this.getFormattedDate();return this.inputField.val(t),this},getFormattedDate:function(a){a===e&&(a=this.o.format);var i=this.o.language;return t.map(this.dates,function(t){return y.formatDate(t,a,i)}).join(this.o.multidateSeparator)},getStartDate:function(){return this.o.startDate},setStartDate:function(t){return this._process_options({startDate:t}),this.update(),this.updateNavArrows(),this},getEndDate:function(){return this.o.endDate},setEndDate:function(t){return this._process_options({endDate:t}),this.update(),this.updateNavArrows(),this},setDaysOfWeekDisabled:function(t){return this._process_options({daysOfWeekDisabled:t}),this.update(),this.updateNavArrows(),this},setDaysOfWeekHighlighted:function(t){return this._process_options({daysOfWeekHighlighted:t}),this.update(),this},setDatesDisabled:function(t){this._process_options({datesDisabled:t}),this.update(),this.updateNavArrows()},place:function(){if(this.isInline)return this;var e=this.picker.outerWidth(),a=this.picker.outerHeight(),i=t(this.o.container),s=i.width(),n="body"===this.o.container?t(document).scrollTop():i.scrollTop(),r=i.offset(),o=[];this.element.parents().each(function(){var e=t(this).css("z-index");"auto"!==e&&0!==e&&o.push(parseInt(e))});var h=Math.max.apply(Math,o)+this.o.zIndexOffset,d=this.component?this.component.parent().offset():this.element.offset(),l=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),u=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),c=d.left-r.left,p=d.top-r.top;"body"!==this.o.container&&(p+=n),this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left"),"auto"!==this.o.orientation.x?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),"right"===this.o.orientation.x&&(c-=e-u)):d.left<0?(this.picker.addClass("datepicker-orient-left"),c-=d.left-10):c+e>s?(this.picker.addClass("datepicker-orient-right"),c+=u-e):this.picker.addClass("datepicker-orient-left");var f,g=this.o.orientation.y;if("auto"===g&&(f=-n+p-a,g=0>f?"bottom":"top"),this.picker.addClass("datepicker-orient-"+g),"top"===g?p-=a+parseInt(this.picker.css("padding-top")):p+=l,this.o.rtl){var m=s-(c+u);this.picker.css({top:p,right:m,zIndex:h})}else this.picker.css({top:p,left:c,zIndex:h});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var e=this.dates.copy(),a=[],i=!1;return arguments.length?(t.each(arguments,t.proxy(function(t,e){e instanceof Date&&(e=this._local_to_utc(e)),a.push(e)},this)),i=!0):(a=this.isInput?this.element.val():this.element.data("date")||this.inputField.val(),a=a&&this.o.multidate?a.split(this.o.multidateSeparator):[a],delete this.element.data().date),a=t.map(a,t.proxy(function(t){return y.parseDate(t,this.o.format,this.o.language,this.o.assumeNearbyYear)},this)),a=t.grep(a,t.proxy(function(t){return!this.dateWithinRange(t)||!t},this),!0),this.dates.replace(a),this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?this.viewDate=new Date(this.o.startDate):this.viewDate>this.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate,i?this.setValue():a.length&&String(e)!==String(this.dates)&&this._trigger("changeDate"),!this.dates.length&&e.length&&this._trigger("clearDate"),this.fill(),this.element.change(),this},fillDow:function(){var e=this.o.weekStart,a="<tr>";for(this.o.calendarWeeks&&(this.picker.find(".datepicker-days .datepicker-switch").attr("colspan",function(t,e){return parseInt(e)+1}),a+='<th class="cw">&#160;</th>');e<this.o.weekStart+7;)a+='<th class="dow',t.inArray(e,this.o.daysOfWeekDisabled)>-1&&(a+=" disabled"),a+='">'+m[this.o.language].daysMin[e++%7]+"</th>";a+="</tr>",this.picker.find(".datepicker-days thead").append(a)},fillMonths:function(){for(var t=this._utc_to_local(this.viewDate),e="",a=0;12>a;){e+='<span class="month'+(t&&t.getMonth()===a?" focused":"")+'">'+m[this.o.language].monthsShort[a++]+"</span>"}this.picker.find(".datepicker-months td").html(e)},setRange:function(e){e&&e.length?this.range=t.map(e,function(t){return t.valueOf()}):delete this.range,this.fill()},getClassNames:function(e){var a=[],i=this.viewDate.getUTCFullYear(),s=this.viewDate.getUTCMonth(),n=new Date;return e.getUTCFullYear()<i||e.getUTCFullYear()===i&&e.getUTCMonth()<s?a.push("old"):(e.getUTCFullYear()>i||e.getUTCFullYear()===i&&e.getUTCMonth()>s)&&a.push("new"),this.focusDate&&e.valueOf()===this.focusDate.valueOf()&&a.push("focused"),this.o.todayHighlight&&e.getUTCFullYear()===n.getFullYear()&&e.getUTCMonth()===n.getMonth()&&e.getUTCDate()===n.getDate()&&a.push("today"),-1!==this.dates.contains(e)&&a.push("active"),this.dateWithinRange(e)||a.push("disabled"),this.dateIsDisabled(e)&&a.push("disabled","disabled-date"),-1!==t.inArray(e.getUTCDay(),this.o.daysOfWeekHighlighted)&&a.push("highlighted"),this.range&&(e>this.range[0]&&e<this.range[this.range.length-1]&&a.push("range"),-1!==t.inArray(e.valueOf(),this.range)&&a.push("selected"),e.valueOf()===this.range[0]&&a.push("range-start"),e.valueOf()===this.range[this.range.length-1]&&a.push("range-end")),a},_fill_yearsView:function(a,i,s,n,r,o,h,d){var l,u,c,p,f,g,m,y,D,v,w;for(l="",u=this.picker.find(a),c=parseInt(r/s,10)*s,f=parseInt(o/n,10)*n,g=parseInt(h/n,10)*n,p=t.map(this.dates,function(t){return parseInt(t.getUTCFullYear()/n,10)*n}),u.find(".datepicker-switch").text(c+"-"+(c+9*n)),m=c-n,y=-1;11>y;y+=1)D=[i],v=null,-1===y?D.push("old"):10===y&&D.push("new"),-1!==t.inArray(m,p)&&D.push("active"),(f>m||m>g)&&D.push("disabled"),m===this.viewDate.getFullYear()&&D.push("focused"),d!==t.noop&&(w=d(new Date(m,0,1)),w===e?w={}:"boolean"==typeof w?w={enabled:w}:"string"==typeof w&&(w={classes:w}),w.enabled===!1&&D.push("disabled"),w.classes&&(D=D.concat(w.classes.split(/\s+/))),w.tooltip&&(v=w.tooltip)),l+='<span class="'+D.join(" ")+'"'+(v?' title="'+v+'"':"")+">"+m+"</span>",m+=n;u.find("td").html(l)},fill:function(){var i,s,n=new Date(this.viewDate),r=n.getUTCFullYear(),o=n.getUTCMonth(),h=this.o.startDate!==-(1/0)?this.o.startDate.getUTCFullYear():-(1/0),d=this.o.startDate!==-(1/0)?this.o.startDate.getUTCMonth():-(1/0),l=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,u=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,c=m[this.o.language].today||m.en.today||"",p=m[this.o.language].clear||m.en.clear||"",f=m[this.o.language].titleFormat||m.en.titleFormat;if(!isNaN(r)&&!isNaN(o)){this.picker.find(".datepicker-days .datepicker-switch").text(y.formatDate(n,f,this.o.language)),this.picker.find("tfoot .today").text(c).toggle(this.o.todayBtn!==!1),this.picker.find("tfoot .clear").text(p).toggle(this.o.clearBtn!==!1),this.picker.find("thead .datepicker-title").text(this.o.title).toggle(""!==this.o.title),this.updateNavArrows(),this.fillMonths();var g=a(r,o-1,28),D=y.getDaysInMonth(g.getUTCFullYear(),g.getUTCMonth());g.setUTCDate(D),g.setUTCDate(D-(g.getUTCDay()-this.o.weekStart+7)%7);var v=new Date(g);g.getUTCFullYear()<100&&v.setUTCFullYear(g.getUTCFullYear()),v.setUTCDate(v.getUTCDate()+42),v=v.valueOf();for(var w,k=[];g.valueOf()<v;){if(g.getUTCDay()===this.o.weekStart&&(k.push("<tr>"),this.o.calendarWeeks)){var b=new Date(+g+(this.o.weekStart-g.getUTCDay()-7)%7*864e5),M=new Date(Number(b)+(11-b.getUTCDay())%7*864e5),C=new Date(Number(C=a(M.getUTCFullYear(),0,1))+(11-C.getUTCDay())%7*864e5),_=(M-C)/864e5/7+1;k.push('<td class="cw">'+_+"</td>")}w=this.getClassNames(g),w.push("day"),this.o.beforeShowDay!==t.noop&&(s=this.o.beforeShowDay(this._utc_to_local(g)),s===e?s={}:"boolean"==typeof s?s={enabled:s}:"string"==typeof s&&(s={classes:s}),s.enabled===!1&&w.push("disabled"),s.classes&&(w=w.concat(s.classes.split(/\s+/))),s.tooltip&&(i=s.tooltip)),w=t.isFunction(t.uniqueSort)?t.uniqueSort(w):t.unique(w),k.push('<td class="'+w.join(" ")+'"'+(i?' title="'+i+'"':"")+">"+g.getUTCDate()+"</td>"),i=null,g.getUTCDay()===this.o.weekEnd&&k.push("</tr>"),g.setUTCDate(g.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").empty().append(k.join(""));var T=m[this.o.language].monthsTitle||m.en.monthsTitle||"Months",S=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?T:r).end().find("span").removeClass("active");if(t.each(this.dates,function(t,e){e.getUTCFullYear()===r&&S.eq(e.getUTCMonth()).addClass("active")}),(h>r||r>l)&&S.addClass("disabled"),r===h&&S.slice(0,d).addClass("disabled"),r===l&&S.slice(u+1).addClass("disabled"),this.o.beforeShowMonth!==t.noop){var U=this;t.each(S,function(a,i){var s=new Date(r,a,1),n=U.o.beforeShowMonth(s);n===e?n={}:"boolean"==typeof n?n={enabled:n}:"string"==typeof n&&(n={classes:n}),n.enabled!==!1||t(i).hasClass("disabled")||t(i).addClass("disabled"),n.classes&&t(i).addClass(n.classes),n.tooltip&&t(i).prop("title",n.tooltip)})}this._fill_yearsView(".datepicker-years","year",10,1,r,h,l,this.o.beforeShowYear),this._fill_yearsView(".datepicker-decades","decade",100,10,r,h,l,this.o.beforeShowDecade),this._fill_yearsView(".datepicker-centuries","century",1e3,100,r,h,l,this.o.beforeShowCentury)}},updateNavArrows:function(){if(this._allow_update){var t=new Date(this.viewDate),e=t.getUTCFullYear(),a=t.getUTCMonth();switch(this.viewMode){case 0:this.o.startDate!==-(1/0)&&e<=this.o.startDate.getUTCFullYear()&&a<=this.o.startDate.getUTCMonth()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==1/0&&e>=this.o.endDate.getUTCFullYear()&&a>=this.o.endDate.getUTCMonth()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 1:case 2:case 3:case 4:this.o.startDate!==-(1/0)&&e<=this.o.startDate.getUTCFullYear()||this.o.maxViewMode<2?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==1/0&&e>=this.o.endDate.getUTCFullYear()||this.o.maxViewMode<2?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}}},click:function(e){e.preventDefault(),e.stopPropagation();var s,n,r,o,h,d,l;s=t(e.target),s.hasClass("datepicker-switch")&&this.showMode(1);var u=s.closest(".prev, .next");u.length>0&&(n=y.modes[this.viewMode].navStep*(u.hasClass("prev")?-1:1),0===this.viewMode?(this.viewDate=this.moveMonth(this.viewDate,n),this._trigger("changeMonth",this.viewDate)):(this.viewDate=this.moveYear(this.viewDate,n),1===this.viewMode&&this._trigger("changeYear",this.viewDate)),this.fill()),s.hasClass("today")&&!s.hasClass("day")&&(this.showMode(-2),this._setDate(i(),"linked"===this.o.todayBtn?null:"view")),s.hasClass("clear")&&this.clearDates(),s.hasClass("disabled")||(s.hasClass("day")&&(r=parseInt(s.text(),10)||1,o=this.viewDate.getUTCFullYear(),h=this.viewDate.getUTCMonth(),s.hasClass("old")&&(0===h?(h=11,o-=1,d=!0,l=!0):(h-=1,d=!0)),s.hasClass("new")&&(11===h?(h=0,o+=1,d=!0,l=!0):(h+=1,d=!0)),this._setDate(a(o,h,r)),l&&this._trigger("changeYear",this.viewDate),d&&this._trigger("changeMonth",this.viewDate)),s.hasClass("month")&&(this.viewDate.setUTCDate(1),r=1,h=s.parent().find("span").index(s),o=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(h),this._trigger("changeMonth",this.viewDate),1===this.o.minViewMode?(this._setDate(a(o,h,r)),this.showMode()):this.showMode(-1),this.fill()),(s.hasClass("year")||s.hasClass("decade")||s.hasClass("century"))&&(this.viewDate.setUTCDate(1),r=1,h=0,o=parseInt(s.text(),10)||0,this.viewDate.setUTCFullYear(o),s.hasClass("year")&&(this._trigger("changeYear",this.viewDate),2===this.o.minViewMode&&this._setDate(a(o,h,r))),s.hasClass("decade")&&(this._trigger("changeDecade",this.viewDate),3===this.o.minViewMode&&this._setDate(a(o,h,r))),s.hasClass("century")&&(this._trigger("changeCentury",this.viewDate),4===this.o.minViewMode&&this._setDate(a(o,h,r))),this.showMode(-1),this.fill())),this.picker.is(":visible")&&this._focused_from&&t(this._focused_from).focus(),delete this._focused_from},_toggle_multidate:function(t){var e=this.dates.contains(t);if(t||this.dates.clear(),-1!==e?(this.o.multidate===!0||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(e):this.o.multidate===!1?(this.dates.clear(),this.dates.push(t)):this.dates.push(t),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(t,e){e&&"date"!==e||this._toggle_multidate(t&&new Date(t)),e&&"view"!==e||(this.viewDate=t&&new Date(t)),this.fill(),this.setValue(),e&&"view"===e||this._trigger("changeDate"),this.inputField&&this.inputField.change(),!this.o.autoclose||e&&"date"!==e||this.hide()},moveDay:function(t,e){var a=new Date(t);return a.setUTCDate(t.getUTCDate()+e),a},moveWeek:function(t,e){return this.moveDay(t,7*e)},moveMonth:function(t,e){if(!r(t))return this.o.defaultViewDate;if(!e)return t;var a,i,s=new Date(t.valueOf()),n=s.getUTCDate(),o=s.getUTCMonth(),h=Math.abs(e);if(e=e>0?1:-1,1===h)i=-1===e?function(){return s.getUTCMonth()===o}:function(){return s.getUTCMonth()!==a},a=o+e,s.setUTCMonth(a),(0>a||a>11)&&(a=(a+12)%12);else{for(var d=0;h>d;d++)s=this.moveMonth(s,e);a=s.getUTCMonth(),s.setUTCDate(n),i=function(){return a!==s.getUTCMonth()}}for(;i();)s.setUTCDate(--n),s.setUTCMonth(a);return s},moveYear:function(t,e){return this.moveMonth(t,12*e)},moveAvailableDate:function(t,e,a){do{if(t=this[a](t,e),!this.dateWithinRange(t))return!1;a="moveDay"}while(this.dateIsDisabled(t))return t},weekOfDateIsDisabled:function(e){return-1!==t.inArray(e.getUTCDay(),this.o.daysOfWeekDisabled)},dateIsDisabled:function(e){return this.weekOfDateIsDisabled(e)||t.grep(this.o.datesDisabled,function(t){return s(e,t)}).length>0},dateWithinRange:function(t){return t>=this.o.startDate&&t<=this.o.endDate},keydown:function(t){if(!this.picker.is(":visible"))return void((40===t.keyCode||27===t.keyCode)&&(this.show(),t.stopPropagation()));var e,a,i=!1,s=this.focusDate||this.viewDate;switch(t.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),t.preventDefault(),t.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;e=37===t.keyCode||38===t.keyCode?-1:1,0===this.viewMode?t.ctrlKey?(a=this.moveAvailableDate(s,e,"moveYear"))&&this._trigger("changeYear",this.viewDate):t.shiftKey?(a=this.moveAvailableDate(s,e,"moveMonth"))&&this._trigger("changeMonth",this.viewDate):37===t.keyCode||39===t.keyCode?a=this.moveAvailableDate(s,e,"moveDay"):this.weekOfDateIsDisabled(s)||(a=this.moveAvailableDate(s,e,"moveWeek")):1===this.viewMode?((38===t.keyCode||40===t.keyCode)&&(e*=4),a=this.moveAvailableDate(s,e,"moveMonth")):2===this.viewMode&&((38===t.keyCode||40===t.keyCode)&&(e*=4),a=this.moveAvailableDate(s,e,"moveYear")),a&&(this.focusDate=this.viewDate=a,this.setValue(),this.fill(),t.preventDefault());break;case 13:if(!this.o.forceParse)break;s=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(s),i=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(t.preventDefault(),t.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}i&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField&&this.inputField.change())},showMode:function(t){t&&(this.viewMode=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,this.viewMode+t))),this.picker.children("div").hide().filter(".datepicker-"+y.modes[this.viewMode].clsName).show(),this.updateNavArrows()}};var u=function(e,a){t(e).data("datepicker",this),this.element=t(e),this.inputs=t.map(a.inputs,function(t){return t.jquery?t[0]:t}),delete a.inputs,p.call(t(this.inputs),a).on("changeDate",t.proxy(this.dateUpdated,this)),this.pickers=t.map(this.inputs,function(e){return t(e).data("datepicker")}),this.updateDates()};u.prototype={updateDates:function(){this.dates=t.map(this.pickers,function(t){return t.getUTCDate()}),this.updateRanges()},updateRanges:function(){var e=t.map(this.dates,function(t){return t.valueOf()});t.each(this.pickers,function(t,a){a.setRange(e)})},dateUpdated:function(e){if(!this.updating){this.updating=!0;var a=t(e.target).data("datepicker");if(void 0!==a){var i=a.getUTCDate(),s=t.inArray(e.target,this.inputs),n=s-1,r=s+1,o=this.inputs.length;if(-1!==s){if(t.each(this.pickers,function(t,e){e.getUTCDate()||e.setUTCDate(i)}),i<this.dates[n])for(;n>=0&&i<this.dates[n];)this.pickers[n--].setUTCDate(i);else if(i>this.dates[r])for(;o>r&&i>this.dates[r];)this.pickers[r++].setUTCDate(i);this.updateDates(),delete this.updating}}}},remove:function(){t.map(this.pickers,function(t){t.remove()}),delete this.element.data().datepicker}};var c=t.fn.datepicker,p=function(a){var i=Array.apply(null,arguments);i.shift();var s;if(this.each(function(){var e=t(this),n=e.data("datepicker"),r="object"==typeof a&&a;if(!n){var d=o(this,"date"),c=t.extend({},f,d,r),p=h(c.language),g=t.extend({},f,p,d,r);e.hasClass("input-daterange")||g.inputs?(t.extend(g,{inputs:g.inputs||e.find("input").toArray()}),n=new u(this,g)):n=new l(this,g),e.data("datepicker",n)}"string"==typeof a&&"function"==typeof n[a]&&(s=n[a].apply(n,i))}),s===e||s instanceof l||s instanceof u)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+a+" function)");return s};t.fn.datepicker=p;var f=t.fn.datepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:t.noop,beforeShowMonth:t.noop,beforeShowYear:t.noop,beforeShowDecade:t.noop,beforeShowCentury:t.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:4,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-(1/0),startView:0,todayBtn:!1,todayHighlight:!1,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,showOnFocus:!0,zIndexOffset:10,container:"body",immediateUpdates:!1,title:"",templates:{leftArrow:"&laquo;",rightArrow:"&raquo;"}},g=t.fn.datepicker.locale_opts=["format","rtl","weekStart"];t.fn.datepicker.Constructor=l;var m=t.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}},y={modes:[{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10},{clsName:"decades",navFnc:"FullDecade",navStep:100},{clsName:"centuries",navFnc:"FullCentury",navStep:1e3}],isLeapYear:function(t){return t%4==0&&t%100!=0||t%400==0},getDaysInMonth:function(t,e){return[31,y.isLeapYear(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]},validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\u5e74\u6708\u65e5\[-`{-~\t\n\r]+/g,parseFormat:function(t){if("function"==typeof t.toValue&&"function"==typeof t.toDisplay)return t;var e=t.replace(this.validParts,"\0").split("\0"),a=t.match(this.validParts);if(!e||!e.length||!a||0===a.length)throw new Error("Invalid date format.");return{separators:e,parts:a}},parseDate:function(s,n,r,o){function h(t,e){return e===!0&&(e=10),100>t&&(t+=2e3)>(new Date).getFullYear()+e&&(t-=100),t}function d(){var t=this.slice(0,D[p].length),e=D[p].slice(0,t.length);return t.toLowerCase()===e.toLowerCase()}if(!s)return e;if(s instanceof Date)return s;if("string"==typeof n&&(n=y.parseFormat(n)),n.toValue)return n.toValue(s,n,r);var u,c,p,f,g=/([\-+]\d+)([dmwy])/,D=s.match(/([\-+]\d+)([dmwy])/g),v={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},w={yesterday:"-1d",today:"+0d",tomorrow:"+1d"};if(/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(s)){for(s=new Date,p=0;p<D.length;p++)u=g.exec(D[p]),c=parseInt(u[1]),f=v[u[2]],s=l.prototype[f](s,c);return a(s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate())}if(void 0!==w[s]&&(s=w[s],D=s.match(/([\-+]\d+)([dmwy])/g),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(s))){for(s=new Date,p=0;p<D.length;p++)u=g.exec(D[p]),c=parseInt(u[1]),f=v[u[2]],s=l.prototype[f](s,c);return a(s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate())}D=s&&s.match(this.nonpunctuation)||[],s=new Date;var k,b,M={},C=["yyyy","yy","M","MM","m","mm","d","dd"],_={yyyy:function(t,e){return t.setUTCFullYear(o?h(e,o):e)},yy:function(t,e){return t.setUTCFullYear(o?h(e,o):e)},m:function(t,e){if(isNaN(t))return t;for(e-=1;0>e;)e+=12;for(e%=12,t.setUTCMonth(e);t.getUTCMonth()!==e;)t.setUTCDate(t.getUTCDate()-1);return t},d:function(t,e){return t.setUTCDate(e)}};_.M=_.MM=_.mm=_.m,_.dd=_.d,s=i();var T=n.parts.slice();if(D.length!==T.length&&(T=t(T).filter(function(e,a){return-1!==t.inArray(a,C)}).toArray()),D.length===T.length){var S;for(p=0,S=T.length;S>p;p++){if(k=parseInt(D[p],10),u=T[p],isNaN(k))switch(u){case"MM":b=t(m[r].months).filter(d),k=t.inArray(b[0],m[r].months)+1;break;case"M":b=t(m[r].monthsShort).filter(d),k=t.inArray(b[0],m[r].monthsShort)+1}M[u]=k}var U,F;for(p=0;p<C.length;p++)(F=C[p])in M&&!isNaN(M[F])&&(U=new Date(s),_[F](U,M[F]),isNaN(U)||(s=U))}return s},formatDate:function(e,a,i){if(!e)return"";if("string"==typeof a&&(a=y.parseFormat(a)),a.toDisplay)return a.toDisplay(e,a,i);var s={
d:e.getUTCDate(),D:m[i].daysShort[e.getUTCDay()],DD:m[i].days[e.getUTCDay()],m:e.getUTCMonth()+1,M:m[i].monthsShort[e.getUTCMonth()],MM:m[i].months[e.getUTCMonth()],yy:e.getUTCFullYear().toString().substring(2),yyyy:e.getUTCFullYear()};s.dd=(s.d<10?"0":"")+s.d,s.mm=(s.m<10?"0":"")+s.m,e=[];for(var n=t.extend([],a.separators),r=0,o=a.parts.length;o>=r;r++)n.length&&e.push(n.shift()),e.push(s[a.parts[r]]);return e.join("")},headTemplate:'<thead><tr><th colspan="7" class="datepicker-title"></th></tr><tr><th class="prev">&laquo;</th><th colspan="5" class="datepicker-switch"></th><th class="next">&raquo;</th></tr></thead>',contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"></th></tr><tr><th colspan="7" class="clear"></th></tr></tfoot>'};y.template='<div class="datepicker"><div class="datepicker-days"><table class="table-condensed">'+y.headTemplate+"<tbody></tbody>"+y.footTemplate+'</table></div><div class="datepicker-months"><table class="table-condensed">'+y.headTemplate+y.contTemplate+y.footTemplate+'</table></div><div class="datepicker-years"><table class="table-condensed">'+y.headTemplate+y.contTemplate+y.footTemplate+'</table></div><div class="datepicker-decades"><table class="table-condensed">'+y.headTemplate+y.contTemplate+y.footTemplate+'</table></div><div class="datepicker-centuries"><table class="table-condensed">'+y.headTemplate+y.contTemplate+y.footTemplate+"</table></div></div>",t.fn.datepicker.DPGlobal=y,t.fn.datepicker.noConflict=function(){return t.fn.datepicker=c,this},t.fn.datepicker.version="1.6.4",t(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(e){var a=t(this);a.data("datepicker")||(e.preventDefault(),p.call(a,"show"))}),t(function(){p.call(t('[data-provide="datepicker-inline"]'))})}),function(t){t.fn.datepicker.dates.da={days:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag","Søndag"],daysShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør","Søn"],daysMin:["Sø","Ma","Ti","On","To","Fr","Lø","Sø"],months:["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],monthsShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],today:"I Dag",clear:"Nulstil"}}(jQuery),function(t){t.fn.datepicker.dates.de={days:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","Sonntag"],daysShort:["Son","Mon","Die","Mit","Don","Fre","Sam","Son"],daysMin:["So","Mo","Di","Mi","Do","Fr","Sa","So"],months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthsShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],today:"Heute",clear:"Löschen",weekStart:1,format:"dd.mm.yyyy"}}(jQuery),function(t){t.fn.datepicker.dates.es={days:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado","Domingo"],daysShort:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb","Dom"],daysMin:["Do","Lu","Ma","Mi","Ju","Vi","Sa","Do"],months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],monthsShort:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],today:"Hoy",clear:"Borrar",weekStart:1,format:"dd/mm/yyyy"}}(jQuery),function(t){t.fn.datepicker.dates.fr={days:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi","dimanche"],daysShort:["dim.","lun.","mar.","mer.","jeu.","ven.","sam.","dim."],daysMin:["d","l","ma","me","j","v","s","d"],months:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],monthsShort:["janv.","févr.","mars","avril","mai","juin","juil.","août","sept.","oct.","nov.","déc."],today:"Aujourd'hui",clear:"Effacer",weekStart:1,format:"dd/mm/yyyy"}}(jQuery),function(t){t.fn.datepicker.dates.it={days:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato","Domenica"],daysShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab","Dom"],daysMin:["Do","Lu","Ma","Me","Gi","Ve","Sa","Do"],months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],monthsShort:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],today:"Oggi",clear:"Cancella",weekStart:1,format:"dd/mm/yyyy"}}(jQuery),function(t){t.fn.datepicker.dates.nl={days:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag","zondag"],daysShort:["zo","ma","di","wo","do","vr","za","zo"],daysMin:["zo","ma","di","wo","do","vr","za","zo"],months:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],monthsShort:["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec"],today:"Vandaag",clear:"Wissen",weekStart:1,format:"dd-mm-yyyy"}}(jQuery),function(t){t.fn.datepicker.dates.no={days:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"],daysShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],daysMin:["Sø","Ma","Ti","On","To","Fr","Lø"],months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],monthsShort:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],today:"I dag",clear:"Nullstill",weekStart:1,format:"dd.mm.yyyy"}}(jQuery),function(t){t.fn.datepicker.dates.pl={days:["Niedziela","Poniedziałek","Wtorek","Środa","Czwartek","Piątek","Sobota","Niedziela"],daysShort:["Nie","Pn","Wt","Śr","Czw","Pt","So","Nie"],daysMin:["N","Pn","Wt","Śr","Cz","Pt","So","N"],months:["Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień"],monthsShort:["Sty","Lu","Mar","Kw","Maj","Cze","Lip","Sie","Wrz","Pa","Lis","Gru"],today:"Dzisiaj",weekStart:1,clear:"Wyczyść"}}(jQuery),function(t){t.fn.datepicker.dates.pt={days:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado","Domingo"],daysShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb","Dom"],daysMin:["Do","Se","Te","Qu","Qu","Se","Sa","Do"],months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthsShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],today:"Hoje",clear:"Limpar"}}(jQuery),function(t){t.fn.datepicker.dates.ro={days:["Duminică","Luni","Marţi","Miercuri","Joi","Vineri","Sâmbătă","Duminică"],daysShort:["Dum","Lun","Mar","Mie","Joi","Vin","Sâm","Dum"],daysMin:["Du","Lu","Ma","Mi","Jo","Vi","Sâ","Du"],months:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"],monthsShort:["Ian","Feb","Mar","Apr","Mai","Iun","Iul","Aug","Sep","Oct","Nov","Dec"],today:"Astăzi",clear:"Șterge",weekStart:1}}(jQuery),function(t){t.fn.datepicker.dates.ru={days:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота","Воскресенье"],daysShort:["Вск","Пнд","Втр","Срд","Чтв","Птн","Суб","Вск"],daysMin:["Вс","Пн","Вт","Ср","Чт","Пт","Сб","Вс"],months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthsShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],today:"Сегодня",clear:"Очистить",format:"dd.mm.yyyy",weekStart:1}}(jQuery),function(t){t.fn.datepicker.dates.zh={days:["星期日","星期一","星期二","星期三","星期四","星期五","星期六","星期日"],daysShort:["周日","周一","周二","周三","周四","周五","周六","周日"],daysMin:["日","一","二","三","四","五","六","日"],months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthsShort:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],today:"今日",format:"yyyy年mm月dd日",weekStart:1,clear:"清空"}}(jQuery);!function(t){var e='<i class="fa fa-1_50x fa-fw fa-upload-cloud vertical-align-middle"></i>&nbsp;&nbsp;&nbsp;';t.fn.bootstrapFileInput=function(i){this.each(function(a,n){var l=t(n);if(void 0===l.attr("data-bfi-disabled")){void 0!==l.attr("title")&&l.attr("title");var s="";l.attr("class")&&(s=" "+l.attr("class"));var f=i?e+theme_language("theme_xhred_upload_initial_info"):'<i class="fa fa-fw fa-paperclip"></i>';l.wrap('<a class="file-input-wrapper '+(i?" "+i[0]+" ":String())+" btn "+(i?" btn-transparent-link ":" btn-default ")+" "+s+'"></a>').parent().prepend(t("<span></span>").html(f))}}).promise().done(function(){t(".file-input-wrapper").mousemove(function(e){var i,a,n,l,s,f,p,r;a=t(this),i=a.find("input"),n=a.offset().left,l=a.offset().top,s=i.width(),f=i.height(),p=e.pageX,r=e.pageY,moveInputX=p-n-s+20,moveInputY=r-l-f/2,i.css({left:moveInputX,top:moveInputY})});t("body").off("change.fiw"),t("body").on("change.fiw",".file-input-wrapper input[type=file]",function(){var e;if(e=Convert.htmlEscape(t(this).val()),e,t(this).parent().next(".file-input-name").remove(),e=t(this).prop("files")&&t(this).prop("files").length>1?t(this)[0].files.length+" files":e.substring(e.lastIndexOf("\\")+1,e.length)){var a=theme_language("theme_xhred_global_file_selected"),n=theme_language("theme_xhred_global_files_selected"),l=$(this.files).map(function(t,e){return e.name}).get(),s=l.join("\n");if(i){var f=this,p=(f&&f.files.length>0?f.files.length:"")+" "+(f&&f.files.length>0?1===f.files.length?a:n:theme_language("theme_xhred_upload_initial_info"));t(this).siblings("span").html(p),t(this).attr("title",s);var r=i[1];f&&0!==f.files.length?r.removeClass("disabled"):r.addClass("disabled")}else{var h;if($(this).attr("multiple")){var o=this.files.length;h=o+" "+(o>1?n:a),t(this).attr("title",s)}else h="1 "+a,t(this).attr("title",e);t(this).parent().after('<span class="file-input-name">'+h+"</span>")}}})})},t.fn.bootstrapFileInputReset=function(t){$.each(t.find(".file-input-wrapper"),function(){$(this).find("span").html(e+theme_language("theme_xhred_upload_initial_info")),$(this).find('input[type="file"]').attr("title",String())})}}(jQuery);/*!
 DataTables 1.10.18
 ©2008-2018 SpryMedia Ltd - datatables.net/license
*/
!function(t){"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,a){function r(e){var n,a,o={};t.each(e,function(t){(n=t.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(n[1]+" ")&&(a=t.replace(n[0],n[2].toLowerCase()),o[a]=t,"o"===n[1]&&r(e[t]))}),e._hungarianMap=o}function o(e,n,i){e._hungarianMap||r(e);var s;t.each(n,function(r){(s=e._hungarianMap[r])===a||!i&&n[s]!==a||("o"===s.charAt(0)?(n[s]||(n[s]={}),t.extend(!0,n[s],n[r]),o(e[s],n[s],i)):n[s]=n[r])})}function i(t){var e=qt.defaults.oLanguage,n=e.sDecimal;if(n&&Wt(n),t){var a=t.sZeroRecords;!t.sEmptyTable&&a&&"No data available in table"===e.sEmptyTable&&Lt(t,t,"sZeroRecords","sEmptyTable"),!t.sLoadingRecords&&a&&"Loading..."===e.sLoadingRecords&&Lt(t,t,"sZeroRecords","sLoadingRecords"),t.sInfoThousands&&(t.sThousands=t.sInfoThousands),(t=t.sDecimal)&&n!==t&&Wt(t)}}function s(t){if(ue(t,"ordering","bSort"),ue(t,"orderMulti","bSortMulti"),ue(t,"orderClasses","bSortClasses"),ue(t,"orderCellsTop","bSortCellsTop"),ue(t,"order","aaSorting"),ue(t,"orderFixed","aaSortingFixed"),ue(t,"paging","bPaginate"),ue(t,"pagingType","sPaginationType"),ue(t,"pageLength","iDisplayLength"),ue(t,"searching","bFilter"),"boolean"==typeof t.sScrollX&&(t.sScrollX=t.sScrollX?"100%":""),"boolean"==typeof t.scrollX&&(t.scrollX=t.scrollX?"100%":""),t=t.aoSearchCols)for(var e=0,n=t.length;e<n;e++)t[e]&&o(qt.models.oSearch,t[e])}function l(e){ue(e,"orderable","bSortable"),ue(e,"orderData","aDataSort"),ue(e,"orderSequence","asSorting"),ue(e,"orderDataType","sortDataType");var n=e.aDataSort;"number"==typeof n&&!t.isArray(n)&&(e.aDataSort=[n])}function u(n){if(!qt.__browser){var a={};qt.__browser=a;var r=t("<div/>").css({position:"fixed",top:0,left:-1*t(e).scrollLeft(),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"),o=r.children(),i=o.children();a.barWidth=o[0].offsetWidth-o[0].clientWidth,a.bScrollOversize=100===i[0].offsetWidth&&100!==o[0].clientWidth,a.bScrollbarLeft=1!==Math.round(i.offset().left),a.bBounding=!!r[0].getBoundingClientRect().width,r.remove()}t.extend(n.oBrowser,qt.__browser),n.oScroll.iBarWidth=qt.__browser.barWidth}function c(t,e,n,r,o,i){var s,l=!1;for(n!==a&&(s=n,l=!0);r!==o;)t.hasOwnProperty(r)&&(s=l?e(s,t[r],r,t):t[r],l=!0,r+=i);return s}function d(e,a){var r=qt.defaults.column,o=e.aoColumns.length,r=t.extend({},qt.models.oColumn,r,{nTh:a?a:n.createElement("th"),sTitle:r.sTitle?r.sTitle:a?a.innerHTML:"",aDataSort:r.aDataSort?r.aDataSort:[o],mData:r.mData?r.mData:o,idx:o});e.aoColumns.push(r),r=e.aoPreSearchCols,r[o]=t.extend({},qt.models.oSearch,r[o]),f(e,o,t(a).data())}function f(e,n,r){var n=e.aoColumns[n],i=e.oClasses,s=t(n.nTh);if(!n.sWidthOrig){n.sWidthOrig=s.attr("width")||null;var u=(s.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);u&&(n.sWidthOrig=u[1])}r!==a&&null!==r&&(l(r),o(qt.defaults.column,r),r.mDataProp!==a&&!r.mData&&(r.mData=r.mDataProp),r.sType&&(n._sManualType=r.sType),r.className&&!r.sClass&&(r.sClass=r.className),r.sClass&&s.addClass(r.sClass),t.extend(n,r),Lt(n,r,"sWidth","sWidthOrig"),r.iDataSort!==a&&(n.aDataSort=[r.iDataSort]),Lt(n,r,"aDataSort"));var c=n.mData,d=x(c),f=n.mRender?x(n.mRender):null,r=function(t){return"string"==typeof t&&-1!==t.indexOf("@")};n._bAttrSrc=t.isPlainObject(c)&&(r(c.sort)||r(c.type)||r(c.filter)),n._setter=null,n.fnGetData=function(t,e,n){var r=d(t,e,a,n);return f&&e?f(r,e,t,n):r},n.fnSetData=function(t,e,n){return w(c)(t,e,n)},"number"!=typeof c&&(e._rowReadObject=!0),e.oFeatures.bSort||(n.bSortable=!1,s.addClass(i.sSortableNone)),e=-1!==t.inArray("asc",n.asSorting),r=-1!==t.inArray("desc",n.asSorting),n.bSortable&&(e||r)?e&&!r?(n.sSortingClass=i.sSortableAsc,n.sSortingClassJUI=i.sSortJUIAscAllowed):!e&&r?(n.sSortingClass=i.sSortableDesc,n.sSortingClassJUI=i.sSortJUIDescAllowed):(n.sSortingClass=i.sSortable,n.sSortingClassJUI=i.sSortJUI):(n.sSortingClass=i.sSortableNone,n.sSortingClassJUI="")}function h(t){if(!1!==t.oFeatures.bAutoWidth){var e=t.aoColumns;gt(t);for(var n=0,a=e.length;n<a;n++)e[n].nTh.style.width=e[n].sWidth}e=t.oScroll,(""!==e.sY||""!==e.sX)&&ht(t),Ot(t,null,"column-sizing",[t])}function p(t,e){var n=m(t,"bVisible");return"number"==typeof n[e]?n[e]:null}function g(e,n){var a=m(e,"bVisible"),a=t.inArray(n,a);return-1!==a?a:null}function b(e){var n=0;return t.each(e.aoColumns,function(e,a){a.bVisible&&"none"!==t(a.nTh).css("display")&&n++}),n}function m(e,n){var a=[];return t.map(e.aoColumns,function(t,e){t[n]&&a.push(e)}),a}function S(t){var e,n,r,o,i,s,l,u,c,d=t.aoColumns,f=t.aoData,h=qt.ext.type.detect;for(e=0,n=d.length;e<n;e++)if(l=d[e],c=[],!l.sType&&l._sManualType)l.sType=l._sManualType;else if(!l.sType){for(r=0,o=h.length;r<o;r++){for(i=0,s=f.length;i<s&&(c[i]===a&&(c[i]=C(t,i,e,"type")),(u=h[r](c[i],t))||r===h.length-1)&&"html"!==u;i++);if(u){l.sType=u;break}}l.sType||(l.sType="string")}}function v(e,n,r,o){var i,s,l,u,c,f,h=e.aoColumns;if(n)for(i=n.length-1;0<=i;i--){f=n[i];var p=f.targets!==a?f.targets:f.aTargets;for(t.isArray(p)||(p=[p]),s=0,l=p.length;s<l;s++)if("number"==typeof p[s]&&0<=p[s]){for(;h.length<=p[s];)d(e);o(p[s],f)}else if("number"==typeof p[s]&&0>p[s])o(h.length+p[s],f);else if("string"==typeof p[s])for(u=0,c=h.length;u<c;u++)("_all"==p[s]||t(h[u].nTh).hasClass(p[s]))&&o(u,f)}if(r)for(i=0,e=r.length;i<e;i++)o(i,r[i])}function D(e,n,r,o){var i=e.aoData.length,s=t.extend(!0,{},qt.models.oRow,{src:r?"dom":"data",idx:i});s._aData=n,e.aoData.push(s);for(var l=e.aoColumns,u=0,c=l.length;u<c;u++)l[u].sType=null;return e.aiDisplayMaster.push(i),n=e.rowIdFn(n),n!==a&&(e.aIds[n]=s),(r||!e.oFeatures.bDeferRender)&&P(e,i,r,o),i}function _(e,n){var a;return n instanceof t||(n=t(n)),n.map(function(t,n){return a=L(e,n),D(e,a.data,n,a.cells)})}function C(t,e,n,r){var o=t.iDraw,i=t.aoColumns[n],s=t.aoData[e]._aData,l=i.sDefaultContent,u=i.fnGetData(s,r,{settings:t,row:e,col:n});if(u===a)return t.iDrawError!=o&&null===l&&(Ft(t,0,"Requested unknown parameter "+("function"==typeof i.mData?"{function}":"'"+i.mData+"'")+" for row "+e+", column "+n,4),t.iDrawError=o),l;if(u!==s&&null!==u||null===l||r===a){if("function"==typeof u)return u.call(s)}else u=l;return null===u&&"display"==r?"":u}function y(t,e,n,a){t.aoColumns[n].fnSetData(t.aoData[e]._aData,a,{settings:t,row:e,col:n})}function T(e){return t.map(e.match(/(\\.|[^\.])+/g)||[""],function(t){return t.replace(/\\\./g,".")})}function x(e){if(t.isPlainObject(e)){var n={};return t.each(e,function(t,e){e&&(n[t]=x(e))}),function(t,e,r,o){var i=n[e]||n._;return i!==a?i(t,e,r,o):t}}if(null===e)return function(t){return t};if("function"==typeof e)return function(t,n,a,r){return e(t,n,a,r)};if("string"==typeof e&&(-1!==e.indexOf(".")||-1!==e.indexOf("[")||-1!==e.indexOf("("))){var r=function(e,n,o){var i,s;if(""!==o){s=T(o);for(var l=0,u=s.length;l<u;l++){if(o=s[l].match(ce),i=s[l].match(de),o){if(s[l]=s[l].replace(ce,""),""!==s[l]&&(e=e[s[l]]),i=[],s.splice(0,l+1),s=s.join("."),t.isArray(e))for(l=0,u=e.length;l<u;l++)i.push(r(e[l],n,s));e=o[0].substring(1,o[0].length-1),e=""===e?i:i.join(e);break}if(i)s[l]=s[l].replace(de,""),e=e[s[l]]();else{if(null===e||e[s[l]]===a)return a;e=e[s[l]]}}}return e};return function(t,n){return r(t,n,e)}}return function(t){return t[e]}}function w(e){if(t.isPlainObject(e))return w(e._);if(null===e)return function(){};if("function"==typeof e)return function(t,n,a){e(t,"set",n,a)};if("string"==typeof e&&(-1!==e.indexOf(".")||-1!==e.indexOf("[")||-1!==e.indexOf("("))){var n=function(e,r,o){var i,o=T(o);i=o[o.length-1];for(var s,l,u=0,c=o.length-1;u<c;u++){if(s=o[u].match(ce),l=o[u].match(de),s){if(o[u]=o[u].replace(ce,""),e[o[u]]=[],i=o.slice(),i.splice(0,u+1),s=i.join("."),t.isArray(r))for(l=0,c=r.length;l<c;l++)i={},n(i,r[l],s),e[o[u]].push(i);else e[o[u]]=r;return}l&&(o[u]=o[u].replace(de,""),e=e[o[u]](r)),null!==e[o[u]]&&e[o[u]]!==a||(e[o[u]]={}),e=e[o[u]]}i.match(de)?e[i.replace(de,"")](r):e[i.replace(ce,"")]=r};return function(t,a){return n(t,a,e)}}return function(t,n){t[e]=n}}function I(t){return re(t.aoData,"_aData")}function R(t){t.aoData.length=0,t.aiDisplayMaster.length=0,t.aiDisplay.length=0,t.aIds={}}function A(t,e,n){for(var r=-1,o=0,i=t.length;o<i;o++)t[o]==e?r=o:t[o]>e&&t[o]--;-1!=r&&n===a&&t.splice(r,1)}function F(t,e,n,r){var o,i=t.aoData[e],s=function(n,a){for(;n.childNodes.length;)n.removeChild(n.firstChild);n.innerHTML=C(t,e,a,"display")};if("dom"!==n&&(n&&"auto"!==n||"dom"!==i.src)){var l=i.anCells;if(l)if(r!==a)s(l[r],r);else for(n=0,o=l.length;n<o;n++)s(l[n],n)}else i._aData=L(t,i,r,r===a?a:i._aData).data;if(i._aSortData=null,i._aFilterData=null,s=t.aoColumns,r!==a)s[r].sType=null;else{for(n=0,o=s.length;n<o;n++)s[n].sType=null;j(t,i)}}function L(e,n,r,o){var i,s,l,u=[],c=n.firstChild,d=0,f=e.aoColumns,h=e._rowReadObject,o=o!==a?o:h?{}:[],p=function(t,e){if("string"==typeof t){var n=t.indexOf("@");-1!==n&&(n=t.substring(n+1),w(t)(o,e.getAttribute(n)))}},g=function(e){r!==a&&r!==d||(s=f[d],l=t.trim(e.innerHTML),s&&s._bAttrSrc?(w(s.mData._)(o,l),p(s.mData.sort,e),p(s.mData.type,e),p(s.mData.filter,e)):h?(s._setter||(s._setter=w(s.mData)),s._setter(o,l)):o[d]=l),d++};if(c)for(;c;)i=c.nodeName.toUpperCase(),"TD"!=i&&"TH"!=i||(g(c),u.push(c)),c=c.nextSibling;else for(u=n.anCells,c=0,i=u.length;c<i;c++)g(u[c]);return(n=n.firstChild?n:n.nTr)&&(n=n.getAttribute("id"))&&w(e.rowId)(o,n),{data:o,cells:u}}function P(e,a,r,o){var i,s,l,u,c,d=e.aoData[a],f=d._aData,h=[];if(null===d.nTr){for(i=r||n.createElement("tr"),d.nTr=i,d.anCells=h,i._DT_RowIndex=a,j(e,d),u=0,c=e.aoColumns.length;u<c;u++)l=e.aoColumns[u],s=r?o[u]:n.createElement(l.sCellType),s._DT_CellIndex={row:a,column:u},h.push(s),r&&!l.mRender&&l.mData===u||t.isPlainObject(l.mData)&&l.mData._===u+".display"||(s.innerHTML=C(e,a,u,"display")),l.sClass&&(s.className+=" "+l.sClass),l.bVisible&&!r?i.appendChild(s):!l.bVisible&&r&&s.parentNode.removeChild(s),l.fnCreatedCell&&l.fnCreatedCell.call(e.oInstance,s,C(e,a,u),f,a,u);Ot(e,"aoRowCreatedCallback",null,[i,f,a,h])}d.nTr.setAttribute("role","row")}function j(e,n){var a=n.nTr,r=n._aData;if(a){var o=e.rowIdFn(r);o&&(a.id=o),r.DT_RowClass&&(o=r.DT_RowClass.split(" "),n.__rowc=n.__rowc?le(n.__rowc.concat(o)):o,t(a).removeClass(n.__rowc.join(" ")).addClass(r.DT_RowClass)),r.DT_RowAttr&&t(a).attr(r.DT_RowAttr),r.DT_RowData&&t(a).data(r.DT_RowData)}}function N(e){var n,a,r,o,i,s=e.nTHead,l=e.nTFoot,u=0===t("th, td",s).length,c=e.oClasses,d=e.aoColumns;for(u&&(o=t("<tr/>").appendTo(s)),n=0,a=d.length;n<a;n++)i=d[n],r=t(i.nTh).addClass(i.sClass),u&&r.appendTo(o),e.oFeatures.bSort&&(r.addClass(i.sSortingClass),!1!==i.bSortable&&(r.attr("tabindex",e.iTabIndex).attr("aria-controls",e.sTableId),Tt(e,i.nTh,n))),i.sTitle!=r[0].innerHTML&&r.html(i.sTitle),Ht(e,"header")(e,r,i,c);if(u&&E(e.aoHeader,s),t(s).find(">tr").attr("role","row"),t(s).find(">tr>th, >tr>td").addClass(c.sHeaderTH),t(l).find(">tr>th, >tr>td").addClass(c.sFooterTH),null!==l)for(e=e.aoFooter[0],n=0,a=e.length;n<a;n++)i=d[n],i.nTf=e[n].cell,i.sClass&&t(i.nTf).addClass(i.sClass)}function O(e,n,r){var o,i,s,l,u=[],c=[],d=e.aoColumns.length;if(n){for(r===a&&(r=!1),o=0,i=n.length;o<i;o++){for(u[o]=n[o].slice(),u[o].nTr=n[o].nTr,s=d-1;0<=s;s--)!e.aoColumns[s].bVisible&&!r&&u[o].splice(s,1);c.push([])}for(o=0,i=u.length;o<i;o++){if(e=u[o].nTr)for(;s=e.firstChild;)e.removeChild(s);for(s=0,n=u[o].length;s<n;s++)if(l=d=1,c[o][s]===a){for(e.appendChild(u[o][s].cell),c[o][s]=1;u[o+d]!==a&&u[o][s].cell==u[o+d][s].cell;)c[o+d][s]=1,d++;for(;u[o][s+l]!==a&&u[o][s].cell==u[o][s+l].cell;){for(r=0;r<d;r++)c[o+r][s+l]=1;l++}t(u[o][s].cell).attr("rowspan",d).attr("colspan",l)}}}}function k(e){var n=Ot(e,"aoPreDrawCallback","preDraw",[e]);if(-1!==t.inArray(!1,n))dt(e,!1);else{var n=[],r=0,o=e.asStripeClasses,i=o.length,s=e.oLanguage,l=e.iInitDisplayStart,u="ssp"==Mt(e),c=e.aiDisplay;e.bDrawing=!0,l!==a&&-1!==l&&(e._iDisplayStart=u?l:l>=e.fnRecordsDisplay()?0:l,e.iInitDisplayStart=-1);var l=e._iDisplayStart,d=e.fnDisplayEnd();if(e.bDeferLoading)e.bDeferLoading=!1,e.iDraw++,dt(e,!1);else if(u){if(!e.bDestroying&&!U(e))return}else e.iDraw++;if(0!==c.length)for(s=u?e.aoData.length:d,u=u?0:l;u<s;u++){var f=c[u],h=e.aoData[f];null===h.nTr&&P(e,f);var p=h.nTr;if(0!==i){var g=o[r%i];h._sRowStripe!=g&&(t(p).removeClass(h._sRowStripe).addClass(g),h._sRowStripe=g)}Ot(e,"aoRowCallback",null,[p,h._aData,r,u,f]),n.push(p),r++}else r=s.sZeroRecords,1==e.iDraw&&"ajax"==Mt(e)?r=s.sLoadingRecords:s.sEmptyTable&&0===e.fnRecordsTotal()&&(r=s.sEmptyTable),n[0]=t("<tr/>",{class:i?o[0]:""}).append(t("<td />",{valign:"top",colSpan:b(e),class:e.oClasses.sRowEmpty}).html(r))[0];Ot(e,"aoHeaderCallback","header",[t(e.nTHead).children("tr")[0],I(e),l,d,c]),Ot(e,"aoFooterCallback","footer",[t(e.nTFoot).children("tr")[0],I(e),l,d,c]),o=t(e.nTBody),o.children().detach(),o.append(t(n)),Ot(e,"aoDrawCallback","draw",[e]),e.bSorted=!1,e.bFiltered=!1,e.bDrawing=!1}}function H(t,e){var n=t.oFeatures,a=n.bFilter;n.bSort&&_t(t),a?Y(t,t.oPreviousSearch):t.aiDisplay=t.aiDisplayMaster.slice(),!0!==e&&(t._iDisplayStart=0),t._drawHold=e,k(t),t._drawHold=!1}function M(e){var n=e.oClasses,a=t(e.nTable),a=t("<div/>").insertBefore(a),r=e.oFeatures,o=t("<div/>",{id:e.sTableId+"_wrapper",class:n.sWrapper+(e.nTFoot?"":" "+n.sNoFooter)});e.nHolding=a[0],e.nTableWrapper=o[0],e.nTableReinsertBefore=e.nTable.nextSibling;for(var i,s,l,u,c,d,f=e.sDom.split(""),h=0;h<f.length;h++){if(i=null,"<"==(s=f[h])){if(l=t("<div/>")[0],"'"==(u=f[h+1])||'"'==u){for(c="",d=2;f[h+d]!=u;)c+=f[h+d],d++;"H"==c?c=n.sJUIHeader:"F"==c&&(c=n.sJUIFooter),-1!=c.indexOf(".")?(u=c.split("."),l.id=u[0].substr(1,u[0].length-1),l.className=u[1]):"#"==c.charAt(0)?l.id=c.substr(1,c.length-1):l.className=c,h+=d}o.append(l),o=t(l)}else if(">"==s)o=o.parent();else if("l"==s&&r.bPaginate&&r.bLengthChange)i=st(e);else if("f"==s&&r.bFilter)i=q(e);else if("r"==s&&r.bProcessing)i=ct(e);else if("t"==s)i=ft(e);else if("i"==s&&r.bInfo)i=et(e);else if("p"==s&&r.bPaginate)i=lt(e);else if(0!==qt.ext.feature.length)for(l=qt.ext.feature,d=0,u=l.length;d<u;d++)if(s==l[d].cFeature){i=l[d].fnInit(e);break}i&&(l=e.aanFeatures,l[s]||(l[s]=[]),l[s].push(i),o.append(i))}a.replaceWith(o),e.nHolding=null}function E(e,n){var a,r,o,i,s,l,u,c,d,f,h=t(n).children("tr");for(e.splice(0,e.length),o=0,l=h.length;o<l;o++)e.push([]);for(o=0,l=h.length;o<l;o++)for(a=h[o],r=a.firstChild;r;){if("TD"==r.nodeName.toUpperCase()||"TH"==r.nodeName.toUpperCase()){for(c=1*r.getAttribute("colspan"),d=1*r.getAttribute("rowspan"),c=c&&0!==c&&1!==c?c:1,d=d&&0!==d&&1!==d?d:1,i=0,s=e[o];s[i];)i++;for(u=i,f=1===c,s=0;s<c;s++)for(i=0;i<d;i++)e[o+i][u+s]={cell:r,unique:f},e[o+i].nTr=a}r=r.nextSibling}}function W(t,e,n){var a=[];n||(n=t.aoHeader,e&&(n=[],E(n,e)));for(var e=0,r=n.length;e<r;e++)for(var o=0,i=n[e].length;o<i;o++)!n[e][o].unique||a[o]&&t.bSortCellsTop||(a[o]=n[e][o].cell);return a}function B(e,n,a){if(Ot(e,"aoServerParams","serverParams",[n]),n&&t.isArray(n)){var r={};t.each(n,function(t,e){var n=e.name.match(/(.*?)\[\]$/);n?(n=n[0],r[n]||(r[n]=[]),r[n].push(e.value)):r[e.name]=e.value}),n=r}var o,i=e.ajax,s=e.oInstance,l=function(t){Ot(e,null,"xhr",[e,t,e.jqXHR]),a(t)};if(t.isPlainObject(i)&&i.data){o=i.data;var u="function"==typeof o?o(n,e):o,n="function"==typeof o&&u?u:t.extend(!0,n,u);delete i.data}u={data:n,success:function(t){var n=t.error||t.sError;n&&Ft(e,0,n),e.json=t,l(t)},dataType:"json",cache:!1,type:e.sServerMethod,error:function(n,a){var r=Ot(e,null,"xhr",[e,null,e.jqXHR]);-1===t.inArray(!0,r)&&("parsererror"==a?Ft(e,0,"Invalid JSON response",1):4===n.readyState&&Ft(e,0,"Ajax error",7)),dt(e,!1)}},e.oAjaxData=n,Ot(e,null,"preXhr",[e,n]),e.fnServerData?e.fnServerData.call(s,e.sAjaxSource,t.map(n,function(t,e){return{name:e,value:t}}),l,e):e.sAjaxSource||"string"==typeof i?e.jqXHR=t.ajax(t.extend(u,{url:i||e.sAjaxSource})):"function"==typeof i?e.jqXHR=i.call(s,n,l,e):(e.jqXHR=t.ajax(t.extend(u,i)),i.data=o)}function U(t){return!t.bAjaxDataGet||(t.iDraw++,dt(t,!0),B(t,X(t),function(e){V(t,e)}),!1)}function X(e){var n,a,r,o,i=e.aoColumns,s=i.length,l=e.oFeatures,u=e.oPreviousSearch,c=e.aoPreSearchCols,d=[],f=Dt(e);n=e._iDisplayStart,a=!1!==l.bPaginate?e._iDisplayLength:-1;var h=function(t,e){d.push({name:t,value:e})};h("sEcho",e.iDraw),h("iColumns",s),h("sColumns",re(i,"sName").join(",")),h("iDisplayStart",n),h("iDisplayLength",a);var p={draw:e.iDraw,columns:[],order:[],start:n,length:a,search:{value:u.sSearch,regex:u.bRegex}};for(n=0;n<s;n++)r=i[n],o=c[n],a="function"==typeof r.mData?"function":r.mData,p.columns.push({data:a,name:r.sName,searchable:r.bSearchable,orderable:r.bSortable,search:{value:o.sSearch,regex:o.bRegex}}),h("mDataProp_"+n,a),l.bFilter&&(h("sSearch_"+n,o.sSearch),h("bRegex_"+n,o.bRegex),h("bSearchable_"+n,r.bSearchable)),l.bSort&&h("bSortable_"+n,r.bSortable);return l.bFilter&&(h("sSearch",u.sSearch),h("bRegex",u.bRegex)),l.bSort&&(t.each(f,function(t,e){p.order.push({column:e.col,dir:e.dir}),h("iSortCol_"+t,e.col),h("sSortDir_"+t,e.dir)}),h("iSortingCols",f.length)),i=qt.ext.legacy.ajax,null===i?e.sAjaxSource?d:p:i?d:p}function V(t,e){var n=J(t,e),r=e.sEcho!==a?e.sEcho:e.draw,o=e.iTotalRecords!==a?e.iTotalRecords:e.recordsTotal,i=e.iTotalDisplayRecords!==a?e.iTotalDisplayRecords:e.recordsFiltered;if(r){if(1*r<t.iDraw)return;t.iDraw=1*r}for(R(t),t._iRecordsTotal=parseInt(o,10),t._iRecordsDisplay=parseInt(i,10),r=0,o=n.length;r<o;r++)D(t,n[r]);t.aiDisplay=t.aiDisplayMaster.slice(),t.bAjaxDataGet=!1,k(t),t._bInitComplete||ot(t,e),t.bAjaxDataGet=!0,dt(t,!1)}function J(e,n){var r=t.isPlainObject(e.ajax)&&e.ajax.dataSrc!==a?e.ajax.dataSrc:e.sAjaxDataProp;return"data"===r?n.aaData||n[r]:""!==r?x(r)(n):n}function q(e){var a=e.oClasses,r=e.sTableId,o=e.oLanguage,i=e.oPreviousSearch,s=e.aanFeatures,l='<input type="search" class="'+a.sFilterInput+'"/>',u=o.sSearch,u=u.match(/_INPUT_/)?u.replace("_INPUT_",l):u+l,a=t("<div/>",{id:s.f?null:r+"_filter",class:a.sFilter}).append(t("<label/>").append(u)),s=function(){var t=this.value?this.value:"";t!=i.sSearch&&(Y(e,{sSearch:t,bRegex:i.bRegex,bSmart:i.bSmart,bCaseInsensitive:i.bCaseInsensitive}),e._iDisplayStart=0,k(e))},l=null!==e.searchDelay?e.searchDelay:"ssp"===Mt(e)?400:0,c=t("input",a).val(i.sSearch).attr("placeholder",o.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",l?be(s,l):s).on("keypress.DT",function(t){if(13==t.keyCode)return!1}).attr("aria-controls",r);return t(e.nTable).on("search.dt.DT",function(t,a){if(e===a)try{c[0]!==n.activeElement&&c.val(i.sSearch)}catch(t){}}),a[0]}function Y(t,e,n){var r=t.oPreviousSearch,o=t.aoPreSearchCols,i=function(t){r.sSearch=t.sSearch,r.bRegex=t.bRegex,r.bSmart=t.bSmart,r.bCaseInsensitive=t.bCaseInsensitive};if(S(t),"ssp"!=Mt(t)){for(z(t,e.sSearch,n,e.bEscapeRegex!==a?!e.bEscapeRegex:e.bRegex,e.bSmart,e.bCaseInsensitive),i(e),e=0;e<o.length;e++)$(t,o[e].sSearch,e,o[e].bEscapeRegex!==a?!o[e].bEscapeRegex:o[e].bRegex,o[e].bSmart,o[e].bCaseInsensitive);G(t)}else i(e);t.bFiltered=!0,Ot(t,null,"search",[t])}function G(e){for(var n,a,r=qt.ext.search,o=e.aiDisplay,i=0,s=r.length;i<s;i++){for(var l=[],u=0,c=o.length;u<c;u++)a=o[u],n=e.aoData[a],r[i](e,n._aFilterData,a,n._aData,u)&&l.push(a);o.length=0,t.merge(o,l)}}function $(t,e,n,a,r,o){if(""!==e){for(var i=[],s=t.aiDisplay,a=Z(e,a,r,o),r=0;r<s.length;r++)e=t.aoData[s[r]]._aFilterData[n],a.test(e)&&i.push(s[r]);t.aiDisplay=i}}function z(t,e,n,a,r,o){var i,a=Z(e,a,r,o),o=t.oPreviousSearch.sSearch,s=t.aiDisplayMaster,r=[];if(0!==qt.ext.search.length&&(n=!0),i=Q(t),0>=e.length)t.aiDisplay=s.slice();else{for((i||n||o.length>e.length||0!==e.indexOf(o)||t.bSorted)&&(t.aiDisplay=s.slice()),e=t.aiDisplay,n=0;n<e.length;n++)a.test(t.aoData[e[n]]._sFilterRow)&&r.push(e[n]);t.aiDisplay=r}}function Z(e,n,a,r){return e=n?e:fe(e),a&&(e="^(?=.*?"+t.map(e.match(/"[^"]+"|[^ ]+/g)||[""],function(t){if('"'===t.charAt(0))var e=t.match(/^"(.*)"$/),t=e?e[1]:t;return t.replace('"',"")}).join(")(?=.*?")+").*$"),RegExp(e,r?"i":"")}function Q(t){var e,n,a,r,o,i,s,l,u=t.aoColumns,c=qt.ext.type.search;for(e=!1,n=0,r=t.aoData.length;n<r;n++)if(l=t.aoData[n],!l._aFilterData){for(i=[],a=0,o=u.length;a<o;a++)e=u[a],e.bSearchable?(s=C(t,n,a,"filter"),c[e.sType]&&(s=c[e.sType](s)),null===s&&(s=""),"string"!=typeof s&&s.toString&&(s=s.toString())):s="",s.indexOf&&-1!==s.indexOf("&")&&(he.innerHTML=s,s=pe?he.textContent:he.innerText),s.replace&&(s=s.replace(/[\r\n]/g,"")),i.push(s);l._aFilterData=i,l._sFilterRow=i.join("  "),e=!0}return e}function K(t){return{search:t.sSearch,smart:t.bSmart,regex:t.bRegex,caseInsensitive:t.bCaseInsensitive}}function tt(t){return{sSearch:t.search,bSmart:t.smart,bRegex:t.regex,bCaseInsensitive:t.caseInsensitive}}function et(e){var n=e.sTableId,a=e.aanFeatures.i,r=t("<div/>",{class:e.oClasses.sInfo,id:a?null:n+"_info"});return a||(e.aoDrawCallback.push({fn:nt,sName:"information"}),r.attr("role","status").attr("aria-live","polite"),t(e.nTable).attr("aria-describedby",n+"_info")),r[0]}function nt(e){var n=e.aanFeatures.i;if(0!==n.length){var a=e.oLanguage,r=e._iDisplayStart+1,o=e.fnDisplayEnd(),i=e.fnRecordsTotal(),s=e.fnRecordsDisplay(),l=s?a.sInfo:a.sInfoEmpty;s!==i&&(l+=" "+a.sInfoFiltered),l+=a.sInfoPostFix,l=at(e,l),a=a.fnInfoCallback,null!==a&&(l=a.call(e.oInstance,e,r,o,i,s,l)),t(n).html(l)}}function at(t,e){var n=t.fnFormatNumber,a=t._iDisplayStart+1,r=t._iDisplayLength,o=t.fnRecordsDisplay(),i=-1===r;return e.replace(/_START_/g,n.call(t,a)).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,i?1:Math.ceil(a/r))).replace(/_PAGES_/g,n.call(t,i?1:Math.ceil(o/r)))}function rt(t){var e,n,a,r=t.iInitDisplayStart,o=t.aoColumns;n=t.oFeatures;var i=t.bDeferLoading;if(t.bInitialised){for(M(t),N(t),O(t,t.aoHeader),O(t,t.aoFooter),dt(t,!0),n.bAutoWidth&&gt(t),e=0,n=o.length;e<n;e++)a=o[e],a.sWidth&&(a.nTh.style.width=vt(a.sWidth));Ot(t,null,"preInit",[t]),H(t),o=Mt(t),("ssp"!=o||i)&&("ajax"==o?B(t,[],function(n){var a=J(t,n);for(e=0;e<a.length;e++)D(t,a[e]);t.iInitDisplayStart=r,H(t),dt(t,!1),ot(t,n)},t):(dt(t,!1),ot(t)))}else setTimeout(function(){rt(t)},200)}function ot(t,e){t._bInitComplete=!0,(e||t.oInit.aaData)&&h(t),Ot(t,null,"plugin-init",[t,e]),Ot(t,"aoInitComplete","init",[t,e])}function it(t,e){var n=parseInt(e,10);t._iDisplayLength=n,kt(t),Ot(t,null,"length",[t,n])}function st(e){for(var n=e.oClasses,a=e.sTableId,r=e.aLengthMenu,o=t.isArray(r[0]),i=o?r[0]:r,r=o?r[1]:r,o=t("<select/>",{name:a+"_length","aria-controls":a,class:n.sLengthSelect}),s=0,l=i.length;s<l;s++)o[0][s]=new Option("number"==typeof r[s]?e.fnFormatNumber(r[s]):r[s],i[s]);var u=t("<div><label/></div>").addClass(n.sLength);return e.aanFeatures.l||(u[0].id=a+"_length"),u.children().append(e.oLanguage.sLengthMenu.replace("_MENU_",o[0].outerHTML)),t("select",u).val(e._iDisplayLength).on("change.DT",function(){it(e,t(this).val()),k(e)}),t(e.nTable).on("length.dt.DT",function(n,a,r){e===a&&t("select",u).val(r)}),u[0]}function lt(e){var n=e.sPaginationType,a=qt.ext.pager[n],r="function"==typeof a,o=function(t){k(t)},n=t("<div/>").addClass(e.oClasses.sPaging+n)[0],i=e.aanFeatures;return r||a.fnInit(e,n,o),i.p||(n.id=e.sTableId+"_paginate",e.aoDrawCallback.push({fn:function(t){if(r){var e,n=t._iDisplayStart,s=t._iDisplayLength,l=t.fnRecordsDisplay(),u=-1===s,n=u?0:Math.ceil(n/s),s=u?1:Math.ceil(l/s),l=a(n,s),u=0;for(e=i.p.length;u<e;u++)Ht(t,"pageButton")(t,i.p[u],u,l,n,s)}else a.fnUpdate(t,o)},sName:"pagination"})),n}function ut(t,e,n){var a=t._iDisplayStart,r=t._iDisplayLength,o=t.fnRecordsDisplay();return 0===o||-1===r?a=0:"number"==typeof e?(a=e*r)>o&&(a=0):"first"==e?a=0:"previous"==e?0>(a=0<=r?a-r:0)&&(a=0):"next"==e?a+r<o&&(a+=r):"last"==e?a=Math.floor((o-1)/r)*r:Ft(t,0,"Unknown paging action: "+e,5),e=t._iDisplayStart!==a,t._iDisplayStart=a,e&&(Ot(t,null,"page",[t]),n&&k(t)),e}function ct(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 dt(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 a=e.oScroll;if(""===a.sX&&""===a.sY)return e.nTable;var r=a.sX,o=a.sY,i=e.oClasses,s=n.children("caption"),l=s.length?s[0]._captionSide:null,u=t(n[0].cloneNode(!1)),c=t(n[0].cloneNode(!1)),d=n.children("tfoot");d.length||(d=null),u=t("<div/>",{class:i.sScrollWrapper}).append(t("<div/>",{class:i.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:r?r?vt(r):null:"100%"}).append(t("<div/>",{class:i.sScrollHeadInner}).css({"box-sizing":"content-box",width:a.sXInner||"100%"}).append(u.removeAttr("id").css("margin-left",0).append("top"===l?s:null).append(n.children("thead"))))).append(t("<div/>",{class:i.sScrollBody}).css({position:"relative",overflow:"auto",width:r?vt(r):null}).append(n)),d&&u.append(t("<div/>",{class:i.sScrollFoot}).css({overflow:"hidden",border:0,width:r?r?vt(r):null:"100%"}).append(t("<div/>",{class:i.sScrollFootInner}).append(c.removeAttr("id").css("margin-left",0).append("bottom"===l?s:null).append(n.children("tfoot")))));var n=u.children(),f=n[0],i=n[1],h=d?n[2]:null;return r&&t(i).on("scroll.DT",function(){var t=this.scrollLeft;f.scrollLeft=t,d&&(h.scrollLeft=t)}),t(i).css(o&&a.bCollapse?"max-height":"height",o),e.nScrollHead=f,e.nScrollBody=i,e.nScrollFoot=h,e.aoDrawCallback.push({fn:ht,sName:"scrolling"}),u[0]}function ht(e){var n,r,o,i,s,l=e.oScroll,u=l.sX,c=l.sXInner,d=l.sY,l=l.iBarWidth,f=t(e.nScrollHead),g=f[0].style,b=f.children("div"),m=b[0].style,S=b.children("table"),b=e.nScrollBody,v=t(b),D=b.style,_=t(e.nScrollFoot).children("div"),C=_.children("table"),y=t(e.nTHead),T=t(e.nTable),x=T[0],w=x.style,I=e.nTFoot?t(e.nTFoot):null,R=e.oBrowser,A=R.bScrollOversize,F=re(e.aoColumns,"nTh"),L=[],P=[],j=[],N=[],O=function(t){t=t.style,t.paddingTop="0",t.paddingBottom="0",t.borderTopWidth="0",t.borderBottomWidth="0",t.height=0};r=b.scrollHeight>b.clientHeight,e.scrollBarVis!==r&&e.scrollBarVis!==a?(e.scrollBarVis=r,h(e)):(e.scrollBarVis=r,T.children("thead, tfoot").remove(),I&&(o=I.clone().prependTo(T),n=I.find("tr"),o=o.find("tr")),i=y.clone().prependTo(T),y=y.find("tr"),r=i.find("tr"),i.find("th, td").removeAttr("tabindex"),u||(D.width="100%",f[0].style.width="100%"),t.each(W(e,i),function(t,n){s=p(e,t),n.style.width=e.aoColumns[s].sWidth}),I&&pt(function(t){t.style.width=""},o),f=T.outerWidth(),""===u?(w.width="100%",A&&(T.find("tbody").height()>b.offsetHeight||"scroll"==v.css("overflow-y"))&&(w.width=vt(T.outerWidth()-l)),f=T.outerWidth()):""!==c&&(w.width=vt(c),f=T.outerWidth()),pt(O,r),pt(function(e){j.push(e.innerHTML),L.push(vt(t(e).css("width")))},r),pt(function(e,n){t.inArray(e,F)!==-1&&(e.style.width=L[n])},y),t(r).height(0),I&&(pt(O,o),pt(function(e){N.push(e.innerHTML),P.push(vt(t(e).css("width")))},o),pt(function(t,e){t.style.width=P[e]},n),t(o).height(0)),pt(function(t,e){t.innerHTML='<div class="dataTables_sizing">'+j[e]+"</div>",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=L[e]},r),I&&pt(function(t,e){t.innerHTML='<div class="dataTables_sizing">'+N[e]+"</div>",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=P[e]},o),T.outerWidth()<f?(n=b.scrollHeight>b.offsetHeight||"scroll"==v.css("overflow-y")?f+l:f,A&&(b.scrollHeight>b.offsetHeight||"scroll"==v.css("overflow-y"))&&(w.width=vt(n-l)),(""===u||""!==c)&&Ft(e,1,"Possible column misalignment",6)):n="100%",D.width=vt(n),g.width=vt(n),I&&(e.nScrollFoot.style.width=vt(n)),!d&&A&&(D.height=vt(x.offsetHeight+l)),u=T.outerWidth(),S[0].style.width=vt(u),m.width=vt(u),c=T.height()>b.clientHeight||"scroll"==v.css("overflow-y"),d="padding"+(R.bScrollbarLeft?"Left":"Right"),m[d]=c?l+"px":"0px",I&&(C[0].style.width=vt(u),_[0].style.width=vt(u),_[0].style[d]=c?l+"px":"0px"),T.children("colgroup").insertBefore(T.children("thead")),v.scroll(),!e.bSorted&&!e.bFiltered||e._drawHold||(b.scrollTop=0))}function pt(t,e,n){for(var a,r,o=0,i=0,s=e.length;i<s;){for(a=e[i].firstChild,r=n?n[i].firstChild:null;a;)1===a.nodeType&&(n?t(a,r,o):t(a,o),o++),a=a.nextSibling,r=n?r.nextSibling:null;i++}}function gt(n){var a,r,o=n.nTable,i=n.aoColumns,s=n.oScroll,l=s.sY,u=s.sX,c=s.sXInner,d=i.length,f=m(n,"bVisible"),g=t("th",n.nTHead),S=o.getAttribute("width"),v=o.parentNode,D=!1,_=n.oBrowser,s=_.bScrollOversize;for((a=o.style.width)&&-1!==a.indexOf("%")&&(S=a),a=0;a<f.length;a++)r=i[f[a]],null!==r.sWidth&&(r.sWidth=bt(r.sWidthOrig,v),D=!0);if(s||!D&&!u&&!l&&d==b(n)&&d==g.length)for(a=0;a<d;a++)null!==(f=p(n,a))&&(i[f].sWidth=vt(g.eq(a).width()));else{d=t(o).clone().css("visibility","hidden").removeAttr("id"),d.find("tbody tr").remove();var C=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",""),g=W(n,d.find("thead")[0]),a=0;a<f.length;a++)r=i[f[a]],g[a].style.width=null!==r.sWidthOrig&&""!==r.sWidthOrig?vt(r.sWidthOrig):"",r.sWidthOrig&&u&&t(g[a]).append(t("<div/>").css({width:r.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(n.aoData.length)for(a=0;a<f.length;a++)D=f[a],r=i[D],t(mt(n,D)).clone(!1).append(r.sContentPadding).appendTo(C);for(t("[name]",d).removeAttr("name"),r=t("<div/>").css(u||l?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(d).appendTo(v),u&&c?d.width(c):u?(d.css("width","auto"),d.removeAttr("width"),d.width()<v.clientWidth&&S&&d.width(v.clientWidth)):l?d.width(v.clientWidth):S&&d.width(S),a=l=0;a<f.length;a++)v=t(g[a]),c=v.outerWidth()-v.width(),v=_.bBounding?Math.ceil(g[a].getBoundingClientRect().width):v.outerWidth(),l+=v,i[f[a]].sWidth=vt(v-c);o.style.width=vt(l),r.remove()}S&&(o.style.width=vt(S)),!S&&!u||n._reszEvt||(o=function(){t(e).on("resize.DT-"+n.sInstance,be(function(){h(n)}))},s?setTimeout(o,1e3):o(),n._reszEvt=!0)}function bt(e,a){if(!e)return 0;var r=t("<div/>").css("width",vt(e)).appendTo(a||n.body),o=r[0].offsetWidth;return r.remove(),o}function mt(e,n){var a=St(e,n);if(0>a)return null;var r=e.aoData[a];return r.nTr?r.anCells[n]:t("<td/>").html(C(e,a,n,"display"))[0]}function St(t,e){for(var n,a=-1,r=-1,o=0,i=t.aoData.length;o<i;o++)n=C(t,o,e,"display")+"",n=n.replace(ge,""),n=n.replace(/&nbsp;/g," "),n.length>a&&(a=n.length,r=o);return r}function vt(t){return null===t?"0px":"number"==typeof t?0>t?"0px":t+"px":t.match(/\d$/)?t+"px":t}function Dt(e){var n,r,o,i,s,l,u=[],c=e.aoColumns;n=e.aaSortingFixed,r=t.isPlainObject(n);var d=[];for(o=function(e){e.length&&!t.isArray(e[0])?d.push(e):t.merge(d,e)},t.isArray(n)&&o(n),r&&n.pre&&o(n.pre),o(e.aaSorting),r&&n.post&&o(n.post),e=0;e<d.length;e++)for(l=d[e][0],o=c[l].aDataSort,n=0,r=o.length;n<r;n++)i=o[n],s=c[i].sType||"string",d[e]._idx===a&&(d[e]._idx=t.inArray(d[e][1],c[i].asSorting)),u.push({src:l,col:i,dir:d[e][1],index:d[e]._idx,type:s,formatter:qt.ext.type.order[s+"-pre"]});return u}function _t(t){var e,n,a,r,o=[],i=qt.ext.type.order,s=t.aoData,l=0,u=t.aiDisplayMaster;for(S(t),r=Dt(t),e=0,n=r.length;e<n;e++)a=r[e],a.formatter&&l++,wt(t,a.col);if("ssp"!=Mt(t)&&0!==r.length){for(e=0,n=u.length;e<n;e++)o[u[e]]=e;l===r.length?u.sort(function(t,e){var n,a,i,l,u=r.length,c=s[t]._aSortData,d=s[e]._aSortData;for(i=0;i<u;i++)if(l=r[i],n=c[l.col],a=d[l.col],0!==(n=n<a?-1:n>a?1:0))return"asc"===l.dir?n:-n;return n=o[t],a=o[e],n<a?-1:n>a?1:0}):u.sort(function(t,e){var n,a,l,u,c=r.length,d=s[t]._aSortData,f=s[e]._aSortData;for(l=0;l<c;l++)if(u=r[l],n=d[u.col],a=f[u.col],
u=i[u.type+"-"+u.dir]||i["string-"+u.dir],0!==(n=u(n,a)))return n;return n=o[t],a=o[e],n<a?-1:n>a?1:0})}t.bSorted=!0}function Ct(t){for(var e,n,a=t.aoColumns,r=Dt(t),t=t.oLanguage.oAria,o=0,i=a.length;o<i;o++){n=a[o];var s=n.asSorting;e=n.sTitle.replace(/<.*?>/g,"");var l=n.nTh;l.removeAttribute("aria-sort"),n.bSortable&&(0<r.length&&r[0].col==o?(l.setAttribute("aria-sort","asc"==r[0].dir?"ascending":"descending"),n=s[r[0].index+1]||s[0]):n=s[0],e+="asc"===n?t.sSortAscending:t.sSortDescending),l.setAttribute("aria-label",e)}}function yt(e,n,r,o){var i=e.aaSorting,s=e.aoColumns[n].asSorting,l=function(e,n){var r=e._idx;return r===a&&(r=t.inArray(e[1],s)),r+1<s.length?r+1:n?null:0};"number"==typeof i[0]&&(i=e.aaSorting=[i]),r&&e.oFeatures.bSortMulti?(r=t.inArray(n,re(i,"0")),-1!==r?(n=l(i[r],!0),null===n&&1===i.length&&(n=0),null===n?i.splice(r,1):(i[r][1]=s[n],i[r]._idx=n)):(i.push([n,s[0],0]),i[i.length-1]._idx=0)):i.length&&i[0][0]==n?(n=l(i[0]),i.length=1,i[0][1]=s[n],i[0]._idx=n):(i.length=0,i.push([n,s[0]]),i[0]._idx=0),H(e),"function"==typeof o&&o(e)}function Tt(t,e,n,a){var r=t.aoColumns[n];jt(e,{},function(e){!1!==r.bSortable&&(t.oFeatures.bProcessing?(dt(t,!0),setTimeout(function(){yt(t,n,e.shiftKey,a),"ssp"!==Mt(t)&&dt(t,!1)},0)):yt(t,n,e.shiftKey,a))})}function xt(e){var n,a,r=e.aLastSort,o=e.oClasses.sSortColumn,i=Dt(e),s=e.oFeatures;if(s.bSort&&s.bSortClasses){for(s=0,n=r.length;s<n;s++)a=r[s].src,t(re(e.aoData,"anCells",a)).removeClass(o+(2>s?s+1:3));for(s=0,n=i.length;s<n;s++)a=i[s].src,t(re(e.aoData,"anCells",a)).addClass(o+(2>s?s+1:3))}e.aLastSort=i}function wt(t,e){var n,a=t.aoColumns[e],r=qt.ext.order[a.sSortDataType];r&&(n=r.call(t.oInstance,t,e,g(t,e)));for(var o,i=qt.ext.type.order[a.sType+"-pre"],s=0,l=t.aoData.length;s<l;s++)a=t.aoData[s],a._aSortData||(a._aSortData=[]),(!a._aSortData[e]||r)&&(o=r?n[s]:C(t,s,e,"sort"),a._aSortData[e]=i?i(o):o)}function It(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:K(e.oPreviousSearch),columns:t.map(e.aoColumns,function(t,n){return{visible:t.bVisible,search:K(e.aoPreSearchCols[n])}})};Ot(e,"aoStateSaveParams","stateSaveParams",[e,n]),e.oSavedState=n,e.fnStateSaveCallback.call(e.oInstance,e,n)}}function Rt(e,n,r){var o,i,s=e.aoColumns,n=function(n){if(n&&n.time){var l=Ot(e,"aoStateLoadParams","stateLoadParams",[e,n]);if(-1===t.inArray(!1,l)&&!(0<(l=e.iStateDuration)&&n.time<+new Date-1e3*l||n.columns&&s.length!==n.columns.length)){if(e.oLoadedState=t.extend(!0,{},n),n.start!==a&&(e._iDisplayStart=n.start,e.iInitDisplayStart=n.start),n.length!==a&&(e._iDisplayLength=n.length),n.order!==a&&(e.aaSorting=[],t.each(n.order,function(t,n){e.aaSorting.push(n[0]>=s.length?[0,n[1]]:n)})),n.search!==a&&t.extend(e.oPreviousSearch,tt(n.search)),n.columns)for(o=0,i=n.columns.length;o<i;o++)l=n.columns[o],l.visible!==a&&(s[o].bVisible=l.visible),l.search!==a&&t.extend(e.aoPreSearchCols[o],tt(l.search));Ot(e,"aoStateLoaded","stateLoaded",[e,n])}}r()};if(e.oFeatures.bStateSave){var l=e.fnStateLoadCallback.call(e.oInstance,e,n);l!==a&&n(l)}else r()}function At(e){var n=qt.settings,e=t.inArray(e,re(n,"nTable"));return-1!==e?n[e]:null}function Ft(t,n,a,r){if(a="DataTables warning: "+(t?"table id="+t.sTableId+" - ":"")+a,r&&(a+=". For more information about this error, please see http://datatables.net/tn/"+r),n)e.console&&console.log&&console.log(a);else if(n=qt.ext,n=n.sErrMode||n.errMode,t&&Ot(t,null,"error",[t,r,a]),"alert"==n)alert(a);else{if("throw"==n)throw Error(a);"function"==typeof n&&n(t,r,a)}}function Lt(e,n,r,o){t.isArray(r)?t.each(r,function(a,r){t.isArray(r)?Lt(e,n,r[0],r[1]):Lt(e,n,r)}):(o===a&&(o=r),n[r]!==a&&(e[o]=n[r]))}function Pt(e,n,a){var r,o;for(o in n)n.hasOwnProperty(o)&&(r=n[o],t.isPlainObject(r)?(t.isPlainObject(e[o])||(e[o]={}),t.extend(!0,e[o],r)):e[o]=a&&"data"!==o&&"aaData"!==o&&t.isArray(r)?r.slice():r);return e}function jt(e,n,a){t(e).on("click.DT",n,function(n){t(e).blur(),a(n)}).on("keypress.DT",n,function(t){13===t.which&&(t.preventDefault(),a(t))}).on("selectstart.DT",function(){return!1})}function Nt(t,e,n,a){n&&t[e].push({fn:n,sName:a})}function Ot(e,n,a,r){var o=[];return n&&(o=t.map(e[n].slice().reverse(),function(t){return t.fn.apply(e.oInstance,r)})),null!==a&&(n=t.Event(a+".dt"),t(e.nTable).trigger(n,r),o.push(n.result)),o}function kt(t){var e=t._iDisplayStart,n=t.fnDisplayEnd(),a=t._iDisplayLength;e>=n&&(e=n-a),e-=e%a,(-1===a||0>e)&&(e=0),t._iDisplayStart=e}function Ht(e,n){var a=e.renderer,r=qt.ext.renderer[n];return t.isPlainObject(a)&&a[n]?r[a[n]]||r._:"string"==typeof a?r[a]||r._:r._}function Mt(t){return t.oFeatures.bServerSide?"ssp":t.ajax||t.sAjaxSource?"ajax":"dom"}function Et(t,e){var n=[],n=Re.numbers_length,a=Math.floor(n/2);return e<=n?n=ie(0,e):t<=a?(n=ie(0,n-2),n.push("ellipsis"),n.push(e-1)):(t>=e-1-a?n=ie(e-(n-2),e):(n=ie(t-a+2,t+a-1),n.push("ellipsis"),n.push(e-1)),n.splice(0,0,"ellipsis"),n.splice(0,0,0)),n.DT_el="span",n}function Wt(e){t.each({num:function(t){return Ae(t,e)},"num-fmt":function(t){return Ae(t,e,Qt)},"html-num":function(t){return Ae(t,e,$t)},"html-num-fmt":function(t){return Ae(t,e,$t,Qt)}},function(t,n){Ut.type.order[t+e+"-pre"]=n,t.match(/^html\-/)&&(Ut.type.search[t+e]=Ut.type.search.html)})}function Bt(t){return function(){var e=[At(this[qt.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return qt.ext.internal[t].apply(this,e)}}var Ut,Xt,Vt,Jt,qt=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 Xt(t?At(this[Ut.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===a||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===a||t?e.draw(!1):(""!==r.sX||""!==r.sY)&&ht(n)},this.fnClearTable=function(t){var e=this.api(!0).clear();(t===a||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),t=r.rows(t),o=t.settings()[0],i=o.aoData[t[0][0]];return t.remove(),e&&e.call(this,o,i),(n===a||n)&&r.draw(),i},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,i){o=this.api(!0),null===e||e===a?o.search(t,n,r,i):o.column(e).search(t,n,r,i),o.draw()},this.fnGetData=function(t,e){var n=this.api(!0);if(t!==a){var r=t.nodeName?t.nodeName.toLowerCase():"";return e!==a||"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!==a?e.row(t).node():e.rows().nodes().flatten().toArray()},this.fnGetPosition=function(t){var e=this.api(!0),n=t.nodeName.toUpperCase();return"TR"==n?e.row(t).index():"TD"==n||"TH"==n?(t=e.cell(t).index(),[t.row,t.columnVisible,t.column]):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===a||e)&&n.draw(!1)},this.fnSetColumnVis=function(t,e,n){t=this.api(!0).column(t).visible(e),(n===a||n)&&t.columns.adjust().draw()},this.fnSettings=function(){return At(this[Ut.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 i=this.api(!0);return n===a||null===n?i.row(e).data(t):i.cell(e,n).data(t),(o===a||o)&&i.columns.adjust(),(r===a||r)&&i.draw(),0},this.fnVersionCheck=Ut.fnVersionCheck;var n=this,r=e===a,c=this.length;r&&(e={}),this.oApi=this.internal=Ut.internal;for(var h in qt.ext.internal)h&&(this[h]=Bt(h));return this.each(function(){var h,p={},g=1<c?Pt(p,e,!0):e,b=0,p=this.getAttribute("id"),m=!1,S=qt.defaults,C=t(this);if("table"!=this.nodeName.toLowerCase())Ft(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{s(S),l(S.column),o(S,S,!0),o(S.column,S.column,!0),o(S,t.extend(g,C.data()));var y=qt.settings,b=0;for(h=y.length;b<h;b++){var T=y[b];if(T.nTable==this||T.nTHead&&T.nTHead.parentNode==this||T.nTFoot&&T.nTFoot.parentNode==this){var w=g.bRetrieve!==a?g.bRetrieve:S.bRetrieve;if(r||w)return T.oInstance;if(g.bDestroy!==a?g.bDestroy:S.bDestroy){T.oInstance.fnDestroy();break}return void Ft(T,0,"Cannot reinitialise DataTable",3)}if(T.sTableId==this.id){y.splice(b,1);break}}null!==p&&""!==p||(this.id=p="DataTables_Table_"+qt.ext._unique++);var I=t.extend(!0,{},qt.models.oSettings,{sDestroyWidth:C[0].style.width,sInstance:p,sTableId:p});I.nTable=this,I.oApi=n.internal,I.oInit=g,y.push(I),I.oInstance=1===n.length?n:C.dataTable(),s(g),i(g.oLanguage),g.aLengthMenu&&!g.iDisplayLength&&(g.iDisplayLength=t.isArray(g.aLengthMenu[0])?g.aLengthMenu[0][0]:g.aLengthMenu[0]),g=Pt(t.extend(!0,{},S),g),Lt(I.oFeatures,g,"bPaginate bLengthChange bFilter bSort bSortMulti bInfo bProcessing bAutoWidth bSortClasses bServerSide bDeferRender".split(" ")),Lt(I,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"]]),Lt(I.oScroll,g,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),Lt(I.oLanguage,g,"fnInfoCallback"),Nt(I,"aoDrawCallback",g.fnDrawCallback,"user"),Nt(I,"aoServerParams",g.fnServerParams,"user"),Nt(I,"aoStateSaveParams",g.fnStateSaveParams,"user"),Nt(I,"aoStateLoadParams",g.fnStateLoadParams,"user"),Nt(I,"aoStateLoaded",g.fnStateLoaded,"user"),Nt(I,"aoRowCallback",g.fnRowCallback,"user"),Nt(I,"aoRowCreatedCallback",g.fnCreatedRow,"user"),Nt(I,"aoHeaderCallback",g.fnHeaderCallback,"user"),Nt(I,"aoFooterCallback",g.fnFooterCallback,"user"),Nt(I,"aoInitComplete",g.fnInitComplete,"user"),Nt(I,"aoPreDrawCallback",g.fnPreDrawCallback,"user"),I.rowIdFn=x(g.rowId),u(I);var R=I.oClasses;t.extend(R,qt.ext.classes,g.oClasses),C.addClass(R.sTable),I.iInitDisplayStart===a&&(I.iInitDisplayStart=g.iDisplayStart,I._iDisplayStart=g.iDisplayStart),null!==g.iDeferLoading&&(I.bDeferLoading=!0,p=t.isArray(g.iDeferLoading),I._iRecordsDisplay=p?g.iDeferLoading[0]:g.iDeferLoading,I._iRecordsTotal=p?g.iDeferLoading[1]:g.iDeferLoading);var A=I.oLanguage;t.extend(!0,A,g.oLanguage),A.sUrl&&(t.ajax({dataType:"json",url:A.sUrl,success:function(e){i(e),o(S.oLanguage,e),t.extend(!0,A,e),rt(I)},error:function(){rt(I)}}),m=!0),null===g.asStripeClasses&&(I.asStripeClasses=[R.sStripeOdd,R.sStripeEven]);var p=I.asStripeClasses,F=C.children("tbody").find("tr").eq(0);if(-1!==t.inArray(!0,t.map(p,function(t){return F.hasClass(t)}))&&(t("tbody tr",this).removeClass(p.join(" ")),I.asDestroyStripes=p.slice()),p=[],y=this.getElementsByTagName("thead"),0!==y.length&&(E(I.aoHeader,y[0]),p=W(I)),null===g.aoColumns)for(y=[],b=0,h=p.length;b<h;b++)y.push(null);else y=g.aoColumns;for(b=0,h=y.length;b<h;b++)d(I,p?p[b]:null);if(v(I,g.aoColumnDefs,y,function(t,e){f(I,t,e)}),F.length){var L=function(t,e){return null!==t.getAttribute("data-"+e)?e:null};t(F[0]).children("th, td").each(function(t,e){var n=I.aoColumns[t];if(n.mData===t){var r=L(e,"sort")||L(e,"order"),o=L(e,"filter")||L(e,"search");null===r&&null===o||(n.mData={_:t+".display",sort:null!==r?t+".@data-"+r:a,type:null!==r?t+".@data-"+r:a,filter:null!==o?t+".@data-"+o:a},f(I,t))}})}var P=I.oFeatures,p=function(){if(g.aaSorting===a){var e=I.aaSorting;for(b=0,h=e.length;b<h;b++)e[b][1]=I.aoColumns[b].asSorting[0]}xt(I),P.bSort&&Nt(I,"aoDrawCallback",function(){if(I.bSorted){var e=Dt(I),n={};t.each(e,function(t,e){n[e.src]=e.dir}),Ot(I,null,"order",[I,e,n]),Ct(I)}}),Nt(I,"aoDrawCallback",function(){(I.bSorted||"ssp"===Mt(I)||P.bDeferRender)&&xt(I)},"sc");var e=C.children("caption").each(function(){this._captionSide=t(this).css("caption-side")}),n=C.children("thead");if(0===n.length&&(n=t("<thead/>").appendTo(C)),I.nTHead=n[0],n=C.children("tbody"),0===n.length&&(n=t("<tbody/>").appendTo(C)),I.nTBody=n[0],n=C.children("tfoot"),0===n.length&&e.length>0&&(""!==I.oScroll.sX||""!==I.oScroll.sY)&&(n=t("<tfoot/>").appendTo(C)),0===n.length||0===n.children().length?C.addClass(R.sNoFooter):n.length>0&&(I.nTFoot=n[0],E(I.aoFooter,I.nTFoot)),g.aaData)for(b=0;b<g.aaData.length;b++)D(I,g.aaData[b]);else(I.bDeferLoading||"dom"==Mt(I))&&_(I,t(I.nTBody).children("tr"));I.aiDisplay=I.aiDisplayMaster.slice(),I.bInitialised=!0,m===!1&&rt(I)};g.bStateSave?(P.bStateSave=!0,Nt(I,"aoDrawCallback",It,"state_save"),Rt(I,g,p)):p()}}),n=null,this},Yt={},Gt=/[\r\n]/g,$t=/<.*?>/g,zt=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,Zt=RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^|\\-)","g"),Qt=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,Kt=function(t){return!t||!0===t||"-"===t},te=function(t){var e=parseInt(t,10);return!isNaN(e)&&isFinite(t)?e:null},ee=function(t,e){return Yt[e]||(Yt[e]=RegExp(fe(e),"g")),"string"==typeof t&&"."!==e?t.replace(/\./g,"").replace(Yt[e],"."):t},ne=function(t,e,n){var a="string"==typeof t;return!!Kt(t)||(e&&a&&(t=ee(t,e)),n&&a&&(t=t.replace(Qt,"")),!isNaN(parseFloat(t))&&isFinite(t))},ae=function(t,e,n){return!!Kt(t)||(Kt(t)||"string"==typeof t?!!ne(t.replace($t,""),e,n)||null:null)},re=function(t,e,n){var r=[],o=0,i=t.length;if(n!==a)for(;o<i;o++)t[o]&&t[o][e]&&r.push(t[o][e][n]);else for(;o<i;o++)t[o]&&r.push(t[o][e]);return r},oe=function(t,e,n,r){var o=[],i=0,s=e.length;if(r!==a)for(;i<s;i++)t[e[i]][n]&&o.push(t[e[i]][n][r]);else for(;i<s;i++)o.push(t[e[i]][n]);return o},ie=function(t,e){var n,r=[];e===a?(e=0,n=t):(n=e,e=t);for(var o=e;o<n;o++)r.push(o);return r},se=function(t){for(var e=[],n=0,a=t.length;n<a;n++)t[n]&&e.push(t[n]);return e},le=function(t){var e;t:{if(!(2>t.length)){e=t.slice().sort();for(var n=e[0],a=1,r=e.length;a<r;a++){if(e[a]===n){e=!1;break t}n=e[a]}}e=!0}if(e)return t.slice();e=[];var o,r=t.length,i=0,a=0;t:for(;a<r;a++){for(n=t[a],o=0;o<i;o++)if(e[o]===n)continue t;e.push(n),i++}return e};qt.util={throttle:function(t,e){var n,r,o=e!==a?e:200;return function(){var e=this,i=+new Date,s=arguments;n&&i<n+o?(clearTimeout(r),r=setTimeout(function(){n=a,t.apply(e,s)},o)):(n=i,t.apply(e,s))}},escapeRegex:function(t){return t.replace(Zt,"\\$1")}};var ue=function(t,e,n){t[e]!==a&&(t[n]=t[e])},ce=/\[.*?\]$/,de=/\(\)$/,fe=qt.util.escapeRegex,he=t("<div>")[0],pe=he.textContent!==a,ge=/<.*?>/g,be=qt.util.throttle,me=[],Se=Array.prototype,ve=function(e){var n,a,r=qt.settings,o=t.map(r,function(t){return t.nTable});return e?e.nTable&&e.oApi?[e]:e.nodeName&&"table"===e.nodeName.toLowerCase()?(n=t.inArray(e,o),-1!==n?[r[n]]:null):e&&"function"==typeof e.settings?e.settings().toArray():("string"==typeof e?a=t(e):e instanceof t&&(a=e),a?a.map(function(){return n=t.inArray(this,o),-1!==n?r[n]:null}).toArray():void 0):[]};Xt=function(e,n){if(!(this instanceof Xt))return new Xt(e,n);var a=[],r=function(t){(t=ve(t))&&(a=a.concat(t))};if(t.isArray(e))for(var o=0,i=e.length;o<i;o++)r(e[o]);else r(e);this.context=le(a),n&&t.merge(this,n),this.selector={rows:null,cols:null,opts:null},Xt.extend(this,this,me)},qt.Api=Xt,t.extend(Xt.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 Xt(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,a=this.length;n<a;n++)t.call(this,this[n],n,this)&&e.push(this[n]);return new Xt(this.context,e)},flatten:function(){var t=[];return new Xt(this.context,t.concat.apply(t,this.toArray()))},join:Se.join,indexOf:Se.indexOf||function(t,e){for(var n=e||0,a=this.length;n<a;n++)if(this[n]===t)return n;return-1},iterator:function(t,e,n,r){var o,i,s,l,u,c,d,f=[],h=this.context,p=this.selector;for("string"==typeof t&&(r=n,n=e,e=t,t=!1),i=0,s=h.length;i<s;i++){var g=new Xt(h[i]);if("table"===e)(o=n.call(g,h[i],i))!==a&&f.push(o);else if("columns"===e||"rows"===e)(o=n.call(g,h[i],this[i],i))!==a&&f.push(o);else if("column"===e||"column-rows"===e||"row"===e||"cell"===e)for(d=this[i],"column-rows"===e&&(c=Te(h[i],p.opts)),l=0,u=d.length;l<u;l++)o=d[l],(o="cell"===e?n.call(g,h[i],o.row,o.column,i,l):n.call(g,h[i],o,i,l,c))!==a&&f.push(o)}return f.length||r?(t=new Xt(h,t?f.concat.apply([],f):f),e=t.selector,e.rows=p.rows,e.cols=p.cols,e.opts=p.opts,t):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,a=this.length;n<a;n++)e.push(t.call(this,this[n],n));return new Xt(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 c(this,t,e,0,this.length,1)},reduceRight:Se.reduceRight||function(t,e){return c(this,t,e,this.length-1,-1,-1)},reverse:Se.reverse,selector:null,shift:Se.shift,slice:function(){return new Xt(this.context,this)},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 Xt(this.context,le(this))},unshift:Se.unshift}),Xt.extend=function(e,n,a){if(a.length&&n&&(n instanceof Xt||n.__dt_wrapper)){var r,o,i;for(r=0,o=a.length;r<o;r++)i=a[r],n[i.name]="function"==typeof i.val?function(t,e,n){return function(){var a=e.apply(t,arguments);return Xt.extend(a,a,n.methodExt),a}}(e,i.val,i):t.isPlainObject(i.val)?{}:i.val,n[i.name].__dt_wrapper=!0,Xt.extend(e,n[i.name],i.propExt)}},Xt.register=Vt=function(e,n){if(t.isArray(e))for(var a=0,r=e.length;a<r;a++)Xt.register(e[a],n);else for(var o,i,s=e.split("."),l=me,a=0,r=s.length;a<r;a++){o=(i=-1!==s[a].indexOf("()"))?s[a].replace("()",""):s[a];var u;t:{u=0;for(var c=l.length;u<c;u++)if(l[u].name===o){u=l[u];break t}u=null}u||(u={name:o,val:{},methodExt:[],propExt:[]},l.push(u)),a===r-1?u.val=n:l=i?u.methodExt:u.propExt}},Xt.registerPlural=Jt=function(e,n,r){Xt.register(e,r),Xt.register(n,function(){var e=r.apply(this,arguments);return e===this?this:e instanceof Xt?e.length?t.isArray(e[0])?new Xt(e.context,e[0]):e[0]:a:e})},Vt("tables()",function(e){var n;if(e){n=Xt;var a=this.context;if("number"==typeof e)e=[a[e]];else var r=t.map(a,function(t){return t.nTable}),e=t(r).filter(e).map(function(){return a[t.inArray(this,r)]}).toArray();n=new n(e)}else n=this;return n}),Vt("table()",function(t){var t=this.tables(t),e=t.context;return e.length?new Xt(e[0]):t}),Jt("tables().nodes()","table().node()",function(){return this.iterator("table",function(t){return t.nTable},1)}),Jt("tables().body()","table().body()",function(){return this.iterator("table",function(t){return t.nTBody},1)}),Jt("tables().header()","table().header()",function(){return this.iterator("table",function(t){return t.nTHead},1)}),Jt("tables().footer()","table().footer()",function(){return this.iterator("table",function(t){return t.nTFoot},1)}),Jt("tables().containers()","table().container()",function(){return this.iterator("table",function(t){return t.nTableWrapper},1)}),Vt("draw()",function(t){return this.iterator("table",function(e){"page"===t?k(e):("string"==typeof t&&(t="full-hold"!==t),H(e,!1===t))})}),Vt("page()",function(t){return t===a?this.page.info().page:this.iterator("table",function(e){ut(e,t)})}),Vt("page.info()",function(){if(0===this.context.length)return a;var t=this.context[0],e=t._iDisplayStart,n=t.oFeatures.bPaginate?t._iDisplayLength:-1,r=t.fnRecordsDisplay(),o=-1===n;return{page:o?0:Math.floor(e/n),pages:o?1:Math.ceil(r/n),start:e,end:t.fnDisplayEnd(),length:n,recordsTotal:t.fnRecordsTotal(),recordsDisplay:r,serverSide:"ssp"===Mt(t)}}),Vt("page.len()",function(t){return t===a?0!==this.context.length?this.context[0]._iDisplayLength:a:this.iterator("table",function(e){it(e,t)})});var De=function(t,e,n){if(n){var a=new Xt(t);a.one("draw",function(){n(a.ajax.json())})}if("ssp"==Mt(t))H(t,e);else{dt(t,!0);var r=t.jqXHR;r&&4!==r.readyState&&r.abort(),B(t,[],function(n){R(t);for(var n=J(t,n),a=0,r=n.length;a<r;a++)D(t,n[a]);H(t,e),dt(t,!1)})}};Vt("ajax.json()",function(){var t=this.context;if(0<t.length)return t[0].json}),Vt("ajax.params()",function(){var t=this.context;if(0<t.length)return t[0].oAjaxData}),Vt("ajax.reload()",function(t,e){return this.iterator("table",function(n){De(n,!1===e,t)})}),Vt("ajax.url()",function(e){var n=this.context;return e===a?0===n.length?a:(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})}),Vt("ajax.url().load()",function(t,e){return this.iterator("table",function(n){De(n,!1===e,t)})});var _e=function(e,n,r,o,i){var s,l,u,c,d,f,h=[];for(u=typeof n,n&&"string"!==u&&"function"!==u&&n.length!==a||(n=[n]),u=0,c=n.length;u<c;u++)for(l=n[u]&&n[u].split&&!n[u].match(/[\[\(:]/)?n[u].split(","):[n[u]],d=0,f=l.length;d<f;d++)(s=r("string"==typeof l[d]?t.trim(l[d]):l[d]))&&s.length&&(h=h.concat(s));if(e=Ut.selector[e],e.length)for(u=0,c=e.length;u<c;u++)h=e[u](o,i,h);return le(h)},Ce=function(e){return e||(e={}),e.filter&&e.search===a&&(e.search=e.filter),t.extend({search:"none",order:"current",page:"all"},e)},ye=function(t){for(var e=0,n=t.length;e<n;e++)if(0<t[e].length)return t[0]=t[e],t[0].length=1,t.length=1,t.context=[t.context[e]],t;return t.length=0,t},Te=function(e,n){var a,r,o,i=[],s=e.aiDisplay;o=e.aiDisplayMaster;var l=n.search;if(a=n.order,r=n.page,"ssp"==Mt(e))return"removed"===l?[]:ie(0,o.length);if("current"==r)for(a=e._iDisplayStart,r=e.fnDisplayEnd();a<r;a++)i.push(s[a]);else if("current"==a||"applied"==a){if("none"==l)i=o.slice();else if("applied"==l)i=s.slice();else if("removed"==l){var u={};for(a=0,r=s.length;a<r;a++)u[s[a]]=null;i=t.map(o,function(t){return u.hasOwnProperty(t)?null:t})}}else if("index"==a||"original"==a)for(a=0,r=e.aoData.length;a<r;a++)"none"==l?i.push(a):(-1===(o=t.inArray(a,s))&&"removed"==l||0<=o&&"applied"==l)&&i.push(a);return i};Vt("rows()",function(e,n){e===a?e="":t.isPlainObject(e)&&(n=e,e="");var n=Ce(n),r=this.iterator("table",function(r){var o,i=n;return _e("row",e,function(e){var n=te(e),s=r.aoData;if(null!==n&&!i)return[n];if(o||(o=Te(r,i)),null!==n&&t.inArray(n,o)!==-1)return[n];if(null===e||e===a||""===e)return o;if("function"==typeof e)return t.map(o,function(t){var n=s[t];return e(t,n._aData,n.nTr)?t:null});if(e.nodeName){var n=e._DT_RowIndex,l=e._DT_CellIndex;return n!==a?s[n]&&s[n].nTr===e?[n]:[]:l?s[l.row]&&s[l.row].nTr===e?[l.row]:[]:(n=t(e).closest("*[data-dt-row]"),n.length?[n.data("dt-row")]:[])}return"string"==typeof e&&"#"===e.charAt(0)&&(n=r.aIds[e.replace(/^#/,"")])!==a?[n.idx]:(n=se(oe(r.aoData,o,"nTr")),t(n).filter(e).map(function(){return this._DT_RowIndex}).toArray())},r,i)},1);return r.selector.rows=e,r.selector.opts=n,r}),Vt("rows().nodes()",function(){return this.iterator("row",function(t,e){return t.aoData[e].nTr||a},1)}),Vt("rows().data()",function(){return this.iterator(!0,"rows",function(t,e){return oe(t.aoData,e,"_aData")},1)}),Jt("rows().cache()","row().cache()",function(t){return this.iterator("row",function(e,n){var a=e.aoData[n];return"search"===t?a._aFilterData:a._aSortData},1)}),Jt("rows().invalidate()","row().invalidate()",function(t){return this.iterator("row",function(e,n){F(e,n,t)})}),Jt("rows().indexes()","row().index()",function(){return this.iterator("row",function(t,e){return e},1)}),Jt("rows().ids()","row().id()",function(t){for(var e=[],n=this.context,a=0,r=n.length;a<r;a++)for(var o=0,i=this[a].length;o<i;o++){var s=n[a].rowIdFn(n[a].aoData[this[a][o]]._aData);e.push((!0===t?"#":"")+s)}return new Xt(n,e)}),Jt("rows().remove()","row().remove()",function(){var t=this;return this.iterator("row",function(e,n,r){var o,i,s,l,u,c=e.aoData,d=c[n];for(c.splice(n,1),o=0,i=c.length;o<i;o++)if(s=c[o],u=s.anCells,null!==s.nTr&&(s.nTr._DT_RowIndex=o),null!==u)for(s=0,l=u.length;s<l;s++)u[s]._DT_CellIndex.row=o;A(e.aiDisplayMaster,n),A(e.aiDisplay,n),A(t[r],n,!1),0<e._iRecordsDisplay&&e._iRecordsDisplay--,kt(e),(n=e.rowIdFn(d._aData))!==a&&delete e.aIds[n]}),this.iterator("table",function(t){for(var e=0,n=t.aoData.length;e<n;e++)t.aoData[e].idx=e}),this}),Vt("rows.add()",function(e){var n=this.iterator("table",function(t){var n,a,r,o=[];for(a=0,r=e.length;a<r;a++)n=e[a],n.nodeName&&"TR"===n.nodeName.toUpperCase()?o.push(_(t,n)[0]):o.push(D(t,n));return o},1),a=this.rows(-1);return a.pop(),t.merge(a,n),a}),Vt("row()",function(t,e){return ye(this.rows(t,e))}),Vt("row().data()",function(e){var n=this.context;if(e===a)return n.length&&this.length?n[0].aoData[this[0]]._aData:a;var r=n[0].aoData[this[0]];return r._aData=e,t.isArray(e)&&r.nTr.id&&w(n[0].rowId)(e,r.nTr.id),F(n[0],this[0],"data"),this}),Vt("row().node()",function(){var t=this.context;return t.length&&this.length?t[0].aoData[this[0]].nTr||null:null}),Vt("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()?_(t,e)[0]:D(t,e)});return this.row(n[0])});var xe=function(t,e){var n=t.context;n.length&&(n=n[0].aoData[e!==a?e:t[0]])&&n._details&&(n._details.remove(),n._detailsShow=a,n._details=a)},we=function(t,e){var n=t.context;if(n.length&&t.length){var a=n[0].aoData[t[0]];if(a._details){(a._detailsShow=e)?a._details.insertAfter(a.nTr):a._details.detach();var r=n[0],o=new Xt(r),i=r.aoData;o.off("draw.dt.DT_details column-visibility.dt.DT_details destroy.dt.DT_details"),0<re(i,"_details").length&&(o.on("draw.dt.DT_details",function(t,e){r===e&&o.rows({page:"current"}).eq(0).each(function(t){t=i[t],t._detailsShow&&t._details.insertAfter(t.nTr)})}),o.on("column-visibility.dt.DT_details",function(t,e){if(r===e)for(var n,a=b(e),o=0,s=i.length;o<s;o++)n=i[o],n._details&&n._details.children("td[colspan]").attr("colspan",a)}),o.on("destroy.dt.DT_details",function(t,e){if(r===e)for(var n=0,a=i.length;n<a;n++)i[n]._details&&xe(o,n)}))}}};Vt("row().child()",function(e,n){var r=this.context;if(e===a)return r.length&&this.length?r[0].aoData[this[0]]._details:a;if(!0===e)this.child.show();else if(!1===e)xe(this);else if(r.length&&this.length){var o=r[0],r=r[0].aoData[this[0]],i=[],s=function(e,n){if(t.isArray(e)||e instanceof t)for(var a=0,r=e.length;a<r;a++)s(e[a],n);else e.nodeName&&"tr"===e.nodeName.toLowerCase()?i.push(e):(a=t("<tr><td/></tr>").addClass(n),t("td",a).addClass(n).html(e)[0].colSpan=b(o),i.push(a[0]))};s(e,n),r._details&&r._details.detach(),r._details=t(i),r._detailsShow&&r._details.insertAfter(r.nTr)}return this}),Vt(["row().child.show()","row().child().show()"],function(){return we(this,!0),this}),Vt(["row().child.hide()","row().child().hide()"],function(){return we(this,!1),this}),Vt(["row().child.remove()","row().child().remove()"],function(){return xe(this),this}),Vt("row().child.isShown()",function(){var t=this.context;return!(!t.length||!this.length)&&(t[0].aoData[this[0]]._detailsShow||!1)});var Ie=function(t,e,n,a,r){for(var n=[],a=0,o=r.length;a<o;a++)n.push(C(t,r[a],e));return n};Vt("columns()",function(e,n){e===a?e="":t.isPlainObject(e)&&(n=e,e="");var n=Ce(n),r=this.iterator("table",function(a){var r=e,o=n,i=a.aoColumns,s=re(i,"sName"),l=re(i,"nTh");return _e("column",r,function(e){var n=te(e);if(""===e)return ie(i.length);if(null!==n)return[n>=0?n:i.length+n];if("function"==typeof e){var r=Te(a,o);return t.map(i,function(t,n){return e(n,Ie(a,n,0,0,r),l[n])?n:null})}var u="string"==typeof e?e.match(/^([^:]+):(name|visIdx|visible)$/):"";if(u)switch(u[2]){case"visIdx":case"visible":if((n=parseInt(u[1],10))<0){var c=t.map(i,function(t,e){return t.bVisible?e:null});return[c[c.length+n]]}return[p(a,n)];case"name":return t.map(s,function(t,e){return t===u[1]?e:null});default:return[]}return e.nodeName&&e._DT_CellIndex?[e._DT_CellIndex.column]:(n=t(l).filter(e).map(function(){return t.inArray(this,l)}).toArray(),n.length||!e.nodeName?n:(n=t(e).closest("*[data-dt-column]"),n.length?[n.data("dt-column")]:[]))},a,o)},1);return r.selector.cols=e,r.selector.opts=n,r}),Jt("columns().header()","column().header()",function(){return this.iterator("column",function(t,e){return t.aoColumns[e].nTh},1)}),Jt("columns().footer()","column().footer()",function(){return this.iterator("column",function(t,e){return t.aoColumns[e].nTf},1)}),Jt("columns().data()","column().data()",function(){return this.iterator("column-rows",Ie,1)}),Jt("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(t,e){return t.aoColumns[e].mData},1)}),Jt("columns().cache()","column().cache()",function(t){return this.iterator("column-rows",function(e,n,a,r,o){return oe(e.aoData,o,"search"===t?"_aFilterData":"_aSortData",n)},1)}),Jt("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(t,e,n,a,r){return oe(t.aoData,r,"anCells",e)},1)}),Jt("columns().visible()","column().visible()",function(e,n){var r=this.iterator("column",function(n,r){if(e===a)return n.aoColumns[r].bVisible;var o,i,s,l=n.aoColumns,u=l[r],c=n.aoData;if(e!==a&&u.bVisible!==e){if(e){var d=t.inArray(!0,re(l,"bVisible"),r+1);for(o=0,i=c.length;o<i;o++)s=c[o].nTr,l=c[o].anCells,s&&s.insertBefore(l[r],l[d]||null)}else t(re(n.aoData,"anCells",r)).detach();u.bVisible=e,O(n,n.aoHeader),O(n,n.aoFooter),n.aiDisplay.length||t(n.nTBody).find("td[colspan]").attr("colspan",b(n)),It(n)}});return e!==a&&(this.iterator("column",function(t,a){Ot(t,null,"column-visibility",[t,a,e,n])}),(n===a||n)&&this.columns.adjust()),r}),Jt("columns().indexes()","column().index()",function(t){return this.iterator("column",function(e,n){return"visible"===t?g(e,n):n},1)}),Vt("columns.adjust()",function(){return this.iterator("table",function(t){h(t)},1)}),Vt("column.index()",function(t,e){if(0!==this.context.length){var n=this.context[0];if("fromVisible"===t||"toData"===t)return p(n,e);if("fromData"===t||"toVisible"===t)return g(n,e)}}),Vt("column()",function(t,e){return ye(this.columns(t,e))}),Vt("cells()",function(e,n,r){if(t.isPlainObject(e)&&(e.row===a?(r=e,e=null):(r=n,n=null)),t.isPlainObject(n)&&(r=n,n=null),null===n||n===a)return this.iterator("table",function(n){var o,i,s,l,u,c,d,f=e,h=Ce(r),p=n.aoData,g=Te(n,h),b=se(oe(p,g,"anCells")),m=t([].concat.apply([],b)),S=n.aoColumns.length;return _e("cell",f,function(e){var r="function"==typeof e;if(null===e||e===a||r){for(i=[],s=0,l=g.length;s<l;s++)for(o=g[s],u=0;u<S;u++)c={row:o,column:u},r?(d=p[o],e(c,C(n,o,u),d.anCells?d.anCells[u]:null)&&i.push(c)):i.push(c);return i}return t.isPlainObject(e)?e.column!==a&&e.row!==a&&t.inArray(e.row,g)!==-1?[e]:[]:(r=m.filter(e).map(function(t,e){return{row:e._DT_CellIndex.row,column:e._DT_CellIndex.column}}).toArray(),r.length||!e.nodeName?r:(d=t(e).closest("*[data-dt-row]"),d.length?[{row:d.data("dt-row"),column:d.data("dt-column")}]:[]))},n,h)});var o,i,s,l,u,c=this.columns(n),d=this.rows(e);this.iterator("table",function(t,e){for(o=[],i=0,s=d[e].length;i<s;i++)for(l=0,u=c[e].length;l<u;l++)o.push({row:d[e][i],column:c[e][l]})},1);var f=this.cells(o,r);return t.extend(f.selector,{cols:n,rows:e,opts:r}),f}),Jt("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(t,e,n){return(t=t.aoData[e])&&t.anCells?t.anCells[n]:a},1)}),Vt("cells().data()",function(){return this.iterator("cell",function(t,e,n){return C(t,e,n)},1)}),Jt("cells().cache()","cell().cache()",function(t){return t="search"===t?"_aFilterData":"_aSortData",
this.iterator("cell",function(e,n,a){return e.aoData[n][t][a]},1)}),Jt("cells().render()","cell().render()",function(t){return this.iterator("cell",function(e,n,a){return C(e,n,a,t)},1)}),Jt("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(t,e,n){return{row:e,column:n,columnVisible:g(t,n)}},1)}),Jt("cells().invalidate()","cell().invalidate()",function(t){return this.iterator("cell",function(e,n,a){F(e,n,t,a)})}),Vt("cell()",function(t,e,n){return ye(this.cells(t,e,n))}),Vt("cell().data()",function(t){var e=this.context,n=this[0];return t===a?e.length&&n.length?C(e[0],n[0].row,n[0].column):a:(y(e[0],n[0].row,n[0].column,t),F(e[0],n[0].row,"data",n[0].column),this)}),Vt("order()",function(e,n){var r=this.context;return e===a?0!==r.length?r[0].aaSorting:a:("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()}))}),Vt("order.listener()",function(t,e,n){return this.iterator("table",function(a){Tt(a,t,e,n)})}),Vt("order.fixed()",function(e){if(!e){var n=this.context,n=n.length?n[0].aaSortingFixed:a;return t.isArray(n)?{pre:n}:n}return this.iterator("table",function(n){n.aaSortingFixed=t.extend(!0,{},e)})}),Vt(["columns().order()","column().order()"],function(e){var n=this;return this.iterator("table",function(a,r){var o=[];t.each(n[r],function(t,n){o.push([n,e])}),a.aaSorting=o})}),Vt("search()",function(e,n,r,o){var i=this.context;return e===a?0!==i.length?i[0].oPreviousSearch.sSearch:a:this.iterator("table",function(a){a.oFeatures.bFilter&&Y(a,t.extend({},a.oPreviousSearch,{sSearch:e+"",bRegex:null!==n&&n,bSmart:null===r||r,bCaseInsensitive:null===o||o}),1)})}),Jt("columns().search()","column().search()",function(e,n,r,o){return this.iterator("column",function(i,s){var l=i.aoPreSearchCols;if(e===a)return l[s].sSearch;i.oFeatures.bFilter&&(t.extend(l[s],{sSearch:e+"",bRegex:null!==n&&n,bSmart:null===r||r,bCaseInsensitive:null===o||o}),Y(i,i.oPreviousSearch,1))})}),Vt("state()",function(){return this.context.length?this.context[0].oSavedState:null}),Vt("state.clear()",function(){return this.iterator("table",function(t){t.fnStateSaveCallback.call(t.oInstance,t,{})})}),Vt("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null}),Vt("state.save()",function(){return this.iterator("table",function(t){It(t)})}),qt.versionCheck=qt.fnVersionCheck=function(t){for(var e,n,a=qt.version.split("."),t=t.split("."),r=0,o=t.length;r<o;r++)if(e=parseInt(a[r],10)||0,n=parseInt(t[r],10)||0,e!==n)return e>n;return!0},qt.isDataTable=qt.fnIsDataTable=function(e){var n=t(e).get(0),a=!1;return e instanceof qt.Api||(t.each(qt.settings,function(e,r){var o=r.nScrollHead?t("table",r.nScrollHead)[0]:null,i=r.nScrollFoot?t("table",r.nScrollFoot)[0]:null;r.nTable!==n&&o!==n&&i!==n||(a=!0)}),a)},qt.tables=qt.fnTables=function(e){var n=!1;t.isPlainObject(e)&&(n=e.api,e=e.visible);var a=t.map(qt.settings,function(n){if(!e||e&&t(n.nTable).is(":visible"))return n.nTable});return n?new Xt(a):a},qt.camelToHungarian=o,Vt("$()",function(e,n){var a=this.rows(n).nodes(),a=t(a);return t([].concat(a.filter(e).toArray(),a.find(e).toArray()))}),t.each(["on","one","off"],function(e,n){Vt(n+"()",function(){var e=Array.prototype.slice.call(arguments);e[0]=t.map(e[0].split(/\s/),function(t){return t.match(/\.dt\b/)?t:t+".dt"}).join(" ");var a=t(this.tables().nodes());return a[n].apply(a,e),this})}),Vt("clear()",function(){return this.iterator("table",function(t){R(t)})}),Vt("settings()",function(){return new Xt(this.context,this.context)}),Vt("init()",function(){var t=this.context;return t.length?t[0].oInit:null}),Vt("data()",function(){return this.iterator("table",function(t){return re(t.aoData,"_aData")}).flatten()}),Vt("destroy()",function(n){return n=n||!1,this.iterator("table",function(a){var r,o=a.nTableWrapper.parentNode,i=a.oClasses,s=a.nTable,l=a.nTBody,u=a.nTHead,c=a.nTFoot,d=t(s),l=t(l),f=t(a.nTableWrapper),h=t.map(a.aoData,function(t){return t.nTr});a.bDestroying=!0,Ot(a,"aoDestroyCallback","destroy",[a]),n||new Xt(a).columns().visible(!0),f.off(".DT").find(":not(tbody *)").off(".DT"),t(e).off(".DT-"+a.sInstance),s!=u.parentNode&&(d.children("thead").detach(),d.append(u)),c&&s!=c.parentNode&&(d.children("tfoot").detach(),d.append(c)),a.aaSorting=[],a.aaSortingFixed=[],xt(a),t(h).removeClass(a.asStripeClasses.join(" ")),t("th, td",u).removeClass(i.sSortable+" "+i.sSortableAsc+" "+i.sSortableDesc+" "+i.sSortableNone),l.children().detach(),l.append(h),u=n?"remove":"detach",d[u](),f[u](),!n&&o&&(o.insertBefore(s,a.nTableReinsertBefore),d.css("width",a.sDestroyWidth).removeClass(i.sTable),(r=a.asDestroyStripes.length)&&l.children().each(function(e){t(this).addClass(a.asDestroyStripes[e%r])})),-1!==(o=t.inArray(a,qt.settings))&&qt.settings.splice(o,1)})}),t.each(["column","row","cell"],function(t,e){Vt(e+"s().every()",function(t){var n=this.selector.opts,r=this;return this.iterator(e,function(o,i,s,l,u){t.call(r[e](i,"cell"===e?s:n,"cell"===e?n:a),i,s,l,u)})})}),Vt("i18n()",function(e,n,r){var o=this.context[0],e=x(e)(o.oLanguage);return e===a&&(e=n),r!==a&&t.isPlainObject(e)&&(e=e[r]!==a?e[r]:e._),e.replace("%d",r)}),qt.version="1.10.18",qt.settings=[],qt.models={},qt.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},qt.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},qt.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},qt.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,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((-1===t.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+t.sInstance+"_"+location.pathname))}catch(t){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(t,e){try{(-1===t.iStateDuration?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({},qt.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},r(qt.defaults),qt.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(qt.defaults.column),qt.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:a,oAjaxData:a,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==Mt(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==Mt(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var t=this._iDisplayLength,e=this._iDisplayStart,n=e+t,a=this.aiDisplay.length,r=this.oFeatures,o=r.bPaginate;return r.bServerSide?!1===o||-1===t?e+a:Math.min(e+t,this._iRecordsDisplay):!o||n>a||-1===t?a:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},qt.ext=Ut={buttons:{},classes:{},build:"bs/dt-1.10.18/cr-1.5.0/fh-3.1.4",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:qt.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:qt.version},t.extend(Ut,{afnFiltering:Ut.search,aTypes:Ut.type.detect,ofnSearch:Ut.type.search,oSort:Ut.type.order,afnSortData:Ut.order,aoFeatures:Ut.feature,oApi:Ut.internal,oStdClasses:Ut.classes,oPagination:Ut.pager}),t.extend(qt.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:""});var Re=qt.ext.pager;t.extend(Re,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(t,e){return[Et(t,e)]},simple_numbers:function(t,e){return["previous",Et(t,e),"next"]},full_numbers:function(t,e){return["first","previous",Et(t,e),"next","last"]},first_last_numbers:function(t,e){return["first",Et(t,e),"last"]},_numbers:Et,numbers_length:7}),t.extend(!0,qt.ext.renderer,{pageButton:{_:function(e,r,o,i,s,l){var u,c,d,f=e.oClasses,h=e.oLanguage.oPaginate,p=e.oLanguage.oAria.paginate||{},g=0,b=function(n,a){var r,i,d,m,S=function(t){ut(e,t.data.action,!0)};for(r=0,i=a.length;r<i;r++)if(m=a[r],t.isArray(m))d=t("<"+(m.DT_el||"div")+"/>").appendTo(n),b(d,m);else{switch(u=null,c="",m){case"ellipsis":n.append('<span class="ellipsis">&#x2026;</span>');break;case"first":u=h.sFirst,c=m+(s>0?"":" "+f.sPageButtonDisabled);break;case"previous":u=h.sPrevious,c=m+(s>0?"":" "+f.sPageButtonDisabled);break;case"next":u=h.sNext,c=m+(s<l-1?"":" "+f.sPageButtonDisabled);break;case"last":u=h.sLast,c=m+(s<l-1?"":" "+f.sPageButtonDisabled);break;default:u=m+1,c=s===m?f.sPageButtonActive:""}null!==u&&(d=t("<a>",{class:f.sPageButton+" "+c,"aria-controls":e.sTableId,"aria-label":p[m],"data-dt-idx":g,tabindex:e.iTabIndex,id:0===o&&"string"==typeof m?e.sTableId+"_"+m:null}).html(u).appendTo(n),jt(d,{action:m},S),g++)}};try{d=t(r).find(n.activeElement).data("dt-idx")}catch(t){}b(t(r).empty(),i),d!==a&&t(r).find("[data-dt-idx="+d+"]").focus()}}}),t.extend(qt.ext.type.detect,[function(t,e){var n=e.oLanguage.sDecimal;return ne(t,n)?"num"+n:null},function(t){if(t&&!(t instanceof Date)&&!zt.test(t))return null;var e=Date.parse(t);return null!==e&&!isNaN(e)||Kt(t)?"date":null},function(t,e){var n=e.oLanguage.sDecimal;return ne(t,n,!0)?"num-fmt"+n:null},function(t,e){var n=e.oLanguage.sDecimal;return ae(t,n)?"html-num"+n:null},function(t,e){var n=e.oLanguage.sDecimal;return ae(t,n,!0)?"html-num-fmt"+n:null},function(t){return Kt(t)||"string"==typeof t&&-1!==t.indexOf("<")?"html":null}]),t.extend(qt.ext.type.search,{html:function(t){return Kt(t)?t:"string"==typeof t?t.replace(Gt," ").replace($t,""):""},string:function(t){return Kt(t)?t:"string"==typeof t?t.replace(Gt," "):t}});var Ae=function(t,e,n,a){return 0===t||t&&"-"!==t?(e&&(t=ee(t,e)),t.replace&&(n&&(t=t.replace(n,"")),a&&(t=t.replace(a,""))),1*t):-(1/0)};t.extend(Ut.type.order,{"date-pre":function(t){return t=Date.parse(t),isNaN(t)?-(1/0):t},"html-pre":function(t){return Kt(t)?"":t.replace?t.replace(/<.*?>/g,"").toLowerCase():t+""},"string-pre":function(t){return Kt(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}}),Wt(""),t.extend(!0,qt.ext.renderer,{header:{_:function(e,n,a,r){t(e.nTable).on("order.dt.DT",function(t,o,i,s){e===o&&(t=a.idx,n.removeClass(a.sSortingClass+" "+r.sSortAsc+" "+r.sSortDesc).addClass("asc"==s[t]?r.sSortAsc:"desc"==s[t]?r.sSortDesc:a.sSortingClass))})},jqueryui:function(e,n,a,r){t("<div/>").addClass(r.sSortJUIWrapper).append(n.contents()).append(t("<span/>").addClass(r.sSortIcon+" "+a.sSortingClassJUI)).appendTo(n),t(e.nTable).on("order.dt.DT",function(t,o,i,s){e===o&&(t=a.idx,n.removeClass(r.sSortAsc+" "+r.sSortDesc).addClass("asc"==s[t]?r.sSortAsc:"desc"==s[t]?r.sSortDesc:a.sSortingClass),n.find("span."+r.sSortIcon).removeClass(r.sSortJUIAsc+" "+r.sSortJUIDesc+" "+r.sSortJUI+" "+r.sSortJUIAscAllowed+" "+r.sSortJUIDescAllowed).addClass("asc"==s[t]?r.sSortJUIAsc:"desc"==s[t]?r.sSortJUIDesc:a.sSortingClassJUI))})}}});var Fe=function(t){return"string"==typeof t?t.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):t};return qt.render={number:function(t,e,n,a,r){return{display:function(o){if("number"!=typeof o&&"string"!=typeof o)return o;var i=0>o?"-":"",s=parseFloat(o);return isNaN(s)?Fe(o):(s=s.toFixed(n),o=Math.abs(s),s=parseInt(o,10),o=n?e+(o-s).toFixed(n).substring(2):"",i+(a||"")+s.toString().replace(/\B(?=(\d{3})+(?!\d))/g,t)+o+(r||""))}}},text:function(){return{display:Fe}}},t.extend(qt.ext.internal,{_fnExternApiFunc:Bt,_fnBuildAjax:B,_fnAjaxUpdate:U,_fnAjaxParameters:X,_fnAjaxUpdateDraw:V,_fnAjaxDataSrc:J,_fnAddColumn:d,_fnColumnOptions:f,_fnAdjustColumnSizing:h,_fnVisibleToColumnIndex:p,_fnColumnIndexToVisible:g,_fnVisbleColumns:b,_fnGetColumns:m,_fnColumnTypes:S,_fnApplyColumnDefs:v,_fnHungarianMap:r,_fnCamelToHungarian:o,_fnLanguageCompat:i,_fnBrowserDetect:u,_fnAddData:D,_fnAddTr:_,_fnNodeToDataIndex:function(t,e){return e._DT_RowIndex!==a?e._DT_RowIndex:null},_fnNodeToColumnIndex:function(e,n,a){return t.inArray(a,e.aoData[n].anCells)},_fnGetCellData:C,_fnSetCellData:y,_fnSplitObjNotation:T,_fnGetObjectDataFn:x,_fnSetObjectDataFn:w,_fnGetDataMaster:I,_fnClearTable:R,_fnDeleteIndex:A,_fnInvalidate:F,_fnGetRowElements:L,_fnCreateTr:P,_fnBuildHead:N,_fnDrawHead:O,_fnDraw:k,_fnReDraw:H,_fnAddOptionsHtml:M,_fnDetectHeader:E,_fnGetUniqueThs:W,_fnFeatureHtmlFilter:q,_fnFilterComplete:Y,_fnFilterCustom:G,_fnFilterColumn:$,_fnFilter:z,_fnFilterCreateSearch:Z,_fnEscapeRegex:fe,_fnFilterData:Q,_fnFeatureHtmlInfo:et,_fnUpdateInfo:nt,_fnInfoMacros:at,_fnInitialise:rt,_fnInitComplete:ot,_fnLengthChange:it,_fnFeatureHtmlLength:st,_fnFeatureHtmlPaginate:lt,_fnPageChange:ut,_fnFeatureHtmlProcessing:ct,_fnProcessingDisplay:dt,_fnFeatureHtmlTable:ft,_fnScrollDraw:ht,_fnApplyToChildren:pt,_fnCalculateColumnWidths:gt,_fnThrottle:be,_fnConvertToWidth:bt,_fnGetWidestNode:mt,_fnGetMaxLenString:St,_fnStringToCss:vt,_fnSortFlatten:Dt,_fnSort:_t,_fnSortAria:Ct,_fnSortListener:yt,_fnSortAttachListener:Tt,_fnSortingClasses:xt,_fnSortData:wt,_fnSaveState:It,_fnLoadState:Rt,_fnSettingsFromNode:At,_fnLog:Ft,_fnMap:Lt,_fnBindAction:jt,_fnCallbackReg:Nt,_fnCallbackFire:Ot,_fnLengthOverflow:kt,_fnRenderer:Ht,_fnDataSource:Mt,_fnRowAttributes:j,_fnExtend:Pt,_fnCalculateEnd:function(){}}),t.fn.dataTable=qt,qt.$=t,t.fn.dataTableSettings=qt.settings,t.fn.dataTableExt=qt.ext,t.fn.DataTable=function(e){return t(this).dataTable(e).api()},t.each(qt,function(e,n){t.fn.DataTable[e]=n}),t.fn.dataTable}),/*!
 DataTables Bootstrap 3 integration
 ©2011-2015 SpryMedia Ltd - datatables.net/license
*/
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,a){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,o,i,s,l,u){var c,d,f,h=new r.Api(e),p=e.oClasses,g=e.oLanguage.oPaginate,b=e.oLanguage.oAria.paginate||{},m=0,S=function(n,a){var r,o,s,f,v=function(e){e.preventDefault(),!t(e.currentTarget).hasClass("disabled")&&h.page()!=e.data.action&&h.page(e.data.action).draw("page")};for(r=0,o=a.length;r<o;r++)if(f=a[r],t.isArray(f))S(n,f);else{switch(d=c="",f){case"ellipsis":c="&#x2026;",d="disabled";break;case"first":c=g.sFirst,d=f+(0<l?"":" disabled");break;case"previous":c=g.sPrevious,d=f+(0<l?"":" disabled");break;case"next":c=g.sNext,d=f+(l<u-1?"":" disabled");break;case"last":c=g.sLast,d=f+(l<u-1?"":" disabled");break;default:c=f+1,d=l===f?"active":""}c&&(s=t("<li>",{class:p.sPageButton+" "+d,id:0===i&&"string"==typeof f?e.sTableId+"_"+f:null}).append(t("<a>",{href:"#","aria-controls":e.sTableId,"aria-label":b[f],"data-dt-idx":m,tabindex:e.iTabIndex}).html(c)).appendTo(n),e.oApi._fnBindAction(s,{action:f},v),m++)}};try{f=t(o).find(n.activeElement).data("dt-idx")}catch(t){}S(t(o).empty().html('<ul class="pagination"/>').children("ul"),s),f!==a&&t(o).find("[data-dt-idx="+f+"]").focus()},r}),/*!
 ColReorder 1.5.0
 ©2010-2018 SpryMedia Ltd - datatables.net/license
*/
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,a){function r(t){for(var e=[],n=0,a=t.length;n<a;n++)e[t[n]]=n;return e}function o(t,e,n){e=t.splice(e,1)[0],t.splice(n,0,e)}function i(t,e,n){for(var a=[],r=0,o=t.childNodes.length;r<o;r++)1==t.childNodes[r].nodeType&&a.push(t.childNodes[r]);e=a[e],null!==n?t.insertBefore(e,a[n]):t.appendChild(e)}var s=t.fn.dataTable;t.fn.dataTableExt.oApi.fnColReorder=function(e,n,s,l,u){var c,d,f,h,p,g,b=e.aoColumns.length;if(p=function(t,e,n){if(t[e]&&"function"!=typeof t[e]){var a=t[e].split("."),r=a.shift();isNaN(1*r)||(t[e]=n[1*r]+"."+a.join("."))}},n!=s)if(0>n||n>=b)this.oApi._fnLog(e,1,"ColReorder 'from' index is out of bounds: "+n);else if(0>s||s>=b)this.oApi._fnLog(e,1,"ColReorder 'to' index is out of bounds: "+s);else{for(f=[],c=0,d=b;c<d;c++)f[c]=c;o(f,n,s);var m=r(f);for(c=0,d=e.aaSorting.length;c<d;c++)e.aaSorting[c][0]=m[e.aaSorting[c][0]];if(null!==e.aaSortingFixed)for(c=0,d=e.aaSortingFixed.length;c<d;c++)e.aaSortingFixed[c][0]=m[e.aaSortingFixed[c][0]];for(c=0,d=b;c<d;c++){for(g=e.aoColumns[c],f=0,h=g.aDataSort.length;f<h;f++)g.aDataSort[f]=m[g.aDataSort[f]];g.idx=m[g.idx]}for(t.each(e.aLastSort,function(t,n){e.aLastSort[t].src=m[n.src]}),c=0,d=b;c<d;c++)g=e.aoColumns[c],"number"==typeof g.mData?g.mData=m[g.mData]:t.isPlainObject(g.mData)&&(p(g.mData,"_",m),p(g.mData,"filter",m),p(g.mData,"sort",m),p(g.mData,"type",m));if(e.aoColumns[n].bVisible){for(p=this.oApi._fnColumnIndexToVisible(e,n),h=null,c=s<n?s:s+1;null===h&&c<b;)h=this.oApi._fnColumnIndexToVisible(e,c),c++;for(f=e.nTHead.getElementsByTagName("tr"),c=0,d=f.length;c<d;c++)i(f[c],p,h);if(null!==e.nTFoot)for(f=e.nTFoot.getElementsByTagName("tr"),c=0,d=f.length;c<d;c++)i(f[c],p,h);for(c=0,d=e.aoData.length;c<d;c++)null!==e.aoData[c].nTr&&i(e.aoData[c].nTr,p,h)}for(o(e.aoColumns,n,s),c=0,d=b;c<d;c++)e.oApi._fnColumnOptions(e,c,{});for(o(e.aoPreSearchCols,n,s),c=0,d=e.aoData.length;c<d;c++){if(h=e.aoData[c],g=h.anCells)for(o(g,n,s),f=0,p=g.length;f<p;f++)g[f]&&g[f]._DT_CellIndex&&(g[f]._DT_CellIndex.column=f);"dom"!==h.src&&t.isArray(h._aData)&&o(h._aData,n,s)}for(c=0,d=e.aoHeader.length;c<d;c++)o(e.aoHeader[c],n,s);if(null!==e.aoFooter)for(c=0,d=e.aoFooter.length;c<d;c++)o(e.aoFooter[c],n,s);for((u||u===a)&&t.fn.dataTable.Api(e).rows().invalidate(),c=0,d=b;c<d;c++)t(e.aoColumns[c].nTh).off(".DT"),this.oApi._fnSortAttachListener(e,e.aoColumns[c].nTh,c);t(e.oInstance).trigger("column-reorder.dt",[e,{from:n,to:s,mapping:m,drop:l,iFrom:n,iTo:s,aiInvertMapping:m}])}};var l=function(e,n){var a=new t.fn.dataTable.Api(e).settings()[0];if(a._colReorder)return a._colReorder;!0===n&&(n={});var r=t.fn.dataTable.camelToHungarian;return r&&(r(l.defaults,l.defaults,!0),r(l.defaults,n||{})),this.s={dt:null,enable:null,init:t.extend(!0,{},l.defaults,n),fixed:0,fixedRight:0,reorderCallback:null,mouse:{startX:-1,startY:-1,offsetX:-1,offsetY:-1,target:-1,targetIndex:-1,fromIndex:-1},aoTargets:[]},this.dom={drag:null,pointer:null},this.s.enable=this.s.init.bEnable,this.s.dt=a,this.s.dt._colReorder=this,this._fnConstruct(),this};return t.extend(l.prototype,{fnEnable:function(t){if(!1===t)return fnDisable();this.s.enable=!0},fnDisable:function(){this.s.enable=!1},fnReset:function(){return this._fnOrderColumns(this.fnOrder()),this},fnGetCurrentOrder:function(){return this.fnOrder()},fnOrder:function(e,n){var o,i,s=[],l=this.s.dt.aoColumns;if(e===a){for(o=0,i=l.length;o<i;o++)s.push(l[o]._ColReorder_iOrigCol);return s}if(n){for(l=this.fnOrder(),o=0,i=e.length;o<i;o++)s.push(t.inArray(e[o],l));e=s}return this._fnOrderColumns(r(e)),this},fnTranspose:function(e,n){n||(n="toCurrent");var a=this.fnOrder(),r=this.s.dt.aoColumns;return"toCurrent"===n?t.isArray(e)?t.map(e,function(e){return t.inArray(e,a)}):t.inArray(e,a):t.isArray(e)?t.map(e,function(t){return r[t]._ColReorder_iOrigCol}):r[e]._ColReorder_iOrigCol},_fnConstruct:function(){var e,n=this,a=this.s.dt.aoColumns.length,o=this.s.dt.nTable;for(this.s.init.iFixedColumns&&(this.s.fixed=this.s.init.iFixedColumns),this.s.init.iFixedColumnsLeft&&(this.s.fixed=this.s.init.iFixedColumnsLeft),this.s.fixedRight=this.s.init.iFixedColumnsRight?this.s.init.iFixedColumnsRight:0,this.s.init.fnReorderCallback&&(this.s.reorderCallback=this.s.init.fnReorderCallback),e=0;e<a;e++)e>this.s.fixed-1&&e<a-this.s.fixedRight&&this._fnMouseListener(e,this.s.dt.aoColumns[e].nTh),this.s.dt.aoColumns[e]._ColReorder_iOrigCol=e;this.s.dt.oApi._fnCallbackReg(this.s.dt,"aoStateSaveParams",function(t,e){n._fnStateSave.call(n,e)},"ColReorder_State");var i=null;if(this.s.init.aiOrder&&(i=this.s.init.aiOrder.slice()),this.s.dt.oLoadedState&&void 0!==this.s.dt.oLoadedState.ColReorder&&this.s.dt.oLoadedState.ColReorder.length==this.s.dt.aoColumns.length&&(i=this.s.dt.oLoadedState.ColReorder),i)if(n.s.dt._bInitComplete)a=r(i),n._fnOrderColumns.call(n,a);else{var s=!1;t(o).on("draw.dt.colReorder",function(){if(!n.s.dt._bInitComplete&&!s){s=!0;var t=r(i);n._fnOrderColumns.call(n,t)}})}else this._fnSetColumnIndexes();t(o).on("destroy.dt.colReorder",function(){t(o).off("destroy.dt.colReorder draw.dt.colReorder"),t.each(n.s.dt.aoColumns,function(e,n){t(n.nTh).off(".ColReorder"),t(n.nTh).removeAttr("data-column-index")}),n.s.dt._colReorder=null,n.s=null})},_fnOrderColumns:function(e){var n=!1;if(e.length!=this.s.dt.aoColumns.length)this.s.dt.oInstance.oApi._fnLog(this.s.dt,1,"ColReorder - array reorder does not match known number of columns. Skipping.");else{for(var a=0,r=e.length;a<r;a++){var i=t.inArray(a,e);a!=i&&(o(e,i,a),this.s.dt.oInstance.fnColReorder(i,a,!0,!1),n=!0)}this._fnSetColumnIndexes(),n&&(t.fn.dataTable.Api(this.s.dt).rows().invalidate(),(""!==this.s.dt.oScroll.sX||""!==this.s.dt.oScroll.sY)&&this.s.dt.oInstance.fnAdjustColumnSizing(!1),this.s.dt.oInstance.oApi._fnSaveState(this.s.dt),null!==this.s.reorderCallback&&this.s.reorderCallback.call(this))}},_fnStateSave:function(e){var n,a,r,o=this.s.dt.aoColumns;if(e.ColReorder=[],e.aaSorting){for(n=0;n<e.aaSorting.length;n++)e.aaSorting[n][0]=o[e.aaSorting[n][0]]._ColReorder_iOrigCol;var i=t.extend(!0,[],e.aoSearchCols);for(n=0,a=o.length;n<a;n++)r=o[n]._ColReorder_iOrigCol,e.aoSearchCols[r]=i[n],e.abVisCols[r]=o[n].bVisible,e.ColReorder.push(r)}else if(e.order){for(n=0;n<e.order.length;n++)e.order[n][0]=o[e.order[n][0]]._ColReorder_iOrigCol;for(i=t.extend(!0,[],e.columns),n=0,a=o.length;n<a;n++)r=o[n]._ColReorder_iOrigCol,e.columns[r]=i[n],e.ColReorder.push(r)}},_fnMouseListener:function(e,n){var a=this;t(n).on("mousedown.ColReorder",function(t){a.s.enable&&a._fnMouseDown.call(a,t,n)}).on("touchstart.ColReorder",function(t){a.s.enable&&a._fnMouseDown.call(a,t,n)})},_fnMouseDown:function(e,r){var o=this,i=t(e.target).closest("th, td").offset(),s=parseInt(t(r).attr("data-column-index"),10);s!==a&&(this.s.mouse.startX=this._fnCursorPosition(e,"pageX"),this.s.mouse.startY=this._fnCursorPosition(e,"pageY"),this.s.mouse.offsetX=this._fnCursorPosition(e,"pageX")-i.left,this.s.mouse.offsetY=this._fnCursorPosition(e,"pageY")-i.top,this.s.mouse.target=this.s.dt.aoColumns[s].nTh,this.s.mouse.targetIndex=s,this.s.mouse.fromIndex=s,this._fnRegions(),t(n).on("mousemove.ColReorder touchmove.ColReorder",function(t){o._fnMouseMove.call(o,t)}).on("mouseup.ColReorder touchend.ColReorder",function(t){o._fnMouseUp.call(o,t)}))},_fnMouseMove:function(t){if(null===this.dom.drag){if(5>Math.pow(Math.pow(this._fnCursorPosition(t,"pageX")-this.s.mouse.startX,2)+Math.pow(this._fnCursorPosition(t,"pageY")-this.s.mouse.startY,2),.5))return;this._fnCreateDragNode()}this.dom.drag.css({left:this._fnCursorPosition(t,"pageX")-this.s.mouse.offsetX,top:this._fnCursorPosition(t,"pageY")-this.s.mouse.offsetY});for(var e=!1,n=this.s.mouse.toIndex,a=1,r=this.s.aoTargets.length;a<r;a++)if(this._fnCursorPosition(t,"pageX")<this.s.aoTargets[a-1].x+(this.s.aoTargets[a].x-this.s.aoTargets[a-1].x)/2){this.dom.pointer.css("left",this.s.aoTargets[a-1].x),this.s.mouse.toIndex=this.s.aoTargets[a-1].to,e=!0;break}e||(this.dom.pointer.css("left",this.s.aoTargets[this.s.aoTargets.length-1].x),this.s.mouse.toIndex=this.s.aoTargets[this.s.aoTargets.length-1].to),this.s.init.bRealtime&&n!==this.s.mouse.toIndex&&(this.s.dt.oInstance.fnColReorder(this.s.mouse.fromIndex,this.s.mouse.toIndex),this.s.mouse.fromIndex=this.s.mouse.toIndex,(""!==this.s.dt.oScroll.sX||""!==this.s.dt.oScroll.sY)&&this.s.dt.oInstance.fnAdjustColumnSizing(!1),this._fnRegions())},_fnMouseUp:function(){t(n).off(".ColReorder"),null!==this.dom.drag&&(this.dom.drag.remove(),this.dom.pointer.remove(),this.dom.drag=null,this.dom.pointer=null,this.s.dt.oInstance.fnColReorder(this.s.mouse.fromIndex,this.s.mouse.toIndex,!0),this._fnSetColumnIndexes(),(""!==this.s.dt.oScroll.sX||""!==this.s.dt.oScroll.sY)&&this.s.dt.oInstance.fnAdjustColumnSizing(!1),this.s.dt.oInstance.oApi._fnSaveState(this.s.dt),null!==this.s.reorderCallback&&this.s.reorderCallback.call(this))},_fnRegions:function(){var e=this.s.dt.aoColumns;this.s.aoTargets.splice(0,this.s.aoTargets.length),this.s.aoTargets.push({x:t(this.s.dt.nTable).offset().left,to:0});for(var n=0,a=this.s.aoTargets[0].x,r=0,o=e.length;r<o;r++)r!=this.s.mouse.fromIndex&&n++,e[r].bVisible&&"none"!==e[r].nTh.style.display&&(a+=t(e[r].nTh).outerWidth(),this.s.aoTargets.push({x:a,to:n}));0!==this.s.fixedRight&&this.s.aoTargets.splice(this.s.aoTargets.length-this.s.fixedRight),0!==this.s.fixed&&this.s.aoTargets.splice(0,this.s.fixed)},_fnCreateDragNode:function(){var e=""!==this.s.dt.oScroll.sX||""!==this.s.dt.oScroll.sY,n=this.s.dt.aoColumns[this.s.mouse.targetIndex].nTh,a=n.parentNode,r=a.parentNode,o=r.parentNode,i=t(n).clone();this.dom.drag=t(o.cloneNode(!1)).addClass("DTCR_clonedTable").append(t(r.cloneNode(!1)).append(t(a.cloneNode(!1)).append(i[0]))).css({position:"absolute",top:0,left:0,width:t(n).outerWidth(),height:t(n).outerHeight()}).appendTo("body"),this.dom.pointer=t("<div></div>").addClass("DTCR_pointer").css({position:"absolute",top:e?t("div.dataTables_scroll",this.s.dt.nTableWrapper).offset().top:t(this.s.dt.nTable).offset().top,height:e?t("div.dataTables_scroll",this.s.dt.nTableWrapper).height():t(this.s.dt.nTable).height()}).appendTo("body")},_fnSetColumnIndexes:function(){t.each(this.s.dt.aoColumns,function(e,n){t(n.nTh).attr("data-column-index",e)})},_fnCursorPosition:function(t,e){return-1!==t.type.indexOf("touch")?t.originalEvent.touches[0][e]:t[e]}}),l.defaults={aiOrder:null,bEnable:!0,bRealtime:!0,iFixedColumnsLeft:0,iFixedColumnsRight:0,fnReorderCallback:null},l.version="1.5.0",t.fn.dataTable.ColReorder=l,t.fn.DataTable.ColReorder=l,"function"==typeof t.fn.dataTable&&"function"==typeof t.fn.dataTableExt.fnVersionCheck&&t.fn.dataTableExt.fnVersionCheck("1.10.8")?t.fn.dataTableExt.aoFeatures.push({fnInit:function(t){var e=t.oInstance;return t._colReorder?e.oApi._fnLog(t,1,"ColReorder attempted to initialise twice. Ignoring second"):(e=t.oInit,new l(t,e.colReorder||e.oColReorder||{})),null},cFeature:"R",sFeature:"ColReorder"}):alert("Warning: ColReorder requires DataTables 1.10.8 or greater - www.datatables.net/download"),t(n).on("preInit.dt.colReorder",function(e,n){if("dt"===e.namespace){var a=n.oInit.colReorder,r=s.defaults.colReorder;(a||r)&&(r=t.extend({},a,r),!1!==a&&new l(n,r))}}),t.fn.dataTable.Api.register("colReorder.reset()",function(){return this.iterator("table",function(t){t._colReorder.fnReset()})}),t.fn.dataTable.Api.register("colReorder.order()",function(t,e){return t?this.iterator("table",function(n){n._colReorder.fnOrder(t,e)}):this.context.length?this.context[0]._colReorder.fnOrder():null}),t.fn.dataTable.Api.register("colReorder.transpose()",function(t,e){return this.context.length&&this.context[0]._colReorder?this.context[0]._colReorder.fnTranspose(t,e):t}),t.fn.dataTable.Api.register("colReorder.move()",function(t,e,n,a){return this.context.length&&this.context[0]._colReorder.s.dt.oInstance.fnColReorder(t,e,n,a),this}),t.fn.dataTable.Api.register("colReorder.enable()",function(t){return this.iterator("table",function(e){e._colReorder&&e._colReorder.fnEnable(t)})}),t.fn.dataTable.Api.register("colReorder.disable()",function(){return this.iterator("table",function(t){t._colReorder&&t._colReorder.fnDisable()})}),l});$.fn.dataTableExt.aTypes.unshift(function(t){return/^\d{1,3}[\.]\d{1,3}[\.]\d{1,3}[\.]\d{1,3}$/.test(t)?"ip-address":null}),$.fn.dataTable.Api.register("order.neutral()",function(){return this.iterator("table",function(t){t.aaSorting.length=0,t.aiDisplay.sort(function(t,n){return t-n}),t.aiDisplayMaster.sort(function(t,n){return t-n})})});/**!
 * easy-pie-chart
 * Lightweight plugin to render simple, animated and retina optimized pie charts
 *
 * @license
 * @author Robert Fleischmann <rendro87@gmail.com> (https://rendro.github.io/easy-pie-chart/)
 * @version 2.1.7
 **/
!function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(this,function(e){var t=function(e,t){var n,a=document.createElement("canvas");e.appendChild(a),"object"==typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(a);var i=a.getContext("2d");a.width=a.height=t.size;var r=1;window.devicePixelRatio>1&&(r=window.devicePixelRatio,a.style.width=a.style.height=[t.size,"px"].join(""),a.width=a.height=t.size*r,i.scale(r,r)),i.translate(t.size/2,t.size/2),i.rotate((-.5+t.rotate/180)*Math.PI);var o=(t.size-t.lineWidth)/2;t.scaleColor&&t.scaleLength&&(o-=t.scaleLength+2),Date.now=Date.now||function(){return+new Date};var s=function(e,t,n){n=Math.min(Math.max(-1,n||0),1);var a=n<=0;i.beginPath(),i.arc(0,0,o,0,2*Math.PI*n,a),i.strokeStyle=e,i.lineWidth=t,i.stroke()},d=function(){var e,n;i.lineWidth=1,i.fillStyle=t.scaleColor,i.save();for(var a=24;a>0;--a)a%6==0?(n=t.scaleLength,e=0):(n=.6*t.scaleLength,e=t.scaleLength-n),i.fillRect(-t.size/2+e,0,n,1),i.rotate(Math.PI/12);i.restore()},h=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}(),u=function(){t.scaleColor&&d(),t.trackColor&&s(t.trackColor,t.trackWidth||t.lineWidth,1)};this.getCanvas=function(){return a},this.getCtx=function(){return i},this.clear=function(){i.clearRect(t.size/-2,t.size/-2,t.size,t.size)},this.draw=function(e){t.scaleColor||t.trackColor?i.getImageData&&i.putImageData?n?i.putImageData(n,0,0):(u(),n=i.getImageData(0,0,t.size*r,t.size*r)):(this.clear(),u()):this.clear(),i.lineCap=t.lineCap;var a;a="function"==typeof t.barColor?t.barColor(e):t.barColor,s(a,t.lineWidth,e/100)}.bind(this),this.animate=function(e,n){var a=Date.now();t.onStart(e,n);var i=function(){var r=Math.min(Date.now()-a,t.animate.duration),o=t.easing(this,r,e,n-e,t.animate.duration);this.draw(o),t.onStep(e,n,o),r>=t.animate.duration?t.onStop(e,n):h(i)}.bind(this);h(i)}.bind(this)},n=function(e,n){var a={barColor:"#ef1e25",trackColor:"#f9f9f9",scaleColor:"#dfe0e0",scaleLength:5,lineCap:"round",lineWidth:3,trackWidth:void 0,size:110,rotate:0,animate:{duration:1e3,enabled:!0},easing:function(e,t,n,a,i){return t/=i/2,t<1?a/2*t*t+n:-a/2*(--t*(t-2)-1)+n},onStart:function(e,t){},onStep:function(e,t,n){},onStop:function(e,t){}};if(void 0!==t)a.renderer=t;else{if("undefined"==typeof SVGRenderer)throw new Error("Please load either the SVG- or the CanvasRenderer");a.renderer=SVGRenderer}var i={},r=0,o=function(){this.el=e,this.options=i;for(var t in a)a.hasOwnProperty(t)&&(i[t]=n&&void 0!==n[t]?n[t]:a[t],"function"==typeof i[t]&&(i[t]=i[t].bind(this)));"string"==typeof i.easing&&"undefined"!=typeof jQuery&&jQuery.isFunction(jQuery.easing[i.easing])?i.easing=jQuery.easing[i.easing]:i.easing=a.easing,"number"==typeof i.animate&&(i.animate={duration:i.animate,enabled:!0}),"boolean"!=typeof i.animate||i.animate||(i.animate={duration:1e3,enabled:i.animate}),this.renderer=new i.renderer(e,i),this.renderer.draw(r),e.dataset&&e.dataset.percent?this.update(parseFloat(e.dataset.percent)):e.getAttribute&&e.getAttribute("data-percent")&&this.update(parseFloat(e.getAttribute("data-percent")))}.bind(this);this.update=function(e){return e=parseFloat(e),i.animate.enabled?this.renderer.animate(r,e):this.renderer.draw(e),r=e,this}.bind(this),this.disableAnimation=function(){return i.animate.enabled=!1,this},this.enableAnimation=function(){return i.animate.enabled=!0,this},o()};e.fn.easyPieChart=function(t){return this.each(function(){var a;e.data(this,"easyPieChart")||(a=e.extend({},t,e(this).data()),e.data(this,"easyPieChart",new n(this,a)))})}});/*!
 * clipboard.js v1.7.1
 * https://zenorocha.github.io/clipboard.js
 *
 * Licensed MIT © Zeno Rocha
 */
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.Clipboard=t()}}(function(){var t,e,n;return function t(e,n,o){function i(a,c){if(!n[a]){if(!e[a]){var l="function"==typeof require&&require;if(!c&&l)return l(a,!0);if(r)return r(a,!0);var s=new Error("Cannot find module '"+a+"'");throw s.code="MODULE_NOT_FOUND",s}var u=n[a]={exports:{}};e[a][0].call(u.exports,function(t){var n=e[a][1][t];return i(n||t)},u,u.exports,t,e,n,o)}return n[a].exports}for(var r="function"==typeof require&&require,a=0;a<o.length;a++)i(o[a]);return i}({1:[function(t,e,n){function o(t,e){for(;t&&t.nodeType!==i;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}var i=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var r=Element.prototype;r.matches=r.matchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector}e.exports=o},{}],2:[function(t,e,n){function o(t,e,n,o,r){var a=i.apply(this,arguments);return t.addEventListener(n,a,r),{destroy:function(){t.removeEventListener(n,a,r)}}}function i(t,e,n,o){return function(n){n.delegateTarget=r(n.target,e),n.delegateTarget&&o.call(t,n)}}var r=t("./closest");e.exports=o},{"./closest":1}],3:[function(t,e,n){n.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},n.nodeList=function(t){var e=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===e||"[object HTMLCollection]"===e)&&"length"in t&&(0===t.length||n.node(t[0]))},n.string=function(t){return"string"==typeof t||t instanceof String},n.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},{}],4:[function(t,e,n){function o(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!c.string(e))throw new TypeError("Second argument must be a String");if(!c.fn(n))throw new TypeError("Third argument must be a Function");if(c.node(t))return i(t,e,n);if(c.nodeList(t))return r(t,e,n);if(c.string(t))return a(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function i(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}function r(t,e,n){return Array.prototype.forEach.call(t,function(t){t.addEventListener(e,n)}),{destroy:function(){Array.prototype.forEach.call(t,function(t){t.removeEventListener(e,n)})}}}function a(t,e,n){return l(document.body,t,e,n)}var c=t("./is"),l=t("delegate");e.exports=o},{"./is":3,delegate:2}],5:[function(t,e,n){function o(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var o=window.getSelection(),i=document.createRange();i.selectNodeContents(t),o.removeAllRanges(),o.addRange(i),e=o.toString()}return e}e.exports=o},{}],6:[function(t,e,n){function o(){}o.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){function o(){i.off(t,o),e.apply(n,arguments)}var i=this;return o._=e,this.on(t,o,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,i=n.length;for(o;o<i;o++)n[o].fn.apply(n[o].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),o=n[t],i=[];if(o&&e)for(var r=0,a=o.length;r<a;r++)o[r].fn!==e&&o[r].fn._!==e&&i.push(o[r]);return i.length?n[t]=i:delete n[t],this}},e.exports=o},{}],7:[function(e,n,o){!function(i,r){if("function"==typeof t&&t.amd)t(["module","select"],r);else if(void 0!==o)r(n,e("select"));else{var a={exports:{}};r(a,i.select),i.clipboardAction=a.exports}}(this,function(t,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=n(e),r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),c=function(){function t(e){o(this,t),this.resolveOptions(e),this.initSelection()}return a(t,[{key:"resolveOptions",value:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function t(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function t(){var e=this,n="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[n?"right":"left"]="-9999px";var o=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=o+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,i.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function t(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function t(){this.selectedText=(0,i.default)(this.target),this.copyText()}},{key:"copyText",value:function t(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function t(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function t(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function t(){this.removeFake()}},{key:"action",set:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function t(){return this._action}},{key:"target",set:function t(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":r(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function t(){return this._target}}]),t}();t.exports=c})},{select:5}],8:[function(e,n,o){!function(i,r){if("function"==typeof t&&t.amd)t(["module","./clipboard-action","tiny-emitter","good-listener"],r);else if(void 0!==o)r(n,e("./clipboard-action"),e("tiny-emitter"),e("good-listener"));else{var a={exports:{}};r(a,i.clipboardAction,i.tinyEmitter,i.goodListener),i.clipboard=a.exports}}(this,function(t,e,n,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function l(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}var s=i(e),u=i(n),f=i(o),d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),p=function(t){function e(t,n){r(this,e);var o=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return o.resolveOptions(n),o.listenClick(t),o}return c(e,t),h(e,[{key:"resolveOptions",value:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===d(e.container)?e.container:document.body}},{key:"listenClick",value:function t(e){var n=this;this.listener=(0,f.default)(e,"click",function(t){return n.onClick(t)})}},{key:"onClick",value:function t(e){var n=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new s.default({action:this.action(n),target:this.target(n),text:this.text(n),container:this.container,trigger:n,emitter:this})}},{key:"defaultAction",value:function t(e){return l("action",e)}},{key:"defaultTarget",value:function t(e){var n=l("target",e);if(n)return document.querySelector(n)}},{key:"defaultText",value:function t(e){return l("text",e)}},{key:"destroy",value:function t(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],n="string"==typeof e?[e]:e,o=!!document.queryCommandSupported;return n.forEach(function(t){o=o&&!!document.queryCommandSupported(t)}),o}}]),e}(u.default);t.exports=p})},{"./clipboard-action":7,"good-listener":4,"tiny-emitter":6}]},{},[8])(8)});
/*!
 * Bootstrap Contextmenu 0.3.3 (https://github.com/sydcanem/bootstrap-contextmenu)
 * Copyright 2015 James Santos
 * Licensed under MIT
 */
!function(e,t){e.fn.contextMenu=function(n){function r(r,i,c,d){var l=e(t)[c](),s=parseInt(a.css("margin-left")),u=content_page_calc_width(),_=content_page_calc_height(),g=r-("width"===i?s:0)+l,f=e(n.menuSelector).width(),h=e(n.menuSelector).height(),m=e($v__fm__container_fluid).offset().top,p=e($v__fm__container_fluid).offset().left;if("height"===i){g-=m;var v=h/1.02;_<r+v&&v<r-m&&(g-=h)}var y=1.8*f;return"width"===i&&u<r+y&&y<r-p&&(g-=f,e(n.menuSelector).find(o).addClass("right")),g}var a=e("#content"),o=".dropdown-submenu";return this.each(function(){e(this).on("contextmenu",function(a){return e(n.menuSelector).find(o).removeClass("right"),e(a.target).parents("tr").hasClass("directory_go_up")||e(a.target).parents("tr").find("td.dataTables_empty").length?void a.preventDefault():a.ctrlKey||a.altKey||a.shiftKey?(a.preventDefault(),a.stopPropagation(),"function"==typeof t.getSelection&&t.getSelection().removeAllRanges(),void e(a.target).parents("tr").find('td.ui_checked_checkbox input[type="checkbox"]').trigger("click")):(___contextmenu__triggered___=1,e(n.menuSelector).data("invokedOn",e(a.target)).show(0,!1,function(){n.menuSelectorTriggered.call(this,e(this).data("invokedOn"),e(a.target)),delete ___contextmenu__triggered___}).css({position:"absolute",left:r(e("body").data("mousePageX"),"width","scrollLeft",a),top:r(e("body").data("mousePageY"),"height","scrollTop",a)}).off("click").on("click",function(t){if(e(t.target).parent().hasClass("disabled")||e(t.target).parents("[data-go_up-target]").hasClass("disabled")||e(t.target).is("[data-prevent-default]")||e(t.target).is(".dropdown-menu")||e(t.target).is(".divider"))return void t.preventDefault();e(this).hide();var r=e(this).data("invokedOn"),a=e(t.target);n.menuSelected.call(this,r,a),t.preventDefault()}),e("body").off("click.fmcmenu"),e("body").on("click.fmcmenu",function(t){e(t.target).closest(e(n.menuSelector)).length||(e(n.menuSelector).hide(),delete ___contextmenu__triggered___)}),!1)})})}}(jQuery,window);/*!
 * Copyright 2012, Chris Wanstrath
 * Released under the MIT License
 * https://github.com/defunkt/jquery-pjax
 */
!function(e){function t(t,a,r){return r=m(a,r),this.on("click.pjax",t,function(t){var a=r;a.container||(a=e.extend({},r),a.container=e(this).attr("data-pjax")),n(t,a)})}function n(t,n,a){a=m(n,a);var i=t.currentTarget,o=e(i);if("A"!==i.tagName.toUpperCase())throw"$.fn.pjax or $.pjax.click requires an anchor element";if(!(t.which>1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||location.protocol!==i.protocol||location.hostname!==i.hostname||i.href.indexOf("#")>-1&&h(i)==h(location)||t.isDefaultPrevented())){var s={url:i.href,container:o.attr("data-pjax"),target:i},c=e.extend({},s,a),l=e.Event("pjax:click");o.trigger(l,[c]),l.isDefaultPrevented()||(r(c),t.preventDefault(),o.trigger("pjax:clicked",[c]))}}function a(t,n,a){a=m(n,a);var i=t.currentTarget,o=e(i);if("FORM"!==i.tagName.toUpperCase())throw"$.pjax.submit requires a form element";var s={type:(o.attr("method")||"GET").toUpperCase(),url:o.attr("action"),container:o.attr("data-pjax"),target:i};if("GET"!==s.type&&void 0!==window.FormData){var c=o.attr("enctype")&&o.attr("enctype").indexOf("form-data")>-1?0:1;s.data=c?o.serialize():new FormData(o[0]),s.processData=!1,s.contentType=!1}else{if(o.find(":file").length)return;s.data=o.serializeArray()}r(e.extend({},s,a)),t.preventDefault()}function r(t){function n(n,a,r){r||(r={}),r.relatedTarget=t.target;var i=e.Event(n,r);return s.trigger(i,a),!i.isDefaultPrevented()}t=e.extend(!0,{},e.ajaxSettings,r.defaults,t),e.isFunction(t.url)&&(t.url=t.url());var a=f(t.url).hash,i=e.type(t.container);if("string"!==i)throw"expected string value for 'container' option; got "+i;var s=t.context=e(t.container);if(!s.length)throw"the container selector '"+t.container+"' did not match anything";t.data||(t.data={});var c;t.beforeSend=function(e,r){if("GET"!==r.type&&(r.timeout=0),e.setRequestHeader("X-PJAX","true"),e.setRequestHeader("X-PJAX-Container",t.container),e.setRequestHeader("X-PJAX-URL",t.url),e.setRequestHeader("X-Requested-From",v___module||v___module_previous),e.setRequestHeader("X-Requested-From-Tab",plugins.navigation.state.module()),!n("pjax:beforeSend",[e,r]))return!1;r.timeout>0&&(c=setTimeout(function(){n("pjax:timeout",[e,t])&&e.abort("timeout")},r.timeout),r.timeout=0);var i=f(r.url);a&&(i.hash=a),t.requestUrl=d(i)},t.complete=function(e,a){c&&clearTimeout(c),n("pjax:complete",[e,a,t]),n("pjax:end",[e,t])},t.error=function(e,a,r){var i=g("",e,t),s=n("pjax:error",[e,a,r,t]);"GET"==t.type&&"abort"!==a&&s&&o(i.url)},t.success=function(i,o,c){if(Test.strContains(i,v___page_signin_form))return void(v___available_session=0);if(!v___theme_reload){var l=i.match(/.*<title.*>(ConfigServer Security.*Firewall)/),p=i.match(/.*<html.*data-csf='(.*?)'/);if(l&&l[1]&&!p)return vars.pjax.event.end=0,plugins.messenger.post('<i class="fa fa-lg fa-fw fa-info-circle"></i>'+theme_language("theme_xhred_notify_patching_module_style").replace("$1","<em>"+theme_language("theme_xhred_csf")+"</em>")+" "+theme_language("theme_xhred_global_please_wait")+'&nbsp;&nbsp;&nbsp;<span class="cspinner"><span class="cspinner-icon white smallest margined-top-4"></span></span>',300,"info","csf_patching"),theme.veiled(1),setTimeout(function(){v___module="csf",window.history.pushState({},!1,link_type_convert(v___location_prefix+"/csf/index.cgi",2)),theme_title_generate()},200),void setTimeout(function(){location.reload()},5e3);var d=r.state,h="function"==typeof e.pjax.defaults.version?e.pjax.defaults.version():e.pjax.defaults.version,m=c.getResponseHeader("X-PJAX-Version"),_=g(i,c,t),v=f(_.url);if(a&&(v.hash=a,_.url=v.href),h&&m&&h!==m)return theme_open_new_tab(_.url),void page_remove_progress();if(!_.contents){var y=XHR.headers(c)[1];return i.includes("data-predownload")||!Test.strContains(y,"text/html")&&!Test.strContains(y,"text/plain")?(theme_open_new_tab(v.href),setTimeout(function(){page_remove_progress()},300)):core.curModule("theme")||core.curModule("change-user")||core.curModuleFile("webmin","change_theme.cgi")?window.location.href=location.origin+v___location_prefix:theme_open_new_tab(_.url),void page_remove_progress()}if(r.state={id:t.id||u(),url:_.url,title:_.title,container:t.container,fragment:t.fragment,timeout:t.timeout},t.push||t.replace){var j=(_.url.endsWith("/")||Test.strContains(_.url,".cgi")?_.url:_.url+"/")+(Test.strContains(_.url,$__theme_navigation)?"":(Test.strContains(_.url,"?")?"&":"?")+$__theme_navigation);1===v___theme_pjax_call?("/"===_.url&&(j=link_type_convert(v___location_prefix+"/sysinfo.cgi",2)),window.history.replaceState(r.state,_.title,j)):link_type_convert(location.href,1)===r.state.url&&(r.state.url.includes("/csf")||r.state.url.includes("/"+v___module_file_manager)||r.state.url.includes("/webmin/edit_themes.cgi")||r.state.url.includes("/settings-user.cgi"))||window.history.pushState(r.state,_.title,j)}if(e.contains(t.container,document.activeElement))try{document.activeElement.blur()}catch(e){}n("pjax:beforeReplace",[_.contents,t],{state:r.state,previousState:d}),vars.pjax_replace_contents&&s.html(_.contents),vars.pjax_replace_contents=1;var w=s.find("input[autofocus], textarea[autofocus]").last()[0];w&&document.activeElement!==w&&w.focus(),x(_.scripts);var b=t.scrollTo;if(a){var T=decodeURIComponent(a.slice(1)),S=document.getElementById(T)||document.getElementsByName(T)[0];S&&(b=e(S).offset().top)}"number"==typeof b&&e(window).scrollTop(b),n("pjax:success",[i,o,c,t])}},r.state||(r.state={id:u(),url:window.location.href,title:document.title,container:t.container,fragment:t.fragment,timeout:t.timeout},window.history.replaceState(r.state,document.title)),l(r.xhr),r.options=t;var h=r.xhr=e.ajax(t);return h.readyState>0&&!v___theme_ajax_error&&(t.push&&!t.replace&&(1!==v___theme_pjax_call&&y(r.state.id,[t.container,p(s)]),v___location_previous=location.href,v___module_previous=v___module),n("pjax:start",[h,t]),n("pjax:send",[h,t])),r.xhr}function i(t,n){var a={url:window.location.href,push:!1,replace:!0,scrollTo:!1};return r(e.extend(a,m(t,n)))}function o(e){window.history.replaceState(null,"",r.state.url),window.location.replace(e)}function s(t){var n=t.state.url&&(t.state.url.includes("/csf")||t.state.url.includes("/"+v___module_file_manager)||t.state.url.includes("/webmin/edit_themes.cgi")||t.state.url.includes("/settings-user.cgi"));if(e(".__page").hasClass("progressing")||n)return void(n&&get_pjax_content(t.state.url));if(e(".container-fluid-loading").length)return theme.veiled(1),void theme_reload(1);E||l(r.xhr);var a,i=r.state,s=t.state;if(s&&s.container){if(E&&C==s.url)return;if(i){if(i.id===s.id)return;a=i.id<s.id?"forward":"back"}var c=P[s.id]||[],u=c[0]||s.container,d=e(u),f=c[1];if(d.length){i&&j(a,i.id,[u,p(d)]);var h=e.Event("pjax:popstate",{state:s,direction:a});d.trigger(h);var m={id:s.id,url:s.url,container:u,push:!1,fragment:s.fragment,timeout:s.timeout,scrollTo:!1};if(f){d.trigger("pjax:start",[null,m]),r.state=s,s.title&&(document.title=s.title);var _=e.Event("pjax:beforeReplace",{state:s,previousState:i});d.trigger(_,[f,m]),d.html(f),d.trigger("pjax:end",[null,m])}else r(m);d[0].offsetHeight,theme_title_generate()}else o(location.href)}E=!1}function c(t){var n=e.isFunction(t.url)?t.url():t.url,a=t.type?t.type.toUpperCase():"GET",r=e("<form>",{method:"GET"===a?"GET":"POST",action:n,style:"display:none"});"GET"!==a&&"POST"!==a&&r.append(e("<input>",{type:"hidden",name:"_method",value:a.toLowerCase()}));var i=t.data;if("string"==typeof i)e.each(i.split("&"),function(t,n){var a=n.split("=");r.append(e("<input>",{type:"hidden",name:a[0],value:a[1]}))});else if(e.isArray(i))e.each(i,function(t,n){r.append(e("<input>",{type:"hidden",name:n.name,value:n.value}))});else if("object"==typeof i){var o;for(o in i)r.append(e("<input>",{type:"hidden",name:o,value:i[o]}))}e(document.body).append(r),r.submit()}function l(t){t&&t.readyState<4&&(t.onreadystatechange=e.noop,t.abort())}function u(){return(new Date).getTime()}function p(e){var t=e.clone();return t.find("script").each(function(){this.src||jQuery._data(this,"globalEval",!1)}),t.contents()}function d(e){return e.search=e.search.replace(/([?&])(_pjax|_)=[^&]*/g,""),e.href.replace(/\?($|#)/,"$1")}function f(e){var t=document.createElement("a");return t.href=e,t}function h(e){return e.href.replace(/#.*/,"")}function m(t,n){return t&&n?(n=e.extend({},n),n.container=t,n):e.isPlainObject(t)?t:{container:t}}function _(e,t){return e.filter(t).add(e.find(t))}function v(t){return e.parseHTML(t,document,!0)}function g(t,n,a){var r={},i=/<html/i.test(t),o=t.match(/.*<html.*data-redirect="(.*?)"/),s=String();o&&o[1]&&(s=o[1]);var c=n.getResponseHeader("X-PJAX-URL");if(r.url=c?d(f(c)):a.requestUrl,s&&(r.url=s),i){var l=e(v(t.match(/<head[^>]*>([\s\S.]*)<\/head>/i)[0])),u=t.match(/<body[^>]*>([\s\S.]*)<\/body>/i);if(u&&u.length)var p=e(v(u[0]));else var p=e(v(extract_content(t,"<body>","</body>",0)))}else var l=p=e(v(t));if(0===p.length)return r;if(r.title=_(l,"title").last().text(),a.fragment){if("body"===a.fragment)var h=p;else var h=_(p,a.fragment).first();h.length&&(r.contents="body"===a.fragment?h:h.contents(),r.title||(r.title=h.attr("title")||h.data("title")))}else i||(r.contents=p);return r.contents&&(r.contents=r.contents.not(function(){return e(this).is("title")}),r.contents.find("title").remove(),r.scripts=_(r.contents,"script[src]").remove(),r.contents=r.contents.not(r.scripts)),r.title&&(r.title=e.trim(r.title)),r}function x(t){if(t){var n=e("script[src]");t.each(function(){var t=this.src;if(!n.filter(function(){return this.src===t}).length){var a=document.createElement("script"),r=e(this).attr("type");r&&(a.type=r),a.src=e(this).attr("src"),document.head.appendChild(a)}})}}function y(t,n,a){("csf"!==v___module&&v___module!==v___module_file_manager&&!core.curModuleFile("webmin","edit_themes.cgi")&&"settings-user.cgi"!==v___location_file||a)&&(a&&(t=e.pjax.state.id,n=[e.pjax.options.container,p(a[0])],e.pjax.state={id:u(),url:a[1],title:a[2],container:e.pjax.options.container,fragment:e.pjax.options.fragment,timeout:e.pjax.options.timeout},window.history.pushState(e.pjax.state,a[2],a[1])),P[t]=n,q.push(t),w(X,0),w(q,r.defaults.maxCacheLength))}function j(e,t,n){var a,i;P[t]=n,"forward"===e?(a=q,i=X):(a=X,i=q),a.push(t),(t=i.pop())&&delete P[t],w(a,r.defaults.maxCacheLength)}function w(e,t){for(;e.length>t;)delete P[e.shift()]}function b(){return e("meta").filter(function(){var t=e(this).attr("http-equiv");return t&&"X-PJAX-VERSION"===t.toUpperCase()}).attr("content")}function T(){e.fn.pjax=t,e.pjax=r,e.pjax.enable=e.noop,e.pjax.disable=S,e.pjax.click=n,e.pjax.submit=a,e.pjax.reload=i,e.pjax.defaults={timeout:650,push:!0,replace:!1,type:"GET",dataType:"html",scrollTo:0,maxCacheLength:20,version:b},e(window).on("popstate.pjax",s)}function S(){e.fn.pjax=function(){return this},e.pjax=c,e.pjax.enable=T,e.pjax.disable=e.noop,e.pjax.click=e.noop,e.pjax.submit=e.noop,e.pjax.reload=function(){window.location.reload()},e(window).off("popstate.pjax",s)}var E=!0,C=window.location.href,R=window.history.state;R&&R.container&&(r.state=R),"state"in window.history&&(E=!1);var P={},X=[],q=[];r.cache=y,e.event.props&&e.inArray("state",e.event.props)<0?e.event.props.push("state"):"state"in e.Event.prototype||e.event.addProp("state"),e.support.pjax=window.history&&window.history.pushState&&window.history.replaceState&&!navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]\D|WebApps\/.+CFNetwork)/),e.support.pjax?T():S()}(jQuery);/*!
 * jQuery Mousewheel 3.1.13
 * Copyright 2015 jQuery Foundation and other contributors
 * Released under the MIT license.
 */
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(e){function t(t){var r=t||window.event,l=s.call(arguments,1),c=0,u=0,f=0,h=0,m=0,p=0;if(t=e.event.fix(r),t.type="mousewheel","detail"in r&&(f=-1*r.detail),"wheelDelta"in r&&(f=r.wheelDelta),"wheelDeltaY"in r&&(f=r.wheelDeltaY),"wheelDeltaX"in r&&(u=-1*r.wheelDeltaX),"axis"in r&&r.axis===r.HORIZONTAL_AXIS&&(u=-1*f,f=0),c=0===f?u:f,"deltaY"in r&&(f=-1*r.deltaY,c=f),"deltaX"in r&&(u=r.deltaX,0===f&&(c=-1*u)),0!==f||0!==u){if(1===r.deltaMode){var g=e.data(this,"mousewheel-line-height");c*=g,f*=g,u*=g}else if(2===r.deltaMode){var v=e.data(this,"mousewheel-page-height");c*=v,f*=v,u*=v}if(h=Math.max(Math.abs(f),Math.abs(u)),(!i||i>h)&&(i=h,a(r,h)&&(i/=40)),a(r,h)&&(c/=40,u/=40,f/=40),c=Math[c>=1?"floor":"ceil"](c/i),u=Math[u>=1?"floor":"ceil"](u/i),f=Math[f>=1?"floor":"ceil"](f/i),d.settings.normalizeOffset&&this.getBoundingClientRect){var x=this.getBoundingClientRect();m=t.clientX-x.left,p=t.clientY-x.top}return t.deltaX=u,t.deltaY=f,t.deltaFactor=i,t.offsetX=m,t.offsetY=p,t.deltaMode=0,l.unshift(t,c,u,f),n&&clearTimeout(n),n=setTimeout(o,200),(e.event.dispatch||e.event.handle).apply(this,l)}}function o(){i=null}function a(e,t){return d.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}var n,i,r=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],l="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],s=Array.prototype.slice;if(e.event.fixHooks)for(var c=r.length;c;)e.event.fixHooks[r[--c]]=e.event.mouseHooks;var d=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var o=l.length;o;)this.addEventListener(l[--o],t,!1);else this.onmousewheel=t;e.data(this,"mousewheel-line-height",d.getLineHeight(this)),e.data(this,"mousewheel-page-height",d.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var o=l.length;o;)this.removeEventListener(l[--o],t,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var o=e(t),a=o["offsetParent"in e.fn?"offsetParent":"parent"]();return a.length||(a=e("body")),parseInt(a.css("fontSize"),10)||parseInt(o.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}),/*!
 * Malihu Scrollbar Plugin 3.1.5
 * Copyright 2014 Manos Malihutsakis (http://manos.malihu.gr)
 * Licensed under MIT (https://github.com/malihu/malihu-custom-scrollbar-plugin/blob/master/COPYING.txt)
 */
/*
 == malihu jquery custom scrollbar plugin ==
 Version: 3.1.5
 Plugin URI: http://manos.malihu.gr/jquery-custom-content-scroller
 Author: malihu
 Author URI: http://manos.malihu.gr
 License: MIT License (MIT)
 */
/*
 Copyright Manos Malihutsakis (email: manos@malihu.gr)

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.
 */
function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e:e(jQuery,window,document)}(function(e){!function(t){var o="function"==typeof define&&define.amd,a="undefined"!=typeof module&&module.exports,n="https:"==document.location.protocol?"https:":"http:";o||(a?require("jquery-mousewheel")(e):e.event.special.mousewheel||e("head").append(decodeURI("%3Cscript src="+n+"//cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js%3E%3C/script%3E"))),function(){var t,o="mCustomScrollbar",a={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},n=0,i={},r=window.attachEvent&&!window.addEventListener?1:0,l=!1,s=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],c={init:function(t){var t=e.extend(!0,{},a,t),o=d.call(this);if(t.live){var r=t.liveSelector||this.selector||".mCustomScrollbar",l=e(r);if("off"===t.live)return void f(r);i[r]=setTimeout(function(){l.mCustomScrollbar(t),"once"===t.live&&l.length&&f(r)},500)}else f(r);return t.setWidth=t.set_width?t.set_width:t.setWidth,t.setHeight=t.set_height?t.set_height:t.setHeight,t.axis=t.horizontalScroll?"x":h(t.axis),t.scrollInertia=t.scrollInertia>0&&t.scrollInertia<17?17:t.scrollInertia,"object"!=typeof t.mouseWheel&&1==t.mouseWheel&&(t.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),t.mouseWheel.scrollAmount=t.mouseWheelPixels?t.mouseWheelPixels:t.mouseWheel.scrollAmount,t.mouseWheel.normalizeDelta=t.advanced.normalizeMouseWheelDelta?t.advanced.normalizeMouseWheelDelta:t.mouseWheel.normalizeDelta,t.scrollButtons.scrollType=m(t.scrollButtons.scrollType),u(t),e(o).each(function(){var o=e(this);if(!o.data("mCS")){o.data("mCS",{idx:++n,opt:t,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:o.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var a=o.data("mCS"),i=a.opt,r=o.data("mcs-axis"),l=o.data("mcs-scrollbar-position"),d=o.data("mcs-theme");r&&(i.axis=r),l&&(i.scrollbarPosition=l),d&&(i.theme=d,u(i)),p.call(this),a&&i.callbacks.onCreate&&"function"==typeof i.callbacks.onCreate&&i.callbacks.onCreate.call(this),e("#mCSB_"+a.idx+"_container img:not(."+s[2]+")").addClass(s[2]),c.update.call(null,o)}})},update:function(t,o){return e(t||d.call(this)).each(function(){var t=e(this);if(t.data("mCS")){var a=t.data("mCS"),n=a.opt,i=e("#mCSB_"+a.idx+"_container"),r=e("#mCSB_"+a.idx),l=[e("#mCSB_"+a.idx+"_dragger_vertical"),e("#mCSB_"+a.idx+"_dragger_horizontal")];if(!i.length)return;a.tweenRunning&&N(t),o&&a&&n.callbacks.onBeforeUpdate&&"function"==typeof n.callbacks.onBeforeUpdate&&n.callbacks.onBeforeUpdate.call(this),t.hasClass(s[3])&&t.removeClass(s[3]),t.hasClass(s[4])&&t.removeClass(s[4]),r.css("max-height","none"),r.height()!==t.height()&&r.css("max-height",t.height()),v.call(this),"y"===n.axis||n.advanced.autoExpandHorizontalScroll||i.css("width",g(i)),a.overflowed=C.call(this),T.call(this),n.autoDraggerLength&&S.call(this),_.call(this),y.call(this);var c=[Math.abs(i[0].offsetTop),Math.abs(i[0].offsetLeft)];"x"!==n.axis&&(a.overflowed[0]?l[0].height()>l[0].parent().height()?b.call(this):(V(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}),a.contentReset.y=null):(b.call(this),"y"===n.axis?B.call(this):"yx"===n.axis&&a.overflowed[1]&&V(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==n.axis&&(a.overflowed[1]?l[1].width()>l[1].parent().width()?b.call(this):(V(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}),a.contentReset.x=null):(b.call(this),"x"===n.axis?B.call(this):"yx"===n.axis&&a.overflowed[0]&&V(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),o&&a&&(2===o&&n.callbacks.onImageLoad&&"function"==typeof n.callbacks.onImageLoad?n.callbacks.onImageLoad.call(this):3===o&&n.callbacks.onSelectorChange&&"function"==typeof n.callbacks.onSelectorChange?n.callbacks.onSelectorChange.call(this):n.callbacks.onUpdate&&"function"==typeof n.callbacks.onUpdate&&n.callbacks.onUpdate.call(this)),q.call(this)}})},scrollTo:function(t,o){if(void 0!==t&&null!=t){return e(d.call(this)).each(function(){var a=e(this);if(a.data("mCS")){var n=a.data("mCS"),i=n.opt,r={trigger:"external",scrollInertia:i.scrollInertia,scrollOffset:0,scrollOffsetEdge:!0,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},l=e.extend(!0,{},r,o),s=Y.call(this,t),c=l.scrollInertia>0&&l.scrollInertia<17?17:l.scrollInertia;s[0]=X.call(this,s[0],"y"),s[1]=X.call(this,s[1],"x"),l.moveDragger&&(s[0]*=n.scrollRatio.y,s[1]*=n.scrollRatio.x),l.dur=oe()?0:c,setTimeout(function(){if(null!==s[0]&&void 0!==s[0]&&"x"!==i.axis&&n.overflowed[0]){l.dir="y",l.overwrite="all";var o=s[0];if(0!==l.scrollOffset&&"object"==typeof l.scrollOffset){var r=l.scrollOffset[0],c=parseInt(r.height()),d=l.scrollOffset[1],u=l.scrollOffset[2],f=parseInt(c/d),h=parseInt(c/u);o-=f;var m=t.offset().top-r.offset().top;(function(t,o){var a=e(t),n=o,i=n.scrollTop()+50,r=i+n.height(),l=a.offset().top;return l+a.height()<=r&&l>=i})(t,r)&&c-m>h&&(l.scrollOffsetEdge=!1)}l.scrollOffsetEdge&&V(a,o.toString(),l)}null!==s[1]&&void 0!==s[1]&&"y"!==i.axis&&n.overflowed[1]&&(l.dir="x",l.overwrite="none",V(a,s[1].toString(),l))},l.timeout)}})}},stop:function(){return e(d.call(this)).each(function(){var t=e(this);t.data("mCS")&&N(t)})},disable:function(t){return e(d.call(this)).each(function(){var o=e(this);o.data("mCS")&&(o.data("mCS"),q.call(this,"remove"),B.call(this),t&&b.call(this),T.call(this,!0),o.addClass(s[3]))})},destroy:function(){var t=d.call(this);return e(t).each(function(){var a=e(this);if(a.data("mCS")){var n=a.data("mCS"),i=n.opt,r=e("#mCSB_"+n.idx),l=e("#mCSB_"+n.idx+"_container"),c=e(".mCSB_"+n.idx+"_scrollbar");i.live&&f(i.liveSelector||e(t).selector),q.call(this,"remove"),B.call(this),b.call(this),a.removeData("mCS"),J(this,"mcs"),c.remove(),l.find("img."+s[2]).removeClass(s[2]),r.replaceWith(l.contents()),a.removeClass(o+" _mCS_"+n.idx+" "+s[6]+" "+s[7]+" "+s[5]+" "+s[3]).addClass(s[4])}})}},d=function(){return"object"!=typeof e(this)||e(this).length<1?".mCustomScrollbar":this},u=function(t){var o=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],a=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"],n=["minimal","minimal-dark"],i=["minimal","minimal-dark"],r=["minimal","minimal-dark"];t.autoDraggerLength=!(e.inArray(t.theme,o)>-1)&&t.autoDraggerLength,t.autoExpandScrollbar=!(e.inArray(t.theme,a)>-1)&&t.autoExpandScrollbar,t.scrollButtons.enable=!(e.inArray(t.theme,n)>-1)&&t.scrollButtons.enable,t.autoHideScrollbar=e.inArray(t.theme,i)>-1||t.autoHideScrollbar,t.scrollbarPosition=e.inArray(t.theme,r)>-1?"outside":t.scrollbarPosition},f=function(e){i[e]&&(clearTimeout(i[e]),J(i,e))},h=function(e){return"yx"===e||"xy"===e||"auto"===e?"yx":"x"===e||"horizontal"===e?"x":"y"},m=function(e){return"stepped"===e||"pixels"===e||"step"===e||"click"===e?"stepped":"stepless"},p=function(){var t=e(this),a=t.data("mCS"),n=a.opt,i=n.autoExpandScrollbar?" "+s[1]+"_expand":"",r=["<div id='mCSB_"+a.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+a.idx+"_scrollbar mCS-"+n.theme+" mCSB_scrollTools_vertical"+i+"'><div class='"+s[12]+"'><div id='mCSB_"+a.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>","<div id='mCSB_"+a.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+a.idx+"_scrollbar mCS-"+n.theme+" mCSB_scrollTools_horizontal"+i+"'><div class='"+s[12]+"'><div id='mCSB_"+a.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>"],l="yx"===n.axis?"mCSB_vertical_horizontal":"x"===n.axis?"mCSB_horizontal":"mCSB_vertical",c="yx"===n.axis?r[0]+r[1]:"x"===n.axis?r[1]:r[0],d="yx"===n.axis?"<div id='mCSB_"+a.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",u=n.autoHideScrollbar?" "+s[6]:"",f="x"!==n.axis&&"rtl"===a.langDir?" "+s[7]:"";n.setWidth&&t.css("width",n.setWidth),n.setHeight&&t.css("height",n.setHeight),n.setLeft="y"!==n.axis&&"rtl"===a.langDir?"989999px":n.setLeft,t.addClass(o+" _mCS_"+a.idx+u+f).wrapInner("<div id='mCSB_"+a.idx+"' class='mCustomScrollBox mCS-"+n.theme+" "+l+"'><div id='mCSB_"+a.idx+"_container' class='mCSB_container' style='position:relative; top:"+n.setTop+"; left:"+n.setLeft+";' dir='"+a.langDir+"' /></div>");var h=e("#mCSB_"+a.idx),m=e("#mCSB_"+a.idx+"_container");"y"===n.axis||n.advanced.autoExpandHorizontalScroll||m.css("width",g(m)),"outside"===n.scrollbarPosition?("static"===t.css("position")&&t.css("position","relative"),t.css("overflow","visible"),h.addClass("mCSB_outside").after(c)):(h.addClass("mCSB_inside").append(c),m.wrap(d)),x.call(this);var p=[e("#mCSB_"+a.idx+"_dragger_vertical"),e("#mCSB_"+a.idx+"_dragger_horizontal")];p[0].css("min-height",p[0].height()),p[1].css("min-width",p[1].width())},g=function(t){var o=[t[0].scrollWidth,Math.max.apply(Math,t.children().map(function(){return e(this).outerWidth(!0)}).get())],a=t.parent().width();return o[0]>a?o[0]:o[1]>a?o[1]:"100%"},v=function(){var t=e(this),o=t.data("mCS"),a=o.opt,n=e("#mCSB_"+o.idx+"_container");if(a.advanced.autoExpandHorizontalScroll&&"y"!==a.axis){n.css({width:"auto","min-width":0,"overflow-x":"scroll"});var i=Math.ceil(n[0].scrollWidth);3===a.advanced.autoExpandHorizontalScroll||2!==a.advanced.autoExpandHorizontalScroll&&i>n.parent().width()?n.css({width:i,"min-width":"100%","overflow-x":"inherit"}):n.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(n[0].getBoundingClientRect().right+.4)-Math.floor(n[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap()}},x=function(){var t=e(this),o=t.data("mCS"),a=o.opt,n=e(".mCSB_"+o.idx+"_scrollbar:first"),i=ee(a.scrollButtons.tabindex)?"tabindex='"+a.scrollButtons.tabindex+"'":"",r=["<a href='#' class='"+s[13]+"' "+i+" />","<a href='#' class='"+s[14]+"' "+i+" />","<a href='#' class='"+s[15]+"' "+i+" />","<a href='#' class='"+s[16]+"' "+i+" />"],l=["x"===a.axis?r[2]:r[0],"x"===a.axis?r[3]:r[1],r[2],r[3]];a.scrollButtons.enable&&n.prepend(l[0]).append(l[1]).next(".mCSB_scrollTools").prepend(l[2]).append(l[3])},S=function(){var t=e(this),o=t.data("mCS"),a=e("#mCSB_"+o.idx),n=e("#mCSB_"+o.idx+"_container"),i=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")],l=[a.height()/n.outerHeight(!1),a.width()/n.outerWidth(!1)],s=[parseInt(i[0].css("min-height")),Math.round(l[0]*i[0].parent().height()),parseInt(i[1].css("min-width")),Math.round(l[1]*i[1].parent().width())],c=r&&s[1]<s[0]?s[0]:s[1],d=r&&s[3]<s[2]?s[2]:s[3];i[0].css({height:c,"max-height":i[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":s[0]+"px"}),i[1].css({width:d,"max-width":i[1].parent().width()-10})},_=function(){var t=e(this),o=t.data("mCS"),a=e("#mCSB_"+o.idx),n=e("#mCSB_"+o.idx+"_container"),i=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")],r=[n.outerHeight(!1)-a.height(),n.outerWidth(!1)-a.width()],l=[r[0]/(i[0].parent().height()-i[0].height()),r[1]/(i[1].parent().width()-i[1].width())];o.scrollRatio={y:l[0],x:l[1]}},w=function(e,t,o){var a=o?s[0]+"_expanded":"",n=e.closest(".mCSB_scrollTools");"active"===t?(e.toggleClass(s[0]+" "+a),n.toggleClass(s[1]),e[0]._draggable=e[0]._draggable?0:1):e[0]._draggable||("hide"===t?(e.removeClass(s[0]),n.removeClass(s[1])):(e.addClass(s[0]),n.addClass(s[1])))},C=function(){var t=e(this),o=t.data("mCS"),a=e("#mCSB_"+o.idx),n=e("#mCSB_"+o.idx+"_container"),i=null==o.overflowed?n.height():n.outerHeight(!1),r=null==o.overflowed?n.width():n.outerWidth(!1),l=n[0].scrollHeight,s=n[0].scrollWidth;return l>i&&(i=l),s>r&&(r=s),[i>a.height(),r>a.width()]},b=function(){var t=e(this),o=t.data("mCS"),a=o.opt,n=e("#mCSB_"+o.idx),i=e("#mCSB_"+o.idx+"_container"),r=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")];if(N(t),("x"!==a.axis&&!o.overflowed[0]||"y"===a.axis&&o.overflowed[0])&&(r[0].add(i).css("top",0),V(t,"_resetY")),"y"!==a.axis&&!o.overflowed[1]||"x"===a.axis&&o.overflowed[1]){var l=dx=0;"rtl"===o.langDir&&(l=n.width()-i.outerWidth(!1),dx=Math.abs(l/o.scrollRatio.x)),i.css("left",l),r[1].css("left",dx),V(t,"_resetX")}},y=function(){function t(){i=setTimeout(function(){e.event.special.mousewheel?(clearTimeout(i),D.call(o[0])):t()},100)}var o=e(this),a=o.data("mCS"),n=a.opt;if(!a.bindEvents){if(M.call(this),n.contentTouchScroll&&O.call(this),I.call(this),n.mouseWheel.enable){var i;t()}A.call(this),H.call(this),n.advanced.autoScrollOnFocus&&z.call(this),n.scrollButtons.enable&&P.call(this),n.keyboard.enable&&U.call(this),a.bindEvents=!0}},B=function(){var t=e(this),o=t.data("mCS"),a=o.opt,n="mCS_"+o.idx,i=".mCSB_"+o.idx+"_scrollbar",r=e("#mCSB_"+o.idx+",#mCSB_"+o.idx+"_container,#mCSB_"+o.idx+"_container_wrapper,"+i+" ."+s[12]+",#mCSB_"+o.idx+"_dragger_vertical,#mCSB_"+o.idx+"_dragger_horizontal,"+i+">a"),l=e("#mCSB_"+o.idx+"_container");a.advanced.releaseDraggableSelectors&&r.add(e(a.advanced.releaseDraggableSelectors)),a.advanced.extraDraggableSelectors&&r.add(e(a.advanced.extraDraggableSelectors)),o.bindEvents&&(e(document).add(e(!R()||top.document)).unbind("."+n),r.each(function(){e(this).unbind("."+n)}),clearTimeout(t[0]._focusTimeout),J(t[0],"_focusTimeout"),clearTimeout(o.sequential.step),J(o.sequential,"step"),clearTimeout(l[0].onCompleteTimeout),J(l[0],"onCompleteTimeout"),o.bindEvents=!1)},T=function(t){var o=e(this),a=o.data("mCS"),n=a.opt,i=e("#mCSB_"+a.idx+"_container_wrapper"),r=i.length?i:e("#mCSB_"+a.idx+"_container"),l=[e("#mCSB_"+a.idx+"_scrollbar_vertical"),e("#mCSB_"+a.idx+"_scrollbar_horizontal")],c=[l[0].find(".mCSB_dragger"),l[1].find(".mCSB_dragger")];"x"!==n.axis&&(a.overflowed[0]&&!t?(l[0].add(c[0]).add(l[0].children("a")).css("display","block"),r.removeClass(s[8]+" "+s[10])):(n.alwaysShowScrollbar?(2!==n.alwaysShowScrollbar&&c[0].css("display","none"),r.removeClass(s[10])):(l[0].css("display","none"),r.addClass(s[10])),r.addClass(s[8]))),"y"!==n.axis&&(a.overflowed[1]&&!t?(l[1].add(c[1]).add(l[1].children("a")).css("display","block"),r.removeClass(s[9]+" "+s[11])):(n.alwaysShowScrollbar?(2!==n.alwaysShowScrollbar&&c[1].css("display","none"),r.removeClass(s[11])):(l[1].css("display","none"),r.addClass(s[11])),r.addClass(s[9]))),a.overflowed[0]||a.overflowed[1]?o.removeClass(s[5]):o.addClass(s[5])},k=function(t){var o=t.type,a=t.target.ownerDocument!==document&&null!==frameElement?[e(frameElement).offset().top,e(frameElement).offset().left]:null,n=R()&&t.target.ownerDocument!==top.document&&null!==frameElement?[e(t.view.frameElement).offset().top,e(t.view.frameElement).offset().left]:[0,0];switch(o){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return a?[t.originalEvent.pageY-a[0]+n[0],t.originalEvent.pageX-a[1]+n[1],!1]:[t.originalEvent.pageY,t.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var i=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],r=t.originalEvent.touches.length||t.originalEvent.changedTouches.length;return t.target.ownerDocument!==document?[i.screenY,i.screenX,r>1]:[i.pageY,i.pageX,r>1];default:return a?[t.pageY-a[0]+n[0],t.pageX-a[1]+n[1],!1]:[t.pageY,t.pageX,!1]}},M=function(){function t(e,t,a,n){if(f[0].idleTimer=c.scrollInertia<233?250:0,o.attr("id")===u[1])var r="x",l=(o[0].offsetLeft-t+n)*s.scrollRatio.x;else var r="y",l=(o[0].offsetTop-e+a)*s.scrollRatio.y;V(i,l.toString(),{dir:r,drag:!0})}var o,a,n,i=e(this),s=i.data("mCS"),c=s.opt,d="mCS_"+s.idx,u=["mCSB_"+s.idx+"_dragger_vertical","mCSB_"+s.idx+"_dragger_horizontal"],f=e("#mCSB_"+s.idx+"_container"),h=e("#"+u[0]+",#"+u[1]),m=c.advanced.releaseDraggableSelectors?h.add(e(c.advanced.releaseDraggableSelectors)):h,p=c.advanced.extraDraggableSelectors?e(!R()||top.document).add(e(c.advanced.extraDraggableSelectors)):e(!R()||top.document);h.bind("contextmenu."+d,function(e){e.preventDefault()}).bind("mousedown."+d+" touchstart."+d+" pointerdown."+d+" MSPointerDown."+d,function(t){if(t.stopImmediatePropagation(),t.preventDefault(),K(t)){l=!0,r&&(document.onselectstart=function(){return!1}),W.call(f,!1),N(i),o=e(this);var s=o.offset(),d=k(t)[0]-s.top,u=k(t)[1]-s.left,h=o.height()+s.top,m=o.width()+s.left;d<h&&d>0&&u<m&&u>0&&(a=d,n=u),w(o,"active",c.autoExpandScrollbar)}}).bind("touchmove."+d,function(e){e.stopImmediatePropagation(),e.preventDefault();var i=o.offset();t(a,n,k(e)[0]-i.top,k(e)[1]-i.left)}),e(document).add(p).bind("mousemove."+d+" pointermove."+d+" MSPointerMove."+d,function(e){if(o){var i=o.offset(),r=k(e)[0]-i.top,l=k(e)[1]-i.left;if(a===r&&n===l)return;t(a,n,r,l)}}).add(m).bind("mouseup."+d+" touchend."+d+" pointerup."+d+" MSPointerUp."+d,function(e){o&&(w(o,"active",c.autoExpandScrollbar),o=null),l=!1,r&&(document.onselectstart=null),W.call(f,!0)})},O=function(){function o(e){if(!$(e)||l||k(e)[2])return void(t=0);t=1,w=0,C=0,c=1,b.removeClass("mCS_touch_action");var o=O.offset();d=k(e)[0]-o.top,u=k(e)[1]-o.left,A=[k(e)[0],k(e)[1]]}function a(e){if($(e)&&!l&&!k(e)[2]&&(B.documentTouchScroll||e.preventDefault(),e.stopImmediatePropagation(),(!C||w)&&c)){p=Z();var t=M.offset(),o=k(e)[0]-t.top,a=k(e)[1]-t.left;if(D.push(o),E.push(a),A[2]=Math.abs(k(e)[0]-A[0]),A[3]=Math.abs(k(e)[1]-A[1]),y.overflowed[0])var n=I[0].parent().height()-I[0].height(),i=d-o>0&&o-d>-(n*y.scrollRatio.y)&&(2*A[3]<A[2]||"yx"===B.axis);if(y.overflowed[1])var r=I[1].parent().width()-I[1].width(),f=u-a>0&&a-u>-(r*y.scrollRatio.x)&&(2*A[2]<A[3]||"yx"===B.axis);i||f?(P||e.preventDefault(),w=1):(C=1,b.addClass("mCS_touch_action")),P&&e.preventDefault(),S="yx"===B.axis?[d-o,u-a]:"x"===B.axis?[null,u-a]:[d-o,null],O[0].idleTimer=250,y.overflowed[0]&&s(S[0],W,"mcsLinearOut","y","all",!0),y.overflowed[1]&&s(S[1],W,"mcsLinearOut","x",L,!0)}}function n(e){if(!$(e)||l||k(e)[2])return void(t=0);t=1,e.stopImmediatePropagation(),N(b),m=Z();var o=M.offset();f=k(e)[0]-o.top,h=k(e)[1]-o.left,D=[],E=[]}function i(e){if($(e)&&!l&&!k(e)[2]){c=0,e.stopImmediatePropagation(),w=0,C=0,g=Z();var t=M.offset(),o=k(e)[0]-t.top,a=k(e)[1]-t.left;if(!(g-p>30)){x=1e3/(g-m);var n=x<2.5,i=n?[D[D.length-2],E[E.length-2]]:[0,0];v=n?[o-i[0],a-i[1]]:[o-f,a-h];var d=[Math.abs(v[0]),Math.abs(v[1])];x=n?[Math.abs(v[0]/4),Math.abs(v[1]/4)]:[x,x];var u=[Math.abs(O[0].offsetTop)-v[0]*r(d[0]/x[0],x[0]),Math.abs(O[0].offsetLeft)-v[1]*r(d[1]/x[1],x[1])];S="yx"===B.axis?[u[0],u[1]]:"x"===B.axis?[null,u[1]]:[u[0],null],_=[4*d[0]+B.scrollInertia,4*d[1]+B.scrollInertia];var b=parseInt(B.contentTouchScroll)||0;S[0]=d[0]>b?S[0]:0,S[1]=d[1]>b?S[1]:0,y.overflowed[0]&&s(S[0],_[0],"mcsEaseOut","y",L,!1),y.overflowed[1]&&s(S[1],_[1],"mcsEaseOut","x",L,!1)}}}function r(e,t){var o=[1.5*t,2*t,t/1.5,t/2];return e>90?t>4?o[0]:o[3]:e>60?t>3?o[3]:o[2]:e>30?t>8?o[1]:t>6?o[0]:t>4?t:o[2]:t>8?t:o[3]}function s(e,t,o,a,n,i){e&&V(b,e.toString(),{dur:t,scrollEasing:o,dir:a,overwrite:n,drag:i})}var c,d,u,f,h,m,p,g,v,x,S,_,w,C,b=e(this),y=b.data("mCS"),B=y.opt,T="mCS_"+y.idx,M=e("#mCSB_"+y.idx),O=e("#mCSB_"+y.idx+"_container"),I=[e("#mCSB_"+y.idx+"_dragger_vertical"),e("#mCSB_"+y.idx+"_dragger_horizontal")],D=[],E=[],W=0,L="yx"===B.axis?"none":"all",A=[],z=O.find("iframe"),H=["touchstart."+T+" pointerdown."+T+" MSPointerDown."+T,"touchmove."+T+" pointermove."+T+" MSPointerMove."+T,"touchend."+T+" pointerup."+T+" MSPointerUp."+T],P=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;O.bind(H[0],function(e){o(e)}).bind(H[1],function(e){a(e)}),M.bind(H[0],function(e){n(e)}).bind(H[2],function(e){i(e)}),z.length&&z.each(function(){e(this).bind("load",function(){R(this)&&e(this.contentDocument||this.contentWindow.document).bind(H[0],function(e){o(e),n(e)}).bind(H[1],function(e){a(e)}).bind(H[2],function(e){i(e)})})})},I=function(){function o(){return window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type?document.selection.createRange().text:0}function a(e,t,o){c.type=o&&n?"stepped":"stepless",c.scrollAmount=10,F(i,e,t,"mcsLinearOut",o?60:null)}var n,i=e(this),r=i.data("mCS"),s=r.opt,c=r.sequential,d="mCS_"+r.idx,u=e("#mCSB_"+r.idx+"_container"),f=u.parent();u.bind("mousedown."+d,function(e){t||n||(n=1,l=!0)}).add(document).bind("mousemove."+d,function(e){if(!t&&n&&o()){var i=u.offset(),l=k(e)[0]-i.top+u[0].offsetTop,d=k(e)[1]-i.left+u[0].offsetLeft;l>0&&l<f.height()&&d>0&&d<f.width()?c.step&&a("off",null,"stepped"):("x"!==s.axis&&r.overflowed[0]&&(l<0?a("on",38):l>f.height()&&a("on",40)),"y"!==s.axis&&r.overflowed[1]&&(d<0?a("on",37):d>f.width()&&a("on",39)))}}).bind("mouseup."+d+" dragend."+d,function(e){t||(n&&(n=0,a("off",null)),l=!1)})},D=function(){function t(t,i){if(N(o),!L(o,t.target)){var c="auto"!==n.mouseWheel.deltaFactor?parseInt(n.mouseWheel.deltaFactor):r&&t.deltaFactor<100?100:t.deltaFactor||100,d=n.scrollInertia;if("x"===n.axis||"x"===n.mouseWheel.axis)var u="x",f=[Math.round(c*a.scrollRatio.x),parseInt(n.mouseWheel.scrollAmount)],h="auto"!==n.mouseWheel.scrollAmount?f[1]:f[0]>=l.width()?.9*l.width():f[0],m=Math.abs(e("#mCSB_"+a.idx+"_container")[0].offsetLeft),p=s[1][0].offsetLeft,g=s[1].parent().width()-s[1].width(),v="y"===n.mouseWheel.axis?t.deltaY||i:t.deltaX;else var u="y",f=[Math.round(c*a.scrollRatio.y),parseInt(n.mouseWheel.scrollAmount)],h="auto"!==n.mouseWheel.scrollAmount?f[1]:f[0]>=l.height()?.9*l.height():f[0],m=Math.abs(e("#mCSB_"+a.idx+"_container")[0].offsetTop),p=s[0][0].offsetTop,g=s[0].parent().height()-s[0].height(),v=t.deltaY||i;"y"===u&&!a.overflowed[0]||"x"===u&&!a.overflowed[1]||((n.mouseWheel.invert||t.webkitDirectionInvertedFromDevice)&&(v=-v),n.mouseWheel.normalizeDelta&&(v=v<0?-1:1),(v>0&&0!==p||v<0&&p!==g||n.mouseWheel.preventDefault)&&(t.stopImmediatePropagation(),t.preventDefault()),t.deltaFactor<5&&!n.mouseWheel.normalizeDelta&&(h=t.deltaFactor,d=17),V(o,(m-v*h).toString(),{dir:u,dur:d}))}}if(e(this).data("mCS")){var o=e(this),a=o.data("mCS"),n=a.opt,i="mCS_"+a.idx,l=e("#mCSB_"+a.idx),s=[e("#mCSB_"+a.idx+"_dragger_vertical"),e("#mCSB_"+a.idx+"_dragger_horizontal")],c=e("#mCSB_"+a.idx+"_container").find("iframe");c.length&&c.each(function(){e(this).bind("load",function(){R(this)&&e(this.contentDocument||this.contentWindow.document).bind("mousewheel."+i,function(e,o){t(e,o)})})}),l.bind("mousewheel."+i,function(e,o){t(e,o)})}},E=new Object,R=function(t){var o=!1,a=!1,n=null;if(void 0===t?a="#empty":void 0!==e(t).attr("id")&&(a=e(t).attr("id")),a!==!1&&void 0!==E[a])return E[a];if(t){try{var i=t.contentDocument||t.contentWindow.document;n=i.body.innerHTML}catch(e){}o=null!==n}else{try{var i=top.document;n=i.body.innerHTML}catch(e){}o=null!==n}return a!==!1&&(E[a]=o),o},W=function(e){var t=this.find("iframe");if(t.length){var o=e?"auto":"none";t.css("pointer-events",o)}},L=function(t,o){var a=o.nodeName.toLowerCase(),n=t.data("mCS").opt.mouseWheel.disableOver,i=["select","textarea"];return e.inArray(a,n)>-1&&!(e.inArray(a,i)>-1&&!e(o).is(":focus"))},A=function(){var t,o=e(this),a=o.data("mCS"),n="mCS_"+a.idx,i=e("#mCSB_"+a.idx+"_container"),r=i.parent(),c=e(".mCSB_"+a.idx+"_scrollbar ."+s[12]);c.bind("mousedown."+n+" touchstart."+n+" pointerdown."+n+" MSPointerDown."+n,function(o){l=!0,e(o.target).hasClass("mCSB_dragger")||(t=1)}).bind("touchend."+n+" pointerup."+n+" MSPointerUp."+n,function(e){l=!1}).bind("click."+n,function(n){if(t&&(t=0,e(n.target).hasClass(s[12])||e(n.target).hasClass("mCSB_draggerRail"))){N(o);var l=e(this),c=l.find(".mCSB_dragger");if(l.parent(".mCSB_scrollTools_horizontal").length>0){if(!a.overflowed[1])return;var d="x",u=n.pageX>c.offset().left?-1:1,f=Math.abs(i[0].offsetLeft)-u*(.9*r.width())}else{if(!a.overflowed[0])return;var d="y",u=n.pageY>c.offset().top?-1:1,f=Math.abs(i[0].offsetTop)-u*(.9*r.height())}V(o,f.toString(),{dir:d,scrollEasing:"mcsEaseInOut"})}})},z=function(){var t=e(this),o=t.data("mCS"),a=o.opt,n="mCS_"+o.idx,i=e("#mCSB_"+o.idx+"_container"),r=i.parent();i.bind("focusin."+n,function(o){var n=e(document.activeElement),l=i.find(".mCustomScrollBox").length;n.is(a.advanced.autoScrollOnFocus)&&(N(t),clearTimeout(t[0]._focusTimeout),t[0]._focusTimer=l?17*l:0,t[0]._focusTimeout=setTimeout(function(){var e=[te(n)[0],te(n)[1]],o=[i[0].offsetTop,i[0].offsetLeft],l=[o[0]+e[0]>=0&&o[0]+e[0]<r.height()-n.outerHeight(!1),o[1]+e[1]>=0&&o[0]+e[1]<r.width()-n.outerWidth(!1)],s="yx"!==a.axis||l[0]||l[1]?"all":"none";"x"===a.axis||l[0]||V(t,e[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:s,dur:0}),"y"===a.axis||l[1]||V(t,e[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:s,dur:0})},t[0]._focusTimer))})},H=function(){var t=e(this),o=t.data("mCS"),a="mCS_"+o.idx,n=e("#mCSB_"+o.idx+"_container").parent();n.bind("scroll."+a,function(t){0===n.scrollTop()&&0===n.scrollLeft()||e(".mCSB_"+o.idx+"_scrollbar").css("visibility","hidden")})},P=function(){var t=e(this),o=t.data("mCS"),a=o.opt,n=o.sequential,i="mCS_"+o.idx;e(".mCSB_"+o.idx+"_scrollbar>a").bind("contextmenu."+i,function(e){e.preventDefault()}).bind("mousedown."+i+" touchstart."+i+" pointerdown."+i+" MSPointerDown."+i+" mouseup."+i+" touchend."+i+" pointerup."+i+" MSPointerUp."+i+" mouseout."+i+" pointerout."+i+" MSPointerOut."+i+" click."+i,function(i){function r(e,o){n.scrollAmount=a.scrollButtons.scrollAmount,F(t,e,o)}if(i.preventDefault(),K(i)){var s=e(this).attr("class");switch(n.type=a.scrollButtons.scrollType,i.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===n.type)return;l=!0,o.tweenRunning=!1,r("on",s);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===n.type)return;l=!1,n.dir&&r("off",s);break;case"click":if("stepped"!==n.type||o.tweenRunning)return;r("on",s)}}})},U=function(){function t(t){function r(e,t){i.type=n.keyboard.scrollType,i.scrollAmount=n.keyboard.scrollAmount,"stepped"===i.type&&a.tweenRunning||F(o,e,t)}switch(t.type){case"blur":a.tweenRunning&&i.dir&&r("off",null);break;case"keydown":case"keyup":var l=t.keyCode?t.keyCode:t.which,u="on";if("x"!==n.axis&&(38===l||40===l)||"y"!==n.axis&&(37===l||39===l)){if((38===l||40===l)&&!a.overflowed[0]||(37===l||39===l)&&!a.overflowed[1])return;"keyup"===t.type&&(u="off"),e(document.activeElement).is(d)||(t.preventDefault(),t.stopImmediatePropagation(),r(u,l))}else if(33===l||34===l){if((a.overflowed[0]||a.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type){N(o);var f=34===l?-1:1;if("x"===n.axis||"yx"===n.axis&&a.overflowed[1]&&!a.overflowed[0])var h="x",m=Math.abs(s[0].offsetLeft)-f*(.9*c.width());else var h="y",m=Math.abs(s[0].offsetTop)-f*(.9*c.height());V(o,m.toString(),{dir:h,scrollEasing:"mcsEaseInOut"})}}else if((35===l||36===l)&&!e(document.activeElement).is(d)&&((a.overflowed[0]||a.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type)){if("x"===n.axis||"yx"===n.axis&&a.overflowed[1]&&!a.overflowed[0])var h="x",m=35===l?Math.abs(c.width()-s.outerWidth(!1)):0;else var h="y",m=35===l?Math.abs(c.height()-s.outerHeight(!1)):0;V(o,m.toString(),{dir:h,scrollEasing:"mcsEaseInOut"})}}}var o=e(this),a=o.data("mCS"),n=a.opt,i=a.sequential,r="mCS_"+a.idx,l=e("#mCSB_"+a.idx),s=e("#mCSB_"+a.idx+"_container"),c=s.parent(),d="input,textarea,select,datalist,keygen,[contenteditable='true']",u=s.find("iframe"),f=["blur."+r+" keydown."+r+" keyup."+r];u.length&&u.each(function(){e(this).bind("load",function(){R(this)&&e(this.contentDocument||this.contentWindow.document).bind(f[0],function(e){t(e)})})}),l.attr("tabindex","0").bind(f[0],function(e){t(e)})},F=function(t,o,a,n,i){function r(e){c.snapAmount&&(d.scrollAmount=c.snapAmount instanceof Array?"x"===d.dir[0]?c.snapAmount[1]:c.snapAmount[0]:c.snapAmount);var o="stepped"!==d.type,a=i?i:e?o?h/1.5:m:1e3/60,s=e?o?7.5:40:2.5,f=[Math.abs(u[0].offsetTop),Math.abs(u[0].offsetLeft)],p=[l.scrollRatio.y>10?10:l.scrollRatio.y,l.scrollRatio.x>10?10:l.scrollRatio.x],g="x"===d.dir[0]?f[1]+d.dir[1]*(p[1]*s):f[0]+d.dir[1]*(p[0]*s),v="x"===d.dir[0]?f[1]+d.dir[1]*parseInt(d.scrollAmount):f[0]+d.dir[1]*parseInt(d.scrollAmount),x="auto"!==d.scrollAmount?v:g,S=n?n:e?o?"mcsLinearOut":"mcsEaseInOut":"mcsLinear",_=!!e;if(e&&a<17&&(x="x"===d.dir[0]?f[1]:f[0]),V(t,x.toString(),{dir:d.dir[0],scrollEasing:S,dur:a,onComplete:_}),e)return void(d.dir=!1);clearTimeout(d.step),d.step=setTimeout(function(){r()},a)}var l=t.data("mCS"),c=l.opt,d=l.sequential,u=e("#mCSB_"+l.idx+"_container"),f="stepped"===d.type,h=c.scrollInertia<26?26:c.scrollInertia,m=c.scrollInertia<1?17:c.scrollInertia;switch(o){case"on":if(d.dir=[a===s[16]||a===s[15]||39===a||37===a?"x":"y",a===s[13]||a===s[15]||38===a||37===a?-1:1],N(t),ee(a)&&"stepped"===d.type)return;r(f);break;case"off":!function(){clearTimeout(d.step),J(d,"step"),N(t)}(),(f||l.tweenRunning&&d.dir)&&r(!0)}},Y=function(t){var o=e(this).data("mCS").opt,a=[];return"function"==typeof t&&(t=t()),t instanceof Array?a=t.length>1?[t[0],t[1]]:"x"===o.axis?[null,t[0]]:[t[0],null]:(a[0]=t.y?t.y:t.x||"x"===o.axis?null:t,a[1]=t.x?t.x:t.y||"y"===o.axis?null:t),"function"==typeof a[0]&&(a[0]=a[0]()),"function"==typeof a[1]&&(a[1]=a[1]()),a},X=function(t,o){if(null!=t&&void 0!==t){var a=e(this),n=a.data("mCS"),i=n.opt,r=e("#mCSB_"+n.idx+"_container"),l=r.parent(),s=typeof t;o||(o="x"===i.axis?"x":"y");var d="x"===o?r.outerWidth(!1)-l.width():r.outerHeight(!1)-l.height(),u="x"===o?r[0].offsetLeft:r[0].offsetTop,f="x"===o?"left":"top";switch(s){case"function":return t();case"object":var h=t.jquery?t:e(t);if(!h.length)return;return"x"===o?te(h)[1]:te(h)[0];case"string":case"number":if(ee(t))return Math.abs(t);if(t.indexOf("%")!==-1)return Math.abs(d*parseInt(t)/100);if(t.indexOf("-=")!==-1)return Math.abs(u-parseInt(t.split("-=")[1]));if(t.indexOf("+=")!==-1){var m=u+parseInt(t.split("+=")[1]);return m>=0?0:Math.abs(m)}if(t.indexOf("px")!==-1&&ee(t.split("px")[0]))return Math.abs(t.split("px")[0]);if("top"===t||"left"===t)return 0;if("bottom"===t)return Math.abs(l.height()-r.outerHeight(!1));if("right"===t)return Math.abs(l.width()-r.outerWidth(!1));if("first"===t||"last"===t){var h=r.find(":"+t);return"x"===o?te(h)[1]:te(h)[0]}return e(t).length?"x"===o?te(e(t))[1]:te(e(t))[0]:(r.css(f,t),void c.update.call(null,a[0]))}}},q=function(t){function o(){if(clearTimeout(u[0].autoUpdate),0===r.parents("html").length)return void(r=null);u[0].autoUpdate=setTimeout(function(){return d.advanced.updateOnSelectorChange&&(l.poll.change.n=n(),l.poll.change.n!==l.poll.change.o)?(l.poll.change.o=l.poll.change.n,void i(3)):d.advanced.updateOnContentResize&&(l.poll.size.n=r[0].scrollHeight+r[0].scrollWidth+u[0].offsetHeight+r[0].offsetHeight+r[0].offsetWidth,
l.poll.size.n!==l.poll.size.o)?(l.poll.size.o=l.poll.size.n,void i(1)):!d.advanced.updateOnImageLoad||"auto"===d.advanced.updateOnImageLoad&&"y"===d.axis||(l.poll.img.n=u.find("img").length,l.poll.img.n===l.poll.img.o)?void((d.advanced.updateOnSelectorChange||d.advanced.updateOnContentResize||d.advanced.updateOnImageLoad)&&o()):(l.poll.img.o=l.poll.img.n,void u.find("img").each(function(){a(this)}))},d.advanced.autoUpdateTimeout)}function a(t){function o(){this.onload=null,e(t).addClass(s[2]),i(2)}if(e(t).hasClass(s[2]))return void i();var a=new Image;a.onload=function(e,t){return function(){return t.apply(e,arguments)}}(a,o),a.src=t.src}function n(){d.advanced.updateOnSelectorChange===!0&&(d.advanced.updateOnSelectorChange="*");var e=0,t=u.find(d.advanced.updateOnSelectorChange);return d.advanced.updateOnSelectorChange&&t.length>0&&t.each(function(){e+=this.offsetHeight+this.offsetWidth}),e}function i(e){clearTimeout(u[0].autoUpdate),c.update.call(null,r[0],e)}var r=e(this),l=r.data("mCS"),d=l.opt,u=e("#mCSB_"+l.idx+"_container");if(t)return clearTimeout(u[0].autoUpdate),void J(u[0],"autoUpdate");o()},j=function(e,t,o){return Math.round(e/t)*t-o},N=function(t){var o=t.data("mCS");e("#mCSB_"+o.idx+"_container,#mCSB_"+o.idx+"_container_wrapper,#mCSB_"+o.idx+"_dragger_vertical,#mCSB_"+o.idx+"_dragger_horizontal").each(function(){G.call(this)})},V=function(t,o,a){function n(e){return l&&s.callbacks[e]&&"function"==typeof s.callbacks[e]}function i(){return[s.callbacks.alwaysTriggerOffsets||x>=S[0]+C,s.callbacks.alwaysTriggerOffsets||x<=-b]}function r(){var e=[f[0].offsetTop,f[0].offsetLeft],o=[g[0].offsetTop,g[0].offsetLeft],n=[f.outerHeight(!1),f.outerWidth(!1)],i=[u.height(),u.width()];t[0].mcs={content:f,top:e[0],left:e[1],draggerTop:o[0],draggerLeft:o[1],topPct:Math.round(100*Math.abs(e[0])/(Math.abs(n[0])-i[0])),leftPct:Math.round(100*Math.abs(e[1])/(Math.abs(n[1])-i[1])),direction:a.dir}}var l=t.data("mCS"),s=l.opt,c={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:s.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},a=e.extend(c,a),d=[a.dur,a.drag?0:a.dur],u=e("#mCSB_"+l.idx),f=e("#mCSB_"+l.idx+"_container"),h=f.parent(),m=s.callbacks.onTotalScrollOffset?Y.call(t,s.callbacks.onTotalScrollOffset):[0,0],p=s.callbacks.onTotalScrollBackOffset?Y.call(t,s.callbacks.onTotalScrollBackOffset):[0,0];if(l.trigger=a.trigger,0===h.scrollTop()&&0===h.scrollLeft()||(e(".mCSB_"+l.idx+"_scrollbar").css("visibility","visible"),h.scrollTop(0).scrollLeft(0)),"_resetY"!==o||l.contentReset.y||(n("onOverflowYNone")&&s.callbacks.onOverflowYNone.call(t[0]),l.contentReset.y=1),"_resetX"!==o||l.contentReset.x||(n("onOverflowXNone")&&s.callbacks.onOverflowXNone.call(t[0]),l.contentReset.x=1),"_resetY"!==o&&"_resetX"!==o){if(!l.contentReset.y&&t[0].mcs||!l.overflowed[0]||(n("onOverflowY")&&s.callbacks.onOverflowY.call(t[0]),l.contentReset.x=null),!l.contentReset.x&&t[0].mcs||!l.overflowed[1]||(n("onOverflowX")&&s.callbacks.onOverflowX.call(t[0]),l.contentReset.x=null),s.snapAmount){o=j(o,s.snapAmount instanceof Array?"x"===a.dir?s.snapAmount[1]:s.snapAmount[0]:s.snapAmount,s.snapOffset)}switch(a.dir){case"x":var g=e("#mCSB_"+l.idx+"_dragger_horizontal"),v="left",x=f[0].offsetLeft,S=[u.width()-f.outerWidth(!1),g.parent().width()-g.width()],_=[o,0===o?0:o/l.scrollRatio.x],C=m[1],b=p[1],y=C>0?C/l.scrollRatio.x:0,B=b>0?b/l.scrollRatio.x:0;break;case"y":var g=e("#mCSB_"+l.idx+"_dragger_vertical"),v="top",x=f[0].offsetTop,S=[u.height()-f.outerHeight(!1),g.parent().height()-g.height()],_=[o,0===o?0:o/l.scrollRatio.y],C=m[0],b=p[0],y=C>0?C/l.scrollRatio.y:0,B=b>0?b/l.scrollRatio.y:0}_[1]<0||0===_[0]&&0===_[1]?_=[0,0]:_[1]>=S[1]?_=[S[0],S[1]]:_[0]=-_[0],t[0].mcs||(r(),n("onInit")&&s.callbacks.onInit.call(t[0])),clearTimeout(f[0].onCompleteTimeout),Q(g[0],v,Math.round(_[1]),d[1],a.scrollEasing),!l.tweenRunning&&(0===x&&_[0]>=0||x===S[0]&&_[0]<=S[0])||Q(f[0],v,Math.round(_[0]),d[0],a.scrollEasing,a.overwrite,{onStart:function(){a.callbacks&&a.onStart&&!l.tweenRunning&&(n("onScrollStart")&&(r(),s.callbacks.onScrollStart.call(t[0])),l.tweenRunning=!0,w(g),l.cbOffsets=i())},onUpdate:function(){a.callbacks&&a.onUpdate&&n("whileScrolling")&&(r(),s.callbacks.whileScrolling.call(t[0]))},onComplete:function(){if(a.callbacks&&a.onComplete){"yx"===s.axis&&clearTimeout(f[0].onCompleteTimeout);var e=f[0].idleTimer||0;f[0].onCompleteTimeout=setTimeout(function(){n("onScroll")&&(r(),s.callbacks.onScroll.call(t[0])),n("onTotalScroll")&&_[1]>=S[1]-y&&l.cbOffsets[0]&&(r(),s.callbacks.onTotalScroll.call(t[0])),n("onTotalScrollBack")&&_[1]<=B&&l.cbOffsets[1]&&(r(),s.callbacks.onTotalScrollBack.call(t[0])),l.tweenRunning=!1,f[0].idleTimer=0,w(g,"hide")},e)}}})}},Q=function(e,t,o,a,n,i,r){function l(){S.stop||(g||f.call(),g=Z()-p,s(),g>=S.time&&(S.time=g>S.time?g+d-(g-S.time):g+d-1,S.time<g+1&&(S.time=g+1)),S.time<a?S.id=u(l):m.call())}function s(){a>0?(S.currVal=c(S.time,v,_,a,n),x[t]=Math.round(S.currVal)+"px"):x[t]=o+"px",h.call()}function c(e,t,o,a,n){switch(n){case"linear":case"mcsLinear":return o*e/a+t;case"mcsLinearOut":return e/=a,e--,o*Math.sqrt(1-e*e)+t;case"easeInOutSmooth":return(e/=a/2)<1?o/2*e*e+t:(e--,-o/2*(e*(e-2)-1)+t);case"easeInOutStrong":return(e/=a/2)<1?o/2*Math.pow(2,10*(e-1))+t:(e--,o/2*(2-Math.pow(2,-10*e))+t);case"easeInOut":case"mcsEaseInOut":return(e/=a/2)<1?o/2*e*e*e+t:(e-=2,o/2*(e*e*e+2)+t);case"easeOutSmooth":return e/=a,e--,-o*(e*e*e*e-1)+t;case"easeOutStrong":return o*(1-Math.pow(2,-10*e/a))+t;case"easeOut":case"mcsEaseOut":default:var i=(e/=a)*e,r=i*e;return t+o*(.499999999999997*r*i+-2.5*i*i+5.5*r+-6.5*i+4*e)}}e._mTween||(e._mTween={top:{},left:{}});var d,u,r=r||{},f=r.onStart||function(){},h=r.onUpdate||function(){},m=r.onComplete||function(){},p=Z(),g=0,v=e.offsetTop,x=e.style,S=e._mTween[t];"left"===t&&(v=e.offsetLeft);var _=o-v;S.stop=0,"none"!==i&&function(){null!=S.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(S.id):clearTimeout(S.id),S.id=null)}(),function(){d=1e3/60,S.time=g+d,u=window.requestAnimationFrame?window.requestAnimationFrame:function(e){return s(),setTimeout(e,.01)},S.id=u(l)}()},Z=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},G=function(){var e=this;e._mTween||(e._mTween={top:{},left:{}});for(var t=["top","left"],o=0;o<t.length;o++){var a=t[o];e._mTween[a].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(e._mTween[a].id):clearTimeout(e._mTween[a].id),e._mTween[a].id=null,e._mTween[a].stop=1)}},J=function(e,t){try{delete e[t]}catch(o){e[t]=null}},K=function(e){return!(e.which&&1!==e.which)},$=function(e){var t=e.originalEvent.pointerType;return!(t&&"touch"!==t&&2!==t)},ee=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},te=function(e){var t=e.parents(".mCSB_container");return[e.offset().top-t.offset().top,e.offset().left-t.offset().left]},oe=function(){var e=function(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;t<e.length;t++)if(e[t]+"Hidden"in document)return e[t]+"Hidden";return null}();return!!e&&document[e]};e.fn[o]=function(t){return c[t]?c[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):c.init.apply(this,arguments)},e[o]=function(t){return c[t]?c[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):c.init.apply(this,arguments)},e[o].defaults=a,window[o]=!0,e(window).bind("load",function(){e(".mCustomScrollbar")[o](),e.extend(e.expr[":"],{mcsInView:e.expr[":"].mcsInView||function(t){var o,a,n=e(t),i=n.parents(".mCSB_container");if(i.length)return o=i.parent(),a=[i[0].offsetTop,i[0].offsetLeft],a[0]+te(n)[0]>=0&&a[0]+te(n)[0]<o.height()-n.outerHeight(!1)&&a[1]+te(n)[1]>=0&&a[1]+te(n)[1]<o.width()-n.outerWidth(!1)},mcsInSight:e.expr[":"].mcsInSight||function(t,o,a){var n,i,r,l,s=e(t),c=s.parents(".mCSB_container"),d="exact"===a[3]?[[1,0],[1,0]]:[[.9,.1],[.6,.4]];if(c.length)return n=[s.outerHeight(!1),s.outerWidth(!1)],r=[c[0].offsetTop+te(s)[0],c[0].offsetLeft+te(s)[1]],i=[c.parent()[0].offsetHeight,c.parent()[0].offsetWidth],l=[n[0]<i[0]?d[0]:d[1],n[1]<i[1]?d[0]:d[1]],r[0]-i[0]*l[0][0]<0&&r[0]+n[0]-i[0]*l[0][1]>=0&&r[1]-i[1]*l[1][0]<0&&r[1]+n[1]-i[1]*l[1][1]>=0},mcsOverflow:e.expr[":"].mcsOverflow||function(t){var o=e(t).data("mCS");if(o)return o.overflowed[0]||o.overflowed[1]}})})}()}(function(){var t,o="mCustomScrollbar",a={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},n=0,i={},r=window.attachEvent&&!window.addEventListener?1:0,l=!1,s=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],c={init:function(t){var t=e.extend(!0,{},a,t),o=d.call(this);if(t.live){var r=t.liveSelector||this.selector||".mCustomScrollbar",l=e(r);if("off"===t.live)return void f(r);i[r]=setTimeout(function(){l.mCustomScrollbar(t),"once"===t.live&&l.length&&f(r)},500)}else f(r);return t.setWidth=t.set_width?t.set_width:t.setWidth,t.setHeight=t.set_height?t.set_height:t.setHeight,t.axis=t.horizontalScroll?"x":h(t.axis),t.scrollInertia=t.scrollInertia>0&&t.scrollInertia<17?17:t.scrollInertia,"object"!=typeof t.mouseWheel&&1==t.mouseWheel&&(t.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),t.mouseWheel.scrollAmount=t.mouseWheelPixels?t.mouseWheelPixels:t.mouseWheel.scrollAmount,t.mouseWheel.normalizeDelta=t.advanced.normalizeMouseWheelDelta?t.advanced.normalizeMouseWheelDelta:t.mouseWheel.normalizeDelta,t.scrollButtons.scrollType=m(t.scrollButtons.scrollType),u(t),e(o).each(function(){var o=e(this);if(!o.data("mCS")){o.data("mCS",{idx:++n,opt:t,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:o.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var a=o.data("mCS"),i=a.opt,r=o.data("mcs-axis"),l=o.data("mcs-scrollbar-position"),d=o.data("mcs-theme");r&&(i.axis=r),l&&(i.scrollbarPosition=l),d&&(i.theme=d,u(i)),p.call(this),a&&i.callbacks.onCreate&&"function"==typeof i.callbacks.onCreate&&i.callbacks.onCreate.call(this),e("#mCSB_"+a.idx+"_container img:not(."+s[2]+")").addClass(s[2]),c.update.call(null,o)}})},update:function(t,o){return e(t||d.call(this)).each(function(){var t=e(this);if(t.data("mCS")){var a=t.data("mCS"),n=a.opt,i=e("#mCSB_"+a.idx+"_container"),r=e("#mCSB_"+a.idx),l=[e("#mCSB_"+a.idx+"_dragger_vertical"),e("#mCSB_"+a.idx+"_dragger_horizontal")];if(!i.length)return;a.tweenRunning&&N(t),o&&a&&n.callbacks.onBeforeUpdate&&"function"==typeof n.callbacks.onBeforeUpdate&&n.callbacks.onBeforeUpdate.call(this),t.hasClass(s[3])&&t.removeClass(s[3]),t.hasClass(s[4])&&t.removeClass(s[4]),r.css("max-height","none"),r.height()!==t.height()&&r.css("max-height",t.height()),v.call(this),"y"===n.axis||n.advanced.autoExpandHorizontalScroll||i.css("width",g(i)),a.overflowed=C.call(this),T.call(this),n.autoDraggerLength&&S.call(this),_.call(this),y.call(this);var c=[Math.abs(i[0].offsetTop),Math.abs(i[0].offsetLeft)];"x"!==n.axis&&(a.overflowed[0]?l[0].height()>l[0].parent().height()?b.call(this):(V(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}),a.contentReset.y=null):(b.call(this),"y"===n.axis?B.call(this):"yx"===n.axis&&a.overflowed[1]&&V(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==n.axis&&(a.overflowed[1]?l[1].width()>l[1].parent().width()?b.call(this):(V(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}),a.contentReset.x=null):(b.call(this),"x"===n.axis?B.call(this):"yx"===n.axis&&a.overflowed[0]&&V(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),o&&a&&(2===o&&n.callbacks.onImageLoad&&"function"==typeof n.callbacks.onImageLoad?n.callbacks.onImageLoad.call(this):3===o&&n.callbacks.onSelectorChange&&"function"==typeof n.callbacks.onSelectorChange?n.callbacks.onSelectorChange.call(this):n.callbacks.onUpdate&&"function"==typeof n.callbacks.onUpdate&&n.callbacks.onUpdate.call(this)),q.call(this)}})},scrollTo:function(t,o){if(void 0!==t&&null!=t){return e(d.call(this)).each(function(){var a=e(this);if(a.data("mCS")){var n=a.data("mCS"),i=n.opt,r={trigger:"external",scrollInertia:i.scrollInertia,scrollOffset:0,scrollOffsetEdge:!0,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},l=e.extend(!0,{},r,o),s=Y.call(this,t),c=l.scrollInertia>0&&l.scrollInertia<17?17:l.scrollInertia;s[0]=X.call(this,s[0],"y"),s[1]=X.call(this,s[1],"x"),l.moveDragger&&(s[0]*=n.scrollRatio.y,s[1]*=n.scrollRatio.x),l.dur=oe()?0:c,setTimeout(function(){if(null!==s[0]&&void 0!==s[0]&&"x"!==i.axis&&n.overflowed[0]){l.dir="y",l.overwrite="all";var o=s[0];if(0!==l.scrollOffset&&"object"==typeof l.scrollOffset){var r=l.scrollOffset[0],c=parseInt(r.height()),d=l.scrollOffset[1],u=l.scrollOffset[2],f=parseInt(c/d),h=parseInt(c/u);o-=f;var m=t.offset().top-r.offset().top;(function(t,o){var a=e(t),n=o,i=n.scrollTop()+50,r=i+n.height(),l=a.offset().top;return l+a.height()<=r&&l>=i})(t,r)&&c-m>h&&(l.scrollOffsetEdge=!1)}l.scrollOffsetEdge&&V(a,o.toString(),l)}null!==s[1]&&void 0!==s[1]&&"y"!==i.axis&&n.overflowed[1]&&(l.dir="x",l.overwrite="none",V(a,s[1].toString(),l))},l.timeout)}})}},stop:function(){return e(d.call(this)).each(function(){var t=e(this);t.data("mCS")&&N(t)})},disable:function(t){return e(d.call(this)).each(function(){var o=e(this);o.data("mCS")&&(o.data("mCS"),q.call(this,"remove"),B.call(this),t&&b.call(this),T.call(this,!0),o.addClass(s[3]))})},destroy:function(){var t=d.call(this);return e(t).each(function(){var a=e(this);if(a.data("mCS")){var n=a.data("mCS"),i=n.opt,r=e("#mCSB_"+n.idx),l=e("#mCSB_"+n.idx+"_container"),c=e(".mCSB_"+n.idx+"_scrollbar");i.live&&f(i.liveSelector||e(t).selector),q.call(this,"remove"),B.call(this),b.call(this),a.removeData("mCS"),J(this,"mcs"),c.remove(),l.find("img."+s[2]).removeClass(s[2]),r.replaceWith(l.contents()),a.removeClass(o+" _mCS_"+n.idx+" "+s[6]+" "+s[7]+" "+s[5]+" "+s[3]).addClass(s[4])}})}},d=function(){return"object"!=typeof e(this)||e(this).length<1?".mCustomScrollbar":this},u=function(t){var o=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],a=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"],n=["minimal","minimal-dark"],i=["minimal","minimal-dark"],r=["minimal","minimal-dark"];t.autoDraggerLength=!(e.inArray(t.theme,o)>-1)&&t.autoDraggerLength,t.autoExpandScrollbar=!(e.inArray(t.theme,a)>-1)&&t.autoExpandScrollbar,t.scrollButtons.enable=!(e.inArray(t.theme,n)>-1)&&t.scrollButtons.enable,t.autoHideScrollbar=e.inArray(t.theme,i)>-1||t.autoHideScrollbar,t.scrollbarPosition=e.inArray(t.theme,r)>-1?"outside":t.scrollbarPosition},f=function(e){i[e]&&(clearTimeout(i[e]),J(i,e))},h=function(e){return"yx"===e||"xy"===e||"auto"===e?"yx":"x"===e||"horizontal"===e?"x":"y"},m=function(e){return"stepped"===e||"pixels"===e||"step"===e||"click"===e?"stepped":"stepless"},p=function(){var t=e(this),a=t.data("mCS"),n=a.opt,i=n.autoExpandScrollbar?" "+s[1]+"_expand":"",r=["<div id='mCSB_"+a.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+a.idx+"_scrollbar mCS-"+n.theme+" mCSB_scrollTools_vertical"+i+"'><div class='"+s[12]+"'><div id='mCSB_"+a.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>","<div id='mCSB_"+a.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+a.idx+"_scrollbar mCS-"+n.theme+" mCSB_scrollTools_horizontal"+i+"'><div class='"+s[12]+"'><div id='mCSB_"+a.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>"],l="yx"===n.axis?"mCSB_vertical_horizontal":"x"===n.axis?"mCSB_horizontal":"mCSB_vertical",c="yx"===n.axis?r[0]+r[1]:"x"===n.axis?r[1]:r[0],d="yx"===n.axis?"<div id='mCSB_"+a.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",u=n.autoHideScrollbar?" "+s[6]:"",f="x"!==n.axis&&"rtl"===a.langDir?" "+s[7]:"";n.setWidth&&t.css("width",n.setWidth),n.setHeight&&t.css("height",n.setHeight),n.setLeft="y"!==n.axis&&"rtl"===a.langDir?"989999px":n.setLeft,t.addClass(o+" _mCS_"+a.idx+u+f).wrapInner("<div id='mCSB_"+a.idx+"' class='mCustomScrollBox mCS-"+n.theme+" "+l+"'><div id='mCSB_"+a.idx+"_container' class='mCSB_container' style='position:relative; top:"+n.setTop+"; left:"+n.setLeft+";' dir='"+a.langDir+"' /></div>");var h=e("#mCSB_"+a.idx),m=e("#mCSB_"+a.idx+"_container");"y"===n.axis||n.advanced.autoExpandHorizontalScroll||m.css("width",g(m)),"outside"===n.scrollbarPosition?("static"===t.css("position")&&t.css("position","relative"),t.css("overflow","visible"),h.addClass("mCSB_outside").after(c)):(h.addClass("mCSB_inside").append(c),m.wrap(d)),x.call(this);var p=[e("#mCSB_"+a.idx+"_dragger_vertical"),e("#mCSB_"+a.idx+"_dragger_horizontal")];p[0].css("min-height",p[0].height()),p[1].css("min-width",p[1].width())},g=function(t){var o=[t[0].scrollWidth,Math.max.apply(Math,t.children().map(function(){return e(this).outerWidth(!0)}).get())],a=t.parent().width();return o[0]>a?o[0]:o[1]>a?o[1]:"100%"},v=function(){var t=e(this),o=t.data("mCS"),a=o.opt,n=e("#mCSB_"+o.idx+"_container");if(a.advanced.autoExpandHorizontalScroll&&"y"!==a.axis){n.css({width:"auto","min-width":0,"overflow-x":"scroll"});var i=Math.ceil(n[0].scrollWidth);3===a.advanced.autoExpandHorizontalScroll||2!==a.advanced.autoExpandHorizontalScroll&&i>n.parent().width()?n.css({width:i,"min-width":"100%","overflow-x":"inherit"}):n.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(n[0].getBoundingClientRect().right+.4)-Math.floor(n[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap()}},x=function(){var t=e(this),o=t.data("mCS"),a=o.opt,n=e(".mCSB_"+o.idx+"_scrollbar:first"),i=ee(a.scrollButtons.tabindex)?"tabindex='"+a.scrollButtons.tabindex+"'":"",r=["<a href='#' class='"+s[13]+"' "+i+" />","<a href='#' class='"+s[14]+"' "+i+" />","<a href='#' class='"+s[15]+"' "+i+" />","<a href='#' class='"+s[16]+"' "+i+" />"],l=["x"===a.axis?r[2]:r[0],"x"===a.axis?r[3]:r[1],r[2],r[3]];a.scrollButtons.enable&&n.prepend(l[0]).append(l[1]).next(".mCSB_scrollTools").prepend(l[2]).append(l[3])},S=function(){var t=e(this),o=t.data("mCS"),a=e("#mCSB_"+o.idx),n=e("#mCSB_"+o.idx+"_container"),i=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")],l=[a.height()/n.outerHeight(!1),a.width()/n.outerWidth(!1)],s=[parseInt(i[0].css("min-height")),Math.round(l[0]*i[0].parent().height()),parseInt(i[1].css("min-width")),Math.round(l[1]*i[1].parent().width())],c=r&&s[1]<s[0]?s[0]:s[1],d=r&&s[3]<s[2]?s[2]:s[3];i[0].css({height:c,"max-height":i[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":s[0]+"px"}),i[1].css({width:d,"max-width":i[1].parent().width()-10})},_=function(){var t=e(this),o=t.data("mCS"),a=e("#mCSB_"+o.idx),n=e("#mCSB_"+o.idx+"_container"),i=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")],r=[n.outerHeight(!1)-a.height(),n.outerWidth(!1)-a.width()],l=[r[0]/(i[0].parent().height()-i[0].height()),r[1]/(i[1].parent().width()-i[1].width())];o.scrollRatio={y:l[0],x:l[1]}},w=function(e,t,o){var a=o?s[0]+"_expanded":"",n=e.closest(".mCSB_scrollTools");"active"===t?(e.toggleClass(s[0]+" "+a),n.toggleClass(s[1]),e[0]._draggable=e[0]._draggable?0:1):e[0]._draggable||("hide"===t?(e.removeClass(s[0]),n.removeClass(s[1])):(e.addClass(s[0]),n.addClass(s[1])))},C=function(){var t=e(this),o=t.data("mCS"),a=e("#mCSB_"+o.idx),n=e("#mCSB_"+o.idx+"_container"),i=null==o.overflowed?n.height():n.outerHeight(!1),r=null==o.overflowed?n.width():n.outerWidth(!1),l=n[0].scrollHeight,s=n[0].scrollWidth;return l>i&&(i=l),s>r&&(r=s),[i>a.height(),r>a.width()]},b=function(){var t=e(this),o=t.data("mCS"),a=o.opt,n=e("#mCSB_"+o.idx),i=e("#mCSB_"+o.idx+"_container"),r=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")];if(N(t),("x"!==a.axis&&!o.overflowed[0]||"y"===a.axis&&o.overflowed[0])&&(r[0].add(i).css("top",0),V(t,"_resetY")),"y"!==a.axis&&!o.overflowed[1]||"x"===a.axis&&o.overflowed[1]){var l=dx=0;"rtl"===o.langDir&&(l=n.width()-i.outerWidth(!1),dx=Math.abs(l/o.scrollRatio.x)),i.css("left",l),r[1].css("left",dx),V(t,"_resetX")}},y=function(){function t(){i=setTimeout(function(){e.event.special.mousewheel?(clearTimeout(i),D.call(o[0])):t()},100)}var o=e(this),a=o.data("mCS"),n=a.opt;if(!a.bindEvents){if(M.call(this),n.contentTouchScroll&&O.call(this),I.call(this),n.mouseWheel.enable){var i;t()}A.call(this),H.call(this),n.advanced.autoScrollOnFocus&&z.call(this),n.scrollButtons.enable&&P.call(this),n.keyboard.enable&&U.call(this),a.bindEvents=!0}},B=function(){var t=e(this),o=t.data("mCS"),a=o.opt,n="mCS_"+o.idx,i=".mCSB_"+o.idx+"_scrollbar",r=e("#mCSB_"+o.idx+",#mCSB_"+o.idx+"_container,#mCSB_"+o.idx+"_container_wrapper,"+i+" ."+s[12]+",#mCSB_"+o.idx+"_dragger_vertical,#mCSB_"+o.idx+"_dragger_horizontal,"+i+">a"),l=e("#mCSB_"+o.idx+"_container");a.advanced.releaseDraggableSelectors&&r.add(e(a.advanced.releaseDraggableSelectors)),a.advanced.extraDraggableSelectors&&r.add(e(a.advanced.extraDraggableSelectors)),o.bindEvents&&(e(document).add(e(!R()||top.document)).unbind("."+n),r.each(function(){e(this).unbind("."+n)}),clearTimeout(t[0]._focusTimeout),J(t[0],"_focusTimeout"),clearTimeout(o.sequential.step),J(o.sequential,"step"),clearTimeout(l[0].onCompleteTimeout),J(l[0],"onCompleteTimeout"),o.bindEvents=!1)},T=function(t){var o=e(this),a=o.data("mCS"),n=a.opt,i=e("#mCSB_"+a.idx+"_container_wrapper"),r=i.length?i:e("#mCSB_"+a.idx+"_container"),l=[e("#mCSB_"+a.idx+"_scrollbar_vertical"),e("#mCSB_"+a.idx+"_scrollbar_horizontal")],c=[l[0].find(".mCSB_dragger"),l[1].find(".mCSB_dragger")];"x"!==n.axis&&(a.overflowed[0]&&!t?(l[0].add(c[0]).add(l[0].children("a")).css("display","block"),r.removeClass(s[8]+" "+s[10])):(n.alwaysShowScrollbar?(2!==n.alwaysShowScrollbar&&c[0].css("display","none"),r.removeClass(s[10])):(l[0].css("display","none"),r.addClass(s[10])),r.addClass(s[8]))),"y"!==n.axis&&(a.overflowed[1]&&!t?(l[1].add(c[1]).add(l[1].children("a")).css("display","block"),r.removeClass(s[9]+" "+s[11])):(n.alwaysShowScrollbar?(2!==n.alwaysShowScrollbar&&c[1].css("display","none"),r.removeClass(s[11])):(l[1].css("display","none"),r.addClass(s[11])),r.addClass(s[9]))),a.overflowed[0]||a.overflowed[1]?o.removeClass(s[5]):o.addClass(s[5])},k=function(t){var o=t.type,a=t.target.ownerDocument!==document&&null!==frameElement?[e(frameElement).offset().top,e(frameElement).offset().left]:null,n=R()&&t.target.ownerDocument!==top.document&&null!==frameElement?[e(t.view.frameElement).offset().top,e(t.view.frameElement).offset().left]:[0,0];switch(o){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return a?[t.originalEvent.pageY-a[0]+n[0],t.originalEvent.pageX-a[1]+n[1],!1]:[t.originalEvent.pageY,t.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var i=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],r=t.originalEvent.touches.length||t.originalEvent.changedTouches.length;return t.target.ownerDocument!==document?[i.screenY,i.screenX,r>1]:[i.pageY,i.pageX,r>1];default:return a?[t.pageY-a[0]+n[0],t.pageX-a[1]+n[1],!1]:[t.pageY,t.pageX,!1]}},M=function(){function t(e,t,a,n){if(f[0].idleTimer=c.scrollInertia<233?250:0,o.attr("id")===u[1])var r="x",l=(o[0].offsetLeft-t+n)*s.scrollRatio.x;else var r="y",l=(o[0].offsetTop-e+a)*s.scrollRatio.y;V(i,l.toString(),{dir:r,drag:!0})}var o,a,n,i=e(this),s=i.data("mCS"),c=s.opt,d="mCS_"+s.idx,u=["mCSB_"+s.idx+"_dragger_vertical","mCSB_"+s.idx+"_dragger_horizontal"],f=e("#mCSB_"+s.idx+"_container"),h=e("#"+u[0]+",#"+u[1]),m=c.advanced.releaseDraggableSelectors?h.add(e(c.advanced.releaseDraggableSelectors)):h,p=c.advanced.extraDraggableSelectors?e(!R()||top.document).add(e(c.advanced.extraDraggableSelectors)):e(!R()||top.document);h.bind("contextmenu."+d,function(e){e.preventDefault()}).bind("mousedown."+d+" touchstart."+d+" pointerdown."+d+" MSPointerDown."+d,function(t){if(t.stopImmediatePropagation(),t.preventDefault(),K(t)){l=!0,r&&(document.onselectstart=function(){return!1}),W.call(f,!1),N(i),o=e(this);var s=o.offset(),d=k(t)[0]-s.top,u=k(t)[1]-s.left,h=o.height()+s.top,m=o.width()+s.left;d<h&&d>0&&u<m&&u>0&&(a=d,n=u),w(o,"active",c.autoExpandScrollbar)}}).bind("touchmove."+d,function(e){e.stopImmediatePropagation(),e.preventDefault();var i=o.offset();t(a,n,k(e)[0]-i.top,k(e)[1]-i.left)}),e(document).add(p).bind("mousemove."+d+" pointermove."+d+" MSPointerMove."+d,function(e){if(o){var i=o.offset(),r=k(e)[0]-i.top,l=k(e)[1]-i.left;if(a===r&&n===l)return;t(a,n,r,l)}}).add(m).bind("mouseup."+d+" touchend."+d+" pointerup."+d+" MSPointerUp."+d,function(e){o&&(w(o,"active",c.autoExpandScrollbar),o=null),l=!1,r&&(document.onselectstart=null),W.call(f,!0)})},O=function(){function o(e){if(!$(e)||l||k(e)[2])return void(t=0);t=1,w=0,C=0,c=1,b.removeClass("mCS_touch_action");var o=O.offset();d=k(e)[0]-o.top,u=k(e)[1]-o.left,A=[k(e)[0],k(e)[1]]}function a(e){if($(e)&&!l&&!k(e)[2]&&(B.documentTouchScroll||e.preventDefault(),e.stopImmediatePropagation(),(!C||w)&&c)){p=Z();var t=M.offset(),o=k(e)[0]-t.top,a=k(e)[1]-t.left;if(D.push(o),E.push(a),A[2]=Math.abs(k(e)[0]-A[0]),A[3]=Math.abs(k(e)[1]-A[1]),y.overflowed[0])var n=I[0].parent().height()-I[0].height(),i=d-o>0&&o-d>-(n*y.scrollRatio.y)&&(2*A[3]<A[2]||"yx"===B.axis);if(y.overflowed[1])var r=I[1].parent().width()-I[1].width(),f=u-a>0&&a-u>-(r*y.scrollRatio.x)&&(2*A[2]<A[3]||"yx"===B.axis);i||f?(P||e.preventDefault(),w=1):(C=1,b.addClass("mCS_touch_action")),P&&e.preventDefault(),S="yx"===B.axis?[d-o,u-a]:"x"===B.axis?[null,u-a]:[d-o,null],O[0].idleTimer=250,y.overflowed[0]&&s(S[0],W,"mcsLinearOut","y","all",!0),y.overflowed[1]&&s(S[1],W,"mcsLinearOut","x",L,!0)}}function n(e){if(!$(e)||l||k(e)[2])return void(t=0);t=1,e.stopImmediatePropagation(),N(b),m=Z();var o=M.offset();f=k(e)[0]-o.top,h=k(e)[1]-o.left,D=[],E=[]}function i(e){if($(e)&&!l&&!k(e)[2]){c=0,e.stopImmediatePropagation(),w=0,C=0,g=Z();var t=M.offset(),o=k(e)[0]-t.top,a=k(e)[1]-t.left;if(!(g-p>30)){x=1e3/(g-m);var n=x<2.5,i=n?[D[D.length-2],E[E.length-2]]:[0,0];v=n?[o-i[0],a-i[1]]:[o-f,a-h];var d=[Math.abs(v[0]),Math.abs(v[1])];x=n?[Math.abs(v[0]/4),Math.abs(v[1]/4)]:[x,x];var u=[Math.abs(O[0].offsetTop)-v[0]*r(d[0]/x[0],x[0]),Math.abs(O[0].offsetLeft)-v[1]*r(d[1]/x[1],x[1])];S="yx"===B.axis?[u[0],u[1]]:"x"===B.axis?[null,u[1]]:[u[0],null],_=[4*d[0]+B.scrollInertia,4*d[1]+B.scrollInertia];var b=parseInt(B.contentTouchScroll)||0;S[0]=d[0]>b?S[0]:0,S[1]=d[1]>b?S[1]:0,y.overflowed[0]&&s(S[0],_[0],"mcsEaseOut","y",L,!1),y.overflowed[1]&&s(S[1],_[1],"mcsEaseOut","x",L,!1)}}}function r(e,t){var o=[1.5*t,2*t,t/1.5,t/2];return e>90?t>4?o[0]:o[3]:e>60?t>3?o[3]:o[2]:e>30?t>8?o[1]:t>6?o[0]:t>4?t:o[2]:t>8?t:o[3]}function s(e,t,o,a,n,i){e&&V(b,e.toString(),{dur:t,scrollEasing:o,dir:a,overwrite:n,drag:i})}var c,d,u,f,h,m,p,g,v,x,S,_,w,C,b=e(this),y=b.data("mCS"),B=y.opt,T="mCS_"+y.idx,M=e("#mCSB_"+y.idx),O=e("#mCSB_"+y.idx+"_container"),I=[e("#mCSB_"+y.idx+"_dragger_vertical"),e("#mCSB_"+y.idx+"_dragger_horizontal")],D=[],E=[],W=0,L="yx"===B.axis?"none":"all",A=[],z=O.find("iframe"),H=["touchstart."+T+" pointerdown."+T+" MSPointerDown."+T,"touchmove."+T+" pointermove."+T+" MSPointerMove."+T,"touchend."+T+" pointerup."+T+" MSPointerUp."+T],P=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;O.bind(H[0],function(e){o(e)}).bind(H[1],function(e){a(e)}),M.bind(H[0],function(e){n(e)}).bind(H[2],function(e){i(e)}),z.length&&z.each(function(){e(this).bind("load",function(){R(this)&&e(this.contentDocument||this.contentWindow.document).bind(H[0],function(e){o(e),n(e)}).bind(H[1],function(e){a(e)}).bind(H[2],function(e){i(e)})})})},I=function(){function o(){return window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type?document.selection.createRange().text:0}function a(e,t,o){c.type=o&&n?"stepped":"stepless",c.scrollAmount=10,F(i,e,t,"mcsLinearOut",o?60:null)}var n,i=e(this),r=i.data("mCS"),s=r.opt,c=r.sequential,d="mCS_"+r.idx,u=e("#mCSB_"+r.idx+"_container"),f=u.parent();u.bind("mousedown."+d,function(e){t||n||(n=1,l=!0)}).add(document).bind("mousemove."+d,function(e){if(!t&&n&&o()){var i=u.offset(),l=k(e)[0]-i.top+u[0].offsetTop,d=k(e)[1]-i.left+u[0].offsetLeft;l>0&&l<f.height()&&d>0&&d<f.width()?c.step&&a("off",null,"stepped"):("x"!==s.axis&&r.overflowed[0]&&(l<0?a("on",38):l>f.height()&&a("on",40)),"y"!==s.axis&&r.overflowed[1]&&(d<0?a("on",37):d>f.width()&&a("on",39)))}}).bind("mouseup."+d+" dragend."+d,function(e){t||(n&&(n=0,a("off",null)),l=!1)})},D=function(){function t(t,i){if(N(o),!L(o,t.target)){var c="auto"!==n.mouseWheel.deltaFactor?parseInt(n.mouseWheel.deltaFactor):r&&t.deltaFactor<100?100:t.deltaFactor||100,d=n.scrollInertia;if("x"===n.axis||"x"===n.mouseWheel.axis)var u="x",f=[Math.round(c*a.scrollRatio.x),parseInt(n.mouseWheel.scrollAmount)],h="auto"!==n.mouseWheel.scrollAmount?f[1]:f[0]>=l.width()?.9*l.width():f[0],m=Math.abs(e("#mCSB_"+a.idx+"_container")[0].offsetLeft),p=s[1][0].offsetLeft,g=s[1].parent().width()-s[1].width(),v="y"===n.mouseWheel.axis?t.deltaY||i:t.deltaX;else var u="y",f=[Math.round(c*a.scrollRatio.y),parseInt(n.mouseWheel.scrollAmount)],h="auto"!==n.mouseWheel.scrollAmount?f[1]:f[0]>=l.height()?.9*l.height():f[0],m=Math.abs(e("#mCSB_"+a.idx+"_container")[0].offsetTop),p=s[0][0].offsetTop,g=s[0].parent().height()-s[0].height(),v=t.deltaY||i;"y"===u&&!a.overflowed[0]||"x"===u&&!a.overflowed[1]||((n.mouseWheel.invert||t.webkitDirectionInvertedFromDevice)&&(v=-v),n.mouseWheel.normalizeDelta&&(v=v<0?-1:1),(v>0&&0!==p||v<0&&p!==g||n.mouseWheel.preventDefault)&&(t.stopImmediatePropagation(),t.preventDefault()),t.deltaFactor<5&&!n.mouseWheel.normalizeDelta&&(h=t.deltaFactor,d=17),V(o,(m-v*h).toString(),{dir:u,dur:d}))}}if(e(this).data("mCS")){var o=e(this),a=o.data("mCS"),n=a.opt,i="mCS_"+a.idx,l=e("#mCSB_"+a.idx),s=[e("#mCSB_"+a.idx+"_dragger_vertical"),e("#mCSB_"+a.idx+"_dragger_horizontal")],c=e("#mCSB_"+a.idx+"_container").find("iframe");c.length&&c.each(function(){e(this).bind("load",function(){R(this)&&e(this.contentDocument||this.contentWindow.document).bind("mousewheel."+i,function(e,o){t(e,o)})})}),l.bind("mousewheel."+i,function(e,o){t(e,o)})}},E=new Object,R=function(t){var o=!1,a=!1,n=null;if(void 0===t?a="#empty":void 0!==e(t).attr("id")&&(a=e(t).attr("id")),a!==!1&&void 0!==E[a])return E[a];if(t){try{var i=t.contentDocument||t.contentWindow.document;n=i.body.innerHTML}catch(e){}o=null!==n}else{try{var i=top.document;n=i.body.innerHTML}catch(e){}o=null!==n}
return a!==!1&&(E[a]=o),o},W=function(e){var t=this.find("iframe");if(t.length){var o=e?"auto":"none";t.css("pointer-events",o)}},L=function(t,o){var a=o.nodeName.toLowerCase(),n=t.data("mCS").opt.mouseWheel.disableOver,i=["select","textarea"];return e.inArray(a,n)>-1&&!(e.inArray(a,i)>-1&&!e(o).is(":focus"))},A=function(){var t,o=e(this),a=o.data("mCS"),n="mCS_"+a.idx,i=e("#mCSB_"+a.idx+"_container"),r=i.parent(),c=e(".mCSB_"+a.idx+"_scrollbar ."+s[12]);c.bind("mousedown."+n+" touchstart."+n+" pointerdown."+n+" MSPointerDown."+n,function(o){l=!0,e(o.target).hasClass("mCSB_dragger")||(t=1)}).bind("touchend."+n+" pointerup."+n+" MSPointerUp."+n,function(e){l=!1}).bind("click."+n,function(n){if(t&&(t=0,e(n.target).hasClass(s[12])||e(n.target).hasClass("mCSB_draggerRail"))){N(o);var l=e(this),c=l.find(".mCSB_dragger");if(l.parent(".mCSB_scrollTools_horizontal").length>0){if(!a.overflowed[1])return;var d="x",u=n.pageX>c.offset().left?-1:1,f=Math.abs(i[0].offsetLeft)-u*(.9*r.width())}else{if(!a.overflowed[0])return;var d="y",u=n.pageY>c.offset().top?-1:1,f=Math.abs(i[0].offsetTop)-u*(.9*r.height())}V(o,f.toString(),{dir:d,scrollEasing:"mcsEaseInOut"})}})},z=function(){var t=e(this),o=t.data("mCS"),a=o.opt,n="mCS_"+o.idx,i=e("#mCSB_"+o.idx+"_container"),r=i.parent();i.bind("focusin."+n,function(o){var n=e(document.activeElement),l=i.find(".mCustomScrollBox").length;n.is(a.advanced.autoScrollOnFocus)&&(N(t),clearTimeout(t[0]._focusTimeout),t[0]._focusTimer=l?17*l:0,t[0]._focusTimeout=setTimeout(function(){var e=[te(n)[0],te(n)[1]],o=[i[0].offsetTop,i[0].offsetLeft],l=[o[0]+e[0]>=0&&o[0]+e[0]<r.height()-n.outerHeight(!1),o[1]+e[1]>=0&&o[0]+e[1]<r.width()-n.outerWidth(!1)],s="yx"!==a.axis||l[0]||l[1]?"all":"none";"x"===a.axis||l[0]||V(t,e[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:s,dur:0}),"y"===a.axis||l[1]||V(t,e[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:s,dur:0})},t[0]._focusTimer))})},H=function(){var t=e(this),o=t.data("mCS"),a="mCS_"+o.idx,n=e("#mCSB_"+o.idx+"_container").parent();n.bind("scroll."+a,function(t){0===n.scrollTop()&&0===n.scrollLeft()||e(".mCSB_"+o.idx+"_scrollbar").css("visibility","hidden")})},P=function(){var t=e(this),o=t.data("mCS"),a=o.opt,n=o.sequential,i="mCS_"+o.idx;e(".mCSB_"+o.idx+"_scrollbar>a").bind("contextmenu."+i,function(e){e.preventDefault()}).bind("mousedown."+i+" touchstart."+i+" pointerdown."+i+" MSPointerDown."+i+" mouseup."+i+" touchend."+i+" pointerup."+i+" MSPointerUp."+i+" mouseout."+i+" pointerout."+i+" MSPointerOut."+i+" click."+i,function(i){function r(e,o){n.scrollAmount=a.scrollButtons.scrollAmount,F(t,e,o)}if(i.preventDefault(),K(i)){var s=e(this).attr("class");switch(n.type=a.scrollButtons.scrollType,i.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===n.type)return;l=!0,o.tweenRunning=!1,r("on",s);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===n.type)return;l=!1,n.dir&&r("off",s);break;case"click":if("stepped"!==n.type||o.tweenRunning)return;r("on",s)}}})},U=function(){function t(t){function r(e,t){i.type=n.keyboard.scrollType,i.scrollAmount=n.keyboard.scrollAmount,"stepped"===i.type&&a.tweenRunning||F(o,e,t)}switch(t.type){case"blur":a.tweenRunning&&i.dir&&r("off",null);break;case"keydown":case"keyup":var l=t.keyCode?t.keyCode:t.which,u="on";if("x"!==n.axis&&(38===l||40===l)||"y"!==n.axis&&(37===l||39===l)){if((38===l||40===l)&&!a.overflowed[0]||(37===l||39===l)&&!a.overflowed[1])return;"keyup"===t.type&&(u="off"),e(document.activeElement).is(d)||(t.preventDefault(),t.stopImmediatePropagation(),r(u,l))}else if(33===l||34===l){if((a.overflowed[0]||a.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type){N(o);var f=34===l?-1:1;if("x"===n.axis||"yx"===n.axis&&a.overflowed[1]&&!a.overflowed[0])var h="x",m=Math.abs(s[0].offsetLeft)-f*(.9*c.width());else var h="y",m=Math.abs(s[0].offsetTop)-f*(.9*c.height());V(o,m.toString(),{dir:h,scrollEasing:"mcsEaseInOut"})}}else if((35===l||36===l)&&!e(document.activeElement).is(d)&&((a.overflowed[0]||a.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type)){if("x"===n.axis||"yx"===n.axis&&a.overflowed[1]&&!a.overflowed[0])var h="x",m=35===l?Math.abs(c.width()-s.outerWidth(!1)):0;else var h="y",m=35===l?Math.abs(c.height()-s.outerHeight(!1)):0;V(o,m.toString(),{dir:h,scrollEasing:"mcsEaseInOut"})}}}var o=e(this),a=o.data("mCS"),n=a.opt,i=a.sequential,r="mCS_"+a.idx,l=e("#mCSB_"+a.idx),s=e("#mCSB_"+a.idx+"_container"),c=s.parent(),d="input,textarea,select,datalist,keygen,[contenteditable='true']",u=s.find("iframe"),f=["blur."+r+" keydown."+r+" keyup."+r];u.length&&u.each(function(){e(this).bind("load",function(){R(this)&&e(this.contentDocument||this.contentWindow.document).bind(f[0],function(e){t(e)})})}),l.attr("tabindex","0").bind(f[0],function(e){t(e)})},F=function(t,o,a,n,i){function r(e){c.snapAmount&&(d.scrollAmount=c.snapAmount instanceof Array?"x"===d.dir[0]?c.snapAmount[1]:c.snapAmount[0]:c.snapAmount);var o="stepped"!==d.type,a=i?i:e?o?h/1.5:m:1e3/60,s=e?o?7.5:40:2.5,f=[Math.abs(u[0].offsetTop),Math.abs(u[0].offsetLeft)],p=[l.scrollRatio.y>10?10:l.scrollRatio.y,l.scrollRatio.x>10?10:l.scrollRatio.x],g="x"===d.dir[0]?f[1]+d.dir[1]*(p[1]*s):f[0]+d.dir[1]*(p[0]*s),v="x"===d.dir[0]?f[1]+d.dir[1]*parseInt(d.scrollAmount):f[0]+d.dir[1]*parseInt(d.scrollAmount),x="auto"!==d.scrollAmount?v:g,S=n?n:e?o?"mcsLinearOut":"mcsEaseInOut":"mcsLinear",_=!!e;if(e&&a<17&&(x="x"===d.dir[0]?f[1]:f[0]),V(t,x.toString(),{dir:d.dir[0],scrollEasing:S,dur:a,onComplete:_}),e)return void(d.dir=!1);clearTimeout(d.step),d.step=setTimeout(function(){r()},a)}var l=t.data("mCS"),c=l.opt,d=l.sequential,u=e("#mCSB_"+l.idx+"_container"),f="stepped"===d.type,h=c.scrollInertia<26?26:c.scrollInertia,m=c.scrollInertia<1?17:c.scrollInertia;switch(o){case"on":if(d.dir=[a===s[16]||a===s[15]||39===a||37===a?"x":"y",a===s[13]||a===s[15]||38===a||37===a?-1:1],N(t),ee(a)&&"stepped"===d.type)return;r(f);break;case"off":!function(){clearTimeout(d.step),J(d,"step"),N(t)}(),(f||l.tweenRunning&&d.dir)&&r(!0)}},Y=function(t){var o=e(this).data("mCS").opt,a=[];return"function"==typeof t&&(t=t()),t instanceof Array?a=t.length>1?[t[0],t[1]]:"x"===o.axis?[null,t[0]]:[t[0],null]:(a[0]=t.y?t.y:t.x||"x"===o.axis?null:t,a[1]=t.x?t.x:t.y||"y"===o.axis?null:t),"function"==typeof a[0]&&(a[0]=a[0]()),"function"==typeof a[1]&&(a[1]=a[1]()),a},X=function(t,o){if(null!=t&&void 0!==t){var a=e(this),n=a.data("mCS"),i=n.opt,r=e("#mCSB_"+n.idx+"_container"),l=r.parent(),s=typeof t;o||(o="x"===i.axis?"x":"y");var d="x"===o?r.outerWidth(!1)-l.width():r.outerHeight(!1)-l.height(),u="x"===o?r[0].offsetLeft:r[0].offsetTop,f="x"===o?"left":"top";switch(s){case"function":return t();case"object":var h=t.jquery?t:e(t);if(!h.length)return;return"x"===o?te(h)[1]:te(h)[0];case"string":case"number":if(ee(t))return Math.abs(t);if(t.indexOf("%")!==-1)return Math.abs(d*parseInt(t)/100);if(t.indexOf("-=")!==-1)return Math.abs(u-parseInt(t.split("-=")[1]));if(t.indexOf("+=")!==-1){var m=u+parseInt(t.split("+=")[1]);return m>=0?0:Math.abs(m)}if(t.indexOf("px")!==-1&&ee(t.split("px")[0]))return Math.abs(t.split("px")[0]);if("top"===t||"left"===t)return 0;if("bottom"===t)return Math.abs(l.height()-r.outerHeight(!1));if("right"===t)return Math.abs(l.width()-r.outerWidth(!1));if("first"===t||"last"===t){var h=r.find(":"+t);return"x"===o?te(h)[1]:te(h)[0]}return e(t).length?"x"===o?te(e(t))[1]:te(e(t))[0]:(r.css(f,t),void c.update.call(null,a[0]))}}},q=function(t){function o(){if(clearTimeout(u[0].autoUpdate),0===r.parents("html").length)return void(r=null);u[0].autoUpdate=setTimeout(function(){return d.advanced.updateOnSelectorChange&&(l.poll.change.n=n(),l.poll.change.n!==l.poll.change.o)?(l.poll.change.o=l.poll.change.n,void i(3)):d.advanced.updateOnContentResize&&(l.poll.size.n=r[0].scrollHeight+r[0].scrollWidth+u[0].offsetHeight+r[0].offsetHeight+r[0].offsetWidth,l.poll.size.n!==l.poll.size.o)?(l.poll.size.o=l.poll.size.n,void i(1)):!d.advanced.updateOnImageLoad||"auto"===d.advanced.updateOnImageLoad&&"y"===d.axis||(l.poll.img.n=u.find("img").length,l.poll.img.n===l.poll.img.o)?void((d.advanced.updateOnSelectorChange||d.advanced.updateOnContentResize||d.advanced.updateOnImageLoad)&&o()):(l.poll.img.o=l.poll.img.n,void u.find("img").each(function(){a(this)}))},d.advanced.autoUpdateTimeout)}function a(t){function o(){this.onload=null,e(t).addClass(s[2]),i(2)}if(e(t).hasClass(s[2]))return void i();var a=new Image;a.onload=function(e,t){return function(){return t.apply(e,arguments)}}(a,o),a.src=t.src}function n(){d.advanced.updateOnSelectorChange===!0&&(d.advanced.updateOnSelectorChange="*");var e=0,t=u.find(d.advanced.updateOnSelectorChange);return d.advanced.updateOnSelectorChange&&t.length>0&&t.each(function(){e+=this.offsetHeight+this.offsetWidth}),e}function i(e){clearTimeout(u[0].autoUpdate),c.update.call(null,r[0],e)}var r=e(this),l=r.data("mCS"),d=l.opt,u=e("#mCSB_"+l.idx+"_container");if(t)return clearTimeout(u[0].autoUpdate),void J(u[0],"autoUpdate");o()},j=function(e,t,o){return Math.round(e/t)*t-o},N=function(t){var o=t.data("mCS");e("#mCSB_"+o.idx+"_container,#mCSB_"+o.idx+"_container_wrapper,#mCSB_"+o.idx+"_dragger_vertical,#mCSB_"+o.idx+"_dragger_horizontal").each(function(){G.call(this)})},V=function(t,o,a){function n(e){return l&&s.callbacks[e]&&"function"==typeof s.callbacks[e]}function i(){return[s.callbacks.alwaysTriggerOffsets||x>=S[0]+C,s.callbacks.alwaysTriggerOffsets||x<=-b]}function r(){var e=[f[0].offsetTop,f[0].offsetLeft],o=[g[0].offsetTop,g[0].offsetLeft],n=[f.outerHeight(!1),f.outerWidth(!1)],i=[u.height(),u.width()];t[0].mcs={content:f,top:e[0],left:e[1],draggerTop:o[0],draggerLeft:o[1],topPct:Math.round(100*Math.abs(e[0])/(Math.abs(n[0])-i[0])),leftPct:Math.round(100*Math.abs(e[1])/(Math.abs(n[1])-i[1])),direction:a.dir}}var l=t.data("mCS"),s=l.opt,c={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:s.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},a=e.extend(c,a),d=[a.dur,a.drag?0:a.dur],u=e("#mCSB_"+l.idx),f=e("#mCSB_"+l.idx+"_container"),h=f.parent(),m=s.callbacks.onTotalScrollOffset?Y.call(t,s.callbacks.onTotalScrollOffset):[0,0],p=s.callbacks.onTotalScrollBackOffset?Y.call(t,s.callbacks.onTotalScrollBackOffset):[0,0];if(l.trigger=a.trigger,0===h.scrollTop()&&0===h.scrollLeft()||(e(".mCSB_"+l.idx+"_scrollbar").css("visibility","visible"),h.scrollTop(0).scrollLeft(0)),"_resetY"!==o||l.contentReset.y||(n("onOverflowYNone")&&s.callbacks.onOverflowYNone.call(t[0]),l.contentReset.y=1),"_resetX"!==o||l.contentReset.x||(n("onOverflowXNone")&&s.callbacks.onOverflowXNone.call(t[0]),l.contentReset.x=1),"_resetY"!==o&&"_resetX"!==o){if(!l.contentReset.y&&t[0].mcs||!l.overflowed[0]||(n("onOverflowY")&&s.callbacks.onOverflowY.call(t[0]),l.contentReset.x=null),!l.contentReset.x&&t[0].mcs||!l.overflowed[1]||(n("onOverflowX")&&s.callbacks.onOverflowX.call(t[0]),l.contentReset.x=null),s.snapAmount){o=j(o,s.snapAmount instanceof Array?"x"===a.dir?s.snapAmount[1]:s.snapAmount[0]:s.snapAmount,s.snapOffset)}switch(a.dir){case"x":var g=e("#mCSB_"+l.idx+"_dragger_horizontal"),v="left",x=f[0].offsetLeft,S=[u.width()-f.outerWidth(!1),g.parent().width()-g.width()],_=[o,0===o?0:o/l.scrollRatio.x],C=m[1],b=p[1],y=C>0?C/l.scrollRatio.x:0,B=b>0?b/l.scrollRatio.x:0;break;case"y":var g=e("#mCSB_"+l.idx+"_dragger_vertical"),v="top",x=f[0].offsetTop,S=[u.height()-f.outerHeight(!1),g.parent().height()-g.height()],_=[o,0===o?0:o/l.scrollRatio.y],C=m[0],b=p[0],y=C>0?C/l.scrollRatio.y:0,B=b>0?b/l.scrollRatio.y:0}_[1]<0||0===_[0]&&0===_[1]?_=[0,0]:_[1]>=S[1]?_=[S[0],S[1]]:_[0]=-_[0],t[0].mcs||(r(),n("onInit")&&s.callbacks.onInit.call(t[0])),clearTimeout(f[0].onCompleteTimeout),Q(g[0],v,Math.round(_[1]),d[1],a.scrollEasing),!l.tweenRunning&&(0===x&&_[0]>=0||x===S[0]&&_[0]<=S[0])||Q(f[0],v,Math.round(_[0]),d[0],a.scrollEasing,a.overwrite,{onStart:function(){a.callbacks&&a.onStart&&!l.tweenRunning&&(n("onScrollStart")&&(r(),s.callbacks.onScrollStart.call(t[0])),l.tweenRunning=!0,w(g),l.cbOffsets=i())},onUpdate:function(){a.callbacks&&a.onUpdate&&n("whileScrolling")&&(r(),s.callbacks.whileScrolling.call(t[0]))},onComplete:function(){if(a.callbacks&&a.onComplete){"yx"===s.axis&&clearTimeout(f[0].onCompleteTimeout);var e=f[0].idleTimer||0;f[0].onCompleteTimeout=setTimeout(function(){n("onScroll")&&(r(),s.callbacks.onScroll.call(t[0])),n("onTotalScroll")&&_[1]>=S[1]-y&&l.cbOffsets[0]&&(r(),s.callbacks.onTotalScroll.call(t[0])),n("onTotalScrollBack")&&_[1]<=B&&l.cbOffsets[1]&&(r(),s.callbacks.onTotalScrollBack.call(t[0])),l.tweenRunning=!1,f[0].idleTimer=0,w(g,"hide")},e)}}})}},Q=function(e,t,o,a,n,i,r){function l(){S.stop||(g||f.call(),g=Z()-p,s(),g>=S.time&&(S.time=g>S.time?g+d-(g-S.time):g+d-1,S.time<g+1&&(S.time=g+1)),S.time<a?S.id=u(l):m.call())}function s(){a>0?(S.currVal=c(S.time,v,_,a,n),x[t]=Math.round(S.currVal)+"px"):x[t]=o+"px",h.call()}function c(e,t,o,a,n){switch(n){case"linear":case"mcsLinear":return o*e/a+t;case"mcsLinearOut":return e/=a,e--,o*Math.sqrt(1-e*e)+t;case"easeInOutSmooth":return(e/=a/2)<1?o/2*e*e+t:(e--,-o/2*(e*(e-2)-1)+t);case"easeInOutStrong":return(e/=a/2)<1?o/2*Math.pow(2,10*(e-1))+t:(e--,o/2*(2-Math.pow(2,-10*e))+t);case"easeInOut":case"mcsEaseInOut":return(e/=a/2)<1?o/2*e*e*e+t:(e-=2,o/2*(e*e*e+2)+t);case"easeOutSmooth":return e/=a,e--,-o*(e*e*e*e-1)+t;case"easeOutStrong":return o*(1-Math.pow(2,-10*e/a))+t;case"easeOut":case"mcsEaseOut":default:var i=(e/=a)*e,r=i*e;return t+o*(.499999999999997*r*i+-2.5*i*i+5.5*r+-6.5*i+4*e)}}e._mTween||(e._mTween={top:{},left:{}});var d,u,r=r||{},f=r.onStart||function(){},h=r.onUpdate||function(){},m=r.onComplete||function(){},p=Z(),g=0,v=e.offsetTop,x=e.style,S=e._mTween[t];"left"===t&&(v=e.offsetLeft);var _=o-v;S.stop=0,"none"!==i&&function(){null!=S.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(S.id):clearTimeout(S.id),S.id=null)}(),function(){d=1e3/60,S.time=g+d,u=window.requestAnimationFrame?window.requestAnimationFrame:function(e){return s(),setTimeout(e,.01)},S.id=u(l)}()},Z=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},G=function(){var e=this;e._mTween||(e._mTween={top:{},left:{}});for(var t=["top","left"],o=0;o<t.length;o++){var a=t[o];e._mTween[a].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(e._mTween[a].id):clearTimeout(e._mTween[a].id),e._mTween[a].id=null,e._mTween[a].stop=1)}},J=function(e,t){try{delete e[t]}catch(o){e[t]=null}},K=function(e){return!(e.which&&1!==e.which)},$=function(e){var t=e.originalEvent.pointerType;return!(t&&"touch"!==t&&2!==t)},ee=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},te=function(e){var t=e.parents(".mCSB_container");return[e.offset().top-t.offset().top,e.offset().left-t.offset().left]},oe=function(){var e=function(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;t<e.length;t++)if(e[t]+"Hidden"in document)return e[t]+"Hidden";return null}();return!!e&&document[e]};e.fn[o]=function(t){return c[t]?c[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):c.init.apply(this,arguments)},e[o]=function(t){return c[t]?c[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):c.init.apply(this,arguments)},e[o].defaults=a,window[o]=!0,e(window).bind("load",function(){e(".mCustomScrollbar")[o](),e.extend(e.expr[":"],{mcsInView:e.expr[":"].mcsInView||function(t){var o,a,n=e(t),i=n.parents(".mCSB_container");if(i.length)return o=i.parent(),a=[i[0].offsetTop,i[0].offsetLeft],a[0]+te(n)[0]>=0&&a[0]+te(n)[0]<o.height()-n.outerHeight(!1)&&a[1]+te(n)[1]>=0&&a[1]+te(n)[1]<o.width()-n.outerWidth(!1)},mcsInSight:e.expr[":"].mcsInSight||function(t,o,a){var n,i,r,l,s=e(t),c=s.parents(".mCSB_container"),d="exact"===a[3]?[[1,0],[1,0]]:[[.9,.1],[.6,.4]];if(c.length)return n=[s.outerHeight(!1),s.outerWidth(!1)],r=[c[0].offsetTop+te(s)[0],c[0].offsetLeft+te(s)[1]],i=[c.parent()[0].offsetHeight,c.parent()[0].offsetWidth],l=[n[0]<i[0]?d[0]:d[1],n[1]<i[1]?d[0]:d[1]],r[0]-i[0]*l[0][0]<0&&r[0]+n[0]-i[0]*l[0][1]>=0&&r[1]-i[1]*l[1][0]<0&&r[1]+n[1]-i[1]*l[1][1]>=0},mcsOverflow:e.expr[":"].mcsOverflow||function(t){var o=e(t).data("mCS");if(o)return o.overflowed[0]||o.overflowed[1]}})})})});/*!
 * Ajax Autocomplete for jQuery v1.3.0
 * https://github.com/devbridge/jQuery-Autocomplete
 *
 * Licensed under MIT (https://github.com/devbridge/jQuery-Autocomplete/blob/master/license.txt)
 */
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports&&"function"==typeof require?require("jquery"):jQuery)}(function(e){"use strict";function t(n,o){var s=e.noop,i=this,a={ajaxSettings:{},autoSelectFirst:!1,appendTo:document.body,serviceUrl:null,lookup:null,onSelect:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},externalEvent:t.externalEvent,formatResult:t.formatResult,formatGroup:t.formatGroup,delimiter:null,zIndex:11001,type:"GET",noCache:!1,onSearchStart:s,onSearchComplete:s,onSearchError:s,preserveInput:!1,containerClass:"autocomplete-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,preventBadQueries:!0,lookupFilter:function(e,t,n){return e.value.toLowerCase().indexOf(n)!==-1},paramName:"query",transformResult:function(t){return"string"==typeof t?e.parseJSON(t):t},showNoSuggestionNotice:!1,noSuggestionNotice:"No results",orientation:"bottom",forceFixPosition:!1};i.element=n,i.el=e(n),i.suggestions=[],i.badQueries=[],i.selectedIndex=-1,i.currentValue=i.element.value,i.intervalId=0,i.cachedResponse={},i.onChangeInterval=null,i.onChange=null,i.isLocal=!1,i.suggestionsContainer=null,i.noSuggestionsContainer=null,i.options=e.extend({},a,o),i.classes={selected:"autocomplete-selected",suggestion:"autocomplete-suggestion"},i.hint=null,i.hintValue="",i.selection=null,i.initialize(),i.setOptions(o)}var n=function(){return{escapeRegExChars:function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},createNode:function(e){var t=document.createElement("div");return t.className=e,t.style.position="absolute",t.style.display="none",t}}}(),o={ESC:27,TAB:9,RETURN:13,LEFT:37,UP:38,RIGHT:39,DOWN:40};t.utils=n,e.Autocomplete=t,t.formatResult=function(e,t){if(!t)return e.value;var o="("+n.escapeRegExChars(t)+")";return e.value.replace(new RegExp(o,"gi"),"<strong>$1</strong>").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/&lt;(\/?strong)&gt;/g,"<$1>")},t.formatGroup=function(e,t){return'<div class="autocomplete-group"><strong>'+t+"</strong></div>"},t.prototype={killerFn:null,initialize:function(){var n,o=this,s="."+o.classes.suggestion,i=o.classes.selected,a=o.options;o.element.setAttribute("autocomplete","off"),o.killerFn=function(t){e(t.target).closest("."+o.options.containerClass).length||(o.killSuggestions(),o.disableKillerFn())},o.noSuggestionsContainer=e('<div class="autocomplete-no-suggestion"></div>').html(this.options.noSuggestionNotice).get(0),o.suggestionsContainer=t.utils.createNode(a.containerClass),n=e(o.suggestionsContainer),n.appendTo(a.appendTo),"auto"!==a.width&&n.css("width",a.width),n.on("mouseover.autocomplete",s,function(){o.activate(e(this).data("index"))}),n.on("mouseout.autocomplete",function(){o.selectedIndex=-1,n.children("."+i).removeClass(i)}),n.on("click.autocomplete",s,function(){return o.select(e(this).data("index")),!1}),o.fixPositionCapture=function(){o.visible&&o.fixPosition()},e(window).on("resize.autocomplete",o.fixPositionCapture),o.el.on("keydown.autocomplete",function(e){o.onKeyPress(e)}),o.el.on("keyup.autocomplete",function(e){o.onKeyUp(e)}),o.el.on("blur.autocomplete",function(){o.onBlur()}),o.el.on("focus.autocomplete",function(){o.onFocus()}),o.el.on("change.autocomplete",function(e){o.onKeyUp(e)}),o.el.on("input.autocomplete",function(e){o.onKeyUp(e)})},onFocus:function(){var e=this;e.fixPosition(),e.el.val().length>=e.options.minChars&&e.onValueChange()},onBlur:function(){this.enableKillerFn()},abortAjax:function(){var e=this;e.currentRequest&&(e.currentRequest.abort(),e.currentRequest=null)},setOptions:function(t){var n=this,o=n.options;e.extend(o,t),n.isLocal=e.isArray(o.lookup),n.isLocal&&(o.lookup=n.verifySuggestionsFormat(o.lookup)),o.orientation=n.validateOrientation(o.orientation,"bottom"),e(n.suggestionsContainer).css({"max-height":o.maxHeight+"px",width:o.width+"px","z-index":o.zIndex})},clearCache:function(){this.cachedResponse={},this.badQueries=[]},clear:function(){this.clearCache(),this.currentValue="",this.suggestions=[]},disable:function(){var e=this;e.disabled=!0,clearInterval(e.onChangeInterval),e.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var t=this,n=e(t.suggestionsContainer),o=n.parent().get(0);if(o===document.body||t.options.forceFixPosition){var s=t.options.orientation,i=n.outerHeight(),a=t.el.outerHeight(),r=t.el.offset(),l={top:r.top,left:r.left};if("auto"===s){var u=e(window).height(),c=e(window).scrollTop(),g=-c+r.top-i,d=c+u-(r.top+a+i);s=Math.max(g,d)===g?"top":"bottom"}if(l.top+="top"===s?-i:a,o!==document.body){var p,h=n.css("opacity");t.visible||n.css("opacity",0).show(),p=n.offsetParent().offset(),l.top-=p.top,l.left-=p.left,t.visible||n.css("opacity",h).hide()}"auto"===t.options.width&&(l.width=t.el.outerWidth()+"px"),n.css(l)}},enableKillerFn:function(){var t=this;e(document).on("click.autocomplete",t.killerFn)},disableKillerFn:function(){var t=this;e(document).off("click.autocomplete",t.killerFn)},killSuggestions:function(){var e=this;e.stopKillSuggestions(),e.intervalId=window.setInterval(function(){e.visible&&(e.options.preserveInput||e.el.val(e.currentValue),e.hide()),e.stopKillSuggestions()},50)},stopKillSuggestions:function(){window.clearInterval(this.intervalId)},isCursorAtEnd:function(){var e,t=this,n=t.el.val().length,o=t.element.selectionStart;return"number"==typeof o?o===n:!document.selection||(e=document.selection.createRange(),e.moveStart("character",-n),n===e.text.length)},onKeyPress:function(e){var n=this;if(!n.disabled&&!n.visible&&e.which===o.DOWN&&n.currentValue)return void n.suggest();if(!n.disabled&&n.visible){switch(t.externalEvent=e,e.which){case o.ESC:n.el.val(n.currentValue),n.hide();break;case o.RIGHT:if(n.hint&&n.options.onHint&&n.isCursorAtEnd()){n.selectHint();break}return;case o.TAB:if(n.hint&&n.options.onHint)return void n.selectHint();if(n.selectedIndex===-1)return void n.hide();if(n.select(n.selectedIndex),n.options.tabDisabled===!1)return;break;case o.RETURN:if(n.selectedIndex===-1)return void n.hide();n.select(n.selectedIndex);break;case o.UP:n.moveUp();break;case o.DOWN:n.moveDown();break;default:return}e.stopImmediatePropagation(),e.preventDefault()}},onKeyUp:function(e){var t=this;if(!t.disabled){switch(e.which){case o.UP:case o.DOWN:return}clearInterval(t.onChangeInterval),t.currentValue!==t.el.val()&&(t.findBestHint(),t.options.deferRequestBy>0?t.onChangeInterval=setInterval(function(){t.onValueChange()},t.options.deferRequestBy):t.onValueChange())}},onValueChange:function(){var t=this,n=t.options,o=t.el.val(),s=t.getQuery(o);if(t.selection&&t.currentValue!==s&&(t.selection=null,(n.onInvalidateSelection||e.noop).call(t.element)),clearInterval(t.onChangeInterval),t.currentValue=o,t.selectedIndex=-1,n.triggerSelectOnValidInput&&t.isExactMatch(s))return void t.select(0);s.length<n.minChars?t.hide():t.getSuggestions(s)},isExactMatch:function(e){var t=this.suggestions;return 1===t.length&&t[0].value.toLowerCase()===e.toLowerCase()},getQuery:function(t){var n,o=this.options.delimiter;return o?(n=t.split(o),e.trim(n[n.length-1])):t},getSuggestionsLocal:function(t){var n,o=this,s=o.options,i=t.toLowerCase(),a=s.lookupFilter,r=parseInt(s.lookupLimit,10);return n={suggestions:e.grep(s.lookup,function(e){return a(e,t,i)})},r&&n.suggestions.length>r&&(n.suggestions=n.suggestions.slice(0,r)),n},getSuggestions:function(t){var n,o,s,i,a=this,r=a.options,l=r.serviceUrl;if(r.params[r.paramName]=t,o=r.ignoreParams?null:r.params,r.onSearchStart.call(a.element,r.params)!==!1){if(e.isFunction(r.lookup))return void r.lookup(t,function(e){a.suggestions=e.suggestions,a.suggest(),r.onSearchComplete.call(a.element,t,e.suggestions)});a.isLocal?n=a.getSuggestionsLocal(t):(e.isFunction(l)&&(l=l.call(a.element,t)),s=l+"?"+e.param(o||{}),n=a.cachedResponse[s]),n&&e.isArray(n.suggestions)?(a.suggestions=n.suggestions,a.suggest(),r.onSearchComplete.call(a.element,t,n.suggestions)):a.isBadQuery(t)?r.onSearchComplete.call(a.element,t,[]):(a.abortAjax(),i={url:l,data:o,type:r.type,dataType:r.dataType},e.extend(i,r.ajaxSettings),a.currentRequest=e.ajax(i).done(function(e){var n;a.currentRequest=null,n=r.transformResult(e,t),a.processResponse(n,t,s),r.onSearchComplete.call(a.element,t,n.suggestions)}).fail(function(e,n,o){r.onSearchError.call(a.element,t,e,n,o)}))}},isBadQuery:function(e){if(!this.options.preventBadQueries)return!1;for(var t=this.badQueries,n=t.length;n--;)if(0===e.indexOf(t[n]))return!0;return!1},hide:function(){var t=this,n=e(t.suggestionsContainer);e.isFunction(t.options.onHide)&&t.visible&&t.options.onHide.call(t.element,n),t.visible=!1,t.selectedIndex=-1,clearInterval(t.onChangeInterval),e(t.suggestionsContainer).hide(),t.signalHint(null)},suggest:function(){if(!this.suggestions.length)return void(this.options.showNoSuggestionNotice?this.noSuggestions():this.hide());var t,n=this,o=n.options,s=o.groupBy,i=o.formatResult,a=n.getQuery(n.currentValue),r=n.classes.suggestion,l=n.classes.selected,u=e(n.suggestionsContainer),c=e(n.noSuggestionsContainer),g=o.beforeRender,d="",p=function(e,n){var i=e.data[s];return t===i?"":(t=i,o.formatGroup(e,t))};if(o.triggerSelectOnValidInput&&n.isExactMatch(a))return void n.select(0);e.each(n.suggestions,function(e,t){s&&(d+=p(t,a)),d+='<div class="'+r+'" data-index="'+e+'">'+i(t,a,e)+"</div>"}),this.adjustContainerWidth(),c.detach(),u.html(d),e.isFunction(g)&&g.call(n.element,u,n.suggestions),n.fixPosition(),u.show(),o.autoSelectFirst&&(n.selectedIndex=0,u.scrollTop(0),u.children("."+r).first().addClass(l)),n.visible=!0,n.findBestHint()},noSuggestions:function(){var t=this,n=e(t.suggestionsContainer),o=e(t.noSuggestionsContainer);this.adjustContainerWidth(),o.detach(),n.empty(),n.append(o),t.fixPosition(),n.show(),t.visible=!0},adjustContainerWidth:function(){var t,n=this,o=n.options,s=e(n.suggestionsContainer);"auto"===o.width?(t=n.el.outerWidth(),s.css("width",t>0?t:300)):"flex"===o.width&&s.css("width","")},findBestHint:function(){var t=this,n=t.el.val().toLowerCase(),o=null;n&&(e.each(t.suggestions,function(e,t){var s=0===t.value.toLowerCase().indexOf(n);return s&&(o=t),!s}),t.signalHint(o))},signalHint:function(t){var n="",o=this;t&&(n=o.currentValue+t.value.substr(o.currentValue.length)),o.hintValue!==n&&(o.hintValue=n,o.hint=t,(this.options.onHint||e.noop)(n))},verifySuggestionsFormat:function(t){return t.length&&"string"==typeof t[0]?e.map(t,function(e){return{value:e,data:null}}):t},validateOrientation:function(t,n){return t=e.trim(t||"").toLowerCase(),e.inArray(t,["auto","bottom","top"])===-1&&(t=n),t},processResponse:function(e,t,n){var o=this,s=o.options;e.suggestions=o.verifySuggestionsFormat(e.suggestions),s.noCache||(o.cachedResponse[n]=e,s.preventBadQueries&&!e.suggestions.length&&o.badQueries.push(t)),t===o.getQuery(o.currentValue)&&(o.suggestions=e.suggestions,o.suggest())},activate:function(t){var n,o=this,s=o.classes.selected,i=e(o.suggestionsContainer),a=i.find("."+o.classes.suggestion);return i.find("."+s).removeClass(s),o.selectedIndex=t,o.selectedIndex!==-1&&a.length>o.selectedIndex?(n=a.get(o.selectedIndex),e(n).addClass(s),n):null},selectHint:function(){var t=this,n=e.inArray(t.hint,t.suggestions);t.select(n)},select:function(e){var t=this;t.hide(),t.onSelect(e),t.disableKillerFn()},moveUp:function(){var t=this;if(t.selectedIndex!==-1)return 0===t.selectedIndex?(e(t.suggestionsContainer).children().first().removeClass(t.classes.selected),t.selectedIndex=-1,t.el.val(t.currentValue),void t.findBestHint()):void t.adjustScroll(t.selectedIndex-1)},moveDown:function(){var e=this;e.selectedIndex!==e.suggestions.length-1&&e.adjustScroll(e.selectedIndex+1)},adjustScroll:function(t){var n=this,o=n.activate(t);if(o){var s,i,a,r=e(o).outerHeight();s=o.offsetTop,i=e(n.suggestionsContainer).scrollTop(),a=i+n.options.maxHeight-r,s<i?e(n.suggestionsContainer).scrollTop(s):s>a&&e(n.suggestionsContainer).scrollTop(s-n.options.maxHeight+r),n.options.preserveInput||n.el.val(n.getValue(n.suggestions[t].value)),n.signalHint(null)}},onSelect:function(t){var n=this,o=n.options.onSelect,s=n.suggestions[t];n.currentValue=n.getValue(s.value),n.currentValue===n.el.val()||n.options.preserveInput||n.el.val(n.currentValue),n.signalHint(null),n.suggestions=[],n.selection=s,e.isFunction(o)&&o.call(n.element,s)},getValue:function(e){var t,n,o=this,s=o.options.delimiter;return s?(t=o.currentValue,n=t.split(s),1===n.length?e:t.substr(0,t.length-n[n.length-1].length)+e):e},dispose:function(){var t=this;t.el.off(".autocomplete").removeData("autocomplete"),t.disableKillerFn(),e(window).off("resize.autocomplete",t.fixPositionCapture),e(t.suggestionsContainer).remove()}},e.fn.autocomplete=e.fn.devbridgeAutocomplete=function(n,o){return arguments.length?this.each(function(){var s=e(this),i=s.data("autocomplete");"string"==typeof n?i&&"function"==typeof i[n]&&i[n](o):(i&&i.dispose&&i.dispose(),i=new t(this,n),s.data("autocomplete",i))}):this.first().data("autocomplete")}});!function(t){"use strict";var a=function(a,e){function s(t){return t===-1?e.shortPass:t===-2?e.containsUsername:(t=t<0?0:t,t<34?e.badPass:t<68?e.goodPass:e.strongPass)}function n(t,a){var s=0;if(t.length<e.minimumLength)return-1;if(e.username){if(t.toLowerCase()===a.toLowerCase())return-2;if(e.usernamePartialMatch&&a.length){var n=new RegExp(a.toLowerCase());if(t.toLowerCase().match(n))return-2}}s+=4*t.length,s+=r(1,t).length-t.length,s+=r(2,t).length-t.length,s+=r(3,t).length-t.length,s+=r(4,t).length-t.length,t.match(/(.*[0-9].*[0-9].*[0-9])/)&&(s+=5);var i=".*[!,@,#,$,%,^,&,*,?,_,~]";return i=new RegExp("("+i+i+")"),t.match(i)&&(s+=5),t.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/)&&(s+=10),t.match(/([a-zA-Z])/)&&t.match(/([0-9])/)&&(s+=15),t.match(/([!,@,#,$,%,^,&,*,?,_,~])/)&&t.match(/([0-9])/)&&(s+=15),t.match(/([!,@,#,$,%,^,&,*,?,_,~])/)&&t.match(/([a-zA-Z])/)&&(s+=15),(t.match(/^\w+$/)||t.match(/^\d+$/))&&(s-=10),s>100&&(s=100),s<0&&(s=0),s}function r(t,a){for(var e="",s=!1,n=0;n<a.length;n++){s=!0;for(var r=0;r<t&&r+n+t<a.length;r++)s=s&&a.charAt(r+n)===a.charAt(r+n+t);r<t&&(s=!1),s?(n+=t-1,s=!1):e+=a.charAt(n)}return e}function i(){if(!("wpass"===a.attr("name")?1:0)){var r=!0,i=e.showText,o=e.showPercent,d=t("<div>").addClass("pass-graybar"),p=t("<div>").addClass("pass-colorbar"),l=a.outerWidth(),h=t("<div>").addClass("pass-wrapper").css("width",l).append(d.append(p)),c=a.parent(".pass-wrapper-cont");c.find(".pass-wrapper").remove(),c.find(".password-plain").parent(".btn-group").remove(),c.contents().unwrap(),a.attr("type","password"),a.addClass("pass-inputter-obj"),a.wrap('<div class="pass-wrapper-cont"></div>'),a.parent().addClass("pass-strength-visible"),e.animate&&(h.css("display","none"),r=!1,a.parent().removeClass("pass-strength-visible")),e.showPercent&&(o=t("<span>").addClass("pass-percent").text("0%"),h.append(o)),e.showText&&(i=t("<span>").addClass("pass-text").html(e.enterPass),h.append(i)),a.after(h),a.keyup(function(r){var d=e.username||"";d&&(d=t(d).val());var l=n(a.val(),d);a.trigger("password.score",[l]);var h=l<0?0:l;if(p.css({backgroundPosition:"0px -"+h+"px",width:h+"%"}),e.showPercent&&o.html(h+"%"),e.showText){var c=s(l);!a.val().length&&l<=0&&(c=e.enterPass),i.html()!==t("<div>").html(c).html()&&(i.html(c),a.trigger("password.text",[c,l]))}});var f=function(){h.slideDown(e.animateSpeed,function(){r=!0,a.parent().addClass("pass-strength-visible")})};e.animate&&(a.focus(function(){r||f()}),a.blur(function(){!a.val().length&&r&&h.slideUp(e.animateSpeed,function(){r=!1,a.parent().removeClass("pass-strength-visible")})})),setTimeout(function(){a.val()&&(f(),a.trigger("keyup"))},50);var g=a.outerHeight(),u=g<=28?"heighter-28":String(),m="not_yet_def"===a.attr("name")?" hidden ":String(),w="old"===a.attr("name")||"new2"===a.attr("name")||"repeat"===a.attr("name")?" hidden ":String(),v='<div class="btn-group"><button data-nref data-toggle="tooltip" data-container=".container-fluid" data-title="'+theme_language("theme_xhred_global_toggle_password_visibility")+'" class="btn btn-default '+u+" margined-left--1 password-plain"+m+'"><i class="fa2 fa2-eye"></i></button>',b='<button class="btn btn-default '+u+" margined-left--1 generate-password-key"+w+'" data-nref data-toggle="tooltip" data-container=".container-fluid" data-title="'+Convert.strUpInitial(theme_language("theme_xhred_password_generator_new"))+'"><i class="fa fa-1_15x fa-key-plus"></i></button></div>';return a.css("width",l).css("max-width",l),a.after(v+b),a.next(".btn-group").find(".password-plain").on("click",function(a){a.preventDefault();var e=t(this).parents(".pass-wrapper-cont").find("input"),s=t(this).find(".fa2"),n=s.hasClass("fa2-eye-off")?1:0;e[0].disabled||(n?(e.attr("type","password"),s.addClass("fa2-eye").removeClass("fa2-eye-off")):(e.attr("type","text"),s.removeClass("fa2-eye").addClass("fa2-eye-off")))}),a.next(".btn-group").find(".generate-password-key").on("click",function(e){e.preventDefault();var s=t(this).parents(".pass-wrapper-cont").find("input"),n=theme_password_generator();s[0].disabled||(s.val(n),theme_copy_to_clipboard(n),a.trigger("keyup"),a.trigger("focus"),a.trigger("input"))}),this}}var o={shortPass:"",badPass:"",goodPass:"",strongPass:"",containsUsername:"",enterPass:"",showPercent:!1,showText:!0,animate:!0,animateSpeed:"fast",username:!1,usernamePartialMatch:!0,minimumLength:4};return e=t.extend({},o,e),i.call(this)};t.fn.password=function(e){return this.each(function(){new a(t(this),e)})}}(jQuery);/*!
 * CodeMirror v5.41.0
 * https://codemirror.net
 *
 * Licensed under MIT (https://codemirror.net/LICENSE)
 */
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: https://codemirror.net/LICENSE
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.CodeMirror=t()}(this,function(){"use strict";function e(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function t(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function n(e,n){return t(e).appendChild(n)}function r(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function i(e,t,n,i){var o=r(e,t,n,i);return o.setAttribute("role","presentation"),o}function o(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do if(11==t.nodeType&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function l(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function a(t,n){var r=t.className;e(n).test(r)||(t.className+=(r?" ":"")+n)}function s(t,n){for(var r=t.split(" "),i=0;i<r.length;i++)r[i]&&!e(r[i]).test(n)&&(n+=" "+r[i]);return n}function c(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function u(e,t,n){t||(t={});for(var r in e)!e.hasOwnProperty(r)||n===!1&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function f(e,t,n,r,i){null==t&&(t=e.search(/[^\s\u00a0]/))==-1&&(t=e.length);for(var o=r||0,l=i||0;;){var a=e.indexOf("\t",o);if(a<0||a>=t)return l+(t-o);l+=a-o,l+=n-l%n,o=a+1}}function h(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}function d(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);o==-1&&(o=e.length);var l=o-r;if(o==e.length||i+l>=t)return r+Math.min(l,t-i);if(i+=o-r,i+=n-i%n,r=o+1,i>=t)return r}}function p(e){for(;$l.length<=e;)$l.push(m($l)+" ");return $l[e]}function m(e){return e[e.length-1]}function g(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function v(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}function y(){}function x(e,t){var n;return Object.create?n=Object.create(e):(y.prototype=e,n=new y),t&&u(t,n),n}function b(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||Xl.test(e))}function C(e,t){return t?!!(t.source.indexOf("\\w")>-1&&b(e))||t.test(e):b(e)}function w(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}function k(e){return e.charCodeAt(0)>=768&&Yl.test(e)}function S(e,t,n){for(;(n<0?t>0:t<e.length)&&k(e.charAt(t));)t+=n;return t}function L(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function M(e,t,n){var o=this;this.input=n,o.scrollbarFiller=r("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=r("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=i("div",null,"CodeMirror-code"),o.selectionDiv=r("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=r("div",null,"CodeMirror-cursors"),o.measure=r("div",null,"CodeMirror-measure"),o.lineMeasure=r("div",null,"CodeMirror-measure"),o.lineSpace=i("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var l=i("div",[o.lineSpace],"CodeMirror-lines");o.mover=r("div",[l],null,"position: relative"),o.sizer=r("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=r("div",null,null,"position: absolute; height: "+ql+"px; width: 1px;"),o.gutters=r("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=r("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=r("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),xl&&bl<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),Cl||ml&&Nl||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,n.init(o)}function T(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function A(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i}),r}function O(e,t,n){var r=[];return e.iter(t,n,function(e){r.push(e.text)}),r}function N(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function P(e){if(null==e.parent)return null;for(var t=e.parent,n=h(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function D(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines)for(var l=0;l<e.lines.length;++l){var a=e.lines[l],s=a.height;if(t<s)break;t-=s}return n+l}function F(e,t){return t>=e.first&&t<e.first+e.size}function E(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function H(e,t,n){if(void 0===n&&(n=null),!(this instanceof H))return new H(e,t,n);this.line=e,this.ch=t,this.sticky=n}function W(e,t){return e.line-t.line||e.ch-t.ch}function I(e,t){return e.sticky==t.sticky&&0==W(e,t)}function R(e){return H(e.line,e.ch)}function _(e,t){return W(e,t)<0?t:e}function B(e,t){return W(e,t)<0?e:t}function j(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function z(e,t){if(t.line<e.first)return H(e.first,0);var n=e.first+e.size-1;return t.line>n?H(n,T(e,n).text.length):q(t,T(e,t.line).text.length)}function q(e,t){var n=e.ch;return null==n||n>t?H(e.line,t):n<0?H(e.line,0):e}function U(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=z(e,t[r]);return n}function G(){Ql=!0}function V(){Jl=!0}function K(e,t,n){this.marker=e,this.from=t,this.to=n}function $(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function X(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function Y(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}function Q(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],l=o.marker,a=null==o.from||(l.inclusiveLeft?o.from<=t:o.from<t);if(a||o.from==t&&"bookmark"==l.type&&(!n||!o.marker.insertLeft)){var s=null==o.to||(l.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new K(l,o.from,s?null:o.to))}}return r}function J(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],l=o.marker,a=null==o.to||(l.inclusiveRight?o.to>=t:o.to>t);if(a||o.from==t&&"bookmark"==l.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(l.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new K(l,s?null:o.from-t,null==o.to?null:o.to-t))}}return r}function Z(e,t){if(t.full)return null;var n=F(e,t.from.line)&&T(e,t.from.line).markedSpans,r=F(e,t.to.line)&&T(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,l=0==W(t.from,t.to),a=Q(n,i,l),s=J(r,o,l),c=1==t.text.length,u=m(t.text).length+(c?i:0);if(a)for(var f=0;f<a.length;++f){var h=a[f];if(null==h.to){var d=$(s,h.marker);d?c&&(h.to=null==d.to?null:d.to+u):h.to=i}}if(s)for(var p=0;p<s.length;++p){var g=s[p];if(null!=g.to&&(g.to+=u),null==g.from){var v=$(a,g.marker);v||(g.from=u,c&&(a||(a=[])).push(g))}else g.from+=u,c&&(a||(a=[])).push(g)}a&&(a=ee(a)),s&&s!=a&&(s=ee(s));var y=[a];if(!c){var x,b=t.text.length-2;if(b>0&&a)for(var C=0;C<a.length;++C)null==a[C].to&&(x||(x=[])).push(new K(a[C].marker,null,null));for(var w=0;w<b;++w)y.push(x);y.push(s)}return y}function ee(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&n.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function te(e,t,n){var r=null;if(e.iter(t.line,n.line+1,function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&h(r,n)!=-1||(r||(r=[])).push(n)}}),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var l=r[o],a=l.find(0),s=0;s<i.length;++s){var c=i[s];if(!(W(c.to,a.from)<0||W(c.from,a.to)>0)){var u=[s,1],f=W(c.from,a.from),d=W(c.to,a.to);(f<0||!l.inclusiveLeft&&!f)&&u.push({from:c.from,to:a.from}),(d>0||!l.inclusiveRight&&!d)&&u.push({from:a.to,to:c.to}),i.splice.apply(i,u),s+=u.length-3}}return i}function ne(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function re(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function ie(e){return e.inclusiveLeft?-1:0}function oe(e){return e.inclusiveRight?1:0}function le(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=W(r.from,i.from)||ie(e)-ie(t);if(o)return-o;var l=W(r.to,i.to)||oe(e)-oe(t);return l?l:t.id-e.id}function ae(e,t){var n,r=Jl&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)i=r[o],i.marker.collapsed&&null==(t?i.from:i.to)&&(!n||le(n,i.marker)<0)&&(n=i.marker);return n}function se(e){return ae(e,!0)}function ce(e){return ae(e,!1)}function ue(e,t){var n,r=Jl&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||le(n,o.marker)<0)&&(n=o.marker)}return n}function fe(e,t,n,r,i){var o=T(e,t),l=Jl&&o.markedSpans;if(l)for(var a=0;a<l.length;++a){var s=l[a];if(s.marker.collapsed){var c=s.marker.find(0),u=W(c.from,n)||ie(s.marker)-ie(i),f=W(c.to,r)||oe(s.marker)-oe(i);if(!(u>=0&&f<=0||u<=0&&f>=0)&&(u<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?W(c.to,n)>=0:W(c.to,n)>0)||u>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?W(c.from,r)<=0:W(c.from,r)<0)))return!0}}}function he(e){for(var t;t=se(e);)e=t.find(-1,!0).line;return e}function de(e){for(var t;t=ce(e);)e=t.find(1,!0).line;return e}function pe(e){for(var t,n;t=ce(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function me(e,t){var n=T(e,t),r=he(n);return n==r?t:P(r)}function ge(e,t){if(t>e.lastLine())return t;var n,r=T(e,t);if(!ve(e,r))return t;for(;n=ce(r);)r=n.find(1,!0).line;return P(r)+1}function ve(e,t){var n=Jl&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if(r=n[i],r.marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&ye(e,t,r))return!0}}function ye(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return ye(e,r.line,$(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if(i=t.markedSpans[o],i.marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&ye(e,t,i))return!0}function xe(e){e=he(e);for(var t=0,n=e.parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;n=o,o=n.parent)for(var l=0;l<o.children.length;++l){var a=o.children[l];if(a==n)break;t+=a.height}return t}function be(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=se(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=ce(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,r=o.to.line,n+=r.text.length-o.to.ch}return n}function Ce(e){var t=e.display,n=e.doc;t.maxLine=T(n,n.first),t.maxLineLength=be(t.maxLine),t.maxLineChanged=!0,n.iter(function(e){var n=be(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}function we(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var l=e[o];(l.from<n&&l.to>t||t==n&&l.to==t)&&(r(Math.max(l.from,t),Math.min(l.to,n),1==l.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}function ke(e,t,n){var r;Zl=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:Zl=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:Zl=i)}return null!=r?r:Zl}function Se(e,t){var n=e.order;return null==n&&(n=e.order=ea(e.text,t)),n}function Le(e,t){return e._handlers&&e._handlers[t]||ta}function Me(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=h(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function Te(e,t){var n=Le(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function Ae(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Te(e,n||t.type,e,t),Ee(t)||t.codemirrorIgnore}function Oe(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)h(n,t[r])==-1&&n.push(t[r])}function Ne(e,t){return Le(e,t).length>0}function Pe(e){e.prototype.on=function(e,t){na(this,e,t)},e.prototype.off=function(e,t){Me(this,e,t)}}function De(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Fe(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ee(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function He(e){De(e),Fe(e)}function We(e){return e.target||e.srcElement}function Ie(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),Pl&&e.ctrlKey&&1==t&&(t=3),t}function Re(e){if(null==jl){var t=r("span","​");n(e,r("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(jl=t.offsetWidth<=1&&t.offsetHeight>2&&!(xl&&bl<8))}var i=jl?r("span","​"):r("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}function _e(e){if(null!=zl)return zl;var r=n(e,document.createTextNode("AخA")),i=Hl(r,0,1).getBoundingClientRect(),o=Hl(r,1,2).getBoundingClientRect();return t(e),!(!i||i.left==i.right)&&(zl=o.right-i.right<3)}function Be(e){if(null!=aa)return aa;var t=n(e,r("span","x")),i=t.getBoundingClientRect(),o=Hl(t,0,1).getBoundingClientRect();return aa=Math.abs(i.left-o.left)>1}function je(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),sa[e]=t}function ze(e,t){ca[e]=t}function qe(e){if("string"==typeof e&&ca.hasOwnProperty(e))e=ca[e];else if(e&&"string"==typeof e.name&&ca.hasOwnProperty(e.name)){var t=ca[e.name];"string"==typeof t&&(t={name:t}),e=x(t,e),e.name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return qe("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return qe("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ue(e,t){t=qe(t);var n=sa[t.name];if(!n)return Ue(e,"text/plain");var r=n(e,t);if(ua.hasOwnProperty(t.name)){var i=ua[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var l in t.modeProps)r[l]=t.modeProps[l];return r}function Ge(e,t){u(t,ua.hasOwnProperty(e)?ua[e]:ua[e]={})}function Ve(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Ke(e,t){for(var n;e.innerMode&&((n=e.innerMode(t))&&n.mode!=e);)t=n.state,e=n.mode;return n||{mode:e,state:t}}function $e(e,t,n){return!e.startState||e.startState(t,n)}function Xe(e,t,n,r){var i=[e.state.modeGen],o={};rt(e,t.text,e.doc.mode,n,function(e,t){return i.push(e,t)},o,r);for(var l=n.state,a=0;a<e.state.overlays.length;++a)!function(r){n.baseTokens=i;var a=e.state.overlays[r],s=1,c=0;n.state=!0,rt(e,t.text,a.mode,n,function(e,t){for(var n=s;c<e;){var r=i[s];r>e&&i.splice(s,1,e,i[s+1],r),s+=2,c=Math.min(e,r)}if(t)if(a.opaque)i.splice(n,s-n,e,"overlay "+t),s=n+2;else for(;n<s;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}},o),n.state=l,n.baseTokens=null,n.baseTokenPos=1}(a);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function Ye(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=Qe(e,P(t)),i=t.text.length>e.options.maxHighlightLength&&Ve(e.doc.mode,r.state),o=Xe(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Qe(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new da(r,!0,t);var o=it(e,t,n),l=o>r.first&&T(r,o-1).stateAfter,a=l?da.fromSaved(r,l,o):new da(r,$e(r.mode),o);return r.iter(o,t,function(n){Je(e,n.text,a);var r=a.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?a.save():null,a.nextLine()}),n&&(r.modeFrontier=a.line),a}function Je(e,t,n,r){var i=e.doc.mode,o=new fa(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&Ze(i,n.state);!o.eol();)et(i,o,n.state),o.start=o.pos}function Ze(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Ke(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function et(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Ke(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}function tt(e,t,n,r){var i,o=e.doc,l=o.mode;t=z(o,t);var a,s=T(o,t.line),c=Qe(e,t.line,n),u=new fa(s.text,e.options.tabSize,c);for(r&&(a=[]);(r||u.pos<t.ch)&&!u.eol();)u.start=u.pos,i=et(l,u,c.state),r&&a.push(new pa(u,i,Ve(o.mode,c.state)));return r?a:new pa(u,i,c.state)}function nt(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|s)"+n[2]+"(?:$|s)").test(t[r])||(t[r]+=" "+n[2])}return e}function rt(e,t,n,r,i,o,l){var a=n.flattenSpans;null==a&&(a=e.options.flattenSpans);var s,c=0,u=null,f=new fa(t,e.options.tabSize,r),h=e.options.addModeClass&&[null];for(""==t&&nt(Ze(n,r.state),o);!f.eol();){if(f.pos>e.options.maxHighlightLength?(a=!1,l&&Je(e,t,r,f.pos),f.pos=t.length,s=null):s=nt(et(n,f,r.state,h),o),h){var d=h[0].name;d&&(s="m-"+(s?d+" "+s:d))}if(!a||u!=s){for(;c<f.start;)c=Math.min(f.start,c+5e3),i(c,u);u=s}f.start=f.pos}for(;c<f.pos;){var p=Math.min(f.pos,c+5e3);i(p,u),c=p}}function it(e,t,n){for(var r,i,o=e.doc,l=n?-1:t-(e.doc.mode.innerMode?1e3:100),a=t;a>l;--a){if(a<=o.first)return o.first;var s=T(o,a-1),c=s.stateAfter;if(c&&(!n||a+(c instanceof ha?c.lookAhead:0)<=o.modeFrontier))return a;var u=f(s.text,null,e.options.tabSize);(null==i||r>u)&&(i=a-1,r=u)}return i}function ot(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=T(e,r).stateAfter;if(i&&(!(i instanceof ha)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}function lt(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),ne(e),re(e,n);var i=r?r(e):1;i!=e.height&&N(e,i)}function at(e){e.parent=null,ne(e)}function st(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?ya:va;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function ct(e,t){var n=i("span",null,null,Cl?"padding-right: .1px":null),r={pre:i("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var o=0;o<=(t.rest?t.rest.length:0);o++){var l=o?t.rest[o-1]:t.line,a=void 0;r.pos=0,r.addToken=ft,_e(e.display.measure)&&(a=Se(l,e.doc.direction))&&(r.addToken=dt(r.addToken,a)),r.map=[];mt(l,r,Ye(e,l,t!=e.display.externalMeasured&&P(l))),l.styleClasses&&(l.styleClasses.bgClass&&(r.bgClass=s(l.styleClasses.bgClass,r.bgClass||"")),l.styleClasses.textClass&&(r.textClass=s(l.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Re(e.display.measure))),0==o?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(Cl){var c=r.content.lastChild;(/\bcm-tab\b/.test(c.className)||c.querySelector&&c.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return Te(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=s(r.pre.className,r.textClass||"")),r}function ut(e){var t=r("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function ft(e,t,n,i,o,l,a){if(t){var s,c=e.splitSpaces?ht(t,e.trailingSpace):t,u=e.cm.state.specialChars,f=!1;if(u.test(t)){s=document.createDocumentFragment();for(var h=0;;){u.lastIndex=h;var d=u.exec(t),m=d?d.index-h:t.length-h;if(m){var g=document.createTextNode(c.slice(h,h+m));xl&&bl<9?s.appendChild(r("span",[g])):s.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!d)break;h+=m+1;var v=void 0;if("\t"==d[0]){var y=e.cm.options.tabSize,x=y-e.col%y;v=s.appendChild(r("span",p(x),"cm-tab")),v.setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=x}else"\r"==d[0]||"\n"==d[0]?(v=s.appendChild(r("span","\r"==d[0]?"␍":"␤","cm-invalidchar")),v.setAttribute("cm-text",d[0]),e.col+=1):(v=e.cm.options.specialCharPlaceholder(d[0]),v.setAttribute("cm-text",d[0]),xl&&bl<9?s.appendChild(r("span",[v])):s.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,s=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,s),xl&&bl<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||i||o||f||a){var b=n||"";i&&(b+=i),o&&(b+=o);var C=r("span",[s],b,a);return l&&(C.title=l),e.content.appendChild(C)}e.content.appendChild(s)}}function ht(e,t){if(e.length>1&&!/  /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}function dt(e,t){return function(n,r,i,o,l,a,s){i=i?i+" cm-force-border":"cm-force-border";for(var c=n.pos,u=c+r.length;;){for(var f=void 0,h=0;h<t.length&&(f=t[h],!(f.to>c&&f.from<=c));h++);if(f.to>=u)return e(n,r,i,o,l,a,s);e(n,r.slice(0,f.to-c),i,o,null,a,s),o=null,r=r.slice(f.to-c),c=f.to}}}function pt(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function mt(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var l,a,s,c,u,f,h,d=i.length,p=0,m=1,g="",v=0;;){if(v==p){s=c=u=f=a="",h=null,v=1/0;for(var y=[],x=void 0,b=0;b<r.length;++b){var C=r[b],w=C.marker;"bookmark"==w.type&&C.from==p&&w.widgetNode?y.push(w):C.from<=p&&(null==C.to||C.to>p||w.collapsed&&C.to==p&&C.from==p)?(null!=C.to&&C.to!=p&&v>C.to&&(v=C.to,c=""),w.className&&(s+=" "+w.className),w.css&&(a=(a?a+";":"")+w.css),w.startStyle&&C.from==p&&(u+=" "+w.startStyle),w.endStyle&&C.to==v&&(x||(x=[])).push(w.endStyle,C.to),w.title&&!f&&(f=w.title),w.collapsed&&(!h||le(h.marker,w)<0)&&(h=C)):C.from>p&&v>C.from&&(v=C.from)}if(x)for(var k=0;k<x.length;k+=2)x[k+1]==v&&(c+=" "+x[k]);if(!h||h.from==p)for(var S=0;S<y.length;++S)pt(t,0,y[S]);if(h&&(h.from||0)==p){if(pt(t,(null==h.to?d+1:h.to)-p,h.marker,null==h.from),null==h.to)return;h.to==p&&(h=!1)}}if(p>=d)break;for(var L=Math.min(d,v);;){if(g){var M=p+g.length;if(!h){var T=M>L?g.slice(0,L-p):g;t.addToken(t,T,l?l+s:s,u,p+T.length==v?c:"",f,a)}if(M>=L){g=g.slice(L-p),p=L;break}p=M,u=""}g=i.slice(o,o=n[m++]),l=st(n[m++],t.cm.options)}}else for(var A=1;A<n.length;A+=2)t.addToken(t,i.slice(o,o=n[A]),st(n[A+1],t.cm.options))}function gt(e,t,n){this.line=t,this.rest=pe(t),this.size=this.rest?P(m(this.rest))-n+1:1,this.node=this.text=null,this.hidden=ve(e,t)}function vt(e,t,n){for(var r,i=[],o=t;o<n;o=r){var l=new gt(e.doc,T(e.doc,o),o);r=o+l.size,i.push(l)}return i}function yt(e){xa?xa.ops.push(e):e.ownsGroup=xa={ops:[e],delayedCallbacks:[]}}function xt(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}function bt(e,t){var n=e.ownsGroup;if(n)try{xt(n)}finally{xa=null,t(n)}}function Ct(e,t){var n=Le(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);xa?r=xa.delayedCallbacks:ba?r=ba:(r=ba=[],setTimeout(wt,0));for(var o=0;o<n.length;++o)!function(e){r.push(function(){return n[e].apply(null,i)})}(o)}}function wt(){var e=ba;ba=null;for(var t=0;t<e.length;++t)e[t]()}function kt(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?Tt(e,t):"gutter"==o?Ot(e,t,n,r):"class"==o?At(e,t):"widget"==o&&Nt(e,t,r)}t.changes=null}function St(e){return e.node==e.text&&(e.node=r("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),xl&&bl<8&&(e.node.style.zIndex=2)),e.node}function Lt(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var i=St(t);t.background=i.insertBefore(r("div",null,n),i.firstChild),e.display.input.setUneditable(t.background)}}function Mt(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):ct(e,t)}function Tt(e,t){var n=t.text.className,r=Mt(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,At(e,t)):n&&(t.text.className=n)}function At(e,t){Lt(e,t),t.line.wrapClass?St(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function Ot(e,t,n,i){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var o=St(t);t.gutterBackground=r("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px; width: "+i.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),o.insertBefore(t.gutterBackground,t.text)}var l=t.line.gutterMarkers;if(e.options.lineNumbers||l){var a=St(t),s=t.gutter=r("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px");if(e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||l&&l["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(r("div",E(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+i.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),l)for(var c=0;c<e.options.gutters.length;++c){var u=e.options.gutters[c],f=l.hasOwnProperty(u)&&l[u];f&&s.appendChild(r("div",[f],"CodeMirror-gutter-elt","left: "+i.gutterLeft[u]+"px; width: "+i.gutterWidth[u]+"px"))}}}function Nt(e,t,n){t.alignable&&(t.alignable=null);for(var r=t.node.firstChild,i=void 0;r;r=i)i=r.nextSibling,"CodeMirror-linewidget"==r.className&&t.node.removeChild(r);Dt(e,t,n)}function Pt(e,t,n,r){var i=Mt(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),At(e,t),Ot(e,t,n,r),Dt(e,t,r),t.node}function Dt(e,t,n){if(Ft(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)Ft(e,t.rest[r],t,n,!1)}function Ft(e,t,n,i,o){if(t.widgets)for(var l=St(n),a=0,s=t.widgets;a<s.length;++a){var c=s[a],u=r("div",[c.node],"CodeMirror-linewidget");c.handleMouseEvents||u.setAttribute("cm-ignore-events","true"),Et(c,u,n,i),e.display.input.setUneditable(u),o&&c.above?l.insertBefore(u,n.gutter||n.text):l.appendChild(u),Ct(c,"redraw")}}function Et(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function Ht(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!o(document.body,e.node)){var i="position: relative;";e.coverGutter&&(i+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(i+="width: "+t.display.wrapper.clientWidth+"px;"),n(t.display.measure,r("div",[e.node],null,i))}return e.height=e.node.parentNode.offsetHeight}function Wt(e,t){for(var n=We(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function It(e){return e.lineSpace.offsetTop}function Rt(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function _t(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=n(e.measure,r("pre","x")),i=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,o={left:parseInt(i.paddingLeft),right:parseInt(i.paddingRight)};return isNaN(o.left)||isNaN(o.right)||(e.cachedPaddingH=o),o}function Bt(e){return ql-e.display.nativeBarWidth}function jt(e){return e.display.scroller.clientWidth-Bt(e)-e.display.barWidth}function zt(e){return e.display.scroller.clientHeight-Bt(e)-e.display.barHeight}function qt(e,t,n){var r=e.options.lineWrapping,i=r&&jt(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var l=t.text.firstChild.getClientRects(),a=0;a<l.length-1;a++){var s=l[a],c=l[a+1];Math.abs(s.bottom-c.bottom)>2&&o.push((s.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Ut(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(P(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Gt(e,t){t=he(t);var r=P(t),i=e.display.externalMeasured=new gt(e.doc,t,r);i.lineN=r;var o=i.built=ct(e,i);return i.text=o.pre,n(e.display.lineMeasure,o.pre),i}function Vt(e,t,n,r){return Xt(e,$t(e,t),n,r)}function Kt(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Tn(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function $t(e,t){var n=P(t),r=Kt(e,n);r&&!r.text?r=null:r&&r.changes&&(kt(e,r,n,wn(e)),e.curOp.forceUpdate=!0),r||(r=Gt(e,t));var i=Ut(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function Xt(e,t,n,r,i){t.before&&(n=-1);var o,l=n+(r||"");return t.cache.hasOwnProperty(l)?o=t.cache[l]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(qt(e,t.view,t.rect),t.hasHeights=!0),o=Jt(e,t,n,r),o.bogus||(t.cache[l]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}function Yt(e,t,n){for(var r,i,o,l,a,s,c=0;c<e.length;c+=3)if(a=e[c],s=e[c+1],t<a?(i=0,o=1,l="left"):t<s?(i=t-a,o=i+1):(c==e.length-3||t==s&&e[c+3]>t)&&(o=s-a,i=o-1,t>=s&&(l="right")),null!=i){if(r=e[c+2],a==s&&n==(r.insertLeft?"left":"right")&&(l=n),"left"==n&&0==i)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)r=e[2+(c-=3)],l="left";if("right"==n&&i==s-a)for(;c<e.length-3&&e[c+3]==e[c+4]&&!e[c+5].insertLeft;)r=e[2+(c+=3)],l="right";break}return{node:r,start:i,end:o,collapse:l,coverStart:a,coverEnd:s}}function Qt(e,t){var n=Ca
;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function Jt(e,t,n,r){var i,o=Yt(t.map,n,r),l=o.node,a=o.start,s=o.end,c=o.collapse;if(3==l.nodeType){for(var u=0;u<4;u++){for(;a&&k(t.line.text.charAt(o.coverStart+a));)--a;for(;o.coverStart+s<o.coverEnd&&k(t.line.text.charAt(o.coverStart+s));)++s;if(i=xl&&bl<9&&0==a&&s==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():Qt(Hl(l,a,s).getClientRects(),r),i.left||i.right||0==a)break;s=a,a-=1,c="right"}xl&&bl<11&&(i=Zt(e.display.measure,i))}else{a>0&&(c=r="right");var f;i=e.options.lineWrapping&&(f=l.getClientRects()).length>1?f["right"==r?f.length-1:0]:l.getBoundingClientRect()}if(xl&&bl<9&&!a&&(!i||!i.left&&!i.right)){var h=l.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+Cn(e.display),top:h.top,bottom:h.bottom}:Ca}for(var d=i.top-t.rect.top,p=i.bottom-t.rect.top,m=(d+p)/2,g=t.view.measure.heights,v=0;v<g.length-1&&!(m<g[v]);v++);var y=v?g[v-1]:0,x=g[v],b={left:("right"==c?i.right:i.left)-t.rect.left,right:("left"==c?i.left:i.right)-t.rect.left,top:y,bottom:x};return i.left||i.right||(b.bogus=!0),e.options.singleCursorHeightPerLine||(b.rtop=d,b.rbottom=p),b}function Zt(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!Be(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}function en(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function tn(e){e.display.externalMeasure=null,t(e.display.lineMeasure);for(var n=0;n<e.display.view.length;n++)en(e.display.view[n])}function nn(e){tn(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function rn(){return kl&&Ol?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function on(){return kl&&Ol?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function ln(e){var t=0;if(e.widgets)for(var n=0;n<e.widgets.length;++n)e.widgets[n].above&&(t+=Ht(e.widgets[n]));return t}function an(e,t,n,r,i){if(!i){var o=ln(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var l=xe(t);if("local"==r?l+=It(e.display):l-=e.display.viewOffset,"page"==r||"window"==r){var a=e.display.lineSpace.getBoundingClientRect();l+=a.top+("window"==r?0:on());var s=a.left+("window"==r?0:rn());n.left+=s,n.right+=s}return n.top+=l,n.bottom+=l,n}function sn(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=rn(),i-=on();else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var l=e.display.lineSpace.getBoundingClientRect();return{left:r-l.left,top:i-l.top}}function cn(e,t,n,r,i){return r||(r=T(e.doc,t.line)),an(e,r,Vt(e,r,t.ch,i),n)}function un(e,t,n,r,i,o){function l(t,l){var a=Xt(e,i,t,l?"right":"left",o);return l?a.left=a.right:a.right=a.left,an(e,r,a,n)}function a(e,t,n){var r=s[t],i=1==r.level;return l(n?e-1:e,i!=n)}r=r||T(e.doc,t.line),i||(i=$t(e,r));var s=Se(r,e.doc.direction),c=t.ch,u=t.sticky;if(c>=r.text.length?(c=r.text.length,u="before"):c<=0&&(c=0,u="after"),!s)return l("before"==u?c-1:c,"before"==u);var f=ke(s,c,u),h=Zl,d=a(c,f,"before"==u);return null!=h&&(d.other=a(c,h,"before"!=u)),d}function fn(e,t){var n=0;t=z(e.doc,t),e.options.lineWrapping||(n=Cn(e.display)*t.ch);var r=T(e.doc,t.line),i=xe(r)+It(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function hn(e,t,n,r,i){var o=H(e,t,n);return o.xRel=i,r&&(o.outside=!0),o}function dn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return hn(r.first,0,null,!0,-1);var i=D(r,n),o=r.first+r.size-1;if(i>o)return hn(r.first+r.size-1,T(r,o).text.length,null,!0,1);t<0&&(t=0);for(var l=T(r,i);;){var a=vn(e,l,i,t,n),s=ue(l,a.ch+(a.xRel>0?1:0));if(!s)return a;var c=s.find(1);if(c.line==i)return c;l=T(r,i=c.line)}}function pn(e,t,n,r){r-=ln(t);var i=t.text.length,o=L(function(t){return Xt(e,n,t-1).bottom<=r},i,0);return i=L(function(t){return Xt(e,n,t).top>r},o,i),{begin:o,end:i}}function mn(e,t,n,r){return n||(n=$t(e,t)),pn(e,t,n,an(e,t,Xt(e,n,r),"line").top)}function gn(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function vn(e,t,n,r,i){i-=xe(t);var o=$t(e,t),l=ln(t),a=0,s=t.text.length,c=!0,u=Se(t,e.doc.direction);if(u){var f=(e.options.lineWrapping?xn:yn)(e,t,n,o,u,r,i);c=1!=f.level,a=c?f.from:f.to-1,s=c?f.to:f.from-1}var h,d,p=null,m=null,g=L(function(t){var n=Xt(e,o,t);return n.top+=l,n.bottom+=l,!!gn(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(p=t,m=n),!0)},a,s),v=!1;if(m){var y=r-m.left<m.right-r,x=y==c;g=p+(x?0:1),d=x?"after":"before",h=y?m.left:m.right}else{c||g!=s&&g!=a||g++,d=0==g?"after":g==t.text.length?"before":Xt(e,o,g-(c?1:0)).bottom+l<=i==c?"after":"before";var b=un(e,H(n,g,d),"line",t,o);h=b.left,v=i<b.top||i>=b.bottom}return g=S(t.text,g,1),hn(n,g,d,v,r-h)}function yn(e,t,n,r,i,o,l){var a=L(function(a){var s=i[a],c=1!=s.level;return gn(un(e,H(n,c?s.to:s.from,c?"before":"after"),"line",t,r),o,l,!0)},0,i.length-1),s=i[a];if(a>0){var c=1!=s.level,u=un(e,H(n,c?s.from:s.to,c?"after":"before"),"line",t,r);gn(u,o,l,!0)&&u.top>l&&(s=i[a-1])}return s}function xn(e,t,n,r,i,o,l){var a=pn(e,t,r,l),s=a.begin,c=a.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,f=null,h=0;h<i.length;h++){var d=i[h];if(!(d.from>=c||d.to<=s)){var p=1!=d.level,m=Xt(e,r,p?Math.min(c,d.to)-1:Math.max(s,d.from)).right,g=m<o?o-m+1e9:m-o;(!u||f>g)&&(u=d,f=g)}}return u||(u=i[i.length-1]),u.from<s&&(u={from:s,to:u.to,level:u.level}),u.to>c&&(u={from:u.from,to:c,level:u.level}),u}function bn(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==ga){ga=r("pre");for(var i=0;i<49;++i)ga.appendChild(document.createTextNode("x")),ga.appendChild(r("br"));ga.appendChild(document.createTextNode("x"))}n(e.measure,ga);var o=ga.offsetHeight/50;return o>3&&(e.cachedTextHeight=o),t(e.measure),o||1}function Cn(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=r("span","xxxxxxxxxx"),i=r("pre",[t]);n(e.measure,i);var o=t.getBoundingClientRect(),l=(o.right-o.left)/10;return l>2&&(e.cachedCharWidth=l),l||10}function wn(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,l=0;o;o=o.nextSibling,++l)n[e.options.gutters[l]]=o.offsetLeft+o.clientLeft+i,r[e.options.gutters[l]]=o.clientWidth;return{fixedPos:kn(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function kn(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Sn(e){var t=bn(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Cn(e.display)-3);return function(i){if(ve(e.doc,i))return 0;var o=0;if(i.widgets)for(var l=0;l<i.widgets.length;l++)i.widgets[l].height&&(o+=i.widgets[l].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function Ln(e){var t=e.doc,n=Sn(e);t.iter(function(e){var t=n(e);t!=e.height&&N(e,t)})}function Mn(e,t,n,r){var i=e.display;if(!n&&"true"==We(t).getAttribute("cm-not-content"))return null;var o,l,a=i.lineSpace.getBoundingClientRect();try{o=t.clientX-a.left,l=t.clientY-a.top}catch(e){return null}var s,c=dn(e,o,l);if(r&&1==c.xRel&&(s=T(e.doc,c.line).text).length==c.ch){var u=f(s,s.length,e.options.tabSize)-s.length;c=H(c.line,Math.max(0,Math.round((o-_t(e.display).left)/Cn(e.display))-u))}return c}function Tn(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function An(e){e.display.input.showSelection(e.display.input.prepareSelection())}function On(e,t){void 0===t&&(t=!0);for(var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),l=0;l<n.sel.ranges.length;l++)if(t||l!=n.sel.primIndex){var a=n.sel.ranges[l];if(!(a.from().line>=e.display.viewTo||a.to().line<e.display.viewFrom)){var s=a.empty();(s||e.options.showCursorWhenSelecting)&&Nn(e,a.head,i),s||Dn(e,a,o)}}return r}function Nn(e,t,n){var i=un(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),o=n.appendChild(r("div"," ","CodeMirror-cursor"));if(o.style.left=i.left+"px",o.style.top=i.top+"px",o.style.height=Math.max(0,i.bottom-i.top)*e.options.cursorHeight+"px",i.other){var l=n.appendChild(r("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));l.style.display="",l.style.left=i.other.left+"px",l.style.top=i.other.top+"px",l.style.height=.85*(i.other.bottom-i.other.top)+"px"}}function Pn(e,t){return e.top-t.top||e.left-t.left}function Dn(e,t,n){function i(e,t,n,i){t<0&&(t=0),t=Math.round(t),i=Math.round(i),s.appendChild(r("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n                             top: "+t+"px; width: "+(null==n?f-e:n)+"px;\n                             height: "+(i-t)+"px"))}function o(t,n,r){function o(n,r){return cn(e,H(t,n),"div",d,r)}function l(t,n,r){var i=mn(e,d,null,t),l="ltr"==n==("after"==r)?"left":"right";return o("after"==r?i.begin:i.end-(/\s/.test(d.text.charAt(i.end-1))?2:1),l)[l]}var s,c,d=T(a,t),p=d.text.length,m=Se(d,a.direction);return we(m,n||0,null==r?p:r,function(e,t,a,d){var g="ltr"==a,v=o(e,g?"left":"right"),y=o(t-1,g?"right":"left"),x=null==n&&0==e,b=null==r&&t==p,C=0==d,w=!m||d==m.length-1;if(y.top-v.top<=3){var k=(h?x:b)&&C,S=(h?b:x)&&w,L=k?u:(g?v:y).left,M=S?f:(g?y:v).right;i(L,v.top,M-L,v.bottom)}else{var T,A,O,N;g?(T=h&&x&&C?u:v.left,A=h?f:l(e,a,"before"),O=h?u:l(t,a,"after"),N=h&&b&&w?f:y.right):(T=h?l(e,a,"before"):u,A=!h&&x&&C?f:v.right,O=!h&&b&&w?u:y.left,N=h?l(t,a,"after"):f),i(T,v.top,A-T,v.bottom),v.bottom<y.top&&i(u,v.bottom,null,y.top),i(O,y.top,N-O,y.bottom)}(!s||Pn(v,s)<0)&&(s=v),Pn(y,s)<0&&(s=y),(!c||Pn(v,c)<0)&&(c=v),Pn(y,c)<0&&(c=y)}),{start:s,end:c}}var l=e.display,a=e.doc,s=document.createDocumentFragment(),c=_t(e.display),u=c.left,f=Math.max(l.sizerWidth,jt(e)-l.sizer.offsetLeft)-c.right,h="ltr"==a.direction,d=t.from(),p=t.to();if(d.line==p.line)o(d.line,d.ch,p.ch);else{var m=T(a,d.line),g=T(a,p.line),v=he(m)==he(g),y=o(d.line,d.ch,v?m.text.length+1:null).end,x=o(p.line,v?0:null,p.ch).start;v&&(y.top<x.top-2?(i(y.right,y.top,null,y.bottom),i(u,x.top,x.left,x.bottom)):i(y.right,y.top,x.left-y.right,y.bottom)),y.bottom<x.top&&i(u,y.bottom,null,x.top)}n.appendChild(s)}function Fn(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function En(e){e.state.focused||(e.display.input.focus(),Wn(e))}function Hn(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,In(e))},100)}function Wn(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(Te(e,"focus",e,t),e.state.focused=!0,a(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),Cl&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Fn(e))}function In(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Te(e,"blur",e,t),e.state.focused=!1,Rl(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Rn(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r<t.view.length;r++){var i=t.view[r],o=void 0;if(!i.hidden){if(xl&&bl<8){var l=i.node.offsetTop+i.node.offsetHeight;o=l-n,n=l}else{var a=i.node.getBoundingClientRect();o=a.bottom-a.top}var s=i.line.height-o;if(o<2&&(o=bn(t)),(s>.005||s<-.005)&&(N(i.line,o),_n(i.line),i.rest))for(var c=0;c<i.rest.length;c++)_n(i.rest[c])}}}function _n(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function Bn(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-It(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=D(t,r),l=D(t,i);if(n&&n.ensure){var a=n.ensure.from.line,s=n.ensure.to.line;a<o?(o=a,l=D(t,xe(T(t,a))+e.wrapper.clientHeight)):Math.min(s,t.lastLine())>=l&&(o=D(t,xe(T(t,s))-e.wrapper.clientHeight),l=s)}return{from:o,to:Math.max(l,o+1)}}function jn(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=kn(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",l=0;l<n.length;l++)if(!n[l].hidden){e.options.fixedGutter&&(n[l].gutter&&(n[l].gutter.style.left=o),n[l].gutterBackground&&(n[l].gutterBackground.style.left=o));var a=n[l].alignable;if(a)for(var s=0;s<a.length;s++)a[s].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function zn(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=E(e.options,t.first+t.size-1),i=e.display;if(n.length!=i.lineNumChars){var o=i.measure.appendChild(r("div",[r("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),l=o.firstChild.offsetWidth,a=o.offsetWidth-l;return i.lineGutter.style.width="",i.lineNumInnerWidth=Math.max(l,i.lineGutter.offsetWidth-a)+1,i.lineNumWidth=i.lineNumInnerWidth+a,i.lineNumChars=i.lineNumInnerWidth?n.length:-1,i.lineGutter.style.width=i.lineNumWidth+"px",Fr(e),!0}return!1}function qn(e,t){if(!Ae(e,"scrollCursorIntoView")){var n=e.display,i=n.sizer.getBoundingClientRect(),o=null;if(t.top+i.top<0?o=!0:t.bottom+i.top>(window.innerHeight||document.documentElement.clientHeight)&&(o=!1),null!=o&&!Tl){var l=r("div","​",null,"position: absolute;\n                         top: "+(t.top-n.viewOffset-It(e.display))+"px;\n                         height: "+(t.bottom-t.top+Bt(e)+n.barHeight)+"px;\n                         left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(l),l.scrollIntoView(o),e.display.lineSpace.removeChild(l)}}}function Un(e,t,n,r){null==r&&(r=0);var i;e.options.lineWrapping||t!=n||(t=t.ch?H(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t,n="before"==t.sticky?H(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var l=!1,a=un(e,t),s=n&&n!=t?un(e,n):a;i={left:Math.min(a.left,s.left),top:Math.min(a.top,s.top)-r,right:Math.max(a.left,s.left),bottom:Math.max(a.bottom,s.bottom)+r};var c=Vn(e,i),u=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=c.scrollTop&&(Zn(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(l=!0)),null!=c.scrollLeft&&(tr(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(l=!0)),!l)break}return i}function Gn(e,t){var n=Vn(e,t);null!=n.scrollTop&&Zn(e,n.scrollTop),null!=n.scrollLeft&&tr(e,n.scrollLeft)}function Vn(e,t){var n=e.display,r=bn(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=zt(e),l={};t.bottom-t.top>o&&(t.bottom=t.top+o);var a=e.doc.height+Rt(n),s=t.top<r,c=t.bottom>a-r;if(t.top<i)l.scrollTop=s?0:t.top;else if(t.bottom>i+o){var u=Math.min(t.top,(c?a:t.bottom)-o);u!=i&&(l.scrollTop=u)}var f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,h=jt(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),d=t.right-t.left>h;return d&&(t.right=t.left+h),t.left<10?l.scrollLeft=0:t.left<f?l.scrollLeft=Math.max(0,t.left-(d?0:10)):t.right>h+f-3&&(l.scrollLeft=t.right+(d?0:10)-h),l}function Kn(e,t){null!=t&&(Qn(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function $n(e){Qn(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Xn(e,t,n){null==t&&null==n||Qn(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Yn(e,t){Qn(e),e.curOp.scrollToPos=t}function Qn(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;Jn(e,fn(e,t.from),fn(e,t.to),t.margin)}}function Jn(e,t,n,r){var i=Vn(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});Xn(e,i.scrollLeft,i.scrollTop)}function Zn(e,t){Math.abs(e.doc.scrollTop-t)<2||(ml||Pr(e,{top:t}),er(e,t,!0),ml&&Pr(e),Sr(e,100))}function er(e,t,n){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function tr(e,t,n,r){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,jn(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function nr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Rt(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Bt(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}function rr(e,t){t||(t=nr(e));var n=e.display.barWidth,r=e.display.barHeight;ir(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Rn(e),ir(e,nr(e)),n=e.display.barWidth,r=e.display.barHeight}function ir(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}function or(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&Rl(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Sa[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),na(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){"horizontal"==n?tr(e,t):Zn(e,t)},e),e.display.scrollbars.addClass&&a(e.display.wrapper,e.display.scrollbars.addClass)}function lr(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++La},yt(e.curOp)}function ar(e){var t=e.curOp;t&&bt(t,function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;sr(e)})}function sr(e){for(var t=e.ops,n=0;n<t.length;n++)cr(t[n]);for(var r=0;r<t.length;r++)ur(t[r]);for(var i=0;i<t.length;i++)fr(t[i]);for(var o=0;o<t.length;o++)hr(t[o]);for(var l=0;l<t.length;l++)dr(t[l])}function cr(e){var t=e.cm,n=t.display;Mr(t),e.updateMaxLine&&Ce(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Ma(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function ur(e){e.updatedDisplay=e.mustUpdate&&Or(e.cm,e.update)}function fr(e){var t=e.cm,n=t.display;e.updatedDisplay&&Rn(t),e.barMeasure=nr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Vt(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Bt(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-jt(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function hr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&tr(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==l();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&rr(t,e.barMeasure),e.updatedDisplay&&Er(t,e.barMeasure),e.selectionChanged&&Fn(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&En(e.cm)}function dr(e){var t=e.cm,n=t.display,r=t.doc;if(e.updatedDisplay&&Nr(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&er(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&tr(t,e.scrollLeft,!0,!0),e.scrollToPos){qn(t,Un(t,z(r,e.scrollToPos.from),z(r,e.scrollToPos.to),e.scrollToPos.margin))}var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var l=0;l<i.length;++l)i[l].lines.length||Te(i[l],"hide");if(o)for(var a=0;a<o.length;++a)o[a].lines.length&&Te(o[a],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Te(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function pr(e,t){if(e.curOp)return t();lr(e);try{return t()}finally{ar(e)}}function mr(e,t){return function(){if(e.curOp)return t.apply(e,arguments);lr(e);try{return t.apply(e,arguments)}finally{ar(e)}}}function gr(e){return function(){if(this.curOp)return e.apply(this,arguments);lr(this);try{return e.apply(this,arguments)}finally{ar(this)}}}function vr(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);lr(t);try{return e.apply(this,arguments)}finally{ar(t)}}}function yr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Jl&&me(e.doc,t)<i.viewTo&&br(e);else if(n<=i.viewFrom)Jl&&ge(e.doc,n+r)>i.viewFrom?br(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)br(e);else if(t<=i.viewFrom){var o=Cr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):br(e)}else if(n>=i.viewTo){var l=Cr(e,t,t,-1);l?(i.view=i.view.slice(0,l.index),i.viewTo=l.lineN):br(e)}else{var a=Cr(e,t,t,-1),s=Cr(e,n,n+r,1);a&&s?(i.view=i.view.slice(0,a.index).concat(vt(e,a.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=r):br(e)}var c=i.externalMeasured;c&&(n<c.lineN?c.lineN+=r:t<c.lineN+c.size&&(i.externalMeasured=null))}function xr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[Tn(e,t)];if(null!=o.node){var l=o.changes||(o.changes=[]);h(l,n)==-1&&l.push(n)}}}function br(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Cr(e,t,n,r){var i,o=Tn(e,t),l=e.display.view;if(!Jl||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var a=e.display.viewFrom,s=0;s<o;s++)a+=l[s].size;if(a!=t){if(r>0){if(o==l.length-1)return null;i=a+l[o].size-t,o++}else i=a-t;t+=i,n+=i}for(;me(e.doc,n)!=n;){if(o==(r<0?0:l.length-1))return null;n+=r*l[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function wr(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=vt(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=vt(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(Tn(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(vt(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,Tn(e,n)))),r.viewTo=n}function kr(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function Sr(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,c(Lr,e))}function Lr(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=Qe(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(r.line>=e.display.viewFrom){var l=o.styles,a=o.text.length>e.options.maxHighlightLength?Ve(t.mode,r.state):null,s=Xe(e,o,r,!0);a&&(r.state=a),o.styles=s.styles;var c=o.styleClasses,u=s.classes;u?o.styleClasses=u:c&&(o.styleClasses=null);for(var f=!l||l.length!=o.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),h=0;!f&&h<l.length;++h)f=l[h]!=o.styles[h];f&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&Je(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return Sr(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&pr(e,function(){for(var t=0;t<i.length;t++)xr(e,i[t],"text")})}}function Mr(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Bt(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Bt(e)+"px",t.scrollbarsClipped=!0)}function Tr(e){if(e.hasFocus())return null;var t=l();if(!t||!o(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&o(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function Ar(e){if(e&&e.activeElt&&e.activeElt!=l()&&(e.activeElt.focus(),e.anchorNode&&o(document.body,e.anchorNode)&&o(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}function Or(e,n){var r=e.display,i=e.doc;if(n.editorIsHidden)return br(e),!1;if(!n.force&&n.visible.from>=r.viewFrom&&n.visible.to<=r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&0==kr(e))return!1;zn(e)&&(br(e),n.dims=wn(e));var o=i.first+i.size,l=Math.max(n.visible.from-e.options.viewportMargin,i.first),a=Math.min(o,n.visible.to+e.options.viewportMargin);r.viewFrom<l&&l-r.viewFrom<20&&(l=Math.max(i.first,r.viewFrom)),r.viewTo>a&&r.viewTo-a<20&&(a=Math.min(o,r.viewTo)),Jl&&(l=me(e.doc,l),a=ge(e.doc,a));var s=l!=r.viewFrom||a!=r.viewTo||r.lastWrapHeight!=n.wrapperHeight||r.lastWrapWidth!=n.wrapperWidth;wr(e,l,a),r.viewOffset=xe(T(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var c=kr(e);if(!s&&0==c&&!n.force&&r.renderedView==r.view&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo))return!1;var u=Tr(e);return c>4&&(r.lineDiv.style.display="none"),Dr(e,r.updateLineNumbers,n.dims),c>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,Ar(u),t(r.cursorDiv),t(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,s&&(r.lastWrapHeight=n.wrapperHeight,r.lastWrapWidth=n.wrapperWidth,Sr(e,400)),r.updateLineNumbers=null,!0}function Nr(e,t){for(var n=t.viewport,r=!0;(r&&e.options.lineWrapping&&t.oldDisplayWidth!=jt(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Rt(e.display)-zt(e),n.top)}),t.visible=Bn(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&Or(e,t);r=!1){Rn(e);var i=nr(e);An(e),rr(e,i),Er(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Pr(e,t){var n=new Ma(e,t);if(Or(e,n)){Rn(e),Nr(e,n);var r=nr(e);An(e),rr(e,r),Er(e,r),n.finish()}}function Dr(e,n,r){function i(t){var n=t.nextSibling;return Cl&&Pl&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var o=e.display,l=e.options.lineNumbers,a=o.lineDiv,s=a.firstChild,c=o.view,u=o.viewFrom,f=0;f<c.length;f++){var d=c[f];if(d.hidden);else if(d.node&&d.node.parentNode==a){for(;s!=d.node;)s=i(s);var p=l&&null!=n&&n<=u&&d.lineNumber;d.changes&&(h(d.changes,"gutter")>-1&&(p=!1),kt(e,d,u,r)),p&&(t(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(E(e.options,u)))),s=d.node.nextSibling}else{var m=Pt(e,d,u,r);a.insertBefore(m,s)}u+=d.size}for(;s;)s=i(s)}function Fr(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function Er(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Bt(e)+"px"}function Hr(e){var n=e.display.gutters,i=e.options.gutters;t(n);for(var o=0;o<i.length;++o){var l=i[o],a=n.appendChild(r("div",null,"CodeMirror-gutter "+l));"CodeMirror-linenumbers"==l&&(e.display.lineGutter=a,a.style.width=(e.display.lineNumWidth||1)+"px")}n.style.display=o?"":"none",Fr(e)}function Wr(e){var t=h(e.gutters,"CodeMirror-linenumbers");t==-1&&e.lineNumbers?e.gutters=e.gutters.concat(["CodeMirror-linenumbers"]):t>-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}function Ir(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function Rr(e){var t=Ir(e);return t.x*=Aa,t.y*=Aa,t}function _r(e,t){var n=Ir(t),r=n.x,i=n.y,o=e.display,l=o.scroller,a=l.scrollWidth>l.clientWidth,s=l.scrollHeight>l.clientHeight;if(r&&a||i&&s){if(i&&Pl&&Cl)e:for(var c=t.target,u=o.view;c!=l;c=c.parentNode)for(var f=0;f<u.length;f++)if(u[f].node==c){e.display.currentWheelTarget=c;break e}if(r&&!ml&&!Sl&&null!=Aa)return i&&s&&Zn(e,Math.max(0,l.scrollTop+i*Aa)),tr(e,Math.max(0,l.scrollLeft+r*Aa)),(!i||i&&s)&&De(t),void(o.wheelStartX=null);if(i&&null!=Aa){var h=i*Aa,d=e.doc.scrollTop,p=d+o.wrapper.clientHeight;h<0?d=Math.max(0,d+h-50):p=Math.min(e.doc.height,p+h+50),Pr(e,{top:d,bottom:p})}Ta<20&&(null==o.wheelStartX?(o.wheelStartX=l.scrollLeft,o.wheelStartY=l.scrollTop,o.wheelDX=r,o.wheelDY=i,setTimeout(function(){if(null!=o.wheelStartX){var e=l.scrollLeft-o.wheelStartX,t=l.scrollTop-o.wheelStartY,n=t&&o.wheelDY&&t/o.wheelDY||e&&o.wheelDX&&e/o.wheelDX;o.wheelStartX=o.wheelStartY=null,n&&(Aa=(Aa*Ta+n)/(Ta+1),++Ta)}},200)):(o.wheelDX+=r,o.wheelDY+=i))}}function Br(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort(function(e,t){return W(e.from(),t.from())}),n=h(t,i);for(var o=1;o<t.length;o++){var l=t[o],a=t[o-1],s=W(a.to(),l.from());if(r&&!l.empty()?s>0:s>=0){var c=B(a.from(),l.from()),u=_(a.to(),l.to()),f=a.empty()?l.from()==l.head:a.from()==a.head;o<=n&&--n,t.splice(--o,2,new Na(f?u:c,f?c:u))}}return new Oa(t,n)}function jr(e,t){return new Oa([new Na(e,t||e)],0)}function zr(e){return e.text?H(e.from.line+e.text.length-1,m(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function qr(e,t){if(W(e,t.from)<0)return e;if(W(e,t.to)<=0)return zr(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=zr(t).ch-t.to.ch),H(n,r)}function Ur(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new Na(qr(i.anchor,t),qr(i.head,t)))}return Br(e.cm,n,e.sel.primIndex)}function Gr(e,t,n){return e.line==t.line?H(n.line,e.ch-t.ch+n.ch):H(n.line+(e.line-t.line),e.ch)}function Vr(e,t,n){for(var r=[],i=H(e.first,0),o=i,l=0;l<t.length;l++){var a=t[l],s=Gr(a.from,i,o),c=Gr(zr(a),i,o);if(i=a.to,o=c,"around"==n){var u=e.sel.ranges[l],f=W(u.head,u.anchor)<0;r[l]=new Na(f?c:s,f?s:c)
}else r[l]=new Na(s,s)}return new Oa(r,e.sel.primIndex)}function Kr(e){e.doc.mode=Ue(e.options,e.doc.modeOption),$r(e)}function $r(e){e.doc.iter(function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Sr(e,100),e.state.modeGen++,e.curOp&&yr(e)}function Xr(e,t){return 0==t.from.ch&&0==t.to.ch&&""==m(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Yr(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){lt(e,n,i,r),Ct(e,"change",e,t)}function l(e,t){for(var n=[],o=e;o<t;++o)n.push(new ma(c[o],i(o),r));return n}var a=t.from,s=t.to,c=t.text,u=T(e,a.line),f=T(e,s.line),h=m(c),d=i(c.length-1),p=s.line-a.line;if(t.full)e.insert(0,l(0,c.length)),e.remove(c.length,e.size-c.length);else if(Xr(e,t)){var g=l(0,c.length-1);o(f,f.text,d),p&&e.remove(a.line,p),g.length&&e.insert(a.line,g)}else if(u==f)if(1==c.length)o(u,u.text.slice(0,a.ch)+h+u.text.slice(s.ch),d);else{var v=l(1,c.length-1);v.push(new ma(h+u.text.slice(s.ch),d,r)),o(u,u.text.slice(0,a.ch)+c[0],i(0)),e.insert(a.line+1,v)}else if(1==c.length)o(u,u.text.slice(0,a.ch)+c[0]+f.text.slice(s.ch),i(0)),e.remove(a.line+1,p);else{o(u,u.text.slice(0,a.ch)+c[0],i(0)),o(f,h+f.text.slice(s.ch),d);var y=l(1,c.length-1);p>1&&e.remove(a.line+1,p-1),e.insert(a.line+1,y)}Ct(e,"change",e,t)}function Qr(e,t,n){function r(e,i,o){if(e.linked)for(var l=0;l<e.linked.length;++l){var a=e.linked[l];if(a.doc!=i){var s=o&&a.sharedHist;n&&!s||(t(a.doc,s),r(a.doc,e,s))}}}r(e,null,!0)}function Jr(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Ln(e),Kr(e),Zr(e),e.options.lineWrapping||Ce(e),e.options.mode=t.modeOption,yr(e)}function Zr(e){("rtl"==e.doc.direction?a:Rl)(e.display.lineDiv,"CodeMirror-rtl")}function ei(e){pr(e,function(){Zr(e),yr(e)})}function ti(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function ni(e,t){var n={from:R(t.from),to:zr(t),text:A(e,t.from,t.to)};return ci(e,n,t.from.line,t.to.line+1),Qr(e,function(e){return ci(e,n,t.from.line,t.to.line+1)},!0),n}function ri(e){for(;e.length;){if(!m(e).ranges)break;e.pop()}}function ii(e,t){return t?(ri(e.done),m(e.done)):e.done.length&&!m(e.done).ranges?m(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),m(e.done)):void 0}function oi(e,t,n,r){var i=e.history;i.undone.length=0;var o,l,a=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>a-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=ii(i,i.lastOp==r)))l=m(o.changes),0==W(t.from,t.to)&&0==W(t.from,l.to)?l.to=zr(t):o.changes.push(ni(e,t));else{var s=m(i.done);for(s&&s.ranges||si(e.sel,i.done),o={changes:[ni(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=a,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,l||Te(e,"historyAdded")}function li(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function ai(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||li(e,o,m(i.done),t))?i.done[i.done.length-1]=t:si(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&r.clearRedo!==!1&&ri(i.undone)}function si(e,t){var n=m(t);n&&n.ranges&&n.equals(e)||t.push(e)}function ci(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o})}function ui(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function fi(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(ui(n[i]));return r}function hi(e,t){var n=fi(e,t),r=Z(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],l=r[i];if(o&&l)e:for(var a=0;a<l.length;++a){for(var s=l[a],c=0;c<o.length;++c)if(o[c].marker==s.marker)continue e;o.push(s)}else l&&(n[i]=l)}return n}function di(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?Oa.prototype.deepCopy.call(o):o);else{var l=o.changes,a=[];r.push({changes:a});for(var s=0;s<l.length;++s){var c=l[s],u=void 0;if(a.push({from:c.from,to:c.to,text:c.text}),t)for(var f in c)(u=f.match(/^spans_(\d+)$/))&&h(t,Number(u[1]))>-1&&(m(a)[f]=c[f],delete c[f])}}}return r}function pi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=W(t,i)<0;o!=W(n,i)<0?(i=t,t=n):o!=W(t,n)<0&&(t=n)}return new Na(i,t)}return new Na(n||t,t)}function mi(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Ci(e,new Oa([pi(e.sel.primary(),t,n,i)],0),r)}function gi(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=pi(e.sel.ranges[o],t[o],null,i);Ci(e,Br(e.cm,r,e.sel.primIndex),n)}function vi(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,Ci(e,Br(e.cm,i,e.sel.primIndex),r)}function yi(e,t,n,r){Ci(e,jr(t,n),r)}function xi(e,t,n){var r={ranges:t.ranges,update:function(t){var n=this;this.ranges=[];for(var r=0;r<t.length;r++)n.ranges[r]=new Na(z(e,t[r].anchor),z(e,t[r].head))},origin:n&&n.origin};return Te(e,"beforeSelectionChange",e,r),e.cm&&Te(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?Br(e.cm,r.ranges,r.ranges.length-1):t}function bi(e,t,n){var r=e.history.done,i=m(r);i&&i.ranges?(r[r.length-1]=t,wi(e,t,n)):Ci(e,t,n)}function Ci(e,t,n){wi(e,t,n),ai(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function wi(e,t,n){(Ne(e,"beforeSelectionChange")||e.cm&&Ne(e.cm,"beforeSelectionChange"))&&(t=xi(e,t,n)),ki(e,Li(e,t,n&&n.bias||(W(t.primary().head,e.sel.primary().head)<0?-1:1),!0)),n&&n.scroll===!1||!e.cm||$n(e.cm)}function ki(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=e.cm.curOp.selectionChanged=!0,Oe(e.cm)),Ct(e,"cursorActivity",e))}function Si(e){ki(e,Li(e,e.sel,null,!1))}function Li(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var l=t.ranges[o],a=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],s=Ti(e,l.anchor,a&&a.anchor,n,r),c=Ti(e,l.head,a&&a.head,n,r);(i||s!=l.anchor||c!=l.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new Na(s,c))}return i?Br(e.cm,i,t.primIndex):t}function Mi(e,t,n,r,i){var o=T(e,t.line);if(o.markedSpans)for(var l=0;l<o.markedSpans.length;++l){var a=o.markedSpans[l],s=a.marker;if((null==a.from||(s.inclusiveLeft?a.from<=t.ch:a.from<t.ch))&&(null==a.to||(s.inclusiveRight?a.to>=t.ch:a.to>t.ch))){if(i&&(Te(s,"beforeCursorEnter"),s.explicitlyCleared)){if(o.markedSpans){--l;continue}break}if(!s.atomic)continue;if(n){var c=s.find(r<0?1:-1),u=void 0;if((r<0?s.inclusiveRight:s.inclusiveLeft)&&(c=Ai(e,c,-r,c&&c.line==t.line?o:null)),c&&c.line==t.line&&(u=W(c,n))&&(r<0?u<0:u>0))return Mi(e,c,t,r,i)}var f=s.find(r<0?-1:1);return(r<0?s.inclusiveLeft:s.inclusiveRight)&&(f=Ai(e,f,r,f.line==t.line?o:null)),f?Mi(e,f,t,r,i):null}}return t}function Ti(e,t,n,r,i){var o=r||1,l=Mi(e,t,n,o,i)||!i&&Mi(e,t,n,o,!0)||Mi(e,t,n,-o,i)||!i&&Mi(e,t,n,-o,!0);return l?l:(e.cantEdit=!0,H(e.first,0))}function Ai(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?z(e,H(t.line-1)):null:n>0&&t.ch==(r||T(e,t.line)).text.length?t.line<e.first+e.size-1?H(t.line+1,0):null:new H(t.line,t.ch+n)}function Oi(e){e.setSelection(H(e.firstLine(),0),H(e.lastLine()),Gl)}function Ni(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=z(e,t)),n&&(r.to=z(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),Te(e,"beforeChange",e,r),e.cm&&Te(e.cm,"beforeChange",e.cm,r),r.canceled?null:{from:r.from,to:r.to,text:r.text,origin:r.origin}}function Pi(e,t,n){if(e.cm){if(!e.cm.curOp)return mr(e.cm,Pi)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(Ne(e,"beforeChange")||e.cm&&Ne(e.cm,"beforeChange"))||(t=Ni(e,t,!0))){var r=Ql&&!n&&te(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)Di(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else Di(e,t)}}function Di(e,t){if(1!=t.text.length||""!=t.text[0]||0!=W(t.from,t.to)){var n=Ur(e,t);oi(e,t,n,e.cm?e.cm.curOp.id:NaN),Hi(e,t,n,Z(e,t));var r=[];Qr(e,function(e,n){n||h(r,e.history)!=-1||(Bi(e.history,t),r.push(e.history)),Hi(e,t,null,Z(e,t))})}}function Fi(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,l=e.sel,a="undo"==t?o.done:o.undone,s="undo"==t?o.undone:o.done,c=0;c<a.length&&(i=a[c],n?!i.ranges||i.equals(e.sel):i.ranges);c++);if(c!=a.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(i=a.pop(),!i.ranges){if(r)return void a.push(i);break}if(si(i,s),n&&!i.equals(e.sel))return void Ci(e,i,{clearRedo:!1});l=i}var u=[];si(l,s),s.push({changes:u,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var f=Ne(e,"beforeChange")||e.cm&&Ne(e.cm,"beforeChange"),d=i.changes.length-1;d>=0;--d){var p=function(n){var r=i.changes[n];if(r.origin=t,f&&!Ni(e,r,!1))return a.length=0,{};u.push(ni(e,r)),Hi(e,r,n?Ur(e,r):m(a),hi(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:zr(r)});var o=[];Qr(e,function(e,t){t||h(o,e.history)!=-1||(Bi(e.history,r),o.push(e.history)),Hi(e,r,null,hi(e,r))})}(d);if(p)return p.v}}}}function Ei(e,t){if(0!=t&&(e.first+=t,e.sel=new Oa(g(e.sel.ranges,function(e){return new Na(H(e.anchor.line+t,e.anchor.ch),H(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){yr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)xr(e.cm,r,"gutter")}}function Hi(e,t,n,r){if(e.cm&&!e.cm.curOp)return mr(e.cm,Hi)(e,t,n,r);if(t.to.line<e.first)return void Ei(e,t.text.length-1-(t.to.line-t.from.line));if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);Ei(e,i),t={from:H(e.first,0),to:H(t.to.line+i,t.to.ch),text:[m(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:H(o,T(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=A(e,t.from,t.to),n||(n=Ur(e,t)),e.cm?Wi(e.cm,t,r):Yr(e,t,r),wi(e,n,Gl)}}function Wi(e,t,n){var r=e.doc,i=e.display,o=t.from,l=t.to,a=!1,s=o.line;e.options.lineWrapping||(s=P(he(T(r,o.line))),r.iter(s,l.line+1,function(e){if(e==i.maxLine)return a=!0,!0})),r.sel.contains(t.from,t.to)>-1&&Oe(e),Yr(r,t,n,Sn(e)),e.options.lineWrapping||(r.iter(s,o.line+t.text.length,function(e){var t=be(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,a=!1)}),a&&(e.curOp.updateMaxLine=!0)),ot(r,o.line),Sr(e,400);var c=t.text.length-(l.line-o.line)-1;t.full?yr(e):o.line!=l.line||1!=t.text.length||Xr(e.doc,t)?yr(e,o.line,l.line+1,c):xr(e,o.line,"text");var u=Ne(e,"changes"),f=Ne(e,"change");if(f||u){var h={from:o,to:l,text:t.text,removed:t.removed,origin:t.origin};f&&Ct(e,"change",e,h),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(h)}e.display.selForContextMenu=null}function Ii(e,t,n,r,i){var o;r||(r=n),W(r,n)<0&&(o=[r,n],n=o[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),Pi(e,{from:n,to:r,text:t,origin:i})}function Ri(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function _i(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],l=!0;if(o.ranges){o.copied||(o=e[i]=o.deepCopy(),o.copied=!0);for(var a=0;a<o.ranges.length;a++)Ri(o.ranges[a].anchor,t,n,r),Ri(o.ranges[a].head,t,n,r)}else{for(var s=0;s<o.changes.length;++s){var c=o.changes[s];if(n<c.from.line)c.from=H(c.from.line+r,c.from.ch),c.to=H(c.to.line+r,c.to.ch);else if(t<=c.to.line){l=!1;break}}l||(e.splice(0,i+1),i=0)}}}function Bi(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;_i(e.done,n,r,i),_i(e.undone,n,r,i)}function ji(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=T(e,j(e,t)):i=P(t),null==i?null:(r(o,i)&&e.cm&&xr(e.cm,i,n),o)}function zi(e){var t=this;this.lines=e,this.parent=null;for(var n=0,r=0;r<e.length;++r)e[r].parent=t,n+=e[r].height;this.height=n}function qi(e){var t=this;this.children=e;for(var n=0,r=0,i=0;i<e.length;++i){var o=e[i];n+=o.chunkSize(),r+=o.height,o.parent=t}this.size=n,this.height=r,this.parent=null}function Ui(e,t,n){xe(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Kn(e,n)}function Gi(e,t,n,r){var i=new Pa(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),ji(e,t,"widget",function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length-1,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!ve(e,t)){var r=xe(t)<e.scrollTop;N(t,t.height+Ht(i)),r&&Kn(o,i.height),o.curOp.forceUpdate=!0}return!0}),o&&Ct(o,"lineWidgetAdded",o,i,"number"==typeof t?t:P(t)),i}function Vi(e,t,n,r,o){if(r&&r.shared)return Ki(e,t,n,r,o);if(e.cm&&!e.cm.curOp)return mr(e.cm,Vi)(e,t,n,r,o);var l=new Fa(e,o),a=W(t,n);if(r&&u(r,l,!1),a>0||0==a&&l.clearWhenEmpty!==!1)return l;if(l.replacedWith&&(l.collapsed=!0,l.widgetNode=i("span",[l.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||l.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(l.widgetNode.insertLeft=!0)),l.collapsed){if(fe(e,t.line,t,n,l)||t.line!=n.line&&fe(e,n.line,t,n,l))throw new Error("Inserting collapsed marker partially overlapping an existing one");V()}l.addToHistory&&oi(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,c=t.line,f=e.cm;if(e.iter(c,n.line+1,function(e){f&&l.collapsed&&!f.options.lineWrapping&&he(e)==f.display.maxLine&&(s=!0),l.collapsed&&c!=t.line&&N(e,0),Y(e,new K(l,c==t.line?t.ch:null,c==n.line?n.ch:null)),++c}),l.collapsed&&e.iter(t.line,n.line+1,function(t){ve(e,t)&&N(t,0)}),l.clearOnEnter&&na(l,"beforeCursorEnter",function(){return l.clear()}),l.readOnly&&(G(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),l.collapsed&&(l.id=++Da,l.atomic=!0),f){if(s&&(f.curOp.updateMaxLine=!0),l.collapsed)yr(f,t.line,n.line+1);else if(l.className||l.title||l.startStyle||l.endStyle||l.css)for(var h=t.line;h<=n.line;h++)xr(f,h,"text");l.atomic&&Si(f.doc),Ct(f,"markerAdded",f,l)}return l}function Ki(e,t,n,r,i){r=u(r),r.shared=!1;var o=[Vi(e,t,n,r,i)],l=o[0],a=r.widgetNode;return Qr(e,function(e){a&&(r.widgetNode=a.cloneNode(!0)),o.push(Vi(e,z(e,t),z(e,n),r,i));for(var s=0;s<e.linked.length;++s)if(e.linked[s].isParent)return;l=m(o)}),new Ea(o,l)}function $i(e){return e.findMarks(H(e.first,0),e.clipPos(H(e.lastLine())),function(e){return e.parent})}function Xi(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),l=e.clipPos(i.to);if(W(o,l)){var a=Vi(e,o,l,r.primary,r.primary.type);r.markers.push(a),a.parent=r}}}function Yi(e){for(var t=0;t<e.length;t++)!function(t){var n=e[t],r=[n.primary.doc];Qr(n.primary.doc,function(e){return r.push(e)});for(var i=0;i<n.markers.length;i++){var o=n.markers[i];h(r,o.doc)==-1&&(o.parent=null,n.markers.splice(i--,1))}}(t)}function Qi(e){var t=this;if(eo(t),!Ae(t,e)&&!Wt(t.display,e)){De(e),xl&&(Ia=+new Date);var n=Mn(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),l=0,a=0;a<i;++a)!function(e,r){if(!t.options.allowDropFileTypes||h(t.options.allowDropFileTypes,e.type)!=-1){var a=new FileReader;a.onload=mr(t,function(){var e=a.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(e)&&(e=""),o[r]=e,++l==i){n=z(t.doc,n);var s={from:n,to:n,text:t.doc.splitLines(o.join(t.doc.lineSeparator())),origin:"paste"};Pi(t.doc,s),bi(t.doc,jr(n,zr(s)))}}),a.readAsText(e)}}(r[a],a);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var s=e.dataTransfer.getData("Text");if(s){var c;if(t.state.draggingText&&!t.state.draggingText.copy&&(c=t.listSelections()),wi(t.doc,jr(n,n)),c)for(var u=0;u<c.length;++u)Ii(t.doc,"",c[u].anchor,c[u].head,"drag");t.replaceSelection(s,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Ji(e,t){if(xl&&(!e.state.draggingText||+new Date-Ia<100))return void He(t);if(!Ae(e,t)&&!Wt(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!Ll)){var n=r("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Sl&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),Sl&&n.parentNode.removeChild(n)}}function Zi(e,t){var i=Mn(e,t);if(i){var o=document.createDocumentFragment();Nn(e,i,o),e.display.dragCursor||(e.display.dragCursor=r("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),n(e.display.dragCursor,o)}}function eo(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function to(e){if(document.getElementsByClassName)for(var t=document.getElementsByClassName("CodeMirror"),n=0;n<t.length;n++){var r=t[n].CodeMirror;r&&e(r)}}function no(){Ra||(ro(),Ra=!0)}function ro(){var e;na(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,to(io)},100))}),na(window,"blur",function(){return to(In)})}function io(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}function oo(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var n,r,i,o,l=0;l<t.length-1;l++){var a=t[l];if(/^(cmd|meta|m)$/i.test(a))o=!0;else if(/^a(lt)?$/i.test(a))n=!0;else if(/^(c|ctrl|control)$/i.test(a))r=!0;else{if(!/^s(hift)?$/i.test(a))throw new Error("Unrecognized modifier name: "+a);i=!0}}return n&&(e="Alt-"+e),r&&(e="Ctrl-"+e),o&&(e="Cmd-"+e),i&&(e="Shift-"+e),e}function lo(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=g(n.split(" "),oo),o=0;o<i.length;o++){var l=void 0,a=void 0;o==i.length-1?(a=i.join(" "),l=r):(a=i.slice(0,o+1).join(" "),l="...");var s=t[a];if(s){if(s!=l)throw new Error("Inconsistent bindings for "+a)}else t[a]=l}delete e[n]}for(var c in t)e[c]=t[c];return e}function ao(e,t,n,r){t=fo(t);var i=t.call?t.call(e,r):t[e];if(i===!1)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return ao(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var l=ao(e,t.fallthrough[o],n,r);if(l)return l}}}function so(e){var t="string"==typeof e?e:_a[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function co(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(Wl?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(Wl?t.ctrlKey:t.metaKey)&&"Cmd"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function uo(e,t){if(Sl&&34==e.keyCode&&e.char)return!1;var n=_a[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),co(n,e,t))}function fo(e){return"string"==typeof e?qa[e]:e}function ho(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&W(o.from,m(r).to)<=0;){var l=r.pop();if(W(l.from,o.from)<0){o.from=l.from;break}}r.push(o)}pr(e,function(){for(var t=r.length-1;t>=0;t--)Ii(e.doc,"",r[t].from,r[t].to,"+delete");$n(e)})}function po(e,t,n){var r=S(e.text,t+n,n);return r<0||r>e.text.length?null:r}function mo(e,t,n){var r=po(e,t.ch,n);return null==r?null:new H(t.line,r,n<0?"after":"before")}function go(e,t,n,r,i){if(e){var o=Se(n,t.doc.direction);if(o){var l,a=i<0?m(o):o[0],s=i<0==(1==a.level),c=s?"after":"before";if(a.level>0||"rtl"==t.doc.direction){var u=$t(t,n);l=i<0?n.text.length-1:0;var f=Xt(t,u,l).top;l=L(function(e){return Xt(t,u,e).top==f},i<0==(1==a.level)?a.from:a.to-1,l),"before"==c&&(l=po(n,l,1))}else l=i<0?a.to:a.from;return new H(r,l,c)}}return new H(r,i<0?n.text.length:0,i<0?"before":"after")}function vo(e,t,n,r){var i=Se(t,e.doc.direction);if(!i)return mo(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=ke(i,n.ch,n.sticky),l=i[o];if("ltr"==e.doc.direction&&l.level%2==0&&(r>0?l.to>n.ch:l.from<n.ch))return mo(t,n,r);var a,s=function(e,n){return po(t,e instanceof H?e.ch:e,n)},c=function(n){return e.options.lineWrapping?(a=a||$t(e,t),mn(e,t,a,n)):{begin:0,end:t.text.length}},u=c("before"==n.sticky?s(n,-1):n.ch);if("rtl"==e.doc.direction||1==l.level){var f=1==l.level==r<0,h=s(n,f?1:-1);if(null!=h&&(f?h<=l.to&&h<=u.end:h>=l.from&&h>=u.begin)){var d=f?"before":"after";return new H(n.line,h,d)}}var p=function(e,t,r){for(var o=function(e,t){return t?new H(n.line,s(e,1),"before"):new H(n.line,e,"after")};e>=0&&e<i.length;e+=t){var l=i[e],a=t>0==(1!=l.level),c=a?r.begin:s(r.end,-1);if(l.from<=c&&c<l.to)return o(c,a);if(c=a?l.from:s(l.to,-1),r.begin<=c&&c<r.end)return o(c,a)}},m=p(o+r,r,u);if(m)return m;var g=r>0?u.end:s(u.begin,-1);return null==g||r>0&&g==t.text.length||!(m=p(r>0?0:i.length-1,r,c(g)))?null:m}function yo(e,t){var n=T(e.doc,t),r=he(n);return r!=n&&(t=P(r)),go(!0,e,r,t,1)}function xo(e,t){var n=T(e.doc,t),r=de(n);return r!=n&&(t=P(r)),go(!0,e,n,t,-1)}function bo(e,t){var n=yo(e,t.line),r=T(e.doc,n.line),i=Se(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(0,r.text.search(/\S/)),l=t.line==n.line&&t.ch<=o&&t.ch;return H(n.line,l?0:o,n.sticky)}return n}function Co(e,t,n){if("string"==typeof t&&!(t=Ua[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=Ul}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}function wo(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=ao(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&ao(t,e.options.extraKeys,n,e)||ao(t,e.options.keyMap,n,e)}function ko(e,t,n,r){var i=e.state.keySeq;if(i){if(so(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:Ga.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),So(e,i+" "+t,n,r))return!0}return So(e,t,n,r)}function So(e,t,n,r){var i=wo(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&Ct(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(De(n),Fn(e)),!!i}function Lo(e,t){var n=uo(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?ko(e,"Shift-"+n,t,function(t){return Co(e,t,!0)})||ko(e,n,t,function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return Co(e,t)}):ko(e,n,t,function(t){return Co(e,t)}))}function Mo(e,t,n){return ko(e,"'"+n+"'",t,function(t){return Co(e,t,!0)})}function To(e){var t=this;if(t.curOp.focus=l(),!Ae(t,e)){xl&&bl<11&&27==e.keyCode&&(e.returnValue=!1);var n=e.keyCode;t.display.shift=16==n||e.shiftKey;var r=Lo(t,e);Sl&&(Va=r?n:null,!r&&88==n&&!la&&(Pl?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),18!=n||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||Ao(t)}}function Ao(e){function t(e){18!=e.keyCode&&e.altKey||(Rl(n,"CodeMirror-crosshair"),Me(document,"keyup",t),Me(document,"mouseover",t))}var n=e.display.lineDiv;a(n,"CodeMirror-crosshair"),na(document,"keyup",t),na(document,"mouseover",t)}function Oo(e){16==e.keyCode&&(this.doc.sel.shift=!1),Ae(this,e)}function No(e){var t=this;if(!(Wt(t.display,e)||Ae(t,e)||e.ctrlKey&&!e.altKey||Pl&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(Sl&&n==Va)return Va=null,void De(e);if(!Sl||e.which&&!(e.which<10)||!Lo(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(Mo(t,e,i)||t.display.input.onKeyPress(e))}}}function Po(e,t){var n=+new Date;return Xa&&Xa.compare(n,e,t)?($a=Xa=null,"triple"):$a&&$a.compare(n,e,t)?(Xa=new Ka(n,e,t),$a=null,"double"):($a=new Ka(n,e,t),Xa=null,"single")}function Do(e){var t=this,n=t.display;if(!(Ae(t,e)||n.activeTouch&&n.input.supportsTouch())){if(n.input.ensurePolled(),n.shift=e.shiftKey,Wt(n,e))return void(Cl||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100)));if(!jo(t,e)){var r=Mn(t,e),i=Ie(e),o=r?Po(r,i):"single";window.focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&Fo(t,i,r,o,e)||(1==i?r?Ho(t,r,o,e):We(e)==n.scroller&&De(e):2==i?(r&&mi(t.doc,r),setTimeout(function(){return n.input.focus()},20)):3==i&&(Il?t.display.input.onContextMenu(e):Hn(t)))}}}function Fo(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),o=(1==t?"Left":2==t?"Middle":"Right")+o,ko(e,co(o,i),i,function(t){if("string"==typeof t&&(t=Ua[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=Ul}finally{e.state.suppressEdits=!1}return r})}function Eo(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=Dl?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=Pl?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(Pl?n.altKey:n.ctrlKey)),i}function Ho(e,t,n,r){xl?setTimeout(c(En,e),0):e.curOp.focus=l();var i,o=Eo(e,n,r),a=e.doc.sel;e.options.dragDrop&&ra&&!e.isReadOnly()&&"single"==n&&(i=a.contains(t))>-1&&(W((i=a.ranges[i]).from(),t)<0||t.xRel>0)&&(W(i.to(),t)>0||t.xRel<0)?Wo(e,r,t,o):Ro(e,r,t,o)}function Wo(e,t,n,r){var i=e.display,o=!1,l=mr(e,function(t){Cl&&(i.scroller.draggable=!1),e.state.draggingText=!1,Me(i.wrapper.ownerDocument,"mouseup",l),Me(i.wrapper.ownerDocument,"mousemove",a),Me(i.scroller,"dragstart",s),Me(i.scroller,"drop",l),o||(De(t),r.addNew||mi(e.doc,n,null,null,r.extend),Cl||xl&&9==bl?setTimeout(function(){i.wrapper.ownerDocument.body.focus(),i.input.focus()},20):i.input.focus())}),a=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},s=function(){return o=!0};Cl&&(i.scroller.draggable=!0),e.state.draggingText=l,l.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),na(i.wrapper.ownerDocument,"mouseup",l),na(i.wrapper.ownerDocument,"mousemove",a),na(i.scroller,"dragstart",s),na(i.scroller,"drop",l),Hn(e),setTimeout(function(){return i.input.focus()},20)}function Io(e,t,n){if("char"==n)return new Na(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new Na(H(t.line,0),z(e.doc,H(t.line+1,0)));var r=n(e,t);return new Na(r.from,r.to)}function Ro(e,t,n,r){function i(t){if(0!=W(v,t))if(v=t,"rectangle"==r.unit){for(var i=[],o=e.options.tabSize,l=f(T(c,n.line).text,n.ch,o),a=f(T(c,t.line).text,t.ch,o),s=Math.min(l,a),m=Math.max(l,a),g=Math.min(n.line,t.line),y=Math.min(e.lastLine(),Math.max(n.line,t.line));g<=y;g++){var x=T(c,g).text,b=d(x,s,o);s==m?i.push(new Na(H(g,b),H(g,b))):x.length>b&&i.push(new Na(H(g,b),H(g,d(x,m,o))))}i.length||i.push(new Na(n,n)),Ci(c,Br(e,p.ranges.slice(0,h).concat(i),h),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var C,w=u,k=Io(e,t,r.unit),S=w.anchor;W(k.anchor,S)>0?(C=k.head,S=B(w.from(),k.anchor)):(C=k.anchor,S=_(w.to(),k.head));var L=p.ranges.slice(0);L[h]=_o(e,new Na(z(c,S),C)),Ci(c,Br(e,L,h),Vl)}}function o(t){var n=++x,a=Mn(e,t,!0,"rectangle"==r.unit);if(a)if(0!=W(a,v)){e.curOp.focus=l(),i(a);var u=Bn(s,c);(a.line>=u.to||a.line<u.from)&&setTimeout(mr(e,function(){x==n&&o(t)}),150)}else{var f=t.clientY<y.top?-20:t.clientY>y.bottom?20:0;f&&setTimeout(mr(e,function(){x==n&&(s.scroller.scrollTop+=f,o(t))}),50)}}function a(t){e.state.selectingText=!1,x=1/0,De(t),s.input.focus(),Me(s.wrapper.ownerDocument,"mousemove",b),Me(s.wrapper.ownerDocument,"mouseup",C),c.history.lastSelOrigin=null}var s=e.display,c=e.doc;De(t);var u,h,p=c.sel,m=p.ranges;if(r.addNew&&!r.extend?(h=c.sel.contains(n),u=h>-1?m[h]:new Na(n,n)):(u=c.sel.primary(),h=c.sel.primIndex),"rectangle"==r.unit)r.addNew||(u=new Na(n,n)),n=Mn(e,t,!0,!0),h=-1;else{var g=Io(e,n,r.unit);u=r.extend?pi(u,g.anchor,g.head,r.extend):g}r.addNew?h==-1?(h=m.length,Ci(c,Br(e,m.concat([u]),h),{scroll:!1,origin:"*mouse"})):m.length>1&&m[h].empty()&&"char"==r.unit&&!r.extend?(Ci(c,Br(e,m.slice(0,h).concat(m.slice(h+1)),0),{scroll:!1,origin:"*mouse"}),p=c.sel):vi(c,h,u,Vl):(h=0,Ci(c,new Oa([u],0),Vl),p=c.sel);var v=n,y=s.wrapper.getBoundingClientRect(),x=0,b=mr(e,function(e){0!==e.buttons&&Ie(e)?o(e):a(e)}),C=mr(e,a);e.state.selectingText=C,na(s.wrapper.ownerDocument,"mousemove",b),na(s.wrapper.ownerDocument,"mouseup",C)}function _o(e,t){var n=t.anchor,r=t.head,i=T(e.doc,n.line);if(0==W(n,r)&&n.sticky==r.sticky)return t;var o=Se(i);if(!o)return t;var l=ke(o,n.ch,n.sticky),a=o[l];if(a.from!=n.ch&&a.to!=n.ch)return t;var s=l+(a.from==n.ch==(1!=a.level)?0:1);if(0==s||s==o.length)return t;var c;if(r.line!=n.line)c=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=ke(o,r.ch,r.sticky),f=u-l||(r.ch-n.ch)*(1==a.level?-1:1);c=u==s-1||u==s?f<0:f>0}var h=o[s+(c?-1:0)],d=c==(1==h.level),p=d?h.from:h.to,m=d?"after":"before";return n.ch==p&&n.sticky==m?t:new Na(new H(n.line,p,m),r)}function Bo(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&De(t);var l=e.display,a=l.lineDiv.getBoundingClientRect();if(o>a.bottom||!Ne(e,n))return Ee(t);o-=a.top-l.viewOffset;for(var s=0;s<e.options.gutters.length;++s){var c=l.gutters.childNodes[s];if(c&&c.getBoundingClientRect().right>=i){return Te(e,n,e,D(e.doc,o),e.options.gutters[s],t),Ee(t)}}}function jo(e,t){return Bo(e,t,"gutterClick",!0)}function zo(e,t){Wt(e.display,t)||qo(e,t)||Ae(e,t,"contextmenu")||Il||e.display.input.onContextMenu(t)}function qo(e,t){return!!Ne(e,"gutterContextMenu")&&Bo(e,t,"gutterContextMenu",!1)}function Uo(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),nn(e)}function Go(e){Hr(e),yr(e),jn(e)}function Vo(e,t,n){if(!t!=!(n&&n!=Ya)){var r=e.display.dragFunctions,i=t?na:Me;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Ko(e){e.options.lineWrapping?(a(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(Rl(e.display.wrapper,"CodeMirror-wrap"),Ce(e)),Ln(e),yr(e),nn(e),setTimeout(function(){return rr(e)},100)}function $o(e,t){var n=this;if(!(this instanceof $o))return new $o(e,t);this.options=t=t?u(t):{},u(Qa,t,!1),Wr(t);var r=t.value;"string"==typeof r?r=new Wa(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new $o.inputStyles[t.inputStyle](this),o=this.display=new M(e,r,i);o.wrapper.CodeMirror=this,Hr(this),Uo(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),or(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new Bl,keySeq:null,specialChars:null},t.autofocus&&!Nl&&o.input.focus(),xl&&bl<11&&setTimeout(function(){return n.display.input.reset(!0)},20),Xo(this),no(),lr(this),this.curOp.forceUpdate=!0,Jr(this,r),t.autofocus&&!Nl||this.hasFocus()?setTimeout(c(Wn,this),20):In(this);for(var l in Ja)Ja.hasOwnProperty(l)&&Ja[l](n,t[l],Ya);zn(this),t.finishInit&&t.finishInit(this);for(var a=0;a<Za.length;++a)Za[a](n);ar(this),Cl&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function Xo(e){function t(){i.activeTouch&&(o=setTimeout(function(){return i.activeTouch=null},1e3),l=i.activeTouch,l.end=+new Date)}function n(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function r(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}var i=e.display;na(i.scroller,"mousedown",mr(e,Do)),xl&&bl<11?na(i.scroller,"dblclick",mr(e,function(t){if(!Ae(e,t)){var n=Mn(e,t);if(n&&!jo(e,t)&&!Wt(e.display,t)){De(t);var r=e.findWordAt(n);mi(e.doc,r.anchor,r.head)}}
})):na(i.scroller,"dblclick",function(t){return Ae(e,t)||De(t)}),na(i.scroller,"contextmenu",function(t){return zo(e,t)});var o,l={end:0};na(i.scroller,"touchstart",function(t){if(!Ae(e,t)&&!n(t)&&!jo(e,t)){i.input.ensurePolled(),clearTimeout(o);var r=+new Date;i.activeTouch={start:r,moved:!1,prev:r-l.end<=300?l:null},1==t.touches.length&&(i.activeTouch.left=t.touches[0].pageX,i.activeTouch.top=t.touches[0].pageY)}}),na(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),na(i.scroller,"touchend",function(n){var o=i.activeTouch;if(o&&!Wt(i,n)&&null!=o.left&&!o.moved&&new Date-o.start<300){var l,a=e.coordsChar(i.activeTouch,"page");l=!o.prev||r(o,o.prev)?new Na(a,a):!o.prev.prev||r(o,o.prev.prev)?e.findWordAt(a):new Na(H(a.line,0),z(e.doc,H(a.line+1,0))),e.setSelection(l.anchor,l.head),e.focus(),De(n)}t()}),na(i.scroller,"touchcancel",t),na(i.scroller,"scroll",function(){i.scroller.clientHeight&&(Zn(e,i.scroller.scrollTop),tr(e,i.scroller.scrollLeft,!0),Te(e,"scroll",e))}),na(i.scroller,"mousewheel",function(t){return _r(e,t)}),na(i.scroller,"DOMMouseScroll",function(t){return _r(e,t)}),na(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(t){Ae(e,t)||He(t)},over:function(t){Ae(e,t)||(Zi(e,t),He(t))},start:function(t){return Ji(e,t)},drop:mr(e,Qi),leave:function(t){Ae(e,t)||eo(e)}};var a=i.input.getField();na(a,"keyup",function(t){return Oo.call(e,t)}),na(a,"keydown",mr(e,To)),na(a,"keypress",mr(e,No)),na(a,"focus",function(t){return Wn(e,t)}),na(a,"blur",function(t){return In(e,t)})}function Yo(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=Qe(e,t).state:n="prev");var l=e.options.tabSize,a=T(o,t),s=f(a.text,null,l);a.stateAfter&&(a.stateAfter=null);var c,u=a.text.match(/^\s*/)[0];if(r||/\S/.test(a.text)){if("smart"==n&&((c=o.mode.indent(i,a.text.slice(u.length),a.text))==Ul||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>o.first?f(T(o,t-1).text,null,l):0:"add"==n?c=s+e.options.indentUnit:"subtract"==n?c=s-e.options.indentUnit:"number"==typeof n&&(c=s+n),c=Math.max(0,c);var h="",d=0;if(e.options.indentWithTabs)for(var m=Math.floor(c/l);m;--m)d+=l,h+="\t";if(d<c&&(h+=p(c-d)),h!=u)return Ii(o,h,H(t,0),H(t,u.length),"+input"),a.stateAfter=null,!0;for(var g=0;g<o.sel.ranges.length;g++){var v=o.sel.ranges[g];if(v.head.line==t&&v.head.ch<u.length){var y=H(t,u.length);vi(o,g,new Na(y,y));break}}}function Qo(e){es=e}function Jo(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var l=e.state.pasteIncoming||"paste"==i,a=ia(t),s=null;if(l&&r.ranges.length>1)if(es&&es.text.join("\n")==t){if(r.ranges.length%es.text.length==0){s=[];for(var c=0;c<es.text.length;c++)s.push(o.splitLines(es.text[c]))}}else a.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(s=g(a,function(e){return[e]}));for(var u,f=r.ranges.length-1;f>=0;f--){var h=r.ranges[f],d=h.from(),p=h.to();h.empty()&&(n&&n>0?d=H(d.line,d.ch-n):e.state.overwrite&&!l?p=H(p.line,Math.min(T(o,p.line).text.length,p.ch+m(a).length)):l&&es&&es.lineWise&&es.text.join("\n")==t&&(d=p=H(d.line,0))),u=e.curOp.updateInput;var v={from:d,to:p,text:s?s[f%s.length]:a,origin:i||(l?"paste":e.state.cutIncoming?"cut":"+input")};Pi(e.doc,v),Ct(e,"inputRead",e,v)}t&&!l&&el(e,t),$n(e),e.curOp.updateInput=u,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function Zo(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||pr(t,function(){return Jo(t,n,0,null,"paste")}),!0}function el(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),l=!1;if(o.electricChars){for(var a=0;a<o.electricChars.length;a++)if(t.indexOf(o.electricChars.charAt(a))>-1){l=Yo(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(T(e.doc,i.head.line).text.slice(0,i.head.ch))&&(l=Yo(e,i.head.line,"smart"));l&&Ct(e,"electricInput",e,i.head.line)}}}function tl(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:H(i,0),head:H(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function nl(e,t){e.setAttribute("autocorrect","off"),e.setAttribute("autocapitalize","off"),e.setAttribute("spellcheck",!!t)}function rl(){var e=r("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=r("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Cl?e.style.width="1000px":e.setAttribute("wrap","off"),Al&&(e.style.border="1px solid black"),nl(e),t}function il(e,t,n,r,i){function o(){var r=t.line+n;return!(r<e.first||r>=e.first+e.size)&&(t=new H(r,t.ch,t.sticky),c=T(e,r))}function l(r){var l;if(null==(l=i?vo(e.cm,c,t,n):mo(c,t,n))){if(r||!o())return!1;t=go(i,e.cm,c,t.line,n)}else t=l;return!0}var a=t,s=n,c=T(e,t.line);if("char"==r)l();else if("column"==r)l(!0);else if("word"==r||"group"==r)for(var u=null,f="group"==r,h=e.cm&&e.cm.getHelper(t,"wordChars"),d=!0;!(n<0)||l(!d);d=!1){var p=c.text.charAt(t.ch)||"\n",m=C(p,h)?"w":f&&"\n"==p?"n":!f||/\s/.test(p)?null:"p";if(!f||d||m||(m="s"),u&&u!=m){n<0&&(n=1,l(),t.sticky="after");break}if(m&&(u=m),n>0&&!l(!d))break}var g=Ti(e,t,a,s,!0);return I(a,g)&&(g.hitSide=!0),g}function ol(e,t,n,r){var i,o=e.doc,l=t.left;if("page"==r){var a=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),s=Math.max(a-.5*bn(e.display),3);i=(n>0?t.bottom:t.top)+n*s}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(var c;c=dn(e,l,i),c.outside;){if(n<0?i<=0:i>=o.height){c.hitSide=!0;break}i+=5*n}return c}function ll(e,t){var n=Kt(e,t.line);if(!n||n.hidden)return null;var r=T(e.doc,t.line),i=Ut(n,r,t.line),o=Se(r,e.doc.direction),l="left";if(o){l=ke(o,t.ch)%2?"right":"left"}var a=Yt(i.map,t.ch,l);return a.offset="right"==a.collapse?a.end:a.start,a}function al(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function sl(e,t){return t&&(e.bad=!0),e}function cl(e,t,n,r,i){function o(e){return function(t){return t.id==e}}function l(){u&&(c+=f,h&&(c+=f),u=h=!1)}function a(e){e&&(l(),c+=e)}function s(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void a(n);var c,d=t.getAttribute("cm-marker");if(d){var p=e.findMarks(H(r,0),H(i+1,0),o(+d));return void(p.length&&(c=p[0].find(0))&&a(A(e.doc,c.from,c.to).join(f)))}if("false"==t.getAttribute("contenteditable"))return;var m=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;m&&l();for(var g=0;g<t.childNodes.length;g++)s(t.childNodes[g]);/^(pre|p)$/i.test(t.nodeName)&&(h=!0),m&&(u=!0)}else 3==t.nodeType&&a(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(var c="",u=!1,f=e.doc.lineSeparator(),h=!1;s(t),t!=n;)t=t.nextSibling,h=!1;return c}function ul(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return sl(e.clipPos(H(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return fl(o,t,n)}}function fl(e,t,n){function r(t,n,r){for(var i=-1;i<(f?f.length:0);i++)for(var o=i<0?u.map:f[i],l=0;l<o.length;l+=3){var a=o[l+2];if(a==t||a==n){var s=P(i<0?e.line:e.rest[i]),c=o[l]+r;return(r<0||a!=t)&&(c=o[l+(r?1:0)]),H(s,c)}}}var i=e.text.firstChild,l=!1;if(!t||!o(i,t))return sl(H(P(e.line),0),!0);if(t==i&&(l=!0,t=i.childNodes[n],n=0,!t)){var a=e.rest?m(e.rest):e.line;return sl(H(P(a),a.text.length),l)}var s=3==t.nodeType?t:null,c=t;for(s||1!=t.childNodes.length||3!=t.firstChild.nodeType||(s=t.firstChild,n&&(n=s.nodeValue.length));c.parentNode!=i;)c=c.parentNode;var u=e.measure,f=u.maps,h=r(s,c,n);if(h)return sl(h,l);for(var d=c.nextSibling,p=s?s.nodeValue.length-n:0;d;d=d.nextSibling){if(h=r(d,d.firstChild,0))return sl(H(h.line,h.ch-p),l);p+=d.textContent.length}for(var g=c.previousSibling,v=n;g;g=g.previousSibling){if(h=r(g,g.firstChild,-1))return sl(H(h.line,h.ch+v),l);v+=g.textContent.length}}function hl(e,t){function n(){e.value=s.getValue()}if(t=t?u(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var r=l();t.autofocus=r==e||null!=e.getAttribute("autofocus")&&r==document.body}var i;if(e.form&&(na(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){n(),o.submit=i,o.submit(),o.submit=a}}catch(e){}}t.finishInit=function(t){t.save=n,t.getTextArea=function(){return e},t.toTextArea=function(){t.toTextArea=isNaN,n(),e.parentNode.removeChild(t.getWrapperElement()),e.style.display="",e.form&&(Me(e.form,"submit",n),"function"==typeof e.form.submit&&(e.form.submit=i))}},e.style.display="none";var s=$o(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return s}var dl=navigator.userAgent,pl=navigator.platform,ml=/gecko\/\d/i.test(dl),gl=/MSIE \d/.test(dl),vl=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(dl),yl=/Edge\/(\d+)/.exec(dl),xl=gl||vl||yl,bl=xl&&(gl?document.documentMode||6:+(yl||vl)[1]),Cl=!yl&&/WebKit\//.test(dl),wl=Cl&&/Qt\/\d+\.\d+/.test(dl),kl=!yl&&/Chrome\//.test(dl),Sl=/Opera\//.test(dl),Ll=/Apple Computer/.test(navigator.vendor),Ml=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(dl),Tl=/PhantomJS/.test(dl),Al=!yl&&/AppleWebKit/.test(dl)&&/Mobile\/\w+/.test(dl),Ol=/Android/.test(dl),Nl=Al||Ol||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(dl),Pl=Al||/Mac/.test(pl),Dl=/\bCrOS\b/.test(dl),Fl=/win/i.test(pl),El=Sl&&dl.match(/Version\/(\d*\.\d*)/);El&&(El=Number(El[1])),El&&El>=15&&(Sl=!1,Cl=!0);var Hl,Wl=Pl&&(wl||Sl&&(null==El||El<12.11)),Il=ml||xl&&bl>=9,Rl=function(t,n){var r=t.className,i=e(n).exec(r);if(i){var o=r.slice(i.index+i[0].length);t.className=r.slice(0,i.index)+(o?i[1]+o:"")}};Hl=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var _l=function(e){e.select()};Al?_l=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:xl&&(_l=function(e){try{e.select()}catch(e){}});var Bl=function(){this.id=null};Bl.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)};var jl,zl,ql=30,Ul={toString:function(){return"CodeMirror.Pass"}},Gl={scroll:!1},Vl={origin:"*mouse"},Kl={origin:"+move"},$l=[""],Xl=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,Yl=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/,Ql=!1,Jl=!1,Zl=null,ea=function(){function e(e){return e<=247?n.charAt(e):1424<=e&&e<=1524?"R":1536<=e&&e<=1785?r.charAt(e-1536):1774<=e&&e<=2220?"r":8192<=e&&e<=8203?"w":8204==e?"b":"L"}function t(e,t,n){this.level=e,this.from=t,this.to=n}var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111",i=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,o=/[stwN]/,l=/[LRr]/,a=/[Lb1n]/,s=/[1n]/;return function(n,r){var c="ltr"==r?"L":"R";if(0==n.length||"ltr"==r&&!i.test(n))return!1;for(var u=n.length,f=[],h=0;h<u;++h)f.push(e(n.charCodeAt(h)));for(var d=0,p=c;d<u;++d){var g=f[d];"m"==g?f[d]=p:p=g}for(var v=0,y=c;v<u;++v){var x=f[v];"1"==x&&"r"==y?f[v]="n":l.test(x)&&(y=x,"r"==x&&(f[v]="R"))}for(var b=1,C=f[0];b<u-1;++b){var w=f[b];"+"==w&&"1"==C&&"1"==f[b+1]?f[b]="1":","!=w||C!=f[b+1]||"1"!=C&&"n"!=C||(f[b]=C),C=w}for(var k=0;k<u;++k){var S=f[k];if(","==S)f[k]="N";else if("%"==S){var L=void 0;for(L=k+1;L<u&&"%"==f[L];++L);for(var M=k&&"!"==f[k-1]||L<u&&"1"==f[L]?"1":"N",T=k;T<L;++T)f[T]=M;k=L-1}}for(var A=0,O=c;A<u;++A){var N=f[A];"L"==O&&"1"==N?f[A]="L":l.test(N)&&(O=N)}for(var P=0;P<u;++P)if(o.test(f[P])){var D=void 0;for(D=P+1;D<u&&o.test(f[D]);++D);for(var F="L"==(P?f[P-1]:c),E="L"==(D<u?f[D]:c),H=F==E?F?"L":"R":c,W=P;W<D;++W)f[W]=H;P=D-1}for(var I,R=[],_=0;_<u;)if(a.test(f[_])){var B=_;for(++_;_<u&&a.test(f[_]);++_);R.push(new t(0,B,_))}else{var j=_,z=R.length;for(++_;_<u&&"L"!=f[_];++_);for(var q=j;q<_;)if(s.test(f[q])){j<q&&R.splice(z,0,new t(1,j,q));var U=q;for(++q;q<_&&s.test(f[q]);++q);R.splice(z,0,new t(2,U,q)),j=q}else++q;j<_&&R.splice(z,0,new t(1,j,_))}return"ltr"==r&&(1==R[0].level&&(I=n.match(/^\s+/))&&(R[0].from=I[0].length,R.unshift(new t(0,0,I[0].length))),1==m(R).level&&(I=n.match(/\s+$/))&&(m(R).to-=I[0].length,R.push(new t(0,u-I[0].length,u)))),"rtl"==r?R.reverse():R}}(),ta=[],na=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||ta).concat(n)}},ra=function(){if(xl&&bl<9)return!1;var e=r("div");return"draggable"in e||"dragDrop"in e}(),ia=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);i==-1&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),l=o.indexOf("\r");l!=-1?(n.push(o.slice(0,l)),t+=l+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},oa=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},la=function(){var e=r("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),aa=null,sa={},ca={},ua={},fa=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};fa.prototype.eol=function(){return this.pos>=this.string.length},fa.prototype.sol=function(){return this.pos==this.lineStart},fa.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},fa.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},fa.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},fa.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},fa.prototype.eatSpace=function(){for(var e=this,t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++e.pos;return this.pos>t},fa.prototype.skipToEnd=function(){this.pos=this.string.length},fa.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},fa.prototype.backUp=function(e){this.pos-=e},fa.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=f(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?f(this.string,this.lineStart,this.tabSize):0)},fa.prototype.indentation=function(){return f(this.string,null,this.tabSize)-(this.lineStart?f(this.string,this.lineStart,this.tabSize):0)},fa.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&t!==!1&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return t!==!1&&(this.pos+=e.length),!0},fa.prototype.current=function(){return this.string.slice(this.start,this.pos)},fa.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},fa.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},fa.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var ha=function(e,t){this.state=e,this.lookAhead=t},da=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};da.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},da.prototype.baseToken=function(e){var t=this;if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)t.baseTokenPos+=2;var n=this.baseTokens[this.baseTokenPos+1];return{type:n&&n.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},da.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},da.fromSaved=function(e,t,n){return t instanceof ha?new da(e,Ve(e.mode,t.state),n,t.lookAhead):new da(e,Ve(e.mode,t),n)},da.prototype.save=function(e){var t=e!==!1?Ve(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ha(t,this.maxLookAhead):t};var pa=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n},ma=function(e,t,n){this.text=e,re(this,t),this.height=n?n(this):1};ma.prototype.lineNo=function(){return P(this)},Pe(ma);var ga,va={},ya={},xa=null,ba=null,Ca={left:0,right:0,top:0,bottom:0},wa=function(e,t,n){this.cm=n;var i=this.vert=r("div",[r("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=r("div",[r("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");i.tabIndex=o.tabIndex=-1,e(i),e(o),na(i,"scroll",function(){i.clientHeight&&t(i.scrollTop,"vertical")}),na(o,"scroll",function(){o.clientWidth&&t(o.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,xl&&bl<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};wa.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},wa.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},wa.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},wa.prototype.zeroWidthHack=function(){var e=Pl&&!Ml?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Bl,this.disableVert=new Bl},wa.prototype.enableZeroWidthBar=function(e,t,n){function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}e.style.pointerEvents="auto",t.set(1e3,r)},wa.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var ka=function(){};ka.prototype.update=function(){return{bottom:0,right:0}},ka.prototype.setScrollLeft=function(){},ka.prototype.setScrollTop=function(){},ka.prototype.clear=function(){};var Sa={native:wa,null:ka},La=0,Ma=function(e,t,n){var r=e.display;this.viewport=t,this.visible=Bn(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=jt(e),this.force=n,this.dims=wn(e),this.events=[]};Ma.prototype.signal=function(e,t){Ne(e,t)&&this.events.push(arguments)},Ma.prototype.finish=function(){for(var e=this,t=0;t<this.events.length;t++)Te.apply(null,e.events[t])};var Ta=0,Aa=null;xl?Aa=-.53:ml?Aa=15:kl?Aa=-.7:Ll&&(Aa=-1/3);var Oa=function(e,t){this.ranges=e,this.primIndex=t};Oa.prototype.primary=function(){return this.ranges[this.primIndex]},Oa.prototype.equals=function(e){var t=this;if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var n=0;n<this.ranges.length;n++){var r=t.ranges[n],i=e.ranges[n];if(!I(r.anchor,i.anchor)||!I(r.head,i.head))return!1}return!0},Oa.prototype.deepCopy=function(){for(var e=this,t=[],n=0;n<this.ranges.length;n++)t[n]=new Na(R(e.ranges[n].anchor),R(e.ranges[n].head));return new Oa(t,this.primIndex)},Oa.prototype.somethingSelected=function(){for(var e=this,t=0;t<this.ranges.length;t++)if(!e.ranges[t].empty())return!0;return!1},Oa.prototype.contains=function(e,t){var n=this;t||(t=e);for(var r=0;r<this.ranges.length;r++){var i=n.ranges[r];if(W(t,i.from())>=0&&W(e,i.to())<=0)return r}return-1};var Na=function(e,t){this.anchor=e,this.head=t};Na.prototype.from=function(){return B(this.anchor,this.head)},Na.prototype.to=function(){return _(this.anchor,this.head)},Na.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},zi.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=this,r=e,i=e+t;r<i;++r){var o=n.lines[r];n.height-=o.height,at(o),Ct(o,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){var r=this;this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var i=0;i<t.length;++i)t[i].parent=r},iterN:function(e,t,n){for(var r=this,i=e+t;e<i;++e)if(n(r.lines[e]))return!0}},qi.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){var n=this;this.size-=t;for(var r=0;r<this.children.length;++r){var i=n.children[r],o=i.chunkSize();if(e<o){var l=Math.min(t,o-e),a=i.height;if(i.removeInner(e,l),n.height-=a-i.height,o==l&&(n.children.splice(r--,1),i.parent=null),0==(t-=l))break;e=0}else e-=o}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof zi))){var s=[];this.collapse(s),this.children=[new zi(s)],this.children[0].parent=this}},collapse:function(e){for(var t=this,n=0;n<this.children.length;++n)t.children[n].collapse(e)},insertInner:function(e,t,n){var r=this;this.size+=t.length,this.height+=n;for(var i=0;i<this.children.length;++i){var o=r.children[i],l=o.chunkSize();if(e<=l){if(o.insertInner(e,t,n),o.lines&&o.lines.length>50){for(var a=o.lines.length%25+25,s=a;s<o.lines.length;){var c=new zi(o.lines.slice(s,s+=25));o.height-=c.height,r.children.splice(++i,0,c),c.parent=r}o.lines=o.lines.slice(0,a),r.maybeSpill()}break}e-=l}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),n=new qi(t);if(e.parent){e.size-=n.size,e.height-=n.height;var r=h(e.parent.children,e);e.parent.children.splice(r+1,0,n)}else{var i=new qi(e.children);i.parent=e,e.children=[i,n],e=i}n.parent=e.parent}while(e.children.length>10)e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=this,i=0;i<this.children.length;++i){var o=r.children[i],l=o.chunkSize();if(e<l){var a=Math.min(t,l-e);if(o.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=l}}};var Pa=function(e,t,n){var r=this;if(n)for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i]);this.doc=e,this.node=t};Pa.prototype.clear=function(){var e=this,t=this.doc.cm,n=this.line.widgets,r=this.line,i=P(r);if(null!=i&&n){for(var o=0;o<n.length;++o)n[o]==e&&n.splice(o--,1);n.length||(r.widgets=null);var l=Ht(this);N(r,Math.max(0,r.height-l)),t&&(pr(t,function(){Ui(t,r,-l),xr(t,i,"widget")}),Ct(t,"lineWidgetCleared",t,this,i))}},Pa.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=Ht(this)-t;i&&(ve(this.doc,r)||N(r,r.height+i),n&&pr(n,function(){n.curOp.forceUpdate=!0,Ui(n,r,i),Ct(n,"lineWidgetChanged",n,e,P(r))}))},Pe(Pa);var Da=0,Fa=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Da};Fa.prototype.clear=function(){var e=this;if(!this.explicitlyCleared){var t=this.doc.cm,n=t&&!t.curOp;if(n&&lr(t),Ne(this,"clear")){var r=this.find();r&&Ct(this,"clear",r.from,r.to)}for(var i=null,o=null,l=0;l<this.lines.length;++l){var a=e.lines[l],s=$(a.markedSpans,e);t&&!e.collapsed?xr(t,P(a),"text"):t&&(null!=s.to&&(o=P(a)),null!=s.from&&(i=P(a))),a.markedSpans=X(a.markedSpans,s),null==s.from&&e.collapsed&&!ve(e.doc,a)&&t&&N(a,bn(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var c=0;c<this.lines.length;++c){var u=he(e.lines[c]),f=be(u);f>t.display.maxLineLength&&(t.display.maxLine=u,t.display.maxLineLength=f,t.display.maxLineChanged=!0)}null!=i&&t&&this.collapsed&&yr(t,i,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Si(t.doc)),t&&Ct(t,"markerCleared",t,this,i,o),n&&ar(t),this.parent&&this.parent.clear()}},Fa.prototype.find=function(e,t){var n=this;null==e&&"bookmark"==this.type&&(e=1);for(var r,i,o=0;o<this.lines.length;++o){var l=n.lines[o],a=$(l.markedSpans,n);if(null!=a.from&&(r=H(t?l:P(l),a.from),e==-1))return r;if(null!=a.to&&(i=H(t?l:P(l),a.to),1==e))return i}return r&&{from:r,to:i}},Fa.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&pr(r,function(){var i=t.line,o=P(t.line),l=Kt(r,o);if(l&&(en(l),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!ve(n.doc,i)&&null!=n.height){var a=n.height;n.height=null;var s=Ht(n)-a;s&&N(i,i.height+s)}Ct(r,"markerChanged",r,e)})},Fa.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&h(t.maybeHiddenMarkers,this)!=-1||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Fa.prototype.detachLine=function(e){if(this.lines.splice(h(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Pe(Fa);var Ea=function(e,t){var n=this;this.markers=e,this.primary=t;for(var r=0;r<e.length;++r)e[r].parent=n};Ea.prototype.clear=function(){var e=this;if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)e.markers[t].clear();Ct(this,"clear")}},Ea.prototype.find=function(e,t){return this.primary.find(e,t)},Pe(Ea);var Ha=0,Wa=function(e,t,n,r,i){if(!(this instanceof Wa))return new Wa(e,t,n,r,i);null==n&&(n=0),qi.call(this,[new zi([new ma("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=H(n,0);this.sel=jr(o),this.history=new ti(null),this.id=++Ha,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),Yr(this,{from:o,to:o,text:e}),Ci(this,jr(o),Gl)};Wa.prototype=x(qi.prototype,{constructor:Wa,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=O(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:vr(function(e){var t=H(this.first,0),n=this.first+this.size-1;Pi(this,{from:t,to:H(n,T(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Xn(this.cm,0,0),Ci(this,jr(t),Gl)}),replaceRange:function(e,t,n,r){t=z(this,t),n=n?z(this,n):t,Ii(this,e,t,n,r)},getRange:function(e,t,n){var r=A(this,z(this,e),z(this,t));return n===!1?r:r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(F(this,e))return T(this,e)},getLineNumber:function(e){return P(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=T(this,e)),he(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return z(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||e===!1?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:vr(function(e,t,n){yi(this,z(this,"number"==typeof e?H(e,t||0):e),null,n)}),setSelection:vr(function(e,t,n){yi(this,z(this,e),z(this,t||e),n)}),extendSelection:vr(function(e,t,n){mi(this,z(this,e),t&&z(this,t),n)}),extendSelections:vr(function(e,t){gi(this,U(this,e),t)}),extendSelectionsBy:vr(function(e,t){gi(this,U(this,g(this.sel.ranges,e)),t)}),setSelections:vr(function(e,t,n){var r=this;if(e.length){for(var i=[],o=0;o<e.length;o++)i[o]=new Na(z(r,e[o].anchor),z(r,e[o].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Ci(this,Br(this.cm,i,t),n)}}),addSelection:vr(function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new Na(z(this,e),z(this,t||e))),Ci(this,Br(this.cm,r,r.length-1),n)}),getSelection:function(e){for(var t,n=this,r=this.sel.ranges,i=0;i<r.length;i++){var o=A(n,r[i].from(),r[i].to());t=t?t.concat(o):o}return e===!1?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=this,n=[],r=this.sel.ranges,i=0;i<r.length;i++){var o=A(t,r[i].from(),r[i].to());e!==!1&&(o=o.join(e||t.lineSeparator())),n[i]=o}return n},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:vr(function(e,t,n){for(var r=this,i=[],o=this.sel,l=0;l<o.ranges.length;l++){var a=o.ranges[l]
;i[l]={from:a.from(),to:a.to(),text:r.splitLines(e[l]),origin:n}}for(var s=t&&"end"!=t&&Vr(this,i,t),c=i.length-1;c>=0;c--)Pi(r,i[c]);s?bi(this,s):this.cm&&$n(this.cm)}),undo:vr(function(){Fi(this,"undo")}),redo:vr(function(){Fi(this,"redo")}),undoSelection:vr(function(){Fi(this,"undo",!0)}),redoSelection:vr(function(){Fi(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){this.history=new ti(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:di(this.history.done),undone:di(this.history.undone)}},setHistory:function(e){var t=this.history=new ti(this.history.maxGeneration);t.done=di(e.done.slice(0),null,!0),t.undone=di(e.undone.slice(0),null,!0)},setGutterMarker:vr(function(e,t,n){return ji(this,e,"gutter",function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&w(r)&&(e.gutterMarkers=null),!0})}),clearGutter:vr(function(e){var t=this;this.iter(function(n){n.gutterMarkers&&n.gutterMarkers[e]&&ji(t,n,"gutter",function(){return n.gutterMarkers[e]=null,w(n.gutterMarkers)&&(n.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if("number"==typeof e){if(!F(this,e))return null;if(t=e,!(e=T(this,e)))return null}else if(null==(t=P(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:vr(function(t,n,r){return ji(this,t,"gutter"==n?"gutter":"class",function(t){var i="text"==n?"textClass":"background"==n?"bgClass":"gutter"==n?"gutterClass":"wrapClass";if(t[i]){if(e(r).test(t[i]))return!1;t[i]+=" "+r}else t[i]=r;return!0})}),removeLineClass:vr(function(t,n,r){return ji(this,t,"gutter"==n?"gutter":"class",function(t){var i="text"==n?"textClass":"background"==n?"bgClass":"gutter"==n?"gutterClass":"wrapClass",o=t[i];if(!o)return!1;if(null==r)t[i]=null;else{var l=o.match(e(r));if(!l)return!1;var a=l.index+l[0].length;t[i]=o.slice(0,l.index)+(l.index&&a!=o.length?" ":"")+o.slice(a)||null}return!0})}),addLineWidget:vr(function(e,t,n){return Gi(this,e,t,n)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return Vi(this,z(this,e),z(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=z(this,e),Vi(this,e,e,n,"bookmark")},findMarksAt:function(e){e=z(this,e);var t=[],n=T(this,e.line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=z(this,e),t=z(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var l=o.markedSpans;if(l)for(var a=0;a<l.length;a++){var s=l[a];null!=s.to&&i==e.line&&e.ch>=s.to||null==s.from&&i!=e.line||null!=s.from&&i==t.line&&s.from>=t.ch||n&&!n(s.marker)||r.push(s.marker.parent||s.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)}),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter(function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n}),z(this,H(n,t))},indexFromPos:function(e){e=z(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,function(e){t+=e.text.length+n}),t},copy:function(e){var t=new Wa(O(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new Wa(O(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Xi(r,$i(this)),r},unlinkDoc:function(e){var t=this;if(e instanceof $o&&(e=e.doc),this.linked)for(var n=0;n<this.linked.length;++n){var r=t.linked[n];if(r.doc==e){t.linked.splice(n,1),e.unlinkDoc(t),Yi($i(t));break}}if(e.history==this.history){var i=[e.id];Qr(e,function(e){return i.push(e.id)},!0),e.history=new ti(null),e.history.done=di(this.history.done,i),e.history.undone=di(this.history.undone,i)}},iterLinkedDocs:function(e){Qr(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):ia(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:vr(function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(e){return e.order=null}),this.cm&&ei(this.cm))})}),Wa.prototype.eachLine=Wa.prototype.iter;for(var Ia=0,Ra=!1,_a={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",127:"Delete",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Ba=0;Ba<10;Ba++)_a[Ba+48]=_a[Ba+96]=String(Ba);for(var ja=65;ja<=90;ja++)_a[ja]=String.fromCharCode(ja);for(var za=1;za<=12;za++)_a[za+111]=_a[za+63235]="F"+za;var qa={};qa.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},qa.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},qa.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},qa.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},qa.default=Pl?qa.macDefault:qa.pcDefault;var Ua={selectAll:Oi,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Gl)},killLine:function(e){return ho(e,function(t){if(t.empty()){var n=T(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:H(t.head.line+1,0)}:{from:t.head,to:H(t.head.line,n)}}return{from:t.from(),to:t.to()}})},deleteLine:function(e){return ho(e,function(t){return{from:H(t.from().line,0),to:z(e.doc,H(t.to().line+1,0))}})},delLineLeft:function(e){return ho(e,function(e){return{from:H(e.from().line,0),to:e.from()}})},delWrappedLineLeft:function(e){return ho(e,function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}})},delWrappedLineRight:function(e){return ho(e,function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(H(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(H(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return yo(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return bo(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return xo(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")},Kl)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")},Kl)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?bo(e,t.head):r},Kl)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"char")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),l=f(e.getLine(o.line),o.ch,r);t.push(p(r-l%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return pr(e,function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=T(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new H(i.line,i.ch-1)),i.ch>0)i=new H(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),H(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var l=T(e.doc,i.line-1).text;l&&(i=new H(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+l.charAt(l.length-1),H(i.line-1,l.length-1),i,"+transpose"))}n.push(new Na(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return pr(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);$n(e)})},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}},Ga=new Bl,Va=null,Ka=function(e,t,n){this.time=e,this.pos=t,this.button=n};Ka.prototype.compare=function(e,t,n){return this.time+400>e&&0==W(t,this.pos)&&n==this.button};var $a,Xa,Ya={toString:function(){return"CodeMirror.Init"}},Qa={},Ja={};$o.defaults=Qa,$o.optionHandlers=Ja;var Za=[];$o.defineInitHook=function(e){return Za.push(e)};var es=null,ts=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Bl,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ts.prototype.init=function(e){function t(e){if(!Ae(i,e)){if(i.somethingSelected())Qo({lineWise:!1,text:i.getSelections()}),"cut"==e.type&&i.replaceSelection("",null,"cut");else{if(!i.options.lineWiseCopyCut)return;var t=tl(i);Qo({lineWise:!0,text:t.text}),"cut"==e.type&&i.operation(function(){i.setSelections(t.ranges,0,Gl),i.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var n=es.text.join("\n");if(e.clipboardData.setData("Text",n),e.clipboardData.getData("Text")==n)return void e.preventDefault()}var l=rl(),a=l.firstChild;i.display.lineSpace.insertBefore(l,i.display.lineSpace.firstChild),a.value=es.text.join("\n");var s=document.activeElement;_l(a),setTimeout(function(){i.display.lineSpace.removeChild(l),s.focus(),s==o&&r.showPrimarySelection()},50)}}var n=this,r=this,i=r.cm,o=r.div=e.lineDiv;nl(o,i.options.spellcheck),na(o,"paste",function(e){Ae(i,e)||Zo(e,i)||bl<=11&&setTimeout(mr(i,function(){return n.updateFromDOM()}),20)}),na(o,"compositionstart",function(e){n.composing={data:e.data,done:!1}}),na(o,"compositionupdate",function(e){n.composing||(n.composing={data:e.data,done:!1})}),na(o,"compositionend",function(e){n.composing&&(e.data!=n.composing.data&&n.readFromDOMSoon(),n.composing.done=!0)}),na(o,"touchstart",function(){return r.forceCompositionEnd()}),na(o,"input",function(){n.composing||n.readFromDOMSoon()}),na(o,"copy",t),na(o,"cut",t)},ts.prototype.prepareSelection=function(){var e=On(this.cm,!1);return e.focus=this.cm.state.focused,e},ts.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},ts.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ts.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,n=t.doc.sel.primary(),r=n.from(),i=n.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||i.line<t.display.viewFrom)return void e.removeAllRanges();var o=ul(t,e.anchorNode,e.anchorOffset),l=ul(t,e.focusNode,e.focusOffset);if(!o||o.bad||!l||l.bad||0!=W(B(o,l),r)||0!=W(_(o,l),i)){var a=t.display.view,s=r.line>=t.display.viewFrom&&ll(t,r)||{node:a[0].measure.map[2],offset:0},c=i.line<t.display.viewTo&&ll(t,i);if(!c){var u=a[a.length-1].measure,f=u.maps?u.maps[u.maps.length-1]:u.map;c={node:f[f.length-1],offset:f[f.length-2]-f[f.length-3]}}if(!s||!c)return void e.removeAllRanges();var h,d=e.rangeCount&&e.getRangeAt(0);try{h=Hl(s.node,s.offset,c.offset,c.node)}catch(e){}h&&(!ml&&t.state.focused?(e.collapse(s.node,s.offset),h.collapsed||(e.removeAllRanges(),e.addRange(h))):(e.removeAllRanges(),e.addRange(h)),d&&null==e.anchorNode?e.addRange(d):ml&&this.startGracePeriod()),this.rememberSelection()}},ts.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},ts.prototype.showMultipleSelections=function(e){n(this.cm.display.cursorDiv,e.cursors),n(this.cm.display.selectionDiv,e.selection)},ts.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},ts.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return o(this.div,t)},ts.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()||this.showSelection(this.prepareSelection(),!0),this.div.focus())},ts.prototype.blur=function(){this.div.blur()},ts.prototype.getField=function(){return this.div},ts.prototype.supportsTouch=function(){return!0},ts.prototype.receivedFocus=function(){function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))}var t=this;this.selectionInEditor()?this.pollSelection():pr(this.cm,function(){return t.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,e)},ts.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},ts.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(Ol&&kl&&this.cm.options.gutters.length&&al(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=ul(t,e.anchorNode,e.anchorOffset),r=ul(t,e.focusNode,e.focusOffset);n&&r&&pr(t,function(){Ci(t.doc,jr(n,r),Gl),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)})}}},ts.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,n=e.doc.sel.primary(),r=n.from(),i=n.to();if(0==r.ch&&r.line>e.firstLine()&&(r=H(r.line-1,T(e.doc,r.line-1).length)),i.ch==T(e.doc,i.line).text.length&&i.line<e.lastLine()&&(i=H(i.line+1,0)),r.line<t.viewFrom||i.line>t.viewTo-1)return!1;var o,l,a;r.line==t.viewFrom||0==(o=Tn(e,r.line))?(l=P(t.view[0].line),a=t.view[0].node):(l=P(t.view[o].line),a=t.view[o-1].node.nextSibling);var s,c,u=Tn(e,i.line);if(u==t.view.length-1?(s=t.viewTo-1,c=t.lineDiv.lastChild):(s=P(t.view[u+1].line)-1,c=t.view[u+1].node.previousSibling),!a)return!1;for(var f=e.doc.splitLines(cl(e,a,c,l,s)),h=A(e.doc,H(l,0),H(s,T(e.doc,s).text.length));f.length>1&&h.length>1;)if(m(f)==m(h))f.pop(),h.pop(),s--;else{if(f[0]!=h[0])break;f.shift(),h.shift(),l++}for(var d=0,p=0,g=f[0],v=h[0],y=Math.min(g.length,v.length);d<y&&g.charCodeAt(d)==v.charCodeAt(d);)++d;for(var x=m(f),b=m(h),C=Math.min(x.length-(1==f.length?d:0),b.length-(1==h.length?d:0));p<C&&x.charCodeAt(x.length-p-1)==b.charCodeAt(b.length-p-1);)++p;if(1==f.length&&1==h.length&&l==r.line)for(;d&&d>r.ch&&x.charCodeAt(x.length-p-1)==b.charCodeAt(b.length-p-1);)d--,p++;f[f.length-1]=x.slice(0,x.length-p).replace(/^\u200b+/,""),f[0]=f[0].slice(d).replace(/\u200b+$/,"");var w=H(l,d),k=H(s,h.length?m(h).length-p:0);return f.length>1||f[0]||W(w,k)?(Ii(e.doc,f,w,k,"+input"),!0):void 0},ts.prototype.ensurePolled=function(){this.forceCompositionEnd()},ts.prototype.reset=function(){this.forceCompositionEnd()},ts.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ts.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},ts.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||pr(this.cm,function(){return yr(e.cm)})},ts.prototype.setUneditable=function(e){e.contentEditable="false"},ts.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||mr(this.cm,Jo)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},ts.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},ts.prototype.onContextMenu=function(){},ts.prototype.resetPosition=function(){},ts.prototype.needsContentAttribute=!0;var ns=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new Bl,this.hasSelection=!1,this.composing=null};ns.prototype.init=function(e){function t(e){if(!Ae(i,e)){if(i.somethingSelected())Qo({lineWise:!1,text:i.getSelections()});else{if(!i.options.lineWiseCopyCut)return;var t=tl(i);Qo({lineWise:!0,text:t.text}),"cut"==e.type?i.setSelections(t.ranges,null,Gl):(r.prevInput="",o.value=t.text.join("\n"),_l(o))}"cut"==e.type&&(i.state.cutIncoming=!0)}}var n=this,r=this,i=this.cm;this.createField(e);var o=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),Al&&(o.style.width="0px"),na(o,"input",function(){xl&&bl>=9&&n.hasSelection&&(n.hasSelection=null),r.poll()}),na(o,"paste",function(e){Ae(i,e)||Zo(e,i)||(i.state.pasteIncoming=!0,r.fastPoll())}),na(o,"cut",t),na(o,"copy",t),na(e.scroller,"paste",function(t){Wt(e,t)||Ae(i,t)||(i.state.pasteIncoming=!0,r.focus())}),na(e.lineSpace,"selectstart",function(t){Wt(e,t)||De(t)}),na(o,"compositionstart",function(){var e=i.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:e,range:i.markText(e,i.getCursor("to"),{className:"CodeMirror-composing"})}}),na(o,"compositionend",function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})},ns.prototype.createField=function(e){this.wrapper=rl(),this.textarea=this.wrapper.firstChild},ns.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=On(e);if(e.options.moveInputWithCursor){var i=un(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),l=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+l.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+l.left-o.left))}return r},ns.prototype.showSelection=function(e){var t=this.cm,r=t.display;n(r.cursorDiv,e.cursors),n(r.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},ns.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&_l(this.textarea),xl&&bl>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",xl&&bl>=9&&(this.hasSelection=null))}},ns.prototype.getField=function(){return this.textarea},ns.prototype.supportsTouch=function(){return!1},ns.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!Nl||l()!=this.textarea))try{this.textarea.focus()}catch(e){}},ns.prototype.blur=function(){this.textarea.blur()},ns.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ns.prototype.receivedFocus=function(){this.slowPoll()},ns.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},ns.prototype.fastPoll=function(){function e(){n.poll()||t?(n.pollingFast=!1,n.slowPoll()):(t=!0,n.polling.set(60,e))}var t=!1,n=this;n.pollingFast=!0,n.polling.set(20,e)},ns.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||oa(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(xl&&bl>=9&&this.hasSelection===i||Pl&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,a=Math.min(r.length,i.length);l<a&&r.charCodeAt(l)==i.charCodeAt(l);)++l;return pr(t,function(){Jo(t,i.slice(l),r.length-l,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ns.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ns.prototype.onKeyPress=function(){xl&&bl>=9&&(this.hasSelection=null),this.fastPoll()},ns.prototype.onContextMenu=function(e){function t(){if(null!=l.selectionStart){var e=i.somethingSelected(),t="​"+(e?l.value:"");l.value="⇚",l.value=t,r.prevInput=e?"":"​",l.selectionStart=1,l.selectionEnd=t.length,o.selForContextMenu=i.doc.sel}}function n(){if(r.contextMenuPending=!1,r.wrapper.style.cssText=u,l.style.cssText=c,xl&&bl<9&&o.scrollbars.setScrollTop(o.scroller.scrollTop=s),null!=l.selectionStart){(!xl||xl&&bl<9)&&t();var e=0,n=function(){o.selForContextMenu==i.doc.sel&&0==l.selectionStart&&l.selectionEnd>0&&"​"==r.prevInput?mr(i,Oi)(i):e++<10?o.detectingSelectAll=setTimeout(n,500):(o.selForContextMenu=null,o.input.reset())};o.detectingSelectAll=setTimeout(n,200)}}var r=this,i=r.cm,o=i.display,l=r.textarea,a=Mn(i,e),s=o.scroller.scrollTop;if(a&&!Sl){i.options.resetSelectionOnContextMenu&&i.doc.sel.contains(a)==-1&&mr(i,Ci)(i.doc,jr(a),Gl);var c=l.style.cssText,u=r.wrapper.style.cssText;r.wrapper.style.cssText="position: absolute";var f=r.wrapper.getBoundingClientRect();l.style.cssText="position: absolute; width: 30px; height: 30px;\n      top: "+(e.clientY-f.top-5)+"px; left: "+(e.clientX-f.left-5)+"px;\n      z-index: 1000; background: "+(xl?"rgba(255, 255, 255, .05)":"transparent")+";\n      outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";var h;if(Cl&&(h=window.scrollY),o.input.focus(),Cl&&window.scrollTo(null,h),o.input.reset(),i.somethingSelected()||(l.value=r.prevInput=" "),r.contextMenuPending=!0,o.selForContextMenu=i.doc.sel,clearTimeout(o.detectingSelectAll),xl&&bl>=9&&t(),Il){He(e);var d=function(){Me(window,"mouseup",d),setTimeout(n,20)};na(window,"mouseup",d)}else setTimeout(n,50)}},ns.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},ns.prototype.setUneditable=function(){},ns.prototype.needsContentAttribute=!1,function(e){function t(t,r,i,o){e.defaults[t]=r,i&&(n[t]=o?function(e,t,n){n!=Ya&&i(e,t,n)}:i)}var n=e.optionHandlers;e.defineOption=t,e.Init=Ya,t("value","",function(e,t){return e.setValue(t)},!0),t("mode",null,function(e,t){e.doc.modeOption=t,Kr(e)},!0),t("indentUnit",2,Kr,!0),t("indentWithTabs",!1),t("smartIndent",!0),t("tabSize",4,function(e){$r(e),nn(e),yr(e)},!0),t("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter(function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(o==-1)break;i=o+t.length,n.push(H(r,o))}r++});for(var i=n.length-1;i>=0;i--)Ii(e.doc,t,n[i],H(n[i].line,n[i].ch+t.length))}}),t("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Ya&&e.refresh()}),t("specialCharPlaceholder",ut,function(e){return e.refresh()},!0),t("electricChars",!0),t("inputStyle",Nl?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),t("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),t("rtlMoveVisually",!Fl),t("wholeLineUpdateBefore",!0),t("theme","default",function(e){Uo(e),Go(e)},!0),t("keyMap","default",function(e,t,n){var r=fo(t),i=n!=Ya&&fo(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)}),t("extraKeys",null),t("configureMouse",null),t("lineWrapping",!1,Ko,!0),t("gutters",[],function(e){Wr(e.options),Go(e)},!0),t("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?kn(e.display)+"px":"0",e.refresh()},!0),t("coverGutterNextToScrollbar",!1,function(e){return rr(e)},!0),t("scrollbarStyle","native",function(e){or(e),rr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),t("lineNumbers",!1,function(e){Wr(e.options),Go(e)},!0),t("firstLineNumber",1,Go,!0),t("lineNumberFormatter",function(e){return e},Go,!0),t("showCursorWhenSelecting",!1,An,!0),t("resetSelectionOnContextMenu",!0),t("lineWiseCopyCut",!0),t("pasteLinesPerSelection",!0),t("selectionsMayTouch",!1),t("readOnly",!1,function(e,t){"nocursor"==t&&(In(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),t("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),t("dragDrop",!0,Vo),t("allowDropFileTypes",null),t("cursorBlinkRate",530),t("cursorScrollMargin",0),t("cursorHeight",1,An,!0),t("singleCursorHeightPerLine",!0,An,!0),t("workTime",100),t("workDelay",100),t("flattenSpans",!0,$r,!0),t("addModeClass",!1,$r,!0),t("pollInterval",100),t("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),t("historyEventDelay",1250),t("viewportMargin",10,function(e){return e.refresh()},!0),t("maxHighlightLength",1e4,$r,!0),t("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),t("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),t("autofocus",null),t("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0),t("phrases",null)}($o),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&mr(this,t[e])(this,n,i),Te(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](fo(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:gr(function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");v(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},function(e){return e.priority}),this.state.modeGen++,yr(this)}),removeOverlay:gr(function(e){for(var t=this,n=this.state.overlays,r=0;r<n.length;++r){var i=n[r].modeSpec;if(i==e||"string"==typeof e&&i.name==e)return n.splice(r,1),t.state.modeGen++,void yr(t)}}),indentLine:gr(function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),F(this.doc,e)&&Yo(this,e,t,n)}),indentSelection:gr(function(e){for(var t=this,n=this.doc.sel.ranges,r=-1,i=0;i<n.length;i++){var o=n[i];if(o.empty())o.head.line>r&&(Yo(t,o.head.line,e,!0),r=o.head.line,i==t.doc.sel.primIndex&&$n(t));else{var l=o.from(),a=o.to(),s=Math.max(r,l.line);r=Math.min(t.lastLine(),a.line-(a.ch?0:1))+1;for(var c=s;c<r;++c)Yo(t,c,e);var u=t.doc.sel.ranges;0==l.ch&&n.length==u.length&&u[i].from().ch>0&&vi(t.doc,i,new Na(l,u[i].to()),Gl)}}}),getTokenAt:function(e,t){return tt(this,e,t)},getLineTokens:function(e,t){return tt(this,H(e),t,!0)},getTokenTypeAt:function(e){e=z(this.doc,e);var t,n=Ye(this,T(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var l=r+i>>1
;if((l?n[2*l-1]:0)>=o)i=l;else{if(!(n[2*l+1]<o)){t=n[2*l+2];break}r=l+1}}var a=t?t.indexOf("overlay "):-1;return a<0?t:0==a?null:t.slice(0,a-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=this,i=[];if(!n.hasOwnProperty(t))return i;var o=n[t],l=this.getModeAt(e);if("string"==typeof l[t])o[l[t]]&&i.push(o[l[t]]);else if(l[t])for(var a=0;a<l[t].length;a++){var s=o[l[t][a]];s&&i.push(s)}else l.helperType&&o[l.helperType]?i.push(o[l.helperType]):o[l.name]&&i.push(o[l.name]);for(var c=0;c<o._global.length;c++){var u=o._global[c];u.pred(l,r)&&h(i,u.val)==-1&&i.push(u.val)}return i},getStateAfter:function(e,t){var n=this.doc;return e=j(n,null==e?n.first+n.size-1:e),Qe(this,e+1,t).state},cursorCoords:function(e,t){var n,r=this.doc.sel.primary();return n=null==e?r.head:"object"==typeof e?z(this.doc,e):e?r.from():r.to(),un(this,n,t||"page")},charCoords:function(e,t){return cn(this,z(this.doc,e),t||"page")},coordsChar:function(e,t){return e=sn(this,e,t||"page"),dn(this,e.left,e.top)},lineAtHeight:function(e,t){return e=sn(this,{top:e,left:0},t||"page").top,D(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=T(this.doc,e)}else r=e;return an(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-xe(r):0)},defaultTextHeight:function(){return bn(this.display)},defaultCharWidth:function(){return Cn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display;e=un(this,z(this.doc,e));var l=e.bottom,a=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==r)l=e.top;else if("above"==r||"near"==r){var s=Math.max(o.wrapper.clientHeight,this.doc.height),c=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>s)&&e.top>t.offsetHeight?l=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=s&&(l=e.bottom),a+t.offsetWidth>c&&(a=c-t.offsetWidth)}t.style.top=l+"px",t.style.left=t.style.right="","right"==i?(a=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?a=0:"middle"==i&&(a=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=a+"px"),n&&Gn(this,{left:a,top:l,right:a+t.offsetWidth,bottom:l+t.offsetHeight})},triggerOnKeyDown:gr(To),triggerOnKeyPress:gr(No),triggerOnKeyUp:Oo,triggerOnMouseDown:gr(Do),execCommand:function(e){if(Ua.hasOwnProperty(e))return Ua[e].call(null,this)},triggerElectric:gr(function(e){el(this,e)}),findPosH:function(e,t,n,r){var i=this,o=1;t<0&&(o=-1,t=-t);for(var l=z(this.doc,e),a=0;a<t&&(l=il(i.doc,l,o,n,r),!l.hitSide);++a);return l},moveH:gr(function(e,t){var n=this;this.extendSelectionsBy(function(r){return n.display.shift||n.doc.extend||r.empty()?il(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()},Kl)}),deleteH:gr(function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):ho(this,function(n){var i=il(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}})}),findPosV:function(e,t,n,r){var i=this,o=1,l=r;t<0&&(o=-1,t=-t);for(var a=z(this.doc,e),s=0;s<t;++s){var c=un(i,a,"div");if(null==l?l=c.left:c.left=l,a=ol(i,c,o,n),a.hitSide)break}return a},moveV:gr(function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy(function(l){if(o)return e<0?l.from():l.to();var a=un(n,l.head,"div");null!=l.goalColumn&&(a.left=l.goalColumn),i.push(a.left);var s=ol(n,a,e,t);return"page"==t&&l==r.sel.primary()&&Kn(n,cn(n,s,"div").top-a.top),s},Kl),i.length)for(var l=0;l<r.sel.ranges.length;l++)r.sel.ranges[l].goalColumn=i[l]}),findWordAt:function(e){var t=this.doc,n=T(t,e.line).text,r=e.ch,i=e.ch;if(n){var o=this.getHelper(e,"wordChars");"before"!=e.sticky&&i!=n.length||!r?++i:--r;for(var l=n.charAt(r),a=C(l,o)?function(e){return C(e,o)}:/\s/.test(l)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!C(e)};r>0&&a(n.charAt(r-1));)--r;for(;i<n.length&&a(n.charAt(i));)++i}return new Na(H(e.line,r),H(e.line,i))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?a(this.display.cursorDiv,"CodeMirror-overwrite"):Rl(this.display.cursorDiv,"CodeMirror-overwrite"),Te(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==l()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:gr(function(e,t){Xn(this,e,t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Bt(this)-this.display.barHeight,width:e.scrollWidth-Bt(this)-this.display.barWidth,clientHeight:zt(this),clientWidth:jt(this)}},scrollIntoView:gr(function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:H(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?Yn(this,e):Jn(this,e.from,e.to,e.margin)}),setSize:gr(function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&tn(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){xr(n,i,"widget");break}++i}),this.curOp.forceUpdate=!0,Te(this,"refresh",this)}),operation:function(e){return pr(this,e)},startOperation:function(){return lr(this)},endOperation:function(){return ar(this)},refresh:gr(function(){var e=this.display.cachedTextHeight;yr(this),this.curOp.forceUpdate=!0,nn(this),Xn(this,this.doc.scrollLeft,this.doc.scrollTop),Fr(this),(null==e||Math.abs(e-bn(this.display))>.5)&&Ln(this),Te(this,"refresh",this)}),swapDoc:gr(function(e){var t=this.doc;return t.cm=null,Jr(this,e),nn(this),this.display.input.reset(),Xn(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Ct(this,"swapDoc",this,t),t}),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Pe(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}($o);var rs="iter insert remove copy getEditor constructor".split(" ");for(var is in Wa.prototype)Wa.prototype.hasOwnProperty(is)&&h(rs,is)<0&&($o.prototype[is]=function(e){return function(){return e.apply(this.doc,arguments)}}(Wa.prototype[is]));return Pe(Wa),$o.inputStyles={textarea:ns,contenteditable:ts},$o.defineMode=function(e){$o.defaults.mode||"null"==e||($o.defaults.mode=e),je.apply(this,arguments)},$o.defineMIME=ze,$o.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),$o.defineMIME("text/plain","null"),$o.defineExtension=function(e,t){$o.prototype[e]=t},$o.defineDocExtension=function(e,t){Wa.prototype[e]=t},$o.fromTextArea=hl,function(e){e.off=Me,e.on=na,e.wheelEventPixels=Rr,e.Doc=Wa,e.splitLines=ia,e.countColumn=f,e.findColumn=d,e.isWordChar=b,e.Pass=Ul,e.signal=Te,e.Line=ma,e.changeEnd=zr,e.scrollbarModel=Sa,e.Pos=H,e.cmpPos=W,e.modes=sa,e.mimeModes=ca,e.resolveMode=qe,e.getMode=Ue,e.modeExtensions=ua,e.extendMode=Ge,e.copyState=Ve,e.startState=$e,e.innerMode=Ke,e.commands=Ua,e.keyMap=qa,e.keyName=uo,e.isModifierKey=so,e.lookupKey=ao,e.normalizeKeyMap=lo,e.StringStream=fa,e.SharedTextMarker=Ea,e.TextMarker=Fa,e.LineWidget=Pa,e.e_preventDefault=De,e.e_stopPropagation=Fe,e.e_stop=He,e.addClass=a,e.contains=o,e.rmClass=Rl,e.keyNames=_a}($o),$o.version="5.41.0",$o}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("rpm-changes",function(){return{token:function(e){if(e.sol()){if(e.match(/^-+$/))return"tag";if(e.match(/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)  ?\d{1,2} \d{2}:\d{2}(:\d{2})? [A-Z]{3,4} \d{4} - /))return"tag"}return e.match(/^[\w+.-]+@[\w.-]+/)?"string":(e.next(),null)}}}),e.defineMIME("text/x-rpm-changes","rpm-changes"),e.defineMode("rpm-spec",function(){return{startState:function(){return{controlFlow:!1,macroParameters:!1,section:!1}},token:function(e,t){if(e.string.trim().startsWith("#"))return e.skipToEnd(),"comment";if(e.string.trim().match(/<VirtualHost|VirtualHost>/))return e.skipToEnd(),"header";if(e.string.trim().match(/<Directory|Directory>|<Files|Files>|<Location|Location>/))return e.skipToEnd(),"keyword";if(e.string.trim().match(/<IfModule|IfModule>|<Proxy|Proxy>/))return e.skipToEnd(),"def";if(e.sol()){if(e.match(/^[a-zA-Z0-9()]+:/))return"header";if(e.match(/^%(debug_package|package|description|prep|build|install|files|clean|changelog|preinstall|preun|postinstall|postun|pretrans|posttrans|pre|post|triggerin|triggerun|verifyscript|check|triggerpostun|triggerprein|trigger)/))return"atom"}if(e.match(/^\$\w+/))return"def";if(e.match(/^\$\{\w+\}/))return"def";if(e.match(/^%(else|endif)/))return"keyword";if(e.match(/^%(ifnarch|ifarch|if)/))return t.controlFlow=!0,"keyword";if(t.controlFlow){if(e.match(/^(\!|\?|\<\=|\<|\>\=|\>|\=\=|\&\&|\|\|)/))return"operator";if(e.match(/^(\d+)/))return"number";e.eol()&&(t.controlFlow=!1)}if(e.match(/^(i386|i586|i686|x86_64|ppc64le|ppc64|ppc|ia64|s390x|s390|sparc64|sparcv9|sparc|noarch|alphaev6|alpha|hppa|mipsel)/))return e.eol()&&(t.controlFlow=!1),"number";if(e.match(/^%[\w]+/))return e.match(/^\(/)&&(t.macroParameters=!0),"keyword";if(t.macroParameters){if(e.match(/^\d+/))return"number";if(e.match(/^\)/))return t.macroParameters=!1,"keyword"}return e.match(/^%\{\??[\w \-\:\!]+\}/)?(e.eol()&&(t.controlFlow=!1),"def"):(e.next(),null)}}}),e.defineMIME("text/x-rpm-spec","rpm-spec")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){function t(e,t,n){var r;return r=e.getWrapperElement().appendChild(document.createElement("div")),r.className=n?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof t?r.innerHTML=t:r.appendChild(t),r}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}e.defineExtension("openDialog",function(r,i,o){function l(e){if("string"==typeof e)f.value=e;else{if(c)return;c=!0,s.parentNode.removeChild(s),u.focus(),o.onClose&&o.onClose(s)}}o||(o={}),n(this,null);var a,s=t(this,r,o.bottom),c=!1,u=this,f=s.getElementsByTagName("input")[0];return f?(f.focus(),o.value&&(f.value=o.value,o.selectValueOnOpen!==!1&&f.select()),o.onInput&&e.on(f,"input",function(e){o.onInput(e,f.value,l)}),o.onKeyUp&&e.on(f,"keyup",function(e){o.onKeyUp(e,f.value,l)}),e.on(f,"keydown",function(t){o&&o.onKeyDown&&o.onKeyDown(t,f.value,l)||((27==t.keyCode||o.closeOnEnter!==!1&&13==t.keyCode)&&(f.blur(),e.e_stop(t),l()),13==t.keyCode&&i(f.value,t))}),o.closeOnBlur!==!1&&e.on(f,"blur",l)):(a=s.getElementsByTagName("button")[0])&&(e.on(a,"click",function(){l(),u.focus()}),o.closeOnBlur!==!1&&e.on(a,"blur",l),a.focus()),l}),e.defineExtension("openConfirm",function(r,i,o){function l(){c||(c=!0,a.parentNode.removeChild(a),u.focus())}n(this,null);var a=t(this,r,o&&o.bottom),s=a.getElementsByTagName("button"),c=!1,u=this,f=1;s[0].focus();for(var h=0;h<s.length;++h){var d=s[h];!function(t){e.on(d,"click",function(n){e.e_preventDefault(n),l(),t&&t(u)})}(i[h]),e.on(d,"blur",function(){--f,setTimeout(function(){0>=f&&l()},200)}),e.on(d,"focus",function(){++f})}}),e.defineExtension("openNotification",function(r,i){function o(){s||(s=!0,clearTimeout(l),a.parentNode.removeChild(a))}n(this,o);var l,a=t(this,r,i&&i.bottom),s=!1,c=i&&void 0!==i.duration?i.duration:5e3;return e.on(a,"click",function(t){e.e_preventDefault(t),o()}),c&&(l=setTimeout(o,c)),o})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("./searchcursor"),require("../dialog/dialog")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","./searchcursor","../dialog/dialog"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var n=e.exec(t.string);return n&&n.index==t.pos?(t.pos+=n[0].length||1,"searching"):void(n?t.pos=n.index:t.skipToEnd())}}}function n(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function r(e){return e.state.search||(e.state.search=new n)}function i(e){return"string"==typeof e&&e==e.toLowerCase()}function o(e,t,n){return e.getSearchCursor(t,n,{caseFold:i(t),multiline:!0})}function l(e,t,n,r,i){e.openDialog(t,r,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){p(e)},onKeyDown:i})}function a(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0}):i(prompt(n,r))}function s(e,t,n,r){e.openConfirm?e.openConfirm(t,r):confirm(n)&&r[0]()}function c(e){return e.replace(/\\(.)/g,function(e,t){return"n"==t?"\n":"r"==t?"\r":t})}function u(e){var t=e.match(/^\/(.*)\/([a-z]*)$/);if(t)try{e=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch(e){}else e=c(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function f(e,n,r){n.queryText=r,n.query=u(r),e.removeOverlay(n.overlay,i(n.query)),n.overlay=t(n.query,i(n.query)),e.addOverlay(n.overlay),e.showMatchesOnScrollbar&&(n.annotate&&(n.annotate.clear(),n.annotate=null),n.annotate=e.showMatchesOnScrollbar(n.query,i(n.query)))}function h(t,n,i,o){var s=r(t);if(s.query)return d(t,n);var c=t.getSelection()||s.lastQuery;if(c instanceof RegExp&&"x^"==c.source&&(c=null),i&&t.openDialog){var u=null,h=function(n,r){e.e_stop(r),n&&(n!=s.queryText&&(f(t,s,n),s.posFrom=s.posTo=t.getCursor()),u&&(u.style.opacity=1),d(t,r.shiftKey,function(e,n){var r;n.line<3&&document.querySelector&&(r=t.display.wrapper.querySelector(".CodeMirror-dialog"))&&r.getBoundingClientRect().bottom-4>t.cursorCoords(n,"window").top&&((u=r).style.opacity=.4)}))};l(t,v,c,h,function(n,i){var o=e.keyName(n),l=t.getOption("extraKeys"),a=l&&l[o]||e.keyMap[t.getOption("keyMap")][o];"findNext"==a||"findPrev"==a||"findPersistentNext"==a||"findPersistentPrev"==a?(e.e_stop(n),f(t,r(t),i),t.execCommand(a)):("find"==a||"findPersistent"==a)&&(e.e_stop(n),h(i,n))}),o&&c&&(f(t,s,c),d(t,n))}else a(t,v,"Search for:",c,function(e){e&&!s.query&&t.operation(function(){f(t,s,e),s.posFrom=s.posTo=t.getCursor(),d(t,n)})})}function d(t,n,i){t.operation(function(){var l=r(t),a=o(t,l.query,n?l.posFrom:l.posTo);(a.find(n)||(a=o(t,l.query,n?e.Pos(t.lastLine()):e.Pos(t.firstLine(),0)),a.find(n)))&&(t.setSelection(a.from(),a.to()),t.scrollIntoView({from:a.from(),to:a.to()},20),l.posFrom=a.from(),l.posTo=a.to(),i&&i(a.from(),a.to()))})}function p(e){e.operation(function(){var t=r(e);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))})}function m(e,t,n){e.operation(function(){for(var r=o(e,t);r.findNext();)if("string"!=typeof t){var i=e.getRange(r.from(),r.to()).match(t);r.replace(n.replace(/\$(\d)/g,function(e,t){return i[t]}))}else r.replace(n)})}function g(e,t){if(!e.getOption("readOnly")){var n=e.getSelection()||r(e).lastQuery,i='<span class="CodeMirror-search-label">'+(t?"Replace all:":"Replace:")+"</span>";a(e,i+y,i,n,function(n){n&&(n=u(n),a(e,x,"Replace with:","",function(r){if(r=c(r),t)m(e,n,r);else{p(e);var i=o(e,n,e.getCursor("from")),l=function(){var t,c=i.from();!(t=i.findNext())&&(i=o(e,n),!(t=i.findNext())||c&&i.from().line==c.line&&i.from().ch==c.ch)||(e.setSelection(i.from(),i.to()),e.scrollIntoView({from:i.from(),to:i.to()}),s(e,b,"Replace?",[function(){a(t)},l,function(){m(e,n,r)}]))},a=function(e){i.replace("string"==typeof n?r:r.replace(/\$(\d)/g,function(t,n){return e[n]})),l()};l()}}))})}}var v='<span class="CodeMirror-search-label">Search:</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use /re/ syntax for regexp search)</span>',y=' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use /re/ syntax for regexp search)</span>',x='<span class="CodeMirror-search-label">With:</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/>',b='<span class="CodeMirror-search-label">Replace?</span> <button>Yes</button> <button>No</button> <button>All</button> <button>Stop</button>';e.commands.find=function(e){p(e),h(e)},e.commands.findPersistent=function(e){p(e),h(e,!1,!0)},e.commands.findPersistentNext=function(e){h(e,!1,!0,!0)},e.commands.findPersistentPrev=function(e){h(e,!0,!0,!0)},e.commands.findNext=h,e.commands.findPrev=function(e){h(e,!0)},e.commands.clearSearch=p,e.commands.replace=g,e.commands.replaceAll=function(e){g(e,!0)}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}function n(e){return e.global?e:new RegExp(e.source,t(e)+"g")}function r(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function i(e,t,r){t=n(t);for(var i=r.line,o=r.ch,l=e.lastLine();l>=i;i++,o=0){t.lastIndex=o;var a=e.getLine(i),s=t.exec(a);if(s)return{from:m(i,s.index),to:m(i,s.index+s[0].length),match:s}}}function o(e,t,o){if(!r(t))return i(e,t,o);t=n(t);for(var l,a=1,s=o.line,c=e.lastLine();c>=s;){for(var u=0;a>u;u++){var f=e.getLine(s++);l=null==l?f:l+"\n"+f}a*=2,t.lastIndex=o.ch;var h=t.exec(l);if(h){var d=l.slice(0,h.index).split("\n"),p=h[0].split("\n"),g=o.line+d.length-1,v=d[d.length-1].length;return{from:m(g,v),to:m(g+p.length-1,1==p.length?v+p[0].length:p[p.length-1].length),match:h}}}}function l(e,t){for(var n,r=0;;){t.lastIndex=r;var i=t.exec(e);if(!i)return n;if(n=i,(r=n.index+(n[0].length||1))==e.length)return n}}function a(e,t,r){t=n(t);for(var i=r.line,o=r.ch,a=e.firstLine();i>=a;i--,o=-1){var s=e.getLine(i);o>-1&&(s=s.slice(0,o));var c=l(s,t);if(c)return{from:m(i,c.index),to:m(i,c.index+c[0].length),match:c}}}function s(e,t,r){t=n(t);for(var i,o=1,a=r.line,s=e.firstLine();a>=s;){for(var c=0;o>c;c++){var u=e.getLine(a--);i=null==i?u.slice(0,r.ch):u+"\n"+i}o*=2;var f=l(i,t);if(f){var h=i.slice(0,f.index).split("\n"),d=f[0].split("\n"),p=a+h.length,g=h[h.length-1].length;return{from:m(p,g),to:m(p+d.length-1,1==d.length?g+d[0].length:d[d.length-1].length),match:f}}}}function c(e,t,n,r){if(e.length==t.length)return n;for(var i=0,o=n+Math.max(0,e.length-t.length);;){if(i==o)return i;var l=i+o>>1,a=r(e.slice(0,l)).length;if(a==n)return l;a>n?o=l:i=l+1}}function u(e,t,n,r){if(!t.length)return null;var i=r?d:p,o=i(t).split(/\r|\n\r?/);e:for(var l=n.line,a=n.ch,s=e.lastLine()+1-o.length;s>=l;l++,a=0){var u=e.getLine(l).slice(a),f=i(u);if(1==o.length){var h=f.indexOf(o[0]);if(-1==h)continue e;var n=c(u,f,h,i)+a;return{from:m(l,c(u,f,h,i)+a),to:m(l,c(u,f,h+o[0].length,i)+a)}}var g=f.length-o[0].length;if(f.slice(g)==o[0]){for(var v=1;v<o.length-1;v++)if(i(e.getLine(l+v))!=o[v])continue e;var y=e.getLine(l+o.length-1),x=i(y),b=o[o.length-1];if(x.slice(0,b.length)==b)return{from:m(l,c(u,f,g,i)+a),to:m(l+o.length-1,c(y,x,b.length,i))}}}}function f(e,t,n,r){if(!t.length)return null;var i=r?d:p,o=i(t).split(/\r|\n\r?/);e:for(var l=n.line,a=n.ch,s=e.firstLine()-1+o.length;l>=s;l--,a=-1){var u=e.getLine(l);a>-1&&(u=u.slice(0,a));var f=i(u);if(1==o.length){var h=f.lastIndexOf(o[0]);if(-1==h)continue e;return{from:m(l,c(u,f,h,i)),to:m(l,c(u,f,h+o[0].length,i))}}var g=o[o.length-1];if(f.slice(0,g.length)==g){for(var v=1,n=l-o.length+1;v<o.length-1;v++)if(i(e.getLine(n+v))!=o[v])continue e;var y=e.getLine(l+1-o.length),x=i(y);if(x.slice(x.length-o[0].length)==o[0])return{from:m(l+1-o.length,c(y,x,y.length-o[0].length,i)),to:m(l,c(u,f,g.length,i))}}}}function h(e,t,r,l){this.atOccurrence=!1,this.doc=e,r=r?e.clipPos(r):m(0,0),this.pos={from:r,to:r};var c;"object"==typeof l?c=l.caseFold:(c=l,l=null),"string"==typeof t?(null==c&&(c=!1),this.matches=function(n,r){return(n?f:u)(e,t,r,c)}):(t=n(t),l&&l.multiline===!1?this.matches=function(n,r){return(n?a:i)(e,t,r)}:this.matches=function(n,r){return(n?s:o)(e,t,r)})}var d,p,m=e.Pos;String.prototype.normalize?(d=function(e){return e.normalize("NFD").toLowerCase()},p=function(e){return e.normalize("NFD")}):(d=function(e){return e.toLowerCase()},p=function(e){return e}),h.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){for(var n=this.matches(t,this.doc.clipPos(t?this.pos.from:this.pos.to));n&&0==e.cmpPos(n.from,n.to);)t?n.from.ch?n.from=m(n.from.line,n.from.ch-1):n=n.from.line==this.doc.firstLine()?null:this.matches(t,this.doc.clipPos(m(n.from.line-1))):n.to.ch<this.doc.getLine(n.to.line).length?n.to=m(n.to.line,n.to.ch+1):n=n.to.line==this.doc.lastLine()?null:this.matches(t,m(n.to.line+1,0));if(n)return this.pos=n,this.atOccurrence=!0,this.pos.match||!0;var r=m(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:r,to:r},this.atOccurrence=!1},from:function(){return this.atOccurrence?this.pos.from:void 0},to:function(){return this.atOccurrence?this.pos.to:void 0},replace:function(t,n){if(this.atOccurrence){var r=e.splitLines(t);this.doc.replaceRange(r,this.pos.from,this.pos.to,n),this.pos.to=m(this.pos.from.line+r.length-1,r[r.length-1].length+(1==r.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",function(e,t,n){return new h(this.doc,e,t,n)}),e.defineDocExtension("getSearchCursor",function(e,t,n){return new h(this,e,t,n)}),e.defineExtension("selectMatches",function(t,n){for(var r=[],i=this.getSearchCursor(t,this.getCursor("from"),n);i.findNext()&&!(e.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.overlayMode=function(t,n,r){return{startState:function(){return{base:e.startState(t),overlay:e.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(r){return{base:e.copyState(t,r.base),overlay:e.copyState(n,r.overlay),basePos:r.basePos,baseCur:null,overlayPos:r.overlayPos,overlayCur:null}},token:function(e,i){return(e!=i.streamSeen||Math.min(i.basePos,i.overlayPos)<e.start)&&(i.streamSeen=e,i.basePos=i.overlayPos=e.start),e.start==i.basePos&&(i.baseCur=t.token(e,i.base),i.basePos=e.pos),e.start==i.overlayPos&&(e.pos=e.start,i.overlayCur=n.token(e,i.overlay),i.overlayPos=e.pos),e.pos=Math.min(i.basePos,i.overlayPos),null==i.overlayCur?i.baseCur:null!=i.baseCur&&i.overlay.combineTokens||r&&null==i.overlay.combineTokens?i.baseCur+" "+i.overlayCur:i.overlayCur},indent:t.indent&&function(e,n){return t.indent(e.base,n)},electricChars:t.electricChars,innerMode:function(e){return{state:e.base,mode:t}},blankLine:function(e){var i,o;return t.blankLine&&(i=t.blankLine(e.base)),n.blankLine&&(o=n.blankLine(e.overlay)),null==o?i:r&&null!=i?i+" "+o:o}}}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t){if(!e.hasOwnProperty(t))throw new Error("Undefined state "+t+" in simple mode")}function n(e,t){if(!e)return/(?:)/;var n="";return e instanceof RegExp?(e.ignoreCase&&(n="i"),e=e.source):e=String(e),new RegExp((!1===t?"":"^")+"(?:"+e+")",n)}function r(e,r){(e.next||e.push)&&t(r,e.next||e.push),this.regex=n(e.regex),this.token=function(e){if(!e)return null;if(e.apply)return e;if("string"==typeof e)return e.replace(/\./g," ");for(var t=[],n=0;n<e.length;n++)t.push(e[n]&&e[n].replace(/\./g," "));return t}(e.token),this.data=e}function i(e,t){if(e===t)return!0;if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;var n=0;for(var r in e)if(e.hasOwnProperty(r)){if(!t.hasOwnProperty(r)||!i(e[r],t[r]))return!1;n++}for(var r in t)t.hasOwnProperty(r)&&n--;return 0==n}function o(t,r,o,l){var a;if(o.persistent)for(var s=r.persistentStates;s&&!a;s=s.next)(o.spec?i(o.spec,s.spec):o.mode==s.mode)&&(a=s);var c=a?a.mode:o.mode||e.getMode(t,o.spec),u=a?a.state:e.startState(c);o.persistent&&!a&&(r.persistentStates={mode:c,spec:o.spec,state:u,next:r.persistentStates}),r.localState=u,r.local={mode:c,end:o.end&&n(o.end),endScan:o.end&&!1!==o.forceEnd&&n(o.end,!1),endToken:l&&l.join?l[l.length-1]:l}}e.defineSimpleMode=function(t,n){e.defineMode(t,function(t){return e.simpleMode(t,n)})},e.simpleMode=function(n,i){t(i,"start");var l={},a=i.meta||{},s=!1;for(var c in i)if(c!=a&&i.hasOwnProperty(c))for(var u=l[c]=[],f=i[c],h=0;h<f.length;h++){var d=f[h];u.push(new r(d,i)),(d.indent||d.dedent)&&(s=!0)}var p,m,g,v,y={startState:function(){return{state:"start",pending:null,local:null,localState:null,indent:s?[]:null}},copyState:function(t){var n={state:t.state,pending:t.pending,local:t.local,localState:null,indent:t.indent&&t.indent.slice(0)};t.localState&&(n.localState=e.copyState(t.local.mode,t.localState)),t.stack&&(n.stack=t.stack.slice(0));for(var r=t.persistentStates;r;r=r.next)n.persistentStates={mode:r.mode,spec:r.spec,state:r.state==t.localState?n.localState:e.copyState(r.mode,r.state),next:n.persistentStates};return n},token:(g=l,v=n,function(e,t){if(t.pending){var n=t.pending.shift();return 0==t.pending.length&&(t.pending=null),e.pos+=n.text.length,n.token}if(t.local){if(t.local.end&&e.match(t.local.end)){var r=t.local.endToken||null;return t.local=t.localState=null,r}var i,r=t.local.mode.token(e,t.localState);return t.local.endScan&&(i=t.local.endScan.exec(e.current()))&&(e.pos=e.start+i.index),r}for(var l=g[t.state],a=0;a<l.length;a++){var s=l[a],c=(!s.data.sol||e.sol())&&e.match(s.regex);if(c){s.data.next?t.state=s.data.next:s.data.push?((t.stack||(t.stack=[])).push(t.state),t.state=s.data.push):s.data.pop&&t.stack&&t.stack.length&&(t.state=t.stack.pop()),s.data.mode&&o(v,t,s.data.mode,s.token),s.data.indent&&t.indent.push(e.indentation()+v.indentUnit),s.data.dedent&&t.indent.pop();var u=s.token;if(u&&u.apply&&(u=u(c)),2<c.length&&s.token&&"string"!=typeof s.token){t.pending=[];for(var f=2;f<c.length;f++)c[f]&&t.pending.push({text:c[f],token:s.token[f-1]});return e.backUp(c[0].length-(c[1]?c[1].length:0)),u[0]}return u&&u.join?u[0]:u}}return e.next(),null}),innerMode:function(e){return e.local&&{mode:e.local.mode,state:e.localState}},indent:(p=l,m=a,function(t,n,r){if(t.local&&t.local.mode.indent)return t.local.mode.indent(t.localState,n,r);if(null==t.indent||t.local||m.dontIndentStates&&-1<function(e,t){for(var n=0;n<t.length;n++)if(t[n]===e)return!0}(t.state,m.dontIndentStates))return e.Pass;var i=t.indent.length-1,o=p[t.state];e:for(;;){for(var l=0;l<o.length;l++){var a=o[l];if(a.data.dedent&&!1!==a.data.dedentIfLineStart){var s=a.regex.exec(n);if(s&&s[0]){i--,(a.next||a.push)&&(o=p[a.next||a.push]),n=n.slice(s[0].length);continue e}}}break}return i<0?0:t.indent[i]})};if(a)for(var x in a)a.hasOwnProperty(x)&&(y[x]=a[x]);return y}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.multiplexingMode=function(t){function n(e,t,n,r){if("string"==typeof t){var i=e.indexOf(t,n);return r&&-1<i?i+t.length:i}var o=t.exec(n?e.slice(n):e);return o?o.index+n+(r?o[0].length:0):-1}var r=Array.prototype.slice.call(arguments,1);return{startState:function(){return{outer:e.startState(t),innerActive:null,inner:null}},copyState:function(n){return{outer:e.copyState(t,n.outer),innerActive:n.innerActive,inner:n.innerActive&&e.copyState(n.innerActive.mode,n.inner)}},token:function(i,o){if(o.innerActive){var l=o.innerActive;if(c=i.string,!l.close&&i.sol())return o.innerActive=o.inner=null,this.token(i,o);if((f=l.close?n(c,l.close,i.pos,l.parseDelimiters):-1)==i.pos&&!l.parseDelimiters)return i.match(l.close),o.innerActive=o.inner=null,l.delimStyle&&l.delimStyle+" "+l.delimStyle+"-close";-1<f&&(i.string=c.slice(0,f));var a=l.mode.token(i,o.inner);return-1<f&&(i.string=c),f==i.pos&&l.parseDelimiters&&(o.innerActive=o.inner=null),l.innerStyle&&(a=a?a+" "+l.innerStyle:l.innerStyle),a}for(var s=1/0,c=i.string,u=0;u<r.length;++u){var f,h=r[u];if((f=n(c,h.open,i.pos))==i.pos){h.parseDelimiters||i.match(h.open),o.innerActive=h;var d=0;if(t.indent){var p=t.indent(o.outer,"");p!==e.Pass&&(d=p)}return o.inner=e.startState(h.mode,d),h.delimStyle&&h.delimStyle+" "+h.delimStyle+"-open"}-1!=f&&f<s&&(s=f)}s!=1/0&&(i.string=c.slice(0,s));var m=t.token(i,o.outer);return s!=1/0&&(i.string=c),m},indent:function(n,r){var i=n.innerActive?n.innerActive.mode:t;return i.indent?i.indent(n.innerActive?n.inner:n.outer,r):e.Pass},blankLine:function(n){var i=n.innerActive?n.innerActive.mode:t;if(i.blankLine&&i.blankLine(n.innerActive?n.inner:n.outer),n.innerActive)"\n"===n.innerActive.close&&(n.innerActive=n.inner=null);else for(var o=0;o<r.length;++o){var l=r[o];"\n"===l.open&&(n.innerActive=l,n.inner=e.startState(l.mode,i.indent?i.indent(n.outer,""):0))}},electricChars:t.electricChars,innerMode:function(e){return e.inner?{state:e.inner,mode:e.innerActive.mode}:{state:e.outer,mode:t}}}}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../dialog/dialog")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../dialog/dialog"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0}):i(prompt(n,r))}function n(e,t){var n=Number(t);return/^[-+]/.test(t)?e.getCursor().line+n:n-1}e.commands.jumpToLine=function(e){var r=e.getCursor();t(e,'Jump to line: <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use line:column or scroll% syntax)</span>',"Jump to line:",r.line+1+":"+r.ch,function(t){if(t){var i;if(i=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(t))e.setCursor(n(e,i[1]),Number(i[2]));else if(i=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(t)){var o=Math.round(e.lineCount()*Number(i[1])/100);/^[-+]/.test(i[1])&&(o=r.line+o+1),e.setCursor(o-1,r.ch)}else(i=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(t))&&e.setCursor(n(e,i[1]),r.ch)}})},e.keyMap.default["Alt-G"]="jumpToLine"}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("./searchcursor"),require("../scroll/annotatescrollbar")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","./searchcursor","../scroll/annotatescrollbar"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t,n,r){this.cm=e,this.options=r;var i={listenForChanges:!1};for(var o in r)i[o]=r[o];i.className||(i.className="CodeMirror-search-match"),this.annotation=e.annotateScrollbar(i),
this.query=t,this.caseFold=n,this.gap={from:e.firstLine(),to:e.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var l=this;e.on("change",this.changeHandler=function(e,t){l.onChange(t)})}function n(e,t,n){return t>=e?e:Math.max(t,e+n)}e.defineExtension("showMatchesOnScrollbar",function(e,n,r){return"string"==typeof r&&(r={className:r}),r||(r={}),new t(this,e,n,r)});t.prototype.findMatches=function(){if(this.gap){for(var t=0;t<this.matches.length;t++){var n=this.matches[t];if(n.from.line>=this.gap.to)break;n.to.line>=this.gap.from&&this.matches.splice(t--,1)}for(var r=this.cm.getSearchCursor(this.query,e.Pos(this.gap.from,0),this.caseFold),i=this.options&&this.options.maxMatches||1e3;r.findNext();){var n={from:r.from(),to:r.to()};if(n.from.line>=this.gap.to)break;if(this.matches.splice(t++,0,n),this.matches.length>i)break}this.gap=null}},t.prototype.onChange=function(t){var r=t.from.line,i=e.changeEnd(t).line,o=i-t.to.line;if(this.gap?(this.gap.from=Math.min(n(this.gap.from,r,o),t.from.line),this.gap.to=Math.max(n(this.gap.to,r,o),t.from.line)):this.gap={from:t.from.line,to:i+1},o)for(var l=0;l<this.matches.length;l++){var a=this.matches[l],s=n(a.from.line,r,o);s!=a.from.line&&(a.from=e.Pos(s,a.from.ch));var c=n(a.to.line,r,o);c!=a.to.line&&(a.to=e.Pos(c,a.to.ch))}clearTimeout(this.update);var u=this;this.update=setTimeout(function(){u.updateAfterChange()},250)},t.prototype.updateAfterChange=function(){this.findMatches(),this.annotation.update(this.matches)},t.prototype.clear=function(){this.cm.off("change",this.changeHandler),this.annotation.clear()}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("./matchesonscrollbar")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","./matchesonscrollbar"],e):e(CodeMirror)}(function(e){"use strict";function t(e){this.options={};for(var t in f)this.options[t]=(e&&e.hasOwnProperty(t)?e:f)[t];this.overlay=this.timeout=null,this.matchesonscroll=null,this.active=!1}function n(e){var t=e.state.matchHighlighter;(t.active||e.hasFocus())&&i(e,t)}function r(e){var t=e.state.matchHighlighter;t.active||(t.active=!0,i(e,t))}function i(e,t){clearTimeout(t.timeout),t.timeout=setTimeout(function(){a(e)},t.options.delay)}function o(e,t,n,r){var i=e.state.matchHighlighter;if(e.addOverlay(i.overlay=u(t,n,r)),i.options.annotateScrollbar&&e.showMatchesOnScrollbar){var o=n?new RegExp("\\b"+t+"\\b"):t;i.matchesonscroll=e.showMatchesOnScrollbar(o,!1,{className:"CodeMirror-selection-highlight-scrollbar"})}}function l(e){var t=e.state.matchHighlighter;t.overlay&&(e.removeOverlay(t.overlay),t.overlay=null,t.matchesonscroll&&(t.matchesonscroll.clear(),t.matchesonscroll=null))}function a(e){e.operation(function(){var t=e.state.matchHighlighter;if(l(e),!e.somethingSelected()&&t.options.showToken){for(var n=t.options.showToken===!0?/[\w$]/:t.options.showToken,r=e.getCursor(),i=e.getLine(r.line),a=r.ch,c=a;a&&n.test(i.charAt(a-1));)--a;for(;c<i.length&&n.test(i.charAt(c));)++c;return void(c>a&&o(e,i.slice(a,c),n,t.options.style))}var u=e.getCursor("from"),f=e.getCursor("to");if(u.line==f.line&&(!t.options.wordsOnly||s(e,u,f))){var h=e.getRange(u,f);t.options.trim&&(h=h.replace(/^\s+|\s+$/g,"")),h.length>=t.options.minChars&&o(e,h,!1,t.options.style)}})}function s(e,t,n){if(null!==e.getRange(t,n).match(/^\w+$/)){if(t.ch>0){var r={line:t.line,ch:t.ch-1},i=e.getRange(r,t);if(null===i.match(/\W/))return!1}if(n.ch<e.getLine(t.line).length){var r={line:n.line,ch:n.ch+1},i=e.getRange(n,r);if(null===i.match(/\W/))return!1}return!0}return!1}function c(e,t){return!(e.start&&t.test(e.string.charAt(e.start-1))||e.pos!=e.string.length&&t.test(e.string.charAt(e.pos)))}function u(e,t,n){return{token:function(r){return!r.match(e)||t&&!c(r,t)?(r.next(),void(r.skipTo(e.charAt(0))||r.skipToEnd())):n}}}var f={style:"matchhighlight",minChars:2,delay:100,wordsOnly:!1,annotateScrollbar:!1,showToken:!1,trim:!0};e.defineOption("highlightSelectionMatches",!1,function(i,o,s){if(s&&s!=e.Init&&(l(i),clearTimeout(i.state.matchHighlighter.timeout),i.state.matchHighlighter=null,i.off("cursorActivity",n),i.off("focus",r)),o){var c=i.state.matchHighlighter=new t(o);i.hasFocus()?(c.active=!0,a(i)):i.on("focus",r),i.on("cursorActivity",n)}})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t){function n(e){clearTimeout(r.doRedraw),r.doRedraw=setTimeout(function(){r.redraw()},e)}this.cm=e,this.options=t,this.buttonHeight=t.scrollButtonHeight||e.getOption("scrollButtonHeight"),this.annotations=[],this.doRedraw=this.doUpdate=null,this.div=e.getWrapperElement().appendChild(document.createElement("div")),this.div.style.cssText="position: absolute; right: 0; top: 0; z-index: 7; pointer-events: none",this.computeScale();var r=this;e.on("refresh",this.resizeHandler=function(){clearTimeout(r.doUpdate),r.doUpdate=setTimeout(function(){r.computeScale()&&n(20)},100)}),e.on("markerAdded",this.resizeHandler),e.on("markerCleared",this.resizeHandler),t.listenForChanges!==!1&&e.on("change",this.changeHandler=function(){n(250)})}e.defineExtension("annotateScrollbar",function(e){return"string"==typeof e&&(e={className:e}),new t(this,e)}),e.defineOption("scrollButtonHeight",0),t.prototype.computeScale=function(){var e=this.cm,t=(e.getWrapperElement().clientHeight-e.display.barHeight-2*this.buttonHeight)/e.getScrollerElement().scrollHeight;return t!=this.hScale?(this.hScale=t,!0):void 0},t.prototype.update=function(e){this.annotations=e,this.redraw()},t.prototype.redraw=function(e){function t(e,t){return s!=e.line&&(s=e.line,c=n.getLineHandle(s)),c.widgets&&c.widgets.length||l&&c.height>a?n.charCoords(e,"local")[t?"top":"bottom"]:n.heightAtLine(c,"local")+(t?0:c.height)}e!==!1&&this.computeScale();var n=this.cm,r=this.hScale,i=document.createDocumentFragment(),o=this.annotations,l=n.getOption("lineWrapping"),a=l&&1.5*n.defaultTextHeight(),s=null,c=null,u=n.lastLine();if(n.display.barWidth)for(var f,h=0;h<o.length;h++){var d=o[h];if(!(d.to.line>u)){for(var p=f||t(d.from,!0)*r,m=t(d.to,!1)*r;h<o.length-1&&!(o[h+1].to.line>u)&&!((f=t(o[h+1].from,!0)*r)>m+.9);)d=o[++h],m=t(d.to,!1)*r;if(m!=p){var g=Math.max(m-p,3),v=i.appendChild(document.createElement("div"));v.style.cssText="position: absolute; right: 0px; width: "+Math.max(n.display.barWidth-1,2)+"px; top: "+(p+this.buttonHeight)+"px; height: "+g+"px",v.className=this.options.className,d.id&&v.setAttribute("annotation-id",d.id)}}}this.div.textContent="",this.div.appendChild(i)},t.prototype.clear=function(){this.cm.off("refresh",this.resizeHandler),this.cm.off("markerAdded",this.resizeHandler),this.cm.off("markerCleared",this.resizeHandler),this.changeHandler&&this.cm.off("change",this.changeHandler),this.div.parentNode.removeChild(this.div)}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../lib/codemirror"),require("../addon/search/searchcursor"),require("../addon/edit/matchbrackets")):"function"==typeof define&&define.amd?define(["../lib/codemirror","../addon/search/searchcursor","../addon/edit/matchbrackets"],e):e(CodeMirror)}(function(e){"use strict";function t(t,n,r){if(0>r&&0==n.ch)return t.clipPos(h(n.line-1));var i=t.getLine(n.line);if(r>0&&n.ch>=i.length)return t.clipPos(h(n.line+1,0));for(var o,l="start",a=n.ch,s=0>r?0:i.length,c=0;a!=s;a+=r,c++){var u=i.charAt(0>r?a-1:a),f="_"!=u&&e.isWordChar(u)?"w":"o";if("w"==f&&u.toUpperCase()==u&&(f="W"),"start"==l)"o"!=f&&(l="in",o=f);else if("in"==l&&o!=f){if("w"==o&&"W"==f&&0>r&&a--,"W"==o&&"w"==f&&r>0){o="w";continue}break}}return h(n.line,a)}function n(e,n){e.extendSelectionsBy(function(r){return e.display.shift||e.doc.extend||r.empty()?t(e.doc,r.head,n):0>n?r.from():r.to()})}function r(t,n){for(var r=n.ch,i=r,o=t.getLine(n.line);r&&e.isWordChar(o.charAt(r-1));)--r;for(;i<o.length&&e.isWordChar(o.charAt(i));)++i;return{from:h(n.line,r),to:h(n.line,i),word:o.slice(r,i)}}function i(e,t,n){for(var r=0;r<e.length;r++)if(e[r].from()==t&&e[r].to()==n)return!0;return!1}function o(e){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++){var i=t[r],o=i.head,l=e.scanForBracket(o,-1);if(!l)return!1;for(;;){var a=e.scanForBracket(o,1);if(!a)return!1;if(a.ch==v.charAt(v.indexOf(l.ch)+1)){n.push({anchor:h(l.pos.line,l.pos.ch+1),head:a.pos});break}o=h(a.pos.line,a.pos.ch+1)}}return e.setSelections(n),!0}function l(t,n){if(t.isReadOnly())return e.Pass;for(var r,i=t.listSelections(),o=[],l=0;l<i.length;l++){var a=i[l];if(!a.empty()){for(var s=a.from().line,c=a.to().line;l<i.length-1&&i[l+1].from().line==c;)c=i[++l].to().line;i[l].to().ch||c--,o.push(s,c)}}o.length?r=!0:o.push(t.firstLine(),t.lastLine()),t.operation(function(){for(var e=[],i=0;i<o.length;i+=2){var l=o[i],a=o[i+1],s=h(l,0),c=h(a),u=t.getRange(s,c,!1);n?u.sort():u.sort(function(e,t){var n=e.toUpperCase(),r=t.toUpperCase();return n!=r&&(e=n,t=r),t>e?-1:e==t?0:1}),t.replaceRange(u,s,c),r&&e.push({anchor:s,head:h(a+1,0)})}r&&t.setSelections(e,0)})}function a(t,n){t.operation(function(){for(var i=t.listSelections(),o=[],l=[],a=0;a<i.length;a++){var s=i[a];s.empty()?(o.push(a),l.push("")):l.push(n(t.getRange(s.from(),s.to())))}t.replaceSelections(l,"around","case");for(var c,a=o.length-1;a>=0;a--){var s=i[o[a]];if(!(c&&e.cmpPos(s.head,c)>0)){var u=r(t,s.head);c=u.from,t.replaceRange(n(u.word),u.from,u.to)}}})}function s(t){var n=t.getCursor("from"),i=t.getCursor("to");if(0==e.cmpPos(n,i)){var o=r(t,n);if(!o.word)return;n=o.from,i=o.to}return{from:n,to:i,query:t.getRange(n,i),word:o}}function c(e,t){var n=s(e);if(n){var r=n.query,i=e.getSearchCursor(r,t?n.to:n.from);(t?i.findNext():i.findPrevious())?e.setSelection(i.from(),i.to()):(i=e.getSearchCursor(r,t?h(e.firstLine(),0):e.clipPos(h(e.lastLine()))),(t?i.findNext():i.findPrevious())?e.setSelection(i.from(),i.to()):n.word&&e.setSelection(n.from,n.to))}}var u=e.keyMap.sublime={fallthrough:"default"},f=e.commands,h=e.Pos,d=e.keyMap.default==e.keyMap.macDefault,p=d?"Cmd-":"Ctrl-",m=d?"Ctrl-":"Alt-";f[u[m+"Left"]="goSubwordLeft"]=function(e){n(e,-1)},f[u[m+"Right"]="goSubwordRight"]=function(e){n(e,1)},d&&(u["Cmd-Left"]="goLineStartSmart");var g=d?"Ctrl-Alt-":"Ctrl-";f[u[g+"Up"]="scrollLineUp"]=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top+t.clientHeight,"local");e.getCursor().line>=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},f[u[g+"Down"]="scrollLineDown"]=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},f[u["Shift-"+p+"L"]="splitSelectionByLine"]=function(e){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)for(var i=t[r].from(),o=t[r].to(),l=i.line;l<=o.line;++l)o.line>i.line&&l==o.line&&0==o.ch||n.push({anchor:l==i.line?i:h(l,0),head:l==o.line?o:h(l)});e.setSelections(n,0)},u["Shift-Tab"]="indentLess",f[u.Esc="singleSelectionTop"]=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},f[u[p+"L"]="selectLine"]=function(e){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++){var i=t[r];n.push({anchor:h(i.from().line,0),head:h(i.to().line+1,0)})}e.setSelections(n)},u["Shift-Ctrl-K"]="deleteLine",f[u[p+"D"]="selectNextOccurrence"]=function(t){var n=t.getCursor("from"),o=t.getCursor("to"),l=t.state.sublimeFindFullWord==t.doc.sel;if(0==e.cmpPos(n,o)){var a=r(t,n);if(!a.word)return;t.setSelection(a.from,a.to),l=!0}else{var s=t.getRange(n,o),c=l?new RegExp("\\b"+s+"\\b"):s,u=t.getSearchCursor(c,o),f=u.findNext();if(f||(u=t.getSearchCursor(c,h(t.firstLine(),0)),f=u.findNext()),!f||i(t.listSelections(),u.from(),u.to()))return e.Pass;t.addSelection(u.from(),u.to())}l&&(t.state.sublimeFindFullWord=t.doc.sel)};var v="(){}[]";f[u["Shift-"+p+"Space"]="selectScope"]=function(e){o(e)||e.execCommand("selectAll")},f[u["Shift-"+p+"M"]="selectBetweenBrackets"]=function(t){return o(t)?void 0:e.Pass},f[u[p+"M"]="goToBracket"]=function(t){t.extendSelectionsBy(function(n){var r=t.scanForBracket(n.head,1);if(r&&0!=e.cmpPos(r.pos,n.head))return r.pos;var i=t.scanForBracket(n.head,-1);return i&&h(i.pos.line,i.pos.ch+1)||n.head})};var y=d?"Cmd-Ctrl-":"Shift-Ctrl-";f[u[y+"Up"]="swapLineUp"]=function(t){if(t.isReadOnly())return e.Pass;for(var n=t.listSelections(),r=[],i=t.firstLine()-1,o=[],l=0;l<n.length;l++){var a=n[l],s=a.from().line-1,c=a.to().line;o.push({anchor:h(a.anchor.line-1,a.anchor.ch),head:h(a.head.line-1,a.head.ch)}),0!=a.to().ch||a.empty()||--c,s>i?r.push(s,c):r.length&&(r[r.length-1]=c),i=c}t.operation(function(){for(var e=0;e<r.length;e+=2){var n=r[e],i=r[e+1],l=t.getLine(n);t.replaceRange("",h(n,0),h(n+1,0),"+swapLine"),i>t.lastLine()?t.replaceRange("\n"+l,h(t.lastLine()),null,"+swapLine"):t.replaceRange(l+"\n",h(i,0),null,"+swapLine")}t.setSelections(o),t.scrollIntoView()})},f[u[y+"Down"]="swapLineDown"]=function(t){if(t.isReadOnly())return e.Pass;for(var n=t.listSelections(),r=[],i=t.lastLine()+1,o=n.length-1;o>=0;o--){var l=n[o],a=l.to().line+1,s=l.from().line;0!=l.to().ch||l.empty()||a--,i>a?r.push(a,s):r.length&&(r[r.length-1]=s),i=s}t.operation(function(){for(var e=r.length-2;e>=0;e-=2){var n=r[e],i=r[e+1],o=t.getLine(n);n==t.lastLine()?t.replaceRange("",h(n-1),h(n),"+swapLine"):t.replaceRange("",h(n,0),h(n+1,0),"+swapLine"),t.replaceRange(o+"\n",h(i,0),null,"+swapLine")}t.scrollIntoView()})},f[u[p+"/"]="toggleCommentIndented"]=function(e){e.toggleComment({indent:!0})},f[u[p+"J"]="joinLines"]=function(e){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++){for(var i=t[r],o=i.from(),l=o.line,a=i.to().line;r<t.length-1&&t[r+1].from().line==a;)a=t[++r].to().line;n.push({start:l,end:a,anchor:!i.empty()&&o})}e.operation(function(){for(var t=0,r=[],i=0;i<n.length;i++){for(var o,l=n[i],a=l.anchor&&h(l.anchor.line-t,l.anchor.ch),s=l.start;s<=l.end;s++){var c=s-t;s==l.end&&(o=h(c,e.getLine(c).length+1)),c<e.lastLine()&&(e.replaceRange(" ",h(c),h(c+1,/^\s*/.exec(e.getLine(c+1))[0].length)),++t)}r.push({anchor:a||o,head:o})}e.setSelections(r,0)})},f[u["Shift-"+p+"D"]="duplicateLine"]=function(e){e.operation(function(){for(var t=e.listSelections().length,n=0;t>n;n++){var r=e.listSelections()[n];r.empty()?e.replaceRange(e.getLine(r.head.line)+"\n",h(r.head.line,0)):e.replaceRange(e.getRange(r.from(),r.to()),r.from())}e.scrollIntoView()})},d||(u[p+"T"]="transposeChars"),f[u.F9="sortLines"]=function(e){l(e,!0)},f[u[p+"F9"]="sortLinesInsensitive"]=function(e){l(e,!1)},f[u.F2="nextBookmark"]=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){var n=t.shift(),r=n.find();if(r)return t.push(n),e.setSelection(r.from,r.to)}},f[u["Shift-F2"]="prevBookmark"]=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){t.unshift(t.pop());var n=t[t.length-1].find();if(n)return e.setSelection(n.from,n.to);t.pop()}},f[u[p+"F2"]="toggleBookmark"]=function(e){for(var t=e.listSelections(),n=e.state.sublimeBookmarks||(e.state.sublimeBookmarks=[]),r=0;r<t.length;r++){for(var i=t[r].from(),o=t[r].to(),l=e.findMarks(i,o),a=0;a<l.length;a++)if(l[a].sublimeBookmark){l[a].clear();for(var s=0;s<n.length;s++)n[s]==l[a]&&n.splice(s--,1);break}a==l.length&&n.push(e.markText(i,o,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},f[u["Shift-"+p+"F2"]="clearBookmarks"]=function(e){var t=e.state.sublimeBookmarks;if(t)for(var n=0;n<t.length;n++)t[n].clear();t.length=0},f[u["Alt-F2"]="selectBookmarks"]=function(e){var t=e.state.sublimeBookmarks,n=[];if(t)for(var r=0;r<t.length;r++){var i=t[r].find();i?n.push({anchor:i.from,head:i.to}):t.splice(r--,0)}n.length&&e.setSelections(n,0)},u["Alt-Q"]="wrapLines";var x=p+"K ";u[x+p+"Backspace"]="delLineLeft",f[u.Backspace="smartBackspace"]=function(t){return t.somethingSelected()?e.Pass:void t.operation(function(){for(var n=t.listSelections(),r=t.getOption("indentUnit"),i=n.length-1;i>=0;i--){var o=n[i].head,l=t.getRange({line:o.line,ch:0},o),a=e.countColumn(l,null,t.getOption("tabSize")),s=t.findPosH(o,-1,"char",!1);if(l&&!/\S/.test(l)&&a%r==0){var c=new h(o.line,e.findColumn(l,a-r,r));c.ch!=o.ch&&(s=c)}t.replaceRange("",s,o,"+delete")}})},f[u[x+p+"K"]="delLineRight"]=function(e){e.operation(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange("",t[n].anchor,h(t[n].to().line),"+delete");e.scrollIntoView()})},f[u[x+p+"U"]="upcaseAtCursor"]=function(e){a(e,function(e){return e.toUpperCase()})},f[u[x+p+"L"]="downcaseAtCursor"]=function(e){a(e,function(e){return e.toLowerCase()})},f[u[x+p+"Space"]="setSublimeMark"]=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},f[u[x+p+"A"]="selectToSublimeMark"]=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},f[u[x+p+"W"]="deleteToSublimeMark"]=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var r=t.getCursor(),i=n;if(e.cmpPos(r,i)>0){var o=i;i=r,r=o}t.state.sublimeKilled=t.getRange(r,i),t.replaceRange("",r,i)}},f[u[x+p+"X"]="swapWithSublimeMark"]=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},f[u[x+p+"Y"]="sublimeYank"]=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},u[x+p+"G"]="clearBookmarks",f[u[x+p+"C"]="showInCenter"]=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)};var b=d?"Ctrl-Shift-":"Ctrl-Alt-";f[u[b+"Up"]="selectLinesUpward"]=function(e){e.operation(function(){for(var t=e.listSelections(),n=0;n<t.length;n++){var r=t[n];r.head.line>e.firstLine()&&e.addSelection(h(r.head.line-1,r.head.ch))}})},f[u[b+"Down"]="selectLinesDownward"]=function(e){e.operation(function(){for(var t=e.listSelections(),n=0;n<t.length;n++){var r=t[n];r.head.line<e.lastLine()&&e.addSelection(h(r.head.line+1,r.head.ch))}})},f[u[p+"F3"]="findUnder"]=function(e){c(e,!0)},f[u["Shift-"+p+"F3"]="findUnderPrevious"]=function(e){c(e,!1)},f[u["Alt-F3"]="findAllUnder"]=function(e){var t=s(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],i=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&i++;e.setSelections(r,i)}},u["Shift-"+p+"["]="fold",u["Shift-"+p+"]"]="unfold",u[x+p+"0"]=u[x+p+"J"]="unfoldAll",u[p+"I"]="findIncremental",u["Shift-"+p+"I"]="findIncrementalReverse",u[p+"H"]="replace",u.F3="findNext",u["Shift-F3"]="findPrev",e.normalizeKeyMap(u)}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){function t(e,t,r){var i=e.getLineHandle(t.line),o=t.ch-1,s=r&&r.afterCursor;null==s&&(s=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var c=!s&&o>=0&&a[i.text.charAt(o)]||a[i.text.charAt(++o)];if(!c)return null;var u=">"==c.charAt(1)?1:-1;if(r&&r.strict&&u>0!=(o==t.ch))return null;var f=e.getTokenTypeAt(l(t.line,o+1)),h=n(e,l(t.line,o+(u>0?1:0)),u,f||null,r);return null==h?null:{from:l(t.line,o),to:h&&h.pos,match:h&&h.ch==c.charAt(0),forward:u>0}}function n(e,t,n,r,i){for(var o=i&&i.maxScanLineLength||1e4,s=i&&i.maxScanLines||1e3,c=[],u=i&&i.bracketRegex?i.bracketRegex:/[(){}[\]]/,f=n>0?Math.min(t.line+s,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-s),h=t.line;h!=f;h+=n){var d=e.getLine(h);if(d){var p=n>0?0:d.length-1,m=n>0?d.length:-1;if(!(d.length>o))for(h==t.line&&(p=t.ch-(0>n?1:0));p!=m;p+=n){var g=d.charAt(p);if(u.test(g)&&(void 0===r||e.getTokenTypeAt(l(h,p+1))==r)){var v=a[g];if(">"==v.charAt(1)==n>0)c.push(g);else{if(!c.length)return{pos:l(h,p),ch:g};c.pop()}}}}}return h-n!=(n>0?e.lastLine():e.firstLine())&&null}function r(e,n,r){for(var i=e.state.matchBrackets.maxHighlightLineLength||1e3,a=[],s=e.listSelections(),c=0;c<s.length;c++){var u=s[c].empty()&&t(e,s[c].head,r);if(u&&e.getLine(u.from.line).length<=i){var f=u.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";a.push(e.markText(u.from,l(u.from.line,u.from.ch+1),{className:f})),u.to&&e.getLine(u.to.line).length<=i&&a.push(e.markText(u.to,l(u.to.line,u.to.ch+1),{className:f}))}}if(a.length){o&&e.state.focused&&e.focus();var h=function(){e.operation(function(){for(var e=0;e<a.length;e++)a[e].clear()})};if(!n)return h;setTimeout(h,800)}}function i(e){e.operation(function(){s&&(s(),s=null),s=r(e,!1,e.state.matchBrackets)})}var o=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),l=e.Pos,a={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<"},s=null;e.defineOption("matchBrackets",!1,function(t,n,r){r&&r!=e.Init&&(t.off("cursorActivity",i),s&&(s(),s=null)),n&&(t.state.matchBrackets="object"==typeof n?n:{},t.on("cursorActivity",i))}),e.defineExtension("matchBrackets",function(){r(this,!0)}),e.defineExtension("findMatchingBracket",function(e,n,r){return(r||"boolean"==typeof n)&&(r?(r.strict=n,n=r):n=n?{strict:!0}:null),t(this,e,n)}),e.defineExtension("scanForBracket",function(e,t,r,i){return n(this,e,t,r,i)})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){function t(e,t){return"pairs"==t&&"string"==typeof e?e:"object"==typeof e&&null!=e[t]?e[t]:h[t]}function n(e){for(var t=0;t<e.length;t++){var n=e.charAt(t),i="'"+n+"'";p[i]||(p[i]=r(n))}}function r(e){return function(t){return s(t,e)}}function i(e){var t=e.state.closeBrackets;return!t||t.override?t:e.getModeAt(e.getCursor()).closeBrackets||t}function o(n){var r=i(n);if(!r||n.getOption("disableInput"))return e.Pass;for(var o=t(r,"pairs"),l=n.listSelections(),a=0;a<l.length;a++){if(!l[a].empty())return e.Pass;var s=u(n,l[a].head);if(!s||o.indexOf(s)%2!=0)return e.Pass}for(var a=l.length-1;a>=0;a--){var c=l[a].head;n.replaceRange("",d(c.line,c.ch-1),d(c.line,c.ch+1),"+delete")}}function l(n){var r=i(n),o=r&&t(r,"explode");if(!o||n.getOption("disableInput"))return e.Pass;for(var l=n.listSelections(),a=0;a<l.length;a++){if(!l[a].empty())return e.Pass;var s=u(n,l[a].head);if(!s||o.indexOf(s)%2!=0)return e.Pass}n.operation(function(){var e=n.lineSeparator()||"\n";n.replaceSelection(e+e,null),n.execCommand("goCharLeft"),l=n.listSelections();for(var t=0;t<l.length;t++){var r=l[t].head.line;n.indentLine(r,null,!0),n.indentLine(r+1,null,!0)}})}function a(t){var n=e.cmpPos(t.anchor,t.head)>0;return{anchor:new d(t.anchor.line,t.anchor.ch+(n?-1:1)),head:new d(t.head.line,t.head.ch+(n?1:-1))}}function s(n,r){var o=i(n);if(!o||n.getOption("disableInput"))return e.Pass;var l=t(o,"pairs"),s=l.indexOf(r);if(-1==s)return e.Pass;for(var u,h=t(o,"triples"),p=l.charAt(s+1)==r,m=n.listSelections(),g=s%2==0,v=0;v<m.length;v++){var y,x=m[v],b=x.head,C=n.getRange(b,d(b.line,b.ch+1));if(g&&!x.empty())y="surround";else if(!p&&g||C!=r)if(p&&b.ch>1&&h.indexOf(r)>=0&&n.getRange(d(b.line,b.ch-2),b)==r+r&&(b.ch<=2||n.getRange(d(b.line,b.ch-3),d(b.line,b.ch-2))!=r))y="addFour";else if(p){var w=0==b.ch?" ":n.getRange(d(b.line,b.ch-1),b);if(e.isWordChar(C)||w==r||e.isWordChar(w))return e.Pass;y="both"}else{if(!g||n.getLine(b.line).length!=b.ch&&!c(C,l)&&!/\s/.test(C))return e.Pass;y="both"}else y=p&&f(n,b)?"both":h.indexOf(r)>=0&&n.getRange(b,d(b.line,b.ch+3))==r+r+r?"skipThree":"skip";if(u){if(u!=y)return e.Pass}else u=y}var k=s%2?l.charAt(s-1):r,S=s%2?r:l.charAt(s+1);n.operation(function(){if("skip"==u)n.execCommand("goCharRight");else if("skipThree"==u)for(var e=0;3>e;e++)n.execCommand("goCharRight");else if("surround"==u){for(var t=n.getSelections(),e=0;e<t.length;e++)t[e]=k+t[e]+S;n.replaceSelections(t,"around"),t=n.listSelections().slice();for(var e=0;e<t.length;e++)t[e]=a(t[e]);n.setSelections(t)}else"both"==u?(n.replaceSelection(k+S,null),n.triggerElectric(k+S),n.execCommand("goCharLeft")):"addFour"==u&&(n.replaceSelection(k+k+k+k,"before"),n.execCommand("goCharRight"))})}function c(e,t){var n=t.lastIndexOf(e);return n>-1&&n%2==1}function u(e,t){var n=e.getRange(d(t.line,t.ch-1),d(t.line,t.ch+1));return 2==n.length?n:null}function f(e,t){var n=e.getTokenAt(d(t.line,t.ch+1));return/\bstring/.test(n.type)&&n.start==t.ch&&(0==t.ch||!/\bstring/.test(e.getTokenTypeAt(t)))}var h={pairs:"()[]{}''\"\"",triples:"",explode:"[]{}"},d=e.Pos;e.defineOption("autoCloseBrackets",!1,function(r,i,o){o&&o!=e.Init&&(r.removeKeyMap(p),r.state.closeBrackets=null),i&&(n(t(i,"pairs")),r.state.closeBrackets=i,r.addKeyMap(p))});var p={Backspace:o,Enter:l};n(h.pairs+"`")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.registerHelper("fold","brace",function(t,n){function r(r){for(var a=n.ch,s=0;;){var c=0>=a?-1:l.lastIndexOf(r,a-1);if(-1!=c){if(1==s&&c<n.ch)break;if(i=t.getTokenTypeAt(e.Pos(o,c+1)),!/^(comment|string)/.test(i))return c+1;a=c-1}else{if(1==s)break;s=1,a=l.length}}}var i,o=n.line,l=t.getLine(o),a="{",s="}",c=r("{");if(null==c&&(a="[",s="]",c=r("[")),null!=c){var u,f,h=1,d=t.lastLine();e:for(var p=o;d>=p;++p)for(var m=t.getLine(p),g=p==o?c:0;;){var v=m.indexOf(a,g),y=m.indexOf(s,g);if(0>v&&(v=m.length),0>y&&(y=m.length),(g=Math.min(v,y))==m.length)break;if(t.getTokenTypeAt(e.Pos(p,g+1))==i)if(g==v)++h;else if(!--h){u=p,f=g;break e}++g}if(null!=u&&(o!=u||f!=c))return{from:e.Pos(o,c),to:e.Pos(u,f)}}}),e.registerHelper("fold","import",function(t,n){function r(n){if(n<t.firstLine()||n>t.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));if(/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"keyword"!=r.type||"import"!=r.string)return null;for(var i=n,o=Math.min(t.lastLine(),n+10);o>=i;++i){var l=t.getLine(i),a=l.indexOf(";");if(-1!=a)return{startCh:r.end,end:e.Pos(i,a)}}}var i,o=n.line,l=r(o);if(!l||r(o-1)||(i=r(o-2))&&i.end.line==o-1)return null;for(var a=l.end;;){var s=r(a.line+1);if(null==s)break;a=s.end}return{from:t.clipPos(e.Pos(o,l.startCh+1)),to:a}}),e.registerHelper("fold","include",function(t,n){function r(n){if(n<t.firstLine()||n>t.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));return/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"meta"==r.type&&"#include"==r.string.slice(0,8)?r.start+8:void 0}var i=n.line,o=r(i);if(null==o||null!=r(i-1))return null;for(var l=i;;){if(null==r(l+1))break;++l}return{from:e.Pos(i,o+1),to:t.clipPos(e.Pos(l))}})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.registerGlobalHelper("fold","comment",function(e){return e.blockCommentStart&&e.blockCommentEnd},function(t,n){var r=t.getModeAt(n),i=r.blockCommentStart,o=r.blockCommentEnd;if(i&&o){for(var l,a=n.line,s=t.getLine(a),c=n.ch,u=0;;){var f=0>=c?-1:s.lastIndexOf(i,c-1);if(-1!=f){if(1==u&&f<n.ch)return;if(/comment/.test(t.getTokenTypeAt(e.Pos(a,f+1)))&&(0==f||s.slice(f-o.length,f)==o||!/comment/.test(t.getTokenTypeAt(e.Pos(a,f))))){l=f+i.length;break}c=f-1}else{if(1==u)return;u=1,c=s.length}}var h,d,p=1,m=t.lastLine();e:for(var g=a;m>=g;++g)for(var v=t.getLine(g),y=g==a?l:0;;){var x=v.indexOf(i,y),b=v.indexOf(o,y);if(0>x&&(x=v.length),0>b&&(b=v.length),(y=Math.min(x,b))==v.length)break;if(y==x)++p;else if(!--p){h=g,d=y;break e}++y}if(null!=h&&(a!=h||d!=l))return{from:e.Pos(a,l),to:e.Pos(h,d)}}})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(t,i,o,l){function a(e){var n=s(t,i);if(!n||n.to.line-n.from.line<c)return null;for(var r=t.findMarksAt(n.from),o=0;o<r.length;++o)if(r[o].__isFold&&"fold"!==l){if(!e)return null;n.cleared=!0,r[o].clear()}return n}if(o&&o.call){var s=o;o=null}else var s=r(t,o,"rangeFinder");"number"==typeof i&&(i=e.Pos(i,0));var c=r(t,o,"minFoldSize"),u=a(!0);if(r(t,o,"scanUp"))for(;!u&&i.line>t.firstLine();)i=e.Pos(i.line-1,0),u=a(!1);if(u&&!u.cleared&&"unfold"!==l){var f=n(t,o);e.on(f,"mousedown",function(t){h.clear(),e.e_preventDefault(t)});var h=t.markText(u.from,u.to,{replacedWith:f,clearOnEnter:r(t,o,"clearOnEnter"),__isFold:!0});h.on("clear",function(n,r){e.signal(t,"unfold",t,n,r)}),e.signal(t,"fold",t,u.from,u.to)}}function n(e,t){var n=r(e,t,"widget");if("string"==typeof n){var i=document.createTextNode(n);n=document.createElement("span"),n.appendChild(i),n.className="CodeMirror-foldmarker"}else n&&(n=n.cloneNode(!0));return n}function r(e,t,n){if(t&&void 0!==t[n])return t[n];var r=e.options.foldOptions;return r&&void 0!==r[n]?r[n]:i[n]}e.newFoldFunction=function(e,n){return function(r,i){t(r,i,{rangeFinder:e,widget:n})}},e.defineExtension("foldCode",function(e,n,r){t(this,e,n,r)}),e.defineExtension("isFolded",function(e){for(var t=this.findMarksAt(e),n=0;n<t.length;++n)if(t[n].__isFold)return!0}),e.commands.toggleFold=function(e){e.foldCode(e.getCursor())},e.commands.fold=function(e){e.foldCode(e.getCursor(),null,"fold")},e.commands.unfold=function(e){e.foldCode(e.getCursor(),null,"unfold")},e.commands.foldAll=function(t){t.operation(function(){for(var n=t.firstLine(),r=t.lastLine();r>=n;n++)t.foldCode(e.Pos(n,0),null,"fold")})},e.commands.unfoldAll=function(t){t.operation(function(){for(var n=t.firstLine(),r=t.lastLine();r>=n;n++)t.foldCode(e.Pos(n,0),null,"unfold")})},e.registerHelper("fold","combine",function(){var e=Array.prototype.slice.call(arguments,0);return function(t,n){for(var r=0;r<e.length;++r){var i=e[r](t,n);if(i)return i}}}),e.registerHelper("fold","auto",function(e,t){for(var n=e.getHelpers(t,"fold"),r=0;r<n.length;r++){var i=n[r](e,t);if(i)return i}});var i={rangeFinder:e.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};e.defineOption("foldOptions",null),e.defineExtension("foldOption",function(e,t){return r(this,e,t)})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("./foldcode")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","./foldcode"],e):e(CodeMirror)}(function(e){"use strict";function t(e){this.options=e,this.from=this.to=0}function n(e){return e===!0&&(e={}),null==e.gutter&&(e.gutter="CodeMirror-foldgutter"),null==e.indicatorOpen&&(e.indicatorOpen="CodeMirror-foldgutter-open"),null==e.indicatorFolded&&(e.indicatorFolded="CodeMirror-foldgutter-folded"),e}function r(e,t){for(var n=e.findMarks(f(t,0),f(t+1,0)),r=0;r<n.length;++r)if(n[r].__isFold&&n[r].find().from.line==t)return n[r]}function i(e){if("string"==typeof e){var t=document.createElement("div");return t.className=e+" CodeMirror-guttermarker-subtle",t}return e.cloneNode(!0)}function o(e,t,n){var o=e.state.foldGutter.options,l=t,a=e.foldOption(o,"minFoldSize"),s=e.foldOption(o,"rangeFinder");e.eachLine(t,n,function(t){var n=null;if(r(e,l))n=i(o.indicatorFolded);else{var c=f(l,0),u=s&&s(e,c);u&&u.to.line-u.from.line>=a&&(n=i(o.indicatorOpen))}e.setGutterMarker(t,o.gutter,n),++l})}function l(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation(function(){o(e,t.from,t.to)}),n.from=t.from,n.to=t.to)}function a(e,t,n){var i=e.state.foldGutter;if(i){var o=i.options;if(n==o.gutter){var l=r(e,t);l?l.clear():e.foldCode(f(t,0),o.rangeFinder)}}}function s(e){var t=e.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){l(e)},n.foldOnChangeTimeSpan||600)}}function c(e){var t=e.state.foldGutter;if(t){var n=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){var n=e.getViewport();t.from==t.to||n.from-t.to>20||t.from-n.to>20?l(e):e.operation(function(){
n.from<t.from&&(o(e,n.from,t.from),t.from=n.from),n.to>t.to&&(o(e,t.to,n.to),t.to=n.to)})},n.updateViewportTimeSpan||400)}}function u(e,t){var n=e.state.foldGutter;if(n){var r=t.line;r>=n.from&&r<n.to&&o(e,r,r+1)}}e.defineOption("foldGutter",!1,function(r,i,o){o&&o!=e.Init&&(r.clearGutter(r.state.foldGutter.options.gutter),r.state.foldGutter=null,r.off("gutterClick",a),r.off("change",s),r.off("viewportChange",c),r.off("fold",u),r.off("unfold",u),r.off("swapDoc",s)),i&&(r.state.foldGutter=new t(n(i)),l(r),r.on("gutterClick",a),r.on("change",s),r.on("viewportChange",c),r.on("fold",u),r.on("unfold",u),r.on("swapDoc",s))});var f=e.Pos}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(t,n){var r=t.getLine(n),i=r.search(/\S/);return-1==i||/\bcomment\b/.test(t.getTokenTypeAt(e.Pos(n,i+1)))?-1:e.countColumn(r,null,t.getOption("tabSize"))}e.registerHelper("fold","indent",function(n,r){var i=t(n,r.line);if(!(0>i)){for(var o=null,l=r.line+1,a=n.lastLine();a>=l;++l){var s=t(n,l);if(-1==s);else{if(!(s>i))break;o=l}}return o?{from:e.Pos(r.line,n.getLine(r.line).length),to:e.Pos(o,n.getLine(o).length)}:void 0}})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.registerHelper("fold","markdown",function(t,n){function r(n){var r=t.getTokenTypeAt(e.Pos(n,0));return r&&/\bheader\b/.test(r)}function i(e,t,n){var i=t&&t.match(/^#+/);return i&&r(e)?i[0].length:(i=n&&n.match(/^[=\-]+\s*$/),i&&r(e+1)?"="==n[0]?1:2:o)}var o=100,l=t.getLine(n.line),a=t.getLine(n.line+1),s=i(n.line,l,a);if(s!==o){for(var c=t.lastLine(),u=n.line,f=t.getLine(u+2);c>u&&!(i(u+1,a,f)<=s);)++u,a=f,f=t.getLine(u+2);return{from:e.Pos(n.line,l.length),to:e.Pos(u,t.getLine(u).length)}}})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t){return e.line-t.line||e.ch-t.ch}function n(e,t,n,r){this.line=t,this.ch=n,this.cm=e,this.text=e.getLine(t),this.min=r?Math.max(r.from,e.firstLine()):e.firstLine(),this.max=r?Math.min(r.to-1,e.lastLine()):e.lastLine()}function r(e,t){var n=e.cm.getTokenTypeAt(h(e.line,t));return n&&/\btag\b/.test(n)}function i(e){return e.line>=e.max?void 0:(e.ch=0,e.text=e.cm.getLine(++e.line),!0)}function o(e){return e.line<=e.min?void 0:(e.text=e.cm.getLine(--e.line),e.ch=e.text.length,!0)}function l(e){for(;;){var t=e.text.indexOf(">",e.ch);if(-1==t){if(i(e))continue;return}if(r(e,t+1)){var n=e.text.lastIndexOf("/",t),o=n>-1&&!/\S/.test(e.text.slice(n+1,t));return e.ch=t+1,o?"selfClose":"regular"}e.ch=t+1}}function a(e){for(;;){var t=e.ch?e.text.lastIndexOf("<",e.ch-1):-1;if(-1==t){if(o(e))continue;return}if(r(e,t+1)){p.lastIndex=t,e.ch=t;var n=p.exec(e.text);if(n&&n.index==t)return n}else e.ch=t}}function s(e){for(;;){p.lastIndex=e.ch;var t=p.exec(e.text);if(!t){if(i(e))continue;return}if(r(e,t.index+1))return e.ch=t.index+t[0].length,t;e.ch=t.index+1}}function c(e){for(;;){var t=e.ch?e.text.lastIndexOf(">",e.ch-1):-1;if(-1==t){if(o(e))continue;return}if(r(e,t+1)){var n=e.text.lastIndexOf("/",t),i=n>-1&&!/\S/.test(e.text.slice(n+1,t));return e.ch=t+1,i?"selfClose":"regular"}e.ch=t}}function u(e,t){for(var n=[];;){var r,i=s(e),o=e.line,a=e.ch-(i?i[0].length:0);if(!i||!(r=l(e)))return;if("selfClose"!=r)if(i[1]){for(var c=n.length-1;c>=0;--c)if(n[c]==i[2]){n.length=c;break}if(0>c&&(!t||t==i[2]))return{tag:i[2],from:h(o,a),to:h(e.line,e.ch)}}else n.push(i[2])}}function f(e,t){for(var n=[];;){var r=c(e);if(!r)return;if("selfClose"!=r){var i=e.line,o=e.ch,l=a(e);if(!l)return;if(l[1])n.push(l[2]);else{for(var s=n.length-1;s>=0;--s)if(n[s]==l[2]){n.length=s;break}if(0>s&&(!t||t==l[2]))return{tag:l[2],from:h(e.line,e.ch),to:h(i,o)}}}else a(e)}}var h=e.Pos,d="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",p=new RegExp("<(/?)(["+d+"]["+d+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*)","g");e.registerHelper("fold","xml",function(e,t){for(var r=new n(e,t.line,0);;){var i,o=s(r);if(!o||r.line!=t.line||!(i=l(r)))return;if(!o[1]&&"selfClose"!=i){var a=h(r.line,r.ch),c=u(r,o[2]);return c&&{from:a,to:c.from}}}}),e.findMatchingTag=function(e,r,i){var o=new n(e,r.line,r.ch,i);if(-1!=o.text.indexOf(">")||-1!=o.text.indexOf("<")){var s=l(o),c=s&&h(o.line,o.ch),d=s&&a(o);if(s&&d&&!(t(o,r)>0)){var p={from:h(o.line,o.ch),to:c,tag:d[2]};return"selfClose"==s?{open:p,close:null,at:"open"}:d[1]?{open:f(o,d[2]),close:p,at:"close"}:(o=new n(e,c.line,c.ch,i),{open:p,close:u(o,d[2]),at:"open"})}}},e.findEnclosingTag=function(e,t,r,i){for(var o=new n(e,t.line,t.ch,r);;){var l=f(o,i);if(!l)break;var a=new n(e,t.line,t.ch,r),s=u(a,l.tag);if(s)return{open:l,close:s}}},e.scanForClosingTag=function(e,t,r,i){return u(new n(e,t.line,t.ch,i?{from:0,to:i}:null),r)}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t){this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length;var n=this;e.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}function n(e,t,n){var r=e.options.hintOptions,i={};for(var o in p)i[o]=p[o];if(r)for(var o in r)void 0!==r[o]&&(i[o]=r[o]);if(n)for(var o in n)void 0!==n[o]&&(i[o]=n[o]);return i.hint.resolve&&(i.hint=i.hint.resolve(e,t)),i}function r(e){return"string"==typeof e?e:e.text}function i(e,t){function n(e,n){var i;i="string"!=typeof n?function(e){return n(e,t)}:r.hasOwnProperty(n)?r[n]:n,o[e]=i}var r={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close},i=e.options.customKeys,o=i?{}:r;if(i)for(var l in i)i.hasOwnProperty(l)&&n(l,i[l]);var a=e.options.extraKeys;if(a)for(var l in a)a.hasOwnProperty(l)&&n(l,a[l]);return o}function o(e,t){for(;t&&t!=e;){if("LI"===t.nodeName.toUpperCase()&&t.parentNode==e)return t;t=t.parentNode}}function l(t,n){this.completion=t,this.data=n,this.picked=!1;var l=this,a=t.cm,s=this.hints=document.createElement("ul");s.className="CodeMirror-hints",this.selectedHint=n.selectedHint||0;for(var c=n.list,h=0;h<c.length;++h){var d=s.appendChild(document.createElement("li")),p=c[h],m=u+(h!=this.selectedHint?"":" "+f);null!=p.className&&(m=p.className+" "+m),d.className=m,p.render?p.render(d,n,p):d.appendChild(document.createTextNode(p.displayText||r(p))),d.hintId=h}var g=a.cursorCoords(t.options.alignWithWord?n.from:null),v=g.left,y=g.bottom,x=!0;s.style.left=v+"px",s.style.top=y+"px";var b=window.innerWidth||Math.max(document.body.offsetWidth,document.documentElement.offsetWidth),C=window.innerHeight||Math.max(document.body.offsetHeight,document.documentElement.offsetHeight);(t.options.container||document.body).appendChild(s);var w=s.getBoundingClientRect(),k=w.bottom-C,S=s.scrollHeight>s.clientHeight+1,L=a.getScrollInfo();if(k>0){var M=w.bottom-w.top;if(g.top-(g.bottom-w.top)-M>0)s.style.top=(y=g.top-M)+"px",x=!1;else if(M>C){s.style.height=C-5+"px",s.style.top=(y=g.bottom-w.top)+"px";var T=a.getCursor();n.from.ch!=T.ch&&(g=a.cursorCoords(T),s.style.left=(v=g.left)+"px",w=s.getBoundingClientRect())}}var A=w.right-b;if(A>0&&(w.right-w.left>b&&(s.style.width=b-5+"px",A-=w.right-w.left-b),s.style.left=(v=g.left-A)+"px"),S)for(var O=s.firstChild;O;O=O.nextSibling)O.style.paddingRight=a.display.nativeBarWidth+"px";if(a.addKeyMap(this.keyMap=i(t,{moveFocus:function(e,t){l.changeActive(l.selectedHint+e,t)},setFocus:function(e){l.changeActive(e)},menuSize:function(){return l.screenAmount()},length:c.length,close:function(){t.close()},pick:function(){l.pick()},data:n})),t.options.closeOnUnfocus){var N;a.on("blur",this.onBlur=function(){N=setTimeout(function(){t.close()},100)}),a.on("focus",this.onFocus=function(){clearTimeout(N)})}return a.on("scroll",this.onScroll=function(){var e=a.getScrollInfo(),n=a.getWrapperElement().getBoundingClientRect(),r=y+L.top-e.top,i=r-(window.pageYOffset||(document.documentElement||document.body).scrollTop);return x||(i+=s.offsetHeight),i<=n.top||i>=n.bottom?t.close():(s.style.top=r+"px",void(s.style.left=v+L.left-e.left+"px"))}),e.on(s,"dblclick",function(e){var t=o(s,e.target||e.srcElement);t&&null!=t.hintId&&(l.changeActive(t.hintId),l.pick())}),e.on(s,"click",function(e){var n=o(s,e.target||e.srcElement);n&&null!=n.hintId&&(l.changeActive(n.hintId),t.options.completeOnSingleClick&&l.pick())}),e.on(s,"mousedown",function(){setTimeout(function(){a.focus()},20)}),e.signal(n,"select",c[this.selectedHint],s.childNodes[this.selectedHint]),!0}function a(e,t){if(!e.somethingSelected())return t;for(var n=[],r=0;r<t.length;r++)t[r].supportsSelection&&n.push(t[r]);return n}function s(e,t,n,r){if(e.async)e(t,r,n);else{var i=e(t,n);i&&i.then?i.then(r):r(i)}}function c(t,n){var r,i=t.getHelpers(n,"hint");if(i.length){var o=function(e,t,n){function r(i){return i==o.length?t(null):void s(o[i],e,n,function(e){e&&e.list.length>0?t(e):r(i+1)})}var o=a(e,i);r(0)};return o.async=!0,o.supportsSelection=!0,o}return(r=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:r})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}var u="CodeMirror-hint",f="CodeMirror-hint-active";e.showHint=function(e,t,n){if(!t)return e.showHint(n);n&&n.async&&(t.async=!0);var r={hint:t};if(n)for(var i in n)r[i]=n[i];return e.showHint(r)},e.defineExtension("showHint",function(r){r=n(this,this.getCursor("start"),r);var i=this.listSelections();if(!(i.length>1)){if(this.somethingSelected()){if(!r.hint.supportsSelection)return;for(var o=0;o<i.length;o++)if(i[o].head.line!=i[o].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var l=this.state.completionActive=new t(this,r);l.options.hint&&(e.signal(this,"startCompletion",this),l.update(!0))}});var h=window.requestAnimationFrame||function(e){return setTimeout(e,1e3/60)},d=window.cancelAnimationFrame||clearTimeout;t.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,n){var i=t.list[n];i.hint?i.hint(this.cm,t,i):this.cm.replaceRange(r(i),i.from||t.from,i.to||t.to,"complete"),e.signal(t,"pick",i),this.close()},cursorActivity:function(){this.debounce&&(d(this.debounce),this.debounce=0);var e=this.cm.getCursor(),t=this.cm.getLine(e.line);if(e.line!=this.startPos.line||t.length-e.ch!=this.startLen-this.startPos.ch||e.ch<this.startPos.ch||this.cm.somethingSelected()||e.ch&&this.options.closeCharacters.test(t.charAt(e.ch-1)))this.close();else{var n=this;this.debounce=h(function(){n.update()}),this.widget&&this.widget.disable()}},update:function(e){if(null!=this.tick){var t=this,n=++this.tick;s(this.options.hint,this.cm,this.options,function(r){t.tick==n&&t.finishUpdate(r,e)})}},finishUpdate:function(t,n){this.data&&e.signal(this.data,"update");var r=this.widget&&this.widget.picked||n&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=t,t&&t.list.length&&(r&&1==t.list.length?this.pick(t,0):(this.widget=new l(this,t),e.signal(t,"shown")))}},l.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var e=this.completion.cm;this.completion.options.closeOnUnfocus&&(e.off("blur",this.onBlur),e.off("focus",this.onFocus)),e.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var e=this;this.keyMap={Enter:function(){e.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(t,n){if(t>=this.data.list.length?t=n?this.data.list.length-1:0:0>t&&(t=n?0:this.data.list.length-1),this.selectedHint!=t){var r=this.hints.childNodes[this.selectedHint];r.className=r.className.replace(" "+f,""),r=this.hints.childNodes[this.selectedHint=t],r.className+=" "+f,r.offsetTop<this.hints.scrollTop?this.hints.scrollTop=r.offsetTop-3:r.offsetTop+r.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=r.offsetTop+r.offsetHeight-this.hints.clientHeight+3),e.signal(this.data,"select",this.data.list[this.selectedHint],r)}},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1}},e.registerHelper("hint","auto",{resolve:c}),e.registerHelper("hint","fromList",function(t,n){var r=t.getCursor(),i=t.getTokenAt(r),o=e.Pos(r.line,i.end);if(i.string&&/\w/.test(i.string[i.string.length-1]))var l=i.string,a=e.Pos(r.line,i.start);else var l="",a=o;for(var s=[],c=0;c<n.words.length;c++){var u=n.words[c];u.slice(0,l.length)==l&&s.push(u)}return s.length?{list:s,from:a,to:o}:void 0}),e.commands.autocomplete=e.showHint;var p={hint:e.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnUnfocus:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null};e.defineOption("hintOptions",null)}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.registerHelper("hint","anyword",function(t,n){for(var r=n&&n.word||/[\w$]+/,i=n&&n.range||500,o=t.getCursor(),l=t.getLine(o.line),a=o.ch,s=a;s&&r.test(l.charAt(s-1));)--s;for(var c=s!=a&&l.slice(s,a),u=n&&n.list||[],f={},h=new RegExp(r.source,"g"),d=-1;1>=d;d+=2)for(var p=o.line,m=Math.min(Math.max(p+d*i,t.firstLine()),t.lastLine())+d;p!=m;p+=d)for(var g,v=t.getLine(p);g=h.exec(v);)(p!=o.line||g[0]!==c)&&(c&&0!=g[0].lastIndexOf(c,0)||Object.prototype.hasOwnProperty.call(f,g[0])||(f[g[0]]=!0,u.push(g[0])));return{list:u,from:e.Pos(o.line,s),to:e.Pos(o.line,a)}})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e){for(var t=0;t<e.state.activeLines.length;t++)e.removeLineClass(e.state.activeLines[t],"wrap",o),e.removeLineClass(e.state.activeLines[t],"background",l),e.removeLineClass(e.state.activeLines[t],"gutter",a)}function n(e,t){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function r(e,r){for(var i=[],s=0;s<r.length;s++){var c=r[s],u=e.getOption("styleActiveLine");if("object"==typeof u&&u.nonEmpty?c.anchor.line==c.head.line:c.empty()){var f=e.getLineHandleVisualStart(c.head.line);i[i.length-1]!=f&&i.push(f)}}n(e.state.activeLines,i)||e.operation(function(){t(e);for(var n=0;n<i.length;n++)e.addLineClass(i[n],"wrap",o),e.addLineClass(i[n],"background",l),e.addLineClass(i[n],"gutter",a);e.state.activeLines=i})}function i(e,t){r(e,t.ranges)}var o="CodeMirror-activeline",l="CodeMirror-activeline-background",a="CodeMirror-activeline-gutter";e.defineOption("styleActiveLine",!1,function(n,o,l){var a=l!=e.Init&&l;o!=a&&(a&&(n.off("beforeSelectionChange",i),t(n),delete n.state.activeLines),o&&(n.state.activeLines=[],r(n,n.listSelections()),n.on("beforeSelectionChange",i)))})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e){var t=e.search(o);return-1==t?0:t}function n(e,t,n){return/\bstring\b/.test(e.getTokenTypeAt(l(t.line,0)))&&!/^[\'\"\`]/.test(n)}function r(e,t){var n=e.getMode();return n.useInnerComments!==!1&&n.innerMode?e.getModeAt(t):n}var i={},o=/[^\s\u00a0]/,l=e.Pos;e.commands.toggleComment=function(e){e.toggleComment()},e.defineExtension("toggleComment",function(e){e||(e=i);for(var t=this,n=1/0,r=this.listSelections(),o=null,a=r.length-1;a>=0;a--){var s=r[a].from(),c=r[a].to();s.line>=n||(c.line>=n&&(c=l(n,0)),n=s.line,null==o?t.uncomment(s,c,e)?o="un":(t.lineComment(s,c,e),o="line"):"un"==o?t.uncomment(s,c,e):t.lineComment(s,c,e))}}),e.defineExtension("lineComment",function(e,a,s){s||(s=i);var c=this,u=r(c,e),f=c.getLine(e.line);if(null!=f&&!n(c,e,f)){var h=s.lineComment||u.lineComment;if(!h)return void((s.blockCommentStart||u.blockCommentStart)&&(s.fullLines=!0,c.blockComment(e,a,s)));var d=Math.min(0!=a.ch||a.line==e.line?a.line+1:a.line,c.lastLine()+1),p=null==s.padding?" ":s.padding,m=s.commentBlankLines||e.line==a.line;c.operation(function(){if(s.indent){for(var n=null,r=e.line;d>r;++r){var i=c.getLine(r),a=i.slice(0,t(i));(null==n||n.length>a.length)&&(n=a)}for(var r=e.line;d>r;++r){var i=c.getLine(r),u=n.length;(m||o.test(i))&&(i.slice(0,u)!=n&&(u=t(i)),c.replaceRange(n+h+p,l(r,0),l(r,u)))}}else for(var r=e.line;d>r;++r)(m||o.test(c.getLine(r)))&&c.replaceRange(h+p,l(r,0))})}}),e.defineExtension("blockComment",function(e,t,n){n||(n=i);var a=this,s=r(a,e),c=n.blockCommentStart||s.blockCommentStart,u=n.blockCommentEnd||s.blockCommentEnd;if(!c||!u)return void((n.lineComment||s.lineComment)&&0!=n.fullLines&&a.lineComment(e,t,n));if(!/\bcomment\b/.test(a.getTokenTypeAt(l(e.line,0)))){var f=Math.min(t.line,a.lastLine());f!=e.line&&0==t.ch&&o.test(a.getLine(f))&&--f;var h=null==n.padding?" ":n.padding;e.line>f||a.operation(function(){if(0!=n.fullLines){var r=o.test(a.getLine(f));a.replaceRange(h+u,l(f)),a.replaceRange(c+h,l(e.line,0));var i=n.blockCommentLead||s.blockCommentLead;if(null!=i)for(var d=e.line+1;f>=d;++d)(d!=f||r)&&a.replaceRange(i+h,l(d,0))}else a.replaceRange(u,t),a.replaceRange(c,e)})}}),e.defineExtension("uncomment",function(e,t,n){n||(n=i);var a,s=this,c=r(s,e),u=Math.min(0!=t.ch||t.line==e.line?t.line:t.line-1,s.lastLine()),f=Math.min(e.line,u),h=n.lineComment||c.lineComment,d=[],p=null==n.padding?" ":n.padding;e:if(h){for(var m=f;u>=m;++m){var g=s.getLine(m),v=g.indexOf(h);if(v>-1&&!/comment/.test(s.getTokenTypeAt(l(m,v+1)))&&(v=-1),-1==v&&o.test(g))break e;if(v>-1&&o.test(g.slice(0,v)))break e;d.push(g)}if(s.operation(function(){for(var e=f;u>=e;++e){var t=d[e-f],n=t.indexOf(h),r=n+h.length;0>n||(t.slice(r,r+p.length)==p&&(r+=p.length),a=!0,s.replaceRange("",l(e,n),l(e,r)))}}),a)return!0}var y=n.blockCommentStart||c.blockCommentStart,x=n.blockCommentEnd||c.blockCommentEnd;if(!y||!x)return!1;var b=n.blockCommentLead||c.blockCommentLead,C=s.getLine(f),w=C.indexOf(y);if(-1==w)return!1;var k=u==f?C:s.getLine(u),S=k.indexOf(x,u==f?w+y.length:0),L=l(f,w+1),M=l(u,S+1);if(-1==S||!/comment/.test(s.getTokenTypeAt(L))||!/comment/.test(s.getTokenTypeAt(M))||s.getRange(L,M,"\n").indexOf(x)>-1)return!1;var T=C.lastIndexOf(y,e.ch),A=-1==T?-1:C.slice(0,e.ch).indexOf(x,T+y.length);if(-1!=T&&-1!=A&&A+x.length!=e.ch)return!1;A=k.indexOf(x,t.ch);var O=k.slice(t.ch).lastIndexOf(y,A-t.ch);return T=-1==A||-1==O?-1:t.ch+O,(-1==A||-1==T||T==t.ch)&&(s.operation(function(){s.replaceRange("",l(u,S-(p&&k.slice(S-p.length,S)==p?p.length:0)),l(u,S+x.length));var e=w+y.length;if(p&&C.slice(e,e+p.length)==p&&(e+=p.length),s.replaceRange("",l(f,w),l(f,e)),b)for(var t=f+1;u>=t;++t){var n=s.getLine(t),r=n.indexOf(b);if(-1!=r&&!o.test(n.slice(0,r))){var i=r+b.length;p&&n.slice(i,i+p.length)==p&&(i+=p.length),s.replaceRange("",l(t,r),l(t,i))}}}),!0)})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){function t(t){if(t.getOption("disableInput"))return e.Pass;for(var r,i=t.listSelections(),o=[],l=0;l<i.length;l++){var a=i[l].head;if(!/\bcomment\b/.test(t.getTokenTypeAt(a)))return e.Pass;var s=t.getModeAt(a);if(r){if(r!=s)return e.Pass}else r=s;var c=null;if(r.blockCommentStart&&r.blockCommentContinue){var u,f=t.getLine(a.line).slice(0,a.ch),h=f.lastIndexOf(r.blockCommentEnd);if(-1!=h&&h==a.ch-r.blockCommentEnd.length);else if((u=f.lastIndexOf(r.blockCommentStart))>-1&&u>h){if(c=f.slice(0,u),/\S/.test(c)){c="";for(var d=0;u>d;++d)c+=" "}}else(u=f.indexOf(r.blockCommentContinue))>-1&&!/\S/.test(f.slice(0,u))&&(c=f.slice(0,u));null!=c&&(c+=r.blockCommentContinue)}if(null==c&&r.lineComment&&n(t)){var f=t.getLine(a.line),u=f.indexOf(r.lineComment);u>-1&&(c=f.slice(0,u),/\S/.test(c)?c=null:c+=r.lineComment+f.slice(u+r.lineComment.length).match(/^\s*/)[0])}if(null==c)return e.Pass;o[l]="\n"+c}t.operation(function(){for(var e=i.length-1;e>=0;e--)t.replaceRange(o[e],i[e].from(),i[e].to(),"+insert")})}function n(e){var t=e.getOption("continueComments");return!t||"object"!=typeof t||t.continueLineComment!==!1}e.defineOption("continueComments",null,function(n,r,i){if(i&&i!=e.Init&&n.removeKeyMap("continueComment"),r){var o="Enter";"string"==typeof r?o=r:"object"==typeof r&&r.key&&(o=r.key);var l={name:"continueComment"};l[o]=t,n.addKeyMap(l)}})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){function t(e){e.state.placeholder&&(e.state.placeholder.parentNode.removeChild(e.state.placeholder),e.state.placeholder=null)}function n(e){t(e);var n=e.state.placeholder=document.createElement("pre");n.style.cssText="height: 0; overflow: visible",n.className="CodeMirror-placeholder";var r=e.getOption("placeholder");"string"==typeof r&&(r=document.createTextNode(r)),n.appendChild(r),e.display.lineSpace.insertBefore(n,e.display.lineSpace.firstChild)}function r(e){o(e)&&n(e)}function i(e){var r=e.getWrapperElement(),i=o(e);r.className=r.className.replace(" CodeMirror-empty","")+(i?" CodeMirror-empty":""),i?n(e):t(e)}function o(e){return 1===e.lineCount()&&""===e.getLine(0)}e.defineOption("placeholder","",function(n,o,l){var a=l&&l!=e.Init;if(o&&!a)n.on("blur",r),n.on("change",i),n.on("swapDoc",i),i(n);else if(!o&&a){n.off("blur",r),n.off("change",i),n.off("swapDoc",i),t(n);var s=n.getWrapperElement();s.className=s.className.replace(" CodeMirror-empty","")}o&&!n.hasFocus()&&r(n)})}),
// From https://code.google.com/p/google-diff-match-patch/ , licensed under the Apache License 2.0
function(){function e(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32}e.prototype.diff_main=function(e,t,n,r){if(void 0===r&&(r=0>=this.Diff_Timeout?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout),null==e||null==t)throw Error("Null input. (diff_main)");if(e==t)return e?[[0,e]]:[];void 0===n&&(n=!0);var i=n,o=this.diff_commonPrefix(e,t);n=e.substring(0,o),e=e.substring(o),t=t.substring(o);var o=this.diff_commonSuffix(e,t),l=e.substring(e.length-o);return e=e.substring(0,e.length-o),t=t.substring(0,t.length-o),e=this.diff_compute_(e,t,i,r),n&&e.unshift([0,n]),l&&e.push([0,l]),this.diff_cleanupMerge(e),e},e.prototype.diff_compute_=function(e,t,n,r){if(!e)return[[1,t]];if(!t)return[[-1,e]];var i=e.length>t.length?e:t,o=e.length>t.length?t:e,l=i.indexOf(o);return-1!=l?(n=[[1,i.substring(0,l)],[0,o],[1,i.substring(l+o.length)]],e.length>t.length&&(n[0][0]=n[2][0]=-1),n):1==o.length?[[-1,e],[1,t]]:(i=this.diff_halfMatch_(e,t))?(o=i[0],e=i[1],l=i[2],t=i[3],i=i[4],o=this.diff_main(o,l,n,r),n=this.diff_main(e,t,n,r),o.concat([[0,i]],n)):n&&100<e.length&&100<t.length?this.diff_lineMode_(e,t,r):this.diff_bisect_(e,t,r)},e.prototype.diff_lineMode_=function(e,t,n){var r=this.diff_linesToChars_(e,t);e=r.chars1,t=r.chars2,r=r.lineArray,e=this.diff_main(e,t,!1,n),this.diff_charsToLines_(e,r),this.diff_cleanupSemantic(e),e.push([0,""]);for(var i=r=t=0,o="",l="";t<e.length;){switch(e[t][0]){case 1:i++,l+=e[t][1];break;case-1:r++,o+=e[t][1];break;case 0:if(1<=r&&1<=i){for(e.splice(t-r-i,r+i),t=t-r-i,r=this.diff_main(o,l,!1,n),i=r.length-1;0<=i;i--)e.splice(t,0,r[i]);t+=r.length}r=i=0,l=o=""}t++}return e.pop(),e},e.prototype.diff_bisect_=function(e,t,n){for(var r=e.length,i=t.length,o=Math.ceil((r+i)/2),l=o,a=2*o,s=Array(a),c=Array(a),u=0;u<a;u++)s[u]=-1,c[u]=-1;s[l+1]=0,c[l+1]=0;for(var u=r-i,f=0!=u%2,h=0,d=0,p=0,m=0,g=0;g<o&&!((new Date).getTime()>n);g++){for(var v=-g+h;v<=g-d;v+=2){var y,x=l+v;y=v==-g||v!=g&&s[x-1]<s[x+1]?s[x+1]:s[x-1]+1;for(var b=y-v;y<r&&b<i&&e.charAt(y)==t.charAt(b);)y++,b++;if(s[x]=y,y>r)d+=2;else if(b>i)h+=2;else if(f&&0<=(x=l+u-v)&&x<a&&-1!=c[x]){var C=r-c[x];if(y>=C)return this.diff_bisectSplit_(e,t,y,b,n)}}for(v=-g+p;v<=g-m;v+=2){for(x=l+v,C=v==-g||v!=g&&c[x-1]<c[x+1]?c[x+1]:c[x-1]+1,y=C-v;C<r&&y<i&&e.charAt(r-C-1)==t.charAt(i-y-1);)C++,y++;if(c[x]=C,C>r)m+=2;else if(y>i)p+=2;else if(!f&&0<=(x=l+u-v)&&x<a&&-1!=s[x]&&(y=s[x],b=l+y-x,C=r-C,y>=C))return this.diff_bisectSplit_(e,t,y,b,n)}}return[[-1,e],[1,t]]},e.prototype.diff_bisectSplit_=function(e,t,n,r,i){var o=e.substring(0,n),l=t.substring(0,r);return e=e.substring(n),t=t.substring(r),o=this.diff_main(o,l,!1,i),i=this.diff_main(e,t,!1,i),o.concat(i)},e.prototype.diff_linesToChars_=function(e,t){function n(e){for(var t="",n=0,o=-1,l=r.length;o<e.length-1;){o=e.indexOf("\n",n),-1==o&&(o=e.length-1);var a=e.substring(n,o+1),n=o+1;(i.hasOwnProperty?i.hasOwnProperty(a):void 0!==i[a])?t+=String.fromCharCode(i[a]):(t+=String.fromCharCode(l),i[a]=l,r[l++]=a)}return t}var r=[],i={};return r[0]="",{chars1:n(e),chars2:n(t),lineArray:r}},e.prototype.diff_charsToLines_=function(e,t){for(var n=0;n<e.length;n++){for(var r=e[n][1],i=[],o=0;o<r.length;o++)i[o]=t[r.charCodeAt(o)];e[n][1]=i.join("")}},e.prototype.diff_commonPrefix=function(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,o=0;n<i;)e.substring(o,i)==t.substring(o,i)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i},e.prototype.diff_commonSuffix=function(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,o=0;n<i;)e.substring(e.length-i,e.length-o)==t.substring(t.length-i,t.length-o)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i},e.prototype.diff_commonOverlap_=function(e,t){var n=e.length,r=t.length;if(0==n||0==r)return 0;if(n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n)),n=Math.min(n,r),e==t)return n;for(var r=0,i=1;;){var o=e.substring(n-i),o=t.indexOf(o);if(-1==o)return r;i+=o,0!=o&&e.substring(n-i)!=t.substring(0,i)||(r=i,i++)}},e.prototype.diff_halfMatch_=function(e,t){function n(e,t,n){for(var r,i,o,a,s=e.substring(n,n+Math.floor(e.length/4)),c=-1,u="";-1!=(c=t.indexOf(s,c+1));){var f=l.diff_commonPrefix(e.substring(n),t.substring(c)),h=l.diff_commonSuffix(e.substring(0,n),t.substring(0,c));u.length<h+f&&(u=t.substring(c-h,c)+t.substring(c,c+f),r=e.substring(0,n-h),i=e.substring(n+f),o=t.substring(0,c-h),a=t.substring(c+f))}return 2*u.length>=e.length?[r,i,o,a,u]:null}if(0>=this.Diff_Timeout)return null;var r=e.length>t.length?e:t,i=e.length>t.length?t:e;if(4>r.length||2*i.length<r.length)return null;var o,l=this,a=n(r,i,Math.ceil(r.length/4)),r=n(r,i,Math.ceil(r.length/2));if(!a&&!r)return null;o=r?a&&a[4].length>r[4].length?a:r:a;var s;return e.length>t.length?(a=o[0],r=o[1],i=o[2],s=o[3]):(i=o[0],s=o[1],a=o[2],r=o[3]),o=o[4],[a,r,i,s,o]},e.prototype.diff_cleanupSemantic=function(e){for(var t=!1,n=[],r=0,i=null,o=0,l=0,a=0,s=0,c=0;o<e.length;)0==e[o][0]?(n[r++]=o,l=s,a=c,c=s=0,i=e[o][1]):(1==e[o][0]?s+=e[o][1].length:c+=e[o][1].length,i&&i.length<=Math.max(l,a)&&i.length<=Math.max(s,c)&&(e.splice(n[r-1],0,[-1,i]),e[n[r-1]+1][0]=1,r--,r--,o=0<r?n[r-1]:-1,c=s=a=l=0,i=null,t=!0)),o++;for(t&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),o=1;o<e.length;)-1==e[o-1][0]&&1==e[o][0]&&(t=e[o-1][1],n=e[o][1],r=this.diff_commonOverlap_(t,n),i=this.diff_commonOverlap_(n,t),r>=i?(r>=t.length/2||r>=n.length/2)&&(e.splice(o,0,[0,n.substring(0,r)]),e[o-1][1]=t.substring(0,t.length-r),e[o+1][1]=n.substring(r),o++):(i>=t.length/2||i>=n.length/2)&&(e.splice(o,0,[0,t.substring(0,i)]),e[o-1][0]=1,e[o-1][1]=n.substring(0,n.length-i),e[o+1][0]=-1,e[o+1][1]=t.substring(i),o++),o++),o++},e.prototype.diff_cleanupSemanticLossless=function(t){function n(t,n){if(!t||!n)return 6;var r=t.charAt(t.length-1),i=n.charAt(0),o=r.match(e.nonAlphaNumericRegex_),l=i.match(e.nonAlphaNumericRegex_),a=o&&r.match(e.whitespaceRegex_),s=l&&i.match(e.whitespaceRegex_),r=a&&r.match(e.linebreakRegex_),i=s&&i.match(e.linebreakRegex_),c=r&&t.match(e.blanklineEndRegex_),u=i&&n.match(e.blanklineStartRegex_);return c||u?5:r||i?4:o&&!a&&s?3:a||s?2:o||l?1:0}for(var r=1;r<t.length-1;){if(0==t[r-1][0]&&0==t[r+1][0]){var i=t[r-1][1],o=t[r][1],l=t[r+1][1],a=this.diff_commonSuffix(i,o);if(a)var s=o.substring(o.length-a),i=i.substring(0,i.length-a),o=s+o.substring(0,o.length-a),l=s+l;for(var a=i,s=o,c=l,u=n(i,o)+n(o,l);o.charAt(0)===l.charAt(0);){var i=i+o.charAt(0),o=o.substring(1)+l.charAt(0),l=l.substring(1),f=n(i,o)+n(o,l);f>=u&&(u=f,a=i,s=o,c=l)}t[r-1][1]!=a&&(a?t[r-1][1]=a:(t.splice(r-1,1),r--),t[r][1]=s,c?t[r+1][1]=c:(t.splice(r+1,1),r--))}r++}},e.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,e.whitespaceRegex_=/\s/,e.linebreakRegex_=/[\r\n]/,e.blanklineEndRegex_=/\n\r?\n$/,e.blanklineStartRegex_=/^\r?\n\r?\n/,e.prototype.diff_cleanupEfficiency=function(e){for(var t=!1,n=[],r=0,i=null,o=0,l=!1,a=!1,s=!1,c=!1;o<e.length;)0==e[o][0]?(e[o][1].length<this.Diff_EditCost&&(s||c)?(n[r++]=o,l=s,a=c,i=e[o][1]):(r=0,i=null),s=c=!1):(-1==e[o][0]?c=!0:s=!0,i&&(l&&a&&s&&c||i.length<this.Diff_EditCost/2&&3==l+a+s+c)&&(e.splice(n[r-1],0,[-1,i]),e[n[r-1]+1][0]=1,r--,i=null,l&&a?(s=c=!0,r=0):(r--,o=0<r?n[r-1]:-1,s=c=!1),t=!0)),o++;t&&this.diff_cleanupMerge(e)},e.prototype.diff_cleanupMerge=function(e){e.push([0,""]);for(var t,n=0,r=0,i=0,o="",l="";n<e.length;)switch(e[n][0]){case 1:i++,l+=e[n][1],n++;break;case-1:r++,o+=e[n][1],n++;break;case 0:1<r+i?(0!==r&&0!==i&&(t=this.diff_commonPrefix(l,o),0!==t&&(0<n-r-i&&0==e[n-r-i-1][0]?e[n-r-i-1][1]+=l.substring(0,t):(e.splice(0,0,[0,l.substring(0,t)]),n++),l=l.substring(t),o=o.substring(t)),0!==(t=this.diff_commonSuffix(l,o))&&(e[n][1]=l.substring(l.length-t)+e[n][1],l=l.substring(0,l.length-t),o=o.substring(0,o.length-t))),0===r?e.splice(n-i,r+i,[1,l]):0===i?e.splice(n-r,r+i,[-1,o]):e.splice(n-r-i,r+i,[-1,o],[1,l]),n=n-r-i+(r?1:0)+(i?1:0)+1):0!==n&&0==e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=i=0,l=o=""}for(""===e[e.length-1][1]&&e.pop(),r=!1,n=1;n<e.length-1;)0==e[n-1][0]&&0==e[n+1][0]&&(e[n][1].substring(e[n][1].length-e[n-1][1].length)==e[n-1][1]?(e[n][1]=e[n-1][1]+e[n][1].substring(0,e[n][1].length-e[n-1][1].length),e[n+1][1]=e[n-1][1]+e[n+1][1],e.splice(n-1,1),r=!0):e[n][1].substring(0,e[n+1][1].length)==e[n+1][1]&&(e[n-1][1]+=e[n+1][1],e[n][1]=e[n][1].substring(e[n+1][1].length)+e[n+1][1],e.splice(n+1,1),r=!0)),n++;r&&this.diff_cleanupMerge(e)},e.prototype.diff_xIndex=function(e,t){var n,r=0,i=0,o=0,l=0;for(n=0;n<e.length&&(1!==e[n][0]&&(r+=e[n][1].length),-1!==e[n][0]&&(i+=e[n][1].length),!(r>t));n++)o=r,l=i;return e.length!=n&&-1===e[n][0]?l:l+(t-o)},e.prototype.diff_prettyHtml=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n][0],i=e[n][1],i=i.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\n/g,"&para;<br>");switch(r){case 1:t[n]='<ins style="background:#e6ffe6;">'+i+"</ins>";break;case-1:t[n]='<del style="background:#ffe6e6;">'+i+"</del>";break;case 0:t[n]="<span>"+i+"</span>"}}return t.join("")},e.prototype.diff_text1=function(e){for(var t=[],n=0;n<e.length;n++)1!==e[n][0]&&(t[n]=e[n][1]);return t.join("")},e.prototype.diff_text2=function(e){for(var t=[],n=0;n<e.length;n++)-1!==e[n][0]&&(t[n]=e[n][1]);return t.join("")},e.prototype.diff_levenshtein=function(e){for(var t=0,n=0,r=0,i=0;i<e.length;i++){var o=e[i][0],l=e[i][1];switch(o){case 1:n+=l.length;break;case-1:r+=l.length;break;case 0:t+=Math.max(n,r),r=n=0}}return t+=Math.max(n,r)},e.prototype.diff_toDelta=function(e){for(var t=[],n=0;n<e.length;n++)switch(e[n][0]){case 1:t[n]="+"+encodeURI(e[n][1]);break;case-1:t[n]="-"+e[n][1].length;break;case 0:t[n]="="+e[n][1].length}return t.join("\t").replace(/%20/g," ")},e.prototype.diff_fromDelta=function(e,t){for(var n=[],r=0,i=0,o=t.split(/\t/g),l=0;l<o.length;l++){var a=o[l].substring(1);switch(o[l].charAt(0)){case"+":try{n[r++]=[1,decodeURI(a)]}catch(e){throw Error("Illegal escape in diff_fromDelta: "+a)}break;case"-":case"=":var s=parseInt(a,10);if(isNaN(s)||0>s)throw Error("Invalid number in diff_fromDelta: "+a);a=e.substring(i,i+=s),"="==o[l].charAt(0)?n[r++]=[0,a]:n[r++]=[-1,a];break;default:if(o[l])throw Error("Invalid diff operation in diff_fromDelta: "+o[l])}}if(i!=e.length)throw Error("Delta length ("+i+") does not equal source text length ("+e.length+").");return n},e.prototype.match_main=function(e,t,n){if(null==e||null==t||null==n)throw Error("Null input. (match_main)");return n=Math.max(0,Math.min(n,e.length)),e==t?0:e.length?e.substring(n,n+t.length)==t?n:this.match_bitap_(e,t,n):-1},e.prototype.match_bitap_=function(e,t,n){function r(e,r){var i=e/t.length,l=Math.abs(n-r);return o.Match_Distance?i+l/o.Match_Distance:l?1:i}if(t.length>this.Match_MaxBits)throw Error("Pattern too long for this browser.");var i=this.match_alphabet_(t),o=this,l=this.Match_Threshold,a=e.indexOf(t,n);-1!=a&&(l=Math.min(r(0,a),l),-1!=(a=e.lastIndexOf(t,n+t.length))&&(l=Math.min(r(0,a),l)));for(var s,c,u,f=1<<t.length-1,a=-1,h=t.length+e.length,d=0;d<t.length;d++){for(s=0,c=h;s<c;)r(d,n+c)<=l?s=c:h=c,c=Math.floor((h-s)/2+s);h=c,s=Math.max(1,n-c+1);var p=Math.min(n+c,e.length)+t.length;for(c=Array(p+2),c[p+1]=(1<<d)-1;p>=s;p--){var m=i[e.charAt(p-1)];if(c[p]=0===d?(c[p+1]<<1|1)&m:(c[p+1]<<1|1)&m|(u[p+1]|u[p])<<1|1|u[p+1],c[p]&f&&(m=r(d,p-1))<=l){if(l=m,!((a=p-1)>n))break;s=Math.max(1,2*n-a)}}if(r(d+1,n)>l)break;u=c}return a},e.prototype.match_alphabet_=function(e){for(var t={},n=0;n<e.length;n++)t[e.charAt(n)]=0;for(n=0;n<e.length;n++)t[e.charAt(n)]|=1<<e.length-n-1;return t},e.prototype.patch_addContext_=function(e,t){if(0!=t.length){for(var n=t.substring(e.start2,e.start2+e.length1),r=0;t.indexOf(n)!=t.lastIndexOf(n)&&n.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)r+=this.Patch_Margin,n=t.substring(e.start2-r,e.start2+e.length1+r);r+=this.Patch_Margin,(n=t.substring(e.start2-r,e.start2))&&e.diffs.unshift([0,n]),(r=t.substring(e.start2+e.length1,e.start2+e.length1+r))&&e.diffs.push([0,r]),e.start1-=n.length,e.start2-=n.length,e.length1+=n.length+r.length,e.length2+=n.length+r.length}},e.prototype.patch_make=function(t,n,r){var i;if("string"==typeof t&&"string"==typeof n&&void 0===r)i=t,n=this.diff_main(i,n,!0),2<n.length&&(this.diff_cleanupSemantic(n),this.diff_cleanupEfficiency(n));else if(t&&"object"==typeof t&&void 0===n&&void 0===r)n=t,i=this.diff_text1(n);else if("string"==typeof t&&n&&"object"==typeof n&&void 0===r)i=t;else{if("string"!=typeof t||"string"!=typeof n||!r||"object"!=typeof r)throw Error("Unknown call format to patch_make.");i=t,n=r}if(0===n.length)return[];r=[],t=new e.patch_obj;for(var o=0,l=0,a=0,s=i,c=0;c<n.length;c++){var u=n[c][0],f=n[c][1];switch(!o&&0!==u&&(t.start1=l,t.start2=a),u){case 1:t.diffs[o++]=n[c],t.length2+=f.length,i=i.substring(0,a)+f+i.substring(a);break;case-1:t.length1+=f.length,t.diffs[o++]=n[c],i=i.substring(0,a)+i.substring(a+f.length);break;case 0:f.length<=2*this.Patch_Margin&&o&&n.length!=c+1?(t.diffs[o++]=n[c],t.length1+=f.length,t.length2+=f.length):f.length>=2*this.Patch_Margin&&o&&(this.patch_addContext_(t,s),r.push(t),t=new e.patch_obj,o=0,s=i,l=a)}1!==u&&(l+=f.length),-1!==u&&(a+=f.length)}return o&&(this.patch_addContext_(t,s),r.push(t)),r},e.prototype.patch_deepCopy=function(t){for(var n=[],r=0;r<t.length;r++){var i=t[r],o=new e.patch_obj;o.diffs=[];for(var l=0;l<i.diffs.length;l++)o.diffs[l]=i.diffs[l].slice();o.start1=i.start1,o.start2=i.start2,o.length1=i.length1,o.length2=i.length2,n[r]=o}return n},e.prototype.patch_apply=function(e,t){if(0==e.length)return[t,[]];e=this.patch_deepCopy(e);var n=this.patch_addPadding(e);t=n+t+n,this.patch_splitMax(e);for(var r=0,i=[],o=0;o<e.length;o++){var l,a=e[o].start2+r,s=this.diff_text1(e[o].diffs),c=-1;if(s.length>this.Match_MaxBits?-1!=(l=this.match_main(t,s.substring(0,this.Match_MaxBits),a))&&(-1==(c=this.match_main(t,s.substring(s.length-this.Match_MaxBits),a+s.length-this.Match_MaxBits))||l>=c)&&(l=-1):l=this.match_main(t,s,a),-1==l)i[o]=!1,r-=e[o].length2-e[o].length1;else if(i[o]=!0,r=l-a,a=-1==c?t.substring(l,l+s.length):t.substring(l,c+this.Match_MaxBits),s==a)t=t.substring(0,l)+this.diff_text2(e[o].diffs)+t.substring(l+s.length);else if(a=this.diff_main(s,a,!1),s.length>this.Match_MaxBits&&this.diff_levenshtein(a)/s.length>this.Patch_DeleteThreshold)i[o]=!1;else{this.diff_cleanupSemanticLossless(a);for(var u,s=0,c=0;c<e[o].diffs.length;c++){var f=e[o].diffs[c];0!==f[0]&&(u=this.diff_xIndex(a,s)),1===f[0]?t=t.substring(0,l+u)+f[1]+t.substring(l+u):-1===f[0]&&(t=t.substring(0,l+u)+t.substring(l+this.diff_xIndex(a,s+f[1].length))),-1!==f[0]&&(s+=f[1].length)}}}return t=t.substring(n.length,t.length-n.length),[t,i]},e.prototype.patch_addPadding=function(e){for(var t=this.Patch_Margin,n="",r=1;r<=t;r++)n+=String.fromCharCode(r);for(r=0;r<e.length;r++)e[r].start1+=t,e[r].start2+=t;var r=e[0],i=r.diffs;if(0==i.length||0!=i[0][0])i.unshift([0,n]),r.start1-=t,r.start2-=t,r.length1+=t,r.length2+=t;else if(t>i[0][1].length){var o=t-i[0][1].length;i[0][1]=n.substring(i[0][1].length)+i[0][1],r.start1-=o,r.start2-=o,r.length1+=o,r.length2+=o}return r=e[e.length-1],i=r.diffs,0==i.length||0!=i[i.length-1][0]?(i.push([0,n]),r.length1+=t,r.length2+=t):t>i[i.length-1][1].length&&(o=t-i[i.length-1][1].length,i[i.length-1][1]+=n.substring(0,o),r.length1+=o,r.length2+=o),n},e.prototype.patch_splitMax=function(t){for(var n=this.Match_MaxBits,r=0;r<t.length;r++)if(!(t[r].length1<=n)){var i=t[r];t.splice(r--,1);for(var o=i.start1,l=i.start2,a="";0!==i.diffs.length;){var s=new e.patch_obj,c=!0;for(s.start1=o-a.length,s.start2=l-a.length,""!==a&&(s.length1=s.length2=a.length,s.diffs.push([0,a]));0!==i.diffs.length&&s.length1<n-this.Patch_Margin;){var a=i.diffs[0][0],u=i.diffs[0][1];1===a?(s.length2+=u.length,l+=u.length,s.diffs.push(i.diffs.shift()),c=!1):-1===a&&1==s.diffs.length&&0==s.diffs[0][0]&&u.length>2*n?(s.length1+=u.length,o+=u.length,c=!1,s.diffs.push([a,u]),i.diffs.shift()):(u=u.substring(0,n-s.length1-this.Patch_Margin),s.length1+=u.length,o+=u.length,0===a?(s.length2+=u.length,l+=u.length):c=!1,s.diffs.push([a,u]),u==i.diffs[0][1]?i.diffs.shift():i.diffs[0][1]=i.diffs[0][1].substring(u.length))}a=this.diff_text2(s.diffs),a=a.substring(a.length-this.Patch_Margin),u=this.diff_text1(i.diffs).substring(0,this.Patch_Margin),""!==u&&(s.length1+=u.length,s.length2+=u.length,0!==s.diffs.length&&0===s.diffs[s.diffs.length-1][0]?s.diffs[s.diffs.length-1][1]+=u:s.diffs.push([0,u])),c||t.splice(++r,0,s)}}},e.prototype.patch_toText=function(e){for(var t=[],n=0;n<e.length;n++)t[n]=e[n];return t.join("")},e.prototype.patch_fromText=function(t){var n=[];if(!t)return n;t=t.split("\n");for(var r=0;r<t.length;){var i=t[r].match(/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/);if(!i)throw Error("Invalid patch string: "+t[r]);var o=new e.patch_obj;for(n.push(o),o.start1=parseInt(i[1],10),""===i[2]?(o.start1--,o.length1=1):"0"==i[2]?o.length1=0:(o.start1--,o.length1=parseInt(i[2],10)),o.start2=parseInt(i[3],10),""===i[4]?(o.start2--,o.length2=1):"0"==i[4]?o.length2=0:(o.start2--,o.length2=parseInt(i[4],10)),r++;r<t.length;){i=t[r].charAt(0);try{var l=decodeURI(t[r].substring(1))}catch(e){throw Error("Illegal escape in patch_fromText: "+l)}if("-"==i)o.diffs.push([-1,l]);else if("+"==i)o.diffs.push([1,l]);else if(" "==i)o.diffs.push([0,l]);else{if("@"==i)break;if(""!==i)throw Error('Invalid patch mode "'+i+'" in: '+l)}r++}}return n},e.patch_obj=function(){this.diffs=[],this.start2=this.start1=null,this.length2=this.length1=0},e.patch_obj.prototype.toString=function(){var e,t;e=0===this.length1?this.start1+",0":1==this.length1?this.start1+1:this.start1+1+","+this.length1,t=0===this.length2?this.start2+",0":1==this.length2?this.start2+1:this.start2+1+","+this.length2,e=["@@ -"+e+" +"+t+" @@\n"];var n;for(t=0;t<this.diffs.length;t++){switch(this.diffs[t][0]){case 1:n="+";break;case-1:n="-";break;case 0:n=" "}e[t+1]=n+encodeURI(this.diffs[t][1])+"\n"}return e.join("").replace(/%20/g," ")},this.diff_match_patch=e,this.DIFF_DELETE=-1,this.DIFF_INSERT=1,this.DIFF_EQUAL=0}(),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","diff_match_patch"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t){this.mv=e,this.type=t,this.classes="left"==t?{chunk:"CodeMirror-merge-l-chunk",start:"CodeMirror-merge-l-chunk-start",end:"CodeMirror-merge-l-chunk-end",insert:"CodeMirror-merge-l-inserted",del:"CodeMirror-merge-l-deleted",connect:"CodeMirror-merge-l-connect"}:{chunk:"CodeMirror-merge-r-chunk",start:"CodeMirror-merge-r-chunk-start",end:"CodeMirror-merge-r-chunk-end",insert:"CodeMirror-merge-r-inserted",del:"CodeMirror-merge-r-deleted",connect:"CodeMirror-merge-r-connect"}}function n(t){t.diffOutOfDate&&(t.diff=L(t.orig.getValue(),t.edit.getValue(),t.mv.options.ignoreWhitespace),t.chunks=M(t.diff),t.diffOutOfDate=!1,e.signal(t.edit,"updateDiff",t.diff))}function r(t){function r(e){$=!0,m=!1,"full"==e&&(t.svg&&H(t.svg),t.copyButtons&&H(t.copyButtons),c(t.edit,h.marked,t.classes),c(t.orig,p.marked,t.classes),h.from=h.to=p.from=p.to=0),n(t),t.showDifferences&&(u(t.edit,t.diff,h,DIFF_INSERT,t.classes),u(t.orig,t.diff,p,DIFF_DELETE,t.classes)),"align"==t.mv.options.connect&&y(t),d(t),null!=t.needsScrollSync&&o(t,t.needsScrollSync),$=!1}function i(e){$||(t.dealigned=!0,l(e))}function l(e){$||m||(clearTimeout(f),e===!0&&(m=!0),f=setTimeout(r,e===!0?20:250))}function a(e,n){t.diffOutOfDate||(t.diffOutOfDate=!0,h.from=h.to=p.from=p.to=0),i(n.text.length-1!=n.to.line-n.from.line)}function s(){t.diffOutOfDate=!0,t.dealigned=!0,r("full")}var f,h={from:0,to:0,marked:[]},p={from:0,to:0,marked:[]},m=!1;return t.edit.on("change",a),t.orig.on("change",a),t.edit.on("swapDoc",s),t.orig.on("swapDoc",s),"align"==t.mv.options.connect&&(e.on(t.edit.state.trackAlignable,"realign",i),e.on(t.orig.state.trackAlignable,"realign",i)),t.edit.on("viewportChange",function(){l(!1)}),t.orig.on("viewportChange",function(){l(!1)}),r(),r}function i(e,t){e.edit.on("scroll",function(){o(e,!0)&&d(e)}),e.orig.on("scroll",function(){o(e,!1)&&d(e),t&&o(t,!0)&&d(t)})}function o(e,t){if(e.diffOutOfDate)return e.lockScroll&&null==e.needsScrollSync&&(e.needsScrollSync=t),!1;if(e.needsScrollSync=null,!e.lockScroll)return!0;var n,r,i=+new Date;if(t?(n=e.edit,r=e.orig):(n=e.orig,r=e.edit),n.state.scrollSetBy==e&&(n.state.scrollSetAt||0)+250>i)return!1;var o=n.getScrollInfo();if("align"==e.mv.options.connect)g=o.top;else{var a,s,c=.5*o.clientHeight,u=o.top+c,f=n.lineAtHeight(u,"local"),h=O(e.chunks,f,t),d=l(n,t?h.edit:h.orig),p=l(r,t?h.orig:h.edit),m=(u-d.top)/(d.bot-d.top),g=p.top-c+m*(p.bot-p.top);if(g>o.top&&(s=o.top/c)<1)g=g*s+o.top*(1-s);else if((a=o.height-o.clientHeight-o.top)<c){var v=r.getScrollInfo(),y=v.height-v.clientHeight-g;y>a&&(s=a/c)<1&&(g=g*s+(v.height-v.clientHeight-a)*(1-s))}}return r.scrollTo(o.left,g),r.state.scrollSetAt=i,r.state.scrollSetBy=e,!0}function l(e,t){var n=t.after;return null==n&&(n=e.lastLine()+1),{top:e.heightAtLine(t.before||0,"local"),bot:e.heightAtLine(n,"local")}}function a(e,t,n){e.lockScroll=t,t&&0!=n&&o(e,DIFF_INSERT)&&d(e),e.lockButton.innerHTML=t?"⇛⇚":"⇛&nbsp;&nbsp;⇚"}function s(e,t,n){for(var r=n.classLocation,i=0;i<r.length;i++)e.removeLineClass(t,r[i],n.chunk),e.removeLineClass(t,r[i],n.start),e.removeLineClass(t,r[i],n.end)}function c(t,n,r){for(var i=0;i<n.length;++i){var o=n[i];o instanceof e.TextMarker?o.clear():o.parent&&s(t,o,r)}n.length=0}function u(e,t,n,r,i){var o=e.getViewport();e.operation(function(){n.from==n.to||o.from-n.to>20||n.from-o.to>20?(c(e,n.marked,i),h(e,t,r,n.marked,o.from,o.to,i),n.from=o.from,n.to=o.to):(o.from<n.from&&(h(e,t,r,n.marked,o.from,n.from,i),n.from=o.from),o.to>n.to&&(h(e,t,r,n.marked,n.to,o.to,i),n.to=o.to))})}function f(e,t,n,r,i,o){for(var l=n.classLocation,a=e.getLineHandle(t),s=0;s<l.length;s++)r&&e.addLineClass(a,l[s],n.chunk),i&&e.addLineClass(a,l[s],n.start),o&&e.addLineClass(a,l[s],n.end);return a}function h(e,t,n,r,i,o,l){function a(t,n){for(var a=Math.max(i,t),s=Math.min(o,n),c=a;s>c;++c)r.push(f(e,c,l,!0,c==t,c==n-1));t==n&&a==n&&s==n&&(a?r.push(f(e,a-1,l,!1,!1,!0)):r.push(f(e,a,l,!1,!0,!1)))}for(var s=V(0,0),c=V(i,0),u=e.clipPos(V(o-1)),h=n==DIFF_DELETE?l.del:l.insert,d=0,p=!1,m=0;m<t.length;++m){var g=t[m],v=g[0],y=g[1];if(v==DIFF_EQUAL){var x=s.line+(A(t,m)?0:1);R(s,y);var b=s.line+(T(t,m)?1:0);b>x&&(p&&(a(d,x),p=!1),d=b)}else if(p=!0,v==n){var C=R(s,y,!0),w=j(c,s),k=B(u,C);z(w,k)||r.push(e.markText(w,k,{className:h})),s=C}}p&&a(d,s.line+1)}function d(e){if(e.showDifferences){if(e.svg){H(e.svg);var t=e.gap.offsetWidth;W(e.svg,e.gap.offsetHeight)}e.copyButtons&&H(e.copyButtons);for(var n=e.edit.getViewport(),r=e.orig.getViewport(),i=e.mv.wrap.getBoundingClientRect().top,o=i-e.edit.getScrollerElement().getBoundingClientRect().top+e.edit.getScrollInfo().top,l=i-e.orig.getScrollerElement().getBoundingClientRect().top+e.orig.getScrollInfo().top,a=0;a<e.chunks.length;a++){var s=e.chunks[a];s.editFrom<=n.to&&s.editTo>=n.from&&s.origFrom<=r.to&&s.origTo>=r.from&&C(e,s,l,o,t)}}}function p(e,t){for(var n=0,r=0,i=0;i<t.length;i++){var o=t[i];if(o.editTo>e&&o.editFrom<=e)return null;if(o.editFrom>e)break;n=o.editTo,r=o.origTo}return r+(e-n)}function m(e,t,n){for(var r=e.state.trackAlignable,i=e.firstLine(),o=0,l=[],a=0;;a++){for(var s=t[a],c=s?n?s.origFrom:s.editFrom:1e9;o<r.alignable.length;o+=2){var u=r.alignable[o]+1;if(!(i>=u)){if(!(c>=u))break;l.push(u)}}if(!s)break;l.push(i=n?s.origTo:s.editTo)}return l}function g(e,t,n,r){var i=0,o=0,l=0,a=0;e:for(;;i++){var s=e[i],c=t[o];if(!s&&null==c)break;for(var u=s?s[0]:1e9,f=null==c?1e9:c;l<n.length;){var h=n[l];if(h.origFrom<=f&&h.origTo>f){o++,i--;continue e}if(h.editTo>u){if(h.editFrom<=u)continue e;break}a+=h.origTo-h.origFrom-(h.editTo-h.editFrom),l++}if(u==f-a)s[r]=f,o++;else if(f-a>u)s[r]=u+a;else{var d=[f-a,null,null];d[r]=f,e.splice(i,0,d),o++}}}function v(e,t){var n=m(e.edit,e.chunks,!1),r=[];if(t)for(var i=0,o=0;i<t.chunks.length;i++){for(var l=t.chunks[i].editTo;o<n.length&&n[o]<l;)o++;(o==n.length||n[o]!=l)&&n.splice(o++,0,l)}for(var i=0;i<n.length;i++)r.push([n[i],null,null]);return g(r,m(e.orig,e.chunks,!0),e.chunks,1),t&&g(r,m(t.orig,t.chunks,!0),t.chunks,2),r}function y(e,t){if(e.dealigned||t){if(!e.orig.curOp)return e.orig.operation(function(){y(e,t)});e.dealigned=!1;var r=e.mv.left==e?e.mv.right:e.mv.left;r&&(n(r),r.dealigned=!1);for(var i=v(e,r),o=e.mv.aligners,l=0;l<o.length;l++)o[l].clear();o.length=0;var a=[e.edit,e.orig],s=[];r&&a.push(r.orig);for(var l=0;l<a.length;l++)s.push(a[l].getScrollInfo().top);for(var c=0;c<i.length;c++)x(a,i[c],o);for(var l=0;l<a.length;l++)a[l].scrollTo(null,s[l])}}function x(e,t,n){for(var r=0,i=[],o=0;o<e.length;o++)if(null!=t[o]){var l=e[o].heightAtLine(t[o],"local");i[o]=l,r=Math.max(r,l)}for(var o=0;o<e.length;o++)if(null!=t[o]){var a=r-i[o];a>1&&n.push(b(e[o],t[o],a))}}function b(e,t,n){var r=!0;t>e.lastLine()&&(t--,r=!1);var i=document.createElement("div");return i.className="CodeMirror-merge-spacer",i.style.height=n+"px",i.style.minWidth="1px",e.addLineWidget(t,i,{height:n,above:r,mergeSpacer:!0,handleMouseEvents:!0})}function C(e,t,n,r,i){var o="left"==e.type,l=e.orig.heightAtLine(t.origFrom,"local",!0)-n;if(e.svg){var a=l,s=e.edit.heightAtLine(t.editFrom,"local",!0)-r;if(o){var c=a;a=s,s=c}var u=e.orig.heightAtLine(t.origTo,"local",!0)-n,f=e.edit.heightAtLine(t.editTo,"local",!0)-r;if(o){var c=u;u=f,f=c}W(e.svg.appendChild(document.createElementNS(K,"path")),e.classes.connect)}if(e.copyButtons){var h=e.copyButtons.appendChild(E("div","left"==e.type?"⇝":"⇜","CodeMirror-merge-copy")),d=e.mv.options.allowEditingOriginals;if(h.title=d?"Push to left":"Revert chunk",h.chunk=t,h.style.top=(t.origTo>t.origFrom?l:e.edit.heightAtLine(t.editFrom,"local")-r)+"px",d){var p=e.edit.heightAtLine(t.editFrom,"local")-r,m=e.copyButtons.appendChild(E("div","right"==e.type?"⇝":"⇜","CodeMirror-merge-copy-reverse"));m.title="Push to right",m.chunk={editFrom:t.origFrom,editTo:t.origTo,origFrom:t.editFrom,origTo:t.editTo},m.style.top=p+"px","right"==e.type?m.style.left="2px":m.style.right="2px"}}}function w(e,t,n,r){if(!e.diffOutOfDate){var i=r.origTo>n.lastLine()?V(r.origFrom-1):V(r.origFrom,0),o=V(r.origTo,0),l=r.editTo>t.lastLine()?V(r.editFrom-1):V(r.editFrom,0),a=V(r.editTo,0),s=e.mv.options.revertChunk;s?s(e.mv,n,i,o,t,l,a):t.replaceRange(n.getRange(i,o),l,a)}}function k(t){var n=t.lockButton=E("div",null,"CodeMirror-merge-scrolllock");n.title="Toggle locked scrolling";var r=E("div",[n],"CodeMirror-merge-scrolllock-wrap");e.on(n,"click",function(){a(t,!t.lockScroll)});var i=[r];if(t.mv.options.revertButtons!==!1&&(t.copyButtons=E("div",null,"CodeMirror-merge-copybuttons-"+t.type),e.on(t.copyButtons,"click",function(e){var n=e.target||e.srcElement;if(n.chunk)return"CodeMirror-merge-copy-reverse"==n.className?void w(t,t.orig,t.edit,n.chunk):void w(t,t.edit,t.orig,n.chunk)}),i.unshift(t.copyButtons)),"align"!=t.mv.options.connect){var o=document.createElementNS&&document.createElementNS(K,"svg");o&&!o.createSVGRect&&(o=null),t.svg=o,o&&i.push(o)}return t.gap=E("div",i,"CodeMirror-merge-gap")}function S(e){return"string"==typeof e?e:e.getValue()}function L(e,t,n){Y||(Y=new diff_match_patch);for(var r=Y.diff_main(e,t),i=0;i<r.length;++i){var o=r[i];(n?/[^ \t]/.test(o[1]):o[1])?i&&r[i-1][0]==o[0]&&(r.splice(i--,1),r[i][1]+=o[1]):r.splice(i--,1)}return r}function M(e){for(var t=[],n=0,r=0,i=V(0,0),o=V(0,0),l=0;l<e.length;++l){var a=e[l],s=a[0];if(s==DIFF_EQUAL){var c=!A(e,l)||i.line<n||o.line<r?1:0,u=i.line+c,f=o.line+c;R(i,a[1],null,o);var h=T(e,l)?1:0,d=i.line+h,p=o.line+h;d>u&&(l&&t.push({origFrom:r,origTo:f,editFrom:n,editTo:u}),n=d,r=p)}else R(s==DIFF_INSERT?i:o,a[1])}return(n<=i.line||r<=o.line)&&t.push({origFrom:r,origTo:o.line+1,editFrom:n,editTo:i.line+1}),t}function T(e,t){if(t==e.length-1)return!0;var n=e[t+1][1];return!(1==n.length&&t<e.length-2||10!=n.charCodeAt(0))&&(t==e.length-2||(n=e[t+2][1],(n.length>1||t==e.length-3)&&10==n.charCodeAt(0)))}function A(e,t){if(0==t)return!0;var n=e[t-1][1];return 10==n.charCodeAt(n.length-1)&&(1==t||(n=e[t-2][1],10==n.charCodeAt(n.length-1)))}function O(e,t,n){for(var r,i,o,l,a=0;a<e.length;a++){var s=e[a],c=n?s.editFrom:s.origFrom,u=n?s.editTo:s.origTo;null==i&&(c>t?(i=s.editFrom,l=s.origFrom):u>t&&(i=s.editTo,l=s.origTo)),t>=u?(r=s.editTo,o=s.origTo):t>=c&&(r=s.editFrom,o=s.origFrom)}return{edit:{before:r,after:i},orig:{before:o,after:l}}}function N(t,n,r){function i(){l.clear(),t.removeLineClass(n,"wrap","CodeMirror-merge-collapsed-line")}t.addLineClass(n,"wrap","CodeMirror-merge-collapsed-line");var o=document.createElement("span");o.className="CodeMirror-merge-collapsed-widget",o.title="Identical text collapsed. Click to expand.";var l=t.markText(V(n,0),V(r-1),{inclusiveLeft:!0,inclusiveRight:!0,replacedWith:o,clearOnEnter:!0});return l.explicitlyCleared&&i(),e.on(o,"click",i),l.on("clear",i),e.on(o,"click",i),{mark:l,clear:i}}function P(e,t){function n(){for(var e=0;e<r.length;e++)r[e].clear()}for(var r=[],i=0;i<t.length;i++){var o=t[i],l=N(o.cm,o.line,o.line+e);r.push(l),l.mark.on("clear",n)}return r[0].mark}function D(e,t,n,r){for(var i=0;i<e.chunks.length;i++)for(var o=e.chunks[i],l=o.editFrom-t;l<o.editTo+t;l++){var a=l+n;a>=0&&a<r.length&&(r[a]=!1)}}function F(e,t){"number"!=typeof t&&(t=2);for(var n=[],r=e.editor(),i=r.firstLine(),o=i,l=r.lastLine();l>=o;o++)n.push(!0);e.left&&D(e.left,t,i,n),e.right&&D(e.right,t,i,n);for(var a=0;a<n.length;a++)if(n[a]){for(var s=a+i,c=1;a<n.length-1&&n[a+1];a++,c++);if(c>t){var u=[{line:s,cm:r}];e.left&&u.push({line:p(s,e.left.chunks),cm:e.left.orig}),e.right&&u.push({line:p(s,e.right.chunks),cm:e.right.orig});var f=P(c,u);e.options.onCollapse&&e.options.onCollapse(e,s,c,f)}}}function E(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function H(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild)}function W(e){for(var t=1;t<arguments.length;t+=2)e.setAttribute(arguments[t],arguments[t+1])}function I(e,t){t||(t={});for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function R(e,t,n,r){for(var i=n?V(e.line,e.ch):e,o=0;;){var l=t.indexOf("\n",o);if(-1==l)break;++i.line,r&&++r.line,o=l+1}return i.ch=(o?0:i.ch)+(t.length-o),r&&(r.ch=(o?0:r.ch)+(t.length-o)),i}function _(e){this.cm=e,this.alignable=[],this.height=e.doc.height;var t=this;e.on("markerAdded",function(e,n){if(n.collapsed){var r=n.find(1);null!=r&&t.set(r.line,Z)}}),e.on("markerCleared",function(e,n,r,i){null!=i&&n.collapsed&&t.check(i,Z,t.hasMarker)}),e.on("markerChanged",this.signal.bind(this)),e.on("lineWidgetAdded",function(e,n,r){n.mergeSpacer||(n.above?t.set(r-1,J):t.set(r,Q))}),e.on("lineWidgetCleared",function(e,n,r){n.mergeSpacer||(n.above?t.check(r-1,J,t.hasWidgetBelow):t.check(r,Q,t.hasWidget))}),e.on("lineWidgetChanged",this.signal.bind(this)),e.on("change",function(e,n){var r=n.from.line,i=n.to.line-n.from.line,o=n.text.length-1,l=r+o;(i||o)&&t.map(r,i,o),t.check(l,Z,t.hasMarker),(i||o)&&t.check(n.from.line,Z,t.hasMarker)}),e.on("viewportChange",function(){t.cm.doc.height!=t.height&&t.signal()})}function B(e,t){return(e.line-t.line||e.ch-t.ch)<0?e:t}function j(e,t){return(e.line-t.line||e.ch-t.ch)>0?e:t}function z(e,t){return e.line==t.line&&e.ch==t.ch}function q(e,t,n){for(var r=e.length-1;r>=0;r--){var i=e[r],o=(n?i.origTo:i.editTo)-1;if(t>o)return o}}function U(e,t,n){for(var r=0;r<e.length;r++){var i=e[r],o=n?i.origFrom:i.editFrom;if(o>t)return o}}function G(t,r){var i=null,o=t.state.diffViews,l=t.getCursor().line;if(o)for(var a=0;a<o.length;a++){var s=o[a],c=t==s.orig;n(s);var u=0>r?q(s.chunks,l,c):U(s.chunks,l,c);null==u||null!=i&&!(0>r?u>i:i>u)||(i=u)}
return null==i?e.Pass:void t.setCursor(i,0)}var V=e.Pos,K="http://www.w3.org/2000/svg";t.prototype={constructor:t,init:function(t,n,r){this.edit=this.mv.edit,(this.edit.state.diffViews||(this.edit.state.diffViews=[])).push(this),this.orig=e(t,I({value:n,readOnly:!this.mv.options.allowEditingOriginals},I(r))),"align"==this.mv.options.connect&&(this.edit.state.trackAlignable||(this.edit.state.trackAlignable=new _(this.edit)),this.orig.state.trackAlignable=new _(this.orig)),this.orig.state.diffViews=[this];var i=r.chunkClassLocation||"background";"[object Array]"!=Object.prototype.toString.call(i)&&(i=[i]),this.classes.classLocation=i,this.diff=L(S(n),S(r.value),this.mv.options.ignoreWhitespace),this.chunks=M(this.diff),this.diffOutOfDate=this.dealigned=!1,this.needsScrollSync=null,this.showDifferences=r.showDifferences!==!1},registerEvents:function(e){this.forceUpdate=r(this),a(this,!0,!1),i(this,e)},setShowDifferences:function(e){(e=e!==!1)!=this.showDifferences&&(this.showDifferences=e,this.forceUpdate("full"))}};var $=!1,X=e.MergeView=function(n,r){if(!(this instanceof X))return new X(n,r);this.options=r;var i=r.origLeft,o=null==r.origRight?r.orig:r.origRight,l=null!=i,a=null!=o,s=1+(l?1:0)+(a?1:0),c=[],u=this.left=null,f=this.right=null,h=this;if(l){u=this.left=new t(this,"left");var p=E("div",null,"CodeMirror-merge-pane CodeMirror-merge-left");c.push(p),c.push(k(u))}var m=E("div",null,"CodeMirror-merge-pane CodeMirror-merge-editor");if(c.push(m),a){f=this.right=new t(this,"right"),c.push(k(f));var g=E("div",null,"CodeMirror-merge-pane CodeMirror-merge-right");c.push(g)}(a?g:m).className+=" CodeMirror-merge-pane-rightmost",c.push(E("div",null,null,"height: 0; clear: both;"));var v=this.wrap=n.appendChild(E("div",c,"CodeMirror-merge CodeMirror-merge-"+s+"pane"));this.edit=e(m,I(r)),u&&u.init(p,i,r),f&&f.init(g,o,r),r.collapseIdentical&&this.editor().operation(function(){F(h,r.collapseIdentical)}),"align"==r.connect&&(this.aligners=[],y(this.left||this.right,!0)),u&&u.registerEvents(f),f&&f.registerEvents(u);var x=function(){u&&d(u),f&&d(f)};e.on(window,"resize",x);var b=setInterval(function(){for(var t=v.parentNode;t&&t!=document.body;t=t.parentNode);t||(clearInterval(b),e.off(window,"resize",x))},5e3)};X.prototype={constructor:X,editor:function(){return this.edit},rightOriginal:function(){return this.right&&this.right.orig},leftOriginal:function(){return this.left&&this.left.orig},setShowDifferences:function(e){this.right&&this.right.setShowDifferences(e),this.left&&this.left.setShowDifferences(e)},rightChunks:function(){return this.right?(n(this.right),this.right.chunks):void 0},leftChunks:function(){return this.left?(n(this.left),this.left.chunks):void 0}};var Y,Q=1,J=2,Z=4;_.prototype={signal:function(){e.signal(this,"realign"),this.height=this.cm.doc.height},set:function(e,t){for(var n=-1;n<this.alignable.length;n+=2){var r=this.alignable[n]-e;if(0==r){if((this.alignable[n+1]&t)==t)return;return this.alignable[n+1]|=t,void this.signal()}if(r>0)break}this.signal(),this.alignable.splice(n,0,e,t)},find:function(e){for(var t=0;t<this.alignable.length;t+=2)if(this.alignable[t]==e)return t;return-1},check:function(e,t,n){var r=this.find(e);if(-1!=r&&this.alignable[r+1]&t&&!n.call(this,e)){this.signal();var i=this.alignable[r+1]&~t;i?this.alignable[r+1]=i:this.alignable.splice(r,2)}},hasMarker:function(e){var t=this.cm.getLineHandle(e);if(t.markedSpans)for(var n=0;n<t.markedSpans.length;n++)if(t.markedSpans[n].mark.collapsed&&null!=t.markedSpans[n].to)return!0;return!1},hasWidget:function(e){var t=this.cm.getLineHandle(e);if(t.widgets)for(var n=0;n<t.widgets.length;n++)if(!t.widgets[n].above&&!t.widgets[n].mergeSpacer)return!0;return!1},hasWidgetBelow:function(e){if(e==this.cm.lastLine())return!1;var t=this.cm.getLineHandle(e+1);if(t.widgets)for(var n=0;n<t.widgets.length;n++)if(t.widgets[n].above&&!t.widgets[n].mergeSpacer)return!0;return!1},map:function(e,t,n){for(var r=n-t,i=e+t,o=-1,l=-1,a=0;a<this.alignable.length;a+=2){var s=this.alignable[a];s==e&&this.alignable[a+1]&J&&(o=a),s==i&&this.alignable[a+1]&J&&(l=a),e>=s||(i>s?this.alignable.splice(a--,2):this.alignable[a]+=r)}if(o>-1){var c=this.alignable[o+1];c==J?this.alignable.splice(o,2):this.alignable[o+1]=c&~J}l>-1&&n&&this.set(e+n,J)}},e.commands.goNextDiff=function(e){return G(e,1)},e.commands.goPrevDiff=function(e){return G(e,-1)}}),
// Distributed under an MIT license: https://codemirror.net/LICENSE
function(e){"object"==typeof exports&&"object"==typeof module?e(require("../lib/codemirror")):"function"==typeof define&&define.amd?define(["../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history).md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"null",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m","mm"],alias:["objective-c","objc"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["cgi","pl","pm"]},{name:"PHP",mimes:["application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki ",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]}];for(var t=0;t<e.modeInfo.length;t++){var n=e.modeInfo[t];n.mimes&&(n.mime=n.mimes[0])}e.findModeByMIME=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.mime==t)return r;if(r.mimes)for(var i=0;i<r.mimes.length;i++)if(r.mimes[i]==t)return r}return/\+xml$/.test(t)?e.findModeByMIME("application/xml"):/\+json$/.test(t)?e.findModeByMIME("application/json"):void 0},e.findModeByExtension=function(t){for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.ext)for(var i=0;i<r.ext.length;i++)if(r.ext[i]==t)return r}},e.findModeByFileName=function(t){for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.file&&r.file.test(t))return r}var i=t.lastIndexOf("."),o=i>-1&&t.substring(i+1,t.length);if(o)return e.findModeByExtension(o)},e.findModeByName=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.name.toLowerCase()==t)return r;if(r.alias)for(var i=0;i<r.alias.length;i++)if(r.alias[i].toLowerCase()==t)return r}}}),
// Distributed under an MIT license: http://codemirror.net/LICENSE
function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),"cjs"):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],function(t){e(t,"amd")}):e(CodeMirror,"plain")}(function(e,t){function n(e,t){var n=t;return function(){0==--n&&e()}}function r(t,r){var i;if(e.modes[t]&&(i=e.modes[t].dependencies),!i)return r();for(var o=[],l=0;l<i.length;++l)e.modes.hasOwnProperty(i[l])||o.push(i[l]);if(!o.length)return r();for(var a=n(r,o.length),l=0;l<o.length;++l)e.requireMode(o[l],a)}e.modeURL||(e.modeURL="../mode/%N/%N.js");var i={};e.requireMode=function(n,o){if("string"!=typeof n&&(n=n.name),e.modes.hasOwnProperty(n))return r(n,o);if(i.hasOwnProperty(n))return i[n].push(o);var l=e.modeURL.replace(/%N/g,n);if("plain"==t){var a=document.createElement("script");a.src=l;var s=document.getElementsByTagName("script")[0],c=i[n]=[o];e.on(a,"load",function(){r(n,function(){for(var e=0;e<c.length;++e)c[e]()})}),s.parentNode.insertBefore(a,s)}else"cjs"==t?(require(l),o()):"amd"==t&&requirejs([l],o)},e.autoLoadMode=function(t,n){e.modes.hasOwnProperty(n)||e.requireMode(n,function(){t.setOption("mode",t.getOption("mode"))})}});!function(e,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a():"function"==typeof define&&define.amd?define(a):e.moment=a()}(this,function(){"use strict";function e(){return wn.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function t(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var a;for(a in e)if(e.hasOwnProperty(a))return!1;return!0}function n(e){return void 0===e}function d(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function r(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function _(e,a){var t,s=[];for(t=0;t<e.length;++t)s.push(a(e[t],t));return s}function i(e,a){return Object.prototype.hasOwnProperty.call(e,a)}function o(e,a){for(var t in a)i(a,t)&&(e[t]=a[t]);return i(a,"toString")&&(e.toString=a.toString),i(a,"valueOf")&&(e.valueOf=a.valueOf),e}function m(e,a,t,s){return Ta(e,a,t,s,!0).utc()}function u(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function l(e){return null==e._pf&&(e._pf=u()),e._pf}function M(e){if(null==e._isValid){var a=l(e),t=vn.call(a.parsedDateParts,function(e){return null!=e}),s=!isNaN(e._d.getTime())&&a.overflow<0&&!a.empty&&!a.invalidMonth&&!a.invalidWeekday&&!a.weekdayMismatch&&!a.nullInput&&!a.invalidFormat&&!a.userInvalidated&&(!a.meridiem||a.meridiem&&t);if(e._strict&&(s=s&&0===a.charsLeftOver&&0===a.unusedTokens.length&&void 0===a.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return s;e._isValid=s}return e._isValid}function h(e){var a=m(NaN);return null!=e?o(l(a),e):l(a).userInvalidated=!0,a}function L(e,a){var t,s,d;if(n(a._isAMomentObject)||(e._isAMomentObject=a._isAMomentObject),n(a._i)||(e._i=a._i),n(a._f)||(e._f=a._f),n(a._l)||(e._l=a._l),n(a._strict)||(e._strict=a._strict),n(a._tzm)||(e._tzm=a._tzm),n(a._isUTC)||(e._isUTC=a._isUTC),n(a._offset)||(e._offset=a._offset),n(a._pf)||(e._pf=l(a)),n(a._locale)||(e._locale=a._locale),Sn.length>0)for(t=0;t<Sn.length;t++)s=Sn[t],d=a[s],n(d)||(e[s]=d);return e}function c(a){L(this,a),this._d=new Date(null!=a._d?a._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Hn===!1&&(Hn=!0,e.updateOffset(this),Hn=!1)}function Y(e){return e instanceof c||null!=e&&null!=e._isAMomentObject}function y(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function f(e){var a=+e,t=0;return 0!==a&&isFinite(a)&&(t=y(a)),t}function p(e,a,t){var s,n=Math.min(e.length,a.length),d=Math.abs(e.length-a.length),r=0;for(s=0;s<n;s++)(t&&e[s]!==a[s]||!t&&f(e[s])!==f(a[s]))&&r++;return r+d}function k(a){e.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+a)}function D(a,t){var s=!0;return o(function(){if(null!=e.deprecationHandler&&e.deprecationHandler(null,a),s){for(var n,d=[],r=0;r<arguments.length;r++){if(n="","object"==typeof arguments[r]){n+="\n["+r+"] ";for(var _ in arguments[0])n+=_+": "+arguments[0][_]+", ";n=n.slice(0,-2)}else n=arguments[r];d.push(n)}k(a+"\nArguments: "+Array.prototype.slice.call(d).join("")+"\n"+(new Error).stack),s=!1}return t.apply(this,arguments)},t)}function T(a,t){null!=e.deprecationHandler&&e.deprecationHandler(a,t),bn[a]||(k(t),bn[a]=!0)}function g(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function w(e){var a,t;for(t in e)a=e[t],g(a)?this[t]=a:this["_"+t]=a;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function v(e,a){var s,n=o({},e);for(s in a)i(a,s)&&(t(e[s])&&t(a[s])?(n[s]={},o(n[s],e[s]),o(n[s],a[s])):null!=a[s]?n[s]=a[s]:delete n[s]);for(s in e)i(e,s)&&!i(a,s)&&t(e[s])&&(n[s]=o({},n[s]));return n}function S(e){null!=e&&this.set(e)}function H(e,a,t){var s=this._calendar[e]||this._calendar.sameElse;return g(s)?s.call(a,t):s}function b(e){var a=this._longDateFormat[e],t=this._longDateFormat[e.toUpperCase()];return a||!t?a:(this._longDateFormat[e]=t.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}function j(){return this._invalidDate}function x(e){return this._ordinal.replace("%d",e)}function P(e,a,t,s){var n=this._relativeTime[t];return g(n)?n(e,a,t,s):n.replace(/%d/i,e)}function O(e,a){var t=this._relativeTime[e>0?"future":"past"];return g(t)?t(a):t.replace(/%s/i,a)}function W(e,a){var t=e.toLowerCase();Wn[t]=Wn[t+"s"]=Wn[a]=e}function E(e){return"string"==typeof e?Wn[e]||Wn[e.toLowerCase()]:void 0}function A(e){var a,t,s={};for(t in e)i(e,t)&&(a=E(t))&&(s[a]=e[t]);return s}function F(e,a){En[e]=a}function z(e){var a=[];for(var t in e)a.push({unit:t,priority:En[t]});return a.sort(function(e,a){return e.priority-a.priority}),a}function J(e,a,t){var s=""+Math.abs(e),n=a-s.length;return(e>=0?t?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+s}function N(e,a,t,s){var n=s;"string"==typeof s&&(n=function(){return this[s]()}),e&&(Jn[e]=n),a&&(Jn[a[0]]=function(){return J(n.apply(this,arguments),a[1],a[2])}),t&&(Jn[t]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function R(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function I(e){var a,t,s=e.match(An);for(a=0,t=s.length;a<t;a++)Jn[s[a]]?s[a]=Jn[s[a]]:s[a]=R(s[a]);return function(a){var n,d="";for(n=0;n<t;n++)d+=g(s[n])?s[n].call(a,e):s[n];return d}}function C(e,a){return e.isValid()?(a=G(a,e.localeData()),zn[a]=zn[a]||I(a),zn[a](e)):e.localeData().invalidDate()}function G(e,a){function t(e){return a.longDateFormat(e)||e}var s=5;for(Fn.lastIndex=0;s>=0&&Fn.test(e);)e=e.replace(Fn,t),Fn.lastIndex=0,s-=1;return e}function U(e,a,t){Gn[e]=g(a)?a:function(e,s){return e&&t?t:a}}function V(e,a){return i(Gn,e)?Gn[e](a._strict,a._locale):new RegExp(K(e))}function K(e){return Z(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,a,t,s,n){return a||t||s||n}))}function Z(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function $(e,a){var t,s=a;for("string"==typeof e&&(e=[e]),d(a)&&(s=function(e,t){t[a]=f(e)}),t=0;t<e.length;t++)Un[e[t]]=s}function B(e,a){$(e,function(e,t,s,n){s._w=s._w||{},a(e,s._w,s,n)})}function q(e,a,t){null!=a&&i(Un,e)&&Un[e](a,t._a,t,e)}function Q(e){return X(e)?366:365}function X(e){return e%4==0&&e%100!=0||e%400==0}function ee(){return X(this.year())}function ae(a,t){return function(s){return null!=s?(se(this,a,s),e.updateOffset(this,t),this):te(this,a)}}function te(e,a){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+a]():NaN}function se(e,a,t){e.isValid()&&!isNaN(t)&&("FullYear"===a&&X(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+a](t,e.month(),_e(t,e.month())):e._d["set"+(e._isUTC?"UTC":"")+a](t))}function ne(e){return e=E(e),g(this[e])?this[e]():this}function de(e,a){if("object"==typeof e){e=A(e);for(var t=z(e),s=0;s<t.length;s++)this[t[s].unit](e[t[s].unit])}else if(e=E(e),g(this[e]))return this[e](a);return this}function re(e,a){return(e%a+a)%a}function _e(e,a){if(isNaN(e)||isNaN(a))return NaN;var t=re(a,12);return e+=(a-t)/12,1===t?X(e)?29:28:31-t%7%2}function ie(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||sd).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone}function oe(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[sd.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function me(e,a,t){var s,n,d,r=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)d=m([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(d,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(d,"").toLocaleLowerCase();return t?"MMM"===a?(n=ad.call(this._shortMonthsParse,r),n!==-1?n:null):(n=ad.call(this._longMonthsParse,r),n!==-1?n:null):"MMM"===a?(n=ad.call(this._shortMonthsParse,r))!==-1?n:(n=ad.call(this._longMonthsParse,r),n!==-1?n:null):(n=ad.call(this._longMonthsParse,r))!==-1?n:(n=ad.call(this._shortMonthsParse,r),n!==-1?n:null)}function ue(e,a,t){var s,n,d;if(this._monthsParseExact)return me.call(this,e,a,t);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(n=m([2e3,s]),t&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),t||this._monthsParse[s]||(d="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[s]=new RegExp(d.replace(".",""),"i")),t&&"MMMM"===a&&this._longMonthsParse[s].test(e))return s;if(t&&"MMM"===a&&this._shortMonthsParse[s].test(e))return s;if(!t&&this._monthsParse[s].test(e))return s}}function le(e,a){var t;if(!e.isValid())return e;if("string"==typeof a)if(/^\d+$/.test(a))a=f(a);else if(a=e.localeData().monthsParse(a),!d(a))return e;return t=Math.min(e.date(),_e(e.year(),a)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](a,t),e}function Me(a){return null!=a?(le(this,a),e.updateOffset(this,!0),this):te(this,"Month")}function he(){return _e(this.year(),this.month())}function Le(e){return this._monthsParseExact?(i(this,"_monthsRegex")||Ye.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(i(this,"_monthsShortRegex")||(this._monthsShortRegex=rd),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ce(e){return this._monthsParseExact?(i(this,"_monthsRegex")||Ye.call(this),e?this._monthsStrictRegex:this._monthsRegex):(i(this,"_monthsRegex")||(this._monthsRegex=_d),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Ye(){function e(e,a){return a.length-e.length}var a,t,s=[],n=[],d=[];for(a=0;a<12;a++)t=m([2e3,a]),s.push(this.monthsShort(t,"")),n.push(this.months(t,"")),d.push(this.months(t,"")),d.push(this.monthsShort(t,""));for(s.sort(e),n.sort(e),d.sort(e),a=0;a<12;a++)s[a]=Z(s[a]),n[a]=Z(n[a]);for(a=0;a<24;a++)d[a]=Z(d[a]);this._monthsRegex=new RegExp("^("+d.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+s.join("|")+")","i")}function ye(e,a,t,s,n,d,r){var _=new Date(e,a,t,s,n,d,r);return e<100&&e>=0&&isFinite(_.getFullYear())&&_.setFullYear(e),_}function fe(e){var a=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(a.getUTCFullYear())&&a.setUTCFullYear(e),a}function pe(e,a,t){var s=7+a-t;return-((7+fe(e,0,s).getUTCDay()-a)%7)+s-1}function ke(e,a,t,s,n){var d,r,_=(7+t-s)%7,i=pe(e,s,n),o=1+7*(a-1)+_+i;return o<=0?(d=e-1,r=Q(d)+o):o>Q(e)?(d=e+1,r=o-Q(e)):(d=e,r=o),{year:d,dayOfYear:r}}function De(e,a,t){var s,n,d=pe(e.year(),a,t),r=Math.floor((e.dayOfYear()-d-1)/7)+1;return r<1?(n=e.year()-1,s=r+Te(n,a,t)):r>Te(e.year(),a,t)?(s=r-Te(e.year(),a,t),n=e.year()+1):(n=e.year(),s=r),{week:s,year:n}}function Te(e,a,t){var s=pe(e,a,t),n=pe(e+1,a,t);return(Q(e)-s+n)/7}function ge(e){return De(e,this._week.dow,this._week.doy).week}function we(){return this._week.dow}function ve(){return this._week.doy}function Se(e){var a=this.localeData().week(this);return null==e?a:this.add(7*(e-a),"d")}function He(e){var a=De(this,1,4).week;return null==e?a:this.add(7*(e-a),"d")}function be(e,a){return"string"!=typeof e?e:isNaN(e)?(e=a.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function je(e,a){return"string"==typeof e?a.weekdaysParse(e)%7||7:isNaN(e)?null:e}function xe(e,t){return e?a(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:a(this._weekdays)?this._weekdays:this._weekdays.standalone}function Pe(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Oe(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function We(e,a,t){var s,n,d,r=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)d=m([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(d,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(d,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(d,"").toLocaleLowerCase();return t?"dddd"===a?(n=ad.call(this._weekdaysParse,r),n!==-1?n:null):"ddd"===a?(n=ad.call(this._shortWeekdaysParse,r),n!==-1?n:null):(n=ad.call(this._minWeekdaysParse,r),n!==-1?n:null):"dddd"===a?(n=ad.call(this._weekdaysParse,r))!==-1?n:(n=ad.call(this._shortWeekdaysParse,r))!==-1?n:(n=ad.call(this._minWeekdaysParse,r),n!==-1?n:null):"ddd"===a?(n=ad.call(this._shortWeekdaysParse,r))!==-1?n:(n=ad.call(this._weekdaysParse,r))!==-1?n:(n=ad.call(this._minWeekdaysParse,r),n!==-1?n:null):(n=ad.call(this._minWeekdaysParse,r))!==-1?n:(n=ad.call(this._weekdaysParse,r))!==-1?n:(n=ad.call(this._shortWeekdaysParse,r),n!==-1?n:null)}function Ee(e,a,t){var s,n,d;if(this._weekdaysParseExact)return We.call(this,e,a,t);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(n=m([2e3,1]).day(s),t&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(n,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(n,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(n,"").replace(".",".?")+"$","i")),this._weekdaysParse[s]||(d="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[s]=new RegExp(d.replace(".",""),"i")),t&&"dddd"===a&&this._fullWeekdaysParse[s].test(e))return s;if(t&&"ddd"===a&&this._shortWeekdaysParse[s].test(e))return s;if(t&&"dd"===a&&this._minWeekdaysParse[s].test(e))return s;if(!t&&this._weekdaysParse[s].test(e))return s}}function Ae(e){if(!this.isValid())return null!=e?this:NaN;var a=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=be(e,this.localeData()),this.add(e-a,"d")):a}function Fe(e){if(!this.isValid())return null!=e?this:NaN;var a=(this.day()+7-this.localeData()._week.dow)%7;return null==e?a:this.add(e-a,"d")}function ze(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var a=je(e,this.localeData());return this.day(this.day()%7?a:a-7)}return this.day()||7}function Je(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||Ie.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(i(this,"_weekdaysRegex")||(this._weekdaysRegex=ld),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ne(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||Ie.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(i(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Md),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Re(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||Ie.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(i(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=hd),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ie(){function e(e,a){return a.length-e.length}var a,t,s,n,d,r=[],_=[],i=[],o=[];for(a=0;a<7;a++)t=m([2e3,1]).day(a),s=this.weekdaysMin(t,""),n=this.weekdaysShort(t,""),d=this.weekdays(t,""),r.push(s),_.push(n),i.push(d),o.push(s),o.push(n),o.push(d);for(r.sort(e),_.sort(e),i.sort(e),o.sort(e),a=0;a<7;a++)_[a]=Z(_[a]),i[a]=Z(i[a]),o[a]=Z(o[a]);this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+_.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Ce(){return this.hours()%12||12}function Ge(){return this.hours()||24}function Ue(e,a){N(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),a)})}function Ve(e,a){return a._meridiemParse}function Ke(e){return"p"===(e+"").toLowerCase().charAt(0)}function Ze(e,a,t){return e>11?t?"pm":"PM":t?"am":"AM"}function $e(e){return e?e.toLowerCase().replace("_","-"):e}function Be(e){for(var a,t,s,n,d=0;d<e.length;){for(n=$e(e[d]).split("-"),a=n.length,t=$e(e[d+1]),t=t?t.split("-"):null;a>0;){if(s=qe(n.slice(0,a).join("-")))return s;if(t&&t.length>=a&&p(n,t,!0)>=a-1)break;a--}d++}return Ld}function qe(e){var a=null;if(!yd[e]&&"undefined"!=typeof module&&module&&module.exports)try{a=Ld._abbr;require("./locale/"+e),Qe(a)}catch(e){}return yd[e]}function Qe(e,a){var t;return e&&(t=n(a)?aa(e):Xe(e,a),t?Ld=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ld._abbr}function Xe(e,a){if(null!==a){var t,s=Yd;if(a.abbr=e,null!=yd[e])T("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=yd[e]._config;else if(null!=a.parentLocale)if(null!=yd[a.parentLocale])s=yd[a.parentLocale]._config;else{if(null==(t=qe(a.parentLocale)))return fd[a.parentLocale]||(fd[a.parentLocale]=[]),fd[a.parentLocale].push({name:e,config:a}),null;s=t._config}return yd[e]=new S(v(s,a)),fd[e]&&fd[e].forEach(function(e){Xe(e.name,e.config)}),Qe(e),yd[e]}return delete yd[e],null}function ea(e,a){if(null!=a){var t,s,n=Yd;s=qe(e),null!=s&&(n=s._config),a=v(n,a),t=new S(a),t.parentLocale=yd[e],yd[e]=t,Qe(e)}else null!=yd[e]&&(null!=yd[e].parentLocale?yd[e]=yd[e].parentLocale:null!=yd[e]&&delete yd[e]);return yd[e]}function aa(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ld;if(!a(e)){if(t=qe(e))return t;e=[e]}return Be(e)}function ta(){return jn(yd)}function sa(e){var a,t=e._a;return t&&l(e).overflow===-2&&(a=t[Kn]<0||t[Kn]>11?Kn:t[Zn]<1||t[Zn]>_e(t[Vn],t[Kn])?Zn:t[$n]<0||t[$n]>24||24===t[$n]&&(0!==t[Bn]||0!==t[qn]||0!==t[Qn])?$n:t[Bn]<0||t[Bn]>59?Bn:t[qn]<0||t[qn]>59?qn:t[Qn]<0||t[Qn]>999?Qn:-1,l(e)._overflowDayOfYear&&(a<Vn||a>Zn)&&(a=Zn),l(e)._overflowWeeks&&a===-1&&(a=Xn),l(e)._overflowWeekday&&a===-1&&(a=ed),l(e).overflow=a),e}function na(e,a,t){return null!=e?e:null!=a?a:t}function da(a){var t=new Date(e.now());return a._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function ra(e){var a,t,s,n,d,r=[];if(!e._d){for(s=da(e),e._w&&null==e._a[Zn]&&null==e._a[Kn]&&_a(e),null!=e._dayOfYear&&(d=na(e._a[Vn],s[Vn]),(e._dayOfYear>Q(d)||0===e._dayOfYear)&&(l(e)._overflowDayOfYear=!0),t=fe(d,0,e._dayOfYear),e._a[Kn]=t.getUTCMonth(),e._a[Zn]=t.getUTCDate()),a=0;a<3&&null==e._a[a];++a)e._a[a]=r[a]=s[a];for(;a<7;a++)e._a[a]=r[a]=null==e._a[a]?2===a?1:0:e._a[a];24===e._a[$n]&&0===e._a[Bn]&&0===e._a[qn]&&0===e._a[Qn]&&(e._nextDay=!0,e._a[$n]=0),e._d=(e._useUTC?fe:ye).apply(null,r),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[$n]=24),e._w&&void 0!==e._w.d&&e._w.d!==n&&(l(e).weekdayMismatch=!0)}}function _a(e){var a,t,s,n,d,r,_,i;if(a=e._w,null!=a.GG||null!=a.W||null!=a.E)d=1,r=4,t=na(a.GG,e._a[Vn],De(ga(),1,4).year),s=na(a.W,1),((n=na(a.E,1))<1||n>7)&&(i=!0);else{d=e._locale._week.dow,r=e._locale._week.doy;var o=De(ga(),d,r);t=na(a.gg,e._a[Vn],o.year),s=na(a.w,o.week),null!=a.d?((n=a.d)<0||n>6)&&(i=!0):null!=a.e?(n=a.e+d,(a.e<0||a.e>6)&&(i=!0)):n=d}s<1||s>Te(t,d,r)?l(e)._overflowWeeks=!0:null!=i?l(e)._overflowWeekday=!0:(_=ke(t,s,n,d,r),e._a[Vn]=_.year,e._dayOfYear=_.dayOfYear)}function ia(e){var a,t,s,n,d,r,_=e._i,i=pd.exec(_)||kd.exec(_);if(i){for(l(e).iso=!0,a=0,t=Td.length;a<t;a++)if(Td[a][1].exec(i[1])){n=Td[a][0],s=Td[a][2]!==!1;break}if(null==n)return void(e._isValid=!1);if(i[3]){for(a=0,t=gd.length;a<t;a++)if(gd[a][1].exec(i[3])){d=(i[2]||" ")+gd[a][0];break}if(null==d)return void(e._isValid=!1)}if(!s&&null!=d)return void(e._isValid=!1);if(i[4]){if(!Dd.exec(i[4]))return void(e._isValid=!1);r="Z"}e._f=n+(d||"")+(r||""),ca(e)}else e._isValid=!1}function oa(e,a,t,s,n,d){var r=[ma(e),dd.indexOf(a),parseInt(t,10),parseInt(s,10),parseInt(n,10)];return d&&r.push(parseInt(d,10)),r}function ma(e){var a=parseInt(e,10);return a<=49?2e3+a:a<=999?1900+a:a}function ua(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function la(e,a,t){if(e){if(md.indexOf(e)!==new Date(a[0],a[1],a[2]).getDay())return l(t).weekdayMismatch=!0,t._isValid=!1,!1}return!0}function Ma(e,a,t){if(e)return Sd[e];if(a)return 0;var s=parseInt(t,10),n=s%100;return(s-n)/100*60+n}function ha(e){var a=vd.exec(ua(e._i));if(a){var t=oa(a[4],a[3],a[2],a[5],a[6],a[7]);if(!la(a[1],t,e))return;e._a=t,e._tzm=Ma(a[8],a[9],a[10]),e._d=fe.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),l(e).rfc2822=!0}else e._isValid=!1}function La(a){var t=wd.exec(a._i);if(null!==t)return void(a._d=new Date(+t[1]));ia(a),a._isValid===!1&&(delete a._isValid,ha(a),a._isValid===!1&&(delete a._isValid,e.createFromInputFallback(a)))}function ca(a){if(a._f===e.ISO_8601)return void ia(a);if(a._f===e.RFC_2822)return void ha(a);a._a=[],l(a).empty=!0;var t,s,n,d,r,_=""+a._i,i=_.length,o=0;for(n=G(a._f,a._locale).match(An)||[],t=0;t<n.length;t++)d=n[t],s=(_.match(V(d,a))||[])[0],s&&(r=_.substr(0,_.indexOf(s)),r.length>0&&l(a).unusedInput.push(r),_=_.slice(_.indexOf(s)+s.length),o+=s.length),Jn[d]?(s?l(a).empty=!1:l(a).unusedTokens.push(d),q(d,s,a)):a._strict&&!s&&l(a).unusedTokens.push(d);l(a).charsLeftOver=i-o,_.length>0&&l(a).unusedInput.push(_),a._a[$n]<=12&&l(a).bigHour===!0&&a._a[$n]>0&&(l(a).bigHour=void 0),l(a).parsedDateParts=a._a.slice(0),l(a).meridiem=a._meridiem,a._a[$n]=Ya(a._locale,a._a[$n],a._meridiem),ra(a),sa(a)}function Ya(e,a,t){var s;return null==t?a:null!=e.meridiemHour?e.meridiemHour(a,t):null!=e.isPM?(s=e.isPM(t),s&&a<12&&(a+=12),s||12!==a||(a=0),a):a}function ya(e){var a,t,s,n,d;if(0===e._f.length)return l(e).invalidFormat=!0,void(e._d=new Date(NaN));for(n=0;n<e._f.length;n++)d=0,a=L({},e),null!=e._useUTC&&(a._useUTC=e._useUTC),a._f=e._f[n],ca(a),M(a)&&(d+=l(a).charsLeftOver,d+=10*l(a).unusedTokens.length,l(a).score=d,(null==s||d<s)&&(s=d,t=a));o(e,t||a)}function fa(e){if(!e._d){var a=A(e._i);e._a=_([a.year,a.month,a.day||a.date,a.hour,a.minute,a.second,a.millisecond],function(e){return e&&parseInt(e,10)}),ra(e)}}function pa(e){var a=new c(sa(ka(e)));return a._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function ka(e){var t=e._i,s=e._f;return e._locale=e._locale||aa(e._l),null===t||void 0===s&&""===t?h({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),Y(t)?new c(sa(t)):(r(t)?e._d=t:a(s)?ya(e):s?ca(e):Da(e),M(e)||(e._d=null),e))}function Da(s){var i=s._i;n(i)?s._d=new Date(e.now()):r(i)?s._d=new Date(i.valueOf()):"string"==typeof i?La(s):a(i)?(s._a=_(i.slice(0),function(e){return parseInt(e,10)}),ra(s)):t(i)?fa(s):d(i)?s._d=new Date(i):e.createFromInputFallback(s)}function Ta(e,n,d,r,_){var i={};return d!==!0&&d!==!1||(r=d,d=void 0),(t(e)&&s(e)||a(e)&&0===e.length)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=_,i._l=d,i._i=e,i._f=n,i._strict=r,pa(i)}function ga(e,a,t,s){return Ta(e,a,t,s,!1)}function wa(e,t){var s,n;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return ga();for(s=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](s)||(s=t[n]);return s}function va(){return wa("isBefore",[].slice.call(arguments,0))}function Sa(){return wa("isAfter",[].slice.call(arguments,0))}function Ha(e){for(var a in e)if(ad.call(xd,a)===-1||null!=e[a]&&isNaN(e[a]))return!1;for(var t=!1,s=0;s<xd.length;++s)if(e[xd[s]]){if(t)return!1;parseFloat(e[xd[s]])!==f(e[xd[s]])&&(t=!0)}return!0}function ba(){return this._isValid}function ja(){return $a(NaN)}function xa(e){var a=A(e),t=a.year||0,s=a.quarter||0,n=a.month||0,d=a.week||0,r=a.day||0,_=a.hour||0,i=a.minute||0,o=a.second||0,m=a.millisecond||0;this._isValid=Ha(a),this._milliseconds=+m+1e3*o+6e4*i+1e3*_*60*60,this._days=+r+7*d,this._months=+n+3*s+12*t,this._data={},this._locale=aa(),this._bubble()}function Pa(e){return e instanceof xa}function Oa(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Wa(e,a){N(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+J(~~(e/60),2)+a+J(~~e%60,2)})}function Ea(e,a){var t=(a||"").match(e);if(null===t)return null;var s=t[t.length-1]||[],n=(s+"").match(Pd)||["-",0,0],d=+(60*n[1])+f(n[2]);return 0===d?0:"+"===n[0]?d:-d}function Aa(a,t){var s,n;return t._isUTC?(s=t.clone(),n=(Y(a)||r(a)?a.valueOf():ga(a).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+n),e.updateOffset(s,!1),s):ga(a).local()}function Fa(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function za(a,t,s){var n,d=this._offset||0;if(!this.isValid())return null!=a?this:NaN;if(null!=a){if("string"==typeof a){if(null===(a=Ea(In,a)))return this}else Math.abs(a)<16&&!s&&(a*=60);return!this._isUTC&&t&&(n=Fa(this)),this._offset=a,this._isUTC=!0,null!=n&&this.add(n,"m"),d!==a&&(!t||this._changeInProgress?et(this,$a(a-d,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?d:Fa(this)}function Ja(e,a){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,a),this):-this.utcOffset()}function Na(e){return this.utcOffset(0,e)}function Ra(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Fa(this),"m")),this}function Ia(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ea(Rn,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Ca(e){return!!this.isValid()&&(e=e?ga(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Ga(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ua(){if(!n(this._isDSTShifted))return this._isDSTShifted;var e={};if(L(e,this),e=ka(e),e._a){var a=e._isUTC?m(e._a):ga(e._a);this._isDSTShifted=this.isValid()&&p(e._a,a.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Va(){return!!this.isValid()&&!this._isUTC}function Ka(){return!!this.isValid()&&this._isUTC}function Za(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function $a(e,a){var t,s,n,r=e,_=null;return Pa(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:d(e)?(r={},a?r[a]=e:r.milliseconds=e):(_=Od.exec(e))?(t="-"===_[1]?-1:1,r={y:0,d:f(_[Zn])*t,h:f(_[$n])*t,m:f(_[Bn])*t,s:f(_[qn])*t,ms:f(Oa(1e3*_[Qn]))*t}):(_=Wd.exec(e))?(t="-"===_[1]?-1:(_[1],1),r={y:Ba(_[2],t),M:Ba(_[3],t),w:Ba(_[4],t),d:Ba(_[5],t),h:Ba(_[6],t),m:Ba(_[7],t),s:Ba(_[8],t)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(n=Qa(ga(r.from),ga(r.to)),r={},r.ms=n.milliseconds,r.M=n.months),s=new xa(r),Pa(e)&&i(e,"_locale")&&(s._locale=e._locale),s}function Ba(e,a){var t=e&&parseFloat(e.replace(",","."));return(isNaN(t)?0:t)*a}function qa(e,a){var t={milliseconds:0,months:0};return t.months=a.month()-e.month()+12*(a.year()-e.year()),e.clone().add(t.months,"M").isAfter(a)&&--t.months,t.milliseconds=+a-+e.clone().add(t.months,"M"),t}function Qa(e,a){var t;return e.isValid()&&a.isValid()?(a=Aa(a,e),e.isBefore(a)?t=qa(e,a):(t=qa(a,e),t.milliseconds=-t.milliseconds,t.months=-t.months),t):{milliseconds:0,months:0}}function Xa(e,a){return function(t,s){var n,d;return null===s||isNaN(+s)||(T(a,"moment()."+a+"(period, number) is deprecated. Please use moment()."+a+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),d=t,t=s,s=d),t="string"==typeof t?+t:t,n=$a(t,s),et(this,n,e),this}}function et(a,t,s,n){var d=t._milliseconds,r=Oa(t._days),_=Oa(t._months);a.isValid()&&(n=null==n||n,_&&le(a,te(a,"Month")+_*s),r&&se(a,"Date",te(a,"Date")+r*s),d&&a._d.setTime(a._d.valueOf()+d*s),n&&e.updateOffset(a,r||_))}function at(e,a){var t=e.diff(a,"days",!0);return t<-6?"sameElse":t<-1?"lastWeek":t<0?"lastDay":t<1?"sameDay":t<2?"nextDay":t<7?"nextWeek":"sameElse"}function tt(a,t){var s=a||ga(),n=Aa(s,this).startOf("day"),d=e.calendarFormat(this,n)||"sameElse",r=t&&(g(t[d])?t[d].call(this,s):t[d]);return this.format(r||this.localeData().calendar(d,this,ga(s)))}function st(){return new c(this)}function nt(e,a){var t=Y(e)?e:ga(e);return!(!this.isValid()||!t.isValid())&&(a=E(n(a)?"millisecond":a),"millisecond"===a?this.valueOf()>t.valueOf():t.valueOf()<this.clone().startOf(a).valueOf())}function dt(e,a){var t=Y(e)?e:ga(e);return!(!this.isValid()||!t.isValid())&&(a=E(n(a)?"millisecond":a),"millisecond"===a?this.valueOf()<t.valueOf():this.clone().endOf(a).valueOf()<t.valueOf())}function rt(e,a,t,s){return s=s||"()",("("===s[0]?this.isAfter(e,t):!this.isBefore(e,t))&&(")"===s[1]?this.isBefore(a,t):!this.isAfter(a,t))}function _t(e,a){var t,s=Y(e)?e:ga(e);return!(!this.isValid()||!s.isValid())&&(a=E(a||"millisecond"),"millisecond"===a?this.valueOf()===s.valueOf():(t=s.valueOf(),this.clone().startOf(a).valueOf()<=t&&t<=this.clone().endOf(a).valueOf()))}function it(e,a){return this.isSame(e,a)||this.isAfter(e,a)}function ot(e,a){return this.isSame(e,a)||this.isBefore(e,a)}function mt(e,a,t){var s,n,d;if(!this.isValid())return NaN;if(s=Aa(e,this),!s.isValid())return NaN;switch(n=6e4*(s.utcOffset()-this.utcOffset()),a=E(a)){case"year":d=ut(this,s)/12;break;case"month":d=ut(this,s);break;case"quarter":d=ut(this,s)/3;break;case"second":d=(this-s)/1e3;break;case"minute":d=(this-s)/6e4;break;case"hour":d=(this-s)/36e5;break;case"day":d=(this-s-n)/864e5;break;case"week":d=(this-s-n)/6048e5;break;default:d=this-s}return t?d:y(d)}function ut(e,a){var t,s,n=12*(a.year()-e.year())+(a.month()-e.month()),d=e.clone().add(n,"months");return a-d<0?(t=e.clone().add(n-1,"months"),s=(a-d)/(d-t)):(t=e.clone().add(n+1,"months"),s=(a-d)/(t-d)),-(n+s)||0}function lt(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Mt(e){if(!this.isValid())return null;var a=e!==!0,t=a?this.clone().utc():this;return t.year()<0||t.year()>9999?C(t,a?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):g(Date.prototype.toISOString)?a?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",C(t,"Z")):C(t,a?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ht(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",a="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z");var t="["+e+'("]',s=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=a+'[")]';return this.format(t+s+"-MM-DD[T]HH:mm:ss.SSS"+n)}function Lt(a){a||(a=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var t=C(this,a);return this.localeData().postformat(t)}function ct(e,a){return this.isValid()&&(Y(e)&&e.isValid()||ga(e).isValid())?$a({to:this,from:e}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function Yt(e){return this.from(ga(),e)}function yt(e,a){return this.isValid()&&(Y(e)&&e.isValid()||ga(e).isValid())?$a({from:this,to:e}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function ft(e){return this.to(ga(),e)}function pt(e){var a;return void 0===e?this._locale._abbr:(a=aa(e),null!=a&&(this._locale=a),this)}function kt(){return this._locale}function Dt(e){switch(e=E(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),
"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function Tt(e){return void 0===(e=E(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function gt(){return this._d.valueOf()-6e4*(this._offset||0)}function wt(){return Math.floor(this.valueOf()/1e3)}function vt(){return new Date(this.valueOf())}function St(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Ht(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function bt(){return this.isValid()?this.toISOString():null}function jt(){return M(this)}function xt(){return o({},l(this))}function Pt(){return l(this).overflow}function Ot(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Wt(e,a){N(0,[e,e.length],0,a)}function Et(e){return Jt.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function At(e){return Jt.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Ft(){return Te(this.year(),1,4)}function zt(){var e=this.localeData()._week;return Te(this.year(),e.dow,e.doy)}function Jt(e,a,t,s,n){var d;return null==e?De(this,s,n).year:(d=Te(e,s,n),a>d&&(a=d),Nt.call(this,e,a,t,s,n))}function Nt(e,a,t,s,n){var d=ke(e,a,t,s,n),r=fe(d.year,0,d.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}function Rt(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function It(e){var a=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?a:this.add(e-a,"d")}function Ct(e,a){a[Qn]=f(1e3*("0."+e))}function Gt(){return this._isUTC?"UTC":""}function Ut(){return this._isUTC?"Coordinated Universal Time":""}function Vt(e){return ga(1e3*e)}function Kt(){return ga.apply(null,arguments).parseZone()}function Zt(e){return e}function $t(e,a,t,s){var n=aa(),d=m().set(s,a);return n[t](d,e)}function Bt(e,a,t){if(d(e)&&(a=e,e=void 0),e=e||"",null!=a)return $t(e,a,t,"month");var s,n=[];for(s=0;s<12;s++)n[s]=$t(e,s,t,"month");return n}function qt(e,a,t,s){"boolean"==typeof e?(d(a)&&(t=a,a=void 0),a=a||""):(a=e,t=a,e=!1,d(a)&&(t=a,a=void 0),a=a||"");var n=aa(),r=e?n._week.dow:0;if(null!=t)return $t(a,(t+r)%7,s,"day");var _,i=[];for(_=0;_<7;_++)i[_]=$t(a,(_+r)%7,s,"day");return i}function Qt(e,a){return Bt(e,a,"months")}function Xt(e,a){return Bt(e,a,"monthsShort")}function es(e,a,t){return qt(e,a,t,"weekdays")}function as(e,a,t){return qt(e,a,t,"weekdaysShort")}function ts(e,a,t){return qt(e,a,t,"weekdaysMin")}function ss(){var e=this._data;return this._milliseconds=Ud(this._milliseconds),this._days=Ud(this._days),this._months=Ud(this._months),e.milliseconds=Ud(e.milliseconds),e.seconds=Ud(e.seconds),e.minutes=Ud(e.minutes),e.hours=Ud(e.hours),e.months=Ud(e.months),e.years=Ud(e.years),this}function ns(e,a,t,s){var n=$a(a,t);return e._milliseconds+=s*n._milliseconds,e._days+=s*n._days,e._months+=s*n._months,e._bubble()}function ds(e,a){return ns(this,e,a,1)}function rs(e,a){return ns(this,e,a,-1)}function _s(e){return e<0?Math.floor(e):Math.ceil(e)}function is(){var e,a,t,s,n,d=this._milliseconds,r=this._days,_=this._months,i=this._data;return d>=0&&r>=0&&_>=0||d<=0&&r<=0&&_<=0||(d+=864e5*_s(ms(_)+r),r=0,_=0),i.milliseconds=d%1e3,e=y(d/1e3),i.seconds=e%60,a=y(e/60),i.minutes=a%60,t=y(a/60),i.hours=t%24,r+=y(t/24),n=y(os(r)),_+=n,r-=_s(ms(n)),s=y(_/12),_%=12,i.days=r,i.months=_,i.years=s,this}function os(e){return 4800*e/146097}function ms(e){return 146097*e/4800}function us(e){if(!this.isValid())return NaN;var a,t,s=this._milliseconds;if("month"===(e=E(e))||"year"===e)return a=this._days+s/864e5,t=this._months+os(a),"month"===e?t:t/12;switch(a=this._days+Math.round(ms(this._months)),e){case"week":return a/7+s/6048e5;case"day":return a+s/864e5;case"hour":return 24*a+s/36e5;case"minute":return 1440*a+s/6e4;case"second":return 86400*a+s/1e3;case"millisecond":return Math.floor(864e5*a)+s;default:throw new Error("Unknown unit "+e)}}function ls(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*f(this._months/12):NaN}function Ms(e){return function(){return this.as(e)}}function hs(){return $a(this)}function Ls(e){return e=E(e),this.isValid()?this[e+"s"]():NaN}function cs(e){return function(){return this.isValid()?this._data[e]:NaN}}function Ys(){return y(this.days()/7)}function ys(e,a,t,s,n){return n.relativeTime(a||1,!!t,e,s)}function fs(e,a,t){var s=$a(e).abs(),n=_r(s.as("s")),d=_r(s.as("m")),r=_r(s.as("h")),_=_r(s.as("d")),i=_r(s.as("M")),o=_r(s.as("y")),m=n<=ir.ss&&["s",n]||n<ir.s&&["ss",n]||d<=1&&["m"]||d<ir.m&&["mm",d]||r<=1&&["h"]||r<ir.h&&["hh",r]||_<=1&&["d"]||_<ir.d&&["dd",_]||i<=1&&["M"]||i<ir.M&&["MM",i]||o<=1&&["y"]||["yy",o];return m[2]=a,m[3]=+e>0,m[4]=t,ys.apply(null,m)}function ps(e){return void 0===e?_r:"function"==typeof e&&(_r=e,!0)}function ks(e,a){return void 0!==ir[e]&&(void 0===a?ir[e]:(ir[e]=a,"s"===e&&(ir.ss=a-1),!0))}function Ds(e){if(!this.isValid())return this.localeData().invalidDate();var a=this.localeData(),t=fs(this,!e,a);return e&&(t=a.pastFuture(+this,t)),a.postformat(t)}function Ts(e){return(e>0)-(e<0)||+e}function gs(){if(!this.isValid())return this.localeData().invalidDate();var e,a,t,s=or(this._milliseconds)/1e3,n=or(this._days),d=or(this._months);e=y(s/60),a=y(e/60),s%=60,e%=60,t=y(d/12),d%=12;var r=t,_=d,i=n,o=a,m=e,u=s?s.toFixed(3).replace(/\.?0+$/,""):"",l=this.asSeconds();if(!l)return"P0D";var M=l<0?"-":"",h=Ts(this._months)!==Ts(l)?"-":"",L=Ts(this._days)!==Ts(l)?"-":"",c=Ts(this._milliseconds)!==Ts(l)?"-":"";return M+"P"+(r?h+r+"Y":"")+(_?h+_+"M":"")+(i?L+i+"D":"")+(o||m||u?"T":"")+(o?c+o+"H":"")+(m?c+m+"M":"")+(u?c+u+"S":"")}function ws(e,a){var t=e.split("_");return a%10==1&&a%100!=11?t[0]:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?t[1]:t[2]}function vs(e,a,t){var s={ss:a?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:a?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:a?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===t?a?"хвіліна":"хвіліну":"h"===t?a?"гадзіна":"гадзіну":e+" "+ws(s[t],+e)}function Ss(e,a,t){return e+" "+js({mm:"munutenn",MM:"miz",dd:"devezh"}[t],e)}function Hs(e){switch(bs(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}function bs(e){return e>9?bs(e%10):e}function js(e,a){return 2===a?xs(e):e}function xs(e){var a={m:"v",b:"v",d:"z"};return void 0===a[e.charAt(0)]?e:a[e.charAt(0)]+e.substring(1)}function Ps(e,a,t){var s=e+" ";switch(t){case"ss":return s+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return a?"jedna minuta":"jedne minute";case"mm":return s+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return a?"jedan sat":"jednog sata";case"hh":return s+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return s+=1===e?"dan":"dana";case"MM":return s+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return s+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}function Os(e){return e>1&&e<5&&1!=~~(e/10)}function Ws(e,a,t,s){var n=e+" ";switch(t){case"s":return a||s?"pár sekund":"pár sekundami";case"ss":return a||s?n+(Os(e)?"sekundy":"sekund"):n+"sekundami";case"m":return a?"minuta":s?"minutu":"minutou";case"mm":return a||s?n+(Os(e)?"minuty":"minut"):n+"minutami";case"h":return a?"hodina":s?"hodinu":"hodinou";case"hh":return a||s?n+(Os(e)?"hodiny":"hodin"):n+"hodinami";case"d":return a||s?"den":"dnem";case"dd":return a||s?n+(Os(e)?"dny":"dní"):n+"dny";case"M":return a||s?"měsíc":"měsícem";case"MM":return a||s?n+(Os(e)?"měsíce":"měsíců"):n+"měsíci";case"y":return a||s?"rok":"rokem";case"yy":return a||s?n+(Os(e)?"roky":"let"):n+"lety"}}function Es(e,a,t,s){var n={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return a?n[t][0]:n[t][1]}function As(e,a,t,s){var n={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return a?n[t][0]:n[t][1]}function Fs(e,a,t,s){var n={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return a?n[t][0]:n[t][1]}function zs(e,a,t,s){var n={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return a?n[t][2]?n[t][2]:n[t][1]:s?n[t][0]:n[t][1]}function Js(e,a,t,s){var n="";switch(t){case"s":return s?"muutaman sekunnin":"muutama sekunti";case"ss":return s?"sekunnin":"sekuntia";case"m":return s?"minuutin":"minuutti";case"mm":n=s?"minuutin":"minuuttia";break;case"h":return s?"tunnin":"tunti";case"hh":n=s?"tunnin":"tuntia";break;case"d":return s?"päivän":"päivä";case"dd":n=s?"päivän":"päivää";break;case"M":return s?"kuukauden":"kuukausi";case"MM":n=s?"kuukauden":"kuukautta";break;case"y":return s?"vuoden":"vuosi";case"yy":n=s?"vuoden":"vuotta"}return n=Ns(e,s)+" "+n}function Ns(e,a){return e<10?a?Vr[e]:Ur[e]:e}function Rs(e,a,t,s){var n={s:["thodde secondanim","thodde second"],ss:[e+" secondanim",e+" second"],m:["eka mintan","ek minute"],mm:[e+" mintanim",e+" mintam"],h:["eka horan","ek hor"],hh:[e+" horanim",e+" hor"],d:["eka disan","ek dis"],dd:[e+" disanim",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineanim",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsanim",e+" vorsam"]};return a?n[t][0]:n[t][1]}function Is(e,a,t){var s=e+" ";switch(t){case"ss":return s+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return a?"jedna minuta":"jedne minute";case"mm":return s+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return a?"jedan sat":"jednog sata";case"hh":return s+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return s+=1===e?"dan":"dana";case"MM":return s+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return s+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}function Cs(e,a,t,s){var n=e;switch(t){case"s":return s||a?"néhány másodperc":"néhány másodperce";case"ss":return n+(s||a)?" másodperc":" másodperce";case"m":return"egy"+(s||a?" perc":" perce");case"mm":return n+(s||a?" perc":" perce");case"h":return"egy"+(s||a?" óra":" órája");case"hh":return n+(s||a?" óra":" órája");case"d":return"egy"+(s||a?" nap":" napja");case"dd":return n+(s||a?" nap":" napja");case"M":return"egy"+(s||a?" hónap":" hónapja");case"MM":return n+(s||a?" hónap":" hónapja");case"y":return"egy"+(s||a?" év":" éve");case"yy":return n+(s||a?" év":" éve")}return""}function Gs(e){return(e?"":"[múlt] ")+"["+n_[this.day()]+"] LT[-kor]"}function Us(e){return e%100==11||e%10!=1}function Vs(e,a,t,s){var n=e+" ";switch(t){case"s":return a||s?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return Us(e)?n+(a||s?"sekúndur":"sekúndum"):n+"sekúnda";case"m":return a?"mínúta":"mínútu";case"mm":return Us(e)?n+(a||s?"mínútur":"mínútum"):a?n+"mínúta":n+"mínútu";case"hh":return Us(e)?n+(a||s?"klukkustundir":"klukkustundum"):n+"klukkustund";case"d":return a?"dagur":s?"dag":"degi";case"dd":return Us(e)?a?n+"dagar":n+(s?"daga":"dögum"):a?n+"dagur":n+(s?"dag":"degi");case"M":return a?"mánuður":s?"mánuð":"mánuði";case"MM":return Us(e)?a?n+"mánuðir":n+(s?"mánuði":"mánuðum"):a?n+"mánuður":n+(s?"mánuð":"mánuði");case"y":return a||s?"ár":"ári";case"yy":return Us(e)?n+(a||s?"ár":"árum"):n+(a||s?"ár":"ári")}}function Ks(e,a,t,s){var n={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return a?n[t][0]:n[t][1]}function Zs(e){return Bs(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e}function $s(e){return Bs(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e}function Bs(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var a=e%10,t=e/10;return Bs(0===a?t:a)}if(e<1e4){for(;e>=10;)e/=10;return Bs(e)}return e/=1e3,Bs(e)}function qs(e,a,t,s){return a?"kelios sekundės":s?"kelių sekundžių":"kelias sekundes"}function Qs(e,a,t,s){return a?en(t)[0]:s?en(t)[1]:en(t)[2]}function Xs(e){return e%10==0||e>10&&e<20}function en(e){return o_[e].split("_")}function an(e,a,t,s){var n=e+" ";return 1===e?n+Qs(e,a,t[0],s):a?n+(Xs(e)?en(t)[1]:en(t)[0]):s?n+en(t)[1]:n+(Xs(e)?en(t)[1]:en(t)[2])}function tn(e,a,t){return t?a%10==1&&a%100!=11?e[2]:e[3]:a%10==1&&a%100!=11?e[0]:e[1]}function sn(e,a,t){return e+" "+tn(m_[t],e,a)}function nn(e,a,t){return tn(m_[t],e,a)}function dn(e,a){return a?"dažas sekundes":"dažām sekundēm"}function rn(e,a,t,s){var n="";if(a)switch(t){case"s":n="काही सेकंद";break;case"ss":n="%d सेकंद";break;case"m":n="एक मिनिट";break;case"mm":n="%d मिनिटे";break;case"h":n="एक तास";break;case"hh":n="%d तास";break;case"d":n="एक दिवस";break;case"dd":n="%d दिवस";break;case"M":n="एक महिना";break;case"MM":n="%d महिने";break;case"y":n="एक वर्ष";break;case"yy":n="%d वर्षे"}else switch(t){case"s":n="काही सेकंदां";break;case"ss":n="%d सेकंदां";break;case"m":n="एका मिनिटा";break;case"mm":n="%d मिनिटां";break;case"h":n="एका तासा";break;case"hh":n="%d तासां";break;case"d":n="एका दिवसा";break;case"dd":n="%d दिवसां";break;case"M":n="एका महिन्या";break;case"MM":n="%d महिन्यां";break;case"y":n="एका वर्षा";break;case"yy":n="%d वर्षां"}return n.replace(/%d/i,e)}function _n(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function on(e,a,t){var s=e+" ";switch(t){case"ss":return s+(_n(e)?"sekundy":"sekund");case"m":return a?"minuta":"minutę";case"mm":return s+(_n(e)?"minuty":"minut");case"h":return a?"godzina":"godzinę";case"hh":return s+(_n(e)?"godziny":"godzin");case"MM":return s+(_n(e)?"miesiące":"miesięcy");case"yy":return s+(_n(e)?"lata":"lat")}}function mn(e,a,t){var s={ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"},n=" ";return(e%100>=20||e>=100&&e%100==0)&&(n=" de "),e+n+s[t]}function un(e,a){var t=e.split("_");return a%10==1&&a%100!=11?t[0]:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?t[1]:t[2]}function ln(e,a,t){var s={ss:a?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:a?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return"m"===t?a?"минута":"минуту":e+" "+un(s[t],+e)}function Mn(e){return e>1&&e<5}function hn(e,a,t,s){var n=e+" ";switch(t){case"s":return a||s?"pár sekúnd":"pár sekundami";case"ss":return a||s?n+(Mn(e)?"sekundy":"sekúnd"):n+"sekundami";case"m":return a?"minúta":s?"minútu":"minútou";case"mm":return a||s?n+(Mn(e)?"minúty":"minút"):n+"minútami";case"h":return a?"hodina":s?"hodinu":"hodinou";case"hh":return a||s?n+(Mn(e)?"hodiny":"hodín"):n+"hodinami";case"d":return a||s?"deň":"dňom";case"dd":return a||s?n+(Mn(e)?"dni":"dní"):n+"dňami";case"M":return a||s?"mesiac":"mesiacom";case"MM":return a||s?n+(Mn(e)?"mesiace":"mesiacov"):n+"mesiacmi";case"y":return a||s?"rok":"rokom";case"yy":return a||s?n+(Mn(e)?"roky":"rokov"):n+"rokmi"}}function Ln(e,a,t,s){var n=e+" ";switch(t){case"s":return a||s?"nekaj sekund":"nekaj sekundami";case"ss":return n+=1===e?a?"sekundo":"sekundi":2===e?a||s?"sekundi":"sekundah":e<5?a||s?"sekunde":"sekundah":"sekund";case"m":return a?"ena minuta":"eno minuto";case"mm":return n+=1===e?a?"minuta":"minuto":2===e?a||s?"minuti":"minutama":e<5?a||s?"minute":"minutami":a||s?"minut":"minutami";case"h":return a?"ena ura":"eno uro";case"hh":return n+=1===e?a?"ura":"uro":2===e?a||s?"uri":"urama":e<5?a||s?"ure":"urami":a||s?"ur":"urami";case"d":return a||s?"en dan":"enim dnem";case"dd":return n+=1===e?a||s?"dan":"dnem":2===e?a||s?"dni":"dnevoma":a||s?"dni":"dnevi";case"M":return a||s?"en mesec":"enim mesecem";case"MM":return n+=1===e?a||s?"mesec":"mesecem":2===e?a||s?"meseca":"mesecema":e<5?a||s?"mesece":"meseci":a||s?"mesecev":"meseci";case"y":return a||s?"eno leto":"enim letom";case"yy":return n+=1===e?a||s?"leto":"letom":2===e?a||s?"leti":"letoma":e<5?a||s?"leta":"leti":a||s?"let":"leti"}}function cn(e){var a=e;return a=e.indexOf("jaj")!==-1?a.slice(0,-3)+"leS":e.indexOf("jar")!==-1?a.slice(0,-3)+"waQ":e.indexOf("DIS")!==-1?a.slice(0,-3)+"nem":a+" pIq"}function Yn(e){var a=e;return a=e.indexOf("jaj")!==-1?a.slice(0,-3)+"Hu’":e.indexOf("jar")!==-1?a.slice(0,-3)+"wen":e.indexOf("DIS")!==-1?a.slice(0,-3)+"ben":a+" ret"}function yn(e,a,t,s){var n=fn(e);switch(t){case"ss":return n+" lup";case"mm":return n+" tup";case"hh":return n+" rep";case"dd":return n+" jaj";case"MM":return n+" jar";case"yy":return n+" DIS"}}function fn(e){var a=Math.floor(e%1e3/100),t=Math.floor(e%100/10),s=e%10,n="";return a>0&&(n+=N_[a]+"vatlh"),t>0&&(n+=(""!==n?" ":"")+N_[t]+"maH"),s>0&&(n+=(""!==n?" ":"")+N_[s]),""===n?"pagh":n}function pn(e,a,t,s){var n={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return s?n[t][0]:a?n[t][0]:n[t][1]}function kn(e,a){var t=e.split("_");return a%10==1&&a%100!=11?t[0]:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?t[1]:t[2]}function Dn(e,a,t){var s={ss:a?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:a?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:a?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return"m"===t?a?"хвилина":"хвилину":"h"===t?a?"година":"годину":e+" "+kn(s[t],+e)}function Tn(e,a){var t={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return e?t[/(\[[ВвУу]\]) ?dddd/.test(a)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(a)?"genitive":"nominative"][e.day()]:t.nominative}function gn(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}var wn,vn;vn=Array.prototype.some?Array.prototype.some:function(e){for(var a=Object(this),t=a.length>>>0,s=0;s<t;s++)if(s in a&&e.call(this,a[s],s,a))return!0;return!1};var Sn=e.momentProperties=[],Hn=!1,bn={};e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;var jn;jn=Object.keys?Object.keys:function(e){var a,t=[];for(a in e)i(e,a)&&t.push(a);return t};var xn={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Pn={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},On={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Wn={},En={},An=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Fn=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,zn={},Jn={},Nn=/[+-]?\d{6}/,Rn=/Z|[+-]\d\d:?\d\d/gi,In=/Z|[+-]\d\d(?::?\d\d)?/gi,Cn=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Gn={},Un={},Vn=0,Kn=1,Zn=2,$n=3,Bn=4,qn=5,Qn=6,Xn=7,ed=8;N("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),N(0,["YY",2],0,function(){return this.year()%100}),N(0,["YYYY",4],0,"year"),N(0,["YYYYY",5],0,"year"),N(0,["YYYYYY",6,!0],0,"year"),W("year","y"),F("year",1),U("Y",/[+-]?\d+/),U("YY",/\d\d?/,/\d\d/),U("YYYY",/\d{1,4}/,/\d{4}/),U("YYYYY",/[+-]?\d{1,6}/,Nn),U("YYYYYY",/[+-]?\d{1,6}/,Nn),$(["YYYYY","YYYYYY"],Vn),$("YYYY",function(a,t){t[Vn]=2===a.length?e.parseTwoDigitYear(a):f(a)}),$("YY",function(a,t){t[Vn]=e.parseTwoDigitYear(a)}),$("Y",function(e,a){a[Vn]=parseInt(e,10)}),e.parseTwoDigitYear=function(e){return f(e)+(f(e)>68?1900:2e3)};var ad,td=ae("FullYear",!0);ad=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var a;for(a=0;a<this.length;++a)if(this[a]===e)return a;return-1},N("M",["MM",2],"Mo",function(){return this.month()+1}),N("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),N("MMMM",0,0,function(e){return this.localeData().months(this,e)}),W("month","M"),F("month",8),U("M",/\d\d?/),U("MM",/\d\d?/,/\d\d/),U("MMM",function(e,a){return a.monthsShortRegex(e)}),U("MMMM",function(e,a){return a.monthsRegex(e)}),$(["M","MM"],function(e,a){a[Kn]=f(e)-1}),$(["MMM","MMMM"],function(e,a,t,s){var n=t._locale.monthsParse(e,s,t._strict);null!=n?a[Kn]=n:l(t).invalidMonth=e});var sd=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,nd="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),dd="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),rd=Cn,_d=Cn;N("w",["ww",2],"wo","week"),N("W",["WW",2],"Wo","isoWeek"),W("week","w"),W("isoWeek","W"),F("week",5),F("isoWeek",5),U("w",/\d\d?/),U("ww",/\d\d?/,/\d\d/),U("W",/\d\d?/),U("WW",/\d\d?/,/\d\d/),B(["w","ww","W","WW"],function(e,a,t,s){a[s.substr(0,1)]=f(e)});var id={dow:0,doy:6};N("d",0,"do","day"),N("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),N("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),N("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),N("e",0,0,"weekday"),N("E",0,0,"isoWeekday"),W("day","d"),W("weekday","e"),W("isoWeekday","E"),F("day",11),F("weekday",11),F("isoWeekday",11),U("d",/\d\d?/),U("e",/\d\d?/),U("E",/\d\d?/),U("dd",function(e,a){return a.weekdaysMinRegex(e)}),U("ddd",function(e,a){return a.weekdaysShortRegex(e)}),U("dddd",function(e,a){return a.weekdaysRegex(e)}),B(["dd","ddd","dddd"],function(e,a,t,s){var n=t._locale.weekdaysParse(e,s,t._strict);null!=n?a.d=n:l(t).invalidWeekday=e}),B(["d","e","E"],function(e,a,t,s){a[s]=f(e)});var od="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),md="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ud="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ld=Cn,Md=Cn,hd=Cn;N("H",["HH",2],0,"hour"),N("h",["hh",2],0,Ce),N("k",["kk",2],0,Ge),N("hmm",0,0,function(){return""+Ce.apply(this)+J(this.minutes(),2)}),N("hmmss",0,0,function(){return""+Ce.apply(this)+J(this.minutes(),2)+J(this.seconds(),2)}),N("Hmm",0,0,function(){return""+this.hours()+J(this.minutes(),2)}),N("Hmmss",0,0,function(){return""+this.hours()+J(this.minutes(),2)+J(this.seconds(),2)}),Ue("a",!0),Ue("A",!1),W("hour","h"),F("hour",13),U("a",Ve),U("A",Ve),U("H",/\d\d?/),U("h",/\d\d?/),U("k",/\d\d?/),U("HH",/\d\d?/,/\d\d/),U("hh",/\d\d?/,/\d\d/),U("kk",/\d\d?/,/\d\d/),U("hmm",/\d\d\d\d?/),U("hmmss",/\d\d\d\d\d\d?/),U("Hmm",/\d\d\d\d?/),U("Hmmss",/\d\d\d\d\d\d?/),$(["H","HH"],$n),$(["k","kk"],function(e,a,t){var s=f(e);a[$n]=24===s?0:s}),$(["a","A"],function(e,a,t){t._isPm=t._locale.isPM(e),t._meridiem=e}),$(["h","hh"],function(e,a,t){a[$n]=f(e),l(t).bigHour=!0}),$("hmm",function(e,a,t){var s=e.length-2;a[$n]=f(e.substr(0,s)),a[Bn]=f(e.substr(s)),l(t).bigHour=!0}),$("hmmss",function(e,a,t){var s=e.length-4,n=e.length-2;a[$n]=f(e.substr(0,s)),a[Bn]=f(e.substr(s,2)),a[qn]=f(e.substr(n)),l(t).bigHour=!0}),$("Hmm",function(e,a,t){var s=e.length-2;a[$n]=f(e.substr(0,s)),a[Bn]=f(e.substr(s))}),$("Hmmss",function(e,a,t){var s=e.length-4,n=e.length-2;a[$n]=f(e.substr(0,s)),a[Bn]=f(e.substr(s,2)),a[qn]=f(e.substr(n))});var Ld,cd=ae("Hours",!0),Yd={calendar:xn,longDateFormat:Pn,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:On,months:nd,monthsShort:dd,week:id,weekdays:od,weekdaysMin:ud,weekdaysShort:md,meridiemParse:/[ap]\.?m?\.?/i},yd={},fd={},pd=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,kd=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Dd=/Z|[+-]\d\d(?::?\d\d)?/,Td=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],gd=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],wd=/^\/?Date\((\-?\d+)/i,vd=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Sd={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};e.createFromInputFallback=D("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),e.ISO_8601=function(){},e.RFC_2822=function(){};var Hd=D("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=ga.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:h()}),bd=D("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=ga.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:h()}),jd=function(){return Date.now?Date.now():+new Date},xd=["year","quarter","month","week","day","hour","minute","second","millisecond"];Wa("Z",":"),Wa("ZZ",""),U("Z",In),U("ZZ",In),$(["Z","ZZ"],function(e,a,t){t._useUTC=!0,t._tzm=Ea(In,e)});var Pd=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var Od=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Wd=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;$a.fn=xa.prototype,$a.invalid=ja;var Ed=Xa(1,"add"),Ad=Xa(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Fd=D("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});N(0,["gg",2],0,function(){return this.weekYear()%100}),N(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Wt("gggg","weekYear"),Wt("ggggg","weekYear"),Wt("GGGG","isoWeekYear"),Wt("GGGGG","isoWeekYear"),W("weekYear","gg"),W("isoWeekYear","GG"),F("weekYear",1),F("isoWeekYear",1),U("G",/[+-]?\d+/),U("g",/[+-]?\d+/),U("GG",/\d\d?/,/\d\d/),U("gg",/\d\d?/,/\d\d/),U("GGGG",/\d{1,4}/,/\d{4}/),U("gggg",/\d{1,4}/,/\d{4}/),U("GGGGG",/[+-]?\d{1,6}/,Nn),U("ggggg",/[+-]?\d{1,6}/,Nn),B(["gggg","ggggg","GGGG","GGGGG"],function(e,a,t,s){a[s.substr(0,2)]=f(e)}),B(["gg","GG"],function(a,t,s,n){t[n]=e.parseTwoDigitYear(a)}),N("Q",0,"Qo","quarter"),W("quarter","Q"),F("quarter",7),U("Q",/\d/),$("Q",function(e,a){a[Kn]=3*(f(e)-1)}),N("D",["DD",2],"Do","date"),W("date","D"),F("date",9),U("D",/\d\d?/),U("DD",/\d\d?/,/\d\d/),U("Do",function(e,a){return e?a._dayOfMonthOrdinalParse||a._ordinalParse:a._dayOfMonthOrdinalParseLenient}),$(["D","DD"],Zn),$("Do",function(e,a){a[Zn]=f(e.match(/\d\d?/)[0])});var zd=ae("Date",!0);N("DDD",["DDDD",3],"DDDo","dayOfYear"),W("dayOfYear","DDD"),F("dayOfYear",4),U("DDD",/\d{1,3}/),U("DDDD",/\d{3}/),$(["DDD","DDDD"],function(e,a,t){t._dayOfYear=f(e)}),N("m",["mm",2],0,"minute"),W("minute","m"),F("minute",14),U("m",/\d\d?/),U("mm",/\d\d?/,/\d\d/),$(["m","mm"],Bn);var Jd=ae("Minutes",!1);N("s",["ss",2],0,"second"),W("second","s"),F("second",15),U("s",/\d\d?/),U("ss",/\d\d?/,/\d\d/),$(["s","ss"],qn);var Nd=ae("Seconds",!1);N("S",0,0,function(){return~~(this.millisecond()/100)}),N(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),N(0,["SSS",3],0,"millisecond"),N(0,["SSSS",4],0,function(){return 10*this.millisecond()}),N(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),N(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),N(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),N(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),N(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),W("millisecond","ms"),F("millisecond",16),U("S",/\d{1,3}/,/\d/),U("SS",/\d{1,3}/,/\d\d/),U("SSS",/\d{1,3}/,/\d{3}/);var Rd;for(Rd="SSSS";Rd.length<=9;Rd+="S")U(Rd,/\d+/);for(Rd="S";Rd.length<=9;Rd+="S")$(Rd,Ct);var Id=ae("Milliseconds",!1);N("z",0,0,"zoneAbbr"),N("zz",0,0,"zoneName");var Cd=c.prototype;Cd.add=Ed,Cd.calendar=tt,Cd.clone=st,Cd.diff=mt,Cd.endOf=Tt,Cd.format=Lt,Cd.from=ct,Cd.fromNow=Yt,Cd.to=yt,Cd.toNow=ft,Cd.get=ne,Cd.invalidAt=Pt,Cd.isAfter=nt,Cd.isBefore=dt,Cd.isBetween=rt,Cd.isSame=_t,Cd.isSameOrAfter=it,Cd.isSameOrBefore=ot,Cd.isValid=jt,Cd.lang=Fd,Cd.locale=pt,Cd.localeData=kt,Cd.max=bd,Cd.min=Hd,Cd.parsingFlags=xt,Cd.set=de,Cd.startOf=Dt,Cd.subtract=Ad,Cd.toArray=St,Cd.toObject=Ht,Cd.toDate=vt,Cd.toISOString=Mt,Cd.inspect=ht,Cd.toJSON=bt,Cd.toString=lt,Cd.unix=wt,Cd.valueOf=gt,Cd.creationData=Ot,Cd.year=td,Cd.isLeapYear=ee,Cd.weekYear=Et,Cd.isoWeekYear=At,Cd.quarter=Cd.quarters=Rt,Cd.month=Me,Cd.daysInMonth=he,Cd.week=Cd.weeks=Se,Cd.isoWeek=Cd.isoWeeks=He,Cd.weeksInYear=zt,Cd.isoWeeksInYear=Ft,Cd.date=zd,Cd.day=Cd.days=Ae,Cd.weekday=Fe,Cd.isoWeekday=ze,Cd.dayOfYear=It,Cd.hour=Cd.hours=cd,Cd.minute=Cd.minutes=Jd,Cd.second=Cd.seconds=Nd,Cd.millisecond=Cd.milliseconds=Id,Cd.utcOffset=za,Cd.utc=Na,Cd.local=Ra,Cd.parseZone=Ia,Cd.hasAlignedHourOffset=Ca,Cd.isDST=Ga,Cd.isLocal=Va,Cd.isUtcOffset=Ka,Cd.isUtc=Za,Cd.isUTC=Za,Cd.zoneAbbr=Gt,Cd.zoneName=Ut,Cd.dates=D("dates accessor is deprecated. Use date instead.",zd),Cd.months=D("months accessor is deprecated. Use month instead",Me),Cd.years=D("years accessor is deprecated. Use year instead",td),Cd.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ja),Cd.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ua);var Gd=S.prototype;Gd.calendar=H,Gd.longDateFormat=b,Gd.invalidDate=j,Gd.ordinal=x,Gd.preparse=Zt,Gd.postformat=Zt,Gd.relativeTime=P,Gd.pastFuture=O,Gd.set=w,Gd.months=ie,Gd.monthsShort=oe,Gd.monthsParse=ue,Gd.monthsRegex=ce,Gd.monthsShortRegex=Le,Gd.week=ge,Gd.firstDayOfYear=ve,Gd.firstDayOfWeek=we,Gd.weekdays=xe,Gd.weekdaysMin=Oe,Gd.weekdaysShort=Pe,Gd.weekdaysParse=Ee,Gd.weekdaysRegex=Je,Gd.weekdaysShortRegex=Ne,Gd.weekdaysMinRegex=Re,Gd.isPM=Ke,Gd.meridiem=Ze,Qe("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var a=e%10;return e+(1===f(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")}}),e.lang=D("moment.lang is deprecated. Use moment.locale instead.",Qe),e.langData=D("moment.langData is deprecated. Use moment.localeData instead.",aa)
;var Ud=Math.abs,Vd=Ms("ms"),Kd=Ms("s"),Zd=Ms("m"),$d=Ms("h"),Bd=Ms("d"),qd=Ms("w"),Qd=Ms("M"),Xd=Ms("y"),er=cs("milliseconds"),ar=cs("seconds"),tr=cs("minutes"),sr=cs("hours"),nr=cs("days"),dr=cs("months"),rr=cs("years"),_r=Math.round,ir={ss:44,s:45,m:45,h:22,d:26,M:11},or=Math.abs,mr=xa.prototype;mr.isValid=ba,mr.abs=ss,mr.add=ds,mr.subtract=rs,mr.as=us,mr.asMilliseconds=Vd,mr.asSeconds=Kd,mr.asMinutes=Zd,mr.asHours=$d,mr.asDays=Bd,mr.asWeeks=qd,mr.asMonths=Qd,mr.asYears=Xd,mr.valueOf=ls,mr._bubble=is,mr.clone=hs,mr.get=Ls,mr.milliseconds=er,mr.seconds=ar,mr.minutes=tr,mr.hours=sr,mr.days=nr,mr.weeks=Ys,mr.months=dr,mr.years=rr,mr.humanize=Ds,mr.toISOString=gs,mr.toString=gs,mr.toJSON=gs,mr.locale=pt,mr.localeData=kt,mr.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",gs),mr.lang=Fd,N("X",0,0,"unix"),N("x",0,0,"valueOf"),U("x",/[+-]?\d+/),U("X",/[+-]?\d+(\.\d{1,3})?/),$("X",function(e,a,t){t._d=new Date(1e3*parseFloat(e,10))}),$("x",function(e,a,t){t._d=new Date(f(e))}),e.version="2.21.0",function(e){wn=e}(ga),e.fn=Cd,e.min=va,e.max=Sa,e.now=jd,e.utc=m,e.unix=Vt,e.months=Qt,e.isDate=r,e.locale=Qe,e.invalid=h,e.duration=$a,e.isMoment=Y,e.weekdays=es,e.parseZone=Kt,e.localeData=aa,e.isDuration=Pa,e.monthsShort=Xt,e.weekdaysMin=ts,e.defineLocale=Xe,e.updateLocale=ea,e.locales=ta,e.weekdaysShort=as,e.normalizeUnits=E,e.relativeTimeRounding=ps,e.relativeTimeThreshold=ks,e.calendarFormat=at,e.prototype=Cd,e.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,a,t){return e<12?t?"vm":"VM":t?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}}),e.defineLocale("ar-dz",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"أح_إث_ثلا_أر_خم_جم_سب".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:4}}),e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}});var ur={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},lr=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},Mr={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},hr=function(e){return function(a,t,s,n){var d=lr(a),r=Mr[e][lr(a)];return 2===d&&(r=r[t?0:1]),r.replace(/%d/i,a)}},Lr=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:Lr,monthsShort:Lr,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,a,t){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:hr("s"),ss:hr("s"),m:hr("m"),mm:hr("m"),h:hr("h"),hh:hr("h"),d:hr("d"),dd:hr("d"),M:hr("M"),MM:hr("M"),y:hr("y"),yy:hr("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return ur[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}}),e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}});var cr={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},Yr={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,a,t){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return Yr[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return cr[e]}).replace(/,/g,"،")},week:{dow:0,doy:6}}),e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}});var yr={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},fr={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},pr=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},kr={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},Dr=function(e){return function(a,t,s,n){var d=pr(a),r=kr[e][pr(a)];return 2===d&&(r=r[t?0:1]),r.replace(/%d/i,a)}},Tr=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar",{months:Tr,monthsShort:Tr,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,a,t){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:Dr("s"),ss:Dr("s"),m:Dr("m"),mm:Dr("m"),h:Dr("h"),hh:Dr("h"),d:Dr("d"),dd:Dr("d"),M:Dr("M"),MM:Dr("M"),y:Dr("y"),yy:Dr("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return fr[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return yr[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}});var gr={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,a,t){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var a=e%10,t=e%100-a,s=e>=100?100:null;return e+(gr[a]||gr[t]||gr[s])},week:{dow:1,doy:7}}),e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:vs,mm:vs,h:vs,hh:vs,d:"дзень",dd:vs,M:"месяц",MM:vs,y:"год",yy:vs},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,a,t){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,a){switch(a){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}}),e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var a=e%10,t=e%100;return 0===e?e+"-ев":0===t?e+"-ен":t>10&&t<20?e+"-ти":1===a?e+"-ви":2===a?e+"-ри":7===a||8===a?e+"-ми":e+"-ти"},week:{dow:1,doy:7}}),e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}});var wr={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},vr={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn",{months:"জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,function(e){return vr[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return wr[e]})},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,a){return 12===e&&(e=0),"রাত"===a&&e>=4||"দুপুর"===a&&e<5||"বিকাল"===a?e+12:e},meridiem:function(e,a,t){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}});var Sr={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},Hr={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,function(e){return Hr[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return Sr[e]})},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,a){return 12===e&&(e=0),"མཚན་མོ"===a&&e>=4||"ཉིན་གུང"===a&&e<5||"དགོང་དག"===a?e+12:e},meridiem:function(e,a,t){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}}),e.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:Ss,h:"un eur",hh:"%d eur",d:"un devezh",dd:Ss,M:"ur miz",MM:Ss,y:"ur bloaz",yy:Hs},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4}}),e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:Ps,m:Ps,mm:Ps,h:Ps,hh:Ps,d:"dan",dd:Ps,M:"mjesec",MM:Ps,y:"godinu",yy:Ps},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,a){var t=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==a&&"W"!==a||(t="a"),e+t},week:{dow:1,doy:4}});var br="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),jr="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_");e.defineLocale("cs",{months:br,monthsShort:jr,monthsParse:function(e,a){var t,s=[];for(t=0;t<12;t++)s[t]=new RegExp("^"+e[t]+"$|^"+a[t]+"$","i");return s}(br,jr),shortMonthsParse:function(e){var a,t=[];for(a=0;a<12;a++)t[a]=new RegExp("^"+e[a]+"$","i");return t}(jr),longMonthsParse:function(e){var a,t=[];for(a=0;a<12;a++)t[a]=new RegExp("^"+e[a]+"$","i");return t}(br),weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:Ws,ss:Ws,m:Ws,mm:Ws,h:Ws,hh:Ws,d:Ws,dd:Ws,M:Ws,MM:Ws,y:Ws,yy:Ws},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}}),e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var a=e,t="",s=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"];return a>20?t=40===a||50===a||60===a||80===a||100===a?"fed":"ain":a>0&&(t=s[a]),e+t},week:{dow:1,doy:4}}),e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:Es,mm:"%d Minuten",h:Es,hh:"%d Stunden",d:Es,dd:Es,M:Es,MM:Es,y:Es,yy:Es},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:As,mm:"%d Minuten",h:As,hh:"%d Stunden",d:As,dd:As,M:As,MM:As,y:As,yy:As},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:Fs,mm:"%d Minuten",h:Fs,hh:"%d Stunden",d:Fs,dd:Fs,M:Fs,MM:Fs,y:Fs,yy:Fs},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})
;var xr=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],Pr=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:xr,monthsShort:xr,weekdays:Pr,weekdaysShort:Pr,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,a,t){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}}),e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,a){return e?"string"==typeof a&&/D/.test(a.substring(0,a.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,a,t){return e>11?t?"μμ":"ΜΜ":t?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,a){var t=this._calendarEl[e],s=a&&a.hours();return g(t)&&(t=t.apply(a)),t.replace("{}",s%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}}),e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var a=e%10;return e+(1==~~(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")},week:{dow:1,doy:4}}),e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var a=e%10;return e+(1==~~(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")}}),e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var a=e%10;return e+(1==~~(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")},week:{dow:1,doy:4}}),e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var a=e%10;return e+(1==~~(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")},week:{dow:1,doy:4}}),e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var a=e%10;return e+(1==~~(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")}}),e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var a=e%10;return e+(1==~~(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")},week:{dow:1,doy:4}}),e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,a,t){return e>11?t?"p.t.m.":"P.T.M.":t?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}});var Or="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Wr="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),Er=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],Ar=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,a){return e?/-MMM-/.test(a)?Wr[e.month()]:Or[e.month()]:Or},monthsRegex:Ar,monthsShortRegex:Ar,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:Er,longMonthsParse:Er,shortMonthsParse:Er,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});var Fr="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),zr="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,a){return e?/-MMM-/.test(a)?zr[e.month()]:Fr[e.month()]:Fr},monthsParseExact:!0,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"MMMM [de] D [de] YYYY",LLL:"MMMM [de] D [de] YYYY h:mm A",LLLL:"dddd, MMMM [de] D [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}});var Jr="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Nr="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),Rr=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],Ir=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,a){return e?/-MMM-/.test(a)?Nr[e.month()]:Jr[e.month()]:Jr},monthsRegex:Ir,monthsShortRegex:Ir,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:Rr,longMonthsParse:Rr,shortMonthsParse:Rr,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:zs,ss:zs,m:zs,mm:zs,h:zs,hh:zs,d:zs,dd:"%d päeva",M:zs,MM:zs,y:zs,yy:zs},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});var Cr={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},Gr={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,a,t){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"ثانیه d%",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,function(e){return Gr[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return Cr[e]}).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}});var Ur="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),Vr=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",Ur[7],Ur[8],Ur[9]];e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:Js,ss:Js,m:Js,mm:Js,h:Js,hh:Js,d:Js,dd:Js,M:Js,MM:Js,y:Js,yy:Js},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minutt",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaði",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,a){switch(a){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}}),e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,a){switch(a){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}}),e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,a){switch(a){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}});var Kr="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),Zr="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,a){return e?/-MMM-/.test(a)?Zr[e.month()]:Kr[e.month()]:Kr},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});var $r=["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],Br=["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],qr=["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],Qr=["Did","Dil","Dim","Dic","Dia","Dih","Dis"],Xr=["Dò","Lu","Mà","Ci","Ar","Ha","Sa"];e.defineLocale("gd",{months:$r,monthsShort:Br,monthsParseExact:!0,weekdays:qr,weekdaysShort:Qr,weekdaysMin:Xr,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}}),e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),e.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:Rs,ss:Rs,m:Rs,mm:Rs,h:Rs,hh:Rs,d:Rs,dd:Rs,M:Rs,MM:Rs,y:Rs,yy:Rs},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,a){switch(a){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(e,a){return 12===e&&(e=0),"rati"===a?e<4?e:e+12:"sokalli"===a?e:"donparam"===a?e>12?e:e+12:"sanje"===a?e+12:void 0},meridiem:function(e,a,t){return e<4?"rati":e<12?"sokalli":e<16?"donparam":e<20?"sanje":"rati"}});var e_={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},a_={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પેહલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,function(e){return a_[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return e_[e]})},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,a){return 12===e&&(e=0),"રાત"===a?e<4?e:e+12:"સવાર"===a?e:"બપોર"===a?e>=10?e:e+12:"સાંજ"===a?e+12:void 0},meridiem:function(e,a,t){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}}),e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",
lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,a,t){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?t?'לפנה"צ':"לפני הצהריים":e<18?t?'אחה"צ':"אחרי הצהריים":"בערב"}});var t_={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},s_={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return s_[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t_[e]})},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,a){return 12===e&&(e=0),"रात"===a?e<4?e:e+12:"सुबह"===a?e:"दोपहर"===a?e>=10?e:e+12:"शाम"===a?e+12:void 0},meridiem:function(e,a,t){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}}),e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:Is,m:Is,mm:Is,h:Is,hh:Is,d:"dan",dd:Is,M:"mjesec",MM:Is,y:"godinu",yy:Is},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});var n_="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,a,t){return e<12?t===!0?"de":"DE":t===!0?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return Gs.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return Gs.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:Cs,ss:Cs,m:Cs,mm:Cs,h:Cs,hh:Cs,d:Cs,dd:Cs,M:Cs,MM:Cs,y:Cs,yy:Cs},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,a){switch(a){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}}),e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,a){return 12===e&&(e=0),"pagi"===a?e:"siang"===a?e>=11?e:e+12:"sore"===a||"malam"===a?e+12:void 0},meridiem:function(e,a,t){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}}),e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:Vs,ss:Vs,m:Vs,mm:Vs,h:"klukkustund",hh:Vs,d:Vs,dd:Vs,M:Vs,MM:Vs,y:Vs,yy:Vs},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),e.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 HH:mm dddd",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日 HH:mm dddd"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,a,t){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,a){switch(a){case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}}),e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,a){return 12===e&&(e=0),"enjing"===a?e:"siyang"===a?e>=11?e:e+12:"sonten"===a||"ndalu"===a?e+12:void 0},meridiem:function(e,a,t){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}}),e.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return/(წამი|წუთი|საათი|წელი)/.test(e)?e.replace(/ი$/,"ში"):e+"ში"},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის უკან"):/წელი/.test(e)?e.replace(/წელი$/,"წლის უკან"):void 0},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}});var d_={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){var a=e%10,t=e>=100?100:null;return e+(d_[e]||d_[a]||d_[t])},week:{dow:1,doy:7}}),e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysMin:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},week:{dow:1,doy:4}});var r_={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},__={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,function(e){return __[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return r_[e]})},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,a){return 12===e&&(e=0),"ರಾತ್ರಿ"===a?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===a?e:"ಮಧ್ಯಾಹ್ನ"===a?e>=10?e:e+12:"ಸಂಜೆ"===a?e+12:void 0},meridiem:function(e,a,t){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}}),e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,a){switch(a){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,a,t){return e<12?"오전":"오후"}});var i_={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кече саат] LT",lastWeek:"[Өткен аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){var a=e%10,t=e>=100?100:null;return e+(i_[e]||i_[a]||i_[t])},week:{dow:1,doy:7}}),e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:Zs,past:$s,s:"e puer Sekonnen",ss:"%d Sekonnen",m:Ks,mm:"%d Minutten",h:Ks,hh:"%d Stonnen",d:Ks,dd:"%d Deeg",M:Ks,MM:"%d Méint",y:Ks,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,a,t){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}});var o_={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:qs,ss:an,m:Qs,mm:an,h:Qs,hh:an,d:Qs,dd:an,M:Qs,MM:an,y:Qs,yy:an},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}});var m_={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:dn,ss:sn,m:nn,mm:sn,h:nn,hh:sn,d:nn,dd:sn,M:nn,MM:sn,y:nn,yy:sn},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var u_={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,a){return 1===e?a[0]:e>=2&&e<=4?a[1]:a[2]},translate:function(e,a,t){var s=u_.words[t];return 1===t.length?a?s[0]:s[1]:e+" "+u_.correctGrammaticalCase(e,s)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:u_.translate,m:u_.translate,mm:u_.translate,h:u_.translate,hh:u_.translate,d:"dan",dd:u_.translate,M:"mjesec",MM:u_.translate,y:"godinu",yy:u_.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var a=e%10,t=e%100;return 0===e?e+"-ев":0===t?e+"-ен":t>10&&t<20?e+"-ти":1===a?e+"-ви":2===a?e+"-ри":7===a||8===a?e+"-ми":e+"-ти"},week:{dow:1,doy:7}}),e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,a){return 12===e&&(e=0),"രാത്രി"===a&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===a||"വൈകുന്നേരം"===a?e+12:e},meridiem:function(e,a,t){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}});var l_={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},M_={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:rn,ss:rn,m:rn,mm:rn,h:rn,hh:rn,d:rn,dd:rn,M:rn,MM:rn,y:rn,yy:rn},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return M_[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return l_[e]})},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(e,a){return 12===e&&(e=0),"रात्री"===a?e<4?e:e+12:"सकाळी"===a?e:"दुपारी"===a?e>=10?e:e+12:"सायंकाळी"===a?e+12:void 0},meridiem:function(e,a,t){return e<4?"रात्री":e<10?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}}),e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,a){return 12===e&&(e=0),
"pagi"===a?e:"tengahari"===a?e>=11?e:e+12:"petang"===a||"malam"===a?e+12:void 0},meridiem:function(e,a,t){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}}),e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,a){return 12===e&&(e=0),"pagi"===a?e:"tengahari"===a?e>=11?e:e+12:"petang"===a||"malam"===a?e+12:void 0},meridiem:function(e,a,t){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}}),e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});var h_={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},L_={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,function(e){return L_[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return h_[e]})},week:{dow:1,doy:4}}),e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var c_={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},Y_={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return Y_[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return c_[e]})},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,a){return 12===e&&(e=0),"राति"===a?e<4?e:e+12:"बिहान"===a?e:"दिउँसो"===a?e>=10?e:e+12:"साँझ"===a?e+12:void 0},meridiem:function(e,a,t){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}});var y_="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),f_="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),p_=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],k_=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,a){return e?/-MMM-/.test(a)?f_[e.month()]:y_[e.month()]:y_},monthsRegex:k_,monthsShortRegex:k_,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:p_,longMonthsParse:p_,shortMonthsParse:p_,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});var D_="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),T_="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),g_=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],w_=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,a){return e?/-MMM-/.test(a)?T_[e.month()]:D_[e.month()]:D_},monthsRegex:w_,monthsShortRegex:w_,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:g_,longMonthsParse:g_,shortMonthsParse:g_,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}}),e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var v_={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},S_={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,function(e){return S_[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return v_[e]})},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,a){return 12===e&&(e=0),"ਰਾਤ"===a?e<4?e:e+12:"ਸਵੇਰ"===a?e:"ਦੁਪਹਿਰ"===a?e>=10?e:e+12:"ਸ਼ਾਮ"===a?e+12:void 0},meridiem:function(e,a,t){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}});var H_="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),b_="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");e.defineLocale("pl",{months:function(e,a){return e?""===a?"("+b_[e.month()]+"|"+H_[e.month()]+")":/D MMMM/.test(a)?b_[e.month()]:H_[e.month()]:H_},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:on,m:on,mm:on,h:on,hh:on,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:on,y:"rok",yy:on},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),e.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº"}),e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:mn,m:"un minut",mm:mn,h:"o oră",hh:mn,d:"o zi",dd:mn,M:"o lună",MM:mn,y:"un an",yy:mn},week:{dow:1,doy:7}});var j_=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:j_,longMonthsParse:j_,shortMonthsParse:j_,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В следующее] dddd [в] LT";case 1:case 2:case 4:return"[В следующий] dddd [в] LT";case 3:case 5:case 6:return"[В следующую] dddd [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:ln,m:ln,mm:ln,h:"час",hh:ln,d:"день",dd:ln,M:"месяц",MM:ln,y:"год",yy:ln},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,a,t){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,a){switch(a){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}});var x_=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],P_=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:x_,monthsShort:x_,weekdays:P_,weekdaysShort:P_,weekdaysMin:P_,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,a,t){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}}),e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,a,t){return e>11?t?"ප.ව.":"පස් වරු":t?"පෙ.ව.":"පෙර වරු"}});var O_="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),W_="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");e.defineLocale("sk",{months:O_,monthsShort:W_,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:hn,ss:hn,m:hn,mm:hn,h:hn,hh:hn,d:hn,dd:hn,M:hn,MM:hn,y:hn,yy:hn},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:Ln,ss:Ln,m:Ln,mm:Ln,h:Ln,hh:Ln,d:Ln,dd:Ln,M:Ln,MM:Ln,y:Ln,yy:Ln},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,a,t){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var E_={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,a){return 1===e?a[0]:e>=2&&e<=4?a[1]:a[2]},translate:function(e,a,t){var s=E_.words[t];return 1===t.length?a?s[0]:s[1]:e+" "+E_.correctGrammaticalCase(e,s)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:E_.translate,m:E_.translate,mm:E_.translate,h:E_.translate,hh:E_.translate,d:"дан",dd:E_.translate,M:"месец",MM:E_.translate,y:"годину",yy:E_.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});var A_={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,a){return 1===e?a[0]:e>=2&&e<=4?a[1]:a[2]},translate:function(e,a,t){var s=A_.words[t];return 1===t.length?a?s[0]:s[1]:e+" "+A_.correctGrammaticalCase(e,s)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:A_.translate,m:A_.translate,mm:A_.translate,h:A_.translate,hh:A_.translate,d:"dan",dd:A_.translate,M:"mesec",MM:A_.translate,y:"godinu",yy:A_.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,a,t){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,a){return 12===e&&(e=0),"ekuseni"===a?e:"emini"===a?e>=11?e:e+12:"entsambama"===a||"ebusuku"===a?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}}),e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),
weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(e){var a=e%10;return e+(1==~~(e%100/10)?"e":1===a?"a":2===a?"a":"e")},week:{dow:1,doy:4}}),e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}});var F_={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},z_={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,function(e){return z_[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return F_[e]})},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,a,t){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,a){return 12===e&&(e=0),"யாமம்"===a?e<2?e:e+12:"வைகறை"===a||"காலை"===a?e:"நண்பகல்"===a&&e>=10?e:e+12},week:{dow:0,doy:6}}),e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,a){return 12===e&&(e=0),"రాత్రి"===a?e<4?e:e+12:"ఉదయం"===a?e:"మధ్యాహ్నం"===a?e>=10?e:e+12:"సాయంత్రం"===a?e+12:void 0},meridiem:function(e,a,t){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}}),e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",ss:"minutu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var a=e%10;return e+(1==~~(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")},week:{dow:1,doy:4}});var J_={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};e.defineLocale("tg",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Пагоҳ соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,a){return 12===e&&(e=0),"шаб"===a?e<4?e:e+12:"субҳ"===a?e:"рӯз"===a?e>=11?e:e+12:"бегоҳ"===a?e+12:void 0},meridiem:function(e,a,t){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){var a=e%10,t=e>=100?100:null;return e+(J_[e]||J_[a]||J_[t])},week:{dow:1,doy:7}}),e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,a,t){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}}),e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}});var N_="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:cn,past:Yn,s:"puS lup",ss:yn,m:"wa’ tup",mm:yn,h:"wa’ rep",hh:yn,d:"wa’ jaj",dd:yn,M:"wa’ jar",MM:yn,y:"wa’ DIS",yy:yn},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var R_={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,a){switch(a){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var t=e%10,s=e%100-t,n=e>=100?100:null;return e+(R_[t]||R_[s]||R_[n])}},week:{dow:1,doy:7}}),e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,a,t){return e>11?t?"d'o":"D'O":t?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:pn,ss:pn,m:pn,mm:pn,h:pn,hh:pn,d:pn,dd:pn,M:pn,MM:pn,y:pn,yy:pn},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}}),e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}}),e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,a){return 12===e&&(e=0),"يېرىم كېچە"===a||"سەھەر"===a||"چۈشتىن بۇرۇن"===a?e:"چۈشتىن كېيىن"===a||"كەچ"===a?e+12:e>=11?e:e+12},meridiem:function(e,a,t){var s=100*e+a;return s<600?"يېرىم كېچە":s<900?"سەھەر":s<1130?"چۈشتىن بۇرۇن":s<1230?"چۈش":s<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,a){switch(a){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}}),e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:Tn,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:gn("[Сьогодні "),nextDay:gn("[Завтра "),lastDay:gn("[Вчора "),nextWeek:gn("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return gn("[Минулої] dddd [").call(this);case 1:case 2:case 4:return gn("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:Dn,m:Dn,mm:Dn,h:"годину",hh:Dn,d:"день",dd:Dn,M:"місяць",MM:Dn,y:"рік",yy:Dn},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,a,t){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,a){switch(a){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}});var I_=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],C_=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];return e.defineLocale("ur",{months:I_,monthsShort:I_,weekdays:C_,weekdaysShort:C_,weekdaysMin:C_,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,a,t){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}}),e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}}),e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}}),e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,a,t){return e<12?t?"sa":"SA":t?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}}),e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var a=e%10;return e+(1==~~(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")},week:{dow:1,doy:4}}),e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}}),e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,a){return 12===e&&(e=0),"凌晨"===a||"早上"===a||"上午"===a?e:"下午"===a||"晚上"===a?e+12:e>=11?e:e+12},meridiem:function(e,a,t){var s=100*e+a;return s<600?"凌晨":s<900?"早上":s<1130?"上午":s<1230?"中午":s<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,a){switch(a){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}}),e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,a){return 12===e&&(e=0),"凌晨"===a||"早上"===a||"上午"===a?e:"中午"===a?e>=11?e:e+12:"下午"===a||"晚上"===a?e+12:void 0},meridiem:function(e,a,t){var s=100*e+a;return s<600?"凌晨":s<900?"早上":s<1130?"上午":s<1230?"中午":s<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,a){switch(a){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}}),e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,a){return 12===e&&(e=0),"凌晨"===a||"早上"===a||"上午"===a?e:"中午"===a?e>=11?e:e+12:"下午"===a||"晚上"===a?e+12:void 0},meridiem:function(e,a,t){var s=100*e+a;return s<600?"凌晨":s<900?"早上":s<1130?"上午":s<1230?"中午":s<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,a){switch(a){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}}),e.locale("en"),e});/**
 * @license MIT
 * @fileOverview Favico animations
 * @author Miroslav Magda, https://github.com/ejci/favico.js/
 * @version 0.3.10
 */
!function(){var t=function(t){"use strict";function e(t){if(t.paused||t.ended||g)return!1;try{c.clearRect(0,0,l,s),c.drawImage(t,0,0,l,s)}catch(t){}m=setTimeout(function(){e(t)},N.duration),L.setIcon(f)}function o(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,o,n){return e+e+o+o+n+n});var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return!!e&&{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}}function n(t,e){var o,n={};for(o in t)n[o]=t[o];for(o in e)n[o]=e[o];return n}function r(){return b.hidden||b.msHidden||b.webkitHidden||b.mozHidden}t=t?t:{};var i,a,s,l,f,c,h,u,d,y,w,g,x,p,m,b,v={bgColor:"#d00",textColor:"#fff",fontFamily:"sans-serif",fontStyle:"bold",type:"circle",position:"down",animation:"slide",elementId:!1,dataUrl:!1,win:window};x={},x.ff="undefined"!=typeof InstallTrigger,x.chrome=!!window.chrome,x.opera=!!window.opera||navigator.userAgent.indexOf("Opera")>=0,x.ie=!1,x.safari=Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0,x.supported=x.chrome||x.ff||x.opera;var C=[];w=function(){},u=g=!1;var I={};I.ready=function(){u=!0,I.reset(),w()},I.reset=function(){u&&(C=[],d=!1,y=!1,c.clearRect(0,0,l,s),c.drawImage(h,0,0,l,s),L.setIcon(f),window.clearTimeout(p),window.clearTimeout(m))},I.start=function(){if(u&&!y){var t=function(){d=C[0],y=!1,C.length>0&&(C.shift(),I.start())};if(C.length>0){y=!0;var e=function(){["type","animation","bgColor","textColor","fontFamily","fontStyle"].forEach(function(t){t in C[0].options&&(i[t]=C[0].options[t])}),N.run(C[0].options,function(){t()},!1)};d?N.run(d.options,function(){e()},!0):e()}}};var T={},E=function(t){return t.n="number"==typeof t.n?Math.abs(0|t.n):t.n,t.x=l*t.x,t.y=s*t.y,t.w=l*t.w,t.h=s*t.h,t.len=(""+t.n).length,t};T.circle=function(t){t=E(t);var e=!1;2===t.len?(t.x=t.x-.4*t.w,t.w=1.4*t.w,e=!0):t.len>=3&&(t.x=t.x-.65*t.w,t.w=1.65*t.w,e=!0),c.clearRect(0,0,l,s),c.drawImage(h,0,0,l,s),c.beginPath(),c.font=i.fontStyle+" "+Math.floor(t.h*(t.n>99?.85:1))+"px "+i.fontFamily,c.font=c.font?c.font.replace("10px","9px"):c.font,c.textAlign="center",e?(c.moveTo(t.x+t.w/2,t.y),c.lineTo(t.x+t.w-t.h/2,t.y),c.quadraticCurveTo(t.x+t.w,t.y,t.x+t.w,t.y+t.h/2),c.lineTo(t.x+t.w,t.y+t.h-t.h/2),c.quadraticCurveTo(t.x+t.w,t.y+t.h,t.x+t.w-t.h/2,t.y+t.h),c.lineTo(t.x+t.h/2,t.y+t.h),c.quadraticCurveTo(t.x,t.y+t.h,t.x,t.y+t.h-t.h/2),c.lineTo(t.x,t.y+t.h/2),c.quadraticCurveTo(t.x,t.y,t.x+t.h/2,t.y)):c.arc(t.x+t.w/2,t.y+t.h/2,t.h/2,0,2*Math.PI),c.fillStyle="rgba("+i.bgColor.r+","+i.bgColor.g+","+i.bgColor.b+","+t.o+")",c.fill(),c.closePath(),c.beginPath(),c.stroke(),c.fillStyle="rgba("+i.textColor.r+","+i.textColor.g+","+i.textColor.b+","+t.o+")","number"==typeof t.n&&t.n>999?c.fillText((t.n>9999?9:Math.floor(t.n/1e3))+"k+",Math.floor(t.x+t.w/2),Math.floor(t.y+t.h-.2*t.h)):c.fillText(t.n,Math.floor(t.x+t.w/2),Math.floor(t.y+t.h-.15*t.h)),c.closePath()},T.rectangle=function(t){t=E(t);2===t.len?(t.x=t.x-.4*t.w,t.w=1.4*t.w):t.len>=3&&(t.x=t.x-.65*t.w,t.w=1.65*t.w),c.clearRect(0,0,l,s),c.drawImage(h,0,0,l,s),c.beginPath(),c.font=i.fontStyle+" "+Math.floor(t.h*(t.n>99?.9:1))+"px "+i.fontFamily,c.textAlign="center",c.fillStyle="rgba("+i.bgColor.r+","+i.bgColor.g+","+i.bgColor.b+","+t.o+")",c.fillRect(t.x,t.y,t.w,t.h),c.fillStyle="rgba("+i.textColor.r+","+i.textColor.g+","+i.textColor.b+","+t.o+")","number"==typeof t.n&&t.n>999?c.fillText((t.n>9999?9:Math.floor(t.n/1e3))+"k+",Math.floor(t.x+t.w/2),Math.floor(t.y+t.h-.2*t.h)):c.fillText(t.n,Math.floor(t.x+t.w/2),Math.floor(t.y+t.h-.15*t.h)),c.closePath()};var A=function(t,e){e=("string"==typeof e?{animation:e}:e)||{},w=function(){try{if("number"==typeof t?t>0:""!==t){var n={type:"badge",options:{n:t}};if("animation"in e&&N.types[""+e.animation]&&(n.options.animation=""+e.animation),"type"in e&&T[""+e.type]&&(n.options.type=""+e.type),["bgColor","textColor"].forEach(function(t){t in e&&(n.options[t]=o(e[t]))}),["fontStyle","fontFamily"].forEach(function(t){t in e&&(n.options[t]=e[t])}),C.push(n),C.length>100)throw new Error("Too many badges requests in queue.");I.start()}else I.reset()}catch(t){throw new Error("Error setting badge. Message: "+t.message)}},u&&w()},M=function(t){w=function(){try{var e=t.width,o=t.height,n=document.createElement("img"),r=e/l<o/s?e/l:o/s;n.setAttribute("crossOrigin","anonymous"),n.onload=function(){c.clearRect(0,0,l,s),c.drawImage(n,0,0,l,s),L.setIcon(f)},n.setAttribute("src",t.getAttribute("src")),n.height=o/r,n.width=e/r}catch(t){throw new Error("Error setting image. Message: "+t.message)}},u&&w()},U=function(t){w=function(){try{if("stop"===t)return g=!0,I.reset(),void(g=!1);t.addEventListener("play",function(){e(this)},!1)}catch(t){throw new Error("Error setting video. Message: "+t.message)}},u&&w()},R=function(t){if(window.URL&&window.URL.createObjectURL||(window.URL=window.URL||{},window.URL.createObjectURL=function(t){return t}),x.supported){var o=!1;navigator.getUserMedia=navigator.getUserMedia||navigator.oGetUserMedia||navigator.msGetUserMedia||navigator.mozGetUserMedia||navigator.webkitGetUserMedia,w=function(){try{if("stop"===t)return g=!0,I.reset(),void(g=!1);o=document.createElement("video"),o.width=l,o.height=s,navigator.getUserMedia({video:!0,audio:!1},function(t){o.src=URL.createObjectURL(t),o.play(),e(o)},function(){})}catch(t){throw new Error("Error setting webcam. Message: "+t.message)}},u&&w()}},L={};L.getIcon=function(){var t=!1;return i.element?t=i.element:i.elementId?(t=b.getElementById(i.elementId),t.setAttribute("href",t.getAttribute("src"))):(t=function(){for(var t=document.getElementsByTagName("head")[0].getElementsByTagName("link"),e=!1,o=t.length,n=o-1;n>=0;n--)/(^|\s)icon(\s|$)/i.test(t[n].getAttribute("rel"))&&(e?x.chrome&&t[n].parentNode.removeChild(t[n]):e=t[n]);return e}())===!1&&(t=b.createElement("link"),t.setAttribute("rel","icon"),b.getElementsByTagName("head")[0].appendChild(t)),t.setAttribute("type","image/png"),t},L.setIcon=function(t){var e=t.toDataURL("image/png");if(i.dataUrl&&i.dataUrl(e),i.element)i.element.setAttribute("href",e),i.element.setAttribute("src",e);else if(i.elementId){var o=b.getElementById(i.elementId);o.setAttribute("href",e),o.setAttribute("src",e)}else if(x.ff||x.opera){var n=a;a=b.createElement("link"),x.opera&&a.setAttribute("rel","icon"),a.setAttribute("rel","icon"),a.setAttribute("type","image/png"),b.getElementsByTagName("head")[0].appendChild(a),a.setAttribute("href",e),n.parentNode&&n.parentNode.removeChild(n)}else a.setAttribute("href",e)};var N={};return N.duration=40,N.types={},N.types.fade=[{x:.4,y:.4,w:.6,h:.6,o:0},{x:.4,y:.4,w:.6,h:.6,o:.1},{x:.4,y:.4,w:.6,h:.6,o:.2},{x:.4,y:.4,w:.6,h:.6,o:.3},{x:.4,y:.4,w:.6,h:.6,o:.4},{x:.4,y:.4,w:.6,h:.6,o:.5},{x:.4,y:.4,w:.6,h:.6,o:.6},{x:.4,y:.4,w:.6,h:.6,o:.7},{x:.4,y:.4,w:.6,h:.6,o:.8},{x:.4,y:.4,w:.6,h:.6,o:.9},{x:.4,y:.4,w:.6,h:.6,o:1}],N.types.none=[{x:.4,y:.4,w:.6,h:.6,o:1}],N.types.pop=[{x:1,y:1,w:0,h:0,o:1},{x:.9,y:.9,w:.1,h:.1,o:1},{x:.8,y:.8,w:.2,h:.2,o:1},{x:.7,y:.7,w:.3,h:.3,o:1},{x:.6,y:.6,w:.4,h:.4,o:1},{x:.5,y:.5,w:.5,h:.5,o:1},{x:.4,y:.4,w:.6,h:.6,o:1}],N.types.popFade=[{x:.75,y:.75,w:0,h:0,o:0},{x:.65,y:.65,w:.1,h:.1,o:.2},{x:.6,y:.6,w:.2,h:.2,o:.4},{x:.55,y:.55,w:.3,h:.3,o:.6},{x:.5,y:.5,w:.4,h:.4,o:.8},{x:.45,y:.45,w:.5,h:.5,o:.9},{x:.4,y:.4,w:.6,h:.6,o:1}],N.types.slide=[{x:.4,y:1,w:.6,h:.6,o:1},{x:.4,y:.9,w:.6,h:.6,o:1},{x:.4,y:.9,w:.6,h:.6,o:1},{x:.4,y:.8,w:.6,h:.6,o:1},{x:.4,y:.7,w:.6,h:.6,o:1},{x:.4,y:.6,w:.6,h:.6,o:1},{x:.4,y:.5,w:.6,h:.6,o:1},{x:.4,y:.4,w:.6,h:.6,o:1}],N.run=function(t,e,o,a){var s=N.types[r()?"none":i.animation];if(a=o===!0?void 0!==a?a:s.length-1:void 0!==a?a:0,e=e?e:function(){},!(a<s.length&&a>=0))return void e();T[i.type](n(t,s[a])),p=setTimeout(function(){o?a-=1:a+=1,N.run(t,e,o,a)},N.duration),L.setIcon(f)},function(){i=n(v,t),i.bgColor=o(i.bgColor),i.textColor=o(i.textColor),i.position=i.position.toLowerCase(),i.animation=N.types[""+i.animation]?i.animation:v.animation,b=i.win.document;var e=i.position.indexOf("up")>-1,r=i.position.indexOf("left")>-1;if(e||r)for(var u in N.types)for(var d=0;d<N.types[u].length;d++){var y=N.types[u][d];e&&(y.y<.6?y.y=y.y-.4:y.y=y.y-2*y.y+(1-y.w)),r&&(y.x<.6?y.x=y.x-.4:y.x=y.x-2*y.x+(1-y.h)),N.types[u][d]=y}i.type=T[""+i.type]?i.type:v.type,a=L.getIcon(),f=document.createElement("canvas"),h=document.createElement("img"),a.hasAttribute("href")?(h.setAttribute("crossOrigin","anonymous"),h.onload=function(){s=h.height>0?h.height:32,l=h.width>0?h.width:32,f.height=s,f.width=l,c=f.getContext("2d"),I.ready()},h.setAttribute("src",a.getAttribute("href"))):(h.onload=function(){s=32,l=32,h.height=s,h.width=l,f.height=s,f.width=l,c=f.getContext("2d"),I.ready()},h.setAttribute("src",""))}(),{badge:A,video:U,image:M,webcam:R,reset:I.reset,browser:{supported:x.supported}}};"undefined"!=typeof define&&define.amd?define([],function(){return t}):"undefined"!=typeof module&&module.exports?module.exports=t:this.Favico=t}(),function(){function t(){if(0===n)return void(o.text=o.text.replace(i,""));notificationTotalstr=n,n>r&&(notificationTotalstr=r+"+"),i.exec(o.text)?o.text=o.text.replace(i,"("+notificationTotalstr+") "):o.text="("+notificationTotalstr+") "+o.text}function e(t){return!isNaN(parseFloat(t))&&isFinite(t)}var o=document.getElementsByTagName("title")[0],n=0,r=Number.MAX_VALUE,i=/^\(\d*\+?\) /;window.titlenotifier={add:function(e){void 0===e&&(e=1),n+=parseInt(e,10),t()},sub:function(e){void 0===e&&(e=1),e=parseInt(e,10),0!==n&&(e>n?n=0:n-=parseInt(e,10),t())},set:function(o){!e(o)||o<0||(n=parseInt(o,10),t())},reset:function(){n=0,t()},get:function(){return n},max:function(o){!e(o)||o<=0||(r=parseInt(o,10),t())}}}();/*!
 * Select2 4.0.5
 * https://select2.github.io
 *
 * Released under the MIT license
 * https://github.com/select2/select2/blob/master/LICENSE.md
 */
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,n){return void 0===n&&(n="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(n),n}:e(jQuery)}(function(e){var t=function(){if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)var t=e.fn.select2.amd;var t;/*!
 * jQuery Mousewheel 3.1.13
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 */
return function(){if(!t||!t.requirejs){t?n=t:t={};/**
 * @license almond 0.3.3 Copyright jQuery Foundation and other contributors.
 * Released under MIT license, http://github.com/requirejs/almond/LICENSE
 */
var e,n,i;!function(t){function o(e,t){return $.call(e,t)}function r(e,t){var n,i,o,r,s,a,l,c,u,d,p,h,f=t&&t.split("/"),g=w.map,m=g&&g["*"]||{};if(e){for(e=e.split("/"),s=e.length-1,w.nodeIdCompat&&x.test(e[s])&&(e[s]=e[s].replace(x,"")),"."===e[0].charAt(0)&&f&&(h=f.slice(0,f.length-1),e=h.concat(e)),u=0;u<e.length;u++)if("."===(p=e[u]))e.splice(u,1),u-=1;else if(".."===p){if(0===u||1===u&&".."===e[2]||".."===e[u-1])continue;u>0&&(e.splice(u-1,2),u-=2)}e=e.join("/")}if((f||m)&&g){for(n=e.split("/"),u=n.length;u>0;u-=1){if(i=n.slice(0,u).join("/"),f)for(d=f.length;d>0;d-=1)if((o=g[f.slice(0,d).join("/")])&&(o=o[i])){r=o,a=u;break}if(r)break;!l&&m&&m[i]&&(l=m[i],c=u)}!r&&l&&(r=l,a=c),r&&(n.splice(0,a,r),e=n.join("/"))}return e}function s(e,n){return function(){var i=b.call(arguments,0);return"string"!=typeof i[0]&&1===i.length&&i.push(null),f.apply(t,i.concat([e,n]))}}function a(e){return function(t){return r(t,e)}}function l(e){return function(t){v[e]=t}}function c(e){if(o(y,e)){var n=y[e];delete y[e],_[e]=!0,h.apply(t,n)}if(!o(v,e)&&!o(_,e))throw new Error("No "+e);return v[e]}function u(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function d(e){return e?u(e):[]}function p(e){return function(){return w&&w.config&&w.config[e]||{}}}var h,f,g,m,v={},y={},w={},_={},$=Object.prototype.hasOwnProperty,b=[].slice,x=/\.js$/;g=function(e,t){var n,i=u(e),o=i[0],s=t[1];return e=i[1],o&&(o=r(o,s),n=c(o)),o?e=n&&n.normalize?n.normalize(e,a(s)):r(e,s):(e=r(e,s),i=u(e),o=i[0],e=i[1],o&&(n=c(o))),{f:o?o+"!"+e:e,n:e,pr:o,p:n}},m={require:function(e){return s(e)},exports:function(e){var t=v[e];return void 0!==t?t:v[e]={}},module:function(e){return{id:e,uri:"",exports:v[e],config:p(e)}}},h=function(e,n,i,r){var a,u,p,h,f,w,$,b=[],x=typeof i;if(r=r||e,w=d(r),"undefined"===x||"function"===x){for(n=!n.length&&i.length?["require","exports","module"]:n,f=0;f<n.length;f+=1)if(h=g(n[f],w),"require"===(u=h.f))b[f]=m.require(e);else if("exports"===u)b[f]=m.exports(e),$=!0;else if("module"===u)a=b[f]=m.module(e);else if(o(v,u)||o(y,u)||o(_,u))b[f]=c(u);else{if(!h.p)throw new Error(e+" missing "+u);h.p.load(h.n,s(r,!0),l(u),{}),b[f]=v[u]}p=i?i.apply(v[e],b):void 0,e&&(a&&a.exports!==t&&a.exports!==v[e]?v[e]=a.exports:p===t&&$||(v[e]=p))}else e&&(v[e]=i)},e=n=f=function(e,n,i,o,r){if("string"==typeof e)return m[e]?m[e](n):c(g(e,d(n)).f);if(!e.splice){if(w=e,w.deps&&f(w.deps,w.callback),!n)return;n.splice?(e=n,n=i,i=null):e=t}return n=n||function(){},"function"==typeof i&&(i=o,o=r),o?h(t,e,n,i):setTimeout(function(){h(t,e,n,i)},4),f},f.config=function(e){return f(e)},e._defined=v,i=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),o(v,e)||o(y,e)||(y[e]=[e,t,n])},i.amd={jQuery:!0}}(),t.requirejs=e,t.require=n,t.define=i}}(),t.define("almond",function(){}),t.define("jquery",[],function(){var t=e||$;return null==t&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t}),t.define("select2/utils",["jquery"],function(e){function t(e){var t=e.prototype,n=[];for(var i in t){"function"==typeof t[i]&&"constructor"!==i&&n.push(i)}return n}var n={};n.Extend=function(e,t){function n(){this.constructor=e}var i={}.hasOwnProperty;for(var o in t)i.call(t,o)&&(e[o]=t[o]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},n.Decorate=function(e,n){function i(){var t=Array.prototype.unshift,i=n.prototype.constructor.length,o=e.prototype.constructor;i>0&&(t.call(arguments,e.prototype.constructor),o=n.prototype.constructor),o.apply(this,arguments)}function o(){this.constructor=i}var r=t(n),s=t(e);n.displayName=e.displayName,i.prototype=new o;for(var a=0;a<s.length;a++){var l=s[a];i.prototype[l]=e.prototype[l]}for(var c=0;c<r.length;c++){var u=r[c];i.prototype[u]=function(e){var t=function(){};e in i.prototype&&(t=i.prototype[e]);var o=n.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),o.apply(this,arguments)}}(u)}return i};var i=function(){this.listeners={}};return i.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},i.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),n[0]._type=e,e in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},i.prototype.invoke=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].apply(this,t)},n.Observable=i,n.generateChars=function(e){for(var t="",n=0;n<e;n++){t+=Math.floor(36*Math.random()).toString(36)}return t},n.bind=function(e,t){return function(){e.apply(t,arguments)}},n._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var o=0;o<n.length;o++){var r=n[o];r=r.substring(0,1).toLowerCase()+r.substring(1),r in i||(i[r]={}),o==n.length-1&&(i[r]=e[t]),i=i[r]}delete e[t]}}return e},n.hasScroll=function(t,n){var i=e(n),o=n.style.overflowX,r=n.style.overflowY;return(o!==r||"hidden"!==r&&"visible"!==r)&&("scroll"===o||"scroll"===r||(i.innerHeight()<n.scrollHeight||i.innerWidth()<n.scrollWidth))},n.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},n.appendMany=function(t,n){if("1.7"===e.fn.jquery.substr(0,3)){var i=e();e.map(n,function(e){i=i.add(e)}),n=i}t.append(n)},n}),t.define("select2/results",["jquery","./utils"],function(e,t){function n(e,t,i){this.$element=e,this.data=i,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t,t},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(t){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var i=e('<li role="treeitem" aria-live="assertive" class="select2-results__option"></li>'),o=this.options.get("translations").get(t.message);i.append(n(o(t.args))),i[0].className+=" select2-results__message",this.$results.append(i)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(e){this.hideLoading();var t=[];if(null==e.results||0===e.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var i=e.results[n],o=this.option(i);t.push(o)}this.$results.append(t)},n.prototype.position=function(e,t){t.find(".select2-results").append(e)},n.prototype.sort=function(e){return this.options.get("sorter")(e)},n.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");t.length>0?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},n.prototype.setClasses=function(){var t=this;this.data.current(function(n){var i=e.map(n,function(e){return e.id.toString()});t.$results.find(".select2-results__option[aria-selected]").each(function(){var t=e(this),n=e.data(this,"data"),o=""+n.id;null!=n.element&&n.element.selected||null==n.element&&e.inArray(o,i)>-1?t.attr("aria-selected","true"):t.attr("aria-selected","false")})})},n.prototype.showLoading=function(e){this.hideLoading();var t=this.options.get("translations").get("searching"),n={disabled:!0,loading:!0,text:t(e)},i=this.option(n);i.className+=" loading-results",this.$results.prepend(i)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(t){var n=document.createElement("li");n.className="select2-results__option";var i={role:"treeitem","aria-selected":"false"};t.disabled&&(delete i["aria-selected"],i["aria-disabled"]="true"),null==t.id&&delete i["aria-selected"],null!=t._resultId&&(n.id=t._resultId),t.title&&(n.title=t.title),t.children&&(i.role="group",i["aria-label"]=t.text,delete i["aria-selected"]);for(var o in i){var r=i[o];n.setAttribute(o,r)}if(t.children){var s=e(n),a=document.createElement("strong");a.className="select2-results__group";e(a);this.template(t,a);for(var l=[],c=0;c<t.children.length;c++){var u=t.children[c],d=this.option(u);l.push(d)}var p=e("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});p.append(l),s.append(a),s.append(p)}else this.template(t,n);return e.data(n,"data",t),n},n.prototype.bind=function(t,n){var i=this,o=t.id+"-results";this.$results.attr("id",o),t.on("results:all",function(e){i.clear(),i.append(e.data),t.isOpen()&&(i.setClasses(),i.highlightFirstItem())}),t.on("results:append",function(e){i.append(e.data),t.isOpen()&&i.setClasses()}),t.on("query",function(e){i.hideMessages(),i.showLoading(e)}),t.on("select",function(){t.isOpen()&&(i.setClasses(),i.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(i.setClasses(),i.highlightFirstItem())}),t.on("open",function(){i.$results.attr("aria-expanded","true"),i.$results.attr("aria-hidden","false"),i.setClasses(),i.ensureHighlightVisible()}),t.on("close",function(){i.$results.attr("aria-expanded","false"),i.$results.attr("aria-hidden","true"),i.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=i.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=i.getHighlightedResults();if(0!==e.length){var t=e.data("data");"true"==e.attr("aria-selected")?i.trigger("close",{}):i.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=i.getHighlightedResults(),t=i.$results.find("[aria-selected]"),n=t.index(e);if(0!==n){var o=n-1;0===e.length&&(o=0);var r=t.eq(o);r.trigger("mouseenter");var s=i.$results.offset().top,a=r.offset().top,l=i.$results.scrollTop()+(a-s);0===o?i.$results.scrollTop(0):a-s<0&&i.$results.scrollTop(l)}}),t.on("results:next",function(){var e=i.getHighlightedResults(),t=i.$results.find("[aria-selected]"),n=t.index(e),o=n+1;if(!(o>=t.length)){var r=t.eq(o);r.trigger("mouseenter");var s=i.$results.offset().top+i.$results.outerHeight(!1),a=r.offset().top+r.outerHeight(!1),l=i.$results.scrollTop()+a-s;0===o?i.$results.scrollTop(0):a>s&&i.$results.scrollTop(l)}}),t.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")}),t.on("results:message",function(e){i.displayMessage(e)}),e.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=i.$results.scrollTop(),n=i.$results.get(0).scrollHeight-t+e.deltaY,o=e.deltaY>0&&t-e.deltaY<=0,r=e.deltaY<0&&n<=i.$results.height();o?(i.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):r&&(i.$results.scrollTop(i.$results.get(0).scrollHeight-i.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(t){var n=e(this),o=n.data("data");if("true"===n.attr("aria-selected"))return void(i.options.get("multiple")?i.trigger("unselect",{originalEvent:t,data:o}):i.trigger("close",{}));i.trigger("select",{originalEvent:t,data:o})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(t){var n=e(this).data("data");i.getHighlightedResults().removeClass("select2-results__option--highlighted"),i.trigger("results:focus",{data:n,element:e(this)})})},n.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]"),n=t.index(e),i=this.$results.offset().top,o=e.offset().top,r=this.$results.scrollTop()+(o-i),s=o-i;r-=2*e.outerHeight(!1),n<=2?this.$results.scrollTop(0):(s>this.$results.outerHeight()||s<0)&&this.$results.scrollTop(r)}},n.prototype.template=function(t,n){var i=this.options.get("templateResult"),o=this.options.get("escapeMarkup"),r=i(t,n);null==r?n.style.display="none":"string"==typeof r?n.innerHTML=o(r):e(n).append(r)},n}),t.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),t.define("select2/selection/base",["jquery","../utils","../keys"],function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=e('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),t.attr("title",this.$element.attr("title")),t.attr("tabindex",this._tabindex),this.$selection=t,t},i.prototype.bind=function(e,t){var i=this,o=(e.id,e.id+"-results");this.container=e,this.$selection.on("focus",function(e){i.trigger("focus",e)}),this.$selection.on("blur",function(e){i._handleBlur(e)}),this.$selection.on("keydown",function(e){i.trigger("keypress",e),e.which===n.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){i.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){i.update(e.data)}),e.on("open",function(){i.$selection.attr("aria-expanded","true"),i.$selection.attr("aria-owns",o),i._attachCloseHandler(e)}),e.on("close",function(){i.$selection.attr("aria-expanded","false"),i.$selection.removeAttr("aria-activedescendant"),i.$selection.removeAttr("aria-owns"),i.$selection.focus(),i._detachCloseHandler(e)}),e.on("enable",function(){i.$selection.attr("tabindex",i._tabindex)}),e.on("disable",function(){i.$selection.attr("tabindex","-1")})},i.prototype._handleBlur=function(t){var n=this;window.setTimeout(function(){document.activeElement==n.$selection[0]||e.contains(n.$selection[0],document.activeElement)||n.trigger("blur",t)},1)},i.prototype._attachCloseHandler=function(t){e(document.body).on("mousedown.select2."+t.id,function(t){var n=e(t.target),i=n.closest(".select2");e(".select2.select2-container--open").each(function(){var t=e(this);this!=i[0]&&t.data("element").select2("close")})})},i.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},i.prototype.position=function(e,t){t.find(".selection").append(e)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},i}),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,i){function o(){o.__super__.constructor.apply(this,arguments)}return n.Extend(o,t),o.prototype.render=function(){var e=o.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},o.prototype.bind=function(e,t){var n=this;o.__super__.bind.apply(this,arguments);var i=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i),this.$selection.attr("aria-labelledby",i),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),e.on("focus",function(t){e.isOpen()||n.$selection.focus()}),e.on("selection:update",function(e){n.update(e.data)})},o.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},o.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},o.prototype.selectionContainer=function(){return e("<span></span>")},o.prototype.update=function(e){if(0===e.length)return void this.clear();var t=e[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(t,n);n.empty().append(i),n.prop("title",t.title||t.text)},o}),t.define("select2/selection/multiple",["jquery","./base","../utils"],function(e,t,n){function i(e,t){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},i.prototype.bind=function(t,n){var o=this;i.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){o.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(t){if(!o.options.get("disabled")){var n=e(this),i=n.parent(),r=i.data("data");o.trigger("unselect",{originalEvent:t,data:r})}})},i.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>')},i.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],i=0;i<e.length;i++){var o=e[i],r=this.selectionContainer(),s=this.display(o,r);r.append(s),r.prop("title",o.title||o.text),r.data("data",o),t.push(r)}var a=this.$selection.find(".select2-selection__rendered");n.appendMany(a,t)}},i}),t.define("select2/selection/placeholder",["../utils"],function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(t.length>1||n)return e.call(this,t);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},t}),t.define("select2/selection/allowClear",["jquery","../keys"],function(e,t){function n(){}return n.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){i._handleClear(e)}),t.on("keypress",function(e){i._handleKeyboardClear(e,t)})},n.prototype._handleClear=function(e,t){if(!this.options.get("disabled")){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();for(var i=n.data("data"),o=0;o<i.length;o++){var r={data:i[o]};if(this.trigger("unselect",r),r.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},n.prototype._handleKeyboardClear=function(e,n,i){i.isOpen()||n.which!=t.DELETE&&n.which!=t.BACKSPACE||this._handleClear(n)},n.prototype.update=function(t,n){if(t.call(this,n),!(this.$selection.find(".select2-selection__placeholder").length>0||0===n.length)){var i=e('<span class="select2-selection__clear">&times;</span>');i.data("data",n),this.$selection.find(".select2-selection__rendered").prepend(i)}},n}),t.define("select2/selection/search",["jquery","../utils","../keys"],function(e,t,n){function i(e,t,n){e.call(this,t,n)}return i.prototype.render=function(t){var n=e('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=n,this.$search=n.find("input");var i=t.call(this);return this._transferTabIndex(),i},i.prototype.bind=function(e,t,i){var o=this;e.call(this,t,i),t.on("open",function(){o.$search.trigger("focus")}),t.on("close",function(){o.$search.val(""),o.$search.removeAttr("aria-activedescendant"),o.$search.trigger("focus")}),t.on("enable",function(){o.$search.prop("disabled",!1),o._transferTabIndex()}),t.on("disable",function(){o.$search.prop("disabled",!0)}),t.on("focus",function(e){o.$search.trigger("focus")}),t.on("results:focus",function(e){o.$search.attr("aria-activedescendant",e.id)}),this.$selection.on("focusin",".select2-search--inline",function(e){o.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){o._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){if(e.stopPropagation(),o.trigger("keypress",e),o._keyUpPrevented=e.isDefaultPrevented(),e.which===n.BACKSPACE&&""===o.$search.val()){var t=o.$searchContainer.prev(".select2-selection__choice");if(t.length>0){var i=t.data("data");o.searchRemoveChoice(i),e.preventDefault()}}});var r=document.documentMode,s=r&&r<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){if(s)return void o.$selection.off("input.search input.searchcheck");o.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(s&&"input"===e.type)return void o.$selection.off("input.search input.searchcheck");var t=e.which;t!=n.SHIFT&&t!=n.CTRL&&t!=n.ALT&&t!=n.TAB&&o.handleSearch(e)})},i.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},i.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},i.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.focus()},i.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},i.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},i.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";if(""!==this.$search.attr("placeholder"))e=this.$selection.find(".select2-selection__rendered").innerWidth();else{e=.75*(this.$search.val().length+1)+"em"}this.$search.css("width",e)},i}),t.define("select2/selection/eventRelay",["jquery"],function(e){function t(){}return t.prototype.bind=function(t,n,i){var o=this,r=["open","opening","close","closing","select","selecting","unselect","unselecting"],s=["opening","closing","selecting","unselecting"];t.call(this,n,i),n.on("*",function(t,n){if(e.inArray(t,r)!==-1){n=n||{};var i=e.Event("select2:"+t,{params:n});o.$element.trigger(i),e.inArray(t,s)!==-1&&(n.prevented=i.isDefaultPrevented())}})},t}),t.define("select2/translation",["jquery","require"],function(e,t){function n(e){this.dict=e||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(e){return this.dict[e]},n.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},n._cache={},n.loadPath=function(e){if(!(e in n._cache)){var i=t(e);n._cache[e]=i}return new n(n._cache[e])},n}),t.define("select2/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}}),t.define("select2/data/base",["../utils"],function(e){function t(e,n){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},t.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(e,t){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,n){var i=t.id+"-result-";return i+=e.generateChars(4),i+=null!=n.id?"-"+n.id.toString():"-"+e.generateChars(4)},t}),t.define("select2/data/select",["./base","../utils","jquery"],function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,e),i.prototype.current=function(e){var t=[],i=this;this.$element.find(":selected").each(function(){var e=n(this),o=i.item(e);t.push(o)}),e(t)},i.prototype.select=function(e){var t=this;if(e.selected=!0,n(e.element).is("option"))return e.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(i){var o=[];e=[e],e.push.apply(e,i);for(var r=0;r<e.length;r++){var s=e[r].id;n.inArray(s,o)===-1&&o.push(s)}t.$element.val(o),t.$element.trigger("change")});else{var i=e.id;this.$element.val(i),this.$element.trigger("change")}},i.prototype.unselect=function(e){var t=this;if(this.$element.prop("multiple")){if(e.selected=!1,
n(e.element).is("option"))return e.element.selected=!1,void this.$element.trigger("change");this.current(function(i){for(var o=[],r=0;r<i.length;r++){var s=i[r].id;s!==e.id&&n.inArray(s,o)===-1&&o.push(s)}t.$element.val(o),t.$element.trigger("change")})}},i.prototype.bind=function(e,t){var n=this;this.container=e,e.on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},i.prototype.destroy=function(){this.$element.find("*").each(function(){n.removeData(this,"data")})},i.prototype.query=function(e,t){var i=[],o=this;this.$element.children().each(function(){var t=n(this);if(t.is("option")||t.is("optgroup")){var r=o.item(t),s=o.matches(e,r);null!==s&&i.push(s)}}),t({results:i})},i.prototype.addOptions=function(e){t.appendMany(this.$element,e)},i.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup"),t.label=e.text):(t=document.createElement("option"),void 0!==t.textContent?t.textContent=e.text:t.innerText=e.text),void 0!==e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var i=n(t),o=this._normalizeItem(e);return o.element=t,n.data(t,"data",o),i},i.prototype.item=function(e){var t={};if(null!=(t=n.data(e[0],"data")))return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var i=e.children("option"),o=[],r=0;r<i.length;r++){var s=n(i[r]),a=this.item(s);o.push(a)}t.children=o}return t=this._normalizeItem(t),t.element=e[0],n.data(e[0],"data",t),t},i.prototype._normalizeItem=function(e){n.isPlainObject(e)||(e={id:e,text:e}),e=n.extend({},{text:""},e);var t={selected:!1,disabled:!1};return null!=e.id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),n.extend({},t,e)},i.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},i}),t.define("select2/data/array",["./select","../utils","jquery"],function(e,t,n){function i(e,t){var n=t.get("data")||[];i.__super__.constructor.call(this,e,t),this.addOptions(this.convertToOptions(n))}return t.Extend(i,e),i.prototype.select=function(e){var t=this.$element.find("option").filter(function(t,n){return n.value==e.id.toString()});0===t.length&&(t=this.option(e),this.addOptions(t)),i.__super__.select.call(this,e)},i.prototype.convertToOptions=function(e){for(var i=this,o=this.$element.find("option"),r=o.map(function(){return i.item(n(this)).id}).get(),s=[],a=0;a<e.length;a++){var l=this._normalizeItem(e[a]);if(n.inArray(l.id,r)>=0){var c=o.filter(function(e){return function(){return n(this).val()==e.id}}(l)),u=this.item(c),d=n.extend(!0,{},l,u),p=this.option(d);c.replaceWith(p)}else{var h=this.option(l);if(l.children){var f=this.convertToOptions(l.children);t.appendMany(h,f)}s.push(h)}}return s},i}),t.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,n){function i(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype._applyDefaults=function(e){var t={data:function(e){return n.extend({},e,{q:e.term})},transport:function(e,t,i){var o=n.ajax(e);return o.then(t),o.fail(i),o}};return n.extend({},t,e,!0)},i.prototype.processResults=function(e){return e},i.prototype.query=function(e,t){function i(){var i=r.transport(r,function(i){var r=o.processResults(i,e);o.options.get("debug")&&window.console&&console.error&&(r&&r.results&&n.isArray(r.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),t(r)},function(){i.status&&"0"===i.status||o.trigger("results:message",{message:"errorLoading"})});o._request=i}var o=this;null!=this._request&&(n.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var r=n.extend({type:"GET"},this.ajaxOptions);"function"==typeof r.url&&(r.url=r.url.call(this.$element,e)),"function"==typeof r.data&&(r.data=r.data.call(this.$element,e)),this.ajaxOptions.delay&&null!=e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(i,this.ajaxOptions.delay)):i()},i}),t.define("select2/data/tags",["jquery"],function(e){function t(t,n,i){var o=i.get("tags"),r=i.get("createTag");void 0!==r&&(this.createTag=r);var s=i.get("insertTag");if(void 0!==s&&(this.insertTag=s),t.call(this,n,i),e.isArray(o))for(var a=0;a<o.length;a++){var l=o[a],c=this._normalizeItem(l),u=this.option(c);this.$element.append(u)}}return t.prototype.query=function(e,t,n){function i(e,r){for(var s=e.results,a=0;a<s.length;a++){var l=s[a],c=null!=l.children&&!i({results:l.children},!0);if((l.text||"").toUpperCase()===(t.term||"").toUpperCase()||c)return!r&&(e.data=s,void n(e))}if(r)return!0;var u=o.createTag(t);if(null!=u){var d=o.option(u);d.attr("data-select2-tag",!0),o.addOptions([d]),o.insertTag(s,u)}e.results=s,n(e)}var o=this;if(this._removeOldTags(),null==t.term||null!=t.page)return void e.call(this,t,n);e.call(this,t,i)},t.prototype.createTag=function(t,n){var i=e.trim(n.term);return""===i?null:{id:i,text:i}},t.prototype.insertTag=function(e,t,n){t.unshift(n)},t.prototype._removeOldTags=function(t){this._lastTag;this.$element.find("option[data-select2-tag]").each(function(){this.selected||e(this).remove()})},t}),t.define("select2/data/tokenizer",["jquery"],function(e){function t(e,t,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),e.call(this,t,n)}return t.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},t.prototype.query=function(t,n,i){function o(t){var n=s._normalizeItem(t);if(!s.$element.find("option").filter(function(){return e(this).val()===n.id}).length){var i=s.option(n);i.attr("data-select2-tag",!0),s._removeOldTags(),s.addOptions([i])}r(n)}function r(e){s.trigger("select",{data:e})}var s=this;n.term=n.term||"";var a=this.tokenizer(n,this.options,o);a.term!==n.term&&(this.$search.length&&(this.$search.val(a.term),this.$search.focus()),n.term=a.term),t.call(this,n,i)},t.prototype.tokenizer=function(t,n,i,o){for(var r=i.get("tokenSeparators")||[],s=n.term,a=0,l=this.createTag||function(e){return{id:e.term,text:e.term}};a<s.length;){var c=s[a];if(e.inArray(c,r)!==-1){var u=s.substr(0,a),d=e.extend({},n,{term:u}),p=l(d);null!=p?(o(p),s=s.substr(a+1)||"",a=0):a++}else a++}return{term:s}},t}),t.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){if(t.term=t.term||"",t.term.length<this.minimumInputLength)return void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}});e.call(this,t,n)},e}),t.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){if(t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength)return void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}});e.call(this,t,n)},e}),t.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){var i=this;this.current(function(o){var r=null!=o?o.length:0;if(i.maximumSelectionLength>0&&r>=i.maximumSelectionLength)return void i.trigger("results:message",{message:"maximumSelected",args:{maximum:i.maximumSelectionLength}});e.call(i,t,n)})},e}),t.define("select2/dropdown",["jquery","./utils"],function(e,t){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<span class="select2-dropdown"><span class="select2-results"></span></span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),t.define("select2/dropdown/search",["jquery","../utils"],function(e,t){function n(){}return n.prototype.render=function(t){var n=t.call(this),i=e('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=i,this.$search=i.find("input"),n.prepend(i),n},n.prototype.bind=function(t,n,i){var o=this;t.call(this,n,i),this.$search.on("keydown",function(e){o.trigger("keypress",e),o._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(t){e(this).off("keyup")}),this.$search.on("keyup input",function(e){o.handleSearch(e)}),n.on("open",function(){o.$search.attr("tabindex",0),o.$search.focus(),window.setTimeout(function(){o.$search.focus()},0)}),n.on("close",function(){o.$search.attr("tabindex",-1),o.$search.val("")}),n.on("focus",function(){n.isOpen()||o.$search.focus()}),n.on("results:all",function(e){if(null==e.query.term||""===e.query.term){o.showSearch(e)?o.$searchContainer.removeClass("select2-search--hide"):o.$searchContainer.addClass("select2-search--hide")}})},n.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},n.prototype.showSearch=function(e,t){return!0},n}),t.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;i>=0;i--){var o=t[i];this.placeholder.id===o.id&&n.splice(i,1)}return n},e}),t.define("select2/dropdown/infiniteScroll",["jquery"],function(e){function t(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},t.prototype.bind=function(t,n,i){var o=this;t.call(this,n,i),n.on("query",function(e){o.lastParams=e,o.loading=!0}),n.on("query:append",function(e){o.lastParams=e,o.loading=!0}),this.$results.on("scroll",function(){var t=e.contains(document.documentElement,o.$loadingMore[0]);if(!o.loading&&t){o.$results.offset().top+o.$results.outerHeight(!1)+50>=o.$loadingMore.offset().top+o.$loadingMore.outerHeight(!1)&&o.loadMore()}})},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),n=this.options.get("translations").get("loadingMore");return t.html(n(this.lastParams)),t},t}),t.define("select2/dropdown/attachBody",["jquery","../utils"],function(e,t){function n(t,n,i){this.$dropdownParent=i.get("dropdownParent")||e(document.body),t.call(this,n,i)}return n.prototype.bind=function(e,t,n){var i=this,o=!1;e.call(this,t,n),t.on("open",function(){i._showDropdown(),i._attachPositioningHandler(t),o||(o=!0,t.on("results:all",function(){i._positionDropdown(),i._resizeDropdown()}),t.on("results:append",function(){i._positionDropdown(),i._resizeDropdown()}))}),t.on("close",function(){i._hideDropdown(),i._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},n.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(t){var n=e("<span></span>"),i=t.call(this);return n.append(i),this.$dropdownContainer=n,n},n.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},n.prototype._attachPositioningHandler=function(n,i){var o=this,r="scroll.select2."+i.id,s="resize.select2."+i.id,a="orientationchange.select2."+i.id,l=this.$container.parents().filter(t.hasScroll);l.each(function(){e(this).data("select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})}),l.on(r,function(t){var n=e(this).data("select2-scroll-position");e(this).scrollTop(n.y)}),e(window).on(r+" "+s+" "+a,function(e){o._positionDropdown(),o._resizeDropdown()})},n.prototype._detachPositioningHandler=function(n,i){var o="scroll.select2."+i.id,r="resize.select2."+i.id,s="orientationchange.select2."+i.id;this.$container.parents().filter(t.hasScroll).off(o),e(window).off(o+" "+r+" "+s)},n.prototype._positionDropdown=function(){var t=e(window),n=this.$dropdown.hasClass("select2-dropdown--above"),i=this.$dropdown.hasClass("select2-dropdown--below"),o=null,r=this.$container.offset();r.bottom=r.top+this.$container.outerHeight(!1);var s={height:this.$container.outerHeight(!1)};s.top=r.top,s.bottom=r.top+s.height;var a={height:this.$dropdown.outerHeight(!1)},l={top:t.scrollTop(),bottom:t.scrollTop()+t.height()},c=l.top<r.top-a.height,u=l.bottom>r.bottom+a.height,d={left:r.left,top:s.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var h=p.offset();d.top-=h.top,d.left-=h.left,n||i||(o="below"),u||!c||n?!c&&u&&n&&(o="below"):o="above",("above"==o||n&&"below"!==o)&&(d.top=s.top-h.top-a.height),null!=o&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+o),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+o)),this.$dropdownContainer.css(d)},n.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},n.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n}),t.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(t){for(var n=0,i=0;i<t.length;i++){var o=t[i];o.children?n+=e(o.children):n++}return n}function t(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return t.prototype.showSearch=function(t,n){return!(e(n.data.results)<this.minimumResultsForSearch)&&t.call(this,n)},t}),t.define("select2/dropdown/selectOnClose",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",function(e){i._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var n=t.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var i=this.getHighlightedResults();if(!(i.length<1)){var o=i.data("data");null!=o.element&&o.element.selected||null==o.element&&o.selected||this.trigger("select",{data:o})}},e}),t.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(e){i._selectTriggered(e)}),t.on("unselect",function(e){i._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&n.ctrlKey||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),t.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),t.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(e,t,n,i,o,r,s,a,l,c,u,d,p,h,f,g,m,v,y,w,_,$,b,x,A,C,S,O,E){function D(){this.reset()}return D.prototype.apply=function(d){if(d=e.extend(!0,{},this.defaults,d),null==d.dataAdapter){if(null!=d.ajax?d.dataAdapter=f:null!=d.data?d.dataAdapter=h:d.dataAdapter=p,d.minimumInputLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,v)),d.maximumInputLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,y)),d.maximumSelectionLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,w)),d.tags&&(d.dataAdapter=c.Decorate(d.dataAdapter,g)),null==d.tokenSeparators&&null==d.tokenizer||(d.dataAdapter=c.Decorate(d.dataAdapter,m)),null!=d.query){var E=t(d.amdBase+"compat/query");d.dataAdapter=c.Decorate(d.dataAdapter,E)}if(null!=d.initSelection){var D=t(d.amdBase+"compat/initSelection");d.dataAdapter=c.Decorate(d.dataAdapter,D)}}if(null==d.resultsAdapter&&(d.resultsAdapter=n,null!=d.ajax&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,x)),null!=d.placeholder&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,b)),d.selectOnClose&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,S))),null==d.dropdownAdapter){if(d.multiple)d.dropdownAdapter=_;else{var T=c.Decorate(_,$);d.dropdownAdapter=T}if(0!==d.minimumResultsForSearch&&(d.dropdownAdapter=c.Decorate(d.dropdownAdapter,C)),d.closeOnSelect&&(d.dropdownAdapter=c.Decorate(d.dropdownAdapter,O)),null!=d.dropdownCssClass||null!=d.dropdownCss||null!=d.adaptDropdownCssClass){var q=t(d.amdBase+"compat/dropdownCss");d.dropdownAdapter=c.Decorate(d.dropdownAdapter,q)}d.dropdownAdapter=c.Decorate(d.dropdownAdapter,A)}if(null==d.selectionAdapter){if(d.multiple?d.selectionAdapter=o:d.selectionAdapter=i,null!=d.placeholder&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,r)),d.allowClear&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,s)),d.multiple&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,a)),null!=d.containerCssClass||null!=d.containerCss||null!=d.adaptContainerCssClass){var j=t(d.amdBase+"compat/containerCss");d.selectionAdapter=c.Decorate(d.selectionAdapter,j)}d.selectionAdapter=c.Decorate(d.selectionAdapter,l)}if("string"==typeof d.language)if(d.language.indexOf("-")>0){var L=d.language.split("-"),k=L[0];d.language=[d.language,k]}else d.language=[d.language];if(e.isArray(d.language)){var P=new u;d.language.push("en");for(var I=d.language,M=0;M<I.length;M++){var R=I[M],z={};try{z=u.loadPath(R)}catch(e){try{R=this.defaults.amdLanguageBase+R,z=u.loadPath(R)}catch(e){d.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+R+'" could not be automatically loaded. A fallback will be used instead.');continue}}P.extend(z)}d.translations=P}else{var H=u.loadPath(this.defaults.amdLanguageBase+"en"),U=new u(d.language);U.extend(H),d.translations=U}return d},D.prototype.reset=function(){function t(e){function t(e){return d[e]||e}return e.replace(/[^\u0000-\u007E]/g,t)}function n(i,o){if(""===e.trim(i.term))return o;if(o.children&&o.children.length>0){for(var r=e.extend(!0,{},o),s=o.children.length-1;s>=0;s--){null==n(i,o.children[s])&&r.children.splice(s,1)}return r.children.length>0?r:n(i,r)}var a=t(o.text).toUpperCase(),l=t(i.term).toUpperCase();return a.indexOf(l)>-1?o:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:c.escapeMarkup,language:E,matcher:n,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},D.prototype.set=function(t,n){var i=e.camelCase(t),o={};o[i]=n;var r=c._convertData(o);e.extend(this.defaults,r)},new D}),t.define("select2/options",["require","jquery","./defaults","./utils"],function(e,t,n,i){function o(t,o){if(this.options=t,null!=o&&this.fromElement(o),this.options=n.apply(this.options),o&&o.is("input")){var r=e(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=i.Decorate(this.options.dataAdapter,r)}}return o.prototype.fromElement=function(e){var n=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.language&&(e.prop("lang")?this.options.language=e.prop("lang").toLowerCase():e.closest("[lang]").prop("lang")&&(this.options.language=e.closest("[lang]").prop("lang"))),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),e.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),e.data("data",e.data("select2Tags")),e.data("tags",!0)),e.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",e.data("ajaxUrl")),e.data("ajax--url",e.data("ajaxUrl")));var o={};o=t.fn.jquery&&"1."==t.fn.jquery.substr(0,2)&&e[0].dataset?t.extend(!0,{},e[0].dataset,e.data()):e.data();var r=t.extend(!0,{},o);r=i._convertData(r);for(var s in r)t.inArray(s,n)>-1||(t.isPlainObject(this.options[s])?t.extend(this.options[s],r[s]):this.options[s]=r[s]);return this},o.prototype.get=function(e){return this.options[e]},o.prototype.set=function(e,t){this.options[e]=t},o}),t.define("select2/core",["jquery","./options","./utils","./keys"],function(e,t,n,i){var o=function(e,n){null!=e.data("select2")&&e.data("select2").destroy(),this.$element=e,this.id=this._generateId(e),n=n||{},this.options=new t(n,e),o.__super__.constructor.call(this);var i=e.attr("tabindex")||0;e.data("old-tabindex",i),e.attr("tabindex","-1");var r=this.options.get("dataAdapter");this.dataAdapter=new r(e,this.options);var s=this.render();this._placeContainer(s);var a=this.options.get("selectionAdapter");this.selection=new a(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,s);var l=this.options.get("dropdownAdapter");this.dropdown=new l(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,s);var c=this.options.get("resultsAdapter");this.results=new c(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var u=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){u.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),e.data("select2",this)};return n.Extend(o,n.Observable),o.prototype._generateId=function(e){var t="";return t=null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+n.generateChars(2):n.generateChars(4),t=t.replace(/(:|\.|\[|\]|,)/g,""),t="select2-"+t},o.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},o.prototype._resolveWidth=function(e,t){if("resolve"==t){var n=this._resolveWidth(e,"style");return null!=n?n:this._resolveWidth(e,"element")}if("element"==t){var i=e.outerWidth(!1);return i<=0?"auto":i+"px"}if("style"==t){var o=e.attr("style");if("string"!=typeof o)return null;for(var r=o.split(";"),s=0,a=r.length;s<a;s+=1){var l=r[s].replace(/\s/g,""),c=l.match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i);if(null!==c&&c.length>=1)return c[1]}return null}return t},o.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},o.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var i=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=i?(this._observer=new i(function(n){e.each(n,t._syncA),e.each(n,t._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},o.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",function(t,n){e.trigger(t,n)})},o.prototype._registerSelectionEvents=function(){var t=this,n=["toggle","focus"];this.selection.on("toggle",function(){t.toggleDropdown()}),this.selection.on("focus",function(e){t.focus(e)}),this.selection.on("*",function(i,o){e.inArray(i,n)===-1&&t.trigger(i,o)})},o.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",function(t,n){e.trigger(t,n)})},o.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",function(t,n){e.trigger(t,n)})},o.prototype._registerEvents=function(){var e=this;this.on("open",function(){e.$container.addClass("select2-container--open")}),this.on("close",function(){e.$container.removeClass("select2-container--open")}),this.on("enable",function(){e.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){e.$container.addClass("select2-container--disabled")}),this.on("blur",function(){e.$container.removeClass("select2-container--focus")}),this.on("query",function(t){e.isOpen()||e.trigger("open",{}),this.dataAdapter.query(t,function(n){e.trigger("results:all",{data:n,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(n){e.trigger("results:append",{data:n,query:t})})}),this.on("keypress",function(t){var n=t.which;e.isOpen()?n===i.ESC||n===i.TAB||n===i.UP&&t.altKey?(e.close(),t.preventDefault()):n===i.ENTER?(e.trigger("results:select",{}),t.preventDefault()):n===i.SPACE&&t.ctrlKey?(e.trigger("results:toggle",{}),t.preventDefault()):n===i.UP?(e.trigger("results:previous",{}),t.preventDefault()):n===i.DOWN&&(e.trigger("results:next",{}),t.preventDefault()):(n===i.ENTER||n===i.SPACE||n===i.DOWN&&t.altKey)&&(e.open(),t.preventDefault())})},o.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},o.prototype._syncSubtree=function(e,t){var n=!1,i=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&t.addedNodes.length>0)for(var o=0;o<t.addedNodes.length;o++){var r=t.addedNodes[o];r.selected&&(n=!0)}else t.removedNodes&&t.removedNodes.length>0&&(n=!0);else n=!0;n&&this.dataAdapter.current(function(e){i.trigger("selection:update",{data:e})})}},o.prototype.trigger=function(e,t){var n=o.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===t&&(t={}),e in i){var r=i[e],s={prevented:!1,name:e,args:t};if(n.call(this,r,s),s.prevented)return void(t.prevented=!0)}n.call(this,e,t)},o.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},o.prototype.open=function(){this.isOpen()||this.trigger("query",{})},o.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},o.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},o.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},o.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},o.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},o.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var e=[];return this.dataAdapter.current(function(t){e=t}),e},o.prototype.val=function(t){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==t||0===t.length)return this.$element.val();var n=t[0];e.isArray(n)&&(n=e.map(n,function(e){return e.toString()})),this.$element.val(n).trigger("change")},o.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},o.prototype.render=function(){var t=e('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container.addClass("select2-container--"+this.options.get("theme")),t.data("element",this.$element),t},o}),t.define("select2/compat/utils",["jquery"],function(e){function t(t,n,i){var o,r,s=[]
;o=e.trim(t.attr("class")),o&&(o=""+o,e(o.split(/\s+/)).each(function(){0===this.indexOf("select2-")&&s.push(this)})),o=e.trim(n.attr("class")),o&&(o=""+o,e(o.split(/\s+/)).each(function(){0!==this.indexOf("select2-")&&null!=(r=i(this))&&s.push(r)})),t.attr("class",s.join(" "))}return{syncCssClasses:t}}),t.define("select2/compat/containerCss",["jquery","./utils"],function(e,t){function n(e){return null}function i(){}return i.prototype.render=function(i){var o=i.call(this),r=this.options.get("containerCssClass")||"";e.isFunction(r)&&(r=r(this.$element));var s=this.options.get("adaptContainerCssClass");if(s=s||n,r.indexOf(":all:")!==-1){r=r.replace(":all:","");var a=s;s=function(e){var t=a(e);return null!=t?t+" "+e:e}}var l=this.options.get("containerCss")||{};return e.isFunction(l)&&(l=l(this.$element)),t.syncCssClasses(o,this.$element,s),o.css(l),o.addClass(r),o},i}),t.define("select2/compat/dropdownCss",["jquery","./utils"],function(e,t){function n(e){return null}function i(){}return i.prototype.render=function(i){var o=i.call(this),r=this.options.get("dropdownCssClass")||"";e.isFunction(r)&&(r=r(this.$element));var s=this.options.get("adaptDropdownCssClass");if(s=s||n,r.indexOf(":all:")!==-1){r=r.replace(":all:","");var a=s;s=function(e){var t=a(e);return null!=t?t+" "+e:e}}var l=this.options.get("dropdownCss")||{};return e.isFunction(l)&&(l=l(this.$element)),t.syncCssClasses(o,this.$element,s),o.css(l),o.addClass(r),o},i}),t.define("select2/compat/initSelection",["jquery"],function(e){function t(e,t,n){n.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `initSelection` option has been deprecated in favor of a custom data adapter that overrides the `current` method. This method is now called multiple times instead of a single time when the instance is initialized. Support will be removed for the `initSelection` option in future versions of Select2"),this.initSelection=n.get("initSelection"),this._isInitialized=!1,e.call(this,t,n)}return t.prototype.current=function(t,n){var i=this;if(this._isInitialized)return void t.call(this,n);this.initSelection.call(null,this.$element,function(t){i._isInitialized=!0,e.isArray(t)||(t=[t]),n(t)})},t}),t.define("select2/compat/inputData",["jquery"],function(e){function t(e,t,n){this._currentData=[],this._valueSeparator=n.get("valueSeparator")||",","hidden"===t.prop("type")&&n.get("debug")&&console&&console.warn&&console.warn("Select2: Using a hidden input with Select2 is no longer supported and may stop working in the future. It is recommended to use a `<select>` element instead."),e.call(this,t,n)}return t.prototype.current=function(t,n){function i(t,n){var o=[];return t.selected||e.inArray(t.id,n)!==-1?(t.selected=!0,o.push(t)):t.selected=!1,t.children&&o.push.apply(o,i(t.children,n)),o}for(var o=[],r=0;r<this._currentData.length;r++){var s=this._currentData[r];o.push.apply(o,i(s,this.$element.val().split(this._valueSeparator)))}n(o)},t.prototype.select=function(t,n){if(this.options.get("multiple")){var i=this.$element.val();i+=this._valueSeparator+n.id,this.$element.val(i),this.$element.trigger("change")}else this.current(function(t){e.map(t,function(e){e.selected=!1})}),this.$element.val(n.id),this.$element.trigger("change")},t.prototype.unselect=function(e,t){var n=this;t.selected=!1,this.current(function(e){for(var i=[],o=0;o<e.length;o++){var r=e[o];t.id!=r.id&&i.push(r.id)}n.$element.val(i.join(n._valueSeparator)),n.$element.trigger("change")})},t.prototype.query=function(e,t,n){for(var i=[],o=0;o<this._currentData.length;o++){var r=this._currentData[o],s=this.matches(t,r);null!==s&&i.push(s)}n({results:i})},t.prototype.addOptions=function(t,n){var i=e.map(n,function(t){return e.data(t[0],"data")});this._currentData.push.apply(this._currentData,i)},t}),t.define("select2/compat/matcher",["jquery"],function(e){function t(t){function n(n,i){var o=e.extend(!0,{},i);if(null==n.term||""===e.trim(n.term))return o;if(i.children){for(var r=i.children.length-1;r>=0;r--){var s=i.children[r];t(n.term,s.text,s)||o.children.splice(r,1)}if(o.children.length>0)return o}return t(n.term,i.text,i)?o:null}return n}return t}),t.define("select2/compat/query",[],function(){function e(e,t,n){n.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `query` option has been deprecated in favor of a custom data adapter that overrides the `query` method. Support will be removed for the `query` option in future versions of Select2."),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.callback=n,this.options.get("query").call(null,t)},e}),t.define("select2/dropdown/attachContainer",[],function(){function e(e,t,n){e.call(this,t,n)}return e.prototype.position=function(e,t,n){n.find(".dropdown-wrapper").append(t),t.addClass("select2-dropdown--below"),n.addClass("select2-container--below")},e}),t.define("select2/dropdown/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n);var i=["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"];this.$dropdown.on(i.join(" "),function(e){e.stopPropagation()})},e}),t.define("select2/selection/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n);var i=["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"];this.$selection.on(i.join(" "),function(e){e.stopPropagation()})},e}),function(n){"function"==typeof t.define&&t.define.amd?t.define("jquery-mousewheel",["jquery"],n):"object"==typeof exports?module.exports=n:n(e)}(function(e){function t(t){var s=t||window.event,a=l.call(arguments,1),c=0,d=0,p=0,h=0,f=0,g=0;if(t=e.event.fix(s),t.type="mousewheel","detail"in s&&(p=s.detail*-1),"wheelDelta"in s&&(p=s.wheelDelta),"wheelDeltaY"in s&&(p=s.wheelDeltaY),"wheelDeltaX"in s&&(d=s.wheelDeltaX*-1),"axis"in s&&s.axis===s.HORIZONTAL_AXIS&&(d=p*-1,p=0),c=0===p?d:p,"deltaY"in s&&(p=s.deltaY*-1,c=p),"deltaX"in s&&(d=s.deltaX,0===p&&(c=d*-1)),0!==p||0!==d){if(1===s.deltaMode){var m=e.data(this,"mousewheel-line-height");c*=m,p*=m,d*=m}else if(2===s.deltaMode){var v=e.data(this,"mousewheel-page-height");c*=v,p*=v,d*=v}if(h=Math.max(Math.abs(p),Math.abs(d)),(!r||h<r)&&(r=h,i(s,h)&&(r/=40)),i(s,h)&&(c/=40,d/=40,p/=40),c=Math[c>=1?"floor":"ceil"](c/r),d=Math[d>=1?"floor":"ceil"](d/r),p=Math[p>=1?"floor":"ceil"](p/r),u.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();f=t.clientX-y.left,g=t.clientY-y.top}return t.deltaX=d,t.deltaY=p,t.deltaFactor=r,t.offsetX=f,t.offsetY=g,t.deltaMode=0,a.unshift(t,c,d,p),o&&clearTimeout(o),o=setTimeout(n,200),(e.event.dispatch||e.event.handle).apply(this,a)}}function n(){r=null}function i(e,t){return u.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}var o,r,s=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],a="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(e.event.fixHooks)for(var c=s.length;c;)e.event.fixHooks[s[--c]]=e.event.mouseHooks;var u=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var n=a.length;n;)this.addEventListener(a[--n],t,!1);else this.onmousewheel=t;e.data(this,"mousewheel-line-height",u.getLineHeight(this)),e.data(this,"mousewheel-page-height",u.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var n=a.length;n;)this.removeEventListener(a[--n],t,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var n=e(t),i=n["offsetParent"in e.fn?"offsetParent":"parent"]();return i.length||(i=e("body")),parseInt(i.css("fontSize"),10)||parseInt(n.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(e,t,n,i){if(null==e.fn.select2){var o=["open","close","destroy"];e.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var i=e.extend(!0,{},t);new n(e(this),i)}),this;if("string"==typeof t){var i,r=Array.prototype.slice.call(arguments,1);return this.each(function(){var n=e(this).data("select2");null==n&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),i=n[t].apply(n,r)}),e.inArray(t,o)>-1?this:i}throw new Error("Invalid arguments for Select2: "+t)}}return null==e.fn.select2.defaults&&(e.fn.select2.defaults=i),n}),{define:t.define,require:t.require}}(),n=t.require("jquery.select2");return e.fn.select2.amd=t,n});!function(t){"function"==typeof define&&define.amd?define(t):window.purl=t()}(function(){function t(t,e){for(var r=decodeURI(t),n=m[e?"strict":"loose"].exec(r),s={attr:{},param:{},seg:{}},i=14;i--;)s.attr[d[i]]=n[i]||"";return s.param.query=a(s.attr.query),s.param.fragment=a(s.attr.fragment),s.seg.path=s.attr.path.replace(/^\/+|\/+$/g,"").split("/"),s.seg.fragment=s.attr.fragment.replace(/^\/+|\/+$/g,"").split("/"),s.attr.base=s.attr.host?(s.attr.protocol?s.attr.protocol+"://"+s.attr.host:s.attr.host)+(s.attr.port?":"+s.attr.port:""):"",s}function e(t){var e=t.tagName;return void 0!==e?l[e.toLowerCase()]:e}function r(t,e){if(0===t[e].length)return t[e]={};var r={};for(var n in t[e])r[n]=t[e][n];return t[e]=r,r}function n(t,e,s,a){var i=t.shift();if(i){var o=e[s]=e[s]||[];"]"==i?u(o)?""!==a&&o.push(a):"object"==typeof o?o[p(o).length]=a:o=e[s]=[e[s],a]:~i.indexOf("]")?(i=i.substr(0,i.length-1),!g.test(i)&&u(o)&&(o=r(e,s)),n(t,o,i,a)):(!g.test(i)&&u(o)&&(o=r(e,s)),n(t,o,i,a))}else u(e[s])?e[s].push(a):"object"==typeof e[s]?e[s]=a:void 0===e[s]?e[s]=a:e[s]=[e[s],a]}function s(t,e,r){if(~e.indexOf("]")){n(e.split("["),t,"base",r)}else{if(!g.test(e)&&u(t.base)){var s={};for(var a in t.base)s[a]=t.base[a];t.base=s}""!==e&&i(t.base,e,r)}return t}function a(t){return h(String(t).split(/&|;/),function(t,e){try{e=decodeURIComponent(e)}catch(t){}var r=e.indexOf("="),n=o(e),a=e.substr(0,n||r),i=e.substr(n||r,e.length);return i=i.substr(i.indexOf("=")+1,i.length),""===a&&(a=e,i=""),s(t,a,i)},{base:{}}).base}function i(t,e,r){var n=t[e];void 0===n?t[e]=r:u(n)?n.push(r):t[e]=[n,r]}function o(t){for(var e,r,n=t.length,s=0;s<n;++s)if(r=t[s],"]"==r&&(e=!1),"["==r&&(e=!0),"="==r&&!e)return s}function h(t,e){for(var r=0,n=t.length>>0,s=arguments[2];r<n;)r in t&&(s=e.call(void 0,s,t[r],r,t)),++r;return s}function u(t){return"[object Array]"===Object.prototype.toString.call(t)}function p(t){var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function c(e,r){return 1===arguments.length&&e===!0&&(r=!0,e=void 0),r=r||!1,e=e||window.location.toString(),{data:t(e,r),attr:function(t){return t=f[t]||t,void 0!==t?this.data.attr[t]:this.data.attr},param:function(t){return void 0!==t?this.data.param.query[t]:this.data.param.query},fparam:function(t){return void 0!==t?this.data.param.fragment[t]:this.data.param.fragment},segment:function(t){return void 0===t?this.data.seg.path:(t=t<0?this.data.seg.path.length+t:t-1,this.data.seg.path[t])},fsegment:function(t){return void 0===t?this.data.seg.fragment:(t=t<0?this.data.seg.fragment.length+t:t-1,this.data.seg.fragment[t])}}}var l={a:"href",img:"src",form:"action",base:"href",script:"src",iframe:"src",link:"href",embed:"src",object:"data"},d=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","fragment"],f={anchor:"fragment"},m={strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/},g=/^[0-9]+$/;return c.jQuery=function(t){null!=t&&(t.fn.url=function(r){var n="";return this.length&&(n=t(this).attr(e(this[0]))||""),c(n,r)},t.url=c)},c.jQuery(window.jQuery),c}),/*
 URI.js - Mutating URLs
 IPv6 Support

 Version: 1.18.9

 Author: Rodney Rehm
 Web: http://medialize.github.io/URI.js/

 Licensed under
   MIT License http://www.opensource.org/licenses/mit-license

 URI.js - Mutating URLs

 Version: 1.18.9

 Author: Rodney Rehm
 Web: http://medialize.github.io/URI.js/

 Licensed under
   MIT License http://www.opensource.org/licenses/mit-license

*/
function(t,e){"object"==typeof module&&module.exports?module.exports=e():"function"==typeof define&&define.amd?define(e):t.IPv6=e(t)}(this,function(t){var e=t&&t.IPv6;return{best:function(t){t=t.toLowerCase().split(":");var e=t.length,r=8;""===t[0]&&""===t[1]&&""===t[2]?(t.shift(),t.shift()):""===t[0]&&""===t[1]?t.shift():""===t[e-1]&&""===t[e-2]&&t.pop(),e=t.length,-1!==t[e-1].indexOf(".")&&(r=7);var n;for(n=0;n<e&&""!==t[n];n++);if(n<r)for(t.splice(n,1,"0000");t.length<r;)t.splice(n,0,"0000");for(n=0;n<r;n++){for(var e=t[n].split(""),s=0;3>s&&("0"===e[0]&&1<e.length);s++)e.splice(0,1);t[n]=e.join("")}var e=-1,a=s=0,i=-1,o=!1;for(n=0;n<r;n++)o?"0"===t[n]?a+=1:(o=!1,a>s&&(e=i,s=a)):"0"===t[n]&&(o=!0,i=n,a=1);for(a>s&&(e=i,s=a),1<s&&t.splice(e,s,""),e=t.length,r="",""===t[0]&&(r=":"),n=0;n<e&&(r+=t[n],n!==e-1);n++)r+=":";return""===t[e-1]&&(r+=":"),r},noConflict:function(){return t.IPv6===this&&(t.IPv6=e),this}}}),function(t,e){"object"==typeof module&&module.exports?module.exports=e(require("./punycode"),require("./IPv6"),require("./SecondLevelDomains")):"function"==typeof define&&define.amd?define(["./punycode","./IPv6","./SecondLevelDomains"],e):t.URI=e(t.punycode,t.IPv6,t.SecondLevelDomains,t)}(this,function(t,e,r,n){function s(t,e){var r=1<=arguments.length,n=2<=arguments.length;if(!(this instanceof s))return r?n?new s(t,e):new s(t):new s;if(void 0===t){if(r)throw new TypeError("undefined is not a valid argument for URI");t="undefined"!=typeof location?location.href+"":""}if(null===t&&r)throw new TypeError("null is not a valid argument for URI");return this.href(t),void 0!==e?this.absoluteTo(e):this}function a(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function i(t){return void 0===t?"Undefined":String(Object.prototype.toString.call(t)).slice(8,-1)}function o(t){return"Array"===i(t)}function h(t,e){var r,n,s={};if("RegExp"===i(e))s=null;else if(o(e))for(r=0,n=e.length;r<n;r++)s[e[r]]=!0;else s[e]=!0;for(r=0,n=t.length;r<n;r++)(s&&void 0!==s[t[r]]||!s&&e.test(t[r]))&&(t.splice(r,1),n--,r--);return t}function u(t,e){var r,n;if(o(e)){for(r=0,n=e.length;r<n;r++)if(!u(t,e[r]))return!1;return!0}var s=i(e);for(r=0,n=t.length;r<n;r++)if("RegExp"===s){if("string"==typeof t[r]&&t[r].match(e))return!0}else if(t[r]===e)return!0;return!1}function p(t,e){if(!o(t)||!o(e)||t.length!==e.length)return!1;t.sort(),e.sort();for(var r=0,n=t.length;r<n;r++)if(t[r]!==e[r])return!1;return!0}function c(t){return t.replace(/^\/+|\/+$/g,"")}function l(t){return escape(t)}function d(t){return encodeURIComponent(t).replace(/[!'()*]/g,l).replace(/\*/g,"%2A")}function f(t){return function(e,r){return void 0===e?this._parts[t]||"":(this._parts[t]=e||null,this.build(!r),this)}}function m(t,e){return function(r,n){return void 0===r?this._parts[t]||"":(null!==r&&(r+="",r.charAt(0)===e&&(r=r.substring(1))),this._parts[t]=r,this.build(!n),this)}}var g=n&&n.URI;s.version="1.18.9";var y=s.prototype,v=Object.prototype.hasOwnProperty;s._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,duplicateQueryParameters:s.duplicateQueryParameters,escapeQuerySpace:s.escapeQuerySpace}},s.duplicateQueryParameters=!1,s.escapeQuerySpace=!0,s.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,s.idn_expression=/[^a-z0-9\.-]/i,s.punycode_expression=/(xn--)/i,s.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,s.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,s.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?\u00ab\u00bb\u201c\u201d\u2018\u2019]))/gi,s.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?\u00ab\u00bb\u201c\u201d\u201e\u2018\u2019]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},s.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},s.invalid_hostname_characters=/[^a-zA-Z0-9\.-]/,s.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},s.getDomAttribute=function(t){if(t&&t.nodeName){var e=t.nodeName.toLowerCase();if("input"!==e||"image"===t.type)return s.domAttributes[e]}},s.encode=d,s.decode=decodeURIComponent,s.iso8859=function(){s.encode=escape,s.decode=unescape},s.unicode=function(){s.encode=d,s.decode=decodeURIComponent},s.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},s.encodeQuery=function(t,e){var r=s.encode(t+"");return void 0===e&&(e=s.escapeQuerySpace),e?r.replace(/%20/g,"+"):r},s.decodeQuery=function(t,e){t+="",void 0===e&&(e=s.escapeQuerySpace);try{return s.decode(e?t.replace(/\+/g,"%20"):t)}catch(e){return t}};var _,b={encode:"encode",decode:"decode"},w=function(t,e){return function(r){try{return s[e](r+"").replace(s.characters[t][e].expression,function(r){return s.characters[t][e].map[r]})}catch(t){return r}}};for(_ in b)s[_+"PathSegment"]=w("pathname",b[_]),s[_+"UrnPathSegment"]=w("urnpath",b[_]);b=function(t,e,r){return function(n){var a;a=r?function(t){return s[e](s[r](t))}:s[e],n=(n+"").split(t);for(var i=0,o=n.length;i<o;i++)n[i]=a(n[i]);return n.join(t)}},s.decodePath=b("/","decodePathSegment"),s.decodeUrnPath=b(":","decodeUrnPathSegment"),s.recodePath=b("/","encodePathSegment","decode"),s.recodeUrnPath=b(":","encodeUrnPathSegment","decode"),s.encodeReserved=w("reserved","encode"),s.parse=function(t,e){var r;return e||(e={}),r=t.indexOf("#"),-1<r&&(e.fragment=t.substring(r+1)||null,t=t.substring(0,r)),r=t.indexOf("?"),-1<r&&(e.query=t.substring(r+1)||null,t=t.substring(0,r)),"//"===t.substring(0,2)?(e.protocol=null,t=t.substring(2),t=s.parseAuthority(t,e)):-1<(r=t.indexOf(":"))&&(e.protocol=t.substring(0,r)||null,e.protocol&&!e.protocol.match(s.protocol_expression)?e.protocol=void 0:"//"===t.substring(r+1,r+3)?(t=t.substring(r+3),t=s.parseAuthority(t,e)):(t=t.substring(r+1),e.urn=!0)),e.path=t,e},s.parseHost=function(t,e){t=t.replace(/\\/g,"/");var r,n=t.indexOf("/");if(-1===n&&(n=t.length),"["===t.charAt(0))r=t.indexOf("]"),e.hostname=t.substring(1,r)||null,e.port=t.substring(r+2,n)||null,"/"===e.port&&(e.port=null);else{var s=t.indexOf(":");r=t.indexOf("/"),s=t.indexOf(":",s+1),-1!==s&&(-1===r||s<r)?(e.hostname=t.substring(0,n)||null,e.port=null):(r=t.substring(0,n).split(":"),e.hostname=r[0]||null,e.port=r[1]||null)}return e.hostname&&"/"!==t.substring(n).charAt(0)&&(n++,t="/"+t),t.substring(n)||"/"},s.parseAuthority=function(t,e){return t=s.parseUserinfo(t,e),s.parseHost(t,e)},s.parseUserinfo=function(t,e){var r=t.indexOf("/"),n=t.lastIndexOf("@",-1<r?r:t.length-1);return-1<n&&(-1===r||n<r)?(r=t.substring(0,n).split(":"),e.username=r[0]?s.decode(r[0]):null,r.shift(),e.password=r[0]?s.decode(r.join(":")):null,t=t.substring(n+1)):(e.username=null,e.password=null),t},s.parseQuery=function(t,e){if(!t)return{};if(!(t=t.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,"")))return{};for(var r,n,a={},i=t.split("&"),o=i.length,h=0;h<o;h++)r=i[h].split("="),n=s.decodeQuery(r.shift(),e),r=r.length?s.decodeQuery(r.join("="),e):null,v.call(a,n)?("string"!=typeof a[n]&&null!==a[n]||(a[n]=[a[n]]),a[n].push(r)):a[n]=r;return a},s.build=function(t){var e="";return t.protocol&&(e+=t.protocol+":"),t.urn||!e&&!t.hostname||(e+="//"),e+=s.buildAuthority(t)||"","string"==typeof t.path&&("/"!==t.path.charAt(0)&&"string"==typeof t.hostname&&(e+="/"),e+=t.path),"string"==typeof t.query&&t.query&&(e+="?"+t.query),"string"==typeof t.fragment&&t.fragment&&(e+="#"+t.fragment),e},s.buildHost=function(t){var e="";return t.hostname?(e=s.ip6_expression.test(t.hostname)?e+"["+t.hostname+"]":e+t.hostname,t.port&&(e+=":"+t.port),e):""},s.buildAuthority=function(t){return s.buildUserinfo(t)+s.buildHost(t)},s.buildUserinfo=function(t){var e="";return t.username&&(e+=s.encode(t.username)),t.password&&(e+=":"+s.encode(t.password)),e&&(e+="@"),e},s.buildQuery=function(t,e,r){var n,a,i,h,u="";for(a in t)if(v.call(t,a)&&a)if(o(t[a]))for(n={},i=0,h=t[a].length;i<h;i++)void 0!==t[a][i]&&void 0===n[t[a][i]+""]&&(u+="&"+s.buildQueryParameter(a,t[a][i],r),!0!==e&&(n[t[a][i]+""]=!0));else void 0!==t[a]&&(u+="&"+s.buildQueryParameter(a,t[a],r));return u.substring(1)},s.buildQueryParameter=function(t,e,r){return s.encodeQuery(t,r)+(null!==e?"="+s.encodeQuery(e,r):"")},s.addQuery=function(t,e,r){if("object"==typeof e)for(var n in e)v.call(e,n)&&s.addQuery(t,n,e[n]);else{if("string"!=typeof e)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");void 0===t[e]?t[e]=r:("string"==typeof t[e]&&(t[e]=[t[e]]),o(r)||(r=[r]),t[e]=(t[e]||[]).concat(r))}},s.removeQuery=function(t,e,r){var n;if(o(e))for(r=0,n=e.length;r<n;r++)t[e[r]]=void 0;else if("RegExp"===i(e))for(n in t)e.test(n)&&(t[n]=void 0);else if("object"==typeof e)for(n in e)v.call(e,n)&&s.removeQuery(t,n,e[n]);else{if("string"!=typeof e)throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter");void 0!==r?"RegExp"===i(r)?!o(t[e])&&r.test(t[e])?t[e]=void 0:t[e]=h(t[e],r):t[e]!==String(r)||o(r)&&1!==r.length?o(t[e])&&(t[e]=h(t[e],r)):t[e]=void 0:t[e]=void 0}},s.hasQuery=function(t,e,r,n){switch(i(e)){case"String":break;case"RegExp":for(var a in t)if(v.call(t,a)&&e.test(a)&&(void 0===r||s.hasQuery(t,a,r)))return!0;return!1;case"Object":for(var h in e)if(v.call(e,h)&&!s.hasQuery(t,h,e[h]))return!1;return!0;default:throw new TypeError("URI.hasQuery() accepts a string, regular expression or object as the name parameter")}switch(i(r)){case"Undefined":return e in t;case"Boolean":return t=!(o(t[e])?!t[e].length:!t[e]),r===t;case"Function":return!!r(t[e],e,t);case"Array":return!!o(t[e])&&(n?u:p)(t[e],r);case"RegExp":return o(t[e])?!!n&&u(t[e],r):!(!t[e]||!t[e].match(r));case"Number":r=String(r);case"String":return o(t[e])?!!n&&u(t[e],r):t[e]===r;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},s.joinPaths=function(){for(var t=[],e=[],r=0,n=0;n<arguments.length;n++){var a=new s(arguments[n]);t.push(a);for(var a=a.segment(),i=0;i<a.length;i++)"string"==typeof a[i]&&e.push(a[i]),a[i]&&r++}return e.length&&r?(e=new s("").segment(e),""!==t[0].path()&&"/"!==t[0].path().slice(0,1)||e.path("/"+e.path()),e.normalize()):new s("")},s.commonPath=function(t,e){var r,n=Math.min(t.length,e.length);for(r=0;r<n;r++)if(t.charAt(r)!==e.charAt(r)){r--;break}return 1>r?t.charAt(0)===e.charAt(0)&&"/"===t.charAt(0)?"/":"":("/"===t.charAt(r)&&"/"===e.charAt(r)||(r=t.substring(0,r).lastIndexOf("/")),t.substring(0,r+1))},s.withinString=function(t,e,r){r||(r={});var n=r.start||s.findUri.start,a=r.end||s.findUri.end,i=r.trim||s.findUri.trim,o=r.parens||s.findUri.parens,h=/[a-z0-9-]=["']?$/i;for(n.lastIndex=0;;){var u=n.exec(t);if(!u)break;var p=u.index;if(r.ignoreHtml){var c=t.slice(Math.max(p-3,0),p);if(c&&h.test(c))continue}for(var l=p+t.slice(p).search(a),c=t.slice(p,l),l=-1;;){var d=o.exec(c);if(!d)break;l=Math.max(l,d.index+d[0].length)}c=-1<l?c.slice(0,l)+c.slice(l).replace(i,""):c.replace(i,""),c.length<=u[0].length||r.ignore&&r.ignore.test(c)||(l=p+c.length,u=e(c,p,l,t),void 0===u?n.lastIndex=l:(u=String(u),t=t.slice(0,p)+u+t.slice(l),n.lastIndex=p+u.length))}return n.lastIndex=0,t},s.ensureValidHostname=function(e){if(e.match(s.invalid_hostname_characters)){if(!t)throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-] and Punycode.js is not available');if(t.toASCII(e).match(s.invalid_hostname_characters))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]')}},s.noConflict=function(t){return t?(t={URI:this.noConflict()},n.URITemplate&&"function"==typeof n.URITemplate.noConflict&&(t.URITemplate=n.URITemplate.noConflict()),n.IPv6&&"function"==typeof n.IPv6.noConflict&&(t.IPv6=n.IPv6.noConflict()),n.SecondLevelDomains&&"function"==typeof n.SecondLevelDomains.noConflict&&(t.SecondLevelDomains=n.SecondLevelDomains.noConflict()),t):(n.URI===this&&(n.URI=g),this)},y.build=function(t){return!0===t?this._deferred_build=!0:(void 0===t||this._deferred_build)&&(this._string=s.build(this._parts),this._deferred_build=!1),this},y.clone=function(){return new s(this)},y.valueOf=y.toString=function(){return this.build(!1)._string},y.protocol=f("protocol"),y.username=f("username"),y.password=f("password"),y.hostname=f("hostname"),y.port=f("port"),y.query=m("query","?"),y.fragment=m("fragment","#"),y.search=function(t,e){var r=this.query(t,e);return"string"==typeof r&&r.length?"?"+r:r},y.hash=function(t,e){var r=this.fragment(t,e);return"string"==typeof r&&r.length?"#"+r:r},y.pathname=function(t,e){if(void 0===t||!0===t){var r=this._parts.path||(this._parts.hostname?"/":"");return t?(this._parts.urn?s.decodeUrnPath:s.decodePath)(r):r}return this._parts.path=this._parts.urn?t?s.recodeUrnPath(t):"":t?s.recodePath(t):"/",this.build(!e),this},y.path=y.pathname,y.href=function(t,e){var r;if(void 0===t)return this.toString();this._string="",this._parts=s._parts();var n=t instanceof s,a="object"==typeof t&&(t.hostname||t.path||t.pathname);if(t.nodeName&&(a=s.getDomAttribute(t),t=t[a]||"",a=!1),!n&&a&&void 0!==t.pathname&&(t=t.toString()),"string"==typeof t||t instanceof String)this._parts=s.parse(String(t),this._parts);else{if(!n&&!a)throw new TypeError("invalid input");for(r in n=n?t._parts:t)v.call(this._parts,r)&&(this._parts[r]=n[r])}return this.build(!e),this},y.is=function(t){var e=!1,n=!1,a=!1,i=!1,o=!1,h=!1,u=!1,p=!this._parts.urn;switch(this._parts.hostname&&(p=!1,n=s.ip4_expression.test(this._parts.hostname),a=s.ip6_expression.test(this._parts.hostname),e=n||a,o=(i=!e)&&r&&r.has(this._parts.hostname),h=i&&s.idn_expression.test(this._parts.hostname),u=i&&s.punycode_expression.test(this._parts.hostname)),t.toLowerCase()){case"relative":return p;case"absolute":return!p;case"domain":case"name":return i;case"sld":return o;case"ip":return e;case"ip4":case"ipv4":case"inet4":return n;case"ip6":case"ipv6":case"inet6":return a;case"idn":return h;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return u}return null};var Q=y.protocol,A=y.port,x=y.hostname;y.protocol=function(t,e){if(void 0!==t&&t&&(t=t.replace(/:(\/\/)?$/,""),!t.match(s.protocol_expression)))throw new TypeError('Protocol "'+t+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return Q.call(this,t,e)},y.scheme=y.protocol,y.port=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0!==t&&(0===t&&(t=null),t&&(t+="",":"===t.charAt(0)&&(t=t.substring(1)),t.match(/[^0-9]/))))throw new TypeError('Port "'+t+'" contains characters other than [0-9]');return A.call(this,t,e)},y.hostname=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0!==t){var r={};if("/"!==s.parseHost(t,r))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-]');t=r.hostname}return x.call(this,t,e)},y.origin=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t){var r=this.protocol();return this.authority()?(r?r+"://":"")+this.authority():""}return r=s(t),this.protocol(r.protocol()).authority(r.authority()).build(!e),this},y.host=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t)return this._parts.hostname?s.buildHost(this._parts):"";if("/"!==s.parseHost(t,this._parts))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-]');return this.build(!e),this},y.authority=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t)return this._parts.hostname?s.buildAuthority(this._parts):"";if("/"!==s.parseAuthority(t,this._parts))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-]');return this.build(!e),this},y.userinfo=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t){var r=s.buildUserinfo(this._parts);return r?r.substring(0,r.length-1):r}return"@"!==t[t.length-1]&&(t+="@"),s.parseUserinfo(t,this._parts),this.build(!e),this},y.resource=function(t,e){var r;return void 0===t?this.path()+this.search()+this.hash():(r=s.parse(t),this._parts.path=r.path,this._parts.query=r.query,this._parts.fragment=r.fragment,this.build(!e),this)},y.subdomain=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,r)||""}return r=this._parts.hostname.length-this.domain().length,r=this._parts.hostname.substring(0,r),r=new RegExp("^"+a(r)),t&&"."!==t.charAt(t.length-1)&&(t+="."),t&&s.ensureValidHostname(t),this._parts.hostname=this._parts.hostname.replace(r,t),this.build(!e),this},y.domain=function(t,e){if(this._parts.urn)return void 0===t?"":this;if("boolean"==typeof t&&(e=t,t=void 0),void 0===t){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.match(/\./g);return r&&2>r.length?this._parts.hostname:(r=this._parts.hostname.length-this.tld(e).length-1,r=this._parts.hostname.lastIndexOf(".",r-1)+1,this._parts.hostname.substring(r)||"")}if(!t)throw new TypeError("cannot set domain empty");return s.ensureValidHostname(t),!this._parts.hostname||this.is("IP")?this._parts.hostname=t:(r=new RegExp(a(this.domain())+"$"),this._parts.hostname=this._parts.hostname.replace(r,t)),this.build(!e),this},y.tld=function(t,e){if(this._parts.urn)return void 0===t?"":this;if("boolean"==typeof t&&(e=t,t=void 0),void 0===t){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.lastIndexOf("."),n=this._parts.hostname.substring(n+1);return!0!==e&&r&&r.list[n.toLowerCase()]?r.get(this._parts.hostname)||n:n}if(!t)throw new TypeError("cannot set TLD empty");if(t.match(/[^a-zA-Z0-9-]/)){if(!r||!r.is(t))throw new TypeError('TLD "'+t+'" contains characters other than [A-Z0-9]');n=new RegExp(a(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(n,t)}else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");n=new RegExp(a(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(n,t)}return this.build(!e),this},y.directory=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t||!0===t){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var r=this._parts.path.length-this.filename().length-1,r=this._parts.path.substring(0,r)||(this._parts.hostname?"/":"");return t?s.decodePath(r):r}return r=this._parts.path.length-this.filename().length,r=this._parts.path.substring(0,r),r=new RegExp("^"+a(r)),this.is("relative")||(t||(t="/"),"/"!==t.charAt(0)&&(t="/"+t)),t&&"/"!==t.charAt(t.length-1)&&(t+="/"),t=s.recodePath(t),this._parts.path=this._parts.path.replace(r,t),this.build(!e),this},y.filename=function(t,e){if(this._parts.urn)return void 0===t?"":this;if("string"!=typeof t){if(!this._parts.path||"/"===this._parts.path)return"";var r=this._parts.path.lastIndexOf("/"),r=this._parts.path.substring(r+1);return t?s.decodePathSegment(r):r}r=!1,"/"===t.charAt(0)&&(t=t.substring(1)),t.match(/\.?\//)&&(r=!0);var n=new RegExp(a(this.filename())+"$");return t=s.recodePath(t),this._parts.path=this._parts.path.replace(n,t),r?this.normalizePath(e):this.build(!e),this},y.suffix=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t||!0===t){if(!this._parts.path||"/"===this._parts.path)return"";var r=this.filename(),n=r.lastIndexOf(".");return-1===n?"":(r=r.substring(n+1),r=/^[a-z0-9%]+$/i.test(r)?r:"",t?s.decodePathSegment(r):r)}if("."===t.charAt(0)&&(t=t.substring(1)),r=this.suffix())n=t?new RegExp(a(r)+"$"):new RegExp(a("."+r)+"$");else{if(!t)return this;this._parts.path+="."+s.recodePath(t)}return n&&(t=s.recodePath(t),this._parts.path=this._parts.path.replace(n,t)),this.build(!e),this},y.segment=function(t,e,r){var n=this._parts.urn?":":"/",s=this.path(),a="/"===s.substring(0,1),s=s.split(n);if(void 0!==t&&"number"!=typeof t&&(r=e,e=t,t=void 0),void 0!==t&&"number"!=typeof t)throw Error('Bad segment "'+t+'", must be 0-based integer');if(a&&s.shift(),0>t&&(t=Math.max(s.length+t,0)),void 0===e)return void 0===t?s:s[t];if(null===t||void 0===s[t])if(o(e)){s=[],t=0;for(var i=e.length;t<i;t++)(e[t].length||s.length&&s[s.length-1].length)&&(s.length&&!s[s.length-1].length&&s.pop(),s.push(c(e[t])))}else(e||"string"==typeof e)&&(e=c(e),""===s[s.length-1]?s[s.length-1]=e:s.push(e));else e?s[t]=c(e):s.splice(t,1);return a&&s.unshift(""),this.path(s.join(n),r)},y.segmentCoded=function(t,e,r){var n,a;if("number"!=typeof t&&(r=e,e=t,t=void 0),void 0===e){if(t=this.segment(t,e,r),o(t))for(n=0,a=t.length;n<a;n++)t[n]=s.decode(t[n]);else t=void 0!==t?s.decode(t):void 0;return t}if(o(e))for(n=0,a=e.length;n<a;n++)e[n]=s.encode(e[n]);else e="string"==typeof e||e instanceof String?s.encode(e):e;return this.segment(t,e,r)};var P=y.query;return y.query=function(t,e){if(!0===t)return s.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("function"==typeof t){var r=s.parseQuery(this._parts.query,this._parts.escapeQuerySpace),n=t.call(this,r);return this._parts.query=s.buildQuery(n||r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!e),this}return void 0!==t&&"string"!=typeof t?(this._parts.query=s.buildQuery(t,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!e),this):P.call(this,t,e)},y.setQuery=function(t,e,r){var n=s.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("string"==typeof t||t instanceof String)n[t]=void 0!==e?e:null;else{if("object"!=typeof t)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");for(var a in t)v.call(t,a)&&(n[a]=t[a])}return this._parts.query=s.buildQuery(n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(r=e),this.build(!r),this},y.addQuery=function(t,e,r){var n=s.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return s.addQuery(n,t,void 0===e?null:e),this._parts.query=s.buildQuery(n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(r=e),this.build(!r),this},y.removeQuery=function(t,e,r){var n=s.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return s.removeQuery(n,t,e),this._parts.query=s.buildQuery(n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(r=e),this.build(!r),this},y.hasQuery=function(t,e,r){var n=s.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return s.hasQuery(n,t,e,r)},y.setSearch=y.setQuery,y.addSearch=y.addQuery,y.removeSearch=y.removeQuery,y.hasSearch=y.hasQuery,y.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},y.normalizeProtocol=function(t){return"string"==typeof this._parts.protocol&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!t)),this},y.normalizeHostname=function(r){return this._parts.hostname&&(this.is("IDN")&&t?this._parts.hostname=t.toASCII(this._parts.hostname):this.is("IPv6")&&e&&(this._parts.hostname=e.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!r)),this},y.normalizePort=function(t){return"string"==typeof this._parts.protocol&&this._parts.port===s.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!t)),this},y.normalizePath=function(t){var e=this._parts.path;if(!e)return this;if(this._parts.urn)return this._parts.path=s.recodeUrnPath(this._parts.path),this.build(!t),this;if("/"===this._parts.path)return this;var r,n,a,e=s.recodePath(e),i="";for("/"!==e.charAt(0)&&(r=!0,e="/"+e),"/.."!==e.slice(-3)&&"/."!==e.slice(-2)||(e+="/"),e=e.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),r&&(i=e.substring(1).match(/^(\.\.\/)+/)||"")&&(i=i[0]);-1!==(n=e.search(/\/\.\.(\/|$)/));)0!==n?(a=e.substring(0,n).lastIndexOf("/"),-1===a&&(a=n),e=e.substring(0,a)+e.substring(n+3)):e=e.substring(3);return r&&this.is("relative")&&(e=i+e.substring(1)),this._parts.path=e,this.build(!t),this},y.normalizePathname=y.normalizePath,y.normalizeQuery=function(t){return"string"==typeof this._parts.query&&(this._parts.query.length?this.query(s.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!t)),this},y.normalizeFragment=function(t){return this._parts.fragment||(this._parts.fragment=null,this.build(!t)),this},y.normalizeSearch=y.normalizeQuery,y.normalizeHash=y.normalizeFragment,y.iso8859=function(){var t=s.encode,e=s.decode;s.encode=escape,s.decode=decodeURIComponent;try{this.normalize()}finally{s.encode=t,s.decode=e}return this},y.unicode=function(){var t=s.encode,e=s.decode;s.encode=d,s.decode=unescape;try{this.normalize()}finally{s.encode=t,s.decode=e}return this},y.readable=function(){var e=this.clone();e.username("").password("").normalize();var r="";if(e._parts.protocol&&(r+=e._parts.protocol+"://"),e._parts.hostname&&(e.is("punycode")&&t?(r+=t.toUnicode(e._parts.hostname),e._parts.port&&(r+=":"+e._parts.port)):r+=e.host()),e._parts.hostname&&e._parts.path&&"/"!==e._parts.path.charAt(0)&&(r+="/"),r+=e.path(!0),e._parts.query){for(var n="",a=0,i=e._parts.query.split("&"),o=i.length;a<o;a++){var h=(i[a]||"").split("="),n=n+"&"+s.decodeQuery(h[0],this._parts.escapeQuerySpace).replace(/&/g,"%26");void 0!==h[1]&&(n+="="+s.decodeQuery(h[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}r+="?"+n.substring(1)}return r+=s.decodeQuery(e.hash(),!0)},y.absoluteTo=function(t){var e,r,n=this.clone(),a=["protocol","username","password","hostname","port"];if(this._parts.urn)throw Error("URNs do not have any generally defined hierarchical components");if(t instanceof s||(t=new s(t)),n._parts.protocol)return n;if(n._parts.protocol=t._parts.protocol,this._parts.hostname)return n;for(e=0;r=a[e];e++)n._parts[r]=t._parts[r];return n._parts.path?(".."===n._parts.path.substring(-2)&&(n._parts.path+="/"),"/"!==n.path().charAt(0)&&(a=(a=t.directory())?a:0===t.path().indexOf("/")?"/":"",n._parts.path=(a?a+"/":"")+n._parts.path,n.normalizePath())):(n._parts.path=t._parts.path,n._parts.query||(n._parts.query=t._parts.query)),n.build(),n},y.relativeTo=function(t){var e,r,n,a=this.clone().normalize();if(a._parts.urn)throw Error("URNs do not have any generally defined hierarchical components");if(t=new s(t).normalize(),e=a._parts,r=t._parts,n=a.path(),t=t.path(),"/"!==n.charAt(0))throw Error("URI is already relative");if("/"!==t.charAt(0))throw Error("Cannot calculate a URI relative to another relative URI");return e.protocol===r.protocol&&(e.protocol=null),e.username!==r.username||e.password!==r.password||null!==e.protocol||null!==e.username||null!==e.password||e.hostname!==r.hostname||e.port!==r.port?a.build():(e.hostname=null,e.port=null,n===t?(e.path="",a.build()):(n=s.commonPath(n,t))?(r=r.path.substring(n.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../"),e.path=r+e.path.substring(n.length)||"./",a.build()):a.build())},y.equals=function(t){var e,r=this.clone(),n=new s(t);t={};var a,i;if(r.normalize(),n.normalize(),r.toString()===n.toString())return!0;if(a=r.query(),e=n.query(),r.query(""),n.query(""),r.toString()!==n.toString()||a.length!==e.length)return!1;r=s.parseQuery(a,this._parts.escapeQuerySpace),e=s.parseQuery(e,this._parts.escapeQuerySpace);for(i in r)if(v.call(r,i)){if(o(r[i])){if(!p(r[i],e[i]))return!1}else if(r[i]!==e[i])return!1;t[i]=!0}for(i in e)if(v.call(e,i)&&!t[i])return!1;return!0},y.duplicateQueryParameters=function(t){return this._parts.duplicateQueryParameters=!!t,this},y.escapeQuerySpace=function(t){return this._parts.escapeQuerySpace=!!t,this},s});/*
 * jquery.injectCSS.js - jquery css injection plugin
 * Copyright (C) 2013, Robert Kajic (robert@kajic.com)
 * http://kajic.com
 *
 * https://github.com/kajic/jquery-injectCSS
 * Allows for injection of CSS defined as javascript JSS objects.
 *
 * Based on JSS (http://jss-lang.org/).
 *
 * Licensed under the MIT License.
 *
 * Date: 2013-01-08
 * Version: 0.1
 */
!function(jQuery){"use strict";function toCSS(jss,options){function jsonToCSS(e,t){e&&!result[e]&&(result[e]={});for(var r in t){var s=t[r];if(s instanceof Array)for(var a=s,n=0;n<a.length;n++)addProperty(e,r,a[n]);else switch(typeof s){case"number":case"string":addProperty(e,r,s);break;case"object":var o=r.charAt(r.length-1);if(!e||"_"!==o&&"-"!==o)jsonToCSS(makeSelectorName(e,r),s);else{var i=s;for(var l in i)for(var u=l.split(/\s*,\s*/),c=0;c<u.length;c++){var v=i[l];if(v instanceof Array)for(var f=v,y=0;y<f.length;y++)addProperty(e,r+u[c],f[y]);else addProperty(e,r+u[c],i[l])}}}}}function makePropertyName(e){return e.replace(/_/g,"-")}function makeSelectorName(e,t){for(var r=[],s=t.split(/\s*,\s*/),a=e.split(/\s*,\s*/),n=0;n<a.length;n++)for(var o=a[n],i=0;i<s.length;i++){var l=s[i];"&"===l.charAt(0)?r.push(o+l.substr(1)):r.push(o?o+" "+l:l)}return r.join(", ")}function addProperty(e,t,r){"number"!=typeof r||options.useRawValues||(r+="px");for(var s=t.split(/\s*,\s*/),a=0;a<s.length;a++){var n=makePropertyName(s[a]);result[e][n]?result[e][n].push(r):result[e][n]=[r]}}var result={};if("string"==typeof jss)try{eval("var jss = {"+jss+"}")}catch(e){return"/*\nUnable to parse JSS: "+e+"\n*/"}jsonToCSS("",jss);var ret="";for(var a in result){var css=result[a];ret+=a+" {\n";for(var i in css)for(var values=css[i],j=0;j<values.length;j++)ret+="\t"+i+": "+values[j]+";\n";ret+="}\n"}return ret}var defaults={truncateFirst:!1,container:null,containerName:"injected-css",useRawValues:!1};jQuery.injectCSS=function(e,t){t=jQuery.extend({},defaults,t),t.media=t.media||"all";var r=t.container&&jQuery(t.container)||jQuery("#"+t.containerName);r.length||(r=jQuery("<style data-persist></style>").appendTo("head").attr({media:t.media,type:"text/css"}));var s=r[0],a=void 0!==s.styleSheet&&void 0!==s.styleSheet.cssText,n="";return t.truncateFirst||(n+=a?s.styleSheet.cssText:r.text()),n+=toCSS(e,t),a?s.styleSheet.cssText=n:r.text(n),r}}(jQuery);!function(i){(jQuery.browser=jQuery.browser||{}).mobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(i)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(i.substr(0,4))}(navigator.userAgent||navigator.vendor||window.opera);/*!
 * jQuery Transit - CSS3 transitions and transformations
 * (c) 2011-2014 Rico Sta. Cruz
 * MIT Licensed.
 *
 * http://ricostacruz.com/jquery.transit
 * http://github.com/rstacruz/jquery.transit
 */
!function(t,e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(t.jQuery)}(this,function(t){function e(t){if(t in f.style)return t;for(var e=["Moz","Webkit","O","ms"],n=t.charAt(0).toUpperCase()+t.substr(1),i=0;i<e.length;++i){var r=e[i]+n;if(r in f.style)return r}}function n(t){return"string"==typeof t&&this.parse(t),this}function i(t,e,n){e===!0?t.queue(n):e?t.queue(e,n):t.each(function(){n.call(this)})}function r(e){var n=[];return t.each(e,function(e){e=t.camelCase(e),e=t.transit.propertyMap[e]||t.cssProps[e]||e,e=o(e),l[e]&&(e=o(l[e])),t.inArray(e,n)===-1&&n.push(e)}),n}function s(e,n,i,s){var a=r(e);t.cssEase[i]&&(i=t.cssEase[i]);var o=c(n)+" "+i;parseInt(s,10)>0&&(o+=" "+c(s));var u=[];return t.each(a,function(t,e){u.push(e+" "+o)}),u.join(", ")}function a(e,n){n||(t.cssNumber[e]=!0),t.transit.propertyMap[e]=l.transform,t.cssHooks[e]={get:function(n){return t(n).css("transit:transform").get(e)},set:function(n,i){var r=t(n).css("transit:transform");r.setFromString(e,i),t(n).css({"transit:transform":r})}}}function o(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}function u(t,e){return"string"!=typeof t||t.match(/^[\-0-9\.]+$/)?""+t+e:t}function c(e){var n=e;return"string"!=typeof n||n.match(/^[\-0-9\.]+/)||(n=t.fx.speeds[n]||t.fx.speeds._default),u(n,"ms")}t.transit={version:"0.9.12",propertyMap:{marginLeft:"margin",marginRight:"margin",marginBottom:"margin",marginTop:"margin",paddingLeft:"padding",paddingRight:"padding",paddingBottom:"padding",paddingTop:"padding"},enabled:!0,useTransitionEnd:!1};var f=document.createElement("div"),l={},p=navigator.userAgent.toLowerCase().indexOf("chrome")>-1;l.transition=e("transition"),l.transitionDelay=e("transitionDelay"),l.transform=e("transform"),l.transformOrigin=e("transformOrigin"),l.filter=e("Filter"),l.transform3d=function(){return f.style[l.transform]="",f.style[l.transform]="rotateY(90deg)",""!==f.style[l.transform]}();var d={transition:"transitionend",MozTransition:"transitionend",OTransition:"oTransitionEnd",WebkitTransition:"webkitTransitionEnd",msTransition:"MSTransitionEnd"},h=l.transitionEnd=d[l.transition]||null;for(var b in l)l.hasOwnProperty(b)&&void 0===t.support[b]&&(t.support[b]=l[b]);return f=null,t.cssEase={_default:"ease",in:"ease-in",out:"ease-out","in-out":"ease-in-out",snap:"cubic-bezier(0,1,.5,1)",easeInCubic:"cubic-bezier(.550,.055,.675,.190)",easeOutCubic:"cubic-bezier(.215,.61,.355,1)",easeInOutCubic:"cubic-bezier(.645,.045,.355,1)",easeInCirc:"cubic-bezier(.6,.04,.98,.335)",easeOutCirc:"cubic-bezier(.075,.82,.165,1)",easeInOutCirc:"cubic-bezier(.785,.135,.15,.86)",easeInExpo:"cubic-bezier(.95,.05,.795,.035)",easeOutExpo:"cubic-bezier(.19,1,.22,1)",easeInOutExpo:"cubic-bezier(1,0,0,1)",easeInQuad:"cubic-bezier(.55,.085,.68,.53)",easeOutQuad:"cubic-bezier(.25,.46,.45,.94)",easeInOutQuad:"cubic-bezier(.455,.03,.515,.955)",easeInQuart:"cubic-bezier(.895,.03,.685,.22)",easeOutQuart:"cubic-bezier(.165,.84,.44,1)",easeInOutQuart:"cubic-bezier(.77,0,.175,1)",easeInQuint:"cubic-bezier(.755,.05,.855,.06)",easeOutQuint:"cubic-bezier(.23,1,.32,1)",easeInOutQuint:"cubic-bezier(.86,0,.07,1)",easeInSine:"cubic-bezier(.47,0,.745,.715)",easeOutSine:"cubic-bezier(.39,.575,.565,1)",easeInOutSine:"cubic-bezier(.445,.05,.55,.95)",easeInBack:"cubic-bezier(.6,-.28,.735,.045)",easeOutBack:"cubic-bezier(.175, .885,.32,1.275)",easeInOutBack:"cubic-bezier(.68,-.55,.265,1.55)"},t.cssHooks["transit:transform"]={get:function(e){return t(e).data("transform")||new n},set:function(e,i){var r=i;r instanceof n||(r=new n(r)),"WebkitTransform"!==l.transform||p?e.style[l.transform]=r.toString():e.style[l.transform]=r.toString(!0),t(e).data("transform",r)}},t.cssHooks.transform={set:t.cssHooks["transit:transform"].set},t.cssHooks.filter={get:function(t){return t.style[l.filter]},set:function(t,e){t.style[l.filter]=e}},t.fn.jquery<"1.8"&&(t.cssHooks.transformOrigin={get:function(t){return t.style[l.transformOrigin]},set:function(t,e){t.style[l.transformOrigin]=e}},t.cssHooks.transition={get:function(t){return t.style[l.transition]},set:function(t,e){t.style[l.transition]=e}}),a("scale"),a("scaleX"),a("scaleY"),a("translate"),a("rotate"),a("rotateX"),a("rotateY"),a("rotate3d"),a("perspective"),a("skewX"),a("skewY"),a("x",!0),a("y",!0),n.prototype={setFromString:function(t,e){var i="string"==typeof e?e.split(","):e.constructor===Array?e:[e];i.unshift(t),n.prototype.set.apply(this,i)},set:function(t){var e=Array.prototype.slice.apply(arguments,[1]);this.setter[t]?this.setter[t].apply(this,e):this[t]=e.join(",")},get:function(t){return this.getter[t]?this.getter[t].apply(this):this[t]||0},setter:{rotate:function(t){this.rotate=u(t,"deg")},rotateX:function(t){this.rotateX=u(t,"deg")},rotateY:function(t){this.rotateY=u(t,"deg")},scale:function(t,e){void 0===e&&(e=t),this.scale=t+","+e},skewX:function(t){this.skewX=u(t,"deg")},skewY:function(t){this.skewY=u(t,"deg")},perspective:function(t){this.perspective=u(t,"px")},x:function(t){this.set("translate",t,null)},y:function(t){this.set("translate",null,t)},translate:function(t,e){void 0===this._translateX&&(this._translateX=0),void 0===this._translateY&&(this._translateY=0),null!==t&&void 0!==t&&(this._translateX=u(t,"px")),null!==e&&void 0!==e&&(this._translateY=u(e,"px")),this.translate=this._translateX+","+this._translateY}},getter:{x:function(){return this._translateX||0},y:function(){return this._translateY||0},scale:function(){var t=(this.scale||"1,1").split(",");return t[0]&&(t[0]=parseFloat(t[0])),t[1]&&(t[1]=parseFloat(t[1])),t[0]===t[1]?t[0]:t},rotate3d:function(){for(var t=(this.rotate3d||"0,0,0,0deg").split(","),e=0;e<=3;++e)t[e]&&(t[e]=parseFloat(t[e]));return t[3]&&(t[3]=u(t[3],"deg")),t}},parse:function(t){var e=this;t.replace(/([a-zA-Z0-9]+)\((.*?)\)/g,function(t,n,i){e.setFromString(n,i)})},toString:function(t){var e=[];for(var n in this)if(this.hasOwnProperty(n)){if(!l.transform3d&&("rotateX"===n||"rotateY"===n||"perspective"===n||"transformOrigin"===n))continue;"_"!==n[0]&&(t&&"scale"===n?e.push(n+"3d("+this[n]+",1)"):t&&"translate"===n?e.push(n+"3d("+this[n]+",0)"):e.push(n+"("+this[n]+")"))}return e.join(" ")}},t.fn.transition=t.fn.transit=function(e,n,r,a){var o=this,u=0,f=!0,p=t.extend(!0,{},e);"function"==typeof n&&(a=n,n=void 0),"object"==typeof n&&(r=n.easing,u=n.delay||0,f=void 0===n.queue||n.queue,a=n.complete,n=n.duration),"function"==typeof r&&(a=r,r=void 0),void 0!==p.easing&&(r=p.easing,delete p.easing),void 0!==p.duration&&(n=p.duration,delete p.duration),void 0!==p.complete&&(a=p.complete,delete p.complete),void 0!==p.queue&&(f=p.queue,delete p.queue),void 0!==p.delay&&(u=p.delay,delete p.delay),void 0===n&&(n=t.fx.speeds._default),void 0===r&&(r=t.cssEase._default),n=c(n);var d=s(p,n,r,u),b=t.transit.enabled&&l.transition,g=b?parseInt(n,10)+parseInt(u,10):0;if(0===g){return i(o,f,function(t){o.css(p),a&&a.apply(o),t&&t()}),o}var m={},y=function(e){var n=!1,i=function(){n&&o.unbind(h,i),g>0&&o.each(function(){this.style[l.transition]=m[this]||null}),"function"==typeof a&&a.apply(o),"function"==typeof e&&e()};g>0&&h&&t.transit.useTransitionEnd?(n=!0,o.bind(h,i)):window.setTimeout(i,g),o.each(function(){g>0&&(this.style[l.transition]=d),t(this).css(p)})};return i(o,f,function(t){this.offsetWidth=this.offsetWidth,y(t)}),this},t.transit.getTransitionValue=s,t});(function(){var e,t=window.Messenger;e=window.Messenger=function(){return e._call.apply(this,arguments)},window.Messenger.noConflict=function(){return window.Messenger=t,e}})(),window.Messenger._=function(){if(window._)return window._;var e=Array.prototype,t=Object.prototype,n=Function.prototype,s=(e.push,e.slice),r=(e.concat,t.toString);t.hasOwnProperty;var o=e.forEach,i=(e.map,e.reduce,e.reduceRight,e.filter),a=(e.every,e.some,e.indexOf,e.lastIndexOf,Array.isArray,Object.keys),l=n.bind,u={},c={},h=u.each=u.forEach=function(e,t,n){if(null!=e)if(o&&e.forEach===o)e.forEach(t,n);else if(e.length===+e.length){for(var s=0,r=e.length;r>s;s++)if(t.call(n,e[s],s,e)===c)return}else for(var i in e)if(u.has(e,i)&&t.call(n,e[i],i,e)===c)return};u.result=function(e,t){if(null==e)return null;var n=e[t];return u.isFunction(n)?n.call(e):n},u.once=function(e){var t,n=!1;return function(){return n?t:(n=!0,t=e.apply(this,arguments),e=null,t)}};var p=0;return u.uniqueId=function(e){var t=++p+"";return e?e+t:t},u.filter=u.select=function(e,t,n){var s=[];return null==e?s:i&&e.filter===i?e.filter(t,n):(h(e,function(e,r,o){t.call(n,e,r,o)&&(s[s.length]=e)}),s)},h(["Arguments","Function","String","Number","Date","RegExp"],function(e){u["is"+e]=function(t){return r.call(t)=="[object "+e+"]"}}),u.defaults=function(e){return h(s.call(arguments,1),function(t){if(t)for(var n in t)null==e[n]&&(e[n]=t[n])}),e},u.extend=function(e){return h(s.call(arguments,1),function(t){if(t)for(var n in t)e[n]=t[n]}),e},u.keys=a||function(e){if(e!==Object(e))throw new TypeError("Invalid object");var t=[];for(var n in e)u.has(e,n)&&(t[t.length]=n);return t},u.bind=function(e,t){if(e.bind===l&&l)return l.apply(e,s.call(arguments,1));var n=s.call(arguments,2);return function(){return e.apply(t,n.concat(s.call(arguments)))}},u.isObject=function(e){return e===Object(e)},u}(),window.Messenger.Events=function(){if(window.Backbone&&Backbone.Events)return Backbone.Events;return function(){var e=/\s+/,t=function(t,n,s,r){if(!s)return!0;if("object"==typeof s)for(var o in s)t[n].apply(t,[o,s[o]].concat(r));else{if(!e.test(s))return!0;for(var i=s.split(e),a=0,l=i.length;l>a;a++)t[n].apply(t,[i[a]].concat(r))}},n=function(e,t){var n,s=-1,r=e.length;switch(t.length){case 0:for(;r>++s;)(n=e[s]).callback.call(n.ctx);return;case 1:for(;r>++s;)(n=e[s]).callback.call(n.ctx,t[0]);return;case 2:for(;r>++s;)(n=e[s]).callback.call(n.ctx,t[0],t[1]);return;case 3:for(;r>++s;)(n=e[s]).callback.call(n.ctx,t[0],t[1],t[2]);return;default:for(;r>++s;)(n=e[s]).callback.apply(n.ctx,t)}},s={on:function(e,n,s){return t(this,"on",e,[n,s])&&n?(this._events||(this._events={}),(this._events[e]||(this._events[e]=[])).push({callback:n,context:s,ctx:s||this}),this):this},once:function(e,n,s){if(!t(this,"once",e,[n,s])||!n)return this;var r=this,o=_.once(function(){r.off(e,o),n.apply(this,arguments)});return o._callback=n,this.on(e,o,s),this},off:function(e,n,s){var r,o,i,a,l,u,c,h;if(!this._events||!t(this,"off",e,[n,s]))return this;if(!e&&!n&&!s)return this._events={},this;for(a=e?[e]:_.keys(this._events),l=0,u=a.length;u>l;l++)if(e=a[l],r=this._events[e]){if(i=[],n||s)for(c=0,h=r.length;h>c;c++)o=r[c],(n&&n!==o.callback&&n!==o.callback._callback||s&&s!==o.context)&&i.push(o);this._events[e]=i}return this},trigger:function(e){if(!this._events)return this;var s=Array.prototype.slice.call(arguments,1);if(!t(this,"trigger",e,s))return this;var r=this._events[e],o=this._events.all;return r&&n(r,s),o&&n(o,arguments),this},listenTo:function(e,t,n){return(this._listeners||(this._listeners={}))[e._listenerId||(e._listenerId=_.uniqueId("l"))]=e,e.on(t,"object"==typeof t?this:n,this),this},stopListening:function(e,t,n){var s=this._listeners;if(s){if(e)e.off(t,"object"==typeof t?this:n,this),t||n||delete s[e._listenerId];else{"object"==typeof t&&(n=this);for(var r in s)s[r].off(t,n,this);this._listeners={}}return this}}};return s.bind=s.on,s.unbind=s.off,s}()}(),function(){var e,t,n,s,r,o,i,a,l,u,c,h={}.hasOwnProperty,p=function(e,t){function n(){this.constructor=e}for(var s in t)h.call(t,s)&&(e[s]=t[s]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},d=[].slice,f=[].indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1};e=jQuery,o=null!=(l=window._)?l:window.Messenger._,s=null!=(u="undefined"!=typeof Backbone&&null!==Backbone?Backbone.Events:void 0)?u:window.Messenger.Events,n=function(){function t(t){e.extend(this,s),o.isObject(t)&&(t.el&&this.setElement(t.el),this.model=t.model),this.initialize.apply(this,arguments)}return t.prototype.setElement=function(t){return this.$el=e(t),this.el=this.$el[0]},t.prototype.delegateEvents=function(e){var t,n,s,r,i,a,l;if(e||(e=o.result(this,"events"))){this.undelegateEvents(),t=/^(\S+)\s*(.*)$/,l=[];for(s in e){if(i=e[s],o.isFunction(i)||(i=this[e[s]]),!i)throw Error('Method "'+e[s]+'" does not exist');r=s.match(t),n=r[1],a=r[2],i=o.bind(i,this),n+=".delegateEvents"+this.cid,""===a?l.push(this.jqon(n,i)):l.push(this.jqon(n,a,i))}return l}},t.prototype.jqon=function(e,t,n){var s;return null!=this.$el.on?(s=this.$el).on.apply(s,arguments):(null==n&&(n=t,t=void 0),null!=t?this.$el.delegate(t,e,n):this.$el.bind(e,n))},t.prototype.jqoff=function(e){var t;return null!=this.$el.off?(t=this.$el).off.apply(t,arguments):(this.$el.undelegate(),this.$el.unbind(e))},t.prototype.undelegateEvents=function(){return this.jqoff(".delegateEvents"+this.cid)},t.prototype.remove=function(){return this.undelegateEvents(),this.$el.remove()},t}(),i=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return p(n,t),n.prototype.defaults={hideAfter:10,scroll:!0,closeButtonText:"&times;",escapeText:!1},n.prototype.initialize=function(t){return null==t&&(t={}),this.shown=!1,this.rendered=!1,this.messenger=t.messenger,this.options=e.extend({},this.options,t,this.defaults)},n.prototype.show=function(){var e;return this.rendered||this.render(),this.$message.removeClass("messenger-hidden"),e=this.shown,this.shown=!0,e?void 0:this.trigger("show")},n.prototype.hide=function(){var e;if(this.rendered)return this.$message.addClass("messenger-hidden"),e=this.shown,this.shown=!1,e?this.trigger("hide"):void 0},n.prototype.cancel=function(){return this.hide()},n.prototype.update=function(t){var n,s=this;return o.isString(t)&&(t={message:t}),e.extend(this.options,t),this.lastUpdate=new Date,this.rendered=!1,this.events=null!=(n=this.options.events)?n:{},this.render(),this.actionsToEvents(),this.delegateEvents(),this.checkClickable(),this.options.hideAfter?(this.$message.addClass("messenger-will-hide-after"),null!=this._hideTimeout&&clearTimeout(this._hideTimeout),this._hideTimeout=setTimeout(function(){return s.hide()},1e3*this.options.hideAfter)):this.$message.removeClass("messenger-will-hide-after"),this.options.hideOnNavigate?(this.$message.addClass("messenger-will-hide-on-navigate"),null!=("undefined"!=typeof Backbone&&null!==Backbone?Backbone.history:void 0)&&Backbone.history.on("route",function(){return s.hide()})):this.$message.removeClass("messenger-will-hide-on-navigate"),this.trigger("update",this)},n.prototype.scrollTo=function(){return this.options.scroll?e.scrollTo(this.$el,{duration:400,offset:{left:0,top:-20}}):void 0},n.prototype.timeSinceUpdate=function(){return this.lastUpdate?new Date-this.lastUpdate:null},n.prototype.actionsToEvents=function(){var e,t,n,s,r=this;n=this.options.actions,s=[];for(t in n)e=n[t],s.push(this.events['click [data-action="'+t+'"] a']=function(e){return function(n){return n.preventDefault(),n.stopPropagation(),r.trigger("action:"+t,e,n),e.action.call(r,n,r)}}(e));return s},n.prototype.checkClickable=function(){var e,t,n;t=this.events,n=[];for(e in t)t[e],"click"===e?n.push(this.$message.addClass("messenger-clickable")):n.push(void 0);return n},n.prototype.undelegateEvents=function(){var e;return n.__super__.undelegateEvents.apply(this,arguments),null!=(e=this.$message)?e.removeClass("messenger-clickable"):void 0},n.prototype.parseActions=function(){var t,n,s,r,o;n=[],o=this.options.actions;for(r in o)t=o[r],s=e.extend({},t),s.name=r,null==s.label&&(s.label=r),n.push(s);return n},n.prototype.template=function(t){var n,s,r,o,i,a,l,u,c,h,p=this;for(i=e("<div class='messenger-message message alert "+t.type+" message-"+t.type+" alert-"+t.type+"'>"),t.showCloseButton&&(r=e('<button type="button" class="messenger-close" data-dismiss="alert">'),r.html(t.closeButtonText),r.click(function(){var e;return p.cancel(),"function"==typeof(e=p.options).onClickClose&&e.onClickClose(),!0}),i.append(r)),a=t.escapeText?e('<div class="messenger-message-inner"></div>').text(t.message):e('<div class="messenger-message-inner">'+t.message+"</div>"),i.append(a),t.actions.length&&(s=e('<div class="messenger-actions">')),h=t.actions,u=0,c=h.length;c>u;u++)l=h[u],n=e("<span>"),n.attr("data-action",""+l.name),o=e("<a>"),o.html(l.label),n.append(e('<span class="messenger-phrase">')),n.append(o),s.append(n);return i.append(s),i},n.prototype.render=function(){var t;if(!this.rendered)return this._hasSlot||(this.setElement(this.messenger._reserveMessageSlot(this)),this._hasSlot=!0),t=e.extend({},this.options,{actions:this.parseActions()}),this.$message=e(this.template(t)),this.$el.html(this.$message),this.shown=!0,this.rendered=!0,this.trigger("render")},n}(n),r=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return p(t,e),t.prototype.initialize=function(){return t.__super__.initialize.apply(this,arguments),this._timers={}},t.prototype.cancel=function(){return this.clearTimers(),this.hide(),null!=this._actionInstance&&null!=this._actionInstance.abort?this._actionInstance.abort():void 0},t.prototype.clearTimers=function(){var e,t,n,s;n=this._timers;for(e in n)t=n[e],clearTimeout(t);return this._timers={},null!=(s=this.$message)?s.removeClass("messenger-retry-soon messenger-retry-later"):void 0},t.prototype.render=function(){var e,n,s,r;t.__super__.render.apply(this,arguments),this.clearTimers(),s=this.options.actions,r=[];for(n in s)e=s[n],e.auto?r.push(this.startCountdown(n,e)):r.push(void 0);return r},t.prototype.renderPhrase=function(e,t){return e.phrase.replace("TIME",this.formatTime(t))},t.prototype.formatTime=function(e){var t;return t=function(e,t){return e=Math.floor(e),1!==e&&(t+="s"),"in "+e+" "+t},0===Math.floor(e)?"now...":60>e?t(e,"second"):(e/=60,60>e?t(e,"minute"):(e/=60,t(e,"hour")))},t.prototype.startCountdown=function(e,t){var n,s,r,o,i=this;if(null==this._timers[e])return n=this.$message.find("[data-action='"+e+"'] .messenger-phrase"),s=null!=(o=t.delay)?o:3,10>=s?(this.$message.removeClass("messenger-retry-later"),this.$message.addClass("messenger-retry-soon")):(this.$message.removeClass("messenger-retry-soon"),this.$message.addClass("messenger-retry-later")),(r=function(){var o;return n.text(i.renderPhrase(t,s)),s>0?(o=Math.min(s,1),s-=o,i._timers[e]=setTimeout(r,1e3*o)):(i.$message.removeClass("messenger-retry-soon messenger-retry-later"),delete i._timers[e],t.action())})()},t}(i),a=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return p(n,t),n.prototype.tagName="ul",n.prototype.className="messenger",n.prototype.messageDefaults={type:"info"},n.prototype.initialize=function(t){return this.options=null!=t?t:{},this.history=[],this.messageDefaults=e.extend({},this.messageDefaults,this.options.messageDefaults)},n.prototype.render=function(){return this.updateMessageSlotClasses()},n.prototype.findById=function(e){return o.filter(this.history,function(t){return t.msg.options.id===e})},n.prototype._reserveMessageSlot=function(t){var n,s,r=this;for(n=e("<li>"),n.addClass("messenger-message-slot"),this.$el.prepend(n),this.history.push({msg:t,$slot:n}),this._enforceIdConstraint(t),t.on("update",function(){return r._enforceIdConstraint(t)});this.options.maxMessages&&this.history.length>this.options.maxMessages;)s=this.history.shift(),s.msg.remove(),s.$slot.remove();return n},n.prototype._enforceIdConstraint=function(e){var t,n,s,r,o;if(null!=e.options.id)for(o=this.history,n=0,s=o.length;s>n;n++)if(t=o[n],r=t.msg,null!=r.options.id&&r.options.id===e.options.id&&e!==r){if(e.options.singleton)return void e.hide();r.hide()}},n.prototype.newMessage=function(e){var t,n,s,o,a=this;return null==e&&(e={}),e.messenger=this,i=null!=(n=null!=(s=Messenger.themes[null!=(o=e.theme)?o:this.options.theme])?s.Message:void 0)?n:r,t=new i(e),t.on("show",function(){return e.scrollTo&&"fixed"!==a.$el.css("position")?t.scrollTo():void 0}),t.on("hide show render",this.updateMessageSlotClasses,this),t},n.prototype.updateMessageSlotClasses=function(){var e,t,n,s,r,o,i;for(s=!0,t=null,e=!1,i=this.history,r=0,o=i.length;o>r;r++)n=i[r],n.$slot.removeClass("messenger-first messenger-last messenger-shown"),n.msg.shown&&n.msg.rendered&&(n.$slot.addClass("messenger-shown"),e=!0,t=n,s&&(s=!1,n.$slot.addClass("messenger-first")));return null!=t&&t.$slot.addClass("messenger-last"),this.$el[(e?"remove":"add")+"Class"]("messenger-empty")},n.prototype.hideAll=function(){var e,t,n,s,r;for(s=this.history,r=[],t=0,n=s.length;n>t;t++)e=s[t],r.push(e.msg.hide());return r},n.prototype.post=function(t){var n;return o.isString(t)&&(t={message:t}),t=e.extend(!0,{},this.messageDefaults,t),n=this.newMessage(t),n.update(t),n},n}(n),t=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return p(n,t),n.prototype.doDefaults={progressMessage:null,successMessage:null,errorMessage:"Error connecting to the server.",showSuccessWithoutError:!0,retry:{auto:!0,allow:!0},action:e.ajax},n.prototype.hookBackboneAjax=function(t){var n,s=this;if(null==t&&(t={}),null==window.Backbone)throw"Expected Backbone to be defined";return t=o.defaults(t,{id:"BACKBONE_ACTION",errorMessage:!1,successMessage:"Request completed successfully.",showSuccessWithoutError:!1}),n=function(e){var n;return n=o.extend({},t,e.messenger),s.do(n,e)},null!=Backbone.ajax?(Backbone.ajax._withoutMessenger&&(Backbone.ajax=Backbone.ajax._withoutMessenger),(null==t.action||t.action===this.doDefaults.action)&&(t.action=Backbone.ajax),n._withoutMessenger=Backbone.ajax,Backbone.ajax=n):Backbone.sync=o.wrap(Backbone.sync,function(){var t,s,r;return r=arguments[0],t=arguments.length>=2?d.call(arguments,1):[],s=e.ajax,e.ajax=n,r.call.apply(r,[this].concat(d.call(t))),e.ajax=s})},n.prototype._getHandlerResponse=function(e){return e!==!1&&(e===!0||null==e||e)},n.prototype._parseEvents=function(e){var t,n,s,r,o,i;null==e&&(e={}),o={};for(r in e)s=e[r],n=r.indexOf(" "),i=r.substring(0,n),t=r.substring(n+1),null==o[i]&&(o[i]={}),o[i][t]=s;return o},n.prototype._normalizeResponse=function(){var e,t,n,s,r,i,a;for(n=arguments.length>=1?d.call(arguments,0):[],s=null,r=null,e=null,i=0,a=n.length;a>i;i++)t=n[i],"success"===t||"timeout"===t||"abort"===t?s=t:null!=(null!=t?t.readyState:void 0)&&null!=(null!=t?t.responseText:void 0)?r=t:o.isObject(t)&&(e=t);return[s,e,r]},n.prototype.run=function(){var t,n,s,r,i,a,l,u,c,h,p=this;if(a=arguments[0],u=arguments[1],t=arguments.length>=3?d.call(arguments,2):[],null==u&&(u={}),a=e.extend(!0,{},this.messageDefaults,this.doDefaults,null!=a?a:{}),n=this._parseEvents(a.events),s=function(e,t){var n;return n=a[e+"Message"],o.isFunction(n)?n.call(p,e,t):n},l=null!=(h=a.messageInstance)?h:this.newMessage(a),null!=a.id&&(l.options.id=a.id),null!=a.progressMessage&&l.update(e.extend({},a,{message:s("progress",null),type:"info"})),i={},o.each(["error","success"],function(r){var c;return c=u[r],i[r]=function(){var i,h,g,m,y,v,_,w,b,x,C,M;return y=arguments.length>=1?d.call(arguments,0):[],w=p._normalizeResponse.apply(p,y),m=w[0],w[1],_=w[2],"success"===r&&null==l.errorCount&&a.showSuccessWithoutError===!1&&(a.successMessage=null),"error"===r&&(null==a.errorCount&&(a.errorCount=0),a.errorCount+=1),h=a.returnsPromise?y[0]:"function"==typeof c?c.apply(null,y):void 0,v=p._getHandlerResponse(h),o.isString(v)&&(v={message:v}),"error"!==r||0!==(null!=_?_.status:void 0)&&"abort"!==m?"error"===r&&null!=a.ignoredErrorCodes&&(b=null!=_?_.status:void 0,f.call(a.ignoredErrorCodes,b)>=0)?void l.hide():(i={message:s(r,_),type:r,events:null!=(x=n[r])?x:{},hideOnNavigate:"success"===r},g=e.extend({},a,i,v),"number"==typeof(null!=(C=g.retry)?C.allow:void 0)&&g.retry.allow--,"error"===r&&(null!=_?_.status:void 0)>=500&&(null!=(M=g.retry)?M.allow:void 0)?(null==g.retry.delay&&(g.retry.delay=4>g.errorCount?10:300),g.hideAfter&&(null==g._hideAfter&&(g._hideAfter=g.hideAfter),g.hideAfter=g._hideAfter+g.retry.delay),g._retryActions=!0,g.actions={retry:{label:"retry now",phrase:"Retrying TIME",auto:g.retry.auto,delay:g.retry.delay,action:function(){return g.messageInstance=l,setTimeout(function(){return p.do.apply(p,[g,u].concat(d.call(t)))},0)}},cancel:{action:function(){return l.cancel()}}}):g._retryActions&&(delete g.actions.retry,delete g.actions.cancel,delete a._retryActions),l.update(g),v&&g.message?(Messenger(o.extend({},p.options,{instance:p})),l.show()):l.hide()):void l.hide()}}),!a.returnsPromise)for(c in i)r=i[c],u[c],u[c]=r;return l._actionInstance=a.action.apply(a,[u].concat(d.call(t))),a.returnsPromise&&l._actionInstance.then(i.success,i.error),l},n.prototype.do=n.prototype.run,n.prototype.ajax=function(){var t,n;return n=arguments[0],t=arguments.length>=2?d.call(arguments,1):[],n.action=e.ajax,this.run.apply(this,[n].concat(d.call(t)))},n.prototype.expectPromise=function(e,t){return t=o.extend({},t,{action:e,returnsPromise:!0}),this.run(t)},n.prototype.error=function(e){return null==e&&(e={}),"string"==typeof e&&(e={message:e}),e.type="error",this.post(e)},n.prototype.info=function(e){return null==e&&(e={}),"string"==typeof e&&(e={message:e}),e.type="info",this.post(e)},n.prototype.success=function(e){return null==e&&(e={}),"string"==typeof e&&(e={message:e}),e.type="success",this.post(e)},n}(a),e.fn.messenger=function(){var n,s,r,i,l,u,c,h;return r=arguments[0],s=arguments.length>=2?d.call(arguments,1):[],null==r&&(r={}),n=this,null!=r&&o.isString(r)?(h=n.data("messenger"))[r].apply(h,s):(l=r,null==n.data("messenger")&&(a=null!=(u=null!=(c=Messenger.themes[l.theme])?c.Messenger:void 0)?u:t,n.data("messenger",i=new a(e.extend({el:n},l))),i.render()),n.data("messenger"))},window.Messenger._call=function(t){var n,s,r,o,i,a,l,u,c,h;if(i={extraClasses:"messenger-fixed messenger-on-bottom messenger-on-right",theme:"future",maxMessages:9,parentLocations:["body"]},t=e.extend(i,e._messengerDefaults,Messenger.options,t),null!=t.theme&&(t.extraClasses+=" messenger-theme-"+t.theme),a=t.instance||Messenger.instance,null==t.instance){for(u=t.parentLocations,s=null,null,c=0,h=u.length;h>c;c++)if(l=u[c],s=e(l),s.length){r=l;break}a?e(a._location).is(e(r))||(a.$el.detach(),s.prepend(a.$el)):(n=e("<ul>"),s.prepend(n),a=n.messenger(t),a._location=r,Messenger.instance=a)}return null!=a._addedClasses&&a.$el.removeClass(a._addedClasses),a.$el.addClass(o=a.className+" "+t.extraClasses),a._addedClasses=o,a},e.extend(Messenger,{Message:r,Messenger:t,themes:null!=(c=Messenger.themes)?c:{}}),e.globalMessenger=window.Messenger=Messenger}.call(this);!function(e,t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):e.sortable=t(e.jQuery)}(this,function(e){"use strict";var t,a,r=e(),n=[],i=function(e){e.off("dragstart.h5s"),e.off("dragend.h5s"),e.off("selectstart.h5s"),e.off("dragover.h5s"),e.off("dragenter.h5s"),e.off("drop.h5s")},o=function(e){e.off("dragover.h5s"),e.off("dragenter.h5s"),e.off("drop.h5s")},d=function(e,t){e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text",""),e.dataTransfer.setDragImage&&e.dataTransfer.setDragImage(t.item,t.x,t.y)},s=function(e,t){return t.x||(t.x=parseInt(e.pageX-t.draggedItem.offset().left)),t.y||(t.y=parseInt(e.pageY-t.draggedItem.offset().top)),t},l=function(e){return{item:e[0],draggedItem:e}},f=function(e,t){var a=l(t);a=s(e,a),d(e,a)},h=function(e,t){return void 0===e?t:e},u=function(e){e.removeData("opts"),e.removeData("connectWith"),e.removeData("items"),e.removeAttr("aria-dropeffect")},c=function(e){e.removeAttr("aria-grabbed"),e.removeAttr("draggable"),e.removeAttr("role")},g=function(e,t){return e[0]===t[0]||void 0!==e.data("connectWith")&&e.data("connectWith")===t.data("connectWith")},m=function(e){var t=e.data("opts")||{},a=e.children(t.items),r=t.handle?a.find(t.handle):a;o(e),u(e),r.off("mousedown.h5s"),i(a),c(a)},p=function(t){var a=t.data("opts"),r=t.children(a.items),n=a.handle?r.find(a.handle):r;t.attr("aria-dropeffect","move"),n.attr("draggable","true"),"function"!=typeof(document||window.document).createElement("span").dragDrop||a.disableIEFix||n.on("mousedown.h5s",function(){-1!==r.index(this)?this.dragDrop():e(this).parents(a.items)[0].dragDrop()})},v=function(e){var t=e.data("opts"),a=e.children(t.items),r=t.handle?a.find(t.handle):a;e.attr("aria-dropeffect","none"),r.attr("draggable",!1),r.off("mousedown.h5s")},b=function(e){var t=e.data("opts"),a=e.children(t.items),r=t.handle?a.find(t.handle):a;i(a),r.off("mousedown.h5s"),o(e)},x=function(i,o){var s=e(i),l=String(o);return o=e.extend({connectWith:!1,placeholder:null,dragImage:null,disableIEFix:!1,placeholderClass:"sortable-placeholder",draggingClass:"sortable-dragging",hoverClass:!1},o),s.each(function(){var i=e(this);if(/enable|disable|destroy/.test(l))return void x[l](i);o=h(i.data("opts"),o),i.data("opts",o),b(i);var s,u,c,m=i.children(o.items),v=null===o.placeholder?e("<"+(/^ul|ol$/i.test(this.tagName)?"li":"div")+' class="'+o.placeholderClass+'"/>'):e(o.placeholder).addClass(o.placeholderClass);if(!i.attr("data-sortable-id")){var I=n.length;n[I]=i,i.attr("data-sortable-id",I),m.attr("data-item-sortable-id",I)}if(i.data("items",o.items),r=r.add(v),o.connectWith&&i.data("connectWith",o.connectWith),p(i),m.attr("role","option"),m.attr("aria-grabbed","false"),o.hoverClass){var C="sortable-over";"string"==typeof o.hoverClass&&(C=o.hoverClass),m.hover(function(){e(this).addClass(C)},function(){e(this).removeClass(C)})}m.on("dragstart.h5s",function(r){r.stopImmediatePropagation(),o.dragImage?(d(r.originalEvent,{item:o.dragImage,x:0,y:0}),console.log("WARNING: dragImage option is deprecated and will be removed in the future!")):f(r.originalEvent,e(this),o.dragImage),t=e(this),t.addClass(o.draggingClass),t.attr("aria-grabbed","true"),s=t.index(),a=t.height(),u=e(this).parent(),t.parent().triggerHandler("sortstart",{item:t,placeholder:v,startparent:u})}),m.on("dragend.h5s",function(){t&&(t.removeClass(o.draggingClass),t.attr("aria-grabbed","false"),t.show(),r.detach(),c=e(this).parent(),t.parent().triggerHandler("sortstop",{item:t,startparent:u}),(s!==t.index()||u.get(0)!==c.get(0))&&t.parent().triggerHandler("sortupdate",{item:t,index:c.children(c.data("items")).index(t),oldindex:m.index(t),elementIndex:t.index(),oldElementIndex:s,startparent:u,endparent:c}),t=null,a=null)}),e(this).add([v]).on("drop.h5s",function(a){return g(i,e(t).parent())?(a.stopPropagation(),r.filter(":visible").after(t),t.trigger("dragend.h5s"),!1):void 0}),m.add([this]).on("dragover.h5s dragenter.h5s",function(n){if(g(i,e(t).parent())){if(n.preventDefault(),n.originalEvent.dataTransfer.dropEffect="move",m.is(this)){var d=e(this).height();if(o.forcePlaceholderSize&&v.height(a),d>a){var s=d-a,l=e(this).offset().top;if(v.index()<e(this).index()&&n.originalEvent.pageY<l+s)return!1;if(v.index()>e(this).index()&&n.originalEvent.pageY>l+d-s)return!1}t.hide(),v.index()<e(this).index()?e(this).after(v):e(this).before(v),r.not(v).detach()}else r.is(this)||e(this).children(o.items).length||(r.detach(),e(this).append(v));return!1}})})};return x.destroy=function(e){m(e)},x.enable=function(e){p(e)},x.disable=function(e){v(e)},e.fn.sortable=function(e){return x(this,e)},x}),function(e){function t(t){var a=e(this);a.data("mouseheld_timeout",setTimeout(function(){a.trigger("mouseheld")},t.data))}function a(){var t=e(this);clearTimeout(t.data("mouseheld_timeout"))}var r=e.event.special.mouseheld={setup:function(n){var i=e(this);i.bind("mousedown",+n||r.time,t),i.bind("mouseleave mouseup",a)},teardown:function(){var r=e(this);r.unbind("mousedown",t),r.unbind("mouseleave mouseup",a)},time:750}}(jQuery);/*!
  LegoMushroom @legomushroom http://legomushroom.com
  MIT License 2014
 */
(function(){var e;e=function(){function e(e){this.o=null!=e?e:{},window.isAnyResizeEventInited||(this.vars(),this.redefineProto())}return e.prototype.vars=function(){return window.isAnyResizeEventInited=!0,this.allowedProtos=[HTMLDivElement,HTMLFormElement,HTMLLinkElement,HTMLBodyElement,HTMLParagraphElement,HTMLFieldSetElement,HTMLLegendElement,HTMLLabelElement,HTMLButtonElement,HTMLUListElement,HTMLOListElement,HTMLLIElement,HTMLHeadingElement,HTMLQuoteElement,HTMLPreElement,HTMLBRElement,HTMLFontElement,HTMLHRElement,HTMLModElement,HTMLParamElement,HTMLMapElement,HTMLTableElement,HTMLTableCaptionElement,HTMLImageElement,HTMLTableCellElement,HTMLSelectElement,HTMLInputElement,HTMLTextAreaElement,HTMLAnchorElement,HTMLObjectElement,HTMLTableColElement,HTMLTableSectionElement,HTMLTableRowElement],this.timerElements={img:1,textarea:1,input:1,embed:1,object:1,svg:1,canvas:1,tr:1,tbody:1,thead:1,tfoot:1,a:1,select:1,option:1,optgroup:1,dl:1,dt:1,br:1,basefont:1,font:1,col:1,iframe:1}},e.prototype.redefineProto=function(){var e,t,n;return t=this,function(){var o,i,r,l;for(r=this.allowedProtos,l=[],e=o=0,i=r.length;o<i;e=++o)n=r[e],null!=n.prototype&&l.push(function(e){var n,o;return n=e.prototype.addEventListener||e.prototype.attachEvent,function(n){var o;o=function(){return this===window&&this===document||"onresize"===arguments[0]&&!this.isAnyResizeEventInited&&t.handleResize({args:arguments,that:this}),n.apply(this,arguments)},e.prototype.addEventListener?e.prototype.addEventListener=o:e.prototype.attachEvent?e.prototype.attachEvent=o:void 0}(n),o=e.prototype.removeEventListener||e.prototype.detachEvent,function(t){var n;return n=function(){return this.isAnyResizeEventInited=!1,this.iframe&&this.removeChild(this.iframe),t.apply(this,arguments)},e.prototype.removeEventListener?e.prototype.removeEventListener=n:e.prototype.detachEvent?e.prototype.detachEvent=wrappedListener:void 0}(o)}(n));return l}.call(this)},e.prototype.handleResize=function(e){var t,n,o,i,r,l;return n=e.that,this.timerElements[n.tagName.toLowerCase()]?this.initTimer(n):(o=document.createElement("iframe"),n.appendChild(o),o.style.width="100%",o.style.height="100%",o.style.position="absolute",o.style.zIndex=-999,o.style.opacity=0,o.style.top=0,o.style.left=0,t=window.getComputedStyle?getComputedStyle(n):n.currentStyle,r="static"===t.position&&""===n.style.position,i=""===t.position&&""===n.style.position,(r||i)&&(n.style.position="relative"),null!=(l=o.contentWindow)&&(l.onresize=function(e){return function(t){return e.dispatchEvent(n)}}(this)),n.iframe=o),n.isAnyResizeEventInited=!0},e.prototype.initTimer=function(e){var t,n;return n=0,t=0,this.interval=setInterval(function(o){return function(){var i,r;if(r=e.offsetWidth,i=e.offsetHeight,r!==n||i!==t)return o.dispatchEvent(e),n=r,t=i}}(this),this.o.interval||62.5)},e.prototype.dispatchEvent=function(e){var t;return document.createEvent?(t=document.createEvent("HTMLEvents"),t.initEvent("onresize",!1,!1),e.dispatchEvent(t)):!!document.createEventObject&&(t=document.createEventObject(),e.fireEvent("onresize",t))},e.prototype.destroy=function(){var e,t,n,o,i,r;for(clearInterval(this.interval),this.interval=null,window.isAnyResizeEventInited=!1,this,i=this.allowedProtos,r=[],e=n=0,o=i.length;n<o;e=++n)t=i[e],null!=t.prototype&&r.push(function(e){return e.prototype.addEventListener||e.prototype.attachEvent,e.prototype.addEventListener?e.prototype.addEventListener=Element.prototype.addEventListener:e.prototype.attachEvent&&(e.prototype.attachEvent=Element.prototype.attachEvent),e.prototype.removeEventListener?e.prototype.removeEventListener=Element.prototype.removeEventListener:e.prototype.detachEvent?e.prototype.detachEvent=Element.prototype.detachEvent:void 0}(t));return r},e}(),"function"==typeof define&&define.amd?define("any-resize-event",[],function(){return new e}):"object"==typeof module&&"object"==typeof module.exports?module.exports=new e:("undefined"!=typeof window&&null!==window&&(window.AnyResizeEvent=e),"undefined"!=typeof window&&null!==window&&(window.anyResizeEvent=new e))}).call(this);/*!
 * Authentic Theme (https://github.com/authentic-theme/authentic-theme)
 * Copyright Ilia Rostovtsev <programming@rostovtsev.io>
 * Licensed under MIT (https://github.com/authentic-theme/authentic-theme/blob/master/LICENSE)
 */
Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(e,t){if(null==this)throw new TypeError('"this" is null or not defined');var a=Object(this),n=a.length>>>0;if(0===n)return!1;for(var r=0|t,i=Math.max(r>=0?r:n-Math.abs(r),0);i<n;){if(function(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}(a[i],e))return!0;i++}return!1}}),Object.values||(Object.values=function(e){return Object.keys(e).map(function(t){return e[t]})}),Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),a=t.length,n=new Array(a);a--;)n[a]=[t[a],e[t[a]]];return n}),Array.prototype.some||(Array.prototype.some=function(e,t){"use strict";if(null==this)throw new TypeError("Array.prototype.some called on null or undefined");if("function"!=typeof e)throw new TypeError;for(var a=Object(this),n=a.length>>>0,r=0;r<n;r++)if(r in a&&e.call(t,a[r],r,a))return!0;return!1}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType)return null});const vars={page_user_inactive:1,available_modules:0,navigation_select:!1,navigation:{select:{back:!1}},previous_request:String(),source_request:String(),requested_page:String(),allow_ui_features:1,slider_pinned:-1,navigation_pinned:-1,pjax_replace_contents:1,pjax_cancel:0,jspanels_reversed:0,event:{stopped_typing_delay:200,double_click_delay:400},local_storage:1,shell:{history:0,processing:0},events:{keypressed:{shift:!1,alt:!1},blocked:!1,scrolled:0},pjax:{post_reboot:!1,post_page_fetch:!1,event:{end:1}},ajax:{post_success:!1},level:-1},browser={detect:{internet_explorer:function(){var e=0,t=/MSIE (\d+\.\d+);/.test(navigator.userAgent),a=!!navigator.userAgent.match(/Trident\/7.0/),n=navigator.userAgent.indexOf("rv:11.0");return t&&(e=new Number(RegExp.$1)),-1!=navigator.appVersion.indexOf("MSIE 10")&&(e=10),a&&-1!=n&&(e=11),e},safari:function(e){var t=window.navigator.userAgent,a=!(!t.match(/iPad/i)&&!t.match(/iPhone/i)||!t.match(/WebKit/i)||t.match(/CriOS/i)||t.match(/OPiOS/i)),n=navigator.vendor&&navigator.vendor.indexOf("Apple")>-1&&navigator.userAgent&&!navigator.userAgent.match("CriOS");return e?a:n},firefox:function(){return/firefox/i.test(navigator.userAgent)}},storage:{size:function(e){var t=String(),a=e?"MB":"KB";for(var n in window.localStorage)window.localStorage.hasOwnProperty(n)&&(t+=window.localStorage[n]);return t?((3+16*t.length/8192)/(e?1024:1)).toFixed(2)+" "+a:"Empty (0 "+a+")"}}},platform={detect:function(){var e=window.navigator.userAgent,t=window.navigator.platform,a=["Macintosh","MacIntel","MacPPC","Mac68K"],n=["Win32","Win64","Windows","WinCE"],r=["iPhone","iPad","iPod"],i=null;return a.indexOf(t)!==-1?i="mac":r.indexOf(t)!==-1?i="ios":n.indexOf(t)!==-1?i="windows":/Android/.test(e)?i="android":!i&&/Linux/.test(t)&&(i="linux"),i},set:function(){var e=this.detect();e&&$(document.body).attr("data-platform",e)}},Convert={arrFlip:function(e){var t,a={};for(t in e)e.hasOwnProperty(t)&&(a[e[t]]=t);return a},uriDecodeComponent:function(e,t){var a,n,r,i=String(),o=0;if(void 0===t&&(t=0),a=e?e.split(/(%(?:d0|d1)%.{2})/):[],$.isEmptyObject(a))return e;for(n=a.length;o<n;o++){try{r=decodeURIComponent(a[o])}catch(e){r=t?a[o].replace(/%(?!\d+)/g,"%25"):a[o]}i+=r}return i},uriEncodeComponent:function(e){return this.uriDecodeComponent(e)===e&&(e=encodeURIComponent(e)),e},htmlEscape:function(e){var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","=":"&#61;"};return String(e).replace(/[&<>"'=]/g,function(e){return t[e]})},htmlUnEscape:function(e){var t=[["amp","&"],["apos","'"],["#x27","'"],["#x2F","/"],["#39","'"],["#47","/"],["#61","="],["lt","<"],["gt",">"],["nbsp"," "],["quot",'"']];if(e)for(var a=0,n=t.length;a<n;++a)e=String(e).replace(new RegExp("&"+t[a][0]+";","g"),t[a][1]);return e?e:""},htmlDecode:function(e){return e.replace(/\\x([0-9A-Fa-f]{2})/g,function(){return String.fromCharCode(parseInt(arguments[1],16))})},textTruncate:function(e,t,a){if(e.length<=t)return e;a=a||"...";var n=a.length,r=t-n,i=Math.ceil(r/2),o=Math.floor(r/2);return e.substr(0,i)+a+e.substr(e.length-o)},htmlStrip:function(e){return $("<div></div>").html(e).text()},pathnamePopLast:function(e){var t,a=~e.indexOf("%2F")?"%2F":"/",n=e.split(a);return n.pop(),t=n.join(a),t?t:"/"},strUpFirst:function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()},strUpFirstEach:function(e){return e.replace(/\w\S*/g,function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()})},strUpInitial:function(e){return e.length?this.strUpFirst(e.toLowerCase()):e},json_to_query:function(e){return""+Object.entries(e).map(function(e){var t=e[0],a=e[1];return t+"="+encodeURIComponent(a)}).join("&")},serialized_to_json:function(e){(e.startsWith('"')||e.endsWith('"'))&&(e=e.replace(/^"|"$/g,String()));for(var t={},a=("?"===e[0]?e.substr(1):e).split("&"),n=0;n<a.length;n++){var r=a[n].split("=");t[decodeURIComponent(r[0])]=decodeURIComponent(r[1]||"")}return t},nice_number:function(e){return e.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},extactText:function(e){var t=e.contents().filter(function(){return 3==this.nodeType});return t&&t[0]?t[0].nodeValue:String()}},core={get_global_vars:function(e,t){for(var a=t?{}:[],n=window,r=0;r<e.length;r++)for(var i in n)0==i.indexOf(e[r])&&(a[i]=n[i]);return a},fnExtend:function(e,t){window[e]=function(e){return function(){e(),t()}}(window[e])},linkSameOrigin:function(e){return e.attr("href")&&(e.attr("href").match("^http:")||e.attr("href").match("^https:")||e.attr("href").match("^ftp:")||e.attr("href").match("^ftps:"))&&URI(e.attr("href")).hostname()!=v___location_hostname||e.attr("data-href")&&(e.attr("data-href").match("^http:")||e.attr("data-href").match("^https:")||e.attr("data-href").match("^ftp:")||e.attr("data-href").match("^ftps:"))&&URI(e.attr("data-href")).hostname()!=v___location_hostname?0:1},moduleAvailable:function(e){var t=vars.available_modules;return t=t?t:get_server_data("available-modules"),void 0!=get_server_data(e)?Test.true(get_server_data(e)):$.inArray(e,t)>-1},curModuleFileQuery:function(e,t,a){return $('body[class*="'+e+'"]').length&&v___location_file==t&&v___location_query&&v___location_query.indexOf(a)!==-1},curModuleFile:function(e,t){return $('body[class*="'+e+'"]').length&&v___location_file==t},curModule:function(e,t){return t=t?String():"*",$("body[class"+t+'="'+e+'"]').length},moduleFile:function(e,t,a){if(e.includes("/")&&e.includes(".cgi")){var n,r,i,o=e.split("/");if(o.filter(function(e,t){e.includes(".cgi")&&(n=t)}),r=o[n-1],i=o[n],r&&r.includes(t)&&i&&i.includes(a))return 1}return 0},updateModuleData:function(e,t,a){$.ajax({type:"POST",url:v___location_prefix+e,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);var n=$(e).find("form.ui_form");$.each(a,function(e,t){n.find('[name="'+e+'"]').val(t)}),setTimeout(function(){$.ajax({type:"POST",url:v___location_prefix+t,data:$(n).serialize(),dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0)},error:function(){}})},100)},error:function(){}})},getModuleData:function(e){return $.ajax({type:"POST",url:v___location_prefix+e,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0)},error:function(){}})},setModuleData:function(e,t){this.getModuleData(e).then(function(e){return $(e).find("form.ui_form").serializeArray()}).done(function(e){var a={};$.each($(e),function(){a[this.name]=this.value}).promise().done(function(){$.each(t,function(e,t){var n=$('[name="'+t+'"]');n.val(a[t]),n.is("select")&&n.find("[data-clear]").remove()})})})}},HTML={bottom_progress:function(e,t,a){return'<div data-progress-id="'+e+'" class="bottom_progress'+(a?" bottom_progress_horizontal":"")+'">'+(a?'<div class="bottom_progress_filename"></div><div class="bottom_progress_lane"></div>':"")+'<div class="bottom_progress_level '+t+'"></div><span class="bottom_progress_overlay">'+(a?"":"1%")+(a?'<span class="bottom_progress_data"></span><span class="bottom_progress_percent"></span>':"")+'</span><span class="fa fa-times-circle-o bottom_progress_cancel"></span></div>'},label:{temperature:function(e,t){var a="bg-semi-transparent";return t?e<=30?a:e>30&&e<=60?a:e>60&&e<=80?"bg-warning":e>80?"bg-danger":"":e<=86?a:e>86&&e<=140?a:e>140&&e<=176?"bg-warning":e>176?"bg-danger":""},rpm:function(e){return e<=2*rpmFactor?bg_semi_tr:e>2*rpmFactor&&e<=3*rpmFactor?bg_semi_tr:e>3*rpmFactor&&e<=4*rpmFactor?bg_warn:e>4*rpmFactor?bg_danger:""}},template:{accordion:function(e,t,a,n){for(var r='<div class="panel-group panel-filter" id="'+e+'" role="tablist" aria-multiselectable="true">',i=0;i<t.length;i++){var o=!$.isArray(n)||$.isEmptyObject(n)?0===i?1:0:n[i]?1:0,s=$.isEmptyObject(n)||!$.isEmptyObject(n)&&n.filter(function(e){return 1===e}).length<=1,l=$.isArray(n)&&2===n[i]?1:0;connected_grouped=e.endsWith("_-grouped")&&s?1:0,r+='<div class="panel panel-default"><div class="panel-heading" aria-static="'+(l?"true":"false")+'" data-toggle="collapse" data-target="#'+e+"_c_"+i+'" role="tab" id="'+e+"_h_"+i+'"><h4 class="panel-title"><a role="button" data-toggle="collapse" '+(connected_grouped?' data-parent="#'+e+'"':" ")+' href="#'+e+"_c_"+i+'" aria-static="'+(l?"true":"false")+'" aria-expanded="'+(o||l?"true":"false")+'" aria-controls="'+e+"_c_"+i+'">'+t[i]+'</a></h4></div><div id="'+e+"_c_"+i+'" class="panel-collapse collapse'+(o||l?" in":"")+'" aria-static="'+(l?"true":"false")+'" role="tabpanel" aria-labelledby="'+e+"_h_"+i+'"><div class="panel-body inner">'+a[i]+"</div></div></div>"}return r+="</div>"},page_content_preloader:function(e,t){return'<div class="container-fluid-loading '+(page.handle.content.offset()?"col-lg-10 col-lg-offset-1":"margined-top-15")+(t?" "+t:"")+'"><div class="panel-loading panel-default-loading"><div class="panel-heading-loading text-center"><button class="fa fa-fw fa-inverse fa-2x text-lighter favorites xcustom-favorites fa-star-o dummy"></button>&nbsp;<span>'+e+'</span></div><div class="panel-body-loading"><span class="cspinner"><span class="cspinner-icon light"></span></span></div></div></div>'},reauthenticate:function(e){var t=Test.strContains(get_server_data("webprefix"),"servers/link.cgi")?1:0;return'<div class="'+e+'"><div class="'+e+'-container-center animated slideInDown"><div class="'+e+'-header"><div class="'+e+'-header-icon"><i class="fa fa-lock fa-lg"></i></div><div class="'+e+'-header-title"><h3>'+theme_language("theme_xhred_session_expired")+"</h3><small>"+theme_language("theme_xhred_session_expired_details")+'</small></div></div><div class="panel"><div class="panel-body"><form action="'+v___location_prefix+'/session_login.cgi"><div class="form-group hidden"><label data-user for="user">'+theme_language("theme_xhred_login_user")+'</label><input type="text" value="'+get_server_data("user")+'" name="user" class="form-control form-control-rea" required readonly></div><div class="form-group"><label data-pass for="pass">'+theme_language("theme_xhred_login_pass")+'</label><input autofocus type="password" placeholder="******************" name="pass" autocomplete="off" autocorrect="off" class="form-control form-control-rea"></div><div class="form-group" data-container-twofactor><label data-twofactor for="twofactor">'+theme_language("theme_xhred_login_token")+'</label><input type="number" placeholder="123456" name="twofactor" autocomplete="off" autocorrect="off" class="form-control form-control-rea"></div><div><input type="hidden" name="ajax" value="1"><button data-submit class="btn btn-success pull-right"><i class="fa fa-fw fa-unlock"></i> '+theme_language("theme_xhred_global_reauthenticate")+'</button><a data-nref class="btn btn-'+(t?"warning btn-block":"default")+'" href="'+v___location_prefix+'/"><i class="fa fa-fw fa-'+(t?"sign-out":"user-switch")+'"></i> '+(t?theme_language("theme_xhred_global_reauthenticate"):theme_language("theme_xhred_tooltip_switch_user"))+"</a>"+(t?'<a data-nref class="btn btn-default btn-block" onclick="javascript:session.reauthenticate.end()"><i class="fa fa-fw fa-arrow-circle-o-left"></i> '+theme_language("theme_xhred_global_continue")+"</a>":"")+"</div></form></div></div></div></div>"}}},load={loaded:[],bundle:function($scripts__,$css__,callBack__,callBackCalledNoEval__){var execute_load=function($script,$css,callBack,callBackCalledNoEval){var head=$("head"),initial_name=$script;callBack="object"==typeof callBack&&callBack;var css=($css?1===$css?$script:$css:0)+"."+v___source_type+".css",js=$script+"."+v___source_type+".js";Test.strContains(initial_name,v___server_extensions_path)||Test.strContains(initial_name,v___server_js_path)||(css=v___server_css_path+"/"+css,js=v___server_js_path+"/"+js);var processCallbacks=function(_callBack,_callBackCalledNoEval){_callBack&&!_callBackCalledNoEval?$.each(_callBack,function(i2,v2){eval(v2)}):_callBack&&_callBackCalledNoEval&&2!==_callBackCalledNoEval?$.each(_callBack,function(e,t){t.call()}):_callBack&&_callBackCalledNoEval&&2===_callBackCalledNoEval&&$.each(_callBack,function(e,t){window[e].apply(null,t)})};load.loaded.includes(initial_name)?(callBack||callBackCalledNoEval)&&processCallbacks(callBack,callBackCalledNoEval):(o___gotten_scripts.push(js),load.loaded.push(initial_name),$css&&head.append('<link href="'+css+"?"+v___theme_version_plain+'" rel="stylesheet" type="text/css">'),$.getScript(js+"?"+v___theme_version_plain,function(){processCallbacks(callBack,callBackCalledNoEval)}).fail(function(e){"canceled"!==e.statusText&&connection_error(e,1)}))};$.isArray($scripts__)?$scripts__.forEach(function(e,t,a){Object.is(a.length-1,t)?execute_load(e,$css__,callBack__,callBackCalledNoEval__):execute_load(e,$css__,0,0)}):execute_load($scripts__,$css__,callBack__,callBackCalledNoEval__)}},page={handle:{content:{offset:function(e){var t=core.curModuleFileQuery("syslog","save_log.cgi","view=")||core.curModuleFile("virtual-server","edit_html.cgi")||core.curModuleFile("mysql","view_table.cgi")||core.curModuleFile("postgresql","view_table.cgi")||core.curModuleFile("mailbox","")||core.curModuleFile("mailbox","index.cgi")||core.curModule(v___module_file_manager)||v___page_hasEditor||!settings_enable_container_offset?0:1;if(!e)return t;var a=$(".container-fluid");page.handle.content.offset()?a.addClass("col-lg-10 col-lg-offset-1").removeClass("margined-top-15"):a.removeClass("col-lg-10 col-lg-offset-1").addClass("margined-top-15")},preloader_dismiss:function(){$(".container-fluid-loading").length&&page.handle.content.preloader()},preloader:function(e,t){var a=this,n=$("#content"),r=$(".container-fluid"),i=$(".container-fluid-loading"),o=t?t:$("span[data-main_title]").text(),s=e===-2?"container-fluid-loading-persistent":0,l=HTML.template.page_content_preloader(o,s);return e!==-2&&i.length&&i.hasClass("container-fluid-loading-persistent")?void i.removeClass("container-fluid-loading-persistent"):e===-1?n.hasClass("progressing"):(i.length?(i.remove(),r.removeClass("invisible"),n.removeClass("progressing progressing-preloading"),setTimeout(function(){progress.progress()&&progress.end()},10)):(n.addClass("progressing progressing-preloading").prepend(l),r.addClass("invisible")),void(e&&e!==-2&&setTimeout(function(){a.preloader()},e)))}}},render:{content:{filter:{init:function(e,t){var a=this,n="container-fluid .nav.nav-tabs",r="dataTables_filter",i=$(".__page ."+r),o=$(".__page .panel-filter"),s=".panel-filter .panel.panel-default",l="filter-value",c="btn-filter-top-right",d="btn-accordion-filter",f=$("body");(i.length||o.length)&&setTimeout(function(){function t(t){var a=t.val(),o=$(".__page .panel-filter:visible");if(e)if(a){$.support.transition&&($.support.transition=!1),i.find(".fa-toggle-switch-off:not(.fa-toggle-switch)").trigger("click"),o.find(".panel tr:not([data-empty-row]):not(.hidden-skip)").addClass("hidden-forged");var f=o.find('.panel tbody tr:containsi("'+a+'")');f.removeClass("hidden-forged"),$.each($(s=" .hidden-dependent-skip"),function(e){$(this).hasClass("hidden-forged")?$(this).nextAll(".hidden-skip").addClass("hidden-forged"):$(this).nextAll(".hidden-skip").removeClass("hidden-forged")});var u=$(".__page .panel-filter:visible");$.each(u.find(".panel"),function(){var e=$(this).find("tr").first().find("td").length;rows=$(this).find("tbody").find("tr:not([data-empty-row])"),hidden_rows=$(this).find("tbody tr:not([data-empty-row]):hidden");var t=$(this).find("tbody tr[data-empty-row]");rows.length===hidden_rows.length?t.length?$(this).find("tbody").find("var[data-query-str]").text(a):$(this).find("tbody").append('<tr data-empty-row colspan="'+e+'"><td class="text-center">'+theme_language("theme_xhred_filter_content_no_matches_query").replace("%str","<var data-query-str>"+a+"</var>")+"</td></tr>"):t.remove()})}else i.find(".fa-toggle-switch").trigger("click"),o.find(".panel tr").removeClass("hidden-forged"),o.find(".panel tr[data-empty-row]").remove(),!$.support.transition&&($.support.transition={end:"webkitTransitionEnd"});else{var p="."+r+" input";$("."+n).length?($(".nav-tabs li.active").data(l,a),$(".active "+p).val(a).trigger("input")):$(p).val(a).trigger("input")}var _="."+c+" span, ."+d+" span",g="."+c+" i, ."+d+" i";$.trim(a).length>0?($(_).removeClass("text-lighter"),$(g).addClass("text-danger")):($(_).addClass("text-lighter"),$(g).removeClass("text-danger"))}$("."+c).length||$("."+d).length||($("#headln2r .btn-group a").addClass("pull-left").attr("style",""),$("#headln2r .btn-group").prepend('<a class="btn btn-link text-lighter btn-filter-gl btn-'+(e?"accordion-filter":"filter-top-right")+' text-decoration-none pull-left" data-container="body" data-placement="bottom" data-toggle="tooltip" data-nref><label>&nbsp;&nbsp;<span class="fa fa-times-circle-o vertical-align-middle filter_mirror_clear text-lighter"></span><input type="text" class="dataTable-mirror" placeholder="'+theme_language("theme_xhred_filter_content")+'"></label><i class="fa fa-filter'+(e?"2":"")+'"></i></a>'+(e?'<a class="btn btn-link text-lighter btn-toggle-accordions text-decoration-none pull-left'+(1===o.find(".panel").length?" hidden":"")+'" data-placement="left" data-toggle="tooltip" data-skip data-nref><i class="fa fa-toggle-switch-off fa-1_25x"></i></a>':""))),$(".btn-filter-gl").data("title",theme_language("theme_xhred_datatable_filter")).attr("aria-label",theme_language("theme_xhred_datatable_filter")),$(".btn-toggle-accordions").data("title",theme_language("theme_xhred_toggle_accordions")).attr("aria-label",theme_language("theme_xhred_toggle_accordions")),$(".btn-group").tooltip({selector:'a[data-toggle="tooltip"][data-skip]',container:"body",trigger:"hover",delay:{show:600,hide:30}}),a.clear(),$("."+n).length&&(e&&f.on("hide.bs.tab",'a[data-toggle="tab"]',function(e){a.clear()}),f.on("shown.bs.tab",'a[data-toggle="tab"]',function(e){var t=$(e.target).parent(".active");t.data(l)?$(".dataTable-mirror").val(t.data(l)).trigger("input"):$(".dataTable-mirror").val("").trigger("input"),a.visibility(c,d,"btn-toggle-accordions",n)})),f.undelegate(s,"shown.bs.collapse.config hidden.bs.collapse.config"),f.on("shown.bs.collapse.config hidden.bs.collapse.config",s,function(e){$(".container-fluid .collapsing").length||setTimeout(function(){var e=$(".container-fluid").find(".btn-toggle-accordions").find("i");o.find(".panel-collapse").length===o.find(".panel-collapse.in").length?e.addClass("fa-toggle-switch text-light"):e.removeClass("fa-toggle-switch text-light")},0)});var i=$(".btn-toggle-accordions");if(e)$(o).find('a[data-toggle="collapse"]').on("click",function(e){$.trim($(".dataTable-mirror").val()).length&&page.render.content.filter.clear(),e.originalEvent&&$(".btn-toggle-accordions").find("i").removeClass("fa-toggle-switch text-light")});else{$("."+r).hide()}$(".filter_mirror_clear").mousedown(function(e){$(e.target).is(".filter_mirror_clear")&&a.clear()}),$("."+c+", ."+d).click(function(e){!$(e.target).is("input")&&$(this).find("label").slideToggle(300,function(){$(this).find("input").focus()})}),i.click(function(e){e.stopImmediatePropagation();var t=$(this).find(".fa"),n=$(this).find(".fa-toggle-switch").length?1:0,r=$(".__page .panel-filter:visible");0===n?(r.find(".panel-collapse.in").length,r.find(".panel-collapse").length,r.find(".panel-collapse:not(.in):not(.collapsing)").filter(function(){$(this).removeData("bs.collapse").collapse({parent:!0,toggle:!1}).collapse("show").removeData("bs.collapse")})):r.find(".panel-collapse.in:not(.collapsing)").filter(function(){"true"!==$(this).attr("aria-static")&&$(this).collapse("hide")}),t.toggleClass("fa-toggle-switch text-light"),void 0!==e.originalEvent&&$("."+d+" input").val().length&&a.clear()});var u;$(".dataTable-mirror").keydown(function(e){var t=void 0!==e.originalEvent?200:0;76==e.keyCode&&e.ctrlKey?(e.preventDefault(),e.stopPropagation(),t?setTimeout(function(){a.clear()},t):a.clear()):t&&clearTimeout(u)}).on("input keyup",function(e){var a=$(this),n=void 0!==e.originalEvent?200:0;$(".btn-filter-gl").tooltip("hide"),n?(clearTimeout(u),u=setTimeout(function(){t(a)},n)):t(a)}),$("."+c+" input, ."+d+" input").blur(function(e){$(this).parent("label").slideToggle(0)}),a.visibility(c,d,"btn-toggle-accordions",n)},0)},visibility:function(e,t,a,n){var r=$("."+e+", ."+t+", ."+a);$("."+n).length&&($(".active .dataTables_filter").length||$(".active #conf-_-gr").length)||!$("."+n).length&&($(".dataTables_filter").length||$("#conf-_-gr").length)?r.show():r.hide()},clear:function(){var e=$(".btn-filter-top-right .dataTable-mirror, .btn-accordion-filter .dataTable-mirror"),t=$(".btn-filter-top-right input, .btn-accordion-filter input");e.val("").trigger("input"),t.is(":visible")&&t.trigger("blur"),$(".panel-filter").find("tr[data-empty-row]").remove(),!$.support.transition&&($.support.transition={end:"webkitTransitionEnd"})}}},module_config:function(e){var t=v___page_container.find(".table-title:visible"),a=t.parents(".table:visible"),n=a.parent("div.table-responsive:visible"),r=a.find("tbody > tr > td > table:visible"),i=0,o=1;$.each(r.find("tr"),function(e,t){var a=$(this);a.find(".col_header").length?(i+=1,a.attr("tj",i+":0")):a.attr("tj",i+":1")}).promise().done(function(){var t=$('tr[tj$=":0"]').map(function(){return $.trim($(this).text())});0===t.length&&(t.push(theme_language("theme_xhred_config_configurable_options")),o=0);for(var r=[],i=1;i<t.length+1;i++){var s=o?$('[tj="'+i+':0"]').nextAll('[tj="'+i+':1"]'):a.find('tbody > tr[tj="0:1"]'),l='<table class="table sub_table_container table-hardcoded"><tbody>';l+=s.map(function(){return this.outerHTML}).get().join("\n"),l+="</tbody></table>",r[i-1]=l}var c="conf-_-gr";n.replaceWith(HTML.template.accordion(c,t,r,o?e:[2])),page.render.content.filter.init(1),$(".container-fluid > .panel > .panel-body").on("hide.bs.collapse show.bs.collapse","#"+c,function(){$(".module-help .close-popover-trigger").trigger("click")})})}}},pjax={clear:{modules:function(e){"csf"===v___module&&"function"==typeof __c_____undel&&__c_____undel(e.url),v___module===v___module_file_manager&&"function"==typeof __f_____undel&&"object"==typeof jsPanel&&"string"==typeof $v__fm__container_fluid&&(Test.strContains(e.url,v___module_file_manager+"/config.cgi")||Test.strContains(e.url,v___module_file_manager+"/index.cgi")||Test.strContains(e.url,"save_config.cgi")||__f_____undel()),"mysql"!==v___module&&"postgresql"!==v___module||"function"!=typeof __sql_____undel||__sql_____undel(),"syslog"===v___module&&"number"==typeof refreshTimer&&clearInterval(refreshTimer)}}},progress_percent={body:"body",control:function(e,t,a,n){var r=this;$(r.body).find(".bottom_progresses").length||$(r.body).append('<div class="bottom_progresses"></div>');var i=$(r.body).find(".bottom_progresses");if(!i.find('div[data-progress-id="'+e+'"]').length){if(i.append(HTML.bottom_progress(e,t,n)),n||i.find(".bottom_progress_horizontal").length){i=$(r.body).find(".bottom_progresses");var o=i.find('.bottom_progress:not(".bottom_progress_horizontal")').addClass("no-animation").detach();i.prepend(o)}i.find('div[data-progress-id="'+e+'"]').find(".bottom_progress_cancel").one("click",function(){var e=$(this).parent(),t=e.data("progress-id");e.find(".bottom_progress_level").removeClass("success").addClass("danger"),$(this).remove(),setTimeout(function(){e.remove(),0===i.find("div[data-progress-id]").length&&i.remove()},1e3),window["progress_id_ref_"+t].abort(),n&&window["progress_id_ref_"+t+"_tracker"].abort()})}var s=i.find('div[data-progress-id="'+e+'"]');if(s.find(".bottom_progress_level").css("height",a+"%"),n){var l=s.find(".bottom_progress_overlay"),c=".bottom_progress_";s.find(c+"filename").html('<i class="fa fa-lg fa-fw fa-upload-cloud"></i>'+Convert.htmlEscape(Convert.textTruncate(Convert.htmlDecode(n[0]),24))).attr("title",Convert.htmlEscape(n[0])),l.find(c+"data").text($(Convert.htmlDecode(n[1])).text()),l.find(c+"percent").text(n[2]+"%")}else s.find(".bottom_progress_overlay").text(a+"%");100==a&&(s.find(".bottom_progress_cancel").remove(),setTimeout(function(){s.remove(),0===i.find("div[data-progress-id]").length&&i.remove()},1e3))}},progress={target:"body",element:"top-aprogress",progress:function(){return!settings_hide_top_loader},start:function(){var e=this;setTimeout(function(){e.progress()&&!$(e.target).find("."+e.element).length&&vars.allow_ui_features&&$(e.target).append('<div class="'+e.element+'"></div>')},100)},end:function(){0===v___theme_progress?$(this.target).find("."+this.element).remove():setTimeout(function(){v___theme_progress=0},0)}},session={reauthenticate:{start:function(){var e=this,t=e.target;!$("."+t).length&&$.ajax({type:"GET",url:v___location_prefix+"/index.cgi",data:!1,dataType:"text",success:function(a){var n=Test.strContains(a,v___page_signin_form+" pam_");if(!Test.strContains(a,v___page_signin_banner)){var r=$(a).find('input[name="twofactor"]').length,i=e.lock_targets,o=e.lock_type,s=$("body").find(".-shell-port-"),l='<input type="hidden" name="ajax" value="1">',c=$(a).find("._logo_welcome > img").attr("src");$(i).addClass(o),$("body").append(HTML.template.reauthenticate(t)),plugins.navigation.load.stop(),plugins.navigation.detect(),plugins.navigation.switch.reset(),despinnerfy_buttons(),plugins.shell.unlock(),plugins.shell.close(s),r||$("."+t).find("[data-container-twofactor]").remove(),c&&$("."+t).append("<style>.session-reauthenticate-container-center:before{background-image: url("+c+");}</style>"),$("."+t).find("form").on("submit",function(e){function r(e,a,n,r){if(a){var i="theme_xhred_session_failed"===theme_language(a,1)?theme_language("theme_xhred_session_failed_password"):a;i.endsWith(".")||(i+="."),i=i.replace(/\n/gm,""),u.text(i).addClass("text-danger").removeClass("loading-dots"),c.removeClass("disabled btn-transparent").addClass("btn-success");var o=$(r).find(".alert[data-twofactor]"),s=o.length?$("."+t).find('input[name="twofactor"]'):$("."+t).find('input:not([name="user"]):not([name="twofactor"])');s.addClass("faa-horizontal animated"),s[0].focus(),setTimeout(function(){s.removeClass("faa-horizontal animated")},1e3)}else e&&!n&&(u.text(theme_language("theme_xhred_signing_success")).removeClass("text-danger").removeClass("loading-dots").addClass("text-success"),d.removeClass("fa-lock").addClass("fa-unlock fa-rotate-180 fa-flip-horizontal"),f.text(theme_language("theme_xhred_session_unlocked")),v___available_session=1,setTimeout(function(){session.reauthenticate.end()},1800))}if(e.preventDefault(),e.stopImmediatePropagation(),n){$("."+t).find('form input[name="user"]').attr("name","answer").val(get_server_data("user"))}var i=$(a).find("form").append(l),o=i.attr("action"),s=$("."+t).find("form").serialize(),c=$("."+t).find("[data-submit]"),d=$("."+t+"-header-icon i"),f=$("."+t+"-header-title h3"),u=$("."+t+"-header-title small");c.hasClass("disabled")||(u.text(theme_language("theme_xhred_signing_in")+"").removeClass("text-danger").addClass("loading-dots"),c.addClass("disabled btn-transparent").removeClass("btn-success"),$.ajax({type:"GET",url:o,data:s,dataType:"text",success:function(e){var a=$(e).find(".switch-toggle").text().length,i=$(e).find(".alert span").text(),s=i.length;if(n){var c=$(e).find("form").append(l),d=(c.find('input[name="answer"]').val($("."+t).find('input[type="password"]').val()),c.serialize());$.ajax({type:"GET",url:o,data:d,dataType:"text",success:function(e){a=$(e).find(".switch-toggle").text().length,i=$(e).find(".alert span").text(),s=i.length,r(a,i,s,e)}})}else r(a,i,s,e)}}))})}}})},end:function(){v___available_session=1,$("."+this.target).remove(),$(this.lock_targets).removeClass(this.lock_type)},target:"session-reauthenticate",lock_targets:"aside, aside .navigation, .form-control.sidebar-search, .container-fluid, .right-side-tabs, .right-side-tabs-toggler",lock_type:"pointer-events-none bg-filter-blur2-grayscale75-opacity75 disabled"}},Test={true:function(e){return!/^(false|0)$/i.test(e)&&!!e},false:function(e){return/^(false|0)$/i.test(e)||!e},numeric:function(e){return Number(parseFloat(e))==e},string:function(e){return"string"==typeof e||e instanceof String?1:0},strContains:function(e,t){return"string"==typeof e&&!!~e.indexOf(t)},str_contains_multi:function(e,t){for(var a in t){var n=t[a];if(e.indexOf(n)>-1)return!0}return!1},arrContains:function(e,t,a){return void 0===a&&(a=0),e=$.inArray(t,e),a?e:-1<e?1:0},arrIntersect:function(e,t){var a=[];return $.each(e,function(e,n){t.match(new RegExp(n,"gi"))&&a.push(n)}),!$.isEmptyObject(a)},json:function(e){var t=!0;try{$.parseJSON(e)}catch(e){t=!1}return t},input:{radio:function(e,t){var a=t?":visible":"",n=$("body").find('[name="'+e+'"]:checked'+a);return n.length?n.val():-1}},html:function(e){if($.trim(e).startsWith("{")||$.trim(e).endsWith("}"))return!1;var t=(new DOMParser).parseFromString(e,"text/html");return Array.from(t.body.childNodes).some(function(e){return 1===e.nodeType})},scrolledIntoView:function(e){var t=$(e),a=$(window),n=a.scrollTop(),r=n+a.height(),i=t.offset().top;return i+t.height()<=r&&i>=n},occurrences:function(e,t,a){if(e+="",t+="",t.length<=0)return e.length+1;for(var n=0,r=0,i=a?1:t.length;;){if(!((r=e.indexOf(t,r))>=0))break;++n,r+=i}return n},editing:function(){return $("input:focus").length||$("textarea:focus").length||$('[contenteditable="true"]:focus').length}},theme={download:function(e,t,a,n){if(n=void 0===n||1==n||n===!0?String():'target="_blank"',e&&t){t="string"==typeof t?t:$.param(t);var r="";$.each(t.split("&"),function(){var e=this.split("=");r+='<input type="hidden" name="'+e[0]+'" value="'+e[1]+'" />'}),$("<form "+n+' data-download="true" action="'+e+'" method="'+(a||"post")+'">'+r+"</form>").appendTo("body").submit().remove()}},veiled:function(e){var t=$(".container-fluid, .jsPanel").add($("aside")).add($("#right-side-tabs")).add($(".right-side-tabs-toggler")),a="pointer-events-none bg-filter-blur-grayscale-opacity50";if(e===-1)return t.hasClass(a);e?t.addClass(a):t.removeClass(a)},update:function(e,t){var a=1===e?"-release":"-beta";theme.veiled(1),set_onbeforeunload_status(1,0),plugins.messenger.post('<i class="fa fa-lg fa-fw fa-git-pull"></i>'+theme_language("theme_xhred_git_patch_initiated")+" "+theme_language("theme_xhred_global_please_wait")+'&nbsp;&nbsp;&nbsp;<span class="cspinner"><span class="cspinner-icon white smallest margined-top-4"></span></span>',1800,"info","themeUpgrade",0),$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-update=1&xhr-update-type="+a+"&xhr-update-force="+t,data:!1,dataType:"json",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);e[0]&&e[0].success?(plugins.messenger.post('<i class="fa fa-lg fa-fw fa-git-pull"></i>'+e[0].success,4,"success","themeUpgrade"),plugins.slider.notifications.dismiss("authentic_remote_version"),
set_server_theme_temp_data("goto",v___location_prefix+"/sysinfo.cgi"),setTimeout(function(){theme_reload()},2e3)):e[0]&&e[0].no_connection?(plugins.messenger.post('<i class="fa fa-lg fa-fw fa-unplugged"></i>'+e[0].no_connection,40,"warning","themeUpgrade"),theme.veiled(0)):e[0]&&e[0].no_git?(plugins.messenger.post('<i class="fa fa-lg fa-fw fa-git-pull"></i>'+e[0].no_git,20,"warning","themeUpgrade"),theme.veiled(0)):e[0]&&e[0].incompatible?(plugins.messenger.post('<i class="fa fa-lg fa-fw fa-exclamation-triangle"></i>'+e[0].incompatible,120,"error","themeUpgrade"),theme.veiled(0)):(plugins.messenger.post('<i class="fa fa-lg fa-fw fa-git-pull"></i>'+theme_language("theme_xhred_git_patch_update"),20,"error","themeUpgrade"),theme.veiled(0))},error:function(e){plugins.messenger.post('<i class="fa fa-lg fa-fw fa-git-pull"></i>'+theme_language("theme_xhred_git_patch_update"),20,"error","themeUpgrade"),theme.veiled(0)},complete:function(e){set_onbeforeunload_status(0,0)}})},version:function(){return v___theme_version},visibility:function(e){0===v___theme_visibility_check&&(v___theme_visibility_check=1,0===e||"object"==typeof stats&&stats.general.enable(),setTimeout(function(){v___theme_visibility_check=0,vars.events.keypressed.shift=!1,vars.events.keypressed.alt=!1},0))}},quirks={active_element:function(){return document.activeElement&&$(document.activeElement).is("body")?v___page_activeElement:document.activeElement},local_storage:{safari:function(){if("object"==typeof localStorage)try{localStorage.setItem("d41d8cd98f00",1),localStorage.removeItem("d41d8cd98f00")}catch(e){Storage.prototype._setItem=Storage.prototype.setItem,Storage.prototype.setItem=function(){},vars.local_storage=0}}},render:{apple:function(){browser.detect.safari(1)&&$("html").css("overflow","auto");var e=$(".__page");browser.detect.safari()&&e.addClass("browser_safari"),navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&e.attr("style","-webkit-overflow-scrolling: touch !important; overflow-y: scroll !important;")}}},regex={matches:function(e,t,a,n){a||(a=1);for(var r,i=[];r=t.exec(e);)i.push(r[a]);return n&&(i=i.slice(-1)[0]),i}},XHR={headers:function(e){return[e.getAllResponseHeaders(),e.getResponseHeader("content-type"),e.getResponseHeader("content-disposition"),e.getResponseHeader("content-length")]}};const plugins={};plugins.shell=function(){var e=function(){return $("body").find(".-shell-port-").hasClass("opened")},t=function(){return $t_uri_cloudmin&&$('a[target="page"][href*="/server-manager/save_serv.cgi"][href*="shell=1"]').length},a=function(){return t()?v___location_prefix+"/server-manager/shell.cgi":core.moduleAvailable("shell")?v___location_prefix+"/shell/index.cgi":0},n=function(){h()?0!=settings_show_terminal_link&&$(".user-link.ported-console").removeClass("hidden"):$(".user-link.ported-console").addClass("hidden")},s=function(){vars.shell.processing=0,$('.-shell-port- input[data-command="true"]').removeAttr("readonly")},r=function(e,t,a,i){return'<form class="hidden" role="form" action="'+e+'" method="post" enctype="multipart/form-data">'+(t?'<input type="hidden" id="id" name="id" value="'+$('select[name="sid"]').val()+'">':"")+(null===a?'<input type="hidden" id="clearcmds" name="clearcmds" value="clearcmds">':a===!1?"":'<input type="hidden" id="cmd" name="cmd" value="'+a.replace(/"/g,"&quot;")+'">')+'<input type="hidden" id="pwd" name="pwd" value="'+i+'"></form>'},o=function(e){var a=t(),i=$('select[name="sid"]').val();e||(e=""),i||(i=0),$.ajax({type:"POST",url:v___location_prefix+"/index.cgi/?xhr-shell-insert=1&xhr-shell-inserted="+e+"&xhr-shell-cms="+a+"&xhr-shell-cmsid="+i,dataType:"text",complete:function(e){if(e=e.responseText,Test.strContains(e,v___page_signin_form))return void(v___available_session=0);var t=JSON.parse(e);localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify(t))}})},l=function(e,t,a){$(e).next("pre").remove(),g(),_(t),a.scrollTop(a[0].scrollHeight),setTimeout(function(){vars.shell.processing=0,vars.shell.history=0,t.removeAttr("readonly").focus()},100)},_=function(e){e.val(""),e.focus()},d=function(e){var t=$("body").find(".-shell-port-"),a=a=void 0!==e&&(e.startsWith("!")?e.substr(1):e),i=t.find("input"),n=(t.find(".-shell-port-pwd").attr("data-pwd"),t.find("[data-shell-host]")),s=n.attr("data-shell-host");if($t_uri_cloudmin){var r=$('aside [name="sid"] option:selected');current_host_name=r.attr("title")||r.text(),n.text(current_host_name)}else n.text(s);if(o(!1),a){i.val(a);var l=$.Event("keydown");l.which=13,i.trigger(l)}t.css("bottom","0vh").addClass("opened"),u(),g(),setTimeout(function(){a||(focus(),i.focus())},20)},c=function(){$("body").find(".-shell-port-").css("bottom","100vh").removeClass("opened"),v___module==v___module_file_manager&&"function"==typeof __f__state__changed&&__f__state__changed(),$(".command-shell-editor-spinner").remove(),u(!0)},p=function(e){var t=$(".-shell-port-container .-shell-port-cmd");e?t.addClass("invisible"):t.removeClass("invisible")},g=function(){if(1==core.moduleAvailable("shell")){var e=parseInt($("body").find(".-shell-port-cmd").width()),t=parseInt($("body").find(".-shell-port-prompt").width());$("body").find('.-shell-port- input[data-command="true"]').css("width",e-t-50+"px")}},h=function(){var e=t();return 1==core.moduleAvailable("shell")||e?1:0},f=function(e){var t=$("body").find(".-shell-port-"),a=t.find(".-shell-port-pwd"),i=a.attr("data-home");if("string"==typeof e){e=Convert.uriDecodeComponent(e);var n=e&&e.endsWith("/")?e.slice(0,-1):e,s=n.split("/").pop();s||(s="/",e="/"),2==get_access_level()&&(e=get_server_data("user-home")+e),e===i&&(s="~"),e=Convert.htmlEscape(e),a.attr("data-pwd",e).attr("title",e).text(s)}},u=function(n){var s=$(document.body).find(".-shell-port-"),f=s.find('input[data-command="true"]'),u=s.find("div[data-output]"),v=s.find(".-shell-port-container"),b=s.data("autocomplete"),x=$(window),y=".plugin-shell";if(n)return x.off("keydown"+y),x.off("keyup"+y),void v.off("click"+y);x.on("keydown"+y,function(t){var a=this,i=e(),n=$(".modal-shell-config:visible").length,r=String.fromCharCode(t.which).toLowerCase();if(t[settings_hotkey_toggle_modifier]&&r==settings_hotkey_shell&&theme_shortcuts_modifier_unique(t))return t.preventDefault(),void(i&&c());if((t.altKey||t.ctrlKey)&&"l"==String.fromCharCode(t.which).toLowerCase()&&t.preventDefault(),void 0===a.shell_request_interrupted&&(a.shell_request_interrupted=0),void 0===this.last_pressed_times?this.last_pressed_times=0:this.last_pressed_times+=1,setTimeout(function(){a.last_pressed_times=0},vars.event.double_click_delay),"c"===r&&a.last_pressed_times>1&&t.ctrlKey&&!t.shiftKey&&!t.altKey&&!t.metaKey)return a.shell_request_interrupted=1,"object"==typeof a.shell_request&&"pending"===a.shell_request.state()&&a.shell_request.abort(),void setTimeout(function(){a.shell_request_interrupted=0},1e3);if(this.searching||"r"===r&&t.ctrlKey&&!t.shiftKey&&!t.altKey&&!t.metaKey){if(t.preventDefault(),"object"==typeof a.shell_request&&"pending"===a.shell_request.state())return;var o=$(".-shell-port-type"),l=$('.-shell-port- input[data-command="true"]');if(v.scrollTop(v[0].scrollHeight),this.searching=1,run_search=function(e){var t=JSON.parse(localStorage.getItem(v___server_hostname+"-shell_commands")),a=t.filter(function(t){return t.includes(e)});return $.unique(a).reverse()},update_search=function(e,i){if(this.used_index&&!i||(this.used_index=0),t.ctrlKey){if("c"===r)return void cancel_search(1);if("r"!==r)return}JSON.stringify(e)!=JSON.stringify(this.results)||i?this.results=e:t.shiftKey?--this.used_index:++this.used_index,e.length<=this.used_index&&(this.used_index=0),this.used_index<0&&(this.used_index=e.length-this.used_index-2);var n=this.searching_shell_str_replaced.find("span[data-searching]"),s=n.text(),o=localStorage.getItem(v___server_hostname+"-shell_command_last");if(!a.pre_searched&&o&&("undefined"===o&&(o=String()),a.pre_searched=o),!s&&a.pre_searched){n.text(a.pre_searched);var _=run_search(a.pre_searched);return void update_search(_,0)}if(!s||!e.length)return void failed_search();success_search(),e&&l.val(Convert.htmlUnEscape(e[this.used_index])),g()},failed_search=function(){var e=a.searching_shell_str_replaced.html();e.includes("failed reverse")||a.searching_shell_str_replaced.html(e.replace("reverse-i-search","failed reverse-i-search")),g(),new Audio("data:audio/ogg; codecs=opus;base64,T2dnUwACAAAAAAAAAAArS957AAAAAAff6O0BHgF2b3JiaXMAAAAAAkSsAAAAAAAAAO4CAAAAAAC4AU9nZ1MAAAAAAAAAAAAAK0veewEAAABiry0KEC3//////////////////3EDdm9yYmlzHQAAAFhpcGguT3JnIGxpYlZvcmJpcyBJIDIwMDcwNjIyAAAAAAEFdm9yYmlzK0JDVgEACAAAADFMIMWA0JBVAAAQAABgJCkOk2ZJKaWUoSh5mJRISSmllMUwiZiUicUYY4wxxhhjjDHGGGOMIDRkFQAABACAKAmOo+ZJas45ZxgnjnKgOWlOOKcgB4pR4DkJwvUmY26mtKZrbs4pJQgNWQUAAAIAQEghhRRSSCGFFGKIIYYYYoghhxxyyCGnnHIKKqigggoyyCCDTDLppJNOOumoo4466ii00EILLbTSSkwx1VZjrr0GXXxzzjnnnHPOOeecc84JQkNWAQAgAAAEQgYZZBBCCCGFFFKIKaaYcgoyyIDQkFUAACAAgAAAAABHkRRJsRTLsRzN0SRP8ixREzXRM0VTVE1VVVVVdV1XdmXXdnXXdn1ZmIVbuH1ZuIVb2IVd94VhGIZhGIZhGIZh+H3f933f930gNGQVACABAKAjOZbjKaIiGqLiOaIDhIasAgBkAAAEACAJkiIpkqNJpmZqrmmbtmirtm3LsizLsgyEhqwCAAABAAQAAAAAAKBpmqZpmqZpmqZpmqZpmqZpmqZpmmZZlmVZlmVZlmVZlmVZlmVZlmVZlmVZlmVZlmVZlmVZlmVZlmVZQGjIKgBAAgBAx3Ecx3EkRVIkx3IsBwgNWQUAyAAACABAUizFcjRHczTHczzHczxHdETJlEzN9EwPCA1ZBQAAAgAIAAAAAABAMRzFcRzJ0SRPUi3TcjVXcz3Xc03XdV1XVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVYHQkFUAAAQAACGdZpZqgAgzkGEgNGQVAIAAAAAYoQhDDAgNWQUAAAQAAIih5CCa0JrzzTkOmuWgqRSb08GJVJsnuamYm3POOeecbM4Z45xzzinKmcWgmdCac85JDJqloJnQmnPOeRKbB62p0ppzzhnnnA7GGWGcc85p0poHqdlYm3POWdCa5qi5FJtzzomUmye1uVSbc84555xzzjnnnHPOqV6czsE54Zxzzonam2u5CV2cc875ZJzuzQnhnHPOOeecc84555xzzglCQ1YBAEAAAARh2BjGnYIgfY4GYhQhpiGTHnSPDpOgMcgppB6NjkZKqYNQUhknpXSC0JBVAAAgAACEEFJIIYUUUkghhRRSSCGGGGKIIaeccgoqqKSSiirKKLPMMssss8wyy6zDzjrrsMMQQwwxtNJKLDXVVmONteaec645SGultdZaK6WUUkoppSA0ZBUAAAIAQCBkkEEGGYUUUkghhphyyimnoIIKCA1ZBQAAAgAIAAAA8CTPER3RER3RER3RER3RER3P8RxREiVREiXRMi1TMz1VVFVXdm1Zl3Xbt4Vd2HXf133f141fF4ZlWZZlWZZlWZZlWZZlWZZlCUJDVgEAIAAAAEIIIYQUUkghhZRijDHHnINOQgmB0JBVAAAgAIAAAAAAR3EUx5EcyZEkS7IkTdIszfI0T/M00RNFUTRNUxVd0RV10xZlUzZd0zVl01Vl1XZl2bZlW7d9WbZ93/d93/d93/d93/d939d1IDRkFQAgAQCgIzmSIimSIjmO40iSBISGrAIAZAAABACgKI7iOI4jSZIkWZImeZZniZqpmZ7pqaIKhIasAgAAAQAEAAAAAACgaIqnmIqniIrniI4oiZZpiZqquaJsyq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7rukBoyCoAQAIAQEdyJEdyJEVSJEVyJAcIDVkFAMgAAAgAwDEcQ1Ikx7IsTfM0T/M00RM90TM9VXRFFwgNWQUAAAIACAAAAAAAwJAMS7EczdEkUVIt1VI11VItVVQ9VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV1TRN0zSB0JCVAAAZAAACKcWahFCSQU5K7EVpxiAHrQblKYQYk9iL6ZhCyFFQKmQMGeRAydQxhhDzYmOnFELMi/Glc4xBL8a4UkIowQhCQ1YEAFEAAAZJIkkkSfI0okj0JM0jijwRgCR6PI/nSZ7I83geAEkUeR7Pk0SR5/E8AQAAAQ4AAAEWQqEhKwKAOAEAiyR5HknyPJLkeTRNFCGKkqaJIs8zTZ5mikxTVaGqkqaJIs8zTZonmkxTVaGqniiqKlV1XarpumTbtmHLniiqKlV1XabqumzZtiHbAAAAJE9TTZpmmjTNNImiakJVJc0zVZpmmjTNNImiqUJVPVN0XabpukzTdbmuLEOWPdF0XaapukzTdbmuLEOWAQAASJ6nqjTNNGmaaRJFU4VqSp6nqjTNNGmaaRJFVYWpeqbpukzTdZmm63JlWYYte6bpukzTdZmm65JdWYYsAwAA0EzTlomi7BJF12WargvX1UxTtomiKxNF12WargvXFVXVlqmmLVNVWea6sgxZFlVVtpmqbFNVWea6sgxZBgAAAAAAAAAAgKiqtk1VZZlqyjLXlWXIsqiqtk1VZZmpyjLXtWXIsgAAgAEHAIAAE8pAoSErAYAoAACH4liWpokix7EsTRNNjmNZmmaKJEnTPM80oVmeZ5rQNFFUVWiaKKoqAAACAAAKHAAAAmzQlFgcoNCQlQBASACAw3EsS9M8z/NEUTRNk+NYlueJoiiapmmqKsexLM8TRVE0TdNUVZalaZ4niqJomqqqqtA0zxNFUTRNVVVVaJoomqZpqqqqui40TRRN0zRVVVVdF5rmeaJomqrquq4LPE8UTVNVXdd1AQAAAAAAAAAAAAAAAAAAAAAEAAAcOAAABBhBJxlVFmGjCRcegEJDVgQAUQAAgDGIMcWYUQpCKSU0SkEJJZQKQmmppJRJSK211jIpqbXWWiWltJZay6Ck1lprmYTWWmutAACwAwcAsAMLodCQlQBAHgAAgoxSjDnnHDVGKcacc44aoxRjzjlHlVLKOecgpJQqxZxzDlJKGXPOOecopYw555xzlFLnnHPOOUqplM455xylVErnnHOOUiolY845JwAAqMABACDARpHNCUaCCg1ZCQCkAgAYHMeyPM/zTNE0LUnSNFEURdNUVUuSNE0UTVE1VZVlaZoomqaqui5N0zRRNE1VdV2q6nmmqaqu67pUV/RMU1VdV5YBAAAAAAAAAAAAAQDgCQ4AQAU2rI5wUjQWWGjISgAgAwAAMQYhZAxCyBiEFEIIKaUQEgAAMOAAABBgQhkoNGQlAJAKAAAYo5RzzklJpUKIMecglNJShRBjzkEopaWoMcYglJJSa1FjjEEoJaXWomshlJJSSq1F10IoJaXWWotSqlRKaq3FGKVUqZTWWosxSqlzSq3FGGOUUveUWoux1iildDLGGGOtzTnnZIwxxloLAEBocAAAO7BhdYSTorHAQkNWAgB5AAAIQkoxxhhjECGlGGPMMYeQUowxxhhUijHGHGMOQsgYY4wxByFkjDHnnIMQMsYYY85BCJ1zjjHnIITQOceYcxBC55xjzDkIoXOMMeacAACgAgcAgAAbRTYnGAkqNGQlABAOAAAYw5hzjDkGnYQKIecgdA5CKqlUCDkHoXMQSkmpeA46KSGUUkoqxXMQSgmhlJRaKy6GUkoopaTUUpExhFJKKSWl1ooxpoSQUkqptVaMMaGEVFJKKbZijI2lpNRaa60VY2wsJZXWWmutGGOMaym1FmOsxRhjXEuppRhrLMYY43tqLcZYYzHGGJ9baimmXAsAMHlwAIBKsHGGlaSzwtHgQkNWAgC5AQAIQkoxxphjzjnnnHPOSaUYc8455yCEEEIIIZRKMeacc85BByGEEEIoGXPOOQchhBBCCCGEUFLqmHMOQgghhBBCCCGl1DnnIIQQQgghhBBCSqlzzkEIIYQQQgghhJRSCCGEEEIIIYQQQggppZRCCCGEEEIIIZQSUkophRBCCCWEEkoIJaSUUgohhBBCKaWEUkJJKaUUQgillFBKKaGUkFJKKaUQQiillFBKKSWllFJKJZRSSikllFBKSimllEoooZRQSimllJRSSimVUkopJZRSSgkppZRSSqmUUkoppZRSUkoppZRSKaWUUkoppaSUUkoppVJKKaWUEkpJKaWUUkqllFBKKaWUUlJKKaWUSgqllFJKKaUAAKADBwCAACMqLcROM648AkcUMkxAhYasBABSAQAAQiillFJKKTWMUUoppZRSihyklFJKKaWUUkoppZRSSimVUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKAcDdFw6APhM2rI5wUjQWWGjISgAgFQAAMIYxxphyzjmllHPOOQadlEgp5yB0TkopPYQQQgidhJR6ByGEEEIpKfUYQyghlJRS67GGTjoIpbTUaw8hhJRaaqn3HjKoKKWSUu89tVBSainG3ntLJbPSWmu9595LKinG2nrvObeSUkwtFgBgEuEAgLhgw+oIJ0VjgYWGrAIAYgAACEMMQkgppZRSSinGGGOMMcYYY4wxxhhjjDHGGGOMMQEAgAkOAAABVrArs7Rqo7ipk7zog8AndMRmZMilVMzkRNAjNdRiJdihFdzgBWChISsBADIAAMRRrDXGXitiGISSaiwNQYxBibllxijlJObWKaWUk1hTyJRSzFmKJXRMKUYpphJCxpSkGGOMKXTSWs49t1RKCwAAgCAAwECEzAQCBVBgIAMADhASpACAwgJDx3AREJBLyCgwKBwTzkmnDQBAECIzRCJiMUhMqAaKiukAYHGBIR8AMjQ20i4uoMsAF3Rx14EQghCEIBYHUEACDk644Yk3POEGJ+gUlToQAAAAAAAIAHgAAEg2gIhoZuY4Ojw+QEJERkhKTE5QUlQEAAAAAAAQAD4AAJIVICKamTmODo8PkBCREZISkxOUFJUAAEAAAQAAAAAQQAACAgIAAAAAAAEAAAACAk9nZ1MAAEAUAAAAAAAAK0veewIAAABnj+O9HJeVV1dTVZqZlJWTVZOLl//3WFxXYJeV//8Y/+Tc/UxIYKVFdYLOWPcLKpEsrrEHETnXiqysLLNdS6y95/ef+7Vi79Z9zVZ919e44pxH0T+fHGONcSbr+Qza425fEvs1zysffUT9+zQaHgrT7V/01BzsuyrXpCXz0qMP4mSLYZ2iYZT7dVnREnYkX1fr+76Ya2rOIWxZqt/+8fu7dPBeNIMvH50Ln/UwOVyC7df/vwOSxAYAnB1ByNXUFeZiWLQlkZiQm/UrEE59c0TW7pJx5T1in2f5ufWtNeqfPh5UhKJ5rdkW3euzR5Bnxl6ZzVEj9x8jle81vvdbX+QF7AwF9aGXl0vbqWO385cr/4ltd2sspXI3JZbe9d13usNKvuGcrs55V9wupuJlY2SjF3pHn3vGm7VOUVPVZ8767T912a/rarz46AM0sASMAUWc62z2vGvAFJAwodfkUjqDTLGzVPSOi9SKWYilemD7LM7PZDfiZ1+7Wd9jc3HC0/tMv7uMv+Oc0Otg3fEj4k2cmQf4d5xhlz5+lH9zf9pbh576EAJ09fQ8F1hhUuCwmTShJhOPShKBifF//C2oGLikd4xiSI4XPjMvcC/fz6+Y/NSLZJ949nOVksu7IHcbrNCJ7jqvFvahjonXr/Z5SS6ZyX96/29uk57eKQOU8TwkAAINXFDOfChOgCQRgSE25x89VUuxy5tRsMqCWWx3Cft8rdllSMbllX0bvbfFfosLI3sPree1B0v9TTQ7+jL2841/MKsdSr507La/nkbdBYzxfDJhDtLNyW4bkMIJJCCnyDDlv/RQX4SoeaMobphUZvcB8vmn/K3t5z2X7sj+XX1JmOxl07wOHVdzgCU7/dclLZ806G8sziRsKGVPB9v+1wbZmgGc/TBJJAABVw8riiaxOplhpajhMd+fXbRlhCYzzmLvec4vr6tsmj35n+/XQzM352aNu+e0RpP7tawxRql5rht79+81u/Jz/vuUY01kENkbGLKS5UTaS6Va3/++pPF1Xr9O0bz3GvvHouGXQ5J7zb2GKsn9v9VK4nl64fFb0yekKdnWf8P31ynuiHxEwzj+eyudorVr7ed53cwB1A09yjNcLxdb7GCfM+pYEFodXu7nmv79yoNZu7rU36bw6+1r5r37+9mw9dentyvZd5i+WLfGXe/fx7WbEbTu+bNikUDTOz9t12eXvXHf3S0Xr56ufnpbeuS7LSqIHUseattE6vKT8vcDl399cvnIjOLhZVX8/P795f31Ydb/J3H8e3HM7Z9u9TZq58odu57+hutTjjvoDZcwBEa9MNiNz/7Ix0ic6kNwyIbxR20/4uzp+JHIcej6xV4Zo82535pzx/65rWuPZmp2j8yj0ryPj0hXwFUf7Oaz8vPKeS+/OGuFJMOpeO6rx59Vqw4/lVTbffsixD6Gq7eXQ/9X177EP51Hm2rPIlr3q9Ztc7XS3v9sDrHm5/y1lv4Me6165m8OO9NwP87y/acOWh0LABRaRZtYF/+L4LqLWeASZv8aDUXgrdeoqGxf7Vno0uhKTrPz9j7HfK/Rc32P++ftHOO2Wr5iTPb/qNyYvXJk7Ht8nn7jrVlkWK/arnPYU6Lw8PXlE5GdX/MeNaf/C7spMYwCI3LH0KN+tyzb/ancv1y/ePfoOTkXF4g1Z1dM/58v7/0OXeG3l+819X0kMCo+t//wh0kAtGH1IxciZPnRX18fVrpcoMc+jYeed+43PgCN5kLMzu9nxvpJM2dhFiOLa/ZsHk1sWJHd0ytwHSWpl52utUZc3z12TquTYTTviwy6tvIrpesF9lQpoj4Mt5D16Y9/92pXBjZ0ee92bmE7m5du1YT+1oa76ndJvEL6vFN1IbLTCv6+X9/JiivLYm7vHrftvL5+PgEA/EX1IZeObBdctRf12FzJau7WCJVw0kTZprqtCDKop3ifxDvfiaVfd5377OHy3v0Us1Xe/NvK4uf/jzjn0hjvvmoeKtnUjLdPQvCyiDNm8fvLrbUmAARScQ7CfBpJDZp7VbEnzO86Mojtrl5X3zU9Qugxe91zvP1KiJVfZ3+4Z2M4V2aP5hxTWJlxW5+59qYrtB923ztvflqf2YHcepBwsXLILn65YTJ0C+o/yav4U49aXvSnD/c1RI/AF0/dvx7auZM39VHYvumRHtxFN/vf36FKN8V36azKWplP9G3dxdXsSCETskQDAORBCZ0rznlH2jn6poDkikd7BYS72r9VFu2OaDLXyD/dfc/NRuuKa7vrZUSNbFU7W3GO+PWXzZ7H5hGZJLBeLfnHPbzAzFrXoN5Zq0y8QOEdlO1f9O51qhOBuPu+R2rlVnTvoH9IvyKOZnsuvkf87oHOtZ06/69D8W2sfnzveExRd36D3e3McN0JKQC0SXUmMSN87QvKw0LDr6uiPFezdj11Es/zLrHGdGIh1vdntezxaOw+Vv99jH3/bKuv1Tr4QDxlaSYR1RZ7/m69ptWIVr9HjiDDoPnSzh6NX9J5t1CmZ1x/CKvTNa5hCh8Wt3m+iR7ulbabrz8lOa9txqPm1L2dXPwvVOLJd/r2Wnqn1tU3/ex66lu3/s/L9znGc9teLgAAcufkZfE73M4sm1rDr3r+1pqBbl7/dYjrNtas5Dilf+638lzfX93+/D++TR+1zYv9cP7wNXu01LO3Yk+vV1/kmO157N4A3DzFdRcrJfPaAADAj3KvHMeMrLq8OO/Cm4Vm8u+7rXmlh8Sh97fy44euqzcHY/m4mH1tO3/81OsZudgez3e4PWWaQ1tb0wQRpy+6h1NXOTXbrXDtT1leSxuzbyXoul7f15/9fb1752X7xlNtwlw6x8fj8Ls84rfn1sWci5vhsfl+t/PtoXtdOgk3Om+XwMpd3lP7zs2691IP8JBRjNHwPMX8aJPVGd97Z8+RzO7/+9NAhqjpHMUzjtZO8h3O+K1ecoplrYpWl/V83WH2Pjvu2O5uubrOjZvOca73h6q4zq/z6yuNzXzynM7Xw/5Q3cbV/u+ZQh18pohPyJJyW+/uwGAurL0ssIuszAjUH+IoRiksphmNYqkrMorVvZd60ZTVEpbaRm51aS2ap37ueWd6UVs8hPU/ZTJZayFMPRrqlxKsBCABqrV9DFWbsTOFKDA3J6+Hslbecp/eng26l/cby43G4qRpIJdJZzDd7wwY3IEk+od/a/1hdbszvan+cn8JwGvomufx7p7NJUNXTlzp3zQXXaqWOhQfdCnB23pzyWgmZ7hMfN6AcQb2MwavchM4AHQ1r50Se44/Hsa8avmatYGCiLYqyFHgt/zd94qtLNUoghdG8aftHPetsqKvrQOmUwt8mZzyoO9xoplpbgyrXzjvh2fO27KjkptUmXkp78XeDfnYzcPEzwCEHV9/enrUVLhcSdgx5WuePT1FuCNeafR41ldr3hdCCbwpxVIJkZv2rvtSKp61qSkn8WK99H0Xw9T5xf6dMaul7VsaYlNJ6ZoT5pZnJ3b029bX8UpP0vu5x79fAZQpX/9k270+CFwYm4A/fvHs2YkMgTLgrfZWzL4geEMG9UahK891+aRnUhIWqpuO6ys+8OV+7G9LjH3Ztrv4TSa1SoyTTpqaCeM3sSX+dM+wRVZsm6dHAqQxf/DysHM45sDJFa8L+qMfHuOKSwTwX/FeI90L9MSHqEkKsy5ylhvYlPlnZquC3V3/OpfO+/m/Ph8l8Zwy/hZZbpv7fS4f2o3147IRS0lSfvE+L0EeTYx8L2ciPvS8AZxRX//xhnx66HvCjKu+9nuk3FzYDvl+9e67/iZWq2K1ucYaaz2v+xjn+VuuVTdltEkpf8fQmOK0V1ypeCWrGlPh1fdcP/xzv/x083bdX7mmxV9KE1Uvq2LnU1+MW/+f3a3972857cnp+eyNTlrsduzq5ylZP7ef/vfmT/t6esfNLO6R6euW/p7eof2zT49tc+mXbl3hvQKkUV/7Dnv7cfDVrTbpq98GeflYEd915pMZ50crWMG9NmmHte+N2PEJMZ5tK1Grc3qufNJzNdNee/Yb8VVQZIOxdS3YzncMMXJ/GRTSf+/96gzTIvfLxu/Z1Q9Vz6U3eql47z8t32Qmg7S/nUYcrL08VMzWEuldnpx35OvoOUfHt/7Y2vatI1unvs6tU6ddJXzL3N7dCzpG3Mz1S8ABUDf97feQvc3D8FbD55dw08SH0K/bzSMFiBjeauj81yFyXU/1tdeOGPb++u2yp3ld+sAbuaL11OxgaQLmrt6AuvQCMHquK0mxhR2bRJIAzu/tCPlZ4V4xjQ5WF88td97erBgaq0GP+2gpiDdm41R7c9X5FtrZ0q+Wfao9CcY4f+tQbLu6k9IkiWUwSa9Vxav8Px+HbVOnzPXxS1dHxscP5uX2YXO5XvamuzVPd3KvrllzXYnD9aN260vlcibOvy1mujgzjand6qpaRiLrS6WLSq/lxW8T/cNCAmBh6T/DkUHMOe85evrYKWz3z9WsX79c4ppaPvVEFnvt+5CdkcXIZFpk/fq6f08TpqyDHMz9q0xXl3Vc53o0PvnpnIsuKbT3i6y2yh81v533U78uG6ZPTEbGZpT9IQnjeK3XyopF/eJf2nAuFvd9FRZtO9+UxVQCK+z+nCD3CePyW+IM35aGnn+0W/yWuFynSXuo8XtssfSC+l/1PzNd2kzCfgZWMVk/LD1e8euHe4jclkz+bEFpERv78XepH3Cbit8XMdm07dP8T2QczzsHLpJ+Kz5tzLmTb9Eqhizfx+VzAB6eOxbm+mt2+r3Ihb2/Ii+kyi34F5zNp2v+MDgqdoGxnxFfgew1c/bvT++jTVt9Ul757I/Ur/L1Gc3z1u8CfDZVwrUyMjK/XKB4Q21PlyYttwIJAH4V3Eh5qV440zVkyXLGuwoOK3dhH/hDL+uUDbf/ydnuo7eMW675bJxuP59ZebtEmgYvMM5fN3MkVNfUG4DnbQDOOaMmxHZyEQAAGNWWw9TaU9go20s5zr3/B4I4bQctWRG951dK5aNP8LU0z8bIgB09k6p5JBPUjqDY1KwxVp4+LYCHazhrfHjfx1kV54nPzvWKs9SmRcjqsMZbhPouSphMdumV42pkYb/vt5isZ7qoFFaPUk8vSmB68axdvNNVHo4cuF+brNdtbxk2F7dG6aUnsm3UdvlcJmuD825wKvVMfd7Xy+eSc3+pv5/7c4vKy33u0+/fNGHBdJx9tl0sPu8T+79/DkEum0XWJ0eMvryPxfnfDSiWYXQ/L9DE+fkmuoai7InztpFbl5ds813gv9cfZ35x9s9k++zfJe39h+8yQHnQnNn9QHx2htsxffyx4DUyIzW/CeXUpZx/+kE5FXTJwv39Ur2Nxbtl1HLGGxoiietr7YICeHNWvstOd03plLV6tGQXP7Ct+lX21wvsWuapzvnc99/unoY4kQD5/+2egDAN0AOw83322WeigBAjZUUNi3yffd5nMnqGh1/cCvW/zYsF9nlH8N9zn+gBpk1z8r68KGO8e9YMvTvJijVTFzwBAE9nZ1MABAcYAAAAAAAAK0veewMAAAD63TjdAv/mPjWE51OfDSVdk9Eu11E1xM/X++JzOgLu0t2GOOH1n1Ws15//P+eIvXbQx7tjr+el59oLl11Wgw2g4nryAWpMvErF6MYxEgAAAEwJPe9Xlt/pk++eZK/lHE9KfcTQ6+D852DtPkt3soWb7tNULn++n+/rOr38+vT5burg9vnpWHko+qXJvaGl+9vP93o7FLq5ua6Rw/j9PtDT+7w/77Pvz31xvP6Sy5d3J5yrcSkf0LVnPSvpkkuZpHTZwWTtI/nhR95ZHU1YL+UqYkfz8Zvvz6VUl+ulY8GcfSaul+vlPLXrvHz7t2n66YGpX24Xx50YKRUtDrd/70H9f49u1ktNvfQ+0xlnlPu359vTPX0iAyC13P+/f2etbH3lS5uk/92ltLqWdVkj4/patxUt4/j4XOAfSxhbsS8e/b/jm/zha1MBM8nfAr8vym/++MeV5himtKKsn853EtfX16WAXl97b76q5Mgun32iLMqAaaQvvrIAnpHmkqVjWCz0tg7H1F9e7tzNNBkZ9u37PaZf7OVnnsmKI/AuP7odx7ulcTweA84yr8uzDz3LXO6dyTPnqS2yd0bu34a/ns5WAniVgWZ5zWXcp425/7a1pQIA3pSGHse7tGdraQCoPAFuBOXJC0/88nTUywU=").play()},success_search=function(){var e=a.searching_shell_str_replaced.html();a.searching_shell_str_replaced.html(e.replace("failed reverse-i-search","reverse-i-search")),g()},cancel_search=function(e){o.html(a.searching_shell_str),a.searching_shell_str=0,a.searching_shell_str_replaced=0,a.searching=0,e&&l.val(String()),g()},this.searching_shell_str||(this.searching_shell_str=o.html()),this.searching_shell_str_replaced){var _=this.searching_shell_str_replaced.find("span[data-searching]"),d=_.text();if(t.key&&1===t.key.length){var p=t.ctrlKey||t.altKey||t.metaKey?String():t.key,h=d+p;h&&(a.pre_searched=h,localStorage.setItem(v___server_hostname+"-shell_command_last",h)),_.text(h);var x=run_search(_.text());update_search(x,p)}}else this.searching_shell_str_replaced=o.html("(reverse-i-search)`<span data-searching></span>': "),g();if(8===t.keyCode){var y=this.searching_shell_str_replaced.find("span[data-searching]"),A=y.text(),k=A.slice(0,-1);A&&(a.pre_searched=k,localStorage.setItem(v___server_hostname+"-shell_command_last",h)),y.text(k);var C=run_search(y.text());return void update_search(C,1)}return void(9!==t.keyCode&&13!==t.keyCode&&27!==t.keyCode&&37!==t.keyCode&&38!==t.keyCode&&39!==t.keyCode&&40!==t.keyCode||cancel_search())}if(i&&27===t.keyCode&&!n)return void c();if(i&&38===t.keyCode&&t.preventDefault(),i&&9===t.keyCode&&f.is(":focus")){if(t.preventDefault(),!b)return;var w=f.val().trim().split(/\s+(?!-)/),S=w.length,I=w[0]&&w[0].indexOf("-")===-1?0:1,V=w[1]&&w[1].indexOf(":")===-1?0:1,T=f.val().endsWith(" "),O="service"===$.trim(w[0]),z="systemctl"===$.trim(w[0]),Z=$.trim(w[0])&&$.trim(w[0]).startsWith("chown"),E=1!==w.length||!f.val().length||I||T?O||z?"services":Z?"permissions":"lists":"commands";if(!$.trim(f.val()).length)return;var U=f.val(),q=s.find(".-shell-port-pwd"),J=q.attr("data-pwd");if("services"===E){if("systemctl"===(E=O?"service":"systemctl")&&3!==w.length)return;U="service"==E?$.trim(w[1]):$.trim(w[2]),"service"===$.trim(w[0])&&(2===w.length&&T||3===w.length)&&(U=3===w.length?"::::"+$.trim(w[1])+"::::"+$.trim(w[2]):"::::"+$.trim(w[1]))}if(Z){if(1===S&&!T)return void f.val($.trim(w[0])+" ");V&&$.trim(w[1])?T||w[2]?(E="lists",U=J+"/::::"+$.trim(w[2])):(E="groups",U=$.trim($.trim(w[1]).split(":")[1])):(E="users",U=$.trim(w[1]))}"lists"!==E||Z||(U=J+"/::::"+$.trim(w[1])+"::::"+$.trim(w[0])+"::::"+$.trim(w[2])),$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-get_autocompletes=1&xhr-get_autocomplete_type="+E+"&xhr-get_autocomplete_string="+U,data:!1,dataType:"json",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);var t=e.length;if(1===t)if("service"===E||"systemctl"===E||"lists"===E){var a=$.trim(w[0]),i=$.trim(w[0])+" "+$.trim(w[1]);"lists"===E?("cd"===a&&e[0].endsWith("/")||"cd"!==a)&&("cd"===a||"cat"===a?f.val(a+" "+e[0]):$.trim(w[2])?f.val(i+" "+e[0]):f.val(a+" "+e[0])):"service"!==a||2!==w.length&&3!==w.length?"systemctl"===a&&3===w.length&&f.val(a+" "+$.trim(w[1])+" "+e[0]):2===w.length?f.val(a+" "+e[0]+" "):3===w.length&&f.val($.trim(w[0])+" "+$.trim(w[1])+" "+e[0])}else Z?V?T||w[2]?f.val($.trim(w[0])+" "+$.trim(w[1])+" "+e[0]):f.val($.trim(w[0])+" "+$.trim($.trim(w[1]).split(":")[0])+":"+e[0]+" "):f.val($.trim(w[0])+" "+e[0]+":"):f.val(e[0]+" ");else if(t>1){var n="<b>"+m()+" "+Convert.htmlEscape(f.val())+"</b>\n";u.find("pre").append(n),u.find("pre").append(Convert.htmlEscape(e.join("\n")+"\n")),v.scrollTop(v[0].scrollHeight)}setTimeout(function(){f.focus().mousedown()},10)},error:function(){}})}}).on("keyup"+y,function(n){var h=this,v=e(),b=$(".modal-shell-config:visible").length;if(v&&!b){var x=0,y=0,A=0,k=$(".form-control.sidebar-search"),C=t(),w=$('select[name="sid"]').val(),S=0,I=a();if(!I)return;if((v||k.is(":focus"))&&8===n.keyCode&&(vars.shell.history=0),v?(x=$.trim(f.val()),y=1,A=1):(x=k.val(),y=void 0!==k.val(),A=0),(A||y&&(!x.trim()||x.trim().startsWith("!")))&&(38==n.keyCode||40==n.keyCode)){n.preventDefault(),n.stopPropagation(),void 0===localStorage.getItem(v___server_hostname+"-shell_commands")&&localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify({}));var V=JSON.parse(localStorage.getItem(v___server_hostname+"-shell_commands")),T=V?V.length:0;if(0===vars.shell.history&&!x&&40==n.keyCode)return;if(0===vars.shell.history&&x&&38==n.keyCode)return void(S=1);if(vars.shell.history=40==n.keyCode?++vars.shell.history:--vars.shell.history,vars.shell.history<0&&38===n.keyCode?vars.shell.history=T-1:vars.shell.history>T&&(vars.shell.history=0),V&&V[vars.shell.history%T]){if(!$.isEmptyObject(V)&&(vars.shell.history==T&&38===n.keyCode||vars.shell.history==T&&40===n.keyCode||S))return v?f.val("").focus():k.val("").focus(),void(vars.shell.history=0);if(v){var O=V[vars.shell.history%T].replace(/^!/,"");f.val(Convert.htmlUnEscape(O)).focus()}}return}if(y&&x.trim().startsWith("!")&&27==n.keyCode)return n.preventDefault(),n.stopPropagation(),void k.val("").focus();if(y&&x.trim().startsWith("!")&&13==n.keyCode&&(k.addClass("_shell_form_"),n.preventDefault(),n.stopPropagation(),1==core.moduleAvailable("shell")||C)){f.val(x.trim().substring(1)).focus(),d();var z=$.Event("keyup");z.keyCode=13,f.trigger(z)}var Z=s.find(".-shell-port-container"),E=s.find(".-shell-port-pwd"),U=E.attr("data-pwd"),q=$.trim(f.val()),J=0,K=n.keyCode?n.keyCode:n.which,j=(n.altKey||n.ctrlKey)&&"l"==String.fromCharCode(n.which).toLowerCase();if(f.is(":focus")||check_selected_text()||(n.ctrlKey||n.altKey||n.shiftKey||n.metaKey||f.val(f.val()+String.fromCharCode(n.which).toLowerCase()),f.focus()),q&&13===K||j){if(Z.find("[data-searching]").length)return;if(core.moduleAvailable("shell")||C){if(1===vars.shell.processing)return;vars.shell.processing=1,("clear"===q||"reset"===q||"exit"===q||j)&&(u.find("pre").html(""),_(f),"exit"==q&&c()),"cd ~"===q&&(J=q,q="cd "+E.attr("data-home"));var M=!1;if("cd /"===q&&(M="/"),"history -c"===q){localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify({}));var Q="<b>"+m()+" "+Convert.htmlEscape(q)+"</b>\n";u.find("pre").append(Q),_(f),Z.scrollTop(Z[0].scrollHeight);var R=r(I,C,null,U),D=new FormData($(R)[0]);return void $.ajax({type:"POST",url:I+"?stripped=1&stripped=2",data:D,dataType:"text",cache:!1,contentType:!1,processData:!1,success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);o(q),vars.shell.processing=0},error:function(e){}})}if($.trim(q).startsWith("history -d")){var W=q.split(" "),P=W[2];return P&&P.length&&Test.numeric(P)&&$.ajax({type:"POST",url:v___location_prefix+"/index.cgi/?xhr-shell-pop="+P+"&xhr-shell-cms="+C+"&xhr-shell-cmsid="+w,data:!1,dataType:"text",cache:!1,contentType:!1,processData:!1,success:function(e){if("1"==e){var t=JSON.parse(localStorage.getItem(v___server_hostname+"-shell_commands"));localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify(t.filter(function(e,t){return t!==parseInt(P)-1})))}o(q)},error:function(e){}}),_(f),void(vars.shell.processing=0)}if(q.startsWith("history")){_(f);var N=JSON.parse(localStorage.getItem(v___server_hostname+"-shell_commands")),G=N?N.length:0,X=G?G.toString().length:0,Q="<b>"+m()+" "+Convert.htmlEscape(q)+"</b>\n";return $.each($(N),function(e,t){var a=e.toString().length,n="";for(i=0;i<X+1-a;i++)n+=" ";"string"==typeof t&&(Q+=e+1+n+t+"\n")}).promise().done(function(){u.find("pre").append(Q),Z.scrollTop(Z[0].scrollHeight),o(q)}),void(vars.shell.processing=0)}var H=["vim","vi","emacs","nano","edit","editor"],L=q.split(" "),F=L[0],Y=L[1];if(F&&Y&&H.some(function(e){return e===$.trim(F)})){var B=u.find("pre"),ee="<b>"+m()+" "+Convert.htmlEscape(f.val());return Y.endsWith("/")||Y.includes("../")?(B.append(ee+" </b>\nCan not open file editor. Unsupported path expression.\n"),void l(se,f,Z)):(edit_file(L[1],U,[{call:"plugins.shell.toggle"},{call:"plugins.shell.done",params:[se,f,Z]},{call:"plugins.shell.close"}]),B.append(ee+" </b>\nOpening internal file editor. "+theme_spinner_small(void 0,"white command-shell-editor-spinner")+"\n"),p(1),Z.scrollTop(Z[0].scrollHeight),void o(q))}if("clear"===$.trim(q)||"reset"===$.trim(q)||"exit"===$.trim(q)||j)return vars.shell.processing=0,vars.shell.history=0,g(),f.focus(),void(!j&&o(q));var te=r(I,C,q,U),ae=new FormData($(te)[0]);f.attr("readonly","true");var ie=0,ne=0,se=".-shell-port-cmd",re=!1,oe=0;h.shell_request=$.ajax({xhr:function(){var e=new window.XMLHttpRequest;return e.addEventListener("progress",function(e){var t=e.target.responseText;if(Test.strContains(t,v___page_signin_form))return v___available_session=0,void h.shell_request.abort();if(t&&t.length&&/[\x1B]/.test(t))return oe=1,void h.shell_request.abort();if(!!t&&ne++,ne>=1&&!ie)t&&($(se).after("<pre></pre>"),ie++,$(".-shell-port-container").addClass("progressing"));else if(ie){var a=extract_content(t,"<pre>","</pre>",1);a&&(a=a.replace(/<(b)[^>]*>[^<]*(<\/b>)/i,""),re=a,$(se).next("pre").replaceWith(a)),Z.scrollTop(Z[0].scrollHeight)}},!1),e},type:"POST",url:I+"?stripped=1&stripped=2",data:ae,dataType:"text",cache:!1,contentType:!1,processData:!1,complete:function(e){$(".-shell-port-container").removeClass("progressing");var t=e.status;if(e=e.responseText,Test.strContains(e,v___page_signin_form))return void(v___available_session=0);if(oe||200!==t){var a=200!==t?$.trim(extract_content(re,"<pre>","</pre>",0))+(h.shell_request_interrupted?"\n^C":String()):theme_language("theme_xhred_shell_aborted");return u.find("pre").append("<b>"+m()+" "+Convert.htmlEscape(f.val())+" </b>\n"+a+"\n"),o(q),void l(se,f,Z)}var i=m(),n=$(e).find("pre").length?$(e).find("pre"):$(e).filter("pre"),s=n.html().replace(/>&gt;/g,">"+i),r=$(e).find('input[name="previous"][type="hidden"]').map(function(){return Convert.htmlEscape($(this).val())}).get();localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify(r)),newPwd=$(e).find('input[name="pwd"]').val(),u.find("pre").append(J?s.replace(new RegExp(q,"g"),J):s),E.text(M?M:newPwd==E.attr("data-home")?"~":newPwd.split("/").filter(function(e){return""!=$.trim(e)}).slice(-1)[0]).attr("data-pwd",Convert.htmlEscape(M?M:newPwd)).attr("title",Convert.htmlEscape(M?M:newPwd)),l(se,f,Z)},error:function(e){}})}}}}),v.on("click"+y,"[data-shell-config]",function(){3!==get_access_level()&&$.ajax({type:"GET",url:v___location_prefix+"/config.cgi?shell",data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);var t=$(e).find(".ui_form"),a=t.find("table.sub_table_container"),i=v___location_prefix+"/config_save.cgi";a.find("a").contents().unwrap();var n=a.find("tbody"),s=$(e).find("tr th.table-title b").text();theme_alert(s,'<form><input type="hidden" name="module" value="shell"><table class="table-hover w-100p">'+n[0].outerHTML+'</table><button data-save-shell-config type="submit" class="btn btn-default btn-block margined-bottom--8"><i class="fa fa-fw fa-save-check margined-right-1"></i>'+theme_language("theme_xhred_global_save")+"</button></form>",!1,"md","info","cogs",'10 modal-shell-config" data-keyboard="false" data-backdrop="static',0),setTimeout(function(){$("[data-save-shell-config]").on("click",function(e){e.preventDefault();var t=$(this);if(!t.hasClass("disabled")){var a=$(".modal-shell-config"),n=a.find("form").serialize();t.addClass("disabled").find("i").replaceWith(theme_spinner_small(!1," ")),$.ajax({type:"POST",url:i,data:n,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);a.find('[data-dismiss="modal"]').trigger("click")},error:function(){}})}})},300)}})}).on("click"+y,".-shell-port-close",function(){h()&&c()})},m=function(){return Convert.htmlEscape($(".-shell-port-type").text())};return{type:t,init:u,status:e,link:n,unlock:s,open:d,close:c,toggle:p,done:l,available:h,adjust:g,set:f}}(),plugins.favicon=function(){var e=function(e){a.badge(e),titlenotifier.set(e),a.lastNum=e},t=0;"object"==typeof a&&a.lastNum&&(t=a.lastNum);var a=new Favico({animation:"none"});return e(t),{set:e}}(),plugins.slider=function(){var test_visibility=function(){set_visibility(settings_side_slider_fixed!==!0||$(".mobile-menu-toggler:visible").length&&!vars.navigation_pinned||!$.support.spa||settings_side_slider_fixed===!0&&window.matchMedia("(max-width: 1365px)").matches?0:1)},set_visibility=function(e,t){if(1!==vars.slider_pinned||e||!$(".right-side-tabs i.fa2-collapse-right:visible").length){var a=get_server_data("access-level"),i="body .right-side-tabs";"0"==a&&(e?($(i+"-toggler").addClass("hidden"),$(i).css("right","0px").addClass("right-side-tabs-fixed"),settings_side_slider_enabled&&get_server_data("data-slider-fixed","1")):(settings_side_slider_enabled&&(t?$(i+"-toggler").removeClass("hidden").addClass("opened").css("right","300px"):$(i+"-toggler").removeClass("hidden opened").css("right","0")),t?$(i).css("right","0px"):$(i).css("right","-302px"),$(i).removeClass("right-side-tabs-fixed"),get_server_data("data-slider-fixed","0")))}},display_badges=function(){if(settings_side_slider_enabled&&settings_side_slider_notifications_enabled){var e="right-side-tab-notification-asterix",t="faa-ring faa-slow animated-hover",a=$(".right-side-tabs .list-group-item:not(.no-notifications, .opacity-0_3)").length;plugins.favicon.set(a),a>0?($(".right-side-tabs-toggler button i.fa-bell").addClass(t),$(".right-side-tabs-toggler button span.badge").removeClass("hidden").text(a),$("#right-side-tabs ."+e).removeClass("hidden").text(a)):($(".right-side-tabs-toggler button i.fa-bell").removeClass(t),$(".right-side-tabs-toggler button span.badge").addClass("hidden").text(0),$("#right-side-tabs ."+e).addClass("hidden").text(0))}},check_notifications=function(){var $current_localData_notifications={};$.each(localStorage,function(e,t){if("string"==typeof e&&e.indexOf("notifications_")>-1&&e.indexOf(v___server_hostname)>-1){var a=e.split("_")[1],i=JSON.parse(t),n=i.title,s=i.time,r=i.timestamp,o=i.message,l=i.readStatus,_=i.type,d=i.link,c=s+"_"+n;"csf_deny"===_&&(c=s+"_"+n.replace(/\W/g,"")+o.replace(/\W/g,"")),$current_localData_notifications[c]=a+"~~~~"+n+"~~~~"+s+"~~~~"+r+"~~~~"+o+"~~~~"+l+"~~~~"+_+"~~~~"+d,$('.list-group-item[id="'+a+'"][data-type="'+_+'"]').length&&$('.list-group-item[id="'+a+'"][data-type="'+_+'"] .list-group-item-heading small').text(moment.unix(s).fromNow())}});var package_message_num=Object.values($current_localData_notifications).filter(function(e){return e.indexOf("package_message")>-1}).length,csf_remote_version_num=Object.values($current_localData_notifications).filter(function(e){
return e.indexOf("csf_remote_version")>-1}).length,authentic_remote_version_num=Object.values($current_localData_notifications).filter(function(e){return e.indexOf("authentic_remote_version")>-1}).length,csf_title_num=Object.values($current_localData_notifications).filter(function(e){return e.indexOf("csf_title")>-1}).length,keys=[];for(var key in $current_localData_notifications)$current_localData_notifications.hasOwnProperty(key)&&keys.push(key);$current_localData_notifications_sorted_keys=keys.sort(),$.each($current_localData_notifications_sorted_keys,function(i,v){var vx=$current_localData_notifications[v],$__id__=vx.split("~~~~")[0],$__data__title=vx.split("~~~~")[1],$__data__time=vx.split("~~~~")[2],$__data__timestamp=vx.split("~~~~")[3],$__data__message=vx.split("~~~~")[4],$__data__readStatus=vx.split("~~~~")[5],$__data__type=vx.split("~~~~")[6],$__data__link=vx.split("~~~~")[7];if("package_message"==$__data__type||"csf_remote_version"==$__data__type||"authentic_remote_version"==$__data__type||"csf_title"==$__data__type){var $__num=eval($__data__type+"_num");i+1<$__num&&($__data__readStatus=1)}$('.list-group-item[id="'+$__id__+'"][data-type="'+$__data__type+'"]').length||add_notification($__id__,$__data__title,$__data__time,$__data__timestamp,$__data__message,$__data__readStatus,$__data__type,$__data__link)})},remove_all_notifications=function(){$.each(localStorage,function(e,t){"string"==typeof e&&e.indexOf("notifications_")>-1&&e.indexOf(v___server_hostname)>-1&&delete localStorage[e]})},mark_notification_read=function(e,t,a,i){var n=JSON.parse(localStorage.getItem(v___server_hostname+"-notifications_"+e+"_"+t));n&&localStorage.setItem(v___server_hostname+"-notifications_"+e+"_"+t,JSON.stringify({title:n.title,time:n.time,timestamp:n.timestamp,message:n.message,readStatus:a,type:n.type,link:n.link})),i&&display_badges()},mark_group_notifications_read=function(e){var t="";e&&(t='[data-type="'+e+'"]'),$(".right-side-tabs .list-group-item"+t+":not(.no-notifications)").each(function(){$(this).addClass("opacity-0_3"),mark_notification_read($(this).attr("id"),$(this).data("type"),1,0)}).promise().done(function(){display_badges()})},add_notification=function(e,t,a,i,n,s,r,o){$(".right-side-tabs .list-group").prepend('        <a class="list-group-item right-side-tabs-notification'+("1"==s?" opacity-0_3":"")+'" data-type="'+r+'" id="'+e+'" href="'+o+'">            <div class="media-body">            <i class="fa fa-fw fa-trash-o pull-right hidden"></i>            <i class="fa fa-fw fa-clear-all pull-right hidden"></i>                <div class="list-group-item-heading">'+t+" <small>"+moment.unix(a).fromNow()+"</small></div>                <small>"+n+"</small>            </div>        </a>        "),$(".right-side-tabs-no-notifications").remove(),display_badges(),v___initial_load||mark_no_notifications()},mark_no_notifications=function(){var e=browser.detect.safari(1),t=e?2:0,a=function(){var e=theme_language("theme_xhred_notification_none");$(".right-side-tabs .list-group").prepend('          <div class="right-side-tabs-no-notifications" style="opacity: 0">          <div class="list-group-item text-center no-notifications">          <small class="list-group-item-text text-lighter">'+e.toUpperCase()+"</small>          </div>          </div>        "),$(".right-side-tabs-no-notifications").animate({opacity:"1"},175,function(){})};0===$(".right-side-tabs .list-group-item").length&&(e?setTimeout(function(){a()},2):a()),setTimeout(function(){display_badges()},175+t)},update_right_pane_favorites=function(){if("function"==typeof plugins.favorites.fetch){var e=plugins.favorites.fetch(),t=$("#right-side-tabs .no-favorites_data");$("#right-side-tabs .favorites-dcontainer .right_pane_favorites_link, #right-side-tabs .favorites-dcontainer .right_pane_favorites_num").remove(),e.length?($.each(e,function(e,t){var a=$("#right-side-tabs .favorites-dcontainer");get_server_data("webprefix")&&!t.link.includes("!edit")&&(t.link=get_server_data("webprefix")+t.link),a.append('<span class="right_pane_favorites_num">'+(e+1)+'</span><a class="right_pane_favorites_link" target="page" href="'+t.link+'"><i data-product="'+t.icon+'" class="wbm-'+t.icon+(t.icon,"")+' wbm-sm">&nbsp;&nbsp;</i><span title="'+t.title+'" class="right_pane_favorites_text">'+t.title+"</span></a>")}),t.addClass("hidden")):t.removeClass("hidden")}},sysinfo_update=function(){if(!$("body .modal.in").length){if(!e)var e=get_server_data("webprefix");if(0==v___user_level){var t=$("body").find("#system-status"),a=t.length?t[0]:0;$("#right-side-tabs-sysinfo .graph-container").length||$("#right-side-tabs .info-container").html(function(){$_____________got_rp__sys_dat=1;var e=core.moduleAvailable("package-updates"),t=core.moduleAvailable("proc")?"":" pointer-events-none",a=core.moduleAvailable("disk-usage")||core.moduleAvailable("quota")?"":" pointer-events-none",i=e?"":' class="hidden"',n=localStorage.getItem(v___server_hostname+"-sysinfo_package_message"),s=vars.local_storage?String():" hidden";return'          <div class="is-sysinfo_data hidden">            <div class="graph-container graph-container-fw cpu_percent'+t+s+'"><div class="graph"><div class="description" title="'+localStorage.getItem(v___server_hostname+"-sysinfo_cpu")+'">'+theme_language("theme_xhred_global_cpu_load")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_cpu_percent_stats")+"% ("+localStorage.getItem(v___server_hostname+"-sysinfo_cpu")+')</div><strong class="bar" style="width:'+localStorage.getItem(v___server_hostname+"-sysinfo_cpu_percent_stats")+'%"></strong></div></div><br class="'+s+'">            <div class="graph-container graph-container-fw mem_percent'+t+s+'"><div class="graph"><div class="description" title="'+localStorage.getItem(v___server_hostname+"-sysinfo_mem")+'">'+theme_language("body_real")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_mem_percent_stats")+"% ("+localStorage.getItem(v___server_hostname+"-sysinfo_mem")+')</div><strong class="bar" style="width:'+localStorage.getItem(v___server_hostname+"-sysinfo_mem_percent_stats")+'%"></strong></div></div><br class="'+s+'">            <div class="graph-container graph-container-fw virt_percent'+t+s+'"><div class="graph"><div class="description" title="'+localStorage.getItem(v___server_hostname+"-sysinfo_virt")+'">'+theme_language("body_virt")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_virt_percent_stats")+"% ("+localStorage.getItem(v___server_hostname+"-sysinfo_virt")+')</div><strong class="bar" style="width:'+localStorage.getItem(v___server_hostname+"-sysinfo_virt_percent_stats")+'%"></strong></div></div><br class="'+s+'">            <div class="graph-container graph-container-fw disk_percent'+a+s+'"><div class="graph"><div class="description" title="'+localStorage.getItem(v___server_hostname+"-sysinfo_disk")+'">'+theme_language("body_disk")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_disk_percent_stats")+"% ("+localStorage.getItem(v___server_hostname+"-sysinfo_disk")+')</div><strong class="bar" style="width:'+localStorage.getItem(v___server_hostname+"-sysinfo_disk_percent_stats")+'%"></strong></div></div><br class="'+s+'">                        <div data-stats="cpu" style="height: 10px"></div><strong data-stats="cpu">'+theme_language("body_cputemps")+'</strong><br data-stats="cpu">'+(localStorage.getItem(v___server_hostname+"-sysinfo_cpu_temperature")?localStorage.getItem(v___server_hostname+"-sysinfo_cpu_temperature").replace(/<br>|&nbsp;/gi,""):"")+'<br data-stats="cpu">            <div data-stats="drive" style="height: 10px"></div><strong data-stats="drive">'+theme_language("body_drivetemps")+'</strong><br data-stats="drive">'+(localStorage.getItem(v___server_hostname+"-sysinfo_hdd_temperature")?localStorage.getItem(v___server_hostname+"-sysinfo_hdd_temperature").replace(/<br>|&nbsp;/gi,""):"")+'<br data-stats="drive">                        <div class="info-list-data">              <strong>'+theme_language("body_host")+'</strong><br><span data-data="host">'+localStorage.getItem(v___server_hostname+"-sysinfo_host")+"</span>              <strong>"+theme_language("body_os")+'</strong><br><span data-data="os">'+localStorage.getItem(v___server_hostname+"-sysinfo_os")+"</span>              <strong>"+theme_language("body_time")+'</strong><br><span data-data="local_time">'+(localStorage.getItem(v___server_hostname+"-sysinfo_local_time")?moment.unix($(localStorage.getItem(v___server_hostname+"-sysinfo_local_time")).attr("data-convertible-timestamp-full")).format(config_portable_theme_locale_format_long):localStorage.getItem(v___server_hostname+"-sysinfo_local_time"))+"</span>              <strong>"+theme_language("body_kernel")+'</strong><br><span data-data="kernel_arch">'+localStorage.getItem(v___server_hostname+"-sysinfo_kernel_arch")+"</span>              <strong>"+theme_language("body_uptime")+'</strong><br><span data-data="uptime">'+localStorage.getItem(v___server_hostname+"-sysinfo_uptime")+"</span>              <strong>"+theme_language("body_procs")+'</strong><br><span data-data="proc">'+localStorage.getItem(v___server_hostname+"-sysinfo_proc")+"</span>              <strong"+i+">"+theme_language("body_updates")+"</strong><br"+i+'><span data-data="package_message"'+i+">"+(n&&"null"!==n?$(n).html($(n).html().split(",")[0])[0].outerHTML:"")+'</span>            </div>            <div class="warning-list-data">            </div>            <div class="extended-list-data">            </div>                      </div>          <div class="no-sysinfo_data">              <div style="height: 5px"></div>              <small class="list-group-item-text text-lighter">'+theme_language("theme_xhred_notification_no_data").toUpperCase()+"</small>          </div>        "}());var i=$(".right-side-tabs-dismiss .fa-reload");i.addClass("fa-spin-fastest cursor-na"),setTimeout(function(){i.removeClass("fa-spin-fastest cursor-na")},3e3),$.ajax({type:"GET",url:e+"/index.cgi/?xhr-info=1&webprefix="+get_server_data("webprefix"),data:!1,dataType:"json",success:function(t){if(Test.strContains(t,v___page_signin_form))return void(v___available_session=0);$.each(t[0],function(t,i){var n=$('#right-side-tabs [data-data="'+t+'"]');if(n=n.add(n.prev("br")),n=n.add(n.prev("strong")),null!=i?n.removeClass("hidden hidden-force"):n.addClass("hidden hidden-force"),"cpu_percent"!=t&&"mem_percent"!=t&&"virt_percent"!=t&&"disk_percent"!=t||(Test.numeric(i)?localStorage.setItem(v___server_hostname+"-sysinfo_"+t+"_stats",i):localStorage.setItem(v___server_hostname+"-sysinfo_"+t+"_stats","")),a){if($(a).find('span[data-id="sysinfo_'+t+'"]').html(i),"local_time"==t||"uptime"==t||"proc"==t){var s=$(a).find('span[data-id="sysinfo_'+t+'"]'),r=s.find("a").length?s.find("a"):s.find("span"),o=r,l=$(a).find('span[data-id="sysinfo_'+t+'"]').text();"local_time"==t?snippets.datetime.tictac(1,1):o&&o.length&&s.html(o.html(l))}if(page_sysinfo_sensor_update_label(),$(a).find('.piechart[data-charts="sysinfo_'+t+'"]').length){var _=$("body").find('.piechart[data-charts="sysinfo_'+t+'"]');_.length&&!isNaN(parseInt(i))&&_.data("easyPieChart").update(i)}"cpu_percent"!=t&&"mem_percent"!=t&&"virt_percent"!=t&&"disk_percent"!=t||localStorage.setItem(v___server_hostname+"-sysinfo_"+t+"_seen",i),$(a).find(".modal-backdrop").remove()}if($__id__=moment().unix(),"cpu_percent"==t||"mem_percent"==t||"virt_percent"==t||"disk_percent"==t||"csf_title"==t||"csf_remote_version"==t||"authentic_remote_version"==t||"package_message"==t?localStorage.getItem(v___server_hostname+"-sysinfo_"+t)||localStorage.setItem(v___server_hostname+"-sysinfo_"+t,i):i&&null!=i&&NaN!=i?localStorage.setItem(v___server_hostname+"-sysinfo_"+t,i):localStorage.setItem(v___server_hostname+"-sysinfo_"+t,""),localStorage.getItem(v___server_hostname+"-sysinfo_package_message_initial")||localStorage.setItem(v___server_hostname+"-sysinfo_package_message_initial",1),"authentic_theme_version"==t&&!localStorage.getItem(v___server_hostname+"-sysinfo_theme_current_version")&&i&&localStorage.setItem(v___server_hostname+"-sysinfo_theme_current_version",i.match(/^\d+|\d+\b|\d+(?=\w)/g)[0]+"."+i.match(/^\d+|\d+\b|\d+(?=\w)/g)[1]),"csf_data"==t&&!localStorage.getItem(v___server_hostname+"-sysinfo_csf_current_version")&&i&&localStorage.setItem(v___server_hostname+"-sysinfo_csf_current_version",i.match(/^\d+|\d+\b|\d+(?=\w)/g)[0]+"."+i.match(/^\d+|\d+\b|\d+(?=\w)/g)[1]),"csf_title"==t||"csf_data"==t||"csf_remote_version"==t||"authentic_remote_version"==t||"authentic_theme_version"==t||"package_message"==t){if("package_message"===t&&!core.curModuleFile("package-updates","update.cgi")){if((localStorage.getItem(v___server_hostname+"-sysinfo_"+t)!=i||1==localStorage.getItem(v___server_hostname+"-sysinfo_package_message_initial"))&&i&&i.indexOf("badge-danger")>-1){var d=theme_language("theme_xhred_notifications_packages_updates"),c=$(i).html().replace(/badge-danger/g,"badge-success"),p=e+"/package-updates/index.cgi?mode=updates";localStorage.setItem(v___server_hostname+"-notifications_"+$__id__+"_package_message",JSON.stringify({title:d,time:$__id__,timestamp:$__id__,message:c,readStatus:0,type:t,link:p})),plugins.slider.notifications.dismiss("package_message"),localStorage.setItem(v___server_hostname+"-sysinfo_"+t,i),localStorage.setItem(v___server_hostname+"-sysinfo_package_message_initial",0),notifications(d,c,t,p)}else"package_message"===t&&localStorage.setItem(v___server_hostname+"-sysinfo_"+t,i);$(i).find("i.badge:first-child").length||plugins.slider.notifications.dismiss("package_message")}var g=localStorage.getItem(v___server_hostname+"-sysinfo_theme_current_version");if(settings_sysinfo_theme_updates&&(0==localStorage.getItem(v___server_hostname+"-sysinfo_authentic_remote_version")&&localStorage.removeItem(v___server_hostname+"-sysinfo_authentic_remote_version"),g&&localStorage.getItem(v___server_hostname+"-sysinfo_authentic_remote_version")&&"authentic_remote_version"==t&&g<i&&"0"!=i&&"0.00"!=i&&null!=i&&i!=v___theme_version)){var h=theme_language("theme_xhred_notifications_theme_update"),f=theme_language("theme_xhred_notifications_theme_update_message").replace("%v",i),p=e+"/sysinfo.cgi";localStorage.setItem(v___server_hostname+"-notifications_"+$__id__+"_authentic_remote_version",JSON.stringify({title:h,time:$__id__,timestamp:$__id__,message:f,readStatus:0,type:t,link:p})),localStorage.setItem(v___server_hostname+"-sysinfo_"+t,i),localStorage.setItem(v___server_hostname+"-sysinfo_theme_current_version",i),notifications(h,f,t,p)}if("authentic_theme_version"!==t||Test.strContains(i,"CHANGELOG.md")||plugins.slider.notifications.dismiss("authentic_remote_version"),settings_sysinfo_csf_updates){var u=localStorage.getItem(v___server_hostname+"-sysinfo_csf_current_version");if(u&&null!=u&&localStorage.getItem(v___server_hostname+"-sysinfo_csf_remote_version")&&"csf_remote_version"==t&&u<i&&"0"!=i&&"0.00"!=i&&null!=i){var m=theme_language("theme_xhred_notifications_firewall_update"),v=theme_language("theme_xhred_notifications_firewall_update_message").replace("%v",i),p=e+"/csf/index.cgi";localStorage.setItem(v___server_hostname+"-notifications_"+$__id__+"_csf_remote_version",JSON.stringify({title:m,time:$__id__,timestamp:$__id__,message:v,readStatus:0,type:t,link:p})),plugins.slider.notifications.dismiss("csf_remote_version"),localStorage.setItem(v___server_hostname+"-sysinfo_"+t,i),localStorage.setItem(v___server_hostname+"-sysinfo_csf_current_version",i),notifications(m,v,t,p)}}if("csf_data"===t&&Test.strContains(i,"data-no-update")&&plugins.slider.notifications.dismiss("csf_remote_version"),"csf_title"==t)if(i&&i.indexOf("label-danger")>-1&&1!=localStorage.getItem(v___server_hostname+"-sysinfo_csf_not_running")){var b=theme_language("theme_xhred_notifications_firewall_danger"),x=theme_language("theme_xhred_notifications_firewall_danger_message").replace("%v",moment.unix($__id__).format(config_portable_theme_locale_format_long)),p=e+"/csf/index.cgi?action=lfdstatus";localStorage.setItem(v___server_hostname+"-notifications_"+$__id__+"_csf_title",JSON.stringify({title:b,time:$__id__,timestamp:$__id__,message:x,readStatus:0,type:t,link:p})),plugins.slider.notifications.dismiss("csf_title"),localStorage.setItem(v___server_hostname+"-sysinfo_csf_not_running",1),notifications(b,x,"csf_remote_version",p)}else i&&i.indexOf("label-danger")===-1&&(plugins.slider.notifications.dismiss("csf_title"),localStorage.removeItem(v___server_hostname+"-sysinfo_csf_not_running"))}if("csf_deny"==t){var y=JSON.parse(i);$.each(y,function(a,i){var i=i.split("|"),n=i[0],s=i[1],r=i[2],o=i[3],l=(i[4],i[5],i[6],i[7]);if(l=l.replace("*Port Scan*",r&&o?'Port <i data-port-href="http://www.speedguide.net/port.php?port='+o+'" class="badge bg-dark-red">'+o+"</i> scan":"Port scan"),!localStorage.getItem(v___server_hostname+"-allowed_trigger_"+(n+s.replace(/\./g,"0"))+"_csf_deny")){var _=theme_language("theme_xhred_notifications_firewall_warning"),d=l+(r&&o?" <span>("+r+":"+o+")</span>":""),c=e+"/csf/index.cgi?action=temp";localStorage.setItem(v___server_hostname+"-notifications_"+(n+s.replace(/\./g,"0"))+"_csf_deny",JSON.stringify({title:_,time:$__id__,timestamp:$__id__,message:d,readStatus:0,type:t,link:c})),localStorage.setItem(v___server_hostname+"-allowed_trigger_"+(n+s.replace(/\./g,"0"))+"_csf_deny",1),notifications(_,d,t,c)}})}if("cpu_percent"==t||"mem_percent"==t||"virt_percent"==t||"disk_percent"==t){var A=$("#right-side-tabs .graph-container-fw."+t);A=A.add(A.next("br")),null!=i?A.removeClass("hidden-force"):A.addClass("hidden-force")}if((localStorage.getItem(v___server_hostname+"-sysinfo_cpu_percent_stats")||localStorage.getItem(v___server_hostname+"-sysinfo_mem_percent_stats")||localStorage.getItem(v___server_hostname+"-sysinfo_virt_percent_stats")||localStorage.getItem(v___server_hostname+"-sysinfo_disk_percent_stats"))&&$("#right-side-tabs-sysinfo .graph-container").length){var k=!localStorage.getItem(v___server_hostname+"-sysinfo_"+t+"_stats"),C=$(".info-container .graph-container."+t);if(k?C.addClass("hidden").next("br").addClass("hidden"):C.removeClass("hidden").next("br").removeClass("hidden"),"cpu_percent"==t){var w=localStorage.getItem(v___server_hostname+"-sysinfo_cpu"),S=w?"("+w+")":String();$("#right-side-tabs-sysinfo .graph-container."+t+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_cpu")).text(theme_language("theme_xhred_global_cpu_load")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_cpu_percent_stats")+"% "+S),$("#right-side-tabs-sysinfo .graph-container."+t+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_cpu_percent_stats")+"%")}if("mem_percent"==t){var I=localStorage.getItem(v___server_hostname+"-sysinfo_mem"),V=I?"("+I+")":String();$("#right-side-tabs-sysinfo .graph-container."+t+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_mem")).text(theme_language("body_real")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_mem_percent_stats")+"% "+V),$("#right-side-tabs-sysinfo .graph-container."+t+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_mem_percent_stats")+"%")}if("virt_percent"==t){var T=localStorage.getItem(v___server_hostname+"-sysinfo_virt"),O=T?"("+T+")":String();$("#right-side-tabs-sysinfo .graph-container."+t+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_virt")).text(theme_language("body_virt")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_virt_percent_stats")+"% "+O),$("#right-side-tabs-sysinfo .graph-container."+t+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_virt_percent_stats")+"%")}if("disk_percent"==t){var z=localStorage.getItem(v___server_hostname+"-sysinfo_disk"),Z=z?"("+z+")":String();$("#right-side-tabs-sysinfo .graph-container."+t+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_disk")).text(theme_language("body_disk")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_disk_percent_stats")+"% "+Z),$("#right-side-tabs-sysinfo .graph-container."+t+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_disk_percent_stats")+"%")}}if($('#right-side-tabs .info-container .info-list-data span[data-data="'+t+'"]').html(i),"package_message"==t&&core.moduleAvailable("package-updates")){var E=i;E&&$('#right-side-tabs .info-container .info-list-data span[data-data="'+t+'"]').html($(E).html($(E).html().split(",")[0])[0].outerHTML)}if("local_time"==t){var U=$('#right-side-tabs .info-container .info-list-data span[data-data="'+t+'"]'),q=U.find("a").length?U.find("a"):U.find("span");q&&q.length&&q.html(q.next("span").detach()),snippets.datetime.tictac(1,1)}if("cpu_temperature"==t){var J=0;$.each($(i).filter(".badge-cpustatus"),function(e,t){var a,n=parseInt($(this).text().split(":")[1]),s=n,r=$(this).text().indexOf("°C")>-1;a=$(this).text().indexOf("RPM")>-1?HTML.label.rpm(s):HTML.label.temperature(n,r),"bg-warning"!=a&&"bg-danger"!=a||(J=1),$("#right-side-tabs .info-container .badge-drivestatus.badge-cpustatus").length||$('strong[data-stats="cpu"] + br[data-stats="cpu"]').after(i.replace(/<br>|&nbsp;/gi,"")),$($("#right-side-tabs .info-container .badge-drivestatus.badge-cpustatus")[e]).html($(this).text()).removeClass(function(e,t){return(t.match(/(^|\s)bg-\S+/g)||[]).join(" ")}).addClass(a+"-dark")}).promise().done(function(){J||"undefined"!=typeof config_custom_force_display_cpu_sensors?$('.info-container [data-stats="cpu"]').removeClass("hidden"):$('.info-container [data-stats="cpu"]').addClass("hidden")})}if("hdd_temperature"==t){var K=0;$.each($(i).filter(".badge-drivestatus:not(.badge-cpustatus)"),function(e,t){var a,n=parseInt($(this).text().split(":")[1]),s=$(this).text().indexOf("°C")>-1;a=HTML.label.temperature(n,s),"bg-warning"!=a&&"bg-danger"!=a||(K=1),$("#right-side-tabs .info-container .badge-drivestatus:not(.badge-cpustatus)").length||$('strong[data-stats="drive"] + br[data-stats="drive"]').after(i.replace(/<br>|&nbsp;/gi,"")),$($("#right-side-tabs .info-container .badge-drivestatus:not(.badge-cpustatus)")[e]).html($(this).text()).removeClass(function(e,t){return(t.match(/(^|\s)bg-\S+/g)||[]).join(" ")}).addClass(a+"-dark")}).promise().done(function(){K||"undefined"!=typeof config_custom_force_display_drive_sensors?$('.info-container [data-stats="drive"]').removeClass("hidden"):$('.info-container [data-stats="drive"]').addClass("hidden")})}if("warning_si"==t){var j=$("#right-side-tabs .info-container .warning-list-data"),M=i.replace(/<(script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/type='submit'/g,"formtarget='page' type='submit'").replace(/class='ui_submit/g,"class='ui_submit btn btn-default btn-xs").replace(/ui_form_end_submit" type="button"/g,'ui_form_end_submit" type="submit" formtarget="page"').replace(/ui_form_end_submit/g,"ui_form_end_submit btn-tiny");j.html(M),"<br>"===i&&j.empty(),plugins.dashboard.update.alerts(i)}if("extended_si"==t){var j=$("#right-side-tabs .info-container .extended-list-data"),Q=i.replace(/aria-expanded="true"/gi,'aria-expanded="false"').replace(/collapse in/gi,"collapse");opened_tabs=$("#extended_sysinfo .panel .in").map(function(){Q=Q.replace('data-toggle="collapse" href="#'+this.id+'" aria-expanded="false" aria-controls="'+this.id+'"','data-toggle="collapse" href="#'+this.id+'" aria-expanded="true" aria-controls="'+this.id+'"'),Q=Q.replace('div id="'+this.id+'" class="panel-collapse collapse"','div id="'+this.id+'" class="panel-collapse collapse in"')}).promise().done(function(){j.html('<div style="height: 11px"></div>'+Q);var e=$("#right-side-tabs .extended-list-data");e.find("div.panel-heading:not(#mount_disks_info-mount):not(#status_services-status):not(#status-virtual-server):not(#acl_logins-acl):not(#sysinfo-virtual-server):not(#quota-virtual-server):not(#bw-virtual-server)").parent().remove(),$.each(e.find("div.panel-heading .panel-title"),function(){var e=$(this).find("a"),t="true"!=$(this).find("a").attr("aria-expanded")?1:0,a=t?"+":"—";$(this).append('<span class="pull-right panel-title-status'+(t?" margined-right-2":"")+'">'+a+"</span>"),e.text(Convert.strUpFirst($.trim(e.text())))}),e.find(".panel.panel-default").detach().appendTo("#right-side-tabs #extended_sysinfo"),e.find("div.panel-body").find("img").remove(),e.find('input[type="submit"]').addClass("btn btn-default btn-xs"),e.find('input[type="submit"]').parents("form").attr("formtarget","page"),e.find('button[type="button"].ui_submit').addClass("btn btn-default btn-xs"),e.find('button[type="button"].ui_submit').parents("form").attr("formtarget","page");var t=e.find('[data-referrer="acl_logins"] .panel-body > table:first-child');t.removeClass().addClass("table table-striped table-hover"),t.wrap('<div class="table-responsive"></div>'),$("#extended_sysinfo .panel").on("show.bs.collapse",function(){$(this).find(".panel-title-status").removeClass("margined-right-2").text("—")}).on("hide.bs.collapse",function(){$(this).find(".panel-title-status").addClass("margined-right-2").text("+")})})}"collect_interval"==t&&(Test.numeric(i)?settings_side_slider_background_refresh_time=parseFloat(i):settings_side_slider_background_refresh_time=0),$.trim($(".info-list-data").text()).length&&setTimeout(function(){$("#right-side-tabs .is-sysinfo_data").removeClass("hidden"),$("#right-side-tabs .no-sysinfo_data").addClass("hidden")},100)}),sysinfo_replace_dismiss_buttons(),setTimeout(function(){plugins.slider.notifications.check()},3e3),snippets.datetime.locale()}})}settings_side_slider_enabled&&("number"==typeof iupdateTimer&&clearInterval(iupdateTimer),settings_side_slider_background_refresh_time>0&&(iupdateTimer=setInterval(function(){sysinfo_update()},6e4*settings_side_slider_background_refresh_time)))}};return document.addEventListener("DOMContentLoaded",function(){if($(document.body).on("click",".right-side-tabs-dismiss i.fa-reload, ._sync_sysinfo_.fa-reload",function(){if(!$(this).hasClass("cursor-na")){var e=core.moduleAvailable("virtual-server")?"virtual-server":"system-status",t=$(this);t.addClass("fa-spin-fastest cursor-na"),$.ajax({type:"GET",url:v___location_prefix+"/"+e+"/recollect.cgi",data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);"sysinfo.cgi"===v___location_file&&get_pjax_content(v___location_prefix+"/sysinfo.cgi"),sysinfo_update()},error:function(e){t.removeClass("fa-spin-fastest cursor-na"),plugins.messenger.post('<i class="fa fa-lg fa-fw fa-refresh-fi"></i>'+theme_language("theme_xhred_sysinfo_update_failed"),20,"error","sysinfoRecollect")}})}}),0==v___user_level&&$.support.spa){
var e=localStorage.getItem(v___server_hostname+"-right-side-tab")?localStorage.getItem(v___server_hostname+"-right-side-tab"):"#right-side-tabs-sysinfo",t='<div class="no-sysinfo_data"><div style="height: 5px"></div><small class="list-group-item-text text-lighter">'+theme_language("theme_xhred_notification_no_data").toUpperCase()+"</small></div>",a='<div class="no-favorites_data"><div style="height: 4px"></div><small class="list-group-item-text text-lighter">'+theme_language("theme_xhred_notification_no_favorites").toUpperCase()+"</small></div>",i='<div id="right-side-tabs" class="'+(settings_side_slider_enabled?"":" hidden ")+"right-side-tabs"+(settings_side_slider_fixed?" right-side-tabs-fixed":"")+'" data-background-style="'+settings_side_slider_palette+'"><ul class="nav nav-tabs" role="tablist"><li role="presentation" class="'+("#right-side-tabs-sysinfo"==e?"active ":"")+(settings_side_slider_sysinfo_enabled?"":" hidden")+'"><a href="#right-side-tabs-sysinfo" aria-controls="home" role="tab" data-toggle="tab">'+theme_language("theme_xhred_titles_dashboard")+'</a></li><li role="presentation" class="'+("#right-side-tabs-favorites"==e?"active ":"")+(settings_side_slider_favorites_enabled&&core.moduleAvailable("webmin")?"":" hidden")+'"><a href="#right-side-tabs-favorites" aria-controls="home" role="tab" data-toggle="tab">'+theme_language("theme_xhred_global_favorites")+'</a></li><li role="presentation" class="'+("#right-side-tabs-notifications"==e?"active ":"")+(vars.local_storage&&settings_side_slider_notifications_enabled&&(1==core.moduleAvailable("package-updates")||1==core.moduleAvailable("csf"))?"":" hidden")+'"><span class="right-side-tab-notification-asterix pointer-events-none hidden"></span><a href="#right-side-tabs-notifications" aria-controls="home" role="tab" data-toggle="tab">'+theme_language("theme_xhred_global_notifications")+'</a></li></ul><div class="tab-content"><div role="tabpanel" class="tab-pane'+("#right-side-tabs-sysinfo"==e?" active":"")+(settings_side_slider_sysinfo_enabled?"":" hidden")+'" id="right-side-tabs-sysinfo"><div class="info-container">'+t+'</div></div><div role="tabpanel" class="tab-pane'+("#right-side-tabs-favorites"==e?" active":"")+(settings_side_slider_favorites_enabled&&core.moduleAvailable("webmin")?"":" hidden")+'" id="right-side-tabs-favorites"><div class="favorites-dcontainer">'+a+'</div></div><div role="tabpanel" class="tab-pane'+("#right-side-tabs-notifications"==e?" active":"")+(vars.local_storage&&settings_side_slider_notifications_enabled&&(1==core.moduleAvailable("package-updates")||1==core.moduleAvailable("csf"))?"":" hidden")+'" id="right-side-tabs-notifications"><div class="list-group"></div></div><div class="right-side-tabs-dismiss"><i aria-label="'+theme_language("theme_xhred_tooltip_side_slider_pinned")+'" data-target-tooltip-callback="theme_xhred_tooltip_side_slider_pinned" data-trigger="side_slider_pinned" class="fa fa2 fa-fw fa-lg fa2-collapse-right"'+theme_inject_tooltip("theme_xhred_tooltip_side_slider_pinned",".right-side-tabs","right",!1,900)+'></i><i aria-label="'+theme_language("theme_xhred_tooltip_side_slider_sync_sysinfo")+'" data-target-tooltip-callback="theme_xhred_tooltip_side_slider_sync_sysinfo" class="fa fa-fw fa-lg fa-reload"'+theme_inject_tooltip("theme_xhred_tooltip_side_slider_sync_sysinfo",".right-side-tabs","right",!1,900)+'></i><i aria-label="'+theme_language("theme_xhred_tooltip_side_slider_open_favorites_control")+'" data-target-tooltip-callback="theme_xhred_tooltip_side_slider_open_favorites_control" class="fa fa-fw fa-star-o right-side-tabs-favorites-ctl pull-right"'+theme_inject_tooltip("theme_xhred_tooltip_side_slider_open_favorites_control",!1,"left",!1,900)+'></i><div class="dropdown obj-settings dropup pull-right"><i aria-label="'+theme_language("theme_xhred_global_settings")+'" data-target-tooltip-callback="theme_xhred_global_settings" data-toggle="dropdown" class="dropdown-toggle fa fa-fw fa-lg fa-settings pull-right theme obj-settings"'+theme_inject_tooltip("theme_xhred_global_settings",!1,!1,!1,900)+'><b class="caret"></b></i><ul class="dropdown-menu "><li><a data-ss-dd-theme-configuration href="'+v___location_prefix+'/webmin/edit_themes.cgi">'+theme_language("theme_xhred_global_theme_configuration")+'</a></li><li class="divider"></li><li class="dropdown-submenu right" role="menu"><a data-ss-dd-help tabindex="-1">'+theme_language("theme_xhred_global_help")+'</a><ul class="dropdown-menu shifted-top--'+($("#open_virtualmin").length?"50":"")+'" role="menu"><li class="dropdown-submenu right" role="menu"><a data-ss-dd-webmin tabindex="-1">'+theme_language("theme_xhred_titles_wm")+'</a><ul class="dropdown-menu shifted-top--20" role="menu"><li><a data-ss-dd-whats-new href="http://webmin.com/changes.html" target="_blank" tabindex="-1">'+theme_language("theme_xhred_global_whats_new")+'</a></li><li><a data-ss-dd-issue-report href="https://github.com/webmin/webmin/issues" target="_blank" tabindex="-1">'+theme_language("theme_xhred_global_report_an_issue")+'</a></li></ul></li><li class="dropdown-submenu right'+($("#open_virtualmin").length?"":" hidden")+'" role="menu"><a data-ss-dd-virtualmin tabindex="-1">'+theme_language("theme_xhred_titles_vm")+'</a><ul class="dropdown-menu shifted-top--10" role="menu"><li><a data-ss-dd-whats-new href="http://webmin.com/vchanges.html" target="_blank" tabindex="-1">'+theme_language("theme_xhred_global_whats_new")+'</a></li><li><a data-ss-dd-issue-report href="https://github.com/virtualmin/virtualmin-gpl/issues" target="_blank" tabindex="-1">'+theme_language("theme_xhred_global_report_an_issue")+'</a></li><li><a data-ss-dd-official-website href="http://virtualmin.com" target="_blank" tabindex="-1">'+theme_language("theme_xhred_global_official_website")+'</a></li></ul></li><li class="divider"></li><li class="dropdown-submenu right" role="menu"><a data-ss-dd-about-theme tabindex="-1">'+theme_language("theme_xhred_global_about_theme")+'</a><ul class="dropdown-menu shifted-top--50" role="menu"><li><a data-ss-dd-whats-new tabindex="-1" data-click-about>'+theme_language("theme_xhred_global_whats_new")+'</a></li><li><a data-ss-dd-issue-report href="https://github.com/authentic-theme/authentic-theme/issues" target="_blank" tabindex="-1">'+theme_language("theme_xhred_global_report_an_issue")+'</a></li><li class="dropdown-submenu right" role="menu"><a data-ss-dd-install-theme-update tabindex="-1" href="#" data-context-select-all="1">'+theme_language("theme_xhred_global_update")+'</a><ul class="dropdown-menu shifted-top--20" role="menu"><li><a data-ss-dd-install-release class="authentic_update" data-git="1" data-stable="1" tabindex="-1">'+theme_language("theme_xhred_force_upgrade_stable")+'</a></li><li><a data-ss-dd-install-development class="authentic_update" data-git="1" data-stable="0" tabindex="-1">'+theme_language("theme_xhred_force_upgrade_beta")+'</a></li></ul></li></ul></li></ul></li></ul></div><i aria-label="'+theme_language("theme_xhred_tooltip_side_slider_go_to_dashboard")+'" data-target-tooltip-callback="theme_xhred_tooltip_side_slider_go_to_dashboard" class="fa fa-fw fa-lg fa-dashboard pull-right"'+theme_inject_tooltip("theme_xhred_tooltip_side_slider_go_to_dashboard",!1,!1,!1,900)+'></i><i aria-label="'+theme_language("theme_xhred_tooltip_side_slider_delete_all_notification")+'" data-target-tooltip-callback="theme_xhred_tooltip_side_slider_delete_all_notification" class="fa fa-fw fa-lg fa-trash pull-right"'+theme_inject_tooltip("theme_xhred_tooltip_side_slider_delete_all_notification",!1,!1,!1,900)+'></i><i aria-label="'+theme_language("theme_xhred_tooltip_side_slider_mark_read_all_notification")+'" data-target-tooltip-callback="theme_xhred_tooltip_side_slider_mark_read_all_notification" class="fa fa-fw fa-lg fa-clear-all pull-right"'+theme_inject_tooltip("theme_xhred_tooltip_side_slider_mark_read_all_notification",!1,!1,!1,900)+'></i></div></div></div><div class="'+(settings_side_slider_enabled?"":" hidden ")+"right-side-tabs-toggler"+(settings_side_slider_fixed?" hidden":"")+'" data-background-style="'+settings_side_slider_palette+'"><button aria-label="'+theme_language("theme_xhred_side_slider_toggle")+'" type="button" class="btn btn-primary btn-menu-toggler" style="padding-left: 6px; padding-right: 5px;"><span class="badge badge-danger hidden"></span><i class="fa fa-fw fa-lg fa-bell"></i></button></div>';browser.detect.safari(1)?setTimeout(function(){$(document.body).append(i),test_visibility()}):($(document.body).append(i),test_visibility()),$('a[href="'+e+'"]:visible').length||$("#right-side-tabs ul.nav-tabs li a:visible").trigger("click"),$('#right-side-tabs .nav.nav-tabs a[data-toggle="tab"]').on("shown.bs.tab",function(e){var t=$(e.target).attr("href");localStorage.setItem(v___server_hostname+"-right-side-tab",t)}),$(document.body).on("click",'i[data-trigger="side_slider_pinned"]',function(e){e.stopImmediatePropagation();var t="1"==get_server_data("data-slider-fixed")?0:1;vars.slider_pinned=t,settings_side_slider_fixed=!settings_side_slider_fixed,set_visibility(t,void 0!==e.originalEvent?1:0),$(".dropdown.open.obj-settings .dropdown-toggle").dropdown("toggle"),$(window).resize()}).on("click",".right-side-tabs-favorites-ctl",function(e){$(".favorites-menu-outer").hasClass("hover")?$(".favorites-menu-close").trigger("click"):$(".user-link.favorites").trigger("click")}).on("click",'#right-side-tabs a:not([data-toggle="collapse"]):not([role="tab"]):not(.list-group-item)',function(e){$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")}).on("click","#right-side-tabs .info-container .graph-container-fw",function(e){var t,a=core.moduleAvailable("proc"),i=$(this).attr("class"),n=i.indexOf("cpu_")>-1?"cpu":i.indexOf("mem_")>-1?"mem":i.indexOf("virt_")>-1?"virt":"disk";"cpu"==n&&a?t=v___location_prefix+"/proc/index_cpu.cgi":"mem"!=n&&"virt"!=n||!a?"disk"==n&&core.moduleAvailable("disk-usage")?t=v___location_prefix+"/disk-usage":"disk"==n&&core.moduleAvailable("quota")&&(t=v___location_prefix+"/quota/list_users.cgi?dir=%2F"):t=v___location_prefix+"/proc/index_size.cgi",t&&get_pjax_content(t),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")}).on("click","#right-side-tabs .fa-dashboard",function(e){get_onbeforeunload_status()?(this.href=v___location_prefix+"/sysinfo.cgi",get_onbeforeunload_message(e,this)):get_pjax_content(v___location_prefix+"/sysinfo.cgi"),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")}).on("click","#right-side-tabs [data-click-about]",function(e){theme_update_notice(0)}).on("click",".right-side-tabs-toggler:not(.hidden)",function(e){$(this).hasClass("opened")?($(this).removeClass("opened"),$(this).animate({right:"0"},175),$(".right-side-tabs").animate({right:"-302"},175)):($(this).addClass("opened"),$(this).animate({right:"300"},350),$(".right-side-tabs").animate({right:"0"},350))}),$(".right-side-tabs .tab-pane").each(function(){$(this).css("height",$(document.body).outerHeight()-13)}),$(".right-side-tabs").on("mouseover",".list-group-item",function(e){$(this).find(".fa.fa-trash-o").removeClass("hidden"),!$(this).hasClass("opacity-0_3")&&$(this).find(".fa-clear-all").removeClass("hidden")}).on("mouseout",".list-group-item",function(e){$(this).find(".fa.fa-trash-o").addClass("hidden"),$(this).find(".fa-clear-all").addClass("hidden")}),$(".right-side-tabs").on("click","[data-port-href]",function(e){e.preventDefault(),e.stopPropagation(),open($(this).data("port-href"))}),$(".right-side-tabs").on("click",'a.list-group-item[data-type="csf_deny"]',function(e){e.preventDefault(),e.stopPropagation(),$(e.target).is(".fa.fa-trash-o")||$(e.target).is(".fa-clear-all")||$(e.target).is("[data-port-href]")||(get_bundle_csf(),$(document.body).append('<form action="'+v___location_prefix+'/csf/" method="post" class="hidden" id="csf_temporary_ip_entries"><input type="hidden" name="action" value="temp"></form>'),$("form#csf_temporary_ip_entries").submit().remove(),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click"))}),$(".right-side-tabs").on("click contextmenu","a.list-group-item",function(e){e.preventDefault();var t=$(e.target).is(".fa.fa-trash-o"),a=$(e.target).is(".fa-clear-all"),i=$(e.target).is("[data-port-href]");if((t||a||i)&&(e.stopPropagation(),e.stopImmediatePropagation()),"contextmenu"==e.type)return $(this).find(".fa-clear-all").trigger("click"),e.preventDefault(),void e.stopPropagation();if(t||a||i){if($(e.target).is(".fa-clear-all"))return $(this).addClass("opacity-0_3"),$(this).find(".fa-clear-all").addClass("hidden"),void mark_notification_read($(this).attr("id"),$(this).data("type"),1,1);$(this).animate({opacity:"0"},175,function(){$(this).remove(),localStorage.removeItem(v___server_hostname+"-notifications_"+$(this).attr("id")+"_"+$(this).data("type")),mark_no_notifications()})}else $(this).attr("href")&&$(this).attr("href").length&&"undefined"!=$(this).attr("href")&&"csf_deny"!=$(this).attr("data-type")?($(this).addClass("opacity-0_3"),$(this).find(".fa-clear-all").addClass("hidden"),mark_notification_read($(this).attr("id"),$(this).data("type"),1,1),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click"),get_pjax_content($(this).attr("href"))):($(this).addClass("opacity-0_3"),mark_notification_read($(this).attr("id"),$(this).data("type"),1,1))}),$(".right-side-tabs-dismiss i.fa-clear-all").click(function(e){mark_group_notifications_read(!1)}),$(".right-side-tabs-dismiss i.fa-trash").click(function(e){$(".right-side-tabs .list-group-item:not(.no-notifications)").animate({opacity:"0"},175,function(){$(this).remove(),remove_all_notifications(),mark_no_notifications()})}),$(".right-side-tabs .tab-pane").mCustomScrollbar({axis:"y",theme:"minimal",scrollInertia:100,scrollButtons:!1}),mark_no_notifications(),check_notifications()}else get_server_data("data-slider-fixed","0"),$(".right-side-tabs-toggler").addClass("hidden")}),{test:test_visibility,state:set_visibility,badge:display_badges,notifications:{check:check_notifications,dismiss:mark_group_notifications_read},update:{favorites:update_right_pane_favorites},data:{fetch:sysinfo_update}}}(),plugins.dashboard=function(){var e=".container-fluid .panel-group .panel:not(#system-status)",t=function(){localStorage.removeItem(v___server_hostname+"-dashboard_panels")},a=function(){if(v___location_path&&v___location_path.indexOf("/sysinfo.cgi")>-1){var t=localStorage.getItem(v___server_hostname+"-dashboard_panels");if(null!=t){t=Object.entries(JSON.parse(t));for(var a=0;a<t.length;a++){var i=t[a][1]?"show":"hide";$(e+' .panel-heading[id="'+t[a][0]+'"]').next().collapse(i),a===t.length-1&&setTimeout(function(){document.querySelector("#content").scrollTo({top:vars.events.scrolled})})}}}},i=function(e){var t=e&&"<br>"!==e?1:0,a=$("#system-status > .panel-body > .table.table-hover");a.length&&(a.nextAll().remove(),t&&a.after(e))};return document.addEventListener("DOMContentLoaded",function(){$(document.body).on("shown.bs.collapse hidden.bs.collapse",""+e,function(){var t=$(""+e),a={};$.each(t,function(){$target=$(this).find(".panel-heading"),id=$target.attr("id"),state=$target.next(".panel-collapse").hasClass("in"),a[id]=state}),localStorage.setItem(v___server_hostname+"-dashboard_panels",JSON.stringify(a))})}),{restore:a,reset:t,update:{alerts:i}}}(),plugins.favorites=function(){var e=function(){return $("#favorites-menu .favorites-menu-content li:not(.exclude)").length},t=function(){var e=[];return $.each($("#favorites-menu .favorites-menu-content li:not(.exclude) a"),function(){var t=$(this).text(),a=$(this).attr("href"),i=$(this).find("[data-product]").attr("data-product");favorite={},get_server_data("webprefix")&&!a.includes("!edit")?favorite.link=link_type_convert(a.replace(get_server_data("webprefix"),""),1):favorite.link=link_type_convert(a,1),favorite.title=t.trim(),favorite.icon="virtualmin"==i?i+"":i,e.push(favorite)}),e},a=function(){"function"==typeof sortable&&$("#favorites-menu > div > nav > ul").length&&sortable("#favorites-menu > div > nav > ul",{items:":not(.favorites-title)",forcePlaceholderSize:!1}).on("sortupdate",function(){i()})},i=function(){$.ajax({type:"POST",url:v___location_prefix+"/settings-favorites_save.cgi",data:{favorites:'{"favorites":'+JSON.stringify(t(),null,4).replace(/\\n/g,"\\n").replace(/\\'/g,"\\'").replace(/\\"/g,'\\"').replace(/\\&/g,"\\&").replace(/\\r/g,"\\r").replace(/\\t/g,"\\t").replace(/\\b/g,"\\b").replace(/\\f/g,"\\f")+"}"},success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);plugins.slider.update.favorites()},error:function(e){}}),sortable("#favorites-menu > div > nav > ul")},n=function(){var t="favorites-menu .favorites-menu-content";0===e()&&($("#"+t+" li.favorites-no-message").removeClass("hidden"),$("#"+t+" .favorites-title sup a").addClass("hidden"))},s=function(t,a,i){var n="favorites-menu .favorites-menu-content";0===e()&&($("#"+n+" li.favorites-no-message").addClass("hidden"),$("#"+n+" .favorites-title sup a").removeClass("hidden"));var s;s='class="wbm-'+i+' wbm-sm"',$("#"+n+" li.favorites-title").after('<li class="menu-exclude" draggable="true"><a class="menu-exclude-link" target="page" href="'+link_type_convert(t,1)+'"><i data-product="'+i+'" '+s+'>&nbsp;</i><span class="f__c">'+a+'&nbsp;<small class="hidden" style="font-size: 0.6em; position: absolute; margin-top: -1px"><i aria-label="'+theme_language("theme_xhred_favorites_remove")+'" class="fa fa-fw fa-times"></i></small></span></a></li>')},r=function(e,t){$("#favorites-menu .favorites-menu-content").find('a[href="'+e+'"]').parent("li").remove(),!e.startsWith("!edit")&&$("#headln2c > .favorites, .xcustom-favorites").addClass("fa-star-o").removeClass("fa-star text-warning"),t||(n(),i())},o=function(e){var t=$("#favorites-menu li a.menu-exclude-link"),a=e,s=$('aside select option[value="'+a+'"]').attr("title");t&&t.length&&$.each(t,function(t,a){var i=$(a),n=i.attr("href"),o=i.find("span").text();n&&(n.includes(e)||o&&$.trim(o).startsWith(s))&&r(n,1)}).promise().done(function(){setTimeout(function(){n(),i()},300)})},l=function(e,t){n();var a,i,s,r=$("#favorites-menu .favorites-menu-content li:not(.exclude) a").map(function(e,t){return link_type_convert($(t).attr("href"),1)}).toArray();if(e?s=e.find(".favorites-editor"):(s=$("#headln2c > .favorites, .xcustom-favorites"),a=link_type_convert(URI(v___location).resource(),1),i=a.includes("index.cgi")?a.replace("index.cgi",""):a+"index.cgi"),a&&$.inArray(a,r)>-1||i&&$.inArray(i,r)>-1||r.includes("!edit "+t)){var o=theme_language("theme_xhred_favorites_remove");s.addClass("fa-star").removeClass("fa-star-o").attr("aria-label",o),s.attr("data-original-title",o).tooltip("fixTitle")}else{var l=theme_language("theme_xhred_favorites_add");s.removeClass("fa-star").addClass("fa-star-o").attr("aria-label",l),s.attr("data-original-title",l).tooltip("fixTitle")}};return document.addEventListener("DOMContentLoaded",function(){!function(){$(document.body).on("click",'.favorites-menu a.menu-exclude-link, .right_pane_favorites_link:not([href^="!edit"])',function(){var e=$(this).attr("href"),t=e.startsWith("!edit"),a=Test.strContains(e,"virtual-server/")?"dom":!!Test.strContains(e,"server-manager/")&&"id",i=Test.strContains(e,"gparent")?"gparent":a,n=URI.parseQuery(URI(e).query())[i],s="dom"===a?"virtualmin":"id"===a?"cloudmin":"webmin",r=$('.switch-toggle input:not([id="open_'+s+'"]):checked').length;a?setTimeout(function(){$("aside select").val()!=n&&("dom"===a?plugins.navigation.get.virtualmin(n):"id"===a&&plugins.navigation.get.cloudmin(n))},300):!t&&r&&plugins.navigation.get.webmin()}).on("click","#headln2c > .favorites:not(.dummy), .xcustom-favorites:not(.dummy), button.favorites-editor",function(e){e.preventDefault();var t,a=URI(v___location).resource(),n=function(e){var t=Convert.htmlEscape(e.prev("strong").text()),a=t.match(/([^]+)\s\(([^)]+)\)/),i=a[1],n=a[2],s=n+"/"+i;return s=s.replace(/\/\//g,"/")},o=function(e){var t=theme_language("theme_xhred_favorites_remove");e.removeClass("fa-star-o").addClass("fa-star text-warning").attr("aria-label",t),e.attr("data-original-title",t).tooltip("fixTitle")},l=function(e){var t=theme_language("theme_xhred_favorites_add");e.addClass("fa-star-o").removeClass("fa-star text-warning").attr("aria-label",t),e.attr("data-original-title",t).tooltip("fixTitle")},_=$(this),d=_.is(".favorites-editor"),c=$(".jsPanel button.favorites-editor").not(_);if(_.hasClass("fa-star-o")){if(o(_),d)$.each(c,function(){n($(this))===n(_)&&o($(this))}),(t=n(_))&&s("!edit "+t,theme_language("theme_xhred_file_editor")+" - "+t,"editor");else{var p=$("#headln2c > span[data-main_title]").text().trim(),g=$(".has-sub.active").text().trim(),h=$(".sub_active").text().trim(),f=h.trim()!==p.trim(),u="",m="";($t_uri_virtualmin||$t_uri_cloudmin)&&(u=$("aside .ui_select option:selected").text()),$('body[class^="'+v___module_file_manager+'"]').length&&(m=URI.parseQuery(URI(v___location).query()).path,m=m?"["+m+"]":"[/]"),s(a,(u.length?u+" - ":"")+(g.length?g+"/":"")+(h.length?h+(p.length&&f?": ":""):"")+(f?p:"")+(m.length?" "+m:""),$t_uri_virtualmin?"virtualmin":$t_uri_cloudmin?"cloudmin":"webmin")}i()}else l(_),d?($.each(c,function(){n($(this))===n(_)&&l($(this))}),(t=n(_))&&r("!edit "+t)):r(link_type_convert(a,1))}).on("click","#right-side-tabs .right_pane_favorites_link",function(e){$(".favorites-menu-outer.hover + .favorites-menu-close").trigger("click")}).on("click",".favorites-menu-close, nav.favorites-menu li a",function(){$(".favorites-menu-outer").removeClass("hover")}).on("keydown",function(e){"0px"==$(".favorites-menu-outer").css("left")&&27==e.keyCode&&$(".favorites-menu-outer").removeClass("hover")}),$("#favorites-menu .favorites-menu-content").on("mouseover","li:not(.exclude) span.f__c, li:not(.exclude) span.f__c small",function(){$(this).find("small").removeClass("hidden")}).on("mouseleave","li:not(.exclude) span.f__c, li:not(.exclude) span.f__c small",function(){$(this).find("small").addClass("hidden")}),$("#favorites-menu .favorites-menu-content").on("mouseover","li:not(.exclude) small",function(){$(this).find(".fa-times").removeClass("fa-times").addClass("fa-times-circle"),$(this).animate({"font-size":"0.7em","margin-top":"-2px","margin-left":"-1px"},160)}).on("mouseleave","li:not(.exclude) small",function(){$(this).find(".fa-times-circle").removeClass("fa-times-circle").addClass("fa-times"),$(this).animate({"font-size":"0.6em","margin-top":"-1px","margin-left":"0"},80)}),$("#favorites-menu .favorites-menu-content").on("click","li:not(.exclude) small .fa-times-circle",function(e){e.preventDefault(),e.stopPropagation(),r($(this).parents("a").attr("href"))})}(),a()}),{detect:l,fetch:t,remove:o}}(),plugins.update_notice=function(){var e="pointer-events-none bg-filter-grayscale-opacity50",t="bg-filter-blur-grayscale-opacity50";$(document.body).on("hide.bs.modal","#update_notice",function(){$(this).hasClass("r")?($(document.body).append('<div class="update_notice_overlay" style="position: absolute; z-index: 10000001; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; background-color: '+$("html").css("background-color")+' !important; pointer-events: none;"></div>'),$("div.update_notice_overlay").animate({opacity:1},480,function(){setTimeout(function(){theme_reload()},100)})):("0px"==___________content_initial_?$("#content").removeAttr("style"):$("#content").animate({"margin-left":___________content_initial_},320/1.5),$("aside").animate({"margin-left":0},320/1.5,function(){$(".right-side-tabs, .right-side-tabs-toggler").removeClass(e),setTimeout(function(){$(".container-fluid").removeClass(e+" "+t)},0)})),$("#update_notice").remove()}).on("show.bs.modal","#update_notice",function(){$("#update_notice").length;var a=$(this),i=$("aside").css("left");___________content_initial_=$("#content").css("margin-left"),________version_date_obj=a.find(".modal-body > h4:first-child"),________version_curr_text=________version_date_obj.text().split(/\s+/)[1],________version_first_text=$(".versionSeparator:last").text(),________multi_in_branch=$(".versionSeparator").length,_____version__x=________version_first_text+"..."+v___theme_version;var n=$(".versionSeparator"),s=theme_language("theme_xhred_global_development_version");$.each(n,function(){$(this).attr("target","_blank")}),setTimeout(function(){$(".container-fluid").addClass(t)},0),$("#content").animate({"margin-left":0},320),$("aside").animate({"margin-left":i},320),$(".right-side-tabs, .right-side-tabs-toggler, .container-fluid").addClass(e);var r=$(this).find(".modal-body h4"),o=$(this).find(".modal-body h4:first");if(!$(this).find(".modal-body h4:first .diffctl").length){var l=new RegExp(RegExp.quote(________version_curr_text),"g");________multi_in_branch&&(r.replaceText(l,"<span>"+_____version__x+"</span>"),r.replaceText(/Version/,"Versions"));var _=$(this).find('.modal-body h4:contains("alpha"), .modal-body h4:contains("beta"), .modal-body h4:contains("RC")').length;if(r.length&&_){var d=$(this).find('.modal-body a[href*="authentic-theme/releases"]:first').text().match(/-?(?:\d+(?:\.\d*)?|\.\d+)/);latest_release=parseFloat(d?d[0]:v___theme_version);var c=o.text(),p=c.split("..."),g=0,h=$('a.versionSeparator[href*="releases"]:not(:empty)').first().text();p[1]&&(g=p[0].replace("Versions ",""),o.text(o.text().replace(g,h))),o.append('<a class="btn btn-transparent diffctl text-dark text-force-link-hover'+(d||h?"":" hidden")+'" target="_blank" href="https://github.com/authentic-theme/authentic-theme/compare/'+(h.length?h:latest_release)+'...master"><i class="fa fa-lg fa-git-pull fa-flip-horizontal"></i></a>'),o.after('<span class="versionSeparator version_dev" style="margin-top: -32px;margin-right: 0;"><span class="smaller text-danger"><span>'+s+"</span></span></span>")}else o.append('<a target="_blank" class="btn btn-transparent diffctl changelogctl text-dark text-force-link-hover" href="https://github.com/authentic-theme/authentic-theme/blob/master/CHANGELOG.md"><i class="fa fa-1_50x fa-changelog'+(________multi_in_branch?" multi-ver":" single_ver")+'"></i></a>').append('<a target="_blank" href="https://github.com/authentic-theme/authentic-theme/releases/tag/'+________version_curr_text+'" class="versionSeparator margined-top-10">'+________version_curr_text+"</a>")}var f=[];$.each($(this).find('li:contains("Fix")'),function(){var e=$.trim($(this).text()),t="Fix bugs",a=t.replace(/\s/," other minor ");if(e===t||e===a){var i=$(this).parent("ul"),n=i.find("li").length,s=i.find("li:contains("+a+")").length;if(1===n||s){var r=i.prev("hr"),o=r.prev(".versionSeparator"),l=o.prev("ul").length,_=o.text();if(l){var d=i.next(".versionSeparator"),c=d.next().next("ul"),p=d.text();p&&(p=p.split("-")[0],d.text(p+"-"+_.split("-").pop()),o.remove(),r.remove(),i.remove(),s||c.find("li:contains("+t+")").length||c.append("<li> "+t+"</li>"))}}}if($(this).find(".label").length){var g=($(this),$(this)),h=g.parent("ul"),u=g.find("a:not(.bctl)");u.length;________multi_in_branch?(f.push(u),1===h.find("li").length&&(h.prev("hr").prev("a").remove(),h.prev("hr").remove(),h.addClass("no-data")),g.remove()):(g.find("a:first").before('<a class="btn btn-xxs btn-transparent bctl margined-right-8 text-semi-dark text-force-link-hover" style="padding-left: 1px; padding-right: 1px" href="javascript:;" ><i class="fa fa-plus-square-o"></i></a>'),g.find("a.bctl").click(function(e){u.toggleClass("hidden"),g.find("a.bctl i").toggleClass("fa-minus-square-o")}),u.addClass("obj-popup hidden"))}}).promise().done(function(){if(________multi_in_branch&&!$(".bctl").length&&f.length){$(".modal-body h4[data-development]").prev("hr").before('<hr class="hr-wavy margined-top-15"><div data-bugs><ul><li><span data-fixed-bugs data-fixed-bugs-obj>Fix bugs</span><span data-bugs-container></span></li></ul></div>'),$(".modal-body span[data-bugs-container]").append(f);var e=function(e,t){return parseInt($(t).text().replace("#",""))<parseInt($(e).text().replace("#",""))?1:-1};$(".modal-body span[data-bugs-container] a").sort(e).appendTo(".modal-body span[data-bugs-container]");var t=$("span[data-fixed-bugs]"),a=($("span[data-bugs-container]"),$(".modal-body span[data-bugs-container]").find("a:not(.bctl)")),i=a.length;t.html([t.text().slice(0,4),i+" ",t.text().slice(4)].join("")),t.append('<a class="btn btn-xxs btn-transparent bctl margined-left-4 text-semi-dark text-force-link-hover" style="padding-left: 1px; padding-right: 1px" href="javascript:;" ><i class="fa fa-plus-square-o"></i></a>'),t.find("a.bctl").click(function(){a.toggleClass("hidden"),t.find("a.bctl i").toggleClass("fa-minus-square-o")}),a.addClass("obj-popup hidden");var n=$("div[data-bugs]"),s=n.find("a:not(.bctl)").length;!s&&n.prev(".hr-dashed").remove(),!s&&n.remove()}var r=$(".modal#update_notice h4 span");if(Test.strContains(r.text(),"...")&&Test.strContains(r.text(),"patch")){var o=parseInt(r.text().split("...")[1].substr(-1,1));o&&$.each($(".versionSeparator:not(.version_dev)"),function(e,t){e+1!=o?$(this).addClass("hidden"):$(this).text($(this).text()+"-"+theme_language("theme_xhred_global_release").toLowerCase())})}})})},plugins.icons_row=function(){$(document.body).on("click",".inline-row input",function(e){$(this).is(":checked")?$(this).parents(".gl-icon-container").addClass("highlighted"):$(this).parents(".gl-icon-container").removeClass("highlighted")}).on("click contextmenu","div.icons-container, div.small-icons-container",function(e){var t=$(e.target).find("a[href]").first();if("click"===e.type&&$(e.target).is($(this))&&t.length)return void t.trigger("click");if("click"===e.type&&$(e.target).is(".gl-icon-select")&&!$.support.spa)e.preventDefault(),$(this).trigger("contextmenu");else if("contextmenu"===e.type){e.preventDefault(),$(this).find("input").is(":checked")?($(this).find("input").prop("checked",!1),$(this).removeClass("highlighted")):$(this).find("input").length&&($(this).find("input").prop("checked",!0),$(this).addClass("highlighted"));var a=$(e.target).is(".icon_link")?$(e.target).parent(".gl-icon-container").find(".fa-select, .fa-selected"):$(e.target).is(".gl-icon-select")?$(e.target):$(e.target).is("img")?$(e.target).parent("a").parent(".gl-icon-container").find(".fa-select, .fa-selected"):$(e.target).find(".fa-select, .fa-selected");a.hasClass("fa-select")?a.removeClass("fa-select").addClass("fa-selected"):a.removeClass("fa-selected").addClass("fa-select")}"function"==typeof db_check_selected&&db_check_selected()}).on("click",".row.icons-row.vertical-align .icons-container, .row.icons-row.vertical-align .small-icons-container",function(){$(this).hasClass("forged-xx-skip")})},plugins.chooser=function(){var e=function(e){$(".mppopup .cspinner.hidden").removeClass("hidden"),$.ajax({type:"POST",url:e,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);var t=e.replace(/<(!doctype|script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/<\/body>|<\/html>/gi,""),a=$(t).filter(".table").html(),i=$(t).filter(".table").prev("b").html();i=n(i),$(".mppopup .modal-body").html(i+'<table class="table table-hover table-condensed table-striped">'+a+"</table>"),$v__mpp__g_gp=0,$(".mppopup_filter_input").focus(),$(".mppopup_filter_input").val("")}})},t=function(e){return e.replace(/&file.*&chroot/,"&file="+Convert.uriEncodeComponent(($v__mpp__g_ol+"/").replace(/\/\/+/g,"/").replace(/:\//g,"://"))+"&chroot")},a=function(e,t){var a=e.prev('input[type="text"], input[name]');return a.is("input")||e.prev("textarea").length||e.prev("br").prev("textarea").length?a.length||a.is("input")||!t||(a=e.prev("textarea"),a.length||(a=e.prev("br").prev("textarea"))):a=e.prev("span:not(.awradio)").find('input[type="text"]'),a},i=function(e,t,a){if(a){if($(".refInputData").is("textarea")){var i=$(".refInputData")
;i.val()?i.val(i.val()+"\n"+e.replace(/\/\/+/g,"/").replace(/:\//g,"://")):i.val(e.replace(/\/\/+/g,"/").replace(/:\//g,"://"))}else $(".refInputData").val(e.replace(/\/\/+/g,"/").replace(/:\//g,"://"));var n=$(".refInputData").parent("td").prev("td").find('input[type="radio"]'),s=$(".refInputData").parent("span").prev("span").find('input[type="radio"]'),r=$(".refInputData").prev("span").find('input[type="radio"]'),o=$(".refInputData").prev("select").find('option[value="*"]');s.length?s.trigger("click"):r.length?r.trigger("click"):o.length?o.parent("select").val("*").trigger("change"):n.trigger("click")}t&&$("body .mppopup").modal("hide")},n=function(e){e=$.url(e).attr("path").replace(/\/$/g,"").split("/");var t="";return $.each(e,function(e,a){t+=""===a?'<a href="#'+e+'">'+(0==get_access_level()?'<i class="fa fa-folder-root margined-left--5"></i>':'<i class="fa fa-user text-light margined-left--5"></i>')+"</a>\n":'<a href="#'+e+'">'+a+"</a>\n"}),'<nav class="breadcrumbx">'+t+'</nav><span class="cspinner hidden" style="margin-top: 2px; margin-left: 8px;"><span class="cspinner-icon smaller"></span></span>'};return document.addEventListener("DOMContentLoaded",function(){!function(){var s=document.body;$(s).on("dblclick",'.mppopup a[onclick*="fileclick("], .mppopup a[onclick*="parentdir("]',function(e){e.preventDefault()}).on("dblclick",'.mppopup a[onclick*="select("]',function(){$(".mppopup button[data-mppopup_confirm]").trigger("click")}).on("click",'.mppopup a[onclick*="fileclick("], .mppopup a[onclick*="parentdir("]',function(a){a.preventDefault(),a.stopPropagation(),a.stopImmediatePropagation();var n=this;if(n.clicks||(n.clicks=0),n.timer||(n.timer=null),n.clicks++,$data_mppopup_value.val($v__mpp__g_ol),1===n.clicks)n.timer=setTimeout(function(){if(n.clicks=0,"undefined"==typeof $v__mpp__g_gp&&($v__mpp__g_gp=0),$v__mpp__g_gp){e(t($v__mpp__g_op))}else i($v__mpp__g_ol,0,0);$v__mpp__g_gp=0},vars.event.double_click_delay);else if(clearTimeout(n.timer),n.clicks=0,$v__mpp__g_olt){var s=t($v__mpp__g_op);e(s)}else i($v__mpp__g_ol,1,1)}).on("click",".mppopup button[data-mppopup_confirm]",function(){i($data_mppopup_value.val(),1,1),core.curModule("custom")&&refInput.trigger("input")}).on("show.bs.modal",".mppopup",function(){v__mpp__ml_t__e=0,$data_mppopup_value=$(".mppopup input[data-mppopup_value]"),$('.mppopup input[data-role="tagsinput"]').tagsinput({onTagExists:function(e,t){t.hide().fadeIn(),v__mpp__ml_t__e=1}})}).on("shown.bs.modal",".mppopup",function(){var e=$("body .mppopup").find(".modal-head");$("body .mppopup").find(".modal-body"),$("body .mppopup").find(".modal-body table"),e.find(".mppopup_filter > input");setTimeout(function(){$(".mppopup_filter_input").animate({opacity:1},0),$(".mppopup_filter_input").focus()},0)}).on("hidden.bs.modal",".mppopup",function(){refInput.removeClass("refInputData"),$('.mppopup input[data-role="tagsinput"]').tagsinput("destroy"),$("body .mppopup").remove(),$("button[data-mmclick].disabled, input[data-mmclick].disabled").removeClass("disabled").removeAttr("disabled")}).on("click",".mppopup_multi_done",function(){refInput.val($.trim($('.mppopup input[data-role="tagsinput"]').val().replace(/,/g," "))),$('.mppopup span[aria-hidden="true"]').trigger("click")}).on("keyup",".mppopup_filter_input",function(e){var t=e.which,a=$(".mppopup table tbody tr:visible"),i=a.find("td:first-child a");if(!$(".mppopup .breadcrumbx").length){if(13!=t||1!==a.length||e.shiftKey){if(13==t&&1===a.length&&e.shiftKey){i.trigger("click").trigger("dblclick");var n=$(".mppopup .mppopup_multi_done:visible");n.length&&setTimeout(function(){n.trigger("click")},240)}}else i.trigger("click");$(".mppopup table tbody tr.noresults").length||$(".mppopup table tbody").append('<tr class="hidden noresults"><td class="text-center" colspan="'+$(".mppopup table tbody tr:first-child td").length+'">'+theme_language("theme_xhred_global_no_results_found")+"</td></tr>");var s=$(".mppopup table tbody tr:visible:not(.noresults)"),r=$(".mppopup table tbody tr.noresults");s.length?r.addClass("hidden"):r.removeClass("hidden")}}).on("click","button[data-mmclick]:not(.disabled), input[data-mmclick]:not(.disabled)",function(e){e.preventDefault(),e.stopPropagation(),refInput=a($(this),1);var t=$(this),i=refInput.val(),s=encodeURIComponent(i),r=$(this).attr("data-mmclick"),o=r.match("window.open\\(['\"]*(.*?)(\\s*['\"]*,.*?)"),l=o[1].match(/(\w+\.[a-z]{3,4})/gi)[0],_=l.replace(".cgi",""),d=!1,c=!1;if(t.addClass("disabled").attr("disabled","disabled"),o[1]){var p=o[1].replace("encodeURIComponent(ifield.value)","refInputCurrValSafe");p=p.replace('"+"',"").replace('"+',"").replace("refInputCurrValSafe",s);var g=function(e,t,a,n,s,r,o,l,d,c,p){var g;r||(r=String()),o||(o=String()),g=s?'<div class="modal-footer"><div class="input-group"><input data-role="tagsinput" class="form-control ui_textbox" type="text" value="'+(i?i.replace(/ /g,","):"")+'"><span class="input-group-btn mppopup_multi_done"><button type="button" class="btn btn-success heighter-28"><i class="fa fa-fw fa-circle-check"> </i>&nbsp;'+theme_language("theme_xhred_global_select")+"</button></span></div></div>":'<div class="modal-footer"><div class="input-group"><input class="form-control ui_textbox" data-mppopup_value type="text" value="'+(refInput.is("textarea")?"":i)+'"><span class="input-group-btn mppopup_string_done"><button type="button" class="btn btn-success heighter-28" data-mppopup_confirm><i class="fa fa-fw fa-circle-check"> </i>&nbsp;'+theme_language("theme_xhred_global_select")+"</button></span></div></div>";var h='<div class="modal fade fade5 mppopup" tabindex="-1" role="dialog"><div class="modal-dialog '+r+'" role="document"><div class="modal-content"><div class="modal-header '+o+'"><button type="button" class="close" data-dismiss="modal" aria-label="'+theme_language("theme_xhred_global_close")+'"><span aria-hidden="true">&times;</span></button>'+(d?"":'<h4 class="modal-title"><div class="mppopup_filter"><input class="form-control ui_textbox mppopup_filter_input" style="opacity: 0" type="text" placeholder="'+theme_language("theme_xhred_datatable_filter")+'" size="50" onkeyup="filter_match(this.value,\'row\',true);"></div></h4>')+'</div><div class="modal-body '+_+'">'+e+"</div>"+(l?"":g)+"</div></div></div>";$(document.body).append(h),refInput.addClass("refInputData"),$("body .mppopup").on("shown.bs.modal",function(){c&&"function"==typeof c&&c()}).on("show.bs.modal",function(){p&&"function"==typeof p&&p()}).modal("show")},h=function(e){e[1].startsWith("/")?$v__mpp__g_op=e[1]:$v__mpp__g_op="/"+e[1]},f=String(),u='form[action*="backup_sched.cgi"], form[action*="save_newquotas.cgi"], form[action*="save_validate.cgi"]';if("cron_chooser"===_){f="cron_chooser.cgi?complex="+$(u).find('[name="enabled_hidden"], [name="sched_hidden"]').val()}$.ajax({type:"POST",url:f||p,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);var t=e,a=e.match('<frame.*?src="([^"]+)"');if("cron_chooser"===_){var i=t;i=$(i).filter("form")[0].outerHTML,i=i.replace(/<table/,"<table class='table table-condensed table-hardcoded' "),d=function(){page_radios_evolve('.popup_cron_chooser input[type="radio"]:not(.iawobject)')},c=function(){$(".popup_cron_chooser form").on("submit",function(e){e.preventDefault(),e.stopPropagation();var t=$(this),a=$(u),i=t.parents(".modal.mppopup.in"),n=t.serialize();$.ajax({type:"POST",url:$(this).attr("action"),data:n,dataType:"text",success:function(e){var t=e.match(/top\.opener\.hfield\.value\s*=\s*"(.*?)"/),n=e.match(/top\.opener\.cfield\.value\s*=\s*"(.*?)"/);n&&refInput.val(n[1]),t&&a.find('[name="enabled_hidden"], [name="sched_hidden"]').val(t[1]),i.modal("hide")}})})},g('<div class="popup_cron_chooser">'+i+"</div>","",0,refInput,1,"modal-lg","modal-no-header",1,1,c,d)}else if($.isArray(a)&&a[1]&&a[1].indexOf("&multi=1")===-1)h(a),$.ajax({type:"POST",url:$v__mpp__g_op,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);var t=e.replace(/<(!doctype|script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/<\/body>|<\/html>/gi,""),a=$(t).filter(".table").html(),i=$(t).filter(".table").prev("b").html(),s=n(i);0===$(a).find("td").length&&(a=a.replace("thead","tbody"),a=a.replace("<tr>",'<tr class="tr_tag"><td data-td-e class="text-center">'+theme_language("theme_xhred_datatable_semptydirectory")+"</td>")),t=s+'<table class="table table-hover table-condensed table-striped">'+a+"</table>",g(t,"type1",0,refInput,0)}});else if($.isArray(a))h(a),$.ajax({type:"POST",url:$v__mpp__g_op,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);var t=e.replace(/<(!doctype|script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/<\/body>|<\/html>/gi,"");t='<table class="table table-hover table-condensed table-striped type2">'+$(t).filter("table").html()+"</table>",g(t,"type2",0,refInput,1)}});else{if($.isArray(a)&&a[1].indexOf("&multi=1")===-1)return;var i=t,s=$(i).filter("table").html();g('<table class="table table-hover table-condensed table-striped type2" data-target="'+refInput+'">'+s+"</table>","",1,refInput,0)}}})}else $(this).removeClass("disabled"),$(this).attr("onclick",$(this).attr("data-mmclick")).removeAttr("data-mmclick"),$(this).trigger("click")})}()}),{target:a}}(),plugins.navigation=function(){document.addEventListener("DOMContentLoaded",function(){s(),o(),$("aside").on("click",".select2-container .select2-selection__arrow b",function(e){e.preventDefault(),e.stopPropagation()}).on("click",'a[href*="/file/"], a[href*="history.cgi"]',function(e){e.preventDefault(),e.stopPropagation(),window.open($(this).attr("href"),"_blank")}).on("contextmenu",".switch-toggle label",function(e){e.preventDefault();var t=$(this).attr("for").replace("open_","");if($(this).prev("input").is(":checked")){var a=v___location_href;set_server_theme_temp_data("goto",link_type_convert(a,1)),setTimeout(function(){theme_open_new_tab(a)},200)}else if("virtualmin"===t||"cloudmin"===t){var i;i="cloudmin"===t?"/server-manager/index.cgi":"/virtual-server/index.cgi";var n=link_type_convert(i,2);set_server_theme_temp_data("goto",link_type_convert(n,1)),setTimeout(function(){theme_open_new_tab(n)},200)}else if("webmail"===t){var s=v___location_prefix+"/mailbox/index.cgi?"+$__theme_navigation;set_server_theme_temp_data("goto",link_type_convert(s,1)),setTimeout(function(){theme_open_new_tab(s)},200)}else{var s=v___location_prefix+"/sysinfo.cgi?"+$__theme_navigation;set_server_theme_temp_data("goto",link_type_convert(s,1)),setTimeout(function(){theme_open_new_tab(s)},200)}}).on("click",".switch-toggle input.dynamic",function(e){if(get_onbeforeunload_status()){e.preventDefault();var t=$(".switch-toggle input:checked").attr("id");return void get_onbeforeunload_message([],{href:"::switch::"+t})}return"open_thirdlane"==$(this).attr("id")?void(location.href=v___location_prefix+"/asterisk/index.cgi"):(v($(this).attr("id").replace("open_","")),"open_dashboard"==$(this).attr("id")?void get_pjax_content(v___location_prefix+"/sysinfo.cgi"):void get_navigation_and_content($(this).attr("id").replace("open_",""),0,0))}).on("focus",".sidebar-search",function(){if($("body").hasClass("loading-bg"))return void $(this).blur();d("c",!1)}).on("blur",".sidebar-search",function(){setTimeout(function(){d("c",!0)},150)}).on("click",'.navigation a[target="page"], .user-links a[target="page"]',function(){r()}).on("click",".navigation > li .navigation_external_link",function(e){e.preventDefault(),e.stopPropagation(),b=$(this),window.open(b.attr("href"),"_blank")}).on("click",".navigation > li:not('.sub-wrapper'):not('.menu-container'):not('.navigation_external'):not([data-linked])",function(e){if(e.preventDefault(),e.stopPropagation(),v___blocked_navigation=1,"undefined"==typeof $processing&&($processing=!1),!$processing){$processing=!0;var t=$("a",this).attr("href"),a=$("a",this).attr("target"),i=$(this);a&&$(".navigation > li > ul.sub > li").each(function(){$(this).removeClass("sub_active").find("span.current").remove()}),$.when($("#sidebar .navigation > li").each(function(){var e=$(this),t=e.find("a"),a=t.is("[data-has-sub-link]");e.is(i)||(e.removeClass("active"),"#search"!=e.find("a").attr("href")&&a&&$(e.find("a").attr("href")).slideUp(175))})).done(function(){i.hasClass("active")?i.removeClass("active"):"#hide"!=t&&!a&&i.addClass("active"),setTimeout(function(){$(t).is(":visible")&&"#hide"!=t&&!a?i.addClass("active"):i.removeClass("active"),$processing=!1},350),$(t).slideToggle(175)}),"#search"==t&&$('#sidebar input[name="search"]').focus()}}).on("click",".navigation > li > ul.sub > li:not('.menu-container')",function(e){if(!e.target||!$(e.target).is("li")){var t="MacIntel"===window.navigator.platform?1:0;if(!(!t&&e.ctrlKey||t&&e.metaKey)){var a=$(this);$(".navigation > li:not('.has-sub')").removeClass("sub_active").find("span.current-large").remove(),$(".navigation > li > ul.sub > li").each(function(){$(this).removeClass("sub_active").find("span.current").remove()}),$("#webmin_search_form").find('input[name="search"]').val(""),a.addClass("sub_active").append('<span class="current"></span>')}}}).on("click",'a[data-refresh="true"]',function(e){e.preventDefault(),page_refresh()}).on("focus",".form-control.sidebar-search",function(e){$(".__logo").addClass("inited"),e.preventDefault(),e.stopPropagation(),vars.shell.history=0}).on("keydown","#webmin_search_form",function(e){var t=$(this),a=t.find("input.sidebar-search"),i=a.val();$("body").find(".-shell-port-");if(i&&13===e.keyCode)if(e.preventDefault(),i.startsWith("!"))core.moduleAvailable("shell")&&plugins.shell.open(i);else{$(this).find('input[name="mod"], input[name="title"]').remove(),"virtual-server"!==w()&&"server-manager"!==w()||$("<input>").attr({type:"hidden",name:"mod",value:w()}).appendTo($(this));var n=w(1),s=theme_language("theme_xhred_search_in_"+("mailbox"===n?"usermin":n));s=s?s:theme_language("theme_xhred_filemanager_context_search"),$("<input>").attr({type:"hidden",name:"title",value:s}).appendTo($(this));var r=$(this).attr("action")+"?"+$(this).serialize();get_onbeforeunload_status()?get_onbeforeunload_message(!1,{href:r}):(get_pjax_content(r),a.val(""))}}).on("click","[data-collapse-trigger]",function(e){e.stopImmediatePropagation();var t="1"==get_server_data("data-navigation-collapsed")?0:1;vars.navigation_pinned=t,settings_navigation_always_collapse=!settings_navigation_always_collapse,settings_navigation_always_collapse?(get_server_data("data-navigation-collapsed",1),$(".mobile-menu-toggler").removeClass("visible-xs"),r(1,void 0!==e.originalEvent?1:0)):(get_server_data("data-navigation-collapsed",0),$(".mobile-menu-toggler").addClass("visible-xs")),setTimeout(function(){page_resized()},0),$(window).resize()}).on("click",".user-links > li.favorites",function(e){$(".favorites-menu-outer").addClass("hover")}).on("click",".user-link.palette-toggle",function(e){theme_toggle_night_mode()}).on("click",".user-link.ported-console",function(e){plugins.shell.available()&&plugins.shell.open()}).on("click",'li[data-linked] a[href="'+v___location_prefix+'/shell/"], a[href="'+v___location_prefix+'/server-manager/shell.cgi"], a[href*="shell=1"]:not(a[href*="login.cgi"])',function(e){e.preventDefault(),e.stopPropagation(),plugins.shell.open()}).on("click",".__logout-link",function(e){progress.start(),get_server_theme_temp_data("goto",0)}).mCustomScrollbar({axis:"y",theme:"minimal",scrollInertia:100,scrollButtons:!1,callbacks:{onScroll:function(){$(".mobile-menu-toggler").is(":visible")||($(".form-control.sidebar-search").blur(),$("aside select")&&$("aside select").length>0&&$("aside select").hasClass("select2-hidden-accessible")&&$("aside select").select2("close"))}}})});var e=function(){var e=".navigation";$(e+" li.has-sub").removeClass("sub_active"),$(e+" > li:not('.has-sub')").removeClass("sub_active").find("span.current-large").remove(),$(e+" > li > ul.sub > li").removeClass("sub_active").find("span.current").remove(),$(e+" > li.has-sub").removeClass("active"),$(e+" > li > ul.sub").hide(),$(e+" > li > a > i.fa.fa-folder-open-o").removeClass("fa-folder-open-o")},t=function(t,a){if(Test.arrContains(["webmin_search.cgi","settings-user.cgi","settings-editor_favorites_read.cgi"],v___location_file))return void e();if(!v___blocked_navigation){if(void 0===a){var i=1,n=0,s=$('.navigation a[href*="'+v___location_path+'"]:not([data-parent-hidden]):first');$('.navigation a[href="'+v___location_resource+'"]:not([data-parent-hidden]):first, .navigation a[href*="'+link_type_convert(v___location_path,2)+'"]:not([data-parent-hidden]):first').length?(t=v___location_resource,n=1):$('.navigation a[href^="'+v___location_resource+'"]:not([data-parent-hidden]):first').length?(t=v___location_resource,i=0):Test.strContains(v___location_file,"cgi")&&s.length&&(t=s.attr("href"),i=0,"save_log.cgi"===v___location_file&&Test.strContains(v___location_query,"error")&&Test.strContains(t,"_log")&&(Test.strContains(t,"file=")||Test.strContains(t,"extra="))&&(t=$('.navigation a[href*="'+v___location_path+'"][href*="error"]:not([data-parent-hidden]):first').attr("href")));var t=t?t.replace("/edit_users.cgi","/list_users.cgi").replace("/edit_user.cgi","/list_users.cgi").replace("/edit_alias.cgi","/list_aliases.cgi").replace("/edit_database.cgi","/list_databases.cgi").replace("/save_database.cgi","/list_databases.cgi").replace("/edit_script.cgi","/list_scripts.cgi").replace("/script_form.cgi","/list_scripts.cgi"):t;!i||"config.cgi"!==v___location_file&&"uconfig.cgi"!==v___location_file||(t=$t_uri_virtualmin?v___location_prefix+"/config.cgi?virtual-server":$t_uri_cloudmin?v___location_prefix+"/config.cgi?server-manager":$t_uri_webmail?v___location_prefix+"/uconfig.cgi?mailbox":v___location_prefix+"/"+v___location_query+"/");var r=$t_uri_webmin||$t_uri_usermin;if(!t&&r)if(Test.strContains(v___location_file,".cgi")&&!Test.strContains(v___location_file,"sysinfo.cgi"))t=v___location_path.replace(v___location_file,""),page_extended()&&(t=v___location_prefix+"/webmin/");else if(!t){var o=new RegExp("^"+v___location_prefix,"i");t=get_server_data("data-uri").replace(o,"").split("/").filter(function(e){return 0!==e.length})[0],t=v___location_prefix+"/"+t}targeted_menu_link=n?$('.navigation a[href="'+t+'"]:not([data-parent-hidden]):first, .navigation a[href="'+link_type_convert(t,2)+'"]:not([data-parent-hidden]):first'):$('.navigation a[href^="'+t+'"]:not([data-parent-hidden]):first'),targeted_menu_link.length&&e()}else targeted_menu_link=$('.navigation a[href^="'+t+'"]:not([data-parent-hidden]):first'),targeted_menu_link.length&&e();targeted_menu_link.parent("li:not(.menu-exclude):not(.user-link)").addClass("sub_active").append('<span class="current-large"></span>').parent("ul.sub").show().parent("li:not(.menu-exclude):not(.user-link)").prev("li").addClass("active")}},a=function(){$(".mCSB_container, .mCSB_dragger").css("top","0"),!$("#_menu_loader").length&&$("body ul.navigation").before('<span id="_menu_loader" class="loading loading-sm"></span>'),$("body aside .mCSB_scrollTools, body ul.navigation, body ul.user-links").css("visibility","hidden"),$("aside ul.user-html").addClass("invisible")},i=function(){$("aside ul.user-html").removeClass("invisible"),$("body aside .mCSB_scrollTools, body ul.navigation, body ul.user-links").css("visibility","visible"),$("#_menu_loader").remove(),o(),bind_sameorigin(1),theme_to_new_tab()},n=function(){return $("#_menu_loader").length},s=function(){"none"==$("aside").css("transform")&&"1"!=$("html").attr("data-navigation-collapsed")&&($("aside").transition({x:settings_leftmenu_width},437.5,function(){$(".__logo")&&"none"==$(".__logo").css("transform")&&!$(".mobile-menu-toggler:visible").length&&$(".__logo").transition({y:"-140px"},262.5)}),setTimeout(function(){$(".switch-toggle").css("display","table")},1))},r=function(e,t){var a="mobile-menu-toggler",i=$(quirks.active_element()).is('input[name="settings_navigation_always_collapse"]');if(e&&(i=1),t)return $("."+a).addClass("selected").find("button").addClass("btn-primary").removeClass("btn-default"),void $("."+a).css("transform","translate("+settings_leftmenu_width+"px, 0px)");"function"==typeof jQuery().transition&&$("."+a+":visible").length&&$("."+a).attr("style")&&$("."+a).attr("style").indexOf("ease")==-1&&($(".__logo")&&$(".__logo").transition({y:0},262.5),$("aside, ."+a).transition({x:0},i?0:175,function(){$("."+a).removeClass("selected"),$(".switch-toggle").css("display","none"),$("aside").addClass("hidden-xs")}))},o=function(e){vars.navigation.select.back=!1,$(".form-control.sidebar-search").is(":focus")||$.each($("aside select > option"),function(){var e=$(this).text().match(/^\s{0,4}/)[0].length,t=$(this).text();settings_leftmenu_vm_cm_dropdown_icons&&(4===e&&t.indexOf("↱")===-1?$(this).html("&nbsp;&nbsp;&nbsp;&nbsp;↱&nbsp;"+t.replace(/\s/g,"")):2===e&&t.indexOf("↴")===-1&&$(this).html("&nbsp;&nbsp;↴&nbsp;"+t.replace(/\s/g,"")))}).promise().done(function(){var t=$("aside select");if(t.removeAttr("id"),t.length){t.removeAttr("onchange disabled"),!!t.data("select2")&&t.select2("destroy"),t.unbind("select2:select"),t.select2({minimumResultsForSearch:3});t.data("select2");e&&t.select2("open"),t.on("select2:selecting",function(){t.data("previous-value",$(this).val())}),t.on("select2:select",function(e){var t=e.currentTarget.value;"dom"===e.currentTarget.name?get_onbeforeunload_status()?(vars.navigation.select.back=!0,get_onbeforeunload_message(e,this,{"plugins.navigation.get.virtualmin":[t],get_default_virtualmin_content:[t]})):(y(t),get_default_virtualmin_content(t)):"sid"===e.currentTarget.name&&(get_onbeforeunload_status()?(vars.navigation.select.back=!0,get_onbeforeunload_message(e,this,{"plugins.navigation.get.cloudmin":[t],get_default_cloudmin_content:[t]})):(A(t),get_default_cloudmin_content(t)))}),t.on("select2:open",function(e){$.each($("select > option"),function(){if($(this).attr("style")&&$(this).attr("style").indexOf("italic")>-1){var e=$(this);setTimeout(function(){$("body").find('li[id$="'+e.attr("value")+'"]').attr("style","color: #"+(v___theme_night_mode_enabled?"9a5150":"e97471")+" !important;")},1)}}),$("body").find(".select2-container:not(.select2), "+v___class_select2_leak).addClass("select2-aside")}),t.on("select2:closing",function(e){$("body").find(".select2-container, "+v___class_select2_leak).removeClass("select2-aside")}),1===$("aside select option").length&&($(".select2 span").css("cursor","default"),$(".select2 .select2-selection__arrow").remove(),t.on("select2:open",function(){$(".select2-container .select2-dropdown").css("opacity","0")})),$.each($("aside select > option"),function(){$(this).attr("style")&&$(this).attr("style").indexOf("italic")>-1&&$(".select2-selection > .select2-selection__rendered").text().trim()==$(this).text().trim()&&$(".select2-selection > .select2-selection__rendered").attr("style","color: #"+(v___theme_night_mode_enabled?"9a5150":"e97471")+" !important;")})}})},l=function(e,t){var a=$("aside select");a.val(e).trigger("change"),t&&a.trigger("select2:select")},_=function(){if(vars.navigation.select.back){l($("aside select").data("previous-value"),0),vars.navigation.select.back=!1}},d=function(e,t){var i=function(e){return e&&(e.includes("http://")||e.includes("https://")||e.includes("ftp://")||e.includes("ftps://"))?1:0};if("c"!=e||($(".autocomplete-suggestions").remove(),$(".form-control.sidebar-search").removeAttr("disabled"),$(".form-control.sidebar-search").autocomplete("dispose"),!get_onbeforeunload_status()&&$(".form-control.sidebar-search").val(""),!t)){var n={},s="li:not(.menu-exclude):not(.user-link)";$.each($(s+' > ul[id^="global_"].sub > '+s+' > a, ul.navigation > [data-after] > a, ul.navigation > li > a[href*="virtual-server/index.cgi"], ul.navigation > li > a[href*="server-manager/index.cgi"]'),function(){var e=$(this).attr("href"),t=i(e),a=("/"==e.substring(0,1)?"":"/")+e;t&&(a=e),n[a]=$.trim($(this).text())}),$('li > a[target="page"][data-href="/virtual-server/index.cgi"], '+s+' > a[target="page"][data-href="/sysinfo.cgi"], '+s+' > a[target="page"][data-href="/virtual-server/pro/history.cgi"], '+s+' > a[target="page"][data-href="/server-manager/one_history.cgi"], '+s+' > a[target="page"][data-href="/server-manager/history.cgi"], '+s+' > a[target="page"][data-href="/mailbox/list_folders.cgi"], '+s+' > a[target="page"][data-href="/mailbox/list_ifolders.cgi"], '+s+' > a[target="page"][data-href="/mailbox/list_addresses.cgi"], '+s+' > a[target="page"][data-href="/filter/edit_forward.cgi"], '+s+' > a[target="page"][data-href="/filter/edit_auto.cgi"], '+s+' > a[target="page"][data-href="/filter/edit_auto.cgi"], '+s+' > a[target="page"][data-href="/filter/"], '+s+' > a[target="page"][data-href="/mailbox/edit_sig.cgi"]').each(function(){n[$(this).attr("data-href")]=$.trim($(this).text())});var o=$.map(n,function(e,t){if("undefined"!=t)return{value:e,url:t,data:{category:C()}}}),_={};(core.curModule("custom")||v___location_path==v___location_prefix+"/backup-config/"||v___location_path==v___location_prefix+"/backup-config/index.cgi"||v___location_path==v___location_prefix+"/usermin/"||v___location_path==v___location_prefix+"/usermin/index.cgi"||v___location_path==v___location_prefix+"/webmin/"||v___location_path==v___location_prefix+"/webmin/index.cgi"||v___location_path==v___location_prefix+"/acl/"||v___location_path==v___location_prefix+"/acl/index.cgi"||v___location_path==v___location_prefix+"/init/"||v___location_path==v___location_prefix+"/init/index.cgi"||v___location_path==v___location_prefix+"/mount/"||v___location_path==v___location_prefix+"/mount/index.cgi"||v___location_path==v___location_prefix+"/quota/"||v___location_path==v___location_prefix+"/quota/index.cgi"||v___location_path==v___location_prefix+"/fsdump/"||v___location_path==v___location_prefix+"/fsdump/index.cgi"||v___location_path==v___location_prefix+"/inittab/"||v___location_path==v___location_prefix+"/inittab/index.cgi"||v___location_path==v___location_prefix+"/logrotate/"||v___location_path==v___location_prefix+"/logrotate/index.cgi"||v___location_path==v___location_prefix+"/mailcap/"||v___location_path==v___location_prefix+"/mailcap/index.cgi"||v___location_path==v___location_prefix+"/pam/"||v___location_path==v___location_prefix+"/pam/index.cgi"||v___location_path==v___location_prefix+"/proc/"||v___location_path==v___location_prefix+"/proc/index_tree.cgi"||v___location_path==v___location_prefix+"/proc/index_user.cgi"||v___location_path==v___location_prefix+"/proc/index_size.cgi"||v___location_path==v___location_prefix+"/proc/index_cpu.cgi"||v___location_path==v___location_prefix+"/proc/index_tree.cgi"||v___location_path==v___location_prefix+"/proc/index_search.cgi"||v___location_path==v___location_prefix+"/cron/"||v___location_path==v___location_prefix+"/cron/index.cgi"||v___location_path==v___location_prefix+"/syslog/"||v___location_path==v___location_prefix+"/syslog/index.cgi"||v___location_path==v___location_prefix+"/useradmin/"||v___location_path==v___location_prefix+"/useradmin/index.cgi"||v___location_path==v___location_prefix+"/apache/"||v___location_path==v___location_prefix+"/apache/index.cgi"||v___location_path==v___location_prefix+"/bind8/"||v___location_path==v___location_prefix+"/bind8/index.cgi"||v___location_path==v___location_prefix+"/dhcpd/"||v___location_path==v___location_prefix+"/dhcpd/index.cgi"||v___location_path==v___location_prefix+"/dovecot/"||v___location_path==v___location_prefix+"/dovecot/index.cgi"||v___location_path==v___location_prefix+"/ldap-server/"||v___location_path==v___location_prefix+"/ldap-server/index.cgi"||v___location_path==v___location_prefix+"/virtualmin-nginx/"||v___location_path==v___location_prefix+"/virtualmin-nginx/index.cgi"||v___location_path==v___location_prefix+"/fetchmail/"||v___location_path==v___location_prefix+"/fetchmail/index.cgi"||v___location_path==v___location_prefix+"/mysql/"||v___location_path==v___location_prefix+"/mysql/index.cgi"||v___location_path==v___location_prefix+"/mysql/edit_dbase.cgi"||v___location_path==v___location_prefix+"/postgresql/"||v___location_path==v___location_prefix+"/postgresql/index.cgi"||v___location_path==v___location_prefix+"/postgresql/edit_dbase.cgi"||v___location_path==v___location_prefix+"/postfix/"||v___location_path==v___location_prefix+"/postfix/index.cgi"||v___location_path==v___location_prefix+"/procmail/"||v___location_path==v___location_prefix+"/procmail/index.cgi"||v___location_path==v___location_prefix+"/proftpd/"||v___location_path==v___location_prefix+"/proftpd/index.cgi"||v___location_path==v___location_prefix+"/mailboxes/"||v___location_path==v___location_prefix+"/mailboxes/index.cgi"||v___location_path==v___location_prefix+"/mailboxes/list_mail.cgi"||v___location_path==v___location_prefix+"/mailbox/"||v___location_path==v___location_prefix+"/mailbox/index.cgi"||v___location_path==v___location_prefix+"/samba/"||v___location_path==v___location_prefix+"/samba/index.cgi"||v___location_path==v___location_prefix+"/spam/"||v___location_path==v___location_prefix+"/spam/index.cgi"||v___location_path==v___location_prefix+"/squid/"||v___location_path==v___location_prefix+"/squid/index.cgi"||v___location_path==v___location_prefix+"/sshd/"||v___location_path==v___location_prefix+"/sshd/index.cgi"||v___location_path==v___location_prefix+"/webalizer/"||v___location_path==v___location_prefix+"/webalizer/index.cgi"||v___location_path==v___location_prefix+"/cpan/"||v___location_path==v___location_prefix+"/cpan/index.cgi"||v___location_path==v___location_prefix+"/htaccess-htpasswd/"||v___location_path==v___location_prefix+"/htaccess-htpasswd/index.cgi"||v___location_path==v___location_prefix+"/status/"||v___location_path==v___location_prefix+"/status/index.cgi"||v___location_path==v___location_prefix+"/net/"||v___location_path==v___location_prefix+"/net/index.cgi"||v___location_path==v___location_prefix+"/tcpwrappers/"||v___location_path==v___location_prefix+"/tcpwrappers/index.cgi"||v___location_path==v___location_prefix+"/fdisk/"||v___location_path==v___location_prefix+"/fdisk/index.cgi"||v___location_path==v___location_prefix+"/fail2ban/"||v___location_path==v___location_prefix+"/fail2ban/index.cgi"||v___location_path==v___location_prefix+"/nis/"||v___location_path==v___location_prefix+"/nis/index.cgi"||v___location_path==v___location_prefix+"/passwd/"||v___location_path==v___location_prefix+"/passwd/index.cgi")&&$($(".container-fluid .panel-body a[href]:not([href*='javascript'],[href*='list_users.cgi?dom'],[href*='edit_hdparm.cgi?disk'],[href*='blink.cgi?disk'],[href*='smart-status/index.cgi?drive'],[href*='help.cgi'],[href*='edit_user.cgi?new='],[href*='edit_user.cgi?idx='],[href*='edit_recipe.cgi'],[href*='up.cgi'],[href*='down.cgi'],[href*='virt_index.cgi'],[href*='save_log.cgi'],[href*='backup.cgi'],[href*='activate.cgi'],[href*='#'])")).each(function(){if(v___location_path==v___location_prefix+"/syslog/"||v___location_path==v___location_prefix+"/syslog/index.cgi")_["/"+v___location_path_lead_unslashed+$(this).parent("td").next("td[data-td-e]").next("td[data-td-e]").next("td[data-td-e]").find("a").attr("href")]=$.trim($(this).text());else{
v___location_path==v___location_prefix+"/backup-config/"||v___location_path==v___location_prefix+"/backup-config/index.cgi"?$description=$.trim($(this).parent("td").next("td[data-td-e]").next("td[data-td-e]").text()):v___location_path==v___location_prefix+"/mount/"||v___location_path==v___location_prefix+"/mount/index.cgi"||v___location_path==v___location_prefix+"/quota/"||v___location_path==v___location_prefix+"/quota/index.cgi"?$description=$.trim($(this).parent("td").next("td[data-td-e]").next("td[data-td-e]").text()):v___location_path==v___location_prefix+"/fsdump/"||v___location_path==v___location_prefix+"/fsdump/index.cgi"?$description=$.trim($(this).parents("td").next("td").next("td").next("td").find("label").find("tt").find("tt").text()):v___location_path==v___location_prefix+"/proc/"||v___location_path==v___location_prefix+"/proc/index_tree.cgi"||v___location_path==v___location_prefix+"/proc/index_user.cgi"||v___location_path==v___location_prefix+"/proc/index_size.cgi"||v___location_path==v___location_prefix+"/proc/index_cpu.cgi"||v___location_path==v___location_prefix+"/proc/index_tree.cgi"||v___location_path==v___location_prefix+"/proc/index_search.cgi"?v___location_path==v___location_prefix+"/proc/index_size.cgi"||v___location_path==v___location_prefix+"/proc/index_cpu.cgi"?$description=$.trim($(this).parent("td").next("td[data-td-e]").text())+" — "+$.trim($(this).parent("td").next("td[data-td-e]").next("td[data-td-e]").text())+" - "+$.trim($(this).parents("td").next("td").next("td").next("td").text()):v___location_path==v___location_prefix+"/proc/index_search.cgi"?$description=$.trim($(this).parent("td").next("td[data-td-e]").text())+" — "+$.trim($(this).parent("td").next("td[data-td-e]").next("td[data-td-e]").text())+" - "+$.trim($(this).parents("td").next("td").next("td").next("td").next("td").text()):$description=$.trim($(this).parent("td").next("td[data-td-e]").text())+" — "+$.trim($(this).parents("td").next("td").next("td").next("td").text()):v___location_path==v___location_prefix+"/useradmin/"||v___location_path==v___location_prefix+"/useradmin/index.cgi"?$description=$.trim($(this).parents("td").next("td").find("label").text())+" — "+$(this).text()+":"+$.trim($(this).parents("td").next("td").next("td").find("label").text())+" - "+$.trim($(this).parents("td").next("td").next("td").next("td").next("td").find("label").text())+", "+$.trim($(this).parents("td").next("td").next("td").next("td").next("td").next("td").find("label").text()):v___location_path==v___location_prefix+"/mailboxes/list_mail.cgi"||v___location_path==v___location_prefix+"/mailbox/"||v___location_path==v___location_prefix+"/mailbox/index.cgi"?$description=$.trim($(this).parents("td").next("td").next("td").next("td").find("label").text())+" — "+$.trim($(this).parents("td").next("td").find("label").text())+" ["+$.trim($(this).parents("td").next("td").next("td").find("label").text())+"]":v___location_path==v___location_prefix+"/cpan/"||v___location_path==v___location_prefix+"/cpan/index.cgi"?$description=$.trim($(this).parents("td").next("td").next("td").find("label").text()):v___location_path==v___location_prefix+"/fdisk/"||v___location_path==v___location_prefix+"/fdisk/index.cgi"?$description=$.trim($(this).parent("td").next("td[data-td-e]").text())+" - "+$.trim($(this).parent("td").next("td[data-td-e]").next("td[data-td-e]").text()):$description=$.trim($(this).parent("td").next("td[data-td-e]").text()),$description?$_description=!0:$_description=!1;var e=$.trim($(this).text());if(core.curModule("bind8")){var t=$(this).parents("form").prev("br").prev("b").find("tt");if(t.length){var a=t.text();!$(this).parent(".ui_links_row").length&&a&&(e=e+" ("+a+")")}}_[("/"==$(this).attr("href").substring(0,1)?"":"/")+v___location_directory_unslashed_trail_slashed+$(this).attr("href")]=e+($_description?" (":"")+$description+($_description?")":"")}});var d=$.map(_,function(e,t){if("undefined"!=t)return{value:e,url:t,data:{category:get_module_title()}}}),c={};$.each($(s+' > ul.sub:not([id^="global_"]) > '+s+' > a, ul.navigation > [data-linked]:not([data-after]) > a:not([href*="virtual-server/index.cgi"]):not([href*="server-manager/index.cgi"])'),function(e,t){c[("/"==$(this).attr("href").substring(0,1)?"":"/")+$(this).attr("href")]=$.trim($(this).text())}),$(s+' > a[target="page"]:not([data-href="/acl/edit_user.cgi"],[data-href="/virtual-server/index.cgi"],[data-href="/sysinfo.cgi"],[data-href="/virtual-server/pro/history.cgi"], [data-href="/mailbox/list_folders.cgi"], [data-href="/mailbox/list_ifolders.cgi"], [data-href="/mailbox/list_addresses.cgi"], [data-href="/filter/edit_forward.cgi"], [data-href="/filter/edit_auto.cgi"], [data-href="/filter/edit_auto.cgi"], [data-href="/filter/"], [data-href="/mailbox/edit_sig.cgi"])').each(function(e,t){$t_uri_usermin||h()||(c[$(this).attr("data-href")]=$.trim($(this).text()))});var p=$.map(c,function(e,t){if("undefined"!=t&&!Test.strContains(t,"/shell")&&!Test.strContains(t,"shell=1"))return{value:e,url:t,data:{category:$("aside .select2-selection__rendered").text()?'<span style="font-style: italic">'+$("aside .select2-selection__rendered").clone().children().remove().end().text()+"</span>":C()}}}),g={};$("aside select option").each(function(){g[$(this).val()+":::"+$(this).parent("select").attr("name")]=$.trim($(this).text())});var f=$.map(g,function(e,t){if("undefined"!=t)return{value:e,url:t,data:{category:$("aside select").data("autocomplete-title")}}}),u=f.concat(d).concat(p).concat(o);$(".form-control.sidebar-search").on("keydown",function(e){34!=e.keyCode&&33!=e.keyCode&&20!=e.keyCode&&17!=e.keyCode&&16!=e.keyCode&&9!=e.keyCode||(e.preventDefault(),e.stopPropagation())}),$(".form-control.sidebar-search").autocomplete({lookup:u,onSelect:function(e,t){var n=$.Autocomplete.externalEvent;if(!$.isEmptyObject(n)){var s=n.keyCode?n.keyCode:n.which;if(n.ctrlKey||n.shiftKey||n.altKey||n.metaKey||20===s||32===s||33===s||34===s||35===s||36===s||37===s||38===s||39===s||40===s||45===s||46===s||112===s||113===s||114===s||115===s||116===s||117===s||118===s||119===s||120===s||121===s||122===s||123===s||144===s||145===s)return}h()===!0&&$t_uri_dashboard&&2!=get_access_level()&&4!=get_access_level()&&v("webmin"),$(this).val("").blur(),r();var o=i(e.url);if("/"==e.url.substring(0,1)||o){if(e.url&&(o||e.url.includes("virtual-server/pro/history.cgi")||e.url.includes("server-manager/history.cgi")||e.url.includes("server-manager/one_history.cgi")))return void theme_open_new_tab(e.url,1);var _=e.url.indexOf(v___location_prefix)>-1?e.url:v___location_prefix+e.url;if(Test.strContains(v___location_prefix,v___target_servers_index)&&_&&_.endsWith("/servers/"))return;get_onbeforeunload_status()?(t&&t.preventDefault(),get_onbeforeunload_message([],{href:_})):get_pjax_content(_,["reference"])}else if(e.url&&e.url.indexOf(":::")>-1){var d=e.url.split(":::")[0];get_onbeforeunload_status()?get_onbeforeunload_message(p,this,{"plugins.navigation.select.set":[d,1]}):(a(),l(d,1))}},groupBy:"category"})}},c=function(e){if(!get_onbeforeunload_status()){var e=void 0===e||e==-1||""==e?$("aside select").val():e,t=$t_uri_virtualmin?"virtualmin":$t_uri_cloudmin?"cloudmin":$t_uri_usermin?"usermin":$t_uri_webmin?"webmin":"mail";"webmin"==t?(v("webmin"),x("webmin")):"virtualmin"==t?(v("virtualmin"),y(e)):"cloudmin"==t?(v("cloudmin"),A(e)):"usermin"==t?(v("usermin"),x("usermin")):"mail"==t&&(v("webmail"),x("webmail"))}},p=function(e){var t=$("aside select"),a=t.data("select2");e||(vars.navigation_select=a&&"undefined"!=a&&!e&&t.select2("isOpen")),e?$.each($("aside").find("forms"),function(){$(this).replaceTagName("form")}).promise().done(function(){o(vars.navigation_select)}):(a&&t.select2("destroy"),$.each($("aside").find("form"),function(){$(this).replaceTagName("forms")}))},g=function(){if("undefined"==typeof settings_leftmenu_width_initial&&(settings_leftmenu_width_initial=settings_leftmenu_width),matchMedia("(max-width: 1080px)").matches||"1"==$("html").attr("data-navigation-collapsed"))settings_leftmenu_width=260,page_adjust(settings_leftmenu_width,0);else{if(1===v___initial_load)return;settings_leftmenu_width=settings_leftmenu_width_initial,page_adjust(settings_leftmenu_width,settings_leftmenu_width)}},h=function(){return"1"==f("dashboard")},f=function(e){return e=e?'[id="open_'+e+'"]':String(),$(".switch-toggle input"+e).length},u=function(){v("dashboard"),e(),get_pjax_content(v___location_prefix+"/sysinfo.cgi")},m=function(){Test.string(v___theme_navigation_active)&&v(v___theme_navigation_active)},v=function(e){get_onbeforeunload_status()||($('.switch-toggle input:not([id="open_'+e+'"])').each(function(){$(this).removeAttr("checked")}).promise().done(function(){$("#open_"+e).length?$("#open_"+e).prop("checked",!0):$('.dynamic[name="product-switcher"]').first().prop("checked",!0)}),S())},x=function(n){get_onbeforeunload_status()||(a(),v("webmail"==n?"webmail":get_server_data("product")),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-navigation=1&xhr-navigation-type="+("webmail"==n?"webmail":"webmin"),data:!1,dataType:"text",success:function(a){if(Test.strContains(a,v___page_signin_form))return v___available_session=0,i(),void e();v___theme_navigation_active="webmail"==n?"webmail":get_server_data("product"),$("body ul.navigation").html(a),k(),i(),!get_server_data("loading")&&t(),"webmail"===n&&settings_mail_ui&&("object"==typeof mail?mail.folders.get():load.bundle(v___server_extensions_path+"/mail/mail",1,["mail.folders.get()"]))}}))},y=function(n){get_onbeforeunload_status()||(a(),v("virtualmin"),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-navigation=1&xhr-navigation-type=virtualmin"+(n?"&dom="+n:settings_right_virtualmin_default?"&dom="+settings_right_virtualmin_default:""),data:!1,dataType:"text",success:function(a){if(Test.strContains(a,v___page_signin_form))return v___available_session=0,i(),void e();v___theme_navigation_active="virtualmin",$("body ul.navigation").html(a),k(),i(),!get_server_data("loading")&&t()}}))},A=function(n){get_onbeforeunload_status()||(a(),v("cloudmin"),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-navigation=1&xhr-navigation-type=cloudmin"+(n||0===n?"&sid="+n:settings_right_cloudmin_default?"&sid="+settings_right_cloudmin_default:""),data:!1,dataType:"text",success:function(a){if(Test.strContains(a,v___page_signin_form))return v___available_session=0,i(),void e();v___theme_navigation_active="cloudmin",$("body ul.navigation").html(a),k(),i(),!get_server_data("loading")&&t()}}))},k=function(){var e=$("body ul.navigation").find("[data-x-buttons]"),t=e.find("ul[data-x-container]").html();$("body ul.user-links").html(t),e.remove(),plugins.shell.link()},C=function(){return $t_uri_webmin?theme_language("theme_xhred_titles_wm"):$t_uri_usermin?theme_language("theme_xhred_titles_um"):$t_uri_virtualmin?theme_language("theme_xhred_titles_vm"):$t_uri_cloudmin?theme_language("theme_xhred_titles_cm"):$t_uri_webmail?theme_language("theme_xhred_titles_mail"):$t_uri_dashboard?theme_language("theme_xhred_titles_dashboard"):void 0},w=function(e,t){return $t_uri_webmin?"webmin":$t_uri_usermin?"usermin":$t_uri_dashboard?"dashboard":$t_uri_virtualmin?t?"virtualmin":e?"virtualserver":"virtual-server":$t_uri_cloudmin?t?"cloudmin":e?"servermanager":"server-manager":$t_uri_webmail?"mailbox":void 0},S=function(){$t_uri_webmin=$('.switch-toggle input[id="open_webmin"]:checked').length?1:0,$t_uri_usermin=$('.switch-toggle input[id="open_usermin"]:checked').length?1:0,$t_uri_virtualmin=$('.switch-toggle input[id="open_virtualmin"]:checked').length?1:0,$t_uri_cloudmin=$('.switch-toggle input[id="open_cloudmin"]:checked').length?1:0,$t_uri_webmail=$('.switch-toggle input[id="open_webmail"]:checked').length?1:0,$t_uri_dashboard=$('.switch-toggle input[id="open_dashboard"]:checked').length?1:0};return{reset:e,select:{set:l,back:_,load:o},detect:t,load:{start:a,stop:i},collapse:r,reload:c,deform:p,lock:g,switch:{dashboard:{get:h,set:u},available:f,set:v,reset:m},get:{webmin:x,virtualmin:y,cloudmin:A,buttons:k},intersect:{virtualmin:function(e){var e="object"==typeof e?e.attr("href"):e,t=URI.parseQuery(URI(e).query()).dom||URI.parseQuery(URI(e).query()).gparent,a=$('select[name="dom"]'),i=a.val();t&&t!=i&&y(t)},cloudmin:function(e){var e="object"==typeof e?e.attr("href"):e,t=URI.parseQuery(URI(e).query()).id,t=t?t:URI.parseQuery(URI(e).query()).d,a=$('select[name="sid"]'),i=a.val();t&&t!=i&&A(t)}},state:{title:C,module:w,update:S,loading:n}}}(),plugins.messenger=function(){var e=function(e,t,a,i,n,s){var r=void 0===i?1:i,o=void 0===n||n;if(s=void 0===s?"":s,"hide-all"===e)return void Messenger().hideAll();if($.isArray(e)&&(e='<i class="fa fa-lg fa-fw fa-'+e[0]+'"></i> '+e[1]),$.isArray(s)){var l=s;s="messenger-fixed ",s+="messenger-on-"+l.join(" messenger-on-")}else s=s.length?"messenger-fixed messenger-on-"+s:"messenger-fixed messenger-on-bottom";"function"==typeof Messenger&&(Messenger.options={extraClasses:s,theme:"air"},window["Messenger_"+r]=Messenger().post({message:e,extraClasses:s,hideAfter:t,showCloseButton:o,type:a,id:r}))};return document.addEventListener("DOMContentLoaded",function(){(function(){if("function"==typeof Messenger.Message){var e,t,a,i={}.hasOwnProperty,n=function(e,t){function a(){this.constructor=e}for(var n in t)i.call(t,n)&&(e[n]=t[n]);return a.prototype=t.prototype,e.prototype=new a,e.__super__=t.prototype,e};e=jQuery,a='<div class="messenger-spinner">\n    <span class="messenger-spinner-side messenger-spinner-side-left">\n        <span class="messenger-spinner-fill"></span>\n    </span>\n    <span class="messenger-spinner-side messenger-spinner-side-right">\n        <span class="messenger-spinner-fill"></span>\n    </span>\n</div>',t=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return n(i,t),i.prototype.template=function(t){var n;return n=i.__super__.template.apply(this,arguments),n.append(e(a)),n},i}(Messenger.Message),Messenger.themes.air={Message:t},Messenger.options={extraClasses:"messenger-fixed messenger-on-bottom",theme:"air"}}}).call(this)}),{post:e}}(),plugins.upload=function(e){e.removeAttr("onsubmit"),e.on("submit.fm",function(e){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation();var t=moment().unix()+""+parseInt(1e5*Math.random()),a=$(this),i=a.find(".ui_form_end_submit"),n=a.find('input[type="file"]')[0],s=n.files.length,r=a.find('input[name="dir"]').val(),o=$(n.files).map(function(e,t){return t.name}).get(),l=o.join("\n"),_=function(){theme_restore_buttons_class(),$.fn.bootstrapFileInputReset(a),despinnerfy_buttons(0,i),i.addClass("disabled")},d=function(){s>1?plugins.messenger.post('<i class="fa fa-lg fa-fw fa-upload-cloud"></i>'+theme_language("theme_xhred_upload_successful").replace("$1","<em>"+s+"</em>").replace("$2","`<tt>"+r+"</tt>`").replace("<span",'<span title="'+l+'"'),10,"success","uploadSuccess_"+t,0,["top","right"]):plugins.messenger.post('<i class="fa fa-lg fa-fw fa-upload-cloud"></i>'+theme_language("theme_xhred_upload_successful_single").replace("$1","<em>"+s+"</em>").replace("$2","`<tt>"+r+"</tt>`").replace("<span",'<span title="'+l+'"'),10,"success","uploadSuccess_"+t,0,["top","right"])},c=function(e){var a=$(e.responseText).find("h3").text();return a.length?(plugins.messenger.post('<i class="fa fa-lg fa-fw fa-upload-cloud"></i>'+theme_language("theme_xhred_global_error")+": "+a.replace(/\s:\s/g," — "),15,"error","uploadError_"+t,0,["top","right"]),1):0};spinnerfy_buttons(i),window["progress_id_ref_"+t]=$.ajax({type:"POST",url:"upload.cgi?id="+t,processData:!1,contentType:!1,data:new FormData(a[0]),complete:function(e){_(),c(e)||200===e.status&&d()},error:function(){$("[data-progress-id="+t+"] .bottom_progress_cancel").trigger("click")}}),theme_message_dismiss("upload_error");var p=1;window["progress_id_ref_"+t+"_tracker"]=$.ajax({xhr:function(){var e=new window.XMLHttpRequest;return e.addEventListener("progress",function(e){var a=e.target.responseText,i=regex.matches(a,/.file\.value\s+=\s+"(.*)";/g,0,1),n=regex.matches(a,/.size\.value\s+=\s+"(.*)";/g,0,1),s=regex.matches(a,/.pc\.value\s+=\s+"(.*)";/g,0,1);if(i&&n&&s){p&&(p=0,_());var s=parseInt((s.match(/|/g)||[]).length/50*100);s>100&&(s=100),progress_percent.control(t,"success",s,[i,n,s])}if(Test.strContains(a,v___page_signin_form))return v___available_session=0,window["progress_id_ref_"+t].abort(),void window["progress_id_ref_"+t+"_tracker"].abort()},!1),e},type:a.attr("method"),url:v___location_prefix+"/uptracker.cgi?id="+t+"&uid="+(0===get_access_level()||1===get_access_level()?"":get_server_data("user-id")),complete:function(e){p&&(p=0,_()),theme_message_exists("uploadError_"+t)||200===e.status&&d()}})})};const snippets={};snippets.datetime={},snippets.page={},snippets.patches={},snippets.initial=function(){plugins.dashboard.reset(),snippets.get_goto()},snippets.form_pre_submitter=function(){$("body").on("click",'button.ui_form_end_submit[type="button"]:not(.disabled)',function(){var e=$(this).next('input[type="submit"].hidden'),t=$(this).parent(".btn-group").next('input[type="submit"].hidden');e.length||(e=t);var i=e.parent(),a=(i.parent("tr").find("form"),e.parents("form"));if(!a.length)return a=e.closest("form"),a.length||(a=i.prev("form")),a.length||(a=i.prev().prev("form")),a.length||(a=i.prev().prev().prev("form")),a.append(a.nextUntil(i)),void $.each(i.find("select, input"),function(){$('<input data-trigger-injected="1">').attr({type:"hidden",name:$(this).attr("name")?$(this).attr("name"):$(this).attr("id"),value:$(this).val()}).appendTo(a)}).promise().done(function(){a.submit()});var n=e.attr("name")?e.attr("name"):e.attr("id"),s=$.trim(e.val());$('<input data-trigger-injected="1">').attr({type:"hidden",name:n,value:s}).appendTo(a),e.trigger("click")}),$("body").on("click",'.ui_form_end_submit:not(.disabled), .page_footer_submit:not(.disabled):not([href*="javascript:history"])',function(){core.curModule("csf")?spinnerfy_buttons($(this),[2,-29,"small",!1]):spinnerfy_buttons($(this),!1,!1,!1)})},snippets.form_input_tester=function(e){if(e)return $(".btn-group.end_submits:visible button.ui_form_end_submit").hasClass("btn-warning dt-tester-btn");$(document).on("input.tester",'form:not([data-tester="1"]):not(#webmin_search_form)',function(e){if(!vars.pjax.post_page_fetch){var t=$(this);if(1!=t.attr("data-tester")){var i=t.find(".CodeMirror").length,a=$(this).attr("action");if(i&&!core.curModule("init")||(core.curModuleFile("mysql","")||core.curModuleFile("postgresql","")||core.curModuleFile("mysql","index.cgi")||core.curModuleFile("postgresql","index.cgi"))&&$(".ui_grid_table.table-hardcoded").length||core.curModuleFile("bind8","")||core.curModuleFile("bind8","index.cgi")||core.curModuleFile("mailbox","reply_mail.cgi")||core.curModuleFile("virtual-server","wizard.cgi")||core.curModuleFile("virtual-server","list_scripts.cgi")||core.curModuleFile("virtual-server","list_scripts.cgi")||core.curModuleFile("mysql","list_vars.cgi")||a&&a.includes("edit_tmpl.cgi")||$(".modal.in.mppopup").length)return void t.attr("data-tester",1);var n=$(e.target).is('input[type="checkbox"], input[type="radio"]'),s=$(e.target).parents("tr");if(!(n&&s&&s.length&&s.attr("class")&&s.attr("class").includes("ui_checked"))){theme_restore_buttons_class();var o=t.find(".btn-group.end_submits:visible button.ui_form_end_submit"),r=o.first(),l=String("btn-xclass"),_=1===o.data("click-event");if(r[0]&&r[0].classList){var c=r[0].classList.value.match(/.*(btn-\S+)/);c&&(l=c[1],r.attr("data-class-restore",l))}o&&o.length&&(set_onbeforeunload_status(1),_||(o.data("click-event",1),r.removeClass(l).addClass("btn-warning dt-tester-btn"),t.attr("data-tester",1),o.one("click",function(){o.data("click-event",0),t.attr("data-tester",0),set_onbeforeunload_status(0)}),t.on("keydown",function(e){var t=e.keyCode?e.keyCode:e.which;(13===t&&!$(e.target).is("textarea")||13===t&&e.ctrlKey&&$(e.target).is("textarea"))&&(r.hasClass("btn-warning dt-tester-btn")?(e.preventDefault(),r.trigger("click")):set_onbeforeunload_status(0))})))}}}})},snippets.inject_extra_option=function(e,t,i,a){if("tr/yes:no"===e){var n=$("body"),s=t.parents("form");t.parents("td.col_value").parent("tr").after('          <tr>            <td class="col_label"><b>'+a+'</b></td>            <td class="col_value"><span>            <span class="awradio awobject">              <input class="iawobject" name="'+i+'" id="'+i+'_1" value="true"'+(1==window[i]||void 0===window[i]?" checked":"")+' type="radio">              <label class="lawobject" for="'+i+'_1">'+theme_language("theme_xhred_global_yes")+'</label>              <input class="iawobject" name="'+i+'" id="'+i+'_0" value="false"'+(0==window[i]?" checked":"")+' type="radio">              <label class="lawobject" for="'+i+'_0">'+theme_language("theme_xhred_global_no")+"</label>            </span>          </span></td>          </tr>        ");var o="submit."+i;n.off(o),n.one(o,s,function(){var e=Test.true($("[name="+i+"]:checked").val());window[i]=e,theme_config_store()})}},snippets.datetime.tictac=function(e,t){var i=t?"convertible-date-full":"convertible-timestamp-full",a=$("[data-"+i+"]");if(a.parent().contents().filter(function(){return 3===this.nodeType}).remove(),"undefined"!=typeof moment){if(t){var n=a.data(i);if(n){var s=new Date(n);a.data(i,s),s.setSeconds(s.getSeconds()+1),a.text(moment(s.toISOString()).format(config_portable_theme_locale_format_full))}}else a.data(i,parseInt(a.data(i))+1),a.text(moment.unix(a.data(i)).format(config_portable_theme_locale_format_full));!e&&setInterval(snippets.datetime.tictac.bind(null,1,t),1e3)}},snippets.datetime.locale=function(){var e="x-md-",t=function(t,i){var a=t.tagName.endsWith("-d".toUpperCase())?1:0,n=t.outerHTML.indexOf(";1")>-1?1:0,s=t.outerHTML.indexOf(";2")>-1?1:0,o=t.outerHTML.indexOf(";-1")>-1?1:0,r=core.curModule("proc")?1:0,l=$(t).text(),_=a?l.split(";")[0]:l,c=config_portable_theme_locale_format_short,d=config_portable_theme_locale_format_long,p=moment.unix(_).format("l"),p=p.indexOf("/")>-1?"/":p.indexOf("-")>-1?"-":".",h=moment.unix(_).format("LT"),u=s?moment.unix(_).format("YYYY["+p+"]MM["+p+"]DD")+" "+h:moment.unix(_).format(n?d?d:"LL":c?c:"L");if(r&&(o=1,t&&"string"==typeof t.outerHTML&&t.outerHTML.includes(e+"t")&&$(t).remove()),o){isNaN(_)||(_*=1e3);var f=moment(_).fromNow();h=f,u=f}var g;g=$(t).is("td")?$(t):$(t).parent("td"),g.is("td")&&g.attr("data-order",_);var m={sameElse:"LLL"};if(i)return a?u:h;$(t).replaceWith(a?"<span"+(u.indexOf(" ")>-1?' data-placement="auto top" data-container="body" data-toggle="tooltip" data-title="'+(o?moment(_).calendar(null,m):moment.unix(_).fromNow())+'"':"")+">"+u+"</span>":h)};$.each($(e+"d").add(e+"t").add($("td:contains("+e+"d)").last()).add($("td:contains("+e+"t)").last()).add("option:contains("+e+"d)").add("option:contains("+e+"t)"),function(i,a){if(a.tagName.startsWith(e.toUpperCase()))t(a,0);else{var n=$(a).text(),s=Convert.htmlUnEscape(n),o="";$.each($(s),function(e,i){$(i)[0].tagName&&$(i)[0].tagName.startsWith("x-md".toUpperCase())&&(o+=t($(i)[0],1)+" ")}).promise().done(function(){$(a).text(o)})}})},snippets.ajax=function(){$(document).ajaxStop(function(){setTimeout(function(){0===v___available_session&&session.reauthenticate.start()},300)}).ajaxSuccess(function(){v___theme_ajax_error=0,"object"==typeof stats&&stats.general.error&&0===get_access_level()&&settings_sysinfo_real_time_status&&(stats.general.enable(),stats.general.error=0)}).ajaxError(function(e,t){"canceled"!==t.statusText&&connection_error(t,0)}),$.ajaxSetup({complete:function(e,t){(Test.strContains(e.responseText,v___page_signin_form)||e&&("auth-required=1"===e.getResponseHeader("Auth-type")||e.responseText&&e.responseText.indexOf("reset-fonts-grids-base")>-1&&e.responseText.indexOf("window.top.location = window.location;")>-1))&&session.reauthenticate.start()},beforeSend:function(e,t){t.url=link_type_convert(t.url,1),e.setRequestHeader("X-Requested-From",v___module||v___module_previous),e.setRequestHeader("X-Requested-From-Tab",plugins.navigation.state.module())}})},snippets.pjax=function(){$(document).on("submit","form",function(e){if(void 0!==e.originalEvent&&(v___theme_content_history=0),"true"!=$(this).attr("data-download")){if("_blank"===e.target.target){var t=$(this);return void setTimeout(function(){t.removeAttr("target"),get_pjax_content(v___location_resource)},100)}e.preventDefault(),get_onbeforeunload_status()?get_onbeforeunload_message(e,this):get_pjax_action_submit(e)}}),$(document).on("click","a"+$__theme_default_deselectors,function(e){void 0!==e.originalEvent&&(v___theme_content_history=0),get_onbeforeunload_status()&&$(quirks.active_element()).is("a"+$__theme_event_deselectors)&&(!this.href||this.href&&!this.href.includes("!edit"))?(e.preventDefault(),get_onbeforeunload_message(e,this)):get_pjax_action_click(e,this)}),$(document).on("pjax:error",function(e,t,i,a,n){if("error"===i){var s=$.active;if(s&&($.active=s-1),Test.strContains(n.url,"/csf/index.cgi"))return void theme_reload()}}),$(document).on("pjax:start",function(e,t,i){t&&(get_server_data("loading",1),$("body").addClass("loading-bg")),vars.page_user_inactive=1,vars.requested_page=i.url,"number"==typeof set_server_theme_temp_data_timeout&&clearTimeout(set_server_theme_temp_data_timeout)}),$(document).on("pjax:beforeReplace",function(e,t,i){settings_mail_ui&&uri_parse("directory",i.url).indexOf("/mailboxes")===-1&&uri_parse("directory",i.url).indexOf("/mailbox")>-1&&(!uri_parse("file",i.url)||uri_parse("file",i.url).indexOf("index.cgi")>-1)&&(vars.pjax_replace_contents=0),plugins.navigation.deform(0),pjax.clear.modules(i),i.push===!1&&(Test.strContains(i.url,"/config.cgi?")||Test.strContains(i.url,"/uconfig.cgi?"))&&t.find(".btn-accordion-filter, .btn-toggle-accordions").remove()}),$(document).on("ready pjax:beforeSend",function(e,t,i){if(1===vars.pjax_cancel)return vars.pjax_cancel=0,!1;if(theme_download_link(i))return!1;if($t_uri_webmail&&settings_mail_ui&&core.moduleAvailable("mailbox")&&("object"==typeof mail?0===$("aside .fancytree-container").length&&mail_load_folders():load.bundle(v___server_extensions_path+"/mail/mail",1,["mail.folders.get()"])),settings_mail_ui&&core.curModule("mailbox")&&(core.curModuleFile("mailbox","")||core.curModuleFile("mailbox","index.cgi"))&&uri_parse("directory",i.url).indexOf("/mailboxes")===-1&&uri_parse("directory",i.url).indexOf("/mailbox")>-1&&(!uri_parse("file",i.url)||uri_parse("file",i.url).indexOf("index.cgi")>-1))return mail_load(i.url),!1;progress.start(),"number"==typeof v___theme_postponed_fetcher&&clearInterval(v___theme_postponed_fetcher);var a=$(e.relatedTarget),n=a.attr("href");n=n?n:i.url.replace(v___location_origin,""),clicked_in_nav_menu=a.parent().is("[data-linked], .favorites-dcontainer, .menu-exclude.ui-sortable-handle")||"object"==typeof i.callback&&"reference"===i.callback[0],clicked_in_nav_menu&&check_bundle(n),"object"==typeof i.callback&&"beforeSend"===i.callback[0]&&(i.callback[3]?setTimeout(function(){window[i.callback[1].apply(this,i.callback[2])]},i.callback[3]):window[i.callback[1].apply(this,i.callback[2])]),v___theme_pjax_call+=1}),$(document).on("pjax:success",function(event,data,status,xhr,options){theme_message_dismiss("ajaxError"),"object"==typeof options.callback&&"success"===options.callback[0]&&(options.callback[3]?setTimeout(function(){"string"==typeof options.callback[1]?eval(options.callback[1]):window[options.callback[1].apply(this,options.callback[2])]},options.callback[3]):"string"==typeof options.callback[1]?eval(options.callback[1]):window[options.callback[1].apply(this,options.callback[2])])}),$(document).on("pjax:complete",function(e,t,i){vars.allow_ui_features=1,v___theme_reload&&theme_reload(),setTimeout(function(){$(".container-fluid-loading").length||progress.end()},10),get_server_data("loading",0,1),$("body").removeClass("loading-bg"),v___theme_connection_triggered_origin=0,"object"==typeof stats&&stats.general.error&&stats.general.enable()}),$(document).on("ready pjax:end",function(e,t){vars.pjax.event.end&&0!==v___available_session&&1!==v___theme_reload&&(void 0!=t&&t.responseText&&t.responseText.includes("data-predownload")||(plugins.navigation.deform(1),get_pjax_event_end(e,t),setTimeout(function(){var e=link_type_convert(location.hash,1).replace("#","");if(e&&e.length>0){var t=$('[name="'+e+'"]');t.length&&t[0].scrollIntoView({duration:200,smooth:!0,direction:"vertical",complete:function(){}})}},200),v___page_container.find(".panel > .panel-body:first").one("click mousedown keypress",function(){vars.page_user_inactive=0}),vars.pjax.post_page_fetch=!0,setTimeout(function(){vars.pjax.post_page_fetch=!1},100)))}),$(document).on("pjax:popstate",function(e){var t=(e.state,"csf"!==v___module&&v___module!==v___module_file_manager&&!core.curModuleFile("webmin","edit_themes.cgi")&&"settings-user.cgi"!==v___location_file);get_pjax_event_end_funcs(0,!t),vars.previous_request=String(),vars.source_request=String()})},snippets.get_goto=function(){v___theme_navigation_active=$(".switch-toggle input:checked").attr("id"),v___theme_navigation_active=v___theme_navigation_active?v___theme_navigation_active.replace("open_",""):get_server_data("product"),setTimeout(function(){var e=function(){$t_uri_virtualmin&&"undefined"==typeof t_uri_get_content&&get_default_virtualmin_content(!1),$t_uri_cloudmin&&"undefined"==typeof t_uri_get_content&&get_default_cloudmin_content(!1),$t_uri_virtualmin||$t_uri_cloudmin||"undefined"!=typeof t_uri_get_content||get_default_content(),t_uri_get_content=1};$.when(get_server_theme_temp_data("goto",0,e)).then(function(t,i,a){if(!a.responseText||get_server_data("initial-wizard")||unbuffered_header_processor_allow(a.responseText))e();else{if(Test.strContains(a.responseText,v___module_file_manager+"/config.cgi"))return void get_pjax_content(v___location_prefix+"/"+v___module_file_manager);if(Test.strContains(a.responseText,"//")&&URI(a.responseText).hostname()!==URI(location.href).hostname()||Test.strContains(a.responseText,"/servers/link.cgi/")||Test.strContains(a.responseText,"settings-user.cgi")||Test.strContains(a.responseText,"/xerror")||"/"===a.responseText||a.responseText==="/?"+$__theme_navigation)return void get_pjax_content(v___location_prefix+"/sysinfo.cgi");if(Test.strContains(a.responseText,"virtual-server")){var n=URI.parseQuery(URI(a.responseText).query()).dom,s=$('select[name="dom"]').val(),o=n?n:s;plugins.navigation.switch.set("virtualmin"),(!s||n!=s)&&plugins.navigation.get.virtualmin(!!o&&o)}else if(Test.strContains(a.responseText,"server-manager")){var r=URI.parseQuery(URI(a.responseText).query()).id,l=r?r:$('select[name="sid"]').val();plugins.navigation.switch.set("cloudmin"),plugins.navigation.get.cloudmin(!!l&&l)}else $t_uri_webmin||2==v___user_level||3==v___user_level||(plugins.navigation.switch.set("webmin"),plugins.navigation.get.webmin("webmin")),3==v___user_level&&!$t_uri_webmail&&Test.strContains(a.responseText,"mailbox")&&core.moduleAvailable("mailbox")?(plugins.navigation.switch.set("webmail"),setTimeout(function(){plugins.navigation.get.webmin("webmail")},10)):3!=v___user_level||$t_uri_usermin||Test.strContains(a.responseText,"mailbox")||(plugins.navigation.switch.set("usermin"),setTimeout(function(){plugins.navigation.get.webmin("webmin")},10));check_bundle(a.responseText),get_pjax_content(a.responseText,["success","v___theme_content_history = 1"])}})},20),$.each(theme_config("get_options"),function(e,t){localStorage.setItem(v___server_hostname+"-"+t,window[t])}),setTimeout(function(){plugins.slider.update.favorites()},300)},snippets.tooltips=function(e){if(e){$(".__page").tooltip("destroy").tooltip({selector:'[data-toggle="tooltip"]:not([data-skip]), [data-toggle="virtualmin-license"], .panel-body td a:not([data-skip]), .icons-container',sanitize:!1,placement:"auto "+($(".gl-icon-container").length||$("[data-fbplacement]").length?"bottom":"top"),trigger:"hover",html:!0,delay:{show:600,hide:30}})}else $("aside").tooltip({selector:'li[data-toggle="tooltip"], li > a[data-toggle="tooltip"].menu-exclude-link, label[data-toggle="tooltip"]',sanitize:!1,container:"body",html:!0,delay:{show:600,hide:30}})},snippets.help_popup=function(){$("body").on("click",".help_popup",function(e){e.stopPropagation(),e.preventDefault();var t=$(this),i=$(this).attr("href"),a=$(this).parent();a.append('<div class="_tmp_help_content hidden"></div>'),$.ajax({type:"POST",url:t.attr("href").indexOf("showpass.cgi")>-1?v___location_directory_trail_slashed+t.attr("href"):t.attr("href"),data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);a.find("._tmp_help_content").html(e.replace(/<(script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"")),$help_title=a.find("._tmp_help_content .ui_subheading").first().text(),$help_body=a.find("._tmp_help_content title").remove(),$help_body=a.find("._tmp_help_content h3.ui_subheading").remove(),$help_body=a.find("._tmp_help_content h3").addClass("h3_help"),$help_body=a.find("._tmp_help_content hr").remove();var n=a.find("._tmp_help_content a");void 0!==n.attr("href")&&$.each(n,function(){var e=$(this).attr("href");e.startsWith("http")?$help_body=a.find("._tmp_help_content a").attr("target","_blank").css("text-decoration","none").css("font-style","italic"):($("body").undelegate('a[href="'+e+'"]',"click"),$("body").one("click",'a[href="'+e+'"]',function(a){if($(a.target).is($('a[href="'+e+'"]'))){a.preventDefault();var n=Convert.pathnamePopLast(t.attr("href"))+"/"+e;$('a[href="'+i+'"].help_popup').attr("data-initial",i).attr("data-substituted",n),$('a[href="'+i+'"].help_popup').attr("href",n),t.trigger("click")}}))}),$help_body=a.find("._tmp_help_content").html(),a.find("._tmp_help_content").remove();var s='<button type="button" class="close pull-right close-popover-trigger font-size-120p">&times;</button>',o=t.attr("href").indexOf("showpass.cgi")>-1,r=t.attr("href").indexOf("/locale")>-1;o&&(s=""),t.popover({html:!0,sanitize:!1,container:".container-fluid",template:'<div class="popover module-help'+(o?" showpass-popover":r?" popover-wider":"")+'" role="tooltip" style="z-index: '+(2147483642+10*$(".module-help").length)+'"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>',title:function(){return s+$help_title},content:function(){return $help_body},placement:"auto right"}),t.popover("show"),t.on("shown.bs.popover",function(){$help_body.indexOf("<ad>")>-1&&$(".popover").animate({"max-width":"540px"},300),$("body").find(".popover:visible").addClass("module-help"),$('body[class*="'+v___module_file_manager+'"]').find(".popover:visible").addClass("file-manager-help"),setTimeout(function(){$.each($(".module-help"),function(){$(this).is(t.next(".module-help"))?($(this).animate({opacity:1},600),popover_visibility_position($(this))):$(".module-help").length>1?$(this).css("opacity",.85):$(this).css("opacity",1)})},100)}),t.on("hidden.bs.popover",function(){$("body").undelegate(":not(tt)","click"),t.attr("data-initial")&&(t.attr("href",t.attr("data-initial")),t.removeAttr("data-initial").removeAttr("data-substituted"))})}})})},snippets.page.render_links=function(e){theme_buttonify(["/syslog-ng/list_destinations.cgi"],".container-fluid .table tbody tr td:last-child",'a[href*="view_log.cgi"]',"btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-top-1",""),theme_buttonify(["/virtual-server/edit_newmysqls.cgi"],".container-fluid .table tbody tr td:last-child","a.ui_link","btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-top-1","fa-cog"),theme_buttonify(["/virtualmin-git/","/virtualmin-git/index.cgi"],".container-fluid table td[data-td-e]",'a[href*="delete.cgi"]',"btn btn-danger btn-xxs vertical-align-top margined-top-1 ---forced","fa-times-circle","","","","|"),theme_buttonify(["/virtualmin-git/","/virtualmin-git/index.cgi"],".container-fluid table td[data-td-e]",'a[href*="//"]',"btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-left--2 margined-top-1 ---forced",""),theme_buttonify(["/virtualmin-git/","/virtualmin-git/index.cgi"],".container-fluid table td[data-td-e]",'a[href*="help.cgi"]',"btn btn-info btn-xxs vertical-align-top margined-left--2 margined-top-1 ---forced",""),theme_buttonify(["/webalizer/","/webalizer/index.cgi"],".container-fluid .table tbody tr td:last-child","a.ui_link","btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-top-1",0),theme_buttonify(["/cpan/edit_mod.cgi"],".container-fluid .table tbody tr td","a.ui_link","btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-top-3 margined-right--1 btn-dnwo ---forced","","","","","|"),theme_buttonify(["/forward/index.cgi","/forward/"],".container-fluid",'.panel-body > a:first[href*="simple"]',"btn btn-default _btn-links-top btn-xs vertical-align-top margined-top-1 margined-left-3",0,"","","","|"),theme_buttonify(["/forward/index.cgi","/forward/"],".container-fluid",".panel-body > span[data-unckecked]","btn btn-info _btn-links-top btn-xs vertical-align-top margined-top-1 margined-left-3",0,"","","","|"),theme_buttonify(["/acl/list_sessions.cgi"],".container-fluid table td[data-td-e]",'a[href*="webminlog/"]',"btn btn-info btn-xxs vertical-align-top margined-top-1 ---forced",0,"","","","|"),theme_buttonify(["/acl/list_sessions.cgi"],".container-fluid table td[data-td-e]",'a[href*="delete_session.cgi"]',"btn btn-danger btn-xxs vertical-align-top margined-left--2 margined-top-1 ---forced","fa-unplugged"),theme_buttonify(["/sysinfo.cgi","/virtual-server/edit_newchangelog.cgi","/server-manager/edit_newchangelog.cgi"],".container-fluid #newfeatures-virtual-server-1-collapse dt, .container-fluid #newfeatures-server-manager-1-collapse dt, .container-fluid .table td dt","a","btn btn-link btn-link-bordered btn-xxs btn-dnwo f__lnk_t_btn-el margined-left-3 vertical-align-top margined-top-1","fa-eye","|",""),theme_buttonify(["/virtual-server/","/virtual-server/index.cgi","/virtual-server/edit_plan.cgi","/virtual-server/search.cgi"],".container-fluid form table tbody td",'a[href*="list_users.cgi?"], a[href*="list_aliases.cgi?"]',"btn btn-link btn-link-bordered btn-xxs btn-hover-hide vertical-align-top margined-top-1",0,"(~)"," ~ ",""),theme_buttonify(["/server-manager/","/server-manager/index.cgi"],".container-fluid form table tbody td",'a[href*="mass_update_form.cgi?"]',"btn btn-link btn-link-bordered btn-xxs btn-transparent btn-link-bordered vertical-align-top margined-left-3 margined-top-1",0,"","","","-"),theme_buttonify(["/quota/","/quota/index.cgi"],".container-fluid .table tbody td[data-td-e]",'a[href*="activate.cgi"][href*="&active=3"]',"btn btn-warning btn-xxs vertical-align-top margined-top-1","fa-ban"),theme_buttonify(["/quota/","/quota/index.cgi"],".container-fluid .table tbody td[data-td-e]",'a[href*="activate.cgi"][href*="&active=0"]',"btn btn-success btn-xxs vertical-align-top margined-top-1","fa-check-circle-o"),theme_buttonify(["/virtualmin-google-analytics/","/virtualmin-google-analytics/index.cgi"],".container-fluid .table tbody td[data-td-e]",'a[href*="edit.cgi"]',"btn btn-warning btn-xxs vertical-align-top margined-top-1","fa-pencil-square"),theme_buttonify(["/apache/","/apache/index.cgi"],".container-fluid .table tbody tr td:last-child","a.ui_link","btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-top-1","fa-external-link"),theme_buttonify(["/ldap-server/edit_schema.cgi"],".container-fluid table tr.ui_checked_columns td",'a[href*="view_sfile.cgi"]',"btn btn-info btn-xxs vertical-align-top margined-top-1 ---forced",0,"","","","|"),theme_buttonify(["/ldap-server/edit_schema.cgi"],".container-fluid table tr.ui_checked_columns td",'a[href*="edit_sfile.cgi"]',"btn btn-warning btn-xxs vertical-align-top margined-left--2 margined-top-1 ---forced","fa-pencil-square-o");var t=$(".container-fluid .ui_links_row");if((core.curModule("firewall",1)||core.curModule("firewall6",1))&&t.first().find(".ui_link_empty").addClass("btn-warning").removeClass("btn-success"),($('body[class*="status"]').length&&"edit_mon.cgi"==v___location_file||v___location_path==v___location_prefix+"/virtual-server/list_sched.cgi"||v___location_path==v___location_prefix+"/software/list_pack.cgi"||v___location_path==v___location_prefix+"/mailboxes/view_mail.cgi"||v___location_path==v___location_prefix+"/mailbox/view_mail.cgi"||v___location_path==v___location_prefix+"/mailbox/list_folders.cgi"||v___location_path==v___location_prefix+"/phpini/"||v___location_path==v___location_prefix+"/phpini/index.cgi"||v___location_path==v___location_prefix+"/fsdump/"||v___location_path==v___location_prefix+"/fsdump/index.cgi"||v___location_path==v___location_prefix+"/fdisk/"||v___location_path==v___location_prefix+"/fdisk/index.cgi"||v___location_path==v___location_prefix+"/virtualmin-awstats/"||v___location_path==v___location_prefix+"/virtualmin-awstats/index.cgi"||v___location_path==v___location_prefix+"/syslog/"||v___location_path==v___location_prefix+"/syslog/index.cgi")&&($.each($('tr td:last-child > .ui_links_row, tr td:last-child:contains("|")'),function(){var e=$(this).parent(),t="ui_link btn-inverse btn-tiny>";v___location_path==v___location_prefix+"/virtual-server/list_sched.cgi"&&(e.find('a[href^="backup_form.cgi"]').html(e.find('a[href^="backup_form.cgi"]').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-success btn-xxs margined-top--2 f__lnk_t_btn-el").removeClass(t).prepend('<i class="fa fa-fw fa-floppy-o" style="vertical-align: baseline !important">&nbsp;&nbsp;</i>'),e.find('a[href^="restore_form.cgi"]').html(e.find('a[href^="restore_form.cgi"]').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-primary btn-xxs margined-top--2 f__lnk_t_btn-el").removeClass(t).prepend('<i class="fa fa-fw fa-reply" style="vertical-align: baseline !important">&nbsp;&nbsp;</i>'),e.find('a[href^="backuplog.cgi"]').html(e.find('a[href^="backuplog.cgi"]').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-info btn-xxs margined-top--2 f__lnk_t_btn-el").removeClass(t).prepend('<i class="fa fa-fw fa-file-o" style="vertical-align: baseline !important">&nbsp;&nbsp;</i>')),v___location_path!=v___location_prefix+"/phpini/"&&v___location_path!=v___location_prefix+"/phpini/index.cgi"||(e.find('a[href^="list_ini.cgi"]').html(e.find('a[href^="list_ini.cgi"]').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-success btn-xxs f__lnk_t_btn-el").removeClass(t).prepend('<i class="fa fa-fw fa-cog" style="vertical-align: baseline !important">&nbsp;&nbsp;</i>'),e.find('a[href^="edit_manual.cgi"]').html(e.find('a[href^="edit_manual.cgi"]').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-primary btn-xxs f__lnk_t_btn-el").removeClass(t).prepend('<i class="fa fa-fw fa-pencil" style="vertical-align: baseline !important">&nbsp;&nbsp;</i>')),v___location_path!=v___location_prefix+"/fdisk/"&&v___location_path!=v___location_prefix+"/fdisk/index.cgi"||(e.find('a[href^="edit_hdparm.cgi"]').html(e.find('a[href^="edit_hdparm.cgi"]').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-success btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass(t),e.find('a[href*="smart-status/index.cgi"]').html(e.find('a[href*="smart-status/index.cgi"]').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-info btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass(t),e.find('a[href^="blink.cgi"]').html(e.find('a[href^="blink.cgi"]').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-warning btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass(t)),v___location_path==v___location_prefix+"/mailbox/list_folders.cgi"&&(e.find('a[href^="index.cgi"]').html(e.find('a[href^="index.cgi"]').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-success btn-xxs").removeClass("heighter-34").removeClass(t).removeClass(t).prepend('<i class="fa fa-fw fa-eye" style="vertical-align: baseline !important">&nbsp;&nbsp;</i>'),e.find('a[href^="edit_auto.cgi"]').html(e.find('a[href^="edit_auto.cgi"]').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-info btn-xxs").removeClass("heighter-34").removeClass(t).removeClass(t).prepend('<i class="fa fa-fw fa-recycle" style="vertical-align: baseline !important">&nbsp;&nbsp;</i>'),e.find('a[href^="copy_form.cgi"]').html(e.find('a[href^="copy_form.cgi"]').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-warning btn-xxs").removeClass("heighter-34").removeClass(t).removeClass(t).prepend('<i class="fa fa-fw fa-clone" style="vertical-align: baseline !important">&nbsp;&nbsp;</i>')),v___location_path!=v___location_prefix+"/mailboxes/view_mail.cgi"&&v___location_path!=v___location_prefix+"/mailbox/view_mail.cgi"||(e.find('a[href^="detach.cgi"]:not([href*="&save=1"]):not([target="_blank"])').html(e.find('a[href^="detach.cgi"]:not([href*="&save=1"]):not([target="_blank"])').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-primary btn-xxs").removeClass("heighter-34").removeClass(t).removeClass(t).prepend('<i class="fa fa-fw fa-eye" style="vertical-align: baseline !important">&nbsp;&nbsp;</i>'),e.find('a[href*="detach.cgi"][target="_blank"]').html(e.find('a[href*="detach.cgi"][target="_blank"]').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-success btn-xxs").removeClass("heighter-34").removeClass(t).prepend('<i class="fa fa-fw fa-external-link" style="vertical-align: baseline !important">&nbsp;&nbsp;</i>'),e.find('a[href*="&save=1"]:not([target="_blank"])').html(e.find('a[href*="&save=1"]:not([target="_blank"])').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-warning btn-xxs").removeClass("heighter-34").removeClass(t).prepend('<i class="fa fa-fw fa-download" style="vertical-align: baseline !important">&nbsp;&nbsp;</i>')),v___location_path!=v___location_prefix+"/virtualmin-awstats/"&&v___location_path!=v___location_prefix+"/virtualmin-awstats/index.cgi"||(e.find('a[href^="view.cgi"]').html(e.find('a[href^="view.cgi"]').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-success btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass(t).prepend('<i class="fa fa-fw fa-eye" style="vertical-align: baseline !important">&nbsp;&nbsp;</i>'),e.find('a[href^="config.cgi"]').html(e.find('a[href^="config.cgi"]').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-primary btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass(t).prepend('<i class="fa fa-fw fa-cog" style="vertical-align: baseline !important">&nbsp;&nbsp;</i>'))}).promise().done(function(){$(this).is(".ui_links_row")?$(this).contents().unwrap():$('tr td:last-child:contains("|")').replaceText(/\s*/gi,"").replaceText(/\|/gi,"")}),$('body[class*="status"]').length&&"edit_mon.cgi"==v___location_file?($('a[href*="edit_mon.cgi?id"]').addClass("ui_link_replaced btn btn-default btn-xxs").removeClass("heighter-34").removeClass("ui_link"),$('a[href*="edit_mon.cgi?id"]').last().css("margin-left","-1px"),$('tr td:last-child:contains("|")').replaceText(/\|/gi,"")):$('tr td:last-child:contains("|")').contents().filter(function(){return 3==this.nodeType}).remove(),v___location_path!=v___location_prefix+"/fdisk/"&&v___location_path!=v___location_prefix+"/fdisk/index.cgi"||$("body").find('a[href^="blink.cgi"]:not(.ui_link_replaced)').html($("body").find('a[href^="blink.cgi"]:not(.ui_link_replaced)').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-warning btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass("ui_link"),v___location_path!=v___location_prefix+"/fsdump/"&&v___location_path!=v___location_prefix+"/fsdump/index.cgi"||$.each($("tr td:last-child"),function(){$(this).find('a[href^="backup.cgi"]').html($(this).find('a[href^="backup.cgi"]').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-success btn-xxs margined-top--2 f__lnk_t_btn-el").removeClass("heighter-34").removeClass("ui_link").prepend('<i class="fa fa-fw fa-floppy-o" style="vertical-align: baseline !important">&nbsp;&nbsp;</i>'),$(this).find('a[href^="kill.cgi"]').html($(this).find('a[href^="kill.cgi"]').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-danger btn-xxs margined-top--2 f__lnk_t_btn-el").removeClass("heighter-34").removeClass("ui_link").prepend('<i class="fa fa-fw fa-trash-o" style="vertical-align: baseline !important">&nbsp;&nbsp;</i>')}),
v___location_path!=v___location_prefix+"/syslog/"&&v___location_path!=v___location_prefix+"/syslog/index.cgi"||$.each($("tr td:last-child"),function(){$(this).find('a[href*="save_log.cgi"][href*="view=1"]').html($(this).find('a[href*="save_log.cgi"][href*="view=1"]').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-primary btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass("ui_link")}),v___location_path==v___location_prefix+"/software/list_pack.cgi")){$('td a.ui_link[href*="view.cgi"]').html('<i class="fa fa-fw fa-eye-fi fa-1_25x"></i>').addClass("ui_link_replaced btn btn-default btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").attr("style","margin-top: 2px !important; margin-bottom: 0 !important; margin-right: 15px").removeClass("ui_link").prepend('<i class="fa fa-fw fa-eye hidden" style="vertical-align: baseline !important">&nbsp;&nbsp;</i>')}if(v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"proc/"&&v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"proc/index.cgi"||((v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"proc/"&&v___location_file&&v___location_file.indexOf("index_")>-1||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"proc/index.cgi"||v___location_path===v___location_prefix+"/proc/")&&($("a.ui_link + b").addClass("btn").css("margin-left","3px"),$("b + a.ui_link").addClass("btn").css("margin-left","3px"),$('.panel-body > b:first-child:contains("Display")').length>0&&$(".panel-body > b:first-child").remove(),$(".panel-body > b").addClass("btn btn-success")),$(".panel-body").contents().filter(function(){return 3==this.nodeType}).remove(),$(".panel-body > a.ui_link").addClass("btn").css("margin-left","3px")),!e){v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"fdisk/"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"postfix/"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"pam/"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"syslog/"||$("p > a[href], table + a[href], div.panel-body > a.ui_link").each(function(e,t){$(this).text($(this).text().replace(/\.$/,""))});$(".container-fluid .panel-body a.select_all,.container-fluid .panel-body a.select_invert,.container-fluid .panel-body a.select_invert ~ .ui_link,.container-fluid .panel-body .ui_links_row > *:not(.ui_link_empty, .ui_link_replaced),.container-fluid .panel-body .ui_link:not(.ui_link_empty)").each(function(){if(!($(this).parent("td").length||$(this).parent("label").length||$(this).parent("tt").length||$(this).parents("b").length||$(this).parent("pre").length||v___location_path==v___location_prefix+"/webmin_search.cgi")&&(!core.curModuleFile("virtual-server","history.cgi")&&!core.curModuleFile("server-manager","one_history.cgi")&&!core.curModule("proc")&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"passwd/"&&$(this).text()&&v___location_path!=v___location_prefix+"/mailboxes/"&&v___location_path!=v___location_prefix+"/mailboxes/index.cgi"&&v___location_path!=v___location_prefix+"/usermin/list_configs.cgi"&&!$(this).hasClass("help_popup")||core.curModule("procmail"))){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced"),$(this).text($(this).text().replace(/\.$/,""));var e=$(this).parent().contents().filter(function(){return 3==this.nodeType});e&&$.each(e,function(){$(this).text()&&$(this).text().length<=3&&$(this).remove()}),$(this).hasClass("select_all")&&$(this).html('<i class="fa fa-fw fa-check-square-o"> </i> '+$(this).text()),$(this).hasClass("select_invert")&&$(this).html('<i class="fa fa-fw fa-share-square-o"> </i> '+$(this).text()),(core.curModuleFile("server-manager","index.cgi")||core.curModuleFile("server-manager",""))&&($(this).parent('form[action="mass.cgi"]').length||$(this).parent(".ui_links_row").parent('form[action="mass.cgi"]').length)&&(($(this).is(":nth-child(1)")||$(this).is(":nth-child(6)"))&&$(this).html('<i class="fa fa-fw fa-check-square-o"> </i> '+$(this).text()),($(this).is(":nth-child(2)")||$(this).is(":nth-child(7)"))&&$(this).html('<i class="fa fa-fw fa-plug-o fa-1_15x fa-rotate-45"> </i> '+$(this).text()),($(this).is(":nth-child(3)")||$(this).is(":nth-child(8)"))&&$(this).html('<i class="fa fa-fw fa-webmin"> </i> '+$(this).text())),$(this).attr("href")&&(0===$(this).attr("href").indexOf("edit")&&0!==$(this).attr("href").indexOf("edit_allow")||0===$(this).attr("href").indexOf("master_form")||0===$(this).attr("href").indexOf("slave_form")||0===$(this).attr("href").indexOf("stub_form")||0===$(this).attr("href").indexOf("forward_form")||0===$(this).attr("href").indexOf("delegation_form")||0===$(this).attr("href").indexOf("mass_form")||0===$(this).attr("href").indexOf("newdb_form"))?$(this).html('<i class="fa fa-fw fa-plus-square-o"> </i> '+$(this).html()):$(this).attr("href")&&0===$(this).attr("href").indexOf("edit_allow")?$(this).html('<i class="fa fa-fw fa-shield"> </i> '+$(this).text()):($(this).attr("href")&&0===$(this).attr("href").indexOf("mass_ucreate")&&$(this).html('<i class="fa fa-fw fa-user"> </i> '+$(this).text()),$(this).attr("href")&&$(this).attr("href").indexOf("grace_form")>-1&&$(this).html('<i class="fa fa-fw fa-clock"> </i> '+$(this).text())),$(this).attr("href")&&$(this).attr("href").indexOf("edit_manual")>-1&&$(this).html('<i class="fa fa-fw fa-pencil-square-o"> </i> '+$(this).text()),core.curModule("custom")&&($(this).attr("href")&&0===$(this).attr("href").indexOf("edit_cmd.cgi?new")&&$(this).html('<i class="fa fa-fw fa-terminal"> </i> '+$(this).text()),$(this).attr("href")&&0===$(this).attr("href").indexOf("edit_file.cgi?new")&&$(this).html('<i class="fa fa-fw fa-pencil-square-o"> </i> '+$(this).text()),$(this).attr("href")&&0===$(this).attr("href").indexOf("edit_sql.cgi?new")&&$(this).html('<i class="fa fa-fw fa-database"> </i> '+$(this).text())),$(this).attr("href")||$(this).remove()}});$.each($(".btn-group.ui_links_row > .ui_link_empty"),function(){($(this).prev(".btn-tiny.ui_link_replaced").length||$(this).next(".btn-tiny.ui_link_replaced").length)&&$(this).addClass("btn-tiny ui_link_replaced")}),$.each($(".btn-tiny.ui_link_replaced"),function(){$(this).prev('[class="table table-striped table-condensed"]').length&&$(this).next(':not(".ui_link_replaced")').length&&$(this).removeClass("btn-tiny ui_link_replaced").addClass("ui_link_re-replaced")}),$("a.ui_link_replaced").each(function(){$(this).prev().is("b")&&$(this).prev("b").addClass("btn btn-success btn-tiny"),$(this).next().is("b")&&$(this).next("b").addClass("btn btn-success btn-tiny"),core.curModule("htaccess-htpasswd")&&$("table tr.ui_checked_columns .ui_links_row > a").addClass("btn-link btn-link-bordered btn-xxs btn-hover-hide").removeClass("btn-tiny btn-inverse")}),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"fetchmail/"&&$("a.ui_link").each(function(){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced").css("margin-bottom","10px").css("margin-top","4px"),$(this).text($(this).text().replace(/\.$/,"")),$(this).parent().contents().filter(function(){return 3==this.nodeType}).remove();var e=function(e){return'<i class="fa fa-fw fa-'+e+'"> </i> '};$(this).attr("href").indexOf("edit_poll")>-1&&$(this).prepend(e("plus-square-o")),$(this).attr("href").indexOf("edit_global")>-1&&$(this).prepend(e("pencil-square-o")),$(this).attr("href").indexOf("check")>-1&&$(this).prepend(e("check-square-o"))}),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"filter/"&&$("a.ui_link").each(function(){function e(e){return'<i class="fa fa-fw fa-'+e+'"> </i> '}$(this).attr("href").indexOf("edit_auto")>-1&&$(this).find("i").replaceWith(e("reply")),$(this).attr("href").indexOf("edit_forward")>-1&&$(this).find("i").replaceWith(e("reply-all"))})}v___location_path!=v___location_prefix+"/virtual-server/domain_form.cgi"&&v___location_path!=v___location_prefix+"/server-manager/list_images.cgi"&&v___location_path!=v___location_prefix+"/virtual-server/bwgraph.cgi"||($(".panel-body > .ui_links_row > ").each(function(){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced").removeClass("ui_link"),$(this).text($(this).text().replace(/\.$/,"")),$(this).hasClass("btn-success")&&$(this).removeClass("btn-inverse")}),$.each($(".panel-body > .ui_links_row > .ui_link_empty"),function(){$(this).text().replace(/[\t\n]+/g," ").length<4?$(this).remove():($(this).text($(this).text().replace("|","").replace("|","").replace(/(?:\r\n|\r|\n)/g,"")),$(this).prev().is("img")&&$(this).removeClass().addClass("margined-left-3"))}),$(".panel-body > b").css("margin-right","7px"),v___location_path==v___location_prefix+"/virtual-server/domain_form.cgi"&&$.each($(".panel-body > .ui_links_row > .btn"),function(e,t){0==e&&$(this).html('<i class="fa fa-fw fa-plus-square"> </i> '+$(this).text()),1==e&&$(this).html('<i class="fa fa-fw fa-level-down"> </i> '+$(this).text()),2==e&&$(this).html('<i class="fa fa-fw fa-reply fa-flip-horizontal"> </i> '+$(this).text()),3==e&&$(this).html('<i class="fa fa-fw fa-reply-all fa-flip-horizontal"> </i> '+$(this).text())})),v___location_path!=v___location_prefix+"/server-manager/edit_serv.cgi"&&v___location_path!=v___location_prefix+"/server-manager/edit_owner.cgi"||($('.table-striped .col_value a[href^="edit_serv.cgi"], .table-striped .col_value a[href^="edit_owner.cgi"]').each(function(){$(this).addClass("btn btn-inverse btn-xxs ui_link_replaced margined-right--2").removeClass("btn-tiny ui_link").attr("style","margin-top: 0 !important"),$(this).text($(this).text().replace(/\.$/,"")),$(this).hasClass("btn-success")&&$(this).removeClass("btn-inverse")}),$.each($(".table-striped .col_value .ui_links_row > .ui_link_empty"),function(){$(this).addClass("btn-xxs ui_link_replaced").removeClass("btn-tiny ui_link"),$(this).text().length<4?$(this).remove():$(this).text($(this).text().replace("|","").replace("|","").replace(/(?:\r\n|\r|\n)/g,""))})),$("a.ui_link, .btn").each(function(){if("."==$(this).text().substr(-1)&&!$(this).parent().is("label")){var e="."==$(this).text().substr(-1)&&".."==$(this).text().substr(-2)?2:1;$(this).text($(this).text().substr(0,$(this).text().length-e))}})},snippets.page.render=function($is_history_action){function a(){$("body").undelegate("#atrestore:not(.disabled)","click"),$("#atrestore:not(.disabled)").off("click.confirm"),$("#atrestore:not(.disabled)").on("click",function(){var e=get_onbeforeunload_status();set_onbeforeunload_status(0),e&&setTimeout(function(){set_onbeforeunload_status(e)},2500)}),$("#atrestore:not(.disabled)").confirmation({classNameRemove:"btn-default"},function(){$(this).off();var e=$(this);e.hasClass("btn-inverse")||setTimeout(function(){spinnerfy_buttons(e,[1.5,-33,"small",!1]);var t=$(".ui_form").serialize();$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-settings=1&restore=1",data:t,success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);theme_reload()},error:function(t){e.addClass("btn-danger").removeClass("btn-default btn-inverse opacity-0_5")}})},0)})}function __m_ico_row_tb(){$("body").find(".icons-row:not(._processed_):not(.inline-row)").css({"padding-top":"8px","padding-bottom":"8px"}),$("body").find(".icons-row:not(._processed_):not(.inline-row)").css("border-top","1px solid #efefef").css("border-bottom","1px solid #efefef")}function __m_ico_row_t(){$("body").find(".icons-row:not(._processed_):not(.inline-row)").css({"padding-top":"8px"}),$("body").find(".icons-row:not(._processed_):not(.inline-row)").css("border-top","1px solid #efefef")}function __m_ico_row_b(){$("body").find(".icons-row:not(._processed_):not(.inline-row)").css({"padding-bottom":"6px"}),$("body").find(".icons-row:not(._processed_):not(.inline-row)").css("border-bottom","1px solid #efefef")}function __m_ico_row_func(){return 0}function reset_dnd_uploads(){if(core.curModule("updown")||core.curModuleFile("updown","index.cgi")){var e=$('form.ui_form[action*="upload.cgi"]'),t=e.find(".ui_submit.ui_form_end_submit"),i=e.find(".file-input-wrapper");theme_restore_buttons_class(),$.fn.bootstrapFileInputReset(e),despinnerfy_buttons(0,t),i.find("span").remove(),i.contents().unwrap()}}function init_dnd_uploads(){if(core.curModule("updown")||core.curModuleFile("updown","index.cgi")){var e=$('input[type="file"]:not([name="upfiles"])'),t='form.ui_form[action*="upload.cgi"]',i=$(t+" .ui_submit.ui_form_end_submit");$(t+' input[name^="upload"]:not([name="upload0"])').remove(),e.bootstrapFileInput(["dnd dnd_updown",i]),i.addClass("disabled"),plugins.upload($("#att_upload .ui_form")),init_dnd_form($(t))}}function init_dnd_form(e){e.on("drag dragstart dragend dragover dragenter dragleave drop",function(e){e.preventDefault(),e.stopPropagation()}).on("drop",function(e){droppedFiles=e.originalEvent.dataTransfer.files,$(this).trigger("input").find('input[type="file"]').prop("files",droppedFiles).trigger("change.fiw")}),e.find(".file-input-wrapper").on("dragover dragenter",function(){$(this).addClass("pulse")}).on("dragleave dragend drop",function(){$(this).removeClass("pulse")})}if(plugins.dashboard.restore(),plugins.navigation.state.update(),$is_history_action&&"undefined"!=typeof __cm_editor_static&&(__cm_editor_static.toTextArea(),$('button[data-form="submitter"]').unwrap(),$('.CodeMirror, button[data-form="submitter"] + button, .-helper.__helper, .-helper.soft_wt').remove()),function(){var e=$("body");e.off("mousedown.cm1 keydown.cm1"),e.undelegate('button[type="submit"]:not(.disabled)',"click.cm"),e.undelegate('button[data-form="submitter"]:not(.disabled)',"click.cm")}(),table_proc_size_columns(),$("body").attr("style",get_server_data("style")),$.each($('select[onchange="form.submit()"]'),function(){$(this).removeAttr("onchange").addClass("onchange_form_submit_triggger")}),page.handle.content.offset(!0),editor_init_check()){var select_for_edited_file=$('select[name="file"]:first, select[name="manual"]:first');select_for_edited_file.addClass("onchange_form_submit_triggger"),select_for_edited_file.next("button.ui_form_end_submit").addClass("hidden")}snippets.datetime.locale();var $langLocaleLangStr=theme_language("theme_xhred_title_language_locale"),$userminModule=core.curModule("language"),$webminModule=core.curModule("change-user"),$webminConfModule=core.curModuleFile("webmin","edit_lang.cgi");if(core.curModule("webmin")){var $targetIconTitle=$('.icons-container a[href*="edit_lang.cgi"]'),$targetSmallIconTitle=$('.small-icons-container a[href*="edit_lang.cgi"]'),$targetNoIconTitle=$('a[href*="edit_lang.cgi"] p > .fa-angle-right');if($targetIconTitle.length){var $targetIconTitleImg=$targetIconTitle.find("img").detach();$targetIconTitle.text($langLocaleLangStr).prepend($targetIconTitleImg,"<br>")}else $targetSmallIconTitle.length?($targetSmallIconTitle.find(".hidden").text($langLocaleLangStr),$targetSmallIconTitle.parent().attr("title",$langLocaleLangStr)):$targetNoIconTitle.length&&$targetNoIconTitle.parent().html('<i class="fa fa-fw fa-angle-right">&nbsp;&nbsp;</i>'+$langLocaleLangStr)}if(3==get_access_level()&&core.curModule("quota"))var $_table_quota=$(".container-fluid .panel-body .table"),$_table_quota_empty_label=$_table_quota.find("thead:first-child").add($_table_quota.find("thead:first-child").next("tbody")).remove();if(($webminConfModule||$webminModule||$userminModule)&&!$is_history_action){var $dateFormatTarget=$('.container-fluid form select[name="lang"]'),$dateFormatTargetMore=$userminModule?$dateFormatTarget.next(".ui_form_end_buttons").find("tbody"):$dateFormatTarget.parents("tr").first().parent("tbody"),$dateForm=$dateFormatTargetMore.parents("form").first(),$dateFormatFinalTarget=$userminModule?$dateFormatTargetMore:$dateFormatTargetMore.find('select[name="lang"]').parents("tr").first();$webminModule&&$('[name="overlay"]').parent("td").parent("tr").addClass("hidden"),$webminModule||$("span[data-main_title]").text($langLocaleLangStr);var insertionRow='        <tr>            <td class="w-25p"><strong>'+($webminModule?theme_language("theme_xhred_title_webmin_ui_locale"):theme_language("theme_xhred_title_locale_config"))+($userminModule?": &nbsp&nbsp":"")+'</strong></td>            <td>              <span class="awradio awobject"><input class="iawobject" type="radio" name="config_portable_theme_locale_language" value="0" id="config_portable_theme_locale_language_0"'+(0==config_portable_theme_locale_language?" checked":"")+'>                <label class="lawobject" for="config_portable_theme_locale_language_0">'+theme_language("theme_xhred_title_locale_auto")+'</label>              </span>              <span class="awradio awobject"><input class="iawobject" type="radio" name="config_portable_theme_locale_language" value="1" id="config_portable_theme_locale_language_1"'+(config_portable_theme_locale_language&&"0"!=config_portable_theme_locale_language?" checked":"")+'>                <label class="lawobject" for="config_portable_theme_locale_language_1">'+theme_language("theme_xhred_global_manual")+'</label>              </span>              </td>        </tr>        <tr class="'+(0==config_portable_theme_locale_language?"hidden _locale_config":"_locale_config")+'">            <td><strong>'+($webminModule?theme_language("theme_xhred_title_locale_config_format_ui"):theme_language("theme_xhred_title_locale_config_format"))+' <sup><a href="'+v___location_prefix+'/help.cgi/authentic-theme/locale"><i class="fa '+($userminModule?"":" font-size-75p ")+' fa-question-circle text-light"></i></a></sup>'+($userminModule?"&nbsp&nbsp&nbsp&nbsp":"")+"</strong></td>            <td>              "+theme_language("theme_xhred_title_locale_lang_based")+'&nbsp;&nbsp;<select data-select="locales" disabled><option></option></select>&nbsp;              <span class="text-nowrap">                '+theme_language("theme_xhred_title_locale_full")+'&nbsp;                <span class="tooltip-wide" data-animation="false" data-placement="auto top" data-container=".container-fluid" data-toggle="tooltip" data-html="true" data-title="<p>'+theme_language("theme_xhred_global_default")+": <i class='text-success'>`LLLL`</i></p><p>"+theme_language("theme_xhred_global_output_example")+": <i class='text-warning'>"+moment().format("LLLL")+'</i></p>">                  <input class="form-control w-auto inline-block" type="text" name="config_portable_theme_locale_format_full" size="3" value="'+config_portable_theme_locale_format_full+'">                </span>&nbsp;              </span>              <span class="text-nowrap">                '+theme_language("theme_xhred_title_locale_long")+'&nbsp;                  <span  class="tooltip-wide" data-animation="false" data-placement="auto top" data-container=".container-fluid" data-toggle="tooltip" data-html="true" data-title="<p>'+theme_language("theme_xhred_global_default")+": <i class='text-success'>`LL`</i></p><p>"+theme_language("theme_xhred_global_output_example")+": <i class='text-warning'>"+moment().format("LL")+'</i></p>">                    <input class="form-control w-auto inline-block" type="text" name="config_portable_theme_locale_format_long" size="2" value="'+config_portable_theme_locale_format_long+'">                  </span>&nbsp;              </span>              <span class="text-nowrap">                '+theme_language("theme_xhred_title_locale_short")+'&nbsp;                <span  class="tooltip-wide" data-animation="false" data-placement="auto top" data-container=".container-fluid" data-toggle="tooltip" data-html="true" data-title="<p>'+theme_language("theme_xhred_global_default")+": <i class='text-success'>`L`</i></p><p>"+theme_language("theme_xhred_global_output_example")+": <i class='text-warning'>"+moment().format("L")+'</i></p>">                  <input class="form-control w-auto inline-block" type="text" name="config_portable_theme_locale_format_short" size="1" value="'+config_portable_theme_locale_format_short+'">                </span>              </span>              '+(core.moduleAvailable("webmin")?'<span class="text-nowrap"><br>'+theme_language("theme_xhred_title_locale_non_ui_config")+'&nbsp;                                             <select class="ui_select" name="dateformat">                                              <option data-clear></option>                                              <option value="dd/mon/yyyy">dd/mon/yyyy (ie. 16/Sep/2001)</option>                                              <option value="dd/mm/yyyy">dd/mm/yyyy (ie. 16/09/2001)</option>                                              <option value="mm/dd/yyyy">mm/dd/yyyy (ie. 09/16/2001)</option>                                              <option value="yyyy/mm/dd">yyyy/mm/dd (ie. 2001/09/16)</option>                                              <option value="d. mon yyyy">d. mon yyyy</option>                                              <option value="dd.mm.yyyy">dd.mm.yyyy</option>                                              <option value="yyyy-mm-dd">yyyy-mm-dd</option>                                            </select>                                          </span>':"")+"              </td>        <tr>    ";$userminModule?$dateFormatFinalTarget.prepend(insertionRow):($dateFormatFinalTarget.after(insertionRow),core.setModuleData("/webmin/edit_ui.cgi",["dateformat"])),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-get_theme_locale_languages=1",data:!1,dataType:"text",async:$.support.spa,success:function(e){$('select[data-select="locales"]').replaceWith(e),$('#config_portable_theme_locale_languages option[value="ru-su"]').remove();var t='input[id*="config_portable_theme_locale_language"], select[name="config_portable_theme_locale_languages"], input[name="config_portable_theme_locale_format_full"], input[name="config_portable_theme_locale_format_long"], input[name="config_portable_theme_locale_format_short"]',i=$(t);$(i).on("change keyup focus",function(e){var t=$(this).attr("name"),i=$(this).parent(),a=i.data("title"),n=$('select[name="config_portable_theme_locale_languages"]').val();fleeting_format=$(this).val(),fleeting_format||(t.includes("short")?fleeting_format="L":t.includes("long")?fleeting_format="LL":t.includes("full")&&(fleeting_format="LLLL")),t.indexOf("theme_locale_format_")>-1&&i.attr("title",a.replace(/g'>(.*)<\/i>/g,"g'>"+(n?moment().locale(n).format(fleeting_format):moment().format(fleeting_format))+"</i>")).tooltip("fixTitle").tooltip("show");var s=$("._locale_config");"config_portable_theme_locale_language"===t&&"1"!=fleeting_format?"focus"!=e.type&&s.addClass("hidden"):"focus"!=e.type&&s.removeClass("hidden")}),$($dateForm).on("submit",function(){var e=$('[name="dateformat"]');e.length&&core.updateModuleData("/webmin/edit_ui.cgi","/webmin/change_ui.cgi",{dateformat:$.trim(e.val())}),$.each($(t.replace('locale_language"]','locale_language"]:checked')),function(e,t){var i=$(this).attr("name"),a=$(this).val();"config_portable_theme_locale_languages"===i&&""===a&&(a=get_server_data("language-full")),localStorage.setItem(v___server_hostname+"-"+i,a),window[i]=a}).promise().done(function(){var e=$dateForm.find('select[name="lang"]').val();if(e.indexOf(".")>-1&&(e=e.split(".")[0]),$webminModule&&"1"==$dateForm.find('[name="lang_def"]:checked').val()){var t=$('[name="lang_def"][value="1"]').next("label").text().match(/\(([^)]+)\)/),t=t&&t[0]&&t[1]?t[1]:get_server_data("language-full");t.indexOf(".")>-1&&(t=t.split(".")[0]),e=t}moment.locale(config_portable_theme_locale_language&&"0"!=config_portable_theme_locale_language?config_portable_theme_locale_languages:e),theme_config("save"),setTimeout(function(){plugins.navigation.reload()},2e3)})})}})}$.support.spa&&core.curModule("tunnel")&&$("form").on("submit",function(e){var t=$(quirks.active_element());e.preventDefault(),e.stopPropagation(),$.ajax({type:$(this).attr("method")?"GET":"POST",url:v___location_prefix+"/"+v___module+"/"+$(this).attr("action"),data:get_form_data($(this)),dataType:"text",complete:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);theme_open_new_tab(this.url),t.removeClass("disabled").find("i").removeClass("invisible").next(".cspinner_container").remove()}})}),check_location_resource("/config.cgi?tunnel")&&$('table table[width="100%"] tr:first-child').addClass("hidden"),$.each($('tr td:last-child a:contains("..")'),function(){if(v___location_path==v___location_prefix+"/virtual-server/list_databases.cgi"){if($(this).attr("href")&&$(this).attr("href").includes("showpass.cgi"))return!0;$(this).html($(this).text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn f__lnk_t_btn-el btn-transparent btn-link-bordered btn-xxs margined-top--3").removeClass("ui_link")}}),$.support.spa&&!$is_history_action&&$("#headln2c").prepend("<button  "+theme_inject_tooltip(theme_language("theme_xhred_favorites_add"),".container-fluid")+' aria-label="'+theme_language("theme_xhred_favorites_add")+'" class="fa fa-fw fa-inverse fa-2x fa-star-o text-lighter favorites"></button>&nbsp;'),plugins.favorites.detect(),$(".switch-toggle").find('label[for="open_thirdlane"]').length&&$('.switch-toggle input:not([id="open_webmin"])').each(function(){$(this).removeAttr("checked")}).promise().done(function(){$("#open_webmin").prop("checked",!0)}),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"init/"&&$("table.table tbody tr").addClass("ui_checked_columns"),page_table_rows_control(),!$is_history_action&&page_radios_evolve();var $onLoad_checkBox=$('.ui_checked_columns td.ui_checked_checkbox input[type="checkbox"]:checked:not(disabled)').parents("tr.ui_checked_columns").addClass("hl-aw");if($("body").hasClass("servers")&&$('form[action="delete_servs.cgi"] a.icon_link, form[action="delete_servs.cgi"] a.ui_link, form[action="delete_servs.cgi"] .col-xs-1').on("click",function(e){if($(e.target).is(".gl-icon-select"))return void($.support.spa?$(this).trigger("contextmenu"):$(this).parents(".gl-icon-container").trigger("contextmenu"));var t=v___location_href+$(this).attr("href"),i=$(this).attr("href");$(this);i&&i.indexOf("edit_serv.cgi")>-1||i&&i.indexOf("logout.cgi")>-1?void 0!==e.originalEvent&&$.pjax.click(e,{timeout:0,push:get_pjax_push(),type:get_pjax_type(),container:"[data-dcontainer]",fragment:"[data-dcontainer]"}):i&&i.indexOf("://")===-1?open(link_type_convert(t,1)):open(i),e.preventDefault(),e.stopPropagation()}),core.curModule("servers")&&$.each($('form[action*="delete_servs.cgi"] a[href*="link.cgi"]'),function(){var e=$(this).attr("href");e&&e.match(/(link.cgi\/\d+)/)&&$(this).attr("target","_blank")}),v___location_path!=v___location_prefix+"/apache/edit_global.cgi"&&v___location_path!=v___location_prefix+"/apache/edit_virt.cgi"&&v___location_path!=v___location_prefix+"/apache/edit_dir.cgi"||$.each($(".ui_opt_textbox.form-control"),function(){$(this).parent("span").next("button.btn.btn-default.chooser_button").length>0&&$(this).css("margin-right","4px")}),!$is_history_action){$(".opener_container").length&&$.each($(".opener_container"),function(){$(this).find(".opener_shown").is(":visible")&&$(this).parent("tr").prev("tr").find("td a:nth-child(1)").addClass("opener_container_opened").removeClass("opener_container_closed")}),$(".opener_shown, .opener_hidden").length>0&&$(".opener_trigger").length>0&&($(".panel-body  .ui_form .table  tbody  tr").removeClass("thead"),$(".opener_trigger").parents("table.table").addClass("opener_table_style"),$(".opener_trigger").parents("tr").addClass("_c__op_r").attr("style","border: 0 !important"),$(".opener_trigger").parent("td").addClass("_c__op_d"),$(".opener_trigger").parent("td").find("a").addClass("link_hover_effect link_hover_effect_style_extra"));var target_restore_selector='a[id*="opener"][id$="_restore"]';$('a[id*="opener"][id$="_restore"]').parent().is("p")&&($('a[id*="opener"][id$="_restore"]').next("a").parent("p").replaceTagName("div"),$('a[id*="opener"][id$="_restore"]').next("a").removeClass().addClass("opener_extra_container_a_style link_hover_effect").parent("div").addClass("opener_extra_container opener_extra_container_style margined-top-10"),$('a[id*="opener"][id$="_restore"]').remove()),$('a[href^="javascript:hidden_opener"]:not(".opener_trigger")').length>0&&($('a[href^="javascript:hidden_opener"]:not(".opener_trigger")').each(function(e,t){var i=!!(v___location_path==v___location_prefix+"/virtual-server/backup_form.cgi"&&v___location_href&&v___location_href.indexOf("?sched=")>-1);if($(this).find("img").length>0&&$(this).remove(),$(this).css("border-bottom","0"),$(this).parents("table.table").addClass("opener_table_style_small"),$(this).parent("td").addClass("opener_table_cell_style_small"),i||$(this).parent("td").addClass("opener_table_cell_style_small opener_table_cell_style_small_exclusion_border_top"),$(this).parent("td").find("a").addClass("link_hover_effect link_hover_effect_style"),$(this).parent().is(".panel-body")||$(this).parent().is(".ui_form")||$(this).parent().is("p")){var a=$(this),n=a.parent().is(".panel-body")?".panel-body":a.parent().is("p")?"p":".ui_form",s=a.parent(n).find('a[href^="javascript:hidden_opener"]'),o='<div class="opener_extra_container"></div>';core.curModuleFile("bind8","edit_zonekey.cgi")?(s.eq(1).wrapAll(o),s.eq(e+1).wrapAll(o)):s.eq(e+1).wrapAll(o),a.parent('.panel-body > a[href^="javascript:hidden_opener"]:first-child').remove();var r=a.parent(n).find(".opener_extra_container");$(r).next("br").remove(),$(r).addClass("opener_extra_container_style"),$(r).find("a").addClass("opener_extra_container_a_style link_hover_effect"),$(r).next(".opener_hidden").attr("style","padding:8px")}}),$.each($(".opener_hidden"),function(){$(this).css("display","none")})),$("a.opener_trigger").each(function(){$(this).parent("td").css("text-align","left")}),$('form[action*="seen_newfeatures.cgi"]').each(function(){$(this).parents("table.table-striped").next(".ui_form_end_buttons").css("margin-top","14px")}),$("#tall_0").before("<br>"),$(".opener_container").each(function(e,t){$(this).find("div").hasClass("opener_hidden")?$(this).hide():$(this).show()}),$.each($("div.barchart"),function(){var e=$(this).find('img[src*="red.gif"]'),t=$(this).parent("td").contents().filter(function(){return 3==this.nodeType}).text();e&&e.attr("width")&&$(this).parent("td").html('<div class="graph-container graph-container-fw"><div class="graph"><div class="description"> '+t+' </div><strong class="bar" style="width:'+e.attr("width")+'">'+e.attr("width")+"</strong></div></div>")}),$('.panel-body > form > table > tbody > tr > td:has(input[type="submit"])').parents("table.table-hardcoded > tbody > tr").css("border","none").parents("table").css("margin-top","20px"),$('.panel-body > form > table > tbody > tr > td:has(input[type="submit"])').parents("table.table-hardcoded > tbody").css("border","none"),$('.ui_grid_table > tbody > tr.ui_grid_row > td:has(button[type="submit"])').parents("table.ui_grid_table").css("border","none"),$("form.ui_form > table label.radio, form.ui_form > table label.checkbox").each(function(){var e=$(this),t=e.find("i.fa"),i=e.find("i.fa").text().trim(),a=e.text().trim();0===i.length&&0===a.length&&t.parent("label").remove()})}if(v___location_path&&(v___location_path.indexOf("/webmin/edit_themes.cgi")>-1||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-user.cgi")){if(v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-user.cgi"){plugins.navigation.reset()
;var $target_parents_row=$('[name="settings_navigation_color"]').parent("td").parent("tr"),rows='<tr class="atshover settings_navigation_color_rows hidden-skip hidden">                          <td class="col_label atscontent"><b>'+theme_language("settings_grayscale_level_navigation")+'</b><div class="smaller text-normal no-padding">'+theme_language("settings_grayscale_level_navigation_description")+'</div></td>                          <td class="col_value atscontent"><span>                          <input style="display: inline; width: 80%; height: 28px; vertical-align: middle;" class="form-control ui_textbox" type="range" min="0" max="1" step="0.01" name="settings_grayscale_level_navigation" value="'+settings_grayscale_level_navigation+'">                      </span></td>                      </tr>                    <tr class="atshover settings_navigation_color_rows hidden-skip hidden">                          <td class="col_label atscontent"><b>'+theme_language("settings_sepia_level_navigation")+'</b><div class="smaller text-normal no-padding">'+theme_language("settings_sepia_level_navigation_description")+'</div></td>                          <td class="col_value atscontent"><span>                          <input style="display: inline; width: 80%; height: 28px; vertical-align: middle;" class="form-control ui_textbox" type="range" min="0" max="1" step="0.01" name="settings_sepia_level_navigation" value="'+settings_sepia_level_navigation+'">                      </span></td>                      </tr>                    <tr class="atshover settings_navigation_color_rows hidden-skip hidden">                          <td class="col_label atscontent"><b>'+theme_language("settings_saturate_level_navigation")+'</b><div class="smaller text-normal no-padding">'+theme_language("settings_saturate_level_navigation_description")+'</div></td>                          <td class="col_value atscontent"><span>                          <input style="display: inline; width: 80%; height: 28px; vertical-align: middle;" class="form-control ui_textbox" type="range" min="0" max="3" step="0.01" name="settings_saturate_level_navigation" value="'+settings_saturate_level_navigation+'">                      </span></td>                      </tr>                    <tr class="atshover settings_navigation_color_rows hidden-skip hidden">                          <td class="col_label atscontent"><b>'+theme_language("settings_hue_level_navigation")+'</b><div class="smaller text-normal no-padding">'+theme_language("settings_hue_level_navigation_description")+'</div></td>                          <td class="col_value atscontent"><span>                          <input style="display: inline; width: 80%; height: 28px; vertical-align: middle;" class="form-control ui_textbox" type="range" min="-360" max="360" step="1" name="settings_hue_level_navigation" value="'+settings_hue_level_navigation+'">                      </span></td>                      </tr>                    <tr class="atshover settings_navigation_color_rows hidden-skip hidden">                          <td class="col_label atscontent"><b>'+theme_language("settings_invert_level_navigation")+'</b><div class="smaller text-normal no-padding">'+theme_language("settings_invert_level_navigation_description")+'</div></td>                          <td class="col_value atscontent"><span>                          <input style="display: inline; width: 80%; height: 28px; vertical-align: middle;" class="form-control ui_textbox" type="range" min="0" max="1" step="0.01" name="settings_invert_level_navigation" value="'+settings_invert_level_navigation+'">                      </span></td>                      </tr>                    <tr class="atshover settings_navigation_color_rows hidden-skip hidden">                          <td class="col_label atscontent"><b>'+theme_language("settings_brightness_level_navigation")+'</b><div class="smaller text-normal no-padding">'+theme_language("settings_brightness_level_navigation_description")+'</div></td>                          <td class="col_value atscontent"><span>                          <input style="display: inline; width: 80%; height: 28px; vertical-align: middle;" class="form-control ui_textbox" type="range" min="0.1" max="3" step="0.01" name="settings_brightness_level_navigation" value="'+settings_brightness_level_navigation+'">                      </span></td>                      </tr>                    <tr class="atshover settings_navigation_color_rows hidden-skip hidden">                      <td class="col_label atscontent"><b>'+theme_language("settings_contrast_level_navigation")+'</b><div class="smaller text-normal no-padding">'+theme_language("settings_contrast_level_navigation_description")+'</div></td>                      <td class="col_value atscontent"><span>                      <input style="display: inline; width: 80%; height: 28px; vertical-align: middle;" class="form-control ui_textbox" type="range" min="0.1" max="3" step="0.01" name="settings_contrast_level_navigation" value="'+settings_contrast_level_navigation+'">                      </span></td>                    </tr>';$target_parents_row.after(rows)}var ev_change_atsettings='#atsettings form[action*="settings.cgi"] select, form[action*="save_config.cgi"]#settings_ select, #atsettings form[action*="settings.cgi"] input, form[action*="save_config.cgi"]#settings_ input';$("body").undelegate(ev_change_atsettings,"change"),$("body").on("change",ev_change_atsettings,function(e){var t=$(this).val();if("true"==t||"false"==t?"true"==t?c=!0:"false"==t&&(c=!1):c=t,window[$(this).attr("name")]=Test.numeric(c)?c&&c.length>16?c:parseFloat(c):c,void 0!==e.originalEvent)if(v___initial_load&&"settings-user.cgi"!==v___location_file)v___initial_load=0;else{var i='input[name="settings_side_slider_enabled"]';!$(e.target).is(i)&&$(e.target).is(i)||theme_config_controls(1)}});var ev_keydown_atsettings='#atsettings form[action*="settings.cgi"] input, form[action*="save_config.cgi"]#settings_ input';$("body").undelegate(ev_keydown_atsettings,"keydown"),$("body").on("keydown",ev_keydown_atsettings,function(e){void 0!==e.originalEvent&&theme_config_controls(1)}),v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-user.cgi"&&$('button[type="button"][name="save_user"]').on("click",function(e){e.preventDefault(),e.stopPropagation(),theme_config_update(),theme_config("save"),plugins.navigation.load.start(),spinnerfy_buttons($(this),[-.5,-25,"small"]),setTimeout(function(){plugins.navigation.reload()},1400)}),core.moduleAvailable("webmin")&&!$is_history_action&&($(".container-fluid .nav.nav-tabs").prepend('<li><a data-toggle="tab" href="#atsettings"><span class="cspinner" style="position: relative"><span class="cspinner-icon" style="width:12px; height:12px; "></span></span></a></li>'),$(".container-fluid .tab-pane").first().before('<div id="atsettings" class="tab-pane text-center"><span class="cspinner" style="margin-top:18px; position: relative"><span class="cspinner-icon"></span></span></div>'),$('.container-fluid .nav-tabs a[href="#atsettings"]').tab("show")),$is_history_action||$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-settings=1",data:!1,dataType:"text",success:function(e){function t(e){void 0===e&&(e=$('input[name="settings_right_hide_table_icons"]:checked'));var t=["settings_right_small_table_icons","settings_right_animate_table_icons","settings_right_grayscaled_table_icons"];"true"==e.val()?$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!0),$('input[name="'+t+'"]').parent(".aradio").addClass("disabled")}):$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!1),$('input[name="'+t+'"]').parent(".aradio").removeClass("disabled")})}function i(e){void 0===e&&(e=$('input[name="settings_hotkeys_active"]:checked'));var t=["settings_hotkey_custom_1","settings_hotkey_custom_2","settings_hotkey_custom_3","settings_hotkey_custom_4","settings_hotkey_custom_5","settings_hotkey_custom_6","settings_hotkey_custom_7","settings_hotkey_custom_8","settings_hotkey_custom_9","settings_hotkey_toggle_modifier","settings_hotkey_toggle_key_webmin","settings_hotkey_toggle_key_virtualmin","settings_hotkey_toggle_key_cloudmin","settings_hotkey_toggle_key_usermin","settings_hotkey_toggle_key_webmail","settings_hotkey_shell","settings_hotkey_focus_search","settings_hotkey_navigation","settings_hotkey_slider","settings_hotkey_toggle_slider","settings_hotkey_reload","settings_hotkey_reload","settings_hotkey_toggle_key_night_mode","settings_hotkey_sysinfo","settings_hotkey_favorites"];"false"==e.val()?$.each(t,function(e,t){$('input[name="'+t+'"], select[name="'+t+'"]').prop("disabled",!0)}):$.each(t,function(e,t){$('input[name="'+t+'"], select[name="'+t+'"]').prop("disabled",!1)})}function n(e){void 0===e&&(e=$('input[name="settings_side_slider_enabled"]:checked'));var t=["settings_side_slider_palette","settings_side_slider_fixed","settings_side_slider_fixed_toggle","settings_side_slider_sysinfo_enabled","settings_side_slider_notifications_enabled","settings_side_slider_favorites_enabled"];"false"==e.val()?$.each(t,function(e,t){"settings_side_slider_fixed"!=t&&"settings_side_slider_fixed_toggle"!=t||$('input[name="settings_side_slider_fixed"][value="false"], input[name="settings_side_slider_fixed_toggle"][value="false"]').trigger("click"),setTimeout(function(){$('input[name="'+t+'"], select[name="'+t+'"]').prop("disabled",!0).parent(".aradio").addClass("disabled")},10)}):$.each(t,function(e,t){("settings_side_slider_fixed"!=t||"settings_side_slider_fixed"==t&&"true"!=$('input[name="settings_navigation_always_collapse"]:checked').val())&&("settings_side_slider_fixed_toggle"!=t||"settings_side_slider_fixed_toggle"==t&&"true"!=$('input[name="settings_navigation_always_collapse"]:checked').val())&&$('input[name="'+t+'"], select[name="'+t+'"]').prop("disabled",!1).parent(".aradio").removeClass("disabled")})}function s(e){void 0===e&&(e=$('input[name="settings_sysinfo_real_time_status"]:checked'));var t=["settings_sysinfo_real_time_timeout"];"true"==e.val()?$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!1).removeClass("disabled")}):$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!0).addClass("disabled")})}function o(e){void 0===e&&(e=$('input[name="settings_sysinfo_easypie_charts"]:checked'));var t=["settings_sysinfo_easypie_charts_size","settings_sysinfo_easypie_charts_width","settings_sysinfo_easypie_charts_scale"];"true"==e.val()?$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!1).removeClass("disabled")}):$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!0).addClass("disabled")})}function r(e){void 0===e&&(e=$('input[name="settings_sysinfo_theme_updates"]:checked'));var t=["settings_cache_interval"];"true"==e.val()?$.each(t,function(e,t){$('[name="'+t+'"]').prop("disabled",!1).removeClass("disabled")}):$.each(t,function(e,t){$('[name="'+t+'"]').prop("disabled",!0).addClass("disabled")})}function l(e){void 0===e&&(e=$('input[name="settings_navigation_always_collapse"]:checked'));var t=["settings_side_slider_fixed","settings_side_slider_fixed_toggle","settings_leftmenu_width"];"true"==e.val()?(vars.slider_pinned=-1,$.each(t,function(e,t){"settings_side_slider_fixed"!=t&&"settings_side_slider_fixed_toggle"!=t||$('input[name="settings_side_slider_fixed"][value="false"], input[name="settings_side_slider_fixed_toggle"][value="false"]').trigger("click"),setTimeout(function(){$('input[name="'+t+'"]').prop("disabled",!0).parent(".aradio").addClass("disabled")},10)})):$.each(t,function(e,t){"settings_side_slider_fixed"!=t&&"settings_side_slider_fixed_toggle"!=t||"false"==$('input[name="settings_side_slider_enabled"]:checked').val()||$('input[name="'+t+'"]').prop("disabled",!1).parent(".aradio").removeClass("disabled")})}if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);$("#atsettings").html(e);var _=get_server_data("theme-version"),c=$('input[name="settings_sysinfo_theme_updates"]').first().parents("td").parent("tr.atshover"),d=c.find("td").first(),p=d.find(".smaller");c.next("tr").find("td").first().find("b");p.append(' <span class="text-nowrap smaller text-normal">(<span class="smaller text-normal" data-text-installed>'+theme_language("theme_xhred_global_installed_version").toLowerCase()+"</span> <em data-theme-stable-version data-theme-version-container>"+_+'</em><span class="hidden" data-theme-versions></span>)</span>'+theme_spinner_small("in-btn-md tmp_spinner_theme_version"," ","width:10px; height:10px; margin-left: 5px;")),$.ajax({type:"POST",url:v___location_prefix+"/index.cgi/?xhr-theme_latest_version=1",data:!1,dataType:"json",success:function(e){var t=String(),i=e[0],a=i!=e[1]&&e[1],n=$("[data-text-installed]"),s=$(".tmp_spinner_theme_version"),o=$("em[data-theme-stable-version]"),r=$("span[data-theme-versions]");i&&i!=_&&(t+=", "+theme_language("theme_xhred_global_latest_stable").toLowerCase()+' <em data-theme-version-container class="text-success">'+i+"</em>"),a&&a!=_&&(t+=", "+theme_language("theme_xhred_global_latest_beta").toLowerCase()+' <em data-theme-version-container class="text-info">'+a+"</em>"),_&&_.length<=5&&i&&i.length<=5&&i!=_&&o.addClass("text-danger"),t&&!t.length&&(n.text(theme_language("theme_xhred_global_installed_and_latest_version").toLowerCase()),o.addClass("text-success")),r.replaceWith(t),s.remove()},error:function(){}}),page.render.module_config([0,1,0,0,0,0,0,0,1]);var h=$("div#atsettings").find(".ui_form");$__theme_text_right_save=h.data("text-save"),$__theme_text_right_saved=h.data("text-settings_right_saved"),$__theme_text_right_saving=h.data("text-settings_right_saving"),$__theme_text_right_restore_defaults=h.data("text-settings_right_restore_defaults"),$__theme_text_right_restored=h.data("text-settings_right_restored"),$__theme_text_right_restoring=h.data("text-settings_right_restoring"),$__theme_text_right_error=h.data("text-error"),$('.container-fluid .nav-tabs a[href="#atsettings"]').text(h.data("text-current_theme")),$("div#atsettings").removeClass("text-center"),a(),theme_config_update();var u=$("body").find(".fa.fa-sub-title").parent("span");$(u).next("br").remove(),$(u).next("div.smaller").attr("style","margin-top: -15px !important"),u.remove(),t(),$('input[name="settings_right_hide_table_icons"]').on("change",function(){t($(this))}),i(),$('input[name="settings_hotkeys_active"]').on("change",function(){i($(this))}),n(),$('input[name="settings_side_slider_enabled"]').on("change",function(){n($(this))}),s(),$('input[name="settings_sysinfo_real_time_status"]').on("change",function(){s($(this))}),o(),$('input[name="settings_sysinfo_easypie_charts"]').on("change",function(){o($(this))}),r(),$('input[name="settings_sysinfo_theme_updates"]').on("change",function(){r($(this))}),$('select[name="settings_navigation_color"]').on("keyup change",function(e){var t=$(this).val(),i=$("link[data-palette]"),a="blue"!=t;a&&$("head").append('<link href="'+v___location_prefix+"/unauthenticated/css/palettes/"+t.toLowerCase()+"."+v___source_type+".css?"+$.now()+'" rel="stylesheet" type="text/css" data-palette>'),setTimeout(function(){get_server_data("data-theme",t),i.remove(),get_server_data("data-default-theme",t),$("body .user-link.palette-toggle").find(".fa-sun").trigger("click"),theme_config_update()},a?800:0)}),$('select[name="settings_background_color"]').on("click keyup change",function(){var e=$(this).val();get_server_data("data-background-style",e),get_server_data("data-background-style",e),$("link[data-palette]").remove(),"gainsboro"!=e&&($("head").append('<link href="'+v___location_prefix+"/unauthenticated/css/palettes/"+e.toLowerCase()+"."+v___source_type+".css?"+$.now()+'" rel="stylesheet" type="text/css" data-palette>'),$('select[name="settings_navigation_color"]').val("gunmetal").trigger("change")),theme_config_update()}),$('input[name="settings_enable_container_offset"]').change(function(){var e=$(this).val(),t=$(".container-fluid");"false"==e?t.removeClass("col-lg-10 col-lg-offset-1").addClass("margined-top-15"):t.addClass("col-lg-10 col-lg-offset-1").removeClass("margined-top-15")}),$('input[name="settings_contrast_mode"]').change(function(){var e=$(this).val();$("link[data-high-contrast]").remove(),"true"==e&&$("head").append('<link href="'+v___location_prefix+"/unauthenticated/css/high-contrast."+v___source_type+".css?"+$.now()+'" rel="stylesheet" type="text/css" data-high-contrast>'),get_server_data("data-high-contrast","true"==e?"1":"0")}),$('input[name="settings_right_page_hide_persistent_vscroll"]').change(function(){var e=$(this).val(),t=$("#content.__page");"true"==e?t.removeClass("fvscroll"):t.addClass("fvscroll")}),$('select[name="settings_side_slider_palette"]').change(function(){$("body .right-side-tabs, body .right-side-tabs-toggler").attr("data-background-style",$(this).val())}),$('input[name="settings_side_slider_enabled"]').change(function(){"true"==$(this).val()?($("body .right-side-tabs-toggler").removeClass("hidden"),$("body .right-side-tabs").removeClass("hidden"),$('input[name="settings_side_slider_sysinfo_enabled"][value="true"], input[name="settings_side_slider_notifications_enabled"][value="true"], input[name="settings_side_slider_favorites_enabled"][value="true"]').trigger("click")):($("body .right-side-tabs-toggler").addClass("hidden"),$("body .right-side-tabs").addClass("hidden")),theme_config_update(),page_resized()}),$('input[name="settings_side_slider_fixed"]').change(function(){vars.slider_pinned=-1;var e=$(".right-side-tabs-dismiss .fa2-collapse-right");"true"==$(this).val()?(plugins.slider.state(1),e.removeClass("fa-rotate-45")):(plugins.slider.state(0),e.addClass("fa-rotate-45")),theme_config_update()}),$('input[name="settings_side_slider_fixed_toggle"]').change(function(e){var t=$(".right-side-tabs-dismiss .fa2-collapse-right");"true"==$(this).val()?t.removeClass("hidden"):(("true"==$('input[name="settings_side_slider_fixed"]:checked').val()&&t.hasClass("fa-rotate-45")||"false"==$('input[name="settings_side_slider_fixed"]:checked').val()&&!t.hasClass("fa-rotate-45"))&&t.trigger("click"),t.addClass("hidden")),vars.slider_pinned=-1,theme_config_update()}),$('input[name="settings_side_slider_sysinfo_enabled"], input[name="settings_side_slider_notifications_enabled"], input[name="settings_side_slider_favorites_enabled"]').change(function(e){var t="right-side-tabs-"+$(this).attr("name").split("_")[3],i=$(this).attr("name"),a=$("body").find("#"+t).hasClass("active"),n=$('input[name="settings_side_slider_sysinfo_enabled"][value="true"]:checked, input[name="settings_side_slider_notifications_enabled"][value="true"]:checked, input[name="settings_side_slider_favorites_enabled"][value="true"]:checked').length;"true"==$(this).val()?($("body").find('a[href="#'+t+'"], #'+t).removeClass("hidden").parent().removeClass("hidden"),"settings_side_slider_notifications_enabled"===i&&($(".right-side-tab-notification-asterix").removeClass("invisible hidden hidden-forged"),$(".right-side-tabs-toggler .badge.badge-danger").removeClass("invisible hidden hidden-forged"),setTimeout(function(){"function"==typeof plugins.slider.badge&&plugins.slider.badge()},300))):($("body").find('a[href="#'+t+'"], #'+t).addClass("hidden"),a&&n?$("body #right-side-tabs").find("li:not(.active) a:not(.hidden)").first().trigger("click"):0===n&&$('input[name="settings_side_slider_enabled"][value="false"]').trigger("click"),"settings_side_slider_notifications_enabled"===i&&($(".right-side-tab-notification-asterix").addClass("invisible hidden hidden-forged"),$(".right-side-tabs-toggler .badge.badge-danger").addClass("invisible hidden hidden-forged"),plugins.favicon.set(0))),theme_config_update()}),$('input[name="settings_side_slider_sysinfo_enabled"], input[name="settings_side_slider_notifications_enabled"], input[name="settings_side_slider_favorites_enabled"]').each(function(){$('input[name="'+$(this).attr("name")+'"][value="'+window[$(this).attr("name")]+'"]').trigger("change")}),$('select[name="settings_navigation_color"]').after('<i class="fa fa-fw fa-tune fa-1_25x text-semi-dark text-dark-hoverd text-dark-hoverd-red settings_navigation_color_toggle cursor-pointer" data-name="settings_navigation_color" style="margin-left: 10px; vertical-align: middle; background-color: transparent !important"></i>                                                                         <i class="fa fa-fw fa-refresh text-semi-dark text-dark-hoverd text-dark-hoverd-red settings_navigation_color_reset cursor-pointer hidden" data-name="settings_navigation_color" style="margin-left: 4px; vertical-align: middle; background-color: transparent !important"></i>');var f=$(this).attr("data-name")+"_controller";window[f]="hidden",$(".settings_navigation_color_toggle, .settings_background_color_toggle").on("click",function(){void 0===window[f]||"hidden"==window[f]?($("."+$(this).attr("data-name")+"_reset, ."+$(this).attr("data-name")+"_rows").removeClass("hidden"),window[f]="shown"):($("."+$(this).attr("data-name")+"_reset, ."+$(this).attr("data-name")+"_rows").addClass("hidden"),window[f]="hidden"),$(this).toggleClass("forced")}),$(".settings_navigation_color_reset").on("click",function(){if("settings_navigation_color"==$(this).attr("data-name")){var e="-webkit-filter: grayscale(0) sepia(0) saturate(1) hue-rotate(0deg) invert(0) brightness(1) contrast(1); filter: grayscale(0) sepia(0) saturate(1) hue-rotate(0deg) invert(0) brightness(1) contrast(1);";$(".visible-xs.mobile-menu-toggler").attr("style","position: fixed;"+e),$("aside, .visible-xs.mobile-menu-toggler").attr("style","z-index: 10; overflow: visible; transform: translate("+settings_leftmenu_width+"px, 0px);"+e),$('input[name="settings_grayscale_level_navigation"], input[name="settings_sepia_level_navigation"], input[name="settings_hue_level_navigation"], input[name="settings_invert_level_navigation"]').val(0),$('input[name="settings_saturate_level_navigation"], input[name="settings_brightness_level_navigation"], input[name="settings_contrast_level_navigation"]').val(1);$('input[name="settings_grayscale_level_navigation"], input[name="settings_sepia_level_navigation"], input[name="settings_saturate_level_navigation"], input[name="settings_hue_level_navigation"], input[name="settings_invert_level_navigation"], input[name="settings_brightness_level_navigation"], input[name="settings_contrast_level_navigation"]').each(function(){$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val())})}});var g=$('input[name="settings_grayscale_level_navigation"], input[name="settings_sepia_level_navigation"], input[name="settings_saturate_level_navigation"], input[name="settings_hue_level_navigation"], input[name="settings_invert_level_navigation"], input[name="settings_brightness_level_navigation"], input[name="settings_contrast_level_navigation"]');g.on("click keyup change",function(e){var t="-webkit-filter: grayscale("+$('input[name="settings_grayscale_level_navigation"]').val()+") sepia("+$('input[name="settings_sepia_level_navigation"]').val()+") saturate("+$('input[name="settings_saturate_level_navigation"]').val()+") hue-rotate("+$('input[name="settings_hue_level_navigation"]').val()+"deg) invert("+$('input[name="settings_invert_level_navigation"]').val()+") brightness("+$('input[name="settings_brightness_level_navigation"]').val()+") contrast("+$('input[name="settings_contrast_level_navigation"]').val()+"); filter: grayscale("+$('input[name="settings_grayscale_level_navigation"]').val()+") sepia("+$('input[name="settings_sepia_level_navigation"]').val()+") saturate("+$('input[name="settings_saturate_level_navigation"]').val()+") hue-rotate("+$('input[name="settings_hue_level_navigation"]').val()+"deg) invert("+$('input[name="settings_invert_level_navigation"]').val()+") brightness("+$('input[name="settings_brightness_level_navigation"]').val()+") contrast("+$('input[name="settings_contrast_level_navigation"]').val()+");";$(".visible-xs.mobile-menu-toggler").attr("style","position: fixed;"+t),$("aside, .visible-xs.mobile-menu-toggler").attr("style","z-index: 10; overflow: visible; transform: translate("+settings_leftmenu_width+"px, 0px);"+t),$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val()),theme_config_update()}),g.each(function(e,t){$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val()),$(this).parent().parent("td").parent("tr.atshover").addClass("hidden settings_navigation_color_rows hidden-skip"),0===e&&$(this).parent().parent("td").parent("tr.atshover").prev("tr").addClass("hidden-dependent-skip")}),setTimeout(function(){$(".mobile-menu-toggler:visible").length&&$('input[name="settings_leftmenu_width"]').prop("disabled",!0)},100);var m=$('input[name="settings_leftmenu_width"]');m.on("click keyup change",function(e){page_adjust($(this).val(),$(this).val()),$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val()),theme_config_update(),settings_leftmenu_width_initial=$(this).val()}),$('input[name="settings_navigation_always_collapse"]').change(function(e){l($(this)),"true"==$(this).val()?($("html").attr("data-navigation-collapsed",1),$(".mobile-menu-toggler").removeClass("visible-xs"),plugins.navigation.collapse()):"false"==$(this).val()&&($("html").attr("data-navigation-collapsed",0),$(".mobile-menu-toggler").addClass("visible-xs")),setTimeout(function(){page_resized()},10)}),l(),m.each(function(){$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val()),settings_leftmenu_width_initial=$(this).val()}),"restored"==v___location_query&&(g.trigger("click"),m.trigger("click"),$('select[name="settings_navigation_color"], select[name="settings_background_color"]').trigger("change")),$("aside ul.user-html li.user-html-string").html($('input[name="settings_leftmenu_user_html"]').val()),$('input[name="settings_leftmenu_user_html"]').keyup(function(){$("aside ul.user-html li.user-html-string").html($(this).val())}),plugins.navigation.switch.dashboard.get()&&$('input[name="settings_sysinfo_link_mini"]').parent().parent().parent().parent("tr").remove(),$('input[name^="settings_leftmenu_netdata_link"], input[name^="settings_leftmenu_user_html_only_for_administrator"], input[name="settings_sysinfo_real_time_timeout"], input[name="settings_sysinfo_real_time_status_disk"], input[name="settings_sysinfo_easypie_charts_size"], input[name="settings_sysinfo_easypie_charts_width"], input[name="settings_sysinfo_easypie_charts_scale"], input[name="settings_show_theme_configuration_for_admins_only"]').parents("td.col_value.atscontent").parent("tr.atshover").addClass("settings_option_padded"),$('input[data-role="tagsinput"]').tagsinput(),$("body").css("overflow","auto"),$.getScript(v___location_prefix+"/unauthenticated/js/detector."+v___source_type+".js?"+v___theme_version_plain,function(){var e=new Detector;$.each($('select[name="settings_font_family"] option'),function(){var t=$(this).text();e.detect(t)||"system-default"==$(this).val()||$(this).attr("disabled","disabled").text(t+" ("+theme_language("theme_xhred_global_not_available")+")")}),$('select[name="settings_font_family"]').on("keyup change",function(e){var t=$(this).val(),i=($.merge($("head"),$("head")),$("head").find('link[href*="font-"]').add($("head").find('link[href*="font-"]')).add($("head").find('link[href*="fonts-roboto"]')).add($("head").find('link[href*="fonts-roboto"]'))),a=$.merge($("head").find('link[href*="/authentic."]'),$("head").find('link[href*="/authentic."]')),a=a.length?a:$.merge($("head").find('link[href*="/bundle."]'),$("head").find('link[href*="/bundle."]'));i.remove(),"0"==t||"1"==t?"0"==t&&a.after('<link href="'+v___location_prefix+"/unauthenticated/css/fonts-roboto."+v___source_type+".css?"+v___theme_version_plain+'" rel="stylesheet" type="text/css">'):a.after('<link href="'+v___location_prefix+"/unauthenticated/css/font-"+t+"."+v___source_type+".css?"+v___theme_version_plain+'" rel="stylesheet" type="text/css">')})}).fail(function(e){"canceled"!==e.statusText&&connection_error(e,1)}),$('input[name="settings_leftmenu_netdata"]').on("change",function(){var e=$('input[name="settings_leftmenu_netdata_link"]');"true"==$(this).val()?e.removeAttr("disabled"):e.attr("disabled","disabled")}),$('input[name="settings_leftmenu_netdata"]:checked').trigger("change"),$(".right-side-tabs-toggler").length||($('input[name="settings_side_slider_enabled"][value="false"]').trigger("click"),$('input[name="settings_side_slider_enabled"]').attr("disabled","disabled")),page_resized(),$('input[name="settings_show_webmin_tab"]').parents("td").parent("tr").addClass("hidden"),$('[data-toggle="popover"]').popover({sanitize:!1});var v=$('textarea[name="settings_leftmenu_custom_links"]'),b=v.val();v.length&&v.val(Convert.htmlDecode(b).replace(/&#47;/g,"/"));$('form[action*="settings.cgi"] textarea').on("input",function(e){void 0!==e.originalEvent&&theme_config_controls(1)}),theme_config_controls(0),set_onbeforeunload_status(0,0)}});var ev_click_atsettings="#atsave:not(.btn-inverse):not(.disabled)";$("body").undelegate("#atsave:not(.btn-inverse):not(.disabled)","click"),$("body").on("click","#atsave:not(.btn-inverse):not(.disabled)",function(e){e.preventDefault();var t=$(this);spinnerfy_buttons(t,[1.5,-33,"small"]),set_onbeforeunload_status(0,0),theme_config_update(),theme_config("save"),core.updateModuleData("/webmin/edit_startpage.cgi","/webmin/change_startpage.cgi",{gotomodule:$.trim($('select[name="goto_webmin_default_module"]').val())}),setTimeout(function(){$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-settings=1&save=1",data:core.get_global_vars(["settings_"],1),dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);plugins.navigation.reload(),theme_config_controls(0),despinnerfy_buttons(0,t),settings_sysinfo_real_time_status?"object"==typeof stats?(stats.general.timeout=settings_sysinfo_real_time_timeout,stats.general.query()):load.bundle(v___server_extensions_path+"/stats/stats",0,["stats.general.timeout = settings_sysinfo_real_time_timeout","stats.general.query()"]):"object"==typeof stats&&stats.general.kill()},error:function(){t.addClass("btn-danger").removeClass("btn-success btn-inverse opacity-0_5")}})},1e3)})}var theme_control_pages=v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-editor_read.cgi"||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-logos.cgi"||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-backgrounds.cgi";if($is_history_action||!theme_control_pages&&!core.curModuleFile("webmin","edit_themes.cgi")||plugins.navigation.reset(),!$is_history_action&&theme_control_pages){check_location_resource("/settings-logos.cgi?saved=1")&&$.each($(".file_chooser_button_preview:first"),function(){$(this).hasClass("disabled")?$("aside + .__logo").remove():matchMedia("(max-width: 1080px)").matches||($("aside + .__logo").length?($(".__logo img").attr("src",$("[data-image-lga]").attr("data-image")),$("aside + .__logo").attr("style","transform: translate(0px, 0px);"),setTimeout(function(){$(".__logo").transition({y:"-140px"},1200)},400)):($("aside").after('<div class="__logo _logo" style="transform: translate(0px, 0px);"><img src="'+$("[data-image-lga]").attr("data-image")+'"></div>'),setTimeout(function(){$(".__logo").transition({y:"-140px"},1200)},400)))});var ev_click_atsettings2=".authentic_update:not(.disabled), .page_footer_ajax_submit:not(.disabled)";$("body").undelegate(ev_click_atsettings2,"click"),$("body").on("click",ev_click_atsettings2,function(){spinnerfy_buttons($(this),[1.5,-28,"small",!1])}),setTimeout(function(){
v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-editor_read.cgi"&&$(".end_submits").parent("td").after('<td style="text-align: right;">        <a class="btn btn-default page_footer_ajax_submit pull-right" style="margin-top: 5px; margin-right: -2px;" id="edit_bgs" href="'+v___location_prefix+'/settings-backgrounds.cgi"><i class="fa fa-fw fa-image" style="margin-right:5px;"></i>'+theme_language("theme_xhred_settings_right_theme_bgs")+'</a>        <a class="btn btn-default page_footer_ajax_submit pull-right" style="margin-top: 5px; margin-right: -2px;" id="edit_logos" href="'+v___location_prefix+'/settings-logos.cgi"><i class="fa fa-fw fa-file-image-o" style="margin-right:5px;"></i>'+theme_language("theme_xhred_settings_right_theme_logos")+"</a>        </td").parents(".ui_form_end_buttons").css("width","100%"),$(".btn-group.end_submits").css("margin-left","2px"),setTimeout(function(){if(check_location_resource("/settings-logos.cgi?saved=1")||check_location_resource("/settings-backgrounds.cgi?saved=1")){$(".ui_form_end_buttons #saved").replaceWith('<button class="btn btn-success file-editor-save page_footer_ajax_submit" type="submit" name="save" id="save"><i class="fa fa-fw fa-floppy-o"></i> '+theme_language("theme_xhred_global_save")+" </button>")}},1300)},10)}if($is_history_action||v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"settings-logos.cgi"&&v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"settings-backgrounds.cgi"||($(function(){function e(e){void 0===e&&(e=i);var t=["authenticated_logo_file","authenticated_bg_file"];"1"!=e.val()?$.each(t,function(e,t){$('input[name="'+t+'"]').parents(".file-input-wrapper").addClass("disabled").prev(".file_chooser_button_preview").addClass("disabled")}):$.each(t,function(e,t){$('input[name="'+t+'"]').parents(".file-input-wrapper").removeClass("disabled"),"1"==a&&$('input[name="'+t+'"]').parents(".file-input-wrapper").prev(".file_chooser_button_preview").removeClass("disabled")})}function t(e){void 0===e&&(e=n);var t=["unauthenticated_logo_file","unauthenticated_bg_file"];"1"!=e.val()?$.each(t,function(e,t){$('input[name="'+t+'"]').parents(".file-input-wrapper").addClass("disabled").prev(".file_chooser_button_preview").addClass("disabled")}):$.each(t,function(e,t){$('input[name="'+t+'"]').parents(".file-input-wrapper").removeClass("disabled"),"1"==n&&$('input[name="'+t+'"]').parents(".file-input-wrapper").prev(".file_chooser_button_preview").removeClass("disabled")})}var i=$('input[name="authenticated_logo"]:checked, input[name="authenticated_bg"]:checked'),a=i.val(),n=$('input[name="unauthenticated_logo"]:checked, input[name="unauthenticated_bg"]:checked');n.val();e(),$('input[name="authenticated_logo"], input[name="authenticated_bg"]').on("change",function(){e($(this))}),t(),$('input[name="unauthenticated_logo"], input[name="unauthenticated_bg"]').on("change",function(){t($(this))})}),$(".file_chooser_button_preview").on("mouseout",function(e){$(this).css("background","white")}).on("mouseover",function(e){$(this).css("background","#eee")}),$.each($(".file_chooser_button_preview"),function(){$(this).data("image")&&$(this).popover({trigger:"hover",sanitize:!1,html:!0,content:function(){return"<img src='"+$(this).data("image")+"'>"}})})),$("#system-status > div.panel-body > table > tbody > tr > td").on("mouseover",function(){$(this).find(".btn-hidden").removeClass("hidden")}).on("mouseout",function(){$(this).find(".btn-hidden").addClass("hidden")}),core.curModule("bind8")){var $table_data_recursive_tree=$(".container-fluid table[data-recursive_tree]");$table_data_recursive_tree.length&&($table_data_recursive_tree.removeClass().addClass("table table-hover"),$.each($table_data_recursive_tree.find('img[src*="images/"]'),function(e,t){var i=$(this);Test.strContains(i.attr("src"),"close")&&i.replaceWith('<i class="fa fa-fw fa-lg fa-caret-down text-dark"></i>'),Test.strContains(i.attr("src"),"open")&&i.replaceWith('<i class="fa fa-fw fa-lg fa-caret-right text-dark"></i>'),Test.strContains(i.attr("src"),"smallicon")&&i.replaceWith('<i class="fa fa-fw fa-world text-semi-dark"></i>')}))}if((core.curModule("software")&&(Test.strContains(v___location_file,"tree.cgi")||Test.strContains(v___location_file,"ipkg-tree.cgi"))||core.curModuleFile("cluster-software","edit_host.cgi"))&&($('img[src*="images/"]').each(function(e,t){var i=$(this);i.next("a").removeClass(),Test.strContains(i.attr("src"),"close")&&i.replaceWith('<i class="fa fa-fw fa-lg fa-caret-down text-dark"></i>'),Test.strContains(i.attr("src"),"open")&&i.replaceWith('<i class="fa fa-fw fa-lg fa-caret-right text-dark"></i>'),Test.strContains(i.attr("src"),"pack")&&i.replaceWith('<i class="fa fa-fw fa-lg fa-package-install text-semi-dark"></i>')}),Test.strContains(v___location_file,"ipkg-tree.cgi")&&$('form[action*="ipkg-tree.cgi"] + script + p > a, form[action*="ipkg-tree.cgi"] + script + p + table +p > a').addClass("margined-top-10")),(core.curModule("mysql")||core.curModule("postgresql"))&&($('a > img[src*="images/left.gif"]').each(function(e,t){$(this).replaceWith('<i class="fa fa-fw fa-lg fa-arrow-circle-o-left text-semi-light vertical-align-baseline"></i>')}),$('a > img[src*="images/right.gif"]').each(function(e,t){$(this).replaceWith('<i class="fa fa-fw fa-lg fa-arrow-circle-o-right text-semi-light vertical-align-baseline"></i>')})),core.curModuleFile("virtual-server","list_scripts.cgi")&&($('td > a > img[src*="images/staroff.gif"]').each(function(e,t){$(this);$(t).attr("src",v___location_prefix+"/images/staroff.gif")}),$('td > a > img[src*="images/staron.gif"]').each(function(e,t){$(this);$(t).attr("src",v___location_prefix+"/images/staron.gif")})),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"status/"&&($('td img[src*="images/up.gif"]:not(".ui_icon_protected")').each(function(e,t){var i=$(this);$(t).attr("src",v___location_prefix+"/images/check.png"),i.addClass("scale-08")}),$('td img[src*="images/down.gif"]:not(".ui_icon_protected")').each(function(e,t){var i=$(this);$(t).attr("src",v___location_prefix+"/images/cross.png"),i.addClass("scale-08")}),$('td img[src*="images/not.gif"]:not(".ui_icon_protected")').each(function(e,t){var i=$(this);$(t).attr("src",v___location_prefix+"/images/not.png"),i.addClass("scale-08")})),$('.ui_form[action^="delete_mons"] tr.ui_checked_columns > td > label > img[src="images/up.gif"]:not(".ui_icon_protected"), .ui_form[action^="save_mon"] img[src="images/up.gif"]:not(".ui_icon_protected"), table.ui_buttons_table > tbody > tr.ui_buttons_row > td.ui_buttons_label > img[src="images/up.gif"]:not(".ui_icon_protected")').each(function(e,t){var i=$(this);$(t).attr("src",v___location_prefix+"/images/check.png"),i.addClass("scale-08")}),$('.ui_form[action^="delete_mons"] tr.ui_checked_columns > td > label > img[src="images/down.gif"]:not(".ui_icon_protected"), .ui_form[action^="save_mon"] img[src="images/down.gif"]:not(".ui_icon_protected"), table.ui_buttons_table > tbody > tr.ui_buttons_row > td.ui_buttons_label > img[src="images/down.gif"]:not(".ui_icon_protected")').each(function(e,t){var i=$(this);$(t).attr("src",v___location_prefix+"/images/cross.png"),i.addClass("scale-08")}),$('.ui_form[action^="delete_mons"] tr.ui_checked_columns > td > label > img[src="images/not.gif"]:not(".ui_icon_protected"), .ui_form[action^="save_mon"] img[src="images/not.gif"]:not(".ui_icon_protected"), table.ui_buttons_table > tbody > tr.ui_buttons_row > td.ui_buttons_label > img[src="images/not.gif"]:not(".ui_icon_protected")').each(function(e,t){var i=$(this);$(t).attr("src",v___location_prefix+"/images/not.png"),i.addClass("scale-08")}),(core.curModule("proc")||core.curModule("firewall")||core.curModule("firewall6")||core.curModule("shorewall")||core.curModule("shorewall6")||core.curModuleFile("pam","edit_pam.cgi")||core.curModule("filter"))&&($("td a img[src], td label a img[src]").parents("td").addClass("text-center"),$('td img[src*="images/gap.gif"]').replaceWith('<i class="fa fa-fw fa-caret-down invisible"></i>'),$('td a img[src*="images/down.gif"]').replaceWith('<i title="'+theme_language("theme_xhred_move_down")+'" class="fa fa-fw fa-move-down cursor-pointer"></i>'),$('td a img[src*="images/up.gif"]').replaceWith('<i title="'+theme_language("theme_xhred_move_up")+'" class="fa fa-fw  fa-move-up cursor-pointer"></i>'),$('td a img[src*="images/after.gif"]').replaceWith('<i title="'+theme_language("theme_xhred_add_after")+'" class="fa fa-fw fa-level-down cursor-pointer"></i>'),$('td a img[src*="images/before.gif"]').replaceWith('<i title="'+theme_language("theme_xhred_add_before")+'" class="fa fa-fw fa-level-down fa-flip-vertical cursor-pointer"></i>')),(core.curModule("squid")||core.curModule("cron"))&&($('td a img[src*="images/movedown.gif"]').replaceWith('<i title="'+theme_language("theme_xhred_move_down")+'" class="fa fa-fw fa-move-down cursor-pointer"></i>'),$('td a img[src*="images/moveup.gif"]').replaceWith('<i title="'+theme_language("theme_xhred_move_up")+'" class="fa fa-fw fa-move-up cursor-pointer"></i>')),core.curModule("cron")&&($('td a img[src*="images/bottom.gif"]').replaceWith('<i title="'+theme_language("theme_xhred_move_bottom")+'" class="fa fa-fw fa-level-down cursor-pointer"></i>'),$('td a img[src*="images/top.gif"]').replaceWith('<i title="'+theme_language("theme_xhred_move_top")+'" class="fa fa-fw fa-level-down fa-flip-vertical cursor-pointer"></i>')),$("input").each(function(e,t){"images/ok.gif"==$(this).attr("src")&&($(t).attr("src",v___location_prefix+"/"+$(this).attr("src")),$(this).parents("td").attr("style","white-space: nowrap"))}),core.curModule("commands")&&$("body").addClass("custom"),!$is_history_action){if(core.curModuleFile("custom","view.cgi")){var $_t_title=$('form[action="save.cgi"]').find(".table-title"),$_tt=$_t_title.find("tt").detach();$("#headln2c").find("[data-main_title]").after("<span data-sub_title><br>"+$_tt[0].outerHTML+"</span>"),$_t_title.remove()}if($.each($("form > table"),function(){$(this).next('input[type="submit"]')&&$(this).attr("style")}),$.each($("table tr"),function(){$(this).is(":empty")&&$(this).remove()}),$.each($("span > input"),function(){var e=$(this).parent("span").next(".chooser_button"),t=$(this).parent("span").next('input[type="button"][onclick]');$(this).parent("span").next("select");e&&e.attr("style","display: inline; width:40px; height: 28px; margin-right:0 !important; margin-top:4px !important;").find("i.fa-files-o").css("margin-top","0").addClass("vertical-align-middle"),$(this).parents(".tab-content")&&e.css("margin-top","4px"),t&&(t.attr("style","display: inline; width:40px; height: 28px; margin-right:0 !important; vertical-align: middle").next("i.fa-files-o").css("margin-top","11px").addClass("vertical-align-middle"),t.attr("style","display: inline; width:40px; height: 28px; margin-right:0 !important; vertical-align: middle").next("i.fa-calendar").attr("style","margin-top: 21px !important; font-size: 11px; margin-left: -27px; pointer-events: none;"))}),$.each($('input[type="button"][onclick^="ifield"]'),function(e,t){$(this).css("margin-left","0").css("width","40px").css("height","28px")}),$('.ui_form[action="switch.cgi"] > input.form-control.ui_textbox').next('input[type="button"][onclick^="ifield"]').attr("style","margin-top: 2px !important; margin-bottom: 2px !important; margin-left: 0 !important"),setTimeout(function(){$('.ui_form[action="switch.cgi"]  .file_chooser_button_attached').attr("style","font-size: 11px; pointer-events: none; margin-top: 14px !important;")},10),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"cshrc/"&&$("textarea").each(function(e,t){$(this).attr("style","height: 20em !important")}),v___location_path!=v___location_prefix+"/acl/"&&v___location_path!=v___location_prefix+"/acl/edit_user.cgi"||$('.ui_grid_table.table-hardcoded .ui_grid_row .ui_grid_cell input[type="checkbox"], .table-hardcoded .col_value input[type="checkbox"]').each(function(e,t){$(this).attr("style","vertical-align: bottom !important")}),core.curModule("custom")||core.curModule("commands")){$(".panel-body > .ui_grid_table.table-hardcoded").each(function(e,t){$(this).attr("style","margin-top: 3px !important")}),$(".panel-body td > .ui_form").each(function(){$(this).attr("style","padding-top: 0 !important")}),$(".panel-body > a.ui_link").each(function(e,t){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced").removeClass("ui_link"),$(this).text($(this).text().replace(/\.$/,"")),$(this).parent().contents().filter(function(){return 3==this.nodeType}).remove(),0===$(this).attr("href").indexOf("edit_cmd.cgi?new")&&$(this).html('<i class="fa fa-fw fa-terminal"> </i> '+$(this).text()),0===$(this).attr("href").indexOf("edit_file.cgi?new")&&$(this).html('<i class="fa fa-fw fa-pencil-square-o"> </i> '+$(this).text()),0===$(this).attr("href").indexOf("edit_sql.cgi?new")&&$(this).html('<i class="fa fa-fw fa-database"> </i> '+$(this).text())}),$.each($("td[data-td-e] > .ui_links_row"),function(){var e=$(this).parent();e.find('a[href^="edit_"]').addClass("ui_link_replaced btn btn-xxs btn-transparent btn-link-bordered f__lnk_t_btn-el").css("margin-right","3px").removeClass("ui_link").prepend('<i class="fa fa-fw fa-pencil">&nbsp;</i>'),e.parents("table").find("thead > tr > th:eq(2)").addClass("pointer-events-none")}).promise().done(function(){$(this).is(".ui_links_row")&&$(this).contents().unwrap()}),$.each($("td.col_value.col_header > .ui_links_row"),function(){}).promise().done(function(){$(this).is(".ui_links_row")&&$(this).contents().unwrap()}),theme_buttonify(["/custom/","/custom/index.cgi","/commands/","/commands/index.cgi"],".container-fluid table td[data-td-e]:nth-child(3)",'a[href^="form.cgi"]',"btn btn-primary btn-xxs vertical-align-top margined-top-1 margined-left--2 ---forced","fa-cog","","","","|"),theme_buttonify(["/custom/","/custom/index.cgi","/commands/","/commands/index.cgi"],".container-fluid table td[data-td-e]:nth-child(3)",'a[href^="run.cgi"], a[href^="sql.cgi"]',"btn btn-success btn-xxs vertical-align-top margined-top-1 margined-left--2 ---forced","fa-play fa-0_85x","","","","|"),theme_buttonify(["/custom/","/custom/index.cgi","/commands/","/commands/index.cgi"],".container-fluid table td[data-td-e]:nth-child(3)",'a[href^="view.cgi"]',"btn btn-info btn-xxs vertical-align-top margined-top-1 margined-left--2 ---forced","fa-pencil-square-o","","","","|"),theme_buttonify(["/custom/","/custom/index.cgi","/commands/","/commands/index.cgi"],".container-fluid table td[data-td-e]:nth-child(3)",'a[href^="sqlform.cgi"]',"btn btn-info btn-xxs vertical-align-top margined-top-1 margined-left--2 ---forced","fa-cog","","","","|"),theme_buttonify(["/custom/","/custom/index.cgi"],".container-fluid table.ui_grid_table td:last-child",'a.ui_link[href^="edit_"]',"btn btn-default btn-transparent btn-transparent-link btn-xxs vertical-align-top margined-top-1 margined-right-5 pull-right btn-dnwo ---forced","fa-pencil","","","","|"),$('body[class*="custom"] table.ui_grid_table tr td > form .table-responsive table tr:first-child td.col_header button.ui_submit').prepend('<i class="fa fa-fw fa-stop"></i>'),$.fn.mytxtW=function(e,t){return $.fn.mytxtW.fakeEl||($.fn.mytxtW.fakeEl=$("<span>").hide().appendTo(document.body)),$.fn.mytxtW.fakeEl.text(e||this.val()||this.text()||this.attr("placeholder")).css("font",t||this.css("font")),$.fn.mytxtW.fakeEl.width()+2},$('table.ui_grid_table td input[type="text"], table.ui_grid_table td input[type="password"], table.ui_grid_table td textarea').on("input",function(){var e=$(this).mytxtW()+15;$(this).attr("type"),$(this).css({width:e})}).trigger("input");var is_two_columns=$(".sub_table_container").first().find('td[colspan="4"]').length?0:1,$empty_cells=$("table.ui_grid_table tbody tr.ui_grid_row td.ui_grid_cell");$.each($empty_cells,function(){var e=$(this).html();("<br>"==e||e.length<10)&&$(this).remove(),is_two_columns&&($(this).addClass("no-contents"),$(this).parent("tr").addClass("no-contents"))})}if(check_current_file("config.cgi")&&v___location_query&&v___location_query.includes("custom")&&$('[name="width_def"], [name="height_def"], [name="wrap"]').parent().parent("td").parent("tr").addClass("hidden"),snippets.page.render_links($is_history_action),v___location_path==v___location_prefix+"/fdisk/edit_disk.cgi"){var __delete=[];$.each($(".panel-body > table.table.table-striped tbody tr"),function(e,t){($(this).find("td:nth-child(3)").find('img[src*="images/use"]').length||$(this).find("td:nth-child(3)").find('img[src*="images/gap"]').length)&&($(this).find("td:nth-child(3)").remove(),__delete.push(e))}),$.isEmptyObject(__delete)||($(".panel-body > table.table.table-striped thead").find("th:nth-child(3)").remove(),delete __delete)}if(v___location_path==v___location_prefix+"/virtual-server/edit_link.cgi"&&$(".table-hardcoded").find('input[name="open"]').parent("td").parent("tr").remove(),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"init/"&&$('.table.table-striped.table-condensed tr.tr_tag td[data-td-e] input[type="checkbox"]').each(function(e,t){$(this).attr("style","vertical-align: middle !important")}),v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"proc/edit_proc.cgi"&&$("#signal").attr("style","margin-bottom: 0 !important;"),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"procmail/"&&($(".panel-body p:first-child").next("p").contents().filter(function(){return 3==this.nodeType}).remove(),$(".panel-body p:last-child").prev("a.ui_link").remove()),v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"cron/"&&v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"cron/index.cgi"||$('.panel-body form.ui_form[action="index.cgi"]').next("script").next("b").next("p").contents().filter(function(){return 3==this.nodeType}).remove(),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"filter/"&&$(".panel-body > b").next("p").contents().filter(function(){return 3==this.nodeType}).remove(),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"dhcpd/"){var $dhcp_target=$(".panel-body > p");$dhcp_target.find('a[href*="../software"]').length||$dhcp_target.contents().filter(function(){return 3==this.nodeType}).remove()}v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"htaccess-htpasswd/"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"forward/"||$("td table.table-hardcoded.table.table-subtable").removeClass("table-striped"),$(".ui_buttons_hr > td > table.table-hardcoded > tbody > tr > td[nowrap]").each(function(){$(this).parents("table").attr("style","margin-bottom: 15px !important")}),$("textarea.form-control.ui_textarea").next('button[type="button"].btn-default').each(function(){$(this).prev("textarea").attr("style","margin-bottom: 1px !important"),$(this).attr("style","width:100% !important; padding-top: 0; height:28px !important")}),$("textarea.form-control.ui_textarea").next("br").next('button[type="button"].btn-default').each(function(){$(this).prev("textarea").attr("style","margin-bottom: 1px !important"),$(this).attr("style","width:100% !important; padding-top: 0; height:28px !important")}),$(".table-hardcoded > tbody > tr > td > input.form-control.ui_textbox").next('button[type="button"].ui_button').each(function(){$(this).attr("style","margin-top: 2px !important")}),$(".table-hardcoded > tbody > tr > td.col_label b a, .ui_table_row td a").each(function(e,t){$(this).attr("href")||$(this).attr("style","color: #333; text-decoration: none; cursor:default")}),$('input[name="all_weekdays"], .ui_grid_cell > table.table-condensed, table.table-hardcoded table.table-condensed, select[multiple][name="days"]').each(function(){$(this).parent("td").attr("style","vertical-align: top !important; padding-left:2px; padding-right:2px;")}),$('input[type="submit"]').each(function(){$(this).addClass("btn btn-default")}),$("table tr th").each(function(){$(this).text()&&$(this).attr("style","width: auto")}),$("table thead th:not(.table-title)").each(function(){$(this).css("border-top","none"),$(this).css("border-bottom","none")}),$("body").attr("class")&&$("body").attr("class").indexOf(v___module_file_manager)>-1&&(!$("body").hasClass("file-manager")&&$("body").addClass("file-manager"),$("#headln2l").prepend("<a onClick='window.open(\""+v___location_prefix+'/help.cgi/authentic-theme/file-manager", "help", "toolbar=no,menubar=no,scrollbars=yes,width=600,height=400,resizable=yes"); return false\' href="'+v___location_prefix+'/help.cgi/authentic-theme/file-manager"></a>'));var $table_header_links=$(".panel-heading > table.header > tbody > tr > td > a");$.each($table_header_links,function(){if($(this).attr("href")&&$(this).attr("href").indexOf("config.cgi")>-1||$(this).attr("href").indexOf("man/search.cgi")>-1||$(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href")==v___location_directory_trail_slashed||$(this).attr("href").indexOf("index.cgi")>-1&&v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"openvpn/"||$(this).attr("href").indexOf("index.cgi?")>-1&&v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"spam/"||$(this).attr("href").indexOf("restart_zone.cgi")>-1||$(this).attr("href").indexOf("restart.cgi")>-1||$(this).attr("href").indexOf("apply.cgi")>-1||$(this).attr("href").indexOf("start.cgi")>-1||$(this).attr("href").indexOf("stop.cgi")>-1||"//"==$(this).attr("href")&&(v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-editor_read.cgi"||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-logos.cgi")||$(this).attr("href").indexOf("delete_")>-1||$(this).attr("href").indexOf("list_mail.cgi")>-1||$(this).attr("href").indexOf("/virtual-")>-1||$(this).attr("href").indexOf("/virtualmin-")>-1||$(this).attr("href").indexOf("/server-")>-1||$(this).attr("href").indexOf("help.cgi")>-1){if($.each($(this).next("br"),function(){$(this).remove()}),$.each($(this).prev("br"),function(){$(this).remove()}),$(this).attr("href").indexOf("help.cgi")>-1){var e=$(this),t=$(this).parent("td");$(this).remove(),t.append(e)}$(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href")==v___location_directory_trail_slashed||$(this).attr("href").indexOf("/virtual-")>-1||$(this).attr("href").indexOf("/virtualmin-")>-1||$(this).attr("href").indexOf("/server-")>-1?($iconized_class="fa-arrow-left",$(this).data("title","").data("back",1)):"//"!=$(this).attr("href")||v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"settings-editor_read.cgi"&&v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"settings-logos.cgi"?$(this).attr("href").indexOf("config.cgi")>-1?($iconized_class="fa-cog",$(this).data("title","")):$(this).attr("href").indexOf("restart.cgi")>-1||$(this).attr("href").indexOf("apply.cgi")>-1?$iconized_class="fa-refresh":$(this).attr("href").indexOf("restart_zone.cgi")>-1?$iconized_class="fa-retweet":$(this).attr("href").indexOf("start.cgi")>-1?$iconized_class="fa-play":$(this).attr("href").indexOf("stop.cgi")>-1?$iconized_class="fa-square":$(this).attr("href").indexOf("man/search.cgi")>-1?$iconized_class="fa-search":$(this).attr("href").indexOf("delete_")>-1?$iconized_class="fa-trash-o":$(this).attr("href").indexOf("list_mail.cgi")>-1?$iconized_class="fa-inbox":$(this).attr("href").indexOf("index.cgi")>-1&&v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"openvpn/"?$iconized_class="fa-cogs":$(this).attr("href").indexOf("index.cgi?")>-1&&v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"spam/"&&($iconized_class="fa-arrow-left",$(this).data("back",1)):($iconized_class="fa-arrow-left",$(this).attr("href",v___location_prefix+"/webmin/edit_themes.cgi").data("title","").data("back",1));var i=$(this).attr("href").indexOf("help.cgi")>-1;i&&($iconized_class="fa-question-circle",$(this).data("title",""));var a=Convert.strUpInitial(i?theme_language("theme_xhred_global_help"):1===$(this).data("back")?core.curModule(v___module_file_manager)?"":theme_language("theme_xhred_global_return_to_module_index"):$(this).text());$(this).data("toggle","tooltip").data("title",a).attr("data-container","body").addClass("btn btn-link text-lighter").removeClass("ui_link").append('<i class="fa '+$iconized_class+'"></i>'),$(this).attr("aria-label",a),$(this).contents().filter(function(){return 3==this.nodeType}).remove(),$(this).tooltip({container:"body",placement:"auto top",trigger:"hover",delay:{show:600,hide:30}}),((v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"apache/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"proftpd/")&&($(this).attr("href").indexOf("restart.cgi")>-1||$(this).attr("href").indexOf("apply.cgi")>-1)||$(this).parent("td").find("a")&&1==$(this).parent("td").find("a").length||$(this).attr("href").indexOf("man/search.cgi")>-1||$(this).attr("href").indexOf("config.cgi")>-1||$(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href").indexOf("/virtual-")>-1||$(this).attr("href").indexOf("/virtualmin-")>-1||$(this).attr("href").indexOf("/server-")>-1)&&(($(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href").indexOf("config.cgi")>-1)&&$("body").attr("class")&&$("body").attr("class").indexOf(v___module_file_manager)>-1?$(this).attr("style","margin-right: 0 !important; padding: 6px 12px"):$(this).attr("style","margin-right: 0 !important"))}$("#headln2l").removeClass("invisible")}),$.each($('td.ui_grid_cell:contains("|")'),function(){$(this).contents().filter(function(){return 3==this.nodeType}).remove()}),$('a[href*="help.cgi"][onclick], a[href*="help.cgi/"], a[href*="showpass.cgi?"][onclick]').attr("onclick","").unbind("click").addClass("help_popup"),$(".help_popup").each(function(){$(this).attr("style","color: #333; text-decoration: none; cursor:help")})}if(!$is_history_action){if($('select.ui_select[name="days"]').each(function(){$(this).parent("td").attr("style","vertical-align: top !important")}),v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"mailboxes/"&&v___location_path!=v___location_prefix+"/mailboxes/index.cgi"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"mailbox/"&&v___location_path!=v___location_prefix+"/postfix/view_mailq.cgi"||(v___location_file?"list_mail.cgi"==v___location_file&&$('.container-fluid input:not([type="checkbox"]), .container-fluid .ui_form_end_submit, .container-fluid select').addClass("heighter-34").removeClass("heighter-28").css("margin-bottom","-1px"):($(".ui_form_end_submit").css("margin-top","0"),$("input#user").addClass("heighter-34 vertical-align-top")),$("body").find("form").removeAttr("onsubmit"),$header_tables=$("body").find('input[name="from"]').parents(".tab-pane").parent("td"),$header_tables.children("table").hide(),$.each($header_tables.find("input, textarea, select"),function(){$(this).hasClass("ui_select")||$(this).attr("onclick")||"checkbox"==$(this).attr("type")||"submit"==$(this).attr("type")||$(this).attr("style","width: 60%").addClass("inline-block"),$(this).attr("onclick")&&$(this).addClass("inline-block")}),onbeforeunload=null,1==$("body").find('input.ui_hidden[name="html_edit"]').val()&&editor_html_init(["body",2,!1,"edit_web"],"basic"),$("body").find('input[name="from"]').parents(".tab-pane").prev("table").remove(),$("body").find('input[name="from"]').parents(".tab-pane ").parent("td").find("div, table").each(function(e,t){$(this).find(".col_label").css("width","20%"),$(this).find('input[name="subject"]').parent("td").prev("td").find("b").attr("style","font-size: 13px !important"),$(this).find('input[name="subject"]').parents("table").show(),$(this).find('input[name="subject"]').parent("td").find(".submitter").remove()}),$editor_mode_link_container=$("body").find('textarea[id="body"]').parents("table").find("thead > tr > th:last-child"),$editor_mode_link=$editor_mode_link_container.find("a").addClass("editor_mode_link"),$editor_mode_link_container.parent("tr").find("th:first-child").append($editor_mode_link),$editor_mode_link_container.remove(),$editor_mode_link_button=$("body").find('textarea[id="body"]').parents("table").find(".editor_mode_link"),$editor_mode_link_button_state=!!$editor_mode_link_button.attr("href")&&$editor_mode_link_button.attr("href").indexOf("html=0"),$editor_mode_link_button.attr("title",$editor_mode_link_button.text()).addClass("editor_mode_link_button pull-right btn btn-sm "+($editor_mode_link_button_state==-1?"btn-success":"btn-primary")).html('<i class="fa '+($editor_mode_link_button_state==-1?"fa-font":"fa-text-width")+'"> </i>'),$("body").find('textarea[id="body"]').parents("table").find("thead > tr > th").find("b").css("padding-left","45px"),$(".editor_mode_link_button").tooltip(),$fileinput_container=$("body").find('a[onclick="return add_ss_attachment()"]'),$fileinput_container.parent("td").contents().filter(function(){return 3==this.nodeType}).remove(),$fileinput_container.remove(),$fileinput_add_another_attachment=$("body").find('a[onclick="return add_attachment()"]'),$fileinput_add_another_attachment.addClass("btn btn-default"),$fileinput_add_another_attachment.text($fileinput_add_another_attachment.text().replace(/\.$/,"")),(v___location_path.indexOf("view_mail.cgi")>-1||v___location_path.indexOf("view_mailq.cgi")>-1)&&($table_title_header_container=$(".ui_form").find("div.table-responsive").first().find(".table-title"),$table_title_links_container=$table_title_header_container.next(),$table_title_links_container.contents().filter(function(){return 3==this.nodeType}).remove(),$table_title_links_container.find("a").removeClass("btn-inverse").parent(".ui_links_row").contents().unwrap(),$table_title_links_container.find("a").addClass("table_title_links pull-right btn btn-info btn-tiny"),$table_title_links=$table_title_links_container.html(),$table_title_header_container.append($table_title_links),$table_title_links_container.remove(),$table_title_header_container_text_padding=35,$(".table-title > a.table_title_links").each(function(){$table_title_header_container_text_padding=v___location_path==v___location_prefix+"/postfix/view_mailq.cgi"?120:235}),$(".table_title_links_container a").each(function(){$table_title_header_container_text_padding+=$(this).width()}),$table_title_header_container.find("b").css("padding-left",$table_title_header_container_text_padding),$table_title_second_container=$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("table:first-child"),$table_title_header_container=$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("th:first-child"),$table_title_links_container=$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("th:last-child"),2==$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("th").length&&$table_title_links_container.remove(),$table_title_links_container.find("a").addClass("table_title_links pull-right btn btn-tiny"),$table_title_links_container.find("a").attr("href")&&$table_title_links_container.find("a").attr("href").indexOf("body=1")>-1?$table_title_links_container.find("a").addClass("btn-info"):$table_title_links_container.find("a").addClass("btn-warning"),$table_title_links_container.find("a").removeClass("btn-inverse").parent(".ui_links_row").contents().unwrap(),
$table_title_links=$table_title_links_container.html(),$table_title_header_container.append($table_title_links),$table_title_header_container_text_padding=10,$table_title_header_container.find("a").each(function(){$table_title_header_container_text_padding+=$(this).width()}),setTimeout(function(){if($(".ui_form").find("div.table-responsive").first().find("table:first-child").outerWidth()!=$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("table:first-child").outerWidth()){var e=parseInt($(".ui_form").find("div.table-responsive").first().find("table:first-child").width()/2);$table_title_second_container.find(".table-title").addClass("left").find("b").css("padding-left",e-175),$table_title_second_container.find(".pull-right").removeClass("pull-right").addClass("pull-left")}$.each($table_title_second_container.find("table"),function(){$(this).removeClass().addClass("clear-formatting"),$.each($(this).find("td.col_value"),function(){$(this).css("background-color","white")})})},30),$table_title_header_container.find("b").css("padding-left",$table_title_header_container_text_padding),$table_title_header_container.find("b")&&$table_title_header_container.find("b").length>1&&$table_title_header_container.find("b:first-child").text()==$table_title_header_container.find("b:last-child").text()&&$table_title_header_container.find("b:last-child").remove()),$("td > a").on("click",function(){$(this).attr("onclick"),$("input[type=file]").each(function(){$(this).parent("a").hasClass("file-input-wrapper")||$(this).bootstrapFileInput()})}),settings_mailbox_slash_delimiter&&$('.container-fluid select.ui_select[name="id"] > option').each(function(e,t){$(t).text($(t).text().replace(/\./g,"/").replace(/\/\//g,"/"))}),$.each($('table td[align="right"], table td[align="left"]'),function(e,t){$(this).attr("style","border: 0 !important;"),$(this).parents("tbody").attr("style","border: 0 !important;"),$(this).parents("table.table-hardcoded.table.table-striped.table-condensed.table-subtable").removeClass("table-hardcoded table table-striped table-condensed table-subtable")}),$.each($("div.table-responsive > table tbody tr td > table.table-hardcoded"),function(e,t){$(this).find("tr > td.col_label > b").removeAttr("style"),$(this).removeClass("table table-condensed")}),$.each($("div.table-responsive > table tbody tr td > div.tab-pane"),function(e,t){$(this).find("table").removeClass("table"),$(this).parents("div.table-responsive").find("table").removeClass("table-striped table-subtable")}),$.each($('div.table-responsive > table tbody tr td > div.tab-pane .col_value > input[type="button"][onclick^="ifield"]'),function(e,t){$(this).attr("style","margin-left: 0; margin-top: -27px !important")})),$.each($(".barchart"),function(){$(this).find("img").attr("height",4)}),$("a").each(function(){$(this).attr("href")||$(this).addClass("no_effect")}),$.each($(".container-fluid input:not(.ui_upload)"),function(){"28px"==$(this).css("height")&&$(this).prev("input").addClass("heighter-28")}),(core.curModule("syslog")||core.curModule("phpini"))&&$(".container-fluid .chooser_button + .ui_form_end_submit").addClass("heighter-28"),core.curModuleFile("gnupg","edit_key.cgi")&&$(".container-fluid .sub_table_container .table-condensed .btn-success").addClass("heighter-28").removeClass("btn-success").addClass("btn-default"),core.curModuleFile("virtual-server","backuplog.cgi")&&$('.container-fluid input[name="search"]').addClass("margined-top--1"),core.curModuleFile("usermin","list_sessions.cgi")&&$('.container-fluid input[name="user"] + button + button').addClass("heighter-34-force"),$.each($(".container-fluid select"),function(){32==$(this).next("input").outerHeight()&&$(this).addClass("heighter-34")}),$.each($(".container-fluid .ui_buttons_row input, .container-fluid .ui_buttons_row select"),function(){$(this).addClass("heighter-34")}),core.curModuleFile("gnupg","list_keys.cgi")&&$('.container-fluid input[id="id"]').addClass("heighter-34"),core.curModule("language")&&$('select[name="lang"]').addClass("heighter-34"),core.curModuleFile("virtual-server","edit_script.cgi")){var x1z1x1c41=$('input[name="version"]');x1z1x1c41.length&&x1z1x1c41.attr("style",x1z1x1c41.attr("style").replace("n: middle","n: bottom !important")).addClass("heighter-34")}if($.each($("tr > .ui_form"),function(){$(this).next().next("td").find("input.submitter")&&$(this).next().next("td").find("input.submitter").addClass("heighter-34")}),$.each($("input.heighter-34").next(".chooser_button"),function(){$(this).addClass("heighter-34"),$(this).find(".fa.fa-files-o").css("margin-top","0").addClass("vertical-align-middle")}),setTimeout(function(){$.each($(".container-fluid select"),function(){32==$(this).next("input").outerHeight()||32==$(this).prev("input").outerHeight()?$(this).addClass("heighter-34").removeClass("heighter-28"):28!=$(this).next("input").outerHeight()&&28!=$(this).prev("input").outerHeight()||$(this).addClass("heighter-28").removeClass("heighter-34")})},1),core.curModule("term")||core.curModuleFile("server-manager","login.cgi")){var tmp__is__m__term=$("iframe");if(tmp__is__m__term.length){var $this=tmp__is__m__term;$this.on("load",function(){$this.contents().find("#term").css("width","99.3%").css("height","96vh").css("margin-top","1px")}),$(this).next("br").remove().next('input[type="button"]').remove(),$(this).next('input[type="button"]').remove(),$(this).next("p").remove()}}if($.each($(".chooser_button"),function(){$(this).prev("input").attr("style")&&$(this).prev("input").attr("style").indexOf("max-width: 100%")>-1&&$(this).prev("input").css("max-width","93%")}),v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"sysinfo.cgi"&&1==settings_sysinfo_link_mini&&$(".navigation > li:not('.has-sub')").removeClass("sub_active").find("span.current-large").remove(),$.each($('input[value="..."], input[value=" ..."], input[value="  ..."], input[value="... "], input[value="...  "], input[value=" ... "], input[value="  ...  "]'),function(){$(this).after('<i class="fa fa-fw fa-files-o file_chooser_button_attached vertical-align-middle" style="font-size:11px; pointer-events: none"></i>'),$(this).attr("value","").addClass("file_chooser_button_attached_input")}),$.each($(".chooser_button"),function(){$(this).prev("input").css("margin-top","2px").css("margin-bottom","2px")}),$.each($(".file_chooser_button_attached"),function(){$(this).prev('input[type="button"]').prev("input").css("margin-top","2px").css("margin-bottom","2px"),$(this).parents(".ui_buttons_label").length||$(this).parents(".table-subtable").length||$(this).css("margin-top","11px")}),$.each($(".container-fluid .ui_form > .file_chooser_button_attached"),function(){($(this).prev(".heighter-34")&&$(this).prev(".heighter-34").length||$(this).next(".heighter-34")&&$(this).next(".heighter-34").length)&&($(this).css("margin-top","16px"),$(this).prev("input[onclick]").css("width","40px"))}),$.each($('.container-fluid .ui_form[action="init_cache.cgi"] > .file_chooser_button_attached'),function(){($(this).prev(".heighter-34")&&$(this).prev(".heighter-34").length||$(this).next(".heighter-34")&&$(this).next(".heighter-34").length)&&$(this).css("margin-top","14px")}),$.each($(".col_value > .file_chooser_button_attached"),function(){$(this).prev("input[onclick]").css("width","40px").css("margin-left","0")}),v___location_path!=v___location_prefix+"/virtualmin-mailman/"&&v___location_path!=v___location_prefix+"/virtualmin-mailman/index.cgi"||$("input[name^=reset_]").addClass("heighter-28"),v___location_path!=v___location_prefix+"/software/edit_pack.cgi"&&v___location_path!=v___location_prefix+"/apache/show.cgi"&&v___location_path!=v___location_prefix+"/proc/index_search.cgi"||$.each($(".container-fluid .panel-body .btn:not(.chooser_button)"),function(){$(this).removeClass("heighter-28").addClass("heighter-34")}),v___location_path!=v___location_prefix+"/virtualmin-svn/"&&v___location_path!=v___location_prefix+"/virtualmin-svn/index.cgi"||$.each($("tr > td[data-td-e] > button"),function(){$(this).addClass("btn-hover-wash_off-in-row bhw-sm heighter-28 heighter-28-force margined-top-2 margined-bottom-2"),$(this).find(".fa-backup").length&&$(this).removeClass("heighter-28-force")}),v___location_path!=v___location_prefix+"/virtualmin-init/"&&v___location_path!=v___location_prefix+"/virtualmin-dav/list_shares.cgi"&&v___location_path!=v___location_prefix+"/squid/edit_acl.cgi"&&v___location_path!=v___location_prefix+"/virtualmin-nginx/"&&v___location_path!=v___location_prefix+"/fdisk/edit_disk.cgi"&&v___location_path!=v___location_prefix+"/server-manager/edit_newlinks.cgi"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"backup-config/"||$.each($(".container-fluid .panel-body .ui_link_re-replaced"),function(){$(this).addClass("btn-tiny").removeClass("heighter-34")}),v___location_path==v___location_prefix+"/pam/"&&$(".panel-body > a.ui_link").addClass("btn-tiny"),v___location_path!=v___location_prefix+"/software/"&&v___location_path!=v___location_prefix+"/software/index.cgi"||($(".container-fluid input#search").addClass("heighter-34 vertical-align-top"),$('form[action="file_info.cgi"] > .ui_form_end_submit').addClass("heighter-28 heighter-28-force margined-top-0")),v___location_path==v___location_prefix+"/software/tree.cgi"&&$(".ui_link").addClass("margined-top-10"),v___location_path==v___location_prefix+"/syslog/save_log.cgi"&&($.each($(".container-fluid .heighter-34"),function(){$(this).removeClass("heighter-34").addClass("heighter-28")}),$("form:first").next("script").next("br").remove(),$("form:last").css("margin-top","5px")),v___location_path==v___location_prefix+"/status/edit_mon.cgi"&&($('td.col_value > table[cellspacing="1"] tbody').attr("style","border: 0 !important;"),$(".opener_trigger:last-child").css("font-size","16px"),$.each($("table.sub_table_container td > font"),function(){$(this).parents("tbody"),$(this).contents().unwrap().wrap('<i class="fa fa-info-circle"><span class="font-family-default vertical-align-baseline margined-left-3">&nbsp;</span></i>')})),v___location_path!=v___location_prefix+"/shell/"&&v___location_path!=v___location_prefix+"/shell/index.cgi"&&v___location_path!=v___location_prefix+"/server-manager/shell.cgi"&&v___location_path!=v___location_prefix+"/server-manager/massshell.cgi"||($.each($(".container-fluid .btn:not(.btn-link), .container-fluid select, .container-fluid input"),function(){$(this).removeClass("heighter-28").addClass("heighter-34"),$(this).is('input[type="button"]')&&$($(this).addClass("submitter")),$(".form-control.sidebar-search").val()&&$(".form-control.sidebar-search").val().trim().startsWith("!")&&$(".form-control.sidebar-search").val(""),$(".ui_form").find("input.btn.btn-default:first").addClass("btn-success")}),$(".container-fluid input#cmd").focus(),setTimeout(function(){var e=$("#content"),t=e.find(v___page_container).outerHeight();e.scrollTop(t)})),$.each($("input"),function(){28==$(this).outerHeight()&&28!=$(this).next("input").outerHeight()&&$(this).is(':not([type="hidden"])')&&$(this).next("input").addClass("heighter-28")}),$.each($(".container-fluid select"),function(){32==$(this).outerHeight()&&32!=$(this).next("select").outerHeight()&&$(this).next("select").addClass("heighter-34")}),v___location_path==v___location_prefix+"/cluster-passwd/edit_passwd.cgi"&&$.each($("input + button"),function(e,t){"28px"==$(this).css("height")&&$(this).addClass("heighter-28").css("line-height","12px").css("margin-top","2px")}),v___location.pathname!=v___location_prefix+"/virtual-server/pro/history.cgi"&&v___location.pathname!=v___location_prefix+"/server-manager/bwgraph.cgi"&&v___location.pathname!=v___location_prefix+"/server-manager/history.cgi"&&v___location.pathname!=v___location_prefix+"/server-manager/one_history.cgi"||($("body").find("table.ui_form_end_buttons .btn.btn-default.submitter.ui_submit").addClass("btn-success"),$(".panel-body > table tr td .ui_link_empty").each(function(e,t){$(this).addClass("btn-tiny ui_link_replaced")}),$(".panel-body > table a").each(function(e,t){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced").removeClass("ui_link"),$(this).text($(this).text().replace(/\.$/,"")),$(this).text()&&$(this).text().indexOf("<<")>-1&&($(this).text($(this).text().replace(/\<\</,"")),$(this).html('<i style="vertical-align: baseline !important;" class="fa fa-fw fa-angle-double-left"> </i> '+$(this).text())),$(this).text()&&$(this).text().indexOf(">>")>-1&&($(this).text($(this).text().replace(/\>\>/,"")),$(this).html($(this).text()+' <i style="vertical-align: baseline !important;" class="fa fa-fw fa-angle-double-right"> </i>')),$(this).parent().contents().filter(function(){return 3==this.nodeType}).remove(),0===$(this).attr("href").indexOf("edit_cmd.cgi?new")&&$(this).html('<i class="fa fa-fw fa-terminal"> </i> '+$(this).text()),0===$(this).attr("href").indexOf("edit_file.cgi?new")&&$(this).html('<i class="fa fa-fw fa-pencil-square-o"> </i> '+$(this).text()),0===$(this).attr("href").indexOf("edit_sql.cgi?new")&&$(this).html('<i class="fa fa-fw fa-database"> </i> '+$(this).text()),$(this).parents("table").css("margin-bottom","3px")}),$("#history").next("table.ui_grid_table").next("a").length?($("#history").next("table").next("a").addClass("btn btn-info btn-tiny ui_link_replaced").attr("style","margin-top: 4px !important").attr("target","_blank"),$("#history").next("table").next("a").text($("#history").next("table").next("a").text().replace(/\.\.$/,"")),$("#history").next("table").next("a").html('<i style="vertical-align: baseline !important;" class="fa fa-fw fa-external-link"></i>&nbsp;'+$("#history").next("table").next("a").text())):($("#history").next("a").addClass("btn btn-info btn-tiny ui_link_replaced").attr("style","margin-top: 4px !important").attr("target","_blank"),$("#history").next("a").text($("#history").next("a").text().replace(/\.\.$/,"")),$("#history").next("a").html('<i style="vertical-align: baseline !important;" class="fa fa-fw fa-external-link"></i>&nbsp;'+$("#history").next("a").text())),$(".panel-body > hr + b").attr("style","font-size: 16px; font-weight: normal;"),$(".panel-body > hr + b").text($(".panel-body > hr + b").text().replace(/\:$/,"")),onLoad()),$.each($('tr > td[valign="top"][width="50%"]'),function(){var e=$(this).attr("style");$(this).attr("style","vertical-align: top !important; "+(e?e:""))}),$("body table").each(function(e,t){$(this);$(t).hasClass("table")||$(t).hasClass("header")||$(t).hasClass("ui_form_end_buttons")||$(t).hasClass("ui_table")||($(t).addClass("table-hardcoded"),$t_uri_usermin&&($(t).addClass("table-subtable"),$(t).find("tr.thead").length||$(t).hasClass("sub_table_container table-hardcoded table-subtable")?($(t).find("tr.thead").attr("style","border: 1px solid #efefef"),$(t).attr("style","border: 1px solid #efefef")):$(t).attr("style")&&v___location_path.indexOf("view_mail.cgi")>-1||$(t).attr("style","margin-top: 10px;")))}),v___location_path==v___location_prefix+"/virtual-server/list_scripts.cgi"&&table_data_init($("#att_existing > form > table.table.table-striped.table-condensed, #att_new > form > table.table.table-striped.table-condensed"),!1,!1,{orderable:!1,targets:[0,-1]}),v___location_path==v___location_prefix+"/virtual-server/edit_newscripts.cgi"&&table_data_init($("#att_summary > table.table.table-striped.table-condensed")),v___location_path!=v___location_prefix+"/server-manager/index.cgi"&&v___location_path!=v___location_prefix+"/virtualmin-htpasswd/index.cgi"||table_data_init($("body form > table.table.table-striped.table-condensed")),($('body[class*="status"]').length&&!v___location_file&&!$('body[class*="smart-status"]').length||v___location_path==v___location_prefix+"/servers/"||v___location_path==v___location_prefix+"/servers/index.cgi"||v___location_path==v___location_prefix+"/webminlog/search.cgi")&&table_data_init($("table.table-striped.table-condensed")),core.curModule("smart-status")&&($('select[name="drive"]').addClass("heighter-34"),$('select[name="drive"] + .ui_form_end_submit').addClass("heighter-34")),$('body[class*="ldap-useradmin"]').length&&table_data_init($("form > table.table.table-striped.table-condensed")),v___location_path==v___location_prefix+"/virtual-server/list_sched.cgi"&&table_data_init($(".table.table-striped.table-hover.table-condensed"),!1,!1,{orderable:!1,targets:[0,-1]}),v___location_path!=v___location_prefix+"/servers/"&&v___location_path!=v___location_prefix+"/servers/index.cgi"||($(".ui_checked_columns td table tr td").find('a.ui_link[href*="edit_serv.cgi"]').addClass("margined-left-4 label label-sm label-primary hidden").html('<i class="fa fa-fw fa-pencil-square-o"></i>'),$(".ui_checked_columns").hover(function(){$(this).find("td table tr a.ui_link.label.hidden").removeClass("hidden")},function(){$(this).find("td table tr a.ui_link.label").addClass("hidden")})),$.each($('table.table.table-striped.table-condensed.dataTable.no-footer > thead > tr[role="row"]:first-child'),function(e,t){$(this).attr("style","border-top: 4px solid #f2f2f2 !important")}),$.each($('button[onclick^="ifield"].btn.btn-default.ui_button'),function(){$(this).addClass("file_chooser_button_emulate")}),$.each($(".file_chooser_button_emulate"),function(){$(this).find(".fa-files-o").length||$(this).append('<i class="fa fa-fw fa-files-o vertical-align-middle" style="font-size:11px; pointer-events: none"></i>'),"28px"==$(this).prev("input").css("height")&&$(this).addClass("heighter-28")}),$.each($("label > img"),function(e,t){$(this).attr("style","vertical-align: baseline !important")}),$.each($('select[multiple][name="weekdays"]'),function(){$(this).parents('td[valign="top"], td[data-td-e]').attr("style","vertical-align: top !important"),$(this).parents('table[width="100%"]').parents(".ui_radio_table.table-hardcoded").css("width","100%")}),$.each($("label").find("br"),function(){$(this).parent("label").prev(".aradio, .acheckbox").attr("style","margin-left: 0 !important;"),$(this).parent("label").next(".aradio, .acheckbox").attr("style","margin-left: 0 !important;")}),$.each($(".table-responsive + .table-responsive + .table-hardcoded td"),function(){$(this).find(".heighter-34").length&&$.each($(".table-responsive + .table-responsive + .table-hardcoded td"),function(){$(this).find(".btn").addClass("heighter-34")})}),v___location_path==v___location_prefix+"/cpan/edit_mod.cgi"&&$('.container-fluid form[action="download.cgi"]').next().next().next().find(".submitter.ui_submit").addClass("heighter-34"),v___location_path==v___location_prefix+"/cpan/"||v___location_path==v___location_prefix+"/cpan/index.cgi"){var cpan_button=$('input[name="cpan"]').next("button");cpan_button.length&&(cpan_button.html('<i class="fa fa-fw fa-files-o vertical-align-middle" style="font-size:11px; margin-top: -6px; pointer-events: none"></i>').attr("style","width: 40px; height: 28px; vertical-align:middle !important; margin-top:2px; margin-bottom:2px;"),cpan_button.attr("onclick",cpan_button.attr("onclick").replace("document.forms[0]","document.forms[1]")))}if($("form").find(".icons-row:not(.inline-row)").length&&$("form").find(".icons-row").addClass("_processed_").css("border-top","1px solid #efefef").css("border-bottom","1px solid #efefef").find(".icons-container").addClass("icons-container-stretched"),$(".ui_subheading + .ui_links_row ~ .icons-row:not(.inline-row)").length&&$(".ui_subheading + .ui_links_row ~ .icons-row:not(.inline-row)").addClass("_processed_").css("border-top","1px solid #efefef").css("border-bottom","1px solid #efefef").find(".icons-container").addClass("icons-container-stretched"),v___location_path!=v___location_prefix+"/lvm/"&&v___location_path!=v___location_prefix+"/lvm/index.cgi"&&v___location_path!=v___location_prefix+"/virtualmin-support/"&&v___location_path!=v___location_prefix+"/virtualmin-support/index.cgi"&&v___location_path!=v___location_prefix+"/proftpd/virt_index.cgi"&&v___location_path!=v___location_prefix+"/dhcpd/"&&v___location_path!=v___location_prefix+"/dhcpd/index.cgi"&&v___location_path!=v___location_prefix+"/cluster-usermin/"&&v___location_path!=v___location_prefix+"/cluster-usermin/index.cgi"&&v___location_path!=v___location_prefix+"/cluster-useradmin/"&&v___location_path!=v___location_prefix+"/cluster-useradmin/index.cgi"&&v___location_path!=v___location_prefix+"/cluster-webmin/"&&v___location_path!=v___location_prefix+"/cluster-webmin/index.cgi"||function(){$("body").find(".icons-row:not(._processed_):not(.inline-row)").css({"padding-top":"8px","padding-bottom":"8px"}),$("body").find(".icons-row:not(._processed_):not(.inline-row)").css("border-top","1px solid #efefef").css("border-bottom","1px solid #efefef")}(),v___location_path!=v___location_prefix+"/proftpd/"&&v___location_path!=v___location_prefix+"/proftpd/index.cgi"&&v___location_path!=v___location_prefix+"/bacula-backup/"&&v___location_path!=v___location_prefix+"/bacula-backup/index.cgi"||function(){$("body").find(".icons-row:not(._processed_):not(.inline-row)").css({"padding-top":"8px"}),$("body").find(".icons-row:not(._processed_):not(.inline-row)").css("border-top","1px solid #efefef")}(),v___location_path==v___location_prefix+"//"&&function(){$("body").find(".icons-row:not(._processed_):not(.inline-row)").css({"padding-bottom":"6px"}),$("body").find(".icons-row:not(._processed_):not(.inline-row)").css("border-bottom","1px solid #efefef")}(),$.each($(".row.icons-row.inline-row"),function(e,t){$(this).find("a.icon_link").contents().filter(function(){return 3==this.nodeType}).remove()}),$.each($(".row.icons-row:not(.inline-row) .icons-container"),function(e,t){$(this).removeAttr("data-title").removeAttr("data-toggle").removeAttr("data-placement").removeAttr("data-container")}),($("body").find(".icons-row > div.icons-container").length||$("body").find(".icons-row > div.small-icons-container").length)&&($.each($(".icons-row .hidden-forged-6"),function(){$(this).find("input").is(":checked")&&$(this).parents('div[class*="icons-container"]').addClass("highlighted")}),$.each($(".hidden-forged-7 > a"),function(){$(this).removeClass(),$(this).parents(".hidden-forged-7").hasClass("hidden-forged-7-small")?($(this).html('<i aria-label="'+theme_language("theme_xhred_edit_current")+'" class="fa fa-edit text-semi-dark text-dark-hoverd"> </i>'),$(this).parent().parent().prepend('<i aria-label="'+theme_language("theme_xhred_select_deselect")+'" class="fa fa-fw fa-select text-dark text-dark-hoverd gl-icon-select" style="top:1px; left:-1px"></i>')):($(this).html('<i aria-label="'+theme_language("theme_xhred_edit_current")+'"  class="fa fa-edit text-semi-dark text-dark-hoverd"> </i>'),$(this).parent().parent().prepend('<i aria-label="'+theme_language("theme_xhred_select_deselect")+'" class="fa fa-fw fa-lg fa-select text-dark text-dark-hoverd gl-icon-select"></i>'))})),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"virtualmin-registrar/"&&$.each($("td > input "),function(){$(this).parents("table.table-hardcoded").find('form[action="edit.cgi"]').length&&($(this).css("margin-left","5px"),$(this).parent("td").prev("td").find("select").css("margin-left","5px"))}),v___location_path==v___location_prefix+"/cluster-webmin/edit_host.cgi"&&$.each($(".panel-body > .table-hardcoded"),function(){$(this).attr("style","margin-top: 10px !important")}),v___location_path!=v___location_prefix+"/virtual-server/list_scripts.cgi"&&v___location_path!=v___location_prefix+"/virtual-server/edit_newscripts.cgi"||$('form[action="disable_scripts.cgi"] thead + thead tr th, form[action="disable_scripts.cgi"] tbody + thead tr th, form[action="script_form.cgi"] thead + thead tr th, form[action="script_form.cgi"] tbody + thead tr th').attr("colspan","5"),$.each($(".file_chooser_button_attached"),function(e,t){$(this).prev('input[onclick*=".cgi"]')&&$(this).prev('input[onclick*=".cgi"]').css("width","40px")}),!$t_uri_cloudmin||v___location_path!=v___location_prefix+"/server-manager/add_form.cgi"&&v___location_path!=v___location_prefix+"/server-manager/scan_form.cgi"||$.each($("label"),function(){$(this).find("br").remove()}),(v___location_path==v___location_prefix+"/mysql/view_table.cgi"||v___location_path==v___location_prefix+"/postgresql/view_table.cgi")&&$("td[data-td-e] > table.table-hardcoded")){var $tables=$("form .table.table-striped.table-hover.table-condensed");$tables.addClass("table-resizable").resizeableTableColumns(uri_parse_param("table",vars.source_request)||uri_parse_param("table",vars.source_request)||uri_parse_param("table",v___location_file+"?"+$(vars.previous_request.target).serialize())),$tables.find(".ui_checked_checkbox").length&&$tables.find("thead tr th:first-child").addClass("nonresizable");var $___colspan=$("td[data-td-e] > table.table-hardcoded").parents("table").find("thead").find("tr").find("th").length;$("td[data-td-e] > table.table-hardcoded").parent("td[data-td-e]").attr("colspan",$___colspan).attr("style","padding: 1px !important;")}if(v___location_path==v___location_prefix+"/virtual-server/backup_form.cgi"&&v___location_href&&v___location_href.indexOf("?sched=")>-1&&($("body > div > div > div.panel-body > form > table:nth-child(4) > tbody > tr:nth-child(2) > td").css("display","table-cell"),setTimeout(function(){$("a[href=\"javascript:hidden_opener('hiddendiv_adddest', 'hiddenopener_adddest')\"]").next().attr("style","").addClass("btn btn-tiny btn-default")},10)),"/config.cgi"===v___location_path&&$("thead tr th.table-title").prepend('<i class="fa fa-fw fa-cogs vertical-align-text-bottom"></i>&nbsp;&nbsp;'),$.each($('form[action="save_global.cgi"], form[action="save_iptables.cgi"], form[action="save_domain.cgi"],form[action="domain_setup.cgi"],form[action="mass_create.cgi"],form[action="save_roundrobin.cgi"],form[action="save_alert.cgi"], body.time form[action="apply.cgi"]'),function(){$(this).find(".col_header").removeClass("col_header")}),(check_location_resource("/virtual-server/edit_newchangelog.cgi")||check_location_resource("/server-manager/edit_newchangelog.cgi")||check_location_resource("/shell/")||check_location_resource("/shell/index.cgi")||check_location_resource("/server-manager/shell.cgi"))&&$("td.col_value.col_value").removeClass("col_header"),check_location_resource("/ldap-server/edit_ldif.cgi")&&$("span > input.ui_opt_textbox").unwrap(),v___location_path==v___location_prefix+"/server-manager/gvnc.cgi"&&$("body.server-manager p > ").css("height","100%").parent("p").attr("style","display: block; height: "+parseInt($(window).outerHeight()/1.4)+"px"),v___location_path==v___location_prefix+"/spam/edit_simple.cgi"||v___location_path==v___location_prefix+"/spam/edit_header.cgi"){var target=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:first-child"),container=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:last-child"),link=container.find("a");target.append(link),container.remove(),target.find("a").addClass("table_title_links pull-right btn btn-xs btn-warning").attr("style","position: absolute; right: 23px; margin-top: 7px !important;")}if(v___location_path==v___location_prefix+"/server-manager/edit_pass.cgi"&&$('form[action="save_pass.cgi"]').find('a[href*="edit_pass.cgi?"]:not(.btn)').length){var target=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:first-child"),container=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:last-child"),link=container.find("a");target.append(link),container.remove(),target.find("a").addClass("table_title_links pull-right btn btn-info btn-tiny").attr("style","position: absolute; right: 20px; margin-top: 3px !important;")}if($('.panel-default + a[href="/virtual-server/"]').attr("href",v___location_prefix+"/virtual-server/index.cgi"),$('.panel-default + a[href="/server-manager/"]').attr("href",v___location_prefix+"/server-manager/index.cgi"),v___location_directory_trail_slashed==v___location_prefix+"/virtual-server/"?$("#headln2l > a:first-child .fa-arrow-left").parent("a").attr("href",v___location_prefix+"/virtual-server/index.cgi"):v___location_directory_trail_slashed==v___location_prefix+"/server-manager/"&&$("#headln2l > a:first-child .fa-arrow-left").parent("a").attr("href",v___location_prefix+"/server-manager/index.cgi"),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"acl/"){$("body.acl > div > div > div.panel-body > form > div > table > tbody > tr > td > table > tbody > tr:nth-child(1) > td > table > tbody").attr("style","border: 0 !important");var $t__acl_title=$("br").next(".ui_grid_table.table-hardcoded").find("tbody").addClass("border-global-color").parent("table").prev("br").prev("b");$("br").next(".ui_grid_table.table-hardcoded").css("margin-bottom","3px"),$.each($t__acl_title,function(e,t){""==$(this).text()&&($(this).next("br").remove(),$(this).remove())}),$t__acl_title.attr("style","margin-bottom: -3px !important").next("br").remove()}$('body[class*="bandwidth"]').length&&$(".fa.fa-calendar.file_chooser_button_attached").attr("style","font-size: 11px; margin-top: 9px !important; pointer-events: none; margin-left: -27px !important;"),v___location_path!=v___location_prefix+"/mysql/exec_form.cgi"&&v___location_path!=v___location_prefix+"/postgresql/exec_form.cgi"||($('select[name="old"], input[name="clear"], select[name="charset"]').removeClass("heighter-34").addClass("heighter-28"),$('input[name="clear"]').attr("style","margin-bottom: 3px !important;"),$('select[name="old"]').attr("style","margin-bottom: 3px !important; margin-right: 0 !important;")),"config.cgi"!=v___location_file&&"uconfig.cgi"!=v___location_file||"mysql"!=v___location_query&&"postgresql"!=v___location_query||$('input[name="style"]').parents("td.col_value").parent("tr").after('        <tr>            <td class="col_label"><b>'+theme_language("theme_xhred_xsql_fit_content_screen_height")+'</b></td>            <td class="col_value"><span>            <span class="awradio awobject">                <input class="iawobject" name="config_portable_module_xsql_fit_content_screen_height" id="config_portable_module_xsql_fit_content_screen_height_1" value="true"'+(config_portable_module_xsql_fit_content_screen_height?" checked":"")+' type="radio">                <label class="lawobject" for="config_portable_module_xsql_fit_content_screen_height_1">'+theme_language("theme_xhred_global_yes")+'</label>                <input class="iawobject" name="config_portable_module_xsql_fit_content_screen_height" id="config_portable_module_xsql_fit_content_screen_height_0" value="false"'+(config_portable_module_xsql_fit_content_screen_height?"":" checked")+' type="radio">                <label class="lawobject" for="config_portable_module_xsql_fit_content_screen_height_0">'+theme_language("theme_xhred_global_no")+"</label>            </span>        </span></td>        </tr>    "),core.curModuleFile("virtual-server","edit_limits.cgi")&&0===get_access_level()&&setTimeout(function(){var e=$("#headln2c tt").text().replace(/\..*/g,"").replace(/\.|\-/g,""),t="settings_show_webmin_tab_"+e;snippets.inject_extra_option("tr/yes:no",$('input[name="demo"]'),t,theme_language("theme_xhred_settings_show_webmin_tab"))},300),$(".ui_post_header.hidden").html()&&$(".ui_post_header.hidden").html().length>5&&($("#headln2c").append("<span data-sub_title>"+$(".ui_post_header.hidden").html()+"</span>"),$(".ui_post_header.hidden").remove())}if(v___location_path&&v___location_path.indexOf("/sysinfo.cgi")>-1){if(!$is_history_action){var status_id="#system-status",$status_panel_content=$("#system-status .panel-body");!$status_panel_content.text().trim()&&$status_panel_content.parent("#system-status").remove(),$('#status_services-status-1-collapse .tr_tag [data-td-e] > img[src*="images/up.gif"]:not(".ui_icon_protected")').each(function(e,t){var i=$(this)
;$(t).attr("src",v___location_prefix+"/images/check.png").css("margin-right","3px").attr("title",$.trim(i.parent("[data-td-e]").text()))}),$('#status_services-status-1-collapse .tr_tag [data-td-e] > img[src*="images/down.gif"]:not(".ui_icon_protected")').each(function(e,t){var i=$(this);$(t).attr("src",v___location_prefix+"/images/cross.png").css("margin-right","3px").attr("title",$.trim(i.parent("[data-td-e]").text()))}),$('#status_services-status-1-collapse .tr_tag [data-td-e] > img[src*="images/not.gif"]:not(".ui_icon_protected")').each(function(e,t){var i=$(this);$(t).attr("src",v___location_prefix+"/images/not.png").css("margin-right","3px").attr("title",$.trim(i.parent("[data-td-e]").text()))}),$.each($(".piechart"),function(){isNaN($(this).data("percent"))&&$(this).parents(".text-center").remove()}).promise().done(function(){var e=$("span[data-charts]"),t='div[class^="col-md-"]',i=e.parents(".row").find(t).length,a=12/i,n=2===i?"3":"1"===i?"6":"",a=n?n:a;$.each(e.parents(".row"),function(e,n){if($(this).find(t).removeClass().addClass("col-md-"+(2===i?6:a)+" col-md-"+1.5*a+" col-xs-"+1.5*a+" col-xs-"+2*a+" text-center xx"),3===i){$(this).find(t).last().removeClass("col-xs-6 col-xs-8").addClass("col-xs-12")}})});var sorted_data=$(".__page .panel-group .panel-default").sort(function(e,t){return $(e).data("sorter")>$(t).data("sorter")?1:-1}).appendTo("#extended_sysinfo-1.panel-group");$('span[data-entry="nf_seen"]').parent("button").on("click",function(e){e.preventDefault();var t=$(this),i=$('form[action*="seen_newfeatures.cgi"]');$.ajax({type:"GET",url:i.attr("action"),data:!1,statusCode:{200:function(){t.parents(".panel.panel-default").remove()}}})});var aria_label_attr="aria-label";$.each($(".__page [data-title]:not([aria-label]), .__page [title]:not([aria-label])"),function(e,t){$(this).attr("aria-label",$(t).attr("data-title")||$(t).attr("title"))})}snippets.datetime.tictac(1,1),setTimeout(theme_title_generate)}if($is_history_action)!function(){if(core.curModule("updown")||core.curModuleFile("updown","index.cgi")){var e=$('form.ui_form[action*="upload.cgi"]'),t=e.find(".ui_submit.ui_form_end_submit"),i=e.find(".file-input-wrapper");theme_restore_buttons_class(),$.fn.bootstrapFileInputReset(e),despinnerfy_buttons(0,t),i.find("span").remove(),i.contents().unwrap()}}(),init_dnd_uploads();else{if(v___location_path==v___location_prefix+"/virtual-server/edit_phpmode.cgi"&&$("#hiddendiv_phpinfo table tbody tr").css("border","1px solid #"+(v___theme_night_mode_enabled?"393b3f":"eee")),$.each($('a[href*="showpass.cgi?"][onclick]'),function(){$(this).html('<i class="fa fa-fw fa-lg fa-key margined-left-4"></i>').css("color","#555")}),v___location_path==v___location_prefix+"/webmin/edit_startpage.cgi"&&($('select[name="deftab"]').parents("td.col_value").parent("tr").hide(),$('select[name="gotomodule"] option').each(function(){("virtual-server"==$(this).val()||"server-manager"==$(this).val())&&$(this).remove()})),v___location_path==v___location_prefix+"/webmin/edit_ui.cgi"||v___location_path==v___location_prefix+"/usermin/edit_ui.cgi"){$('select[name*="sysinfo"], select[name*="dateformat"], input[name*="showlogin"], input[name*="showhost"], input[name*="sizefile_def"], input[name*="sizeuser_def"], input[name*="sizemodule_def"], input[name*="sizeusers_def"], input[name*="sizemodules_w"], input[name*="cs_link_def"], input[name*="cs_header_def"], input[name*="cs_table_def"], input[name*="cs_text_def"], input[name*="cs_page_def"], input[name*="width_def"], input[name*="height_def"], input[name*="sizedate_def"], input[name*="texttitles"]').parents("td.col_value").parent("tr").addClass("hidden"),$(".sub_table_container tr td.no-border").parent("tr").addClass("hidden");var $container_ui_interface=$(".container-fluid .panel-body");$container_ui_interface.contents().filter(function(){return 3==this.nodeType}).remove(),$container_ui_interface.find("p").first().remove()}if((check_location_resource("/config.cgi?virtual-server")||check_location_resource("/config.cgi?server-manager"))&&($('input[name="theme_image"], input[name="theme_link"], input[name="theme_alt"]').parents("td.col_value").parent("tr").hide(),0===$('input[name="show_sysinfo"]:checked').length&&$('input[name="show_sysinfo"][value="1"]').attr("checked","checked")),v___location_path==v___location_prefix+"/virtual-server/edit_resel.cgi"&&$('input[name="logo"][id="logo"], input[name="link"]').parents("td.col_value").parent("tr").hide(),v___location_path==v___location_prefix+"/virtual-server/edit_newfeatures.cgi"){$('.container-fluid tr td:last-child label:contains("|")').replaceText(/\|/gi,"");var $targets_features_and_plugins_links=$(".container-fluid td a.ui_link");$targets_features_and_plugins_links.addClass("ui_link_replaced btn btn-transparent btn-link-bordered f__lnk_t_btn-el margined-left--2 btn-xxs").removeClass("heighter-34").removeClass("ui_link btn-inverse btn-tiny").prepend('<i class="fa fa-fw fa-eye hidden" style="vertical-align: baseline !important">&nbsp;&nbsp;</i>'),$.each($targets_features_and_plugins_links,function(){var e=$(this).parent();e.is(".ui_links_row")&&(e.parent().is("label")&&e.parent().contents().unwrap(),e.contents().unwrap()),$(this).parents("td.cursor-pointer").attr("data-td-e",1)})}if($("#headln2l .btn .fa-arrow-left").length){$("body").attr("class")&&$("body").attr("class").indexOf(v___module_file_manager)>-1||$("#headln2l .btn .fa-arrow-left").parent("a").attr("href",$("#headln2l .btn .fa-arrow-left").parent("a").attr("href").replace("index.cgi",""));var v___URI=URI(v___location);v___location_file=v___URI.filename()}$("#headln2r, #headln2l").prepend('<div class="btn-group">').append("</div>"),$("#headln2r a").detach().appendTo("#headln2r .btn-group"),$("#headln2l a").detach().appendTo("#headln2l .btn-group"),$.support.spa||$("body").hasClass("file-manager")||$("#headln2l .btn-group").prepend('<a href="'+v___location_prefix+'/" data-container="body" class="btn btn-link text-lighter pd-lf-10 pd-rt-10" data-placement="auto top" data-toggle="tooltip" data-title="'+theme_language("theme_xhred_return_home")+'"><i class="fa fa-home fa-md"></i></a>'),$.support.spa||$("body").hasClass("file-manager")||get_server_data("data-slider-fixed",0),$.each($(".ui_form_end_submit"),function(){if(v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"proc/edit_proc.cgi"&&v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"proc/kill_proc.cgi"&&v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"proc/renice_proc.cgi"&&"edit_dbase.cgi"!=v___location_file&&"edit_pam.cgi"!=v___location_file&&"list_records.cgi"!=v___location_file&&!core.curModule("mailbox")&&!core.curModule("mailboxes")){var e=$(this).parent().find(".ui_form_end_submit");!e.parents(".btn-group").length&&e.length>1&&$(this).parent().find(".ui_form_end_submit, .ui_form_end_submit + input").wrapAll('<div class="btn-group end_submits"></div>')}}).promise().done(function(){$.each($(".end_submits"),function(e,t){($(this).prev(".heighter-28").length||"28px"==$(this).prev("input, select").css("height"))&&$(this).find(".ui_form_end_submit").addClass("heighter-28");var i=$('select[name*="parentuser"]').first();if(core.curModule("virtual-server")&&1===i.length){var a=i.addClass("heighter-34 pull-left").attr("style","margin-top: 0 !important; margin-right: -1px;").detach();$('button[name="add1"] + input').after(a)}})}),$.each($(".btn-group").find("span"),function(){$(this).not("[class]").length&&!$.trim($(this).text()).length&&$(this).remove()}),2===$(".panel-default").nextAll("a.btn.btn-primary").length&&$(".panel-default").next("a.btn.btn-primary").find(".fa.fa-arrow-left").removeClass("fa-arrow-left").addClass("fa-arrow-circle-o-left"),3===$(".panel-default").nextAll("a.btn.btn-primary").length&&($(".panel-default").next("a.btn.btn-primary").next("a.btn.btn-primary").find(".fa.fa-arrow-left").removeClass("fa-arrow-left").addClass("fa-arrow-circle-left"),$(".panel-default").next("a.btn.btn-primary").find(".fa.fa-arrow-left").removeClass("fa-arrow-left").addClass("fa-arrow-circle-o-left")),v___location_path==v___location_prefix+"/init/reboot.cgi"&&$("input.btn-success").removeClass("btn-success").addClass("btn-warning"),v___location_path==v___location_prefix+"/init/shutdown.cgi"&&$("input.btn-success").removeClass("btn-success").addClass("btn-danger"),$.support.spa||page_display(),$(".dataTable .ui_checked_checkbox").parent("tr").parent("tbody").prev("thead").find("th:first-child").addClass("opacity-0 pointer-events-none"),$("table tr.thead td").addClass("tdhead"),(core.curModuleFile("virtual-server","edit_newchroot.cgi")||core.curModuleFile("virtual-server","edit_newglobal.cgi")||core.curModuleFile("virtual-server","edit_newshells.cgi")||core.curModuleFile("virtual-server","edit_newshells.cgi")||core.curModuleFile("virtual-server","view_backuplog.cgi")||core.curModuleFile("virtual-server","edit_phpver.cgi")||core.curModuleFile("virtual-server","edit_spf.cgi")||core.curModuleFile("virtual-server","ratelimit.cgi")||core.curModuleFile("virtual-server","edit_newfields.cgi")||core.curModuleFile("server-manager","edit_docker.cgi")||core.curModuleFile("server-manager","edit_vserver.cgi")||core.curModuleFile("server-manager","edit_zone.cgi")||core.curModuleFile("server-manager","edit_openvz.cgi")||core.curModuleFile("server-manager","list_locations.cgi")||core.curModuleFile("server-manager","edit_lxc.cgi")||core.curModuleFile("server-manager","list_ips.cgi")||core.curModuleFile("squid","edit_cachemgr.cgi")||core.curModuleFile("fsdump","edit_dump.cgi")||core.curModuleFile("mysql","backup_form.cgi")||core.curModuleFile("mysql","table_form.cgi")||core.curModuleFile("postgresql","backup_form.cgi")||core.curModuleFile("cron","edit_cron.cgi")||core.curModuleFile("cluster-copy","edit.cgi")||core.curModuleFile("cluster-cron","edit.cgi")||core.curModuleFile("webalizer","edit_log.cgi")||core.curModuleFile("apache","edit_global.cgi")||core.curModuleFile("logrotate","edit_sched.cgi")||$('body[class*="bind8"]').length&&v___location_file||$('body[class*="status"]').length&&"edit_mon.cgi"==v___location_file||$('body[class*="custom"]').length&&"edit_sql.cgi"==v___location_file||$('body[class*="custom"]').length&&"edit_cmd.cgi"==v___location_file||$('body[class*="custom"]').length&&"edit_file.cgi"==v___location_file)&&$(".table:not(.opener_table_style)").removeClass("table-hover").addClass("no-hover");var dynamic_switch_off_on=$(".fa-toggle-switch-off").parent("button.btn-default");if(1===dynamic_switch_off_on.length){"1"==dynamic_switch_off_on.parent("td").find('input[type="radio"]:checked').val()&&dynamic_switch_off_on.find(".fa-toggle-switch-off").addClass("fa-toggle-switch").removeClass("fa-toggle-switch-off")}var $parent_td=dynamic_switch_off_on.parents("td");$parent_td.find('[type="radio"]').length&&$parent_td.addClass("vertical-align-bottom");var my_editor_page=$('form[action*="manual"] > select[name="file"], form[action*="manual.cgi"] > select[name="manual"], form[action*="edit_"] > select[name="file"]');my_editor_page.length&&(my_editor_page.addClass("heighter-34"),$('form[action*="manual"], form[action*="edit_"]').css("margin-bottom","2px")),core.curModule("firewalld")&&($("select#zone").addClass("heighter-34"),$('form[action="save_ifaces.cgi"] button').addClass("heighter-28-force")),$('body[class*="proftpd"] .table-hardcoded tr td > input + input.btn.btn-default').removeClass("heighter-28").addClass("heighter-34").prev("input").addClass("heighter-34"),$('body[class*="proftpd"] form[action="find_ftpaccess.cgi"] > input:first-child').removeClass("heighter-34").addClass("heighter-28"),"edit_simple.cgi"==v___location_file&&$('body[class*="spam"]').length&&$("tr td").contents().filter(function(){return 3==this.nodeType}).remove(),"edit_awl.cgi"==v___location_file&&$('body[class*="spam"]').length&&$('input[name="user"]').next("input").addBack().addClass("heighter-34"),core.curModuleFile("usermin","list_sessions.cgi")&&$('.container-fluid #user, .container-fluid input[type="button"]').addClass("heighter-34"),(core.curModuleFile("htaccess-htpasswd","")||core.curModuleFile("htaccess-htpasswd","index.cgi"))&&($("#search, .chooser_button").addClass("heighter-34").css("margin-bottom","-1px"),$("#search").css("margin-top","1px"),$('form[action*="search.cgi"] .ui_form_end_submit').css("margin-top","2px").css("margin-right","-4px")),(core.curModuleFile("mailboxes","")||core.curModuleFile("mailboxes","index.cgi"))&&($("#user").addClass("heighter-34 vertical-align-middle margined-bottom-1"),$(".chooser_button").addClass("margined-top-2 margined-bottom-2")),core.curModuleFile("mailboxes","list_mail.cgi")&&$("#mfolder1, #mfolder2").addClass("heighter-34").css("margin-bottom","-1px").css("margin-top","-1px"),core.curModuleFile("quota","list_users.cgi")&&$("#user, #user + input").addClass("heighter-34"),core.curModuleFile("quota","list_groups.cgi")&&$("#group, #group + input").addClass("heighter-34"),(core.curModuleFile("apache","htaccess.cgi")||core.curModuleFile("virtualmin-registrar","index.cgi")||core.curModuleFile("virtualmin-registrar",""))&&$(".ui_form_end_submit").addClass("heighter-28-force");var attempt_make_all_elem=$('form:not([action="save_log.cgi"]) .table-responsive .table .sub_table_container .table tbody tr td > select,                               form:not([action="save_log.cgi"], [action="save_net.cgi"]) .table-responsive .table .sub_table_container .table tbody tr td > input,                               form:not([action="save_user.cgi"], [action="save_group.cgi"]) .table td.opener_container td.col_value table tbody tr td > select,                               form:not([action="save_user.cgi"], [action="save_group.cgi"]) .table td.opener_container td.col_value table tbody tr td > input,                               form[action="save_newglobal.cgi"] > table tbody tr td input,                               form[action="save_newfields.cgi"] > table tbody tr td input,                               form[action="save_newfields.cgi"] > table tbody tr td select,                               form[action="save_newshells.cgi"] > table tbody tr td select,                               form[action="save_newshells.cgi"] > table tbody tr td input,                               form[action="save_linkcats.cgi"] > table tbody tr td input,                               form[action="save_gen.cgi"] > table tbody tr td input                               ');$.each(attempt_make_all_elem,function(e,t){if(!($(this).parent().find("input[data-mmclick]").length||$(this).parent().find("button[data-mmclick]").length||$(this).parent().find('input[onclick*="window.open"]').length||$(this).parent().find('button[onclick*="window.open"]').length))return $(this).prev(".awobject").length?void $(this).css("width","auto"):void(1==$(this).parent().find('input:not([type="checkbox"], [type="radio"]), select').length?$(this).css("width","100%").css("min-width","100%"):2==$(this).parent().find('input:not([type="checkbox"], [type="radio"]), select').length&&($(this).parent().find("input, select").first().css("width","39%"),$(this).parent().find("input, select").last().css("width","60%").css("float","right")))});var $edit_new_style_target=$('a[onclick^="window.open(\\"thumb_style.cgi?"]');if(core.curModuleFile("virtual-server","edit_newstyles.cgi")?$edit_new_style_target.html('<i class="fa fa-fw fa-external-link"></i>').addClass("btn btn-transparent btn-link-bordered btn-xxs margined-top--3"):core.curModule("virtual-server")&&$edit_new_style_target.html('<i class="fa fa-fw fa-external-link" style="margin-top: 7px;"></i>').addClass("btn btn-transparent btn-link-bordered heighter-28-force"),$edit_new_style_target.on("click",function(e){e.stopPropagation()}),core.curModuleFile("virtual-server","edit_html.cgi")){$('.ui_form_end_submit:not([name="create"], [name="cancel"], [name="save"], [name="delete"])').addClass("heighter-28-force");var is_html_mode_edit_web_pages=v___location_query.indexOf("editok")!==-1||v___location_query.indexOf("createok")!==-1,is_text_mode_edit_web_pages=v___location_query.indexOf("textok")!==-1;is_html_mode_edit_web_pages&&$("#body").length?($("#editok").removeClass("btn-default").addClass("btn-grey"),$("#body").css("display","none"),$("hr + b").addClass("hidden"),$("#body").after('<div class="display-inline-block text-center __tmp__spinner" style="margin-top: -35px;"><span class="cspinner" style="margin-top:18px; position: relative"><span class="cspinner-icon"></span></span></div>'),editor_html_init(["body",2,!0,"edit_web"])):is_text_mode_edit_web_pages&&($("#textok").removeClass("btn-default").addClass("btn-grey"),editor_init_check()&&editor_init($(".container-fluid > .panel > .panel-body textarea"),!1,!1,"static",!1,!0,!1,$is_history_action)),$(".ui_form_end_submit").click(function(){set_onbeforeunload_status(0,0)}),$("input:file").change(function(){var e=$(this);setTimeout(function(){$('form[action*="upload_html.cgi"]').append(e)},500)})}var $magic_button_selector='        body button[onclick*="window.open"][onclick*="choose"][onclick*="chooser.cgi"]:not([onclick*="_chooser.cgi"]),        body input[onclick*="window.open"][onclick*="choose"][onclick*="chooser.cgi"]:not([onclick*="_chooser.cgi"]),                body button[onclick*="window.open"][onclick*="choose"][onclick*="cron_chooser.cgi"],        body input[onclick*="window.open"][onclick*="choose"][onclick*="cron_chooser.cgi"],                body button[onclick*="window.open"][onclick*="choose"][onclick*="standard_chooser.cgi"],        body input[onclick*="window.open"][onclick*="choose"][onclick*="standard_chooser.cgi"],                body button[onclick*="window.open"][onclick*="choose"][onclick*="third_chooser.cgi"],        body input[onclick*="window.open"][onclick*="choose"][onclick*="third_chooser.cgi"],                body button[onclick*="window.open"][onclick*="choose"][onclick*="user_chooser.cgi"],        body input[onclick*="window.open"][onclick*="choose"][onclick*="user_chooser.cgi"],                body button[onclick*="window.open"][onclick*="choose"][onclick*="group_chooser.cgi"],        body input[onclick*="window.open"][onclick*="choose"][onclick*="group_chooser.cgi"],                body button[onclick*="window.open"][onclick*="choose"][onclick*="my_group_chooser.cgi"],        body input[onclick*="window.open"][onclick*="choose"][onclick*="my_group_chooser.cgi"],                body button[onclick*="window.open"][onclick*="choose"][onclick*="interface_chooser.cgi"],        body input[onclick*="window.open"][onclick*="choose"][onclick*="interface_chooser.cgi"],                body button[onclick*="window.open"][onclick*="choose"][onclick*="module_chooser.cgi"],        body input[onclick*="window.open"][onclick*="choose"][onclick*="module_chooser.cgi"]    ';if($($magic_button_selector).length&&$($magic_button_selector).each(function(){$(this).attr("data-mmclick",$(this).attr("onclick")).removeAttr("onclick"),plugins.chooser.target($(this),0)}),core.curModuleFile("virtualmin-nginx","")||core.curModuleFile("virtualmin-awstats","")||core.curModuleFile("fdisk","edit_disk.cgi")||core.curModuleFile("virtual-server","edit_newlinks.cgi")||core.curModuleFile("virtualmin-dav","list_shares.cgi")||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"pam/"&&!v___location_file||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"syslog/"&&(!v___location_file||"index.cgi"===v___location_file)||v___location_path==v___location_prefix+"/postfix/master.cgi"){var obj=$('.panel-body > .ui_link, .panel-body > .ui_link_replaced,                 body[data-uri*="virtualmin-awstats"] .panel-body > form > .ui_link_replaced,                 body[data-uri*="edit_disk.cgi"] .panel-body p > a.ui_link_replaced,                 body[data-uri*="edit_newlinks.cgi"] .panel-body > form > .ui_link_replaced,                 body[data-uri*="edit_newlinks.cgi"] .panel-body > .ui_emptymsg + p > .ui_link_replaced'),text=$.trim(obj.first().text()),href=obj.first().attr("href");"undefined"!=typeof settings_hidden_force_table_header_links?href&&($("#headln2r .btn-group a").addClass("pull-left").attr("style",""),$("#headln2r .btn-group").prepend('          <a href="'+($.support.spa?v___location_directory_trail_slashed:"")+href+'" class="btn btn-link text-lighter text-decoration-none pull-left" data-container="body" data-toggle="tooltip" data-title="'+text+'">          <i class="fa fa-plus"></i>          </a>          '),obj.next("br").remove(),obj.remove()):(obj.addClass("btn btn-inverse btn-tiny ui_link_replaced"),obj.find(".fa").length||obj.prepend('<i class="fa fa-fw fa-plus-square-o"> </i> '))}if(v___theme_night_mode_enabled||v___theme_night_mode){if($(".opener_shown").length>0){var __tmp_ui_grinTable=$(".opener_container, .opener_container:hidden").find(".ui_grid_table, .ui_grid_table:hidden");__tmp_ui_grinTable.length&&$.each(__tmp_ui_grinTable,function(e,t){$(this).parent("td").attr("style","padding: 0 !important")})}if($(".opener_table_style_small").length>0){var __tmp_ui_hardTable=$(".opener_table_style_small, .opener_table_style_small:hidden").find(".sub_table_container.table-hardcoded, .sub_table_container.table-hardcoded:hidden");__tmp_ui_hardTable.length&&$.each(__tmp_ui_hardTable,function(e,t){$(this).parent("td").attr("style","padding: 0 !important"),$(this).find("tbody tr td").attr("style","padding-left: 3px !important; padding-right: 3px !important")})}}if($('html[data-script-name*="webmin/edit_assignment.cgi"] table table tbody tr td, html[data-script-name*="usermin/edit_assignment.cgi"] table table tbody tr td').hover(function(){$(this).is("td:nth-child(1)")||$(this).is("td:nth-child(3)")?$(this).addClass("hl-ow").next("td").addClass("hl-ow"):($(this).is("td:nth-child(2)")||$(this).is("td:nth-child(4)"))&&$(this).addClass("hl-ow").prev("td").addClass("hl-ow")},function(){$(this).removeClass("hl-ow").next("td").removeClass("hl-ow"),$(this).removeClass("hl-ow").prev("td").removeClass("hl-ow")}),(core.curModuleFile("server-manager","edit_pass.cgi")&&!v___location_query.includes("force=1")||core.curModuleFile("virtual-server","list_databases.cgi")||core.curModuleFileQuery("virtualmin-registrar","edit.cgi","registrar=")||core.curModuleFileQuery("htaccess-htpasswd","edit_user.cgi","new=")||core.curModuleFile("useradmin","edit_group.cgi")||core.curModuleFile("useradmin","edit_user.cgi"))&&setTimeout(function(){$("#headln2r .btn-group a").addClass("pull-left").attr("style",""),$("#headln2r .btn-group").prepend('        <a class="btn btn-link text-lighter text-decoration-none pull-left generate-password-key-g" data-nref data-placement="auto top" data-toggle="tooltip" data-title="'+Convert.strUpInitial(theme_language("theme_xhred_password_generator_new"))+'">            <i class="fa fa-1_25x fa-key-plus" style="width: 14px; margin-left: -3px;"></i>        </a>    ')},0),0==v___user_level||(settings_side_slider_enabled=!1,settings_side_slider_enabled=!1,get_server_data("data-slider-fixed","0"),$("#right-side-tabs, .right-side-tabs-toggler").addClass("hidden")),core.curModuleFile("bind8","edit_zonekey.cgi")&&g__text_breaker($("textarea#ds"),$("#headln2c").find("span[data-sub_title]").text()),core.curModuleFile("virtual-server","edit_script.cgi")&&$('select[name="version"]').addClass("heighter-34 margined-top-4"),core.curModuleFile("virtual-server","transfer_form.cgi")&&$('input[name="newttl"]').addClass("heighter-34"),$.each($(".gl-icon-container"),function(e,t){$(this).find("a:first").find("i.fa-edit").length||($(this).find("a:first").prepend('<i aria-label="'+theme_language("theme_xhred_select_deselect")+'" class="fa fa-fw fa-lg fa-select text-dark text-dark-hoverd gl-icon-select"></i>'),$(this).find("a:first").prepend('<i aria-label="'+theme_language("theme_xhred_edit_current")+'" class="fa fa-fw fa-edit text-semi-dark text-dark-hoverd gl-icon-edit"></i>'))}),v___location_path==v___location_prefix+"/proc/index_search.cgi"&&$(".col_header").removeClass("col_header"),v___module!=v___module_file_manager&&("config.cgi"===v___location_file||"uconfig.cgi"===v___location_file||"settings-user.cgi"===v___location_file)){var visibility=[];"settings-user.cgi"===v___location_file&&(visibility=[1,0,0]),page.render.module_config(visibility)}var $file_upload_inputs=$('input[type="file"]:not([name="upfiles"])');core.curModule("updown")||core.curModuleFile("updown","index.cgi")?init_dnd_uploads():$file_upload_inputs.bootstrapFileInput()}(core.curModuleFile("virtual-server","index.cgi")||core.curModuleFile("virtual-server",""))&&$('a[href*="list_users.cgi"], a[href*="list_aliases.cgi"], .ui_checked_columns').on("click",function(e){var t=$(this);t.off("click"),$(e.target).is('input[type="checkbox"]')||(t.is(".ui_checked_columns")&&(t=$(this).find("a").first()),plugins.navigation.intersect.virtualmin(t))}),(core.curModuleFile("server-manager","index.cgi")||core.curModuleFile("server-manager","")||vars.requested_page&&vars.requested_page.includes("/server-manager/index.cgi"))&&$('a[href*="mass_update_form.cgi"], .ui_checked_columns').on("click",function(e){var t=$(this);t.off("click"),$(e.target).is('input[type="checkbox"]')||(t.is(".ui_checked_columns")&&(t=$(this).find("a").first()),plugins.navigation.intersect.cloudmin(t))});var codemirror_target_cnt=".container-fluid > .panel > .panel-body";if(editor_init_check()&&editor_init($(".container-fluid > .panel > .panel-body textarea"),!1,!1,"static",!1,!0,!1,$is_history_action),core.curModule("cshrc")||core.curModule("plan")||core.curModuleFile("virtual-server","mass_aedit_form.cgi")){var cshrc1=$(".container-fluid > .panel > .panel-body form:eq(0) > textarea:visible"),cshrc2=$(".container-fluid > .panel > .panel-body form:eq(1) > textarea:visible");$is_history_action&&page_refresh(1),cshrc2.length?(editor_init(cshrc1,!1,!1,"static1",!0,!1,!1,$is_history_action,.36),editor_init(cshrc2,!1,!1,"static2",!0,!1,!1,$is_history_action,.36)):editor_init(cshrc1,!1,!1,"static1",!0,!1,!1,$is_history_action,.51)}if(viewer_init_check()&&viewer_init(),settings_sysinfo_easypie_charts&&v___location_path==v___location_prefix+"/sysinfo.cgi"){var isNR=v___theme_night_mode_enabled||v___theme_night_mode?1:0;$("body").find("#system-status").find(".piechart").easyPieChart({barColor:function(e){return e<50?isNR?"#269373":"#5cb85c":e<85?isNR?"#c38d40":"#f0ad4e":"#cb3935"},trackColor:isNR?"#3b424b":"#f8f8f8",scaleColor:isNR?"#3b424b":"#dfe0e0",size:parseInt(settings_sysinfo_easypie_charts_size),scaleLength:parseInt(settings_sysinfo_easypie_charts_scale),trackWidth:parseInt(settings_sysinfo_easypie_charts_width),lineWidth:0,lineCap:"square",onStep:function(e,t,i){$(this.el).find(".percent").text(Math.round(i))}})}
if(((v___location_path.indexOf(".cgi")===-1||v___location_path.indexOf("link.cgi")!==-1||v___location_path==v___location_prefix+"/proc/open_files.cgi"||v___location_path==v___location_prefix+"/webmin/edit_webmincron.cgi"||v___location_path==v___location_prefix+"/postfix/mailq.cgi"||v___location_path==v___location_prefix+"/webmin_search.cgi"||v___location_path==v___location_prefix+"/useradmin/index.cgi"||v___location_path==v___location_prefix+"/quota/list_users.cgi"||v___location_path==v___location_prefix+"/quota/list_groups.cgi"||v___location_path==v___location_prefix+"/init/index.cgi")&&(v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"webmin/"&&v___location_prefix.indexOf("servers/link.cgi")===-1||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"proc/"||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"webmin_search.cgi"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"postfix/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"virtual-server/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"init/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"mount/"||core.curModule("custom")||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"quota/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"php-pear/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"fsdump/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"inittab/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"logrotate/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"mailcap/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"cron/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"software/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"syslog/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"useradmin/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"apache/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"webalizer/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"cpan/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"htaccess-htpasswd/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"fdisk/")||core.curModuleFile("mysql","index.cgi")||core.curModuleFile("mysql","list_vars.cgi")||core.curModuleFile("postgresql","index.cgi")||core.curModuleFile("cron","index.cgi")||core.curModuleFile("ruby-gems","index.cgi")||core.curModuleFile("postfix","master.cgi")||core.curModuleFile("postfix","virtual.cgi")||core.curModuleFile("fail2ban","list_filters.cgi")||core.curModuleFile("fail2ban","list_actions.cgi")||core.curModuleFile("fail2ban","list_jails.cgi")||core.curModuleFile("virtual-server","list_databases.cgi")||core.curModuleFile("virtual-server","connectivity.cgi")||core.curModuleFile("virtualmin-git","")||core.curModuleFile("virtualmin-git","index.cgi")||core.curModuleFile("virtualmin-svn","")||core.curModuleFile("virtualmin-svn","index.cgi")||core.curModuleFile("help","search.cgi")||core.curModuleFile("server-manager","edit_domains.cgi")||core.curModuleFile("net","list_ifcs.cgi")||core.curModuleFile("net","list_hosts.cgi")||core.curModuleFile("bind8","edit_recs.cgi")||core.curModuleFile("bind8","index.cgi")||core.curModuleFile("bind8","")||core.curModuleFile("cpan","index.cgi")||core.curModuleFile("virtual-server","list_records.cgi")||core.curModule("firewall")||core.curModule("firewall6")||core.curModule("ruby-gems")||v___location_path==v___location_prefix+"/at/"||v___location_path==v___location_prefix+"/at/index.cgi"||v___location_path==v___location_prefix+"/useradmin/list_logins.cgi"||v___location_path==v___location_prefix+"/man/search.cgi"||v___location_path==v___location_prefix+"/proc/index_tree.cgi"||v___location_path==v___location_prefix+"/proc/index_user.cgi"||v___location_path==v___location_prefix+"/proc/index_size.cgi"||v___location_path==v___location_prefix+"/proc/index_cpu.cgi"||v___location_path==v___location_prefix+"/proc/index_search.cgi"||v___location_path==v___location_prefix+"/software/search.cgi"||v___location_path==v___location_prefix+"/software/file_info.cgi"||v___location_path==v___location_prefix+"/software/list_pack.cgi"||v___location_path==v___location_prefix+"/virtual-server/index.cgi"||v___location_path==v___location_prefix+"/virtual-server/list_users.cgi"||v___location_path==v___location_prefix+"/virtual-server/edit_newplan.cgi"||v___location_path==v___location_prefix+"/virtual-server/edit_newfeatures.cgi"||v___location_path==v___location_prefix+"/virtual-server/edit_newtmpl.cgi"||v___location_path==v___location_prefix+"/virtual-server/backuplog.cgi"||v___location_path==v___location_prefix+"/package-updates/"||v___location_path==v___location_prefix+"/package-updates/index.cgi"||v___location_path==v___location_prefix+"/package-updates/update.cgi"||v___location_path==v___location_prefix+"/security-updates/index.cgi"||v___location_path==v___location_prefix+"/virtual-server/usage.cgi"||v___location_path==v___location_prefix+"/virtual-server/search.cgi"||v___location_path==v___location_prefix+"/fetchmail/"||v___location_path==v___location_prefix+"/filter/")&&$(".__page table.table").each(function(){if($(this).find("thead")&&$(this).find("thead").length&&$(this).find("thead tr th")&&$(this).find("thead tr th").length>2){if($(this).find("thead")&&$(this).find("thead").length>1){var e=$(this).find("thead:first-child");e.remove(),!$t_uri_webmin||v___location_path!=v___location_prefix+"/quota/list_users.cgi"&&v___location_path!=v___location_prefix+"/quota/list_groups.cgi"||($(this).before(e),$(this).prev("thead").replaceTagName("table"))}table_data_init($(this)),$(this).find("th").each(function(){$(this).text()||$(this).css("opacity","0").css("cursor","default")});var t=-(1/0);$(this).find("tr").each(function(e,i){t=Math.max(t,parseFloat(e))}),t<10&&$(this).parents(".dataTables_wrapper").find(".dataTables_filter").remove();if(($(this).parents(".dataTables_wrapper").find(".dataTables_filter").length?1:0)&&($('body[class="init"]').length||$('body[class^="init"]').length&&null!=$('body[class^="init"]').attr("class").match(/\d+$/)||$('body[class="quota"]').length||$('body[class^="quota"]').length&&null!=$('body[class^="quota"]').attr("class").match(/\d+$/)||$('body[class="cron"]').length||$('body[class^="cron"]').length&&null!=$('body[class^="cron"]').attr("class").match(/\d+$/))){var i=-15,a=$(this).parents(".dataTables_wrapper").attr("style");$('body[class^="quota"]').length&&(i=-27),$(this).parents(".dataTables_wrapper").attr("style","margin-top: "+i+"px !important; "+(a?a:""))}}}).promise().done(function(){page.render.content.filter.init()}),$(".select_all").on("click",function(){var e=$(this).parents("form");e.find('.icons-row div[class*="icons-container"]').length&&$.each(e.find(".icons-row .hidden-forged-6"),function(){$(this).parents('div[class*="icons-container"]').addClass("highlighted").find(".fa-select").removeClass("fa-select").addClass("fa-selected")})}),$(".select_invert").on("click",function(){var e=$(this).parents("form");$.each(e.find(".icons-row .hidden-forged-6"),function(){var e=$(this).parents('div[class*="icons-container"]');$(this).find("input").is(":checked")?e.addClass("highlighted").find(".fa-select, .fa-selected").removeClass("fa-select").addClass("fa-selected"):e.removeClass("highlighted").find(".fa-select, .fa-selected").removeClass("fa-selected").addClass("fa-select")})}),$('.icons-row div[class*="icons-container"]').on("mouseover",function(e){$(this).find(".hidden-forged-7").removeClass("hidden-forged")}).on("mouseout",function(e){$(this).find(".hidden-forged-7").addClass("hidden-forged")}),"?dashboard"!=v___location.search&&1==plugins.navigation.switch.dashboard.get()&&("sysinfo.cgi"==v___location_file?(plugins.navigation.switch.set("dashboard"),plugins.navigation.reset()):$("#open_webmin").length>0&&"open_webmin"!=$(".switch-toggle input:checked").attr("id")?plugins.navigation.switch.set("webmin"):$("#open_virtualmin").length>0&&"open_virtualmin"!=$(".switch-toggle input:checked").attr("id")?plugins.navigation.switch.set("virtualmin"):$("#open_cloudmin").length>0&&"open_cloudmin"!=$(".switch-toggle input:checked").attr("id")?plugins.navigation.switch.set("cloudmin"):$("#open_usermin").length>0&&"open_usermin"!=$(".switch-toggle input:checked").attr("id")&&plugins.navigation.switch.set("usermin")),$('form[action="bootup.cgi"]').on("submit",function(e){$("#starting").length>0?($("#starting").remove(),$(this).append('<input type="hidden" id="starting" name="starting" value="'+$('input[name="boot"]:checked').val()+'">')):$("#table").length>0?$(this).append('<input type="hidden" id="table" name="table" value="'+$('input[name="boot"]:checked').val()+'">'):$('input[name="boot"][type="hidden"]').length>0&&($('input[name="boot"][type="hidden"]').remove(),$(this).append('<input type="hidden" name="boot" value="'+$('input[name="boot"]:checked').val()+'">'))}),$('input[name="config_portable_module_xsql_fit_content_screen_height"]').on("change",function(){var e=$(this).attr("name"),t="true"==$(this).val();localStorage.setItem(v___server_hostname+"-"+e,t),window[e]=t,theme_config("save")}),$('.ui_form_end_submit[onclick^="window.open"]').click(function(){var e=$(this);setTimeout(function(){e.removeClass("disabled"),plugins.navigation.load.stop()},100)}),v___location_path&&v___location_path.indexOf("/sysinfo.cgi")>-1){sysinfo_replace_dismiss_buttons(),$("body").undelegate(".piechart canvas","mouseover mouseleave"),$("body").on("mouseover",".piechart canvas",function(){var e=$(this).parent("span").attr("data-charts").split("_")[1];("cpu"!=e&&"mem"!=e&&"virt"!=e||core.moduleAvailable("proc"))&&("disk"!=e||core.moduleAvailable("disk-usage")||core.moduleAvailable("quota"))&&$(this).addClass("cursor-alias")}),$("body").undelegate("canvas","click"),$("body").on("click","canvas",function(e){e.preventDefault();var t,i=$(this).parent("span").attr("data-charts").split("_")[1];"cpu"==i&&core.moduleAvailable("proc")?t=v___location_prefix+"/proc/index_cpu.cgi":"mem"!=i&&"virt"!=i||!core.moduleAvailable("proc")?"disk"==i&&core.moduleAvailable("disk-usage")?t=v___location_prefix+"/disk-usage":"disk"==i&&core.moduleAvailable("quota")&&(t=v___location_prefix+"/quota/list_users.cgi?dir=%2F"):t=v___location_prefix+"/proc/index_size.cgi",t&&t.length&&get_pjax_content(t)}),page_sysinfo_sensor_update_label(),"0"==v___user_level&&plugins.slider.data.fetch();var chart_size_def_value=172;if(172!=settings_sysinfo_easypie_charts_size){var diff=parseInt(settings_sysinfo_easypie_charts_size-172),position_diff_label=.9*diff,position_diff_percent=.2*diff,font_diff_label=settings_sysinfo_easypie_charts_size<172?settings_sysinfo_easypie_charts_size<152?"8px":"8.5px":"9px",font_diff_percent=settings_sysinfo_easypie_charts_size<172?settings_sysinfo_easypie_charts_size<152?"1.6em":"1.7em":"1.8em",$piechart_label=$(".piechart .data-cnt .label"),piechart_label_right=parseInt($piechart_label.css("right")),piechart_label_bottom=parseInt($piechart_label.css("bottom")),$piechart_percent=$(".piechart .data-cnt .percent"),piechart_percent_top=parseInt($piechart_percent.css("top")),piechart_percent_left=parseInt($piechart_percent.css("left"));$piechart_label.css({bottom:parseInt(piechart_label_bottom-position_diff_label),right:parseInt(piechart_label_right-position_diff_label),fontSize:font_diff_label}),$piechart_percent.css({top:parseInt(piechart_percent_top+position_diff_percent),left:parseInt(piechart_percent_left+position_diff_percent),fontSize:font_diff_percent})}table_data_init($("#extended_sysinfo-1 #updates-virtual-server-1-collapse .table.table-condensed, #extended_sysinfo-1 #mount_disks_info-mount-1-collapse .table.table-condensed, #extended_sysinfo-1 #acl_logins-acl-1-collapse .table.table-condensed"));var $target_disk_usage=$('#extended_sysinfo-1 div[data-referrer="mount_disks_info"]'),table_responsive_sel=".table-responsive";$target_disk_usage.on("onresize",function(){window.matchMedia("(max-width: 1080px)").matches?$(this).find(".table-responsive").width(window.innerWidth-72):$(this).find(".table-responsive").width("auto")})}if($t_uri_virtualmin&&core.curModuleFileQuery("syslog","save_log.cgi","view=1")&&($('select[name="idx"] option').filter(function(){return this.text==$.trim($("span[data-sub_title] tt").text())}).attr("selected",!0),$('select[name="idx"]').addClass("hidden")),core.curModuleFileQuery("syslog","save_log.cgi","view=1")||core.curModuleFileQuery("syslog","save_log.cgi","new=")){var target=".panel-body .fa-refresh-fi",current_refresh_timer=localStorage.getItem(v___server_hostname+"-option_"+v___module+"_refresh"),current_icon_class_str=".fa-refresh-fi",refresh_timer_str=".refresh-timer-timeout",btn_str=target+", .panel-body .refresh-timer-timeout",timeout_box='<span class="label label-transparent-35 label-sm margined-top-1 refresh-timer-timeout">'+(current_refresh_timer?current_refresh_timer:"0")+"&nbsp;</span>";$.each($(target+":not([data-processed])").parent("button"),function(e,t){if($(this).addClass("btn-xxs").find("i").attr("data-processed",1),$(this).wrap('<div class="btn-group'+(1===e?" dropup":"")+'"></div>'),$(this).after('<button class="btn btn-warning dropdown-toggle" data-toggle="dropdown" data-original-title="" title="" aria-expanded="false"><i class="fa fa-caret-down"></i></button><ul class="dropdown-menu dropdown-menu-right refresh-timer-select"><li><a data-off data-timeout="0">'+theme_language("theme_xhred_global_automatic_refresh")+": "+theme_language("theme_xhred_global_off")+'</a></li><li class="divider"></li><li><a data-on data-timeout="5">5 '+theme_language("theme_xhred_global_seconds")+'</a></li><li><a data-on data-timeout="15">15 '+theme_language("theme_xhred_global_seconds")+'</a></li><li><a data-on data-timeout="30">30 '+theme_language("theme_xhred_global_seconds")+'</a></li><li><a data-on data-timeout="60">60 '+theme_language("theme_xhred_global_seconds")+'</a></li><li><a data-on data-timeout="120">2 '+theme_language("theme_xhred_global_minutes")+'</a></li><li><a data-on data-timeout="300">5 '+theme_language("theme_xhred_global_minutes")+"</a></li></ul>"),current_refresh_timer&&"0"!=current_refresh_timer){var i=$(btn_str);$(this).find("i").before(timeout_box),$(this).find("i").remove();var a=current_refresh_timer;"number"==typeof refreshTimer&&clearInterval(refreshTimer),refreshTimer=setInterval(function(){--a,$(".refresh-timer-timeout").text(a),a<=0&&($(i[0]).parent().trigger("click"),clearInterval(refreshTimer))},1e3)}}).promise().done(function(){$(".refresh-timer-select li").click(function(){"number"==typeof refreshTimer&&clearInterval(refreshTimer);var e='<span class="label label-transparent-35 label-sm margined-top-1 refresh-timer-timeout">'+(current_refresh_timer?current_refresh_timer:"0")+"&nbsp;</span>";localStorage.setItem(v___server_hostname+"-option_"+v___module+"_refresh",$(this).find("a").data("timeout")),current_refresh_timer=localStorage.getItem(v___server_hostname+"-option_"+v___module+"_refresh");var t=$(btn_str),i=t.parent();if(current_refresh_timer&&"0"!=current_refresh_timer){i.find(".refresh-timer-timeout").length||i.prepend(e),i.find(".refresh-timer-timeout").html(current_refresh_timer+"&nbsp;"),$(".fa-refresh-fi").remove();var a=current_refresh_timer;refreshTimer=setInterval(function(){if(--a,$(".refresh-timer-timeout").text(a),a<=0){var e=$(btn_str);$(e[0]).parent().trigger("click"),clearInterval(refreshTimer)}},1e3)}else $(".refresh-timer-timeout").remove(),!i.find(".fa-refresh-fi").length&&i.prepend('<i class="fa fa-fw fa-refresh-fi fa-1_25x refresh-timer-icon"></i>')})}),$.each($('form[action*="save_log.cgi"] select[name="idx"]'),function(){$(this).on("change",function(){var e=$("button.ui_submit.ui_form_end_submit");$(this).next().next('[name="filter"]').val(""),e.first().trigger("click"),e.addClass("disabled")})})}if(core.curModuleFile("virtual-server","summary_domain.cgi")&&$(".__page #headln2l .btn-group, .__page .page_footer_submit").remove(),settings_side_slider_enabled&&(core.curModule("package-updates")&&plugins.slider.notifications.dismiss("package_message"),core.curModule("csf")&&(plugins.slider.notifications.dismiss("csf_remote_version"),plugins.slider.notifications.dismiss("csf_title"))),snippets.tooltips(!0),
// $('[data-dcontainer="1"] [data-toggle="tooltip"], [data-dcontainer="1"] [data-toggle="virtualmin-license"], [data-dcontainer="1"] .panel-body td a, [data-dcontainer="1"] .icons-container').tooltip('destroy');
//   selector: '[data-toggle="tooltip"]:not([data-skip]), [data-toggle="virtualmin-license"], .panel-body td a:not([data-skip]), .icons-container',
$.support.spa&&(window.matchMedia("(max-width: 1080px)").matches||"1"==$("html").attr("data-navigation-collapsed")&&!vars.navigation_pinned)&&plugins.navigation.lock(),$.support.spa&&(window.matchMedia("(max-width: 1365px)").matches||"1"==$("html").attr("data-navigation-collapsed")&&!vars.navigation_pinned)&&plugins.slider.state(),"undefined"!=typeof v___user_level&&0!=v___user_level&&(settings_right_virtualmin_default="sysinfo.cgi",settings_right_cloudmin_default="sysinfo.cgi"),$is_history_action||(core.curModuleFile("mysql","view_table.cgi")||core.curModuleFile("postgresql","view_table.cgi"))&&$.each($('select[name="field"]'),function(){var e=$(this),t=e.nextAll().add(this),i=e.parent("td"),a=i.parent("tr"),n=a.find('form[action="view_table.cgi"]').first().addClass("inline-block"),s=n.nextAll('input[name="search"], input[name="db"], input[name="table"]').slice(0,3);e.parent("td").prev("form");n.append(s.detach()),i.append(n.detach()),i.find("form").append(t.detach())}),$("body").hasClass("session_login")&&setTimeout(function(){page_display()},200),theme_to_new_tab(),core.curModuleFile("acl","save_twofactor.cgi")&&setTimeout(function(){var e=$("p > img"),t=e.attr("src");e.attr("src",t.replace(v___location_prefix+"/"+v___module+"/",""))},0),v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"proc/edit_proc.cgi"||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"proc/kill_proc.cgi"||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"proc/renice_proc.cgi"){var proc_nice_level='form[action*="renice_proc.cgi"]',proc_nice_pid=$(proc_nice_level).next('input[name="pid"]'),proc_target=$('.col_value select[name="nice"]').parent("td"),proc_target_content=proc_target.html();$(proc_nice_level).append(proc_nice_pid.detach(),proc_target_content),proc_target.html($(proc_nice_level).detach()),$('.proc form[action*="kill_proc.cgi"]').on("submit",function(){var e=quirks.active_element(),t=$(this).find("input").filter(function(){return"pid"!=this.name&&"signal"!=this.name&&this.name!=e.name});return t.attr("disabled","disabled"),setTimeout(function(){},1),!0})}setTimeout(function(){v___blocked_navigation=0},10);var date_chooser_button=$(".date_chooser_button");date_chooser_button.length&&$.each(date_chooser_button,function(){var e=$(this).parent('td:contains("/")'),t=e.find("select"),i=t.prev("input");$year=t.next("input"),cls="margined-left--10",t.addClass(cls),$year.addClass(cls).attr("size",3),i.attr("size",1)}),$.each($(".date_chooser_button"),function(){var e=$('input[name="'+$(this).data("year")+'"]'),t=$('select[name="'+$(this).data("month")+'"]'),i=$('input[name="'+$(this).data("day")+'"]'),a=1==$(t).find("option:eq(0)").val()?0:1;$(this).datepicker({format:" yyyy-m-d",language:get_server_data("language"),autoclose:!0}).on("changeDate",function(n){var s=(n.date.getFullYear()+"-"+(n.date.getMonth()+1)+"-"+n.date.getDate()).split("-");s&&($(i).val(parseInt(s[2])),$(t).val(parseInt(s[1])-a),$(e).val(parseInt(s[0])))}).on("show",function(n){var s=$(this),o=parseInt($(i).val()),r=!!$(t).val()&&parseInt($(t).val())+a,l=$(e).val();o&&r&&l&&s.datepicker("update",l+"-"+r+"-"+o)})}),core.curModule("mailbox")&&($.each($('[onclick*="document.forms"]'),function(){var e=$(this),t=e.attr("onclick"),i=$("aside form").length;e.attr("onclick",t.replace(/document\.forms\[0\]/g,"document.forms["+i+"]")),e.attr("onclick",t.replace(/document\.forms\[1\]/g,"document.forms["+(i+1)+"]"))}),$("#print").on("click",function(e){e.preventDefault(),e.stopPropagation()})),core.curModuleFile("forward","edit_alias.cgi")&&$.each($('[onchange*="document.forms"]'),function(){var e=$(this),t=e.attr("onchange"),i=$("aside form").length;e.attr("onchange",t.replace("document.forms[0]","document.forms["+i+"]"))}),(core.curModuleFile("schedule","edit.cgi")||core.curModule("mailbox"))&&$.each($('[onclick*="address_chooser"]'),function(e,t){$(this).attr("onclick",$(this).attr("onclick").replace(".forms[0]",".forms[1]")),$(this).next(".file_chooser_button_attached").removeClass("fa-files-o").addClass("fa-address-book-o")});var add_clock_icon=function(e){e.removeClass("fa-files-o").addClass("fa-clock").css("font-size","12px").css("line-height","10px")};core.curModuleFile("virtual-server","backup_form.cgi")&&add_clock_icon($('[name="enabled_complex"] + input + .file_chooser_button_attached')),(core.curModuleFile("virtual-server","edit_newquotas.cgi")||core.curModuleFile("virtual-server","edit_newvalidate.cgi"))&&add_clock_icon($('[name="sched_complex"] + input + .file_chooser_button_attached')),(core.curModuleFile("server-manager","index.cgi")||core.curModuleFile("server-manager",""))&&$.each($('[onclick*="document.forms"]'),function(){var e=$(this),t=e.attr("onclick"),i=$("aside form").length,a=$(".container-fluid .panel-body > form").length-1;e.attr("onclick",t.replace(/document\.forms\[\d*\]/g,"document.forms["+(i+a)+"]"))});var selectStr="select",select_for=$('select.ui_select[name="module"], select.ui_select[name="user"], select.ui_select[name="nuser"],                    select.ui_select[name="zone"],                    select.ui_select[name="serv"],                    select.ui_select[name="mod"],                     select.onchange_form_submit_triggger,                     select[name="idx"], select[name="file"]:first, select[name="manual"]:first'),originalSelectAddedHiddenClass="select2-hidden-accessible",select2Class="select2",select2ContentTriggerClass="select2-content",select2ContentContainerTriggerClass="select2-content-container",heighterStr="heighter",heighterType="34",v___page_hadEditor=0;if($is_history_action&&$.each($(".container-fluid .select2-hidden-accessible + .select2"),function(){v___page_hadEditor=1,$(this).prev(".select2-hidden-accessible").removeClass("select2-hidden-accessible"),$(this).remove()}),(core.curModuleFile("webminlog","")||core.curModuleFile("webminlog","index.cgi")||core.curModuleFile("time","")||core.curModuleFile("time","index.cgi")||core.curModuleFile("firewalld","edit_serv.cgi")||core.curModuleFile("php-pear","")||core.curModuleFile("php-pear","index.cgi")||core.curModuleFile("mysql","")||core.curModuleFile("mysql","index.cgi")||core.curModuleFile("mysql","edit_dbase.cgi")||core.curModuleFile("fail2ban","edit_manual.cgi")||core.curModuleFile("postgresql","")||core.curModuleFile("postgresql","index.cgi")||core.curModuleFile("postgresql","edit_dbase.cgi")||core.curModuleFileQuery("syslog","save_log.cgi","view=1")||core.curModuleFileQuery("syslog","save_log.cgi","new=")||v___page_hasEditor||v___page_hadEditor)&&((select_for.hasClass("heighter-28")||select_for.outerHeight()<=28)&&(heighterType="28"),select_for.select2({minimumResultsForSearch:5,containerCssClass:"select2-content heighter-"+heighterType,dropdownCssClass:"select2-content h"+heighterType}),select_for.next(".select2").addClass("select2-content-container"),select_for.next(".select2").next(".ui_form_end_submit").addClass("heighter-"+heighterType),select_for.on("select2:open",function(){$("body").find(".select2-container, "+v___class_select2_leak).removeClass("select2-aside")}),select_for.on("select2:select",function(e){$(this).parents("form").trigger("input")}),setTimeout(function(){bind_sameorigin(0)},100)),"install_mod.cgi"===v___location_file){var prev_req=vars.previous_request,$prev_req_file=$(prev_req.target).find('[name="file"]');"submit"===prev_req.type&&Test.strContains($(prev_req.target).attr("action"),v___location_file)&&$prev_req_file&&$prev_req_file.val()&&Test.strContains($prev_req_file.val(),"csfwebmin")&&($('.container-fluid a[href*="csf"]').on("click",function(e){e.preventDefault(),$('aside a[href*="csf/index.cgi"]').trigger("click")}),plugins.navigation.reload(),$.ajax({type:"POST",url:v___location_prefix+"/index.cgi",success:function(e){},error:function(e){}}))}$is_history_action||v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"settings-editor_read.cgi"||$('form[action*="settings-editor_write.cgi"] .btn-group.end_submits button.btn').on("click",function(){var custom_styles=$("[data-custom-style]"),custom_script=$("[data-custom-script]"),data=$('[name="data"]').val();Test.strContains($('[name="file"]').val(),"styles.css")&&(custom_styles.remove(),$("head").append("<style data-custom-style>"+data+"</style>")),Test.strContains($('[name="file"]').val(),"scripts.js")&&(custom_script.remove(),eval(data))});var $bottom_js_back=$('.btn-lg.page_footer_submit[href*="javascript:history.back"]'),$topBackButton=$("#headln2l a i.fa.fa-arrow-left").parent("a");if($bottom_js_back&&$bottom_js_back.length?($topBackButton.attr("title",theme_language("theme_xhred_global_prev_page")).tooltip("fixTitle").attr("href","javascript:history.back()"),$topBackButton.one("click",function(e){e.preventDefault(),e.stopPropagation(),$bottom_js_back[0].click()})):v___module!==v___module_file_manager&&$topBackButton.find("i").addClass("fa-return").parent("a").addClass("btn-squiare-headln2 text-lighter-slight"),core.curModule("backup-config")){var $fetch_form=$($('.container-fluid form[action*=".cgi"].ui_form')[0]);$fetch_form.on("submit",function(e){"4"==$fetch_form.find('input[name="dest_mode"]:checked').val()&&(e.preventDefault(),e.stopPropagation(),theme_download_form($(this)))});var $submit=$fetch_form.find('.ui_submit[name="backup"]'),$mods=$fetch_form.find('select[name="mods"]');$mods.length&&!$mods.val().length&&$submit.addClass("disabled"),$fetch_form.on("change",function(e){$mods.val().length?$submit.removeClass("disabled"):$submit.addClass("disabled")})}if(core.curModuleFile("webmin","edit_mods.cgi")||core.curModuleFile("usermin","edit_mods.cgi")){var $fetch_form=$($('.container-fluid form[action*=".cgi"].ui_form')[3]);$fetch_form.on("submit",function(e){"0"==$fetch_form.find('input[name="to"]:checked').val()&&(e.preventDefault(),e.stopPropagation(),theme_download_form($(this),"download_is_being_prepared"))});var $submit=$fetch_form.find('.ui_submit[name="ok"]');$submit.addClass("disabled"),$fetch_form.on("change",function(e){$fetch_form.find('select[name="mod"]').val()&&$fetch_form.find('select[name="mod"]').val().length?$submit.removeClass("disabled"):$submit.addClass("disabled")})}if(core.curModuleFile("server-manager","transfer_form.cgi")){var $fetch_form=$('.container-fluid form[action*="download.cgi"].ui_form');$fetch_form.on("submit",function(e){"0"==$fetch_form.find('input[name="dest"]:checked').val()&&(e.preventDefault(),e.stopPropagation(),theme_open_new_tab(v___location_prefix+"/server-manager/"+$(this).attr("action")+"?"+$(this).serialize()),setTimeout(despinnerfy_buttons,300))})}if((core.curModuleFile("mysql","backup_form.cgi")||core.curModuleFile("postgresql","backup_form.cgi"))&&v___location_query&&v___location_query.includes("db=")){var $backup_form=$('.container-fluid form[action*=".cgi"].ui_form');$backup_form.on("submit",function(e){"1"==$backup_form.find('input[name="dest"]:checked').val()&&(e.preventDefault(),e.stopPropagation(),theme_download_form($(this)))})}if(core.curModuleFile("mysql","csv_form.cgi")){var $backup_form=$('.container-fluid form[action*=".cgi"].ui_form');$backup_form.on("submit",function(e){"0"==$backup_form.find('input[name="dest"]:checked').val()&&(e.preventDefault(),e.stopPropagation(),theme_download_form($(this)))});var $submit=$backup_form.find('.ui_submit[name="ok"]'),$select_for_dbs_or_tables=$backup_form.find('select[name="cols"]');$backup_form.on("change",function(e){$select_for_dbs_or_tables.val().length?$submit.removeClass("disabled"):$submit.addClass("disabled")}),$backup_form.trigger("change")}if(core.curModuleFile("virtual-server","backup_form.cgi")){var $vm_backup_form=$('form[action*="backup.cgi/backup"]');$vm_backup_form.on("submit",function(e){"4"==$vm_backup_form.find('select[name^="dest0_"]').val()&&(e.preventDefault(),e.stopPropagation(),theme_download_form($(this)))}),$vm_backup_form.find("a.select_all, a.select_invert").on("click",function(e){$vm_backup_form.trigger("change")}),$vm_backup_form.on("change",function(){var e=$('.ui_submit[name="now"]');!(!$vm_backup_form.find('[name="doms"]').length||"1"==$vm_backup_form.find('[name="all"]:checked').val()&&$vm_backup_form.find('[name="doms"] option').length>=1||"2"==$vm_backup_form.find('[name="all"]:checked').val()&&$vm_backup_form.find('[name="doms"]').val().length>=1&&$vm_backup_form.find('[name="doms"] option').length>1||"2"!=$vm_backup_form.find('[name="all"]:checked').val()&&$vm_backup_form.find('[name="doms"]').val().length)||$vm_backup_form.find('[name="plan"]').length&&"1"!=$vm_backup_form.find('[name="plan_def"]:checked').val()&&!$vm_backup_form.find('[name="plan"]').val().length||"1"!=$vm_backup_form.find('[name="feature_all"]:checked').val()&&!$vm_backup_form.find('[name="feature"]:checked').length?e.addClass("disabled","1"):e.removeClass("disabled","1")}),$vm_backup_form.trigger("change"),$vm_backup_form.find('select[name^="dest0_"]').on("change",function(){var e=$("form").find('input[name="fmt"][value="0"]'),t=$("form").find('input[name="fmt"][value="1"], input[name="fmt"][value="2"]');"4"==$(this).val()?(t.prop("disabled",!0),e.prop("checked",!0)):t.prop("disabled",!1)})}$.each($(".container-fluid a.ui_link_replaced"),function(){this.href.includes("webminlog.csv")&&$(this).removeClass().addClass("btn btn-default ui_submit heighter-34").prepend('<i class="fa fa-fw fa-export"></i> ')}),core.curModuleFile("virtual-server","delete_domain.cgi")&&$('form[action*="delete_domain.cgi"]').on("submit",function(){var e=URI.parseQuery(URI(location.href).query()).dom;plugins.favorites.remove(e)}),core.curModuleFile("server-manager","mass.cgi")&&$('form[action*="mass.cgi"]').on("submit",function(){var e=$(this).find('input[name="d"][type="hidden"]').map(function(e,t){return $(t).val()}).get(),t=$(this).find('input[name="dereg"][type="hidden"][value="1"]').length;$.each(e,function(e,i){t&&i&&i.length>3&&plugins.favorites.remove(i)})}),core.curModuleFile("server-manager","mass_domains.cgi")&&$('form[action*="mass_domains.cgi"]').on("submit",function(){var e=$(this).find('input[name="d"][type="hidden"]').map(function(e,t){return $(t).val()}).get(),t=$(this).find('input[name="delete"][type="hidden"][value="1"]').length;$.each(e,function(e,i){t&&i&&i.length>3&&i&&i.includes("/")&&(i=i.split("/")[1],plugins.favorites.remove(i))})}),core.curModule("help")&&$('.ui_form_end_submit ~ [type="reset"]').addClass("heighter-34");var $multi_select=$(".ui_multi_select");if($multi_select.length&&$multi_select.find('[onclick^="multi_select_move"]').text("..."),check_reboot(1),v___location_path&&v___location_path.length&&v___location_path.includes("webalizer/view_log.cgi")&&!$is_history_action){document.querySelectorAll(".container-fluid .panel-body  center  p  small a").forEach(function(e,t){e.innerHTML=e.innerHTML.slice(1,-1),e.classList.add("btn","btn-transparent","btn-link-bordered","btn-xxs")});var title_target_cnt=document.querySelector(".container-fluid #headln2c");title_target=title_target_cnt.querySelector("span"),title_target_fav=title_target_cnt.querySelector("button"),title_target_text=title_target.innerHTML,title_target_text=title_target_text.substr(0,title_target_text.lastIndexOf("-")).trim(),title_target_main=title_target_text.substr(0,title_target_text.lastIndexOf(" ")),title_target_sub=title_target_text.substr(title_target_text.lastIndexOf(" ")+1),title_target_cnt.innerHTML=title_target_fav.outerHTML+"&nbsp;<span data-main_title>"+title_target_main+'</span><span data-sub_title=""><br>'+title_target_sub+"</span>";var $table_broken=$(".container-fluid .panel-body table"),$table_broken_delims=$table_broken.find('[height="4"]');$table_broken.removeClass("table-hardcoded").addClass("table-bordered").find('td[bgcolor="#c0c0c0"], th[bgcolor="#c0c0c0"]').attr("bgcolor","#f5f5f5"),$table_broken_delims.remove(),$.each($table_broken_delims,function(){$(this).parent("tr").remove()})}(core.curModuleFile("acl","edit_user.cgi")||core.curModule("changepass")||core.curModuleFile("virtual-server","clone_form.cgi")||core.curModuleFile("virtual-server","edit_user.cgi")||core.curModuleFile("virtual-server","domain_form.cgi")||core.curModuleFile("samba","edit_euser.cgi")||core.curModuleFile("samba","ask_epass.cgi")||core.curModuleFileQuery("postgresql","edit_user.cgi","new=")||core.curModuleFileQuery("mysql","edit_user.cgi","new=")||core.curModuleFileQuery("passwd","edit_passwd.cgi","user=")||core.curModuleFile("server-manager","edit_pass.cgi")&&v___location_query.includes("force=1"))&&$('.container-fluid .panel-body input[type="password"], .container-fluid .panel-body input.pass-inputter-obj').password({usernamePartialMatch:!1,showText:!1,minimumLength:3,animateSpeed:0});var input_warning_caps="input_warning_caps",input_password_targets=document.querySelectorAll('input[type="password"]');for($(".container-fluid .input_warning_caps").remove(),i=0,length=input_password_targets.length;i<length;i++){var span=document.createElement("span"),isLargePassInput=input_password_targets[i].offsetHeight>30?1:0;span.classList.add("input_warning_caps"),span.setAttribute("title","Caps Lock"),isLargePassInput&&span.classList.add("large"),input_password_targets[i].classList.add("use_input_warning_caps"),input_password_targets[i].parentNode.insertBefore(span,input_password_targets[i].nextSibling),input_password_targets[i].addEventListener("blur",function(){this.nextSibling.classList.remove("visible")}),input_password_targets[i].addEventListener("keydown",function(e){"function"==typeof e.getModifierState&&(state=20===e.keyCode?!e.getModifierState("CapsLock"):e.getModifierState("CapsLock"),state?this.nextSibling.classList.add("visible"):this.nextSibling.classList.remove("visible"))})}$.each($(".container-fluid select:visible"),function(){"28px"===$(this).css("height")&&$(this).nextAll(".btn").addClass("heighter-28")})};const events={};events.window=function(){window.document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState?v___theme_state_visible=0:v___theme_state_visible=1,theme.visibility(v___theme_state_visible)}),window.addEventListener("focus",function(){v___theme_state_visible=1,theme.visibility(v___theme_state_visible),theme_window_focused()}),window.addEventListener("blur",function(){v___theme_state_visible=0,theme.visibility(v___theme_state_visible)}),window.addEventListener("popstate",function(){$('[data-trigger-injected="1"]').remove()}),document.querySelector("#content").addEventListener("scroll",function(e){vars.pjax.post_page_fetch||(vars.events.scrolled=e.target.scrollTop)}),$(window).on("keydown",function(e){!plugins.shell.status()&&v___available_session&&theme_shortcuts(e),vars.events.keypressed.shift=e.shiftKey,vars.events.keypressed.alt=e.altKey}).on("keyup",function(e){vars.events.keypressed.shift=e.shiftKey,vars.events.keypressed.alt=e.altKey}).on("resize",function(){page_resized(),plugins.shell.adjust()})},events.body=function(){$(document.body).on("click",function(e){var t=".showpass-popover";$(t).length&&($(t).is(e.target)||0!==$(t).has(e.target).length||0!==$(".popover").has(e.target).length||$(t).popover("hide"));$(".mobile-menu-toggler").is(":visible")&&($(e.target).is('.mCustomScrollBox, .wbm-sm, .fa-stack, input[name="product-switcher"], label[for*="open_"], span, .sidebar-search, .select2-search, .select2-search__field, .select2-selection__rendered, .select2-selection')||plugins.navigation.collapse()),$(".tooltip").tooltip("hide");var i=document.querySelector(".right-side-tabs"),n=!(!i||"0px"!==i.style.right);!settings_side_slider_fixed&&n&&($(e.target).is('select[name="settings_navigation_color"], select[name="settings_background_color"], select[name="settings_side_slider_palette"], input[name="settings_side_slider_fixed"], label[for^="settings_side_slider_fixed"], div.aradio')||$(".right-side-tabs-toggler").hasClass("hidden")||!$(".right-side-tabs-toggler").hasClass("opened")||$(e.target).parents("#right-side-tabs").is("#right-side-tabs")||$(e.target).is(".btn-menu-toggler")||$(e.target).is(".fa-bell")||$(e.target).is(".fa-trash-o")||$(e.target).is("li.user-link.favorites")||$(e.target).is(".badge.badge-danger")||$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click"));var a="MacIntel"===window.navigator.platform?1:0;if((!a&&e.ctrlKey||a&&e.metaKey)&&!e.altKey){var s=link_type_convert($(e.target).attr("href"),1),o=$(e.target).find("a").attr("href")||$(e.target).parents("a").attr("href"),r=link_type_convert(o,1),l=$(e.target).find("a").length?$(e.target).find("a"):$(e.target).parents("a"),c=Math.floor(1e5*Math.random());(s&&!Test.strContains(s,"javascript")||r&&!Test.strContains(r,"javascript"))&&(s?($(e.target).attr("href",link_type_convert(s+(Test.strContains(s,"?")?"&":"?")+"randomized="+c,2)),setTimeout(function(){$(e.target).attr("href",link_type_convert(s,2))})):r&&(l.attr("href",link_type_convert(r+(Test.strContains(r,"?")?"&":"?")+"randomized="+c,2)),setTimeout(function(){l.attr("href",link_type_convert(r,2))})))}}).on("keydown",function(e){var t=e.keyCode?e.keyCode:e.which,i=String.fromCharCode(t).toLowerCase(),n=this;"number"==typeof n.timedOut&&clearTimeout(n.timedOut),i&&8!==t&&(n.preValue?n.preValue+=i:n.preValue=i);var a=function(){var i=n.preValue;n.preValue=null,$("input").is(":focus")||$("select").is(":focus")||$("textarea").is(":focus")||$(".modal.in").length||vars.events.blocked||$(".-shell-port-").hasClass("opened")||!v___available_session||v___location_path!=v___location_prefix+"/server-manager/gvnc.cgi"&&v___location_path!=v___location_prefix+"/server-manager/login.cgi"&&v___location_path!=v___location_prefix+"/telnet/"&&v___location_path!=v___location_prefix+"/telnet/index.cgi"&&v___location_path!=v___location_prefix+"/stunnel/"&&v___location_path!=v___location_prefix+"/stunnel/index.cgi"&&(!i||!/[a-zA-Z0-9]/.test(i)||e.ctrlKey||e.altKey||e.metaKey||106===t||107===t||109===t||112===t||113===t||114===t||115===t||116===t||117===t||118===t||119===t||120===t||121===t||122===t||123===t||($(".dataTables_filter label input").length||$(".btn-accordion-filter").length?($(".btn-filter-top-right, .btn-accordion-filter").trigger("click"),$(".btn-filter-top-right .dataTable-mirror, .btn-accordion-filter .dataTable-mirror").focus().val(i).trigger("keyup")):setTimeout(function(){e.shiftKey&&"1"==i?$('aside input[name="search"]').focus().val("!"):$('aside input[name="search"]').focus().val(i).trigger("change")},1)))};this.timedOut=setTimeout(a,vars.event.stopped_typing_delay)}).on("click","#quota-virtual-server-collapse a.ui_link, #quota-virtual-server-1-collapse a.ui_link, #bw-virtual-server-collapse a.ui_link, #bw-virtual-server-1-collapse a.ui_link",function(){var e=URI.parseQuery(URI($(this).attr("href")).query()).dom,t="virtualmin";$('.switch-toggle input:not([id="open_'+t+'"]):checked').length&&plugins.navigation.switch.set(t),setTimeout(function(){$("aside select").val()!=e&&plugins.navigation.get.virtualmin(e)},300)}).on("click",".file-input-wrapper",function(){var e=$(this).prev('input[type="radio"]').add($(this).parent("td").prev("td").find('input[type="radio"]'));1===e.length&&e.prop("checked",!0)}).on("click",".--to-new-tab",function(){$(this).attr("target","_blank")}).on("click",".mobile-menu-toggler",function(e){$this=$(this),$("aside").hasClass("hidden-xs")?($(this).addClass("selected").find("button").addClass("btn-primary").removeClass("btn-default"),$(".__logo")&&($(".__logo").css("transform","translate(0px, 0px)"),setTimeout(function(){$(".__logo").transition({y:"-140px"},262.5)},1100)),$this.css("transform","translate(0px, 0px)"),$("aside").css("transform","translate(0px, 0px)"),$(".switch-toggle").css("display","none"),$("aside").removeClass("hidden-xs"),$("aside, .mobile-menu-toggler").transition({x:settings_leftmenu_width},437.5),$(".switch-toggle").css("display","table")):plugins.navigation.collapse()}).on("click",'a[data-id^="csf_"], a[data-type^="csf_"]',function(e){get_bundle_csf()}).on("click",'a[href*="mysql"], a[href*="postgresql"]',function(e){get_bundle_sql()}).on("shown.bs.modal",".modal.in",function(){$(this).focus()}).on("click",".module-help",function(){popover_visibility_position($(this))}).on("click",".close-popover-trigger",function(e){$(e.target).parent().parent().not(this).popover("hide")}).on("change",'.ui_checked_columns:visible input[type="checkbox"], .ui_checked_columns:visible input[type="radio"]',function(e){var t=$(this).parents("tr.ui_checked_columns:visible");t.length&&t.find("input:first").is($(this))&&($(this).is(":checked")?t.addClass("hl-aw"):t.removeClass("hl-aw"),"undefined"!=typeof v____timeout_cb_ck_row&&"number"==typeof v____timeout_cb_ck_row&&clearTimeout(v____timeout_cb_ck_row),v____timeout_cb_ck_row=setTimeout(function(){"function"==typeof __r____changed&&__r____changed()},1))}).on("click",".authentic_update:not(.disabled)",function(e){e.preventDefault(),e.stopPropagation();var t=$(this),i=tconfig_beta_updates?0:1,n="1"==t.data("force")?1:0,a=t.attr("data-stable");a&&a.length&&(i="1"==a?1:0),theme.update(i,n)}).on("click",".csf-submit",function(e){e.preventDefault();var t=$(this).data("id");$("#"+t).submit()}).on("change",".onchange_form_submit_triggger",function(e){e.preventDefault(),get_onbeforeunload_status()?get_onbeforeunload_message(this,"$($eventData).parent('form').submit()","ev"):$(this).parent("form").submit()}).on("click",".generate-password-key-g",function(e){var t=theme_password_generator();theme_copy_to_clipboard(t),plugins.messenger.post('<i class="fa fa-lg fa-fw fa-key-plus"></i>'+theme_language("theme_xhred_password_generator_new_success").replace("%password",'&nbsp;<code class="vertical-align-middle">'+Convert.htmlEscape(t)+"</code>&nbsp;"),10,"success","newGeneratedPassword")}).on("keydown",'form[action*="save_log.cgi"] input[name="filter"], form[action*="save_log.cgi"] input[name="lines"]',function(e){if(13==e.keyCode){e.preventDefault();var t=$("button.ui_submit.ui_form_end_submit");t.first().trigger("click"),t.addClass("disabled")}}).on("click",'button, input[type="submit"], a',function(e){v___page_activeElement=this}).on("click","._c__op_d",function(e){if($(e.target).is(this)){var t=$(this).find(".opener_trigger").first()[0];t&&t.click()}}).on("click",'form[action*="save_user.cgi"] button[name="but_switch"], a[href*="virtual-server/switch_user.cgi"]',function(){v___theme_reload=1}).on("click",'[href*="javascript:history"]',function(e){v___theme_content_history&&(e.preventDefault(),e.stopPropagation(),v___theme_content_history=0,get_pjax_content(v___location_directory))}).on("click",".ui_multi_select_row select[multiple] option",function(e){var t=$(this).parent("select"),i=t.parent("td"),n=i.parent("tr"),a=i.index();e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||0!==a&&2!==a||n.find("td:eq(1)").find('[onclick*="multi_select_move"][onclick*="'+(a?0:1)+'"]').trigger("click")}).on("click",'.container-fluid a[href], .container-fluid button, .container-fluid input[type="button"], .right-side-tabs a[href], .right-side-tabs button, .right-side-tabs input[type="button"], .right-side-tabs .info-container .graph-container-fw, .right-side-tabs-dismiss i, .favorites-menu li a',function(){v___blocked_navigation=0}).on("click",'#extended_sysinfo-1 .panel-collapse[aria-labelledby="status-virtual-server-1"] a:not(.ui_link)',function(e){e.preventDefault();var t=$(this),i=t.attr("href");if(!t.hasClass("disabled")){t.addClass("disabled opacity-0_4");var n=t.find(".fa-refresh");n&&n.addClass("fa-spin"),progress.start(),$.ajax({type:"GET",url:i,data:!1,statusCode:{200:function(){$.ajax({type:"GET",url:v___location_prefix+"/sysinfo.cgi",success:function(e){var t="#status-virtual-server-1-collapse",i=$(e).find(t).find(".panel-body");$('[data-dcontainer="1"]').find(t).find(".panel-body").replaceWith(i),progress.end()}})}}})}}).on("click","[data-href-background]",function(e){e.preventDefault();var t=$(this).attr("data-href-background");progress.start(),$.post(t,function(){plugins.slider.data.fetch(),v___location_path&&v___location_path.indexOf("/sysinfo.cgi")>-1&&page_refresh()})})};function addmodule(e){return adduser(e),!1}function addgroup(e){return adduser(e),!1}function adduser(e){return $v__mpp__g_olt=0,$('.mppopup input[data-role="tagsinput"]').tagsinput("add",e),setTimeout(function(){v__mpp__ml_t__e||($(".mppopup_filter_input").val(""),$(".mppopup_filter_input").focus().trigger("keyup")),v__mpp__ml_t__e=0},440),!1}function addinterface(e){return adduser(e),!1}function parentdir(e){fileclick(e,"1"),$v__mpp__g_gp=1}function fileclick(e,t){$v__mpp__g_ol=e,$v__mpp__g_olt=t}function select(e,t){return $data_mppopup_value.val(e),!1}function filter_match(e,t,n){t="",n=n||!1;var a=function(e){e=e||!1;var a=$(".mppopup table tbody tr");if(a.length>0)for(var i=0;i<a.length;i++){var r=a[i],s=r.className;(n||s===t)&&(n&&null===s.match(t)||(r.style.display=e?"":"none"))}return a};if(""!==(e=e.trim())){var i=a(!1);if(i.length>0)for(var r=0;r<i.length;r++){var s=i[r].className;if((n||s===t)&&(!n||null!==s.match(t)))for(var o=i[r].getElementsByTagName("a"),_=0;_<o.length;_++){var l=o[_].innerHTML.trim();l=l.replace(/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi,""),""!==l&&(l=l.toLowerCase(),l.match(e.toLowerCase())&&(i[r].style.display=""))}}}else a(!0)}function tab_action(e,t){document.forms[0]&&document.forms[0][e]&&(document.forms[0][e].value=t)}function hidden_opener(e,t){0===$("#"+e).parent(".opener_container").length&&$("#"+e).wrapAll('<div class="opener_container opener_sub_container margined-top"></div>'),$("#"+e).hasClass("opener_shown")?($("#"+e).parent(".opener_container").prev(".opener_extra_container.opener_extra_container_style").find(".opener_extra_container_a_style").removeClass("opener_container_opened").addClass("opener_container_closed"),$("#"+e).parent(".opener_container").prev("p").find(".opener_extra_container_a_style").removeClass("opener_container_opened").addClass("opener_container_closed"),$("#"+e).parent(".opener_container").parent("tr").prev("tr").find("td a:nth-child(1)").removeClass("opener_container_opened").addClass("opener_container_closed"),$("#"+e).parent(".opener_container").show().find("#"+e).slideUp(0,function(){$("#"+e).removeClass("opener_shown").addClass("opener_hidden").parent('.opener_container:not(".opener_sub_container")').hide(),$("#"+e).parent(".opener_sub_container").removeClass("margined-top")})):($("#"+e).parent(".opener_container").prev(".opener_extra_container.opener_extra_container_style").find(".opener_extra_container_a_style").addClass("opener_container_opened").removeClass("opener_container_closed"),$("#"+e).parent(".opener_container").prev("p").find(".opener_extra_container_a_style").addClass("opener_container_opened").removeClass("opener_container_closed"),$("#"+e).parent(".opener_container").parent("tr").prev("tr").find("td a:nth-child(1)").addClass("opener_container_opened").removeClass("opener_container_closed"),$("#"+e).slideUp(0).removeClass("opener_hidden").addClass("opener_shown").parent(".opener_container").slideDown(0).find(".opener_shown").slideDown(0),$("#"+e).parent(".opener_sub_container").addClass("margined-top"))}function select_mode(e){var t=$("aside form").length;for(i=0;i<document.forms[0+t].mode.length;i++)document.forms[0+t].mode[i].checked=document.forms[0+t].mode[i].value==e}function theme_select_all_link(e,t){var n=$("aside form").length,a=document.forms[e+n][t],r=function(e){var t=e.closest("tr.ui_checked_columns");t&&t.classList.toggle("hl-aw",e.checked)};if(a)if(a.length||a.disabled)for(i=0;i<a.length;i++)a[i].disabled||(a[i].checked=!0,r(a[i]));else a.checked=!0,r(a)}function theme_select_invert_link(e,t){var n=$("aside form").length,a=document.forms[e+n][t],r=function(e){var t=e.closest("tr.ui_checked_columns");t&&t.classList.toggle("hl-aw",e.checked)};if(a)if(a.length||a.disabled)for(i=0;i<a.length;i++)a[i].disabled||(a[i].checked=!a[i].checked,r(a[i]));else a.checked=!a.checked,r(a)}function g__text_breaker(e,t){if(e.val()){var n=e.val().split(t),a="";$.each(n,function(e,n){n&&(a+=t+n+"\n")}),e.val(a)}}function extract_content(e,t,n,a){if(!e)return 0;var i=a?0:t.length,r=a?n.length:0,s=e.indexOf(t),o=e.indexOf(n,s),_=o===-1?e.length:o;return e.slice(s+i,_+r)}function get_form_data(e){return(e.attr("enctype")&&e.attr("enctype").indexOf("form-data")>-1?0:1)?e.serialize():new FormData(e[0])}function page_extended(){return"settings-logos.cgi"===v___location_file||"settings-logos_save.cgi"===v___location_file||"settings-backgrounds.cgi"===v___location_file||"settings-backgrounds_save.cgi"===v___location_file||"settings-editor_read.cgi"===v___location_file||"settings-editor_write.cgi"===v___location_file||"settings-favorites_save.cgi"===v___location_file?1:0}function check_bundle(e){(Test.strContains(e,"/mysql/")||Test.strContains(e,"/postgresql/"))&&get_bundle_sql(),Test.strContains(e,"/"+v___module_file_manager+"/")&&get_bundle_file_manager(),Test.strContains(e,"/csf/")&&get_bundle_csf()}function get_bundle_csf(){var e=$("head"),t=v___server_extensions_path+"/csf/csf."+v___source_type+".css",n=v___server_extensions_path+"/csf/csf."+v___source_type+".js";Test.arrContains(o___gotten_scripts,n)||(e.append('<link href="'+t+"?"+v___theme_version_plain+'" rel="stylesheet" type="text/css">'),o___gotten_scripts.push(n),$.getScript(n+"?"+v___theme_version_plain).fail(function(e){"canceled"!==e.statusText&&connection_error(e,1)}))}function get_bundle_file_manager(e){fm_extension_js=v___server_extensions_path+"/file-manager/file-manager."+v___source_type+".js",Test.arrContains(o___gotten_scripts,fm_extension_js)||(o___gotten_scripts.push(fm_extension_js),$.getScript(fm_extension_js+"?"+v___theme_version_plain,function(){e&&___f__tw()}).fail(function(e){"canceled"!==e.statusText&&connection_error(e,1)}))}function get_bundle_sql(){mysql_extension_js=v___server_extensions_path+"/sql."+v___source_type+".js",Test.arrContains(o___gotten_scripts,mysql_extension_js)||(o___gotten_scripts.push(mysql_extension_js),$.getScript(mysql_extension_js+"?"+v___theme_version_plain).fail(function(e){"canceled"!==e.statusText&&connection_error(e,1)}))}function theme_open_new_tab(e,t){1!==t&&(e=Test.strContains(e,v___location_origin)?e:v___location_origin+(e.startsWith("/")?e:"/"+e)),$("body").append('<a href="'+e+'" target="_blank" class="hidden" id="theme_open_new_tab"></a>'),$("#theme_open_new_tab").simulateUserClick().remove()}function theme_to_new_tab(){$.each($('a[href*="virtualmin-awstats/view.cgi?config="],             .virtualmin-awstats a[href*="view.cgi?config="]   '),function(){$(this).addClass("--to-new-tab")})}function theme_restore_buttons_class(){$.each($(".container-fluid [data-class-restore]"),function(){var e="btn-xclass",t=$(this).attr("data-class-restore");if($(this)[0]&&$(this)[0].classList){var n=$(this)[0].classList.value.match(/.*(btn-\S+)/);n&&(e=n[1],$(this).removeAttr("data-class-restore"),$(this).removeClass(e).addClass(t))}})}function theme_reload(e){window.location.href=e?link_type_convert(v___location_resource,2):location.origin+v___location_prefix}function theme_update_notice(e,t){0===$("#update_notice").length&&$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-get_update_notice=1",complete:function(e){t&&t.classList.remove("disabled")},success:function(t){if(Test.strContains(t,v___page_signin_form))return void(v___available_session=0);$("body").prepend(t);var n=$("#update_notice");e&&n.addClass("r"),n.modal("show")},error:function(e){}})}function theme_inject_tooltip(e,t,n,a,i,r){var s=v___initial_load?3e3:0,o=e;e=theme_language(e)||e,t||(t="body"),n||(n="auto top"),a||(a="tooltip"),i||(i=600),s&&setTimeout(function(){var e=$('[data-target-tooltip-callback="'+o+'"]');e.attr("data-title",theme_language(o)),e.attr("data-delay",'{"show":600, "hide":"30"}'),e.tooltip({container:t,placement:n,sanitize:!1,trigger:"hover",delay:{show:i,hide:20}})},s);var _=String();if(r){var l=new RegExp("(?=\\"+r+")");e=e.split(l),e=e.join("<br>"),_=' data-html="true" '}return' data-container="'+t+'" data-placement="'+n+'" data-delay=\'{"show":"600", "hide":"30"}\' data-toggle="'+a+'" data-title="'+e+'" '+_}function theme_title_generate(e,t){var n=plugins.navigation.state.loading(),a=1==get_server_data("loading")?1:0;if((n||a)&&!$(".__page").hasClass("progressing"))return void setTimeout(theme_title_generate,100);if($.support.spa){var i=$("#headln2c").data("current-module-name"),r=$("#headln2c span[data-main_title]").text()||$('.panel-heading font[size="+2"]').text(),s=String(),o=$("aside select option:checked").text(),_=v___title_initial,l=" — "+_,c=_+" — ",d=get_server_data("hostname"),f=get_server_data("user"),g=Convert.strUpFirst(get_server_data("product")),u=theme_language("theme_xhred_titles_dashboard"),m=v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"sysinfo.cgi",h=$(".container-fluid > .error_40x");!i||i===r||$t_uri_virtualmin||$t_uri_cloudmin||(r=i+"/"+r),"csf"===v___module&&(r=theme_language("theme_xhred_csf")),m&&(r=u),h.length&&(r=h.find("strong").text()),t&&(r=t);var p=" - "+r;if(1==settings_document_title&&(c=String()),2==settings_document_title&&(l=String()),3==settings_document_title&&(c=String(),l=String()),5==settings_document_title&&(c=d+" - "+_+" — ",l=String()),6==settings_document_title&&(c=f+"@"+d+" - "+_+" — ",l=String()),7==settings_document_title&&(c=String(),l=" — "+g),8==settings_document_title&&(c=d+" — ",l=String()),9==settings_document_title&&(c=f+"@"+d+" — ",l=String()),4==settings_document_title){if(e)return s;document.title=_}else if($('li.sub_active a[href*="'+v___module_file_manager+'"]').length){var v=v___module_file_manager,b=$('body[class*="'+v+'"] .active form input#path').val();if(b){if(s=c+Convert.uriDecodeComponent(b)+" - "+$("li.sub_active a").text()+l,e)return s;document.title=s}else{if(s=c+$("li.sub_active a").text()+l,e)return s;document.title=s}}else if(($t_uri_virtualmin||$t_uri_cloudmin)&&o&&o.length&&!h.length)if(m){if(s=c+u+l,e)return s;document.title=s}else if(r&&r.length){if(s=c+o+p+l,e)return s;document.title=s}else{if(s=c+plugins.navigation.state.title()+l,e)return s;document.title=s}else if(r&&r.length){if(s=c+r+l,e)return s;document.title=s}else{if(s=_,e)return s;document.title=s}var x=$(".right-side-tabs .list-group-item:not(.no-notifications, .opacity-0_3)").length;settings_side_slider_enabled&&settings_side_slider_notifications_enabled?titlenotifier.set(x):titlenotifier.set(0)}}function link_type_convert(e,t){if(void 0!==e)return e&&(e=e.replace(/([?&])(_pjax|_)=[^&]*/g,"")),1===t&&(e=e.replace("?"+$__theme_navigation,"").replace("&"+$__theme_navigation,"")),2===t&&(Test.strContains(e,$__theme_navigation)||(e=Test.strContains(e,"?")?e+"&"+$__theme_navigation:e+"?"+$__theme_navigation)),e}function get_page_title_subtitle(e){var t=$("[data-sub_title]").text(),n=$('[data-main_title=""]').text(),a=n+(t?": "+t:String());return e?n:a}function get_pjax_push(){return!0}function get_pjax_type(e){String();if(e&&e.href&&e.href.match(/([^\/]*)\/*$/)[1],Test.string(e)){var t=e.replace(v___location_origin+v___location_prefix,""),n=t.replace(v___module,"").replace(/^\/+/g,""),a=$('form[action*="'+t+'"]:visible'),a=a.length?a:$('form[action="'+n+'"]:visible'),i=t.match(/\w+.cgi/gi),a=a.length||!i?a:$('form[action*="'+i[0]+'"]:visible'),r=a.attr("method");if("multipart/form-data"===a.attr("enctype"))return"post";if(r)return r;if(!r){var r=$('form[action="'+t+'"]').attr("method"),r=r?r:$('form[action="'+URI(t).filename()+'"]').attr("method"),s=$('form[action="'+t+'"]').attr("enctype");return r||s?"multipart/form-data"===s?"post":r:"get"}}else if("object"==typeof e&&$(e).is("form")){var o=e,_=o.attr("method");return _?_:"get"}return e&&Test.strContains(e,".cgi?")&&!Test.strContains(e,"config.cgi?")?"GET":"POST"}function get_pjax_content(e,t,n){var a=void 0===n||n===!0||1==n;if(!get_onbeforeunload_status()){if(e&&unbuffered_header_processor_allow(e))return void unbuffered_header_processor(e,0);t="object"==typeof t?t:function(){},$type=!!$.isArray(t)&&$("<a>",{href:e})[0],e=link_type_convert(e,1),$.pjax({url:e,timeout:0,push:a,type:get_pjax_type($type?$type:e),container:"[data-dcontainer]",fragment:"[data-dcontainer]",callback:t})}}function get_pjax_event_end(e,t){if(v___available_session){if(null!=t&&t.status){var n=$('div[data-dcontainer="1"]'),a=t.status.toString().startsWith("40"),i=t.status.toString().startsWith("50");if(a||i){if($.pjax.cache(!1,!1,[n,link_type_convert(v___location_prefix+"/xerror",2),get_page_title_subtitle(1)]),vars.allow_ui_features=0,setTimeout(function(){vars.allow_ui_features=1},200),a){var r=extract_content(t.responseText,'<div class="container error_40x" data-dcontainer="1">',"</div>",0);r&&n.html(r)}else if(i){var s,o=$(t.responseText).filter("h1").text(),_=$(t.responseText).filter("p").text();s='<div class="alert alert-danger error_40x">',s+='<strong><i class ="fa fa-exclamation-triangle"></i> '+t.status+" - "+o+"</strong><br><span>"+_+"</span>\n",s+="</div>",n.html(s)}return void theme_title_generate()}}if(null!=t&&void 0!==t.responseText){var l=t.getResponseHeader("Content-Disposition");if(!l||l.toLowerCase().indexOf("attachment")===-1){var c=t.responseText.replace(/<body\b[^<]*(?:(?!<\/body>)<[^<]*)*<\/body>/gim,"").replace(/<head\b[^<]*(?:(?!<\/head>)<[^<]*)*<\/head>/gim,"").replace("<!DOCTYPE html>","").replace("<html",'<div id="xhtml0"').replace("</html>","</div>");if(!!Test.strContains(c,"xhtml0")){var d=$(c).filter("#xhtml0");d[0]&&$(d[0].attributes).each(function(){"id"!==this.nodeName&&($.support.spa&&"data-redirect"===this.nodeName&&this.nodeValue&&this.nodeValue.length>0&&"/"!=this.nodeValue&&this.nodeValue!="/?"+$__theme_navigation&&this.nodeValue!=location.origin+v___location_prefix+"/"&&this.nodeValue!=location.origin+v___location_prefix+"/?"+$__theme_navigation&&(!Test.strContains(this.nodeValue,"://")||Test.strContains(this.nodeValue,location.host))&&(vars.previous_request=String(),vars.source_request=String()),get_server_data(this.nodeName,this.nodeValue),"data-slider-fixed"===this.nodeName&&vars.slider_pinned!==-1&&get_server_data(this.nodeName,vars.slider_pinned),"data-navigation-collapsed"===this.nodeName&&vars.navigation_pinned!==-1&&get_server_data(this.nodeName,vars.navigation_pinned))}).promise().done(function(){if(!core.curModule("mailboxes")&&uri_parse("directory",get_server_data("data-uri")).indexOf("/mailbox")>-1&&(!uri_parse("file",get_server_data("data-uri"))||uri_parse("file",get_server_data("data-uri")).indexOf("index.cgi")>-1))return mail_load(get_server_data("data-uri")),page_init(),!1;if(get_pjax_event_end_funcs(1),$.each($(".container-fluid img"),function(){var e=$(this),t=e.attr("src");!t||Test.strContains(t,"//")||t.startsWith("/")||e.attr("src",v___location_directory_trail_slashed+t)}),unbuffered_header_post(t),e){var n=$(e.relatedTarget),a=n.attr("href"),i=n.parent().is("[data-linked], .favorites-dcontainer, .menu-exclude.ui-sortable-handle");(i&&(Test.strContains(a,"/mysql/")||Test.strContains(a,"/postgresql/"))||Test.strContains(v___module,"mysql")||Test.strContains(v___module,"postgresql"))&&"function"==typeof f__ex__mysql_runner&&f__ex__mysql_runner(),(i&&Test.strContains(a,"/csf/")||Test.strContains(v___module,"csf"))&&csf_init()}})}}}}}function get_pjax_event_end_funcs(e,t){page_init();var n=function(){if(e&&v___module===v___module_file_manager&&"config.cgi"!==v___location_file&&page.handle.content.preloader(),v___module_file_manager&&0!=get_access_level()&&plugins.slider.state(0),!e){get_server_data("data-script-name",v___location_path),get_server_data("data-uri",v___location_resource);var t=new RegExp("^"+v___location_prefix,"i");v___module=get_server_data("data-uri").replace(t,"").split("/").filter(function(e){return 0!==e.length})[0],get_server_data("data-module",v___module),setTimeout(function(){get_server_data("data-title-initial",$("#headln2c span[data-main_title]").text()),snippets.page.render(1),despinnerfy_buttons(),$t_uri_virtualmin?plugins.navigation.intersect.virtualmin(location.href):$t_uri_cloudmin&&plugins.navigation.intersect.cloudmin(location.href)},0)}};if(t){var a=function(){get_server_data("loading")?setTimeout(a,100):(n(),theme_title_generate(),plugins.navigation.detect())};return void setTimeout(a,0)}n(),e&&Test.strContains(v___location_directory,v___module_file_manager)&&("function"==typeof ___f__tw?setTimeout(function(){___f__tw()},100):get_bundle_file_manager(1)),core.curModule("csf")||get_server_data("post",0,1),e&&snippets.page.render(0),$(".tooltip").tooltip("hide"),$(".popover").popover("hide"),theme_title_generate(),plugins.navigation.detect(),e&&$(".__page").scrollTop(0),setTimeout(function(){var e=v___page_container.find("form:visible:first"),t=e.find('input:visible:not([readonly]):not([disabled]):not([type="radio"]):not([type="checkbox"]), textarea:visible:not([readonly]):not([disabled])');t.length&&!t.parents(".ui_buttons_table").length&&"config.cgi"!==v___location_file&&"uconfig.cgi"!==v___location_file&&"settings-user.cgi"!==v___location_file&&vars.page_user_inactive&&("domain_form.cgi"===v___location_file||Test.strContains(v___location_query,"new=")||e&&e.length&&(e.attr("action").startsWith("create")||e.attr("action").startsWith("add")||e.attr("action").startsWith("new")))&&t&&0===t.val().length&&t[0].focus()},400),!e||core.curModule(v___module_file_manager)||core.curModule("csf")||"settings-user.cgi"===v___location_file||"edit_themes.cgi"===v___location_file||page.handle.content.preloader_dismiss()}function get_pjax_action_submit(e,t){var n=void 0===t||t===!0||1==t;if(!get_onbeforeunload_status()){if(e&&!v___theme_force_buffered&&e.target&&e.target.action&&unbuffered_header_processor_allow(e.target.action))return void unbuffered_header_processor(e,1);v___theme_force_buffered=0;var a=quirks.active_element(),i=$(a).attr("name"),r=$.trim(a.value)?$.trim(a.value):$.trim(a.innerText),s=a.value,o=a.type,_=a.nodeName.toLowerCase(),l=$(e.target).find('[name="'+i+'"]'),c=l.attr("type");c&&c.length&&(c=c.toLowerCase()),("input"!==_||l.val()==s&&"submit"!==c)&&("button"!==_||$.trim(l.text())==r&&"submit"!==c)||"button"!==c&&"submit"!==c&&"submit"!==o||$('input[type="hidden"][name="'+i+'"][value="'+(r?r:s)+'"]').length||$('<input data-trigger-injected="1">').attr({type:"hidden",name:i,value:r?r:s}).appendTo($(e.target)),vars.previous_request=e,vars.source_request=v___location_resource,v___theme_connection_triggered_origin=1,$.pjax.submit(e,"[data-dcontainer]",{timeout:0,push:n,type:get_pjax_type(e.target.action),fragment:"[data-dcontainer]"})}}function get_pjax_action_click(e,t,n){var a=void 0===n||n===!0||1==n;if(void 0!=$(t).attr("href")){var i=$(t).attr("href");if(i&&i.includes("!edit")){e.preventDefault();var r=i.replace("!edit ",""),s=r.split("\\").pop().split("/").pop(),o=r.replace("/"+s,"");return progress.start(),void edit_file(s,o)}if($(e.target).is(".gl-icon-select"))return e.preventDefault(),void $(t).trigger("contextmenu");if(t&&t.href&&unbuffered_header_processor_allow(t.href))return e.preventDefault(),void unbuffered_header_processor(t.href,0);if(!e||e.shiftKey||e.ctrlKey||e.metaKey||$(t).attr("href",link_type_convert($(t).attr("href"),1)),e&&(e.shiftKey||e.ctrlKey||e.altKey||e.metaKey)&&setTimeout(function(){despinnerfy_buttons()},400),v___theme_connection_triggered_origin=1,e.target.href&&$(e.target).hasClass("page_footer_submit")&&e.target.href.includes(".cgi/")&&!e.target.href.includes("/link.cgi/")){var _=URI(e.target.href),l=_.directory();if(l&&l.includes(".cgi")){var c=l.split("/");c=c.filter(function(e){return!e.includes(".cgi")}),c=c.join("/"),e.target.href=e.target.href.replace(l,c)}}$.pjax.click(e,{timeout:0,push:a,type:get_pjax_type(t),container:"[data-dcontainer]",fragment:"[data-dcontainer]"}),vars.previous_request=e}}function get_onbeforeunload_message($eventData,$thisData,$justEval){var save_prompt=bootbox.dialog({message:""+theme_language("theme_xhred_global_unbeforeunload_message"),title:'<i class="fa fa-fw fa-question-circle font-size-80p bootbox-o__f_m-save-prompt">&nbsp;&nbsp;</i> <strong class="font-size-90p">'+theme_language("theme_xhred_global_unbeforeunload_title")+"</strong>",buttons:{main:{label:'&nbsp;<i class="fa fa-fw fa-arrow-circle-o-left">&nbsp;&nbsp;</i>'+theme_language("theme_xhred_global_cancel")+"&nbsp;&nbsp;",className:"btn-default vertical-align-top margined-left--2",callback:function(){despinnerfy_buttons(),plugins.navigation.detect(),plugins.navigation.select.back()}},danger:{label:'&nbsp;<i class="fa fa-fw fa-arrow-circle-o-right">&nbsp;&nbsp;</i>'+theme_language("theme_xhred_global_continue")+"&nbsp;&nbsp;",className:"btn-danger vertical-align-top margined-left--2",callback:function(){if(set_onbeforeunload_status(0,0),set_onbeforeunload_status(0,1),theme_config_check(),"object"==typeof progressive_request&&1===progressive_request.readyState&&progressive_request.abort(),"ev"===$justEval)return void eval($thisData);$.each($justEval,function(func,params){var caller=func.includes(".")?eval(func):window[func];caller.apply(null,params)});var switchStr="::switch::";if($thisData&&$thisData.href&&Test.strContains($thisData.href,"::switch::"))return void $('.switch-toggle input[id="'+$thisData.href.replace("::switch::","")+'"]').trigger("click");var $is_form=$($thisData).is("form");$is_form?$is_form&&get_pjax_action_submit($eventData):$thisData.href&&$thisData.href.length&&get_pjax_content($thisData.href,!1)}}},onEscape:function(){despinnerfy_buttons(),plugins.navigation.detect()}});save_prompt.on("shown.bs.modal",function(){var e=$(this);setTimeout(function(){e.find('[data-bb-handler="danger"]').focus()},0)})}function get_onbeforeunload_status(){return $('.container-fluid > .panel > .panel-body[data-unload-warning="1"]').length||$('html[data-unload-warning="1"]').length}function set_onbeforeunload_status(e,t){var n=t?"html":".container-fluid > .panel > .panel-body";e?$(n).attr("data-unload-warning","1"):$(n).removeAttr("data-unload-warning")}function set_onbeforeunload_status_native(e){e?$("html").attr("data-unload-error","1"):$("html").removeAttr("data-unload-error")}function get_onbeforeunload_status_native(){return $('html[data-unload-error="1"]').length}function theme_cache_clear(e){theme.veiled(1),plugins.messenger.post('<i class="fa fa-lg fa-fw fa2 fa2-delete fa-1_25x margined-top--2"></i>'+theme_language("theme_xhred_clear_cache_initiated")+" "+theme_language("theme_xhred_global_please_wait")+'&nbsp;&nbsp;&nbsp;<span class="cspinner"><span class="cspinner-icon white smallest margined-top-4"></span></span>',1800,"info","themeUpgrade",0),$.post(v___location_prefix+"/index.cgi/?xhr-theme_clear_cache=1"),set_onbeforeunload_status(0,0),localStorage.clear(),$(".right-side-tabs-dismiss .fa-trash, .right-side-tabs-dismiss .fa-refresh").trigger("click"),e&&spinnerfy_buttons($(e),[1.5,-33,"small",1e3]),setTimeout(function(){theme_reload()},1e3)}function theme_password_generator(){var e=settings_global_passgen_format.split("|")[1].split(","),t=parseInt(settings_global_passgen_format.split("|")[0]),n="",a="";$.inArray("a-z",e)>=0&&(n+="abcdefghijklmnopqrstuvwxyz"),$.inArray("A-Z",e)>=0&&(n+="ABCDEFGHIJKLMNOPQRSTUVWXYZ"),$.inArray("0-9",e)>=0&&(n+="0123456789"),$.inArray("#",e)>=0&&(n+="![]{}()%&*$#^<>~@|");for(var i=0;i<t;i++)a+=n.charAt(Math.floor(Math.random()*n.length));return a}function get_cookie(e){for(var t=e+"=",n=document.cookie.split(";"),a=0;a<n.length;a++){for(var i=n[a];" "==i.charAt(0);)i=i.substring(1,i.length);if(0==i.indexOf(t))return i.substring(t.length,i.length)}return null}function array_swap(e){var t={};for(var n in e)t[e[n]]=n;return t}function theme_module_check_clone(e){if(e){var t=e.replace(/\//g,"");if(v___module&&v___module!==t&&v___module.includes(t))return 1}return 0}function theme_buttonify(e,t,n,a,i,r,s,o,_,l){void 0===i&&(i=!1),void 0===r&&(r=""),void 0===s&&(s=""),(void 0===o||0==o)&&(o=""),(void 0===_||0==_)&&(_=!1),(void 0===l||0==l)&&(l=!1),$.each(e,function(e,c){(v___location_path==v___location_prefix+c||theme_module_check_clone(c))&&(1===r||$.isArray(r)||(r=r.split("~"),s=s.split("~")),$.each($(r),function(e,n){if(1!==r){var a=new RegExp(RegExp.quote(n),"g");$(t+':not(.f__lnk_t_btn):contains("'+n+'")').replaceText(a,s[e])}}).promise().done(function(){var e="",r="";o&&o.indexOf("~")>-1&&(o=o.split("~"),e=o[0],r=o[1]),$.each($(t).find(n),function(){var s=$(t).find(n).parents(".btn-group.ui_links_row");if(s.length&&s.contents().unwrap(),!$(this).parents(t).hasClass("f__lnk_t_btn")||Test.strContains(a,"---forced")){if(_){var o=new RegExp(RegExp.quote(_),"g");$(this).parent().replaceText(o,l?l:"")}a&&a.indexOf("__center__")>-1&&$(n).parent().addClass("text-center").addClass("f__lnk_t_btn-el"),$(this).html(e+$(this).text().replace(/\.\.$/,"")+r).addClass(a).addClass("f__lnk_t_btn-el").removeClass("ui_link").prepend(i?'<i class="fa fa-fw margined-left--3 '+i+'" style="vertical-align: baseline !important">&nbsp;&nbsp;</i>':""),$(this).parent(t).addClass("f__lnk_t_btn")}})}))})}function theme_toggle_night_mode(){function e(){v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"sysinfo.cgi"&&$(".__page .piechart").length?($.each($(".piechart"),function(){$(this).addClass("bg-filter-blur-grayscale-invert-opacity75").data("easyPieChart").update(0)}),theme_config("save",['get_pjax_content("'+v___location_prefix+'/sysinfo.cgi")',0])):theme_config("save")}function t(n){function a(){get_server_data("data-theme","gunmetal"),o.remove(),get_server_data("data-background-style","nightRider"),get_server_data("data-night-mode",1),v___theme_night_mode_enabled=1,v___theme_night_mode=1,v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"sysinfo.cgi"&&$(".__page .piechart").length||setTimeout(function(){progress.end()},201),e()}var i=document.styleSheets;try{if(!i[n]||!i[n].cssRules[0])return void setTimeout(function(){t(n)},200)}catch(e){if("SecurityError"!==e.name)return void setTimeout(function(){a()},800);return}a()}var n=$("body .user-link.palette-toggle"),a=n.find(".fa-sun").length?0:1,i=(get_server_data("data-night-mode"),get_server_data("data-default-theme")),r=settings_background_color,s=$("input, textarea").is(":focus");if((!$.support.spa||!s)&&$.support.spa&&!$("body").find(".modal.in:visible").length)if(1===a){n.find(".fa-moon").removeClass("fa-moon").addClass("fa-sun vertical-align-middle"),progress.start(),$(document).find(".settings_navigation_color_toggle").addClass("hidden");var o=$("html").find('head link[href*="palettes"][data-palette]'),_=document.styleSheets.length+1;$("html").find("head").append('<link href="'+v___location_prefix+"/unauthenticated/css/palettes/gunmetal."+v___source_type+".css?"+$.now()+'" rel="stylesheet" type="text/css" data-palette>'),$("html").find("head").append('<link href="'+v___location_prefix+"/unauthenticated/css/palettes/nightrider."+v___source_type+".css?"+$.now()+'" rel="stylesheet" type="text/css" data-palette>'),t(_)}else{$("body").find(".settings_navigation_color_toggle").removeClass("hidden"),n.find(".fa-sun").removeClass("fa-sun vertical-align-middle").addClass("fa-moon");var l=$("html").find('head link[href*="gunmetal"]');"blue"!=get_server_data("data-default-theme")&&$("html").find("head").append('<link href="'+v___location_prefix+"/unauthenticated/css/palettes/"+i.toLowerCase()+"."+v___source_type+".css?"+$.now()+'" rel="stylesheet" type="text/css" data-palette>'),get_server_data("data-theme",i),l.remove(),get_server_data("data-background-style",r),get_server_data("data-night-mode",0),"nightRider"!==settings_background_color&&$("html").find('head link[href*="nightrider"]').remove(),v___theme_night_mode_enabled="nightRider"===settings_background_color?1:0,v___theme_night_mode=0,e()}}function theme_spinner_small(e,t,n){return e=e||"in-btn-md",t=t||"dark",n=n||"width:12px; height:12px; margin-right: 7px;",'<span class="cspinner '+e+'" style="position: relative"><span class="cspinner-icon '+t+'" style="'+n+'"></span></span>'}function despinnerfy_buttons(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>0&&void 0!==arguments[1]?arguments[1]:0,n=t?t:$(".btn.disabled");$.each(n,function(){var t=$(this),n=t.find(".cspinner_container"),a=n.prev("i.invisible");!e&&t.removeClass("disabled"),a.removeClass("invisible"),n.remove()})}function spinnerfy_buttons(e,t,n,a){var i=!!(e.attr("onclick")&&e.attr("onclick").indexOf("blank")!==-1||e.parents("form").attr("target")&&e.parents("form").attr("target").indexOf("blank")!==-1),r=e.hasClass("heighter-28"),s="28px"==e.css("height"),o=e.hasClass("btn-lg"),_=e.find(".fa").hasClass("fa-1_25x"),l=e.find(".fa"),c=void 0!==t&&0!=t&&t,d='<span class="cspinner_container" style="position: absolute; width: 18px; height: 14px; display: inline-block;"><span class="cspinner" style="margin-top: '+(c?c[0]+"px":!r&&!s||_||o?_?"1.6px":o?"0.5px":"0":"-0.5px")+" !important; margin-left: "+(c?c[1]+"px":!r&&!s||_||o?o?"-28px":r||s||!_?"-25.5px":"-27.5px":"-23.5px")+' !important;"><span class="cspinner-icon white '+(c?c[2]?c[2]:"":r||s?"smaller":"small")+'"></span></span></span>',f='<span class="cspinner_container" style="position: absolute; width: 18px; height: 14px; display: inline-block;"><span class="cspinner" style="margin-top: '+(c?c[0]+"px":!r&&!s||_||o?_?"1.6px":o?"0.5px":"0":"-0.5px")+" !important; margin-left: "+(c?c[1]+"px":!r&&!s||_||o?o?"-28px":r||s||!_?"-25.5px":"-27.5px":"-23.5px")+'  !important;"><span class="cspinner-icon dark '+(c?c[2]?c[2]:"":r||s?"smaller":"small")+'"></span></span></span>';setTimeout(function(){!i&&e.addClass("disabled")},10),l.length&&!i&&setTimeout(function(){e.hasClass("btn-default")?l.addClass("invisible").after(f):l.addClass("invisible").after(d)},10),void 0==typeof n&&(n=!1),void 0==typeof a&&(a=!1),(c[3]||n)&&setTimeout(function(){e.removeClass("disabled"),l.removeClass("invisible"),e.find(".cspinner_container").remove()},n?n:c[3]),a&&setTimeout(function(){progress.end()},400)}function theme_language(e,t){void 0===t&&(t=!1);var n=v___theme_language;return t?Convert.arrFlip(n)[$.trim(e)]:n[e]}function theme_copy_to_clipboard(e){$("body").append('<button class="hidden tmp-clipboard-obj" data-clipboard-text="'+e+'"></button>');var t=new Clipboard(".tmp-clipboard-obj");$(".tmp-clipboard-obj").trigger("click").remove(),t.destroy()}function theme_config($action,callBack,$singleOptionToSaveName,$singleOptionToSaveValue){var callBack="object"==typeof callBack&&callBack,watched_options=["config_portable_module_csf_style_custom_promoted","config_portable_theme_charset_warning_shown","config_portable_theme_locale_language","config_portable_theme_locale_languages","config_portable_theme_locale_format_full","config_portable_theme_locale_format_long","config_portable_theme_locale_format_short","config_portable_module_xsql_fit_content_screen_height","config_portable_module_filemanager_records_per_page","config_portable_module_filemanager_records_for_server_pagination","config_portable_module_filemanager_default_sort","config_portable_module_filemanager_hide_tree_view","config_portable_module_filemanager_tree_expand_search","config_portable_module_filemanager_tree_view_depth","config_portable_module_filemanager_tree_exclude_on_first_load","config_portable_module_filemanager_hide_toolbar","config_portable_module_filemanager_hovered_toolbar","config_portable_module_filemanager_hide_actions","config_portable_module_filemanager_remember_tabs","config_portable_module_filemanager_calculate_size","config_portable_module_filemanager_force_tar","config_portable_module_filemanager_switch_user"];if("get_options"==$action)return watched_options;if("save"==$action&&$singleOptionToSaveName)return localStorage.setItem(v___server_hostname+"-"+$singleOptionToSaveName,$singleOptionToSaveValue),window[$singleOptionToSaveName]=$singleOptionToSaveValue,void theme_config("save");if("save"==$action){var storeStorage={},val=0;$.each(localStorage,function(e,t){
"string"==typeof e&&e.indexOf(v___server_hostname)>-1&&Test.arrIntersect(watched_options,e)&&"undefined"!=(val="true"==t||"false"!=t&&(Test.numeric(t)?t&&t.length>16?t:parseInt(t):t))&&(storeStorage[e.replace(v___server_hostname+"-","")]=val)}),storeStorage.settings_force_night_mode=v___theme_night_mode,storeStorage.settings_font_family=settings_font_family,storeStorage.settings_navigation_color=settings_navigation_color,storeStorage.settings_grayscale_level_navigation=settings_grayscale_level_navigation,storeStorage.settings_sepia_level_navigation=settings_sepia_level_navigation,storeStorage.settings_saturate_level_navigation=settings_saturate_level_navigation,storeStorage.settings_hue_level_navigation=settings_hue_level_navigation,storeStorage.settings_invert_level_navigation=settings_invert_level_navigation,storeStorage.settings_brightness_level_navigation=settings_brightness_level_navigation,storeStorage.settings_contrast_level_navigation=settings_contrast_level_navigation,storeStorage.settings_background_color=settings_background_color,storeStorage.settings_cm_editor_palette=settings_cm_editor_palette,storeStorage.settings_enable_container_offset=settings_enable_container_offset,storeStorage.settings_contrast_mode=settings_contrast_mode,storeStorage.settings_usermin_default_module=settings_usermin_default_module,storeStorage.settings_document_title=settings_document_title,storeStorage.settings_right_page_hide_persistent_vscroll=settings_right_page_hide_persistent_vscroll,storeStorage.settings_hide_top_loader=settings_hide_top_loader,storeStorage.settings_collapse_navigation_link=settings_collapse_navigation_link,storeStorage.settings_sysinfo_link_mini=settings_sysinfo_link_mini,storeStorage.settings_show_night_mode_link=settings_show_night_mode_link,storeStorage.settings_show_terminal_link=settings_show_terminal_link,storeStorage.settings_favorites=settings_favorites,storeStorage.settings_theme_options_button=settings_theme_options_button,storeStorage.settings_leftmenu_button_refresh=settings_leftmenu_button_refresh,storeStorage.settings_hotkeys_active=settings_hotkeys_active,storeStorage.settings_mail_ui=settings_mail_ui,setTimeout(function(){$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-manage-config=1&save=1",data:storeStorage,dataType:"text",success:function(c){if(Test.strContains(c,v___page_signin_form))return void(v___available_session=0);setTimeout(function(){"0"!=get_access_level()&&(theme_restore_buttons_class(),theme_config_controls(0),despinnerfy_buttons(0,$("#save_user")))},400),callBack&&(callBack[2]?setTimeout(function(){eval(callBack[0])},callBack[2]):eval(callBack[0]))},error:function(){}})},10)}else if("load"===$action){var val=0;$.ajax({type:"GET",url:v___location_prefix+"/index.cgi?xhr-manage-config=1&load=1",data:!1,dataType:"json",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);$.each(e,function(e,t){val="true"==t||"false"!=t&&(Test.numeric(t)?t&&t.length>16?t:parseInt(t):t),localStorage.setItem(v___server_hostname+"-"+e,val),window[e]=val}),theme_config_post_load()},error:function(){}})}}function theme_config_post_load(){moment.locale(config_portable_theme_locale_language&&"0"!=config_portable_theme_locale_language?config_portable_theme_locale_languages:get_server_data("language-full"))}function get_login_required(e){return Test.strContains(e,v___page_signin_form)?(v___available_session=0,1):0}function get_server_data(e,t,n){var a=$("html"),i=$("body"),r="data-"+e,s=e.replace("data-","");if(void 0!==n)e.startsWith("data-")?(a.removeAttr(e),a.removeData(s)):(a.removeAttr(r),a.removeData(e)),"data-uri"===e&&i.removeAttr(e);else{if(void 0===t)return e.startsWith("data-")?a.attr(e):a.data(e);e.startsWith("data-")?a.attr(e,t).data(s,t):a.data(e,t).attr(r),"data-uri"!==e&&"data-module"!==e||(i.attr(e,t),"data-module"===e&&i.removeClass().addClass(t))}}function check_reboot(){core.curModuleFile("init","reboot.cgi")&&!document.querySelector('.container-fluid [action="reboot.cgi"]')&&setTimeout(function(){connection_error({status:0,reboot:1},1,{body:theme_language("theme_xhred_connection_reboot_details"),title:theme_language("theme_xhred_connection_reboot"),icon:"refresh-mdi"}),vars.pjax.post_reboot=!0},1e3)}function connection_error(e,t,n){var a=function(e){var t=String();if(e.responseText&&$(e.responseText).filter("p")){var n=$(e.responseText).filter("p").html();if(n){var a=n.replace(/\n/g," ").match(/(.*)\sat\s\/|(.*)/);a&&(t=" – "+Convert.htmlStrip(a[2]||a[1]))}}return t},i=a(e);if(502!==e.status||!i||!i.includes("tree.cgi"))if(progress.end(),v___theme_ajax_error=1,1!==v___theme_connection_triggered_origin&&!t||0!==e.status&&400!==e.status&&404!==e.status&&500!==e.status&&502!==e.status&&503!==e.status){var r=a(e),s=String();if(413===e.status){var o=theme_wiki_link("theme_xhred_global_error_more_details_online","https://github.com/authentic-theme/authentic-theme/wiki/Error:--413---Request-Entity-Too-Large");o&&(s=". <br>"+o)}200!==e.status&&(e.status&&plugins.messenger.post('<i class="fa fa-lg fa-fw fa-exclamation-triangle"></i>'+theme_language("theme_xhred_global_error")+":&nbsp;&nbsp;"+e.status+" - "+e.statusText+r+s,30,"error","ajaxError"),setTimeout(despinnerfy_buttons,400))}else{var _="modal-connection-warning",l=e;vars.pjax.post_reboot&&(vars.pjax.post_reboot=!1),$("."+_).length||this.called||(this.called=1,$.ajax({context:this,type:"GET",url:v___location_prefix+"/index.cgi/?xhr-error=1",data:!1,dataType:"text",timeout:3e3,success:function(){this.called=0},error:function(){var e=theme_language("theme_xhred_connection_error_details").replace("%server",location.host+v___location_prefix),t=theme_language("theme_xhred_connection_lost"),a="unplugged",i="danger";n&&(e=n.body,t=n.title,a=n.icon,_+=" modal-reboot",i="warning");var r=new Date;r=moment(r.toISOString()).format(config_portable_theme_locale_format_full);var s='<sup class="fa fa-clock" data-toggle="tooltip" data-title="'+theme_language("theme_xhred_connection_lost")+": <br>"+r+'"></sup>';l.reboot&&(s=String()),theme_alert(t+'<span class="loading-dots"></span>'+s,e,!1,"md",i,a+" fa-lg","7 "+_,0),setTimeout(function(){$("."+_+" .loading-dots + .fa").tooltip({placement:"auto bottom",trigger:"hover",html:!0,delay:{show:600,hide:30}})},150),setTimeout(function(){0===v___theme_connection_reestablish&&(connection_reestablish(),v___theme_connection_reestablish=1,this.called=0,$("."+_).on("hidden.bs.modal",function(){v___theme_connection_reestablish=0,progress.end()}))},1),setTimeout(function(){plugins.navigation.load.stop(),plugins.navigation.detect(),plugins.navigation.switch.reset(),despinnerfy_buttons(),plugins.shell.unlock()},100)}}))}}function theme_wiki_link(e,t){var n=theme_language(e),a=n.match(/%1(.*)%1/);if(a){var i=new RegExp(a[1],"g");return n=n.replace(/%1/g,String()).replace(i,'<a target="_blank" class="text-success" href="'+t+'">'+a[1]+"</a>")}return String()}function connection_modal_close(){$(".modal-connection-warning").modal("hide"),v___theme_connection_reestablish=0}function connection_reestablish(){var e="modal-connection-warning";$("."+e).length&&$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-check=1",data:!1,timeout:3e3,dataType:"text",success:function(t){$("."+e).removeClass("modal-reboot"),$("."+e).find(".modal-header").removeClass().addClass("modal-header background-success background--bordered").find("h4").html('<i class="fa fa-fw fa-plug fa-lg">&nbsp;&nbsp;</i> '+theme_language("theme_xhred_connection_success")),$("."+e).find(".modal-body").html("<p>"+theme_language("theme_xhred_connection_success_details")+"</p>"),vars.pjax.post_reboot?(get_pjax_content(v___location_prefix+"/sysinfo.cgi",["success",connection_modal_close]),vars.pjax.post_reboot=!1):setTimeout(function(){connection_modal_close()},2e3)},error:function(e){v___theme_connection_reestablish&&setTimeout(function(){connection_reestablish()},3e3)}})}function control_server_theme_temp_data(e,t,n,a,i,r){return $.ajax({type:"POST",url:v___location_prefix+"/index.cgi/?xhr-theme_temp_data=1&xhr-theme_temp_data_action="+e+"&xhr-theme_temp_data_name="+t+"&xhr-theme_temp_data_value="+(n?Convert.uriEncodeComponent(n):n)+"&xhr-theme_temp_data_keep="+a,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);"function"==typeof i&&(!e.length||e.length&&1===r)&&i()},error:function(e){}})}function get_server_theme_temp_data(e,t,n,a){return control_server_theme_temp_data("get",e,!1,t,n,a)}function set_server_theme_temp_data(e,t){control_server_theme_temp_data("set",e,t)}function page_display(){var e=$("body"),t=$("body").find(".container-fluid"),n=$("head");t.css({opacity:1,"pointer-events":"auto"}),e.css("overflow","auto"),n.find("#__tmp_no_overflow").remove()}function page_remove_progress(){despinnerfy_buttons(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0),setTimeout(function(){get_server_theme_temp_data("redirected",0)},100),setTimeout(function(){progress.end()},600)}function page_adjust(e,t){"function"==typeof $.injectCSS&&($("style[data-persist]").remove(),t=!!t&&"translate("+t+"px, 0px) !important",$.injectCSS({"#sidebar":{left:-e+"px",width:e+"px",transform:t},".switch-toggle":{width:e+"px"},"#content.__page":{"margin-left":e+"px"},".autocomplete-suggestions":{"min-width":e-23+"px !important"},".__logo":{width:e+"px","max-width":e+"px"},"#jsPanel-replacement-container":{left:($.support.spa?settings_leftmenu_width-1:-2)+"px"}}),$("aside select").length&&core.curModuleFile("webmin","edit_themes.cgi")&&!$.browser.mobile&&($("aside select[data-autocomplete-title]").attr("style","width:"+(e-24)+"px; margin-top: 0 !important"),plugins.navigation.select.load()))}function theme_modal_dismiss(){$(".modal.in").find("[data-dismiss]").trigger("click")}function theme_shortcut_check(e){return"0"==get_access_level()||!!core.moduleAvailable(URI("/"+e).directory().replace(/\//g,""))}function theme_shortcuts_modifier_unique(e){var t=["ctrlKey","altKey","shiftKey","metaKey"],n=t.indexOf(settings_hotkey_toggle_modifier),a=!1;return t.splice(n,1),t.map(function(t){e[t]&&!a&&(a=!0)}),!a}function theme_shortcuts(e){if(!Test.editing()&&settings_hotkeys_active){var t=theme_shortcuts_modifier_unique(e);if(e.ctrlKey&&e.altKey&&e.metaKey&&e.shiftKey&&"R"==String.fromCharCode(e.which)&&!theme.veiled(-1)&&theme_cache_clear(),0===get_access_level()&&e.ctrlKey&&e.altKey&&e.shiftKey&&"U"==String.fromCharCode(e.which)&&!theme.veiled(-1)&&theme.update(e.metaKey?0:1),!t)return!0;if(!v___available_session)return void e.preventDefault();if(e[settings_hotkey_toggle_modifier]){if("1"==String.fromCharCode(e.which)&&settings_hotkey_custom_1&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_1)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_1)),"2"==String.fromCharCode(e.which)&&settings_hotkey_custom_2&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_2)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_2)),"3"==String.fromCharCode(e.which)&&settings_hotkey_custom_3&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_3)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_3)),"4"==String.fromCharCode(e.which)&&settings_hotkey_custom_4&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_4)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_4)),"5"==String.fromCharCode(e.which)&&settings_hotkey_custom_5&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_5)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_5)),"6"==String.fromCharCode(e.which)&&settings_hotkey_custom_6&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_6)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_6)),"7"==String.fromCharCode(e.which)&&settings_hotkey_custom_7&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_7)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_7)),"8"==String.fromCharCode(e.which)&&settings_hotkey_custom_8&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_8)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_8)),"9"==String.fromCharCode(e.which)&&settings_hotkey_custom_9&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_9)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_9)),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_focus_search&&(e.preventDefault(),$(".form-control.sidebar-search").focus()),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_webmin&&(e.preventDefault(),$('.switch-toggle input[id="open_webmin"]').trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_virtualmin&&(e.preventDefault(),$('.switch-toggle input[id="open_virtualmin"]').trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_cloudmin&&(e.preventDefault(),$('.switch-toggle input[id="open_cloudmin"]').trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_usermin&&(e.preventDefault(),$('.switch-toggle input[id="open_usermin"]').trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_webmail&&(e.preventDefault(),$('.switch-toggle input[id="open_webmail"]').trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_night_mode&&(e.preventDefault(),theme_toggle_night_mode()),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_navigation&&window.matchMedia("(min-width: 1080px)").matches&&(e.preventDefault(),$('aside [data-collapse-trigger="1"]').addClass("m").trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_slider&&window.matchMedia("(min-width: 1366px)").matches&&(e.preventDefault(),$('[data-trigger="side_slider_pinned"]').trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_slider&&(e.preventDefault(),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_reload&&$('.user-links a[data-refresh="true"]')&&(e.preventDefault(),page_refresh()),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_shell&&theme_shortcuts_modifier_unique(e)&&(1==core.moduleAvailable("shell")||plugins.shell.type()))return e.preventDefault(),void(plugins.shell.status()?plugins.shell.close():plugins.shell.open());String.fromCharCode(e.which).toLowerCase()==settings_hotkey_sysinfo&&(e.preventDefault(),1==plugins.navigation.switch.dashboard.get()?plugins.navigation.switch.dashboard.set():get_pjax_content(v___location_prefix+"/sysinfo.cgi")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_favorites&&(e.preventDefault(),"0px"!=$(".favorites-menu-outer").css("left")?$(".user-link.favorites").trigger("click"):$(".favorites-menu-outer").removeClass("hover"))}return!1}}function sysinfo_replace_dismiss_buttons(){var e=$('#system-status [onclick*="webmin/hide.cgi?id"], #right-side-tabs [onclick*="webmin/hide.cgi?id"], [data-referrer^="announce"] [onclick*="webmin/hide.cgi?id"]');$.each(e,function(){var e=$(this).attr("onclick"),t=$(this).text();$(this).is("input")&&(t=$(this).val()),$(this).before('<a class="btn btn-grey btn-tiny margined-top-3" data-panel-ctl data-href-background="'+e.split('"')[1]+'"><i class="fa fa-fw fa-times-circle-o"></i> '+t+"</a>"),$(this).remove()});var t=$('#system-status [onclick*="window.open"][onclick*="_new"], #right-side-tabs [onclick*="window.open"][onclick*="_new"], [data-referrer^="announce"] [onclick*="window.open"][onclick*="_new"]');$.each(t,function(){var e=$(this).attr("onclick"),t=$(this).text();$(this).is("input")&&(t=$(this).val());var n="btn-primary",a=e.split('"')[1],i="fa fa-fw fa-external-link";a.includes("patreon")&&(i="fa2 fa-fw fa2-kiss-wink-heart-bold",n="btn-success"),$(this).before('<a class="btn '+n+' btn-tiny margined-top-3" data-panel-ctl target="_blank" rel="noreferrer" href="'+a+'"><i class="'+i+'"></i> '+t+"</a>"),$(this).remove()})}function get_access_level(){return""!=vars.level&&vars.level!==-1?parseInt(vars.level):parseInt(get_server_data("level"))}function theme_updating(){return theme_message_exists("themeUpgrade")}function theme_message_exists(e){return void 0!==window["Messenger_"+e]}function theme_message_dismiss(e){void 0!==window["Messenger_"+e]&&(window["Messenger_"+e].hide(),delete window["Messenger_"+e])}function theme_message_and_unlock(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:String(),i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"info",r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:3,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;plugins.messenger.post('<i class="fa fa-lg fa-fw '+e+'"></i>'+theme_language("theme_xhred_"+t)+"</code>&nbsp;",r,i,a,s),setTimeout(function(){page_remove_progress(n)},600)}function theme_alert(e,t,n,a,i,r,s,o){(void 0===n||0==n)&&(n=!1),(void 0===a||0==a)&&(a="md"),(void 0===i||0==i)&&(i="danger"),(void 0===r||0==r)&&(r="exclamation-triangle"),(void 0===s||0==s)&&(s="7"),(void 0===o||0==o)&&(o=!1);var _=($.isArray(n),"modal-global-notification"),l='<div class="modal fade '+_+" "+s+'" tabindex="-1" role="dialog" data-keyboard="false" data-backdrop="static"><div class="modal-dialog modal-'+a+'"><div class="modal-content"><div class="modal-header background-'+i+' background--bordered"><button type="button" class="close" data-dismiss="modal" aria-label="'+theme_language("theme_xhred_global_close")+'"><span aria-hidden="true">&times;</span></button><h4 class="modal-title"><i class="fa fa-fw fa-'+r+'">&nbsp;&nbsp;</i> '+(theme_language(e)?theme_language(e):e)+'</h4></div><div class="modal-body"><p>'+(theme_language(t)?theme_language(t):t)+"</p><div"+($.isArray(n)?"":' class="hidden"')+'><button class="btn btn-default btn-xs btn-block margined-bottom-1" type="button" data-toggle="collapse" data-target="#collapse-'+_+'" aria-expanded="false" aria-controls="collapse-'+_+'">'+theme_language(n[0])+'</button><div class="collapse" id="collapse-'+_+'"><div class="well">'+n[1]+"</div></div></div></div></div></div></div>";setTimeout(function(){$("body").hasClass("modal-open")||($("body").append(l),$("."+_).modal("show"),$("."+_).on("click",".modal-body a.label",function(e){$("."+_).modal("hide")}),$("."+_).on("hidden.bs.modal",function(e){$("."+_).remove()}))},o)}function theme_alert_charset(){var e=get_server_data("charset");if(e&&e.toLowerCase().indexOf("utf")===-1&&"true"!=localStorage.getItem(v___server_hostname+"-config_portable_theme_charset_warning_shown")){var t="<p>"+theme_language("theme_xhred_encoding_warning").replace("_hidden_",$t_uri_usermin?"hidden":"").replace("%prod",plugins.navigation.state.title()).replace("%lang",get_server_data("language")).replace("%charset",get_server_data("charset")).replace("%link",v___location_prefix+($t_uri_usermin?"/language":"/webmin/edit_lang.cgi"))+"</p>";theme_alert(theme_language("theme_xhred_global_warning"),t,!1,"sm","warning",!1,"7 modal-charset-warning",2e3),$("body").on("click",".modal-charset-warning a.label",function(e){$(".modal-charset-warning").modal("hide")}),$("body").on("hide.bs.modal",".modal-charset-warning",function(e){localStorage.setItem(v___server_hostname+"-config_portable_theme_charset_warning_shown","true"),theme_config("save")})}}function get_module_title(){return $_right_menu_title=$("#headln2c"),$_right_menu_title.find("span[data-main_title]").text().length?$_right_menu_title.find("span[data-main_title]").text():$_right_menu_title.text().length?$_right_menu_title.text().text():"->"}function editor_background_save(e,t){function n(){"undefined"!=typeof __cm_editor_static&&$(".container-fluid > .panel > .panel-body").attr("data-cm-line",__cm_editor_static.getCursor().line+","+__cm_editor_static.getCursor().ch).attr("data-cm-state",$('[data-form="submitter"]').hasClass("btn-warning")&&!$('[data-form="submitter"]').next("button").hasClass("disabled"))}if(1===$('.container-fluid textarea[name="data"],.container-fluid textarea[name="text"],.container-fluid textarea[name="directives"],.container-fluid textarea[name="manual"]').length&&1===$('.container-fluid textarea[name="data"],.container-fluid textarea[name="text"],.container-fluid textarea[name="directives"],.container-fluid textarea[name="manual"]').parents("form").find('input[type="submit"]').length){if(!$(".CodeMirror").length)return;var a=$(document.body),i=".container-fluid > .panel > .panel-body",r=$(i+' textarea[name="data"], '+i+' textarea[name="text"], '+i+' textarea[name="directives"], '+i+' textarea[name="manual"]').parents("form"),s=r.find('button[type="button"]').length?r.find('button[type="button"]'):r.find('input[type="submit"]'),o=$(i+' textarea[name="directives"]').length?"-12px":"0";$(i+" select").val()?$(i+" select").val():$(".container-fluid .table-title").text()?$(".container-fluid .table-title").text():$(".container-fluid .panel-body tt:first").text()?$(".container-fluid .panel-body tt:first").text():$(".container-fluid #headln2c tt:first").text()&&$(".container-fluid #headln2c tt:first").text();$(i+" .ui_reset").remove(),s.parents("table.ui_form_end_buttons").prev("br").remove(),s.parents("table.ui_form_end_buttons").prev("div.table-responsive").attr("style","margin-bottom: -4px !important"),s.replaceWith('            <span class="btn-group" style="margin-top: '+o+'">                <button type="button" class="btn btn-'+(e?"warning":"success")+' btn-34 margined-top-5" data-form="submitter" data-form-onbeforeunload="'+(e?"1":"0")+'"><i class="fa fa-fw fa-floppy-o">&nbsp;&nbsp;</i>'+theme_language("theme_xhred_global_save")+'&nbsp;</button>                <button type="submit" class="btn btn-default btn-34 margined-top-5"><i class="fa fa-fw fa-arrow-circle-o-left">&nbsp;&nbsp;</i>'+theme_language("theme_xhred_global_save_and_close")+"&nbsp;</button>            </span>        ");var _=$(i+' button[type="button"]:not(.ui_form_end_submit)'),l=($(i+' button[type="submit"]:not(.ui_form_end_submit)'),window.__cm_editor_static),c='button[type="submit"]:not(.disabled)',d='button[data-form="submitter"]:not(.disabled)';l.on("change",function(e,t){__cm_editor_static.save(),_.addClass("btn-warning").removeClass("btn-success").attr("data-form-onbeforeunload",1),n()}),a.off("mousedown.cm1").on("mousedown.cm1",i+" .CodeMirror",function(e){n()}).off("keydown.cm1").on("keydown.cm1",function(e){var t=e.keyCode?e.keyCode:e.which,n=$(i+' button[type="button"]:not(.ui_form_end_submit)'),a=n.not(".disabled"),r=$(i+' button[type="submit"]:not(.ui_form_end_submit)'),s=r.not(".disabled");if(n.find(".cspinner_container").length||r.find(".cspinner_container").length)return void e.preventDefault();(13==t||83==t)&&l&&l.hasFocus()&&(83==t?!e.shiftKey&&e.ctrlKey?(e.preventDefault(),a.length&&a.trigger("click")):e.altKey&&e.ctrlKey&&e.shiftKey&&s.length&&(e.preventDefault(),s.trigger("click")):e.ctrlKey&&e.shiftKey&&s.length?s.trigger("click"):e.ctrlKey&&a.length&&a.trigger("click"))}).undelegate(c,"click.cm").on("click.cm",c,function(e){set_onbeforeunload_status(0,0),$(this).addClass("disabled").find(".fa.fa-arrow-circle-o-left").addClass("invisible").after('<span class="cspinner_container" style="position: absolute; width: 18px; height: 14px; display: inline-block;"><span class="cspinner" style="margin-top: -0.5px; margin-left: -28px;"><span class="cspinner-icon dark small"></span></span></span>'),_.attr("data-form-onbeforeunload",0)}).undelegate(d,"click.cm").on("click.cm",d,function(e){e.preventDefault();var t=$(this),n=t.parents("form"),a=n.attr("enctype")&&n.attr("enctype").indexOf("form-data")>-1?0:1,s=a?n.serialize():new FormData(n[0]);$(this).addClass("disabled").find(".fa.fa-floppy-o").addClass("invisible").after('<span class="cspinner_container" style="position: absolute; width: 18px; height: 14px; display: inline-block;"><span class="cspinner" style="margin-top: -0.5px; margin-left: -28px;"><span class="cspinner-icon white small"></span></span></span>'),setTimeout(function(){$.ajax({type:"POST",url:r.attr("action"),data:s,dataType:"text",cache:!1,contentType:!1,processData:!1,success:function(e){return Test.strContains(e,v___page_signin_form)?void(v___available_session=0):(_.removeClass("btn-warning").addClass("btn-success").attr("data-form-onbeforeunload",0),$("button").removeClass("disabled").find(".fa").removeClass("invisible").parent().find(".cspinner_container").remove(),$(i).attr("data-cm-state","false"),set_onbeforeunload_status(0,0),!$(e).find(".panel-body > hr + h3").length||$(e).find(".panel-body .table").length||$(e).find(".panel-body form[action]").length?void 0:(plugins.messenger.post('<i class="fa fa-lg fa-fw fa-exclamation-triangle"></i>'+$(e).find(".panel-body hr + h3").html(),60,"error","magic_save_error"),_.removeClass("btn-success").addClass("btn-warning").attr("data-form-onbeforeunload",1),void $(i).attr("data-cm-state","true")))},error:function(e){}})},300)}),editor_config_search(t)}}function editor_config_search(e){var t="dropdown-editor_config_search",n="[data-search-in-files-button]",a='[data-name="search-in-files"]',i="data-search-in-results-container",r="."+t,s=".panel-body form .select2",o="data-search-in-files-icon-find",_=theme_spinner_small(),l="data-no-results-initial",c="data-search-stats",d=0;setTimeout(function(){function e(){$("["+l+"]").removeClass("showing-results"),$(r).find("span.fa").removeClass("text-warning")}function f(){$("["+l+"]").addClass("showing-results"),$(r).find("span.fa").addClass("text-warning")}function g(e){e?$("["+c+"]").addClass("hidden"):$("["+c+"]").removeClass("hidden")}var u=$(s),m=u.prev("select"),h=m.attr("name"),p=u.parents("form").attr("action");if(u.addClass("z-index-10001"),!(m.find("option").length<=1)){u.parents("form").addClass("text-nowrap"),$(r).length||(u.after('<div data-toggle="tooltip" data-container="body" data-title="'+theme_language("theme_xhred_search_in_file")+'" class="btn-group '+t+'">                                    <button aria-label="'+theme_language("theme_xhred_search_in_file")+'" data-toggle="dropdown" class="btn btn-default dropdown-toggle" aria-expanded="false">                                       <span class="fa fa-md fa-file-find"></span>                                    </button>                                    <ul class="dropdown-menu dropdown-menu-right" role="menu">                                      <li>                                        <button data-clear-search class="btn btn-link btn-transparent-link hidden"><i aria-label="'+theme_language("theme_xhred_global_reset")+'" class="fa fa-times-circle-o"></i></button>                                        <input type="text" name data-name="search-in-files" placeholder="'+theme_language("theme_xhred_find_in_config_files")+'" class="heighter-34">                                      </li>                                      <li><span data-search-in-files-container><span data-search-in-files-button class="btn btn-default pull-right disabled"><i '+o+' class="fa fa-search"></i>'+_+theme_language("theme_xhred_global_find")+"</span></span></li>                                      <li "+l+' role="separator" class="divider"></li>                                      <li '+l+' data-search-in-results class="'+("monokai"==settings_cm_editor_palette?"dark":"light")+'">                                        <span '+i+"></span>                                        <span "+c+'></span>                                      </li>                                    </ul>                                </div>                                <button data-external-detach data-toggle="tooltip" data-container="body" data-title="'+theme_language("theme_xhred_search_in_file_open_external")+'" aria-label="'+theme_language("theme_xhred_search_in_file_open_external")+'" class="btn btn-default">                                   <span class="fa2 fa2-link-external vertical-align-baseline fa-mds"></span>                                </button>                                '),setTimeout(function(){var e=uri_parse_param("editor_search");e&&($(a).val(e).trigger("keydown"),setTimeout(function(){$(n).removeClass("disabled").trigger("click")}))})),$("."+t+" + [data-external-detach"+"]").on("click",function(e){e.preventDefault();if(!$(this).hasClass("disabled")){$(this).addClass("disabled");var t=$(this).parents("form").find("select").val(),n=t.match(/^(.+)\/([^\/]+)$/);n[0]&&n[1]&&n[2]&&(v___page_editor_detached=!0,edit_file(n[2],n[1]))}});var v=$("["+i+"]");v.find("a").on("click",function(e){e.preventDefault();var t=$(this).attr("data-href")+v[0].scrollTop;get_onbeforeunload_status()?get_onbeforeunload_message(!1,{href:t}):get_pjax_content(t)}),$(r).find("li").on("click",function(e){e.stopPropagation()}),$(r).on("show.bs.dropdown",function(){var e=$(s).prev("select").prev('input[type="submit"]'),t=-1,n=$(s).width();n<360&&(t+=$(s)[0].offsetLeft-(e.length?14:11));var a=t+n+$(r).width();$(this).find(".dropdown-menu").css("min-width",a).css("max-width",a).css("width",a);var i=$(this).parents("form").outerWidth(),o=$(this)[0].offsetLeft;if(o<i/3){var _=(i-o)/1.5;$(this).find(".dropdown-menu-right").removeClass("dropdown-menu-right"),$(this).find(".dropdown-menu").css("min-width",_).css("max-width",_).css("width",_)}}),$(r).on("shown.bs.dropdown",function(){$(a).focus().select();var e=uri_parse_param("editor_scroll");e&&0===d&&(e=parseInt(e),$("["+i+"]")[0].scrollTop=e,d++)}),$(r).on("hidden.bs.dropdown",function(){var e=window.__cm_editor_static;e&&e.focus()}),$("[data-clear-search]").on("click",function(e){e.preventDefault(),e.stopPropagation(),$(a).val("").trigger("keydown"),$(a).focus()}),$(a).on("keydown keyup paste cut",function(t){if("keyup"!==t.type||27!==t.keyCode){if(9==t.keyCode||13==t.keyCode||27==t.keyCode){if(t.preventDefault(),27==t.keyCode&&($(a).val().length?$(a).val(""):$(r).trigger("click")),$(n).hasClass("disabled"))return;13==t.keyCode&&$(n).trigger("click")}var s=$("["+i+"]");if(33===t.keyCode||34===t.keyCode||38===t.keyCode||40===t.keyCode){var o=s[0].scrollTop,_=38===t.keyCode?o-45:40===t.keyCode?o+45:34===t.keyCode?o+315:33===t.keyCode?o-315:o;s[0].scrollTop=_}var l=$(this);setTimeout(function(){l.val().length?($(n).removeClass("disabled"),$("[data-clear-search]").removeClass("hidden")):($(n).addClass("disabled"),$("[data-clear-search]").addClass("hidden"),e())})}}),$(n).on("click",function(){if(!$(this).hasClass("disabled")){var e=$(a).val(),t=[];$(s).prev("select").find("option").map(function(e,n){t.push(n.value)}),$("["+o+"]").addClass("hidden"),$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-search-in-file=1&xhr-search-in-file-files="+t.join(",")+"&xhr-search-in-file-string="+e,data:!1,dataType:"json",success:function(t){if(Test.strContains(t,v___page_signin_form))return void(v___available_session=0);var n=$("["+i+"]");if(n.empty(),f(),t.length){var a=String(),s=new RegExp(RegExp.quote($.trim(e)),"gi"),o=[],_=0;g(0),$.each($(t),function(t,n){o.push(n[0]);var i=n[1][0].match(s);_+=i?i.length:0,a+='<span><span class="pull-right"><a data-href="'+p+"?"+h+"="+n[0]+"&editor_line="+n[1][1]+"&editor_search="+e+'&editor_scroll=">Line: '+n[1][1]+'</a></span><span class="pull-left">'+n[0]+"</span><span>"+n[1][0].replace(s,"<kbd>"+$.trim(e)+"</kbd>")+"</span></span>"}).promise().done(function(){n.append(a),n[0].scrollTop=0,n.find("a").on("click",function(e){e.preventDefault();var t=$(this).attr("data-href")+n[0].scrollTop;get_onbeforeunload_status()?get_onbeforeunload_message(!1,{href:t}):get_pjax_content(t)});var t,i=jQuery.unique(o).length;t=theme_language(1===o.length&&1===_?"theme_xhred_find_in_config_files_result_found_single":1===o.length&&_>1?"theme_xhred_find_in_config_files_result_found_multi":"theme_xhred_find_in_config_files_results_found"),t=t.replace("$1",_).replace("$2",i).replace("$3","<kbd>"+e+"</kbd>"),
$("["+c+"]").html(t)})}else n.append("<span data-no-results>"+theme_language("theme_xhred_filemanager_search_no_matches").replace(".","")+"</span>"),g(1),$(r).find("span.fa").removeClass("text-warning")},complete:function(){$("["+o+"]").removeClass("hidden")},error:function(){}})}})}})}function page_resized(){plugins.navigation.lock(),$(".mobile-menu-toggler").hasClass("selected")||"1"==$("html").attr("data-navigation-collapsed")||($("aside").addClass("hidden-xs"),$("aside").css("transform","translate("+settings_leftmenu_width+"px, 0px)"),$(".switch-toggle").css("display","table"),"function"==typeof jQuery().transition&&$(".__logo")&&!$(".mobile-menu-toggler:visible").length?$(".__logo").transition({y:"-140px"},700,function(){}):$(".__logo")&&$(".__logo").css("transform","translate(0px, 0px)")),plugins.slider.test();var e=$('input[name="settings_leftmenu_width"]');if($(".mobile-menu-toggler:visible").length?e.prop("disabled",!0):e.prop("disabled",!1),v___location_path&&v___location_path.indexOf("/webmin/edit_themes.cgi")>-1){var t=!(!settings_navigation_always_collapse&&!window.matchMedia("(max-width: 1365px)").matches),n="false"!=$('input[name="settings_side_slider_enabled"]:checked').val();t&&!$.browser.mobile&&$('input[name="settings_side_slider_fixed"][value="false"], input[name="settings_side_slider_fixed_toggle"][value="false"]').trigger("click"),n&&$('input[name="settings_side_slider_fixed"], input[name="settings_side_slider_fixed_toggle"]').prop("disabled",t)}}function theme_config_store(){if("0"==v___user_level){var e=core.get_global_vars(["settings_"],1);$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-settings=1&save=1",data:e,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0)},error:function(){}})}}function theme_config_controls(e){var t=$("#atsave, #save_user");e?(set_onbeforeunload_status(1,0),t.addClass("btn-warning")):(set_onbeforeunload_status(0,0),t.removeClass("btn-warning"))}function theme_washout(e){var t=$("aside, .jsPanel, .mobile-menu-toggler, .right-side-tabs, .right-side-tabs-toggler, .container-fluid"),n="pointer-events-none bg-filter-blur2-grayscale100-opacity75";e?t.removeClass(n):t.addClass(n)}function theme_countdown_animated(e,t){if(!e)return'<div class="countdown-animated-circle"><div class="number"></div><svg><circle r="18" cx="20" cy="20"></circle></svg></div>';var n=e.find(".countdown-animated-circle > .number")[0],a=t||5,i=a;if(n){n.textContent=i;var r=setInterval(function(){i=--i<=0?clearInterval(r):i,n.textContent=i},1e3)}}function theme_config_check(){this.reloadFn=function(){vars.pjax_cancel=1;var e=bootbox.alert({message:theme_language("theme_xhred_reload_notification"),className:"theme_reload_notice bootbox-centered font-medium warning"});e.init(function(){var e=$(".theme_reload_notice").find(".bootbox-body");e.append(theme_countdown_animated()),theme_countdown_animated(e),theme_washout()}),e.on("escape.close.bb",function(e){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),theme_reload()}),setTimeout(function(){theme_reload()},4600)};var e=location.pathname.indexOf("/webmin/edit_themes.cgi")>-1,t=location.pathname.indexOf("/settings-user.cgi")>-1,n="settings"+(t?"_"+get_server_data("user"):"")+".js",a=0,i=["settings_font_family","settings_navigation_color","settings_enable_container_offset","settings_contrast_mode","settings_usermin_default_module","settings_document_title","settings_right_page_hide_persistent_vscroll","settings_side_slider_enabled","settings_side_slider_fixed_toggle","settings_side_slider_sysinfo_enabled","settings_side_slider_notifications_enabled","settings_side_slider_favorites_enabled","settings_side_slider_palette","settings_navigation_always_collapse","settings_leftmenu_width","settings_leftmenu_user_html"];if(v___location_path&&(e||t)){var r=core.get_global_vars(["config_","settings"]);$('script[src*="'+n+'"]').length?$.getScript(v___server_js_path+"/"+n,function(){for(var e=core.get_global_vars(["config_","settings"]),t=0;t<i.length;t++)r[i[t]]!=e[i[t]]&&(a=1);a?this.reloadFn():page_resized()}).fail(function(e){"canceled"!==e.statusText&&connection_error(e,1)}):this.reloadFn()}}function theme_config_update(){$.each($('#atsettings .ui_form, body[data-uri*="settings-user.cgi"] form[action*="save_config.cgi"]').serializeArray(),function(e,t){if("true"==t.value||"false"==t.value){if("true"==t.value)var n=!0;else if("false"==t.value)var n=!1}else var n=t.value;window[t.name]=Test.numeric(n)?n&&n.length>16?n:parseFloat(n):n})}function theme_window_focused(){core.curModule("package-updates")&&$("a.btn-tiny + b.btn-success + a.btn-tiny").length&&$(".dataTables_wrapper").length&&!get_onbeforeunload_status()&&(vars.allow_ui_features=0,page_refresh())}function theme_download_form(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"backup_is_being_prepared",n=arguments.length>1&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>1&&void 0!==arguments[3]?arguments[3]:0,i=e.serialize(),r=e.attr("action"),s=e.attr("method");setTimeout(function(){theme.download(r,i,s,a)},3300),theme_message_and_unlock("fa-download-cloud",t,n)}function theme_download_link(e){return v___module.includes("webminlog")&&Test.arrIntersect(["webminlog.csv"],e.url)||v___module.includes("software")&&Test.arrIntersect(["view.cgi"],e.url)||v___module.includes("mysql")&&Test.arrIntersect(["download.cgi"],e.url)||v___module.includes("postgresql")&&Test.arrIntersect(["download.cgi"],e.url)||v___module.includes("postfix")&&Test.arrIntersect(["detach_queue.cgi"],e.url)||v___module.includes("mailbox")&&Test.arrIntersect(["detach.cgi","detachall.cgi","slideshow.cgi"],e.url)||"view_mail.cgi"===v___location_file&&"1"==uri_parse_param("raw",e.url)?(theme_open_new_tab(e.url),1):0}function theme_unbind(e,t){$(e).off(t)}function bind_sameorigin(e){1===e?$.each($('aside ul.navigation a[href^="http"], aside ul.navigation a[href^="https"], aside ul.navigation a[href^="ftp"], aside ul.navigation a[href^="ftps"], aside ul.navigation a[data-href^="http"], aside ul.navigation a[data-href^="https"], aside ul.navigation a[data-href^="ftp"], aside ul.navigation a[data-href^="ftps"]'),function(){$(this).removeClass("navigation_module_trigger").parents("li").addClass("navigation_external"),$(this).attr("target","_blank"),$(this).attr("href",$(this).data("href")),$(this).removeAttr("data-href")}):$.each($('.container-fluid a[href^="http"], .container-fluid a[href^="https"], .container-fluid a[href^="ftp"], .container-fluid a[href^="ftps"]'),function(){core.linkSameOrigin($(this))||$(this).attr("target","_blank")})}function get_default_content(){if(!get_onbeforeunload_status()){if(v___theme_processing_default_content)return void setTimeout(function(){v___theme_processing_default_content&&(v___theme_processing_default_content=0)},1001);v___theme_processing_default_content=1,$("body").append('<span id="____switch"></span>'),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-default=1",data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);$("#____switch").html(e),$____switch=$("#____switch").text();var t=v___location_prefix+(3==v___user_level&&core.moduleAvailable("mailbox")&&$t_uri_webmail?"/mailbox/index.cgi?id=INBOX":3==v___user_level?"/"+(settings_usermin_default_module?settings_usermin_default_module:"sysinfo.cgi"):("/"==$____switch.substring(0,1)?"":"/")+$____switch);check_bundle(t),get_pjax_content(t,["success","v___theme_processing_default_content = 0"]),$("#____switch").remove()}})}}function get_default_virtualmin_content(e,t){if(!get_onbeforeunload_status()||t){if(v___theme_processing_default_content)return void setTimeout(function(){v___theme_processing_default_content&&(v___theme_processing_default_content=0)},1001);v___theme_processing_default_content=1;var n,a="/virtual-server";if(n=1==get_server_data("initial-wizard")&&v___module!==v___module_file_manager?a+"/wizard.cgi":e!==!1?a+"/summary_domain.cgi?dom="+e:"sysinfo.cgi"==settings_right_virtualmin_default||""==settings_right_virtualmin_default?"/sysinfo.cgi":"index.cgi"==settings_right_virtualmin_default?a+"/index.cgi":a+"/summary_domain.cgi?dom="+settings_right_virtualmin_default,t)return v___location_prefix+n;get_pjax_content(v___location_prefix+n,["success","v___theme_processing_default_content = 0"])}}function get_default_cloudmin_content(e,t){if(!get_onbeforeunload_status()||t){if(v___theme_processing_default_content)return void setTimeout(function(){v___theme_processing_default_content&&(v___theme_processing_default_content=0)},1001);v___theme_processing_default_content=1;var n;if(n=e===!1||settings_right_cloudmin_default||"0"==settings_right_cloudmin_default?"sysinfo.cgi"==settings_right_cloudmin_default||""==settings_right_cloudmin_default&&"0"!=settings_right_cloudmin_default?"sysinfo.cgi":"index.cgi"==settings_right_cloudmin_default?"server-manager/index.cgi":"server-manager/edit_serv.cgi?id="+settings_right_cloudmin_default:"server-manager/edit_serv.cgi?id="+e,t)return v___location_prefix+"/"+n;get_pjax_content(v___location_prefix+"/"+n,["success","v___theme_processing_default_content = 0"])}}function get_navigation_and_content(e,t,n){get_onbeforeunload_status()||("virtualmin"===e?(plugins.navigation.get.virtualmin(!1),1!=settings_right_reload&&1!==t||1===n||get_default_virtualmin_content(!1)):"cloudmin"===e?(plugins.navigation.get.cloudmin(!1),1!=settings_right_reload&&1!==t||1===n||get_default_cloudmin_content(!1)):(0==plugins.navigation.switch.dashboard.get()&&plugins.navigation.get.webmin(e),1!=settings_right_reload&&1!==t||1===n||get_default_content()))}function editor_html_toolbar(e){var t;return[{name:"styles",items:["Font","FontSize","Format"]},{name:"basicstyles",items:["Bold","Italic","Underline","Strike","Subscript","Superscript"]},{name:"colors",items:["TextColor","BGColor"]},{name:"links",items:["Link","Unlink","Anchor"]},{name:"paragraph",items:["JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock","-","NumberedList","BulletedList","-","Blockquote","-","Outdent","Indent","-","BidiLtr","BidiRtl","-","RemoveFormat"]}],t=[{name:"styles",items:["Font","FontSize","Format"]},{name:"basicstyles",items:["Bold","Italic","Underline","Strike","Subscript","Superscript"]},{name:"colors",items:["TextColor","BGColor"]},{name:"links",items:["Link","Unlink","Anchor"]},{name:"paragraph",items:["JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock","-","NumberedList","BulletedList","-","Blockquote","-","Outdent","Indent","-","BidiLtr","BidiRtl","-","RemoveFormat"]}],"basic"===e?t:[{name:"document",items:["Source","-","Preview","Print"]},{name:"clipboard",items:["Undo","Redo"]},{name:"editing",items:["Find","-","Emojione"]},{name:"links",items:["Link","Unlink","Anchor"]},{name:"insert",items:["InsertPre","CreateDiv","-","Table","base64image","HorizontalRule","PageBreak","Iframe"]},{name:"forms",items:["Form","Checkbox","Radio","TextField","Textarea","Select","Button","ImageButton","HiddenField"]},{name:"tools",items:["ShowBlocks"]},"/"].concat(t)}function edit_files_cascade(e,t,n){var a=$(".jsPanel").filter(function(){return"-9999px"!==$(this).css("left")}),i=a.length,r=$(window).width(),s=$(window).height(),o=r/i,_=s/i,l=$(".jsPanel-controlbar .jsPanel-btn-align"),c=vars.jspanels_reversed?$(a).toArray().reverse():a;if(e)return void(1==i?l.addClass("disabled"):l.removeClass("disabled"));$.each(c,function(e,a){if("-9999px"!==$(this).css("left")){var l=parseInt($(this).attr("data-uid").replace("jsp_",""));parseInt($(t).attr("id").replace("jsPanel-",""));if(1===n){var c=r-20,d=_-(e+1==i?20:5);window["jsp_"+l].resize(c,d).reposition("left-top 10 "+(10+_*e))}else{var c=o-(e+1==i?20:5),d=s-20;window["jsp_"+l].resize(c,d).reposition("left-top "+(10+o*e)+" 10")}}}),1===vars.jspanels_reversed?vars.jspanels_reversed=0:vars.jspanels_reversed=1,vars.jspanels_reversed=0}function edit_file(external_file_name,external_file_name_path,external_callback){if(core.moduleAvailable(v___module_file_manager)){var ____jsPanelId="jsp_"+parseInt(1e18*Math.random()),___target,___file_name,___file_name_path,__file_to_open,htmlDataAttr="htmledit",file_editor_save_button_str="_filemanager_file_editor_save",html_editor_target,is_html_editor;if(external_file_name&&external_file_name_path){var external_file_name_initial=external_file_name,external_file_name_path_initial=external_file_name_path;if(external_file_name.includes("/")&&(external_location_parts=external_file_name.split("/"),external_file_name=external_location_parts.slice(-1)[0],external_location_parts.pop(),external_file_name_path=external_location_parts.join("/"),external_file_name_initial.startsWith("/")||(external_file_name_path=external_file_name_path_initial+"/"+external_file_name_path)),"object"!=typeof jsPanel)return void $.getScript(v___location_prefix+"/unauthenticated/js/jquery.jspanel."+v___source_type+".js?"+v___theme_version_plain,function(){$('head link[rel="stylesheet"]:first').before('<link href="'+v___location_prefix+"/unauthenticated/css/jquery.jspanel."+v___source_type+".css?"+v___theme_version_plain+'" rel="stylesheet" type="text/css">'),progress.end(),edit_file(external_file_name,external_file_name_path,external_callback)}).fail(function(e){"canceled"!==e.statusText&&connection_error(e,1)});___file_name=Convert.uriEncodeComponent(external_file_name),___file_name_path=external_file_name_path}else ___target=$($v__fm__container_fluid_form+" table tbody tr.m-active").find("a[data-filemin-link]"),___file_name=Convert.uriEncodeComponent(Convert.htmlUnEscape(___target.attr("data-filemin-link"))),___file_name_path=$($v__fm__container_fluid+" #path").val(),html_editor_target=___target.parent("td").parent("tr"),is_html_editor=1==html_editor_target.data("htmledit")?1:0,html_editor_target.removeData("htmledit");__file_to_open=v___location_prefix+"/"+v___module_file_manager+"/edit_file.cgi?file="+___file_name+"&path="+___file_name_path;var __f___es_adj=function(e,t){var n=e.find("option:selected").text(),a=$("<div data-encoding_manual-"+t+' class="invisible inline-block">').html(n);$("body").append(a);var i=$("body").find("div[data-encoding_manual-"+t+"]"),r=i.width();e.css("width",r+13),i.remove()},__f___cm_resize=function(e){var t=parseInt($(e).attr("id").replace("jsPanel-",""))+1;void 0!==window["__hm_editor_html_editor_"+t]&&CKEDITOR.instances["__hm_editor_html_editor_"+t].resize("100%",parseInt($(e).find(".jsPanel-content").css("height")),!1),void 0!==window["__cm_editor_"+t]&&window["__cm_editor_"+t].setSize(e.content.css("width"),e.content.css("height"))},manipulate_file_name=function(e,t){var n=e.find('form input[name="file"]'),a=e.find(".jsPanel-title strong"),i=a.text();if(t){i=i.replace(n.val(),t),a.attr("title",i).text(i),n.val(t);var r=e.find("strong").text(),s=r.match(/([^]+)\s\(([^)]+)\)/),o=s[1],_=s[2],l=_+"/"+o;plugins.favorites.detect(e,l)}return Convert.uriEncodeComponent(n.val())},save_file_as=function(e){var t=e.find('form input[name="file"]'),n=t.val();bootbox.prompt({closeButton:!1,title:'<i class="fa fa2 fa-fw fa2-save-as font-size-80p bootbox-o__f_m-save-prompt">&nbsp;&nbsp;</i> <strong class="font-size-90p">'+theme_language("theme_xhred_editor_save_file_as")+"</strong>",value:n,buttons:{confirm:{label:'&nbsp;<i class="fa fa-fw fa-check-circle">&nbsp;</i> '+theme_language("theme_xhred_global_save_as")+"&nbsp;&nbsp;",className:"btn-primary vertical-align-top disabled _btn-submit-rename"},cancel:{label:"&nbsp;&nbsp;"+theme_language("theme_xhred_global_cancel")+"&nbsp;&nbsp;",className:"btn-default vertical-align-top pull-left"}},callback:function(t){t&&t!=n&&(t=t.replace(/..\//g,""),t=t.replace(/\//g,""),manipulate_file_name(e,t)),setTimeout(function(){var a=window["__cm_editor_"+(parseInt(e.attr("id").replace("jsPanel-",""))+1)];a&&a.focus(),t&&t!=n&&(e.find("._filemanager_file_editor_save").addClass("text-danger"),set_onbeforeunload_status_native(1))},100)}}).on("shown.bs.modal",function(e){setTimeout(function(){var t=$(e.target),n=t.find("input"),a=n.val(),i=t.find("._btn-submit-rename");n[0].focus(),n.on("keydown input",function(e){a!==$(this).val()?i.removeClass("disabled"):i.addClass("disabled"),13===(e.keyCode?e.keyCode:e.which)&&a===$(this).val()&&(e.preventDefault(),e.stopImmediatePropagation())})},100)})},jsPaneler=function(){window[____jsPanelId]=$.jsPanel({contentAjax:{url:__file_to_open,dataType:"text",autoload:!1,fail:function(e){"canceled"!==e.statusText&&connection_error(e,1)},done:function(w,textStatus,jqXHR,jsPanel){var ___file_name_path_local=___file_name_path,$is_non_utf8="UTF-8"!=get_server_data("charset"),x=$(w).find(".ui_form"),the_path_x=___file_name_path,jailed=external_file_name||2!=get_access_level()?0:1,v="<strong data-file-container><span data-file-name>"+Convert.htmlEscape(Convert.uriDecodeComponent(___file_name))+"</span> (<span data-file-path>"+Convert.htmlEscape(Convert.uriDecodeComponent(the_path_x?jailed?v___server_userhome+the_path_x:the_path_x:jailed?v___server_userhome:"/"))+"</span>)</strong>",jsPanelContainer_this_initial=this,jsPanelContainer=$(jsPanelContainer_this_initial),jsPanelId=parseInt(jsPanel.attr("id").replace("jsPanel-",""))+1;jsPanel.attr("data-uid",____jsPanelId),$(x).find("textarea").length||(x=$(w).find('form[action="save_file.cgi"]').append($(w).find("#data").removeAttr("id")).prepend($(w).find("#file").removeAttr("id")).prepend($(w).find("#path").removeAttr("id"))),jsPanel.headerTitle(v),jsPanelContainer.data("jspuid",____jsPanelId),is_html_editor||jsPanelContainer.find(".jsPanel-hdr h3").prepend('<i class="fa fa-fw fa-lg fa-edit __helper___ pointer-events-none">&nbsp;&nbsp;</i>').find("strong").attr("title",v.replace(/<\/?[^>]+(>|$)/g,"")).after('<button aria-label="'+theme_language("theme_xhred_favorites_add")+'" class="fa fa-fw fa-inverse fa-star-o text-lighter favorites-editor" data-delay=\'{"show":"600", "hide":"30"}\'></button>&nbsp;'),jsPanelContainer.find(".jsPanel-content").html(x);var file_name=Convert.htmlEscape(jsPanelContainer.find(".jsPanel-hdr h3").find("strong").text()),file_name_arr=file_name.match(/([^]+)\s\(([^)]+)\)/),file__name=file_name_arr[1],file__path=file_name_arr[2],_filename=file__path+"/"+file__name;if(plugins.favorites.detect(jsPanelContainer,_filename),external_file_name&&external_callback)if("string"==typeof external_callback){var caller=external_callback.includes(".")?eval(external_callback):window[external_callback];caller.call()}else external_callback.forEach(function(r){var caller=r.call.includes(".")?eval(r.call):window[r.call];r.params?caller.apply(null,r.params):caller.call()});var $this=jsPanelContainer.find(".jsPanel-content"),A=$this.find(".ui_form_end_buttons tr td span:first-child input"),z=$this.find(".ui_form_end_buttons tr td span:nth-child(2) input");$this.find(".ui_form_end_buttons").remove(),jsPanelContainer.find(".jsPanel-hdr .jsPanel-controlbar").prepend('                <div class="jsPanel-btn jsPanel-btn-save _filemanager_file_editor_save" title="'+theme_language("theme_xhred_global_save")+'" aria-label="'+theme_language("theme_xhred_global_save")+'"><i class="fa fa-fw fa-save"></i></div>                <div class="dropdown">                  <span aria-label="'+theme_language("theme_xhred_global_menu")+'" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">                    <i class="fa fa-menu"></i>                  </span>                  <ul class="dropdown-menu dropdown-menu-right small">                    <li class="jsPanel-btn-align vertical"><a class="ddm-link" href="javascript:;"><i class="fa fa-align-horizontal-middle pull-left margined-top-2"></i>'+theme_language("theme_xhred_filemanager_editor_align_panels_vertically")+'</a></li>                    <li class="jsPanel-btn-align hidden horizontal"><a class="ddm-link" href="javascript:;"><i class="fa fa-align-vertical-middle pull-left margined-top-2"></i>'+theme_language("theme_xhred_filemanager_editor_align_panels_horizontally")+'</a></li>                    <li class="jsPanel-btn-togglewrap'+(is_html_editor?" hidden":"")+'"><a class="ddm-link" title="(Ctrl+Alt+W)" href="javascript:;"><i class="fa fa-wrap-text pull-left margined-top-2"></i>'+theme_language("theme_xhred_filemanager_editor_toggle_soft_wrap")+'</a></li>                    <li role="separator" class="divider'+(is_html_editor?" hidden":"")+'"></li>                    <li class="jsPanel-btn-save-as"><a class="ddm-link" title="(Ctrl+Shift+S)" href="javascript:;"><i class="fa fa2 fa2-save-as pull-left margined-top-2"></i>'+theme_language("theme_xhred_global_save_as")+'...</a></li>                    <li role="separator" class="divider"></li>                    '+($is_non_utf8?"":'<li class="jsPanel-btn-content-refresh hidden"><a class="ddm-link ddm-link-refresh" title="(Alt+S)" href="javascript:;"><i class="fa fa-refresh pull-left margined-top-3"></i>'+theme_language("theme_xhred_filemanager_editor_refresh_content")+"</a></li>")+"                    "+($is_non_utf8?"":'<li class="jsPanel-btn-content-revert"><a class="ddm-link ddm-link-revert" title="(Ctrl+Alt+R)" href="javascript:;"><i class="fa fa-1_25x fa-refresh-mdi fa-flip-horizontal pull-left margined-top-3 margined-left--2 line-height-10"></i>'+theme_language("theme_xhred_filemanager_editor_revert_content")+"</a></li>")+'                    <li class="__helper___tr'+(is_html_editor?" hidden":"")+'"><a class="ddm-link" href="javascript:;">'+theme_language("theme_xhred_global_help")+"</a></li>                  </ul>                </div>            "),jsPanelContainer.find(".jsPanel-hdr .jsPanel-controlbar .__helper___tr").click(function(e){var t=jsPanelContainer.find(".jsPanel-hdr .fa-edit");t.removeClass("pointer-events-none").trigger("click"),t.removeClass("pointer-events-none")}),jsPanelContainer.find(".jsPanel-hdr .jsPanel-controlbar .jsPanel-btn-save-as").click(function(){save_file_as(jsPanelContainer)}),jsPanelContainer.find(".jsPanel-hdr .jsPanel-controlbar .jsPanel-btn-align:not(.disabled)").click(function(e){$(this).hasClass("disabled")||edit_files_cascade(0,jsPanelContainer_this_initial,$(this).hasClass("horizontal")?1:0)}),edit_files_cascade(1,jsPanelContainer_this_initial,0);var $__f__enc=$this.find("form").attr("data-encoding"),__cm_editor_encoding_item=v___server_hostname+"-__cm_editor_encoding",$is_encoding=!!$__f__enc,$__f__enc=$__f__enc?$__f__enc:localStorage.getItem(__cm_editor_encoding_item)?"not_detected":"UTF-8",select_options="",encodings={"UTF-8":"utf-8","ISO-8859-1":"iso-8859-1 (cp1252)&#x200E;","windows-1252":"cp1252 (iso-8859-1)&#x200E;","windows-1250":"cp1250","windows-1251":"cp1251","windows-1253":"cp1253","windows-1254":"cp1254","windows-1255":"cp1255","windows-1256":"cp1256","ISO-8859-2":"iso-8859-2","ISO-8859-7":"iso-8859-7","ISO-8859-9":"iso-8859-9","ISO-8859-15":"iso-8859-15","US-ASCII":"ascii","x-IBM874":"cp874",IBM866:"cp866","KOI8-R":"koi8","EUC-KR":"EUC encoding, Korean","EUC-JP":"EUC encoding, Japanese",Shift_JIS:"Shift-JIS, Japanese"};encodings.hasOwnProperty($__f__enc)||"not_detected"==$__f__enc||(select_options+='<option value="'+$__f__enc+'" selected>'+$__f__enc.toLowerCase()+"</option>"),$.each(encodings,function(e,t){select_options+='<option value="'+e+'"'+($__f__enc.toLowerCase()!=e.toLowerCase()&&e?"":" selected")+">"+t+"</option>"}),jsPanelContainer.find(".jsPanel-hdr .jsPanel-controlbar").prepend('<div data-encoding-label class="jsPanel-btn text-light cursor-default"><label class="select-styled select-styled-small select-styled-no-border select-styled-no-icon'+($is_non_utf8?" pointer-events-none hidden":"")+'"> <select required data-encoding dir="rtl">'+select_options+"</select> </label></div>");var __data_select_encoding=jsPanelContainer.find("select[data-encoding]"),__data_encoding=__data_select_encoding.val(),__cm_editor_save_btn=jsPanelContainer.find("._filemanager_file_editor_save");!is_html_editor&&jsPanelContainer.find(".jsPanel-hdr .jsPanel-controlbar").prepend('<div data-mode-select class="jsPanel-btn text-light cursor-default"><label class="select-styled select-styled-small select-styled-no-border select-styled-no-icon">'+editor_modes()+"</label></div>"),__f___es_adj(__data_select_encoding,jsPanelId),__data_encoding==Object.keys(encodings)[2]&&__data_select_encoding.val(Object.keys(encodings)[1]),__data_select_encoding.on("change changed",function(e){if(!$is_non_utf8){if(__cm_editor_save_btn.hasClass("text-danger")&&__cm_editor_save_btn.hasClass("__locked__")&&"changed"!==e.type)return void("changed"===e.type&&__cm_editor_save_btn.removeClass("text-danger __locked__"));var t=$(this).val(),n=___file_name_path_local+"/"+manipulate_file_name(jsPanelContainer);__f___es_adj($(this),jsPanelId),!$is_encoding&&localStorage.setItem(__cm_editor_encoding_item,t),external_file_name||"2"!=get_access_level()||(n=v___server_userhome+n),$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-encoding_convert=1&xhr-encoding_convert_name="+t+"&xhr-encoding_convert_file="+n,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);void 0!==window["__cm_editor_"+jsPanelId]&&window["__cm_editor_"+jsPanelId].setValue(e),"object"==typeof CKEDITOR&&void 0!==window["__hm_editor_html_editor_"+jsPanelId]&&CKEDITOR.instances["__hm_editor_html_editor_"+jsPanelId].setData(e),__cm_editor_save_btn.removeClass("text-danger __locked__"),__data_select_encoding.removeClass("pointer-events-none"),set_onbeforeunload_status_native($("body").find("._filemanager_file_editor_save.text-danger").length)},error:function(){}})}});var __cm_editor_encoding=localStorage.getItem(__cm_editor_encoding_item);$is_non_utf8||$is_encoding||!__cm_editor_encoding||__cm_editor_encoding&&encodings.hasOwnProperty(__cm_editor_encoding)&&__data_select_encoding.val(__cm_editor_encoding).trigger("change");var theHeight=parseInt($this.css("height")),theTextarea=$this.find("textarea");is_html_editor?editor_html_init([theTextarea,theHeight,!0,"html_editor_"+jsPanelId]):editor_init(theTextarea,v,[null,theHeight],jsPanelId,!1,!0),jsPanelContainer.addClass("jspShown").css("opacity",0),jsPanelContainer.animate({opacity:1},400,function(){is_html_editor||(window["__cm_editor_"+jsPanelId].focus(),jsPanelContainer.find(".jsPanel-btn-togglewrap").click(function(e){var t=window["__cm_editor_"+jsPanelId];t.setOption("lineWrapping",!t.getOption("lineWrapping"))}));var e=document.getElementById("jsPanel-"+(jsPanelId-1));$(e).find(".jsPanel-content")[0].addEventListener("onresize",function(){__f___cm_resize(jsPanelContainer_this_initial)})}),jsPanelContainer.click(function(){var e=parseInt($(this).attr("data-uid").replace("jsp_",""));window["jsp_"+e].front()}),jsPanelContainer.find(".jsPanel-hdr .jsPanel-controlbar [data-encoding-label], .jsPanel-hdr .jsPanel-controlbar .dropdown, .jsPanel-hdr .jsPanel-controlbar .jsPanel-btn").each(function(e,t){var n="title",a=".jsPanel-btn-",i="theme_xhred_global_";$(this).is(a+"maximize")&&$(this).attr(n,theme_language(i+"maximize")),$(this).is(a+"minimize")&&$(this).attr(n,theme_language(i+"minimize")),$(this).is(a+"normalize")&&$(this).attr(n,theme_language(i+"normalize")),$(this).is(a+"close")&&$(this).attr(n,theme_language(i+"close")),$(this).is(a+"save")&&$(this).attr(n,theme_language(i+"save")),$(this).is("[data-encoding-label]")&&$(this).attr(n,theme_language(i+"set_encoding"))}),__data_select_encoding.click(function(e){if(1===$(this).data("reverting"))return $(this).data("reverting",0),void plugins.messenger.post('<i class="fa fa-1_50x fa-refresh-mdi fa-flip-horizontal line-height-12"></i>'+theme_language("theme_xhred_filemanager_editor_reverting_content")+" "+theme_language("theme_xhred_global_please_wait"),2,"warning","revertingFileDone");void 0!==e.originalEvent?!$is_non_utf8&&$(this).hasClass("pointer-events-none")&&plugins.messenger.post('<i class="fa fa-lg fa-fw fa-exclamation-triangle"></i>'+theme_language("theme_xhred_filemanager_save_to_change_encoding"),4,"warning","savingFileDone"):$(this).hasClass("pointer-events-none")?plugins.messenger.post('<i class="fa fa-lg fa-fw fa-exclamation-triangle"></i>'+theme_language("theme_xhred_filemanager_save_to_refresh_content"),4,"warning","savingFileDone"):plugins.messenger.post('<i class="fa fa-lg fa-fw fa-refresh"></i>'+theme_language("theme_xhred_filemanager_save_to_refresh_content_proc")+" "+theme_language("theme_xhred_global_please_wait"),2,"info","refreshingFileDone")}),jsPanelContainer.find(".jsPanel-hdr .jsPanel-controlbar .jsPanel-btn-content-refresh").click(function(){__data_select_encoding.val(__data_select_encoding.val()).trigger("change").trigger("click")}),jsPanelContainer.find(".jsPanel-hdr .jsPanel-controlbar .jsPanel-btn-content-revert").click(function(){__data_select_encoding.data("reverting",1),__data_select_encoding.val(__data_select_encoding.val()).trigger("changed").trigger("click")});var keydown_editor="keydown.feditor"+jsPanelId,keyup_editor="keyup.feditor"+jsPanelId,$$body=$("body");$$body.on(keydown_editor,function(e){jsPanelContainer_this_initial.find(".dropdown").hasClass("open")&&(e.altKey&&!e.shiftKey&&(e.preventDefault(),jsPanelContainer.find(".jsPanel-btn-align.vertical").addClass("hidden"),jsPanelContainer.find(".jsPanel-btn-align.horizontal").removeClass("hidden")),e.shiftKey&&(e.preventDefault(),vars.jspanels_reversed=1))}),$$body.on(keyup_editor,function(e){jsPanelContainer_this_initial.find(".dropdown").hasClass("open")&&(e.preventDefault(),jsPanelContainer.find(".jsPanel-btn-align.horizontal").addClass("hidden"),jsPanelContainer.find(".jsPanel-btn-align.vertical").removeClass("hidden")),e.shiftKey||(e.preventDefault(),vars.jspanels_reversed=0)}),jsPanelContainer.on(keydown_editor,function(e){var t=e.keyCode?e.keyCode:e.which,n=$(":focus").parents(".jsPanel");if(27===t){var a=this;void 0!==a.close_timeout?a.close_timeout+=1:a.close_timeout=0,setTimeout(function(){a.close_timeout=0},320),a.close_timeout>=2&&($(".bootbox.modal").length||(e.ctrlKey?jsPanelContainer_this_initial.minimize():jsPanelContainer_this_initial.close()))}var i=function(e){n.find("._filemanager_file_editor_save").trigger("click"),e&&n.find(".jsPanel-btn-close").trigger("click")};13!=t&&83!=t||!n.is(".jsPanel")||(83==t?!e.shiftKey&&e.ctrlKey?(e.preventDefault(),i()):!e.altKey&&e.ctrlKey&&e.shiftKey?(e.preventDefault(),save_file_as($(this))):e.altKey&&e.ctrlKey&&e.shiftKey&&(e.preventDefault(),i(1)):e.ctrlKey&&e.shiftKey?i(1):e.ctrlKey&&i()),82!==t||!e.altKey||e.ctrlKey||e.shiftKey||e.metaKey||(e.preventDefault(),n.find(".ddm-link-refresh").trigger("click")),82===t&&e.altKey&&e.ctrlKey&&!e.shiftKey&&!e.metaKey&&(e.preventDefault(),n.find(".ddm-link-revert").trigger("click"))}),jsPanelContainer_this_initial.find(".dropdown").on("show.bs.dropdown",function(e){jsPanelContainer.find(".jsPanel-btn-align.horizontal").addClass("hidden"),jsPanelContainer.find(".jsPanel-btn-align.vertical").removeClass("hidden")}),__cm_editor_save_btn.click(function(e){$(this).find("i").replaceWith(theme_spinner_small()),$(this).removeClass("text-danger __locked__"),__data_select_encoding.removeClass("pointer-events-none"),jsPanelContainer.find('form[action="save_file.cgi"]').submit()});var u=function(){var e=__cm_editor_save_btn;e.find(".cspinner").remove(),e.find("i").remove(),e.prepend('<i class="fa fa-fw fa-save"></i>')};if(jsPanelContainer.find('form[action="save_file.cgi"]').submit(function(e){e.preventDefault(),e.stopPropagation();var t=Convert.htmlEscape(jsPanelContainer.find(".jsPanel-title strong").text());plugins.messenger.post('<i class="fa fa-lg fa-fw fa-save"></i>'+theme_language("theme_xhred_filemanager_saving_file").replace("%value",t)+" "+theme_language("theme_xhred_global_please_wait"),5,"info","savingFileDone")
;var n=jsPanelContainer.find("select[data-encoding]").val(),a=jsPanelContainer.find('form[action="save_file.cgi"] input:not([name="path"]), form[action="save_file.cgi"] textarea').serialize();a=a+"&path="+___file_name_path_local,n&&(a=a+"&encoding="+n),$.ajax({type:"POST",url:v___location_prefix+"/"+v___module_file_manager+"/save_file.cgi",data:a,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);var n=jsPanelContainer.find("._filemanager_file_editor_save .cspinner");if(!$(e).find("textarea#data").length){var a=$(e).find(".panel-body h3").html();if(Test.strContains(a,":")){var i=a.split(":");a="<strong>"+i.pop()+'</strong>: <span class="font-weight-normal">'+i.join(":")+"</span>"}return plugins.messenger.post('<i class="fa fa-lg fa-fw fa-exclamation-triangle"></i>'+a,10,"error","savingFileError"),1===n.parent(".btn").index()&&theme_modal_dismiss(),void u()}plugins.messenger.post('<i class="fa fa-lg fa-fw fa-check-circle"></i>'+theme_language("theme_xhred_filemanager_file_saved").replace("%value",t),1.5,"success","savingFileDone"),u();var r=$("body").find("._filemanager_file_editor_save.text-danger").length,s=$("body").find('[data-form="submitter"]').hasClass("btn-warning");r||s||set_onbeforeunload_status(0,0),set_onbeforeunload_status_native(r)},error:function(){}})}),progress.end(),v___page_editor_detached){var rj_array=editor_custom_modes(),r=rj_array[0],$panel_select_options=$(document.getElementById("jsPanel-"+(jsPanelId-1))).find(".select-mode-info option");setTimeout(function(){$panel_select_options.filter(function(){return this.value.indexOf(r)>-1}).prop("selected",!0)},80),$(".dropdown-editor_config_search + [data-external-detach]").removeClass("disabled"),v___page_editor_detached=!1}}},footerToolbar:function(e){return""},maximizedMargin:{top:10,right:10,bottom:10,left:10},panelSize:{width:$(window).width()<640?"98%":parseInt(.9*content_page_calc_width()+content_page_center_h_offset()),height:$(window).width()<640?"99%":parseInt(.7*content_page_calc_height())},position:{offsetX:content_page_center_h_offset()},dblclicks:{title:"maximize"},headerControls:{smallify:"remove"},resizeit:{stop:function(){__f___cm_resize(this)}},onresized:function(){__f___cm_resize(this)},onnormalized:function(){var e=parseInt($(this).attr("id").replace("jsPanel-",""));this.resize({width:$(window).width()/1.5,height:$(window).height()/2}),e<parseInt($(window).height()/1.5/11.5)&&this.reposition("left-top "+25*e+"px "+25*e+"px"),edit_files_cascade(1,this,0),__f___cm_resize(this)},onmaximized:function(){edit_files_cascade(1,this,0),__f___cm_resize(this)},onminimized:function(){edit_files_cascade(1,this,0)},onclosed:function(){edit_files_cascade(1,this,0);var e=parseInt(this[0].id.replace(/\D/g,""))+1,t="keydown.feditor"+e,n="keyup.feditor"+e,a=$("body");a.off(t),a.off(n),setTimeout(function(){var e=$("body").find("._filemanager_file_editor_save.text-danger").length,t=$("body").find('[data-form="submitter"]').hasClass("btn-warning");e||t||set_onbeforeunload_status(0,0),set_onbeforeunload_status_native(e)},100)},onbeforeclose:function(){var e=this,t=function(){if(v___module===v___module_file_manager){var t=$("#"+e[0].id).find("span[data-file-name]").text();file_path=$("#"+e[0].id).find("span[data-file-path]").text(),setTimeout(function(){var e=$($v__fm__container_fluid+" #path").val()||"/";if(Convert.uriEncodeComponent(file_path)===Convert.uriEncodeComponent(e)&&"function"==typeof __f__get_fs){var n=_f__table().dataTable().$("tr").find('td:nth-child(3) a[data-filemin-link="'+t+'"]').parent("td").parent("tr");__f__get_fs(n,1)}},300)}};return(!$("body").find(".bootbox-o__f_m-save-prompt").length||!this.find("._filemanager_file_editor_save.text-danger").length)&&(this.find("._filemanager_file_editor_save.text-danger").length?(bootbox.dialog({message:theme_language("theme_xhred_filemanager_file_edit_but_not_saved")+" <br><br>"+theme_language("theme_xhred_filemanager_file_edit_but_not_saved_what_to_do"),title:'<i class="fa fa-fw fa-question-circle font-size-80p bootbox-o__f_m-save-prompt">&nbsp;&nbsp;</i> <strong class="font-size-90p">'+Convert.htmlEscape(e.find(".jsPanel-title strong").text())+"</strong>",buttons:{success:{label:'&nbsp;<i class="fa fa-fw fa-save">&nbsp;&nbsp;</i>'+theme_language("theme_xhred_global_save_and_close")+"&nbsp;&nbsp;",className:"btn-primary vertical-align-top ",callback:function(){e.find(".jsPanel-btn-save").trigger("click"),t(),e.find(".jsPanel-btn-close").trigger("click")}},danger:{label:'&nbsp;<i class="fa fa-fw fa-times-circle-o">&nbsp;&nbsp;</i>'+theme_language("theme_xhred_global_close_without_saving")+"&nbsp;&nbsp;",className:"btn-danger vertical-align-top margined-left--2",callback:function(){e.find("._filemanager_file_editor_save.text-danger").removeClass("text-danger"),e.find(".jsPanel-btn-close").trigger("click");var t=$("body").find("._filemanager_file_editor_save.text-danger").length,n=$("body").find('[data-form="submitter"]').hasClass("btn-warning");t||n||set_onbeforeunload_status(0,0),set_onbeforeunload_status_native(t)}},main:{label:'&nbsp;<i class="fa fa-fw fa-arrow-circle-o-left">&nbsp;&nbsp;</i>'+theme_language("theme_xhred_global_continue_editing")+"&nbsp;&nbsp;",className:"btn-default vertical-align-top margined-left--2",callback:function(){setTimeout(function(){var t=window["__cm_editor_"+(parseInt(e.attr("id").replace("jsPanel-",""))+1)];t&&t.focus()},100)}}},onEscape:function(){setTimeout(function(){var t=window["__cm_editor_"+(parseInt(e.attr("id").replace("jsPanel-",""))+1)];t&&t.focus()},100)}}),!1):void t())}})};is_html_editor?"object"==typeof CKEDITOR?jsPaneler():(CKEDITOR_BASEPATH=v___server_js_path+"/ckeditor/",$.getScript(v___server_js_path+"/ckeditor/ckeditor.js?"+v___theme_version_plain,function(){jsPaneler()}).fail(function(e){"canceled"!==e.statusText&&connection_error(e,1)})):jsPaneler(),"function"==typeof __f___cs&&__f___cs()}}function editor_html_init(e,t){function n(){CKEDITOR.config.extraPlugins="emojione",CKEDITOR.config.dialog_noConfirmCancel=!0,CKEDITOR.config.fullPage=!0,CKEDITOR.config.toolbar=editor_html_toolbar(t);var n=get_server_data("language-full"),r=$(window).height()/e[1];CKEDITOR.replace(a,{language:n,width:"100%",baseFloatZIndex:20001,height:i?e[1]:r}),CKEDITOR.instances[a].on("instanceReady",function(t){t.editor.on("panelShow",function(e){v___theme_night_mode_enabled||v___theme_night_mode?$(e.data.element.$.children[0]).contents().find("body").addClass("nightRider"):$(e.data.element.$.children[0]).contents().find("body").removeClass("nightRider")}),CKEDITOR.instances[a].resize("100%",i?e[1]:r,!1)}),CKEDITOR.instances[a].on("instanceReady",function(e){$(e.editor.document.$).click(function(){var t=$(e.sender.container.$).parents(".jsPanel").attr("data-uid");t&&t.length&&parent.window["jsp_"+parseInt(t.replace("jsp_",""))].front()}),e.editor.on("dialogShow",function(e){$(e.data._.element.$).find(".cke_dialog_ui_checkbox").removeClass().addClass("awcheckbox awobject"),$(e.data._.element.$).find(".cke_dialog_ui_checkbox_input").removeClass().addClass("iawobject").next("label").addClass("lawobject"),e.data._.name})}),e[2]===!0&&CKEDITOR.instances[a].on("change",function(t){this.updateElement(),set_onbeforeunload_status(1,0);var n=parseInt(e[3].replace("html_editor_",""))-1;$("#jsPanel-"+n).find("._filemanager_file_editor_save").addClass("text-danger __locked__"),$("#jsPanel-"+n).find("select[data-encoding]").addClass("pointer-events-none")}),"edit_web"===e[3]&&setTimeout(function(){$("hr + b").removeClass("hidden"),$(".__tmp__spinner").remove()},100)}var a,i=!Test.string(e[0]);i?e[3]:e[0];i?(a="__hm_editor_"+e[3],e[0].attr("id",a)):a=e[0],"object"==typeof CKEDITOR?n():(CKEDITOR_BASEPATH=v___server_js_path+"/ckeditor/",$.getScript(v___server_js_path+"/ckeditor/ckeditor.js?"+v___theme_version_plain,function(){n()}).fail(function(e){"canceled"!==e.statusText&&connection_error(e,1)}))}function table_proc_size_columns(){var e=[];$.each($(".container-fluid tr td"),function(){var t=$(this).parents("table"),n=$(this).find("span[data-filesize-bytes]"),a=$(this).index();n.length&&($(this).attr("data-order",n.attr("data-filesize-bytes")),!Test.arrContains(e,a)&&e.push(a),t.attr("data-ordered",1),n.contents().unwrap())}).promise().done(function(){for(var t=0;t<e.length;t++)$(".container-fluid [data-ordered] tr td:nth-child("+(e[t]+1)+"):not([data-order])").attr("data-order",0)})}function table_data_init(e,t,n,a){function i(e){var i=e.DataTable({order:[],aaSorting:[],bDestroy:!0,bPaginate:!1,columnDefs:[a],bInfo:!1,bStateSave:t,destroy:!0,dom:n?"Rlfrtip":"f",oLanguage:{sEmptyTable:theme_language("theme_xhred_datatable_semptytable"),sInfo:theme_language("theme_xhred_datatable_sinfo"),sInfoEmpty:theme_language("theme_xhred_datatable_sinfoempty"),sLengthMenu:theme_language("theme_xhred_datatable_slengthmenu"),sLoadingRecords:theme_language("theme_xhred_datatable_sloadingrecords"),sProcessing:theme_language("theme_xhred_datatable_sprocessing"),sSearch:" ",sZeroRecords:theme_language("theme_xhred_datatable_szerorecords")},initComplete:function(e){$(".dataTables_filter").find('input[type="search"]').attr("placeholder",theme_language("theme_xhred_datatable_filter"))}}),r=!0;e.find("th").on("mouseover touchstart",function(e){r=!!$(e.target).hasClass("sorting")}),i.on("order.dt",function(t){var n=i.order(),a=1===e.find("thead .sorting_desc, thead .sorting_asc").length?1:0;if(a&&!vars.events.keypressed.shift&&!r&&n[0]&&"asc"===n[0][1])return void function(){i.order.neutral().draw(),r=!0}();r=!1})}if(void 0===t&&(t=!1),void 0===n&&(n=!1),void 0===a&&(a=!1),$.each(e,function(t){$(this).parents("#right-side-tabs").length&&e.splice(t,1)}),core.curModuleFile("virtual-server","index.cgi")&&(t=!0),$.fn.dataTableExt.sErrMode="throw",core.curModuleFile("virtual-server","list_users.cgi")){var r=$(".table thead tr th").filter(function(){return $(this).text().match(/Last login|Dernière Connexion|Siste innlogging|Letzer Login|Laatste login/)}).index();r>-1?$.each(e.find("tbody tr td:nth-child("+(r+1)+")"),function(e,t){var n=$(this).text();/Never|Jamais|Aldri|Niemals|Nigdy|Nooit/i.test(n)&&(n=0),$(this).attr("data-sort",n)}).promise().done(function(){i(e)}):i(e)}else i(e)}function mail_load_folders(){this.timeout&&clearInterval(this.timeout),"object"==typeof $.ui&&"function"==typeof $.ui.fancytree&&"object"==typeof mail&&"object"==typeof mail.folders&&"function"==typeof mail.folders.get?mail.folders.get():this.timeout=setTimeout(function(){mail_load_folders()},200)}function mail_load(e){if($t_uri_webmail&&settings_mail_ui){page.handle.content.offset(!0);var t=uri_parse_param("id",e),n=uri_parse_param("folder",e),a=uri_parse_param("start",e);if("object"==typeof mail?mail.messages.get({id:t,folder:n,start:a}):load.bundle(v___server_extensions_path+"/mail/mail",1,["mail.messages.get()"]),v___initial_load){var t=uri_parse_param("id");"object"==typeof mail?mail.messages.get(t):load.bundle(v___server_extensions_path+"/mail/mail",1,["mail.messages.get()"])}}}function page_sysinfo_sensor_update_label(){var e=$("#system-status .badge-drivestatus");e.length&&$.each(e,function(e,t){var n,a=$(this).text(),i=parseInt(a.split(":")[1]),r=i,s=a.indexOf("°C")>-1;n=a.indexOf("RPM")>-1?HTML.label.rpm(r):HTML.label.temperature(i,s),Test.string(n)&&$(this).removeClass(function(e,t){return(t.match(/(^|\s)bg-\S+/g)||[]).join(" ")}).addClass(n)})}function page_table_rows_control(){var e=this;this.prev_active=void 0;var t=$("body").attr("class")&&$("body").attr("class").indexOf(v___module_file_manager)>-1,n=core.curModule("init")&&v___location_file.startsWith("edit_");t||n||$.each($(".ui_checked_columns"),function(t,n){!$(n).find("a[href]")||Test.strContains(v___location_path,"init/edit_")||$("body").hasClass("servers")||$(this).hasClass("selectable")||$(n).addClass("cursor-pointer").find("td").addClass("cursor-pointer").find("label").addClass("cursor-pointer").find("tt").addClass("cursor-pointer"),$(n).find("td:not(.selectable)").click(function(t){var a="MacIntel"===window.navigator.platform?1:0;if(!(!a&&t.ctrlKey||a&&t.metaKey||check_selected_text())){if(setTimeout(function(){e.prev_active=$(n)},50),vars.events.keypressed.shift&&e.prev_active&&!e.prev_active.is($(n))&&t.originalEvent&&t.originalEvent.isTrusted===!0){var i=e.prev_active.index(),r=$(n).index(),s=r>i?$(n).prevUntil(e.prev_active):$(n).nextUntil(e.prev_active),o=e.prev_active.find("td:first-child input").is(":checked");s.find("td:first-child input").each(function(t,n){$(n).add(e.prev_active.find("td:first-child input")).prop("checked",o),$(n).trigger("change")})}if($(t.target).is(".awobject, .iawobject, .lawobject, .awcheckbox, .awradio, .ui_link, .btn")){if($(t.target).is(".ui_link, .btn")){t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation();var _=$(t.target).attr("href")||$(t.target).find("a").attr("href");if(_&&_.length>1){var l=$(t.target)||$(t.target).find("a");core.linkSameOrigin(l)?get_pjax_content(_):theme_open_new_tab(_,1)}return}}else if($(n).find("a[href]")&&!$("body").hasClass("servers")){var c=$(n).find("a[href]")[0],d=($(this).parents("tr.ui_checked_columns"),$(t.target).find('input[type="checkbox"]:not(":disabled")')),f=d.length;!c||$(this).find("a").attr("href")!==$(c).attr("href")&&void 0!==$(this).find("a").attr("href")||$(t.target).is("select, input, .awobject, .iawobject, .lawobject, .awcheckbox, .awradio")||0!==$(this).parent("tr").find('a[href*="download.cgi"]').length||($(c).attr("target")?(t.preventDefault(),!f&&window.open($(c).attr("href"),$(c).attr("target"))):t.originalEvent&&(t.preventDefault(),get_pjax_content($(c).attr("href")))),f&&get_pjax_content($(c).attr("href"))}}}),$(n).find("td").contextmenu(function(e){if(!vars.events.keypressed.shift)return void e.stopPropagation();"function"==typeof window.getSelection&&window.getSelection().removeAllRanges();var t=$(this).parents("tr.ui_checked_columns");e.preventDefault(),($(this).parents("tr").find('input[type="checkbox"]:first').length&&0===$(this).parents("tr").find('input[type="checkbox"][disabled]').length||$(this).parents("tr").find('input[type="checkbox"][disabled]').length&&$(this).parents("tr").find("input").length>1)&&(t.find('input[type="checkbox"]:first').is(":checked")?t.removeClass("hl-aw"):t.addClass("hl-aw"),t.find('input[type="checkbox"]:first').trigger("click"))})})}function page_radios_evolve(e){"conf"!=get_server_data("post")&&(e||(e='.container-fluid input[type="radio"]:not(.iawobject), .container-fluid input[type="checkbox"]:not(.iawobject)'),$.each($(e),function(e,t){if(1!==$(this).data("xdn")&&1!==$(this).hasClass("_select-unselect_")){$(this)[0]&&($___text=$(this)[0].nextSibling);var n=$(this).next('input:not([type="radio"], [type="checkbox"], [type="hidden"]), select, textarea'),a=$___text&&$___text.nodeValue&&$.trim($___text.nodeValue).length>1,i=$.trim((a?$___text.nodeValue:"&nbsp;").replace(/<hr>/g,"&lt;hr&gt;").replace(/<header>/g,"&lt;header&gt;")),i=i.length&&"&nbsp;"!=i?i+"&nbsp;&nbsp;":i,r=$(this).attr("type").toLowerCase(),s=$(this).parents(".tab-pane").attr("id"),s=s&&s.length?s.replace(/[^a-zA-Z0-9_-]+/g,""):0,o=Math.floor(9e4*Math.random())+1e4,_=$(this).attr("id"),l=("eid_"+(_&&$(this).attr("name")?$(this).attr("name"):o)+"_"+o+"_"+e+"_"+s).replace(/[^a-zA-Z0-9_-]+/g,"_"),l=_&&1===$("body").find("#"+_.replace(/[^a-zA-Z0-9_-]+/g,"_")).length?_.replace(/[^a-zA-Z0-9_-]+/g,"_"):l;if(0===$(this).next("label").length&&0===n.length&&a){$(this).addClass("iawobject");var c='for="'+l+'"';$(this).attr("id",l),$($___text).wrap('<label class="lawobject" '+c+">"+i+" </label>"),$($___text).remove(),$(this).next("label").addBack().wrapAll('<span class="aw'+r+' awobject awobjectm"></span>'),$(this).data("xdn",1)}else if(0!==n.length||0!==$(this).next("label").length||1!==$(this).prev("label").length||a)0!==n.length||0!==$(this).next("label").length||a||($(this).addClass("iawobject"),$(this).attr("id",l),$(this).after('<label class="lawobject" for="'+l+'">&nbsp;</label>'),$(this).next("label").addBack().wrapAll('<span class="aw'+r+' awobject awobjectm"></span>'),$(this).data("xdn",1));else{var d=$(this).prev("label"),f=d.text();$(this).addClass("iawobject"),$(this).attr("id",l),$(this).after('<label class="lawobject" for="'+l+'">'+f+"</label>"),$(this).next("label").addBack().wrapAll('<span class="aw'+r+' awobject awobjectm"></span>'),$(this).removeClass("form-control").css("width","initial"),d.remove(),$(this).data("xdn",1)}1===n.length&&0===$(this).next("label").length&&($(this).addClass("iawobject"),$(this).attr("id",l),$(this).after('<label class="lawobject" for="'+l+'">'+i+"</label>"),$(this).next("label").addBack().wrapAll('<span class="aw'+r+' awobject awobjectm"></span>'),a&&$($___text).remove(),$(this).data("xdn",1))}}))}function popover_visibility_position(e){$.each($(".module-help"),function(t,n){e.is($(this))?$(this).css({"z-index":214748364+t,opacity:1}):$(this).css({"z-index":214748364-t,opacity:.85})})}function page_refresh(e){if(!$(".modal.in").length)if(e&&set_onbeforeunload_status(0,0),get_onbeforeunload_status())get_onbeforeunload_message(!1,"get_pjax_content(v___location_resource, false, false)","ev");else{var t=vars.previous_request,n=vars.source_request,a=unbuffered_header_processor_allow(!(!t||!t.target)&&t.target.action);"submit"===t.type?get_pjax_action_submit(t,!1):a&&n.length?get_pjax_content(n,!1,!1):get_pjax_content(v___location_resource,!1,!1)}}function page_init(){"undefined"==typeof v___initial_load&&(v___initial_load=1),"undefined"==typeof v___title_initial&&(v___title_initial=get_server_data("title-initial")),v___location=location,$__theme_name__="authentic",$__theme_navigation="xnavigation=1",$__theme_event_deselectors=':not([href*="index.cgi?path="]):not([href*="config.cgi?path="]):not([href*="download.cgi?file="])',$__theme_default_deselectors=':not([target="_blank"]):not([href^="#"]):not([data-href^="#"]):not([data-toggle="collapse"]):not([href*="javascript:"]):not(.has-sub):not([data-has-sub-link]):not([onclick]):not([data-nref])',v___class_select2_leak=".select2-dropdown, .select2-search, .select2-results, aside .select2, aside .select2-selection, aside .select2-selection__rendered",v___user_level=get_server_data("access-level"),v___shell_type=0==v___user_level?"#":"$",v___debug=parseInt(get_server_data("debug")),v___source_type=v___debug?"src":"min",v___available_usermin=get_server_data("usermin"),void 0===$.support.spa&&($.support.spa=get_server_data("navigation")),v___available_session="1"==get_server_data("session")?1:0,"undefined"==typeof v___blocked_navigation&&(v___blocked_navigation=0),v___server_username=get_server_data("user"),v___server_userhome=get_server_data("user-home"),v___module=get_server_data("module"),"undefined"==typeof v___module_previous&&(v___module_previous=0),v___script_name=get_server_data("script-name").replace(/^\//g,""),v___module_file_manager="file"+(core.moduleAvailable("file-manager")?"-manager":"min"),v___server_hostname=get_server_data("hostname"),v___server_sestatus=get_server_data("sestatus"),v___theme_version=get_server_data("theme-version").toString(),v___theme_dversion=Test.strContains(v___theme_version,"-"),v___theme_mversion=get_server_data("theme-mversion").toString(),v___theme_version_plain=v___theme_version.replace(/\./g,"").replace(/-alpha.*/g,"").replace(/-beta.*/g,"").replace(/-RC.*/g,"")+(v___debug||v___theme_dversion?moment().unix()+v___theme_mversion:"99999999999"+v___theme_mversion),v___theme_force_buffered=0,v___theme_reload=0,v___theme_connection_reestablish=0,v___theme_connection_triggered_origin=0,v___theme_ajax_error=0,"undefined"==typeof v___theme_pjax_call&&(v___theme_pjax_call=0),v___theme_state_visible=1,v___theme_visibility_check=0,v___theme_progress=0,v___theme_processing_default_content=0,"undefined"==typeof v___theme_content_history&&(v___theme_content_history=0),"undefined"==typeof v___location_previous&&(v___location_previous=0),v___theme_night_mode="1"==get_server_data("data-night-mode")?1:0,v___theme_night_mode_enabled="undefined"!=typeof settings_background_color&&"nightRider"===settings_background_color?1:v___theme_night_mode,o___gotten_scripts="undefined"==typeof o___gotten_scripts?[]:o___gotten_scripts,v___page_container=function(){return $(".container-fluid")}(),v___page_signin_form="container session_login",v___page_signin_banner="form-signin-banner",v___page_activeElement=$("body")[0],v___page_hasEditor=editor_init_check(),v___page_editor_detached=!1,v___target_servers_index="servers/link.cgi",v___URI=URI(v___location),v___location_protocol=v___URI.protocol(),v___location_port=v___URI.port(),v___location_origin=v___URI.origin(),v___location_hostname=v___URI.hostname(),v___location_href=v___location.href,v___location_path=v___URI.path().replace(/\/+/g,"/"),v___location_path_unslashed=v___location_path.replace(/^\//g,"").replace(/\/$/g,""),v___location_path_lead_unslashed=v___location_path.replace(/^\//g,""),v___location_file=v___URI.filename(),v___location_directory=v___URI.directory(),v___location_directory_trail_slashed=v___location_directory?v___location_directory.endsWith("/")?v___location_directory:v___location_directory+"/":"/",v___location_directory_unslashed=v___location_directory.replace(/^\//g,"").replace(/\/$/g,""),v___location_directory_unslashed_trail_slashed=v___location_directory_unslashed+"/",v___location_query=link_type_convert(v___URI.query(),1),v___location_resource=link_type_convert(v___URI.resource(),1),v___location_resource_unslashed=v___location_resource.replace(/^\//g,"").replace(/\/$/g,""),v___location_prefix=get_server_data("webprefix"),v___location_prefix_unslashed_trail_slashed=v___location_prefix.replace(/^\//g,"").replace(/\/$/g,"")+"/","/"===v___location_prefix_unslashed_trail_slashed&&(v___location_prefix_unslashed_trail_slashed=""),v___server_css_path=v___location_prefix+"/unauthenticated/css",v___server_css_palettes_path=v___server_css_path+"/palettes",v___server_js_path=v___location_prefix+"/unauthenticated/js",v___server_extensions_path=v___location_prefix+"/extensions",
// $t___license_vm = get_server_data("virtual-server-license"),
// $t___license_cm = get_server_data("server-manager-license"),
plugins.navigation.state.update()}function content_page_center_h_offset(){var e=$("aside"),t=e.length,n=parseInt(get_server_data("navigation-collapsed"))||matchMedia("(max-width: 1080px)").matches,a=parseInt(get_server_data("slider-fixed")),i=0,r=!($(window).width()<640);return!a&&n?i=0:r&&t&&(!n&&!a||n&&!a||!n&&a)&&(i=-20),r&&t&&n&&a&&(i=-150),r&&t&&!n&&!a&&(i=e.outerWidth()/2),i}function content_page_calc_width(){var e=parseInt(get_server_data("navigation-collapsed"))||matchMedia("(max-width: 1080px)").matches,t=e?0:$("aside").outerWidth()||0,n=parseInt(get_server_data("slider-fixed"))&&!document.querySelector(".right-side-tabs-toggler").offsetHeight,a=n?300:0,i=window.innerWidth-t-a-60-2;return parseInt(i)}function content_page_calc_height(e){var t=0;"editor"===e&&(t=200);var n=$(window).outerHeight()-parseInt($(".container-fluid").css("margin-top"))-parseInt($(".container-fluid > .panel > .panel-heading").outerHeight())-parseInt($(".container-fluid > .panel > .panel-body").css("padding-top"))-t;return parseInt(n>320?n:320)}function editor_change_mode(e,t){var n=CodeMirror.findModeByMIME(t);mode=n.mode,spec=n.mime,e.setOption("mode",spec),CodeMirror.autoLoadMode(e,mode)}function editor_modes(e){var t='<select title="'+theme_language("theme_xhred_editor_set_syntax")+'" aria-label="'+theme_language("theme_xhred_editor_set_syntax")+'" data-no-appearance class="select-mode-info" dir="rtl">',n=CodeMirror.modeInfo,a=0,i=e&&e.helperType?e.helperType:0;$.each(n,function(n,r){var s=0;e&&(!a&&i&&i==r.mime&&(s=1,a++),i||(a||e.name!=r.mode?!a&&e&&e.name&&r.mime.indexOf(e.name)>-1?(a++,s=1):!a&&e&&e.name&&e.name.indexOf(r.mime)>-1&&(a++,s=1):(s=1,a++))),t+="<option "+(s?" selected":"")+' value="'+r.mime+'">'+r.name+"</option>"}),t+="</select>";var r=0;if(!$(t).find("option[selected]").val()){var s=$(t);s.find('option[value="text/plain"]').attr("selected",1),r=s[0].outerHTML}return r||t}function editor_init_check(){var e=$(".container-fluid > .panel > .panel-body textarea");return 1===e.length&&("data"===e.attr("name")||"text"===e.attr("name")||"conf"===e.attr("name")||"script"===e.attr("name")||core.curModuleFileQuery("virtual-server","edit_html.cgi","textok=")||core.curModuleFileQuery("nginx","edit_server.cgi","editfile=")||v___location_file.indexOf("manual")>-1)?core.curModule("gnupg")||core.curModuleFile("virtual-server","mass_ucreate_form.cgi")||core.curModuleFile("virtual-server","mass_create_form.cgi")||core.curModuleFile("server-manager","edit_pubkey.cgi")||core.curModuleFile("server-manager","edit_key.cgi")||check_location_resource("/config.cgi?server-manager")||core.curModuleFile("useradmin","batch_form.cgi")||core.curModuleFile("useradmin","gbatch_form.cgi")||"mass_form.cgi"===v___location_file||"feedback_form.cgi"===v___location_file||"notes"===$("textarea").attr("id")?0:(v___page_hasEditor=1,1):0}function editor_custom_modes(e){var t,n,a=v___module;return"apache"==a||"postfix"==a||"dovecot"==a||"spam"==a||"sendmail"==a||"samba"==a||"proftpd"==a||"fail2ban"==a||"sshd"==a||"squid"==a||"ldap-server"==a||"mysql"==a||"postgresql"==a?(t="rpm",n="rpm-spec"):"init"==a||"procmail"==a||"shorewall"==a||Test.strContains(a,"nginx")||Test.strContains(a,"cshrc")?(t="shell",n="text/x-sh"):"phpini"==a?(t="z80",n="text/x-z80"):"bind8"==a||core.curModuleFile("virtual-server","manual_records.cgi")?"edit_text.cgi"===v___location_file||"manual_records.cgi"===v___location_file?(t="nsis",n="text/x-nsis"):(t="mscgen",n="text/x-mscgen"):"virtual-server"==a&&e&&"body"==e.attr("name")&&(t="htmlmixed",n="text/html"),[t,n]}function editor_fix_width(e){var t=$(e).parent("form"),n=content_page_calc_width();t&&t.length&&(t.width(n),$(window).off("resize.cmc"),$(window).on("resize.cmc",function(){editor_fix_width(e,n)}))}function editor_init(e,t,n,a,i,r,s,o,_){s=void 0!==s&&0!=s,_=void 0!==_&&0!=_&&_,s||(i=void 0!==i&&0!=i,r=void 0!==r&&0!=r,$.each(e,function(s,l){var c=($(this),["phpini","bind8"]),d=v___module;c.indexOf(d)>=0&&$(this).data("name","data"),CodeMirror.modeURL=v___location_prefix+"/unauthenticated/js/codemirror/mode/%N/%N.js";var f=null,g="text/plain",u=!1;core.curModuleFile("custom","view.cgi")?u=$('form[action="save.cgi"]').find(".table-title").find("tt").text():a&&!a.toString().includes("static")?t&&(u=t.replace(/<(?:.|\n)*?>/gm,"").replace(/ *\([^)]*\) */g,""),t=u):u=$('select[name="file"]').val();var m,f,g,h=0,p=t?t:u;if(m=/.+\.([^.]+)$/.exec(p)){var v=CodeMirror.findModeByExtension(m[1]);v&&(f=v.mode,g=v.mime,h=[f,g])}else if(/\//.test(p)){var v=CodeMirror.findModeByMIME(p);v&&(f=v.mode,g=p,h=[f,g])}else f=null,g="text/plain",h=[f,g];if(a.toString().includes("static")||v___page_editor_detached){var b=editor_custom_modes($(this));f=b[0],g=b[1]}if($current_file=v___location_path.replace(/^\//g,""),$current_file&&($current_file=$current_file.split("/")[1]),editor_init_check()||$(".jsPanel").length||i){CodeMirror.commands.autocomplete=function(e){e.showHint({hint:CodeMirror.hint.anyword})};var x=function(){if(l&&$(l).length){var e=$(l).parents(".panel-body").find(".dropdown-editor_config_search");a&&a.toString().includes("static")&&$(l).parents("form")&&e.find('button[data-toggle="dropdown"]').trigger("click")}};window["__cm_editor_"+a]=CodeMirror.fromTextArea(l,{tabMode:"indent",matchBrackets:!0,lineNumbers:!0,keyMap:"sublime",highlightSelectionMatches:{annotateScrollbar:!0},lineWrapping:!1,indentUnit:0,autofocus:!0,foldGutter:!0,continueComments:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{"Ctrl-Space":"autocomplete","Alt-S":x,"Shift-Cmd-F":"replace","Shift-Ctrl-F":"replace"},styleActiveLine:!0,theme:v___theme_night_mode?"monokai":settings_cm_editor_palette}),a&&a.toString().includes("static")&&(v___page_hasEditor=1),window["__cm_editor_"+a].setOption("mode",g),f&&"rpm"!=f&&CodeMirror.autoLoadMode(window["__cm_editor_"+a],f),window["__cm_editor_"+a].addKeyMap({"Ctrl-Alt-W":function(e){var t=!e.getOption("lineWrapping");e.setOption("lineWrapping",t)}});var w=$("body").find(".jsPanel"),y=w&&w.length;page.handle.content.offset(!0),setTimeout(function(){if($("body").find(".jsPanel").length){var e=document.getElementById("jsPanel-"+(a-1)),t=$(e).find("[data-mode-select]").find(".select-mode-info");h&&h[0]&&h[1]&&t.val(h[1]).trigger("change"),t.on("change",function(){editor_change_mode(window["__cm_editor_"+a],$(this).val())})}else{var n=$(".CodeMirror");n.before("<i "+theme_inject_tooltip(theme_language("theme_xhred_global_help"))+' aria-label="'+theme_language("theme_xhred_global_help")+'" class="fa fa-fw fa-lg fa-question-circle text-muted -helper __helper"></i>'),1===n.length&&core.curModule("custom")&&(n.before('<div data-mode-select data-mode-select-single-mode class="text-light cursor-default"><label class="select-styled select-styled-small select-styled-no-border select-styled-no-icon">'+editor_modes(__cm_editor_static.getMode())+"</label></div>"),n.prev("[data-mode-select]").find(".select-mode-info").on("change",function(){editor_change_mode(__cm_editor_static,$(this).val())}))}var i=$(".fa.fa-question-circle.__helper:not(.soft_wt), .__helper___:not(.soft_wt)");$.ajax({type:"GET",url:v___location_prefix+"/help.cgi/authentic-theme/editor",data:!1,dataType:"text",success:function(e){i.popover({container:"body",placement:"auto left",sanitize:!1,title:'<button type="button" class="close pull-right close-popover-trigger font-size-120p">&times;</button>'+theme_language("theme_xhred_editor_help_title"),content:e,trigger:"click",html:!0})}}),i.on("inserted.bs.popover",function(){$("body").find(".theme_xhred_editor_help").parents(".popover").addClass("_helper").next("header").remove(),$("body").find(".popover-content > .ui_subheading").remove()})},100),r&&window["__cm_editor_"+a].on("change",function(e,t){Test.strContains(v___location_path,"init/edit_")||a&&a.toString().includes("static")&&set_onbeforeunload_status(1,0)});var C=$(".container-fluid > .panel > .panel-body").attr("data-cm-line"),k=$(".container-fluid > .panel > .panel-body").attr("data-cm-state");o&&(despinnerfy_buttons(),$('[data-form="submitter"]').hasClass("btn-warning")&&set_onbeforeunload_status(1),page.handle.content.offset(!0)),o&&C&&__cm_editor_static.setCursor(parseInt(C.split(",")[0]),parseInt(C.split(",")[1]));var j=uri_parse_param("editor_line");j&&__cm_editor_static.setCursor(parseInt(j)-1,0);var O=0;if(O-=core.curModuleFile("virtual-server","edit_html.cgi")?-200:-50,_){var T=$(l).parents("form"),S=T.find('input[type="submit"]:visible, .ui_form_end_submit.btn-success[type="button"]:visible');T.on("submit",function(e){set_onbeforeunload_status(0,0)}),S.prev("br").length&&S.addClass("margined-top--10"),$(window).resize(function(){window["__cm_editor_"+a].setSize(null,(content_page_calc_height("editor")-O)*_)}).trigger("resize"),window["__cm_editor_"+a].on("change",function(){set_onbeforeunload_status(1,0),S.removeClass("btn-default btn-success").addClass("btn-danger")})}else{var P;P=n?n:4,n?(window["__cm_editor_"+a].on("change",function(t,n){e.val(window["__cm_editor_"+a].getValue());var i=$(":focus").parents(".jsPanel");i.is(".jsPanel")&&(i.find("._filemanager_file_editor_save").addClass("text-danger __locked__"),i.find("select[data-encoding]").addClass("pointer-events-none"),set_onbeforeunload_status_native(1))}),window["__cm_editor_"+a].setSize(P[0],P[1])):($window_height=content_page_calc_height("editor")-O,window["__cm_editor_"+a].setSize(null,$window_height),$(window).resize(function(){$window_height=content_page_calc_height("editor")-O,window["__cm_editor_"+a].setSize(null,$window_height)}))}$(".sub_table_container").find(".CodeMirror").length&&($(".sub_table_container").addClass("xcontent-force-no-styling"),$(".panel-body").addClass("xqcontent-forced")),a&&a.toString().includes("static")&&editor_background_save(o&&!!C&&"true"==k,o),a&&a.toString().includes("static")&&!y&&editor_fix_width(".container-fluid > .panel .panel-body textarea:hidden")}}))}function viewer_init_check(){return $('body[class^="syslog"]').length&&v___location_query&&(v___location_query.indexOf("view=1")>-1||v___location_query.indexOf("new=")>-1)||$('body[class^="syslog-ng"]').length&&v___location_file&&"view_log.cgi"===v___location_file&&v___location_query&&v___location_query.indexOf("dest=")>-1?1:0}function viewer_init(){if($("pre[data-cm-viewer]").remove(),$(".panel-body pre").find("i").length){var e=0,t=$('.panel-body [name="filter"]');t.length&&t.val()&&(e=1),$(".panel-body pre > i").addClass("label label-transparent-15").text(theme_language(e?"theme_xhred_global_no_results_found":"theme_xhred_global_empty").toUpperCase()),$(".panel-body pre").addClass("text-center")}else{var n=!1;$(".panel-body pre").each(function(e,t){var a=$(this),i=Convert.htmlStrip(Convert.uriDecodeComponent(a.html()));a.addClass("hidden"),a.after("<pre data-cm-viewer data-cm-viewer-id-"+(e+1)+"></pre>"),$target=$("pre[data-cm-viewer-id-"+(e+1)+"]");var r=$.trim($('[name="filter"]:first').val());r&&r.length&&CodeMirror.defineMode("highlightSearch",function(e,t){var n={token:function(e,t){var n=e.string.match(new RegExp(r,"i"));if(n&&n[1]&&(r="",$.each(n,function(e,t){Test.numeric(e)&&e>0&&(r.length?r+="|"+t:r=t)})),r=new RegExp(r,"i"),e.match(r))return"highlightSearch";for(;null!=e.next()&&!e.match(r,!1););return null}};return CodeMirror.overlayMode(CodeMirror.getMode(e,t.backdrop),n)}),n=CodeMirror($target[0],{value:i,lineNumbers:!1,mode:r?"highlightSearch":null,theme:v___theme_night_mode?"monokai":settings_cm_editor_palette,readOnly:!0}),n.addKeyMap({"Ctrl-Alt-W":function(e){var t=!e.getOption("lineWrapping");e.setOption("lineWrapping",t)}})}).promise().done(function(){})}}function notifications(e,t,n,a){function i(e,t){t&&(check_bundle(t),plugins.navigation.reset(),get_pjax_content(t),e.close()),window.focus()}if(settings_side_slider_enabled&&settings_side_slider_notifications_enabled){var e=Convert.htmlUnEscape($.trim(e.replace(/(<([^>]+)>)/gi,""))).replace(/\s+/g," "),t=Convert.htmlUnEscape($.trim(t.replace(/(<([^>]+)>)/gi,""))).replace(/\s+/g," ");if("granted"===Notification.permission){var r=new Notification(e,{body:t,icon:v___location_prefix+"/images/notifications_"+n+".png"});r.onclick=function(){i(r,a)}}else"denied"!==Notification.permission&&Notification.requestPermission(function(r){if("granted"===r){var s=new Notification(e,{body:t,icon:v___location_prefix+"/images/notifications_"+n+".png"});s.onclick=function(){i(s,a)}}})}}function uri_parse(e,t){var n=URI(t?t:v___location);return"directory"===e?n.directory():"directory"===e?n.directory():"file"===e?n.filename():"query"===e?n.query():void 0}function uri_parse_param(e,t){var n=URI.parseQuery(URI(t?t:v___location_resource).query())[e];return n?n:String()}function unbuffered_header_post(e){var t=this;if(t.is_running||(t.is_running=2),Test.strContains(e.responseText,"theme_post_save")||Test.strContains(e.responseText,"theme_select_server")){if(2!==t.is_running)return;t.is_running=1,setTimeout(function(){t.is_running=2},1e3);var n=e.responseText.match(/theme_post_save(.*)$/gm),a=e.responseText.match(/theme_select_server(.*)$/gm);setTimeout(function(){if(n){var e=n[0].split("=");plugins.navigation.reload(e[1])}else if(a){var t=a[0].split("="),i=$("aside select").val();i!=t[1]&&plugins.navigation.reload("-1"==t[1]?"0":t[1])}},500)}}function unbuffered_header_processor_allow(e){var t=URI(v___location),n=t.path();return void 0!==e&&(n=e),n&&Test.strContains(n,".cgi")&&(Test.strContains(n,"webmin/install_theme.cgi")||Test.strContains(n,"usermin/install_theme.cgi")||n.indexOf("/virtual-server/import.cgi")>-1||n.indexOf("/virtual-server/edit_newlinks.cgi")>-1||n.indexOf("/virtual-server/postsave.cgi")>-1||n.indexOf("/virtual-server/validate.cgi")>-1||n.indexOf("/server-manager/edit_serv.cgi")>-1||n.indexOf("/server-manager/save_serv.cgi")>-1||n.indexOf("/server-manager/index.cgi")>-1||n.indexOf("/server-manager/list_ifaces.cgi")>-1||n.indexOf("/server-manager/mass_update.cgi")>-1||n.indexOf("/server-manager/mass_update_form.cgi")>-1||n.indexOf("/server-manager/mass_domains.cgi")>-1||n.indexOf("/server-manager/get_images.cgi")>-1||n.indexOf("/server-manager/edit_newlinks.cgi")>-1||n.indexOf("/server-manager/list_gces.cgi")>-1||n.indexOf("/server-manager/list_ec2s.cgi")>-1||n.indexOf("/server-manager/unpause.cgi")>-1||n.indexOf("/server-manager/find.cgi")>-1||n.indexOf("useradmin/batch_exec.cgi")>-1||n.indexOf("useradmin/gbatch_exec.cgi")>-1||n.indexOf("useradmin/mass_delete_user.cgi")>-1||n.indexOf("virtual-server/domain_setup.cgi")>-1||n.indexOf("virtual-server/upgrade.cgi")>-1||n.indexOf("virtual-server/mass_create.cgi")>-1||n.indexOf("virtual-server/restore.cgi")>-1||n.indexOf("virtual-server/save_newip.cgi")>-1||n.indexOf("virtual-server/mass_domains_change.cgi")>-1||n.indexOf("virtual-server/save_domain.cgi")>-1||n.indexOf("virtual-server/backup.cgi")>-1||n.indexOf("virtual-server/save_phpmode.cgi")>-1||n.indexOf("virtual-server/script_install.cgi")>-1||n.indexOf("virtual-server/mass_change.cgi")>-1||n.indexOf("virtual-server/save_ratelimit.cgi")>-1||n.indexOf("virtual-server/mass_scripts.cgi")>-1||n.indexOf("virtual-server/mass_upgrade.cgi")>-1||n.indexOf("virtual-server/save_newips.cgi")>-1||n.indexOf("virtual-server/letsencrypt.cgi")>-1||n.indexOf("virtual-server/migrate.cgi")>-1||n.indexOf("virtual-server/save_mail.cgi")>-1||n.indexOf("virtual-server/mass_delete_domains.cgi")>-1||n.indexOf("virtual-server/delete_domain.cgi")>-1||n.indexOf("virtual-server/unscript_install.cgi")>-1||n.indexOf("virtual-server/mass_uninstall.cgi")>-1||n.indexOf("virtual-server/clone.cgi")>-1||n.indexOf("virtual-server/fix_symlinks.cgi")>-1||n.indexOf("virtual-server/disable_domain.cgi")>-1||n.indexOf("virtual-server/delete_databases.cgi")>-1||n.indexOf("virtual-server/move.cgi")>-1||n.indexOf("virtual-server/enable_domain.cgi")>-1||n.indexOf("virtual-server/transfer.cgi")>-1||n.indexOf("virtual-server/mass_disable.cgi")>-1||n.indexOf("virtual-server/rename.cgi")>-1||n.indexOf("virtual-server/save_dbname.cgi")>-1||n.indexOf("virtual-server/mass_enable.cgi")>-1||n.indexOf("virtual-server/save_frame.cgi")>-1||n.indexOf("virtual-server/check.cgi")>-1||n.indexOf("virtual-server/save_newchroot.cgi")>-1||n.indexOf("virtual-server/enable_dkim.cgi")>-1||n.indexOf("virtual-server/save_proxy.cgi")>-1||n.indexOf("virtual-server/save_dbpass.cgi")>-1||n.indexOf("virtual-server/save_dbhosts.cgi")>-1||n.indexOf("virtual-server/unalias.cgi")>-1||n.indexOf("virtual-server/save_newautoconfig.cgi")>-1||n.indexOf("virtual-server/quotacheck.cgi")>-1||n.indexOf("virtual-server/unsub.cgi")>-1||n.indexOf("virtual-server/save_domdkim.cgi")>-1||n.indexOf("virtual-server/fix_modphp.cgi")>-1||n.indexOf("virtual-server/connectivity.cgi")>-1||n.indexOf("virtual-server/all_webmin.cgi")>-1||n.indexOf("virtualmin-support/send_ticket.cgi")>-1||n.indexOf("virtualmin-support/enable_login.cgi")>-1||n.indexOf("virtualmin-support/disable_login.cgi")>-1||n.indexOf("server-manager/empty.cgi")>-1||n.indexOf("server-manager/exec_vbackup.cgi")>-1||n.indexOf("server-manager/exec_vsync.cgi")>-1||n.indexOf("server-manager/failover.cgi")>-1||n.indexOf("server-manager/find.cgi")>-1||n.indexOf("server-manager/gcescan.cgi")>-1||n.indexOf("server-manager/install_kvm.cgi")>-1||n.indexOf("server-manager/install_xen.cgi")>-1||n.indexOf("server-manager/manual_image.cgi")>-1||n.indexOf("server-manager/mass.cgi")>-1||n.indexOf("server-manager/mass_move.cgi")>-1||n.indexOf("server-manager/mass_script.cgi")>-1||n.indexOf("server-manager/massupload.cgi")>-1||n.indexOf("server-manager/move.cgi")>-1||n.indexOf("server-manager/move_disk.cgi")>-1||n.indexOf("server-manager/newami.cgi")>-1||n.indexOf("server-manager/pause.cgi")>-1||n.indexOf("server-manager/reset.cgi")>-1||n.indexOf("server-manager/restore.cgi")>-1||n.indexOf("server-manager/restore_domain.cgi")>-1||n.indexOf("server-manager/save_ec2address.cgi")>-1||n.indexOf("server-manager/save_limits.cgi")>-1||n.indexOf("server-manager/save_pass.cgi")>-1||n.indexOf("server-manager/save_vcpus.cgi")>-1||n.indexOf("server-manager/scan.cgi")>-1||n.indexOf("server-manager/transfer.cgi")>-1||n.indexOf("server-manager/unpause.cgi")>-1||n.indexOf("server-manager/upgrade.cgi")>-1||n.indexOf("server-manager/upload.cgi")>-1||n.indexOf("server-manager/add.cgi")>-1||n.indexOf("server-manager/backup.cgi")>-1||n.indexOf("server-manager/boot.cgi")>-1||n.indexOf("server-manager/clone.cgi")>-1||n.indexOf("server-manager/convert_image.cgi")>-1||n.indexOf("server-manager/create_address.cgi")>-1||n.indexOf("server-manager/create.cgi")>-1||n.indexOf("server-manager/create_dimage.cgi")>-1||n.indexOf("server-manager/create_dkvolume.cgi")>-1||n.indexOf("server-manager/create_domain.cgi")>-1||n.indexOf("server-manager/create_ec2attach.cgi")>-1||n.indexOf("server-manager/create_ec2_snapshot.cgi")>-1||n.indexOf("server-manager/create_gceattach.cgi")>-1||n.indexOf("server-manager/create_gdisk.cgi")>-1||n.indexOf("server-manager/create_gimage.cgi")>-1||n.indexOf("server-manager/create_gsnapshot.cgi")>-1||n.indexOf("server-manager/create_image.cgi")>-1||n.indexOf("server-manager/create_volume.cgi")>-1||n.indexOf("server-manager/delete_addresses.cgi")>-1||n.indexOf("server-manager/delete_backuplogs.cgi")>-1||n.indexOf("server-manager/delete_ec2attach.cgi")>-1||n.indexOf("server-manager/delete_ec2_snapshots.cgi")>-1||n.indexOf("server-manager/delete_gceattach.cgi")>-1||n.indexOf("server-manager/delete_volumes.cgi")>-1||n.indexOf("server-manager/download.cgi")>-1||n.indexOf("server-manager/ec2scan.cgi")>-1||n.indexOf("cluster-usermin/upgrade.cgi")>-1||n.indexOf("cluster-usermin/install.cgi")>-1||n.indexOf("cluster-usermin/update.cgi")>-1||n.indexOf("cluster-useradmin/save_user.cgi")>-1||n.indexOf("cluster-useradmin/save_group.cgi")>-1||n.indexOf("cluster-useradmin/delete_user.cgi")>-1||n.indexOf("cluster-useradmin/create_group.cgi")>-1||n.indexOf("cluster-useradmin/create_user.cgi")>-1||n.indexOf("ldap-useradmin/batch_exec.cgi")>-1||n.indexOf("ldap-useradmin/mass_delete_user.cgi")>-1||n.indexOf("usermin/upgrade.cgi")>-1||n.indexOf("usermin/update.cgi")>-1||n.indexOf("cpan/download.cgi")>-1||n.indexOf("cpan/install.cgi")>-1||n.indexOf("burner/save_profile.cgi")>-1||n.indexOf("burner/burn.cgi")>-1||n.indexOf("bind8/mass_create.cgi")>-1||n.indexOf("bind8/mass_rcreate.cgi")>-1||n.indexOf("bind8/mass_delete.cgi")>-1||n.indexOf("bind8/mass_update.cgi")>-1||n.indexOf("bind8/zone_dnssecmigrate_dt.cgi")>-1||n.indexOf("bind8/mass_rdelete.cgi")>-1||n.indexOf("bind8/enable_zonekey.cgi")>-1||n.indexOf("bind8/enable_zonedt.cgi")>-1||n.indexOf("bind8/disable_zonedt.cgi")>-1||n.indexOf("webalizer/save_log.cgi")>-1||n.indexOf("bacula-backup/restore.cgi")>-1||n.indexOf("bacula-backup/backup.cgi")>-1||n.indexOf("bacula-backup/gbackup.cgi")>-1||n.indexOf("bacula-backup/label.cgi")>-1||n.indexOf("bacula-backup/mount.cgi")>-1||n.indexOf("cluster-software/install_pack.cgi")>-1||n.indexOf("updown/download.cgi")>-1||n.indexOf("software/install_pack.cgi")>-1||n.indexOf("software/do_install.cgi")>-1||n.indexOf("software/apt_upgrade.cgi")>-1||n.indexOf("software/rhn_check.cgi")>-1||n.indexOf("software/yum_upgrade.cgi")>-1||n.indexOf("software/urpmi_upgrade.cgi")>-1||n.indexOf("software/csw_upgrade.cgi")>-1||n.indexOf("software/ports_upgrade.cgi")>-1||n.indexOf("webmin/letsencrypt.cgi")>-1||n.indexOf("webmin/delete_webmincron.cgi")>-1||n.indexOf("webmin/test_sendmail.cgi")>-1||n.indexOf("package-updates/update.cgi")>-1||core.moduleFile(n,"custom","run.cgi")||core.moduleFile(n,"custom","sql.cgi")||n.indexOf("virtualmin-init/save.cgi")>-1||n.indexOf("virtualmin-init/mass.cgi")>-1||n.indexOf("backup-config/save.cgi")>-1||n.indexOf("squid/init_cache.cgi")>-1||n.indexOf("squid/clear.cgi")>-1||n.indexOf("squid/chown.cgi")>-1||n.indexOf("ldap-client/check.cgi")>-1||n.indexOf("sendmail/del_mailqs.cgi")>-1||n.indexOf("sendmail/flushq.cgi")>-1||n.indexOf("init/mass_start_stop.cgi")>-1||n.indexOf("init/mass_launchd.cgi")>-1||n.indexOf("init/mass_systemd.cgi")>-1||n.indexOf("init/mass_upstarts.cgi")>-1||n.indexOf("init/mass_rcs.cgi")>-1||n.indexOf("init/save_services.cgi")>-1||n.indexOf("ldap-server/create.cgi")>-1||n.indexOf("change-user/change.cgi")>-1||n.indexOf("virtualmin-slavedns/save.cgi")>-1||n.indexOf("proc/trace.cgi")>-1||n.indexOf("proc/run.cgi")>-1||n.indexOf("proc/kill_proc_list.cgi")>-1||n.indexOf("fsdump/backup.cgi")>-1||n.indexOf("fsdump/restore.cgi")>-1||n.indexOf("webmin_search.cgi")>-1||n.indexOf("security-updates/update.cgi")>-1||n.indexOf("virtualmin-mailrelay/save.cgi")>-1||n.indexOf("cluster-copy/exec.cgi")>-1||n.indexOf("cron/save_cron.cgi")>-1||n.indexOf("cron/exec_cron.cgi")>-1||n.indexOf("virtualmin-registrar/import.cgi")>-1||n.indexOf("virtualmin-registrar/save_ns.cgi")>-1||n.indexOf("virtualmin-registrar/transfer.cgi")>-1||n.indexOf("virtualmin-registrar/renew.cgi")>-1||n.indexOf("virtualmin-registrar/create.cgi")>-1||n.indexOf("htaccess-htpasswd/search.cgi")>-1||n.indexOf("acl/makedn.cgi")>-1||n.indexOf("acl/cert_issue.cgi")>-1||n.indexOf("acl/maketables.cgi")>-1||n.indexOf("acl/schema.cgi")>-1||n.indexOf("filter/move.cgi")>-1||n.indexOf("fetchmail/check.cgi")>-1||n.indexOf("servers/find.cgi")>-1||n.indexOf("cluster-cron/exec.cgi")>-1||n.indexOf("raid/mkfs.cgi")>-1||n.indexOf("lvm/pvmove.cgi")>-1||n.indexOf("lvm/mkfs.cgi")>-1||n.indexOf("ppp-client/init.cgi")>-1||n.indexOf("fdisk/mkfs.cgi")>-1||n.indexOf("fdisk/tunefs.cgi")>-1||n.indexOf("fdisk/fsck.cgi")>-1||n.indexOf("spam/deleteall_awl.cgi")>-1||n.indexOf("quota/check_quotas.cgi")>-1||n.indexOf("virtualmin-awstats/generate.cgi")>-1||n.indexOf("postfix/flushq.cgi")>-1||n.indexOf("/webmin/upgrade.cgi")>-1)?1:0}function unbuffered_header_processor_allow_scroll(){var e=["webmin_search.cgi"],t=core.curModule("package-updates")&&$('form[action*="update.cgi"]').length?1:0;return e.filter(function(e){return vars.requested_page.includes(e)}).length||Test.arrContains(e,v___location_file)||t||!settings_perform_content_scrolling?0:1}function unbuffered_header_processor(e,t){if(t){var n=e,a=$(n.target),i=n.target.action;vars.source_request=v___location_resource;var r=$(quirks.active_element()).attr("name"),s=$.trim(quirks.active_element().innerText),o=quirks.active_element().value;a.find('input[name="'+r+'"]')&&a.find('input[name="'+r+'"]').val()==(s?s:o)||$('<input data-trigger-injected="1">').attr({type:"hidden",name:r,value:s?s:o}).appendTo(a);var _=Test.strContains(a.attr("enctype"),"multipart/form-data"),l=_?new FormData(a[0]):a.serialize();if(_||(l=Test.strContains(l,r+"=")?l:l+"&"+r+"="+o),$("input:file:visible").val())return v___theme_force_buffered=1,void a.submit()}var c=0,d=0,f=t?i:e;v___location.href,$('div[data-dcontainer="1"] > .panel.panel-default').clone();progress.start(),set_onbeforeunload_status(1,1),$("body").addClass("loading-bg"),vars.requested_page=f;var g=0,u=0,m='div[data-dcontainer="1"]',h=$(m).clone(),p=get_page_title_subtitle(1),v=String();progressive_request=$.ajax({xhr:function(){var e=new window.XMLHttpRequest;return e.responseType="text",e.addEventListener("progress",function(t){var n=XHR.headers(e)[1];if(n&&n.includes("application/"))return void(e.responseType="arraybuffer");var a=t.target.responseText,i=$(a),r=i.filter(m).html(),s=i.filter(m).find("pre").length;if(Test.strContains(a,v___page_signin_form))return v___available_session=0,void progressive_request.abort();if(!!r&&d++,(s||d>1)&&!c){if(r){var o=$(".__page");if($(m).html(r),c++,unbuffered_header_processor_allow_scroll()){o.hasScrollBar()?g||o.scrollTop(o[0].scrollHeight):o.scrollTop(0)}o.scroll(function(e){var t=this.scrollTop===this.scrollHeight-this.offsetHeight;t||(g=1),t&&g&&(g=0)}),o.addClass("progressing"),unbuffered_header_processor_allow_scroll()||o.addClass("static"),get_pjax_event_end(!1,t.target);var _=get_server_data("redirect"),l=_?_:v;$.pjax.cache(!1,!1,[h,link_type_convert(l,2),p])}$("body").addClass("loading-bg")}else if(c){var f=extract_content(a,'<div class="panel-body">',"</div>",0);if(f){var b=$(m).find(".panel-body").html(f);b.find(".btn").addClass("disabled"),b.find(".ui_link.ui_link_empty").remove()}!g&&unbuffered_header_processor_allow_scroll()&&$(".__page").scrollTop($(".__page")[0].scrollHeight),u=$(".__page").scrollTop()}},!1),e},type:get_pjax_type(a?a:f),url:f,processData:!t||!_,contentType:(!t||!_)&&"application/x-www-form-urlencoded; charset=UTF-8",data:!!t&&l,beforeSend:function(e){e.setRequestHeader("X-Progressive-URL",f),e.setRequestHeader("X-Requested-From",v___module||v___module_previous),e.setRequestHeader("X-Requested-From-Tab",plugins.navigation.state.module()),v=this.url,get_server_data("loading",1)},complete:function(e){var t=$(".__page");get_server_data("loading",0,1);var n=e.responseText,a=$(n).filter(m);$(m).html(a.html()),get_pjax_event_end(!1,e),!g&&unbuffered_header_processor_allow_scroll()?t.scrollTop(t[0].scrollHeight):t.scrollTop(u);var i=$(".progressing pre > i");i.is(":first-child")&&i.is(":last-child")&&$(".progressing pre").addClass("no_data").find("i:first-child").addClass("label text-center label-transparent-15 text-uppercase"),t.removeClass("progressing static"),$("#headln2c .favorites").remove(),progress.end(),set_onbeforeunload_status(0,1),$("body").removeClass("loading-bg"),unbuffered_header_post(e),t.off("scroll"),core.curModuleFile("package-updates","update.cgi")&&plugins.slider.data.fetch(),v___theme_state_visible&&document.hasFocus()||notifications(theme_language("theme_xhred_global_command_completed"),get_page_title_subtitle(),get_server_data("product")),"webmin_search.cgi"===v___location_file&&t.find(".ui_link.ui_link_empty").remove()}})}function check_selected_text(){return window.getSelection().toString()}function check_location_resource(e,t){return t&&v___location_resource?v___location_resource.includes(v___location_prefix+e):v___location_resource===v___location_prefix+e}function check_current_file(e){return v___location_file==e}function vwTOpx(e){var t=window,n=document,a=n.documentElement,i=n.getElementsByTagName("body")[0];return(t.innerWidth||a.clientWidth||i.clientWidth)*e/100}function vhTOpx(e){var t=window,n=document,a=n.documentElement,i=n.getElementsByTagName("body")[0];return(t.innerHeight||a.clientHeight||i.clientHeight)*e/100}function pxTOvw(e){var t=window,n=document,a=n.documentElement,i=n.getElementsByTagName("body")[0];return 100*e/(t.innerWidth||a.clientWidth||i.clientWidth)}function pxTOvh(e){var t=window,n=document,a=n.documentElement,i=n.getElementsByTagName("body")[0];return 100*e/(t.innerHeight||a.clientHeight||i.clientHeight)}function load_init(){quirks.local_storage.safari(),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-get_available_modules=1",data:!1,dataType:"text",async:$.support.spa,success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);get_server_data("available-modules",JSON.parse(e))}}),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-get_user_level=1",data:!1,dataType:"text",async:$.support.spa,success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);vars.level=e}}),theme_config("load"),page_adjust(settings_leftmenu_width,0),plugins.navigation.lock()}!function(){browser.detect.internet_explorer()>5&&browser.detect.internet_explorer()<=11&&(setTimeout(function(){var e="<p>"+theme_language("theme_xhred_browser_warning")+"</p>";theme_alert(theme_language("theme_xhred_global_warning"),e,!1,"md","danger",!1,"10 modal-ie-warning",0)},2e3),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var a=n.lastIndexOf(e,t);return a!==-1&&a===t}),String.prototype.startsWith||String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.indexOf(e,t)===t}))}(),$.extend($.expr[":"],{containsi:function(e,t,n,a){return(e.textContent||e.innerText||"").toLowerCase().indexOf((n[3]||"").toLowerCase())>=0}}),Object.defineProperty(Array.prototype,"reOrder",{enumerable:!1,value:function(e,t){if(t>=this.length)for(var n=t-this.length;1+n--;)this.push(void 0);return this.splice(t,0,this.splice(e,1)[0]),this}}),function(e){e.fn.simulateUserClick=function(){return this.each(function(){if("createEvent"in document){var e=this.ownerDocument,t=e.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,e.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null),this.dispatchEvent(t)}else this.click()})}}(jQuery),function(e){e.fn.replaceTagName=function(t){for(var n=[],a=this.length;a--;){for(var i=document.createElement(t),r=this[a],s=r.attributes,o=s.length-1;o>=0;o--){var _=s[o];i.setAttribute(_.name,_.value)}i.innerHTML=r.innerHTML,e(r).after(i).remove(),n[a-1]=i}return e(n)}}(jQuery),jQuery.fn.selectText=function(){var e=document,t=this[0];if(e.body.createTextRange){var n=document.body.createTextRange();n.moveToElementText(t),n.select()}else if(window.getSelection){var a=window.getSelection(),n=document.createRange();n.selectNodeContents(t),a.removeAllRanges(),a.addRange(n)}},function(e){e.fn.replaceText=function(t,n,a){return this.each(function(){var i,r,s=this.firstChild,o=[];if(s)do 3===s.nodeType&&(i=s.nodeValue,(r=i.replace(t,n))!==i&&(!a&&/</.test(r)?(e(s).before(r),o.push(s)):s.nodeValue=r));while(s=s.nextSibling)o.length&&e(o).remove()})}}(jQuery),function(e){e.fn.hasScrollBar=function(e){if(this.get(0))return e?this.get(0).scrollWidth>this.width():this.get(0).scrollHeight>this.height()}}(jQuery),$.fn.toggleCheckbox=function(){"checkbox"==$(this).attr("type")&&$(this).prop("checked",!$(this).is(":checked"))},jQuery.fn.confirmation=function(e,t){return e=$.extend({className:"btn-danger",classNameRemove:"",timeout:2500},e),$(this).each(function(n,a){function i(){s.removeClass(e.className).data("confirmed",!1).find(".tmp_question").remove(),e.classNameRemove&&s.addClass(e.classNameRemove)}var r,s=$(a);s.html();s.data("confirmed",!1),s.on("click.confirm",function(n){n.preventDefault(),
s.data("confirmed")?(t.call(s,n),i()):(s.data("confirmed",!0),e.classNameRemove&&s.removeClass(e.classNameRemove),s.append('<em class="tmp_question">?</em>').addClass(e.className).bind("mouseout.confirm",function(){r=setTimeout(i,e.timeout)}).bind("mouseover.confirm",function(){clearTimeout(r)}))}).removeClass(e.className),e.classNameRemove&&s.addClass(e.classNameRemove)}),$(this)},RegExp.quote=function(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},$.fn.contentText=function(e){return $(this).contents().filter(function(){return $(this).text().trim()==e.trim()})},$(function(){var e,t=".blinking-default:not(.hidden)";setInterval(function(){0==e?($(t).css("opacity","1"),e=1):(e=1)&&($(t).css("opacity","0"),e=0)},900)}),$.getScripts=function(e){var t=$.map(e,function(e){return $.getScript(e)});return t.push($.Deferred(function(e){$(e.resolve)})),$.when.apply($,t)}(function(e){var t={},n="table-resizable thead th",a=["dblclick.tmp","mousemove.tmp","mousedown.tmp","mouseup.tmp"];e.fn.resizeableTableColumns=function(i){var r,s,o,_,l=!1,c=v___location_file;if(i&&"string"==typeof i&&(c+=i),!jQuery.isEmptyObject(t))for(var d in t){var f=parseInt(d.replace(c,""))+1,g=t[d];isNaN(f)||e("."+n+":nth-child("+f+")").width(g).css("min-width",g)}e(document).on(a[1],function(e){if(l){var n=s+(e.pageX-r);o.css("min-width",n).width(n),t[c+o.index()]=n}}).on(a[3],function(){l&&(_.removeClass("resizing"),l=!1)}).on(a[2],"."+n+":not(.nonresizable):not(:last-child)",function(t){o=e(this),l=!0,r=t.pageX,s=o.width(),_=o.closest(".table-resizable").addClass("resizing")}).on(a[0],"."+n,function(){e(this).css("min-width","").css("width",""),delete t[c+e(this).index()]}),e(document).one("pjax:complete",function(){theme_unbind(document,a.join(" "))})}}(jQuery));page_init(),load_init(),$(function(){var e=isNaN(parseInt(v___theme_mversion))?1:parseInt(v___theme_mversion);if(e=e>1?"-"+e:String(),console.log("Welcome to Authentic Theme "+v___theme_version+e+(v___debug?" (debug)":String())+"\nhttps://github.com/authentic-theme/authentic-theme"),$.support.pjax&&$.support.spa)snippets.form_input_tester(),snippets.ajax(),snippets.pjax();else if(!$.support.spa){$("head").append('<style id="__tmp_no_overflow">body {overflow: hidden}</style>');var t=".container-fluid";$(t).removeClass("col-lg-10 col-lg-offset-1").addClass("margined-top-15").parents("html").addClass("single_tab"),$(t).wrap('<div id="content" class="__page single-page"></div>'),v___module===v___module_file_manager&&"config.cgi"!==v___location_file&&page.handle.content.preloader()}snippets.datetime.tictac(0,1),quirks.render.apple(),platform.set(),$.support.spa&&(page_display(),0===get_access_level()&&settings_sysinfo_real_time_status&&load.bundle(v___server_extensions_path+"/stats/stats",0,["stats.general.timeout = settings_sysinfo_real_time_timeout","stats.general.query()"]),0==v___user_level&&settings_side_slider_enabled&&settings_side_slider_fixed&&get_server_data("data-slider-fixed","1"),snippets.initial(),setTimeout(function(){plugins.slider.data.fetch()},5e3)),events.window(),events.body(),snippets.tooltips(),plugins.update_notice(),plugins.icons_row(),snippets.form_pre_submitter(),snippets.help_popup(),setTimeout(function(){window.onbeforeunload=function(){if(get_onbeforeunload_status()||get_onbeforeunload_status_native())return progress.end(),!0},$(function(){$.support.spa||progress.end()})},100),setTimeout(function(){theme_alert_charset()},2e3),snippets.page.render(0),setTimeout(function(){v___initial_load=0},1e3),setTimeout(function(){vars.available_modules=get_server_data("available-modules")},1e4)});