{"version":3,"file":"easyzoom.min.js","sources":["easyzoom.js"],"names":["t","e","define","amd","module","exports","EasyZoom","require","jQuery","this","o","c","l","d","p","u","f","i","loadingNotice","errorNotice","errorDuration","linkAttribute","preventClicks","beforeShow","noop","beforeHide","onShow","onHide","onMove","s","$target","opts","extend","data","isOpen","_init","prototype","$link","find","$image","$flyout","$notice","on","mousemove.easyzoom touchmove.easyzoom","proxy","_onMove","mouseleave.easyzoom touchend.easyzoom","_onLeave","mouseenter.easyzoom touchstart.easyzoom","_onEnter","preventDefault","show","call","isReady","_loadImage","attr","isMouseOver","append","outerWidth","outerHeight","h","width","n","height","a","$zoom","r","Math","ceil","_move","originalEvent","touches","length","hide","_onLoad","currentTarget","detach","html","removeClass","addClass","_onError","text","detachNotice","setTimeout","Image","style","position","src","type","indexOf","pageX","pageY","offset","left","top","css","swap","clearTimeout","parent","srcset","isArray","join","teardown","off","fn","easyZoom","each"],"mappings":"AAAA,CAAE,SAAUA,EAAGC,GACb,aACA,YAAc,OAAOC,QAAUA,OAAOC,IAAMD,OAAO,CAAC,UAAW,SAAUF,GACvEC,EAAED,CAAC,CACL,CAAC,EAAI,UAAY,OAAOI,QAAUA,OAAOC,QAAUD,OAAOC,QAAUL,EAAEM,SAAWL,EAAEM,QAAQ,QAAQ,CAAC,EAAIP,EAAEM,SAAWL,EAAED,EAAEQ,MAAM,CACjI,EAAEC,KAAM,SAAUC,GAChB,aACA,IAAIC,EAAGC,EAAGC,EAAGC,EAAGC,EAAGC,EAAGC,EAAI,CACxBC,cAAe,GACfC,YAAa,QACbC,cAAe,KACfC,cAAe,OACfC,cAAe,CAAA,EACfC,WAAYb,EAAEc,KACdC,WAAYf,EAAEc,KACdE,OAAQhB,EAAEc,KACVG,OAAQjB,EAAEc,KACVI,OAAQlB,EAAEc,IACZ,EAEA,SAASK,EAAE7B,EAAGC,GACZQ,KAAKqB,QAAUpB,EAAEV,CAAC,EAAGS,KAAKsB,KAAOrB,EAAEsB,OAAO,GAAIf,EAAG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