!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).loadImg=n()}(this,(function(){"use strict"; /** * Load images asynchronously and cache them. * * @license MIT * @git https://github.com/duzun/jquery.load_img * @author Dumitru Uzun (DUzun.Me) * @version 1.6.0 */var e="1.6.0";function n(n,t){var o;t||(t=r());var i=t.document,c={},d={};function a(e,r,t){t||"function"!=typeof r||(t=r,r=o);var u=r=r?n.extend({},a.settings,r):a.settings,f=u.errorExpires,s=u.decode,l=n(""),p="function"==typeof t,h=p?o:new n.Deferred,g=function n(r){var o="error"==r.type;r.timeStamp||(r.timeStamp=Date.now()),r.src=e,o?d[e]=r:delete d[e],c[e]=!o,l.off(o?"load":"error",n).remove(),l.show(),p?s&&!o&&l[0].decode?l[0].decode().then((function(){return t.call(l,e,r)}),(function(e){r.reason=e,t.call(l,!1,r)})):t.call(l,!o&&e,r):h&&(o?h.reject(r):s&&l[0].decode?l[0].decode().then((function(){return h.resolve(r,e)}),h.reject):h.resolve(r,e))},m=this,v=m&&m!=n&&m.$ctx;h&&h.promise(l),l.hide().one("load",g).one("error",g);var y=d[e];if(y&&f&&f