"use strict";(self.webpackChunksc_note_comment=self.webpackChunksc_note_comment||[]).push([[1464],{1464(C,b,g){function f(e){for(var n={},t=e.split(" "),i=0;i<t.length;++i)n[t[i]]=!0;return n}g.d(b,{groovy:()=>B});var r,x=f("abstract as assert boolean break byte case catch char class const continue def default do double else enum extends final finally float for goto if implements import in instanceof int interface long native new package private protected public return short static strictfp super switch synchronized threadsafe throw throws trait transient try void volatile while"),m=f("catch class def do else enum finally for if interface switch trait try while"),z=f("return break continue"),_=f("null true false this");function d(e,n){var t=e.next();if('"'==t||"'"==t)return h(t,e,n);if(/[\[\]{}\(\),;\:\.]/.test(t))return r=t,null;if(/\d/.test(t))return e.eatWhile(/[\w\.]/),e.eat(/eE/)&&(e.eat(/\+\-/),e.eatWhile(/\d/)),"number";if("/"==t){if(e.eat("*"))return n.tokenize.push(y),y(e,n);if(e.eat("/"))return e.skipToEnd(),"comment";if(k(n.lastToken,!1))return h(t,e,n)}if("-"==t&&e.eat(">"))return r="->",null;if(/[+\-*&%=<>!?|\/~]/.test(t))return e.eatWhile(/[+\-*&%=<>|~]/),"operator";if(e.eatWhile(/[\w\$_]/),"@"==t)return e.eatWhile(/[\w\$_\.]/),"meta";if("."==n.lastToken)return"property";if(e.eat(":"))return r="proplabel","property";var i=e.current();return _.propertyIsEnumerable(i)?"atom":x.propertyIsEnumerable(i)?(m.propertyIsEnumerable(i)?r="newstatement":z.propertyIsEnumerable(i)&&(r="standalone"),"keyword"):"variable"}function h(e,n,t){var i=!1;if("/"!=e&&n.eat(e)){if(!n.eat(e))return"string";i=!0}function o(u,s){for(var a,p=!1,v=!i;null!=(a=u.next());){if(a==e&&!p){if(!i)break;if(u.match(e+e)){v=!0;break}}if('"'==e&&"$"==a&&!p){if(u.eat("{"))return s.tokenize.push(E()),"string";if(u.match(/^\w/,!1))return s.tokenize.push(T),"string"}p=!p&&"\\"==a}return v&&s.tokenize.pop(),"string"}return t.tokenize.push(o),o(n,t)}function E(){var e=1;function n(t,i){if("}"==t.peek()){if(0==--e)return i.tokenize.pop(),i.tokenize[i.tokenize.length-1](t,i)}else"{"==t.peek()&&e++;return d(t,i)}return n.isBase=!0,n}function T(e,n){var t=e.match(/^(\.|[\w\$_]+)/);return(!t||!e.match("."==t[0]?/^[\w$_]/:/^\./))&&n.tokenize.pop(),t?"."==t[0]?null:"variable":n.tokenize[n.tokenize.length-1](e,n)}function y(e,n){for(var i,t=!1;i=e.next();){if("/"==i&&t){n.tokenize.pop();break}t="*"==i}return"comment"}function k(e,n){return!e||"operator"==e||"->"==e||/[\.\[\{\(,;:]/.test(e)||"newstatement"==e||"keyword"==e||"proplabel"==e||"standalone"==e&&!n}function w(e,n,t,i,o){this.indented=e,this.column=n,this.type=t,this.align=i,this.prev=o}function c(e,n,t){return e.context=new w(e.indented,n,t,null,e.context)}function l(e){var n=e.context.type;return(")"==n||"]"==n||"}"==n)&&(e.indented=e.context.indented),e.context=e.context.prev}d.isBase=!0;const B={name:"groovy",startState:function(e){return{tokenize:[d],context:new w(-e,0,"top",!1),indented:0,startOfLine:!0,lastToken:null}},token:function(e,n){var t=n.context;if(e.sol()&&(null==t.align&&(t.align=!1),n.indented=e.indentation(),n.startOfLine=!0,"statement"==t.type&&!k(n.lastToken,!0)&&(l(n),t=n.context)),e.eatSpace())return null;r=null;var i=n.tokenize[n.tokenize.length-1](e,n);if("comment"==i)return i;if(null==t.align&&(t.align=!0),";"!=r&&":"!=r||"statement"!=t.type)if("->"==r&&"statement"==t.type&&"}"==t.prev.type)l(n),n.context.align=!1;else if("{"==r)c(n,e.column(),"}");else if("["==r)c(n,e.column(),"]");else if("("==r)c(n,e.column(),")");else if("}"==r){for(;"statement"==t.type;)t=l(n);for("}"==t.type&&(t=l(n));"statement"==t.type;)t=l(n)}else r==t.type?l(n):("}"==t.type||"top"==t.type||"statement"==t.type&&"newstatement"==r)&&c(n,e.column(),"statement");else l(n);return n.startOfLine=!1,n.lastToken=r||i,i},indent:function(e,n,t){if(!e.tokenize[e.tokenize.length-1].isBase)return null;var i=n&&n.charAt(0),o=e.context;"statement"==o.type&&!k(e.lastToken,!0)&&(o=o.prev);var u=i==o.type;return"statement"==o.type?o.indented+("{"==i?0:t.unit):o.align?o.column+(u?0:1):o.indented+(u?0:t.unit)},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""']}}}}}]);