!function(e,a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof module&&module.exports?require("jquery"):e.jQuery)}(this,function(e){e.fn.appear=function(a,r){var n=e.extend({data:void 0,one:!0,accX:0,accY:0},r);return this.each(function(){var r=e(this);if(r.appeared=!1,a){var p=e(window),t=function(){if(r.is(":visible")){var e=p.scrollLeft(),a=p.scrollTop(),t=r.offset(),i=t.left,c=t.top,o=n.accX,f=n.accY,s=r.height(),u=p.height(),d=r.width(),l=p.width();a<=c+s+f&&c<=a+u+f&&e<=i+d+o&&i<=e+l+o?r.appeared||r.trigger("appear",n.data):r.appeared=!1}else r.appeared=!1},i=function(){if(r.appeared=!0,n.one){p.unbind("scroll",t);var i=e.inArray(t,e.fn.appear.checks);0<=i&&e.fn.appear.checks.splice(i,1)}a.apply(this,arguments)};n.one?r.one("appear",n.data,i):r.bind("appear",n.data,i),p.scroll(t),e.fn.appear.checks.push(t),t()}else r.trigger("appear",n.data)})},e.extend(e.fn.appear,{checks:[],timeout:null,checkAll:function(){var a=e.fn.appear.checks.length;if(0