5 lines
12 KiB
JavaScript
5 lines
12 KiB
JavaScript
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[18311],{18311:function(T,D,F){T=F.nmd(T),ace.define("ace/mode/vbscript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(l,h,I){"use strict";var k=l("../lib/oop"),m=l("./text_highlight_rules").TextHighlightRules,p=function(){var C=this.createKeywordMapper({"keyword.control.asp":"If|Then|Else|ElseIf|End|While|Wend|For|To|Each|Case|Select|Return|Continue|Do|Until|Loop|Next|With|Exit|Function|Property|Type|Enum|Sub|IIf|Class","storage.type.asp":"Dim|Call|Const|Redim|Set|Let|Get|New|Randomize|Option|Explicit|Preserve|Erase|Execute|ExecuteGlobal","storage.modifier.asp":"Private|Public|Default","keyword.operator.asp":"Mod|And|Not|Or|Xor|As|Eqv|Imp|Is","constant.language.asp":"Empty|False|Nothing|Null|True","variable.language.vb.asp":"Me","support.class.vb.asp":"RegExp","support.class.asp":"Application|ObjectContext|Request|Response|Server|Session","support.class.collection.asp":"Contents|StaticObjects|ClientCertificate|Cookies|Form|QueryString|ServerVariables","support.constant.asp":"TotalBytes|Buffer|CacheControl|Charset|ContentType|Expires|ExpiresAbsolute|IsClientConnected|PICS|Status|ScriptTimeout|CodePage|LCID|SessionID|Timeout","support.function.asp":"Lock|Unlock|SetAbort|SetComplete|BinaryRead|AddHeader|AppendToLog|BinaryWrite|Clear|Flush|Redirect|Write|CreateObject|HTMLEncode|MapPath|URLEncode|Abandon|Convert|Regex","support.function.event.asp":"Application_OnEnd|Application_OnStart|OnTransactionAbort|OnTransactionCommit|Session_OnEnd|Session_OnStart","support.function.vb.asp":"Array|Add|Asc|Atn|CBool|CByte|CCur|CDate|CDbl|Chr|CInt|CLng|Conversions|Cos|CreateObject|CSng|CStr|Date|DateAdd|DateDiff|DatePart|DateSerial|DateValue|Day|Derived|Math|Escape|Eval|Exists|Exp|Filter|FormatCurrency|FormatDateTime|FormatNumber|FormatPercent|GetLocale|GetObject|GetRef|Hex|Hour|InputBox|InStr|InStrRev|Int|Fix|IsArray|IsDate|IsEmpty|IsNull|IsNumeric|IsObject|Item|Items|Join|Keys|LBound|LCase|Left|Len|LoadPicture|Log|LTrim|RTrim|Trim|Maths|Mid|Minute|Month|MonthName|MsgBox|Now|Oct|Remove|RemoveAll|Replace|RGB|Right|Rnd|Round|ScriptEngine|ScriptEngineBuildVersion|ScriptEngineMajorVersion|ScriptEngineMinorVersion|Second|SetLocale|Sgn|Sin|Space|Split|Sqr|StrComp|String|StrReverse|Tan|Time|Timer|TimeSerial|TimeValue|TypeName|UBound|UCase|Unescape|VarType|Weekday|WeekdayName|Year|AscB|AscW|ChrB|ChrW|InStrB|LeftB|LenB|MidB|RightB|Abs|GetUILanguage","support.type.vb.asp":"vbTrue|vbFalse|vbCr|vbCrLf|vbFormFeed|vbLf|vbNewLine|vbNullChar|vbNullString|vbTab|vbVerticalTab|vbBinaryCompare|vbTextCompare|vbSunday|vbMonday|vbTuesday|vbWednesday|vbThursday|vbFriday|vbSaturday|vbUseSystemDayOfWeek|vbFirstJan1|vbFirstFourDays|vbFirstFullWeek|vbGeneralDate|vbLongDate|vbShortDate|vbLongTime|vbShortTime|vbObjectError|vbEmpty|vbNull|vbInteger|vbLong|vbSingle|vbDouble|vbCurrency|vbDate|vbString|vbObject|vbError|vbBoolean|vbVariant|vbDataObject|vbDecimal|vbByte|vbArray|vbOKOnly|vbOKCancel|vbAbortRetryIgnore|vbYesNoCancel|vbYesNo|vbRetryCancel|vbCritical|vbQuestion|vbExclamation|vbInformation|vbDefaultButton1|vbDefaultButton2|vbDefaultButton3|vbDefaultButton4|vbApplicationModal|vbSystemModal|vbOK|vbCancel|vbAbort|vbRetry|vbIgnore|vbYes|vbNo|vbUseDefault"},"identifier",!0);this.$rules={start:[{token:["meta.ending-space"],regex:"$"},{token:[null],regex:"^(?=\\t)",next:"state_3"},{token:[null],regex:"^(?= )",next:"state_4"},{token:["text","storage.type.function.asp","text","entity.name.function.asp","text","punctuation.definition.parameters.asp","variable.parameter.function.asp","punctuation.definition.parameters.asp"],regex:"^(\\s*)(Function|Sub)(\\s+)([a-zA-Z_]\\w*)(\\s*)(\\()([^)]*)(\\))"},{token:"punctuation.definition.comment.asp",regex:"'|REM(?=\\s|$)",next:"comment",caseInsensitive:!0},{token:"storage.type.asp",regex:"On\\s+Error\\s+(?:Resume\\s+Next|GoTo)\\b",caseInsensitive:!0},{token:"punctuation.definition.string.begin.asp",regex:'"',next:"string"},{token:["punctuation.definition.variable.asp"],regex:"(\\$)[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\\b\\s*"},{token:"constant.numeric.asp",regex:"-?\\b(?:(?:0(?:x|X)[0-9a-fA-F]*)|(?:(?:[0-9]+\\.?[0-9]*)|(?:\\.[0-9]+))(?:(?:e|E)(?:\\+|-)?[0-9]+)?)(?:L|l|UL|ul|u|U|F|f)?\\b"},{regex:"\\w+",token:C},{token:["entity.name.function.asp"],regex:"(?:(\\b[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\\b)(?=\\(\\)?))"},{token:["keyword.operator.asp"],regex:"\\-|\\+|\\*|\\/|\\>|\\<|\\=|\\&|\\\\|\\^"}],state_3:[{token:["meta.odd-tab.tabs","meta.even-tab.tabs"],regex:"(\\t)(\\t)?"},{token:"meta.leading-space",regex:"(?=[^\\t])",next:"start"},{token:"meta.leading-space",regex:".",next:"state_3"}],state_4:[{token:["meta.odd-tab.spaces","meta.even-tab.spaces"],regex:"( )( )?"},{token:"meta.leading-space",regex:"(?=[^ ])",next:"start"},{defaultToken:"meta.leading-space"}],comment:[{token:"comment.line.apostrophe.asp",regex:"$",next:"start"},{defaultToken:"comment.line.apostrophe.asp"}],string:[{token:"constant.character.escape.apostrophe.asp",regex:'""'},{token:"string.quoted.double.asp",regex:'"',next:"start"},{defaultToken:"string.quoted.double.asp"}]}};k.inherits(p,m),h.VBScriptHighlightRules=p}),ace.define("ace/mode/folding/vbscript",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range","ace/token_iterator"],function(l,h,I){"use strict";var k=l("../../lib/oop"),m=l("./fold_mode").FoldMode,p=l("../../range").Range,C=l("../../token_iterator").TokenIterator,x=h.FoldMode=function(){};k.inherits(x,m),function(){this.indentKeywords={class:1,function:1,sub:1,if:1,select:1,do:1,for:1,while:1,with:1,property:1,else:1,elseif:1,end:-1,loop:-1,next:-1,wend:-1},this.foldingStartMarker=/(?:\s|^)(class|function|sub|if|select|do|for|while|with|property|else|elseif)\b/i,this.foldingStopMarker=/\b(end|loop|next|wend)\b/i,this.getFoldWidgetRange=function(i,u,f){var s=i.getLine(f),e=this.foldingStartMarker.test(s),a=this.foldingStopMarker.test(s);if(e||a){var t=a?this.foldingStopMarker.exec(s):this.foldingStartMarker.exec(s),r=t&&t[1].toLowerCase();if(r){var n=i.getTokenAt(f,t.index+2).type;if(n==="keyword.control.asp"||n==="storage.type.function.asp")return this.vbsBlock(i,f,t.index+2)}}},this.getFoldWidget=function(i,u,f){var s=i.getLine(f),e=this.foldingStartMarker.test(s),a=this.foldingStopMarker.test(s);if(e&&!a){var t=this.foldingStartMarker.exec(s),r=t&&t[1].toLowerCase();if(r){var n=i.getTokenAt(f,t.index+2).type;if(n=="keyword.control.asp"||n=="storage.type.function.asp")return r=="if"&&!/then\s*('|$)/i.test(s)?"":"start"}}return""},this.vbsBlock=function(i,u,f,s){var e=new C(i,u,f),a={class:1,function:1,sub:1,if:1,select:1,with:1,property:1,else:1,elseif:1},t=e.getCurrentToken();if(!(!t||t.type!="keyword.control.asp"&&t.type!="storage.type.function.asp")){var r=t.value.toLowerCase(),n=t.value.toLowerCase(),o=[n],g=this.indentKeywords[n];if(!!g){var d=e.getCurrentTokenRange();switch(n){case"property":case"sub":case"function":case"if":case"select":case"do":case"for":case"class":case"while":case"with":var v=i.getLine(u),E=/^\s*If\s+.*\s+Then(?!')\s+(?!')\S/i.test(v);if(E)return;var M=new RegExp("(?:^|\\s)"+n,"i"),B=/^\s*End\s(If|Sub|Select|Function|Class|With|Property)\s*/i.test(v);if(!M.test(v)&&!B)return;if(B){var s=e.getCurrentTokenRange();e.step=e.stepBackward,e.step(),e.step(),t=e.getCurrentToken(),t&&(n=t.value.toLowerCase(),n=="end"&&(d=e.getCurrentTokenRange(),d=new p(d.start.row,d.start.column,s.start.row,s.end.column))),g=-1}break;case"end":var y=e.getCurrentTokenPosition();if(d=e.getCurrentTokenRange(),e.step=e.stepForward,e.step(),e.step(),t=e.getCurrentToken(),t&&(n=t.value.toLowerCase(),n in a)){r=n;var S=e.getCurrentTokenPosition(),w=S.column+n.length;d=new p(y.row,y.column,S.row,w)}e.step=e.stepBackward,e.step(),e.step();break}var _=g===-1?i.getLine(u-1).length:i.getLine(u).length,A=u,c=[];for(c.push(d),e.step=g===-1?e.stepBackward:e.stepForward;t=e.step();){var L=null,R=!1;if(!(t.type!="keyword.control.asp"&&t.type!="storage.type.function.asp")){n=t.value.toLowerCase();var b=g*this.indentKeywords[n];switch(n){case"property":case"sub":case"function":case"if":case"select":case"do":case"for":case"class":case"while":case"with":var v=i.getLine(e.getCurrentTokenRow()),E=/^\s*If\s+.*\s+Then(?!')\s+(?!')\S/i.test(v);E&&(b=0,R=!0);var M=new RegExp("^\\s* end\\s+"+n,"i");M.test(v)&&(b=0,R=!0);break;case"elseif":case"else":b=0,r!="elseif"&&(R=!0);break}if(b>0)o.unshift(n);else if(b<=0&&R===!1){if(o.shift(),!o.length){switch(n){case"end":var y=e.getCurrentTokenPosition();if(L=e.getCurrentTokenRange(),e.step(),e.step(),t=e.getCurrentToken(),t)if(n=t.value.toLowerCase(),n in a){r=="else"||r=="elseif"?n!=="if"&&c.shift():n!=r&&c.shift();var S=e.getCurrentTokenPosition(),w=S.column+n.length;L=new p(y.row,y.column,S.row,w)}else c.shift();else c.shift();e.step=e.stepBackward,e.step(),e.step(),t=e.getCurrentToken(),n=t.value.toLowerCase();break;case"select":case"sub":case"if":case"function":case"class":case"with":case"property":n!=r&&c.shift();break;case"do":r!="loop"&&c.shift();break;case"loop":r!="do"&&c.shift();break;case"for":r!="next"&&c.shift();break;case"next":r!="for"&&c.shift();break;case"while":r!="wend"&&c.shift();break;case"wend":r!="while"&&c.shift();break}break}b===0&&o.unshift(n)}}}if(!t)return null;if(s)return L?c.push(L):c.push(e.getCurrentTokenRange()),c;var u=e.getCurrentTokenRow();if(g===-1){var w=i.getLine(u).length;return new p(u,w,A-1,_)}else return new p(A,_,u-1,i.getLine(u-1).length)}}}}.call(x.prototype)}),ace.define("ace/mode/vbscript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/vbscript_highlight_rules","ace/mode/folding/vbscript","ace/range"],function(l,h,I){"use strict";var k=l("../lib/oop"),m=l("./text").Mode,p=l("./vbscript_highlight_rules").VBScriptHighlightRules,C=l("./folding/vbscript").FoldMode,x=l("../range").Range,i=function(){this.HighlightRules=p,this.foldingRules=new C,this.$behaviour=this.$defaultBehaviour,this.indentKeywords=this.foldingRules.indentKeywords};k.inherits(i,m),function(){this.lineCommentStart=["'","REM"];var u=["else","elseif","end","loop","next","wend"];function f(s,e,a){for(var t=0,r=0;r<s.length;r++){var n=s[r];if(n.type=="keyword.control.asp"||n.type=="storage.type.function.asp"){var o=n.value.toLowerCase();if(o in a)switch(o){case"property":case"sub":case"function":case"select":case"do":case"for":case"class":case"while":case"with":case"if":var g=new RegExp("^\\s* end\\s+"+o,"i"),d=/^\s*If\s+.*\s+Then(?!')\s+(?!')\S/i.test(e);!d&&!g.test(e)&&(t+=a[o]);break;default:t+=a[o];break}}}return t<0?-1:t>0?1:0}this.getNextLineIndent=function(s,e,a){var t=this.$getIndent(e),r=0,n=this.getTokenizer().getLineTokens(e,s),o=n.tokens;return s=="start"&&(r=f(o,e,this.indentKeywords)),r>0?t+a:r<0&&t.substr(t.length-a.length)==a&&!this.checkOutdent(s,e,`
|
|
`)?t.substr(0,t.length-a.length):t},this.checkOutdent=function(s,e,a){if(a!=`
|
|
`&&a!="\r"&&a!=`\r
|
|
`)return!1;var t=this.getTokenizer().getLineTokens(e.trim(),s).tokens;if(!t||!t.length)return!1;var r=t[0].value.toLowerCase();return(t[0].type=="keyword.control.asp"||t[0].type=="storage.type.function.asp")&&u.indexOf(r)!=-1},this.getMatching=function(s,e,a,t){if(e==null){var r=s.selection.lead;a=r.column,e=r.row}t==null&&(t=!0);var n=s.getTokenAt(e,a);if(n){var o=n.value.toLowerCase();if(o in this.indentKeywords)return this.foldingRules.vbsBlock(s,e,a,t)}},this.autoOutdent=function(s,e,a){var t=e.getLine(a),r=t.match(/^\s*/)[0].length;if(!(!r||!a)){var n=this.getMatching(e,a,r+1,!1);if(!(!n||n.start.row==a)){var o=this.$getIndent(e.getLine(n.start.row));o.length!=r&&(e.replace(new x(a,0,a,r),o),e.outdentRows(new x(a+1,0,a+1,0)))}}},this.$id="ace/mode/vbscript"}.call(i.prototype),h.Mode=i}),function(){ace.require(["ace/mode/vbscript"],function(l){T&&(T.exports=l)})}()}}]);
|