ruru
Version:
Grafast-flavoured GraphiQL distribution
2 lines • 1.77 kB
JavaScript
export const __webpack_esm_id__=7029;export const __webpack_esm_ids__=[7029];export const __webpack_esm_modules__={19031(t,e,n){n.r(e),n.d(e,{VSBuffer:()=>o,readUInt16LE:()=>s,readUInt32BE:()=>i,readUInt8:()=>c,writeUInt16LE:()=>u,writeUInt32BE:()=>d,writeUInt8:()=>l});var r=n(55003);const f="undefined"!=typeof Buffer;let a;new r.Lazy(()=>new Uint8Array(256));class o{static wrap(t){return f&&!Buffer.isBuffer(t)&&(t=Buffer.from(t.buffer,t.byteOffset,t.byteLength)),new o(t)}constructor(t){this.buffer=t,this.byteLength=this.buffer.byteLength}toString(){return f?this.buffer.toString():(a||(a=new TextDecoder),a.decode(this.buffer))}}function s(t,e){return(0|t[e+0])>>>0|t[e+1]<<8>>>0}function u(t,e,n){t[n+0]=255&e,e>>>=8,t[n+1]=255&e}function i(t,e){return t[e]*2**24+65536*t[e+1]+256*t[e+2]+t[e+3]}function d(t,e,n){t[n+3]=e,e>>>=8,t[n+2]=e,e>>>=8,t[n+1]=e,e>>>=8,t[n]=e}function c(t,e){return t[e]}function l(t,e,n){t[n]=e}},7029(t,e,n){n.r(e),n.d(e,{encodeSemanticTokensDto:()=>a});var r=n(19031),f=n(69958);function a(t){const e=new Uint32Array(function(t){let e=0;if(e+=2,"full"===t.type)e+=1+t.data.length;else{e+=1,e+=3*t.deltas.length;for(const n of t.deltas)n.data&&(e+=n.data.length)}return e}(t));let n=0;if(e[n++]=t.id,"full"===t.type)e[n++]=1,e[n++]=t.data.length,e.set(t.data,n),n+=t.data.length;else{e[n++]=2,e[n++]=t.deltas.length;for(const r of t.deltas)e[n++]=r.start,e[n++]=r.deleteCount,r.data?(e[n++]=r.data.length,e.set(r.data,n),n+=r.data.length):e[n++]=0}return function(t){const e=new Uint8Array(t.buffer,t.byteOffset,4*t.length);return f.isLittleEndian()||function(t){for(let e=0,n=t.length;e<n;e+=4){const n=t[e+0],r=t[e+1],f=t[e+2],a=t[e+3];t[e+0]=a,t[e+1]=f,t[e+2]=r,t[e+3]=n}}(e),r.VSBuffer.wrap(e)}(e)}}};
//# sourceMappingURL=7029.js.map