function e(e) { return e && e.__esModule ? e : { default: e }; } function t(e) { var t = this, a = e.target.dataset.src, i = e.target.dataset.from; void 0 !== i && i.length > 0 && wx.previewImage({ current: a, urls: t.data[i].imageUrls }); } function a(e) { return false; var t = this, a = e.target.dataset.from, r = e.target.dataset.idx; void 0 !== a && a.length > 0 && i(e, r, t, a); } function i(e, t, a, i) { var d = a.data[i]; if (0 != d.images.length) { var n = d.images, s = r(e.detail.width, e.detail.height, a, i); n[t].width = s.imageWidth, n[t].height = s.imageheight, d.images = n; var o = {}; o[i] = d, a.setData(o); } } function r(e, t, a, i) { var r = 0, d = 0, n = 0, s = 0, o = {}; return wx.getSystemInfo({ success: function(g) { var h = a.data[i].view.imagePadding; r = g.windowWidth - 2 * h, d = g.windowHeight, e > r ? (s = (n = r) * t / e, o.imageWidth = n, o.imageheight = s) : (o.imageWidth = e, o.imageheight = t); } }), o; } var d = e(require("./showdown.js")), n = e(require("./html2json.js")); module.exports = { wxParse: function() { var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "wxParseData", i = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "html", r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : '