import{c as _}from"./index-15e3682d.js";function $(a,h){for(var m=0;mc[l]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var L={};(function(a){if(typeof a.window<"u"&&a.document||a.require&&a.define)return;a.console||(a.console=function(){var l=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:l})},a.console.error=a.console.warn=a.console.log=a.console.trace=a.console),a.window=a,a.ace=a,a.onerror=function(l,r,t,n,i){postMessage({type:"error",data:{message:l,data:i&&i.data,file:r,line:t,col:n,stack:i&&i.stack}})},a.normalizeModule=function(l,r){if(r.indexOf("!")!==-1){var t=r.split("!");return a.normalizeModule(l,t[0])+"!"+a.normalizeModule(l,t[1])}if(r.charAt(0)=="."){var n=l.split("/").slice(0,-1).join("/");for(r=(n?n+"/":"")+r;r.indexOf(".")!==-1&&i!=r;){var i=r;r=r.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return r},a.require=function(r,t){if(t||(t=r,r=null),!t.charAt)throw new Error("worker.js require() accepts only (parentId, id) as arguments");t=a.normalizeModule(r,t);var n=a.require.modules[t];if(n)return n.initialized||(n.initialized=!0,n.exports=n.factory().exports),n.exports;if(!a.require.tlns)return console.log("unable to load "+t);var i=h(t,a.require.tlns);return i.slice(-3)!=".js"&&(i+=".js"),a.require.id=t,a.require.modules[t]={},importScripts(i),a.require(r,t)};function h(l,r){for(var t=l,n="";t;){var i=r[t];if(typeof i=="string")return i+n;if(i)return i.location.replace(/\/*$/,"/")+(n||i.main||i.name);if(i===!1)return"";var o=t.lastIndexOf("/");if(o===-1)break;n=t.substr(o)+n,t=t.slice(0,o)}return l}a.require.modules={},a.require.tlns={},a.define=function(l,r,t){if(arguments.length==2?(t=r,typeof l!="string"&&(r=l,l=a.require.id)):arguments.length==1&&(t=l,r=[],l=a.require.id),typeof t!="function"){a.require.modules[l]={exports:t,initialized:!0};return}r.length||(r=["require","exports","module"]);var n=function(i){return a.require(l,i)};a.require.modules[l]={exports:{},factory:function(){var i=this,o=t.apply(this,r.slice(0,t.length).map(function(e){switch(e){case"require":return n;case"exports":return i.exports;case"module":return i;default:return n(e)}}));return o&&(i.exports=o),i}}},a.define.amd={},a.require.tlns={},a.initBaseUrls=function(r){for(var t in r)this.require.tlns[t]=r[t]},a.initSender=function(){var r=a.require("ace/lib/event_emitter").EventEmitter,t=a.require("ace/lib/oop"),n=function(){};return function(){t.implement(this,r),this.callback=function(i,o){postMessage({type:"call",id:o,data:i})},this.emit=function(i,o){postMessage({type:"event",name:i,data:o})}}.call(n.prototype),new n};var m=a.main=null,c=a.sender=null;a.onmessage=function(l){var r=l.data;if(r.event&&c)c._signal(r.event,r.data);else if(r.command)if(m[r.command])m[r.command].apply(m,r.args);else if(a[r.command])a[r.command].apply(a,r.args);else throw new Error("Unknown command:"+r.command);else if(r.init){a.initBaseUrls(r.tlns),c=a.sender=a.initSender();var t=this.require(r.module)[r.classname];m=a.main=new t(c)}}})(_);ace.define("ace/lib/oop",[],function(a,h,m){h.inherits=function(c,l){c.super_=l,c.prototype=Object.create(l.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}})},h.mixin=function(c,l){for(var r in l)c[r]=l[r];return c},h.implement=function(c,l){h.mixin(c,l)}});ace.define("ace/apply_delta",[],function(a,h,m){h.applyDelta=function(c,l,r){var t=l.start.row,n=l.start.column,i=c[t]||"";switch(l.action){case"insert":var o=l.lines;if(o.length===1)c[t]=i.substring(0,n)+l.lines[0]+i.substring(n);else{var e=[t,1].concat(l.lines);c.splice.apply(c,e),c[t]=i.substring(0,n)+c[t],c[t+l.lines.length-1]+=i.substring(n)}break;case"remove":var s=l.end.column,u=l.end.row;t===u?c[t]=i.substring(0,n)+i.substring(s):c.splice(t,u-t+1,i.substring(0,n)+c[u].substring(s));break}}});ace.define("ace/lib/event_emitter",[],function(a,h,m){var c={},l=function(){this.propagationStopped=!0},r=function(){this.defaultPrevented=!0};c._emit=c._dispatchEvent=function(t,n){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var i=this._eventRegistry[t]||[],o=this._defaultHandlers[t];if(!(!i.length&&!o)){(typeof n!="object"||!n)&&(n={}),n.type||(n.type=t),n.stopPropagation||(n.stopPropagation=l),n.preventDefault||(n.preventDefault=r),i=i.slice();for(var e=0;e ["+this.end.row+"/"+this.end.column+"]"},r.prototype.contains=function(t,n){return this.compare(t,n)==0},r.prototype.compareRange=function(t){var n,i=t.end,o=t.start;return n=this.compare(i.row,i.column),n==1?(n=this.compare(o.row,o.column),n==1?2:n==0?1:0):n==-1?-2:(n=this.compare(o.row,o.column),n==-1?-1:n==1?42:0)},r.prototype.comparePoint=function(t){return this.compare(t.row,t.column)},r.prototype.containsRange=function(t){return this.comparePoint(t.start)==0&&this.comparePoint(t.end)==0},r.prototype.intersects=function(t){var n=this.compareRange(t);return n==-1||n==0||n==1},r.prototype.isEnd=function(t,n){return this.end.row==t&&this.end.column==n},r.prototype.isStart=function(t,n){return this.start.row==t&&this.start.column==n},r.prototype.setStart=function(t,n){typeof t=="object"?(this.start.column=t.column,this.start.row=t.row):(this.start.row=t,this.start.column=n)},r.prototype.setEnd=function(t,n){typeof t=="object"?(this.end.column=t.column,this.end.row=t.row):(this.end.row=t,this.end.column=n)},r.prototype.inside=function(t,n){return this.compare(t,n)==0?!(this.isEnd(t,n)||this.isStart(t,n)):!1},r.prototype.insideStart=function(t,n){return this.compare(t,n)==0?!this.isEnd(t,n):!1},r.prototype.insideEnd=function(t,n){return this.compare(t,n)==0?!this.isStart(t,n):!1},r.prototype.compare=function(t,n){return!this.isMultiLine()&&t===this.start.row?nthis.end.column?1:0:tthis.end.row?1:this.start.row===t?n>=this.start.column?0:-1:this.end.row===t?n<=this.end.column?0:1:0},r.prototype.compareStart=function(t,n){return this.start.row==t&&this.start.column==n?-1:this.compare(t,n)},r.prototype.compareEnd=function(t,n){return this.end.row==t&&this.end.column==n?1:this.compare(t,n)},r.prototype.compareInside=function(t,n){return this.end.row==t&&this.end.column==n?1:this.start.row==t&&this.start.column==n?-1:this.compare(t,n)},r.prototype.clipRows=function(t,n){if(this.end.row>n)var i={row:n+1,column:0};else if(this.end.rown)var o={row:n+1,column:0};else if(this.start.row"u"?this.setPosition(e.row,e.column):this.setPosition(e,s)}return i.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},i.prototype.getDocument=function(){return this.document},i.prototype.onChange=function(o){if(!(o.start.row==o.end.row&&o.start.row!=this.row)&&!(o.start.row>this.row)){var e=n(o,{row:this.row,column:this.column},this.$insertRight);this.setPosition(e.row,e.column,!0)}},i.prototype.setPosition=function(o,e,s){var u;if(s?u={row:o,column:e}:u=this.$clipPositionToDocument(o,e),!(this.row==u.row&&this.column==u.column)){var f={row:this.row,column:this.column};this.row=u.row,this.column=u.column,this._signal("change",{old:f,value:u})}},i.prototype.detach=function(){this.document.off("change",this.$onChange)},i.prototype.attach=function(o){this.document=o||this.document,this.document.on("change",this.$onChange)},i.prototype.$clipPositionToDocument=function(o,e){var s={};return o>=this.document.getLength()?(s.row=Math.max(0,this.document.getLength()-1),s.column=this.document.getLine(s.row).length):o<0?(s.row=0,s.column=0):(s.row=o,s.column=Math.min(this.document.getLine(s.row).length,Math.max(0,e))),e<0&&(s.column=0),s},i}();r.prototype.$insertRight=!1,c.implement(r.prototype,l);function t(i,o,e){var s=e?i.column<=o.column:i.column=u&&(e=u-1,s=void 0);var f=this.getLine(e);return s==null&&(s=f.length),s=Math.min(Math.max(s,0),f.length),{row:e,column:s}},o.prototype.clonePos=function(e){return{row:e.row,column:e.column}},o.prototype.pos=function(e,s){return{row:e,column:s}},o.prototype.$clipPosition=function(e){var s=this.getLength();return e.row>=s?(e.row=Math.max(0,s-1),e.column=this.getLine(s-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},o.prototype.insertFullLines=function(e,s){e=Math.min(Math.max(e,0),this.getLength());var u=0;e0,f=s=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},o.prototype.replace=function(e,s){if(e instanceof t||(e=t.fromPoints(e.start,e.end)),s.length===0&&e.isEmpty())return e.start;if(s==this.getTextRange(e))return e.end;this.remove(e);var u;return s?u=this.insert(e.start,s):u=e.start,u},o.prototype.applyDeltas=function(e){for(var s=0;s=0;s--)this.revertDelta(e[s])},o.prototype.applyDelta=function(e,s){var u=e.action=="insert";(u?e.lines.length<=1&&!e.lines[0]:!t.comparePoints(e.start,e.end))||(u&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(l(this.$lines,e,s),this._signal("change",e)))},o.prototype.$safeApplyDelta=function(e){var s=this.$lines.length;(e.action=="remove"&&e.start.row0;)t&1&&(n+=r),(t>>=1)&&(r+=r);return n};var c=/^\s\s*/,l=/\s\s*$/;h.stringTrimLeft=function(r){return r.replace(c,"")},h.stringTrimRight=function(r){return r.replace(l,"")},h.copyObject=function(r){var t={};for(var n in r)t[n]=r[n];return t},h.copyArray=function(r){for(var t=[],n=0,i=r.length;n=n.$lines.length)throw p=new Error("Invalid delta"),p.data={path:o.$path,linesLength:n.$lines.length,start:f.start,end:f.end},p;n.applyDelta(f,!0)}if(o.$timeout)return i.schedule(o.$timeout);o.onUpdate()})};(function(){this.$timeout=500,this.setTimeout=function(t){this.$timeout=t},this.setValue=function(t){this.doc.setValue(t),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(t){this.sender.callback(this.doc.getValue(),t)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(r.prototype)});const w=$({__proto__:null,default:L},[L]);export{w};