https://www.sm-jaws.com/wp/wp-content/themes/cp5-t008-BRILLIANT/assets/js/lazysizes.min.js?ver=3.0.0
vendor: 4,178 bytes, line 1
1!function(t,e){var n=function(t,e){"use strict";if(!e.getElementsByClassName)return;var n,i=e.documentElement,a=t.Date,r=t.HTMLPictureElement,s=t.addEventListener,o=t.setTimeout,l=t.requestAnimationFrame||o,u=t.requestIdleCallback,d=/^picture$/i,c=["load","error","lazyincluded","_lazyloaded"],f={},g=Array.prototype.forEach,m=function(t,e){return f[e]||(f[e]=new RegExp("(\\s|^)"+e+"(\\s|$)")),f[e].test(t.getAttribute("class")||"")&&f[e]},v=function(t,e){m(t,e)||t.setAttribute("class",(t.getAttribute("class")||"").trim()+" "+e)},z=function(t,e){var n;(n=m(t,e))&&t.setAttribute("class",(t.getAttribute("class")||"").replace(n," "))},h=function(t,e,n){var i=n?"addEventListener":"removeEventListener";n&&h(t,e),c.forEach(function(n){t[i](n,e)})},y=function(t,n,i,a,r){var s=e.createEvent("CustomEvent");return s.initCustomEvent(n,!a,!r,i||{}),t.dispatchEvent(s),s},p=function(e,i){var a;!r&&(a=t.picturefill||n.pf)?a({reevaluate:!0,elements:[e]}):i&&i.src&&(e.src=i.src)},b=function(t,e){return(getComputedStyle(t,null)||{})[e]},A=function(t,e,i){for(i=i||t.offsetWidth;i<n.minSize&&e&&!t._lazysizesWidth;)i=e.offsetWidth,e=e.parentNode;return i},C=function(){var t,n,i=[],a=[],r=i,s=function(){var e=r;for(r=i.length?a:i,t=!0,n=!1;e.length;)e.shift()();t=!1},u=function(i,a){t&&!a?i.apply(this,arguments):(r.push(i),n||(n=!0,(e.hidden?o:l)(s)))};return u._lsFlush=s,u}(),E=function(t,e){return e?function(){C(t)}:function(){var e=this,n=arguments;C(function(){t.apply(e,n)})}},N=function(t){var e,n=0,i=666,r=function(){e=!1,n=a.now(),t()},s=u?function(){u(r,{timeout:i}),666!==i&&(i=666)}:E(function(){o(r)},!0);return function(t){var r;(t=!0===t)&&(i=44),e||(e=!0,(r=125-(a.now()-n))<0&&(r=0),t||r<9&&u?s():o(s,r))}},w=function(t){var e,n,i=function(){e=null,t()},r=function(){var t=a.now()-n;t<99?o(r,99-t):(u||i)(i)};return function(){n=a.now(),e||(e=o(r,99))}},M=function(){var r,l,u,c,f,A,M,L,W,x,B,F,S,R,k,O=/^img$/i,P=/^iframe$/i,T="onscroll"in t&&!/glebot/.test(navigator.userAgent),$=0,D=0,H=-1,I=function(t){D--,t&&t.target&&h(t.target,I),(!t||D<0||!t.target)&&(D=0)},q=function(t,n){var a,r=t,s="hidden"==b(e.body,"visibility")||"hidden"!=b(t,"visibility");for(W-=n,F+=n,x-=n,B+=n;s&&(r=r.offsetParent)&&r!=e.body&&r!=i;)(s=(b(r,"opacity")||1)>0)&&"visible"!=b(r,"overflow")&&(a=r.getBoundingClientRect(),s=B>a.left&&x<a.right&&F>a.top-1&&W<a.bottom+1);return s},j=function(){var t,a,s,o,d,c,g,m,v;if((f=n.loadMode)&&D<8&&(t=r.length)){a=0,H++,null==R&&("expand"in n||(n.expand=i.clientHeight>500&&i.clientWidth>500?500:370),S=n.expand,R=S*n.expFactor),$<R&&D<1&&H>2&&f>2&&!e.hidden?($=R,H=0):$=f>1&&H>1&&D<6?S:0;for(;a<t;a++)if(r[a]&&!r[a]._lazyRace)if(T)if((m=r[a].getAttribute("data-expand"))&&(c=1*m)||(c=$),v!==c&&(M=innerWidth+c*k,L=innerHeight+c,g=-1*c,v=c),s=r[a].getBoundingClientRect(),(F=s.bottom)>=g&&(W=s.top)<=L&&(B=s.right)>=g*k&&(x=s.left)<=M&&(F||B||x||W)&&(u&&D<3&&!m&&(f<3||H<4)||q(r[a],c))){if(X(r[a]),d=!0,D>9)break}else!d&&u&&!o&&D<4&&H<4&&f>2&&(l[0]||n.preloadAfterLoad)&&(l[0]||!m&&(F||B||x||W||"auto"!=r[a].getAttribute(n.sizesAttr)))&&(o=l[0]||r[a]);else X(r[a]);o&&!d&&X(o)}},G=N(j),J=function(t){v(t.target,n.loadedClass),z(t.target,n.loadingClass),h(t.target,Q)},K=E(J),Q=function(t){K({target:t.target})},U=function(t){var e,i,a=t.getAttribute(n.srcsetAttr);(e=n.customMedia[t.getAttribute("data-media")||t.getAttribute("media")])&&t.setAttribute("media",e),a&&t.setAttribute("srcset",a),e&&((i=t.parentNode).insertBefore(t.cloneNode(),t),i.removeChild(t))},V=E(function(t,e,i,a,r){var s,l,u,f,m,b;(m=y(t,"lazybeforeunveil",e)).defaultPrevented||(a&&(i?v(t,n.autosizesClass):t.setAttribute("sizes",a)),l=t.getAttribute(n.srcsetAttr),s=t.getAttribute(n.srcAttr),r&&(u=t.parentNode,f=u&&d.test(u.nodeName||"")),b=e.firesLoad||"src"in t&&(l||s||f),m={target:t},b&&(h(t,I,!0),clearTimeout(c),c=o(I,2500),v(t,n.loadingClass),h(t,Q,!0)),f&&g.call(u.getElementsByTagName("source"),U),l?t.setAttribute("srcset",l):s&&!f&&(P.test(t.nodeName)?function(t,e){try{t.contentWindow.location.replace(e)}catch(n){t.src=e}}(t,s):t.src=s),(l||f)&&p(t,{src:s})),t._lazyRace&&delete t._lazyRace,z(t,n.lazyClass),C(function(){(!b||t.complete&&t.naturalWi
1dth>1)&&(b?I(m):D--,J(m))},!0)}),X=function(t){var e,i=O.test(t.nodeName),a=i&&(t.getAttribute(n.sizesAttr)||t.getAttribute("sizes")),r="auto"==a;(!r&&u||!i||!t.src&&!t.srcset||t.complete||m(t,n.errorClass))&&(e=y(t,"lazyunveilread").detail,r&&_.updateElem(t,!0,t.offsetWidth),t._lazyRace=!0,D++,V(t,e,r,a,i))},Y=function(){if(!u)if(a.now()-A<999)o(Y,999);else{var t=w(function(){n.loadMode=3,G()});u=!0,n.loadMode=3,G(),s("scroll",function(){3==n.loadMode&&(n.loadMode=2),t()},!0)}};return{_:function(){A=a.now(),r=e.getElementsByClassName(n.lazyClass),l=e.getElementsByClassName(n.lazyClass+" "+n.preloadClass),k=n.hFac,s("scroll",G,!0),s("resize",G,!0),t.MutationObserver?new MutationObserver(G).observe(i,{childList:!0,subtree:!0,attributes:!0}):(i.addEventListener("DOMNodeInserted",G,!0),i.addEventListener("DOMAttrModified",G,!0),setInterval(G,999)),s("hashchange",G,!0),["focus","mouseover","click","load","transitionend","animationend","webkitAnimationEnd"].forEach(function(t){e.addEventListener(t,G,!0)}),/d$|^c/.test(e.readyState)?Y():(s("load",Y),e.addEventListener("DOMContentLoaded",G),o(Y,2e4)),r.length?(j(),C._lsFlush()):G()},checkElems:G,unveil:X}}(),_=function(){var t,i=E(function(t,e,n,i){var a,r,s;if(t._lazysizesWidth=i,i+="px",t.setAttribute("sizes",i),d.test(e.nodeName||""))for(a=e.getElementsByTagName("source"),r=0,s=a.length;r<s;r++)a[r].setAttribute("sizes",i);n.detail.dataAttr||p(t,n.detail)}),a=function(t,e,n){var a,r=t.parentNode;r&&(n=A(t,r,n),(a=y(t,"lazybeforesizes",{width:n,dataAttr:!!e})).defaultPrevented||(n=a.detail.width)&&n!==t._lazysizesWidth&&i(t,r,a,n))},r=w(function(){var e,n=t.length;if(n)for(e=0;e<n;e++)a(t[e])});return{_:function(){t=e.getElementsByClassName(n.autosizesClass),s("resize",r)},checkElems:r,updateElem:a}}(),L=function(){L.i||(L.i=!0,_._(),M._())};return function(){var e,i={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};n=t.lazySizesConfig||t.lazysizesConfig||{};for(e in i)e in n||(n[e]=i[e]);t.lazySizesConfig=n,o(function(){n.init&&L()})}(),{cfg:n,autoSizer:_,loader:M,init:L,uP:p,aC:v,rC:z,hC:m,fire:y,gW:A,rAF:C}}(t,t.document);t.lazySizes=n,"object"==typeof module&&module.exports&&(module.exports=n)}(window);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.