/*!
* Valine v1.3.10 * (c) 2017-2019 xCss * Released under the GPL-2.0 License. * Last Update: 2019-08-29 10:10:02 */
!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®{if(n)return n.exports;var i=n={i:r,l:!1,exports:{}};return e.call(i.exports,i,i.exports,t),i.l=!0,i.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=17)}([function(e,t,n){var r,i,o;/*!
autosize 4.0.2 license: MIT http://www.jacklmoore.com/autosize
*/ !function(n,a){i=[e,t],r=a,void 0!==(o=“function”==typeof r?r.apply(t,i):r)&&(e.exports=o)}(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 i(){r();var n=Math.round(parseFloat(e.style.height)),i=window.getComputedStyle(e,null),o=“content-box”===i.boxSizing?Math.round(parseFloat(i.height)):e.offsetHeight;if(o ”,’ 1 ‘+t.locale.tips.comments,C(e,u.find(t.el,”.vlist“));v.mail&&F({username:v.nick,mail:v.mail}),R.at&&R.rmail&&t.notify&&V({username:R.at.replace(”@“,”“),mail:R.rmail}),u.removeAttr(P,”disabled“),t.loading.hide(),B()}catch(e){t.ErrorHandler(e)}}).catch(function(e){t.ErrorHandler(e)})},Q=function e(n){var r=Math.floor(10*Math.random()+1),i=Math.floor(10*Math.random()+1),o=Math.floor(10*Math.random()+1),a=[”+“,”-“,”x“],s=a[Math.floor(3*Math.random())],l=a[Math.floor(3*Math.random())],c=”“+r+s+i+l+o,d=c+” = “;t.alert.show({type:1,text:d,ctxt:t.locale.ctrl.cancel,otxt:t.locale.ctrl.ok,cb:function(){var r=+u.find(t.el,”.vcode“).value;new Function(”return “+c.replace(/x/g,”*“))()===r?n&&n():t.alert.show({type:1,text:”(T_T)“+t.locale.tips.again,ctxt:t.locale.ctrl.cancel,otxt:t.locale.ctrl.try,cb:function(){e(n)}})}})},F=function(e){var t=new AV.User;return t.setUsername(e.username),t.setPassword(e.mail),t.setEmail(e.mail),t.setACL(I()),t.signUp()},V=function e(n){AV.User.requestPasswordReset(n.mail).then(function(e){}).catch(function®{1==r.code?t.alert.show({type:0,text:”ヾ(o・ω・)ノ At太频繁啦,提醒功能暂时宕机。r
(t&&t.type&&i),u.on(”click“,u.find(Q,”.vcancel“),function(t){e.alert.hide()}),u.attr(Q,”style“,”display:block;“),t&&t.type){var o=u.find(Q,”.vsure“);u.on(”click“,o,function(n){e.alert.hide(),t.cb&&t.cb()})}return e},hide:function(){return u.attr(Q,”style“,”display:none;“),e}},e.bind()}catch(t){e.ErrorHandler(t)}};var w=function(e,t){var n=new e,r=new AV.ACL;r.setPublicReadAccess(!0),r.setPublicWriteAccess(!0),n.setACL®,n.set(”url“,t.url),n.set(”xid“,t.xid),n.set(”title“,t.title),n.set(”time“,1),n.save().then(function(e){u.find(t.el,”.leancloud-visitors-count“).innerText=1}).catch(function(e){})},k={add:function(e){var t=u.findAll(document,”.leancloud_visitors,.leancloud-visitors“);if(t.length){var n=t[0],r=u.attr(n,”id“),i=u.attr(n,”data-flag-title“),o=encodeURI®,a={el:n,url:r,xid:o,title:i};if(decodeURI®===decodeURI(y)){var s=new AV.Query(e);s.equalTo(”url“,r),s.find().then(function(t){if(t.length>0){var r=t[0];r.increment(”time“),r.save().then(function(e){u.find(n,”.leancloud-visitors-count“).innerText=e.get(”time“)}).catch(function(e){})}else w(e,a)}).catch(function(t){101==t.code&&w(e,a)})}else k.show(e,t)}},show:function(e,t){u.each(t,function(e,t){var n=u.find(t,”.leancloud-visitors-count“);n&&(n.innerText=0)});var n=[];for(var r in t)t.hasOwnProperty®&&n.push(u.attr(t[r],”id“));if(n.length){var i=new AV.Query(e);i.containedIn(”url“,n),i.find().then(function(e){e.length>0&&u.each(e,function(e,t){var n=t.get(”url“),r=t.get(”time“),i=u.findAll(document,‘.leancloud_visitors[id=”’n
‘“],.leancloud-visitors[id=”’n
‘“]’);u.each(i,function(e,t){var n=u.find(t,”.leancloud-visitors-count“);n&&(n.innerText=r)})})}).catch(function(e){})}}};r.prototype.Q=function(e){var t=this;if(1==arguments.length){var n=new AV.Query(t.config.clazzName);n.doesNotExist(”rid“);var r=new AV.Query(t.config.clazzName);r.equalTo(”rid“,”“);var i=AV.Query.or(n,r);return”*“===e?i.exists(”url“):i.equalTo(”url“,decodeURI(e)),i.addDescending(”createdAt“),i.addDescending(”insertedAt“),i}var o=JSON.stringify(arguments[1]).replace(/([|])/g,”“),a=”select * from “t.config.clazzName
” where rid in (“o
”) order by -createdAt,-createdAt“;return AV.Query.doCloudQuery(a)},r.prototype.ErrorHandler=function(e){var t=this;if(t.el&&t.loading.hide().nodata.hide(),”[object Error]“==={}.toString.call(e)){var n=e.code||”“,r=t.locale.error[n],i=r||e.message||e.error||”“;101==n?t.nodata.show():t.el&&t.nodata.show(‘Code ’
“)||console}else t.el&&t.nodata.show(‘n
”: “i
”’+JSON.stringify(e)+”
“)||console},r.prototype.installLocale=function(e,t){var n=this;return t=t||{},e&&(g[e]=t,n.locale=g[e]||g[”zh-cn“]),n},r.prototype.setPath=function(e){return y=e||y,this},r.prototype.bind=function(e){var t=this,n=u.find(t.el,”.vemojis“),r=u.find(t.el,”.vpreview“),i=u.find(t.el,”.vemoji-btn“),o=u.find(t.el,”.vpreview-btn“),f=u.find(t.el,”.veditor“),h=p.data;for(var g in h)h.hasOwnProperty(g)&&function(e,t){var r=u.create(”i“,{name:e,title:e});r.innerHTML=t,n.appendChild®,u.on(”click“,r,function(e){E(f,t),w(f)})}(g,h[g]);t.emoji={show:function(){return t.preview.hide(),u.attr(i,”v“,1),u.removeAttr(o,”v“),u.attr(n,”style“,”display:block“),t.emoji},hide:function(){return u.removeAttr(i,”v“),u.attr(n,”style“,”display:hide“),t.emoji}},t.preview={show:function(){return v.comment&&(t.emoji.hide(),u.attr(o,”v“,1),u.removeAttr(i,”v“),r.innerHTML=v.comment,u.attr(r,”style“,”display:block“),z()),t.preview},hide:function(){return u.removeAttr(o,”v“),u.attr(r,”style“,”display:none“),t.preview},empty:function(){return r.innerHtml=”“,t.preview}};var b=function(e){var t=u.create(”div“);t.insertAdjacentHTML(”afterbegin“,e);var n=u.findAll(t,”*“),r=[”INPUT“,”STYLE“,”SCRIPT“,”IFRAME“,”FRAME“,”AUDIO“,”VIDEO“,”EMBED“,”META“,”TITLE“,”LINK“],i=function(e,t){var n=u.attr(e,t);n&&u.attr(e,t,n.replace(/(javascript|eval)/gi,”“))};return u.each(n,function(e,t){1===t.nodeType&&(r.indexOf(t.nodeName)>-1&&(”INPUT“===t.nodeName&&”checkbox“===u.attr(t,”type“)?u.attr(t,”disabled“,”disabled“):u.remove(t)),”A“===t.nodeName&&i(t,”href“),u.clearAttr(t))}),t.innerHTML},w=function(e){var t=e.value||”“;t=p.parse(t),e.value=t;var n=b(s(t));v.comment=n,r.innerHTML=n,t?l(e):l.destroy(e)};u.on(”click“,i,function(e){u.attr(i,”v“)?t.emoji.hide():t.emoji.show()}),u.on(”click“,o,function(e){u.attr(o,”v“)?t.preview.hide():t.preview.show()});for(var k=t.config.meta,_={},A={veditor:”comment“},O=0,S=k.length;Oe”‘]“),r=u.find(n,”.vquote“);return r||(r=u.create(”div“,”class“,”vquote“),n.appendChild®),r},M=function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,r=t.config.pageSize,i=Number(u.find(t.el,”.vnum“).innerText);t.loading.show();var o=t.Q(y);o.limit®,o.skip((n-1)*r),o.find().then(function(o){for(var a=o.length,s=[],l=0;l’t.locale.ctrl.more
”“:”“;var p=u.find(d,”.vmore“);p&&u.on(”click“,p,function(t){d.innerHTML=”“,e(++n)}),t.loading.hide()}).catch(function(e){t.loading.hide().ErrorHandler(e)})};t.Q(y).count().then(function(e){e>0?(u.attr(u.find(t.el,”.vinfo“),”style“,”display:block;“),u.find(t.el,”.vcount“).innerHTML=‘’e
” “+t.locale.tips.comments,M()):t.loading.hide()}).catch(function(e){t.ErrorHandler(e)});var C=function(e,n,r){var i=u.create(”div“,{class:”vcard“,id:e.id}),o=m.hide?”“:‘m.params)’”>‘,s=e.get(“ua”)||“”,l=“”;if(s){s=d(s);l=’‘
s.browser
“ ”s.version
“”+“ ”+(’‘s.os
“ ”s.osVersion
“”)}“*”===y&&(l=’‘+e.get(“url”)+“”);var p=“”,f=e.get(“link”)||“”;p=f?’‘+e.get(”nick“)+”“,i.innerHTML=o+’n p
” “l
’
“+r.error,ctxt:t.locale.ctrl.ok}):F(n).then(function(t){e(n)}).catch(function(e){})})};u.on(”click“,P,U),u.on(”keydown“,document,function(e){e=event||e;var t=e.keyCode||e.which||e.charCode;((e.ctrlKey||e.metaKey)&&13===t&&U(),9===t)&&(”veditor“==(document.activeElement.id||”“)&&(e.preventDefault(),E(f,” “)))})},e.exports=i,e.exports.default=i},function(e,t,n){”use strict“;var r={data:n(11),parse:function(e){return String(e).replace(/:(.+?):/g,function(e,t){return r.data[t]||e})}};e.exports=r},function(e,t,n){”use strict“;function r(e){var t=this,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,Chrome:e.indexOf(”Chrome“)>-1||e.indexOf(”CriOS“)>-1,IE:e.indexOf(”MSIE“)>-1||e.indexOf(”Trident“)>-1,Edge:e.indexOf(”Edge“)>-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,”Mac OS“: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,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={engine:[”WebKit“,”Trident“,”Gecko“,”Presto“],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“,”Android“,”Ubuntu“,”FreeBSD“,”Debian“,”iOS“,”Windows Phone“,”BlackBerry“,”MeeGo“,”Symbian“,”Chrome OS“,”WebOS“],device:[”Mobile“,”Tablet“]};t.device=”PC“;for(var i in r)for(var o=0;oo
’=“‘t[o]
-1?p.attr(e,”style“,n):p.removeAttr(e,”style“)});break;case”class“:if(”CODE“==e.nodeName)return!1;var a=r.value;a.indexOf(”at“)>-1?p.attr(e,”class“,”at“):a.indexOf(”vemoji“)>-1?p.attr(e,”class“,”vemoji“):p.removeAttr(e,”class“);break;default:if(n.indexOf(i)>-1)return!0;p.removeAttr(e,i)}}),e},remove:function(e){try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){}},each:function(e,t){var n=0,r=e.length,i=[”[object Array]“,”[object NodeList]“],o={}.toString.call(e);if(i.indexOf(o)>-1)for(;nn
“-”+t},o=function(e,t){for(var n=e.toString();n.lengthe
“”}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//*([Ss]*?)*//gm}}),n=[“23AC69”,“91C132”,“F19726”,“E8552D”,“1AAB8E”,“E1147F”,“2980C1”,“1BA1E6”,“9FA0A0”,“F19726”,“E30B20”,“E30B20”,“A3338B”];return function(r,i){void 0===i&&(i={});var o=i.colors;void 0===o&&(o=n);var a=0,s={},l=/[u4E00-u9FFFu3400-u4dbfuf900-ufaffu3040-u309fuac00-ud7afu0400-u04FF]+|w+/,c=/,d=new RegExp("("l.source
“|”c.source
“)|(”+t().source+“)”,“gmi”);return r.replace(d,function(t,n,r){if®return e®;if(“<"===n)return"<";var i;s[n]?i=s[n]:(i=o[a],s[n]=i);var l='/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 d(e,t){return m[“ ”+e]||(/^[^:]+:/*[^/]*$/.test(e)?m[“ ”+e]=e+“/”:m[“ ”+e]=e.replace(/[^/]*$/,“”)),e=m[“ ”+e],“//”===t.slice(0,2)?e.replace(/:[sS]*/,“:”)+t:“/”===t.charAt(0)?e.replace(/(:/*[^/]*)[sS]*/,“$1”)+t:e+t}function u(){}function p(e){for(var t,n,r=1;r“+s(e.message+”“,!0)+”
“;throw e}}var v={newline:/^n+/,code:/^( {4}[^n]+n*)+/,fences:u,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:* *){3,})(?:n+|$)/,heading:/^ *(#{1,6}) *([^n]+?) *(?:#+ *)?(?:n+|$)/,nptable:u,blockquote:/^( {0,3}> ?(paragraph|[^n]*)(?:n|$))+/,list:/^( *)(bull) [sS]+?(?: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:u,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=/