!function(t,n,e){var a,i,r="jquery-appear",o="appear",c="appearing",s="disappear",d=[o,c,s],u=":"+r,f=r+"-scroller",l=r+"-display",h=r+"-watch",v=":"+h,p=void 0!==n.MutationObserver,g="animationend webkitAnimationEnd oAnimationEnd",m="transitionend webkitTransitionEnd oTransitionEnd",b=!1,w=t(),y=t();function D(){var n=t(this),e=n.is(":visible")&&function(t){var n=t.getBoundingClientRect();return(n.top>=0&&n.top<=a||n.bottom>=0&&n.bottom<=a)&&(n.left>=0&&n.left<=i||n.right>=0&&n.right<=i)}(this);e?(n.trigger(c),e!=n.data(r)&&n.trigger(o)):e!=n.data(r)&&n.trigger(s),n.data(r,e)}function E(){a=n.innerHeight||e.documentElement.clientHeight,i=n.innerWidth||e.documentElement.clientWidth,k()}t.expr[":"][r]=function(n){return void 0!==t(n).data(r)},t.expr[":"][h]=function(n){return void 0!==t(n).data(h)};var T,I,_,k=(T=function(){(w=w.filter(u)).each(D)},_=0,function(){var t=this,n=arguments,e=function(){_=new Date,T.apply(t,n)};I&&(clearTimeout(I),I=null);var a=new Date-_;a>10?e():I=setTimeout(e,10-a)});function x(){t(this).find(u).each(D)}function S(){var n=t(this);(function(t){if(t.data(f))return!1;var n=t.css("overflow");if("scroll"!=n&&"auto"!=n)return!1;return t.data(f,1),t.bind("scroll",x),!0})(n)|function(t){if(p||t.data(l))return;if("none"!=t.css("display"))return;return t.data(l,1),t._bindShow(x),!0}(n)&&(n.data(h)||(n.data(h,1),y=y.add(n)))}function j(){var n=t(this);n.data(h)&&0===n.find(u).length&&(n.removeData(f).removeData(l).removeData(h),n.unbind("scroll",x)._unbindShow(x))}function q(a){var i=t(this);if(!i.is(u)){if(!b)if(b=!0,E(),t(e).ready(function(){t(n).on("resize",E).on("scroll",k),t(e.body).on(g+" "+m,k)}),p)new MutationObserver(k).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0});i.data(r,!1),i.parents().each(S),setTimeout(function(){D.call(i[0])},1),w=w.add(this)}}function A(n){var e=t(this);setTimeout(function(){for(var n=t._data(e[0],"events")||{},a=!1,i=0;i<d.length;++i)if(n[d[i]]){a=!0;break}a&&(e.removeData(r),(y=y.filter(v)).each(j))},1)}function H(){for(var n=0;n<d.length;++n)t.event.special[d[n]]={add:q,remove:A}}t.appear={check:k,refresh:function(n){(void 0===n?w:t(n)).each(function(){var n=t(this);n.is(u)&&n.parents().each(S)})},setEventPrefix:function(n){for(var e=0;e<d.length;++e)delete t.event.special[d[e]];d=[o=n+"appear",c=n+"appearing",s=n+"disappear"],H()}},H(),function(){var n,e="jquery-appear-show",a=r+"-"+e,i=":"+a,o=50,c=t();function s(){var n=t(this),i="none"!=n.css("display");n.data(a)!=i&&(n.data(a,i),i&&n.trigger(e))}function d(){(c=c.filter(i)).each(s),0===c.length&&(n=clearInterval(n))}t.expr[":"][a]=function(n){return void 0!==t(n).data(a)},t.fn._bindShow=function(t){this.bind(e,t),this.data(a,"none"!=this.css("display")),c=c.add(this),o&&!n&&(n=setInterval(d,o))},t.fn._unbindShow=function(t){this.unbind(e,t),this.removeData(a)},t.appear.setInterval=function(e){e==o||!t.isNumeric(e)||e<0||(o=e,n=clearInterval(n),o>0&&(n=setInterval(d,o)))}}()}(jQuery,window,document);