mode-mushcode-158060c3.js 7.0 KB

123
  1. import{g as z}from"./index-b2e76ed2.js";function j(p,v){for(var e=0;e<v.length;e++){const n=v[e];if(typeof n!="string"&&!Array.isArray(n)){for(const d in n)if(d!=="default"&&!(d in p)){const c=Object.getOwnPropertyDescriptor(n,d);c&&Object.defineProperty(p,d,c.get?c:{enumerable:!0,get:()=>n[d]})}}}return Object.freeze(Object.defineProperty(p,Symbol.toStringTag,{value:"Module"}))}var w={exports:{}};(function(p,v){ace.define("ace/mode/mushcode_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,n,d){var c=e("../lib/oop"),m=e("./text_highlight_rules").TextHighlightRules,u=function(){var s="@if|@ifelse|@switch|@halt|@dolist|@create|@scent|@sound|@touch|@ataste|@osound|@ahear|@aahear|@amhear|@otouch|@otaste|@drop|@odrop|@adrop|@dropfail|@odropfail|@smell|@oemit|@emit|@pemit|@parent|@clone|@taste|whisper|page|say|pose|semipose|teach|touch|taste|smell|listen|look|move|go|home|follow|unfollow|desert|dismiss|@tel",f="=#0",l="default|edefault|eval|get_eval|get|grep|grepi|hasattr|hasattrp|hasattrval|hasattrpval|lattr|nattr|poss|udefault|ufun|u|v|uldefault|xget|zfun|band|bnand|bnot|bor|bxor|shl|shr|and|cand|cor|eq|gt|gte|lt|lte|nand|neq|nor|not|or|t|xor|con|entrances|exit|followers|home|lcon|lexits|loc|locate|lparent|lsearch|next|num|owner|parent|pmatch|rloc|rnum|room|where|zone|worn|held|carried|acos|asin|atan|ceil|cos|e|exp|fdiv|fmod|floor|log|ln|pi|power|round|sin|sqrt|tan|aposs|andflags|conn|commandssent|controls|doing|elock|findable|flags|fullname|hasflag|haspower|hastype|hidden|idle|isbaker|lock|lstats|money|who|name|nearby|obj|objflags|photo|poll|powers|pendingtext|receivedtext|restarts|restarttime|subj|shortestpath|tmoney|type|visible|cat|element|elements|extract|filter|filterbool|first|foreach|fold|grab|graball|index|insert|itemize|items|iter|last|ldelete|map|match|matchall|member|mix|munge|pick|remove|replace|rest|revwords|setdiff|setinter|setunion|shuffle|sort|sortby|splice|step|wordpos|words|add|lmath|max|mean|median|min|mul|percent|sign|stddev|sub|val|bound|abs|inc|dec|dist2d|dist3d|div|floordiv|mod|modulo|remainder|vadd|vdim|vdot|vmag|vmax|vmin|vmul|vsub|vunit|regedit|regeditall|regeditalli|regediti|regmatch|regmatchi|regrab|regraball|regraballi|regrabi|regrep|regrepi|after|alphamin|alphamax|art|before|brackets|capstr|case|caseall|center|containsfansi|comp|decompose|decrypt|delete|edit|encrypt|escape|if|ifelse|lcstr|left|lit|ljust|merge|mid|ostrlen|pos|repeat|reverse|right|rjust|scramble|secure|space|spellnum|squish|strcat|strmatch|strinsert|stripansi|stripfansi|strlen|switch|switchall|table|tr|trim|ucstr|unsafe|wrap|ctitle|cwho|channels|clock|cflags|ilev|itext|inum|convsecs|convutcsecs|convtime|ctime|etimefmt|isdaylight|mtime|secs|msecs|starttime|time|timefmt|timestring|utctime|atrlock|clone|create|cook|dig|emit|lemit|link|oemit|open|pemit|remit|set|tel|wipe|zemit|fbcreate|fbdestroy|fbwrite|fbclear|fbcopy|fbcopyto|fbclip|fbdump|fbflush|fbhset|fblist|fbstats|qentries|qentry|play|ansi|break|c|asc|die|isdbref|isint|isnum|isletters|linecoords|localize|lnum|nameshort|null|objeval|r|rand|s|setq|setr|soundex|soundslike|valid|vchart|vchart2|vlabel|@@|bakerdays|bodybuild|box|capall|catalog|children|ctrailer|darttime|debt|detailbar|exploredroom|fansitoansi|fansitoxansi|fullbar|halfbar|isdarted|isnewbie|isword|lambda|lobjects|lplayers|lthings|lvexits|lvobjects|lvplayers|lvthings|newswrap|numsuffix|playerson|playersthisweek|randomad|randword|realrandword|replacechr|second|splitamount|strlenall|text|third|tofansi|totalac|unique|getaddressroom|listpropertycomm|listpropertyres|lotowner|lotrating|lotratingcount|lotvalue|boughtproduct|companyabb|companyicon|companylist|companyname|companyowners|companyvalue|employees|invested|productlist|productname|productowners|productrating|productratingcount|productsoldat|producttype|ratedproduct|soldproduct|topproducts|totalspentonproduct|totalstock|transfermoney|uniquebuyercount|uniqueproductsbought|validcompany|deletepicture|fbsave|getpicturesecurity|haspicture|listpictures|picturesize|replacecolor|rgbtocolor|savepicture|setpicturesecurity|showpicture|piechart|piechartlabel|createmaze|drawmaze|drawwireframe",h=this.createKeywordMapper({"invalid.deprecated":"debugger","support.function":l,"constant.language":f,keyword:s},"identifier"),r="(?:(?:[1-9]\\d*)|(?:0))",i="(?:0[oO]?[0-7]+)",o="(?:0[xX][\\dA-Fa-f]+)",a="(?:0[bB][01]+)",t="(?:"+r+"|"+i+"|"+o+"|"+a+")",g="(?:[eE][+-]?\\d+)",b="(?:\\.\\d+)",x="(?:\\d+)",y="(?:(?:"+x+"?"+b+")|(?:"+x+"\\.))",_="(?:(?:"+y+"|"+x+")"+g+")",k="(?:"+_+"|"+y+")";this.$rules={start:[{token:"variable",regex:"%[0-9]{1}"},{token:"variable",regex:"%q[0-9A-Za-z]{1}"},{token:"variable",regex:"%[a-zA-Z]{1}"},{token:"variable.language",regex:"%[a-z0-9-_]+"},{token:"constant.numeric",regex:"(?:"+k+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:k},{token:"constant.numeric",regex:t+"[lL]\\b"},{token:"constant.numeric",regex:t+"\\b"},{token:h,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|#|%|<<|>>|\\||\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]\\)\\}]"},{token:"text",regex:"\\s+"}]}};c.inherits(u,m),n.MushCodeRules=u}),ace.define("ace/mode/folding/pythonic",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(e,n,d){var c=e("../../lib/oop"),m=e("./fold_mode").FoldMode,u=n.FoldMode=function(s){this.foldingStartMarker=new RegExp("([\\[{])(?:\\s*)$|("+s+")(?:\\s*)(?:#.*)?$")};c.inherits(u,m),function(){this.getFoldWidgetRange=function(s,f,l){var h=s.getLine(l),r=h.match(this.foldingStartMarker);if(r)return r[1]?this.openingBracketBlock(s,r[1],l,r.index):r[2]?this.indentationBlock(s,l,r.index+r[2].length):this.indentationBlock(s,l)}}.call(u.prototype)}),ace.define("ace/mode/mushcode",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/mushcode_highlight_rules","ace/mode/folding/pythonic","ace/range"],function(e,n,d){var c=e("../lib/oop"),m=e("./text").Mode,u=e("./mushcode_highlight_rules").MushCodeRules,s=e("./folding/pythonic").FoldMode,f=e("../range").Range,l=function(){this.HighlightRules=u,this.foldingRules=new s("\\:"),this.$behaviour=this.$defaultBehaviour};c.inherits(l,m),function(){this.getNextLineIndent=function(r,i,o){var a=this.$getIndent(i),t=this.getTokenizer().getLineTokens(i,r),g=t.tokens;if(g.length&&g[g.length-1].type=="comment")return a;if(r=="start"){var b=i.match(/^.*[\{\(\[:]\s*$/);b&&(a+=o)}return a};var h={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(r,i,o){if(o!==`\r
  2. `&&o!=="\r"&&o!==`
  3. `)return!1;var a=this.getTokenizer().getLineTokens(i.trim(),r).tokens;if(!a)return!1;do var t=a.pop();while(t&&(t.type=="comment"||t.type=="text"&&t.value.match(/^\s+$/)));return t?t.type=="keyword"&&h[t.value]:!1},this.autoOutdent=function(r,i,o){o+=1;var a=this.$getIndent(i.getLine(o)),t=i.getTabString();a.slice(-t.length)==t&&i.remove(new f(o,a.length-t.length,o,a.length))},this.$id="ace/mode/mushcode"}.call(l.prototype),n.Mode=l}),function(){ace.require(["ace/mode/mushcode"],function(e){p&&(p.exports=e)})}()})(w);var M=w.exports;const $=z(M),R=j({__proto__:null,default:$},[M]);export{R as m};