PageSourceSearch

https://www.brunoscontracting.com/fend/js/functions_js.asp?article_id=119

js brunoscontracting.com collected 2026-10-08 08:16:36 UTC 357,801 bytes, 3,295 lines download raw bytes

1
2/*!
3 * jQuery JavaScript Library v2.2.4
4 * http://jquery.com/
5 *
6 * Includes Sizzle.js
7 * http://sizzlejs.com/
8 *
9 * Copyright jQuery Foundation and other contributors
10 * Released under the MIT license
11 * http://jquery.org/license
12 *
13 * Date: 2016-05-20T17:23Z
14 */
15(function(n,t){typeof module=="object"&&typeof module.exports=="object"?module.exports=n.document?t(n,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}:t(n)})(typeof window!="undefined"?window:this,function(n,t){function ii(n){var t=!!n&&"length"in n&&n.length,r=i.type(n);return r==="function"||i.isWindow(n)?!1:r==="array"||t===0||typeof t=="number"&&t>0&&t-1 in n}function ri(n,t,r){if(i.isFunction(t))return i.grep(n,function(n,i){return!!t.call(n,i,n)!==r});if(t.nodeType)return i.grep(n,function(n){return n===t!==r});if(typeof t=="string"){if(bf.test(t))return i.filter(t,n,r);t=i.filter(t,n)}return i.grep(n,function(n){return lt.call(t,n)>-1!==r})}function hr(n,t){while((n=n[t])&&n.nodeType!==1);return n}function kf(n){var t={};return i.each(n.match(h)||[],function(n,i){t[i]=!0}),t}function yt(){u.removeEventListener("DOMContentLoaded",yt);n.removeEventListener("load",yt);i.ready()}function et(){this.expando=i.expando+et.uid++}function lr(n,t,r){var u;if(r===undefined&&n.nodeType===1)if(u="data-"+t.replace(cr,"-$&").toLowerCase(),r=n.getAttribute(u),typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==="null"?null:+r+""===r?+r:df.test(r)?i.parseJSON(r):r}catch(f){}e.set(n,t,r)}else r=undefined;return r}function vr(n,t,r,u){var h,e=1,l=20,c=u?function(){return u.cur()}:function(){return i.css(n,t,"")},s=c(),o=r&&r[3]||(i.cssNumber[t]?"":"px"),f=(i.cssNumber[t]||o!=="px"&&+s)&&ot.exec(i.css(n,t));if(f&&f[3]!==o){o=o||f[3];r=r||[];f=+s||1;do e=e||".5",f=f/e,i.style(n,t,f+o);while(e!==(e=c()/s)&&e!==1&&--l)}return r&&(f=+f||+s||0,h=r[1]?f+(r[1]+1)*r[2]:+r[2],u&&(u.unit=o,u.start=f,u.end=h)),h}function o(n,t){var r=typeof n.getElementsByTagName!="undefined"?n.getElementsByTagName(t||"*"):typeof n.querySelectorAll!="undefined"?n.querySelectorAll(t||"*"):[];return t===undefined||t&&i.nodeName(n,t)?i.merge([n],r):r}function ui(n,t){for(var i=0,u=n.length;i<u;i++)r.set(n[i],"globalEval",!t||r.get(t[i],"globalEval"))}function kr(n,t,r,u,f){for(var e,s,p,a,w,v,h=t.createDocumentFragment(),y=[],l=0,b=n.length;l<b;l++)if(e=n[l],e||e===0)if(i.type(e)==="object")i.merge(y,e.nodeType?[e]:e);else if(br.test(e)){for(s=s||h.appendChild(t.createElement("div")),p=(pr.exec(e)||["",""])[1].toLowerCase(),a=c[p]||c._default,s.innerHTML=a[1]+i.htmlPrefilter(e)+a[2],v=a[0];v--;)s=s.lastChild;i.merge(y,s.childNodes);s=h.firstChild;s.textContent=""}else y.push(t.createTextNode(e));for(h.textContent="",l=0;e=y[l++];){if(u&&i.inArray(e,u)>-1){f&&f.push(e);continue}if(w=i.contains(e.ownerDocument,e),s=o(h.appendChild(e),"script"),w&&ui(s),r)for(v=0;e=s[v++];)wr.test(e.type||"")&&r.push(e)}return h}function pt(){return!0}function nt(){return!1}function gr(){try{return u.activeElement}catch(n){}}function fi(n,t,r,u,f,e){var o,s;if(typeof t=="object"){typeof r!="string"&&(u=u||r,r=undefined);for(s in t)fi(n,s,r,u,t[s],e);return n}if(u==null&&f==null?(f=r,u=r=undefined):f==null&&(typeof r=="string"?(f=u,u=undefined):(f=u,u=r,r=undefined)),f===!1)f=nt;else if(!f)return n;return e===1&&(o=f,f=function(n){return i().off(n),o.apply(this,arguments)},f.guid=o.guid||(o.guid=i.guid++)),n.each(function(){i.event.add(this,t,f,u,r)})}function nu(n,t){return i.nodeName(n,"table")&&i.nodeName(t.nodeType!==11?t:t.firstChild,"tr")?n.getElementsByTagName("tbody")[0]||n.appendChild(n.ownerDocument.createElement("tbody")):n}function ee(n){return n.type=(n.getAttribute("type")!==null)+"/"+n.type,n}function oe(n){var t=ue.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function tu(n,t){var f,c,o,s,h,l,a,u;if(t.nodeType===1){if(r.hasData(n)&&(s=r.access(n),h=r.set(t,s),u=s.events,u)){delete h.handle;h.events={};for(o in u)for(f=0,c=u[o].length;f<c;f++)i.event.add(t,o,u[o][f])}e.hasData(n)&&(l=e.access(n),a=i.extend({},l),e.set(t,a))}}function se(n,t){var i=t.nodeName.toLowerCase();i==="input"&&yr.test(n.type)?t.checked=n.checked:(i==="input"||i==="textarea")&&(t.defaultValue=n.defaultValue)}function b(n,t,u,e){t=gi.apply([],t);var l,p,c,a,s,w,h=0,v=n.length,d=v-1,y=t[0],k=i.isFunction(y);if(k||v>1&&typeof y=="string"&&!f.checkClone&&re.test(y))return n.each(function(i){var r=n.eq(i);k&&(t[0]=y.call(this,i,r.html()));b(r,t,u,e)});if(v&&(l=kr(t,n[0].ownerDocument,!1,n,e),p=l.firstChild,l.childNodes.length===1&&(l=p),p||e)){for(c=i.map(o(l,"script"),ee),a=c.length;h<v;h++)s=l,h!==d&&(s=i.clone(s,!0,!0),a&&i.merge(c,o(s,"script"))),u.call(n[h],s,h);if(a)for(w=c[c.length-1].ownerDocument,i.map(c,oe),h=0;h<a;h++)s=c[h],wr.test(s.type||"")&&!r.access(s,"globalEval")&&i.contains(w,s)&&(s.src?i._evalUrl&&i._evalUrl(s.src):i.globalEval(s.textContent.replace(fe,"")))}return n}function iu(n,t,r){for(var u,e=t?i.filter(t,n):n,f=0;(u=e[f])!=null;f++)r||u.nodeType!==1||i.cleanData(o(u)),u.parentNode&&(r&&i.contains(u.ownerDocument,u)&&ui(o(u,"script")),u.parentNode.removeChild(u));return n}function ru(n,t){var r=i(t.createElement(n)).appendTo(t.body),u=i.css(r[0],"display");return r.detach(),u}function oi(n){var r=u,t=ei[n];return t||(t=ru(n,r),t!=="none"&&t||(wt=(wt||i("<iframe frameborder='0' width='0' height='0'/>")).appendTo(r.documentElement),r=wt[0].contentDocument,r.write(),r.close(),t=ru(n,r),wt.detach()),ei[n]=t),t}function tt(n,t,r){var o,s,h,u,e=n.style;return r=r||bt(n),u=r?r.getPropertyValue(t)||r[t]:undefined,u!==""&&u!==undefined||i.contains(n.ownerDocument,n)||(u=i.style(n,t)),r&&!f.pixelMarginRight()&&si.test(u)&&uu.test(t)&&(o=e.width,s=e.minWidth,h=e.maxWidth,e.minWidth=e.maxWidth=e.width=u,u=r.width,e.width=o,e.minWidth=s,e.maxWidth=h),u!==undefined?u+"":u}function ci(n,t){return{get:function(){if(n()){delete this.get;return}return(this.get=t).apply(this,arguments)}}}function su(n){if(n in ou)return n;for(var i=n[0].toUpperCase()+n.slice(1),t=eu.length;t--;)if(n=eu[t]+i,n in ou)return n}function hu(n,t,i){var r=ot.exec(t);return r?Math.max(0,r[2]-(i||0))+(r[3]||"px"):t}function cu(n,t,r,u,f){for(var e=r===(u?"border":"content")?4:t==="width"?1:0,o=0;e<4;e+=2)r==="margin"&&(o+=i.css(n,r+w[e],!0,f)),u?(r==="content"&&(o-=i.css(n,"padding"+w[e],!0,f)),r!=="margin"&&(o-=i.css(n,"border"+w[e]+"Width",!0,f))):(o+=i.css(n,"padding"+w[e],!0,f),r!=="padding"&&(o+=i.css(n,"border"+w[e]+"Width",!0,f)));return o}function lu(n,t,r){var o=!0,u=t==="width"?n.offsetWidth:n.offsetHeight,e=bt(n),s=i.css(n,"boxSizing",!1,e)==="border-box";if(u<=0||u==null){if(u=tt(n,t,e),(u<0||u==null)&&(u=n.style[t]),si.test(u))return u;o=s&&(f.boxSizingReliable()||u===n.style[t]);u=parseFloat(u)||0}return u+cu(n,t,r||(s?"border":"content"),o,e)+"px"}function au(n,t){for(var e,u,s,o=[],f=0,h=n.length;f<h;f++)(u=n[f],u.style)&&(o[f]=r.get(u,"olddisplay"),e=u.style.display,t?(o[f]||e!=="none"||(u.style.display=""),u.style.display===""&&st(u)&&(o[f]=r.access(u,"olddisplay",oi(u.nodeName)))):(s=st(u),e==="none"&&s||r.set(u,"olddisplay",s?e:i.css(u,"display"))));for(f=0;f<h;f++)(u=n[f],u.style)&&(t&&u.style.display!=="none"&&u.style.display!==""||(u.style.display=t?o[f]||"":"none"));return n}function s(n,t,i,r,u){return new s.prototype.init(n,t,i,r,u)}function pu(){return n.setTimeout(function(){it=undefined}),it=i.now()}function dt(n,t){var r,u=0,i={height:n};for(t=t?1:0;u<4;u+=2-t)r=w[u],i["margin"+r]=i["padding"+r]=n;
15return t&&(i.opacity=i.width=n),i}function wu(n,t,i){for(var u,f=(l.tweeners[t]||[]).concat(l.tweeners["*"]),r=0,e=f.length;r<e;r++)if(u=f[r].call(i,t,n))return u}function le(n,t,u){var f,a,p,v,o,w,h,b,l=this,y={},s=n.style,c=n.nodeType&&st(n),e=r.get(n,"fxshow");u.queue||(o=i._queueHooks(n,"fx"),o.unqueued==null&&(o.unqueued=0,w=o.empty.fire,o.empty.fire=function(){o.unqueued||w()}),o.unqueued++,l.always(function(){l.always(function(){o.unqueued--;i.queue(n,"fx").length||o.empty.fire()})}));n.nodeType===1&&("height"in t||"width"in t)&&(u.overflow=[s.overflow,s.overflowX,s.overflowY],h=i.css(n,"display"),b=h==="none"?r.get(n,"olddisplay")||oi(n.nodeName):h,b==="inline"&&i.css(n,"float")==="none"&&(s.display="inline-block"));u.overflow&&(s.overflow="hidden",l.always(function(){s.overflow=u.overflow[0];s.overflowX=u.overflow[1];s.overflowY=u.overflow[2]}));for(f in t)if(a=t[f],vu.exec(a)){if(delete t[f],p=p||a==="toggle",a===(c?"hide":"show"))if(a==="show"&&e&&e[f]!==undefined)c=!0;else continue;y[f]=e&&e[f]||i.style(n,f)}else h=undefined;if(i.isEmptyObject(y))(h==="none"?oi(n.nodeName):h)==="inline"&&(s.display=h);else{e?"hidden"in e&&(c=e.hidden):e=r.access(n,"fxshow",{});p&&(e.hidden=!c);c?i(n).show():l.done(function(){i(n).hide()});l.done(function(){var t;r.remove(n,"fxshow");for(t in y)i.style(n,t,y[t])});for(f in y)v=wu(c?e[f]:0,f,l),f in e||(e[f]=v.start,c&&(v.end=v.start,v.start=f==="width"||f==="height"?1:0))}}function ae(n,t){var r,f,e,u,o;for(r in n)if(f=i.camelCase(r),e=t[f],u=n[r],i.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),o=i.cssHooks[f],o&&"expand"in o){u=o.expand(u);delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function l(n,t,r){var f,o,s=0,a=l.prefilters.length,e=i.Deferred().always(function(){delete c.elem}),c=function(){if(o)return!1;for(var s=it||pu(),t=Math.max(0,u.startTime+u.duration-s),h=t/u.duration||0,i=1-h,r=0,f=u.tweens.length;r<f;r++)u.tweens[r].run(i);return e.notifyWith(n,[u,i,t]),i<1&&f?t:(e.resolveWith(n,[u]),!1)},u=e.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{},easing:i.easing._default},r),originalProperties:t,originalOptions:r,startTime:it||pu(),duration:r.duration,tweens:[],createTween:function(t,r){var f=i.Tween(n,u.opts,t,r,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(f),f},stop:function(t){var i=0,r=t?u.tweens.length:0;if(o)return this;for(o=!0;i<r;i++)u.tweens[i].run(1);return t?(e.notifyWith(n,[u,1,0]),e.resolveWith(n,[u,t])):e.rejectWith(n,[u,t]),this}}),h=u.props;for(ae(h,u.opts.specialEasing);s<a;s++)if(f=l.prefilters[s].call(u,n,h,u.opts),f)return i.isFunction(f.stop)&&(i._queueHooks(u.elem,u.opts.queue).stop=i.proxy(f.stop,f)),f;return i.map(h,wu,u),i.isFunction(u.opts.start)&&u.opts.start.call(n,u),i.fx.timer(i.extend(c,{elem:n,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function k(n){return n.getAttribute&&n.getAttribute("class")||""}function ff(n){return function(t,r){typeof t!="string"&&(r=t,t="*");var u,f=0,e=t.toLowerCase().match(h)||[];if(i.isFunction(r))while(u=e[f++])u[0]==="+"?(u=u.slice(1)||"*",(n[u]=n[u]||[]).unshift(r)):(n[u]=n[u]||[]).push(r)}}function ef(n,t,r,u){function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);if(typeof s!="string"||o||f[s]){if(o)return!(h=s)}else return t.dataTypes.unshift(s),e(s),!1}),h}var f={},o=n===yi;return e(t.dataTypes[0])||!f["*"]&&e("*")}function wi(n,t){var r,u,f=i.ajaxSettings.flatOptions||{};for(r in t)t[r]!==undefined&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}function be(n,t,i){for(var e,u,f,o,s=n.contents,r=n.dataTypes;r[0]==="*";)r.shift(),e===undefined&&(e=n.mimeType||t.getResponseHeader("Content-Type"));if(e)for(u in s)if(s[u]&&s[u].test(e)){r.unshift(u);break}if(r[0]in i)f=r[0];else{for(u in i){if(!r[0]||n.converters[u+" "+r[0]]){f=u;break}o||(o=u)}f=f||o}if(f)return f!==r[0]&&r.unshift(f),i[f]}function ke(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift(),u)if(u==="*")u=e;else if(e!=="*"&&e!==u){if(f=o[e+" "+u]||o["* "+u],!f)for(h in o)if(s=h.split(" "),s[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]],f)){f===!0?f=o[h]:o[h]!==!0&&(u=s[0],c.unshift(s[1]));break}if(f!==!0)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(l){return{state:"parsererror",error:f?l:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}function bi(n,t,r,u){var f;if(i.isArray(t))i.each(t,function(t,i){r||ge.test(n)?u(n,i):bi(n+"["+(typeof i=="object"&&i!=null?t:"")+"]",i,r,u)});else if(r||i.type(t)!=="object")u(n,t);else for(f in t)bi(n+"["+f+"]",t[f],r,u)}function hf(n){return i.isWindow(n)?n:n.nodeType===9&&n.defaultView}
15var y=[],u=n.document,v=y.slice,gi=y.concat,ti=y.push,lt=y.indexOf,at={},af=at.toString,ft=at.hasOwnProperty,f={},nr="2.2.4",i=function(n,t){return new i.fn.init(n,t)},vf=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,yf=/^-ms-/,pf=/-([\da-z])/gi,wf=function(n,t){return t.toUpperCase()},p,ur,fr,er,or,sr,h,vt,a,g,br,wt,ei,it,kt,vu,yu,bu,rt,ku,du,gt,gu,nf,li,sf,ut,ki,ni,di,cf,lf;i.fn=i.prototype={jquery:nr,constructor:i,selector:"",length:0,toArray:function(){return v.call(this)},get:function(n){return n!=null?n<0?this[n+this.length]:this[n]:v.call(this)},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t.context=this.context,t},each:function(n){return i.each(this,n)},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(v.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(n<0?i:0);return this.pushStack(t>=0&&t<i?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:ti,sort:y.sort,splice:y.splice};i.extend=i.fn.extend=function(){var e,f,r,t,o,s,n=arguments[0]||{},u=1,c=arguments.length,h=!1;for(typeof n=="boolean"&&(h=n,n=arguments[u]||{},u++),typeof n=="object"||i.isFunction(n)||(n={}),u===c&&(n=this,u--);u<c;u++)if((e=arguments[u])!=null)for(f in e)(r=n[f],t=e[f],n!==t)&&(h&&t&&(i.isPlainObject(t)||(o=i.isArray(t)))?(o?(o=!1,s=r&&i.isArray(r)?r:[]):s=r&&i.isPlainObject(r)?r:{},n[f]=i.extend(h,s,t)):t!==undefined&&(n[f]=t));return n};i.extend({expando:"jQuery"+(nr+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isFunction:function(n){return i.type(n)==="function"},isArray:Array.isArray,isWindow:function(n){return n!=null&&n===n.window},isNumeric:function(n){var t=n&&n.toString();return!i.isArray(n)&&t-parseFloat(t)+1>=0},isPlainObject:function(n){var t;if(i.type(n)!=="object"||n.nodeType||i.isWindow(n)||n.constructor&&!ft.call(n,"constructor")&&!ft.call(n.constructor.prototype||{},"isPrototypeOf"))return!1;for(t in n);return t===undefined||ft.call(n,t)},isEmptyObject:function(n){for(var t in n)return!1;return!0},type:function(n){return n==null?n+"":typeof n=="object"||typeof n=="function"?at[af.call(n)]||"object":typeof n},globalEval:function(n){var t,r=eval;n=i.trim(n);n&&(n.indexOf("use strict")===1?(t=u.createElement("script"),t.text=n,u.head.appendChild(t).parentNode.removeChild(t)):r(n))},camelCase:function(n){return n.replace(yf,"ms-").replace(pf,wf)},nodeName:function(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()},each:function(n,t){var r,i=0;if(ii(n)){for(r=n.length;i<r;i++)if(t.call(n[i],i,n[i])===!1)break}else for(i in n)if(t.call(n[i],i,n[i])===!1)break;return n},trim:function(n){return n==null?"":(n+"").replace(vf,"")},makeArray:function(n,t){var r=t||[];return n!=null&&(ii(Object(n))?i.merge(r,typeof n=="string"?[n]:n):ti.call(r,n)),r},inArray:function(n,t,i){return t==null?-1:lt.call(t,n,i)},merge:function(n,t){for(var u=+t.length,i=0,r=n.length;i<u;i++)n[r++]=t[i];return n.length=r,n},grep:function(n,t,i){for(var u,f=[],r=0,e=n.length,o=!i;r<e;r++)u=!t(n[r],r),u!==o&&f.push(n[r]);return f},map:function(n,t,i){var e,u,r=0,f=[];if(ii(n))for(e=n.length;r<e;r++)u=t(n[r],r,i),u!=null&&f.push(u);else for(r in n)u=t(n[r],r,i),u!=null&&f.push(u);return gi.apply([],f)},guid:1,proxy:function(n,t){var u,f,r;return(typeof t=="string"&&(u=n[t],t=n,n=u),!i.isFunction(n))?undefined:(f=v.call(arguments,2),r=function(){return n.apply(t||this,f.concat(v.call(arguments)))},r.guid=n.guid=n.guid||i.guid++,r)},now:Date.now,support:f});typeof Symbol=="function"&&(i.fn[Symbol.iterator]=y[Symbol.iterator]);i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){at["[object "+t+"]"]=t.toLowerCase()});p=function(n){function u(n,t,r,u){var l,w,a,s,nt,d,y,g,p=t&&t.ownerDocument,v=t?t.nodeType:9;if(r=r||[],typeof n!="string"||!n||v!==1&&v!==9&&v!==11)return r;if(!u&&((t?t.ownerDocument||t:c)!==i&&b(t),t=t||i,h)){if(v!==11&&(d=sr.exec(n)))if(l=d[1]){if
15(v===9)if(a=t.getElementById(l)){if(a.id===l)return r.push(a),r}else return r;else if(p&&(a=p.getElementById(l))&&et(t,a)&&a.id===l)return r.push(a),r}else{if(d[2])return k.apply(r,t.getElementsByTagName(n)),r;if((l=d[3])&&f.getElementsByClassName&&t.getElementsByClassName)return k.apply(r,t.getElementsByClassName(l)),r}if(f.qsa&&!lt[n+" "]&&(!o||!o.test(n))){if(v!==1)p=t,g=n;else if(t.nodeName.toLowerCase()!=="object"){for((s=t.getAttribute("id"))?s=s.replace(hr,"\\$&"):t.setAttribute("id",s=e),y=ft(n),w=y.length,nt=yi.test(s)?"#"+s:"[id='"+s+"']";w--;)y[w]=nt+" "+yt(y[w]);g=y.join(",");p=gt.test(n)&&ii(t.parentNode)||t}if(g)try{return k.apply(r,p.querySelectorAll(g)),r}catch(tt){}finally{s===e&&t.removeAttribute("id")}}}return si(n.replace(at,"$1"),t,r,u)}function ni(){function n(r,u){return i.push(r+" ")>t.cacheLength&&delete n[i.shift()],n[r+" "]=u}var i=[];return n}function l(n){return n[e]=!0,n}function a(n){var t=i.createElement("div");try{return!!n(t)}catch(r){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ti(n,i){for(var r=n.split("|"),u=r.length;u--;)t.attrHandle[r[u]]=i}function wi(n,t){var i=t&&n,r=i&&n.nodeType===1&&t.nodeType===1&&(~t.sourceIndex||li)-(~n.sourceIndex||li);if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function cr(n){return function(t){var i=t.nodeName.toLowerCase();return i==="input"&&t.type===n}}function lr(n){return function(t){var i=t.nodeName.toLowerCase();return(i==="input"||i==="button")&&t.type===n}}function it(n){return l(function(t){return t=+t,l(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ii(n){return n&&typeof n.getElementsByTagName!="undefined"&&n}function bi(){}function yt(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function ri(n,t,i){var r=t.dir,u=i&&r==="parentNode",f=ki++;return t.first?function(t,i,f){while(t=t[r])if(t.nodeType===1||u)return n(t,i,f)}:function(t,i,o){var s,h,c,l=[v,f];if(o){while(t=t[r])if((t.nodeType===1||u)&&n(t,i,o))return!0}else while(t=t[r])if(t.nodeType===1||u){if(c=t[e]||(t[e]={}),h=c[t.uniqueID]||(c[t.uniqueID]={}),(s=h[r])&&s[0]===v&&s[1]===f)return l[2]=s[2];if(h[r]=l,l[2]=n(t,i,o))return!0}}}function ui(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function ar(n,t,i){for(var r=0,f=t.length;r<f;r++)u(n,t[r],i);return i}function pt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=t!=null;f<s;f++)(e=n[f])&&(!i||i(e,r,u))&&(o.push(e),h&&t.push(f));return o}function fi(n,t,i,r,u,f){return r&&!r[e]&&(r=fi(r)),u&&!u[e]&&(u=fi(u,f)),l(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,b=f||ar(t||"*",o.nodeType?[o]:o,[]),v=n&&(f||!t)?pt(b,p,n,o,s):b,h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=pt(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?nt(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=pt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):k.apply(e,h)})}function ei(n){for(var o,u,r,s=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=ri(function(n){return n===o},c,!0),a=ri(function(n){return nt(o,n)>-1},c,!0),f=[function(n,t,i){var r=!h&&(i||t!==ht)||((o=t).nodeType?l(n,t,i):a(n,t,i));return o=null,r}];i<s;i++)if(u=t.relative[n[i].type])f=[ri(ui(f),u)];else{if(u=t.filter[n[i].type].apply(null,n[i].matches),u[e]){for(r=++i;r<s;r++)if(t.relative[n[r].type])break;return fi(i>1&&ui(f),i>1&&yt(n.slice(0,i-1).concat({value:n[i-2].type===" "?"*":""})).replace(at,"$1"),u,i<r&&ei(n.slice(i,r)),r<s&&ei(n=n.slice(r)),r<s&&yt(n))}f.push(u)}return ui(f)}function vr(n,r){var f=r.length>0,e=n.length>0,o=function(o,s,c,l,a){var y,nt,d,g=0,p="0",tt=o&&[],w=[],it=ht,rt=o||e&&t.find.TAG("*",a),ut=v+=it==null?1:Math.random()||.1,ft=rt.length;for(a&&(ht=s===i||s||a);p!==ft&&(y=rt[p])!=null;p++){if(e&&y){for(nt=0,s||y.ownerDocument===i||(b(y),c=!h);d=n[nt++];)if(d(y,s||i,c)){l.push(y);break}a&&(v=ut)}f&&((y=!d&&y)&&g--,o&&tt.push(y))}if(g+=p,f&&p!==g){for(nt=0;d=r[nt++];)d(tt,w,s,c);if(o){if(g>0)while(p--)tt[p]||w[p]||(w[p]=gi.call(l));w=pt(w)}k.apply(l,w);a&&!o&&w.length>0&&g+r.length>1&&u.uniqueSort(l)}return a&&(v=ut,ht=it),tt};return f?l(o):o}var rt,f,t,st,oi,ft,wt,si,ht,w,ut,b,i,s,h,o,d,ct,et,e="sizzle"+1*ne
15w Date,c=n.document,v=0,ki=0,hi=ni(),ci=ni(),lt=ni(),bt=function(n,t){return n===t&&(ut=!0),0},li=-2147483648,di={}.hasOwnProperty,g=[],gi=g.pop,nr=g.push,k=g.push,ai=g.slice,nt=function(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},kt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",tt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",vi="\\["+r+"*("+tt+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+tt+"))|)"+r+"*\\]",dt=":("+tt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+vi+")*)|.*)\\)|)",tr=new RegExp(r+"+","g"),at=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),ir=new RegExp("^"+r+"*,"+r+"*"),rr=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),ur=new RegExp("="+r+"*([^\\]'\"]*?)"+r+"*\\]","g"),fr=new RegExp(dt),yi=new RegExp("^"+tt+"$"),vt={ID:new RegExp("^#("+tt+")"),CLASS:new RegExp("^\\.("+tt+")"),TAG:new RegExp("^("+tt+"|[*])"),ATTR:new RegExp("^"+vi),PSEUDO:new RegExp("^"+dt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+kt+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},er=/^(?:input|select|textarea|button)$/i,or=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,sr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,gt=/[+~]/,hr=/'|\\/g,y=new RegExp("\\\\([\\da-f]{1,6}"+r+"?|("+r+")|.)","ig"),p=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)},pi=function(){b()};try{k.apply(g=ai.call(c.childNodes),c.childNodes);g[c.childNodes.length].nodeType}catch(yr){k={apply:g.length?function(n,t){nr.apply(n,ai.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}f=u.support={};oi=u.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?t.nodeName!=="HTML":!1};b=u.setDocument=function(n){var v,u,l=n?n.ownerDocument||n:c;return l===i||l.nodeType!==9||!l.documentElement?i:(i=l,s=i.documentElement,h=!oi(i),(u=i.defaultView)&&u.top!==u&&(u.addEventListener?u.addEventListener("unload",pi,!1):u.attachEvent&&u.attachEvent("onunload",pi)),f.attributes=a(function(n){return n.className="i",!n.getAttribute("className")}),f.getElementsByTagName=a(function(n){return n.appendChild(i.createComment("")),!n.getElementsByTagName("*").length}),f.getElementsByClassName=ot.test(i.getElementsByClassName),f.getById=a(function(n){return s.appendChild(n).id=e,!i.getElementsByName||!i.getElementsByName(e).length}),f.getById?(t.find.ID=function(n,t){if(typeof t.getElementById!="undefined"&&h){var i=t.getElementById(n);return i?[i]:[]}},t.filter.ID=function(n){var t=n.replace(y,p);return function(n){return n.getAttribute("id")===t}}):(delete t.find.ID,t.filter.ID=function(n){var t=n.replace(y,p);return function(n){var i=typeof n.getAttributeNode!="undefined"&&n.getAttributeNode("id");return i&&i.value===t}}),t.find.TAG=f.getElementsByTagName?function(n,t){return typeof t.getElementsByTagName!="undefined"?t.getElementsByTagName(n):f.qsa?t.querySelectorAll(n):void 0}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if(n==="*"){while(i=u[f++])i.nodeType===1&&r.push(i);return r}return u},t.find.CLASS=f.getElementsByClassName&&function(n,t){if(typeof t.getElementsByClassName!="undefined"&&h)return t.getElementsByClassName(n)},d=[],o=[],(f.qsa=ot.test(i.querySelectorAll))&&(a(function(n){s.appendChild(n).innerHTML="<a id='"+e+"'><\/a><select id='"+e+"-\r\\' msallowcapture=''><option selected=''><\/option><\/select>";n.querySelectorAll("[msallowcapture^='']").length&&o.push("[*^$]="+r+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+r+"*(?:value|"+kt+")");n.querySelectorAll("[id~="+e+"-]").length||o.push("~=");n.querySelectorAll(":checked").length||o.push(":checked");n.querySelectorAll("a#"+e+"+*").length||o.push(".#.+[+~]")}),a(function(n){var t=i.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&o.push("name"+r+"*[*^$|!~]?=");n.querySelectorAll(":enabled").length||o.push(":enabled",":disabled");n.querySelectorAll("*,:x");o.push(",.*:")})),(f.matchesSelector=ot.test(ct=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&a(function(n){f.disconnectedMatch=ct.call(n,"div");ct.call(n,"[s!='']:x");d.push("!=",dt)}),o=o.length&&new RegExp(o.join("|")),d=d.length&&new RegExp(d.join("|")),v=ot.test(s.compareDocumentPosition),et=v||ot.test(s.contains)?function(n,t){var r=n.nodeType===9?n.documentElement:n,i=t&&t.parentNode;return n===i||!!(i&&i.nodeType===1&&(r.contains?r.contains(i):n.compareDocumentPosition&&n.c
15ompareDocumentPosition(i)&16))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},bt=v?function(n,t){if(n===t)return ut=!0,0;var r=!n.compareDocumentPosition-!t.compareDocumentPosition;return r?r:(r=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1,r&1||!f.sortDetached&&t.compareDocumentPosition(n)===r)?n===i||n.ownerDocument===c&&et(c,n)?-1:t===i||t.ownerDocument===c&&et(c,t)?1:w?nt(w,n)-nt(w,t):0:r&4?-1:1}:function(n,t){if(n===t)return ut=!0,0;var r,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(o&&s){if(o===s)return wi(n,t)}else return n===i?-1:t===i?1:o?-1:s?1:w?nt(w,n)-nt(w,t):0;for(r=n;r=r.parentNode;)f.unshift(r);for(r=t;r=r.parentNode;)e.unshift(r);while(f[u]===e[u])u++;return u?wi(f[u],e[u]):f[u]===c?-1:e[u]===c?1:0},i)};u.matches=function(n,t){return u(n,null,null,t)};u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==i&&b(n),t=t.replace(ur,"='$1']"),f.matchesSelector&&h&&!lt[t+" "]&&(!d||!d.test(t))&&(!o||!o.test(t)))try{var r=ct.call(n,t);if(r||f.disconnectedMatch||n.document&&n.document.nodeType!==11)return r}catch(e){}return u(t,i,null,[n]).length>0};u.contains=function(n,t){return(n.ownerDocument||n)!==i&&b(n),et(n,t)};u.attr=function(n,r){(n.ownerDocument||n)!==i&&b(n);var e=t.attrHandle[r.toLowerCase()],u=e&&di.call(t.attrHandle,r.toLowerCase())?e(n,r,!h):undefined;return u!==undefined?u:f.attributes||!h?n.getAttribute(r):(u=n.getAttributeNode(r))&&u.specified?u.value:null};u.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);};u.uniqueSort=function(n){var r,u=[],t=0,i=0;if(ut=!f.detectDuplicates,w=!f.sortStable&&n.slice(0),n.sort(bt),ut){while(r=n[i++])r===n[i]&&(t=u.push(i));while(t--)n.splice(u[t],1)}return w=null,n};st=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(t===1||t===9||t===11){if(typeof n.textContent=="string")return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=st(n)}else if(t===3||t===4)return n.nodeValue}else while(r=n[u++])i+=st(r);return i};t=u.selectors={cacheLength:50,createPseudo:l,match:vt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(y,p),n[3]=(n[3]||n[4]||n[5]||"").replace(y,p),n[2]==="~="&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),n[1].slice(0,3)==="nth"?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*(n[3]==="even"||n[3]==="odd")),n[5]=+(n[7]+n[8]||n[3]==="odd")):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var i,t=!n[6]&&n[2];return vt.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&fr.test(t)&&(i=ft(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(y,p).toLowerCase();return n==="*"?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=hi[n+" "];return t||(t=new RegExp("(^|"+r+")"+n+"("+r+"|$)"))&&hi(n,function(n){return t.test(typeof n.className=="string"&&n.className||typeof n.getAttribute!="undefined"&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return f==null?t==="!=":t?(f+="",t==="="?f===i:t==="!="?f!==i:t==="^="?i&&f.indexOf(i)===0:t==="*="?i&&f.indexOf(i)>-1:t==="$="?i&&f.slice(-i.length)===i:t==="~="?(" "+f.replace(tr," ")+" ").indexOf(i)>-1:t==="|="?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s=n.slice(0,3)!=="nth",o=n.slice(-4)!=="last",f=t==="of-type";return r===1&&u===0?function(n){return!!n.parentNode}:function(t,i,h){var p,w,y,c,a,b,k=s!==o?"nextSibling":"previousSibling",d=t.parentNode,nt=f&&t.nodeName.toLowerCase(),g=!h&&!f,l=!1;if(d){if(s){while(k){for(c=t;c=c[k];)if(f?c.nodeName.toLowerCase()===nt:c.nodeType===1)return!1;b=k=n==="only"&&!b&&"nextSibling"}return!0}if(b=[o?d.firstChild:d.lastChild],o&&g){for(c=d,y=c[e]||(c[e]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),p=w[n]||[],a=p[0]===v&&p[1],l=a&&p[2],c=a&&d.childNodes[a];c=++a&&c&&c[k]||(l=a=0)||b.pop();)if(c.nodeType===1&&++l&&c===t){w[n]=[v,a,l];break}}else if(g&&(c=t,y=c[e]||(c[e]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}
vendor: 5,461 bytes, line 15
15),p=w[n]||[],a=p[0]===v&&p[1],l=a),l===!1)while(c=++a&&c&&c[k]||(l=a=0)||b.pop())if((f?c.nodeName.toLowerCase()===nt:c.nodeType===1)&&++l&&(g&&(y=c[e]||(c[e]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),w[n]=[v,l]),c===t))break;return l-=u,l===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,i){var f,r=t.pseudos[n]||t.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return r[e]?r(i):r.length>1?(f=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?l(function(n,t){for(var u,f=r(n,i),e=f.length;e--;)u=nt(n,f[e]),n[u]=!(t[u]=f[e])}):function(n){return r(n,0,f)}):r}},pseudos:{not:l(function(n){var t=[],r=[],i=wt(n.replace(at,"$1"));return i[e]?l(function(n,t,r,u){for(var e,o=i(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(t[f]=e))}):function(n,u,f){return t[0]=n,i(t,null,f,r),t[0]=null,!r.pop()}}),has:l(function(n){return function(t){return u(n,t).length>0}}),contains:l(function(n){return n=n.replace(y,p),function(t){return(t.textContent||t.innerText||st(t)).indexOf(n)>-1}}),lang:l(function(n){return yi.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(y,p).toLowerCase(),function(t){var i;do if(i=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||i.indexOf(n+"-")===0;while((t=t.parentNode)&&t.nodeType===1);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===s},focus:function(n){return n===i.activeElement&&(!i.hasFocus||i.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:function(n){return n.disabled===!1},disabled:function(n){return n.disabled===!0},checked:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&!!n.checked||t==="option"&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!t.pseudos.empty(n)},header:function(n){return or.test(n.nodeName)},input:function(n){return er.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&n.type==="button"||t==="button"},text:function(n){var t;return n.nodeName.toLowerCase()==="input"&&n.type==="text"&&((t=n.getAttribute("type"))==null||t.toLowerCase()==="text")},first:it(function(){return[0]}),last:it(function(n,t){return[t-1]}),eq:it(function(n,t,i){return[i<0?i+t:i]}),even:it(function(n,t){for(var i=0;i<t;i+=2)n.push(i);return n}),odd:it(function(n,t){for(var i=1;i<t;i+=2)n.push(i);return n}),lt:it(function(n,t,i){for(var r=i<0?i+t:i;--r>=0;)n.push(r);return n}),gt:it(function(n,t,i){for(var r=i<0?i+t:i;++r<t;)n.push(r);return n})}};t.pseudos.nth=t.pseudos.eq;for(rt in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[rt]=cr(rt);for(rt in{submit:!0,reset:!0})t.pseudos[rt]=lr(rt);return bi.prototype=t.filters=t.pseudos,t.setFilters=new bi,ft=u.tokenize=function(n,i){var e,f,s,o,r,h,c,l=ci[n+" "];if(l)return i?0:l.slice(0);for(r=n,h=[],c=t.preFilter;r;){(!e||(f=ir.exec(r)))&&(f&&(r=r.slice(f[0].length)||r),h.push(s=[]));e=!1;(f=rr.exec(r))&&(e=f.shift(),s.push({value:e,type:f[0].replace(at," ")}),r=r.slice(e.length));for(o in t.filter)(f=vt[o].exec(r))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),r=r.slice(e.length));if(!e)break}return i?r.length:r?u.error(n):ci(n,h).slice(0)},wt=u.compile=function(n,t){var r,u=[],f=[],i=lt[n+" "];if(!i){for(t||(t=ft(n)),r=t.length;r--;)i=ei(t[r]),i[e]?u.push(i):f.push(i);i=lt(n,vr(f,u));i.selector=n}return i},si=u.select=function(n,i,r,u){var s,e,o,a,v,l=typeof n=="function"&&n,c=!u&&ft(n=l.selector||n);if(r=r||[],c.length===1){if(e=c[0]=c[0].slice(0),e.length>2&&(o=e[0]).type==="ID"&&f.getById&&i.nodeType===9&&h&&t.relative[e[1].type]){if(i=(t.find.ID(o.matches[0].replace(y,p),i)||[])[0],i)l&&(i=i.parentNode);else return r;n=n.slice(e.shift().value.length)}for(s=vt.needsContext.test(n)?0:e.length;s--;){if(o=e[s],t.relative[a=o.type])break;if((v=t.find[a])&&(u=v(o.matches[0].replace(y,p),gt.test(e[0].type)&&ii(i.parentNode)||i))){if(e.splice(s,1),n=u.length&&yt(e),!n)return k.apply(r,u),r;break}}}return(l||wt(n,c))(u,i,!h,r,!i||gt.test(n)&&ii(i.parentNode)||i),r},f.sortStable=e.split("").sort(bt).join("")===e,f.detectDuplicates=!!ut,b(),f.sortDetached=a(function(n){return n.compareDocumentPosition(i.createElement("div"))&1}),a(function(n){return n.innerHTML="<a href='#'><\/a>",n.firstChild.getAttribute("href")==="#"})||ti("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,t.toLowerCase()==="type"?1:2)}),f.attributes&&a(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),n.firstChild.getAttribute("value")===""})||ti("value",function(n,t,i){if(!i&&n.nodeName.toLowerCase()==="input")return n.defaultValue}),a(function(n){return n.getAttribute("disabled")==null})||ti(kt,function(n,t,i){var r;if(!i)return n[t]===!0?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),u}(n);i.find=p;i.expr=p.selectors;i.expr[":"]=i.expr.pseudos;i.uniqueSort=i.unique=p.uniqueSort;i.text=p.getText;i.isXMLDoc=p.isXML;i.contains=p.contains;var d=function(n,t,r){for(var u=[],f=r!==undefined;(n=n[t])&&n.nodeType!==9;)if(n.nodeType===1){if(f&&i(n).is(r))break;u.push(n)}return u},tr=function(n,t){for(var i=[];n;n=n.nextSibling)n.nodeType===1&&n!==t&&i.push(n);return i},ir=i.expr.match.needsContext,rr=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,bf=/^.[^:#\[\.,]*$/;i.filter=function(n,t,r){var u=t[0];
15return r&&(n=":not("+n+")"),t.length===1&&u.nodeType===1?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return n.nodeType===1}))};i.fn.extend({find:function(n){var t,u=this.length,r=[],f=this;if(typeof n!="string")return this.pushStack(i(n).filter(function(){for(t=0;t<u;t++)if(i.contains(f[t],this))return!0}));for(t=0;t<u;t++)i.find(n,f[t],r);return r=this.pushStack(u>1?i.unique(r):r),r.selector=this.selector?this.selector+" "+n:n,r},filter:function(n){return this.pushStack(ri(this,n||[],!1))},not:function(n){return this.pushStack(ri(this,n||[],!0))},is:function(n){return!!ri(this,typeof n=="string"&&ir.test(n)?i(n):n||[],!1).length}});fr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;er=i.fn.init=function(n,t,r){var f,e;if(!n)return this;if(r=r||ur,typeof n=="string"){if(f=n[0]==="<"&&n[n.length-1]===">"&&n.length>=3?[null,n,null]:fr.exec(n),f&&(f[1]||!t)){if(f[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(f[1],t&&t.nodeType?t.ownerDocument||t:u,!0)),rr.test(f[1])&&i.isPlainObject(t))for(f in t)i.isFunction(this[f])?this[f](t[f]):this.attr(f,t[f]);return this}return e=u.getElementById(f[2]),e&&e.parentNode&&(this.length=1,this[0]=e),this.context=u,this.selector=n,this}return!t||t.jquery?(t||r).find(n):this.constructor(t).find(n)}return n.nodeType?(this.context=this[0]=n,this.length=1,this):i.isFunction(n)?r.ready!==undefined?r.ready(n):n(i):(n.selector!==undefined&&(this.selector=n.selector,this.context=n.context),i.makeArray(n,this))};er.prototype=i.fn;ur=i(u);or=/^(?:parents|prev(?:Until|All))/;sr={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({has:function(n){var t=i(n,this),r=t.length;return this.filter(function(){for(var n=0;n<r;n++)if(i.contains(this,t[n]))return!0})},closest:function(n,t){for(var r,f=0,o=this.length,u=[],e=ir.test(n)||typeof n!="string"?i(n,t||this.context):0;f<o;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?e.index(r)>-1:r.nodeType===1&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(u.length>1?i.uniqueSort(u):u)},index:function(n){return n?typeof n=="string"?lt.call(i(n),this[0]):lt.call(this,n.jquery?n[0]:n):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){return this.pushStack(i.uniqueSort(i.merge(this.get(),i(n,t))))},addBack:function(n){return this.add(n==null?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&t.nodeType!==11?t:null},parents:function(n){return d(n,"parentNode")},parentsUntil:function(n,t,i){return d(n,"parentNode",i)},next:function(n){return hr(n,"nextSibling")},prev:function(n){return hr(n,"previousSibling")},nextAll:function(n){return d(n,"nextSibling")},prevAll:function(n){return d(n,"previousSibling")},nextUntil:function(n,t,i){return d(n,"nextSibling",i)},prevUntil:function(n,t,i){return d(n,"previousSibling",i)},siblings:function(n){return tr((n.parentNode||{}).firstChild,n)},children:function(n){return tr(n.firstChild)},contents:function(n){return n.contentDocument||i.merge([],n.childNodes)}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return n.slice(-5)!=="Until"&&(u=r),u&&typeof u=="string"&&(f=i.filter(u,f)),this.length>1&&(sr[n]||i.uniqueSort(f),or.test(n)&&f.reverse()),this.pushStack(f)}});h=/\S+/g;i.Callbacks=function(n){n=typeof n=="string"?kf(n):i.extend({},n);var o,r,h,f,t=[],e=[],u=-1,c=function(){for(f=n.once,h=o=!0;e.length;u=-1)for(r=e.shift();++u<t.length;)t[u].apply(r[0],r[1])===!1&&n.stopOnFalse&&(u=t.length,r=!1);n.memory||(r=!1);o=!1;f&&(t=r?[]:"")},s={add:function(){return t&&(r&&!o&&(u=t.length-1,e.push(r)),function f(r){i.each(r,function(r,u){i.isFunction(u)?n.unique&&s.has(u)||t.push(u):u&&u.length&&i.type(u)!=="string"&&f(u)})}(arguments),r&&!o&&c()),this},remove:function(){return i.each(arguments,function(n,r){for(var f;(f=i.inArray(r,t,f))>-1;)t.splice(f,1),f<=u&&u--}),this},has:function(n){return n?i.inArray(n,t)>-1:t.length>0},empty:function(){return t&&(t=[]),this},disable:function(){return f=e=[],t=r="",this},disabled:function(){return!t},lock:function(){return f=e=[],r||(t=r=""),this},locked:function(){return!!f},fireWith:function(n,t){return f||(t=t||[],t=[n,t.slice?t.slice():t],e.push(t),o||c()),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!h}};return s};i.extend({Deferred:function(n){var u=[["resolve","done",i.Callbacks("once memory"),"resolved"],["reject","fail",i.Callbacks("once memory"),"rejected"],["notify","progress",i.Callbacks("memory")]],f="pending",r={state:function(){return f},always:function(){return t.done(arguments).fail(arguments),this},then:function(){var n=arguments;return i.Deferred(function(f){i.each(u,function(u,e){var o=i.isFunction(n[u])&&n[u];t[e[1]](function(){var n=o&&o.apply(this,arguments);n&&i.isFunction(n.promise)?n.promise().progress(f.notify).done(f.resolve).fail(f.reject):f[e[0]+"With"](this===r?f.promise():this,o?[n]:arguments)})});n=null}).promise()},promise:function(n){return n!=null?i.extend(n,r):r}},t={};return r.pipe=r.then,i.each(u,function(n,i){var e=i[2],o=i[3];r[i[1]]=e.add;o&&e.add(function(){f=o},u[n^1][2].disable,u[2][2].lock);t[i[0]]=function(){return t[i[0]+"With"](this===t?r:this,arguments),this};t[i[0]+"With"]=e.fireWith}),r.promise(t),n&&n.call(t,t),t},when:function(n){var t=0,u=v.call(arguments),r=u.length,e=r!==1||n&&i.isFunction(n.promise)?r:0,f=e===1?n:i.Deferred(),h=function(n,t,i){return function(r){t[n]=this;i[n]=arguments.length>1?v.call(arguments):r;i===o?f.notifyWith(t,i):--e||f.resolveWith(t,i)}},o,c,s;if(r>1)for(o=new Array(r),c=new Array(r),s=new Array(r);t<r;t++)u[t]&&i.isFunction(u[t].promise)?u[t].promise().progress(h(t,c,o)).done(h(t,s,u)).fail(f.reject):--e;return e||f.resolveWith(s,u),f.promise()}});i.fn.ready=function(n){return i.ready.promise().done(n),this};i.extend({isReady:!1,readyWait:1,holdReady:function(n){n?i.readyWait++:i.ready(!0)},ready:function(n){(n===!0?--i.readyWait:i.isReady)||(i.isReady=!0,n!==!0&&--i.readyWait>0)||(vt.resolveWith(u,[i]),i.fn.triggerHandler&&(i(u).triggerHandler("ready"),i(u).off("ready")))}});i.ready.promise=function(t){return vt||(vt=i.Deferred(),u.readyState!=="complete"&&(u.readyState==="loading"||u.documentElement.doScroll)?(u.addEventListener("DOMContentLoaded",yt),n.addEventListener("load",yt)):n.setTimeout(i.ready)),vt.promise(t)};i.ready.promise();a=function(n,t,r,u,f,e,o){var s=0,c=n.length,h=r==null;if(i.type(r)==="object"){f=!0;for(s in r)a(n,t,s,r[s],!0,e,o)}else if(u!==undefined&&(f=!0,i.isFunction(u)||(o=!0),h&&(o?(t.call(n,u),t=null):(h=t,t=function(n,t,r){return h.call(i(n),r)})),t))for(;s<c;s++)t(n[s],r,o?u:u.call(n[s],s,t(n[s],r)));return f?n:h?t.call(n):c?t(n[0],r):e};g=function(n){return n.nodeType===1||n.nodeType===9||!+n.nodeType};et.uid=1;et.prototype={register:function(n,t){var i=t||{};return n.nodeType?n[this.expando]=i:Object.defineProperty(n,this.expando,{value:i,writable:!0,configurable:!0}),n[this.expando]},cache:function(n){if(!g(n))return{};var t=n[this.expando];return t||(t={},g(n)&&(n.nodeType?n[this.expando]=t:Object.defineProperty(n,this.expando,{value:t,configurable:!0}))),t},set:function(n,t,i){var r,u=this.cache(n);if(typeof t=="string")u[t]=i;else for(r in t)u[r]=t[r];return u},get:function(n,t){return t===undefined?this.cache(n):n[this.expando]&&n[this.expando][t]},access:function(n,t,r){var u;return t===undefined||t&&typeof t=="string"&&r===undefined?(u=this.get(n,t),u!==undefined?u:this.get(n,i.camel
15Case(t))):(this.set(n,t,r),r!==undefined?r:t)},remove:function(n,t){var f,r,e,u=n[this.expando];if(u!==undefined){if(t===undefined)this.register(n);else for(i.isArray(t)?r=t.concat(t.map(i.camelCase)):(e=i.camelCase(t),t in u?r=[t,e]:(r=e,r=r in u?[r]:r.match(h)||[])),f=r.length;f--;)delete u[r[f]];(t===undefined||i.isEmptyObject(u))&&(n.nodeType?n[this.expando]=undefined:delete n[this.expando])}},hasData:function(n){var t=n[this.expando];return t!==undefined&&!i.isEmptyObject(t)}};var r=new et,e=new et,df=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,cr=/[A-Z]/g;i.extend({hasData:function(n){return e.hasData(n)||r.hasData(n)},data:function(n,t,i){return e.access(n,t,i)},removeData:function(n,t){e.remove(n,t)},_data:function(n,t,i){return r.access(n,t,i)},_removeData:function(n,t){r.remove(n,t)}});i.fn.extend({data:function(n,t){var o,f,s,u=this[0],h=u&&u.attributes;if(n===undefined){if(this.length&&(s=e.get(u),u.nodeType===1&&!r.get(u,"hasDataAttrs"))){for(o=h.length;o--;)h[o]&&(f=h[o].name,f.indexOf("data-")===0&&(f=i.camelCase(f.slice(5)),lr(u,f,s[f])));r.set(u,"hasDataAttrs",!0)}return s}return typeof n=="object"?this.each(function(){e.set(this,n)}):a(this,function(t){var r,f;if(u&&t===undefined)return(r=e.get(u,n)||e.get(u,n.replace(cr,"-$&").toLowerCase()),r!==undefined)?r:(f=i.camelCase(n),r=e.get(u,f),r!==undefined)?r:(r=lr(u,f,undefined),r!==undefined)?r:void 0;f=i.camelCase(n);this.each(function(){var i=e.get(this,f);e.set(this,f,t);n.indexOf("-")>-1&&i!==undefined&&e.set(this,n,t)})},null,t,arguments.length>1,null,!0)},removeData:function(n){return this.each(function(){e.remove(this,n)})}});i.extend({queue:function(n,t,u){var f;if(n)return t=(t||"fx")+"queue",f=r.get(n,t),u&&(!f||i.isArray(u)?f=r.access(n,t,i.makeArray(u)):f.push(u)),f||[]},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t),o=function(){i.dequeue(n,t)};u==="inprogress"&&(u=r.shift(),e--);u&&(t==="fx"&&r.unshift("inprogress"),delete f.stop,u.call(n,o,f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var u=t+"queueHooks";return r.get(n,u)||r.access(n,u,{empty:i.Callbacks("once memory").add(function(){r.remove(n,[t+"queue",u])})})}});i.fn.extend({queue:function(n,t){var r=2;return(typeof n!="string"&&(t=n,n="fx",r--),arguments.length<r)?i.queue(this[0],n):t===undefined?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);n==="fx"&&r[0]!=="inprogress"&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,t){var u,e=1,o=i.Deferred(),f=this,s=this.length,h=function(){--e||o.resolveWith(f,[f])};for(typeof n!="string"&&(t=n,n=undefined),n=n||"fx";s--;)u=r.get(f[s],n+"queueHooks"),u&&u.empty&&(e++,u.empty.add(h));return h(),o.promise(t)}});var ar=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ot=new RegExp("^(?:([+-])=|)("+ar+")([a-z%]*)$","i"),w=["Top","Right","Bottom","Left"],st=function(n,t){return n=t||n,i.css(n,"display")==="none"||!i.contains(n.ownerDocument,n)};var yr=/^(?:checkbox|radio)$/i,pr=/<([\w:-]+)/,wr=/^$|\/(?:java|ecma)script/i,c={option:[1,"<select multiple='multiple'>","<\/select>"],thead:[1,"<table>","<\/table>"],col:[2,"<table><colgroup>","<\/colgroup><\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:[0,"",""]};c.optgroup=c.option;c.tbody=c.tfoot=c.colgroup=c.caption=c.thead;c.th=c.td;br=/<|&#?\w+;/,function(){var i=u.createDocumentFragment(),n=i.appendChild(u.createElement("div")),t=u.createElement("input");t.setAttribute("type","radio");t.setAttribute("checked","checked");t.setAttribute("name","t");n.appendChild(t);f.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked;n.innerHTML="<textarea>x<\/textarea>";f.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue}();var gf=/^key/,ne=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,dr=/^([^.]*)(?:\.(.+)|)/;i.event={global:{},add:function(n,t,u,f,e){var v,y,w,p,b,c,s,l,o,k,d,a=r.get(n);if(a)for(u.handler&&(v=u,u=v.handler,e=v.selector),u.guid||(u.guid=i.guid++),(p=a.events)||(p=a.events={}),(y=a.handle)||(y=a.handle=function(t){return typeof i!="undefined"&&i.event.triggered!==t.type?i.event.dispatch.apply(n,arguments):undefined}),t=(t||"").match(h)||[""],b=t.length;b--;)(w=dr.exec(t[b])||[],o=d=w[1],k=(w[2]||"").split(".").sort(),o)&&(s=i.event.special[o]||{},o=(e?s.delegateType:s.bindType)||o,s=i.event.special[o]||{},c=i.extend({type:o,origType:d,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:k.join(".")},v),(l=p[o])||(l=p[o]=[],l.delegateCount=0,s.setup&&s.setup.call(n,f,k,y)!==!1||n.addEventListener&&n.addEventListener(o,y)),s.add&&(s.add.call(n,c),c.handler.guid||(c.handler.guid=u.guid
15)),e?l.splice(l.delegateCount++,0,c):l.push(c),i.event.global[o]=!0)},remove:function(n,t,u,f,e){var y,k,c,v,p,s,l,a,o,b,d,w=r.hasData(n)&&r.get(n);if(w&&(v=w.events)){for(t=(t||"").match(h)||[""],p=t.length;p--;){if(c=dr.exec(t[p])||[],o=d=c[1],b=(c[2]||"").split(".").sort(),!o){for(o in v)i.event.remove(n,o+t[p],u,f,!0);continue}for(l=i.event.special[o]||{},o=(f?l.delegateType:l.bindType)||o,a=v[o]||[],c=c[2]&&new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"),k=y=a.length;y--;)s=a[y],(e||d===s.origType)&&(!u||u.guid===s.guid)&&(!c||c.test(s.namespace))&&(!f||f===s.selector||f==="**"&&s.selector)&&(a.splice(y,1),s.selector&&a.delegateCount--,l.remove&&l.remove.call(n,s));k&&!a.length&&(l.teardown&&l.teardown.call(n,b,w.handle)!==!1||i.removeEvent(n,o,w.handle),delete v[o])}i.isEmptyObject(v)&&r.remove(n,"handle events")}},dispatch:function(n){n=i.event.fix(n);var o,s,e,u,t,h=[],c=v.call(arguments),l=(r.get(this,"events")||{})[n.type]||[],f=i.event.special[n.type]||{};if(c[0]=n,n.delegateTarget=this,!f.preDispatch||f.preDispatch.call(this,n)!==!1){for(h=i.event.handlers.call(this,n,l),o=0;(u=h[o++])&&!n.isPropagationStopped();)for(n.currentTarget=u.elem,s=0;(t=u.handlers[s++])&&!n.isImmediatePropagationStopped();)(!n.rnamespace||n.rnamespace.test(t.namespace))&&(n.handleObj=t,n.data=t.data,e=((i.event.special[t.origType]||{}).handle||t.handler).apply(u.elem,c),e!==undefined&&(n.result=e)===!1&&(n.preventDefault(),n.stopPropagation()));return f.postDispatch&&f.postDispatch.call(this,n),n.result}},handlers:function(n,t){var e,u,f,o,h=[],s=t.delegateCount,r=n.target;if(s&&r.nodeType&&(n.type!=="click"||isNaN(n.button)||n.button<1))for(;r!==this;r=r.parentNode||this)if(r.nodeType===1&&(r.disabled!==!0||n.type!=="click")){for(u=[],e=0;e<s;e++)o=t[e],f=o.selector+" ",u[f]===undefined&&(u[f]=o.needsContext?i(f,this).index(r)>-1:i.find(f,this,null,[r]).length),u[f]&&u.push(o);u.length&&h.push({elem:r,handlers:u})}return s<t.length&&h.push({elem:this,handlers:t.slice(s)}),h},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(n,t){return n.which==null&&(n.which=t.charCode!=null?t.charCode:t.keyCode),n}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(n,t){var e,i,r,f=t.button;return n.pageX==null&&t.clientX!=null&&(e=n.target.ownerDocument||u,i=e.documentElement,r=e.body,n.pageX=t.clientX+(i&&i.scrollLeft||r&&r.scrollLeft||0)-(i&&i.clientLeft||r&&r.clientLeft||0),n.pageY=t.clientY+(i&&i.scrollTop||r&&r.scrollTop||0)-(i&&i.clientTop||r&&r.clientTop||0)),n.which||f===undefined||(n.which=f&1?1:f&2?3:f&4?2:0),n}},fix:function(n){if(n[i.expando])return n;var f,e,o,r=n.type,s=n,t=this.fixHooks[r];for(t||(this.fixHooks[r]=t=ne.test(r)?this.mouseHooks:gf.test(r)?this.keyHooks:{}),o=t.props?this.props.concat(t.props):this.props,n=new i.Event(s),f=o.length;f--;)e=o[f],n[e]=s[e];return n.target||(n.target=u),n.target.nodeType===3&&(n.target=n.target.parentNode),t.filter?t.filter(n,s):n},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==gr()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===gr()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(this.type==="checkbox"&&this.click&&i.nodeName(this,"input"))return this.click(),!1},_default:function(n){return i.nodeName(n.target,"a")}},beforeunload:{postDispatch:function(n){n.result!==undefined&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}}};i.removeEvent=function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i)};i.Event=function(n,t){if(!(this instanceof i.Event))return new i.Event(n,t);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||n.defaultPrevented===undefined&&n.returnValue===!1?pt:nt):this.type=n;t&&i.extend(this,t);this.timeStamp=n&&n.timeStamp||i.now();this[i.expando]=!0};i.Event.prototype={constructor:i.Event,isDefaultPrevented:nt,isPropagationStopped:nt,isImmediatePropagationStopped:nt,isSimulated:!1,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=pt;n&&!this.isSimulated&&n.preventDefault()},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=pt;n&&!this.isSimulated&&n.stopPropagation()},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=pt;n&&!this.isSimulated&&n.stopImmediatePropagation();this.stopPropagation()}};
15i.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return r&&(r===f||i.contains(f,r))||(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}});i.fn.extend({on:function(n,t,i,r){return fi(this,n,t,i,r)},one:function(n,t,i,r){return fi(this,n,t,i,r,1)},off:function(n,t,r){var u,f;if(n&&n.preventDefault&&n.handleObj)return u=n.handleObj,i(n.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if(typeof n=="object"){for(f in n)this.off(f,t,n[f]);return this}return(t===!1||typeof t=="function")&&(r=t,t=undefined),r===!1&&(r=nt),this.each(function(){i.event.remove(this,n,r,t)})}});var te=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ie=/<script|<style|<link/i,re=/checked\s*(?:[^=]|=\s*.checked.)/i,ue=/^true\/(.*)/,fe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;i.extend({htmlPrefilter:function(n){return n.replace(te,"<$1><\/$2>")},clone:function(n,t,r){var u,c,s,e,h=n.cloneNode(!0),l=i.contains(n.ownerDocument,n);if(!f.noCloneChecked&&(n.nodeType===1||n.nodeType===11)&&!i.isXMLDoc(n))for(e=o(h),s=o(n),u=0,c=s.length;u<c;u++)se(s[u],e[u]);if(t)if(r)for(s=s||o(n),e=e||o(h),u=0,c=s.length;u<c;u++)tu(s[u],e[u]);else tu(n,h);return e=o(h,"script"),e.length>0&&ui(e,!l&&o(n,"script")),h},cleanData:function(n){for(var u,t,f,s=i.event.special,o=0;(t=n[o])!==undefined;o++)if(g(t)){if(u=t[r.expando]){if(u.events)for(f in u.events)s[f]?i.event.remove(t,f):i.removeEvent(t,f,u.handle);t[r.expando]=undefined}t[e.expando]&&(t[e.expando]=undefined)}}});i.fn.extend({domManip:b,detach:function(n){return iu(this,n,!0)},remove:function(n){return iu(this,n)},text:function(n){return a(this,function(n){return n===undefined?i.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=n)})},null,n,arguments.length)},append:function(){return b(this,arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=nu(this,n);t.appendChild(n)}})},prepend:function(){return b(this,arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=nu(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return b(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return b(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},empty:function(){for(var n,t=0;(n=this[t])!=null;t++)n.nodeType===1&&(i.cleanData(o(n,!1)),n.textContent="");return this},clone:function(n,t){return n=n==null?!1:n,t=t==null?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return a(this,function(n){var t=this[0]||{},r=0,u=this.length;if(n===undefined&&t.nodeType===1)return t.innerHTML;if(typeof n=="string"&&!ie.test(n)&&!c[(pr.exec(n)||["",""])[1].toLowerCase()]){n=i.htmlPrefilter(n);try{for(;r<u;r++)t=this[r]||{},t.nodeType===1&&(i.cleanData(o(t,!1)),t.innerHTML=n);t=0}catch(f){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=[];return b(this,arguments,function(t){var r=this.parentNode;i.inArray(this,n)<0&&(i.cleanData(o(this)),r&&r.replaceChild(t,this))},n)}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,f=[],e=i(n),o=e.length-1,r=0;r<=o;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),ti.apply(f,u.get());return this.pushStack(f)}});ei={HTML:"block",BODY:"block"};var uu=/^margin/,si=new RegExp("^("+ar+")(?!px)[a-z%]+$","i"),bt=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=n),i.getComputedStyle(t)},hi=function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f},ht=u.documentElement;(function(){function o(){t.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%";t.innerHTML="";
15ht.appendChild(r);var i=n.getComputedStyle(t);s=i.top!=="1%";c=i.marginLeft==="2px";e=i.width==="4px";t.style.marginRight="50%";h=i.marginRight==="4px";ht.removeChild(r)}var s,e,h,c,r=u.createElement("div"),t=u.createElement("div");t.style&&(t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",f.clearCloneStyle=t.style.backgroundClip==="content-box",r.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",r.appendChild(t),i.extend(f,{pixelPosition:function(){return o(),s},boxSizingReliable:function(){return e==null&&o(),e},pixelMarginRight:function(){return e==null&&o(),h},reliableMarginLeft:function(){return e==null&&o(),c},reliableMarginRight:function(){var f,i=t.appendChild(u.createElement("div"));return i.style.cssText=t.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",t.style.width="1px",ht.appendChild(r),f=!parseFloat(n.getComputedStyle(i).marginRight),ht.removeChild(r),t.removeChild(i),f}}))})();var he=/^(none|table(?!-c[ea]).+)/,ce={position:"absolute",visibility:"hidden",display:"block"},fu={letterSpacing:"0",fontWeight:"400"},eu=["Webkit","O","Moz","ms"],ou=u.createElement("div").style;i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=tt(n,"opacity");return i===""?"1":i}}}},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:"cssFloat"},style:function(n,t,r,u){if(n&&n.nodeType!==3&&n.nodeType!==8&&n.style){var e,h,o,s=i.camelCase(t),c=n.style;if(t=i.cssProps[s]||(i.cssProps[s]=su(s)||s),o=i.cssHooks[t]||i.cssHooks[s],r!==undefined){if(h=typeof r,h==="string"&&(e=ot.exec(r))&&e[1]&&(r=vr(n,t,e),h="number"),r==null||r!==r)return;h==="number"&&(r+=e&&e[3]||(i.cssNumber[s]?"":"px"));f.clearCloneStyle||r!==""||t.indexOf("background")!==0||(c[t]="inherit");o&&"set"in o&&(r=o.set(n,r,u))===undefined||(c[t]=r)}else return o&&"get"in o&&(e=o.get(n,!1,u))!==undefined?e:c[t]}},css:function(n,t,r,u){var f,s,o,e=i.camelCase(t);return(t=i.cssProps[e]||(i.cssProps[e]=su(e)||e),o=i.cssHooks[t]||i.cssHooks[e],o&&"get"in o&&(f=o.get(n,!0,r)),f===undefined&&(f=tt(n,t,u)),f==="normal"&&t in fu&&(f=fu[t]),r===""||r)?(s=parseFloat(f),r===!0||isFinite(s)?s||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return he.test(i.css(n,"display"))&&n.offsetWidth===0?hi(n,ce,function(){return lu(n,t,u)}):lu(n,t,u)},set:function(n,r,u){var f,e=u&&bt(n),o=u&&cu(n,t,u,i.css(n,"boxSizing",!1,e)==="border-box",e);return o&&(f=ot.exec(r))&&(f[3]||"px")!=="px"&&(n.style[t]=r,r=i.css(n,t)),hu(n,r,o)}}});i.cssHooks.marginLeft=ci(f.reliableMarginLeft,function(n,t){if(t)return(parseFloat(tt(n,"marginLeft"))||n.getBoundingClientRect().left-hi(n,{marginLeft:0},function(){return n.getBoundingClientRect().left}))+"px"});i.cssHooks.marginRight=ci(f.reliableMarginRight,function(n,t){if(t)return hi(n,{display:"inline-block"},tt,[n,"marginRight"])});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u=typeof i=="string"?i.split(" "):[i];r<4;r++)f[n+w[r]+t]=u[r]||u[r-2]||u[0];return f}};uu.test(n)||(i.cssHooks[n+t].set=hu)});i.fn.extend({css:function(n,t){return a(this,function(n,t,r){var f,e,o={},u=0;if(i.isArray(t)){for(f=bt(n),e=t.length;u<e;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return r!==undefined?i.style(n,t,r):i.css(n,t)},n,t,arguments.length>1)},show:function(){return au(this,!0)},hide:function(){return au(this)},toggle:function(n){return typeof n=="boolean"?n?this.show():this.hide():this.each(function(){st(this)?i(this).show():i(this).hide()})}});i.Tween=s;s.prototype={constructor:s,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||i.easing._default;this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=s.propHooks[this.prop];return n&&n.get?n.get(this):s.propHooks._default.get(this)},run:function(n){var t,r=s.propHooks[this.prop];return this.pos=this.options.duration?t=i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):t=n,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):s.propHooks._default.set(this),this}};s.prototype.init.prototype=s.prototype;s.propHooks={_default:{get:function(n){var t;return n.elem.nodeType!==1||n.elem[n.prop]!=null&&n.elem.style[n.prop]==null?n.elem[n.prop]:(t=i.css(n.elem,n.prop,""),!t||t==="auto"?0:t)},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):n.elem.nodeType===1&&(n.elem.style[i.cssProps[n.prop]]!=null||i.css
15Hooks[n.prop])?i.style(n.elem,n.prop,n.now+n.unit):n.elem[n.prop]=n.now}}};s.propHooks.scrollTop=s.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2},_default:"swing"};i.fx=s.prototype.init;i.fx.step={};vu=/^(?:toggle|show|hide)$/;yu=/queueHooks$/;i.Animation=i.extend(l,{tweeners:{"*":[function(n,t){var i=this.createTween(n,t);return vr(i.elem,n,ot.exec(t),i),i}]},tweener:function(n,t){i.isFunction(n)?(t=n,n=["*"]):n=n.match(h);for(var r,u=0,f=n.length;u<f;u++)r=n[u],l.tweeners[r]=l.tweeners[r]||[],l.tweeners[r].unshift(t)},prefilters:[le],prefilter:function(n,t){t?l.prefilters.unshift(n):l.prefilters.push(n)}});i.speed=function(n,t,r){var u=n&&typeof n=="object"?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return u.duration=i.fx.off?0:typeof u.duration=="number"?u.duration:u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default,(u.queue==null||u.queue===!0)&&(u.queue="fx"),u.old=u.complete,u.complete=function(){i.isFunction(u.old)&&u.old.call(this);u.queue&&i.dequeue(this,u.queue)},u};i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(st).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,u,f){var s=i.isEmptyObject(n),o=i.speed(t,u,f),e=function(){var t=l(this,i.extend({},n),o);(s||r.get(this,"finish"))&&t.stop(!0)};return e.finish=e,s||o.queue===!1?this.each(e):this.queue(o.queue,e)},stop:function(n,t,u){var f=function(n){var t=n.stop;delete n.stop;t(u)};return typeof n!="string"&&(u=t,t=n,n=undefined),t&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var s=!0,t=n!=null&&n+"queueHooks",o=i.timers,e=r.get(this);if(t)e[t]&&e[t].stop&&f(e[t]);else for(t in e)e[t]&&e[t].stop&&yu.test(t)&&f(e[t]);for(t=o.length;t--;)o[t].elem===this&&(n==null||o[t].queue===n)&&(o[t].anim.stop(u),s=!1,o.splice(t,1));(s||!u)&&i.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var t,e=r.get(this),u=e[n+"queue"],o=e[n+"queueHooks"],f=i.timers,s=u?u.length:0;for(e.finish=!0,i.queue(this,n,[]),o&&o.stop&&o.stop.call(this,!0),t=f.length;t--;)f[t].elem===this&&f[t].queue===n&&(f[t].anim.stop(!0),f.splice(t,1));for(t=0;t<s;t++)u[t]&&u[t].finish&&u[t].finish.call(this);delete e.finish})}});i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return n==null||typeof n=="boolean"?r.apply(this,arguments):this.animate(dt(t,!0),n,i,u)}});i.each({slideDown:dt("show"),slideUp:dt("hide"),slideToggle:dt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.timers=[];i.fx.tick=function(){var r,n=0,t=i.timers;for(it=i.now();n<t.length;n++)r=t[n],r()||t[n]!==r||t.splice(n--,1);t.length||i.fx.stop();it=undefined};i.fx.timer=function(n){i.timers.push(n);n()?i.fx.start():i.timers.pop()};i.fx.interval=13;i.fx.start=function(){kt||(kt=n.setInterval(i.fx.tick,i.fx.interval))};i.fx.stop=function(){n.clearInterval(kt);kt=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fn.delay=function(t,r){return t=i.fx?i.fx.speeds[t]||t:t,r=r||"fx",this.queue(r,function(i,r){var u=n.setTimeout(i,t);r.stop=function(){n.clearTimeout(u)}})},function(){var n=u.createElement("input"),t=u.createElement("select"),i=t.appendChild(u.createElement("option"));n.type="checkbox";f.checkOn=n.value!=="";f.optSelected=i.selected;t.disabled=!0;f.optDisabled=!i.disabled;n=u.createElement("input");n.value="t";n.type="radio";f.radioValue=n.value==="t"}();rt=i.expr.attrHandle;i.fn.extend({attr:function(n,t){return a(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var u,f,e=n.nodeType;if(e!==3&&e!==8&&e!==2){if(typeof n.getAttribute=="undefined")return i.prop(n,t,r);if(e===1&&i.isXMLDoc(n)||(t=t.toLowerCase(),f=i.attrHooks[t]||(i.expr.match.bool.test(t)?bu:undefined)),r!==undefined){if(r===null){i.removeAttr(n,t);return}return f&&"set"in f&&(u=f.set(n,r,t))!==undefined?u:(n.setAttribute(t,r+""),r)}return f&&"get"in f&&(u=f.get(n,t))!==null?u:(u=i.find.attr(n,t),u==null?undefined:u)}},attrHooks:{type:{set:function(n,t){if(!f.radioValue&&t==="radio"&&i.nodeName(n,"input")){var r=n.value;return n.setAttribute("type",t),r&&(n.value=r),t}}}},removeAttr:function(n,t){var r,u,e=0,f=t&&t.match(h);if(f&&n.nodeType===1)while(r=f[e++])u=i.propFix[r]||r,i.expr.match.bool.test(r)&&(n[u]=!1),n.removeAttribute(r)}});bu={set:function(n,t,r){return t===!1?i.removeAttr(n,r):n.setAttribute(r,r),r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=rt[t]||i.find.attr;rt[t]=function(n,t,i){var u,f;
15return i||(f=rt[t],rt[t]=u,u=r(n,t,i)!=null?t.toLowerCase():null,rt[t]=f),u}});ku=/^(?:input|select|textarea|button)$/i;du=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return a(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return this.each(function(){delete this[i.propFix[n]||n]})}});i.extend({prop:function(n,t,r){var f,u,e=n.nodeType;if(e!==3&&e!==8&&e!==2)return(e===1&&i.isXMLDoc(n)||(t=i.propFix[t]||t,u=i.propHooks[t]),r!==undefined)?u&&"set"in u&&(f=u.set(n,r,t))!==undefined?f:n[t]=r:u&&"get"in u&&(f=u.get(n,t))!==null?f:n[t]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):ku.test(n.nodeName)||du.test(n.nodeName)&&n.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});f.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(n){var t=n.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});gt=/[\t\r\n\f]/g;i.fn.extend({addClass:function(n){var o,r,t,u,f,s,e,c=0;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,k(this)))});if(typeof n=="string"&&n)for(o=n.match(h)||[];r=this[c++];)if(u=k(r),t=r.nodeType===1&&(" "+u+" ").replace(gt," "),t){for(s=0;f=o[s++];)t.indexOf(" "+f+" ")<0&&(t+=f+" ");e=i.trim(t);u!==e&&r.setAttribute("class",e)}return this},removeClass:function(n){var o,r,t,u,f,s,e,c=0;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,k(this)))});if(!arguments.length)return this.attr("class","");if(typeof n=="string"&&n)for(o=n.match(h)||[];r=this[c++];)if(u=k(r),t=r.nodeType===1&&(" "+u+" ").replace(gt," "),t){for(s=0;f=o[s++];)while(t.indexOf(" "+f+" ")>-1)t=t.replace(" "+f+" "," ");e=i.trim(t);u!==e&&r.setAttribute("class",e)}return this},toggleClass:function(n,t){var u=typeof n;return typeof t=="boolean"&&u==="string"?t?this.addClass(n):this.removeClass(n):i.isFunction(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,k(this),t),t)}):this.each(function(){var t,e,f,o;if(u==="string")for(e=0,f=i(this),o=n.match(h)||[];t=o[e++];)f.hasClass(t)?f.removeClass(t):f.addClass(t);else(n===undefined||u==="boolean")&&(t=k(this),t&&r.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||n===!1?"":r.get(this,"__className__")||""))})},hasClass:function(n){for(var t,r=0,i=" "+n+" ";t=this[r++];)if(t.nodeType===1&&(" "+k(t)+" ").replace(gt," ").indexOf(i)>-1)return!0;return!1}});gu=/\r/g;nf=/[\x20\t\r\n\f]+/g;i.fn.extend({val:function(n){var t,r,f,u=this[0];return arguments.length?(f=i.isFunction(n),this.each(function(r){var u;this.nodeType===1&&(u=f?n.call(this,r,i(this).val()):n,u==null?u="":typeof u=="number"?u+="":i.isArray(u)&&(u=i.map(u,function(n){return n==null?"":n+""})),t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&t.set(this,u,"value")!==undefined||(this.value=u))})):u?(t=i.valHooks[u.type]||i.valHooks[u.nodeName.toLowerCase()],t&&"get"in t&&(r=t.get(u,"value"))!==undefined)?r:(r=u.value,typeof r=="string"?r.replace(gu,""):r==null?"":r):void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return t!=null?t:i.trim(i.text(n)).replace(nf," ")}},select:{get:function(n){for(var o,t,s=n.options,r=n.selectedIndex,u=n.type==="select-one"||r<0,h=u?null:[],c=u?r+1:s.length,e=r<0?c:u?r:0;e<c;e++)if(t=s[e],(t.selected||e===r)&&(f.optDisabled?!t.disabled:t.getAttribute("disabled")===null)&&(!t.parentNode.disabled||!i.nodeName(t.parentNode,"optgroup"))){if(o=i(t).val(),u)return o;h.push(o)}return h},set:function(n,t){for(var u,r,f=n.options,e=i.makeArray(t),o=f.length;o--;)r=f[o],(r.selected=i.inArray(i.valHooks.option.get(r),e)>-1)&&(u=!0);return u||(n.selectedIndex=-1),e}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(i.isArray(t))return n.checked=i.inArray(i(n).val(),t)>-1}};f.checkOn||(i.valHooks[this].get=function(n){return n.getAttribute("value")===null?"on":n.value})});li=/^(?:focusinfocus|focusoutblur)$/;
15i.extend(i.event,{trigger:function(t,f,e,o){var w,s,c,b,a,v,l,p=[e||u],h=ft.call(t,"type")?t.type:t,y=ft.call(t,"namespace")?t.namespace.split("."):[];if((s=c=e=e||u,e.nodeType!==3&&e.nodeType!==8)&&!li.test(h+i.event.triggered)&&(h.indexOf(".")>-1&&(y=h.split("."),h=y.shift(),y.sort()),a=h.indexOf(":")<0&&"on"+h,t=t[i.expando]?t:new i.Event(h,typeof t=="object"&&t),t.isTrigger=o?2:3,t.namespace=y.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=undefined,t.target||(t.target=e),f=f==null?[t]:i.makeArray(f,[t]),l=i.event.special[h]||{},o||!l.trigger||l.trigger.apply(e,f)!==!1)){if(!o&&!l.noBubble&&!i.isWindow(e)){for(b=l.delegateType||h,li.test(b+h)||(s=s.parentNode);s;s=s.parentNode)p.push(s),c=s;c===(e.ownerDocument||u)&&p.push(c.defaultView||c.parentWindow||n)}for(w=0;(s=p[w++])&&!t.isPropagationStopped();)t.type=w>1?b:l.bindType||h,v=(r.get(s,"events")||{})[t.type]&&r.get(s,"handle"),v&&v.apply(s,f),v=a&&s[a],v&&v.apply&&g(s)&&(t.result=v.apply(s,f),t.result===!1&&t.preventDefault());return t.type=h,o||t.isDefaultPrevented()||(!l._default||l._default.apply(p.pop(),f)===!1)&&g(e)&&a&&i.isFunction(e[h])&&!i.isWindow(e)&&(c=e[a],c&&(e[a]=null),i.event.triggered=h,e[h](),i.event.triggered=undefined,c&&(e[a]=c)),t.result}},simulate:function(n,t,r){var u=i.extend(new i.Event,r,{type:n,isSimulated:!0});i.event.trigger(u,null,t)}});i.fn.extend({trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}});i.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(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}});i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)}});f.focusin="onfocusin"in n;f.focusin||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=function(n){i.event.simulate(t,n.target,i.event.fix(n))};i.event.special[t]={setup:function(){var i=this.ownerDocument||this,f=r.access(i,t);f||i.addEventListener(n,u,!0);r.access(i,t,(f||0)+1)},teardown:function(){var i=this.ownerDocument||this,f=r.access(i,t)-1;f?r.access(i,t,f):(i.removeEventListener(n,u,!0),r.remove(i,t))}}});var ct=n.location,ai=i.now(),vi=/\?/;i.parseJSON=function(n){return JSON.parse(n+"")};i.parseXML=function(t){var r;if(!t||typeof t!="string")return null;try{r=(new n.DOMParser).parseFromString(t,"text/xml")}catch(u){r=undefined}return(!r||r.getElementsByTagName("parsererror").length)&&i.error("Invalid XML: "+t),r};var ve=/#.*$/,tf=/([?&])_=[^&]*/,ye=/^(.*?):[ \t]*([^\r\n]*)$/mg,pe=/^(?:GET|HEAD)$/,we=/^\/\//,rf={},yi={},uf="*/".concat("*"),pi=u.createElement("a");pi.href=ct.href;i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ct.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ct.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":uf,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":i.parseJSON,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?wi(wi(n,i.ajaxSettings),t):wi(i.ajaxSettings,n)},ajaxPrefilter:ff(rf),ajaxTransport:ff(yi),ajax:function(t,r){function b(t,r,u,h){var v,rt,it,p,b,a=r;s!==2&&(s=2,d&&n.clearTimeout(d),l=undefined,k=h||"",e.readyState=t>0?4:0,v=t>=200&&t<300||t===304,u&&(p=be(f,e,u)),p=ke(f,p,e,v),v?(f.ifModified&&(b=e.getResponseHeader("Last-Modified"),b&&(i.lastModified[o]=b),b=e.getResponseHeader("etag"),b&&(i.etag[o]=b)),t===204||f.type==="HEAD"?a="nocontent":t===304?a="notmodified":(a=p.state,rt=p.data,it=p.error,v=!it)):(it=a,(t||!a)&&
15(a="error",t<0&&(t=0))),e.status=t,e.statusText=(r||a)+"",v?nt.resolveWith(c,[rt,a,e]):nt.rejectWith(c,[e,a,it]),e.statusCode(w),w=undefined,y&&g.trigger(v?"ajaxSuccess":"ajaxError",[e,f,v?rt:it]),tt.fireWith(c,[e,a]),y&&(g.trigger("ajaxComplete",[e,f]),--i.active||i.event.trigger("ajaxStop")))}typeof t=="object"&&(r=t,t=undefined);r=r||{};var l,o,k,p,d,a,y,v,f=i.ajaxSetup({},r),c=f.context||f,g=f.context&&(c.nodeType||c.jquery)?i(c):i.event,nt=i.Deferred(),tt=i.Callbacks("once memory"),w=f.statusCode||{},it={},rt={},s=0,ut="canceled",e={readyState:0,getResponseHeader:function(n){var t;if(s===2){if(!p)for(p={};t=ye.exec(k);)p[t[1].toLowerCase()]=t[2];t=p[n.toLowerCase()]}return t==null?null:t},getAllResponseHeaders:function(){return s===2?k:null},setRequestHeader:function(n,t){var i=n.toLowerCase();return s||(n=rt[i]=rt[i]||n,it[n]=t),this},overrideMimeType:function(n){return s||(f.mimeType=n),this},statusCode:function(n){var t;if(n)if(s<2)for(t in n)w[t]=[w[t],n[t]];else e.always(n[e.status]);return this},abort:function(n){var t=n||ut;return l&&l.abort(t),b(0,t),this}};if(nt.promise(e).complete=tt.add,e.success=e.done,e.error=e.fail,f.url=((t||f.url||ct.href)+"").replace(ve,"").replace(we,ct.protocol+"//"),f.type=r.method||r.type||f.method||f.type,f.dataTypes=i.trim(f.dataType||"*").toLowerCase().match(h)||[""],f.crossDomain==null){a=u.createElement("a");try{a.href=f.url;a.href=a.href;f.crossDomain=pi.protocol+"//"+pi.host!=a.protocol+"//"+a.host}catch(ft){f.crossDomain=!0}}if(f.data&&f.processData&&typeof f.data!="string"&&(f.data=i.param(f.data,f.traditional)),ef(rf,f,r,e),s===2)return e;y=i.event&&f.global;y&&i.active++==0&&i.event.trigger("ajaxStart");f.type=f.type.toUpperCase();f.hasContent=!pe.test(f.type);o=f.url;f.hasContent||(f.data&&(o=f.url+=(vi.test(o)?"&":"?")+f.data,delete f.data),f.cache===!1&&(f.url=tf.test(o)?o.replace(tf,"$1_="+ai++):o+(vi.test(o)?"&":"?")+"_="+ai++));f.ifModified&&(i.lastModified[o]&&e.setRequestHeader("If-Modified-Since",i.lastModified[o]),i.etag[o]&&e.setRequestHeader("If-None-Match",i.etag[o
15]));(f.data&&f.hasContent&&f.contentType!==!1||r.contentType)&&e.setRequestHeader("Content-Type",f.contentType);e.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+(f.dataTypes[0]!=="*"?", "+uf+"; q=0.01":""):f.accepts["*"]);for(v in f.headers)e.setRequestHeader(v,f.headers[v]);if(f.beforeSend&&(f.beforeSend.call(c,e,f)===!1||s===2))return e.abort();ut="abort";for(v in{success:1,error:1,complete:1})e[v](f[v]);if(l=ef(yi,f,r,e),l){if(e.readyState=1,y&&g.trigger("ajaxSend",[e,f]),s===2)return e;f.async&&f.timeout>0&&(d=n.setTimeout(function(){e.abort("timeout")},f.timeout));try{s=1;l.send(it,b)}catch(ft){if(s<2)b(-1,ft);else throw ft;}}else b(-1,"No Transport");return e},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,t){return i.get(n,undefined,t,"script")}});i.each(["get","post"],function(n,t){i[t]=function(n,r,u,f){return i.isFunction(r)&&(f=f||u,u=r,r=undefined),i.ajax(i.extend({url:n,type:t,dataType:f,data:r,success:u},i.isPlainObject(n)&&n))}});i._evalUrl=function(n){return i.ajax({url:n,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})};i.fn.extend({wrapAll:function(n){var t;return i.isFunction(n)?this.each(function(t){i(this).wrapAll(n.call(this,t))}):(this[0]&&(t=i(n,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var n=this;n.firstElementChild;)n=n.firstElementChild;return n}).append(this)),this)},wrapInner:function(n){return i.isFunction(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()}});i.expr.filters.hidden=function(n){return!i.expr.filters.visible(n)};i.expr.filters.visible=function(n){return n.offsetWidth>0||n.offsetHeight>0||n.getClientRects().length>0};var de=/%20/g,ge=/\[\]$/,of=/\r?\n/g,no=/^(?:submit|button|image|reset|file)$/i,to=/^(?:input|select|textarea|keygen)/i;return i.param=function(n,t){var r,u=[],f=function(n,t){t=i.isFunction(t)?t():t==null?"":t;u[u.length]=encodeURIComponent(n)+"="+encodeURIComponent(t)};if(t===undefined&&(t=i.ajaxSettings&&i.ajaxSettings.traditional),i.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){f(this.name,this.value)});else for(r in n)bi(r,n[r],t,f);return u.join("&").replace(de,"+")},i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&to.test(this.nodeName)&&!no.test(n)&&(this.checked||!yr.test(n))}).map(function(n,t){var r=i(this).val();return r==null?null:i.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(of,"\r\n")}}):{name:t.name,value:r.replace(of,"\r\n")}}).get()}}),i.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}},sf={0:200,1223:204},ut=i.ajaxSettings.xhr(),f.cors=!!ut&&"withCredentials"in ut,f.ajax=ut=!!ut,i.ajaxTransport(function(t){var i,r;if(f.cors||ut&&!t.crossDomain)return{send:function(u,f){var o,e=t.xhr();if(e.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)e[o]=t.xhrFields[o];t.mimeType&&e.overrideMimeType&&e.overrideMimeType(t.mimeType);t.crossDomain||u["X-Requested-With"]||(u["X-Requested-With"]="XMLHttpRequest");for(o in u)e.setRequestHeader(o,u[o]);i=function(n){return function(){i&&(i=r=e.onload=e.onerror=e.onabort=e.onreadystatechange=null,n==="abort"?e.abort():n==="error"?typeof e.status!="number"?f(0,"error"):f(e.status,e.statusText):f(sf[e.status]||e.status,e.statusText,(e.responseType||"text")!=="text"||typeof e.responseText!="string"?{binary:e.response}:{text:e.responseText},e.getAllResponseHeaders()))}};e.onload=i();r=e.onerror=i("error");e.onabort!==undefined?e.onabort=r:e.onreadystatechange=function(){e.readyState===4&&n.setTimeout(function(){i&&r()})};i=i("abort");try{e.send(t.hasContent&&t.data||null)}catch(s){if(i)throw s;}},abort:function(){i&&i()}}}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(n){return i.globalEval(n),n}}}),i.ajaxPrefilter("script",function(n){n.cache===undefined&&(n.cache=!1);n.crossDomain&&(n.type="GET")}),i.ajaxTransport("script",function(n){if(n.crossDomain){var r,t;return{send:function(f,e){r=i("<script>
15").prop({charset:n.scriptCharset,src:n.url}).on("load error",t=function(n){r.remove();t=null;n&&e(n.type==="error"?404:200,n.type)});u.head.appendChild(r[0])},abort:function(){t&&t()}}}}),ki=[],ni=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=ki.pop()||i.expando+"_"+ai++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,u){var f,e,o,s=t.jsonp!==!1&&(ni.test(t.url)?"url":typeof t.data=="string"&&(t.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&ni.test(t.data)&&"data");if(s||t.dataTypes[0]==="jsonp")return f=t.jsonpCallback=i.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(ni,"$1"+f):t.jsonp!==!1&&(t.url+=(vi.test(t.url)?"&":"?")+t.jsonp+"="+f),t.converters["script json"]=function(){return o||i.error(f+" was not called"),o[0]},t.dataTypes[0]="json",e=n[f],n[f]=function(){o=arguments},u.always(function(){e===undefined?i(n).removeProp(f):n[f]=e;t[f]&&(t.jsonpCallback=r.jsonpCallback,ki.push(f));o&&i.isFunction(e)&&e(o[0]);o=e=undefined}),"script"}),i.parseHTML=function(n,t,r){if(!n||typeof n!="string")return null;typeof t=="boolean"&&(r=t,t=!1);t=t||u;var f=rr.exec(n),e=!r&&[];return f?[t.createElement(f[1])]:(f=kr([n],t,e),e&&e.length&&i(e).remove(),i.merge([],f.childNodes))},di=i.fn.load,i.fn.load=function(n,t,r){if(typeof n!="string"&&di)return di.apply(this,arguments);var u,o,s,f=this,e=n.indexOf(" ");return e>-1&&(u=i.trim(n.slice(e)),n=n.slice(0,e)),i.isFunction(t)?(r=t,t=undefined):t&&typeof t=="object"&&(o="POST"),f.length>0&&i.ajax({url:n,type:o||"GET",dataType:"html",data:t}).done(function(n){s=arguments;f.html(u?i("<div>").append(i.parseHTML(n)).find(u):n)}).always(r&&function(n,t){f.each(function(){r.apply(this,s||[n.responseText,t,n])})}),this},i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}}),i.expr.filters.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length},i.offset={setOffset:function(n,t,r){var e,o,s,h,u,c,v,l=i.css(n,"position"),a=i(n),f={};l==="static"&&(n.style.position="relative");u=a.offset();s=i.css(n,"top");c=i.css(n,"left");v=(l==="absolute"||l==="fixed")&&(s+c).indexOf("auto")>-1;v?(e=a.position(),h=e.top,o=e.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);i.isFunction(t)&&(t=t.call(n,r,i.extend({},u)));t.top!=null&&(f.top=t.top-u.top+h);t.left!=null&&(f.left=t.left-u.left+o);"using"in t?t.using.call(n,f):a.css(f)}},i.fn.extend({offset:function(n){if(arguments.length)return n===undefined?this:this.each(function(t){i.offset.setOffset(this,n,t)});var t,f,r=this[0],u={top:0,left:0},e=r&&r.ownerDocument;if(e)return(t=e.documentElement,!i.contains(t,r))?u:(u=r.getBoundingClientRect(),f=hf(e),{top:u.top+f.pageYOffset-t.clientTop,left:u.left+f.pageXOffset-t.clientLeft})},position:function(){if(this[0]){var n,r,u=this[0],t={top:0,left:0};return i.css(u,"position")==="fixed"?r=u.getBoundingClientRect():(n=this.offsetParent(),r=this.offset(),i.nodeName(n[0],"html")||(t=n.offset()),t.top+=i.css(n[0],"borderTopWidth",!0),t.left+=i.css(n[0],"borderLeftWidth",!0)),{top:r.top-t.top-i.css(u,"marginTop",!0),left:r.left-t.left-i.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent;n&&i.css(n,"position")==="static";)n=n.offsetParent;return n||ht})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r="pageYOffset"===t;i.fn[n]=function(i){return a(this,function(n,i,u){var f=hf(n);if(u===undefined)return f?f[t]:n[i];f?f.scrollTo(r?f.pageXOffset:u,r?u:f.pageYOffset):n[i]=u},n,i,arguments.length)}}),i.each(["top","left"],function(n,t){i.cssHooks[t]=ci(f.pixelPosition,function(n,r){if(r)return r=tt(n,t),si.test(r)?i(n).position()[t]+"px":r})}),i.each({Height:"height",Width:"width"},function(n,t){i.each({padding:"inner"+n,content:t,"":"outer"+n},function(r,u){i.fn[u]=function(u,f){var e=arguments.length&&(r||typeof u!="boolean"),o=r||(u===!0||f===!0?"margin":"border");return a(this,function(t,r,u){var f;return i.isWindow(t)?t.document.documentElement["client"+n]:t.nodeType===9?(f=t.documentElement,Math.max(t.body["scroll"+n],f["scroll"+n],t.body["offset"+n],f["offset"+n],f["client"+n])):u===undefined?i.css(t,r,o):i.style(t,r,u,o)},t,e?u:undefined,e,null)}})}),i.fn.extend({bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return arguments.length===1?this.off(n,"**"):this.off(t,n||"**",i)},size:function(){return this.length}}),i.fn.andSelf=i.fn.addBack,typeof define=="function"&&define.amd&&define("jquery",[],function(){return i}),cf=n.jQuery,lf=n.$,i.noConflict=function(t){return n.$===i&&(n.$=lf),t&&n.jQuery===i&&(n.jQuery=cf),i},t||(n.jQuery=n.$=i),i});function unscrambleEmailLinks(){$('a[onmouseover^="javascript:this.href=unscrambleMailto"]').each(function(){$(this).html()!==""&&$(this).html().indexOf("|")>0&&(emailArr=$.trim($(this).html()).split("|"),domain=emailArr[0].replace(/<span class=\"?scrambledEmail\"?>/gi,""),user=emailArr[1].replace(/<\/span>/gi,""),$(this).html(unscrambleEmail(domain,user)))});$(".scrambledEmail").each(function(){$(this).html().indexOf("|")>0&&(emailArr=$(this).html().split("|"),domain=emailArr[0],user=emailArr[1],$(this).html(unscrambleEmail(domain,user)))})}function unscrambleMailto(n,t){return"mailto:"+unscrambleEmail(n,t)}function unscrambleEmail(n,t){return t.replace(/%23/g,".")+"@"+n.replace(/%23/g,".")}function displayWindow2(n,t,i){var r=window.open(n,"displayWindow","width="+t+",height="+i+",resizable=1,scrollbars=yes,menubar=no")}function checkSearchForm(n){return!n.search_string.value||n.search_string.value==="Enter Keyword"||n.search_string.value==="Enter Search"||n.search_string.value==="Search Here"?(alertMessage(0,!1,"Please enter search criteria.","danger"),n.search_string.focus(),!1):!0}function checkSearchFormFrench(n){return!n.search_string.value||n.search_string.value==="Recherche ici"||n.search_string.value==="Enter Search"?(alertMessage(0,!1,"Veuillez insérer un mot pour votre recherche!","danger"),n.search_string.focus(),!1):!0}function openPopup(n,t,i,r){var f=location.hostname,u=window.open(n,t,i);u&&u.opener&&(r&&(u.opener.location=r),u.opener.top.name="opener");u.focus()}function insert_desc(n){document.getElementById("desc_div").innerHTML=n;document.location="#desc_div"}function checkSubscribeForm(n){return!n.subscribe_email.value||n.subscribe_email.value==="Enter Email Here"?($(n).prepend('<div class="alert alert-danger">Please enter an email address!<\/div>'),n.subscribe_email.focus(),!1):n.subscribe_email.value.indexOf("@",0)===-1||n.subscribe_email.value.indexOf(".",0)===-1||n.subscribe_email.value.length<8||n.subscribe_email.value.length===n.subscribe_email.value.indexOf(".",0)+1?($(n).prepend('<div class="alert alert-danger">Please enter a valid email address!<\/div>'),n.subscribe_email.focus(),!1):!0}function printit(){window.print()}function Go(){return}function submitPollCheck(n){var t="";for(i=0;i<n.poll_vote.length;i++)if(n.poll_vote[i].checked)return t=!0,!0;return t||alertMessage(0,!1,"Please click the radio button of choice before voting!","danger"),
15!1}function submitForm(n){document.getElementById(n).submit()}function iGallery(n){larger_image=new Image;larger_image.src=n.src.replace("_thumb","");document.getElementById("main_image").src=larger_image.src;document.getElementById("main_image").width=larger_image.width;document.getElementById("main_image").height=larger_image.height}function swapTabs(n,t,i){$("#"+n).html($("#"+t).html());$("#"+activeTab).removeClass("active");$("#"+i).addClass("active");activeTab=i}function playFLV(n,t,i,r,u){var f={file:i,autostart:"true",image:r};swfobject.embedSWF("/fend/images/mediaplayer.swf",u,n,t,"9.0.0","",f,{},{})}function appendFunction(n,t){return function(){n&&n();t&&t()}}function changeFontSize(n,t){typeof t=="undefined"&&(t="include");$("#fontSizeCss").length>0?$("#fontSizeCss").attr("href","/fend/"+t+"/font_"+n+".css"):$("head").append('<link rel="stylesheet" href="/fend/'+t+"/font_"+n+'.css" type="text/css" id="fontSizeCss" />');$.ajax({url:"/fend/request/set-font-size.asp?fontSize="+n+"&rndNum="+Math.floor(Math.random()*1e5)})}function checkRequiredFields(n,t,i=0){var r,o,u,h,c,f,s;if(t.find(".form-error").remove(),$("*").removeClass("field-error").removeClass("has-error"),r="",o=n.split(","),n.indexOf("|")==-1&&n.indexOf(":")==-1&&n.indexOf("@")==-1)for(field in o)fieldName=$.trim(o[field]),$fieldObj=t.find('[name="'+fieldName+'"]'),fieldContents=$fieldObj.val(),$fieldObj.is(":enabled")&&(fieldName.toLowerCase()!=="email"||$("#"+fieldName).hasClass("simplevalidation")?fieldName.toLowerCase()!=="confirm_email"||$("#"+fieldName).hasClass("simplevalidation")?fieldName.toLowerCase()!=="confirm_password"||$("#"+fieldName).hasClass("simplevalidation")?$('[name="'+fieldName+'"]').attr("type")==="radio"||$('[name="'+fieldName+'"]').attr("type")==="checkbox"?$('[name="'+fieldName+'"]:checked').length===0&&($fieldObj.closest(".form-group").data("error")?(u=$fieldObj.closest(".form-group").data("error"),r+="<li>"+u+"<\/li>",$fieldObj.addClass("field-error").closest(".form-group").addClass("has-error")):(u=$("label[for="+fieldName+"]").text().toLowerCase().replace(":",""),u===""&&(u=fieldName.toLowerCase().replace("_"," ")),r+="<li> Please enter a valid "+u+"<\/li>",$fieldObj.addClass("field-error").closest(".form-group").addClass("has-error"))):fieldContents===""&&($fieldObj.closest(".form-group").data("error")?(u=$fieldObj.closest(".form-group").data("error"),r+="<li>"+u+"<\/li>",$fieldObj.addClass("field-error").closest(".form-group").addClass("has-error")):(u=$("label[for="+fieldName+"]").text().toLowerCase().replace(":",""),u===""&&(u=fieldName.toLowerCase().replace("_"," ")),r+="<li> Please enter a valid "+u+"<\/li>",$fieldObj.addClass("field-error").closest(".form-group").addClass("has-error"))):fieldContents!==$("#Password").val()&&(r+="<li>Passwords do not match.<\/li>",$fieldObj.addClass("field-error").closest(".form-group").addClass("has-error")):fieldContents!==$("#Email").val()&&(r+="<li>Email Addresses do not match.<\/li>",$fieldObj.addClass("field-error").closest(".form-group").addClass("has-error")):(h=new RegExp("^[A-Za-z0-9]((([_]*[-]?[.]?)[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([.-]?[a-zA-Z0-9]+)*).([A-Za-z]{2,})$"),c=h.exec(fieldContents),(c===null||fieldContents==="")&&(r+="<li>Please enter a valid email address.<\/li>",$fieldObj.addClass("field-error").closest(".form-group").addClass("has-error"))));else $(o).each(function(n,t){var o,u,f,i;if(t=$.trim(t),t.indexOf("|")!=-1||t.indexOf(":")!=-1||t.indexOf("@")!=-1||$(`[name="${t}"]`).prop("disabled")||(o=$(`[name="${t}"]`).val(),t.toLowerCase()!=="confirm_email"||$(`[name="${t}"]`).hasClass("simplevalidation")?t.toLowerCase()!=="confirm_password"||$(`[name="${t}"]`).hasClass("simplevalidation")?checkRequiredFields_validateField(`[name="${t}"]`)||($(document).find(`[name="${t}"]`).closest(".form-group").addClass("has-error"),r+=`<li>Need value for ${checkRequiredFields_getError($(document).find(`[name="${t}"]`))}</li>`):o!==$("#Password").val()&&($(document).find(`[name="${t}"]`).closest(".form-group").addClass("has-error"),r+="<li><strong><u>Passwords<\/u><\/strong> do not match<\/li>"):o!==$("#Email").val()&&($(document).find(`[name="${t}"]`).closest(".form-group").addClass("has-error"),r+="<li><strong><u>Email Addresses<\/u><\/strong> do not match<\/li>")),~t.indexOf("|")){var c=0,l=0,s=t.split("|");$(s).each(function(n,t){checkRequiredFields_validateField(`[name="${t}"]`)&&c++;$(`[name="${t}"]`).prop("disabled")&&l++});l!==s.length&&c==0&&(u="",f="",$(s).each(function(n,t){$(document).find(`[name="${t}"]`).parent().addClass("has-error");u+=f+checkRequiredFields_getError(`[name="${t}"]`);f=" / "}),r+=`<li>Need at least one value between ${u}</li>`)}if(~t.indexOf("@")){var h=0,a=0,e=t.split("@");$(e).each(function(n,t){checkRequiredFields_validateField(`[name="${t}"]`)&&h++;$(`[name="${t}"]`).prop("disabled")&&a++});a!==e.length&&h>0&&h!==e.length&&(u="",f="",$(e).each(function(n,t){$(document).find(`[name="${t}"]`).parent().addClass("has-error");u+=f+checkRequiredFields_getError(`[name="${t}"]`);f=" / "}),r+=`<li>Need all values for ${u}</li>`)}
15~t.indexOf(":")&&!$(`[name="${t}"]`).prop("disabled")&&(i=t.split(":"),checkRequiredFields_validateField(`[name="${i[0]}"]`)?$.post({url:i[1],"async":!1,data:{formInput:$(document).find(`[name="${i[0]}"]`).val()},success:function(n){n=="#BAD#"&&($(document).find(`[name="${i[0]}"]`).parent().addClass("has-error"),r+=`<li>Value for ${checkRequiredFields_getError(`[name="${i[0]}"]`)} already used; please enter a different value</li>`)}}):($(document).find(`[name="${i[0]}"]`).parent().addClass("has-error"),r+=`<li>Need value for ${checkRequiredFields_getError(`[name="${i[0]}"]`)}</li>`))});if(r==="")return!0;f=document.createElement("div");f=$(f);f.addClass("form-error alert alert-danger");f.html("<ul>"+r+"<\/ul>");t.prepend(f);var e=0,l=$("#header").height(),a=$("#header .navbar").height();return e=l>0?l:a,e>0&&(e+=25),i>0&&(e=i),$(t).find('[id="customErrorOffset"]').length&&(s=$(t).find('[id="customErrorOffset"]').val(),/^\d+$/.test(s)&&(e=s)),$(this).scrollTop($(f).offset().top-e),$(t).find('[name="conf-recaptchaComplete"]').val(""),!1}function checkRequiredFieldsCustom(n,t){var r,u,i,f,e;if(t.find(".form-error").remove(),$("*").removeClass("field-error").removeClass("has-error"),r="",u=n.split(","),n.indexOf("|")==-1&&n.indexOf(":")==-1&&n.indexOf("@")==-1)for(field in u)fieldName=$.trim(u[field]),$fieldObj=t.find('[name="'+fieldName+'"]'),fieldContents=$fieldObj.val(),$fieldObj.is(":enabled")&&($fieldObj.attr("type")==="email"?(f=new RegExp(/^[A-Za-z0-9]((([_]*[-]?[.]?)[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$/g),e=f.exec(fieldContents),(e===null||fieldContents==="")&&($fieldObj.closest(".form-group").data("error")?(i=$fieldObj.closest(".form-group").data("error"),r+="<li>"+i+"<\/li>",$fieldObj.addClass("field-error").closest(".form-group").addClass("has-error")):(i=$("label[for="+fieldName+"]").text().toLowerCase().replace(":",""),i===""&&(i=fieldName.toLowerCase().replace("_"," ")),r+="<li>Please enter a valid "+i+"<\/li>",$fieldObj.addClass("field-error").closest(".form-group").addClass("has-error")))):$('[name="'+fieldName+'"]').attr("type")==="radio"||$('[name="'+fieldName+'"]').attr("type")==="checkbox"?$('[name="'+fieldName+'"]:checked').length===0&&($fieldObj.closest(".form-group").data("error")?(i=$fieldObj.closest(".form-group").data("error"),r+="<li>"+i+"<\/li>",$fieldObj.addClass("field-error").closest(".form-group").addClass("has-error")):(i=$("label[for="+fieldName+"]").text().toLowerCase().replace(":",""),i===""&&(i=fieldName.toLowerCase().replace("_"," ")),r+="<li>Please enter a valid "+i+"<\/li>",$fieldObj.addClass("field-error").closest(".form-group").addClass("has-error"))):fieldContents===""&&($fieldObj.closest(".form-group").data("error")?(i=$fieldObj.closest(".form-group").data("error"),r+="<li>"+i+"<\/li>",$fieldObj.addClass("field-error").closest(".form-group").addClass("has-error")):(i=$("label[for="+fieldName+"]").text().toLowerCase().replace(":",""),i===""&&(i=fieldName.toLowerCase().replace("_"," ")),r+="<li>Please enter a valid "+i+"<\/li>",$fieldObj.addClass("field-error").closest(".form-group").addClass("has-error"))));else $(u).each(function(n,t){var r,u,i;if(t=$.trim(t),t.indexOf("|")==-1&&t.indexOf(":")==-1&&t.indexOf("@")==-1&&$(`[name="${t}"]`).is(":enabled")&&(checkRequiredFields_validateField(`[name="${t}"]`)||($(document).find(`[name="${t}"]`).closest(".form-group").addClass("has-error"),errorHtml+=`<li>Need value for ${checkRequiredFields_getError($(document).find(`[name="${t}"]`))}</li>`)),~t.indexOf("|")){var s=0,h=0,e=t.split("|");$(e).each(function(n,t){checkRequiredFields_validateField(`[name="${t}"]`)&&s++;$(`[name="${t}"]`).is(":disabled")&&h++});h!==e.length&&s==0&&(r="",u="",$(e).each(function(n,t){$(document).find(`[name="${t}"]`).parent().addClass("has-error");r+=u+checkRequiredFields_getError(`[name="${t}"]`);u=" / "}),errorHtml+=`<li>Need at least one value between ${r}</li>`)}if(~t.indexOf("@")){var o=0,c=0,f=t.split("@");$(f).each(function(n,t){checkRequiredFields_validateField(`[name="${t}"]`)&&o++;$(`[name="${t}"]`).is(":disabled")&&c++});c!==f.length&&o>0&&o!==f.length&&(r="",u="",$(f).each(function(n,t){$(document).find(`[name="${t}"]`).parent().addClass("has-error");r+=u+checkRequiredFields_getError(`[name="${t}"]`);u=" / "}),errorHtml+=`<li>Need all values for ${r}</li>`)}~t.indexOf(":")&&(i=t.split(":"),$(`[name="${i[0]}"]`).is(":enabled")&&(checkRequiredFields_validateField(`[name="${i[0]}"]`)?$.post({url:i[1],"async":!1,data:{formInput:$(document).find(`[name="${i[0]}"]`).val()},success:function(n){n=="#BAD#"&&($(document).find(`[name="${i[0]}"]`).parent().addClass("has-error"),errorHtml+=`<li>The value for ${checkRequiredFields_getError(`[name="${i[0]}"]`)} is already used; please use another value</li>`)}}):($(document).find(`[name="${i[0]}"]`).parent().addClass("has-error"),errorHtml+=`<li>Need value for ${checkRequiredFields_getError(`[name="${i[0]}"]`)}</li>`)))});return r}function invCaptchaSubmit(){invCaptchaPassed=!0}function randomQueryString(){return returnString="&UID="+(new Date).getTime()+Math.random()}function highlightText(n,t,i){$(n).each(function(){var n=new RegExp("\\b"+t+"\\b","gi");this.innerHTML=this.innerHTML.replace(n,function(n){return'<span class="'+i+'">'+n+"<\/span>"})})}function checkRequiredFields_validateField(n){var i=!1,t,r,u;return $(document).find(n).length&&(t=$(n),t.is("input")&&t.attr("type")=="email"?(r=new RegExp(/^[A-Za-z0-9]((([_]*[-]?[.]?)[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$/g),u=r.exec(t.val()),u!==null&&t.val()!==""&&(i=!0)):t.is("input")&&(t.attr("type")=="text"||t.attr("type")=="number")&&t.val().length?i=!0:(t.is("select")||t.is("textarea"))&&t.val().length?i=!0:t.is("input")&&(t.attr("type")=="radio"||t.attr("type")=="checkbox")&&$(document).find(`${n}:checked`).length&&(i=!0)),i}function checkRequiredFields_getError(n){var i="",t;return $(document).find(n).length&&(t=$(n).attr("data-error-label"),i=typeof t!="undefined"&&t!==!1?`<strong><u>${t}</u></strong>`:`<strong><u>${$(n).closest(".form-group").find("label.control-label").text()}</u></strong>`),i}$(document).ready(function(){var n,t;if($("iframe").each(function(){var n=$(this).attr("src");n!==undefined&&($(this).attr("src").indexOf("?")>0?$(this).attr({src:n+"&wmode=transparent",wmode:"Opaque"}):$(this).attr({src:n+"?wmode=transparent",wmode:"Opaque"}))}),$("#slider").length>0&&$("#slider").anythingSlider(),$(".igallery-masonry").length>0&&(n=$(".igallery-masonry").masonry({itemSelector:".igallery-masonry-item",columnWidth:".grid-sizer",percentPosition:!0}),n.imagesLoaded().progress(function(){n.masonry("layout");n.on("layoutComplete",function(){$(".igallery-masonry").addClass("active")})})),$(".igallery-grid").length>0&&$(".igallery-grid .lightbox").matchHeight({byRow:!0,property:"height",target:null,remove:!1}),typeof $.fn.ekkoLightbox!="undefined"&&$.isFunction($.fn.ekkoLightbox))$(document).on("click",'*[data-toggle="lightbox"], a.lightbox',function(n){n.preventDefault();
15$(this).ekkoLightbox({title:$(this).attr("title"),gallery:$(this).data("gallery")})});else typeof $.fn.lightBox!="undefined"&&$.isFunction($.fn.lightBox)&&$("a.lightbox").lightBox({overlayBgColor:"#000",overlayOpacity:.75,imageLoading:"/fend/images/loading.gif",imageBtnClose:"/fend/images/close.gif",imageBtnPrev:"/fend/images/prev.gif",imageBtnNext:"/fend/images/next.gif",containerResizeSpeed:350,txtImage:"Image",txtOf:"of"});if($("body a[rel~=external]").attr("target","blank"),$("body a[rel~=nofollow]").attr("rel","nofollow"),$("#fontsmall").bind("click",function(n){changeFontSize("small",window.cssPath);n.preventDefault()}),$("#fontmedium").bind("click",function(n){changeFontSize("medium",window.cssPath);n.preventDefault()}),$("#fontbig").bind("click",function(n){changeFontSize("big",window.cssPath);n.preventDefault()}),$(document).find(".sims_form_session_token").length&&$.ajax({url:"/vfend/include/req_session_token.asp","async":!1,success:function(n){$(document).find(".sims_form_session_token").each(function(){$(this).append(`<input type="hidden" name="sims_form_token" value="${n}" />`)})}}),t="/modules/recaptcha/request/recaptchaCheck.asp",$('[name="conf-requiredFields"],#blogcomment').closest("form").submit(function(n){var r,i,u,f;return n.stopImmediatePropagation(),r=n,i=$(this),checkRequiredFields(i.find('[name="conf-requiredFields"]').val(),$(this))&&(i.find("#g-recaptcha-container").length?i.find("#g-recaptcha-response").length?grecaptcha.getResponse().length>0&&$.post({url:`${t}?type=v2`,data:{token:grecaptcha.getResponse()},success:function(){i.unbind(r).submit()}}):(u=new Date,f=""+(u.getMonth()+1)+u.getDate()+"_"+parseInt(Math.random()*1e5+1),grecaptcha.execute("6LcTOHsaAAAAAMZytv7D0QhJkxy2wNBSLMLdu2yM",{action:f}).then(function(n){$.post({url:`${t}?type=v3`,data:{token:n},success:function(){i.unbind(r).submit()}}).fail(function(){grecaptcha.render("g-recaptcha-container",{sitekey:"6LdWeUsUAAAAAOr4ZSrJEzxaEJYC7UwrX1Eogk9M"})})})):i.unbind(r).submit()),!1}),$('[name="_requiredFields"]').closest("form").submit(function(){return checkRequiredFields($(this).find('[name="_requiredFields"]').val(),$(this))}),highlightText(".search-results-list a",$(".search-string").text(),"highlight"),$("#advPageIndex").length)$("[data-pagination-index]").on("click",function(n){n.preventDefault();$("#advPageIndex").val($(this).attr("data-pagination-index"));$("#adv-search-form").submit()});$("#recaptcha-modal-bs").length&&$("#recaptcha-modal-bs").modal("show");$("#recaptcha-modal").on("click",function(){$("#recaptcha-modal").remove()});$("#recaptcha-modal-body").on("click",function(n){n.stopPropagation()})});$(".dropdown").hover(function(){$(this).closest(".navbar-deep").length||(dropdownMenu=$(this).find(".dropdown-menu"),dropdownMenuLeft=dropdownMenu.offset().left,dropdownMenuRight=dropdownMenuLeft+dropdownMenu.width(),dropdownMenuLeft<0?dropdownMenu.css({right:"auto",left:"0"}):dropdownMenuRight>$(window).width()&&dropdownMenu.css({right:"0",left:"auto"}))});
vendor: 37,045 bytes, lines 15-21
15/*!
16 * Bootstrap v3.3.7 (http://getbootstrap.com)
17 * Copyright 2011-2016 Twitter, Inc.
18 * Licensed under the MIT license
19 */
20if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1||b[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){if(a(b.target).is(this))return b.handleObj.handler.apply(this,arguments)}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.3.7",d.TRANSITION_DURATION=150,d.prototype.close=function(b){function c(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));var g=a("#"===f?[]:f);b&&b.preventDefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(g.removeClass("in"),a.support.transition&&g.hasClass("fade")?g.one("bsTransitionEnd",c).emulateTransitionEnd(d.TRANSITION_DURATION):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.3.7",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c).prop(c,!0)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c).prop(c,!1))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")?(c.prop("checked")&&(a=!1),b.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==c.prop("type")&&(c.prop("checked")!==this.$element.hasClass("active")&&(a=!1),this.$element.toggleClass("active")),c.prop("checked",this.$element.hasClass("active")),a&&c.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target).closest(".btn");b.call(d,"toggle"),a(c.target).is('input[type="radio"], input[type="checkbox"]')||(c.preventDefault(),d.is("input,button")?d.trigger("focus"):d.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.3.7",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c=this.getItemIndex(b),d="prev"==a&&0===c||"next"==a&&c==this.$items.length-1;if(d&&!this.options.wrap)return b;var e="prev"==a?-1:1,f=(c+e)%this.$items.length;return this.$items.eq(f)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(a>this.$items.length-1||a<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){if(!this.sliding)return this.slide("next")},c.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getItemForDirection(b,e),g=this.interval,h="next"==b?"left":"right",i=this;if(f.hasClass("active"))return this.sliding=!1;var j=f[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:h});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(f)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:h});return a.support.transition&&this.$element.hasClass("slide")?(f.addClass(b),f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one("bsTransitionEnd",function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger(m)),g&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this};var e=function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasClass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventDefault()}};a(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){"use strict";function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b);!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a('[data-toggle="collapse"][href="#'+b.id+'"],[data-toggle="collapse"][data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION="3.3.7",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"),b&&b.transitioning))){var f=a.Event("show.bs.collapse");if(this.$element.trigger(f),!f.isDefaultPrevented()){e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);var i=a.camelCase(["scroll",g].join("-"));this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[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 e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},d.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c),b.toggleClass("collapsed",!c).attr("aria-expanded",c)};var e=a.fn.collapse;a.fn.collapse=c,a.fn.collapse.Constructor=d,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventDefault();var f=b(e),g=f.data("bs.collapse"),h=g?"toggle":e.data();c.call(f,h)})}(jQuery),+function(a){"use strict";function b(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function c(c){c&&3===c.which||(a(e).remove(),a(f).each(function(){var d=a(this),e=b(d),f={relatedTarget:this};e.hasClass("open")&&(c&&"click"==c.type&&/input|textarea/i.test(c.target.tagName)&&a.contains(e[0],c.target)||(e.trigger(c=a.Event("hide.bs.dropdown",f)),c.isDefaultPrevented()||(d.attr("aria-expanded","false"),e.removeClass("open").trigger(a.Event("hidden.bs.dropdown",f)))))}))}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.VERSION="3.3.7",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=b(e),g=f.hasClass("open");if(c(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",c);var h={relatedTarget:this};if(f.trigger(d=a.Event("show.bs.dropdown",h)),d.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),f.toggleClass("open").trigger(a.Event("shown.bs.dropdown",h))}return!1}},g.prototype.keydown=function(c){if(/(38|40|27|32)/.test(c.which)&&!/input|textarea/i.test(c.target.tagName)){var d=a(this);if(c.preventDefault(),c.stopPropagation(),!d.is(".disabled, :disabled")){var e=b(d),g=e.hasClass("open");if(!g&&27!=c.which||g&&27==c.which)return 27==c.which&&e.find(f).trigger("focus"),d.trigger("click");var h=" li:not(.disabled):visible a",i=e.find(".dropdown-menu"+h);if(i.length){var j=i.index(c.target);38==c.which&&j>0&&j--,40==c.which&&j<i.length-1&&j++,~j||(j=0),i.eq(j).trigger("focus")}}}};var h=a.fn.dropdown;a.fn.dropdown=d,a.fn.dropdown.Constructor=g,a.fn.dropdown.noConflict=function(){return a.fn.dropdown=h,this},a(document).on("click.bs.dropdown.data-api",c).on("click.bs.dropdown.data-api",".dropdown form",function(a){a.stopPropagation()}).on("click.bs.dropdown.data-api",f,g.prototype.toggle).on("keydown.bs.dropdown.data-api",f,g.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",g.prototype.keydown)}(jQuery),+function(a){"use strict";function b(b,d){return this.each(function(){var e=a(this),f=e.data("bs.modal"),g=a.extend({},c.DEFAULTS,e.data(),"object"==typeof b&&b);f||e.data("bs.modal",f=new c(this,g)),"string"==typeof b?f[b](d):g.show&&f.show(d)})}var c=function(b,c){this.options=c,this.$body=a(document.body),this.$element=a(b),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,a.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};c.VERSION="3.3.7",c.TRANSITION_DURATION=300,c.BACKDROP_TRANSITION_DURATION=150,c.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},c.prototype.toggle=function(a){return this.isShown?this.hide():this.show(a)},c.prototype.show=function(b){var d=this,e=a.Event("show.bs.modal",{relatedTarget:b});this.$element.trigger(e),this.isShown||e.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"]',a.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){d.$element.one("mouseup.dismiss.bs.modal",function(b){a(b.target).is(d.$element)&&(d.ignoreBackdropClick=!0)})}),this.backdrop(function(){var e=a.support.transition&&d.$element.hasClass("fade");d.$element.parent().length||d.$element.appendTo(d.$body),d.$element.show().scrollTop(0),d.adjustDialog(),e&&d.$element[0].offsetWidth,d.$element.addClass("in"),d.enforceFocus();var f=a.Event("shown.bs.modal",{relatedTarget:b});e?d.$dialog.one("bsTransitionEnd",function(){d.$element.trigger("focus").trigger(f)}).emulateTransitionEnd(c.TRANSITION_DURATION):d.$element.trigger("focus").trigger(f)}))},c.prototype.hide=function(b){b&&b.preventDefault(),b=a.Event("hide.bs.modal"),this.$element.trigger(b),this.isShown&&!b.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),a(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"),a.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",a.proxy(this.hideModal,this)).emulateTransitionEnd(c.TRANSITION_DURATION):this.hideModal())},c.prototype.enforceFocus=function(){a(document).off("focusin.bs.modal").on("focusin.bs.modal",a.proxy(function(a){document===a.target||this.$element[0]===a.target||this.$element.has(a.target).length||this.$element.trigger("focus")},this))},c.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",a.proxy(function(a){27==a.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},c.prototype.resize=function(){this.isShown?a(window).on("resize.bs.modal",a.proxy(this.handleUpdate,this)):a(window).off("resize.bs.modal")},c.prototype.hideModal=function(){var a=this;this.$element.hide(),this.backdrop(function(){a.$body.removeClass("modal-open"),a.resetAdjustments(),a.resetScrollbar(),a.$element.trigger("hidden.bs.modal")})},c.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},c.prototype.backdrop=function(b){var d=this,e=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var f=a.support.transition&&e;if(this.$backdrop=a(document.createElement("div")).addClass("modal-backdrop "+e).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",a.proxy(function(a){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(a.target===a.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),f&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!b)return;f?this.$backdrop.one("bsTransitionEnd",b).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):b()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var g=function(){d.removeBackdrop(),b&&b()};a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",g).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):g()}else b&&b()},c.prototype.handleUpdate=function(){this.adjustDialog()},c.prototype.adjustDialog=function(){var a=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&a?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!a?this.scrollbarWidth:""})},c.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},c.prototype.checkScrollbar=function(){var a=window.innerWidth;if(!a){var b=document.documentElement.getBoundingClientRect();a=b.right-Math.abs(b.left)}this.bodyIsOverflowing=document.body.clientWidth<a,this.scrollbarWidth=this.measureScrollbar()},c.prototype.setScrollbar=function(){var a=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",a+this.scrollbarWidth)},c.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},c.prototype.measureScrollbar=function(){var a=document.createElement("div");a.className="modal-scrollbar-measure",this.$body.append(a);var b=a.offsetWidth-a.clientWidth;return this.$body[0].removeChild(a),b};var d=a.fn.modal;a.fn.modal=b,a.fn.modal.Constructor=c,a.fn.modal.noConflict=function(){return a.fn.modal=d,this},a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(c){var d=a(this),e=d.attr("href"),f=a(d.attr("data-target")||e&&e.replace(/.*(?=#[^\s]+$)/,"")),g=f.data("bs.modal")?"toggle":a.extend({remote:!/#/.test(e)&&e},f.data(),d.data());d.is("a")&&c.preventDefault(),f.one("show.bs.modal",function(a){a.isDefaultPrevented()||f.one("hidden.bs.modal",function(){d.is(":visible")&&d.trigger("focus")})}),b.call(f,g,this)})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tooltip"),f="object"==typeof b&&b;!e&&/destroy|hide/.test(b)||(e||d.data("bs.tooltip",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",a,b)};c.VERSION="3.3.7",c.TRANSITION_DURATION=150,c.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}},c.prototype.init=function(b,c,d){if(this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(a.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 e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusin"==b.type?"focus":"hover"]=!0),c.tip().hasClass("in")||"in"==c.hoverState?void(c.hoverState="in"):(clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show())},c.prototype.isInStateTrue=function(){for(var a in this.inState)if(this.inState[a])return!0;return!1},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);if(c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusout"==b.type?"focus":"hover"]=!1),!c.isInStateTrue())return clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide()},c.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!d)return;var e=this,f=this.tip(),g=this.getUID(this.type);this.setContent(),f.attr("id",g),this.$element.attr("aria-describedby",g),this.options.animation&&f.addClass("fade");var h="function"==typeof this.options.placement?this.options.placement.call(this,f[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,j=i.test(h);j&&(h=h.replace(i,"")||"top"),f.detach().css({top:0,left:0,display:"block"}).addClass(h).data("bs."+this.type,this),this.options.container?f.appendTo(this.options.container):f.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var k=this.getPosition(),l=f[0].offsetWidth,m=f[0].offsetHeight;if(j){var n=h,o=this.getPosition(this.$viewport);h="bottom"==h&&k.bottom+m>o.bottom?"top":"top"==h&&k.top-m<o.top?"bottom":"right"==h&&k.right+l>o.width?"left":"left"==h&&k.left-l<o.left?"right":h,f.removeClass(n).addClass(h)}var p=this.getCalculatedOffset(h,k,l,m);this.applyPlacement(p,h);var q=function(){var a=e.hoverState;e.$element.trigger("shown.bs."+e.type),e.hoverState=null,"out"==a&&e.leave(e)};a.support.transition&&this.$tip.hasClass("fade")?f.one("bsTransitionEnd",q).emulateTransitionEnd(c.TRANSITION_DURATION):q()}},c.prototype.applyPlacement=function(b,c){var d=this.tip(),e=d[0].offsetWidth,f=d[0].offsetHeight,g=parseInt(d.css("margin-top"),10),h=parseInt(d.css("margin-left"),10);isNaN(g)&&(g=0),isNaN(h)&&(h=0),b.top+=g,b.left+=h,a.offset.setOffset(d[0],a.extend({using:function(a){d.css({top:Math.round(a.top),left:Math.round(a.left)})}},b),0),d.addClass("in");var i=d[0].offsetWidth,j=d[0].offsetHeight;"top"==c&&j!=f&&(b.top=b.top+f-j);var k=this.getViewportAdjustedDelta(c,b,i,j);k.left?b.left+=k.left:b.top+=k.top;var l=/top|bottom/.test(c),m=l?2*k.left-e+i:2*k.top-f+j,n=l?"offsetWidth":"offsetHeight";d.offset(b),this.replaceArrow(m,d[0][n],l)},c.prototype.replaceArrow=function(a,b,c){this.arrow().css(c?"left":"top",50*(1-a/b)+"%").css(c?"top":"left","")},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle();a.find(".tooltip-inner")[this.options.html?"html":"text"](b),a.removeClass("fade in top bottom left right")},c.prototype.hide=function(b){function d(){"in"!=e.hoverState&&f.detach(),e.$element&&e.$element.removeAttr("aria-describedby").trigger("hidden.bs."+e.type),b&&b()}var e=this,f=a(this.$tip),g=a.Event("hide.bs."+this.type);if(this.$element.trigger(g),!g.isDefaultPrevented())return f.removeClass("in"),a.support.transition&&f.hasClass("fade")?f.one("bsTransitionEnd",d).emulateTransitionEnd(c.TRANSITION_DURATION):d(),this.hoverState=null,this},c.prototype.fixTitle=function(){var a=this.$element;(a.attr("title")||"string"!=typeof a.attr("data-original-title"))&&a.attr("data-original-title",a.attr("title")||"").attr("title","")},c.prototype.hasContent=function(){return this.getTitle()},c.prototype.getPosition=function(b){b=b||this.$element;var c=b[0],d="BODY"==c.tagName,e=c.getBoundingClientRect();null==e.width&&(e=a.extend({},e,{width:e.right-e.left,height:e.bottom-e.top}));var f=window.SVGElement&&c instanceof window.SVGElement,g=d?{top:0,left:0}:f?null:b.offset(),h={scroll:d?document.documentElement.scrollTop||document.body.scrollTop:b.scrollTop()},i=d?{width:a(window).width(),height:a(window).height()}:null;return a.extend({},e,h,i,g)},c.prototype.getCalculatedOffset=function(a,b,c,d){return"bottom"==a?{top:b.top+b.height,left:b.left+b.width/2-c/2}:"top"==a?{top:b.top-d,left:b.left+b.width/2-c/2}:"left"==a?{top:b.top+b.height/2-d/2,left:b.left-c}:{top:b.top+b.height/2-d/2,left:b.left+b.width}},c.prototype.getViewportAdjustedDelta=function(a,b,c,d){var e={top:0,left:0};if(!this.$viewport)return e;var f=this.options.viewport&&this.options.viewport.padding||0,g=this.getPosition(this.$viewport);if(/right|left/.test(a)){var h=b.top-f-g.scroll,i=b.top+f-g.scroll+d;h<g.top?e.top=g.top-h:i>g.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;j<g.left?e.left=g.left-j:k>g.right&&(e.left=g.left+g.width-k)}return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getUID=function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},c.prototype.tip=function(){if(!this.$tip&&(this.$tip=a(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},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data("bs."+this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c))),b?(c.inState.click=!c.inState.click,c.isInStateTrue()?c.enter(c):c.leave(c)):c.tip().hasClass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type),a.$tip&&a.$tip.detach(),a.$tip=null,a.$arrow=null,a.$viewport=null,a.$element=null})};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b;!e&&/destroy|hide/.test(b)||(e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");c.VERSION="3.3.7",c.DEFAULTS=a.extend({},a.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>'}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}}(jQuery),+function(a){"use strict";function b(c,d){this.$body=a(document.body),this.$scrollElement=a(a(c).is(document.body)?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.VERSION="3.3.7",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b=this,c="offset",d=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(c="position",d=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var b=a(this),e=b.data("target")||b.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[c]().top+d,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b<e[0])return this.activeTarget=null,this.clear();for(a=e.length;a--;)g!=f[a]&&b>=e[a]&&(void 0===e[a+1]||b<e[a+1])&&this.activate(f[a])},b.prototype.activate=function(b){
21this.activeTarget=b,this.clear();var c=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',d=a(c).parents("li").addClass("active");d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addClass("active")),d.trigger("activate.bs.scrollspy")},b.prototype.clear=function(){a(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var d=a.fn.scrollspy;a.fn.scrollspy=c,a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=d,this},a(window).on("load.bs.scrollspy.data-api",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);c.call(b,b.data())})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new c(this)),"string"==typeof b&&e[b]()})}var c=function(b){this.element=a(b)};c.VERSION="3.3.7",c.TRANSITION_DURATION=150,c.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a"),f=a.Event("hide.bs.tab",{relatedTarget:b[0]}),g=a.Event("show.bs.tab",{relatedTarget:e[0]});if(e.trigger(f),b.trigger(g),!g.isDefaultPrevented()&&!f.isDefaultPrevented()){var h=a(d);this.activate(b.closest("li"),c),this.activate(h,h.parent(),function(){e.trigger({type:"hidden.bs.tab",relatedTarget:b[0]}),b.trigger({type:"shown.bs.tab",relatedTarget:e[0]})})}}},c.prototype.activate=function(b,d,e){function f(){g.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.7",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return e<c&&"top";if("bottom"==this.affixed)return null!=c?!(e+this.unpin<=f.top)&&"bottom":!(e+g<=a-d)&&"bottom";var h=null==this.affixed,i=h?e:f.top,j=h?g:b;return null!=c&&e<=c?"top":null!=d&&i+j>=a-d&&"bottom"},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=Math.max(a(document).height(),a(document.body).height());"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery);
21function isUrl(n){if(n.substring(0,1)==="/")return!0;return/^(ftp|http|https|):{0,1}\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/.test(n)}var bootstrapModal={};bootstrapModal.showModal=function(n,t,i,r,u,f,e){var c='<div id="'+e+'" class="modal '+u+'" tabindex="-1" role="dialog"><div class="modal-dialog modal-'+r+'"><div class="modal-content"><\/div><\/div><\/div>',o,s,h;$("body").append(c);o='<div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;<\/span><\/button>'+n+"<\/div>";$("#"+e+" .modal-content").append(o);s='<div class="modal-body">'+t+"<\/div>";$("#"+e+" .modal-content").append(s);i!==""&&(h='<div class="modal-footer">'+i+"<\/div>",$("#"+e+" .modal-content").append(h));$.isNumeric(t)?$.ajax({url:`/fend/request/reqArticle.asp?article_id=${t}&doNotRedirect=true`,success:function(n){$(`#${e} .modal-body`).html(n)}}):isUrl(t)?($(`#${e} .modal-body`).html('<p><em class="fa fa-2x fa-cog fa-spin"><\/em>&nbsp;&nbsp;Loading...<\/p>'),$.ajax({url:t,success:function(n){$(`#${e} .modal-body`).html(n)}})):$(`#${e} .modal-body`).html(t);f?(backdrop=!0,keyboard=!0):(backdrop="static",keyboard=!1);$(`#${e}`).on("show.bs.modal",function(){var t=$(".modal:visible").length,n;t>0&&(n=parseInt($(this).css("z-index"))+10*t,$(this).css("z-index",n),setTimeout(function(){$(".modal-backdrop").last().css("z-index",n-1)},0))});$("#"+e+"").on("hidden.bs.modal",function(){$(".modal .select-actions").removeClass("active");$("#"+e+"").remove()}).modal({backdrop:backdrop,keyboard:keyboard,show:!0})};/*!
22 * Lightbox for Bootstrap by @ashleydw
23 * https://github.com/ashleydw/lightbox
24 *
25 * License: https://github.com/ashleydw/lightbox/blob/master/LICENSE
26 */
27+function(){"use strict";function t(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var n=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),i=function(i){var r="ekkoLightbox",e=i.fn[r],f={title:"",footer:"",showArrows:!0,type:null,alwaysShowClose:!1,loadingMessage:'<div class="ekko-lightbox-loader"><div><div><\/div><div><\/div><\/div><\/div>',leftArrow:'<span>&#10094;<\/span><span class="sr-only">Previous<\/span>',rightArrow:'<span>&#10095;<\/span><span class="sr-only">Next<\/span>',strings:{close:"Close",fail:"Failed to load image:",type:"Could not detect remote target type. Force the type using data-type"},doc:document,onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){},onNavigate:function(){},onContentLoaded:function(){}},u=function(){function r(n,u){var e=this;t(this,r);this._config=i.extend({},f,u);this._$modalArrows=null;this._galleryIndex=0;this._galleryName=null;this._padding=null;this._border=null;this._titleIsShown=!1;this._footerIsShown=!1;this._wantedWidth=0;this._wantedHeight=0;this._modalId="ekkoLightbox-"+Math.floor(Math.random()*1e3+1);this._$element=n instanceof jQuery?n:i(n);this._isBootstrap3=i.fn.modal.Constructor.VERSION[0]==3;var o='<h4 class="modal-title">'+(this._config.title||"&nbsp;")+"<\/h4>",s='<button type="button" class="close" data-dismiss="modal" aria-label="'+this._config.strings.close+'"><span aria-hidden="true">&times;<\/span><\/button>
27',h='<div class="modal-header"'+(this._config.title||this._config.alwaysShowClose?"":' style="display:none"')+">"+(this._isBootstrap3?s+o:o+s)+"<\/div>",c='<div class="modal-footer"'+(this._config.footer?"":' style="display:none"')+">"+(this._config.footer||"&nbsp;")+"<\/div>",l='<div class="modal-dialog" role="document"><div class="modal-content">'+h+'<div class="modal-body"><div class="ekko-lightbox-container"><div class="ekko-lightbox-item fade in show"><\/div><div class="ekko-lightbox-item fade"><\/div><\/div><\/div>'+c+"<\/div><\/div>";if(i(this._config.doc.body).append('<div id="'+this._modalId+'" class="ekko-lightbox modal fade" tabindex="-1" tabindex="-1" role="dialog" aria-hidden="true">'+l+"<\/div>"),this._$modal=i("#"+this._modalId,this._config.doc),this._$modalDialog=this._$modal.find(".modal-dialog").first(),this._$modalContent=this._$modal.find(".modal-content").first(),this._$modalBody=this._$modal.find(".modal-body").first(),this._$modalHeader=this._$modal.find(".modal-header").first(),this._$modalFooter=this._$modal.find(".modal-footer").first(),this._$lightboxContainer=this._$modalBody.find(".ekko-lightbox-container").first(),this._$lightboxBodyOne=this._$lightboxContainer.find(">
27 div:first-child").first(),this._$lightboxBodyTwo=this._$lightboxContainer.find("> div:last-child").first(),this._border=this._calculateBorders(),this._padding=this._calculatePadding(),this._galleryName=this._$element.data("gallery"),this._galleryName){this._$galleryItems=i(document.body).find('*[data-gallery="'+this._galleryName+'"]');this._galleryIndex=this._$galleryItems.index(this._$element);i(document).on("keydown.ekkoLightbox",this._navigationalBinder.bind(this));if(this._config.showArrows&&this._$galleryItems.length>1){this._$lightboxContainer.append('<div class="ekko-lightbox-nav-overlay"><a href="#">'+this._config.leftArrow+'<\/a><a href="#">'+this._config.rightArrow+"<\/a><\/div>");this._$modalArrows=this._$lightboxContainer.find("div.ekko-lightbox-nav-overlay").first();this._$lightboxContainer.on("click","a:first-child",function(n){return n.preventDefault(),e.navigateLeft()});this._$lightboxContainer.on("click","a:last-child",function(n){return n.preventDefault(),e.navigateRight()})}}this._$modal.on("show.bs.modal",this._config.onShow.bind(this)).on("shown.bs.modal",function(){return e._toggleLoading(!0),e._handle(),e._config.onShown.call(e)}).on("hide.bs.modal",this._config.onHide.bind(this)).on("hidden.bs.modal",function(){return e._galleryName&&(i(document).off("keydown.ekkoLightbox"),i(window).off("resize.ekkoLightbox")),e._$modal.remove(),e._config.onHidden.call(e)}).modal(this._config);i(window).on("resize.ekkoLightbox",function(){e._resize(e._wantedWidth,e._wantedHeight)})}return n(r,null,[{key:"Default",get:function(){return f}}]),n(r,[{key:"element",value:function(){return this._$element}},{key:"modal",value:function(){return this._$modal}},{key:"navigateTo",value:function(n){if(n<0||n>this._$galleryItems.length-1)return this;this._galleryIndex=n;this._$element=i(this._$galleryItems.get(this._galleryIndex));this._handle()}},{key:"navigateLeft",value:function(){if(this._$galleryItems.length!==1)return this._galleryIndex===0?this._galleryIndex=this._$galleryItems.length-1:this._galleryIndex--,this._config.onNavigate.call(this,"left",this._galleryIndex),this.navigateTo(this._galleryIndex)}},{key:"navigateRight",value:function(){if(this._$galleryItems.length!==1)return this._galleryIndex===this._$galleryItems.length-1?this._galleryIndex=0:this._galleryIndex++,this._config.onNavigate.call(this,"right",this._galleryIndex),this.navigateTo(this._galleryIndex)}},{key:"close",value:function(){return this._$modal.modal("hide")}},{key:"_navigationalBinder",value:function(n){return(n=n||window.event,n.keyCode===39)?this.navigateRight():n.keyCode===37?this.navigateLeft():void 0}},{key:"_detectRemoteType",value:function(n,t){return t=t||!1,!t&&this._isImage(n)&&(t="image"),!t&&this._getYoutubeId(n)&&(t="youtube"),!t&&this._getVimeoId(n)&&(t="vimeo"),!t&&this._getInstagramId(n)&&(t="instagram"),(!t||["image","youtube","vimeo","instagram","video","url"].indexOf(t)<0)&&(t="url"),t}},{key:"_isImage",value:function(n){return n&&n.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)}},{key:"_containerToUse",value:function(){var n=this,t=this._$lightboxBodyTwo,i=this._$lightboxBodyOne;return this._$lightboxBodyTwo.hasClass("in")&&(t=this._$lightboxBodyOne,i=this._$lightboxBodyTwo),i.removeClass("in show"),setTimeout(function(){n._$lightboxBodyTwo.hasClass("in")||n._$lightboxBodyTwo.empty();n._$lightboxBodyOne.hasClass("in")||n._$lightboxBodyOne.empty()},500),t.addClass("in show"),t}},{key:"_handle",value:function(){var t=this._containerToUse(),n,i;if(this._updateTitleAndFooter(),n=this._$element.attr("data-remote")||this._$element.attr("href"),i=this._detectRemoteType(n,this._$element.attr("data-type")||!1),["image","youtube","vimeo","instagram","video","url"].indexOf(i)<0)return this._error(this._config.strings.type);switch(i){case"image":this._preloadImage(n,t);this._preloadImageByIndex(this._galleryIndex,3);break;case"youtube":this._showYoutubeVideo(n,t);break;case"vimeo":this._showVimeoVideo(this._getVimeoId(n),t);break;case"instagram":this._showInstagramVideo(this._getInstagramId(n),t);break;case"video":this._showHtml5Video(n,t);break;default:this._loadRemoteContent(n,t)}return this}},{key:"_getYoutubeId",value:function(n){if(!n)return!1;var t=n.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);return t&&t[2].length===11?t[2]:!1}},{key:"_getVimeoId",value:function(n){return n&&n.indexOf("vimeo")>0?n:!1}},{key:"_getInstagramId",value:function(n){return n&&n.indexOf("instagram")>0?n:!1}},{key:"_toggleLoading",value:function(n){return n=n||!1,n?(this._$modalDialog.css("display","none"),this._$modal.removeClass("in show"),i(".modal
27-backdrop").append(this._config.loadingMessage)):(this._$modalDialog.css("display","block"),this._$modal.addClass("in show"),i(".modal-backdrop").find(".ekko-lightbox-loader").remove()),this}},{key:"_calculateBorders",value:function(){return{top:this._totalCssByAttribute("border-top-width"),right:this._totalCssByAttribute("border-right-width"),bottom:this._totalCssByAttribute("border-bottom-width"),left:this._totalCssByAttribute("border-left-width")}}},{key:"_calculatePadding",value:function(){return{top:this._totalCssByAttribute("padding-top"),right:this._totalCssByAttribute("padding-right"),bottom:this._totalCssByAttribute("padding-bottom"),left:this._totalCssByAttribute("padding-left")}}},{key:"_totalCssByAttribute",value:function(n){return parseInt(this._$modalDialog.css(n),10)+parseInt(this._$modalContent.css(n),10)+parseInt(this._$modalBody.css(n),10)}},{key:"_updateTitleAndFooter",value:function(){var n=this._$element.data("title")||"",t=this._$element.data("footer")||"";return this._titleIsShown=!1,n||this._config.alwaysShowClose?(this._titleIsShown=!0,this._$modalHeader.css("display","").find(".modal-title").html(n||"&nbsp;")):this._$modalHeader.css("display","none"),this._footerIsShown=!1,t?(this._footerIsShown=!0,this._$modalFooter.css("display","").html(t)):this._$modalFooter.remove(),this}},{key:"_showYoutubeVideo",value:function(n,t){var r=this._getYoutubeId(n),u=n.indexOf("&")>0?n.substr(n.indexOf("&")):"",i=this._$element.data("width")||560,f=this._$element.data("height")||i/(560/315);return this._showVideoIframe("//www.youtube.com/embed/"+r+"?badge=0&autoplay=1&html5=1"+u,i,f,t)}},{key:"_showVimeoVideo",value:function(n,t){var i=500,r=this._$element.data("height")||i/(560/315);return this._showVideoIframe(n+"?autoplay=1",i,r,t)}},{key:"_showInstagramVideo",value:function(n,t){var i=this._$element.data("width")||612,r=i+80;return n=n.substr(-1)!=="/"?n+"/":n,t.html('<iframe width="'+i+'" height="'+r+'" src="'+n+'embed/" frameborder="0" allowfullscreen><\/iframe>'),this._resize(i,r),this._config.onContentLoaded.call(this),this._$modalArrows&&this._$modalArrows.css("display","none"),this._toggleLoading(!1),this}},{key:"_showVideoIframe",value:function(n,t,i,r){return i=i||t,r.html('<div class="embed-responsive embed-responsive-16by9"><iframe width="'+t+'" height="'+i+'" src="'+n+'" frameborder="0" allowfullscreen class="embed-responsive-item"><\/iframe><\/div>'),this._resize(t,i),this._config.onContentLoaded.call(this),this._$modalArrows&&this._$modalArrows.css("display","none"),this._toggleLoading(!1),this}},{key:"_showHtml5Video",value:function(n,t){var i=this._$element.data("width")||560,r=this._$element.data("height")||i/(560/315);return t.html('<div class="embed-responsive embed-responsive-16by9"><video width="'+i+'" height="'+r+'" src="'+n+'" preload="auto" autoplay controls class="embed-responsive-item"><\/video><\/div>'),this._resize(i,r),this._config.onContentLoaded.call(this),this._$modalArrows&&this._$modalArrows.css("display","none"),this._toggleLoading(!1),this}},{key:"_loadRemoteContent",value:function(n,t){var r=this,u=this._$element.data("width")||560,f=this._$element.data("height")||560,e=this._$element.data("disableExternalCheck")||!1;return this._toggleLoading(!1),e||this._isExternal(n)?(t.html('<iframe src="'+n+'" frameborder="0" allowfullscreen><\/iframe>'),this._config.onContentLoaded.call(this)):t.load(n,i.proxy(function(){return r._$element.trigger("loaded.bs.modal")})),this._$modalArrows&&this._$modalArrows.css("display","none"),this._resize(u,f),this}},{key:"_isExternal",value:function(n){var t=n.match(/^([^:\/?#]+:)?(?:\/\/([^\/?#]*))?([^?#]+)?(\?[^#]*)?(#.*)?/);return typeof t[1]=="string"&&t[1].length>0&&t[1].toLowerCase()!==location.protocol?!0:typeof t[2]=="string"&&t[2].length>0&&t[2].replace(new RegExp(":("+{"http:":80,"https:":443}[location.protocol]+")?$"),"")!==location.host?!0:!1}},{key:"_error",value:function(n){return console.error(n),this._containerToUse().html(n),this._resize(300,300),this}},{key:"_preloadImageByIndex",value:function(n,t){var r,u;if(this._$galleryItems)return(r=i(this._$galleryItems.get(n),!1),typeof r=="undefined")?void 0:(u=r.attr("data-remote")||r.attr("href"),(r.attr("data-type")==="image"||this._isImage(u))&&this._preloadImage(u,!1),t>0?this._preloadImageByIndex(n+1,t-1):void 0)}},{key:"_preloadImage",value:function(n,t){var r=this,u;return t=t||!1,u=new Image,t&&function(){var f=setTimeout(function(){t.append(r._config.loadingMessage)},200);u.onload=function(){f&&clearTimeout(f);f=null;var n=i("<img />");return n.attr("src",u.src),n.attr("alt",i(document).find('a[data-toggle="lightbox"][href="/upload'+u.src.split("/upload")[1]+'"] img').attr("alt")),n.addClass("img-fluid"),n.css("width","100%"),t.html(n),r._$modalArrows&&r._$modalArrows.css("display",""),r._resize(u.width,u.height),r._toggleLoading(!1),r._config.onContentLoaded.call(r)};u.onerror=function(){return r._toggleLoading(!1),r._error(r._config.strings.fail+("  "+n))}}(),u.src=n,u}},{key:"_resize",value:function(n,t){var u,f,e,o,h,r;t=t||n;this._wantedWidth=n;this._wantedHeight=t;u=this._padding.left+this._padding.right+this._border.left+this._border.right;f=Math.min(n+u,this._config.doc.body.clientWidth);n+u>f?(t=(f-u)/n*t,n=f):n=n+u;e=0;o=0;
27this._footerIsShown&&(o=this._$modalFooter.outerHeight(!0)||55);this._titleIsShown&&(e=this._$modalHeader.outerHeight(!0)||67);var c=this._padding.top+this._padding.bottom+this._border.bottom+this._border.top,l=parseFloat(this._$modalDialog.css("margin-top"))+parseFloat(this._$modalDialog.css("margin-bottom")),s=Math.min(t,i(window).height()-c-l-e-o);return t>s&&(h=Math.min(s/t,1),n=Math.ceil(h*n)),this._$lightboxContainer.css("height",s),this._$modalDialog.css("width","auto").css("maxWidth",n),this._isBootstrap3?(r=this._$modal.data("bs.modal"),r&&r.handleUpdate()):(r=this._$modal.data("bs.modal"),r&&r._handleUpdate()),this}}],[{key:"_jQueryInterface",value:function(n){var t=this;return n=n||{},this.each(function(){var u=i(t),f=i.extend({},r.Default,u.data(),typeof n=="object"&&n);new r(t,f)})}}]),r}();return i.fn[r]=u._jQueryInterface,i.fn[r].Constructor=u,i.fn[r].noConflict=function(){return i.fn[r]=e,u._jQueryInterface},u}(jQuery)}(jQuery);/*
28* jquery-match-height master by @liabru
29* http://brm.io/jquery-match-height/
30* License MIT
31*/
32!function(t){"use strict";"function"===typeof define&&define.amd?define(["jquery"],t):"undefined"!==typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){var e=-1,o=-1,i=function(t){return parseFloat(t)||0},n=function(e){var o=1,n=t(e),a=null,r=[];return n.each(function(){var e=t(this),n=e.offset().top-i(e.css("margin-top")),s=r.length>0?r[r.length-1]:null;null===s?r.push(e):Math.floor(Math.abs(a-n))<=o?r[r.length-1]=s.add(e):r.push(e),a=n}),r},a=function(e){var o={
33byRow:!0,property:"height",target:null,remove:!1};return"object"===typeof e?t.extend(o,e):("boolean"===typeof e?o.byRow=e:"remove"===e&&(o.remove=!0),o)},r=t.fn.matchHeight=function(e){var o=a(e);if(o.remove){var i=this;return this.css(o.property,""),t.each(r._groups,function(t,e){e.elements=e.elements.not(i)}),this}return this.length<=1&&!o.target?this:(r._groups.push({elements:this,options:o}),r._apply(this,o),this)};r.version="master",r._groups=[],r._throttle=80,r._maintainScroll=!1,r._beforeUpdate=null,
34r._afterUpdate=null,r._rows=n,r._parse=i,r._parseOptions=a,r._apply=function(e,o){var s=a(o),h=t(e),c=[h],l=t(window).scrollTop(),p=t("html").outerHeight(!0),d=h.parents().filter(":hidden");return d.each(function(){var e=t(this);e.data("style-cache",e.attr("style"))}),d.css("display","block"),s.byRow&&!s.target&&(h.each(function(){var e=t(this),o=e.css("display");"inline-block"!==o&&"flex"!==o&&"inline-flex"!==o&&(o="block"),e.data("style-cache",e.attr("style")),e.css({display:o,"padding-top":"0",
35"padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})}),c=n(h),h.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||"")})),t.each(c,function(e,o){var n=t(o),a=0;if(s.target)a=s.target.outerHeight(!1);else{if(s.byRow&&n.length<=1)return void n.css(s.property,"");n.each(function(){var e=t(this),o=e.css("display");"inline-block"!==o&&"flex"!==o&&"inline-flex"!==o&&(o="block");var i={display:o};i[s.property]="",
36e.css(i),e.outerHeight(!1)>a&&(a=e.outerHeight(!1)),e.css("display","")})}n.each(function(){var e=t(this),o=0;s.target&&e.is(s.target)||("border-box"!==e.css("box-sizing")&&(o+=i(e.css("border-top-width"))+i(e.css("border-bottom-width")),o+=i(e.css("padding-top"))+i(e.css("padding-bottom"))),e.css(s.property,a-o+"px"))})}),d.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||null)}),r._maintainScroll&&t(window).scrollTop(l/p*t("html").outerHeight(!0)),this},r._applyDataApi=function(){
37var e={};t("[data-match-height], [data-mh]").each(function(){var o=t(this),i=o.attr("data-mh")||o.attr("data-match-height");i in e?e[i]=e[i].add(o):e[i]=o}),t.each(e,function(){this.matchHeight(!0)})};var s=function(e){r._beforeUpdate&&r._beforeUpdate(e,r._groups),t.each(r._groups,function(){r._apply(this.elements,this.options)}),r._afterUpdate&&r._afterUpdate(e,r._groups)};r._update=function(i,n){if(n&&"resize"===n.type){var a=t(window).width();if(a===e)return;e=a}i?-1===o&&(o=setTimeout(function(){
38s(n),o=-1},r._throttle)):s(n)},t(r._applyDataApi),t(window).bind("load",function(t){r._update(!1,t)}),t(window).bind("resize orientationchange",function(t){r._update(!0,t)})});/*!
39 * imagesLoaded PACKAGED v3.2.0
40 * JavaScript is all like "You images are done yet or what?"
41 * MIT License
42 */
43
44(function(){"use strict";function e(){}function t(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function n(e){return function(){return this[e].apply(this,arguments)}}var i=e.prototype,r=this,s=r.EventEmitter;i.getListeners=function(e){var t,n,i=this._getEvents();if("object"==typeof e){t={};for(n in i)i.hasOwnProperty(n)&&e.test(n)&&(t[n]=i[n])}else t=i[e]||(i[e]=[]);return t},i.flattenListeners=function(e){var t,n=[];for(t=0;t<e.length;t+=1)n.push(e[t].listener);return n},i.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&(t={},t[e]=n),t||n},i.addListener=function(e,n){var i,r=this.getListenersAsObject(e),s="object"==typeof n;for(i in r)r.hasOwnProperty(i)&&-1===t(r[i],n)&&r[i].push(s?n:{listener:n,once:!1});return this},i.on=n("addListener"),i.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},i.once=n("addOnceListener"),i.defineEvent=function(e){return this.getListeners(e),this},i.defineEvents=function(e){for(var t=0;t<e.length;t+=1)this.defineEvent(e[t]);return this},i.removeListener=function(e,n){var i,r,s=this.getListenersAsObject(e);for(r in s)s.hasOwnProperty(r)&&(i=t(s[r],n),-1!==i&&s[r].splice(i,1));return this},i.off=n("removeListener"),i.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},i.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},i.manipulateListeners=function(e,t,n){var i,r,s=e?this.removeListener:this.addListener,o=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(i=n.length;i--;)s.call(this,t,n[i]);else for(i in t)t.hasOwnProperty(i)&&(r=t[i])&&("function"==typeof r?s.call(this,i,r):o.call(this,i,r));return this},i.removeEvent=function(e){var t,n=typeof e,i=this._getEvents();if("string"===n)delete i[e];else if("object"===n)for(t in i)i.hasOwnProperty(t)&&e.test(t)&&delete i[t];else delete this._events;return this},i.removeAllListeners=n("removeEvent"),i.emitEvent=function(e,t){var n,i,r,s,o=this.getListenersAsObject(e);for(r in o)if(o.hasOwnProperty(r))for(i=o[r].length;i--;)n=o[r][i],n.once===!0&&this.removeListener(e,n.listener),s=n.listener.apply(this,t||[]),s===this._getOnceReturnValue()&&this.removeListener(e,n.listener);return this},i.trigger=n("emitEvent"),i.emit=function(e){var t=Array.prototype.slice.call(arguments,1
44);return this.emitEvent(e,t)},i.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},i._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},i._getEvents=function(){return this._events||(this._events={})},e.noConflict=function(){return r.EventEmitter=s,e},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return e}):"object"==typeof module&&module.exports?module.exports=e:this.EventEmitter=e}).call(this),function(e){function t(t){var n=e.event;return n.target=n.target||n.srcElement||t,n}var n=document.documentElement,i=function(){};n.addEventListener?i=function(e,t,n){e.addEventListener(t,n,!1)}:n.attachEvent&&(i=function(e,n,i){e[n+i]=i.handleEvent?function(){var n=t(e);i.handleEvent.call(i,n)}:function(){var n=t(e);i.call(e,n)},e.attachEvent("on"+n,e[n+i])});var r=function(){};n.removeEventListener?r=function(e,t,n){e.removeEventListener(t,n,!1)}:n.detachEvent&&(r=function(e,t,n){e.detachEvent("on"+t,e[t+n]);try{delete e[t+n]}catch(i){e[t+n]=void 0}});var s={bind:i,unbind:r};"function"==typeof define&&define.amd?define("eventie/eventie",s):e.eventie=s}(this),function(e,t){"use strict";"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(n,i){return t(e,n,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("wolfy87-eventemitter"),require("eventie")):e.imagesLoaded=t(e,e.EventEmitter,e.eventie)}(window,function(e,t,n){function i(e,t){for(var n in t)e[n]=t[n];return e}function r(e){return"[object Array]"==f.call(e)}function s(e){var t=[];if(r(e))t=e;else if("number"==typeof e.length)for(var n=0;n<e.length;n++)t.push(e[n]);else t.push(e);return t}function o(e,t,n){if(!(this instanceof o))return new o(e,t,n);"string"==typeof e&&(e=document.querySelectorAll(e)),this.elements=s(e),this.options=i({},this.options),"function"==typeof t?n=t:i(this.options,t),n&&this.on("always",n),this.getImages(),u&&(this.jqDeferred=new u.Deferred);var r=this;setTimeout(function(){r.check()})}function h(e){this.img=e}function a(e,t){this.url=e,this.element=t,this.img=new Image}var u=e.jQuery,c=e.console,f=Object.prototype.toString;o.prototype=new t,o.prototype.options={},o.prototype.getImages=function(){this.images=[];for(var e=0;e<this.elements.length;e++){var t=this.elements[e];this.addElementImages(t)}},o.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),this.options.background===!0&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&d[t]){for(var n=e.querySelectorAll("img"),i=0;i<n.length;i++){var r=n[i];this.addImage(r)}if("string"==typeof this.options.background){var s=e.querySelectorAll(this.options.background);for(i=0;i<s.length;i++){var o=s[i];this.addElementBackgroundImages(o)}}}};var d={1:!0,9:!0,11:!0};o.prototype.addElementBackgroundImages=function(e){for(var t=m(e),n=/url\(['"]*([^'"\)]+)['"]*\)/gi,i=n.exec(t.backgroundImage);null!==i;){var r=i&&i[1];r&&this.addBackground(r,e),i=n.exec(t.backgroundImage)}};var m=e.getComputedStyle||function(e){return e.currentStyle};return o.prototype.addImage=function(e){var t=new h(e);this.images.push(t)},o.prototype.addBackground=function(e,t){var n=new a(e,t);this.images.push(n)},o.prototype.check=function(){function e(e,n,i){setTimeout(function(){t.progress(e,n,i)})}var t=this;if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();for(var n=0;n<this.images.length;n++){var i=this.images[n];i.once("progress",e),i.check()}},o.prototype.progress=function(e,t,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emit("progress",this,e,t),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&c&&c.log("progress: "+n,e,t)},o.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emit(e,this),this.emit("always",this),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},h.prototype=new t,h.prototype.check=function(){var e=this.getIsImageComplete();
44return e?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,n.bind(this.proxyImage,"load",this),n.bind(this.proxyImage,"error",this),n.bind(this.img,"load",this),n.bind(this.img,"error",this),void(this.proxyImage.src=this.img.src))},h.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},h.prototype.confirm=function(e,t){this.isLoaded=e,this.emit("progress",this,this.img,t)},h.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){n.unbind(this.proxyImage,"load",this),n.unbind(this.proxyImage,"error",this),n.unbind(this.img,"load",this),n.unbind(this.img,"error",this)},a.prototype=new h,a.prototype.check=function(){n.bind(this.img,"load",this),n.bind(this.img,"error",this),this.img.src=this.url;var e=this.getIsImageComplete();e&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},a.prototype.unbindEvents=function(){n.unbind(this.img,"load",this),n.unbind(this.img,"error",this)},a.prototype.confirm=function(e,t){this.isLoaded=e,this.emit("progress",this,this.element,t)},o.makeJQueryPlugin=function(t){t=t||e.jQuery,t&&(u=t,u.fn.imagesLoaded=function(e,t){var n=new o(this,e,t);return n.jqDeferred.promise(u(this))})},o.makeJQueryPlugin(),o});
vendor: 24,103 bytes, lines 44-52
44/*!
45 * Masonry PACKAGED v4.2.2
46 * Cascading grid layout library
47 * https://masonry.desandro.com
48 * MIT License
49 * by David DeSandro
50 */
51
52!function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,r,a){function h(t,e,n){var o,r="$()."+i+'("'+e+'")';return t.each(function(t,h){var u=a.data(h,i);if(!u)return void s(i+" not initialized. Cannot call methods, i.e. "+r);var d=u[e];if(!d||"_"==e.charAt(0))return void s(r+" is not a valid method");var l=d.apply(u,n);o=void 0===o?l:o}),void 0!==o?o:t}function u(t,e){t.each(function(t,n){var o=a.data(n,i);o?(o.option(e),o._init()):(o=new r(n,e),a.data(n,i,o))})}a=a||e||t.jQuery,a&&(r.prototype.option||(r.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=o.call(arguments,1);return h(this,t,e)}return u(this,t),this},n(a))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=Array.prototype.slice,r=t.console,s="undefined"==typeof r?function(){}:function(t){r.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<i.length;o++){var r=i[o],s=n&&n[r];s&&(this.off(t,r),delete n[r]),r.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){"function"==typeof define&&define.amd?define("get-size/get-size",e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t),i=-1==t.indexOf("%")&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;u>e;e++){var i=h[e];t[i]=0}return t}function n(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}function o(){if(!d){d=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var o=n(e);s=200==Math.round(t(o.width)),r.isBoxSizeOuter=s,i.removeChild(e)}}function r(e){if(o(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var r=n(e);if("none"==r.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var d=a.isBorderBox="border-box"==r.boxSizing,l=0;u>l;l++){var c=h[l],f=r[c],m=parseFloat(f);a[c]=isNaN(m)?0:m}var p=a.paddingLeft+a.paddingRight,g=a.paddingTop+a.paddingBottom,y=a.marginLeft+a.marginRight,v=a.marginTop+a.marginBottom,_=a.borderLeftWidth+a.borderRightWidth,z=a.borderTopWidth+a.borderBottomWidth,E=d&&s,b=t(r.width);b!==!1&&(a.width=b+(E?0:p+_));var x=t(r.height);return x!==!1&&(a.height=x+(E?0:g+z)),a.innerWidth=a.width-(p+_),a.innerHeight=a.height-(g+z),a.outerWidth=a.width+y,a.outerHeight=a.height+v,a}}var s,a="undefined"==typeof console?e:function(t){console.error(t)},h=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],u=h.length,d=!1;return r}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i],o=n+"MatchesSelector";if(t[o])return o}}();return function(e,i){return e[t](i)}}),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e};var n=Array.prototype.slice;i.makeArray=function(t){if(Array.isArray(t))return t;if(null===t||void 0===t)return[];var e="object"==typeof t&&"number"==typeof t.length;return e?n.call(t):[t]},i.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,n){t=i.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!n)return void o.push(t);e(t,n)&&o.push(t);for(var i=t.querySelectorAll(n),r=0;r<i.length;r++)o.push(i[r])}}),o},i.debounceMethod=function(t,e,i){i=i||100;var n=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o];clearTimeout(t);var e=arguments,r=this;this[o]=setTimeout(function(){n.apply(r,e),delete r[o]},i)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var o=t.console;return i.htmlInit=function(e,n){i.docReady(function(){var r=i.toDashed(n),s="data-"+r,a=document.querySelectorAll("["+s+"]"),h=document.querySelectorAll(".js-"+r),u=i.makeArray(a).concat(i.makeArray(h)),d=s+"-options",l=t.jQuery;u.forEach(function(t){var i,r=t.getAttribute(s)||t.getAttribute(d);try{i=r&&JSON.parse(r)}catch(a){return void(o&&o.error("Error parsing "+s+" on "+t.className+": "+a))}var h=new e(t,i);l&&l.data(t,n,h)})})},i}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){"use strict";function i(t){for(var e in t)return!1;return e=null,!0}function n(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}function o(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}var r=document.documentElement.style,s="string"==typeof r.transition?"transition":"WebkitTransition",a="string"==typeof r.transform?"transform":"WebkitTransform",h={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[s],u={transform:a,transition:s,transitionDuration:s+"Duration",transitionProperty:s+"Property",transitionDelay:s+"Delay"},d=n.prototype=Object.create(t.prototype);d.constructor=n,d._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},d.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},d.getSize=function(){this.size=e(this.element)},d.css=function(t){var e=this.element.style;for(var i in t){var n=u[i]||i;e[n]=t[i]}},d.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],o=t[i?"top":"bottom"],r=parseFloat(n),s=parseFloat(o),a=this.layout.size;-1!=n.indexOf("%")&&(r=r/100*a.width),-1!=o.indexOf("%")&&(s=s/100*a.height),r=isNaN(r)?0:r,s=isNaN(s)?0:s,r-=e?a.paddingLeft:a.paddingRight,s-=i?a.paddingTop:a.paddingBottom,this.position.x=r,this.position.y=s},d.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),o=i?"paddingLeft":"paddingRight",r=i?"left":"right",s=i?"right":"left",a=this.position.x+t[o];e[r]=this.getXValue(a),e[s]="";var h=n?"paddingTop":"paddingBottom",u=n?"top":"bottom",d=n?"bottom":"top",l=this.position.y+t[h];e[u]=this.getYValue(l),e[d]="",this.css(e),this.emitEvent("layout",[this])},d.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},d.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},d._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=t==this.position.x&&e==this.position.y;if(this.setPosition(t,e),o&&!this.isTransitioning)return void this.layoutPosition();var r=t-i,s=e-n,a={};a.transform=this.getTranslate(r,s),this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},d.getTranslate=function(t,e){var i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop");return t=i?t:-t,e=n?e:-e,"translate3d("+t+"px, "+e+"px, 0)"},d.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},d.moveTo=d._transitionTo,d.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},d._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},d.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var l="opacity,"+o(a);d.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:l,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(h,this,!1)}},d.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},d.onotransitionend=function(t){this.ontransitionend(t)};var c={"-webkit-transform":"transform"};d.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,n=c[t.propertyName]||t.propertyName;if(delete e.ingProperties[n],i(e.ingProperties)&&this.disableTransition(),n in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[n]),n in e.onEnd){var o=e.onEnd[n];o.call(this),delete e.onEnd[n]}this.emitEvent("transitionEnd",[this])}},d.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(h,this,!1),this.isTransitioning=!1},d._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var f={transitionProperty:"",transitionDuration:"",transitionDelay:""};return d.removeTransitionStyles=function(){this.css(f)},d.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},d.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},d.remove=function(){return s&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},d.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("visibleStyle");e[i]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},d.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},d.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},d.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("hiddenStyle");e[i]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},d.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},d.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},n}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,n,o,r){return e(t,i,n,o,r)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,i,n,o){"use strict";function r(t,e){var i=n.getQueryElement(t);if(!i)return void(h&&h.error("Bad element for "+this.constructor.namespace+": "+(i||t)));this.element=i,u&&(this.$element=u(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e);var o=++l;this.element.outlayerGUID=o,c[o]=this,this._create();var r=this._getOption("initLayout");r&&this.layout()}function s(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}function a(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],n=e&&e[2];if(!i.length)return 0;i=parseFloat(i);var o=m[n]||1;return i*o}var h=t.console,u=t.jQuery,d=function(){},l=0,c={};r.namespace="outlayer",r.Item=o,r.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var f=r.prototype;n.extend(f,e.prototype),f.option=function(t){n.extend(this.options,t)},f._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},r.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},f._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");t&&this.bindResize()},f.reloadItems=function(){this.items=this._itemize(this.element.children)},f._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var r=e[o],s=new i(r,this);n.push(s)}return n},f._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},f.getItemElements=function(){return this.items.map(function(t){return t.element})},f.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},f._init=f.layout,f._resetLayout=function(){this.getSize()},f.getSize=function(){this.size=i(this.element)},f._getMeasurement=function(t,e){var n,o=this.options[t];o?("string"==typeof o?n=this.element.querySelector(o):o instanceof HTMLElement&&(n=o),this[t]=n?i(n)[e]:o):this[t]=0},f.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},f._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},f._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var i=[];t.forEach(function(t){var n=this._getItemLayoutPosition(t);n.item=t,n.isInstant=e||t.isLayoutInstant,i.push(n)},this),this._processLayoutQueue(i)}},f._getItemLayoutPosition=function(){return{x:0,y:0}},f._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},f.updateStagger=function(){var t=this.options.stagger;return null===t||void 0===t?void(this.stagger=0):(this.stagger=a(t),this.stagger)},f._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},f._postLayout=function(){this.resizeContainer()},f.resizeContainer=function(){var t=this._getOption("resizeContainer");if(t){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},f._getContainerSize=d,f._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},f._emitCompleteOnItems=function(t,e){function i(){o.dispatchEvent(t+"Complete",null,[e])}function n(){s++,s==r&&i()}var o=this,r=e.length;if(!e||!r)return void i();var s=0;e.forEach(function(e){e.once(t,n)})},f.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),u)if(this.$element=this.$element||u(this.element),e){var o=u.Event(e);o.type=t,this.$element.trigger(o,i)}else this.$element.trigger(t,i)},f.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},f.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},f.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},f.unstamp=function(t){t=this._find(t),t&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},f._find=function(t){return t?("string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)):void 0},f._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},f._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},f._manageStamp=d,f._getElementOffset=function(t){var e=t.getBoundingClientRect(),n=this._boundingRect,o=i(t),r={left:e.left-n.left-o.marginLeft,top:e.top-n.top-o.marginTop,right:n.right-e.right-o.marginRight,bottom:n.bottom-e.bottom-o.marginBottom};return r},f.handleEvent=n.handleEvent,f.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},f.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},f.onresize=function(){this.resize()},n.debounceMethod(r,"onresize",100),f.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},f.needsResizeLayout=function(){var t=i(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},f.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},f.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},f.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},f.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.reveal()})}},f.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.hide()})}},f.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},f.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},f.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},f.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getItem(t);i&&e.push(i)},this),e},f.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},f.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete c[e],delete this.element.outlayerGUID,u&&u.removeData(this.element,this.constructor.namespace)},r.data=function(t){t=n.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&c[e]},r.create=function(t,e){var i=s(r);return i.defaults=n.extend({},r.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},r.compatOptions),i.namespace=t,i.data=r.data,i.Item=s(o),n.htmlInit(i,t),u&&u.bridget&&u.bridget(t,i),i};var m={ms:1,s:1e3};return r.Item=o,r}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,e){var i=t.create("masonry");i.compatOptions.fitWidth="isFitWidth";var n=i.prototype;return n._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},n.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var n=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,r=o/n,s=n-o%n,a=s&&1>s?"round":"floor";r=Math[a](r),this.cols=Math.max(r,1)},n.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,n=e(i);this.containerWidth=n&&n.innerWidth},n._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&1>e?"round":"ceil",n=Math[i](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var o=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",r=this[o](n,t),s={x:this.columnWidth*r.col,y:r.y},a=r.y+t.size.outerHeight,h=n+r.col,u=r.col;h>u;u++)this.colYs[u]=a;return s},n._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},n._getTopColGroup=function(t){if(2>t)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;i>n;n++)e[n]=this._getColGroupY(n,t);return e},n._getColGroupY=function(t,e){if(2>e)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},n._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,n=t>1&&i+t>this.cols;i=n?0:i;var o=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=o?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},n._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),o=this._getOption("originLeft"),r=o?n.left:n.right,s=r+i.outerWidth,a=Math.floor(r/this.columnWidth);a=Math.max(0,a);var h=Math.floor(s/this.columnWidth);h-=s%this.columnWidth?0:1,h=Math.min(this.cols-1,h);for(var u=this._getOption("originTop"),d=(u?n.top:n.bottom)+i.outerHeight,l=a;h>=l;l++)this.colYs[l]=Math.max(d,this.colYs[l])},n._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},n._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},n.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i});
52/*!
53 * SmartMenus jQuery Plugin - v1.1.0 - September 17, 2017
54 * http://www.smartmenus.org/
55 *
56 * Copyright Vasil Dinkov, Vadikom Web Ltd.
57 * http://vadikom.com
58 *
59 * Licensed MIT
60 */
61(function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof module=="object"&&typeof module.exports=="object"?module.exports=n(require("jquery")):n(jQuery)})(function(n){function o(t){var h=".smartmenus_mouse";if(f||t)f&&t&&(n(document).off(h),f=!1);else{var c=!0,o=null,l={mousemove:function(t){var u={x:t.pageX,y:t.pageY,timeStamp:(new Date).getTime()},e,s,f;o&&(e=Math.abs(o.x-u.x),s=Math.abs(o.y-u.y),(e>0||s>0)&&e<=2&&s<=2&&u.timeStamp-o.timeStamp<=300&&(r=!0,c&&(f=n(t.target).closest("a"),f.is("a")&&n.each(i,function(){if(n.contains(this.$root[0],f[0]))return this.itemEnter({currentTarget:f[0]}),!1}),c=!1)));o=u}};l[e?"touchstart":"pointerover pointermove pointerout MSPointerOver MSPointerMove MSPointerOut"]=function(n){s(n.originalEvent)&&(r=!1)};n(document).on(u(l,h));f=!0}}function s(n){return!/^(4|mouse)$/.test(n.pointerType)}function u(n,t){var i,r;t||(t="");i={};for(r in n)i[r.split(" ").join(t+" ")+t]=n[r];return i}var i=[],r=!1,e="ontouchstart"in window,f=!1,h=window.requestAnimationFrame||function(n){return setTimeout(n,1e3/60)},c=window.cancelAnimationFrame||function(n){clearTimeout(n)},t=!!n.fn.animate;return n.SmartMenus=function(t,i){this.$root=n(t);this.opts=i;this.rootId="";this.accessIdPrefix="";this.$subArrow=null;this.activatedItems=[];this.visibleSubMenus=[];this.showTimeout=0;this.hideTimeout=0;this.scrollTimeout=0;this.clickActivated=!1;this.focusActivated=!1;this.zIndexInc=0;this.idInc=0;this.$firstLink=null;this.$firstSub=null;this.disabled=!1;this.$disableOverlay=null;this.$touchScrollingSub=null;this.cssTransforms3d="perspective"in t.style||"webkitPerspective"in t.style;this.wasCollapsible=!1;this.init()},n.extend(n.SmartMenus,{hideAll:function(){n.each(i,function(){this.menuHideAll()})},destroy:function(){while(i.length)i[0].destroy();o(!0)},prototype:{init:function(t){var f=this,r;if(!t){i.push(this);this.rootId=((new Date).getTime()+Math.random()+"").replace(/\D/g,"");this.accessIdPrefix="sm-"+this.rootId+"-";this.$root.hasClass("sm-rtl")&&(this.opts.rightToLeftSubMenus=!0);r=".smartmenus";this.$root.data("smartmenus",this).attr("data-smartmenus-id",this.rootId).dataSM("level",1).on(u({"mouseover focusin":n.proxy(this.rootOver,this),"mouseout focusout":n.proxy(this.rootOut,this),keydown:n.proxy(this.rootKeyDown,this)},r)).on(u({mouseenter:n.proxy(this.itemEnter,this),mouseleave:n.proxy(this.itemLeave,this),mousedown:n.proxy(this.itemDown,this),focus:n.proxy(this.itemFocus,this),blur:n.proxy(this.itemBlur,this),click:n.proxy(this.itemClick,this)},r),"a");if(r+=this.rootId,this.opts.hideOnClick)n(document).on(u({touchstart:n.proxy(this.docTouchStart,this),touchmove:n.proxy(this.docTouchMove,this),touchend:n.proxy(this.docTouchEnd,this),click:n.proxy(this.docClick,this)},r));n(window).on(u({"resize orientationchange":n.proxy(this.winResize,this)},r));this.opts.subIndicators&&(this.$subArrow=n("<span/>").addClass("sub-arrow"),this.opts.subIndicatorsText&&this.$subArrow.html(this.opts.subIndicatorsText));o()}if(this.$firstSub=this.$root.find("ul").each(function(){f.menuInit(n(this))}).eq(0),this.$firstLink=this.$root.find("a").eq(0),this.opts.markCurrentItem){var e=/(index|default)\.[^#\?\/]*/i,s=window.location.href.replace(e,""),h=s.replace(/#.*/,"");this.$root.find("a").each(function(){var t=this.href.replace(e,""),i=n(this);(t==s||t==h)&&(i.addClass("current"),f.opts.markCurrentTree&&i.parentsUntil("[data-smartmenus-id]","ul").each(function(){n(this).dataSM("parent-a").addClass("current")}))})}this.wasCollapsible=this.isCollapsible()},destroy:function(t){var r,u;t||(r=".smartmenus",this.$root.removeData("smartmenus").removeAttr("data-smartmenus-id").removeDataSM("level").off(r),r+=this.rootId,n(document).off(r),n(window).off(r),this.opts.subIndicators&&(this.$subArrow=null));this.menuHideAll();u=this;this.$root.find("ul").each(function(){var t=n(this);t.dataSM("scroll-arrows")&&t.dataSM("scroll-arrows").remove();t.dataSM("shown-before")&&((u.opts.subMenusMinWidth||u.opts.subMenusMaxWidth)&&t.css({width:"",minWidth:"",maxWidth:""}).removeClass("sm-nowrap"),t.dataSM("scroll-arrows")&&t.dataSM("scroll-arrows").remove(),t.css({zIndex:"",top:"",left:"",marginLeft:"",marginTop:"",display:""}));(t.attr("id")||"").indexOf(u.accessIdPrefix)==0&&t.removeAttr("id")}).removeDataSM("in-mega").removeDataSM("shown-before").removeDataSM("scroll-arrows").removeDataSM("parent-a").removeDataSM("level").removeDataSM("beforefirstshowfired").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeAttr("aria-expanded");this.$root.find("a.has-submenu").each(function(){var t=n(this);t.attr("id").indexOf(u.accessIdPrefix)==0&&t.removeAttr("id")}).removeClass("has-submenu").removeDataSM("sub").removeAttr("aria-haspopup").removeAttr("aria-controls").removeAttr("aria-expanded").closest("li").removeDataSM("sub");this.opts.subIndicators&&this.$root.find("span.sub-arrow").remove();this.opts.markCurrentItem&&this.$root.find("a.current").removeClass("current");t||(this.$root=null,this.$firstLink=null,this.$firstSub=null,this.$disableOverlay&&(this.$disableOverlay.remove(),this.$disableOverlay=null),i.splice(n.inArray(this,i),1))},disable:function(t){if(!this.disabled){if(this.menuHideAll(),!t&&!this.opts.isPopup&&this.$root.is(":visible")){var i=this.$root.offset();this.$disableOverlay=n('<div class="sm-jquery-disable-overlay"/>
61').css({position:"absolute",top:i.top,left:i.left,width:this.$root.outerWidth(),height:this.$root.outerHeight(),zIndex:this.getStartZIndex(!0),opacity:0}).appendTo(document.body)}this.disabled=!0}},docClick:function(t){if(this.$touchScrollingSub){this.$touchScrollingSub=null;return}(this.visibleSubMenus.length&&!n.contains(this.$root[0],t.target)||n(t.target).closest("a").length)&&this.menuHideAll()},docTouchEnd:function(){if(this.lastTouch){if(this.visibleSubMenus.length&&(this.lastTouch.x2===undefined||this.lastTouch.x1==this.lastTouch.x2)&&(this.lastTouch.y2===undefined||this.lastTouch.y1==this.lastTouch.y2)&&(!this.lastTouch.target||!n.contains(this.$root[0],this.lastTouch.target))){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0);var t=this;this.hideTimeout=setTimeout(function(){t.menuHideAll()},350)}this.lastTouch=null}},docTouchMove:function(n){if(this.lastTouch){var t=n.originalEvent.touches[0];this.lastTouch.x2=t.pageX;this.lastTouch.y2=t.pageY}},docTouchStart:function(n){var t=n.originalEvent.touches[0];this.lastTouch={x1:t.pageX,y1:t.pageY,target:t.target}},enable:function(){this.disabled&&(this.$disableOverlay&&(this.$disableOverlay.remove(),this.$disableOverlay=null),this.disabled=!1)},getClosestMenu:function(t){for(var i=n(t).closest("ul");i.dataSM("in-mega");)i=i.parent().closest("ul");return i[0]||null},getHeight:function(n){return this.getOffset(n,!0)},getOffset:function(n,t){var u,i,r;return n.css("display")=="none"&&(u={position:n[0].style.position,visibility:n[0].style.visibility},n.css({position:"absolute",visibility:"hidden"}).show()),i=n[0].getBoundingClientRect&&n[0].getBoundingClientRect(),r=i&&(t?i.height||i.bottom-i.top:i.width||i.right-i.left),r||r===0||(r=t?n[0].offsetHeight:n[0].offsetWidth),u&&n.hide().css(u),r},getStartZIndex:function(n){var t=parseInt(this[n?"$root":"$firstSub"].css("z-index"));return!n&&isNaN(t)&&(t=parseInt(this.$root.css("z-index"))),isNaN(t)?1:t},getTouchPoint:function(n){return n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0]||n},getViewport:function(n){var i=n?"Height":"Width",t=document.documentElement["client"+i],r=window["inner"+i];return r&&(t=Math.min(t,r)),t},getViewportHeight:function(){return this.getViewport(!0)},getViewportWidth:function(){return this.getViewport()},getWidth:function(n){return this.getOffset(n)},handleEvents:function(){return!this.disabled&&this.isCSSOn()},handleItemEvents:function(n){return this.handleEvents()&&!this.isLinkInMegaMenu(n)},isCollapsible:function(){return this.$firstSub.css("position")=="static"},isCSSOn:function(){return this.$firstLink.css("display")!="inline"},isFixed:function(){var t=this.$root.css("position")=="fixed";return t||this.$root.parentsUntil("body").each(function(){if(n(this).css("position")=="fixed")return t=!0,!1}),t},isLinkInMegaMenu:function(t){return n(this.getClosestMenu(t[0])).hasClass("mega-menu")},isTouchMode:function(){return!r||this.opts.noMouseOver||this.isCollapsible()},itemActivate:function(t,i){var u=t.closest("ul"),r=u.dataSM("level"),e,f;(r>1&&(!this.activatedItems[r-2]||this.activatedItems[r-2][0]!=u.dataSM("parent-a")[0])&&(e=this,n(u.parentsUntil("[data-smartmenus-id]","ul").get().reverse()).add(u).each(function(){e.itemActivate(n(this).dataSM("parent-a"))})),(!this.isCollapsible()||i)&&this.menuHideSubMenus(!this.activatedItems[r-1]||this.activatedItems[r-1][0]!=t[0]?r-1:r),this.activatedItems[r-1]=t,this.$root.triggerHandler("activate.smapi",t[0])!==!1)&&(f=t.dataSM("sub"),f&&(this.isTouchMode()||!this.opts.showOnClick||this.clickActivated)&&this.menuShow(f))},itemBlur:function(t){var i=n(t.currentTarget);this.handleItemEvents(i)&&this.$root.triggerHandler("blur.smapi",i[0])},itemClick:function(t){var i=n(t.currentTarget);if(this.handleItemEvents(i)){if(this.$touchScrollingSub&&this.$touchScrollingSub[0]==i.closest("ul")[0])return this.$touchScrollingSub=null,t.stopPropagation(),!1;if(this.$root.triggerHandler("click.smapi",i[0])===!1)return!1;var u=n(t.target).is(".sub-arrow"),r=i.dataSM("sub"),f=r?r.dataSM("level")==2:!1,e=this.isCollapsible(),o=/toggle$/.test(this.opts.collapsibleBehavior),h=/link$/.test(this.opts.collapsibleBehavior),s=/^accordion/.test(this.opts.collapsibleBehavior);if(r&&!r.is(":visible")){if((!h||!e||u)&&(this.opts.showOnClick&&f&&(this.clickActivated=!0),this.itemActivate(i,s),r.is(":visible")))return this.focusActivated=!0,!1}else if(e&&(o||u))return this.itemActivate(i,s),this.menuHide(r),o&&(this.focusActivated=!1),!1;if(this.opts.showOnClick&&f||i.hasClass("disabled")||this.$root.triggerHandler("select.smapi",i[0])===!1)return!1}},itemDown:function(t){var i=n(t.currentTarget);this.handleItemEvents(i)&&i.dataSM("mousedown",!0)},itemEnter:function(t){var i=n(t.currentTarget),r;this.handleItemEvents(i)&&(this.isTouchMode()||(this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0),r=this,this.showTimeout=setTimeout(function(){r.itemActivate(i)},this.opts.showOnClick&&i.closest("ul").dataSM("level")==1?1:this.opts.showTimeout)),this.$root.triggerHandler("mouseenter.smapi",i[0]))},itemFocus:function(t){var i=n(t.currentTarget);this.handleItemEvents(i)&&(!this.focusActivated||this.isTouchMode()&&i.dataSM("mousedown")||this.activatedItems.length&&this.activatedItems[this.activatedItems.length-1][0]==i[0]||this.itemActivate(i,!0),this.$root.triggerHandler("focus.smapi",i[0]))},itemLeave:function(t){var i=n(t.currentTarget);this.handleItemEvents(i)&&(this.isTouchMode()||(i[0].blur(),this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0)),i.removeDataSM("mousedown"),this.$root.triggerHandler("mouseleave.
61smapi",i[0]))},menuHide:function(i){var r,u;this.$root.triggerHandler("beforehide.smapi",i[0])!==!1&&(t&&i.stop(!0,!0),i.css("display")!="none"&&(r=function(){i.css("z-index","")},this.isCollapsible()?t&&this.opts.collapsibleHideFunction?this.opts.collapsibleHideFunction.call(this,i,r):i.hide(this.opts.collapsibleHideDuration,r):t&&this.opts.hideFunction?this.opts.hideFunction.call(this,i,r):i.hide(this.opts.hideDuration,r),i.dataSM("scroll")&&(this.menuScrollStop(i),i.css({"touch-action":"","-ms-touch-action":"","-webkit-transform":"",transform:""}).off(".smartmenus_scroll").removeDataSM("scroll").dataSM("scroll-arrows").hide()),i.dataSM("parent-a").removeClass("highlighted").attr("aria-expanded","false"),i.attr({"aria-expanded":"false","aria-hidden":"true"}),u=i.dataSM("level"),this.activatedItems.splice(u-1,1),this.visibleSubMenus.splice(n.inArray(i,this.visibleSubMenus),1),this.$root.triggerHandler("hide.smapi",i[0])))},menuHideAll:function(){var i,n;for(this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0),i=this.opts.isPopup?1:0,n=this.visibleSubMenus.length-1;n>=i;n--)this.menuHide(this.visibleSubMenus[n]);this.opts.isPopup&&(t&&this.$root.stop(!0,!0),this.$root.is(":visible")&&(t&&this.opts.hideFunction?this.opts.hideFunction.call(this,this.$root):this.$root.hide(this.opts.hideDuration)));this.activatedItems=[];this.visibleSubMenus=[];this.clickActivated=!1;this.focusActivated=!1;this.zIndexInc=0;this.$root.triggerHandler("hideAll.smapi")},menuHideSubMenus:function(n){for(var i,t=this.activatedItems.length-1;t>=n;t--)i=this.activatedItems[t].dataSM("sub"),i&&this.menuHide(i)},menuInit:function(n){var i,r,t,u,f;if(!n.dataSM("in-mega")){for(n.hasClass("mega-menu")&&n.find("ul").dataSM("in-mega",!0),i=2,r=n[0];(r=r.parentNode.parentNode)!=this.$root[0];)i++;t=n.prevAll("a").eq(-1);t.length||(t=n.prevAll().find("a").eq(-1));t.addClass("has-submenu").dataSM("sub",n);n.dataSM("parent-a",t).dataSM("level",i).parent().dataSM("sub",n);u=t.attr("id")||this.accessIdPrefix+ ++this.idInc;f=n.attr("id")||this.accessIdPrefix+ ++this.idInc;t.attr({id:u,"aria-haspopup":"true","aria-controls":f,"aria-expanded":"false"});n.attr({id:f,role:"group","aria-hidden":"true","aria-labelledby":u,"aria-expanded":"false"});this.opts.subIndicators&&t[this.opts.subIndicatorsPos](this.$subArrow.clone())}},menuPosition:function(t){var w=t.dataSM("parent-a"),g=w.closest("li"),ut=g.parent(),nt=t.dataSM("level"),c=this.getWidth(t),i=this.getHeight(t),ft=w.offset(),st=ft.left,ht=ft.top,tt=this.getWidth(w),y=this.getHeight(w),et=n(window),b=et.scrollLeft(),l=et.scrollTop(),ot=this.getViewportWidth(),a=this.getViewportHeight(),o=ut.parent().is("[data-sm-horizontal-sub]")||nt==2&&!ut.hasClass("sm-vertical"),k=this.opts.rightToLeftSubMenus&&!g.is("[data-sm-reverse]")||!this.opts.rightToLeftSubMenus&&g.is("[data-sm-reverse]"),v=nt==2?this.opts.mainMenuSubOffsetX:this.opts.subMenusSubOffsetX,d=nt==2?this.opts.mainMenuSubOffsetY:this.opts.subMenusSubOffsetY,r,s,p,h,f,it,rt;if(o?(r=k?tt-c-v:v,s=this.opts.bottomToTopSubMenus?-i-d:y+d):(r=k?v-c:tt-v,s=this.opts.bottomToTopSubMenus?y-d-i:d),this.opts.keepInViewport&&(p=st+r,h=ht+s,k&&p<b?r=o?b-p+r:tt-v:!k&&p+c>b+ot&&(r=o?b+ot-c-p+r:v-c),o||(i<a&&h+i>l+a?s+=l+a-i-h:(i>=a||h<l)&&(s+=l-h)),(o&&(h+i>l+a+.49||h<l)||!o&&i>a+.49)&&(f=this,t.dataSM("scroll-arrows")||t.dataSM("scroll-arrows",n([n('<span class="scroll-up"><span class="scroll-up-arrow"><\/span><\/span>')[0],n('<span class="scroll-down"><span class="scroll-down-arrow"><\/span><\/span>')[0]]).on({mouseenter:function(){t.dataSM("scroll").up=n(this).hasClass("scroll-up");f.menuScroll(t)},mouseleave:function(n){f.menuScrollStop(t);f.menuScrollOut(t,n)},"mousewheel DOMMouseScroll":function(n){n.preventDefault()}}).insertAfter(t)),it=".smartmenus_scroll",t.dataSM("scroll",{y:this.cssTransforms3d?0:s-y,step:1,itemH:y,subH:i,arrowDownH:this.getHeight(t.dataSM("scroll-arrows").eq(1))}).on(u({mouseover:function(n){f.menuScrollOver(t,n)},mouseout:function(n){f.menuScrollOut(t,n)},"mousewheel DOMMouseScroll":function(n){f.menuScrollMousewheel(t,n)}},it)).dataSM("scroll-arrows").css({top:"auto",left:"0",marginLeft:r+(parseInt(t.css("border-left-width"))||0),width:c-(parseInt(t.css("border-left-width"))||0)-(parseInt(t.css("border-right-width"))||0),zIndex:t.css("z-index")}).eq(o&&this.opts.bottomToTopSubMenus?0:1).show(),this.isFixed()))){rt={};rt[e?"touchstart touchmove touchend":"pointerdown pointermove pointerup MSPointerDown MSPointerMove MSPointerUp"]=function(n){f.menuScrollTouch(t,n)};t.css({"touch-action":"none","-ms-touch-action":"none"}).on(u(rt,it))}t.css({top:"auto",left:"0",marginLeft:r,marginTop:s-y})},menuScroll:function(n,t,i){var u=n.dataSM("scroll"),s=n.dataSM("scroll-arrows"),e=u.up?u.upEnd:u.downEnd,f,o,c;if(!t&&u.momentum){if(u.momentum*=.92,f=u.momentum,f<.5){this.menuScrollStop(n);return}}else f=i||(t||!this.opts.scrollAccelerate?this.opts.scrollStep:Math.floor(u.step));o=n.dataSM("level");this.activatedItems[o-1]&&this.activatedItems[o-1].dataSM("sub")&&this.activatedItems[o-1].dataSM("sub").is(":visible")&&this.menuHide
61SubMenus(o-1);u.y=u.up&&e<=u.y||!u.up&&e>=u.y?u.y:Math.abs(e-u.y)>f?u.y+(u.up?f:-f):e;n.css(this.cssTransforms3d?{"-webkit-transform":"translate3d(0, "+u.y+"px, 0)",transform:"translate3d(0, "+u.y+"px, 0)"}:{marginTop:u.y});r&&(u.up&&u.y>u.downEnd||!u.up&&u.y<u.upEnd)&&s.eq(u.up?1:0).show();u.y==e?(r&&s.eq(u.up?0:1).hide(),this.menuScrollStop(n)):t||(this.opts.scrollAccelerate&&u.step<this.opts.scrollStep&&(u.step+=.2),c=this,this.scrollTimeout=h(function(){c.menuScroll(n)}))},menuScrollMousewheel:function(n,t){if(this.getClosestMenu(t.target)==n[0]){t=t.originalEvent;var i=(t.wheelDelta||-t.detail)>0;n.dataSM("scroll-arrows").eq(i?0:1).is(":visible")&&(n.dataSM("scroll").up=i,this.menuScroll(n,!0))}t.preventDefault()},menuScrollOut:function(t,i){r&&(/^scroll-(up|down)/.test((i.relatedTarget||"").className)||(t[0]==i.relatedTarget||n.contains(t[0],i.relatedTarget))&&this.getClosestMenu(i.relatedTarget)==t[0]||t.dataSM("scroll-arrows").css("visibility","hidden"))},menuScrollOver:function(t,i){if(r&&!/^scroll-(up|down)/.test(i.target.className)&&this.getClosestMenu(i.target)==t[0]){this.menuScrollRefreshData(t);var u=t.dataSM("scroll"),f=n(window).scrollTop()-t.dataSM("parent-a").offset().top-u.itemH;t.dataSM("scroll-arrows").eq(0).css("margin-top",f).end().eq(1).css("margin-top",f+this.getViewportHeight()-u.arrowDownH).end().css("visibility","visible")}},menuScrollRefreshData:function(t){var r=t.dataSM("scroll"),i=n(window).scrollTop()-t.dataSM("parent-a").offset().top-r.itemH;this.cssTransforms3d&&(i=-(parseFloat(t.css("margin-top"))-i));n.extend(r,{upEnd:i,downEnd:i+this.getViewportHeight()-r.subH})},menuScrollStop:function(n){if(this.scrollTimeout)return c(this.scrollTimeout),this.scrollTimeout=0,n.dataSM("scroll").step=1,!0},menuScrollTouch:function(t,i){var u,r,f,e;i=i.originalEvent;s(i)&&(u=this.getTouchPoint(i),this.getClosestMenu(u.target)==t[0]&&(r=t.dataSM("scroll"),/(start|down)$/i.test(i.type)?(this.menuScrollStop(t)?(i.preventDefault(),this.$touchScrollingSub=t):this.$touchScrollingSub=null,this.menuScrollRefreshData(t),n.extend(r,{touchStartY:u.pageY,touchStartTime:i.timeStamp})):/move$/i.test(i.type)?(f=r.touchY!==undefined?r.touchY:r.touchStartY,f!==undefined&&f!=u.pageY&&(this.$touchScrollingSub=t,e=f<u.pageY,r.up!==undefined&&r.up!=e&&n.extend(r,{touchStartY:u.pageY,touchStartTime:i.timeStamp}),n.extend(r,{up:e,touchY:u.pageY}),this.menuScroll(t,!0,Math.abs(u.pageY-f))),i.preventDefault()):r.touchY!==undefined&&((r.momentum=Math.pow(Math.abs(u.pageY-r.touchStartY)/(i.timeStamp-r.touchStartTime),2)*15)&&(this.menuScrollStop(t),this.menuScroll(t),i.preventDefault()),delete r.touchY)))},menuShow:function(n){var u,r,f,i;(n.dataSM("beforefirstshowfired")||(n.dataSM("beforefirstshowfired",!0),this.$root.triggerHandler("beforefirstshow.smapi",n[0])!==!1))&&this.$root.triggerHandler("beforeshow.smapi",n[0])!==!1&&(n.dataSM("shown-before",!0),t&&n.stop(!0,!0),n.is(":visible")||(u=n.dataSM("parent-a"),r=this.isCollapsible(),(this.opts.keepHighlighted||r)&&u.addClass("highlighted"),r?n.removeClass("sm-nowrap").css({zIndex:"",width:"auto",minWidth:"",maxWidth:"",top:"",left:"",marginLeft:"",marginTop:""}):(n.css("z-index",this.zIndexInc=(this.zIndexInc||this.getStartZIndex())+1),(this.opts.subMenusMinWidth||this.opts.subMenusMaxWidth)&&(n.css({width:"auto",minWidth:"",maxWidth:""}).addClass("sm-nowrap"),this.opts.subMenusMinWidth&&n.css("min-width",this.opts.subMenusMinWidth),this.opts.subMenusMaxWidth&&(f=this.getWidth(n),n.css("max-width",this.opts.subMenusMaxWidth),f>this.getWidth(n)&&n.removeClass("sm-nowrap").css("width",this.opts.subMenusMaxWidth))),this.menuPosition(n)),i=function(){n.css("overflow","")},r?t&&this.opts.collapsibleShowFunction?this.opts.collapsibleShowFunction.call(this,n,i):n.show(this.opts.collapsibleShowDuration,i):t&&this.opts.showFunction?this.opts.showFunction.call(this,n,i):n.show(this.opts.showDuration,i),u.attr("aria-expanded","true"),n.attr({"aria-expanded":"true","aria-hidden":"false"}),this.visibleSubMenus.push(n),this.$root.triggerHandler("show.smapi",n[0])))},popupHide:function(n){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0);var t=this;this.hideTimeout=setTimeout(function(){t.menuHideAll()},n?1:this.opts.hideTimeout)}
61,popupShow:function(n,i){if(!this.opts.isPopup){alert('SmartMenus jQuery Error:\n\nIf you want to show this menu via the "popupShow" method, set the isPopup:true option.');return}if(this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0),this.$root.dataSM("shown-before",!0),t&&this.$root.stop(!0,!0),!this.$root.is(":visible")){this.$root.css({left:n,top:i});var u=this,r=function(){u.$root.css("overflow","")};t&&this.opts.showFunction?this.opts.showFunction.call(this,this.$root,r):this.$root.show(this.opts.showDuration,r);this.visibleSubMenus[0]=this.$root}},refresh:function(){this.destroy(!0);this.init(!0)},rootKeyDown:function(t){var r,u,i;if(this.handleEvents())switch(t.keyCode){case 27:r=this.activatedItems[0];r&&(this.menuHideAll(),r[0].focus(),i=r.dataSM("sub"),i&&this.menuHide(i));break;case 32:u=n(t.target);u.is("a")&&this.handleItemEvents(u)&&(i=u.dataSM("sub"),i&&!i.is(":visible")&&(this.itemClick({currentTarget:t.target}),t.preventDefault()))}},rootOut:function(n){if(this.handleEvents()&&!this.isTouchMode()&&n.target!=this.$root[0]&&(this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0),!this.opts.showOnClick||!this.opts.hideOnClick)){var t=this;this.hideTimeout=setTimeout(function(){t.menuHideAll()},this.opts.hideTimeout)}},rootOver:function(n){this.handleEvents()&&!this.isTouchMode()&&n.target!=this.$root[0]&&this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0)},winResize:function(n){var t,i;if(!this.handleEvents()){this.$disableOverlay&&(t=this.$root.offset(),this.$disableOverlay.css({top:t.top,left:t.left,width:this.$root.outerWidth(),height:this.$root.outerHeight()}));return}"onorientationchange"in window&&n.type!="orientationchange"||(i=this.isCollapsible(),this.wasCollapsible&&i||(this.activatedItems.length&&this.activatedItems[this.activatedItems.length-1][0].blur(),this.menuHideAll()),this.wasCollapsible=i)}}}),n.fn.dataSM=function(n,t){return t?this.data(n+"_smartmenus",t):this.data(n+"_smartmenus")},n.fn.removeDataSM=function(n){return this.removeData(n+"_smartmenus")},n.fn.smartmenus=function(t){if(typeof t=="string"){var i=arguments,r=t;return Array.prototype.shift.call(i),this.each(function(){var t=n(this).data("smartmenus");t&&t[r]&&t[r].apply(t,i)})}return this.each(function(){var i=n(this).data("sm-options")||null;if(i)try{i=eval("("+i+")")}catch(r){i=null;alert('ERROR\n\nSmartMenus jQuery init:\nInvalid "data-sm-options" attribute value syntax.')}new n.SmartMenus(this,n.extend({},n.fn.smartmenus.defaults,t,i))})},n.fn.smartmenus.defaults={isPopup:!1,mainMenuSubOffsetX:0,mainMenuSubOffsetY:0,subMenusSubOffsetX:0,subMenusSubOffsetY:0,subMenusMinWidth:"10em",subMenusMaxWidth:"20em",subIndicators:!0,subIndicatorsPos:"append",subIndicatorsText:"",scrollStep:30,scrollAccelerate:!0,showTimeout:0,hideTimeout:50,showDuration:0,showFunction:null,hideDuration:0,hideFunction:function(n,t){n.fadeOut(200,t)},collapsibleShowDuration:0,collapsibleShowFunction:function(n,t){n.slideDown(200,t)},collapsibleHideDuration:0,collapsibleHideFunction:function(n,t){n.slideUp(200,t)},showOnClick:!1,hideOnClick:!0,noMouseOver:!1,keepInViewport:!0,keepHighlighted:!0,markCurrentItem:!1,markCurrentTree:!0,rightToLeftSubMenus:!1,bottomToTopSubMenus:!1,collapsibleBehavior:"default"},n});/*! SmartMenus jQuery Plugin Bootstrap Addon - v0.4.1 - September 17, 2017
62 * http://www.smartmenus.org/
63 * Copyright Vasil Dinkov, Vadikom Web Ltd. http://vadikom.com; Licensed MIT */(function(t){"function"==typeof define&&define.amd?define(["jquery","smartmenus"],t):"object"==typeof module&&"object"==typeof module.exports?module.exports=t(require("jquery")):t(jQuery)})(function(t){return t.extend(t.SmartMenus.Bootstrap={},{keydownFix:!1,init:function(){var e=t("ul.navbar-nav:not([data-sm-skip])");e.each(function(){function e(){o.find("a.current").parent().addClass("active"),o.find("a.has-submenu").each(function(){var e=t(this);e.is('[data-toggle="dropdown"]')&&e.dataSM("bs-data-toggle-dropdown",!0).removeAttr("data-toggle"),e.is('[role="button"]')&&e.dataSM("bs-role-button",!0).removeAttr("role")})}function s(){o.find("a.current").parent().removeClass("active"),o.find("a.has-submenu").each(function(){var e=t(this);e.dataSM("bs-data-toggle-dropdown")&&e.attr("data-toggle","dropdown").removeDataSM("bs-data-toggle-dropdown"),e.dataSM("bs-role-button")&&e.attr("role","button").removeDataSM("bs-role-button")})}function i(t){var e=a.getViewportWidth();if(e!=n||t){var s=o.find(".caret");a.isCollapsible()?(o.addClass("sm-collapsible"),o.is("[data-sm-skip-collapsible-behavior]")||s.addClass("navbar-toggle sub-arrow")):(o.removeClass("sm-collapsible"),o.is("[data-sm-skip-collapsible-behavior]")||s.removeClass("navbar-toggle sub-arrow")),n=e}}var o=t(this),a=o.data("smartmenus");if(!a){o.smartmenus({subMenusSubOffsetX:2,subMenusSubOffsetY:-6,subIndicators:!1,collapsibleShowFunction:null,collapsibleHideFunction:null,rightToLeftSubMenus:o.hasClass("navbar-right"),bottomToTopSubMenus:o.closest(".
63navbar").hasClass("navbar-fixed-bottom")}).on({"show.smapi":function(e,s){var i=t(s),o=i.dataSM("scroll-arrows");o&&o.css("background-color",t(document.body).css("background-color")),i.parent().addClass("open")},"hide.smapi":function(e,s){t(s).parent().removeClass("open")}}),e(),a=o.data("smartmenus"),a.isCollapsible=function(){return!/^(left|right)$/.test(this.$firstLink.parent().css("float"))&&"block"==this.$root.css("display")},a.refresh=function(){t.SmartMenus.prototype.refresh.call(this),e(),i(!0)},a.destroy=function(e){s(),t.SmartMenus.prototype.destroy.call(this,e)},o.is("[data-sm-skip-collapsible-behavior]")&&(a.opts.collapsibleBehavior="toggle");var n;i(),t(window).on("resize.smartmenus"+a.rootId,i)}}),e.length&&!t.SmartMenus.Bootstrap.keydownFix&&(t(document).off("keydown.bs.dropdown.data-api",".dropdown-menu"),t.fn.dropdown&&t.fn.dropdown.Constructor&&t(document).on("keydown.bs.dropdown.data-api",'.dropdown-menu:not([id^="sm-"])',t.fn.dropdown.Constructor.prototype.keydown),t.SmartMenus.Bootstrap.keydownFix=!0)}}),t(t.SmartMenus.Bootstrap.init),t});/*!
64 * @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2015
65 * @version 1.3.3
66 *
67 * Date formatter utility library that allows formatting date/time variables or Date objects using PHP DateTime format.
68 * @see http://php.net/manual/en/function.date.php
69 *
70 * For more JQuery plugins visit http://plugins.krajee.com
71 * For more Yii related demos visit http://demos.krajee.com
72 */
73var DateFormatter;
74(function () {
75"use strict";
76
77var _compare, _lpad, _extend, defaultSettings, DAY, HOUR;
78DAY = 1000 * 60 * 60 * 24;
79HOUR = 3600;
80
81_compare = function (str1, str2) {
82return typeof (str1) === 'string' && typeof (str2) === 'string' && str1.toLowerCase() === str2.toLowerCase();
83};
84_lpad = function (value, length, char) {
85var chr = char || '0', val = value.toString();
86return val.length < length ? _lpad(chr + val, length) : val;
87};
88_extend = function (out) {
89var i, obj;
90out = out || {};
91for (i = 1; i < arguments.length; i++) {
92obj = arguments[i];
93if (!obj) {
94continue;
95}
96for (var key in obj) {
97if (obj.hasOwnProperty(key)) {
98if (typeof obj[key] === 'object') {
99_extend(out[key], obj[key]);
100} else {
101out[key] = obj[key];
102}
103}
104}
105}
106return out;
107};
108defaultSettings = {
109dateSettings: {
110days: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
111daysShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
112months: [
113'January', 'February', 'March', 'April', 'May', 'June', 'July',
114'August', 'September', 'October', 'November', 'December'
115],
116monthsShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
117meridiem: ['AM', 'PM'],
118ordinal: function (number) {
119var n = number % 10, suffixes = { 1: 'st', 2: 'nd', 3: 'rd' };
120return Math.floor(number % 100 / 10) === 1 || !suffixes[n] ? 'th' : suffixes[n];
121}
122},
123separators: /[ \-+\/\.T:@]/g,
124validParts: /[dDjlNSwzWFmMntLoYyaABgGhHisueTIOPZcrU]/g,
125intParts: /[djwNzmnyYhHgGis]/g,
126tzParts: /\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,
127tzClip: /[^-+\dA-Z]/g
128};
129
130DateFormatter = function (options) {
131var self = this, config = _extend(defaultSettings, options);
132self.dateSettings = config.dateSettings;
133self.separators = config.separators;
134self.validParts = config.validParts;
135self.intParts = config.intParts;
136self.tzParts = config.tzParts;
137self.tzClip = config.tzClip;
138};
139
140DateFormatter.prototype = {
141constructor: DateFormatter,
142parseDate: function (vDate, vFormat) {
143var self = this, vFormatParts, vDateParts, i, vDateFlag = false, vTimeFlag = false, vDatePart, iDatePart,
144vSettings = self.dateSettings, vMonth, vMeriIndex, vMeriOffset, len, mer,
145out = { date: null, year: null, month: null, day: null, hour: 0, min: 0, sec: 0 };
146if (!vDate) {
147return undefined;
148}
149if (vDate instanceof Date) {
150return vDate;
151}
152if (typeof vDate === 'number') {
153return new Date(vDate);
154}
155if (vFormat === 'U') {
156i = parseInt(vDate);
157return i ? new Date(i * 1000) : vDate;
158}
159if (typeof vDate !== 'string') {
160return '';
161}
162vFormatParts = vFormat.match(self.validParts);
163if (!vFormatParts || vFormatParts.length === 0) {
164throw new Error("Invalid date format definition.");
165}
166vDateParts = vDate.replace(self.separators, '\0').split('\0');
167for (i = 0; i < vDateParts.length; i++) {
168vDatePart = vDateParts[i];
169iDatePart = parseInt(vDatePart);
170switch (vFormatParts[i]) {
171case 'y':
172case 'Y':
173len = vDatePart.length;
174if (len === 2) {
175out.year = parseInt((iDatePart < 70 ? '20' : '19') + vDatePart);
176} else if (len === 4) {
177out.year = iDatePart;
178}
179vDateFlag = true;
180break;
181case 'm':
182case 'n':
183case 'M':
184case 'F':
185if (isNaN(vDatePart)) {
186vMonth = vSettings.monthsShort.indexOf(vDatePart);
187if (vMonth > -1) {
188out.month = vMonth + 1;
189}
190vMonth = vSettings.months.indexOf(vDatePart);
191if (vMonth > -1) {
192out.month = vMonth + 1;
193}
194} else {
195if (iDatePart >= 1 && iDatePart <= 12) {
196out.month = iDatePart;
197}
198}
199vDateFlag = true;
200break;
201case 'd':
202case 'j':
203if (iDatePart >= 1 && iDatePart <= 31) {
204out.day = iDatePart;
205}
206vDateFlag = true;
207break;
208case 'g':
209case 'h':
210vMeriIndex = (vFormatParts.indexOf('a') > -1) ? vFormatParts.indexOf('a') :
211(vFormatParts.indexOf('A') > -1) ? vFormatParts.indexOf('A') : -1;
212mer = vDateParts[vMeriIndex];
213if (vMeriIndex > -1) {
214vMeriOffset = _compare(mer, vSettings.meridiem[0]) ? 0 :
215(_compare(mer, vSettings.meridiem[1]) ? 12 : -1);
216if (iDatePart >= 1 && iDatePart <= 12 && vMeriOffset > -1) {
217out.hour = iDatePart + vMeriOffset - 1;
218} else if (iDatePart >= 0 && iDatePart <= 23) {
219out.hour = iDatePart;
220}
221} else if (iDatePart >= 0 && iDatePart <= 23) {
222out.hour = iDatePart;
223}
224vTimeFlag = true;
225break;
226case 'G':
227case 'H':
228if (iDatePart >= 0 && iDatePart <= 23) {
229out.hour = iDatePart;
230}
231vTimeFlag = true;
232break;
233case 'i':
234if (iDatePart >= 0 && iDatePart <= 59) {
235out.min = iDatePart;
236}
237vTimeFlag = true;
238break;
239case 's':
240if (iDatePart >= 0 && iDatePart <= 59) {
241out.sec = iDatePart;
242}
243vTimeFlag = true;
244break;
245}
246}
247if (vDateFlag === true && out.year && out.month && out.day) {
248out.date = new Date(out.year, out.month - 1, out.day, out.hour, out.min, out.sec, 0);
249} else {
250if (vTimeFlag !== true) {
251return false;
252}
253out.date = new Date(0, 0, 0, out.hour, out.min, out.sec, 0);
254}
255return out.date;
256},
257guessDate: function (vDateStr, vFormat) {
258if (typeof vDateStr !== 'string') {
259return vDateStr;
260}
261var self = this, vParts = vDateStr.replace(self.separators, '\0').split('\0'), vPattern = /^[djmn]/g,
262vFormatParts = vFormat.match(self.validParts), vDate = new Date(), vDigit = 0, vYear, i, iPart, iSec;
263
264if (!vPattern.test(vFormatParts[0])) {
265return vDateStr;
266}
267
268for (i = 0; i < vParts.length; i++) {
269vDigit = 2;
270iPart = vParts[i];
271iSec = parseInt(iPart.substr(0, 2));
272switch (i) {
273case 0:
274if (vFormatParts[0] === 'm' || vFormatParts[0] === 'n') {
275vDate.setMonth(iSec - 1);
276} else {
277vDate.setDate(iSec);
278}
279break;
280case 1:
281if (vFormatParts[0] === 'm' || vFormatParts[0] === 'n') {
282vDate.setDate(iSec);
283} else {
284vDate.setMonth(iSec - 1);
285}
286break;
287case 2:
288vYear = vDate.getFullYear();
289if (iPart.length < 4) {
290vDate.setFullYear(parseInt(vYear.toString().substr(0, 4 - iPart.length) + iPart));
291vDigit = iPart.length;
292} else {
293vDate.setFullYear = parseInt(iPart.substr(0, 4));
294vDigit = 4;
295}
296break;
297case 3:
298vDate.setHours(iSec);
299break;
300case 4:
301vDate.setMinutes(iSec);
302break;
303case 5:
304vDate.setSeconds(iSec);
305break;
306}
307if (iPart.substr(vDigit).length > 0) {
308vParts.splice(i + 1, 0, iPart.substr(vDigit));
309}
310}
311return vDate;
312},
313parseFormat: function (vChar, vDate) {
314var self = this, vSettings = self.dateSettings, fmt, backspace = /\\?(.?)/gi, doFormat = function (t, s) {
315return fmt[t] ? fmt[t]() : s;
316};
317fmt = {
318/////////
319// DAY //
320/////////
321/**
322 * Day of month with leading 0: `01..31`
323 * @return {string}
324 */
325d: function () {
326return _lpad(fmt.j(), 2);
327},
328/**
329 * Shorthand day name: `Mon...Sun`
330 * @return {string}
331 */
332D: function () {
333return vSettings.daysShort[fmt.w()];
334},
335/**
336 * Day of month: `1..31`
337 * @return {number}
338 */
339j: function () {
340return vDate.getDate();
341},
342/**
343 * Full day name: `Monday...Sunday`
344 * @return {number}
345 */
346l: function () {
347return vSettings.days[fmt.w()];
348},
349/**
350 * ISO-8601 day of week: `1[Mon]..7[Sun]`
351 * @return {number}
352 */
353N: function () {
354return fmt.w() || 7;
355},
356/**
357 * Day of week: `0[Sun]..6[Sat]`
358 * @return {number}
359 */
360w: function () {
361return vDate.getDay();
362},
363/**
364 * Day of year: `0..365`
365 * @return {number}
366 */
367z: function () {
368var a = new Date(fmt.Y(), fmt.n() - 1, fmt.j()), b = new Date(fmt.Y(), 0, 1);
369return Math.round((a - b) / DAY);
370},
371
372//////////
373// WEEK //
374//////////
375/**
376 * ISO-8601 week number
377 * @return {number}
378 */
379W: function () {
380var a = new Date(fmt.Y(), fmt.n() - 1, fmt.j() - fmt.N() + 3), b = new Date(a.getFullYear(), 0, 4);
381return _lpad(1 + Math.round((a - b) / DAY / 7), 2);
382},
383
384///////////
385// MONTH //
386///////////
387/**
388 * Full month name: `January...December`
389 * @return {string}
390 */
391F: function () {
392return vSettings.months[vDate.getMonth()];
393},
394/**
395 * Month w/leading 0: `01..12`
396 * @return {string}
397 */
398m: function () {
399return _lpad(fmt.n(), 2);
400},
401/**
402 * Shorthand month name; `Jan...Dec`
403 * @return {string}
404 */
405M: function () {
406return vSettings.monthsShort[vDate.getMonth()];
407},
408/**
409 * Month: `1...12`
410 * @return {number}
411 */
412n: function () {
413return vDate.getMonth() + 1;
414},
415/**
416 * Days in month: `28...31`
417 * @return {number}
418 */
419t: function () {
420return (new Date(fmt.Y(), fmt.n(), 0)).getDate();
421},
422
423//////////
424// YEAR //
425//////////
426/**
427 * Is leap year? `0 or 1`
428 * @return {number}
429 */
430L: function () {
431var Y = fmt.Y();
432return (Y % 4 === 0 && Y % 100 !== 0 || Y % 400 === 0) ? 1 : 0;
433},
434/**
435 * ISO-8601 year
436 * @return {number}
437 */
438o: function () {
439var n = fmt.n(), W = fmt.W(), Y = fmt.Y();
440return Y + (n === 12 && W < 9 ? 1 : n === 1 && W > 9 ? -1 : 0);
441},
442/**
443 * Full year: `e.g. 1980...2010`
444 * @return {number}
445 */
446Y: function () {
447return vDate.getFullYear();
448},
449/**
450 * Last two digits of year: `00...99`
451 * @return {string}
452 */
453y: function () {
454return fmt.Y().toString().slice(-2);
455},
456
457//////////
458// TIME //
459//////////
460/**
461 * Meridian lower: `am or pm`
462 * @return {string}
463 */
464a: function () {
465return fmt.A().toLowerCase();
466},
467/**
468 * Meridian upper: `AM or PM`
469 * @return {string}
470 */
471A: function () {
472var n = fmt.G() < 12 ? 0 : 1;
473return vSettings.meridiem[n];
474},
475/**
476 * Swatch Internet time: `000..999`
477 * @return {string}
478 */
479B: function () {
480var H = vDate.getUTCHours() * HOUR, i = vDate.getUTCMinutes() * 60, s = vDate.getUTCSeconds();
481return _lpad(Math.floor((H + i + s + HOUR) / 86.4) % 1000, 3);
482},
483/**
484 * 12-Hours: `1..12`
485 * @return {number}
486 */
487g: function () {
488return fmt.G() % 12 || 12;
489},
490/**
491 * 24-Hours: `0..23`
492 * @return {number}
493 */
494G: function () {
495return vDate.getHours();
496},
497/**
498 * 12-Hours with leading 0: `01..12`
499 * @return {string}
500 */
501h: function () {
502return _lpad(fmt.g(), 2);
503},
504/**
505 * 24-Hours w/leading 0: `00..23`
506 * @return {string}
507 */
508H: function () {
509return _lpad(fmt.G(), 2);
510},
511/**
512 * Minutes w/leading 0: `00..59`
513 * @return {string}
514 */
515i: function () {
516return _lpad(vDate.getMinutes(), 2);
517},
518/**
519 * Seconds w/leading 0: `00..59`
520 * @return {string}
521 */
522s: function () {
523return _lpad(vDate.getSeconds(), 2);
524},
525/**
526 * Microseconds: `000000-999000`
527 * @return {string}
528 */
529u: function () {
530return _lpad(vDate.getMilliseconds() * 1000, 6);
531},
532
533//////////////
534// TIMEZONE //
535//////////////
536/**
537 * Timezone identifier: `e.g. Atlantic/Azores, ...`
538 * @return {string}
539 */
540e: function () {
541var str = /\((.*)\)/.exec(String(vDate))[1];
542return str || 'Coordinated Universal Time';
543},
544/**
545 * Timezone abbreviation: `e.g. EST, MDT, ...`
546 * @return {string}
547 */
548T: function () {
549var str = (String(vDate).match(self.tzParts) || [""]).pop().replace(self.tzClip, "");
550return str || 'UTC';
551},
552/**
553 * DST observed? `0 or 1`
554 * @return {number}
555 */
556I: function () {
557var a = new Date(fmt.Y(), 0), c = Date.UTC(fmt.Y(), 0),
558b = new Date(fmt.Y(), 6), d = Date.UTC(fmt.Y(), 6);
559return ((a - c) !== (b - d)) ? 1 : 0;
560},
561/**
562 * Difference to GMT in hour format: `e.g. +0200`
563 * @return {string}
564 */
565O: function () {
566var tzo = vDate.getTimezoneOffset(), a = Math.abs(tzo);
567return (tzo > 0 ? '-' : '+') + _lpad(Math.floor(a / 60) * 100 + a % 60, 4);
568},
569/**
570 * Difference to GMT with colon: `e.g. +02:00`
571 * @return {string}
572 */
573P: function () {
574var O = fmt.O();
575return (O.substr(0, 3) + ':' + O.substr(3, 2));
576},
577/**
578 * Timezone offset in seconds: `-43200...50400`
579 * @return {number}
580 */
581Z: function () {
582return -vDate.getTimezoneOffset() * 60;
583},
584
585////////////////////
586// FULL DATE TIME //
587////////////////////
588/**
589 * ISO-8601 date
590 * @return {string}
591 */
592c: function () {
593return 'Y-m-d\\TH:i:sP'.replace(backspace, doFormat);
594},
595/**
596 * RFC 2822 date
597 * @return {string}
598 */
599r: function () {
600return 'D, d M Y H:i:s O'.replace(backspace, doFormat);
601},
602/**
603 * Seconds since UNIX epoch
604 * @return {number}
605 */
606U: function () {
607return vDate.getTime() / 1000 || 0;
608}
609};
610return doFormat(vChar, vChar);
611},
612formatDate: function (vDate, vFormat) {
613var self = this, i, n, len, str, vChar, vDateStr = '';
614if (typeof vDate === 'string') {
615vDate = self.parseDate(vDate, vFormat);
616if (vDate === false) {
617return false;
618}
619}
620if (vDate instanceof Date) {
621len = vFormat.length;
622for (i = 0; i < len; i++) {
623vChar = vFormat.charAt(i);
624if (vChar === 'S') {
625continue;
626}
627str = self.parseFormat(vChar, vDate);
628if (i !== (len - 1) && self.intParts.test(vChar) && vFormat.charAt(i + 1) === 'S') {
629n = parseInt(str);
630str += self.dateSettings.ordinal(n);
631}
632vDateStr += str;
633}
634return vDateStr;
635}
636return '';
637}
638};
639})();/**
640 * @preserve jQuery DateTimePicker plugin v2.5.4
641 * @homepage http://xdsoft.net/jqplugins/datetimepicker/
642 * @author Chupurnov Valeriy (<[email protected]>)
643 */
644/*global DateFormatter, document,window,jQuery,setTimeout,clearTimeout,HighlightedDate,getCurrentValue*/
645; (function (factory) {
646if (typeof define === 'function' && define.amd) {
647// AMD. Register as an anonymous module.
648define(['jquery', 'jquery-mousewheel'], factory);
649} else if (typeof exports === 'object') {
650// Node/CommonJS style for Browserify
651module.exports = factory;
652} else {
653// Browser globals
654factory(jQuery);
655}
656}(function ($) {
657'use strict';
658var default_options = {
659i18n: {
660ar: { // Arabic
661months: [
662"كانون الثاني", "شباط", "آذار", "نيسان", "مايو", "حزيران", "تموز", "آب", "أيلول", "تشرين الأول", "تشرين الثاني", "كانون الأول"
663],
664dayOfWeekShort: [
665"ن", "ث", "ع", "خ", "ج", "س", "ح"
666],
667dayOfWeek: ["الأحد", "الاثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت", "الأحد"]
668},
669ro: { // Romanian
670months: [
671"Ianuarie", "Februarie", "Martie", "Aprilie", "Mai", "Iunie", "Iulie", "August", "Septembrie", "Octombrie", "Noiembrie", "Decembrie"
672],
673dayOfWeekShort: [
674"Du", "Lu", "Ma", "Mi", "Jo", "Vi", "Sâ"
675],
676dayOfWeek: ["Duminică", "Luni", "Marţi", "Miercuri", "Joi", "Vineri", "Sâmbătă"]
677},
678id: { // Indonesian
679months: [
680"Januari", "Februari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September", "Oktober", "November", "Desember"
681],
682dayOfWeekShort: [
683"Min", "Sen", "Sel", "Rab", "Kam", "Jum", "Sab"
684],
685dayOfWeek: ["Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu"]
686},
687is: { // Icelandic
688months: [
689"Janúar", "Febrúar", "Mars", "Apríl", "Maí", "Júní", "Júlí", "Ágúst", "September", "Október", "Nóvember", "Desember"
690],
691dayOfWeekShort: [
692"Sun", "Mán", "Þrið", "Mið", "Fim", "Fös", "Lau"
693],
694dayOfWeek: ["Sunnudagur", "Mánudagur", "Þriðjudagur", "Miðvikudagur", "Fimmtudagur", "Föstudagur", "Laugardagur"]
695},
696bg: { // Bulgarian
697months: [
698"Януари", "Февруари", "Март", "Април", "Май", "Юни", "Юли", "Август", "Септември", "Октомври", "Ноември", "Декември"
699],
700dayOfWeekShort: [
701"Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"
702],
703dayOfWeek: ["Неделя", "Понеделник", "Вторник", "Сряда", "Четвъртък", "Петък", "Събота"]
704},
705fa: { // Persian/Farsi
706months: [
707'فروردین', 'اردیبهشت', 'خرداد', 'تیر', 'مرداد', 'شهریور', 'مهر', 'آبان', 'آذر', 'دی', 'بهمن', 'اسفند'
708],
709dayOfWeekShort: [
710'یکشنبه', 'دوشنبه', 'سه شنبه', 'چهارشنبه', 'پنجشنبه', 'جمعه', 'شنبه'
711],
712dayOfWeek: ["یک‌شنبه", "دوشنبه", "سه‌شنبه", "چهارشنبه", "پنج‌شنبه", "جمعه", "شنبه", "یک‌شنبه"]
713},
714ru: { // Russian
715months: [
716'Январь', 'Февраль', 'Март', 'Апрель', 'Май', 'Июнь', 'Июль', 'Август', 'Сентябрь', 'Октябрь', 'Ноябрь', 'Декабрь'
717],
718dayOfWeekShort: [
719"Вс", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"
720],
721dayOfWeek: ["Воскресенье", "Понедельник", "Вторник", "Среда", "Четверг", "Пятница", "Суббота"]
722},
723uk: { // Ukrainian
724months: [
725'Січень', 'Лютий', 'Березень', 'Квітень', 'Травень', 'Червень', 'Липень', 'Серпень', 'Вересень', 'Жовтень', 'Листопад', 'Грудень'
726],
727dayOfWeekShort: [
728"Ндл", "Пнд", "Втр", "Срд", "Чтв", "Птн", "Сбт"
729],
730dayOfWeek: ["Неділя", "Понеділок", "Вівторок", "Середа", "Четвер", "П'ятниця", "Субота"]
731},
732en: { // English
733months: [
734"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "
734November", "December"
735],
736dayOfWeekShort: [
737"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"
738],
739dayOfWeek: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
740},
741el: { // Ελληνικά
742months: [
743"Ιανουάριος", "Φεβρουάριος", "Μάρτιος", "Απρίλιος", "Μάιος", "Ιούνιος", "Ιούλιος", "Αύγουστος", "Σεπτέμβριος", "Οκτώβριος", "Νοέμβριος", "Δεκέμβριος"
744],
745dayOfWeekShort: [
746"Κυρ", "Δευ", "Τρι", "Τετ", "Πεμ", "Παρ", "Σαβ"
747],
748dayOfWeek: ["Κυριακή", "Δευτέρα", "Τρίτη", "Τετάρτη", "Πέμπτη", "Παρασκευή", "Σάββατο"]
749},
750de: { // German
751months: [
752'Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'
753],
754dayOfWeekShort: [
755"So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"
756],
757dayOfWeek: ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"]
758},
759nl: { // Dutch
760months: [
761"januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december"
762],
763dayOfWeekShort: [
764"zo", "ma", "di", "wo", "do", "vr", "za"
765],
766dayOfWeek: ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"]
767},
768tr: { // Turkish
769months: [
770"Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık"
771],
772dayOfWeekShort: [
773"Paz", "Pts", "Sal", "Çar", "Per", "Cum", "Cts"
774],
775dayOfWeek: ["Pazar", "Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi"]
776},
777fr: { //French
778months: [
779"Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre"
780],
781dayOfWeekShort: [
782"Dim", "Lun", "Mar", "Mer", "Jeu", "Ven", "Sam"
783],
784dayOfWeek: ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"]
785},
786es: { // Spanish
787months: [
788"Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"
789],
790dayOfWeekShort: [
791"Dom", "Lun", "Mar", "Mié", "Jue", "Vie", "Sáb"
792],
793dayOfWeek: ["Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado"]
794},
795th: { // Thai
796months: [
797'มกราคม', 'กุมภาพันธ์', 'มีนาคม', 'เมษายน', 'พฤษภาคม', 'มิถุนายน', 'กรกฎาคม', 'สิงหาคม', 'กันยายน', 'ตุลาคม', 'พฤศจิกายน', 'ธันวาคม'
798],
799dayOfWeekShort: [
800'อา.', 'จ.', 'อ.', 'พ.', 'พฤ.', 'ศ.', 'ส.'
801],
802dayOfWeek: ["อาทิตย์", "จันทร์", "อังคาร", "พุธ", "พฤหัส", "ศุกร์", "เสาร์", "อาทิตย์"]
803},
804pl: { // Polish
805months: [
806"styczeń", "luty", "marzec", "kwiecień", "maj", "czerwiec", "lipiec", "sierpień", "wrzesień", "październik", "listopad", "grudzień"
807],
808dayOfWeekShort: [
809"nd", "pn", "wt", "śr", "cz", "pt", "sb"
810],
811dayOfWeek: ["niedziela", "poniedziałek", "wtorek", "środa", "czwartek", "piątek", "sobota"]
812},
813pt: { // Portuguese
814months: [
815"Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"
816],
817dayOfWeekShort: [
818"Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sab"
819],
820dayOfWeek: ["Domingo", "Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sábado"]
821},
822ch: { // Simplified Chinese
823months: [
824"一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"
825],
826dayOfWeekShort: [
827"日", "一", "二", "三", "四", "五", "六"
828]
829},
830se: { // Swedish
831months: [
832"Januari", "Februari", "Mars", "April", "Maj", "Juni", "Juli", "Augusti", "September", "Oktober", "November", "December"
833],
834dayOfWeekShort: [
835"Sön", "Mån", "Tis", "Ons", "Tor", "Fre", "Lör"
836]
837},
838kr: { // Korean
839months: [
840"1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월"
841],
842dayOfWeekShort: [
843"일", "월", "화", "수", "목", "금", "토"
844],
845dayOfWeek: ["일요일", "월요일", "화요일", "수요일", "목요일", "금요일", "토요일"]
846},
847it: { // Italian
848months: [
849"Gennaio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno", "Luglio", "Agosto", "Settembre", "Ottobre", "Novembre", "Dicembre"
850],
851dayOfWeekShort: [
852"Dom", "Lun", "Mar", "Mer", "Gio", "Ven", "Sab"
853],
854dayOfWeek: ["Domenica", "Lunedì", "Martedì", "Mercoledì", "Giovedì", "Venerdì", "Sabato"]
855},
856da: { // Dansk
857months: [
858"January", "Februar", "Marts", "April", "Maj", "Juni", "July", "August", "September", "Oktober", "
858November", "December"
859],
860dayOfWeekShort: [
861"Søn", "Man", "Tir", "Ons", "Tor", "Fre", "Lør"
862],
863dayOfWeek: ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"]
864},
865no: { // Norwegian
866months: [
867"Januar", "Februar", "Mars", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Desember"
868],
869dayOfWeekShort: [
870"Søn", "Man", "Tir", "Ons", "Tor", "Fre", "Lør"
871],
872dayOfWeek: ['Søndag', 'Mandag', 'Tirsdag', 'Onsdag', 'Torsdag', 'Fredag', 'Lørdag']
873},
874ja: { // Japanese
875months: [
876"1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"
877],
878dayOfWeekShort: [
879"日", "月", "火", "水", "木", "金", "土"
880],
881dayOfWeek: ["日曜", "月曜", "火曜", "水曜", "木曜", "金曜", "土曜"]
882},
883vi: { // Vietnamese
884months: [
885"Tháng 1", "Tháng 2", "Tháng 3", "Tháng 4", "Tháng 5", "Tháng 6", "Tháng 7", "Tháng 8", "Tháng 9", "Tháng 10", "Tháng 11", "Tháng 12"
886],
887dayOfWeekShort: [
888"CN", "T2", "T3", "T4", "T5", "T6", "T7"
889],
890dayOfWeek: ["Chủ nhật", "Thứ hai", "Thứ ba", "Thứ tư", "Thứ năm", "Thứ sáu", "Thứ bảy"]
891},
892sl: { // Slovenščina
893months: [
894"Januar", "Februar", "Marec", "April", "Maj", "Junij", "Julij", "Avgust", "September", "Oktober", "November", "December"
895],
896dayOfWeekShort: [
897"Ned", "Pon", "Tor", "Sre", "Čet", "Pet", "Sob"
898],
899dayOfWeek: ["Nedelja", "Ponedeljek", "Torek", "Sreda", "Četrtek", "Petek", "Sobota"]
900},
901cs: { // Čeština
902months: [
903"Leden", "Únor", "Březen", "Duben", "Květen", "Červen", "Červenec", "Srpen", "Září", "Říjen", "Listopad", "Prosinec"
904],
905dayOfWeekShort: [
906"Ne", "Po", "Út", "St", "Čt", "Pá", "So"
907]
908},
909hu: { // Hungarian
910months: [
911"Január", "Február", "Március", "Április", "Május", "Június", "Július", "Augusztus", "Szeptember", "Október", "November", "December"
912],
913dayOfWeekShort: [
914"Va", "Hé", "Ke", "Sze", "Cs", "Pé", "Szo"
915],
916dayOfWeek: ["vasárnap", "hétfő", "kedd", "szerda", "csütörtök", "péntek", "szombat"]
917},
918az: { //Azerbaijanian (Azeri)
919months: [
920"Yanvar", "Fevral", "Mart", "Aprel", "May", "Iyun", "Iyul", "Avqust", "Sentyabr", "Oktyabr", "Noyabr", "Dekabr"
921],
922dayOfWeekShort: [
923"B", "Be", "Ça", "Ç", "Ca", "C", "Ş"
924],
925dayOfWeek: ["Bazar", "Bazar ertəsi", "Çərşənbə axşamı", "Çərşənbə", "Cümə axşamı", "Cümə", "Şənbə"]
926},
927bs: { //Bosanski
928months: [
929"Januar", "Februar", "Mart", "April", "Maj", "Jun", "Jul", "Avgust", "Septembar", "Oktobar", "Novembar", "Decembar"
930],
931dayOfWeekShort: [
932"Ned", "Pon", "Uto", "Sri", "Čet", "Pet", "Sub"
933],
934dayOfWeek: ["Nedjelja", "Ponedjeljak", "Utorak", "Srijeda", "Četvrtak", "Petak", "Subota"]
935},
936ca: { //Català
937months: [
938"Gener", "Febrer", "Març", "Abril", "Maig", "Juny", "Juliol", "Agost", "Setembre", "Octubre", "Novembre", "Desembre"
939],
940dayOfWeekShort: [
941"Dg", "Dl", "Dt", "Dc", "Dj", "Dv", "Ds"
942],
943dayOfWeek: ["Diumenge", "Dilluns", "Dimarts", "Dimecres", "Dijous", "Divendres", "Dissabte"]
944},
945'en-GB': { //English (British)
946months: [
947"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "
947November", "December"
948],
949dayOfWeekShort: [
950"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"
951],
952dayOfWeek: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
953},
954et: { //"Eesti"
955months: [
956"Jaanuar", "Veebruar", "Märts", "Aprill", "Mai", "Juuni", "Juuli", "August", "September", "Oktoober", "November", "Detsember"
957],
958dayOfWeekShort: [
959"P", "E", "T", "K", "N", "R", "L"
960],
961dayOfWeek: ["Pühapäev", "Esmaspäev", "Teisipäev", "Kolmapäev", "Neljapäev", "Reede", "Laupäev"]
962},
963eu: { //Euskara
964months: [
965"Urtarrila", "Otsaila", "Martxoa", "Apirila", "Maiatza", "Ekaina", "Uztaila", "Abuztua", "Iraila", "Urria", "Azaroa", "Abendua"
966],
967dayOfWeekShort: [
968"Ig.", "Al.", "Ar.", "Az.", "Og.", "Or.", "La."
969],
970dayOfWeek: ['Igandea', 'Astelehena', 'Asteartea', 'Asteazkena', 'Osteguna', 'Ostirala', 'Larunbata']
971},
972fi: { //Finnish (Suomi)
973months: [
974"Tammikuu", "Helmikuu", "Maaliskuu", "Huhtikuu", "Toukokuu", "Kesäkuu", "Heinäkuu", "Elokuu", "Syyskuu", "Lokakuu", "Marraskuu", "Joulukuu"
975],
976dayOfWeekShort: [
977"Su", "Ma", "Ti", "Ke", "To", "Pe", "La"
978],
979dayOfWeek: ["sunnuntai", "maanantai", "tiistai", "keskiviikko", "torstai", "perjantai", "lauantai"]
980},
981gl: { //Galego
982months: [
983"Xan", "Feb", "Maz", "Abr", "Mai", "Xun", "Xul", "Ago", "Set", "Out", "Nov", "Dec"
984],
985dayOfWeekShort: [
986"Dom", "Lun", "Mar", "Mer", "Xov", "Ven", "Sab"
987],
988dayOfWeek: ["Domingo", "Luns", "Martes", "Mércores", "Xoves", "Venres", "Sábado"]
989},
990hr: { //Hrvatski
991months: [
992"Siječanj", "Veljača", "Ožujak", "Travanj", "Svibanj", "Lipanj", "Srpanj", "Kolovoz", "Rujan", "Listopad", "Studeni", "Prosinac"
993],
994dayOfWeekShort: [
995"Ned", "Pon", "Uto", "Sri", "Čet", "Pet", "Sub"
996],
997dayOfWeek: ["Nedjelja", "Ponedjeljak", "Utorak", "Srijeda", "Četvrtak", "Petak", "Subota"]
998},
999ko: { //Korean (한국어)
1000months: [
1001"1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월"
1002],
1003dayOfWeekShort: [
1004"일", "월", "화", "수", "목", "금", "토"
1005],
1006dayOfWeek: ["일요일", "월요일", "화요일", "수요일", "목요일", "금요일", "토요일"]
1007},
1008lt: { //Lithuanian (lietuvių)
1009months: [
1010"Sausio", "Vasario", "Kovo", "Balandžio", "Gegužės", "Birželio", "Liepos", "Rugpjūčio", "Rugsėjo", "Spalio", "Lapkričio", "Gruodžio"
1011],
1012dayOfWeekShort: [
1013"Sek", "Pir", "Ant", "Tre", "Ket", "Pen", "Šeš"
1014],
1015dayOfWeek: ["Sekmadienis", "Pirmadienis", "Antradienis", "Trečiadienis", "Ketvirtadienis", "Penktadienis", "Šeštadienis"]
1016},
1017lv: { //Latvian (Latviešu)
1018months: [
1019"Janvāris", "Februāris", "Marts", "Aprīlis ", "Maijs", "Jūnijs", "Jūlijs", "Augusts", "Septembris", "Oktobris", "Novembris", "Decembris"
1020],
1021dayOfWeekShort: [
1022"Sv", "Pr", "Ot", "Tr", "Ct", "Pk", "St"
1023],
1024dayOfWeek: ["Svētdiena", "Pirmdiena", "Otrdiena", "Trešdiena", "Ceturtdiena", "Piektdiena", "Sestdiena"]
1025},
1026mk: { //Macedonian (Македонски)
1027months: [
1028"јануари", "февруари", "март", "април", "мај", "јуни", "јули", "август", "септември", "октомври", "ноември", "декември"
1029],
1030dayOfWeekShort: [
1031"нед", "пон", "вто", "сре", "чет", "пет", "саб"
1032],
1033dayOfWeek: ["Недела", "Понеделник", "Вторник", "Среда", "Четврток", "Петок", "Сабота"]
1034},
1035mn: { //Mongolian (Монгол)
1036months: [
1037"1-р сар", "2-р сар", "3-р сар", "4-р сар", "5-р сар", "6-р сар", "7-р сар", "8-р сар", "9-р сар", "10-р сар", "11-р сар", "12-р сар"
1038],
1039dayOfWeekShort: [
1040"Дав", "Мяг", "Лха", "Пүр", "Бсн", "Бям", "Ням"
1041],
1042dayOfWeek: ["Даваа", "Мягмар", "Лхагва", "Пүрэв", "Баасан", "Бямба", "Ням"]
1043},
1044'pt-BR': { //Português(Brasil)
1045months: [
1046"Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"
1047],
1048dayOfWeekShort: [
1049"Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sáb"
1050],
1051dayOfWeek: ["Domingo", "Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sábado"]
1052},
1053sk: { //Slovenčina
1054months: [
1055"Január", "Február", "Marec", "Apríl", "Máj", "Jún", "Júl", "August", "September", "Október", "
1055November", "December"
1056],
1057dayOfWeekShort: [
1058"Ne", "Po", "Ut", "St", "Å t", "Pi", "So"
1059],
1060dayOfWeek: ["Nedeľa", "Pondelok", "Utorok", "Streda", "Štvrtok", "Piatok", "Sobota"]
1061},
1062sq: { //Albanian (Shqip)
1063months: [
1064"Janar", "Shkurt", "Mars", "Prill", "Maj", "Qershor", "Korrik", "Gusht", "Shtator", "Tetor", "Nëntor", "Dhjetor"
1065],
1066dayOfWeekShort: [
1067"Die", "Hën", "Mar", "Mër", "Enj", "Pre", "Shtu"
1068],
1069dayOfWeek: ["E Diel", "E Hënë", "E Martē", "E Mërkurë", "E Enjte", "E Premte", "E Shtunë"]
1070},
1071'sr-YU': { //Serbian (Srpski)
1072months: [
1073"Januar", "Februar", "Mart", "April", "Maj", "Jun", "Jul", "Avgust", "Septembar", "Oktobar", "Novembar", "Decembar"
1074],
1075dayOfWeekShort: [
1076"Ned", "Pon", "Uto", "Sre", "čet", "Pet", "Sub"
1077],
1078dayOfWeek: ["Nedelja", "Ponedeljak", "Utorak", "Sreda", "Četvrtak", "Petak", "Subota"]
1079},
1080sr: { //Serbian Cyrillic (Српски)
1081months: [
1082"јануар", "фебруар", "март", "април", "мај", "јун", "јул", "август", "септембар", "октобар", "новембар", "децембар"
1083],
1084dayOfWeekShort: [
1085"нед", "пон", "уто", "сре", "чет", "пет", "суб"
1086],
1087dayOfWeek: ["Недеља", "Понедељак", "Уторак", "Среда", "Четвртак", "Петак", "Субота"]
1088},
1089sv: { //Svenska
1090months: [
1091"Januari", "Februari", "Mars", "April", "Maj", "Juni", "Juli", "Augusti", "September", "Oktober", "November", "December"
1092],
1093dayOfWeekShort: [
1094"Sön", "Mån", "Tis", "Ons", "Tor", "Fre", "Lör"
1095],
1096dayOfWeek: ["Söndag", "Måndag", "Tisdag", "Onsdag", "Torsdag", "Fredag", "Lördag"]
1097},
1098'zh-TW': { //Traditional Chinese (繁體中文)
1099months: [
1100"一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"
1101],
1102dayOfWeekShort: [
1103"日", "一", "二", "三", "四", "五", "六"
1104],
1105dayOfWeek: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"]
1106},
1107zh: { //Simplified Chinese (简体中文)
1108months: [
1109"一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"
1110],
1111dayOfWeekShort: [
1112"日", "一", "二", "三", "四", "五", "六"
1113],
1114dayOfWeek: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"]
1115},
1116he: { //Hebrew (עברית)
1117months: [
1118'ינואר', 'פברואר', 'מרץ', 'אפריל', 'מאי', 'יוני', 'יולי', 'אוגוסט', 'ספטמבר', 'אוקטובר', 'נובמבר', 'דצמבר'
1119],
1120dayOfWeekShort: [
1121'א\'', 'ב\'', 'ג\'', 'ד\'', 'ה\'', 'ו\'', 'שבת'
1122],
1123dayOfWeek: ["ראשון", "שני", "שלישי", "רביעי", "חמישי", "שישי", "שבת", "ראשון"]
1124},
1125hy: { // Armenian
1126months: [
1127"Հունվար", "Փետրվար", "Մարտ", "Ապրիլ", "Մայիս", "Հունիս", "Հուլիս", "Օգոստոս", "Սեպտեմբեր", "Հոկտեմբեր", "Նոյեմբեր", "Դեկտեմբեր"
1128],
1129dayOfWeekShort: [
1130"Կի", "Երկ", "Երք", "Չոր", "Հնգ", "Ուրբ", "Շբթ"
1131],
1132dayOfWeek: ["Կիրակի", "Երկուշաբթի", "Երեքշաբթի", "Չորեքշաբթի", "Հինգշաբթի", "Ուրբաթ", "Շաբաթ"]
1133},
1134kg: { // Kyrgyz
1135months: [
1136'Үчтүн айы', 'Бирдин айы', 'Жалган Куран', 'Чын Куран', 'Бугу', 'Кулжа', 'Теке', 'Баш Оона', 'Аяк Оона', 'Тогуздун айы', 'Жетинин айы', 'Бештин айы'
1137],
1138dayOfWeekShort: [
1139"Жек", "Дүй", "Шей", "Шар", "Бей", "Жум", "Ише"
1140],
1141dayOfWeek: [
1142"Жекшемб", "Дүйшөмб", "Шейшемб", "Шаршемб", "Бейшемби", "Жума", "Ишенб"
1143]
1144},
1145rm: { // Romansh
1146months: [
1147"Schaner", "Favrer", "Mars", "Avrigl", "Matg", "Zercladur", "Fanadur", "Avust", "Settember", "October", "
vendor: 4,162 bytes, lines 1147-1323
1147November", "December"
1148],
1149dayOfWeekShort: [
1150"Du", "Gli", "Ma", "Me", "Gie", "Ve", "So"
1151],
1152dayOfWeek: [
1153"Dumengia", "Glindesdi", "Mardi", "Mesemna", "Gievgia", "Venderdi", "Sonda"
1154]
1155},
1156ka: { // Georgian
1157months: [
1158'იანვარი', 'თებერვალი', 'მარტი', 'აპრილი', 'მაისი', 'ივნისი', 'ივლისი', 'აგვისტო', 'სექტემბერი', 'ოქტომბერი', 'ნოემბერი', 'დეკემბერი'
1159],
1160dayOfWeekShort: [
1161"კვ", "ორშ", "სამშ", "ოთხ", "ხუთ", "პარ", "შაბ"
1162],
1163dayOfWeek: ["კვირა", "ორშაბათი", "სამშაბათი", "ოთხშაბათი", "ხუთშაბათი", "პარასკევი", "შაბათი"]
1164},
1165},
1166value: '',
1167rtl: false,
1168
1169format: 'Y/m/d H:i',
1170formatTime: 'H:i',
1171formatDate: 'Y/m/d',
1172
1173startDate: false, // new Date(), '1986/12/08', '-1970/01/05','-1970/01/05',
1174step: 60,
1175monthChangeSpinner: true,
1176
1177closeOnDateSelect: false,
1178closeOnTimeSelect: true,
1179closeOnWithoutClick: true,
1180closeOnInputClick: true,
1181
1182timepicker: true,
1183datepicker: true,
1184weeks: false,
1185
1186defaultTime: false,// use formatTime format (ex. '10:00' for formatTime:'H:i')
1187defaultDate: false,// use formatDate format (ex new Date() or '1986/12/08' or '-1970/01/05' or '-1970/01/05')
1188
1189minDate: false,
1190maxDate: false,
1191minTime: false,
1192maxTime: false,
1193disabledMinTime: false,
1194disabledMaxTime: false,
1195
1196allowTimes: [],
1197opened: false,
1198initTime: true,
1199inline: false,
1200theme: '',
1201
1202onSelectDate: function () { },
1203onSelectTime: function () { },
1204onChangeMonth: function () { },
1205onGetWeekOfYear: function () { },
1206onChangeYear: function () { },
1207onChangeDateTime: function () { },
1208onShow: function () { },
1209onClose: function () { },
1210onGenerate: function () { },
1211
1212withoutCopyright: true,
1213inverseButton: false,
1214hours12: false,
1215next: 'xdsoft_next',
1216prev: 'xdsoft_prev',
1217dayOfWeekStart: 0,
1218parentID: 'body',
1219timeHeightInTimePicker: 25,
1220timepickerScrollbar: true,
1221todayButton: true,
1222prevButton: true,
1223nextButton: true,
1224defaultSelect: true,
1225
1226scrollMonth: true,
1227scrollTime: true,
1228scrollInput: true,
1229
1230lazyInit: false,
1231mask: false,
1232validateOnBlur: true,
1233allowBlank: true,
1234yearStart: 1950,
1235yearEnd: 2050,
1236monthStart: 0,
1237monthEnd: 11,
1238style: '',
1239id: '',
1240fixed: false,
1241roundTime: 'round', // ceil, floor
1242className: '',
1243weekends: [],
1244highlightedDates: [],
1245highlightedPeriods: [],
1246allowDates: [],
1247allowDateRe: null,
1248disabledDates: [],
1249disabledWeekDays: [],
1250yearOffset: 0,
1251beforeShowDay: null,
1252
1253enterLikeTab: true,
1254showApplyButton: false
1255};
1256
1257var dateHelper = null,
1258globalLocaleDefault = 'en',
1259globalLocale = 'en';
1260
1261var dateFormatterOptionsDefault = {
1262meridiem: ['AM', 'PM']
1263};
1264
1265var initDateFormatter = function () {
1266var locale = default_options.i18n[globalLocale],
1267opts = {
1268days: locale.dayOfWeek,
1269daysShort: locale.dayOfWeekShort,
1270months: locale.months,
1271monthsShort: $.map(locale.months, function (n) { return n.substring(0, 3) }),
1272};
1273
1274dateHelper = new DateFormatter({
1275dateSettings: $.extend({}, dateFormatterOptionsDefault, opts)
1276});
1277};
1278
1279// for locale settings
1280$.datetimepicker = {
1281setLocale: function (locale) {
1282var newLocale = default_options.i18n[locale] ? locale : globalLocaleDefault;
1283if (globalLocale != newLocale) {
1284globalLocale = newLocale;
1285// reinit date formatter
1286initDateFormatter();
1287}
1288},
1289setDateFormatter: function (dateFormatter) {
1290dateHelper = dateFormatter;
1291},
1292RFC_2822: 'D, d M Y H:i:s O',
1293ATOM: 'Y-m-d\TH:i:sP',
1294ISO_8601: 'Y-m-d\TH:i:sO',
1295RFC_822: 'D, d M y H:i:s O',
1296RFC_850: 'l, d-M-y H:i:s T',
1297RFC_1036: 'D, d M y H:i:s O',
1298RFC_1123: 'D, d M Y H:i:s O',
1299RSS: 'D, d M Y H:i:s O',
1300W3C: 'Y-m-d\TH:i:sP'
1301};
1302
1303// first init date formatter
1304initDateFormatter();
1305
1306// fix for ie8
1307if (!window.getComputedStyle) {
1308window.getComputedStyle = function (el, pseudo) {
1309this.el = el;
1310this.getPropertyValue = function (prop) {
1311var re = /(\-([a-z]){1})/g;
1312if (prop === 'float') {
1313prop = 'styleFloat';
1314}
1315if (re.test(prop)) {
1316prop = prop.replace(re, function (a, b, c) {
1317return c.toUpperCase();
1318});
1319}
1320return el.currentStyle[prop] || null;
1321};
1322return this;
1323};
vendor: 4,927 bytes, lines 1324-1485
1324}
1325if (!Array.prototype.indexOf) {
1326Array.prototype.indexOf = function (obj, start) {
1327var i, j;
1328for (i = (start || 0), j = this.length; i < j; i += 1) {
1329if (this[i] === obj) { return i; }
1330}
1331return -1;
1332};
1333}
1334Date.prototype.countDaysInMonth = function () {
1335return new Date(this.getFullYear(), this.getMonth() + 1, 0).getDate();
1336};
1337$.fn.xdsoftScroller = function (percent) {
1338return this.each(function () {
1339var timeboxparent = $(this),
1340pointerEventToXY = function (e) {
1341var out = { x: 0, y: 0 },
1342touch;
1343if (e.type === 'touchstart' || e.type === 'touchmove' || e.type === 'touchend' || e.type === 'touchcancel') {
1344touch = e.originalEvent.touches[0] || e.originalEvent.changedTouches[0];
1345out.x = touch.clientX;
1346out.y = touch.clientY;
1347} else if (e.type === 'mousedown' || e.type === 'mouseup' || e.type === 'mousemove' || e.type === 'mouseover' || e.type === 'mouseout' || e.type === 'mouseenter' || e.type === 'mouseleave') {
1348out.x = e.clientX;
1349out.y = e.clientY;
1350}
1351return out;
1352},
1353timebox,
1354parentHeight,
1355height,
1356scrollbar,
1357scroller,
1358maximumOffset = 100,
1359start = false,
1360startY = 0,
1361startTop = 0,
1362h1 = 0,
1363touchStart = false,
1364startTopScroll = 0,
1365calcOffset = function () { };
1366if (percent === 'hide') {
1367timeboxparent.find('.xdsoft_scrollbar').hide();
1368return;
1369}
1370if (!$(this).hasClass('xdsoft_scroller_box')) {
1371timebox = timeboxparent.children().eq(0);
1372parentHeight = timeboxparent[0].clientHeight;
1373height = timebox[0].offsetHeight;
1374scrollbar = $('<div class="xdsoft_scrollbar"></div>');
1375scroller = $('<div class="xdsoft_scroller"></div>');
1376scrollbar.append(scroller);
1377
1378timeboxparent.addClass('xdsoft_scroller_box').append(scrollbar);
1379calcOffset = function calcOffset(event) {
1380var offset = pointerEventToXY(event).y - startY + startTopScroll;
1381if (offset < 0) {
1382offset = 0;
1383}
1384if (offset + scroller[0].offsetHeight > h1) {
1385offset = h1 - scroller[0].offsetHeight;
1386}
1387timeboxparent.trigger('scroll_element.xdsoft_scroller', [maximumOffset ? offset / maximumOffset : 0]);
1388};
1389
1390scroller
1391.on('touchstart.xdsoft_scroller mousedown.xdsoft_scroller', function (event) {
1392if (!parentHeight) {
1393timeboxparent.trigger('resize_scroll.xdsoft_scroller', [percent]);
1394}
1395
1396startY = pointerEventToXY(event).y;
1397startTopScroll = parseInt(scroller.css('margin-top'), 10);
1398h1 = scrollbar[0].offsetHeight;
1399
1400if (event.type === 'mousedown' || event.type === 'touchstart') {
1401if (document) {
1402$(document.body).addClass('xdsoft_noselect');
1403}
1404$([document.body, window]).on('touchend mouseup.xdsoft_scroller', function arguments_callee() {
1405$([document.body, window]).off('touchend mouseup.xdsoft_scroller', arguments_callee)
1406.off('mousemove.xdsoft_scroller', calcOffset)
1407.removeClass('xdsoft_noselect');
1408});
1409$(document.body).on('mousemove.xdsoft_scroller', calcOffset);
1410} else {
1411touchStart = true;
1412event.stopPropagation();
1413event.preventDefault();
1414}
1415})
1416.on('touchmove', function (event) {
1417if (touchStart) {
1418event.preventDefault();
1419calcOffset(event);
1420}
1421})
1422.on('touchend touchcancel', function () {
1423touchStart = false;
1424startTopScroll = 0;
1425});
1426
1427timeboxparent
1428.on('scroll_element.xdsoft_scroller', function (event, percentage) {
1429if (!parentHeight) {
1430timeboxparent.trigger('resize_scroll.xdsoft_scroller', [percentage, true]);
1431}
1432percentage = percentage > 1 ? 1 : (percentage < 0 || isNaN(percentage)) ? 0 : percentage;
1433
1434scroller.css('margin-top', maximumOffset * percentage);
1435
1436setTimeout(function () {
1437timebox.css('marginTop', -parseInt((timebox[0].offsetHeight - parentHeight) * percentage, 10));
1438}, 10);
1439})
1440.on('resize_scroll.xdsoft_scroller', function (event, percentage, noTriggerScroll) {
1441var percent, sh;
1442parentHeight = timeboxparent[0].clientHeight;
1443height = timebox[0].offsetHeight;
1444percent = parentHeight / height;
1445sh = percent * scrollbar[0].offsetHeight;
1446if (percent > 1) {
1447scroller.hide();
1448} else {
1449scroller.show();
1450scroller.css('height', parseInt(sh > 10 ? sh : 10, 10));
1451maximumOffset = scrollbar[0].offsetHeight - scroller[0].offsetHeight;
1452if (noTriggerScroll !== true) {
1453timeboxparent.trigger('scroll_element.xdsoft_scroller', [percentage || Math.abs(parseInt(timebox.css('marginTop'), 10)) / (height - parentHeight)]);
1454}
1455}
1456});
1457
1458timeboxparent.on('mousewheel', function (event) {
1459var top = Math.abs(parseInt(timebox.css('marginTop'), 10));
1460
1461top = top - (event.deltaY * 20);
1462if (top < 0) {
1463top = 0;
1464}
1465
1466timeboxparent.trigger('scroll_element.xdsoft_scroller', [top / (height - parentHeight)]);
1467event.stopPropagation();
1468return false;
1469});
1470
1471timeboxparent.on('touchstart', function (event) {
1472start = pointerEventToXY(event);
1473startTop = Math.abs(parseInt(timebox.css('marginTop'), 10));
1474});
1475
1476timeboxparent.on('touchmove', function (event) {
1477if (start) {
1478event.preventDefault();
1479var coord = pointerEventToXY(event);
1480timeboxparent.trigger('scroll_element.xdsoft_scroller', [(startTop - (coord.y - start.y)) / (height - parentHeight)]);
1481}
1482});
1483
1484timeboxparent.on('touchend touchcancel', function () {
1485start = false;
vendor: 45,652 bytes, lines 1486-3038
1486startTop = 0;
1487});
1488}
1489timeboxparent.trigger('resize_scroll.xdsoft_scroller', [percent]);
1490});
1491};
1492
1493$.fn.datetimepicker = function (opt, opt2) {
1494var result = this,
1495KEY0 = 48,
1496KEY9 = 57,
1497_KEY0 = 96,
1498_KEY9 = 105,
1499CTRLKEY = 17,
1500DEL = 46,
1501ENTER = 13,
1502ESC = 27,
1503BACKSPACE = 8,
1504ARROWLEFT = 37,
1505ARROWUP = 38,
1506ARROWRIGHT = 39,
1507ARROWDOWN = 40,
1508TAB = 9,
1509F5 = 116,
1510AKEY = 65,
1511CKEY = 67,
1512VKEY = 86,
1513ZKEY = 90,
1514YKEY = 89,
1515ctrlDown = false,
1516options = ($.isPlainObject(opt) || !opt) ? $.extend(true, {}, default_options, opt) : $.extend(true, {}, default_options),
1517
1518lazyInitTimer = 0,
1519createDateTimePicker,
1520destroyDateTimePicker,
1521
1522lazyInit = function (input) {
1523input
1524.on('open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart', function initOnActionCallback() {
1525if (input.is(':disabled') || input.data('xdsoft_datetimepicker')) {
1526return;
1527}
1528clearTimeout(lazyInitTimer);
1529lazyInitTimer = setTimeout(function () {
1530
1531if (!input.data('xdsoft_datetimepicker')) {
1532createDateTimePicker(input);
1533}
1534input
1535.off('open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart', initOnActionCallback)
1536.trigger('open.xdsoft');
1537}, 100);
1538});
1539};
1540
1541createDateTimePicker = function (input) {
1542var datetimepicker = $('<div class="xdsoft_datetimepicker xdsoft_noselect"></div>'),
1543xdsoft_copyright = $('<div class="xdsoft_copyright"><a target="_blank" href="http://xdsoft.net/jqplugins/datetimepicker/">xdsoft.net</a></div>'),
1544datepicker = $('<div class="xdsoft_datepicker active"></div>'),
1545mounth_picker = $('<div class="xdsoft_mounthpicker"><button type="button" class="xdsoft_prev"></button><button type="button" class="xdsoft_today_button"></button>' +
1546'<div class="xdsoft_label xdsoft_month"><span></span><i></i></div>' +
1547'<div class="xdsoft_label xdsoft_year"><span></span><i></i></div>' +
1548'<button type="button" class="xdsoft_next"></button></div>'),
1549calendar = $('<div class="xdsoft_calendar"></div>'),
1550timepicker = $('<div class="xdsoft_timepicker active"><button type="button" class="xdsoft_prev"></button><div class="xdsoft_time_box"></div><button type="button" class="xdsoft_next"></button></div>'),
1551timeboxparent = timepicker.find('.xdsoft_time_box').eq(0),
1552timebox = $('<div class="xdsoft_time_variant"></div>'),
1553applyButton = $('<button type="button" class="xdsoft_save_selected blue-gradient-button">Save Selected</button>'),
1554
1555monthselect = $('<div class="xdsoft_select xdsoft_monthselect"><div></div></div>'),
1556yearselect = $('<div class="xdsoft_select xdsoft_yearselect"><div></div></div>'),
1557triggerAfterOpen = false,
1558XDSoft_datetime,
1559
1560xchangeTimer,
1561timerclick,
1562current_time_index,
1563setPos,
1564timer = 0,
1565_xdsoft_datetime,
1566forEachAncestorOf,
1567throttle;
1568
1569if (options.id) {
1570datetimepicker.attr('id', options.id);
1571}
1572if (options.style) {
1573datetimepicker.attr('style', options.style);
1574}
1575if (options.weeks) {
1576datetimepicker.addClass('xdsoft_showweeks');
1577}
1578if (options.rtl) {
1579datetimepicker.addClass('xdsoft_rtl');
1580}
1581
1582datetimepicker.addClass('xdsoft_' + options.theme);
1583datetimepicker.addClass(options.className);
1584
1585mounth_picker
1586.find('.xdsoft_month span')
1587.after(monthselect);
1588mounth_picker
1589.find('.xdsoft_year span')
1590.after(yearselect);
1591
1592mounth_picker
1593.find('.xdsoft_month,.xdsoft_year')
1594.on('touchstart mousedown.xdsoft', function (event) {
1595var select = $(this).find('.xdsoft_select').eq(0),
1596val = 0,
1597top = 0,
1598visible = select.is(':visible'),
1599items,
1600i;
1601
1602mounth_picker
1603.find('.xdsoft_select')
1604.hide();
1605if (_xdsoft_datetime.currentTime) {
1606val = _xdsoft_datetime.currentTime[$(this).hasClass('xdsoft_month') ? 'getMonth' : 'getFullYear']();
1607}
1608
1609select[visible ? 'hide' : 'show']();
1610for (items = select.find('div.xdsoft_option'), i = 0; i < items.length; i += 1) {
1611if (items.eq(i).data('value') === val) {
1612break;
1613} else {
1614top += items[0].offsetHeight;
1615}
1616}
1617
1618select.xdsoftScroller(top / (select.children()[0].offsetHeight - (select[0].clientHeight)));
1619event.stopPropagation();
1620return false;
1621});
1622
1623mounth_picker
1624.find('.xdsoft_select')
1625.xdsoftScroller()
1626.on('touchstart mousedown.xdsoft', function (event) {
1627event.stopPropagation();
1628event.preventDefault();
1629})
1630.on('touchstart mousedown.xdsoft', '.xdsoft_option', function () {
1631if (_xdsoft_datetime.currentTime === undefined || _xdsoft_datetime.currentTime === null) {
1632_xdsoft_datetime.currentTime = _xdsoft_datetime.now();
1633}
1634
1635var year = _xdsoft_datetime.currentTime.getFullYear();
1636if (_xdsoft_datetime && _xdsoft_datetime.currentTime) {
1637_xdsoft_datetime.currentTime[$(this).parent().parent().hasClass('xdsoft_monthselect') ? 'setMonth' : 'setFullYear']($(this).data('value'));
1638}
1639
1640$(this).parent().parent().hide();
1641
1642datetimepicker.trigger('xchange.xdsoft');
1643if (options.onChangeMonth && $.isFunction(options.onChangeMonth)) {
1644options.onChangeMonth.call(datetimepicker, _xdsoft_datetime.currentTime, datetimepicker.data('input'));
1645}
1646
1647if (year !== _xdsoft_datetime.currentTime.getFullYear() && $.isFunction(options.onChangeYear)) {
1648options.onChangeYear.call(datetimepicker, _xdsoft_datetime.currentTime, datetimepicker.data('input'));
1649}
1650});
1651
1652datetimepicker.getValue = function () {
1653return _xdsoft_datetime.getCurrentTime();
1654};
1655
1656datetimepicker.setOptions = function (_options) {
1657var highlightedDates = {};
1658
1659options = $.extend(true, {}, options, _options);
1660
1661if (_options.allowTimes && $.isArray(_options.allowTimes) && _options.allowTimes.length) {
1662options.allowTimes = $.extend(true, [], _options.allowTimes);
1663}
1664
1665if (_options.weekends && $.isArray(_options.weekends) && _options.weekends.length) {
1666options.weekends = $.extend(true, [], _options.weekends);
1667}
1668
1669if (_options.allowDates && $.isArray(_options.allowDates) && _options.allowDates.length) {
1670options.allowDates = $.extend(true, [], _options.allowDates);
1671}
1672
1673if (_options.allowDateRe && Object.prototype.toString.call(_options.allowDateRe) === "[object String]") {
1674options.allowDateRe = new RegExp(_options.allowDateRe);
1675}
1676
1677if (_options.highlightedDates && $.isArray(_options.highlightedDates) && _options.highlightedDates.length) {
1678$.each(_options.highlightedDates, function (index, value) {
1679var splitData = $.map(value.split(','), $.trim),
1680exDesc,
1681hDate = new HighlightedDate(dateHelper.parseDate(splitData[0], options.formatDate), splitData[1], splitData[2]), // date, desc, style
1682keyDate = dateHelper.formatDate(hDate.date, options.formatDate);
1683if (highlightedDates[keyDate] !== undefined) {
1684exDesc = highlightedDates[keyDate].desc;
1685if (exDesc && exDesc.length && hDate.desc && hDate.desc.length) {
1686highlightedDates[keyDate].desc = exDesc + "\n" + hDate.desc;
1687}
1688} else {
1689highlightedDates[keyDate] = hDate;
1690}
1691});
1692
1693options.highlightedDates = $.extend(true, [], highlightedDates);
1694}
1695
1696if (_options.highlightedPeriods && $.isArray(_options.highlightedPeriods) && _options.highlightedPeriods.length) {
1697highlightedDates = $.extend(true, [], options.highlightedDates);
1698$.each(_options.highlightedPeriods, function (index, value) {
1699var dateTest, // start date
1700dateEnd,
1701desc,
1702hDate,
1703keyDate,
1704exDesc,
1705style;
1706if ($.isArray(value)) {
1707dateTest = value[0];
1708dateEnd = value[1];
1709desc = value[2];
1710style = value[3];
1711}
1712else {
1713var splitData = $.map(value.split(','), $.trim);
1714dateTest = dateHelper.parseDate(splitData[0], options.formatDate);
1715dateEnd = dateHelper.parseDate(splitData[1], options.formatDate);
1716desc = splitData[2];
1717style = splitData[3];
1718}
1719
1720while (dateTest <= dateEnd) {
1721hDate = new HighlightedDate(dateTest, desc, style);
1722keyDate = dateHelper.formatDate(dateTest, options.formatDate);
1723dateTest.setDate(dateTest.getDate() + 1);
1724if (highlightedDates[keyDate] !== undefined) {
1725exDesc = highlightedDates[keyDate].desc;
1726if (exDesc && exDesc.length && hDate.desc && hDate.desc.length) {
1727highlightedDates[keyDate].desc = exDesc + "\n" + hDate.desc;
1728}
1729} else {
1730highlightedDates[keyDate] = hDate;
1731}
1732}
1733});
1734
1735options.highlightedDates = $.extend(true, [], highlightedDates);
1736}
1737
1738if (_options.disabledDates && $.isArray(_options.disabledDates) && _options.disabledDates.length) {
1739options.disabledDates = $.extend(true, [], _options.disabledDates);
1740}
1741
1742if (_options.disabledWeekDays && $.isArray(_options.disabledWeekDays) && _options.disabledWeekDays.length) {
1743options.disabledWeekDays = $.extend(true, [], _options.disabledWeekDays);
1744}
1745
1746if ((options.open || options.opened) && (!options.inline)) {
1747input.trigger('open.xdsoft');
1748}
1749
1750if (options.inline) {
1751triggerAfterOpen = true;
1752datetimepicker.addClass('xdsoft_inline');
1753input.after(datetimepicker).hide();
1754}
1755
1756if (options.inverseButton) {
1757options.next = 'xdsoft_prev';
1758options.prev = 'xdsoft_next';
1759}
1760
1761if (options.datepicker) {
1762datepicker.addClass('active');
1763} else {
1764datepicker.removeClass('active');
1765}
1766
1767if (options.timepicker) {
1768timepicker.addClass('active');
1769} else {
1770timepicker.removeClass('active');
1771}
1772
1773if (options.value) {
1774_xdsoft_datetime.setCurrentTime(options.value);
1775if (input && input.val) {
1776input.val(_xdsoft_datetime.str);
1777}
1778}
1779
1780if (isNaN(options.dayOfWeekStart)) {
1781options.dayOfWeekStart = 0;
1782} else {
1783options.dayOfWeekStart = parseInt(options.dayOfWeekStart, 10) % 7;
1784}
1785
1786if (!options.timepickerScrollbar) {
1787timeboxparent.xdsoftScroller('hide');
1788}
1789
1790if (options.minDate && /^[\+\-](.*)$/.test(options.minDate)) {
1791options.minDate = dateHelper.formatDate(_xdsoft_datetime.strToDateTime(options.minDate), options.formatDate);
1792}
1793
1794if (options.maxDate && /^[\+\-](.*)$/.test(options.maxDate)) {
1795options.maxDate = dateHelper.formatDate(_xdsoft_datetime.strToDateTime(options.maxDate), options.formatDate);
1796}
1797
1798applyButton.toggle(options.showApplyButton);
1799
1800mounth_picker
1801.find('.xdsoft_today_button')
1802.css('visibility', !options.todayButton ? 'hidden' : 'visible');
1803
1804mounth_picker
1805.find('.' + options.prev)
1806.css('visibility', !options.prevButton ? 'hidden' : 'visible');
1807
1808mounth_picker
1809.find('.' + options.next)
1810.css('visibility', !options.nextButton ? 'hidden' : 'visible');
1811
1812setMask(options);
1813
1814if (options.validateOnBlur) {
1815input
1816.off('blur.xdsoft')
1817.on('blur.xdsoft', function () {
1818if (options.allowBlank && (!$.trim($(this).val()).length || (typeof options.mask == "string" && $.trim($(this).val()) === options.mask.replace(/[0-9]/g, '_')))) {
1819$(this).val(null);
1820datetimepicker.data('xdsoft_datetime').empty();
1821} else {
1822var d = dateHelper.parseDate($(this).val(), options.format);
1823if (d) { // parseDate() may skip some invalid parts like date or time, so make it clear for user: show parsed date/time
1824$(this).val(dateHelper.formatDate(d, options.format));
1825} else {
1826var splittedHours = +([$(this).val()[0], $(this).val()[1]].join('')),
1827splittedMinutes = +([$(this).val()[2], $(this).val()[3]].join(''));
1828
1829// parse the numbers as 0312 => 03:12
1830if (!options.datepicker && options.timepicker && splittedHours >= 0 && splittedHours < 24 && splittedMinutes >= 0 && splittedMinutes < 60) {
1831$(this).val([splittedHours, splittedMinutes].map(function (item) {
1832return item > 9 ? item : '0' + item;
1833}).join(':'));
1834} else {
1835$(this).val(dateHelper.formatDate(_xdsoft_datetime.now(), options.format));
1836}
1837}
1838datetimepicker.data('xdsoft_datetime').setCurrentTime($(this).val());
1839}
1840
1841datetimepicker.trigger('changedatetime.xdsoft');
1842datetimepicker.trigger('close.xdsoft');
1843});
1844}
1845options.dayOfWeekStartPrev = (options.dayOfWeekStart === 0) ? 6 : options.dayOfWeekStart - 1;
1846
1847datetimepicker
1848.trigger('xchange.xdsoft')
1849.trigger('afterOpen.xdsoft');
1850};
1851
1852datetimepicker
1853.data('options', options)
1854.on('touchstart mousedown.xdsoft', function (event) {
1855event.stopPropagation();
1856event.preventDefault();
1857yearselect.hide();
1858monthselect.hide();
1859return false;
1860});
1861
1862//scroll_element = timepicker.find('.xdsoft_time_box');
1863timeboxparent.append(timebox);
1864timeboxparent.xdsoftScroller();
1865
1866datetimepicker.on('afterOpen.xdsoft', function () {
1867timeboxparent.xdsoftScroller();
1868});
1869
1870datetimepicker
1871.append(datepicker)
1872.append(timepicker);
1873
1874if (options.withoutCopyright !== true) {
1875datetimepicker
1876.append(xdsoft_copyright);
1877}
1878
1879datepicker
1880.append(mounth_picker)
1881.append(calendar)
1882.append(applyButton);
1883
1884$(options.parentID)
1885.append(datetimepicker);
1886
1887XDSoft_datetime = function () {
1888var _this = this;
1889_this.now = function (norecursion) {
1890var d = new Date(),
1891date,
1892time;
1893
1894if (!norecursion && options.defaultDate) {
1895date = _this.strToDateTime(options.defaultDate);
1896d.setFullYear(date.getFullYear());
1897d.setMonth(date.getMonth());
1898d.setDate(date.getDate());
1899}
1900
1901if (options.yearOffset) {
1902d.setFullYear(d.getFullYear() + options.yearOffset);
1903}
1904
1905if (!norecursion && options.defaultTime) {
1906time = _this.strtotime(options.defaultTime);
1907d.setHours(time.getHours());
1908d.setMinutes(time.getMinutes());
1909}
1910return d;
1911};
1912
1913_this.isValidDate = function (d) {
1914if (Object.prototype.toString.call(d) !== "[object Date]") {
1915return false;
1916}
1917return !isNaN(d.getTime());
1918};
1919
1920_this.setCurrentTime = function (dTime, requireValidDate) {
1921if (typeof dTime === 'string') {
1922_this.currentTime = _this.strToDateTime(dTime);
1923}
1924else if (_this.isValidDate(dTime)) {
1925_this.currentTime = dTime;
1926}
1927else if (!dTime && !requireValidDate && options.allowBlank) {
1928_this.currentTime = null;
1929}
1930else {
1931_this.currentTime = _this.now();
1932}
1933
1934datetimepicker.trigger('xchange.xdsoft');
1935};
1936
1937_this.empty = function () {
1938_this.currentTime = null;
1939};
1940
1941_this.getCurrentTime = function (dTime) {
1942return _this.currentTime;
1943};
1944
1945_this.nextMonth = function () {
1946
1947if (_this.currentTime === undefined || _this.currentTime === null) {
1948_this.currentTime = _this.now();
1949}
1950
1951var month = _this.currentTime.getMonth() + 1,
1952year;
1953if (month === 12) {
1954_this.currentTime.setFullYear(_this.currentTime.getFullYear() + 1);
1955month = 0;
1956}
1957
1958year = _this.currentTime.getFullYear();
1959
1960_this.currentTime.setDate(
1961Math.min(
1962new Date(_this.currentTime.getFullYear(), month + 1, 0).getDate(),
1963_this.currentTime.getDate()
1964)
1965);
1966_this.currentTime.setMonth(month);
1967
1968if (options.onChangeMonth && $.isFunction(options.onChangeMonth)) {
1969options.onChangeMonth.call(datetimepicker, _xdsoft_datetime.currentTime, datetimepicker.data('input'));
1970}
1971
1972if (year !== _this.currentTime.getFullYear() && $.isFunction(options.onChangeYear)) {
1973options.onChangeYear.call(datetimepicker, _xdsoft_datetime.currentTime, datetimepicker.data('input'));
1974}
1975
1976datetimepicker.trigger('xchange.xdsoft');
1977return month;
1978};
1979
1980_this.prevMonth = function () {
1981
1982if (_this.currentTime === undefined || _this.currentTime === null) {
1983_this.currentTime = _this.now();
1984}
1985
1986var month = _this.currentTime.getMonth() - 1;
1987if (month === -1) {
1988_this.currentTime.setFullYear(_this.currentTime.getFullYear() - 1);
1989month = 11;
1990}
1991_this.currentTime.setDate(
1992Math.min(
1993new Date(_this.currentTime.getFullYear(), month + 1, 0).getDate(),
1994_this.currentTime.getDate()
1995)
1996);
1997_this.currentTime.setMonth(month);
1998if (options.onChangeMonth && $.isFunction(options.onChangeMonth)) {
1999options.onChangeMonth.call(datetimepicker, _xdsoft_datetime.currentTime, datetimepicker.data('input'));
2000}
2001datetimepicker.trigger('xchange.xdsoft');
2002return month;
2003};
2004
2005_this.getWeekOfYear = function (datetime) {
2006if (options.onGetWeekOfYear && $.isFunction(options.onGetWeekOfYear)) {
2007var week = options.onGetWeekOfYear.call(datetimepicker, datetime);
2008if (typeof week !== 'undefined') {
2009return week;
2010}
2011}
2012var onejan = new Date(datetime.getFullYear(), 0, 1);
2013//First week of the year is th one with the first Thursday according to ISO8601
2014if (onejan.getDay() != 4)
2015onejan.setMonth(0, 1 + ((4 - onejan.getDay() + 7) % 7));
2016return Math.ceil((((datetime - onejan) / 86400000) + onejan.getDay() + 1) / 7);
2017};
2018
2019_this.strToDateTime = function (sDateTime) {
2020var tmpDate = [], timeOffset, currentTime;
2021
2022if (sDateTime && sDateTime instanceof Date && _this.isValidDate(sDateTime)) {
2023return sDateTime;
2024}
2025
2026tmpDate = /^(\+|\-)(.*)$/.exec(sDateTime);
2027if (tmpDate) {
2028tmpDate[2] = dateHelper.parseDate(tmpDate[2], options.formatDate);
2029}
2030if (tmpDate && tmpDate[2]) {
2031timeOffset = tmpDate[2].getTime() - (tmpDate[2].getTimezoneOffset()) * 60000;
2032currentTime = new Date((_this.now(true)).getTime() + parseInt(tmpDate[1] + '1', 10) * timeOffset);
2033} else {
2034currentTime = sDateTime ? dateHelper.parseDate(sDateTime, options.format) : _this.now();
2035}
2036
2037if (!_this.isValidDate(currentTime)) {
2038currentTime = _this.now();
2039}
2040
2041return currentTime;
2042};
2043
2044_this.strToDate = function (sDate) {
2045if (sDate && sDate instanceof Date && _this.isValidDate(sDate)) {
2046return sDate;
2047}
2048
2049var currentTime = sDate ? dateHelper.parseDate(sDate, options.formatDate) : _this.now(true);
2050if (!_this.isValidDate(currentTime)) {
2051currentTime = _this.now(true);
2052}
2053return currentTime;
2054};
2055
2056_this.strtotime = function (sTime) {
2057if (sTime && sTime instanceof Date && _this.isValidDate(sTime)) {
2058return sTime;
2059}
2060var currentTime = sTime ? dateHelper.parseDate(sTime, options.formatTime) : _this.now(true);
2061if (!_this.isValidDate(currentTime)) {
2062currentTime = _this.now(true);
2063}
2064return currentTime;
2065};
2066
2067_this.str = function () {
2068return dateHelper.formatDate(_this.currentTime, options.format);
2069};
2070_this.currentTime = this.now();
2071};
2072
2073_xdsoft_datetime = new XDSoft_datetime();
2074
2075applyButton.on('touchend click', function (e) {//pathbrite
2076e.preventDefault();
2077datetimepicker.data('changed', true);
2078_xdsoft_datetime.setCurrentTime(getCurrentValue());
2079input.val(_xdsoft_datetime.str());
2080datetimepicker.trigger('close.xdsoft');
2081});
2082mounth_picker
2083.find('.xdsoft_today_button')
2084.on('touchend mousedown.xdsoft', function () {
2085datetimepicker.data('changed', true);
2086_xdsoft_datetime.setCurrentTime(0, true);
2087datetimepicker.trigger('afterOpen.xdsoft');
2088}).on('dblclick.xdsoft', function () {
2089var currentDate = _xdsoft_datetime.getCurrentTime(), minDate, maxDate;
2090currentDate = new Date(currentDate.getFullYear(), currentDate.getMonth(), currentDate.getDate());
2091minDate = _xdsoft_datetime.strToDate(options.minDate);
2092minDate = new Date(minDate.getFullYear(), minDate.getMonth(), minDate.getDate());
2093if (currentDate < minDate) {
2094return;
2095}
2096maxDate = _xdsoft_datetime.strToDate(options.maxDate);
2097maxDate = new Date(maxDate.getFullYear(), maxDate.getMonth(), maxDate.getDate());
2098if (currentDate > maxDate) {
2099return;
2100}
2101input.val(_xdsoft_datetime.str());
2102input.trigger('change');
2103datetimepicker.trigger('close.xdsoft');
2104});
2105mounth_picker
2106.find('.xdsoft_prev,.xdsoft_next')
2107.on('touchend mousedown.xdsoft', function () {
2108var $this = $(this),
2109timer = 0,
2110stop = false;
2111
2112(function arguments_callee1(v) {
2113if ($this.hasClass(options.next)) {
2114_xdsoft_datetime.nextMonth();
2115} else if ($this.hasClass(options.prev)) {
2116_xdsoft_datetime.prevMonth();
2117}
2118if (options.monthChangeSpinner) {
2119if (!stop) {
2120timer = setTimeout(arguments_callee1, v || 100);
2121}
2122}
2123}(500));
2124
2125$([document.body, window]).on('touchend mouseup.xdsoft', function arguments_callee2() {
2126clearTimeout(timer);
2127stop = true;
2128$([document.body, window]).off('touchend mouseup.xdsoft', arguments_callee2);
2129});
2130});
2131
2132timepicker
2133.find('.xdsoft_prev,.xdsoft_next')
2134.on('touchend mousedown.xdsoft', function () {
2135var $this = $(this),
2136timer = 0,
2137stop = false,
2138period = 110;
2139(function arguments_callee4(v) {
2140var pheight = timeboxparent[0].clientHeight,
2141height = timebox[0].offsetHeight,
2142top = Math.abs(parseInt(timebox.css('marginTop'), 10));
2143if ($this.hasClass(options.next) && (height - pheight) - options.timeHeightInTimePicker >= top) {
2144timebox.css('marginTop', '-' + (top + options.timeHeightInTimePicker) + 'px');
2145} else if ($this.hasClass(options.prev) && top - options.timeHeightInTimePicker >= 0) {
2146timebox.css('marginTop', '-' + (top - options.timeHeightInTimePicker) + 'px');
2147}
2148/**
2149 * Fixed bug:
2150 * When using css3 transition, it will cause a bug that you cannot scroll the timepicker list.
2151 * The reason is that the transition-duration time, if you set it to 0, all things fine, otherwise, this
2152 * would cause a bug when you use jquery.css method.
2153 * Let's say: * { transition: all .5s ease; }
2154 * jquery timebox.css('marginTop') will return the original value which is before you clicking the next/prev button,
2155 * meanwhile the timebox[0].style.marginTop will return the right value which is after you clicking the
2156 * next/prev button.
2157 * 
2158 * What we should do:
2159 * Replace timebox.css('marginTop') with timebox[0].style.marginTop.
2160 */
2161timeboxparent.trigger('scroll_element.xdsoft_scroller', [Math.abs(parseInt(timebox[0].style.marginTop, 10) / (height - pheight))]);
2162period = (period > 10) ? 10 : period - 10;
2163if (!stop) {
2164timer = setTimeout(arguments_callee4, v || period);
2165}
2166}(500));
2167$([document.body, window]).on('touchend mouseup.xdsoft', function arguments_callee5() {
2168clearTimeout(timer);
2169stop = true;
2170$([document.body, window])
2171.off('touchend mouseup.xdsoft', arguments_callee5);
2172});
2173});
2174
2175xchangeTimer = 0;
2176// base handler - generating a calendar and timepicker
2177datetimepicker
2178.on('xchange.xdsoft', function (event) {
2179clearTimeout(xchangeTimer);
2180xchangeTimer = setTimeout(function () {
2181
2182if (_xdsoft_datetime.currentTime === undefined || _xdsoft_datetime.currentTime === null) {
2183//In case blanks are allowed, delay construction until we have a valid date 
2184if (options.allowBlank)
2185return;
2186
2187_xdsoft_datetime.currentTime = _xdsoft_datetime.now();
2188}
2189
2190var table = '',
2191start = new Date(_xdsoft_datetime.currentTime.getFullYear(), _xdsoft_datetime.currentTime.getMonth(), 1, 12, 0, 0),
2192i = 0,
2193j,
2194today = _xdsoft_datetime.now(),
2195maxDate = false,
2196minDate = false,
2197hDate,
2198day,
2199d,
2200y,
2201m,
2202w,
2203classes = [],
2204customDateSettings,
2205newRow = true,
2206time = '',
2207h = '',
2208line_time,
2209description;
2210
2211while (start.getDay() !== options.dayOfWeekStart) {
2212start.setDate(start.getDate() - 1);
2213}
2214
2215table += '<table><thead><tr>';
2216
2217if (options.weeks) {
2218table += '<th></th>';
2219}
2220
2221for (j = 0; j < 7; j += 1) {
2222table += '<th>' + options.i18n[globalLocale].dayOfWeekShort[(j + options.dayOfWeekStart) % 7] + '</th>';
2223}
2224
2225table += '</tr></thead>';
2226table += '<tbody>';
2227
2228if (options.maxDate !== false) {
2229maxDate = _xdsoft_datetime.strToDate(options.maxDate);
2230maxDate = new Date(maxDate.getFullYear(), maxDate.getMonth(), maxDate.getDate(), 23, 59, 59, 999);
2231}
2232
2233if (options.minDate !== false) {
2234minDate = _xdsoft_datetime.strToDate(options.minDate);
2235minDate = new Date(minDate.getFullYear(), minDate.getMonth(), minDate.getDate());
2236}
2237
2238while (i < _xdsoft_datetime.currentTime.countDaysInMonth() || start.getDay() !== options.dayOfWeekStart || _xdsoft_datetime.currentTime.getMonth() === start.getMonth()) {
2239classes = [];
2240i += 1;
2241
2242day = start.getDay();
2243d = start.getDate();
2244y = start.getFullYear();
2245m = start.getMonth();
2246w = _xdsoft_datetime.getWeekOfYear(start);
2247description = '';
2248
2249classes.push('xdsoft_date');
2250
2251if (options.beforeShowDay && $.isFunction(options.beforeShowDay.call)) {
2252customDateSettings = options.beforeShowDay.call(datetimepicker, start);
2253} else {
2254customDateSettings = null;
2255}
2256
2257if (options.allowDateRe && Object.prototype.toString.call(options.allowDateRe) === "[object RegExp]") {
2258if (!options.allowDateRe.test(dateHelper.formatDate(start, options.formatDate))) {
2259classes.push('xdsoft_disabled');
2260}
2261} else if (options.allowDates && options.allowDates.length > 0) {
2262if (options.allowDates.indexOf(dateHelper.formatDate(start, options.formatDate)) === -1) {
2263classes.push('xdsoft_disabled');
2264}
2265} else if ((maxDate !== false && start > maxDate) || (minDate !== false && start < minDate) || (customDateSettings && customDateSettings[0] === false)) {
2266classes.push('xdsoft_disabled');
2267} else if (options.disabledDates.indexOf(dateHelper.formatDate(start, options.formatDate)) !== -1) {
2268classes.push('xdsoft_disabled');
2269} else if (options.disabledWeekDays.indexOf(day) !== -1) {
2270classes.push('xdsoft_disabled');
2271} else if (input.is('[readonly]')) {
2272classes.push('xdsoft_disabled');
2273}
2274
2275if (customDateSettings && customDateSettings[1] !== "") {
2276classes.push(customDateSettings[1]);
2277}
2278
2279if (_xdsoft_datetime.currentTime.getMonth() !== m) {
2280classes.push('xdsoft_other_month');
2281}
2282
2283if ((options.defaultSelect || datetimepicker.data('changed')) && dateHelper.formatDate(_xdsoft_datetime.currentTime, options.formatDate) === dateHelper.formatDate(start, options.formatDate)) {
2284classes.push('xdsoft_current');
2285}
2286
2287if (dateHelper.formatDate(today, options.formatDate) === dateHelper.formatDate(start, options.formatDate)) {
2288classes.push('xdsoft_today');
2289}
2290
2291if (start.getDay() === 0 || start.getDay() === 6 || options.weekends.indexOf(dateHelper.formatDate(start, options.formatDate)) !== -1) {
2292classes.push('xdsoft_weekend');
2293}
2294
2295if (options.highlightedDates[dateHelper.formatDate(start, options.formatDate)] !== undefined) {
2296hDate = options.highlightedDates[dateHelper.formatDate(start, options.formatDate)];
2297classes.push(hDate.style === undefined ? 'xdsoft_highlighted_default' : hDate.style);
2298description = hDate.desc === undefined ? '' : hDate.desc;
2299}
2300
2301if (options.beforeShowDay && $.isFunction(options.beforeShowDay)) {
2302classes.push(options.beforeShowDay(start));
2303}
2304
2305if (newRow) {
2306table += '<tr>';
2307newRow = false;
2308if (options.weeks) {
2309table += '<th>' + w + '</th>';
2310}
2311}
2312
2313table += '<td data-date="' + d + '" data-month="' + m + '" data-year="' + y + '"' + ' class="xdsoft_date xdsoft_day_of_week' + start.getDay() + ' ' + classes.join(' ') + '" title="' + description + '">' +
2314'<div>' + d + '</div>' +
2315'</td>';
2316
2317if (start.getDay() === options.dayOfWeekStartPrev) {
2318table += '</tr>';
2319newRow = true;
2320}
2321
2322start.setDate(d + 1);
2323}
2324table += '</tbody></table>';
2325
2326calendar.html(table);
2327
2328mounth_picker.find('.xdsoft_label span').eq(0).text(options.i18n[globalLocale].months[_xdsoft_datetime.currentTime.getMonth()]);
2329mounth_picker.find('.xdsoft_label span').eq(1).text(_xdsoft_datetime.currentTime.getFullYear());
2330
2331// generate timebox
2332time = '';
2333h = '';
2334m = '';
2335
2336line_time = function line_time(h, m) {
2337var now = _xdsoft_datetime.now(), optionDateTime, current_time,
2338isALlowTimesInit = options.allowTimes && $.isArray(options.allowTimes) && options.allowTimes.length;
2339now.setHours(h);
2340h = parseInt(now.getHours(), 10);
2341now.setMinutes(m);
2342m = parseInt(now.getMinutes(), 10);
2343optionDateTime = new Date(_xdsoft_datetime.currentTime);
2344optionDateTime.setHours(h);
2345optionDateTime.setMinutes(m);
2346classes = [];
2347if ((options.minDateTime !== false && options.minDateTime > optionDateTime) || (options.maxTime !== false && _xdsoft_datetime.strtotime(options.maxTime).getTime() < now.getTime()) || (options.minTime !== false && _xdsoft_datetime.strtotime(options.minTime).getTime() > now.getTime())) {
2348classes.push('xdsoft_disabled');
2349} else if ((options.minDateTime !== false && options.minDateTime > optionDateTime) || ((options.disabledMinTime !== false && now.getTime() > _xdsoft_datetime.strtotime(options.disabledMinTime).getTime()) && (options.disabledMaxTime !== false && now.getTime() < _xdsoft_datetime.strtotime(options.disabledMaxTime).getTime()))) {
2350classes.push('xdsoft_disabled');
2351} else if (input.is('[readonly]')) {
2352classes.push('xdsoft_disabled');
2353}
2354
2355current_time = new Date(_xdsoft_datetime.currentTime);
2356current_time.setHours(parseInt(_xdsoft_datetime.currentTime.getHours(), 10));
2357
2358if (!isALlowTimesInit) {
2359current_time.setMinutes(Math[options.roundTime](_xdsoft_datetime.currentTime.getMinutes() / options.step) * options.step);
2360}
2361
2362if ((options.initTime || options.defaultSelect || datetimepicker.data('changed')) && current_time.getHours() === parseInt(h, 10) && ((!isALlowTimesInit && options.step > 59) || current_time.getMinutes() === parseInt(m, 10))) {
2363if (options.defaultSelect || datetimepicker.data('changed')) {
2364classes.push('xdsoft_current');
2365} else if (options.initTime) {
2366classes.push('xdsoft_init_time');
2367}
2368}
2369if (parseInt(today.getHours(), 10) === parseInt(h, 10) && parseInt(today.getMinutes(), 10) === parseInt(m, 10)) {
2370classes.push('xdsoft_today');
2371}
2372time += '<div class="xdsoft_time ' + classes.join(' ') + '" data-hour="' + h + '" data-minute="' + m + '">' + dateHelper.formatDate(now, options.formatTime) + '</div>';
2373};
2374
2375if (!options.allowTimes || !$.isArray(options.allowTimes) || !options.allowTimes.length) {
2376for (i = 0, j = 0; i < (options.hours12 ? 12 : 24) ; i += 1) {
2377for (j = 0; j < 60; j += options.step) {
2378h = (i < 10 ? '0' : '') + i;
2379m = (j < 10 ? '0' : '') + j;
2380line_time(h, m);
2381}
2382}
2383} else {
2384for (i = 0; i < options.allowTimes.length; i += 1) {
2385h = _xdsoft_datetime.strtotime(options.allowTimes[i]).getHours();
2386m = _xdsoft_datetime.strtotime(options.allowTimes[i]).getMinutes();
2387line_time(h, m);
2388}
2389}
2390
2391timebox.html(time);
2392
2393opt = '';
2394i = 0;
2395
2396for (i = parseInt(options.yearStart, 10) + options.yearOffset; i <= parseInt(options.yearEnd, 10) + options.yearOffset; i += 1) {
2397opt += '<div class="xdsoft_option ' + (_xdsoft_datetime.currentTime.getFullYear() === i ? 'xdsoft_current' : '') + '" data-value="' + i + '">' + i + '</div>';
2398}
2399yearselect.children().eq(0)
2400.html(opt);
2401
2402for (i = parseInt(options.monthStart, 10), opt = ''; i <= parseInt(options.monthEnd, 10) ; i += 1) {
2403opt += '<div class="xdsoft_option ' + (_xdsoft_datetime.currentTime.getMonth() === i ? 'xdsoft_current' : '') + '" data-value="' + i + '">' + options.i18n[globalLocale].months[i] + '</div>';
2404}
2405monthselect.children().eq(0).html(opt);
2406$(datetimepicker)
2407.trigger('generate.xdsoft');
2408}, 10);
2409event.stopPropagation();
2410})
2411.on('afterOpen.xdsoft', function () {
2412if (options.timepicker) {
2413var classType, pheight, height, top;
2414if (timebox.find('.xdsoft_current').length) {
2415classType = '.xdsoft_current';
2416} else if (timebox.find('.xdsoft_init_time').length) {
2417classType = '.xdsoft_init_time';
2418}
2419if (classType) {
2420pheight = timeboxparent[0].clientHeight;
2421height = timebox[0].offsetHeight;
2422top = timebox.find(classType).index() * options.timeHeightInTimePicker + 1;
2423if ((height - pheight) < top) {
2424top = height - pheight;
2425}
2426timeboxparent.trigger('scroll_element.xdsoft_scroller', [parseInt(top, 10) / (height - pheight)]);
2427} else {
2428timeboxparent.trigger('scroll_element.xdsoft_scroller', [0]);
2429}
2430}
2431});
2432
2433timerclick = 0;
2434calendar
2435.on('touchend click.xdsoft', 'td', function (xdevent) {
2436xdevent.stopPropagation();  // Prevents closing of Pop-ups, Modals and Flyouts in Bootstrap
2437timerclick += 1;
2438var $this = $(this),
2439currentTime = _xdsoft_datetime.currentTime;
2440
2441if (currentTime === undefined || currentTime === null) {
2442_xdsoft_datetime.currentTime = _xdsoft_datetime.now();
2443currentTime = _xdsoft_datetime.currentTime;
2444}
2445
2446if ($this.hasClass('xdsoft_disabled')) {
2447return false;
2448}
2449
2450currentTime.setDate(1);
2451currentTime.setFullYear($this.data('year'));
2452currentTime.setMonth($this.data('month'));
2453currentTime.setDate($this.data('date'));
2454
2455datetimepicker.trigger('select.xdsoft', [currentTime]);
2456
2457input.val(_xdsoft_datetime.str());
2458
2459if (options.onSelectDate && $.isFunction(options.onSelectDate)) {
2460options.onSelectDate.call(datetimepicker, _xdsoft_datetime.currentTime, datetimepicker.data('input'), xdevent);
2461}
2462
2463datetimepicker.data('changed', true);
2464datetimepicker.trigger('xchange.xdsoft');
2465datetimepicker.trigger('changedatetime.xdsoft');
2466if ((timerclick > 1 || (options.closeOnDateSelect === true || (options.closeOnDateSelect === false && !options.timepicker))) && !options.inline) {
2467datetimepicker.trigger('close.xdsoft');
2468}
2469setTimeout(function () {
2470timerclick = 0;
2471}, 200);
2472});
2473
2474timebox
2475.on('touchend click.xdsoft', 'div', function (xdevent) {
2476xdevent.stopPropagation();
2477var $this = $(this),
2478currentTime = _xdsoft_datetime.currentTime;
2479
2480if (currentTime === undefined || currentTime === null) {
2481_xdsoft_datetime.currentTime = _xdsoft_datetime.now();
2482currentTime = _xdsoft_datetime.currentTime;
2483}
2484
2485if ($this.hasClass('xdsoft_disabled')) {
2486return false;
2487}
2488currentTime.setHours($this.data('hour'));
2489currentTime.setMinutes($this.data('minute'));
2490datetimepicker.trigger('select.xdsoft', [currentTime]);
2491
2492datetimepicker.data('input').val(_xdsoft_datetime.str());
2493
2494if (options.onSelectTime && $.isFunction(options.onSelectTime)) {
2495options.onSelectTime.call(datetimepicker, _xdsoft_datetime.currentTime, datetimepicker.data('input'), xdevent);
2496}
2497datetimepicker.data('changed', true);
2498datetimepicker.trigger('xchange.xdsoft');
2499datetimepicker.trigger('changedatetime.xdsoft');
2500if (options.inline !== true && options.closeOnTimeSelect === true) {
2501datetimepicker.trigger('close.xdsoft');
2502}
2503});
2504
2505datepicker
2506.on('mousewheel.xdsoft', function (event) {
2507if (!options.scrollMonth) {
2508return true;
2509}
2510if (event.deltaY < 0) {
2511_xdsoft_datetime.nextMonth();
2512} else {
2513_xdsoft_datetime.prevMonth();
2514}
2515return false;
2516});
2517
2518input
2519.on('mousewheel.xdsoft', function (event) {
2520if (!options.scrollInput) {
2521return true;
2522}
2523if (!options.datepicker && options.timepicker) {
2524current_time_index = timebox.find('.xdsoft_current').length ? timebox.find('.xdsoft_current').eq(0).index() : 0;
2525if (current_time_index + event.deltaY >= 0 && current_time_index + event.deltaY < timebox.children().length) {
2526current_time_index += event.deltaY;
2527}
2528if (timebox.children().eq(current_time_index).length) {
2529timebox.children().eq(current_time_index).trigger('mousedown');
2530}
2531return false;
2532}
2533if (options.datepicker && !options.timepicker) {
2534datepicker.trigger(event, [event.deltaY, event.deltaX, event.deltaY]);
2535if (input.val) {
2536input.val(_xdsoft_datetime.str());
2537}
2538datetimepicker.trigger('changedatetime.xdsoft');
2539return false;
2540}
2541});
2542
2543datetimepicker
2544.on('changedatetime.xdsoft', function (event) {
2545if (options.onChangeDateTime && $.isFunction(options.onChangeDateTime)) {
2546var $input = datetimepicker.data('input');
2547options.onChangeDateTime.call(datetimepicker, _xdsoft_datetime.currentTime, $input, event);
2548delete options.value;
2549$input.trigger('change');
2550}
2551})
2552.on('generate.xdsoft', function () {
2553if (options.onGenerate && $.isFunction(options.onGenerate)) {
2554options.onGenerate.call(datetimepicker, _xdsoft_datetime.currentTime, datetimepicker.data('input'));
2555}
2556if (triggerAfterOpen) {
2557datetimepicker.trigger('afterOpen.xdsoft');
2558triggerAfterOpen = false;
2559}
2560})
2561.on('click.xdsoft', function (xdevent) {
2562xdevent.stopPropagation();
2563});
2564
2565current_time_index = 0;
2566
2567/**
2568 * Runs the callback for each of the specified node's ancestors.
2569 *
2570 * Return FALSE from the callback to stop ascending.
2571 *
2572 * @param {DOMNode} node
2573 * @param {Function} callback
2574 * @returns {undefined}
2575 */
2576forEachAncestorOf = function (node, callback) {
2577do {
2578node = node.parentNode;
2579
2580if (callback(node) === false) {
2581break;
2582}
2583} while (node.nodeName !== 'HTML');
2584};
2585
2586/**
2587 * Sets the position of the picker.
2588 *
2589 * @returns {undefined}
2590 */
2591setPos = function () {
2592var dateInputOffset,
2593dateInputElem,
2594verticalPosition,
2595left,
2596position,
2597datetimepickerElem,
2598dateInputHasFixedAncestor,
2599$dateInput,
2600windowWidth,
2601verticalAnchorEdge,
2602datetimepickerCss,
2603windowHeight,
2604windowScrollTop;
2605
2606$dateInput = datetimepicker.data('input');
2607dateInputOffset = $dateInput.offset();
2608dateInputElem = $dateInput[0];
2609
2610verticalAnchorEdge = 'top';
2611verticalPosition = (dateInputOffset.top + dateInputElem.offsetHeight) - 1;
2612left = dateInputOffset.left;
2613position = "absolute";
2614
2615windowWidth = $(window).width();
2616windowHeight = $(window).height();
2617windowScrollTop = $(window).scrollTop();
2618
2619if ((document.documentElement.clientWidth - dateInputOffset.left) < datepicker.parent().outerWidth(true)) {
2620var diff = datepicker.parent().outerWidth(true) - dateInputElem.offsetWidth;
2621left = left - diff;
2622}
2623
2624if ($dateInput.parent().css('direction') === 'rtl') {
2625left -= (datetimepicker.outerWidth() - $dateInput.outerWidth());
2626}
2627
2628if (options.fixed) {
2629verticalPosition -= windowScrollTop;
2630left -= $(window).scrollLeft();
2631position = "fixed";
2632} else {
2633dateInputHasFixedAncestor = false;
2634
2635forEachAncestorOf(dateInputElem, function (ancestorNode) {
2636if (window.getComputedStyle(ancestorNode).getPropertyValue('position') === 'fixed') {
2637dateInputHasFixedAncestor = true;
2638return false;
2639}
2640});
2641
2642if (dateInputHasFixedAncestor) {
2643position = 'fixed';
2644
2645//If the picker won't fit entirely within the viewport then display it above the date input.
2646if (verticalPosition + datetimepicker.outerHeight() > windowHeight + windowScrollTop) {
2647verticalAnchorEdge = 'bottom';
2648verticalPosition = (windowHeight + windowScrollTop) - dateInputOffset.top;
2649} else {
2650verticalPosition -= windowScrollTop;
2651}
2652} else {
2653if (verticalPosition + dateInputElem.offsetHeight > windowHeight + windowScrollTop) {
2654verticalPosition = dateInputOffset.top - dateInputElem.offsetHeight + 1;
2655}
2656}
2657
2658if (verticalPosition < 0) {
2659verticalPosition = 0;
2660}
2661
2662if (left + dateInputElem.offsetWidth > windowWidth) {
2663left = windowWidth - dateInputElem.offsetWidth;
2664}
2665}
2666
2667datetimepickerElem = datetimepicker[0];
2668
2669forEachAncestorOf(datetimepickerElem, function (ancestorNode) {
2670var ancestorNodePosition;
2671
2672ancestorNodePosition = window.getComputedStyle(ancestorNode).getPropertyValue('position');
2673
2674if (ancestorNodePosition === 'relative' && windowWidth >= ancestorNode.offsetWidth) {
2675left = left - ((windowWidth - ancestorNode.offsetWidth) / 2);
2676return false;
2677}
2678});
2679
2680datetimepickerCss = {
2681position: position,
2682left: left,
2683top: '',  //Initialize to prevent previous values interfering with new ones.
2684bottom: ''  //Initialize to prevent previous values interfering with new ones.
2685};
2686
2687datetimepickerCss[verticalAnchorEdge] = verticalPosition;
2688
2689datetimepicker.css(datetimepickerCss);
2690};
2691
2692datetimepicker
2693.on('open.xdsoft', function (event) {
2694var onShow = true;
2695if (options.onShow && $.isFunction(options.onShow)) {
2696onShow = options.onShow.call(datetimepicker, _xdsoft_datetime.currentTime, datetimepicker.data('input'), event);
2697}
2698if (onShow !== false) {
2699datetimepicker.show();
2700setPos();
2701$(window)
2702.off('resize.xdsoft', setPos)
2703.on('resize.xdsoft', setPos);
2704
2705if (options.closeOnWithoutClick) {
2706$([document.body, window]).on('touchstart mousedown.xdsoft', function arguments_callee6() {
2707datetimepicker.trigger('close.xdsoft');
2708$([document.body, window]).off('touchstart mousedown.xdsoft', arguments_callee6);
2709});
2710}
2711}
2712})
2713.on('close.xdsoft', function (event) {
2714var onClose = true;
2715mounth_picker
2716.find('.xdsoft_month,.xdsoft_year')
2717.find('.xdsoft_select')
2718.hide();
2719if (options.onClose && $.isFunction(options.onClose)) {
2720onClose = options.onClose.call(datetimepicker, _xdsoft_datetime.currentTime, datetimepicker.data('input'), event);
2721}
2722if (onClose !== false && !options.opened && !options.inline) {
2723datetimepicker.hide();
2724}
2725event.stopPropagation();
2726})
2727.on('toggle.xdsoft', function () {
2728if (datetimepicker.is(':visible')) {
2729datetimepicker.trigger('close.xdsoft');
2730} else {
2731datetimepicker.trigger('open.xdsoft');
2732}
2733})
2734.data('input', input);
2735
2736timer = 0;
2737
2738datetimepicker.data('xdsoft_datetime', _xdsoft_datetime);
2739datetimepicker.setOptions(options);
2740
2741function getCurrentValue() {
2742var ct = false, time;
2743
2744if (options.startDate) {
2745ct = _xdsoft_datetime.strToDate(options.startDate);
2746} else {
2747ct = options.value || ((input && input.val && input.val()) ? input.val() : '');
2748if (ct) {
2749ct = _xdsoft_datetime.strToDateTime(ct);
2750} else if (options.defaultDate) {
2751ct = _xdsoft_datetime.strToDateTime(options.defaultDate);
2752if (options.defaultTime) {
2753time = _xdsoft_datetime.strtotime(options.defaultTime);
2754ct.setHours(time.getHours());
2755ct.setMinutes(time.getMinutes());
2756}
2757}
2758}
2759
2760if (ct && _xdsoft_datetime.isValidDate(ct)) {
2761datetimepicker.data('changed', true);
2762} else {
2763ct = '';
2764}
2765
2766return ct || 0;
2767}
2768
2769function setMask(options) {
2770
2771var isValidValue = function (mask, value) {
2772var reg = mask
2773.replace(/([\[\]\/\{\}\(\)\-\.\+]{1})/g, '\\$1')
2774.replace(/_/g, '{digit+}')
2775.replace(/([0-9]{1})/g, '{digit$1}')
2776.replace(/\{digit([0-9]{1})\}/g, '[0-$1_]{1}')
2777.replace(/\{digit[\+]\}/g, '[0-9_]{1}');
2778return (new RegExp(reg)).test(value);
2779},
2780getCaretPos = function (input) {
2781try {
2782if (document.selection && document.selection.createRange) {
2783var range = document.selection.createRange();
2784return range.getBookmark().charCodeAt(2) - 2;
2785}
2786if (input.setSelectionRange) {
2787return input.selectionStart;
2788}
2789} catch (e) {
2790return 0;
2791}
2792},
2793setCaretPos = function (node, pos) {
2794node = (typeof node === "string" || node instanceof String) ? document.getElementById(node) : node;
2795if (!node) {
2796return false;
2797}
2798if (node.createTextRange) {
2799var textRange = node.createTextRange();
2800textRange.collapse(true);
2801textRange.moveEnd('character', pos);
2802textRange.moveStart('character', pos);
2803textRange.select();
2804return true;
2805}
2806if (node.setSelectionRange) {
2807node.setSelectionRange(pos, pos);
2808return true;
2809}
2810return false;
2811};
2812if (options.mask) {
2813input.off('keydown.xdsoft');
2814}
2815if (options.mask === true) {
2816if (typeof moment != 'undefined') {
2817options.mask = options.format
2818.replace(/Y{4}/g, '9999')
2819.replace(/Y{2}/g, '99')
2820.replace(/M{2}/g, '19')
2821.replace(/D{2}/g, '39')
2822.replace(/H{2}/g, '29')
2823.replace(/m{2}/g, '59')
2824.replace(/s{2}/g, '59');
2825} else {
2826options.mask = options.format
2827.replace(/Y/g, '9999')
2828.replace(/F/g, '9999')
2829.replace(/m/g, '19')
2830.replace(/d/g, '39')
2831.replace(/H/g, '29')
2832.replace(/i/g, '59')
2833.replace(/s/g, '59');
2834}
2835}
2836
2837if ($.type(options.mask) === 'string') {
2838if (!isValidValue(options.mask, input.val())) {
2839input.val(options.mask.replace(/[0-9]/g, '_'));
2840setCaretPos(input[0], 0);
2841}
2842
2843input.on('keydown.xdsoft', function (event) {
2844var val = this.value,
2845key = event.which,
2846pos,
2847digit;
2848
2849if (((key >= KEY0 && key <= KEY9) || (key >= _KEY0 && key <= _KEY9)) || (key === BACKSPACE || key === DEL)) {
2850pos = getCaretPos(this);
2851digit = (key !== BACKSPACE && key !== DEL) ? String.fromCharCode((_KEY0 <= key && key <= _KEY9) ? key - KEY0 : key) : '_';
2852
2853if ((key === BACKSPACE || key === DEL) && pos) {
2854pos -= 1;
2855digit = '_';
2856}
2857
2858while (/[^0-9_]/.test(options.mask.substr(pos, 1)) && pos < options.mask.length && pos > 0) {
2859pos += (key === BACKSPACE || key === DEL) ? -1 : 1;
2860}
2861
2862val = val.substr(0, pos) + digit + val.substr(pos + 1);
2863if ($.trim(val) === '') {
2864val = options.mask.replace(/[0-9]/g, '_');
2865} else {
2866if (pos === options.mask.length) {
2867event.preventDefault();
2868return false;
2869}
2870}
2871
2872pos += (key === BACKSPACE || key === DEL) ? 0 : 1;
2873while (/[^0-9_]/.test(options.mask.substr(pos, 1)) && pos < options.mask.length && pos > 0) {
2874pos += (key === BACKSPACE || key === DEL) ? -1 : 1;
2875}
2876
2877if (isValidValue(options.mask, val)) {
2878this.value = val;
2879setCaretPos(this, pos);
2880} else if ($.trim(val) === '') {
2881this.value = options.mask.replace(/[0-9]/g, '_');
2882} else {
2883input.trigger('error_input.xdsoft');
2884}
2885} else {
2886if (([AKEY, CKEY, VKEY, ZKEY, YKEY].indexOf(key) !== -1 && ctrlDown) || [ESC, ARROWUP, ARROWDOWN, ARROWLEFT, ARROWRIGHT, F5, CTRLKEY, TAB, ENTER].indexOf(key) !== -1) {
2887return true;
2888}
2889}
2890
2891event.preventDefault();
2892return false;
2893});
2894}
2895}
2896
2897_xdsoft_datetime.setCurrentTime(getCurrentValue());
2898
2899input
2900.data('xdsoft_datetimepicker', datetimepicker)
2901.on('open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart', function () {
2902if (input.is(':disabled') || (input.data('xdsoft_datetimepicker').is(':visible') && options.closeOnInputClick)) {
2903return;
2904}
2905clearTimeout(timer);
2906timer = setTimeout(function () {
2907if (input.is(':disabled')) {
2908return;
2909}
2910
2911triggerAfterOpen = true;
2912_xdsoft_datetime.setCurrentTime(getCurrentValue(), true);
2913if (options.mask) {
2914setMask(options);
2915}
2916datetimepicker.trigger('open.xdsoft');
2917}, 100);
2918})
2919.on('keydown.xdsoft', function (event) {
2920var elementSelector,
2921key = event.which;
2922if ([ENTER].indexOf(key) !== -1 && options.enterLikeTab) {
2923elementSelector = $("input:visible,textarea:visible,button:visible,a:visible");
2924datetimepicker.trigger('close.xdsoft');
2925elementSelector.eq(elementSelector.index(this) + 1).focus();
2926return false;
2927}
2928if ([TAB].indexOf(key) !== -1) {
2929datetimepicker.trigger('close.xdsoft');
2930return true;
2931}
2932})
2933.on('blur.xdsoft', function () {
2934datetimepicker.trigger('close.xdsoft');
2935});
2936};
2937destroyDateTimePicker = function (input) {
2938var datetimepicker = input.data('xdsoft_datetimepicker');
2939if (datetimepicker) {
2940datetimepicker.data('xdsoft_datetime', null);
2941datetimepicker.remove();
2942input
2943.data('xdsoft_datetimepicker', null)
2944.off('.xdsoft');
2945$(window).off('resize.xdsoft');
2946$([window, document.body]).off('mousedown.xdsoft touchstart');
2947if (input.unmousewheel) {
2948input.unmousewheel();
2949}
2950}
2951};
2952$(document)
2953.off('keydown.xdsoftctrl keyup.xdsoftctrl')
2954.on('keydown.xdsoftctrl', function (e) {
2955if (e.keyCode === CTRLKEY) {
2956ctrlDown = true;
2957}
2958})
2959.on('keyup.xdsoftctrl', function (e) {
2960if (e.keyCode === CTRLKEY) {
2961ctrlDown = false;
2962}
2963});
2964
2965this.each(function () {
2966var datetimepicker = $(this).data('xdsoft_datetimepicker'), $input;
2967if (datetimepicker) {
2968if ($.type(opt) === 'string') {
2969switch (opt) {
2970case 'show':
2971$(this).select().focus();
2972datetimepicker.trigger('open.xdsoft');
2973break;
2974case 'hide':
2975datetimepicker.trigger('close.xdsoft');
2976break;
2977case 'toggle':
2978datetimepicker.trigger('toggle.xdsoft');
2979break;
2980case 'destroy':
2981destroyDateTimePicker($(this));
2982break;
2983case 'reset':
2984this.value = this.defaultValue;
2985if (!this.value || !datetimepicker.data('xdsoft_datetime').isValidDate(dateHelper.parseDate(this.value, options.format))) {
2986datetimepicker.data('changed', false);
2987}
2988datetimepicker.data('xdsoft_datetime').setCurrentTime(this.value);
2989break;
2990case 'validate':
2991$input = datetimepicker.data('input');
2992$input.trigger('blur.xdsoft');
2993break;
2994default:
2995if (datetimepicker[opt] && $.isFunction(datetimepicker[opt])) {
2996result = datetimepicker[opt](opt2);
2997}
2998}
2999} else {
3000datetimepicker
3001.setOptions(opt);
3002}
3003return 0;
3004}
3005if ($.type(opt) !== 'string') {
3006if (!options.lazyInit || options.open || options.inline) {
3007createDateTimePicker($(this));
3008} else {
3009lazyInit($(this));
3010}
3011}
3012});
3013
3014return result;
3015};
3016
3017$.fn.datetimepicker.defaults = default_options;
3018
3019function HighlightedDate(date, desc, style) {
3020"use strict";
3021this.date = date;
3022this.desc = desc;
3023this.style = style;
3024}
3025}));
3026/*!
3027 * jQuery Mousewheel 3.1.13
3028 *
3029 * Copyright jQuery Foundation and other contributors
3030 * Released under the MIT license
3031 * http://jquery.org/license
3032 */
3033
3034(function (factory) {
3035if (typeof define === 'function' && define.amd) {
3036// AMD. Register as an anonymous module.
3037define(['jquery'], factory);
3038} else if (typeof exports === 'object') {
vendor: 5,303 bytes, lines 3039-3224
3039// Node/CommonJS style for Browserify
3040module.exports = factory;
3041} else {
3042// Browser globals
3043factory(jQuery);
3044}
3045}(function ($) {
3046
3047var toFix = ['wheel', 'mousewheel', 'DOMMouseScroll', 'MozMousePixelScroll'],
3048toBind = ('onwheel' in document || document.documentMode >= 9) ?
3049['wheel'] : ['mousewheel', 'DomMouseScroll', 'MozMousePixelScroll'],
3050slice = Array.prototype.slice,
3051nullLowestDeltaTimeout, lowestDelta;
3052
3053if ($.event.fixHooks) {
3054for (var i = toFix.length; i;) {
3055$.event.fixHooks[toFix[--i]] = $.event.mouseHooks;
3056}
3057}
3058
3059var special = $.event.special.mousewheel = {
3060version: '3.1.12',
3061
3062setup: function () {
3063if (this.addEventListener) {
3064for (var i = toBind.length; i;) {
3065this.addEventListener(toBind[--i], handler, false);
3066}
3067} else {
3068this.onmousewheel = handler;
3069}
3070// Store the line height and page height for this particular element
3071$.data(this, 'mousewheel-line-height', special.getLineHeight(this));
3072$.data(this, 'mousewheel-page-height', special.getPageHeight(this));
3073},
3074
3075teardown: function () {
3076if (this.removeEventListener) {
3077for (var i = toBind.length; i;) {
3078this.removeEventListener(toBind[--i], handler, false);
3079}
3080} else {
3081this.onmousewheel = null;
3082}
3083// Clean up the data we added to the element
3084$.removeData(this, 'mousewheel-line-height');
3085$.removeData(this, 'mousewheel-page-height');
3086},
3087
3088getLineHeight: function (elem) {
3089var $elem = $(elem),
3090$parent = $elem['offsetParent' in $.fn ? 'offsetParent' : 'parent']();
3091if (!$parent.length) {
3092$parent = $('body');
3093}
3094return parseInt($parent.css('fontSize'), 10) || parseInt($elem.css('fontSize'), 10) || 16;
3095},
3096
3097getPageHeight: function (elem) {
3098return $(elem).height();
3099},
3100
3101settings: {
3102adjustOldDeltas: true, // see shouldAdjustOldDeltas() below
3103normalizeOffset: true  // calls getBoundingClientRect for each event
3104}
3105};
3106
3107$.fn.extend({
3108mousewheel: function (fn) {
3109return fn ? this.bind('mousewheel', fn) : this.trigger('mousewheel');
3110},
3111
3112unmousewheel: function (fn) {
3113return this.unbind('mousewheel', fn);
3114}
3115});
3116
3117
3118function handler(event) {
3119var orgEvent = event || window.event,
3120args = slice.call(arguments, 1),
3121delta = 0,
3122deltaX = 0,
3123deltaY = 0,
3124absDelta = 0,
3125offsetX = 0,
3126offsetY = 0;
3127event = $.event.fix(orgEvent);
3128event.type = 'mousewheel';
3129
3130// Old school scrollwheel delta
3131if ('detail' in orgEvent) { deltaY = orgEvent.detail * -1; }
3132if ('wheelDelta' in orgEvent) { deltaY = orgEvent.wheelDelta; }
3133if ('wheelDeltaY' in orgEvent) { deltaY = orgEvent.wheelDeltaY; }
3134if ('wheelDeltaX' in orgEvent) { deltaX = orgEvent.wheelDeltaX * -1; }
3135
3136// Firefox < 17 horizontal scrolling related to DOMMouseScroll event
3137if ('axis' in orgEvent && orgEvent.axis === orgEvent.HORIZONTAL_AXIS) {
3138deltaX = deltaY * -1;
3139deltaY = 0;
3140}
3141
3142// Set delta to be deltaY or deltaX if deltaY is 0 for backwards compatabilitiy
3143delta = deltaY === 0 ? deltaX : deltaY;
3144
3145// New school wheel delta (wheel event)
3146if ('deltaY' in orgEvent) {
3147deltaY = orgEvent.deltaY * -1;
3148delta = deltaY;
3149}
3150if ('deltaX' in orgEvent) {
3151deltaX = orgEvent.deltaX;
3152if (deltaY === 0) { delta = deltaX * -1; }
3153}
3154
3155// No change actually happened, no reason to go any further
3156if (deltaY === 0 && deltaX === 0) { return; }
3157
3158// Need to convert lines and pages to pixels if we aren't already in pixels
3159// There are three delta modes:
3160//   * deltaMode 0 is by pixels, nothing to do
3161//   * deltaMode 1 is by lines
3162//   * deltaMode 2 is by pages
3163if (orgEvent.deltaMode === 1) {
3164var lineHeight = $.data(this, 'mousewheel-line-height');
3165delta *= lineHeight;
3166deltaY *= lineHeight;
3167deltaX *= lineHeight;
3168} else if (orgEvent.deltaMode === 2) {
3169var pageHeight = $.data(this, 'mousewheel-page-height');
3170delta *= pageHeight;
3171deltaY *= pageHeight;
3172deltaX *= pageHeight;
3173}
3174
3175// Store lowest absolute delta to normalize the delta values
3176absDelta = Math.max(Math.abs(deltaY), Math.abs(deltaX));
3177
3178if (!lowestDelta || absDelta < lowestDelta) {
3179lowestDelta = absDelta;
3180
3181// Adjust older deltas if necessary
3182if (shouldAdjustOldDeltas(orgEvent, absDelta)) {
3183lowestDelta /= 40;
3184}
3185}
3186
3187// Adjust older deltas if necessary
3188if (shouldAdjustOldDeltas(orgEvent, absDelta)) {
3189// Divide all the things by 40!
3190delta /= 40;
3191deltaX /= 40;
3192deltaY /= 40;
3193}
3194
3195// Get a whole, normalized value for the deltas
3196delta = Math[delta >= 1 ? 'floor' : 'ceil'](delta / lowestDelta);
3197deltaX = Math[deltaX >= 1 ? 'floor' : 'ceil'](deltaX / lowestDelta);
3198deltaY = Math[deltaY >= 1 ? 'floor' : 'ceil'](deltaY / lowestDelta);
3199
3200// Normalise offsetX and offsetY properties
3201if (special.settings.normalizeOffset && this.getBoundingClientRect) {
3202var boundingRect = this.getBoundingClientRect();
3203offsetX = event.clientX - boundingRect.left;
3204offsetY = event.clientY - boundingRect.top;
3205}
3206
3207// Add information to the event object
3208event.deltaX = deltaX;
3209event.deltaY = deltaY;
3210event.deltaFactor = lowestDelta;
3211event.offsetX = offsetX;
3212event.offsetY = offsetY;
3213// Go ahead and set deltaMode to 0 since we converted to pixels
3214// Although this is a little odd since we overwrite the deltaX/Y
3215// properties with normalized deltas.
3216event.deltaMode = 0;
3217
3218// Add event and delta to the front of the arguments
3219args.unshift(event, delta, deltaX, deltaY);
3220
3221// Clearout lowestDelta after sometime to better
3222// handle multiple device types that give different
3223// a different lowestDelta
3224// Ex: trackpad = 3 and mouse wheel = 120
3225if (nullLowestDeltaTimeout) { clearTimeout(nullLowestDeltaTimeout); }
3226nullLowestDeltaTimeout = setTimeout(nullLowestDelta, 200);
3227
3228return ($.event.dispatch || $.event.handle).apply(this, args);
3229}
3230
3231function nullLowestDelta() {
3232lowestDelta = null;
3233}
3234
3235function shouldAdjustOldDeltas(orgEvent, absDelta) {
3236// If this is an older event and the delta is divisable by 120,
3237// then we are assuming that the browser is treating this as an
3238// older mouse wheel event and that we should divide the deltas
3239// by 40 to try and get a more usable deltaFactor.
3240// Side note, this actually impacts the reported scroll distance
3241// in older browsers and can cause scrolling to be slower than native.
3242// Turn this off by setting $.event.special.mousewheel.settings.adjustOldDeltas to false.
3243return special.settings.adjustOldDeltas && orgEvent.type === 'mousewheel' && absDelta % 120 === 0;
3244}
3245
3246}));
3247function showModal(n){showModal(n,null)}function showModal(n,t){var r=$("body"),u=r.height(),f=document.createElement("div"),i,e,o;f.setAttribute("id","modaloverlay");f.style.display="none";r.append(f);$("#modaloverlay").bind("click",function(){return closeModal(),!1});i=document.createElement("div");i.setAttribute("id","modalwindow");i.style.display="none";r.append(i);i=$(i);e=document.createElement("div");e.setAttribute("id","modalinner");i.append(e);i.bind("click",function(){closeModal()});$("#modalinner").click(function(n){n.stopPropagation()});isNaN(n)?($("#modalinner").html(n+'<div id="modalclose"><a href="#" onclick="javascript:closeModal();return false;"><span>close<\/span><\/div>'),t&&t()):(o="/fend/request/reqArticle.asp?article_id="+n+"&doNotRedirect=true"+randomQueryString(),$.ajax({url:o,success:function(n){$("#modalinner").html(n);centerModal(i);t&&t()}}));centerModal(i);$("select").css("visibility","hidden");$("#modaloverlay").fadeTo("slow",.7);$("#modalwindow").fadeIn("slow");$("#modalinner").height()<$(window).height()?setOverlaySize($("#modaloverlay"),u):setOverlaySize($("#modaloverlay"),$(document).height());$(window).resize(function(){$("#modalinner").height()<$(window).height()?(setOverlaySize($("#modaloverlay"),u),centerModal(i)):setOverlaySize($("#modaloverlay"),$(document).height())});$(window).scroll(function(){$("#modalinner").height()<$(window).height()?(setOverlaySize($("#modaloverlay"),u),centerModal(i)):setOverlaySize($("#modaloverlay"),$(document).height())})}function closeModal(){$("select").css("visibility","visible");$("#modalwindow").hide();$("#modaloverlay").hide();$("#modaloverlay").remove();$("#modalwindow").remove()}function centerModal(n){var t=($(window).height()-n.outerHeight())/2+$(window).scrollTop();t<10&&(t=10);n.css("top",t)}function setOverlaySize(n,t){var i=$(window).height();overlayHeight=t>i?t:i;n.height(overlayHeight)}!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jQuery)}(function(i){"use strict";var e=window.Slick||{};(e=function(){var e=0;return function(t,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(t),appendDots:i(t),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return i('<button type="button" />').text(t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,
vendor: 6,594 bytes, line 3247
3247sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},i.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden="hidden",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=i(t),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,s=i(t).data("slick")||{},n.options=i.extend({},n.defaults,o,s),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,void 0!==document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=i.proxy(n.autoPlay,n),n.autoPlayClear=i.proxy(n.autoPlayClear,n),n.autoPlayIterator=i.proxy(n.autoPlayIterator,n),n.changeSlide=i.proxy(n.changeSlide,n),n.clickHandler=i.proxy(n.clickHandler,n),n.selectHandler=i.proxy(n.selectHandler,n),n.setPosition=i.proxy(n.setPosition,n),n.swipeHandler=i.proxy(n.swipeHandler,n),n.dragHandler=i.proxy(n.dragHandler,n),n.keyHandler=i.proxy(n.keyHandler,n),n.instanceUid=e++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,t,o){var s=this;if("boolean"==typeof t)o=t,t=null;else if(t<0||t>=s.slideCount)return!1;s.unload(),"number"==typeof t?0===t&&0===s.$slides.length?i(e).appendTo(s.$slideTrack):o?i(e).insertBefore(s.$slides.eq(t)):i(e).insertAfter(s.$slides.eq(t)):!0===o?i(e).prependTo(s.$slideTrack):i(e).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each(function(e,t){i(t).attr("data-slick-index",e)}),s.$slidesCache=s.$slides,s.reinit()},e.prototype.animateHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.animate({height:e},i.options.speed)}},e.prototype.animateSlide=function(e,t){var o={},s=this;s.animateHeight(),!0===s.options.rtl&&!1===s.options.vertical&&(e=-e),!1===s.transformsEnabled?!1===s.options.vertical?s.$slideTrack.animate({left:e},s.options.speed,s.options.easing,t):s.$slideTrack.animate({top:e},s.options.speed,s.options.easing,t):!1===s.cssTransitions?(!0===s.options.rtl&&(s.currentLeft=-s.currentLeft),i({animStart:s.currentLeft}).animate({animStart:e},{duration:s.options.speed,easing:s.options.easing,step:function(i){i=Math.ceil(i),!1===s.options.vertical?(o[s.animType]="translate("+i+"px, 0px)",s.$slideTrack.css(o)):(o[s.animType]="translate(0px,"+i+"px)",s.$slideTrack.css(o))},complete:function(){t&&t.call()}})):(s.applyTransition(),e=Math.ceil(e),!1===s.options.vertical?o[s.animType]="translate3d("+e+"px, 0px, 0px)":o[s.animType]="translate3d(0px,"+e+"px, 0px)",s.$slideTrack.css(o),t&&setTimeout(function(){s.disableTransition(),t.call()},s.options.speed))},e.prototype.getNavTarget=function(){var e=this,t=e.options.asNavFor;return t&&null!==t&&(t=i(t).not(e.$slider)),t},e.prototype.asNavFor=function(e){var t=this.getNavTarget();null!==t&&"object"==typeof t&&t.each(function(){var t=i(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)})},e.prototype.applyTransition=function(i){var e=this,t={};!1===e.options.fade?t[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:t[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.autoPlay=function(){var i=this;i.autoPlayClear(),i.slideCount>i.options.slidesToShow&&(i.autoPlayTimer=setInterval(i.autoPlayIterator,i.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var i=this;i.autoPlayTimer&&clearInterval(i.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var i=this,e=i.currentSlide+i.options.slidesToScroll;i.paused||i.interrupted||i.focussed||(!1===i.options.infinite&&(1===i.direction&&i.currentSlide+1===i.slideCount-1?i.direction=0:0===i.direction&&(e=i.currentSlide-i.options.slidesToScroll,i.currentSlide-1==0&&(i.direction=1))),i.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=i(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=i(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,t,o=this;if(!0===o.options.dots){for(o.$slider.addClass("slick-dotted"),t=i("<ul />").addClass(o.options.dotsClass),e=0;e<=o.getDotCount();e+=1)t.append(i("<li />").append(o.options.customPaging.call(this,o,e)));o.$dots=t.appendTo(o.options.appendDots),o.$dots.find("li").first().addClass("slick-active")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,t){i(t).attr("data-slick-index",e).data("originalStyling",i(t).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?i('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),i("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var i,e,t,o,s,n,r,l=this;if(o=document.createDocumentFragment(),n=l.$slider.children(),l.o
vendor: 3,442 bytes, line 3247
3247ptions.rows>1){for(r=l.options.slidesPerRow*l.options.rows,s=Math.ceil(n.length/r),i=0;i<s;i++){var d=document.createElement("div");for(e=0;e<l.options.rows;e++){var a=document.createElement("div");for(t=0;t<l.options.slidesPerRow;t++){var c=i*r+(e*l.options.slidesPerRow+t);n.get(c)&&a.appendChild(n.get(c))}d.appendChild(a)}o.appendChild(d)}l.$slider.empty().append(o),l.$slider.children().children().children().css({width:100/l.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,t){var o,s,n,r=this,l=!1,d=r.$slider.width(),a=window.innerWidth||i(window).width();if("window"===r.respondTo?n=a:"slider"===r.respondTo?n=d:"min"===r.respondTo&&(n=Math.min(a,d)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){s=null;for(o in r.breakpoints)r.breakpoints.hasOwnProperty(o)&&(!1===r.originalSettings.mobileFirst?n<r.breakpoints[o]&&(s=r.breakpoints[o]):n>r.breakpoints[o]&&(s=r.breakpoints[o]));null!==s?null!==r.activeBreakpoint?(s!==r.activeBreakpoint||t)&&(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e),l=s),e||!1===l||r.$slider.trigger("breakpoint",[r,l])}},e.prototype.changeSlide=function(e,t){var o,s,n,r=this,l=i(e.currentTarget);switch(l.is("a")&&e.preventDefault(),l.is("li")||(l=l.closest("li")),n=r.slideCount%r.options.slidesToScroll!=0,o=n?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,e.data.message){case"previous":s=0===o?r.options.slidesToScroll:r.options.slidesToShow-o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-s,!1,t);break;case"next":s=0===o?r.options.slidesToScroll:o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+s,!1,t);break;case"index":var d=0===e.data.index?0:e.data.index||l.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(d),!1,t),l.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(i){var e,t;if(e=this.getNavigableIndexes(),t=0,i>e[e.length-1])i=e[e.length-1];else for(var o in e){if(i<e[o]){i=t;break}t=e[o]}return i},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(i("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",i.proxy(e.interrupt,e,!0)).off("mouseleave.slick",i.proxy(e.interrupt,e,!1)),!0===e.options.accessibility&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.
3247slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),i(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().off("click.slick",e.selectHandler),i(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),i(window).off("resize.slick.slick-"+e.instanceUid,e.resize),i("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),i(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var i,e=this;e.options.rows>1&&((i=e.$slides.children().children()).removeAttr("style"),e.$slider.empty().append(i))},e.prototype.clickHandler=function(i){!1===this.shouldClick&&(i.stopImmediatePropagation(),i.stopPropagation(),i.preventDefault())},e.prototype.destroy=function(e){var t=this;t.autoPlayClear(),t.touchObject={},t.cleanUpEvents(),i(".slick-cloned",t.$slider).detach(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.$prevArrow.length&&(t.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove()),t.$nextArrow&&t.$nextArrow.length&&(t.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove()),t.$slides&&(t.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){i(this).attr("style",i(this).data("originalStyling"))}),t.$slideTrack.children(this.options.slide).detach(),t.$slideTrack.detach(),t.$list.detach(),t.$slider.append(t.$slides)),t.cleanUpRows(),t.$slider.removeClass("slick-slider"),t.$slider.removeClass("slick-initialized"),t.$slider.removeClass("slick-dotted"),t.unslicked=!0,e||t.$slider.trigger("destroy",[t])},e.prototype.disableTransition=function(i){var e=this,t={};t[e.transitionType]="",!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.fadeSlide=function(i,e){var t=this;!1===t.cssTransitions?(t.$slides.eq(i).css({zIndex:t.options.zIndex}),t.$slides.eq(i).animate({opacity:1},t.options.speed,t.options.easing,e)):(t.applyTransition(i),t.$slides.eq(i).css({opacity:1,zIndex:t.options.zIndex}),e&&setTimeout(function(){t.disableTransition(i),e.call()},t.options.speed))},e.prototype.fadeSlideOut=function(i){var e=this;!1===e.cssTransitions?e.$slides.eq(i).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(i),e.$slides.eq(i).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(i){var e=this;null!==i&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(i).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(t){t.stopImmediatePropagation();var o=i(this);setTimeout(function(){e.options.pauseOnFocus&&(e.focussed=o.is(":focus"),e.autoPlay())},0)})},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){return this.currentSlide},e.prototype.getDotCount=function(){var i=this,e=0,t=0,o=0;if(!0===i.options.infinite)if(i.slideCount<=i.options.slidesToShow)++o;else for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else if(!0===i.options.centerMode)o=i.slideCount;else if(i.options.asNavFor)for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else o=1+Math.ceil((i.slideCount-i.options.slidesToShow)/i.options.slidesToScroll);return o-1},e.prototype.getLeft=function(i){var e,t,o,s,n=this,r=0;return n.slideOffset=0,t=n.$slides.first().outerHeight(!0),!0===n.options.infinite?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,s=-1,!0===n.options.vertical&&!0===n.options.centerMode&&(2===n.options.slidesToShow?s=-1.5:1===n.options.slidesToShow&&(s=-2)),r=t*n.options.slidesToShow*s),n.slideCount%n.options.slidesToScroll!=0&&i+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(i>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(i-n.slideCount))*n.slideWidth*-1,r=(n.options.slidesToShow-(i-n.slideCount))*t*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,r=n.slideCount%n.options.slidesToScroll*t*-1))):i+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(i+n.options.slidesToShow-n.slideCount)*n.slideWidth,r=(i+n.options.slidesToShow-n.slideCount)*t),n.slideCount<=n.options.slidesToShow&&(n.slideOffset=0,r=0),!0===n.options.centerMode&&n.slideCount<=n.options.slidesToShow?n.slideOffset=n.slideWidth*Math.floor(n.options.slidesToShow)/2-n.slideWidth*n.slideCount/2:!0===n.options.centerMode&&!0===n.options.infinite?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:!0===n.options.centerMode&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),e=!1===n.options.vertical?i*n.slideWidth*-1+n.slideOffset:i*t*-1+r,!0===n.options.variableWidth&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,!0===n.options.centerMode&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow+1),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,e+=(n.$list.width()-o.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(i){return this.options[i]},e.prototype.getNavigableIndexes=function(){var i,e=this,t=0,o=0,s=[];for(!1===e.options.infinite?i=e.slideCount:(t=-1*e.options.slidesToScroll,o=-1*e.options.slidesToScroll,i=2*e.slideCount);t<i;)s.push(t),t=o+e.options.slidesToScroll,o+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return s},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,t,o=this;return t=!0===o.options.centerMode?o.slideWidth*Math.floor(o.options.slidesToShow/2):0,!0===o.options.swipeToSlide?(o.$slideTrack.find(".slick-slide").each(function(s,n){if(n.offsetLeft-t+i(n).outerWidth()/2>-1*o.swipeLeft)return e=n,!1}),Math.abs(i(e).attr("data-slick-index")-o.currentSlide)||1):o.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(i,e){this.changeSlide({data:{message:"index",index:
3247parseInt(i)}},e)},e.prototype.init=function(e){var t=this;i(t.$slider).hasClass("slick-initialized")||(i(t.$slider).addClass("slick-initialized"),t.buildRows(),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots(),t.checkResponsive(!0),t.focusHandler()),e&&t.$slider.trigger("init",[t]),!0===t.options.accessibility&&t.initADA(),t.options.autoplay&&(t.paused=!1,t.autoPlay())},e.prototype.initADA=function(){var e=this,t=Math.ceil(e.slideCount/e.options.slidesToShow),o=e.getNavigableIndexes().filter(function(i){return i>=0&&i<e.slideCount});e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(t){var s=o.indexOf(t);i(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+t,tabindex:-1}),-1!==s&&i(this).attr({"aria-describedby":"slick-slide-control"+e.instanceUid+s})}),e.$dots.attr("role","tablist").find("li").each(function(s){var n=o[s];i(this).attr({role:"presentation"}),i(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+s,"aria-controls":"slick-slide"+e.instanceUid+n,"aria-label":s+1+" of "+t,"aria-selected":null,tabindex:"-1"})}).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var s=e.currentSlide,n=s+e.options.slidesToShow;s<n;s++)e.$slides.eq(s).attr("tabindex",0);e.activateADA()},e.prototype.initArrowEvents=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},i.changeSlide),i.$nextArrow.off("click.slick").on("click.slick",{message:"next"},i.changeSlide),!0===i.options.accessibility&&(i.$prevArrow.on("keydown.slick",i.keyHandler),i.$nextArrow.on("keydown.slick",i.keyHandler)))},e.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&(i("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.accessibility&&e.$dots.on("keydown.slick",e.keyHandler)),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&i("li",e.$dots).on("mouseenter.slick",i.proxy(e.interrupt,e,!0)).on("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",i.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"}
3247,e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),i(document).on(e.visibilityChange,i.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),i(window).on("orientationchange.slick.slick-"+e.instanceUid,i.proxy(e.orientationChange,e)),i(window).on("resize.slick.slick-"+e.instanceUid,i.proxy(e.resize,e)),i("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),i(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),i(e.setPosition)},e.prototype.initUI=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.show(),i.$nextArrow.show()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.show()},e.prototype.keyHandler=function(i){var e=this;i.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===i.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===i.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},e.prototype.lazyLoad=function(){function e(e){i("img[data-lazy]",e).each(function(){var e=i(this),t=i(this).attr("data-lazy"),o=i(this).attr("data-srcset"),s=i(this).attr("data-sizes")||n.$slider.attr("data-sizes"),r=document.createElement("img");r.onload=function(){e.animate({opacity:0}
vendor: 5,619 bytes, line 3247
3247,100,function(){o&&(e.attr("srcset",o),s&&e.attr("sizes",s)),e.attr("src",t).animate({opacity:1},200,function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),n.$slider.trigger("lazyLoaded",[n,e,t])})},r.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),n.$slider.trigger("lazyLoadError",[n,e,t])},r.src=t})}var t,o,s,n=this;if(!0===n.options.centerMode?!0===n.options.infinite?s=(o=n.currentSlide+(n.options.slidesToShow/2+1))+n.options.slidesToShow+2:(o=Math.max(0,n.currentSlide-(n.options.slidesToShow/2+1)),s=n.options.slidesToShow/2+1+2+n.currentSlide):(o=n.options.infinite?n.options.slidesToShow+n.currentSlide:n.currentSlide,s=Math.ceil(o+n.options.slidesToShow),!0===n.options.fade&&(o>0&&o--,s<=n.slideCount&&s++)),t=n.$slider.find(".slick-slide").slice(o,s),"anticipated"===n.options.lazyLoad)for(var r=o-1,l=s,d=n.$slider.find(".slick-slide"),a=0;a<n.options.slidesToScroll;a++)r<0&&(r=n.slideCount-1),t=(t=t.add(d.eq(r))).add(d.eq(l)),r--,l++;e(t),n.slideCount<=n.options.slidesToShow?e(n.$slider.find(".slick-slide")):n.currentSlide>=n.slideCount-n.options.slidesToShow?e(n.$slider.find(".slick-cloned").slice(0,n.options.slidesToShow)):0===n.currentSlide&&e(n.$slider.find(".slick-cloned").slice(-1*n.options.slidesToShow))},e.prototype.loadSlider=function(){var i=this;i.setPosition(),i.$slideTrack.css({opacity:1}),i.$slider.removeClass("slick-loading"),i.initUI(),"progressive"===i.options.lazyLoad&&i.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){var i=this;i.checkResponsive(),i.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var i=this;i.autoPlayClear(),i.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var i=this;i.autoPlay(),i.options.autoplay=!0,i.paused=!1,i.focussed=!1,i.interrupted=!1},e.prototype.postSlide=function(e){var t=this;t.unslicked||(t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.slideCount>t.options.slidesToShow&&t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),!0===t.options.accessibility&&(t.initADA(),t.options.focusOnChange&&i(t.$slides.get(t.currentSlide)).attr("tabindex",0).focus()))},e.prototype.prev=e.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(i){i.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var t,o,s,n,r,l=this,d=i("img[data-lazy]",l.$slider);d.length?(t=d.first(),o=t.attr("data-lazy"),s=t.attr("data-srcset"),n=t.attr("data-sizes")||l.$slider.attr("data-sizes"),(r=document.createElement("img")).onload=function(){s&&(t.attr("srcset",s),n&&t.attr("sizes",n)),t.attr("src",o).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===l.options.adaptiveHeight&&l.setPosition(),l.$slider.trigger("lazyLoaded",[l,t,o]),l.progressiveLazyLoad()},r.onerror=function(){e<3?setTimeout(function(){l.progressiveLazyLoad(e+1)},500):(t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),l.$slider.trigger("lazyLoadError",[l,t,o]),l.progressiveLazyLoad())},r.src=o):l.$slider.trigger("allImagesLoaded",[l])},e.prototype.refresh=function(e){var t,o,s=this;o=s.slideCount-s.options.slidesToShow,!s.options.infinite&&s.currentSlide>o&&(s.currentSlide=o),s.slideCount<=s.options.slidesToShow&&(s.currentSlide=0),t=s.currentSlide,s.destroy(!0),i.extend(s,s.initials,{currentSlide:t}),s.init(),e||s.changeSlide({data:{message:"index",index:t}},!1)},e.prototype.registerBreakpoints=function(){var e,t,o,s=this,n=s.options.responsive||null;if("array"===i.type(n)&&n.length){s.respondTo=s.options.respondTo||"window";for(e in n)if(o=s.breakpoints.length-1,n.hasOwnProperty(e)){for(t=n[e].breakpoint;o>=0;)s.breakpoints[o]&&s.breakpoints[o]===t&&s.breakpoints.splice(o,1),o--;s.breakpoints.push(t),s.breakpointSettings[t]=n[e].settings}s.breakpoints.sort(function(i,e){return s.options.mobileFirst?i-e:e-i})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;i(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=i(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(i,e,t){var o=this;if(i="boolean"==typeof i?!0===(e=i)?0:o.slideCount-1:!0===e?--i:i,o.slideCount<1||i<0||i>o.slideCount-1)return!1;o.unload(),!0===t?o.$slideTrack.children().remove():o.$slideTrack.children(this.options.slide).eq(i).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,o.reinit()},e.prototype.setCSS=function(i){var e,t,o=this,s={};
3247!0===o.options.rtl&&(i=-i),e="left"==o.positionProp?Math.ceil(i)+"px":"0px",t="top"==o.positionProp?Math.ceil(i)+"px":"0px",s[o.positionProp]=i,!1===o.transformsEnabled?o.$slideTrack.css(s):(s={},!1===o.cssTransitions?(s[o.animType]="translate("+e+", "+t+")",o.$slideTrack.css(s)):(s[o.animType]="translate3d("+e+", "+t+", 0px)",o.$slideTrack.css(s)))},e.prototype.setDimensions=function(){var i=this;!1===i.options.vertical?!0===i.options.centerMode&&i.$list.css({padding:"0px "+i.options.centerPadding}):(i.$list.height(i.$slides.first().outerHeight(!0)*i.options.slidesToShow),!0===i.options.centerMode&&i.$list.css({padding:i.options.centerPadding+" 0px"})),i.listWidth=i.$list.width(),i.listHeight=i.$list.height(),!1===i.options.vertical&&!1===i.options.variableWidth?(i.slideWidth=Math.ceil(i.listWidth/i.options.slidesToShow),i.$slideTrack.width(Math.ceil(i.slideWidth*i.$slideTrack.children(".slick-slide").length))):!0===i.options.variableWidth?i.$slideTrack.width(5e3*i.slideCount):(i.slideWidth=Math.ceil(i.listWidth),i.$slideTrack.height(Math.ceil(i.$slides.first().outerHeight(!0)*i.$slideTrack.children(".slick-slide").length)));var e=i.$slides.first().outerWidth(!0)-i.$slides.first().width();!1===i.options.variableWidth&&i.$slideTrack.children(".slick-slide").width(i.slideWidth-e)},e.prototype.setFade=function(){var e,t=this;t.$slides.each(function(o,s){e=t.slideWidth*o*-1,!0===t.options.rtl?i(s).css({position:"relative",right:e,top:0,zIndex:t.options.zIndex-2,opacity:0}
3247):i(s).css({position:"relative",left:e,top:0,zIndex:t.options.zIndex-2,opacity:0})}),t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,t,o,s,n,r=this,l=!1;if("object"===i.type(arguments[0])?(o=arguments[0],l=arguments[1],n="multiple"):"string"===i.type(arguments[0])&&(o=arguments[0],s=arguments[1],l=arguments[2],"responsive"===arguments[0]&&"array"===i.type(arguments[1])?n="responsive":void 0!==arguments[1]&&(n="single")),"single"===n)r.options[o]=s;else if("multiple"===n)i.each(o,function(i,e){r.options[i]=e});else if("responsive"===n)for(t in s)if("array"!==i.type(r.options.responsive))r.options.responsive=[s[t]];else{for(e=r.options.responsive.length-1;e>=0;)r.options.responsive[e].breakpoint===s[t].breakpoint&&r.options.responsive.splice(e,1),e--;r.options.responsive.push(s[t])}l&&(r.unload(),r.reinit())},e.prototype.setPosition=function(){var i=this;i.setDimensions(),i.setHeight(),!1===i.options.fade?i.setCSS(i.getLeft(i.currentSlide)):i.setFade(),i.$slider.trigger("setPosition",[i])},e.prototype.setProps=function(){var i=this,e=document.body.style;i.positionProp=!0===i.options.vertical?"top":"left","top"===i.positionProp?i.$slider.addClass("slick-vertical"):i.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===i.options.useCSS&&(i.cssTransitions=!0),i.options.fade&&("number"==typeof i.options.zIndex?i.options.zIndex<3&&(i.options.zIndex=3):i.options.zIndex=i.defaults.zIndex),void 0!==e.OTransform&&(i.animType="OTransform",i.transformType="-o-transform",i.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.MozTransform&&(i.animType="MozTransform",i.transformType="-moz-transform",i.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(i.animType=!1)),void 0!==e.webkitTransform&&(i.animType="webkitTransform",i.transformType="-webkit-transform",i.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.msTransform&&(i.animType="msTransform",i.transformType="-ms-transform",i.transitionType="msTransition",void 0===e.msTransform&&(i.animType=!1)),void 0!==e.transform&&!1!==i.animType&&(i.animType="transform",i.transformType="transform",i.transitionType="transition"),i.transformsEnabled=i.options.useTransform&&null!==i.animType&&!1!==i.animType},e.prototype.setSlideClasses=function(i){var e,t,o,s,n=this;if(t=n.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),n.$slides.eq(i).addClass("slick-current"),!0===n.options.centerMode){var r=n.options.slidesToShow%2==0?1:0;e=Math.floor(n.options.slidesToShow/2),!0===n.options.infinite&&(i>=e&&i<=n.slideCount-1-e?n.$slides.slice(i-e+r,i+e+1).addClass("slick-active").attr("aria-hidden","false"):(o=n.options.slidesToShow+i,t.slice(o-e+1+r,o+e+2).addClass("slick-active").attr("aria-hidden","false")),0===i?t.eq(t.length-1-n.options.slidesToShow).addClass("slick-center"):i===n.slideCount-1&&t.eq(n.options.slidesToShow).addClass("slick-center")),n.$slides.eq(i).addClass("slick-center")}else i>=0&&i<=n.slideCount-n.options.slidesToShow?n.$slides.slice(i,i+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):t.length<=n.options.slidesToShow?t.addClass("slick-active").attr("aria-hidden","false"):(s=n.slideCount%n.options.slidesToShow,o=!0===n.options.infinite?n.options.slidesToShow+i:i,n.options.slidesToShow==n.options.slidesToScroll&&n.slideCount-i<n.options.slidesToShow?t.slice(o-(n.options.slidesToShow-s),o+s).addClass("slick-active").attr("aria-hidden","false"):t.slice(o,o+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==n.options.lazyLoad&&"anticipated"!==n.options.lazyLoad||n.lazyLoad()},e.prototype.setupInfinite=function(){var e,t,o,s=this;if(!0===s.options.fade&&(s.options.centerMode=!1),!0===s.options.infinite&&!1===s.options.fade&&(t=null,s.slideCount>s.options.slidesToShow)){for(o=!0===s.options.centerMode?s.options.slidesToShow+1:s.options.slidesToShow,e=s.slideCount;e>s.slideCount-o;e-=1)t=e-1,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t-s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned");for(e=0;e<o+s.slideCount;e+=1)t=e,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t+s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned");s.$slideTrack.find(".slick-cloned").find("[id]").each(function(){i(this).attr("id","")})}},e.prototype.interrupt=function(i){var e=this;i||e.autoPlay(),e.interrupted=i},e.prototype.selectHandler=function(e){var t=this,o=i(e.target).is(".slick-slide")?i(e.target):i(e.target).parents(".slick-slide"),s=parseInt(o.attr("data-slick-index"));s||(s=0),t.slideCount<=t.options.slidesToShow?t.slideHandler(s,!1,!0):t.slideHandler(s)},e.prototype.slideHandler=function(i,e,t){var o,s,n,r,l,d=null,a=this;if(e=e||!1,!(!0===a.animating&&!0===a.options.waitForAnimate||!0===a.options.fade&&a.currentSlide===i))if(!1===e&&a.asNavFor(i),o=i,d=a.getLeft(o),r=a.getLeft(a.currentSlide),a.currentLeft=null===a.swipeLeft?r:a.swipeLeft,!1===a.options.infinite&&!1===a.options.centerMode&&(i<0||i>a.getDotCount()*a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o));else if(!1===a.options.infinite&&!0===a.options.centerMode&&(i<0||i>a.slideCount-a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o));else{if(a.options.autoplay&&clearInterval(a.autoPlayTimer),s=o<0?a.slideCount%a.options.slidesToScroll!=0?a.slideCount-a.slideCount%a.options.slidesToScroll:a.slideCount+
3247o:o>=a.slideCount?a.slideCount%a.options.slidesToScroll!=0?0:o-a.slideCount:o,a.animating=!0,a.$slider.trigger("beforeChange",[a,a.currentSlide,s]),n=a.currentSlide,a.currentSlide=s,a.setSlideClasses(a.currentSlide),a.options.asNavFor&&(l=(l=a.getNavTarget()).slick("getSlick")).slideCount<=l.options.slidesToShow&&l.setSlideClasses(a.currentSlide),a.updateDots(),a.updateArrows(),!0===a.options.fade)return!0!==t?(a.fadeSlideOut(n),a.fadeSlide(s,function(){a.postSlide(s)})):a.postSlide(s),void a.animateHeight();!0!==t?a.animateSlide(d,function(){a.postSlide(s)}):a.postSlide(s)}},e.prototype.startLoad=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.hide(),i.$nextArrow.hide()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.hide(),i.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var i,e,t,o,s=this;return i=s.touchObject.startX-s.touchObject.curX,e=s.touchObject.startY-s.touchObject.curY,t=Math.atan2(e,i),(o=Math.round(180*t/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0?!1===s.options.rtl?"left":"right":o<=360&&o>=315?!1===s.options.rtl?"left":"right":o>=135&&o<=225?!1===s.options.rtl?"right":"left":!0===s.options.verticalSwiping?o>=35&&o<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(i){var e,t,o=this;if(o.dragging=!1,o.swiping=!1,o.scrolling)return o.scrolling=!1,!1;if(o.interrupted=!1,o.shouldClick=!(o.touchObject.swipeLength>10),void 0===o.touchObject.curX)return!1;if(!0===o.touchObject.edgeHit&&o.$slider.trigger("edge",[o,o.swipeDirection()]),o.touchObject.swipeLength>=o.touchObject.minSwipe){switch(t=o.swipeDirection()){case"left":case"down":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide+o.getSlideCount()):o.currentSlide+o.getSlideCount(),o.currentDirection=0;break;case"right":case"up":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide-o.getSlideCount()):o.currentSlide-o.getSlideCount(),o.currentDirection=1}"vertical"!=t&&(o.slideHandler(e),o.touchObject={},o.$slider.trigger("swipe",[o,t]))}else o.touchObject.startX!==o.touchObject.curX&&(o.slideHandler(o.currentSlide),o.touchObject={})},e.prototype.swipeHandler=function(i){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==i.type.indexOf("mouse")))switch(e.touchObject.fingerCount=i.originalEvent&&void 0!==i.originalEvent.touches?i.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),i.data.action){case"start":e.swipeStart(i);break;case"move":e.swipeMove(i);break;case"end":e.swipeEnd(i)}},e.prototype.swipeMove=function(i){var e,t,o,s,n,r,l=this;return n=void 0!==i.originalEvent?i.originalEvent.touches:null,!(!l.dragging||l.scrolling||n&&1!==n.length)&&(e=l.getLeft(l.currentSlide),l.touchObject.curX=void 0!==n?n[0].pageX:i.clientX,l.touchObject.curY=void 0!==n?n[0].pageY:i.clientY,l.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(l.touchObject.curX-l.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(l.touchObject.curY-l.touchObject.startY,2))),!l.options.verticalSwiping&&!l.swiping&&r>4?(l.scrolling=!0,!1):(!0===l.options.verticalSwiping&&(l.touchObject.swipeLength=r),t=l.swipeDirection(),void 0!==i.originalEvent&&l.touchObject.swipeLength>4&&(l.swiping=!0,i.preventDefault()),s=(!1===l.options.rtl?1:-1)*(l.touchObject.curX>l.touchObject.startX?1:-1),!0===l.options.verticalSwiping&&(s=l.touchObject.curY>l.touchObject.startY?1:-1),o=l.touchObject.swipeLength,l.touchObject.edgeHit=!1,!1===l.options.infinite&&(0===l.currentSlide&&"right"===t||l.currentSlide>=l.getDotCount()&&"left"===t)&&(o=l.touchObject.swipeLength*l.options.edgeFriction,l.touchObject.edgeHit=!0),!1===l.options.vertical?l.swipeLeft=e+o*s:l.swipeLeft=e+o*(l.$list.height()/l.listWidth)*s,!0===l.options.verticalSwiping&&(l.swipeLeft=e+o*s),!0!==l.options.fade&&!1!==l.options.touchMove&&(!0===l.animating?(l.swipeLeft=null,!1):void l.setCSS(l.swipeLeft))))},e.prototype.swipeStart=function(i){var e,t=this;if(t.interrupted=!0,1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow)return t.touchObject={},!1;void 0!==i.originalEvent&&void 0!==i.originalEvent.touches&&(e=i.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==e?e.pageX:i.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==e?e.pageY:i.clientY,t.dragging=!0},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var i=this;null!==i.$slidesCache&&(i.unload(),i.$slideTrack.children(this.options.slide).detach(),i.$slidesCache.appendTo(i.$slideTrack),i.reinit())},e.prototype.unload=function(){var e=this;i(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")}
3247,e.prototype.unslick=function(i){var e=this;e.$slider.trigger("unslick",[e,i]),e.destroy()},e.prototype.updateArrows=function(){var i=this;Math.floor(i.options.slidesToShow/2),!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&!i.options.infinite&&(i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===i.currentSlide?(i.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-i.options.slidesToShow&&!1===i.options.centerMode?(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-1&&!0===i.options.centerMode&&(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var i=this;null!==i.$dots&&(i.$dots.find("li").removeClass("slick-active").end(),i.$dots.find("li").eq(Math.floor(i.currentSlide/i.options.slidesToScroll)).addClass("slick-active"))},e.prototype.visibility=function(){var i=this;i.options.autoplay&&(document[i.hidden]?i.interrupted=!0:i.interrupted=!1)},i.fn.slick=function(){var i,t,o=this,s=arguments[0],n=Array.prototype.slice.call(arguments,1),r=o.length;for(i=0;i<r;i++)if("object"==typeof s||void 0===s?o[i].slick=new e(o[i],s):t=o[i].slick[s].apply(o[i].slick,n),void 0!==t)return t;return o}});
3248$(document).ready(function () {
3249
3250
3251$('#banners').slick({
3252autoplay: true,
3253autoplaySpeed: 4800,
3254speed: 1000,
3255arrows: true,
3256dots: false,
3257fade: true,
3258pauseOnHover: false,
3259pauseOnFocus: false
3260});
3261
3262
3263$('.datepick').datetimepicker({
3264timepicker: false,
3265format: 'm/d/Y',
3266closeOnDateSelect: true
3267});
3268
3269
3270$('#SubscribeSuccess').modal('show');
3271
3272
3273//scotch tasting registration
3274if ($('.articleid148').length) {
3275
3276//use initial amount as price for one ticket
3277var unitAmount = Total.innerText;
3278
3279//update total based on ticket quantity
3280Tickets.onchange = function () {
3281var total = (Tickets.value * unitAmount);
3282$('#stripe_form_total').val(total);
3283Total.innerText = total.toFixed(2);
3284};
3285
3286//populate Stripe fields, then trigger the Stripe form submission
3287Register.onclick = function () {
3288$('#stripe_form_customer_name').val(`${FirstName.value} ${LastName.value}`);
3289$('#stripe_form_customer_email').val(Email.value);
3290
3291$('#stripe-form-pay-btn').trigger('click');
3292};
3293}
3294
3295});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.