sdk.js 57 KB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.yo_sdk=e():t.yo_sdk=e()}(window,function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=49)}([function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var o=n(36),r=n(22);t.exports=function(t){return o(r(t))}},function(t,e,n){var o=n(5),r=n(17);t.exports=n(6)?function(t,e,n){return o.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var o=n(16),r=n(38),i=n(27),a=Object.defineProperty;e.f=n(6)?Object.defineProperty:function(t,e,n){if(o(t),e=i(e,!0),o(n),r)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){t.exports=!n(7)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var o=n(25)("wks"),r=n(14),i=n(1).Symbol,a="function"==typeof i;(t.exports=function(t){return o[t]||(o[t]=a&&i[t]||(a?i:r)("Symbol."+t))}).store=o},function(t,e,n){"use strict";var o=function(t){return t&&t.__esModule?t:{default:t}}(n(52));var r=function(t){var e=decodeURIComponent(document.location.href);t&&(e=decodeURIComponent(t));var n="",o=[],r=[];e.indexOf("?")>0&&(n=e.split("?")[1]),n.length>0&&(o=n.split("#")[0].split("&"));for(var i=0;i<o.length;i++){var a={};if(a.name=o[i].split("=")[0],a.value=o[i].split("=")[1],o[i].split("=").length>2)for(var s=2;s<o[i].split("=").length;s++)a.value+="="+o[i].split("=")[s];r.push(a)}var u={};for(i=0;i<r.length;i++)u[r[i].name]=r[i].value;return u},i={Android:function(){return!!navigator.userAgent.match(/Android/i)},BlackBerry:function(){return!!navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return!!navigator.userAgent.match(/iPhone|iPad|iPod/i)},Windows:function(){return!!navigator.userAgent.match(/IEMobile/i)},any:function(){return i.Android()||i.BlackBerry()||i.iOS()||i.Windows()}};t.exports={invokeMethod:function(t){window.yohoInterface?window.yohoInterface.triggerEvent(t.success||function(){},t.fail||function(){},{method:t.method,arguments:t.args}):t.fail&&t.fail()},getQueryObj:r,linkToMiniApp:function(t,e){var n=t||"";if(n&&n.indexOf("http")<0&&"other"===e&&(n=document.location.protocol+"//"+document.location.host+n),n){var i;if("product"===e||"brand"===e)i=n;else{var a=decodeURIComponent(n).split("?")[0],s=r(n),u="";(0,o.default)(s).forEach(function(t){u+=""===u?"?"+t+"="+s[t]:"&"+t+"="+s[t]}),i="/pages/webview/webview?url="+a+encodeURIComponent(u)}return wx.miniProgram.navigateTo({url:i}),!1}return!0},createLinkButton:function(t,e){var n=document.createElement("a");return n.style.position="fixed",n.style.top=0,n.style.left=0,n.style.border="none",n.style.outline="none",n.style.resize="none",n.style.background="transparent",n.style.color="transparent",n.setAttribute("id",e),n.setAttribute("href",t),document.body.appendChild(n),n},image:function(t,e,n,o,r){return o=isNaN(Number(o))?2:o,(t=(t=t||"").replace(/{width}/g,e).replace(/{height}/g,n).replace(/{mode}/g,o)).indexOf("imageView2")>0&&(t+="/q/"+(r=r||90)),t.replace("quality/80","quality/60").replace("http:","")},isMobile:i}},function(t,e,n){var o=n(35),r=n(26);t.exports=Object.keys||function(t){return o(t,r)}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){"use strict";var o=n(34);t.exports=function(t){return new o(function(e,n){(t=t||{}).data=t.data||{};var o=t.jsonp;window[o]&&(o+=Math.floor(1e3*Math.random()),t.jsonp=o),t.data.callback=o;var r=function(t){var e=[];for(var n in t)e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));var o=new Date;return e.push("v="+o.getTime()),e.join("&")}(t.data),i=document.createElement("script");document.body.appendChild(i),window[o]=function(t){return document.body.removeChild(i),clearTimeout(i.timer),window[o]=null,e(t)},i.src=t.url+"?"+r,t.timeout&&(i.timer=setTimeout(function(){window[o]=null,document.body.removeChild(i),n({message:"超时"})},t.timeout))})}},function(t,e){t.exports=!0},function(t,e){var n=0,o=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+o).toString(36))}},function(t,e,n){var o=n(1),r=n(0),i=n(59),a=n(4),s=n(2),u=function(t,e,n){var c,f,l,p=t&u.F,d=t&u.G,h=t&u.S,m=t&u.P,y=t&u.B,v=t&u.W,g=d?r:r[e]||(r[e]={}),b=g.prototype,w=d?o:h?o[e]:(o[e]||{}).prototype;for(c in d&&(n=e),n)(f=!p&&w&&void 0!==w[c])&&s(g,c)||(l=f?w[c]:n[c],g[c]=d&&"function"!=typeof w[c]?n[c]:y&&f?i(l,o):v&&w[c]==l?function(t){var e=function(e,n,o){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,o)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):m&&"function"==typeof l?i(Function.call,l):l,m&&((g.virtual||(g.virtual={}))[c]=l,t&u.R&&b&&!b[c]&&a(b,c,l)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,n){var o=n(11);t.exports=function(t){if(!o(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){"use strict";var o=function(t){return t&&t.__esModule?t:{default:t}}(n(33));var r,i=n(12),a=n(20),s=n(9),u=n(34),c=s.getQueryObj,f="";t.exports={env:function(){var t=window.__wxjs_environment;return!t&&navigator.userAgent.match(/yohobuy/i)?(f="app",document.addEventListener("deviceready",function(){})):f=!t&&navigator.userAgent.match(/miniProgram/i)||"miniprogram"===t?"miniprogram":"https://www.yohobuy.com"===location.origin?"pc":"h5",f},loginUrl:function(){var t,e=location.href;return"app"===f?(t="http://m.yohobuy.com/signin.html?refer="+encodeURIComponent(e),e=function(t){var e,n,o,r={};if((e=((t=(t||"").split("?"))[1]||"").split("&"))&&e.length)for(o=0;o<e.length;o++)r[(n=e[o].split("="))[0]]=n[1];return{path:t[0],query:r}}(e),/Android/i.test(navigator.userAgent||"")?(t.indexOf("?")<0&&(t+="?appLogin=1"),location.href.indexOf("&openby")>=0&&(t=t.substring(0,t.indexOf("&openby"))),t+="&"):(location.href.indexOf("#openby")>=0&&(t=t.substring(0,t.indexOf("#openby"))),t+="#"),t+="openby:yohobuy="+(0,o.default)({action:"go.weblogin",params:{priority:"N",jumpurl:{url:e.path,param:e.query},needlogout:"Y"}})):"pc"===f?t="https://www.yoho/signin.html?refer="+encodeURIComponent(location.href):"miniprogram"===f?t="/pages/userCenter/userCenter":(e.indexOf("?")<0?e+="?skcall=1":e+="&skcall=1",t="http://m.yohobuy.com/signin.html?refer="+encodeURIComponent(e)),t},getUser:function(t){return new u(function(e){var n={sessionType:a.cookie("app_client_type")||c().app_client_type||"",appVersion:a.cookie("app_version")||c().app_version||""};if("h5"===f||"pc"===f){if(!t&&r)return e(r);i({url:"//m.yohobuy.com/passport/login/user",jsonp:"callback"}).then(function(t){n.uid=0,n.sessionKey=a.cookie("app_session_key")||c().session_key||"",200!==t.code&&403!==t.code||(n.uid=Number(t.data)||0,r=n),e(n)})}else"app"===f?document.addEventListener("deviceready",function(){return u.all([new u(function(t){s.invokeMethod({method:"get.uid",arguments:{},success:function(e){t(parseInt(e))},fail:function(){var e=Number(a.cookie("app_uid"))||Number(c().uid)||0;t(e)}})}),new u(function(t){s.invokeMethod({method:"get.sessionId",arguments:{},success:function(e){t(e)},fail:function(){var e=a.cookie("app_session_key")||c().session_key||"";t(e)}})})]).then(function(t){n.uid=t[0],n.sessionKey=t[1],e(n)})}):(n.uid=Number(a.cookie("app_uid"))||Number(c().uid)||0,n.sessionKey=a.cookie("app_session_key")||c().session_key||"",e(n))})}}},function(t,e,n){"use strict";t.exports={cookie:function(t){return new RegExp(t+"=([^;$]*)","i").test(decodeURIComponent(document.cookie))?RegExp.$1:""},setCookie:function(t,e,n){var o,r,i,a,s="";void 0!==e&&(n=n||{},null===e&&(e="",n.expires=-1),n.expires&&("number"==typeof n.expires||n.expires.toUTCString)&&("number"==typeof n.expires?(a=new Date).setTime(a.getTime()+24*n.expires*60*60*1e3):a=n.expires,s="; expires="+a.toUTCString()),o=n.path?"; path="+n.path:"",r=n.domain?"; domain="+n.domain:"",i=n.secure?"; secure":"",document.cookie=[t,"=",encodeURIComponent(e),s,o,r,i].join(""))}}},function(t,e,n){var o=n(22);t.exports=function(t){return Object(o(t))}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on  "+t);return t}},function(t,e){var n=Math.ceil,o=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?o:n)(t)}},function(t,e,n){var o=n(25)("keys"),r=n(14);t.exports=function(t){return o[t]||(o[t]=r(t))}},function(t,e,n){var o=n(0),r=n(1),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:o.version,mode:n(13)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var o=n(11);t.exports=function(t,e){if(!o(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!o(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!o(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!o(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){t.exports={}},function(t,e,n){var o=n(5).f,r=n(2),i=n(8)("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,i)&&o(t,i,{configurable:!0,value:e})}},function(t,e,n){e.f=n(8)},function(t,e,n){var o=n(1),r=n(0),i=n(13),a=n(31),s=n(5).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e,n){t.exports={default:n(51),__esModule:!0}},function(t,e,n){"use strict";function o(t){var e=this;e._value=null,e._reason=function(){},e._resolves=[],e._rejects=[],e._status="PENDING",this.then=function(t,n){return new o(function(o,r){function i(e){var n="function"==typeof t&&t(e)||e;n&&"function"==typeof n.then?n.then(function(t){o(t)},function(t){r(t)}):o(n)}function a(t){t="function"==typeof n&&n(t)||t,r(t)}"PENDING"===e._status?(e._resolves.push(i),e._rejects.push(a)):"FULFILLED"===e._status?i(e._value):"REJECTED"===e._status&&a(e._reason)})},t(function(t){setTimeout(function(){e._status="FULFILLED",e._resolves.forEach(function(n){e._value=n(t)})},0)},function(t){setTimeout(function(){e._status="REJECTED",e._rejects.forEach(function(n){e._reason=n(t)})},0)})}o.all=function(t){if(!Array.isArray(t))throw new TypeError("You must pass an array to all.");return new o(function(e,n){var o=0,r=[],i=t.length,a=i;function s(t){return function(n){!function(t,n){r[t]=n,0==--a&&e(r)}(t,n)}}function u(t){n(t)}for(;o<i;o++)t[o].then(s(o),u)})},o.race=function(t){if(!Array.isArray(t))throw new TypeError("You must pass an array to race.");return new o(function(e,n){var o=0,r=t.length;function i(t){e(t)}function a(t){n(t)}for(;o<r;o++)t[o].then(i,a)})},t.exports=o},function(t,e,n){var o=n(2),r=n(3),i=n(55)(!1),a=n(24)("IE_PROTO");t.exports=function(t,e){var n,s=r(t),u=0,c=[];for(n in s)n!=a&&o(s,n)&&c.push(n);for(;e.length>u;)o(s,n=e[u++])&&(~i(c,n)||c.push(n));return c}},function(t,e,n){var o=n(37);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==o(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){t.exports=!n(6)&&!n(7)(function(){return 7!=Object.defineProperty(n(39)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var o=n(11),r=n(1).document,i=o(r)&&o(r.createElement);t.exports=function(t){return i?r.createElement(t):{}}},function(t,e,n){"use strict";var o=n(9);n(19);t.exports=function(t){var e=this;e.env=t.env,e.url=t.loginUrl,e.goLogin=function(){if("miniprogram"===e.env)wx.miniProgram.switchTab({url:e.url});else if("app"===e.env){var t=document.getElementById("yosdk-login");t||(t=o.createLinkButton(e.url,"yosdk-login")),t.click()}else window.location.href=e.url;return!1},e.auth=function(t,n){if(!n.uid)return[].forEach.call(t,function(t){t.onclick=function(t){t.preventDefault(),e.goLogin()}}),!0}}},function(t,e,n){"use strict";n(63);var o=n(64);t.exports=function(t){var e=new function(t){var e=this;this.conf={srcTarget:t&&t.srcTarget||"data-original",selector:t&&t.selector||".yo-lazy"},this.io=new IntersectionObserver(function(t){t.forEach(function(t){if(t.intersectionRatio>0){e.io.unobserve(t.target);var n=t.target.getAttribute(e.conf.srcTarget);"img"===t.target.tagName.toLowerCase()?n&&(t.target.src=n):t.target.style.backgroundImage="url("+o(n)+")",t.target.setAttribute("data-load","false")}})},{root:null,rootMargin:"0px",threshold:[0]});var n=document.querySelectorAll(this.conf.selector);this.loading=function(){n.forEach(function(t){e.io.observe(t)})}}(t);void 0!==window.supportWebp?e.loading():document.addEventListener("supportWebp",e.loading)}},function(t,e,n){t.exports={default:n(65),__esModule:!0}},function(t,e,n){"use strict";var o=function(t){return t&&t.__esModule?t:{default:t}}(n(42));var r='<div class="tip {{tipClassName}}"><div class="title">{{title}}</div><div class="content">{{content}}</div><a class="button {{buttonClass}}">{{button}}</a></div>',i=75;function a(t,e){var n=1e3/i,o=n/e;""===t.style.opacity&&(t.style.opacity=1),""!==t.style.display&&"none"!==t.style.display||(t.style.display="block"),t.timer&&clearInterval(t.timer),t.timer=setInterval(function(){t.style.opacity>o?t.style.opacity=parseFloat(t.style.opacity)-n/e:(clearInterval(t.timer),t.style.opacity=0,t.style.display="none")},n)}t.exports={showTip:function(t){var e=null;if((t=t||{title:"",content:"",close:!0}).tipClassName=t.tipClassName||"",t.close?(t.buttonClass="close",t.button="返回"):(t.buttonClass="refresh",t.button="刷新"),document.getElementById("yo-tip")){var n=(e=document.getElementById("yo-tip")).querySelector(".tip");n.setAttribute("class","tip "+t.tipClassName),n.querySelector(".title").innerHTML=t.title,n.querySelector(".content").innerHTML=t.content;var o=n.querySelector(".button");o.setAttribute("class","button "+t.buttonClass),o.innerHTML=t.button}else{for(var s in t)r=r.replace(new RegExp("\\{\\{"+s+"\\}\\}","g"),t[s]);(e=document.createElement("div")).setAttribute("id","yo-tip"),e.setAttribute("class","featuretip tip-wrap"),e.innerHTML=r,document.body.appendChild(e),e.addEventListener("click",function(t){"featuretip tip-wrap"===t.target.className&&a(t.currentTarget,300)})}t.close?e.querySelector(".close").onclick=function(t){a(e,300)}:e.querySelector(".refresh").onclick=function(t){location.reload()},function(t,e){var n=1e3/i,o=n/e;""===t.style.opacity&&(t.style.opacity=0),""!==t.style.display&&"none"!==t.style.display||(t.style.display="block"),t.timer&&clearInterval(t.timer),t.timer=setInterval(function(){t.style.opacity<1-o?t.style.opacity=parseFloat(t.style.opacity)+o:(clearInterval(t.timer),t.style.opacity=1)},n)}(e,300)},toast:function(t,e){if(void 0!==t){var n,r=(0,o.default)({bottom:"10%",paddingX:6,paddingY:10,radius:3},e||{}),i={style:"bottom:"+r.bottom+";padding:"+r.paddingY+"px "+r.paddingX+";border-radius:"+r.radius+"px;",content:t};if(document.getElementById("yo-toast")){var a=(n=document.getElementById("yo-toast")).querySelector(".feature-toast-content");a.setAttribute("style",i.style),a.innerHTML=i.content}else{var s;for(var u in(n=document.createElement("div")).setAttribute("class","feature-toast feature-toast-wrap"),n.setAttribute("id","yo-toast"),i)s='<div style="{{style}}" class="feature-toast-content">{{content}}</div>'.replace(new RegExp("\\{\\{"+u+"\\}\\}","g"),i[u]);n.innerHTML=s,document.body.appendChild(n)}n.style.display="block",this.toastTimer&&clearTimeout(this.toastTimer),this.toastTimer=setTimeout(function(){n.style.display="none"},r.duration&&r.duration>0?r.duration:2e3)}}}},function(t,e,n){"use strict";var o=function(t){return t&&t.__esModule?t:{default:t}}(n(70));function r(t){return new function(t){if("string"==typeof t)this.el=i(document.querySelectorAll(t));else if(t&&!Array.isArray(t)&&"object"===(void 0===t?"undefined":(0,o.default)(t)))this.el=i(t);else{if(!Array.isArray(t)||!t.length)throw"init参数格式错误";this.el=t}var e=this;this.find=function(t){var n=[];return e.el.forEach(function(e){n=n.concat(i(e.querySelectorAll(t)))}),r(n)},this.attr=function(t,n){if(!arguments[0]||"string"!=typeof arguments[0])throw"attr参数格式错误";if(arguments[1]&&"string"==typeof arguments[1])return e.el.forEach(function(e){e.setAttribute(t,n)}),e;if(void 0===arguments[1])return e.el[0].getAttribute(t);throw"attr参数格式错误"},this.hasClass=function(t){if(!t||"string"!=typeof t)throw"hasClass参数格式错误";return e.el.forEach(function(e){if(e.getAttribute("class").indexOf(t)>-1)return!0}),!1},this.show=function(){return e.el.forEach(function(t){t.style.display="block"}),e},this.hide=function(){return e.el.forEach(function(t){t.style.display="none"}),e},this.data=function(t,n){if(!arguments[0]||"string"!=typeof arguments[0])throw"data参数格式错误";return e.attr("data-"+t,n)},this.html=function(t){if(!arguments[0]||"string"!=typeof arguments[0])throw"html参数格式错误";return e.el.forEach(function(e){e.innerHTML=t}),e},this.remove=function(){e.el.forEach(function(t){t.parentNode.removeChild(t)})},this.removeClass=function(t){return e.el.forEach(function(e){e.className=e.className.replace(new RegExp("(\\s|^)"+t+"(\\s|$)"),"")}),e},this.each=function(t){if(!t||"function"!=typeof t)throw"each参数格式错误";e.el.forEach(function(e,n,o){t&&t(n,e,o)})},this.clone=function(){var t=[];return e.el.forEach(function(e){t.push(e.cloneNode(!0))}),r(t)},this.last=function(){return r(e.el[e.el.length-1])},this.after=function(t){if("object"===(void 0===t?"undefined":(0,o.default)(t))&&t.el&&t.el.length)t.el.forEach(function(t){for(var n=0;n<e.el.length;n++)e.el[n].after(t)});else for(var n=0;n<e.el.length;n++)e.el[n].after(t+"");return e},this.appendTo=function(t){if("string"==typeof t){var n=i(document.querySelectorAll(t));n.forEach(function(t,n){for(var o=0;o<e.el.length;o++)t!==e.el[o]&&(n?t.appendChild(e.el[o].cloneNode(!0)):t.appendChild(e.el[o]))})}else{if("object"!==(void 0===t?"undefined":(0,o.default)(t))||!t.el||!t.el.length)throw"格式错误";t.el.forEach(function(t,n){for(var o=0;o<e.el.length;o++)t!==e.el[o]&&(n?t.appendChild(e.el[o].cloneNode(!0)):t.appendChild(e.el[o]))})}return e},this.click=function(t){if(t&&"function"==typeof t)return e.el.forEach(function(e){e.onclick=t.bind(e)}),e;if(void 0!==t)throw"click参数错误";e.el.forEach(function(t){t.click()})}}(t)}function i(t){var e=[];if(t&&t.length)for(var n=0;n<t.length;n++)e.push(t[n]);else{if(!t||t.length)throw"toArray参数格式";e.push(t)}return e}r.extend=function(){var t=arguments;if(!(t.length<2)){for(var e=function t(e){if("object"!==(void 0===e?"undefined":(0,o.default)(e)))return e;if(null==e)return e;var n={};for(var r in e)n[r]=t(e[r]);return n}(t[0]),n=1;n<t.length;n++)for(var r in t[n])e[r]=t[n][r];return e}},t.exports=r},function(t,e,n){"use strict";var o=n(13),r=n(15),i=n(46),a=n(4),s=n(29),u=n(75),c=n(30),f=n(78),l=n(8)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,h,m,y,v){u(n,e,h);var g,b,w,_=function(t){if(!p&&t in O)return O[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",E="values"==m,k=!1,O=t.prototype,I=O[l]||O["@@iterator"]||m&&O[m],S=I||_(m),A=m?E?_("entries"):S:void 0,T="Array"==e&&O.entries||I;if(T&&(w=f(T.call(new t)))!==Object.prototype&&w.next&&(c(w,x,!0),o||"function"==typeof w[l]||a(w,l,d)),E&&I&&"values"!==I.name&&(k=!0,S=function(){return I.call(this)}),o&&!v||!p&&!k&&O[l]||a(O,l,S),s[e]=S,s[x]=d,m)if(g={values:E?S:_("values"),keys:y?S:_("keys"),entries:A},v)for(b in g)b in O||i(O,b,g[b]);else r(r.P+r.F*(p||k),e,g);return g}},function(t,e,n){t.exports=n(4)},function(t,e,n){var o=n(16),r=n(76),i=n(26),a=n(24)("IE_PROTO"),s=function(){},u=function(){var t,e=n(39)("iframe"),o=i.length;for(e.style.display="none",n(77).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;o--;)delete u.prototype[i[o]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=o(t),n=new s,s.prototype=null,n[a]=t):n=u(),void 0===e?n:r(n,e)}},function(t,e,n){var o=n(35),r=n(26).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return o(t,r)}},function(t,e,n){t.exports=n(50)},function(t,e,n){"use strict";var o=n(19),r=n(40),i=n(61),a=n(62),s=n(41),u=n(9),c=n(43),f=n(69),l=n(44),p=n(94);n(95);var d=o.env(),h=new r({loginUrl:o.loginUrl(),env:d}),m=new i(d),y=new a,v=document.querySelectorAll(".auth"),g=document.querySelectorAll(".yoho-conpon"),b=document.querySelectorAll(".yoho-redenvelope"),w=document.querySelectorAll(".product-source");(v.length||g.length||b.length)&&o.getUser().then(function(t){v.length&&h.auth(v,t),g.length&&f.Coupon(g,t),b.length&&f.RedEnvelope(b,t),w.length&&p(w,t,d)}),t.exports={goLogin:h.goLogin.bind(h),getUser:o.getUser,env:d,link:m.link.bind(m),goBack:m.goBack.bind(m),wxShare:y.wxShare.bind(y),wxSignature:y.wxSignature,getQueryObj:u.getQueryObj,invokeMethod:u.invokeMethod,lazyload:s,tip:c.showTip,toast:c.toast,favourite:f.favourite,$:l}},function(t,e,n){var o=n(0),r=o.JSON||(o.JSON={stringify:JSON.stringify});t.exports=function(t){return r.stringify.apply(r,arguments)}},function(t,e,n){t.exports={default:n(53),__esModule:!0}},function(t,e,n){n(54),t.exports=n(0).Object.keys},function(t,e,n){var o=n(21),r=n(10);n(58)("keys",function(){return function(t){return r(o(t))}})},function(t,e,n){var o=n(3),r=n(56),i=n(57);t.exports=function(t){return function(e,n,a){var s,u=o(e),c=r(u.length),f=i(a,c);if(t&&n!=n){for(;c>f;)if((s=u[f++])!=s)return!0}else for(;c>f;f++)if((t||f in u)&&u[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var o=n(23),r=Math.min;t.exports=function(t){return t>0?r(o(t),9007199254740991):0}},function(t,e,n){var o=n(23),r=Math.max,i=Math.min;t.exports=function(t,e){return(t=o(t))<0?r(t+e,0):i(t,e)}},function(t,e,n){var o=n(15),r=n(0),i=n(7);t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],a={};a[t]=e(n),o(o.S+o.F*i(function(){n(1)}),"Object",a)}},function(t,e,n){var o=n(60);t.exports=function(t,e,n){if(o(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,o){return t.call(e,n,o)};case 3:return function(n,o,r){return t.call(e,n,o,r)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){"use strict";var o=n(9);function r(t){this.env=t}r.prototype.link=function(t){var e=t.currentTarget,n=e.getAttribute("data-type")||"other",r=e.getAttribute("data-id")||"",i=e.getAttribute("data-url")||"",a=e.getAttribute("data-name")||"",s="";if("miniprogram"===this.env)return s="product"===n?"/pages/goodsDetail/goodsDetail?productSkn="+r+"&page_name=goodsList&page_param=5":"brand"===n?"/pages/goodsList/brandStore?shop_id="+r+"&shop_name="+a:i,o.linkToMiniApp(s,n);if(s="pc"===this.env?"product"===n?"https://www.yohobuy.com/product/"+r+".html":"brand"===n?"https://www.yohobuy.com/shop/"+a+"-"+r+".html":i:"product"===n?"//m.yohobuy.com/product/"+r+'.html?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":'+r+"}}":"brand"===n?"//m.yohobuy.com/product/index/brand?shop_id="+r+'&openby:yohobuy={"action":"go.shop","params":{"shop_id":"'+r+'","shop_template_type":"1","shop_name":"'+a+'","is_red_shop":"1"}}':i,"app"===this.env){var u=document.getElementById("yosdk-goto");return u?u.setAttribute("href",s):u=o.createLinkButton(s,"yosdk-goto"),u.click()}window.location.href=s},r.prototype.goBack=function(){"app"===this.env?o.invokeMethod({method:"go.back"}):"miniprogram"===this.env?wx.miniProgram.navigateBack():history.go(-1)},t.exports=r},function(t,e,n){"use strict";var o=n(12);function r(){}r.prototype.wxSignature=function(t){o({url:"//action.yoho.cn/api/share/getSignPackage",jsonp:"callback",data:{pageurl:location.href.split("#")[0]}}).then(function(e){if(e.appId){var n=e.appId.toString(),o=e.timestamp,r=e.nonceStr.toString(),i=e.signature.toString();return wx.config({debug:!1,appId:n,timestamp:o,nonceStr:r,signature:i,jsApiList:["checkJsApi","onMenuShareTimeline","onMenuShareAppMessage","onMenuShareQQ","onMenuShareWeibo","hideMenuItems","showMenuItems","hideAllNonBaseMenuItem","showAllNonBaseMenuItem","translateVoice","startRecord","stopRecord","onVoiceRecordEnd","playVoice","pauseVoice","stopVoice","uploadVoice","onVoicePlayEnd","downloadVoice","chooseImage","previewImage","uploadImage","downloadImage","getNetworkType","openLocation","getLocation","hideOptionMenu","showOptionMenu","closeWindow","scanQRCode","chooseWXPay","openProductSpecificView","addCard","chooseCard","openCard"]}),t&&setTimeout(t,500),!0}return!1})},r.prototype.wxShare=function(t){this.wxSignature(function(){var e=t||{title:"",imgUrl:"",desc:"",link:document.location.href,success:function(){}};wx.ready(function(){wx.onMenuShareAppMessage(e),wx.onMenuShareTimeline(e),wx.onMenuShareQQ(e),wx.onMenuShareWeibo(e)})})},t.exports=r},function(t,e){!function(t,e){"use strict";if("IntersectionObserver"in t&&"IntersectionObserverEntry"in t&&"intersectionRatio"in t.IntersectionObserverEntry.prototype)"isIntersecting"in t.IntersectionObserverEntry.prototype||Object.defineProperty(t.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var n=[];r.prototype.THROTTLE_TIMEOUT=100,r.prototype.POLL_INTERVAL=null,r.prototype.USE_MUTATION_OBSERVER=!0,r.prototype.observe=function(t){if(!this._observationTargets.some(function(e){return e.element==t})){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},r.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter(function(e){return e.element!=t}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},r.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},r.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},r.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter(function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]})},r.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map(function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},r.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(i(t,"resize",this._checkForIntersections,!0),i(e,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in t&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},r.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,a(t,"resize",this._checkForIntersections,!0),a(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},r.prototype._checkForIntersections=function(){var e=this._rootIsInDom(),n=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach(function(r){var i=r.element,a=u(i),s=this._rootContainsTarget(i),c=r.entry,f=e&&s&&this._computeTargetAndRootIntersection(i,n),l=r.entry=new o({time:t.performance&&performance.now&&performance.now(),target:i,boundingClientRect:a,rootBounds:n,intersectionRect:f});c?e&&s?this._hasCrossedThreshold(c,l)&&this._queuedEntries.push(l):c&&c.isIntersecting&&this._queuedEntries.push(l):this._queuedEntries.push(l)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},r.prototype._computeTargetAndRootIntersection=function(n,o){if("none"!=t.getComputedStyle(n).display){for(var r=u(n),i=f(n),a=!1;!a;){var c=null,l=1==i.nodeType?t.getComputedStyle(i):{};if("none"==l.display)return;if(i==this.root||i==e?(a=!0,c=o):i!=e.body&&i!=e.documentElement&&"visible"!=l.overflow&&(c=u(i)),c&&!(r=s(c,r)))break;i=f(i)}return r}},r.prototype._getRootRect=function(){var t;if(this.root)t=u(this.root);else{var n=e.documentElement,o=e.body;t={top:0,left:0,right:n.clientWidth||o.clientWidth,width:n.clientWidth||o.clientWidth,bottom:n.clientHeight||o.clientHeight,height:n.clientHeight||o.clientHeight}}return this._expandRectByRootMargin(t)},r.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map(function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100}),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},r.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,o=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==o)for(var r=0;r<this.thresholds.length;r++){var i=this.thresholds[r];if(i==n||i==o||i<n!=i<o)return!0}},r.prototype._rootIsInDom=function(){return!this.root||c(e,this.root)},r.prototype._rootContainsTarget=function(t){return c(this.root||e,t)},r.prototype._registerInstance=function(){n.indexOf(this)<0&&n.push(this)},r.prototype._unregisterInstance=function(){var t=n.indexOf(this);-1!=t&&n.splice(t,1)},t.IntersectionObserver=r,t.IntersectionObserverEntry=o}function o(t){this.time=t.time,this.target=t.target,this.rootBounds=t.rootBounds,this.boundingClientRect=t.boundingClientRect,this.intersectionRect=t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0},this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,n=e.width*e.height,o=this.intersectionRect,r=o.width*o.height;this.intersectionRatio=n?Number((r/n).toFixed(4)):this.isIntersecting?1:0}function r(t,e){var n=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=function(t,e){var n=null;return function(){n||(n=setTimeout(function(){t(),n=null},e))}}(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map(function(t){return t.value+t.unit}).join(" ")}function i(t,e,n,o){"function"==typeof t.addEventListener?t.addEventListener(e,n,o||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,n)}function a(t,e,n,o){"function"==typeof t.removeEventListener?t.removeEventListener(e,n,o||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,n)}function s(t,e){var n=Math.max(t.top,e.top),o=Math.min(t.bottom,e.bottom),r=Math.max(t.left,e.left),i=Math.min(t.right,e.right),a=i-r,s=o-n;return a>=0&&s>=0&&{top:n,bottom:o,left:r,right:i,width:a,height:s}}function u(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function c(t,e){for(var n=e;n;){if(n==t)return!0;n=f(n)}return!1}function f(t){var e=t.parentNode;return e&&11==e.nodeType&&e.host?e.host:e}}(window,document)},function(t,e,n){"use strict";var o=function(t){return t&&t.__esModule?t:{default:t}}(n(42));n(68);t.exports=function(t,e){if(!t)return t;e=(0,o.default)({q:60},e);var n=t.split("?"),r=n[0],i=n[1]||"";return i&&"imageslim"!==i?/imageView/.test(i)?(/\/q\/\d+/.test(i)?t=t.replace(/\/q\/\d+/g,"/q/"+e.q):t+="/q/"+e.q,window.supportWebp&&!/format\//i.test(i)&&(t+="/format/webp"),window.supportWebp&&(/format\/png/i.test(i)||/format\/jpg/i.test(i))&&(t=t.replace(/format\/png/i,"format/webp").replace(/format\/jpg/i,"format/webp"))):/imageMogr/.test(i)&&(/\/quality\/\d+/.test(i)?t=t.replace(/\/quality\/\d+/g,"/quality/"+e.q):t+="/quality/"+e.q,window.supportWebp&&!/format\//.test(i)&&(t+="/format/webp"),window.supportWebp&&(/format\/png/i.test(i)||/format\/jpg/i.test(i))&&(t=t.replace(/format\/png/i,"format/webp").replace(/format\/jpg/i,"format/webp"))):(window.supportWebp?r+="?imageView2/0/interlace/1/format/webp/q/"+e.q:r+=60===e.q?"?imageslim":"?imageView2/0/interlace/1/q/"+e.q,t=r),t}},function(t,e,n){n(66),t.exports=n(0).Object.assign},function(t,e,n){var o=n(15);o(o.S+o.F,"Object",{assign:n(67)})},function(t,e,n){"use strict";var o=n(10),r=n(28),i=n(18),a=n(21),s=n(36),u=Object.assign;t.exports=!u||n(7)(function(){var t={},e={},n=Symbol(),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=o})?function(t,e){for(var n=a(t),u=arguments.length,c=1,f=r.f,l=i.f;u>c;)for(var p,d=s(arguments[c++]),h=f?o(d).concat(f(d)):o(d),m=h.length,y=0;m>y;)l.call(d,p=h[y++])&&(n[p]=d[p]);return n}:u},function(t,e,n){"use strict";!function(t){if(/yoho/i.test(navigator.userAgent)&&/supportWebp/i.test(navigator.userAgent))window.supportWebp=!0;else{var e=new Image;e.onload=function(){var t=e.width>0&&e.height>0;window.supportWebp=t||!1;var n=document.createEvent("HTMLEvents");n.initEvent("supportWebp",!0,!0),document.dispatchEvent(n)},e.onerror=function(){window.supportWebp=!1;var t=document.createEvent("HTMLEvents");t.initEvent("supportWebp",!0,!0),document.dispatchEvent(t)},e.src="data:image/webp;base64,"+{lossy:"UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA"}[t]}}("lossy")},function(t,e,n){"use strict";var o=n(19),r=n(20),i=n(12),a=n(43),s=n(40),u=!1,c=o.env(),f=new s({loginUrl:o.loginUrl(),env:c}),l=function(t){if(!u){var e={bottom:"48%",paddingX:20,paddingY:20,radius:6};return u=!0,i({url:"//m.yohobuy.com/activity/feature/couponSend",jsonp:"callback",timeout:5e3,data:t}).then(function(t){u=!1,200===t.code?a.toast("领取成功",e):401===t.code?a.toast("已经领取",e):t.message?a.toast(t.message,e):a.toast("领取失败",e)}).catch(function(t){u=!1,a.toast("领取失败",e)})}},p=!1,d=function(t){if(!p)return p=!0,i({url:"//m.yohobuy.com/activity/feature/redenvelope",jsonp:"callback",timeout:5e3,data:t}).then(function(t){p=!1,200===t.code&&t.data?"领取成功"===t.data.addMsg?a.showTip({title:"领取成功",content:"成功领取"+t.data.amount+"元红包!",close:!0}):a.showTip({title:"已领取过",content:"今日领取机会已用完",close:!0}):t.message&&a.showTip({title:"领取失败",content:"请刷新重新领取,若多次领取失败,<br>可能网络故障或活动已结束。",close:!1})}).catch(function(t){p=!1,a.showTip({title:"领取失败<br>请刷新重新领取",content:"如多次领取失败,请联系客服人员<br>带来不便敬请谅解",close:!1})})};t.exports={Coupon:function(t,e){if(e.uid){var n=r.cookie("yoho-conpon-token");n&&(l({token:n,uid:e.uid,app:e}),r.setCookie("yoho-conpon-token",""))}return[].forEach.call(t,function(t){t.onclick=function(t){t.preventDefault();var n=t.currentTarget.getAttribute("data-token");e.uid?l({token:n,uid:e.uid,app:e}):f.goLogin()}}),!0},RedEnvelope:function(t,e){if(e.uid){var n=r.cookie("yoho-redenvelope-token");n&&(d({token:n,uid:e.uid,app:e}),r.setCookie("yoho-redenvelope-token",""))}return[].forEach.call(t,function(t){t.onclick=function(t){t.preventDefault();var n=t.currentTarget.getAttribute("data-token");e.uid?d({token:n,uid:e.uid,app:e}):f.goLogin()}}),!0},favourite:function(t){o.getUser().then(function(e){t&&e.uid&&i({url:"//service.yoho.cn/activity/favorite/addFavorite?productSkn="+t+"&uid="+this.uid,jsonp:"callback"}).then(function(t){200===t.code?a.showTip({content:"恭喜您,收藏成功",close:!0}):a.showTip({content:t.message,close:!0})},function(){a.showTip({title:"收藏失败<br>请刷新重新领取",content:"如多次收藏失败,请联系客服人员<br>带来不便敬请谅解",close:!1})})})}}},function(t,e,n){"use strict";e.__esModule=!0;var o=a(n(71)),r=a(n(83)),i="function"==typeof r.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof r.default&&t.constructor===r.default&&t!==r.default.prototype?"symbol":typeof t};function a(t){return t&&t.__esModule?t:{default:t}}e.default="function"==typeof r.default&&"symbol"===i(o.default)?function(t){return void 0===t?"undefined":i(t)}:function(t){return t&&"function"==typeof r.default&&t.constructor===r.default&&t!==r.default.prototype?"symbol":void 0===t?"undefined":i(t)}},function(t,e,n){t.exports={default:n(72),__esModule:!0}},function(t,e,n){n(73),n(79),t.exports=n(31).f("iterator")},function(t,e,n){"use strict";var o=n(74)(!0);n(45)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=o(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var o=n(23),r=n(22);t.exports=function(t){return function(e,n){var i,a,s=String(r(e)),u=o(n),c=s.length;return u<0||u>=c?t?"":void 0:(i=s.charCodeAt(u))<55296||i>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):i:t?s.slice(u,u+2):a-56320+(i-55296<<10)+65536}}},function(t,e,n){"use strict";var o=n(47),r=n(17),i=n(30),a={};n(4)(a,n(8)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=o(a,{next:r(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var o=n(5),r=n(16),i=n(10);t.exports=n(6)?Object.defineProperties:function(t,e){r(t);for(var n,a=i(e),s=a.length,u=0;s>u;)o.f(t,n=a[u++],e[n]);return t}},function(t,e,n){var o=n(1).document;t.exports=o&&o.documentElement},function(t,e,n){var o=n(2),r=n(21),i=n(24)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),o(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){n(80);for(var o=n(1),r=n(4),i=n(29),a=n(8)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<s.length;u++){var c=s[u],f=o[c],l=f&&f.prototype;l&&!l[a]&&r(l,a,c),i[c]=i.Array}},function(t,e,n){"use strict";var o=n(81),r=n(82),i=n(29),a=n(3);t.exports=n(45)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){t.exports={default:n(84),__esModule:!0}},function(t,e,n){n(85),n(91),n(92),n(93),t.exports=n(0).Symbol},function(t,e,n){"use strict";var o=n(1),r=n(2),i=n(6),a=n(15),s=n(46),u=n(86).KEY,c=n(7),f=n(25),l=n(30),p=n(14),d=n(8),h=n(31),m=n(32),y=n(87),v=n(88),g=n(16),b=n(11),w=n(3),_=n(27),x=n(17),E=n(47),k=n(89),O=n(90),I=n(5),S=n(10),A=O.f,T=I.f,M=k.f,L=o.Symbol,j=o.JSON,C=j&&j.stringify,R=d("_hidden"),N=d("toPrimitive"),P={}.propertyIsEnumerable,U=f("symbol-registry"),q=f("symbols"),B=f("op-symbols"),D=Object.prototype,F="function"==typeof L,W=o.QObject,V=!W||!W.prototype||!W.prototype.findChild,H=i&&c(function(){return 7!=E(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(t,e,n){var o=A(D,e);o&&delete D[e],T(t,e,n),o&&t!==D&&T(D,e,o)}:T,z=function(t){var e=q[t]=E(L.prototype);return e._k=t,e},G=F&&"symbol"==typeof L.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof L},Q=function(t,e,n){return t===D&&Q(B,e,n),g(t),e=_(e,!0),g(n),r(q,e)?(n.enumerable?(r(t,R)&&t[R][e]&&(t[R][e]=!1),n=E(n,{enumerable:x(0,!1)})):(r(t,R)||T(t,R,x(1,{})),t[R][e]=!0),H(t,e,n)):T(t,e,n)},J=function(t,e){g(t);for(var n,o=y(e=w(e)),r=0,i=o.length;i>r;)Q(t,n=o[r++],e[n]);return t},$=function(t){var e=P.call(this,t=_(t,!0));return!(this===D&&r(q,t)&&!r(B,t))&&(!(e||!r(this,t)||!r(q,t)||r(this,R)&&this[R][t])||e)},Y=function(t,e){if(t=w(t),e=_(e,!0),t!==D||!r(q,e)||r(B,e)){var n=A(t,e);return!n||!r(q,e)||r(t,R)&&t[R][e]||(n.enumerable=!0),n}},X=function(t){for(var e,n=M(w(t)),o=[],i=0;n.length>i;)r(q,e=n[i++])||e==R||e==u||o.push(e);return o},K=function(t){for(var e,n=t===D,o=M(n?B:w(t)),i=[],a=0;o.length>a;)!r(q,e=o[a++])||n&&!r(D,e)||i.push(q[e]);return i};F||(s((L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===D&&e.call(B,n),r(this,R)&&r(this[R],t)&&(this[R][t]=!1),H(this,t,x(1,n))};return i&&V&&H(D,t,{configurable:!0,set:e}),z(t)}).prototype,"toString",function(){return this._k}),O.f=Y,I.f=Q,n(48).f=k.f=X,n(18).f=$,n(28).f=K,i&&!n(13)&&s(D,"propertyIsEnumerable",$,!0),h.f=function(t){return z(d(t))}),a(a.G+a.W+a.F*!F,{Symbol:L});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Z.length>tt;)d(Z[tt++]);for(var et=S(d.store),nt=0;et.length>nt;)m(et[nt++]);a(a.S+a.F*!F,"Symbol",{for:function(t){return r(U,t+="")?U[t]:U[t]=L(t)},keyFor:function(t){if(!G(t))throw TypeError(t+" is not a symbol!");for(var e in U)if(U[e]===t)return e},useSetter:function(){V=!0},useSimple:function(){V=!1}}),a(a.S+a.F*!F,"Object",{create:function(t,e){return void 0===e?E(t):J(E(t),e)},defineProperty:Q,defineProperties:J,getOwnPropertyDescriptor:Y,getOwnPropertyNames:X,getOwnPropertySymbols:K}),j&&a(a.S+a.F*(!F||c(function(){var t=L();return"[null]"!=C([t])||"{}"!=C({a:t})||"{}"!=C(Object(t))})),"JSON",{stringify:function(t){for(var e,n,o=[t],r=1;arguments.length>r;)o.push(arguments[r++]);if(n=e=o[1],(b(e)||void 0!==t)&&!G(t))return v(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!G(e))return e}),o[1]=e,C.apply(j,o)}}),L.prototype[N]||n(4)(L.prototype,N,L.prototype.valueOf),l(L,"Symbol"),l(Math,"Math",!0),l(o.JSON,"JSON",!0)},function(t,e,n){var o=n(14)("meta"),r=n(11),i=n(2),a=n(5).f,s=0,u=Object.isExtensible||function(){return!0},c=!n(7)(function(){return u(Object.preventExtensions({}))}),f=function(t){a(t,o,{value:{i:"O"+ ++s,w:{}}})},l=t.exports={KEY:o,NEED:!1,fastKey:function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,o)){if(!u(t))return"F";if(!e)return"E";f(t)}return t[o].i},getWeak:function(t,e){if(!i(t,o)){if(!u(t))return!0;if(!e)return!1;f(t)}return t[o].w},onFreeze:function(t){return c&&l.NEED&&u(t)&&!i(t,o)&&f(t),t}}},function(t,e,n){var o=n(10),r=n(28),i=n(18);t.exports=function(t){var e=o(t),n=r.f;if(n)for(var a,s=n(t),u=i.f,c=0;s.length>c;)u.call(t,a=s[c++])&&e.push(a);return e}},function(t,e,n){var o=n(37);t.exports=Array.isArray||function(t){return"Array"==o(t)}},function(t,e,n){var o=n(3),r=n(48).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?function(t){try{return r(t)}catch(t){return a.slice()}}(t):r(o(t))}},function(t,e,n){var o=n(18),r=n(17),i=n(3),a=n(27),s=n(2),u=n(38),c=Object.getOwnPropertyDescriptor;e.f=n(6)?c:function(t,e){if(t=i(t),e=a(e,!0),u)try{return c(t,e)}catch(t){}if(s(t,e))return r(!o.f.call(t,e),t[e])}},function(t,e){},function(t,e,n){n(32)("asyncIterator")},function(t,e,n){n(32)("observable")},function(t,e,n){"use strict";var o=function(t){return t&&t.__esModule?t:{default:t}}(n(33));var r=n(44),i=n(12),a=n(9),s=n(20),u=n(41),c=!1,f=function(t,e,n,r,i){if(n){t.find(".brand-name").html(n.brand_name),t.find(".product-detail").attr("href","//m.yohobuy.com/product/"+n.product_skn+'.html?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":'+n.product_skn+',"from_page_name":"'+function(){var t="";return a.isMobile.iOS()&&(t="iFP_SalesPromotion_h5"),a.isMobile.Android()&&(t="aFP_SalesPromotion_h5"),t}()+'","from_page_param":"'+location.href.split("?")[0]+'"}}'),t.find(".product-name").html(n.product_name),t.find(".vip-price-val").html("¥"+n.vip_price),t.find(".sale-price").html("¥"+n.sales_price),t.data("skn",n.product_skn);var s=t.find(".product-detail-img");s.hasClass("lazy")?s.attr("data-original",a.image(n.default_images,r.w,r.h,2,75)):s.attr("src",a.image(n.default_images,r.w,r.h,2,75)),n.sales_price===n.market_price?t.find(".market-price").hide():t.find(".market-price").html("¥"+n.market_price).show();var u=t.find(".product-brand");u&&(n.shop_id?u.attr("href","//m.yohobuy.com/product/index/brand?domain="+n.brand_domain+'&openby:yohobuy={"action":"go.shop","params":{"shop_id":'+n.shop_id+',"shop_template_type":'+n.shop_template_type||!1):u.attr("href","//m.yohobuy.com/product/index/brand?domain="+n.brand_domain+'&openby:yohobuy={"action":"go.brand","params":{"brand_id":'+n.brand_id+"}}")),i&&(i.I_INDEX||(i.I_INDEX=0),i.I_INDEX++,t.find(".product-detail").attr("fp",(0,o.default)(i)),u&&(i.I_INDEX++,u.attr("fp",(0,o.default)(i))));var c=t.find(".list-product");if(c){var f="",l=e.gender?e.gender:"1,3",p="//list.m.yohobuy.com?gender="+l;c.data("sort")&&(f+=',"sort":'+n.small_sort_id,p+="&sort="+n.small_sort_id),c.data("misort")&&(f+=',"misort":'+n.middle_sort_id,p+="&misort="+n.middle_sort_id),c.data("msort")&&(f+=',"msort":'+n.max_sort_id,p+="&msort="+n.max_sort_id),p+='&openby:yohobuy={"action":"go.list","params":{"actiontype":1,"gender":'+l+f+"}}",c.attr("href",p)}return t.html(t.html()),t}},l=function t(e){if(e.length){var n=e.shift();return n&&n.default_images?n:t(e)}},p=function(t,e,n){var o=t.attr("cloneitem"),a=t.find(".loading"),s=t.find(".feature-product-info"),c=t.data("rownum");if(s.length)if(n.abtest&&(!e.uid||Number(e.uid)%1024>=512))o?r(s[0]).remove():(s.removeClass("novisible"),a.hide());else{var p=t.find(".imgwh").val()||"",d={w:(p=p.split("x")||[])[0]||300,h:p[1]||400},h=t.attr("fp");h=h?JSON.parse(h):"",i({url:"//m.yohobuy.com/activity/individuation",jsonp:"callback",data:r.extend({},e,n)}).then(function(e){if(e&&e.length){if(e.length=e.length-e.length%c,o)for(var i=isNaN(Number(o))?e.length:Number(o),p=0;p<i;p++){var m=l(e);if(0===p){var y=r(s[0]);(v=f(y,n,m,d,h))?v.removeClass("novisible"):y.remove()}else{var v;(v=f(r(s[0]).clone(),n,m,d,h))&&(v.removeClass("novisible"),v.appendTo(t))}}else{for(var g=1;g<e.length;g++)s.last().after(s.clone());var b=t.find(".feature-product-info");b.each(function(t,o){var i=r(o);f(i,n,l(e),d,h)}),b.removeClass("novisible"),a.hide()}u({selector:".lazy"})}else o?r(s[0]).remove():(s.removeClass("novisible"),a.hide())},function(){o?r(s[0]).remove():(s.removeClass("novisible"),a.hide())})}},d=function(t){var e=t.nodeList;delete t.nodeList,r(e).each(function(e,n){var o=(n=r(n)).attr("condition");if(o){o=JSON.parse(o);var i=a.getQueryObj().yh_channel;o.abtest&&(c=!0),i&&(o.yh_channel=i),e>3?setTimeout(function(){p(n,t,o)},300):p(n,t,o)}}),c&&function(t){var e=0x5af3107a40c5;t.uid&&(e=t.uid%1024>=512?0x5af3107a40c3:0x5af3107a40c1),i({url:"//m.yohobuy.com/activity/wechat/1111",jsonp:"jQueryMketCode",data:{cover:1,mkt_code:e,expires:6048e5}}).then(function(){});var n=[];r("a").each(function(){var t=r(this).attr("href");!t||/^#.*$/.test(t)||/^javascript.*$/i.test(t)||n.push(t)});var s=0,u=setInterval(function(){++s>3?clearInterval(u):window._yas&&window._yas.sendAppLogs&&window.appBaseLogs&&(clearInterval(u),window._yas.sendAppLogs({appop:"YB_H5_PAGE_AB_OPEN_L",param:(0,o.default)({C_ID:a.getQueryObj().yh_channel||1,PAGE_URL:window.originUrl,PAGE_NAME:decodeURI(window.qs.title||document.title),ACTION_URL:n,CROWD_CODE:e+""})},!0),r("a").click(function(){var t=r(this).attr("href");!t||/^#.*$/.test(t)||/^javascript.*$/i.test(t)||window._yas.sendAppLogs({appop:"YB_H5_PAGE_AB_FLR_C",param:(0,o.default)({C_ID:a.getQueryObj().yh_channel||1,PAGE_URL:window.originUrl,PAGE_NAME:decodeURI(window.qs.title||document.title),F_URL:t,CROWD_CODE:e+""})},!0)}))},1e3)}(t)};t.exports=function(t,e,n){e.uid||"app"!==n?d({nodeList:t,uid:e.uid,udid:s.cookie("_yasvd")}):d({nodeList:t,uid:"",udid:a.getQueryObj().udid||""})}},function(t,e,n){var o=n(96);"string"==typeof o&&(o=[[t.i,o,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(98)(o,r);o.locals&&(t.exports=o.locals)},function(t,e,n){(t.exports=n(97)(!1)).push([t.i,".featuretip.tip-wrap {\n  position: fixed;\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n  z-index: 100;\n  background: rgba(0, 0, 0, 0.5); }\n\n.featuretip .tip {\n  position: fixed;\n  left: 50%;\n  top: 50%;\n  margin-left: -3.5rem;\n  margin-top: -3.5rem;\n  width: 7rem;\n  background: #fff;\n  border-top: 1rem solid #000;\n  text-align: center;\n  line-height: 1.25;\n  z-index: 101; }\n\n.featuretip .tip .title {\n  margin: 0.625rem auto 0.75rem;\n  font-size: 0.5rem;\n  font-weight: 700;\n  text-align: center; }\n\n.featuretip .tip .highlight {\n  font-size: 0.45rem; }\n\n.featuretip .tip .content {\n  font-size: 0.35rem;\n  color: #444;\n  text-align: center;\n  line-height: 0.5rem; }\n\n.featuretip .tip .button {\n  display: block;\n  margin: 0.5rem auto;\n  width: 3.75rem;\n  height: 0.75rem;\n  font-size: 0.35rem;\n  line-height: 0.75rem;\n  text-align: center;\n  color: #fff;\n  background: #000;\n  text-decoration: none; }\n\n.featuretip .tip.coupon-tip {\n  border-top: 0;\n  background: url(\"//img11.static.yhbimg.com/sns/2018/10/16/19/0172232208d89e64d308dae5c4f5d5ac79.png\") no-repeat;\n  background-size: 100%;\n  width: 5rem;\n  margin-left: -2.5rem;\n  padding-top: 2.5rem; }\n\n.featuretip .tip.coupon-tip:after {\n    content: '';\n    position: absolute;\n    left: 0;\n    right: 0;\n    top: 50%;\n    bottom: 0;\n    z-index: -1;\n    background-color: #ce1230; }\n\n.featuretip .tip.coupon-tip .title {\n    font-size: 0.5rem;\n    color: #fff; }\n\n.featuretip .tip.coupon-tip .content {\n    font-size: 0.3rem;\n    color: #fff; }\n\n.featuretip .tip.coupon-tip .button {\n    background: none;\n    color: #fff;\n    border: 1px solid #fff; }\n\n.feature-toast {\n  width: 100%;\n  position: fixed;\n  bottom: 10%;\n  z-index: 9999;\n  display: none;\n  text-align: center; }\n\n.feature-toast .feature-toast-content {\n    max-width: 50%;\n    font-size: 0.3rem;\n    background-color: #333;\n    padding: 0.15rem 0.25rem;\n    border-radius: 0.075rem;\n    color: #fff;\n    opacity: 0.8;\n    -webkit-opacity: 0.8;\n    word-break: break-all;\n    text-align: center;\n    display: inline-block; }\n",""])},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=function(t,e){var n=t[1]||"",o=t[3];if(!o)return n;if(e&&"function"==typeof btoa){var r=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(o),i=o.sources.map(function(t){return"/*# sourceURL="+o.sourceRoot+t+" */"});return[n].concat(i).concat([r]).join("\n")}return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},r=0;r<this.length;r++){var i=this[r][0];"number"==typeof i&&(o[i]=!0)}for(r=0;r<t.length;r++){var a=t[r];"number"==typeof a[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(t,e,n){var o={},r=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}(function(){return window&&document&&document.all&&!window.atob}),i=function(t){var e={};return function(t){if("function"==typeof t)return t();if(void 0===e[t]){var n=function(t){return document.querySelector(t)}.call(this,t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}}(),a=null,s=0,u=[],c=n(99);function f(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=o[r.id];if(i){i.refs++;for(var a=0;a<i.parts.length;a++)i.parts[a](r.parts[a]);for(;a<r.parts.length;a++)i.parts.push(y(r.parts[a],e))}else{var s=[];for(a=0;a<r.parts.length;a++)s.push(y(r.parts[a],e));o[r.id]={id:r.id,refs:1,parts:s}}}}function l(t,e){for(var n=[],o={},r=0;r<t.length;r++){var i=t[r],a=e.base?i[0]+e.base:i[0],s={css:i[1],media:i[2],sourceMap:i[3]};o[a]?o[a].parts.push(s):n.push(o[a]={id:a,parts:[s]})}return n}function p(t,e){var n=i(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var o=u[u.length-1];if("top"===t.insertAt)o?o.nextSibling?n.insertBefore(e,o.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),u.push(e);else if("bottom"===t.insertAt)n.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var r=i(t.insertInto+" "+t.insertAt.before);n.insertBefore(e,r)}}function d(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=u.indexOf(t);e>=0&&u.splice(e,1)}function h(t){var e=document.createElement("style");return t.attrs.type="text/css",m(e,t.attrs),p(t,e),e}function m(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function y(t,e){var n,o,r,i;if(e.transform&&t.css){if(!(i=e.transform(t.css)))return function(){};t.css=i}if(e.singleton){var u=s++;n=a||(a=h(e)),o=g.bind(null,n,u,!1),r=g.bind(null,n,u,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",m(e,t.attrs),p(t,e),e}(e),o=function(t,e,n){var o=n.css,r=n.sourceMap,i=void 0===e.convertToAbsoluteUrls&&r;(e.convertToAbsoluteUrls||i)&&(o=c(o));r&&(o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var a=new Blob([o],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,e),r=function(){d(n),n.href&&URL.revokeObjectURL(n.href)}):(n=h(e),o=function(t,e){var n=e.css,o=e.media;o&&t.setAttribute("media",o);if(t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}.bind(null,n),r=function(){d(n)});return o(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;o(t=e)}else r()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=r()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=l(t,e);return f(n,e),function(t){for(var r=[],i=0;i<n.length;i++){var a=n[i];(s=o[a.id]).refs--,r.push(s)}t&&f(l(t,e),e);for(i=0;i<r.length;i++){var s;if(0===(s=r[i]).refs){for(var u=0;u<s.parts.length;u++)s.parts[u]();delete o[s.id]}}}};var v=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}();function g(t,e,n,o){var r=n?"":o.css;if(t.styleSheet)t.styleSheet.cssText=v(e,r);else{var i=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,o=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var r,i=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?t:(r=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:o+i.replace(/^\.\//,""),"url("+JSON.stringify(r)+")")})}}])});