From 56f2f7a0cc1ceb8568d1dc3e65915e237d9a420c Mon Sep 17 00:00:00 2001
From: iotcat
Date: Sun, 21 Jun 2020 12:20:04 +0800
Subject: [PATCH] add email
---
source/lib/valine/valine.js | 3886 -----------------------------------
1 file changed, 3886 deletions(-)
delete mode 100644 source/lib/valine/valine.js
diff --git a/source/lib/valine/valine.js b/source/lib/valine/valine.js
deleted file mode 100644
index 5efb3f5..0000000
--- a/source/lib/valine/valine.js
+++ /dev/null
@@ -1,3886 +0,0 @@
-/*!
- * Valine v1.4.14
- * (c) 2017-2020 xCss
- * Released under the GPL-2.0 License.
- * Last Update: 2020/4/26 下午8:39:08
- * Modify by HCLonely
- */
-!
-function(e, t) {
- "object" == typeof exports && "object" == typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define([], t) : "object" == typeof exports ? exports.Valine = t() : e.Valine = t()
-}(this, function() {
- return function(e) {
- function t(r) {
- if (n[r]) return n[r].exports;
- var o = n[r] = {
- i: r,
- l: !1,
- exports: {}
- };
- return e[r].call(o.exports, o, o.exports, t), o.l = !0, o.exports
- }
- var n = {};
- return t.m = e, t.c = n, t.i = function(e) {
- return e
- }, t.d = function(e, n, r) {
- t.o(e, n) || Object.defineProperty(e, n, {
- configurable: !1,
- enumerable: !0,
- get: r
- })
- }, t.n = function(e) {
- var n = e && e.__esModule ?
- function() {
- return e.
- default
- } : function() {
- return e
- };
- return t.d(n, "a", n), n
- }, t.o = function(e, t) {
- return Object.prototype.hasOwnProperty.call(e, t)
- }, t.p = "", t(t.s = 63)
- }([function(e, t, n) {
- "use strict";
-
- function r(e) {
- return e && e.__esModule ? e : {
- default:
- e
- }
- }
- t.__esModule = !0;
- var o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ?
- function(e) {
- return typeof e
- } : function(e) {
- return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
- }, i = n(38), a = r(i), s = n(28), l = r(s), c = n(27), u = r(c), d = n(42), p = r(d), f = document, h = navigator, v = /[&<>"'`\\]/g, g = RegExp(v.source), m = /&(?:amp|lt|gt|quot|#39|#x60|#x5c);/g, y = RegExp(m.source), b = {
- "&": "&",
- "<": "<",
- ">": ">",
- '"': """,
- "'": "'",
- "`": "`",
- "\\": "\"
- }, w = {};
- for (var x in b) w[b[x]] = x;
- var k = null;
- Array.prototype.forEach || (Array.prototype.forEach = function(e, t) {
- var n, r;
- if (null == this) throw new TypeError(" this is null or not defined");
- var o = Object(this),
- i = o.length >>> 0;
- if ("function" != typeof e) throw new TypeError(e + " is not a function");
- for (arguments.length > 1 && (n = t), r = 0; r < i;) {
- var a;
- r in o && (a = o[r], e.call(n, a, r, o)), r++
- }
- }), window.NodeList && !NodeList.prototype.forEach && (NodeList.prototype.forEach = Array.prototype.forEach), String.prototype.trim || (String.prototype.trim = function() {
- return this.replace(/^[\s ]+|[\s ]+$/g, "")
- }), (0, a.
- default)(l.
- default.fn, {
- prepend: function(e) {
- return e instanceof HTMLElement || (e = e[0]), this.forEach(function(t) {
- t.insertAdjacentElement("afterBegin", e)
- }), this
- },
- append: function(e) {
- return e instanceof HTMLElement || (e = e[0]), this.forEach(function(t) {
- t.insertAdjacentElement("beforeEnd", e)
- }), this
- },
- remove: function() {
- return this.forEach(function(e) {
- try {
- e.parentNode.removeChild(e)
- } catch (e) {}
- }), this
- },
- find: function(e) {
- return (0, l.
- default)(e, this)
- },
- show: function() {
- return this.forEach(function(e) {
- e.style.display = "block"
- }), this
- },
- hide: function() {
- return this.forEach(function(e) {
- e.style.display = "none"
- }), this
- },
- on: function(e, t, n) {
- return l.
- default.fn.off(e, t, n), this.forEach(function(r) {
- e.split(" ").forEach(function(e) {
- r.addEventListener ? r.addEventListener(e, t, n || !1) : r.attachEvent ? r.attachEvent("on" + e, t) : r["on" + e] = t
- })
- }), this
- },
- off: function(e, t, n) {
- return this.forEach(function(r) {
- e.split(" ").forEach(function(e) {
- r.removeEventListener ? r.removeEventListener(e, t, n || !1) : r.detachEvent ? r.detachEvent("on" + e, t) : r["on" + e] = null
- })
- }), this
- },
- html: function(e) {
- return void 0 !== e ? (this.forEach(function(t) {
- t.innerHTML = e
- }), this) : this[0].innerHTML
- },
- text: function(e) {
- return void 0 !== e ? (this.forEach(function(t) {
- t.innerText = e
- }), this) : this[0].innerText
- },
- empty: function(e) {
- return e = e || 0, this.forEach(function(t) {
- setTimeout(function(e) {
- t.innerText = ""
- }, e)
- }), this
- },
- val: function(e) {
- return void 0 !== e ? (this.forEach(function(t) {
- t.value = e
- }), this) : this[0].value || ""
- },
- attr: function() {
- var e = arguments;
- if ("object" == o(arguments[0])) {
- var t = arguments[0],
- n = this;
- return Object.keys(t).forEach(function(e) {
- n.forEach(function(n) {
- n.setAttribute(e, t[e])
- })
- }), this
- }
- return "string" == typeof arguments[0] && arguments.length < 2 ? this[0].getAttribute(arguments[0]) || "" : (this.forEach(function(t) {
- t.setAttribute(e[0], e[1])
- }), this)
- },
- removeAttr: function(e) {
- return this.forEach(function(t) {
- var n, r = 0,
- o = e && e.match(/[^ \t\r\n\f\*\/\\]+/g);
- if (o && 1 === t.nodeType) for (; n = o[r++];) t.removeAttribute(n)
- }), this
- },
- hasClass: function(e) {
- return !!this[0] && new RegExp("(\\s|^)" + e + "(\\s|$)").test(this[0].getAttribute("class"))
- },
- addClass: function(e) {
- return this.forEach(function(t) {
- var n = (0, l.
- default)(t),
- r = n.attr("class");
- n.hasClass(e) || n.attr("class", r += " " + e)
- }), this
- },
- removeClass: function(e) {
- return this.forEach(function(t) {
- var n = (0, l.
- default)(t),
- r = n.attr("class");
- if (n.hasClass(e)) {
- var o = new RegExp("(\\s|^)" + e + "(\\s|$)");
- n.attr("class", r.replace(o, ""))
- }
- }), this
- }
- }), (0, a.
- default)(l.
- default, {
- extend: a.
- default,
- noop:
-
-
- function() {},
- navi: h,
- ua: h.userAgent,
- lang: h.language || h.languages[0],
- detect: u.
- default,
- store:
- p.
- default,
- escape:
-
-
- function(e) {
- return e && g.test(e) ? e.replace(v, function(e) {
- return b[e]
- }) : e
- },
- unescape: function(e) {
- return e && y.test(e) ? e.replace(m, function(e) {
- return w[e]
- }) : e
- },
- dynamicLoadSource: function(e, t) {
- if ((0, l.
- default)('script[src="' + e + '"]').length) t && t();
- else {
- var n = f.createElement("script");
- n.onload = n.onreadystatechange = function() {
- var e = this;
- e.onload = e.onreadystatechange = null, t && t(), (0, l.
- default)(n).remove()
- }, n.async = !0, n.setAttribute("referrerPolicy", "no-referrer");
- (0, l.
- default)("head")[0].appendChild(n), n.src = e
- }
- },
- sdkLoader: function(e, t, n) {
- t in window && window[t] ? (k && clearTimeout(k), n && n()) : l.
- default.dynamicLoadSource(e, function() {
- k = setTimeout(l.
- default.sdkLoader(e, t, n), 100)
- })
- },
- deleteInWin: function(e, t) {
- var n = function(t) {
- if (e in window) try {
- delete window[e]
- } catch (t) {
- window[e] = null
- }
- };
- 0 === t ? n() : setTimeout(n, t || 500)
- },
- ajax: function(e) {
- e = e || {}, e.type = (e.type || "GET").toUpperCase(), e.dataType = e.dataType || "json", e.async = e.async || !0, e.timeout = e.timeout || 8e3;
- var t = "[object FormData]" == {}.toString.call(e.data) ? e.data : function(e) {
- var t = [];
- for (var n in e) t.push(encodeURIComponent(n) + "=" + encodeURIComponent(e[n]));
- return t.push("t=" + Date.now()), t.join("&")
- }(e.data),
- n = null,
- r = "XMLHttpRequest" in window ? new XMLHttpRequest : new ActiveXObject("Microsoft.XMLHTTP");
- r.onreadystatechange = function(t) {
- if (4 == r.readyState) {
- clearTimeout(n);
- var o = r.status;
- o >= 200 && o < 300 ? e.success && e.success(JSON.parse(r.responseText)) : e.fail && e.fail(o)
- }
- }, "GET" == e.type ? (r.open("GET", e.url + "?" + t, e.async), r.send(null)) : "POST" == e.type && (r.open("POST", e.url, e.async), void 0 == e.contentType || null == e.contentType ? r.send(t) : (r.setRequestHeader("Content-Type", e.contentType), r.send(JSON.stringify(e.data)))), n = setTimeout(function(e) {
- clearTimeout(n), r.abort()
- }, e.timeout)
- }
- }), t.
- default = l.
- default
- }, function(e, t, n) {
- "use strict";
- var r = TypeError,
- o = Object.getOwnPropertyDescriptor;
- if (o) try {
- o({}, "")
- } catch (e) {
- o = null
- }
- var i, a, s = function() {
- throw new r
- },
- l = o ?
- function() {
- try {
- return arguments.callee, s
- } catch (e) {
- try {
- return o(arguments, "callee").get
- } catch (e) {
- return s
- }
- }
- }() : s, c = n(47)(), u = Object.getPrototypeOf ||
- function(e) {
- return e.__proto__
- }, d = i ? u(i) : void 0, p = a ? u(a) : void 0, f = a ? a() : void 0, h = "undefined" == typeof Uint8Array ? void 0 : u(Uint8Array), v = {
- "%Array%": Array,
- "%ArrayBuffer%": "undefined" == typeof ArrayBuffer ? void 0 : ArrayBuffer,
- "%ArrayBufferPrototype%": "undefined" == typeof ArrayBuffer ? void 0 : ArrayBuffer.prototype,
- "%ArrayIteratorPrototype%": c ? u([][Symbol.iterator]()) : void 0,
- "%ArrayPrototype%": Array.prototype,
- "%ArrayProto_entries%": Array.prototype.entries,
- "%ArrayProto_forEach%": Array.prototype.forEach,
- "%ArrayProto_keys%": Array.prototype.keys,
- "%ArrayProto_values%": Array.prototype.values,
- "%AsyncFromSyncIteratorPrototype%": void 0,
- "%AsyncFunction%": void 0,
- "%AsyncFunctionPrototype%": void 0,
- "%AsyncGenerator%": a ? u(f) : void 0,
- "%AsyncGeneratorFunction%": p,
- "%AsyncGeneratorPrototype%": p ? p.prototype : void 0,
- "%AsyncIteratorPrototype%": f && c && Symbol.asyncIterator ? f[Symbol.asyncIterator]() : void 0,
- "%Atomics%": "undefined" == typeof Atomics ? void 0 : Atomics,
- "%Boolean%": Boolean,
- "%BooleanPrototype%": Boolean.prototype,
- "%DataView%": "undefined" == typeof DataView ? void 0 : DataView,
- "%DataViewPrototype%": "undefined" == typeof DataView ? void 0 : DataView.prototype,
- "%Date%": Date,
- "%DatePrototype%": Date.prototype,
- "%decodeURI%": decodeURI,
- "%decodeURIComponent%": decodeURIComponent,
- "%encodeURI%": encodeURI,
- "%encodeURIComponent%": encodeURIComponent,
- "%Error%": Error,
- "%ErrorPrototype%": Error.prototype,
- "%eval%": eval,
- "%EvalError%": EvalError,
- "%EvalErrorPrototype%": EvalError.prototype,
- "%Float32Array%": "undefined" == typeof Float32Array ? void 0 : Float32Array,
- "%Float32ArrayPrototype%": "undefined" == typeof Float32Array ? void 0 : Float32Array.prototype,
- "%Float64Array%": "undefined" == typeof Float64Array ? void 0 : Float64Array,
- "%Float64ArrayPrototype%": "undefined" == typeof Float64Array ? void 0 : Float64Array.prototype,
- "%Function%": Function,
- "%FunctionPrototype%": Function.prototype,
- "%Generator%": i ? u(i()) : void 0,
- "%GeneratorFunction%": d,
- "%GeneratorPrototype%": d ? d.prototype : void 0,
- "%Int8Array%": "undefined" == typeof Int8Array ? void 0 : Int8Array,
- "%Int8ArrayPrototype%": "undefined" == typeof Int8Array ? void 0 : Int8Array.prototype,
- "%Int16Array%": "undefined" == typeof Int16Array ? void 0 : Int16Array,
- "%Int16ArrayPrototype%": "undefined" == typeof Int16Array ? void 0 : Int8Array.prototype,
- "%Int32Array%": "undefined" == typeof Int32Array ? void 0 : Int32Array,
- "%Int32ArrayPrototype%": "undefined" == typeof Int32Array ? void 0 : Int32Array.prototype,
- "%isFinite%": isFinite,
- "%isNaN%": isNaN,
- "%IteratorPrototype%": c ? u(u([][Symbol.iterator]())) : void 0,
- "%JSON%": "object" == typeof JSON ? JSON : void 0,
- "%JSONParse%": "object" == typeof JSON ? JSON.parse : void 0,
- "%Map%": "undefined" == typeof Map ? void 0 : Map,
- "%MapIteratorPrototype%": "undefined" != typeof Map && c ? u((new Map)[Symbol.iterator]()) : void 0,
- "%MapPrototype%": "undefined" == typeof Map ? void 0 : Map.prototype,
- "%Math%": Math,
- "%Number%": Number,
- "%NumberPrototype%": Number.prototype,
- "%Object%": Object,
- "%ObjectPrototype%": Object.prototype,
- "%ObjProto_toString%": Object.prototype.toString,
- "%ObjProto_valueOf%": Object.prototype.valueOf,
- "%parseFloat%": parseFloat,
- "%parseInt%": parseInt,
- "%Promise%": "undefined" == typeof Promise ? void 0 : Promise,
- "%PromisePrototype%": "undefined" == typeof Promise ? void 0 : Promise.prototype,
- "%PromiseProto_then%": "undefined" == typeof Promise ? void 0 : Promise.prototype.then,
- "%Promise_all%": "undefined" == typeof Promise ? void 0 : Promise.all,
- "%Promise_reject%": "undefined" == typeof Promise ? void 0 : Promise.reject,
- "%Promise_resolve%": "undefined" == typeof Promise ? void 0 : Promise.resolve,
- "%Proxy%": "undefined" == typeof Proxy ? void 0 : Proxy,
- "%RangeError%": RangeError,
- "%RangeErrorPrototype%": RangeError.prototype,
- "%ReferenceError%": ReferenceError,
- "%ReferenceErrorPrototype%": ReferenceError.prototype,
- "%Reflect%": "undefined" == typeof Reflect ? void 0 : Reflect,
- "%RegExp%": RegExp,
- "%RegExpPrototype%": RegExp.prototype,
- "%Set%": "undefined" == typeof Set ? void 0 : Set,
- "%SetIteratorPrototype%": "undefined" != typeof Set && c ? u((new Set)[Symbol.iterator]()) : void 0,
- "%SetPrototype%": "undefined" == typeof Set ? void 0 : Set.prototype,
- "%SharedArrayBuffer%": "undefined" == typeof SharedArrayBuffer ? void 0 : SharedArrayBuffer,
- "%SharedArrayBufferPrototype%": "undefined" == typeof SharedArrayBuffer ? void 0 : SharedArrayBuffer.prototype,
- "%String%": String,
- "%StringIteratorPrototype%": c ? u("" [Symbol.iterator]()) : void 0,
- "%StringPrototype%": String.prototype,
- "%Symbol%": c ? Symbol : void 0,
- "%SymbolPrototype%": c ? Symbol.prototype : void 0,
- "%SyntaxError%": SyntaxError,
- "%SyntaxErrorPrototype%": SyntaxError.prototype,
- "%ThrowTypeError%": l,
- "%TypedArray%": h,
- "%TypedArrayPrototype%": h ? h.prototype : void 0,
- "%TypeError%": r,
- "%TypeErrorPrototype%": r.prototype,
- "%Uint8Array%": "undefined" == typeof Uint8Array ? void 0 : Uint8Array,
- "%Uint8ArrayPrototype%": "undefined" == typeof Uint8Array ? void 0 : Uint8Array.prototype,
- "%Uint8ClampedArray%": "undefined" == typeof Uint8ClampedArray ? void 0 : Uint8ClampedArray,
- "%Uint8ClampedArrayPrototype%": "undefined" == typeof Uint8ClampedArray ? void 0 : Uint8ClampedArray.prototype,
- "%Uint16Array%": "undefined" == typeof Uint16Array ? void 0 : Uint16Array,
- "%Uint16ArrayPrototype%": "undefined" == typeof Uint16Array ? void 0 : Uint16Array.prototype,
- "%Uint32Array%": "undefined" == typeof Uint32Array ? void 0 : Uint32Array,
- "%Uint32ArrayPrototype%": "undefined" == typeof Uint32Array ? void 0 : Uint32Array.prototype,
- "%URIError%": URIError,
- "%URIErrorPrototype%": URIError.prototype,
- "%WeakMap%": "undefined" == typeof WeakMap ? void 0 : WeakMap,
- "%WeakMapPrototype%": "undefined" == typeof WeakMap ? void 0 : WeakMap.prototype,
- "%WeakSet%": "undefined" == typeof WeakSet ? void 0 : WeakSet,
- "%WeakSetPrototype%": "undefined" == typeof WeakSet ? void 0 : WeakSet.prototype
- }, g = n(4), m = g.call(Function.call, String.prototype.replace), y = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, b = /\\(\\)?/g, w = function(e) {
- var t = [];
- return m(e, y, function(e, n, r, o) {
- t[t.length] = r ? m(o, b, "$1") : n || e
- }), t
- }, x = function(e, t) {
- if (!(e in v)) throw new SyntaxError("intrinsic " + e + " does not exist!");
- if (void 0 === v[e] && !t) throw new r("intrinsic " + e + " exists, but is not available. Please file an issue!");
- return v[e]
- };
- e.exports = function(e, t) {
- if ("string" != typeof e || 0 === e.length) throw new TypeError("intrinsic name must be a non-empty string");
- if (arguments.length > 1 && "boolean" != typeof t) throw new TypeError('"allowMissing" argument must be a boolean');
- for (var n = w(e), i = x("%" + (n.length > 0 ? n[0] : "") + "%", t), a = 1; a < n.length; a += 1) if (null != i) if (o && a + 1 >= n.length) {
- var s = o(i, n[a]);
- if (!(t || n[a] in i)) throw new r("base intrinsic for " + e + " exists, but the property is not available.");
- i = s ? s.get || s.value : i[n[a]]
- } else i = i[n[a]];
- return i
- }
- }, function(e, t, n) {
- "use strict";
- t.__esModule = !0;
- t.DEFAULT_EMOJI_CDN = "//img.t.sinajs.cn/t4/appstyle/expression/ext/normal/", t.DB_NAME = "Comment", t.defaultConfig = {
- lang: "zh-CN",
- langMode: null,
- appId: "",
- appKey: "",
- clazzName: "Comment",
- master: [],
- friends: [],
- tagMeta: ["博主", "小伙伴", "访客"],
- metaPlaceholder: {
- "nick": "昵称/QQ号(必填)",
- "mail": "邮箱(必填)",
- "link": "网址(https://)"
- },
- meta: ["nick", "mail", "link"],
- path: location.pathname,
- placeholder: "Just Go Go",
- pageSize: 10,
- recordIP: !0,
- serverURLs: "",
- visitor: !1,
- emojiCDN: "",
- emojiMaps: void 0,
- enableQQ: !1,
- requiredFields: []
- }, t.defaultMeta = ["nick", "mail", "link"], t.QQCacheKey = "_v_Cache_Q", t.MetaCacheKey = "_v_Cache_Meta", t.RandomStr = (Date.now() + Math.round(1e3 * Math.random())).toString(32), t.VERSION = "1.4.14"
- }, function(e, t, n) {
- function r(e, t) {
- return new i(t).process(e)
- }
- var o = n(7),
- i = n(29);
- t = e.exports = r, t.FilterCSS = i;
- for (var a in o) t[a] = o[a];
- "undefined" != typeof window && (window.filterCSS = e.exports)
- }, function(e, t, n) {
- "use strict";
- var r = n(32);
- e.exports = Function.prototype.bind || r
- }, function(e, t) {
- e.exports = {
- indexOf: function(e, t) {
- var n, r;
- if (Array.prototype.indexOf) return e.indexOf(t);
- for (n = 0, r = e.length; n < r; n++) if (e[n] === t) return n;
- return -1
- },
- forEach: function(e, t, n) {
- var r, o;
- if (Array.prototype.forEach) return e.forEach(t, n);
- for (r = 0, o = e.length; r < o; r++) t.call(n, e[r], r, e)
- },
- trim: function(e) {
- return String.prototype.trim ? e.trim() : e.replace(/(^\s*)|(\s*$)/g, "")
- },
- spaceIndex: function(e) {
- var t = /\s|\n|\t/,
- n = t.exec(e);
- return n ? n.index : -1
- }
- }
- }, function(e, t, n) {
- "use strict";
- t.__esModule = !0;
- var r = n(2),
- o = {
- cdn: r.DEFAULT_EMOJI_CDN,
- maps: n(53),
- parse: function(e) {
- return String(e).replace(new RegExp(":(" + Object.keys(o.maps).join("|") + "):", "ig"), function(e, t) {
- return o.maps[t] ? o.build(t) : e
- })
- },
- build: function(e) {
- var t = /^(https?:)?\/\//i,
- n = o.maps[e],
- r = t.test(n) ? n : o.cdn + n;
- return t.test(r) ? '' : ""
- }
- };
- t.
- default = o
- }, function(e, t) {
- function n() {
- var e = {};
- return e["align-content"] = !1, e["align-items"] = !1, e["align-self"] = !1, e["alignment-adjust"] = !1, e["alignment-baseline"] = !1, e.all = !1, e["anchor-point"] = !1, e.animation = !1, e["animation-delay"] = !1, e["animation-direction"] = !1, e["animation-duration"] = !1, e["animation-fill-mode"] = !1, e["animation-iteration-count"] = !1, e["animation-name"] = !1, e["animation-play-state"] = !1, e["animation-timing-function"] = !1, e.azimuth = !1, e["backface-visibility"] = !1, e.background = !0, e["background-attachment"] = !0, e["background-clip"] = !0, e["background-color"] = !0, e["background-image"] = !0, e["background-origin"] = !0, e["background-position"] = !0, e["background-repeat"] = !0, e["background-size"] = !0, e["baseline-shift"] = !1, e.binding = !1, e.bleed = !1, e["bookmark-label"] = !1, e["bookmark-level"] = !1, e["bookmark-state"] = !1, e.border = !0, e["border-bottom"] = !0, e["border-bottom-color"] = !0, e["border-bottom-left-radius"] = !0, e["border-bottom-right-radius"] = !0, e["border-bottom-style"] = !0, e["border-bottom-width"] = !0, e["border-collapse"] = !0, e["border-color"] = !0, e["border-image"] = !0, e["border-image-outset"] = !0, e["border-image-repeat"] = !0, e["border-image-slice"] = !0, e["border-image-source"] = !0, e["border-image-width"] = !0, e["border-left"] = !0, e["border-left-color"] = !0, e["border-left-style"] = !0, e["border-left-width"] = !0, e["border-radius"] = !0, e["border-right"] = !0, e["border-right-color"] = !0, e["border-right-style"] = !0, e["border-right-width"] = !0, e["border-spacing"] = !0, e["border-style"] = !0, e["border-top"] = !0, e["border-top-color"] = !0, e["border-top-left-radius"] = !0, e["border-top-right-radius"] = !0, e["border-top-style"] = !0, e["border-top-width"] = !0, e["border-width"] = !0, e.bottom = !1, e["box-decoration-break"] = !0, e["box-shadow"] = !0, e["box-sizing"] = !0, e["box-snap"] = !0, e["box-suppress"] = !0, e["break-after"] = !0, e["break-before"] = !0, e["break-inside"] = !0, e["caption-side"] = !1, e.chains = !1, e.clear = !0, e.clip = !1, e["clip-path"] = !1, e["clip-rule"] = !1, e.color = !0, e["color-interpolation-filters"] = !0, e["column-count"] = !1, e["column-fill"] = !1, e["column-gap"] = !1, e["column-rule"] = !1, e["column-rule-color"] = !1, e["column-rule-style"] = !1, e["column-rule-width"] = !1, e["column-span"] = !1, e["column-width"] = !1, e.columns = !1, e.contain = !1, e.content = !1, e["counter-increment"] = !1, e["counter-reset"] = !1, e["counter-set"] = !1, e.crop = !1, e.cue = !1, e["cue-after"] = !1, e["cue-before"] = !1, e.cursor = !1, e.direction = !1, e.display = !0, e["display-inside"] = !0, e["display-list"] = !0, e["display-outside"] = !0, e["dominant-baseline"] = !1, e.elevation = !1, e["empty-cells"] = !1, e.filter = !1, e.flex = !1, e["flex-basis"] = !1, e["flex-direction"] = !1, e["flex-flow"] = !1, e["flex-grow"] = !1, e["flex-shrink"] = !1, e["flex-wrap"] = !1, e.float = !1, e["float-offset"] = !1, e["flood-color"] = !1, e["flood-opacity"] = !1, e["flow-from"] = !1, e["flow-into"] = !1, e.font = !0, e["font-family"] = !0, e["font-feature-settings"] = !0, e["font-kerning"] = !0, e["font-language-override"] = !0, e["font-size"] = !0, e["font-size-adjust"] = !0, e["font-stretch"] = !0, e["font-style"] = !0, e["font-synthesis"] = !0, e["font-variant"] = !0, e["font-variant-alternates"] = !0, e["font-variant-caps"] = !0, e["font-variant-east-asian"] = !0, e["font-variant-ligatures"] = !0, e["font-variant-numeric"] = !0, e["font-variant-position"] = !0, e["font-weight"] = !0, e.grid = !1, e["grid-area"] = !1, e["grid-auto-columns"] = !1, e["grid-auto-flow"] = !1, e["grid-auto-rows"] = !1, e["grid-column"] = !1, e["grid-column-end"] = !1, e["grid-column-start"] = !1, e["grid-row"] = !1, e["grid-row-end"] = !1, e["grid-row-start"] = !1, e["grid-template"] = !1, e["grid-template-areas"] = !1, e["grid-template-columns"] = !1, e["grid-template-rows"] = !1, e["hanging-punctuation"] = !1, e.height = !0, e.hyphens = !1, e.icon = !1, e["image-orientation"] = !1, e["image-resolution"] = !1, e["ime-mode"] = !1, e["initial-letters"] = !1, e["inline-box-align"] = !1, e["justify-content"] = !1, e["justify-items"] = !1, e["justify-self"] = !1, e.left = !1, e["letter-spacing"] = !0, e["lighting-color"] = !0, e["line-box-contain"] = !1, e["line-break"] = !1, e["line-grid"] = !1, e["line-height"] = !1, e["line-snap"] = !1, e["line-stacking"] = !1, e["line-stacking-ruby"] = !1, e["line-stacking-shift"] = !1, e["line-stacking-strategy"] = !1, e["list-style"] = !0, e["list-style-image"] = !0, e["list-style-position"] = !0, e["list-style-type"] = !0, e.margin = !0, e["margin-bottom"] = !0, e["margin-left"] = !0, e["margin-right"] = !0, e["margin-top"] = !0, e["marker-offset"] = !1, e["marker-side"] = !1, e.marks = !1, e.mask = !1, e["mask-box"] = !1, e["mask-box-outset"] = !1, e["mask-box-repeat"] = !1, e["mask-box-slice"] = !1, e["mask-box-source"] = !1, e["mask-box-width"] = !1, e["mask-clip"] = !1, e["mask-image"] = !1, e["mask-origin"] = !1, e["mask-position"] = !1, e["mask-repeat"] = !1, e["mask-size"] = !1, e["mask-source-type"] = !1, e["mask-type"] = !1, e["max-height"] = !0, e["max-lines"] = !1, e["max-width"] = !0, e["min-height"] = !0, e["min-width"] = !0, e["move-to"] = !1, e["nav-down"] = !1, e["nav-index"] = !1, e["nav-left"] = !1, e["nav-right"] = !1, e["nav-up"] = !1, e["object-fit"] = !1, e["object-position"] = !1, e.opacity = !1, e.order = !1, e.orphans = !1, e.outline = !1, e["outline-color"] = !1, e["outline-offset"] = !1, e["outline-style"] = !1, e["outline-width"] = !1, e.overflow = !1, e["overflow-wrap"] = !1, e["overflow-x"] = !1, e["overflow-y"] = !1, e.padding = !0, e["padding-bottom"] = !0, e["padding-left"] = !0, e["padding-right"] = !0, e["padding-top"] = !0, e.page = !1, e["page-break-after"] = !1, e["page-break-before"] = !1, e["page-break-inside"] = !1, e["page-policy"] = !1, e.pause = !1, e["pause-after"] = !1, e["pause-before"] = !1, e.perspective = !1, e["perspective-origin"] = !1, e.pitch = !1, e["pitch-range"] = !1, e["play-during"] = !1, e.position = !1, e["presentation-level"] = !1, e.quotes = !1, e["region-fragment"] = !1, e.resize = !1, e.rest = !1, e["rest-after"] = !1, e["rest-before"] = !1, e.richness = !1, e.right = !1, e.rotation = !1, e["rotation-point"] = !1, e["ruby-align"] = !1, e["ruby-merge"] = !1, e["ruby-position"] = !1, e["shape-image-threshold"] = !1, e["shape-outside"] = !1, e["shape-margin"] = !1, e.size = !1, e.speak = !1, e["speak-as"] = !1, e["speak-header"] = !1, e["speak-numeral"] = !1, e["speak-punctuation"] = !1, e["speech-rate"] = !1, e.stress = !1, e["string-set"] = !1, e["tab-size"] = !1, e["table-layout"] = !1, e["text-align"] = !0, e["text-align-last"] = !0, e["text-combine-upright"] = !0, e["text-decoration"] = !0, e["text-decoration-color"] = !0, e["text-decoration-line"] = !0, e["text-decoration-skip"] = !0, e["text-decoration-style"] = !0, e["text-emphasis"] = !0, e["text-emphasis-color"] = !0, e["text-emphasis-position"] = !0, e["text-emphasis-style"] = !0, e["text-height"] = !0, e["text-indent"] = !0, e["text-justify"] = !0, e["text-orientation"] = !0, e["text-overflow"] = !0, e["text-shadow"] = !0, e["text-space-collapse"] = !0, e["text-transform"] = !0, e["text-underline-position"] = !0, e["text-wrap"] = !0, e.top = !1, e.transform = !1, e["transform-origin"] = !1, e["transform-style"] = !1, e.transition = !1, e["transition-delay"] = !1, e["transition-duration"] = !1, e["transition-property"] = !1, e["transition-timing-function"] = !1, e["unicode-bidi"] = !1, e["vertical-align"] = !1, e.visibility = !1, e["voice-balance"] = !1, e["voice-duration"] = !1, e["voice-family"] = !1, e["voice-pitch"] = !1, e["voice-range"] = !1, e["voice-rate"] = !1, e["voice-stress"] = !1, e["voice-volume"] = !1, e.volume = !1, e["white-space"] = !1, e.widows = !1, e.width = !0, e["will-change"] = !1, e["word-break"] = !0, e["word-spacing"] = !0, e["word-wrap"] = !0, e["wrap-flow"] = !1, e["wrap-through"] = !1, e["writing-mode"] = !1, e["z-index"] = !1, e
- }
- function r(e, t, n) {}
- function o(e, t, n) {}
- function i(e, t) {
- return a.test(t) ? "" : t
- }
- var a = /javascript\s*\:/gim;
- t.whiteList = n(), t.getDefaultWhiteList = n, t.onAttr = r, t.onIgnoreAttr = o, t.safeAttrValue = i
- }, function(e, t) {
- e.exports = {
- indexOf: function(e, t) {
- var n, r;
- if (Array.prototype.indexOf) return e.indexOf(t);
- for (n = 0, r = e.length; n < r; n++) if (e[n] === t) return n;
- return -1
- },
- forEach: function(e, t, n) {
- var r, o;
- if (Array.prototype.forEach) return e.forEach(t, n);
- for (r = 0, o = e.length; r < o; r++) t.call(n, e[r], r, e)
- },
- trim: function(e) {
- return String.prototype.trim ? e.trim() : e.replace(/(^\s*)|(\s*$)/g, "")
- },
- trimRight: function(e) {
- return String.prototype.trimRight ? e.trimRight() : e.replace(/(\s*$)/g, "")
- }
- }
- }, function(e, t, n) {
- "use strict";
- var r = n(40),
- o = "function" == typeof Symbol && "symbol" == typeof Symbol("foo"),
- i = Object.prototype.toString,
- a = Array.prototype.concat,
- s = Object.defineProperty,
- l = function(e) {
- return "function" == typeof e && "[object Function]" === i.call(e)
- },
- c = s &&
- function() {
- var e = {};
- try {
- s(e, "x", {
- enumerable: !1,
- value: e
- });
- for (var t in e) return !1;
- return e.x === e
- } catch (e) {
- return !1
- }
- }(), u = function(e, t, n, r) {
- (!(t in e) || l(r) && r()) && (c ? s(e, t, {
- configurable: !0,
- enumerable: !1,
- value: n,
- writable: !0
- }) : e[t] = n)
- }, d = function(e, t) {
- var n = arguments.length > 2 ? arguments[2] : {},
- i = r(t);
- o && (i = a.call(i, Object.getOwnPropertySymbols(t)));
- for (var s = 0; s < i.length; s += 1) u(e, i[s], t[i[s]], n[i[s]])
- };
- d.supportsDescriptors = !! c, e.exports = d
- }, function(e, t, n) {
- "use strict";
- var r = Object.prototype.toString;
- e.exports = function(e) {
- var t = r.call(e),
- n = "[object Arguments]" === t;
- return n || (n = "[object Array]" !== t && null !== e && "object" == typeof e && "number" == typeof e.length && e.length >= 0 && "[object Function]" === r.call(e.callee)), n
- }
- }, function(e, t, n) {
- "use strict";
- var r = n(45),
- o = n(44),
- i = n(46),
- a = i("String.prototype.replace"),
- s = /^[
-
-
]+/,
- l = /[
-
-
]+$/;
- e.exports = function() {
- var e = o(r(this));
- return a(a(e, s, ""), l, "")
- }
- }, function(e, t, n) {
- "use strict";
- var r = n(4),
- o = n(1),
- i = o("%Function%"),
- a = i.apply,
- s = i.call;
- e.exports = function() {
- return r.apply(s, arguments)
- }, e.exports.apply = function() {
- return r.apply(a, arguments)
- }
- }, function(e, t, n) {
- "use strict";
- var r = n(11),
- o = "";
- e.exports = function() {
- return String.prototype.trim && o.trim() === o ? String.prototype.trim : r
- }
- }, function(e, t) {
- var n;
- n = function() {
- return this
- }();
- try {
- n = n || Function("return this")() || (0, eval)("this")
- } catch (e) {
- "object" == typeof window && (n = window)
- }
- e.exports = n
- }, function(e, t, n) {
- function r() {
- return {
- a: ["target", "href", "title"],
- abbr: ["title"],
- address: [],
- area: ["shape", "coords", "href", "alt"],
- article: [],
- aside: [],
- audio: ["autoplay", "controls", "loop", "preload", "src"],
- b: [],
- bdi: ["dir"],
- bdo: ["dir"],
- big: [],
- blockquote: ["cite"],
- br: [],
- caption: [],
- center: [],
- cite: [],
- code: [],
- col: ["align", "valign", "span", "width"],
- colgroup: ["align", "valign", "span", "width"],
- dd: [],
- del: ["datetime"],
- details: ["open"],
- div: [],
- dl: [],
- dt: [],
- em: [],
- font: ["color", "size", "face"],
- footer: [],
- h1: [],
- h2: [],
- h3: [],
- h4: [],
- h5: [],
- h6: [],
- header: [],
- hr: [],
- i: [],
- img: ["src", "alt", "title", "width", "height"],
- ins: ["datetime"],
- li: [],
- mark: [],
- nav: [],
- ol: [],
- p: [],
- pre: [],
- s: [],
- section: [],
- small: [],
- span: [],
- sub: [],
- sup: [],
- strong: [],
- table: ["width", "border", "align", "valign"],
- tbody: ["align", "valign"],
- td: ["width", "rowspan", "colspan", "align", "valign"],
- tfoot: ["align", "valign"],
- th: ["width", "rowspan", "colspan", "align", "valign"],
- thead: ["align", "valign"],
- tr: ["rowspan", "align", "valign"],
- tt: [],
- u: [],
- ul: [],
- video: ["autoplay", "controls", "loop", "preload", "src", "height", "width"]
- }
- }
- function o(e, t, n) {}
- function i(e, t, n) {}
- function a(e, t, n) {}
- function s(e, t, n) {}
- function l(e) {
- return e.replace(S, "<").replace(O, ">")
- }
- function c(e, t, n, r) {
- if (n = v(n), "href" === t || "src" === t) {
- if ("#" === (n = _.trim(n))) return "#";
- if ("http://" !== n.substr(0, 7) && "https://" !== n.substr(0, 8) && "mailto:" !== n.substr(0, 7) && "tel:" !== n.substr(0, 4) && "#" !== n[0] && "/" !== n[0]) return ""
- } else if ("background" === t) {
- if (I.lastIndex = 0, I.test(n)) return ""
- } else if ("style" === t) {
- if (P.lastIndex = 0, P.test(n)) return "";
- if (M.lastIndex = 0, M.test(n) && (I.lastIndex = 0, I.test(n))) return "";
- !1 !== r && (r = r || A, n = r.process(n))
- }
- return n = g(n)
- }
- function u(e) {
- return e.replace($, """)
- }
- function d(e) {
- return e.replace(E, '"')
- }
- function p(e) {
- return e.replace(j, function(e, t) {
- return "x" === t[0] || "X" === t[0] ? String.fromCharCode(parseInt(t.substr(1), 16)) : String.fromCharCode(parseInt(t, 10))
- })
- }
- function f(e) {
- return e.replace(T, ":").replace(C, " ")
- }
- function h(e) {
- for (var t = "", n = 0, r = e.length; n < r; n++) t += e.charCodeAt(n) < 32 ? " " : e.charAt(n);
- return _.trim(t)
- }
- function v(e) {
- return e = d(e), e = p(e), e = f(e), e = h(e)
- }
- function g(e) {
- return e = u(e), e = l(e)
- }
- function m() {
- return ""
- }
- function y(e, t) {
- function n(t) {
- return !!r || -1 !== _.indexOf(e, t)
- }
- "function" != typeof t && (t = function() {});
- var r = !Array.isArray(e),
- o = [],
- i = !1;
- return {
- onIgnoreTag: function(e, r, a) {
- if (n(e)) {
- if (a.isClosing) {
- var s = "[/removed]",
- l = a.position + s.length;
- return o.push([!1 !== i ? i : a.position, l]), i = !1, s
- }
- return i || (i = a.position), "[removed]"
- }
- return t(e, r, a)
- },
- remove: function(e) {
- var t = "",
- n = 0;
- return _.forEach(o, function(r) {
- t += e.slice(n, r[0]), n = r[1]
- }), t += e.slice(n)
- }
- }
- }
- function b(e) {
- return e.replace(R, "")
- }
- function w(e) {
- var t = e.split("");
- return t = t.filter(function(e) {
- var t = e.charCodeAt(0);
- return 127 !== t && (!(t <= 31) || (10 === t || 13 === t))
- }), t.join("")
- }
- var x = n(3).FilterCSS,
- k = n(3).getDefaultWhiteList,
- _ = n(5),
- A = new x,
- S = //g,
- $ = /"/g,
- E = /"/g,
- j = /([a-zA-Z0-9]*);?/gim,
- T = /:?/gim,
- C = /&newline;?/gim,
- I = /((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a)\:/gi,
- P = /e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,
- M = /u\s*r\s*l\s*\(.*/gi,
- R = //g;
- t.whiteList = r(), t.getDefaultWhiteList = r, t.onTag = o, t.onIgnoreTag = i, t.onTagAttr = a, t.onIgnoreTagAttr = s, t.safeAttrValue = c, t.escapeHtml = l, t.escapeQuote = u, t.unescapeQuote = d, t.escapeHtmlEntities = p, t.escapeDangerHtml5Entities = f, t.clearNonPrintableCharacter = h, t.friendlyAttrValue = v, t.escapeAttrValue = g, t.onIgnoreTagStripAll = m, t.StripTagBody = y, t.stripCommentTag = b, t.stripBlankChar = w, t.cssFilter = A, t.getDefaultCSSWhiteList = k
- }, function(e, t, n) {
- function r(e) {
- var t = d.spaceIndex(e);
- if (-1 === t) var n = e.slice(1, -1);
- else var n = e.slice(1, t + 1);
- return n = d.trim(n).toLowerCase(), "/" === n.slice(0, 1) && (n = n.slice(1)), "/" === n.slice(-1) && (n = n.slice(0, -1)), n
- }
- function o(e) {
- return "" === e.slice(0, 2)
- }
- function i(e, t, n) {
- "user strict";
- var i = "",
- a = 0,
- s = !1,
- l = !1,
- c = 0,
- u = e.length,
- d = "",
- p = "";
- for (c = 0; c < u; c++) {
- var f = e.charAt(c);
- if (!1 === s) {
- if ("<" === f) {
- s = c;
- continue
- }
- } else if (!1 === l) {
- if ("<" === f) {
- i += n(e.slice(a, c)), s = c, a = c;
- continue
- }
- if (">" === f) {
- i += n(e.slice(a, s)), p = e.slice(s, c + 1), d = r(p), i += t(s, i.length, d, p, o(p)), a = c + 1, s = !1;
- continue
- }
- if (('"' === f || "'" === f) && "=" === e.charAt(c - 1)) {
- l = f;
- continue
- }
- } else if (f === l) {
- l = !1;
- continue
- }
- }
- return a < e.length && (i += n(e.substr(a))), i
- }
- function a(e, t) {
- "user strict";
-
- function n(e, n) {
- if (e = d.trim(e), e = e.replace(p, "").toLowerCase(), !(e.length < 1)) {
- var r = t(e, n || "");
- r && o.push(r)
- }
- }
- for (var r = 0, o = [], i = !1, a = e.length, c = 0; c < a; c++) {
- var f, h, v = e.charAt(c);
- if (!1 !== i || "=" !== v) if (!1 === i || c !== r || '"' !== v && "'" !== v || "=" !== e.charAt(c - 1)) if (/\s|\n|\t/.test(v)) {
- if (e = e.replace(/\s|\n|\t/g, " "), !1 === i) {
- if (-1 === (h = s(e, c))) {
- f = d.trim(e.slice(r, c)), n(f), i = !1, r = c + 1;
- continue
- }
- c = h - 1;
- continue
- }
- if (-1 === (h = l(e, c - 1))) {
- f = d.trim(e.slice(r, c)), f = u(f), n(i, f), i = !1, r = c + 1;
- continue
- }
- } else;
- else {
- if (-1 === (h = e.indexOf(v, c + 1))) break;
- f = d.trim(e.slice(r + 1, h)), n(i, f), i = !1, c = h, r = c + 1
- } else i = e.slice(r, c), r = c + 1
- }
- return r < e.length && (!1 === i ? n(e.slice(r)) : n(i, u(d.trim(e.slice(r))))), d.trim(o.join(" "))
- }
- function s(e, t) {
- for (; t < e.length; t++) {
- var n = e[t];
- if (" " !== n) return "=" === n ? t : -1
- }
- }
- function l(e, t) {
- for (; t > 0; t--) {
- var n = e[t];
- if (" " !== n) return "=" === n ? t : -1
- }
- }
- function c(e) {
- return '"' === e[0] && '"' === e[e.length - 1] || "'" === e[0] && "'" === e[e.length - 1]
- }
- function u(e) {
- return c(e) ? e.substr(1, e.length - 2) : e
- }
- var d = n(5),
- p = /[^a-zA-Z0-9_:\.\-]/gim;
- t.parseTag = i, t.parseAttr = a
- }, function(e, t, n) {
- var r, o, i;
-/*!
- autosize 4.0.2
- license: MIT
- http://www.jacklmoore.com/autosize
-*/
- !
- function(n, a) {
- o = [e, t], r = a, void 0 !== (i = "function" == typeof r ? r.apply(t, o) : r) && (e.exports = i)
- }(0, function(e, t) {
- "use strict";
-
- function n(e) {
- function t(t) {
- var n = e.style.width;
- e.style.width = "0px", e.offsetWidth, e.style.width = n, e.style.overflowY = t
- }
- function n(e) {
- for (var t = []; e && e.parentNode && e.parentNode instanceof Element;) e.parentNode.scrollTop && t.push({
- node: e.parentNode,
- scrollTop: e.parentNode.scrollTop
- }), e = e.parentNode;
- return t
- }
- function r() {
- if (0 !== e.scrollHeight) {
- var t = n(e),
- r = document.documentElement && document.documentElement.scrollTop;
- e.style.height = "", e.style.height = e.scrollHeight + s + "px", l = e.clientWidth, t.forEach(function(e) {
- e.node.scrollTop = e.scrollTop
- }), r && (document.documentElement.scrollTop = r)
- }
- }
- function o() {
- r();
- var n = Math.round(parseFloat(e.style.height)),
- o = window.getComputedStyle(e, null),
- i = "content-box" === o.boxSizing ? Math.round(parseFloat(o.height)) : e.offsetHeight;
- if (i < n ? "hidden" === o.overflowY && (t("scroll"), r(), i = "content-box" === o.boxSizing ? Math.round(parseFloat(window.getComputedStyle(e, null).height)) : e.offsetHeight) : "hidden" !== o.overflowY && (t("hidden"), r(), i = "content-box" === o.boxSizing ? Math.round(parseFloat(window.getComputedStyle(e, null).height)) : e.offsetHeight), c !== i) {
- c = i;
- var s = a("autosize:resized");
- try {
- e.dispatchEvent(s)
- } catch (e) {}
- }
- }
- if (e && e.nodeName && "TEXTAREA" === e.nodeName && !i.has(e)) {
- var s = null,
- l = null,
- c = null,
- u = function() {
- e.clientWidth !== l && o()
- },
- d = function(t) {
- window.removeEventListener("resize", u, !1), e.removeEventListener("input", o, !1), e.removeEventListener("keyup", o, !1), e.removeEventListener("autosize:destroy", d, !1), e.removeEventListener("autosize:update", o, !1), Object.keys(t).forEach(function(n) {
- e.style[n] = t[n]
- }), i.delete(e)
- }.bind(e, {
- height: e.style.height,
- resize: e.style.resize,
- overflowY: e.style.overflowY,
- overflowX: e.style.overflowX,
- wordWrap: e.style.wordWrap
- });
- e.addEventListener("autosize:destroy", d, !1), "onpropertychange" in e && "oninput" in e && e.addEventListener("keyup", o, !1), window.addEventListener("resize", u, !1), e.addEventListener("input", o, !1), e.addEventListener("autosize:update", o, !1), e.style.overflowX = "hidden", e.style.wordWrap = "break-word", i.set(e, {
- destroy: d,
- update: o
- }), function() {
- var t = window.getComputedStyle(e, null);
- "vertical" === t.resize ? e.style.resize = "none" : "both" === t.resize && (e.style.resize = "horizontal"), s = "content-box" === t.boxSizing ? -(parseFloat(t.paddingTop) + parseFloat(t.paddingBottom)) : parseFloat(t.borderTopWidth) + parseFloat(t.borderBottomWidth), isNaN(s) && (s = 0), o()
- }()
- }
- }
- function r(e) {
- var t = i.get(e);
- t && t.destroy()
- }
- function o(e) {
- var t = i.get(e);
- t && t.update()
- }
- var i = "function" == typeof Map ? new Map : function() {
- var e = [],
- t = [];
- return {
- has: function(t) {
- return e.indexOf(t) > -1
- },
- get: function(n) {
- return t[e.indexOf(n)]
- },
- set: function(n, r) {
- -1 === e.indexOf(n) && (e.push(n), t.push(r))
- },
- delete: function(n) {
- var r = e.indexOf(n);
- r > -1 && (e.splice(r, 1), t.splice(r, 1))
- }
- }
- }(),
- a = function(e) {
- return new Event(e, {
- bubbles: !0
- })
- };
- try {
- new Event("test")
- } catch (e) {
- a = function(e) {
- var t = document.createEvent("Event");
- return t.initEvent(e, !0, !1), t
- }
- }
- var s = null;
- "undefined" == typeof window || "function" != typeof window.getComputedStyle ? (s = function(e) {
- return e
- }, s.destroy = function(e) {
- return e
- }, s.update = function(e) {
- return e
- }) : (s = function(e, t) {
- return e && Array.prototype.forEach.call(e.length ? e : [e], function(e) {
- return n(e)
- }), e
- }, s.destroy = function(e) {
- return e && Array.prototype.forEach.call(e.length ? e : [e], r), e
- }, s.update = function(e) {
- return e && Array.prototype.forEach.call(e.length ? e : [e], o), e
- }), t.
- default = s, e.exports = t.
- default
- })
- }, function(e, t, n) {
- "use strict";
-
- function r(e) {
- return e && e.__esModule ? e : {
- default:
- e
- }
- }
- function o(e) {
- return !!e && this.init(e), this
- }
- function i(e) {
- return new o(e)
- }
- var a = n(26),
- s = r(a),
- l = n(17),
- c = r(l),
- u = n(20),
- d = r(u),
- p = n(6),
- f = r(p),
- h = n(2),
- v = n(24),
- g = r(v),
- m = n(0),
- y = r(m),
- b = n(22),
- w = r(b),
- x = n(19),
- k = r(x),
- _ = n(23),
- A = n(25),
- S = r(A),
- O = n(21),
- $ = r(O),
- E = {
- comment: "",
- nick: "",
- mail: "",
- link: "",
- ua: y.
- default.ua,
- url:
- "",
- QQAvatar: ""
- },
- j = "",
- T = {
- cdn: "https://gravatar.loli.net/avatar/",
- ds: ["mp", "identicon", "monsterid", "wavatar", "robohash", "retro", ""],
- params: "",
- hide: !1
- };
- o.prototype.init = function(e) {
- if ("undefined" == typeof document) throw new Error("Sorry, Valine does not support Server-side rendering.");
- var t = this;
- return e && (e = y.
- default.extend(h.defaultConfig, e), t.i18n = (0, d.
- default)(e.lang || y.
- default.lang, e.langMode), t.config = e, f.
- default.maps = !! e.emojiMaps && e.emojiMaps || f.
- default.maps, f.
- default.cdn = !! e.emojiCDN && e.emojiCDN || f.
- default.cdn, t._init()), t
- }, o.prototype._init = function() {
- var e = this;
- try {
- var t = e.config,
- n = t.avatar,
- r = t.avatarForce,
- o = t.avatar_cdn,
- i = t.visitor,
- a = t.path,
- s = void 0 === a ? location.pathname : a,
- l = t.pageSize,
- c = t.recordIP;
- e.config.path = s.replace(/index\.html?$/, "");
- var u = T.ds,
- d = r ? "&q=" + h.RandomStr : "";
- T.params = "?d=" + (u.indexOf(n) > -1 ? n : "mp") + "&v=" + h.VERSION + d, T.hide = "hide" === n, T.cdn = /^https?\:\/\//.test(o) ? o : T.cdn, e.config.pageSize = isNaN(l) ? 10 : l < 1 ? 10 : l, c && (0, _.recordIPFn)(function(e) {
- return E.ip = e
- });
- var p = e.config.el || null,
- f = (0, y.
- default)(p);
- if (p = p instanceof HTMLElement ? p : f[f.length - 1] || null) {
- e.$el = (0, y.
- default)(p), e.$el.addClass("v").attr("data-class", "v"), T.hide && e.$el.addClass("hide-avatar"), e.config.meta = (e.config.guest_info || e.config.meta || h.defaultMeta).filter(function(e) {
- return h.defaultMeta.indexOf(e) > -1
- }), e.config.requiredFields = e.config.requiredFields.filter(function(e) {
- return h.defaultMeta.indexOf(e) > -1
- });
- var v = (0 == e.config.meta.length ? h.defaultMeta : e.config.meta).map(function(t) {
- var n = "mail" == t ? "email" : "text";
- return h.defaultMeta.indexOf(t) > -1 ? '' : ""
- }),
- g = '
v' + h.VERSION + "
", '
' + I.at + " , ") - } - for (var o in E) if (E.hasOwnProperty(o)) { - var i = E[o]; - n.set(o, i) - } - n.setACL(F()), n.save().then(function(t) { - "Anonymous" != E.nick && y. - default.store.set(h.MetaCacheKey, { - nick: E.nick, - link: E.link, - mail: E.mail - }); - var n = e.$el.find(".vnum"); - try { - I.rid ? C(t, (0, y. - default)('.vquote[data-self-id="' + I.rid + '"]'), !0) : (Number(n.text()) ? n.text(Number(n.text()) + 1) : e.$el.find(".vcount").show().find(".vnum").text(Number(n.text()) + 1), C(t, e.$el.find(".vcards")), k.skip++), z.removeAttr("disabled"), e.$loading.hide(), e.reset() - } catch (t) { - (0, $. - default)(e, t, "save") - } - }). - catch (function(t) { - (0, $. - default)(e, t, "commitEvt") - }) - }; - z.on("click", L), (0, y. - default)(document).on("keydown", function(e) { - e = event || e; - var t = e.keyCode || e.which || e.charCode; - ((e.ctrlKey || e.metaKey) && 13 === t && L(), 9 === t) && ("veditor" == (document.activeElement.id || "") && (e.preventDefault(), x(i[0], " "))) - }).on("paste", function(e) { - var t = "clipboardData" in e ? e.clipboardData : e.originalEvent && e.originalEvent.clipboardData || window.clipboardData; - t && B(t.items, !0) - }), i.on("dragenter dragleave dragover drop", function(e) { - e.stopPropagation(), e.preventDefault(), "drop" === e.type && B(e.dataTransfer.items) - }); - var B = function(e, t) { - for (var n = [], r = 0, o = e.length; r < o; r++) { - var a = e[r]; - if ("string" === a.kind && a.type.match("^text/html"))!t && a.getAsString(function(e) { - e && x(i[0], e.replace(/<[^>]+>/g, "")) - }); - else if (-1 !== a.type.indexOf("image")) { - n.push(a.getAsFile()); - continue - } - } - N(n) - }, - N = function t(n, r) { - r = r || 0; - var o = n.length; - if (o > 0) { - var a = n[r]; - z.attr({ - disabled: !0 - }); - var s = "![Uploading " + a.name + "...]()"; - x(i[0], s), Q(a, function(l) { - 500 != l.code ? (i.val(i.val().replace(s, "![" + a.name + "](" + l.data.url + ")\r\n")), (0, c. - default)(i[0]), ++r < o ? t(n, r) : z.removeAttr("disabled")) : (i.val(i.val().replace(s, "")), (0, c. - default)(i[0]), e.$el.find(".status-bar").text(l.msg).empty(3e3), z.removeAttr("disabled")) - }) - } - }, - Q = function(e, t) { - var n = new FormData; - n.append("image", e), y. - default.ajax({ - type: "post", - url: "https://pic.alexhchu.com/api/upload", - data: n, - success: function(e) { - t && t(e) - } - }) - } - }, e.exports = i, e.exports. - default = i - }, function(e, t, n) { - "use strict"; - t.__esModule = !0; - var r = n(0), - o = function(e) { - return e && e.__esModule ? e : { - default: - e - } - }(r), - i = !1; - t. - default = function(e, t) { - if ("AV" in window) { - var n = window.AV.version || window.AV.VERSION; - parseInt(n.split(".")[0]) > 2 ? i = !! AV.applicationId && !! AV.applicationKey : o. - default.deleteInWin("AV", 0) - } - i ? t && t() : o. - default.sdkLoader("//cdn.jsdelivr.net/npm/leancloud-storage@3/dist/av-min.js", "AV", function(n) { - var r = "https://", - o = "", - a = e.app_id || e.appId, - s = e.app_key || e.appKey; - if (!e.serverURLs) switch (a.slice(-9)) { - case "-9Nh9j0Va": - r += "tab."; - break; - case "-MdYXbMMI": - r += "us." - } - o = e.serverURLs || r + "avoscloud.com", AV.init({ - appId: a, - appKey: s, - serverURLs: o - }), i = !0, t && t() - }) - } - }, function(e, t, n) { - "use strict"; - - function r(e) { - return e && e.__esModule ? e : { - default: - e - } - } - t.__esModule = !0; - var o = n(37), - i = r(o), - a = n(56), - s = r(a), - l = n(57), - c = r(l), - u = n(54), - d = r(u), - p = n(55), - f = r(p), - h = { - zh: s. - default, - "zh-cn": - s. - default, - "zh-CN": - s. - default, - "zh-TW": - c. - default, - en: - d. - default, - "en-US": - d. - default, - ja: - f. - default, - "ja-JP": - f. - default - }; - t. - default = function(e, t) { - return !h[e] && e && t && (h[e] = t), new i. - default ({ - phrases: h[e || "zh"], - locale: e - }) - } - }, function(e, t, n) { - "use strict"; - t.__esModule = !0, t. - default = function(e, t) { - if (e.$el && e.$loading.hide().$nodata.hide(), "[object Error]" === {}.toString.call(t)) { - var n = t.code || t.message || t.error || ""; - if (isNaN(n)) e.$el && e.$nodata.show('
' + JSON.stringify(t) + ""); - else { - var r = e.i18n.t("code-" + n), - o = (r == "code-" + n ? void 0 : r) || t.message || t.error || ""; - 101 == n || -1 == n ? e.$nodata.show() : e.$el && e.$nodata.show('
Code ' + n + ": " + o + "") - } - } else e.$el && e.$nodata.show('
' + JSON.stringify(t) + "") - } - }, function(e, t, n) { - "use strict"; - - function r(e) { - return e && e.__esModule ? e : { - default: - e - } - } - t.__esModule = !0; - var o = n(36), - i = r(o), - a = n(0), - s = r(a), - l = n(6), - c = r(l), - u = n(33), - d = new o.Renderer; - d.code = function(e, t) { - return '
' + (!t || !hljs.getLanguage(t) ? s.
- default.escape(e):
- hljs.highlight(t, e).value) + "
"
- }, i.
- default.setOptions({
- renderer: "hljs" in window ? d : new o.Renderer,
- highlight: function(e, t) {
- return "hljs" in window ? t && hljs.getLanguage(t) && hljs.highlight(t, e, !0).value || hljs.highlightAuto(e).value : u(e)
- },
- gfm: !0,
- tables: !0,
- breaks: !0,
- pedantic: !1,
- sanitize: !0,
- smartLists: !0,
- smartypants: !0,
- headerPrefi: "v-"
- }), t.
- default = function(e) {
- return c.
- default.parse((0, i.
- default)(e))
- }
- }, function(e, t, n) {
- "use strict";
- t.__esModule = !0, t.recordIPFn = t.fetchQQFn = void 0;
- var r = n(0),
- o = function(e) {
- return e && e.__esModule ? e : {
- default:
- e
- }
- }(r),
- i = n(2),
- a = function(e, t) {
- var n = o.
- default.store.get(i.QQCacheKey);
- n && n.qq == e ? t && t(n):
- o.
- default.ajax({
- type: "POST",
- url: "//valine.api.ioliu.cn/getqqinfo",
- data: {
- qq: e
- },
- success: function(e) {
- e.errmsg || (o.
- default.store.set(i.QQCacheKey, e), t && t(e))
- }
- })
- },
- s = function(e) {
- o.
- default.sdkLoader("//api.ip.sb/jsonip?callback=getIP", "getIP"), window.getIP = function(t) {
- e && e(t.ip), o.
- default.deleteInWin("getIP")
- }
- };
- t.fetchQQFn = a, t.recordIPFn = s
- }, function(e, t, n) {
- "use strict";
- var r = function(e, t) {
- if (!e) return "";
- try {
- var n = i(e).getTime(),
- r = (new Date).getTime(),
- a = r - n,
- s = Math.floor(a / 864e5);
- if (0 === s) {
- var l = a % 864e5,
- c = Math.floor(l / 36e5);
- if (0 === c) {
- var u = l % 36e5,
- d = Math.floor(u / 6e4);
- if (0 === d) {
- var p = u % 6e4;
- return Math.round(p / 1e3) + " " + t.t("seconds")
- }
- return d + " " + t.t("minutes")
- }
- return c + " " + t.t("hours")
- }
- return s < 0 ? t.t("now") : s < 8 ? s + " " + t.t("days") : o(e)
- } catch (e) {}
- },
- o = function(e) {
- var t = a(e.getDate(), 2),
- n = a(e.getMonth() + 1, 2);
- return a(e.getFullYear(), 2) + "-" + n + "-" + t
- },
- i = function e(t) {
- return t instanceof Date ? t : !isNaN(t) || /^\d+$/.test(t) ? new Date(parseInt(t)) : /GMT/.test(t || "") ? e(new Date(t).getTime()) : (t = (t || "").replace(/(^\s*)|(\s*$)/g, "").replace(/\.\d+/, "").replace(/-/, "/").replace(/-/, "/").replace(/(\d)T(\d)/, "$1 $2").replace(/Z/, " UTC").replace(/([+-]\d\d):?(\d\d)/, " $1$2"), new Date(t))
- },
- a = function(e, t) {
- for (var n = e.toString(); n.length < t;) n = "0" + n;
- return n
- };
- e.exports = r
- }, function(e, t, n) {
- "use strict";
- t.__esModule = !0;
- var r = n(51),
- o = function(e) {
- return e && e.__esModule ? e : {
- default:
- e
- }
- }(r);
- t.
- default = function(e) {
- return (0, o.
- default)(e, {
- onTagAttr: function(e, t, n, r) {
- return i(e, t, n, r)
- },
- onIgnoreTagAttr: function(e, t, n, r) {
- return i(e, t, n, r)
- }
- }).replace(/\<\/?div\>/gi, "")
- };
- var i = function(e, t, n, r) {
- if (/code|pre|span/gi.test(e)) {
- if ("style" == t) return t + '="' + (/^color/gi.test(n) ? n : "").replace(/(color:[#0-9a-fA-F]{1,6};?).+/gi, "$1") + '"';
- if ("class" == t) return t + "='" + o.
- default.escapeAttrValue(n) + "'"
- }
- if ("img" === e && ["src", "class"].indexOf(t) > -1) return t + '="' + o.
- default.escapeAttrValue(n) + '" referrerPolicy="no-referrer" '
- }
- }, function(e, t, n) {
- var r;
- !
- function(o) {
- "use strict";
-
- function i(e, t) {
- var n = (65535 & e) + (65535 & t);
- return (e >> 16) + (t >> 16) + (n >> 16) << 16 | 65535 & n
- }
- function a(e, t) {
- return e << t | e >>> 32 - t
- }
- function s(e, t, n, r, o, s) {
- return i(a(i(i(t, e), i(r, s)), o), n)
- }
- function l(e, t, n, r, o, i, a) {
- return s(t & n | ~t & r, e, t, o, i, a)
- }
- function c(e, t, n, r, o, i, a) {
- return s(t & r | n & ~r, e, t, o, i, a)
- }
- function u(e, t, n, r, o, i, a) {
- return s(t ^ n ^ r, e, t, o, i, a)
- }
- function d(e, t, n, r, o, i, a) {
- return s(n ^ (t | ~r), e, t, o, i, a)
- }
- function p(e, t) {
- e[t >> 5] |= 128 << t % 32, e[14 + (t + 64 >>> 9 << 4)] = t;
- var n, r, o, a, s, p = 1732584193,
- f = -271733879,
- h = -1732584194,
- v = 271733878;
- for (n = 0; n < e.length; n += 16) r = p, o = f, a = h, s = v, p = l(p, f, h, v, e[n], 7, -680876936), v = l(v, p, f, h, e[n + 1], 12, -389564586), h = l(h, v, p, f, e[n + 2], 17, 606105819), f = l(f, h, v, p, e[n + 3], 22, -1044525330), p = l(p, f, h, v, e[n + 4], 7, -176418897), v = l(v, p, f, h, e[n + 5], 12, 1200080426), h = l(h, v, p, f, e[n + 6], 17, -1473231341), f = l(f, h, v, p, e[n + 7], 22, -45705983), p = l(p, f, h, v, e[n + 8], 7, 1770035416), v = l(v, p, f, h, e[n + 9], 12, -1958414417), h = l(h, v, p, f, e[n + 10], 17, -42063), f = l(f, h, v, p, e[n + 11], 22, -1990404162), p = l(p, f, h, v, e[n + 12], 7, 1804603682), v = l(v, p, f, h, e[n + 13], 12, -40341101), h = l(h, v, p, f, e[n + 14], 17, -1502002290), f = l(f, h, v, p, e[n + 15], 22, 1236535329), p = c(p, f, h, v, e[n + 1], 5, -165796510), v = c(v, p, f, h, e[n + 6], 9, -1069501632), h = c(h, v, p, f, e[n + 11], 14, 643717713), f = c(f, h, v, p, e[n], 20, -373897302), p = c(p, f, h, v, e[n + 5], 5, -701558691), v = c(v, p, f, h, e[n + 10], 9, 38016083), h = c(h, v, p, f, e[n + 15], 14, -660478335), f = c(f, h, v, p, e[n + 4], 20, -405537848), p = c(p, f, h, v, e[n + 9], 5, 568446438), v = c(v, p, f, h, e[n + 14], 9, -1019803690), h = c(h, v, p, f, e[n + 3], 14, -187363961), f = c(f, h, v, p, e[n + 8], 20, 1163531501), p = c(p, f, h, v, e[n + 13], 5, -1444681467), v = c(v, p, f, h, e[n + 2], 9, -51403784), h = c(h, v, p, f, e[n + 7], 14, 1735328473), f = c(f, h, v, p, e[n + 12], 20, -1926607734), p = u(p, f, h, v, e[n + 5], 4, -378558), v = u(v, p, f, h, e[n + 8], 11, -2022574463), h = u(h, v, p, f, e[n + 11], 16, 1839030562), f = u(f, h, v, p, e[n + 14], 23, -35309556), p = u(p, f, h, v, e[n + 1], 4, -1530992060), v = u(v, p, f, h, e[n + 4], 11, 1272893353), h = u(h, v, p, f, e[n + 7], 16, -155497632), f = u(f, h, v, p, e[n + 10], 23, -1094730640), p = u(p, f, h, v, e[n + 13], 4, 681279174), v = u(v, p, f, h, e[n], 11, -358537222), h = u(h, v, p, f, e[n + 3], 16, -722521979), f = u(f, h, v, p, e[n + 6], 23, 76029189), p = u(p, f, h, v, e[n + 9], 4, -640364487), v = u(v, p, f, h, e[n + 12], 11, -421815835), h = u(h, v, p, f, e[n + 15], 16, 530742520), f = u(f, h, v, p, e[n + 2], 23, -995338651), p = d(p, f, h, v, e[n], 6, -198630844), v = d(v, p, f, h, e[n + 7], 10, 1126891415), h = d(h, v, p, f, e[n + 14], 15, -1416354905), f = d(f, h, v, p, e[n + 5], 21, -57434055), p = d(p, f, h, v, e[n + 12], 6, 1700485571), v = d(v, p, f, h, e[n + 3], 10, -1894986606), h = d(h, v, p, f, e[n + 10], 15, -1051523), f = d(f, h, v, p, e[n + 1], 21, -2054922799), p = d(p, f, h, v, e[n + 8], 6, 1873313359), v = d(v, p, f, h, e[n + 15], 10, -30611744), h = d(h, v, p, f, e[n + 6], 15, -1560198380), f = d(f, h, v, p, e[n + 13], 21, 1309151649), p = d(p, f, h, v, e[n + 4], 6, -145523070), v = d(v, p, f, h, e[n + 11], 10, -1120210379), h = d(h, v, p, f, e[n + 2], 15, 718787259), f = d(f, h, v, p, e[n + 9], 21, -343485551), p = i(p, r), f = i(f, o), h = i(h, a), v = i(v, s);
- return [p, f, h, v]
- }
- function f(e) {
- var t, n = "",
- r = 32 * e.length;
- for (t = 0; t < r; t += 8) n += String.fromCharCode(e[t >> 5] >>> t % 32 & 255);
- return n
- }
- function h(e) {
- var t, n = [];
- for (n[(e.length >> 2) - 1] = void 0, t = 0; t < n.length; t += 1) n[t] = 0;
- var r = 8 * e.length;
- for (t = 0; t < r; t += 8) n[t >> 5] |= (255 & e.charCodeAt(t / 8)) << t % 32;
- return n
- }
- function v(e) {
- return f(p(h(e), 8 * e.length))
- }
- function g(e, t) {
- var n, r, o = h(e),
- i = [],
- a = [];
- for (i[15] = a[15] = void 0, o.length > 16 && (o = p(o, 8 * e.length)), n = 0; n < 16; n += 1) i[n] = 909522486 ^ o[n], a[n] = 1549556828 ^ o[n];
- return r = p(i.concat(h(t)), 512 + 8 * t.length), f(p(a.concat(r), 640))
- }
- function m(e) {
- var t, n, r = "0123456789abcdef",
- o = "";
- for (n = 0; n < e.length; n += 1) t = e.charCodeAt(n), o += r.charAt(t >>> 4 & 15) + r.charAt(15 & t);
- return o
- }
- function y(e) {
- return unescape(encodeURIComponent(e))
- }
- function b(e) {
- return v(y(e))
- }
- function w(e) {
- return m(b(e))
- }
- function x(e, t) {
- return g(y(e), y(t))
- }
- function k(e, t) {
- return m(x(e, t))
- }
- function _(e, t, n) {
- return t ? n ? x(t, e) : k(t, e) : n ? b(e) : w(e)
- }
- void 0 !== (r = function() {
- return _
- }.call(t, n, t, e)) && (e.exports = r)
- }()
- }, function(e, t, n) {
- "use strict";
- t.__esModule = !0;
- var r = function(e) {
- e = e || navigator.userAgent;
- var t = {},
- n = {
- Trident: e.indexOf("Trident") > -1 || e.indexOf("NET CLR") > -1,
- Presto: e.indexOf("Presto") > -1,
- WebKit: e.indexOf("AppleWebKit") > -1,
- Gecko: e.indexOf("Gecko/") > -1,
- Safari: e.indexOf("Safari") > -1,
- Edge: e.indexOf("Edge") > -1 || e.indexOf("Edg") > -1,
- Chrome: e.indexOf("Chrome") > -1 || e.indexOf("CriOS") > -1,
- IE: e.indexOf("MSIE") > -1 || e.indexOf("Trident") > -1,
- Firefox: e.indexOf("Firefox") > -1 || e.indexOf("FxiOS") > -1,
- "Firefox Focus": e.indexOf("Focus") > -1,
- Chromium: e.indexOf("Chromium") > -1,
- Opera: e.indexOf("Opera") > -1 || e.indexOf("OPR") > -1,
- Vivaldi: e.indexOf("Vivaldi") > -1,
- Yandex: e.indexOf("YaBrowser") > -1,
- Kindle: e.indexOf("Kindle") > -1 || e.indexOf("Silk/") > -1,
- 360: e.indexOf("360EE") > -1 || e.indexOf("360SE") > -1,
- UC: e.indexOf("UC") > -1 || e.indexOf(" UBrowser") > -1,
- QQBrowser: e.indexOf("QQBrowser") > -1,
- QQ: e.indexOf("QQ/") > -1,
- Baidu: e.indexOf("Baidu") > -1 || e.indexOf("BIDUBrowser") > -1,
- Maxthon: e.indexOf("Maxthon") > -1,
- Sogou: e.indexOf("MetaSr") > -1 || e.indexOf("Sogou") > -1,
- LBBROWSER: e.indexOf("LBBROWSER") > -1,
- "2345Explorer": e.indexOf("2345Explorer") > -1,
- TheWorld: e.indexOf("TheWorld") > -1,
- XiaoMi: e.indexOf("MiuiBrowser") > -1,
- Quark: e.indexOf("Quark") > -1,
- Qiyu: e.indexOf("Qiyu") > -1,
- Wechat: e.indexOf("MicroMessenger") > -1,
- Taobao: e.indexOf("AliApp(TB") > -1,
- Alipay: e.indexOf("AliApp(AP") > -1,
- Weibo: e.indexOf("Weibo") > -1,
- Douban: e.indexOf("com.douban.frodo") > -1,
- Suning: e.indexOf("SNEBUY-APP") > -1,
- iQiYi: e.indexOf("IqiyiApp") > -1,
- Windows: e.indexOf("Windows") > -1,
- Linux: e.indexOf("Linux") > -1 || e.indexOf("X11") > -1,
- macOS: e.indexOf("Macintosh") > -1,
- Android: e.indexOf("Android") > -1 || e.indexOf("Adr") > -1,
- Ubuntu: e.indexOf("Ubuntu") > -1,
- FreeBSD: e.indexOf("FreeBSD") > -1,
- Debian: e.indexOf("Debian") > -1,
- "Windows Phone": e.indexOf("IEMobile") > -1 || e.indexOf("Windows Phone") > -1,
- BlackBerry: e.indexOf("BlackBerry") > -1 || e.indexOf("RIM") > -1 || e.indexOf("BB10") > -1,
- MeeGo: e.indexOf("MeeGo") > -1,
- Symbian: e.indexOf("Symbian") > -1,
- iOS: e.indexOf("like Mac OS X") > -1,
- "Chrome OS": e.indexOf("CrOS") > -1,
- WebOS: e.indexOf("hpwOS") > -1,
- Mobile: e.indexOf("Mobi") > -1 || e.indexOf("iPh") > -1 || e.indexOf("480") > -1,
- Tablet: e.indexOf("Tablet") > -1 || e.indexOf("Pad") > -1 || e.indexOf("Nexus 7") > -1
- };
- n.Mobile && (n.Mobile = !(e.indexOf("iPad") > -1));
- var r = {
- browser: ["Safari", "Chrome", "Edge", "IE", "Firefox", "Firefox Focus", "Chromium", "Opera", "Vivaldi", "Yandex", "Kindle", "360", "UC", "QQBrowser", "QQ", "Baidu", "Maxthon", "Sogou", "LBBROWSER", "2345Explorer", "TheWorld", "XiaoMi", "Quark", "Qiyu", "Wechat", "Taobao", "Alipay", "Weibo", "Douban", "Suning", "iQiYi"],
- os: ["Windows", "Linux", "Mac OS", "macOS", "Android", "Ubuntu", "FreeBSD", "Debian", "iOS", "Windows Phone", "BlackBerry", "MeeGo", "Symbian", "Chrome OS", "WebOS"]
- };
- for (var o in r) if (r.hasOwnProperty(o)) for (var i = 0, a = r[o].length; i < a; i++) {
- var s = r[o][i];
- n[s] && (t[o] = s)
- }
- var l = {
- Windows: function() {
- var t = e.replace(/^.*Windows NT ([\d.]+).*$/, "$1");
- return {
- 6.4: "10",
- 6.3: "8.1",
- 6.2: "8",
- 6.1: "7",
- "6.0": "Vista",
- 5.2: "XP",
- 5.1: "XP",
- "5.0": "2000"
- }[t] || t
- },
- Android: e.replace(/^.*Android ([\d.]+);.*$/, "$1"),
- iOS: e.replace(/^.*OS ([\d_]+) like.*$/, "$1").replace(/_/g, "."),
- Debian: e.replace(/^.*Debian\/([\d.]+).*$/, "$1"),
- "Windows Phone": e.replace(/^.*Windows Phone( OS)? ([\d.]+);.*$/, "$2"),
- macOS: e.replace(/^.*Mac OS X ([\d_]+).*$/, "$1").replace(/_/g, "."),
- WebOS: e.replace(/^.*hpwOS\/([\d.]+);.*$/, "$1"),
- BlackBerry: e.replace(/^.*BB([\d.]+);*$/, "$1")
- };
- t.osVersion = "";
- var c = l[t.os];
- c && (t.osVersion = "function" == typeof c ? c() : c == e ? "" : c);
- var u = {
- Safari: e.replace(/^.*Version\/([\d.]+).*$/, "$1"),
- Chrome: e.replace(/^.*Chrome\/([\d.]+).*$/, "$1").replace(/^.*CriOS\/([\d.]+).*$/, "$1"),
- IE: e.replace(/^.*MSIE ([\d.]+).*$/, "$1").replace(/^.*rv:([\d.]+).*$/, "$1"),
- Edge: e.replace(/^.*Edge?\/([\d.]+).*$/, "$1"),
- Firefox: e.replace(/^.*Firefox\/([\d.]+).*$/, "$1").replace(/^.*FxiOS\/([\d.]+).*$/, "$1"),
- "Firefox Focus": e.replace(/^.*Focus\/([\d.]+).*$/, "$1"),
- Chromium: e.replace(/^.*Chromium\/([\d.]+).*$/, "$1"),
- Opera: e.replace(/^.*Opera\/([\d.]+).*$/, "$1").replace(/^.*OPR\/([\d.]+).*$/, "$1"),
- Vivaldi: e.replace(/^.*Vivaldi\/([\d.]+).*$/, "$1"),
- Yandex: e.replace(/^.*YaBrowser\/([\d.]+).*$/, "$1"),
- Kindle: e.replace(/^.*Version\/([\d.]+).*$/, "$1"),
- Maxthon: e.replace(/^.*Maxthon\/([\d.]+).*$/, "$1"),
- QQBrowser: e.replace(/^.*QQBrowser\/([\d.]+).*$/, "$1"),
- QQ: e.replace(/^.*QQ\/([\d.]+).*$/, "$1"),
- Baidu: e.replace(/^.*BIDUBrowser[\s\/]([\d.]+).*$/, "$1"),
- UC: e.replace(/^.*UC?Browser\/([\d.]+).*$/, "$1"),
- Sogou: e.replace(/^.*SE ([\d.X]+).*$/, "$1").replace(/^.*SogouMobileBrowser\/([\d.]+).*$/, "$1"),
- "2345Explorer": e.replace(/^.*2345Explorer\/([\d.]+).*$/, "$1"),
- TheWorld: e.replace(/^.*TheWorld ([\d.]+).*$/, "$1"),
- XiaoMi: e.replace(/^.*MiuiBrowser\/([\d.]+).*$/, "$1"),
- Quark: e.replace(/^.*Quark\/([\d.]+).*$/, "$1"),
- Qiyu: e.replace(/^.*Qiyu\/([\d.]+).*$/, "$1"),
- Wechat: e.replace(/^.*MicroMessenger\/([\d.]+).*$/, "$1"),
- Taobao: e.replace(/^.*AliApp\(TB\/([\d.]+).*$/, "$1"),
- Alipay: e.replace(/^.*AliApp\(AP\/([\d.]+).*$/, "$1"),
- Weibo: e.replace(/^.*weibo__([\d.]+).*$/, "$1"),
- Douban: e.replace(/^.*com.douban.frodo\/([\d.]+).*$/, "$1"),
- Suning: e.replace(/^.*SNEBUY-APP([\d.]+).*$/, "$1"),
- iQiYi: e.replace(/^.*IqiyiVersion\/([\d.]+).*$/, "$1")
- };
- t.version = "";
- var d = u[t.browser];
- return d && (t.version = "function" == typeof d ? d() : d == e ? "" : d), void 0 == t.browser && (t.browser = "Unknow App"), t
- };
- t.
- default = r
- }, function(e, t, n) {
- var r, o;
- !
- function(n, i) {
- var i = function(e, t, n) {
- function r(o, i, a) {
- return a = Object.create(r.fn), o && a.push.apply(a, o[t] ? [o] : "" + o === o ? /= 3 && (i = n), "[object Array]" === o.call(e) ? a(e, t, i) : "string" == typeof e ? s(e, t, i) : l(e, t, i)
- };
- e.exports = c
- }, function(e, t, n) {
- "use strict";
- var r = Array.prototype.slice,
- o = Object.prototype.toString;
- e.exports = function(e) {
- var t = this;
- if ("function" != typeof t || "[object Function]" !== o.call(t)) throw new TypeError("Function.prototype.bind called on incompatible " + t);
- for (var n, i = r.call(arguments, 1), a = function() {
- if (this instanceof n) {
- var o = t.apply(this, i.concat(r.call(arguments)));
- return Object(o) === o ? o : this
- }
- return t.apply(e, i.concat(r.call(arguments)))
- }, s = Math.max(0, t.length - i.length), l = [], c = 0; c < s; c++) l.push("$" + c);
- if (n = Function("binder", "return function (" + l.join(",") + "){ return binder.apply(this,arguments); }")(a), t.prototype) {
- var u = function() {};
- u.prototype = t.prototype, n.prototype = new u, u.prototype = null
- }
- return n
- }
- }, function(e, t, n) {
- !
- function(t, n) {
- e.exports = n()
- }(0, function() {
- "use strict";
-
- function e(e) {
- return '' + e + ""
- }
- var t = function(e, t) {
- return t = {
- exports: {}
- }, e(t, t.exports), t.exports
- }(function(e) {
- var t = e.exports = function() {
- return new RegExp("(?:" + t.line().source + ")|(?:" + t.block().source + ")", "gm")
- };
- t.line = function() {
- return /(?:^|\s)\/\/(.+?)$/gm
- }, t.block = function() {
- return /\/\*([\S\s]*?)\*\//gm
- }
- }),
- n = ["23AC69", "91C132", "F19726", "E8552D", "1AAB8E", "E1147F", "2980C1", "1BA1E6", "9FA0A0", "F19726", "E30B20", "E30B20", "A3338B"];
- return function(r, o) {
- void 0 === o && (o = {});
- var i = o.colors;
- void 0 === i && (i = n);
- var a = 0,
- s = {},
- l = /[一-鿿㐀-䶿豈--ゟ가-Ѐ-ӿ]+|\w+/,
- c = /,
- u = new RegExp("(" + l.source + "|" + c.source + ")|(" + t().source + ")", "gmi");
- return r.replace(u, function(t, n, r) {
- if (r) return e(r);
- if ("<" === n) return "<";
- var o;
- s[n] ? o = s[n] : (o = i[a], s[n] = o);
- var l = '' + n + "";
- return a = ++a % i.length, l
- })
- }
- })
- }, function(e, t, n) {
- "use strict";
- var r = n(4);
- e.exports = r.call(Function.call, Object.prototype.hasOwnProperty)
- }, function(e, t, n) {
- "use strict";
- var r = Function.prototype.toString,
- o = /^\s*class\b/,
- i = function(e) {
- try {
- var t = r.call(e);
- return o.test(t)
- } catch (e) {
- return !1
- }
- },
- a = function(e) {
- try {
- return !i(e) && (r.call(e), !0)
- } catch (e) {
- return !1
- }
- },
- s = Object.prototype.toString,
- l = "function" == typeof Symbol && "symbol" == typeof Symbol.toStringTag;
- e.exports = function(e) {
- if (!e) return !1;
- if ("function" != typeof e && "object" != typeof e) return !1;
- if ("function" == typeof e && !e.prototype) return !0;
- if (l) return a(e);
- if (i(e)) return !1;
- var t = s.call(e);
- return "[object Function]" === t || "[object GeneratorFunction]" === t
- }
- }, function(e, t, n) {
- (function(t) {
- !
- function(t) {
- "use strict";
-
- function n(e) {
- this.tokens = [], this.tokens.links = {}, this.options = e || h.defaults, this.rules = v.normal, this.options.pedantic ? this.rules = v.pedantic : this.options.gfm && (this.options.tables ? this.rules = v.tables : this.rules = v.gfm)
- }
- function r(e, t) {
- if (this.options = t || h.defaults, this.links = e, this.rules = g.normal, this.renderer = this.options.renderer || new o, this.renderer.options = this.options, !this.links) throw new Error("Tokens array requires a `links` property.");
- this.options.pedantic ? this.rules = g.pedantic : this.options.gfm && (this.options.breaks ? this.rules = g.breaks : this.rules = g.gfm)
- }
- function o(e) {
- this.options = e || h.defaults
- }
- function i() {}
- function a(e) {
- this.tokens = [], this.token = null, this.options = e || h.defaults, this.options.renderer = this.options.renderer || new o, this.renderer = this.options.renderer, this.renderer.options = this.options
- }
- function s(e, t) {
- return e.replace(t ? /&/g : /&(?!#?\w+;)/g, "&").replace(//g, ">").replace(/"/g, """).replace(/'/g, "'")
- }
- function l(e) {
- return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi, function(e, t) {
- return t = t.toLowerCase(), "colon" === t ? ":" : "#" === t.charAt(0) ? "x" === t.charAt(1) ? String.fromCharCode(parseInt(t.substring(2), 16)) : String.fromCharCode(+t.substring(1)) : ""
- })
- }
- function c(e, t) {
- return e = e.source || e, t = t || "", {
- replace: function(t, n) {
- return n = n.source || n, n = n.replace(/(^|[^\[])\^/g, "$1"), e = e.replace(t, n), this
- },
- getRegex: function() {
- return new RegExp(e, t)
- }
- }
- }
- function u(e, t) {
- return m[" " + e] || (/^[^:]+:\/*[^/]*$/.test(e) ? m[" " + e] = e + "/" : m[" " + e] = e.replace(/[^/]*$/, "")), e = m[" " + e], "//" === t.slice(0, 2) ? e.replace(/:[\s\S]*/, ":") + t : "/" === t.charAt(0) ? e.replace(/(:\/*[^/]*)[\s\S]*/, "$1") + t : e + t
- }
- function d() {}
- function p(e) {
- for (var t, n, r = 1; r < arguments.length; r++) {
- t = arguments[r];
- for (n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
- }
- return e
- }
- function f(e, t) {
- var n = e.replace(/([^\\])\|/g, "$1 |").split(/ +\| */),
- r = 0;
- if (n.length > t) n.splice(t);
- else for (; n.length < t;) n.push("");
- for (; r < n.length; r++) n[r] = n[r].replace(/\\\|/g, "|");
- return n
- }
- function h(e, t, r) {
- if (void 0 === e || null === e) throw new Error("marked(): input parameter is undefined or null");
- if ("string" != typeof e) throw new Error("marked(): input parameter is of type " + Object.prototype.toString.call(e) + ", string expected");
- if (r || "function" == typeof t) {
- r || (r = t, t = null), t = p({}, h.defaults, t || {});
- var o, i, l = t.highlight,
- c = 0;
- try {
- o = n.lex(e, t)
- } catch (e) {
- return r(e)
- }
- i = o.length;
- var u = function(e) {
- if (e) return t.highlight = l, r(e);
- var n;
- try {
- n = a.parse(o, t)
- } catch (t) {
- e = t
- }
- return t.highlight = l, e ? r(e) : r(null, n)
- };
- if (!l || l.length < 3) return u();
- if (delete t.highlight, !i) return u();
- for (; c < o.length; c++)!
- function(e) {
- "code" !== e.type ? --i || u() : l(e.text, e.lang, function(t, n) {
- return t ? u(t) : null == n || n === e.text ? --i || u() : (e.text = n, e.escaped = !0, void(--i || u()))
- })
- }(o[c])
- } else try {
- return t && (t = p({}, h.defaults, t)), a.parse(n.lex(e, t), t)
- } catch (e) {
- if (e.message += "\nPlease report this to https://github.com/markedjs/marked.", (t || h.defaults).silent) return "An error occurred:
" + s(e.message + "", !0) + ""; - throw e - } - } - var v = { - newline: /^\n+/, - code: /^( {4}[^\n]+\n*)+/, - fences: d, - hr: /^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/, - heading: /^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/, - nptable: d, - blockquote: /^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/, - list: /^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/, - html: "^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=\\h*\\n)[\\s\\S]*?(?:\\n{2,}|$)|(?!script|pre|style)[a-z][\\w-]*\\s*>(?=\\h*\\n)[\\s\\S]*?(?:\\n{2,}|$))", - def: /^ {0,3}\[(label)\]: *\n? *([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/, - table: d, - lheading: /^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/, - paragraph: /^([^\n]+(?:\n(?!hr|heading|lheading| {0,3}>|<\/?(?:tag)(?: +|\n|\/?>)|<(?:script|pre|style|!--))[^\n]+)*)/, - text: /^[^\n]+/ - }; - v._label = /(?!\s*\])(?:\\[\[\]]|[^\[\]])+/, v._title = /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/, v.def = c(v.def).replace("label", v._label).replace("title", v._title).getRegex(), v.bullet = /(?:[*+-]|\d+\.)/, v.item = /^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/, v.item = c(v.item, "gm").replace(/bull/g, v.bullet).getRegex(), v.list = c(v.list).replace(/bull/g, v.bullet).replace("hr", "\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def", "\\n+(?=" + v.def.source + ")").getRegex(), v._tag = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", v._comment = //, v.html = c(v.html, "i").replace("comment", v._comment).replace("tag", v._tag).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), v.paragraph = c(v.paragraph).replace("hr", v.hr).replace("heading", v.heading).replace("lheading", v.lheading).replace("tag", v._tag).getRegex(), v.blockquote = c(v.blockquote).replace("paragraph", v.paragraph).getRegex(), v.normal = p({}, v), v.gfm = p({}, v.normal, { - fences: /^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\n? *\1 *(?:\n+|$)/, - paragraph: /^/, - heading: /^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/ - }), v.gfm.paragraph = c(v.paragraph).replace("(?!", "(?!" + v.gfm.fences.source.replace("\\1", "\\2") + "|" + v.list.source.replace("\\1", "\\3") + "|").getRegex(), v.tables = p({}, v.gfm, { - nptable: /^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/, - table: /^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/ - }), v.pedantic = p({}, v.normal, { - html: c("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|
' + (n ? e : s(e, !0)) + "
\n" : "" + (n ? e : s(e, !0)) + "
"
- }, o.prototype.blockquote = function(e) {
- return "\n" + e + "\n" - }, o.prototype.html = function(e) { - return e - }, o.prototype.heading = function(e, t, n) { - return this.options.headerIds ? "
" + e + "
\n" - }, o.prototype.table = function(e, t) { - return t && (t = "" + t + ""), "" + e + "
"
- }, o.prototype.br = function() {
- return this.options.xhtml ? "