try { (function(e) { if (/msie 6/i.test(navigator.userAgent)) { window.location = "/cgi-bin/readtemplate?t=err/noie6_tmpl"; return; } window.console || (window.console = { log: function() {}, error: function() {}, info: function() {} }), e.wx = e.wx || {}, wx.T = function(e, t) { return template.compile(e)(t); }, wx.url = function(e) { if (e.startsWith("javasript:")) return e; var t = wx.data.param; return e.indexOf("?") != -1 ? e + t : e + "?1=1" + t; }, wx.getUrl = function(e) { var t = (window.location + "&").match(new RegExp("(?:\\?|\\&)" + e + "=(.*?)\\&")); if (t && t[1]) return String(t[1]).html(!0); }, $.fn.setClass = function(e) { this.attr("class", e); }, function() { function t(e, t) { if (t.indexOf("ueditor") != -1 || t.indexOf("media/appmsg_edit") != -1) return; jQuery.ajax({ url: "/misc/jslog?1=1" + wx.data.param, data: { content: t, id: e, level: "error" }, type: "POST" }); } var e = { fakeid: wx.data.uin, userAgent: window.navigator.userAgent, url: location.href }; jQuery("img").error(function() { t(1, "[fakeid={fakeid}] [img] [url={url}] [useragent={userAgent}] [src={0}]".format(e).format([ jQuery(this).src || "" ])); }), jQuery("script").error(function() { t(2, "[fakeid={fakeid}] [script] [url={url}] [useragent={userAgent}] [src={0}]".format(e).format([ jQuery(this).src || "" ])); }), wx.jslog = function(n, r, i) { i = i || 3, n = jQuery.extend(n, e); var s = []; !r || jQuery.each([ "message", "stack", "lineNumber" ], function(e, t) { s.push(t + ":" + (r[t] || "")); }), n.e = s.join(";").replace(/\s/g, " "); var o = "[fakeid={fakeid}] [script] [url={url}] [useragent={userAgent}] [src={src}] [exception={e}]".format(n); t(i, o), console && console.error && r && console.error(r); }; }(), setTimeout(function() { seajs.use("biz_web/lib/store.js", function(e) { var t = $("#logout"); t.click(function() { function r() { var t = e.get(n); return new Date - t > 864e5; } e.remove("hasNotice"), e.remove("templateClassStatus"), e.remove("templateClassStatusTime"); var t = "__draft__" + wx.data.uin, n = "__draft__time__" + wx.data.uin; r() && (e.remove(t), e.remove(n)); }); }); }, 5e3), wx.resPath = location.hostname == "mp.weixin.qq.com" ? "https://res.wx.qq.com" : "", wx.injectXss = function(e, t, n) { function r(e) { for (var n = 0; n < t.length; n++) if (e == t[n]) return !0; return !1; } if (e == null) return; t || (t = []), n || (n = "'\"