{"size": 6790, "ext": "js", "max_stars_repo_path": "wordpress_team007/wp-content/plugins/modula-best-grid-gallery/assets/js/lazysizes.min.js", "max_stars_repo_name": "cp5637-sp21-2019-assessment2/Team-007", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "wordpress_team007/wp-content/plugins/modula-best-grid-gallery/assets/js/lazysizes.min.js", "max_issues_repo_name": "cp5637-sp21-2019-assessment2/Team-007", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "wordpress_team007/wp-content/plugins/modula-best-grid-gallery/assets/js/lazysizes.min.js", "max_forks_repo_name": "cp5637-sp21-2019-assessment2/Team-007", "max_forks_repo_forks_event_min_datetime": "2021-01-05T12:38:57.000Z", "max_forks_repo_forks_event_max_datetime": "2021-01-05T12:38:57.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 6790.0, "max_line_length": 6790, "alphanum_fraction": 0.6430044183}
!function(e,t){var n=function(o,L){"use strict";if(!L.getElementsByClassName)return;var R,k,D=L.documentElement,l=o.Date,a=o.HTMLPictureElement,c="addEventListener",H="getAttribute",d=o[c],O=o.setTimeout,u=o.requestAnimationFrame||O,P=o.requestIdleCallback,$=/^picture$/i,i=["load","error","lazyincluded","_lazyloaded"],n={},I=Array.prototype.forEach,q=function(e,t){return n[t]||(n[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),n[t].test(e[H]("class")||"")&&n[t]},j=function(e,t){q(e,t)||e.setAttribute("class",(e[H]("class")||"").trim()+" "+t)},G=function(e,t){var n;(n=q(e,t))&&e.setAttribute("class",(e[H]("class")||"").replace(n," "))},J=function(t,n,e){var a=e?c:"removeEventListener";e&&J(t,n),i.forEach(function(e){t[a](e,n)})},K=function(e,t,n,a,i){var r=L.createEvent("Event");return n||(n={}),n.instance=R,r.initEvent(t,!a,!i),r.detail=n,e.dispatchEvent(r),r},Q=function(e,t){var n;!a&&(n=o.picturefill||k.pf)?(t&&t.src&&!e[H]("srcset")&&e.setAttribute("srcset",t.src),n({reevaluate:!0,elements:[e]})):t&&t.src&&(e.src=t.src)},U=function(e,t){return(getComputedStyle(e,null)||{})[t]},s=function(e,t,n){for(n=n||e.offsetWidth;n<k.minSize&&t&&!e._lazysizesWidth;)n=t.offsetWidth,t=t.parentNode;return n},V=function(){var n,a,t=[],i=[],r=t,s=function(){var e=r;for(r=t.length?i:t,a=!(n=!0);e.length;)e.shift()();n=!1},e=function(e,t){n&&!t?e.apply(this,arguments):(r.push(e),a||(a=!0,(L.hidden?O:u)(s)))};return e._lsFlush=s,e}(),X=function(n,e){return e?function(){V(n)}:function(){var e=this,t=arguments;V(function(){n.apply(e,t)})}},Y=function(e){var t,n,a=function(){t=null,e()},i=function(){var e=l.now()-n;e<99?O(i,99-e):(P||a)(a)};return function(){n=l.now(),t||(t=O(i,99))}};!function(){var e,t={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(e in k=o.lazySizesConfig||o.lazysizesConfig||{},t)e in k||(k[e]=t[e]);o.lazySizesConfig=k,O(function(){k.init&&r()})}();var e=function(){var m,z,u,y,t,h,v,g,p,C,b,A,r=/^img$/i,f=/^iframe$/i,E="onscroll"in o&&!/(gle|ing)bot/.test(navigator.userAgent),_=0,w=0,M=-1,N=function(e){w--,(!e||w<0||!e.target)&&(w=0)},x=function(e){return null==A&&(A="hidden"==U(L.body,"visibility")),A||"hidden"!=U(e.parentNode,"visibility")&&"hidden"!=U(e,"visibility")},W=function(e,t){var n,a=e,i=x(e);for(g-=t,b+=t,p-=t,C+=t;i&&(a=a.offsetParent)&&a!=L.body&&a!=D;)(i=0<(U(a,"opacity")||1))&&"visible"!=U(a,"overflow")&&(n=a.getBoundingClientRect(),i=C>n.left&&p<n.right&&b>n.top-1&&g<n.bottom+1);return i},e=function(){var e,t,n,a,i,r,s,o,l,c,d,u,f=R.elements;if((y=k.loadMode)&&w<8&&(e=f.length)){for(t=0,M++,c=!k.expand||k.expand<1?500<D.clientHeight&&500<D.clientWidth?500:370:k.expand,R._defEx=c,d=c*k.expFactor,u=k.hFac,A=null,_<d&&w<1&&2<M&&2<y&&!L.hidden?(_=d,M=0):_=1<y&&1<M&&w<6?c:0;t<e;t++)if(f[t]&&!f[t]._lazyRace)if(E)if((o=f[t][H]("data-expand"))&&(r=1*o)||(r=_),l!==r&&(h=innerWidth+r*u,v=innerHeight+r,s=-1*r,l=r),n=f[t].getBoundingClientRect(),(b=n.bottom)>=s&&(g=n.top)<=v&&(C=n.right)>=s*u&&(p=n.left)<=h&&(b||C||p||g)&&(k.loadHidden||x(f[t]))&&(z&&w<3&&!o&&(y<3||M<4)||W(f[t],r))){if(S(f[t]),i=!0,9<w)break}else!i&&z&&!a&&w<4&&M<4&&2<y&&(m[0]||k.preloadAfterLoad)&&(m[0]||!o&&(b||C||p||g||"auto"!=f[t][H](k.sizesAttr)))&&(a=m[0]||f[t]);else S(f[t]);a&&!i&&S(a)}},n=function(e){var n,a=0,i=k.throttleDelay,r=k.ricTimeout,t=function(){n=!1,a=l.now(),e()},s=P&&49<r?function(){P(t,{timeout:r}),r!==k.ricTimeout&&(r=k.ricTimeout)}:X(function(){O(t)},!0);return function(e){var t;(e=!0===e)&&(r=33),n||(n=!0,(t=i-(l.now()-a))<0&&(t=0),e||t<9?s():O(s,t))}}(e),T=function(e){var t=e.target;t._lazyCache?delete t._lazyCache:(N(e),j(t,k.loadedClass),G(t,k.loadingClass),J(t,B),K(t,"lazyloaded"))},a=X(T),B=function(e){a({target:e.target})},F=function(e){var t,n=e[H](k.srcsetAttr);(t=k.customMedia[e[H]("data-media")||e[H]("media")])&&e.setAttribute("media",t),n&&e.setAttribute("srcset",n)},s=X(function(e,t,n,a,i){var r,s,o,l,c,d;(c=K(e,"lazybeforeunveil",t)).defaultPrevented||(a&&(n?j(e,k.autosizesClass):e.setAttribute("sizes",a)),s=e[H](k.srcsetAttr),r=e[H](k.srcAttr),i&&(o=e.parentNode,l=o&&$.test(o.nodeName||"")),d=t.firesLoad||"src"in e&&(s||r||l),c={target:e},j(e,k.loadingClass),d&&(clearTimeout(u),u=O(N,2500),J(e,B,!0)),l&&I.call(o.getElementsByTagName("source"),F),s?e.setAttribute("srcset",s):r&&!l&&(f.test(e.nodeName)?function(t,n){try{t.contentWindow.location.replace(n)}catch(e){t.src=n}}(e,r):e.src=r),i&&(s||l)&&Q(e,{src:r})),e._lazyRace&&delete e._lazyRace,G(e,k.lazyClass),V(function(){(!d||e.complete&&1<e.naturalWidth)&&(T(c),e._lazyCache=!0,O(function(){"_lazyCache"in e&&delete e._lazyCache},9))},!0)}),S=function(e){var t,n=r.test(e.nodeName),a=n&&(e[H](k.sizesAttr)||e[H]("sizes")),i="auto"==a;(!i&&z||!n||!e[H]("src")&&!e.srcset||e.complete||q(e,k.errorClass)||!q(e,k.lazyClass))&&(t=K(e,"lazyunveilread").detail,i&&Z.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,w++,s(e,t,i,a,n))},i=function(){if(!z)if(l.now()-t<999)O(i,999);else{var e=Y(function(){k.loadMode=3,n()});z=!0,k.loadMode=3,n(),d("scroll",function(){3==k.loadMode&&(k.loadMode=2),e()},!0)}};return{_:function(){t=l.now(),R.elements=L.getElementsByClassName(k.lazyClass),m=L.getElementsByClassName(k.lazyClass+" "+k.preloadClass),d("scroll",n,!0),d("resize",n,!0),o.MutationObserver?new MutationObserver(n).observe(D,{childList:!0,subtree:!0,attributes:!0}):(D[c]("DOMNodeInserted",n,!0),D[c]("DOMAttrModified",n,!0),setInterval(n,999)),d("hashchange",n,!0),["focus","mouseover","click","load","transitionend","animationend","webkitAnimationEnd"].forEach(function(e){L[c](e,n,!0)}),/d$|^c/.test(L.readyState)?i():(d("load",i),L[c]("DOMContentLoaded",n),O(i,2e4)),R.elements.length?(e(),V._lsFlush()):n()},checkElems:n,unveil:S}}(),Z=function(){var n,r=X(function(e,t,n,a){var i,r,s;if(e._lazysizesWidth=a,a+="px",e.setAttribute("sizes",a),$.test(t.nodeName||""))for(i=t.getElementsByTagName("source"),r=0,s=i.length;r<s;r++)i[r].setAttribute("sizes",a);n.detail.dataAttr||Q(e,n.detail)}),a=function(e,t,n){var a,i=e.parentNode;i&&(n=s(e,i,n),(a=K(e,"lazybeforesizes",{width:n,dataAttr:!!t})).defaultPrevented||(n=a.detail.width)&&n!==e._lazysizesWidth&&r(e,i,a,n))},e=Y(function(){var e,t=n.length;if(t)for(e=0;e<t;e++)a(n[e])});return{_:function(){n=L.getElementsByClassName(k.autosizesClass),d("resize",e)},checkElems:e,updateElem:a}}(),r=function(){r.i||(r.i=!0,Z._(),e._())};return R={cfg:k,autoSizer:Z,loader:e,init:r,uP:Q,aC:j,rC:G,hC:q,fire:K,gW:s,rAF:V}}(e,e.document);e.lazySizes=n,"object"==typeof module&&module.exports&&(module.exports=n)}(window);