var mod_pagespeed_c$J6NNwOPS = "!function(a,b){function c(){function a(){\"undefined\"!=typeof _wpmejsSettings&&(c=b.extend(!0,{},_wpmejsSettings)),c.classPrefix=\"mejs-\",c.success=c.success||function(a){var b,c;a.rendererName&&-1!==a.rendererName.indexOf(\"flash\")&&(b=a.attributes.autoplay&&\"false\"!==a.attributes.autoplay,c=a.attributes.loop&&\"false\"!==a.attributes.loop,b&&a.addEventListener(\"canplay\",function(){a.play()},!1),c&&a.addEventListener(\"ended\",function(){a.play()},!1))},c.customError=function(a,b){if(-1!==a.rendererName.indexOf(\"flash\")||-1!==a.rendererName.indexOf(\"flv\"))return'<a href=\"'+b.src+'\">'+mejsL10n.strings[\"mejs.download-video\"]+\"</a>\"},b(\".wp-audio-shortcode, .wp-video-shortcode\").not(\".mejs-container\").filter(function(){return!b(this).parent().hasClass(\"mejs-mediaelement\")}).mediaelementplayer(c)}var c={};return{initialize:a}}a.wp=a.wp||{},a.wp.mediaelement=new c,b(a.wp.mediaelement.initialize)}(window,jQuery);";
var mod_pagespeed_GjPHNRSjeB = "!function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){var c=\"function\"==typeof require&&require;if(!s&&c)return c(o,!0);if(a)return a(o,!0);var u=new Error(\"Cannot find module '\"+o+\"'\");throw u.code=\"MODULE_NOT_FOUND\",u}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return i(n||e)},l,l.exports,e,t,n,r)}return n[o].exports}for(var a=\"function\"==typeof require&&require,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(e,t,n){\"use strict\";var r={promise:null,load:function(e){\"undefined\"!=typeof Vimeo?r._createPlayer(e):(r.promise=r.promise||mejs.Utils.loadScript(\"https://player.vimeo.com/api/player.js\"),r.promise.then(function(){r._createPlayer(e)}))},_createPlayer:function(e){var t=new Vimeo.Player(e.iframe);window[\"__ready__\"+e.id](t)},getVimeoId:function(e){return void 0===e||null===e?null:(e=e.split(\"?\")[0],parseInt(e.substring(e.lastIndexOf(\"/\")+1),10))}},i={name:\"vimeo_iframe\",options:{prefix:\"vimeo_iframe\"},canPlayType:function(e){return~[\"video/vimeo\",\"video/x-vimeo\"].indexOf(e.toLowerCase())},create:function(e,t,n){var i=[],a={},o=!0,s=1,c=s,u=0,l=0,d=!1,p=0,m=null,f=\"\";a.options=t,a.id=e.id+\"_\"+t.prefix,a.mediaElement=e;for(var v=function(t,n){var r=mejs.Utils.createEvent(\"error\",n);r.message=t.name+\": \"+t.message,e.dispatchEvent(r)},h=mejs.html5media.properties,y=0,g=h.length;y<g;y++)!function(t){var n=\"\"+t.substring(0,1).toUpperCase()+t.substring(1);a[\"get\"+n]=function(){if(null!==m){switch(t){case\"currentTime\":return u;case\"duration\":return p;case\"volume\":return s;case\"muted\":return 0===s;case\"paused\":return o;case\"ended\":return d;case\"src\":return m.getVideoUrl().then(function(e){f=e}),f;case\"buffered\":return{start:function(){return 0},end:function(){return l*p},length:1};case\"readyState\":return 4}return null}return null},a[\"set\"+n]=function(n){if(null!==m)switch(t){case\"src\":var o=\"string\"==typeof n?n:n[0].src,l=r.getVimeoId(o);m.loadVideo(l).then(function(){e.originalNode.autoplay&&m.play()}).catch(function(e){v(e,a)});break;case\"currentTime\":m.setCurrentTime(n).then(function(){u=n,setTimeout(function(){var t=mejs.Utils.createEvent(\"timeupdate\",a);e.dispatchEvent(t)},50)}).catch(function(e){v(e,a)});break;case\"volume\":m.setVolume(n).then(function(){c=s=n,setTimeout(function(){var t=mejs.Utils.createEvent(\"volumechange\",a);e.dispatchEvent(t)},50)}).catch(function(e){v(e,a)});break;case\"loop\":m.setLoop(n).catch(function(e){v(e,a)});break;case\"muted\":n?m.setVolume(0).then(function(){s=0,setTimeout(function(){var t=mejs.Utils.createEvent(\"volumechange\",a);e.dispatchEvent(t)},50)}).catch(function(e){v(e,a)}):m.setVolume(c).then(function(){s=c,setTimeout(function(){var t=mejs.Utils.createEvent(\"volumechange\",a);e.dispatchEvent(t)},50)}).catch(function(e){v(e,a)});break;case\"readyState\":var d=mejs.Utils.createEvent(\"canplay\",a);e.dispatchEvent(d)}else i.push({type:\"set\",propName:t,value:n})}}(h[y]);for(var E=mejs.html5media.methods,U=0,j=E.length;U<j;U++)!function(e){a[e]=function(){if(null!==m)switch(e){case\"play\":return o=!1,m.play();case\"pause\":return o=!0,m.pause();case\"load\":return null}else i.push({type:\"call\",methodName:e})}}(E[U]);window[\"__ready__\"+a.id]=function(t){if(e.vimeoPlayer=m=t,i.length)for(var n=0,r=i.length;n<r;n++){var c=i[n];if(\"set\"===c.type){var f=c.propName,h=\"\"+f.substring(0,1).toUpperCase()+f.substring(1);a[\"set\"+h](c.value)}else\"call\"===c.type&&a[c.methodName]()}e.originalNode.muted&&(m.setVolume(0),s=0);for(var y=document.getElementById(a.id),g=void 0,E=0,U=(g=[\"mouseover\",\"mouseout\"]).length;E<U;E++)y.addEventListener(g[E],function(t){var n=mejs.Utils.createEvent(t.type,a);e.dispatchEvent(n)},!1);m.on(\"loaded\",function(){m.getDuration().then(function(t){if((p=t)>0&&(l=p*t,e.originalNode.autoplay)){o=!1,d=!1;var n=mejs.Utils.createEvent(\"play\",a);e.dispatchEvent(n)}}).catch(function(e){v(e,a)})}),m.on(\"progress\",function(){m.getDuration().then(function(t){if((p=t)>0&&(l=p*t,e.originalNode.autoplay)){var n=mejs.Utils.createEvent(\"play\",a);e.dispatchEvent(n);var r=mejs.Utils.createEvent(\"playing\",a);e.dispatchEvent(r)}var i=mejs.Utils.createEvent(\"progress\",a);e.dispatchEvent(i)}).catch(function(e){v(e,a)})}),m.on(\"timeupdate\",function(){m.getCurrentTime().then(function(t){u=t;var n=mejs.Utils.createEvent(\"timeupdate\",a);e.dispatchEvent(n)}).catch(function(e){v(e,a)})}),m.on(\"play\",function(){o=!1,d=!1;var t=mejs.Utils.createEvent(\"play\",a);e.dispatchEvent(t);var n=mejs.Utils.createEvent(\"playing\",a);e.dispatchEvent(n)}),m.on(\"pause\",function(){o=!0,d=!1;var t=mejs.Utils.createEvent(\"pause\",a);e.dispatchEvent(t)}),m.on(\"ended\",function(){o=!1,d=!0;var t=mejs.Utils.createEvent(\"ended\",a);e.dispatchEvent(t)});for(var j=0,b=(g=[\"rendererready\",\"loadedmetadata\",\"loadeddata\",\"canplay\"]).length;j<b;j++){var w=mejs.Utils.createEvent(g[j],a);e.dispatchEvent(w)}};var b=e.originalNode.height,w=e.originalNode.width,N=document.createElement(\"iframe\"),_=\"https://player.vimeo.com/video/\"+r.getVimeoId(n[0].src),x=~n[0].src.indexOf(\"?\")?\"?\"+n[0].src.slice(n[0].src.indexOf(\"?\")+1):\"\";return x&&e.originalNode.autoplay&&-1===x.indexOf(\"autoplay\")&&(x+=\"&autoplay=1\"),x&&e.originalNode.loop&&-1===x.indexOf(\"loop\")&&(x+=\"&loop=1\"),N.setAttribute(\"id\",a.id),N.setAttribute(\"width\",w),N.setAttribute(\"height\",b),N.setAttribute(\"frameBorder\",\"0\"),N.setAttribute(\"src\",\"\"+_+x),N.setAttribute(\"webkitallowfullscreen\",\"\"),N.setAttribute(\"mozallowfullscreen\",\"\"),N.setAttribute(\"allowfullscreen\",\"\"),e.originalNode.parentNode.insertBefore(N,e.originalNode),e.originalNode.style.display=\"none\",r.load({iframe:N,id:a.id}),a.hide=function(){a.pause(),m&&(N.style.display=\"none\")},a.setSize=function(e,t){N.setAttribute(\"width\",e),N.setAttribute(\"height\",t)},a.show=function(){m&&(N.style.display=\"\")},a.destroy=function(){},a}};mejs.Utils.typeChecks.push(function(e){return/(\\/\\/player\\.vimeo|vimeo\\.com)/i.test(e)?\"video/x-vimeo\":null}),mejs.Renderers.add(i)},{}]},{},[1]);";
var mod_pagespeed_ljejDlnWvB = "(function($){$.fn.evoGetFilters=function(){var ev_cal=$(this);var evodata=ev_cal.find('.evo-data');var filters_on=(evodata.attr('data-filters_on')=='true')?'true':'false';if(filters_on=='true'){var filter_section=ev_cal.find('.eventon_filter_line');var filter_array=[];filter_section.find('.eventon_filter').each(function(index){var filter_val=$(this).attr('data-filter_val');if(filter_val!='all'){var filter_ar={};filter_ar['filter_type']=$(this).attr('data-filter_type');filter_ar['filter_name']=$(this).attr('data-filter_field');if($(this).attr('data-fl_o')=='NOT'){filter_ar['filter_op']='NOT IN';}filter_ar['filter_val']=filter_val;filter_array.push(filter_ar);}});}else{var filter_array='';}return filter_array;}\n$.fn.evo_shortcodes=function(){var ev_cal=$(this);var shortcode_array={};ev_cal.find('.cal_arguments').each(function(){$.each(this.attributes,function(i,attrib){var name=attrib.name;if(attrib.name!='class'&&attrib.name!='style'&&attrib.value!=''){name__=attrib.name.split('-');shortcode_array[name__[1]]=attrib.value;}});});return shortcode_array;}\n$.fn.evo_getevodata=function(){var ev_cal=$(this);var evoData={};ev_cal.find('.evo-data').each(function(){$.each(this.attributes,function(i,attrib){var name=attrib.name;if(attrib.name!='class'&&attrib.name!='style'){name__=attrib.name.split('-');evoData[name__[1]]=attrib.value;}});});return evoData;}\n$.fn.evo_otherVals=function(opt){var defaults={data_arg:'',};var options=$.extend({},defaults,opt);var cal_head=$(this);cal_head.find('.eventon_other_vals').each(function(){if($(this).val()!=''){options.data_arg[$(this).attr('name')]=$(this).val();}});return options.data_arg;}}(jQuery));";
var mod_pagespeed_qIwKEqCU44 = "(function(e){function d(){var e=o();if(e!==u){u=e;i.trigger(\"orientationchange\")}}function E(t,n,r,i){var s=r.type;r.type=n;e.event.dispatch.call(t,r,i);r.type=s}e.attrFn=e.attrFn||{};var t=navigator.userAgent.toLowerCase(),n=t.indexOf(\"chrome\")>-1&&(t.indexOf(\"windows\")>-1||t.indexOf(\"macintosh\")>-1||t.indexOf(\"linux\")>-1)&&t.indexOf(\"chrome\")<0,r={swipe_h_threshold:50,swipe_v_threshold:50,taphold_threshold:750,doubletap_int:500,touch_capable:\"ontouchstart\"in document.documentElement&&!n,orientation_support:\"orientation\"in window&&\"onorientationchange\"in window,startevent:\"ontouchstart\"in document.documentElement&&!n?\"touchstart\":\"mousedown\",endevent:\"ontouchstart\"in document.documentElement&&!n?\"touchend\":\"mouseup\",moveevent:\"ontouchstart\"in document.documentElement&&!n?\"touchmove\":\"mousemove\",tapevent:\"ontouchstart\"in document.documentElement&&!n?\"tap\":\"click\",scrollevent:\"ontouchstart\"in document.documentElement&&!n?\"touchmove\":\"scroll\",hold_timer:null,tap_timer:null};e.isTouchCapable=function(){return r.touch_capable};e.getStartEvent=function(){return r.startevent};e.getEndEvent=function(){return r.endevent};e.getMoveEvent=function(){return r.moveevent};e.getTapEvent=function(){return r.tapevent};e.getScrollEvent=function(){return r.scrollevent};e.each([\"tapstart\",\"tapend\",\"tap\",\"singletap\",\"doubletap\",\"taphold\",\"swipe\",\"swipeup\",\"swiperight\",\"swipedown\",\"swipeleft\",\"swipeend\",\"scrollstart\",\"scrollend\",\"orientationchange\"],function(t,n){e.fn[n]=function(e){return e?this.bind(n,e):this.trigger(n)};e.attrFn[n]=true});e.event.special.tapstart={setup:function(){var t=this,n=e(t);n.bind(r.startevent,function(e){n.data(\"callee\",arguments.callee);if(e.which&&e.which!==1){return false}var i=e.originalEvent,s={position:{x:r.touch_capable?i.touches[0].screenX:e.screenX,y:r.touch_capable?i.touches[0].screenY:e.screenY},offset:{x:r.touch_capable?i.touches[0].pageX-i.touches[0].target.offsetLeft:e.offsetX,y:r.touch_capable?i.touches[0].pageY-i.touches[0].target.offsetTop:e.offsetY},time:(new Date).getTime(),target:e.target};E(t,\"tapstart\",e,s);return true})},remove:function(){e(this).unbind(r.startevent,e(this).data.callee)}};e.event.special.tapend={setup:function(){var t=this,n=e(t);n.bind(r.endevent,function(e){n.data(\"callee\",arguments.callee);var i=e.originalEvent;var s={position:{x:r.touch_capable?i.changedTouches[0].screenX:e.screenX,y:r.touch_capable?i.changedTouches[0].screenY:e.screenY},offset:{x:r.touch_capable?i.changedTouches[0].pageX-i.changedTouches[0].target.offsetLeft:e.offsetX,y:r.touch_capable?i.changedTouches[0].pageY-i.changedTouches[0].target.offsetTop:e.offsetY},time:(new Date).getTime(),target:e.target};E(t,\"tapend\",e,s);return true})},remove:function(){e(this).unbind(r.endevent,e(this).data.callee)}};e.event.special.taphold={setup:function(){var t=this,n=e(t),i,s,o={x:0,y:0};n.bind(r.startevent,function(e){if(e.which&&e.which!==1){return false}else{n.data(\"tapheld\",false);i=e.target;var s=e.originalEvent;var u=(new Date).getTime(),a={x:r.touch_capable?s.touches[0].screenX:e.screenX,y:r.touch_capable?s.touches[0].screenY:e.screenY},f={x:r.touch_capable?s.touches[0].pageX-s.touches[0].target.offsetLeft:e.offsetX,y:r.touch_capable?s.touches[0].pageY-s.touches[0].target.offsetTop:e.offsetY};o.x=e.originalEvent.targetTouches?e.originalEvent.targetTouches[0].pageX:e.pageX;o.y=e.originalEvent.targetTouches?e.originalEvent.targetTouches[0].pageY:e.pageY;r.hold_timer=window.setTimeout(function(){var l=e.originalEvent.targetTouches?e.originalEvent.targetTouches[0].pageX:e.pageX,c=e.originalEvent.targetTouches?e.originalEvent.targetTouches[0].pageY:e.pageY;if(e.target==i&&o.x==l&&o.y==c){n.data(\"tapheld\",true);var h=(new Date).getTime(),p={x:r.touch_capable?s.touches[0].screenX:e.screenX,y:r.touch_capable?s.touches[0].screenY:e.screenY},d={x:r.touch_capable?s.touches[0].pageX-s.touches[0].target.offsetLeft:e.offsetX,y:r.touch_capable?s.touches[0].pageY-s.touches[0].target.offsetTop:e.offsetY};duration=h-u;var v={startTime:u,endTime:h,startPosition:a,startOffset:f,endPosition:p,endOffset:d,duration:duration,target:e.target};n.data(\"callee1\",arguments.callee);E(t,\"taphold\",e,v)}},r.taphold_threshold);return true}}).bind(r.endevent,function(){n.data(\"callee2\",arguments.callee);n.data(\"tapheld\",false);window.clearTimeout(r.hold_timer)})},remove:function(){e(this).unbind(r.startevent,e(this).data.callee1).unbind(r.endevent,e(this).data.callee2)}};e.event.special.doubletap={setup:function(){var t=this,n=e(t),i,s,o,u;n.bind(r.startevent,function(e){if(e.which&&e.which!==1){return false}else{n.data(\"doubletapped\",false);i=e.target;n.data(\"callee1\",arguments.callee);u=e.originalEvent;o={position:{x:r.touch_capable?u.touches[0].screenX:e.screenX,y:r.touch_capable?u.touches[0].screenY:e.screenY},offset:{x:r.touch_capable?u.touches[0].pageX-u.touches[0].target.offsetLeft:e.offsetX,y:r.touch_capable?u.touches[0].pageY-u.touches[0].target.offsetTop:e.offsetY},time:(new Date).getTime(),target:e.target};return true}}).bind(r.endevent,function(e){var a=(new Date).getTime();var f=n.data(\"lastTouch\")||a+1;var l=a-f;window.clearTimeout(s);n.data(\"callee2\",arguments.callee);if(l<r.doubletap_int&&l>0&&e.target==i&&l>100){n.data(\"doubletapped\",true);window.clearTimeout(r.tap_timer);var c={position:{x:r.touch_capable?u.touches[0].screenX:e.screenX,y:r.touch_capable?u.touches[0].screenY:e.screenY},offset:{x:r.touch_capable?u.touches[0].pageX-u.touches[0].target.offsetLeft:e.offsetX,y:r.touch_capable?u.touches[0].pageY-u.touches[0].target.offsetTop:e.offsetY},time:(new Date).getTime(),target:e.target};var h={firstTap:o,secondTap:c,interval:c.time-o.time};E(t,\"doubletap\",e,h)}else{n.data(\"lastTouch\",a);s=window.setTimeout(function(e){window.clearTimeout(s)},r.doubletap_int,[e])}n.data(\"lastTouch\",a)})},remove:function(){e(this).unbind(r.startevent,e(this).data.callee1).unbind(r.endevent,e(this).data.callee2)}};e.event.special.singletap={setup:function(){var t=this,n=e(t),i=null,s=null,o={x:0,y:0};n.bind(r.startevent,function(e){if(e.which&&e.which!==1){return false}else{s=(new Date).getTime();i=e.target;n.data(\"callee1\",arguments.callee);o.x=e.originalEvent.targetTouches?e.originalEvent.targetTouches[0].pageX:e.pageX;o.y=e.originalEvent.targetTouches?e.originalEvent.targetTouches[0].pageY:e.pageY;return true}}).bind(r.endevent,function(e){n.data(\"callee2\",arguments.callee);if(e.target==i){end_pos_x=e.originalEvent.changedTouches?e.originalEvent.changedTouches[0].pageX:e.pageX;end_pos_y=e.originalEvent.changedTouches?e.originalEvent.changedTouches[0].pageY:e.pageY;r.tap_timer=window.setTimeout(function(){if(!n.data(\"doubletapped\")&&!n.data(\"tapheld\")&&o.x==end_pos_x&&o.y==end_pos_y){var i=e.originalEvent;var u={position:{x:r.touch_capable?i.changedTouches[0].screenX:e.screenX,y:r.touch_capable?i.changedTouches[0].screenY:e.screenY},offset:{x:r.touch_capable?i.changedTouches[0].pageX-i.changedTouches[0].target.offsetLeft:e.offsetX,y:r.touch_capable?i.changedTouches[0].pageY-i.changedTouches[0].target.offsetTop:e.offsetY},time:(new Date).getTime(),target:e.target};if(u.time-s<r.taphold_threshold){E(t,\"singletap\",e,u)}}},r.doubletap_int)}})},remove:function(){e(this).unbind(r.startevent,e(this).data.callee1).unbind(r.endevent,e(this).data.callee2)}};e.event.special.tap={setup:function(){var t=this,n=e(t),i=false,s=null,o,u={x:0,y:0};n.bind(r.startevent,function(e){n.data(\"callee1\",arguments.callee);if(e.which&&e.which!==1){return false}else{i=true;u.x=e.originalEvent.targetTouches?e.originalEvent.targetTouches[0].pageX:e.pageX;u.y=e.originalEvent.targetTouches?e.originalEvent.targetTouches[0].pageY:e.pageY;o=(new Date).getTime();s=e.target;return true}}).bind(r.endevent,function(e){n.data(\"callee2\",arguments.callee);var a=e.originalEvent.targetTouches?e.originalEvent.changedTouches[0].pageX:e.pageX,f=e.originalEvent.targetTouches?e.originalEvent.changedTouches[0].pageY:e.pageY;if(s==e.target&&i&&(new Date).getTime()-o<r.taphold_threshold&&u.x==a&&u.y==f){var l=e.originalEvent;var c={position:{x:r.touch_capable?l.changedTouches[0].screenX:e.screenX,y:r.touch_capable?l.changedTouches[0].screenY:e.screenY},offset:{x:r.touch_capable?l.changedTouches[0].pageX-l.changedTouches[0].target.offsetLeft:e.offsetX,y:r.touch_capable?l.changedTouches[0].pageY-l.changedTouches[0].target.offsetTop:e.offsetY},time:(new Date).getTime(),target:e.target};E(t,\"tap\",e,c)}})},remove:function(){e(this).unbind(r.startevent,e(this).data.callee1).unbind(r.endevent,e(this).data.callee2)}};e.event.special.swipe={setup:function(){function f(t){n=e(t.target);n.data(\"callee1\",arguments.callee);o.x=t.originalEvent.targetTouches?t.originalEvent.targetTouches[0].pageX:t.pageX;o.y=t.originalEvent.targetTouches?t.originalEvent.targetTouches[0].pageY:t.pageY;u.x=o.x;u.y=o.y;i=true;var s=t.originalEvent;a={position:{x:r.touch_capable?s.touches[0].screenX:t.screenX,y:r.touch_capable?s.touches[0].screenY:t.screenY},offset:{x:r.touch_capable?s.touches[0].pageX-s.touches[0].target.offsetLeft:t.offsetX,y:r.touch_capable?s.touches[0].pageY-s.touches[0].target.offsetTop:t.offsetY},time:(new Date).getTime(),target:t.target};var f=new Date;while(new Date-f<100){}}function l(t){n=e(t.target);n.data(\"callee2\",arguments.callee);u.x=t.originalEvent.targetTouches?t.originalEvent.targetTouches[0].pageX:t.pageX;u.y=t.originalEvent.targetTouches?t.originalEvent.targetTouches[0].pageY:t.pageY;window.clearTimeout(r.hold_timer);var f;var l=n.data(\"xthreshold\"),c=n.data(\"ythreshold\"),h=typeof l!==\"undefined\"&&l!==false&&parseInt(l)?parseInt(l):r.swipe_h_threshold,p=typeof c!==\"undefined\"&&c!==false&&parseInt(c)?parseInt(c):r.swipe_v_threshold;if(o.y>u.y&&o.y-u.y>p){f=\"swipeup\"}if(o.x<u.x&&u.x-o.x>h){f=\"swiperight\"}if(o.y<u.y&&u.y-o.y>p){f=\"swipedown\"}if(o.x>u.x&&o.x-u.x>h){f=\"swipeleft\"}if(f!=undefined&&i){o.x=0;o.y=0;u.x=0;u.y=0;i=false;var d=t.originalEvent;endEvnt={position:{x:r.touch_capable?d.touches[0].screenX:t.screenX,y:r.touch_capable?d.touches[0].screenY:t.screenY},offset:{x:r.touch_capable?d.touches[0].pageX-d.touches[0].target.offsetLeft:t.offsetX,y:r.touch_capable?d.touches[0].pageY-d.touches[0].target.offsetTop:t.offsetY},time:(new Date).getTime(),target:t.target};var v=Math.abs(a.position.x-endEvnt.position.x),m=Math.abs(a.position.y-endEvnt.position.y);var g={startEvnt:a,endEvnt:endEvnt,direction:f.replace(\"swipe\",\"\"),xAmount:v,yAmount:m,duration:endEvnt.time-a.time};s=true;n.trigger(\"swipe\",g).trigger(f,g)}}function c(t){n=e(t.target);var o=\"\";n.data(\"callee3\",arguments.callee);if(s){var u=n.data(\"xthreshold\"),f=n.data(\"ythreshold\"),l=typeof u!==\"undefined\"&&u!==false&&parseInt(u)?parseInt(u):r.swipe_h_threshold,c=typeof f!==\"undefined\"&&f!==false&&parseInt(f)?parseInt(f):r.swipe_v_threshold;var h=t.originalEvent;endEvnt={position:{x:r.touch_capable?h.changedTouches[0].screenX:t.screenX,y:r.touch_capable?h.changedTouches[0].screenY:t.screenY},offset:{x:r.touch_capable?h.changedTouches[0].pageX-h.changedTouches[0].target.offsetLeft:t.offsetX,y:r.touch_capable?h.changedTouches[0].pageY-h.changedTouches[0].target.offsetTop:t.offsetY},time:(new Date).getTime(),target:t.target};if(a.position.y>endEvnt.position.y&&a.position.y-endEvnt.position.y>c){o=\"swipeup\"}if(a.position.x<endEvnt.position.x&&endEvnt.position.x-a.position.x>l){o=\"swiperight\"}if(a.position.y<endEvnt.position.y&&endEvnt.position.y-a.position.y>c){o=\"swipedown\"}if(a.position.x>endEvnt.position.x&&a.position.x-endEvnt.position.x>l){o=\"swipeleft\"}var p=Math.abs(a.position.x-endEvnt.position.x),d=Math.abs(a.position.y-endEvnt.position.y);var v={startEvnt:a,endEvnt:endEvnt,direction:o.replace(\"swipe\",\"\"),xAmount:p,yAmount:d,duration:endEvnt.time-a.time};n.trigger(\"swipeend\",v)}i=false;s=false}var t=this,n=e(t),i=false,s=false,o={x:0,y:0},u={x:0,y:0},a;n.bind(r.startevent,f);n.bind(r.moveevent,l);n.bind(r.endevent,c)},remove:function(){e(this).unbind(r.startevent,e(this).data.callee1).unbind(r.moveevent,e(this).data.callee2).unbind(r.endevent,e(this).data.callee3)}};e.event.special.scrollstart={setup:function(){function o(e,n){i=n;E(t,i?\"scrollstart\":\"scrollend\",e)}var t=this,n=e(t),i,s;n.bind(r.scrollevent,function(e){n.data(\"callee\",arguments.callee);if(!i){o(e,true)}clearTimeout(s);s=setTimeout(function(){o(e,false)},50)})},remove:function(){e(this).unbind(r.scrollevent,e(this).data.callee)}};var i=e(window),s,o,u,a,f,l={0:true,180:true};if(r.orientation_support){var c=window.innerWidth||e(window).width(),h=window.innerHeight||e(window).height(),p=50;a=c>h&&c-h>p;f=l[window.orientation];if(a&&f||!a&&!f){l={\"-90\":true,90:true}}}e.event.special.orientationchange=s={setup:function(){if(r.orientation_support){return false}u=o();i.bind(\"throttledresize\",d);return true},teardown:function(){if(r.orientation_support){return false}i.unbind(\"throttledresize\",d);return true},add:function(e){var t=e.handler;e.handler=function(e){e.orientation=o();return t.apply(this,arguments)}}};e.event.special.orientationchange.orientation=o=function(){var e=true,t=document.documentElement;if(r.orientation_support){e=l[window.orientation]}else{e=t&&t.clientWidth/t.clientHeight<1.1}return e?\"portrait\":\"landscape\"};e.event.special.throttledresize={setup:function(){e(this).bind(\"resize\",m)},teardown:function(){e(this).unbind(\"resize\",m)}};var v=250,m=function(){b=(new Date).getTime();w=b-g;if(w>=v){g=b;e(this).trigger(\"throttledresize\")}else{if(y){window.clearTimeout(y)}y=window.setTimeout(d,v-w)}},g=0,y,b,w;e.each({scrollend:\"scrollstart\",swipeup:\"swipe\",swiperight:\"swipe\",swipedown:\"swipe\",swipeleft:\"swipe\",swipeend:\"swipe\"},function(t,n,r){e.event.special[t]={setup:function(){e(this).bind(n,e.noop)}}})})(jQuery)";
