import{g as w}from"./index-15e3682d.js";function C(v,R){for(var l=0;lg[p]})}}}return Object.freeze(Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}))}var $={exports:{}};(function(v,R){ace.define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(l,g,p){var c=l("../lib/oop"),x=l("./text_highlight_rules").TextHighlightRules,y=g.reservedKeywords="!|{|}|case|do|done|elif|else|esac|fi|for|if|in|then|until|while|&|;|export|local|read|typeset|unset|elif|select|set|function|declare|readonly",m=g.languageConstructs="[|]|alias|bg|bind|break|builtin|cd|command|compgen|complete|continue|dirs|disown|echo|enable|eval|exec|exit|fc|fg|getopts|hash|help|history|jobs|kill|let|logout|popd|printf|pushd|pwd|return|set|shift|shopt|source|suspend|test|times|trap|type|ulimit|umask|unalias|wait",t=function(){var n=this.createKeywordMapper({keyword:y,"support.function.builtin":m,"invalid.deprecated":"debugger"},"identifier"),i="(?:(?:[1-9]\\d*)|(?:0))",s="(?:\\.\\d+)",r="(?:\\d+)",a="(?:(?:"+r+"?"+s+")|(?:"+r+"\\.))",o="(?:(?:"+a+"|"+r+"))",e="(?:"+o+"|"+a+")",h="(?:&"+r+")",d="[a-zA-Z_][a-zA-Z0-9_]*",_="(?:"+d+"(?==))",M="(?:\\$(?:SHLVL|\\$|\\!|\\?))",F="(?:"+d+"\\s*\\(\\))";this.$rules={start:[{token:"constant",regex:/\\./},{token:["text","comment"],regex:/(^|\s)(#.*)$/},{token:"string.start",regex:'"',push:[{token:"constant.language.escape",regex:/\\(?:[$`"\\]|$)/},{include:"variables"},{token:"keyword.operator",regex:/`/},{token:"string.end",regex:'"',next:"pop"},{defaultToken:"string"}]},{token:"string",regex:"\\$'",push:[{token:"constant.language.escape",regex:/\\(?:[abeEfnrtv\\'"]|x[a-fA-F\d]{1,2}|u[a-fA-F\d]{4}([a-fA-F\d]{4})?|c.|\d{1,3})/},{token:"string",regex:"'",next:"pop"},{defaultToken:"string"}]},{regex:"<<<",token:"keyword.operator"},{stateName:"heredoc",regex:"(<<-?)(\\s*)(['\"`]?)([\\w\\-]+)(['\"`]?)",onMatch:function(f,k,u){var L=f[2]=="-"?"indentedHeredoc":"heredoc",b=f.split(this.splitRegex);return u.push(L,b[4]),[{type:"constant",value:b[1]},{type:"text",value:b[2]},{type:"string",value:b[3]},{type:"support.class",value:b[4]},{type:"string",value:b[5]}]},rules:{heredoc:[{onMatch:function(f,k,u){return f===u[1]?(u.shift(),u.shift(),this.next=u[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(f,k,u){return f===u[1]?(u.shift(),u.shift(),this.next=u[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(f,k){return k[0]==="heredoc"||k[0]==="indentedHeredoc"?k[0]:f}},{token:["keyword","text","text","text","variable"],regex:/(declare|local|readonly)(\s+)(?:(-[fixar]+)(\s+))?([a-zA-Z_][a-zA-Z0-9_]*\b)/},{token:"variable.language",regex:M},{token:"variable",regex:_},{include:"variables"},{token:"support.function",regex:F},{token:"support.function",regex:h},{token:"string",start:"'",end:"'"},{token:"constant.numeric",regex:e},{token:"constant.numeric",regex:i+"\\b"},{token:n,regex:"[a-zA-Z_][a-zA-Z0-9_]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|~|<|>|<=|=>|=|!=|[%&|`]"},{token:"punctuation.operator",regex:";"},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]]"},{token:"paren.rparen",regex:"[\\)\\}]",next:"pop"}],variables:[{token:"variable",regex:/(\$)(\w+)/},{token:["variable","paren.lparen"],regex:/(\$)(\()/,push:"start"},{token:["variable","paren.lparen","keyword.operator","variable","keyword.operator"],regex:/(\$)(\{)([#!]?)(\w+|[*@#?\-$!0_])(:[?+\-=]?|##?|%%?|,,?\/|\^\^?)?/,push:"start"},{token:"variable",regex:/\$[*@#?\-$!0_]/},{token:["variable","paren.lparen"],regex:/(\$)(\{)/,push:"start"}]},this.normalizeRules()};c.inherits(t,x),g.ShHighlightRules=t}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(l,g,p){var c=l("../../lib/oop"),x=l("../../range").Range,y=l("./fold_mode").FoldMode,m=g.FoldMode=function(t){t&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+t.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+t.end)))};c.inherits(m,y),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(t,n,i){var s=t.getLine(i);if(this.singleLineBlockCommentRe.test(s)&&!this.startRegionRe.test(s)&&!this.tripleStarBlockCommentRe.test(s))return"";var r=this._getFoldWidgetBase(t,n,i);return!r&&this.startRegionRe.test(s)?"start":r},this.getFoldWidgetRange=function(t,n,i,s){var r=t.getLine(i);if(this.startRegionRe.test(r))return this.getCommentRegionBlock(t,r,i);var e=r.match(this.foldingStartMarker);if(e){var a=e.index;if(e[1])return this.openingBracketBlock(t,e[1],i,a);var o=t.getCommentFoldRange(i,a+e[0].length,1);return o&&!o.isMultiLine()&&(s?o=this.getSectionRange(t,i):n!="all"&&(o=null)),o}if(n!=="markbegin"){var e=r.match(this.foldingStopMarker);if(e){var a=e.index+e[0].length;return e[1]?this.closingBracketBlock(t,e[1],i,a):t.getCommentFoldRange(i,a,-1)}}},this.getSectionRange=function(t,n){var i=t.getLine(n),s=i.search(/\S/),r=n,a=i.length;n=n+1;for(var o=n,e=t.getLength();++nh)break;var d=this.getFoldWidgetRange(t,"all",n);if(d){if(d.start.row<=r)break;if(d.isMultiLine())n=d.end.row;else if(s==h)break}o=n}}return new x(r,a,o,t.getLine(o).length)},this.getCommentRegionBlock=function(t,n,i){for(var s=n.search(/\s*$/),r=t.getLength(),a=i,o=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,e=1;++ia)return new x(a,s,d,n.length)}}.call(m.prototype)}),ace.define("ace/mode/sh",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sh_highlight_rules","ace/range","ace/mode/folding/cstyle"],function(l,g,p){var c=l("../lib/oop"),x=l("./text").Mode,y=l("./sh_highlight_rules").ShHighlightRules,m=l("../range").Range,t=l("./folding/cstyle").FoldMode,n=function(){this.HighlightRules=y,this.foldingRules=new t,this.$behaviour=this.$defaultBehaviour};c.inherits(n,x),function(){this.lineCommentStart="#",this.getNextLineIndent=function(s,r,a){var o=this.$getIndent(r),e=this.getTokenizer().getLineTokens(r,s),h=e.tokens;if(h.length&&h[h.length-1].type=="comment")return o;if(s=="start"){var d=r.match(/^.*[\{\(\[:]\s*$/);d&&(o+=a)}return o};var i={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(s,r,a){if(a!==`\r `&&a!=="\r"&&a!==` `)return!1;var o=this.getTokenizer().getLineTokens(r.trim(),s).tokens;if(!o)return!1;do var e=o.pop();while(e&&(e.type=="comment"||e.type=="text"&&e.value.match(/^\s+$/)));return e?e.type=="keyword"&&i[e.value]:!1},this.autoOutdent=function(s,r,a){a+=1;var o=this.$getIndent(r.getLine(a)),e=r.getTabString();o.slice(-e.length)==e&&r.remove(new m(a,o.length-e.length,a,o.length))},this.$id="ace/mode/sh",this.snippetFileId="ace/snippets/sh"}.call(n.prototype),g.Mode=n}),function(){ace.require(["ace/mode/sh"],function(l){v&&(v.exports=l)})}()})($);var S=$.exports;const B=w(S),A=C({__proto__:null,default:B},[S]);export{A as m};