54.bc8a8990.js 21 KB

1234567
  1. "use strict";(self["webpackChunkhd"]=self["webpackChunkhd"]||[]).push([[54],{40054:(t,e,n)=>{var i;n.d(e,{A:()=>nt});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return[n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.src,expression:"src"}],staticClass:"app-img",attrs:{alt:t.alt,title:t.title,mode:t.mode}})]},o=[],a=(n(2892),n(85476)),s=n(43859)["A"];
  2. /*!
  3. * Vue-Lazyload.js v1.3.5
  4. * (c) 2023 Awe <hilongjw@gmail.com>
  5. * Released under the MIT License.
  6. */
  7. function u(t,e){return e={exports:{}},t(e,e.exports),e.exports}var l=u(function(t){var e=Object.prototype.toString,n=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols;function r(t){return"function"===typeof t||"[object Object]"===e.call(t)||Array.isArray(t)}t.exports=function(t){for(var e=arguments.length,o=Array(e>1?e-1:0),a=1;a<e;a++)o[a-1]=arguments[a];if(!r(t))throw new TypeError("expected the first argument to be an object");if(0===o.length||"function"!==typeof Symbol||"function"!==typeof i)return t;var s=!0,u=!1,l=void 0;try{for(var d,c=o[Symbol.iterator]();!(s=(d=c.next()).done);s=!0){var h=d.value,f=i(h),v=!0,p=!1,g=void 0;try{for(var y,b=f[Symbol.iterator]();!(v=(y=b.next()).done);v=!0){var m=y.value;n.call(h,m)&&(t[m]=h[m])}}catch(w){p=!0,g=w}finally{try{!v&&b.return&&b.return()}finally{if(p)throw g}}}}catch(w){u=!0,l=w}finally{try{!s&&c.return&&c.return()}finally{if(u)throw l}}return t}}),d=Object.freeze({__proto__:null,default:l,__moduleExports:l}),c=d&&l||d,h="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},v=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),p=u(function(t){var e=Object.prototype.toString,n=function(t){return"__proto__"!==t&&"constructor"!==t&&"prototype"!==t},i=t.exports=function(t){for(var e=arguments.length,a=Array(e>1?e-1:0),s=1;s<e;s++)a[s-1]=arguments[s];var u=0;for(o(t)&&(t=a[u++]),t||(t={});u<a.length;u++)if(r(a[u])){var l=!0,d=!1,h=void 0;try{for(var f,v=Object.keys(a[u])[Symbol.iterator]();!(l=(f=v.next()).done);l=!0){var p=f.value;n(p)&&(r(t[p])&&r(a[u][p])?i(t[p],a[u][p]):t[p]=a[u][p])}}catch(g){d=!0,h=g}finally{try{!l&&v.return&&v.return()}finally{if(d)throw h}}c(t,a[u])}return t};function r(t){return"function"===typeof t||"[object Object]"===e.call(t)}function o(t){return"object"===("undefined"===typeof t?"undefined":h(t))?null===t:"function"!==typeof t}}),g="undefined"!==typeof window&&null!==window,y=b();function b(){return!!(g&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)&&("isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}}),!0)}var m={event:"event",observer:"observer"},w=function(){if(g)return"function"===typeof window.CustomEvent?window.CustomEvent:(t.prototype=window.Event.prototype,t);function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}}();function L(t,e){if(t.length){var n=t.indexOf(e);return n>-1?t.splice(n,1):void 0}}function _(t,e){for(var n=!1,i=0,r=t.length;i<r;i++)if(e(t[i])){n=!0;break}return n}function k(t,e){if("IMG"===t.tagName&&t.getAttribute("data-srcset")){var n=t.getAttribute("data-srcset"),i=[],r=t.parentNode,o=r.offsetWidth*e,a=void 0,s=void 0,u=void 0;n=n.trim().split(","),n.map(function(t){t=t.trim(),a=t.lastIndexOf(" "),-1===a?(s=t,u=999998):(s=t.substr(0,a),u=parseInt(t.substr(a+1,t.length-a-2),10)),i.push([u,s])}),i.sort(function(t,e){if(t[0]<e[0])return 1;if(t[0]>e[0])return-1;if(t[0]===e[0]){if(-1!==e[1].indexOf(".webp",e[1].length-5))return 1;if(-1!==t[1].indexOf(".webp",t[1].length-5))return-1}return 0});for(var l="",d=void 0,c=0;c<i.length;c++){d=i[c],l=d[1];var h=i[c+1];if(h&&h[0]<o){l=d[1];break}if(!h){l=d[1];break}}return l}}function E(t,e){for(var n=void 0,i=0,r=t.length;i<r;i++)if(e(t[i])){n=t[i];break}return n}var z=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return g&&window.devicePixelRatio||t};function A(){if(!g)return!1;var t=!0;try{var e=document.createElement("canvas");e.getContext&&e.getContext("2d")&&(t=0===e.toDataURL("image/webp").indexOf("data:image/webp"))}catch(n){t=!1}return t}function x(t,e){var n=null,i=null,r=0,o=!1;return function(){if(o=!0,!n){var a=Date.now()-r,s=this,u=arguments,l=function(){r=Date.now(),n=!1,t.apply(s,u)};a>=e?l():n=setTimeout(l,e),o&&(clearTimeout(i),i=setTimeout(l,2*e))}}}function T(){if(g){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(n){}return t}}var O=T(),$={on:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];O?t.addEventListener(e,n,{capture:i,passive:!0}):t.addEventListener(e,n,i)},off:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t.removeEventListener(e,n,i)}},S=function(t,e,n){var i=new Image;if(!t||!t.src){var r=new Error("image src is required");return n(r)}i.src=t.src,t.cors&&(i.crossOrigin=t.cors),i.onload=function(){e({naturalHeight:i.naturalHeight,naturalWidth:i.naturalWidth,src:i.src})},i.onerror=function(t){n(t)}},C=function(t,e){return"undefined"!==typeof getComputedStyle?getComputedStyle(t,null).getPropertyValue(e):t.style[e]},I=function(t){return C(t,"overflow")+C(t,"overflow-y")+C(t,"overflow-x")},H=function(t){if(g){if(!(t instanceof HTMLElement))return window;var e=t;while(e){if(e===document.body||e===document.documentElement)break;if(!e.parentNode)break;if(/(scroll|auto)/.test(I(e)))return e;e=e.parentNode}return window}};function Q(t){return null!==t&&"object"===("undefined"===typeof t?"undefined":h(t))}function j(t){if(!(t instanceof Object))return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}function R(t){for(var e=t.length,n=[],i=0;i<e;i++)n.push(t[i]);return n}function V(){}var W=function(){function t(e){var n=e.max;f(this,t),this.options={max:n||100},this._caches=[]}return v(t,[{key:"has",value:function(t){return this._caches.indexOf(t)>-1}},{key:"add",value:function(t){this.has(t)||(this._caches.push(t),this._caches.length>this.options.max&&this.free())}},{key:"free",value:function(){this._caches.shift()}}]),t}(),B=function(){function t(e){var n=e.el,i=e.src,r=e.error,o=e.loading,a=e.bindType,s=e.$parent,u=e.options,l=e.cors,d=e.elRenderer,c=e.imageCache;f(this,t),this.el=n,this.src=i,this.error=r,this.loading=o,this.bindType=a,this.attempt=0,this.cors=l,this.naturalHeight=0,this.naturalWidth=0,this.options=u,this.rect=null,this.$parent=s,this.elRenderer=d,this._imageCache=c,this.performanceData={init:Date.now(),loadStart:0,loadEnd:0},this.filter(),this.initState(),this.render("loading",!1)}return v(t,[{key:"initState",value:function(){"dataset"in this.el?this.el.dataset.src=this.src:this.el.setAttribute("data-src",this.src),this.state={loading:!1,error:!1,loaded:!1,rendered:!1}}},{key:"record",value:function(t){this.performanceData[t]=Date.now()}},{key:"update",value:function(t){var e=t.src,n=t.loading,i=t.error,r=this.src;this.src=e,this.loading=n,this.error=i,this.filter(),r!==this.src&&(this.attempt=0,this.initState())}},{key:"getRect",value:function(){this.rect=this.el.getBoundingClientRect()}},{key:"checkInView",value:function(){return this.getRect(),this.rect.top<window.innerHeight*this.options.preLoad&&this.rect.bottom>this.options.preLoadTop&&this.rect.left<window.innerWidth*this.options.preLoad&&this.rect.right>0}},{key:"filter",value:function(){var t=this;j(this.options.filter).map(function(e){t.options.filter[e](t,t.options)})}},{key:"renderLoading",value:function(t){var e=this;this.state.loading=!0,S({src:this.loading,cors:this.cors},function(n){e.render("loading",!1),e.state.loading=!1,t()},function(){t(),e.state.loading=!1,e.options.silent||s.warn("VueLazyload log: load failed with loading image("+e.loading+")")})}},{key:"load",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:V;return this.attempt>this.options.attempt-1&&this.state.error?(this.options.silent||s.log("VueLazyload log: "+this.src+" tried too more than "+this.options.attempt+" times"),void e()):this.state.rendered&&this.state.loaded?void 0:this._imageCache.has(this.src)?(this.state.loaded=!0,this.render("loaded",!0),this.state.rendered=!0,e()):void this.renderLoading(function(){t.attempt++,t.options.adapter["beforeLoad"]&&t.options.adapter["beforeLoad"](t,t.options),t.record("loadStart"),S({src:t.src,cors:t.cors},function(n){t.naturalHeight=n.naturalHeight,t.naturalWidth=n.naturalWidth,t.state.loaded=!0,t.state.error=!1,t.record("loadEnd"),t.render("loaded",!1),t.state.rendered=!0,t._imageCache.add(t.src),e()},function(e){!t.options.silent&&s.error(e),t.state.error=!0,t.state.loaded=!1,t.render("error",!1)})})}},{key:"render",value:function(t,e){this.elRenderer(this,t,e)}},{key:"performance",value:function(){var t="loading",e=0;return this.state.loaded&&(t="loaded",e=(this.performanceData.loadEnd-this.performanceData.loadStart)/1e3),this.state.error&&(t="error"),{src:this.src,state:t,time:e}}},{key:"$destroy",value:function(){this.el=null,this.src=null,this.error=null,this.loading=null,this.bindType=null,this.attempt=0}}]),t}(),D="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",N=["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"],q={rootMargin:"0px",threshold:0};function P(t){return function(){function e(t){var n=t.preLoad,i=t.error,r=t.throttleWait,o=t.preLoadTop,a=t.dispatchEvent,s=t.loading,u=t.attempt,l=t.silent,d=void 0===l||l,c=t.scale,h=t.listenEvents;t.hasbind;var v=t.filter,p=t.adapter,g=t.observer,y=t.observerOptions;f(this,e),this.version='"1.3.5"',this.mode=m.event,this.ListenerQueue=[],this.TargetIndex=0,this.TargetQueue=[],this.options={silent:d,dispatchEvent:!!a,throttleWait:r||200,preLoad:n||1.3,preLoadTop:o||0,error:i||D,loading:s||D,attempt:u||3,scale:c||z(c),ListenEvents:h||N,hasbind:!1,supportWebp:A(),filter:v||{},adapter:p||{},observer:!!g,observerOptions:y||q},this._initEvent(),this._imageCache=new W({max:200}),this.lazyLoadHandler=x(this._lazyLoadHandler.bind(this),this.options.throttleWait),this.setMode(this.options.observer?m.observer:m.event)}return v(e,[{key:"config",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};p(this.options,t)}},{key:"performance",value:function(){var t=[];return this.ListenerQueue.map(function(e){t.push(e.performance())}),t}},{key:"addLazyBox",value:function(t){this.ListenerQueue.push(t),g&&(this._addListenerTarget(window),this._observer&&this._observer.observe(t.el),t.$el&&t.$el.parentNode&&this._addListenerTarget(t.$el.parentNode))}},{key:"add",value:function(e,n,i){var r=this;if(_(this.ListenerQueue,function(t){return t.el===e}))return this.update(e,n),t.nextTick(this.lazyLoadHandler);var o=this._valueFormatter(n.value),a=o.src,s=o.loading,u=o.error,l=o.cors;t.nextTick(function(){a=k(e,r.options.scale)||a,r._observer&&r._observer.observe(e);var o=Object.keys(n.modifiers)[0],d=void 0;o&&(d=i.context.$refs[o],d=d?d.$el||d:document.getElementById(o)),d||(d=H(e));var c=new B({bindType:n.arg,$parent:d,el:e,loading:s,error:u,src:a,cors:l,elRenderer:r._elRenderer.bind(r),options:r.options,imageCache:r._imageCache});r.ListenerQueue.push(c),g&&(r._addListenerTarget(window),r._addListenerTarget(d)),r.lazyLoadHandler(),t.nextTick(function(){return r.lazyLoadHandler()})})}},{key:"update",value:function(e,n,i){var r=this,o=this._valueFormatter(n.value),a=o.src,s=o.loading,u=o.error;a=k(e,this.options.scale)||a;var l=E(this.ListenerQueue,function(t){return t.el===e});l?l.update({src:a,loading:s,error:u}):this.add(e,n,i),this._observer&&(this._observer.unobserve(e),this._observer.observe(e)),this.lazyLoadHandler(),t.nextTick(function(){return r.lazyLoadHandler()})}},{key:"remove",value:function(t){if(t){this._observer&&this._observer.unobserve(t);var e=E(this.ListenerQueue,function(e){return e.el===t});e&&(this._removeListenerTarget(e.$parent),this._removeListenerTarget(window),L(this.ListenerQueue,e),e.$destroy())}}},{key:"removeComponent",value:function(t){t&&(L(this.ListenerQueue,t),this._observer&&this._observer.unobserve(t.el),t.$parent&&t.$el.parentNode&&this._removeListenerTarget(t.$el.parentNode),this._removeListenerTarget(window))}},{key:"setMode",value:function(t){var e=this;y||t!==m.observer||(t=m.event),this.mode=t,t===m.event?(this._observer&&(this.ListenerQueue.forEach(function(t){e._observer.unobserve(t.el)}),this._observer=null),this.TargetQueue.forEach(function(t){e._initListen(t.el,!0)})):(this.TargetQueue.forEach(function(t){e._initListen(t.el,!1)}),this._initIntersectionObserver())}},{key:"_addListenerTarget",value:function(t){if(t){var e=E(this.TargetQueue,function(e){return e.el===t});return e?e.childrenCount++:(e={el:t,id:++this.TargetIndex,childrenCount:1,listened:!0},this.mode===m.event&&this._initListen(e.el,!0),this.TargetQueue.push(e)),this.TargetIndex}}},{key:"_removeListenerTarget",value:function(t){var e=this;this.TargetQueue.forEach(function(n,i){n.el===t&&(n.childrenCount--,n.childrenCount||(e._initListen(n.el,!1),e.TargetQueue.splice(i,1),n=null))})}},{key:"_initListen",value:function(t,e){var n=this;this.options.ListenEvents.forEach(function(i){return $[e?"on":"off"](t,i,n.lazyLoadHandler)})}},{key:"_initEvent",value:function(){var t=this;this.Event={listeners:{loading:[],loaded:[],error:[]}},this.$on=function(e,n){t.Event.listeners[e]||(t.Event.listeners[e]=[]),t.Event.listeners[e].push(n)},this.$once=function(e,n){var i=t;function r(){i.$off(e,r),n.apply(i,arguments)}t.$on(e,r)},this.$off=function(e,n){if(n)L(t.Event.listeners[e],n);else{if(!t.Event.listeners[e])return;t.Event.listeners[e].length=0}},this.$emit=function(e,n,i){t.Event.listeners[e]&&t.Event.listeners[e].forEach(function(t){return t(n,i)})}}},{key:"_lazyLoadHandler",value:function(){var t=this,e=[];this.ListenerQueue.forEach(function(t,n){t.el&&t.el.parentNode||e.push(t);var i=t.checkInView();i&&t.load()}),e.forEach(function(e){L(t.ListenerQueue,e),e.$destroy()})}},{key:"_initIntersectionObserver",value:function(){var t=this;y&&(this._observer=new IntersectionObserver(this._observerHandler.bind(this),this.options.observerOptions),this.ListenerQueue.length&&this.ListenerQueue.forEach(function(e){t._observer.observe(e.el)}))}},{key:"_observerHandler",value:function(t,e){var n=this;t.forEach(function(t){t.isIntersecting&&n.ListenerQueue.forEach(function(e){if(e.el===t.target){if(e.state.loaded)return n._observer.unobserve(e.el);e.load()}})})}},{key:"_elRenderer",value:function(t,e,n){if(t.el){var i=t.el,r=t.bindType,o=void 0;switch(e){case"loading":o=t.loading;break;case"error":o=t.error;break;default:o=t.src;break}if(r?i.style[r]='url("'+o+'")':i.getAttribute("src")!==o&&i.setAttribute("src",o),i.setAttribute("lazy",e),this.$emit(e,t,n),this.options.adapter[e]&&this.options.adapter[e](t,this.options),this.options.dispatchEvent){var a=new w(e,{detail:t});i.dispatchEvent(a)}}}},{key:"_valueFormatter",value:function(t){var e=t,n=this.options.loading,i=this.options.error;return Q(t)&&(t.src||this.options.silent||s.error("Vue Lazyload warning: miss src with "+t),e=t.src,n=t.loading||this.options.loading,i=t.error||this.options.error),{src:e,loading:n,error:i}}}]),e}()}P.install=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=P(t),i=new n(e),r="2"===t.version.split(".")[0];r?t.directive("lazy",{bind:i.add.bind(i),update:i.update.bind(i),componentUpdated:i.lazyLoadHandler.bind(i),unbind:i.remove.bind(i)}):t.directive("lazy",{bind:i.lazyLoadHandler.bind(i),update:function(t,e){p(this.vm.$refs,this.vm.$els),i.add(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:t,oldValue:e},{context:this.vm})},unbind:function(){i.remove(this.el)}})};var M=function(t){return{props:{tag:{type:String,default:"div"}},render:function(t){return t(this.tag,null,this.show?this.$slots.default:null)},data:function(){return{el:null,state:{loaded:!1},rect:{},show:!1}},mounted:function(){this.el=this.$el,t.addLazyBox(this),t.lazyLoadHandler()},beforeDestroy:function(){t.removeComponent(this)},methods:{getRect:function(){this.rect=this.$el.getBoundingClientRect()},checkInView:function(){return this.getRect(),g&&this.rect.top<window.innerHeight*t.options.preLoad&&this.rect.bottom>0&&this.rect.left<window.innerWidth*t.options.preLoad&&this.rect.right>0},load:function(){this.show=!0,this.state.loaded=!0,this.$emit("show",this)},destroy:function(){return this.$destroy}}}};M.install=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=P(t),i=new n(e);t.component("lazy-component",M(i))};var F=function(){function t(e){var n=e.lazy;f(this,t),this.lazy=n,n.lazyContainerMananger=this,this._queue=[]}return v(t,[{key:"bind",value:function(t,e,n){var i=new G({el:t,binding:e,vnode:n,lazy:this.lazy});this._queue.push(i)}},{key:"update",value:function(t,e,n){var i=E(this._queue,function(e){return e.el===t});i&&i.update({el:t,binding:e,vnode:n})}},{key:"unbind",value:function(t,e,n){var i=E(this._queue,function(e){return e.el===t});i&&(i.clear(),L(this._queue,i))}}]),t}(),U={selector:"img"},G=function(){function t(e){var n=e.el,i=e.binding,r=e.vnode,o=e.lazy;f(this,t),this.el=null,this.vnode=r,this.binding=i,this.options={},this.lazy=o,this._queue=[],this.update({el:n,binding:i})}return v(t,[{key:"update",value:function(t){var e=this,n=t.el,i=t.binding;this.el=n,this.options=p({},U,i.value);var r=this.getImgs();r.forEach(function(t){e.lazy.add(t,p({},e.binding,{value:{src:"dataset"in t?t.dataset.src:t.getAttribute("data-src"),error:("dataset"in t?t.dataset.error:t.getAttribute("data-error"))||e.options.error,loading:("dataset"in t?t.dataset.loading:t.getAttribute("data-loading"))||e.options.loading}}),e.vnode)})}},{key:"getImgs",value:function(){return R(this.el.querySelectorAll(this.options.selector))}},{key:"clear",value:function(){var t=this,e=this.getImgs();e.forEach(function(e){return t.lazy.remove(e)}),this.vnode=null,this.binding=null,this.lazy=null}}]),t}();G.install=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=P(t),i=new n(e),r=new G({lazy:i}),o="2"===t.version.split(".")[0];o?t.directive("lazy-container",{bind:r.bind.bind(r),componentUpdated:r.update.bind(r),unbind:r.unbind.bind(r)}):t.directive("lazy-container",{update:function(t,e){r.update(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:t,oldValue:e},{context:this.vm})},unbind:function(){r.unbind(this.el)}})};var J=function(t){return{props:{src:[String,Object],tag:{type:String,default:"img"}},render:function(t){return t(this.tag,{attrs:{src:this.renderSrc}},this.$slots.default)},data:function(){return{el:null,options:{src:"",error:"",loading:"",attempt:t.options.attempt},state:{loaded:!1,error:!1,attempt:0},rect:{},renderSrc:""}},watch:{src:function(){this.init(),t.addLazyBox(this),t.lazyLoadHandler()}},created:function(){this.init(),this.renderSrc=this.options.loading},mounted:function(){this.el=this.$el,t.addLazyBox(this),t.lazyLoadHandler()},beforeDestroy:function(){t.removeComponent(this)},methods:{init:function(){var e=t._valueFormatter(this.src),n=e.src,i=e.loading,r=e.error;this.state.loaded=!1,this.options.src=n,this.options.error=r,this.options.loading=i,this.renderSrc=this.options.loading},getRect:function(){this.rect=this.$el.getBoundingClientRect()},checkInView:function(){return this.getRect(),g&&this.rect.top<window.innerHeight*t.options.preLoad&&this.rect.bottom>0&&this.rect.left<window.innerWidth*t.options.preLoad&&this.rect.right>0},load:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:V;if(this.state.attempt>this.options.attempt-1&&this.state.error)return t.options.silent||s.log("VueLazyload log: "+this.options.src+" tried too more than "+this.options.attempt+" times"),void n();var i=this.options.src;S({src:i},function(t){var n=t.src;e.renderSrc=n,e.state.loaded=!0},function(t){e.state.attempt++,e.renderSrc=e.options.error,e.state.error=!0})}}}};J.install=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=P(t),i=new n(e);t.component("lazy-image",J(i))};var K={install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=P(t),i=new n(e),r=new F({lazy:i}),o="2"===t.version.split(".")[0];t.prototype.$Lazyload=i,e.lazyComponent&&t.component("lazy-component",M(i)),e.lazyImage&&t.component("lazy-image",J(i)),o?(t.directive("lazy",{bind:i.add.bind(i),update:i.update.bind(i),componentUpdated:i.lazyLoadHandler.bind(i),unbind:i.remove.bind(i)}),t.directive("lazy-container",{bind:r.bind.bind(r),componentUpdated:r.update.bind(r),unbind:r.unbind.bind(r)})):(t.directive("lazy",{bind:i.lazyLoadHandler.bind(i),update:function(t,e){p(this.vm.$refs,this.vm.$els),i.add(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:t,oldValue:e},{context:this.vm})},unbind:function(){i.remove(this.el)}}),t.directive("lazy-container",{update:function(t,e){r.update(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:t,oldValue:e},{context:this.vm})},unbind:function(){r.unbind(this.el)}}))}};a.A.use(K);const X={name:"app-img",props:{src:{type:String,default:""},alt:{type:String,default:""},title:{type:String,default:""},mode:{type:String,default:"scaleToFill"},height:{type:Number,default:346}}},Y=X;var Z,tt=n(18535),et=(0,tt.A)(Y,r,o,!1,null,"4296c4d0",null,!1,i,Z);const nt=et.exports}}]);