filesbox/web/dist/30905.5364eb81.async.js
2024-07-26 14:10:54 +08:00

2 lines
8.1 KiB
JavaScript

(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[30905],{30905:function(h,S,b){h=b.nmd(h),ace.define("ace/mode/asciidoc_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(i,d,$){"use strict";var x=i("../lib/oop"),u=i("./text_highlight_rules").TextHighlightRules,s=function(){var c="[a-zA-Z\xA1-\uFFFF]+\\b";this.$rules={start:[{token:"empty",regex:/$/},{token:"literal",regex:/^\.{4,}\s*$/,next:"listingBlock"},{token:"literal",regex:/^-{4,}\s*$/,next:"literalBlock"},{token:"string",regex:/^\+{4,}\s*$/,next:"passthroughBlock"},{token:"keyword",regex:/^={4,}\s*$/},{token:"text",regex:/^\s*$/},{token:"empty",regex:"",next:"dissallowDelimitedBlock"}],dissallowDelimitedBlock:[{include:"paragraphEnd"},{token:"comment",regex:"^//.+$"},{token:"keyword",regex:"^(?:NOTE|TIP|IMPORTANT|WARNING|CAUTION):"},{include:"listStart"},{token:"literal",regex:/^\s+.+$/,next:"indentedBlock"},{token:"empty",regex:"",next:"text"}],paragraphEnd:[{token:"doc.comment",regex:/^\/{4,}\s*$/,next:"commentBlock"},{token:"tableBlock",regex:/^\s*[|!]=+\s*$/,next:"tableBlock"},{token:"keyword",regex:/^(?:--|''')\s*$/,next:"start"},{token:"option",regex:/^\[.*\]\s*$/,next:"start"},{token:"pageBreak",regex:/^>{3,}$/,next:"start"},{token:"literal",regex:/^\.{4,}\s*$/,next:"listingBlock"},{token:"titleUnderline",regex:/^(?:={2,}|-{2,}|~{2,}|\^{2,}|\+{2,})\s*$/,next:"start"},{token:"singleLineTitle",regex:/^={1,5}\s+\S.*$/,next:"start"},{token:"otherBlock",regex:/^(?:\*{2,}|_{2,})\s*$/,next:"start"},{token:"optionalTitle",regex:/^\.[^.\s].+$/,next:"start"}],listStart:[{token:"keyword",regex:/^\s*(?:\d+\.|[a-zA-Z]\.|[ixvmIXVM]+\)|\*{1,5}|-|\.{1,5})\s/,next:"listText"},{token:"meta.tag",regex:/^.+(?::{2,4}|;;)(?: |$)/,next:"listText"},{token:"support.function.list.callout",regex:/^(?:<\d+>|\d+>|>) /,next:"text"},{token:"keyword",regex:/^\+\s*$/,next:"start"}],text:[{token:["link","variable.language"],regex:/((?:https?:\/\/|ftp:\/\/|file:\/\/|mailto:|callto:)[^\s\[]+)(\[.*?\])/},{token:"link",regex:/(?:https?:\/\/|ftp:\/\/|file:\/\/|mailto:|callto:)[^\s\[]+/},{token:"link",regex:/\b[\w\.\/\-]+@[\w\.\/\-]+\b/},{include:"macros"},{include:"paragraphEnd"},{token:"literal",regex:/\+{3,}/,next:"smallPassthrough"},{token:"escape",regex:/\((?:C|TM|R)\)|\.{3}|->|<-|=>|<=|&#(?:\d+|x[a-fA-F\d]+);|(?: |^)--(?=\s+\S)/},{token:"escape",regex:/\\[_*'`+#]|\\{2}[_*'`+#]{2}/},{token:"keyword",regex:/\s\+$/},{token:"text",regex:c},{token:["keyword","string","keyword"],regex:/(<<[\w\d\-$]+,)(.*?)(>>|$)/},{token:"keyword",regex:/<<[\w\d\-$]+,?|>>/},{token:"constant.character",regex:/\({2,3}.*?\){2,3}/},{token:"keyword",regex:/\[\[.+?\]\]/},{token:"support",regex:/^\[{3}[\w\d =\-]+\]{3}/},{include:"quotes"},{token:"empty",regex:/^\s*$/,next:"start"}],listText:[{include:"listStart"},{include:"text"}],indentedBlock:[{token:"literal",regex:/^[\s\w].+$/,next:"indentedBlock"},{token:"literal",regex:"",next:"start"}],listingBlock:[{token:"literal",regex:/^\.{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"constant.numeric",regex:"<\\d+>"},{token:"literal",regex:"[^<]+"},{token:"literal",regex:"<"}],literalBlock:[{token:"literal",regex:/^-{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"constant.numeric",regex:"<\\d+>"},{token:"literal",regex:"[^<]+"},{token:"literal",regex:"<"}],passthroughBlock:[{token:"literal",regex:/^\+{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"literal",regex:c+"|\\d+"},{include:"macros"},{token:"literal",regex:"."}],smallPassthrough:[{token:"literal",regex:/[+]{3,}/,next:"dissallowDelimitedBlock"},{token:"literal",regex:/^\s*$/,next:"dissallowDelimitedBlock"},{token:"literal",regex:c+"|\\d+"},{include:"macros"}],commentBlock:[{token:"doc.comment",regex:/^\/{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"doc.comment",regex:"^.*$"}],tableBlock:[{token:"tableBlock",regex:/^\s*\|={3,}\s*$/,next:"dissallowDelimitedBlock"},{token:"tableBlock",regex:/^\s*!={3,}\s*$/,next:"innerTableBlock"},{token:"tableBlock",regex:/\|/},{include:"text",noEscape:!0}],innerTableBlock:[{token:"tableBlock",regex:/^\s*!={3,}\s*$/,next:"tableBlock"},{token:"tableBlock",regex:/^\s*|={3,}\s*$/,next:"dissallowDelimitedBlock"},{token:"tableBlock",regex:/!/}],macros:[{token:"macro",regex:/{[\w\-$]+}/},{token:["text","string","text","constant.character","text"],regex:/({)([\w\-$]+)(:)?(.+)?(})/},{token:["text","markup.list.macro","keyword","string"],regex:/(\w+)(footnote(?:ref)?::?)([^\s\[]+)?(\[.*?\])?/},{token:["markup.list.macro","keyword","string"],regex:/([a-zA-Z\-][\w\.\/\-]*::?)([^\s\[]+)(\[.*?\])?/},{token:["markup.list.macro","keyword"],regex:/([a-zA-Z\-][\w\.\/\-]+::?)(\[.*?\])/},{token:"keyword",regex:/^:.+?:(?= |$)/}],quotes:[{token:"string.italic",regex:/__[^_\s].*?__/},{token:"string.italic",regex:t("_")},{token:"keyword.bold",regex:/\*\*[^*\s].*?\*\*/},{token:"keyword.bold",regex:t("\\*")},{token:"literal",regex:t("\\+")},{token:"literal",regex:/\+\+[^+\s].*?\+\+/},{token:"literal",regex:/\$\$.+?\$\$/},{token:"literal",regex:t("`")},{token:"keyword",regex:t("^")},{token:"keyword",regex:t("~")},{token:"keyword",regex:/##?/},{token:"keyword",regex:/(?:\B|^)``|\b''/}]};function t(n){var g=/\w/.test(n)?"\\b":"(?:\\B|^)";return g+n+"[^"+n+"].*?"+n+"(?![\\w*])"}var k={macro:"constant.character",tableBlock:"doc.comment",titleUnderline:"markup.heading",singleLineTitle:"markup.heading",pageBreak:"string",option:"string.regexp",otherBlock:"markup.list",literal:"support.function",optionalTitle:"constant.numeric",escape:"constant.language.escape",link:"markup.underline.list"};for(var e in this.$rules)for(var o=this.$rules[e],a=o.length;a--;){var r=o[a];if(r.include||typeof r=="string"){var l=[a,1].concat(this.$rules[r.include||r]);r.noEscape&&(l=l.filter(function(n){return!n.next})),o.splice.apply(o,l)}else r.token in k&&(r.token=k[r.token])}};x.inherits(s,u),d.AsciidocHighlightRules=s}),ace.define("ace/mode/folding/asciidoc",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(i,d,$){"use strict";var x=i("../../lib/oop"),u=i("./fold_mode").FoldMode,s=i("../../range").Range,c=d.FoldMode=function(){};x.inherits(c,u),function(){this.foldingStartMarker=/^(?:\|={10,}|[\.\/=\-~^+]{4,}\s*$|={1,5} )/,this.singleLineHeadingRe=/^={1,5}(?=\s+\S)/,this.getFoldWidget=function(t,k,e){var o=t.getLine(e);return this.foldingStartMarker.test(o)?o[0]=="="?this.singleLineHeadingRe.test(o)?"start":t.getLine(e-1).length!=t.getLine(e).length?"":"start":t.bgTokenizer.getState(e)=="dissallowDelimitedBlock"?"end":"start":""},this.getFoldWidgetRange=function(t,k,e){var o=t.getLine(e),a=o.length,r=t.getLength(),l=e,n=e;if(!o.match(this.foldingStartMarker))return;var g;function p(m){return g=t.getTokens(m)[0],g&&g.type}var y=["=","-","~","^","+"],v="markup.heading",_=this.singleLineHeadingRe;function B(){var m=g.value.match(_);if(m)return m[0].length;var w=y.indexOf(g.value[0])+1;return w==1&&t.getLine(e-1).length!=t.getLine(e).length?Infinity:w}if(p(e)==v){for(var T=B();++e<r;)if(p(e)==v){var R=B();if(R<=T)break}var L=g&&g.value.match(this.singleLineHeadingRe);if(n=L?e-1:e-2,n>l)for(;n>l&&(!p(n)||g.value[0]=="[");)n--;if(n>l){var f=t.getLine(n).length;return new s(l,a,n,f)}}else{var M=t.bgTokenizer.getState(e);if(M=="dissallowDelimitedBlock"){for(;e-- >0&&t.bgTokenizer.getState(e).lastIndexOf("Block")!=-1;);if(n=e+1,n<l){var f=t.getLine(e).length;return new s(n,5,l,a-5)}}else{for(;++e<r&&t.bgTokenizer.getState(e)!="dissallowDelimitedBlock";);if(n=e,n>l){var f=t.getLine(e).length;return new s(l,5,n,f-5)}}}}}.call(c.prototype)}),ace.define("ace/mode/asciidoc",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/asciidoc_highlight_rules","ace/mode/folding/asciidoc"],function(i,d,$){"use strict";var x=i("../lib/oop"),u=i("./text").Mode,s=i("./asciidoc_highlight_rules").AsciidocHighlightRules,c=i("./folding/asciidoc").FoldMode,t=function(){this.HighlightRules=s,this.foldingRules=new c};x.inherits(t,u),function(){this.type="text",this.getNextLineIndent=function(k,e,o){if(k=="listblock"){var a=/^((?:.+)?)([-+*][ ]+)/.exec(e);return a?new Array(a[1].length+1).join(" ")+a[2]:""}else return this.$getIndent(e)},this.$id="ace/mode/asciidoc"}.call(t.prototype),d.Mode=t}),function(){ace.require(["ace/mode/asciidoc"],function(i){h&&(h.exports=i)})}()}}]);