,而列的标签则是。def send_Email(Email_address, email_text): from_addr = '*****' #发出电子邮件的地址 password = '*****' #发出电子邮件的密码 title = '股票价格异动监控消息-' + datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S') #电子邮件的标题 msg = MIMEText(email_text, 'html', 'utf-8') #电子邮件的格式是HTML msg['From'] = from_addr msg['To'] = Email_address msg['Subject'] = title
try: server = smtplib.SMTP_SSL('smtp.qq.com', 465) server.login(from_addr, password) # 发送邮件 server.send_message(msg) server.quit()
# print(Email_address+' send success!') #send_info.append(Email_address + ' send success!\n') except Exception as e: a+1 # print(e) #send_info.append(e + '\n') #send_info.append(Email_address + ' send failed!\n') # print(Email_address+' send failed!') from_addr为发件人的邮箱地址,而password则是发件人的授权码,这里需要根据实际情况进行修改和填写。server = smtplib.SMTP_SSL('smtp.qq.com', 465)是选择QQ邮箱的SMTP服务器地址smtp.qq.com,默认端口为465,如果是其他邮箱,则应该进行相应的服务器和端口号进行修改。如何获取发件人的授权码呢?以QQ邮箱为例说明:第一步:登录QQ邮箱,单击顶部的“设置”链接,然后单击“账户”标签,如下图所示。第二步:在“账户”选项卡中向下滚动,直到看到如下图所示的选项,单击“POP3/SMTP服务”右侧的“开启”链接,如下图所示。第三步:单击“开启”链接后,会有一个验证密保的过程。按照页面中的说明,向指定号码发送指定内容的手机短信,发送完毕后单击页面中的“我已发送”按钮,会弹出一个框,里面就包含SMTP授权码,把它复制并存储起来,方便以后调用。 ④ 编写调用do_programe(code)的监控程序为了实现主体程序的调用,编写run()方法入下所示:def run(): while True: do_programe('600905') now_time=datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S') d1 = datetime.datetime.strptime(now_time, '%Y-%m-%d %H:%M:%S') d2 = datetime.datetime.strptime(datetime.datetime.now().strftime('%Y-%m-%d')+' 15:00:00', '%Y-%m-%d %H:%M:%S') delta = d2 - d1 if
delta.total_seconds()<=0: sys.exit() time.sleep(1) ⑤ 编写每天9点30分开始监控的主程序为了实现每个交易日交易时点开始监控,需要的程序如下所示:if __name__ == '__main__': schedule.every().day.at("09:30").do(run) while True: schedule.run_pending() time.sleep(1) ⑥ 程序打包与自动运行当编写完程序以后,就需要通过打包的形式把程序转化为exe格式,该格式下的程序可以点击或者设置自动运行,打包的库是pyinstaller ,使用命令pyinstaller -w -F 程序路径\程序名.py 即可。其中-w表示生成的exe文件运行时不出现黑色的DOS界面,我们只需要该程序 “悄悄” 在后台运行即可。为了实现程序在电脑开机的时候自动运行,可以将生成的exe文件复制到windwos系统的Startup文件夹下,点击windows的开始菜单-所有程序,找到“启动”或者“Startup”的文件夹,将exe文件复制到该文件夹内,每次开机,电脑就可以自动运行该监控程序。因为程序运行不出现任何界面,为了查看程序是否在运行,可以用快捷键“Ctrl Alt Delete”的快捷键打开任务管理器,在进程里面可以查看到“股票监控.exe”(这里的文件名是作者改的文件名) 的文件,表明程序在监控中。展望该程序只是设置了一只股票来作为简单功能实现的案例,仍然有一定的改进空间,说明如下。一是在实践中,往往都是构建一个股票池(数只股票) 来动态监测股价和自动判断交易时点(比如MACD,均线,KDJ指标等) ,往往需要结合数据库技术,才能便于灵活构造股票池。二是对于发送短信的功能,本文中并未做介绍,仅介绍了电子邮件,其实短信通知的思路和邮件的思路一致。如果要实现免费发短信功能,读者可以在twilio 网站上(https://www.twilio.com)上注册和调用相应功能即可,读者可以再网上搜索。三是关于Tushare数据接口,本文中用的是Tushare老的接口API,目前官方主要维护的是Tushare Pro接口,相应的调用功能要达到一定的积分才可以,但是相比其他收费接口,Tushare是属于业界的良心之作,关于Tushare Pro,参考的网址详见https://waditu.com/document/2。四是其他商业的量化接口,可以推荐聚宽量化接口,大约有半年左右的免费试用期,但是免费过后,每个月还是有几千元的收费,读者可选择使用聚宽网址https://www.joinquant.com/view/community/list?listType=1。五是关于爬虫获取证券交易数据,现在证券交易数据比较丰富的网站有东方财富、同花顺、新浪财经以及和讯网等。通过爬虫也可以获取相应的数据,但是应当注意的是,像本文中每个交易日每秒钟调用一次API,如果用爬虫来实现,就不理想,因为调用太频繁可能触发网站的反爬虫机制。六是该程序设置的是在本地计算机上自动开机运行,在程序不断优化和增加功能后,感兴趣的读者可以了解购买云服务器部署监控程序。
点击下方阅读原文加入社区会员
预览时标签不可点
微信扫一扫 关注该公众号
微信扫一扫 使用小程序
0) break;
outerWidth += parseFloat(parent_style.paddingLeft) + parseFloat(parent_style.paddingRight) + parseFloat(parent_style.marginLeft) + parseFloat(parent_style.marginRight) + parseFloat(parent_style.borderLeftWidth) + parseFloat(parent_style.borderRightWidth);
parent = parent.parentNode;
}
return parent_width;
}
var getOuterW=function(dom){
var style=getComputedStyle(dom),
w=0;
if(!!style){
w = parseFloat(style.paddingLeft) + parseFloat(style.paddingRight) + parseFloat(style.borderLeftWidth) + parseFloat(style.borderRightWidth);
}
return w;
};
var getOuterH =function(dom){
var style=getComputedStyle(dom),
h=0;
if(!!style){
h = parseFloat(style.paddingTop) + parseFloat(style.paddingBottom) + parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth);
}
return h;
};
var insertAfter = function(dom,afterDom){
var _p = afterDom.parentNode;
if(!_p){
return;
}
if(_p.lastChild === afterDom){
_p.appendChild(dom);
}else{
_p.insertBefore(dom,afterDom.nextSibling);
}
};
var getQuery = function(name,url){
var u = arguments[1] || window.location.search,
reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"),
r = u.substr(u.indexOf("\?")+1).match(reg);
return r!=null?r[2]:"";
};
function setImgSize(item, widthNum, widthUnit, ratio, breakParentWidth) {
setTimeout(function () {
var img_padding_border = getOuterW(item) || 0;
var img_padding_border_top_bottom = getOuterH(item) || 0;
if (widthNum > getParentWidth(item) && !breakParentWidth) {
widthNum = getParentWidth(item);
}
height = (widthNum - img_padding_border) * ratio + img_padding_border_top_bottom;
if (isIE || '0' === '1') {
var url = item.getAttribute('data-src');
item.src = url;
} else {
if(parseFloat(widthNum, 10) > 40 && height > 40 && breakParentWidth) {
item.className += ' img_loading';
}
item.src = "data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWNgYGBgAAAABQABh6FO1AAAAABJRU5ErkJggg==";
}
widthNum !== 'auto' && (item.style.cssText += ";width: " + widthNum + widthUnit + " !important;");
widthNum !== 'auto' && (item.style.cssText += ";height: " + height + widthUnit + " !important;");
}, 10);
}
(function(){
var images = document.getElementsByTagName('img');
var length = images.length;
var max_width = getMaxWith();
for (var i = 0; i < length; ++i) {
if (window.__second_open__ && images[i].getAttribute('__sec_open_place_holder__')) {
continue;
}
var imageItem = images[i];
var src_ = imageItem.getAttribute('data-src');
var realSrc = imageItem.getAttribute('src');
if (!src_ || realSrc) continue;
var originWidth = imageItem.getAttribute('data-w');
var ratio_ = 1 * imageItem.getAttribute('data-ratio');
var height = 100;
if (ratio_ && ratio_ > 0) {
var parent_width = getParentWidth(imageItem) || max_width;
var initWidth = imageItem.style.width || imageItem.getAttribute('width') || originWidth || parent_width;
initWidth = parseFloat(initWidth, 10) > max_width ? max_width : initWidth;
if (initWidth) {
imageItem.setAttribute('_width', !isNaN(initWidth * 1) ? initWidth + 'px' : initWidth);
}
if (typeof initWidth === 'string' && initWidth.indexOf('%') !== -1) {
initWidth = parseFloat(initWidth.replace('%', ''), 10) / 100 * parent_width;
}
if (initWidth === 'auto') {
initWidth = originWidth;
}
var widthNum;
var widthUnit;
if (initWidth === 'auto') {
widthNum = 'auto';
} else {
var res = /^(\d+(?:\.\d+)?)([a-zA-Z%]+)?$/.exec(initWidth);
widthNum = res && res.length >= 2 ? res[1] : 0;
widthUnit = res && res.length >= 3 && res[2] ? res[2] : 'px';
}
setImgSize(imageItem, widthNum, widthUnit, ratio_, true);
(function (item, widthNumber, unit, ratio) {
setTimeout(function () {
setImgSize(item, widthNumber, unit, ratio, false);
});
})(imageItem, widthNum, widthUnit, ratio_);
} else {
imageItem.style.cssText += ";visibility: hidden !important;";
}
}
})();
window.__videoDefaultRatio=16/9;
window.__getVideoWh = function(dom){
var max_width = getMaxWith(),
width = max_width,
ratio_ = dom.getAttribute('data-ratio')*1,
arr = [4/3, 16/9],
ret = arr[0],
abs = Math.abs(ret - ratio_);
if (!ratio_) {
if (dom.getAttribute("data-mpvid")) {
ratio_ = 16/9;
} else {
ratio_ = 4/3;
}
} else {
for (var j = 1, jl = arr.length; j < jl; j++) {
var _abs = Math.abs(arr[j] - ratio_);
if (_abs < abs) {
abs = _abs;
ret = arr[j];
}
}
ratio_ = ret;
}
var parent_width = getParentWidth(dom)||max_width,
width = width > parent_width ? parent_width : width,
outerW = getOuterW(dom)||0,
outerH = getOuterH(dom)||0,
videoW = width - outerW,
videoH = videoW/ratio_,
speedDotH = 12,
height = videoH + outerH + speedDotH;
return {w:Math.ceil(width),h:Math.ceil(height),vh:videoH,vw:videoW,ratio:ratio_,sdh: speedDotH};
};
(function(){
var iframe = document.getElementsByTagName('iframe');
for (var i=0,il=iframe.length;i= 200 && xhr.status < 400 ){
obj.success && obj.success(xhr.responseText);
} else {
obj.error && obj.error(xhr);
}
obj.complete && obj.complete();
obj.complete = null;
}
};
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");
xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest");
xhr.send(data);
}
var mid = "2653577882" || ""|| "";
var biz = "MzAxMjUyNDQ5OA=="||"";
var sessionid = ""||"svr_d58de55f3ed";
var idx = "2";
(function sendReq(parentNode, copyIframe, index, vid) {
ajax({
url: '/mp/videoplayer?vid=' + vid + '&mid=' + mid + '&idx=1&__biz=' + biz + '&sessionid=' + sessionid + '&f=json',
type: "GET",
dataType: 'json',
success: function (json) {
var ret = JSON.parse(json || '{}');
var ori = ret.ori_status;
var hit_biz_headimg = ret.hit_biz_headimg + '/64';
var hit_nickname = ret.hit_nickname;
var hit_username = ret.hit_username;
var selfUserName = "gh_d8489149b735";
if (ori === 2 && selfUserName !== hit_username) {
var videoBar = document.createElement('div');
var videoBarHtml = '';
videoBarHtml += ' 以下视频来源于 ';
videoBarHtml += ' ';
videoBarHtml += ' ';
videoBarHtml += ' ' + hit_nickname + '
';
videoBarHtml += ' ';
videoBarHtml += ' ';
videoBarHtml += ' ';
videoBarHtml += ' ';
videoBar.innerHTML = videoBarHtml;
var spanContainer = document.getElementById('js_mp_video_container_' + index);
if (spanContainer) {
spanContainer.parentNode.insertBefore(videoBar, spanContainer);
} else {
parentNode.insertBefore(videoBar, copyIframe);
}
var avatorEle = document.getElementById(hit_biz_headimg + index);
var avatorSrc = avatorEle.dataset.src;
console.log('avatorSrc' + avatorSrc);
if (ret.hit_biz_headimg) {
avatorEle.style.backgroundImage = 'url(' + avatorSrc + ')';
}
}
},
error: function (xhr) {
}
});
})(a.parentNode, a, i, vid);
a.style.cssText += ";width: " + obj.w + "px !important;";
a.setAttribute("width",obj.w);
if(window.__zoom!=1){
a.style.display = "block";
videoPlaceHolderSpan.style.display = "none";
a.setAttribute("_ratio",obj.ratio);
a.setAttribute("_vid",vid);
}else{
videoPlaceHolderSpan.style.cssText += "height: " + obj.h + "px !important;";
mydiv.style.cssText += "height: " + obj.h + "px !important;";
a.style.cssText += "height: " + obj.h + "px !important;";
a.setAttribute("height",obj.h);
}
a.setAttribute("data-vh",obj.vh);
a.setAttribute("data-vw",obj.vw);
if(a.getAttribute("data-mpvid")){
a.setAttribute("data-src",location.protocol+"//mp.weixin.qq.com/mp/readtemplate?t=pages/video_player_tmpl&auto=0&vid="+vid);
}else{
a.setAttribute("data-src",location.protocol+"//v.qq.com/iframe/player.html?vid="+ vid + "&width="+obj.vw+"&height="+obj.vh+"&auto=0");
}
}
})();
(function(){
if(window.__zoom!=1){
if (!window.__second_open__) {
document.getElementById('page-content').style.zoom = window.__zoom;
var a = document.getElementById('activity-name');
var b = document.getElementById('meta_content');
if(!!a){
a.style.zoom = 1/window.__zoom;
}
if(!!b){
b.style.zoom = 1/window.__zoom;
}
}
var images = document.getElementsByTagName('img');
for (var i = 0,il=images.length;i=0 && child.getAttribute("data-vid")==vid){
child.style.cssText += "height: " + h + "px !important;";
child.style.display = "";
}
}
}
}
})();
})();
"
},{
querySelector:"qqmusic",
genId:function(){
var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];
return(t.node.getAttribute("musicid")||"").replace(/^\s/,"").replace(/\s$/,"")+"_"+t.index;
},
calW:function(){
var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];
return 1*t.parentWidth;
},
calH:function(){
return 88;
},
replaceContentCssText:"",
appendContentCssText:"margin:16px 0;diplay:block;",
outerContainerLeft:"",
outerContainerRight:""
},{
querySelector:"mpvoice",
genId:function(){
var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=decodeURIComponent(t.node.getAttribute("voice_encode_fileid")||"").replace(/^\s/,"").replace(/\s$/,"");
return e+"_"+t.index;
},
calW:function(){
var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];
return 1*t.parentWidth;
},
calH:function(){
return 122;
},
replaceContentCssText:"",
appendContentCssText:"margin:16px 0;diplay:block;",
outerContainerLeft:"",
outerContainerRight:""
},{
querySelector:"mppoi",
genId:function(){
var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];
return t.node.getAttribute("data-id")||"";
},
calW:function(){
var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];
return 1*t.parentWidth;
},
calH:function(){
return 219;
},
replaceContentCssText:"",
appendContentCssText:"margin:16px 0;diplay:block;",
outerContainerLeft:"",
outerContainerRight:""
},{
querySelector:"mpsearch",
genId:function(){
return decodeURIComponent("mpsearch");
},
calW:function(){
var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];
return 1*t.parentWidth;
},
calH:function(){
return 100;
},
replaceContentCssText:"",
appendContentCssText:"margin:16px 0;diplay:block;",
outerContainerLeft:"",
outerContainerRight:""
},{
querySelector:"mpvideosnap",
genId:function(){
var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=t.node.getAttribute("data-type")||"video";
return decodeURIComponent("live"===e?t.node.getAttribute("data-noticeid")||"":t.node.getAttribute("data-id")||"");
},
calW:function(){
var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=t.node.getAttribute("data-type")||"video";
return"live"===e?t.parentWidth:.665*t.parentWidth;
},
calH:function(){
var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=t.node.getAttribute("data-desc")||"",n=t.node.getAttribute("data-type")||"video";
return"live"===n?113:e?this.calW(t)+44+35+27:this.calW(t)+44+35;
},
replaceContentCssText:"",
appendContentCssText:"margin:16px auto;diplay:block;",
outerContainerLeft:"",
outerContainerRight:""
},{
querySelector:"mp-wxaproduct",
genId:function(){
var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];
return decodeURIComponent(t.node.getAttribute("data-wxaproduct-productid")||"");
},
calW:function(){
var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];
return 1*t.parentWidth;
},
calH:function(){
var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=t.node.getAttribute("data-wxaproduct-cardtype")||"";
return"mini"===e?124:466;
},
replaceContentCssText:"",
appendContentCssText:"margin:16px 0;diplay:block;",
outerContainerLeft:"",
outerContainerRight:""
},{
querySelector:"mpprofile",
genId:function(t){
return t.node.getAttribute("data-id")||"";
},
calW:function(){
var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];
return 1*t.parentWidth;
},
calH:function(){
return 141;
},
replaceContentCssText:"",
appendContentCssText:"margin:28px 0 20px;diplay:block;",
outerContainerLeft:"",
outerContainerRight:""
}]
};
t(e);
}(function(){
var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];
if("function"==typeof document.querySelectorAll)for(var e={
maxWith:document.getElementById("img-content").getBoundingClientRect().width,
idAttr:"data-preloadingid"
},n=0,r=t.config.length;r>n;n++)for(var a=t.config[n],i=document.querySelectorAll(a.querySelector),o=0,u=i.length;u>o;o++){
var d=i[o],g=d.parentNode.getBoundingClientRect().width;
g=Math.min(g,e.maxWith);
var s=a.calW({
parentWidth:g,
node:d
}),c=a.calH({
parentWidth:g,
node:d
}),l=a.genId({
index:o,
node:d
}),p=t.defaultContentTpl.replace(/#height#/g,c).replace(/#width#/g,s),m=document.createElement("div");
if(m.innerHTML=p,a.replaceContentCssText){
var h=a.replaceContentCssText.replace(/#height#/g,c).replace(/#width#/g,s);
m.firstChild.style.cssText=h;
}else a.appendContentCssText&&(m.firstChild.style.cssText+=a.appendContentCssText);
var C=a.outerContainerLeft+m.innerHTML+a.outerContainerRight;
m.innerHTML=C,m.firstChild.setAttribute(e.idAttr,l),d.parentNode.insertBefore(m.firstChild,d.nextSibling);
}
});
')
.replace(/"/g, '"')
.replace(/&/g, '&')
.replace(/ /g, ' ');
}
var uin = '';
var key = '';
var pass_ticket = '';
var new_appmsg = 1;
var item_show_type = "0";
var real_item_show_type = "0";
var can_see_complaint = "0";
var not_in_mm_css = "//res.wx.qq.com/mmbizwap/zh_CN/htmledition/style/page/appmsg_new/not_in_mm55871f.css";
var article_improve_combo_css = "//res.wx.qq.com/mmbizwap/zh_CN/htmledition/style/page/appmsg_new/combo57fc23.css";
var tid = "";
var aid = "";
var clientversion = "";
var appuin = "MzAxMjUyNDQ5OA=="||"";
var voiceid = "";
var source = "0";
var ascene = "";
var subscene = "";
var sessionid = ""||"svr_d58de55f3ed";
var abtest_cookie = "";
var scene = "0";
var itemidx = "";
var appmsg_token = "";
var _copyright_stat = "2";
var _ori_article_type = "";
var is_follow = "";
var nickname = "Python中文社区";
var appmsg_type = "9";
var ct = "1629334920";
var user_name = "gh_d8489149b735";
var fakeid = "";
var version = "";
var is_limit_user = "0";
var round_head_img = "http://img2.jintiankansha.me/get?src=http://mmbiz.qpic.cn/mmbiz_png/5mt0ewv9OS2ccMhZUqic5qDic4VF6mia2hYdw73M5v45lXrRGDCQEIDY4h7kUuSKWFSTzLKsggua21Yq5seh0hF1g/0?wx_fmt=png";
var hd_head_img = "http://wx.qlogo.cn/mmhead/Q3auHgzwzM5pt0eJhiaBD4Vv6yS6rPQyTc6Jd0gibwGJibmAQw0nQjpcg/0"||"";
var ori_head_img_url = "http://wx.qlogo.cn/mmhead/Q3auHgzwzM5pt0eJhiaBD4Vv6yS6rPQyTc6Jd0gibwGJibmAQw0nQjpcg/132";
var msg_title = '用 Python 做 "盯盘机器人",股票价格实时监控并邮件通知你!'.html(false);
var msg_desc = htmlDecode("余生很短,请跟我一起用python!");
var msg_cdn_url = "http://img2.jintiankansha.me/get?src=http://mmbiz.qpic.cn/mmbiz_jpg/5mt0ewv9OS1ozZglM5xYuKByb4IicT7doKzFJia7X7iaibQN45QbRj1ic83F6ePricfU8Tia3RGwg1wUtcoZgW457USVQ/0?wx_fmt=jpeg";
var cdn_url_1_1 = "http://img2.jintiankansha.me/get?src=http://mmbiz.qpic.cn/mmbiz_jpg/5mt0ewv9OS1ozZglM5xYuKByb4IicT7doKzFJia7X7iaibQN45QbRj1ic83F6ePricfU8Tia3RGwg1wUtcoZgW457USVQ/0?wx_fmt=jpeg";
var cdn_url_235_1 = "http://img2.jintiankansha.me/get?src=http://mmbiz.qpic.cn/mmbiz_jpg/5mt0ewv9OS1ozZglM5xYuKByb4IicT7domX3Gs5jiaMZgo7PohF2r6aIRhgI8epR4RR66wOt5MyRHSSGxZLL6TjA/0?wx_fmt=jpeg";
var msg_link = "http://mp.weixin.qq.com/s?__biz=MzAxMjUyNDQ5OA==&mid=2653577882&idx=2&sn=adfedef19731bb25f43fcf34e154315a&chksm=806e4c27b719c5311022da1effc2d6093ebd913a9ca11bbf7c044b4829a606e061c949139e17#rd";
var user_uin = ""*1;
var msg_source_url = 'https://jinshuju.net/f/kb1Bcq';
var img_format = 'jpeg';
var srcid = '';
var req_id = '2009DB6AYyotDZuMaqwQRZen';
var networkType;
var appmsgid = "" || '' || '2653577882';
var comment_id = "2007605806174617605" || "2007605806174617605" * 1;
var comment_enabled = "" * 1;
var is_https_res = ("" * 1) && (location.protocol == "https:");
var msg_daily_idx = "1" || "";
var profileReportInfo = "" || "";
var devicetype = "";
var source_encode_biz = "MzkwNDE5NTc0Ng==";
var source_username = "gh_979eba00a50e";
var reprint_ticket = "46lwD502dKo2YbqNtYnB7kcf6CtcuWfT91yqnL39z%2FyPnc52K4WopjH%2BTmQyZnJp";
var source_mid = "2247536966";
var source_idx = "1";
var source_biz = "3904195746";
var author_id = "";
var optimizing_flag = "0" * 1;
var show_comment = "";
var __appmsgCgiData = {
wxa_product : ""*1,
wxa_cps : ""*1,
show_msg_voice: "0"*1,
can_use_page : ""*1,
is_wxg_stuff_uin : "0"*1,
card_pos : "0",
copyright_stat : "2",
source_biz : "3904195746",
hd_head_img : "http://wx.qlogo.cn/mmhead/Q3auHgzwzM5pt0eJhiaBD4Vv6yS6rPQyTc6Jd0gibwGJibmAQw0nQjpcg/0"||(window.location.protocol+"//"+window.location.host + "//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/pic/appmsg/pic_rumor_link.2x55871f.jpg"),
has_red_packet_cover: "0" * 1 || 0,
minishopCardData: ""
};
var _empty_v = "//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/pic/pages/voice/empty55871f.mp3";
var appmsg_album_info = (function () {
var curAlbumId = '';
var publicTagInfo = [
];
for (var i = 0; i < publicTagInfo.length; i++) {
if (curAlbumId) {
if (curAlbumId === publicTagInfo[i].id) {
return publicTagInfo[i];
}
} else {
if (publicTagInfo[i].continousReadOn) {
return publicTagInfo[i];
}
}
}
return {};
})();
var copyright_stat = "2" * 1;
var hideSource = "0" * 1;
var pay_fee = "" * 1;
var pay_timestamp = "";
var need_pay = "" * 1;
var need_report_cost = "0" * 1;
var use_tx_video_player = "0" * 1;
var appmsg_fe_filter = "contenteditable";
var friend_read_source = "" || "";
var friend_read_version = "" || "";
var friend_read_class_id = "" || "";
var is_only_read = "1" * 1;
var read_num = "" * 1;
var like_num = "" * 1;
var liked = "" == 'true' ? true : false;
var is_temp_url = "" ? 1 : 0;
var send_time = "";
var icon_emotion_switch = "//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/icon/appmsg/emotion/icon_emotion_switch55871f.svg";
var icon_emotion_switch_active = "//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/icon/appmsg/emotion/icon_emotion_switch_active55871f.svg";
var icon_emotion_switch_primary = "//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/icon/appmsg/emotion/icon_emotion_switch_primary55871f.svg";
var icon_emotion_switch_active_primary = "//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/icon/appmsg/emotion/icon_emotion_switch_active_primary55871f.svg";
var icon_loading_white = "//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/icon/common/icon_loading_white55871f.gif";
var icon_audio_unread = "//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/icon/appmsg/audio/icon_audio_unread55871f.png";
var icon_qqmusic_default = "//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/icon/appmsg/qqmusic/icon_qqmusic_default.2x55871f.png";
var icon_qqmusic_source = "//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/icon/appmsg/qqmusic/icon_qqmusic_source55871f.svg";
var icon_kugou_source = "//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/icon/appmsg/kugou/icon_kugou_source55871f.png";
var topic_default_img = '//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/icon/appmsg/topic/pic_book_thumb.2x55871f.png';
var comment_edit_icon = '//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/icon/appmsg_new/icon_edit55871f.png';
var comment_loading_img = '//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/icon/common/icon_loading_white55871f.gif';
var comment_c2c_not_support_img = '//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/pic/appmsg/pic_discuss_more55871f.png';
var voice_in_appmsg = {
"1":"1"
};
var voiceList={};
voiceList={"voice_in_appmsg":[]}
var reprint_style = '0'*1;
var wxa_img_alert = "" != 'false';
var img_popup = 1;
var more_read_type = '0'*1;
var weapp_sn_arr_json = "" || "";
var video_snap_json = "" || "";
var mp_profile = [
]
var ban_scene = "0" * 1;
var svr_time = "1629424066" * 1;
var is_transfer_msg = ""*1||0;
var malicious_title_reason_id = "0" * 1;
var malicious_content_type = "0" * 1;
var modify_time = "";
var isprofileblock = "0";
var hotspotInfoList = [
];
var jumpInfo = [
];
var hasRelatedArticleInfo = '0' * 1 || 0;
var relatedArticleFlag = '' * 1 || 0;
window.wxtoken = "777";
window.is_login = '' * 1;
window.__moon_initcallback = function(){
if(!!window.__initCatch){
window.__initCatch({
idkey : 27611+2,
startKey : 0,
limit : 128,
badjsId: 43,
reportOpt : {
uin : uin,
biz : biz,
mid : mid,
idx : idx,
sn : sn
},
extInfo : {
network_rate : 0.01,
badjs_rate: 0.1
}
});
}
}
var title ="Python中文社区";
var is_new_msg=true;
var is_wash = '' * 1;
var topbarEnable = false;
var enterid = "" * 1 || "" * 1 || parseInt(Date.now() / 1000);
var miniprogram_appid = "";
var defaultAvatarUrl = '//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/pic/common/avatar_default55871f.svg';
document.addEventListener('DOMContentLoaded', function () {
window.domCompleteTime = Date.now();
});
var hasRecommendMsg = 0;
;
var isPaySubscribe = '0' * 1;
var isPaid = '0' * 1;
var payShowIAPPrice = 1;
var payProductId = '' || '';
var previewPercent = '0' || '';
var payGiftsCount = '0' * 1 || 0;
var payFreeGift = '' * 1 || 0;
var is_finished_preview = 0;
var jump2pay = '' * 1;
var isFans;
var is_need_reward = (isPaySubscribe && !isPaid) ? 0 : "0" * 1;
var is_teenager = '' * 1 || 0;
var anchor_tree_msg = '';
var colorScheme = '';
var iapPriceInfo = {
};
var productPayPackage = {
iap_price_info: iapPriceInfo
};
var isCartoonCopyright = '0' * 1;
var show_msg_voice = '' * 1;
var qnaCardData = '';
var exptype = '' || '';
var expsessionid = '' || '';
var goContentId = '';
var goReplyId = '';
var show_related_article = '' * 1;
var wwdistype = '';
window.cgiData = {
appImg: '//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/pic/pages/video/pic_v.2x55871f.png',
}
=4.5?"AA":""},isDark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return c.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),r=t.color[0];return r=(r=(r+e)%360)<0?360+r:r,t.color[0]=r,t},mix:function(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);var r=e.rgb(),n=this.rgb(),a=void 0===t?.5:t,o=2*a-1,i=r.alpha()-n.alpha(),s=((o*i==-1?o:(o+i)/(1+o*i))+1)/2,l=1-s;return c.rgb(s*r.red()+l*n.red(),s*r.green()+l*n.green(),s*r.blue()+l*n.blue(),r.alpha()*a+n.alpha()*(1-a))}},Object.keys(a).forEach((function(e){if(-1===i.indexOf(e)){var t=a[e].channels;c.prototype[e]=function(){if(this.model===e)return new c(this);if(arguments.length)return new c(arguments,e);var r="number"==typeof arguments[t]?t:this.valpha;return new c(f(a[this.model][e].raw(this.color)).concat(r),e)},c[e]=function(r){return"number"==typeof r&&(r=g(o.call(arguments),t)),new c(r,e)}}})),e.exports=c},function(e,t,r){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(e,t,r){var n=r(7),a={};for(var o in n)n.hasOwnProperty(o)&&(a[n[o]]=o);var i=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in i)if(i.hasOwnProperty(s)){if(!("channels"in i[s]))throw new Error("missing channels property: "+s);if(!("labels"in i[s]))throw new Error("missing channel labels property: "+s);if(i[s].labels.length!==i[s].channels)throw new Error("channel and label counts mismatch: "+s);var l=i[s].channels,c=i[s].labels;delete i[s].channels,delete i[s].labels,Object.defineProperty(i[s],"channels",{value:l}),Object.defineProperty(i[s],"labels",{value:c})}i.rgb.hsl=function(e){var t,r,n=e[0]/255,a=e[1]/255,o=e[2]/255,i=Math.min(n,a,o),s=Math.max(n,a,o),l=s-i;return s===i?t=0:n===s?t=(a-o)/l:a===s?t=2+(o-n)/l:o===s&&(t=4+(n-a)/l),(t=Math.min(60*t,360))<0&&(t+=360),r=(i+s)/2,[t,100*(s===i?0:r<=.5?l/(s+i):l/(2-s-i)),100*r]},i.rgb.hsv=function(e){var t,r,n,a,o,i=e[0]/255,s=e[1]/255,l=e[2]/255,c=Math.max(i,s,l),u=c-Math.min(i,s,l),h=function(e){return(c-e)/6/u+.5};return 0===u?a=o=0:(o=u/c,t=h(i),r=h(s),n=h(l),i===c?a=n-r:s===c?a=1/3+t-n:l===c&&(a=2/3+r-t),a<0?a+=1:a>1&&(a-=1)),[360*a,100*o,100*c]},i.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2];return[i.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(r,n))),100*(n=1-1/255*Math.max(t,Math.max(r,n)))]},i.rgb.cmyk=function(e){var t,r=e[0]/255,n=e[1]/255,a=e[2]/255;return[100*((1-r-(t=Math.min(1-r,1-n,1-a)))/(1-t)||0),100*((1-n-t)/(1-t)||0),100*((1-a-t)/(1-t)||0),100*t]},i.rgb.keyword=function(e){var t=a[e];if(t)return t;var r,o,i,s=1/0;for(var l in n)if(n.hasOwnProperty(l)){var c=n[l],u=(o=e,i=c,Math.pow(o[0]-i[0],2)+Math.pow(o[1]-i[1],2)+Math.pow(o[2]-i[2],2));u.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},i.rgb.lab=function(e){var t=i.rgb.xyz(e),r=t[0],n=t[1],a=t[2];return n/=100,a/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(r-n),200*(n-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]},i.hsl.rgb=function(e){var t,r,n,a,o,i=e[0]/360,s=e[1]/100,l=e[2]/100;if(0===s)return[o=255*l,o,o];t=2*l-(r=l<.5?l*(1+s):l+s-l*s),a=[0,0,0];for(var c=0;c<3;c++)(n=i+1/3*-(c-1))<0&&n++,n>1&&n--,o=6*n<1?t+6*(r-t)*n:2*n<1?r:3*n<2?t+(r-t)*(2/3-n)*6:t,a[c]=255*o;return a},i.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,a=r,o=Math.max(n,.01);return r*=(n*=2)<=1?n:2-n,a*=o<=1?o:2-o,[t,100*(0===n?2*a/(o+a):2*r/(n+r)),100*((n+r)/2)]},i.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,a=Math.floor(t)%6,o=t-Math.floor(t),i=255*n*(1-r),s=255*n*(1-r*o),l=255*n*(1-r*(1-o));switch(n*=255,a){case 0:return[n,l,i];case 1:return[s,n,i];case 2:return[i,n,l];case 3:return[i,s,n];case 4:return[l,i,n];case 5:return[n,i,s]}},i.hsv.hsl=function(e){var t,r,n,a=e[0],o=e[1]/100,i=e[2]/100,s=Math.max(i,.01);return n=(2-o)*i,r=o*s,[a,100*(r=(r/=(t=(2-o)*s)<=1?t:2-t)||0),100*(n/=2)]},i.hwb.rgb=function(e){var t,r,n,a,o,i,s,l=e[0]/360,c=e[1]/100,u=e[2]/100,h=c+u;switch(h>1&&(c/=h,u/=h),n=6*l-(t=Math.floor(6*l)),0!=(1&t)&&(n=1-n),a=c+n*((r=1-u)-c),t){default:case 6:case 0:o=r,i=a,s=c;break;case 1:o=a,i=r,s=c;break;case 2:o=c,i=r,s=a;break;case 3:o=c,i=a,s=r;break;case 4:o=a,i=c,s=r;break;case 5:o=r,i=c,s=a}return[255*o,255*i,255*s]},i.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,a=e[3]/100;return[255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,r*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a))]},i.xyz.rgb=function(e){var t,r,n,a=e[0]/100,o=e[1]/100,i=e[2]/100;return r=-.9689*a+1.8758*o+.0415*i,n=.0557*a+-.204*o+1.057*i,t=(t=3.2406*a+-1.5372*o+-.4986*i)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,[255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1)),255*(n=Math.min(Math.max(0,n),1))]},i.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2];return r/=100,n/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(t-r),200*(r-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},i.lab.xyz=function(e){var t,r,n,a=e[0];t=e[1]/500+(r=(a+16)/116),n=r-e[2]/200;var o=Math.pow(r,3),i=Math.pow(t,3),s=Math.pow(n,3);return r=o>.008856?o:(r-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,n=s
.008856?s:(n-16/116)/7.787,[t*=95.047,r*=100,n*=108.883]},i.lab.lch=function(e){var t,r=e[0],n=e[1],a=e[2];return(t=360*Math.atan2(a,n)/2/Math.PI)<0&&(t+=360),[r,Math.sqrt(n*n+a*a),t]},i.lch.lab=function(e){var t,r=e[0],n=e[1];return t=e[2]/360*2*Math.PI,[r,n*Math.cos(t),n*Math.sin(t)]},i.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],a=1 in arguments?arguments[1]:i.rgb.hsv(e)[2];if(0===(a=Math.round(a/50)))return 30;var o=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return 2===a&&(o+=60),o},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},i.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},i.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var r;return e-=16,[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]},i.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},i.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];3===t[0].length&&(r=r.split("").map((function(e){return e+e})).join(""));var n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},i.rgb.hcg=function(e){var t,r=e[0]/255,n=e[1]/255,a=e[2]/255,o=Math.max(Math.max(r,n),a),i=Math.min(Math.min(r,n),a),s=o-i;return t=s<=0?0:o===r?(n-a)/s%6:o===n?2+(a-r)/s:4+(r-n)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?i/(1-s):0)]},i.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,a=0;return(n=r<.5?2*t*r:2*t*(1-r))<1&&(a=(r-.5*n)/(1-n)),[e[0],100*n,100*a]},i.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,a=0;return n<1&&(a=(r-n)/(1-n)),[e[0],100*n,100*a]},i.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];var a,o=[0,0,0],i=t%1*6,s=i%1,l=1-s;switch(Math.floor(i)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return a=(1-r)*n,[255*(r*o[0]+a),255*(r*o[1]+a),255*(r*o[2]+a)]},i.hcg.hsv=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t),n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},i.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100*(1-t)+.5*t,n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},i.hcg.hwb=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},i.hwb.hcg=function(e){var t=e[1]/100,r=1-e[2]/100,n=r-t,a=0;return n<1&&(a=(r-n)/(1-n)),[e[0],100*n,100*a]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=i.gray.hsv=function(e){return[0,0,e[0]]},i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},function(e,t,r){var n=r(1),a=r(4),o={};for(var i in n)n.hasOwnProperty(i)&&(o[n[i]]=i);var s=e.exports={to:{},get:{}};function l(e,t,r){return Math.min(Math.max(t,e),r)}function c(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}s.get=function(e){var t,r;switch(e.substring(0,3).toLowerCase()){case"hsl":t=s.get.hsl(e),r="hsl";break;case"hwb":t=s.get.hwb(e),r="hwb";break;default:t=s.get.rgb(e),r="rgb"}return t?{model:r,value:t}:null},s.get.rgb=function(e){if(!e)return null;var t,r,a,o=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(a=t[2],t=t[1],r=0;r<3;r++){var i=2*r;o[r]=parseInt(t.slice(i,i+2),16)}a&&(o[3]=Math.round(parseInt(a,16)/255*100)/100)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(a=(t=t[1])[3],r=0;r<3;r++)o[r]=parseInt(t[r]+t[r],16);a&&(o[3]=Math.round(parseInt(a+a,16)/255*100)/100)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(r=0;r<3;r++)o[r]=parseInt(t[r+1],0);t[4]&&(o[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)))return(t=e.match(/(\D+)/))?"transparent"===t[1]?[0,0,0,0]:(o=n[t[1]])?(o[3]=1,o):null:null;for(r=0;r<3;r++)o[r]=Math.round(2.55*parseFloat(t[r+1]));t[4]&&(o[3]=parseFloat(t[4]))}for(r=0;r<3;r++)o[r]=l(o[r],0,255);return o[3]=l(o[3],0,1),o},s.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d*\.)?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(t){var r=parseFloat(t[4]);return[(parseFloat(t[1])+360)%360,l(parseFloat(t[2]),0,100),l(parseFloat(t[3]),0,100),l(isNaN(r)?1:r,0,1)]}return null},s.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(t){var r=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,l(parseFloat(t[2]),0,100),l(parseFloat(t[3]),0,100),l(isNaN(r)?1:r,0,1)]}return null},s.to.hex=function(){var e=a(arguments);return"#"+c(e[0])+c(e[1])+c(e[2])+(e[3]<1?c(Math.round(255*e[3])):"")},s.to.rgb=function(){var e=a(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},s.to.rgb.percent=function(){var e=a(arguments),t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),n=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+r+"%, "+n+"%)":"rgba("+t+"%, "+r+"%, "+n+"%, "+e[3]+")"},s.to.hsl=function(){var e=a(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},s.to.hwb=function(){var e=a(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},s.to.keyword=function(e){return o[e.slice(0,3)]}},function(e,t,r){"use strict";var n=r(5),a=Array.prototype.concat,o=Array.prototype.slice,i=e.exports=function(e){for(var t=[],r=0,i=e.length;r=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},function(e,t,r){var n=r(2),a=r(8),o={};Object.keys(n).forEach((function(e){o[e]={},Object.defineProperty(o[e],"channels",{value:n[e].channels}),Object.defineProperty(o[e],"labels",{value:n[e].labels});var t=a(e);Object.keys(t).forEach((function(r){var n=t[r];o[e][r]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var r=e(t);if("object"==typeof r)for(var n=r.length,a=0;a
1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(n)}))})),e.exports=o},function(e,t,r){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(e,t,r){var n=r(2);function a(e){var t=function(){for(var e={},t=Object.keys(n),r=t.length,a=0;a=a.bottom||r.bottom<=a.top||r.left>=a.right||r.right<=a.left||n.unshift(t)}}));n.length;){var a=this._stack.splice(n.shift(),1)[0];"function"==typeof t&&t(a)}}},{key:"update",value:function(e){this._stack.forEach((function(t){t.updated||Array.prototype.some.call(e,(function(e){return!(1!==e.nodeType||!e.classList.contains(t.className)||(t.el=e,t.updated=!0,0))}))}))}}])&&k(t.prototype,r),n&&k(t,n),e}();function x(e,t){for(var r=0;r'.concat("dark"===this._config.mode?r:"@media ".concat(n," {").concat(r,"}"),"")),this[t]="")}}])&&x(t.prototype,r),o&&x(t,o),e}();function j(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:[];this._nodes=e}},{key:"len",value:function(){return this._nodes.length}},{key:"get",value:function(){var e=[];return this._nodes.length?(e=this._nodes,this._nodes=[]):this._delayNodes.length?(e=this._delayNodes,this._delayNodes=[]):this._config.container&&(e=this._config.container.querySelectorAll("*")),e}},{key:"delay",value:function(){var e=this;Array.prototype.forEach.call(this._nodes,(function(t){return e._delayNodes.push(t)})),this._nodes=[]}},{key:"hasDelay",value:function(){return this._delayNodes.length>0}},{key:"addFirstPageNode",value:function(e){this._firstPageNodes.push(e)}},{key:"showFirstPageNodes",value:function(){this._firstPageNodes.forEach((function(e){return e.style.visibility="visible"})),this._firstPageNodes=[]}}])&&j(t.prototype,r),n&&j(t,n),e}(),T=r(0),N=r.n(T),L=r(1),F=r.n(L);function D(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,a=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw o}}return r}(e,t)||U(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(e){return function(e){if(Array.isArray(e))return I(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||U(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(e,t){if(e){if("string"==typeof e)return I(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(e,t):void 0}}function I(e,t){(null==t||t
e.length)&&(t=e.length);for(var r=0,n=new Array(t);r3?"rgba":"rgb","(").concat(r.toString(),")")}))},$=function(e){if(!e||e.length<1)return"";if(1===e.length)return e[0];for(var t=e.shift(),r=e.shift();r;){var n=N()(r);t=N()(t).mix(n,n.alpha()),r=e.shift()}return t},Q=function(e){var t=R(e);return K.test(t)?t:""},G=function(e){return(299*e[0]+587*e[1]+114*e[2])/1e3},W=function(){function e(t){var r,n,a,o=t.config,i=t.tnQueue,s=t.bgStack,l=t.cssUtils;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a=0,(n="_idx")in(r=this)?Object.defineProperty(r,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[n]=a,this._config=o,this._tnQueue=i,this._bgStack=s,this._cssUtils=l,this._defaultDarkTextColorRgb=N()(this._config.defaultDarkTextColor).rgb().array(),this._defaultDarkBgColorRgb=N()(this._config.defaultDarkBgColor).rgb().array(),this._defaultDarkBgColorHSL=N()(this._config.defaultDarkBgColor).hsl().array(),this._defaultDarkTextColorBrightness=G(this._defaultDarkTextColorRgb),this._defaultDarkBgColorBrightness=G(this._defaultDarkBgColorRgb),this._defaultDarkBgColorHslBrightness=this._defaultDarkBgColorHSL[2],this._maxLimitOffsetBrightness=this._defaultDarkTextColorBrightness-this._defaultDarkBgColorBrightness}var t,r,n;return t=e,(r=[{key:"_adjustBrightnessByLimit",value:function(e,t){var r=e/G(t),n=Math.min(255,t[0]*r),a=Math.min(255,t[1]*r),o=Math.min(255,t[2]*r);return 0===a||255===n||255===o?a=(1e3*e-299*n-114*o)/587:0===n?n=(1e3*e-587*a-114*o)/299:0!==o&&255!==a||(o=(1e3*e-299*n-587*a)/114),N.a.rgb(n,a,o)}},{key:"_adjustTextBrightness",value:function(e,t){var r=t.rgb().array(),n=t.alpha(),a=G(r)*n+this._defaultDarkBgColorBrightness*(1-n),o=e.rgb().array(),i=e.hsl().array(),s=e.alpha(),l=G(o),c=Math.abs(a-l);if(l>=250)return e;if(c>this._maxLimitOffsetBrightness&&a<=this._defaultDarkBgColorBrightness+2)return this._adjustBrightnessByLimit(this._maxLimitOffsetBrightness+a,o).alpha(s);if(c>=65)return e;if(a>=100){if(i[2]>50){i[2]=90-i[2];var u=N.a.hsl.apply(N.a,q(i)).alpha(s);return this._adjustTextBrightness(u,t)}return this._adjustBrightnessByLimit(Math.min(this._maxLimitOffsetBrightness,a-65),o).alpha(s)}if(i[2]<=40){i[2]=90-i[2];var h=N.a.hsl.apply(N.a,q(i)).alpha(s);return this._adjustTextBrightness(h,t)}return this._adjustBrightnessByLimit(Math.min(this._maxLimitOffsetBrightness,a+65),o).alpha(s)}},{key:"_adjustBackgroundBrightness",value:function(e){var t=e.rgb().array(),r=e.hsl().array(),n=e.alpha(),a=G(t),o=e;return 0===r[1]&&r[2]>40||a>250?o=N.a.hsl(0,0,Math.min(100,100+this._defaultDarkBgColorHslBrightness-r[2])):a>190?o=this._adjustBrightnessByLimit(190,t).alpha(n):r[2]<22&&(r[2]=22,o=N.a.hsl.apply(N.a,q(r))),o.alpha(n).rgb()}},{key:"_adjustBrightness",value:function(e,t,r){var n,a=e.alpha(),o="";if(r.isBgColor){if(t.getAttribute(u)&&a>=.05&&t.removeAttribute(u),n=this._adjustBackgroundBrightness(e),!r.hasInlineColor){var l=t.getAttribute(i)||this._config.defaultLightTextColor,c=n||e,h=this._adjustBrightness(N()(l),t,{isTextColor:!0,parentElementBgColorStr:c});h.newColor?o+=this._cssUtils.genCssKV("color",h.newColor):o+=this._cssUtils.genCssKV("color",l)}}else if(r.isTextColor||r.isBorderColor){var f=r.parentElementBgColorStr||r.isTextColor&&t.getAttribute(s)||this._config.defaultDarkBgColor,g=N()(f);t.getAttribute(u)||(n=this._adjustTextBrightness(e,g))}else r.isTextShadow&&(n=this._adjustBackgroundBrightness(e));return{newColor:n&&e.toString()!==n.toString()&&n.alpha(a).rgb(),extStyle:o}}},{key:"convert",value:function(e){var t=this,r=e.nodeName;if(this._config.whitelist.tagName.indexOf(r)>-1)return"";var n,a,o=e.style,h="",g="",p=!1,y=!1,m=!1,v=(o.cssText&&o.cssText.split(";")||[]).map((function(e){var t=e.indexOf(":");return[e.slice(0,t).toLowerCase(),e.slice(t+1)].map((function(e){return(e||"").replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}))})).filter((function(e){var t=D(e,2),r=t[0],o=t[1];return"color"===r?p=!0:/background/i.test(r)&&(y=!0,"background-position"===r?n=o:"background-size"===r&&(a=o)),(/background/i.test(r)||/^(-webkit-)?border-image/.test(r))&&/url\([^)]*\)/i.test(o)&&(m=!0),["-webkit-border-image","border-image","color","background-color","background-image","background","border","border-top","border-right","border-bottom","border-left","border-color","border-top-color","border-right-color","border-bottom-color","border-left-color","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","text-shadow"].indexOf(r)>-1})).sort((function(e,t){var r=D(e,1)[0],n=D(t,1)[0];return"color"===r||"background-image"===r&&"background-color"===n||0===n.indexOf("-webkit-text")?1:-1}));if(f.indexOf(r)>-1&&!y){var k=function(e){var t=null;return Array.prototype.some.call(e.classList,(function(e){return!!P[e]&&(t=P[e],!0)})),t}(e);k||(k=e.getAttribute("bgcolor")),k&&(v.unshift(["background-color",N()(k).toString()]),y=!0)}if("FONT"===r&&!p){var w=e.getAttribute("color");w&&(v.push(["color",N()(w).toString()]),p=!0)}var _,x,M="",C="",j=0;if(v.some((function(e,t){var r=D(e,2),n=r[0],a=r[1];if(0!==n.indexOf("-webkit-text"))return j=t,!0;switch(n){case"-webkit-text-fill-color":M=Q(a);break;case"-webkit-text-stroke":var o=a.split(" ");2===o.length&&(C=Q(o[1]));break;case"-webkit-text-stroke-color":C=Q(a)}return!1})),M&&(p?v[v.length-1]=["-webkit-text-fill-color",M]:(v.push(["-webkit-text-fill-color",M]),p=!0)),j&&(v.splice(0,j),C&&v.unshift(["-webkit-text-stroke-color",C])),v.forEach((function(r){var f,g=D(r,2),d=g[0],v=g[1],k=v,w=!1,_=/^background/.test(d),x="text-shadow"===d,M=["-webkit-text-stroke-color","color","-webkit-text-fill-color"].indexOf(d),C=/^border/.test(d),j=/gradient/.test(v),S=[],B="";if(v=R(v,j),K.test(v)){if(j){for(var A=J.exec(v);A;)S.push(A[0]),A=J.exec(v);f=$(S)}var P=0;v=v.replace(J,(function(r){j&&(r=f,w=!0);var n=t._adjustBrightness(N()(r),e,{isBgColor:_,isTextShadow:x,isTextColor:M>-1,isBorderColor:C,hasInlineColor:p}),a=!m&&n.newColor;if(B+=n.extStyle,_||M>0){var o=_?s:i,h=_?c:l,g=a?a.toString():r;0===P&&O(e).forEach((function(e){var n=e.getAttribute(h)||t._config.defaultLightBgColor;e.setAttribute(o,g),e.setAttribute(h,n.split("|").concat(r).join("|")),_&&N()(g).alpha()>=.05&&e.getAttribute(u)&&e.removeAttribute(u)}))}return a&&(w=!0),P+=1,a||r})).replace(/\s?!\s?important/gi,"")}if(B&&(h+=B),!(e instanceof SVGElement)){var E=/^background/.test(d),T=/^(-webkit-)?border-image/.test(d);if((E||T)&&/url\([^)]*\)/i.test(v)){w=!0;var L=$((e.getAttribute(c)||t._config.defaultLightBgColor).split("|"));if(v=v.replace(/^(.*?)url\(([^)]*)\)(.*)$/i,(function(r){var o=r,i="",s="",l="";return"1"!==e.getAttribute(u)&&O(e).forEach((function(e){return e.setAttribute(u,"1")})),E?(o="linear-gradient(".concat("rgba(0,0,0,0.1)",", ").concat("rgba(0,0,0,0.1)","),").concat(r),l=t._cssUtils.genCssKV(d,"".concat(o,",linear-gradient(").concat(L,", ").concat(L,")")),n&&(i="top left,".concat(n),h+=t._cssUtils.genCssKV("background-position","".concat(i)),l+=t._cssUtils.genCssKV("background-position","".concat(i,",top left"))),a&&(s="100%,".concat(a),h+=t._cssUtils.genCssKV("background-size","".concat(s)),l+=t._cssUtils.genCssKV("background-size","".concat(s,",100%"))),t._bgStack.push(e,l)):!y&&t._bgStack.push(e,t._cssUtils.genCssKV("background-image","linear-gradient(".concat("rgba(0,0,0,0.1)",", ").concat("rgba(0,0,0,0.1)","),linear-gradient(").concat(L,", ").concat(L,")"))),o})),!p){var F=$((e.getAttribute(l)||t._config.defaultLightTextColor).split("|"));h+=t._cssUtils.genCssKV("color",F),O(e).forEach((function(e){return e.setAttribute(i,F)}))}}}w&&(b.test(k)&&(o[d]=H(k)),j?t._bgStack.push(e,t._cssUtils.genCssKV(d,v)):h+=t._cssUtils.genCssKV(d,v))})),h){d&&e.setAttribute("data-style",o.cssText);var S="".concat("js_darkmode__").concat(this._idx++);e.classList.add(S),g+=h?this._cssUtils.genCss(S,h):""}return _=e,x="",Array.prototype.forEach.call(_.childNodes,(function(e){3===e.nodeType&&(x+=e.nodeValue.replace(/\s/g,""))})),x.length>0&&(this._config.delayBgJudge?this._tnQueue.push(e):this._bgStack.contains(e,(function(e){g+=t._cssUtils.genCss(e.className,e.cssKV)}))),g}}])&&z(t.prototype,r),n&&z(t,n),e}(),X=new RegExp("".concat("js_darkmode__","[^ ]+"),"g"),Y={hasInit:!1,begin:null,error:null,mode:"",whitelist:{tagName:["MPCPS","IFRAME"]},needJudgeFirstPage:!0,delayBgJudge:!1,container:null,cssSelectorsPrefix:"",defaultLightTextColor:"#191919",defaultLightBgColor:"#fff",defaultDarkTextColor:"#a3a3a3",defaultDarkBgColor:"#191919"},Z=function(e,t,r){var n=t[r];switch(e){case"boolean":"boolean"==typeof n&&(Y[r]=n);break;case"string":"string"==typeof n&&""!==n&&(Y[r]=n);break;case"function":"function"==typeof n&&(Y[r]=n);break;case"dom":n instanceof HTMLElement&&(Y[r]=n)}},ee=new v(Y,"".concat("js_darkmode__","text__")),te=new _(Y,"".concat("js_darkmode__","bg__")),re=new C(Y),ne=new E(Y),ae=new W({config:Y,tnQueue:ee,bgStack:te,cssUtils:re}),oe=null,ie=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{type:"dom"};if(t.force&&(re.isFinish=!1),!re.isFinish)try{(Y.mode?"dark"===Y.mode:e.matches)?("dom"===t.type?("function"==typeof Y.begin&&Y.begin(ne.hasDelay()),Array.prototype.forEach.call(ne.get(),(function(e){if(e.className&&"string"==typeof e.className&&(e.className=e.className.replace(X,"")),Y.needJudgeFirstPage){var t=e.getBoundingClientRect(),r=t.top,n=t.bottom;r<=0&&n<=0?re.addCss(ae.convert(e),!1):r>0&&r
0&&n0&&void 0!==arguments[0]?arguments[0]:{};if(!Y.hasInit){Y.hasInit=!0;var t=Y.whitelist.tagName;e.whitelist&&e.whitelist.tagName instanceof Array&&e.whitelist.tagName.forEach((function(e){e=e.toUpperCase(),-1===t.indexOf(e)&&t.push(e)})),["dark","light"].indexOf(e.mode)>-1&&(Z("string",e,"mode"),document.getElementsByTagName("html")[0].classList.add(a)),Z("function",e,"begin"),Z("function",e,"error"),Z("boolean",e,"needJudgeFirstPage"),Z("boolean",e,"delayBgJudge"),Z("dom",e,"container"),Z("string",e,"cssSelectorsPrefix"),Z("string",e,"defaultLightTextColor"),Z("string",e,"defaultLightBgColor"),Z("string",e,"defaultDarkTextColor"),Z("string",e,"defaultDarkBgColor"),Y.mode||null!==oe||(oe=window.matchMedia(n)).addListener(ie)}}function ce(e){ne.set(e),null!==Y.container&&(te.update(e),ee.update(e)),ie(oe,{force:!0,type:"bg"})}}])}));
window.__moon_host = 'res.wx.qq.com';window.__moon_mainjs = 'appmsg/index.js';window.moon_map = {"pages_new/modules/toast/toast.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/modules/toast/toast.html55871f.js","pages_new/common_share/video/like_and_share/constants.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/common_share/video/like_and_share/constants55871f.js","pages_new/modules/toast/toast.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/modules/toast/toast55871f.js","new_video/plugin/util.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/new_video/plugin/util55871f.js","pages_new/common_share/video/player/player.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/common_share/video/player/player.html57efc1.js","page/pages/video_new.css":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/style/page/pages/video_new.css57efc1.js","pages_new/common_share/video/player/plugins/base_legacy.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/common_share/video/player/plugins/base_legacy55871f.js","pages_new/common_share/video/like_and_share/mutations.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/common_share/video/like_and_share/mutations55871f.js","pages_new/common_share/video/like_and_share/actions.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/common_share/video/like_and_share/actions57a33f.js","appmsg/emotion/emotion_pc.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/emotion/emotion_pc.html55871f.js","page/pages/bottom_input_bar.css":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/style/page/pages/bottom_input_bar.css57efc1.js","appmsg/emotion/caret.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/emotion/caret55871f.js","pages_new/common_share/video/report.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/common_share/video/report57efc1.js","pages_new/common_share/video/utils/immersive_data.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/common_share/video/utils/immersive_data57efc1.js","common/safeAreaInsets.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/common/safeAreaInsets57efc1.js","pages_new/common_share/video/player/player.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/common_share/video/player/player57f7c3.js","pages_new/common_share/video/player/plugins/monitor/monitor.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/common_share/video/player/plugins/monitor/monitor5799e3.js","pages_new/common_share/video/player/plugins/base.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/common_share/video/player/plugins/base55871f.js","pages_new/common_share/video/player/controller.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/common_share/video/player/controller.html57efc1.js","biz_wap/zepto/touch.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_wap/zepto/touch55871f.js","biz_wap/zepto/event.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_wap/zepto/event55871f.js","pages_new/common_share/video/player/plugins/auto_next/auto_next_store.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/common_share/video/player/plugins/auto_next/auto_next_store55871f.js","pages_new/common_share/video/player/plugins/after_ad/after_ad_store.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/common_share/video/player/plugins/after_ad/after_ad_store57efc1.js","pages_new/common_share/video/player/plugins/mid_ad/mid_ad_store.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/common_share/video/player/plugins/mid_ad/mid_ad_store55871f.js","pages_new/common_share/video/player/plugins/popup/popup_store.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/common_share/video/player/plugins/popup/popup_store55871f.js","pages_new/modules/reward/reward_store.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/modules/reward/reward_store55871f.js","pages_new/modules/comment/comment_store.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/modules/comment/comment_store577d19.js","pages_new/common_share/video/topic/topic_store.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/common_share/video/topic/topic_store55871f.js","pages_new/common_share/video/like_and_share/like_and_share_store.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/common_share/video/like_and_share/like_and_share_store55871f.js","pages_new/common_share/video/related_video_list/related_video_list_store.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/common_share/video/related_video_list/related_video_list_store55871f.js","pages_new/common_share/video/lifecycle_manager.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/common_share/video/lifecycle_manager55fc1b.js","pages_new/modules/utils/url.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/modules/utils/url57c88b.js","widget/wx-widget/wx_emotion_panel.css":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/style/widget/wx-widget/wx_emotion_panel.css55871f.js","appmsg/comment/comment_input/comment_input.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/comment/comment_input/comment_input.html55871f.js","appmsg/emotion/selection.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/emotion/selection55871f.js","appmsg/comment/comment_dialog/comment_dialog.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/comment/comment_dialog/comment_dialog.html577d19.js","appmsg/comment/comment_dialog/c2c_not_support_dialog.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/comment/comment_dialog/c2c_not_support_dialog.html55871f.js","appmsg/emotion/emotion_pc.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/emotion/emotion_pc55871f.js","appmsg/comment/comment_list/item.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/comment/comment_list/item.html577d19.js","appmsg/comment/comment_list/comment_item.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/comment/comment_list/comment_item.html577d19.js","common/actionSheet.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/common/actionSheet577d19.js","appmsg/comment/comment_write_dialog/comment_write_dialog.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/comment/comment_write_dialog/comment_write_dialog.html55871f.js","pages/bottom_input_bar.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages/bottom_input_bar57efc1.js","a/appdialog_confirm.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/a/appdialog_confirm.html55871f.js","widget/wx_profile_dialog_primary.css":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/style/widget/wx_profile_dialog_primary.css55871f.js","appmsg/emotion/emotion.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/emotion/emotion.html55871f.js","biz_common/utils/emoji_panel_data.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_common/utils/emoji_panel_data55871f.js","appmsg/emotion/textarea.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/emotion/textarea55871f.js","appmsg/emotion/nav.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/emotion/nav55871f.js","appmsg/emotion/common.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/emotion/common55871f.js","appmsg/emotion/slide.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/emotion/slide55871f.js","common/navShadow.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/common/navShadow577d19.js","pages/mod/bottom_modal.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages/mod/bottom_modal.html55871f.js","widget/wx-widget/wx_bottom_modal.css":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/style/widget/wx-widget/wx_bottom_modal.css577d19.js","pages/audition_tpl.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages/audition_tpl.html55871f.js","pages/musicUrlReport.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages/musicUrlReport55871f.js","pages/music_report_conf.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages/music_report_conf55871f.js","pages/report.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages/report5799e3.js","pages/player_adaptor.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages/player_adaptor55871f.js","pages/music_player.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages/music_player57427d.js","biz_wap/zepto/zepto.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_wap/zepto/zepto55871f.js","pages_new/common_share/video/player/plugins/danmu/danmu_store.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/common_share/video/player/plugins/danmu/danmu_store55871f.js","pages_new/common_share/video/player/player_store.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/common_share/video/player/player_store57efc1.js","pages_new/common_share/video/player/controller.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/common_share/video/player/controller57efc1.js","pages_new/3rd/vuex.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/3rd/vuex55871f.js","pages_new/3rd/vue.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/3rd/vue55871f.js","appmsg/without_iframe/video_appmsg.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/without_iframe/video_appmsg.html57efc1.js","page/appmsg_new/mod/album_read.css":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/style/page/appmsg_new/mod/album_read.css55871f.js","appmsg/more_read_tpl.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/more_read_tpl.html55871f.js","pages_new/common_share/video/store.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/common_share/video/store57efc1.js","appmsg/comment/comment_report.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/comment/comment_report55871f.js","appmsg/emotion/emotion_panel.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/emotion/emotion_panel577d19.js","common/fixed_input.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/common/fixed_input577d19.js","appmsg/comment/comment_length.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/comment/comment_length55871f.js","appmsg/comment/comment_input/comment_input.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/comment/comment_input/comment_input577d19.js","appmsg/comment/comment_dialog/comment_dialog.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/comment/comment_dialog/comment_dialog577d19.js","appmsg/comment/comment_list/comment_list.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/comment/comment_list/comment_list57b95a.js","appmsg/comment/comment_write_dialog/comment_write_dialog.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/comment/comment_write_dialog/comment_write_dialog577d19.js","common/keyboard.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/common/keyboard57efc1.js","appmsg/comment/comment_write_old.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/comment/comment_write_old.html55871f.js","appmsg/comment/comment_write.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/comment/comment_write.html577d19.js","appmsg/comment/comment_tpl.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/comment/comment_tpl.html5782b3.js","biz_wap/utils/fakehash.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_wap/utils/fakehash55871f.js","appmsg/comment_report.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/comment_report55871f.js","appmsg/retry_ajax.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/retry_ajax55871f.js","complain/tips.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/complain/tips55871f.js","pages/loadscript.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages/loadscript55871f.js","biz_wap/utils/ajax_load_js.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_wap/utils/ajax_load_js55871f.js","appmsg/reward_entry.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/reward_entry57ad62.js","complain/utils/utils.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/complain/utils/utils55871f.js","appmsg/i18n.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/i18n55871f.js","biz_common/utils/emoji_data.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_common/utils/emoji_data55871f.js","video/video_tail_utils.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/video/video_tail_utils55ba12.js","a/web_compt_ad.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/a/web_compt_ad579253.js","a/appdialog_confirm.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/a/appdialog_confirm55871f.js","biz_common/utils/get_para_list.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_common/utils/get_para_list55871f.js","biz_common/utils/comm_report.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_common/utils/comm_report577d19.js","appmsg/my_comment_tpl.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/my_comment_tpl.html55871f.js","appmsg/cmt_tpl.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/cmt_tpl.html55871f.js","sougou/a_tpl.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/sougou/a_tpl.html55871f.js","biz_common/utils/report.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_common/utils/report55871f.js","appmsg/articleReport.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/articleReport55871f.js","appmsg/topic_tpl.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/topic_tpl.html55871f.js","appmsg/minishop/minishop_tpl.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/minishop/minishop_tpl.html57f5ba.js","appmsg/appmsg_live_tpl.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/appmsg_live_tpl.html55871f.js","appmsg/profile/ban_alert_tpl.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/profile/ban_alert_tpl.html55871f.js","appmsg/profile/mp_profile_tpl.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/profile/mp_profile_tpl.html55871f.js","appmsg/channel/report_live.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/channel/report_live55871f.js","appmsg/channel/time_format.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/channel/time_format55871f.js","appmsg/channel/video_snap_tpl.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/channel/video_snap_tpl.html55871f.js","appmsg/appmsg_card.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/appmsg_card55871f.js","biz_common/dom/offset.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_common/dom/offset55871f.js","appmsg/emotion/dom.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/emotion/dom55871f.js","appmsg/emotion/emotion.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/emotion/emotion55871f.js","pages/mod/bottom_modal.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages/mod/bottom_modal577d19.js","question_answer/write_answer_reply.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/question_answer/write_answer_reply.html55871f.js","question_answer/reply_item.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/question_answer/reply_item.html55871f.js","question_answer/answer_item.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/question_answer/answer_item.html55871f.js","question_answer/qa_card.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/question_answer/qa_card.html55871f.js","pages/weapp_tpl.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages/weapp_tpl.html55871f.js","appmsg/poi/poi_tpl.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/poi/poi_tpl.html55871f.js","appmsg/search/search_tpl.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/search/search_tpl.html55871f.js","pages/player_tips.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages/player_tips55871f.js","redpackage/tpl/card_tpl.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/redpackage/tpl/card_tpl.html55871f.js","pages/voice_tpl.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages/voice_tpl.html569fc6.js","pages/kugoumusic_ctrl.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages/kugoumusic_ctrl55871f.js","pages/qqmusic_ctrl.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages/qqmusic_ctrl55871f.js","pages/voice_component.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages/voice_component569fc6.js","pages/qqmusic_tpl.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages/qqmusic_tpl.html55871f.js","new_video/ctl.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/new_video/ctl55ba12.js","appmsg/without_iframe/video_appmsg.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/without_iframe/video_appmsg57f7c3.js","biz_wap/jsapi/leaveReport.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_wap/jsapi/leaveReport55871f.js","biz_wap/utils/hand_up_state.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_wap/utils/hand_up_state55871f.js","biz_common/utils/http.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_common/utils/http55871f.js","biz_common/utils/cookie.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_common/utils/cookie55871f.js","appmsg/open_url_with_webview.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/open_url_with_webview55871f.js","appmsg/album_keep_read.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/album_keep_read55871f.js","appmsg/more_read.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/more_read55871f.js","appmsg/comment.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/comment578633.js","appmsg/like_and_share.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/like_and_share57a33f.js","appmsg/like.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/like57efc1.js","appmsg/read.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/read55871f.js","pages_new/modules/utils/event_bus.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/modules/utils/event_bus57efc1.js","appmsg/share_tpl.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/share_tpl.html55871f.js","appmsg/appmsgext.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/appmsgext55871f.js","appmsg/img_copyright_tpl.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/img_copyright_tpl.html55871f.js","pages/video_ctrl.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages/video_ctrl55ba12.js","pages/create_txv.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages/create_txv55871f.js","appmsg/pay_read_utils.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/pay_read_utils55871f.js","appmsg/reward_utils.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/reward_utils55871f.js","biz_common/ui/imgonepx.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_common/ui/imgonepx55871f.js","appmsg/share_biz.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/share_biz55871f.js","appmsg/malicious_wording.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/malicious_wording55871f.js","appmsg/kan_report.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/kan_report57efc1.js","biz_common/jquery.md5.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_common/jquery.md555871f.js","complain/utils/const.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/complain/utils/const55871f.js","complain/utils/dom.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/complain/utils/dom55871f.js","appmsg/subscribe/subscribe_btn_tpl.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/subscribe/subscribe_btn_tpl.html55871f.js","album/utils/report.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/album/utils/report57875e.js","appmsg/rec_report_key.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/rec_report_key577d19.js","pages/scrollY.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages/scrollY577d19.js","appmsg/related_article_feedback.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/related_article_feedback55871f.js","biz_wap/utils/openUrl.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_wap/utils/openUrl55871f.js","appmsg/related_article_item.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/related_article_item.html5703e2.js","appmsg/related_article_tpl.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/related_article_tpl.html55871f.js","biz_common/utils/monitor.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_common/utils/monitor566957.js","biz_wap/utils/setMpInfo.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_wap/utils/setMpInfo55871f.js","pages/utils.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages/utils577d19.js","appmsg/like_profile_tpl.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/like_profile_tpl.html577d19.js","biz_common/template-2.0.1-cmd.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_common/template-2.0.1-cmd55871f.js","tpl/appmsg/loading.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/tpl/appmsg/loading.html55871f.js","biz_common/base64.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_common/base6455871f.js","biz_wap/jsapi/log.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_wap/jsapi/log55871f.js","biz_wap/utils/storage.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_wap/utils/storage55871f.js","appmsg/without_iframe/iframe_communicate.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/without_iframe/iframe_communicate55ce31.js","biz_common/utils/wxgspeedsdk.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_common/utils/wxgspeedsdk55871f.js","pages/version4video.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages/version4video55871f.js","a/a_config.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/a/a_config57efc1.js","a/a_utils.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/a/a_utils55871f.js","a/a.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/a/a579253.js","rt/appmsg/getappmsgext.rt.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/rt/appmsg/getappmsgext.rt55871f.js","pages/video_communicate_adaptor.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages/video_communicate_adaptor55871f.js","appmsg/without_iframe/video_communicate_adaptor.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/without_iframe/video_communicate_adaptor562f5c.js","biz_wap/utils/ajax_wx.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_wap/utils/ajax_wx55871f.js","biz_common/utils/respTypes.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_common/utils/respTypes55871f.js","biz_wap/utils/log.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_wap/utils/log55871f.js","biz_wap/utils/localstorage.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_wap/utils/localstorage55871f.js","common/comm_report.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/common/comm_report55871f.js","sougou/index.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/sougou/index55871f.js","biz_wap/safe/mutation_observer_report.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_wap/safe/mutation_observer_report55871f.js","appmsg/fereport.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/fereport55871f.js","appmsg/fereport_without_localstorage.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/fereport_without_localstorage55871f.js","appmsg/report.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/report55871f.js","appmsg/report_and_source.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/report_and_source573d59.js","appmsg/appmsg_copy_report.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/appmsg_copy_report55871f.js","appmsg/cdn_speed_report.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/cdn_speed_report55871f.js","appmsg/wxtopic.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/wxtopic55871f.js","appmsg/minishop/minishop.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/minishop/minishop57f5ba.js","appmsg/live.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/live55871f.js","appmsg/profile/mp_insert_profile.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/profile/mp_insert_profile55fc1b.js","appmsg/channel/channels.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/channel/channels562e99.js","question_answer/appmsg.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/question_answer/appmsg55871f.js","appmsg/weapp.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/weapp55871f.js","appmsg/weproduct.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/weproduct55871f.js","appmsg/voicemsg.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/voicemsg55871f.js","appmsg/autoread.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/autoread55871f.js","appmsg/poi/poi.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/poi/poi55871f.js","appmsg/search/search.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/search/search55871f.js","redpackage/redpacketcover.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/redpackage/redpacketcover55871f.js","appmsg/voice.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/voice569fc6.js","appmsg/qqmusic.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/qqmusic55871f.js","appmsg/iframe.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/iframe57efc1.js","appmsg/page_pos.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/page_pos57a33f.js","appmsg/product.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/product55871f.js","appmsg/outer_link.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/outer_link55871f.js","appmsg/copyright_report.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/copyright_report55871f.js","appmsg/async.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/async57efc1.js","biz_wap/ui/lazyload_img.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_wap/ui/lazyload_img575fc1.js","biz_common/log/jserr.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_common/log/jserr55871f.js","appmsg/share.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/share57efc1.js","appmsg/cdn_img_lib.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/cdn_img_lib55871f.js","complain/utils/userpainter.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/complain/utils/userpainter55871f.js","appmsg/subscribe/subscribe.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/subscribe/subscribe55871f.js","page/appmsg_new/not_in_mm.css":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/style/page/appmsg_new/not_in_mm.css55871f.js","page/appmsg_new/combo.css":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/style/page/appmsg_new/combo.css57fc23.js","appmsg/tags_utils.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/tags_utils57875e.js","common/color/dark.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/common/color/dark55871f.js","common/color/light.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/common/color/light55871f.js","common/color/background_color.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/common/color/background_color55871f.js","appmsg/wxwork_hidden.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/wxwork_hidden55871f.js","appmsg/set_article_read.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/set_article_read577d19.js","appmsg/getForbidConfig.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/getForbidConfig55871f.js","appmsg/related_article.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/related_article57ad62.js","biz_wap/utils/jsmonitor_report.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_wap/utils/jsmonitor_report55871f.js","appmsg/topbar.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/topbar57efc1.js","appmsg/finance_communicate.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/finance_communicate55871f.js","appmsg/like_profile.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/like_profile57ad62.js","appmsg/loading.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/loading55871f.js","appmsg/pay_report_utils.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/pay_report_utils55871f.js","appmsg/popup_report.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/popup_report55871f.js","complain/localstorage.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/complain/localstorage55871f.js","common/utils.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/common/utils57efc1.js","biz_wap/utils/wapsdk.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_wap/utils/wapsdk55871f.js","a/mpAdAsync.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/a/mpAdAsync562f5c.js","biz_common/utils/url/parse.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_common/utils/url/parse55871f.js","appmsg/appmsg_report.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/appmsg_report55ba12.js","biz_common/moment.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_common/moment55871f.js","biz_wap/jsapi/core.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_wap/jsapi/core55871f.js","biz_common/dom/event.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_common/dom/event571639.js","appmsg/test.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/test55871f.js","biz_wap/utils/mmversion.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_wap/utils/mmversion577d19.js","appmsg/max_age.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/max_age55871f.js","biz_common/dom/attr.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_common/dom/attr55871f.js","biz_wap/utils/ajax.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_wap/utils/ajax55871f.js","appmsg/log.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/log55871f.js","biz_common/dom/class.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_common/dom/class55871f.js","biz_wap/utils/device.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_wap/utils/device55871f.js","appmsg/weapp_common.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/weapp_common579253.js","appmsg/review_image.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/review_image55871f.js","biz_common/utils/string/html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_common/utils/string/html567d88.js","cps/tpl/list_tpl.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/cps/tpl/list_tpl.html57f5ba.js","cps/tpl/card_tpl.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/cps/tpl/card_tpl.html57f5ba.js","cps/tpl/banner_tpl.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/cps/tpl/banner_tpl.html55871f.js","biz_common/tmpl.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_common/tmpl55871f.js","appmsg/set_font_size.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/set_font_size55871f.js","appmsg/sec_load_fail_report.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/sec_load_fail_report55871f.js","biz_wap/ui/weui.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_wap/ui/weui577d19.js","appmsg/search_image.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/search_image55871f.js","appmsg/index.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/index57f5ba.js"};
r;r++){
var a=n[r].split("=");
a[0]&&a[1]&&t.push(a[0]+"="+encodeURIComponent(a[1]));
}
var s=new window.Image;
return void(s.src=(o+t.join("&")).substr(0,1024));
}
var c;
if(window.ActiveXObject)try{
c=new ActiveXObject("Msxml2.XMLHTTP");
}catch(d){
try{
c=new ActiveXObject("Microsoft.XMLHTTP");
}catch(_){
c=!1;
}
}else window.XMLHttpRequest&&(c=new XMLHttpRequest);
c&&(c.open(e,o,!0),c.setRequestHeader("cache-control","no-cache"),c.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),
c.setRequestHeader("X-Requested-With","XMLHttpRequest"),c.send(n));
}
function a(e){
return function(o,n){
if("string"==typeof o)try{
o=new Function(o);
}catch(t){
throw t;
}
var r=[].slice.call(arguments,2),i=o;
return o=function(){
try{
return i.apply(this,r.length&&r||arguments);
}catch(e){
throw e.stack&&console&&console.error&&console.error("[TryCatch]"+e.stack),h&&window.__moon_report&&window.__moon_report([{
offset:O,
log:"timeout_error;host:"+location.host,
e:e
}]),e;
}
},e(o,n);
};
}
function s(e){
return function(o,n,t){
if("undefined"==typeof t)var t=!1;
var r=this,i=n||function(){};
return n=function(){
try{
return i.apply(r,arguments);
}catch(e){
throw e.stack&&console&&console.error&&console.error("[TryCatch]"+e.stack),h&&window.__moon_report&&window.__moon_report([{
offset:v,
log:"listener_error;type:"+o+";host:"+location.host,
e:e
}]),e;
}
},i.moon_lid=x,j[x]=n,x++,e.call(r,o,n,t);
};
}
function c(e){
return function(o,n,t){
if("undefined"==typeof t)var t=!1;
var r=this;
return n=j[n.moon_lid],e.call(r,o,n,t);
};
}
var d,_,l,w,m,u=/MicroMessenger/i.test(navigator.userAgent),f=/MPAPP/i.test(navigator.userAgent),p=window.define,h=121261,g=0,v=2,y=4,O=9,E=10;
if(window.__initCatch=function(e){
h=e.idkey,d=e.startKey||0,_=e.limit,l=e.badjsId,w=e.reportOpt||"",m=e.extInfo||{},
m.rate=m.rate||.5;
},window.__moon_report=function(e,o){
var a=!1,s="";
try{
s=top.location.href;
}catch(c){
a=!0;
}
var w=.5;
if(m&&m.rate&&(w=m.rate),o&&"number"==typeof o&&(w=o),!/mp\.weixin\.qq\.com/.test(location.href)&&!/payapp\.weixin\.qq\.com/.test(location.href)||Math.random()>w||!u&&!f||top!=window&&!a&&!/mp\.weixin\.qq\.com/.test(s),
t(e)&&(e=[e]),n(e)&&""!=h){
var p="",g=[],v=[],O=[],E=[];
"number"!=typeof _&&(_=1/0);
for(var j=0;j_||"number"!=typeof x.offset||x.offset==y&&m&&m.network_rate&&Math.random()>=m.network_rate)){
var b=1/0==_?d:d+x.offset;
g[j]="[moon]"+h+"_"+b+";"+x.log+";"+r(x.e||{})||"",v[j]=b,O[j]=1;
}
}
for(var D=0;D0){
i("POST",location.protocol+"//mp.weixin.qq.com/mp/jsmonitor?","idkey="+E.join(";")+"&r="+Math.random()+"&lc="+g.length+p);
var w=1;
if(m&&m.badjs_rate&&(w=m.badjs_rate),Math.random()=10))try{
D.call(window.localStorage,e,o);
}catch(n){
n.stack&&console&&console.error&&console.error("[TryCatch]"+n.stack),window.__moon_report([{
offset:E,
log:"localstorage_error;"+n.toString(),
e:n
}]),B++,B>=3&&window.moon&&window.moon.clear&&moon.clear();
}
};
}
window.seajs&&p&&(window.define=function(){
for(var o,n=[],t=arguments&&arguments[0],i=0,a=arguments.length;a>i;i++){
var s=o=arguments[i];
"function"==typeof o&&(o=function(){
try{
return s.apply(this,arguments);
}catch(o){
throw"string"==typeof t&&console.error("[TryCatch][DefineeErr]id:"+t),o.stack&&console&&console.error&&console.error("[TryCatch]"+o.stack),
h&&window.__moon_report&&(WX_BJ_REPORT.BadJs.onError(o,{
mid:"mmbizwap:defineError"
}),window.__moon_report([{
offset:g,
log:"define_error;id:"+t+";",
e:o
}])),e(" [define_error]"+JSON.stringify(r(o))),o;
}
},o.toString=function(e){
return function(){
return e.toString();
};
}(arguments[i])),n.push(o);
}
return p.apply(this,n);
});
}(),function(o){
function n(e,o,n){
return window.__DEBUGINFO?(window.__DEBUGINFO.res_list||(window.__DEBUGINFO.res_list=[]),
window.__DEBUGINFO.res_list[e]?(window.__DEBUGINFO.res_list[e][o]=n,!0):!1):!1;
}
function t(e){
var o=new TextEncoder("utf-8").encode(e),n=crypto.subtle||crypto.webkitSubtle;
return n.digest("SHA-256",o).then(function(e){
return r(e);
});
}
function r(e){
for(var o=[],n=new DataView(e),t=0;tr;++r)if(o.call(n,e[r],r,e)===!1)return;
}else{
if("Object"!==t&&a!=e)throw"unsupport type";
if(a==e){
for(var r=e.length-1;r>=0;r--){
var s=a.key(r),c=a.getItem(s);
if(o.call(n,c,s,e)===!1)return;
}
return;
}
for(var r in e)if(e.hasOwnProperty(r)&&o.call(n,e[r],r,e)===!1)return;
}
}
}
var a=o.localStorage,s=document.head||document.getElementsByTagName("head")[0],c=1,d=11,_=12,l=13,w=window.__allowLoadResFromMp?1:2,m=window.__allowLoadResFromMp?1:0,u=w+m,f=window.testenv_reshost||window.__moon_host||"res.wx.qq.com";
window.__loadAllResFromMp&&(f="mp.weixin.qq.com",w=0,u=w+m);
var p=new RegExp("^(http(s)?:)?//"+f),h={
prefix:"__MOON__",
loaded:[],
unload:[],
clearSample:!0,
hit_num:0,
mod_num:0,
version:1003,
cacheData:{
js_mod_num:0,
js_hit_num:0,
js_not_hit_num:0,
js_expired_num:0,
css_mod_num:0,
css_hit_num:0,
css_not_hit_num:0,
css_expired_num:0
},
init:function(){
h.loaded=[],h.unload=[];
var e,n,r;
if(window.no_moon_ls&&(h.clearSample=!0),a){
var s="_moon_ver_key_",c=a.getItem(s);
c!=h.version&&(h.clear(),a.setItem(s,h.version));
}
if((-1!=location.search.indexOf("no_moon1=1")||-1!=location.search.indexOf("no_lshttps=1"))&&h.clear(),
a){
var d=1*a.getItem(h.prefix+"clean_time"),_=+new Date;
if(_-d>=1296e6){
h.clear();
try{
!!a&&a.setItem(h.prefix+"clean_time",+new Date);
}catch(l){}
}
}
i(moon_map,function(i,s){
if(n=h.prefix+s,r=!!i&&i.replace(p,""),e=!!a&&a.getItem(n),version=!!a&&(a.getItem(n+"_ver")||"").replace(p,""),
h.mod_num++,r&&-1!=r.indexOf(".css")?h.cacheData.css_mod_num++:r&&-1!=r.indexOf(".js")&&h.cacheData.js_mod_num++,
h.clearSample||!e||r!=version)h.unload.push(r.replace(p,"")),r&&-1!=r.indexOf(".css")?e?r!=version&&h.cacheData.css_expired_num++:h.cacheData.css_not_hit_num++:r&&-1!=r.indexOf(".js")&&(e?r!=version&&h.cacheData.js_expired_num++:h.cacheData.js_not_hit_num++);else{
if("https:"==location.protocol&&window.moon_hash_map&&window.moon_hash_map[s]&&window.crypto)try{
t(e).then(function(e){
window.moon_hash_map[s]!=e&&console.log(s);
});
}catch(c){}
try{
var d="//# sourceURL="+s+"\n//@ sourceURL="+s;
o.eval.call(o,'define("'+s+'",[],'+e+")"+d),h.hit_num++,r&&-1!=r.indexOf(".css")?h.cacheData.css_hit_num++:r&&-1!=r.indexOf(".js")&&h.cacheData.js_hit_num++;
}catch(c){
h.unload.push(r.replace(p,""));
}
}
}),h.load(h.genUrl());
},
genUrl:function(){
var e=h.unload;
if(!e||e.length<=0)return[];
if(window.__loadAllResFromMp)for(var o=0;od;++d){
/^\/(.*?)\//.test(e[d]);
var l=/^\/(.*?)\//.exec(e[d]);
l.length<2||!l[1]||(t=l[1],r=a[t],r?(n=r+","+e[d],n.length>1e3||s?(i.push(r+"?v="+h.version),
r=location.protocol+c+e[d],a[t]=r):(r=n,a[t]=r)):(r=location.protocol+c+e[d],a[t]=r));
}
for(var w in a)a.hasOwnProperty(w)&&i.push(a[w]);
return i;
},
load:function(e){
if(window.__wxgspeeds&&(window.__wxgspeeds.mod_num=h.mod_num,window.__wxgspeeds.hit_num=h.hit_num),
!e||e.length<=0)return seajs.combo_status=seajs.COMBO_LOADED,seajs.run(),console.debug&&console.debug("[moon] load js complete, all in cache, cost time : 0ms, total count : "+h.mod_num+", hit num: "+h.hit_num),
void window.__moonclientlog.push("[moon] load js complete, all in cache, cost time : 0ms, total count : "+h.mod_num+", hit num: "+h.hit_num);
seajs.combo_status=seajs.COMBO_LOADING;
var o=0,n=+new Date;
window.__wxgspeeds&&(window.__wxgspeeds.combo_times=[],window.__wxgspeeds.combo_times.push(n)),
i(e,function(t){
h.request(t,u,function(){
if(window.__wxgspeeds&&window.__wxgspeeds.combo_times.push(+new Date),o++,o==e.length){
var t=+new Date-n;
window.__wxgspeeds&&(window.__wxgspeeds.mod_downloadtime=t),seajs.combo_status=seajs.COMBO_LOADED,
seajs.run(),console.debug&&console.debug("[moon] load js complete, url num : "+e.length+", total mod count : "+h.mod_num+", hit num: "+h.hit_num+", use time : "+t+"ms"),
window.__moonclientlog.push("[moon] load js complete, url num : "+e.length+", total mod count : "+h.mod_num+", hit num: "+h.hit_num+", use time : "+t+"ms");
}
});
});
},
request:function(o,t,r){
if(o){
t=t||0,o.indexOf("mp.weixin.qq.com")>-1&&((new Image).src=location.protocol+"//mp.weixin.qq.com/mp/jsmonitor?idkey=27613_32_1&r="+Math.random(),
window.__moon_report([{
offset:_,
log:"load_script_from_mp: "+o
}],1));
var i=-1;
window.__DEBUGINFO&&(__DEBUGINFO.res_list||(__DEBUGINFO.res_list=[]),__DEBUGINFO.res_list.push({
type:"js",
status:"pendding",
start:+new Date,
end:0,
url:o
}),i=__DEBUGINFO.res_list.length-1),-1!=location.search.indexOf("no_lshttps=1")&&(o=o.replace("http://","https://"));
var a=document.createElement("script");
a.src=o,a.type="text/javascript",a.async=!0,a.down_time=+new Date,a.onerror=function(s){
n(i,"status","error"),n(i,"end",+new Date);
var _=new Error(s);
if(t>=0)if(m
t){
var w=o.replace("res.wx.qq.com","mp.weixin.qq.com");
h.request(w,t,r);
}else h.request(o,t,r);else window.__moon_report&&(window.__moon_report([{
offset:c,
log:"load_script_error: "+o,
e:_
}],1),window.WX_BJ_REPORT.BadJs.report("load_script_error",o,{
mid:"mmbizwap:Monitor",
_info:_
}));
if(t==m-1&&window.__moon_report([{
offset:d,
log:"load_script_error: "+o,
e:_
}],1),-1==t){
var u="ua: "+window.navigator.userAgent+", time="+(+new Date-a.down_time)+", load_script_error -1 : "+o;
window.__moon_report([{
offset:l,
log:u
}],1);
}
window.__moonclientlog.push("moon load js error : "+o+", error -> "+_.toString()),
e("moon_request_error url:"+o);
},"undefined"!=typeof moon_crossorigin&&moon_crossorigin&&a.setAttribute("crossorigin",!0),
a.onload=a.onreadystatechange=function(){
n(i,"status","loaded"),n(i,"end",+new Date),!a||a.readyState&&!/loaded|complete/.test(a.readyState)||(n(i,"status","200"),
a.onload=a.onreadystatechange=null,"function"==typeof r&&r());
},t--,s.appendChild(a),e("moon_request url:"+o+" retry:"+t);
}
},
setItem:function(e,o){
!!a&&a.setItem(e,o);
},
clear:function(){
a&&(i(a,function(e,o){
~o.indexOf(h.prefix)&&a.removeItem(o);
}),console.debug&&console.debug("[moon] clear"));
},
idkeyReport:function(e,o,n){
n=n||1;
var t=e+"_"+o+"_"+n;
(new Image).src="/mp/jsmonitor?idkey="+t+"&r="+Math.random();
}
};
seajs&&seajs.use&&"string"==typeof window.__moon_mainjs&&seajs.use(window.__moon_mainjs),
window.moon=h;
}(window),function(){
try{
Math.random()<1;
}catch(e){}
}(),window.moon.init();
};
e(),!!window.__moon_initcallback&&window.__moon_initcallback(),window.__wxgspeeds&&(window.__wxgspeeds.moonendtime=+new Date);
}
}
var WX_BJ_REPORT=window.WX_BJ_REPORT||{};
!function(e){
function o(e,o,n,t,r,i){
return{
name:e||"",
message:o||"",
file:n||"",
line:t||"",
col:r||"",
stack:i&&i.stack||""
};
}
function n(e){
var o=t(e);
return{
name:e.name,
key:e.message,
msg:e.message,
stack:o.info,
file:o.file,
line:o.line,
col:o.col,
client_version:"",
_info:e._info
};
}
function t(o){
o._info=o._info||"";
var n=o.stack||"",t={
info:n,
file:o.file||"",
line:o.line||"",
col:o.col||""
};
if(""==t.file){
var r=n.split(/\bat\b/);
if(r&&r[1]){
var i=/(https?:\/\/[^\n]+)\:(\d+)\:(\d+)/.exec(r[1]);
i&&(i[1]&&i[1]!=t.file&&(t.file&&(o._info+=" [file: "+t.file+" ]"),t.file=i[1]),
i[2]&&i[2]!=t.line&&(t.line&&(o._info+=" [line: "+t.line+" ]"),t.line=i[2]),i[3]&&i[3]!=t.col&&(t.col&&(o._info+=" [col: "+t.col+" ]"),
t.col=i[3]));
}
}
return t&&t.file&&t.file.length>0&&(t.info=t.info.replace(new RegExp(t.file.split("?")[0],"gi"),"__FILE__")),
e.BadJs.ignorePath&&(t.info=t.info.replace(/http(s)?\:[^:\n]*\//gi,"").replace(/\n/gi,"")),
t;
}
if(!e.BadJs){
var r="BadjsWindowError",i=function(e,o){
for(var n in o)e[n]=o[n];
return e;
};
return e.BadJs={
uin:0,
mid:"",
view:"wap",
_cache:{},
_info:{},
_hookCallback:null,
ignorePath:!0,
"throw":function(e,o){
throw this.onError(e,o),e;
},
onError:function(o,t){
try{
if(1==o.BADJS_EXCUTED)return;
o.BADJS_EXCUTED=!0;
var r=n(o);
if(r.uin=this.uin,r.mid=this.mid,r.view=this.view,r.cmdb_module="mmbizwap",t&&(r=i(r,t)),
r.cid&&(r.key="["+r.cid+"]:"+r.key),r._info&&(r.msg+="[object Object]"==Object.prototype.toString.call(r._info)?" || info:"+JSON.stringify(r._info):"[object String]"==Object.prototype.toString.call(r._info)?" || info:"+r._info:" || info:"+r._info),
"function"==typeof this._hookCallback&&this._hookCallback(r)===!1)return;
return this._send(r),e.BadJs;
}catch(o){
console.error(o);
}
},
winErr:function(n){
n.error&&n.error.BADJS_EXCUTED||e.BadJs.onError("unhandledrejection"===n.type?o(n.type,n.reason,"","","",n.reason):o(r,n.message,n.filename,n.lineno,n.colno,n.error));
},
init:function(o,n,t){
return this.uin=o||this.uin,this.mid=n||this.mid,this.view=t||this.view,e.BadJs;
},
hook:function(o){
return this._hookCallback=o,e.BadJs;
},
_send:function(o){
if(!o.mid){
if("undefined"==typeof window.PAGE_MID||!window.PAGE_MID)return;
o.mid=window.PAGE_MID;
}
o.uin||(o.uin=window.user_uin||0);
var n=[o.mid,o.name,o.key].join("|");
if(!this._cache||!this._cache[n])return this._cache&&(this._cache[n]=!0),this._xhr(o),
e.BadJs;
},
_xhr:function(e){
var o;
if(window.ActiveXObject)try{
o=new ActiveXObject("Msxml2.XMLHTTP");
}catch(n){
try{
o=new ActiveXObject("Microsoft.XMLHTTP");
}catch(t){
o=!1;
}
}else window.XMLHttpRequest&&(o=new XMLHttpRequest);
var r="";
for(var i in e)i&&e[i]&&(r+=[i,"=",encodeURIComponent(e[i]),"&"].join(""));
if(o&&o.open)o.open("POST","https://badjs.weixinbridge.com/report",!0),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),
o.onreadystatechange=function(){},o.send(r.slice(0,-1));else{
var a=new Image;
a.src="https://badjs.weixinbridge.com/report?"+r;
}
},
report:function(e,n,t){
return this.onError(o(e,n),t),this;
},
mark:function(e){
this._info=i(this._info,e);
},
nocache:function(){
return this._cache=!1,e.BadJs;
}
},window.addEventListener&&window.addEventListener("error",e.BadJs.winErr),window.addEventListener&&window.addEventListener("unhandledrejection",e.BadJs.winErr),
e.BadJs;
}
}(WX_BJ_REPORT),window.WX_BJ_REPORT=WX_BJ_REPORT,__moonf__(); }, 25);
|
前往“发现”-“看一看”浏览“朋友在看”