All checks were successful
Build containers when image tags change / build-if-image-changed (., web, containers, main container, git.baumann.gr/adebaumann/vui) (push) Successful in 46s
Build containers when image tags change / build-if-image-changed (data-loader, loader, initContainers, init-container, git.baumann.gr/adebaumann/vui-data-loader) (push) Successful in 6s
1 line
345 KiB
JavaScript
1 line
345 KiB
JavaScript
!function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){function n(t){var e=!!t&&"length"in t&&t.length,n=ot.type(t);return"function"!==n&&!ot.isWindow(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function i(t,e,n){if(ot.isFunction(e))return ot.grep(t,function(t,i){return!!e.call(t,i,t)!==n});if(e.nodeType)return ot.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(mt.test(e))return ot.filter(e,t,n);e=ot.filter(e,t)}return ot.grep(t,function(t){return ot.inArray(t,e)>-1!==n})}function s(t,e){do{t=t[e]}while(t&&1!==t.nodeType);return t}function r(){X.addEventListener?(X.removeEventListener("DOMContentLoaded",o),t.removeEventListener("load",o)):(X.detachEvent("onreadystatechange",o),t.detachEvent("onload",o))}function o(){(X.addEventListener||"load"===t.event.type||"complete"===X.readyState)&&(r(),ot.ready())}function a(t,e,n){if(void 0===n&&1===t.nodeType){var i="data-"+e.replace(Tt,"-$1").toLowerCase();if("string"==typeof(n=t.getAttribute(i))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:St.test(n)?ot.parseJSON(n):n)}catch(t){}ot.data(t,e,n)}else n=void 0}return n}function l(t){var e;for(e in t)if(("data"!==e||!ot.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function c(t,e,n,i){if(kt(t)){var s,r,o=ot.expando,a=t.nodeType,l=a?ot.cache:t,c=a?t[o]:t[o]&&o;if(c&&l[c]&&(i||l[c].data)||void 0!==n||"string"!=typeof e)return c||(c=a?t[o]=K.pop()||ot.guid++:o),l[c]||(l[c]=a?{}:{toJSON:ot.noop}),"object"!=typeof e&&"function"!=typeof e||(i?l[c]=ot.extend(l[c],e):l[c].data=ot.extend(l[c].data,e)),r=l[c],i||(r.data||(r.data={}),r=r.data),void 0!==n&&(r[ot.camelCase(e)]=n),"string"==typeof e?null==(s=r[e])&&(s=r[ot.camelCase(e)]):s=r,s}}function u(t,e,n){if(kt(t)){var i,s,r=t.nodeType,o=r?ot.cache:t,a=r?t[ot.expando]:ot.expando;if(o[a]){if(e&&(i=n?o[a]:o[a].data)){s=(e=ot.isArray(e)?e.concat(ot.map(e,ot.camelCase)):e in i?[e]:(e=ot.camelCase(e))in i?[e]:e.split(" ")).length;for(;s--;)delete i[e[s]];if(n?!l(i):!ot.isEmptyObject(i))return}(n||(delete o[a].data,l(o[a])))&&(r?ot.cleanData([t],!0):rt.deleteExpando||o!=o.window?delete o[a]:o[a]=void 0)}}}function d(t,e,n,i){var s,r=1,o=20,a=i?function(){return i.cur()}:function(){return ot.css(t,e,"")},l=a(),c=n&&n[3]||(ot.cssNumber[e]?"":"px"),u=(ot.cssNumber[e]||"px"!==c&&+l)&&Et.exec(ot.css(t,e));if(u&&u[3]!==c){c=c||u[3],n=n||[],u=+l||1;do{u/=r=r||".5",ot.style(t,e,u+c)}while(r!==(r=a()/l)&&1!==r&&--o)}return n&&(u=+u||+l||0,s=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=s)),s}function h(t){var e=Rt.split("|"),n=t.createDocumentFragment();if(n.createElement)for(;e.length;)n.createElement(e.pop());return n}function f(t,e){var n,i,s=0,r=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):void 0;if(!r)for(r=[],n=t.childNodes||t;null!=(i=n[s]);s++)!e||ot.nodeName(i,e)?r.push(i):ot.merge(r,f(i,e));return void 0===e||e&&ot.nodeName(t,e)?ot.merge([t],r):r}function p(t,e){for(var n,i=0;null!=(n=t[i]);i++)ot._data(n,"globalEval",!e||ot._data(e[i],"globalEval"))}function g(t){It.test(t.type)&&(t.defaultChecked=t.checked)}function m(t,e,n,i,s){for(var r,o,a,l,c,u,d,m=t.length,y=h(e),v=[],b=0;b<m;b++)if((o=t[b])||0===o)if("object"===ot.type(o))ot.merge(v,o.nodeType?[o]:o);else if(jt.test(o)){for(l=l||y.appendChild(e.createElement("div")),c=(Mt.exec(o)||["",""])[1].toLowerCase(),d=Lt[c]||Lt._default,l.innerHTML=d[1]+ot.htmlPrefilter(o)+d[2],r=d[0];r--;)l=l.lastChild;if(!rt.leadingWhitespace&&Ot.test(o)&&v.push(e.createTextNode(Ot.exec(o)[0])),!rt.tbody)for(r=(o="table"!==c||Ft.test(o)?"<table>"!==d[1]||Ft.test(o)?0:l:l.firstChild)&&o.childNodes.length;r--;)ot.nodeName(u=o.childNodes[r],"tbody")&&!u.childNodes.length&&o.removeChild(u);for(ot.merge(v,l.childNodes),l.textContent="";l.firstChild;)l.removeChild(l.firstChild);l=y.lastChild}else v.push(e.createTextNode(o));for(l&&y.removeChild(l),rt.appendChecked||ot.grep(f(v,"input"),g),b=0;o=v[b++];)if(i&&ot.inArray(o,i)>-1)s&&s.push(o);else if(a=ot.contains(o.ownerDocument,o),l=f(y.appendChild(o),"script"),a&&p(l),n)for(r=0;o=l[r++];)Pt.test(o.type||"")&&n.push(o);return l=null,y}function y(){return!0}function v(){return!1}function b(){try{return X.activeElement}catch(t){}}function _(t,e,n,i,s,r){var o,a;if("object"==typeof e){"string"!=typeof n&&(i=i||n,n=void 0);for(a in e)_(t,a,n,i,e[a],r);return t}if(null==i&&null==s?(s=n,i=n=void 0):null==s&&("string"==typeof n?(s=i,i=void 0):(s=i,i=n,n=void 0)),!1===s)s=v;else if(!s)return t;return 1===r&&(o=s,(s=function(t){return ot().off(t),o.apply(this,arguments)}).guid=o.guid||(o.guid=ot.guid++)),t.each(function(){ot.event.add(this,e,s,i,n)})}function w(t,e){return ot.nodeName(t,"table")&&ot.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function x(t){return t.type=(null!==ot.find.attr(t,"type"))+"/"+t.type,t}function C(t){var e=Kt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function k(t,e){if(1===e.nodeType&&ot.hasData(t)){var n,i,s,r=ot._data(t),o=ot._data(e,r),a=r.events;if(a){delete o.handle,o.events={};for(n in a)for(i=0,s=a[n].length;i<s;i++)ot.event.add(e,n,a[n][i])}o.data&&(o.data=ot.extend({},o.data))}}function S(t,e){var n,i,s;if(1===e.nodeType){if(n=e.nodeName.toLowerCase(),!rt.noCloneEvent&&e[ot.expando]){s=ot._data(e);for(i in s.events)ot.removeEvent(e,i,s.handle);e.removeAttribute(ot.expando)}"script"===n&&e.text!==t.text?(x(e).text=t.text,C(e)):"object"===n?(e.parentNode&&(e.outerHTML=t.outerHTML),rt.html5Clone&&t.innerHTML&&!ot.trim(e.innerHTML)&&(e.innerHTML=t.innerHTML)):"input"===n&&It.test(t.type)?(e.defaultChecked=e.checked=t.checked,e.value!==t.value&&(e.value=t.value)):"option"===n?e.defaultSelected=e.selected=t.defaultSelected:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}}function T(t,e,n,i){e=J.apply([],e);var s,r,o,a,l,c,u=0,d=t.length,h=d-1,p=e[0],g=ot.isFunction(p);if(g||d>1&&"string"==typeof p&&!rt.checkClone&&Qt.test(p))return t.each(function(s){var r=t.eq(s);g&&(e[0]=p.call(this,s,r.html())),T(r,e,n,i)});if(d&&(c=m(e,t[0].ownerDocument,!1,t,i),s=c.firstChild,1===c.childNodes.length&&(c=s),s||i)){for(o=(a=ot.map(f(c,"script"),x)).length;u<d;u++)r=c,u!==h&&(r=ot.clone(r,!0,!0),o&&ot.merge(a,f(r,"script"))),n.call(t[u],r,u);if(o)for(l=a[a.length-1].ownerDocument,ot.map(a,C),u=0;u<o;u++)r=a[u],Pt.test(r.type||"")&&!ot._data(r,"globalEval")&&ot.contains(l,r)&&(r.src?ot._evalUrl&&ot._evalUrl(r.src):ot.globalEval((r.text||r.textContent||r.innerHTML||"").replace(Xt,"")));c=s=null}return t}function D(t,e,n){for(var i,s=e?ot.filter(e,t):t,r=0;null!=(i=s[r]);r++)n||1!==i.nodeType||ot.cleanData(f(i)),i.parentNode&&(n&&ot.contains(i.ownerDocument,i)&&p(f(i,"script")),i.parentNode.removeChild(i));return t}function E(t,e){var n=ot(e.createElement(t)).appendTo(e.body),i=ot.css(n[0],"display");return n.detach(),i}function $(t){var e=X,n=te[t];return n||("none"!==(n=E(t,e))&&n||((e=((Jt=(Jt||ot("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement))[0].contentWindow||Jt[0].contentDocument).document).write(),e.close(),n=E(t,e),Jt.detach()),te[t]=n),n}function N(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}function A(t){if(t in ge)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=pe.length;n--;)if((t=pe[n]+e)in ge)return t}function I(t,e){for(var n,i,s,r=[],o=0,a=t.length;o<a;o++)(i=t[o]).style&&(r[o]=ot._data(i,"olddisplay"),n=i.style.display,e?(r[o]||"none"!==n||(i.style.display=""),""===i.style.display&&Nt(i)&&(r[o]=ot._data(i,"olddisplay",$(i.nodeName)))):(s=Nt(i),(n&&"none"!==n||!s)&&ot._data(i,"olddisplay",s?n:ot.css(i,"display"))));for(o=0;o<a;o++)(i=t[o]).style&&(e&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=e?r[o]||"":"none"));return t}function M(t,e,n){var i=de.exec(e);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):e}function P(t,e,n,i,s){for(var r=n===(i?"border":"content")?4:"width"===e?1:0,o=0;r<4;r+=2)"margin"===n&&(o+=ot.css(t,n+$t[r],!0,s)),i?("content"===n&&(o-=ot.css(t,"padding"+$t[r],!0,s)),"margin"!==n&&(o-=ot.css(t,"border"+$t[r]+"Width",!0,s))):(o+=ot.css(t,"padding"+$t[r],!0,s),"padding"!==n&&(o+=ot.css(t,"border"+$t[r]+"Width",!0,s)));return o}function O(t,e,n){var i=!0,s="width"===e?t.offsetWidth:t.offsetHeight,r=re(t),o=rt.boxSizing&&"border-box"===ot.css(t,"boxSizing",!1,r);if(s<=0||null==s){if(((s=oe(t,e,r))<0||null==s)&&(s=t.style[e]),ne.test(s))return s;i=o&&(rt.boxSizingReliable()||s===t.style[e]),s=parseFloat(s)||0}return s+P(t,e,n||(o?"border":"content"),i,r)+"px"}function R(t,e,n,i,s){return new R.prototype.init(t,e,n,i,s)}function L(){return t.setTimeout(function(){me=void 0}),me=ot.now()}function j(t,e){var n,i={height:t},s=0;for(e=e?1:0;s<4;s+=2-e)i["margin"+(n=$t[s])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function F(t,e,n){for(var i,s=(H.tweeners[e]||[]).concat(H.tweeners["*"]),r=0,o=s.length;r<o;r++)if(i=s[r].call(n,e,t))return i}function H(t,e,n){var i,s,r=0,o=H.prefilters.length,a=ot.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var e=me||L(),n=Math.max(0,c.startTime+c.duration-e),i=1-(n/c.duration||0),r=0,o=c.tweens.length;r<o;r++)c.tweens[r].run(i);return a.notifyWith(t,[c,i,n]),i<1&&o?n:(a.resolveWith(t,[c]),!1)},c=a.promise({elem:t,props:ot.extend({},e),opts:ot.extend(!0,{specialEasing:{},easing:ot.easing._default},n),originalProperties:e,originalOptions:n,startTime:me||L(),duration:n.duration,tweens:[],createTween:function(e,n){var i=ot.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(i),i},stop:function(e){var n=0,i=e?c.tweens.length:0;if(s)return this;for(s=!0;n<i;n++)c.tweens[n].run(1);return e?(a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c,e])):a.rejectWith(t,[c,e]),this}}),u=c.props;for(function(t,e){var n,i,s,r,o;for(n in t)if(i=ot.camelCase(n),s=e[i],r=t[n],ot.isArray(r)&&(s=r[1],r=t[n]=r[0]),n!==i&&(t[i]=r,delete t[n]),(o=ot.cssHooks[i])&&"expand"in o){r=o.expand(r),delete t[i];for(n in r)n in t||(t[n]=r[n],e[n]=s)}else e[i]=s}(u,c.opts.specialEasing);r<o;r++)if(i=H.prefilters[r].call(c,t,u,c.opts))return ot.isFunction(i.stop)&&(ot._queueHooks(c.elem,c.opts.queue).stop=ot.proxy(i.stop,i)),i;return ot.map(u,F,c),ot.isFunction(c.opts.start)&&c.opts.start.call(t,c),ot.fx.timer(ot.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function W(t){return ot.attr(t,"class")||""}function Y(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,s=0,r=e.toLowerCase().match(wt)||[];if(ot.isFunction(n))for(;i=r[s++];)"+"===i.charAt(0)?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function q(t,e,n,i){function s(a){var l;return r[a]=!0,ot.each(t[a]||[],function(t,a){var c=a(e,n,i);return"string"!=typeof c||o||r[c]?o?!(l=c):void 0:(e.dataTypes.unshift(c),s(c),!1)}),l}var r={},o=t===Ye;return s(e.dataTypes[0])||!r["*"]&&s("*")}function z(t,e){var n,i,s=ot.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((s[i]?t:n||(n={}))[i]=e[i]);return n&&ot.extend(!0,t,n),t}function B(t){return t.style&&t.style.display||ot.css(t,"display")}function U(t,e,n,i){var s;if(ot.isArray(e))ot.each(e,function(e,s){n||Ve.test(t)?i(t,s):U(t+"["+("object"==typeof s&&null!=s?e:"")+"]",s,n,i)});else if(n||"object"!==ot.type(e))i(t,e);else for(s in e)U(t+"["+s+"]",e[s],n,i)}function V(){try{return new t.XMLHttpRequest}catch(t){}}function G(){try{return new t.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function Q(t){return ot.isWindow(t)?t:9===t.nodeType&&(t.defaultView||t.parentWindow)}var K=[],X=t.document,Z=K.slice,J=K.concat,tt=K.push,et=K.indexOf,nt={},it=nt.toString,st=nt.hasOwnProperty,rt={},ot=function(t,e){return new ot.fn.init(t,e)},at=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,lt=/^-ms-/,ct=/-([\da-z])/gi,ut=function(t,e){return e.toUpperCase()};ot.fn=ot.prototype={jquery:"1.12.4",constructor:ot,selector:"",length:0,toArray:function(){return Z.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:Z.call(this)},pushStack:function(t){var e=ot.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t){return ot.each(this,t)},map:function(t){return this.pushStack(ot.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(Z.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:tt,sort:K.sort,splice:K.splice},ot.extend=ot.fn.extend=function(){var t,e,n,i,s,r,o=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof o&&(c=o,o=arguments[a]||{},a++),"object"==typeof o||ot.isFunction(o)||(o={}),a===l&&(o=this,a--);a<l;a++)if(null!=(s=arguments[a]))for(i in s)t=o[i],o!==(n=s[i])&&(c&&n&&(ot.isPlainObject(n)||(e=ot.isArray(n)))?(e?(e=!1,r=t&&ot.isArray(t)?t:[]):r=t&&ot.isPlainObject(t)?t:{},o[i]=ot.extend(c,r,n)):void 0!==n&&(o[i]=n));return o},ot.extend({expando:"jQuery"+("1.12.4"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===ot.type(t)},isArray:Array.isArray||function(t){return"array"===ot.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){var e=t&&t.toString();return!ot.isArray(t)&&e-parseFloat(e)+1>=0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},isPlainObject:function(t){var e;if(!t||"object"!==ot.type(t)||t.nodeType||ot.isWindow(t))return!1;try{if(t.constructor&&!st.call(t,"constructor")&&!st.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}if(!rt.ownFirst)for(e in t)return st.call(t,e);for(e in t);return void 0===e||st.call(t,e)},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?nt[it.call(t)]||"object":typeof t},globalEval:function(e){e&&ot.trim(e)&&(t.execScript||function(e){t.eval.call(t,e)})(e)},camelCase:function(t){return t.replace(lt,"ms-").replace(ct,ut)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var i,s=0;if(n(t))for(i=t.length;s<i&&!1!==e.call(t[s],s,t[s]);s++);else for(s in t)if(!1===e.call(t[s],s,t[s]))break;return t},trim:function(t){return null==t?"":(t+"").replace(at,"")},makeArray:function(t,e){var i=e||[];return null!=t&&(n(Object(t))?ot.merge(i,"string"==typeof t?[t]:t):tt.call(i,t)),i},inArray:function(t,e,n){var i;if(e){if(et)return et.call(e,t,n);for(i=e.length,n=n?n<0?Math.max(0,i+n):n:0;n<i;n++)if(n in e&&e[n]===t)return n}return-1},merge:function(t,e){for(var n=+e.length,i=0,s=t.length;i<n;)t[s++]=e[i++];if(n!=n)for(;void 0!==e[i];)t[s++]=e[i++];return t.length=s,t},grep:function(t,e,n){for(var i=[],s=0,r=t.length,o=!n;s<r;s++)!e(t[s],s)!==o&&i.push(t[s]);return i},map:function(t,e,i){var s,r,o=0,a=[];if(n(t))for(s=t.length;o<s;o++)null!=(r=e(t[o],o,i))&&a.push(r);else for(o in t)null!=(r=e(t[o],o,i))&&a.push(r);return J.apply([],a)},guid:1,proxy:function(t,e){var n,i,s;if("string"==typeof e&&(s=t[e],e=t,t=s),ot.isFunction(t))return n=Z.call(arguments,2),i=function(){return t.apply(e||this,n.concat(Z.call(arguments)))},i.guid=t.guid=t.guid||ot.guid++,i},now:function(){return+new Date},support:rt}),"function"==typeof Symbol&&(ot.fn[Symbol.iterator]=K[Symbol.iterator]),ot.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){nt["[object "+e+"]"]=e.toLowerCase()});var dt=function(t){function e(t,e,n,i){var s,r,o,a,l,c,d,f,p=e&&e.ownerDocument,g=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==g&&9!==g&&11!==g)return n;if(!i&&((e?e.ownerDocument||e:j)!==N&&$(e),e=e||N,I)){if(11!==g&&(c=gt.exec(t)))if(s=c[1]){if(9===g){if(!(o=e.getElementById(s)))return n;if(o.id===s)return n.push(o),n}else if(p&&(o=p.getElementById(s))&&R(e,o)&&o.id===s)return n.push(o),n}else{if(c[2])return K.apply(n,e.getElementsByTagName(t)),n;if((s=c[3])&&b.getElementsByClassName&&e.getElementsByClassName)return K.apply(n,e.getElementsByClassName(s)),n}if(b.qsa&&!q[t+" "]&&(!M||!M.test(t))){if(1!==g)p=e,f=t;else if("object"!==e.nodeName.toLowerCase()){for((a=e.getAttribute("id"))?a=a.replace(yt,"\\$&"):e.setAttribute("id",a=L),r=(d=C(t)).length,l=ut.test(a)?"#"+a:"[id='"+a+"']";r--;)d[r]=l+" "+h(d[r]);f=d.join(","),p=mt.test(t)&&u(e.parentNode)||e}if(f)try{return K.apply(n,p.querySelectorAll(f)),n}catch(t){}finally{a===L&&e.removeAttribute("id")}}}return S(t.replace(rt,"$1"),e,n,i)}function n(){function t(n,i){return e.push(n+" ")>_.cacheLength&&delete t[e.shift()],t[n+" "]=i}var e=[];return t}function i(t){return t[L]=!0,t}function s(t){var e=N.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function r(t,e){for(var n=t.split("|"),i=n.length;i--;)_.attrHandle[n[i]]=e}function o(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||B)-(~t.sourceIndex||B);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function a(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function l(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function c(t){return i(function(e){return e=+e,i(function(n,i){for(var s,r=t([],n.length,e),o=r.length;o--;)n[s=r[o]]&&(n[s]=!(i[s]=n[s]))})})}function u(t){return t&&void 0!==t.getElementsByTagName&&t}function d(){}function h(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function f(t,e,n){var i=e.dir,s=n&&"parentNode"===i,r=H++;return e.first?function(e,n,r){for(;e=e[i];)if(1===e.nodeType||s)return t(e,n,r)}:function(e,n,o){var a,l,c,u=[F,r];if(o){for(;e=e[i];)if((1===e.nodeType||s)&&t(e,n,o))return!0}else for(;e=e[i];)if(1===e.nodeType||s){if(c=e[L]||(e[L]={}),l=c[e.uniqueID]||(c[e.uniqueID]={}),(a=l[i])&&a[0]===F&&a[1]===r)return u[2]=a[2];if(l[i]=u,u[2]=t(e,n,o))return!0}}}function p(t){return t.length>1?function(e,n,i){for(var s=t.length;s--;)if(!t[s](e,n,i))return!1;return!0}:t[0]}function g(t,e,n,i,s){for(var r,o=[],a=0,l=t.length,c=null!=e;a<l;a++)(r=t[a])&&(n&&!n(r,i,s)||(o.push(r),c&&e.push(a)));return o}function m(t,n,s,r,o,a){return r&&!r[L]&&(r=m(r)),o&&!o[L]&&(o=m(o,a)),i(function(i,a,l,c){var u,d,h,f=[],p=[],m=a.length,y=i||function(t,n,i){for(var s=0,r=n.length;s<r;s++)e(t,n[s],i);return i}(n||"*",l.nodeType?[l]:l,[]),v=!t||!i&&n?y:g(y,f,t,l,c),b=s?o||(i?t:m||r)?[]:a:v;if(s&&s(v,b,l,c),r)for(u=g(b,p),r(u,[],l,c),d=u.length;d--;)(h=u[d])&&(b[p[d]]=!(v[p[d]]=h));if(i){if(o||t){if(o){for(u=[],d=b.length;d--;)(h=b[d])&&u.push(v[d]=h);o(null,b=[],u,c)}for(d=b.length;d--;)(h=b[d])&&(u=o?Z(i,h):f[d])>-1&&(i[u]=!(a[u]=h))}}else b=g(b===a?b.splice(m,b.length):b),o?o(null,a,b,c):K.apply(a,b)})}function y(t){for(var e,n,i,s=t.length,r=_.relative[t[0].type],o=r||_.relative[" "],a=r?1:0,l=f(function(t){return t===e},o,!0),c=f(function(t){return Z(e,t)>-1},o,!0),u=[function(t,n,i){var s=!r&&(i||n!==T)||((e=n).nodeType?l(t,n,i):c(t,n,i));return e=null,s}];a<s;a++)if(n=_.relative[t[a].type])u=[f(p(u),n)];else{if((n=_.filter[t[a].type].apply(null,t[a].matches))[L]){for(i=++a;i<s&&!_.relative[t[i].type];i++);return m(a>1&&p(u),a>1&&h(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(rt,"$1"),n,a<i&&y(t.slice(a,i)),i<s&&y(t=t.slice(i)),i<s&&h(t))}u.push(n)}return p(u)}var v,b,_,w,x,C,k,S,T,D,E,$,N,A,I,M,P,O,R,L="sizzle"+1*new Date,j=t.document,F=0,H=0,W=n(),Y=n(),q=n(),z=function(t,e){return t===e&&(E=!0),0},B=1<<31,U={}.hasOwnProperty,V=[],G=V.pop,Q=V.push,K=V.push,X=V.slice,Z=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},J="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",tt="[\\x20\\t\\r\\n\\f]",et="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",nt="\\["+tt+"*("+et+")(?:"+tt+"*([*^$|!~]?=)"+tt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+et+"))|)"+tt+"*\\]",it=":("+et+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+nt+")*)|.*)\\)|)",st=new RegExp(tt+"+","g"),rt=new RegExp("^"+tt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+tt+"+$","g"),ot=new RegExp("^"+tt+"*,"+tt+"*"),at=new RegExp("^"+tt+"*([>+~]|"+tt+")"+tt+"*"),lt=new RegExp("="+tt+"*([^\\]'\"]*?)"+tt+"*\\]","g"),ct=new RegExp(it),ut=new RegExp("^"+et+"$"),dt={ID:new RegExp("^#("+et+")"),CLASS:new RegExp("^\\.("+et+")"),TAG:new RegExp("^("+et+"|[*])"),ATTR:new RegExp("^"+nt),PSEUDO:new RegExp("^"+it),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+tt+"*(even|odd|(([+-]|)(\\d*)n|)"+tt+"*(?:([+-]|)"+tt+"*(\\d+)|))"+tt+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+tt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+tt+"*((?:-\\d)?\\d*)"+tt+"*\\)|)(?=[^-]|$)","i")},ht=/^(?:input|select|textarea|button)$/i,ft=/^h\d$/i,pt=/^[^{]+\{\s*\[native \w/,gt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,mt=/[+~]/,yt=/'|\\/g,vt=new RegExp("\\\\([\\da-f]{1,6}"+tt+"?|("+tt+")|.)","ig"),bt=function(t,e,n){var i="0x"+e-65536;return i!=i||n?e:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},_t=function(){$()};try{K.apply(V=X.call(j.childNodes),j.childNodes),V[j.childNodes.length].nodeType}catch(t){K={apply:V.length?function(t,e){Q.apply(t,X.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}b=e.support={},x=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},$=e.setDocument=function(t){var e,n,i=t?t.ownerDocument||t:j;return i!==N&&9===i.nodeType&&i.documentElement?(N=i,A=N.documentElement,I=!x(N),(n=N.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",_t,!1):n.attachEvent&&n.attachEvent("onunload",_t)),b.attributes=s(function(t){return t.className="i",!t.getAttribute("className")}),b.getElementsByTagName=s(function(t){return t.appendChild(N.createComment("")),!t.getElementsByTagName("*").length}),b.getElementsByClassName=pt.test(N.getElementsByClassName),b.getById=s(function(t){return A.appendChild(t).id=L,!N.getElementsByName||!N.getElementsByName(L).length}),b.getById?(_.find.ID=function(t,e){if(void 0!==e.getElementById&&I){var n=e.getElementById(t);return n?[n]:[]}},_.filter.ID=function(t){var e=t.replace(vt,bt);return function(t){return t.getAttribute("id")===e}}):(delete _.find.ID,_.filter.ID=function(t){var e=t.replace(vt,bt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}}),_.find.TAG=b.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):b.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],s=0,r=e.getElementsByTagName(t);if("*"===t){for(;n=r[s++];)1===n.nodeType&&i.push(n);return i}return r},_.find.CLASS=b.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&I)return e.getElementsByClassName(t)},P=[],M=[],(b.qsa=pt.test(N.querySelectorAll))&&(s(function(t){A.appendChild(t).innerHTML="<a id='"+L+"'></a><select id='"+L+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&M.push("[*^$]="+tt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||M.push("\\["+tt+"*(?:value|"+J+")"),t.querySelectorAll("[id~="+L+"-]").length||M.push("~="),t.querySelectorAll(":checked").length||M.push(":checked"),t.querySelectorAll("a#"+L+"+*").length||M.push(".#.+[+~]")}),s(function(t){var e=N.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&M.push("name"+tt+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||M.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),M.push(",.*:")})),(b.matchesSelector=pt.test(O=A.matches||A.webkitMatchesSelector||A.mozMatchesSelector||A.oMatchesSelector||A.msMatchesSelector))&&s(function(t){b.disconnectedMatch=O.call(t,"div"),O.call(t,"[s!='']:x"),P.push("!=",it)}),M=M.length&&new RegExp(M.join("|")),P=P.length&&new RegExp(P.join("|")),e=pt.test(A.compareDocumentPosition),R=e||pt.test(A.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},z=e?function(t,e){if(t===e)return E=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!b.sortDetached&&e.compareDocumentPosition(t)===n?t===N||t.ownerDocument===j&&R(j,t)?-1:e===N||e.ownerDocument===j&&R(j,e)?1:D?Z(D,t)-Z(D,e):0:4&n?-1:1)}:function(t,e){if(t===e)return E=!0,0;var n,i=0,s=t.parentNode,r=e.parentNode,a=[t],l=[e];if(!s||!r)return t===N?-1:e===N?1:s?-1:r?1:D?Z(D,t)-Z(D,e):0;if(s===r)return o(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)l.unshift(n);for(;a[i]===l[i];)i++;return i?o(a[i],l[i]):a[i]===j?-1:l[i]===j?1:0},N):N},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==N&&$(t),n=n.replace(lt,"='$1']"),b.matchesSelector&&I&&!q[n+" "]&&(!P||!P.test(n))&&(!M||!M.test(n)))try{var i=O.call(t,n);if(i||b.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){}return e(n,N,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==N&&$(t),R(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==N&&$(t);var n=_.attrHandle[e.toLowerCase()],i=n&&U.call(_.attrHandle,e.toLowerCase())?n(t,e,!I):void 0;return void 0!==i?i:b.attributes||!I?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],i=0,s=0;if(E=!b.detectDuplicates,D=!b.sortStable&&t.slice(0),t.sort(z),E){for(;e=t[s++];)e===t[s]&&(i=n.push(s));for(;i--;)t.splice(n[i],1)}return D=null,t},w=e.getText=function(t){var e,n="",i=0,s=t.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=w(t)}else if(3===s||4===s)return t.nodeValue}else for(;e=t[i++];)n+=w(e);return n},(_=e.selectors={cacheLength:50,createPseudo:i,match:dt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(vt,bt),t[3]=(t[3]||t[4]||t[5]||"").replace(vt,bt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return dt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&ct.test(n)&&(e=C(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(vt,bt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=W[t+" "];return e||(e=new RegExp("(^|"+tt+")"+t+"("+tt+"|$)"))&&W(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(s){var r=e.attr(s,t);return null==r?"!="===n:!n||(r+="","="===n?r===i:"!="===n?r!==i:"^="===n?i&&0===r.indexOf(i):"*="===n?i&&r.indexOf(i)>-1:"$="===n?i&&r.slice(-i.length)===i:"~="===n?(" "+r.replace(st," ")+" ").indexOf(i)>-1:"|="===n&&(r===i||r.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,n,i,s){var r="nth"!==t.slice(0,3),o="last"!==t.slice(-4),a="of-type"===e;return 1===i&&0===s?function(t){return!!t.parentNode}:function(e,n,l){var c,u,d,h,f,p,g=r!==o?"nextSibling":"previousSibling",m=e.parentNode,y=a&&e.nodeName.toLowerCase(),v=!l&&!a,b=!1;if(m){if(r){for(;g;){for(h=e;h=h[g];)if(a?h.nodeName.toLowerCase()===y:1===h.nodeType)return!1;p=g="only"===t&&!p&&"nextSibling"}return!0}if(p=[o?m.firstChild:m.lastChild],o&&v){for(b=(f=(c=(u=(d=(h=m)[L]||(h[L]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]||[])[0]===F&&c[1])&&c[2],h=f&&m.childNodes[f];h=++f&&h&&h[g]||(b=f=0)||p.pop();)if(1===h.nodeType&&++b&&h===e){u[t]=[F,f,b];break}}else if(v&&(b=f=(c=(u=(d=(h=e)[L]||(h[L]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]||[])[0]===F&&c[1]),!1===b)for(;(h=++f&&h&&h[g]||(b=f=0)||p.pop())&&((a?h.nodeName.toLowerCase()!==y:1!==h.nodeType)||!++b||(v&&((u=(d=h[L]||(h[L]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]=[F,b]),h!==e)););return(b-=s)===i||b%i==0&&b/i>=0}}},PSEUDO:function(t,n){var s,r=_.pseudos[t]||_.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return r[L]?r(n):r.length>1?(s=[t,t,"",n],_.setFilters.hasOwnProperty(t.toLowerCase())?i(function(t,e){for(var i,s=r(t,n),o=s.length;o--;)t[i=Z(t,s[o])]=!(e[i]=s[o])}):function(t){return r(t,0,s)}):r}},pseudos:{not:i(function(t){var e=[],n=[],s=k(t.replace(rt,"$1"));return s[L]?i(function(t,e,n,i){for(var r,o=s(t,null,i,[]),a=t.length;a--;)(r=o[a])&&(t[a]=!(e[a]=r))}):function(t,i,r){return e[0]=t,s(e,null,r,n),e[0]=null,!n.pop()}}),has:i(function(t){return function(n){return e(t,n).length>0}}),contains:i(function(t){return t=t.replace(vt,bt),function(e){return(e.textContent||e.innerText||w(e)).indexOf(t)>-1}}),lang:i(function(t){return ut.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(vt,bt).toLowerCase(),function(e){var n;do{if(n=I?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===A},focus:function(t){return t===N.activeElement&&(!N.hasFocus||N.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!_.pseudos.empty(t)},header:function(t){return ft.test(t.nodeName)},input:function(t){return ht.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:c(function(){return[0]}),last:c(function(t,e){return[e-1]}),eq:c(function(t,e,n){return[n<0?n+e:n]}),even:c(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:c(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:c(function(t,e,n){for(var i=n<0?n+e:n;--i>=0;)t.push(i);return t}),gt:c(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}}).pseudos.nth=_.pseudos.eq;for(v in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})_.pseudos[v]=a(v);for(v in{submit:!0,reset:!0})_.pseudos[v]=l(v);return d.prototype=_.filters=_.pseudos,_.setFilters=new d,C=e.tokenize=function(t,n){var i,s,r,o,a,l,c,u=Y[t+" "];if(u)return n?0:u.slice(0);for(a=t,l=[],c=_.preFilter;a;){i&&!(s=ot.exec(a))||(s&&(a=a.slice(s[0].length)||a),l.push(r=[])),i=!1,(s=at.exec(a))&&(i=s.shift(),r.push({value:i,type:s[0].replace(rt," ")}),a=a.slice(i.length));for(o in _.filter)!(s=dt[o].exec(a))||c[o]&&!(s=c[o](s))||(i=s.shift(),r.push({value:i,type:o,matches:s}),a=a.slice(i.length));if(!i)break}return n?a.length:a?e.error(t):Y(t,l).slice(0)},k=e.compile=function(t,n){var s,r=[],o=[],a=q[t+" "];if(!a){for(n||(n=C(t)),s=n.length;s--;)(a=y(n[s]))[L]?r.push(a):o.push(a);(a=q(t,function(t,n){var s=n.length>0,r=t.length>0,o=function(i,o,a,l,c){var u,d,h,f=0,p="0",m=i&&[],y=[],v=T,b=i||r&&_.find.TAG("*",c),w=F+=null==v?1:Math.random()||.1,x=b.length;for(c&&(T=o===N||o||c);p!==x&&null!=(u=b[p]);p++){if(r&&u){for(d=0,o||u.ownerDocument===N||($(u),a=!I);h=t[d++];)if(h(u,o||N,a)){l.push(u);break}c&&(F=w)}s&&((u=!h&&u)&&f--,i&&m.push(u))}if(f+=p,s&&p!==f){for(d=0;h=n[d++];)h(m,y,o,a);if(i){if(f>0)for(;p--;)m[p]||y[p]||(y[p]=G.call(l));y=g(y)}K.apply(l,y),c&&!i&&y.length>0&&f+n.length>1&&e.uniqueSort(l)}return c&&(F=w,T=v),m};return s?i(o):o}(o,r))).selector=t}return a},S=e.select=function(t,e,n,i){var s,r,o,a,l,c="function"==typeof t&&t,d=!i&&C(t=c.selector||t);if(n=n||[],1===d.length){if((r=d[0]=d[0].slice(0)).length>2&&"ID"===(o=r[0]).type&&b.getById&&9===e.nodeType&&I&&_.relative[r[1].type]){if(!(e=(_.find.ID(o.matches[0].replace(vt,bt),e)||[])[0]))return n;c&&(e=e.parentNode),t=t.slice(r.shift().value.length)}for(s=dt.needsContext.test(t)?0:r.length;s--&&(o=r[s],!_.relative[a=o.type]);)if((l=_.find[a])&&(i=l(o.matches[0].replace(vt,bt),mt.test(r[0].type)&&u(e.parentNode)||e))){if(r.splice(s,1),!(t=i.length&&h(r)))return K.apply(n,i),n;break}}return(c||k(t,d))(i,e,!I,n,!e||mt.test(t)&&u(e.parentNode)||e),n},b.sortStable=L.split("").sort(z).join("")===L,b.detectDuplicates=!!E,$(),b.sortDetached=s(function(t){return 1&t.compareDocumentPosition(N.createElement("div"))}),s(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||r("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),b.attributes&&s(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||r("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),s(function(t){return null==t.getAttribute("disabled")})||r(J,function(t,e,n){var i;if(!n)return!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),e}(t);ot.find=dt,ot.expr=dt.selectors,ot.expr[":"]=ot.expr.pseudos,ot.uniqueSort=ot.unique=dt.uniqueSort,ot.text=dt.getText,ot.isXMLDoc=dt.isXML,ot.contains=dt.contains;var ht=function(t,e,n){for(var i=[],s=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(s&&ot(t).is(n))break;i.push(t)}return i},ft=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},pt=ot.expr.match.needsContext,gt=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,mt=/^.[^:#\[\.,]*$/;ot.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?ot.find.matchesSelector(i,t)?[i]:[]:ot.find.matches(t,ot.grep(e,function(t){return 1===t.nodeType}))},ot.fn.extend({find:function(t){var e,n=[],i=this,s=i.length;if("string"!=typeof t)return this.pushStack(ot(t).filter(function(){for(e=0;e<s;e++)if(ot.contains(i[e],this))return!0}));for(e=0;e<s;e++)ot.find(t,i[e],n);return n=this.pushStack(s>1?ot.unique(n):n),n.selector=this.selector?this.selector+" "+t:t,n},filter:function(t){return this.pushStack(i(this,t||[],!1))},not:function(t){return this.pushStack(i(this,t||[],!0))},is:function(t){return!!i(this,"string"==typeof t&&pt.test(t)?ot(t):t||[],!1).length}});var yt,vt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(ot.fn.init=function(t,e,n){var i,s;if(!t)return this;if(n=n||yt,"string"==typeof t){if(!(i="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:vt.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof ot?e[0]:e,ot.merge(this,ot.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:X,!0)),gt.test(i[1])&&ot.isPlainObject(e))for(i in e)ot.isFunction(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}if((s=X.getElementById(i[2]))&&s.parentNode){if(s.id!==i[2])return yt.find(t);this.length=1,this[0]=s}return this.context=X,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):ot.isFunction(t)?void 0!==n.ready?n.ready(t):t(ot):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),ot.makeArray(t,this))}).prototype=ot.fn,yt=ot(X);var bt=/^(?:parents|prev(?:Until|All))/,_t={children:!0,contents:!0,next:!0,prev:!0};ot.fn.extend({has:function(t){var e,n=ot(t,this),i=n.length;return this.filter(function(){for(e=0;e<i;e++)if(ot.contains(this,n[e]))return!0})},closest:function(t,e){for(var n,i=0,s=this.length,r=[],o=pt.test(t)||"string"!=typeof t?ot(t,e||this.context):0;i<s;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&ot.find.matchesSelector(n,t))){r.push(n);break}return this.pushStack(r.length>1?ot.uniqueSort(r):r)},index:function(t){return t?"string"==typeof t?ot.inArray(this[0],ot(t)):ot.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(ot.uniqueSort(ot.merge(this.get(),ot(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),ot.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return ht(t,"parentNode")},parentsUntil:function(t,e,n){return ht(t,"parentNode",n)},next:function(t){return s(t,"nextSibling")},prev:function(t){return s(t,"previousSibling")},nextAll:function(t){return ht(t,"nextSibling")},prevAll:function(t){return ht(t,"previousSibling")},nextUntil:function(t,e,n){return ht(t,"nextSibling",n)},prevUntil:function(t,e,n){return ht(t,"previousSibling",n)},siblings:function(t){return ft((t.parentNode||{}).firstChild,t)},children:function(t){return ft(t.firstChild)},contents:function(t){return ot.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:ot.merge([],t.childNodes)}},function(t,e){ot.fn[t]=function(n,i){var s=ot.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(s=ot.filter(i,s)),this.length>1&&(_t[t]||(s=ot.uniqueSort(s)),bt.test(t)&&(s=s.reverse())),this.pushStack(s)}});var wt=/\S+/g;ot.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return ot.each(t.match(wt)||[],function(t,n){e[n]=!0}),e}(t):ot.extend({},t);var e,n,i,s,r=[],o=[],a=-1,l=function(){for(s=t.once,i=e=!0;o.length;a=-1)for(n=o.shift();++a<r.length;)!1===r[a].apply(n[0],n[1])&&t.stopOnFalse&&(a=r.length,n=!1);t.memory||(n=!1),e=!1,s&&(r=n?[]:"")},c={add:function(){return r&&(n&&!e&&(a=r.length-1,o.push(n)),function e(n){ot.each(n,function(n,i){ot.isFunction(i)?t.unique&&c.has(i)||r.push(i):i&&i.length&&"string"!==ot.type(i)&&e(i)})}(arguments),n&&!e&&l()),this},remove:function(){return ot.each(arguments,function(t,e){for(var n;(n=ot.inArray(e,r,n))>-1;)r.splice(n,1),n<=a&&a--}),this},has:function(t){return t?ot.inArray(t,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return s=o=[],r=n="",this},disabled:function(){return!r},lock:function(){return s=!0,n||c.disable(),this},locked:function(){return!!s},fireWith:function(t,n){return s||(n=[t,(n=n||[]).slice?n.slice():n],o.push(n),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},ot.extend({Deferred:function(t){var e=[["resolve","done",ot.Callbacks("once memory"),"resolved"],["reject","fail",ot.Callbacks("once memory"),"rejected"],["notify","progress",ot.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var t=arguments;return ot.Deferred(function(n){ot.each(e,function(e,r){var o=ot.isFunction(t[e])&&t[e];s[r[1]](function(){var t=o&&o.apply(this,arguments);t&&ot.isFunction(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this===i?n.promise():this,o?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?ot.extend(t,i):i}},s={};return i.pipe=i.then,ot.each(e,function(t,r){var o=r[2],a=r[3];i[r[1]]=o.add,a&&o.add(function(){n=a},e[1^t][2].disable,e[2][2].lock),s[r[0]]=function(){return s[r[0]+"With"](this===s?i:this,arguments),this},s[r[0]+"With"]=o.fireWith}),i.promise(s),t&&t.call(s,s),s},when:function(t){var e,n,i,s=0,r=Z.call(arguments),o=r.length,a=1!==o||t&&ot.isFunction(t.promise)?o:0,l=1===a?t:ot.Deferred(),c=function(t,n,i){return function(s){n[t]=this,i[t]=arguments.length>1?Z.call(arguments):s,i===e?l.notifyWith(n,i):--a||l.resolveWith(n,i)}};if(o>1)for(e=new Array(o),n=new Array(o),i=new Array(o);s<o;s++)r[s]&&ot.isFunction(r[s].promise)?r[s].promise().progress(c(s,n,e)).done(c(s,i,r)).fail(l.reject):--a;return a||l.resolveWith(i,r),l.promise()}});var xt;ot.fn.ready=function(t){return ot.ready.promise().done(t),this},ot.extend({isReady:!1,readyWait:1,holdReady:function(t){t?ot.readyWait++:ot.ready(!0)},ready:function(t){(!0===t?--ot.readyWait:ot.isReady)||(ot.isReady=!0,!0!==t&&--ot.readyWait>0||(xt.resolveWith(X,[ot]),ot.fn.triggerHandler&&(ot(X).triggerHandler("ready"),ot(X).off("ready"))))}}),ot.ready.promise=function(e){if(!xt)if(xt=ot.Deferred(),"complete"===X.readyState||"loading"!==X.readyState&&!X.documentElement.doScroll)t.setTimeout(ot.ready);else if(X.addEventListener)X.addEventListener("DOMContentLoaded",o),t.addEventListener("load",o);else{X.attachEvent("onreadystatechange",o),t.attachEvent("onload",o);var n=!1;try{n=null==t.frameElement&&X.documentElement}catch(t){}n&&n.doScroll&&function e(){if(!ot.isReady){try{n.doScroll("left")}catch(n){return t.setTimeout(e,50)}r(),ot.ready()}}()}return xt.promise(e)},ot.ready.promise();var Ct;for(Ct in ot(rt))break;rt.ownFirst="0"===Ct,rt.inlineBlockNeedsLayout=!1,ot(function(){var t,e,n,i;(n=X.getElementsByTagName("body")[0])&&n.style&&(e=X.createElement("div"),(i=X.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(e),void 0!==e.style.zoom&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",rt.inlineBlockNeedsLayout=t=3===e.offsetWidth,t&&(n.style.zoom=1)),n.removeChild(i))}),function(){var t=X.createElement("div");rt.deleteExpando=!0;try{delete t.test}catch(t){rt.deleteExpando=!1}t=null}();var kt=function(t){var e=ot.noData[(t.nodeName+" ").toLowerCase()],n=+t.nodeType||1;return(1===n||9===n)&&(!e||!0!==e&&t.getAttribute("classid")===e)},St=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Tt=/([A-Z])/g;ot.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return!!(t=t.nodeType?ot.cache[t[ot.expando]]:t[ot.expando])&&!l(t)},data:function(t,e,n){return c(t,e,n)},removeData:function(t,e){return u(t,e)},_data:function(t,e,n){return c(t,e,n,!0)},_removeData:function(t,e){return u(t,e,!0)}}),ot.fn.extend({data:function(t,e){var n,i,s,r=this[0],o=r&&r.attributes;if(void 0===t){if(this.length&&(s=ot.data(r),1===r.nodeType&&!ot._data(r,"parsedAttrs"))){for(n=o.length;n--;)o[n]&&0===(i=o[n].name).indexOf("data-")&&a(r,i=ot.camelCase(i.slice(5)),s[i]);ot._data(r,"parsedAttrs",!0)}return s}return"object"==typeof t?this.each(function(){ot.data(this,t)}):arguments.length>1?this.each(function(){ot.data(this,t,e)}):r?a(r,t,ot.data(r,t)):void 0},removeData:function(t){return this.each(function(){ot.removeData(this,t)})}}),ot.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=ot._data(t,e),n&&(!i||ot.isArray(n)?i=ot._data(t,e,ot.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=ot.queue(t,e),i=n.length,s=n.shift(),r=ot._queueHooks(t,e);"inprogress"===s&&(s=n.shift(),i--),s&&("fx"===e&&n.unshift("inprogress"),delete r.stop,s.call(t,function(){ot.dequeue(t,e)},r)),!i&&r&&r.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return ot._data(t,n)||ot._data(t,n,{empty:ot.Callbacks("once memory").add(function(){ot._removeData(t,e+"queue"),ot._removeData(t,n)})})}}),ot.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?ot.queue(this[0],t):void 0===e?this:this.each(function(){var n=ot.queue(this,t,e);ot._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&ot.dequeue(this,t)})},dequeue:function(t){return this.each(function(){ot.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,s=ot.Deferred(),r=this,o=this.length,a=function(){--i||s.resolveWith(r,[r])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";o--;)(n=ot._data(r[o],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),s.promise(e)}}),function(){var t;rt.shrinkWrapBlocks=function(){if(null!=t)return t;t=!1;var e,n,i;return(n=X.getElementsByTagName("body")[0])&&n.style?(e=X.createElement("div"),i=X.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(e),void 0!==e.style.zoom&&(e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",e.appendChild(X.createElement("div")).style.width="5px",t=3!==e.offsetWidth),n.removeChild(i),t):void 0}}();var Dt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Et=new RegExp("^(?:([+-])=|)("+Dt+")([a-z%]*)$","i"),$t=["Top","Right","Bottom","Left"],Nt=function(t,e){return t=e||t,"none"===ot.css(t,"display")||!ot.contains(t.ownerDocument,t)},At=function(t,e,n,i,s,r,o){var a=0,l=t.length,c=null==n;if("object"===ot.type(n)){s=!0;for(a in n)At(t,e,a,n[a],!0,r,o)}else if(void 0!==i&&(s=!0,ot.isFunction(i)||(o=!0),c&&(o?(e.call(t,i),e=null):(c=e,e=function(t,e,n){return c.call(ot(t),n)})),e))for(;a<l;a++)e(t[a],n,o?i:i.call(t[a],a,e(t[a],n)));return s?t:c?e.call(t):l?e(t[0],n):r},It=/^(?:checkbox|radio)$/i,Mt=/<([\w:-]+)/,Pt=/^$|\/(?:java|ecma)script/i,Ot=/^\s+/,Rt="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";!function(){var t=X.createElement("div"),e=X.createDocumentFragment(),n=X.createElement("input");t.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",rt.leadingWhitespace=3===t.firstChild.nodeType,rt.tbody=!t.getElementsByTagName("tbody").length,rt.htmlSerialize=!!t.getElementsByTagName("link").length,rt.html5Clone="<:nav></:nav>"!==X.createElement("nav").cloneNode(!0).outerHTML,n.type="checkbox",n.checked=!0,e.appendChild(n),rt.appendChecked=n.checked,t.innerHTML="<textarea>x</textarea>",rt.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,e.appendChild(t),(n=X.createElement("input")).setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),rt.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,rt.noCloneEvent=!!t.addEventListener,t[ot.expando]=1,rt.attributes=!t.getAttribute(ot.expando)}();var Lt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:rt.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};Lt.optgroup=Lt.option,Lt.tbody=Lt.tfoot=Lt.colgroup=Lt.caption=Lt.thead,Lt.th=Lt.td;var jt=/<|&#?\w+;/,Ft=/<tbody/i;!function(){var e,n,i=X.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})n="on"+e,(rt[e]=n in t)||(i.setAttribute(n,"t"),rt[e]=!1===i.attributes[n].expando);i=null}();var Ht=/^(?:input|select|textarea)$/i,Wt=/^key/,Yt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,qt=/^(?:focusinfocus|focusoutblur)$/,zt=/^([^.]*)(?:\.(.+)|)/;ot.event={global:{},add:function(t,e,n,i,s){var r,o,a,l,c,u,d,h,f,p,g,m=ot._data(t);if(m){for(n.handler&&(n=(l=n).handler,s=l.selector),n.guid||(n.guid=ot.guid++),(o=m.events)||(o=m.events={}),(u=m.handle)||((u=m.handle=function(t){return void 0===ot||t&&ot.event.triggered===t.type?void 0:ot.event.dispatch.apply(u.elem,arguments)}).elem=t),a=(e=(e||"").match(wt)||[""]).length;a--;)f=g=(r=zt.exec(e[a])||[])[1],p=(r[2]||"").split(".").sort(),f&&(c=ot.event.special[f]||{},f=(s?c.delegateType:c.bindType)||f,c=ot.event.special[f]||{},d=ot.extend({type:f,origType:g,data:i,handler:n,guid:n.guid,selector:s,needsContext:s&&ot.expr.match.needsContext.test(s),namespace:p.join(".")},l),(h=o[f])||((h=o[f]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(t,i,p,u)||(t.addEventListener?t.addEventListener(f,u,!1):t.attachEvent&&t.attachEvent("on"+f,u))),c.add&&(c.add.call(t,d),d.handler.guid||(d.handler.guid=n.guid)),s?h.splice(h.delegateCount++,0,d):h.push(d),ot.event.global[f]=!0);t=null}},remove:function(t,e,n,i,s){var r,o,a,l,c,u,d,h,f,p,g,m=ot.hasData(t)&&ot._data(t);if(m&&(u=m.events)){for(c=(e=(e||"").match(wt)||[""]).length;c--;)if(a=zt.exec(e[c])||[],f=g=a[1],p=(a[2]||"").split(".").sort(),f){for(d=ot.event.special[f]||{},h=u[f=(i?d.delegateType:d.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=r=h.length;r--;)o=h[r],!s&&g!==o.origType||n&&n.guid!==o.guid||a&&!a.test(o.namespace)||i&&i!==o.selector&&("**"!==i||!o.selector)||(h.splice(r,1),o.selector&&h.delegateCount--,d.remove&&d.remove.call(t,o));l&&!h.length&&(d.teardown&&!1!==d.teardown.call(t,p,m.handle)||ot.removeEvent(t,f,m.handle),delete u[f])}else for(f in u)ot.event.remove(t,f+e[c],n,i,!0);ot.isEmptyObject(u)&&(delete m.handle,ot._removeData(t,"events"))}},trigger:function(e,n,i,s){var r,o,a,l,c,u,d,h=[i||X],f=st.call(e,"type")?e.type:e,p=st.call(e,"namespace")?e.namespace.split("."):[];if(a=u=i=i||X,3!==i.nodeType&&8!==i.nodeType&&!qt.test(f+ot.event.triggered)&&(f.indexOf(".")>-1&&(f=(p=f.split(".")).shift(),p.sort()),o=f.indexOf(":")<0&&"on"+f,e=e[ot.expando]?e:new ot.Event(f,"object"==typeof e&&e),e.isTrigger=s?2:3,e.namespace=p.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),n=null==n?[e]:ot.makeArray(n,[e]),c=ot.event.special[f]||{},s||!c.trigger||!1!==c.trigger.apply(i,n))){if(!s&&!c.noBubble&&!ot.isWindow(i)){for(l=c.delegateType||f,qt.test(l+f)||(a=a.parentNode);a;a=a.parentNode)h.push(a),u=a;u===(i.ownerDocument||X)&&h.push(u.defaultView||u.parentWindow||t)}for(d=0;(a=h[d++])&&!e.isPropagationStopped();)e.type=d>1?l:c.bindType||f,(r=(ot._data(a,"events")||{})[e.type]&&ot._data(a,"handle"))&&r.apply(a,n),(r=o&&a[o])&&r.apply&&kt(a)&&(e.result=r.apply(a,n),!1===e.result&&e.preventDefault());if(e.type=f,!s&&!e.isDefaultPrevented()&&(!c._default||!1===c._default.apply(h.pop(),n))&&kt(i)&&o&&i[f]&&!ot.isWindow(i)){(u=i[o])&&(i[o]=null),ot.event.triggered=f;try{i[f]()}catch(t){}ot.event.triggered=void 0,u&&(i[o]=u)}return e.result}},dispatch:function(t){t=ot.event.fix(t);var e,n,i,s,r,o=[],a=Z.call(arguments),l=(ot._data(this,"events")||{})[t.type]||[],c=ot.event.special[t.type]||{};if(a[0]=t,t.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,t)){for(o=ot.event.handlers.call(this,t,l),e=0;(s=o[e++])&&!t.isPropagationStopped();)for(t.currentTarget=s.elem,n=0;(r=s.handlers[n++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(r.namespace)||(t.handleObj=r,t.data=r.data,void 0!==(i=((ot.event.special[r.origType]||{}).handle||r.handler).apply(s.elem,a))&&!1===(t.result=i)&&(t.preventDefault(),t.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,i,s,r,o=[],a=e.delegateCount,l=t.target;if(a&&l.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==t.type)){for(i=[],n=0;n<a;n++)void 0===i[s=(r=e[n]).selector+" "]&&(i[s]=r.needsContext?ot(s,this).index(l)>-1:ot.find(s,this,null,[l]).length),i[s]&&i.push(r);i.length&&o.push({elem:l,handlers:i})}return a<e.length&&o.push({elem:this,handlers:e.slice(a)}),o},fix:function(t){if(t[ot.expando])return t;var e,n,i,s=t.type,r=t,o=this.fixHooks[s];for(o||(this.fixHooks[s]=o=Yt.test(s)?this.mouseHooks:Wt.test(s)?this.keyHooks:{}),i=o.props?this.props.concat(o.props):this.props,t=new ot.Event(r),e=i.length;e--;)t[n=i[e]]=r[n];return t.target||(t.target=r.srcElement||X),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey=!!t.metaKey,o.filter?o.filter(t,r):t},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,i,s,r=e.button,o=e.fromElement;return null==t.pageX&&null!=e.clientX&&(s=(i=t.target.ownerDocument||X).documentElement,n=i.body,t.pageX=e.clientX+(s&&s.scrollLeft||n&&n.scrollLeft||0)-(s&&s.clientLeft||n&&n.clientLeft||0),t.pageY=e.clientY+(s&&s.scrollTop||n&&n.scrollTop||0)-(s&&s.clientTop||n&&n.clientTop||0)),!t.relatedTarget&&o&&(t.relatedTarget=o===t.target?e.toElement:o),t.which||void 0===r||(t.which=1&r?1:2&r?3:4&r?2:0),t}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==b()&&this.focus)try{return this.focus(),!1}catch(t){}},delegateType:"focusin"},blur:{trigger:function(){if(this===b()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(ot.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(t){return ot.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n){var i=ot.extend(new ot.Event,n,{type:t,isSimulated:!0});ot.event.trigger(i,null,e),i.isDefaultPrevented()&&n.preventDefault()}},ot.removeEvent=X.removeEventListener?function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)}:function(t,e,n){var i="on"+e;t.detachEvent&&(void 0===t[i]&&(t[i]=null),t.detachEvent(i,n))},ot.Event=function(t,e){if(!(this instanceof ot.Event))return new ot.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?y:v):this.type=t,e&&ot.extend(this,e),this.timeStamp=t&&t.timeStamp||ot.now(),this[ot.expando]=!0},ot.Event.prototype={constructor:ot.Event,isDefaultPrevented:v,isPropagationStopped:v,isImmediatePropagationStopped:v,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=y,t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=y,t&&!this.isSimulated&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=y,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},ot.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){ot.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=t.relatedTarget,s=t.handleObj;return i&&(i===this||ot.contains(this,i))||(t.type=s.origType,n=s.handler.apply(this,arguments),t.type=e),n}}}),rt.submit||(ot.event.special.submit={setup:function(){if(ot.nodeName(this,"form"))return!1;ot.event.add(this,"click._submit keypress._submit",function(t){var e=t.target,n=ot.nodeName(e,"input")||ot.nodeName(e,"button")?ot.prop(e,"form"):void 0;n&&!ot._data(n,"submit")&&(ot.event.add(n,"submit._submit",function(t){t._submitBubble=!0}),ot._data(n,"submit",!0))})},postDispatch:function(t){t._submitBubble&&(delete t._submitBubble,this.parentNode&&!t.isTrigger&&ot.event.simulate("submit",this.parentNode,t))},teardown:function(){if(ot.nodeName(this,"form"))return!1;ot.event.remove(this,"._submit")}}),rt.change||(ot.event.special.change={setup:function(){if(Ht.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(ot.event.add(this,"propertychange._change",function(t){"checked"===t.originalEvent.propertyName&&(this._justChanged=!0)}),ot.event.add(this,"click._change",function(t){this._justChanged&&!t.isTrigger&&(this._justChanged=!1),ot.event.simulate("change",this,t)})),!1;ot.event.add(this,"beforeactivate._change",function(t){var e=t.target;Ht.test(e.nodeName)&&!ot._data(e,"change")&&(ot.event.add(e,"change._change",function(t){!this.parentNode||t.isSimulated||t.isTrigger||ot.event.simulate("change",this.parentNode,t)}),ot._data(e,"change",!0))})},handle:function(t){var e=t.target;if(this!==e||t.isSimulated||t.isTrigger||"radio"!==e.type&&"checkbox"!==e.type)return t.handleObj.handler.apply(this,arguments)},teardown:function(){return ot.event.remove(this,"._change"),!Ht.test(this.nodeName)}}),rt.focusin||ot.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){ot.event.simulate(e,t.target,ot.event.fix(t))};ot.event.special[e]={setup:function(){var i=this.ownerDocument||this,s=ot._data(i,e);s||i.addEventListener(t,n,!0),ot._data(i,e,(s||0)+1)},teardown:function(){var i=this.ownerDocument||this,s=ot._data(i,e)-1;s?ot._data(i,e,s):(i.removeEventListener(t,n,!0),ot._removeData(i,e))}}}),ot.fn.extend({on:function(t,e,n,i){return _(this,t,e,n,i)},one:function(t,e,n,i){return _(this,t,e,n,i,1)},off:function(t,e,n){var i,s;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,ot(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(s in t)this.off(s,e,t[s]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=v),this.each(function(){ot.event.remove(this,t,n,e)})},trigger:function(t,e){return this.each(function(){ot.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return ot.event.trigger(t,e,n,!0)}});var Bt=/ jQuery\d+="(?:null|\d+)"/g,Ut=new RegExp("<(?:"+Rt+")[\\s/>]","i"),Vt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Gt=/<script|<style|<link/i,Qt=/checked\s*(?:[^=]|=\s*.checked.)/i,Kt=/^true\/(.*)/,Xt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Zt=h(X).appendChild(X.createElement("div"));ot.extend({htmlPrefilter:function(t){return t.replace(Vt,"<$1></$2>")},clone:function(t,e,n){var i,s,r,o,a,l=ot.contains(t.ownerDocument,t);if(rt.html5Clone||ot.isXMLDoc(t)||!Ut.test("<"+t.nodeName+">")?r=t.cloneNode(!0):(Zt.innerHTML=t.outerHTML,Zt.removeChild(r=Zt.firstChild)),!(rt.noCloneEvent&&rt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||ot.isXMLDoc(t)))for(i=f(r),a=f(t),o=0;null!=(s=a[o]);++o)i[o]&&S(s,i[o]);if(e)if(n)for(a=a||f(t),i=i||f(r),o=0;null!=(s=a[o]);o++)k(s,i[o]);else k(t,r);return(i=f(r,"script")).length>0&&p(i,!l&&f(t,"script")),i=a=s=null,r},cleanData:function(t,e){for(var n,i,s,r,o=0,a=ot.expando,l=ot.cache,c=rt.attributes,u=ot.event.special;null!=(n=t[o]);o++)if((e||kt(n))&&(s=n[a],r=s&&l[s])){if(r.events)for(i in r.events)u[i]?ot.event.remove(n,i):ot.removeEvent(n,i,r.handle);l[s]&&(delete l[s],c||void 0===n.removeAttribute?n[a]=void 0:n.removeAttribute(a),K.push(s))}}}),ot.fn.extend({domManip:T,detach:function(t){return D(this,t,!0)},remove:function(t){return D(this,t)},text:function(t){return At(this,function(t){return void 0===t?ot.text(this):this.empty().append((this[0]&&this[0].ownerDocument||X).createTextNode(t))},null,t,arguments.length)},append:function(){return T(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){w(this,t).appendChild(t)}})},prepend:function(){return T(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=w(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return T(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return T(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodeType&&ot.cleanData(f(t,!1));t.firstChild;)t.removeChild(t.firstChild);t.options&&ot.nodeName(t,"select")&&(t.options.length=0)}return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return ot.clone(this,t,e)})},html:function(t){return At(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t)return 1===e.nodeType?e.innerHTML.replace(Bt,""):void 0;if("string"==typeof t&&!Gt.test(t)&&(rt.htmlSerialize||!Ut.test(t))&&(rt.leadingWhitespace||!Ot.test(t))&&!Lt[(Mt.exec(t)||["",""])[1].toLowerCase()]){t=ot.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(ot.cleanData(f(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return T(this,arguments,function(e){var n=this.parentNode;ot.inArray(this,t)<0&&(ot.cleanData(f(this)),n&&n.replaceChild(e,this))},t)}}),ot.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){ot.fn[t]=function(t){for(var n,i=0,s=[],r=ot(t),o=r.length-1;i<=o;i++)n=i===o?this:this.clone(!0),ot(r[i])[e](n),tt.apply(s,n.get());return this.pushStack(s)}});var Jt,te={HTML:"block",BODY:"block"},ee=/^margin/,ne=new RegExp("^("+Dt+")(?!px)[a-z%]+$","i"),ie=function(t,e,n,i){var s,r,o={};for(r in e)o[r]=t.style[r],t.style[r]=e[r];s=n.apply(t,i||[]);for(r in e)t.style[r]=o[r];return s},se=X.documentElement;!function(){function e(){var e,u,d=X.documentElement;d.appendChild(l),c.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",n=s=a=!1,i=o=!0,t.getComputedStyle&&(u=t.getComputedStyle(c),n="1%"!==(u||{}).top,a="2px"===(u||{}).marginLeft,s="4px"===(u||{width:"4px"}).width,c.style.marginRight="50%",i="4px"===(u||{marginRight:"4px"}).marginRight,(e=c.appendChild(X.createElement("div"))).style.cssText=c.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",c.style.width="1px",o=!parseFloat((t.getComputedStyle(e)||{}).marginRight),c.removeChild(e)),c.style.display="none",(r=0===c.getClientRects().length)&&(c.style.display="",c.innerHTML="<table><tr><td></td><td>t</td></tr></table>",c.childNodes[0].style.borderCollapse="separate",(e=c.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(r=0===e[0].offsetHeight)&&(e[0].style.display="",e[1].style.display="none",r=0===e[0].offsetHeight)),d.removeChild(l)}var n,i,s,r,o,a,l=X.createElement("div"),c=X.createElement("div");c.style&&(c.style.cssText="float:left;opacity:.5",rt.opacity="0.5"===c.style.opacity,rt.cssFloat=!!c.style.cssFloat,c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",rt.clearCloneStyle="content-box"===c.style.backgroundClip,(l=X.createElement("div")).style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",c.innerHTML="",l.appendChild(c),rt.boxSizing=""===c.style.boxSizing||""===c.style.MozBoxSizing||""===c.style.WebkitBoxSizing,ot.extend(rt,{reliableHiddenOffsets:function(){return null==n&&e(),r},boxSizingReliable:function(){return null==n&&e(),s},pixelMarginRight:function(){return null==n&&e(),i},pixelPosition:function(){return null==n&&e(),n},reliableMarginRight:function(){return null==n&&e(),o},reliableMarginLeft:function(){return null==n&&e(),a}}))}();var re,oe,ae=/^(top|right|bottom|left)$/;t.getComputedStyle?(re=function(e){var n=e.ownerDocument.defaultView;return n&&n.opener||(n=t),n.getComputedStyle(e)},oe=function(t,e,n){var i,s,r,o,a=t.style;return n=n||re(t),""!==(o=n?n.getPropertyValue(e)||n[e]:void 0)&&void 0!==o||ot.contains(t.ownerDocument,t)||(o=ot.style(t,e)),n&&!rt.pixelMarginRight()&&ne.test(o)&&ee.test(e)&&(i=a.width,s=a.minWidth,r=a.maxWidth,a.minWidth=a.maxWidth=a.width=o,o=n.width,a.width=i,a.minWidth=s,a.maxWidth=r),void 0===o?o:o+""}):se.currentStyle&&(re=function(t){return t.currentStyle},oe=function(t,e,n){var i,s,r,o,a=t.style;return n=n||re(t),null==(o=n?n[e]:void 0)&&a&&a[e]&&(o=a[e]),ne.test(o)&&!ae.test(e)&&(i=a.left,(r=(s=t.runtimeStyle)&&s.left)&&(s.left=t.currentStyle.left),a.left="fontSize"===e?"1em":o,o=a.pixelLeft+"px",a.left=i,r&&(s.left=r)),void 0===o?o:o+""||"auto"});var le=/alpha\([^)]*\)/i,ce=/opacity\s*=\s*([^)]*)/i,ue=/^(none|table(?!-c[ea]).+)/,de=new RegExp("^("+Dt+")(.*)$","i"),he={position:"absolute",visibility:"hidden",display:"block"},fe={letterSpacing:"0",fontWeight:"400"},pe=["Webkit","O","Moz","ms"],ge=X.createElement("div").style;ot.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=oe(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:rt.cssFloat?"cssFloat":"styleFloat"},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var s,r,o,a=ot.camelCase(e),l=t.style;if(e=ot.cssProps[a]||(ot.cssProps[a]=A(a)||a),o=ot.cssHooks[e]||ot.cssHooks[a],void 0===n)return o&&"get"in o&&void 0!==(s=o.get(t,!1,i))?s:l[e];if("string"==(r=typeof n)&&(s=Et.exec(n))&&s[1]&&(n=d(t,e,s),r="number"),null!=n&&n==n&&("number"===r&&(n+=s&&s[3]||(ot.cssNumber[a]?"":"px")),rt.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),!(o&&"set"in o&&void 0===(n=o.set(t,n,i)))))try{l[e]=n}catch(t){}}},css:function(t,e,n,i){var s,r,o,a=ot.camelCase(e);return e=ot.cssProps[a]||(ot.cssProps[a]=A(a)||a),(o=ot.cssHooks[e]||ot.cssHooks[a])&&"get"in o&&(r=o.get(t,!0,n)),void 0===r&&(r=oe(t,e,i)),"normal"===r&&e in fe&&(r=fe[e]),""===n||n?(s=parseFloat(r),!0===n||isFinite(s)?s||0:r):r}}),ot.each(["height","width"],function(t,e){ot.cssHooks[e]={get:function(t,n,i){if(n)return ue.test(ot.css(t,"display"))&&0===t.offsetWidth?ie(t,he,function(){return O(t,e,i)}):O(t,e,i)},set:function(t,n,i){var s=i&&re(t);return M(0,n,i?P(t,e,i,rt.boxSizing&&"border-box"===ot.css(t,"boxSizing",!1,s),s):0)}}}),rt.opacity||(ot.cssHooks.opacity={get:function(t,e){return ce.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":e?"1":""},set:function(t,e){var n=t.style,i=t.currentStyle,s=ot.isNumeric(e)?"alpha(opacity="+100*e+")":"",r=i&&i.filter||n.filter||"";n.zoom=1,(e>=1||""===e)&&""===ot.trim(r.replace(le,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===e||i&&!i.filter)||(n.filter=le.test(r)?r.replace(le,s):r+" "+s)}}),ot.cssHooks.marginRight=N(rt.reliableMarginRight,function(t,e){if(e)return ie(t,{display:"inline-block"},oe,[t,"marginRight"])}),ot.cssHooks.marginLeft=N(rt.reliableMarginLeft,function(t,e){if(e)return(parseFloat(oe(t,"marginLeft"))||(ot.contains(t.ownerDocument,t)?t.getBoundingClientRect().left-ie(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}):0))+"px"}),ot.each({margin:"",padding:"",border:"Width"},function(t,e){ot.cssHooks[t+e]={expand:function(n){for(var i=0,s={},r="string"==typeof n?n.split(" "):[n];i<4;i++)s[t+$t[i]+e]=r[i]||r[i-2]||r[0];return s}},ee.test(t)||(ot.cssHooks[t+e].set=M)}),ot.fn.extend({css:function(t,e){return At(this,function(t,e,n){var i,s,r={},o=0;if(ot.isArray(e)){for(i=re(t),s=e.length;o<s;o++)r[e[o]]=ot.css(t,e[o],!1,i);return r}return void 0!==n?ot.style(t,e,n):ot.css(t,e)},t,e,arguments.length>1)},show:function(){return I(this,!0)},hide:function(){return I(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Nt(this)?ot(this).show():ot(this).hide()})}}),ot.Tween=R,(R.prototype={constructor:R,init:function(t,e,n,i,s,r){this.elem=t,this.prop=n,this.easing=s||ot.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=r||(ot.cssNumber[n]?"":"px")},cur:function(){var t=R.propHooks[this.prop];return t&&t.get?t.get(this):R.propHooks._default.get(this)},run:function(t){var e,n=R.propHooks[this.prop];return this.options.duration?this.pos=e=ot.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):R.propHooks._default.set(this),this}}).init.prototype=R.prototype,(R.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=ot.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){ot.fx.step[t.prop]?ot.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[ot.cssProps[t.prop]]&&!ot.cssHooks[t.prop]?t.elem[t.prop]=t.now:ot.style(t.elem,t.prop,t.now+t.unit)}}}).scrollTop=R.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},ot.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},ot.fx=R.prototype.init,ot.fx.step={};var me,ye,ve=/^(?:toggle|show|hide)$/,be=/queueHooks$/;ot.Animation=ot.extend(H,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return d(n.elem,t,Et.exec(e),n),n}]},tweener:function(t,e){ot.isFunction(t)?(e=t,t=["*"]):t=t.match(wt);for(var n,i=0,s=t.length;i<s;i++)n=t[i],H.tweeners[n]=H.tweeners[n]||[],H.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,s,r,o,a,l,c,u=this,d={},h=t.style,f=t.nodeType&&Nt(t),p=ot._data(t,"fxshow");n.queue||(null==(a=ot._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,u.always(function(){u.always(function(){a.unqueued--,ot.queue(t,"fx").length||a.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],"inline"===("none"===(c=ot.css(t,"display"))?ot._data(t,"olddisplay")||$(t.nodeName):c)&&"none"===ot.css(t,"float")&&(rt.inlineBlockNeedsLayout&&"inline"!==$(t.nodeName)?h.zoom=1:h.display="inline-block")),n.overflow&&(h.overflow="hidden",rt.shrinkWrapBlocks()||u.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}));for(i in e)if(s=e[i],ve.exec(s)){if(delete e[i],r=r||"toggle"===s,s===(f?"hide":"show")){if("show"!==s||!p||void 0===p[i])continue;f=!0}d[i]=p&&p[i]||ot.style(t,i)}else c=void 0;if(ot.isEmptyObject(d))"inline"===("none"===c?$(t.nodeName):c)&&(h.display=c);else{p?"hidden"in p&&(f=p.hidden):p=ot._data(t,"fxshow",{}),r&&(p.hidden=!f),f?ot(t).show():u.done(function(){ot(t).hide()}),u.done(function(){var e;ot._removeData(t,"fxshow");for(e in d)ot.style(t,e,d[e])});for(i in d)o=F(f?p[i]:0,i,u),i in p||(p[i]=o.start,f&&(o.end=o.start,o.start="width"===i||"height"===i?1:0))}}],prefilter:function(t,e){e?H.prefilters.unshift(t):H.prefilters.push(t)}}),ot.speed=function(t,e,n){var i=t&&"object"==typeof t?ot.extend({},t):{complete:n||!n&&e||ot.isFunction(t)&&t,duration:t,easing:n&&e||e&&!ot.isFunction(e)&&e};return i.duration=ot.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in ot.fx.speeds?ot.fx.speeds[i.duration]:ot.fx.speeds._default,null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){ot.isFunction(i.old)&&i.old.call(this),i.queue&&ot.dequeue(this,i.queue)},i},ot.fn.extend({fadeTo:function(t,e,n,i){return this.filter(Nt).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var s=ot.isEmptyObject(t),r=ot.speed(e,n,i),o=function(){var e=H(this,ot.extend({},t),r);(s||ot._data(this,"finish"))&&e.stop(!0)};return o.finish=o,s||!1===r.queue?this.each(o):this.queue(r.queue,o)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each(function(){var e=!0,s=null!=t&&t+"queueHooks",r=ot.timers,o=ot._data(this);if(s)o[s]&&o[s].stop&&i(o[s]);else for(s in o)o[s]&&o[s].stop&&be.test(s)&&i(o[s]);for(s=r.length;s--;)r[s].elem!==this||null!=t&&r[s].queue!==t||(r[s].anim.stop(n),e=!1,r.splice(s,1));!e&&n||ot.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=ot._data(this),i=n[t+"queue"],s=n[t+"queueHooks"],r=ot.timers,o=i?i.length:0;for(n.finish=!0,ot.queue(this,t,[]),s&&s.stop&&s.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===t&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;e<o;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),ot.each(["toggle","show","hide"],function(t,e){var n=ot.fn[e];ot.fn[e]=function(t,i,s){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(j(e,!0),t,i,s)}}),ot.each({slideDown:j("show"),slideUp:j("hide"),slideToggle:j("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){ot.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),ot.timers=[],ot.fx.tick=function(){var t,e=ot.timers,n=0;for(me=ot.now();n<e.length;n++)(t=e[n])()||e[n]!==t||e.splice(n--,1);e.length||ot.fx.stop(),me=void 0},ot.fx.timer=function(t){ot.timers.push(t),t()?ot.fx.start():ot.timers.pop()},ot.fx.interval=13,ot.fx.start=function(){ye||(ye=t.setInterval(ot.fx.tick,ot.fx.interval))},ot.fx.stop=function(){t.clearInterval(ye),ye=null},ot.fx.speeds={slow:600,fast:200,_default:400},ot.fn.delay=function(e,n){return e=ot.fx?ot.fx.speeds[e]||e:e,n=n||"fx",this.queue(n,function(n,i){var s=t.setTimeout(n,e);i.stop=function(){t.clearTimeout(s)}})},function(){var t,e=X.createElement("input"),n=X.createElement("div"),i=X.createElement("select"),s=i.appendChild(X.createElement("option"));(n=X.createElement("div")).setAttribute("className","t"),n.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",t=n.getElementsByTagName("a")[0],e.setAttribute("type","checkbox"),n.appendChild(e),(t=n.getElementsByTagName("a")[0]).style.cssText="top:1px",rt.getSetAttribute="t"!==n.className,rt.style=/top/.test(t.getAttribute("style")),rt.hrefNormalized="/a"===t.getAttribute("href"),rt.checkOn=!!e.value,rt.optSelected=s.selected,rt.enctype=!!X.createElement("form").enctype,i.disabled=!0,rt.optDisabled=!s.disabled,(e=X.createElement("input")).setAttribute("value",""),rt.input=""===e.getAttribute("value"),e.value="t",e.setAttribute("type","radio"),rt.radioValue="t"===e.value}();var _e=/\r/g,we=/[\x20\t\r\n\f]+/g;ot.fn.extend({val:function(t){var e,n,i,s=this[0];{if(arguments.length)return i=ot.isFunction(t),this.each(function(n){var s;1===this.nodeType&&(null==(s=i?t.call(this,n,ot(this).val()):t)?s="":"number"==typeof s?s+="":ot.isArray(s)&&(s=ot.map(s,function(t){return null==t?"":t+""})),(e=ot.valHooks[this.type]||ot.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,s,"value")||(this.value=s))});if(s)return(e=ot.valHooks[s.type]||ot.valHooks[s.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(s,"value"))?n:"string"==typeof(n=s.value)?n.replace(_e,""):null==n?"":n}}}),ot.extend({valHooks:{option:{get:function(t){var e=ot.find.attr(t,"value");return null!=e?e:ot.trim(ot.text(t)).replace(we," ")}},select:{get:function(t){for(var e,n,i=t.options,s=t.selectedIndex,r="select-one"===t.type||s<0,o=r?null:[],a=r?s+1:i.length,l=s<0?a:r?s:0;l<a;l++)if(((n=i[l]).selected||l===s)&&(rt.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!ot.nodeName(n.parentNode,"optgroup"))){if(e=ot(n).val(),r)return e;o.push(e)}return o},set:function(t,e){for(var n,i,s=t.options,r=ot.makeArray(e),o=s.length;o--;)if(i=s[o],ot.inArray(ot.valHooks.option.get(i),r)>-1)try{i.selected=n=!0}catch(t){i.scrollHeight}else i.selected=!1;return n||(t.selectedIndex=-1),s}}}}),ot.each(["radio","checkbox"],function(){ot.valHooks[this]={set:function(t,e){if(ot.isArray(e))return t.checked=ot.inArray(ot(t).val(),e)>-1}},rt.checkOn||(ot.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var xe,Ce,ke=ot.expr.attrHandle,Se=/^(?:checked|selected)$/i,Te=rt.getSetAttribute,De=rt.input;ot.fn.extend({attr:function(t,e){return At(this,ot.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){ot.removeAttr(this,t)})}}),ot.extend({attr:function(t,e,n){var i,s,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===t.getAttribute?ot.prop(t,e,n):(1===r&&ot.isXMLDoc(t)||(e=e.toLowerCase(),s=ot.attrHooks[e]||(ot.expr.match.bool.test(e)?Ce:xe)),void 0!==n?null===n?void ot.removeAttr(t,e):s&&"set"in s&&void 0!==(i=s.set(t,n,e))?i:(t.setAttribute(e,n+""),n):s&&"get"in s&&null!==(i=s.get(t,e))?i:null==(i=ot.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!rt.radioValue&&"radio"===e&&ot.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i,s=0,r=e&&e.match(wt);if(r&&1===t.nodeType)for(;n=r[s++];)i=ot.propFix[n]||n,ot.expr.match.bool.test(n)?De&&Te||!Se.test(n)?t[i]=!1:t[ot.camelCase("default-"+n)]=t[i]=!1:ot.attr(t,n,""),t.removeAttribute(Te?n:i)}}),Ce={set:function(t,e,n){return!1===e?ot.removeAttr(t,n):De&&Te||!Se.test(n)?t.setAttribute(!Te&&ot.propFix[n]||n,n):t[ot.camelCase("default-"+n)]=t[n]=!0,n}},ot.each(ot.expr.match.bool.source.match(/\w+/g),function(t,e){var n=ke[e]||ot.find.attr;De&&Te||!Se.test(e)?ke[e]=function(t,e,i){var s,r;return i||(r=ke[e],ke[e]=s,s=null!=n(t,e,i)?e.toLowerCase():null,ke[e]=r),s}:ke[e]=function(t,e,n){if(!n)return t[ot.camelCase("default-"+e)]?e.toLowerCase():null}}),De&&Te||(ot.attrHooks.value={set:function(t,e,n){if(!ot.nodeName(t,"input"))return xe&&xe.set(t,e,n);t.defaultValue=e}}),Te||(xe={set:function(t,e,n){var i=t.getAttributeNode(n);if(i||t.setAttributeNode(i=t.ownerDocument.createAttribute(n)),i.value=e+="","value"===n||e===t.getAttribute(n))return e}},ke.id=ke.name=ke.coords=function(t,e,n){var i;if(!n)return(i=t.getAttributeNode(e))&&""!==i.value?i.value:null},ot.valHooks.button={get:function(t,e){var n=t.getAttributeNode(e);if(n&&n.specified)return n.value},set:xe.set},ot.attrHooks.contenteditable={set:function(t,e,n){xe.set(t,""!==e&&e,n)}},ot.each(["width","height"],function(t,e){ot.attrHooks[e]={set:function(t,n){if(""===n)return t.setAttribute(e,"auto"),n}}})),rt.style||(ot.attrHooks.style={get:function(t){return t.style.cssText||void 0},set:function(t,e){return t.style.cssText=e+""}});var Ee=/^(?:input|select|textarea|button|object)$/i,$e=/^(?:a|area)$/i;ot.fn.extend({prop:function(t,e){return At(this,ot.prop,t,e,arguments.length>1)},removeProp:function(t){return t=ot.propFix[t]||t,this.each(function(){try{this[t]=void 0,delete this[t]}catch(t){}})}}),ot.extend({prop:function(t,e,n){var i,s,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&ot.isXMLDoc(t)||(e=ot.propFix[e]||e,s=ot.propHooks[e]),void 0!==n?s&&"set"in s&&void 0!==(i=s.set(t,n,e))?i:t[e]=n:s&&"get"in s&&null!==(i=s.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=ot.find.attr(t,"tabindex");return e?parseInt(e,10):Ee.test(t.nodeName)||$e.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),rt.hrefNormalized||ot.each(["href","src"],function(t,e){ot.propHooks[e]={get:function(t){return t.getAttribute(e,4)}}}),rt.optSelected||(ot.propHooks.selected={get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),ot.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ot.propFix[this.toLowerCase()]=this}),rt.enctype||(ot.propFix.enctype="encoding");var Ne=/[\t\r\n\f]/g;ot.fn.extend({addClass:function(t){var e,n,i,s,r,o,a,l=0;if(ot.isFunction(t))return this.each(function(e){ot(this).addClass(t.call(this,e,W(this)))});if("string"==typeof t&&t)for(e=t.match(wt)||[];n=this[l++];)if(s=W(n),i=1===n.nodeType&&(" "+s+" ").replace(Ne," ")){for(o=0;r=e[o++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");s!==(a=ot.trim(i))&&ot.attr(n,"class",a)}return this},removeClass:function(t){var e,n,i,s,r,o,a,l=0;if(ot.isFunction(t))return this.each(function(e){ot(this).removeClass(t.call(this,e,W(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(wt)||[];n=this[l++];)if(s=W(n),i=1===n.nodeType&&(" "+s+" ").replace(Ne," ")){for(o=0;r=e[o++];)for(;i.indexOf(" "+r+" ")>-1;)i=i.replace(" "+r+" "," ");s!==(a=ot.trim(i))&&ot.attr(n,"class",a)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):ot.isFunction(t)?this.each(function(n){ot(this).toggleClass(t.call(this,n,W(this),e),e)}):this.each(function(){var e,i,s,r;if("string"===n)for(i=0,s=ot(this),r=t.match(wt)||[];e=r[i++];)s.hasClass(e)?s.removeClass(e):s.addClass(e);else void 0!==t&&"boolean"!==n||((e=W(this))&&ot._data(this,"__className__",e),ot.attr(this,"class",e||!1===t?"":ot._data(this,"__className__")||""))})},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+W(n)+" ").replace(Ne," ").indexOf(e)>-1)return!0;return!1}}),ot.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){ot.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),ot.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}});var Ae=t.location,Ie=ot.now(),Me=/\?/,Pe=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;ot.parseJSON=function(e){if(t.JSON&&t.JSON.parse)return t.JSON.parse(e+"");var n,i=null,s=ot.trim(e+"");return s&&!ot.trim(s.replace(Pe,function(t,e,s,r){return n&&e&&(i=0),0===i?t:(n=s||e,i+=!r-!s,"")}))?Function("return "+s)():ot.error("Invalid JSON: "+e)},ot.parseXML=function(e){var n,i;if(!e||"string"!=typeof e)return null;try{t.DOMParser?(i=new t.DOMParser,n=i.parseFromString(e,"text/xml")):((n=new t.ActiveXObject("Microsoft.XMLDOM")).async="false",n.loadXML(e))}catch(t){n=void 0}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||ot.error("Invalid XML: "+e),n};var Oe=/#.*$/,Re=/([?&])_=[^&]*/,Le=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,je=/^(?:GET|HEAD)$/,Fe=/^\/\//,He=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,We={},Ye={},qe="*/".concat("*"),ze=Ae.href,Be=He.exec(ze.toLowerCase())||[];ot.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ze,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Be[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":qe,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":ot.parseJSON,"text xml":ot.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?z(z(t,ot.ajaxSettings),e):z(ot.ajaxSettings,t)},ajaxPrefilter:Y(We),ajaxTransport:Y(Ye),ajax:function(e,n){function i(e,n,i,s){var r,d,v,b,w,C=n;2!==_&&(_=2,l&&t.clearTimeout(l),u=void 0,a=s||"",x.readyState=e>0?4:0,r=e>=200&&e<300||304===e,i&&(b=function(t,e,n){for(var i,s,r,o,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===s&&(s=t.mimeType||e.getResponseHeader("Content-Type"));if(s)for(o in a)if(a[o]&&a[o].test(s)){l.unshift(o);break}if(l[0]in n)r=l[0];else{for(o in n){if(!l[0]||t.converters[o+" "+l[0]]){r=o;break}i||(i=o)}r=r||i}if(r)return r!==l[0]&&l.unshift(r),n[r]}(h,x,i)),b=function(t,e,n,i){var s,r,o,a,l,c={},u=t.dataTypes.slice();if(u[1])for(o in t.converters)c[o.toLowerCase()]=t.converters[o];for(r=u.shift();r;)if(t.responseFields[r]&&(n[t.responseFields[r]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=r,r=u.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(o=c[l+" "+r]||c["* "+r]))for(s in c)if((a=s.split(" "))[1]===r&&(o=c[l+" "+a[0]]||c["* "+a[0]])){!0===o?o=c[s]:!0!==c[s]&&(r=a[0],u.unshift(a[1]));break}if(!0!==o)if(o&&t.throws)e=o(e);else try{e=o(e)}catch(t){return{state:"parsererror",error:o?t:"No conversion from "+l+" to "+r}}}return{state:"success",data:e}}(h,b,x,r),r?(h.ifModified&&((w=x.getResponseHeader("Last-Modified"))&&(ot.lastModified[o]=w),(w=x.getResponseHeader("etag"))&&(ot.etag[o]=w)),204===e||"HEAD"===h.type?C="nocontent":304===e?C="notmodified":(C=b.state,d=b.data,r=!(v=b.error))):(v=C,!e&&C||(C="error",e<0&&(e=0))),x.status=e,x.statusText=(n||C)+"",r?g.resolveWith(f,[d,C,x]):g.rejectWith(f,[x,C,v]),x.statusCode(y),y=void 0,c&&p.trigger(r?"ajaxSuccess":"ajaxError",[x,h,r?d:v]),m.fireWith(f,[x,C]),c&&(p.trigger("ajaxComplete",[x,h]),--ot.active||ot.event.trigger("ajaxStop")))}"object"==typeof e&&(n=e,e=void 0),n=n||{};var s,r,o,a,l,c,u,d,h=ot.ajaxSetup({},n),f=h.context||h,p=h.context&&(f.nodeType||f.jquery)?ot(f):ot.event,g=ot.Deferred(),m=ot.Callbacks("once memory"),y=h.statusCode||{},v={},b={},_=0,w="canceled",x={readyState:0,getResponseHeader:function(t){var e;if(2===_){if(!d)for(d={};e=Le.exec(a);)d[e[1].toLowerCase()]=e[2];e=d[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===_?a:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return _||(t=b[n]=b[n]||t,v[t]=e),this},overrideMimeType:function(t){return _||(h.mimeType=t),this},statusCode:function(t){var e;if(t)if(_<2)for(e in t)y[e]=[y[e],t[e]];else x.always(t[x.status]);return this},abort:function(t){var e=t||w;return u&&u.abort(e),i(0,e),this}};if(g.promise(x).complete=m.add,x.success=x.done,x.error=x.fail,h.url=((e||h.url||ze)+"").replace(Oe,"").replace(Fe,Be[1]+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=ot.trim(h.dataType||"*").toLowerCase().match(wt)||[""],null==h.crossDomain&&(s=He.exec(h.url.toLowerCase()),h.crossDomain=!(!s||s[1]===Be[1]&&s[2]===Be[2]&&(s[3]||("http:"===s[1]?"80":"443"))===(Be[3]||("http:"===Be[1]?"80":"443")))),h.data&&h.processData&&"string"!=typeof h.data&&(h.data=ot.param(h.data,h.traditional)),q(We,h,n,x),2===_)return x;(c=ot.event&&h.global)&&0==ot.active++&&ot.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!je.test(h.type),o=h.url,h.hasContent||(h.data&&(o=h.url+=(Me.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(h.url=Re.test(o)?o.replace(Re,"$1_="+Ie++):o+(Me.test(o)?"&":"?")+"_="+Ie++)),h.ifModified&&(ot.lastModified[o]&&x.setRequestHeader("If-Modified-Since",ot.lastModified[o]),ot.etag[o]&&x.setRequestHeader("If-None-Match",ot.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||n.contentType)&&x.setRequestHeader("Content-Type",h.contentType),x.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+qe+"; q=0.01":""):h.accepts["*"]);for(r in h.headers)x.setRequestHeader(r,h.headers[r]);if(h.beforeSend&&(!1===h.beforeSend.call(f,x,h)||2===_))return x.abort();w="abort";for(r in{success:1,error:1,complete:1})x[r](h[r]);if(u=q(Ye,h,n,x)){if(x.readyState=1,c&&p.trigger("ajaxSend",[x,h]),2===_)return x;h.async&&h.timeout>0&&(l=t.setTimeout(function(){x.abort("timeout")},h.timeout));try{_=1,u.send(v,i)}catch(t){if(!(_<2))throw t;i(-1,t)}}else i(-1,"No Transport");return x},getJSON:function(t,e,n){return ot.get(t,e,n,"json")},getScript:function(t,e){return ot.get(t,void 0,e,"script")}}),ot.each(["get","post"],function(t,e){ot[e]=function(t,n,i,s){return ot.isFunction(n)&&(s=s||i,i=n,n=void 0),ot.ajax(ot.extend({url:t,type:e,dataType:s,data:n,success:i},ot.isPlainObject(t)&&t))}}),ot._evalUrl=function(t){return ot.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},ot.fn.extend({wrapAll:function(t){if(ot.isFunction(t))return this.each(function(e){ot(this).wrapAll(t.call(this,e))});if(this[0]){var e=ot(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t}).append(this)}return this},wrapInner:function(t){return ot.isFunction(t)?this.each(function(e){ot(this).wrapInner(t.call(this,e))}):this.each(function(){var e=ot(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=ot.isFunction(t);return this.each(function(n){ot(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){ot.nodeName(this,"body")||ot(this).replaceWith(this.childNodes)}).end()}}),ot.expr.filters.hidden=function(t){return rt.reliableHiddenOffsets()?t.offsetWidth<=0&&t.offsetHeight<=0&&!t.getClientRects().length:function(t){if(!ot.contains(t.ownerDocument||X,t))return!0;for(;t&&1===t.nodeType;){if("none"===B(t)||"hidden"===t.type)return!0;t=t.parentNode}return!1}(t)},ot.expr.filters.visible=function(t){return!ot.expr.filters.hidden(t)};var Ue=/%20/g,Ve=/\[\]$/,Ge=/\r?\n/g,Qe=/^(?:submit|button|image|reset|file)$/i,Ke=/^(?:input|select|textarea|keygen)/i;ot.param=function(t,e){var n,i=[],s=function(t,e){e=ot.isFunction(e)?e():null==e?"":e,i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=ot.ajaxSettings&&ot.ajaxSettings.traditional),ot.isArray(t)||t.jquery&&!ot.isPlainObject(t))ot.each(t,function(){s(this.name,this.value)});else for(n in t)U(n,t[n],e,s);return i.join("&").replace(Ue,"+")},ot.fn.extend({serialize:function(){return ot.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=ot.prop(this,"elements");return t?ot.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!ot(this).is(":disabled")&&Ke.test(this.nodeName)&&!Qe.test(t)&&(this.checked||!It.test(t))}).map(function(t,e){var n=ot(this).val();return null==n?null:ot.isArray(n)?ot.map(n,function(t){return{name:e.name,value:t.replace(Ge,"\r\n")}}):{name:e.name,value:n.replace(Ge,"\r\n")}}).get()}}),ot.ajaxSettings.xhr=void 0!==t.ActiveXObject?function(){return this.isLocal?G():X.documentMode>8?V():/^(get|post|head|put|delete|options)$/i.test(this.type)&&V()||G()}:V;var Xe=0,Ze={},Je=ot.ajaxSettings.xhr();t.attachEvent&&t.attachEvent("onunload",function(){for(var t in Ze)Ze[t](void 0,!0)}),rt.cors=!!Je&&"withCredentials"in Je,(Je=rt.ajax=!!Je)&&ot.ajaxTransport(function(e){if(!e.crossDomain||rt.cors){var n;return{send:function(i,s){var r,o=e.xhr(),a=++Xe;if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(r in e.xhrFields)o[r]=e.xhrFields[r];e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(r in i)void 0!==i[r]&&o.setRequestHeader(r,i[r]+"");o.send(e.hasContent&&e.data||null),n=function(t,i){var r,l,c;if(n&&(i||4===o.readyState))if(delete Ze[a],n=void 0,o.onreadystatechange=ot.noop,i)4!==o.readyState&&o.abort();else{c={},r=o.status,"string"==typeof o.responseText&&(c.text=o.responseText);try{l=o.statusText}catch(t){l=""}r||!e.isLocal||e.crossDomain?1223===r&&(r=204):r=c.text?200:404}c&&s(r,l,c,o.getAllResponseHeaders())},e.async?4===o.readyState?t.setTimeout(n):o.onreadystatechange=Ze[a]=n:n()},abort:function(){n&&n(void 0,!0)}}}}),ot.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return ot.globalEval(t),t}}}),ot.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),ot.ajaxTransport("script",function(t){if(t.crossDomain){var e,n=X.head||ot("head")[0]||X.documentElement;return{send:function(i,s){(e=X.createElement("script")).async=!0,t.scriptCharset&&(e.charset=t.scriptCharset),e.src=t.url,e.onload=e.onreadystatechange=function(t,n){(n||!e.readyState||/loaded|complete/.test(e.readyState))&&(e.onload=e.onreadystatechange=null,e.parentNode&&e.parentNode.removeChild(e),e=null,n||s(200,"success"))},n.insertBefore(e,n.firstChild)},abort:function(){e&&e.onload(void 0,!0)}}}});var tn=[],en=/(=)\?(?=&|$)|\?\?/;ot.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=tn.pop()||ot.expando+"_"+Ie++;return this[t]=!0,t}}),ot.ajaxPrefilter("json jsonp",function(e,n,i){var s,r,o,a=!1!==e.jsonp&&(en.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&en.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return s=e.jsonpCallback=ot.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(en,"$1"+s):!1!==e.jsonp&&(e.url+=(Me.test(e.url)?"&":"?")+e.jsonp+"="+s),e.converters["script json"]=function(){return o||ot.error(s+" was not called"),o[0]},e.dataTypes[0]="json",r=t[s],t[s]=function(){o=arguments},i.always(function(){void 0===r?ot(t).removeProp(s):t[s]=r,e[s]&&(e.jsonpCallback=n.jsonpCallback,tn.push(s)),o&&ot.isFunction(r)&&r(o[0]),o=r=void 0}),"script"}),ot.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||X;var i=gt.exec(t),s=!n&&[];return i?[e.createElement(i[1])]:(i=m([t],e,s),s&&s.length&&ot(s).remove(),ot.merge([],i.childNodes))};var nn=ot.fn.load;ot.fn.load=function(t,e,n){if("string"!=typeof t&&nn)return nn.apply(this,arguments);var i,s,r,o=this,a=t.indexOf(" ");return a>-1&&(i=ot.trim(t.slice(a,t.length)),t=t.slice(0,a)),ot.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(s="POST"),o.length>0&&ot.ajax({url:t,type:s||"GET",dataType:"html",data:e}).done(function(t){r=arguments,o.html(i?ot("<div>").append(ot.parseHTML(t)).find(i):t)}).always(n&&function(t,e){o.each(function(){n.apply(this,r||[t.responseText,e,t])})}),this},ot.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){ot.fn[e]=function(t){return this.on(e,t)}}),ot.expr.filters.animated=function(t){return ot.grep(ot.timers,function(e){return t===e.elem}).length},ot.offset={setOffset:function(t,e,n){var i,s,r,o,a,l,c=ot.css(t,"position"),u=ot(t),d={};"static"===c&&(t.style.position="relative"),a=u.offset(),r=ot.css(t,"top"),l=ot.css(t,"left"),("absolute"===c||"fixed"===c)&&ot.inArray("auto",[r,l])>-1?(o=(i=u.position()).top,s=i.left):(o=parseFloat(r)||0,s=parseFloat(l)||0),ot.isFunction(e)&&(e=e.call(t,n,ot.extend({},a))),null!=e.top&&(d.top=e.top-a.top+o),null!=e.left&&(d.left=e.left-a.left+s),"using"in e?e.using.call(t,d):u.css(d)}},ot.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ot.offset.setOffset(this,t,e)});var e,n,i={top:0,left:0},s=this[0],r=s&&s.ownerDocument;if(r)return e=r.documentElement,ot.contains(e,s)?(void 0!==s.getBoundingClientRect&&(i=s.getBoundingClientRect()),n=Q(r),{top:i.top+(n.pageYOffset||e.scrollTop)-(e.clientTop||0),left:i.left+(n.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):i},position:function(){if(this[0]){var t,e,n={top:0,left:0},i=this[0];return"fixed"===ot.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),ot.nodeName(t[0],"html")||(n=t.offset()),n.top+=ot.css(t[0],"borderTopWidth",!0),n.left+=ot.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-ot.css(i,"marginTop",!0),left:e.left-n.left-ot.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&!ot.nodeName(t,"html")&&"static"===ot.css(t,"position");)t=t.offsetParent;return t||se})}}),ot.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n=/Y/.test(e);ot.fn[t]=function(i){return At(this,function(t,i,s){var r=Q(t);if(void 0===s)return r?e in r?r[e]:r.document.documentElement[i]:t[i];r?r.scrollTo(n?ot(r).scrollLeft():s,n?s:ot(r).scrollTop()):t[i]=s},t,i,arguments.length,null)}}),ot.each(["top","left"],function(t,e){ot.cssHooks[e]=N(rt.pixelPosition,function(t,n){if(n)return n=oe(t,e),ne.test(n)?ot(t).position()[e]+"px":n})}),ot.each({Height:"height",Width:"width"},function(t,e){ot.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,i){ot.fn[i]=function(i,s){var r=arguments.length&&(n||"boolean"!=typeof i),o=n||(!0===i||!0===s?"margin":"border");return At(this,function(e,n,i){var s;return ot.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(s=e.documentElement,Math.max(e.body["scroll"+t],s["scroll"+t],e.body["offset"+t],s["offset"+t],s["client"+t])):void 0===i?ot.css(e,n,o):ot.style(e,n,i,o)},e,r?i:void 0,r,null)}})}),ot.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}}),ot.fn.size=function(){return this.length},ot.fn.andSelf=ot.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return ot});var sn=t.jQuery,rn=t.$;return ot.noConflict=function(e){return t.$===ot&&(t.$=rn),e&&t.jQuery===ot&&(t.jQuery=sn),ot},e||(t.jQuery=t.$=ot),ot}),function(){var t,e,n,i,s,r={}.hasOwnProperty;(i=function(){function t(){this.options_index=0,this.parsed=[]}return t.prototype.add_node=function(t){return"OPTGROUP"===t.nodeName.toUpperCase()?this.add_group(t):this.add_option(t)},t.prototype.add_group=function(t){var e,n,i,s,r,o;for(e=this.parsed.length,this.parsed.push({array_index:e,group:!0,label:this.escapeExpression(t.label),children:0,disabled:t.disabled}),o=[],i=0,s=(r=t.childNodes).length;i<s;i++)n=r[i],o.push(this.add_option(n,e,t.disabled));return o},t.prototype.add_option=function(t,e,n){if("OPTION"===t.nodeName.toUpperCase())return""!==t.text?(null!=e&&(this.parsed[e].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:t.value,text:t.text,html:t.innerHTML,selected:t.selected,disabled:!0===n?n:t.disabled,group_array_index:e,classes:t.className,style:t.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1},t.prototype.escapeExpression=function(t){var e,n;return null==t||!1===t?"":/[\&\<\>\"\'\`]/.test(t)?(e={"<":"<",">":">",'"':""","'":"'","`":"`"},n=/&(?!\w+;)|[\<\>\"\'\`]/g,t.replace(n,function(t){return e[t]||"&"})):t},t}()).select_to_array=function(t){var e,n,s,r,o;for(n=new i,s=0,r=(o=t.childNodes).length;s<r;s++)e=o[s],n.add_node(e);return n.parsed},e=function(){function t(e,n){this.form_field=e,this.options=null!=n?n:{},t.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers())}return t.prototype.set_default_values=function(){var t=this;return this.click_test_action=function(e){return t.test_active_click(e)},this.activate_action=function(e){return t.activate_field(e)},this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options[0]&&""===this.form_field.options[0].text&&this.options.allow_single_deselect,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null==this.options.enable_split_word_search||this.options.enable_split_word_search,this.group_search=null==this.options.group_search||this.options.group_search,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=null==this.options.single_backstroke_delete||this.options.single_backstroke_delete,this.max_selected_options=this.options.max_selected_options||1/0,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=null==this.options.display_selected_options||this.options.display_selected_options,this.display_disabled_options=null==this.options.display_disabled_options||this.options.display_disabled_options},t.prototype.set_default_text=function(){return this.form_field.getAttribute("data-placeholder")?this.default_text=this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.default_text=this.options.placeholder_text_multiple||this.options.placeholder_text||t.default_multiple_text:this.default_text=this.options.placeholder_text_single||this.options.placeholder_text||t.default_single_text,this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||t.default_no_result_text},t.prototype.mouse_enter=function(){return this.mouse_on_container=!0},t.prototype.mouse_leave=function(){return this.mouse_on_container=!1},t.prototype.input_focus=function(t){var e=this;if(this.is_multiple){if(!this.active_field)return setTimeout(function(){return e.container_mousedown()},50)}else if(!this.active_field)return this.activate_field()},t.prototype.input_blur=function(t){var e=this;if(!this.mouse_on_container)return this.active_field=!1,setTimeout(function(){return e.blur_test()},100)},t.prototype.results_option_build=function(t){var e,n,i,s,r;for(e="",i=0,s=(r=this.results_data).length;i<s;i++)(n=r[i]).group?e+=this.result_add_group(n):e+=this.result_add_option(n),(null!=t?t.first:void 0)&&(n.selected&&this.is_multiple?this.choice_build(n):n.selected&&!this.is_multiple&&this.single_set_selected_text(n.text));return e},t.prototype.result_add_option=function(t){var e,n;return t.search_match&&this.include_option_in_results(t)?(e=[],t.disabled||t.selected&&this.is_multiple||e.push("active-result"),!t.disabled||t.selected&&this.is_multiple||e.push("disabled-result"),t.selected&&e.push("result-selected"),null!=t.group_array_index&&e.push("group-option"),""!==t.classes&&e.push(t.classes),n=document.createElement("li"),n.className=e.join(" "),n.style.cssText=t.style,n.setAttribute("data-option-array-index",t.array_index),n.innerHTML=t.search_text,this.outerHTML(n)):""},t.prototype.result_add_group=function(t){var e;return(t.search_match||t.group_match)&&t.active_options>0?(e=document.createElement("li"),e.className="group-result",e.innerHTML=t.search_text,this.outerHTML(e)):""},t.prototype.results_update_field=function(){if(this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing)return this.winnow_results()},t.prototype.reset_single_select_options=function(){var t,e,n,i,s;for(s=[],e=0,n=(i=this.results_data).length;e<n;e++)(t=i[e]).selected?s.push(t.selected=!1):s.push(void 0);return s},t.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},t.prototype.results_search=function(t){return this.results_showing?this.winnow_results():this.results_show()},t.prototype.winnow_results=function(){var t,e,n,i,s,r,o,a,l,c,u,d,h;for(this.no_results_clear(),s=0,t=(o=this.get_search_text()).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),i=this.search_contains?"":"^",n=new RegExp(i+t,"i"),c=new RegExp(t,"i"),u=0,d=(h=this.results_data).length;u<d;u++)(e=h[u]).search_match=!1,r=null,this.include_option_in_results(e)&&(e.group&&(e.group_match=!1,e.active_options=0),null!=e.group_array_index&&this.results_data[e.group_array_index]&&(0===(r=this.results_data[e.group_array_index]).active_options&&r.search_match&&(s+=1),r.active_options+=1),e.group&&!this.group_search||(e.search_text=e.group?e.label:e.html,e.search_match=this.search_string_match(e.search_text,n),e.search_match&&!e.group&&(s+=1),e.search_match?(o.length&&(a=e.search_text.search(c),l=e.search_text.substr(0,a+o.length)+"</em>"+e.search_text.substr(a+o.length),e.search_text=l.substr(0,a)+"<em>"+l.substr(a)),null!=r&&(r.group_match=!0)):null!=e.group_array_index&&this.results_data[e.group_array_index].search_match&&(e.search_match=!0)));return this.result_clear_highlight(),s<1&&o.length?(this.update_results_content(""),this.no_results(o)):(this.update_results_content(this.results_option_build()),this.winnow_results_set_highlight())},t.prototype.search_string_match=function(t,e){var n,i,s,r;if(e.test(t))return!0;if(this.enable_split_word_search&&(t.indexOf(" ")>=0||0===t.indexOf("["))&&(i=t.replace(/\[|\]/g,"").split(" ")).length)for(s=0,r=i.length;s<r;s++)if(n=i[s],e.test(n))return!0},t.prototype.choices_count=function(){var t,e,n;if(null!=this.selected_option_count)return this.selected_option_count;for(this.selected_option_count=0,t=0,e=(n=this.form_field.options).length;t<e;t++)n[t].selected&&(this.selected_option_count+=1);return this.selected_option_count},t.prototype.choices_click=function(t){if(t.preventDefault(),!this.results_showing&&!this.is_disabled)return this.results_show()},t.prototype.keyup_checker=function(t){var e,n;switch(e=null!=(n=t.which)?n:t.keyCode,this.search_field_scale(),e){case 8:if(this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0)return this.keydown_backstroke();if(!this.pending_backstroke)return this.result_clear_highlight(),this.results_search();break;case 13:if(t.preventDefault(),this.results_showing)return this.result_select(t);break;case 27:return this.results_showing&&this.results_hide(),!0;case 9:case 38:case 40:case 16:case 91:case 17:break;default:return this.results_search()}},t.prototype.clipboard_event_checker=function(t){var e=this;return setTimeout(function(){return e.results_search()},50)},t.prototype.container_width=function(){return null!=this.options.width?this.options.width:this.form_field.offsetWidth+"px"},t.prototype.include_option_in_results=function(t){return!(this.is_multiple&&!this.display_selected_options&&t.selected)&&(!(!this.display_disabled_options&&t.disabled)&&!t.empty)},t.prototype.search_results_touchstart=function(t){return this.touch_started=!0,this.search_results_mouseover(t)},t.prototype.search_results_touchmove=function(t){return this.touch_started=!1,this.search_results_mouseout(t)},t.prototype.search_results_touchend=function(t){if(this.touch_started)return this.search_results_mouseup(t)},t.prototype.outerHTML=function(t){var e;return t.outerHTML?t.outerHTML:((e=document.createElement("div")).appendChild(t),e.innerHTML)},t.browser_is_supported=function(){return"Microsoft Internet Explorer"===window.navigator.appName?document.documentMode>=8:!/iP(od|hone)/i.test(window.navigator.userAgent)&&(!/Android/i.test(window.navigator.userAgent)||!/Mobile/i.test(window.navigator.userAgent))},t.default_multiple_text="Select Some Options",t.default_single_text="Select an Option",t.default_no_result_text="No results match",t}(),(t=jQuery).fn.extend({chosen:function(i){return e.browser_is_supported()?this.each(function(e){var s,r;r=(s=t(this)).data("chosen"),"destroy"===i&&r?r.destroy():r||s.data("chosen",new n(this,i))}):this}}),n=function(n){function o(){return s=o.__super__.constructor.apply(this,arguments)}return function(t,e){function n(){this.constructor=t}for(var i in e)r.call(e,i)&&(t[i]=e[i]);n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(o,e),o.prototype.setup=function(){return this.form_field_jq=t(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex,this.is_rtl=this.form_field_jq.hasClass("chosen-rtl")},o.prototype.set_up_html=function(){var e,n;return(e=["chosen-container"]).push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&e.push(this.form_field.className),this.is_rtl&&e.push("chosen-rtl"),n={class:e.join(" "),style:"width: "+this.container_width()+";",title:this.form_field.title},this.form_field.id.length&&(n.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=t("<div />",n),this.is_multiple?this.container.html('<ul class="chosen-choices"><li class="search-field"><input type="text" value="'+this.default_text+'" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chosen-drop"><ul class="chosen-results"></ul></div>'):this.container.html('<a class="chosen-single chosen-default" tabindex="-1"><span>'+this.default_text+'</span><div><b></b></div></a><div class="chosen-drop"><div class="chosen-search"><input type="text" autocomplete="off" /></div><ul class="chosen-results"></ul></div>'),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior(),this.form_field_jq.trigger("chosen:ready",{chosen:this})},o.prototype.register_observers=function(){var t=this;return this.container.bind("mousedown.chosen",function(e){t.container_mousedown(e)}),this.container.bind("mouseup.chosen",function(e){t.container_mouseup(e)}),this.container.bind("mouseenter.chosen",function(e){t.mouse_enter(e)}),this.container.bind("mouseleave.chosen",function(e){t.mouse_leave(e)}),this.search_results.bind("mouseup.chosen",function(e){t.search_results_mouseup(e)}),this.search_results.bind("mouseover.chosen",function(e){t.search_results_mouseover(e)}),this.search_results.bind("mouseout.chosen",function(e){t.search_results_mouseout(e)}),this.search_results.bind("mousewheel.chosen DOMMouseScroll.chosen",function(e){t.search_results_mousewheel(e)}),this.search_results.bind("touchstart.chosen",function(e){t.search_results_touchstart(e)}),this.search_results.bind("touchmove.chosen",function(e){t.search_results_touchmove(e)}),this.search_results.bind("touchend.chosen",function(e){t.search_results_touchend(e)}),this.form_field_jq.bind("chosen:updated.chosen",function(e){t.results_update_field(e)}),this.form_field_jq.bind("chosen:activate.chosen",function(e){t.activate_field(e)}),this.form_field_jq.bind("chosen:open.chosen",function(e){t.container_mousedown(e)}),this.form_field_jq.bind("chosen:close.chosen",function(e){t.input_blur(e)}),this.search_field.bind("blur.chosen",function(e){t.input_blur(e)}),this.search_field.bind("keyup.chosen",function(e){t.keyup_checker(e)}),this.search_field.bind("keydown.chosen",function(e){t.keydown_checker(e)}),this.search_field.bind("focus.chosen",function(e){t.input_focus(e)}),this.search_field.bind("cut.chosen",function(e){t.clipboard_event_checker(e)}),this.search_field.bind("paste.chosen",function(e){t.clipboard_event_checker(e)}),this.is_multiple?this.search_choices.bind("click.chosen",function(e){t.choices_click(e)}):this.container.bind("click.chosen",function(t){t.preventDefault()})},o.prototype.destroy=function(){return t(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},o.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field_jq[0].disabled,this.is_disabled?(this.container.addClass("chosen-disabled"),this.search_field[0].disabled=!0,this.is_multiple||this.selected_item.unbind("focus.chosen",this.activate_action),this.close_field()):(this.container.removeClass("chosen-disabled"),this.search_field[0].disabled=!1,this.is_multiple?void 0:this.selected_item.bind("focus.chosen",this.activate_action))},o.prototype.container_mousedown=function(e){if(!this.is_disabled&&(e&&"mousedown"===e.type&&!this.results_showing&&e.preventDefault(),null==e||!t(e.target).hasClass("search-choice-close")))return this.active_field?this.is_multiple||!e||t(e.target)[0]!==this.selected_item[0]&&!t(e.target).parents("a.chosen-single").length||(e.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),t(this.container[0].ownerDocument).bind("click.chosen",this.click_test_action),this.results_show()),this.activate_field()},o.prototype.container_mouseup=function(t){if("ABBR"===t.target.nodeName&&!this.is_disabled)return this.results_reset(t)},o.prototype.search_results_mousewheel=function(t){var e;if(t.originalEvent&&(e=-t.originalEvent.wheelDelta||t.originalEvent.detail),null!=e)return t.preventDefault(),"DOMMouseScroll"===t.type&&(e*=40),this.search_results.scrollTop(e+this.search_results.scrollTop())},o.prototype.blur_test=function(t){if(!this.active_field&&this.container.hasClass("chosen-container-active"))return this.close_field()},o.prototype.close_field=function(){return t(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale()},o.prototype.activate_field=function(){return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},o.prototype.test_active_click=function(e){var n;return(n=t(e.target).closest(".chosen-container")).length&&this.container[0]===n[0]?this.active_field=!0:this.close_field()},o.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=i.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():this.is_multiple||(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},o.prototype.result_do_highlight=function(t){var e,n,i,s,r;if(t.length){if(this.result_clear_highlight(),this.result_highlight=t,this.result_highlight.addClass("highlighted"),i=parseInt(this.search_results.css("maxHeight"),10),r=this.search_results.scrollTop(),s=i+r,n=this.result_highlight.position().top+this.search_results.scrollTop(),(e=n+this.result_highlight.outerHeight())>=s)return this.search_results.scrollTop(e-i>0?e-i:0);if(n<r)return this.search_results.scrollTop(n)}},o.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},o.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.container.addClass("chosen-with-drop"),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.search_field.val()),this.winnow_results(),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}))},o.prototype.update_results_content=function(t){return this.search_results.html(t)},o.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})),this.results_showing=!1},o.prototype.set_tab_index=function(t){var e;if(this.form_field.tabIndex)return e=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=e},o.prototype.set_label_behavior=function(){var e=this;if(this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=t("label[for='"+this.form_field.id+"']")),this.form_field_label.length>0)return this.form_field_label.bind("click.chosen",function(t){return e.is_multiple?e.container_mousedown(t):e.activate_field()})},o.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},o.prototype.search_results_mouseup=function(e){var n;if((n=t(e.target).hasClass("active-result")?t(e.target):t(e.target).parents(".active-result").first()).length)return this.result_highlight=n,this.result_select(e),this.search_field.focus()},o.prototype.search_results_mouseover=function(e){var n;if(n=t(e.target).hasClass("active-result")?t(e.target):t(e.target).parents(".active-result").first())return this.result_do_highlight(n)},o.prototype.search_results_mouseout=function(e){if(t(e.target).hasClass("active-result"))return this.result_clear_highlight()},o.prototype.choice_build=function(e){var n,i,s=this;return n=t("<li />",{class:"search-choice"}).html("<span>"+e.html+"</span>"),e.disabled?n.addClass("search-choice-disabled"):((i=t("<a />",{class:"search-choice-close","data-option-array-index":e.array_index})).bind("click.chosen",function(t){return s.choice_destroy_link_click(t)}),n.append(i)),this.search_container.before(n)},o.prototype.choice_destroy_link_click=function(e){if(e.preventDefault(),e.stopPropagation(),!this.is_disabled)return this.choice_destroy(t(e.target))},o.prototype.choice_destroy=function(t){if(this.result_deselect(t[0].getAttribute("data-option-array-index")))return this.show_search_field_default(),this.is_multiple&&this.choices_count()>0&&this.search_field.val().length<1&&this.results_hide(),t.parents("li").first().remove(),this.search_field_scale()},o.prototype.results_reset=function(){if(this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.form_field_jq.trigger("change"),this.active_field)return this.results_hide()},o.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},o.prototype.result_select=function(t){var e,n;if(this.result_highlight)return e=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?e.removeClass("active-result"):this.reset_single_select_options(),n=this.results_data[e[0].getAttribute("data-option-array-index")],n.selected=!0,this.form_field.options[n.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(n):this.single_set_selected_text(n.text),(t.metaKey||t.ctrlKey)&&this.is_multiple||this.results_hide(),this.search_field.val(""),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.form_field_jq.trigger("change",{selected:this.form_field.options[n.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,this.search_field_scale())},o.prototype.single_set_selected_text=function(t){return null==t&&(t=this.default_text),t===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").text(t)},o.prototype.result_deselect=function(t){var e;return e=this.results_data[t],!this.form_field.options[e.options_index].disabled&&(e.selected=!1,this.form_field.options[e.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.form_field_jq.trigger("change",{deselected:this.form_field.options[e.options_index].value}),this.search_field_scale(),!0)},o.prototype.single_deselect_control_build=function(){if(this.allow_single_deselect)return this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chosen-single-with-deselect")},o.prototype.get_search_text=function(){return this.search_field.val()===this.default_text?"":t("<div/>").text(t.trim(this.search_field.val())).html()},o.prototype.winnow_results_set_highlight=function(){var t,e;if(e=this.is_multiple?[]:this.search_results.find(".result-selected.active-result"),null!=(t=e.length?e.first():this.search_results.find(".active-result").first()))return this.result_do_highlight(t)},o.prototype.no_results=function(e){var n;return(n=t('<li class="no-results">'+this.results_none_found+' "<span></span>"</li>')).find("span").first().html(e),this.search_results.append(n),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},o.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},o.prototype.keydown_arrow=function(){var t;return this.results_showing&&this.result_highlight?(t=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(t):void 0:this.results_show()},o.prototype.keyup_arrow=function(){var t;return this.results_showing||this.is_multiple?this.result_highlight?(t=this.result_highlight.prevAll("li.active-result")).length?this.result_do_highlight(t.first()):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight()):void 0:this.results_show()},o.prototype.keydown_backstroke=function(){var t;return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(t=this.search_container.siblings("li.search-choice").last()).length&&!t.hasClass("search-choice-disabled")?(this.pending_backstroke=t,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0},o.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},o.prototype.keydown_checker=function(t){var e,n;switch(e=null!=(n=t.which)?n:t.keyCode,this.search_field_scale(),8!==e&&this.pending_backstroke&&this.clear_backstroke(),e){case 8:this.backstroke_length=this.search_field.val().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(t),this.mouse_on_container=!1;break;case 13:t.preventDefault();break;case 38:t.preventDefault(),this.keyup_arrow();break;case 40:t.preventDefault(),this.keydown_arrow()}},o.prototype.search_field_scale=function(){var e,n,i,s,r,o,a,l;if(this.is_multiple){for(0,o=0,s="position:absolute; left: -1000px; top: -1000px; display:none;",a=0,l=(r=["font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing"]).length;a<l;a++)s+=(i=r[a])+":"+this.search_field.css(i)+";";return(e=t("<div />",{style:s})).text(this.search_field.val()),t("body").append(e),o=e.width()+25,e.remove(),n=this.container.outerWidth(),o>n-10&&(o=n-10),this.search_field.css({width:o+"px"})}},o}()}.call(this),function(t,e){"function"==typeof define&&define.amd?define("bloodhound",["jquery"],function(n){return t.Bloodhound=e()}):"object"==typeof exports?module.exports=e(require("jquery")):t.Bloodhound=e(jQuery)}(this,function(){var t=function(){"use strict";return{isMsie:function(){return!!/(msie|trident)/i.test(navigator.userAgent)&&navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]},isBlankString:function(t){return!t||/^\s*$/.test(t)},escapeRegExChars:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isArray:$.isArray,isFunction:$.isFunction,isObject:$.isPlainObject,isUndefined:function(t){return void 0===t},isElement:function(t){return!(!t||1!==t.nodeType)},isJQuery:function(t){return t instanceof $},toStr:function(e){return t.isUndefined(e)||null===e?"":e+""},bind:$.proxy,each:function(t,e){$.each(t,function(t,n){return e(n,t)})},map:$.map,filter:$.grep,every:function(t,e){var n=!0;return t?($.each(t,function(i,s){if(!(n=e.call(null,s,i,t)))return!1}),!!n):n},some:function(t,e){var n=!1;return t?($.each(t,function(i,s){if(n=e.call(null,s,i,t))return!1}),!!n):n},mixin:$.extend,identity:function(t){return t},clone:function(t){return $.extend(!0,{},t)},getIdGenerator:function(){var t=0;return function(){return t++}},templatify:function(t){return $.isFunction(t)?t:function(){return String(t)}},defer:function(t){setTimeout(t,0)},debounce:function(t,e,n){var i,s;return function(){var r,o,a=this,l=arguments;return r=function(){i=null,n||(s=t.apply(a,l))},o=n&&!i,clearTimeout(i),i=setTimeout(r,e),o&&(s=t.apply(a,l)),s}},throttle:function(t,e){var n,i,s,r,o,a;return o=0,a=function(){o=new Date,s=null,r=t.apply(n,i)},function(){var l=new Date,c=e-(l-o);return n=this,i=arguments,c<=0?(clearTimeout(s),s=null,o=l,r=t.apply(n,i)):s||(s=setTimeout(a,c)),r}},stringify:function(e){return t.isString(e)?e:JSON.stringify(e)},noop:function(){}}}(),e="0.11.0-templating",n=function(){"use strict";function e(e){return(e=t.toStr(e))?e.split(/\s+/):[]}function n(e){return(e=t.toStr(e))?e.split(/\W+/):[]}function i(e){return function(){var n=[].slice.call(arguments,0);return function(i){var s=[];return t.each(n,function(n){s=s.concat(e(t.toStr(i[n])))}),s}}}return{nonword:n,whitespace:e,obj:{nonword:i(n),whitespace:i(e)}}}(),i=function(){"use strict";function e(e){this.maxSize=t.isNumber(e)?e:100,this.reset(),this.maxSize<=0&&(this.set=this.get=$.noop)}function n(){this.head=this.tail=null}return t.mixin(e.prototype,{set:function(t,e){var n,i=this.list.tail;this.size>=this.maxSize&&(this.list.remove(i),delete this.hash[i.key],this.size--),(n=this.hash[t])?(n.val=e,this.list.moveToFront(n)):(n=new function(t,e){this.key=t,this.val=e,this.prev=this.next=null}(t,e),this.list.add(n),this.hash[t]=n,this.size++)},get:function(t){var e=this.hash[t];if(e)return this.list.moveToFront(e),e.val},reset:function(){this.size=0,this.hash={},this.list=new n}}),t.mixin(n.prototype,{add:function(t){this.head&&(t.next=this.head,this.head.prev=t),this.head=t,this.tail=this.tail||t},remove:function(t){t.prev?t.prev.next=t.next:this.head=t.next,t.next?t.next.prev=t.prev:this.tail=t.prev},moveToFront:function(t){this.remove(t),this.add(t)}}),e}(),s=function(){"use strict";function e(e,n){this.prefix=["__",e,"__"].join(""),this.ttlKey="__ttl__",this.keyMatcher=new RegExp("^"+t.escapeRegExChars(this.prefix)),this.ls=n||r,this.ls&&window.JSON||(this.get=this.set=this.remove=this.clear=this.isExpired=t.noop)}function n(){return(new Date).getTime()}function i(e){return JSON.stringify(t.isUndefined(e)?null:e)}function s(t){return $.parseJSON(t)}var r;try{(r=window.localStorage).setItem("~~~","!"),r.removeItem("~~~")}catch(t){r=null}return t.mixin(e.prototype,{_prefix:function(t){return this.prefix+t},_ttlKey:function(t){return this._prefix(t)+this.ttlKey},get:function(t){return this.isExpired(t)&&this.remove(t),s(this.ls.getItem(this._prefix(t)))},set:function(e,s,r){return t.isNumber(r)?this.ls.setItem(this._ttlKey(e),i(n()+r)):this.ls.removeItem(this._ttlKey(e)),this.ls.setItem(this._prefix(e),i(s))},remove:function(t){return this.ls.removeItem(this._ttlKey(t)),this.ls.removeItem(this._prefix(t)),this},clear:function(){var t,e,n=[],i=this.ls.length;for(t=0;t<i;t++)(e=this.ls.key(t)).match(this.keyMatcher)&&n.push(e.replace(this.keyMatcher,""));for(t=n.length;t--;)this.remove(n[t]);return this},isExpired:function(e){var i=s(this.ls.getItem(this._ttlKey(e)));return!!(t.isNumber(i)&&n()>i)}}),e}(),r=function(){"use strict";function e(t){t=t||{},this.cancelled=!1,this.lastReq=null,this._send=t.transport,this._get=t.limiter?t.limiter(this._get):this._get,this._cache=!1===t.cache?new i(0):o}var n=0,s={},r=6,o=new i(10);return e.setMaxPendingRequests=function(t){r=t},e.resetCache=function(){o.reset()},t.mixin(e.prototype,{_fingerprint:function(t){return(t=t||{}).url+t.type+$.param(t.data||{})},_get:function(t,e){function i(t){e(null,t),c._cache.set(a,t)}function o(){e(!0)}var a,l,c=this;a=this._fingerprint(t),this.cancelled||a!==this.lastReq||((l=s[a])?l.done(i).fail(o):n<r?(n++,s[a]=this._send(t).done(i).fail(o).always(function(){n--,delete s[a],c.onDeckRequestArgs&&(c._get.apply(c,c.onDeckRequestArgs),c.onDeckRequestArgs=null)})):this.onDeckRequestArgs=[].slice.call(arguments,0))},get:function(e,n){var i,s;n=n||$.noop,e=t.isString(e)?{url:e}:e||{},s=this._fingerprint(e),this.cancelled=!1,this.lastReq=s,(i=this._cache.get(s))?n(null,i):this._get(e,n)},cancel:function(){this.cancelled=!0}}),e}(),o=window.SearchIndex=function(){"use strict";function e(e){(e=e||{}).datumTokenizer&&e.queryTokenizer||$.error("datumTokenizer and queryTokenizer are both required"),this.identify=e.identify||t.stringify,this.datumTokenizer=e.datumTokenizer,this.queryTokenizer=e.queryTokenizer,this.reset()}function n(e){return e=t.filter(e,function(t){return!!t}),e=t.map(e,function(t){return t.toLowerCase()})}function i(){var t={};return t[r]=[],t[s]={},t}var s="c",r="i";return t.mixin(e.prototype,{bootstrap:function(t){this.datums=t.datums,this.trie=t.trie},add:function(e){var o=this;e=t.isArray(e)?e:[e],t.each(e,function(e){var a,l;o.datums[a=o.identify(e)]=e,l=n(o.datumTokenizer(e)),t.each(l,function(t){var e,n,l;for(e=o.trie,n=t.split("");l=n.shift();)(e=e[s][l]||(e[s][l]=i()))[r].push(a)})})},get:function(e){var n=this;return t.map(e,function(t){return n.datums[t]})},search:function(e){var i,o,a=this;return i=n(this.queryTokenizer(e)),t.each(i,function(t){var e,n,i,l;if(o&&0===o.length)return!1;for(e=a.trie,n=t.split("");e&&(i=n.shift());)e=e[s][i];if(!e||0!==n.length)return o=[],!1;l=e[r].slice(0),o=o?function(t,e){function n(t,e){return t-e}var i=0,s=0,r=[];t=t.sort(n),e=e.sort(n);for(var o=t.length,a=e.length;i<o&&s<a;)t[i]<e[s]?i++:t[i]>e[s]?s++:(r.push(t[i]),i++,s++);return r}(o,l):l}),o?t.map(function(t){for(var e={},n=[],i=0,s=t.length;i<s;i++)e[t[i]]||(e[t[i]]=!0,n.push(t[i]));return n}(o),function(t){return a.datums[t]}):[]},all:function(){var t=[];for(var e in this.datums)t.push(this.datums[e]);return t},reset:function(){this.datums={},this.trie=i()},serialize:function(){return{datums:this.datums,trie:this.trie}}}),e}(),a=function(){"use strict";function e(t){this.url=t.url,this.ttl=t.ttl,this.cache=t.cache,this.transform=t.transform,this.transport=t.transport,this.thumbprint=t.thumbprint,this.storage=new s(t.cacheKey)}var n;return n={data:"data",protocol:"protocol",thumbprint:"thumbprint"},t.mixin(e.prototype,{_settings:function(){return{url:this.url,type:"GET",dataType:"json"}},store:function(t){this.cache&&(this.storage.set(n.data,t,this.ttl),this.storage.set(n.protocol,location.protocol,this.ttl),this.storage.set(n.thumbprint,this.thumbprint,this.ttl))},fromCache:function(){var t,e={};return this.cache?(e.data=this.storage.get(n.data),e.protocol=this.storage.get(n.protocol),e.thumbprint=this.storage.get(n.thumbprint),t=e.thumbprint!==this.thumbprint||e.protocol!==location.protocol,e.data&&!t?e.data:null):null},fromNetwork:function(t){var e=this;t&&this.transport(this._settings()).fail(function(){t(!0)}).done(function(n){t(null,e.transform(n))})},clear:function(){return this.storage.clear(),this}}),e}(),l=function(){"use strict";function e(t){this.url=t.url,this.prepare=t.prepare,this.transform=t.transform,this.transport=new r({cache:t.cache,limiter:t.limiter,transport:t.transport})}return t.mixin(e.prototype,{_settings:function(){return{url:this.url,type:"GET",dataType:"json"}},get:function(t,e){var n,i=this;if(e)return t=t||"",n=this.prepare(t,this._settings()),this.transport.get(n,function(t,n){e(t?[]:i.transform(n))})},cancelLastRequest:function(){this.transport.cancel()}}),e}(),c=function(){"use strict";function n(e){var n;if(e)return n={url:null,cache:!0,prepare:null,replace:null,wildcard:null,limiter:null,rateLimitBy:"debounce",rateLimitWait:300,transform:t.identity,transport:null},e=t.isString(e)?{url:e}:e,!(e=t.mixin(n,e)).url&&$.error("remote requires url to be set"),e.transform=e.filter||e.transform,e.prepare=function(t){var e,n,i;if(e=t.prepare,n=t.replace,i=t.wildcard,e)return e;e=n?function(t,e){return e.url=n(e.url,t),e}:t.wildcard?function(t,e){return e.url=e.url.replace(i,encodeURIComponent(t)),e}:function(t,e){return e};return e}(e),e.limiter=function(e){var n,i,s;n=e.limiter,i=e.rateLimitBy,s=e.rateLimitWait,n||(n=/^throttle$/i.test(i)?function(e){return function(n){return t.throttle(n,e)}}(s):function(e){return function(n){return t.debounce(n,e)}}(s));return n}(e),e.transport=e.transport?i(e.transport):$.ajax,delete e.replace,delete e.wildcard,delete e.rateLimitBy,delete e.rateLimitWait,e}function i(e){return function(n){var i=$.Deferred();return e(n,function(e){t.defer(function(){i.resolve(e)})},function(e){t.defer(function(){i.reject(e)})}),i}}return function(s){var r,o;return r={initialize:!0,identify:t.stringify,datumTokenizer:null,queryTokenizer:null,sufficient:5,sorter:null,local:[],prefetch:null,remote:null},!(s=t.mixin(r,s||{})).datumTokenizer&&$.error("datumTokenizer is required"),!s.queryTokenizer&&$.error("queryTokenizer is required"),o=s.sorter,s.sorter=o?function(t){return t.sort(o)}:t.identity,s.local=t.isFunction(s.local)?s.local():s.local,s.prefetch=function(n){var s;return n?(s={url:null,ttl:864e5,cache:!0,cacheKey:null,thumbprint:"",transform:t.identity,transport:null},n=t.isString(n)?{url:n}:n,!(n=t.mixin(s,n)).url&&$.error("prefetch requires url to be set"),n.transform=n.filter||n.transform,n.cacheKey=n.cacheKey||n.url,n.thumbprint=e+n.thumbprint,n.transport=n.transport?i(n.transport):$.ajax,n):null}(s.prefetch),s.remote=n(s.remote),s}}();return function(){"use strict";function e(t){t=c(t),this.sorter=t.sorter,this.identify=t.identify,this.sufficient=t.sufficient,this.local=t.local,this.remote=t.remote?new l(t.remote):null,this.prefetch=t.prefetch?new a(t.prefetch):null,this.index=new o({identify:this.identify,datumTokenizer:t.datumTokenizer,queryTokenizer:t.queryTokenizer}),!1!==t.initialize&&this.initialize()}var i;return i=window&&window.Bloodhound,e.noConflict=function(){return window&&(window.Bloodhound=i),e},e.tokenizers=n,t.mixin(e.prototype,{__ttAdapter:function(){var t=this;return this.remote?function(e,n,i){return t.search(e,n,i)}:function(e,n){return t.search(e,n)}},_loadPrefetch:function(){var t,e,n=this;return t=$.Deferred(),this.prefetch?(e=this.prefetch.fromCache())?(this.index.bootstrap(e),t.resolve()):this.prefetch.fromNetwork(function(e,i){if(e)return t.reject();n.add(i),n.prefetch.store(n.index.serialize()),t.resolve()}):t.resolve(),t.promise()},_initialize:function(){var t=this;return this.clear(),(this.initPromise=this._loadPrefetch()).done(function(){t.add(t.local)}),this.initPromise},initialize:function(t){return!this.initPromise||t?this._initialize():this.initPromise},add:function(t){return this.index.add(t),this},get:function(e){return e=t.isArray(e)?e:[].slice.call(arguments),this.index.get(e)},search:function(e,n,i){var s,r=this;return s=this.sorter(this.index.search(e)),n(this.remote?s.slice():s),this.remote&&s.length<this.sufficient?this.remote.get(e,function(e){var n=[];t.each(e,function(e){!t.some(s,function(t){return r.identify(e)===r.identify(t)})&&n.push(e)}),i&&i(n)}):this.remote&&this.remote.cancelLastRequest(),this},all:function(){return this.index.all()},clear:function(){return this.index.reset(),this},clearPrefetchCache:function(){return this.prefetch&&this.prefetch.clear(),this},clearRemoteCache:function(){return r.resetCache(),this},ttAdapter:function(){return this.__ttAdapter()}}),e}()}),function(t,e){"function"==typeof define&&define.amd?define("typeahead.js",["jquery"],function(t){return e()}):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(0,function(){var t=function(){"use strict";return{isMsie:function(){return!!/(msie|trident)/i.test(navigator.userAgent)&&navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]},isBlankString:function(t){return!t||/^\s*$/.test(t)},escapeRegExChars:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isArray:$.isArray,isFunction:$.isFunction,isObject:$.isPlainObject,isUndefined:function(t){return void 0===t},isElement:function(t){return!(!t||1!==t.nodeType)},isJQuery:function(t){return t instanceof $},toStr:function(e){return t.isUndefined(e)||null===e?"":e+""},bind:$.proxy,each:function(t,e){$.each(t,function(t,n){return e(n,t)})},map:$.map,filter:$.grep,every:function(t,e){var n=!0;return t?($.each(t,function(i,s){if(!(n=e.call(null,s,i,t)))return!1}),!!n):n},some:function(t,e){var n=!1;return t?($.each(t,function(i,s){if(n=e.call(null,s,i,t))return!1}),!!n):n},mixin:$.extend,identity:function(t){return t},clone:function(t){return $.extend(!0,{},t)},getIdGenerator:function(){var t=0;return function(){return t++}},templatify:function(t){return $.isFunction(t)?t:function(){return String(t)}},defer:function(t){setTimeout(t,0)},debounce:function(t,e,n){var i,s;return function(){var r,o,a=this,l=arguments;return r=function(){i=null,n||(s=t.apply(a,l))},o=n&&!i,clearTimeout(i),i=setTimeout(r,e),o&&(s=t.apply(a,l)),s}},throttle:function(t,e){var n,i,s,r,o,a;return o=0,a=function(){o=new Date,s=null,r=t.apply(n,i)},function(){var l=new Date,c=e-(l-o);return n=this,i=arguments,c<=0?(clearTimeout(s),s=null,o=l,r=t.apply(n,i)):s||(s=setTimeout(a,c)),r}},stringify:function(e){return t.isString(e)?e:JSON.stringify(e)},noop:function(){}}}(),e=function(){"use strict";var e={wrapper:"twitter-typeahead",input:"tt-input",hint:"tt-hint",menu:"tt-menu",dataset:"tt-dataset",suggestion:"tt-suggestion",selectable:"tt-selectable",empty:"tt-empty",open:"tt-open",cursor:"tt-cursor",highlight:"tt-highlight"},n={wrapper:"<span></span>",menu:"<div></div>",dataset:"<div></div>"};return function(i){i=i||{};var s,r,o;return r=t.mixin({},e,i.classNames),o=t.mixin({},n,i.templates),s={css:function(){var e={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},menu:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:" 0"}};return t.isMsie()&&t.mixin(e.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),t.isMsie()&&t.isMsie()<=7&&t.mixin(e.input,{marginTop:"-1px"}),e}(),classes:r,html:{wrapper:function(){return $(o.wrapper).addClass(r.wrapper)},menu:function(){return $(o.menu).addClass(r.menu)},dataset:function(){return $(o.dataset).addClass(r.dataset)}},selectors:function(e){var n={};return t.each(e,function(t,e){n[e]="."+t}),n}(r)},{css:s.css,html:s.html,classes:s.classes,selectors:s.selectors,mixin:function(e){t.mixin(e,s)}}}}(),n=function(){"use strict";function e(t){t&&t.el||$.error("EventBus initialized without el"),this.$el=$(t.el)}var n;return"typeahead:",n={render:"rendered",cursorchange:"cursorchanged",select:"selected",autocomplete:"autocompleted"},t.mixin(e.prototype,{_trigger:function(t,e){var n;return n=$.Event("typeahead:"+t),(e=e||[]).unshift(n),this.$el.trigger.apply(this.$el,e),n},before:function(t){var e;return e=[].slice.call(arguments,1),this._trigger("before"+t,e).isDefaultPrevented()},trigger:function(t){var e;this._trigger(t,[].slice.call(arguments,1)),(e=n[t])&&this._trigger(e,[].slice.call(arguments,1))}}),e}(),i=function(){"use strict";function t(t,e,i,s){var r;if(!i)return this;for(e=e.split(n),i=s?function(t,e){return t.bind?t.bind(e):function(){t.apply(e,[].slice.call(arguments,0))}}(i,s):i,this._callbacks=this._callbacks||{};r=e.shift();)this._callbacks[r]=this._callbacks[r]||{sync:[],async:[]},this._callbacks[r][t].push(i);return this}function e(t,e,n){return function(){for(var i,s=0,r=t.length;!i&&s<r;s+=1)i=!1===t[s].apply(e,n);return!i}}var n=/\s+/,i=window.setImmediate?function(t){setImmediate(function(){t()})}:function(t){setTimeout(function(){t()},0)};return{onSync:function(e,n,i){return t.call(this,"sync",e,n,i)},onAsync:function(e,n,i){return t.call(this,"async",e,n,i)},off:function(t){var e;if(!this._callbacks)return this;for(t=t.split(n);e=t.shift();)delete this._callbacks[e];return this},trigger:function(t){var s,r,o,a,l;if(!this._callbacks)return this;for(t=t.split(n),o=[].slice.call(arguments,1);(s=t.shift())&&(r=this._callbacks[s]);)a=e(r.sync,this,[s].concat(o)),l=e(r.async,this,[s].concat(o)),a()&&i(l);return this}}}(),s=function(e){"use strict";var n={node:null,pattern:null,tagName:"strong",className:null,wordsOnly:!1,caseSensitive:!1};return function(i){function s(t,e){for(var n,i=0;i<t.childNodes.length;i++)3===(n=t.childNodes[i]).nodeType?i+=e(n)?1:0:s(n,e)}var r;(i=t.mixin({},n,i)).node&&i.pattern&&(i.pattern=t.isArray(i.pattern)?i.pattern:[i.pattern],r=function(e,n,i){for(var s,r=[],o=0,a=e.length;o<a;o++)r.push(t.escapeRegExChars(e[o]));return s=i?"\\b("+r.join("|")+")\\b":"("+r.join("|")+")",n?new RegExp(s):new RegExp(s,"i")}(i.pattern,i.caseSensitive,i.wordsOnly),s(i.node,function(t){var n,s,o;return(n=r.exec(t.data))&&(o=e.createElement(i.tagName),i.className&&(o.className=i.className),(s=t.splitText(n.index)).splitText(n[0].length),o.appendChild(s.cloneNode(!0)),t.parentNode.replaceChild(o,s)),!!n}))}}(window.document),r=function(){"use strict";function e(e,n){(e=e||{}).input||$.error("input is missing"),n.mixin(this),this.$hint=$(e.hint),this.$input=$(e.input),this.query=this.$input.val(),this.queryWhenFocused=this.hasFocus()?this.query:null,this.$overflowHelper=function(t){return $('<pre aria-hidden="true"></pre>').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:t.css("font-family"),fontSize:t.css("font-size"),fontStyle:t.css("font-style"),fontVariant:t.css("font-variant"),fontWeight:t.css("font-weight"),wordSpacing:t.css("word-spacing"),letterSpacing:t.css("letter-spacing"),textIndent:t.css("text-indent"),textRendering:t.css("text-rendering"),textTransform:t.css("text-transform")}).insertAfter(t)}(this.$input),this._checkLanguageDirection(),0===this.$hint.length&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=t.noop)}function n(t){return t.altKey||t.ctrlKey||t.metaKey||t.shiftKey}var s;return s={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"},e.normalizeQuery=function(t){return(t||"").replace(/^\s*/g,"").replace(/\s{2,}/g," ")},t.mixin(e.prototype,i,{_onBlur:function(){this.resetInputValue(),this.trigger("blurred")},_onFocus:function(){this.queryWhenFocused=this.query,this.trigger("focused")},_onKeydown:function(t){var e=s[t.which||t.keyCode];this._managePreventDefault(e,t),e&&this._shouldTrigger(e,t)&&this.trigger(e+"Keyed",t)},_onInput:function(){this._setQuery(this.getInputValue()),this.clearHintIfInvalid(),this._checkLanguageDirection()},_managePreventDefault:function(t,e){var i;switch(t){case"up":case"down":i=!n(e);break;default:i=!1}i&&e.preventDefault()},_shouldTrigger:function(t,e){var i;switch(t){case"tab":i=!n(e);break;default:i=!0}return i},_checkLanguageDirection:function(){var t=(this.$input.css("direction")||"ltr").toLowerCase();this.dir!==t&&(this.dir=t,this.$hint.attr("dir",t),this.trigger("langDirChanged",t))},_setQuery:function(t,n){var i,s;s=!!(i=function(t,n){return e.normalizeQuery(t)===e.normalizeQuery(n)}(t,this.query))&&this.query.length!==t.length,this.query=t,n||i?!n&&s&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},bind:function(){var e,n,i,r,o=this;return e=t.bind(this._onBlur,this),n=t.bind(this._onFocus,this),i=t.bind(this._onKeydown,this),r=t.bind(this._onInput,this),this.$input.on("blur.tt",e).on("focus.tt",n).on("keydown.tt",i),!t.isMsie()||t.isMsie()>9?this.$input.on("input.tt",r):this.$input.on("keydown.tt keypress.tt cut.tt paste.tt",function(e){s[e.which||e.keyCode]||t.defer(t.bind(o._onInput,o,e))}),this},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getLangDir:function(){return this.dir},getQuery:function(){return this.query||""},setQuery:function(t,e){this.setInputValue(t),this._setQuery(t,e)},hasQueryChangedSinceLastFocus:function(){return this.query!==this.queryWhenFocused},getInputValue:function(){return this.$input.val()},setInputValue:function(t){this.$input.val(t),this.clearHintIfInvalid(),this._checkLanguageDirection()},resetInputValue:function(){this.setInputValue(this.query)},getHint:function(){return this.$hint.val()},setHint:function(t){this.$hint.val(t)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var t,e,n;n=(t=this.getInputValue())!==(e=this.getHint())&&0===e.indexOf(t),!(""!==t&&n&&!this.hasOverflow())&&this.clearHint()},hasFocus:function(){return this.$input.is(":focus")},hasOverflow:function(){var t=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=t},isCursorAtEnd:function(){var e,n,i;return e=this.$input.val().length,n=this.$input[0].selectionStart,t.isNumber(n)?n===e:!document.selection||((i=document.selection.createRange()).moveStart("character",-e),e===i.text.length)},destroy:function(){this.$hint.off(".tt"),this.$input.off(".tt"),this.$overflowHelper.remove(),this.$hint=this.$input=this.$overflowHelper=null}}),e}(),o=function(){"use strict";function e(e,n){(e=e||{}).templates=e.templates||{},e.templates.notFound=e.templates.notFound||e.templates.empty,e.source||$.error("missing source"),e.node||$.error("missing node"),e.name&&!function(t){return/^[_a-zA-Z0-9-]+$/.test(t)}(e.name)&&$.error("invalid dataset name: "+e.name),n.mixin(this),this.highlight=!!e.highlight,this.name=e.name||r(),this.limit=e.limit||5,this.displayFn=function(e){return e=e||t.stringify,t.isFunction(e)?e:function(t){return t[e]}}(e.display||e.displayKey),this.templates=function(e,n){return{notFound:e.notFound&&t.templatify(e.notFound),pending:e.pending&&t.templatify(e.pending),header:e.header&&t.templatify(e.header),footer:e.footer&&t.templatify(e.footer),suggestion:e.suggestion||function(t){return"<div><p>"+n(t)+"</p></div>"}}}(e.templates,this.displayFn),this.source=e.source.__ttAdapter?e.source.__ttAdapter():e.source,this.async=t.isUndefined(e.async)?this.source.length>2:!!e.async,this._resetLastSuggestion(),this.$el=$(e.node).addClass(this.classes.dataset).addClass(this.classes.dataset+"-"+this.name)}var n,r;return n={val:"tt-selectable-display",obj:"tt-selectable-object"},r=t.getIdGenerator(),e.extractData=function(t){var e=$(t);return e.data(n.obj)?{val:e.data(n.val)||"",obj:e.data(n.obj)||null}:null},t.mixin(e.prototype,i,{_overwrite:function(t,e){(e=e||[]).length?this._renderSuggestions(t,e):this.async&&this.templates.pending?this._renderPending(t):!this.async&&this.templates.notFound?this._renderNotFound(t):this._empty(),this.trigger("rendered",this.name,e,!1)},_append:function(t,e){(e=e||[]).length&&this.$lastSuggestion.length?this._appendSuggestions(t,e):e.length?this._renderSuggestions(t,e):!this.$lastSuggestion.length&&this.templates.notFound&&this._renderNotFound(t),this.trigger("rendered",this.name,e,!0)},_renderSuggestions:function(t,e){var n;n=this._getSuggestionsFragment(t,e),this.$lastSuggestion=n.children().last(),this.$el.html(n).prepend(this._getHeader(t,e)).append(this._getFooter(t,e))},_appendSuggestions:function(t,e){var n,i;i=(n=this._getSuggestionsFragment(t,e)).children().last(),this.$lastSuggestion.after(n),this.$lastSuggestion=i},_renderPending:function(t){var e=this.templates.pending;this._resetLastSuggestion(),e&&this.$el.html(e({query:t,dataset:this.name}))},_renderNotFound:function(t){var e=this.templates.notFound;this._resetLastSuggestion(),e&&this.$el.html(e({query:t,dataset:this.name}))},_empty:function(){this.$el.empty(),this._resetLastSuggestion()},_getSuggestionsFragment:function(e,i){var r,o=this;return r=document.createDocumentFragment(),t.each(i,function(t){var i,s;s=o._injectQuery(e,t),i=$(o.templates.suggestion(s)).data(n.obj,t).data(n.val,o.displayFn(t)).addClass(o.classes.suggestion+" "+o.classes.selectable),r.appendChild(i[0])}),this.highlight&&s({className:this.classes.highlight,node:r,pattern:e}),$(r)},_getFooter:function(t,e){return this.templates.footer?this.templates.footer({query:t,suggestions:e,dataset:this.name}):null},_getHeader:function(t,e){return this.templates.header?this.templates.header({query:t,suggestions:e,dataset:this.name}):null},_resetLastSuggestion:function(){this.$lastSuggestion=$()},_injectQuery:function(e,n){return t.isObject(n)?t.mixin({_query:e},n):n},update:function(t){function e(e){s||(s=!0,e=(e||[]).slice(0,n.limit),r=e.length,n._overwrite(t,e),r<n.limit&&n.async&&n.trigger("asyncRequested",t))}var n=this,i=!1,s=!1,r=0;this.cancel(),this.cancel=function(){i=!0,n.cancel=$.noop,n.async&&n.trigger("asyncCanceled",t)},this.source(t,e,function(e){e=e||[],!i&&r<n.limit&&(n.cancel=$.noop,r+=e.length,n._append(t,e.slice(0,n.limit-r)),n.async&&n.trigger("asyncReceived",t))}),!s&&e([])},cancel:$.noop,clear:function(){this._empty(),this.cancel(),this.trigger("cleared")},isEmpty:function(){return this.$el.is(":empty")},destroy:function(){this.$el=null}}),e}(),a=function(){"use strict";function e(e,n){var i=this;(e=e||{}).node||$.error("node is required"),n.mixin(this),this.$node=$(e.node),this.query=null,this.datasets=t.map(e.datasets,function(t){var e=i.$node.find(t.node).first();return t.node=e.length?e:$(t.templates.dataset).appendTo(i.$node),new o(t,n)})}return t.mixin(e.prototype,i,{_onSelectableClick:function(t){this.trigger("selectableClicked",$(t.currentTarget))},_onRendered:function(t,e,n,i){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty()),this.trigger("datasetRendered",e,n,i)},_onCleared:function(){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty()),this.trigger("datasetCleared")},_propagate:function(){this.trigger.apply(this,arguments)},_allDatasetsEmpty:function(){return t.every(this.datasets,function(t){return t.isEmpty()})},_getSelectables:function(){return this.$node.find(this.selectors.selectable)},_removeCursor:function(){var t=this.getActiveSelectable();t&&t.removeClass(this.classes.cursor)},_ensureVisible:function(t){var e,n,i,s;n=(e=t.position().top)+t.outerHeight(!0),i=this.$node.scrollTop(),s=this.$node.height()+parseInt(this.$node.css("paddingTop"),10)+parseInt(this.$node.css("paddingBottom"),10),e<0?this.$node.scrollTop(i+e):s<n&&this.$node.scrollTop(i+(n-s))},bind:function(){var e,n=this;return e=t.bind(this._onSelectableClick,this),this.$node.on("click.tt",this.selectors.selectable,e),t.each(this.datasets,function(t){t.onSync("asyncRequested",n._propagate,n).onSync("asyncCanceled",n._propagate,n).onSync("asyncReceived",n._propagate,n).onSync("rendered",n._onRendered,n).onSync("cleared",n._onCleared,n)}),this},isOpen:function(){return this.$node.hasClass(this.classes.open)},open:function(){this.$node.addClass(this.classes.open)},close:function(){this.$node.removeClass(this.classes.open),this._removeCursor()},setLanguageDirection:function(t){this.$node.attr("dir",t)},selectableRelativeToCursor:function(t){var e,n,i,s;return n=this.getActiveSelectable(),e=this._getSelectables(),i=n?e.index(n):-1,s=i+t,s=(s+1)%(e.length+1)-1,-1===(s=s<-1?e.length-1:s)?null:e.eq(s)},setCursor:function(t){this._removeCursor(),(t=t&&t.first())&&(t.addClass(this.classes.cursor),this._ensureVisible(t))},getSelectableData:function(t){return t&&t.length?o.extractData(t):null},getActiveSelectable:function(){var t=this._getSelectables().filter(this.selectors.cursor).first();return t.length?t:null},getTopSelectable:function(){var t=this._getSelectables().first();return t.length?t:null},update:function(e){var n=e!==this.query;return n&&(this.query=e,t.each(this.datasets,function(t){t.update(e)})),n},empty:function(){t.each(this.datasets,function(t){t.clear()}),this.query=null,this.$node.addClass(this.classes.empty)},destroy:function(){this.$node.off(".tt"),this.$node=null,t.each(this.datasets,function(t){t.destroy()})}}),e}(),l=function(){"use strict";function e(){a.apply(this,[].slice.call(arguments,0))}var n=a.prototype;return t.mixin(e.prototype,a.prototype,{open:function(){return!this._allDatasetsEmpty()&&this._show(),n.open.apply(this,[].slice.call(arguments,0))},close:function(){return this._hide(),n.close.apply(this,[].slice.call(arguments,0))},_onRendered:function(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),n._onRendered.apply(this,[].slice.call(arguments,0))},_onCleared:function(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),n._onCleared.apply(this,[].slice.call(arguments,0))},setLanguageDirection:function(t){return this.$node.css("ltr"===t?this.css.ltr:this.css.rtl),n.setLanguageDirection.apply(this,[].slice.call(arguments,0))},_hide:function(){this.$node.hide()},_show:function(){this.$node.css("display","block")}}),e}(),c=function(){"use strict";function e(e,i){var s,r,o,a,l,c,u,d,h,f,p;(e=e||{}).input||$.error("missing input"),e.menu||$.error("missing menu"),e.eventBus||$.error("missing event bus"),i.mixin(this),this.eventBus=e.eventBus,this.minLength=t.isNumber(e.minLength)?e.minLength:1,this.input=e.input,this.menu=e.menu,this.enabled=!0,this.active=!1,this.input.hasFocus()&&this.activate(),this.dir=this.input.getLangDir(),this._hacks(),this.menu.bind().onSync("selectableClicked",this._onSelectableClicked,this).onSync("asyncRequested",this._onAsyncRequested,this).onSync("asyncCanceled",this._onAsyncCanceled,this).onSync("asyncReceived",this._onAsyncReceived,this).onSync("datasetRendered",this._onDatasetRendered,this).onSync("datasetCleared",this._onDatasetCleared,this),s=n(this,"activate","open","_onFocused"),r=n(this,"deactivate","_onBlurred"),o=n(this,"isActive","isOpen","_onEnterKeyed"),a=n(this,"isActive","isOpen","_onTabKeyed"),l=n(this,"isActive","_onEscKeyed"),c=n(this,"isActive","open","_onUpKeyed"),u=n(this,"isActive","open","_onDownKeyed"),d=n(this,"isActive","isOpen","_onLeftKeyed"),h=n(this,"isActive","isOpen","_onRightKeyed"),f=n(this,"_openIfActive","_onQueryChanged"),p=n(this,"_openIfActive","_onWhitespaceChanged"),this.input.bind().onSync("focused",s,this).onSync("blurred",r,this).onSync("enterKeyed",o,this).onSync("tabKeyed",a,this).onSync("escKeyed",l,this).onSync("upKeyed",c,this).onSync("downKeyed",u,this).onSync("leftKeyed",d,this).onSync("rightKeyed",h,this).onSync("queryChanged",f,this).onSync("whitespaceChanged",p,this).onSync("langDirChanged",this._onLangDirChanged,this)}function n(e){var n=[].slice.call(arguments,1);return function(){var i=[].slice.call(arguments);t.each(n,function(t){return e[t].apply(e,i)})}}return t.mixin(e.prototype,{_hacks:function(){var e,n;e=this.input.$input||$("<div>"),n=this.menu.$node||$("<div>"),e.on("blur.tt",function(i){var s,r,o;s=document.activeElement,r=n.is(s),o=n.has(s).length>0,t.isMsie()&&(r||o)&&(i.preventDefault(),i.stopImmediatePropagation(),t.defer(function(){e.focus()}))}),n.on("mousedown.tt",function(t){t.preventDefault()})},_onSelectableClicked:function(t,e){this.select(e)},_onDatasetCleared:function(){this._updateHint()},_onDatasetRendered:function(t,e,n,i){this._updateHint(),this.eventBus.trigger("render",n,i,e)},_onAsyncRequested:function(t,e,n){this.eventBus.trigger("asyncrequest",n,e)},_onAsyncCanceled:function(t,e,n){this.eventBus.trigger("asynccancel",n,e)},_onAsyncReceived:function(t,e,n){this.eventBus.trigger("asyncreceive",n,e)},_onFocused:function(){this._minLengthMet()&&this.menu.update(this.input.getQuery())},_onBlurred:function(){this.input.hasQueryChangedSinceLastFocus()&&this.eventBus.trigger("change",this.input.getQuery())},_onEnterKeyed:function(t,e){var n;(n=this.menu.getActiveSelectable())&&this.select(n)&&e.preventDefault()},_onTabKeyed:function(t,e){var n;(n=this.menu.getActiveSelectable())?this.select(n)&&e.preventDefault():(n=this.menu.getTopSelectable())&&this.autocomplete(n)&&e.preventDefault()},_onEscKeyed:function(){this.close()},_onUpKeyed:function(){this.moveCursor(-1)},_onDownKeyed:function(){this.moveCursor(1)},_onLeftKeyed:function(){"rtl"===this.dir&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getTopSelectable())},_onRightKeyed:function(){"ltr"===this.dir&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getTopSelectable())},_onQueryChanged:function(t,e){this._minLengthMet(e)?this.menu.update(e):this.menu.empty()},_onWhitespaceChanged:function(){this._updateHint()},_onLangDirChanged:function(t,e){this.dir!==e&&(this.dir=e,this.menu.setLanguageDirection(e))},_openIfActive:function(){this.isActive()&&this.open()},_minLengthMet:function(e){return(e=t.isString(e)?e:this.input.getQuery()||"").length>=this.minLength},_updateHint:function(){var e,n,i,s,o,a;e=this.menu.getTopSelectable(),n=this.menu.getSelectableData(e),i=this.input.getInputValue(),!n||t.isBlankString(i)||this.input.hasOverflow()?this.input.clearHint():(s=r.normalizeQuery(i),o=t.escapeRegExChars(s),(a=new RegExp("^(?:"+o+")(.+$)","i").exec(n.val))&&this.input.setHint(i+a[1]))},isEnabled:function(){return this.enabled},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},isActive:function(){return this.active},activate:function(){return!!this.isActive()||!(!this.isEnabled()||this.eventBus.before("active"))&&(this.active=!0,this.eventBus.trigger("active"),!0)},deactivate:function(){return!this.isActive()||!this.eventBus.before("idle")&&(this.active=!1,this.close(),this.eventBus.trigger("idle"),!0)},isOpen:function(){return this.menu.isOpen()},open:function(){return this.isOpen()||this.eventBus.before("open")||(this.menu.open(),this._updateHint(),this.eventBus.trigger("open")),this.isOpen()},close:function(){return this.isOpen()&&!this.eventBus.before("close")&&(this.menu.close(),this.input.clearHint(),this.input.resetInputValue(),this.eventBus.trigger("close")),!this.isOpen()},setVal:function(e){this.input.setQuery(t.toStr(e))},getVal:function(){return this.input.getQuery()},select:function(t){var e=this.menu.getSelectableData(t);return!(!e||this.eventBus.before("select",e.obj))&&(this.input.setQuery(e.val,!0),this.close(),this.eventBus.trigger("select",e.obj),!0)},autocomplete:function(t){var e,n;return e=this.input.getQuery(),n=this.menu.getSelectableData(t),!(!(n&&e!==n.val)||this.eventBus.before("autocomplete",n.obj))&&(this.input.setQuery(n.val),this.eventBus.trigger("autocomplete",n.obj),!0)},moveCursor:function(t){var e,n,i,s;return e=this.input.getQuery(),n=this.menu.selectableRelativeToCursor(t),i=this.menu.getSelectableData(n),s=i?i.obj:null,!(this._minLengthMet()&&this.menu.update(e))&&!this.eventBus.before("cursorchange",s)&&(this.menu.setCursor(n),i?this.input.setInputValue(i.val):(this.input.resetInputValue(),this._updateHint()),this.eventBus.trigger("cursorchange",s),!0)},destroy:function(){this.input.destroy(),this.menu.destroy()}}),e}();!function(){"use strict";function i(t,e){t.each(function(){var t,n=$(this);(t=n.data(u.typeahead))&&e(t,n)})}function s(e){var n,i;return n=t.isJQuery(e)||t.isElement(e),(i=n?$(e).first():[]).length?i:null}var o,u,d;o=$.fn.typeahead,u={www:"tt-www",attrs:"tt-attrs",typeahead:"tt-typeahead"},d={initialize:function(i,o){var d;return o=t.isArray(o)?o:[].slice.call(arguments,1),i=i||{},d=e(i),this.each(function(){var e,h,f,p,g,m,y,v,b,_,w;t.each(o,function(e){e.highlight=!!i.highlight,e.templates=t.mixin({dataset:d.html.dataset()},e.templates)}),e=$(this),h=d.html.wrapper(),f=s(i.hint),p=s(i.menu),g=!1!==i.hint&&!f,m=!1!==i.menu&&!p,g&&(f=function(t,e){return t.clone().addClass(e.classes.hint).removeData().css(e.css.hint).css(function(t){return{backgroundAttachment:t.css("background-attachment"),backgroundClip:t.css("background-clip"),backgroundColor:t.css("background-color"),backgroundImage:t.css("background-image"),backgroundOrigin:t.css("background-origin"),backgroundPosition:t.css("background-position"),backgroundRepeat:t.css("background-repeat"),backgroundSize:t.css("background-size")}}(t)).prop("readonly",!0).removeAttr("id name placeholder required").attr({autocomplete:"off",spellcheck:"false",tabindex:-1})}(e,d)),m&&(p=d.html.menu().css(d.css.menu)),f&&f.val(""),e=function(t,e){t.data(u.attrs,{dir:t.attr("dir"),autocomplete:t.attr("autocomplete"),spellcheck:t.attr("spellcheck"),style:t.attr("style")}),t.addClass(e.classes.input).attr({autocomplete:"off",spellcheck:!1});try{!t.attr("dir")&&t.attr("dir","auto")}catch(t){}return t}(e,d),(g||m)&&(h.css(d.css.wrapper),e.css(g?d.css.input:d.css.inputWithNoHint),e.wrap(h).parent().prepend(g?f:null).append(m?p:null)),w=m?l:a,y=new n({el:e}),v=new r({hint:f,input:e},d),b=new w({node:p,datasets:o},d),_=new c({input:v,menu:b,eventBus:y,minLength:i.minLength},d),e.data(u.www,d),e.data(u.typeahead,_)})},isEnabled:function(){var t;return i(this.first(),function(e){t=e.isEnabled()}),t},enable:function(){return i(this,function(t){t.enable()}),this},disable:function(){return i(this,function(t){t.disable()}),this},isActive:function(){var t;return i(this.first(),function(e){t=e.isActive()}),t},activate:function(){return i(this,function(t){t.activate()}),this},deactivate:function(){return i(this,function(t){t.deactivate()}),this},isOpen:function(){var t;return i(this.first(),function(e){t=e.isOpen()}),t},open:function(){return i(this,function(t){t.open()}),this},close:function(){return i(this,function(t){t.close()}),this},select:function(t){var e=!1,n=$(t);return i(this.first(),function(t){e=t.select(n)}),e},autocomplete:function(t){var e=!1,n=$(t);return i(this.first(),function(t){e=t.autocomplete(n)}),e},moveCursor:function(t){var e=!1;return i(this.first(),function(n){e=n.moveCursor(t)}),e},val:function(t){var e;return arguments.length?(i(this,function(e){e.setVal(t)}),this):(i(this.first(),function(t){e=t.getVal()}),e)},destroy:function(){return i(this,function(e,n){!function(e){var n,i;n=e.data(u.www),i=e.parent().filter(n.selectors.wrapper),t.each(e.data(u.attrs),function(n,i){t.isUndefined(n)?e.removeAttr(i):e.attr(i,n)}),e.removeData(u.typeahead).removeData(u.www).removeData(u.attr).removeClass(n.classes.input),i.length&&(e.detach().insertAfter(i),i.remove())}(n),e.destroy()}),this}},$.fn.typeahead=function(t){return d[t]?d[t].apply(this,[].slice.call(arguments,1)):d.initialize.apply(this,arguments)},$.fn.typeahead.noConflict=function(){return $.fn.typeahead=o,this}}()}),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),s=i.data("bs.affix"),r="object"==typeof e&&e;s||i.data("bs.affix",s=new n(this,r)),"string"==typeof e&&s[e]()})}var n=function(e,i){this.options=t.extend({},n.DEFAULTS,i),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(e),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};n.VERSION="3.3.7",n.RESET="affix affix-top affix-bottom",n.DEFAULTS={offset:0,target:window},n.prototype.getState=function(t,e,n,i){var s=this.$target.scrollTop(),r=this.$element.offset(),o=this.$target.height();if(null!=n&&"top"==this.affixed)return s<n&&"top";if("bottom"==this.affixed)return null!=n?!(s+this.unpin<=r.top)&&"bottom":!(s+o<=t-i)&&"bottom";var a=null==this.affixed,l=a?s:r.top;return null!=n&&s<=n?"top":null!=i&&l+(a?o:e)>=t-i&&"bottom"},n.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(n.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},n.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},n.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),i=this.options.offset,s=i.top,r=i.bottom,o=Math.max(t(document).height(),t(document.body).height());"object"!=typeof i&&(r=s=i),"function"==typeof s&&(s=i.top(this.$element)),"function"==typeof r&&(r=i.bottom(this.$element));var a=this.getState(o,e,s,r);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var l="affix"+(a?"-"+a:""),c=t.Event(l+".bs.affix");if(this.$element.trigger(c),c.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(n.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:o-e-r})}};var i=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=n,t.fn.affix.noConflict=function(){return t.fn.affix=i,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var n=t(this),i=n.data();i.offset=i.offset||{},null!=i.offsetBottom&&(i.offset.bottom=i.offsetBottom),null!=i.offsetTop&&(i.offset.top=i.offsetTop),e.call(n,i)})})}(jQuery),function(t){"use strict";var e='[data-dismiss="alert"]',n=function(n){t(n).on("click",e,this.close)};n.VERSION="3.3.7",n.TRANSITION_DURATION=150,n.prototype.close=function(e){function i(){o.detach().trigger("closed.bs.alert").remove()}var s=t(this),r=s.attr("data-target");r||(r=(r=s.attr("href"))&&r.replace(/.*(?=#[^\s]*$)/,""));var o=t("#"===r?[]:r);e&&e.preventDefault(),o.length||(o=s.closest(".alert")),o.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(o.removeClass("in"),t.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",i).emulateTransitionEnd(n.TRANSITION_DURATION):i())};var i=t.fn.alert;t.fn.alert=function(e){return this.each(function(){var i=t(this),s=i.data("bs.alert");s||i.data("bs.alert",s=new n(this)),"string"==typeof e&&s[e].call(i)})},t.fn.alert.Constructor=n,t.fn.alert.noConflict=function(){return t.fn.alert=i,this},t(document).on("click.bs.alert.data-api",e,n.prototype.close)}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),s=i.data("bs.button"),r="object"==typeof e&&e;s||i.data("bs.button",s=new n(this,r)),"toggle"==e?s.toggle():e&&s.setState(e)})}var n=function(e,i){this.$element=t(e),this.options=t.extend({},n.DEFAULTS,i),this.isLoading=!1};n.VERSION="3.3.7",n.DEFAULTS={loadingText:"loading..."},n.prototype.setState=function(e){var n="disabled",i=this.$element,s=i.is("input")?"val":"html",r=i.data();e+="Text",null==r.resetText&&i.data("resetText",i[s]()),setTimeout(t.proxy(function(){i[s](null==r[e]?this.options[e]:r[e]),"loadingText"==e?(this.isLoading=!0,i.addClass(n).attr(n,n).prop(n,!0)):this.isLoading&&(this.isLoading=!1,i.removeClass(n).removeAttr(n).prop(n,!1))},this),0)},n.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var i=t.fn.button;t.fn.button=e,t.fn.button.Constructor=n,t.fn.button.noConflict=function(){return t.fn.button=i,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(n){var i=t(n.target).closest(".btn");e.call(i,"toggle"),t(n.target).is('input[type="radio"], input[type="checkbox"]')||(n.preventDefault(),i.is("input,button")?i.trigger("focus"):i.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),s=i.data("bs.carousel"),r=t.extend({},n.DEFAULTS,i.data(),"object"==typeof e&&e),o="string"==typeof e?e:r.slide;s||i.data("bs.carousel",s=new n(this,r)),"number"==typeof e?s.to(e):o?s[o]():r.interval&&s.pause().cycle()})}var n=function(e,n){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};n.VERSION="3.3.7",n.TRANSITION_DURATION=600,n.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},n.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},n.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},n.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},n.prototype.getItemForDirection=function(t,e){var n=this.getItemIndex(e);if(("prev"==t&&0===n||"next"==t&&n==this.$items.length-1)&&!this.options.wrap)return e;var i=(n+("prev"==t?-1:1))%this.$items.length;return this.$items.eq(i)},n.prototype.to=function(t){var e=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):n==t?this.pause().cycle():this.slide(t>n?"next":"prev",this.$items.eq(t))},n.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},n.prototype.next=function(){if(!this.sliding)return this.slide("next")},n.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},n.prototype.slide=function(e,i){var s=this.$element.find(".item.active"),r=i||this.getItemForDirection(e,s),o=this.interval,a="next"==e?"left":"right",l=this;if(r.hasClass("active"))return this.sliding=!1;var c=r[0],u=t.Event("slide.bs.carousel",{relatedTarget:c,direction:a});if(this.$element.trigger(u),!u.isDefaultPrevented()){if(this.sliding=!0,o&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var d=t(this.$indicators.children()[this.getItemIndex(r)]);d&&d.addClass("active")}var h=t.Event("slid.bs.carousel",{relatedTarget:c,direction:a});return t.support.transition&&this.$element.hasClass("slide")?(r.addClass(e),r[0].offsetWidth,s.addClass(a),r.addClass(a),s.one("bsTransitionEnd",function(){r.removeClass([e,a].join(" ")).addClass("active"),s.removeClass(["active",a].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(h)},0)}).emulateTransitionEnd(n.TRANSITION_DURATION)):(s.removeClass("active"),r.addClass("active"),this.sliding=!1,this.$element.trigger(h)),o&&this.cycle(),this}};var i=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=n,t.fn.carousel.noConflict=function(){return t.fn.carousel=i,this};var s=function(n){var i,s=t(this),r=t(s.attr("data-target")||(i=s.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""));if(r.hasClass("carousel")){var o=t.extend({},r.data(),s.data()),a=s.attr("data-slide-to");a&&(o.interval=!1),e.call(r,o),a&&r.data("bs.carousel").to(a),n.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",s).on("click.bs.carousel.data-api","[data-slide-to]",s),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var n=t(this);e.call(n,n.data())})})}(jQuery),function(t){"use strict";function e(e){var n,i=e.attr("data-target")||(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return t(i)}function n(e){return this.each(function(){var n=t(this),s=n.data("bs.collapse"),r=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e);!s&&r.toggle&&/show|hide/.test(e)&&(r.toggle=!1),s||n.data("bs.collapse",s=new i(this,r)),"string"==typeof e&&s[e]()})}var i=function(e,n){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,n),this.$trigger=t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};i.VERSION="3.3.7",i.TRANSITION_DURATION=350,i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,s=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(s&&s.length&&(e=s.data("bs.collapse"))&&e.transitioning)){var r=t.Event("show.bs.collapse");if(this.$element.trigger(r),!r.isDefaultPrevented()){s&&s.length&&(n.call(s,"hide"),e||s.data("bs.collapse",null));var o=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[o](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[o](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return a.call(this);var l=t.camelCase(["scroll",o].join("-"));this.$element.one("bsTransitionEnd",t.proxy(a,this)).emulateTransitionEnd(i.TRANSITION_DURATION)[o](this.$element[0][l])}}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var s=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!t.support.transition)return s.call(this);this.$element[n](0).one("bsTransitionEnd",t.proxy(s,this)).emulateTransitionEnd(i.TRANSITION_DURATION)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},i.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(n,i){var s=t(i);this.addAriaAndCollapsedClass(e(s),s)},this)).end()},i.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var s=t.fn.collapse;t.fn.collapse=n,t.fn.collapse.Constructor=i,t.fn.collapse.noConflict=function(){return t.fn.collapse=s,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(i){var s=t(this);s.attr("data-target")||i.preventDefault();var r=e(s),o=r.data("bs.collapse")?"toggle":s.data();n.call(r,o)})}(jQuery),function(t){"use strict";function e(e){var n=e.attr("data-target");n||(n=(n=e.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i=n&&t(n);return i&&i.length?i:e.parent()}function n(n){n&&3===n.which||(t(i).remove(),t(s).each(function(){var i=t(this),s=e(i),r={relatedTarget:this};s.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&t.contains(s[0],n.target)||(s.trigger(n=t.Event("hide.bs.dropdown",r)),n.isDefaultPrevented()||(i.attr("aria-expanded","false"),s.removeClass("open").trigger(t.Event("hidden.bs.dropdown",r)))))}))}var i=".dropdown-backdrop",s='[data-toggle="dropdown"]',r=function(e){t(e).on("click.bs.dropdown",this.toggle)};r.VERSION="3.3.7",r.prototype.toggle=function(i){var s=t(this);if(!s.is(".disabled, :disabled")){var r=e(s),o=r.hasClass("open");if(n(),!o){"ontouchstart"in document.documentElement&&!r.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",n);var a={relatedTarget:this};if(r.trigger(i=t.Event("show.bs.dropdown",a)),i.isDefaultPrevented())return;s.trigger("focus").attr("aria-expanded","true"),r.toggleClass("open").trigger(t.Event("shown.bs.dropdown",a))}return!1}},r.prototype.keydown=function(n){if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)){var i=t(this);if(n.preventDefault(),n.stopPropagation(),!i.is(".disabled, :disabled")){var r=e(i),o=r.hasClass("open");if(!o&&27!=n.which||o&&27==n.which)return 27==n.which&&r.find(s).trigger("focus"),i.trigger("click");var a=r.find(".dropdown-menu li:not(.disabled):visible a");if(a.length){var l=a.index(n.target);38==n.which&&l>0&&l--,40==n.which&&l<a.length-1&&l++,~l||(l=0),a.eq(l).trigger("focus")}}}};var o=t.fn.dropdown;t.fn.dropdown=function(e){return this.each(function(){var n=t(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new r(this)),"string"==typeof e&&i[e].call(n)})},t.fn.dropdown.Constructor=r,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=o,this},t(document).on("click.bs.dropdown.data-api",n).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",s,r.prototype.toggle).on("keydown.bs.dropdown.data-api",s,r.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",r.prototype.keydown)}(jQuery),function(t){"use strict";function e(e,i){return this.each(function(){var s=t(this),r=s.data("bs.modal"),o=t.extend({},n.DEFAULTS,s.data(),"object"==typeof e&&e);r||s.data("bs.modal",r=new n(this,o)),"string"==typeof e?r[e](i):o.show&&r.show(i)})}var n=function(e,n){this.options=n,this.$body=t(document.body),this.$element=t(e),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};n.VERSION="3.3.7",n.TRANSITION_DURATION=300,n.BACKDROP_TRANSITION_DURATION=150,n.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},n.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},n.prototype.show=function(e){var i=this,s=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(s),this.isShown||s.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){i.$element.one("mouseup.dismiss.bs.modal",function(e){t(e.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var s=t.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),s&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var r=t.Event("shown.bs.modal",{relatedTarget:e});s?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(r)}).emulateTransitionEnd(n.TRANSITION_DURATION):i.$element.trigger("focus").trigger(r)}))},n.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(n.TRANSITION_DURATION):this.hideModal())},n.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},n.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},n.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},n.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},n.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},n.prototype.backdrop=function(e){var i=this,s=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var r=t.support.transition&&s;if(this.$backdrop=t(document.createElement("div")).addClass("modal-backdrop "+s).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;r?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var o=function(){i.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",o).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):o()}else e&&e()},n.prototype.handleUpdate=function(){this.adjustDialog()},n.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},n.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},n.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},n.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},n.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},n.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var i=t.fn.modal;t.fn.modal=e,t.fn.modal.Constructor=n,t.fn.modal.noConflict=function(){return t.fn.modal=i,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(n){var i=t(this),s=i.attr("href"),r=t(i.attr("data-target")||s&&s.replace(/.*(?=#[^\s]+$)/,"")),o=r.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(s)&&s},r.data(),i.data());i.is("a")&&n.preventDefault(),r.one("show.bs.modal",function(t){t.isDefaultPrevented()||r.one("hidden.bs.modal",function(){i.is(":visible")&&i.trigger("focus")})}),e.call(r,o,this)})}(jQuery),function(t){"use strict";var e=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)};e.VERSION="3.3.7",e.TRANSITION_DURATION=150,e.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}},e.prototype.init=function(e,n,i){if(this.enabled=!0,this.type=e,this.$element=t(n),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&t(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var s=this.options.trigger.split(" "),r=s.length;r--;){var o=s[r];if("click"==o)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=o){var a="hover"==o?"mouseenter":"focusin",l="hover"==o?"mouseleave":"focusout";this.$element.on(a+"."+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()},e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.getOptions=function(e){return(e=t.extend({},this.getDefaults(),this.$element.data(),e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},e.prototype.getDelegateOptions=function(){var e={},n=this.getDefaults();return this._options&&t.each(this._options,function(t,i){n[t]!=i&&(e[t]=i)}),e},e.prototype.enter=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusin"==e.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState)n.hoverState="in";else{if(clearTimeout(n.timeout),n.hoverState="in",!n.options.delay||!n.options.delay.show)return n.show();n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)}},e.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},e.prototype.leave=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusout"==e.type?"focus":"hover"]=!1),!n.isInStateTrue()){if(clearTimeout(n.timeout),n.hoverState="out",!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)}},e.prototype.show=function(){var n=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(n);var i=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(n.isDefaultPrevented()||!i)return;var s=this,r=this.tip(),o=this.getUID(this.type);this.setContent(),r.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&r.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,c=l.test(a);c&&(a=a.replace(l,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var u=this.getPosition(),d=r[0].offsetWidth,h=r[0].offsetHeight;if(c){var f=a,p=this.getPosition(this.$viewport);a="bottom"==a&&u.bottom+h>p.bottom?"top":"top"==a&&u.top-h<p.top?"bottom":"right"==a&&u.right+d>p.width?"left":"left"==a&&u.left-d<p.left?"right":a,r.removeClass(f).addClass(a)}var g=this.getCalculatedOffset(a,u,d,h);this.applyPlacement(g,a);var m=function(){var t=s.hoverState;s.$element.trigger("shown.bs."+s.type),s.hoverState=null,"out"==t&&s.leave(s)};t.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",m).emulateTransitionEnd(e.TRANSITION_DURATION):m()}},e.prototype.applyPlacement=function(e,n){var i=this.tip(),s=i[0].offsetWidth,r=i[0].offsetHeight,o=parseInt(i.css("margin-top"),10),a=parseInt(i.css("margin-left"),10);isNaN(o)&&(o=0),isNaN(a)&&(a=0),e.top+=o,e.left+=a,t.offset.setOffset(i[0],t.extend({using:function(t){i.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),i.addClass("in");var l=i[0].offsetWidth,c=i[0].offsetHeight;"top"==n&&c!=r&&(e.top=e.top+r-c);var u=this.getViewportAdjustedDelta(n,e,l,c);u.left?e.left+=u.left:e.top+=u.top;var d=/top|bottom/.test(n),h=d?2*u.left-s+l:2*u.top-r+c,f=d?"offsetWidth":"offsetHeight";i.offset(e),this.replaceArrow(h,i[0][f],d)},e.prototype.replaceArrow=function(t,e,n){this.arrow().css(n?"left":"top",50*(1-t/e)+"%").css(n?"top":"left","")},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},e.prototype.hide=function(n){function i(){"in"!=s.hoverState&&r.detach(),s.$element&&s.$element.removeAttr("aria-describedby").trigger("hidden.bs."+s.type),n&&n()}var s=this,r=t(this.$tip),o=t.Event("hide.bs."+this.type);if(this.$element.trigger(o),!o.isDefaultPrevented())return r.removeClass("in"),t.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",i).emulateTransitionEnd(e.TRANSITION_DURATION):i(),this.hoverState=null,this},e.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","")},e.prototype.hasContent=function(){return this.getTitle()},e.prototype.getPosition=function(e){var n=(e=e||this.$element)[0],i="BODY"==n.tagName,s=n.getBoundingClientRect();null==s.width&&(s=t.extend({},s,{width:s.right-s.left,height:s.bottom-s.top}));var r=window.SVGElement&&n instanceof window.SVGElement,o=i?{top:0,left:0}:r?null:e.offset(),a={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},l=i?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},s,a,l,o)},e.prototype.getCalculatedOffset=function(t,e,n,i){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-n/2}:"top"==t?{top:e.top-i,left:e.left+e.width/2-n/2}:"left"==t?{top:e.top+e.height/2-i/2,left:e.left-n}:{top:e.top+e.height/2-i/2,left:e.left+e.width}},e.prototype.getViewportAdjustedDelta=function(t,e,n,i){var s={top:0,left:0};if(!this.$viewport)return s;var r=this.options.viewport&&this.options.viewport.padding||0,o=this.getPosition(this.$viewport);if(/right|left/.test(t)){var a=e.top-r-o.scroll,l=e.top+r-o.scroll+i;a<o.top?s.top=o.top-a:l>o.top+o.height&&(s.top=o.top+o.height-l)}else{var c=e.left-r,u=e.left+r+n;c<o.left?s.left=o.left-c:u>o.right&&(s.left=o.left+o.width-u)}return s},e.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)},e.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},e.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},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},e.prototype.enable=function(){this.enabled=!0},e.prototype.disable=function(){this.enabled=!1},e.prototype.toggleEnabled=function(){this.enabled=!this.enabled},e.prototype.toggle=function(e){var n=this;e&&((n=t(e.currentTarget).data("bs."+this.type))||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n))),e?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},e.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})};var n=t.fn.tooltip;t.fn.tooltip=function(n){return this.each(function(){var i=t(this),s=i.data("bs.tooltip"),r="object"==typeof n&&n;!s&&/destroy|hide/.test(n)||(s||i.data("bs.tooltip",s=new e(this,r)),"string"==typeof n&&s[n]())})},t.fn.tooltip.Constructor=e,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=n,this}}(jQuery),function(t){"use strict";var e=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");e.VERSION="3.3.7",e.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>'}),e.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),e.prototype.constructor=e,e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},e.prototype.hasContent=function(){return this.getTitle()||this.getContent()},e.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)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var n=t.fn.popover;t.fn.popover=function(n){return this.each(function(){var i=t(this),s=i.data("bs.popover"),r="object"==typeof n&&n;!s&&/destroy|hide/.test(n)||(s||i.data("bs.popover",s=new e(this,r)),"string"==typeof n&&s[n]())})},t.fn.popover.Constructor=e,t.fn.popover.noConflict=function(){return t.fn.popover=n,this}}(jQuery),function(t){"use strict";function e(n,i){this.$body=t(document.body),this.$scrollElement=t(t(n).is(document.body)?window:n),this.options=t.extend({},e.DEFAULTS,i),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each(function(){var i=t(this),s=i.data("bs.scrollspy"),r="object"==typeof n&&n;s||i.data("bs.scrollspy",s=new e(this,r)),"string"==typeof n&&s[n]()})}e.VERSION="3.3.7",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e=this,n="offset",i=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(n="position",i=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=t(this),s=e.data("target")||e.attr("href"),r=/^#./.test(s)&&t(s);return r&&r.length&&r.is(":visible")&&[[r[n]().top+i,s]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),s=this.offsets,r=this.targets,o=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),e>=i)return o!=(t=r[r.length-1])&&this.activate(t);if(o&&e<s[0])return this.activeTarget=null,this.clear();for(t=s.length;t--;)o!=r[t]&&e>=s[t]&&(void 0===s[t+1]||e<s[t+1])&&this.activate(r[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var n=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',i=t(n).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},e.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var i=t.fn.scrollspy;t.fn.scrollspy=n,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=i,this},t(window).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);n.call(e,e.data())})})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),s=i.data("bs.tab");s||i.data("bs.tab",s=new n(this)),"string"==typeof e&&s[e]()})}var n=function(e){this.element=t(e)};n.VERSION="3.3.7",n.TRANSITION_DURATION=150,n.prototype.show=function(){var e=this.element,n=e.closest("ul:not(.dropdown-menu)"),i=e.data("target");if(i||(i=(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var s=n.find(".active:last a"),r=t.Event("hide.bs.tab",{relatedTarget:e[0]}),o=t.Event("show.bs.tab",{relatedTarget:s[0]});if(s.trigger(r),e.trigger(o),!o.isDefaultPrevented()&&!r.isDefaultPrevented()){var a=t(i);this.activate(e.closest("li"),n),this.activate(a,a.parent(),function(){s.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:s[0]})})}}},n.prototype.activate=function(e,i,s){function r(){o.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),a?(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),s&&s()}var o=i.find("> .active"),a=s&&t.support.transition&&(o.length&&o.hasClass("fade")||!!i.find("> .fade").length);o.length&&a?o.one("bsTransitionEnd",r).emulateTransitionEnd(n.TRANSITION_DURATION):r(),o.removeClass("in")};var i=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=n,t.fn.tab.noConflict=function(){return t.fn.tab=i,this};var s=function(n){n.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',s).on("click.bs.tab.data-api",'[data-toggle="pill"]',s)}(jQuery),function(t){"use strict";t.fn.emulateTransitionEnd=function(e){var n=!1,i=this;t(this).one("bsTransitionEnd",function(){n=!0});return setTimeout(function(){n||t(i).trigger(t.support.transition.end)},e),this},t(function(){t.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]};return!1}(),t.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";var e=function(t){return(t||"ui-id")+"-"+Math.floor(1e3*Math.random()+1)},n=function(e,n,i){var s=(e.attr(n)||"").split(/\s+/),r=t.inArray(i,s);-1!==r&&s.splice(r,1),(s=t.trim(s.join(" ")))?e.attr(n,s):e.removeAttr(n)};t(".alert").attr("role","alert"),t(".close").removeAttr("aria-hidden").wrapInner('<span aria-hidden="true"></span>').append('<span class="sr-only">Close</span>');var i=t.fn.tooltip.Constructor.prototype.show,s=t.fn.tooltip.Constructor.prototype.hide;t.fn.tooltip.Constructor.prototype.show=function(){i.apply(this,arguments);var t=this.tip(),n=t.attr("id")||e("ui-tooltip");t.attr({role:"tooltip",id:n}),this.$element.attr("aria-describedby",n)},t.fn.tooltip.Constructor.prototype.hide=function(){return s.apply(this,arguments),n(this.$element,"aria-describedby",this.tip().attr("id")),this};var r=t.fn.popover.Constructor.prototype.setContent,o=t.fn.popover.Constructor.prototype.hide;t.fn.popover.Constructor.prototype.setContent=function(){r.apply(this,arguments);var t=this.tip(),n=t.attr("id")||e("ui-tooltip");t.attr({role:"alert",id:n}),this.$element.attr("aria-describedby",n),this.$element.focus()},t.fn.popover.Constructor.prototype.hide=function(){return o.apply(this,arguments),n(this.$element,"aria-describedby",this.tip().attr("id")),this},t(".modal-dialog").attr({role:"document"});var a=t.fn.modal.Constructor.prototype.hide;t.fn.modal.Constructor.prototype.hide=function(){var t=this.$element.parent().find('[data-target="#'+this.$element.attr("id")+'"]');a.apply(this,arguments),t.focus()};var l,c="[data-toggle=dropdown]";t(c).parent().find("ul").attr("role","menu").find("li").attr("role","presentation").find("a").attr({role:"menuitem",tabIndex:"-1"}),t(c).attr({"aria-haspopup":"true","aria-expanded":"false"}),t(c).parent().on("shown.bs.dropdown",function(e){(l=t(this)).find(c).attr("aria-expanded","true")}),t(c).parent().on("hidden.bs.dropdown",function(e){(l=t(this)).find(c).attr("aria-expanded","false")}),t.fn.dropdown.Constructor.prototype.keydown=function(e){/(32)/.test(e.keyCode)&&(t(this).parent(),t(this).trigger("click"),e.preventDefault()&&e.stopPropagation())};var u=t(".nav-tabs, .nav-pills"),d=u.children("li"),h=u.find('[data-toggle="tab"], [data-toggle="pill"]');u.attr("role","tablist"),d.attr("role","presentation"),h.attr("role","tab"),h.each(function(n){var i=t(t(this).attr("href")),s=t(this),r=s.attr("id")||e("ui-tab");s.attr("id",r),s.parent().hasClass("active")?(s.attr({tabIndex:"0","aria-selected":"true","aria-controls":s.attr("href").substr(1)}),i.attr({role:"tabpanel","aria-hidden":"false","aria-labelledby":r})):(s.attr({tabIndex:"-1","aria-selected":"false","aria-controls":s.attr("href").substr(1)}),i.attr({role:"tabpanel","aria-hidden":"true","aria-labelledby":r}))}),t.fn.tab.Constructor.prototype.keydown=function(e){var n,i,s=t(this),r=s.closest("ul[role=tablist] "),o=e.which||e.keyCode;if(s=t(this),/(37|38|39|40)/.test(o)){i=(n=r.find("[role=tab]:visible")).index(n.filter(":focus")),38!=o&&37!=o||i--,39!=o&&40!=o||i++,i<0&&(i=n.length-1),i==n.length&&(i=0);var a=n.eq(i);"tab"===a.attr("role")&&a.focus(),e.preventDefault(),e.stopPropagation()}},t(document).on("keydown.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',t.fn.tab.Constructor.prototype.keydown);var f=t.fn.tab.Constructor.prototype.activate;t.fn.tab.Constructor.prototype.activate=function(t,e,n){var i=e.find("> .active");i.find("[data-toggle=tab], [data-toggle=pill]").attr({tabIndex:"-1","aria-selected":!1}),i.filter(".tab-pane").attr({"aria-hidden":!0}),f.apply(this,arguments),t.addClass("active"),t.find("[data-toggle=tab], [data-toggle=pill]").attr({tabIndex:"0","aria-selected":!0}),t.filter(".tab-pane").attr({"aria-hidden":!1})};var p=t('[data-toggle="collapse"]');p.attr({role:"tab","aria-selected":"false","aria-expanded":"false"}),p.each(function(n){var i=t(this),s=t(i.attr("data-target")?i.attr("data-target"):i.attr("href")),r=i.attr("data-parent"),o=r&&t(r),a=i.attr("id")||e("ui-collapse");t(o).find("div:not(.collapse,.panel-body), h4").attr("role","presentation"),i.attr("id",a),o&&(o.attr({role:"tablist","aria-multiselectable":"true"}),s.hasClass("in")?(i.attr({"aria-controls":i.attr("href").substr(1),"aria-selected":"true","aria-expanded":"true",tabindex:"0"}),s.attr({role:"tabpanel",tabindex:"0","aria-labelledby":a,"aria-hidden":"false"})):(i.attr({"aria-controls":i.attr("href").substr(1),tabindex:"-1"}),s.attr({role:"tabpanel",tabindex:"-1","aria-labelledby":a,"aria-hidden":"true"})))});var g=t.fn.collapse.Constructor.prototype.toggle;t.fn.collapse.Constructor.prototype.toggle=function(){var e,n=this.$parent&&this.$parent.find('[aria-expanded="true"]');if(n){var i,s=n.attr("data-target")||(e=n.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,""),r=t(s),o=this.$element;this.$parent;this.$parent&&(i=this.$parent.find('[data-toggle=collapse][href="#'+this.$element.attr("id")+'"]')),g.apply(this,arguments),t.support.transition&&this.$element.one(t.support.transition.end,function(){n.attr({"aria-selected":"false","aria-expanded":"false",tabIndex:"-1"}),r.attr({"aria-hidden":"true",tabIndex:"-1"}),i.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:"0"}),o.hasClass("in")?o.attr({"aria-hidden":"false",tabIndex:"0"}):(i.attr({"aria-selected":"false","aria-expanded":"false"}),o.attr({"aria-hidden":"true",tabIndex:"-1"}))})}else g.apply(this,arguments)},t.fn.collapse.Constructor.prototype.keydown=function(e){var n,i,s=t(this),r=s.closest("div[role=tablist] "),o=e.which||e.keyCode;s=t(this),/(32|37|38|39|40)/.test(o)&&(32==o&&s.click(),i=(n=r.find("[role=tab]")).index(n.filter(":focus")),38!=o&&37!=o||i--,39!=o&&40!=o||i++,i<0&&(i=n.length-1),i==n.length&&(i=0),n.eq(i).focus(),e.preventDefault(),e.stopPropagation())},t(document).on("keydown.collapse.data-api",'[data-toggle="collapse"]',t.fn.collapse.Constructor.prototype.keydown),t(".carousel").each(function(e){var n=t(this),i=n.find('[data-slide="prev"]'),s=n.find('[data-slide="next"]'),r=n.find(".item"),o=r.parent();n.attr({"data-interval":"false","data-wrap":"false"}),o.attr("role","listbox"),r.attr("role","option");var a=document.createElement("span");a.setAttribute("class","sr-only"),a.innerHTML="Previous";var l=document.createElement("span");l.setAttribute("class","sr-only"),l.innerHTML="Next",i.attr("role","button"),s.attr("role","button"),i.append(a),s.append(l),r.each(function(){var e=t(this);e.hasClass("active")?e.attr({"aria-selected":"true",tabindex:"0"}):e.attr({"aria-selected":"false",tabindex:"-1"})})});var m=t.fn.carousel.Constructor.prototype.slide;t.fn.carousel.Constructor.prototype.slide=function(e,n){var i=this.$element.find(".item.active"),s=n||i[e]();m.apply(this,arguments),i.one(t.support.transition.end,function(){i.attr({"aria-selected":!1,tabIndex:"-1"}),s.attr({"aria-selected":!0,tabIndex:"0"})})},t.fn.carousel.Constructor.prototype.keydown=function(e){var n,i=t(this),s=i.closest("div[role=listbox]"),r=s.find("[role=option]"),o=s.parent(),a=e.which||e.keyCode;/(37|38|39|40)/.test(a)&&(n=r.index(r.filter(".active")),37!=a&&38!=a||(o.carousel("prev"),--n<0?n=r.length-1:i.prev().focus()),39!=a&&40!=a||(o.carousel("next"),++n==r.length?n=0:i.one(t.support.transition.end,function(){i.next().focus()})),e.preventDefault(),e.stopPropagation())},t(document).on("keydown.carousel.data-api","div[role=option]",t.fn.carousel.Constructor.prototype.keydown)}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&"object"==typeof module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){return function(e){"use strict";var n=e.tablesorter={version:"2.29.0",parsers:[],widgets:[],defaults:{theme:"default",widthFixed:!1,showProcessing:!1,headerTemplate:"{content}",onRenderTemplate:null,onRenderHeader:null,cancelSelection:!0,tabIndex:!0,dateFormat:"mmddyyyy",sortMultiSortKey:"shiftKey",sortResetKey:"ctrlKey",usNumberFormat:!0,delayInit:!1,serverSideSorting:!1,resort:!0,headers:{},ignoreCase:!0,sortForce:null,sortList:[],sortAppend:null,sortStable:!1,sortInitialOrder:"asc",sortLocaleCompare:!1,sortReset:!1,sortRestart:!1,emptyTo:"bottom",stringTo:"max",duplicateSpan:!0,textExtraction:"basic",textAttribute:"data-text",textSorter:null,numberSorter:null,initWidgets:!0,widgetClass:"widget-{name}",widgets:[],widgetOptions:{zebra:["even","odd"]},initialized:null,tableClass:"",cssAsc:"",cssDesc:"",cssNone:"",cssHeader:"",cssHeaderRow:"",cssProcessing:"",cssChildRow:"tablesorter-childRow",cssInfoBlock:"tablesorter-infoOnly",cssNoSort:"tablesorter-noSort",cssIgnoreRow:"tablesorter-ignoreRow",cssIcon:"tablesorter-icon",cssIconNone:"",cssIconAsc:"",cssIconDesc:"",cssIconDisabled:"",pointerClick:"click",pointerDown:"mousedown",pointerUp:"mouseup",selectorHeaders:"> thead th, > thead td",selectorSort:"th, td",selectorRemove:".remove-me",debug:!1,headerList:[],empties:{},strings:{},parsers:[],globalize:0,imgAttr:0},css:{table:"tablesorter",cssHasChild:"tablesorter-hasChildRow",childRow:"tablesorter-childRow",colgroup:"tablesorter-colgroup",header:"tablesorter-header",headerRow:"tablesorter-headerRow",headerIn:"tablesorter-header-inner",icon:"tablesorter-icon",processing:"tablesorter-processing",sortAsc:"tablesorter-headerAsc",sortDesc:"tablesorter-headerDesc",sortNone:"tablesorter-headerUnSorted"},language:{sortAsc:"Ascending sort applied, ",sortDesc:"Descending sort applied, ",sortNone:"No sort applied, ",sortDisabled:"sorting is disabled",nextAsc:"activate to apply an ascending sort",nextDesc:"activate to apply a descending sort",nextNone:"activate to remove the sort"},regex:{templateContent:/\{content\}/g,templateIcon:/\{icon\}/g,templateName:/\{name\}/i,spaces:/\s+/g,nonWord:/\W/g,formElements:/(input|select|button|textarea)/i,chunk:/(^([+\-]?(?:\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,chunks:/(^\\0|\\0$)/,hex:/^0x[0-9a-f]+$/i,comma:/,/g,digitNonUS:/[\s|\.]/g,digitNegativeTest:/^\s*\([.\d]+\)/,digitNegativeReplace:/^\s*\(([.\d]+)\)/,digitTest:/^[\-+(]?\d+[)]?$/,digitReplace:/[,.'"\s]/g},string:{max:1,min:-1,emptymin:1,emptymax:-1,zero:0,none:0,null:0,top:!0,bottom:!1},keyCodes:{enter:13},dates:{},instanceMethods:{},setup:function(t,i){if(t&&t.tHead&&0!==t.tBodies.length&&!0!==t.hasInitialized){var s="",r=e(t),o=e.metadata;t.hasInitialized=!1,t.isProcessing=!0,t.config=i,e.data(t,"tablesorter",i),i.debug&&(console[console.group?"group":"log"]("Initializing tablesorter v"+n.version),e.data(t,"startoveralltimer",new Date)),i.supportsDataObject=function(t){return t[0]=parseInt(t[0],10),t[0]>1||1===t[0]&&parseInt(t[1],10)>=4}(e.fn.jquery.split(".")),i.emptyTo=i.emptyTo.toLowerCase(),i.stringTo=i.stringTo.toLowerCase(),i.last={sortList:[],clickedIndex:-1},/tablesorter\-/.test(r.attr("class"))||(s=""!==i.theme?" tablesorter-"+i.theme:""),i.namespace?i.namespace="."+i.namespace.replace(n.regex.nonWord,""):i.namespace=".tablesorter"+Math.random().toString(16).slice(2),i.table=t,i.$table=r.addClass(n.css.table+" "+i.tableClass+s+" "+i.namespace.slice(1)).attr("role","grid"),i.$headers=r.find(i.selectorHeaders),i.$table.children().children("tr").attr("role","row"),i.$tbodies=r.children("tbody:not(."+i.cssInfoBlock+")").attr({"aria-live":"polite","aria-relevant":"all"}),i.$table.children("caption").length&&((s=i.$table.children("caption")[0]).id||(s.id=i.namespace.slice(1)+"caption"),i.$table.attr("aria-labelledby",s.id)),i.widgetInit={},i.textExtraction=i.$table.attr("data-text-extraction")||i.textExtraction||"basic",n.buildHeaders(i),n.fixColumnWidth(t),n.addWidgetFromClass(t),n.applyWidgetOptions(t),n.setupParsers(i),i.totalRows=0,n.validateOptions(i),i.delayInit||n.buildCache(i),n.bindEvents(t,i.$headers,!0),n.bindMethods(i),i.supportsDataObject&&void 0!==r.data().sortlist?i.sortList=r.data().sortlist:o&&r.metadata()&&r.metadata().sortlist&&(i.sortList=r.metadata().sortlist),n.applyWidget(t,!0),i.sortList.length>0?n.sortOn(i,i.sortList,{},!i.initWidgets):(n.setHeadersCss(i),i.initWidgets&&n.applyWidget(t,!1)),i.showProcessing&&r.unbind("sortBegin"+i.namespace+" sortEnd"+i.namespace).bind("sortBegin"+i.namespace+" sortEnd"+i.namespace,function(e){clearTimeout(i.timerProcessing),n.isProcessing(t),"sortBegin"===e.type&&(i.timerProcessing=setTimeout(function(){n.isProcessing(t,!0)},500))}),t.hasInitialized=!0,t.isProcessing=!1,i.debug&&(console.log("Overall initialization time:"+n.benchmark(e.data(t,"startoveralltimer"))),i.debug&&console.groupEnd&&console.groupEnd()),r.triggerHandler("tablesorter-initialized",t),"function"==typeof i.initialized&&i.initialized(t)}else i.debug&&(t.hasInitialized?console.warn("Stopping initialization. Tablesorter has already been initialized"):console.error("Stopping initialization! No table, thead or tbody",t))},bindMethods:function(t){var i=t.$table,s=t.namespace,r="sortReset update updateRows updateAll updateHeaders addRows updateCell updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave ".split(" ").join(s+" ");i.unbind(r.replace(n.regex.spaces," ")).bind("sortReset"+s,function(t,e){t.stopPropagation(),n.sortReset(this.config,function(t){t.isApplyingWidgets?setTimeout(function(){n.applyWidget(t,"",e)},100):n.applyWidget(t,"",e)})}).bind("updateAll"+s,function(t,e,i){t.stopPropagation(),n.updateAll(this.config,e,i)}).bind("update"+s+" updateRows"+s,function(t,e,i){t.stopPropagation(),n.update(this.config,e,i)}).bind("updateHeaders"+s,function(t,e){t.stopPropagation(),n.updateHeaders(this.config,e)}).bind("updateCell"+s,function(t,e,i,s){t.stopPropagation(),n.updateCell(this.config,e,i,s)}).bind("addRows"+s,function(t,e,i,s){t.stopPropagation(),n.addRows(this.config,e,i,s)}).bind("updateComplete"+s,function(){this.isUpdating=!1}).bind("sorton"+s,function(t,e,i,s){t.stopPropagation(),n.sortOn(this.config,e,i,s)}).bind("appendCache"+s,function(t,i,s){t.stopPropagation(),n.appendCache(this.config,s),e.isFunction(i)&&i(this)}).bind("updateCache"+s,function(t,e,i){t.stopPropagation(),n.updateCache(this.config,e,i)}).bind("applyWidgetId"+s,function(t,e){t.stopPropagation(),n.applyWidgetId(this,e)}).bind("applyWidgets"+s,function(t,e){t.stopPropagation(),n.applyWidget(this,!1,e)}).bind("refreshWidgets"+s,function(t,e,i){t.stopPropagation(),n.refreshWidgets(this,e,i)}).bind("removeWidget"+s,function(t,e,i){t.stopPropagation(),n.removeWidget(this,e,i)}).bind("destroy"+s,function(t,e,i){t.stopPropagation(),n.destroy(this,e,i)}).bind("resetToLoadState"+s,function(i){i.stopPropagation(),n.removeWidget(this,!0,!1);var s=e.extend(!0,{},t.originalSettings);(t=e.extend(!0,{},n.defaults,s)).originalSettings=s,this.hasInitialized=!1,n.setup(this,t)})},bindEvents:function(t,i,s){var r,o=(t=e(t)[0]).config,a=o.namespace,l=null;!0!==s&&(i.addClass(a.slice(1)+"_extra_headers"),(r=n.getClosest(i,"table")).length&&"TABLE"===r[0].nodeName&&r[0]!==t&&e(r[0]).addClass(a.slice(1)+"_extra_table")),r=(o.pointerDown+" "+o.pointerUp+" "+o.pointerClick+" sort keyup ").replace(n.regex.spaces," ").split(" ").join(a+" "),i.find(o.selectorSort).add(i.filter(o.selectorSort)).unbind(r).bind(r,function(t,s){var r,a,c,u=e(t.target),d=" "+t.type+" ";if(!(1!==(t.which||t.button)&&!d.match(" "+o.pointerClick+" | sort | keyup ")||" keyup "===d&&t.which!==n.keyCodes.enter||d.match(" "+o.pointerClick+" ")&&void 0!==t.which||d.match(" "+o.pointerUp+" ")&&l!==t.target&&!0!==s)){if(d.match(" "+o.pointerDown+" "))return l=t.target,void("1"===(c=u.jquery.split("."))[0]&&c[1]<4&&t.preventDefault());if(l=null,n.regex.formElements.test(t.target.nodeName)||u.hasClass(o.cssNoSort)||u.parents("."+o.cssNoSort).length>0||u.parents("button").length>0)return!o.cancelSelection;o.delayInit&&n.isEmptyObject(o.cache)&&n.buildCache(o),r=n.getHeaderCell(e(this)),c=i.index(r),o.last.clickedIndex=c<0?r.attr("data-column"):c,(a=o.$headers[o.last.clickedIndex])&&!a.sortDisabled&&n.initSort(o,a,t)}}),o.cancelSelection&&i.attr("unselectable","on").bind("selectstart",!1).css({"user-select":"none",MozUserSelect:"none"})},buildHeaders:function(t){var i,s,r,o;for(t.headerList=[],t.headerContent=[],t.sortVars=[],t.debug&&(r=new Date),t.columns=n.computeColumnIndex(t.$table.children("thead, tfoot").children("tr")),s=t.cssIcon?'<i class="'+(t.cssIcon===n.css.icon?n.css.icon:t.cssIcon+" "+n.css.icon)+'"></i>':"",t.$headers=e(e.map(t.$table.find(t.selectorHeaders),function(i,r){var o,a,l,c,u,d,h=e(i);if(!h.parent().hasClass(t.cssIgnoreRow))return o=n.getColumnData(t.table,t.headers,r,!0),t.headerContent[r]=h.html(),""===t.headerTemplate||h.find("."+n.css.headerIn).length||(c=t.headerTemplate.replace(n.regex.templateContent,h.html()).replace(n.regex.templateIcon,h.find("."+n.css.icon).length?"":s),t.onRenderTemplate&&(a=t.onRenderTemplate.apply(h,[r,c]))&&"string"==typeof a&&(c=a),h.html('<div class="'+n.css.headerIn+'">'+c+"</div>")),t.onRenderHeader&&t.onRenderHeader.apply(h,[r,t,t.$table]),d=n.getHeaderCell(h),l=parseInt(d.attr("data-column"),10),i.column=l,u=n.getOrder(n.getData(h,o,"sortInitialOrder")||t.sortInitialOrder),t.sortVars[l]={count:-1,order:u?t.sortReset?[1,0,2]:[1,0]:t.sortReset?[0,1,2]:[0,1],lockedOrder:!1},void 0!==(u=n.getData(h,o,"lockedOrder")||!1)&&!1!==u&&(t.sortVars[l].lockedOrder=!0,t.sortVars[l].order=n.getOrder(u)?[1,1]:[0,0]),t.headerList[r]=i,h.addClass(n.css.header+" "+t.cssHeader),n.getClosest(h,"tr").addClass(n.css.headerRow+" "+t.cssHeaderRow).attr("role","row"),t.tabIndex&&h.attr("tabindex",0),i})),t.$headerIndexed=[],o=0;o<t.columns;o++)n.isEmptyObject(t.sortVars[o])&&(t.sortVars[o]={}),i=t.$headers.filter('[data-column="'+o+'"]'),t.$headerIndexed[o]=i.length?i.not(".sorter-false").length?i.not(".sorter-false").filter(":last"):i.filter(":last"):e();t.$table.find(t.selectorHeaders).attr({scope:"col",role:"columnheader"}),n.updateHeader(t),t.debug&&(console.log("Built headers:"+n.benchmark(r)),console.log(t.$headers))},addInstanceMethods:function(t){e.extend(n.instanceMethods,t)},setupParsers:function(t,e){var i,s,r,o,a,l,c,u,d,h,f,p,g,m,y=t.table,v=0,b={};if(t.$tbodies=t.$table.children("tbody:not(."+t.cssInfoBlock+")"),g=void 0===e?t.$tbodies:e,0===(m=g.length))return t.debug?console.warn("Warning: *Empty table!* Not building a parser cache"):"";for(t.debug&&(p=new Date,console[console.group?"group":"log"]("Detecting parsers for each column")),s={extractors:[],parsers:[]};v<m;){if((i=g[v].rows).length)for(a=0,o=t.columns,l=0;l<o;l++){if((c=t.$headerIndexed[a])&&c.length&&(u=n.getColumnData(y,t.headers,a),f=n.getParserById(n.getData(c,u,"extractor")),h=n.getParserById(n.getData(c,u,"sorter")),d="false"===n.getData(c,u,"parser"),t.empties[a]=(n.getData(c,u,"empty")||t.emptyTo||(t.emptyToBottom?"bottom":"top")).toLowerCase(),t.strings[a]=(n.getData(c,u,"string")||t.stringTo||"max").toLowerCase(),d&&(h=n.getParserById("no-parser")),f||(f=!1),h||(h=n.detectParserForColumn(t,i,-1,a)),t.debug&&(b["("+a+") "+c.text()]={parser:h.id,extractor:f?f.id:"none",string:t.strings[a],empty:t.empties[a]}),s.parsers[a]=h,s.extractors[a]=f,(r=c[0].colSpan-1)>0))for(a+=r,o+=r;r+1>0;)s.parsers[a-r]=h,s.extractors[a-r]=f,r--;a++}v+=s.parsers.length?m:1}t.debug&&(n.isEmptyObject(b)?console.warn(" No parsers detected!"):console[console.table?"table":"log"](b),console.log("Completed detecting parsers"+n.benchmark(p)),console.groupEnd&&console.groupEnd()),t.parsers=s.parsers,t.extractors=s.extractors},addParser:function(t){var e,i=n.parsers.length,s=!0;for(e=0;e<i;e++)n.parsers[e].id.toLowerCase()===t.id.toLowerCase()&&(s=!1);s&&(n.parsers[n.parsers.length]=t)},getParserById:function(t){if("false"==t)return!1;var e,i=n.parsers.length;for(e=0;e<i;e++)if(n.parsers[e].id.toLowerCase()===t.toString().toLowerCase())return n.parsers[e];return!1},detectParserForColumn:function(t,i,s,r){for(var o,a,l,c=n.parsers.length,u=!1,d="",h=!0;""===d&&h;)(l=i[++s])&&s<50?l.className.indexOf(n.cssIgnoreRow)<0&&(u=i[s].cells[r],d=n.getElementText(t,u,r),a=e(u),t.debug&&console.log("Checking if value was empty on row "+s+", column: "+r+': "'+d+'"')):h=!1;for(;--c>=0;)if((o=n.parsers[c])&&"text"!==o.id&&o.is&&o.is(d,t.table,u,a))return o;return n.getParserById("text")},getElementText:function(t,i,s){if(!i)return"";var r,o=t.textExtraction||"",a=i.jquery?i:e(i);return"string"==typeof o?"basic"===o&&void 0!==(r=a.attr(t.textAttribute))?e.trim(r):e.trim(i.textContent||a.text()):"function"==typeof o?e.trim(o(a[0],t.table,s)):"function"==typeof(r=n.getColumnData(t.table,o,s))?e.trim(r(a[0],t.table,s)):e.trim(a[0].textContent||a.text())},getParsedText:function(t,e,i,s){void 0===s&&(s=n.getElementText(t,e,i));var r=""+s,o=t.parsers[i],a=t.extractors[i];return o&&(a&&"function"==typeof a.format&&(s=a.format(s,t.table,e,i)),r="no-parser"===o.id?"":o.format(""+s,t.table,e,i),t.ignoreCase&&"string"==typeof r&&(r=r.toLowerCase())),r},buildCache:function(t,i,s){var r,o,a,l,c,u,d,h,f,p,g,m,y,v,b,_,w,x,C,k,S,T,D=t.table,E=t.parsers;if(t.$tbodies=t.$table.children("tbody:not(."+t.cssInfoBlock+")"),d=void 0===s?t.$tbodies:s,t.cache={},t.totalRows=0,!E)return t.debug?console.warn("Warning: *Empty table!* Not building a cache"):"";for(t.debug&&(m=new Date),t.showProcessing&&n.isProcessing(D,!0),u=0;u<d.length;u++){for(_=[],r=t.cache[u]={normalized:[]},y=d[u]&&d[u].rows.length||0,l=0;l<y;++l)if(v={child:[],raw:[]},h=e(d[u].rows[l]),f=[],!h.hasClass(t.selectorRemove.slice(1)))if(h.hasClass(t.cssChildRow)&&0!==l)for(S=r.normalized.length-1,(b=r.normalized[S][t.columns]).$row=b.$row.add(h),h.prev().hasClass(t.cssChildRow)||h.prev().addClass(n.css.cssHasChild),p=h.children("th, td"),S=b.child.length,b.child[S]=[],x=0,k=t.columns,c=0;c<k;c++)(g=p[c])&&(b.child[S][c]=n.getParsedText(t,g,c),(w=p[c].colSpan-1)>0&&(x+=w,k+=w)),x++;else{for(v.$row=h,v.order=l,x=0,k=t.columns,c=0;c<k;++c){if((g=h[0].cells[c])&&x<t.columns&&(!(C=void 0!==E[x])&&t.debug&&console.warn("No parser found for row: "+l+", column: "+c+'; cell containing: "'+e(g).text()+'"; does it have a header?'),o=n.getElementText(t,g,x),v.raw[x]=o,a=n.getParsedText(t,g,x,o),f[x]=a,C&&"numeric"===(E[x].type||"").toLowerCase()&&(_[x]=Math.max(Math.abs(a)||0,_[x]||0)),(w=g.colSpan-1)>0)){for(T=0;T<=w;)a=t.duplicateSpan||0===T?o:"string"!=typeof t.textExtraction?n.getElementText(t,g,x+T)||"":"",v.raw[x+T]=a,f[x+T]=a,T++;x+=w,k+=w}x++}f[t.columns]=v,r.normalized[r.normalized.length]=f}r.colMax=_,t.totalRows+=r.normalized.length}if(t.showProcessing&&n.isProcessing(D),t.debug){for(S=Math.min(5,t.cache[0].normalized.length),console[console.group?"group":"log"]("Building cache for "+t.totalRows+" rows (showing "+S+" rows in log) and "+t.columns+" columns"+n.benchmark(m)),o={},c=0;c<t.columns;c++)for(x=0;x<S;x++)o["row: "+x]||(o["row: "+x]={}),o["row: "+x][t.$headerIndexed[c].text()]=t.cache[0].normalized[x][c];console[console.table?"table":"log"](o),console.groupEnd&&console.groupEnd()}e.isFunction(i)&&i(D)},getColumnText:function(t,i,s,r){var o,a,l,c,u,d,h,f,p,g,m="function"==typeof s,y="all"===i,v={raw:[],parsed:[],$cell:[]},b=(t=e(t)[0]).config;if(!n.isEmptyObject(b)){for(u=b.$tbodies.length,o=0;o<u;o++)for(d=(l=b.cache[o].normalized).length,a=0;a<d;a++)c=l[a],r&&!c[b.columns].$row.is(r)||(g=!0,f=y?c.slice(0,b.columns):c[i],c=c[b.columns],h=y?c.raw:c.raw[i],p=y?c.$row.children():c.$row.children().eq(i),m&&(g=s({tbodyIndex:o,rowIndex:a,parsed:f,raw:h,$row:c.$row,$cell:p})),!1!==g&&(v.parsed[v.parsed.length]=f,v.raw[v.raw.length]=h,v.$cell[v.$cell.length]=p));return v}b.debug&&console.warn("No cache found - aborting getColumnText function!")},setHeadersCss:function(t){var i,s,r=t.sortList,o=r.length,a=n.css.sortNone+" "+t.cssNone,l=[n.css.sortAsc+" "+t.cssAsc,n.css.sortDesc+" "+t.cssDesc],c=[t.cssIconAsc,t.cssIconDesc,t.cssIconNone],u=["ascending","descending"],d=t.$table.find("tfoot tr").children("td, th").add(e(t.namespace+"_extra_headers")).removeClass(l.join(" ")),h=t.$headers.add(e("thead "+t.namespace+"_extra_headers")).removeClass(l.join(" ")).addClass(a).attr("aria-sort","none").find("."+n.css.icon).removeClass(c.join(" ")).end();for(h.not(".sorter-false").find("."+n.css.icon).addClass(c[2]),t.cssIconDisabled&&h.filter(".sorter-false").find("."+n.css.icon).addClass(t.cssIconDisabled),i=0;i<o;i++)if(2!==r[i][1]&&(h=t.$headers.filter(function(e){for(var i=!0,s=t.$headers.eq(e),r=parseInt(s.attr("data-column"),10),o=r+t.$headers[e].colSpan;r<o;r++)i=!!i&&(i||n.isValueInArray(r,t.sortList)>-1);return i}),(h=h.not(".sorter-false").filter('[data-column="'+r[i][0]+'"]'+(1===o?":last":""))).length)){for(s=0;s<h.length;s++)h[s].sortDisabled||h.eq(s).removeClass(a).addClass(l[r[i][1]]).attr("aria-sort",u[r[i][1]]).find("."+n.css.icon).removeClass(c[2]).addClass(c[r[i][1]]);d.length&&d.filter('[data-column="'+r[i][0]+'"]').removeClass(a).addClass(l[r[i][1]])}for(o=t.$headers.length,i=0;i<o;i++)n.setColumnAriaLabel(t,t.$headers.eq(i))},getClosest:function(t,n){return e.fn.closest?t.closest(n):t.parents(n).filter(":first")},getHeaderCell:function(t){return e.fn.closest?t.closest("th, td"):/TH|TD/.test(t[0].nodeName)?t:t.parents("th, td").filter(":first")},setColumnAriaLabel:function(t,i,s){if(i.length){var r=n.getHeaderCell(i),o=parseInt(r.attr("data-column"),10),a=t.sortVars[o],l=i.hasClass(n.css.sortAsc)?"sortAsc":i.hasClass(n.css.sortDesc)?"sortDesc":"sortNone",c=e.trim(i.text())+": "+n.language[l];i.hasClass("sorter-false")||!1===s?c+=n.language.sortDisabled:(l=(a.count+1)%a.order.length,s=a.order[l],c+=n.language[0===s?"nextAsc":1===s?"nextDesc":"nextNone"]),i.attr("aria-label",c)}},updateHeader:function(t){var e,i,s,r,o=t.table,a=t.$headers.length;for(e=0;e<a;e++)s=t.$headers.eq(e),r=n.getColumnData(o,t.headers,e,!0),i="false"===n.getData(s,r,"sorter")||"false"===n.getData(s,r,"parser"),n.setColumnSort(t,s,i)},setColumnSort:function(t,e,n){var i=t.table.id;e[0].sortDisabled=n,e[n?"addClass":"removeClass"]("sorter-false").attr("aria-disabled",""+n),t.tabIndex&&(n?e.removeAttr("tabindex"):e.attr("tabindex","0")),i&&(n?e.removeAttr("aria-controls"):e.attr("aria-controls",i))},updateHeaderSortCount:function(t,i){var s,r,o,a,l,c,u,d,h=i||t.sortList,f=h.length;for(t.sortList=[],a=0;a<f;a++)if(u=h[a],(s=parseInt(u[0],10))<t.columns){switch(t.sortVars[s].order||(d=n.getOrder(t.sortInitialOrder)?t.sortReset?[1,0,2]:[1,0]:t.sortReset?[0,1,2]:[0,1],t.sortVars[s].order=d,t.sortVars[s].count=0),d=t.sortVars[s].order,r=(""+u[1]).match(/^(1|d|s|o|n)/),r=r?r[0]:""){case"1":case"d":r=1;break;case"s":r=l||0;break;case"o":r=0===(c=d[(l||0)%d.length])?1:1===c?0:2;break;case"n":r=d[++t.sortVars[s].count%d.length];break;default:r=0}l=0===a?r:l,o=[s,parseInt(r,10)||0],t.sortList[t.sortList.length]=o,r=e.inArray(o[1],d),t.sortVars[s].count=r>=0?r:o[1]%d.length}},updateAll:function(t,e,i){var s=t.table;s.isUpdating=!0,n.refreshWidgets(s,!0,!0),n.buildHeaders(t),n.bindEvents(s,t.$headers,!0),n.bindMethods(t),n.commonUpdate(t,e,i)},update:function(t,e,i){t.table.isUpdating=!0,n.updateHeader(t),n.commonUpdate(t,e,i)},updateHeaders:function(t,e){t.table.isUpdating=!0,n.buildHeaders(t),n.bindEvents(t.table,t.$headers,!0),n.resortComplete(t,e)},updateCell:function(t,i,s,r){if(e(i).closest("tr").hasClass(t.cssChildRow))console.warn('Tablesorter Warning! "updateCell" for child row content has been disabled, use "update" instead');else{if(n.isEmptyObject(t.cache))return n.updateHeader(t),void n.commonUpdate(t,s,r);t.table.isUpdating=!0,t.$table.find(t.selectorRemove).remove();var o,a,l,c,u,d,h=t.$tbodies,f=e(i),p=h.index(n.getClosest(f,"tbody")),g=t.cache[p],m=n.getClosest(f,"tr");if(i=f[0],h.length&&p>=0){if(l=h.eq(p).find("tr").not("."+t.cssChildRow).index(m),u=g.normalized[l],(d=m[0].cells.length)!==t.columns)for(c=0,o=!1,a=0;a<d;a++)o||m[0].cells[a]===i?o=!0:c+=m[0].cells[a].colSpan;else c=f.index();o=n.getElementText(t,i,c),u[t.columns].raw[c]=o,o=n.getParsedText(t,i,c,o),u[c]=o,"numeric"===(t.parsers[c].type||"").toLowerCase()&&(g.colMax[c]=Math.max(Math.abs(o)||0,g.colMax[c]||0)),!1!==(o="undefined"!==s?s:t.resort)?n.checkResort(t,o,r):n.resortComplete(t,r)}else t.debug&&console.error("updateCell aborted, tbody missing or not within the indicated table"),t.table.isUpdating=!1}},addRows:function(i,s,r,o){var a,l,c,u,d,h,f,p,g,m,y,v,b,_="string"==typeof s&&1===i.$tbodies.length&&/<tr/.test(s||""),w=i.table;if(_)s=e(s),i.$tbodies.append(s);else if(!(s&&s instanceof t&&n.getClosest(s,"table")[0]===i.table))return i.debug&&console.error("addRows method requires (1) a jQuery selector reference to rows that have already been added to the table, or (2) row HTML string to be added to a table with only one tbody"),!1;if(w.isUpdating=!0,n.isEmptyObject(i.cache))n.updateHeader(i),n.commonUpdate(i,r,o);else{for(d=s.filter("tr").attr("role","row").length,c=i.$tbodies.index(s.parents("tbody").filter(":first")),i.parsers&&i.parsers.length||n.setupParsers(i),u=0;u<d;u++){for(g=0,f=s[u].cells.length,p=i.cache[c].normalized.length,y=[],m={child:[],raw:[],$row:s.eq(u),order:p},h=0;h<f;h++)v=s[u].cells[h],a=n.getElementText(i,v,g),m.raw[g]=a,l=n.getParsedText(i,v,g,a),y[g]=l,"numeric"===(i.parsers[g].type||"").toLowerCase()&&(i.cache[c].colMax[g]=Math.max(Math.abs(l)||0,i.cache[c].colMax[g]||0)),(b=v.colSpan-1)>0&&(g+=b),g++;y[i.columns]=m,i.cache[c].normalized[p]=y}n.checkResort(i,r,o)}},updateCache:function(t,e,i){t.parsers&&t.parsers.length||n.setupParsers(t,i),n.buildCache(t,e,i)},appendCache:function(t,e){var i,s,r,o,a,l,c,u=t.table,d=t.widgetOptions,h=t.$tbodies,f=[],p=t.cache;if(n.isEmptyObject(p))return t.appender?t.appender(u,f):u.isUpdating?t.$table.triggerHandler("updateComplete",u):"";for(t.debug&&(c=new Date),l=0;l<h.length;l++)if((r=h.eq(l)).length){for(o=n.processTbody(u,r,!0),s=(i=p[l].normalized).length,a=0;a<s;a++)f[f.length]=i[a][t.columns].$row,t.appender&&(!t.pager||t.pager.removeRows&&d.pager_removeRows||t.pager.ajax)||o.append(i[a][t.columns].$row);n.processTbody(u,o,!1)}t.appender&&t.appender(u,f),t.debug&&console.log("Rebuilt table"+n.benchmark(c)),e||t.appender||n.applyWidget(u),u.isUpdating&&t.$table.triggerHandler("updateComplete",u)},commonUpdate:function(t,e,i){t.$table.find(t.selectorRemove).remove(),n.setupParsers(t),n.buildCache(t),n.checkResort(t,e,i)},initSort:function(t,i,s){if(t.table.isUpdating)return setTimeout(function(){n.initSort(t,i,s)},50);var r,o,a,l,c,u,d,h=!s[t.sortMultiSortKey],f=t.table,p=t.$headers.length,g=n.getHeaderCell(e(i)),m=parseInt(g.attr("data-column"),10),y=t.sortVars[m].order;if(t.$table.triggerHandler("sortStart",f),u=(t.sortVars[m].count+1)%y.length,t.sortVars[m].count=s[t.sortResetKey]?2:u,t.sortRestart)for(a=0;a<p;a++)d=t.$headers.eq(a),m!==(u=parseInt(d.attr("data-column"),10))&&(h||d.hasClass(n.css.sortNone))&&(t.sortVars[u].count=-1);if(h){if(t.sortList=[],t.last.sortList=[],null!==t.sortForce)for(r=t.sortForce,o=0;o<r.length;o++)r[o][0]!==m&&(t.sortList[t.sortList.length]=r[o]);if((l=y[t.sortVars[m].count])<2&&(t.sortList[t.sortList.length]=[m,l],i.colSpan>1))for(o=1;o<i.colSpan;o++)t.sortList[t.sortList.length]=[m+o,l],t.sortVars[m+o].count=e.inArray(l,y)}else if(t.sortList=e.extend([],t.last.sortList),n.isValueInArray(m,t.sortList)>=0)for(o=0;o<t.sortList.length;o++)(u=t.sortList[o])[0]===m&&(u[1]=y[t.sortVars[m].count],2===u[1]&&(t.sortList.splice(o,1),t.sortVars[m].count=-1));else if((l=y[t.sortVars[m].count])<2&&(t.sortList[t.sortList.length]=[m,l],i.colSpan>1))for(o=1;o<i.colSpan;o++)t.sortList[t.sortList.length]=[m+o,l],t.sortVars[m+o].count=e.inArray(l,y);if(t.last.sortList=e.extend([],t.sortList),t.sortList.length&&t.sortAppend&&(r=e.isArray(t.sortAppend)?t.sortAppend:t.sortAppend[t.sortList[0][0]],!n.isEmptyObject(r)))for(o=0;o<r.length;o++)if(r[o][0]!==m&&n.isValueInArray(r[o][0],t.sortList)<0){if(l=r[o][1],c=(""+l).match(/^(a|d|s|o|n)/))switch(u=t.sortList[0][1],c[0]){case"d":l=1;break;case"s":l=u;break;case"o":l=0===u?1:0;break;case"n":l=(u+1)%y.length;break;default:l=0}t.sortList[t.sortList.length]=[r[o][0],l]}t.$table.triggerHandler("sortBegin",f),setTimeout(function(){n.setHeadersCss(t),n.multisort(t),n.appendCache(t),t.$table.triggerHandler("sortBeforeEnd",f),t.$table.triggerHandler("sortEnd",f)},1)},multisort:function(t){var e,i,s,r,o=t.table,a=[],l=0,c=t.textSorter||"",u=t.sortList,d=u.length,h=t.$tbodies.length;if(!t.serverSideSorting&&!n.isEmptyObject(t.cache)){if(t.debug&&(i=new Date),"object"==typeof c)for(s=t.columns;s--;)"function"==typeof(r=n.getColumnData(o,c,s))&&(a[s]=r);for(e=0;e<h;e++)s=t.cache[e].colMax,t.cache[e].normalized.sort(function(e,i){var r,h,f,p,g,m,y;for(r=0;r<d;r++){if(f=u[r][0],p=u[r][1],l=0===p,t.sortStable&&e[f]===i[f]&&1===d)return e[t.columns].order-i[t.columns].order;if((h=/n/i.test(n.getSortType(t.parsers,f)))&&t.strings[f]?(h="boolean"==typeof n.string[t.strings[f]]?(l?1:-1)*(n.string[t.strings[f]]?-1:1):t.strings[f]?n.string[t.strings[f]]||0:0,g=t.numberSorter?t.numberSorter(e[f],i[f],l,s[f],o):n["sortNumeric"+(l?"Asc":"Desc")](e[f],i[f],h,s[f],f,t)):(m=l?e:i,y=l?i:e,g="function"==typeof c?c(m[f],y[f],l,f,o):"function"==typeof a[f]?a[f](m[f],y[f],l,f,o):n["sortNatural"+(l?"Asc":"Desc")](e[f],i[f],f,t)),g)return g}return e[t.columns].order-i[t.columns].order});t.debug&&console.log("Applying sort "+u.toString()+n.benchmark(i))}},resortComplete:function(t,n){t.table.isUpdating&&t.$table.triggerHandler("updateComplete",t.table),e.isFunction(n)&&n(t.table)},checkResort:function(t,i,s){var r=e.isArray(i)?i:t.sortList;!1===(void 0===i?t.resort:i)||t.serverSideSorting||t.table.isProcessing?(n.resortComplete(t,s),n.applyWidget(t.table,!1)):r.length?n.sortOn(t,r,function(){n.resortComplete(t,s)},!0):n.sortReset(t,function(){n.resortComplete(t,s),n.applyWidget(t.table,!1)})},sortOn:function(t,i,s,r){var o=t.table;t.$table.triggerHandler("sortStart",o),n.updateHeaderSortCount(t,i),n.setHeadersCss(t),t.delayInit&&n.isEmptyObject(t.cache)&&n.buildCache(t),t.$table.triggerHandler("sortBegin",o),n.multisort(t),n.appendCache(t,r),t.$table.triggerHandler("sortBeforeEnd",o),t.$table.triggerHandler("sortEnd",o),n.applyWidget(o),e.isFunction(s)&&s(o)},sortReset:function(t,i){t.sortList=[],n.setHeadersCss(t),n.multisort(t),n.appendCache(t);var s;for(s=0;s<t.columns;s++)t.sortVars[s].count=-1;e.isFunction(i)&&i(t.table)},getSortType:function(t,e){return t&&t[e]?t[e].type||"":""},getOrder:function(t){return/^d/i.test(t)||1===t},sortNatural:function(t,e){if(t===e)return 0;t=t.toString(),e=e.toString();var i,s,r,o,a,l,c=n.regex;if(c.hex.test(e)){if(i=parseInt((t||"").match(c.hex),16),s=parseInt((e||"").match(c.hex),16),i<s)return-1;if(i>s)return 1}for(i=(t||"").replace(c.chunk,"\\0$1\\0").replace(c.chunks,"").split("\\0"),s=(e||"").replace(c.chunk,"\\0$1\\0").replace(c.chunks,"").split("\\0"),l=Math.max(i.length,s.length),a=0;a<l;a++){if(r=isNaN(i[a])?i[a]||0:parseFloat(i[a])||0,o=isNaN(s[a])?s[a]||0:parseFloat(s[a])||0,isNaN(r)!==isNaN(o))return isNaN(r)?1:-1;if(typeof r!=typeof o&&(r+="",o+=""),r<o)return-1;if(r>o)return 1}return 0},sortNaturalAsc:function(t,e,i,s){if(t===e)return 0;var r=n.string[s.empties[i]||s.emptyTo];return""===t&&0!==r?"boolean"==typeof r?r?-1:1:-r||-1:""===e&&0!==r?"boolean"==typeof r?r?1:-1:r||1:n.sortNatural(t,e)},sortNaturalDesc:function(t,e,i,s){if(t===e)return 0;var r=n.string[s.empties[i]||s.emptyTo];return""===t&&0!==r?"boolean"==typeof r?r?-1:1:r||1:""===e&&0!==r?"boolean"==typeof r?r?1:-1:-r||-1:n.sortNatural(e,t)},sortText:function(t,e){return t>e?1:t<e?-1:0},getTextValue:function(t,e,n){if(n){var i,s=t?t.length:0,r=n+e;for(i=0;i<s;i++)r+=t.charCodeAt(i);return e*r}return 0},sortNumericAsc:function(t,e,i,s,r,o){if(t===e)return 0;var a=n.string[o.empties[r]||o.emptyTo];return""===t&&0!==a?"boolean"==typeof a?a?-1:1:-a||-1:""===e&&0!==a?"boolean"==typeof a?a?1:-1:a||1:(isNaN(t)&&(t=n.getTextValue(t,i,s)),isNaN(e)&&(e=n.getTextValue(e,i,s)),t-e)},sortNumericDesc:function(t,e,i,s,r,o){if(t===e)return 0;var a=n.string[o.empties[r]||o.emptyTo];return""===t&&0!==a?"boolean"==typeof a?a?-1:1:a||1:""===e&&0!==a?"boolean"==typeof a?a?1:-1:-a||-1:(isNaN(t)&&(t=n.getTextValue(t,i,s)),isNaN(e)&&(e=n.getTextValue(e,i,s)),e-t)},sortNumeric:function(t,e){return t-e},addWidget:function(t){t.id&&!n.isEmptyObject(n.getWidgetById(t.id))&&console.warn('"'+t.id+'" widget was loaded more than once!'),n.widgets[n.widgets.length]=t},hasWidget:function(t,n){return(t=e(t)).length&&t[0].config&&t[0].config.widgetInit[n]||!1},getWidgetById:function(t){var e,i,s=n.widgets.length;for(e=0;e<s;e++)if((i=n.widgets[e])&&i.id&&i.id.toLowerCase()===t.toLowerCase())return i},applyWidgetOptions:function(t){var i,s,r,o=t.config,a=o.widgets.length;if(a)for(i=0;i<a;i++)(s=n.getWidgetById(o.widgets[i]))&&s.options&&(r=e.extend(!0,{},s.options),o.widgetOptions=e.extend(!0,r,o.widgetOptions),e.extend(!0,n.defaults.widgetOptions,s.options))},addWidgetFromClass:function(t){var e,i,s=t.config,r="^"+s.widgetClass.replace(n.regex.templateName,"(\\S+)+")+"$",o=new RegExp(r,"g"),a=(t.className||"").split(n.regex.spaces);if(a.length)for(e=a.length,i=0;i<e;i++)a[i].match(o)&&(s.widgets[s.widgets.length]=a[i].replace(o,"$1"))},applyWidgetId:function(t,i,s){var r,o,a,l=(t=e(t)[0]).config,c=l.widgetOptions,u=n.getWidgetById(i);u&&(a=u.id,r=!1,e.inArray(a,l.widgets)<0&&(l.widgets[l.widgets.length]=a),l.debug&&(o=new Date),!s&&l.widgetInit[a]||(l.widgetInit[a]=!0,t.hasInitialized&&n.applyWidgetOptions(t),"function"==typeof u.init&&(r=!0,l.debug&&console[console.group?"group":"log"]("Initializing "+a+" widget"),u.init(t,u,l,c))),s||"function"!=typeof u.format||(r=!0,l.debug&&console[console.group?"group":"log"]("Updating "+a+" widget"),u.format(t,l,c,!1)),l.debug&&r&&(console.log("Completed "+(s?"initializing ":"applying ")+a+" widget"+n.benchmark(o)),console.groupEnd&&console.groupEnd()))},applyWidget:function(t,i,s){var r,o,a,l,c,u=(t=e(t)[0]).config,d=[];if(!1===i||!t.hasInitialized||!t.isApplyingWidgets&&!t.isUpdating){if(u.debug&&(c=new Date),n.addWidgetFromClass(t),clearTimeout(u.timerReady),u.widgets.length){for(t.isApplyingWidgets=!0,u.widgets=e.grep(u.widgets,function(t,n){return e.inArray(t,u.widgets)===n}),o=(a=u.widgets||[]).length,r=0;r<o;r++)(l=n.getWidgetById(a[r]))&&l.id?(l.priority||(l.priority=10),d[r]=l):u.debug&&console.warn('"'+a[r]+'" was enabled, but the widget code has not been loaded!');for(d.sort(function(t,e){return t.priority<e.priority?-1:t.priority===e.priority?0:1}),o=d.length,u.debug&&console[console.group?"group":"log"]("Start "+(i?"initializing":"applying")+" widgets"),r=0;r<o;r++)(l=d[r])&&l.id&&n.applyWidgetId(t,l.id,i);u.debug&&console.groupEnd&&console.groupEnd()}u.timerReady=setTimeout(function(){t.isApplyingWidgets=!1,e.data(t,"lastWidgetApplication",new Date),u.$table.triggerHandler("tablesorter-ready"),i||"function"!=typeof s||s(t),u.debug&&(l=u.widgets.length,console.log("Completed "+(!0===i?"initializing ":"applying ")+l+" widget"+(1!==l?"s":"")+n.benchmark(c)))},10)}},removeWidget:function(t,i,s){var r,o,a,l,c=(t=e(t)[0]).config;if(!0===i)for(i=[],l=n.widgets.length,a=0;a<l;a++)(o=n.widgets[a])&&o.id&&(i[i.length]=o.id);else i=(e.isArray(i)?i.join(","):i||"").toLowerCase().split(/[\s,]+/);for(l=i.length,r=0;r<l;r++)o=n.getWidgetById(i[r]),(a=e.inArray(i[r],c.widgets))>=0&&!0!==s&&c.widgets.splice(a,1),o&&o.remove&&(c.debug&&console.log((s?"Refreshing":"Removing")+' "'+i[r]+'" widget'),o.remove(t,c,c.widgetOptions,s),c.widgetInit[i[r]]=!1);c.$table.triggerHandler("widgetRemoveEnd",t)},refreshWidgets:function(t,i,s){var r,o,a=(t=e(t)[0]).config.widgets,l=n.widgets,c=l.length,u=[],d=function(t){e(t).triggerHandler("refreshComplete")};for(r=0;r<c;r++)(o=l[r])&&o.id&&(i||e.inArray(o.id,a)<0)&&(u[u.length]=o.id);n.removeWidget(t,u.join(","),!0),!0!==s?(n.applyWidget(t,i||!1,d),i&&n.applyWidget(t,!1,d)):d(t)},benchmark:function(t){return" ("+((new Date).getTime()-t.getTime())+" ms)"},log:function(){console.log(arguments)},isEmptyObject:function(t){for(var e in t)return!1;return!0},isValueInArray:function(t,e){var n,i=e&&e.length||0;for(n=0;n<i;n++)if(e[n][0]===t)return n;return-1},formatFloat:function(t,i){if("string"!=typeof t||""===t)return t;var s;return t=(i&&i.config?!1!==i.config.usNumberFormat:void 0===i||i)?t.replace(n.regex.comma,""):t.replace(n.regex.digitNonUS,"").replace(n.regex.comma,"."),n.regex.digitNegativeTest.test(t)&&(t=t.replace(n.regex.digitNegativeReplace,"-$1")),s=parseFloat(t),isNaN(s)?e.trim(t):s},isDigit:function(t){return isNaN(t)?n.regex.digitTest.test(t.toString().replace(n.regex.digitReplace,"")):""!==t},computeColumnIndex:function(t,i){var s,r,o,a,l,c,u,d,h,f,p=i&&i.columns||0,g=[],m=new Array(p);for(s=0;s<t.length;s++)for(c=t[s].cells,r=0;r<c.length;r++){for(u=s,d=(l=c[r]).rowSpan||1,h=l.colSpan||1,void 0===g[u]&&(g[u]=[]),o=0;o<g[u].length+1;o++)if(void 0===g[u][o]){f=o;break}for(p&&l.cellIndex===f||(l.setAttribute?l.setAttribute("data-column",f):e(l).attr("data-column",f)),o=u;o<u+d;o++)for(void 0===g[o]&&(g[o]=[]),m=g[o],a=f;a<f+h;a++)m[a]="x"}return n.checkColumnCount(t,g,m.length),m.length},checkColumnCount:function(t,e,n){var i,s,r=!0,o=[];for(i=0;i<e.length;i++)if(e[i]&&(s=e[i].length,e[i].length!==n)){r=!1;break}r||(t.each(function(t,e){var n=e.parentElement.nodeName;o.indexOf(n)<0&&o.push(n)}),console.error("Invalid or incorrect number of columns in the "+o.join(" or ")+"; expected "+n+", but found "+s+" columns"))},fixColumnWidth:function(t){var i,s,r,o,a,l=(t=e(t)[0]).config,c=l.$table.children("colgroup");if(c.length&&c.hasClass(n.css.colgroup)&&c.remove(),l.widthFixed&&0===l.$table.children("colgroup").length){for(c=e('<colgroup class="'+n.css.colgroup+'">'),i=l.$table.width(),o=(r=l.$tbodies.find("tr:first").children(":visible")).length,a=0;a<o;a++)s=parseInt(r.eq(a).width()/i*1e3,10)/10+"%",c.append(e("<col>").css("width",s));l.$table.prepend(c)}},getData:function(t,n,i){var s,r,o="",a=e(t);return a.length?(s=!!e.metadata&&a.metadata(),r=" "+(a.attr("class")||""),void 0!==a.data(i)||void 0!==a.data(i.toLowerCase())?o+=a.data(i)||a.data(i.toLowerCase()):s&&void 0!==s[i]?o+=s[i]:n&&void 0!==n[i]?o+=n[i]:" "!==r&&r.match(" "+i+"-")&&(o=r.match(new RegExp("\\s"+i+"-([\\w-]+)"))[1]||""),e.trim(o)):""},getColumnData:function(t,n,i,s,r){if("object"!=typeof n||null===n)return n;var o,a=(t=e(t)[0]).config,l=r||a.$headers,c=a.$headerIndexed&&a.$headerIndexed[i]||l.filter('[data-column="'+i+'"]:last');if(void 0!==n[i])return s?n[i]:n[l.index(c)];for(o in n)if("string"==typeof o&&c.filter(o).add(c.find(o)).length)return n[o]},isProcessing:function(t,i,s){var r=(t=e(t))[0].config,o=s||t.find("."+n.css.header);i?(void 0!==s&&r.sortList.length>0&&(o=o.filter(function(){return!this.sortDisabled&&n.isValueInArray(parseFloat(e(this).attr("data-column")),r.sortList)>=0})),t.add(o).addClass(n.css.processing+" "+r.cssProcessing)):t.add(o).removeClass(n.css.processing+" "+r.cssProcessing)},processTbody:function(t,n,i){if(t=e(t)[0],i)return t.isProcessing=!0,n.before('<colgroup class="tablesorter-savemyplace"/>'),e.fn.detach?n.detach():n.remove();var s=e(t).find("colgroup.tablesorter-savemyplace");n.insertAfter(s),s.remove(),t.isProcessing=!1},clearTableBody:function(t){e(t)[0].config.$tbodies.children().detach()},characterEquivalents:{a:"áàâãäąå",A:"ÁÀÂÃÄĄÅ",c:"çćč",C:"ÇĆČ",e:"éèêëěę",E:"ÉÈÊËĚĘ",i:"íìİîïı",I:"ÍÌİÎÏ",o:"óòôõöō",O:"ÓÒÔÕÖŌ",ss:"ß",SS:"ẞ",u:"úùûüů",U:"ÚÙÛÜŮ"},replaceAccents:function(t){var e,i="[",s=n.characterEquivalents;if(!n.characterRegex){n.characterRegexArray={};for(e in s)"string"==typeof e&&(i+=s[e],n.characterRegexArray[e]=new RegExp("["+s[e]+"]","g"));n.characterRegex=new RegExp(i+"]")}if(n.characterRegex.test(t))for(e in s)"string"==typeof e&&(t=t.replace(n.characterRegexArray[e],e));return t},validateOptions:function(t){var i,s,r,o,a="headers sortForce sortList sortAppend widgets".split(" "),l=t.originalSettings;if(l){t.debug&&(o=new Date);for(i in l)if("undefined"==(r=typeof n.defaults[i]))console.warn('Tablesorter Warning! "table.config.'+i+'" option not recognized');else if("object"===r)for(s in l[i])r=n.defaults[i]&&typeof n.defaults[i][s],e.inArray(i,a)<0&&"undefined"===r&&console.warn('Tablesorter Warning! "table.config.'+i+"."+s+'" option not recognized');t.debug&&console.log("validate options time:"+n.benchmark(o))}},restoreHeaders:function(t){var i,s,r=e(t)[0].config,o=r.$table.find(r.selectorHeaders),a=o.length;for(i=0;i<a;i++)(s=o.eq(i)).find("."+n.css.headerIn).length&&s.html(r.headerContent[i])},destroy:function(t,i,s){if((t=e(t)[0]).hasInitialized){n.removeWidget(t,!0,!1);var r,o=e(t),a=t.config,l=a.debug,c=o.find("thead:first"),u=c.find("tr."+n.css.headerRow).removeClass(n.css.headerRow+" "+a.cssHeaderRow),d=o.find("tfoot:first > tr").children("th, td");!1===i&&e.inArray("uitheme",a.widgets)>=0&&(o.triggerHandler("applyWidgetId",["uitheme"]),o.triggerHandler("applyWidgetId",["zebra"])),c.find("tr").not(u).remove(),r="sortReset update updateRows updateAll updateHeaders updateCell addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets removeWidget destroy mouseup mouseleave "+"keypress sortBegin sortEnd resetToLoadState ".split(" ").join(a.namespace+" "),o.removeData("tablesorter").unbind(r.replace(n.regex.spaces," ")),a.$headers.add(d).removeClass([n.css.header,a.cssHeader,a.cssAsc,a.cssDesc,n.css.sortAsc,n.css.sortDesc,n.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true"),u.find(a.selectorSort).unbind("mousedown mouseup keypress ".split(" ").join(a.namespace+" ").replace(n.regex.spaces," ")),n.restoreHeaders(t),o.toggleClass(n.css.table+" "+a.tableClass+" tablesorter-"+a.theme,!1===i),o.removeClass(a.namespace.slice(1)),t.hasInitialized=!1,delete t.config.cache,"function"==typeof s&&s(t),l&&console.log("tablesorter has been removed")}}};e.fn.tablesorter=function(t){return this.each(function(){var i=e.extend(!0,{},n.defaults,t,n.instanceMethods);i.originalSettings=t,!this.hasInitialized&&n.buildTable&&"TABLE"!==this.nodeName?n.buildTable(this,i):n.setup(this,i)})},window.console&&window.console.log||(n.logs=[],console={},console.log=console.warn=console.error=console.table=function(){var t=arguments.length>1?arguments:arguments[0];n.logs[n.logs.length]={date:Date.now(),log:t}}),n.addParser({id:"no-parser",is:function(){return!1},format:function(){return""},type:"text"}),n.addParser({id:"text",is:function(){return!0},format:function(t,i){var s=i.config;return t&&(t=e.trim(s.ignoreCase?t.toLocaleLowerCase():t),t=s.sortLocaleCompare?n.replaceAccents(t):t),t},type:"text"}),n.regex.nondigit=/[^\w,. \-()]/g,n.addParser({id:"digit",is:function(t){return n.isDigit(t)},format:function(t,i){var s=n.formatFloat((t||"").replace(n.regex.nondigit,""),i);return t&&"number"==typeof s?s:t?e.trim(t&&i.config.ignoreCase?t.toLocaleLowerCase():t):t},type:"numeric"}),n.regex.currencyReplace=/[+\-,. ]/g,n.regex.currencyTest=/^\(?\d+[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]|[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]\d+\)?$/,n.addParser({id:"currency",is:function(t){return t=(t||"").replace(n.regex.currencyReplace,""),n.regex.currencyTest.test(t)},format:function(t,i){var s=n.formatFloat((t||"").replace(n.regex.nondigit,""),i);return t&&"number"==typeof s?s:t?e.trim(t&&i.config.ignoreCase?t.toLocaleLowerCase():t):t},type:"numeric"}),n.regex.urlProtocolTest=/^(https?|ftp|file):\/\//,n.regex.urlProtocolReplace=/(https?|ftp|file):\/\/(www\.)?/,n.addParser({id:"url",is:function(t){return n.regex.urlProtocolTest.test(t)},format:function(t){return t?e.trim(t.replace(n.regex.urlProtocolReplace,"")):t},type:"text"}),n.regex.dash=/-/g,n.regex.isoDate=/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/,n.addParser({id:"isoDate",is:function(t){return n.regex.isoDate.test(t)},format:function(t,e){var i=t?new Date(t.replace(n.regex.dash,"/")):t;return i instanceof Date&&isFinite(i)?i.getTime():t},type:"numeric"}),n.regex.percent=/%/g,n.regex.percentTest=/(\d\s*?%|%\s*?\d)/,n.addParser({id:"percent",is:function(t){return n.regex.percentTest.test(t)&&t.length<15},format:function(t,e){return t?n.formatFloat(t.replace(n.regex.percent,""),e):t},type:"numeric"}),n.addParser({id:"image",is:function(t,e,n,i){return i.find("img").length>0},format:function(t,n,i){return e(i).find("img").attr(n.config.imgAttr||"alt")||t},parsed:!0,type:"text"}),n.regex.dateReplace=/(\S)([AP]M)$/i,n.regex.usLongDateTest1=/^[A-Z]{3,10}\.?\s+\d{1,2},?\s+(\d{4})(\s+\d{1,2}:\d{2}(:\d{2})?(\s+[AP]M)?)?$/i,n.regex.usLongDateTest2=/^\d{1,2}\s+[A-Z]{3,10}\s+\d{4}/i,n.addParser({id:"usLongDate",is:function(t){return n.regex.usLongDateTest1.test(t)||n.regex.usLongDateTest2.test(t)},format:function(t,e){var i=t?new Date(t.replace(n.regex.dateReplace,"$1 $2")):t;return i instanceof Date&&isFinite(i)?i.getTime():t},type:"numeric"}),n.regex.shortDateTest=/(^\d{1,2}[\/\s]\d{1,2}[\/\s]\d{4})|(^\d{4}[\/\s]\d{1,2}[\/\s]\d{1,2})/,n.regex.shortDateReplace=/[\-.,]/g,n.regex.shortDateXXY=/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,n.regex.shortDateYMD=/(\d{4})[\/\s](\d{1,2})[\/\s](\d{1,2})/,n.convertFormat=function(t,e){t=(t||"").replace(n.regex.spaces," ").replace(n.regex.shortDateReplace,"/"),"mmddyyyy"===e?t=t.replace(n.regex.shortDateXXY,"$3/$1/$2"):"ddmmyyyy"===e?t=t.replace(n.regex.shortDateXXY,"$3/$2/$1"):"yyyymmdd"===e&&(t=t.replace(n.regex.shortDateYMD,"$1/$2/$3"));var i=new Date(t);return i instanceof Date&&isFinite(i)?i.getTime():""},n.addParser({id:"shortDate",is:function(t){return t=(t||"").replace(n.regex.spaces," ").replace(n.regex.shortDateReplace,"/"),n.regex.shortDateTest.test(t)},format:function(t,e,i,s){if(t){var r=e.config,o=r.$headerIndexed[s],a=o.length&&o.data("dateFormat")||n.getData(o,n.getColumnData(e,r.headers,s),"dateFormat")||r.dateFormat;return o.length&&o.data("dateFormat",a),n.convertFormat(t,a)||t}return t},type:"numeric"}),n.regex.timeTest=/^(0?[1-9]|1[0-2]):([0-5]\d)(\s[AP]M)$|^((?:[01]\d|[2][0-4]):[0-5]\d)$/i,n.regex.timeMatch=/(0?[1-9]|1[0-2]):([0-5]\d)(\s[AP]M)|((?:[01]\d|[2][0-4]):[0-5]\d)/i,n.addParser({id:"time",is:function(t){return n.regex.timeTest.test(t)},format:function(t,e){var i=(t||"").match(n.regex.timeMatch),s=new Date(t),r=t&&(null!==i?i[0]:"00:00 AM"),o=r?new Date("2000/01/01 "+r.replace(n.regex.dateReplace,"$1 $2")):r;return o instanceof Date&&isFinite(o)?(s instanceof Date&&isFinite(s)?s.getTime():0)?parseFloat(o.getTime()+"."+s.getTime()):o.getTime():t},type:"numeric"}),n.addParser({id:"metadata",is:function(){return!1},format:function(t,n,i){var s=n.config,r=s.parserMetadataName?s.parserMetadataName:"sortValue";return e(i).metadata()[r]},type:"numeric"}),n.addWidget({id:"zebra",priority:90,format:function(t,n,i){var s,r,o,a,l,c,u,d=new RegExp(n.cssChildRow,"i"),h=n.$tbodies.add(e(n.namespace+"_extra_table").children("tbody:not(."+n.cssInfoBlock+")"));for(l=0;l<h.length;l++)for(o=0,u=(s=h.eq(l).children("tr:visible").not(n.selectorRemove)).length,c=0;c<u;c++)r=s.eq(c),d.test(r[0].className)||o++,a=o%2==0,r.removeClass(i.zebra[a?1:0]).addClass(i.zebra[a?0:1])},remove:function(t,e,i,s){if(!s){var r,o,a=e.$tbodies,l=(i.zebra||["even","odd"]).join(" ");for(r=0;r<a.length;r++)(o=n.processTbody(t,a.eq(r),!0)).children().removeClass(l),n.processTbody(t,o,!1)}}})}(t),t.tablesorter}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(t,e){"use strict";var n="drilldown",i="data-next-parent",s={event:"click",selector:"a",speed:100,cssClass:{container:n+"-container",root:n+"-root",sub:n+"-sub",back:n+"-back"}},r=function(){function r(r,c){var u=this;this._name=n,this._defaults=s,this.element=r,this.$element=t(r),this.options=t.extend({},s,c),this._history=[],this._css={float:"left",width:null},this.$container=this.$element.find("."+this.options.cssClass.container),this.$element.on(this.options.event+"."+n,this.options.selector,function(n){(function(t,n){var s=n.nextAll("."+this.options.cssClass.sub),r=!0;s.length?function(t,n){var s=n&&n.speed!==e?n.speed:this.options.speed;if(!t.length)return;this._css.width=this.$element.outerWidth(),this.$container.width(2*this._css.width),t.parent().attr(i,!0),t=t.removeClass(this.options.cssClass.sub).addClass(this.options.cssClass.root),this.$container.append(t),a.call(this,{marginLeft:-1*this._css.width,speed:s},function(){var e=t.prev();this._history.push(e.detach()),l.call(this,t)}.bind(this))}.call(this,s):n.closest("."+this.options.cssClass.back).length?o.call(this):r=!1;r&&"A"===n.prop("tagName")&&t.preventDefault()}).call(u,n,t(this))})}function o(t){var n=t&&t.speed!==e?t.speed:this.options.speed,s=this._history.pop();this._css.width=this.$element.outerWidth(),this.$container.width(2*this._css.width),this.$container.prepend(s),a.call(this,{marginLeft:0,speed:n},function(){var t=s.next();t.addClass(this.options.cssClass.sub).removeClass(this.options.cssClass.root),this.$container.find("["+i+"]").last().removeAttr(i).append(t),l.call(this,s)}.bind(this))}function a(t,e){var n=this.$container.children("."+this.options.cssClass.root);n.css(this._css),n.first().animate({marginLeft:t.marginLeft},t.speed,e)}function l(t){t.css({float:"",width:"",marginLeft:""}),this.$container.css("width","")}return r.prototype={destroy:function(){this.reset(),this.$element.off(this.options.event+"."+n,this.options.selector)},reset:function(){var t;for(t=this._history.length;t>0;t--)o.call(this,{speed:0});this._history=[],this._css={float:"left",width:null}}},r}();t.fn[n]=function(e){return this.each(function(){var i=t.data(this,n),s=e;i?"string"==typeof s&&("destroy"===s&&t.removeData(this,n),"function"==typeof i[s]&&i[s]()):t.data(this,n,new r(this,e))})}}),function(t,e,n,i){var s=function(){var s=t(this);s[i]()||(s.addClass(e),"password"===s.attr("type")&&(s.attr("type","text"),s.data(e+"-pwd",!0)),s[i](s.attr(n)))},r=function(){var s=t(this);s.removeClass(e),s.data(e+"-pwd")&&s.attr("type","password"),s[i]()===s.attr(n)&&s[i]("")},o=function(){t(this).find("["+n+"]").each(function(){t(this).data(e)&&r.call(this)})};t.fn.placeholdr=function(){return n in document.createElement("input")?this:(t(this).find("["+n+"]").each(function(){var n=t(this);n.data(e)||(n.data(e,!0),s.call(this),n.focus(r),n.blur(s))}),t(this).find("form").each(function(){var n=t(this);n.data(e)||(n.data(e,!0),n.submit(o))}),this)},t.fn[i]=t.fn.val,t.fn.val=function(o){var a=t(this);if("undefined"===t.type(o)&&a.data(e)&&a[i]()===a.attr(n))return"";var l="string"===t.type(o);l&&r.call(this);var c=t.fn[i].apply(this,arguments);return l&&!o&&s.call(this),c},t(function(){t(document).placeholdr()}),document.write("<style>.placeholdr{color:#AAA;}</style>")}(jQuery,"placeholdr","placeholder","placeholdrVal"),function(t){"use strict";"function"==typeof define&&define.amd?define(["./blueimp-helper"],t):(window.blueimp=window.blueimp||{},window.blueimp.Gallery=t(window.blueimp.helper||window.jQuery))}(function(t){"use strict";function e(t,n){return void 0===document.body.style.maxHeight?null:this&&this.options===e.prototype.options?void(t&&t.length?(this.list=t,this.num=t.length,this.initOptions(n),this.initialize()):this.console.log("blueimp Gallery: No or empty list provided as first argument.",t)):new e(t,n)}return t.extend(e.prototype,{options:{container:"#blueimp-gallery",slidesContainer:"div",titleElement:"h3",displayClass:"blueimp-gallery-display",controlsClass:"blueimp-gallery-controls",singleClass:"blueimp-gallery-single",leftEdgeClass:"blueimp-gallery-left",rightEdgeClass:"blueimp-gallery-right",playingClass:"blueimp-gallery-playing",slideClass:"slide",slideLoadingClass:"slide-loading",slideErrorClass:"slide-error",slideContentClass:"slide-content",toggleClass:"toggle",prevClass:"prev",nextClass:"next",closeClass:"close",playPauseClass:"play-pause",typeProperty:"type",titleProperty:"title",urlProperty:"href",srcsetProperty:"urlset",displayTransition:!0,clearSlides:!0,stretchImages:!1,toggleControlsOnReturn:!0,toggleControlsOnSlideClick:!0,toggleSlideshowOnSpace:!0,enableKeyboardNavigation:!0,closeOnEscape:!0,closeOnSlideClick:!0,closeOnSwipeUpOrDown:!0,emulateTouchEvents:!0,stopTouchEventsPropagation:!1,hidePageScrollbars:!0,disableScroll:!0,carousel:!1,continuous:!0,unloadElements:!0,startSlideshow:!1,slideshowInterval:5e3,index:0,preloadRange:2,transitionSpeed:400,slideshowTransitionSpeed:void 0,event:void 0,onopen:void 0,onopened:void 0,onslide:void 0,onslideend:void 0,onslidecomplete:void 0,onclose:void 0,onclosed:void 0},carouselOptions:{hidePageScrollbars:!1,toggleControlsOnReturn:!1,toggleSlideshowOnSpace:!1,enableKeyboardNavigation:!1,closeOnEscape:!1,closeOnSlideClick:!1,closeOnSwipeUpOrDown:!1,disableScroll:!1,startSlideshow:!0},console:window.console&&"function"==typeof window.console.log?window.console:{log:function(){}},support:function(e){function n(){var t,n,i=s.transition;document.body.appendChild(e),i&&(t=i.name.slice(0,-9)+"ransform",void 0!==e.style[t]&&(e.style[t]="translateZ(0)",n=window.getComputedStyle(e).getPropertyValue(i.prefix+"transform"),s.transform={prefix:i.prefix,name:t,translate:!0,translateZ:!!n&&"none"!==n})),void 0!==e.style.backgroundSize&&(s.backgroundSize={},e.style.backgroundSize="contain",s.backgroundSize.contain="contain"===window.getComputedStyle(e).getPropertyValue("background-size"),e.style.backgroundSize="cover",s.backgroundSize.cover="cover"===window.getComputedStyle(e).getPropertyValue("background-size")),document.body.removeChild(e)}var i,s={touch:void 0!==window.ontouchstart||window.DocumentTouch&&document instanceof DocumentTouch},r={webkitTransition:{end:"webkitTransitionEnd",prefix:"-webkit-"},MozTransition:{end:"transitionend",prefix:"-moz-"},OTransition:{end:"otransitionend",prefix:"-o-"},transition:{end:"transitionend",prefix:""}};for(i in r)if(r.hasOwnProperty(i)&&void 0!==e.style[i]){s.transition=r[i],s.transition.name=i;break}return document.body?n():t(document).on("DOMContentLoaded",n),s}(document.createElement("div")),requestAnimationFrame:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame,cancelAnimationFrame:window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame,initialize:function(){if(this.initStartIndex(),!1===this.initWidget())return!1;this.initEventListeners(),this.onslide(this.index),this.ontransitionend(),this.options.startSlideshow&&this.play()},slide:function(t,e){window.clearTimeout(this.timeout);var n,i,s,r=this.index;if(r!==t&&1!==this.num){if(e||(e=this.options.transitionSpeed),this.support.transform){for(this.options.continuous||(t=this.circle(t)),n=Math.abs(r-t)/(r-t),this.options.continuous&&(i=n,(n=-this.positions[this.circle(t)]/this.slideWidth)!==i&&(t=-n*this.num+t)),s=Math.abs(r-t)-1;s;)s-=1,this.move(this.circle((t>r?t:r)-s-1),this.slideWidth*n,0);t=this.circle(t),this.move(r,this.slideWidth*n,e),this.move(t,0,e),this.options.continuous&&this.move(this.circle(t-n),-this.slideWidth*n,0)}else t=this.circle(t),this.animate(r*-this.slideWidth,t*-this.slideWidth,e);this.onslide(t)}},getIndex:function(){return this.index},getNumber:function(){return this.num},prev:function(){(this.options.continuous||this.index)&&this.slide(this.index-1)},next:function(){(this.options.continuous||this.index<this.num-1)&&this.slide(this.index+1)},play:function(t){var e=this;window.clearTimeout(this.timeout),this.interval=t||this.options.slideshowInterval,this.elements[this.index]>1&&(this.timeout=this.setTimeout(!this.requestAnimationFrame&&this.slide||function(t,n){e.animationFrameId=e.requestAnimationFrame.call(window,function(){e.slide(t,n)})},[this.index+1,this.options.slideshowTransitionSpeed],this.interval)),this.container.addClass(this.options.playingClass)},pause:function(){window.clearTimeout(this.timeout),this.interval=null,this.cancelAnimationFrame&&(this.cancelAnimationFrame.call(window,this.animationFrameId),this.animationFrameId=null),this.container.removeClass(this.options.playingClass)},add:function(t){var e;for(t.concat||(t=Array.prototype.slice.call(t)),this.list.concat||(this.list=Array.prototype.slice.call(this.list)),this.list=this.list.concat(t),this.num=this.list.length,this.num>2&&null===this.options.continuous&&(this.options.continuous=!0,this.container.removeClass(this.options.leftEdgeClass)),this.container.removeClass(this.options.rightEdgeClass).removeClass(this.options.singleClass),e=this.num-t.length;e<this.num;e+=1)this.addSlide(e),this.positionSlide(e);this.positions.length=this.num,this.initSlides(!0)},resetSlides:function(){this.slidesContainer.empty(),this.unloadAllSlides(),this.slides=[]},handleClose:function(){var t=this.options;this.destroyEventListeners(),this.pause(),this.container[0].style.display="none",this.container.removeClass(t.displayClass).removeClass(t.singleClass).removeClass(t.leftEdgeClass).removeClass(t.rightEdgeClass),t.hidePageScrollbars&&(document.body.style.overflow=this.bodyOverflowStyle),this.options.clearSlides&&this.resetSlides(),this.options.onclosed&&this.options.onclosed.call(this)},close:function(){function t(n){n.target===e.container[0]&&(e.container.off(e.support.transition.end,t),e.handleClose())}var e=this;this.options.onclose&&this.options.onclose.call(this),this.support.transition&&this.options.displayTransition?(this.container.on(this.support.transition.end,t),this.container.removeClass(this.options.displayClass)):this.handleClose()},circle:function(t){return(this.num+t%this.num)%this.num},move:function(t,e,n){this.translateX(t,e,n),this.positions[t]=e},translate:function(t,e,n,i){var s=this.slides[t].style,r=this.support.transition,o=this.support.transform;s[r.name+"Duration"]=i+"ms",s[o.name]="translate("+e+"px, "+n+"px)"+(o.translateZ?" translateZ(0)":"")},translateX:function(t,e,n){this.translate(t,e,0,n)},translateY:function(t,e,n){this.translate(t,0,e,n)},animate:function(t,e,n){if(n)var i=this,s=(new Date).getTime(),r=window.setInterval(function(){var o=(new Date).getTime()-s;if(o>n)return i.slidesContainer[0].style.left=e+"px",i.ontransitionend(),void window.clearInterval(r);i.slidesContainer[0].style.left=(e-t)*(Math.floor(o/n*100)/100)+t+"px"},4);else this.slidesContainer[0].style.left=e+"px"},preventDefault:function(t){t.preventDefault?t.preventDefault():t.returnValue=!1},stopPropagation:function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},onresize:function(){this.initSlides(!0)},onmousedown:function(t){t.which&&1===t.which&&"VIDEO"!==t.target.nodeName&&(t.preventDefault(),(t.originalEvent||t).touches=[{pageX:t.pageX,pageY:t.pageY}],this.ontouchstart(t))},onmousemove:function(t){this.touchStart&&((t.originalEvent||t).touches=[{pageX:t.pageX,pageY:t.pageY}],this.ontouchmove(t))},onmouseup:function(t){this.touchStart&&(this.ontouchend(t),delete this.touchStart)},onmouseout:function(e){if(this.touchStart){var n=e.target,i=e.relatedTarget;i&&(i===n||t.contains(n,i))||this.onmouseup(e)}},ontouchstart:function(t){this.options.stopTouchEventsPropagation&&this.stopPropagation(t);var e=(t.originalEvent||t).touches[0];this.touchStart={x:e.pageX,y:e.pageY,time:Date.now()},this.isScrolling=void 0,this.touchDelta={}},ontouchmove:function(t){this.options.stopTouchEventsPropagation&&this.stopPropagation(t);var e,n,i=(t.originalEvent||t).touches[0],s=(t.originalEvent||t).scale,r=this.index;if(!(i.length>1||s&&1!==s))if(this.options.disableScroll&&t.preventDefault(),this.touchDelta={x:i.pageX-this.touchStart.x,y:i.pageY-this.touchStart.y},e=this.touchDelta.x,void 0===this.isScrolling&&(this.isScrolling=this.isScrolling||Math.abs(e)<Math.abs(this.touchDelta.y)),this.isScrolling)this.translateY(r,this.touchDelta.y+this.positions[r],0);else for(t.preventDefault(),window.clearTimeout(this.timeout),this.options.continuous?n=[this.circle(r+1),r,this.circle(r-1)]:(this.touchDelta.x=e/=!r&&e>0||r===this.num-1&&e<0?Math.abs(e)/this.slideWidth+1:1,n=[r],r&&n.push(r-1),r<this.num-1&&n.unshift(r+1));n.length;)r=n.pop(),this.translateX(r,e+this.positions[r],0)},ontouchend:function(t){this.options.stopTouchEventsPropagation&&this.stopPropagation(t);var e,n,i,s,r,o=this.index,a=this.options.transitionSpeed,l=this.slideWidth,c=Number(Date.now()-this.touchStart.time)<250,u=c&&Math.abs(this.touchDelta.x)>20||Math.abs(this.touchDelta.x)>l/2,d=!o&&this.touchDelta.x>0||o===this.num-1&&this.touchDelta.x<0,h=!u&&this.options.closeOnSwipeUpOrDown&&(c&&Math.abs(this.touchDelta.y)>20||Math.abs(this.touchDelta.y)>this.slideHeight/2);this.options.continuous&&(d=!1),e=this.touchDelta.x<0?-1:1,this.isScrolling?h?this.close():this.translateY(o,0,a):u&&!d?(n=o+e,i=o-e,s=l*e,r=-l*e,this.options.continuous?(this.move(this.circle(n),s,0),this.move(this.circle(o-2*e),r,0)):n>=0&&n<this.num&&this.move(n,s,0),this.move(o,this.positions[o]+s,a),this.move(this.circle(i),this.positions[this.circle(i)]+s,a),o=this.circle(i),this.onslide(o)):this.options.continuous?(this.move(this.circle(o-1),-l,a),this.move(o,0,a),this.move(this.circle(o+1),l,a)):(o&&this.move(o-1,-l,a),this.move(o,0,a),o<this.num-1&&this.move(o+1,l,a))},ontouchcancel:function(t){this.touchStart&&(this.ontouchend(t),delete this.touchStart)},ontransitionend:function(t){var e=this.slides[this.index];t&&e!==t.target||(this.interval&&this.play(),this.setTimeout(this.options.onslideend,[this.index,e]))},oncomplete:function(e){var n,i=e.target||e.srcElement,s=i&&i.parentNode;i&&s&&(n=this.getNodeIndex(s),t(s).removeClass(this.options.slideLoadingClass),"error"===e.type?(t(s).addClass(this.options.slideErrorClass),this.elements[n]=3):this.elements[n]=2,i.clientHeight>this.container[0].clientHeight&&(i.style.maxHeight=this.container[0].clientHeight),this.interval&&this.slides[this.index]===s&&this.play(),this.setTimeout(this.options.onslidecomplete,[n,s]))},onload:function(t){this.oncomplete(t)},onerror:function(t){this.oncomplete(t)},onkeydown:function(t){switch(t.which||t.keyCode){case 13:this.options.toggleControlsOnReturn&&(this.preventDefault(t),this.toggleControls());break;case 27:this.options.closeOnEscape&&(this.close(),t.stopImmediatePropagation());break;case 32:this.options.toggleSlideshowOnSpace&&(this.preventDefault(t),this.toggleSlideshow());break;case 37:this.options.enableKeyboardNavigation&&(this.preventDefault(t),this.prev());break;case 39:this.options.enableKeyboardNavigation&&(this.preventDefault(t),this.next())}},handleClick:function(e){function n(e){return t(s).hasClass(e)||t(r).hasClass(e)}var i=this.options,s=e.target||e.srcElement,r=s.parentNode;n(i.toggleClass)?(this.preventDefault(e),this.toggleControls()):n(i.prevClass)?(this.preventDefault(e),this.prev()):n(i.nextClass)?(this.preventDefault(e),this.next()):n(i.closeClass)?(this.preventDefault(e),this.close()):n(i.playPauseClass)?(this.preventDefault(e),this.toggleSlideshow()):r===this.slidesContainer[0]?i.closeOnSlideClick?(this.preventDefault(e),this.close()):i.toggleControlsOnSlideClick&&(this.preventDefault(e),this.toggleControls()):r.parentNode&&r.parentNode===this.slidesContainer[0]&&i.toggleControlsOnSlideClick&&(this.preventDefault(e),this.toggleControls())},onclick:function(t){if(!(this.options.emulateTouchEvents&&this.touchDelta&&(Math.abs(this.touchDelta.x)>20||Math.abs(this.touchDelta.y)>20)))return this.handleClick(t);delete this.touchDelta},updateEdgeClasses:function(t){t?this.container.removeClass(this.options.leftEdgeClass):this.container.addClass(this.options.leftEdgeClass),t===this.num-1?this.container.addClass(this.options.rightEdgeClass):this.container.removeClass(this.options.rightEdgeClass)},handleSlide:function(t){this.options.continuous||this.updateEdgeClasses(t),this.loadElements(t),this.options.unloadElements&&this.unloadElements(t),this.setTitle(t)},onslide:function(t){this.index=t,this.handleSlide(t),this.setTimeout(this.options.onslide,[t,this.slides[t]])},setTitle:function(t){var e=this.slides[t].firstChild,n=e.title||e.alt,i=this.titleElement;i.length&&(this.titleElement.empty(),n&&i[0].appendChild(document.createTextNode(n)))},setTimeout:function(t,e,n){var i=this;return t&&window.setTimeout(function(){t.apply(i,e||[])},n||0)},imageFactory:function(e,n){function i(e){if(!s){if(e={type:e.type,target:r},!r.parentNode)return a.setTimeout(i,[e]);s=!0,t(l).off("load error",i),u&&"load"===e.type&&(r.style.background='url("'+c+'") center no-repeat',r.style.backgroundSize=u),n(e)}}var s,r,o,a=this,l=this.imagePrototype.cloneNode(!1),c=e,u=this.options.stretchImages;return"string"!=typeof c&&(c=this.getItemProperty(e,this.options.urlProperty),o=this.getItemProperty(e,this.options.titleProperty)),!0===u&&(u="contain"),(u=this.support.backgroundSize&&this.support.backgroundSize[u]&&u)?r=this.elementPrototype.cloneNode(!1):(r=l,l.draggable=!1),o&&(r.title=o),t(l).on("load error",i),l.src=c,r},createElement:function(e,n){var i=e&&this.getItemProperty(e,this.options.typeProperty),s=i&&this[i.split("/")[0]+"Factory"]||this.imageFactory,r=e&&s.call(this,e,n),o=this.getItemProperty(e,this.options.srcsetProperty);return r||(r=this.elementPrototype.cloneNode(!1),this.setTimeout(n,[{type:"error",target:r}])),o&&r.setAttribute("srcset",o),t(r).addClass(this.options.slideContentClass),r},loadElement:function(e){this.elements[e]||(this.slides[e].firstChild?this.elements[e]=t(this.slides[e]).hasClass(this.options.slideErrorClass)?3:2:(this.elements[e]=1,t(this.slides[e]).addClass(this.options.slideLoadingClass),this.slides[e].appendChild(this.createElement(this.list[e],this.proxyListener))))},loadElements:function(t){var e,n=Math.min(this.num,2*this.options.preloadRange+1),i=t;for(e=0;e<n;e+=1)i+=e*(e%2==0?-1:1),i=this.circle(i),this.loadElement(i)},unloadElements:function(t){var e,n;for(e in this.elements)this.elements.hasOwnProperty(e)&&(n=Math.abs(t-e))>this.options.preloadRange&&n+this.options.preloadRange<this.num&&(this.unloadSlide(e),delete this.elements[e])},addSlide:function(t){var e=this.slidePrototype.cloneNode(!1);e.setAttribute("data-index",t),this.slidesContainer[0].appendChild(e),this.slides.push(e)},positionSlide:function(t){var e=this.slides[t];e.style.width=this.slideWidth+"px",this.support.transform&&(e.style.left=t*-this.slideWidth+"px",this.move(t,this.index>t?-this.slideWidth:this.index<t?this.slideWidth:0,0))},initSlides:function(e){var n,i;for(e||(this.positions=[],this.positions.length=this.num,this.elements={},this.imagePrototype=document.createElement("img"),this.elementPrototype=document.createElement("div"),this.slidePrototype=document.createElement("div"),t(this.slidePrototype).addClass(this.options.slideClass),this.slides=this.slidesContainer[0].children,n=this.options.clearSlides||this.slides.length!==this.num),this.slideWidth=this.container[0].offsetWidth,this.slideHeight=this.container[0].offsetHeight,this.slidesContainer[0].style.width=this.num*this.slideWidth+"px",n&&this.resetSlides(),i=0;i<this.num;i+=1)n&&this.addSlide(i),this.positionSlide(i);this.options.continuous&&this.support.transform&&(this.move(this.circle(this.index-1),-this.slideWidth,0),this.move(this.circle(this.index+1),this.slideWidth,0)),this.support.transform||(this.slidesContainer[0].style.left=this.index*-this.slideWidth+"px")},unloadSlide:function(t){var e,n;null!==(n=(e=this.slides[t]).firstChild)&&e.removeChild(n)},unloadAllSlides:function(){var t,e;for(t=0,e=this.slides.length;t<e;t++)this.unloadSlide(t)},toggleControls:function(){var t=this.options.controlsClass;this.container.hasClass(t)?this.container.removeClass(t):this.container.addClass(t)},toggleSlideshow:function(){this.interval?this.pause():this.play()},getNodeIndex:function(t){return parseInt(t.getAttribute("data-index"),10)},getNestedProperty:function(t,e){return e.replace(/\[(?:'([^']+)'|"([^"]+)"|(\d+))\]|(?:(?:^|\.)([^\.\[]+))/g,function(e,n,i,s,r){var o=r||n||i||s&&parseInt(s,10);e&&t&&(t=t[o])}),t},getDataProperty:function(e,n){var i,s;if(e.dataset?(i=n.replace(/-([a-z])/g,function(t,e){return e.toUpperCase()}),s=e.dataset[i]):e.getAttribute&&(s=e.getAttribute("data-"+n.replace(/([A-Z])/g,"-$1").toLowerCase())),"string"==typeof s){if(/^(true|false|null|-?\d+(\.\d+)?|\{[\s\S]*\}|\[[\s\S]*\])$/.test(s))try{return t.parseJSON(s)}catch(t){}return s}},getItemProperty:function(t,e){var n=this.getDataProperty(t,e);return void 0===n&&(n=t[e]),void 0===n&&(n=this.getNestedProperty(t,e)),n},initStartIndex:function(){var t,e=this.options.index,n=this.options.urlProperty;if(e&&"number"!=typeof e)for(t=0;t<this.num;t+=1)if(this.list[t]===e||this.getItemProperty(this.list[t],n)===this.getItemProperty(e,n)){e=t;break}this.index=this.circle(parseInt(e,10)||0)},initEventListeners:function(){function e(t){var e=n.support.transition&&n.support.transition.end===t.type?"transitionend":t.type;n["on"+e](t)}var n=this,i=this.slidesContainer;t(window).on("resize",e),t(document.body).on("keydown",e),this.container.on("click",e),this.support.touch?i.on("touchstart touchmove touchend touchcancel",e):this.options.emulateTouchEvents&&this.support.transition&&i.on("mousedown mousemove mouseup mouseout",e),this.support.transition&&i.on(this.support.transition.end,e),this.proxyListener=e},destroyEventListeners:function(){var e=this.slidesContainer,n=this.proxyListener;t(window).off("resize",n),t(document.body).off("keydown",n),this.container.off("click",n),this.support.touch?e.off("touchstart touchmove touchend touchcancel",n):this.options.emulateTouchEvents&&this.support.transition&&e.off("mousedown mousemove mouseup mouseout",n),this.support.transition&&e.off(this.support.transition.end,n)},handleOpen:function(){this.options.onopened&&this.options.onopened.call(this)},initWidget:function(){function e(t){t.target===n.container[0]&&(n.container.off(n.support.transition.end,e),n.handleOpen())}var n=this;return this.container=t(this.options.container),this.container.length?(this.slidesContainer=this.container.find(this.options.slidesContainer).first(),this.slidesContainer.length?(this.titleElement=this.container.find(this.options.titleElement).first(),1===this.num&&this.container.addClass(this.options.singleClass),this.options.onopen&&this.options.onopen.call(this),this.support.transition&&this.options.displayTransition?this.container.on(this.support.transition.end,e):this.handleOpen(),this.options.hidePageScrollbars&&(this.bodyOverflowStyle=document.body.style.overflow,document.body.style.overflow="hidden"),this.container[0].style.display="block",this.initSlides(),void this.container.addClass(this.options.displayClass)):(this.console.log("blueimp Gallery: Slides container not found.",this.options.slidesContainer),!1)):(this.console.log("blueimp Gallery: Widget container not found.",this.options.container),!1)},initOptions:function(e){this.options=t.extend({},this.options),(e&&e.carousel||this.options.carousel&&(!e||!1!==e.carousel))&&t.extend(this.options,this.carouselOptions),t.extend(this.options,e),this.num<3&&(this.options.continuous=!!this.options.continuous&&null),this.support.transition||(this.options.emulateTouchEvents=!1),this.options.event&&this.preventDefault(this.options.event)}}),e}),function(t){"use strict";"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery"],t):t(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(t,e){"use strict";t.extend(e.prototype.options,{fullScreen:!1});var n=e.prototype.initialize,i=e.prototype.close;return t.extend(e.prototype,{getFullScreenElement:function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},requestFullScreen:function(t){t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen()},exitFullScreen:function(){document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen()},initialize:function(){n.call(this),this.options.fullScreen&&!this.getFullScreenElement()&&this.requestFullScreen(this.container[0])},close:function(){this.getFullScreenElement()===this.container[0]&&this.exitFullScreen(),i.call(this)}}),e}),function(t){"use strict";"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery"],t):t(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(t,e){"use strict";t.extend(e.prototype.options,{indicatorContainer:"ol",activeIndicatorClass:"active",thumbnailProperty:"thumbnail",thumbnailIndicators:!0});var n=e.prototype.initSlides,i=e.prototype.addSlide,s=e.prototype.resetSlides,r=e.prototype.handleClick,o=e.prototype.handleSlide,a=e.prototype.handleClose;return t.extend(e.prototype,{createIndicator:function(e){var n,i,s=this.indicatorPrototype.cloneNode(!1),r=this.getItemProperty(e,this.options.titleProperty),o=this.options.thumbnailProperty;return this.options.thumbnailIndicators&&(o&&(n=this.getItemProperty(e,o)),void 0===n&&(i=e.getElementsByTagName&&t(e).find("img")[0])&&(n=i.src),n&&(s.style.backgroundImage='url("'+n+'")')),r&&(s.title=r),s},addIndicator:function(t){if(this.indicatorContainer.length){var e=this.createIndicator(this.list[t]);e.setAttribute("data-index",t),this.indicatorContainer[0].appendChild(e),this.indicators.push(e)}},setActiveIndicator:function(e){this.indicators&&(this.activeIndicator&&this.activeIndicator.removeClass(this.options.activeIndicatorClass),this.activeIndicator=t(this.indicators[e]),this.activeIndicator.addClass(this.options.activeIndicatorClass))},initSlides:function(t){t||(this.indicatorContainer=this.container.find(this.options.indicatorContainer),this.indicatorContainer.length&&(this.indicatorPrototype=document.createElement("li"),this.indicators=this.indicatorContainer[0].children)),n.call(this,t)},addSlide:function(t){i.call(this,t),this.addIndicator(t)},resetSlides:function(){s.call(this),this.indicatorContainer.empty(),this.indicators=[]},handleClick:function(t){var e=t.target||t.srcElement,n=e.parentNode;if(n===this.indicatorContainer[0])this.preventDefault(t),this.slide(this.getNodeIndex(e));else{if(n.parentNode!==this.indicatorContainer[0])return r.call(this,t);this.preventDefault(t),this.slide(this.getNodeIndex(n))}},handleSlide:function(t){o.call(this,t),this.setActiveIndicator(t)},handleClose:function(){this.activeIndicator&&this.activeIndicator.removeClass(this.options.activeIndicatorClass),a.call(this)}}),e}),function(t){"use strict";"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery"],t):t(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(t,e){"use strict";t.extend(e.prototype.options,{videoContentClass:"video-content",videoLoadingClass:"video-loading",videoPlayingClass:"video-playing",videoPosterProperty:"poster",videoSourcesProperty:"sources"});var n=e.prototype.handleSlide;return t.extend(e.prototype,{handleSlide:function(t){n.call(this,t),this.playingVideo&&this.playingVideo.pause()},videoFactory:function(e,n,i){var s,r,o,a,l,c=this,u=this.options,d=this.elementPrototype.cloneNode(!1),h=t(d),f=[{type:"error",target:d}],p=i||document.createElement("video"),g=this.getItemProperty(e,u.urlProperty),m=this.getItemProperty(e,u.typeProperty),y=this.getItemProperty(e,u.titleProperty),v=this.getItemProperty(e,u.videoPosterProperty),b=this.getItemProperty(e,u.videoSourcesProperty);if(h.addClass(u.videoContentClass),y&&(d.title=y),p.canPlayType)if(g&&m&&p.canPlayType(m))p.src=g;else if(b)for(;b.length;)if(r=b.shift(),g=this.getItemProperty(r,u.urlProperty),m=this.getItemProperty(r,u.typeProperty),g&&m&&p.canPlayType(m)){p.src=g;break}return v&&(p.poster=v,s=this.imagePrototype.cloneNode(!1),t(s).addClass(u.toggleClass),s.src=v,s.draggable=!1,d.appendChild(s)),(o=document.createElement("a")).setAttribute("target","_blank"),i||o.setAttribute("download",y),o.href=g,p.src&&(p.controls=!0,(i||t(p)).on("error",function(){c.setTimeout(n,f)}).on("pause",function(){p.seeking||(a=!1,h.removeClass(c.options.videoLoadingClass).removeClass(c.options.videoPlayingClass),l&&c.container.addClass(c.options.controlsClass),delete c.playingVideo,c.interval&&c.play())}).on("playing",function(){a=!1,h.removeClass(c.options.videoLoadingClass).addClass(c.options.videoPlayingClass),c.container.hasClass(c.options.controlsClass)?(l=!0,c.container.removeClass(c.options.controlsClass)):l=!1}).on("play",function(){window.clearTimeout(c.timeout),a=!0,h.addClass(c.options.videoLoadingClass),c.playingVideo=p}),t(o).on("click",function(t){c.preventDefault(t),a?p.pause():p.play()}),d.appendChild(i&&i.element||p)),d.appendChild(o),this.setTimeout(n,[{type:"load",target:d}]),d}}),e}),function(t){"use strict";"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery-video"],t):t(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(t,e){"use strict";if(!window.postMessage)return e;t.extend(e.prototype.options,{vimeoVideoIdProperty:"vimeo",vimeoPlayerUrl:"//player.vimeo.com/video/VIDEO_ID?api=1&player_id=PLAYER_ID",vimeoPlayerIdPrefix:"vimeo-player-",vimeoClickToPlay:!0});var n=e.prototype.textFactory||e.prototype.imageFactory,i=function(t,e,n,i){this.url=t,this.videoId=e,this.playerId=n,this.clickToPlay=i,this.element=document.createElement("div"),this.listeners={}},s=0;return t.extend(i.prototype,{canPlayType:function(){return!0},on:function(t,e){return this.listeners[t]=e,this},loadAPI:function(){function e(){!i&&s.playOnReady&&s.play(),i=!0}for(var n,i,s=this,r="//f.vimeocdn.com/js/froogaloop2.min.js",o=document.getElementsByTagName("script"),a=o.length;a;)if(a-=1,o[a].src===r){n=o[a];break}n||((n=document.createElement("script")).src=r),t(n).on("load",e),o[0].parentNode.insertBefore(n,o[0]),/loaded|complete/.test(n.readyState)&&e()},onReady:function(){var t=this;this.ready=!0,this.player.addEvent("play",function(){t.hasPlayed=!0,t.onPlaying()}),this.player.addEvent("pause",function(){t.onPause()}),this.player.addEvent("finish",function(){t.onPause()}),this.playOnReady&&this.play()},onPlaying:function(){this.playStatus<2&&(this.listeners.playing(),this.playStatus=2)},onPause:function(){this.listeners.pause(),delete this.playStatus},insertIframe:function(){var t=document.createElement("iframe");t.src=this.url.replace("VIDEO_ID",this.videoId).replace("PLAYER_ID",this.playerId),t.id=this.playerId,this.element.parentNode.replaceChild(t,this.element),this.element=t},play:function(){var t=this;this.playStatus||(this.listeners.play(),this.playStatus=1),this.ready?!this.hasPlayed&&(this.clickToPlay||window.navigator&&/iP(hone|od|ad)/.test(window.navigator.platform))?this.onPlaying():this.player.api("play"):(this.playOnReady=!0,window.$f?this.player||(this.insertIframe(),this.player=$f(this.element),this.player.addEvent("ready",function(){t.onReady()})):this.loadAPI())},pause:function(){this.ready?this.player.api("pause"):this.playStatus&&(delete this.playOnReady,this.listeners.pause(),delete this.playStatus)}}),t.extend(e.prototype,{VimeoPlayer:i,textFactory:function(t,e){var r=this.options,o=this.getItemProperty(t,r.vimeoVideoIdProperty);return o?(void 0===this.getItemProperty(t,r.urlProperty)&&(t[r.urlProperty]="//vimeo.com/"+o),s+=1,this.videoFactory(t,e,new i(r.vimeoPlayerUrl,o,r.vimeoPlayerIdPrefix+s,r.vimeoClickToPlay))):n.call(this,t,e)}}),e}),function(t){"use strict";"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery-video"],t):t(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(t,e){"use strict";if(!window.postMessage)return e;t.extend(e.prototype.options,{youTubeVideoIdProperty:"youtube",youTubePlayerVars:{wmode:"transparent"},youTubeClickToPlay:!0});var n=e.prototype.textFactory||e.prototype.imageFactory,i=function(t,e,n){this.videoId=t,this.playerVars=e,this.clickToPlay=n,this.element=document.createElement("div"),this.listeners={}};return t.extend(i.prototype,{canPlayType:function(){return!0},on:function(t,e){return this.listeners[t]=e,this},loadAPI:function(){var t,e=this,n=window.onYouTubeIframeAPIReady,i="//www.youtube.com/iframe_api",s=document.getElementsByTagName("script"),r=s.length;for(window.onYouTubeIframeAPIReady=function(){n&&n.apply(this),e.playOnReady&&e.play()};r;)if(r-=1,s[r].src===i)return;(t=document.createElement("script")).src=i,s[0].parentNode.insertBefore(t,s[0])},onReady:function(){this.ready=!0,this.playOnReady&&this.play()},onPlaying:function(){this.playStatus<2&&(this.listeners.playing(),this.playStatus=2)},onPause:function(){e.prototype.setTimeout.call(this,this.checkSeek,null,2e3)},checkSeek:function(){this.stateChange!==YT.PlayerState.PAUSED&&this.stateChange!==YT.PlayerState.ENDED||(this.listeners.pause(),delete this.playStatus)},onStateChange:function(t){switch(t.data){case YT.PlayerState.PLAYING:this.hasPlayed=!0,this.onPlaying();break;case YT.PlayerState.PAUSED:case YT.PlayerState.ENDED:this.onPause()}this.stateChange=t.data},onError:function(t){this.listeners.error(t)},play:function(){var t=this;this.playStatus||(this.listeners.play(),this.playStatus=1),this.ready?!this.hasPlayed&&(this.clickToPlay||window.navigator&&/iP(hone|od|ad)/.test(window.navigator.platform))?this.onPlaying():this.player.playVideo():(this.playOnReady=!0,window.YT&&YT.Player?this.player||(this.player=new YT.Player(this.element,{videoId:this.videoId,playerVars:this.playerVars,events:{onReady:function(){t.onReady()},onStateChange:function(e){t.onStateChange(e)},onError:function(e){t.onError(e)}}})):this.loadAPI())},pause:function(){this.ready?this.player.pauseVideo():this.playStatus&&(delete this.playOnReady,this.listeners.pause(),delete this.playStatus)}}),t.extend(e.prototype,{YouTubePlayer:i,textFactory:function(t,e){var s=this.options,r=this.getItemProperty(t,s.youTubeVideoIdProperty);return r?(void 0===this.getItemProperty(t,s.urlProperty)&&(t[s.urlProperty]="//www.youtube.com/watch?v="+r),void 0===this.getItemProperty(t,s.videoPosterProperty)&&(t[s.videoPosterProperty]="//img.youtube.com/vi/"+r+"/maxresdefault.jpg"),this.videoFactory(t,e,new i(r,s.youTubePlayerVars,s.youTubeClickToPlay))):n.call(this,t,e)}}),e}),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./blueimp-gallery"],t):t(window.jQuery,window.blueimp.Gallery)}(function(t,e){"use strict";t(document).on("click","[data-gallery]",function(n){var i=t(this).data("gallery"),s=t(i),r=s.length&&s||t(e.prototype.options.container),o={onopen:function(){r.data("gallery",this).trigger("open")},onopened:function(){r.trigger("opened")},onslide:function(){r.trigger("slide",arguments)},onslideend:function(){r.trigger("slideend",arguments)},onslidecomplete:function(){r.trigger("slidecomplete",arguments)},onclose:function(){r.trigger("close")},onclosed:function(){r.trigger("closed").removeData("gallery")}},a=t.extend(r.data(),{container:r[0],index:this,event:n},o),l=t('[data-gallery="'+i+'"]');return a.filter&&(l=l.filter(a.filter)),new e(l,a)})}),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./blueimp-gallery"],t):t(window.jQuery,window.blueimp.Gallery)}(function(t,e){"use strict";t.extend(e.prototype.options,{useBootstrapModal:!0});var n=e.prototype.close,i=e.prototype.imageFactory,s=e.prototype.videoFactory,r=e.prototype.textFactory;t.extend(e.prototype,{modalFactory:function(t,e,n,i){if(!this.options.useBootstrapModal||n)return i.call(this,t,e,n);var s=this,r=this.container.children(".modal").clone().show().on("click",function(t){(t.target===r[0]||t.target===r.children()[0])&&(t.preventDefault(),t.stopPropagation(),s.close())}),o=i.call(this,t,function(t){e({type:t.type,target:r[0]}),r.addClass("in")},n);return r.find(".modal-title").text(o.title||String.fromCharCode(160)),r.find(".modal-body").append(o),r[0]},imageFactory:function(t,e,n){return this.modalFactory(t,e,n,i)},videoFactory:function(t,e,n){return this.modalFactory(t,e,n,s)},textFactory:function(t,e,n){return this.modalFactory(t,e,n,r)},close:function(){this.container.find(".modal").removeClass("in"),n.call(this)}})}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.moment=e()}(this,function(){"use strict";function t(){return Xt.apply(null,arguments)}function e(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function n(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function i(t){return void 0===t}function s(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function r(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function o(t,e){var n,i=[];for(n=0;n<t.length;++n)i.push(e(t[n],n));return i}function a(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function l(t,e){for(var n in e)a(e,n)&&(t[n]=e[n]);return a(e,"toString")&&(t.toString=e.toString),a(e,"valueOf")&&(t.valueOf=e.valueOf),t}function c(t,e,n,i){return yt(t,e,n,i,!0).utc()}function u(t){return null==t._pf&&(t._pf={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}),t._pf}function d(t){if(null==t._isValid){var e=u(t),n=Zt.call(e.parsedDateParts,function(t){return null!=t}),i=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(i=i&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return i;t._isValid=i}return t._isValid}function h(t){var e=c(NaN);return null!=t?l(u(e),t):u(e).userInvalidated=!0,e}function f(t,e){var n,s,r;if(i(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),i(e._i)||(t._i=e._i),i(e._f)||(t._f=e._f),i(e._l)||(t._l=e._l),i(e._strict)||(t._strict=e._strict),i(e._tzm)||(t._tzm=e._tzm),i(e._isUTC)||(t._isUTC=e._isUTC),i(e._offset)||(t._offset=e._offset),i(e._pf)||(t._pf=u(e)),i(e._locale)||(t._locale=e._locale),Jt.length>0)for(n=0;n<Jt.length;n++)i(r=e[s=Jt[n]])||(t[s]=r);return t}function p(e){f(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===te&&(te=!0,t.updateOffset(this),te=!1)}function g(t){return t instanceof p||null!=t&&null!=t._isAMomentObject}function m(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function y(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=m(e)),n}function v(t,e,n){var i,s=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),o=0;for(i=0;i<s;i++)(n&&t[i]!==e[i]||!n&&y(t[i])!==y(e[i]))&&o++;return o+r}function b(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function _(e,n){var i=!0;return l(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),i){for(var s,r=[],o=0;o<arguments.length;o++){if(s="","object"==typeof arguments[o]){s+="\n["+o+"] ";for(var a in arguments[0])s+=a+": "+arguments[0][a]+", ";s=s.slice(0,-2)}else s=arguments[o];r.push(s)}b(e+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+(new Error).stack),i=!1}return n.apply(this,arguments)},n)}function w(e,n){null!=t.deprecationHandler&&t.deprecationHandler(e,n),ee[e]||(b(n),ee[e]=!0)}function x(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function C(t,e){var i,s=l({},t);for(i in e)a(e,i)&&(n(t[i])&&n(e[i])?(s[i]={},l(s[i],t[i]),l(s[i],e[i])):null!=e[i]?s[i]=e[i]:delete s[i]);for(i in t)a(t,i)&&!a(e,i)&&n(t[i])&&(s[i]=l({},s[i]));return s}function k(t){null!=t&&this.set(t)}function S(t,e){var n=t.toLowerCase();ie[n]=ie[n+"s"]=ie[e]=t}function T(t){return"string"==typeof t?ie[t]||ie[t.toLowerCase()]:void 0}function D(t){var e,n,i={};for(n in t)a(t,n)&&(e=T(n))&&(i[e]=t[n]);return i}function E(t,e){se[t]=e}function $(t,e,n){var i=""+Math.abs(t),s=e-i.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+i}function N(t,e,n,i){var s=i;"string"==typeof i&&(s=function(){return this[i]()}),t&&(le[t]=s),e&&(le[e[0]]=function(){return $(s.apply(this,arguments),e[1],e[2])}),n&&(le[n]=function(){return this.localeData().ordinal(s.apply(this,arguments),t)})}function A(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function I(t,e){return t.isValid()?(e=M(e,t.localeData()),ae[e]=ae[e]||function(t){var e,n,i=t.match(re);for(e=0,n=i.length;e<n;e++)le[i[e]]?i[e]=le[i[e]]:i[e]=A(i[e]);return function(e){var s,r="";for(s=0;s<n;s++)r+=x(i[s])?i[s].call(e,t):i[s];return r}}(e),ae[e](t)):t.localeData().invalidDate()}function M(t,e){function n(t){return e.longDateFormat(t)||t}var i=5;for(oe.lastIndex=0;i>=0&&oe.test(t);)t=t.replace(oe,n),oe.lastIndex=0,i-=1;return t}function P(t,e,n){Se[t]=x(e)?e:function(t,i){return t&&n?n:e}}function O(t,e){return a(Se,t)?Se[t](e._strict,e._locale):new RegExp(function(t){return R(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,s){return e||n||i||s}))}(t))}function R(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function L(t,e){var n,i=e;for("string"==typeof t&&(t=[t]),s(e)&&(i=function(t,n){n[e]=y(t)}),n=0;n<t.length;n++)Te[t[n]]=i}function j(t,e){L(t,function(t,n,i,s){i._w=i._w||{},e(t,i._w,i,s)})}function F(t,e,n){null!=e&&a(Te,t)&&Te[t](e,n._a,n,t)}function H(t){return W(t)?366:365}function W(t){return t%4==0&&t%100!=0||t%400==0}function Y(e,n){return function(i){return null!=i?(z(this,e,i),t.updateOffset(this,n),this):q(this,e)}}function q(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function z(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&W(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),B(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function B(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=function(t,e){return(t%e+e)%e}(e,12);return t+=(e-n)/12,1===n?W(t)?29:28:31-n%7%2}function U(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=y(e);else if(e=t.localeData().monthsParse(e),!s(e))return t;return n=Math.min(t.date(),B(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function V(e){return null!=e?(U(this,e),t.updateOffset(this,!0),this):q(this,"Month")}function G(){function t(t,e){return e.length-t.length}var e,n,i=[],s=[],r=[];for(e=0;e<12;e++)n=c([2e3,e]),i.push(this.monthsShort(n,"")),s.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(i.sort(t),s.sort(t),r.sort(t),e=0;e<12;e++)i[e]=R(i[e]),s[e]=R(s[e]);for(e=0;e<24;e++)r[e]=R(r[e]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Q(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&t>=0&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function K(t,e,n){var i=7+e-n;return-((7+Q(t,0,i).getUTCDay()-e)%7)+i-1}function X(t,e,n,i,s){var r,o,a=1+7*(e-1)+(7+n-i)%7+K(t,i,s);return a<=0?o=H(r=t-1)+a:a>H(t)?(r=t+1,o=a-H(t)):(r=t,o=a),{year:r,dayOfYear:o}}function Z(t,e,n){var i,s,r=K(t.year(),e,n),o=Math.floor((t.dayOfYear()-r-1)/7)+1;return o<1?i=o+J(s=t.year()-1,e,n):o>J(t.year(),e,n)?(i=o-J(t.year(),e,n),s=t.year()+1):(s=t.year(),i=o),{week:i,year:s}}function J(t,e,n){var i=K(t,e,n),s=K(t+1,e,n);return(H(t)-i+s)/7}function tt(){function t(t,e){return e.length-t.length}var e,n,i,s,r,o=[],a=[],l=[],u=[];for(e=0;e<7;e++)n=c([2e3,1]).day(e),i=this.weekdaysMin(n,""),s=this.weekdaysShort(n,""),r=this.weekdays(n,""),o.push(i),a.push(s),l.push(r),u.push(i),u.push(s),u.push(r);for(o.sort(t),a.sort(t),l.sort(t),u.sort(t),e=0;e<7;e++)a[e]=R(a[e]),l[e]=R(l[e]),u[e]=R(u[e]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function et(){return this.hours()%12||12}function nt(t,e){N(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function it(t,e){return e._meridiemParse}function st(t){return t?t.toLowerCase().replace("_","-"):t}function rt(t){var e=null;if(!Ze[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=Qe._abbr;require("./locale/"+t),ot(e)}catch(t){}return Ze[t]}function ot(t,e){var n;return t&&(n=i(e)?lt(t):at(t,e))&&(Qe=n),Qe._abbr}function at(t,e){if(null!==e){var n=Xe;if(e.abbr=t,null!=Ze[t])w("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."),n=Ze[t]._config;else if(null!=e.parentLocale){if(null==Ze[e.parentLocale])return Je[e.parentLocale]||(Je[e.parentLocale]=[]),Je[e.parentLocale].push({name:t,config:e}),null;n=Ze[e.parentLocale]._config}return Ze[t]=new k(C(n,e)),Je[t]&&Je[t].forEach(function(t){at(t.name,t.config)}),ot(t),Ze[t]}return delete Ze[t],null}function lt(t){var n;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Qe;if(!e(t)){if(n=rt(t))return n;t=[t]}return function(t){for(var e,n,i,s,r=0;r<t.length;){for(e=(s=st(t[r]).split("-")).length,n=(n=st(t[r+1]))?n.split("-"):null;e>0;){if(i=rt(s.slice(0,e).join("-")))return i;if(n&&n.length>=e&&v(s,n,!0)>=e-1)break;e--}r++}return null}(t)}function ct(t){var e,n=t._a;return n&&-2===u(t).overflow&&(e=n[Ee]<0||n[Ee]>11?Ee:n[$e]<1||n[$e]>B(n[De],n[Ee])?$e:n[Ne]<0||n[Ne]>24||24===n[Ne]&&(0!==n[Ae]||0!==n[Ie]||0!==n[Me])?Ne:n[Ae]<0||n[Ae]>59?Ae:n[Ie]<0||n[Ie]>59?Ie:n[Me]<0||n[Me]>999?Me:-1,u(t)._overflowDayOfYear&&(e<De||e>$e)&&(e=$e),u(t)._overflowWeeks&&-1===e&&(e=Pe),u(t)._overflowWeekday&&-1===e&&(e=Oe),u(t).overflow=e),t}function ut(t,e,n){return null!=t?t:null!=e?e:n}function dt(e){var n,i,s,r,o=[];if(!e._d){for(s=function(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}(e),e._w&&null==e._a[$e]&&null==e._a[Ee]&&function(t){var e,n,i,s,r,o,a,l;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)r=1,o=4,n=ut(e.GG,t._a[De],Z(vt(),1,4).year),i=ut(e.W,1),((s=ut(e.E,1))<1||s>7)&&(l=!0);else{r=t._locale._week.dow,o=t._locale._week.doy;var c=Z(vt(),r,o);n=ut(e.gg,t._a[De],c.year),i=ut(e.w,c.week),null!=e.d?((s=e.d)<0||s>6)&&(l=!0):null!=e.e?(s=e.e+r,(e.e<0||e.e>6)&&(l=!0)):s=r}i<1||i>J(n,r,o)?u(t)._overflowWeeks=!0:null!=l?u(t)._overflowWeekday=!0:(a=X(n,i,s,r,o),t._a[De]=a.year,t._dayOfYear=a.dayOfYear)}(e),null!=e._dayOfYear&&(r=ut(e._a[De],s[De]),(e._dayOfYear>H(r)||0===e._dayOfYear)&&(u(e)._overflowDayOfYear=!0),i=Q(r,0,e._dayOfYear),e._a[Ee]=i.getUTCMonth(),e._a[$e]=i.getUTCDate()),n=0;n<3&&null==e._a[n];++n)e._a[n]=o[n]=s[n];for(;n<7;n++)e._a[n]=o[n]=null==e._a[n]?2===n?1:0:e._a[n];24===e._a[Ne]&&0===e._a[Ae]&&0===e._a[Ie]&&0===e._a[Me]&&(e._nextDay=!0,e._a[Ne]=0),e._d=(e._useUTC?Q:function(t,e,n,i,s,r,o){var a=new Date(t,e,n,i,s,r,o);return t<100&&t>=0&&isFinite(a.getFullYear())&&a.setFullYear(t),a}).apply(null,o),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ne]=24),e._w&&void 0!==e._w.d&&e._w.d!==e._d.getDay()&&(u(e).weekdayMismatch=!0)}}function ht(t){var e,n,i,s,r,o,a=t._i,l=tn.exec(a)||en.exec(a);if(l){for(u(t).iso=!0,e=0,n=sn.length;e<n;e++)if(sn[e][1].exec(l[1])){s=sn[e][0],i=!1!==sn[e][2];break}if(null==s)return void(t._isValid=!1);if(l[3]){for(e=0,n=rn.length;e<n;e++)if(rn[e][1].exec(l[3])){r=(l[2]||" ")+rn[e][0];break}if(null==r)return void(t._isValid=!1)}if(!i&&null!=r)return void(t._isValid=!1);if(l[4]){if(!nn.exec(l[4]))return void(t._isValid=!1);o="Z"}t._f=s+(r||"")+(o||""),gt(t)}else t._isValid=!1}function ft(t,e,n,i,s,r){var o=[function(t){var e=parseInt(t,10);{if(e<=49)return 2e3+e;if(e<=999)return 1900+e}return e}(t),He.indexOf(e),parseInt(n,10),parseInt(i,10),parseInt(s,10)];return r&&o.push(parseInt(r,10)),o}function pt(t){var e=an.exec(function(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(t._i));if(e){var n=ft(e[4],e[3],e[2],e[5],e[6],e[7]);if(!function(t,e,n){if(t&&ze.indexOf(t)!==new Date(e[0],e[1],e[2]).getDay())return u(n).weekdayMismatch=!0,n._isValid=!1,!1;return!0}(e[1],n,t))return;t._a=n,t._tzm=function(t,e,n){if(t)return ln[t];if(e)return 0;var i=parseInt(n,10),s=i%100;return(i-s)/100*60+s}(e[8],e[9],e[10]),t._d=Q.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),u(t).rfc2822=!0}else t._isValid=!1}function gt(e){if(e._f!==t.ISO_8601)if(e._f!==t.RFC_2822){e._a=[],u(e).empty=!0;var n,i,s,r,o,a=""+e._i,l=a.length,c=0;for(s=M(e._f,e._locale).match(re)||[],n=0;n<s.length;n++)r=s[n],(i=(a.match(O(r,e))||[])[0])&&((o=a.substr(0,a.indexOf(i))).length>0&&u(e).unusedInput.push(o),a=a.slice(a.indexOf(i)+i.length),c+=i.length),le[r]?(i?u(e).empty=!1:u(e).unusedTokens.push(r),F(r,i,e)):e._strict&&!i&&u(e).unusedTokens.push(r);u(e).charsLeftOver=l-c,a.length>0&&u(e).unusedInput.push(a),e._a[Ne]<=12&&!0===u(e).bigHour&&e._a[Ne]>0&&(u(e).bigHour=void 0),u(e).parsedDateParts=e._a.slice(0),u(e).meridiem=e._meridiem,e._a[Ne]=function(t,e,n){var i;if(null==n)return e;return null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((i=t.isPM(n))&&e<12&&(e+=12),i||12!==e||(e=0),e):e}(e._locale,e._a[Ne],e._meridiem),dt(e),ct(e)}else pt(e);else ht(e)}function mt(a){var c=a._i,m=a._f;return a._locale=a._locale||lt(a._l),null===c||void 0===m&&""===c?h({nullInput:!0}):("string"==typeof c&&(a._i=c=a._locale.preparse(c)),g(c)?new p(ct(c)):(r(c)?a._d=c:e(m)?function(t){var e,n,i,s,r;if(0===t._f.length)return u(t).invalidFormat=!0,void(t._d=new Date(NaN));for(s=0;s<t._f.length;s++)r=0,e=f({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[s],gt(e),d(e)&&(r+=u(e).charsLeftOver,r+=10*u(e).unusedTokens.length,u(e).score=r,(null==i||r<i)&&(i=r,n=e));l(t,n||e)}(a):m?gt(a):function(a){var l=a._i;i(l)?a._d=new Date(t.now()):r(l)?a._d=new Date(l.valueOf()):"string"==typeof l?function(e){var n=on.exec(e._i);null===n?(ht(e),!1===e._isValid&&(delete e._isValid,pt(e),!1===e._isValid&&(delete e._isValid,t.createFromInputFallback(e)))):e._d=new Date(+n[1])}(a):e(l)?(a._a=o(l.slice(0),function(t){return parseInt(t,10)}),dt(a)):n(l)?function(t){if(!t._d){var e=D(t._i);t._a=o([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),dt(t)}}(a):s(l)?a._d=new Date(l):t.createFromInputFallback(a)}(a),d(a)||(a._d=null),a))}function yt(t,i,s,r,o){var a={};return!0!==s&&!1!==s||(r=s,s=void 0),(n(t)&&function(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}(t)||e(t)&&0===t.length)&&(t=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=o,a._l=s,a._i=t,a._f=i,a._strict=r,function(t){var e=new p(ct(mt(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}(a)}function vt(t,e,n,i){return yt(t,e,n,i,!1)}function bt(t,n){var i,s;if(1===n.length&&e(n[0])&&(n=n[0]),!n.length)return vt();for(i=n[0],s=1;s<n.length;++s)n[s].isValid()&&!n[s][t](i)||(i=n[s]);return i}function _t(t){var e=D(t),n=e.year||0,i=e.quarter||0,s=e.month||0,r=e.week||0,o=e.day||0,a=e.hour||0,l=e.minute||0,c=e.second||0,u=e.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===Re.call(dn,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,i=0;i<dn.length;++i)if(t[dn[i]]){if(n)return!1;parseFloat(t[dn[i]])!==y(t[dn[i]])&&(n=!0)}return!0}(e),this._milliseconds=+u+1e3*c+6e4*l+1e3*a*60*60,this._days=+o+7*r,this._months=+s+3*i+12*n,this._data={},this._locale=lt(),this._bubble()}function wt(t){return t instanceof _t}function xt(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Ct(t,e){N(t,0,0,function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+$(~~(t/60),2)+e+$(~~t%60,2)})}function kt(t,e){var n=(e||"").match(t);if(null===n)return null;var i=((n[n.length-1]||[])+"").match(hn)||["-",0,0],s=60*i[1]+y(i[2]);return 0===s?0:"+"===i[0]?s:-s}function St(e,n){var i,s;return n._isUTC?(i=n.clone(),s=(g(e)||r(e)?e.valueOf():vt(e).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+s),t.updateOffset(i,!1),i):vt(e).local()}function Tt(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Dt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Et(t,e){var n,i,r,o=t,l=null;return wt(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:s(t)?(o={},e?o[e]=t:o.milliseconds=t):(l=fn.exec(t))?(n="-"===l[1]?-1:1,o={y:0,d:y(l[$e])*n,h:y(l[Ne])*n,m:y(l[Ae])*n,s:y(l[Ie])*n,ms:y(xt(1e3*l[Me]))*n}):(l=pn.exec(t))?(n="-"===l[1]?-1:(l[1],1),o={y:$t(l[2],n),M:$t(l[3],n),w:$t(l[4],n),d:$t(l[5],n),h:$t(l[6],n),m:$t(l[7],n),s:$t(l[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(r=function(t,e){var n;if(!t.isValid()||!e.isValid())return{milliseconds:0,months:0};e=St(e,t),t.isBefore(e)?n=Nt(t,e):((n=Nt(e,t)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(vt(o.from),vt(o.to)),(o={}).ms=r.milliseconds,o.M=r.months),i=new _t(o),wt(t)&&a(t,"_locale")&&(i._locale=t._locale),i}function $t(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Nt(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function At(t,e){return function(n,i){var s,r;return null===i||isNaN(+i)||(w(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),n="string"==typeof n?+n:n,s=Et(n,i),It(this,s,t),this}}function It(e,n,i,s){var r=n._milliseconds,o=xt(n._days),a=xt(n._months);e.isValid()&&(s=null==s||s,a&&U(e,q(e,"Month")+a*i),o&&z(e,"Date",q(e,"Date")+o*i),r&&e._d.setTime(e._d.valueOf()+r*i),s&&t.updateOffset(e,o||a))}function Mt(t,e){var n,i=12*(e.year()-t.year())+(e.month()-t.month()),s=t.clone().add(i,"months");return n=e-s<0?(e-s)/(s-t.clone().add(i-1,"months")):(e-s)/(t.clone().add(i+1,"months")-s),-(i+n)||0}function Pt(t){var e;return void 0===t?this._locale._abbr:(null!=(e=lt(t))&&(this._locale=e),this)}function Ot(){return this._locale}function Rt(t,e){N(0,[t,t.length],0,e)}function Lt(t,e,n,i,s){var r;return null==t?Z(this,i,s).year:(r=J(t,i,s),e>r&&(e=r),function(t,e,n,i,s){var r=X(t,e,n,i,s),o=Q(r.year,0,r.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}.call(this,t,e,n,i,s))}function jt(t,e){e[Me]=y(1e3*("0."+t))}function Ft(t){return t}function Ht(t,e,n,i){var s=lt(),r=c().set(i,e);return s[n](r,t)}function Wt(t,e,n){if(s(t)&&(e=t,t=void 0),t=t||"",null!=e)return Ht(t,e,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Ht(t,i,n,"month");return r}function Yt(t,e,n,i){"boolean"==typeof t?(s(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,s(e)&&(n=e,e=void 0),e=e||"");var r=lt(),o=t?r._week.dow:0;if(null!=n)return Ht(e,(n+o)%7,i,"day");var a,l=[];for(a=0;a<7;a++)l[a]=Ht(e,(a+o)%7,i,"day");return l}function qt(t,e,n,i){var s=Et(e,n);return t._milliseconds+=i*s._milliseconds,t._days+=i*s._days,t._months+=i*s._months,t._bubble()}function zt(t){return t<0?Math.floor(t):Math.ceil(t)}function Bt(t){return 4800*t/146097}function Ut(t){return 146097*t/4800}function Vt(t){return function(){return this.as(t)}}function Gt(t){return function(){return this.isValid()?this._data[t]:NaN}}function Qt(t){return(t>0)-(t<0)||+t}function Kt(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,i=qn(this._milliseconds)/1e3,s=qn(this._days),r=qn(this._months);e=m((t=m(i/60))/60),i%=60,t%=60;var o=n=m(r/12),a=r%=12,l=s,c=e,u=t,d=i?i.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var f=h<0?"-":"",p=Qt(this._months)!==Qt(h)?"-":"",g=Qt(this._days)!==Qt(h)?"-":"",y=Qt(this._milliseconds)!==Qt(h)?"-":"";return f+"P"+(o?p+o+"Y":"")+(a?p+a+"M":"")+(l?g+l+"D":"")+(c||u||d?"T":"")+(c?y+c+"H":"")+(u?y+u+"M":"")+(d?y+d+"S":"")}var Xt,Zt;Zt=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,i=0;i<n;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1};var Jt=t.momentProperties=[],te=!1,ee={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var ne;ne=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)a(t,e)&&n.push(e);return n};var ie={},se={},re=/(\[[^\[]*\])|(\\)?([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,oe=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ae={},le={},ce=/\d/,ue=/\d\d/,de=/\d{3}/,he=/\d{4}/,fe=/[+-]?\d{6}/,pe=/\d\d?/,ge=/\d\d\d\d?/,me=/\d\d\d\d\d\d?/,ye=/\d{1,3}/,ve=/\d{1,4}/,be=/[+-]?\d{1,6}/,_e=/\d+/,we=/[+-]?\d+/,xe=/Z|[+-]\d\d:?\d\d/gi,Ce=/Z|[+-]\d\d(?::?\d\d)?/gi,ke=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Se={},Te={},De=0,Ee=1,$e=2,Ne=3,Ae=4,Ie=5,Me=6,Pe=7,Oe=8;N("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),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"),S("year","y"),E("year",1),P("Y",we),P("YY",pe,ue),P("YYYY",ve,he),P("YYYYY",be,fe),P("YYYYYY",be,fe),L(["YYYYY","YYYYYY"],De),L("YYYY",function(e,n){n[De]=2===e.length?t.parseTwoDigitYear(e):y(e)}),L("YY",function(e,n){n[De]=t.parseTwoDigitYear(e)}),L("Y",function(t,e){e[De]=parseInt(t,10)}),t.parseTwoDigitYear=function(t){return y(t)+(y(t)>68?1900:2e3)};var Re,Le=Y("FullYear",!0);Re=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},N("M",["MM",2],"Mo",function(){return this.month()+1}),N("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),N("MMMM",0,0,function(t){return this.localeData().months(this,t)}),S("month","M"),E("month",8),P("M",pe),P("MM",pe,ue),P("MMM",function(t,e){return e.monthsShortRegex(t)}),P("MMMM",function(t,e){return e.monthsRegex(t)}),L(["M","MM"],function(t,e){e[Ee]=y(t)-1}),L(["MMM","MMMM"],function(t,e,n,i){var s=n._locale.monthsParse(t,i,n._strict);null!=s?e[Ee]=s:u(n).invalidMonth=t});var je=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Fe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),He="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),We=ke,Ye=ke;N("w",["ww",2],"wo","week"),N("W",["WW",2],"Wo","isoWeek"),S("week","w"),S("isoWeek","W"),E("week",5),E("isoWeek",5),P("w",pe),P("ww",pe,ue),P("W",pe),P("WW",pe,ue),j(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=y(t)});N("d",0,"do","day"),N("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),N("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),N("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),N("e",0,0,"weekday"),N("E",0,0,"isoWeekday"),S("day","d"),S("weekday","e"),S("isoWeekday","E"),E("day",11),E("weekday",11),E("isoWeekday",11),P("d",pe),P("e",pe),P("E",pe),P("dd",function(t,e){return e.weekdaysMinRegex(t)}),P("ddd",function(t,e){return e.weekdaysShortRegex(t)}),P("dddd",function(t,e){return e.weekdaysRegex(t)}),j(["dd","ddd","dddd"],function(t,e,n,i){var s=n._locale.weekdaysParse(t,i,n._strict);null!=s?e.d=s:u(n).invalidWeekday=t}),j(["d","e","E"],function(t,e,n,i){e[i]=y(t)});var qe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ze="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Be="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ue=ke,Ve=ke,Ge=ke;N("H",["HH",2],0,"hour"),N("h",["hh",2],0,et),N("k",["kk",2],0,function(){return this.hours()||24}),N("hmm",0,0,function(){return""+et.apply(this)+$(this.minutes(),2)}),N("hmmss",0,0,function(){return""+et.apply(this)+$(this.minutes(),2)+$(this.seconds(),2)}),N("Hmm",0,0,function(){return""+this.hours()+$(this.minutes(),2)}),N("Hmmss",0,0,function(){return""+this.hours()+$(this.minutes(),2)+$(this.seconds(),2)}),nt("a",!0),nt("A",!1),S("hour","h"),E("hour",13),P("a",it),P("A",it),P("H",pe),P("h",pe),P("k",pe),P("HH",pe,ue),P("hh",pe,ue),P("kk",pe,ue),P("hmm",ge),P("hmmss",me),P("Hmm",ge),P("Hmmss",me),L(["H","HH"],Ne),L(["k","kk"],function(t,e,n){var i=y(t);e[Ne]=24===i?0:i}),L(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),L(["h","hh"],function(t,e,n){e[Ne]=y(t),u(n).bigHour=!0}),L("hmm",function(t,e,n){var i=t.length-2;e[Ne]=y(t.substr(0,i)),e[Ae]=y(t.substr(i)),u(n).bigHour=!0}),L("hmmss",function(t,e,n){var i=t.length-4,s=t.length-2;e[Ne]=y(t.substr(0,i)),e[Ae]=y(t.substr(i,2)),e[Ie]=y(t.substr(s)),u(n).bigHour=!0}),L("Hmm",function(t,e,n){var i=t.length-2;e[Ne]=y(t.substr(0,i)),e[Ae]=y(t.substr(i))}),L("Hmmss",function(t,e,n){var i=t.length-4,s=t.length-2;e[Ne]=y(t.substr(0,i)),e[Ae]=y(t.substr(i,2)),e[Ie]=y(t.substr(s))});var Qe,Ke=Y("Hours",!0),Xe={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{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"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,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"},months:Fe,monthsShort:He,week:{dow:0,doy:6},weekdays:qe,weekdaysMin:Be,weekdaysShort:ze,meridiemParse:/[ap]\.?m?\.?/i},Ze={},Je={},tn=/^\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)?)?$/,en=/^\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)?)?$/,nn=/Z|[+-]\d\d(?::?\d\d)?/,sn=[["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}/]],rn=[["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/]],on=/^\/?Date\((\-?\d+)/i,an=/^(?:(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}))$/,ln={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};t.createFromInputFallback=_("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(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var cn=_("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=vt.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:h()}),un=_("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=vt.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:h()}),dn=["year","quarter","month","week","day","hour","minute","second","millisecond"];Ct("Z",":"),Ct("ZZ",""),P("Z",Ce),P("ZZ",Ce),L(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=kt(Ce,t)});var hn=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var fn=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,pn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Et.fn=_t.prototype,Et.invalid=function(){return Et(NaN)};var gn=At(1,"add"),mn=At(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var yn=_("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});N(0,["gg",2],0,function(){return this.weekYear()%100}),N(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Rt("gggg","weekYear"),Rt("ggggg","weekYear"),Rt("GGGG","isoWeekYear"),Rt("GGGGG","isoWeekYear"),S("weekYear","gg"),S("isoWeekYear","GG"),E("weekYear",1),E("isoWeekYear",1),P("G",we),P("g",we),P("GG",pe,ue),P("gg",pe,ue),P("GGGG",ve,he),P("gggg",ve,he),P("GGGGG",be,fe),P("ggggg",be,fe),j(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=y(t)}),j(["gg","GG"],function(e,n,i,s){n[s]=t.parseTwoDigitYear(e)}),N("Q",0,"Qo","quarter"),S("quarter","Q"),E("quarter",7),P("Q",ce),L("Q",function(t,e){e[Ee]=3*(y(t)-1)}),N("D",["DD",2],"Do","date"),S("date","D"),E("date",9),P("D",pe),P("DD",pe,ue),P("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),L(["D","DD"],$e),L("Do",function(t,e){e[$e]=y(t.match(pe)[0])});var vn=Y("Date",!0);N("DDD",["DDDD",3],"DDDo","dayOfYear"),S("dayOfYear","DDD"),E("dayOfYear",4),P("DDD",ye),P("DDDD",de),L(["DDD","DDDD"],function(t,e,n){n._dayOfYear=y(t)}),N("m",["mm",2],0,"minute"),S("minute","m"),E("minute",14),P("m",pe),P("mm",pe,ue),L(["m","mm"],Ae);var bn=Y("Minutes",!1);N("s",["ss",2],0,"second"),S("second","s"),E("second",15),P("s",pe),P("ss",pe,ue),L(["s","ss"],Ie);var _n=Y("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()}),S("millisecond","ms"),E("millisecond",16),P("S",ye,ce),P("SS",ye,ue),P("SSS",ye,de);var wn;for(wn="SSSS";wn.length<=9;wn+="S")P(wn,_e);for(wn="S";wn.length<=9;wn+="S")L(wn,jt);var xn=Y("Milliseconds",!1);N("z",0,0,"zoneAbbr"),N("zz",0,0,"zoneName");var Cn=p.prototype;Cn.add=gn,Cn.calendar=function(e,n){var i=e||vt(),s=St(i,this).startOf("day"),r=t.calendarFormat(this,s)||"sameElse",o=n&&(x(n[r])?n[r].call(this,i):n[r]);return this.format(o||this.localeData().calendar(r,this,vt(i)))},Cn.clone=function(){return new p(this)},Cn.diff=function(t,e,n){var i,s,r;if(!this.isValid())return NaN;if(!(i=St(t,this)).isValid())return NaN;switch(s=6e4*(i.utcOffset()-this.utcOffset()),e=T(e)){case"year":r=Mt(this,i)/12;break;case"month":r=Mt(this,i);break;case"quarter":r=Mt(this,i)/3;break;case"second":r=(this-i)/1e3;break;case"minute":r=(this-i)/6e4;break;case"hour":r=(this-i)/36e5;break;case"day":r=(this-i-s)/864e5;break;case"week":r=(this-i-s)/6048e5;break;default:r=this-i}return n?r:m(r)},Cn.endOf=function(t){return void 0===(t=T(t))||"millisecond"===t?this:("date"===t&&(t="day"),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms"))},Cn.format=function(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=I(this,e);return this.localeData().postformat(n)},Cn.from=function(t,e){return this.isValid()&&(g(t)&&t.isValid()||vt(t).isValid())?Et({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Cn.fromNow=function(t){return this.from(vt(),t)},Cn.to=function(t,e){return this.isValid()&&(g(t)&&t.isValid()||vt(t).isValid())?Et({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Cn.toNow=function(t){return this.to(vt(),t)},Cn.get=function(t){return t=T(t),x(this[t])?this[t]():this},Cn.invalidAt=function(){return u(this).overflow},Cn.isAfter=function(t,e){var n=g(t)?t:vt(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=T(i(e)?"millisecond":e))?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())},Cn.isBefore=function(t,e){var n=g(t)?t:vt(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=T(i(e)?"millisecond":e))?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())},Cn.isBetween=function(t,e,n,i){return("("===(i=i||"()")[0]?this.isAfter(t,n):!this.isBefore(t,n))&&(")"===i[1]?this.isBefore(e,n):!this.isAfter(e,n))},Cn.isSame=function(t,e){var n,i=g(t)?t:vt(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=T(e||"millisecond"))?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))},Cn.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},Cn.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},Cn.isValid=function(){return d(this)},Cn.lang=yn,Cn.locale=Pt,Cn.localeData=Ot,Cn.max=un,Cn.min=cn,Cn.parsingFlags=function(){return l({},u(this))},Cn.set=function(t,e){if("object"==typeof t)for(var n=function(t){var e=[];for(var n in t)e.push({unit:n,priority:se[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}(t=D(t)),i=0;i<n.length;i++)this[n[i].unit](t[n[i].unit]);else if(t=T(t),x(this[t]))return this[t](e);return this},Cn.startOf=function(t){switch(t=T(t)){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"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this},Cn.subtract=mn,Cn.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},Cn.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},Cn.toDate=function(){return new Date(this.valueOf())},Cn.toISOString=function(){if(!this.isValid())return null;var t=this.clone().utc();return t.year()<0||t.year()>9999?I(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):x(Date.prototype.toISOString)?this.toDate().toISOString():I(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},Cn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s=e+'[")]';return this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+s)},Cn.toJSON=function(){return this.isValid()?this.toISOString():null},Cn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Cn.unix=function(){return Math.floor(this.valueOf()/1e3)},Cn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Cn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Cn.year=Le,Cn.isLeapYear=function(){return W(this.year())},Cn.weekYear=function(t){return Lt.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Cn.isoWeekYear=function(t){return Lt.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},Cn.quarter=Cn.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},Cn.month=V,Cn.daysInMonth=function(){return B(this.year(),this.month())},Cn.week=Cn.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},Cn.isoWeek=Cn.isoWeeks=function(t){var e=Z(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},Cn.weeksInYear=function(){var t=this.localeData()._week;return J(this.year(),t.dow,t.doy)},Cn.isoWeeksInYear=function(){return J(this.year(),1,4)},Cn.date=vn,Cn.day=Cn.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},Cn.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},Cn.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},Cn.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},Cn.hour=Cn.hours=Ke,Cn.minute=Cn.minutes=bn,Cn.second=Cn.seconds=_n,Cn.millisecond=Cn.milliseconds=xn,Cn.utcOffset=function(e,n,i){var s,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=kt(Ce,e)))return this}else Math.abs(e)<16&&!i&&(e*=60);return!this._isUTC&&n&&(s=Tt(this)),this._offset=e,this._isUTC=!0,null!=s&&this.add(s,"m"),r!==e&&(!n||this._changeInProgress?It(this,Et(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:Tt(this)},Cn.utc=function(t){return this.utcOffset(0,t)},Cn.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Tt(this),"m")),this},Cn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=kt(xe,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},Cn.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?vt(t).utcOffset():0,(this.utcOffset()-t)%60==0)},Cn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Cn.isLocal=function(){return!!this.isValid()&&!this._isUTC},Cn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Cn.isUtc=Dt,Cn.isUTC=Dt,Cn.zoneAbbr=function(){return this._isUTC?"UTC":""},Cn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Cn.dates=_("dates accessor is deprecated. Use date instead.",vn),Cn.months=_("months accessor is deprecated. Use month instead",V),Cn.years=_("years accessor is deprecated. Use year instead",Le),Cn.zone=_("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),Cn.isDSTShifted=_("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!i(this._isDSTShifted))return this._isDSTShifted;var t={};if(f(t,this),(t=mt(t))._a){var e=t._isUTC?c(t._a):vt(t._a);this._isDSTShifted=this.isValid()&&v(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var kn=k.prototype;kn.calendar=function(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return x(i)?i.call(e,n):i},kn.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},kn.invalidDate=function(){return this._invalidDate},kn.ordinal=function(t){return this._ordinal.replace("%d",t)},kn.preparse=Ft,kn.postformat=Ft,kn.relativeTime=function(t,e,n,i){var s=this._relativeTime[n];return x(s)?s(t,e,n,i):s.replace(/%d/i,t)},kn.pastFuture=function(t,e){var n=this._relativeTime[t>0?"future":"past"];return x(n)?n(e):n.replace(/%s/i,e)},kn.set=function(t){var e,n;for(n in t)x(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},kn.months=function(t,n){return t?e(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||je).test(n)?"format":"standalone"][t.month()]:e(this._months)?this._months:this._months.standalone},kn.monthsShort=function(t,n){return t?e(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[je.test(n)?"format":"standalone"][t.month()]:e(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},kn.monthsParse=function(t,e,n){var i,s,r;if(this._monthsParseExact)return function(t,e,n){var i,s,r,o=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)r=c([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(s=Re.call(this._shortMonthsParse,o))?s:null:-1!==(s=Re.call(this._longMonthsParse,o))?s:null:"MMM"===e?-1!==(s=Re.call(this._shortMonthsParse,o))?s:-1!==(s=Re.call(this._longMonthsParse,o))?s:null:-1!==(s=Re.call(this._longMonthsParse,o))?s:-1!==(s=Re.call(this._shortMonthsParse,o))?s:null}.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(s=c([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(r="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[i]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},kn.monthsRegex=function(t){return this._monthsParseExact?(a(this,"_monthsRegex")||G.call(this),t?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=Ye),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},kn.monthsShortRegex=function(t){return this._monthsParseExact?(a(this,"_monthsRegex")||G.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=We),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},kn.week=function(t){return Z(t,this._week.dow,this._week.doy).week},kn.firstDayOfYear=function(){return this._week.doy},kn.firstDayOfWeek=function(){return this._week.dow},kn.weekdays=function(t,n){return t?e(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(n)?"format":"standalone"][t.day()]:e(this._weekdays)?this._weekdays:this._weekdays.standalone},kn.weekdaysMin=function(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin},kn.weekdaysShort=function(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort},kn.weekdaysParse=function(t,e,n){var i,s,r;if(this._weekdaysParseExact)return function(t,e,n){var i,s,r,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=c([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(s=Re.call(this._weekdaysParse,o))?s:null:"ddd"===e?-1!==(s=Re.call(this._shortWeekdaysParse,o))?s:null:-1!==(s=Re.call(this._minWeekdaysParse,o))?s:null:"dddd"===e?-1!==(s=Re.call(this._weekdaysParse,o))?s:-1!==(s=Re.call(this._shortWeekdaysParse,o))?s:-1!==(s=Re.call(this._minWeekdaysParse,o))?s:null:"ddd"===e?-1!==(s=Re.call(this._shortWeekdaysParse,o))?s:-1!==(s=Re.call(this._weekdaysParse,o))?s:-1!==(s=Re.call(this._minWeekdaysParse,o))?s:null:-1!==(s=Re.call(this._minWeekdaysParse,o))?s:-1!==(s=Re.call(this._weekdaysParse,o))?s:-1!==(s=Re.call(this._shortWeekdaysParse,o))?s:null}.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(s=c([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(s,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(s,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(s,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},kn.weekdaysRegex=function(t){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||tt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=Ue),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},kn.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||tt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ve),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},kn.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||tt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ge),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},kn.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},kn.meridiem=function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},ot("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===y(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),t.lang=_("moment.lang is deprecated. Use moment.locale instead.",ot),t.langData=_("moment.langData is deprecated. Use moment.localeData instead.",lt);var Sn=Math.abs,Tn=Vt("ms"),Dn=Vt("s"),En=Vt("m"),$n=Vt("h"),Nn=Vt("d"),An=Vt("w"),In=Vt("M"),Mn=Vt("y"),Pn=Gt("milliseconds"),On=Gt("seconds"),Rn=Gt("minutes"),Ln=Gt("hours"),jn=Gt("days"),Fn=Gt("months"),Hn=Gt("years"),Wn=Math.round,Yn={ss:44,s:45,m:45,h:22,d:26,M:11},qn=Math.abs,zn=_t.prototype;return zn.isValid=function(){return this._isValid},zn.abs=function(){var t=this._data;return this._milliseconds=Sn(this._milliseconds),this._days=Sn(this._days),this._months=Sn(this._months),t.milliseconds=Sn(t.milliseconds),t.seconds=Sn(t.seconds),t.minutes=Sn(t.minutes),t.hours=Sn(t.hours),t.months=Sn(t.months),t.years=Sn(t.years),this},zn.add=function(t,e){return qt(this,t,e,1)},zn.subtract=function(t,e){return qt(this,t,e,-1)},zn.as=function(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=T(t))||"year"===t)return e=this._days+i/864e5,n=this._months+Bt(e),"month"===t?n:n/12;switch(e=this._days+Math.round(Ut(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},zn.asMilliseconds=Tn,zn.asSeconds=Dn,zn.asMinutes=En,zn.asHours=$n,zn.asDays=Nn,zn.asWeeks=An,zn.asMonths=In,zn.asYears=Mn,zn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*y(this._months/12):NaN},zn._bubble=function(){var t,e,n,i,s,r=this._milliseconds,o=this._days,a=this._months,l=this._data;return r>=0&&o>=0&&a>=0||r<=0&&o<=0&&a<=0||(r+=864e5*zt(Ut(a)+o),o=0,a=0),l.milliseconds=r%1e3,t=m(r/1e3),l.seconds=t%60,e=m(t/60),l.minutes=e%60,n=m(e/60),l.hours=n%24,o+=m(n/24),s=m(Bt(o)),a+=s,o-=zt(Ut(s)),i=m(a/12),a%=12,l.days=o,l.months=a,l.years=i,this},zn.clone=function(){return Et(this)},zn.get=function(t){return t=T(t),this.isValid()?this[t+"s"]():NaN},zn.milliseconds=Pn,zn.seconds=On,zn.minutes=Rn,zn.hours=Ln,zn.days=jn,zn.weeks=function(){return m(this.days()/7)},zn.months=Fn,zn.years=Hn,zn.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=function(t,e,n){var i=Et(t).abs(),s=Wn(i.as("s")),r=Wn(i.as("m")),o=Wn(i.as("h")),a=Wn(i.as("d")),l=Wn(i.as("M")),c=Wn(i.as("y")),u=s<=Yn.ss&&["s",s]||s<Yn.s&&["ss",s]||r<=1&&["m"]||r<Yn.m&&["mm",r]||o<=1&&["h"]||o<Yn.h&&["hh",o]||a<=1&&["d"]||a<Yn.d&&["dd",a]||l<=1&&["M"]||l<Yn.M&&["MM",l]||c<=1&&["y"]||["yy",c];return u[2]=e,u[3]=+t>0,u[4]=n,function(t,e,n,i,s){return s.relativeTime(e||1,!!n,t,i)}.apply(null,u)}(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)},zn.toISOString=Kt,zn.toString=Kt,zn.toJSON=Kt,zn.locale=Pt,zn.localeData=Ot,zn.toIsoString=_("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Kt),zn.lang=yn,N("X",0,0,"unix"),N("x",0,0,"valueOf"),P("x",we),P("X",/[+-]?\d+(\.\d{1,3})?/),L("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),L("x",function(t,e,n){n._d=new Date(y(t))}),t.version="2.19.2",function(t){Xt=t}(vt),t.fn=Cn,t.min=function(){return bt("isBefore",[].slice.call(arguments,0))},t.max=function(){return bt("isAfter",[].slice.call(arguments,0))},t.now=function(){return Date.now?Date.now():+new Date},t.utc=c,t.unix=function(t){return vt(1e3*t)},t.months=function(t,e){return Wt(t,e,"months")},t.isDate=r,t.locale=ot,t.invalid=h,t.duration=Et,t.isMoment=g,t.weekdays=function(t,e,n){return Yt(t,e,n,"weekdays")},t.parseZone=function(){return vt.apply(null,arguments).parseZone()},t.localeData=lt,t.isDuration=wt,t.monthsShort=function(t,e){return Wt(t,e,"monthsShort")},t.weekdaysMin=function(t,e,n){return Yt(t,e,n,"weekdaysMin")},t.defineLocale=at,t.updateLocale=function(t,e){if(null!=e){var n,i,s=Xe;null!=(i=rt(t))&&(s=i._config),(n=new k(e=C(s,e))).parentLocale=Ze[t],Ze[t]=n,ot(t)}else null!=Ze[t]&&(null!=Ze[t].parentLocale?Ze[t]=Ze[t].parentLocale:null!=Ze[t]&&delete Ze[t]);return Ze[t]},t.locales=function(){return ne(Ze)},t.weekdaysShort=function(t,e,n){return Yt(t,e,n,"weekdaysShort")},t.normalizeUnits=T,t.relativeTimeRounding=function(t){return void 0===t?Wn:"function"==typeof t&&(Wn=t,!0)},t.relativeTimeThreshold=function(t,e){return void 0!==Yn[t]&&(void 0===e?Yn[t]:(Yn[t]=e,"s"===t&&(Yn.ss=e-1),!0))},t.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},t.prototype=Cn,t}),function(t,e){"use strict";var n;if("object"==typeof exports){try{n=require("moment")}catch(t){}module.exports=e(n)}else"function"==typeof define&&define.amd?define(function(t){try{n=t("moment")}catch(t){}return e(n)}):t.Pikaday=e(t.moment)}(this,function(t){"use strict";var e="function"==typeof t,n=!!window.addEventListener,i=window.document,s=window.setTimeout,r=function(t,e,i,s){n?t.addEventListener(e,i,!!s):t.attachEvent("on"+e,i)},o=function(t,e,i,s){n?t.removeEventListener(e,i,!!s):t.detachEvent("on"+e,i)},a=function(t,e){return-1!==(" "+t.className+" ").indexOf(" "+e+" ")},l=function(t){return/Array/.test(Object.prototype.toString.call(t))},c=function(t){return/Date/.test(Object.prototype.toString.call(t))&&!isNaN(t.getTime())},u=function(t){var e=t.getDay();return 0===e||6===e},d=function(t,e){return[31,function(t){return t%4==0&&t%100!=0||t%400==0}(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]},h=function(t){c(t)&&t.setHours(0,0,0,0)},f=function(t,e){return t.getTime()===e.getTime()},p=function(t,e,n){var i,s;for(i in e)(s=void 0!==t[i])&&"object"==typeof e[i]&&null!==e[i]&&void 0===e[i].nodeName?c(e[i])?n&&(t[i]=new Date(e[i].getTime())):l(e[i])?n&&(t[i]=e[i].slice(0)):t[i]=p({},e[i],n):!n&&s||(t[i]=e[i]);return t},g=function(t,e,n){var s;i.createEvent?((s=i.createEvent("HTMLEvents")).initEvent(e,!0,!1),s=p(s,n),t.dispatchEvent(s)):i.createEventObject&&(s=i.createEventObject(),s=p(s,n),t.fireEvent("on"+e,s))},m=function(t){return t.month<0&&(t.year-=Math.ceil(Math.abs(t.month)/12),t.month+=12),t.month>11&&(t.year+=Math.floor(Math.abs(t.month)/12),t.month-=12),t},y={field:null,bound:void 0,position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null},v=function(t,e,n){for(e+=t.firstDay;e>=7;)e-=7;return n?t.i18n.weekdaysShort[e]:t.i18n.weekdays[e]},b=function(t){var e=[],n="false";if(t.isEmpty){if(!t.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';e.push("is-outside-current-month"),t.enableSelectionDaysInNextAndPreviousMonths||e.push("is-selection-disabled")}return t.isDisabled&&e.push("is-disabled"),t.isToday&&e.push("is-today"),t.isSelected&&(e.push("is-selected"),n="true"),t.hasEvent&&e.push("has-event"),t.isInRange&&e.push("is-inrange"),t.isStartRange&&e.push("is-startrange"),t.isEndRange&&e.push("is-endrange"),'<td data-day="'+t.day+'" class="'+e.join(" ")+'" aria-selected="'+n+'"><button class="pika-button pika-day" type="button" data-pika-year="'+t.year+'" data-pika-month="'+t.month+'" data-pika-day="'+t.day+'">'+t.day+"</button></td>"},_=function(t,e,n){var i=new Date(n,0,1);return'<td class="pika-week">'+Math.ceil(((new Date(n,e,t)-i)/864e5+i.getDay()+1)/7)+"</td>"},w=function(t,e,n,i){return'<tr class="pika-row'+(n?" pick-whole-week":"")+(i?" is-selected":"")+'">'+(e?t.reverse():t).join("")+"</tr>"},x=function(t,e,n,i,s,r){var o,a,c,u,d,h=t._o,f=n===h.minYear,p=n===h.maxYear,g='<div id="'+r+'" class="pika-title" role="heading" aria-live="assertive">',m=!0,y=!0;for(c=[],o=0;o<12;o++)c.push('<option value="'+(n===s?o-e:12+o-e)+'"'+(o===i?' selected="selected"':"")+(f&&o<h.minMonth||p&&o>h.maxMonth?'disabled="disabled"':"")+">"+h.i18n.months[o]+"</option>");for(u='<div class="pika-label">'+h.i18n.months[i]+'<select class="pika-select pika-select-month" tabindex="-1">'+c.join("")+"</select></div>",l(h.yearRange)?(o=h.yearRange[0],a=h.yearRange[1]+1):(o=n-h.yearRange,a=1+n+h.yearRange),c=[];o<a&&o<=h.maxYear;o++)o>=h.minYear&&c.push('<option value="'+o+'"'+(o===n?' selected="selected"':"")+">"+o+"</option>");return d='<div class="pika-label">'+n+h.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+c.join("")+"</select></div>",h.showMonthAfterYear?g+=d+u:g+=u+d,f&&(0===i||h.minMonth>=i)&&(m=!1),p&&(11===i||h.maxMonth<=i)&&(y=!1),0===e&&(g+='<button class="pika-prev'+(m?"":" is-disabled")+'" type="button">'+h.i18n.previousMonth+"</button>"),e===t._o.numberOfMonths-1&&(g+='<button class="pika-next'+(y?"":" is-disabled")+'" type="button">'+h.i18n.nextMonth+"</button>"),g+="</div>"},C=function(t,e,n){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+n+'">'+function(t){var e,n=[];for(t.showWeekNumber&&n.push("<th></th>"),e=0;e<7;e++)n.push('<th scope="col"><abbr title="'+v(t,e)+'">'+v(t,e,!0)+"</abbr></th>");return"<thead><tr>"+(t.isRTL?n.reverse():n).join("")+"</tr></thead>"}(t)+function(t){return"<tbody>"+t.join("")+"</tbody>"}(e)+"</table>"},k=function(o){var l=this,u=l.config(o);l._onMouseDown=function(t){if(l._v){var e=(t=t||window.event).target||t.srcElement;if(e)if(a(e,"is-disabled")||(!a(e,"pika-button")||a(e,"is-empty")||a(e.parentNode,"is-disabled")?a(e,"pika-prev")?l.prevMonth():a(e,"pika-next")&&l.nextMonth():(l.setDate(new Date(e.getAttribute("data-pika-year"),e.getAttribute("data-pika-month"),e.getAttribute("data-pika-day"))),u.bound&&s(function(){l.hide(),u.blurFieldOnSelect&&u.field&&u.field.blur()},100))),a(e,"pika-select"))l._c=!0;else{if(!t.preventDefault)return t.returnValue=!1,!1;t.preventDefault()}}},l._onChange=function(t){var e=(t=t||window.event).target||t.srcElement;e&&(a(e,"pika-select-month")?l.gotoMonth(e.value):a(e,"pika-select-year")&&l.gotoYear(e.value))},l._onKeyChange=function(t){if(t=t||window.event,l.isVisible())switch(t.keyCode){case 13:case 27:u.field&&u.field.blur();break;case 37:t.preventDefault(),l.adjustDate("subtract",1);break;case 38:l.adjustDate("subtract",7);break;case 39:l.adjustDate("add",1);break;case 40:l.adjustDate("add",7)}},l._onInputChange=function(n){var i;n.firedBy!==l&&(i=u.parse?u.parse(u.field.value,u.format):e?(i=t(u.field.value,u.format,u.formatStrict))&&i.isValid()?i.toDate():null:new Date(Date.parse(u.field.value)),c(i)&&l.setDate(i),l._v||l.show())},l._onInputFocus=function(){l.show()},l._onInputClick=function(){l.show()},l._onInputBlur=function(){var t=i.activeElement;do{if(a(t,"pika-single"))return}while(t=t.parentNode);l._c||(l._b=s(function(){l.hide()},50)),l._c=!1},l._onClick=function(t){var e=(t=t||window.event).target||t.srcElement,i=e;if(e){!n&&a(e,"pika-select")&&(e.onchange||(e.setAttribute("onchange","return;"),r(e,"change",l._onChange)));do{if(a(i,"pika-single")||i===u.trigger)return}while(i=i.parentNode);l._v&&e!==u.trigger&&i!==u.trigger&&l.hide()}},l.el=i.createElement("div"),l.el.className="pika-single"+(u.isRTL?" is-rtl":"")+(u.theme?" "+u.theme:""),r(l.el,"mousedown",l._onMouseDown,!0),r(l.el,"touchend",l._onMouseDown,!0),r(l.el,"change",l._onChange),r(i,"keydown",l._onKeyChange),u.field&&(u.container?u.container.appendChild(l.el):u.bound?i.body.appendChild(l.el):u.field.parentNode.insertBefore(l.el,u.field.nextSibling),r(u.field,"change",l._onInputChange),u.defaultDate||(e&&u.field.value?u.defaultDate=t(u.field.value,u.format).toDate():u.defaultDate=new Date(Date.parse(u.field.value)),u.setDefaultDate=!0));var d=u.defaultDate;c(d)?u.setDefaultDate?l.setDate(d,!0):l.gotoDate(d):l.gotoDate(new Date),u.bound?(this.hide(),l.el.className+=" is-bound",r(u.trigger,"click",l._onInputClick),r(u.trigger,"focus",l._onInputFocus),r(u.trigger,"blur",l._onInputBlur)):this.show()};return k.prototype={config:function(t){this._o||(this._o=p({},y,!0));var e=p(this._o,t,!0);e.isRTL=!!e.isRTL,e.field=e.field&&e.field.nodeName?e.field:null,e.theme="string"==typeof e.theme&&e.theme?e.theme:null,e.bound=!!(void 0!==e.bound?e.field&&e.bound:e.field),e.trigger=e.trigger&&e.trigger.nodeName?e.trigger:e.field,e.disableWeekends=!!e.disableWeekends,e.disableDayFn="function"==typeof e.disableDayFn?e.disableDayFn:null;var n=parseInt(e.numberOfMonths,10)||1;if(e.numberOfMonths=n>4?4:n,c(e.minDate)||(e.minDate=!1),c(e.maxDate)||(e.maxDate=!1),e.minDate&&e.maxDate&&e.maxDate<e.minDate&&(e.maxDate=e.minDate=!1),e.minDate&&this.setMinDate(e.minDate),e.maxDate&&this.setMaxDate(e.maxDate),l(e.yearRange)){var i=(new Date).getFullYear()-10;e.yearRange[0]=parseInt(e.yearRange[0],10)||i,e.yearRange[1]=parseInt(e.yearRange[1],10)||i}else e.yearRange=Math.abs(parseInt(e.yearRange,10))||y.yearRange,e.yearRange>100&&(e.yearRange=100);return e},toString:function(n){return n=n||this._o.format,c(this._d)?this._o.toString?this._o.toString(this._d,n):e?t(this._d).format(n):this._d.toDateString():""},getMoment:function(){return e?t(this._d):null},setMoment:function(n,i){e&&t.isMoment(n)&&this.setDate(n.toDate(),i)},getDate:function(){return c(this._d)?new Date(this._d.getTime()):null},setDate:function(t,e){if(!t)return this._d=null,this._o.field&&(this._o.field.value="",g(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof t&&(t=new Date(Date.parse(t))),c(t)){var n=this._o.minDate,i=this._o.maxDate;c(n)&&t<n?t=n:c(i)&&t>i&&(t=i),this._d=new Date(t.getTime()),h(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),g(this._o.field,"change",{firedBy:this})),e||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(t){var e=!0;if(c(t)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),i=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),s=t.getTime();i.setMonth(i.getMonth()+1),i.setDate(i.getDate()-1),e=s<n.getTime()||i.getTime()<s}e&&(this.calendars=[{month:t.getMonth(),year:t.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(t,e){var n,i=this.getDate()||new Date,s=24*parseInt(e)*60*60*1e3;"add"===t?n=new Date(i.valueOf()+s):"subtract"===t&&(n=new Date(i.valueOf()-s)),this.setDate(n)},adjustCalendars:function(){this.calendars[0]=m(this.calendars[0]);for(var t=1;t<this._o.numberOfMonths;t++)this.calendars[t]=m({month:this.calendars[0].month+t,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(t){isNaN(t)||(this.calendars[0].month=parseInt(t,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(t){isNaN(t)||(this.calendars[0].year=parseInt(t,10),this.adjustCalendars())},setMinDate:function(t){t instanceof Date?(h(t),this._o.minDate=t,this._o.minYear=t.getFullYear(),this._o.minMonth=t.getMonth()):(this._o.minDate=y.minDate,this._o.minYear=y.minYear,this._o.minMonth=y.minMonth,this._o.startRange=y.startRange),this.draw()},setMaxDate:function(t){t instanceof Date?(h(t),this._o.maxDate=t,this._o.maxYear=t.getFullYear(),this._o.maxMonth=t.getMonth()):(this._o.maxDate=y.maxDate,this._o.maxYear=y.maxYear,this._o.maxMonth=y.maxMonth,this._o.endRange=y.endRange),this.draw()},setStartRange:function(t){this._o.startRange=t},setEndRange:function(t){this._o.endRange=t},draw:function(t){if(this._v||t){var e,n=this._o,i=n.minYear,r=n.maxYear,o=n.minMonth,a=n.maxMonth,l="";this._y<=i&&(this._y=i,!isNaN(o)&&this._m<o&&(this._m=o)),this._y>=r&&(this._y=r,!isNaN(a)&&this._m>a&&(this._m=a)),e="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);for(var c=0;c<n.numberOfMonths;c++)l+='<div class="pika-lendar">'+x(this,c,this.calendars[c].year,this.calendars[c].month,this.calendars[0].year,e)+this.render(this.calendars[c].year,this.calendars[c].month,e)+"</div>";this.el.innerHTML=l,n.bound&&"hidden"!==n.field.type&&s(function(){n.trigger.focus()},1),"function"==typeof this._o.onDraw&&this._o.onDraw(this),n.bound&&n.field.setAttribute("aria-label","Use the arrow keys to pick a date")}},adjustPosition:function(){var t,e,n,s,r,o,a,l,c,u;if(!this._o.container){if(this.el.style.position="absolute",t=this._o.trigger,e=t,n=this.el.offsetWidth,s=this.el.offsetHeight,r=window.innerWidth||i.documentElement.clientWidth,o=window.innerHeight||i.documentElement.clientHeight,a=window.pageYOffset||i.body.scrollTop||i.documentElement.scrollTop,"function"==typeof t.getBoundingClientRect)l=(u=t.getBoundingClientRect()).left+window.pageXOffset,c=u.bottom+window.pageYOffset;else for(l=e.offsetLeft,c=e.offsetTop+e.offsetHeight;e=e.offsetParent;)l+=e.offsetLeft,c+=e.offsetTop;(this._o.reposition&&l+n>r||this._o.position.indexOf("right")>-1&&l-n+t.offsetWidth>0)&&(l=l-n+t.offsetWidth),(this._o.reposition&&c+s>o+a||this._o.position.indexOf("top")>-1&&c-s-t.offsetHeight>0)&&(c=c-s-t.offsetHeight),this.el.style.left=l+"px",this.el.style.top=c+"px"}},render:function(t,e,n){var i=this._o,s=new Date,r=d(t,e),o=new Date(t,e,1).getDay(),a=[],l=[];h(s),i.firstDay>0&&(o-=i.firstDay)<0&&(o+=7);for(var p=0===e?11:e-1,g=11===e?0:e+1,m=0===e?t-1:t,y=11===e?t+1:t,v=d(m,p),x=r+o,k=x;k>7;)k-=7;x+=7-k;for(var S=!1,T=0,D=0;T<x;T++){var E=new Date(t,e,T-o+1),$=!!c(this._d)&&f(E,this._d),N=f(E,s),A=-1!==i.events.indexOf(E.toDateString()),I=T<o||T>=r+o,M=T-o+1,P=e,O=t,R=i.startRange&&f(i.startRange,E),L=i.endRange&&f(i.endRange,E),j=i.startRange&&i.endRange&&i.startRange<E&&E<i.endRange,F=i.minDate&&E<i.minDate||i.maxDate&&E>i.maxDate||i.disableWeekends&&u(E)||i.disableDayFn&&i.disableDayFn(E);I&&(T<o?(M=v+M,P=p,O=m):(M-=r,P=g,O=y));var H={day:M,month:P,year:O,hasEvent:A,isSelected:$,isToday:N,isDisabled:F,isEmpty:I,isStartRange:R,isEndRange:L,isInRange:j,showDaysInNextAndPreviousMonths:i.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:i.enableSelectionDaysInNextAndPreviousMonths};i.pickWholeWeek&&$&&(S=!0),l.push(b(H)),7==++D&&(i.showWeekNumber&&l.unshift(_(T-o,e,t)),a.push(w(l,i.isRTL,i.pickWholeWeek,S)),l=[],D=0,S=!1)}return C(i,a,n)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),function(t,e){t.className=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}((" "+t.className+" ").replace(" "+e+" "," "))}(this.el,"is-hidden"),this._o.bound&&(r(i,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var t=this._v;!1!==t&&(this._o.bound&&o(i,"click",this._onClick),this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto",function(t,e){a(t,e)||(t.className=""===t.className?e:t.className+" "+e)}(this.el,"is-hidden"),this._v=!1,void 0!==t&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){this.hide(),o(this.el,"mousedown",this._onMouseDown,!0),o(this.el,"touchend",this._onMouseDown,!0),o(this.el,"change",this._onChange),o(i,"keydown",this._onKeyChange),this._o.field&&(o(this._o.field,"change",this._onInputChange),this._o.bound&&(o(this._o.trigger,"click",this._onInputClick),o(this._o.trigger,"focus",this._onInputFocus),o(this._o.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},k}); |