ifui
Version:
7 lines • 68.7 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define("ifu",["vue"],e):"object"==typeof exports?exports.ifu=e(require("vue")):t.ifu=e(t.Vue)}(this,function(t){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=87)}([function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,n){e.exports=t},function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(t,e,n){var i=n(32)("wks"),o=n(33),r=n(0).Symbol,s="function"==typeof r;(t.exports=function(t){return i[t]||(i[t]=s&&r[t]||(s?r:o)("Symbol."+t))}).store=i},function(t,e,n){"use strict";e.__esModule=!0;var i=function(t){return t&&t.__esModule?t:{default:t}}(n(8));e.default=i.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}},function(t,e,n){var i=n(9);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var i=n(0),o=n(2),r=n(14),s=n(7),a=n(12),u=function(t,e,n){var c,l,f,d=t&u.F,h=t&u.G,p=t&u.S,v=t&u.P,m=t&u.B,g=t&u.W,y=h?o:o[e]||(o[e]={}),b=y.prototype,_=h?i:p?i[e]:(i[e]||{}).prototype;for(c in h&&(n=e),n)(l=!d&&_&&void 0!==_[c])&&a(y,c)||(f=l?_[c]:n[c],y[c]=h&&"function"!=typeof _[c]?n[c]:m&&l?r(f,i):g&&_[c]==f?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):v&&"function"==typeof f?r(Function.call,f):f,v&&((y.virtual||(y.virtual={}))[c]=f,t&u.R&&b&&!b[c]&&s(b,c,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,n){var i=n(16),o=n(35);t.exports=n(10)?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){t.exports={default:n(54),__esModule:!0}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(17)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports={}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var i=n(15);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,o){return t.call(e,n,i,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var i=n(5),o=n(52),r=n(53),s=Object.defineProperty;e.f=n(10)?Object.defineProperty:function(t,e,n){if(i(t),e=r(e,!0),i(n),o)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){t.exports={default:n(46),__esModule:!0}},function(t,e,n){var i=n(20);t.exports=function(t){return Object(i(t))}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var i=n(48),o=n(34);t.exports=Object.keys||function(t){return i(t,o)}},function(t,e,n){var i=n(30),o=n(20);t.exports=function(t){return i(o(t))}},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},function(t,e,n){var i=n(32)("keys"),o=n(33);t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e){t.exports=!0},function(t,e,n){var i=n(9),o=n(0).document,r=i(o)&&i(o.createElement);t.exports=function(t){return r?o.createElement(t):{}}},function(t,e,n){var i=n(16).f,o=n(12),r=n(3)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,r)&&i(t,r,{configurable:!0,value:e})}},function(t,e,n){"use strict";var i=n(15);t.exports.f=function(t){return new function(t){var e,n;this.promise=new t(function(t,i){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=i}),this.resolve=i(e),this.reject=i(n)}(t)}},function(t,e,n){t.exports={default:n(86),__esModule:!0}},function(t,e,n){var i=n(13);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e,n){var i=n(23),o=Math.min;t.exports=function(t){return t>0?o(i(t),9007199254740991):0}},function(t,e,n){var i=n(2),o=n(0),r=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n(25)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){"use strict";var i=n(25),o=n(6),r=n(63),s=n(7),a=n(11),u=n(64),c=n(27),l=n(67),f=n(3)("iterator"),d=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,p,v,m,g){u(n,e,p);var y,b,_,x=function(t){if(!d&&t in C)return C[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},w=e+" Iterator",S="values"==v,k=!1,C=t.prototype,T=C[f]||C["@@iterator"]||v&&C[v],O=T||x(v),E=v?S?x("entries"):O:void 0,L="Array"==e&&C.entries||T;if(L&&(_=l(L.call(new t)))!==Object.prototype&&_.next&&(c(_,w,!0),i||"function"==typeof _[f]||s(_,f,h)),S&&T&&"values"!==T.name&&(k=!0,O=function(){return T.call(this)}),i&&!g||!d&&!k&&C[f]||s(C,f,O),a[e]=O,a[w]=h,v)if(y={values:S?O:x("values"),keys:m?O:x("keys"),entries:E},g)for(b in y)b in C||r(C,b,y[b]);else o(o.P+o.F*(d||k),e,y);return y}},function(t,e,n){var i=n(0).document;t.exports=i&&i.documentElement},function(t,e,n){var i=n(13),o=n(3)("toStringTag"),r="Arguments"==i(function(){return arguments}());t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:r?i(e):"Object"==(s=i(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e,n){var i=n(5),o=n(15),r=n(3)("species");t.exports=function(t,e){var n,s=i(t).constructor;return void 0===s||void 0==(n=i(s)[r])?e:o(n)}},function(t,e,n){var i,o,r,s=n(14),a=n(78),u=n(37),c=n(26),l=n(0),f=l.process,d=l.setImmediate,h=l.clearImmediate,p=l.MessageChannel,v=l.Dispatch,m=0,g={},y=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},b=function(t){y.call(t.data)};d&&h||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return g[++m]=function(){a("function"==typeof t?t:Function(t),e)},i(m),m},h=function(t){delete g[t]},"process"==n(13)(f)?i=function(t){f.nextTick(s(y,t,1))}:v&&v.now?i=function(t){v.now(s(y,t,1))}:p?(r=(o=new p).port2,o.port1.onmessage=b,i=s(r.postMessage,r,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(i=function(t){l.postMessage(t+"","*")},l.addEventListener("message",b,!1)):i="onreadystatechange"in c("script")?function(t){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),y.call(t)}}:function(t){setTimeout(s(y,t,1),0)}),t.exports={set:d,clear:h}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var i=n(5),o=n(9),r=n(28);t.exports=function(t,e){if(i(t),o(e)&&e.constructor===t)return e;var n=r.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){t.exports={default:n(59),__esModule:!0}},function(t,e,n){
/*!
* Vue-Lazyload.js v1.2.6
* (c) 2018 Awe <hilongjw@gmail.com>
* Released under the MIT License.
*/
t.exports=function(){"use strict";function t(t){t=t||{};var i=arguments.length,o=0;if(1===i)return t;for(;++o<i;){var r=arguments[o];f(t)&&(t=r),n(r)&&e(t,r)}return t}function e(e,o){for(var r in d(e,o),o)if("__proto__"!==r&&i(o,r)){var s=o[r];n(s)?("undefined"===p(e[r])&&"function"===p(s)&&(e[r]=s),e[r]=t(e[r]||{},s)):e[r]=s}return e}function n(t){return"object"===p(t)||"function"===p(t)}function i(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function o(t,e){if(t.length){var n=t.indexOf(e);return n>-1?t.splice(n,1):void 0}}function r(t,e){if("IMG"===t.tagName&&t.getAttribute("data-srcset")){var n=t.getAttribute("data-srcset"),i=[],o=t.parentNode,r=o.offsetWidth*e,s=void 0,a=void 0,u=void 0;(n=n.trim().split(",")).map(function(t){t=t.trim(),-1===(s=t.lastIndexOf(" "))?(a=t,u=999998):(a=t.substr(0,s),u=parseInt(t.substr(s+1,t.length-s-2),10)),i.push([u,a])}),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 c="",l=void 0,f=i.length,d=0;d<f;d++)if((l=i[d])[0]>=r){c=l[1];break}return c}}function s(t,e){for(var n=void 0,i=0,o=t.length;i<o;i++)if(e(t[i])){n=t[i];break}return n}function a(){}var u="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},c=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},l=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}}(),f=function(t){return null==t||"function"!=typeof t&&"object"!==(void 0===t?"undefined":u(t))},d=function(t,e){if(null===t||void 0===t)throw new TypeError("expected first argument to be an object.");if(void 0===e||"undefined"==typeof Symbol)return t;if("function"!=typeof Object.getOwnPropertySymbols)return t;for(var n=Object.prototype.propertyIsEnumerable,i=Object(t),o=arguments.length,r=0;++r<o;)for(var s=Object(arguments[r]),a=Object.getOwnPropertySymbols(s),u=0;u<a.length;u++){var c=a[u];n.call(s,c)&&(i[c]=s[c])}return i},h=Object.prototype.toString,p=function(t){var e=void 0===t?"undefined":u(t);return"undefined"===e?"undefined":null===t?"null":!0===t||!1===t||t instanceof Boolean?"boolean":"string"===e||t instanceof String?"string":"number"===e||t instanceof Number?"number":"function"===e||t instanceof Function?void 0!==t.constructor.name&&"Generator"===t.constructor.name.slice(0,9)?"generatorfunction":"function":void 0!==Array.isArray&&Array.isArray(t)?"array":t instanceof RegExp?"regexp":t instanceof Date?"date":"[object RegExp]"===(e=h.call(t))?"regexp":"[object Date]"===e?"date":"[object Arguments]"===e?"arguments":"[object Error]"===e?"error":"[object Promise]"===e?"promise":function(t){return t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}(t)?"buffer":"[object Set]"===e?"set":"[object WeakSet]"===e?"weakset":"[object Map]"===e?"map":"[object WeakMap]"===e?"weakmap":"[object Symbol]"===e?"symbol":"[object Map Iterator]"===e?"mapiterator":"[object Set Iterator]"===e?"setiterator":"[object String Iterator]"===e?"stringiterator":"[object Array Iterator]"===e?"arrayiterator":"[object Int8Array]"===e?"int8array":"[object Uint8Array]"===e?"uint8array":"[object Uint8ClampedArray]"===e?"uint8clampedarray":"[object Int16Array]"===e?"int16array":"[object Uint16Array]"===e?"uint16array":"[object Int32Array]"===e?"int32array":"[object Uint32Array]"===e?"uint32array":"[object Float32Array]"===e?"float32array":"[object Float64Array]"===e?"float64array":"object"},v=t,m="undefined"!=typeof window,g=m&&"IntersectionObserver"in window,y={event:"event",observer:"observer"},b=function(){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}if(m)return"function"==typeof window.CustomEvent?window.CustomEvent:(t.prototype=window.Event.prototype,t)}(),_=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return m&&window.devicePixelRatio||t},x=function(){if(m){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}}(),w={on:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];x?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;i.src=t.src,i.onload=function(){e({naturalHeight:i.naturalHeight,naturalWidth:i.naturalWidth,src:i.src})},i.onerror=function(t){n(t)}},k=function(t,e){return"undefined"!=typeof getComputedStyle?getComputedStyle(t,null).getPropertyValue(e):t.style[e]},C=function(t){return k(t,"overflow")+k(t,"overflow-y")+k(t,"overflow-x")},T={},O=function(){function t(e){var n=e.el,i=e.src,o=e.error,r=e.loading,s=e.bindType,a=e.$parent,u=e.options,l=e.elRenderer;c(this,t),this.el=n,this.src=i,this.error=o,this.loading=r,this.bindType=s,this.attempt=0,this.naturalHeight=0,this.naturalWidth=0,this.options=u,this.rect=null,this.$parent=a,this.elRenderer=l,this.performanceData={init:Date.now(),loadStart:0,loadEnd:0},this.filter(),this.initState(),this.render("loading",!1)}return l(t,[{key:"initState",value:function(){"dataset"in this.el?this.el.dataset.src=this.src:this.el.setAttribute("data-src",this.src),this.state={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,o=this.src;this.src=e,this.loading=n,this.error=i,this.filter(),o!==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;(function(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})(this.options.filter).map(function(e){t.options.filter[e](t,t.options)})}},{key:"renderLoading",value:function(t){var e=this;S({src:this.loading},function(n){e.render("loading",!1),t()},function(){t(),e.options.silent||console.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]:a;return this.attempt>this.options.attempt-1&&this.state.error?(this.options.silent||console.log("VueLazyload log: "+this.src+" tried too more than "+this.options.attempt+" times"),void e()):this.state.loaded||T[this.src]?(this.state.loaded=!0,e(),this.render("loaded",!0)):void this.renderLoading(function(){t.attempt++,t.record("loadStart"),S({src:t.src},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[t.src]=1,e()},function(e){!t.options.silent&&console.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}(),E="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",L=["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"],j={rootMargin:"0px",threshold:0},$=function(t){return function(){function e(t){var n=t.preLoad,i=t.error,o=t.throttleWait,r=t.preLoadTop,s=t.dispatchEvent,a=t.loading,u=t.attempt,l=t.silent,f=void 0===l||l,d=t.scale,h=t.listenEvents,p=(t.hasbind,t.filter),v=t.adapter,g=t.observer,b=t.observerOptions;c(this,e),this.version="1.2.6",this.mode=y.event,this.ListenerQueue=[],this.TargetIndex=0,this.TargetQueue=[],this.options={silent:f,dispatchEvent:!!s,throttleWait:o||200,preLoad:n||1.3,preLoadTop:r||0,error:i||E,loading:a||E,attempt:u||3,scale:d||_(d),ListenEvents:h||L,hasbind:!1,supportWebp:function(){if(!m)return!1;var t=!0,e=document;try{var n=e.createElement("object");n.type="image/webp",n.style.visibility="hidden",n.innerHTML="!",e.body.appendChild(n),t=!n.offsetWidth,e.body.removeChild(n)}catch(e){t=!1}return t}(),filter:p||{},adapter:v||{},observer:!!g,observerOptions:b||j},this._initEvent(),this.lazyLoadHandler=function(t,e){var n=null,i=0;return function(){if(!n){var o=Date.now()-i,r=this,s=arguments,a=function(){i=Date.now(),n=!1,t.apply(r,s)};o>=e?a():n=setTimeout(a,e)}}}(this._lazyLoadHandler.bind(this),this.options.throttleWait),this.setMode(this.options.observer?y.observer:y.event)}return l(e,[{key:"config",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};v(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),m&&(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 o=this;if(function(t,e){for(var n=!1,i=0,o=t.length;i<o;i++)if(e(t[i])){n=!0;break}return n}(this.ListenerQueue,function(t){return t.el===e}))return this.update(e,n),t.nextTick(this.lazyLoadHandler);var s=this._valueFormatter(n.value),a=s.src,u=s.loading,c=s.error;t.nextTick(function(){a=r(e,o.options.scale)||a,o._observer&&o._observer.observe(e);var s=Object.keys(n.modifiers)[0],l=void 0;s&&(l=(l=i.context.$refs[s])?l.$el||l:document.getElementById(s)),l||(l=function(t){if(m){if(!(t instanceof HTMLElement))return window;for(var e=t;e&&e!==document.body&&e!==document.documentElement&&e.parentNode;){if(/(scroll|auto)/.test(C(e)))return e;e=e.parentNode}return window}}(e));var f=new O({bindType:n.arg,$parent:l,el:e,loading:u,error:c,src:a,elRenderer:o._elRenderer.bind(o),options:o.options});o.ListenerQueue.push(f),m&&(o._addListenerTarget(window),o._addListenerTarget(l)),o.lazyLoadHandler(),t.nextTick(function(){return o.lazyLoadHandler()})})}},{key:"update",value:function(e,n){var i=this,o=this._valueFormatter(n.value),a=o.src,u=o.loading,c=o.error;a=r(e,this.options.scale)||a;var l=s(this.ListenerQueue,function(t){return t.el===e});l&&l.update({src:a,loading:u,error:c}),this._observer&&(this._observer.unobserve(e),this._observer.observe(e)),this.lazyLoadHandler(),t.nextTick(function(){return i.lazyLoadHandler()})}},{key:"remove",value:function(t){if(t){this._observer&&this._observer.unobserve(t);var e=s(this.ListenerQueue,function(e){return e.el===t});e&&(this._removeListenerTarget(e.$parent),this._removeListenerTarget(window),o(this.ListenerQueue,e)&&e.destroy())}}},{key:"removeComponent",value:function(t){t&&(o(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;g||t!==y.observer||(t=y.event),this.mode=t,t===y.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=s(this.TargetQueue,function(e){return e.el===t});return e?e.childrenCount++:(e={el:t,id:++this.TargetIndex,childrenCount:1,listened:!0},this.mode===y.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||(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 w[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;t.$on(e,function t(){i.$off(e,t),n.apply(i,arguments)})},this.$off=function(e,n){if(n)o(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){if(!t.state.error&&t.state.loaded)return e.push(t);t.checkInView()&&t.load()}),e.forEach(function(e){return o(t.ListenerQueue,e)})}},{key:"_initIntersectionObserver",value:function(){var t=this;g&&(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,o=t.bindType,r=void 0;switch(e){case"loading":r=t.loading;break;case"error":r=t.error;break;default:r=t.src}if(o?i.style[o]='url("'+r+'")':i.getAttribute("src")!==r&&i.setAttribute("src",r),i.setAttribute("lazy",e),this.$emit(e,t,n),this.options.adapter[e]&&this.options.adapter[e](t,this.options),this.options.dispatchEvent){var s=new b(e,{detail:t});i.dispatchEvent(s)}}}},{key:"_valueFormatter",value:function(t){var e=t,n=this.options.loading,i=this.options.error;return function(t){return null!==t&&"object"===(void 0===t?"undefined":u(t))}(t)&&(t.src||this.options.silent||console.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}()},A=function(){function t(e){var n=e.lazy;c(this,t),this.lazy=n,n.lazyContainerMananger=this,this._queue=[]}return l(t,[{key:"bind",value:function(t,e,n){var i=new P({el:t,binding:e,vnode:n,lazy:this.lazy});this._queue.push(i)}},{key:"update",value:function(t,e,n){var i=s(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=s(this._queue,function(e){return e.el===t});i&&(i.clear(),o(this._queue,i))}}]),t}(),I={selector:"img"},P=function(){function t(e){var n=e.el,i=e.binding,o=e.vnode,r=e.lazy;c(this,t),this.el=null,this.vnode=o,this.binding=i,this.options={},this.lazy=r,this._queue=[],this.update({el:n,binding:i})}return l(t,[{key:"update",value:function(t){var e=this,n=t.el,i=t.binding;this.el=n,this.options=v({},I,i.value),this.getImgs().forEach(function(t){e.lazy.add(t,v({},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"),loading:"dataset"in t?t.dataset.loading:t.getAttribute("data-loading")}}),e.vnode)})}},{key:"getImgs",value:function(){return function(t){for(var e=t.length,n=[],i=0;i<e;i++)n.push(t[i]);return n}(this.el.querySelectorAll(this.options.selector))}},{key:"clear",value:function(){var t=this;this.getImgs().forEach(function(e){return t.lazy.remove(e)}),this.vnode=null,this.binding=null,this.lazy=null}}]),t}();return{install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=$(t),i=new n(e),o=new A({lazy:i}),r="2"===t.version.split(".")[0];t.prototype.$Lazyload=i,e.lazyComponent&&t.component("lazy-component",function(t){return{props:{tag:{type:String,default:"div"}},render:function(t){return!1===this.show?t(this.tag):t(this.tag,null,this.$slots.default)},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(),m&&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)}}}}(i)),e.lazyImage&&t.component("lazy-image",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,o=e.error;this.state.loaded=!1,this.options.src=n,this.options.error=o,this.options.loading=i,this.renderSrc=this.options.loading},getRect:function(){this.rect=this.$el.getBoundingClientRect()},checkInView:function(){return this.getRect(),m&&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]:a;if(this.state.attempt>this.options.attempt-1&&this.state.error)return t.options.silent||console.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})}}}}(i)),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-container",{bind:o.bind.bind(o),update:o.update.bind(o),unbind:o.unbind.bind(o)})):(t.directive("lazy",{bind:i.lazyLoadHandler.bind(i),update:function(t,e){v(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){o.update(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:t,oldValue:e},{context:this.vm})},unbind:function(){o.unbind(this.el)}}))}}}()},function(t,e){var n=e;n.escape=encodeURIComponent,n.unescape=function(t){return decodeURIComponent(t.replace(/\+/g," "))},n.stringify=function(t,e,s,u){if(!function(t){return t&&"[object Object]"===i.call(t)&&"isPrototypeOf"in t}(t))return"";e=e||"&",s=s||"=",u=u||!1;var c=[],l="",f=n.escape;for(var d in t)if(o.call(t,d))if(l=t[d],d=n.escape(d),a(l))c.push(d,s,f(l+""),e);else if(r(l)&&l.length)for(var h=0;h<l.length;h++)a(l[h])&&c.push(d,(u?f("[]"):"")+s,f(l[h]+""),e);else c.push(d,s,e);return c.pop(),c.join("")},n.parse=function(t,e,i){void 0===t&&(t=document.location.search);var a={};if("string"!=typeof t||0===s(t).length)return a;var u=(t=t.replace(/^\?/,"")).split(e||"&");i=i||"=";for(var c=n.unescape,l=0;l<u.length;l++){var f=u[l].split(i),d=c(s(f[0])),h=c(s(f.slice(1).join(i))),p=d.match(/^(\w+)\[\]$/);p&&p[1]&&(d=p[1]),o.call(a,d)?(r(a[d])||(a[d]=[a[d]]),a[d].push(h)):a[d]=p?[h]:h}return a};var i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,r=Array.isArray||function(t){return"[object Array]"===i.call(t)},s=String.prototype.trim?function(t){return null==t?"":String.prototype.trim.call(t)}:function(t){return null==t?"":t.toString().replace(/^\s+/,"").replace(/\s+$/,"")};function a(t){return t!==Object(t)}},function(t,e,n){n(47),t.exports=n(2).Object.keys},function(t,e,n){var i=n(19),o=n(21);n(51)("keys",function(){return function(t){return o(i(t))}})},function(t,e,n){var i=n(12),o=n(22),r=n(49)(!1),s=n(24)("IE_PROTO");t.exports=function(t,e){var n,a=o(t),u=0,c=[];for(n in a)n!=s&&i(a,n)&&c.push(n);for(;e.length>u;)i(a,n=e[u++])&&(~r(c,n)||c.push(n));return c}},function(t,e,n){var i=n(22),o=n(31),r=n(50);t.exports=function(t){return function(e,n,s){var a,u=i(e),c=o(u.length),l=r(s,c);if(t&&n!=n){for(;c>l;)if((a=u[l++])!=a)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){var i=n(23),o=Math.max,r=Math.min;t.exports=function(t,e){return(t=i(t))<0?o(t+e,0):r(t,e)}},function(t,e,n){var i=n(6),o=n(2),r=n(17);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],s={};s[t]=e(n),i(i.S+i.F*r(function(){n(1)}),"Object",s)}},function(t,e,n){t.exports=!n(10)&&!n(17)(function(){return 7!=Object.defineProperty(n(26)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var i=n(9);t.exports=function(t,e){if(!i(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!i(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!i(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!i(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){n(55),t.exports=n(2).Object.assign},function(t,e,n){var i=n(6);i(i.S+i.F,"Object",{assign:n(56)})},function(t,e,n){"use strict";var i=n(21),o=n(57),r=n(58),s=n(19),a=n(30),u=Object.assign;t.exports=!u||n(17)(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=i})?function(t,e){for(var n=s(t),u=arguments.length,c=1,l=o.f,f=r.f;u>c;)for(var d,h=a(arguments[c++]),p=l?i(h).concat(l(h)):i(h),v=p.length,m=0;v>m;)f.call(h,d=p[m++])&&(n[d]=h[d]);return n}:u},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){n(60),n(61),n(68),n(72),n(84),n(85),t.exports=n(2).Promise},function(t,e){},function(t,e,n){"use strict";var i=n(62)(!0);n(36)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var i=n(23),o=n(20);t.exports=function(t){return function(e,n){var r,s,a=String(o(e)),u=i(n),c=a.length;return u<0||u>=c?t?"":void 0:(r=a.charCodeAt(u))<55296||r>56319||u+1===c||(s=a.charCodeAt(u+1))<56320||s>57343?t?a.charAt(u):r:t?a.slice(u,u+2):s-56320+(r-55296<<10)+65536}}},function(t,e,n){t.exports=n(7)},function(t,e,n){"use strict";var i=n(65),o=n(35),r=n(27),s={};n(7)(s,n(3)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(s,{next:o(1,n)}),r(t,e+" Iterator")}},function(t,e,n){var i=n(5),o=n(66),r=n(34),s=n(24)("IE_PROTO"),a=function(){},u=function(){var t,e=n(26)("iframe"),i=r.length;for(e.style.display="none",n(37).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;i--;)delete u.prototype[r[i]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(a.prototype=i(t),n=new a,a.prototype=null,n[s]=t):n=u(),void 0===e?n:o(n,e)}},function(t,e,n){var i=n(16),o=n(5),r=n(21);t.exports=n(10)?Object.defineProperties:function(t,e){o(t);for(var n,s=r(e),a=s.length,u=0;a>u;)i.f(t,n=s[u++],e[n]);return t}},function(t,e,n){var i=n(12),o=n(19),r=n(24)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),i(t,r)?t[r]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,n){n(69);for(var i=n(0),o=n(7),r=n(11),s=n(3)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<a.length;u++){var c=a[u],l=i[c],f=l&&l.prototype;f&&!f[s]&&o(f,s,c),r[c]=r.Array}},function(t,e,n){"use strict";var i=n(70),o=n(71),r=n(11),s=n(22);t.exports=n(36)(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),r.Arguments=r.Array,i("keys"),i("values"),i("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var i,o,r,s,a=n(25),u=n(0),c=n(14),l=n(38),f=n(6),d=n(9),h=n(15),p=n(73),v=n(74),m=n(39),g=n(40).set,y=n(79)(),b=n(28),_=n(41),x=n(80),w=n(42),S=u.TypeError,k=u.process,C=k&&k.versions,T=C&&C.v8||"",O=u.Promise,E="process"==l(k),L=function(){},j=o=b.f,$=!!function(){try{var t=O.resolve(1),e=(t.constructor={})[n(3)("species")]=function(t){t(L,L)};return(E||"function"==typeof PromiseRejectionEvent)&&t.then(L)instanceof e&&0!==T.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(t){}}(),A=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},I=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){for(var i=t._v,o=1==t._s,r=0,s=function(e){var n,r,s,a=o?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{a?(o||(2==t._h&&M(t),t._h=1),!0===a?n=i:(l&&l.enter(),n=a(i),l&&(l.exit(),s=!0)),n===e.promise?c(S("Promise-chain cycle")):(r=A(n))?r.call(n,u,c):u(n)):c(i)}catch(t){l&&!s&&l.exit(),c(t)}};n.length>r;)s(n[r++]);t._c=[],t._n=!1,e&&!t._h&&P(t)})}},P=function(t){g.call(u,function(){var e,n,i,o=t._v,r=B(t);if(r&&(e=_(function(){E?k.emit("unhandledRejection",o,t):(n=u.onunhandledrejection)?n({promise:t,reason:o}):(i=u.console)&&i.error&&i.error("Unhandled promise rejection",o)}),t._h=E||B(t)?2:1),t._a=void 0,r&&e.e)throw e.v})},B=function(t){return 1!==t._h&&0===(t._a||t._c).length},M=function(t){g.call(u,function(){var e;E?k.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},z=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),I(e,!0))},N=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw S("Promise can't be resolved itself");(e=A(t))?y(function(){var i={_w:n,_d:!1};try{e.call(t,c(N,i,1),c(z,i,1))}catch(t){z.call(i,t)}}):(n._v=t,n._s=1,I(n,!1))}catch(t){z.call({_w:n,_d:!1},t)}}};$||(O=function(t){p(this,O,"Promise","_h"),h(t),i.call(this);try{t(c(N,this,1),c(z,this,1))}catch(t){z.call(this,t)}},(i=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(81)(O.prototype,{then:function(t,e){var n=j(m(this,O));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=E?k.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&I(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),r=function(){var t=new i;this.promise=t,this.resolve=c(N,t,1),this.reject=c(z,t,1)},b.f=j=function(t){return t===O||t===s?new r(t):o(t)}),f(f.G+f.W+f.F*!$,{Promise:O}),n(27)(O,"Promise"),n(82)("Promise"),s=n(2).Promise,f(f.S+f.F*!$,"Promise",{reject:function(t){var e=j(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(a||!$),"Promise",{resolve:function(t){return w(a&&this===s?O:this,t)}}),f(f.S+f.F*!($&&n(83)(function(t){O.all(t).catch(L)})),"Promise",{all:function(t){var e=this,n=j(e),i=n.resolve,o=n.reject,r=_(function(){var n=[],r=0,s=1;v(t,!1,function(t){var a=r++,u=!1;n.push(void 0),s++,e.resolve(t).then(function(t){u||(u=!0,n[a]=t,--s||i(n))},o)}),--s||i(n)});return r.e&&o(r.v),n.promise},race:function(t){var e=this,n=j(e),i=n.reject,o=_(function(){v(t,!1,function(t){e.resolve(t).then(n.resolve,i)})});return o.e&&i(o.v),n.promise}})},function(t,e){t.exports=function(t,e,n,i){if(!(t instanceof e)||void 0!==i&&i in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var i=n(14),o=n(75),r=n(76),s=n(5),a=n(31),u=n(77),c={},l={};(e=t.exports=function(t,e,n,f,d){var h,p,v,m,g=d?function(){return t}:u(t),y=i(n,f,e?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(r(g)){for(h=a(t.length);h>b;b++)if((m=e?y(s(p=t[b])[0],p[1]):y(t[b]))===c||m===l)return m}else for(v=g.call(t);!(p=v.next()).done;)if((m=o(v,y,p.value,e))===c||m===l)return m}).BREAK=c,e.RETURN=l},function(t,e,n){var i=n(5);t.exports=function(t,e,n,o){try{return o?e(i(n)[0],n[1]):e(n)}catch(e){var r=t.return;throw void 0!==r&&i(r.call(t)),e}}},function(t,e,n){var i=n(11),o=n(3)("iterator"),r=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||r[o]===t)}},function(t,e,n){var i=n(38),o=n(3)("iterator"),r=n(11);t.exports=n(2).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||r[i(t)]}},function(t,e){t.exports=function(t,e,n){var i=void 0===n;switch(e.length){case 0:return i?t():t.call(n);case 1:return i?t(e[0]):t.call(n,e[0]);case 2:return i?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return i?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return i?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var i=n(0),o=n(40).set,r=i.MutationObserver||i.WebKitMutationObserver,s=i.process,a=i.Promise,u="process"==n(13)(s);t.exports=function(){var t,e,n,c=function(){var i,o;for(u&&(i=s.domain)&&i.exit();t;){o=t.fn,t=t.next;try{o()}catch(i){throw t?n():e=void 0,i}}e=void 0,i&&i.enter()};if(u)n=function(){s.nextTick(c)};else if(!r||i.navigator&&i.navigator.standalone)if(a&&a.resolve){var l=a.resolve(void 0);n=function(){l.then(c)}}else n=function(){o.call(i,c)};else{var f=!0,d=document.createTextNode("");new r(c).observe(d,{characterData:!0}),n=function(){d.data=f=!f}}return function(i){var o={fn:i,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e,n){var i=n(0).navigator;t.exports=i&&i.userAgent||""},function(t,e,n){var i=n(7);t.exports=function(t,e,n){for(var o in e)n&&t[o]?t[o]=e[o]:i(t,o,e[o]);return t}},function(t,e,n){"use strict";var i=n(0),o=n(2),r=n(16),s=n(10),a=n(3)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:i[t];s&&e&&!e[a]&&r.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,n){var i=n(3)("iterator"),o=!1;try{var r=[7][i]();r.return=function(){o=!0},Array.from(r,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var r=[7],s=r[i]();s.next=function(){return{done:n=!0}},r[i]=function(){return s},t(r)}catch(t){}return n}},function(t,e,n){"use strict";var i=n(6),o=n(2),r=n(0),s=n(39),a=n(42);i(i.P+i.R,"Promise",{finally:function(t){var e=s(this,o.Promise||r.Promise),n="function"==typeof t;return this.then(n?function(n){return a(e,t()).then(function(){return n})}:t,n?function(n){return a(e,t()).then(function(){throw n})}:t)}})},function(t,e,n){"use strict";var i=n(6),o=n(28),r=n(41);i(i.S,"Promise",{try:function(t){var e=o.f(this),n=r(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},function(t,e,n){var i=n(2),o=i.JSON||(i.JSON={stringify:JSON.stringify});t.exports=function(t){return o.stringify.apply(o,arguments)}},function(t,e,n){"use strict";n.r(e);var i=n(1),o=n.n(i),r=o.a.prototype.$isServer;function s(t){return void 0!==t&&null!==t}function a(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}function u(t,e){var n=t;return e.split(".").forEach(function(t){n=s(n[t])?n[t]:""}),n}var c=/-(\w)/g;var l=Object.prototype.hasOwnProperty;function f(t,e,n){var i=e[n];!s(i)||l.call(t,n)&&!s(t[n])||(l.call(t,n)&&a(i)?t[n]=d(Object(t[n]),e[n]):t[n]=i)}function d(t,e){for(var n in e)l.call(e,n)&&f(t,e,n);return t}var h={name:"名字",tel:"联系电话",save:"保存",confirm:"确认",cancel:"取消",delete:"删除",complete:"完成",contact:"联系人",loadingTip:"加载中...",nameEmpty:"请填写名字",confirmDelete:"确定要删除么",telInvalid:"请填写正确的联系电话",telPlaceholder:"手机或固定电话",vanContactCard:{addText:"添加订单联系人信息"},vanContactList:{addText:"新建联系人"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCouponCell:{title:"优惠券",tips:"使用优惠",count:function(t){return"您有 "+t+" 个可用优惠"}},vanCouponList:{empty:"暂无优惠券",exchange:"兑换",close:"不使用优惠",disabled:"不可用优惠",placeholder:"请输入优惠码"},vanCouponItem:{unlimited:"无使用门槛",discount:function(t){return t+"折"},condition:function(t){return"满"+t+"元可用"}},vanAddressEdit:{area:"收件地区",receiver:"收货人",postal:"邮政编码",areaEmpty:"请选择收件地区",addressEmpty:"请填写详细地址",postalEmpty:"邮政编码格式不正确",defaultAddress:"设为默认收货地址"},vanAddressEditDetail:{label:"详细地址",placeholder:"如街道、楼层、门牌号等"},vanAddressList:{address:"收货地址",add:"新增收货地址"},vanSku:{unavailable:"商品已经无法购买啦",spec:"请先选择商品规格",least:"至少选择一件",quota:function(t){return"限购"+t+"件"},inventory:"库存不足",purchase:function(t){return"您已购买"+t+"件"}},vanSkuActions:{cart:"加入购物车",buy:"立即购买"},vanSkuMessages:{fill:"请填写",upload:"请上传",number:"请填写正确的数字格式留言",email:"请填写正确的邮箱",id_no:"请填写正确的身份证号码",onePic:"仅限一张",placeholder:{id_no:"输入身份证号码",text:"输入文本",tel:"输入数字",email:"输入邮箱",date:"点击选择日期",time:"点击选择时间",textarea:"点击填写段落文本"}},vanSkuImgUploader:{or:"或",uploading:"正在上传...",rephoto:"重拍",photo:"拍照",reselect:"重新选择照片",select:"选择照片",maxSize:function(t){return"最大可上传图片为"+t+"MB,请尝试压缩图片尺寸"}},vanSkuStepper:{title:"购买数量",remain:function(t){return"剩余"+t+"件"},quota:function(t){return"每人限购"+t+"件"}}},p=o.a.prototype,v={install:function(){var t;p.$ifuiLang||(o.a.util.defineReactive(p,"$ifuiLang","zh-CN"),o.a.util.defineReactive(p,"$ifuiMessage",((t={})["zh-CN"]=h,t)))},use:function(t,e){var n;p.$ifuiLang=t,this.add(((n={})[t]=e,n))},add:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d(p.$ifuiMessage,t)}};v.install();var m=v,g=n(18),y=n.n(g),b=function(t,e,n){return e?t+n+e:t},_={methods:{b:function(t,e){var n=this.$options.name;return t&&"string"!=typeof t&&(e=t,t=""),t=b(n,t,"__"),e?[t,function t(e,n){if("string"==typeof n)return b(e,n,"--");if(Array.isArray(n))return n.map(function(n){return t(e,n)});var i={};return y()(n).forEach(function(t){i[e+"--"+t]=n[t]}),i}(t,e)]:t}}},x={computed:{$t:function(){var t=this.$options.name,e=t?function(t){return t.replace(c,function(t,e){return e.toUpperCase()})}(t)+".":"";var n=this.$ifuiMessage[this.$ifuiLang];return function(t){for(var i=arguments.length,o=Array(i>1?i-1:0),r=1;r<i;r++)o[r-1]=arguments[r];var s=u(n,e+t)||u(n,t);return"function"==typeof s?s.apply(null,o):s}}}},w=function(t){t.component(this.name,this)},S=function(t){return t.name="ifu-"+t.name,t.install=t.install||w,t.mixins=t.mixins||[],t.mixins.push(x,_),t.methods=t.methods||{},t.methods.isDef=s,t},k=function(t){return S(t)},C=k({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(t.tag,{tag:"component",class:t.b([t.type,t.size,{block:t.block,plain:t.plain,loading:t.loading,disabled:t.disabled,unclickable:t.disabled||t.loading,"bottom-action":t.bottomAction}]),attrs:{type:t.nativeType,disabled:t.disabled},on:{click:t.onClick}},[t.loading?n("ifu-loading",{attrs:{size:"20px",color:"default"===t.type?"black":"white"}}):t._e(),n("span",{class:t.b("text")},[t._t("default",[t._v(t._s(t.text))])],2)],1)},name:"button",props:{text:String,block:Boolean,plain:Boolean,loading:Boolean,disabled:Boolean,nativeType:String,bottomAction:Boolean,tag:{type:String,default:"button"},type:{type:String,default:"default"},size:{type:String,default:"normal"}},methods:{onClick:function(t){this.loading||this.disabled||this.$emit("click",t)}}}),T=n(4),O=n.n(T),E=n(8),L=n.n(E),j=n(43),$=n.n(j),A={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"ifu-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"ifu-modal",class:t.className,style:t.style,on:{touchmove:function(t){t.preventDefault(),t.stopPropagation()},click:function(e){t.$emit("click",e)}}})])},name:"modal",props:{visible:Boolean,zIndex:Number,className:String,customStyle:Object},computed:{style:function(){return O()({zIndex:this.zIndex},this.customStyle)}}},I={id:1,zIndex:2e3,stack:[],lockCount:0,plusKey:function(t){return this[t]++},get top(){return this.stack[this.stack.length-1]}},P={className:"",customStyle:{}},B={open:function(t,e){if(!I.stack.some(function(e){return e.vm._popupId===t._popupId})){var n=t.$el,i=n&&n.parentNode&&11!==n.parentNode.nodeType?n.parentNode:document.body;I.stack.push({vm:t,config:e,targetNode:i}),this.update()}},close:function(t){var e=I.stack;e.length&&(I.top.vm._popupId===t?(e.pop(),this.update()):I.stack=e.filter(function(e){return e.vm._popupId!==t}))},update:function(){var t=I.modal;if(t||((t=new(o.a.extend(A))({el:document.createElement("div")})).$on("click",this.onClick),I.modal=t),t.$el.parentNode&&(t.visible=!1),I.top){var e=I.top,n=e.targetNode,i=e.config;n.appendChild(t.$el),L()(t,O()({},P,i,{visible:!0}))}},onClick:function(){if(I.top){var t=I.top.vm;t.$emit("click-overlay"),t.closeOnClickOverlay&&t.$emit("input",!1)}}},M={getScrollEventTarget:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window,n=t;n&&"HTML"!==n.tagName&&"BODY"!==n.tagName&&1===n.nodeType&&n!==e;){var i=this.getComputedStyle(n).overflowY;if("scroll"===i||"auto"===i)return n;n=n.parentNode}return e},getScrollTop:function(t){return"scrollTop"in t?t.scrollTop:t.pageYOffset},setScrollTop:function(t,e){"scrollTop"in t?t.scrollTop=e:t.scrollTo(t.scrollX,e)},getElementTop:function(t){return(t===window?0:t.getBoundingClientRect().top)+this.getScrollTop(window)},getVisibleHeight:function(t){return t===window?t.innerHeight:t.getBoundingClientRect().height},getComputedStyle:!r&&document.defaultView.getComputedStyle.bind(document.defaultView)},z=!1;if(!r)try{var N={};Object.defineProperty(N,"passive",{get:function(){z=!0}}),window.addEventListener("test-passive",null,N)}catch(t){}function H(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];!r&&t.addEventListener(e,n,!!z&&{capture:!1,passive:i})}function R(t,e,n){!r&&t.removeEventListener(e,n)}var D={methods:{touchStart:function(t){this.disection="",this.deltaX=0,this.deltaY=0,this.offsetX=0,this.offsetY=0,this.startX=t.touches[0].clientX,this.startY=t.touches[0].clientY},touchMove:function(t){var e=t.touches[0];this.deltaX=e.clientX-this.startX,this.deltaY=e.clientY-this.startY,this.offsetX=Math.abs(this.deltaX),this.offsetY=Math.abs(this.deltaY),this.direction=this.offsetX>this.offsetY?"horizontal":this.offsetX<this.offsetY?"vertical":""}}},V={mixins:[D],props:{value:Boolean,overlay:Boolean,overlayStyle:Object,overlayClass:String,closeOnClickOverlay:Boolean,zIndex:[String,Number],getContainer:Function,lockScroll:{type:Boolean,default:!0},lazyRender:{type:Boolean,default:!0}},data:function(){return{inited:this.value}},computed:{shouldRender:function(){return this.inited||!this.lazyRender}},watch:{value:function(t){this.inited=this.inited||this.value,this[t?"open":"close"]()},getContainer:function(){this.move()},overlay:function(){this.renderOverlay()}},created:function(){this._popupId="popup-"+I.plusKey("id")},mounted:function(){this.getContainer&&this.move(),this.value&&this.open()},activated:function(){this.value&&this.open()},beforeDestroy:function(){this.close()},deactivated:function(){this.close()},methods:{open:function(){this.$isServer||this.opened||(void 0!==this.zIndex&&(I.zIndex=this.zIndex),this.opened=!0,this.renderOverlay(),this.lockScroll&&(H(document,"touchstart",this.touchStart),H(document,"touchmove",this.onTouchMove),I.lockCount||document.body.classList.add("van-overflow-hidden"),I.lockCount++))},close:function(){this.opened&&(this.lockScroll&&(I.lockCount--,R(document,"touchstart",this.touchStart),R(document,"touchmove",this.onTouchMove),I.lockCount||document.body.classList.remove("van-overflow-hidden")),this.opened=!1,B.close(this._popupId),this.$emit("input",!1))},move:function(){this.getContainer?this.getContainer().appendChild(this.$el):this.$parent&&this.$parent.$el.appendChild(this.$el)},onTouchMove:function(t){this.touchMove(t);var e=this.deltaY>0?"10":"01",n=M.getScrollEventTarget(t.target,this.$el),i=n.scrollHeight,o=n.offsetHeight,r=n.scrollTop,s="11";0===r?s=o>=i?"00":"01":r+o>=i&&(s="10"),"11"===s||"vertical"!==this.direction||parseInt(s,2)&parseInt(e,2)||(t.preventDefault(),t.stopPropagation())},renderOverlay:function(){var t=this;this.overlay?B.open(this,{zIndex:I.plusKey("zIndex"),className:this.over