HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //proc/self/cwd/wp-content/plugins/wp-smushit/app/assets/js/smush-lazy-load.min.js
!function(){var e={4885:function(e,t,n){"use strict";n.r(t);var i=n(7857);document.addEventListener("lazybeforeunveil",function(e){var t;(0,i.G)(null==e||null===(t=e.detail)||void 0===t?void 0:t.instance)&&function(e){var t=e.getAttribute("data-bg-image")||e.getAttribute("data-bg"),n=e.hasAttribute("data-bg-image")?"background-image":"background";if(t){var i,o=e.getAttribute("style")||"",a="".concat(n,": ").concat(t,";"),r=new RegExp("".concat(n,"\\s*:\\s*[^;]+;?"));i=r.test(o)?o.replace(r,a):o.length>0?o.replace(/;$/g,"")+";"+a:a,e.setAttribute("style",i.trim())}}(e.target)})},5651:function(e,t,n){"use strict";n.r(t);var i,o,a,r,s,l=n(7857);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,c(i.key),i)}}function c(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=u(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}o="smush-lazyloaded-video",a="ontouchstart"in window?"touchstart":"pointerdown",r=(null===(i=window)||void 0===i?void 0:i.smush_video_render_delay)||0,s=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.shouldDelayVideoRenderingForMobile=this.supportsIntersectionObserver(),this.queuedVideoElements=[],this.isMobileOrSafari=null,this.init()},t=[{key:"init",value:function(){var e=this;document.addEventListener("lazybeforeunveil",function(t){return e.handleVideoLazyLoad(t)}),document.addEventListener(a,function(){return e.enableVideoRenderingForMobile()},{once:!0,passive:!0}),document.addEventListener("DOMContentLoaded",function(){!r||r<0||setTimeout(function(){return e.enableVideoRenderingForMobile()},r)})}},{key:"handleVideoLazyLoad",value:function(e){var t,n=e.target;(0,l.G)(null==e||null===(t=e.detail)||void 0===t?void 0:t.instance)&&n.classList.contains("smush-lazyload-video")&&(this.handleButtonPlay(n),this.maybePrepareVideoForPlay(n))}},{key:"handleButtonPlay",value:function(e){var t=this,n=e.querySelector(".".concat("smush-play-btn"));if(n){var i=function(){return t.loadIframeVideoWithAutoPlay(e)};n.addEventListener("click",i),n.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),i())})}else{var o;this.loadIframeVideo(e),null===(o=window.console)||void 0===o||o.warning("Missing play button [.smush-play-btn] for video element:",e)}}},{key:"maybePrepareVideoForPlay",value:function(e){var t=e.classList.contains("smush-lazyload-autoplay");this.shouldPrepareIframeForPlay()?this.maybePrepareVideoForMobileAndSafari(e,t):t&&this.loadIframeVideoWithAutoPlay(e)}},{key:"enableVideoRenderingForMobile",value:function(){this.shouldDelayVideoRenderingForMobile&&(this.shouldDelayVideoRenderingForMobile=!1,this.maybeObserveQueuedVideoElements())}},{key:"supportsIntersectionObserver",value:function(){return"IntersectionObserver"in window}},{key:"maybeObserveQueuedVideoElements",value:function(){this.queuedVideoElements.length&&this.observeQueuedVideoElements()}},{key:"observeQueuedVideoElements",value:function(){var e=this,t=new IntersectionObserver(function(n){n.forEach(function(n){if(n.isIntersecting){var i=n.target;e.loadIframeVideo(i),t.unobserve(i)}})},{rootMargin:"0px 0px 200px 0px",threshold:.1});this.queuedVideoElements.forEach(function(e){t.observe(e)})}},{key:"maybePrepareVideoForMobileAndSafari",value:function(e,t){this.shouldDelayVideoRenderingForMobile?this.queuedVideoElements.push(e):this.loadIframeVideo(e,t)}},{key:"shouldPrepareIframeForPlay",value:function(){return null===this.isMobileOrSafari&&(this.isMobileOrSafari=this.checkIfMobileOrSafari()),this.isMobileOrSafari}},{key:"checkIfMobileOrSafari",value:function(){var e=navigator.userAgent;return e.includes("Mobi")||e.includes("Safari")&&!e.includes("Chrome")}},{key:"loadIframeVideo",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e.classList.contains(o)){e.classList.add(o,"loading");var i=e.querySelector("iframe");if(i){var a=null===(t=i.dataset)||void 0===t?void 0:t.src;if(a){if(n){var r=new URL(a);r.searchParams.set("autoplay","1"),r.searchParams.set("playsinline","1"),a=r.toString()}var s=i.getAttribute("allow")||"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture";s.includes("autoplay")||(s+="; autoplay"),i.setAttribute("allow",s),i.setAttribute("allowFullscreen","true"),i.setAttribute("src",a),e.classList.remove("loading")}else{var l;null===(l=window.console)||void 0===l||l.error("Missing data-src attribute for iframe:",i)}}else{var u;null===(u=window.console)||void 0===u||u.error("Missing iframe element in video wrapper:",e)}}}},{key:"loadIframeVideoWithAutoPlay",value:function(e){this.loadIframeVideo(e,!0)}}],t&&d(e.prototype,t),n&&d(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),new s},6879:function(e){!function(t){var n=function(e,t,n){"use strict";var i,o;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 o=e.lazySizesConfig||e.lazysizesConfig||{},n)t in o||(o[t]=n[t])}(),!t||!t.getElementsByClassName)return{init:function(){},cfg:o,noSupport:!0};var a=t.documentElement,r=e.HTMLPictureElement,s="addEventListener",l="getAttribute",u=e[s].bind(e),d=e.setTimeout,c=e.requestAnimationFrame||d,f=e.requestIdleCallback,v=/^picture$/i,y=["load","error","lazyincluded","_lazyloaded"],m={},h=Array.prototype.forEach,b=function(e,t){return m[t]||(m[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),m[t].test(e[l]("class")||"")&&m[t]},p=function(e,t){b(e,t)||e.setAttribute("class",(e[l]("class")||"").trim()+" "+t)},g=function(e,t){var n;(n=b(e,t))&&e.setAttribute("class",(e[l]("class")||"").replace(n," "))},z=function(e,t,n){var i=n?s:"removeEventListener";n&&z(e,t),y.forEach(function(n){e[i](n,t)})},w=function(e,n,o,a,r){var s=t.createEvent("Event");return o||(o={}),o.instance=i,s.initEvent(n,!a,!r),s.detail=o,e.dispatchEvent(s),s},C=function(t,n){var i;!r&&(i=e.picturefill||o.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]},A=function(e,t,n){for(n=n||e.offsetWidth;n<o.minSize&&t&&!e._lazysizesWidth;)n=t.offsetWidth,t=t.parentNode;return n},M=(pe=[],ge=[],ze=pe,we=function(){var e=ze;for(ze=pe.length?ge:pe,he=!0,be=!1;e.length;)e.shift()();he=!1},Ce=function(e,n){he&&!n?e.apply(this,arguments):(ze.push(e),be||(be=!0,(t.hidden?d:c)(we)))},Ce._lsFlush=we,Ce),S=function(e,t){return t?function(){M(e)}:function(){var t=this,n=arguments;M(function(){e.apply(t,n)})}},L=function(e){var t,i=0,a=o.throttleDelay,r=o.ricTimeout,s=function(){t=!1,i=n.now(),e()},l=f&&r>49?function(){f(s,{timeout:r}),r!==o.ricTimeout&&(r=o.ricTimeout)}:S(function(){d(s)},!0);return function(e){var o;(e=!0===e)&&(r=33),t||(t=!0,(o=a-(n.now()-i))<0&&(o=0),e||o<9?l():d(l,o))}},P=function(e){var t,i,o=99,a=function(){t=null,e()},r=function(){var e=n.now()-i;e<o?d(r,o-e):(f||a)(a)};return function(){i=n.now(),t||(t=d(r,o))}},V=(U=/^img$/i,J=/^iframe$/i,K="onscroll"in e&&!/(gle|ing)bot/.test(navigator.userAgent),X=0,Y=0,Z=0,ee=-1,te=function(e){Z--,(!e||Z<0||!e.target)&&(Z=0)},ne=function(e){return null==G&&(G="hidden"==E(t.body,"visibility")),G||!("hidden"==E(e.parentNode,"visibility")&&"hidden"==E(e,"visibility"))},ie=function(e,n){var i,o=e,r=ne(e);for(j-=n,Q+=n,$-=n,H+=n;r&&(o=o.offsetParent)&&o!=t.body&&o!=a;)(r=(E(o,"opacity")||1)>0)&&"visible"!=E(o,"overflow")&&(i=o.getBoundingClientRect(),r=H>i.left&&$<i.right&&Q>i.top-1&&j<i.bottom+1);return r},oe=function(){var e,n,r,s,u,d,c,f,v,y,m,h,b=i.elements;if((W=o.loadMode)&&Z<8&&(e=b.length)){for(n=0,ee++;n<e;n++)if(b[n]&&!b[n]._lazyRace)if(!K||i.prematureUnveil&&i.prematureUnveil(b[n]))fe(b[n]);else if((f=b[n][l]("data-expand"))&&(d=1*f)||(d=Y),y||(y=!o.expand||o.expand<1?a.clientHeight>500&&a.clientWidth>500?500:370:o.expand,i._defEx=y,m=y*o.expFactor,h=o.hFac,G=null,Y<m&&Z<1&&ee>2&&W>2&&!t.hidden?(Y=m,ee=0):Y=W>1&&ee>1&&Z<6?y:X),v!==d&&(B=innerWidth+d*h,q=innerHeight+d,c=-1*d,v=d),r=b[n].getBoundingClientRect(),(Q=r.bottom)>=c&&(j=r.top)<=q&&(H=r.right)>=c*h&&($=r.left)<=B&&(Q||H||$||j)&&(o.loadHidden||ne(b[n]))&&(R&&Z<3&&!f&&(W<3||ee<4)||ie(b[n],d))){if(fe(b[n]),u=!0,Z>9)break}else!u&&R&&!s&&Z<4&&ee<4&&W>2&&(N[0]||o.preloadAfterLoad)&&(N[0]||!f&&(Q||H||$||j||"auto"!=b[n][l](o.sizesAttr)))&&(s=N[0]||b[n]);s&&!u&&fe(s)}},ae=L(oe),re=function(e){var t=e.target;t._lazyCache?delete t._lazyCache:(te(e),p(t,o.loadedClass),g(t,o.loadingClass),z(t,le),w(t,"lazyloaded"))},se=S(re),le=function(e){se({target:e.target})},ue=function(e,t){var n=e.getAttribute("data-load-mode")||o.iframeLoadMode;0==n?e.contentWindow.location.replace(t):1==n&&(e.src=t)},de=function(e){var t,n=e[l](o.srcsetAttr);(t=o.customMedia[e[l]("data-media")||e[l]("media")])&&e.setAttribute("media",t),n&&e.setAttribute("srcset",n)},ce=S(function(e,t,n,i,a){var r,s,u,c,f,y;(f=w(e,"lazybeforeunveil",t)).defaultPrevented||(i&&(n?p(e,o.autosizesClass):e.setAttribute("sizes",i)),s=e[l](o.srcsetAttr),r=e[l](o.srcAttr),a&&(c=(u=e.parentNode)&&v.test(u.nodeName||"")),y=t.firesLoad||"src"in e&&(s||r||c),f={target:e},p(e,o.loadingClass),y&&(clearTimeout(T),T=d(te,2500),z(e,le,!0)),c&&h.call(u.getElementsByTagName("source"),de),s?e.setAttribute("srcset",s):r&&!c&&(J.test(e.nodeName)?ue(e,r):e.src=r),a&&(s||c)&&C(e,{src:r})),e._lazyRace&&delete e._lazyRace,g(e,o.lazyClass),M(function(){var t=e.complete&&e.naturalWidth>1;y&&!t||(t&&p(e,o.fastLoadedClass),re(f),e._lazyCache=!0,d(function(){"_lazyCache"in e&&delete e._lazyCache},9)),"lazy"==e.loading&&Z--},!0)}),fe=function(e){if(!e._lazyRace){var t,n=U.test(e.nodeName),i=n&&(e[l](o.sizesAttr)||e[l]("sizes")),a="auto"==i;(!a&&R||!n||!e[l]("src")&&!e.srcset||e.complete||b(e,o.errorClass)||!b(e,o.lazyClass))&&(t=w(e,"lazyunveilread").detail,a&&_.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,Z++,ce(e,t,a,i,n))}},ve=P(function(){o.loadMode=3,ae()}),ye=function(){3==o.loadMode&&(o.loadMode=2),ve()},me=function(){R||(n.now()-D<999?d(me,999):(R=!0,o.loadMode=3,ae(),u("scroll",ye,!0)))},{_:function(){D=n.now(),i.elements=t.getElementsByClassName(o.lazyClass),N=t.getElementsByClassName(o.lazyClass+" "+o.preloadClass),u("scroll",ae,!0),u("resize",ae,!0),u("pageshow",function(e){if(e.persisted){var n=t.querySelectorAll("."+o.loadingClass);n.length&&n.forEach&&c(function(){n.forEach(function(e){e.complete&&fe(e)})})}}),e.MutationObserver?new MutationObserver(ae).observe(a,{childList:!0,subtree:!0,attributes:!0}):(a[s]("DOMNodeInserted",ae,!0),a[s]("DOMAttrModified",ae,!0),setInterval(ae,999)),u("hashchange",ae,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(e){t[s](e,ae,!0)}),/d$|^c/.test(t.readyState)?me():(u("load",me),t[s]("DOMContentLoaded",ae),d(me,2e4)),i.elements.length?(oe(),M._lsFlush()):ae()},checkElems:ae,unveil:fe,_aLSL:ye}),_=(F=S(function(e,t,n,i){var o,a,r;if(e._lazysizesWidth=i,i+="px",e.setAttribute("sizes",i),v.test(t.nodeName||""))for(a=0,r=(o=t.getElementsByTagName("source")).length;a<r;a++)o[a].setAttribute("sizes",i);n.detail.dataAttr||C(e,n.detail)}),x=function(e,t,n){var i,o=e.parentNode;o&&(n=A(e,o,n),(i=w(e,"lazybeforesizes",{width:n,dataAttr:!!t})).defaultPrevented||(n=i.detail.width)&&n!==e._lazysizesWidth&&F(e,o,i,n))},I=P(function(){var e,t=O.length;if(t)for(e=0;e<t;e++)x(O[e])}),{_:function(){O=t.getElementsByClassName(o.autosizesClass),u("resize",I)},checkElems:I,updateElem:x}),k=function(){!k.i&&t.getElementsByClassName&&(k.i=!0,_._(),V._())};var O,F,x,I;var N,R,T,W,D,B,q,j,$,H,Q,G,U,J,K,X,Y,Z,ee,te,ne,ie,oe,ae,re,se,le,ue,de,ce,fe,ve,ye,me;var he,be,pe,ge,ze,we,Ce;return d(function(){o.init&&k()}),i={cfg:o,autoSizer:_,loader:V,init:k,uP:C,aC:p,rC:g,hC:b,fire:w,gW:A,rAF:M}}(t,t.document,Date);t.lazySizes=n,e.exports&&(e.exports=n)}("undefined"!=typeof window?window:{})},7857:function(e,t,n){"use strict";n.d(t,{G:function(){return a}});var i=n(6879),o=n.n(i),a=function(e){return e===o()||JSON.stringify((null==e?void 0:e.cfg)||{})===JSON.stringify((null===o()||void 0===o()?void 0:o().cfg)||{})};t.A=o()}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,n),a.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(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=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){"use strict";var e=window.lazySizesConfig||null;e&&delete window.lazySizesConfig;var t=n(7857);n(4885),n(5651),t.A.init(),e?window.lazySizesConfig=e:"lazySizesConfig"in window&&delete window.lazySizesConfig}()}();
//# sourceMappingURL=smush-lazy-load.min.js.map