!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="//<%=CSS_DOMAIN%>/qcloud/main/scripts/",t(0)}({0:function(e,t,n){"use strict";function r(){var e=window.location.href.split("#")[0],t=document.title,n=document.getElementById("shareThumbnail")||"";n&&(n=n.value);var r=n||"http://imgcache.qq.com/open_proj/proj_qcloud_v2/gateway/portal/css/img/home/responsive/m-qc-share.png",o=document.getElementsByName("description");return o=o&&o.length?o[0].getAttribute("content"):"",{title:t,link:e,imgUrl:r,desc:o,success:c.noop,cancel:c.noop}}function o(e,t,n){if(a.isInWechat()){var o=!1;e===!0&&(o=!0,e=null),"function"==typeof t&&"undefined"==typeof n&&(n=t,t={}),t||(t={});var i=void 0;"boolean"==typeof t.debug&&(i=t.debug),location.search.indexOf("!debug")>-1&&(i=!0);var c=r(),u={};if(e=e||window.WECHAT_SHARE_CONFIG,o&&s.info("init-share",{initConfig:JSON.stringify({WECHAT_SHARE_CONFIG:window.WECHAT_SHARE_CONFIG,defaultConfig:c})}),e&&e.default){u.default={};for(var f in c)u.default[f]=e.default[f]||c[f]}else u.default=c;for(var l in e)"default"!==l&&(u[l]=e[l]);var p=a.share(u,i);return"function"==typeof n&&p.then(function(e){return n(null,e)},function(e){return n(e)}),p}}var i=n("5zlo"),a=new i,c=n("K7ar"),s=n("vgsS"),u="miniprogram"===window.__wxjs_environment;o(!0),window.wechatJsSdk=e.exports={isInWeapp:u,share:o,setOption:function(e,t){a.options[e]=t},init:function(e,t){return c.wrapPromiseCallback(a.init.bind(a),e,t)},checkIsMiniprogram:function(e){return c.wrapPromiseCallback(a.checkIsMiniprogram.bind(a),e)}};try{Object.defineProperty(window.wechatJsSdk,"__api",{get:function(){return a}})}catch(e){}},knfd:function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},"4E3U":function(e,t,n){e.exports=n("CVma")},CVma:function(e,t,n){var r=function(){return this}()||Function("return this")(),o=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,i=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n("dgxz"),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(e){r.regeneratorRuntime=void 0}},dgxz:function(e,t){!function(t){"use strict";function n(e,t,n,r){var i=t&&t.prototype instanceof o?t:o,a=Object.create(i.prototype),c=new h(r||[]);return a._invoke=u(e,n,c),a}function r(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function o(){}function i(){}function a(){}function c(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function s(e){function t(n,o,i,a){var c=r(e[n],e,o);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==typeof u&&y.call(u,"__await")?Promise.resolve(u.__await).then(function(e){t("next",e,i,a)},function(e){t("throw",e,i,a)}):Promise.resolve(u).then(function(e){s.value=e,i(s)},a)}a(c.arg)}function n(e,n){function r(){return new Promise(function(r,o){t(e,n,r,o)})}return o=o?o.then(r,r):r()}var o;this._invoke=n}function u(e,t,n){var o=P;return function(i,a){if(o===E)throw new Error("Generator is already running");if(o===I){if("throw"===i)throw a;return m()}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var s=f(c,n);if(s){if(s===R)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===P)throw o=I,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=E;var u=r(e,t,n);if("normal"===u.type){if(o=n.done?I:O,u.arg===R)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=I,n.method="throw",n.arg=u.arg)}}}function f(e,t){var n=e.iterator[t.method];if(n===g){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=g,f(e,t),"throw"===t.method))return R;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return R}var o=r(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,R;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=g),t.delegate=null,R):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,R)}function l(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function p(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function h(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(l,this),this.reset(!0)}function d(e){if(e){var t=e[x];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var a=y.call(o,"catchLoc"),c=y.call(o,"finallyLoc");if(a&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&y.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),p(n),R}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;p(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:d(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=g),R}}}(function(){return this}()||Function("return this")())},K7ar:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,i){try{var a=t[o](i),c=a.value}catch(e){return void n(e)}return a.done?void e(c):Promise.resolve(c).then(function(e){r("next",e)},function(e){r("throw",e)})}return r("next")})}}function i(e){var t=document.createElement("script");return Promise.race([new Promise(function(n,r){function o(){document.body.removeChild(t),t=t.onload=t.onerror=null}t.async=!0,t.onload=function(){n(),o()},t.onerror=function(){r("Load script failed"),o()},t.src=e,document.body.appendChild(t)}),new Promise(function(e,t){return setTimeout(function(){return t("Load script timeout")},1e4)})])}function a(e){return new Promise(function(t,n){function r(){delete window[o]}var o="wechatApiCallback_"+Date.now(),a=!1;e=""+e+(e.indexOf("?")>-1?"&":"?")+"callback="+o,window[o]=function(e){a=!0,t(e),r()},i(e).catch(function(e){!a&&e&&(n(e),r())})})}function c(e,t){t||(t={}),e||(e={});var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n}function s(e){return JSON.parse(JSON.stringify(e))}function u(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o1&&void 0!==arguments[1]?arguments[1]:3;return l.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=0,r=void 0;case 2:if(!(n-1}},{key:"isDomainValidate",value:function(){return this.options.whiteList.some(function(e){return e.test(location.host)})}},{key:"initScript",value:function(){var e=this,t=function(){return e._initScriptPromise||(e._initScriptPromise=new Promise(function(t,r){if("wx"in window)return t();var o=Date.now(),i=(n("2tW8")||n("knfd").cmd)&&"seajs"in window,a=function(t){h.info("init-script-fail",{usingAMD:i,error:t,cost:Date.now()-o}),setTimeout(function(){r(t),e._initScriptPromise=null},0)},c=function(){h.info("init-script-success",{usingAMD:i,cost:Date.now()-o}),t()};h.info("init-script-start",{usingAMD:i}),i?seajs.use(e.options.scriptUrl,function(e){e?(window.wx=e,c()):a("Load script failed!")}):l.getScript(e.options.scriptUrl).then(c,a)}))};return l.retryFn(t)}},{key:"getSignature",value:function(){var e=this,t=this.options.authUrl,n=function(){return e._getSignaturePromise||(e._getSignaturePromise=new Promise(function(){var n=o(s.default.mark(function n(r,o){var i,a,c,f;return s.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return i=Date.now(),n.prev=1,h.info("get-api-signature-start"),n.next=5,l.getJsonp(t+"?url="+encodeURIComponent(location.href.split("#")[0]));case 5:if(a=n.sent){n.next=8;break}throw"Empty response";case 8:if(c=a.code,f=a.data,!c){n.next=11;break}throw a;case 11:h.info("get-api-signature-success",u({},f,{cost:Date.now()-i})),r(f),n.next=20;break;case 15:n.prev=15,n.t0=n.catch(1),h.info("get-api-signature-fail",{error:n.t0,cost:Date.now()-i}),o(n.t0),e._getSignaturePromise=null;case 20:case"end":return n.stop()}},n,e,[[1,15]])}));return function(e,t){return n.apply(this,arguments)}}()))};return l.retryFn(n)}},{key:"configSdk",value:function(){function e(e,n){return t.apply(this,arguments)}var t=o(s.default.mark(function e(t,n){var r=this;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._configSdkPromise||(this._configSdkPromise=new Promise(function(){var e=o(s.default.mark(function e(o,i){var a,c,f,l,p,d;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=void 0,c=Date.now(),e.prev=2,f=r.options,l=f.debug,p=f.jsApiList,r.callbackRegitry||(r.callbackRegitry=!0,wx.ready(function(){r.__sdkConfigResolve()}),wx.error(function(e){r.__sdkConfigReject(e)})),d=u({debug:"boolean"==typeof n?n:l,jsApiList:p},t),h.info("sdk-config-start",d),e.next=9,Promise.race([new Promise(function(e,t){r.__sdkConfigResolve=e,r.__sdkConfigReject=t,wx.config(d)}),new Promise(function(e,t){a=setTimeout(function(){t("init auth timeout")},1e4)})]);case 9:h.info("sdk-config-success",{cost:Date.now()-c}),o(),e.next=19;break;case 13:e.prev=13,e.t0=e.catch(2),h.info("sdk-config-fail",{error:e.t0,cost:Date.now()-c}),r._configSdkPromise=null,r._getSignaturePromise=null,i(e.t0);case 19:return e.prev=19,clearTimeout(a),e.finish(19);case 22:case"end":return e.stop()}},e,r,[[2,13,19,22]])}));return function(t,n){return e.apply(this,arguments)}}())));case 1:case"end":return e.stop()}},e,this)}));return e}()},{key:"initAuth",value:function(){function e(e){return t.apply(this,arguments)}var t=o(s.default.mark(function e(t){var n;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.authReady){e.next=2;break}return e.abrupt("return",Promise.resolve());case 2:return e.next=4,this.getSignature();case 4:return n=e.sent,e.next=7,this.configSdk(n,t);case 7:this.authReady=!0;case 8:case"end":return e.stop()}},e,this)}));return e}()},{key:"checkIsMiniprogram",value:function(){var e=this;return this._checkIsMiniprogramPromise||(this._checkIsMiniprogramPromise=new Promise(function(){var t=o(s.default.mark(function t(n,r){var o,i,a;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=function(){return new Promise(function(e){return wx.miniProgram.getEnv(function(t){return e(t.miniprogram)})})},o=Date.now(),t.prev=2,h.info("check-is-miniprogram-start"),t.next=6,e.initScript();case 6:return o=Date.now(),t.next=9,Promise.race([a(),new Promise(function(e,t){setTimeout(function(){t("wx.miniProgram.getEnv:fail timeout")},1e4)})]);case 9:i=t.sent,h.info("check-is-miniprogram-success",{isMiniProgram:i,cost:Date.now()-o}),n(i),t.next=19;break;case 14:t.prev=14,t.t0=t.catch(2),h.info("check-is-miniprogram-fail",{error:t.t0,cost:Date.now()-o}),r(t.t0),e._checkIsMiniprogramPromise=null;case 19:case"end":return t.stop()}},t,e,[[2,14]])}));return function(e,n){return t.apply(this,arguments)}}()))}},{key:"shareIconFallback",value:function(e){h.info("share-fallback-start");try{var t="__default_share_icon_id",n=document.getElementById(t);n||(n=document.createElement("div"),n.setAttribute("id",t),n.setAttribute("style","width: 0;height:0;overflow: hidden;"),document.body.insertBefore(n,document.body.firstChild)),e=e.replace(/^http:/,"https:"),n.innerHTML='',h.info("share-fallback-success",{imgUrl:e})}catch(e){h.info("share-fallback-fail",{error:e})}}},{key:"init",value:function(){function e(e){return t.apply(this,arguments)}var t=o(s.default.mark(function e(t){var n=this;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._initPromise||(this._initPromise=new Promise(function(){var e=o(s.default.mark(function e(r,o){return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(h.info("init-start"),e.prev=1,n.isInWechat()){e.next=4;break}throw"InvalidEnvironment";case 4:if(n.isDomainValidate()){e.next=6;break}throw"InvalidEnvironment";case 6:return e.next=8,n.initScript();case 8:return e.next=10,n.initAuth(t);case 10:h.info("init-success"),r(),e.next=19;break;case 14:e.prev=14,e.t0=e.catch(1),h.info("init-fail",{error:e.t0}),o(e.t0),n._initPromise=null;case 19:case"end":return e.stop()}},e,n,[[1,14]])}));return function(t,n){return e.apply(this,arguments)}}())));case 1:case"end":return e.stop()}},e,this)}));return e}()},{key:"share",value:function(){function e(e,n){return t.apply(this,arguments)}var t=o(s.default.mark(function e(t,n){var r,o,i;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t,h.info("share-start",{shareOptions:t,isDebug:n}),e.prev=2,t=a(t),e.next=6,this.checkIsMiniprogram();case 6:if(o=e.sent,!o){e.next=13;break}return h.info("miniprogram-postmessage-start"),i={data:{type:"share",shareConfig:{title:t.timeline.title,url:location.href}}},wx.miniProgram.postMessage(i),h.info("miniprogram-postmessage-success",{postData:JSON.stringify(i)}),e.abrupt("return");case 13:return e.next=15,this.init(n);case 15:wx.onMenuShareTimeline({title:t.timeline.title,link:t.timeline.link,imgUrl:t.timeline.imgUrl,success:t.timeline.success,cancel:t.timeline.cancel}),wx.onMenuShareAppMessage({title:t.friend.title,desc:t.friend.desc,link:t.friend.link,imgUrl:t.friend.imgUrl,type:t.friend.type||"link",success:t.friend.success,cancel:t.friend.cancel}),wx.onMenuShareQQ({title:t.qq.title,desc:t.qq.desc,link:t.qq.link,imgUrl:t.qq.imgUrl,success:t.qq.success,cancel:t.qq.cancel}),wx.onMenuShareWeibo({title:t.weibo.title,desc:t.weibo.desc,link:t.weibo.link,imgUrl:t.weibo.imgUrl,success:t.weibo.success,cancel:t.weibo.cancel}),wx.onMenuShareQZone({title:t.qzone.title,desc:t.qzone.desc,link:t.qzone.link,imgUrl:t.qzone.imgUrl,success:t.qzone.success,cancel:t.qzone.cancel}),h.info("share-setting-success",{shareOptions:r}),e.next=27;break;case 23:return e.prev=23,e.t0=e.catch(2),e.t0&&(h.info("share-setting-fail",{error:e.t0}),t&&t.default&&t.default.imgUrl&&this.shareIconFallback(t.default.imgUrl)),e.abrupt("return",Promise.reject(e.t0));case 27:return e.prev=27,h.flush(),e.finish(27);case 30:case"end":return e.stop()}},e,this,[[2,23,27,30]])}));return e}()}]),e}();e.exports=d},vgsS:function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(){var e=[],t=window.__IDC_DOMAINS__;if("object"===("undefined"==typeof t?"undefined":s(t)))for(var n in t)t[n]===!0&&e.push(n);var r=u.get("uin");return r=r?parseInt(r.replace(/\D/g,""),10):0,{lid:m,born:d,at:Date.now(),path:[location.pathname,location.hash].join("").replace(/^\/#/,""),uin:r,quid:u.get("qcloud_uid"),idcDomains:e.join("; "),idcDomainCount:e.length}}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.app,i=void 0===n?"wechatjssdk":n,a=t.level,s=void 0===a?0:a,u=t.message,f=t.stack,l=r(t,["app","level","message","stack"]);try{var p=c({},o(),{event:e,app:i,level:s,message:u,stack:f},l);l.error&&!u&&(p.message=l.error.message||l.error.msg||l.error.errMsg,p.stack=l.error.stack),"undefined"!=typeof p.code&&(p.code=String(p.code)),h.push(p),g&&console.log("report event: ",e,p)}catch(e){console.warn("push insight queue fail",e)}}function a(e){if("function"==typeof navigator.sendBeacon)navigator.sendBeacon(p,JSON.stringify(e));else{var t=XMLHttpRequest;/msie (\d+)/i.test(navigator.userAgent)&&+RegExp.$1<=9&&"function"==typeof XDomainRequest&&(t=XDomainRequest);var n=new t;n.open("POST",p),n.send(JSON.stringify(e))}}var c=Object.assign||function(e){for(var t=1;t-1;e.exports={reportInsight:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(e,t),h.length>15&&this.doReport()},flush:function(){this.doReport()},info:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.reportInsight(e,c({level:l.INFO},t))},warn:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.reportInsight(e,c({level:l.WARN},t))},error:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.reportInsight(e,c({level:l.ERROR},t))},doReport:function(){h.length&&a(h),h.length=0}}},WPtr:function(e,t,n){var r,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(i){r=i,o="function"==typeof r?r.call(t,n,t,e):r,!(void 0!==o&&(e.exports=o))}(function(){function e(){for(var e=0,t={};e1){if(i=e({path:"/"},r.defaults,i),"number"==typeof i.expires){var c=new Date;c.setMilliseconds(c.getMilliseconds()+864e5*i.expires),i.expires=c}try{a=JSON.stringify(o),/^[\{\[]/.test(a)&&(o=a)}catch(e){}return o=n.write?n.write(o,t):encodeURIComponent(String(o)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)),t=t.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),t=t.replace(/[\(\)]/g,escape),document.cookie=[t,"=",o,i.expires&&"; expires="+i.expires.toUTCString(),i.path&&"; path="+i.path,i.domain&&"; domain="+i.domain,i.secure?"; secure":""].join("")}t||(a={});for(var s=document.cookie?document.cookie.split("; "):[],u=/(%[0-9A-Z]{2})+/g,f=0;fo.length||n<=1)return!1;for(;e>=1;)i=o[e-n*Math.floor(e/n)]+i,e=Math.floor(e/n);return n<11?parseInt(i):i},_salts:function(){for(var e=this,t=e._opt,o=t.salts||2,i="",a=0;a0?Math.floor(((new Date).getTime()-i)/o):0,c=t._salts();return 0===a?c:t._toBase(a,n)+c}},{inst:function(e){return new o(e)},gen:function(e){return new o(e).gen()},uuid:function(){return new o({salts:4}).gen()}}})},"2tW8":function(e,t){(function(t){e.exports=t}).call(t,{})},ViP3:function(e,t){"use strict";e.exports={debug:!1,scriptUrl:"//res.wx.qq.com/open/js/jweixin-1.4.0.js",authUrl:"//"+(location.hostname.indexOf("www.qcloud.com")>-1?"www.qcloud.com":"cloud.tencent.com")+"/services/ajax/get_wechat_api_signature",whiteList:[/www\.qcloud\.com$/,/cloud\.tencent\.com$/],maxRetry:3,jsApiList:["updateAppMessageShareData","updateTimelineShareData","miniProgram","getLocalImgData","startSearchBeacons","stopSearchBeacons","onSearchBeacons","onMenuShareTimeline","onMenuShareAppMessage","onMenuShareQQ","onMenuShareWeibo","startRecord","stopRecord","onVoiceRecordEnd","playVoice","pauseVoice","stopVoice","onVoicePlayEnd","uploadVoice","downloadVoice","chooseImage","previewImage","uploadImage","downloadImage","translateVoice","getNetworkType","openLocation","getLocation","hideOptionMenu","showOptionMenu","hideMenuItems","showMenuItems","hideAllNonBaseMenuItem","showAllNonBaseMenuItem","closeWindow","scanQRCode","chooseWXPay","openProductSpecificView","addCard","chooseCard","openCard","checkJSApi"]}}});