text: !function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t=!!e&&"length"in e&&e.length,n=re.type(e);return"function"===n||re.isWindow(e)?!1:"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e}function i(e,t,n){if(re.isFunction(t))return re.grep(e,function(e,i){return!!t.call(e,i,e)!==n});if(t.nodeType)return re.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(me.test(t))return re.filter(t,e,n);t=re.filter(t,e)}return re.grep(e,function(e){return Z.call(t,e)>-1!==n})}function a(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function r(e){var t={};return re.each(e.match(xe)||[],function(e,n){t[n]=!0}),t}function o(){U.removeEventListener("DOMContentLoaded",o),e.removeEventListener("load",o),re.ready()}function s(){this.expando=re.expando+s.uid++}function l(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(Ae,"-$&").toLowerCase(),n=e.getAttribute(i),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:$e.test(n)?re.parseJSON(n):n}catch(a){}Ee.set(e,t,n)}else n=void 0;return n}function d(e,t,n,i){var a,r=1,o=20,s=i?function(){return i.cur()}:function(){return re.css(e,t,"")},l=s(),d=n&&n[3]||(re.cssNumber[t]?"":"px"),u=(re.cssNumber[t]||"px"!==d&&+l)&&De.exec(re.css(e,t));if(u&&u[3]!==d){d=d||u[3],n=n||[],u=+l||1;do r=r||".5",u/=r,re.style(e,t,u+d);while(r!==(r=s()/l)&&1!==r&&--o)}return n&&(u=+u||+l||0,a=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=d,i.start=u,i.end=a)),a}function u(e,t){var n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&re.nodeName(e,t)?re.merge([e],n):n}function c(e,t){for(var n=0,i=e.length;i>n;n++)ke.set(e[n],"globalEval",!t||ke.get(t[n],"globalEval"))}function p(e,t,n,i,a){for(var r,o,s,l,d,p,f=t.createDocumentFragment(),h=[],m=0,g=e.length;g>m;m++)if(r=e[m],r||0===r)if("object"===re.type(r))re.merge(h,r.nodeType?[r]:r);else if(He.test(r)){for(o=o||f.appendChild(t.createElement("div")),s=(ze.exec(r)||["",""])[1].toLowerCase(),l=Le[s]||Le._default,o.innerHTML=l[1]+re.htmlPrefilter(r)+l[2],p=l[0];p--;)o=o.lastChild;re.merge(h,o.childNodes),o=f.firstChild,o.textContent=""}else h.push(t.createTextNode(r));for(f.textContent="",m=0;r=h[m++];)if(i&&re.inArray(r,i)>-1)a&&a.push(r);else if(d=re.contains(r.ownerDocument,r),o=u(f.appendChild(r),"script"),d&&c(o),n)for(p=0;r=o[p++];)Re.test(r.type||"")&&n.push(r);return f}function f(){return!0}function h(){return!1}function m(){try{return U.activeElement}catch(e){}}function g(e,t,n,i,a,r){var o,s;if("object"==typeof t){"string"!=typeof n&&(i=i||n,n=void 0);for(s in t)g(e,s,n,i,t[s],r);return e}if(null==i&&null==a?(a=n,i=n=void 0):null==a&&("string"==typeof n?(a=i,i=void 0):(a=i,i=n,n=void 0)),a===!1)a=h;else if(!a)return e;return 1===r&&(o=a,a=function(e){return re().off(e),o.apply(this,arguments)},a.guid=o.guid||(o.guid=re.guid++)),e.each(function(){re.event.add(this,t,a,i,n)})}function v(e,t){return re.nodeName(e,"table")&&re.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function w(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function y(e){var t=Ge.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function b(e,t){var n,i,a,r,o,s,l,d;if(1===t.nodeType){if(ke.hasData(e)&&(r=ke.access(e),o=ke.set(t,r),d=r.events)){delete o.handle,o.events={};for(a in d)for(n=0,i=d[a].length;i>n;n++)re.event.add(t,a,d[a][n])}Ee.hasData(e)&&(s=Ee.access(e),l=re.extend({},s),Ee.set(t,l))}}function x(e,t){var n=t.nodeName.toLowerCase();"input"===n&&je.test(e.type)?t.checked=e.checked:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}function T(e,t,n,i){t=K.apply([],t);var a,r,o,s,l,d,c=0,f=e.length,h=f-1,m=t[0],g=re.isFunction(m);if(g||f>1&&"string"==typeof m&&!ie.checkClone&&We.test(m))return e.each(function(a){var r=e.eq(a);g&&(t[0]=m.call(this,a,r.html())),T(r,t,n,i)});if(f&&(a=p(t,e[0].ownerDocument,!1,e,i),r=a.firstChild,1===a.childNodes.length&&(a=r),r||i)){for(o=re.map(u(a,"script"),w),s=o.length;f>c;c++)l=a,c!==h&&(l=re.clone(l,!0,!0),s&&re.merge(o,u(l,"script"))),n.call(e[c],l,c);if(s)for(d=o[o.length-1].ownerDocument,re.map(o,y),c=0;s>c;c++)l=o[c],Re.test(l.type||"")&&!ke.access(l,"globalEval")&&re.contains(d,l)&&(l.src?re._evalUrl&&re._evalUrl(l.src):re.globalEval(l.textContent.replace(Ve,"")))}return e}function C(e,t,n){for(var i,a=t?re.filter(t,e):e,r=0;null!=(i=a[r]);r++)n||1!==i.nodeType||re.cleanData(u(i)),i.parentNode&&(n&&re.contains(i.ownerDocument,i)&&c(u(i,"script")),i.parentNode.removeChild(i));return e}function S(e,t){var n=re(t.createElement(e)).appendTo(t.body),i=re.css(n[0],"display");return n.detach(),i}function k(e){var t=U,n=Ye[e];return n||(n=S(e,t),"none"!==n&&n||(Xe=(Xe||re("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=Xe[0].contentDocument,t.write(),t.close(),n=S(e,t),Xe.detach()),Ye[e]=n),n}function E(e,t,n){var i,a,r,o,s=e.style;return n=n||Qe(e),o=n?n.getPropertyValue(t)||n[t]:void 0,""!==o&&void 0!==o||re.contains(e.ownerDocument,e)||(o=re.style(e,t)),n&&!ie.pixelMarginRight()&&Ue.test(o)&&_e.test(t)&&(i=s.width,a=s.minWidth,r=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=n.width,s.width=i,s.minWidth=a,s.maxWidth=r),void 0!==o?o+"":o}function $(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function A(e){if(e in it)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=nt.length;n--;)if(e=nt[n]+t,e in it)return e}function P(e,t,n){var i=De.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function D(e,t,n,i,a){for(var r=n===(i?"border":"content")?4:"width"===t?1:0,o=0;4>r;r+=2)"margin"===n&&(o+=re.css(e,n+Me[r],!0,a)),i?("content"===n&&(o-=re.css(e,"padding"+Me[r],!0,a)),"margin"!==n&&(o-=re.css(e,"border"+Me[r]+"Width",!0,a))):(o+=re.css(e,"padding"+Me[r],!0,a),"padding"!==n&&(o+=re.css(e,"border"+Me[r]+"Width",!0,a)));return o}function M(t,n,i){var a=!0,r="width"===n?t.offsetWidth:t.offsetHeight,o=Qe(t),s="border-box"===re.css(t,"boxSizing",!1,o);if(U.msFullscreenElement&&e.top!==e&&t.getClientRects().length&&(r=Math.round(100*t.getBoundingClientRect()[n])),0>=r||null==r){if(r=E(t,n,o),(0>r||null==r)&&(r=t.style[n]),Ue.test(r))return r;a=s&&(ie.boxSizingReliable()||r===t.style[n]),r=parseFloat(r)||0}return r+D(t,n,i||(s?"border":"content"),a,o)+"px"}function I(e,t){for(var n,i,a,r=[],o=0,s=e.length;s>o;o++)i=e[o],i.style&&(r[o]=ke.get(i,"olddisplay"),n=i.style.display,t?(r[o]||"none"!==n||(i.style.display=""),""===i.style.display&&Ie(i)&&(r[o]=ke.access(i,"olddisplay",k(i.nodeName)))):(a=Ie(i),"none"===n&&a||ke.set(i,"olddisplay",a?n:re.css(i,"display"))));for(o=0;s>o;o++)i=e[o],i.style&&(t&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=t?r[o]||"":"none"));return e}function j(e,t,n,i,a){return new j.prototype.init(e,t,n,i,a)}function z(){return e.setTimeout(function(){at=void 0}),at=re.now()}function R(e,t){var n,i=0,a={height:e};for(t=t?1:0;4>i;i+=2-t)n=Me[i],a["margin"+n]=a["padding"+n]=e;return t&&(a.opacity=a.width=e),a}function L(e,t,n){for(var i,a=(O.tweeners[t]||[]).concat(O.tweeners["*"]),r=0,o=a.length;o>r;r++)if(i=a[r].call(n,t,e))return i}function H(e,t,n){var i,a,r,o,s,l,d,u,c=this,p={},f=e.style,h=e.nodeType&&Ie(e),m=ke.get(e,"fxshow");n.queue||(s=re._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,c.always(function(){c.always(function(){s.unqueued--,re.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],d=re.css(e,"display"),u="none"===d?ke.get(e,"olddisplay")||k(e.nodeName):d,"inline"===u&&"none"===re.css(e,"float")&&(f.display="inline-block")),n.overflow&&(f.overflow="hidden",c.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}));for(i in t)if(a=t[i],ot.exec(a)){if(delete t[i],r=r||"toggle"===a,a===(h?"hide":"show")){if("show"!==a||!m||void 0===m[i])continue;h=!0}p[i]=m&&m[i]||re.style(e,i)}else d=void 0;if(re.isEmptyObject(p))"inline"===("none"===d?k(e.nodeName):d)&&(f.display=d);else{m?"hidden"in m&&(h=m.hidden):m=ke.access(e,"fxshow",{}),r&&(m.hidden=!h),h?re(e).show():c.done(function(){re(e).hide()}),c.done(function(){var t;ke.remove(e,"fxshow");for(t in p)re.style(e,t,p[t])});for(i in p)o=L(h?m[i]:0,i,c),i in m||(m[i]=o.start,h&&(o.end=o.start,o.start="width"===i||"height"===i?1:0))}}function N(e,t){var n,i,a,r,o;for(n in e)if(i=re.camelCase(n),a=t[i],r=e[n],re.isArray(r)&&(a=r[1],r=e[n]=r[0]),n!==i&&(e[i]=r,delete e[n]),o=re.cssHooks[i],o&&"expand"in o){r=o.expand(r),delete e[i];for(n in r)n in e||(e[n]=r[n],t[n]=a)}else t[i]=a}function O(e,t,n){var i,a,r=0,o=O.prefilters.length,s=re.Deferred().always(function(){delete l.elem}),l=function(){if(a)return!1;for(var t=at||z(),n=Math.max(0,d.startTime+d.duration-t),i=n/d.duration||0,r=1-i,o=0,l=d.tweens.length;l>o;o++)d.tweens[o].run(r);return s.notifyWith(e,[d,r,n]),1>r&&l?n:(s.resolveWith(e,[d]),!1)},d=s.promise({elem:e,props:re.extend({},t),opts:re.extend(!0,{specialEasing:{},easing:re.easing._default},n),originalProperties:t,originalOptions:n,startTime:at||z(),duration:n.duration,tweens:[],createTween:function(t,n){var i=re.Tween(e,d.opts,t,n,d.opts.specialEasing[t]||d.opts.easing);return d.tweens.push(i),i},stop:function(t){var n=0,i=t?d.tweens.length:0;if(a)return this;for(a=!0;i>n;n++)d.tweens[n].run(1);return t?(s.notifyWith(e,[d,1,0]),s.resolveWith(e,[d,t])):s.rejectWith(e,[d,t]),this}}),u=d.props;for(N(u,d.opts.specialEasing);o>r;r++)if(i=O.prefilters[r].call(d,e,u,d.opts))return re.isFunction(i.stop)&&(re._queueHooks(d.elem,d.opts.queue).stop=re.proxy(i.stop,i)),i;return re.map(u,L,d),re.isFunction(d.opts.start)&&d.opts.start.call(e,d),re.fx.timer(re.extend(l,{elem:e,anim:d,queue:d.opts.queue})),d.progress(d.opts.progress).done(d.opts.done,d.opts.complete).fail(d.opts.fail).always(d.opts.always)}function B(e){return e.getAttribute&&e.getAttribute("class")||""}function F(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,a=0,r=t.toLowerCase().match(xe)||[];if(re.isFunction(n))for(;i=r[a++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function q(e,t,n,i){function a(s){var l;return r[s]=!0,re.each(e[s]||[],function(e,s){var d=s(t,n,i);return"string"!=typeof d||o||r[d]?o?!(l=d):void 0:(t.dataTypes.unshift(d),a(d),!1)}),l}var r={},o=e===kt;return a(t.dataTypes[0])||!r["*"]&&a("*")}function W(e,t){var n,i,a=re.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((a[n]?e:i||(i={}))[n]=t[n]);return i&&re.extend(!0,e,i),e}function G(e,t,n){for(var i,a,r,o,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(a in s)if(s[a]&&s[a].test(i)){l.unshift(a);break}if(l[0]in n)r=l[0];else{for(a in n){if(!l[0]||e.converters[a+" "+l[0]]){r=a;break}o||(o=a)}r=r||o}return r?(r!==l[0]&&l.unshift(r),n[r]):void 0}function V(e,t,n,i){var a,r,o,s,l,d={},u=e.dataTypes.slice();if(u[1])for(o in e.converters)d[o.toLowerCase()]=e.converters[o];for(r=u.shift();r;)if(e.responseFields[r]&&(n[e.responseFields[r]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=r,r=u.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(o=d[l+" "+r]||d["* "+r],!o)for(a in d)if(s=a.split(" "),s[1]===r&&(o=d[l+" "+s[0]]||d["* "+s[0]])){o===!0?o=d[a]:d[a]!==!0&&(r=s[0],u.unshift(s[1]));break}if(o!==!0)if(o&&e["throws"])t=o(t);else try{t=o(t)}catch(c){return{state:"parsererror",error:o?c:"No conversion from "+l+" to "+r}}}return{state:"success",data:t}}function X(e,t,n,i){var a;if(re.isArray(t))re.each(t,function(t,a){n||Pt.test(e)?i(e,a):X(e+"["+("object"==typeof a&&null!=a?t:"")+"]",a,n,i)});else if(n||"object"!==re.type(t))i(e,t);else for(a in t)X(e+"["+a+"]",t[a],n,i)}function Y(e){return re.isWindow(e)?e:9===e.nodeType&&e.defaultView}var _=[],U=e.document,Q=_.slice,K=_.concat,J=_.push,Z=_.indexOf,ee={},te=ee.toString,ne=ee.hasOwnProperty,ie={},ae="2.2.1",re=function(e,t){return new re.fn.init(e,t)},oe=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,se=/^-ms-/,le=/-([\da-z])/gi,de=function(e,t){return t.toUpperCase()};re.fn=re.prototype={jquery:ae,constructor:re,selector:"",length:0,toArray:function(){return Q.call(this)},get:function(e){return null!=e?0>e?this[e+this.length]:this[e]:Q.call(this)},pushStack:function(e){var t=re.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return re.each(this,e)},map:function(e){return this.pushStack(re.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(Q.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:J,sort:_.sort,splice:_.splice},re.extend=re.fn.extend=function(){var e,t,n,i,a,r,o=arguments[0]||{},s=1,l=arguments.length,d=!1;for("boolean"==typeof o&&(d=o,o=arguments[s]||{},s++),"object"==typeof o||re.isFunction(o)||(o={}),s===l&&(o=this,s--);l>s;s++)if(null!=(e=arguments[s]))for(t in e)n=o[t],i=e[t],o!==i&&(d&&i&&(re.isPlainObject(i)||(a=re.isArray(i)))?(a?(a=!1,r=n&&re.isArray(n)?n:[]):r=n&&re.isPlainObject(n)?n:{},o[t]=re.extend(d,r,i)):void 0!==i&&(o[t]=i));return o},re.extend({expando:"jQuery"+(ae+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===re.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=e&&e.toString();return!re.isArray(e)&&t-parseFloat(t)+1>=0},isPlainObject:function(e){return"object"!==re.type(e)||e.nodeType||re.isWindow(e)?!1:!e.constructor||ne.call(e.constructor.prototype,"isPrototypeOf")},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ee[te.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;e=re.trim(e),e&&(1===e.indexOf("use strict")?(t=U.createElement("script"),t.text=e,U.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(se,"ms-").replace(le,de)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var i,a=0;if(n(e))for(i=e.length;i>a&&t.call(e[a],a,e[a])!==!1;a++);else for(a in e)if(t.call(e[a],a,e[a])===!1)break;return e},trim:function(e){return null==e?"":(e+"").replace(oe,"")},makeArray:function(e,t){var i=t||[];return null!=e&&(n(Object(e))?re.merge(i,"string"==typeof e?[e]:e):J.call(i,e)),i},inArray:function(e,t,n){return null==t?-1:Z.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,a=e.length;n>i;i++)e[a++]=t[i];return e.length=a,e},grep:function(e,t,n){for(var i,a=[],r=0,o=e.length,s=!n;o>r;r++)i=!t(e[r],r),i!==s&&a.push(e[r]);return a},map:function(e,t,i){var a,r,o=0,s=[];if(n(e))for(a=e.length;a>o;o++)r=t(e[o],o,i),null!=r&&s.push(r);else for(o in e)r=t(e[o],o,i),null!=r&&s.push(r);return K.apply([],s)},guid:1,proxy:function(e,t){var n,i,a;return"string"==typeof t&&(n=e[t],t=e,e=n),re.isFunction(e)?(i=Q.call(arguments,2),a=function(){return e.apply(t||this,i.concat(Q.call(arguments)))},a.guid=e.guid=e.guid||re.guid++,a):void 0},now:Date.now,support:ie}),"function"==typeof Symbol&&(re.fn[Symbol.iterator]=_[Symbol.iterator]),re.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){ee["[object "+t+"]"]=t.toLowerCase()});var ue=function(e){function t(e,t,n,i){var a,r,o,s,l,d,c,f,h=t&&t.ownerDocument,m=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==m&&9!==m&&11!==m)return n;if(!i&&((t?t.ownerDocument||t:B)!==I&&M(t),t=t||I,z)){if(11!==m&&(d=ve.exec(e)))if(a=d[1]){if(9===m){if(!(o=t.getElementById(a)))return n;if(o.id===a)return n.push(o),n}else if(h&&(o=h.getElementById(a))&&N(t,o)&&o.id===a)return n.push(o),n}else{if(d[2])return J.apply(n,t.getElementsByTagName(e)),n;if((a=d[3])&&x.getElementsByClassName&&t.getElementsByClassName)return J.apply(n,t.getElementsByClassName(a)),n}if(x.qsa&&!V[e+" "]&&(!R||!R.test(e))){if(1!==m)h=t,f=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(ye,"\\$&"):t.setAttribute("id",s=O),c=k(e),r=c.length,l=pe.test(s)?"#"+s:"[id='"+s+"']";r--;)c[r]=l+" "+p(c[r]);f=c.join(","),h=we.test(e)&&u(t.parentNode)||t}if(f)try{return J.apply(n,h.querySelectorAll(f)),n}catch(g){}finally{s===O&&t.removeAttribute("id")}}}return $(e.replace(se,"$1"),t,n,i)}function n(){function e(n,i){return t.push(n+" ")>T.cacheLength&&delete e[t.shift()],e[n+" "]=i}var t=[];return e}function i(e){return e[O]=!0,e}function a(e){var t=I.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function r(e,t){for(var n=e.split("|"),i=n.length;i--;)T.attrHandle[n[i]]=t}function o(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||Y)-(~e.sourceIndex||Y);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function l(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function d(e){return i(function(t){return t=+t,i(function(n,i){for(var a,r=e([],n.length,t),o=r.length;o--;)n[a=r[o]]&&(n[a]=!(i[a]=n[a]))})})}function u(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function c(){}function p(e){for(var t=0,n=e.length,i="";n>t;t++)i+=e[t].value;return i}function f(e,t,n){var i=t.dir,a=n&&"parentNode"===i,r=q++;return t.first?function(t,n,r){for(;t=t[i];)if(1===t.nodeType||a)return e(t,n,r)}:function(t,n,o){var s,l,d,u=[F,r];if(o){for(;t=t[i];)if((1===t.nodeType||a)&&e(t,n,o))return!0}else for(;t=t[i];)if(1===t.nodeType||a){if(d=t[O]||(t[O]={}),l=d[t.uniqueID]||(d[t.uniqueID]={}),(s=l[i])&&s[0]===F&&s[1]===r)return u[2]=s[2];if(l[i]=u,u[2]=e(t,n,o))return!0}}}function h(e){return e.length>1?function(t,n,i){for(var a=e.length;a--;)if(!e[a](t,n,i))return!1;return!0}:e[0]}function m(e,n,i){for(var a=0,r=n.length;r>a;a++)t(e,n[a],i);return i}function g(e,t,n,i,a){for(var r,o=[],s=0,l=e.length,d=null!=t;l>s;s++)(r=e[s])&&(!n||n(r,i,a))&&(o.push(r),d&&t.push(s));return o}function v(e,t,n,a,r,o){return a&&!a[O]&&(a=v(a)),r&&!r[O]&&(r=v(r,o)),i(function(i,o,s,l){var d,u,c,p=[],f=[],h=o.length,v=i||m(t||"*",s.nodeType?[s]:s,[]),w=!e||!i&&t?v:g(v,p,e,s,l),y=n?r||(i?e:h||a)?[]:o:w;if(n&&n(w,y,s,l),a)for(d=g(y,f),a(d,[],s,l),u=d.length;u--;)(c=d[u])&&(y[f[u]]=!(w[f[u]]=c));if(i){if(r||e){if(r){for(d=[],u=y.length;u--;)(c=y[u])&&d.push(w[u]=c);r(null,y=[],d,l)}for(u=y.length;u--;)(c=y[u])&&(d=r?ee(i,c):p[u])>-1&&(i[d]=!(o[d]=c))}}else y=g(y===o?y.splice(h,y.length):y),r?r(null,o,y,l):J.apply(o,y)})}function w(e){for(var t,n,i,a=e.length,r=T.relative[e[0].type],o=r||T.relative[" "],s=r?1:0,l=f(function(e){return e===t},o,!0),d=f(function(e){return ee(t,e)>-1},o,!0),u=[function(e,n,i){var a=!r&&(i||n!==A)||((t=n).nodeType?l(e,n,i):d(e,n,i));return t=null,a}];a>s;s++)if(n=T.relative[e[s].type])u=[f(h(u),n)];else{if(n=T.filter[e[s].type].apply(null,e[s].matches),n[O]){for(i=++s;a>i&&!T.relative[e[i].type];i++);return v(s>1&&h(u),s>1&&p(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(se,"$1"),n,i>s&&w(e.slice(s,i)),a>i&&w(e=e.slice(i)),a>i&&p(e))}u.push(n)}return h(u)}function y(e,n){var a=n.length>0,r=e.length>0,o=function(i,o,s,l,d){var u,c,p,f=0,h="0",m=i&&[],v=[],w=A,y=i||r&&T.find.TAG("*",d),b=F+=null==w?1:Math.random()||.1,x=y.length;for(d&&(A=o===I||o||d);h!==x&&null!=(u=y[h]);h++){if(r&&u){for(c=0,o||u.ownerDocument===I||(M(u),s=!z);p=e[c++];)if(p(u,o||I,s)){l.push(u);break}d&&(F=b)}a&&((u=!p&&u)&&f--,i&&m.push(u))}if(f+=h,a&&h!==f){for(c=0;p=n[c++];)p(m,v,o,s);if(i){if(f>0)for(;h--;)m[h]||v[h]||(v[h]=Q.call(l));v=g(v)}J.apply(l,v),d&&!i&&v.length>0&&f+n.length>1&&t.uniqueSort(l)}return d&&(F=b,A=w),m};return a?i(o):o}var b,x,T,C,S,k,E,$,A,P,D,M,I,j,z,R,L,H,N,O="sizzle"+1*new Date,B=e.document,F=0,q=0,W=n(),G=n(),V=n(),X=function(e,t){return e===t&&(D=!0),0},Y=1<<31,_={}.hasOwnProperty,U=[],Q=U.pop,K=U.push,J=U.push,Z=U.slice,ee=function(e,t){for(var n=0,i=e.length;i>n;n++)if(e[n]===t)return n;return-1},te="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ne="[\\x20\\t\\r\\n\\f]",ie="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ae="\\["+ne+"*("+ie+")(?:"+ne+"*([*^$|!~]?=)"+ne+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ie+"))|)"+ne+"*\\]",re=":("+ie+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ae+")*)|.*)\\)|)",oe=new RegExp(ne+"+","g"),se=new RegExp("^"+ne+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ne+"+$","g"),le=new RegExp("^"+ne+"*,"+ne+"*"),de=new RegExp("^"+ne+"*([>+~]|"+ne+")"+ne+"*"),ue=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),ce=new RegExp(re),pe=new RegExp("^"+ie+"$"),fe={ID:new RegExp("^#("+ie+")"),CLASS:new RegExp("^\\.("+ie+")"),TAG:new RegExp("^("+ie+"|[*])"),ATTR:new RegExp("^"+ae),PSEUDO:new RegExp("^"+re),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},he=/^(?:input|select|textarea|button)$/i,me=/^h\d$/i,ge=/^[^{]+\{\s*\[native \w/,ve=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,we=/[+~]/,ye=/'|\\/g,be=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),xe=function(e,t,n){var i="0x"+t-65536;return i!==i||n?t:0>i?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},Te=function(){M()};try{J.apply(U=Z.call(B.childNodes),B.childNodes),U[B.childNodes.length].nodeType}catch(Ce){J={apply:U.length?function(e,t){K.apply(e,Z.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}x=t.support={},S=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},M=t.setDocument=function(e){var t,n,i=e?e.ownerDocument||e:B;return i!==I&&9===i.nodeType&&i.documentElement?(I=i,j=I.documentElement,z=!S(I),(n=I.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Te,!1):n.attachEvent&&n.attachEvent("onunload",Te)),x.attributes=a(function(e){return e.className="i",!e.getAttribute("className")}),x.getElementsByTagName=a(function(e){return e.appendChild(I.createComment("")),!e.getElementsByTagName("*").length}),x.getElementsByClassName=ge.test(I.getElementsByClassName),x.getById=a(function(e){return j.appendChild(e).id=O,!I.getElementsByName||!I.getElementsByName(O).length}),x.getById?(T.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&z){var n=t.getElementById(e);return n?[n]:[]}},T.filter.ID=function(e){var t=e.replace(be,xe);return function(e){return e.getAttribute("id")===t}}):(delete T.find.ID,T.filter.ID=function(e){var t=e.replace(be,xe);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),T.find.TAG=x.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):x.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],a=0,r=t.getElementsByTagName(e);if("*"===e){for(;n=r[a++];)1===n.nodeType&&i.push(n);return i}return r},T.find.CLASS=x.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&z?t.getElementsByClassName(e):void 0},L=[],R=[],(x.qsa=ge.test(I.querySelectorAll))&&(a(function(e){j.appendChild(e).innerHTML="<a id='"+O+"'></a><select id='"+O+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&R.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||R.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+O+"-]").length||R.push("~="),e.querySelectorAll(":checked").length||R.push(":checked"),e.querySelectorAll("a#"+O+"+*").length||R.push(".#.+[+~]")}),a(function(e){var t=I.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&R.push("name"+ne+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||R.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),R.push(",.*:")})),(x.matchesSelector=ge.test(H=j.matches||j.webkitMatchesSelector||j.mozMatchesSelector||j.oMatchesSelector||j.msMatchesSelector))&&a(function(e){x.disconnectedMatch=H.call(e,"div"),H.call(e,"[s!='']:x"),L.push("!=",re)}),R=R.length&&new RegExp(R.join("|")),L=L.length&&new RegExp(L.join("|")),t=ge.test(j.compareDocumentPosition),N=t||ge.test(j.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},X=t?function(e,t){if(e===t)return D=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!x.sortDetached&&t.compareDocumentPosition(e)===n?e===I||e.ownerDocument===B&&N(B,e)?-1:t===I||t.ownerDocument===B&&N(B,t)?1:P?ee(P,e)-ee(P,t):0:4&n?-1:1)}:function(e,t){if(e===t)return D=!0,0;var n,i=0,a=e.parentNode,r=t.parentNode,s=[e],l=[t];if(!a||!r)return e===I?-1:t===I?1:a?-1:r?1:P?ee(P,e)-ee(P,t):0;if(a===r)return o(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)l.unshift(n);for(;s[i]===l[i];)i++;return i?o(s[i],l[i]):s[i]===B?-1:l[i]===B?1:0},I):I},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==I&&M(e),n=n.replace(ue,"='$1']"),x.matchesSelector&&z&&!V[n+" "]&&(!L||!L.test(n))&&(!R||!R.test(n)))try{var i=H.call(e,n);if(i||x.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(a){}return t(n,I,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==I&&M(e),N(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==I&&M(e);var n=T.attrHandle[t.toLowerCase()],i=n&&_.call(T.attrHandle,t.toLowerCase())?n(e,t,!z):void 0;return void 0!==i?i:x.attributes||!z?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],i=0,a=0;if(D=!x.detectDuplicates,P=!x.sortStable&&e.slice(0),e.sort(X),D){for(;t=e[a++];)t===e[a]&&(i=n.push(a));for(;i--;)e.splice(n[i],1)}return P=null,e},C=t.getText=function(e){var t,n="",i=0,a=e.nodeType;if(a){if(1===a||9===a||11===a){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=C(e)}else if(3===a||4===a)return e.nodeValue}else for(;t=e[i++];)n+=C(t);return n},T=t.selectors={cacheLength:50,createPseudo:i,match:fe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(be,xe),e[3]=(e[3]||e[4]||e[5]||"").replace(be,xe),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return fe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ce.test(n)&&(t=k(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(be,xe).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=W[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&W(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,i){return function(a){var r=t.attr(a,e);return null==r?"!="===n:n?(r+="","="===n?r===i:"!="===n?r!==i:"^="===n?i&&0===r.indexOf(i):"*="===n?i&&r.indexOf(i)>-1:"$="===n?i&&r.slice(-i.length)===i:"~="===n?(" "+r.replace(oe," ")+" ").indexOf(i)>-1:"|="===n?r===i||r.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(e,t,n,i,a){var r="nth"!==e.slice(0,3),o="last"!==e.slice(-4),s="of-type"===t;return 1===i&&0===a?function(e){return!!e.parentNode}:function(t,n,l){var d,u,c,p,f,h,m=r!==o?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),w=!l&&!s,y=!1;if(g){if(r){for(;m;){for(p=t;p=p[m];)if(s?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[o?g.firstChild:g.lastChild],o&&w){for(p=g,c=p[O]||(p[O]={}),u=c[p.uniqueID]||(c[p.uniqueID]={}),d=u[e]||[],f=d[0]===F&&d[1],y=f&&d[2],p=f&&g.childNodes[f];p=++f&&p&&p[m]||(y=f=0)||h.pop();)if(1===p.nodeType&&++y&&p===t){u[e]=[F,f,y];break}}else if(w&&(p=t,c=p[O]||(p[O]={}),u=c[p.uniqueID]||(c[p.uniqueID]={}),d=u[e]||[],f=d[0]===F&&d[1],y=f),y===!1)for(;(p=++f&&p&&p[m]||(y=f=0)||h.pop())&&((s?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++y||(w&&(c=p[O]||(p[O]={}),u=c[p.uniqueID]||(c[p.uniqueID]={}),u[e]=[F,y]),p!==t)););return y-=a,y===i||y%i===0&&y/i>=0}}},PSEUDO:function(e,n){var a,r=T.pseudos[e]||T.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return r[O]?r(n):r.length>1?(a=[e,e,"",n],T.setFilters.hasOwnProperty(e.toLowerCase())?i(function(e,t){for(var i,a=r(e,n),o=a.length;o--;)i=ee(e,a[o]),e[i]=!(t[i]=a[o])}):function(e){return r(e,0,a)}):r}},pseudos:{not:i(function(e){var t=[],n=[],a=E(e.replace(se,"$1"));return a[O]?i(function(e,t,n,i){for(var r,o=a(e,null,i,[]),s=e.length;s--;)(r=o[s])&&(e[s]=!(t[s]=r))}):function(e,i,r){return t[0]=e,a(t,null,r,n),t[0]=null,!n.pop()}}),has:i(function(e){return function(n){return t(e,n).length>0}}),contains:i(function(e){return e=e.replace(be,xe),function(t){return(t.textContent||t.innerText||C(t)).indexOf(e)>-1}}),lang:i(function(e){return pe.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(be,xe).toLowerCase(),function(t){var n;do if(n=z?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===j},focus:function(e){return e===I.activeElement&&(!I.hasFocus||I.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!T.pseudos.empty(e)},header:function(e){return me.test(e.nodeName)},input:function(e){return he.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:d(function(){return[0]}),last:d(function(e,t){return[t-1]}),eq:d(function(e,t,n){return[0>n?n+t:n]}),even:d(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:d(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:d(function(e,t,n){for(var i=0>n?n+t:n;--i>=0;)e.push(i);return e}),gt:d(function(e,t,n){for(var i=0>n?n+t:n;++i<t;)e.push(i);return e})}},T.pseudos.nth=T.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})T.pseudos[b]=s(b);for(b in{submit:!0,reset:!0})T.pseudos[b]=l(b);return c.prototype=T.filters=T.pseudos,T.setFilters=new c,k=t.tokenize=function(e,n){var i,a,r,o,s,l,d,u=G[e+" "];if(u)return n?0:u.slice(0);for(s=e,l=[],d=T.preFilter;s;){(!i||(a=le.exec(s)))&&(a&&(s=s.slice(a[0].length)||s),l.push(r=[])),i=!1,(a=de.exec(s))&&(i=a.shift(),r.push({value:i,type:a[0].replace(se," ")}),s=s.slice(i.length));for(o in T.filter)!(a=fe[o].exec(s))||d[o]&&!(a=d[o](a))||(i=a.shift(),
  r.push({value:i,type:o,matches:a}),s=s.slice(i.length));if(!i)break}return n?s.length:s?t.error(e):G(e,l).slice(0)},E=t.compile=function(e,t){var n,i=[],a=[],r=V[e+" "];if(!r){for(t||(t=k(e)),n=t.length;n--;)r=w(t[n]),r[O]?i.push(r):a.push(r);r=V(e,y(a,i)),r.selector=e}return r},$=t.select=function(e,t,n,i){var a,r,o,s,l,d="function"==typeof e&&e,c=!i&&k(e=d.selector||e);if(n=n||[],1===c.length){if(r=c[0]=c[0].slice(0),r.length>2&&"ID"===(o=r[0]).type&&x.getById&&9===t.nodeType&&z&&T.relative[r[1].type]){if(t=(T.find.ID(o.matches[0].replace(be,xe),t)||[])[0],!t)return n;d&&(t=t.parentNode),e=e.slice(r.shift().value.length)}for(a=fe.needsContext.test(e)?0:r.length;a--&&(o=r[a],!T.relative[s=o.type]);)if((l=T.find[s])&&(i=l(o.matches[0].replace(be,xe),we.test(r[0].type)&&u(t.parentNode)||t))){if(r.splice(a,1),e=i.length&&p(r),!e)return J.apply(n,i),n;break}}return(d||E(e,c))(i,t,!z,n,!t||we.test(e)&&u(t.parentNode)||t),n},x.sortStable=O.split("").sort(X).join("")===O,x.detectDuplicates=!!D,M(),x.sortDetached=a(function(e){return 1&e.compareDocumentPosition(I.createElement("div"))}),a(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||r("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),x.attributes&&a(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||r("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),a(function(e){return null==e.getAttribute("disabled")})||r(te,function(e,t,n){var i;return n?void 0:e[t]===!0?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),t}(e);re.find=ue,re.expr=ue.selectors,re.expr[":"]=re.expr.pseudos,re.uniqueSort=re.unique=ue.uniqueSort,re.text=ue.getText,re.isXMLDoc=ue.isXML,re.contains=ue.contains;var ce=function(e,t,n){for(var i=[],a=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(a&&re(e).is(n))break;i.push(e)}return i},pe=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},fe=re.expr.match.needsContext,he=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,me=/^.[^:#\[\.,]*$/;re.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?re.find.matchesSelector(i,e)?[i]:[]:re.find.matches(e,re.grep(t,function(e){return 1===e.nodeType}))},re.fn.extend({find:function(e){var t,n=this.length,i=[],a=this;if("string"!=typeof e)return this.pushStack(re(e).filter(function(){for(t=0;n>t;t++)if(re.contains(a[t],this))return!0}));for(t=0;n>t;t++)re.find(e,a[t],i);return i=this.pushStack(n>1?re.unique(i):i),i.selector=this.selector?this.selector+" "+e:e,i},filter:function(e){return this.pushStack(i(this,e||[],!1))},not:function(e){return this.pushStack(i(this,e||[],!0))},is:function(e){return!!i(this,"string"==typeof e&&fe.test(e)?re(e):e||[],!1).length}});var ge,ve=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,we=re.fn.init=function(e,t,n){var i,a;if(!e)return this;if(n=n||ge,"string"==typeof e){if(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:ve.exec(e),!i||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof re?t[0]:t,re.merge(this,re.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:U,!0)),he.test(i[1])&&re.isPlainObject(t))for(i in t)re.isFunction(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return a=U.getElementById(i[2]),a&&a.parentNode&&(this.length=1,this[0]=a),this.context=U,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):re.isFunction(e)?void 0!==n.ready?n.ready(e):e(re):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),re.makeArray(e,this))};we.prototype=re.fn,ge=re(U);var ye=/^(?:parents|prev(?:Until|All))/,be={children:!0,contents:!0,next:!0,prev:!0};re.fn.extend({has:function(e){var t=re(e,this),n=t.length;return this.filter(function(){for(var e=0;n>e;e++)if(re.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,i=0,a=this.length,r=[],o=fe.test(e)||"string"!=typeof e?re(e,t||this.context):0;a>i;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&re.find.matchesSelector(n,e))){r.push(n);break}return this.pushStack(r.length>1?re.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?Z.call(re(e),this[0]):Z.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(re.uniqueSort(re.merge(this.get(),re(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),re.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return ce(e,"parentNode")},parentsUntil:function(e,t,n){return ce(e,"parentNode",n)},next:function(e){return a(e,"nextSibling")},prev:function(e){return a(e,"previousSibling")},nextAll:function(e){return ce(e,"nextSibling")},prevAll:function(e){return ce(e,"previousSibling")},nextUntil:function(e,t,n){return ce(e,"nextSibling",n)},prevUntil:function(e,t,n){return ce(e,"previousSibling",n)},siblings:function(e){return pe((e.parentNode||{}).firstChild,e)},children:function(e){return pe(e.firstChild)},contents:function(e){return e.contentDocument||re.merge([],e.childNodes)}},function(e,t){re.fn[e]=function(n,i){var a=re.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(a=re.filter(i,a)),this.length>1&&(be[e]||re.uniqueSort(a),ye.test(e)&&a.reverse()),this.pushStack(a)}});var xe=/\S+/g;re.Callbacks=function(e){e="string"==typeof e?r(e):re.extend({},e);var t,n,i,a,o=[],s=[],l=-1,d=function(){for(a=e.once,i=t=!0;s.length;l=-1)for(n=s.shift();++l<o.length;)o[l].apply(n[0],n[1])===!1&&e.stopOnFalse&&(l=o.length,n=!1);e.memory||(n=!1),t=!1,a&&(o=n?[]:"")},u={add:function(){return o&&(n&&!t&&(l=o.length-1,s.push(n)),function i(t){re.each(t,function(t,n){re.isFunction(n)?e.unique&&u.has(n)||o.push(n):n&&n.length&&"string"!==re.type(n)&&i(n)})}(arguments),n&&!t&&d()),this},remove:function(){return re.each(arguments,function(e,t){for(var n;(n=re.inArray(t,o,n))>-1;)o.splice(n,1),l>=n&&l--}),this},has:function(e){return e?re.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return a=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return a=s=[],n||(o=n=""),this},locked:function(){return!!a},fireWith:function(e,n){return a||(n=n||[],n=[e,n.slice?n.slice():n],s.push(n),t||d()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},re.extend({Deferred:function(e){var t=[["resolve","done",re.Callbacks("once memory"),"resolved"],["reject","fail",re.Callbacks("once memory"),"rejected"],["notify","progress",re.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return a.done(arguments).fail(arguments),this},then:function(){var e=arguments;return re.Deferred(function(n){re.each(t,function(t,r){var o=re.isFunction(e[t])&&e[t];a[r[1]](function(){var e=o&&o.apply(this,arguments);e&&re.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this===i?n.promise():this,o?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?re.extend(e,i):i}},a={};return i.pipe=i.then,re.each(t,function(e,r){var o=r[2],s=r[3];i[r[1]]=o.add,s&&o.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),a[r[0]]=function(){return a[r[0]+"With"](this===a?i:this,arguments),this},a[r[0]+"With"]=o.fireWith}),i.promise(a),e&&e.call(a,a),a},when:function(e){var t,n,i,a=0,r=Q.call(arguments),o=r.length,s=1!==o||e&&re.isFunction(e.promise)?o:0,l=1===s?e:re.Deferred(),d=function(e,n,i){return function(a){n[e]=this,i[e]=arguments.length>1?Q.call(arguments):a,i===t?l.notifyWith(n,i):--s||l.resolveWith(n,i)}};if(o>1)for(t=new Array(o),n=new Array(o),i=new Array(o);o>a;a++)r[a]&&re.isFunction(r[a].promise)?r[a].promise().progress(d(a,n,t)).done(d(a,i,r)).fail(l.reject):--s;return s||l.resolveWith(i,r),l.promise()}});var Te;re.fn.ready=function(e){return re.ready.promise().done(e),this},re.extend({isReady:!1,readyWait:1,holdReady:function(e){e?re.readyWait++:re.ready(!0)},ready:function(e){(e===!0?--re.readyWait:re.isReady)||(re.isReady=!0,e!==!0&&--re.readyWait>0||(Te.resolveWith(U,[re]),re.fn.triggerHandler&&(re(U).triggerHandler("ready"),re(U).off("ready"))))}}),re.ready.promise=function(t){return Te||(Te=re.Deferred(),"complete"===U.readyState||"loading"!==U.readyState&&!U.documentElement.doScroll?e.setTimeout(re.ready):(U.addEventListener("DOMContentLoaded",o),e.addEventListener("load",o))),Te.promise(t)},re.ready.promise();var Ce=function(e,t,n,i,a,r,o){var s=0,l=e.length,d=null==n;if("object"===re.type(n)){a=!0;for(s in n)Ce(e,t,s,n[s],!0,r,o)}else if(void 0!==i&&(a=!0,re.isFunction(i)||(o=!0),d&&(o?(t.call(e,i),t=null):(d=t,t=function(e,t,n){return d.call(re(e),n)})),t))for(;l>s;s++)t(e[s],n,o?i:i.call(e[s],s,t(e[s],n)));return a?e:d?t.call(e):l?t(e[0],n):r},Se=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};s.uid=1,s.prototype={register:function(e,t){var n=t||{};return e.nodeType?e[this.expando]=n:Object.defineProperty(e,this.expando,{value:n,writable:!0,configurable:!0}),e[this.expando]},cache:function(e){if(!Se(e))return{};var t=e[this.expando];return t||(t={},Se(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,a=this.cache(e);if("string"==typeof t)a[t]=n;else for(i in t)a[i]=t[i];return a},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][t]},access:function(e,t,n){var i;return void 0===t||t&&"string"==typeof t&&void 0===n?(i=this.get(e,t),void 0!==i?i:this.get(e,re.camelCase(t))):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i,a,r=e[this.expando];if(void 0!==r){if(void 0===t)this.register(e);else{re.isArray(t)?i=t.concat(t.map(re.camelCase)):(a=re.camelCase(t),t in r?i=[t,a]:(i=a,i=i in r?[i]:i.match(xe)||[])),n=i.length;for(;n--;)delete r[i[n]]}(void 0===t||re.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!re.isEmptyObject(t)}};var ke=new s,Ee=new s,$e=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ae=/[A-Z]/g;re.extend({hasData:function(e){return Ee.hasData(e)||ke.hasData(e)},data:function(e,t,n){return Ee.access(e,t,n)},removeData:function(e,t){Ee.remove(e,t)},_data:function(e,t,n){return ke.access(e,t,n)},_removeData:function(e,t){ke.remove(e,t)}}),re.fn.extend({data:function(e,t){var n,i,a,r=this[0],o=r&&r.attributes;if(void 0===e){if(this.length&&(a=Ee.get(r),1===r.nodeType&&!ke.get(r,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&(i=o[n].name,0===i.indexOf("data-")&&(i=re.camelCase(i.slice(5)),l(r,i,a[i])));ke.set(r,"hasDataAttrs",!0)}return a}return"object"==typeof e?this.each(function(){Ee.set(this,e)}):Ce(this,function(t){var n,i;if(r&&void 0===t){if(n=Ee.get(r,e)||Ee.get(r,e.replace(Ae,"-$&").toLowerCase()),void 0!==n)return n;if(i=re.camelCase(e),n=Ee.get(r,i),void 0!==n)return n;if(n=l(r,i,void 0),void 0!==n)return n}else i=re.camelCase(e),this.each(function(){var n=Ee.get(this,i);Ee.set(this,i,t),e.indexOf("-")>-1&&void 0!==n&&Ee.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Ee.remove(this,e)})}}),re.extend({queue:function(e,t,n){var i;return e?(t=(t||"fx")+"queue",i=ke.get(e,t),n&&(!i||re.isArray(n)?i=ke.access(e,t,re.makeArray(n)):i.push(n)),i||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=re.queue(e,t),i=n.length,a=n.shift(),r=re._queueHooks(e,t),o=function(){re.dequeue(e,t)};"inprogress"===a&&(a=n.shift(),i--),a&&("fx"===t&&n.unshift("inprogress"),delete r.stop,a.call(e,o,r)),!i&&r&&r.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return ke.get(e,n)||ke.access(e,n,{empty:re.Callbacks("once memory").add(function(){ke.remove(e,[t+"queue",n])})})}}),re.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?re.queue(this[0],e):void 0===t?this:this.each(function(){var n=re.queue(this,e,t);re._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&re.dequeue(this,e)})},dequeue:function(e){return this.each(function(){re.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,a=re.Deferred(),r=this,o=this.length,s=function(){--i||a.resolveWith(r,[r])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)n=ke.get(r[o],e+"queueHooks"),n&&n.empty&&(i++,n.empty.add(s));return s(),a.promise(t)}});var Pe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,De=new RegExp("^(?:([+-])=|)("+Pe+")([a-z%]*)$","i"),Me=["Top","Right","Bottom","Left"],Ie=function(e,t){return e=t||e,"none"===re.css(e,"display")||!re.contains(e.ownerDocument,e)},je=/^(?:checkbox|radio)$/i,ze=/<([\w:-]+)/,Re=/^$|\/(?:java|ecma)script/i,Le={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,"",""]};Le.optgroup=Le.option,Le.tbody=Le.tfoot=Le.colgroup=Le.caption=Le.thead,Le.th=Le.td;var He=/<|&#?\w+;/;!function(){var e=U.createDocumentFragment(),t=e.appendChild(U.createElement("div")),n=U.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),ie.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",ie.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var Ne=/^key/,Oe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Be=/^([^.]*)(?:\.(.+)|)/;re.event={global:{},add:function(e,t,n,i,a){var r,o,s,l,d,u,c,p,f,h,m,g=ke.get(e);if(g)for(n.handler&&(r=n,n=r.handler,a=r.selector),n.guid||(n.guid=re.guid++),(l=g.events)||(l=g.events={}),(o=g.handle)||(o=g.handle=function(t){return"undefined"!=typeof re&&re.event.triggered!==t.type?re.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(xe)||[""],d=t.length;d--;)s=Be.exec(t[d])||[],f=m=s[1],h=(s[2]||"").split(".").sort(),f&&(c=re.event.special[f]||{},f=(a?c.delegateType:c.bindType)||f,c=re.event.special[f]||{},u=re.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:a,needsContext:a&&re.expr.match.needsContext.test(a),namespace:h.join(".")},r),(p=l[f])||(p=l[f]=[],p.delegateCount=0,c.setup&&c.setup.call(e,i,h,o)!==!1||e.addEventListener&&e.addEventListener(f,o)),c.add&&(c.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),a?p.splice(p.delegateCount++,0,u):p.push(u),re.event.global[f]=!0)},remove:function(e,t,n,i,a){var r,o,s,l,d,u,c,p,f,h,m,g=ke.hasData(e)&&ke.get(e);if(g&&(l=g.events)){for(t=(t||"").match(xe)||[""],d=t.length;d--;)if(s=Be.exec(t[d])||[],f=m=s[1],h=(s[2]||"").split(".").sort(),f){for(c=re.event.special[f]||{},f=(i?c.delegateType:c.bindType)||f,p=l[f]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=r=p.length;r--;)u=p[r],!a&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(p.splice(r,1),u.selector&&p.delegateCount--,c.remove&&c.remove.call(e,u));o&&!p.length&&(c.teardown&&c.teardown.call(e,h,g.handle)!==!1||re.removeEvent(e,f,g.handle),delete l[f])}else for(f in l)re.event.remove(e,f+t[d],n,i,!0);re.isEmptyObject(l)&&ke.remove(e,"handle events")}},dispatch:function(e){e=re.event.fix(e);var t,n,i,a,r,o=[],s=Q.call(arguments),l=(ke.get(this,"events")||{})[e.type]||[],d=re.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!d.preDispatch||d.preDispatch.call(this,e)!==!1){for(o=re.event.handlers.call(this,e,l),t=0;(a=o[t++])&&!e.isPropagationStopped();)for(e.currentTarget=a.elem,n=0;(r=a.handlers[n++])&&!e.isImmediatePropagationStopped();)(!e.rnamespace||e.rnamespace.test(r.namespace))&&(e.handleObj=r,e.data=r.data,i=((re.event.special[r.origType]||{}).handle||r.handler).apply(a.elem,s),void 0!==i&&(e.result=i)===!1&&(e.preventDefault(),e.stopPropagation()));return d.postDispatch&&d.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,i,a,r,o=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&(l.disabled!==!0||"click"!==e.type)){for(i=[],n=0;s>n;n++)r=t[n],a=r.selector+" ",void 0===i[a]&&(i[a]=r.needsContext?re(a,this).index(l)>-1:re.find(a,this,null,[l]).length),i[a]&&i.push(r);i.length&&o.push({elem:l,handlers:i})}return s<t.length&&o.push({elem:this,handlers:t.slice(s)}),o},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(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,i,a,r=t.button;return null==e.pageX&&null!=t.clientX&&(n=e.target.ownerDocument||U,i=n.documentElement,a=n.body,e.pageX=t.clientX+(i&&i.scrollLeft||a&&a.scrollLeft||0)-(i&&i.clientLeft||a&&a.clientLeft||0),e.pageY=t.clientY+(i&&i.scrollTop||a&&a.scrollTop||0)-(i&&i.clientTop||a&&a.clientTop||0)),e.which||void 0===r||(e.which=1&r?1:2&r?3:4&r?2:0),e}},fix:function(e){if(e[re.expando])return e;var t,n,i,a=e.type,r=e,o=this.fixHooks[a];for(o||(this.fixHooks[a]=o=Oe.test(a)?this.mouseHooks:Ne.test(a)?this.keyHooks:{}),i=o.props?this.props.concat(o.props):this.props,e=new re.Event(r),t=i.length;t--;)n=i[t],e[n]=r[n];return e.target||(e.target=U),3===e.target.nodeType&&(e.target=e.target.parentNode),o.filter?o.filter(e,r):e},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==m()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===m()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&re.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(e){return re.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},re.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},re.Event=function(e,t){return this instanceof re.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?f:h):this.type=e,t&&re.extend(this,t),this.timeStamp=e&&e.timeStamp||re.now(),void(this[re.expando]=!0)):new re.Event(e,t)},re.Event.prototype={constructor:re.Event,isDefaultPrevented:h,isPropagationStopped:h,isImmediatePropagationStopped:h,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=f,e&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=f,e&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=f,e&&e.stopImmediatePropagation(),this.stopPropagation()}},re.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){re.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=this,a=e.relatedTarget,r=e.handleObj;return(!a||a!==i&&!re.contains(i,a))&&(e.type=r.origType,n=r.handler.apply(this,arguments),e.type=t),n}}}),re.fn.extend({on:function(e,t,n,i){return g(this,e,t,n,i)},one:function(e,t,n,i){return g(this,e,t,n,i,1)},off:function(e,t,n){var i,a;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,re(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(a in e)this.off(a,t,e[a]);return this}return(t===!1||"function"==typeof t)&&(n=t,t=void 0),n===!1&&(n=h),this.each(function(){re.event.remove(this,e,n,t)})}});var Fe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,qe=/<script|<style|<link/i,We=/checked\s*(?:[^=]|=\s*.checked.)/i,Ge=/^true\/(.*)/,Ve=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;re.extend({htmlPrefilter:function(e){return e.replace(Fe,"<$1></$2>")},clone:function(e,t,n){var i,a,r,o,s=e.cloneNode(!0),l=re.contains(e.ownerDocument,e);if(!(ie.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||re.isXMLDoc(e)))for(o=u(s),r=u(e),i=0,a=r.length;a>i;i++)x(r[i],o[i]);if(t)if(n)for(r=r||u(e),o=o||u(s),i=0,a=r.length;a>i;i++)b(r[i],o[i]);else b(e,s);return o=u(s,"script"),o.length>0&&c(o,!l&&u(e,"script")),s},cleanData:function(e){for(var t,n,i,a=re.event.special,r=0;void 0!==(n=e[r]);r++)if(Se(n)){if(t=n[ke.expando]){if(t.events)for(i in t.events)a[i]?re.event.remove(n,i):re.removeEvent(n,i,t.handle);n[ke.expando]=void 0}n[Ee.expando]&&(n[Ee.expando]=void 0)}}}),re.fn.extend({domManip:T,detach:function(e){return C(this,e,!0)},remove:function(e){return C(this,e)},text:function(e){return Ce(this,function(e){return void 0===e?re.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=e)})},null,e,arguments.length)},append:function(){return T(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=v(this,e);t.appendChild(e)}})},prepend:function(){return T(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=v(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return T(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return T(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(re.cleanData(u(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return re.clone(this,e,t)})},html:function(e){return Ce(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!qe.test(e)&&!Le[(ze.exec(e)||["",""])[1].toLowerCase()]){e=re.htmlPrefilter(e);try{for(;i>n;n++)t=this[n]||{},1===t.nodeType&&(re.cleanData(u(t,!1)),t.innerHTML=e);t=0}catch(a){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return T(this,arguments,function(t){var n=this.parentNode;re.inArray(this,e)<0&&(re.cleanData(u(this)),n&&n.replaceChild(t,this))},e)}}),re.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){re.fn[e]=function(e){for(var n,i=[],a=re(e),r=a.length-1,o=0;r>=o;o++)n=o===r?this:this.clone(!0),re(a[o])[t](n),J.apply(i,n.get());return this.pushStack(i)}});var Xe,Ye={HTML:"block",BODY:"block"},_e=/^margin/,Ue=new RegExp("^("+Pe+")(?!px)[a-z%]+$","i"),Qe=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},Ke=function(e,t,n,i){var a,r,o={};for(r in t)o[r]=e.style[r],e.style[r]=t[r];a=n.apply(e,i||[]);for(r in t)e.style[r]=o[r];return a},Je=U.documentElement;!function(){function t(){s.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%",s.innerHTML="",Je.appendChild(o);var t=e.getComputedStyle(s);n="1%"!==t.top,r="2px"===t.marginLeft,i="4px"===t.width,s.style.marginRight="50%",a="4px"===t.marginRight,Je.removeChild(o)}var n,i,a,r,o=U.createElement("div"),s=U.createElement("div");s.style&&(s.style.backgroundClip="content-box",s.cloneNode(!0).style.backgroundClip="",ie.clearCloneStyle="content-box"===s.style.backgroundClip,o.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",o.appendChild(s),re.extend(ie,{pixelPosition:function(){return t(),n},boxSizingReliable:function(){return null==i&&t(),i},pixelMarginRight:function(){return null==i&&t(),a},reliableMarginLeft:function(){return null==i&&t(),r},reliableMarginRight:function(){var t,n=s.appendChild(U.createElement("div"));return n.style.cssText=s.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",n.style.marginRight=n.style.width="0",s.style.width="1px",Je.appendChild(o),t=!parseFloat(e.getComputedStyle(n).marginRight),Je.removeChild(o),s.removeChild(n),t}}))}();var Ze=/^(none|table(?!-c[ea]).+)/,et={position:"absolute",visibility:"hidden",display:"block"},tt={letterSpacing:"0",fontWeight:"400"},nt=["Webkit","O","Moz","ms"],it=U.createElement("div").style;re.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=E(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var a,r,o,s=re.camelCase(t),l=e.style;return t=re.cssProps[s]||(re.cssProps[s]=A(s)||s),o=re.cssHooks[t]||re.cssHooks[s],void 0===n?o&&"get"in o&&void 0!==(a=o.get(e,!1,i))?a:l[t]:(r=typeof n,"string"===r&&(a=De.exec(n))&&a[1]&&(n=d(e,t,a),r="number"),void(null!=n&&n===n&&("number"===r&&(n+=a&&a[3]||(re.cssNumber[s]?"":"px")),ie.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,i))||(l[t]=n))))}},css:function(e,t,n,i){var a,r,o,s=re.camelCase(t);return t=re.cssProps[s]||(re.cssProps[s]=A(s)||s),o=re.cssHooks[t]||re.cssHooks[s],o&&"get"in o&&(a=o.get(e,!0,n)),void 0===a&&(a=E(e,t,i)),"normal"===a&&t in tt&&(a=tt[t]),""===n||n?(r=parseFloat(a),n===!0||isFinite(r)?r||0:a):a}}),re.each(["height","width"],function(e,t){re.cssHooks[t]={get:function(e,n,i){return n?Ze.test(re.css(e,"display"))&&0===e.offsetWidth?Ke(e,et,function(){return M(e,t,i)}):M(e,t,i):void 0},set:function(e,n,i){var a,r=i&&Qe(e),o=i&&D(e,t,i,"border-box"===re.css(e,"boxSizing",!1,r),r);return o&&(a=De.exec(n))&&"px"!==(a[3]||"px")&&(e.style[t]=n,n=re.css(e,t)),P(e,n,o)}}}),re.cssHooks.marginLeft=$(ie.reliableMarginLeft,function(e,t){return t?(parseFloat(E(e,"marginLeft"))||e.getBoundingClientRect().left-Ke(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px":void 0}),re.cssHooks.marginRight=$(ie.reliableMarginRight,function(e,t){return t?Ke(e,{display:"inline-block"},E,[e,"marginRight"]):void 0}),re.each({margin:"",padding:"",border:"Width"},function(e,t){re.cssHooks[e+t]={expand:function(n){for(var i=0,a={},r="string"==typeof n?n.split(" "):[n];4>i;i++)a[e+Me[i]+t]=r[i]||r[i-2]||r[0];return a}},_e.test(e)||(re.cssHooks[e+t].set=P)}),re.fn.extend({css:function(e,t){return Ce(this,function(e,t,n){var i,a,r={},o=0;if(re.isArray(t)){for(i=Qe(e),a=t.length;a>o;o++)r[t[o]]=re.css(e,t[o],!1,i);return r}return void 0!==n?re.style(e,t,n):re.css(e,t)},e,t,arguments.length>1)},show:function(){return I(this,!0)},hide:function(){return I(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Ie(this)?re(this).show():re(this).hide()})}}),re.Tween=j,j.prototype={constructor:j,init:function(e,t,n,i,a,r){this.elem=e,this.prop=n,this.easing=a||re.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=r||(re.cssNumber[n]?"":"px")},cur:function(){var e=j.propHooks[this.prop];return e&&e.get?e.get(this):j.propHooks._default.get(this)},run:function(e){var t,n=j.propHooks[this.prop];return this.options.duration?this.pos=t=re.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):j.propHooks._default.set(this),this}},j.prototype.init.prototype=j.prototype,j.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=re.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){re.fx.step[e.prop]?re.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[re.cssProps[e.prop]]&&!re.cssHooks[e.prop]?e.elem[e.prop]=e.now:re.style(e.elem,e.prop,e.now+e.unit)}}},j.propHooks.scrollTop=j.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},re.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},re.fx=j.prototype.init,re.fx.step={};var at,rt,ot=/^(?:toggle|show|hide)$/,st=/queueHooks$/;re.Animation=re.extend(O,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return d(n.elem,e,De.exec(t),n),n}]},tweener:function(e,t){re.isFunction(e)?(t=e,e=["*"]):e=e.match(xe);for(var n,i=0,a=e.length;a>i;i++)n=e[i],O.tweeners[n]=O.tweeners[n]||[],O.tweeners[n].unshift(t)},prefilters:[H],prefilter:function(e,t){t?O.prefilters.unshift(e):O.prefilters.push(e)}}),re.speed=function(e,t,n){var i=e&&"object"==typeof e?re.extend({},e):{complete:n||!n&&t||re.isFunction(e)&&e,duration:e,easing:n&&t||t&&!re.isFunction(t)&&t};return i.duration=re.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in re.fx.speeds?re.fx.speeds[i.duration]:re.fx.speeds._default,(null==i.queue||i.queue===!0)&&(i.queue="fx"),i.old=i.complete,i.complete=function(){re.isFunction(i.old)&&i.old.call(this),i.queue&&re.dequeue(this,i.queue)},i},re.fn.extend({fadeTo:function(e,t,n,i){return this.filter(Ie).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var a=re.isEmptyObject(e),r=re.speed(t,n,i),o=function(){var t=O(this,re.extend({},e),r);(a||ke.get(this,"finish"))&&t.stop(!0)};return o.finish=o,a||r.queue===!1?this.each(o):this.queue(r.queue,o)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,a=null!=e&&e+"queueHooks",r=re.timers,o=ke.get(this);if(a)o[a]&&o[a].stop&&i(o[a]);else for(a in o)o[a]&&o[a].stop&&st.test(a)&&i(o[a]);for(a=r.length;a--;)r[a].elem!==this||null!=e&&r[a].queue!==e||(r[a].anim.stop(n),t=!1,r.splice(a,1));(t||!n)&&re.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=ke.get(this),i=n[e+"queue"],a=n[e+"queueHooks"],r=re.timers,o=i?i.length:0;for(n.finish=!0,re.queue(this,e,[]),a&&a.stop&&a.stop.call(this,!0),t=r.length;t--;)r[t].elem===this&&r[t].queue===e&&(r[t].anim.stop(!0),r.splice(t,1));for(t=0;o>t;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish})}}),re.each(["toggle","show","hide"],function(e,t){var n=re.fn[t];re.fn[t]=function(e,i,a){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(R(t,!0),e,i,a)}}),re.each({slideDown:R("show"),slideUp:R("hide"),slideToggle:R("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){re.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}}),re.timers=[],re.fx.tick=function(){var e,t=0,n=re.timers;for(at=re.now();t<n.length;t++)e=n[t],e()||n[t]!==e||n.splice(t--,1);n.length||re.fx.stop(),at=void 0},re.fx.timer=function(e){re.timers.push(e),e()?re.fx.start():re.timers.pop()},re.fx.interval=13,re.fx.start=function(){rt||(rt=e.setInterval(re.fx.tick,re.fx.interval))},re.fx.stop=function(){e.clearInterval(rt),rt=null},re.fx.speeds={slow:600,fast:200,_default:400},re.fn.delay=function(t,n){return t=re.fx?re.fx.speeds[t]||t:t,n=n||"fx",this.queue(n,function(n,i){var a=e.setTimeout(n,t);i.stop=function(){e.clearTimeout(a)}})},function(){var e=U.createElement("input"),t=U.createElement("select"),n=t.appendChild(U.createElement("option"));e.type="checkbox",ie.checkOn=""!==e.value,ie.optSelected=n.selected,t.disabled=!0,ie.optDisabled=!n.disabled,e=U.createElement("input"),e.value="t",e.type="radio",ie.radioValue="t"===e.value}();var lt,dt=re.expr.attrHandle;re.fn.extend({attr:function(e,t){return Ce(this,re.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){re.removeAttr(this,e)})}}),re.extend({attr:function(e,t,n){var i,a,r=e.nodeType;return 3!==r&&8!==r&&2!==r?"undefined"==typeof e.getAttribute?re.prop(e,t,n):(1===r&&re.isXMLDoc(e)||(t=t.toLowerCase(),a=re.attrHooks[t]||(re.expr.match.bool.test(t)?lt:void 0)),void 0!==n?null===n?void re.removeAttr(e,t):a&&"set"in a&&void 0!==(i=a.set(e,n,t))?i:(e.setAttribute(t,n+""),n):a&&"get"in a&&null!==(i=a.get(e,t))?i:(i=re.find.attr(e,t),null==i?void 0:i)):void 0},attrHooks:{type:{set:function(e,t){if(!ie.radioValue&&"radio"===t&&re.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){
  var n,i,a=0,r=t&&t.match(xe);if(r&&1===e.nodeType)for(;n=r[a++];)i=re.propFix[n]||n,re.expr.match.bool.test(n)&&(e[i]=!1),e.removeAttribute(n)}}),lt={set:function(e,t,n){return t===!1?re.removeAttr(e,n):e.setAttribute(n,n),n}},re.each(re.expr.match.bool.source.match(/\w+/g),function(e,t){var n=dt[t]||re.find.attr;dt[t]=function(e,t,i){var a,r;return i||(r=dt[t],dt[t]=a,a=null!=n(e,t,i)?t.toLowerCase():null,dt[t]=r),a}});var ut=/^(?:input|select|textarea|button)$/i,ct=/^(?:a|area)$/i;re.fn.extend({prop:function(e,t){return Ce(this,re.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[re.propFix[e]||e]})}}),re.extend({prop:function(e,t,n){var i,a,r=e.nodeType;return 3!==r&&8!==r&&2!==r?(1===r&&re.isXMLDoc(e)||(t=re.propFix[t]||t,a=re.propHooks[t]),void 0!==n?a&&"set"in a&&void 0!==(i=a.set(e,n,t))?i:e[t]=n:a&&"get"in a&&null!==(i=a.get(e,t))?i:e[t]):void 0},propHooks:{tabIndex:{get:function(e){var t=re.find.attr(e,"tabindex");return t?parseInt(t,10):ut.test(e.nodeName)||ct.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),ie.optSelected||(re.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}}),re.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){re.propFix[this.toLowerCase()]=this});var pt=/[\t\r\n\f]/g;re.fn.extend({addClass:function(e){var t,n,i,a,r,o,s,l=0;if(re.isFunction(e))return this.each(function(t){re(this).addClass(e.call(this,t,B(this)))});if("string"==typeof e&&e)for(t=e.match(xe)||[];n=this[l++];)if(a=B(n),i=1===n.nodeType&&(" "+a+" ").replace(pt," ")){for(o=0;r=t[o++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");s=re.trim(i),a!==s&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,i,a,r,o,s,l=0;if(re.isFunction(e))return this.each(function(t){re(this).removeClass(e.call(this,t,B(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(xe)||[];n=this[l++];)if(a=B(n),i=1===n.nodeType&&(" "+a+" ").replace(pt," ")){for(o=0;r=t[o++];)for(;i.indexOf(" "+r+" ")>-1;)i=i.replace(" "+r+" "," ");s=re.trim(i),a!==s&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):re.isFunction(e)?this.each(function(n){re(this).toggleClass(e.call(this,n,B(this),t),t)}):this.each(function(){var t,i,a,r;if("string"===n)for(i=0,a=re(this),r=e.match(xe)||[];t=r[i++];)a.hasClass(t)?a.removeClass(t):a.addClass(t);else(void 0===e||"boolean"===n)&&(t=B(this),t&&ke.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||e===!1?"":ke.get(this,"__className__")||""))})},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+B(n)+" ").replace(pt," ").indexOf(t)>-1)return!0;return!1}});var ft=/\r/g;re.fn.extend({val:function(e){var t,n,i,a=this[0];return arguments.length?(i=re.isFunction(e),this.each(function(n){var a;1===this.nodeType&&(a=i?e.call(this,n,re(this).val()):e,null==a?a="":"number"==typeof a?a+="":re.isArray(a)&&(a=re.map(a,function(e){return null==e?"":e+""})),t=re.valHooks[this.type]||re.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,a,"value")||(this.value=a))})):a?(t=re.valHooks[a.type]||re.valHooks[a.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(a,"value"))?n:(n=a.value,"string"==typeof n?n.replace(ft,""):null==n?"":n)):void 0}}),re.extend({valHooks:{option:{get:function(e){return re.trim(e.value)}},select:{get:function(e){for(var t,n,i=e.options,a=e.selectedIndex,r="select-one"===e.type||0>a,o=r?null:[],s=r?a+1:i.length,l=0>a?s:r?a:0;s>l;l++)if(n=i[l],(n.selected||l===a)&&(ie.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!re.nodeName(n.parentNode,"optgroup"))){if(t=re(n).val(),r)return t;o.push(t)}return o},set:function(e,t){for(var n,i,a=e.options,r=re.makeArray(t),o=a.length;o--;)i=a[o],(i.selected=re.inArray(re.valHooks.option.get(i),r)>-1)&&(n=!0);return n||(e.selectedIndex=-1),r}}}}),re.each(["radio","checkbox"],function(){re.valHooks[this]={set:function(e,t){return re.isArray(t)?e.checked=re.inArray(re(e).val(),t)>-1:void 0}},ie.checkOn||(re.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var ht=/^(?:focusinfocus|focusoutblur)$/;re.extend(re.event,{trigger:function(t,n,i,a){var r,o,s,l,d,u,c,p=[i||U],f=ne.call(t,"type")?t.type:t,h=ne.call(t,"namespace")?t.namespace.split("."):[];if(o=s=i=i||U,3!==i.nodeType&&8!==i.nodeType&&!ht.test(f+re.event.triggered)&&(f.indexOf(".")>-1&&(h=f.split("."),f=h.shift(),h.sort()),d=f.indexOf(":")<0&&"on"+f,t=t[re.expando]?t:new re.Event(f,"object"==typeof t&&t),t.isTrigger=a?2:3,t.namespace=h.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),n=null==n?[t]:re.makeArray(n,[t]),c=re.event.special[f]||{},a||!c.trigger||c.trigger.apply(i,n)!==!1)){if(!a&&!c.noBubble&&!re.isWindow(i)){for(l=c.delegateType||f,ht.test(l+f)||(o=o.parentNode);o;o=o.parentNode)p.push(o),s=o;s===(i.ownerDocument||U)&&p.push(s.defaultView||s.parentWindow||e)}for(r=0;(o=p[r++])&&!t.isPropagationStopped();)t.type=r>1?l:c.bindType||f,u=(ke.get(o,"events")||{})[t.type]&&ke.get(o,"handle"),u&&u.apply(o,n),u=d&&o[d],u&&u.apply&&Se(o)&&(t.result=u.apply(o,n),t.result===!1&&t.preventDefault());return t.type=f,a||t.isDefaultPrevented()||c._default&&c._default.apply(p.pop(),n)!==!1||!Se(i)||d&&re.isFunction(i[f])&&!re.isWindow(i)&&(s=i[d],s&&(i[d]=null),re.event.triggered=f,i[f](),re.event.triggered=void 0,s&&(i[d]=s)),t.result}},simulate:function(e,t,n){var i=re.extend(new re.Event,n,{type:e,isSimulated:!0});re.event.trigger(i,null,t),i.isDefaultPrevented()&&n.preventDefault()}}),re.fn.extend({trigger:function(e,t){return this.each(function(){re.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?re.event.trigger(e,t,n,!0):void 0}}),re.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(e,t){re.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),re.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),ie.focusin="onfocusin"in e,ie.focusin||re.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){re.event.simulate(t,e.target,re.event.fix(e))};re.event.special[t]={setup:function(){var i=this.ownerDocument||this,a=ke.access(i,t);a||i.addEventListener(e,n,!0),ke.access(i,t,(a||0)+1)},teardown:function(){var i=this.ownerDocument||this,a=ke.access(i,t)-1;a?ke.access(i,t,a):(i.removeEventListener(e,n,!0),ke.remove(i,t))}}});var mt=e.location,gt=re.now(),vt=/\?/;re.parseJSON=function(e){return JSON.parse(e+"")},re.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(i){n=void 0}return(!n||n.getElementsByTagName("parsererror").length)&&re.error("Invalid XML: "+t),n};var wt=/#.*$/,yt=/([?&])_=[^&]*/,bt=/^(.*?):[ \t]*([^\r\n]*)$/gm,xt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Tt=/^(?:GET|HEAD)$/,Ct=/^\/\//,St={},kt={},Et="*/".concat("*"),$t=U.createElement("a");$t.href=mt.href,re.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:mt.href,type:"GET",isLocal:xt.test(mt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Et,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":re.parseJSON,"text xml":re.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?W(W(e,re.ajaxSettings),t):W(re.ajaxSettings,e)},ajaxPrefilter:F(St),ajaxTransport:F(kt),ajax:function(t,n){function i(t,n,i,s){var d,c,w,y,x,C=n;2!==b&&(b=2,l&&e.clearTimeout(l),a=void 0,o=s||"",T.readyState=t>0?4:0,d=t>=200&&300>t||304===t,i&&(y=G(p,T,i)),y=V(p,y,T,d),d?(p.ifModified&&(x=T.getResponseHeader("Last-Modified"),x&&(re.lastModified[r]=x),x=T.getResponseHeader("etag"),x&&(re.etag[r]=x)),204===t||"HEAD"===p.type?C="nocontent":304===t?C="notmodified":(C=y.state,c=y.data,w=y.error,d=!w)):(w=C,(t||!C)&&(C="error",0>t&&(t=0))),T.status=t,T.statusText=(n||C)+"",d?m.resolveWith(f,[c,C,T]):m.rejectWith(f,[T,C,w]),T.statusCode(v),v=void 0,u&&h.trigger(d?"ajaxSuccess":"ajaxError",[T,p,d?c:w]),g.fireWith(f,[T,C]),u&&(h.trigger("ajaxComplete",[T,p]),--re.active||re.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var a,r,o,s,l,d,u,c,p=re.ajaxSetup({},n),f=p.context||p,h=p.context&&(f.nodeType||f.jquery)?re(f):re.event,m=re.Deferred(),g=re.Callbacks("once memory"),v=p.statusCode||{},w={},y={},b=0,x="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!s)for(s={};t=bt.exec(o);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?o:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=y[n]=y[n]||e,w[e]=t),this},overrideMimeType:function(e){return b||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>b)for(t in e)v[t]=[v[t],e[t]];else T.always(e[T.status]);return this},abort:function(e){var t=e||x;return a&&a.abort(t),i(0,t),this}};if(m.promise(T).complete=g.add,T.success=T.done,T.error=T.fail,p.url=((t||p.url||mt.href)+"").replace(wt,"").replace(Ct,mt.protocol+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=re.trim(p.dataType||"*").toLowerCase().match(xe)||[""],null==p.crossDomain){d=U.createElement("a");try{d.href=p.url,d.href=d.href,p.crossDomain=$t.protocol+"//"+$t.host!=d.protocol+"//"+d.host}catch(C){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=re.param(p.data,p.traditional)),q(St,p,n,T),2===b)return T;u=re.event&&p.global,u&&0===re.active++&&re.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Tt.test(p.type),r=p.url,p.hasContent||(p.data&&(r=p.url+=(vt.test(r)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=yt.test(r)?r.replace(yt,"$1_="+gt++):r+(vt.test(r)?"&":"?")+"_="+gt++)),p.ifModified&&(re.lastModified[r]&&T.setRequestHeader("If-Modified-Since",re.lastModified[r]),re.etag[r]&&T.setRequestHeader("If-None-Match",re.etag[r])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&T.setRequestHeader("Content-Type",p.contentType),T.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Et+"; q=0.01":""):p.accepts["*"]);for(c in p.headers)T.setRequestHeader(c,p.headers[c]);if(p.beforeSend&&(p.beforeSend.call(f,T,p)===!1||2===b))return T.abort();x="abort";for(c in{success:1,error:1,complete:1})T[c](p[c]);if(a=q(kt,p,n,T)){if(T.readyState=1,u&&h.trigger("ajaxSend",[T,p]),2===b)return T;p.async&&p.timeout>0&&(l=e.setTimeout(function(){T.abort("timeout")},p.timeout));try{b=1,a.send(w,i)}catch(C){if(!(2>b))throw C;i(-1,C)}}else i(-1,"No Transport");return T},getJSON:function(e,t,n){return re.get(e,t,n,"json")},getScript:function(e,t){return re.get(e,void 0,t,"script")}}),re.each(["get","post"],function(e,t){re[t]=function(e,n,i,a){return re.isFunction(n)&&(a=a||i,i=n,n=void 0),re.ajax(re.extend({url:e,type:t,dataType:a,data:n,success:i},re.isPlainObject(e)&&e))}}),re._evalUrl=function(e){return re.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},re.fn.extend({wrapAll:function(e){var t;return re.isFunction(e)?this.each(function(t){re(this).wrapAll(e.call(this,t))}):(this[0]&&(t=re(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return re.isFunction(e)?this.each(function(t){re(this).wrapInner(e.call(this,t))}):this.each(function(){var t=re(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=re.isFunction(e);return this.each(function(n){re(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){re.nodeName(this,"body")||re(this).replaceWith(this.childNodes)}).end()}}),re.expr.filters.hidden=function(e){return!re.expr.filters.visible(e)},re.expr.filters.visible=function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0};var At=/%20/g,Pt=/\[\]$/,Dt=/\r?\n/g,Mt=/^(?:submit|button|image|reset|file)$/i,It=/^(?:input|select|textarea|keygen)/i;re.param=function(e,t){var n,i=[],a=function(e,t){t=re.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=re.ajaxSettings&&re.ajaxSettings.traditional),re.isArray(e)||e.jquery&&!re.isPlainObject(e))re.each(e,function(){a(this.name,this.value)});else for(n in e)X(n,e[n],t,a);return i.join("&").replace(At,"+")},re.fn.extend({serialize:function(){return re.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=re.prop(this,"elements");return e?re.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!re(this).is(":disabled")&&It.test(this.nodeName)&&!Mt.test(e)&&(this.checked||!je.test(e))}).map(function(e,t){var n=re(this).val();return null==n?null:re.isArray(n)?re.map(n,function(e){return{name:t.name,value:e.replace(Dt,"\r\n")}}):{name:t.name,value:n.replace(Dt,"\r\n")}}).get()}}),re.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(t){}};var jt={0:200,1223:204},zt=re.ajaxSettings.xhr();ie.cors=!!zt&&"withCredentials"in zt,ie.ajax=zt=!!zt,re.ajaxTransport(function(t){var n,i;return ie.cors||zt&&!t.crossDomain?{send:function(a,r){var o,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)s[o]=t.xhrFields[o];t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||a["X-Requested-With"]||(a["X-Requested-With"]="XMLHttpRequest");for(o in a)s.setRequestHeader(o,a[o]);n=function(e){return function(){n&&(n=i=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?r(0,"error"):r(s.status,s.statusText):r(jt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),i=s.onerror=n("error"),void 0!==s.onabort?s.onabort=i:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout(function(){n&&i()})},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(l){if(n)throw l}},abort:function(){n&&n()}}:void 0}),re.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return re.globalEval(e),e}}}),re.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),re.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(i,a){t=re("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&a("error"===e.type?404:200,e.type)}),U.head.appendChild(t[0])},abort:function(){n&&n()}}}});var Rt=[],Lt=/(=)\?(?=&|$)|\?\?/;re.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Rt.pop()||re.expando+"_"+gt++;return this[e]=!0,e}}),re.ajaxPrefilter("json jsonp",function(t,n,i){var a,r,o,s=t.jsonp!==!1&&(Lt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Lt.test(t.data)&&"data");return s||"jsonp"===t.dataTypes[0]?(a=t.jsonpCallback=re.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Lt,"$1"+a):t.jsonp!==!1&&(t.url+=(vt.test(t.url)?"&":"?")+t.jsonp+"="+a),t.converters["script json"]=function(){return o||re.error(a+" was not called"),o[0]},t.dataTypes[0]="json",r=e[a],e[a]=function(){o=arguments},i.always(function(){void 0===r?re(e).removeProp(a):e[a]=r,t[a]&&(t.jsonpCallback=n.jsonpCallback,Rt.push(a)),o&&re.isFunction(r)&&r(o[0]),o=r=void 0}),"script"):void 0}),ie.createHTMLDocument=function(){var e=U.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),re.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||(ie.createHTMLDocument?U.implementation.createHTMLDocument(""):U);var i=he.exec(e),a=!n&&[];return i?[t.createElement(i[1])]:(i=p([e],t,a),a&&a.length&&re(a).remove(),re.merge([],i.childNodes))};var Ht=re.fn.load;re.fn.load=function(e,t,n){if("string"!=typeof e&&Ht)return Ht.apply(this,arguments);var i,a,r,o=this,s=e.indexOf(" ");return s>-1&&(i=re.trim(e.slice(s)),e=e.slice(0,s)),re.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(a="POST"),o.length>0&&re.ajax({url:e,type:a||"GET",dataType:"html",data:t}).done(function(e){r=arguments,o.html(i?re("<div>").append(re.parseHTML(e)).find(i):e)}).always(n&&function(e,t){o.each(function(){n.apply(o,r||[e.responseText,t,e])})}),this},re.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){re.fn[t]=function(e){return this.on(t,e)}}),re.expr.filters.animated=function(e){return re.grep(re.timers,function(t){return e===t.elem}).length},re.offset={setOffset:function(e,t,n){var i,a,r,o,s,l,d,u=re.css(e,"position"),c=re(e),p={};"static"===u&&(e.style.position="relative"),s=c.offset(),r=re.css(e,"top"),l=re.css(e,"left"),d=("absolute"===u||"fixed"===u)&&(r+l).indexOf("auto")>-1,d?(i=c.position(),o=i.top,a=i.left):(o=parseFloat(r)||0,a=parseFloat(l)||0),re.isFunction(t)&&(t=t.call(e,n,re.extend({},s))),null!=t.top&&(p.top=t.top-s.top+o),null!=t.left&&(p.left=t.left-s.left+a),"using"in t?t.using.call(e,p):c.css(p)}},re.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){re.offset.setOffset(this,e,t)});var t,n,i=this[0],a={top:0,left:0},r=i&&i.ownerDocument;return r?(t=r.documentElement,re.contains(t,i)?(a=i.getBoundingClientRect(),n=Y(r),{top:a.top+n.pageYOffset-t.clientTop,left:a.left+n.pageXOffset-t.clientLeft}):a):void 0},position:function(){if(this[0]){var e,t,n=this[0],i={top:0,left:0};return"fixed"===re.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),re.nodeName(e[0],"html")||(i=e.offset()),i.top+=re.css(e[0],"borderTopWidth",!0),i.left+=re.css(e[0],"borderLeftWidth",!0)),{top:t.top-i.top-re.css(n,"marginTop",!0),left:t.left-i.left-re.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===re.css(e,"position");)e=e.offsetParent;return e||Je})}}),re.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;re.fn[e]=function(i){return Ce(this,function(e,i,a){var r=Y(e);return void 0===a?r?r[t]:e[i]:void(r?r.scrollTo(n?r.pageXOffset:a,n?a:r.pageYOffset):e[i]=a)},e,i,arguments.length)}}),re.each(["top","left"],function(e,t){re.cssHooks[t]=$(ie.pixelPosition,function(e,n){return n?(n=E(e,t),Ue.test(n)?re(e).position()[t]+"px":n):void 0})}),re.each({Height:"height",Width:"width"},function(e,t){re.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,i){re.fn[i]=function(i,a){var r=arguments.length&&(n||"boolean"!=typeof i),o=n||(i===!0||a===!0?"margin":"border");return Ce(this,function(t,n,i){var a;return re.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(a=t.documentElement,Math.max(t.body["scroll"+e],a["scroll"+e],t.body["offset"+e],a["offset"+e],a["client"+e])):void 0===i?re.css(t,n,o):re.style(t,n,i,o)},t,r?i:void 0,r,null)}})}),re.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},size:function(){return this.length}}),re.fn.andSelf=re.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return re});var Nt=e.jQuery,Ot=e.$;return re.noConflict=function(t){return e.$===re&&(e.$=Ot),t&&e.jQuery===re&&(e.jQuery=Nt),re},t||(e.jQuery=e.$=re),re}),function(e,t){"use strict";e.rails!==t&&e.error("jquery-ujs has already been loaded!");var n,i=e(document);e.rails=n={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]",buttonClickSelector:"button[data-remote]:not([form]):not(form button), button[data-confirm]:not([form]):not(form button)",inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form",formInputClickSelector:"form input[type=submit], form input[type=image], form button[type=submit], form button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])",disableSelector:"input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled",enableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled",requiredInputSelector:"input[name][required]:not([disabled]), textarea[name][required]:not([disabled])",fileInputSelector:"input[type=file]:not([disabled])",linkDisableSelector:"a[data-disable-with], a[data-disable]",buttonDisableSelector:"button[data-remote][data-disable-with], button[data-remote][data-disable]",csrfToken:function(){return e("meta[name=csrf-token]").attr("content")},csrfParam:function(){return e("meta[name=csrf-param]").attr("content")},CSRFProtection:function(e){var t=n.csrfToken();t&&e.setRequestHeader("X-CSRF-Token",t)},refreshCSRFTokens:function(){e('form input[name="'+n.csrfParam()+'"]').val(n.csrfToken())},fire:function(t,n,i){var a=e.Event(n);return t.trigger(a,i),a.result!==!1},confirm:function(e){return confirm(e)},ajax:function(t){return e.ajax(t)},href:function(e){return e[0].href},isRemote:function(e){return e.data("remote")!==t&&e.data("remote")!==!1},handleRemote:function(i){var a,r,o,s,l,d;if(n.fire(i,"ajax:before")){if(s=i.data("with-credentials")||null,l=i.data("type")||e.ajaxSettings&&e.ajaxSettings.dataType,i.is("form")){a=i.data("ujs:submit-button-formmethod")||i.attr("method"),r=i.data("ujs:submit-button-formaction")||i.attr("action"),o=e(i[0]).serializeArray();var u=i.data("ujs:submit-button");u&&(o.push(u),i.data("ujs:submit-button",null)),i.data("ujs:submit-button-formmethod",null),i.data("ujs:submit-button-formaction",null)}else i.is(n.inputChangeSelector)?(a=i.data("method"),r=i.data("url"),o=i.serialize(),i.data("params")&&(o=o+"&"+i.data("params"))):i.is(n.buttonClickSelector)?(a=i.data("method")||"get",r=i.data("url"),o=i.serialize(),i.data("params")&&(o=o+"&"+i.data("params"))):(a=i.data("method"),r=n.href(i),o=i.data("params")||null);return d={type:a||"GET",data:o,dataType:l,beforeSend:function(e,a){return a.dataType===t&&e.setRequestHeader("accept","*/*;q=0.5, "+a.accepts.script),n.fire(i,"ajax:beforeSend",[e,a])?void i.trigger("ajax:send",e):!1},success:function(e,t,n){i.trigger("ajax:success",[e,t,n])},complete:function(e,t){i.trigger("ajax:complete",[e,t])},error:function(e,t,n){i.trigger("ajax:error",[e,t,n])},crossDomain:n.isCrossDomain(r)},s&&(d.xhrFields={withCredentials:s}),r&&(d.url=r),n.ajax(d)}return!1},isCrossDomain:function(e){var t=document.createElement("a");t.href=location.href;var n=document.createElement("a");try{return n.href=e,n.href=n.href,!((!n.protocol||":"===n.protocol)&&!n.host||t.protocol+"//"+t.host==n.protocol+"//"+n.host)}catch(i){return!0}},handleMethod:function(i){var a=n.href(i),r=i.data("method"),o=i.attr("target"),s=n.csrfToken(),l=n.csrfParam(),d=e('<form method="post" action="'+a+'"></form>'),u='<input name="_method" value="'+r+'" type="hidden" />';l===t||s===t||n.isCrossDomain(a)||(u+='<input name="'+l+'" value="'+s+'" type="hidden" />'),o&&d.attr("target",o),d.hide().append(u).appendTo("body"),d.submit()},formElements:function(t,n){return t.is("form")?e(t[0].elements).filter(n):t.find(n)},disableFormElements:function(t){n.formElements(t,n.disableSelector).each(function(){n.disableFormElement(e(this))})},disableFormElement:function(e){var n,i;n=e.is("button")?"html":"val",i=e.data("disable-with"),i!==t&&(e.data("ujs:enable-with",e[n]()),e[n](i)),e.prop("disabled",!0),e.data("ujs:disabled",!0)},enableFormElements:function(t){n.formElements(t,n.enableSelector).each(function(){n.enableFormElement(e(this))})},enableFormElement:function(e){var n=e.is("button")?"html":"val";e.data("ujs:enable-with")!==t&&(e[n](e.data("ujs:enable-with")),e.removeData("ujs:enable-with")),e.prop("disabled",!1),e.removeData("ujs:disabled")},allowAction:function(e){var t,i=e.data("confirm"),a=!1;if(!i)return!0;if(n.fire(e,"confirm")){try{a=n.confirm(i)}catch(r){(console.error||console.log).call(console,r.stack||r)}t=n.fire(e,"confirm:complete",[a])}return a&&t},blankInputs:function(t,n,i){var a,r,o,s,l=e(),d=n||"input,textarea",u=t.find(d),c={};return u.each(function(){a=e(this),a.is("input[type=radio]")?(s=a.attr("name"),c[s]||(0===t.find('input[type=radio]:checked[name="'+s+'"]').length&&(o=t.find('input[type=radio][name="'+s+'"]'),l=l.add(o)),c[s]=s)):(r=a.is("input[type=checkbox],input[type=radio]")?a.is(":checked"):!!a.val(),r===i&&(l=l.add(a)))}),l.length?l:!1},nonBlankInputs:function(e,t){return n.blankInputs(e,t,!0)},stopEverything:function(t){return e(t.target).trigger("ujs:everythingStopped"),t.stopImmediatePropagation(),!1},disableElement:function(e){var i=e.data("disable-with");i!==t&&(e.data("ujs:enable-with",e.html()),e.html(i)),e.bind("click.railsDisable",function(e){return n.stopEverything(e)}),e.data("ujs:disabled",!0)},enableElement:function(e){e.data("ujs:enable-with")!==t&&(e.html(e.data("ujs:enable-with")),e.removeData("ujs:enable-with")),e.unbind("click.railsDisable"),e.removeData("ujs:disabled")}},n.fire(i,"rails:attachBindings")&&(e.ajaxPrefilter(function(e,t,i){e.crossDomain||n.CSRFProtection(i)}),e(window).on("pageshow.rails",function(){e(e.rails.enableSelector).each(function(){var t=e(this);t.data("ujs:disabled")&&e.rails.enableFormElement(t)}),e(e.rails.linkDisableSelector).each(function(){var t=e(this);t.data("ujs:disabled")&&e.rails.enableElement(t)})}),i.delegate(n.linkDisableSelector,"ajax:complete",function(){n.enableElement(e(this))}),i.delegate(n.buttonDisableSelector,"ajax:complete",function(){n.enableFormElement(e(this))}),i.delegate(n.linkClickSelector,"click.rails",function(t){var i=e(this),a=i.data("method"),r=i.data("params"),o=t.metaKey||t.ctrlKey;if(!n.allowAction(i))return n.stopEverything(t);if(!o&&i.is(n.linkDisableSelector)&&n.disableElement(i),n.isRemote(i)){if(o&&(!a||"GET"===a)&&!r)return!0;var s=n.handleRemote(i);return s===!1?n.enableElement(i):s.fail(function(){n.enableElement(i)}),!1}return a?(n.handleMethod(i),!1):void 0}),i.delegate(n.buttonClickSelector,"click.rails",function(t){var i=e(this);if(!n.allowAction(i)||!n.isRemote(i))return n.stopEverything(t);i.is(n.buttonDisableSelector)&&n.disableFormElement(i);var a=n.handleRemote(i);return a===!1?n.enableFormElement(i):a.fail(function(){n.enableFormElement(i)}),!1}),i.delegate(n.inputChangeSelector,"change.rails",function(t){var i=e(this);return n.allowAction(i)&&n.isRemote(i)?(n.handleRemote(i),!1):n.stopEverything(t)}),i.delegate(n.formSubmitSelector,"submit.rails",function(i){var a,r,o=e(this),s=n.isRemote(o);if(!n.allowAction(o))return n.stopEverything(i);if(o.attr("novalidate")===t)if(o.data("ujs:formnovalidate-button")===t){if(a=n.blankInputs(o,n.requiredInputSelector,!1),a&&n.fire(o,"ajax:aborted:required",[a]))return n.stopEverything(i)}else o.data("ujs:formnovalidate-button",t);if(s){if(r=n.nonBlankInputs(o,n.fileInputSelector)){setTimeout(function(){n.disableFormElements(o)},13);var l=n.fire(o,"ajax:aborted:file",[r]);return l||setTimeout(function(){n.enableFormElements(o)},13),l}return n.handleRemote(o),!1}setTimeout(function(){n.disableFormElements(o)},13)}),i.delegate(n.formInputClickSelector,"click.rails",function(t){var i=e(this);if(!n.allowAction(i))return n.stopEverything(t);var a=i.attr("name"),r=a?{name:a,value:i.val()}:null,o=i.closest("form");0===o.length&&(o=e("#"+i.attr("form"))),o.data("ujs:submit-button",r),o.data("ujs:formnovalidate-button",i.attr("formnovalidate")),o.data("ujs:submit-button-formaction",i.attr("formaction")),o.data("ujs:submit-button-formmethod",i.attr("formmethod"))}),i.delegate(n.formSubmitSelector,"ajax:send.rails",function(t){this===t.target&&n.disableFormElements(e(this))}),i.delegate(n.formSubmitSelector,"ajax:complete.rails",function(t){this===t.target&&n.enableFormElements(e(this))}),e(function(){n.refreshCSRFTokens()}))}(jQuery),$(document).ready(function(){function e(){function e(){1==o.activeIndex?($(".home-main-icons").addClass("show-main-icons"),$(".header").addClass("hide-header-icons")):($(".home-main-icons").removeClass("show-main-icons"),$(".header").removeClass("hide-header-icons"))}function t(){var e=$("#page-content").height()-60,t=$("#page-content").width(),n=$(".cover-page-content").height()-60,i=$(".cover-page-content").width();$(".cover-page").css("height",e),$(".cover-page").css("width",t),$(".cover-page-content").css("margin-left",i/2*-1),$(".cover-page-content").css("margin-top",n/2*-1-40);var a=$(window).width(),r=$(window).height()-60,o=-$(".cover-center").height()/2,s=-$(".cover-center").width()/2;$(".cover-screen").css("width",a),$(".cover-screen").css("height",r),$(".cover-screen .overlay").css("width",a),$(".cover-screen .overlay").css("height",r),$(".cover-center").css("margin-left",s),$(".cover-center").css("margin-top",o),$(".cover-left").css("margin-top",o),$(".cover-right").css("margin-top",o)}function n(){var e=$(".lockscreen-header").height(),t=$(".lockscreen-home").height(),n=$(window).height()-60,i=n-(t+e);$(".lockscreen-notifications").css("height",i-160)}function i(){var e=$("#page-content").height(),t=$("#page-content").width(),n=e-220,i=n/5,a=n/4,r=n/3,o=t/5,s=t/4,l=t/3,d=i/5,u=a/4,c=r/3;$(".five-rows a").css("height",i),$(".five-rows a").css("padding-top",i/2-d),$(".five-rows strong").css("margin-top",i/2-d),$(".four-rows a").css("height",a),$(".four-rows a").css("padding-top",a/2-u),$(".four-rows strong").css("margin-top",a/2-u),$(".three-rows a").css("height",r),$(".three-rows a").css("padding-top",r/2-c),$(".three-rows strong").css("margin-top",r/2-c),$(".five-columns a").css("width",o),$(".four-columns a").css("width",s),$(".three-columns a").css("width",l);var p=-1*$(".home-intro").width(),f=-1*$(".home-intro").height();$(".home-intro").css("margin-left",p/2),$(".home-intro").css("margin-top",f/2);var h=-1*$(".home-outro").width(),m=-1*$(".home-outro").height();$(".home-outro").css("margin-left",h/2),$(".home-outro").css("margin-top",m/2),$(".home-slide-icons a").find("strong").length>0&&$(".home-slide-icons a i").css("pointer-events","none"),$(".home-social a").hover(function(){$(this).addClass("hover-icon-effect")},function(){$(this).removeClass("hover-icon-effect")}),$(".home-slide-icons a").hover(function(){$(this).find("i").addClass("hover-icon-effect"),$(this).find("strong").addClass("hover-icon-effect")},function(){$(this).find("i").removeClass("hover-icon-effect"),$(this).find("strong").removeClass("hover-icon-effect")})}function a(){var e=$(window).width(),t=$(window).height();$(".map-fullscreen iframe").css("width",e),$(".map-fullscreen iframe").css("height",t)}$(".show-left-sidebar").click(function(){$(".sidebar-scroll-left").toggleClass("perspective-left"),$(".sidebar-left").toggleClass("perspective-2-left"),$(".page-content, .header, .footer-menu, .material-menu").toggleClass("perspective-3-left"),$(".share-bottom-tap-close").removeClass("share-bottom-tap-close-active"),$(".share-bottom").removeClass("active-share-bottom"),$(".show-header-menu, .show-modal-menu").toggleClass("no-pointer"),$(".back-to-top-badge").removeClass("back-to-top-badge-visible"),$(".header-menu").toggleClass("no-visibility"),$(".header-menu-overlay").hide(),$(".header-menu").removeClass("header-menu-active"),$(".show-header-menu").removeClass("header-rotate")}),$(".show-right-sidebar").click(function(){$(".sidebar-scroll-right").toggleClass("perspective-right"),
  $(".sidebar-right").toggleClass("perspective-2-right"),$(".page-content, .header, .footer-menu, .material-menu").toggleClass("perspective-3-right"),$(".share-bottom-tap-close").removeClass("share-bottom-tap-close-active"),$(".share-bottom").removeClass("active-share-bottom"),$(".show-header-menu, .show-modal-menu").toggleClass("no-pointer"),$(".back-to-top-badge").removeClass("back-to-top-badge-visible"),$(".header-menu").toggleClass("no-visibility"),$(".header-menu-overlay").hide(),$(".header-menu").removeClass("header-menu-active"),$(".show-header-menu").removeClass("header-rotate")}),$(".close-sidebar, #page-content, .menu-item, .submenu-item").not(".show-submenu").click(function(){$(".sidebar-scroll-left").removeClass("perspective-left"),$(".sidebar-left").removeClass("perspective-2-left"),$(".page-content, .header").removeClass("perspective-3-left"),$(".sidebar-scroll-right").removeClass("perspective-right"),$(".sidebar-right").removeClass("perspective-2-right"),$(".page-content, .header").removeClass("perspective-3-right"),$(".footer-menu, .material-menu").removeClass("perspective-3-right"),$(".footer-menu, .material-menu").removeClass("perspective-3-left"),$(".show-header-menu, .show-modal-menu").removeClass("no-pointer"),$(".header-menu").removeClass("no-visibility")});var r=$(".submenu-active").parent().find(".submenu a").length;$(".submenu-active").toggleClass("submenu-active submenu-active-"+r),$(".show-submenu").click(function(){var e=$(this).parent().find(".submenu a").length;return $(this).parent().find(".submenu").toggleClass("submenu-active submenu-active-"+e),$(this).toggleClass("submenu-active"),!1}),$(".show-header-menu, .close-header-menu").click(function(){$(".header-menu").toggleClass("header-menu-active"),$(".header-menu-overlay").show(),$(".show-header-menu").toggleClass("header-rotate")}),$(".header-menu a").click(function(){$(".header-menu-overlay").hide(),$(".header-menu").removeClass("header-menu-active"),$(".show-header-menu").toggleClass("header-rotate")}),$(".close-header-menu, .header-menu-overlay").click(function(){$(".header-menu-overlay").hide(),$(".header-menu").removeClass("header-menu-active"),$(".show-header-menu").toggleClass("header-rotate")}),$(".material-menu-deploy").click(function(){$(".material-menu-background").addClass("mm-bg"),$(".material-menu-deploy").css("z-index","99"),$(this).parent().find(".material-menu-close").addClass("mm-c"),$(this).parent().find(".material-menu-1").addClass("mm-1"),$(this).parent().find(".material-menu-2").addClass("mm-2"),$(this).parent().find(".material-menu-3").addClass("mm-3"),$(this).parent().find(".material-menu-4").addClass("mm-4"),$(this).parent().find(".material-menu-5").addClass("mm-5"),$(this).parent().find(".material-menu-6").addClass("mm-6")}),$(".material-menu-close, .material-menu-background, .mm").click(function(){$(".material-menu-background").removeClass("mm-bg"),setTimeout(function(){$(".material-menu-deploy").css("z-index","999")},350),$(this).parent().find(".material-menu-close").removeClass("mm-c"),$(this).parent().find(".material-menu-6").removeClass("mm-6"),$(this).parent().find(".material-menu-5").removeClass("mm-5"),$(this).parent().find(".material-menu-4").removeClass("mm-4"),$(this).parent().find(".material-menu-3").removeClass("mm-3"),$(this).parent().find(".material-menu-2").removeClass("mm-2"),$(this).parent().find(".material-menu-1").removeClass("mm-1")}),$(".show-modal-menu, .close-modal-menu, .modal-menu-background, .modal-menu a").click(function(){$(".modal-menu").toggleClass("active-modal-menu"),$(".modal-menu-background").toggleClass("active-modal-menu-background"),$(".show-modal-menu").toggleClass("rotate-45")}),$(function(){FastClick.attach(document.body)}),$(function(){$(".preload-image").lazyload({threshold:100,effect:"fadeIn",container:$("#page-content-scroll")})});var o=(new Swiper(".store-slider",{autoplay:3e3}),new Swiper(".store-slider-2",{autoplay:3e3}),new Swiper(".single-item",{autoplay:3e3}),new Swiper(".news-slider"),new Swiper(".homepage-slider",{autoplay:3e3}),new Swiper(".quote-slider",{autoplay:3e3}),new Swiper(".coverpage-slider",{autoplay:3e3}),new Swiper(".homepage-cover-slider",{autoplay:!1,slidesPerView:1,onSlideChangeStart:e,nextButton:".next-home-slider",prevButton:".prev-home-slider"}));new Swiper(".category-slider",{pagination:".swiper-pagination",paginationClickable:!0,slidesPerView:5,spaceBetween:20,breakpoints:{1024:{slidesPerView:6,spaceBetween:20},768:{slidesPerView:5,spaceBetween:10},640:{slidesPerView:3,spaceBetween:5},320:{slidesPerView:3,spaceBetween:5}}}),new Swiper(".store-thumbnails",{pagination:".swiper-pagination",paginationClickable:!0,slidesPerView:5,spaceBetween:20,breakpoints:{1024:{slidesPerView:6,spaceBetween:20},768:{slidesPerView:5,spaceBetween:10},640:{slidesPerView:2,spaceBetween:5},320:{slidesPerView:2,spaceBetween:5}}}),new Swiper(".circle-slider",{pagination:".swiper-pagination",paginationClickable:!0,slidesPerView:3,spaceBetween:20,breakpoints:{1024:{slidesPerView:3,spaceBetween:20},768:{slidesPerView:2,spaceBetween:10},640:{slidesPerView:1,spaceBetween:5},320:{slidesPerView:1,spaceBetween:5}}}),new Swiper(".coverflow-thumbnails",{pagination:".swiper-pagination",effect:"coverflow",autoplay:3e3,autoplayDisableOnInteraction:!1,loop:!0,grabCursor:!0,centeredSlides:!0,slidesPerView:"auto",coverflow:{rotate:60,stretch:-60,depth:400,modifier:1,slideShadows:!1}}),new Swiper(".coverflow-slider",{pagination:".swiper-pagination",effect:"coverflow",autoplay:3e3,autoplayDisableOnInteraction:!1,loop:!0,grabCursor:!0,centeredSlides:!0,slidesPerView:"auto",coverflow:{rotate:60,stretch:-60,depth:400,modifier:1,slideShadows:!1}}),new Swiper(".staff-slider",{nextButton:".next-staff-slider",prevButton:".prev-staff-slider",autoplay:3e3,autoplayDisableOnInteraction:!1,slidesPerView:3,spaceBetween:20,breakpoints:{1024:{slidesPerView:3,spaceBetween:20},768:{slidesPerView:2,spaceBetween:10},640:{slidesPerView:1,spaceBetween:5}}});$(".switch-1").click(function(){return $(this).toggleClass("switch-1-on"),!1}),$(".switch-2").click(function(){return $(this).toggleClass("switch-2-on"),!1}),$(".switch-3").click(function(){return $(this).toggleClass("switch-3-on"),!1}),$(".switch, .switch-icon").click(function(){return $(this).parent().find(".switch-box-content").slideToggle(250),$(this).parent().find(".switch-box-subtitle").slideToggle(250),!1}),$(".toggle-title").click(function(){return $(this).parent().find(".toggle-content").slideToggle(250),$(this).find("i").toggleClass("rotate-toggle"),!1}),$(".accordion").find(".accordion-toggle").click(function(){$(this).next().slideDown(250),$(".accordion").find("i").removeClass("rotate-180"),$(this).find("i").addClass("rotate-180"),$(".accordion-content").not($(this).next()).slideUp(250)}),$("ul.tabs li").click(function(){var e=$(this).attr("data-tab");$("ul.tabs li").removeClass("active-tab"),$(".tab-content").slideUp(250),$(this).addClass("active-tab"),$("#"+e).slideToggle(250)}),$(".static-notification-close").click(function(){return $(this).parent().slideUp(250),!1}),$(".tap-dismiss").click(function(){return $(this).slideUp(250),!1}),function(e,t,n){if(n in t&&t[n]){var i,a=e.location,r=/^(a|html)$/i;e.addEventListener("click",function(e){for(i=e.target;!r.test(i.nodeName);)i=i.parentNode;"href"in i&&(i.href.indexOf("http")||~i.href.indexOf(a.host))&&(e.preventDefault(),a.href=i.href)},!1)}}(document,window.navigator,"standalone");var s={Android:function(){return navigator.userAgent.match(/Android/i)},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)},any:function(){return s.Android()||s.BlackBerry()||s.iOS()||s.Opera()||s.Windows()}};s.any()||($(".show-blackberry, .show-ios, .show-windows, .show-android").addClass("disabled"),$("#page-content-scroll").css("right","0px"),$(".show-no-detection").removeClass("disabled")),s.Android()&&($("head").append('<meta name="theme-color" content="#000000"> />'),$(".show-android").removeClass("disabled"),$(".show-blackberry, .show-ios, .show-windows").addClass("disabled"),$("#page-content-scroll, .sidebar-scroll").css("right","0px")),s.BlackBerry()&&($(".show-blackberry").removeClass("disabled"),$(".show-android, .show-ios, .show-windows").addClass("disabled"),$("#page-content-scroll, .sidebar-scroll").css("right","0px")),s.iOS()&&($(".show-ios").removeClass("disabled"),$(".show-blackberry, .show-android, .show-windows").addClass("disabled"),$("#page-content-scroll, .sidebar-scroll").css("right","0px")),s.Windows()&&($(".show-windows").removeClass("disabled"),$(".show-blackberry, .show-ios, .show-android").addClass("disabled"),$("#page-content-scroll, .sidebar-scroll").css("right","0px")),$(".gallery a, .show-gallery").swipebox();var l=$(window).width();768>l&&$(".gallery-justified").justifiedGallery({rowHeight:80,maxRowHeight:370,margins:5,fixedHeight:!1}),l>768&&$(".gallery-justified").justifiedGallery({rowHeight:150,maxRowHeight:370,margins:5,fixedHeight:!1}),$(".adaptive-one").click(function(){return $(".portfolio-switch").removeClass("active-adaptive"),$(this).addClass("active-adaptive"),$(".portfolio-adaptive").removeClass("portfolio-adaptive-two portfolio-adaptive-three"),$(".portfolio-adaptive").addClass("portfolio-adaptive-one"),!1}),$(".adaptive-two").click(function(){return $(".portfolio-switch").removeClass("active-adaptive"),$(this).addClass("active-adaptive"),$(".portfolio-adaptive").removeClass("portfolio-adaptive-one portfolio-adaptive-three"),$(".portfolio-adaptive").addClass("portfolio-adaptive-two"),!1}),$(".adaptive-three").click(function(){return $(".portfolio-switch").removeClass("active-adaptive"),$(this).addClass("active-adaptive"),$(".portfolio-adaptive").removeClass("portfolio-adaptive-two portfolio-adaptive-one"),$(".portfolio-adaptive").addClass("portfolio-adaptive-three"),!1}),$(".reminder-check-square").click(function(){return $(this).toggleClass("reminder-check-square-selected"),!1}),$(".reminder-check-round").click(function(){return $(this).toggleClass("reminder-check-round-selected"),!1}),$(".checklist-square").click(function(){return $(this).toggleClass("checklist-square-selected"),!1}),$(".checklist-round").click(function(){return $(this).toggleClass("checklist-round-selected"),!1}),$(".tasklist-incomplete").click(function(){return $(this).removeClass("tasklist-incomplete"),$(this).addClass("tasklist-completed"),!1}),$(".tasklist-item").click(function(){return $(this).toggleClass("tasklist-completed"),!1}),$(".sitemap-box a").hover(function(){$(this).find("i").addClass("scale-hover")},function(){$(this).find("i").removeClass("scale-hover")}),$(".map-text, .overlay").click(function(){$(".map-text, .map-fullscreen .overlay").addClass("hide-map"),$(".deactivate-map").removeClass("hide-map")}),$(".deactivate-map").click(function(){$(".map-text, .map-fullscreen .overlay").removeClass("hide-map"),$(".deactivate-map").addClass("hide-map")}),$("#page-content-scroll").on("scroll",function(){var e=$("#page-content-scroll")[0].scrollHeight,t=$(this).scrollTop()<=200,n=$(this).scrollTop()>=0;$(this).scrollTop()>=e-($(window).height()+100);1==t?$(".back-to-top-badge").removeClass("back-to-top-badge-visible"):1==n&&$(".back-to-top-badge").addClass("back-to-top-badge-visible")}),$(".back-to-top-badge, .back-to-top").click(function(e){e.preventDefault(),$("#page-content-scroll").animate({scrollTop:0},250)});var d=new Date,u=d.getMonth()+1,c=d.getDate();10>u&&(u="0"+u),10>c&&(c="0"+c);var p=d.getFullYear()+"-"+u+"-"+c;$(".set-today").val(p),$(".adaptive-one").click(function(){return $(".portfolio-switch").removeClass("active-adaptive"),$(this).addClass("active-adaptive"),$(".portfolio-adaptive").removeClass("portfolio-adaptive-two portfolio-adaptive-three"),$(".portfolio-adaptive").addClass("portfolio-adaptive-one"),!1}),$(".adaptive-two").click(function(){return $(".portfolio-switch").removeClass("active-adaptive"),$(this).addClass("active-adaptive"),$(".portfolio-adaptive").removeClass("portfolio-adaptive-one portfolio-adaptive-three"),$(".portfolio-adaptive").addClass("portfolio-adaptive-two"),!1}),$(".adaptive-three").click(function(){return $(".portfolio-switch").removeClass("active-adaptive"),$(this).addClass("active-adaptive"),$(".portfolio-adaptive").removeClass("portfolio-adaptive-two portfolio-adaptive-one"),$(".portfolio-adaptive").addClass("portfolio-adaptive-three"),!1}),$(".show-wide-text").click(function(){return $(this).parent().find(".wide-text").slideToggle(200),!1}),$(".portfolio-close").click(function(){return $(this).parent().parent().find(".wide-text").slideToggle(200),!1}),$("body").append('<div class="share-bottom-tap-close"></div>'),$(".show-share-bottom, .show-share-box").click(function(){return $(".share-bottom-tap-close").addClass("share-bottom-tap-close-active"),$(".share-bottom").toggleClass("active-share-bottom"),!1}),$(".close-share-bottom, .share-bottom-tap-close").click(function(){return $(".share-bottom-tap-close").removeClass("share-bottom-tap-close-active"),$(".share-bottom").removeClass("active-share-bottom"),!1});var f="";$(".filter-category").click(function(){$(".portfolio-filter-categories a").removeClass("selected-filter"),$(this).addClass("selected-filter"),f=$(this).attr("data-rel"),$(".portfolio-filter-wrapper").slideDown(250),$(".portfolio-filter-wrapper div").not("."+f).delay(100).slideUp(250),setTimeout(function(){$("."+f).slideDown(250),$(".portfolio-filter-wrapper").slideDown(250)},0)}),$("body").hasClass("has-footer-menu")&&$(".back-to-top-badge").addClass("over-footer-menu");i(),t(),a(),n(),$(window).resize(function(){t(),i(),a(),n()}),$(".error-page-layout-switch").click(function(){$(".cover-page-content").toggleClass("unboxed-layout, boxed-layout"),t()}),$(".landing-homepage").css("min-height",$(window).height()),$(function(){$(".countdown-class").countdown({date:"June 7, 2087 15:03:26"})}),$("#copyright-year")[0]&&document.getElementById("copyright-year").appendChild(document.createTextNode((new Date).getFullYear())),$("#copyright-year-2")[0]&&document.getElementById("copyright-year-2").appendChild(document.createTextNode((new Date).getFullYear())),$(function(){$(".thumb-layout-page a").slice(0,5).show(),$(".load-more-thumbs").click(function(e){e.preventDefault(),$(".thumb-layout-page a:hidden").slice(0,5).show(0),0==$(".thumb-layout-page a:hidden").length&&$(this).hide()})}),$(function(){$(".card-large-layout-page .card-large-layout").slice(0,2).show(),$(".load-more-large-cards").click(function(e){e.preventDefault(),$(".card-large-layout-page .card-large-layout:hidden").slice(0,2).show(0),0==$(".card-large-layout-page div:hidden").length&&$(this).hide()})}),$(function(){$(".card-small-layout-page .card-small-layout").slice(0,3).show(),$(".load-more-small-cards").click(function(e){e.preventDefault(),$(".card-small-layout-page .card-small-layout:hidden").slice(0,3).show(0),0==$(".card-small-layout-page a:hidden").length&&$(this).hide()})}),$(".activate-tab-1").click(function(){return $("#tab-2, #tab-3").slideUp(250),$("#tab-1").slideDown(250),$(".home-tabs a").removeClass("active-home-tab"),$(".activate-tab-1").addClass("active-home-tab"),!1}),$(".activate-tab-2").click(function(){return $("#tab-1, #tab-3").slideUp(250),$("#tab-2").slideDown(250),$(".home-tabs a").removeClass("active-home-tab"),$(".activate-tab-2").addClass("active-home-tab"),!1}),$(".activate-tab-3").click(function(){return $("#tab-1, #tab-2").slideUp(250),$("#tab-3").slideDown(250),$(".home-tabs a").removeClass("active-home-tab"),$(".activate-tab-3").addClass("active-home-tab"),!1}),$(function(){$(".add-qty").on("click",function(){var e=$(this).closest("div").find(".qty"),t=parseInt(e.val());isNaN(t)||e.val(t+1)}),$(".substract-qty").on("click",function(){var e=$(this).closest("div").find(".qty"),t=parseInt(e.val());!isNaN(t)&&t>0&&e.val(t-1)})}),$(".remove-cart-item").click(function(){$(this).parent().parent().slideUp(250)}),void 0!=typeof window.sessionStorage&&(sessionStorage.getItem("enabled_cookie1")||($(".tutorial").show(),sessionStorage.setItem("enabled_cookie1",!0),sessionStorage.setItem("storedWhen",(new Date).getTime())));var h="false";jQuery(document).ready(function(e){function t(t){h="true";var n=e("#"+t).serialize();e.post(e("#"+t).attr("action"),n,function(){e("#"+t).hide(),e("#formSuccessMessageWrap").fadeIn(500)})}function n(n,i){e(".formValidationError").hide(),e(".fieldHasError").removeClass("fieldHasError"),e("#"+n+" .requiredField").each(function(a){if(""==e(this).val()||e(this).val()==e(this).attr("data-dummy"))return e(this).val(e(this).attr("data-dummy")),e(this).focus(),e(this).addClass("fieldHasError"),e("#"+e(this).attr("id")+"Error").fadeIn(300),!1;if(e(this).hasClass("requiredEmailField")){var r=/^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/,o="#"+e(this).attr("id");if(!r.test(e(o).val()))return e(o).focus(),e(o).addClass("fieldHasError"),e(o+"Error2").fadeIn(300),!1}"false"==h&&a==e("#"+n+" .requiredField").length-1&&t(n,i)})}e("#formSuccessMessageWrap").hide(0),e(".formValidationError").fadeOut(0),e('input[type="text"], input[type="password"], textarea').focus(function(){e(this).val()==e(this).attr("data-dummy")&&e(this).val("")}),e("input, textarea").blur(function(){""==e(this).val()&&e(this).val(e(this).attr("data-dummy"))}),e("#contactSubmitButton").click(function(){return n(e(this).attr("data-formId")),!1})}),new Date($.now());var m=new Date,g=m.getHours()+":"+("0"+m.getMinutes()).substr(-2);$(".lockscreen-header h3").html(g);var v=["January","February","March","April","May","June","July","August","September","October","November","December"],w=new Date,y=w.getDate(),b=w.getFullYear(),x=y,T=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"),C=T[new Date(x).getDay()];$(".lockscreen-header p").html(C+", "+y+"  "+v[w.getMonth()]+"  "+b),$(".phone-pad-1").click(function(){var e=$(".phone-dial").val();$(".phone-dial").val(e+"1")}),$(".phone-pad-2").click(function(){var e=$(".phone-dial").val();$(".phone-dial").val(e+"2")}),$(".phone-pad-3").click(function(){var e=$(".phone-dial").val();$(".phone-dial").val(e+"3")}),$(".phone-pad-4").click(function(){var e=$(".phone-dial").val();$(".phone-dial").val(e+"4")}),$(".phone-pad-5").click(function(){var e=$(".phone-dial").val();$(".phone-dial").val(e+"5")}),$(".phone-pad-6").click(function(){var e=$(".phone-dial").val();$(".phone-dial").val(e+"6")}),$(".phone-pad-7").click(function(){var e=$(".phone-dial").val();$(".phone-dial").val(e+"7")}),$(".phone-pad-8").click(function(){var e=$(".phone-dial").val();$(".phone-dial").val(e+"8")}),$(".phone-pad-9").click(function(){var e=$(".phone-dial").val();$(".phone-dial").val(e+"9")}),$(".phone-pad-0").click(function(){var e=$(".phone-dial").val();$(".phone-dial").val(e+"0")}),$(".phone-pad-star").click(function(){var e=$(".phone-dial").val();$(".phone-dial").val(e+"*")}),$(".phone-pad-hash").click(function(){var e=$(".phone-dial").val();$(".phone-dial").val(e+"#")}),$(".phone-call").click(function(){$(".dial-interface").toggleClass("scale-phone"),$(".call-interface").toggleClass("scale-phone"),$(this).toggleClass("rotate-phone")}),$(".phone-dial").click(function(){$(".phone-dial").val("")}),$(".contact-title").click(function(){$(this).parent().find(".contact-information").addClass("show-contact-information")}),$(".hide-contact-information").click(function(){$(".contact-information").removeClass("show-contact-information")})}setTimeout(e,0),$(function(){"use strict";var t={prefetch:!1,cacheLength:0,blacklist:".default-link",forms:"contactForm",onStart:{duration:600,render:function(e){e.addClass("is-exiting"),n.restartCSSAnimations(),$(".page-preloader").addClass("show-preloader"),$("#page-content, .landing-page").removeClass("show-containers")}},onReady:{duration:0,render:function(e,t){e.removeClass("is-exiting"),e.html(t),$(".page-preloader").addClass("show-preloader"),$("#page-content, .landing-page").removeClass("fadeIn")}},onAfter:function(){setTimeout(e,0),$(".page-preloader").removeClass("show-preloader"),$("#page-content, .landing-page").addClass("fadeIn show-containers")}},n=$("#page-transitions").smoothState(t).data("smoothState")}),$("#page-content, .landing-page").addClass("fadeIn show-containers")}),function(){!function(){"use strict";function e(t,i){function a(e,t){return function(){return e.apply(t,arguments)}}var r;if(i=i||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=i.touchBoundary||10,this.layer=t,this.tapDelay=i.tapDelay||200,this.tapTimeout=i.tapTimeout||700,!e.notNeeded(t)){for(var o=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],s=this,l=0,d=o.length;d>l;l++)s[o[l]]=a(s[o[l]],s);n&&(t.addEventListener("mouseover",this.onMouse,!0),t.addEventListener("mousedown",this.onMouse,!0),t.addEventListener("mouseup",this.onMouse,!0)),t.addEventListener("click",this.onClick,!0),t.addEventListener("touchstart",this.onTouchStart,!1),t.addEventListener("touchmove",this.onTouchMove,!1),t.addEventListener("touchend",this.onTouchEnd,!1),t.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(t.removeEventListener=function(e,n,i){var a=Node.prototype.removeEventListener;"click"===e?a.call(t,e,n.hijacked||n,i):a.call(t,e,n,i)},t.addEventListener=function(e,n,i){var a=Node.prototype.addEventListener;"click"===e?a.call(t,e,n.hijacked||(n.hijacked=function(e){e.propagationStopped||n(e)}),i):a.call(t,e,n,i)}),"function"==typeof t.onclick&&(r=t.onclick,t.addEventListener("click",function(e){r(e)},!1),t.onclick=null)}}var t=navigator.userAgent.indexOf("Windows Phone")>=0,n=navigator.userAgent.indexOf("Android")>0&&!t,i=/iP(ad|hone|od)/.test(navigator.userAgent)&&!t,a=i&&/OS 4_\d(_\d)?/.test(navigator.userAgent),r=i&&/OS [6-7]_\d/.test(navigator.userAgent),o=navigator.userAgent.indexOf("BB10")>0;e.prototype.needsClick=function(e){switch(e.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(e.disabled)return!0;break;case"input":if(i&&"file"===e.type||e.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(e.className)},e.prototype.needsFocus=function(e){switch(e.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!n;case"input":switch(e.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!e.disabled&&!e.readOnly;default:return/\bneedsfocus\b/.test(e.className)}},e.prototype.sendClick=function(e,t){var n,i;document.activeElement&&document.activeElement!==e&&document.activeElement.blur(),i=t.changedTouches[0],n=document.createEvent("MouseEvents"),n.initMouseEvent(this.determineEventType(e),!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),n.forwardedTouchEvent=!0,e.dispatchEvent(n)},e.prototype.determineEventType=function(e){return n&&"select"===e.tagName.toLowerCase()?"mousedown":"click"},e.prototype.focus=function(e){var t;i&&e.setSelectionRange&&0!==e.type.indexOf("date")&&"time"!==e.type&&"month"!==e.type?(t=e.value.length,e.setSelectionRange(t,t)):e.focus()},e.prototype.updateScrollParent=function(e){var t,n;if(t=e.fastClickScrollParent,!t||!t.contains(e)){n=e;do{if(n.scrollHeight>n.offsetHeight){t=n,e.fastClickScrollParent=n;break}n=n.parentElement}while(n)}t&&(t.fastClickLastScrollTop=t.scrollTop)},e.prototype.getTargetElementFromEventTarget=function(e){return e.nodeType===Node.TEXT_NODE?e.parentNode:e},e.prototype.onTouchStart=function(e){var t,n,r;if(e.targetTouches.length>1)return!0;if(t=this.getTargetElementFromEventTarget(e.target),n=e.targetTouches[0],i){if(r=window.getSelection(),r.rangeCount&&!r.isCollapsed)return!0;if(!a){if(n.identifier&&n.identifier===this.lastTouchIdentifier)return e.preventDefault(),!1;this.lastTouchIdentifier=n.identifier,this.updateScrollParent(t)}}return this.trackingClick=!0,this.trackingClickStart=e.timeStamp,this.targetElement=t,this.touchStartX=n.pageX,this.touchStartY=n.pageY,e.timeStamp-this.lastClickTime<this.tapDelay&&e.preventDefault(),!0},e.prototype.touchHasMoved=function(e){var t=e.changedTouches[0],n=this.touchBoundary;return Math.abs(t.pageX-this.touchStartX)>n||Math.abs(t.pageY-this.touchStartY)>n},e.prototype.onTouchMove=function(e){return this.trackingClick?((this.targetElement!==this.getTargetElementFromEventTarget(e.target)||this.touchHasMoved(e))&&(this.trackingClick=!1,this.targetElement=null),!0):!0},e.prototype.findControl=function(e){return void 0!==e.control?e.control:e.htmlFor?document.getElementById(e.htmlFor):e.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},e.prototype.onTouchEnd=function(e){var t,o,s,l,d,u=this.targetElement;if(!this.trackingClick)return!0;if(e.timeStamp-this.lastClickTime<this.tapDelay)return this.cancelNextClick=!0,!0;if(e.timeStamp-this.trackingClickStart>this.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=e.timeStamp,o=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,r&&(d=e.changedTouches[0],u=document.elementFromPoint(d.pageX-window.pageXOffset,d.pageY-window.pageYOffset)||u,u.fastClickScrollParent=this.targetElement.fastClickScrollParent),s=u.tagName.toLowerCase(),"label"===s){if(t=this.findControl(u)){if(this.focus(u),n)return!1;u=t}}else if(this.needsFocus(u))return e.timeStamp-o>100||i&&window.top!==window&&"input"===s?(this.targetElement=null,!1):(this.focus(u),this.sendClick(u,e),i&&"select"===s||(this.targetElement=null,e.preventDefault()),!1);return i&&!a&&(l=u.fastClickScrollParent,l&&l.fastClickLastScrollTop!==l.scrollTop)?!0:(this.needsClick(u)||(e.preventDefault(),this.sendClick(u,e)),!1)},e.prototype.onTouchCancel=function(){this.trackingClick=!1,this.targetElement=null},e.prototype.onMouse=function(e){return this.targetElement?e.forwardedTouchEvent?!0:!e.cancelable||this.needsClick(this.targetElement)&&!this.cancelNextClick?!0:(e.stopImmediatePropagation?e.stopImmediatePropagation():e.propagationStopped=!0,e.stopPropagation(),e.preventDefault(),!1):!0},e.prototype.onClick=function(e){var t;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):"submit"===e.target.type&&0===e.detail?!0:(t=this.onMouse(e),t||(this.targetElement=null),t)},e.prototype.destroy=function(){var e=this.layer;n&&(e.removeEventListener("mouseover",this.onMouse,!0),e.removeEventListener("mousedown",this.onMouse,!0),e.removeEventListener("mouseup",this.onMouse,!0)),e.removeEventListener("click",this.onClick,!0),e.removeEventListener("touchstart",this.onTouchStart,!1),e.removeEventListener("touchmove",this.onTouchMove,!1),e.removeEventListener("touchend",this.onTouchEnd,!1),e.removeEventListener("touchcancel",this.onTouchCancel,!1)},e.notNeeded=function(e){var t,i,a,r;if("undefined"==typeof window.ontouchstart)return!0;if(i=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]){if(!n)return!0;if(t=document.querySelector("meta[name=viewport]")){if(-1!==t.content.indexOf("user-scalable=no"))return!0;if(i>31&&document.documentElement.scrollWidth<=window.outerWidth)return!0}}if(o&&(a=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/),a[1]>=10&&a[2]>=3&&(t=document.querySelector("meta[name=viewport]")))){if(-1!==t.content.indexOf("user-scalable=no"))return!0;if(document.documentElement.scrollWidth<=window.outerWidth)return!0}return"none"===e.style.msTouchAction||"manipulation"===e.style.touchAction?!0:(r=+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1],r>=27&&(t=document.querySelector("meta[name=viewport]"),t&&(-1!==t.content.indexOf("user-scalable=no")||document.documentElement.scrollWidth<=window.outerWidth))?!0:"none"===e.style.touchAction||"manipulation"===e.style.touchAction)},e.attach=function(t,n){return new e(t,n)},"function"==typeof define&&"object"==typeof define.amd&&define.amd?define(function(){return e}):"undefined"!=typeof module&&module.exports?(module.exports=e.attach,module.exports.FastClick=e):window.FastClick=e}()}(jQuery),function(){!function(){"use strict";function e(e){e.fn.swiper=function(t){var i;return e(this).each(function(){var e=new n(this,t);i||(i=e)}),i}}var t,n=function(e,i){function a(e){return Math.floor(e)}function r(){y.autoplayTimeoutId=setTimeout(function(){y.params.loop?(y.fixLoop(),y._slideNext(),y.emit("onAutoplay",y)):y.isEnd?i.autoplayStopOnLast?y.stopAutoplay():(y._slideTo(0),y.emit("onAutoplay",y)):(y._slideNext(),y.emit("onAutoplay",y))},y.params.autoplay)}function o(e,n){var i=t(e.target);if(!i.is(n))if("string"==typeof n)i=i.parents(n);else if(n.nodeType){var a;return i.parents().each(function(e,t){t===n&&(a=n)}),a?n:void 0}return 0!==i.length?i[0]:void 0}function s(e,t){t=t||{};var n=window.MutationObserver||window.WebkitMutationObserver,i=new n(function(e){e.forEach(function(e){y.onResize(!0),y.emit("onObserverUpdate",y,e)})});i.observe(e,{attributes:"undefined"==typeof t.attributes?!0:t.attributes,childList:"undefined"==typeof t.childList?!0:t.childList,characterData:"undefined"==typeof t.characterData?!0:t.characterData}),y.observers.push(i)}function l(e){e.originalEvent&&(e=e.originalEvent);var t=e.keyCode||e.charCode;if(!y.params.allowSwipeToNext&&(y.isHorizontal()&&39===t||!y.isHorizontal()&&40===t))return!1;if(!y.params.allowSwipeToPrev&&(y.isHorizontal()&&37===t||!y.isHorizontal()&&38===t))return!1;if(!(e.shiftKey||e.altKey||e.ctrlKey||e.metaKey||document.activeElement&&document.activeElement.nodeName&&("input"===document.activeElement.nodeName.toLowerCase()||"textarea"===document.activeElement.nodeName.toLowerCase()))){if(37===t||39===t||38===t||40===t){var n=!1;if(y.container.parents(".swiper-slide").length>0&&0===y.container.parents(".swiper-slide-active").length)return;var i={left:window.pageXOffset,top:window.pageYOffset},a=window.innerWidth,r=window.innerHeight,o=y.container.offset();y.rtl&&(o.left=o.left-y.container[0].scrollLeft);for(var s=[[o.left,o.top],[o.left+y.width,o.top],[o.left,o.top+y.height],[o.left+y.width,o.top+y.height]],l=0;l<s.length;l++){var d=s[l];d[0]>=i.left&&d[0]<=i.left+a&&d[1]>=i.top&&d[1]<=i.top+r&&(n=!0)}if(!n)return}y.isHorizontal()?((37===t||39===t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1),(39===t&&!y.rtl||37===t&&y.rtl)&&y.slideNext(),(37===t&&!y.rtl||39===t&&y.rtl)&&y.slidePrev()):((38===t||40===t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1),40===t&&y.slideNext(),38===t&&y.slidePrev())}}function d(e){e.originalEvent&&(e=e.originalEvent);var t=y.mousewheel.event,n=0,i=y.rtl?-1:1;if("mousewheel"===t)if(y.params.mousewheelForceToAxis)if(y.isHorizontal()){if(!(Math.abs(e.wheelDeltaX)>Math.abs(e.wheelDeltaY)))return;n=e.wheelDeltaX*i}else{if(!(Math.abs(e.wheelDeltaY)>Math.abs(e.wheelDeltaX)))return;n=e.wheelDeltaY}else n=Math.abs(e.wheelDeltaX)>Math.abs(e.wheelDeltaY)?-e.wheelDeltaX*i:-e.wheelDeltaY;else if("DOMMouseScroll"===t)n=-e.detail;else if("wheel"===t)if(y.params.mousewheelForceToAxis)if(y.isHorizontal()){if(!(Math.abs(e.deltaX)>Math.abs(e.deltaY)))return;n=-e.deltaX*i}else{if(!(Math.abs(e.deltaY)>Math.abs(e.deltaX)))return;n=-e.deltaY}else n=Math.abs(e.deltaX)>Math.abs(e.deltaY)?-e.deltaX*i:-e.deltaY;if(0!==n){if(y.params.mousewheelInvert&&(n=-n),y.params.freeMode){var a=y.getWrapperTranslate()+n*y.params.mousewheelSensitivity,r=y.isBeginning,o=y.isEnd;if(a>=y.minTranslate()&&(a=y.minTranslate()),a<=y.maxTranslate()&&(a=y.maxTranslate()),y.setWrapperTransition(0),y.setWrapperTranslate(a),y.updateProgress(),y.updateActiveIndex(),(!r&&y.isBeginning||!o&&y.isEnd)&&y.updateClasses(),y.params.freeModeSticky?(clearTimeout(y.mousewheel.timeout),y.mousewheel.timeout=setTimeout(function(){y.slideReset()},300)):y.params.lazyLoading&&y.lazy&&y.lazy.load(),0===a||a===y.maxTranslate())return}else{if((new window.Date).getTime()-y.mousewheel.lastScrollTime>60)if(0>n)if(y.isEnd&&!y.params.loop||y.animating){if(y.params.mousewheelReleaseOnEdges)return!0}else y.slideNext();else if(y.isBeginning&&!y.params.loop||y.animating){if(y.params.mousewheelReleaseOnEdges)return!0}else y.slidePrev();y.mousewheel.lastScrollTime=(new window.Date).getTime()}return y.params.autoplay&&y.stopAutoplay(),e.preventDefault?e.preventDefault():e.returnValue=!1,!1}}function u(e,n){e=t(e);var i,a,r,o=y.rtl?-1:1;i=e.attr("data-swiper-parallax")||"0",a=e.attr("data-swiper-parallax-x"),r=e.attr("data-swiper-parallax-y"),a||r?(a=a||"0",r=r||"0"):y.isHorizontal()?(a=i,r="0"):(r=i,a="0"),a=a.indexOf("%")>=0?parseInt(a,10)*n*o+"%":a*n*o+"px",r=r.indexOf("%")>=0?parseInt(r,10)*n+"%":r*n+"px",e.transform("translate3d("+a+", "+r+",0px)");
  }function c(e){return 0!==e.indexOf("on")&&(e=e[0]!==e[0].toUpperCase()?"on"+e[0].toUpperCase()+e.substring(1):"on"+e),e}if(!(this instanceof n))return new n(e,i);var p={direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,autoplay:!1,autoplayDisableOnInteraction:!0,autoplayStopOnLast:!1,iOSEdgeSwipeDetection:!1,iOSEdgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",coverflow:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0},flip:{slideShadows:!0,limitRotation:!0},cube:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94},fade:{crossFade:!1},parallax:!1,scrollbar:null,scrollbarHide:!0,scrollbarDraggable:!1,scrollbarSnapOnRelease:!1,keyboardControl:!1,mousewheelControl:!1,mousewheelReleaseOnEdges:!1,mousewheelInvert:!1,mousewheelForceToAxis:!1,mousewheelSensitivity:1,hashnav:!1,breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,onlyExternal:!1,threshold:0,touchMoveStopPropagation:!0,uniqueNavElements:!0,pagination:null,paginationElement:"span",paginationClickable:!1,paginationHide:!1,paginationBulletRender:null,paginationProgressRender:null,paginationFractionRender:null,paginationCustomRender:null,paginationType:"bullets",resistance:!0,resistanceRatio:.85,nextButton:null,prevButton:null,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,lazyLoading:!1,lazyLoadingInPrevNext:!1,lazyLoadingInPrevNextAmount:1,lazyLoadingOnTransitionStart:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,control:void 0,controlInverse:!1,controlBy:"slide",allowSwipeToPrev:!0,allowSwipeToNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",buttonDisabledClass:"swiper-button-disabled",paginationCurrentClass:"swiper-pagination-current",paginationTotalClass:"swiper-pagination-total",paginationHiddenClass:"swiper-pagination-hidden",paginationProgressbarClass:"swiper-pagination-progressbar",observer:!1,observeParents:!1,a11y:!1,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",runCallbacksOnInit:!0},f=i&&i.virtualTranslate;i=i||{};var h={};for(var m in i)if("object"!=typeof i[m]||null===i[m]||i[m].nodeType||i[m]===window||i[m]===document||"undefined"!=typeof Dom7&&i[m]instanceof Dom7||"undefined"!=typeof jQuery&&i[m]instanceof jQuery)h[m]=i[m];else{h[m]={};for(var g in i[m])h[m][g]=i[m][g]}for(var v in p)if("undefined"==typeof i[v])i[v]=p[v];else if("object"==typeof i[v])for(var w in p[v])"undefined"==typeof i[v][w]&&(i[v][w]=p[v][w]);var y=this;if(y.params=i,y.originalParams=h,y.classNames=[],"undefined"!=typeof t&&"undefined"!=typeof Dom7&&(t=Dom7),("undefined"!=typeof t||(t="undefined"==typeof Dom7?window.Dom7||window.Zepto||window.jQuery:Dom7))&&(y.$=t,y.currentBreakpoint=void 0,y.getActiveBreakpoint=function(){if(!y.params.breakpoints)return!1;var e,t=!1,n=[];for(e in y.params.breakpoints)y.params.breakpoints.hasOwnProperty(e)&&n.push(e);n.sort(function(e,t){return parseInt(e,10)>parseInt(t,10)});for(var i=0;i<n.length;i++)e=n[i],e>=window.innerWidth&&!t&&(t=e);return t||"max"},y.setBreakpoint=function(){var e=y.getActiveBreakpoint();if(e&&y.currentBreakpoint!==e){var t=e in y.params.breakpoints?y.params.breakpoints[e]:y.originalParams,n=y.params.loop&&t.slidesPerView!==y.params.slidesPerView;for(var i in t)y.params[i]=t[i];y.currentBreakpoint=e,n&&y.destroyLoop&&y.reLoop(!0)}},y.params.breakpoints&&y.setBreakpoint(),y.container=t(e),0!==y.container.length)){if(y.container.length>1){var b=[];return y.container.each(function(){b.push(new n(this,i))}),b}y.container[0].swiper=y,y.container.data("swiper",y),y.classNames.push("swiper-container-"+y.params.direction),y.params.freeMode&&y.classNames.push("swiper-container-free-mode"),y.support.flexbox||(y.classNames.push("swiper-container-no-flexbox"),y.params.slidesPerColumn=1),y.params.autoHeight&&y.classNames.push("swiper-container-autoheight"),(y.params.parallax||y.params.watchSlidesVisibility)&&(y.params.watchSlidesProgress=!0),["cube","coverflow","flip"].indexOf(y.params.effect)>=0&&(y.support.transforms3d?(y.params.watchSlidesProgress=!0,y.classNames.push("swiper-container-3d")):y.params.effect="slide"),"slide"!==y.params.effect&&y.classNames.push("swiper-container-"+y.params.effect),"cube"===y.params.effect&&(y.params.resistanceRatio=0,y.params.slidesPerView=1,y.params.slidesPerColumn=1,y.params.slidesPerGroup=1,y.params.centeredSlides=!1,y.params.spaceBetween=0,y.params.virtualTranslate=!0,y.params.setWrapperSize=!1),("fade"===y.params.effect||"flip"===y.params.effect)&&(y.params.slidesPerView=1,y.params.slidesPerColumn=1,y.params.slidesPerGroup=1,y.params.watchSlidesProgress=!0,y.params.spaceBetween=0,y.params.setWrapperSize=!1,"undefined"==typeof f&&(y.params.virtualTranslate=!0)),y.params.grabCursor&&y.support.touch&&(y.params.grabCursor=!1),y.wrapper=y.container.children("."+y.params.wrapperClass),y.params.pagination&&(y.paginationContainer=t(y.params.pagination),y.params.uniqueNavElements&&"string"==typeof y.params.pagination&&y.paginationContainer.length>1&&1===y.container.find(y.params.pagination).length&&(y.paginationContainer=y.container.find(y.params.pagination)),"bullets"===y.params.paginationType&&y.params.paginationClickable?y.paginationContainer.addClass("swiper-pagination-clickable"):y.params.paginationClickable=!1,y.paginationContainer.addClass("swiper-pagination-"+y.params.paginationType)),(y.params.nextButton||y.params.prevButton)&&(y.params.nextButton&&(y.nextButton=t(y.params.nextButton),y.params.uniqueNavElements&&"string"==typeof y.params.nextButton&&y.nextButton.length>1&&1===y.container.find(y.params.nextButton).length&&(y.nextButton=y.container.find(y.params.nextButton))),y.params.prevButton&&(y.prevButton=t(y.params.prevButton),y.params.uniqueNavElements&&"string"==typeof y.params.prevButton&&y.prevButton.length>1&&1===y.container.find(y.params.prevButton).length&&(y.prevButton=y.container.find(y.params.prevButton)))),y.isHorizontal=function(){return"horizontal"===y.params.direction},y.rtl=y.isHorizontal()&&("rtl"===y.container[0].dir.toLowerCase()||"rtl"===y.container.css("direction")),y.rtl&&y.classNames.push("swiper-container-rtl"),y.rtl&&(y.wrongRTL="-webkit-box"===y.wrapper.css("display")),y.params.slidesPerColumn>1&&y.classNames.push("swiper-container-multirow"),y.device.android&&y.classNames.push("swiper-container-android"),y.container.addClass(y.classNames.join(" ")),y.translate=0,y.progress=0,y.velocity=0,y.lockSwipeToNext=function(){y.params.allowSwipeToNext=!1},y.lockSwipeToPrev=function(){y.params.allowSwipeToPrev=!1},y.lockSwipes=function(){y.params.allowSwipeToNext=y.params.allowSwipeToPrev=!1},y.unlockSwipeToNext=function(){y.params.allowSwipeToNext=!0},y.unlockSwipeToPrev=function(){y.params.allowSwipeToPrev=!0},y.unlockSwipes=function(){y.params.allowSwipeToNext=y.params.allowSwipeToPrev=!0},y.params.grabCursor&&(y.container[0].style.cursor="move",y.container[0].style.cursor="-webkit-grab",y.container[0].style.cursor="-moz-grab",y.container[0].style.cursor="grab"),y.imagesToLoad=[],y.imagesLoaded=0,y.loadImage=function(e,t,n,i,a){function r(){a&&a()}var o;e.complete&&i?r():t?(o=new window.Image,o.onload=r,o.onerror=r,n&&(o.srcset=n),t&&(o.src=t)):r()},y.preloadImages=function(){function e(){"undefined"!=typeof y&&null!==y&&(void 0!==y.imagesLoaded&&y.imagesLoaded++,y.imagesLoaded===y.imagesToLoad.length&&(y.params.updateOnImagesReady&&y.update(),y.emit("onImagesReady",y)))}y.imagesToLoad=y.container.find("img");for(var t=0;t<y.imagesToLoad.length;t++)y.loadImage(y.imagesToLoad[t],y.imagesToLoad[t].currentSrc||y.imagesToLoad[t].getAttribute("src"),y.imagesToLoad[t].srcset||y.imagesToLoad[t].getAttribute("srcset"),!0,e)},y.autoplayTimeoutId=void 0,y.autoplaying=!1,y.autoplayPaused=!1,y.startAutoplay=function(){return"undefined"!=typeof y.autoplayTimeoutId?!1:y.params.autoplay?y.autoplaying?!1:(y.autoplaying=!0,y.emit("onAutoplayStart",y),void r()):!1},y.stopAutoplay=function(){y.autoplayTimeoutId&&(y.autoplayTimeoutId&&clearTimeout(y.autoplayTimeoutId),y.autoplaying=!1,y.autoplayTimeoutId=void 0,y.emit("onAutoplayStop",y))},y.pauseAutoplay=function(e){y.autoplayPaused||(y.autoplayTimeoutId&&clearTimeout(y.autoplayTimeoutId),y.autoplayPaused=!0,0===e?(y.autoplayPaused=!1,r()):y.wrapper.transitionEnd(function(){y&&(y.autoplayPaused=!1,y.autoplaying?r():y.stopAutoplay())}))},y.minTranslate=function(){return-y.snapGrid[0]},y.maxTranslate=function(){return-y.snapGrid[y.snapGrid.length-1]},y.updateAutoHeight=function(){var e=y.slides.eq(y.activeIndex)[0];if("undefined"!=typeof e){var t=e.offsetHeight;t&&y.wrapper.css("height",t+"px")}},y.updateContainerSize=function(){var e,t;e="undefined"!=typeof y.params.width?y.params.width:y.container[0].clientWidth,t="undefined"!=typeof y.params.height?y.params.height:y.container[0].clientHeight,0===e&&y.isHorizontal()||0===t&&!y.isHorizontal()||(e=e-parseInt(y.container.css("padding-left"),10)-parseInt(y.container.css("padding-right"),10),t=t-parseInt(y.container.css("padding-top"),10)-parseInt(y.container.css("padding-bottom"),10),y.width=e,y.height=t,y.size=y.isHorizontal()?y.width:y.height)},y.updateSlidesSize=function(){y.slides=y.wrapper.children("."+y.params.slideClass),y.snapGrid=[],y.slidesGrid=[],y.slidesSizesGrid=[];var e,t=y.params.spaceBetween,n=-y.params.slidesOffsetBefore,i=0,r=0;if("undefined"!=typeof y.size){"string"==typeof t&&t.indexOf("%")>=0&&(t=parseFloat(t.replace("%",""))/100*y.size),y.virtualSize=-t,y.rtl?y.slides.css({marginLeft:"",marginTop:""}):y.slides.css({marginRight:"",marginBottom:""});var o;y.params.slidesPerColumn>1&&(o=Math.floor(y.slides.length/y.params.slidesPerColumn)===y.slides.length/y.params.slidesPerColumn?y.slides.length:Math.ceil(y.slides.length/y.params.slidesPerColumn)*y.params.slidesPerColumn,"auto"!==y.params.slidesPerView&&"row"===y.params.slidesPerColumnFill&&(o=Math.max(o,y.params.slidesPerView*y.params.slidesPerColumn)));var s,l=y.params.slidesPerColumn,d=o/l,u=d-(y.params.slidesPerColumn*d-y.slides.length);for(e=0;e<y.slides.length;e++){s=0;var c=y.slides.eq(e);if(y.params.slidesPerColumn>1){var p,f,h;"column"===y.params.slidesPerColumnFill?(f=Math.floor(e/l),h=e-f*l,(f>u||f===u&&h===l-1)&&++h>=l&&(h=0,f++),p=f+h*o/l,c.css({"-webkit-box-ordinal-group":p,"-moz-box-ordinal-group":p,"-ms-flex-order":p,"-webkit-order":p,order:p})):(h=Math.floor(e/d),f=e-h*d),c.css({"margin-top":0!==h&&y.params.spaceBetween&&y.params.spaceBetween+"px"}).attr("data-swiper-column",f).attr("data-swiper-row",h)}"none"!==c.css("display")&&("auto"===y.params.slidesPerView?(s=y.isHorizontal()?c.outerWidth(!0):c.outerHeight(!0),y.params.roundLengths&&(s=a(s))):(s=(y.size-(y.params.slidesPerView-1)*t)/y.params.slidesPerView,y.params.roundLengths&&(s=a(s)),y.isHorizontal()?y.slides[e].style.width=s+"px":y.slides[e].style.height=s+"px"),y.slides[e].swiperSlideSize=s,y.slidesSizesGrid.push(s),y.params.centeredSlides?(n=n+s/2+i/2+t,0===e&&(n=n-y.size/2-t),Math.abs(n)<.001&&(n=0),r%y.params.slidesPerGroup===0&&y.snapGrid.push(n),y.slidesGrid.push(n)):(r%y.params.slidesPerGroup===0&&y.snapGrid.push(n),y.slidesGrid.push(n),n=n+s+t),y.virtualSize+=s+t,i=s,r++)}y.virtualSize=Math.max(y.virtualSize,y.size)+y.params.slidesOffsetAfter;var m;if(y.rtl&&y.wrongRTL&&("slide"===y.params.effect||"coverflow"===y.params.effect)&&y.wrapper.css({width:y.virtualSize+y.params.spaceBetween+"px"}),(!y.support.flexbox||y.params.setWrapperSize)&&(y.isHorizontal()?y.wrapper.css({width:y.virtualSize+y.params.spaceBetween+"px"}):y.wrapper.css({height:y.virtualSize+y.params.spaceBetween+"px"})),y.params.slidesPerColumn>1&&(y.virtualSize=(s+y.params.spaceBetween)*o,y.virtualSize=Math.ceil(y.virtualSize/y.params.slidesPerColumn)-y.params.spaceBetween,y.wrapper.css({width:y.virtualSize+y.params.spaceBetween+"px"}),y.params.centeredSlides)){for(m=[],e=0;e<y.snapGrid.length;e++)y.snapGrid[e]<y.virtualSize+y.snapGrid[0]&&m.push(y.snapGrid[e]);y.snapGrid=m}if(!y.params.centeredSlides){for(m=[],e=0;e<y.snapGrid.length;e++)y.snapGrid[e]<=y.virtualSize-y.size&&m.push(y.snapGrid[e]);y.snapGrid=m,Math.floor(y.virtualSize-y.size)-Math.floor(y.snapGrid[y.snapGrid.length-1])>1&&y.snapGrid.push(y.virtualSize-y.size)}0===y.snapGrid.length&&(y.snapGrid=[0]),0!==y.params.spaceBetween&&(y.isHorizontal()?y.rtl?y.slides.css({marginLeft:t+"px"}):y.slides.css({marginRight:t+"px"}):y.slides.css({marginBottom:t+"px"})),y.params.watchSlidesProgress&&y.updateSlidesOffset()}},y.updateSlidesOffset=function(){for(var e=0;e<y.slides.length;e++)y.slides[e].swiperSlideOffset=y.isHorizontal()?y.slides[e].offsetLeft:y.slides[e].offsetTop},y.updateSlidesProgress=function(e){if("undefined"==typeof e&&(e=y.translate||0),0!==y.slides.length){"undefined"==typeof y.slides[0].swiperSlideOffset&&y.updateSlidesOffset();var t=-e;y.rtl&&(t=e),y.slides.removeClass(y.params.slideVisibleClass);for(var n=0;n<y.slides.length;n++){var i=y.slides[n],a=(t-i.swiperSlideOffset)/(i.swiperSlideSize+y.params.spaceBetween);if(y.params.watchSlidesVisibility){var r=-(t-i.swiperSlideOffset),o=r+y.slidesSizesGrid[n],s=r>=0&&r<y.size||o>0&&o<=y.size||0>=r&&o>=y.size;s&&y.slides.eq(n).addClass(y.params.slideVisibleClass)}i.progress=y.rtl?-a:a}}},y.updateProgress=function(e){"undefined"==typeof e&&(e=y.translate||0);var t=y.maxTranslate()-y.minTranslate(),n=y.isBeginning,i=y.isEnd;0===t?(y.progress=0,y.isBeginning=y.isEnd=!0):(y.progress=(e-y.minTranslate())/t,y.isBeginning=y.progress<=0,y.isEnd=y.progress>=1),y.isBeginning&&!n&&y.emit("onReachBeginning",y),y.isEnd&&!i&&y.emit("onReachEnd",y),y.params.watchSlidesProgress&&y.updateSlidesProgress(e),y.emit("onProgress",y,y.progress)},y.updateActiveIndex=function(){var e,t,n,i=y.rtl?y.translate:-y.translate;for(t=0;t<y.slidesGrid.length;t++)"undefined"!=typeof y.slidesGrid[t+1]?i>=y.slidesGrid[t]&&i<y.slidesGrid[t+1]-(y.slidesGrid[t+1]-y.slidesGrid[t])/2?e=t:i>=y.slidesGrid[t]&&i<y.slidesGrid[t+1]&&(e=t+1):i>=y.slidesGrid[t]&&(e=t);(0>e||"undefined"==typeof e)&&(e=0),n=Math.floor(e/y.params.slidesPerGroup),n>=y.snapGrid.length&&(n=y.snapGrid.length-1),e!==y.activeIndex&&(y.snapIndex=n,y.previousIndex=y.activeIndex,y.activeIndex=e,y.updateClasses())},y.updateClasses=function(){y.slides.removeClass(y.params.slideActiveClass+" "+y.params.slideNextClass+" "+y.params.slidePrevClass);var e=y.slides.eq(y.activeIndex);e.addClass(y.params.slideActiveClass);var n=e.next("."+y.params.slideClass).addClass(y.params.slideNextClass);y.params.loop&&0===n.length&&y.slides.eq(0).addClass(y.params.slideNextClass);var i=e.prev("."+y.params.slideClass).addClass(y.params.slidePrevClass);if(y.params.loop&&0===i.length&&y.slides.eq(-1).addClass(y.params.slidePrevClass),y.paginationContainer&&y.paginationContainer.length>0){var a,r=y.params.loop?Math.ceil((y.slides.length-2*y.loopedSlides)/y.params.slidesPerGroup):y.snapGrid.length;if(y.params.loop?(a=Math.ceil((y.activeIndex-y.loopedSlides)/y.params.slidesPerGroup),a>y.slides.length-1-2*y.loopedSlides&&(a-=y.slides.length-2*y.loopedSlides),a>r-1&&(a-=r),0>a&&"bullets"!==y.params.paginationType&&(a=r+a)):a="undefined"!=typeof y.snapIndex?y.snapIndex:y.activeIndex||0,"bullets"===y.params.paginationType&&y.bullets&&y.bullets.length>0&&(y.bullets.removeClass(y.params.bulletActiveClass),y.paginationContainer.length>1?y.bullets.each(function(){t(this).index()===a&&t(this).addClass(y.params.bulletActiveClass)}):y.bullets.eq(a).addClass(y.params.bulletActiveClass)),"fraction"===y.params.paginationType&&(y.paginationContainer.find("."+y.params.paginationCurrentClass).text(a+1),y.paginationContainer.find("."+y.params.paginationTotalClass).text(r)),"progress"===y.params.paginationType){var o=(a+1)/r,s=o,l=1;y.isHorizontal()||(l=o,s=1),y.paginationContainer.find("."+y.params.paginationProgressbarClass).transform("translate3d(0,0,0) scaleX("+s+") scaleY("+l+")").transition(y.params.speed)}"custom"===y.params.paginationType&&y.params.paginationCustomRender&&(y.paginationContainer.html(y.params.paginationCustomRender(y,a+1,r)),y.emit("onPaginationRendered",y,y.paginationContainer[0]))}y.params.loop||(y.params.prevButton&&y.prevButton&&y.prevButton.length>0&&(y.isBeginning?(y.prevButton.addClass(y.params.buttonDisabledClass),y.params.a11y&&y.a11y&&y.a11y.disable(y.prevButton)):(y.prevButton.removeClass(y.params.buttonDisabledClass),y.params.a11y&&y.a11y&&y.a11y.enable(y.prevButton))),y.params.nextButton&&y.nextButton&&y.nextButton.length>0&&(y.isEnd?(y.nextButton.addClass(y.params.buttonDisabledClass),y.params.a11y&&y.a11y&&y.a11y.disable(y.nextButton)):(y.nextButton.removeClass(y.params.buttonDisabledClass),y.params.a11y&&y.a11y&&y.a11y.enable(y.nextButton))))},y.updatePagination=function(){if(y.params.pagination&&y.paginationContainer&&y.paginationContainer.length>0){var e="";if("bullets"===y.params.paginationType){for(var t=y.params.loop?Math.ceil((y.slides.length-2*y.loopedSlides)/y.params.slidesPerGroup):y.snapGrid.length,n=0;t>n;n++)e+=y.params.paginationBulletRender?y.params.paginationBulletRender(n,y.params.bulletClass):"<"+y.params.paginationElement+' class="'+y.params.bulletClass+'"></'+y.params.paginationElement+">";y.paginationContainer.html(e),y.bullets=y.paginationContainer.find("."+y.params.bulletClass),y.params.paginationClickable&&y.params.a11y&&y.a11y&&y.a11y.initPagination()}"fraction"===y.params.paginationType&&(e=y.params.paginationFractionRender?y.params.paginationFractionRender(y,y.params.paginationCurrentClass,y.params.paginationTotalClass):'<span class="'+y.params.paginationCurrentClass+'"></span> / <span class="'+y.params.paginationTotalClass+'"></span>',y.paginationContainer.html(e)),"progress"===y.params.paginationType&&(e=y.params.paginationProgressRender?y.params.paginationProgressRender(y,y.params.paginationProgressbarClass):'<span class="'+y.params.paginationProgressbarClass+'"></span>',y.paginationContainer.html(e)),"custom"!==y.params.paginationType&&y.emit("onPaginationRendered",y,y.paginationContainer[0])}},y.update=function(e){function t(){i=Math.min(Math.max(y.translate,y.maxTranslate()),y.minTranslate()),y.setWrapperTranslate(i),y.updateActiveIndex(),y.updateClasses()}if(y.updateContainerSize(),y.updateSlidesSize(),y.updateProgress(),y.updatePagination(),y.updateClasses(),y.params.scrollbar&&y.scrollbar&&y.scrollbar.set(),e){var n,i;y.controller&&y.controller.spline&&(y.controller.spline=void 0),y.params.freeMode?(t(),y.params.autoHeight&&y.updateAutoHeight()):(n=("auto"===y.params.slidesPerView||y.params.slidesPerView>1)&&y.isEnd&&!y.params.centeredSlides?y.slideTo(y.slides.length-1,0,!1,!0):y.slideTo(y.activeIndex,0,!1,!0),n||t())}else y.params.autoHeight&&y.updateAutoHeight()},y.onResize=function(e){y.params.breakpoints&&y.setBreakpoint();var t=y.params.allowSwipeToPrev,n=y.params.allowSwipeToNext;y.params.allowSwipeToPrev=y.params.allowSwipeToNext=!0,y.updateContainerSize(),y.updateSlidesSize(),("auto"===y.params.slidesPerView||y.params.freeMode||e)&&y.updatePagination(),y.params.scrollbar&&y.scrollbar&&y.scrollbar.set(),y.controller&&y.controller.spline&&(y.controller.spline=void 0);var i=!1;if(y.params.freeMode){var a=Math.min(Math.max(y.translate,y.maxTranslate()),y.minTranslate());y.setWrapperTranslate(a),y.updateActiveIndex(),y.updateClasses(),y.params.autoHeight&&y.updateAutoHeight()}else y.updateClasses(),i=("auto"===y.params.slidesPerView||y.params.slidesPerView>1)&&y.isEnd&&!y.params.centeredSlides?y.slideTo(y.slides.length-1,0,!1,!0):y.slideTo(y.activeIndex,0,!1,!0);y.params.lazyLoading&&!i&&y.lazy&&y.lazy.load(),y.params.allowSwipeToPrev=t,y.params.allowSwipeToNext=n};var x=["mousedown","mousemove","mouseup"];window.navigator.pointerEnabled?x=["pointerdown","pointermove","pointerup"]:window.navigator.msPointerEnabled&&(x=["MSPointerDown","MSPointerMove","MSPointerUp"]),y.touchEvents={start:y.support.touch||!y.params.simulateTouch?"touchstart":x[0],move:y.support.touch||!y.params.simulateTouch?"touchmove":x[1],end:y.support.touch||!y.params.simulateTouch?"touchend":x[2]},(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&("container"===y.params.touchEventsTarget?y.container:y.wrapper).addClass("swiper-wp8-"+y.params.direction),y.initEvents=function(e){var t=e?"off":"on",n=e?"removeEventListener":"addEventListener",a="container"===y.params.touchEventsTarget?y.container[0]:y.wrapper[0],r=y.support.touch?a:document,o=!!y.params.nested;y.browser.ie?(a[n](y.touchEvents.start,y.onTouchStart,!1),r[n](y.touchEvents.move,y.onTouchMove,o),r[n](y.touchEvents.end,y.onTouchEnd,!1)):(y.support.touch&&(a[n](y.touchEvents.start,y.onTouchStart,!1),a[n](y.touchEvents.move,y.onTouchMove,o),a[n](y.touchEvents.end,y.onTouchEnd,!1)),!i.simulateTouch||y.device.ios||y.device.android||(a[n]("mousedown",y.onTouchStart,!1),document[n]("mousemove",y.onTouchMove,o),document[n]("mouseup",y.onTouchEnd,!1))),window[n]("resize",y.onResize),y.params.nextButton&&y.nextButton&&y.nextButton.length>0&&(y.nextButton[t]("click",y.onClickNext),y.params.a11y&&y.a11y&&y.nextButton[t]("keydown",y.a11y.onEnterKey)),y.params.prevButton&&y.prevButton&&y.prevButton.length>0&&(y.prevButton[t]("click",y.onClickPrev),y.params.a11y&&y.a11y&&y.prevButton[t]("keydown",y.a11y.onEnterKey)),y.params.pagination&&y.params.paginationClickable&&(y.paginationContainer[t]("click","."+y.params.bulletClass,y.onClickIndex),y.params.a11y&&y.a11y&&y.paginationContainer[t]("keydown","."+y.params.bulletClass,y.a11y.onEnterKey)),(y.params.preventClicks||y.params.preventClicksPropagation)&&a[n]("click",y.preventClicks,!0)},y.attachEvents=function(){y.initEvents()},y.detachEvents=function(){y.initEvents(!0)},y.allowClick=!0,y.preventClicks=function(e){y.allowClick||(y.params.preventClicks&&e.preventDefault(),y.params.preventClicksPropagation&&y.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))},y.onClickNext=function(e){e.preventDefault(),(!y.isEnd||y.params.loop)&&y.slideNext()},y.onClickPrev=function(e){e.preventDefault(),(!y.isBeginning||y.params.loop)&&y.slidePrev()},y.onClickIndex=function(e){e.preventDefault();var n=t(this).index()*y.params.slidesPerGroup;y.params.loop&&(n+=y.loopedSlides),y.slideTo(n)},y.updateClickedSlide=function(e){var n=o(e,"."+y.params.slideClass),i=!1;if(n)for(var a=0;a<y.slides.length;a++)y.slides[a]===n&&(i=!0);if(!n||!i)return y.clickedSlide=void 0,void(y.clickedIndex=void 0);if(y.clickedSlide=n,y.clickedIndex=t(n).index(),y.params.slideToClickedSlide&&void 0!==y.clickedIndex&&y.clickedIndex!==y.activeIndex){var r,s=y.clickedIndex;if(y.params.loop){if(y.animating)return;r=t(y.clickedSlide).attr("data-swiper-slide-index"),y.params.centeredSlides?s<y.loopedSlides-y.params.slidesPerView/2||s>y.slides.length-y.loopedSlides+y.params.slidesPerView/2?(y.fixLoop(),s=y.wrapper.children("."+y.params.slideClass+'[data-swiper-slide-index="'+r+'"]:not(.swiper-slide-duplicate)').eq(0).index(),setTimeout(function(){y.slideTo(s)},0)):y.slideTo(s):s>y.slides.length-y.params.slidesPerView?(y.fixLoop(),s=y.wrapper.children("."+y.params.slideClass+'[data-swiper-slide-index="'+r+'"]:not(.swiper-slide-duplicate)').eq(0).index(),setTimeout(function(){y.slideTo(s)},0)):y.slideTo(s)}else y.slideTo(s)}};var T,C,S,k,E,$,A,P,D,M,I="input, select, textarea, button",j=Date.now(),z=[];y.animating=!1,y.touches={startX:0,startY:0,currentX:0,currentY:0,diff:0};var R,L;if(y.onTouchStart=function(e){if(e.originalEvent&&(e=e.originalEvent),R="touchstart"===e.type,R||!("which"in e)||3!==e.which){if(y.params.noSwiping&&o(e,"."+y.params.noSwipingClass))return void(y.allowClick=!0);if(!y.params.swipeHandler||o(e,y.params.swipeHandler)){var n=y.touches.currentX="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,i=y.touches.currentY="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY;if(!(y.device.ios&&y.params.iOSEdgeSwipeDetection&&n<=y.params.iOSEdgeSwipeThreshold)){if(T=!0,C=!1,S=!0,E=void 0,L=void 0,y.touches.startX=n,y.touches.startY=i,k=Date.now(),y.allowClick=!0,y.updateContainerSize(),y.swipeDirection=void 0,y.params.threshold>0&&(P=!1),"touchstart"!==e.type){var a=!0;t(e.target).is(I)&&(a=!1),document.activeElement&&t(document.activeElement).is(I)&&document.activeElement.blur(),a&&e.preventDefault()}y.emit("onTouchStart",y,e)}}}},y.onTouchMove=function(e){if(e.originalEvent&&(e=e.originalEvent),!R||"mousemove"!==e.type){if(e.preventedByNestedSwiper)return y.touches.startX="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,void(y.touches.startY="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY);if(y.params.onlyExternal)return y.allowClick=!1,void(T&&(y.touches.startX=y.touches.currentX="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,y.touches.startY=y.touches.currentY="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,k=Date.now()));if(R&&document.activeElement&&e.target===document.activeElement&&t(e.target).is(I))return C=!0,void(y.allowClick=!1);if(S&&y.emit("onTouchMove",y,e),!(e.targetTouches&&e.targetTouches.length>1)){if(y.touches.currentX="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,y.touches.currentY="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,"undefined"==typeof E){var n=180*Math.atan2(Math.abs(y.touches.currentY-y.touches.startY),Math.abs(y.touches.currentX-y.touches.startX))/Math.PI;E=y.isHorizontal()?n>y.params.touchAngle:90-n>y.params.touchAngle}if(E&&y.emit("onTouchMoveOpposite",y,e),"undefined"==typeof L&&y.browser.ieTouch&&(y.touches.currentX!==y.touches.startX||y.touches.currentY!==y.touches.startY)&&(L=!0),T){if(E)return void(T=!1);if(L||!y.browser.ieTouch){y.allowClick=!1,y.emit("onSliderMove",y,e),e.preventDefault(),y.params.touchMoveStopPropagation&&!y.params.nested&&e.stopPropagation(),C||(i.loop&&y.fixLoop(),A=y.getWrapperTranslate(),y.setWrapperTransition(0),y.animating&&y.wrapper.trigger("webkitTransitionEnd transitionend oTransitionEnd MSTransitionEnd msTransitionEnd"),y.params.autoplay&&y.autoplaying&&(y.params.autoplayDisableOnInteraction?y.stopAutoplay():y.pauseAutoplay()),M=!1,y.params.grabCursor&&(y.container[0].style.cursor="move",y.container[0].style.cursor="-webkit-grabbing",y.container[0].style.cursor="-moz-grabbin",y.container[0].style.cursor="grabbing")),C=!0;var a=y.touches.diff=y.isHorizontal()?y.touches.currentX-y.touches.startX:y.touches.currentY-y.touches.startY;a*=y.params.touchRatio,y.rtl&&(a=-a),y.swipeDirection=a>0?"prev":"next",$=a+A;var r=!0;if(a>0&&$>y.minTranslate()?(r=!1,y.params.resistance&&($=y.minTranslate()-1+Math.pow(-y.minTranslate()+A+a,y.params.resistanceRatio))):0>a&&$<y.maxTranslate()&&(r=!1,y.params.resistance&&($=y.maxTranslate()+1-Math.pow(y.maxTranslate()-A-a,y.params.resistanceRatio))),r&&(e.preventedByNestedSwiper=!0),!y.params.allowSwipeToNext&&"next"===y.swipeDirection&&A>$&&($=A),!y.params.allowSwipeToPrev&&"prev"===y.swipeDirection&&$>A&&($=A),y.params.followFinger){if(y.params.threshold>0){if(!(Math.abs(a)>y.params.threshold||P))return void($=A);if(!P)return P=!0,y.touches.startX=y.touches.currentX,y.touches.startY=y.touches.currentY,$=A,void(y.touches.diff=y.isHorizontal()?y.touches.currentX-y.touches.startX:y.touches.currentY-y.touches.startY)}(y.params.freeMode||y.params.watchSlidesProgress)&&y.updateActiveIndex(),y.params.freeMode&&(0===z.length&&z.push({position:y.touches[y.isHorizontal()?"startX":"startY"],time:k}),z.push({position:y.touches[y.isHorizontal()?"currentX":"currentY"],time:(new window.Date).getTime()})),y.updateProgress($),y.setWrapperTranslate($)}}}}}},y.onTouchEnd=function(e){if(e.originalEvent&&(e=e.originalEvent),S&&y.emit("onTouchEnd",y,e),S=!1,T){y.params.grabCursor&&C&&T&&(y.container[0].style.cursor="move",y.container[0].style.cursor="-webkit-grab",y.container[0].style.cursor="-moz-grab",y.container[0].style.cursor="grab");var n=Date.now(),i=n-k;if(y.allowClick&&(y.updateClickedSlide(e),y.emit("onTap",y,e),300>i&&n-j>300&&(D&&clearTimeout(D),D=setTimeout(function(){y&&(y.params.paginationHide&&y.paginationContainer.length>0&&!t(e.target).hasClass(y.params.bulletClass)&&y.paginationContainer.toggleClass(y.params.paginationHiddenClass),y.emit("onClick",y,e))},300)),300>i&&300>n-j&&(D&&clearTimeout(D),y.emit("onDoubleTap",y,e))),j=Date.now(),setTimeout(function(){y&&(y.allowClick=!0)},0),!T||!C||!y.swipeDirection||0===y.touches.diff||$===A)return void(T=C=!1);T=C=!1;var a;if(a=y.params.followFinger?y.rtl?y.translate:-y.translate:-$,y.params.freeMode){if(a<-y.minTranslate())return void y.slideTo(y.activeIndex);if(a>-y.maxTranslate())return void(y.slides.length<y.snapGrid.length?y.slideTo(y.snapGrid.length-1):y.slideTo(y.slides.length-1));if(y.params.freeModeMomentum){if(z.length>1){var r=z.pop(),o=z.pop(),s=r.position-o.position,l=r.time-o.time;y.velocity=s/l,y.velocity=y.velocity/2,Math.abs(y.velocity)<y.params.freeModeMinimumVelocity&&(y.velocity=0),(l>150||(new window.Date).getTime()-r.time>300)&&(y.velocity=0)}else y.velocity=0;z.length=0;var d=1e3*y.params.freeModeMomentumRatio,u=y.velocity*d,c=y.translate+u;y.rtl&&(c=-c);var p,f=!1,h=20*Math.abs(y.velocity)*y.params.freeModeMomentumBounceRatio;if(c<y.maxTranslate())y.params.freeModeMomentumBounce?(c+y.maxTranslate()<-h&&(c=y.maxTranslate()-h),p=y.maxTranslate(),f=!0,M=!0):c=y.maxTranslate();else if(c>y.minTranslate())y.params.freeModeMomentumBounce?(c-y.minTranslate()>h&&(c=y.minTranslate()+h),p=y.minTranslate(),f=!0,M=!0):c=y.minTranslate();else if(y.params.freeModeSticky){var m,g=0;for(g=0;g<y.snapGrid.length;g+=1)if(y.snapGrid[g]>-c){m=g;break}c=Math.abs(y.snapGrid[m]-c)<Math.abs(y.snapGrid[m-1]-c)||"next"===y.swipeDirection?y.snapGrid[m]:y.snapGrid[m-1],y.rtl||(c=-c)}if(0!==y.velocity)d=y.rtl?Math.abs((-c-y.translate)/y.velocity):Math.abs((c-y.translate)/y.velocity);else if(y.params.freeModeSticky)return void y.slideReset();y.params.freeModeMomentumBounce&&f?(y.updateProgress(p),y.setWrapperTransition(d),y.setWrapperTranslate(c),y.onTransitionStart(),y.animating=!0,y.wrapper.transitionEnd(function(){y&&M&&(y.emit("onMomentumBounce",y),y.setWrapperTransition(y.params.speed),y.setWrapperTranslate(p),y.wrapper.transitionEnd(function(){y&&y.onTransitionEnd()}))})):y.velocity?(y.updateProgress(c),y.setWrapperTransition(d),y.setWrapperTranslate(c),y.onTransitionStart(),y.animating||(y.animating=!0,y.wrapper.transitionEnd(function(){y&&y.onTransitionEnd()}))):y.updateProgress(c),y.updateActiveIndex()}return void((!y.params.freeModeMomentum||i>=y.params.longSwipesMs)&&(y.updateProgress(),y.updateActiveIndex()))}var v,w=0,b=y.slidesSizesGrid[0];for(v=0;v<y.slidesGrid.length;v+=y.params.slidesPerGroup)"undefined"!=typeof y.slidesGrid[v+y.params.slidesPerGroup]?a>=y.slidesGrid[v]&&a<y.slidesGrid[v+y.params.slidesPerGroup]&&(w=v,b=y.slidesGrid[v+y.params.slidesPerGroup]-y.slidesGrid[v]):a>=y.slidesGrid[v]&&(w=v,b=y.slidesGrid[y.slidesGrid.length-1]-y.slidesGrid[y.slidesGrid.length-2]);var x=(a-y.slidesGrid[w])/b;if(i>y.params.longSwipesMs){if(!y.params.longSwipes)return void y.slideTo(y.activeIndex);"next"===y.swipeDirection&&(x>=y.params.longSwipesRatio?y.slideTo(w+y.params.slidesPerGroup):y.slideTo(w)),"prev"===y.swipeDirection&&(x>1-y.params.longSwipesRatio?y.slideTo(w+y.params.slidesPerGroup):y.slideTo(w))}else{if(!y.params.shortSwipes)return void y.slideTo(y.activeIndex);"next"===y.swipeDirection&&y.slideTo(w+y.params.slidesPerGroup),"prev"===y.swipeDirection&&y.slideTo(w)}}},y._slideTo=function(e,t){return y.slideTo(e,t,!0,!0)},y.slideTo=function(e,t,n,i){"undefined"==typeof n&&(n=!0),"undefined"==typeof e&&(e=0),0>e&&(e=0),y.snapIndex=Math.floor(e/y.params.slidesPerGroup),y.snapIndex>=y.snapGrid.length&&(y.snapIndex=y.snapGrid.length-1);var a=-y.snapGrid[y.snapIndex];y.params.autoplay&&y.autoplaying&&(i||!y.params.autoplayDisableOnInteraction?y.pauseAutoplay(t):y.stopAutoplay()),y.updateProgress(a);for(var r=0;r<y.slidesGrid.length;r++)-Math.floor(100*a)>=Math.floor(100*y.slidesGrid[r])&&(e=r);return!y.params.allowSwipeToNext&&a<y.translate&&a<y.minTranslate()?!1:!y.params.allowSwipeToPrev&&a>y.translate&&a>y.maxTranslate()&&(y.activeIndex||0)!==e?!1:("undefined"==typeof t&&(t=y.params.speed),
  y.previousIndex=y.activeIndex||0,y.activeIndex=e,y.rtl&&-a===y.translate||!y.rtl&&a===y.translate?(y.params.autoHeight&&y.updateAutoHeight(),y.updateClasses(),"slide"!==y.params.effect&&y.setWrapperTranslate(a),!1):(y.updateClasses(),y.onTransitionStart(n),0===t?(y.setWrapperTranslate(a),y.setWrapperTransition(0),y.onTransitionEnd(n)):(y.setWrapperTranslate(a),y.setWrapperTransition(t),y.animating||(y.animating=!0,y.wrapper.transitionEnd(function(){y&&y.onTransitionEnd(n)}))),!0))},y.onTransitionStart=function(e){"undefined"==typeof e&&(e=!0),y.params.autoHeight&&y.updateAutoHeight(),y.lazy&&y.lazy.onTransitionStart(),e&&(y.emit("onTransitionStart",y),y.activeIndex!==y.previousIndex&&(y.emit("onSlideChangeStart",y),y.activeIndex>y.previousIndex?y.emit("onSlideNextStart",y):y.emit("onSlidePrevStart",y)))},y.onTransitionEnd=function(e){y.animating=!1,y.setWrapperTransition(0),"undefined"==typeof e&&(e=!0),y.lazy&&y.lazy.onTransitionEnd(),e&&(y.emit("onTransitionEnd",y),y.activeIndex!==y.previousIndex&&(y.emit("onSlideChangeEnd",y),y.activeIndex>y.previousIndex?y.emit("onSlideNextEnd",y):y.emit("onSlidePrevEnd",y))),y.params.hashnav&&y.hashnav&&y.hashnav.setHash()},y.slideNext=function(e,t,n){return y.params.loop?y.animating?!1:(y.fixLoop(),y.container[0].clientLeft,y.slideTo(y.activeIndex+y.params.slidesPerGroup,t,e,n)):y.slideTo(y.activeIndex+y.params.slidesPerGroup,t,e,n)},y._slideNext=function(e){return y.slideNext(!0,e,!0)},y.slidePrev=function(e,t,n){return y.params.loop?y.animating?!1:(y.fixLoop(),y.container[0].clientLeft,y.slideTo(y.activeIndex-1,t,e,n)):y.slideTo(y.activeIndex-1,t,e,n)},y._slidePrev=function(e){return y.slidePrev(!0,e,!0)},y.slideReset=function(e,t){return y.slideTo(y.activeIndex,t,e)},y.setWrapperTransition=function(e,t){y.wrapper.transition(e),"slide"!==y.params.effect&&y.effects[y.params.effect]&&y.effects[y.params.effect].setTransition(e),y.params.parallax&&y.parallax&&y.parallax.setTransition(e),y.params.scrollbar&&y.scrollbar&&y.scrollbar.setTransition(e),y.params.control&&y.controller&&y.controller.setTransition(e,t),y.emit("onSetTransition",y,e)},y.setWrapperTranslate=function(e,t,n){var i=0,r=0,o=0;y.isHorizontal()?i=y.rtl?-e:e:r=e,y.params.roundLengths&&(i=a(i),r=a(r)),y.params.virtualTranslate||(y.support.transforms3d?y.wrapper.transform("translate3d("+i+"px, "+r+"px, "+o+"px)"):y.wrapper.transform("translate("+i+"px, "+r+"px)")),y.translate=y.isHorizontal()?i:r;var s,l=y.maxTranslate()-y.minTranslate();s=0===l?0:(e-y.minTranslate())/l,s!==y.progress&&y.updateProgress(e),t&&y.updateActiveIndex(),"slide"!==y.params.effect&&y.effects[y.params.effect]&&y.effects[y.params.effect].setTranslate(y.translate),y.params.parallax&&y.parallax&&y.parallax.setTranslate(y.translate),y.params.scrollbar&&y.scrollbar&&y.scrollbar.setTranslate(y.translate),y.params.control&&y.controller&&y.controller.setTranslate(y.translate,n),y.emit("onSetTranslate",y,y.translate)},y.getTranslate=function(e,t){var n,i,a,r;return"undefined"==typeof t&&(t="x"),y.params.virtualTranslate?y.rtl?-y.translate:y.translate:(a=window.getComputedStyle(e,null),window.WebKitCSSMatrix?(i=a.transform||a.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),r=new window.WebKitCSSMatrix("none"===i?"":i)):(r=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=r.toString().split(",")),"x"===t&&(i=window.WebKitCSSMatrix?r.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===t&&(i=window.WebKitCSSMatrix?r.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),y.rtl&&i&&(i=-i),i||0)},y.getWrapperTranslate=function(e){return"undefined"==typeof e&&(e=y.isHorizontal()?"x":"y"),y.getTranslate(y.wrapper[0],e)},y.observers=[],y.initObservers=function(){if(y.params.observeParents)for(var e=y.container.parents(),t=0;t<e.length;t++)s(e[t]);s(y.container[0],{childList:!1}),s(y.wrapper[0],{attributes:!1})},y.disconnectObservers=function(){for(var e=0;e<y.observers.length;e++)y.observers[e].disconnect();y.observers=[]},y.createLoop=function(){y.wrapper.children("."+y.params.slideClass+"."+y.params.slideDuplicateClass).remove();var e=y.wrapper.children("."+y.params.slideClass);"auto"!==y.params.slidesPerView||y.params.loopedSlides||(y.params.loopedSlides=e.length),y.loopedSlides=parseInt(y.params.loopedSlides||y.params.slidesPerView,10),y.loopedSlides=y.loopedSlides+y.params.loopAdditionalSlides,y.loopedSlides>e.length&&(y.loopedSlides=e.length);var n,i=[],a=[];for(e.each(function(n,r){var o=t(this);n<y.loopedSlides&&a.push(r),n<e.length&&n>=e.length-y.loopedSlides&&i.push(r),o.attr("data-swiper-slide-index",n)}),n=0;n<a.length;n++)y.wrapper.append(t(a[n].cloneNode(!0)).addClass(y.params.slideDuplicateClass));for(n=i.length-1;n>=0;n--)y.wrapper.prepend(t(i[n].cloneNode(!0)).addClass(y.params.slideDuplicateClass))},y.destroyLoop=function(){y.wrapper.children("."+y.params.slideClass+"."+y.params.slideDuplicateClass).remove(),y.slides.removeAttr("data-swiper-slide-index")},y.reLoop=function(e){var t=y.activeIndex-y.loopedSlides;y.destroyLoop(),y.createLoop(),y.updateSlidesSize(),e&&y.slideTo(t+y.loopedSlides,0,!1)},y.fixLoop=function(){var e;y.activeIndex<y.loopedSlides?(e=y.slides.length-3*y.loopedSlides+y.activeIndex,e+=y.loopedSlides,y.slideTo(e,0,!1,!0)):("auto"===y.params.slidesPerView&&y.activeIndex>=2*y.loopedSlides||y.activeIndex>y.slides.length-2*y.params.slidesPerView)&&(e=-y.slides.length+y.activeIndex+y.loopedSlides,e+=y.loopedSlides,y.slideTo(e,0,!1,!0))},y.appendSlide=function(e){if(y.params.loop&&y.destroyLoop(),"object"==typeof e&&e.length)for(var t=0;t<e.length;t++)e[t]&&y.wrapper.append(e[t]);else y.wrapper.append(e);y.params.loop&&y.createLoop(),y.params.observer&&y.support.observer||y.update(!0)},y.prependSlide=function(e){y.params.loop&&y.destroyLoop();var t=y.activeIndex+1;if("object"==typeof e&&e.length){for(var n=0;n<e.length;n++)e[n]&&y.wrapper.prepend(e[n]);t=y.activeIndex+e.length}else y.wrapper.prepend(e);y.params.loop&&y.createLoop(),y.params.observer&&y.support.observer||y.update(!0),y.slideTo(t,0,!1)},y.removeSlide=function(e){y.params.loop&&(y.destroyLoop(),y.slides=y.wrapper.children("."+y.params.slideClass));var t,n=y.activeIndex;if("object"==typeof e&&e.length){for(var i=0;i<e.length;i++)t=e[i],y.slides[t]&&y.slides.eq(t).remove(),n>t&&n--;n=Math.max(n,0)}else t=e,y.slides[t]&&y.slides.eq(t).remove(),n>t&&n--,n=Math.max(n,0);y.params.loop&&y.createLoop(),y.params.observer&&y.support.observer||y.update(!0),y.params.loop?y.slideTo(n+y.loopedSlides,0,!1):y.slideTo(n,0,!1)},y.removeAllSlides=function(){for(var e=[],t=0;t<y.slides.length;t++)e.push(t);y.removeSlide(e)},y.effects={fade:{setTranslate:function(){for(var e=0;e<y.slides.length;e++){var t=y.slides.eq(e),n=t[0].swiperSlideOffset,i=-n;y.params.virtualTranslate||(i-=y.translate);var a=0;y.isHorizontal()||(a=i,i=0);var r=y.params.fade.crossFade?Math.max(1-Math.abs(t[0].progress),0):1+Math.min(Math.max(t[0].progress,-1),0);t.css({opacity:r}).transform("translate3d("+i+"px, "+a+"px, 0px)")}},setTransition:function(e){if(y.slides.transition(e),y.params.virtualTranslate&&0!==e){var t=!1;y.slides.transitionEnd(function(){if(!t&&y){t=!0,y.animating=!1;for(var e=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],n=0;n<e.length;n++)y.wrapper.trigger(e[n])}})}}},flip:{setTranslate:function(){for(var e=0;e<y.slides.length;e++){var n=y.slides.eq(e),i=n[0].progress;y.params.flip.limitRotation&&(i=Math.max(Math.min(n[0].progress,1),-1));var a=n[0].swiperSlideOffset,r=-180*i,o=r,s=0,l=-a,d=0;if(y.isHorizontal()?y.rtl&&(o=-o):(d=l,l=0,s=-o,o=0),n[0].style.zIndex=-Math.abs(Math.round(i))+y.slides.length,y.params.flip.slideShadows){var u=y.isHorizontal()?n.find(".swiper-slide-shadow-left"):n.find(".swiper-slide-shadow-top"),c=y.isHorizontal()?n.find(".swiper-slide-shadow-right"):n.find(".swiper-slide-shadow-bottom");0===u.length&&(u=t('<div class="swiper-slide-shadow-'+(y.isHorizontal()?"left":"top")+'"></div>'),n.append(u)),0===c.length&&(c=t('<div class="swiper-slide-shadow-'+(y.isHorizontal()?"right":"bottom")+'"></div>'),n.append(c)),u.length&&(u[0].style.opacity=Math.max(-i,0)),c.length&&(c[0].style.opacity=Math.max(i,0))}n.transform("translate3d("+l+"px, "+d+"px, 0px) rotateX("+s+"deg) rotateY("+o+"deg)")}},setTransition:function(e){if(y.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),y.params.virtualTranslate&&0!==e){var n=!1;y.slides.eq(y.activeIndex).transitionEnd(function(){if(!n&&y&&t(this).hasClass(y.params.slideActiveClass)){n=!0,y.animating=!1;for(var e=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],i=0;i<e.length;i++)y.wrapper.trigger(e[i])}})}}},cube:{setTranslate:function(){var e,n=0;y.params.cube.shadow&&(y.isHorizontal()?(e=y.wrapper.find(".swiper-cube-shadow"),0===e.length&&(e=t('<div class="swiper-cube-shadow"></div>'),y.wrapper.append(e)),e.css({height:y.width+"px"})):(e=y.container.find(".swiper-cube-shadow"),0===e.length&&(e=t('<div class="swiper-cube-shadow"></div>'),y.container.append(e))));for(var i=0;i<y.slides.length;i++){var a=y.slides.eq(i),r=90*i,o=Math.floor(r/360);y.rtl&&(r=-r,o=Math.floor(-r/360));var s=Math.max(Math.min(a[0].progress,1),-1),l=0,d=0,u=0;i%4===0?(l=4*-o*y.size,u=0):(i-1)%4===0?(l=0,u=4*-o*y.size):(i-2)%4===0?(l=y.size+4*o*y.size,u=y.size):(i-3)%4===0&&(l=-y.size,u=3*y.size+4*y.size*o),y.rtl&&(l=-l),y.isHorizontal()||(d=l,l=0);var c="rotateX("+(y.isHorizontal()?0:-r)+"deg) rotateY("+(y.isHorizontal()?r:0)+"deg) translate3d("+l+"px, "+d+"px, "+u+"px)";if(1>=s&&s>-1&&(n=90*i+90*s,y.rtl&&(n=90*-i-90*s)),a.transform(c),y.params.cube.slideShadows){var p=y.isHorizontal()?a.find(".swiper-slide-shadow-left"):a.find(".swiper-slide-shadow-top"),f=y.isHorizontal()?a.find(".swiper-slide-shadow-right"):a.find(".swiper-slide-shadow-bottom");0===p.length&&(p=t('<div class="swiper-slide-shadow-'+(y.isHorizontal()?"left":"top")+'"></div>'),a.append(p)),0===f.length&&(f=t('<div class="swiper-slide-shadow-'+(y.isHorizontal()?"right":"bottom")+'"></div>'),a.append(f)),p.length&&(p[0].style.opacity=Math.max(-s,0)),f.length&&(f[0].style.opacity=Math.max(s,0))}}if(y.wrapper.css({"-webkit-transform-origin":"50% 50% -"+y.size/2+"px","-moz-transform-origin":"50% 50% -"+y.size/2+"px","-ms-transform-origin":"50% 50% -"+y.size/2+"px","transform-origin":"50% 50% -"+y.size/2+"px"}),y.params.cube.shadow)if(y.isHorizontal())e.transform("translate3d(0px, "+(y.width/2+y.params.cube.shadowOffset)+"px, "+-y.width/2+"px) rotateX(90deg) rotateZ(0deg) scale("+y.params.cube.shadowScale+")");else{var h=Math.abs(n)-90*Math.floor(Math.abs(n)/90),m=1.5-(Math.sin(2*h*Math.PI/360)/2+Math.cos(2*h*Math.PI/360)/2),g=y.params.cube.shadowScale,v=y.params.cube.shadowScale/m,w=y.params.cube.shadowOffset;e.transform("scale3d("+g+", 1, "+v+") translate3d(0px, "+(y.height/2+w)+"px, "+-y.height/2/v+"px) rotateX(-90deg)")}var b=y.isSafari||y.isUiWebView?-y.size/2:0;y.wrapper.transform("translate3d(0px,0,"+b+"px) rotateX("+(y.isHorizontal()?0:n)+"deg) rotateY("+(y.isHorizontal()?-n:0)+"deg)")},setTransition:function(e){y.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),y.params.cube.shadow&&!y.isHorizontal()&&y.container.find(".swiper-cube-shadow").transition(e)}},coverflow:{setTranslate:function(){for(var e=y.translate,n=y.isHorizontal()?-e+y.width/2:-e+y.height/2,i=y.isHorizontal()?y.params.coverflow.rotate:-y.params.coverflow.rotate,a=y.params.coverflow.depth,r=0,o=y.slides.length;o>r;r++){var s=y.slides.eq(r),l=y.slidesSizesGrid[r],d=s[0].swiperSlideOffset,u=(n-d-l/2)/l*y.params.coverflow.modifier,c=y.isHorizontal()?i*u:0,p=y.isHorizontal()?0:i*u,f=-a*Math.abs(u),h=y.isHorizontal()?0:y.params.coverflow.stretch*u,m=y.isHorizontal()?y.params.coverflow.stretch*u:0;Math.abs(m)<.001&&(m=0),Math.abs(h)<.001&&(h=0),Math.abs(f)<.001&&(f=0),Math.abs(c)<.001&&(c=0),Math.abs(p)<.001&&(p=0);var g="translate3d("+m+"px,"+h+"px,"+f+"px)  rotateX("+p+"deg) rotateY("+c+"deg)";if(s.transform(g),s[0].style.zIndex=-Math.abs(Math.round(u))+1,y.params.coverflow.slideShadows){var v=y.isHorizontal()?s.find(".swiper-slide-shadow-left"):s.find(".swiper-slide-shadow-top"),w=y.isHorizontal()?s.find(".swiper-slide-shadow-right"):s.find(".swiper-slide-shadow-bottom");0===v.length&&(v=t('<div class="swiper-slide-shadow-'+(y.isHorizontal()?"left":"top")+'"></div>'),s.append(v)),0===w.length&&(w=t('<div class="swiper-slide-shadow-'+(y.isHorizontal()?"right":"bottom")+'"></div>'),s.append(w)),v.length&&(v[0].style.opacity=u>0?u:0),w.length&&(w[0].style.opacity=-u>0?-u:0)}}if(y.browser.ie){var b=y.wrapper[0].style;b.perspectiveOrigin=n+"px 50%"}},setTransition:function(e){y.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}}},y.lazy={initialImageLoaded:!1,loadImageInSlide:function(e,n){if("undefined"!=typeof e&&("undefined"==typeof n&&(n=!0),0!==y.slides.length)){var i=y.slides.eq(e),a=i.find(".swiper-lazy:not(.swiper-lazy-loaded):not(.swiper-lazy-loading)");!i.hasClass("swiper-lazy")||i.hasClass("swiper-lazy-loaded")||i.hasClass("swiper-lazy-loading")||(a=a.add(i[0])),0!==a.length&&a.each(function(){var e=t(this);e.addClass("swiper-lazy-loading");var a=e.attr("data-background"),r=e.attr("data-src"),o=e.attr("data-srcset");y.loadImage(e[0],r||a,o,!1,function(){if(a?(e.css("background-image",'url("'+a+'")'),e.removeAttr("data-background")):(o&&(e.attr("srcset",o),e.removeAttr("data-srcset")),r&&(e.attr("src",r),e.removeAttr("data-src"))),e.addClass("swiper-lazy-loaded").removeClass("swiper-lazy-loading"),i.find(".swiper-lazy-preloader, .preloader").remove(),y.params.loop&&n){var t=i.attr("data-swiper-slide-index");if(i.hasClass(y.params.slideDuplicateClass)){var s=y.wrapper.children('[data-swiper-slide-index="'+t+'"]:not(.'+y.params.slideDuplicateClass+")");y.lazy.loadImageInSlide(s.index(),!1)}else{var l=y.wrapper.children("."+y.params.slideDuplicateClass+'[data-swiper-slide-index="'+t+'"]');y.lazy.loadImageInSlide(l.index(),!1)}}y.emit("onLazyImageReady",y,i[0],e[0])}),y.emit("onLazyImageLoad",y,i[0],e[0])})}},load:function(){var e;if(y.params.watchSlidesVisibility)y.wrapper.children("."+y.params.slideVisibleClass).each(function(){y.lazy.loadImageInSlide(t(this).index())});else if(y.params.slidesPerView>1)for(e=y.activeIndex;e<y.activeIndex+y.params.slidesPerView;e++)y.slides[e]&&y.lazy.loadImageInSlide(e);else y.lazy.loadImageInSlide(y.activeIndex);if(y.params.lazyLoadingInPrevNext)if(y.params.slidesPerView>1||y.params.lazyLoadingInPrevNextAmount&&y.params.lazyLoadingInPrevNextAmount>1){var n=y.params.lazyLoadingInPrevNextAmount,i=y.params.slidesPerView,a=Math.min(y.activeIndex+i+Math.max(n,i),y.slides.length),r=Math.max(y.activeIndex-Math.max(i,n),0);for(e=y.activeIndex+y.params.slidesPerView;a>e;e++)y.slides[e]&&y.lazy.loadImageInSlide(e);for(e=r;e<y.activeIndex;e++)y.slides[e]&&y.lazy.loadImageInSlide(e)}else{var o=y.wrapper.children("."+y.params.slideNextClass);o.length>0&&y.lazy.loadImageInSlide(o.index());var s=y.wrapper.children("."+y.params.slidePrevClass);s.length>0&&y.lazy.loadImageInSlide(s.index())}},onTransitionStart:function(){y.params.lazyLoading&&(y.params.lazyLoadingOnTransitionStart||!y.params.lazyLoadingOnTransitionStart&&!y.lazy.initialImageLoaded)&&y.lazy.load()},onTransitionEnd:function(){y.params.lazyLoading&&!y.params.lazyLoadingOnTransitionStart&&y.lazy.load()}},y.scrollbar={isTouched:!1,setDragPosition:function(e){var t=y.scrollbar,n=y.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageX:e.pageX||e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageY:e.pageY||e.clientY,i=n-t.track.offset()[y.isHorizontal()?"left":"top"]-t.dragSize/2,a=-y.minTranslate()*t.moveDivider,r=-y.maxTranslate()*t.moveDivider;a>i?i=a:i>r&&(i=r),i=-i/t.moveDivider,y.updateProgress(i),y.setWrapperTranslate(i,!0)},dragStart:function(e){var t=y.scrollbar;t.isTouched=!0,e.preventDefault(),e.stopPropagation(),t.setDragPosition(e),clearTimeout(t.dragTimeout),t.track.transition(0),y.params.scrollbarHide&&t.track.css("opacity",1),y.wrapper.transition(100),t.drag.transition(100),y.emit("onScrollbarDragStart",y)},dragMove:function(e){var t=y.scrollbar;t.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,t.setDragPosition(e),y.wrapper.transition(0),t.track.transition(0),t.drag.transition(0),y.emit("onScrollbarDragMove",y))},dragEnd:function(){var e=y.scrollbar;e.isTouched&&(e.isTouched=!1,y.params.scrollbarHide&&(clearTimeout(e.dragTimeout),e.dragTimeout=setTimeout(function(){e.track.css("opacity",0),e.track.transition(400)},1e3)),y.emit("onScrollbarDragEnd",y),y.params.scrollbarSnapOnRelease&&y.slideReset())},enableDraggable:function(){var e=y.scrollbar,n=y.support.touch?e.track:document;t(e.track).on(y.touchEvents.start,e.dragStart),t(n).on(y.touchEvents.move,e.dragMove),t(n).on(y.touchEvents.end,e.dragEnd)},disableDraggable:function(){var e=y.scrollbar,n=y.support.touch?e.track:document;t(e.track).off(y.touchEvents.start,e.dragStart),t(n).off(y.touchEvents.move,e.dragMove),t(n).off(y.touchEvents.end,e.dragEnd)},set:function(){if(y.params.scrollbar){var e=y.scrollbar;e.track=t(y.params.scrollbar),y.params.uniqueNavElements&&"string"==typeof y.params.scrollbar&&e.track.length>1&&1===y.container.find(y.params.scrollbar).length&&(e.track=y.container.find(y.params.scrollbar)),e.drag=e.track.find(".swiper-scrollbar-drag"),0===e.drag.length&&(e.drag=t('<div class="swiper-scrollbar-drag"></div>'),e.track.append(e.drag)),e.drag[0].style.width="",e.drag[0].style.height="",e.trackSize=y.isHorizontal()?e.track[0].offsetWidth:e.track[0].offsetHeight,e.divider=y.size/y.virtualSize,e.moveDivider=e.divider*(e.trackSize/y.size),e.dragSize=e.trackSize*e.divider,y.isHorizontal()?e.drag[0].style.width=e.dragSize+"px":e.drag[0].style.height=e.dragSize+"px",e.divider>=1?e.track[0].style.display="none":e.track[0].style.display="",y.params.scrollbarHide&&(e.track[0].style.opacity=0)}},setTranslate:function(){if(y.params.scrollbar){var e,t=y.scrollbar,n=(y.translate||0,t.dragSize);e=(t.trackSize-t.dragSize)*y.progress,y.rtl&&y.isHorizontal()?(e=-e,e>0?(n=t.dragSize-e,e=0):-e+t.dragSize>t.trackSize&&(n=t.trackSize+e)):0>e?(n=t.dragSize+e,e=0):e+t.dragSize>t.trackSize&&(n=t.trackSize-e),y.isHorizontal()?(y.support.transforms3d?t.drag.transform("translate3d("+e+"px, 0, 0)"):t.drag.transform("translateX("+e+"px)"),t.drag[0].style.width=n+"px"):(y.support.transforms3d?t.drag.transform("translate3d(0px, "+e+"px, 0)"):t.drag.transform("translateY("+e+"px)"),t.drag[0].style.height=n+"px"),y.params.scrollbarHide&&(clearTimeout(t.timeout),t.track[0].style.opacity=1,t.timeout=setTimeout(function(){t.track[0].style.opacity=0,t.track.transition(400)},1e3))}},setTransition:function(e){y.params.scrollbar&&y.scrollbar.drag.transition(e)}},y.controller={LinearSpline:function(e,t){this.x=e,this.y=t,this.lastIndex=e.length-1;var n,i;this.x.length,this.interpolate=function(e){return e?(i=a(this.x,e),n=i-1,(e-this.x[n])*(this.y[i]-this.y[n])/(this.x[i]-this.x[n])+this.y[n]):0};var a=function(){var e,t,n;return function(i,a){for(t=-1,e=i.length;e-t>1;)i[n=e+t>>1]<=a?t=n:e=n;return e}}()},getInterpolateFunction:function(e){y.controller.spline||(y.controller.spline=y.params.loop?new y.controller.LinearSpline(y.slidesGrid,e.slidesGrid):new y.controller.LinearSpline(y.snapGrid,e.snapGrid))},setTranslate:function(e,t){function i(t){e=t.rtl&&"horizontal"===t.params.direction?-y.translate:y.translate,"slide"===y.params.controlBy&&(y.controller.getInterpolateFunction(t),r=-y.controller.spline.interpolate(-e)),r&&"container"!==y.params.controlBy||(a=(t.maxTranslate()-t.minTranslate())/(y.maxTranslate()-y.minTranslate()),r=(e-y.minTranslate())*a+t.minTranslate()),y.params.controlInverse&&(r=t.maxTranslate()-r),t.updateProgress(r),t.setWrapperTranslate(r,!1,y),t.updateActiveIndex()}var a,r,o=y.params.control;if(y.isArray(o))for(var s=0;s<o.length;s++)o[s]!==t&&o[s]instanceof n&&i(o[s]);else o instanceof n&&t!==o&&i(o)},setTransition:function(e,t){function i(t){t.setWrapperTransition(e,y),0!==e&&(t.onTransitionStart(),t.wrapper.transitionEnd(function(){r&&(t.params.loop&&"slide"===y.params.controlBy&&t.fixLoop(),t.onTransitionEnd())}))}var a,r=y.params.control;if(y.isArray(r))for(a=0;a<r.length;a++)r[a]!==t&&r[a]instanceof n&&i(r[a]);else r instanceof n&&t!==r&&i(r)}},y.hashnav={init:function(){if(y.params.hashnav){y.hashnav.initialized=!0;var e=document.location.hash.replace("#","");if(e)for(var t=0,n=0,i=y.slides.length;i>n;n++){var a=y.slides.eq(n),r=a.attr("data-hash");if(r===e&&!a.hasClass(y.params.slideDuplicateClass)){var o=a.index();y.slideTo(o,t,y.params.runCallbacksOnInit,!0)}}}},setHash:function(){y.hashnav.initialized&&y.params.hashnav&&(document.location.hash=y.slides.eq(y.activeIndex).attr("data-hash")||"")}},y.disableKeyboardControl=function(){y.params.keyboardControl=!1,t(document).off("keydown",l)},y.enableKeyboardControl=function(){y.params.keyboardControl=!0,t(document).on("keydown",l)},y.mousewheel={event:!1,lastScrollTime:(new window.Date).getTime()},y.params.mousewheelControl){try{new window.WheelEvent("wheel"),y.mousewheel.event="wheel"}catch(H){(window.WheelEvent||y.container[0]&&"wheel"in y.container[0])&&(y.mousewheel.event="wheel")}!y.mousewheel.event&&window.WheelEvent,y.mousewheel.event||void 0===document.onmousewheel||(y.mousewheel.event="mousewheel"),y.mousewheel.event||(y.mousewheel.event="DOMMouseScroll")}y.disableMousewheelControl=function(){return y.mousewheel.event?(y.container.off(y.mousewheel.event,d),!0):!1},y.enableMousewheelControl=function(){return y.mousewheel.event?(y.container.on(y.mousewheel.event,d),!0):!1},y.parallax={setTranslate:function(){y.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){u(this,y.progress)}),y.slides.each(function(){var e=t(this);e.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var t=Math.min(Math.max(e[0].progress,-1),1);u(this,t)})})},setTransition:function(e){"undefined"==typeof e&&(e=y.params.speed),y.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var n=t(this),i=parseInt(n.attr("data-swiper-parallax-duration"),10)||e;0===e&&(i=0),n.transition(i)})}},y._plugins=[];for(var N in y.plugins){var O=y.plugins[N](y,y.params[N]);O&&y._plugins.push(O)}return y.callPlugins=function(e){for(var t=0;t<y._plugins.length;t++)e in y._plugins[t]&&y._plugins[t][e](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},y.emitterEventListeners={},y.emit=function(e){y.params[e]&&y.params[e](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);var t;if(y.emitterEventListeners[e])for(t=0;t<y.emitterEventListeners[e].length;t++)y.emitterEventListeners[e][t](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);y.callPlugins&&y.callPlugins(e,arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},y.on=function(e,t){return e=c(e),y.emitterEventListeners[e]||(y.emitterEventListeners[e]=[]),y.emitterEventListeners[e].push(t),y},y.off=function(e,t){var n;if(e=c(e),"undefined"==typeof t)return y.emitterEventListeners[e]=[],y;if(y.emitterEventListeners[e]&&0!==y.emitterEventListeners[e].length){for(n=0;n<y.emitterEventListeners[e].length;n++)y.emitterEventListeners[e][n]===t&&y.emitterEventListeners[e].splice(n,1);return y}},y.once=function(e,t){e=c(e);var n=function(){t(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4]),y.off(e,n)};return y.on(e,n),y},y.a11y={makeFocusable:function(e){return e.attr("tabIndex","0"),e},addRole:function(e,t){return e.attr("role",t),e},addLabel:function(e,t){return e.attr("aria-label",t),e},disable:function(e){return e.attr("aria-disabled",!0),e},enable:function(e){return e.attr("aria-disabled",!1),e},onEnterKey:function(e){13===e.keyCode&&(t(e.target).is(y.params.nextButton)?(y.onClickNext(e),y.isEnd?y.a11y.notify(y.params.lastSlideMessage):y.a11y.notify(y.params.nextSlideMessage)):t(e.target).is(y.params.prevButton)&&(y.onClickPrev(e),y.isBeginning?y.a11y.notify(y.params.firstSlideMessage):y.a11y.notify(y.params.prevSlideMessage)),t(e.target).is("."+y.params.bulletClass)&&t(e.target)[0].click())},liveRegion:t('<span class="swiper-notification" aria-live="assertive" aria-atomic="true"></span>'),notify:function(e){var t=y.a11y.liveRegion;0!==t.length&&(t.html(""),t.html(e))},init:function(){y.params.nextButton&&y.nextButton&&y.nextButton.length>0&&(y.a11y.makeFocusable(y.nextButton),y.a11y.addRole(y.nextButton,"button"),y.a11y.addLabel(y.nextButton,y.params.nextSlideMessage)),y.params.prevButton&&y.prevButton&&y.prevButton.length>0&&(y.a11y.makeFocusable(y.prevButton),y.a11y.addRole(y.prevButton,"button"),y.a11y.addLabel(y.prevButton,y.params.prevSlideMessage)),t(y.container).append(y.a11y.liveRegion)},initPagination:function(){y.params.pagination&&y.params.paginationClickable&&y.bullets&&y.bullets.length&&y.bullets.each(function(){var e=t(this);y.a11y.makeFocusable(e),y.a11y.addRole(e,"button"),y.a11y.addLabel(e,y.params.paginationBulletMessage.replace(/{{index}}/,e.index()+1))})},destroy:function(){y.a11y.liveRegion&&y.a11y.liveRegion.length>0&&y.a11y.liveRegion.remove()}},y.init=function(){y.params.loop&&y.createLoop(),y.updateContainerSize(),y.updateSlidesSize(),y.updatePagination(),y.params.scrollbar&&y.scrollbar&&(y.scrollbar.set(),y.params.scrollbarDraggable&&y.scrollbar.enableDraggable()),"slide"!==y.params.effect&&y.effects[y.params.effect]&&(y.params.loop||y.updateProgress(),y.effects[y.params.effect].setTranslate()),y.params.loop?y.slideTo(y.params.initialSlide+y.loopedSlides,0,y.params.runCallbacksOnInit):(y.slideTo(y.params.initialSlide,0,y.params.runCallbacksOnInit),0===y.params.initialSlide&&(y.parallax&&y.params.parallax&&y.parallax.setTranslate(),y.lazy&&y.params.lazyLoading&&(y.lazy.load(),y.lazy.initialImageLoaded=!0))),y.attachEvents(),y.params.observer&&y.support.observer&&y.initObservers(),y.params.preloadImages&&!y.params.lazyLoading&&y.preloadImages(),y.params.autoplay&&y.startAutoplay(),y.params.keyboardControl&&y.enableKeyboardControl&&y.enableKeyboardControl(),y.params.mousewheelControl&&y.enableMousewheelControl&&y.enableMousewheelControl(),y.params.hashnav&&y.hashnav&&y.hashnav.init(),y.params.a11y&&y.a11y&&y.a11y.init(),y.emit("onInit",y)},y.cleanupStyles=function(){y.container.removeClass(y.classNames.join(" ")).removeAttr("style"),y.wrapper.removeAttr("style"),y.slides&&y.slides.length&&y.slides.removeClass([y.params.slideVisibleClass,y.params.slideActiveClass,y.params.slideNextClass,y.params.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-column").removeAttr("data-swiper-row"),y.paginationContainer&&y.paginationContainer.length&&y.paginationContainer.removeClass(y.params.paginationHiddenClass),y.bullets&&y.bullets.length&&y.bullets.removeClass(y.params.bulletActiveClass),y.params.prevButton&&t(y.params.prevButton).removeClass(y.params.buttonDisabledClass),y.params.nextButton&&t(y.params.nextButton).removeClass(y.params.buttonDisabledClass),y.params.scrollbar&&y.scrollbar&&(y.scrollbar.track&&y.scrollbar.track.length&&y.scrollbar.track.removeAttr("style"),y.scrollbar.drag&&y.scrollbar.drag.length&&y.scrollbar.drag.removeAttr("style"))},y.destroy=function(e,t){y.detachEvents(),y.stopAutoplay(),y.params.scrollbar&&y.scrollbar&&y.params.scrollbarDraggable&&y.scrollbar.disableDraggable(),y.params.loop&&y.destroyLoop(),t&&y.cleanupStyles(),y.disconnectObservers(),y.params.keyboardControl&&y.disableKeyboardControl&&y.disableKeyboardControl(),y.params.mousewheelControl&&y.disableMousewheelControl&&y.disableMousewheelControl(),y.params.a11y&&y.a11y&&y.a11y.destroy(),y.emit("onDestroy"),e!==!1&&(y=null)},y.init(),y}};n.prototype={isSafari:function(){var e=navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent),isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},browser:{ie:window.navigator.pointerEnabled||window.navigator.msPointerEnabled,ieTouch:window.navigator.msPointerEnabled&&window.navigator.msMaxTouchPoints>1||window.navigator.pointerEnabled&&window.navigator.maxTouchPoints>1},device:function(){var e=navigator.userAgent,t=e.match(/(Android);?[\s\/]+([\d.]+)?/),n=e.match(/(iPad).*OS\s([\d_]+)/),i=e.match(/(iPod)(.*OS\s([\d_]+))?/),a=!n&&e.match(/(iPhone\sOS)\s([\d_]+)/);return{ios:n||a||i,android:t}}(),support:{touch:window.Modernizr&&Modernizr.touch===!0||function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}(),transforms3d:window.Modernizr&&Modernizr.csstransforms3d===!0||function(){var e=document.createElement("div").style;return"webkitPerspective"in e||"MozPerspective"in e||"OPerspective"in e||"MsPerspective"in e||"perspective"in e}(),flexbox:function(){for(var e=document.createElement("div").style,t="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),n=0;n<t.length;n++)if(t[n]in e)return!0}(),observer:function(){return"MutationObserver"in window||"WebkitMutationObserver"in window}()},plugins:{}};for(var i=["jQuery","Zepto","Dom7"],a=0;a<i.length;a++)window[i[a]]&&e(window[i[a]]);var r;r="undefined"==typeof Dom7?window.Dom7||window.Zepto||window.jQuery:Dom7,r&&("transitionEnd"in r.fn||(r.fn.transitionEnd=function(e){function t(r){if(r.target===this)for(e.call(this,r),n=0;n<i.length;n++)a.off(i[n],t)}var n,i=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],a=this;if(e)for(n=0;n<i.length;n++)a.on(i[n],t);return this}),"transform"in r.fn||(r.fn.transform=function(e){for(var t=0;t<this.length;t++){var n=this[t].style;n.webkitTransform=n.MsTransform=n.msTransform=n.MozTransform=n.OTransform=n.transform=e}return this}),"transition"in r.fn||(r.fn.transition=function(e){"string"!=typeof e&&(e+="ms");for(var t=0;t<this.length;t++){var n=this[t].style;n.webkitTransitionDuration=n.MsTransitionDuration=n.msTransitionDuration=n.MozTransitionDuration=n.OTransitionDuration=n.transitionDuration=e}return this})),window.Swiper=n}(),"undefined"!=typeof module?module.exports=window.Swiper:"function"==typeof define&&define.amd&&define([],function(){"use strict";return window.Swiper})}(jQuery),function(e){!function(t,n,i,a){i.swipebox=function(r,o){var s={useCSS:!0,hideBarsDelay:3e3},l=this,d=i(r),r=r,u=r.selector,c=i(u),p=n.createTouch!==a||"ontouchstart"in t||"onmsgesturechange"in t||navigator.msMaxTouchPoints,f=!!t.SVGSVGElement,h='<div id="swipebox-overlay">					<div id="swipebox-slider"></div>					<div id="swipebox-caption"></div>					<div id="swipebox-action">						<a id="swipebox-close"></a>						<a id="swipebox-prev"></a>						<a id="swipebox-next"></a>					</div>			</div>';l.settings={},l.init=function(){l.settings=i.extend({},s,o),c.click(function(e){e.preventDefault(),e.stopPropagation(),index=d.index(i(this)),m.target=i(e.target),m.init(index)})};var m={init:function(e){this.target.trigger("swipebox-start"),this.build(),this.openSlide(e),this.openImg(e),this.preloadImg(e+1),this.preloadImg(e-1)},build:function(){var e=this;if(i("body").append(h),e.doCssTrans()&&(i("#swipebox-slider").css({"-webkit-transition":"left 0.4s ease","-moz-transition":"left 0.4s ease","-o-transition":"left 0.4s ease","-khtml-transition":"left 0.4s ease",transition:"left 0.4s ease"}),i("#swipebox-overlay").css({"-webkit-transition":"opacity 1s ease","-moz-transition":"opacity 1s ease","-o-transition":"opacity 1s ease","-khtml-transition":"opacity 1s ease",transition:"opacity 1s ease"}),i("#swipebox-action, #swipebox-caption").css({"-webkit-transition":"0.5s","-moz-transition":"0.5s","-o-transition":"0.5s","-khtml-transition":"0.5s",transition:"0.5s"})),f){var n=i("#swipebox-action #swipebox-close").css("background-image");n=n.replace("png","svg"),i("#swipebox-action #swipebox-prev,#swipebox-action #swipebox-next,#swipebox-action #swipebox-close").css({"background-image":n})}d.each(function(){i("#swipebox-slider").append('<div class="slide"></div>')}),e.setDim(),e.actions(),e.keyboard(),e.gesture(),e.animBars(),i(t).resize(function(){e.setDim()}).resize()},setDim:function(){var e={
  width:i(t).width(),height:t.innerHeight?t.innerHeight:i(t).height()};i("#swipebox-overlay").css(e)},supportTransition:function(){for(var e="transition WebkitTransition MozTransition OTransition msTransition KhtmlTransition".split(" "),t=0;t<e.length;t++)if(n.createElement("div").style[e[t]]!==a)return e[t];return!1},doCssTrans:function(){return l.settings.useCSS&&this.supportTransition()?!0:void 0},gesture:function(){if(p){var e=this,t=null,n=10,a={},r={},o=i("#swipebox-caption, #swipebox-action");o.addClass("visible-bars"),e.setTimeout(),i("body").bind("touchstart",function(e){return i(this).addClass("touching"),r=e.originalEvent.targetTouches[0],a.pageX=e.originalEvent.targetTouches[0].pageX,i(".touching").bind("touchmove",function(e){e.preventDefault(),e.stopPropagation(),r=e.originalEvent.targetTouches[0]}),!1}).bind("touchend",function(s){s.preventDefault(),s.stopPropagation(),t=r.pageX-a.pageX,t>=n?e.getPrev():-n>=t?e.getNext():o.hasClass("visible-bars")?(e.clearTimeout(),e.hideBars()):(e.showBars(),e.setTimeout()),i(".touching").off("touchmove").removeClass("touching")})}},setTimeout:function(){if(l.settings.hideBarsDelay>0){var e=this;e.clearTimeout(),e.timeout=t.setTimeout(function(){e.hideBars()},l.settings.hideBarsDelay)}},clearTimeout:function(){t.clearTimeout(this.timeout),this.timeout=null},showBars:function(){var e=i("#swipebox-caption, #swipebox-action");this.doCssTrans()?e.addClass("visible-bars"):(i("#swipebox-caption").animate({top:0},500),i("#swipebox-action").animate({bottom:0},500),setTimeout(function(){e.addClass("visible-bars")},1e3))},hideBars:function(){var e=i("#swipebox-caption, #swipebox-action");this.doCssTrans()?e.removeClass("visible-bars"):(i("#swipebox-caption").animate({top:"-50px"},500),i("#swipebox-action").animate({bottom:"-50px"},500),setTimeout(function(){e.removeClass("visible-bars")},1e3))},animBars:function(){var e=this,t=i("#swipebox-caption, #swipebox-action");t.addClass("visible-bars"),e.setTimeout(),i("#swipebox-slider").click(function(){t.hasClass("visible-bars")||(e.showBars(),e.setTimeout())}),i("#swipebox-action").hover(function(){e.showBars(),t.addClass("force-visible-bars"),e.clearTimeout()},function(){t.removeClass("force-visible-bars"),e.setTimeout()})},keyboard:function(){var e=this;i(t).bind("keyup",function(t){t.preventDefault(),t.stopPropagation(),37==t.keyCode?e.getPrev():39==t.keyCode?e.getNext():27==t.keyCode&&e.closeSlide()})},actions:function(){var t=this;d.length<2?i("#swipebox-prev, #swipebox-next").hide():(i("#swipebox-prev").bind("click touchend",function(e){e.preventDefault(),e.stopPropagation(),t.getPrev(),t.setTimeout()}),i("#swipebox-next").bind("click touchend",function(e){e.preventDefault(),e.stopPropagation(),t.getNext(),t.setTimeout()})),i("#swipebox-close").bind("click touchend",function(){t.closeSlide(),e(".gallery-fix").delay(1).fadeOut(0)})},setSlide:function(e,t){t=t||!1;var n=i("#swipebox-slider");this.doCssTrans()?n.css({left:100*-e+"%"}):n.animate({left:100*-e+"%"}),i("#swipebox-slider .slide").removeClass("current"),i("#swipebox-slider .slide").eq(e).addClass("current"),this.setTitle(e),t&&n.fadeIn(),i("#swipebox-prev, #swipebox-next").removeClass("disabled"),0==e?i("#swipebox-prev").addClass("disabled"):e==d.length-1&&i("#swipebox-next").addClass("disabled")},openSlide:function(e){i("html").addClass("swipebox"),i(t).trigger("resize"),this.setSlide(e,!0)},preloadImg:function(e){var t=this;setTimeout(function(){t.openImg(e)},1e3)},openImg:function(e){var t=this;return 0>e||e>=d.length?!1:void t.loadImg(d.eq(e).attr("href"),function(){i("#swipebox-slider .slide").eq(e).html(this)})},setTitle:function(e){i("#swipebox-caption").empty(),d.eq(e).attr("title")&&i("#swipebox-caption").append(d.eq(e).attr("title"))},loadImg:function(e,t){var n=i("<img>").on("load",function(){t.call(n)});n.attr("src",e)},getNext:function(){var e=this;index=i("#swipebox-slider .slide").index(i("#swipebox-slider .slide.current")),index+1<d.length?(index++,e.setSlide(index),e.preloadImg(index+1)):(i("#swipebox-slider").addClass("rightSpring"),setTimeout(function(){i("#swipebox-slider").removeClass("rightSpring")},500))},getPrev:function(){var e=this;index=i("#swipebox-slider .slide").index(i("#swipebox-slider .slide.current")),index>0?(index--,e.setSlide(index),e.preloadImg(index-1)):(i("#swipebox-slider").addClass("leftSpring"),setTimeout(function(){i("#swipebox-slider").removeClass("leftSpring")},500))},closeSlide:function(){var e=this;i(t).trigger("resize"),i("html").removeClass("swipebox"),e.destroy()},destroy:function(){var e=this;i(t).unbind("keyup"),i("body").unbind("touchstart"),i("body").unbind("touchmove"),i("body").unbind("touchend"),i("#swipebox-slider").unbind(),i("#swipebox-overlay").remove(),d.removeData("_swipebox"),e.target.trigger("swipebox-destroy")}};l.init()},i.fn.swipebox=function(e){if(!i.data(this,"_swipebox")){var t=new i.swipebox(this,e);this.data("_swipebox",t)}}}(window,document,jQuery)}(jQuery),function(){!function(e,t,n,i){var a=e(t);e.fn.lazyload=function(r){function o(){var t=0;l.each(function(){var n=e(this);if(!d.skip_invisible||n.is(":visible"))if(e.abovethetop(this,d)||e.leftofbegin(this,d));else if(e.belowthefold(this,d)||e.rightoffold(this,d)){if(++t>d.failure_limit)return!1}else n.trigger("appear"),t=0})}var s,l=this,d={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:t,data_attribute:"original",skip_invisible:!1,appear:null,load:null,placeholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC"};return r&&(i!==r.failurelimit&&(r.failure_limit=r.failurelimit,delete r.failurelimit),i!==r.effectspeed&&(r.effect_speed=r.effectspeed,delete r.effectspeed),e.extend(d,r)),s=d.container===i||d.container===t?a:e(d.container),0===d.event.indexOf("scroll")&&s.bind(d.event,function(){return o()}),this.each(function(){var t=this,n=e(t);t.loaded=!1,(n.attr("src")===i||n.attr("src")===!1)&&n.is("img")&&n.attr("src",d.placeholder),n.one("appear",function(){if(!this.loaded){if(d.appear){var i=l.length;d.appear.call(t,i,d)}e("<img />").bind("load",function(){var i=n.attr("data-"+d.data_attribute);n.hide(),n.is("img")?n.attr("src",i):n.css("background-image","url('"+i+"')"),n[d.effect](d.effect_speed),t.loaded=!0;var a=e.grep(l,function(e){return!e.loaded});if(l=e(a),d.load){var r=l.length;d.load.call(t,r,d)}}).attr("src",n.attr("data-"+d.data_attribute))}}),0!==d.event.indexOf("scroll")&&n.bind(d.event,function(){t.loaded||n.trigger("appear")})}),a.bind("resize",function(){o()}),/(?:iphone|ipod|ipad).*os 5/gi.test(navigator.appVersion)&&a.bind("pageshow",function(t){t.originalEvent&&t.originalEvent.persisted&&l.each(function(){e(this).trigger("appear")})}),e(n).ready(function(){o()}),this},e.belowthefold=function(n,r){var o;return o=r.container===i||r.container===t?(t.innerHeight?t.innerHeight:a.height())+a.scrollTop():e(r.container).offset().top+e(r.container).height(),o<=e(n).offset().top-r.threshold},e.rightoffold=function(n,r){var o;return o=r.container===i||r.container===t?a.width()+a.scrollLeft():e(r.container).offset().left+e(r.container).width(),o<=e(n).offset().left-r.threshold},e.abovethetop=function(n,r){var o;return o=r.container===i||r.container===t?a.scrollTop():e(r.container).offset().top,o>=e(n).offset().top+r.threshold+e(n).height()},e.leftofbegin=function(n,r){var o;return o=r.container===i||r.container===t?a.scrollLeft():e(r.container).offset().left,o>=e(n).offset().left+r.threshold+e(n).width()},e.inviewport=function(t,n){return!(e.rightoffold(t,n)||e.leftofbegin(t,n)||e.belowthefold(t,n)||e.abovethetop(t,n))},e.extend(e.expr[":"],{"below-the-fold":function(t){return e.belowthefold(t,{threshold:0})},"above-the-top":function(t){return!e.belowthefold(t,{threshold:0})},"right-of-screen":function(t){return e.rightoffold(t,{threshold:0})},"left-of-screen":function(t){return!e.rightoffold(t,{threshold:0})},"in-viewport":function(t){return e.inviewport(t,{threshold:0})},"above-the-fold":function(t){return!e.belowthefold(t,{threshold:0})},"right-of-fold":function(t){return e.rightoffold(t,{threshold:0})},"left-of-fold":function(t){return!e.rightoffold(t,{threshold:0})}})}(jQuery,window,document)}(jQuery),function(e){!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.Countdown=e()}}(function(){return function t(e,n,i){function a(o,s){if(!n[o]){if(!e[o]){var l="function"==typeof require&&require;if(!s&&l)return l(o,!0);if(r)return r(o,!0);var d=new Error("Cannot find module '"+o+"'");throw d.code="MODULE_NOT_FOUND",d}var u=n[o]={exports:{}};e[o][0].call(u.exports,function(t){var n=e[o][1][t];return a(n?n:t)},u,u.exports,t,e,n,i)}return n[o].exports}for(var r="function"==typeof require&&require,o=0;o<i.length;o++)a(i[o]);return a}({1:[function(e,t){var n={date:"June 7, 2087 15:03:25",refresh:1e3,offset:0,onEnd:function(){},render:function(e){this.el.innerHTML="<div class='date-years'>"+e.years+"<em>years</em> </div><div class='date-days'>"+e.days+"<em>days</em> </div><div class='date-hours'>"+this.leadingZeros(e.hours)+"<em>hours</em> </div><div class='date-minutes'>"+this.leadingZeros(e.min)+"<em>minutes</em> </div><div class='date-seconds'>"+this.leadingZeros(e.sec)+"<em>seconds</em> </div>"}},i=function(e,t){this.el=e,this.options={},this.interval=!1;for(var i in n)n.hasOwnProperty(i)&&(this.options[i]="undefined"!=typeof t[i]?t[i]:n[i],"date"===i&&"object"!=typeof this.options.date&&(this.options.date=new Date(this.options.date)),"function"==typeof this.options[i]&&(this.options[i]=this.options[i].bind(this)));this.getDiffDate=function(){var e=(this.options.date.getTime()-Date.now()+this.options.offset)/1e3,t={years:0,days:0,hours:0,min:0,sec:0,millisec:0};return 0>=e?(this.interval&&(this.stop(),this.options.onEnd()),t):(e>=31557600&&(t.years=Math.floor(e/31557600),e-=365.25*t.years*86400),e>=86400&&(t.days=Math.floor(e/86400),e-=86400*t.days),e>=3600&&(t.hours=Math.floor(e/3600),e-=3600*t.hours),e>=60&&(t.min=Math.floor(e/60),e-=60*t.min),t.sec=Math.round(e),t.millisec=e%1*1e3,t)}.bind(this),this.leadingZeros=function(e,t){return t=t||2,e=String(e),e.length>t?e:(Array(t+1).join("0")+e).substr(-t)},this.update=function(e){return"object"!=typeof e&&(e=new Date(e)),this.options.date=e,this.render(),this}.bind(this),this.stop=function(){return this.interval&&(clearInterval(this.interval),this.interval=!1),this}.bind(this),this.render=function(){return this.options.render(this.getDiffDate()),this}.bind(this),this.start=function(){return this.interval?void 0:(this.render(),this.options.refresh&&(this.interval=setInterval(this.render,this.options.refresh)),this)}.bind(this),this.updateOffset=function(e){return this.options.offset=e,this}.bind(this),this.start()};t.exports=i},{}],2:[function(t,n){var i=t("./countdown.js"),a="countdown",r="date";jQuery.fn.countdown=function(t){return e.each(this,function(n,o){var s=e(o);s.data(a)||(s.data(r)&&(t.date=s.data(r)),s.data(a,new i(o,t)))})},n.exports=i},{"./countdown.js":1}]},{},[2])(2)})}(jQuery),function(){!function(e){var t=function(t,n){this.settings=n,this.checkSettings(),this.imgAnalyzerTimeout=null,this.entries=null,this.buildingRow={entriesBuff:[],width:0,height:0,aspectRatio:0},this.lastAnalyzedIndex=-1,this["yield"]={every:2,flushed:0},this.border=n.border>=0?n.border:n.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges(),this.offY=this.border,this.spinner={phase:0,timeSlot:150,$el:e('<div class="spinner"><span></span><span></span><span></span></div>'),intervalId:null},this.checkWidthIntervalId=null,this.galleryWidth=t.width(),this.$gallery=t};t.prototype.getSuffix=function(e,t){var n,i;for(n=e>t?e:t,i=0;i<this.suffixRanges.length;i++)if(n<=this.suffixRanges[i])return this.settings.sizeRangeSuffixes[this.suffixRanges[i]];return this.settings.sizeRangeSuffixes[this.suffixRanges[i-1]]},t.prototype.removeSuffix=function(e,t){return e.substring(0,e.length-t.length)},t.prototype.endsWith=function(e,t){return-1!==e.indexOf(t,e.length-t.length)},t.prototype.getUsedSuffix=function(e){for(var t in this.settings.sizeRangeSuffixes)if(this.settings.sizeRangeSuffixes.hasOwnProperty(t)){if(0===this.settings.sizeRangeSuffixes[t].length)continue;if(this.endsWith(e,this.settings.sizeRangeSuffixes[t]))return this.settings.sizeRangeSuffixes[t]}return""},t.prototype.newSrc=function(e,t,n){var i;if(this.settings.thumbnailPath)i=this.settings.thumbnailPath(e,t,n);else{var a=e.match(this.settings.extension),r=null!==a?a[0]:"";i=e.replace(this.settings.extension,""),i=this.removeSuffix(i,this.getUsedSuffix(i)),i+=this.getSuffix(t,n)+r}return i},t.prototype.showImg=function(e,t){this.settings.cssAnimation?(e.addClass("entry-visible"),t&&t()):e.stop().fadeTo(this.settings.imagesAnimationDuration,1,t)},t.prototype.extractImgSrcFromImage=function(e){var t="undefined"!=typeof e.data("safe-src")?e.data("safe-src"):e.attr("src");return e.data("jg.originalSrc",t),t},t.prototype.imgFromEntry=function(e){var t=e.find("> img");return 0===t.length&&(t=e.find("> a > img")),0===t.length?null:t},t.prototype.captionFromEntry=function(e){var t=e.find("> .caption");return 0===t.length?null:t},t.prototype.displayEntry=function(t,n,i,a,r,o){t.width(a),t.height(o),t.css("top",i),t.css("left",n);var s=this.imgFromEntry(t);if(null!==s){s.css("width",a),s.css("height",r),s.css("margin-left",-a/2),s.css("margin-top",-r/2);var l=s.attr("src"),d=this.newSrc(l,a,r);s.one("error",function(){s.attr("src",s.data("jg.originalSrc"))});var u=function(){l!==d&&s.attr("src",d)};"skipped"===t.data("jg.loaded")?this.onImageEvent(l,e.proxy(function(){this.showImg(t,u),t.data("jg.loaded",!0)},this)):this.showImg(t,u)}else this.showImg(t);this.displayEntryCaption(t)},t.prototype.displayEntryCaption=function(t){var n=this.imgFromEntry(t);if(null!==n&&this.settings.captions){var i=this.captionFromEntry(t);if(null===i){var a=n.attr("alt");this.isValidCaption(a)||(a=t.attr("title")),this.isValidCaption(a)&&(i=e('<div class="caption">'+a+"</div>"),t.append(i),t.data("jg.createdCaption",!0))}null!==i&&(this.settings.cssAnimation||i.stop().fadeTo(0,this.settings.captionSettings.nonVisibleOpacity),this.addCaptionEventsHandlers(t))}else this.removeCaptionEventsHandlers(t)},t.prototype.isValidCaption=function(e){return"undefined"!=typeof e&&e.length>0},t.prototype.onEntryMouseEnterForCaption=function(t){var n=this.captionFromEntry(e(t.currentTarget));this.settings.cssAnimation?n.addClass("caption-visible").removeClass("caption-hidden"):n.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.visibleOpacity)},t.prototype.onEntryMouseLeaveForCaption=function(t){var n=this.captionFromEntry(e(t.currentTarget));this.settings.cssAnimation?n.removeClass("caption-visible").removeClass("caption-hidden"):n.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.nonVisibleOpacity)},t.prototype.addCaptionEventsHandlers=function(t){var n=t.data("jg.captionMouseEvents");"undefined"==typeof n&&(n={mouseenter:e.proxy(this.onEntryMouseEnterForCaption,this),mouseleave:e.proxy(this.onEntryMouseLeaveForCaption,this)},t.on("mouseenter",void 0,void 0,n.mouseenter),t.on("mouseleave",void 0,void 0,n.mouseleave),t.data("jg.captionMouseEvents",n))},t.prototype.removeCaptionEventsHandlers=function(e){var t=e.data("jg.captionMouseEvents");"undefined"!=typeof t&&(e.off("mouseenter",void 0,t.mouseenter),e.off("mouseleave",void 0,t.mouseleave),e.removeData("jg.captionMouseEvents"))},t.prototype.prepareBuildingRow=function(e){var t,n,i,a,r,o=!0,s=0,l=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,d=l/this.buildingRow.aspectRatio,u=this.buildingRow.width/l>this.settings.justifyThreshold;if(e&&"hide"===this.settings.lastRow&&!u){for(t=0;t<this.buildingRow.entriesBuff.length;t++)n=this.buildingRow.entriesBuff[t],this.settings.cssAnimation?n.removeClass("entry-visible"):n.stop().fadeTo(0,0);return-1}for(e&&!u&&"justify"!==this.settings.lastRow&&"hide"!==this.settings.lastRow&&(o=!1),t=0;t<this.buildingRow.entriesBuff.length;t++)n=this.buildingRow.entriesBuff[t],i=n.data("jg.width")/n.data("jg.height"),o?(a=t===this.buildingRow.entriesBuff.length-1?l:d*i,r=d):(a=this.settings.rowHeight*i,r=this.settings.rowHeight),l-=Math.round(a),n.data("jg.jwidth",Math.round(a)),n.data("jg.jheight",Math.ceil(r)),(0===t||s>r)&&(s=r);return this.settings.fixedHeight&&s>this.settings.rowHeight&&(s=this.settings.rowHeight),this.buildingRow.height=s,o},t.prototype.clearBuildingRow=function(){this.buildingRow.entriesBuff=[],this.buildingRow.aspectRatio=0,this.buildingRow.width=0},t.prototype.flushRow=function(e){var t,n,i,a=this.settings,r=this.border;if(n=this.prepareBuildingRow(e),e&&"hide"===a.lastRow&&-1===this.buildingRow.height)return void this.clearBuildingRow();if(this.maxRowHeight.isPercentage?this.maxRowHeight.value*a.rowHeight<this.buildingRow.height&&(this.buildingRow.height=this.maxRowHeight.value*a.rowHeight):this.maxRowHeight.value>0&&this.maxRowHeight.value<this.buildingRow.height&&(this.buildingRow.height=this.maxRowHeight.value),"center"===a.lastRow||"right"===a.lastRow){var o=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*a.margins;for(i=0;i<this.buildingRow.entriesBuff.length;i++)t=this.buildingRow.entriesBuff[i],o-=t.data("jg.jwidth");"center"===a.lastRow?r+=o/2:"right"===a.lastRow&&(r+=o)}for(i=0;i<this.buildingRow.entriesBuff.length;i++)t=this.buildingRow.entriesBuff[i],this.displayEntry(t,r,this.offY,t.data("jg.jwidth"),t.data("jg.jheight"),this.buildingRow.height),r+=t.data("jg.jwidth")+a.margins;this.$gallery.height(this.offY+this.buildingRow.height+this.border+(this.isSpinnerActive()?this.getSpinnerHeight():0)),(!e||this.buildingRow.height<=a.rowHeight&&n)&&(this.offY+=this.buildingRow.height+a.margins,this.clearBuildingRow(),this.$gallery.trigger("jg.rowflush"))},t.prototype.checkWidth=function(){this.checkWidthIntervalId=setInterval(e.proxy(function(){var e=parseFloat(this.$gallery.width());Math.abs(e-this.galleryWidth)>this.settings.refreshSensitivity&&(this.galleryWidth=e,this.rewind(),this.startImgAnalyzer(!0))},this),this.settings.refreshTime)},t.prototype.isSpinnerActive=function(){return null!==this.spinner.intervalId},t.prototype.getSpinnerHeight=function(){return this.spinner.$el.innerHeight()},t.prototype.stopLoadingSpinnerAnimation=function(){clearInterval(this.spinner.intervalId),this.spinner.intervalId=null,this.$gallery.height(this.$gallery.height()-this.getSpinnerHeight()),this.spinner.$el.detach()},t.prototype.startLoadingSpinnerAnimation=function(){var e=this.spinner,t=e.$el.find("span");clearInterval(e.intervalId),this.$gallery.append(e.$el),this.$gallery.height(this.offY+this.buildingRow.height+this.getSpinnerHeight()),e.intervalId=setInterval(function(){e.phase<t.length?t.eq(e.phase).fadeTo(e.timeSlot,1):t.eq(e.phase-t.length).fadeTo(e.timeSlot,0),e.phase=(e.phase+1)%(2*t.length)},e.timeSlot)},t.prototype.rewind=function(){this.lastAnalyzedIndex=-1,this.offY=this.border,this.clearBuildingRow()},t.prototype.updateEntries=function(t){return this.entries=this.$gallery.find(this.settings.selector).toArray(),0===this.entries.length?!1:(this.settings.filter?this.modifyEntries(this.filterArray,t):this.modifyEntries(this.resetFilters,t),e.isFunction(this.settings.sort)?this.modifyEntries(this.sortArray,t):this.settings.randomize&&this.modifyEntries(this.shuffleArray,t),!0)},t.prototype.insertToGallery=function(t){var n=this;e.each(t,function(){e(this).appendTo(n.$gallery)})},t.prototype.shuffleArray=function(e){var t,n,i;for(t=e.length-1;t>0;t--)n=Math.floor(Math.random()*(t+1)),i=e[t],e[t]=e[n],e[n]=i;return this.insertToGallery(e),e},t.prototype.sortArray=function(e){return e.sort(this.settings.sort),this.insertToGallery(e),e},t.prototype.resetFilters=function(t){for(var n=0;n<t.length;n++)e(t[n]).removeClass("jg-filtered");return t},t.prototype.filterArray=function(t){var n=this.settings;return"string"===e.type(n.filter)?t.filter(function(t){var i=e(t);return i.is(n.filter)?(i.removeClass("jg-filtered"),!0):(i.addClass("jg-filtered"),!1)}):e.isFunction(n.filter)?t.filter(n.filter):void 0},t.prototype.modifyEntries=function(e,t){var n=t?this.entries.splice(this.lastAnalyzedIndex+1,this.entries.length-this.lastAnalyzedIndex-1):this.entries;n=e.call(this,n),this.entries=t?this.entries.concat(n):n},t.prototype.destroy=function(){clearInterval(this.checkWidthIntervalId),e.each(this.entries,e.proxy(function(t,n){var i=e(n);i.css("width",""),i.css("height",""),i.css("top",""),i.css("left",""),i.data("jg.loaded",void 0),i.removeClass("jg-entry");var a=this.imgFromEntry(i);a.css("width",""),a.css("height",""),a.css("margin-left",""),a.css("margin-top",""),a.attr("src",a.data("jg.originalSrc")),a.data("jg.originalSrc",void 0),this.removeCaptionEventsHandlers(i);var r=this.captionFromEntry(i);i.data("jg.createdCaption")?(i.data("jg.createdCaption",void 0),null!==r&&r.remove()):null!==r&&r.fadeTo(0,1)},this)),this.$gallery.css("height",""),this.$gallery.removeClass("justified-gallery"),this.$gallery.data("jg.controller",void 0)},t.prototype.analyzeImages=function(t){for(var n=this.lastAnalyzedIndex+1;n<this.entries.length;n++){var i=e(this.entries[n]);if(i.data("jg.loaded")===!0||"skipped"===i.data("jg.loaded")){var a=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,r=i.data("jg.width")/i.data("jg.height");if(a/(this.buildingRow.aspectRatio+r)<this.settings.rowHeight&&(this.flushRow(!1),++this["yield"].flushed>=this["yield"].every))return void this.startImgAnalyzer(t);this.buildingRow.entriesBuff.push(i),this.buildingRow.aspectRatio+=r,this.buildingRow.width+=r*this.settings.rowHeight,this.lastAnalyzedIndex=n}else if("error"!==i.data("jg.loaded"))return}this.buildingRow.entriesBuff.length>0&&this.flushRow(!0),this.isSpinnerActive()&&this.stopLoadingSpinnerAnimation(),this.stopImgAnalyzerStarter(),this.$gallery.trigger(t?"jg.resize":"jg.complete")},t.prototype.stopImgAnalyzerStarter=function(){this["yield"].flushed=0,null!==this.imgAnalyzerTimeout&&clearTimeout(this.imgAnalyzerTimeout)},t.prototype.startImgAnalyzer=function(e){var t=this;this.stopImgAnalyzerStarter(),this.imgAnalyzerTimeout=setTimeout(function(){t.analyzeImages(e)},.001)},t.prototype.onImageEvent=function(t,n,i){if(n||i){var a=new Image,r=e(a);n&&r.one("load",function(){r.off("load error"),n(a)}),i&&r.one("error",function(){r.off("load error"),i(a)}),a.src=t}},t.prototype.init=function(){var t=!1,n=!1,i=this;e.each(this.entries,function(a,r){var o=e(r),s=i.imgFromEntry(o);if(o.addClass("jg-entry"),o.data("jg.loaded")!==!0&&"skipped"!==o.data("jg.loaded"))if(null!==i.settings.rel&&o.attr("rel",i.settings.rel),null!==i.settings.target&&o.attr("target",i.settings.target),null!==s){var l=i.extractImgSrcFromImage(s);if(s.attr("src",l),i.settings.waitThumbnailsLoad===!1){var d=parseFloat(s.attr("width")),u=parseFloat(s.attr("height"));if(!isNaN(d)&&!isNaN(u))return o.data("jg.width",d),o.data("jg.height",u),o.data("jg.loaded","skipped"),n=!0,i.startImgAnalyzer(!1),!0}o.data("jg.loaded",!1),t=!0,i.isSpinnerActive()||i.startLoadingSpinnerAnimation(),i.onImageEvent(l,function(e){o.data("jg.width",e.width),o.data("jg.height",e.height),o.data("jg.loaded",!0),i.startImgAnalyzer(!1)},function(){o.data("jg.loaded","error"),i.startImgAnalyzer(!1)})}else o.data("jg.loaded",!0),o.data("jg.width",o.width()|parseFloat(o.css("width"))|1),o.data("jg.height",o.height()|parseFloat(o.css("height"))|1)}),t||n||this.startImgAnalyzer(!1),this.checkWidth()},t.prototype.checkOrConvertNumber=function(t,n){if("string"===e.type(t[n])&&(t[n]=parseFloat(t[n])),"number"!==e.type(t[n]))throw n+" must be a number";if(isNaN(t[n]))throw"invalid number for "+n},t.prototype.checkSizeRangesSuffixes=function(){if("object"!==e.type(this.settings.sizeRangeSuffixes))throw"sizeRangeSuffixes must be defined and must be an object";var t=[];for(var n in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(n)&&t.push(n);for(var i={0:""},a=0;a<t.length;a++)if("string"===e.type(t[a]))try{var r=parseInt(t[a].replace(/^[a-z]+/,""),10);i[r]=this.settings.sizeRangeSuffixes[t[a]]}catch(o){throw"sizeRangeSuffixes keys must contains correct numbers ("+o+")"}else i[t[a]]=this.settings.sizeRangeSuffixes[t[a]];this.settings.sizeRangeSuffixes=i},t.prototype.retrieveMaxRowHeight=function(){var t={};if("string"===e.type(this.settings.maxRowHeight))this.settings.maxRowHeight.match(/^[0-9]+%$/)?(t.value=parseFloat(this.settings.maxRowHeight.match(/^([0-9]+)%$/)[1])/100,t.isPercentage=!1):(t.value=parseFloat(this.settings.maxRowHeight),t.isPercentage=!0);else{if("number"!==e.type(this.settings.maxRowHeight))throw"maxRowHeight must be a number or a percentage";t.value=this.settings.maxRowHeight,t.isPercentage=!1}if(isNaN(t.value))throw"invalid number for maxRowHeight";return t.isPercentage?t.value<100&&(t.value=100):t.value>0&&t.value<this.settings.rowHeight&&(t.value=this.settings.rowHeight),t},t.prototype.checkSettings=function(){if(this.checkSizeRangesSuffixes(),this.checkOrConvertNumber(this.settings,"rowHeight"),this.checkOrConvertNumber(this.settings,"margins"),this.checkOrConvertNumber(this.settings,"border"),"justify"!==this.settings.lastRow&&"nojustify"!==this.settings.lastRow&&"left"!==this.settings.lastRow&&"center"!==this.settings.lastRow&&"right"!==this.settings.lastRow&&"hide"!==this.settings.lastRow)throw'lastRow must be "justify", "nojustify", "left", "center", "right" or "hide"';if(this.checkOrConvertNumber(this.settings,"justifyThreshold"),this.settings.justifyThreshold<0||this.settings.justifyThreshold>1)throw"justifyThreshold must be in the interval [0,1]";if("boolean"!==e.type(this.settings.cssAnimation))throw"cssAnimation must be a boolean";if("boolean"!==e.type(this.settings.captions))throw"captions must be a boolean";if(this.checkOrConvertNumber(this.settings.captionSettings,"animationDuration"),this.checkOrConvertNumber(this.settings.captionSettings,"visibleOpacity"),this.settings.captionSettings.visibleOpacity<0||this.settings.captionSettings.visibleOpacity>1)throw"captionSettings.visibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings.captionSettings,"nonVisibleOpacity"),this.settings.captionSettings.nonVisibleOpacity<0||this.settings.captionSettings.nonVisibleOpacity>1)throw"captionSettings.nonVisibleOpacity must be in the interval [0, 1]";if("boolean"!==e.type(this.settings.fixedHeight))throw"fixedHeight must be a boolean";if(this.checkOrConvertNumber(this.settings,"imagesAnimationDuration"),this.checkOrConvertNumber(this.settings,"refreshTime"),this.checkOrConvertNumber(this.settings,"refreshSensitivity"),"boolean"!==e.type(this.settings.randomize))throw"randomize must be a boolean";if("string"!==e.type(this.settings.selector))throw"selector must be a string";if(this.settings.sort!==!1&&!e.isFunction(this.settings.sort))throw"sort must be false or a comparison function";if(this.settings.filter!==!1&&!e.isFunction(this.settings.filter)&&"string"!==e.type(this.settings.filter))throw"filter must be false, a string or a filter function"},t.prototype.retrieveSuffixRanges=function(){var e=[];for(var t in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(t)&&e.push(parseInt(t,10));return e.sort(function(e,t){return e>t?1:t>e?-1:0}),e},t.prototype.updateSettings=function(t){this.settings=e.extend({},this.settings,t),this.checkSettings(),this.border=this.settings.border>=0?this.settings.border:this.settings.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges()},e.fn.justifiedGallery=function(n){return this.each(function(i,a){var r=e(a);r.addClass("justified-gallery");var o=r.data("jg.controller");if("undefined"==typeof o){if("undefined"!=typeof n&&null!==n&&"object"!==e.type(n)){if("destroy"===n)return;throw"The argument must be an object"}o=new t(r,e.extend({},e.fn.justifiedGallery.defaults,n)),r.data("jg.controller",o)}else if("norewind"===n);else{if("destroy"===n)return void o.destroy();o.updateSettings(n),o.rewind()}o.updateEntries("norewind"===n)&&o.init()})},e.fn.justifiedGallery.defaults={sizeRangeSuffixes:{},thumbnailPath:void 0,rowHeight:120,maxRowHeight:-1,margins:1,border:-1,lastRow:"nojustify",justifyThreshold:.75,fixedHeight:!1,waitThumbnailsLoad:!0,captions:!0,cssAnimation:!1,imagesAnimationDuration:500,captionSettings:{animationDuration:500,visibleOpacity:.7,nonVisibleOpacity:0},rel:null,target:null,extension:/\.[^.\\/]+$/,refreshTime:200,refreshSensitivity:0,randomize:!1,sort:!1,filter:!1,selector:"> a, > div:not(.spinner)"}}(jQuery)}(jQuery),function(){!function(e){"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e("undefined"!=typeof module&&module.exports?require("jquery"):jQuery)}(function(e){function t(t){return!t||void 0!==t.allowPageScroll||void 0===t.swipe&&void 0===t.swipeStatus||(t.allowPageScroll=u),void 0!==t.click&&void 0===t.tap&&(t.tap=t.click),t||(t={}),t=e.extend({},e.fn.swipe.defaults,t),this.each(function(){var i=e(this),a=i.data(A);a||(a=new n(this,t),i.data(A,a))})}function n(t,n){function i(t){if(!(de()||e(t.target).closest(n.excludedElements,Ge).length>0)){var i,a=t.originalEvent?t.originalEvent:t,r=a.touches,o=r?r[0]:a;return Ve=x,r?Xe=r.length:n.preventDefaultEvents!==!1&&t.preventDefault(),ze=0,Re=null,Le=null,qe=null,He=0,Ne=0,Oe=0,Be=1,Fe=0,We=ge(),se(),ce(0,o),!r||Xe===n.fingers||n.fingers===y||W()?(_e=ke(),2==Xe&&(ce(1,r[1]),Ne=Oe=ye(Ye[0].start,Ye[1].start)),(n.swipeStatus||n.pinchStatus)&&(i=R(a,Ve))):i=!1,i===!1?(Ve=S,R(a,Ve),i):(n.hold&&(et=setTimeout(e.proxy(function(){Ge.trigger("hold",[a.target]),n.hold&&(i=n.hold.call(Ge,a,a.target))},this),n.longTapThreshold)),ue(!0),null)}}function P(e){var t=e.originalEvent?e.originalEvent:e;if(Ve!==C&&Ve!==S&&!le()){var i,a=t.touches,r=a?a[0]:t,o=pe(r);if(Ue=ke(),a&&(Xe=a.length),n.hold&&clearTimeout(et),Ve=T,2==Xe&&(0==Ne?(ce(1,a[1]),Ne=Oe=ye(Ye[0].start,Ye[1].start)):(pe(a[1]),Oe=ye(Ye[0].end,Ye[1].end),qe=xe(Ye[0].end,Ye[1].end)),Be=be(Ne,Oe),Fe=Math.abs(Ne-Oe)),Xe===n.fingers||n.fingers===y||!a||W()){if(Re=Se(o.start,o.end),Le=Se(o.last,o.end),F(e,Le),ze=Te(o.start,o.end),He=we(),he(Re,ze),i=R(t,Ve),!n.triggerOnTouchEnd||n.triggerOnTouchLeave){var s=!0;if(n.triggerOnTouchLeave){var l=Ee(this);s=$e(o.end,l)}!n.triggerOnTouchEnd&&s?Ve=z(T):n.triggerOnTouchLeave&&!s&&(Ve=z(C)),Ve!=S&&Ve!=C||R(t,Ve)}}else Ve=S,R(t,Ve);i===!1&&(Ve=S,R(t,Ve))}}function D(e){var t=e.originalEvent?e.originalEvent:e,i=t.touches;if(i){if(i.length&&!le())return oe(t),!0;if(i.length&&le())return!0}return le()&&(Xe=Ke),Ue=ke(),He=we(),N()||!H()?(Ve=S,R(t,Ve)):n.triggerOnTouchEnd||0==n.triggerOnTouchEnd&&Ve===T?(n.preventDefaultEvents!==!1&&e.preventDefault(),Ve=C,R(t,Ve)):!n.triggerOnTouchEnd&&Q()?(Ve=C,L(t,Ve,h)):Ve===T&&(Ve=S,R(t,Ve)),ue(!1),null}function M(){Xe=0,Ue=0,_e=0,Ne=0,Oe=0,Be=1,se(),ue(!1)}function I(e){var t=e.originalEvent?e.originalEvent:e;n.triggerOnTouchLeave&&(Ve=z(C),R(t,Ve))}function j(){Ge.unbind(Pe,i),Ge.unbind(je,M),Ge.unbind(De,P),Ge.unbind(Me,D),Ie&&Ge.unbind(Ie,I),ue(!1)}function z(e){var t=e,i=B(),a=H(),r=N();return!i||r?t=S:!a||e!=T||n.triggerOnTouchEnd&&!n.triggerOnTouchLeave?!a&&e==C&&n.triggerOnTouchLeave&&(t=S):t=C,t}function R(e,t){var n,i=e.touches;return(Y()||X())&&(n=L(e,t,p)),(G()||W())&&n!==!1&&(n=L(e,t,f)),ae()&&n!==!1?n=L(e,t,m):re()&&n!==!1?n=L(e,t,g):ie()&&n!==!1&&(n=L(e,t,h)),t===S&&(X()&&(n=L(e,t,p)),W()&&(n=L(e,t,f)),M(e)),t===C&&(i?i.length||M(e):M(e)),n}function L(t,i,u){var c;if(u==p){if(Ge.trigger("swipeStatus",[i,Re||null,ze||0,He||0,Xe,Ye,Le]),n.swipeStatus&&(c=n.swipeStatus.call(Ge,t,i,Re||null,ze||0,He||0,Xe,Ye,Le),c===!1))return!1;if(i==C&&V()){if(clearTimeout(Ze),clearTimeout(et),Ge.trigger("swipe",[Re,ze,He,Xe,Ye,Le]),n.swipe&&(c=n.swipe.call(Ge,t,Re,ze,He,Xe,Ye,Le),c===!1))return!1;switch(Re){case a:Ge.trigger("swipeLeft",[Re,ze,He,Xe,Ye,Le]),n.swipeLeft&&(c=n.swipeLeft.call(Ge,t,Re,ze,He,Xe,Ye,Le));break;case r:Ge.trigger("swipeRight",[Re,ze,He,Xe,Ye,Le]),n.swipeRight&&(c=n.swipeRight.call(Ge,t,Re,ze,He,Xe,Ye,Le));break;case o:Ge.trigger("swipeUp",[Re,ze,He,Xe,Ye,Le]),n.swipeUp&&(c=n.swipeUp.call(Ge,t,Re,ze,He,Xe,Ye,Le));break;case s:Ge.trigger("swipeDown",[Re,ze,He,Xe,Ye,Le]),n.swipeDown&&(c=n.swipeDown.call(Ge,t,Re,ze,He,Xe,Ye,Le))}}}if(u==f){if(Ge.trigger("pinchStatus",[i,qe||null,Fe||0,He||0,Xe,Be,Ye]),
  n.pinchStatus&&(c=n.pinchStatus.call(Ge,t,i,qe||null,Fe||0,He||0,Xe,Be,Ye),c===!1))return!1;if(i==C&&q())switch(qe){case l:Ge.trigger("pinchIn",[qe||null,Fe||0,He||0,Xe,Be,Ye]),n.pinchIn&&(c=n.pinchIn.call(Ge,t,qe||null,Fe||0,He||0,Xe,Be,Ye));break;case d:Ge.trigger("pinchOut",[qe||null,Fe||0,He||0,Xe,Be,Ye]),n.pinchOut&&(c=n.pinchOut.call(Ge,t,qe||null,Fe||0,He||0,Xe,Be,Ye))}}return u==h?i!==S&&i!==C||(clearTimeout(Ze),clearTimeout(et),K()&&!ee()?(Je=ke(),Ze=setTimeout(e.proxy(function(){Je=null,Ge.trigger("tap",[t.target]),n.tap&&(c=n.tap.call(Ge,t,t.target))},this),n.doubleTapThreshold)):(Je=null,Ge.trigger("tap",[t.target]),n.tap&&(c=n.tap.call(Ge,t,t.target)))):u==m?i!==S&&i!==C||(clearTimeout(Ze),clearTimeout(et),Je=null,Ge.trigger("doubletap",[t.target]),n.doubleTap&&(c=n.doubleTap.call(Ge,t,t.target))):u==g&&(i!==S&&i!==C||(clearTimeout(Ze),Je=null,Ge.trigger("longtap",[t.target]),n.longTap&&(c=n.longTap.call(Ge,t,t.target)))),c}function H(){var e=!0;return null!==n.threshold&&(e=ze>=n.threshold),e}function N(){var e=!1;return null!==n.cancelThreshold&&null!==Re&&(e=me(Re)-ze>=n.cancelThreshold),e}function O(){return null!==n.pinchThreshold?Fe>=n.pinchThreshold:!0}function B(){var e;return e=n.maxTimeThreshold?!(He>=n.maxTimeThreshold):!0}function F(e,t){if(n.preventDefaultEvents!==!1)if(n.allowPageScroll===u)e.preventDefault();else{var i=n.allowPageScroll===c;switch(t){case a:(n.swipeLeft&&i||!i&&n.allowPageScroll!=v)&&e.preventDefault();break;case r:(n.swipeRight&&i||!i&&n.allowPageScroll!=v)&&e.preventDefault();break;case o:(n.swipeUp&&i||!i&&n.allowPageScroll!=w)&&e.preventDefault();break;case s:(n.swipeDown&&i||!i&&n.allowPageScroll!=w)&&e.preventDefault()}}}function q(){var e=_(),t=U(),n=O();return e&&t&&n}function W(){return!!(n.pinchStatus||n.pinchIn||n.pinchOut)}function G(){return!(!q()||!W())}function V(){var e=B(),t=H(),n=_(),i=U(),a=N(),r=!a&&i&&n&&t&&e;return r}function X(){return!!(n.swipe||n.swipeStatus||n.swipeLeft||n.swipeRight||n.swipeUp||n.swipeDown)}function Y(){return!(!V()||!X())}function _(){return Xe===n.fingers||n.fingers===y||!k}function U(){return 0!==Ye[0].end.x}function Q(){return!!n.tap}function K(){return!!n.doubleTap}function J(){return!!n.longTap}function Z(){if(null==Je)return!1;var e=ke();return K()&&e-Je<=n.doubleTapThreshold}function ee(){return Z()}function te(){return(1===Xe||!k)&&(isNaN(ze)||ze<n.threshold)}function ne(){return He>n.longTapThreshold&&b>ze}function ie(){return!(!te()||!Q())}function ae(){return!(!Z()||!K())}function re(){return!(!ne()||!J())}function oe(e){Qe=ke(),Ke=e.touches.length+1}function se(){Qe=0,Ke=0}function le(){var e=!1;if(Qe){var t=ke()-Qe;t<=n.fingerReleaseThreshold&&(e=!0)}return e}function de(){return!(Ge.data(A+"_intouch")!==!0)}function ue(e){Ge&&(e===!0?(Ge.bind(De,P),Ge.bind(Me,D),Ie&&Ge.bind(Ie,I)):(Ge.unbind(De,P,!1),Ge.unbind(Me,D,!1),Ie&&Ge.unbind(Ie,I,!1)),Ge.data(A+"_intouch",e===!0))}function ce(e,t){var n={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return n.start.x=n.last.x=n.end.x=t.pageX||t.clientX,n.start.y=n.last.y=n.end.y=t.pageY||t.clientY,Ye[e]=n,n}function pe(e){var t=void 0!==e.identifier?e.identifier:0,n=fe(t);return null===n&&(n=ce(t,e)),n.last.x=n.end.x,n.last.y=n.end.y,n.end.x=e.pageX||e.clientX,n.end.y=e.pageY||e.clientY,n}function fe(e){return Ye[e]||null}function he(e,t){t=Math.max(t,me(e)),We[e].distance=t}function me(e){return We[e]?We[e].distance:void 0}function ge(){var e={};return e[a]=ve(a),e[r]=ve(r),e[o]=ve(o),e[s]=ve(s),e}function ve(e){return{direction:e,distance:0}}function we(){return Ue-_e}function ye(e,t){var n=Math.abs(e.x-t.x),i=Math.abs(e.y-t.y);return Math.round(Math.sqrt(n*n+i*i))}function be(e,t){var n=t/e*1;return n.toFixed(2)}function xe(){return 1>Be?d:l}function Te(e,t){return Math.round(Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)))}function Ce(e,t){var n=e.x-t.x,i=t.y-e.y,a=Math.atan2(i,n),r=Math.round(180*a/Math.PI);return 0>r&&(r=360-Math.abs(r)),r}function Se(e,t){var n=Ce(e,t);return 45>=n&&n>=0?a:360>=n&&n>=315?a:n>=135&&225>=n?r:n>45&&135>n?s:o}function ke(){var e=new Date;return e.getTime()}function Ee(t){t=e(t);var n=t.offset(),i={left:n.left,right:n.left+t.outerWidth(),top:n.top,bottom:n.top+t.outerHeight()};return i}function $e(e,t){return e.x>t.left&&e.x<t.right&&e.y>t.top&&e.y<t.bottom}var n=e.extend({},n),Ae=k||$||!n.fallbackToMouseEvents,Pe=Ae?$?E?"MSPointerDown":"pointerdown":"touchstart":"mousedown",De=Ae?$?E?"MSPointerMove":"pointermove":"touchmove":"mousemove",Me=Ae?$?E?"MSPointerUp":"pointerup":"touchend":"mouseup",Ie=Ae?$?"mouseleave":null:"mouseleave",je=$?E?"MSPointerCancel":"pointercancel":"touchcancel",ze=0,Re=null,Le=null,He=0,Ne=0,Oe=0,Be=1,Fe=0,qe=0,We=null,Ge=e(t),Ve="start",Xe=0,Ye={},_e=0,Ue=0,Qe=0,Ke=0,Je=0,Ze=null,et=null;try{Ge.bind(Pe,i),Ge.bind(je,M)}catch(tt){e.error("events not supported "+Pe+","+je+" on jQuery.swipe")}this.enable=function(){return Ge.bind(Pe,i),Ge.bind(je,M),Ge},this.disable=function(){return j(),Ge},this.destroy=function(){j(),Ge.data(A,null),Ge=null},this.option=function(t,i){if("object"==typeof t)n=e.extend(n,t);else if(void 0!==n[t]){if(void 0===i)return n[t];n[t]=i}else{if(!t)return n;e.error("Option "+t+" does not exist on jQuery.swipe.options")}return null}}var i="1.6.15",a="left",r="right",o="up",s="down",l="in",d="out",u="none",c="auto",p="swipe",f="pinch",h="tap",m="doubletap",g="longtap",v="horizontal",w="vertical",y="all",b=10,x="start",T="move",C="end",S="cancel",k="ontouchstart"in window,E=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled&&!k,$=(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&!k,A="TouchSwipe",P={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:"label, button, input, select, textarea, a, .noSwipe, .swiper-wrapper",preventDefaultEvents:!1};e.fn.swipe=function(n){var i=e(this),a=i.data(A);if(a&&"string"==typeof n){if(a[n])return a[n].apply(this,Array.prototype.slice.call(arguments,1));e.error("Method "+n+" does not exist on jQuery.swipe")}else if(a&&"object"==typeof n)a.option.apply(this,arguments);else if(!(a||"object"!=typeof n&&n))return t.apply(this,arguments);return i},e.fn.swipe.version=i,e.fn.swipe.defaults=P,e.fn.swipe.phases={PHASE_START:x,PHASE_MOVE:T,PHASE_END:C,PHASE_CANCEL:S},e.fn.swipe.directions={LEFT:a,RIGHT:r,UP:o,DOWN:s,IN:l,OUT:d},e.fn.swipe.pageScroll={NONE:u,HORIZONTAL:v,VERTICAL:w,AUTO:c},e.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:y}})}(jQuery),function(){!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){"use strict";function t(t){return!t.nodeName||-1!==e.inArray(t.nodeName.toLowerCase(),["iframe","#document","html","body"])}function n(t){return e.isFunction(t)||e.isPlainObject(t)?t:{top:t,left:t}}var i=e.scrollTo=function(t,n,i){return e(window).scrollTo(t,n,i)};return i.defaults={axis:"xy",duration:0,limit:!0},e.fn.scrollTo=function(a,r,o){"object"==typeof r&&(o=r,r=0),"function"==typeof o&&(o={onAfter:o}),"max"===a&&(a=9e9),o=e.extend({},i.defaults,o),r=r||o.duration;var s=o.queue&&1<o.axis.length;return s&&(r/=2),o.offset=n(o.offset),o.over=n(o.over),this.each(function(){function l(t){var n=e.extend({},o,{queue:!0,duration:r,complete:t&&function(){t.call(c,f,o)}});p.animate(h,n)}if(null!==a){var d,u=t(this),c=u?this.contentWindow||window:this,p=e(c),f=a,h={};switch(typeof f){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(f)){f=n(f);break}f=u?e(f):e(f,c);case"object":if(0===f.length)return;(f.is||f.style)&&(d=(f=e(f)).offset())}var m=e.isFunction(o.offset)&&o.offset(c,f)||o.offset;e.each(o.axis.split(""),function(e,t){var n="x"===t?"Left":"Top",a=n.toLowerCase(),r="scroll"+n,g=p[r](),v=i.max(c,t);d?(h[r]=d[a]+(u?0:g-p.offset()[a]),o.margin&&(h[r]-=parseInt(f.css("margin"+n),10)||0,h[r]-=parseInt(f.css("border"+n+"Width"),10)||0),h[r]+=m[a]||0,o.over[a]&&(h[r]+=f["x"===t?"width":"height"]()*o.over[a])):(n=f[a],h[r]=n.slice&&"%"===n.slice(-1)?parseFloat(n)/100*v:n),o.limit&&/^\d+$/.test(h[r])&&(h[r]=0>=h[r]?0:Math.min(h[r],v)),!e&&1<o.axis.length&&(g===h[r]?h={}:s&&(l(o.onAfterFirst),h={}))}),l(o.onAfter)}})},i.max=function(n,i){var a="x"===i?"Width":"Height",r="scroll"+a;if(!t(n))return n[r]-e(n)[a.toLowerCase()]();var a="client"+a,o=n.ownerDocument||n.document,s=o.documentElement,o=o.body;return Math.max(s[r],o[r])-Math.min(s[a],o[a])},e.Tween.propHooks.scrollLeft=e.Tween.propHooks.scrollTop={get:function(t){return e(t.elem)[t.prop]()},set:function(t){var n=this.get(t);if(t.options.interrupt&&t._last&&t._last!==n)return e(t.elem).stop();var i=Math.round(t.now);n!==i&&(e(t.elem)[t.prop](i),t._last=this.get(t))}},i})}(jQuery),function(e){e.fn.toggle2classes=function(t,n){return t&&n?this.each(function(){var i=e(this);i.hasClass(t)||i.hasClass(n)?i.toggleClass(t+" "+n):i.addClass(t)}):this}}(jQuery),function(){!function(e){"use strict";"object"==typeof module&&"object"==typeof module.exports?e(require("jquery"),window,document):e(jQuery,window,document)}(function(e,t,n,i){"use strict";if(!t.history.pushState)return e.fn.smoothState=function(){return this},void(e.fn.smoothState.options={});if(!e.fn.smoothState){var a=e("html, body"),r=t.console,o={debug:!1,anchors:"a",hrefRegex:"",forms:"form",allowFormCaching:!1,repeatDelay:500,blacklist:".no-smoothState",prefetch:!1,prefetchOn:"mouseover touchstart",prefetchBlacklist:".no-prefetch",cacheLength:0,loadingClass:"is-loading",scroll:!0,alterRequest:function(e){return e},alterChangeState:function(e){return e},onBefore:function(){},onStart:{duration:0,render:function(){}},onProgress:{duration:0,render:function(){}},onReady:{duration:0,render:function(e,t){e.html(t)}},onAfter:function(){}},s={isExternal:function(e){var n=e.match(/^([^:\/?#]+:)?(?:\/\/([^\/?#]*))?([^?#]+)?(\?[^#]*)?(#.*)?/);return"string"==typeof n[1]&&n[1].length>0&&n[1].toLowerCase()!==t.location.protocol?!0:"string"==typeof n[2]&&n[2].length>0&&n[2].replace(new RegExp(":("+{"http:":80,"https:":443}[t.location.protocol]+")?$"),"")!==t.location.host},stripHash:function(e){return e.replace(/#.*/,"")},isHash:function(e,n){n=n||t.location.href;var i=e.indexOf("#")>-1,a=s.stripHash(e)===s.stripHash(n);return i&&a},translate:function(t){var n={dataType:"html",type:"GET"};return t="string"==typeof t?e.extend({},n,{url:t}):e.extend({},n,t)},shouldLoadAnchor:function(e,t,n){var a=e.prop("href");return!(s.isExternal(a)||s.isHash(a)||e.is(t)||e.prop("target")||typeof n!==i&&""!==n&&-1===e.prop("href").search(n))},clearIfOverCapacity:function(e,t){return Object.keys||(Object.keys=function(e){var t,n=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.push(t);return n}),Object.keys(e).length>t&&(e={}),e},storePageIn:function(t,n,i,a,r){var o=e("<html></html>").append(e(i));return t[n]={status:"loaded",title:o.find("title").first().text(),html:o.find("#"+a),doc:i,state:r},t},triggerAllAnimationEndEvent:function(t,n){n=" "+n||"";var i=0,a="animationstart webkitAnimationStart oanimationstart MSAnimationStart",r="animationend webkitAnimationEnd oanimationend MSAnimationEnd",o="allanimationend",l=function(n){e(n.delegateTarget).is(t)&&(n.stopPropagation(),i++)},d=function(n){e(n.delegateTarget).is(t)&&(n.stopPropagation(),i--,0===i&&t.trigger(o))};t.on(a,l),t.on(r,d),t.on("allanimationend"+n,function(){i=0,s.redraw(t)})},redraw:function(e){e.height()}},l=function(n){if(null!==n.state){var i=t.location.href,a=e("#"+n.state.id),r=a.data("smoothState"),o=r.href!==i&&!s.isHash(i,r.href),l=n.state!==r.cache[r.href].state;(o||l)&&(l&&r.clear(r.href),r.load(i,!1))}},d=function(o,l){var d=e(o),u=d.prop("id"),c=null,p=!1,f={},h={},m=t.location.href,g=function(e){e=e||!1,e&&f.hasOwnProperty(e)?delete f[e]:f={},d.data("smoothState").cache=f},v=function(t,n){n=n||e.noop;var i=s.translate(t);if(f=s.clearIfOverCapacity(f,l.cacheLength),!f.hasOwnProperty(i.url)||"undefined"!=typeof i.data){f[i.url]={status:"fetching"};var a=e.ajax(i);a.done(function(e){s.storePageIn(f,i.url,e,u),d.data("smoothState").cache=f}),a.fail(function(){f[i.url].status="error"}),n&&a.always(n)}},w=function(){if(c){var t=e(c,d);if(t.length){var n=t.offset().top;a.scrollTop(n)}c=null}},y=function(i){var o="#"+u,s=f[i]?e(f[i].html.html()):null;s.length?(n.title=f[i].title,d.data("smoothState").href=i,l.loadingClass&&a.removeClass(l.loadingClass),l.onReady.render(d,s),d.one("ss.onReadyEnd",function(){p=!1,l.onAfter(d,s),l.scroll&&w(),$(d)}),t.setTimeout(function(){d.trigger("ss.onReadyEnd")},l.onReady.duration)):!s&&l.debug&&r?r.warn("No element with an id of "+o+" in response from "+i+" in "+f):t.location=i},b=function(e,n,i){var o=s.translate(e);"undefined"==typeof n&&(n=!0),"undefined"==typeof i&&(i=!0);var c=!1,p=!1,m={loaded:function(){var e=c?"ss.onProgressEnd":"ss.onStartEnd";p&&c?p&&y(o.url):d.one(e,function(){y(o.url),i||g(o.url)}),n&&(h=l.alterChangeState({id:u},f[o.url].title,o.url),f[o.url].state=h,t.history.pushState(h,f[o.url].title,o.url)),p&&!i&&g(o.url)},fetching:function(){c||(c=!0,d.one("ss.onStartEnd",function(){l.loadingClass&&a.addClass(l.loadingClass),l.onProgress.render(d),t.setTimeout(function(){d.trigger("ss.onProgressEnd"),p=!0},l.onProgress.duration)})),t.setTimeout(function(){f.hasOwnProperty(o.url)&&m[f[o.url].status]()},10)},error:function(){l.debug&&r?r.log("There was an error loading: "+o.url):t.location=o.url}};f.hasOwnProperty(o.url)||v(o),l.onStart.render(d),t.setTimeout(function(){l.scroll&&a.scrollTop(0),d.trigger("ss.onStartEnd")},l.onStart.duration),m[f[o.url].status]()},x=function(t){var n,i=e(t.currentTarget);s.shouldLoadAnchor(i,l.blacklist,l.hrefRegex)&&!p&&(t.stopPropagation(),n=s.translate(i.prop("href")),n=l.alterRequest(n),v(n))},T=function(t){var n=e(t.currentTarget);if(!t.metaKey&&!t.ctrlKey&&s.shouldLoadAnchor(n,l.blacklist,l.hrefRegex)&&(t.stopPropagation(),t.preventDefault(),!k())){E();var i=s.translate(n.prop("href"));p=!0,c=n.prop("hash"),i=l.alterRequest(i),l.onBefore(n,d),b(i)}},C=function(t){var n=e(t.currentTarget);if(!n.is(l.blacklist)&&(t.preventDefault(),t.stopPropagation(),!k())){E();var a={url:n.prop("action"),data:n.serialize(),type:n.prop("method")};p=!0,a=l.alterRequest(a),"get"===a.type.toLowerCase()&&(a.url=a.url+"?"+a.data),l.onBefore(n,d),b(a,i,l.allowFormCaching)}},S=0,k=function(){var e=null===l.repeatDelay,t=parseInt(Date.now())>S;return!(e||t)},E=function(){S=parseInt(Date.now())+parseInt(l.repeatDelay)},$=function(e){l.anchors&&l.prefetch&&e.find(l.anchors).not(l.prefetchBlacklist).on(l.prefetchOn,null,x)},A=function(e){l.anchors&&(e.on("click",l.anchors,T),$(e)),l.forms&&e.on("submit",l.forms,C)},P=function(){var e=d.prop("class");d.removeClass(e),s.redraw(d),d.addClass(e)};return l=e.extend({},e.fn.smoothState.options,l),null===t.history.state?(h=l.alterChangeState({id:u},n.title,m),t.history.replaceState(h,n.title,m)):h={},s.storePageIn(f,m,n.documentElement.outerHTML,u,h),s.triggerAllAnimationEndEvent(d,"ss.onStartEnd ss.onProgressEnd ss.onEndEnd"),A(d),{href:m,cache:f,clear:g,load:b,fetch:v,restartCSSAnimations:P}},u=function(t){return this.each(function(){var n=this.tagName.toLowerCase();this.id&&"body"!==n&&"html"!==n&&!e.data(this,"smoothState")?e.data(this,"smoothState",new d(this,t)):!this.id&&r?r.warn("Every smoothState container needs an id but the following one does not have one:",this):"body"!==n&&"html"!==n||!r||r.warn("The smoothstate container cannot be the "+this.tagName+" tag")})};t.onpopstate=l,e.smoothStateUtility=s,e.fn.smoothState=u,e.fn.smoothState.options=o}})}(jQuery);