PageSourceSearch

https://betalningsutredningen.se/wp-content/plugins/newsy-elements/assets/js/lazysizes.js?ver=2.2.0

js betalningsutredningen.se collected 2026-10-01 15:39:44 UTC 7,136 bytes, 1 lines download raw bytes

1!function(e,t){t=t(e,e.document,Date);e.lazySizes=t,"object"==typeof module&&module.exports&&(module.exports=t)}("undefined"!=typeof window?window:{},function(a,f,s){"use strict";var m,y,n,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,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(n in y=a.lazySizesConfig||a.lazysizesConfig||{},i)n in y||(y[n]=i[n]);if(!f||!f.getElementsByClassName)return{init:function(){},cfg:y,noSupport:!0};function d(e,t){S(e,t)||e.setAttribute("class",(e[h]("class")||"").trim()+" "+t)}function u(e,t){(t=S(e,t))&&e.setAttribute("class",(e[h]("class")||"").replace(t," "))}function v(e,t){var n;!A&&(n=a.picturefill||y.pf)?(t&&t.src&&!e[h]("srcset")&&e.setAttribute("srcset",t.src),n({reevaluate:!0,elements:[e]})):t&&t.src&&(e.src=t.src)}var o,r,l,p,C,b=f.documentElement,A=a.HTMLPictureElement,E="addEventListener",h="getAttribute",e=a[E].bind(a),c=a.setTimeout,_=a.requestAnimationFrame||c,w=a.requestIdleCallback,N=/^picture$/i,M=["load","error","lazyincluded","_lazyloaded"],x={},W=Array.prototype.forEach,S=function(e,t){return x[t]||(x[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),x[t].test(e[h]("class")||"")&&x[t]},B=function(t,n,e){var a=e?E:"removeEventListener";e&&B(t,n),M.forEach(function(e){t[a](e,n)})},L=function(e,t,n,a,i){var s=f.createEvent("Event");return(n=n||{}).instance=m,s.initEvent(t,!a,!i),s.detail=n,e.dispatchEvent(s),s},T=function(e,t){return(getComputedStyle(e,null)||{})[t]},F=function(e,t,n){for(n=n||e.offsetWidth;n<y.minSize&&t&&!e._lazysizesWidth;)n=t.offsetWidth,t=t.parentNode;return n},R=(p=[],C=l=[],k._lsFlush=D,k);function D(){var e=C;for(C=l.length?p:l,r=!(o=!0);e.length;)e.shift()();o=!1}function k(e,t){o&&!t?e.apply(this,arguments):(C.push(e),r||(r=!0,(f.hidden?c:_)(D)))}function H(n,e){return e?function(){R(n)}:function(){var e=this,t=arguments;R(function(){n.apply(e,t)})}}function O(e){function t(){var e=s.now()-a;e<99?c(t,99-e):(w||i)(i)}var n,a,i=function(){n=null,e()};return function(){a=s.now(),n=n||c(t,99)}}ie=/^img$/i,se=/^iframe$/i,oe="onscroll"in a&&!/(gle|ing)bot/.test(navigator.userAgent),g=-1,le=function(e){return(X=null==X?"hidden"==T(f.body,"visibility"):X)||!("hidden"==T(e.parentNode,"visibility")&&"hidden"==T(e,"visibility"))},Y=ze,ee=z=re=0,te=y.throttleDelay,ne=y.ricTimeout,ae=w&&49<ne?function(){w(ge,{timeout:ne}),ne!==y.ricTimeout&&(ne=y.ricTimeout)}:H(function(){c(ge)},!0),ce=H(ve),de=function(e){ce({target:e.target})},ue=H(function(t,n,e,a,i){var s,o,r;if(!(o=L(t,"lazybeforeunveil",n)).defaultPrevented){if(a&&(e?d(t,y.autosizesClass):t.setAttribute("sizes",a)),e=t[h](y.srcsetAttr),a=t[h](y.srcAttr),i&&(s=(l=t.parentNode)&&N.test(l.nodeName||"")),r=n.firesLoad||"src"in t&&(e||a||s),o={target:t},d(t,y.loadingClass),r&&(clearTimeout(q),q=c(he,2500),B(t,de,!0)),s&&W.call(l.getElementsByTagName("source"),pe),e)t.setAttribute("srcset",e);else if(a&&!s)if(se.test(t.nodeName)){var n=t,l=a;try{n.contentWindow.location.replace(l)}catch(e){n.src=l}}else t.src=a;i&&(e||s)&&v(t,{src:a})}t._lazyRace&&delete t._lazyRace,u(t,y.lazyClass),R(function(){var e=t.complete&&1<t.naturalWidth;r&&!e||(e&&d(t,"ls-is-cached"),ve(o),t._lazyCache=!0,c(function(){"_lazyCache"in t&&delete t._lazyCache},9)),"lazy"==t.loading&&z--},!0)}
1),me=O(function(){y.loadMode=3,t()});var P,$,q,I,U,j,G,J,K,Q,V,X,Y,Z,ee,te,ne,ae,ie,se,oe,re,z,g,le,t,ce,de,ue,fe,me,ye={_:function(){U=s.now(),m.elements=f.getElementsByClassName(y.lazyClass),P=f.getElementsByClassName(y.lazyClass+" "+y.preloadClass),e("scroll",t,!0),e("resize",t,!0),e("pageshow",function(e){var t;!e.persisted||(t=f.querySelectorAll("."+y.loadingClass)).length&&t.forEach&&_(function(){t.forEach(function(e){e.complete&&fe(e)})})}),a.MutationObserver?new MutationObserver(t).observe(b,{childList:!0,subtree:!0,attributes:!0}):(b[E]("DOMNodeInserted",t,!0),b[E]("DOMAttrModified",t,!0),setInterval(t,999)),e("hashchange",t,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(e){f[E](e,t,!0)}),/d$|^c/.test(f.readyState)?be():(e("load",be),f[E]("DOMContentLoaded",t),c(be,2e4)),m.elements.length?(ze(),R._lsFlush()):t()},checkElems:t=function(e){var t;(e=!0===e)&&(ne=33),Z||(Z=!0,(t=te-(s.now()-ee))<0&&(t=0),e||t<9?ae():c(ae,t))},unveil:fe=function(e){var t,n,a,i;e._lazyRace||(!(i="auto"==(a=(n=ie.test(e.nodeName))&&(e[h](y.sizesAttr)||e[h]("sizes"))))&&$||!n||!e[h]("src")&&!e.srcset||e.complete||S(e,y.errorClass)||!S(e,y.lazyClass))&&(t=L(e,"lazyunveilread").detail,i&&we.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,z++,ue(e,t,i,a,n))},_aLSL:Ce};function he(e){z--,e&&!(z<0)&&e.target||(z=0)}function ze(){var d,e,t,n,a,i,s,u,o,r,l,c=m.elements;if((I=y.loadMode)&&z<8&&(d=c.length)){for(e=0,g++;e<d;e++)if(c[e]&&!c[e]._lazyRace)if(!oe||m.prematureUnveil&&m.prematureUnveil(c[e]))fe(c[e]);else if((s=c[e][h]("data-expand"))&&(a=+s)||(a=re),o||(o=!y.expand||y.expand<1?500<b.clientHeight&&500<b.clientWidth?500:370:y.expand,r=(m._defEx=o)*y.expFactor,l=y.hFac,X=null,re<r&&z<1&&2<g&&2<I&&!f.hidden?(re=r,g=0):re=1<I&&1<g&&z<6?o:0),u!==a&&(j=innerWidth+a*l,G=innerHeight+a,i=-1*a,u=a),r=c[e].getBoundingClientRect(),(V=r.bottom)>=i&&(J=r.top)<=G&&(Q=r.right)>=i*l&&(K=r.left)<=j&&(V||Q||K||J)&&(y.loadHidden||le(c[e]))&&($&&z<3&&!s&&(I<3||g<4)||function(e,t){var n,a=e,i=le(e);for(J-=t,V+=t,K-=t,Q+=t;i&&(a=a.offsetParent)&&a!=f.body&&a!=b;)(i=0<(T(a,"opacity")||1))&&"visible"!=T(a,"overflow")&&(n=a.getBoundingClientRect(),i=Q>n.left&&K<n.right&&V>n.top-1&&J<n.bottom+1);return i}(c[e],a))){if(fe(c[e]),n=!0,9<z)break}else!n&&$&&!t&&z<4&&g<4&&2<I&&(P[0]||y.preloadAfterLoad)&&(P[0]||
1!s&&(V||Q||K||J||"auto"!=c[e][h](y.sizesAttr)))&&(t=P[0]||c[e]);t&&!n&&fe(t)}}function ge(){Z=!1,ee=s.now(),Y()}function ve(e){var t=e.target;t._lazyCache?delete t._lazyCache:(he(e),d(t,y.loadedClass),u(t,y.loadingClass),B(t,de),L(t,"lazyloaded"))}function pe(e){var t,n=e[h](y.srcsetAttr);(t=y.customMedia[e[h]("data-media")||e[h]("media")])&&e.setAttribute("media",t),n&&e.setAttribute("srcset",n)}function Ce(){3==y.loadMode&&(y.loadMode=2),me()}function be(){$||(s.now()-U<999?c(be,999):($=!0,y.loadMode=3,t(),e("scroll",Ce,!0)))}Ee=H(function(e,t,n,a){var i,s,o;if(e._lazysizesWidth=a,e.setAttribute("sizes",a+="px"),N.test(t.nodeName||""))for(s=0,o=(i=t.getElementsByTagName("source")).length;s<o;s++)i[s].setAttribute("sizes",a);n.detail.dataAttr||v(e,n.detail)});var Ae,Ee,_e,we={_:function(){Ae=f.getElementsByClassName(y.autosizesClass),e("resize",_e)},checkElems:_e=O(function(){var e,t=Ae.length;if(t)for(e=0;e<t;e++)Ne(Ae[e])}),updateElem:Ne};function Ne(e,t,n){var a=e.parentNode;a&&(n=F(e,a,n),(t=L(e,"lazybeforesizes",{width:n,dataAttr:!!t})).defaultPrevented||(n=t.detail.width)&&n!==e._lazysizesWidth&&Ee(e,a,t,n))}function Me(){!Me.i&&f.getElementsByClassName&&(Me.i=!0,we._(),ye._())}return c(function(){y.init&&Me()}),m={cfg:y,autoSizer:we,loader:ye,init:Me,uP:v,aC:d,rC:u,hC:S,fire:L,gW:F,rAF:R}});

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.