UNPKG

tida

Version:

tida

1 lines 88.3 kB
module.exports=function(e){function t(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=13)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(4),r=(function(e){e&&e.__esModule}(i),{});o.isWeex||n(6),r.call=function(e,t,i,a,s){if(o.isWeex){var u=n(17);u.call&&u.call({class:e,method:t,data:i},a)}else{n(6);"undefined"!=typeof WindVane&&WindVane.isAvailable?(r.isAvailable=WindVane.isAvailable,WindVane.call(e,t,i,a,s)):s&&s({msg:"浏览器不支持 windvane",ret:["HY_NOT_SUPPORT_DEVICE"]})}},t.default=r,e.exports=t.default},function(e,t,n){"use strict";(function(e){var n="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};Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?function(e){return void 0===e?"undefined":n(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":n(e)};t.isWeb="object"===("undefined"==typeof navigator?"undefined":o(navigator))&&("Mozilla"===navigator.appCodeName||"Gecko"===navigator.product),t.isNode=void 0!==e&&!(!e.versions||!e.versions.node),t.isWeex="function"==typeof callNative,t.isReactNative="undefined"!=typeof __fbBatchedBridgeConfig}).call(t,n(5))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o="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},i=n(3),r=(function(e){e&&e.__esModule}(i),{newReport:function(e,t,n,o){var i=location.host.split(".")[0];!function(){var a=n+"&domain="+i;window.goldlog?goldlog.record&&goldlog.record(e,t||"",a,o):setTimeout(function(){r.newReport(e,t,n,o)},200)}()},report:function(e){var t=[];if("string"==typeof e)t.push("pos="+e);else if("object"===(void 0===e?"undefined":o(e)))for(var n in e)t.push(n+"="+e[n]);r.newReport("/tida4.wv.record","CLK",t.join("&"),"GET")},error:function(e){var t=[];if("string"==typeof e)t.push("pos="+e);else if("object"===(void 0===e?"undefined":o(e)))for(var n in e)t.push(n+"="+e[n]);r.newReport("/tida4.wv.fail","CLK",t.join("&"),"GET")},faceReport:function(e){var t=[];if("string"==typeof e)t.push("pos="+e);else if("object"===(void 0===e?"undefined":o(e)))for(var n in e)t.push(n+"="+e[n]);r.newReport("/tida4.wv.facelogin","CLK",t.join("&"),"GET")}});t.default=r,e.exports=t.default},function(e,t,n){"use strict";var o=n(20),i=function(e){return e&&e.__esModule?e:{default:e}}(o),r={getParam:function(e,t){var n=e;if(t=t||location.href,-1==t.indexOf(n+"="))return"";t=t.split("#")[0];for(var o,i,r,a=t.indexOf("?")>-1?t.substring(t.indexOf("?")+1):t,s=a.split("&"),u=0;u<s.length;u++)if(-1!=(o=s[u].indexOf("="))&&(i=s[u].substring(0,o),r=s[u].substring(o+1),i==n))return decodeURIComponent(r.replace(/\+/g," "));return""},addParama:function(e,t,n){var o=e.split("?")[1],i=e.split("?")[0];if(o){for(var r=o.split("&"),a=[],s=0,u=0;u<r.length;u++)if(r[u]){var l=r[u].split("=");t==l[0]?(s=1,a.push(t+"="+n)):"page"!=l[0]&&"token"!=l[0]&&a.push(r[u])}s||a.push(t+"="+n),e=i+"?"+a.join("&")}else e=i+"?"+t+"="+n;return e},requiredParam:function(e,t){function n(t){return!Object.keys(e).includes(t)}var o=t.filter(n);if(o.length>0)throw new i.default.paramException(o);return 0==o.length},getTimout:function(e){return void 0!=e[e.length-1]?e[e.length-1]:(e.pop(),this.getTimout(e))}};e.exports=r},function(e,t,n){"use strict";!function(e,t){function n(e){Object.defineProperty(this,"val",{value:e.toString(),enumerable:!0}),this.gt=function(e){return n.compare(this,e)>0},this.gte=function(e){return n.compare(this,e)>=0},this.lt=function(e){return n.compare(this,e)<0},this.lte=function(e){return n.compare(this,e)<=0},this.eq=function(e){return 0===n.compare(this,e)}}t.env=t.env||{},n.prototype.toString=function(){return this.val},n.prototype.valueOf=function(){for(var e=this.val.split("."),t=[],n=0;n<e.length;n++){var o=parseInt(e[n],10);isNaN(o)&&(o=0);var i=o.toString();i.length<5&&(i=Array(6-i.length).join("0")+i),t.push(i),1===t.length&&t.push(".")}return parseFloat(t.join(""))},n.compare=function(e,t){e=e.toString().split("."),t=t.toString().split(".");for(var n=0;n<e.length||n<t.length;n++){var o=parseInt(e[n],10),i=parseInt(t[n],10);if(window.isNaN(o)&&(o=0),window.isNaN(i)&&(i=0),i>o)return-1;if(o>i)return 1}return 0},t.version=function(e){return new n(e)}}(window,window.lib||(window.lib={})),function(e,t){t.env=t.env||{};var n=e.location.search.replace(/^\?/,"");if(t.env.params={},n)for(var o=n.split("&"),i=0;i<o.length;i++){var r=o[i].split("=")[0],a=r+"=",s=o[i].split(a)[1];o[i]=o[i].split("=");try{t.env.params[o[i][0]]=decodeURIComponent(s)}catch(e){t.env.params[o[i][0]]=s}}}(window,window.lib||(window.lib={})),function(e,t){t.env=t.env||{};var n,o=e.navigator.userAgent;if(n=o.match(/Windows\sPhone\s(?:OS\s)?([\d\.]+)/))t.env.os={name:"Windows Phone",isWindowsPhone:!0,version:n[1]};else if(o.match(/Safari/)&&(n=o.match(/Android[\s\/]([\d\.]+)/)))t.env.os={version:n[1]},o.match(/Mobile\s+Safari/)?(t.env.os.name="Android",t.env.os.isAndroid=!0):(t.env.os.name="AndroidPad",t.env.os.isAndroidPad=!0);else if(n=o.match(/(iPhone|iPad|iPod)/)){var i=n[1];(n=o.match(/OS ([\d_\.]+) like Mac OS X/))&&(t.env.os={name:i,isIPhone:"iPhone"===i||"iPod"===i,isIPad:"iPad"===i,isIOS:!0,version:n[1].split("_").join(".")})}t.env.os||(t.env.os={name:"unknown",version:"0.0.0"}),t.version&&(t.env.os.version=t.version(t.env.os.version))}(window,window.lib||(window.lib={})),function(e,t){t.env=t.env||{};var n,o=e.navigator.userAgent;(n=o.match(/(?:UCWEB|UCBrowser\/)([\d\.]+)/))?t.env.browser={name:"UC",isUC:!0,version:n[1]}:(n=o.match(/MQQBrowser\/([\d\.]+)/))?t.env.browser={name:"QQ",isQQ:!0,version:n[1]}:(n=o.match(/(?:Firefox|FxiOS)\/([\d\.]+)/))?t.env.browser={name:"Firefox",isFirefox:!0,version:n[1]}:(n=o.match(/MSIE\s([\d\.]+)/))||(n=o.match(/IEMobile\/([\d\.]+)/))?(t.env.browser={version:n[1]},o.match(/IEMobile/)?(t.env.browser.name="IEMobile",t.env.browser.isIEMobile=!0):(t.env.browser.name="IE",t.env.browser.isIE=!0),o.match(/Android|iPhone/)&&(t.env.browser.isIELikeWebkit=!0)):(n=o.match(/(?:Chrome|CriOS)\/([\d\.]+)/))?(t.env.browser={name:"Chrome",isChrome:!0,version:n[1]},o.match(/Version\/[\d+\.]+\s*Chrome/)&&(t.env.browser.name="Chrome Webview",t.env.browser.isWebview=!0)):o.match(/Safari/)&&(n=o.match(/Android[\s\/]([\d\.]+)/))?t.env.browser={name:"Android",isAndroid:!0,version:n[1]}:o.match(/iPhone|iPad|iPod/)&&(o.match(/Safari/)&&(n=o.match(/Version\/([\d\.]+)/))?t.env.browser={name:"Safari",isSafari:!0,version:n[1]}:(n=o.match(/OS ([\d_\.]+) like Mac OS X/))&&(t.env.browser={name:"iOS Webview",isWebview:!0,version:n[1].replace(/\_/g,".")})),t.env.browser||(t.env.browser={name:"unknown",version:"0.0.0"}),t.version&&(t.env.browser.version=t.version(t.env.browser.version))}(window,window.lib||(window.lib={})),function(e,t){t.env=t.env||{};var n=e.navigator.userAgent;n.match(/Weibo/i)?t.env.thirdapp={appname:"Weibo",isWeibo:!0}:n.match(/MicroMessenger/i)?t.env.thirdapp={appname:"Weixin",isWeixin:!0}:t.env.thirdapp=!1}(window,window.lib||(window.lib={})),function(e,t){t.env=t.env||{};var n,o,i=e.navigator.userAgent;(o=i.match(/WindVane[\/\s]([\d\.\_]+)/))&&(n=o[1]);var r=!1,a="",s="",u="",l=e._ua_popLayer||"",c=!1,d="";(o=i.match(/AliApp\(([A-Z\-]+)\/([\d\.]+)\)/i))&&(r=!0,a=o[1],u=o[2],s=a.indexOf("-PD")>0?t.env.os.isIOS?"iPad":t.env.os.isAndroid?"AndroidPad":t.env.os.name:t.env.os.name),!a&&i.indexOf("TBIOS")>0&&(a="TB"),l&&(o=l.match(/PopLayer\/([\d\.]+)/i))&&(c=!0,d=o[1]),t.env.aliapp=!!r&&{windvane:t.version(n||"0.0.0"),appname:a||"unkown",version:t.version(u||"0.0.0"),platform:s||t.env.os.name,poplayer:c||!1,poplayerVersion:t.version(d||"0.0.0")},t.env.taobaoApp=t.env.aliapp}(window,window.lib||(window.lib={})),e.exports=window.lib},function(e,t,n){"use strict";function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function r(e){if(d===setTimeout)return setTimeout(e,0);if((d===o||!d)&&setTimeout)return d=setTimeout,setTimeout(e,0);try{return d(e,0)}catch(t){try{return d.call(null,e,0)}catch(t){return d.call(this,e,0)}}}function a(e){if(f===clearTimeout)return clearTimeout(e);if((f===i||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function s(){v&&h&&(v=!1,h.length?m=h.concat(m):g=-1,m.length&&u())}function u(){if(!v){var e=r(s);v=!0;for(var t=m.length;t;){for(h=m,m=[];++g<t;)h&&h[g].run();g=-1,t=m.length}h=null,v=!1,a(e)}}function l(e,t){this.fun=e,this.array=t}function c(){}var d,f,p=e.exports={};!function(){try{d="function"==typeof setTimeout?setTimeout:o}catch(e){d=o}try{f="function"==typeof clearTimeout?clearTimeout:i}catch(e){f=i}}();var h,m=[],v=!1,g=-1;p.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];m.push(new l(e,t)),1!==m.length||v||r(u)},l.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=c,p.addListener=c,p.once=c,p.off=c,p.removeListener=c,p.removeAllListeners=c,p.emit=c,p.prependListener=c,p.prependOnceListener=c,p.listeners=function(e){return[]},p.binding=function(e){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(e){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(e,t,n){"use strict";var o="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};!function(e,t){var n=e.Promise,i=e.document,r=e.navigator.userAgent,a=/Windows\sPhone\s(?:OS\s)?[\d\.]+/i.test(r)||/Windows\sNT\s[\d\.]+/i.test(r),s=a&&e.WindVane_Win_Private&&e.WindVane_Win_Private.call,u=/iPhone|iPad|iPod/i.test(r),l=/Android/i.test(r),c=r.match(/WindVane[\/\s](\d+[._]\d+[._]\d+)/),d=Object.prototype.hasOwnProperty,f=t.windvane=e.WindVane||(e.WindVane={}),p=(e.WindVane_Native,Math.floor(65536*Math.random())),h=1,m=[];c=c?(c[1]||"0.0.0").replace(/\_/g,"."):"0.0.0";var v={isAvailable:1===function(e,t){e=e.toString().split("."),t=t.toString().split(".");for(var n=0;n<e.length||n<t.length;n++){var o=parseInt(e[n],10),i=parseInt(t[n],10);if(window.isNaN(o)&&(o=0),window.isNaN(i)&&(i=0),o<i)return-1;if(o>i)return 1}return 0}(c,"0"),call:function(e,t,o,i,r,a){var s,u;"number"==typeof arguments[arguments.length-1]&&(a=arguments[arguments.length-1]),"function"!=typeof i&&(i=null),"function"!=typeof r&&(r=null),n&&(u={},u.promise=new n(function(e,t){u.resolve=e,u.reject=t})),s=g.getSid();var l={success:i,failure:r,deferred:u};if(a>0&&(l.timeout=setTimeout(function(){v.onFailure(s,{ret:"HY_TIMEOUT"})},a)),g.registerCall(s,l),g.registerGC(s,a),v.isAvailable?g.callMethod(e,t,o,s):v.onFailure(s,{ret:"HY_NOT_IN_WINDVANE"}),u)return u.promise},fireEvent:function(e,t,n){var o=i.createEvent("HTMLEvents");o.initEvent(e,!1,!0),o.param=g.parseData(t||g.getData(n)),i.dispatchEvent(o)},getParam:function(e){return g.getParam(e)},setData:function(e,t){g.setData(e,t)},onSuccess:function(e,t){g.onComplete(e,t,"success")},onFailure:function(e,t){g.onComplete(e,t,"failure")}},g={params:{},chunks:{},calls:{},getSid:function(){return(p+h++)%65536+""},buildParam:function(e){return e&&"object"===(void 0===e?"undefined":o(e))?JSON.stringify(e):e||""},getParam:function(e){return this.params["param_"+e]||""},setParam:function(e,t){this.params["param_"+e]=t},parseData:function(e){var t;if(e&&"string"==typeof e)try{t=JSON.parse(e)}catch(e){t={ret:["WV_ERR::PARAM_PARSE_ERROR"]}}else t=e||{};return t},setData:function(){this.chunks["chunk_"+sid]=this.chunks["chunk_"+sid]||[],this.chunks["chunk_"+sid].push(chunk)},getData:function(e){return this.chunks["chunk_"+e]?this.chunks["chunk_"+e].join(""):""},registerCall:function(e,t){this.calls[e]=t},unregisterCall:function(e){var t={};return this.calls[e]&&(t=this.calls[e],delete this.calls[e]),t},useIframe:function(e,t){var n="iframe_"+e,o=m.pop();o||(o=i.createElement("iframe"),o.setAttribute("frameborder","0"),o.style.cssText="width:0;height:0;border:0;display:none;"),o.setAttribute("id",n),o.setAttribute("src",t),o.parentNode||setTimeout(function(){i.body.appendChild(o)},5)},retrieveIframe:function(e){var t="iframe_"+e,n=i.querySelector("#"+t);m.length>=3?i.body.removeChild(n):m.indexOf(n)<0&&m.push(n)},callMethod:function(t,n,o,i){if(o=g.buildParam(o),a)s?e.WindVane_Win_Private.call(t,n,i,o):this.onComplete(i,{ret:"HY_NO_HANDLER_ON_WP"},"failure");else{var r="hybrid://"+t+":"+i+"/"+n+"?"+o;if(u)this.setParam(i,o),this.useIframe(i,r);else if(l){window.prompt(r,"wv_hybrid:")}else this.onComplete(i,{ret:"HY_NOT_SUPPORT_DEVICE"},"failure")}},registerGC:function(e,t){var n=this,o=Math.max(t||0,6e5),i=Math.max(t||0,6e4),r=Math.max(t||0,6e5);setTimeout(function(){n.unregisterCall(e)},o),u?setTimeout(function(){n.params["param_"+e]&&delete n.params["param_"+e]},i):l&&setTimeout(function(){n.chunks["chunk_"+e]&&delete n.chunks["chunk_"+e]},r)},onComplete:function(e,t,n){var o=this.unregisterCall(e),i=o.success,r=o.failure,a=o.deferred,s=o.timeout;s&&clearTimeout(s),t=t||this.getData(e),t=this.parseData(t);var c=t.ret;"string"==typeof c&&(t=t.value||t,t.ret||(t.ret=[c])),"success"===n?(i&&i(t),a&&a.resolve(t)):"failure"===n&&(r&&r(t),a&&a.reject(t)),u?(this.retrieveIframe(e),this.params["param_"+e]&&delete this.params["param_"+e]):l&&this.chunks["chunk_"+e]&&delete this.chunks["chunk_"+e]}};for(var y in v)d.call(f,y)||(f[y]=v[y]);e.WindVane=f}(window,window.lib||(window.lib={}))},function(e,t,n){"use strict";var o=n(0),i=(function(e){e&&e.__esModule}(o),n(1));e.exports={request:function(e,t,o){if(e=Object.assign({v:"1.0",needLogin:!1,type:"GET",dataType:"json",secType:0,timeout:8e3},e),i.isWeex){n(24).request(e,t,o)}else if(i.isWeb){var r=window.lib&&window.lib.mtop&&window.lib.mtop.request;if(!r)throw new Error("请先引入 lib.mtop 库");r(e,t,o)}}}},function(e,t,n){"use strict";(function(e){var n="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};Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?function(e){return void 0===e?"undefined":n(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":n(e)};t.isWeb="object"===("undefined"==typeof navigator?"undefined":o(navigator))&&("Mozilla"===navigator.appCodeName||"Gecko"===navigator.product),t.isNode=void 0!==e&&!(!e.versions||!e.versions.node),t.isWeex="function"==typeof callNative,t.isReactNative="undefined"!=typeof __fbBatchedBridgeConfig}).call(t,n(5))},function(e,t){e.exports=require("@weex-module/navigator")},function(e,t,n){"use strict";function o(e,t,n,o,i,r){return"number"==typeof arguments[arguments.length-1]&&(r=arguments[arguments.length-1]),"function"!=typeof o&&(o=null),"function"!=typeof i&&(i=null),lib.windvane.call(e,t,n,o,i,r).then(function(e){return new Promise(function(t,n){t(e)})},function(e){return Promise.reject(e)})}Object.defineProperty(t,"__esModule",{value:!0}),t.WV=o,n(42);var i=n(43),r=(function(e){e&&e.__esModule}(i),n(11)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(r);window.setBatSpm("tida-nrt-rop"),a.batTrack("windvane");n(12)},function(e,t,n){"use strict";var o,i,r="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};!function(){function e(e){var t=function(){setTimeout(e,10)};if(window.__windvane__)if(window._WindVaneReady)e();else{var n=function t(){window._WindVaneReady=!0,document.removeEventListener("WindVaneReady",t),e()};document.addEventListener("WindVaneReady",n)}else"complete"===document.readyState?t():window.addEventListener("load",t)}function t(e,t,n){if("string"==typeof e){"object"===(void 0===t?"undefined":r(t))&&(n=t,t="bat"),t="bat"===e?"":t||"bat",n=n||{},n.module=n.module||"",n.type=n.type||"normal",n.msg=n.msg||"",n.version=n.version||"",S||(S=e);var o=+new Date;C[e]=o;var i=e===S?0:o-(C[t||S]||C[S]);"error"===n.type?this.pushFull([e+"_"+n.module,e,t,n.module,n.version,n.msg,Math.max(i,0),1]):this.push([e+"_"+n.module,e,t,n.module,n.version,n.msg,Math.max(i,0),0])}}function n(e,t){var n={};for(var o in e)n[o]=e[o];for(var o in t)n[o]=t[o];return n}function o(e,t){return t=t||"",e?o(--e,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz".charAt(Math.floor(60*Math.random()))+t):t}function i(e,t,n){return e.split(t).join(n)}function a(e,t){for(var n in e)e.hasOwnProperty(n)&&t.call(e,e[n],n)}function s(){if(N)return N;var e="",t="";if(window.goldlog&&window.goldlog.spm_ab)return e=window.goldlog.spm_ab.join(".").split("/")[0],e=e.split("-")[0];e=document.getElementsByTagName("meta");for(var n=e.length;n--&&("spm-id"!==e[n].name&&"data-spm"!==e[n].name););return(e=e[n])?(e=e.content.split("/")[0],(e=e.split("-")[0])?(t=document.body&&document.body.getAttribute("data-spm"),t=t?"."+t:"",e+t):""):void 0}function u(e){var t,n,o,a=[];for(t=0,n=e.length;t<n;t++)o=e[t],"object"===(void 0===o?"undefined":r(o))?a.push(JSON.stringify(o)):null===o||void 0===o?a.push(""):a.push(o+"");for(t=a.length;t--;)a[t]=i(i(a[t],"|","丨"),";",";");return a}function l(e){for(var t,n,o=-1,i=0,r=e.length;i<r;)t=e.charCodeAt(i++),t<128?o=o>>>8^W[255&(o^t)]:t<2048?(o=o>>>8^W[255&(o^(192|t>>6&31))],o=o>>>8^W[255&(o^(128|63&t))]):t>=55296&&t<57344?(t=64+(1023&t),n=1023&e.charCodeAt(i++),o=o>>>8^W[255&(o^(240|t>>8&7))],o=o>>>8^W[255&(o^(128|t>>2&63))],o=o>>>8^W[255&(o^(128|n>>6&15|(3&t)<<4))],o=o>>>8^W[255&(o^(128|63&n))]):(o=o>>>8^W[255&(o^(224|t>>12&15))],o=o>>>8^W[255&(o^(128|t>>6&63))],o=o>>>8^W[255&(o^(128|63&t))]);return-1^o}function c(e){return(G[P]||{})[e]||[]}function d(e,t){try{if(!_)return[];var n=G[P]=G[P]||{};n[e]=t,n.time=+new Date,window.localStorage.setItem("bat",JSON.stringify(G))}catch(e){}}function f(e){var t=this;this.version="4.2.0",this.api=e.api||"",this.chksum=e.chksum||"",this.name=e.name||"none",this.sender=e.sender||function(){},this.windowOnloaded=!1,this.queueName=e.name+"_queue",this.fullQueueName=e.name+"_full_queue",this.sendingTask=null,this.extra={},this.onloadFns=[],this.unloadFns=[],this.bindEvent(),this.setQueue(window[this.queueName]||[]);try{this.setFullQueue([].concat(c(this.fullQueueName)).concat(window[this.fullQueueName]||[]))}catch(e){this.setFullQueue([].concat(window[this.fullQueueName]||[]))}window[e.name+"Track"]=function(){t.sender.apply(t,Array.prototype.slice.call(arguments))},window[e.name+"TrackIme"]=function(){t.sender.apply(t,Array.prototype.slice.call(arguments)),t.sendingTask&&clearTimeout(t.sendingTask),t.sendQueue()}}function p(e){return e.replace(/^\s+|\s+$/g,"")}function h(e){e=e||"",e=e.split("\n").slice(1,3);for(var t=e.length;t--;)e[t]=p(e[t]).replace(/\((.*)\)/,function(e,t){return t=t.split(":"),"("+[Number(t[2])||0,Number(t[3])||0].join(":")+")"});return e.join("^")}function m(e){e=e||"";var t=e.split(",");return t.length<=2?e:[t[0],"...",t[t.length-1]].join(",")}function v(e,t,n,o,i){try{"string"==typeof e?window.batTrack("jserror","bat",{type:"error",msg:[e,m(t),n,o,h(i&&i.stack)].join("^")}):window.batTrack("jserror","bat",{type:"error",msg:[e.message,m(e&&e.filename),e&&e.lineno,e&&e.colno,h(e&&e.error&&e.error.stack)].join("^")})}catch(e){}}if("function"!=typeof window.batTrack){var g=window.batSamplingFile||"",y=!!window.batUsePost,b=window.batIntervalAfterOnload||1500,w=window.batProxy||"",_=!1;try{localStorage.batLocalTest=0,"0"===localStorage.batLocalTest&&(_=!0,localStorage.removeItem("batLocalTest"))}catch(e){}var P=window.location.host+window.location.pathname,T=("file:"===window.location.protocol?"http:":window.location.protocol)+"//gm.mmstat.com",x=encodeURIComponent,k=+new Date,S="",C={},E=864e5,A=0,M=/(iPhone|iPad|iPod|iOS|Android)/i.test(window.navigator.userAgent),O=o(20),N="",I=[],L=null,G={};if(function(){try{if(!_)return[];G=window.localStorage.getItem("bat"),G=G?JSON.parse(G):{};var e=[];a(G,function(t,n){k-t.time>E&&e.push(n)});for(var t=e.length;t--;)delete G[e[t]];window.localStorage.setItem("bat",JSON.stringify(G))}catch(e){G={}}}(),g){var j=g.split("/");window[j[j.length-1]]=function(e){L=e||null;for(var t=0;t<I.length;t++)I[t]();delete window[j[j.length-1]]},function(e){var t=document.createElement("script");t.src=e,t.onload=function(){this.remove()},document.getElementsByTagName("head")[0].appendChild(t)}(g+"?wh_callback=true")}window.setCtkSpm=window.setBatSpm=function(e){N=e},window.setCtkProxy=window.setBatProxy=function(e){w=e};var W=function(){for(var e=0,t=new Array(256),n=0;256!==n;++n){e=n;for(var o=8;o--;)e=1&e?-306674912^e>>>1:e>>>1;t[n]=e}return"undefined"!=typeof Int32Array?new Int32Array(t):t}();f.prototype.mergeExtra=function(e){e=e||{},this.extra=n(this.extra,e)},f.prototype.replaceExtra=function(e){e=e||{},this.extra=n(e,{})},f.prototype.push=function(e){this.queue.push(e)},f.prototype.pushFull=function(e){this.fullQueue.push(e)},f.prototype.setQueue=function(e){window[this.queueName]=this.queue=e},f.prototype.setFullQueue=function(e,t){window[this.fullQueueName]=this.fullQueue=e,t&&d(this.fullQueueName,e)},f.prototype.addOnloadListener=function(e){this.onloadFns.push(e)},f.prototype.removeOnloadListener=function(e){var t=this.onloadFns.indexOf(e);-1!==t&&this.onloadFns.splice(t,1)},f.prototype.addUnloadListener=function(e){this.unloadFns.push(e)},f.prototype.removeUnloadListener=function(e){var t=this.unloadFns.indexOf(e);-1!==t&&this.unloadFns.splice(t,1)},f.prototype.bindEvent=function(){function t(){var e,t;for(e=0,t=i.onloadFns.length;e<t;e++)(0,i.onloadFns[e])();i.onloadFns=[],i.windowOnloaded=!0,setTimeout(function(){i.waitSendStart()},b)}function n(){var e,t;for(e=0,t=i.unloadFns.length;e<t;e++)(0,i.unloadFns[e])();i.unloadFns=[],i.sendQueue()}var o,i=this;if(e(t),window.addEventListener){var r=["blur","beforeunload","unload"];for(o=r.length;o--;)window.addEventListener(r[o],n);var a=["WV.Event.APP.Background","pause","mozvisibilitychange","msvisibilitychange","visibilitychange","webkitvisibilitychange"];for(o=a.length;o--;)document.addEventListener(a[o],n)}else window.attachEvent&&(window.attachEvent("onload",t),window.attachEvent("onbeforeunload",n))},f.prototype.sendStart=function(){var e=this;e.sendingTask||(e.sendingTask=setTimeout(function(){e.sendQueue(),e.sendingTask=null,(e.queue.length>0||e.fullQueue.length>0)&&e.waitSendStart()},b))},f.prototype.waitSendStart=function(){var e=this;g&&!L?I.push(function(){e.sendStart()}):e.sendStart()},f.prototype.sendQueue=function(){this.setQueue(this.formatQueue(this.queue)),this.setFullQueue(this.formatQueue(this.fullQueue)),this.sendNormalQueue(),this.sendFullQueue()},f.prototype.formatQueue=function(e){for(var t=[],n=0,o=e.length;n<o;n++){var i=e[n];"[object array]"===Object.prototype.toString.call(i).toLowerCase()?t.push({length:1,point:i}):t.push(i)}return t},f.prototype.mergeQueue=function(e){var t,n,o,i,r=[],s={};for(t=0,n=e.length;t<n;t++){i=e[t];try{o=i.point[0],s[o]=s[o]||{point:null,length:0},s[o].length+=i.length,Math.random()*s[o].length<=i.length&&(s[o].point=i.point)}catch(e){continue}}return a(s,function(e){r.push(e)}),r},f.prototype.sendNormalQueue=function(){var e,t=[],n=[],o=0;for(t=this.mergeQueue(this.queue),t.sort(function(){return Math.random()-.5}),e=t.length;e--;)try{var i=x(u([].concat(t[e].point.slice(1)).concat([1e3])).join("|")).length;if(o+i>1700)break;if(g){var r=L&&L.normal&&L.normal[t[e].point[0]]||1;Math.random()<1/r&&(t[e].length=t[e].length*r,n.push(t[e]),o+=i)}else n.push(t[e]),o+=i}catch(e){continue}for(e=n.length;e--;)n[e]=u([].concat(n[e].point.slice(1)).concat([n[e].length*Math.round(t.length/n.length)])).join("|");this.send(n.join(";")),this.setQueue([])},f.prototype.sendFullQueue=function(){var e,t=[],n=[],o=0;if(t=[].concat(this.fullQueue),t.length){for(;t.length;)try{var i=t[0],r=x(u([].concat(i.point.slice(1)).concat([i.length])).join("|")).length;if(r>1700&&!y){t.shift();continue}if(o+r>1700&&!y)break;if(g){var a=L&&L.full&&L.full[t[0].point[0]]||1;Math.random()<1/a?(t[0].length=t[0].length*a,n.push(t.shift()),o+=r):t.shift()}else n.push(t.shift()),o+=r}catch(e){t.shift();continue}for(e=n.length;e--;)n[e]=u([].concat(n[e].point.slice(1)).concat([n[e].length])).join("|");this.send(n.join(";")),this.setFullQueue(t,!0)}},f.prototype.send=function(e){if(e){var t=s();if(t){var n=["msg="+x(e),"hash="+l(e),"spm="+t,"client="+(M?"h5":"pc"),"token="+O,"proxy="+w];for(var o in this.extra)this.extra.hasOwnProperty(o)&&n.push(o+"="+this.extra[o]);var i=n.join("&");if(window.goldlog&&window.goldlog.record&&"function"==typeof window.goldlog.record)window.goldlog.record(this.api,"EXP",i,y?"POST":"GET");else{var o="__CT_image_"+A++,r=window[o]=new Image;r.onload=r.onerror=function(){window[o]=null},r.src=T+this.api+"?"+i}}}};var R=new f({name:"bat",sender:t,api:"/codetrack.1.1",chksum:"H46836965"}),U=new f({name:"tes",sender:function(e,t,n){t=t||[],n=n||!1,e&&(n?this.pushFull([].concat([e]).concat(t)):this.push([].concat([e]).concat(t)))},api:"/codetrack.1.3",chksum:"H46836988"}),D=new f({name:"dom",sender:function(e,t,n,o,i){t=t||"",n=n||"",o=o||"",i=i||!1;var r=[e+"_"+t+"_"+n+"_"+o,e,t,n,o];i?this.pushFull(r):this.push(r)},api:"/codetrack.1.4",chksum:"H46836989"});window.addEventListener?window.addEventListener("error",v,!1):window.attachEvent("error",v),window.batTrack("bat",""),window.batIns={bat:R,tes:U,dom:D}}}(),function(n,r){o=[],void 0!==(i=function(){return n.bat=r()}.apply(t,o))&&(e.exports=i)}(window,function(){return{domTrack:window.domTrack,batTrack:window.batTrack,tesTrack:window.tesTrack,domTrackIme:window.domTrackIme,batTrackIme:window.batTrackIme,tesTrackIme:window.tesTrackIme,setBatSpm:window.setBatSpm,setBatProxy:window.setBatProxy}})},function(e,t){e.exports={name:"tida",version:"1.0.1-alpha.13",description:"tida",main:"index.js",directories:{example:"demo"},scripts:{build:"node scripts/build",watch:"node scripts/build -w",demo:"cd demo; tnpm i; cd ..; open http://127.0.0.1:3000/demo/public/; node scripts/demo",nginx:"sudo nginx -t -c ${PWD}/scripts/nginx.conf"},publishConfig:{registry:"http://registry.npm.alibaba-inc.com"},repository:{type:"git",url:"git@gitlab.alibaba-inc.com:tida/tida.git"},keywords:["tida","rax","tmall","taobao"],author:"chongyang.liucy <chongyang.liucy@alibaba-inc.com>",devDependencies:{"babel-core":"^6.26.0","babel-loader":"^7.1.2","babel-preset-es2015":"^6.24.1","babel-preset-rax":"^0.4.11","case-sensitive-paths-webpack-plugin":"^2.1.1",eslint:"^4.6.1","eslint-plugin-babel":"^4.1.2","eslint-plugin-react":"^7.3.0",gutil:"^1.6.4","image-source-loader":"^0.4.11","json-loader":"^0.5.7","rax-webpack-plugin":"^0.4.11","stylesheet-loader":"^0.4.11","uglifyjs-webpack-plugin":"^0.4.6","watch-missing-node-modules-webpack-plugin":"^0.0.1",webpack:"^3.5.5","webpack-dev-server":"^2.7.1"},license:"ISC",dependencies:{"@ali/bat":"^5.0.3","@ali/lib-windvane":"^3.0.0","@ali/goldlog":"1.0.0-alpha.1","babel-plugin-import":"^1.8.0","babel-preset-env":"^1.7.0","universal-env":"^0.4.11","universal-jsonp":"^0.4.12","universal-toast":"^0.4.12"}}},function(e,t,n){"use strict";var o=n(14),i=n(15),r=n(21),a=n(23),s=n(25),u=n(26),l=n(28),c=n(29),d=n(34),f=n(35),p=n(40),h=n(41),m=n(47),v=n(48),g=n(52),y=n(54),b=n(57),w=n(62),_=n(64),P=window.Tida={env:o,facereco:i,fetch:r,follow:a,geolocation:s,jsonp:u,mtop:l,navigator:c,network:d,qroauth:f,report:p,rop:h,scancode:m,share:v,storage:g,toast:y,user:b,wangwang:w,wv:_};e.exports=P},function(e,t,n){"use strict";var o=n(4),i=function(e){return e&&e.__esModule?e:{default:e}}(o),r={version:i.default.version};e.exports=Object.assign(r,i.default.env)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}var i=n(1),r=n(16),a=o(r),s=n(18),u=o(s),l=n(19),c=o(l),d=navigator.userAgent,f=/AliApp\(TM\//gi.test(d),p=/AliApp\(TB\//gi.test(d),h=/AliApp\(IGHW\//gi.test(d),m={};i.isWeex?console.log("not suport in Rax or weex yet"):f?m=a.default:p?m=u.default:h?m=c.default:(m=c.default,console.log("face recognition not suport in web yet")),e.exports=m},function(e,t,n){"use strict";var o=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(o);e.exports={imgDetect:function(e,t){i.default.call("FacePlugin","imgDetect",e,function(e){t&&t(e)},function(e){t&&t(e)})},startCameraDetect:function(e,t){i.default.call("FacePlugin","startCameraDetect",e,function(e){t&&t(e)},function(e){t&&t(e)})},stopCameraDetect:function(e,t){i.default.call("FacePlugin","stopCameraDetect",e,function(e){t&&t(e)},function(e){t&&t(e)})},takeCameraFrame:function(e){i.default.call("FacePlugin","takeCameraFrame",{},function(t){e&&e(t)},function(t){e&&e(t)})}}},function(e,t){e.exports=require("@weex-module/windvane")},function(e,t,n){"use strict";function o(e,t,n,o){var i={apiName:"Tida.FaceReco",methodName:e,methodParam:t,appKey:Tida.interactParams.appkey};r.default.call("wopc","invoke",i,n,o)}var i=n(0),r=function(e){return e&&e.__esModule?e:{default:e}}(i);e.exports={imgDetect:function(e,t){o("imgDetect",e,t,t)},startCameraDetect:function(e,t){o("startCameraDetect",e,t,t)},stopCameraDetect:function(e,t){o("stopCameraDetect",e,t,t)},takeCameraFrame:function(e){o("takeCameraFrame",{},e,e)}}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n,o,i){a.default.call("WVCameraPlugin",e,t,function(e){n&&n(e)},function(e){o&&o(e)})}var r=n(0),a=o(r),s=n(2),u=o(s),l={startCamera:function(e,t){if("function"==typeof e)var t=e,e={};i("startCamera",e,t,t)},getFaceData:function(e){a.default.call("WVFacePlugin","getFaceData",{},function(t){e&&e(t)},function(t){e&&e(t)})},startCameraDetect:function(e,t){if("function"==typeof e)var t=e,e={};l.startCamera(e,function(e){"HY_SUCCESS"==e.ret?l.getFaceData(function(e){t&&t(e)}):t&&t(e)})},stopCameraDetect:function(e){i("stopCamera",{},e,e)},faceReport:function(e){u.default.faceReport({apiname:"WVFacePlugin",methodname:"getFaceData",domain:encodeURIComponent(window.location.href),faceId:e.faceId,userId:e.userId})}};e.exports=l},function(e,t,n){"use strict";e.exports={paramException:function(e){this.message="param '"+e.join(", ")+"' should be required!",this.name="paramException"}}},function(e,t,n){"use strict";n(1).isWeb&&n(22),e.exports=fetch},function(e,t,n){"use strict";!function(e){function t(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function n(e){return"string"!=typeof e&&(e=String(e)),e}function o(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return g.iterable&&(t[Symbol.iterator]=function(){return t}),t}function i(e){this.map={},e instanceof i?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function r(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function a(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function s(e){var t=new FileReader,n=a(t);return t.readAsArrayBuffer(e),n}function u(e){var t=new FileReader,n=a(t);return t.readAsText(e),n}function l(e){for(var t=new Uint8Array(e),n=new Array(t.length),o=0;o<t.length;o++)n[o]=String.fromCharCode(t[o]);return n.join("")}function c(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(g.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(g.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(g.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(g.arrayBuffer&&g.blob&&b(e))this._bodyArrayBuffer=c(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!g.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e)&&!w(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=c(e)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):g.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},g.blob&&(this.blob=function(){var e=r(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?r(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(s)}),this.text=function(){var e=r(this);if(e)return e;if(this._bodyBlob)return u(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(l(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},g.formData&&(this.formData=function(){return this.text().then(h)}),this.json=function(){return this.text().then(JSON.parse)},this}function f(e){var t=e.toUpperCase();return _.indexOf(t)>-1?t:e}function p(e,t){t=t||{};var n=t.body;if(e instanceof p){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new i(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new i(t.headers)),this.method=f(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function h(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),o=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(o),decodeURIComponent(i))}}),t}function m(e){var t=new i;return e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var n=e.split(":"),o=n.shift().trim();if(o){var i=n.join(":").trim();t.append(o,i)}}),t}function v(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new i(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){var g={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(g.arrayBuffer)var y=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],b=function(e){return e&&DataView.prototype.isPrototypeOf(e)},w=ArrayBuffer.isView||function(e){return e&&y.indexOf(Object.prototype.toString.call(e))>-1};i.prototype.append=function(e,o){e=t(e),o=n(o);var i=this.map[e];this.map[e]=i?i+","+o:o},i.prototype.delete=function(e){delete this.map[t(e)]},i.prototype.get=function(e){return e=t(e),this.has(e)?this.map[e]:null},i.prototype.has=function(e){return this.map.hasOwnProperty(t(e))},i.prototype.set=function(e,o){this.map[t(e)]=n(o)},i.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},i.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),o(e)},i.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),o(e)},i.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),o(e)},g.iterable&&(i.prototype[Symbol.iterator]=i.prototype.entries);var _=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];p.prototype.clone=function(){return new p(this,{body:this._bodyInit})},d.call(p.prototype),d.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new i(this.headers),url:this.url})},v.error=function(){var e=new v(null,{status:0,statusText:""});return e.type="error",e};var P=[301,302,303,307,308];v.redirect=function(e,t){if(-1===P.indexOf(t))throw new RangeError("Invalid status code");return new v(null,{status:t,headers:{location:e}})},e.Headers=i,e.Request=p,e.Response=v,e.fetch=function(e,t){return new Promise(function(n,o){var i=new p(e,t),r=new XMLHttpRequest;r.onload=function(){var e={status:r.status,statusText:r.statusText,headers:m(r.getAllResponseHeaders()||"")};e.url="responseURL"in r?r.responseURL:e.headers.get("X-Request-URL");var t="response"in r?r.response:r.responseText;n(new v(t,e))},r.onerror=function(){o(new TypeError("Network request failed"))},r.ontimeout=function(){o(new TypeError("Network request failed"))},r.open(i.method,i.url,!0),"include"===i.credentials?r.withCredentials=!0:"omit"===i.credentials&&(r.withCredentials=!1),"responseType"in r&&g.blob&&(r.responseType="blob"),i.headers.forEach(function(e,t){r.setRequestHeader(t,e)}),r.send(void 0===i._bodyInit?null:i._bodyInit)})},e.fetch.polyfill=!0}}("undefined"!=typeof self?self:void 0)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}var i=n(1),r=n(7),a=o(r),s=n(0),u=o(s);e.exports=function(e,t){var n=navigator.userAgent,o=/AliApp\(TM\//gi.test(n);/AliApp\(TB\//gi.test(n);return/AliApp/gi.test(n)?console.log("浏览器环境不支持此调用,请在客户端内尝试"):i.isWeex&&"TM"===navigator.appName||o?u.default.call("favoritesShop","add",{eventName:"shopFavorAsyc",businessParam:{appKey:e.appkey||"",sellerId:e.sellerId||"",isAdd:"1"},mtopApi:"mtop.interact.shop.favor",appkey:e.appkey||""},t,t):void a.default.request({api:"mtop.interact.shop.favor",data:{sellerId:e.sellerId||"",isAdd:"1"}},t,t)}},function(e,t){e.exports=require("@weex-module/mtop")},function(e,t,n){"use strict";var o=(n(1),n(0)),i=function(e){return e&&e.__esModule?e:{default:e}}(o);e.exports={getCurrentPosition:function(e,t,n){n.address||(n.address=1),i.default.call("WVLocation","getLocation",n,function(t){t=JSON.parse(t);var n=t.coords;n&&(n.longitude=parseFloat(n.longitude),n.latitude=parseFloat(n.latitude),n.accuracy=parseFloat(n.accuracy)),t.errorCode=0,e&&e(t)},function(o){if("HY_NOT_SUPPORT_DEVICE"===o.ret[0])try{window.navigator.geolocation.getCurrentPosition(e,t,n)}catch(e){t&&t(e)}})}}},function(e,t,n){"use strict";var o=n(27),i=function(e){return e&&e.__esModule?e:{default:e}}(o);e.exports=i.default},function(e,t,n){"use strict";function o(){return"jsonp_"+Date.now()+"_"+Math.ceil(1e5*Math.random())}function i(e){try{delete window[e]}catch(t){window[e]=void 0}}function r(e){document.getElementsByTagName("head")[0].removeChild(e)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(8),s={timeout:5e3,jsonpCallback:"callback"},u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(a.isWeex){var n=__weex_require__("@weex-module/stream");return new Promise(function(i,r){var a=null!=t.jsonpCallback?t.jsonpCallback:s.jsonpCallback,u=t.jsonpCallbackFunctionName||o();-1==e.indexOf(a)&&(e+=-1===e.indexOf("?")?"?":"&",e=e+a+"="+u);var l={url:e,method:"GET",type:"jsonp"};n.fetch(l,function(e){try{if("string"==typeof e&&(e=JSON.parse(e),e.data&&"string"==typeof e.data&&e.ok))try{e.data=JSON.parse(e.data)}catch(e){throw new Error("the response.data in not valid json")}i({ok:e.ok,status:e.status,statusText:e.statusText,data:e.data,json:function(){return Promise.resolve(e.data)}})}catch(e){r(e)}},function(e){})})}return new Promise(function(n,a){var u=null!=t.timeout?t.timeout:s.timeout,l=null!=t.jsonpCallback?t.jsonpCallback:s.jsonpCallback,c=void 0,d=t.jsonpCallbackFunctionName||o(),f=document.createElement("script");window[d]=function(e){n({ok:!0,json:function(){return Promise.resolve(e)}}),c&&clearTimeout(c),r(f),i(d)},e+=-1===e.indexOf("?")?"?":"&",f.setAttribute("src",e+l+"="+d),document.getElementsByTagName("head")[0].appendChild(f),c=setTimeout(function(){a(new Error("JSONP request to "+e+" timed out")),i(d),r(f)},u)})};t.default=u,e.exports=t.default},function(e,t,n){"use strict";var o=n(7),i=function(e){return e&&e.__esModule?e:{default:e}}(o);e.exports=i.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}var i=n(30),r=o(i),a=n(32),s=o(a),u=n(1),l=navigator.userAgent,c=/AliApp\(TM\//gi.test(l),d=(/AliApp\(TB\//gi.test(l),{});if(u.isWeex){var f=n(9),p=n(33);d={pushWindow:function(e,t){f.push(e,t,t)},popWindow:function(e,t){f.pop(e,t,t)},openWindow:function(e,t){f.open(e,t,t)},closeWindow:function(e,t){f.close(e,t,t)},showTitle:function(e,t){p.show(e,t,t)},hideTitle:function(e,t){p.hide(e,t,t)},setTitle:function(e,t){p.setTitle(e,t,t)},setLeftItem:function(e,t){p.setLeftItem(e,t,t)},setRightItem:function(e,t){p.setRightItem(e,t,t)},setStyle:function(e,t){p.setStyle(e,t,t)},setStatusBarStyle:function(e,t){p.setStatusBarStyle(e,t,t)}}}else d=c?r.default:s.default;e.exports=d},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=o(i),a=n(31),s=(o(a),{toast:function(e,t){var n="string"==typeof e?{text:e}:e;n.duration=n.duration||2e3;var o={message:n.text,duration:(n.duration||2e3)/1e3};r.default.call("WVUIToast","toast",o,t,t)},showLoading:function(e,t){e=e||"加载中...",window.TMM&&TMM.APP.call("Window.showProgress",[e],t,t)},hideLoading:function(e){window.TMM&&TMM.APP.call("Window.hideProgress",[],e,e)},showTitle:function(e){window.TMM&&TMM.APP.call("Window.showTitle",[1],e,e)},hideTitle:function(e){window.TMM&&TMM.APP.call("Window.hideTitle",[],e,e)},setTitle:function(e,t){var n="string"==typeof e?e:e&&e.text;window.TMM&&TMM.APP.call("Window.setTitle",[n],t,t)},pushWindow:function(e,t){var n="string"==typeof e?e:e&&e.url;if(n)if(window.lib&&lib.env.os.isAndroid)window.TMM&&TMM.APP.call("Logic.triggerAction",["link:url="+n],t,t);else{var o={url:n};r.default.call("Base","openWindow",o,t,t)}else t&&t({errorCode:2,errorMessage:"参数无效"})},popWindow:function(e){window.TMM&&TMM.APP.call("Window.back",[],e,e)},pageVisibility:{watch:function(e){if(!this.visibility){var t=function(t){var n={errorCode:t.code||0,errorMessage:"调用成功",visible:t.data&&t.data.visible};e&&e(n)};window.TMM&&TMM.APP.call("PageVisibility.watchVisibilitychange",["visibility"],t,t)}},clearWatch:function(e){TMM.APP.call("PageVisibility.clearWatch",["visibility"],e,e)}}});t.default=s,e.exports=t.default},function(module,exports,__webpack_require__){"use strict";var _typeof="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};~function(win){if(!win.TMM){try{if(void 0===DeviceInfo||"object"!=(void 0===DeviceInfo?"undefined":_typeof(DeviceInfo)))var DeviceInfo={}}catch(e){var DeviceInfo={}}if("object"!=(void 0===DeviceInfo?"undefined":_typeof(DeviceInfo)))var DeviceInfo={};var PhoneGap={queue:{ready:!0,commands:[],timer:null}};PhoneGap.Channel=function(e){this.type=e,this.handlers={},this.guid=0,this.fired=!1,this.enabled=!0},PhoneGap.Channel.prototype.subscribe=function(e,t,n){if(null!=e){var o=e;return"object"==(void 0===t?"undefined":_typeof(t))&&e instanceof Function&&(o=PhoneGap.close(t,e)),n=n||o.observer_guid||e.observer_guid||this.guid++,o.observer_guid=n,e.observer_guid=n,this.handlers[n]=o,n}},PhoneGap.Channel.prototype.subscribeOnce=function(e,t){var n=null,o=this,i=function(){e.apply(t||null,arguments),o.unsubscribe(n)};return this.fired?("object"==(void 0===t?"undefined":_typeof(t))&&e instanceof Function&&(e=PhoneGap.close(t,e)),e.apply(this,this.fireArgs)):n=this.subscribe(i),n},PhoneGap.Channel.prototype.unsubscribe=function(e){e instanceof Function&&(e=e.observer_guid),this.handlers[e]=null,delete this.handlers[e]},PhoneGap.Channel.prototype.fire=function(e){if(this.enabled){var t=!1;for(var n in this.handlers){var o=this.handlers[n];if(o instanceof Function){var i=0==o.apply(this,arguments);t=t||i}}return this.fired=!0,this.fireArgs=arguments,!t}return!0},PhoneGap.Channel.join=function(e,t){for(var n=t.length,o=function(){--n||e()},i=0;i<n;i++)t[i].fired?n--:t[i].subscribeOnce(o);n||e()},PhoneGap.available=void 0!=DeviceInfo.uuid,PhoneGap.addConstructor=function(e){PhoneGap.onPhoneGapInit.subscribeOnce(function(){try{e()}catch(e){"function"==typeof debug.log?debug.log("Failed to run constructor: "+debug.processMessage(e)):alert("Failed to run constructor: "+e.message)}})},PhoneGap.addPlugin=function(e,t){window.plugins||(window.plugins={}),window.plugins[e]||(window.plugins[e]=t)},PhoneGap.onDOMContentLoaded=new PhoneGap.Channel("onDOMContentLoaded"),PhoneGap.onNativeReady=new PhoneGap.Channel("onNativeReady"),PhoneGap.onPhoneGapInit=new PhoneGap.Channel("onPhoneGapInit"),PhoneGap.onPhoneGapReady=new PhoneGap.Channel("onPhoneGapReady"),PhoneGap.onPhoneGapInfoReady=new PhoneGap.Channel("onPhoneGapInfoReady"),PhoneGap.onResume=new PhoneGap.Channel("onResume"),PhoneGap.onPause=new PhoneGap.Channel("onPause"),"undefined"!=typeof _nativeReady&&PhoneGap.onNativeReady.fire(),PhoneGap.onDeviceReady=new PhoneGap.Channel("onDeviceReady"),PhoneGap.Channel.join(function(){setTimeout(function(){try{CallbackServer.usePolling()?PhoneGap.JSCallbackPolling():PhoneGap.JSCallback()}catch(e){}},1),PhoneGap.onPhoneGapInit.fire(),PhoneGap.onPhoneGapReady.fire()},[PhoneGap.onDOMContentLoaded,PhoneGap.onNativeReady]),PhoneGap.Channel.join(function(){navigator.notification.activityStop(),PhoneGap.onDeviceReady.fire(),PhoneGap.onResume.fire()},[PhoneGap.onPhoneGapReady,PhoneGap.onPhoneGapInfoReady]),document.addEventListener("DOMContentLoaded",function(){PhoneGap.onDOMContentLoaded.fire()},!1),PhoneGap.m_document_addEventListener=document.addEventListener,document.addEventListener=function(e,t,n){var o=e.toLowerCase();"deviceready"==o?PhoneGap.onDeviceReady.subscribeOnce(t):"resume"==o?PhoneGap.onResume.subscribe(t):"pause"==o?PhoneGap.onPause.subscribe(t):PhoneGap.m_document_addEventListener.call(document,e,t)},PhoneGap.stringify=function(e){if("undefined"==typeof JSON){for(var t="[",n=0;n<e.length;n++){n>0&&(t+=",");var o=_typeof(e[n]);if("number"==o||"boolean"==o)t+=e[n];else if(e[n]instanceof Array)t=t+"["+e[n]+"]";else if(e[n]instanceof Object){var i=!0;t+="{";for(var r in e[n]){i||(t+=","),t=t+'"'+r+'":';var a=_typeof(e[n][r]);"number"==a||"boolean"==a?t+=e[n][r]:t=t+'"'+e[n][r]+'"',i=!1}t+="}"}else{var s=e[n].replace(/\\/g,"\\\\");s=s.replace(/"/g,'\\"'),t=t+'"'+s+'"'}}return t+="]"}return JSON.stringify(e)},PhoneGap.clone=function(e){if(!e)return e;if(e instanceof Array){for(var t=new Array,n=0;n<e.length;++n)t.push(PhoneGap.clone(e[n]));return t}if(e instanceof Function)return e;if(!(e instanceof Object))return e;t=new Object;for(n in e)n in t&&t[n]==e[n]||(t[n]=PhoneGap.clone(e[n]));return t},PhoneGap.callbackId=0,PhoneGap.callbacks={},PhoneGap.callbackStatus={NO_RESULT:0,OK:1,CLASS_NOT_FOUND_EXCEPTION:2,ILLEGAL_ACCESS_EXCEPTION:3,INSTANTIATION_EXCEPTION:4,MALFORMED_URL_EXCEPTION:5,IO_EXCEPTION:6,INVALID_ACTION:7,JSON_EXCEPTION:8,ERROR:9},PhoneGap.exec=function(success,fail,service,action,args){try{var callbackId=service+PhoneGap.callbackId++;(success||fail)&&(PhoneGap.callbacks[callbackId]={success:success,fail:fail});var r=""+PluginManager.exec(service,action,callbackId,this.stringify(args),!0);if(r.length>0){if(eval("var v="+r+";"),v.status==PhoneGap.callbackStatus.OK){if(success){try{success(v.message)}catch(e){console.log("Error in success callback: "+callbackId+" = "+e)}v.keepCallback||delete PhoneGap.callbacks[callbackId]}return v.message}if(v.status!=PhoneGap.callbackStatus.NO_RESULT){if(console.log("Error: Status="+r.status+" Message="+v.message),fail){try{fail(v.message)}catch(e){console.log("Error in error callback: "+callbackId+" = "+e)}v.keepCallback||delete PhoneGap.callbacks[callbackId]}return null}v.keepCallback||delete PhoneGap.callbacks[callbackId]}}catch(e){console.log("Error: "+e)}},PhoneGap.callbackSuccess=function(e,t){if(PhoneGap.callbacks[e]){if(t.status==PhoneGap.callbackStatus.OK)try{PhoneGap.callbacks[e].success&&PhoneGap.callbacks[e].success(t.message)}catch(t){console.log("Error in success callback: "+e+" = "+t)}t.keepCallback||delete PhoneGap.callbacks[e]}},PhoneGap.callbackError=function(e,t){if(PhoneGap.callbacks[e]){try{PhoneGap.callbacks[e].fail&&PhoneGap.callbacks[e].fail(t.message)}catch(t){console.log("Error in error callback: "+e+"