8 lines
109 KiB
JavaScript
8 lines
109 KiB
JavaScript
|
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[62120],{62120:function($,S,T){$=T.nmd($),ace.define("ace/mode/slim_highlight_rules",["require","exports","module","ace/config","ace/lib/oop","ace/mode/text_highlight_rules"],function(a,h,_){"use strict";var x=a("../config").$modes,f=a("../lib/oop"),d=a("./text_highlight_rules").TextHighlightRules,g=function(){this.$rules={start:[{token:"keyword",regex:/^(\s*)(\w+):\s*/,onMatch:function(o,u,r,i){var s=/^\s*/.exec(i)[0],e=o.match(/^(\s*)(\w+):/),t=e[2];return/^(javascript|ruby|coffee|markdown|css|scss|sass|less)$/.test(t)||(t=""),r.unshift("language-embed",[],[s,t],u),this.token},stateName:"language-embed",next:[{token:"string",regex:/^(\s*)/,onMatch:function(o,u,r,i){var s=r[2][0];return s.length>=o.length?(r.splice(0,3),this.next=r.shift(),this.token):(this.next="",[{type:"text",value:s}])},next:""},{token:"string",regex:/.+/,onMatch:function(o,u,r,i){var s=r[2][0],e=r[2][1],t=r[1];if(x[e]){var n=x[e].getTokenizer().getLineTokens(i.slice(s.length),t.slice(0));return r[1]=n.state,n.tokens}return this.token}}]},{token:"constant.begin.javascript.filter.slim",regex:"^(\\s*)():$"},{token:"constant.begin..filter.slim",regex:"^(\\s*)(ruby):$"},{token:"constant.begin.coffeescript.filter.slim",regex:"^(\\s*)():$"},{token:"constant.begin..filter.slim",regex:"^(\\s*)(markdown):$"},{token:"constant.begin.css.filter.slim",regex:"^(\\s*)():$"},{token:"constant.begin.scss.filter.slim",regex:"^(\\s*)():$"},{token:"constant.begin..filter.slim",regex:"^(\\s*)(sass):$"},{token:"constant.begin..filter.slim",regex:"^(\\s*)(less):$"},{token:"constant.begin..filter.slim",regex:"^(\\s*)(erb):$"},{token:"keyword.html.tags.slim",regex:"^(\\s*)((:?\\*(\\w)+)|doctype html|abbr|acronym|address|applet|area|article|aside|audio|base|basefont|bdo|big|blockquote|body|br|button|canvas|caption|center|cite|code|col|colgroup|command|datalist|dd|del|details|dialog|dfn|dir|div|dl|dt|embed|fieldset|figure|font|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hgroup|hr|html|i|iframe|img|input|ins|keygen|kbd|label|legend|link|li|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|samp|script|section|select|small|source|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video|xmp|b|u|s|em|a)(?:([.#](\\w|\\.)+)+\\s?)?\\b"},{token:"keyword.slim",regex:"^(\\s*)(?:([.#](\\w|\\.)+)+\\s?)"},{token:"string",regex:/^(\s*)('|\||\/|(\/!))\s*/,onMatch:function(o,u,r,i){var s=/^\s*/.exec(i)[0];return r.length<1?r.push(this.next):r[0]="mlString",r.length<2?r.push(s.length):r[1]=s.length,this.token},next:"mlString"},{token:"keyword.control.slim",regex:"^(\\s*)(\\-|==|=)",push:[{token:"control.end.slim",regex:"$",next:"pop"},{include:"rubyline"},{include:"misc"}]},{token:"paren",regex:"\\(",push:[{token:"paren",regex:"\\)",next:"pop"},{include:"misc"}]},{token:"paren",regex:"\\[",push:[{token:"paren",regex:"\\]",next:"pop"},{include:"misc"}]},{include:"misc"}],mlString:[{token:"indent",regex:/^\s*/,onMatch:function(o,u,r){var i=r[1];return i>=o.length?(this.next="start",r.splice(0)):this.next="mlString",this.token},next:"start"},{defaultToken:"string"}],rubyline:[{token:"keyword.operator.ruby.embedded.slim",regex:"(==|=)(<>|><|<'|'<|<|>)?|-"},{token:"list.ruby.operators.slim",regex:"(\\b)(for|in|do|if|else|elsif|unless|while|yield|not|and|or)\\b"},{token:"string",regex:"['](.)*?[']"},{token:"string",regex:'["](.)*?["]'}],misc:[{token:"class.variable.slim",regex:"\\@([a-zA-Z_][a-zA-Z0-9_]*)\\b"},{token:"list.meta.slim",regex:"(\\b)(true|false|nil)(\\b)"},{token:"keyword.operator.equals.slim",regex:"="},{token:"string",regex:"['](.)*?[']"},{token:"string",regex:'["](.)*?["]'}]},this.normalizeRules()};f.inherits(g,d),h.SlimHighlightRules=g}),ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(a,h,_){"use strict";var x=a("../lib/oop"),f=a("./text_highlight_rules").TextHighlightRules,d=function(){this.$rules={st
|
||
|
`){var n=s.getCursorPosition(),l=e.getLine(n.row),c=new d(e,n.row,n.column),p=c.getCurrentToken();if(p&&p.type.indexOf("tag-close")!==-1){if(p.value=="/>")return;for(;p&&p.type.indexOf("tag-name")===-1;)p=c.stepBackward();if(!p)return;var v=p.value,w=c.getCurrentTokenRow();if(p=c.stepBackward(),!p||p.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[v]){var k=e.getTokenAt(n.row,n.column+1),l=e.getLine(w),R=this.$getIndent(l),b=R+e.getTabString();return k&&k.value==="</"?{text:`
|
||
|
`+b+`
|
||
|
`+R,selection:[1,b.length,1,b.length]}:{text:`
|
||
|
`+b}}}}})};x.inherits(u,f),h.XmlBehaviour=u}),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(a,h,_){"use strict";var x=a("../../lib/oop"),f=a("./fold_mode").FoldMode,d=h.FoldMode=function(g,o){this.defaultMode=g,this.subModes=o};x.inherits(d,f),function(){this.$getMode=function(g){typeof g!="string"&&(g=g[0]);for(var o in this.subModes)if(g.indexOf(o)===0)return this.subModes[o];return null},this.$tryMode=function(g,o,u,r){var i=this.$getMode(g);return i?i.getFoldWidget(o,u,r):""},this.getFoldWidget=function(g,o,u){return this.$tryMode(g.getState(u-1),g,o,u)||this.$tryMode(g.getState(u),g,o,u)||this.defaultMode.getFoldWidget(g,o,u)},this.getFoldWidgetRange=function(g,o,u){var r=this.$getMode(g.getState(u-1));return(!r||!r.getFoldWidget(g,o,u))&&(r=this.$getMode(g.getState(u))),(!r||!r.getFoldWidget(g,o,u))&&(r=this.defaultMode),r.getFoldWidgetRange(g,o,u)}}.call(d.prototype)}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(a,h,_){"use strict";var x=a("../../lib/oop"),f=a("../../range").Range,d=a("./fold_mode").FoldMode,g=h.FoldMode=function(r,i){d.call(this),this.voidElements=r||{},this.optionalEndTags=x.mixin({},this.voidElements),i&&x.mixin(this.optionalEndTags,i)};x.inherits(g,d);var o=function(){this.tagName="",this.closing=!1,this.selfClosing=!1,this.start={row:0,column:0},this.end={row:0,column:0}};function u(r,i){return r.type.lastIndexOf(i+".xml")>-1}(function(){this.getFoldWidget=function(r,i,s){var e=this._getFirstTagInLine(r,s);return e?e.closing||!e.tagName&&e.selfClosing?i==="markbeginend"?"end":"":!e.tagName||e.selfClosing||this.voidElements.hasOwnProperty(e.tagName.toLowerCase())||this._findEndTagInLine(r,s,e.tagName,e.end.column)?"":"start":this.getCommentFoldWidget(r,s)},this.getCommentFoldWidget=function(r,i){return/comment/.test(r.getState(i))&&/<!-/.test(r.getLine(i))?"start":""},this._getFirstTagInLine=function(r,i){for(var s=r.getTokens(i),e=new o,t=0;t<s.length;t++){var n=s[t];if(u(n,"tag-open")){if(e.end.column=e.start.column+n.value.length,e.closing=u(n,"end-tag-open"),n=s[++t],!n)return null;for(e.tagName=n.value,e.end.column+=n.value.length,t++;t<s.length;t++)if(n=s[t],e.end.column+=n.value.length,u(n,"tag-close")){e.selfClosing=n.value=="/>";break}return e}else if(u(n,"tag-close"))return e.selfClosing=n.value=="/>",e;e.start.column+=n.value.length}return null},this._findEndTagInLine=function(r,i,s,e){for(var t=r.getTokens(i),n=0,l=0;l<t.length;l++){var c=t[l];if(n+=c.value.length,!(n<e)&&u(c,"end-tag-open")&&(c=t[l+1],c&&c.value==s))return!0}return!1},this.getFoldWidgetRange=function(r,i,s){var e=r.getMatchingTags({row:s,column:0});return e?new f(e.openTag.end.row,e.openTag.end.column,e.closeTag.start.row,e.closeTag.start.column):this.getCommentFoldWidget(r,s)&&r.getCommentFoldRange(s,r.getLine(s).length)}}).call(g.prototype)}),ace.define("ace/mode/folding/html",["require","exports","module","ace/lib/oop","ace/mode/folding/mixed","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(a,h,_){"use strict";var x=a("../../lib/oop"),f=a("./mixed").FoldMode,d=a("./xml").FoldMode,g=a("./cstyle").FoldMode,o=h.FoldMode=function(u,r){f.call(this,new d(u,r),{"js-":new g,"css-":new g})};x.inherits(o,f)}),ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"],function(a,h,_){"use strict";var x=a("../token_iterator").TokenIterator,f=["accesskey","class","contenteditable","contextmenu","dir","draggable","dropzone","hidden","id","inert","itemid","itemprop","itemref","itemscope","itemtype","lang","spellcheck","style","tabindex","title","translate"],d=["onabort","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncuechange","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmet
|
||
|
`&&t!=="\r"&&t!==`
|
||
|
`)return!1;var n=this.getTokenizer().getLineTokens(e.trim(),s).tokens;if(!n)return!1;do var l=n.pop();while(l&&(l.type=="comment"||l.type=="text"&&l.value.match(/^\s+$/)));return l?l.type=="keyword"&&i[l.value]:!1},this.autoOutdent=function(s,e,t){t+=1;var n=this.$getIndent(e.getLine(t)),l=e.getTabString();n.slice(-l.length)==l&&e.remove(new g(t,n.length-l.length,t,n.length))},this.$id="ace/mode/sh",this.snippetFileId="ace/snippets/sh"}.call(r.prototype),h.Mode=r}),ace.define("ace/mode/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/xml_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/xml","ace/worker/worker_client"],function(a,h,_){"use strict";var x=a("../lib/oop"),f=a("../lib/lang"),d=a("./text").Mode,g=a("./xml_highlight_rules").XmlHighlightRules,o=a("./behaviour/xml").XmlBehaviour,u=a("./folding/xml").FoldMode,r=a("../worker/worker_client").WorkerClient,i=function(){this.HighlightRules=g,this.$behaviour=new o,this.foldingRules=new u};x.inherits(i,d),function(){this.voidElements=f.arrayToMap([]),this.blockComment={start:"<!--",end:"-->"},this.createWorker=function(s){var e=new r(["ace"],"ace/mode/xml_worker","Worker");return e.attachToDocument(s.getDocument()),e.on("error",function(t){s.setAnnotations(t.data)}),e.on("terminate",function(){s.clearAnnotations()}),e},this.$id="ace/mode/xml"}.call(i.prototype),h.Mode=i}),ace.define("ace/mode/markdown",["require","exports","module","ace/lib/oop","ace/mode/behaviour/cstyle","ace/mode/text","ace/mode/markdown_highlight_rules","ace/mode/folding/markdown","ace/mode/javascript","ace/mode/html","ace/mode/sh","ace/mode/sh","ace/mode/xml","ace/mode/css"],function(a,h,_){"use strict";var x=a("../lib/oop"),f=a("./behaviour/cstyle").CstyleBehaviour,d=a("./text").Mode,g=a("./markdown_highlight_rules").MarkdownHighlightRules,o=a("./folding/markdown").FoldMode,u=function(){this.HighlightRules=g,this.createModeDelegates({javascript:a("./javascript").Mode,html:a("./html").Mode,bash:a("./sh").Mode,sh:a("./sh").Mode,xml:a("./xml").Mode,css:a("./css").Mode}),this.foldingRules=new o,this.$behaviour=new f({braces:!0})};x.inherits(u,d),function(){this.type="text",this.blockComment={start:"<!--",end:"-->"},this.$quotes={'"':'"',"`":"`"},this.getNextLineIndent=function(r,i,s){if(r=="listblock"){var e=/^(\s*)(?:([-+*])|(\d+)\.)(\s+)/.exec(i);if(!e)return"";var t=e[2];return t||(t=parseInt(e[3],10)+1+"."),e[1]+t+e[4]}else return this.$getIndent(i)},this.$id="ace/mode/markdown",this.snippetFileId="ace/snippets/markdown"}.call(u.prototype),h.Mode=u}),ace.define("ace/mode/coffee_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(a,h,_){"use strict";var x=a("../lib/oop"),f=a("./text_highlight_rules").TextHighlightRules;x.inherits(d,f);function d(){var g="[$A-Za-z_\\x7f-\\uffff][$\\w\\x7f-\\uffff]*",o="this|throw|then|try|typeof|super|switch|return|break|by|continue|catch|class|in|instanceof|is|isnt|if|else|extends|for|own|finally|function|while|when|new|no|not|delete|debugger|do|loop|of|off|or|on|unless|until|and|yes|yield|export|import|default",u="true|false|null|undefined|NaN|Infinity",r="case|const|function|var|void|with|enum|implements|interface|let|package|private|protected|public|static",i="Array|Boolean|Date|Function|Number|Object|RegExp|ReferenceError|String|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray",s="Math|JSON|isNaN|isFinite|parseInt|parseFloat|encodeURI|encodeURIComponent|decodeURI|decodeURIComponent|String|",e="window|arguments|prototype|document",t=this.createKeywordMapper({keyword:o,"constant.language":u,"invalid.illegal":r,"language.support.class":i,"language.support.function":s,"variable.language":e},"identifier"),n={token:["paren.lparen","variable.parameter","paren.rparen","text","storage.type"],regex:/(?:(\()((?:"[^")]*?"|'[^')]*?'|\/[^\/)]*?\/|[^()"'\/])*?)(\))(\s*))?([\-=]>)/.source},l=/\\(?:x[0-9a
|