import{A as w}from"./index.f4d41e67.entry.js";function k(u,d){return d.forEach(function(t){t&&typeof t!="string"&&!Array.isArray(t)&&Object.keys(t).forEach(function(o){if(o!=="default"&&!(o in u)){var a=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(u,o,a.get?a:{enumerable:!0,get:function(){return t[o]}})}})}),Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}var x={exports:{}};(function(u,d){(function(t){t(w.exports)})(function(t){var o=function(a){return new RegExp("^(?:"+a.join("|")+")$","i")};t.defineMode("cypher",function(a){var l=function(n){var e=n.next();if(e==='"')return n.match(/^[^"]*"/),"string";if(e==="'")return n.match(/^[^']*'/),"string";if(/[{}\(\),\.;\[\]]/.test(e))return s=e,"node";if(e==="/"&&n.eat("/"))return n.skipToEnd(),"comment";if(f.test(e))return n.eatWhile(f),null;if(n.eatWhile(/[_\w\d]/),n.eat(":"))return n.eatWhile(/[\w\d_\-]/),"atom";var r=n.current();return y.test(r)?"builtin":v.test(r)?"def":m.test(r)||b.test(r)?"keyword":"variable"},c=function(n,e,r){return n.context={prev:n.context,indent:n.indent,col:r,type:e}},p=function(n){return n.indent=n.context.indent,n.context=n.context.prev},g=a.indentUnit,s,y=o(["abs","acos","allShortestPaths","asin","atan","atan2","avg","ceil","coalesce","collect","cos","cot","count","degrees","e","endnode","exp","extract","filter","floor","haversin","head","id","keys","labels","last","left","length","log","log10","lower","ltrim","max","min","node","nodes","percentileCont","percentileDisc","pi","radians","rand","range","reduce","rel","relationship","relationships","replace","reverse","right","round","rtrim","shortestPath","sign","sin","size","split","sqrt","startnode","stdev","stdevp","str","substring","sum","tail","tan","timestamp","toFloat","toInt","toString","trim","type","upper"]),v=o(["all","and","any","contains","exists","has","in","none","not","or","single","xor"]),m=o(["as","asc","ascending","assert","by","case","commit","constraint","create","csv","cypher","delete","desc","descending","detach","distinct","drop","else","end","ends","explain","false","fieldterminator","foreach","from","headers","in","index","is","join","limit","load","match","merge","null","on","optional","order","periodic","profile","remove","return","scan","set","skip","start","starts","then","true","union","unique","unwind","using","when","where","with","call","yield"]),b=o(["access","active","assign","all","alter","as","catalog","change","copy","create","constraint","constraints","current","database","databases","dbms","default","deny","drop","element","elements","exists","from","grant","graph","graphs","if","index","indexes","label","labels","management","match","name","names","new","node","nodes","not","of","on","or","password","populated","privileges","property","read","relationship","relationships","remove","replace","required","revoke","role","roles","set","show","start","status","stop","suspended","to","traverse","type","types","user","users","with","write"]),f=/[*+\-<>=&|~%^]/;return{startState:function(){return{tokenize:l,context:null,indent:0,col:0}},token:function(n,e){if(n.sol()&&(e.context&&e.context.align==null&&(e.context.align=!1),e.indent=n.indentation()),n.eatSpace())return null;var r=e.tokenize(n,e);if(r!=="comment"&&e.context&&e.context.align==null&&e.context.type!=="pattern"&&(e.context.align=!0),s==="(")c(e,")",n.column());else if(s==="[")c(e,"]",n.column());else if(s==="{")c(e,"}",n.column());else if(/[\]\}\)]/.test(s)){for(;e.context&&e.context.type==="pattern";)p(e);e.context&&s===e.context.type&&p(e)}else s==="."&&e.context&&e.context.type==="pattern"?p(e):/atom|string|variable/.test(r)&&e.context&&(/[\}\]]/.test(e.context.type)?c(e,"pattern",n.column()):e.context.type==="pattern"&&!e.context.align&&(e.context.align=!0,e.context.col=n.column()));return r},indent:function(n,e){var r=e&&e.charAt(0),i=n.context;if(/[\]\}]/.test(r))for(;i&&i.type==="pattern";)i=i.prev;var h=i&&r===i.type;return i?i.type==="keywords"?t.commands.newlineAndIndent:i.align?i.col+(h?0:1):i.indent+(h?0:g):0}}}),t.modeExtensions.cypher={autoFormatLineBreaks:function(a){for(var l,c,p,c=a.split(`
`),p=/\s+\b(return|where|order by|match|with|skip|limit|create|delete|set)\b\s/g,l=0;l<c.length;l++)c[l]=c[l].replace(p,` 
$1 `).trim();return c.join(`
`)}},t.defineMIME("application/x-cypher-query","cypher")})})();var P=x.exports,_=k({__proto__:null,default:P},[x.exports]);export{_ as c};
