"use strict";(self.webpackChunkopencelium=self.webpackChunkopencelium||[]).push([[677],{89677:function(e,t,u){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=n(u(4631)),r=u(40435);function a(e,t){var u,n,l=e.levels;return((l&&0!==l.length?l[l.length-1]-((null===(u=this.electricInput)||void 0===u?void 0:u.test(t))?1:0):e.indentLevel)||0)*((null===(n=this.config)||void 0===n?void 0:n.indentUnit)||0)}l.default.defineMode("graphql-variables",(function(e){var t=r.onlineParser({eatWhitespace:function(e){return e.eatSpace()},lexRules:i,parseRules:c,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:a,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}}));var i={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},c={Document:[r.p("{"),r.list("Variable",r.opt(r.p(","))),r.p("}")],Variable:[s("variable"),r.p(":"),"Value"],Value:function(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[r.t("Number","number")],StringValue:[r.t("String","string")],BooleanValue:[r.t("Keyword","builtin")],NullValue:[r.t("Keyword","keyword")],ListValue:[r.p("["),r.list("Value",r.opt(r.p(","))),r.p("]")],ObjectValue:[r.p("{"),r.list("ObjectField",r.opt(r.p(","))),r.p("}")],ObjectField:[s("attribute"),r.p(":"),"Value"]};function s(e){return{style:e,match:function(e){return"String"===e.kind},update:function(e,t){e.name=t.value.slice(1,-1)}}}}}]);