(()=>{"use strict";!function(e,n){var t=function(){n(e.lazySizes),e.removeEventListener("lazyunveilread",t,!0)};n=n.bind(null,e,e.document),e.lazySizes?t():e.addEventListener("lazyunveilread",t,!0)}(window,function(e,n,t){if(e.addEventListener){var i=t.loader.unveil,o=new WeakMap,a={observeClassChanges:function(t){var a,r,s,c,d=this;if(!o.has(t)){var v=(a=50,r=function(){n.contains(t)?t.classList.contains("vp-lazyloaded")||i(t):d.disconnectObserver(t)},c=(s||{}).atBegin,function(e,n,t){var i,o=t||{},a=o.noTrailing,r=void 0!==a&&a,s=o.noLeading,c=void 0!==s&&s,d=o.debounceMode,v=void 0===d?void 0:d,u=!1,l=0;function f(){i&&clearTimeout(i)}function b(){for(var t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];var s=this,d=Date.now()-l;function b(){l=Date.now(),n.apply(s,o)}function g(){i=void 0}u||(c||!v||i||b(),f(),void 0===v&&d>e?c?(l=Date.now(),r||(i=setTimeout(v?g:b,e))):b():!0!==r&&(i=setTimeout(v?g:b,void 0===v?e-d:e)))}return b.cancel=function(e){var n=(e||{}).upcomingOnly,t=void 0!==n&&n;f(),u=!t},b}(a,r,{debounceMode:!1!==(void 0!==c&&c)})),u=new e.MutationObserver(function(e){e.forEach(function(e){"attributes"===e.type&&"class"===e.attributeName&&v()})});u.observe(t,{attributes:!0,attributeFilter:["class"]}),o.set(t,u);var l=new e.IntersectionObserver(function(e){e.forEach(function(e){e.isIntersecting||n.contains(t)||(d.disconnectObserver(t),l.disconnect())})},{threshold:0});l.observe(t)}},disconnectObserver:function(e){var n=o.get(e);n&&(n.disconnect(),o.delete(e))}};t.wpLightboxResolve=a,n.addEventListener("lazyloaded",function(e){var n;!e.defaultPrevented&&e.detail&&e.target&&e.detail.instance===t&&null!==(n=e.target.parentNode)&&void 0!==n&&n.classList.contains("wp-lightbox-container")&&a.observeClassChanges(e.target)})}})})();