function viewport(){var n=window,t="inner";return"innerWidth"in window||(t="client",n=document.documentElement||document.body),{width:n[t+"Width"],height:n[t+"Height"]}}jQuery(document).bind("mobileinit",function(){jQuery.extend(jQuery.mobile,{ajaxEnabled:!1,loadingMessage:!1})}),function(n){typeof define=="function"&&define.amd&&define.amd.jQuery?define(["jquery"],n):n(jQuery)}(function(n){function ft(t){return t&&t.allowPageScroll===undefined&&(t.swipe!==undefined||t.swipeStatus!==undefined)&&(t.allowPageScroll=y),t.click!==undefined&&t.tap===undefined&&(t.tap=t.click),t||(t={}),t=n.extend({},n.fn.swipe.defaults,t),this.each(function(){var r=n(this),i=r.data(s);i||(i=new et(this,t),r.data(s,i))})}function et(ft,et){function di(t){if(!vu()&&!(n(t.target).closest(et.excludedElements,ot).length>0)){var r=t.originalEvent?t.originalEvent:t,f,u=r.touches,e=u?u[0]:r;return(ht=rt,u?ct=u.length:t.preventDefault(),at=0,vt=null,bt=null,lt=0,kt=0,dt=0,yt=1,wt=0,st=pu(),si=bu(),dr(),!u||ct===et.fingers||et.fingers===c||ui()?(or(0,e),wi=ni(),ct==2&&(or(1,u[1]),kt=dt=sr(st[0].start,st[1].start)),(et.swipeStatus||et.pinchStatus)&&(f=pt(r,ht))):f=!1,f===!1)?(ht=i,pt(r,ht),f):(et.hold&&(ki=setTimeout(n.proxy(function(){ot.trigger("hold",[r.target]);et.hold&&(f=et.hold.call(ot,r,r.target))},this),et.longTapThreshold)),ai(!0),null)}}function gi(n){var u=n.originalEvent?n.originalEvent:n,e,h;if(ht!==t&&ht!==i&&!gr()){var s,r=u.touches,l=r?r[0]:u,f=nu(l);hi=ni();r&&(ct=r.length);et.hold&&clearTimeout(ki);ht=o;ct==2&&(kt==0?(or(1,r[1]),kt=dt=sr(st[0].start,st[1].start)):(nu(r[1]),dt=sr(st[0].end,st[1].end),bt=du(st[0].end,st[1].end)),yt=ku(kt,dt),wt=Math.abs(kt-dt));ct===et.fingers||et.fingers===c||!r||ui()?(vt=tf(f.start,f.end),uu(n,vt),at=gu(f.start,f.end),lt=iu(),wu(vt,at),(et.swipeStatus||et.pinchStatus)&&(s=pt(u,ht)),(!et.triggerOnTouchEnd||et.triggerOnTouchLeave)&&(e=!0,et.triggerOnTouchLeave&&(h=rf(this),e=uf(f.end,h)),!et.triggerOnTouchEnd&&e?ht=ir(o):et.triggerOnTouchLeave&&!e&&(ht=ir(t)),(ht==i||ht==t)&&pt(u,ht))):(ht=i,pt(u,ht));s===!1&&(ht=i,pt(u,ht))}}function nr(n){var r=n.originalEvent?n.originalEvent:n,u=r.touches;return u&&u.length?(au(),!0):(gr()&&(ct=bi),hi=ni(),lt=iu(),ur()||!rr()?(ht=i,pt(r,ht)):et.triggerOnTouchEnd||et.triggerOnTouchEnd==!1&&ht===o?(n.preventDefault(),ht=t,pt(r,ht)):!et.triggerOnTouchEnd&&br()?(ht=t,ri(r,ht,p)):ht===o&&(ht=i,pt(r,ht)),ai(!1),null)}function ii(){ct=0;hi=0;wi=0;kt=0;dt=0;yt=1;dr();ai(!1)}function tr(n){var i=n.originalEvent?n.originalEvent:n;et.triggerOnTouchLeave&&(ht=ir(t),pt(i,ht))}function hr(){ot.unbind(ei,di);ot.unbind(oi,ii);ot.unbind(yi,gi);ot.unbind(pi,nr);ti&&ot.unbind(ti,tr);ai(!1)}function ir(n){var r=n,f=cr(),u=rr(),e=ur();return!f||e?r=i:u&&n==o&&(!et.triggerOnTouchEnd||et.triggerOnTouchLeave)?r=t:!u&&n==t&&et.triggerOnTouchLeave&&(r=i),r}function pt(n,r){var u,f=n.touches;return yr()||fr()||ar()||ui()?((yr()||fr())&&(u=ri(n,r,g)),(ar()||ui())&&u!==!1&&(u=ri(n,r,nt))):cu()&&u!==!1?u=ri(n,r,tt):lu()&&u!==!1?u=ri(n,r,it):hu()&&u!==!1&&(u=ri(n,r,p)),r===i&&ii(n),r===t&&(f?f.length||ii(n):ii(n)),u}function ri(o,s,h){var c;if(h==g){if(ot.trigger("swipeStatus",[s,vt||null,at||0,lt||0,ct,st]),et.swipeStatus&&(c=et.swipeStatus.call(ot,o,s,vt||null,at||0,lt||0,ct,st),c===!1))return!1;if(s==t&&vr()){if(ot.trigger("swipe",[vt,at,lt,ct,st]),et.swipe&&(c=et.swipe.call(ot,o,vt,at,lt,ct,st),c===!1))return!1;switch(vt){case r:ot.trigger("swipeLeft",[vt,at,lt,ct,st]);et.swipeLeft&&(c=et.swipeLeft.call(ot,o,vt,at,lt,ct,st));break;case u:ot.trigger("swipeRight",[vt,at,lt,ct,st]);et.swipeRight&&(c=et.swipeRight.call(ot,o,vt,at,lt,ct,st));break;case f:ot.trigger("swipeUp",[vt,at,lt,ct,st]);et.swipeUp&&(c=et.swipeUp.call(ot,o,vt,at,lt,ct,st));break;case e:ot.trigger("swipeDown",[vt,at,lt,ct,st]);et.swipeDown&&(c=et.swipeDown.call(ot,o,vt,at,lt,ct,st))}}}if(h==nt){if(ot.trigger("pinchStatus",[s,bt||null,wt||0,lt||0,ct,yt,st]),et.pinchStatus&&(c=et.pinchStatus.call(ot,o,s,bt||null,wt||0,lt||0,ct,yt,st),c===!1))return!1;if(s==t&&lr())switch(bt){case a:ot.trigger("pinchIn",[bt||null,wt||0,lt||0,ct,yt,st]);et.pinchIn&&(c=et.pinchIn.call(ot,o,bt||null,wt||0,lt||0,ct,yt,st));break;case v:ot.trigger("pinchOut",[bt||null,wt||0,lt||0,ct,yt,st]);et.pinchOut&&(c=et.pinchOut.call(ot,o,bt||null,wt||0,lt||0,ct,yt,st))}}return h==p?(s===i||s===t)&&(clearTimeout(li),clearTimeout(ki),er()&&!eu()?(gt=ni(),li=setTimeout(n.proxy(function(){gt=null;ot.trigger("tap",[o.target]);et.tap&&(c=et.tap.call(ot,o,o.target))},this),et.doubleTapThreshold)):(gt=null,ot.trigger("tap",[o.target]),et.tap&&(c=et.tap.call(ot,o,o.target)))):h==tt?(s===i||s===t)&&(clearTimeout(li),gt=null,ot.trigger("doubletap",[o.target]),et.doubleTap&&(c=et.doubleTap.call(ot,o,o.target))):h==it&&(s===i||s===t)&&(clearTimeout(li),gt=null,ot.trigger("longtap",[o.target]),et.longTap&&(c=et.longTap.call(ot,o,o.target))),c}function rr(){var n=!0;return et.threshold!==null&&(n=at>=et.threshold),n}function ur(){var n=!1;return et.cancelThreshold!==null&&vt!==null&&(n=tu(vt)-at>=et.cancelThreshold),n}function ru(){return et.pinchThreshold!==null?wt>=et.pinchThreshold:!0}function cr(){return et.maxTimeThreshold?lt>=et.maxTimeThreshold?!1:!0:!0}function uu(n,t){if(et.preventDefaultEvents!==!1)if(et.allowPageScroll===y)n.preventDefault();else{var i=et.allowPageScroll===d;switch(t){case r:(et.swipeLeft&&i||!i&&et.allowPageScroll!=w)&&n.preventDefault();break;case u:(et.swipeRight&&i||!i&&et.allowPageScroll!=w)&&n.preventDefault();break;case f:(et.swipeUp&&i||!i&&et.allowPageScroll!=b)&&n.preventDefault();break;case e:(et.swipeDown&&i||!i&&et.allowPageScroll!=b)&&n.preventDefault()}}}function lr(){var n=pr(),t=wr(),i=ru();return n&&t&&i}function ui(){return!!(et.pinchStatus||et.pinchIn||et.pinchOut)}function ar(){return!!(lr()&&ui())}function vr(){var n=cr(),t=rr(),i=pr(),r=wr(),u=ur();return!u&&r&&i&&t&&n}function fr(){return!!(et.swipe||et.swipeStatus||et.swipeLeft||et.swipeRight||et.swipeUp||et.swipeDown)}function yr(){return!!(vr()&&fr())}function pr(){return ct===et.fingers||et.fingers===c||!k}function wr(){return st[0].end.x!==0}function br(){return!!et.tap}function er(){return!!et.doubleTap}function fu(){return!!et.longTap}function kr(){if(gt==null)return!1;var n=ni();return er()&&n-gt<=et.doubleTapThreshold}function eu(){return kr()}function ou(){return(ct===1||!k)&&(isNaN(at)||at<et.threshold)}function su(){return lt>et.longTapThreshold&&at<ut}function hu(){return!!(ou()&&br())}function cu(){return!!(kr()&&er())}function lu(){return!!(su()&&fu())}function au(){ci=ni();bi=event.touches.length+1}function dr(){ci=0;bi=0}function gr(){var n=!1,t;return ci&&(t=ni()-ci,t<=et.fingerReleaseThreshold&&(n=!0)),n}function vu(){return!!(ot.data(s+"_intouch")===!0)}function ai(n){n===!0?(ot.bind(yi,gi),ot.bind(pi,nr),ti&&ot.bind(ti,tr)):(ot.unbind(yi,gi,!1),ot.unbind(pi,nr,!1),ti&&ot.unbind(ti,tr,!1));ot.data(s+"_intouch",n===!0)}function or(n,t){var i=t.identifier!==undefined?t.identifier:0;return st[n].identifier=i,st[n].start.x=st[n].end.x=t.pageX||t.clientX,st[n].start.y=st[n].end.y=t.pageY||t.clientY,st[n]}function nu(n){var i=n.identifier!==undefined?n.identifier:0,t=yu(i);return t.end.x=n.pageX||n.clientX,t.end.y=n.pageY||n.clientY,t}function yu(n){for(var t=0;t<st.length;t++)if(st[t].identifier==n)return st[t]}function pu(){for(var n=[],t=0;t<=5;t++)n.push({start:{x:0,y:0},end:{x:0,y:0},identifier:0});return n}function wu(n,t){t=Math.max(t,tu(n));si[n].distance=t}function tu(n){return si[n]?si[n].distance:undefined}function bu(){var n={};return n[r]=vi(r),n[u]=vi(u),n[f]=vi(f),n[e]=vi(e),n}function vi(n){return{direction:n,distance:0}}function iu(){return hi-wi}function sr(n,t){var i=Math.abs(n.x-t.x),r=Math.abs(n.y-t.y);return Math.round(Math.sqrt(i*i+r*r))}function ku(n,t){var i=t/n*1;return i.toFixed(2)}function du(){return yt<1?v:a}function gu(n,t){return Math.round(Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2)))}function nf(n,t){var r=n.x-t.x,u=t.y-n.y,f=Math.atan2(u,r),i=Math.round(f*180/Math.PI);return i<0&&(i=360-Math.abs(i)),i}function tf(n,t){var i=nf(n,t);return i<=45&&i>=0?r:i<=360&&i>=315?r:i>=135&&i<=225?u:i>45&&i<135?e:f}function ni(){var n=new Date;return n.getTime()}function rf(t){t=n(t);var i=t.offset();return{left:i.left,right:i.left+t.outerWidth(),top:i.top,bottom:i.top+t.outerHeight()}}function uf(n,t){return n.x>t.left&&n.x<t.right&&n.y>t.top&&n.y<t.bottom}var fi=k||h||!et.fallbackToMouseEvents,ei=fi?h?l?"MSPointerDown":"pointerdown":"touchstart":"mousedown",yi=fi?h?l?"MSPointerMove":"pointermove":"touchmove":"mousemove",pi=fi?h?l?"MSPointerUp":"pointerup":"touchend":"mouseup",ti=fi?null:"mouseleave",oi=h?l?"MSPointerCancel":"pointercancel":"touchcancel",at=0,vt=null,lt=0,kt=0,dt=0,yt=1,wt=0,bt=0,si=null,ot=n(ft),ht="start",ct=0,st=null,wi=0,hi=0,ci=0,bi=0,gt=0,li=null,ki=null;try{ot.bind(ei,di);ot.bind(oi,ii)}catch(ff){n.error("events not supported "+ei+","+oi+" on jQuery.swipe")}this.enable=function(){return ot.bind(ei,di),ot.bind(oi,ii),ot};this.disable=function(){return hr(),ot};this.destroy=function(){hr();ot.data(s,null);ot=null};this.option=function(t,i){if(et[t]!==undefined){if(i===undefined)return et[t];et[t]=i}else n.error("Option "+t+" does not exist on jQuery.swipe.options");return null}}var r="left",u="right",f="up",e="down",a="in",v="out",y="none",d="auto",g="swipe",nt="pinch",p="tap",tt="doubletap",it="longtap",w="horizontal",b="vertical",c="all",ut=10,rt="start",o="move",t="end",i="cancel",k="ontouchstart"in window,l=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled,h=window.navigator.pointerEnabled||window.navigator.msPointerEnabled,s="TouchSwipe";n.fn.swipe=function(t){var r=n(this),i=r.data(s);if(i&&typeof t=="string"){if(i[t])return i[t].apply(this,Array.prototype.slice.call(arguments,1));n.error("Method "+t+" does not exist on jQuery.swipe")}else if(!i&&(typeof t=="object"||!t))return ft.apply(this,arguments);return r};n.fn.swipe.version="1.6.9";n.fn.swipe.defaults={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",preventDefaultEvents:!0};n.fn.swipe.phases={PHASE_START:rt,PHASE_MOVE:o,PHASE_END:t,PHASE_CANCEL:i};n.fn.swipe.directions={LEFT:r,RIGHT:u,UP:f,DOWN:e,IN:a,OUT:v};n.fn.swipe.pageScroll={NONE:y,HORIZONTAL:w,VERTICAL:b,AUTO:d};n.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,ALL:c}});jQuery(document).on("mobileinit",function(){jQuery.mobile.loader.prototype.options.disabled=!0});jQuery(document).ready(function(){var n=1,t;jQuery(".smile__widgits_container .smile__grid .smile__widgits").each(function(n){jQuery(this).addClass("panel"+n)});jQuery(".panel1").css({position:"relative",zIndex:"4"});jQuery(".widgit__chevron-left").click(function(){n==1&&(jQuery(".smile__widgits_container .smile__grid").animate({left:"86%"}),jQuery(".smile__widgits").css({position:"",zIndex:""}),n=0,jQuery(".panel"+n).css({position:"relative",zIndex:"4"}),jQuery(".widgit__chevron-left").css({display:"none"}));n==2&&(jQuery(".smile__widgits_container .smile__grid").animate({left:"50%"}),jQuery(".smile__widgits").css({position:"",zIndex:""}),n=1,jQuery(".panel"+n).css({position:"relative",zIndex:"4"}),jQuery(".widgit__chevron-right").css({display:"block"}))});jQuery(".widgit__chevron-right").click(function(){n==1&&(jQuery(".smile__widgits_container .smile__grid").animate({left:"12%"}),jQuery(".smile__widgits").css({position:"",zIndex:""}),n=2,jQuery(".panel"+n).css({position:"relative",zIndex:"4"}),jQuery(".widgit__chevron-right").css({display:"none"}));n==0&&(jQuery(".smile__widgits_container .smile__grid").animate({left:"50%"}),jQuery(".smile__widgits").css({position:"",zIndex:""}),n=1,jQuery(".panel"+n).css({position:"relative",zIndex:"4"}),jQuery(".widgit__chevron-left").css({display:"block"}))});t=!1;jQuery(window).on("resize",function(){var t=jQuery(this);viewport().width>=1220&&(jQuery(".smile__widgits_container .panel0").css({marginLeft:""}),n=1,jQuery(".widgit__chevron-left").css({display:"block"}),jQuery(".widgit__chevron-right").css({display:"block"}));viewport().width<=767&&(n=1,jQuery(".widgit__chevron-left").css({display:"block"}),jQuery(".widgit__chevron-right").css({display:"block"}),jQuery(".smile__widgits_container .panel0").css({marginLeft:""}))});jQuery(".smile__widgits_container").swipe({swipe:function(t,i){i=="right"?viewport().width<=1220&&viewport().width>=767&&(n==1&&(jQuery(".smile__widgits_container .smile__grid").animate({left:"86%"}),jQuery(".smile__widgits").css({position:"",zIndex:""}),n=0,jQuery(".panel"+n).css({position:"relative",zIndex:"4"}),jQuery(".widgit__chevron-left").css({display:"none"})),n==2&&(jQuery(".smile__widgits_container .smile__grid").animate({left:"50%"}),jQuery(".smile__widgits").css({position:"",zIndex:""}),n=1,jQuery(".panel"+n).css({position:"relative",zIndex:"4"}),jQuery(".widgit__chevron-right").css({display:"block"}))):i=="left"&&viewport().width<=1220&&viewport().width>=767&&(n==1&&(jQuery(".smile__widgits_container .smile__grid").animate({left:"12%"}),jQuery(".smile__widgits").css({position:"",zIndex:""}),n=2,jQuery(".panel"+n).css({position:"relative",zIndex:"4"}),jQuery(".widgit__chevron-right").css({display:"none"})),n==0&&(jQuery(".smile__widgits_container .smile__grid").animate({left:"50%"}),jQuery(".smile__widgits").css({position:"",zIndex:""}),n=1,jQuery(".panel"+n).css({position:"relative",zIndex:"4"}),jQuery(".widgit__chevron-left").css({display:"block"})))},allowPageScroll:"vertical"});jQuery(document).on("swipeleft",".smile__widgits_container .smile__grid",function(){viewport().width<=1220&&viewport().width>=767&&(n==1&&(jQuery(".smile__widgits_container .smile__grid").animate({left:"86%"}),jQuery(".smile__widgits").css({position:"",zIndex:""}),n=0,jQuery(".panel"+n).css({position:"relative",zIndex:"4"}),jQuery(".widgit__chevron-left").css({display:"none"})),n==2&&(jQuery(".smile__widgits_container .smile__grid").animate({left:"50%"}),jQuery(".smile__widgits").css({position:"",zIndex:""}),n=1,jQuery(".panel"+n).css({position:"relative",zIndex:"4"}),jQuery(".widgit__chevron-right").css({display:"block"})))});jQuery(document).on("swiperight",".smile__widgits_container .smile__grid",function(){viewport().width<=1220&&viewport().width>=767&&(n==1&&(jQuery(".smile__widgits_container .smile__grid").animate({left:"12%"}),jQuery(".smile__widgits").css({position:"",zIndex:""}),n=2,jQuery(".panel"+n).css({position:"relative",zIndex:"4"}),jQuery(".widgit__chevron-right").css({display:"none"})),n==0&&(jQuery(".smile__widgits_container .smile__grid").animate({left:"50%"}),jQuery(".smile__widgits").css({position:"",zIndex:""}),n=1,jQuery(".panel"+n).css({position:"relative",zIndex:"4"}),jQuery(".widgit__chevron-left").css({display:"block"})))})})