diff --git a/.eslintrc.js b/.eslintrc.js index 19b3377c2..47291d1c7 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -38,6 +38,10 @@ module.exports = { // 'no-unused-vars':0, // else 强制换行 - 'brace-style':0 + 'brace-style':0, + 'no-unneeded-ternary': 0, + 'quotes': 0, + 'no-useless-escape': 0, + 'no-eval': 0 } } diff --git a/LOG.md b/LOG.md index 3cad58b6b..981afba95 100644 --- a/LOG.md +++ b/LOG.md @@ -1,4 +1,5 @@ # 更新日志 +- **2.4.2** 添加图片点击预览原图、新窗口打开链接、ishljs默认值为true、开放markdown-it对象(17.11.24) - **2.4.0** 抛弃集成`hljs`,改为使用`cdnjs`外链,代码高亮方案也改为使用`cdnjs`外链(17.11.22 [CHENXCHEN](https://github.com/CHENXCHEN)) - **2.3.1** 修复帮助文档链接无法跳转问题 [#125](https://github.com/hinesboy/mavonEditor/issues/125)(17.11.14 ) - **2.3.0** 解决const关键字报错问题 (17.10.27 / [lwdgit](https://github.com/lwdgit)) diff --git a/README-EN.md b/README-EN.md index 7a13e9b96..1229bf4d6 100644 --- a/README-EN.md +++ b/README-EN.md @@ -34,17 +34,18 @@ $ npm install mavon-editor --save ``` -#### Webpack +#### Hightlight > If you do not need code highlighting, you can ignore this step Set ishljs = true ```javascript + // default value is true     ``` For optimize the size of pack, since **v2.4.0** `hightlight.js` will use `cdnjs` external link, the code highlights the file will be used to load the corresponding chain as needed. -You can dynamically change the `hljs` code color scheme, +You can dynamically change the `hljs` code color scheme, color scheme will dynamically load the corresponding `cdnjs` external link. [Option hljs color scheme](./src/lib/core/hljs/lang.hljs.css.js) and [Supported language](./src/lib/core/hljs/lang.hljs.js) is export from [highlight.js/9.12.0](https://github.com/isagalaev/highlight.js/tree/master/src) @@ -58,6 +59,7 @@ color scheme will dynamically load the corresponding `cdnjs` external link. // import with ES6 import Vue from 'vue' import mavonEditor from 'mavon-editor' + // the Object of markdown-it : mavonEditor.markdownIt import 'mavon-editor/dist/css/index.css' // use @@ -71,6 +73,7 @@ color scheme will dynamically load the corresponding `cdnjs` external link. ``` `index.html` ```html +// The same below
@@ -81,24 +84,12 @@ color scheme will dynamically load the corresponding `cdnjs` external link. ```javascript // Global Registration // require with Webpack/Node.js - var Vue = require('vue') + ... var mavonEditor = require('mavon-editor') + // the Object of markdown-it : mavonEditor.markdownIt import 'mavon-editor/dist/css/index.css' - // use - Vue.use(mavonEditor) - new Vue({ - 'el': '#main', - data() { - return { value: '' } - } - }) -``` -`index.html` -```html -
- -
+ ... ``` #### method 3 @@ -112,6 +103,7 @@ color scheme will dynamically load the corresponding `cdnjs` external link. ``` -`index.js`: -```javascript - import Vue from 'vue'; - var editor = require('./editor.vue'); - new Vue({ - el: '#main', - render: h => h(editor) - }); -``` -`index.html`: -```html -
-
-``` - #### Images Upload & Preview ```javascript @@ -232,7 +204,7 @@ exports default { - **Default size: min-height: 300px , ming-width: 300px , Can be covered** - **z-index: 1500** - **If screen resolution less than 768px ,replace【single column | double column】 edit mode to 【edit | preview】 edit mode** - +- **Just for show html of md: toolbarsFlag: false , subfield: false, default_open: "preview"** ## API ### props @@ -249,7 +221,7 @@ exports default { | code_style | String | code-github | markdown Style: default github, [option hljs color scheme](./src/lib/core/hljs/lang.hljs.css.js) | | toolbarsFlag | Boolean | true | Show toolbars | | toolbars | Object | As in the following example | toolbars | -| ishljs | Boolean | false | highlight code switch | +| ishljs | Boolean | true | highlight code switch(cdn) | ```javascript /* diff --git a/README.md b/README.md index 9f421eee9..bfdd792d6 100644 --- a/README.md +++ b/README.md @@ -35,12 +35,13 @@ $ npm install mavon-editor --save ``` -#### Webpack +#### 代码高亮 > 如不需要hightlight代码高亮显示,可以忽略此步骤 开启代码高亮props ```javascript + // ishljs默认为true     ``` @@ -58,8 +59,8 @@ $ npm install mavon-editor --save // import with ES6 import Vue from 'vue' import mavonEditor from 'mavon-editor' + // 可以通过 mavonEditor.markdownIt 获取解析器markdown-it对象 import 'mavon-editor/dist/css/index.css' - // use Vue.use(mavonEditor) new Vue({ @@ -71,6 +72,7 @@ $ npm install mavon-editor --save ``` `index.html` ```html +// 下同
@@ -81,24 +83,11 @@ $ npm install mavon-editor --save ```javascript // 全局注册 // require with Webpack/Node.js - var Vue = require('vue') + ... var mavonEditor = require('mavon-editor') + // 可以通过 mavonEditor.markdownIt 获取解析器markdown-it对象 import 'mavon-editor/dist/css/index.css' - - // use - Vue.use(mavonEditor) - new Vue({ - 'el': '#main', - data() { - return { value: '' } - } - }) -``` -`index.html` -```html -
- -
+ ... ``` #### 方法3 @@ -112,6 +101,7 @@ $ npm install mavon-editor --save ``` -`index.js`: -```javascript - import Vue from 'vue'; - var editor = require('./editor.vue'); - new Vue({ - el: '#main', - render: h => h(editor) - }); -``` -`index.html`: -```html -
-
-``` + #### Images Upload & Preview @@ -231,8 +204,7 @@ exports default { - **默认大小样式为 min-height: 300px , ming-width: 300px 可自行覆盖** - **基础z-index: 1500** - **屏幕分辨率低于768px ,自动取消【单栏 | 双栏】编辑模式 ,更改为【编辑 | 预览】切换 )** -- **快捷键的监听对象更改为编辑器自身,所以当编辑器失去焦点后,快捷键失效** - +- **仅用作展示可以设置props: toolbarsFlag: false , subfield: false, default_open: "preview"** ## API 文档 ### props @@ -249,7 +221,7 @@ exports default { | code_style | String | code-github | markdown样式: 默认github, [可选配色方案](./src/lib/core/hljs/lang.hljs.css.js) | | toolbarsFlag | Boolean | true | 工具栏是否显示 | | toolbars | Object | 如下例 | 工具栏 | -| ishljs | Boolean | false | 是否高亮代码 | +| ishljs | Boolean | true | 代码高亮(cdn外链) | ```javascript /* diff --git a/dist/mavon-editor.js b/dist/mavon-editor.js index 935eaba49..b2b7605a2 100644 --- a/dist/mavon-editor.js +++ b/dist/mavon-editor.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define("mavon-editor",["vue"],t):"object"==typeof exports?exports["mavon-editor"]=t(require("vue")):e["mavon-editor"]=t(e.Vue)}(this,function(__WEBPACK_EXTERNAL_MODULE_300__){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=85)}([function(e,t,n){"use strict";function r(e){return Object.prototype.toString.call(e)}function o(e){return"[object String]"===r(e)}function i(e,t){return w.call(e,t)}function a(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e}function s(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function l(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!=(65535&e)&&65534!=(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function c(e){if(e>65535){e-=65536;var t=55296+(e>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function u(e,t){var n=0;return i(S,t)?S[t]:35===t.charCodeAt(0)&&A.test(t)&&(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10),l(n))?c(n):e}function p(e){return e.indexOf("\\")<0?e:e.replace(k,"$1")}function d(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(C,function(e,t,n){return t||u(e,n)})}function h(e){return T[e]}function f(e){return E.test(e)?e.replace(z,h):e}function m(e){return e.replace(D,"\\$&")}function _(e){switch(e){case 9:case 32:return!0}return!1}function g(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function v(e){return M.test(e)}function b(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function y(e){return e.trim().replace(/\s+/g," ").toUpperCase()}var w=Object.prototype.hasOwnProperty,k=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,x=/&([a-z#][a-z0-9]{1,31});/gi,C=new RegExp(k.source+"|"+x.source,"gi"),A=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,S=n(59),E=/[&<>"]/,z=/[&<>"]/g,T={"&":"&","<":"<",">":">",'"':"""},D=/[.?*+^$[\]\\(){}|-]/g,M=n(43);t.lib={},t.lib.mdurl=n(63),t.lib.ucmicro=n(251),t.assign=a,t.isString=o,t.has=i,t.unescapeMd=p,t.unescapeAll=d,t.isValidEntityCode=l,t.fromCodePoint=c,t.escapeHtml=f,t.arrayReplaceAt=s,t.isSpace=_,t.isWhiteSpace=g,t.isMdAsciiPunct=b,t.isPunctChar=v,t.escapeRE=m,t.normalizeReference=y},function(e,t){function n(e,t){var n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"==typeof btoa){var i=r(o);return[n].concat(o.sources.map(function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"})).concat([i]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;on.parts.length&&(r.parts.length=n.parts.length)}else{for(var a=[],o=0;o":">","<":"<",'"':""","'":"'"},h=/[&><"']/g;if("undefined"!=typeof document){var f=document.createElement("span");i="textContent"in f?function(e,t){e.textContent=t}:function(e,t){e.innerText=t}}e.exports={contains:l,deflt:c,escape:r,hyphenate:p,indexOf:s,setTextContent:i,clearNode:o}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){function n(e,t,r){var o="KaTeX parse error: "+e;if(void 0!==t&&void 0!==r){o+=" at position "+r+": ";var i=t._input;i=i.slice(0,r)+"̲"+i.slice(r);var a=Math.max(0,r-15),s=r+15;o+=i.slice(a,s)}var l=new Error(o);return l.name="ParseError",l.__proto__=n.prototype,l.position=r,l}n.prototype.__proto__=Error.prototype,e.exports=n},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){var n=e.exports={version:"2.5.1"};"number"==typeof __e&&(__e=n)},function(e,t,n){e.exports=!n(10)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(12),o=n(22);e.exports=n(9)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(18),o=n(48),i=n(38),a=Object.defineProperty;t.f=n(9)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(49),o=n(28);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(35)("wks"),o=n(23),i=n(5).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},function(e,t,n){"use strict";function r(e){return void 0!==e&&null!==e}function o(e){for(var t=1,n=arguments.length;t0){n=!1;break}return n}n.d(t,"b",function(){return u}),t.a=r,t.d=o,t.c=i;var a=n(109),s=n.n(a),l=n(106),c=s()(l),u=function(e){return e?-1!==c.indexOf(e)?l[e]:e:""}},function(e,t,n){var r=n(53),o=n(29);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(24),o={xHeight:.431,quad:1,num1:.677,num2:.394,num3:.444,denom1:.686,denom2:.345,sup1:.413,sup2:.363,sup3:.289,sub1:.15,sub2:.247,supDrop:.386,subDrop:.05,axisHeight:.25,defaultRuleThickness:.04,bigOpSpacing1:.111,bigOpSpacing2:.166,bigOpSpacing3:.2,bigOpSpacing4:.6,bigOpSpacing5:.1,ptPerEm:10,emPerEx:.431,doubleRuleSep:.2,delim1:2.39,getDelim2:function(e){if(e.size===r.TEXT.size)return 1.01;if(e.size===r.SCRIPT.size)return.81;if(e.size===r.SCRIPTSCRIPT.size)return.71;throw new Error("Unexpected style size: "+e.size)}},i=n(174),a=function(e,t){var n=i[t][e.charCodeAt(0)];if(n)return{depth:n[0],height:n[1],italic:n[2],skew:n[3],width:n[4]}};e.exports={metrics:o,getCharacterMetrics:a}},function(e,t,n){var r=n(20);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){var r=n(5),o=n(8),i=n(121),a=n(11),s=function(e,t,n){var l,c,u,p=e&s.F,d=e&s.G,h=e&s.S,f=e&s.P,m=e&s.B,_=e&s.W,g=d?o:o[t]||(o[t]={}),v=g.prototype,b=d?r:h?r[t]:(r[t]||{}).prototype;d&&(n=t);for(l in n)(c=!p&&b&&void 0!==b[l])&&l in g||(u=c?b[l]:n[l],g[l]=d&&"function"!=typeof b[l]?n[l]:m&&c?i(u,r):_&&b[l]==u?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(u):f&&"function"==typeof u?i(Function.call,u):u,f&&((g.virtual||(g.virtual={}))[l]=u,e&s.R&&v&&!v[l]&&a(v,l,u)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){function n(e,t,n,r){this.id=e,this.size=t,this.cramped=r,this.sizeMultiplier=n}n.prototype.sup=function(){return i[a[this.id]]},n.prototype.sub=function(){return i[s[this.id]]},n.prototype.fracNum=function(){return i[l[this.id]]},n.prototype.fracDen=function(){return i[c[this.id]]},n.prototype.cramp=function(){return i[u[this.id]]},n.prototype.cls=function(){return r[this.size]+(this.cramped?" cramped":" uncramped")},n.prototype.reset=function(){return o[this.size]};var r=["displaystyle textstyle","textstyle","scriptstyle","scriptscriptstyle"],o=["reset-textstyle","reset-textstyle","reset-scriptstyle","reset-scriptscriptstyle"],i=[new n(0,0,1,!1),new n(1,0,1,!0),new n(2,1,1,!1),new n(3,1,1,!0),new n(4,2,.7,!1),new n(5,2,.7,!0),new n(6,3,.5,!1),new n(7,3,.5,!0)],a=[4,5,4,5,6,7,6,7],s=[5,5,5,5,7,7,7,7],l=[2,3,4,5,6,7,6,7],c=[3,3,5,5,7,7,7,7],u=[1,1,3,3,5,5,7,7];e.exports={DISPLAY:i[0],TEXT:i[2],SCRIPT:i[4],SCRIPTSCRIPT:i[6]}},function(e,t,n){var r=n(56),o=n(17),i=n(26),a=n(4),s=["\\Gamma","\\Delta","\\Theta","\\Lambda","\\Xi","\\Pi","\\Sigma","\\Upsilon","\\Phi","\\Psi","\\Omega"],l=["ı","ȷ"],c=function(e,t,n,a,s){i[n][e]&&i[n][e].replace&&(e=i[n][e].replace);var l,c=o.getCharacterMetrics(e,t);return c?l=new r.symbolNode(e,c.height,c.depth,c.italic,c.skew,s):("undefined"!=typeof console&&console.warn("No character metrics for '"+e+"' in style '"+t+"'"),l=new r.symbolNode(e,0,0,0,0,s)),a&&(l.style.color=a),l},u=function(e,t,n,r){return"\\"===e||"main"===i[t][e].font?c(e,"Main-Regular",t,n,r):c(e,"AMS-Regular",t,n,r.concat(["amsrm"]))},p=function(e,t,n,r,o){if("mathord"===o)return d(e,t,n,r);if("textord"===o)return c(e,"Main-Regular",t,n,r.concat(["mathrm"]));throw new Error("unexpected type: "+o+" in mathDefault")},d=function(e,t,n,r){return/[0-9]/.test(e.charAt(0))||a.contains(l,e)||a.contains(s,e)?c(e,"Main-Italic",t,n,r.concat(["mainit"])):c(e,"Math-Italic",t,n,r.concat(["mathit"]))},h=function(e,t,n){var r=e.mode,s=e.value;i[r][s]&&i[r][s].replace&&(s=i[r][s].replace);var u=["mord"],h=t.getColor(),f=t.font;if(f){if("mathit"===f||a.contains(l,s))return d(s,r,h,u);var m=w[f].fontName;return o.getCharacterMetrics(s,m)?c(s,m,r,h,u.concat([f])):p(s,r,h,u,n)}return p(s,r,h,u,n)},f=function(e){var t=0,n=0,r=0;if(e.children)for(var o=0;ot&&(t=e.children[o].height),e.children[o].depth>n&&(n=e.children[o].depth),e.children[o].maxFontSize>r&&(r=e.children[o].maxFontSize);e.height=t,e.depth=n,e.maxFontSize=r},m=function(e,t,n){var o=new r.span(e,t);return f(o),n&&(o.style.color=n),o},_=function(e){var t=new r.documentFragment(e);return f(t),t},g=function(e,t){var n=m([],[new r.symbolNode("​")]);return n.style.fontSize=t/e.style.sizeMultiplier+"em",m(["fontsize-ensurer","reset-"+e.size,"size5"],[n])},v=function(e,t,n,o){var i,a,s;if("individualShift"===t){var l=e;for(e=[l[0]],i=-l[0].shift-l[0].elem.depth,a=i,s=1;s",">"),n(r,o,d,":",":"),n(r,o,d,"≈","\\approx"),n(r,o,d,"≅","\\cong"),n(r,o,d,"≥","\\ge"),n(r,o,d,"≥","\\geq"),n(r,o,d,"←","\\gets"),n(r,o,d,">","\\gt"),n(r,o,d,"∈","\\in"),n(r,o,d,"∉","\\notin");n(r,o,d,"⊂","\\subset"),n(r,o,d,"⊃","\\supset"),n(r,o,d,"⊆","\\subseteq"),n(r,o,d,"⊇","\\supseteq"),n(r,i,d,"⊈","\\nsubseteq"),n(r,i,d,"⊉","\\nsupseteq"),n(r,o,d,"⊨","\\models"),n(r,o,d,"←","\\leftarrow"),n(r,o,d,"≤","\\le"),n(r,o,d,"≤","\\leq"),n(r,o,d,"<","\\lt"),n(r,o,d,"≠","\\ne"),n(r,o,d,"≠","\\neq"),n(r,o,d,"→","\\rightarrow"),n(r,o,d,"→","\\to"),n(r,i,d,"≱","\\ngeq"),n(r,i,d,"≰","\\nleq"),n(r,o,h,null,"\\!"),n(r,o,h," ","\\ "),n(r,o,h," ","~"),n(r,o,h,null,"\\,"),n(r,o,h,null,"\\:"),n(r,o,h,null,"\\;"),n(r,o,h,null,"\\enspace"),n(r,o,h,null,"\\qquad"),n(r,o,h,null,"\\quad"),n(r,o,h," ","\\space"),n(r,o,"punct",",",","),n(r,o,"punct",";",";"),n(r,o,"punct",":","\\colon"),n(r,i,s,"⊼","\\barwedge"),n(r,i,s,"⊻","\\veebar"),n(r,o,s,"⊙","\\odot"),n(r,o,s,"⊕","\\oplus"),n(r,o,s,"⊗","\\otimes"),n(r,o,f,"∂","\\partial"),n(r,o,s,"⊘","\\oslash"),n(r,i,s,"⊚","\\circledcirc"),n(r,i,s,"⊡","\\boxdot"),n(r,o,s,"△","\\bigtriangleup"),n(r,o,s,"▽","\\bigtriangledown"),n(r,o,s,"†","\\dagger"),n(r,o,s,"⋄","\\diamond"),n(r,o,s,"⋆","\\star"),n(r,o,s,"◃","\\triangleleft"),n(r,o,s,"▹","\\triangleright"),n(r,o,p,"{","\\{"),n(r,o,l,"}","\\}"),n(r,o,p,"{","\\lbrace"),n(r,o,l,"}","\\rbrace"),n(r,o,p,"[","\\lbrack"),n(r,o,l,"]","\\rbrack"),n(r,o,p,"⌊","\\lfloor"),n(r,o,l,"⌋","\\rfloor"),n(r,o,p,"⌈","\\lceil"),n(r,o,l,"⌉","\\rceil"),n(r,o,f,"\\","\\backslash"),n(r,o,f,"∣","|"),n(r,o,f,"∣","\\vert"),n(r,o,f,"∥","\\|"),n(r,o,f,"∥","\\Vert"),n(r,o,d,"↑","\\uparrow"),n(r,o,d,"⇑","\\Uparrow"),n(r,o,d,"↓","\\downarrow"),n(r,o,d,"⇓","\\Downarrow"),n(r,o,d,"↕","\\updownarrow"),n(r,o,d,"⇕","\\Updownarrow"),n(r,r,u,"∐","\\coprod"),n(r,r,u,"⋁","\\bigvee"),n(r,r,u,"⋀","\\bigwedge"),n(r,r,u,"⨄","\\biguplus"),n(r,r,u,"⋂","\\bigcap"),n(r,r,u,"⋃","\\bigcup"),n(r,r,u,"∫","\\int"),n(r,r,u,"∫","\\intop"),n(r,r,u,"∬","\\iint"),n(r,r,u,"∭","\\iiint"),n(r,r,u,"∏","\\prod"),n(r,r,u,"∑","\\sum"),n(r,r,u,"⨂","\\bigotimes"),n(r,r,u,"⨁","\\bigoplus"),n(r,r,u,"⨀","\\bigodot"),n(r,r,u,"∮","\\oint"),n(r,r,u,"⨆","\\bigsqcup"),n(r,r,u,"∫","\\smallint"),n(r,o,"inner","…","\\ldots"),n(r,o,"inner","⋯","\\cdots"),n(r,o,"inner","⋱","\\ddots"),n(r,o,f,"⋮","\\vdots"),n(r,o,a,"´","\\acute"),n(r,o,a,"`","\\grave"),n(r,o,a,"¨","\\ddot"),n(r,o,a,"~","\\tilde"),n(r,o,a,"¯","\\bar"),n(r,o,a,"˘","\\breve"),n(r,o,a,"ˇ","\\check"),n(r,o,a,"^","\\hat"),n(r,o,a,"⃗","\\vec"),n(r,o,a,"˙","\\dot"),n(r,o,c,"ı","\\imath"),n(r,o,c,"ȷ","\\jmath"),n("text",o,h," ","\\ "),n("text",o,h," "," "),n("text",o,h," ","~");var m,_,g='0123456789/@."';for(m=0;m0?r:n)(e)}},function(e,t,n){var r=n(28);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(20);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(5),o=n(8),i=n(31),a=n(40),s=n(12).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(14)},function(e,t,n){"use strict";function r(){this.__rules__=[],this.__cache__=null}r.prototype.__find__=function(e){for(var t=0;t=0&&(n=this.attrs[t][1]),n},r.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},e.exports=r},function(e,t){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E44\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD807[\uDC41-\uDC45\uDC70\uDC71]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},function(e,t,n){"use strict";function r(e,t){"function"!=typeof t&&(t=function(){});var n=document.querySelectorAll("script[src='"+e+"']");if(n.length>0)return n[0].addEventListener("load",function(){t()}),void t();var r=document.createElement("script"),o=document.getElementsByTagName("head")[0];r.type="text/javascript",r.charset="UTF-8",r.src=e,r.addEventListener?r.addEventListener("load",function(){t()},!1):r.attachEvent&&r.attachEvent("onreadystatechange",function(){"loaded"===window.event.srcElement.readyState&&t()}),o.appendChild(r)}function o(e,t){if("function"!=typeof t&&(t=function(){}),document.querySelectorAll("link[href='"+e+"']").length>0)return void t();var n=document.createElement("link"),r=document.getElementsByTagName("head")[0];n.rel="stylesheet",n.href=e,n.addEventListener?n.addEventListener("load",function(){t()},!1):n.attachEvent&&n.attachEvent("onreadystatechange",function(){"loaded"===window.event.srcElement.readyState&&t()}),r.appendChild(n)}n.d(t,"f",function(){return i}),n.d(t,"g",function(){return a}),n.d(t,"d",function(){return s}),n.d(t,"e",function(){return l}),n.d(t,"b",function(){return c}),n.d(t,"a",function(){return u}),t.h=r,t.c=o;var i=function(e,t,n){var r=t.prefix,o=t.subfix,i=t.str;if(e.focus(),document.selection);else if("number"==typeof e.selectionStart&&"number"==typeof e.selectionEnd){var a=e.selectionStart,s=e.selectionEnd,l=e.value;a===s?(e.value=l.substring(0,a)+r+i+o+l.substring(s,l.length),e.selectionStart=a+r.length,e.selectionEnd=a+(i.length+r.length)):l.substring(a-r.length,a)===r&&l.substring(s,s+o.length)===o?(e.value=l.substring(0,a-r.length)+l.substring(a,s)+l.substring(s+o.length,l.length),e.selectionStart=a-r.length,e.selectionEnd=s-r.length):(e.value=l.substring(0,a)+r+l.substring(a,s)+o+l.substring(s,l.length),e.selectionStart=a+r.length,e.selectionEnd=a+(s-a+r.length))}else alert("else");n.d_value=e.value,e.focus()},a=function(e){var t=e.getTextareaDom();if(document.selection);else if("number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd){var n=t.selectionStart,r=t.selectionEnd,o=t.value;t.value=o.substring(0,n)+" "+o.substring(r,o.length),t.selectionStart=t.selectionEnd=n+4}else alert("else");e.d_value=t.value,t.focus()},s=function(e,t){var n=void 0;n=e.$refs.navigationContent,n.innerHTML=e.d_render;var r=n.children;if(r.length)for(var o=0;o=0&&n.scrollHeight!==t.edit_scroll_height&&n.scrollHeight-n.offsetHeight-n.scrollTop<=30&&(t.$refs.vNoteEdit.scrollTop=n.scrollHeight-n.offsetHeight,r=1),t.edit_scroll_height=n.scrollHeight,t.$refs.vShowContent.scrollHeight>t.$refs.vShowContent.offsetHeight&&(t.$refs.vShowContent.scrollTop=(t.$refs.vShowContent.scrollHeight-t.$refs.vShowContent.offsetHeight)*r)},c=function(e){e.$el.addEventListener("fullscreenchange",function(t){e.$toolbar_right_read_change_status()},!1),e.$el.addEventListener("mozfullscreenchange",function(t){e.$toolbar_right_read_change_status()},!1),e.$el.addEventListener("webkitfullscreenchange",function(t){e.$toolbar_right_read_change_status()},!1),e.$el.addEventListener("msfullscreenchange",function(t){e.$toolbar_right_read_change_status()},!1)},u=function(e){!function(){e.$el.clientWidth>768?e.s_subfield=e.subfield:e.s_subfield=!1}(),window.addEventListener("resize",function(){e.$el.clientWidth>768?e.s_subfield=e.subfield:e.s_subfield=!1})}},function(e,t,n){"use strict";function r(){f||("undefined"!=typeof window&&window.addEventListener("keydown",function(e){h="tab"===c()(e)}),f=!0)}var o=n(261),i=n.n(o),a=n(259),s=n.n(a),l=n(58),c=n.n(l),u=n(15),p=n(95),d=n(27),h=!1,f=!1;t.a={mixins:[d.a],props:{href:{type:String,default:""},disabled:{type:Boolean,default:!1},disableFocusRipple:{type:Boolean,default:!1},disableKeyboardFocus:{type:Boolean,default:!1},disableTouchRipple:{type:Boolean,default:!1},rippleColor:{type:String,default:""},rippleOpacity:{type:Number},centerRipple:{type:Boolean,default:!0},wrapperClass:{type:String,default:""},wrapperStyle:{type:[String,Object]},containerElement:{type:String},tabIndex:{type:Number,default:0},type:{type:String,default:"button"},keyboardFocused:{type:Boolean,default:!1}},data:function(){return{hover:!1,isKeyboardFocused:!1}},computed:{buttonClass:function(){var e=[];return this.disabled&&e.push("disabled"),this.disabled||!this.hover&&!this.isKeyboardFocused||e.push("hover"),e.join(" ")}},beforeMount:function(){var e=this.disabled,t=this.disableKeyboardFocus,n=this.keyboardFocused;e||!n||t||(this.isKeyboardFocused=!0)},mounted:function(){r(),this.isKeyboardFocused&&(this.$el.focus(),this.$emit("keyboardFocus",!0))},beforeUpdate:function(){(this.disabled||this.disableKeyboardFocus)&&this.isKeyboardFocused&&(this.isKeyboardFocused=!1,this.$emit("keyboardFocus",!1))},beforeDestory:function(){this.cancelFocusTimeout()},methods:{handleHover:function(e){!this.disabled&&n.i(u.c)()&&(this.hover=!0,this.$emit("hover",e))},handleOut:function(e){!this.disabled&&n.i(u.c)()&&(this.hover=!1,this.$emit("hoverExit",e))},removeKeyboardFocus:function(e){this.isKeyboardFocused&&(this.isKeyboardFocused=!1,this.$emit("KeyboardFocus",!1))},setKeyboardFocus:function(e){this.isKeyboardFocused||(this.isKeyboardFocused=!0,this.$emit("KeyboardFocus",!0))},cancelFocusTimeout:function(){this.focusTimeout&&(clearTimeout(this.focusTimeout),this.focusTimeout=null)},handleKeydown:function(e){this.disabled||this.disableKeyboardFocus||("enter"===c()(e)&&this.isKeyboardFocused&&this.$el.click(),"esc"===c()(e)&&this.isKeyboardFocused&&this.removeKeyboardFocus(e))},handleKeyup:function(e){this.disabled||this.disableKeyboardFocus||"space"===c()(e)&&this.isKeyboardFocused},handleFocus:function(e){var t=this;this.disabled||this.disableKeyboardFocus||(this.focusTimeout=setTimeout(function(){h&&(t.setKeyboardFocus(e),h=!1)},150))},handleBlur:function(e){this.cancelFocusTimeout(),this.removeKeyboardFocus(e)},handleClick:function(e){this.disabled||(h=!1,this.$el.blur(),this.removeKeyboardFocus(e),this.$emit("click",e))},getTagName:function(){var e="undefined"!=typeof navigator&&-1!==navigator.userAgent.toLowerCase().indexOf("firefox"),t=e?"span":"button";switch(!0){case!!this.to:return"router-link";case!!this.href:return"a";case!!this.containerElement:return this.containerElement;default:return t}},createButtonChildren:function(e){var t=this.isKeyboardFocused,n=this.disabled,r=this.disableFocusRipple,o=this.disableKeyboardFocus,a=this.rippleColor,l=this.rippleOpacity,c=this.disableTouchRipple,u=[];u=u.concat(this.$slots.default);var d=!t||p.a.disableFocusRipple||n||r||o?void 0:e(s.a,{color:a,opacity:l});return u=n||c||p.a.disableTouchRipple?[e("div",{class:this.wrapperClass,style:this.wrapperStyle},this.$slots.default)]:[e(i.a,{class:this.wrapperClass,style:this.wrapperStyle,props:{color:this.rippleColor,centerRipple:this.centerRipple,opacity:this.rippleOpacity}},this.$slots.default)],u.unshift(d),u}},watch:{disabled:function(e){e||(this.hover=!1)}},render:function(e){var t={disabled:this.disabled,type:this.type},n=this.to?{to:this.to,tag:this.tag,activeClass:this.activeClass,event:this.event,exact:this.exact,append:this.append,replace:this.replace}:{};return this.href&&(t.href=this.disabled?"javascript:;":this.href),this.disabled||(t.tabIndex=this.tabIndex),e(this.getTagName(),{class:this.buttonClass,domProps:t,props:n,style:{"user-select":this.disabled?"":"none","-webkit-user-select":this.disabled?"":"none",outline:"none",cursor:this.disabled?"":"pointer",appearance:"none"},on:{mouseenter:this.handleHover,mouseleave:this.handleOut,touchend:this.handleOut,touchcancel:this.handleOut,click:this.handleClick,focus:this.handleFocus,blur:this.handleBlur,keydown:this.handleKeydown,keyup:this.handleKeyup}},this.createButtonChildren(e))}}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(20),o=n(5).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){e.exports=!n(9)&&!n(10)(function(){return 7!=Object.defineProperty(n(47)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(46);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";var r=n(31),o=n(19),i=n(54),a=n(11),s=n(7),l=n(30),c=n(125),u=n(33),p=n(132),d=n(14)("iterator"),h=!([].keys&&"next"in[].keys()),f=function(){return this};e.exports=function(e,t,n,m,_,g,v){c(n,t,m);var b,y,w,k=function(e){if(!h&&e in S)return S[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},x=t+" Iterator",C="values"==_,A=!1,S=e.prototype,E=S[d]||S["@@iterator"]||_&&S[_],z=E||k(_),T=_?C?k("entries"):z:void 0,D="Array"==t?S.entries||E:E;if(D&&(w=p(D.call(new e)))!==Object.prototype&&w.next&&(u(w,x,!0),r||s(w,d)||a(w,d,f)),C&&E&&"values"!==E.name&&(A=!0,z=function(){return E.call(this)}),r&&!v||!h&&!A&&S[d]||a(S,d,z),l[t]=z,l[x]=f,_)if(b={values:C?z:k("values"),keys:g?z:k("keys"),entries:T},v)for(y in b)y in S||i(S,y,b[y]);else o(o.P+o.F*(h||A),t,b);return b}},function(e,t,n){var r=n(18),o=n(129),i=n(29),a=n(34)("IE_PROTO"),s=function(){},l=function(){var e,t=n(47)("iframe"),r=i.length;for(t.style.display="none",n(123).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("