define("@ali/mui-zepto/zepto",function(t,e,n){var i="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},r=function(){function t(t){return null==t?String(t):W[J.call(t)]||"object"}function e(e){return"function"==t(e)}function n(t){return null!=t&&t==t.window}function r(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function o(e){return"object"==t(e)}function s(t){return o(t)&&!n(t)&&Object.getPrototypeOf(t)==Object.prototype}function u(t){return"number"==typeof t.length}function a(t){return k.call(t,function(t){return null!=t})}function c(t){return t.length>0?N.fn.concat.apply([],t):t}function f(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function l(t){return t in j?j[t]:j[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function h(t,e){return"number"!=typeof e||$[f(t)]?e:e+"px"}function p(t){var e,n;return M[t]||(e=L.createElement(t),L.body.appendChild(e),n=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),"none"==n&&(n="block"),M[t]=n),M[t]}function d(t){return"children"in t?q.call(t.children):N.map(t.childNodes,function(t){if(1==t.nodeType)return t})}function m(t,e){var n,i=t?t.length:0;for(n=0;n ]*>/,I=/^ <(\w+)\s*\/?>(?: <\/\1>|)$/,Z=/ <(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,_=/^(?:body|html)$/i,R=/([A-Z])/g,F=["val","css","html","text","data","width","height","offset"],V=["after","prepend","before","append"],Y=L.createElement("table"),U=L.createElement("tr"),X={"tr":L.createElement("tbody"),"tbody":Y,"thead":Y,"tfoot":Y,"td":U,"th":U,"*":L.createElement("div")},B=/complete|loaded|interactive/,H=/^[\w-]*$/,W={},J=W.toString,G={},K=L.createElement("div"),Q={"tabindex":"tabIndex","readonly":"readOnly","for":"htmlFor","class":"className","maxlength":"maxLength","cellspacing":"cellSpacing","cellpadding":"cellPadding","rowspan":"rowSpan","colspan":"colSpan","usemap":"useMap","frameborder":"frameBorder","contenteditable":"contentEditable"},tt=Array.isArray||function(t){return t instanceof Array};return G.matches=function(t,e){if(!e||!t||1!==t.nodeType)return!1;var n=t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.matchesSelector;if(n)return n.call(t,e);var i,r=t.parentNode,o=!r;return o&&(r=K).appendChild(t),i=~G.qsa(r,e).indexOf(t),o&&K.removeChild(t),i},C=function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():""})},O=function(t){return k.call(t,function(e,n){return t.indexOf(e)==n})},G.fragment=function(t,e,n){var i,r,o;return I.test(t)&&(i=N(L.createElement(RegExp.$1))),i||(t.replace&&(t=t.replace(Z," <$1> ")),e===E&&(e=D.test(t)&&RegExp.$1),e in X||(e="*"),o=X[e],o.innerHTML=""+t,i=N.each(q.call(o.childNodes),function(){o.removeChild(this)})),s(n)&&(r=N(i),N.each(n,function(t,e){F.indexOf(t)>-1?r[t](e):r.attr(t,e)})),i},G.Z=function(t,e){return new m(t,e)},G.isZ=function(t){return t instanceof G.Z},G.init=function(t,n){var i;if(!t)return G.Z();if("string"==typeof t)if(t=t.trim()," < "==t[0]&&D.test(t))i=G.fragment(t,RegExp.$1,n),t=null;else{if(n!==E)return N(n).find(t);i=G.qsa(L,t)}else{if(e(t))return N(L).ready(t);if(G.isZ(t))return t;if(tt(t))i=a(t);else if(o(t))i=[t],t=null;else if(D.test(t))i=G.fragment(t.trim(),RegExp.$1,n),t=null;else{if(n!==E)return N(n).find(t);i=G.qsa(L,t)}}return G.Z(i,t)},N=function(t,e){return G.init(t,e)},N.extend=function(t){var e,n=q.call(arguments,1);return"boolean "==typeof t&&(e=t,t=n.shift()),n.forEach(function(n){g(t,n,e)}),t},G.qsa=function(t,e){var n,i="# "==e[0],r=!i&&". "==e[0],o=i||r?e.slice(1):e,s=H.test(o);return t.getElementById&&s&&i?(n=t.getElementById(o))?[n]:[]:1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType?[]:q.call(s&&!i&&t.getElementsByClassName?r?t.getElementsByClassName(o):t.getElementsByTagName(e):t.querySelectorAll(e))},N.contains=L.documentElement.contains?function(t,e){return t!==e&&t.contains(e)}:function(t,e){for(;e&&(e=e.parentNode);)if(e===t)return!0;return!1},N.type=t,N.isFunction=e,N.isWindow=n,N.isArray=tt,N.isPlainObject=s,N.isEmptyObject=function(t){var e;for(e in t)return!1;return!0},N.inArray=function(t,e,n){return P.indexOf.call(e,t,n)},N.camelCase=C,N.trim=function(t){return null==t?" ":String.prototype.trim.call(t)},N.uuid=0,N.support={},N.expr={},N.noop=function(){},N.map=function(t,e){var n,i,r,o=[];if(u(t))for(i=0;i=0?t:t+this.length]},"toArray ":function(){return this.get()},"size ":function(){return this.length},"remove ":function(){return this.each(function(){null!=this.parentNode&&this.parentNode.removeChild(this)})},"each ":function(t){return P.every.call(this,function(e,n){return!1!==t.call(e,n,e)}),this},"filter ":function(t){return e(t)?this.not(this.not(t)):N(k.call(this,function(e){return G.matches(e,t)}))},"add ":function(t,e){return N(O(this.concat(N(t,e))))},"is ":function(t){return this.length>0&&G.matches(this[0],t)},"not ":function(t){var n=[];if(e(t)&&t.call!==E)this.each(function(e){t.call(this,e)||n.push(this)});else{var i="string "==typeof t?this.filter(t):u(t)&&e(t.item)?q.call(t):N(t);this.forEach(function(t){i.indexOf(t)<0&&n.push(t)})}return N(n)},"has ":function(t){return this.filter(function(){return o(t)?N.contains(this,t):N(this).find(t).size()})},"eq ":function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},"first ":function(){var t=this[0];return t&&!o(t)?t:N(t)},"last ":function(){var t=this[this.length-1];return t&&!o(t)?t:N(t)},"find ":function(t){var e=this;return t?"object "==(void 0===t?"undefined ":i(t))?N(t).filter(function(){var t=this;return P.some.call(e,function(e){return N.contains(e,t)})}):1==this.length?N(G.qsa(this[0],t)):this.map(function(){return G.qsa(this,t)}):N()},"closest ":function(t,e){var n=this[0],o=!1;for("object "==(void 0===t?"undefined ":i(t))&&(o=N(t));n&&!(o?o.indexOf(n)>=0:G.matches(n,t));)n=n!==e&&!r(n)&&n.parentNode;return N(n)},"parents ":function(t){for(var e=[],n=this;n.length>0;)n=N.map(n,function(t){if((t=t.parentNode)&&!r(t)&&e.indexOf(t)<0)return e.push(t),t});return v(e,t)},"parent ":function(t){return v(O(this.pluck("parentNode ")),t)},"children ":function(t){return v(this.map(function(){return d(this)}),t)},"contents ":function(){return this.map(function(){return this.contentDocument||q.call(this.childNodes)})},"siblings ":function(t){return v(this.map(function(t,e){return k.call(d(e.parentNode),function(t){return t!==e})}),t)},"empty ":function(){return this.each(function(){this.innerHTML=" "})},"pluck ":function(t){return N.map(this,function(e){return e[t]})},"show ":function(){return this.each(function(){"none "==this.style.display&&(this.style.display=" "),"none "==getComputedStyle(this," ").getPropertyValue("display ")&&(this.style.display=p(this.nodeName))})},"replaceWith ":function(t){return this.before(t).remove()},"wrap ":function(t){var n=e(t);if(this[0]&&!n)var i=N(t).get(0),r=i.parentNode||this.length>1;return this.each(function(e){N(this).wrapAll(n?t.call(this,e):r?i.cloneNode(!0):i)})},"wrapAll ":function(t){if(this[0]){N(this[0]).before(t=N(t));for(var e;(e=t.children()).length;)t=e.first();N(t).append(this)}return this},"wrapInner ":function(t){var n=e(t);return this.each(function(e){var i=N(this),r=i.contents(),o=n?t.call(this,e):t;r.length?r.wrapAll(o):i.append(o)})},"unwrap ":function(){return this.parent().each(function(){N(this).replaceWith(N(this).children())}),this},"clone ":function(){return this.map(function(){return this.cloneNode(!0)})},"hide ":function(){return this.css("display ","none ")},"toggle ":function(t){return this.each(function(){var e=N(this);(t===E?"none "==e.css("display "):t)?e.show():e.hide()})},"prev ":function(t){return N(this.pluck("previousElementSibling ")).filter(t||"* ")},"next ":function(t){return N(this.pluck("nextElementSibling ")).filter(t||"* ")},"html ":function(t){return 0 in arguments?this.each(function(e){var n=this.innerHTML;N(this).empty().append(y(this,t,e,n))}):0 in this?this[0].innerHTML:null},"text ":function(t){return 0 in arguments?this.each(function(e){var n=y(this,t,e,this.textContent);this.textContent=null==n?" ":" "+n}):0 in this?this.pluck("textContent ").join(" "):null},"attr ":function(t,e){var n;return"string "!=typeof t||1 in arguments?this.each(function(n){if(1===this.nodeType)if(o(t))for(T in t)b(this,T,t[T]);else b(this,t,y(this,e,n,this.getAttribute(t)))}):this.length&&1===this[0].nodeType?!(n=this[0].getAttribute(t))&&t in this[0]?this[0][t]:n:E},"removeAttr ":function(t){return this.each(function(){1===this.nodeType&&t.split(" ").forEach(function(t){b(this,t)},this)})},"prop ":function(t,e){return t=Q[t]||t,1 in arguments?this.each(function(n){this[t]=y(this,e,n,this[t])}):this[0]&&this[0][t]},"data ":function(t,e){var n="data- "+t.replace(R,"-$1 ").toLowerCase(),i=1 in arguments?this.attr(n,e):this.attr(n);return null!==i?x(i):E},"val ":function(t){return 0 in arguments?this.each(function(e){this.value=y(this,t,e,this.value)}):this[0]&&(this[0].multiple?N(this[0]).find("option ").filter(function(){return this.selected}).pluck("value "):this[0].value)},"offset ":function(t){if(t)return this.each(function(e){var n=N(this),i=y(this,t,e,n.offset()),r=n.offsetParent().offset(),o={"top ":i.top-r.top,"left ":i.left-r.left};"static "==n.css("position ")&&(o.position="relative "),n.css(o)});if(!this.length)return null;if(!N.contains(L.documentElement,this[0]))return{"top ":0,"left ":0};var e=this[0].getBoundingClientRect();return{"left ":e.left+window.pageXOffset,"top ":e.top+window.pageYOffset,"width ":Math.round(e.width),"height ":Math.round(e.height)}},"css ":function(e,n){if(arguments.length<2){var i,r=this[0];if(!r)return;if(i=getComputedStyle(r," "),"string "==typeof e)return r.style[C(e)]||i.getPropertyValue(e);if(tt(e)){var o={};return N.each(e,function(t,e){o[e]=r.style[C(e)]||i.getPropertyValue(e)}),o}}var s=" ";if("string "==t(e))n||0===n?s=f(e)+": "+h(e,n):this.each(function(){this.style.removeProperty(f(e))});else for(T in e)e[T]||0===e[T]?s+=f(T)+": "+h(T,e[T])+"; ":this.each(function(){this.style.removeProperty(f(T))});return this.each(function(){this.style.cssText+="; "+s})},"index ":function(t){return t?this.indexOf(N(t)[0]):this.parent().children().indexOf(this[0])},"hasClass ":function(t){return!!t&&P.some.call(this,function(t){return this.test(z(t))},l(t))},"addClass ":function(t){return t?this.each(function(e){if("className "in this){S=[];var n=z(this);y(this,t,e,n).split(/\s+/g).forEach(function(t){N(this).hasClass(t)||S.push(t)},this),S.length&&z(this,n+(n?" ":" ")+S.join(" "))}}):this},"removeClass ":function(t){return this.each(function(e){if("className "in this){if(t===E)return z(this," ");S=z(this),y(this,t,e,S).split(/\s+/g).forEach(function(t){S=S.replace(l(t)," ")}),z(this,S.trim())}})},"toggleClass ":function(t,e){return t?this.each(function(n){var i=N(this);y(this,t,n,z(this)).split(/\s+/g).forEach(function(t){(e===E?!i.hasClass(t):e)?i.addClass(t):i.removeClass(t)})}):this},"scrollTop ":function(t){if(this.length){var e="scrollTop "in this[0];return t===E?e?this[0].scrollTop:this[0].pageYOffset:this.each(e?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}},"scrollLeft ":function(t){if(this.length){var e="scrollLeft "in this[0];return t===E?e?this[0].scrollLeft:this[0].pageXOffset:this.each(e?function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})}},"position ":function(){if(this.length){var t=this[0],e=this.offsetParent(),n=this.offset(),i=_.test(e[0].nodeName)?{"top ":0,"left ":0}:e.offset();return n.top-=parseFloat(N(t).css("margin-top "))||0,n.left-=parseFloat(N(t).css("margin-left "))||0,i.top+=parseFloat(N(e[0]).css("border-top-width "))||0,i.left+=parseFloat(N(e[0]).css("border-left-width "))||0,{"top ":n.top-i.top,"left ":n.left-i.left}}},"offsetParent ":function(){return this.map(function(){for(var t=this.offsetParent||L.body;t&&!_.test(t.nodeName)&&"static "==N(t).css("position ");)t=t.offsetParent;return t})}},N.fn.detach=N.fn.remove,["width ","height "].forEach(function(t){var e=t.replace(/./,function(t){return t[0].toUpperCase()});N.fn[t]=function(i){var o,s=this[0];return i===E?n(s)?s["inner "+e]:r(s)?s.documentElement["scroll "+e]:(o=this.offset())&&o[t]:this.each(function(e){s=N(this),s.css(t,y(this,i,e,s[t]()))})}}),V.forEach(function(e,n){var i=n%2;N.fn[e]=function(){var e,r,o=N.map(arguments,function(n){return e=t(n),"object "==e||"array "==e||null==n?n:G.fragment(n)}),s=this.length>1;return o.length<1?this:this.each(function(t,e){r=i?e:e.parentNode,e=0==n?e.nextSibling:1==n?e.firstChild:2==n?e:null;var u=N.contains(L.documentElement,r);o.forEach(function(t){if(s)t=t.cloneNode(!0);else if(!r)return N(t).remove();r.insertBefore(t,e),u&&w(t,function(t){null==t.nodeName||"SCRIPT "!==t.nodeName.toUpperCase()||t.type&&"text/javascript "!==t.type||t.src||window.eval.call(window,t.innerHTML)})})})},N.fn[i?e+"To ":"insert "+(n?"Before ":"After ")]=function(t){return N(t)[e](this),this}}),G.Z.prototype=m.prototype=N.fn,G.uniq=O,G.deserializeValue=x,N.zepto=G,N}();n.exports=r});define("@ali/lzdmod-dynamic/render ",["@ali/mui-zepto/event ","@ali/lzdmod-dynamic/index ","@ali/lzdmod-crossimage/index ","@ali/mui-xtemplate/index ","@ali/lzdmod-datalazyload/index "],function(a,e,t){"use strict ";function n(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function ")}var i="function "==typeof Symbol&&"symbol "==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function "==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol ":typeof a},o=function(){function a(a,e){for(var t=0;t=1&&"object "===i(this.config.DynamicItemCls)&&this.config.DynamicItemCls instanceof NodeList?r.each(this.config.DynamicItemCls,function(e,t){a.push(t)}):a=this.config.DynamicItemCls,this.$eleNode=r(a,this.config.DynamicParentCls),this.$eleNode}},{"key ":"__getDynamicData ","value ":function(a,e,t,n){var i=this,o=t.dataUrl,r=(new Date).getTime(),c=t.data||{};o&&(o+=(o.indexOf("? ")>0?"&_pvuuid=":" ?_pvuuid=")+r);var s=window.require,l=s(" @ali/mui-fetch/jsonp ");l&&l(o,{"method ":"jsonp ","timeout ":i.config.timeout,"jsonpCallback ":"callback "}).then(function(a){return a.json()}).then(function(t){var o=!t||t.data?c:t.data;i.renderCallback(a,e,o,t&&t.exposureParam?t.exposureParam:n)})["catch "](function(a){console.error&&console.error("dynamic.error ","tmallDynamic ",{"msg ":"[\u63a5\u53e3\u8bf7\u6c42\u5931\u8d25] \u9519\u8bef\u539f\u56e0:\u4e2a\u6027\u5316\u8bf7\u6c42\u5931\u8d25 "+(i.errorMsg()||" ")+", "+a,"type ":"error "})})}},{"key ":"renderCallback ","value ":function(e,t,n){var i=this;if(r.isArray(n)&&window.$icms.dynamic.maxDataNum){var o=n.length,c=window.$icms.dynamic.maxDataNum>=o?o:window.$icms.dynamic.maxDataNum;n=n.splice(0,c),c1&&arguments[1]!==undefined?arguments[1]:{},n=t.LazyDiff||50;if(e){n=window.$icms.dynamic.lazyDiff?window.$icms.dynamic.lazyDiff:n;var i=[75,60,90,30],o=t.imgOpFactor||75;window.$icms.dynamic.imgOpFactor&&(o=window.$icms.dynamic.imgOpFactor),t.sharpen=t.sharpen?t.sharpen:"pc "===d.devId?0:30;var c=window.$icms.dynamic.sharpen?window.$icms.dynamic.sharpen:t.sharpen;o=parseInt(a.getQuery("wh_q ",o))||o;var l=void 0;return t.imgOpFactor?(t.autoDestroy=!1,l=u.instance()):l=new u,l.set("diff ",n),"m "===d.devId&&l.set("fade ",!1),l.set("autoDestroy ",t.autoDestroy),void 0!==s&&r.inArray(o,i)>=0&&l.set("onStart ",s.dataLazyPlugin(e[0]||e,{"quality ":"q "+o,"sharpen ":"s "+c})),l.addElements(e[0]||e),l}}},{"key ":"hasAttr ","value ":function(a){a.attr||(a=r(a));var e=a&&a.attr("style ");if(!e||"object "===(void 0===e?"undefined ":i(e)))return{"hasPadding ":!1,"hasHeight ":!1};var t=e.toLowerCase();return{"hasPadding ":t.indexOf("padding-top ")>=0||t.indexOf("paddingTop ")>=0,"hasHeight ":t.indexOf("height ")>=0}}}]),a}();t.exports=m});define("@ali/mui-zepto/event ",["@ali/mui-zepto/zepto "],function(e,n,t){"use strict ";var r=e("@ali/mui-zepto/zepto ");!function(e){function n(e){return e._zid||(e._zid=p++)}function t(e,t,o,u){if(t=r(t),t.ns)var a=i(t.ns);return(g[n(e)]||[]).filter(function(e){return e&&(!t.e||e.e==t.e)&&(!t.ns||a.test(e.ns))&&(!o||n(e.fn)===n(o))&&(!u||e.sel==u)})}function r(e){var n=(" "+e).split(". ");return{"e ":n[0],"ns ":n.slice(1).sort().join(" ")}}function i(e){return new RegExp("(?:^| ) "+e.replace(" "," .* ? ")+"(?: |$) ")}function o(e,n){return e.del&&!y&&e.e in E||!!n}function u(e){return P[e]||y&&E[e]||e}function a(t,i,a,f,c,p,d){var v=n(t),h=g[v]||(g[v]=[]);i.split(/\s/).forEach(function(n){if("ready "==n)return e(document).ready(a);var i=r(n);i.fn=a,i.sel=c,i.e in P&&(a=function(n){var t=n.relatedTarget;if(!t||t!==this&&!e.contains(this,t))return i.fn.apply(this,arguments)}),i.del=p;var v=p||a;i.proxy=function(e){if(e=s(e),!e.isImmediatePropagationStopped()){e.data=f;var n=v.apply(t,e._args==l?[e]:[e].concat(e._args));return!1===n&&(e.preventDefault(),e.stopPropagation()),n}},i.i=h.length,h.push(i),"addEventListener "in t&&t.addEventListener(u(i.e),i.proxy,o(i,d))})}function f(e,r,i,a,f){var s=n(e);(r||" ").split(/\s/).forEach(function(n){t(e,n,i,a).forEach(function(n){delete g[s][n.i],"removeEventListener "in e&&e.removeEventListener(u(n.e),n.proxy,o(n,f))})})}function s(n,t){return!t&&n.isDefaultPrevented||(t||(t=n),e.each(w,function(e,r){var i=t[e];n[e]=function(){return this[r]=b,i&&i.apply(t,arguments)},n[r]=x}),(t.defaultPrevented!==l?t.defaultPrevented:"returnValue "in t?!1===t.returnValue:t.getPreventDefault&&t.getPreventDefault())&&(n.isDefaultPrevented=b)),n}function c(e){var n,t={"originalEvent ":e};for(n in e)z.test(n)||e[n]===l||(t[n]=e[n]);return s(t,e)}var l,p=1,d=Array.prototype.slice,v=e.isFunction,h=function(e){return"string "==typeof e},g={},m={},y="onfocusin "in window,E={"focus ":"focusin ","blur ":"focusout "},P={"mouseenter ":"mouseover ","mouseleave ":"mouseout "};m.click=m.mousedown=m.mouseup=m.mousemove="MouseEvents ",e.event={"add ":a,"remove ":f},e.proxy=function(t,r){var i=2 in arguments&&d.call(arguments,2);if(v(t)){var o=function(){return t.apply(r,i?i.concat(d.call(arguments)):arguments)};return o._zid=n(t),o}if(h(r))return i?(i.unshift(t[r],t),e.proxy.apply(null,i)):e.proxy(t[r],t);throw new TypeError("expected function ")},e.fn.bind=function(e,n,t){return this.on(e,n,t)},e.fn.unbind=function(e,n){return this.off(e,n)},e.fn.one=function(e,n,t,r){return this.on(e,n,t,r,1)};var b=function(){return!0},x=function(){return!1},z=/^([A-Z]|returnValue$|layer[XY]$)/,w={"preventDefault ":"isDefaultPrevented ","stopImmediatePropagation ":"isImmediatePropagationStopped ","stopPropagation ":"isPropagationStopped "};e.fn.delegate=function(e,n,t){return this.on(n,e,t)},e.fn.undelegate=function(e,n,t){return this.off(n,e,t)},e.fn.live=function(n,t){return e(document.body).delegate(this.selector,n,t),this},e.fn.die=function(n,t){return e(document.body).undelegate(this.selector,n,t),this},e.fn.on=function(n,t,r,i,o){var u,s,p=this;return n&&!h(n)?(e.each(n,function(e,n){p.on(e,t,r,n,o)}),p):(h(t)||v(i)||!1===i||(i=r,r=t,t=l),i!==l&&!1!==r||(i=r,r=l),!1===i&&(i=x),p.each(function(l,p){o&&(u=function(e){return f(p,e.type,i),i.apply(this,arguments)}),t&&(s=function(n){var r,o=e(n.target).closest(t,p).get(0);if(o&&o!==p)return r=e.extend(c(n),{"currentTarget ":o,"liveFired ":p}),(u||i).apply(o,[r].concat(d.call(arguments,1)))}),a(p,n,i,r,t,s||u)}))},e.fn.off=function(n,t,r){var i=this;return n&&!h(n)?(e.each(n,function(e,n){i.off(e,t,n)}),i):(h(t)||v(r)||!1===r||(r=t,t=l),!1===r&&(r=x),i.each(function(){f(this,n,r,t)}))},e.fn.trigger=function(n,t){return n=h(n)||e.isPlainObject(n)?e.Event(n):s(n),n._args=t,this.each(function(){n.type in E&&"function "==typeof this[n.type]?this[n.type]():"dispatchEvent "in this?this.dispatchEvent(n):e(this).triggerHandler(n,t)})},e.fn.triggerHandler=function(n,r){var i,o;return this.each(function(u,a){i=c(h(n)?e.Event(n):n),i._args=r,i.target=a,e.each(t(a,n.type||n),function(e,n){if(o=n.proxy(i),i.isImmediatePropagationStopped())return!1})}),o},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error ".split(" ").forEach(function(n){e.fn[n]=function(e){return 0 in arguments?this.bind(n,e):this.trigger(n)}}),e.Event=function(e,n){h(e)||(n=e,e=n.type);var t=document.createEvent(m[e]||"Events "),r=!0;if(n)for(var i in n)"bubbles "==i?r=!!n[i]:t[i]=n[i];return t.initEvent(e,r,!0),s(t)}}(r),t.exports=r});define("@ali/lzdmod-dynamic/index ",["@ali/mui-zepto/touch ","@ali/lzdmod-dynamic/request ","@ali/lzdmod-dynamic/plugin ","@ali/lzdmod-dynamic/utils/index "],function(a,e,t){"use strict ";function n(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function ")}var r=function(){function a(a,e){for(var t=0;t100?e:1e3*e:8e3;var t={"timeout ":e,"closeAllBackup ":!1,"closeBackup ":!1,"duplication ":!1,"mtop ":!0,"mtopApiName ":"mtop.lazada.pegasus.service.AldRecommendService.recommend2 ","params ":{},"backupParams ":{},"forceBackupHasParam ":!0},n=Object.assign(t,this.config);!s(this.config.params)&&(n.params={}),!s(this.config.backupParams)&&(n.backupParams={}),this.request=new i(n),this.xPathList={},this._stringifyToResult(this.cfg)}},{"key ":"_stringifyToResult ","value ":function(a){var e="string "==typeof a.data?JSON.parse(a.data):a.data,t=a.key,n=a.callback,r=t?e[t]:e;if(!r){var o=t+" is undefiend ";throw new Error(o)}this._getData(r).then(function(a){n&&n(a,a&&a._ZDexposureArr||[])})["catch "](function(a){throw a})}},{"key ":"_getData ","value ":function(a){var e=this;return this._parse(a),o.isEmptyObject(e.request.requestStack)?Promise.resolve(a):e.request.run().then(function(t){var n=[];return o.each(t,function(t,r){r=r||[],r&&r._ZDexposureObj&&n.push(r._ZDexposureObj),o.each(e.xPathList,function(e,n){if(t&&n&&t.toString()===n.toString()){var o=e.split(". "),i=o.pop(),c=a;o.forEach(function(a){a&&(c=c[a])}),i?c[i]=r:a=r}})}),e.xPathList={},o.isPlainObject(a)&&(a._ZDexposureArr=n),a})}},{"key ":"_parse ","value ":function(a,e){var t=this;if(e=e||" ",this._isTag(a)){var n=this._checkTagIsDynamic(a);if(n)return void this._push(a,n,e);o.each(a,function(a,n){t._isTag(n)&&t._parse(n,e+". "+a)})}}},{"key ":"_isTag ","value ":function(a){return Array.isArray(a)||s(a)}},{"key ":"_push ","value ":function(a,e,t){var n=Array.isArray(a),r=n?a[0]:a;this.xPathList[t]=e,this.request.push(r)}},{"key ":"_checkTagIsDynamic ","value ":function(a){return Array.isArray(a)?!(a.length>1)&&p(a[0]):p(a)}}]),a}();t.exports=function(a,e,t,n){return o.isFunction(e)&&(n=t,t=e,e=null),d(a)?new Promise(function(e,t){try{return new f({"data ":m(a),"callback ":function(a){e(a)},"config ":a.dataParams||{}})}catch(n){console.error(n),t(n)}}):new f({"data ":a,"key ":e,"callback ":t,"config ":n||{}})}});define("@ali/mui-zepto/touch ",["@ali/mui-zepto/zepto ","@ali/mui-zepto/event "],function(t,e,n){var i=t("@ali/mui-zepto/zepto ");t("@ali/mui-zepto/event ");!function(t){function e(t,e,n,i){return Math.abs(t-e)>=Math.abs(n-i)?t-e>0?"Left ":"Right ":n-i>0?"Up ":"Down "}function n(){u=null,s.last&&(s.el.trigger("longTap "),s={})}function i(){u&&clearTimeout(u),u=null}function o(){r&&clearTimeout(r),u&&clearTimeout(u),r=u=null,s={}}var r,u,a,s={},c=750;t(document).ready(function(){var f,l,p,d=0,h=0;"MSGesture "in window&&(a=new MSGesture,a.target=document.body),t(document).bind("MSGestureEnd ",function(t){var e=t.velocityX>1?"Right ":t.velocityX<-1?"Left ":t.velocityY>1?"Down ":t.velocityY<-1?"Up ":null;e&&(s.el.trigger("swipe "),s.el.trigger("swipe "+e))}).on("touchstart ",function(e){p=e.touches[0],e.touches&&1===e.touches.length&&s.x2&&(s.x2=undefined,s.y2=undefined),f=Date.now(),l=f-(s.last||f),s.el=t("tagName "in p.target?p.target:p.target.parentNode),r&&clearTimeout(r),s.x1=p.pageX,s.y1=p.pageY,l>0&&l<=250&&(s.isDoubleTap=!0),s.last=f,u=setTimeout(n,c)}).on("touchmove ",function(t){p=t.touches[0],i(),s.x1?(s.x2=p.pageX,s.y2=p.pageY,d+=Math.abs(s.x1-s.x2),h+=Math.abs(s.y1-s.y2)):d=h=0}).on("touchend ",function(n){if(i(),s.x2&&Math.abs(s.x1-s.x2)>30||s.y2&&Math.abs(s.y1-s.y2)>30)s.el&&(s.el.trigger("swipe "),s.el.trigger("swipe "+e(s.x1,s.x2,s.y1,s.y2))),s={};else if("last "in s)if(d<30&&h<30){var u=t.Event("tap ");u.cancelTouch=o,s.el&&s.el.trigger(u),s.isDoubleTap?(s.el&&s.el.trigger("doubleTap "),s={}):r=setTimeout(function(){r=null,s.el&&s.el.trigger("singleTap "),s={}},250)}else s={};d=h=0}).on("touchcancel ",function(){o(),d=h=0})}),["swipe ","swipeLeft ","swipeRight ","swipeUp ","swipeDown ","doubleTap ","tap ","singleTap ","longTap "].forEach(function(e){t.fn[e]=function(t){return this.on(e,t)}})}(i),n.exports=i});define("@ali/lzdmod-dynamic/request ",["@ali/lzdmod-dynamic/io ","@ali/mui-zepto/touch ","@ali/lzdmod-dynamic/ald-bottom ","@ali/mui-fetch/tool "],function(a,e,t){"use strict ";function n(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function ")}var i=function(){function a(a,e){for(var t=0;t0&&arguments[0]!==undefined?arguments[0]:{},e=a.__data_url,t=a.__dynamic_param||{},n=t.appId||a.__data_param&&a.__data_param.appId,i=this.cfg.params&&this.cfg.params.backupParams;if(this.cfg&&t.resourceCode&&this.cfg.backupParams&&(this.cfg.backupParams.resourceCode=t.resourceCode,i&&(this.cfg.params.backupParams=this.cfg.params.backupParams+",resourceCode ")),n)switch(this.checkBottomConfigVersion(a.__data_default)){case"v3 ":this.isV3Config||(this.isV3Config=!0);break;case"v2 ":this.backUpDataList[n]={"url ":a.__data_default.url,"length ":a.__data_default.length};break;case"v1 ":default:this.backUpDataList[n]=a.__data_default}this.requestStack[e]?(this.requestStack[e].dataParam=this._mergeParams(this.requestStack[e].dataParam,a.__data_param),this.requestStack[e].dataBackupParam=this._mergeParams(this.requestStack[e].dataBackupParam,a.__data_backup_param||{})):this.requestStack[e]={"dataParam ":Object.assign({},a.__data_param,t),"dataType ":this._getDataType(a.__data_type)},this.cfg.duplication||(this.requestStack[e].dataParam._pvuuid=m)}},{"key ":"checkBottomConfigVersion ","value ":function(a){return f(a)&&a.url&&h(a.url)?"v2 ":f(a)&&!a.url&&a.length?"v3 ":"v1 "}},{"key ":"_mergeParams ","value ":function(a,e){for(var t in a)a[t]&&e[t]&&a[t].indexOf(e[t])<0&&(a[t]+=", "+e[t]);return Object.assign(e,a)}},{"key ":"_getDataType ","value ":function(a){var e=void 0;switch(a){case"json ":e="json ";break;case"jsonp ":default:e="jsonp "}return e}},{"key ":"_mergeData ","value ":function(a,e){var t=this,n="string "==typeof a?y(a.split(", ")):[a],i=n.map(function(a){var n=e&&e[a],i=s.unparam(location.search.slice(1)),o={"goldKeyPrefix ":r.isPlainObject(n)&&n.goldKeyPrefix,"goldKeySuffix ":r.isPlainObject(n)&&n.goldKeySuffix,"algorithmLog ":r.isPlainObject(n)&&n.algorithmLog};o.algorithmLog&&(o.algorithmLog+="&spm="+i.spm);var c=!0===t.cfg.isChannel?n:n&&n.data;return t._connectTagData(a,c,t.backUpDataList[a],e&&e[a]&&e[a].exposureParam,e&&e[a]&&e[a].success,o)});return new Promise(function(a,e){Promise.all(i).then(function(e){n.forEach(function(a,n){t.resultDataList[a]=e[n]}),a(t.resultDataList)})[" catch "](function(a){console.log(a),e(a)})})}},{"key ":"_connectTagData ","value ":function(a,e,t,n,i,o){var c=this,s=this;return new Promise(function(n){var u=window.Dynamic_NotEmptyData&&!1===s.cfg.isChannel&&e&&e.length<1;" "+i=="true "||c.cfg.closeBackup?(!e||"number "==typeof e.length&&0===e.length||e&&e.data&&"number "==typeof e.data.length&&0===e.data.length)&&console.warn&&console.warn("[WARNING] reason: return SUCCESS type is true\uff0cbut datas is empty; request interface: "+s.cfg.api+"; appId: "+a):(e&&console.warn&&console.warn("[InterfaceError] reason:return SUCCESS type is false; request interface: "+s.cfg.api+"; appId: "+a),u=!0),s.cfg.closeAllBackup&&(u=!1),e&&!u?(o.goldKeyPrefix&&o.goldKeySuffix&&o.algorithmLog&&(e._ZDexposureObj=o,s.cfg.isChannel||s.cfg.closeExposure||window.goldlog&&window.goldlog.record&&r.isFunction(window.goldlog.record)&&window.goldlog.record(o.goldKeyPrefix,"EXP ",o.algorithmLog,o.goldKeySuffix)),n(e)):s._dataBack(t,a).then(n)})}},{"key ":"_isCDNBack ","value ":function(a){return f(a)&&a.url&&a.length}},{"key ":"_dataBack ","value ":function(a,e){var t=this,n=this,i=Date.now(),r=void 0,s=void 0,u=e+", bottom data ";if(this.isV3Config||this.cfg.forceBackupHasParam){var l={"appId ":e,"timeout ":this.cfg.timeout||4e3,"backupParams ":this.cfg.backupParams};return c.getBottom(l).then(function(a){return c.mergeData([e],a,!0,t.cfg.isChannel)}).then(function(a){return a&&a[e]&&(a[e].isBackupData=!0),r=Date.now()-i,s="Successfully ",window._blReport&&window._blReport("api ",[u,!0,r,200,s]),Promise.resolve(a[e])})["catch "](function(a){return r=Date.now()-i,s="[GetBackupDataError] reason: "+(a&&a.message)+"; request interface: "+c.createBottomUrl(l)+"; appId: "+e,console.warn&&console.warn(s),window._blReport&&window._blReport("api ",[u,!0,r,200,s]),Promise.resolve([])})}if(this._isCDNBack(a)){var d={"url ":a.url,"dataType ":"jsonp ","params ":{},"timeout ":this.cfg.timeout||4e3,"callback ":"callback_ "+e.replace(/-/g,"_ ")};return o("http ",d).then(function(a){var e=void 0;return r=Date.now()-i,e=n.cfg.isChannel?a:a.data,window._blReport&&window._blReport("api ",[u,!0,r,200,"Successfully "]),Promise.resolve(e)})["catch "](function(a){r=Date.now()-i,s="[GetBackupDataError] reason: "+(a&&a.message)+"; request interface: "+d.url+"; appId: "+e,console.warn&&console.warn(s),window._blReport&&window._blReport("api ",[d.url,!0,r,200,s]),console.warn&&console.warn(),Promise.resolve([])})}return Promise.resolve(a)}},{"key ":"reset ","value ":function(){this.isV3Config=!1,this.requestStack={},this.backUpDataList={},this.resultDataList={}}},{"key ":"run ","value ":function(){var a=this,e=this.requestStack,t=Object.assign({},a.cfg);return new Promise(function(n,i){r.each(e,function(e,c){delete c.dataParam.terminalType;var s=Object.assign(t.params,c.dataParam),u=s.appId,l=function(e){delete a.requestStack[e],r.isEmptyObject(a.requestStack)&&(n(a.resultDataList),a.reset())},d={"url ":e,"dataType ":c.dataType,"params ":s,"api ":t.mtopApiName,"timeout ":t.timeout,"isMtop ":t.mtop?"mtop ":"http "};o(t.mtop?"mtop ":"http ",d).then(function(t){a._mergeData(u,t).then(function(){l(e)})["catch "](function(){l(e)})})["catch "](function(n){if(console.warn&&console.warn("[InterfaceError] reason: "+(n&&n.message)+"; request interface: "+(t.mtop?d.api:d.url)+"; appId: "+d.params.appId),t.closeBackup||t.closeAllBackup)return void i(n);a._mergeData(u,undefined,!0).then(function(){l(e)})["catch "](function(a){console.warn&&console.warn("[mergeDataError] reason: "+(a&&a.message)+"; request interface: "+(t.mtop?d.api:d.url)+"; appId: "+d.params.appId),l(e)})})})})}}]),a}();t.exports=w});define("@ali/lzdmod-dynamic/io ",["@ali/lzdmod-lib-mtop/index ","@ali/mui-zepto/zepto ","@ali/lzdmod-common-info/index "],function(a,e,t){"use strict ";var n="function "==typeof Symbol&&"symbol "==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function "==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol ":typeof a};a("@ali/lzdmod-lib-mtop/index ");var o=a("@ali/mui-zepto/zepto "),i=a("@ali/lzdmod-common-info/index "),r={"api ":"mtop.lazada.pegasus.service.AldRecommendService.recommend2 ","appKey ":"24677475 ","v ":"1.0 ","ecode ":0,"timeout ":4e3};window.$icms=window.$icms||{},window.g_config=window.g_config||{},window.$icms.dynamic=window.$icms.dynamic||{},window.__mtopNetwork__=window.__mtopNetwork__||[];var c=window.$icms.dynamic.language||window.g_config.language,s=window.$icms.dynamic.regionID||window.g_config.regionID;c&&(r["x-i18n-language "]=c),c&&(r["x-i18n-regionID "]=s),r.dataType=window.$icms.dynamic.fixedDataType?window.$icms.dynamic.fixedDataType:"json ";var u=/127\.0\.0\.1|localhost|daily|waptest|\.test/,l="object "===("undefined "==typeof location?"undefined ":n(location))&&location.hostname||" ";(u.test(l)||location.search.indexOf("wh_debug=true ")>=0)&&(r.appKey="4272 ");var p=i.getMtopDomain(s);p&&window.lib&&window.lib.mtop&&(window.lib.mtop.config.prefix=p.prefix,window.lib.mtop.config.subDomain=p.subDomain,window.lib.mtop.config.mainDomain=p.mainDomain),t.exports=function(a,t){switch(a){case"mtop ":return e.mtop(t);case"http ":default:return e.http(t)}},e.requirePromise=function(e){return new Promise(function(t,n){a([e],function(a){t(a)},function(a){n(a)})})},e.http=function(a){o.isPlainObject(window.$icms.forceDynamicParams)&&(a.params=Object.assign({},a.params,window.$icms.forceDynamicParams));var t={"url ":a.url,"method ":a.dataType,"body ":Object.keys(a.params).map(function(e){return e+"="+a.params[e]}).join(" & "),"timeout ":a.timeout};return a.callback&&(t.callback=a.callback),e.requirePromise("@ali/mui-fetch/jsonp ").then(function(a){return a(t.url,t).then(function(a){return a.json()})})},e.mtop=function(a){var e=Object.assign({},r,{"data ":a.params||{},"timeout ":a.timeout||3e3,"api ":a.api||r.api}),t=Object.assign({},e);o.isPlainObject(window.$icms.forceDynamicParams)&&(e.data=Object.assign({},e.data,window.$icms.forceDynamicParams)),e.data&&!e.data.terminalType&&(e.data.terminalType="msite "===window.g_config.terminalType?2:1),e.data&&!e.data.campBasicId&&(e.data.campBasicId=window.g_config.pageConfig&&window.g_config.pageConfig.campaignId);var n=Date.now(),i=void 0,c=void 0,s=" "+t.data.appId;return window.lib.mtop.request(e).then(function(a){if(a&&o.isArray(a.ret)&&a.ret.length>0&&a.retJson===window.lib.mtop.RESPONSE_TYPE.ERROR||location.search.indexOf("wh_forceMtopError ")>0)throw i=Date.now()-n,c="[InterfaceError] reason: "+a.ret[0]+"; request interface: "+t.api+"; appId: "+t.data.appId,window._blReport&&window._blReport("api ",[s,!1,i,"ERROR ",c]),window.__mtopNetwork__.push({"id ":s+"- "+n,"url ":e.api+"?appId="+s," getData ":e,"response ":a,"method ":"GET ","status ":500,"startTime ":n,"costTime ":i}),console.warn&&console.warn(c),new Error("Request interface failed ");i=Date.now()-n,c="Successfully ";var r=a&&a.data&&a.data.resultValue;return window._blReport&&window._blReport("api ",[s,!0,i,200,c]),window.__mtopNetwork__.push({"id ":s+"- "+n,"url ":e.api+"?appId="+s," getData ":e,"response ":r,"method ":"GET ","status ":200,"startTime ":n,"costTime ":i}),r})["catch "](function(a){throw i=Date.now()-n,c="[InterfaceError] reason: "+a.ret[0]+"; request interface: "+t.api+"; appId: "+t.data.appId,window._blReport&&window._blReport("api ",[s,!1,i,"ERROR ",c]),console.warn&&console.warn(c),window.__mtopNetwork__.push({"id ":s+"- "+n,"url ":e.api+"?appId="+s," getData ":e,"response ":a,"method ":"GET ","status ":500,"startTime ":n,"costTime ":i}),a&&o.isArray(a.ret)&&a.ret.length>0&&a.retJson===window.lib.mtop.RESPONSE_TYPE.ERROR?new Error(a.ret[0]||"Request interface failed "):a})}});!function(r){function e(r,e,i){e instanceof Function&&(i=e,e=[]),o[r]={factory:i,deps:e,module:{exports:{}},isInitialized:!1,hasError:!1}}function i(r){if(0===r.indexOf("@weex-module "))return{};var e=r;r=r.replace("@ali ","kg ");var i=o[r];return i||(r+="/index ",i=o[r]),i&&i.isInitialized?i.module.exports:t(r,e)}function t(e,a){if(r.ErrorUtils&&!n){n=!0;var u;try{u=t.apply(this,arguments)}catch(d){r.ErrorUtils.reportFatalError(d)}return n=!1,u}var l=o[e];if(!l)throw Error('Requiring unknown module " '+a+' "');if(l.hasError)throw Error('Requiring module " '+a+' " which threw an exception');try{l.isInitialized=!0,l.factory(i,l.module.exports,l.module)}catch(d){throw l.hasError=!0,l.isInitialized=!1,d}return l.module.exports}if("undefined "==typeof define){var o={},n=!1;r.define=e,r.require=i,r.__d=e,r.__r=i}}(this); !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function "==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"' ");throw j.code="MODULE_NOT_FOUND ",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function "==typeof require&&require,g=0;g0)){var d=c.shift();d()}},!0),function(a){c.push(a),window.postMessage("process-tick ","* ")}}return function(a){setTimeout(a,0)}}(),d.title="browser ",d.browser=!0,d.env={},d.argv=[],d.on=c,d.addListener=c,d.once=c,d.off=c,d.removeListener=c,d.removeAllListeners=c,d.emit=c,d.binding=function(){throw new Error("process.binding is not supported ")},d.cwd=function(){return"/ "},d.chdir=function(){throw new Error("process.chdir is not supported ")}},{}],2:[function(a,b){"use strict ";function c(a){function b(a){return null===i?void k.push(a):void f(function(){var b=i?a.onFulfilled:a.onRejected;if(null===b)return void(i?a.resolve:a.reject)(j);var c;try{c=b(j)}catch(d){return void a.reject(d)}a.resolve(c)})}function c(a){try{if(a===l)throw new TypeError("A promise cannot be resolved with itself. ");if(a&&("object "==typeof a||"function "==typeof a)){var b=a.then;if("function "==typeof b)return void e(b.bind(a),c,g)}i=!0,j=a,h()}catch(d){g(d)}}function g(a){i=!1,j=a,h()}function h(){for(var a=0,c=k.length;c>a;a++)b(k[a]);k=null}if("object "!=typeof this)throw new TypeError("Promises must be constructed via new ");if("function "!=typeof a)throw new TypeError("not a function ");var i=null,j=null,k=[],l=this;this.then=function(a,c){return new l.constructor(function(e,f){b(new d(a,c,e,f))})},e(a,c,g)}function d(a,b,c,d){this.onFulfilled="function "==typeof a?a:null,this.onRejected="function "==typeof b?b:null,this.resolve=c,this.reject=d}function e(a,b,c){var d=!1;try{a(function(a){d||(d=!0,b(a))},function(a){d||(d=!0,c(a))})}catch(e){if(d)return;d=!0,c(e)}}var f=a("asap ");b.exports=c},{asap:4}],3:[function(a,b){"use strict ";function c(a){this.then=function(b){return"function "!=typeof b?this:new d(function(c,d){e(function(){try{c(b(a))}catch(e){d(e)}})})}}var d=a("./core.js "),e=a("asap ");b.exports=d,c.prototype=d.prototype;var f=new c(!0),g=new c(!1),h=new c(null),i=new c(void 0),j=new c(0),k=new c(" ");d.resolve=function(a){if(a instanceof d)return a;if(null===a)return h;if(void 0===a)return i;if(a===!0)return f;if(a===!1)return g;if(0===a)return j;if(" "===a)return k;if("object "==typeof a||"function "==typeof a)try{var b=a.then;if("function "==typeof b)return new d(b.bind(a))}catch(e){return new d(function(a,b){b(e)})}return new c(a)},d.all=function(a){var b=Array.prototype.slice.call(a);return new d(function(a,c){function d(f,g){try{if(g&&("object "==typeof g||"function "==typeof g)){var h=g.then;if("function "==typeof h)return void h.call(g,function(a){d(f,a)},c)}b[f]=g,0===--e&&a(b)}catch(i){c(i)}}if(0===b.length)return a([]);for(var e=b.length,f=0;f-1&&".com "!==a.substring(a.lastIndexOf(". "))?(a.split(". ")||[]).length<=3?a:a.split(". ").slice(1).join(". "):a.substring(a.lastIndexOf(". ",a.lastIndexOf(". ")-1)+1)}catch(b){return a.substring(a.lastIndexOf(". ",a.lastIndexOf(". ")-1)+1)}}function h(a){function b(a,b){return a<>>32-b}function c(a,b){var c,d,e,f,g;return e=2147483648&a,f=2147483648&b,c=1073741824&a,d=1073741824&b,g=(1073741823&a)+(1073741823&b),c&d?2147483648^g^e^f:c|d?1073741824&g?3221225472^g^e^f:1073741824^g^e^f:g^e^f}function d(a,b,c){return a&b|~a&c}function e(a,b,c){return a&c|b&~c}function f(a,b,c){return a^b^c}function g(a,b,c){return b^(a|~c)}function h(a,e,f,g,h,i,j){return a=c(a,c(c(d(e,f,g),h),j)),c(b(a,i),e)}function i(a,d,f,g,h,i,j){return a=c(a,c(c(e(d,f,g),h),j)),c(b(a,i),d)}function j(a,d,e,g,h,i,j){return a=c(a,c(c(f(d,e,g),h),j)),c(b(a,i),d)}function k(a,d,e,f,h,i,j){return a=c(a,c(c(g(d,e,f),h),j)),c(b(a,i),d)}function l(a){for(var b,c=a.length,d=c+8,e=(d-d%64)/64,f=16*(e+1),g=new Array(f-1),h=0,i=0;c>i;)b=(i-i%4)/4,h=i%4*8,g[b]=g[b]|a.charCodeAt(i)<>>29,g}function m(a){var b,c,d=" ",e=" ";for(c=0;3>=c;c++)b=a>>>8*c&255,e="0 "+b.toString(16),d+=e.substr(e.length-2,2);return d}function n(a){a=a.replace(/\r\n/g,"\n ");for(var b=" ",c=0;cd?b+=String.fromCharCode(d):d>127&&2048>d?(b+=String.fromCharCode(d>>6|192),b+=String.fromCharCode(63&d|128)):(b+=String.fromCharCode(d>>12|224),b+=String.fromCharCode(d>>6&63|128),b+=String.fromCharCode(63&d|128))}return b}var o,p,q,r,s,t,u,v,w,x=[],y=7,z=12,A=17,B=22,C=5,D=9,E=14,F=20,G=4,H=11,I=16,J=23,K=6,L=10,M=15,N=21;for(a=n(a),x=l(a),t=1732584193,u=4023233417,v=2562383102,w=271733878,o=0;o=10.1;u&&10.1===parseFloat(r.AliAppVersion)&&parseInt(r.AliAppVersion.substr(5))<2&&(u=!1);var v=0,w="2.4.11 ";o.prototype.use=function(a){if(!a)throw new Error("middleware is undefined ");return this.middlewares.push(a),this},o.prototype.__processRequestMethod=function(a){var b=this.params,c=this.options;"get "===b.type&&"jsonp "===b.dataType?c.getJSONP=!0:"get "===b.type&&"originaljsonp "===b.dataType?c.getOriginalJSONP=!0:"get "===b.type&&"json "===b.dataType?c.getJSON=!0:"post "===b.type&&(c.postJSON=!0),a()},o.prototype.__processRequestType=function(c){var d=this,e=this.params,f=this.options;if(r.H5Request===!0&&(f.H5Request=!0),r.WindVaneRequest===!0&&(f.WindVaneRequest=!0),f.H5Request===!1&&f.WindVaneRequest===!0){if(!u&&(!b.windvane||parseFloat(f.WindVaneVersion)<5.4))throw new Error("WINDVANE_NOT_FOUND::缺少WindVane环境 ");if(u&&!a.AlipayJSBridge)throw new Error("ALIPAY_NOT_READY::支付宝通道未准备好,支付宝请见 https://lark.alipay.com/mtbsdkdocs/mtopjssdkdocs/pucq6z ")}else if(f.H5Request===!0)f.WindVaneRequest=!1;else if("undefined "==typeof f.WindVaneRequest&&"undefined "==typeof f.H5Request&&(b.windvane&&parseFloat(f.WindVaneVersion)>=5.4?f.WindVaneRequest=!0:f.H5Request=!0,u))if(f.WindVaneRequest=f.H5Request=void 0,a.AlipayJSBridge)if(i(e.data))f.WindVaneRequest=!0;else try{i(JSON.parse(e.data))?f.WindVaneRequest=!0:f.H5Request=!0}catch(g){f.H5Request=!0}else f.H5Request=!0;var h=a.navigator.userAgent.toLowerCase();return h.indexOf("youku ")>-1&&f.mainDomain.indexOf("youku.com ")<0&&(f.WindVaneRequest=!1,f.H5Request=!0),f.mainDomain.indexOf("youku.com ")>-1&&h.indexOf("youku ")<0&&(f.WindVaneRequest=!1,f.H5Request=!0),c?c().then(function(){var a=f.retJson.ret;if(a instanceof Array&&(a=a.join(", ")),f.WindVaneRequest===!0&&u&&f.retJson.error||!a||a.indexOf("PARAM_PARSE_ERROR ")>-1||a.indexOf("HY_FAILED ")>-1||a.indexOf("HY_NO_HANDLER ")>-1||a.indexOf("HY_CLOSED ")>-1||a.indexOf("HY_EXCEPTION ")>-1||a.indexOf("HY_NO_PERMISSION ")>-1){if(!u||!isNaN(f.retJson.error)||-1!==f.retJson.error.indexOf("FAIL_SYS_ACCESS_DENIED "))return u&&i(e.data)&&(e.data=JSON.stringify(e.data)),r.H5Request=!0,d.__sequence([d.__processRequestType,d.__processToken,d.__processRequestUrl,d.middlewares,d.__processRequest]);"undefined "==typeof f.retJson.api&&"undefined "==typeof f.retJson.v&&(f.retJson.api=e.api,f.retJson.v=e.v,f.retJson.ret=[f.retJson.error+":: "+f.retJson.errorMessage],f.retJson.data={})}}):void 0};var x="_m_h5_c ",y="_m_h5_tk ",z="_m_h5_tk_enc ";o.prototype.__getTokenFromAlipay=function(){var b=c(),d=this.options,e=(a.navigator.userAgent,!!location.protocol.match(/^https?\:$/));return d.useAlipayJSBridge===!0&&!e&&u&&a.AlipayJSBridge&&a.AlipayJSBridge.call?a.AlipayJSBridge.call("getMtopToken ",function(a){a&&a.token&&(d.token=a.token),b.resolve()},function(){b.resolve()}):b.resolve(),b.promise},o.prototype.__getTokenFromCookie=function(){var a=this.options;return a.CDR&&k(x)?a.token=k(x).split("; ")[0]:a.token=a.token||k(y),a.token&&(a.token=a.token.split("_ ")[0]),p.resolve()},o.prototype.__waitWKWebViewCookie=function(b){var c=this.options;c.waitWKWebViewCookieFn&&c.H5Request&&a.webkit&&a.webkit.messageHandlers?c.waitWKWebViewCookieFn(b):b()},o.prototype.__processToken=function(a){var b=this,c=this.options;this.params;return c.token&&delete c.token,c.WindVaneRequest!==!0?q.then(function(){return b.__getTokenFromAlipay()}).then(function(){return b.__getTokenFromCookie()}).then(a).then(function(){var a=c.retJson,d=a.ret;if(d instanceof Array&&(d=d.join(", ")),d.indexOf("TOKEN_EMPTY ")>-1||c.CDR===!0&&d.indexOf("ILLEGAL_ACCESS ")>-1||d.indexOf("TOKEN_EXOIRED ")>-1){if(c.maxRetryTimes=c.maxRetryTimes||5,c.failTimes=c.failTimes||0,c.H5Request&&++c.failTimes0&&(l(x,c.pageDomain,"* "),l(y,c.mainDomain,c.subDomain),l(z,c.mainDomain,c.subDomain)),a.retType=t.TOKEN_EXPIRED}}):void a()},o.prototype.__processRequestUrl=function(b){var c=this.params,d=this.options;if(d.hostSetting&&d.hostSetting[a.location.hostname]){var e=d.hostSetting[a.location.hostname];e.prefix&&(d.prefix=e.prefix),e.subDomain&&(d.subDomain=e.subDomain),e.mainDomain&&(d.mainDomain=e.mainDomain)}if(d.H5Request===!0){var f="// "+(d.prefix?d.prefix+". ":" ")+(d.subDomain?d.subDomain+". ":" ")+d.mainDomain+"/h5/ "+c.api.toLowerCase()+"/ "+c.v.toLowerCase()+"/ ",g=c.appKey||("waptest "===d.subDomain?"4272 ":"12574478 "),i=(new Date).getTime(),j=h(d.token+"& "+i+"& "+g+"& "+c.data),k={jsv:w,appKey:g,t:i,sign:j},l={data:c.data,ua:c.ua};Object.keys(c).forEach(function(a){"undefined "==typeof k[a]&&"undefined "==typeof l[a]&&"headers "!==a&&"ext_headers "!==a&&"ext_querys "!==a&&(k[a]=c[a])}),c.ext_querys&&Object.keys(c.ext_querys).forEach(function(a){k[a]=c.ext_querys[a]}),d.getJSONP?k.type="jsonp ":d.getOriginalJSONP?k.type="originaljsonp ":(d.getJSON||d.postJSON)&&(k.type="originaljson "),"undefined "!=typeof c.valueType&&("original "===c.valueType?d.getJSONP||d.getOriginalJSONP?k.type="originaljsonp ":(d.getJSON||d.postJSON)&&(k.type="originaljson "):"string "===c.valueType&&(d.getJSONP||d.getOriginalJSONP?k.type="jsonp ":(d.getJSON||d.postJSON)&&(k.type="json "))),d.useJsonpResultType===!0&&"originaljson "===k.type&&delete k.type,d.dangerouslySetProtocol&&(f=d.dangerouslySetProtocol+": "+f),d.querystring=k,d.postdata=l,d.path=f}b()},o.prototype.__processUnitPrefix=function(a){a()};var A=0;o.prototype.__requestJSONP=function(a){function b(a){if(k&&clearTimeout(k),l.parentNode&&l.parentNode.removeChild(l),"TIMEOUT "===a)window[j]=function(){window[j]=void 0;try{delete window[j]}catch(a){}};else{window[j]=void 0;try{delete window[j]}catch(b){}}}var d=c(),g=this.params,h=this.options,i=g.timeout||2e4,j="mtopjsonp "+(g.jsonpIncPrefix||" ")+ ++A,k=setTimeout(function(){a(h.timeoutErrMsg||"TIMEOUT::接口超时 "),b("TIMEOUT ")},i);h.querystring.callback=j;var l=document.createElement("script ");return l.src=h.path+"? "+f(h.querystring)+"& "+f(h.postdata),l.async=!0,l.onerror=function(){b("ABORT "),a(h.abortErrMsg||"ABORT::接口异常退出 ")},window[j]=function(){h.results=Array.prototype.slice.call(arguments),b(),d.resolve()},e(l),d.promise},o.prototype.__requestJSON=function(b){function d(a){l&&clearTimeout(l),"TIMEOUT "===a&&i.abort()}var e=c(),g=this.params,h=this.options,i=new a.XMLHttpRequest,j=g.timeout||2e4,l=setTimeout(function(){b(h.timeoutErrMsg||"TIMEOUT::接口超时 "),d("TIMEOUT ")},j);h.CDR&&k(x)&&(h.querystring.c=decodeURIComponent(k(x))),i.onreadystatechange=function(){if(4==i.readyState){var a,c,f=i.status;if(f>=200&&300>f||304==f){d(),a=i.responseText,c=i.getAllResponseHeaders()||" ";try{a=/^\s*$/.test(a)?{}:JSON.parse(a),a.responseHeaders=c,h.results=[a],e.resolve()}catch(g){b("PARSE_JSON_ERROR::解析JSON失败 ")}}else d("ABORT "),b(h.abortErrMsg||"ABORT::接口异常退出 ")}};var m,n,o=h.path+"? "+f(h.querystring);h.getJSON?(m="GET ",o+="& "+f(h.postdata)):h.postJSON&&(m="POST ",n=f(h.postdata)),i.open(m,o,!0),i.withCredentials=!0,i.setRequestHeader("Accept ","application/json "),i.setRequestHeader("Content-type ","application/x-www-form-urlencoded ");var p=g.ext_headers||g.headers;if(p)for(var q in p)i.setRequestHeader(q,p[q]);return i.send(n),e.promise},o.prototype.__requestWindVane=function(a){function d(a){g.results=[a],e.resolve()}var e=c(),f=this.params,g=this.options,h=f.data,i=f.api,j=f.v,k=g.postJSON?1:0,l=g.getJSON||g.postJSON||g.getOriginalJSONP?"originaljson ":" ";"undefined "!=typeof f.valueType&&("original "===f.valueType?l="originaljson ":"string "===f.valueType&&(l=" ")),g.useJsonpResultType===!0&&(l=" ");var m,n,o="https "===location.protocol?1:0,p=f.isSec||0,q=f.sessionOption||"AutoLoginOnly ",r=f.ecode||0,s=f.ext_headers||{},t=f.ext_querys||{};s.referer=location.href,n="undefined "!=typeof f.timer?parseInt(f.timer):"undefined "!=typeof f.timeout?parseInt(f.timeout):2e4,m=2*n,f.needLogin===!0&&"undefined "==typeof f.sessionOption&&(q="AutoLoginAndManualLogin "),"undefined "!=typeof f.secType&&"undefined "==typeof f.isSec&&(p=f.secType);var u={api:i,v:j,post:String(k),type:l,isHttps:String(o),ecode:String(r),isSec:String(p),param:JSON.parse(h),timer:n,sessionOption:q,ext_headers:s,ext_querys:t};return f.ttid&&g.dangerouslySetWVTtid===!0&&(u.ttid=f.ttid),Object.assign&&f.dangerouslySetWindvaneParams&&Object.assign(u,f.dangerouslySetWindvaneParams),b.windvane.call("MtopWVPlugin ","send ",u,d,d,m),e.promise},o.prototype.__requestAlipay=function(b){function d(a){g.results=[a],e.resolve()}var e=c(),f=this.params,g=this.options,h={apiName:f.api,apiVersion:f.v,needEcodeSign:"1 "===String(f.ecode),usePost:!!g.postJSON};return i(f.data)||(f.data=JSON.parse(f.data)),h.data=f.data,f.ttid&&g.dangerouslySetWVTtid===!0&&(h.ttid=f.ttid),(g.getJSON||g.postJSON||g.getOriginalJSONP)&&(h.type="originaljson "),"undefined "!=typeof f.valueType&&("original "===f.valueType?h.type="originaljson ":"string "===f.valueType&&delete h.type),g.useJsonpResultType===!0&&delete h.type,Object.assign&&f.dangerouslySetAlipayParams&&Object.assign(h,f.dangerouslySetAlipayParams),a.AlipayJSBridge.call("mtop ",h,d),e.promise},o.prototype.__processRequest=function(a,b){var c=this;return q.then(function(){var a=c.options;if(a.H5Request&&(a.getJSONP||a.getOriginalJSONP))return c.__requestJSONP(b);if(a.H5Request&&(a.getJSON||a.postJSON))return c.__requestJSON(b);if(a.WindVaneRequest)return u?c.__requestAlipay(b):c.__requestWindVane(b);throw new Error("UNEXCEPT_REQUEST::错误的请求类型 ")}).then(a).then(function(){var a=c.options,b=(c.params,a.results[0]),d=b&&b.ret||[];b.ret=d,d instanceof Array&&(d=d.join(", "));var e=b.c;a.CDR&&e&&j(x,e,{domain:a.pageDomain,path:"/ "}),d.indexOf("SUCCESS ")>-1?b.retType=t.SUCCESS:b.retType=t.ERROR,a.retJson=b})},o.prototype.__sequence=function(a){function b(a){if(a instanceof Array)a.forEach(b);else{var g,h=c(),i=c();e.push(function(){return h=c(),g=a.call(d,function(a){return h.resolve(a),i.promise},function(a){return h.reject(a),i.promise}),g&&(g=g["catch "](function(a){h.reject(a)})),h.promise}),f.push(function(a){return i.resolve(a),g})}}var d=this,e=[],f=[];a.forEach(b);for(var g,h=q;g=e.shift();)h=h.then(g);for(;g=f.pop();)h=h.then(g);return h};var B=function(a){a()},C=function(a){a()};o.prototype.request=function(c){var e=this;if(this.options=d(c||{},r),!p){var f="当前浏览器不支持Promise,请在windows对象上挂载Promise对象可参考(http://gitlab.alibaba-inc.com/mtb/lib-es6polyfill/tree/master)中的解决方案 ";throw b.mtop={ERROR:f},new Error(f)}var h=p.resolve([B,C]).then(function(a){var b=a[0],c=a[1];return e.__sequence([b,e.__processRequestMethod,e.__processRequestType,e.__processToken,e.__processRequestUrl,e.middlewares,e.__processRequest,c])}).then(function(){var a=e.options.retJson;return a.retType!==t.SUCCESS?p.reject(a):e.options.successCallback?void e.options.successCallback(a):p.resolve(a)})["catch "](function(a){var b;return a instanceof Error?(console.error(a.stack),b={ret:[a.message],stack:[a.stack],retJson:t.ERROR}):b="string "==typeof a?{ret:[a],retJson:t.ERROR}:void 0!==a?a:e.options.retJson,e.options.failureCallback?void e.options.failureCallback(b):p.reject(b)});return this.__processRequestType(),e.options.H5Request&&(e.constructor.__firstProcessor||(e.constructor.__firstProcessor=h),B=function(a){e.constructor.__firstProcessor.then(a)["catch "](a)}),("get "===this.params.type&&"json "===this.params.dataType||"post "===this.params.type)&&(c.pageDomain=c.pageDomain||g(a.location.hostname),c.mainDomain!==c.pageDomain&&(c.maxRetryTimes=4,c.CDR=!0)),h},b.mtop=function(a){return new o(a)},b.mtop.request=function(a,b,c){var d={H5Request:a.H5Request,WindVaneRequest:a.WindVaneRequest,LoginRequest:a.LoginRequest,AntiCreep:a.AntiCreep,AntiFlood:a.AntiFlood,successCallback:b,failureCallback:c||b};return new o(a).request(d)},b.mtop.H5Request=function(a,b,c){var d={H5Request:!0,successCallback:b,failureCallback:c||b};return new o(a).request(d)},b.mtop.middlewares=s,b.mtop.config=r,b.mtop.RESPONSE_TYPE=t,b.mtop.CLASS=o}(window,window.lib||(window.lib={})),function(a,b){function c(a){return a.preventDefault(),!1}function d(a){var b=new RegExp("(?:^|;\\s*) "+a+"\\=([^;]+)(?:;\\s*|$) ").exec(document.cookie);return b?b[1]:void 0}function e(b,d){var e=this,f=a.dpr||1,g=document.createElement("div "),h=document.documentElement.getBoundingClientRect(),i=Math.max(h.width,window.innerWidth)/f,j=Math.max(h.height,window.innerHeight)/f;g.style.cssText=["-webkit-transform:scale( "+f+") translateZ(0) ","-ms-transform:scale( "+f+") translateZ(0) ","transform:scale( "+f+") translateZ(0) ","-webkit-transform-origin:0 0 ","-ms-transform-origin:0 0 ","transform-origin:0 0 ","width: "+i+"px ","height: "+j+"px ","z-index:999999 ","position: "+(i>800?"fixed ":"absolute "),"left:0 ","top:0px ","background: "+(i>800?"rgba(0,0,0,.5) ":"#FFF "),"display:none "].join("; ");var k=document.createElement("div ");k.style.cssText=["width:100% ","height:52px ","background:#EEE ","line-height:52px ","text-align:left ","box-sizing:border-box ","padding-left:20px ","position:absolute ","left:0 ","top:0 ","font-size:16px ","font-weight:bold ","color:#333 "].join("; "),k.innerText=b;var l=document.createElement("a ");l.style.cssText=["display:block ","position:absolute ","right:0 ","top:0 ","height:52px ","line-height:52px ","padding:0 20px ","color:#999 "].join("; "),l.innerText="关闭 ";var m=document.createElement("iframe ");m.style.cssText=["width:100% ","height:100% ","border:0 ","overflow:hidden "].join("; "),i>800&&(k.style.cssText=["width:370px ","height:52px ","background:#EEE ","line-height:52px ","text-align:left ","box-sizing:border-box ","padding-left:20px ","position:absolute ","left: "+(i/2-185)+"px ","top:40px ","font-size:16px ","font-weight:bold ","color:#333 "].join("; "),m.style.cssText=["position:absolute ","top:92px ","left: "+(i/2-185)+"px ","width:370px ","height:480px ","border:0 ","background:#FFF ","overflow:hidden "].join("; ")),k.appendChild(l),g.appendChild(k),g.appendChild(m),g.className="J_MIDDLEWARE_FRAME_WIDGET ",document.body.appendChild(g),m.src=d,l.addEventListener("click ",function(){e.hide();var a=document.createEvent("HTMLEvents ");a.initEvent("close ",!1,!1),g.dispatchEvent(a)},!1),this.addEventListener=function(){g.addEventListener.apply(g,arguments)},this.removeEventListener=function(){g.removeEventListener.apply(g,arguments)},this.show=function(){document.addEventListener("touchmove ",c,!1),g.style.display="block ",window.scrollTo(0,0)},this.hide=function(){document.removeEventListener("touchmove ",c),window.scrollTo(0,-h.top),g.parentNode&&g.parentNode.removeChild(g)}}function f(a){var c=this,d=this.options,e=this.params;return a().then(function(){var a=d.retJson,f=a.ret,g=navigator.userAgent.toLowerCase(),h=g.indexOf("safari ")>-1&&g.indexOf("chrome ")<0&&g.indexOf("qqbrowser ")<0;if(f instanceof Array&&(f=f.join(", ")),(f.indexOf("SESSION_EXPIRED ")>-1||f.indexOf("SID_INVALID ")>-1||f.indexOf("AUTH_REJECT ")>-1||f.indexOf("NEED_LOGIN ")>-1)&&(a.retType=l.SESSION_EXPIRED,!d.WindVaneRequest&&(k.LoginRequest===!0||d.LoginRequest===!0||e.needLogin===!0))){if(!b.login)throw new Error("LOGIN_NOT_FOUND::缺少lib.login ");if(d.safariGoLogin!==!0||!h||"taobao.com "===d.pageDomain)return b.login.goLoginAsync().then(function(a){return c.__sequence([c.__processToken,c.__processRequestUrl,c.__processUnitPrefix,c.middlewares,c.__processRequest])})["catch "](function(a){throw"CANCEL "===a?new Error("LOGIN_CANCEL::用户取消登录 "):new Error("LOGIN_FAILURE::用户登录失败 ")});b.login.goLogin()}})}function g(a){var b=this.options;this.params;return b.H5Request!==!0||k.AntiFlood!==!0&&b.AntiFlood!==!0?void a():a().then(function(){var a=b.retJson,c=a.ret;c instanceof Array&&(c=c.join(", ")),c.indexOf("FAIL_SYS_USER_VALIDATE ")>-1&&a.data.url&&(b.AntiFloodReferer?location.href=a.data.url.replace(/(http_referer=).+/,"$1 "+b.AntiFloodReferer):location.href=a.data.url)})}function h(b){var c=this,f=this.options,g=this.params;return g.forceAntiCreep!==!0&&f.H5Request!==!0||k.AntiCreep!==!0&&f.AntiCreep!==!0?void b():b().then(function(){var b=f.retJson,h=b.ret;if(h instanceof Array&&(h=h.join(", ")),h.indexOf("RGV587_ERROR::SM ")>-1&&b.data.url){var j="_m_h5_smt ",k=d(j),l=!1;if(f.saveAntiCreepToken===!0&&k){k=JSON.parse(k);for(var m in k)g[m]&&(l=!0)}if(f.saveAntiCreepToken===!0&&k&&!l){for(var m in k)g[m]=k[m];return c.__sequence([c.__processToken,c.__processRequestUrl,c.__processUnitPrefix,c.middlewares,c.__processRequest])}return new i(function(d,h){function i(){m.removeEventListener("close ",i),a.removeEventListener("message ",k),h("USER_INPUT_CANCEL::用户取消输入 ")}function k(b){var e;try{e=JSON.parse(b.data)||{}}catch(l){}if(e&&"child "===e.type){m.removeEventListener("close ",i),a.removeEventListener("message ",k),m.hide();var n;try{n=JSON.parse(decodeURIComponent(e.content)),"string "==typeof n&&(n=JSON.parse(n));for(var o in n)g[o]=n[o];f.saveAntiCreepToken===!0?(document.cookie=j+"="+JSON.stringify(n)+" ; ",a.location.reload()):c.__sequence([c.__processToken,c.__processRequestUrl,c.__processUnitPrefix,c.middlewares,c.__processRequest]).then(d)}catch(l){h("USER_INPUT_FAILURE::用户输入失败 ")}}}var l=b.data.url,m=new e(" ",l);m.addEventListener("close ",i,!1),a.addEventListener("message ",k,!1),m.show()})}})}if(!b||!b.mtop||b.mtop.ERROR)throw new Error("Mtop 初始化失败!请参考Mtop文档http://gitlab.alibaba-inc.com/mtb/lib-mtop ");var i=a.Promise,j=b.mtop.CLASS,k=b.mtop.config,l=b.mtop.RESPONSE_TYPE;b.mtop.middlewares.push(f),b.mtop.loginRequest=function(a,b,c){var d={LoginRequest:!0,H5Request:!0,successCallback:b,failureCallback:c||b};return new j(a).request(d)},b.mtop.antiFloodRequest=function(a,b,c){var d={AntiFlood:!0,successCallback:b,failureCallback:c||b};return new j(a).request(d)},b.mtop.middlewares.push(g),b.mtop.antiCreepRequest=function(a,b,c){var d={AntiCreep:!0,successCallback:b,failureCallback:c||b};return new j(a).request(d)},b.mtop.middlewares.push(h)}(window,window.lib||(window.lib={})); !function(a,b){function c(a){return a.preventDefault(),!1}function d(b,d){var e=this,f=a.dpr||1,h=document.createElement("div "),i=document.documentElement.getBoundingClientRect(),j=Math.max(i.width,window.innerWidth)/f,k=Math.max(i.height,window.innerHeight)/f;h.style.cssText=["-webkit-transform:scale( "+f+") translateZ(0) ","-ms-transform:scale( "+f+") translateZ(0) ","transform:scale( "+f+") translateZ(0) ","-webkit-transform-origin:0 0 ","-ms-transform-origin:0 0 ","transform-origin:0 0 ","width: "+j+"px ","height: "+k+"px ","z-index:999999 ","position:absolute ","left:0 ","top:0px ","background:#FFF ","display:none "].join("; ");var l=document.createElement("div ");l.style.cssText=["width:100% ","height:52px ","background:#EEE ","line-height:52px ","text-align:left ","box-sizing:border-box ","padding-left:20px ","position:absolute ","left:0 ","top:0 ","font-size:16px ","font-weight:bold ","color:#333 "].join("; "),l.innerText=b;var m=document.createElement("a ");m.style.cssText=["display:block ","position:absolute ","right:0 ","top:0 ","height:52px ","line-height:52px ","padding:0 20px ","color:#999 "].join("; "),m.innerText="关闭 ";var n=document.createElement("iframe ");n.style.cssText=["width:100% ","height:100% ","border:0 ","overflow:hidden "].join("; "),l.appendChild(m),h.appendChild(l),h.appendChild(n),g.body.appendChild(h),n.src=d,m.addEventListener("click ",function(){e.hide();var a=g.createEvent("HTMLEvents ");a.initEvent("close ",!1,!1),h.dispatchEvent(a)},!1),this.addEventListener=function(){h.addEventListener.apply(h,arguments)},this.removeEventListener=function(){h.removeEventListener.apply(h,arguments)},this.show=function(){document.addEventListener("touchmove ",c,!1),h.style.display="block ",window.scrollTo(0,0)},this.hide=function(){document.removeEventListener("touchmove ",c),window.scrollTo(0,-i.top),g.body.removeChild(h)}}function e(a,b){this.request=a,this.response=b;var c=0,d={};this.on=function(a,b){d[a]=b},this.next=function(){var b=m[c++];b?a[b.__name__]?b(this):this.next():this.end()},this.reset=function(){c=0,d.reset&&d.reset.call(this)},this.end=function(){d.end&&d.end.call(this)}}function f(a,b){b.__name__=a,m.push(b)}var g=a.document,h=a.navigator.userAgent,i=h.match(/WindVane[\/\s]([\d\.\_]+)/);i&&(i=i[1]);var j,k,l=h.match(/AliApp\(([^\/]+)\/([\d\.\_]+)\)/i);l&&(j=l[1],k=l[2]),b.mtop=b.mtop||{},b.mtop.middleware={};var m=[];b.mtop.middleware.pipe=function(a,b){return new e(a,b)},b.mtop.middleware.add=f,f("LoginRequest ",function(a){function c(){a.reset()}function d(){a.response&&a.response.ret.push("MW_ERROR::LOGIN_FAILURE "),a.end()}function e(){a.response&&a.response.ret.push("MW_ERROR::WIDGET_CANCEL "),a.end()}var f=(a.response&&a.response.ret||[]).join(", ");f.indexOf("SESSION_EXPIRED ")>-1||f.indexOf("SID_INVALID ")>-1||f.indexOf("AUTH_REJECT ")>-1||f.indexOf("NEED_LOGIN ")>-1?b.login.goLogin(function(a){"SUCCESS "===a?c():"CANCEL "===a?e():d()}):a.next()}),f("AntiCreep ",function(b){function c(){h.removeEventListener("close ",c),a.removeEventListener("message ",e),b.response&&b.response.ret.push("MW_ERROR::WIDGET_CANCEL "),b.end()}function e(){h.removeEventListener("close ",c),a.removeEventListener("message ",e);var d=JSON.parse(g.data)||{};if(d&&"child "===d.type){var f;try{f=JSON.parse(decodeURIComponent(d.content)),"string "==typeof f&&(f=JSON.parse(f))}catch(g){f=null}if(f){for(var i in f)b.request[i]=f[i];b.reset()}else b.response&&b.response.ret.push("MW_ERROR::SM_FAILURE "),b.end();h.hide()}else b.end()}var f=(b.response&&b.response.ret||[]).join(", ");if(!l&&f.indexOf("RGV587_ERROR::SM ")>-1&&b.response.data.url){var g=b.response.data.url,h=new d(" ",g);h.addEventListener("close ",c,!1),a.addEventListener("message ",e,!1),h.show()}else b.next()}),f("AntiFlood ",function(a){var b=(a.response&&a.response.ret||[]).join(", ");if(!l&&b.indexOf("FAIL_SYS_USER_VALIDATE ")>-1&&a.response.data.url){var c=a.response.data.url;location.href=c}else a.next()})}(window,window.lib||(window.lib={})); !function(a,b){function c(a,b){a=a.toString().split(". "),b=b.toString().split(". ");for(var c=0;ce)return 1}return 0}var d=a.Promise,e=a.document,f=a.navigator.userAgent,g=/Windows\sPhone\s(?:OS\s)?[\d\.]+/i.test(f)||/Windows\sNT\s[\d\.]+/i.test(f),h=g&&a.WindVane_Win_Private&&a.WindVane_Win_Private.call,i=/iPhone|iPad|iPod/i.test(f),j=/Android/i.test(f),k=f.match(/WindVane[\/\s](\d+[._]\d+[._]\d+)/),l=Object.prototype.hasOwnProperty,m=b.windvane=a.WindVane||(a.WindVane={}),n=(a.WindVane_Native,Math.floor(65536*Math.random())),o=1,p=[],q=3,r="hybrid ",s="wv_hybrid ",t="iframe_ ",u="param_ ",v="chunk_ ",w=6e5,x=6e5,y=6e4;k=k?(k[1]||"0.0.0 ").replace(/\_/g,". "):"0.0.0 ";var z={isAvailable:1===c(k,"0 "),call:function(a,b,c,e,f,g){var h,i;"number "==typeof arguments[arguments.length-1]&&(g=arguments[arguments.length-1]),"function "!=typeof e&&(e=null),"function "!=typeof f&&(f=null),d&&(i={},i.promise=new d(function(a,b){i.resolve=a,i.reject=b})),h=A.getSid();var j={success:e,failure:f,deferred:i};if(g>0&&(j.timeout=setTimeout(function(){z.onFailure(h,{ret:"HY_TIMEOUT "})},g)),A.registerCall(h,j),A.registerGC(h,g),z.isAvailable?A.callMethod(a,b,c,h):z.onFailure(h,{ret:"HY_NOT_IN_WINDVANE "}),i)return i.promise},fireEvent:function(a,b,c){var d=e.createEvent("HTMLEvents ");d.initEvent(a,!1,!0),d.param=A.parseData(b||A.getData(c)),e.dispatchEvent(d)},getParam:function(a){return A.getParam(a)},setData:function(a,b){A.setData(a,b)},onSuccess:function(a,b){A.onComplete(a,b,"success ")},onFailure:function(a,b){A.onComplete(a,b,"failure ")}},A={params:{},chunks:{},calls:{},getSid:function(){return(n+o++)%65536+" "},buildParam:function(a){return a&&"object "==typeof a?JSON.stringify(a):a||" "},getParam:function(a){return this.params[u+a]||" "},setParam:function(a,b){this.params[u+a]=b},parseData:function(a){var b;if(a&&"string "==typeof a)try{b=JSON.parse(a)}catch(a){b={ret:["WV_ERR::PARAM_PARSE_ERROR "]}}else b=a||{};return b},setData:function(){this.chunks[v+sid]=this.chunks[v+sid]||[],this.chunks[v+sid].push(chunk)},getData:function(a){return this.chunks[v+a]?this.chunks[v+a].join(" "):" "},registerCall:function(a,b){this.calls[a]=b},unregisterCall:function(a){var b={};return this.calls[a]&&(b=this.calls[a],delete this.calls[a]),b},useIframe:function(a,b){var c=t+a,d=p.pop();d||(d=e.createElement("iframe "),d.setAttribute("frameborder ","0 "),d.style.cssText="width:0;height:0;border:0;display:none; "),d.setAttribute("id ",c),d.setAttribute("src ",b),d.parentNode||setTimeout(function(){e.body.appendChild(d)},5)},retrieveIframe:function(a){var b=t+a,c=e.querySelector("# "+b);p.length>=q?e.body.removeChild(c):p.indexOf(c)<0&&p.push(c)},callMethod:function(b,c,d,e){if(d=A.buildParam(d),g)h?a.WindVane_Win_Private.call(b,c,e,d):this.onComplete(e,{ret:"HY_NO_HANDLER_ON_WP "},"failure ");else{var f=r+":// "+b+": "+e+"/ "+c+"? "+d;if(i)this.setParam(e,d),this.useIframe(e,f);else if(j){var k=s+": ";window.prompt(f,k)}else this.onComplete(e,{ret:"HY_NOT_SUPPORT_DEVICE "},"failure ")}},registerGC:function(a,b){var c=this,d=Math.max(b||0,w),e=Math.max(b||0,y),f=Math.max(b||0,x);setTimeout(function(){c.unregisterCall(a)},d),i?setTimeout(function(){c.params[u+a]&&delete c.params[u+a]},e):j&&setTimeout(function(){c.chunks[v+a]&&delete c.chunks[v+a]},f)},onComplete:function(a,b,c){var d=this.unregisterCall(a),e=d.success,f=d.failure,g=d.deferred,h=d.timeout;h&&clearTimeout(h),b=b?b:this.getData(a),b=this.parseData(b);var k=b.ret;"string "==typeof k&&(b=b.value||b,b.ret||(b.ret=[k])),"success "===c?(e&&e(b),g&&g.resolve(b)):"failure "===c&&(f&&f(b),g&&g.reject(b)),i?(this.retrieveIframe(a),this.params[u+a]&&delete this.params[u+a]):j&&this.chunks[v+a]&&delete this.chunks[v+a]}};for(var B in z)l.call(m,B)||(m[B]=z[B])}(window,window.lib||(window.lib={})); define('@ali/lzdmod-lib-mtop/index',function (require, exports, module) { module.exports=function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a ",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="//g.alicdn.com/lzdmod/lib-mtop/5.0.5/ ",e(e.s=0)}([function(t,e,r){"use strict ";e.default=window.lib.mtop,t.exports=window.lib.mtop}]); }); define("@ali/lzdmod-dynamic/ald-bottom ",["@ali/lzdmod-dynamic/io "],function(e,t,a){"use strict ";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function ")}var o=function(){function e(e,t){for(var a=0;a0&&arguments[0]!==undefined?arguments[0]:{"appId ":" "};if(!e.appId)return console.log("create default url failed,please set APPId "),!1;var t=e.appId.split(", "),a=e.backupParams||{},r="//overseas-aladdin.alicdn.com/bottom/ "+t.sort().join("/ ");return Object.keys(a).sort().forEach(function(e){r+="/ "+e+"="+a[e]}),r+=" /data.jsonp "}},{"key ":"createBottomCallback ","value ":function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(!e.appId)return console.log("create default Callback failed,please set APPId "),!1;var t=e.appId.replace(/-/g,"_ ").split(", ");t=t.sort();var a=e.backupParams||{},r=" ";return Object.keys(a).sort().forEach(function(e){r+="_ "+e+"_ "+a[e]}),"callback_ "+t.join(", ")+r}},{"key ":"getBottomData ","value ":function(e,t){var a=this;return n("http ",{"url ":e,"dataType ":"jsonp ","params ":{},"timeout ":t.timeout||4e3,"callback ":a.createBottomCallback(t)})}},{"key ":"mergeData ","value ":function(e,t,a,r){var o={},n=this,l=[];return t&&e.forEach(function(i){1===e.length&&a?r?o[i]=t:(o[i]=t.data,n.exposure(t.exposureParam)):t[i]&&t[i].hasOwnProperty("data ")?r?o[i]=t[i]:(o[i]=t[i].data,n.exposure(t[i].exposureParam)):l.push(i)}),0===l.length?Promise.resolve(o):Promise.reject(new Error("appId: "+l.join(", ")+"data format error "))}},{"key ":"exposure ","value ":function(e){e&&l.test(e)&&((new Image).src=e)}}]),e}();a.exports=new i});define("@ali/mui-fetch/tool ",function(e,t,o){function n(e){var t=void 0===e?"undefined ":i(e);return null==e||r(e)||"object "!==t&&"function "!==t}function r(e){var t,o=Object.prototype.toString;return"[object Object] "===o.call(e)&&(null===(t=Object.getPrototypeOf(e))||t===Object.getPrototypeOf({}))}var i="function "==typeof Symbol&&"symbol "==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function "==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol ":typeof e},a="& ",s=" ",u="=",c=!0,l=document,f={" endsWith ":function(e,t){var o=e.length-t.length;return o>=0&&e.indexOf(t,o)===o},"decode ":function(e){return decodeURIComponent(e.replace(/\+/g," "))},"query ":function(){return window&&window.location&&window.location.search?window.location.search.replace(/^\?+/," "):" "},"unparam ":function(e,t,o){if("string "!=typeof e||!e)return{};t=t||"& ",o=o||"=";for(var n,r,i,a={},s=function(e){return decodeURIComponent(e.replace(/\+/g," "))},u=e.split(t),c=0,l=u.length;c0&&arguments[0]!==undefined?arguments[0]:{},e=arguments[1];try{var t=a.config||{},i=n("_oneId "),o=n("alideviceid ");i?(t.params=Object.assign({"_oneId ":i},t.params||{}),window.localStorage.removeItem("alideviceid "),window.localStorage.setItem("_oneId ",i)):o?(t.params=Object.assign({"alideviceid ":o},t.params||{}),window.localStorage.removeItem("_oneId "),window.localStorage.setItem("alideviceid ",o)):(i=window.localStorage.getItem("_oneId "),o=window.localStorage.getItem("alideviceid "),i?t.params=Object.assign({"_oneId ":i},t.params||{}):o&&(t.params=Object.assign({"alideviceid ":o},t.params||{})))}catch(r){}e&&e(a)}}});define("@ali/lzdmod-dynamic/utils/index ",["@ali/mui-zepto/zepto "],function(a,e,t){"use strict ";function n(a){return a&&a.__esModule?a:{"default ":a}}function i(a){var e=[];try{e=JSON.parse(a)}catch(t){}return e}function o(a,e){var t=(0,v["default "])(window),n=(0,v["default "])(a);if(!n.length)return!1;var i=t.scrollTop(),o=i+t.height(),r=n.offset().top,c=n.height()+r;return e?ic:r<=o&&c>=i}function r(a,e){var t=(0,v["default "])(a),n=[];if(!t.length)return[];if(1===t.length&&o(a,e))return t;if(t.length>1)for(var i=t.length-1;i>=0;i--)o(t[i],e)&&n.push(t[i]);return n}function c(){var a="1 ";return window.g_config&&window.g_config.voyagerVersion&&(a=String(window.g_config.voyagerVersion)),a}function s(a,e){return Object.prototype.toString.call(e)==="[object "+a+"] "}function u(a){return String(a).replace(/[&<>" '`=\/]/g,function(a){return b[a]})}function l(a,e){var t=void 0,n={};if(!e)return n;for(var i=a.split("."),o=0,r=i.length,c=r-1;o0}function p(a){return"[object Object]"===Object.prototype.toString.call(a)}function f(a){return Array.isArray?Array.isArray(a):"[object Array]"===Object.prototype.toString.call(a)}function g(a){for(var e=window.location.search.replace("?","").split("&"),t=void 0,n=0;n=0){t=e[n].slice((a+"=").length);break}return t}function h(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},e=arguments[1];if(e&&e.length){var t=e.length,n=a.max,i=a.min,o=t;return o=t>n?n:t>i?t-t%i:t,e.slice(0,o)}return e}function y(a){return f(a)&&a.length<=0||p(a)&&Object.keys(a).length<=0}function w(a){if(p(a)){return function a(e,t){for(var n in e)f(e[n])?t[n]=e[n].concat([]):p(e[n])?(t[n]={},a(e[n],t[n])):t[n]=e[n];return t}(a,{})}}Object.defineProperty(e,"__esModule",{"value":!0});var _=a("@ali/mui-zepto/zepto"),v=n(_),b={"&":"&","<":"<",">":">",' "':"" "," '":"'","/":"/","`":"`","=":"="};e["default"]={"parseDynamicInfo":i,"isEmpty":y,"cloneObject":w,"isDebugServer":m,"isTypeOf":s,"cutOut":h,"isElementInView":o,"analyseData":l,"findInViewElement":r,"escapeHtml":u,"getQuery":g,"load":d,"isObject":p,"isArray":f,"currentVersion":c()},t.exports=e["default"]});define('@ali/lzdmod-crossimage/index ',function (require, exports, module) { module.exports=function(t){function e(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="//laz-g-cdn.alicdn.com/lzdmod/crossimage/5.1.28/",e(e.s=1)}([function(t,e,n){"use strict";t.exports={REG_WHITE_LIST:/(sg|my|vn|th|ph|id)-test-11\.slatic\.net/i,REG_LAZADA_OLD:/(sg|my|vn|th|ph|id)-live(-0\d)?\.slatic\.net/i,REG_LAZADA_PATH:/(\/p\/|\/skyline\/|\/v2\/|\/resize\/|\/sea-pics\/|\/original\/|\/shop\/)/i,REG_LAZADA_NEW:/(laz-img-(sg|my|vn|th|ph|id|cdn))\.alicdn\.com/i,REG_IMG_SUFFIX:/(\.jpg|\.png)_(?:(sum|m|b|\d+x\d+)(xz|xc)?)?(c[xy]\d+i\d+)?(co0)?([qQ]\d+)?(g)?(s\d+)?\.jpg(_.webp)?$/,REG_NOT_MODIFY_IMG:/_(?:(sum|m|b|\d+x\d+))?((xz|xc)|g|co0|(c[xy]\d+i\d+))([qQ]\d{2})?(s\d+)?\.jpg/,REG_EXCLUDE_IMG_TYPE:/\.(svg|gif)/,REG_WEBP_FORMAT:/_\.(webp)/}},function(t,e,n){"use strict";function o(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};t||(t="");var i="object"===("undefined"==typeof window?"undefined":r(window))&&window.crossimageConfig||{};o=Object.assign(i,o);var a=t.split("?"),f=a[0],y=a[1]||"";if(!o.format&&u.isWebp()&&(o.format="webp"),"object"===("undefined"==typeof window?"undefined":r(window))&&window.CROSSIMAGE_GRAYSCALE_RULE){var m=s.exec(f);if(m){var g=m[0];window.CROSSIMAGE_GRAYSCALE_RULE[g]&&(f=f.replace(g,window.CROSSIMAGE_GRAYSCALE_RULE[g]))}}var v=o.ignoreReg||!1;return v&&v.test(f)?f+(y?"?"+y:""):((""===t||p.test(f)&&d.test(f)||l.test(f))&&(f=c.getFitUrl(f,e,n,o)),f+(y?"?"+y:""))}function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n,i){var r=n&&"img"===n.type&&n.src&&!a.hasAttr(n.elem,"crossimage-ignore"),c=!r&&n&&"bgimg"===n.type&&n.bgimgSrc&&!a.hasAttr(n.elem,"crossimage-ignore"),u=r&&a.hasAttr(n.elem,"crossimage-force");try{var f=n.elem,s=window&&window.crossimageConfig||{};t&&t.length>0&&"function"==typeof t.get&&(t=t.get(0));var l=t&&(a.contains(t,f)||f===t),p=Object.assign({openSetDisplay:!0},s,e,{isForce:u,imgContext:t});if(r&&l){var d=0,y=0,m=n.elem.parentNode;m&&(d=m.clientWidth,y=m.clientHeight),n.src=o(n.src,d,y,p)}else c&&l&&(n.bgimgSrc=o(n.bgimgSrc,n.elem.offsetWidth,n.elem.offsetHeight,p))}catch(t){setTimeout(function(){throw t},0)}i&&i()}}var r="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};n(2);var c=n(3),a=n(8),u=n(9),f=n(0),s=f.REG_LAZADA_OLD,l=f.REG_LAZADA_NEW,p=f.REG_WHITE_LIST,d=f.REG_LAZADA_PATH;t.exports={getFitUrl:o,dataLazyPlugin:i}},function(t,e,n){"use strict";Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null==this)throw new TypeError(' "this" is null or not defined ');var e=Object(this),n=e.length>>>0;if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var o=arguments[1],i=0;i0){var n=e[1];return t.replace(_,"laz-img-"+n+".alicdn.com")}return t}function i(t,e){var n=t;return b.test(n)?n:(e.shouldConvertUrl&&(n=o(t)),n.replace(g,"$1").replace(A,""))}function r(t,e){if(e||!b.test(t)){var n=g.exec(t),o=n?{size:n[1],crop:n[2],cut:n[3],circle:n[4],quality:n[5],rotate:n[6],sharpen:n[7]}:{};return n=A.exec(t),n&&(o.format=n[1]),o}}function c(t,e,n){var o=0,i=t||screen.width||0,r=e||0;if(!i&&!r)return"";o=Math.max(i,r),o*=d;var c=n.find(function(t){return Math.min(t[0],t[1]||t[0])>=o});return c||(c=n[n.length-1]),c?c[0]+"x"+(c[1]||c[0]):""}function a(t,e){var n=i(t,e),o="",r="";return e.size&&(o+=e.size,e.crop&&(o+=e.crop)),e.quality&&(o+=e.quality),e.sharpen&&(o+=e.sharpen),o&&(o="_"+o+".jpg"),e.format&&"webp"===e.format&&(r="_."+e.format),n+o+r}function u(t,e){if(""===t||b.test(t)&&!e.isForce)return t;var n=!v.test(t),o=n&&e.clean?{}:r(t)||{};return e=n?Object.assign({},o,e):Object.assign({},o,{format:e.format}),a(t,e)}function f(t,e,n,o){var i=Object.assign({},{clean:!0},o),r=y;return"object"===s(o.sizeList)&&o.sizeList.length>=0&&(r=o.sizeList),i.size||(i.size=c(e,n,r)),i.quality=l.get(t,{quality:i.quality,srcSize:i.srcSize,size:i.size.split("x"),devicePixelRatio:d}),i.sharpen=p.get({quality:i.quality}),u(t,i)}var s="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},l=n(4),p=n(5),d=n(6)(),y=n(7),m=n(0),g=m.REG_IMG_SUFFIX,v=m.REG_NOT_MODIFY_IMG,b=m.REG_EXCLUDE_IMG_TYPE,A=m.REG_WEBP_FORMAT,w=m.REG_LAZADA_OLD,_=m.REG_LAZADA_NEW;t.exports={getFitUrl:f}},function(t,e,n){"use strict";function o(){if("undefined"!=typeof navigator){var t=navigator.connection||navigator.mozConnection||navigator.webkitConnection;if(t&&t.effectiveType){var e=t.effectiveType;return c[e]||90}}return 90}function i(t){var e=90;return t>=3?e=50:t>=2&&(e=75),e}function r(t,e){var n=e.quality;if(""!==n&&!n){n="q"+Math.min(o(),i(e.devicePixelRatio))}return n}var c={"2g":50,"3g":75,"4g":80,wifi:90};t.exports={get:r}},function(t,e,n){"use strict";function o(t){var e=t.sharpen;if(""!==e&&!e){var n=t.quality;if("string"==typeof n){var o=n.match(/^[q|Q](\d{2})$/);(o&&o.length>=2?parseInt(o[1],10):1e4)<=50&&(e="s150")}}return e}t.exports={get:o}},function(t,e,n){"use strict";var o="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};t.exports=function(){var t=void 0;return"function"==typeof callNative&&"object"===("undefined"==typeof WXEnvironment?"undefined":o(WXEnvironment))?t=WXEnvironment.scale:"object"===("undefined"==typeof window?"undefined":o(window))&&window.devicePixelRatio&&(t=window.devicePixelRatio),t=Number(t),t>1&&(t=2),t||2}},function(t,e,n){"use strict";t.exports=[[80],[120],[150],[170],[200],[240],[260],[270],[300],[340],[360],[400],[460],[720],[1200],[2200]]},function(t,e,n){"use strict";var o="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},i="object"===("undefined"==typeof document?"undefined":o(document))&&document.documentElement.contains?function(t,e){return t!==e&&t.contains&&t.contains(e)}:function(t,e){for(;e;)if((e=e.parentNode)===t)return!0;return!1},r=function(t){return t&&(1===t.nodeType||11===t.nodeType)},c=function(t,e){return t&&r(t)&&t.hasAttribute(e)};t.exports={contains:i,hasAttr:c,isNode:r}},function(t,e,n){"use strict";function o(){var t=document.createElement("canvas");if("function"!=typeof t.toDataURL)return void i();0==t.toDataURL("image/webp").indexOf("data:image/webp")&&r()}function i(){var t=new Image;t.onload=function(){t.height>0&&t.width>0&&r()},t.onerror=function(){},t.src="data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA"}function r(){a=!0;try{window.localStorage&&window.localStorage.setItem("isWebpSupport","1")}catch(t){console.log(t)}}var c="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},a=!1;!function(){if("function"==typeof callNative&&"object"===("undefined"==typeof WXEnvironment?"undefined":c(WXEnvironment)))return void(a=!0);if("object"===("undefined"==typeof window?"undefined":c(window))&&"object"===("undefined"==typeof navigator?"undefined":c(navigator))&&window.localStorage){if(/AliApp\(LA/i.test(navigator.userAgent))return void(a=!0);if(!/iPhone/i.test(navigator.userAgent)){try{var t=window.localStorage.getItem("isWebpSupport");a="1"===t}catch(t){}a||o()}}}(),t.exports={isWebp:function(){return a}}}]); }); define("@ali/mui-xtemplate/index",["./runtime","./compiler"],function(e,r,t){function n(e,r){var t=e,o=r,u=void 0===t?"undefined":i(t);if("string"!==u&&"function"!==u&&(o=t,t=undefined),o=this.config=s.merge(n.globalConfig,o),"string"===u)try{t=this.compile(t,o.name)}catch(p){this.compileError=p}a.call(this,t,o)}function o(){}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=e("./runtime"),s=a.util,u=e("./compiler"),p=u.compile;o.prototype=a.prototype,n.prototype=new o,n.prototype.constructor=n,n.prototype.compile=function(e,r){return p(e,r,this.config)},n.prototype.render=function(e,r,t){var n=t;"function"==typeof r&&(n=r);var o=this.compileError;if(!o)return a.prototype.render.apply(this,arguments);if(!n)throw o;n(o)},t.exports=s.mix(n,{"config":a.config,"compile":p,"Compiler":u,"Scope":a.Scope,"Runtime":a,"addCommand":a.addCommand,"removeCommand":a.removeCommand})});define("@ali/mui-xtemplate/runtime",["./runtime/util","./runtime/commands","./runtime/scope","./runtime/linked-buffer"],function(e,n,r){function t(e,n,r,t,o,i,a,u){this.name=e,this.originalName=i||e,this.runtime=n,this.root=r,this.pos={"line":1},this.scope=t,this.buffer=o,this.fn=a,this.parent=u}function o(e,n,r){var t=r[0],o=e&&e[t]||n&&n[t]||x[t];if(1===r.length)return o;if(o)for(var i=r.length,a=1;a2&&arguments[2]!==undefined?arguments[2]:null;if(e){var a=void 0,r=void 0,i=void 0,s=0,u=e&&e.length;if(u===undefined||"[object Function]"===Object.prototype.toString.call(e))for(i=o.keys(e);s]/;n.exports=a});define("@ali/mui-xtemplate/runtime/commands",["./scope","./util"],function(e,t,n){var a=e("./scope"),r=e("./util"),i={"range":function(e,t){var n=t.params,a=n[0],r=n[1],i=n[2];i?(a>r&&i>0||a r?-1:1;for(var o=[],s=a;a r;s+=i)o.push(s);return o},"foreach":function(e,t,n){var r=n,i=t.params,o=i[0],s=i[2]||"xindex",u=i[1],p=void 0,l=void 0,c=void 0,h=void 0;if(o)for(p=o.length,h=0;h 2))throw new Error("include/parse/extend can only has at most two parameter!");if(O&&("include"!==v&&"parse"!==v||(r.params[0]={"type":"raw","value":'require("'+r.params[0].value+'")'})),c||(c=l(e,r,a,null,null,null),m(i,c.source)),n||(f=s(e,"callRet"),i.push("var "+f)),v in V)"extend"===v?(i.push("runtime.extendTpl = "+c.exp),i.push("buffer = buffer.async(function(newBuffer){runtime.extendTplBuffer = newBuffer;});"),O&&i.push("runtime.extendTplFn = require("+c.exp+".params[0])")):"include"===v?i.push("buffer = root."+(O?"includeModule":"include")+"(scope,"+c.exp+",buffer,tpl);"):"includeOnce"===v?i.push("buffer = root."+(O?"includeOnceModule":"includeOnce")+"(scope,"+c.exp+",buffer,tpl);"):"parse"===v?i.push("buffer = root."+(O?"includeModule":"include")+"(new scope.constructor(),"+c.exp+",buffer,tpl);"):i.push(N(w,{"lhs":n?"buffer":f,"name":v,"option":c.exp}));else if(n)i.push(N(P,{"option":c.exp,"idParts":d.convertIdPartsToRawAccessor(e,i,x).arr}));else{var q=d.convertIdPartsToRawAccessor(e,i,x);q.funcRet?i.push(N(T,{"lhs":f,"params":c.funcParams.join(","),"idParts":q.arr,"depth":h.depth})):i.push(N(h.depth?E:j,{"lhs":f,"option":c.exp,"idParts":q.arr,"depth":h.depth}))}return{"exp":f,"source":i}}function h(e){this.functionDeclares=[],this.config=e,this.uuid=0}for(var v=e("./runtime").util,d=e("./compiler/tools"),m=d.pushToArray,x=d.wrapByDoubleQuote,y=["var t;"],g=0;g <10;g++)y.push( "var t"+g+ ";");var b=y.concat([ "var tpl = this;\n var root = tpl.root;\n var buffer = tpl.buffer;\n var scope = tpl.scope;\n var runtime = tpl.runtime;\n var name = tpl.name;\n var pos = tpl.pos;\n var data = scope.data;\n var affix = scope.affix;\n var nativeCommands = root.nativeCommands;\n var utils = root.utils;"]).join( "\n"),w="{lhs} = {name}Command.call(tpl, scope, {option}, buffer);" ,P="buffer = callCommandUtil(tpl, scope, {option}, buffer, {idParts});" ,j="{lhs} = callFnUtil(tpl, scope, {option}, buffer, {idParts});" ,T="{lhs} = callDataFnUtil([{params}], {idParts});" ,E="{lhs} = callFnUtil(tpl, scope, {option}, buffer, {idParts}, {depth});" ,R="var {lhs} = {value};" ,S="var {lhs} = scope.resolve({idParts},{depth});" ,k="var {lhs} = scope.resolveLoose({idParts},{depth});" ,A="function {functionName}({params}){\n {body}\n}" ,C="\n //# sourceURL = {name}.js\n" ,I='var {name}Command = nativeCommands["{name}"];' ,B='var {name}Util = utils["{name}"];' ,D="buffer = buffer.write({value});" ,U="buffer.data += {value};" ,F="buffer = buffer.writeEscaped({value});" ,J="return buffer;" ,M=e( "./runtime"),O=e( "./compiler/parser");O.yy=e( "./compiler/ast");var q=[],N=v.substitute,Q=v.each,V=M.nativeCommands,L=M.utils;Q(L,function(e,r){q.push(N(B,{ "name":r}))}),Q(V,function(e,r){q.push(N(I,{ "name":r}))}),q=q.join( "\n");var G=1;h.prototype={ "constructor":h, "raw":function(e){return{ "exp":e.value}}, "arrayExpression":function(e){for(var r=e.list,n=r.length,t=void 0,o=[],a=[],s=0;s2&&arguments[2]!==undefined?arguments[2]:0,i=arguments[3];if(!e.length)return t;var r=i||t,o=e[0],s="t"+n;return["("+t+" != null ? ",a(e.slice(1),"("+s+"="+r+o+")",n+1,s)," : ",r,")"].join("")}function i(e,t,n,i){return e?a(t.slice(1),n):i}var r=/\\*"/g,o=/\\*'/g,s=[].push,u={};u.undefined=u["null"]=u["true"]=u["false"]=1;var p=n.exports={"genStackJudge":a,"isGlobalId":function(e){return u[e.string]?1:0},"chainedVariableRead":function(e,t,n,a,r,o){var s=p.convertIdPartsToRawAccessor(e,t,n),u=s.parts,l=u[0],c="";a&&(c="scope.root.");var h=c+"affix",f=c+"data",m=["(","(t=("+h+l+")) !== undefined ? ",n.length>1?i(o,u,"t",h+s.str):"t"," : "];return r?m=m.concat(["(","(t = "+f+l+") !== undefined ? ",n.length>1?i(o,u,"t",f+s.str):"t"," : ",o?"scope.resolveLooseUp("+s.arr+")":"scope.resolveUp("+s.arr+")",")"]):m.push(i(o,u,f+l,f+s.str)),m.push(")"),m.join("")},"convertIdPartsToRawAccessor":function(e,t,n){var a=void 0,i=void 0,r=void 0,o=void 0,s=void 0,u=[],l=[],c="";for(a=0,i=n.length;a t?"... ":" ")+n.slice(0-t).replace(/\n/g," "),o=a+i;return o=o.slice(0,t).replace(/\n/g," ")+(o.length>t?"... ":" "),r+o+"\n "+new Array(r.length+1).join("- ")+"^ "},"mapSymbol ":function(e){return this.symbolMap[e]},"mapReverseSymbol ":function(e){var t,n=this,a=n.symbolMap,i=n.reverseSymbolMap;if(!i&&a){i=n.reverseSymbolMap={};for(t in a)i[a[t]]=t}return i?i[e]:e},"lex ":function(){var t,a,i,r,o,s=this,p=s.input,l=s.getCurrentRules();if(s.match=s.text=" ",!p)return s.mapSymbol(u.STATIC.END_TAG);for(t=0;t=/,0,["p ","e "]],["p ",/^<=/,0,["p ","e "]],["q ",/^>/,0,["p ","e "]],["r ",/^",this.$3)}],["ay",["ay","p","az"],function(){return new this.yy.RelationalExpression(this.$1," <=",this.$3)}],[" ay ",["ay ","o ","az "],function(){return new this.yy.RelationalExpression(this.$1,">=",this.$3)}],["az",["ba"]],["az",["az","s","ba"],function(){return new this.yy.AdditiveExpression(this.$1,"+",this.$3)}],["az",["az","t","ba"],function(){return new this.yy.AdditiveExpression(this.$1,"-",this.$3)}],["ba",["bb"]],["ba",["ba","u","bb"],function(){return new this.yy.MultiplicativeExpression(this.$1,"*",this.$3)}],["ba",["ba","v","bb"],function(){return new this.yy.MultiplicativeExpression(this.$1,"/",this.$3)}],["ba",["ba","w","bb"],function(){return new this.yy.MultiplicativeExpression(this.$1,"%",this.$3)}],["bb",["x","bb"],function(){return new this.yy.UnaryExpression(this.$1,this.$2)}],["bb",["t","bb"],function(){return new this.yy.UnaryExpression(this.$1,this.$2)}],["bb",["bc"]],["bc",["y"],function(){return new this.yy.String({"line":this.lexer.firstLine,"col":this.lexer.firstColumn},this.$1)}],["bc",["z"],function(){return new this.yy.Number({"line":this.lexer.firstLine,"col":this.lexer.firstColumn},this.$1)}],["bc",["an"]],["bc",["i","ao","j"],function(){return this.$2}],["aq",["aq","g","bd"],function(){this.$1.value.push(this.$3)}],["aq",["bd"],function(){return new this.yy.Hash({"line":this.lexer.firstLine,"col":this.lexer.firstColumn},[this.$1])}],["bd",["an","aa","ao"],function(){return[this.$1,this.$3]}],["an",["be"],function(){return new this.yy.Id({"line":this.lexer.firstLine,"col":this.lexer.firstColumn},this.$1)}],["be",["am"],function(){return[this.$1]}],["be",["be","ac","ab"],function(){this.$1.push(this.$3)}],["be",["be","ad","ao","ae"],function(){this.$1.push(this.$3)}],["be",["ab"],function(){return[this.$1]}]],o.table={"gotos":{"0":{"aj":4,"ak":5,"al":6},"2":{"am":8,"an":9,"be":10},"3":{"am":18,"an":19,"ao":20,"as":21,"aw":22,"ax":23,"ay":24,"az":25,"ba":26,"bb":27,"bc":28,"be":10},"5":{"al":30},"11":{"am":18,"an":19,"ao":35,"as":21,"aw":22,"ax":23,"ay":24,"az":25,"ba":26,"bb":27,"bc":28,"be":10},"12":{"am":18,"an":19,"bb":36,"bc":28,"be":10},"13":{"am":18,"an":19,"bb":37,"bc":28,"be":10},"16":{"am":18,"an":19,"ao":39,"as":21,"at":40,"aw":22,"ax":23,"ay":24,"az":25,"ba":26,"bb":27,"bc":28,"be":10},"17":{"au":44,"av":45},"29":{"ak":60,"al":6},"31":{"aj":61,"ak":5,"al":6},"32":{"am":18,"an":63,"ao":64,"ap":65,"aq":66,"ar":67,"as":21,"aw":22,"ax":23,"ay":24,"az":25,"ba":26,"bb":27,"bc":28,"bd":68,"be":10},"34":{"am":18,"an":19,"ao":70,"as":21,"aw":22,"ax":23,"ay":24,"az":25,"ba":26,"bb":27,"bc":28,"be":10},"47":{"am":18,"an":19,"aw":78,"ax":23,"ay":24,"az":25,"ba":26,"bb":27,"bc":28,"be":10},"48":{"am":18,"an":19,"ax":79,"ay":24,"az":25,"ba":26,"bb":27,"bc":28,"be":10},"49":{"am":18,"an":19,"ay":80,"az":25,"ba":26,"bb":27,"bc":28,"be":10},"50":{"am":18,"an":19,"ay":81,"az":25,"ba":26,"bb":27,"bc":28,"be":10},"51":{"am":18,"an":19,"az":82,"ba":26,"bb":27,"bc":28,"be":10},"52":{"am":18,"an":19,"az":83,"ba":26,"bb":27,"bc":28,"be":10},"53":{"am":18,"an":19,"az":84,"ba":26,"bb":27,"bc":28,"be":10},"54":{"am":18,"an":19,"az":85,"ba":26,"bb":27,"bc":28,"be":10},"55":{"am":18,"an":19,"ba":86,"bb":27,"bc":28,"be":10},"56":{"am":18,"an":19,"ba":87,"bb":27,"bc":28,"be":10},"57":{"am":18,"an":19,"bb":88,"bc":28,"be":10},"58":{"am":18,"an":19,"bb":89,"bc":28,"be":10},"59":{"am":18,"an":19,"bb":90,"bc":28,"be":10},"60":{"al":30},"72":{"am":18,"an":19,"ao":98,"as":21,"aw":22,"ax":23,"ay":24,"az":25,"ba":26,"bb":27,"bc":28,"be":10},"74":{"am":18,"an":19,"ao":99,"as":21,"aw":22,"ax":23,"ay":24,"az":25,"ba":26,"bb":27,"bc":28,"be":10},"75":{"am":18,"an":19,"ao":100,"as":21,"aw":22,"ax":23,"ay":24,"az":25,"ba":26,"bb":27,"bc":28,"be":10},"76":{"av":101},"91":{"am":18,"an":102,"be":10},"92":{"am":18,"an":19,"ao":103,"as":21,"aw":22,"ax":23,"ay":24,"az":25,"ba":26,"bb":27,"bc":28,"be":10},"93":{"am":18,"an":63,"ao":64,"aq":104,"ar":105,"as":21,"aw":22,"ax":23,"ay":24,"az":25,"ba":26,"bb":27,"bc":28,"bd":68,"be":10},"95":{"am":18,"an":106,"bd":107,"be":10}},"action":{"0":{"b":[1,e,1],"c":[1,e,2],"f":[1,e,3]},"1":{"a":[2,7],"e":[2,7],"c":[2,7],"f":[2,7],"b":[2,7],"d":[2,7]},"2":{"ab":[1,e,7]},"3":{"i":[1,e,11],"t":[1,e,12],"x":[1,e,13],"y":[1,e,14],"z":[1,e,15],"ab":[1,e,7],"ad":[1,e,16],"af":[1,e,17]},"4":{"a":[0]},"5":{"a":[2,2],"d":[2,2],"b":[1,e,1],"c":[1,e,2],"e":[1,e,29],"f":[1,e,3]},"6":{"a":[2,3],"e":[2,3],"c":[2,3],"f":[2,3],"b":[2,3],"d":[2,3]},"7":{"i":[2,59],"ac":[2,59],"ad":[2,59],"h":[2,59],"k":[2,59],"l":[2,59],"m":[2,59],"n":[2,59],"o":[2,59],"p":[2,59],"q":[2,59],"r":[2,59],"s":[2,59],"t":[2,59],"u":[2,59],"v":[2,59],"w":[2,59],"j":[2,59],"ae":[2,59],"g":[2,59],"aa":[2,59],"ah":[2,59]},"8":{"i":[2,56],"ac":[2,56],"ad":[2,56],"h":[1,e,31]},"9":{"i":[1,e,32]},"10":{"i":[2,55],"h":[2,55],"k":[2,55],"l":[2,55],"m":[2,55],"n":[2,55],"o":[2,55],"p":[2,55],"q":[2,55],"r":[2,55],"s":[2,55],"t":[2,55],"u":[2,55],"v":[2,55],"w":[2,55],"j":[2,55],"ae":[2,55],"g":[2,55],"aa":[2,55],"ah":[2,55],"ac":[1,e,33],"ad":[1,e,34]},"11":{"i":[1,e,11],"t":[1,e,12],"x":[1,e,13],"y":[1,e,14],"z":[1,e,15],"ab":[1,e,7],"ad":[1,e,16],"af":[1,e,17]},"12":{"i":[1,e,11],"t":[1,e,12],"x":[1,e,13],"y":[1,e,14],"z":[1,e,15],"ab":[1,e,7]},"13":{"i":[1,e,11],"t":[1,e,12],"x":[1,e,13],"y":[1,e,14],"z":[1,e,15],"ab":[1,e,7]},"14":{"h":[2,48],"k":[2,48],"l":[2,48],"m":[2,48],"n":[2,48],"o":[2,48],"p":[2,48],"q":[2,48],"r":[2,48],"s":[2,48],"t":[2,48],"u":[2,48],"v":[2,48],"w":[2,48],"j":[2,48],"ae":[2,48],"g":[2,48],"ah":[2,48]},"15":{"h":[2,49],"k":[2,49],"l":[2,49],"m":[2,49],"n":[2,49],"o":[2,49],"p":[2,49],"q":[2,49],"r":[2,49],"s":[2,49],"t":[2,49],"u":[2,49],"v":[2,49],"w":[2,49],"j":[2,49],"ae":[2,49],"g":[2,49],"ah":[2,49]},"16":{"i":[1,e,11],"t":[1,e,12],"x":[1,e,13],"y":[1,e,14],"z":[1,e,15],"ab":[1,e,7],"ad":[1,e,16],"ae":[1,e,38],"af":[1,e,17]},"17":{"y":[1,e,41],"ab":[1,e,42],"ah":[1,e,43]},"18":{"h":[2,56],"k":[2,56],"i":[2,56],"l":[2,56],"m":[2,56],"n":[2,56],"o":[2,56],"p":[2,56],"q":[2,56],"r":[2,56],"s":[2,56],"t":[2,56],"u":[2,56],"v":[2,56],"w":[2,56],"ac":[2,56],"ad":[2,56],"j":[2,56],"ae":[2,56],"g":[2,56],"aa":[2,56],"ah":[2,56]},"19":{"h":[2,50],"k":[2,50],"l":[2,50],"m":[2,50],"n":[2,50],"o":[2,50],"p":[2,50],"q":[2,50],"r":[2,50],"s":[2,50],"t":[2,50],"u":[2,50],"v":[2,50],"w":[2,50],"j":[2,50],"ae":[2,50],"g":[2,50],"ah":[2,50],"i":[1,e,32]},"20":{"h":[1,e,46]},"21":{"h":[2,15],"j":[2,15],"ae":[2,15],"g":[2,15],"ah":[2,15],"k":[1,e,47]},"22":{"h":[2,26],"k":[2,26],"j":[2,26],"ae":[2,26],"g":[2,26],"ah":[2,26],"l":[1,e,48]},"23":{"h":[2,28],"k":[2,28],"l":[2,28],"j":[2,28],"ae":[2,28],"g":[2,28],"ah":[2,28],"m":[1,e,49],"n":[1,e,50]},"24":{"h":[2,30],"k":[2,30],"l":[2,30],"m":[2,30],"n":[2,30],"j":[2,30],"ae":[2,30],"g":[2,30],"ah":[2,30],"o":[1,e,51],"p":[1,e,52],"q":[1,e,53],"r":[1,e,54]},"25":{"h":[2,33],"k":[2,33],"l":[2,33],"m":[2,33],"n":[2,33],"o":[2,33],"p":[2,33],"q":[2,33],"r":[2,33],"j":[2,33],"ae":[2,33],"g":[2,33],"ah":[2,33],"s":[1,e,55],"t":[1,e,56]},"26":{"h":[2,38],"k":[2,38],"l":[2,38],"m":[2,38],"n":[2,38],"o":[2,38],"p":[2,38],"q":[2,38],"r":[2,38],"s":[2,38],"t":[2,38],"j":[2,38],"ae":[2,38],"g":[2,38],"ah":[2,38],"u":[1,e,57],"v":[1,e,58],"w":[1,e,59]},"27":{"h":[2,41],"k":[2,41],"l":[2,41],"m":[2,41],"n":[2,41],"o":[2,41],"p":[2,41],"q":[2,41],"r":[2,41],"s":[2,41],"t":[2,41],"u":[2,41],"v":[2,41],"w":[2,41],"j":[2,41],"ae":[2,41],"g":[2,41],"ah":[2,41]},"28":{"h":[2,47],"k":[2,47],"l":[2,47],"m":[2,47],"n":[2,47],"o":[2,47],"p":[2,47],"q":[2,47],"r":[2,47],"s":[2,47],"t":[2,47],"u":[2,47],"v":[2,47],"w":[2,47],"j":[2,47],"ae":[2,47],"g":[2,47],"ah":[2,47]},"29":{"b":[1,e,1],"c":[1,e,2],"f":[1,e,3]},"30":{"a":[2,4],"e":[2,4],"c":[2,4],"f":[2,4],"b":[2,4],"d":[2,4]},"31":{"b":[1,e,1],"c":[1,e,2],"f":[1,e,3]},"32":{"i":[1,e,11],"j":[1,e,62],"t":[1,e,12],"x":[1,e,13],"y":[1,e,14],"z":[1,e,15],"ab":[1,e,7],"ad":[1,e,16],"af":[1,e,17]},"33":{"ab":[1,e,69]},"34":{"i":[1,e,11],"t":[1,e,12],"x":[1,e,13],"y":[1,e,14],"z":[1,e,15],"ab":[1,e,7],"ad":[1,e,16],"af":[1,e,17]},"35":{"j":[1,e,71]},"36":{"h":[2,46],"k":[2,46],"l":[2,46],"m":[2,46],"n":[2,46],"o":[2,46],"p":[2,46],"q":[2,46],"r":[2,46],"s":[2,46],"t":[2,46],"u":[2,46],"v":[2,46],"w":[2,46],"j":[2,46],"ae":[2,46],"g":[2,46],"ah":[2,46]},"37":{"h":[2,45],"k":[2,45],"l":[2,45],"m":[2,45],"n":[2,45],"o":[2,45],"p":[2,45],"q":[2,45],"r":[2,45],"s":[2,45],"t":[2,45],"u":[2,45],"v":[2,45],"w":[2,45],"j":[2,45],"ae":[2,45],"g":[2,45],"ah":[2,45]},"38":{"h":[2,17],"j":[2,17],"ae":[2,17],"g":[2,17],"ah":[2,17]},"39":{"ae":[2,24],"g":[2,24]},"40":{"g":[1,e,72],"ae":[1,e,73]},"41":{"ag":[1,e,74]},"42":{"ag":[1,e,75]},"43":{"h":[2,19],"j":[2,19],"ae":[2,19],"g":[2,19],"ah":[2,19]},"44":{"g":[1,e,76],"ah":[1,e,77]},"45":{"ah":[2,22],"g":[2,22]},"46":{"a":[2,6],"e":[2,6],"c":[2,6],"f":[2,6],"b":[2,6],"d":[2,6]},"47":{"i":[1,e,11],"t":[1,e,12],"x":[1,e,13],"y":[1,e,14],"z":[1,e,15],"ab":[1,e,7]},"48":{"i":[1,e,11],"t":[1,e,12],"x":[1,e,13],"y":[1,e,14],"z":[1,e,15],"ab":[1,e,7]},"49":{"i":[1,e,11],"t":[1,e,12],"x":[1,e,13],"y":[1,e,14],"z":[1,e,15],"ab":[1,e,7]},"50":{"i":[1,e,11],"t":[1,e,12],"x":[1,e,13],"y":[1,e,14],"z":[1,e,15],"ab":[1,e,7]},"51":{"i":[1,e,11],"t":[1,e,12],"x":[1,e,13],"y":[1,e,14],"z":[1,e,15],"ab":[1,e,7]},"52":{"i":[1,e,11],"t":[1,e,12],"x":[1,e,13],"y":[1,e,14],"z":[1,e,15],"ab":[1,e,7]},"53":{"i":[1,e,11],"t":[1,e,12],"x":[1,e,13],"y":[1,e,14],"z":[1,e,15],"ab":[1,e,7]},"54":{"i":[1,e,11],"t":[1,e,12],"x":[1,e,13],"y":[1,e,14],"z":[1,e,15],"ab":[1,e,7]},"55":{"i":[1,e,11],"t":[1,e,12],"x":[1,e,13],"y":[1,e,14],"z":[1,e,15],"ab":[1,e,7]},"56":{"i":[1,e,11],"t":[1,e,12],"x":[1,e,13],"y":[1,e,14],"z":[1,e,15],"ab":[1,e,7]},"57":{"i":[1,e,11],"t":[1,e,12],"x":[1,e,13],"y":[1,e,14],"z":[1,e,15],"ab":[1,e,7]},"58":{"i":[1,e,11],"t":[1,e,12],"x":[1,e,13],"y":[1,e,14],"z":[1,e,15],"ab":[1,e,7]},"59":{"i":[1,e,11],"t":[1,e,12],"x":[1,e,13],"y":[1,e,14],"z":[1,e,15],"ab":[1,e,7]},"60":{"a":[2,1],"d":[2,1],"b":[1,e,1],"c":[1,e,2],"f":[1,e,3]},"61":{"d":[1,e,91]},"62":{"h":[2,11],"i":[2,11],"ac":[2,11],"ad":[2,11],"k":[2,11],"l":[2,11],"m":[2,11],"n":[2,11],"o":[2,11],"p":[2,11],"q":[2,11],"r":[2,11],"s":[2,11],"t":[2,11],"u":[2,11],"v":[2,11],"w":[2,11],"j":[2,11],"ae":[2,11],"g":[2,11],"aa":[2,11],"ah":[2,11]},"63":{"g":[2,50],"j":[2,50],"k":[2,50],"l":[2,50],"m":[2,50],"n":[2,50],"o":[2,50],"p":[2,50],"q":[2,50],"r":[2,50],"s":[2,50],"t":[2,50],"u":[2,50],"v":[2,50],"w":[2,50],"i":[1,e,32],"aa":[1,e,92]},"64":{"g":[2,14],"j":[2,14]},"65":{"g":[1,e,93],"j":[1,e,94]},"66":{"g":[1,e,95],"j":[1,e,96]},"67":{"g":[2,13],"j":[2,13]},"68":{"j":[2,53],"g":[2,53]},"69":{"i":[2,57],"ac":[2,57],"ad":[2,57],"h":[2,57],"k":[2,57],"l":[2,57],"m":[2,57],"n":[2,57],"o":[2,57],"p":[2,57],"q":[2,57],"r":[2,57],"s":[2,57],"t":[2,57],"u":[2,57],"v":[2,57],"w":[2,57],"j":[2,57],"ae":[2,57],"g":[2,57],"aa":[2,57],"ah":[2,57]},"70":{"ae":[1,e,97]},"71":{"h":[2,51],"k":[2,51],"l":[2,51],"m":[2,51],"n":[2,51],"o":[2,51],"p":[2,51],"q":[2,51],"r":[2,51],"s":[2,51],"t":[2,51],"u":[2,51],"v":[2,51],"w":[2,51],"j":[2,51],"ae":[2,51],"g":[2,51],"ah":[2,51]},"72":{"i":[1,e,11],"t":[1,e,12],"x":[1,e,13],"y":[1,e,14],"z":[1,e,15],"ab":[1,e,7],"ad":[1,e,16],"af":[1,e,17]},"73":{"h":[2,16],"j":[2,16],"ae":[2,16],"g":[2,16],"ah":[2,16]},"74":{"i":[1,e,11],"t":[1,e,12],"x":[1,e,13],"y":[1,e,14],"z":[1,e,15],"ab":[1,e,7],"ad":[1,e,16],"af":[1,e,17]},"75":{"i":[1,e,11],"t":[1,e,12],"x":[1,e,13],"y":[1,e,14],"z":[1,e,15],"ab":[1,e,7],"ad":[1,e,16],"af":[1,e,17]},"76":{"y":[1,e,41],"ab":[1,e,42]},"77":{"h":[2,18],"j":[2,18],"ae":[2,18],"g":[2,18],"ah":[2,18]},"78":{"h":[2,27],"k":[2,27],"j":[2,27],"ae":[2,27],"g":[2,27],"ah":[2,27],"l":[1,e,48]},"79":{"h":[2,29],"k":[2,29],"l":[2,29],"j":[2,29],"ae":[2,29],"g":[2,29],"ah":[2,29],"m":[1,e,49],"n":[1,e,50]},"80":{"h":[2,31],"k":[2,31],"l":[2,31],"m":[2,31],"n":[2,31],"j":[2,31],"ae":[2,31],"g":[2,31],"ah":[2,31],"o":[1,e,51],"p":[1,e,52],"q":[1,e,53],"r":[1,e,54]},"81":{"h":[2,32],"k":[2,32],"l":[2,32],"m":[2,32],"n":[2,32],"j":[2,32],"ae":[2,32],"g":[2,32],"ah":[2,32],"o":[1,e,51],"p":[1,e,52],"q":[1,e,53],"r":[1,e,54]},"82":{"h":[2,37],"k":[2,37],"l":[2,37],"m":[2,37],"n":[2,37],"o":[2,37],"p":[2,37],"q":[2,37],"r":[2,37],"j":[2,37],"ae":[2,37],"g":[2,37],"ah":[2,37],"s":[1,e,55],"t":[1,e,56]},"83":{"h":[2,36],"k":[2,36],"l":[2,36],"m":[2,36],"n":[2,36],"o":[2,36],"p":[2,36],"q":[2,36],"r":[2,36],"j":[2,36],"ae":[2,36],"g":[2,36],"ah":[2,36],"s":[1,e,55],"t":[1,e,56]},"84":{"h":[2,35],"k":[2,35],"l":[2,35],"m":[2,35],"n":[2,35],"o":[2,35],"p":[2,35],"q":[2,35],"r":[2,35],"j":[2,35],"ae":[2,35],"g":[2,35],"ah":[2,35],"s":[1,e,55],"t":[1,e,56]},"85":{"h":[2,34],"k":[2,34],"l":[2,34],"m":[2,34],"n":[2,34],"o":[2,34],"p":[2,34],"q":[2,34],"r":[2,34],"j":[2,34],"ae":[2,34],"g":[2,34],"ah":[2,34],"s":[1,e,55],"t":[1,e,56]},"86":{"h":[2,39],"k":[2,39],"l":[2,39],"m":[2,39],"n":[2,39],"o":[2,39],"p":[2,39],"q":[2,39],"r":[2,39],"s":[2,39],"t":[2,39],"j":[2,39],"ae":[2,39],"g":[2,39],"ah":[2,39],"u":[1,e,57],"v":[1,e,58],"w":[1,e,59]},"87":{"h":[2,40],"k":[2,40],"l":[2,40],"m":[2,40],"n":[2,40],"o":[2,40],"p":[2,40],"q":[2,40],"r":[2,40],"s":[2,40],"t":[2,40],"j":[2,40],"ae":[2,40],"g":[2,40],"ah":[2,40],"u":[1,e,57],"v":[1,e,58],"w":[1,e,59]},"88":{"h":[2,42],"k":[2,42],"l":[2,42],"m":[2,42],"n":[2,42],"o":[2,42],"p":[2,42],"q":[2,42],"r":[2,42],"s":[2,42],"t":[2,42],"u":[2,42],"v":[2,42],"w":[2,42],"j":[2,42],"ae":[2,42],"g":[2,42],"ah":[2,42]},"89":{"h":[2,43],"k":[2,43],"l":[2,43],"m":[2,43],"n":[2,43],"o":[2,43],"p":[2,43],"q":[2,43],"r":[2,43],"s":[2,43],"t":[2,43],"u":[2,43],"v":[2,43],"w":[2,43],"j":[2,43],"ae":[2,43],"g":[2,43],"ah":[2,43]},"90":{"h":[2,44],"k":[2,44],"l":[2,44],"m":[2,44],"n":[2,44],"o":[2,44],"p":[2,44],"q":[2,44],"r":[2,44],"s":[2,44],"t":[2,44],"u":[2,44],"v":[2,44],"w":[2,44],"j":[2,44],"ae":[2,44],"g":[2,44],"ah":[2,44]},"91":{"ab":[1,e,7]},"92":{"i":[1,e,11],"t":[1,e,12],"x":[1,e,13],"y":[1,e,14],"z":[1,e,15],"ab":[1,e,7],"ad":[1,e,16],"af":[1,e,17]},"93":{"i":[1,e,11],"t":[1,e,12],"x":[1,e,13],"y":[1,e,14],"z":[1,e,15],"ab":[1,e,7],"ad":[1,e,16],"af":[1,e,17]},"94":{"h":[2,9],"i":[2,9],"ac":[2,9],"ad":[2,9],"k":[2,9],"l":[2,9],"m":[2,9],"n":[2,9],"o":[2,9],"p":[2,9],"q":[2,9],"r":[2,9],"s":[2,9],"t":[2,9],"u":[2,9],"v":[2,9],"w":[2,9],"j":[2,9],"ae":[2,9],"g":[2,9],"aa":[2,9],"ah":[2,9]},"95":{"ab":[1,e,7]},"96":{"h":[2,10],"i":[2,10],"ac":[2,10],"ad":[2,10],"k":[2,10],"l":[2,10],"m":[2,10],"n":[2,10],"o":[2,10],"p":[2,10],"q":[2,10],"r":[2,10],"s":[2,10],"t":[2,10],"u":[2,10],"v":[2,10],"w":[2,10],"j":[2,10],"ae":[2,10],"g":[2,10],"aa":[2,10],"ah":[2,10]},"97":{"i":[2,58],"ac":[2,58],"ad":[2,58],"h":[2,58],"k":[2,58],"l":[2,58],"m":[2,58],"n":[2,58],"o":[2,58],"p":[2,58],"q":[2,58],"r":[2,58],"s":[2,58],"t":[2,58],"u":[2,58],"v":[2,58],"w":[2,58],"j":[2,58],"ae":[2,58],"g":[2,58],"aa":[2,58],"ah":[2,58]},"98":{"ae":[2,25],"g":[2,25]},"99":{"ah":[2,20],"g":[2,20]},"100":{"ah":[2,21],"g":[2,21]},"101":{"ah":[2,23],"g":[2,23]},"102":{"h":[1,e,108],"i":[1,e,32]},"103":{"j":[2,54],"g":[2,54]},"104":{"g":[1,e,95],"j":[1,e,109]},"105":{"g":[2,12],"j":[2,12]},"106":{"i":[1,e,32],"aa":[1,e,92]},"107":{"j":[2,52],"g":[2,52]},"108":{"a":[2,5],"e":[2,5],"c":[2,5],"f":[2,5],"b":[2,5],"d":[2,5]},"109":{"h":[2,8],"i":[2,8],"ac":[2,8],"ad":[2,8],"k":[2,8],"l":[2,8],"m":[2,8],"n":[2,8],"o":[2,8],"p":[2,8],"q":[2,8],"r":[2,8],"s":[2,8],"t":[2,8],"u":[2,8],"v":[2,8],"w":[2,8],"j":[2,8],"ae":[2,8],"g":[2,8],"aa":[2,8],"ah":[2,8]}}},o.parse=function(n,a){var r,o,u,p,l,c=this,h=c.lexer,f=c.table,m=f.gotos,d=f.action,b=c.productions,v=a?"in file: "+a+" ":"",y=[],x=[0],g=[];for(h.resetInput(n,a);;){if(r=t(x),o||(o=h.lex()),!(p=o?d[r]&&d[r][o]:null)){var E,w=[];throw d[r]&&i(d[r],function(e,t){p=e[s.TYPE_INDEX];var n=[];n[s.SHIFT_TYPE]="shift",n[s.REDUCE_TYPE]="reduce",n[s.ACCEPT_TYPE]="accept",w.push(n[p]+":"+c.lexer.mapReverseSymbol(t))}),E=v+"syntax error at line "+h.lineNumber+":\n"+h.showDebugInfo()+"\nexpect "+w.join(", "),new Error(E)}switch(p[s.TYPE_INDEX]){case s.SHIFT_TYPE:g.push(o),y.push(h.text),x.push(p[s.TO_INDEX]),o=null;break;case s.REDUCE_TYPE:var S=b[p[s.PRODUCTION_INDEX]],j=S.symbol||S[0],$=S.action||S[2],T=S.rhs||S[1],C=T.length;l=t(y,C),u=e,c.$$=l;for(var k=0;k 0?e:(e=c(t,"width"),(null==e||Number(e) <0)&&(e=t.style.width||0),e=parseFloat(e)||0,e+=parseFloat(c(t, "paddingLeft"))||0,e+=parseFloat(c(t, "borderLeftWidth"))||0,e+=parseFloat(c(t, "paddingRight"))||0,e+=parseFloat(c(t, "borderRightWidth"))||0)}function v(t){if(9==t.nodeType)return Math.max(document.document.documentElement.scrollHeight||0,document.body.documentElement.scrollHeight||0,p());var e=t.offsetHeight;return e>0?e:(e=c(t,"height"),(null==e||Number(e) <0)&&(e=t.style.height||0),e=parseFloat(e)||0,e+=parseFloat(c(t, "paddingTop"))||0,e+=parseFloat(c(t, "borderTopHeight"))||0,e+=parseFloat(c(t, "paddingBottom"))||0,e+=parseFloat(c(t, "borderBottomHeight"))||0)}function b(t){var e=m(),n=g();if(t.getBoundingClientRect){var o=t.getBoundingClientRect(),i=document,a=i.body,r=i&&i.documentElement,c=window.getComputedStyle&&window.getComputedStyle(t).zoom||1;e+=o.left*c-(r.clientLeft||a.clientLeft||0),n+=o.top*c-(r.clientTop||a.clientTop||0)}return{ "left":e, "top":n}}function _(t){var e,n,o,i=[];return function(a,r){return 0===r||r||(r=1),1&r&&!n&&(n=!0,t(function(t){for(e=t;o=i.shift();)try{o&&o.apply(null,[e])}catch(n){setTimeout(function(){throw n},0)}})),e?(a&&a.apply(null,[e]),e):(2&r||a&&i.push(a),e)}}function w(t,e,n){function o(){a&&(a.cancel(),a=0),r=+new Date,t.apply(n||this,arguments),c=+new Date}function i(t,e){var n=setTimeout(t,e);return{ "cancel":function(){clearTimeout(n)}}}var a,r=0,c=0,e=e||150,d=function(){var t=arguments;!r||c>=r&&+new Date-c>e||c 8*e?o():(a&&a.cancel(),a=i(function(){o.apply(null,t)},e))};return d.stop=function(){a&&(a.cancel(),a=0)},d}function A(t,e,n){function o(){i?t[--i].call(null,e,o):n(e)}var i=t.length;o()}function k(t,e,n){if(!t.offsetWidth&&!t.offsetHeight)return!1;var o,i=b(t),a=window.getComputedStyle&&window.getComputedStyle(t).zoom||1,r=!0,c=i.left,d=i.top,l={"left":c,"top":d,"right":c+y(t)*a,"bottom":d+v(t)*a};return o=F(e,l),o&&n&&(r=F(n,l)),r&&o}function S(t){return/^(loaded|complete)$/.test(document.readyState)?t():window.addEventListener?window.addEventListener("load",t,!1):window.attachEvent?window.attachEvent("onload",t):void 0}function C(t){for(var e=["webkit",""],n=M.createElement("div"),o=e.length,o=0,i=e.length;o =n.top&&n.right>=n.left}function E(t,e,n,i){"img-src"===e&&(e="img"),o(t)||(t=[f(t)]);var a=new H(M,{});a.set("imgFlag",n||L+W),a.set("areaFlag",n||z+W),a.set("onStart",i),a.set("force",!0),a.addElements(t,e)}var R,D="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},T=t("@ali/mui-zepto/zepto"),I=t("@ali/mui-zepto/event"),x=window,M=x.document,L="data-ks-lazyload",z="ks-datalazyload",W="-custom",O="default",N="none",B="scroll",P="touchmove",V="mousewheel",j="datalazyload:refresh",X="resize",$=100,G=0,Q=navigator.userAgent.match(/iPad|iPod|iPhone/);H.prototype={"get":function(t){return this["ATTR_"+t]},"set":function(t,e){this["ATTR_"+t]=e},"addStartListener":function(t){var e=this._startLis;if(t){for(var n=e.length-1;n>=0;n--)if(e[n]==t)return;e.push(t)}},"_initLoadEvent":function(){var e=this;e.addStartListener(function(t,n){var o=e.get("onStart");if(o){var i=o.apply(this,arguments);!0!==i&&!1!==i||(t.returnValue=i)}n()}),e.addStartListener(function(n,o){if("img"!=n.type)return void o();var i=e.get("webpReplacer");"function"==typeof i?t(["@ali/lzdmod-datalazyload/webp"],function(t){t.isSupport(function(t){t&&(n.src=i(n.src)),o()})}):o()}),e.imgHandle=function(){var t=this,n=e.get("imgFlag")||L,o=t.getAttribute(n);o&&A(e._startLis,{"type":"img","elem":t,"src":o},function(o){if(!1!==o.returnValue){if(o.src&&t.src!=o.src){if(e.isFade){var i=function n(){l(t,"load",n),T(t).removeClass(r),T(t).addClass(a),e.refresh()},a="img-ks-lazyload",r="img-ks-beforeload";T(t).addClass(r),d(t,"load",i)}t.src=o.src}t.removeAttribute(n)}})},e.bgimgHandle=function(){var t=this,n=(e.get("imgFlag")||L)+"-bg",o=t.getAttribute(n);o&&A(e._startLis,{"type":"bgimg","elem":t,"bgimgSrc":o},function(e){if(!1!==e.returnValue){if(e.bgimgSrc){var o,i,a=t&&t.filters;try{o=a&&a.item("DXImageTransform.Microsoft.AlphaImageLoader"),i=a&&a.item("DXImageTransform.Microsoft.Matrix")}catch(c){}if(o){var r=function(t,e){var n=new Image;n.style.position="absolute",n.style.visibility="visible",n.onload=n.onerror=function(){e(n),document.body.removeChild(n),n=null},document.body.appendChild(n),n.src=t};if(o.src=e.bgimgSrc,o.enabled=!0,!i||!t.offsetWidth||!t.offsetHeight)return;r(e.bgimgSrc,function(e){if(e.offsetWidth&&e.offsetHeight){var n="cover"==t.currentStyle["background-size"]?"cover":"contain";e.offsetHeight/e.offsetWidth>t.offsetHeight/t.offsetWidth==("contain"==n)?(i.M11=t.offsetHeight*e.offsetWidth/(t.offsetWidth*e.offsetHeight),i.M22=1,i.Dx=t.offsetWidth*(1-i.M11)/2,i.Dy=0):(i.M11=1,i.M22=t.offsetWidth*e.offsetHeight/(t.offsetHeight*e.offsetWidth),i.Dx=0,i.Dy=t.offsetHeight*(1-i.M22)/2),i.enabled=!0}})}else t.style.backgroundImage="url("+e.bgimgSrc+")"}t.removeAttribute(n)}})},e.textareaHandle=function(){var t=this;t.style.display=N,t.className="";var n=document.createElement("div");t.parentNode.insertBefore(n,t),A(e._startLis,{"type":"textarea","elem":t,"value":t.value},function(t){!1!==t.returnValue&&(u(n,t.value,e.get("execScript")),e.addElements(n),e.refresh())})},e._loadFn=w(function(){if(e._inited&&e._started&&e.get("autoDestroy")){var t=e._callbacks,n=!0;for(var o in t)if(t.hasOwnProperty(o)&&t[o]!==undefined){n=!1;break}n&&e.destroy()}e._started&&e._loadItems()},$,e),e._onScroll=function(t){e._diffRatio=Math.max(Q?4:2,e._diffRatio),e._loadFn()}},"refresh":function(){this._loadFn()},"_loadItems":function(){var t=this,e=t.get("container"),n=t._callbacks;if(!t._containerIsNotDocument||e.offsetWidth){t._windowRegion=t._getBoundingRect(),!t._backCompact&&t._containerIsNotDocument&&(t._containerRegion=t._getBoundingRect(t.get("container")));for(var o in n)if(n.hasOwnProperty(o)){var i=n[o];i&&t._loadItem(o,i)}}},"_loadItem":function(t,e){var n=this,e=e||n._callbacks[t];if(!e)return!0;n._lastDiff!=n.get("diff")&&(n._windowRegion=n._getBoundingRect(),!n._backCompact&&n._containerIsNotDocument&&(n._containerRegion=n._getBoundingRect(n.get("container"))),n._lastDiff=n.get("diff"));var o=e.el,i=!1,a=e.fn;if(n.get("force")||k(o,n._windowRegion,n._containerRegion))try{i=a.call(o)}catch(r){setTimeout(function(){throw r},0)}return!1!==i&&delete n._callbacks[t],i},"addCallback":function(t,e){t=f(t);var n=this,o=n._callbacks,i={"el":t||document,"fn":e||function(){}},a=++G;return o[a]=i,n._windowRegion?n._loadItem(a,i):n.refresh(),a},"removeCallback":function(t,e){t=f(t);var n=this._callbacks;for(var o in n)if(n.hasOwnProperty(o)){var i=n[o];i.el==t&&(e?i.fn==e:1)&&delete n[o]}},"getElements":function(){var t=this,e=[],n=[],o=t._callbacks;for(var i in o)if(o.hasOwnProperty(i)){var a=o[i];a.fn==t.imgHandle&&e.push(a.el),a.fn==t.textareaHandle&&n.push(a.el)}return{"images":this._images,"textareas":this._textareas}},"addElements":function(t,e){function n(t){return function(e){t.src||(t.src=e)}}function o(t){return function(){setTimeout(function(){i._loadItem(t)},0)}}t=a(t);var i=this;i._addStyle();for(var r=0;r =0;c--)if(t[c]==i){delete n[o],r=!0;break}if(r)break}},"_getBoundingRect":function(t){var e,n,o,i;if(t!==undefined){e=v(t),n=y(t);var a=b(t);o=a.left,i=a.top}else e=p(),n=h(),o=m(),i=g();var r=this.get("diff"),c=this._diffRatio;return r===O?r={"left":0,"top":0,"right":n*c,"bottom":e*c}:"object"!==(void 0===r?"undefined":D(r))&&(r={"left":r,"top":r,"right":r,"bottom":r}),{"left":o-(r.left||0),"top":i-(r.top||0),"right":o+n+(r.right||0),"bottom":i+e+(r.bottom||0)}},"pause":function(){var t=this,e=t._onScroll,n=t._loadFn;if(!t._destroyed&&t._started){if(l(x,B,e),l(x,P,e),l(x,V,e),l(x,X,n),n.stop(),t._containerIsNotDocument){var o=t.get("container");l(o,B,e),l(o,P,e),l(o,V,e)}t._started=!1}},"resume":function(){var t=this,e=t._onScroll,n=t._loadFn;if(!t._destroyed&&!t._started){if(d(x,B,e),d(x,V,e),d(x,P,e),d(x,X,n),t._containerIsNotDocument){var o=t.get("container");d(o,B,e),d(o,V,e),d(o,P,e)}t._started=!0,t._loadFn()}},"destroy":function(){var t=this;t.pause(),t._callbacks={},t._destroyed=1},"_addStyle":function(){var t=this;t._fade&&(t.isFade=t.get("fade"),t.isFade&&!R&&(R=!0,r("@-webkit-keyframes ks-fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes ks-fadeIn{0%{opacity:0}100%{opacity:1}}.img-ks-lazyload{-webkit-animation:ks-fadeIn 350ms linear 0ms 1 normal both;animation:ks-fadeIn 350ms linear 0ms 1 normal both;opacity:1}.img-ks-beforeload{opacity:0}")))}},H.loadCustomLazyData=E;var Y;H.instance=function(){return Y||(Y=new H(null,{"autoDestroy":!1}))},n.exports=H});