(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-18b009b1"],{"0ce4":function(e,t,n){"use strict";function r(e,t){var n=[],r=e;while(null===r||void 0===r?void 0:r.kind)n.push(r),r=r.prevState;for(var i=n.length-1;i>=0;i--)t(n[i])}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},aeec:function(e,t,n){"use strict";function r(e,t,n){var r=i(n,u(t.string));if(r){var a=null!==t.type&&/"|\w/.test(t.string[0])?t.start:t.end;return{list:r,from:{line:e.line,ch:a},to:{line:e.line,ch:t.end}}}}function i(e,t){if(!t)return a(e,(function(e){return!e.isDeprecated}));var n=e.map((function(e){return{proximity:l(u(e.text),t),entry:e}})),r=a(a(n,(function(e){return e.proximity<=2})),(function(e){return!e.entry.isDeprecated})),i=r.sort((function(e,t){return(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.text.length-t.entry.text.length}));return i.map((function(e){return e.entry}))}function a(e,t){var n=e.filter(t);return 0===n.length?e:n}function u(e){return e.toLowerCase().replace(/\W/g,"")}function l(e,t){var n=o(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}function o(e,t){var n,r,i=[],a=e.length,u=t.length;for(n=0;n<=a;n++)i[n]=[n];for(r=1;r<=u;r++)i[0][r]=r;for(n=1;n<=a;n++)for(r=1;r<=u;r++){var l=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+l),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+l))}return i[a][u]}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},f46c:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n("56b3")),a=n("4f3b"),u=r(n("0ce4")),l=r(n("aeec"));function o(e,t,n){var r="Invalid"===t.state.kind?t.state.prevState:t.state,i=r.kind,u=r.step;if("Document"===i&&0===u)return(0,l.default)(e,t,[{text:"{"}]);var o=n.variableToType;if(o){var c=f(o,t.state);if("Document"===i||"Variable"===i&&0===u){var p=Object.keys(o);return(0,l.default)(e,t,p.map((function(e){return{text:'"'.concat(e,'": '),type:o[e]}})))}if(("ObjectValue"===i||"ObjectField"===i&&0===u)&&c.fields){var s=Object.keys(c.fields).map((function(e){return c.fields[e]}));return(0,l.default)(e,t,s.map((function(e){return{text:'"'.concat(e.name,'": '),type:e.type,description:e.description}})))}if("StringValue"===i||"NumberValue"===i||"BooleanValue"===i||"NullValue"===i||"ListValue"===i&&1===u||"ObjectField"===i&&2===u||"Variable"===i&&2===u){var d=c.type?(0,a.getNamedType)(c.type):void 0;if(d instanceof a.GraphQLInputObjectType)return(0,l.default)(e,t,[{text:"{"}]);if(d instanceof a.GraphQLEnumType){var y=d.getValues();return(0,l.default)(e,t,y.map((function(e){return{text:'"'.concat(e.name,'"'),type:d,description:e.description}})))}if(d===a.GraphQLBoolean)return(0,l.default)(e,t,[{text:"true",type:a.GraphQLBoolean,description:"Not false."},{text:"false",type:a.GraphQLBoolean,description:"Not true."}])}}}function f(e,t){var n={type:null,fields:null};return(0,u.default)(t,(function(t){if("Variable"===t.kind)n.type=e[t.name];else if("ListValue"===t.kind){var r=n.type?(0,a.getNullableType)(n.type):void 0;n.type=r instanceof a.GraphQLList?r.ofType:null}else if("ObjectValue"===t.kind){var i=n.type?(0,a.getNamedType)(n.type):void 0;n.fields=i instanceof a.GraphQLInputObjectType?i.getFields():null}else if("ObjectField"===t.kind){var u=t.name&&n.fields?n.fields[t.name]:null;n.type=null===u||void 0===u?void 0:u.type}})),n}i.default.registerHelper("hint","graphql-variables",(function(e,t){var n=e.getCursor(),r=e.getTokenAt(n),a=o(n,r,t);return(null===a||void 0===a?void 0:a.list)&&a.list.length>0&&(a.from=i.default.Pos(a.from.line,a.from.ch),a.to=i.default.Pos(a.to.line,a.to.ch),i.default.signal(e,"hasCompletion",e,a,r)),a}))}}]);