mode-svg-51c8ce36.js 33 KB

12345
  1. import{g as M}from"./index-fe76da25.js";function S(y,R){for(var u=0;u<R.length;u++){const x=R[u];if(typeof x!="string"&&!Array.isArray(x)){for(const h in x)if(h!=="default"&&!(h in y)){const p=Object.getOwnPropertyDescriptor(x,h);p&&Object.defineProperty(y,h,p.get?p:{enumerable:!0,get:()=>x[h]})}}}return Object.freeze(Object.defineProperty(y,Symbol.toStringTag,{value:"Module"}))}var w={exports:{}};(function(y,R){ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(u,x,h){var p=u("../lib/oop"),m=u("./text_highlight_rules").TextHighlightRules,d=function(e){var s="[_:a-zA-ZÀ-￿][-_:.a-zA-Z0-9À-￿]*";this.$rules={start:[{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\[",next:"cdata"},{token:["punctuation.instruction.xml","keyword.instruction.xml"],regex:"(<\\?)("+s+")",next:"processing_instruction"},{token:"comment.start.xml",regex:"<\\!--",next:"comment"},{token:["xml-pe.doctype.xml","xml-pe.doctype.xml"],regex:"(<\\!)(DOCTYPE)(?=[\\s])",next:"doctype",caseInsensitive:!0},{include:"tag"},{token:"text.end-tag-open.xml",regex:"</"},{token:"text.tag-open.xml",regex:"<"},{include:"reference"},{defaultToken:"text.xml"}],processing_instruction:[{token:"entity.other.attribute-name.decl-attribute-name.xml",regex:s},{token:"keyword.operator.decl-attribute-equals.xml",regex:"="},{include:"whitespace"},{include:"string"},{token:"punctuation.xml-decl.xml",regex:"\\?>",next:"start"}],doctype:[{include:"whitespace"},{include:"string"},{token:"xml-pe.doctype.xml",regex:">",next:"start"},{token:"xml-pe.xml",regex:"[-_a-zA-Z0-9:]+"},{token:"punctuation.int-subset",regex:"\\[",push:"int_subset"}],int_subset:[{token:"text.xml",regex:"\\s+"},{token:"punctuation.int-subset.xml",regex:"]",next:"pop"},{token:["punctuation.markup-decl.xml","keyword.markup-decl.xml"],regex:"(<\\!)("+s+")",push:[{token:"text",regex:"\\s+"},{token:"punctuation.markup-decl.xml",regex:">",next:"pop"},{include:"string"}]}],cdata:[{token:"string.cdata.xml",regex:"\\]\\]>",next:"start"},{token:"text.xml",regex:"\\s+"},{token:"text.xml",regex:"(?:[^\\]]|\\](?!\\]>))+"}],comment:[{token:"comment.end.xml",regex:"-->",next:"start"},{defaultToken:"comment.xml"}],reference:[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],attr_reference:[{token:"constant.language.escape.reference.attribute-value.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],tag:[{token:["meta.tag.punctuation.tag-open.xml","meta.tag.punctuation.end-tag-open.xml","meta.tag.tag-name.xml"],regex:"(?:(<)|(</))((?:"+s+":)?"+s+")",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}],tag_whitespace:[{token:"text.tag-whitespace.xml",regex:"\\s+"}],whitespace:[{token:"text.whitespace.xml",regex:"\\s+"}],string:[{token:"string.xml",regex:"'",push:[{token:"string.xml",regex:"'",next:"pop"},{defaultToken:"string.xml"}]},{token:"string.xml",regex:'"',push:[{token:"string.xml",regex:'"',next:"pop"},{defaultToken:"string.xml"}]}],attributes:[{token:"entity.other.attribute-name.xml",regex:s},{token:"keyword.operator.attribute-equals.xml",regex:"="},{include:"tag_whitespace"},{include:"attribute_value"}],attribute_value:[{token:"string.attribute-value.xml",regex:"'",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]}]},this.constructor===d&&this.normalizeRules()};(function(){this.embedTagRules=function(e,s,l){this.$rules.tag.unshift({token:["meta.tag.punctuation.tag-open.xml","meta.tag."+l+".tag-name.xml"],regex:"(<)("+l+"(?=\\s|>|$))",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:s+"start"}]}),this.$rules[l+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(r,i,a){return a.splice(0),this.token}}],this.embedRules(e,s,[{token:["meta.tag.punctuation.end-tag-open.xml","meta.tag."+l+".tag-name.xml"],regex:"(</)("+l+"(?=\\s|>|$))",next:l+"-end"},{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\["},{token:"string.cdata.xml",regex:"\\]\\]>"}])}}).call(m.prototype),p.inherits(d,m),x.XmlHighlightRules=d}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(u,x,h){var p=u("../../lib/oop"),m=u("../behaviour").Behaviour,d=u("../../token_iterator").TokenIterator;u("../../lib/lang");function e(l,r){return l&&l.type.lastIndexOf(r+".xml")>-1}var s=function(){this.add("string_dquotes","insertion",function(l,r,i,a,t){if(t=='"'||t=="'"){var o=t,n=a.doc.getTextRange(i.getSelectionRange());if(n!==""&&n!=="'"&&n!='"'&&i.getWrapBehavioursEnabled())return{text:o+n+o,selection:!1};var g=i.getCursorPosition(),c=a.doc.getLine(g.row),v=c.substring(g.column,g.column+1),k=new d(a,g.row,g.column),f=k.getCurrentToken();if(v==o&&(e(f,"attribute-value")||e(f,"string")))return{text:"",selection:[1,1]};if(f||(f=k.stepBackward()),!f)return;for(;e(f,"tag-whitespace")||e(f,"whitespace");)f=k.stepBackward();var b=!v||v.match(/\s/);if(e(f,"attribute-equals")&&(b||v==">")||e(f,"decl-attribute-equals")&&(b||v=="?"))return{text:o+o,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(l,r,i,a,t){var o=a.doc.getTextRange(t);if(!t.isMultiLine()&&(o=='"'||o=="'")){var n=a.doc.getLine(t.start.row),g=n.substring(t.start.column+1,t.start.column+2);if(g==o)return t.end.column++,t}}),this.add("autoclosing","insertion",function(l,r,i,a,t){if(t==">"){var o=i.getSelectionRange().start,n=new d(a,o.row,o.column),g=n.getCurrentToken()||n.stepBackward();if(!g||!(e(g,"tag-name")||e(g,"tag-whitespace")||e(g,"attribute-name")||e(g,"attribute-equals")||e(g,"attribute-value"))||e(g,"reference.attribute-value"))return;if(e(g,"attribute-value")){var c=n.getCurrentTokenColumn()+g.value.length;if(o.column<c)return;if(o.column==c){var v=n.stepForward();if(v&&e(v,"attribute-value"))return;n.stepBackward()}}if(/^\s*>/.test(a.getLine(o.row).slice(o.column)))return;for(;!e(g,"tag-name");)if(g=n.stepBackward(),g.value=="<"){g=n.stepForward();break}var k=n.getCurrentTokenRow(),f=n.getCurrentTokenColumn();if(e(n.stepBackward(),"end-tag-open"))return;var b=g.value;return k==o.row&&(b=b.substring(0,o.column-f)),this.voidElements.hasOwnProperty(b.toLowerCase())?void 0:{text:"></"+b+">",selection:[1,1]}}}),this.add("autoindent","insertion",function(l,r,i,a,t){if(t==`
  2. `){var o=i.getCursorPosition(),n=a.getLine(o.row),g=new d(a,o.row,o.column),c=g.getCurrentToken();if(c&&c.type.indexOf("tag-close")!==-1){if(c.value=="/>")return;for(;c&&c.type.indexOf("tag-name")===-1;)c=g.stepBackward();if(!c)return;var v=c.value,k=g.getCurrentTokenRow();if(c=g.stepBackward(),!c||c.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[v]){var f=a.getTokenAt(o.row,o.column+1),n=a.getLine(k),b=this.$getIndent(n),_=b+a.getTabString();return f&&f.value==="</"?{text:`
  3. `+_+`
  4. `+b,selection:[1,_.length,1,_.length]}:{text:`
  5. `+_}}}}})};p.inherits(s,m),x.XmlBehaviour=s}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(u,x,h){var p=u("../../lib/oop"),m=u("../../range").Range,d=u("./fold_mode").FoldMode,e=x.FoldMode=function(r,i){d.call(this),this.voidElements=r||{},this.optionalEndTags=p.mixin({},this.voidElements),i&&p.mixin(this.optionalEndTags,i)};p.inherits(e,d);var s=function(){this.tagName="",this.closing=!1,this.selfClosing=!1,this.start={row:0,column:0},this.end={row:0,column:0}};function l(r,i){return r.type.lastIndexOf(i+".xml")>-1}(function(){this.getFoldWidget=function(r,i,a){var t=this._getFirstTagInLine(r,a);return t?t.closing||!t.tagName&&t.selfClosing?i==="markbeginend"?"end":"":!t.tagName||t.selfClosing||this.voidElements.hasOwnProperty(t.tagName.toLowerCase())||this._findEndTagInLine(r,a,t.tagName,t.end.column)?"":"start":this.getCommentFoldWidget(r,a)},this.getCommentFoldWidget=function(r,i){return/comment/.test(r.getState(i))&&/<!-/.test(r.getLine(i))?"start":""},this._getFirstTagInLine=function(r,i){for(var a=r.getTokens(i),t=new s,o=0;o<a.length;o++){var n=a[o];if(l(n,"tag-open")){if(t.end.column=t.start.column+n.value.length,t.closing=l(n,"end-tag-open"),n=a[++o],!n)return null;for(t.tagName=n.value,t.end.column+=n.value.length,o++;o<a.length;o++)if(n=a[o],t.end.column+=n.value.length,l(n,"tag-close")){t.selfClosing=n.value=="/>";break}return t}else if(l(n,"tag-close"))return t.selfClosing=n.value=="/>",t;t.start.column+=n.value.length}return null},this._findEndTagInLine=function(r,i,a,t){for(var o=r.getTokens(i),n=0,g=0;g<o.length;g++){var c=o[g];if(n+=c.value.length,!(n<t)&&l(c,"end-tag-open")&&(c=o[g+1],c&&c.value==a))return!0}return!1},this.getFoldWidgetRange=function(r,i,a){var t=r.getMatchingTags({row:a,column:0});return t?new m(t.openTag.end.row,t.openTag.end.column,t.closeTag.start.row,t.closeTag.start.column):this.getCommentFoldWidget(r,a)&&r.getCommentFoldRange(a,r.getLine(a).length)}}).call(e.prototype)}),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(u,x,h){var p=u("../lib/oop"),m=u("../lib/lang"),d=u("./text").Mode,e=u("./xml_highlight_rules").XmlHighlightRules,s=u("./behaviour/xml").XmlBehaviour,l=u("./folding/xml").FoldMode,r=u("../worker/worker_client").WorkerClient,i=function(){this.HighlightRules=e,this.$behaviour=new s,this.foldingRules=new l};p.inherits(i,d),function(){this.voidElements=m.arrayToMap([]),this.blockComment={start:"<!--",end:"-->"},this.createWorker=function(a){var t=new r(["ace"],"ace/mode/xml_worker","Worker");return t.attachToDocument(a.getDocument()),t.on("error",function(o){a.setAnnotations(o.data)}),t.on("terminate",function(){a.clearAnnotations()}),t},this.$id="ace/mode/xml"}.call(i.prototype),x.Mode=i}),ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(u,x,h){var p=u("../lib/oop"),m=u("./text_highlight_rules").TextHighlightRules,d=function(){this.$rules={start:[{token:["comment.doc.tag","comment.doc.text","lparen.doc"],regex:"(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:["rparen.doc","text.doc","variable.parameter.doc","lparen.doc","variable.parameter.doc","rparen.doc"],regex:/(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.]+)(\])))/,next:"pop"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","lparen.doc"],regex:"(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|implements|external|exception|throws|enum|define|extends))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:'(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|requires|param|implements|function|extends|typedef|mixes|constructor|var|memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#.:/~"\\-]*)?'},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:"(@method)(\\s+)(\\w[\\w.\\(\\)]*)"},{token:"comment.doc.tag",regex:"@access\\s+(?:private|public|protected)"},{token:"comment.doc.tag",regex:"@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"},{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},d.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};p.inherits(d,m),d.getTagRule=function(e){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},d.getStartRule=function(e){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:e}},d.getEndRule=function(e){return{token:"comment.doc",regex:"\\*\\/",next:e}},x.JsDocCommentHighlightRules=d}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(u,x,h){var p=u("../lib/oop"),m=u("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,d=u("./text_highlight_rules").TextHighlightRules,e="[a-zA-Z\\$_¡-￿][a-zA-Z\\d\\$_¡-￿]*",s=function(i){var a=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),t="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",o="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[m.getStartRule("doc-start"),r("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+e+")(\\.)(prototype)(\\.)("+e+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+e+")(\\.)("+e+")(\\s*)(=)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+e+")(\\s*)(=)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+e+")(\\.)("+e+")(\\s*)(=)(\\s*)(function\\*?)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function\\*?)(\\s+)("+e+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+e+")(\\s*)(:)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+t+")\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/},{token:a,regex:e},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+e+")(\\.)("+e+")(\\s*)(=)(\\s*)(function\\*?)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:e},{regex:"",token:"empty",next:"no_regex"}],start:[m.getStartRule("doc-start"),r("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],default_parameter:[{token:"string",regex:"'(?=.)",push:[{token:"string",regex:"'|$",next:"pop"},{include:"qstring"}]},{token:"string",regex:'"(?=.)',push:[{token:"string",regex:'"|$',next:"pop"},{include:"qqstring"}]},{token:"constant.language",regex:"null|Infinity|NaN|undefined"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:"punctuation.operator",regex:",",next:"function_arguments"},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],function_arguments:[r("function_arguments"),{token:"variable.parameter",regex:e},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:o},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:o},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!i||!i.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(n,g,c){if(this.next=n=="{"?this.nextState:"",n=="{"&&c.length)c.unshift("start",g);else if(n=="}"&&c.length&&(c.shift(),this.next=c.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return n=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:o},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+e+")(\\s*)(?=\\=>)"},{token:"paren.lparen",regex:"(\\()(?=.+\\s*=>)",next:"function_arguments"},{token:"variable.language",regex:"(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"}),this.$rules.function_arguments.unshift({token:"keyword.operator",regex:"=",next:"default_parameter"},{token:"keyword.operator",regex:"\\.{3}"}),this.$rules.property.unshift({token:"support.function",regex:"(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"},{token:"constant.language",regex:"(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"}),(!i||i.jsx!=!1)&&l.call(this)),this.embedRules(m,"doc-",[m.getEndRule("no_regex")]),this.normalizeRules()};p.inherits(s,d);function l(){var i=e.replace("\\d","\\d\\-"),a={onMatch:function(o,n,g){var c=o.charAt(1)=="/"?2:1;return c==1?(n!=this.nextState?g.unshift(this.next,this.nextState,0):g.unshift(this.next),g[2]++):c==2&&n==this.nextState&&(g[1]--,(!g[1]||g[1]<0)&&(g.shift(),g.shift())),[{type:"meta.tag.punctuation."+(c==1?"":"end-")+"tag-open.xml",value:o.slice(0,c)},{type:"meta.tag.tag-name.xml",value:o.substr(c)}]},regex:"</?"+i,next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(a);var t={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[t,a,{include:"reference"},{defaultToken:"string"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(o,n,g){return n==g[0]&&g.shift(),o.length==2&&(g[0]==this.nextState&&g[1]--,(!g[1]||g[1]<0)&&g.splice(0,2)),this.next=g[0]||"start",[{type:this.token,value:o}]},nextState:"jsx"},t,r("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:i},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},a],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function r(i){return[{token:"comment",regex:/\/\*/,next:[m.getTagRule(),{token:"comment",regex:"\\*\\/",next:i||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[m.getTagRule(),{token:"comment",regex:"$|^",next:i||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}x.JavaScriptHighlightRules=s}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(u,x,h){var p=u("../range").Range,m=function(){};(function(){this.checkOutdent=function(d,e){return/^\s+$/.test(d)?/^\s*\}/.test(e):!1},this.autoOutdent=function(d,e){var s=d.getLine(e),l=s.match(/^(\s*\})/);if(!l)return 0;var r=l[1].length,i=d.findMatchingBracket({row:e,column:r});if(!i||i.row==e)return 0;var a=this.$getIndent(d.getLine(i.row));d.replace(new p(e,0,e,r-1),a)},this.$getIndent=function(d){return d.match(/^\s*/)[0]}}).call(m.prototype),x.MatchingBraceOutdent=m}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(u,x,h){var p=u("../../lib/oop"),m=u("../../range").Range,d=u("./fold_mode").FoldMode,e=x.FoldMode=function(s){s&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+s.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+s.end)))};p.inherits(e,d),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(s,l,r){var i=s.getLine(r);if(this.singleLineBlockCommentRe.test(i)&&!this.startRegionRe.test(i)&&!this.tripleStarBlockCommentRe.test(i))return"";var a=this._getFoldWidgetBase(s,l,r);return!a&&this.startRegionRe.test(i)?"start":a},this.getFoldWidgetRange=function(s,l,r,i){var a=s.getLine(r);if(this.startRegionRe.test(a))return this.getCommentRegionBlock(s,a,r);var n=a.match(this.foldingStartMarker);if(n){var t=n.index;if(n[1])return this.openingBracketBlock(s,n[1],r,t);var o=s.getCommentFoldRange(r,t+n[0].length,1);return o&&!o.isMultiLine()&&(i?o=this.getSectionRange(s,r):l!="all"&&(o=null)),o}if(l!=="markbegin"){var n=a.match(this.foldingStopMarker);if(n){var t=n.index+n[0].length;return n[1]?this.closingBracketBlock(s,n[1],r,t):s.getCommentFoldRange(r,t,-1)}}},this.getSectionRange=function(s,l){var r=s.getLine(l),i=r.search(/\S/),a=l,t=r.length;l=l+1;for(var o=l,n=s.getLength();++l<n;){r=s.getLine(l);var g=r.search(/\S/);if(g!==-1){if(i>g)break;var c=this.getFoldWidgetRange(s,"all",l);if(c){if(c.start.row<=a)break;if(c.isMultiLine())l=c.end.row;else if(i==g)break}o=l}}return new m(a,t,o,s.getLine(o).length)},this.getCommentRegionBlock=function(s,l,r){for(var i=l.search(/\s*$/),a=s.getLength(),t=r,o=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,n=1;++r<a;){l=s.getLine(r);var g=o.exec(l);if(g&&(g[1]?n--:n++,!n))break}var c=r;if(c>t)return new m(t,i,c,l.length)}}.call(e.prototype)}),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],function(u,x,h){var p=u("../lib/oop"),m=u("./text").Mode,d=u("./javascript_highlight_rules").JavaScriptHighlightRules,e=u("./matching_brace_outdent").MatchingBraceOutdent,s=u("../worker/worker_client").WorkerClient,l=u("./behaviour/cstyle").CstyleBehaviour,r=u("./folding/cstyle").FoldMode,i=function(){this.HighlightRules=d,this.$outdent=new e,this.$behaviour=new l,this.foldingRules=new r};p.inherits(i,m),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(a,t,o){var n=this.$getIndent(t),g=this.getTokenizer().getLineTokens(t,a),c=g.tokens,v=g.state;if(c.length&&c[c.length-1].type=="comment")return n;if(a=="start"||a=="no_regex"){var k=t.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);k&&(n+=o)}else if(a=="doc-start"){if(v=="start"||v=="no_regex")return"";var k=t.match(/^\s*(\/?)\*/);k&&(k[1]&&(n+=" "),n+="* ")}return n},this.checkOutdent=function(a,t,o){return this.$outdent.checkOutdent(t,o)},this.autoOutdent=function(a,t,o){this.$outdent.autoOutdent(t,o)},this.createWorker=function(a){var t=new s(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return t.attachToDocument(a.getDocument()),t.on("annotate",function(o){a.setAnnotations(o.data)}),t.on("terminate",function(){a.clearAnnotations()}),t},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}.call(i.prototype),x.Mode=i}),ace.define("ace/mode/svg_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"],function(u,x,h){var p=u("../lib/oop"),m=u("./javascript_highlight_rules").JavaScriptHighlightRules,d=u("./xml_highlight_rules").XmlHighlightRules,e=function(){d.call(this),this.embedTagRules(m,"js-","script"),this.normalizeRules()};p.inherits(e,d),x.SvgHighlightRules=e}),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(u,x,h){var p=u("../../lib/oop"),m=u("./fold_mode").FoldMode,d=x.FoldMode=function(e,s){this.defaultMode=e,this.subModes=s};p.inherits(d,m),function(){this.$getMode=function(e){typeof e!="string"&&(e=e[0]);for(var s in this.subModes)if(e.indexOf(s)===0)return this.subModes[s];return null},this.$tryMode=function(e,s,l,r){var i=this.$getMode(e);return i?i.getFoldWidget(s,l,r):""},this.getFoldWidget=function(e,s,l){return this.$tryMode(e.getState(l-1),e,s,l)||this.$tryMode(e.getState(l),e,s,l)||this.defaultMode.getFoldWidget(e,s,l)},this.getFoldWidgetRange=function(e,s,l){var r=this.$getMode(e.getState(l-1));return(!r||!r.getFoldWidget(e,s,l))&&(r=this.$getMode(e.getState(l))),(!r||!r.getFoldWidget(e,s,l))&&(r=this.defaultMode),r.getFoldWidgetRange(e,s,l)}}.call(d.prototype)}),ace.define("ace/mode/svg",["require","exports","module","ace/lib/oop","ace/mode/xml","ace/mode/javascript","ace/mode/svg_highlight_rules","ace/mode/folding/mixed","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(u,x,h){var p=u("../lib/oop"),m=u("./xml").Mode,d=u("./javascript").Mode,e=u("./svg_highlight_rules").SvgHighlightRules,s=u("./folding/mixed").FoldMode,l=u("./folding/xml").FoldMode,r=u("./folding/cstyle").FoldMode,i=function(){m.call(this),this.HighlightRules=e,this.createModeDelegates({"js-":d}),this.foldingRules=new s(new l,{"js-":new r})};p.inherits(i,m),function(){this.getNextLineIndent=function(a,t,o){return this.$getIndent(t)},this.$id="ace/mode/svg"}.call(i.prototype),x.Mode=i}),function(){ace.require(["ace/mode/svg"],function(u){y&&(y.exports=u)})}()})(w);var T=w.exports;const C=M(T),I=S({__proto__:null,default:C},[T]);export{I as m};