1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2453,5604],{14834:(e,t,n)=>{n.r(t);var r=n(65604),i=n(35639),l=n(63107),a=n(19263);n(40574);var o=Object.defineProperty,s=(e,t)=>o(e,"name",{value:t,configurable:!0});function f(e,t,n){let r=u(n,p(t.string));if(!r)return;let i=null!==t.type&&/"|\w/.test(t.string[0])?t.start:t.end;return{list:r,from:{line:e.line,ch:i},to:{line:e.line,ch:t.end}}}function u(e,t){return t?c(c(e.map(e=>({proximity:y(p(e.text),t),entry:e})),e=>e.proximity<=2),e=>!e.entry.isDeprecated).sort((e,t)=>!!e.entry.isDeprecated-!!t.entry.isDeprecated||e.proximity-t.proximity||e.entry.text.length-t.entry.text.length).map(e=>e.entry):c(e,e=>!e.isDeprecated)}function c(e,t){let n=e.filter(t);return 0===n.length?e:n}function p(e){return e.toLowerCase().replaceAll(/\W/g,"")}function y(e,t){let n=d(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=.5*(0!==e.indexOf(t))),n}function d(e,t){let n,r,i=[],l=e.length,a=t.length;for(n=0;n<=l;n++)i[n]=[n];for(r=1;r<=a;r++)i[0][r]=r;for(n=1;n<=l;n++)for(r=1;r<=a;r++){let l=+(e[n-1]!==t[r-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[l][a]}function g(e,t,n){let{kind:r,step:a}="Invalid"===t.state.kind?t.state.prevState:t.state;if("Document"===r&&0===a)return f(e,t,[{text:"{"}]);let{variableToType:o}=n;if(!o)return;let s=m(o,t.state);if("Document"===r||"Variable"===r&&0===a)return f(e,t,Object.keys(o).map(e=>({text:'"'.concat(e,'": '),type:o[e]})));if(("ObjectValue"===r||"ObjectField"===r&&0===a)&&s.fields)return f(e,t,Object.keys(s.fields).map(e=>s.fields[e]).map(e=>({text:'"'.concat(e.name,'": '),type:e.type,description:e.description})));if("StringValue"===r||"NumberValue"===r||"BooleanValue"===r||"NullValue"===r||"ListValue"===r&&1===a||"ObjectField"===r&&2===a||"Variable"===r&&2===a){let n=s.type?(0,i.MR)(s.type):void 0;if(n instanceof i.zP)return f(e,t,[{text:"{"}]);if(n instanceof i.Zb)return f(e,t,n.getValues().map(e=>({text:'"'.concat(e.name,'"'),type:n,description:e.description})));if(n===l.kk)return f(e,t,[{text:"true",type:l.kk,description:"Not false."},{text:"false",type:l.kk,description:"Not true."}])}}function m(e,t){let n={type:null,fields:null};return(0,a.f)(t,t=>{switch(t.kind){case"Variable":n.type=e[t.name];break;case"ListValue":{let e=n.type?(0,i.yl)(n.type):void 0;n.type=e instanceof i.KT?e.ofType:null;break}case"ObjectValue":{let e=n.type?(0,i.MR)(n.type):void 0;n.fields=e instanceof i.zP?e.getFields():null;break}case"ObjectField":{let e=t.name&&n.fields?n.fields[t.name]:null;n.type=null==e?void 0:e.type}}}),n}s(f,"hintList"),s(u,"filterAndSortList"),s(c,"filterNonEmpty"),s(p,"normalizeText"),s(y,"getProximity"),s(d,"lexicalDistance"),r.C.registerHelper("hint","graphql-variables",(e,t)=>{let n=e.getCursor(),i=e.getTokenAt(n),l=g(n,i,t);return null!=l&&l.list&&l.list.length>0&&(l.from=r.C.Pos(l.from.line,l.from.ch),l.to=r.C.Pos(l.to.line,l.to.ch),r.C.signal(e,"hasCompletion",e,l,i)),l}),s(g,"getVariablesHint"),s(m,"getTypeInfo")},19263:(e,t,n)=>{function r(e,t){let n=[],r=e;for(;null!=r&&r.kind;)n.push(r),r=r.prevState;for(let e=n.length-1;e>=0;e--)t(n[e])}n.d(t,{f:()=>r}),(0,Object.defineProperty)(r,"name",{value:"forEachState",configurable:!0})},65604:(e,t,n)=>{n.r(t),n.d(t,{C:()=>a,c:()=>o});var r=n(40574);function i(e,t){for(var n=0;n<t.length;n++){let r=t[n];if("string"!=typeof r&&!Array.isArray(r)){for(let t in r)if("default"!==t&&!(t in e)){let n=Object.getOwnPropertyDescriptor(r,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(0,Object.defineProperty)(i,"name",{value:"_mergeNamespaces",configurable:!0});var l=(0,r.r)();let a=(0,r.g)(l),o=i({__proto__:null,default:a},[l])}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.