PageSourceSearch

https://www.kaufmann-store.com/theme/778999b73b95d096d615ff0430da7…/frosh-lazy-sizes.js?1790057350

js kaufmann-store.com collected 2026-09-25 07:05:05 UTC 13,191 bytes, 1 lines download raw bytes

1(()=>{var e={859:e=>{!function(t,n){var i=n(t,t.document,Date);t.lazySizes=i,e.exports&&(e.exports=i)}("undefined"!=typeof window?window:{},function(e,t,n){"use strict";if(function(){var t,n={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,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(t in a=e.lazySizesConfig||e.lazysizesConfig||{},n)t in a||(a[t]=n[t])}(),!t||!t.getElementsByClassName)return{init:function(){},cfg:a,noSupport:!0};var i,a,r=t.documentElement,o=e.HTMLPictureElement,s="addEventListener",l="getAttribute",d=e[s].bind(e),u=e.setTimeout,c=e.requestAnimationFrame||u,f=e.requestIdleCallback,v=/^picture$/i,g=["load","error","lazyincluded","_lazyloaded"],m={},p=Array.prototype.forEach,y=function(e,t){return m[t]||(m[t]=RegExp("(\\s|^)"+t+"(\\s|$)")),m[t].test(e[l]("class")||"")&&m[t]},h=function(e,t){y(e,t)||e.setAttribute("class",(e[l]("class")||"").trim()+" "+t)},b=function(e,t){var n;(n=y(e,t))&&e.setAttribute("class",(e[l]("class")||"").replace(n," "))},z=function(e,t,n){var i=n?s:"removeEventListener";n&&z(e,t),g.forEach(function(n){e[i](n,t)})},A=function(e,n,a,r,o){var s=t.createEvent("Event");return a||(a={}),a.instance=i,s.initEvent(n,!r,!o),s.detail=a,e.dispatchEvent(s),s},C=function(t,n){var i;!o&&(i=e.picturefill||a.pf)?(n&&n.src&&!t[l]("srcset")&&t.setAttribute("srcset",n.src),i({reevaluate:!0,elements:[t]})):n&&n.src&&(t.src=n.src)},E=function(e,t){return(getComputedStyle(e,null)||{})[t]},L=function(e,t,n){for(n=n||e.offsetWidth;n<a.minSize&&t&&!e._lazysizesWidth;)n=t.offsetWidth,t=t.parentNode;return n},w=function(){var e,n,i=[],a=[],r=i,o=function(){var t=r;for(r=i.length?a:i,e=!0,n=!1;t.length;)t.shift()();e=!1},s=function(i,a){e&&!a?i.apply(this,arguments):(r.push(i),n||(n=!0,(t.hidden?u:c)(o)))};return s._lsFlush=o,s}(),N=function(e,t){return t?function(){w(e)}:function(){var t=this,n=arguments;w(function(){e.apply(t,n)})}},M=function(e){var t,i=0,r=a.throttleDelay,o=a.ricTimeout,s=function(){t=!1,i=n.now(),e()},l=f&&o>49?function(){f(s,{timeout:o}),o!==a.ricTimeout&&(o=a.ricTimeout)}:N(function(){u(s)},!0);return function(e){var a;(e=!0===e)&&(o=33),t||(t=!0,(a=r-(n.now()-i))<0&&(a=0),e||a<9?l():u(l,a))}},_=function(e){var t,i,a=function(){t=null,e()},r=function(){var e=n.now()-i;e<99?u(r,99-e):(f||a)(a)};return function(){i=n.now(),t||(t=u(r,99))}},x=function(){var o,f,g,m,L,x,S,O,T,W,P,R,k=/^img$/i,B=/^iframe$/i,j="onscroll"in e&&!/(gle|ing)bot/.test(navigator.userAgent),H=0,$=0,D=-1,I=function(e){$--,e&&!($<0)&&e.target||($=0)},q=function(e){return null==R&&(R="hidden"==E(t.body,"visibility")),R||!("hidden"==E(e.parentNode,"visibility")&&"hidden"==E(e,"visibility"))},U=function(e,n){var i,a=e,o=q(e);for(O-=n,P+=n,T-=n,W+=n;o&&(a=a.offsetParent)&&a!=t.body&&a!=r;)(o=(E(a,"opacity")||1)>0)&&"visible"!=E(a,"overflow")&&(i=a.getBoundingClientRect(),o=W>i.left&&T<i.right&&P>i.top-1&&O<i.bottom+1);return o},Q=function(){var e,n,s,d,u,c,v,g,p,y,h,b,z=i.elements;if((m=a.loadMode)&&$<8&&(e=z.length)){for(n=0,D++;n<e;n++)if(z[n]&&!z[n]._lazyRace){if(!j||i.prematureUnveil&&i.prematureUnveil(z[n])){ee(z[n]);continue}if((g=z[n][l]("data-expand"))&&(c=1*g)||(c=H),y||(y=!a.expand||a.expand<1?r.clientHeight>500&&r.clientWidth>500?500:370:a.expand,i._defEx=y,h=y*a.expFactor,b=a.hFac,R=null,H<h&&$<1&&D>2&&m>2&&!t.hidden?(H=h,D=0):H=m>1&&D>1&&$<6?y:0),p!==c&&(x=innerWidth+c*b,S=innerHeight+c,v=-1*c,p=c),(P=(s=z[n].getBoundingClientRect()).bottom)>=v&&(O=s.top)<=S&&(W=s.right)>=v*b&&(T=s.left)<=x&&(P||W||T||O)&&(a.loadHidden||q(z[n]))&&(f&&$<3&&!g&&(m<3||D<4)||U(z[n],c))){if(ee(z[n]),u=!0,$>9)break}else!u&&f&&!d&&$<4&&D<4&&m>2&&(o[0]||a.preloadAfterLoad)&&(o[0]||!g&&(P||W||T||O||"auto"!=z[n][l](a.sizesAttr)))&&(d=o[0]||z[n])}d&&!u&&ee(d)}},V=M(Q),G=function(e){var t=e.target;if(t._lazyCache){delete t._lazyCache;return}I(e),h(t,a.loadedClass),b(t,a.loadingClass),z(t,K),A(t,"lazyloaded")},J=N(G),K=function(e){J({target:e.target})},X=function(e,t){var n=e.getAttribute("data-load-mode")||a.iframeLoadMode;0==n?e.contentWindow.location.replace(t):1==n&&(e.src=t)},Y=function(e){var t,n=e[l](a.srcsetAttr);(t=a.customMedia[e[l]("data-media")||e[l]("media")])&&e.setAttribute("media",t),n&&e.setAttribute("srcset",n
1)},Z=N(function(e,t,n,i,r){var o,s,d,c,f,m;!(f=A(e,"lazybeforeunveil",t)).defaultPrevented&&(i&&(n?h(e,a.autosizesClass):e.setAttribute("sizes",i)),s=e[l](a.srcsetAttr),o=e[l](a.srcAttr),r&&(c=(d=e.parentNode)&&v.test(d.nodeName||"")),m=t.firesLoad||"src"in e&&(s||o||c),f={target:e},h(e,a.loadingClass),m&&(clearTimeout(g),g=u(I,2500),z(e,K,!0)),c&&p.call(d.getElementsByTagName("source"),Y),s?e.setAttribute("srcset",s):o&&!c&&(B.test(e.nodeName)?X(e,o):e.src=o),r&&(s||c)&&C(e,{src:o})),e._lazyRace&&delete e._lazyRace,b(e,a.lazyClass),w(function(){var t=e.complete&&e.naturalWidth>1;(!m||t)&&(t&&h(e,a.fastLoadedClass),G(f),e._lazyCache=!0,u(function(){"_lazyCache"in e&&delete e._lazyCache},9)),"lazy"==e.loading&&$--},!0)}),ee=function(e){if(!e._lazyRace){var t,n=k.test(e.nodeName),i=n&&(e[l](a.sizesAttr)||e[l]("sizes")),r="auto"==i;(r||!f)&&n&&(e[l]("src")||e.srcset)&&!e.complete&&!y(e,a.errorClass)&&y(e,a.lazyClass)||(t=A(e,"lazyunveilread").detail,r&&F.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,$++,Z(e,t,r,i,n))}},et=_(function(){a.loadMode=3,V()}),en=function(){3==a.loadMode&&(a.loadMode=2),et()},ei=function(){if(!f){if(n.now()-L<999){u(ei,999);return}f=!0,a.loadMode=3,V(),d("scroll",en,!0)}};return{_:function(){L=n.now(),i.elements=t.getElementsByClassName(a.lazyClass),o=t.getElementsByClassName(a.lazyClass+" "+a.preloadClass),d("scroll",V,!0),d("resize",V,!0),d("pageshow",function(e){if(e.persisted){var n=t.querySelectorAll("."+a.loadingClass);n.length&&n.forEach&&c(function(){n.forEach(function(e){e.complete&&ee(e)})})}}),e.MutationObserver?new MutationObserver(V).observe(r,{childList:!0,subtree:!0,attributes:!0}):(r[s]("DOMNodeInserted",V,!0),r[s]("DOMAttrModified",V,!0),setInterval(V,999)),d("hashchange",V,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(e){t[s](e,V,!0)}),/d$|^c/.test(t.readyState)?ei():(d("load",ei),t[s]("DOMContentLoaded",V),u(ei,2e4)),i.elements.length?(Q(),w._lsFlush()):V()},checkElems:V,unveil:ee,_aLSL:en}}(),F=function(){var e,n=N(function(e,t,n,i){var a,r,o;if(e._lazysizesWidth=i,i+="px",e.setAttribute("sizes",i),v.test(t.nodeName||""))for(r=0,o=(a=t.getElementsByTagName("source")).length;r<o;r++)a[r].setAttribute("sizes",i);n.detail.dataAttr||C(e,n.detail)}),i=function(e,t,i){var a,r=e.parentNode;r&&(i=L(e,r,i),!(a=A(e,"lazybeforesizes",{width:i,dataAttr:!!t})).defaultPrevented&&(i=a.detail.width)&&i!==e._lazysizesWidth&&n(e,r,a,i))},r=_(function(){var t,n=e.length;if(n)for(t=0;t<n;t++)i(e[t])});return{_:function(){e=t.getElementsByClassName(a.autosizesClass),d("resize",r)},checkElems:r,updateElem:i}}(),S=function(){!S.i&&t.getElementsByClassName&&(S.i=!0,F._(),x._())};return u(function(){a.init&&S()}),i={cfg:a,autoSizer:F,loader:x,init:S,uP:C,aC:h,rC:b,hC:y,fire:A,gW:L,rAF:w}})},793:(e,t,n)=>{var i,a,r;!function(o,s){o&&(s=s.bind(null,o,o.document),e.exports?s(n(859)):(a=[n(859)],i=s,void 0!==(r="function"==typeof i?i.apply(t,a):i)&&(e.exports=r)))}("undefined"!=typeof window?window:0,function(e,t,n){"use strict";var i=function(){var a,r,o,s,l=n.cfg,d={"data-bgset":1,"data-include":1,"data-poster":1,"data-bg":1,"data-script":1},u="(\\s|^)("+l.loadedClass,c=t.documentElement,f=function(e){n.rAF(function(){n.rC(e,l.loadedClass),l.unloadedClass&&n.rC(e,l.unloadedClass),n.aC(e,l.lazyClass),("none"==e.style.display||e.parentNode&&"none"==e.parentNode.style.display)&&setTimeout(function(){n.loader.unveil(e)},0)})},v=function(e){var t,n,i,a;for(t=0,n=e.length;t<n;t++)(a=(i=e[t]).target).getAttribute(i.attributeName)&&("source"==a.localName&&a.parentNode&&(a=a.parentNode.querySelector("img")),a&&u.test(a.className)&&f(a))};l.unloadedClass&&(u+="|"+l.unloadedClass),u+="|"+l.loadingClass+")(\\s|$)",u=new RegExp(u),d[l.srcAttr]=1,d[l.srcsetAttr]=1,e.MutationObserver?(o=new MutationObserver(v),a=function(){s||(s=!0,o.observe(c,{subtree:!0,attributes:!0,attributeFilter:Object.keys(d)}))},r=function(){s&&(s=!1,o.disconnect())}):(c.addEventListener("DOMAttrModified",function(){var e,t=[],n=function(){v(t),t=[],e=!1};return function(i){s&&d[i.attrName]&&i.newValue&&(t.push({target:i.target,attributeName:i.attrName}),e||(setTimeout(n),e=!0))}}(),!0),a=function(){s=!0},r=function(){s=!1}),addEventListener("lazybeforeunveil",r,!0),addEventListener("lazybeforeunveil",a),addEventListener("lazybeforesizes",r,!0),addEventListener("lazybeforesizes",a),a(),removeEventListener("lazybeforeunveil",i)};addEventListener("lazybeforeunveil",i)})}
1,193:(e,t,n)=>{var i,a,r;!function(o,s){s=s.bind(null,o,o.document),e.exports?s(n(859)):(a=[n(859)],i=s,void 0!==(r="function"==typeof i?i.apply(t,a):i)&&(e.exports=r))}(window,function(e,t,n){"use strict";var i="loading"in HTMLImageElement.prototype,a="loading"in HTMLIFrameElement.prototype,r=!1,o=n.prematureUnveil,s=n.cfg,l={focus:1,mouseover:1,click:1,load:1,transitionend:1,animationend:1,scroll:1,resize:1};s.nativeLoading||(s.nativeLoading={}),e.addEventListener&&e.MutationObserver&&!(!i&&!a)&&(n.prematureUnveil=function(d){return r||function(){if(!r){if(r=!0,i&&a&&s.nativeLoading.disableListeners){var o,d,u,c;!0===s.nativeLoading.disableListeners&&(s.nativeLoading.setLoadingAttribute=!0),d=(o=n.loader).checkElems,u=function(){setTimeout(function(){e.removeEventListener("scroll",o._aLSL,!0)},1e3)},(c="object"==typeof s.nativeLoading.disableListeners?s.nativeLoading.disableListeners:l).scroll&&(e.addEventListener("load",u),u(),e.removeEventListener("scroll",d,!0)),c.resize&&e.removeEventListener("resize",d,!0),Object.keys(c).forEach(function(e){c[e]&&t.removeEventListener(e,d,!0)})}s.nativeLoading.setLoadingAttribute&&e.addEventListener("lazybeforeunveil",function(e){var t=e.target;"loading"in t&&!t.getAttribute("loading")&&t.setAttribute("loading","lazy")},!0)}}(),!!("loading"in d&&(s.nativeLoading.setLoadingAttribute||d.getAttribute("loading"))&&("auto"!=d.getAttribute("data-sizes")||d.offsetWidth))||(o?o(d):void 0)})})},55:(e,t,n)=>{var i,a,r;!function(o,s){o&&(s=s.bind(null,o,o.document),e.exports?s(n(859)):(a=[n(859)],i=s,void 0!==(r="function"==typeof i?i.apply(t,a):i)&&(e.exports=r)))}("undefined"!=typeof window?window:0,function(e,t,n){"use strict";if(e.addEventListener){var i=/\s+(\d+)(w|h)\s+(\d+)(w|h)/,a=/parent-fit["']*\s*:\s*["']*(contain|cover|width)/,r=/parent-container["']*\s*:\s*["']*(.+?)(?=(\s|$|,|'|"|;))/,o=/^picture$/i,s=n.cfg,l={getParent:function(t,n){var i=t,a=t.parentNode;return(!n||"prev"==n)&&a&&o.test(a.nodeName||"")&&(a=a.parentNode),"self"!=n&&(i="prev"==n?t.previousElementSibling:n&&(a.closest||e.jQuery)&&(a.closest?a.closest(n):jQuery(a).closest(n)[0])||a),i},getFit:function(e){var t,n,i=getComputedStyle(e,null)||{},o=i.content||i.fontFamily,s={fit:e._lazysizesParentFit||e.getAttribute("data-parent-fit")};return!s.fit&&o&&(t=o.match(a))&&(s.fit=t[1]),s.fit?(!(n=e._lazysizesParentContainer||e.getAttribute("data-parent-container"))&&o&&(t=o.match(r))&&(n=t[1]),s.parent=l.getParent(e,n)):s.fit=i.objectFit,s},getImageRatio:function(t){var n,a,r,l,d,u,c,f=t.parentNode,v=f&&o.test(f.nodeName||"")?f.querySelectorAll("source, img"):[t];for(n=0;n<v.length;n++)if(a=(t=v[n]).getAttribute(s.srcsetAttr)||t.getAttribute("srcset")||t.getAttribute("data-pfsrcset")||t.getAttribute("data-risrcset")||"",r=t._lsMedia||t.getAttribute("media"),r=s.customMedia[t.getAttribute("data-media")||r]||r,a&&(!r||(e.matchMedia&&matchMedia(r)||{}).matches)){(l=parseFloat(t.getAttribute("data-aspectratio")))||((d=a.match(i))?"w"==d[2]?(u=d[1],c=d[3]):(u=d[3],c=d[1]):(u=t.getAttribute("width"),c=t.getAttribute("height")),l=u/c);break}return l},calculateSize:function(e,t){var n,i,a,r=this.getFit(e),o=r.fit,s=r.parent;return"width"!=o&&("contain"!=o&&"cover"!=o||!(i=this.getImageRatio(e)))?t:(s?t=s.clientWidth:s=e,a=t,"width"==o?a=t:(n=t/s.clientHeight)&&("cover"==o&&n<i||"contain"==o&&n>i)&&(a=t*(i/n)),a)}};n.parentFit=l,t.addEventListener("lazybeforesizes",function(e){if(!e.defaultPrevented&&e.detail.instance==n){var t=e.target;e.detail.width=l.calculateSize(t,e.detail.width)}})}})}},t={};function n(i){var a=t[i];if(void 0!==a)return a.exports;var r=t[i]={exports:{}};return e[i](r,r.exports,n),r.exports}(()=>{n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t}})(),(()=>{n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}})(),(()=>{n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{"use strict";n(859),n(193),n(793),n(55),document.addEventListener("lazybeforesizes",e=>{let t=e.target.getAttribute("data-aspectratio");t&&(e.detail.width===parseFloat(t)&&(e.detail.width=e.detail.instance.parentFit.getFit(e.target).parent.clientWidth),e.detail.width=Math.round(e.detail.width))})})()})();

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.