blazy-8.x-2.x-dev/js/plugin/blazy.viewport.min.js
js/plugin/blazy.viewport.min.js
!function(r,o,s){"use strict";function e(t){return t?t.target||t:null}function u(t){t=t||0;var i=r.windowSize();return{top:0-t,left:0-t,bottom:i.height+t,right:i.width+t,width:i.width,height:i.height}}function f(t){t=e(t);return t&&r.isNull(t.offsetParent)}r.viewport={vp:{top:0,right:0,bottom:0,left:0},ww:0,opts:{},init:function(t){var i=this;return i.opts=t||{},i.vp=u(i.opts.offset),i.vp},isResized:function(t,i){return i&&"contentRect"in i&&(!!i.contentRect||!!t.resizeTrigger)||!1},isHidden:f,isVisible:function(t,i){if(!t)return!1;var n=e(t);return r.isIo&&"isIntersecting"in t?t.isIntersecting||0<t.intersectionRatio:(n=n,i=i,n=r.isElm(n)?r.rect(n):n,i=i||u(),n.right>=i.left&&n.bottom>=i.top&&n.left<=i.right&&n.top<=i.bottom)},onresizing:function(t,i){var n=t.elms,e=t.options||{};r.isFun(e.resizing)&&e.resizing(t,n,i)},update:function(t){t=t||i.opts;var i=this,n=t.offset||0,e=s.documentElement;return i.vp.bottom=(o.innerHeight||e.clientHeight)+n,i.vp.right=(o.innerWidth||e.clientWidth)+n,i.windowData(t)},visibleParent:function(t){for(var t=e(t),i=r.parent(t),n=i;i;){if(r.isElm(i)&&!f(i)){n=i;break}i=i.parentElement||i.parentNode}return n},windowData:function(t,i){t=t||n.opts;var n=this,e=t.offset||0,r=t.mobileFirst||!1;return i&&n.init(t),n.ww=n.vp.right-e,{vp:n.vp,ww:n.ww,up:r}}}}(dBlazy,this,this.document);