"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[783],{37783:(e,t,a)=>{a.r(t);var l=a(45974),n=a(7829),u=(a(92906),a(27378),a(31542),Object.defineProperty),r=(e,t)=>u(e,"name",{value:t,configurable:!0});function i(e,t){var a,l;const n=e.levels;return((n&&0!==n.length?n[n.length-1]-((null===(a=this.electricInput)||void 0===a?void 0:a.test(t))?1:0):e.indentLevel)||0)*((null===(l=this.config)||void 0===l?void 0:l.indentUnit)||0)}l.C.defineMode("graphql-variables",(e=>{const t=(0,n.o)({eatWhitespace:e=>e.eatSpace(),lexRules:c,parseRules:s,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:i,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}})),r(i,"indent");const c={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/},s={Document:[(0,n.p)("{"),(0,n.l)("Variable",(0,n.a)((0,n.p)(","))),(0,n.p)("}")],Variable:[o("variable"),(0,n.p)(":"),"Value"],Value(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:[(0,n.t)("Number","number")],StringValue:[(0,n.t)("String","string")],BooleanValue:[(0,n.t)("Keyword","builtin")],NullValue:[(0,n.t)("Keyword","keyword")],ListValue:[(0,n.p)("["),(0,n.l)("Value",(0,n.a)((0,n.p)(","))),(0,n.p)("]")],ObjectValue:[(0,n.p)("{"),(0,n.l)("ObjectField",(0,n.a)((0,n.p)(","))),(0,n.p)("}")],ObjectField:[o("attribute"),(0,n.p)(":"),"Value"]};function o(e){return{style:e,match:e=>"String"===e.kind,update(e,t){e.name=t.value.slice(1,-1)}}}r(o,"namedKey")}}]);