* 如果要支持表单登录,可以在这个方法中判断请求的类型,进而决定返回JSON还是HTML页面
*
* @return
*/
@RequestMapping("/login_page")
public RespBean loginPage() {
return new RespBean("error", "尚未登录,请登录!");
}
@PostMapping("/reg")
public RespBean reg(User user) {
int result = userService.reg(user);
if (result == 0) {
//成功
return new RespBean("success", "注册成功!");
} else if (result == 1) {
return new RespBean("error", "用户名重复,注册失败!");
} else {
//失败
return new RespBean("error", "注册失败!");
}
}
}
================================================
FILE: blogserver/src/main/java/org/sang/controller/UserController.java
================================================
package org.sang.controller;
import org.sang.bean.RespBean;
import org.sang.service.UserService;
import org.sang.utils.Util;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
* Created by sang on 2017/12/24.
*/
@RestController
public class UserController {
@Autowired
UserService userService;
@RequestMapping("/currentUserName")
public String currentUserName() {
return Util.getCurrentUser().getNickname();
}
@RequestMapping("/currentUserId")
public Long currentUserId() {
return Util.getCurrentUser().getId();
}
@RequestMapping("/currentUserEmail")
public String currentUserEmail() {
return Util.getCurrentUser().getEmail();
}
@RequestMapping("/isAdmin")
public Boolean isAdmin() {
List ", "");
content = content.replaceAll(" =0;t--)"inline"===e.tokens[t].type&&l.test(e.tokens[t].content)&&r(e.tokens[t].children,e)}},function(e,t,n){"use strict";function i(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}var r=n(32);i.prototype.Token=r,e.exports=i},function(e,t,n){"use strict";var i=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,r=/^<([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)>/;e.exports=function(e,t){var n,o,a,s,l,u,c=e.pos;return 60===e.src.charCodeAt(c)&&!((n=e.src.slice(c)).indexOf(">")<0||(r.test(n)?(o=n.match(r),s=o[0].slice(1,-1),l=e.md.normalizeLink(s),!e.md.validateLink(l)||(t||(u=e.push("link_open","a",1),u.attrs=[["href",l]],u.markup="autolink",u.info="auto",u=e.push("text","",0),u.content=e.md.normalizeLinkText(s),u=e.push("link_close","a",-1),u.markup="autolink",u.info="auto"),e.pos+=o[0].length,0)):!i.test(n)||(a=n.match(i),s=a[0].slice(1,-1),l=e.md.normalizeLink("mailto:"+s),!e.md.validateLink(l)||(t||(u=e.push("link_open","a",1),u.attrs=[["href",l]],u.markup="autolink",u.info="auto",u=e.push("text","",0),u.content=e.md.normalizeLinkText(s),u=e.push("link_close","a",-1),u.markup="autolink",u.info="auto"),e.pos+=a[0].length,0))))}},function(e,t,n){"use strict";e.exports=function(e,t){var n,i,r,o,a,s,l=e.pos;if(96!==e.src.charCodeAt(l))return!1;for(n=l,l++,i=e.posMax;l=0;){if((r=o[n]).open&&r.marker===i.marker&&r.end<0&&r.level===i.level){if(!((r.close||i.open)&&void 0!==r.length&&void 0!==i.length&&(r.length+i.length)%3==0)){i.jump=t-n,i.open=!1,r.end=t,r.jump=0;break}}n-=r.jump+1}}},function(e,t,n){"use strict";var i=n(46),r=n(0).has,o=n(0).isValidEntityCode,a=n(0).fromCodePoint,s=/^((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,l=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(e,t){var n,u,c=e.pos,h=e.posMax;if(38!==e.src.charCodeAt(c))return!1;if(c+1 = 0x80 (not a basic code point)","invalid-input":"Invalid input"},I=v-y,D=Math.floor,E=String.fromCharCode;m={version:"1.4.1",ucs2:{decode:l,encode:u},decode:f,encode:p,toASCII:function(e){return s(e,function(e){return M.test(e)?"xn--"+p(e):e})},toUnicode:function(e){return s(e,function(e){return S.test(e)?f(e.slice(4).toLowerCase()):e})}},void 0!==(r=function(){return m}.call(t,n,t,e))&&(e.exports=r)}()}).call(t,n(193)(e),n(192))},function(e,t){e.exports='Markdown 语法简介\n=============\n> [语法详解](http://commonmark.org/help/)\n\n## **粗体**\n```\n**粗体**\n__粗体__\n```\n## *斜体*\n```\n*斜体*\n_斜体_\n```\n## 标题\n```\n# 一级标题 #\n一级标题\n====\n## 二级标题 ##\n二级标题\n----\n### 三级标题 ###\n#### 四级标题 ####\n##### 五级标题 #####\n###### 六级标题 ######\n```\n## 分割线\n```\n***\n---\n```\n****\n## ^上^角~下~标\n```\n上角标 x^2^\n下角标 H~2~0\n```\n## ++下划线++ ~~中划线~~\n```\n++下划线++\n~~中划线~~\n```\n## ==标记==\n```\n==标记==\n```\n## 段落引用\n```\n> 一级\n>> 二级\n>>> 三级\n...\n```\n\n## 列表\n```\n有序列表\n1.\n2.\n3.\n...\n无序列表\n-\n-\n...\n```\n## 链接\n```\n[链接](www.baidu.com)\n\n```\n## 代码段落\n\\``` type\n\n代码段落\n\n\\```\n\n\\` 代码块 \\`\n\n```c++\nint main()\n{\n printf("hello world!");\n}\n```\n`code`\n## 表格(table)\n```\n| 标题1 | 标题2 | 标题3 |\n| :-- | :--: | ----: |\n| 左对齐 | 居中 | 右对齐 |\n| ---------------------- | ------------- | ----------------- |\n```\n| 标题1 | 标题2 | 标题3 |\n| :-- | :--: | ----: |\n| 左对齐 | 居中 | 右对齐 |\n| ---------------------- | ------------- | ----------------- |\n## 脚注(footnote)\n```\nhello[^hello]\n```\n\n见底部脚注[^hello]\n\n[^hello]: 一个注脚\n\n## 表情(emoji)\n[参考网站: https://www.webpagefx.com/tools/emoji-cheat-sheet/](https://www.webpagefx.com/tools/emoji-cheat-sheet/)\n```\n:laughing:\n:blush:\n:smiley:\n:)\n...\n```\n:laughing::blush::smiley::)\n\n## $\\KaTeX$公式\n\n我们可以渲染公式例如:$x_i + y_i = z_i$和$\\sum_{i=1}^n a_i=0$\n我们也可以单行渲染\n$$\\sum_{i=1}^n a_i=0$$\n具体可参照[katex文档](http://www.intmath.com/cg5/katex-mathjax-comparison.php)和[katex支持的函数](https://github.com/Khan/KaTeX/wiki/Function-Support-in-KaTeX)以及[latex文档](https://math.meta.stackexchange.com/questions/5020/mathjax-basic-tutorial-and-quick-reference)\n\n## 布局\n\n::: hljs-left\n`::: hljs-left`\n`居左`\n`:::`\n:::\n\n::: hljs-center\n`::: hljs-center`\n`居中`\n`:::`\n:::\n\n::: hljs-right\n`::: hljs-right`\n`居右`\n`:::`\n:::\n\n## 定义\n\n术语一\n\n: 定义一\n\n包含有*行内标记*的术语二\n\n: 定义二\n\n {一些定义二的文字或代码}\n\n 定义二的第三段\n\n```\n术语一\n\n: 定义一\n\n包含有*行内标记*的术语二\n\n: 定义二\n\n {一些定义二的文字或代码}\n\n 定义二的第三段\n\n```\n\n## abbr\n*[HTML]: Hyper Text Markup Language\n*[W3C]: World Wide Web Consortium\nHTML 规范由 W3C 维护\n```\n*[HTML]: Hyper Text Markup Language\n*[W3C]: World Wide Web Consortium\nHTML 规范由 W3C 维护\n```\n'},function(e,t){e.exports='Markdown Guide\n===\n> Detailed: [http://commonmark.org/help/](http://commonmark.org/help/)\n\n## **Bold**\n```\n**bold**\n__bold__\n```\n## *Italic*\n```\n*italic*\n_italic_\n```\n## Header\n```\n# h1 #\nh1\n====\n## h2 ##\nh2\n----\n### h3 ###\n#### h4 ####\n##### h5 #####\n###### h6 ######\n```\n## Dividing line\n```\n***\n---\n```\n****\n## ^Super^script & ~Sub~script\n```\nsuper x^2^\nsub H~2~0\n```\n## ++Underline++ & ~~Strikethrough~~\n```\n++underline++\n~~strikethrough~~\n```\n## ==Mark==\n```\n==mark==\n```\n## Quote\n\n```\n> quote 1\n>> quote 2\n>>> quote 3\n...\n```\n\n## List\n```\nol\n1.\n2.\n3.\n...\n\nul\n-\n-\n...\n```\n## Link\n```\nText Link\n[Text](www.baidu.com)\n\nImage Link\n\n```\n## Code\n\\``` type\n\ncode block\n\n\\```\n\n\\` code \\`\n\n```c++\nint main()\n{\n printf("hello world!");\n}\n```\n`code`\n\n## Table\n```\n| th1 | th2 | th3 |\n| :-- | :--: | ----: |\n| left | center | right |\n```\n| th1 | th2 | th3 |\n| :-- | :--: | ----: |\n| left | center | right |\n| ---------------------- | ------------- | ----------------- |\n## Footnote\n```\nhello[^hello]\n```\n\nLook at the bottom[^hello]\n\n[^hello]: footnote\n\n## Emojis\nDetailed: [https://www.webpagefx.com/tools/emoji-cheat-sheet/](https://www.webpagefx.com/tools/emoji-cheat-sheet/)\n```\n:laughing:\n:blush:\n:smiley:\n:)\n...\n```\n:laughing::blush::smiley::)\n\n## $\\KaTeX$ Mathematics\n\nWe can render formulas for example:$x_i + y_i = z_i$ and $\\sum_{i=1}^n a_i=0$\nWe can also single-line rendering\n$$\\sum_{i=1}^n a_i=0$$\nDetailed: [katex](http://www.intmath.com/cg5/katex-mathjax-comparison.php)和[katex function](https://github.com/Khan/KaTeX/wiki/Function-Support-in-KaTeX)以及[latex](https://math.meta.stackexchange.com/questions/5020/mathjax-basic-tutorial-and-quick-reference)\n\n## Layout\n\n::: hljs-left\n`::: hljs-left`\n`left`\n`:::`\n:::\n\n::: hljs-center\n`::: hljs-center`\n`center`\n`:::`\n:::\n\n::: hljs-right\n`::: hljs-right`\n`right`\n`:::`\n:::\n\n## deflist\n\nTerm 1\n\n: Definition 1\n\nTerm 2 with *inline markup*\n\n: Definition 2\n\n { some code, part of Definition 2 }\n\n Third paragraph of definition 2.\n\n```\nTerm 1\n\n: Definition 1\n\nTerm 2 with *inline markup*\n\n: Definition 2\n\n { some code, part of Definition 2 }\n\n Third paragraph of definition 2.\n\n```\n\n## abbr\n*[HTML]: Hyper Text Markup Language\n*[W3C]: World Wide Web Consortium\nThe HTML specification\nis maintained by the W3C.\n```\n*[HTML]: Hyper Text Markup Language\n*[W3C]: World Wide Web Consortium\nThe HTML specification\nis maintained by the W3C.\n```\n'},function(e,t){e.exports='Guide Markdown\n==============\n> Détail : [http://commonmark.org/help/](http://commonmark.org/help/)\n\n## **Bold**\n```\n**bold**\n__bold__\n```\n## *Italic*\n```\n*italic*\n_italic_\n```\n## Header\n```\n# h1 #\nh1\n====\n## h2 ##\nh2\n----\n### h3 ###\n#### h4 ####\n##### h5 #####\n###### h6 ######\n```\n## Dividing line\n```\n***\n---\n```\n****\n## ^Super^script & ~Sub~script\n```\nsuper x^2^\nsub H~2~0\n```\n## ++Underline++ & ~~Strikethrough~~\n```\n++underline++\n~~strikethrough~~\n```\n## ==Mark==\n```\n==mark==\n```\n## Quote\n\n```\n> quote 1\n>> quote 2\n>>> quote 3\n...\n```\n\n## List\n```\nol\n1.\n2.\n3.\n...\n\nul\n-\n-\n...\n```\n## Link\n```\nText Link\n[Text](www.baidu.com)\n\nImage Link\n\n```\n## Code\n\\``` type\n\ncode block\n\n\\```\n\n\\` code \\`\n\n```c++\nint main()\n{\n printf("hello world!");\n}\n```\n`code`\n\n## Table\n```\n| th1 | th2 | th3 |\n| :-- | :--: | ----: |\n| left | center | right |\n```\n| th1 | th2 | th3 |\n| :-- | :--: | ----: |\n| left | center | right |\n| ---------------------- | ------------- | ----------------- |\n## Footnote\n```\nhello[^hello]\n```\n\nLook at the bottom[^hello]\n\n[^hello]: footnote\n\n## Emojis\nDetailed: [https://www.webpagefx.com/tools/emoji-cheat-sheet/](https://www.webpagefx.com/tools/emoji-cheat-sheet/)\n```\n:laughing:\n:blush:\n:smiley:\n:)\n...\n```\n:laughing::blush::smiley::)\n\n## $\\KaTeX$ Mathematics\n\nWe can render formulas for example:$x_i + y_i = z_i$ and $\\sum_{i=1}^n a_i=0$\nWe can also single-line rendering\n$$\\sum_{i=1}^n a_i=0$$\nDetailed: [katex](http://www.intmath.com/cg5/katex-mathjax-comparison.php)和[katex function](https://github.com/Khan/KaTeX/wiki/Function-Support-in-KaTeX)以及[latex](https://math.meta.stackexchange.com/questions/5020/mathjax-basic-tutorial-and-quick-reference)\n\n## Layout\n\n::: hljs-left\n`::: hljs-left`\n`left`\n`:::`\n:::\n\n::: hljs-center\n`::: hljs-center`\n`center`\n`:::`\n:::\n\n::: hljs-right\n`::: hljs-right`\n`right`\n`:::`\n:::\n\n## deflist\n\nTerm 1\n\n: Definition 1\n\nTerm 2 with *inline markup*\n\n: Definition 2\n\n { some code, part of Definition 2 }\n\n Third paragraph of definition 2.\n\n```\nTerm 1\n\n: Definition 1\n\nTerm 2 with *inline markup*\n\n: Definition 2\n\n { some code, part of Definition 2 }\n\n Third paragraph of definition 2.\n\n```\n\n## abbr\n*[HTML]: Hyper Text Markup Language\n*[W3C]: World Wide Web Consortium\nThe HTML specification\nis maintained by the W3C.\n```\n*[HTML]: Hyper Text Markup Language\n*[W3C]: World Wide Web Consortium\nThe HTML specification\nis maintained by the W3C.\n```\n'},function(e,t){e.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804\uDCBD|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/},function(e,t,n){"use strict";t.Any=n(53),t.Cc=n(51),t.Cf=n(178),t.P=n(33),t.Z=n(52)},function(e,t,n){var i=!1,r=n(14)(n(56),n(183),function(e){i||n(187)},null,null);r.options.__file="D:\\code\\mavonEditor\\node_modules\\_auto-textarea@1.3.8@auto-textarea\\auto-textarea.vue",r.esModule&&Object.keys(r.esModule).some(function(e){return"default"!==e&&"__"!==e.substr(0,2)})&&console.error("named exports are not supported in *.vue files."),r.options.functional&&console.error("[vue-loader] auto-textarea.vue: functional components are not supported with templates, they should use render functions."),e.exports=r.exports},function(e,t,n){var i=!1,r=n(14)(n(57),n(184),function(e){i||n(188)},"data-v-194160b6",null);r.options.__file="D:\\code\\mavonEditor\\src\\components\\s-md-toolbar-left.vue",r.esModule&&Object.keys(r.esModule).some(function(e){return"default"!==e&&"__"!==e.substr(0,2)})&&console.error("named exports are not supported in *.vue files."),r.options.functional&&console.error("[vue-loader] s-md-toolbar-left.vue: functional components are not supported with templates, they should use render functions."),e.exports=r.exports},function(e,t,n){var i=n(14)(n(58),n(185),null,null,null);i.options.__file="D:\\code\\mavonEditor\\src\\components\\s-md-toolbar-right.vue",i.esModule&&Object.keys(i.esModule).some(function(e){return"default"!==e&&"__"!==e.substr(0,2)})&&console.error("named exports are not supported in *.vue files."),i.options.functional&&console.error("[vue-loader] s-md-toolbar-right.vue: functional components are not supported with templates, they should use render functions."),e.exports=i.exports},function(e,t,n){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"auto-textarea-wrapper",style:{fontSize:e.fontSize,lineHeight:e.lineHeight}},[n("pre",{staticClass:"auto-textarea-block",style:{fontSize:e.fontSize,lineHeight:e.lineHeight}},[n("br"),e._v(e._s(e.temp_value)+" ")]),e._v(" "),n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.temp_value,expression:"temp_value"}],ref:"vTextarea",staticClass:"auto-textarea-input",class:{"no-border":!e.border,"no-resize":!e.resize},style:{fontSize:e.fontSize,lineHeight:e.lineHeight},attrs:{autofocus:e.s_autofocus,spellcheck:"false",placeholder:e.placeholder},domProps:{value:e.temp_value},on:{keyup:e.change,input:function(t){t.target.composing||(e.temp_value=t.target.value)}}})])},staticRenderFns:[]},e.exports.render._withStripped=!0},function(e,t,n){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"left"},[e.toolbars.bold?n("button",{staticClass:"op-icon fa fa-mavon-bold",attrs:{disabled:!e.editable,type:"button","aria-hidden":"true",title:e.d_words.tl_bold+" (ctrl+b)"},on:{click:function(t){e.$clicks("bold")}}}):e._e(),e._v(" "),e.toolbars.italic?n("button",{staticClass:"op-icon fa fa-mavon-italic",attrs:{disabled:!e.editable,type:"button","aria-hidden":"true",title:e.d_words.tl_italic+" (ctrl+i)"},on:{click:function(t){e.$clicks("italic")}}}):e._e(),e._v(" "),e.toolbars.header?n("button",{staticClass:"op-icon fa fa-mavon-header",attrs:{disabled:!e.editable,type:"button","aria-hidden":"true",title:e.d_words.tl_header+" (ctrl+h)"},on:{click:function(t){e.$clicks("header")}}}):e._e(),e._v(" "),e.toolbars.header||e.toolbars.italic||e.toolbars.bold?n("span",{staticClass:"op-icon-divider"}):e._e(),e._v(" "),e.toolbars.underline?n("button",{staticClass:"op-icon fa fa-mavon-underline",attrs:{disabled:!e.editable,type:"button",title:e.d_words.tl_underline+" (ctrl+u)","aria-hidden":"true"},on:{click:function(t){e.$clicks("underline")}}}):e._e(),e._v(" "),e.toolbars.strikethrough?n("button",{staticClass:"op-icon fa fa-mavon-strikethrough",attrs:{disabled:!e.editable,type:"button",title:e.d_words.tl_strikethrough+" (ctrl+d)","aria-hidden":"true"},on:{click:function(t){e.$clicks("strikethrough")}}}):e._e(),e._v(" "),e.toolbars.mark?n("button",{staticClass:"op-icon fa fa-mavon-thumb-tack",attrs:{disabled:!e.editable,type:"button",title:e.d_words.tl_mark+" (ctrl+m)","aria-hidden":"true"},on:{click:function(t){e.$clicks("mark")}}}):e._e(),e._v(" "),e.toolbars.superscript?n("button",{staticClass:"op-icon fa fa-mavon-superscript",attrs:{disabled:!e.editable,type:"button","aria-hidden":"true",title:e.d_words.tl_superscript+" (ctrl+alt+s)"},on:{click:function(t){e.$clicks("superscript")}}}):e._e(),e._v(" "),e.toolbars.subscript?n("button",{staticClass:"op-icon fa fa-mavon-subscript",attrs:{disabled:!e.editable,type:"button","aria-hidden":"true",title:e.d_words.tl_subscript+" (ctrl+shift+s)"},on:{click:function(t){e.$clicks("subscript")}}}):e._e(),e._v(" "),e.toolbars.alignleft?n("button",{staticClass:"op-icon fa fa-mavon-align-left",attrs:{disabled:!e.editable,type:"button","aria-hidden":"true",title:e.d_words.tl_alignleft+" (ctrl+l)"},on:{click:function(t){e.$clicks("alignleft")}}}):e._e(),e._v(" "),e.toolbars.aligncenter?n("button",{staticClass:"op-icon fa fa-mavon-align-center",attrs:{disabled:!e.editable,type:"button","aria-hidden":"true",title:e.d_words.tl_aligncenter+" (ctrl+e)"},on:{click:function(t){e.$clicks("aligncenter")}}}):e._e(),e._v(" "),e.toolbars.alignright?n("button",{staticClass:"op-icon fa fa-mavon-align-right",attrs:{disabled:!e.editable,type:"button","aria-hidden":"true",title:e.d_words.tl_alignright+" (ctrl+r)"},on:{click:function(t){e.$clicks("alignright")}}}):e._e(),e._v(" "),e.toolbars.superscript||e.toolbars.subscript||e.toolbars.underline||e.toolbars.strikethrough||e.toolbars.mark?n("span",{staticClass:"op-icon-divider"}):e._e(),e._v(" "),e.toolbars.quote?n("button",{staticClass:"op-icon fa fa-mavon-quote-left",attrs:{disabled:!e.editable,type:"button","aria-hidden":"true",title:e.d_words.tl_quote+" (ctrl+q)"},on:{click:function(t){e.$clicks("quote")}}}):e._e(),e._v(" "),e.toolbars.ol?n("button",{staticClass:"op-icon fa fa-mavon-list-ol",attrs:{disabled:!e.editable,type:"button","aria-hidden":"true",title:e.d_words.tl_ol+" (ctrl+o)"},on:{click:function(t){e.$clicks("ol")}}}):e._e(),e._v(" "),e.toolbars.ul?n("button",{staticClass:"op-icon fa fa-mavon-list-ul",attrs:{disabled:!e.editable,type:"button","aria-hidden":"true",title:e.d_words.tl_ul+" (ctrl+alt+u)"},on:{click:function(t){e.$clicks("ul")}}}):e._e(),e._v(" "),e.toolbars.ul||e.toolbars.ol||e.toolbars.quote?n("span",{staticClass:"op-icon-divider"}):e._e(),e._v(" "),e.toolbars.link?n("button",{staticClass:"op-icon fa fa-mavon-link",attrs:{disabled:!e.editable,type:"button","aria-hidden":"true",title:e.d_words.tl_link+" (ctrl+l)"},on:{click:function(t){t.stopPropagation(),e.$toggle_imgLinkAdd("link")}}}):e._e(),e._v(" "),e.toolbars.imagelink?n("button",{staticClass:"op-icon fa fa-mavon-picture-o dropdown",class:{selected:e.s_img_dropdown_open},attrs:{disabled:!e.editable,type:"button","aria-hidden":"true"},on:{click:function(t){t.stopPropagation(),e.$click_toggle_image_dropdown()}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.s_img_dropdown_open,expression:"s_img_dropdown_open"}],staticClass:"op-image popup-dropdown"},[n("div",{staticClass:"dropdown-item",attrs:{title:"ctrl+alt+l"},on:{click:function(t){t.stopPropagation(),e.$toggle_imgLinkAdd("imagelink")}}},[n("span",[e._v(e._s(e.d_words.tl_image))])]),e._v(" "),n("div",{staticClass:"dropdown-item",staticStyle:{overflow:"hidden"}},[n("input",{key:e.img_file[0][0],attrs:{type:"file"},on:{change:function(t){e.$imgAdd(t)}}}),e._v(e._s(e.d_words.tl_upload)+"\n ")]),e._v(" "),e._l(e.img_file,function(t,i){return i>0?n("div",{staticClass:"dropdown-item dropdown-images",on:{click:function(t){t.stopPropagation(),e.$imgFileListClick(i)}}},[n("span",[e._v(e._s(t[0]))]),e._v(" "),n("button",{staticClass:"op-icon fa fa-mavon-trash-o",attrs:{slot:"right",type:"button","aria-hidden":"true",title:e.d_words.tl_upload_remove},on:{click:function(t){t.stopPropagation(),e.$imgDel(i)}},slot:"right"}),e._v(" "),n("img",{staticClass:"image-show",attrs:{src:t[1].miniurl,alt:"none"}})]):e._e()})],2)]):e._e(),e._v(" "),e.toolbars.code?n("button",{staticClass:"op-icon fa fa-mavon-code",attrs:{disabled:!e.editable,type:"button","aria-hidden":"true",title:e.d_words.tl_code+" (ctrl+alt+c)"},on:{click:function(t){e.$clicks("code")}}}):e._e(),e._v(" "),e.toolbars.table?n("button",{staticClass:"op-icon fa fa-mavon-table",attrs:{disabled:!e.editable,type:"button","aria-hidden":"true",title:e.d_words.tl_table+" (ctrl+alt+t)"},on:{click:function(t){e.$clicks("table")}}}):e._e(),e._v(" "),e.toolbars.link||e.toolbars.imagelink||e.toolbars.code||e.toolbars.table?n("span",{staticClass:"op-icon-divider"}):e._e(),e._v(" "),e.toolbars.undo?n("button",{staticClass:"op-icon fa fa-mavon-undo",attrs:{type:"button","aria-hidden":"true",title:e.d_words.tl_undo+" (ctrl+z)"},on:{click:function(t){e.$clicks("undo")}}}):e._e(),e._v(" "),e.toolbars.redo?n("button",{staticClass:"op-icon fa fa-mavon-repeat",attrs:{type:"button","aria-hidden":"true",title:e.d_words.tl_redo+" (ctrl+y)"},on:{click:function(t){e.$clicks("redo")}}}):e._e(),e._v(" "),e.toolbars.trash?n("button",{staticClass:"op-icon fa fa-mavon-trash-o",attrs:{type:"button","aria-hidden":"true",title:e.d_words.tl_trash+" (ctrl+breakspace)"},on:{click:function(t){e.$clicks("trash")}}}):e._e(),e._v(" "),e.toolbars.save?n("button",{staticClass:"op-icon fa fa-mavon-floppy-o",attrs:{type:"button","aria-hidden":"true",title:e.d_words.tl_save+" (ctrl+s)"},on:{click:function(t){e.$clicks("save")}}}):e._e(),e._v(" "),n("transition",{attrs:{name:"fade"}},[e.s_img_link_open?n("div",{staticClass:"add-image-link-wrapper"},[n("div",{staticClass:"add-image-link"},[n("i",{staticClass:"fa fa-mavon-times",attrs:{"aria-hidden":"true"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.s_img_link_open=!1}}}),e._v(" "),n("h3",{staticClass:"title"},[e._v(e._s(e.d_words.tl_popup_link_title))]),e._v(" "),n("div",{staticClass:"link-text input-wrapper"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.link_text,expression:"link_text"}],attrs:{type:"text",placeholder:e.d_words.tl_popup_link_text},domProps:{value:e.link_text},on:{input:function(t){t.target.composing||(e.link_text=t.target.value)}}})]),e._v(" "),n("div",{staticClass:"link-addr input-wrapper"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.link_addr,expression:"link_addr"}],attrs:{type:"text",placeholder:e.d_words.tl_popup_link_addr},domProps:{value:e.link_addr},on:{input:function(t){t.target.composing||(e.link_addr=t.target.value)}}})]),e._v(" "),n("div",{staticClass:"op-btn cancel",on:{click:function(t){t.stopPropagation(),e.s_img_link_open=!1}}},[e._v(e._s(e.d_words.tl_popup_link_cancel))]),e._v(" "),n("div",{staticClass:"op-btn sure",on:{click:function(t){t.stopPropagation(),e.$imgLinkAdd()}}},[e._v(e._s(e.d_words.tl_popup_link_sure))])])]):e._e()])],1)},staticRenderFns:[]},e.exports.render._withStripped=!0},function(e,t,n){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"right"},[e.toolbars.navigation?n("button",{directives:[{name:"show",rawName:"v-show",value:!e.s_navigation,expression:"!s_navigation"}],staticClass:"op-icon fa fa-mavon-bars",attrs:{type:"button","aria-hidden":"true",title:e.d_words.tl_navigation_on+" (F8)"},on:{click:function(t){e.$clicks("navigation")}}}):e._e(),e._v(" "),e.toolbars.navigation?n("button",{directives:[{name:"show",rawName:"v-show",value:e.s_navigation,expression:"s_navigation"}],staticClass:"op-icon fa fa-mavon-bars selected",attrs:{type:"button","aria-hidden":"true",title:e.d_words.tl_navigation_off+" (F8)"},on:{click:function(t){e.$clicks("navigation")}}}):e._e(),e._v(" "),e.toolbars.preview?n("button",{directives:[{name:"show",rawName:"v-show",value:e.s_preview_switch,expression:"s_preview_switch"}],staticClass:"op-icon fa fa-mavon-eye-slash selected",attrs:{type:"button","aria-hidden":"true",title:e.d_words.tl_edit+" (F9)"},on:{click:function(t){e.$clicks("preview")}}}):e._e(),e._v(" "),e.toolbars.preview?n("button",{directives:[{name:"show",rawName:"v-show",value:!e.s_preview_switch,expression:"!s_preview_switch"}],staticClass:"op-icon fa fa-mavon-eye",attrs:{type:"button","aria-hidden":"true",title:e.d_words.tl_preview+" (F9)"},on:{click:function(t){e.$clicks("preview")}}}):e._e(),e._v(" "),e.toolbars.fullscreen?n("button",{directives:[{name:"show",rawName:"v-show",value:!e.s_fullScreen,expression:"!s_fullScreen"}],staticClass:"op-icon fa fa-mavon-arrows-alt",attrs:{type:"button",title:e.d_words.tl_fullscreen_on+" (F10)","aria-hidden":"true"},on:{click:function(t){e.$clicks("fullscreen")}}}):e._e(),e._v(" "),e.toolbars.fullscreen?n("button",{directives:[{name:"show",rawName:"v-show",value:e.s_fullScreen,expression:"s_fullScreen"}],staticClass:"op-icon fa fa-mavon-compress selected",attrs:{type:"button",title:e.d_words.tl_fullscreen_off+" (F10)","aria-hidden":"true"},on:{click:function(t){e.$clicks("fullscreen")}}}):e._e(),e._v(" "),e.toolbars.readmodel?n("button",{staticClass:"op-icon fa fa-mavon-window-maximize",attrs:{type:"button","aria-hidden":"true",title:e.d_words.tl_read+" (F11)"},on:{click:function(t){e.$clicks("read")}}}):e._e(),e._v(" "),e.toolbars.subfield?n("button",{staticClass:"op-icon fa fa-mavon-columns",class:{selected:e.s_subfield},attrs:{type:"button","aria-hidden":"true",title:(e.s_subfield?e.d_words.tl_single_column:e.d_words.tl_double_column)+" (F12)"},on:{click:function(t){e.$clicks("subfield")}}}):e._e(),e._v(" "),e.toolbars.help&&e.toolbars.htmlcode&&e.toolbars.readmodel&&e.toolbars.fullscreen&&e.toolbars.subfield&&e.toolbars.navigation?n("span",{staticClass:"op-icon-divider"}):e._e(),e._v(" "),e.toolbars.htmlcode?n("button",{directives:[{name:"show",rawName:"v-show",value:!e.s_html_code,expression:"!s_html_code"}],staticClass:"op-icon fa fa-mavon-code",attrs:{type:"button",title:e.d_words.tl_html_on,"aria-hidden":"true"},on:{click:function(t){e.$clicks("html")}}}):e._e(),e._v(" "),e.toolbars.htmlcode?n("button",{directives:[{name:"show",rawName:"v-show",value:e.s_html_code,expression:"s_html_code"}],staticClass:"op-icon fa fa-mavon-code selected",attrs:{type:"button",title:e.d_words.tl_html_off,"aria-hidden":"true"},on:{click:function(t){e.$clicks("html")}}}):e._e(),e._v(" "),e.toolbars.help?n("button",{staticClass:"op-icon fa fa-mavon-question-circle",staticStyle:{"font-size":"17px",padding:"5px 6px 5px 3px"},attrs:{type:"button",title:e.d_words.tl_help,"aria-hidden":"true"},on:{click:function(t){e.$clicks("help")}}}):e._e()])},staticRenderFns:[]},e.exports.render._withStripped=!0},function(e,t,n){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"v-note-wrapper markdown-body",class:[{fullscreen:e.s_fullScreen}]},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.toolbarsFlag,expression:"toolbarsFlag"}],staticClass:"v-note-op"},[n("s-md-toolbar-left",{ref:"toolbar_left",attrs:{editable:e.editable,d_words:e.d_words,toolbars:e.toolbars},on:{toolbar_left_click:e.toolbar_left_click,toolbar_left_addlink:e.toolbar_left_addlink,imgAdd:e.$imgAdd,imgDel:e.$imgDel,imgTouch:e.$imgTouch}}),e._v(" "),n("s-md-toolbar-right",{ref:"toolbar_right",attrs:{d_words:e.d_words,toolbars:e.toolbars,s_subfield:e.s_subfield,s_preview_switch:e.s_preview_switch,s_fullScreen:e.s_fullScreen,s_html_code:e.s_html_code,s_navigation:e.s_navigation},on:{toolbar_right_click:e.toolbar_right_click}})],1),e._v(" "),n("div",{staticClass:"v-note-panel"},[n("div",{ref:"vNoteEdit",staticClass:"v-note-edit divarea-wrapper",class:{"scroll-style":e.s_scrollStyle,"single-edit":!e.s_preview_switch&&!e.s_html_code,"single-show":!e.s_subfield&&e.s_preview_switch||!e.s_subfield&&e.s_html_code},on:{scroll:e.$v_edit_scroll,click:e.textAreaFocus}},[n("div",{staticClass:"content-input-wrapper"},[n("v-autoTextarea",{ref:"vNoteTextarea",staticClass:"content-input",attrs:{placeholder:e.placeholder?e.placeholder:e.d_words.start_editor,fontSize:"15px",lineHeight:"1.5"},model:{value:e.d_value,callback:function(t){e.d_value=t},expression:"d_value"}})],1)]),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.s_preview_switch||e.s_html_code,expression:"s_preview_switch || s_html_code"}],staticClass:"v-note-show",class:{"single-show":!e.s_subfield&&e.s_preview_switch||!e.s_subfield&&e.s_html_code}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.s_html_code,expression:"!s_html_code"}],ref:"vShowContent",staticClass:"v-show-content",class:{"scroll-style":e.s_scrollStyle},domProps:{innerHTML:e._s(e.d_render)}}),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.s_html_code,expression:"s_html_code"}],staticClass:"v-show-content-html",class:{"scroll-style":e.s_scrollStyle}},[e._v("\n "+e._s(e.d_render)+"\n ")])]),e._v(" "),n("transition",{attrs:{name:"slideTop"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.s_navigation,expression:"s_navigation"}],staticClass:"v-note-navigation-wrapper"},[n("div",{staticClass:"v-note-navigation-title"},[e._v("\n "+e._s(e.d_words.navigation_title)),n("i",{staticClass:"fa fa-mavon-times v-note-navigation-close",attrs:{"aria-hidden":"true"},on:{click:function(t){e.toolbar_right_click("navigation")}}})]),e._v(" "),n("div",{ref:"navigationContent",staticClass:"v-note-navigation-content scroll-style"})])])],1),e._v(" "),n("transition",{attrs:{name:"fade"}},[n("div",{ref:"help"},[e.s_help?n("div",{staticClass:"v-note-help-wrapper",on:{click:function(t){e.toolbar_right_click("help")}}},[n("div",{staticClass:"v-note-help-content markdown-body",on:{click:function(e){e.stopPropagation()}}},[n("i",{staticClass:"fa fa-mavon-times",attrs:{"aria-hidden":"true"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.toolbar_right_click("help")}}}),e._v(" "),n("div",{staticClass:"scroll-style v-note-help-show",domProps:{innerHTML:e._s(e.d_help)}})])]):e._e()])]),e._v(" "),n("transition",{attrs:{name:"fade"}},[e.d_preview_imgsrc?n("div",{staticClass:"v-note-img-wrapper",on:{click:function(t){e.d_preview_imgsrc=null}}},[n("i",{staticClass:"fa fa-mavon-times",attrs:{"aria-hidden":"true"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.d_preview_imgsrc=null}}}),e._v(" "),n("img",{attrs:{src:e.d_preview_imgsrc,alt:"none"},on:{click:function(e){e.stopPropagation()}}})]):e._e()]),e._v(" "),n("div",{ref:"vReadModel",staticClass:"v-note-read-model scroll-style",class:{show:e.s_readmodel}},[n("div",{staticClass:"v-note-read-content",domProps:{innerHTML:e._s(e.d_render)}})])],1)},staticRenderFns:[]},e.exports.render._withStripped=!0},function(e,t,n){var i=n(99);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),n(15)("37051204",i,!1)},function(e,t,n){var i=n(100);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),n(15)("125d9b08",i,!1)},function(e,t,n){var i=n(101);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),n(15)("3e01f1a3",i,!1)},function(e,t,n){var i=n(102);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),n(15)("3fdeafd3",i,!1)},function(e,t){e.exports=function(e,t){for(var n=[],i={},r=0;r 0?1:a<0?-1:0}(n,a,o,i,d),function(e,t,n,i,r,o,a,s,l,u){var c=l.valueDim,h=l.categoryDim,d=Math.abs(n[h.wh]),f=e.getItemVisual(t,"symbolSize");w.isArray(f)?f=f.slice():(null==f&&(f="100%"),f=[f,f]);f[h.index]=M(f[h.index],d),f[c.index]=M(f[c.index],i?d:Math.abs(o)),u.symbolSize=f;(u.symbolScale=[f[0]/s,f[1]/s])[c.index]*=(l.isHorizontal?-1:1)*a}(e,t,o,a,0,d.boundingLength,d.pxSign,c,i,d),function(e,t,n,i,r){var o=e.get(I)||0;o&&(E.attr({scale:t.slice(),rotation:n}),E.updateTransform(),o/=E.getLineScale(),o*=t[i.valueDim.index]);r.valueLineWidth=o}(n,d.symbolScale,u,i,d);var f=d.symbolSize,p=n.get("symbolOffset");return w.isArray(p)&&(p=[M(p[0],f[0]),M(p[1],f[1])]),function(e,t,n,i,r,o,a,s,l,u,c,h){var d=c.categoryDim,f=c.valueDim,p=h.pxSign,m=Math.max(t[f.index]+s,0),g=m;if(i){var v=Math.abs(l),y=w.retrieve(e.get("symbolMargin"),"15%")+"",_=!1;y.lastIndexOf("!")===y.length-1&&(_=!0,y=y.slice(0,y.length-1)),y=M(y,t[f.index]);var b=Math.max(m+2*y,0),k=_?0:2*y,C=T(i),S=C?i:x((v+k)/b),A=v-S*m;b=m+2*(y=A/2/(_?S:S-1)),k=_?0:2*y,C||"fixed"===i||(S=u?x((Math.abs(u)+k)/b):0),g=S*b-k,h.repeatTimes=S,h.symbolMargin=y}var I=p*(g/2),D=h.pathPosition=[];D[d.index]=n[d.wh]/2,D[f.index]="start"===a?I:"end"===a?l-I:l/2,o&&(D[0]+=o[0],D[1]+=o[1]);var E=h.bundlePosition=[];E[d.index]=n[d.xy],E[f.index]=n[f.xy];var P=h.barRectShape=w.extend({},n);P[f.wh]=p*Math.max(Math.abs(n[f.wh]),Math.abs(D[f.index]+I)),P[d.wh]=n[d.wh];var L=h.clipShape={};L[d.xy]=-n[d.xy],L[d.wh]=c.ecSize[d.wh],L[f.xy]=0,L[f.wh]=n[f.wh]}(n,f,o,a,0,p,l,d.valueLineWidth,d.boundingLength,d.repeatCutLength,i,d),d}function r(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function o(e){var t=e.symbolPatternSize,n=C(e.symbolType,-t/2,-t/2,t,t,e.color);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function a(e,t,n,i){function r(e){var t=h.slice(),i=n.pxSign,r=e;return("start"===n.symbolRepeatDirection?i>0:i<0)&&(r=p-1-e),t[d.index]=g*(r-p/2+.5)+h[d.index],{position:t,scale:n.symbolScale.slice(),rotation:n.rotation}}function a(){v(e,function(e){e.trigger("emphasis")})}function s(){v(e,function(e){e.trigger("normal")})}var l=e.__pictorialBundle,u=n.symbolSize,c=n.valueLineWidth,h=n.pathPosition,d=t.valueDim,p=n.repeatTimes||0,m=0,g=u[t.valueDim.index]+c+2*n.symbolMargin;for(v(e,function(e){e.__pictorialAnimationIndex=m,e.__pictorialRepeatTimes=p,m 0)],h=e.__pictorialBarRect;A(h.style,u,o,i,t.seriesModel,r,c),k.setHoverStyle(h,u)}function x(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var b=n("Icdr"),w=n("/gxq"),k=n("0sHC"),C=n("kK7q").createSymbol,S=n("wWR3"),M=S.parsePercent,T=S.isNumeric,A=n("dzlV").setLabel,I=["itemStyle","normal","borderWidth"],D=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],E=new k.Circle,P=b.extendChartView({type:"pictorialBar",render:function(e,t,n){var r=this.group,o=e.getData(),h=this._data,d=e.coordinateSystem,f=!!d.getBaseAxis().isHorizontal(),v=d.grid.getRect(),y={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:d,coordSysExtent:[[v.x,v.x+v.width],[v.y,v.y+v.height]],isHorizontal:f,valueDim:D[+f],categoryDim:D[1-f]};return o.diff(h).add(function(e){if(o.hasValue(e)){var t=c(o,e),n=i(o,e,t,y),a=p(o,y,n);o.setItemGraphicEl(e,a),r.add(a),_(a,y,n)}}).update(function(e,t){var n=h.getItemGraphicEl(t);if(o.hasValue(e)){var d=c(o,e),f=i(o,e,d,y),m=g(o,f);n&&m!==n.__pictorialShapeStr&&(r.remove(n),o.setItemGraphicEl(e,null),n=null),n?function(e,t,n){var i=n.animationModel,r=n.dataIndex,o=e.__pictorialBundle;k.updateProps(o,{position:n.bundlePosition.slice()},i,r),n.symbolRepeat?a(e,t,n,!0):s(e,0,n,!0),l(e,n,!0),u(e,t,n,!0)}(n,y,f):n=p(o,y,f,!0),o.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=f,r.add(n),_(n,y,f)}else r.remove(n)}).remove(function(e){var t=h.getItemGraphicEl(e);t&&m(h,e,t.__pictorialSymbolMeta.animationModel,t)}).execute(),this._data=o,this.group},dispose:w.noop,remove:function(e,t){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(t){m(i,t.dataIndex,e,t)}):n.removeAll()}});e.exports=P},mLyJ:function(e,t,n){function i(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function r(e){return e.dim}var o=n("/gxq"),a=n("wWR3").parsePercent,s=function(e,t,n){var s=n.getWidth(),l=n.getHeight(),u={},c={},h=function(e,t){var n={};o.each(e,function(e,t){var o=e.getData(),s=e.coordinateSystem,l=s.getBaseAxis(),u=l.getExtent(),c="category"===l.type?l.getBandWidth():Math.abs(u[1]-u[0])/o.count(),h=n[r(l)]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=h.stacks;n[r(l)]=h;var f=i(e);d[f]||h.autoWidthCount++,d[f]=d[f]||{width:0,maxWidth:0};var p=a(e.get("barWidth"),c),m=a(e.get("barMaxWidth"),c),g=e.get("barGap"),v=e.get("barCategoryGap");p&&!d[f].width&&(p=Math.min(h.remainedWidth,p),d[f].width=p,h.remainedWidth-=p),m&&(d[f].maxWidth=m),null!=g&&(h.gap=g),null!=v&&(h.categoryGap=v)});var s={};return o.each(n,function(e,t){s[t]={};var n=e.stacks,i=e.bandWidth,r=a(e.categoryGap,i),l=a(e.gap,1),u=e.remainedWidth,c=e.autoWidthCount,h=(u-r)/(c+(c-1)*l);h=Math.max(h,0),o.each(n,function(e,t){var n=e.maxWidth;n&&n
", "");
content = content.replaceAll("\\<.*?>", "");
return content;
}
public List=0},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",textStyle:{color:"#333"},selectedMode:!0,tooltip:{show:!1}}}),s=a;e.exports=s},"6Kqb":function(e,t,n){var i=n("GxVO").extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=2*Math.PI;e.moveTo(n+t.r,i),e.arc(n,i,t.r,0,r,!1),e.moveTo(n+t.r0,i),e.arc(n,i,t.r0,0,r,!0)}});e.exports=i},"6MCj":function(e,t,n){var i=n("YNzw"),r=n("C7PF").applyTransform,o=n("8b51"),a=n("DRaW"),s=n("3h1/"),l=n("qjrH"),u=n("taS8"),c=n("9qnA"),h=n("MAom"),d=n("/86O"),f=n("GxVO"),p=n("moDv"),m=n("wRzc"),g=n("cI6i"),v=p.CMD,y=Math.round,_=Math.sqrt,x=Math.abs,b=Math.cos,w=Math.sin,k=Math.max;if(!i.canvasSupported){var C="progid:DXImageTransform.Microsoft",S=function(e){e.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",e.coordsize="21600,21600",e.coordorigin="0,0"},M=function(e,t,n){return"rgb("+[e,t,n].join(",")+")"},T=function(e,t){t&&e&&t.parentNode!==e&&e.appendChild(t)},A=function(e,t){t&&e&&t.parentNode===e&&e.removeChild(t)},I=function(e,t,n){return 1e5*(parseFloat(e)||0)+1e3*(parseFloat(t)||0)+n},D=function(e,t){return"string"==typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e},E=function(e,t,n){var i=a.parse(t);n=+n,isNaN(n)&&(n=1),i&&(e.color=M(i[0],i[1],i[2]),e.opacity=n*i[3])},P=function(e){var t=a.parse(e);return[M(t[0],t[1],t[2]),t[3]]},L=function(e,t,n,i){var o="fill"==t,a=e.getElementsByTagName(t)[0];null!=n[t]&&"none"!==n[t]&&(o||!o&&n.lineWidth)?(e[o?"filled":"stroked"]="true",n[t]instanceof m&&A(e,a),a||(a=g.createNode(t)),o?function(e,t,n){var i=t.fill;if(null!=i)if(i instanceof m){var o,a=0,s=[0,0],l=0,u=1,c=n.getBoundingRect(),h=c.width,d=c.height;if("linear"===i.type){o="gradient";var f=n.transform,p=[i.x*h,i.y*d],g=[i.x2*h,i.y2*d];f&&(r(p,p,f),r(g,g,f));var v=g[0]-p[0],y=g[1]-p[1];(a=180*Math.atan2(v,y)/Math.PI)<0&&(a+=360),a<1e-6&&(a=0)}else{o="gradientradial",p=[i.x*h,i.y*d],f=n.transform;var _=n.scale,x=h,b=d;s=[(p[0]-c.x)/x,(p[1]-c.y)/b],f&&r(p,p,f),x/=21600*_[0],b/=21600*_[1];var w=k(x,b);l=0/w,u=2*i.r/w-l}var C=i.colorStops.slice();C.sort(function(e,t){return e.offset-t.offset});for(var S=C.length,M=[],T=[],A=0;A=2){var L=M[0][0],O=M[1][0],N=M[0][1]*t.opacity,$=M[1][1]*t.opacity;e.type=o,e.method="none",e.focus="100%",e.angle=a,e.color=L,e.color2=O,e.colors=T.join(","),e.opacity=$,e.opacity2=N}"radial"===o&&(e.focusposition=s.join(","))}else E(e,i,t.opacity)}(a,n,i):function(e,t){null!=t.lineDash&&(e.dashstyle=t.lineDash.join(" ")),null==t.stroke||t.stroke instanceof m||E(e,t.stroke,t.opacity)}(a,n),T(e,a)):(e[o?"filled":"stroked"]="false",A(e,a))},O=[[],[],[]];f.prototype.brushVML=function(e){var t=this.style,n=this._vmlEl;n||(n=g.createNode("shape"),S(n),this._vmlEl=n),L(n,"fill",t,this),L(n,"stroke",t,this);var i=this.transform,o=null!=i,a=n.getElementsByTagName("stroke")[0];if(a){var s=t.lineWidth;if(o&&!t.strokeNoScale){var l=i[0]*i[3]-i[1]*i[2];s*=_(x(l))}a.weight=s+"px"}var u=this.path||(this.path=new p);this.__dirtyPath&&(u.beginPath(),this.buildPath(u,this.shape),u.toStatic(),this.__dirtyPath=!1),n.path=function(e,t){var n,i,o,a,s,l,u=v.M,c=v.C,h=v.L,d=v.A,f=v.Q,p=[],m=e.data,g=e.len();for(a=0;a
":"")+r.join("
"))}})},this),a.reverse(),a=a.join("
");var c=t.position;this._showOrMove(u,function(){this._updateContentNotChangedOnAxis(e)?this._updatePosition(u,c,o[0],o[1],this._tooltipContent,s):this._showTooltipContent(u,a,s,Math.random(),o[0],o[1],c)})},_showSeriesItemTooltip:function(e,t,n){var r=this._ecModel,o=t.seriesIndex,a=r.getSeriesByIndex(o),s=t.dataModel||a,l=t.dataIndex,u=t.dataType,c=s.getData(),h=i([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model,this._tooltipModel]),d=h.get("trigger");if(null==d||"item"===d){var f=s.getDataParams(l,u),p=s.formatTooltip(l,!1,u),m="item_"+s.name+"_"+l;this._showOrMove(h,function(){this._showTooltipContent(h,p,f,m,e.offsetX,e.offsetY,e.position,e.target)}),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},_showComponentItemTooltip:function(e,t,n){var i=t.tooltip;if("string"==typeof i){i={content:i,formatter:i}}var r=new g(i,this._tooltipModel,this._ecModel),o=r.get("content"),a=Math.random();this._showOrMove(r,function(){this._showTooltipContent(r,o,r.get("formatterParams")||{},a,e.offsetX,e.offsetY,e.position,t)}),n({type:"showTip",from:this.uid})},_showTooltipContent:function(e,t,n,i,r,o,a,s){if(this._ticket="",e.get("showContent")&&e.get("show")){var l=this._tooltipContent,u=e.get("formatter");a=a||e.get("position");var c=t;if(u&&"string"==typeof u)c=h.formatTpl(u,n,!0);else if("function"==typeof u){var d=x(function(t,i){t===this._ticket&&(l.setContent(i),this._updatePosition(e,a,r,o,l,n,s))},this);this._ticket=i,c=u(n,i,d)}l.setContent(c),l.show(e),this._updatePosition(e,a,r,o,l,n,s)}},_updatePosition:function(e,t,n,i,r,s,u){var c=this._api.getWidth(),h=this._api.getHeight();t=t||e.get("position");var d=r.getSize(),f=e.get("align"),p=e.get("verticalAlign"),g=u&&u.getBoundingRect().clone();if(u&&g.applyTransform(u.transform),"function"==typeof t&&(t=t([n,i],s,r.el,g,{viewSize:[c,h],contentSize:d.slice()})),l.isArray(t))n=w(t[0],c),i=w(t[1],h);else if(l.isObject(t)){t.width=d[0],t.height=d[1];var v=m.getLayoutRect(t,{width:c,height:h});n=v.x,i=v.y,f=null,p=null}else if("string"==typeof t&&u){n=(y=function(e,t,n){var i=n[0],r=n[1],o=0,a=0,s=t.width,l=t.height;switch(e){case"inside":o=t.x+s/2-i/2,a=t.y+l/2-r/2;break;case"top":o=t.x+s/2-i/2,a=t.y-r-5;break;case"bottom":o=t.x+s/2-i/2,a=t.y+l+5;break;case"left":o=t.x-i-5,a=t.y+l/2-r/2;break;case"right":o=t.x+s+5,a=t.y+l/2-r/2}return[o,a]}(t,g,d))[0],i=y[1]}else{n=(y=function(e,t,n,i,r,a,s){var l=o(n),u=l.width,c=l.height;return null!=a&&(e+u+a>i?e-=u+a:e+=a),null!=s&&(t+c+s>r?t-=c+s:t+=s),[e,t]}(n,i,r.el,c,h,f?null:20,p?null:20))[0],i=y[1]}if(f&&(n-=a(f)?d[0]/2:"right"===f?d[0]:0),p&&(i-=a(p)?d[1]/2:"bottom"===p?d[1]:0),e.get("confine")){var y;n=(y=function(e,t,n,i,r){var a=o(n),s=a.width,l=a.height;return e=Math.min(e+s,i)-s,t=Math.min(t+l,r)-l,e=Math.max(e,0),t=Math.max(t,0),[e,t]}(n,i,r.el,c,h))[0],i=y[1]}r.moveTo(n,i)},_updateContentNotChangedOnAxis:function(e){var t=this._lastDataByCoordSys,n=!!t&&t.length===e.length;return n&&b(t,function(t,i){var r=t.dataByAxis||{},o=(e[i]||{}).dataByAxis||[];(n&=r.length===o.length)&&b(r,function(e,t){var i=o[t]||{},r=e.seriesDataIndices||[],a=i.seriesDataIndices||[];(n&=e.value===i.value&&e.axisType===i.axisType&&e.axisId===i.axisId&&r.length===a.length)&&b(r,function(e,t){var i=a[t];n&=e.seriesIndex===i.seriesIndex&&e.dataIndex===i.dataIndex})})}),this._lastDataByCoordSys=e,!!n},_hide:function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},dispose:function(e,t){u.node||(this._tooltipContent.hide(),v.unregister("itemTooltip",t))}});e.exports=C},XCrL:function(e,t,n){function i(e,t,n){var i=this._targetInfoList=[],r={},a=o(t,e);f(_,function(e,t){(!n||!n.include||p(n.include,t)>=0)&&e(a,i,r)})}function r(e){return e[0]>e[1]&&e.reverse(),e}function o(e,t){return h.parseFinder(e,t,{includeMainTypes:v})}function a(e,t,n,i){var o=n.getAxis(["x","y"][e]),a=r(u.map([0,1],function(e){return t?o.coordToData(o.toLocalCoord(i[e])):o.toGlobalCoord(o.dataToCoord(i[e]))})),s=[];return s[e]=a,s[1-e]=[NaN,NaN],{values:a,xyMinMax:s}}function s(e,t,n,i){return[t[0]-i[e]*n[0],t[1]-i[e]*n[1]]}function l(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}n("4Nz2").__DEV__;var u=n("/gxq"),c=n("0sHC"),h=n("vXqC"),d=n("ZJ+T"),f=u.each,p=u.indexOf,m=u.curry,g=["dataToPoint","pointToData"],v=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],y=i.prototype;y.setOutputRanges=function(e,t){this.matchOutputRanges(e,t,function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var i=w[e.brushType](0,n,t);e.__rangeOffset={offset:k[e.brushType](i.values,e.range,[1,1]),xyMinMax:i.xyMinMax}}})},y.matchOutputRanges=function(e,t,n){f(e,function(e){var i=this.findTargetInfo(e,t);i&&!0!==i&&u.each(i.coordSyses,function(i){var r=w[e.brushType](1,i,e.range);n(e,r.values,i,t)})},this)},y.setInputRanges=function(e,t){f(e,function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&!0!==n){e.panelId=n.panelId;var i=w[e.brushType](0,n.coordSys,e.coordRange),r=e.__rangeOffset;e.range=r?k[e.brushType](i.values,r.offset,function(e,t){var n=l(e),i=l(t),r=[n[0]/i[0],n[1]/i[1]];return isNaN(r[0])&&(r[0]=1),isNaN(r[1])&&(r[1]=1),r}(i.xyMinMax,r.xyMinMax)):i.values}},this)},y.makePanelOpts=function(e,t){return u.map(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t&&t(n),clipPath:d.makeRectPanelClipPath(i),isTargetByCursor:d.makeRectIsTargetByCursor(i,e,n.coordSysModel),getLinearBrushOtherExtent:d.makeLinearBrushOtherExtent(i)}})},y.controlSeries=function(e,t,n){var i=this.findTargetInfo(e,n);return!0===i||i&&p(i.coordSyses,t.coordinateSystem)>=0},y.findTargetInfo=function(e,t){for(var n=this._targetInfoList,i=o(t,e),r=0;r=0&&function(e){var t=function(e){for(var t=0;t.8?"right":c[0]<-.8?"left":"center",p=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";n.attr({style:{textVerticalAlign:n.__verticalAlign||p,textAlign:n.__textAlign||f},position:d,scale:[i,i]})}}}},p._createLine=function(e,t,n){var a=e.hostModel,l=function(e){var t=new c({name:"line"});return o(t.shape,e),t}(e.getItemLayout(t));l.shape.percent=0,h.initProps(l,{shape:{percent:1}},a,t),this.add(l);var u=new h.Text({name:"label"});this.add(u),s.each(f,function(n){var o=r(n,e,t);this.add(o),this[i(n)]=e.getItemVisual(t,n)},this),this._updateCommonStl(e,t,n)},p.updateData=function(e,t,n){var a=e.hostModel,l=this.childOfName("line"),u=e.getItemLayout(t),c={shape:{}};o(c.shape,u),h.updateProps(l,c,a,t),s.each(f,function(n){var o=e.getItemVisual(t,n),a=i(n);if(this[a]!==o){this.remove(this.childOfName(n));var s=r(n,e,t);this.add(s)}this[a]=o},this),this._updateCommonStl(e,t,n)},p._updateCommonStl=function(e,t,n){var i=e.hostModel,r=this.childOfName("line"),o=n&&n.lineStyle,a=n&&n.hoverLineStyle,l=n&&n.labelModel,u=n&&n.hoverLabelModel;if(!n||e.hasItemOption){var c=e.getItemModel(t);o=c.getModel("lineStyle.normal").getLineStyle(),a=c.getModel("lineStyle.emphasis").getLineStyle(),l=c.getModel("label.normal"),u=c.getModel("label.emphasis")}var p=e.getItemVisual(t,"color"),m=s.retrieve3(e.getItemVisual(t,"opacity"),o.opacity,1);r.useStyle(s.defaults({strokeNoScale:!0,fill:"none",stroke:p,opacity:m},o)),r.hoverStyle=a,s.each(f,function(e){var t=this.childOfName(e);t&&(t.setColor(p),t.setStyle({opacity:m}))},this);var g,v,y,_,x=l.getShallow("show"),b=u.getShallow("show"),w=this.childOfName("label");if(x||b){var k=i.getRawValue(t);v=null==k?v=e.getName(t):isFinite(k)?d(k):k,g=p||"#000",y=s.retrieve2(i.getFormattedLabel(t,"normal",e.dataType),v),_=s.retrieve2(i.getFormattedLabel(t,"emphasis",e.dataType),y)}if(x){var C=h.setTextStyle(w.style,l,{text:y},{autoColor:g});w.__textAlign=C.textAlign,w.__verticalAlign=C.textVerticalAlign,w.__position=l.get("position")||"middle"}else w.setStyle("text",null);w.hoverStyle=b?{text:_,textFill:u.getTextColor(!0),fontStyle:u.getShallow("fontStyle"),fontWeight:u.getShallow("fontWeight"),fontSize:u.getShallow("fontSize"),fontFamily:u.getShallow("fontFamily")}:{text:null},w.ignore=!x&&!b,h.setHoverStyle(this)},p.highlight=function(){this.trigger("emphasis")},p.downplay=function(){this.trigger("normal")},p.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},p.setLinePoints=function(e){var t=this.childOfName("line");o(t.shape,e),t.dirty()},s.inherits(a,h.Group);var m=a;e.exports=m},"c/Tr":function(e,t,n){e.exports={default:n("5zde"),__esModule:!0}},cGG2:function(e,t,n){"use strict";function i(e){return"[object Array]"===c.call(e)}function r(e){return null!==e&&"object"==typeof e}function o(e){return"[object Function]"===c.call(e)}function a(e,t){if(null!==e&&void 0!==e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n