/* cjs-module-lexer 1.3.1 */
var t,p=new Uint8Array(new Uint16Array([1]).buffer)[0]===1;function x(e,n="@"){if(!t)throw new Error("Not initialized");let i=e.length+1,r=(t.__heap_base.value||t.__heap_base)+i*4-t.memory.buffer.byteLength;r>0&&t.memory.grow(Math.ceil(r/65536));let a=t.sa(i);(p?u:w)(e,new Uint16Array(t.memory.buffer,a,i));let s=t.parseCJS(a,e.length,0,0,0);if(s){let o=new Error(`Parse error ${n}${t.e()}:${e.slice(0,t.e()).split(`
`).length}:${t.e()-e.lastIndexOf(`
`,t.e()-1)}`);throw Object.assign(o,{idx:t.e()}),(s===5||s===6||s===7)&&Object.assign(o,{code:"ERR_LEXER_ESM_SYNTAX"}),o}let f=new Set,d=new Set,h=new Set;for(;t.rre();){let o=l(e.slice(t.res(),t.ree()));o&&d.add(o)}for(;t.ru();)h.add(l(e.slice(t.us(),t.ue())));for(;t.re();){let o=l(e.slice(t.es(),t.ee()));o!==void 0&&!h.has(o)&&f.add(o)}return{exports:[...f],reexports:[...d]}}function l(e){if(e[0]==='"'||e[0]==="'")try{let n=(0,eval)(e);for(let i=0;i<n.length;i++){let r=n.charCodeAt(i)&64512;if(!(r<55296))if(r===55296){if((n.charCodeAt(++i)&64512)!==56320)return}else return}return n}catch{}else return e}function w(e,n){let i=e.length,r=0;for(;r<i;){let a=e.charCodeAt(r);n[r++]=(a&255)<<8|a>>>8}}function u(e,n){let i=e.length,r=0;for(;r<i;)n[r]=e.charCodeAt(r++)}var y=async()=>{let e="[encoded data, 31800 characters]";return typeof window<"u"&&typeof atob=="function"?Uint8Array.from(atob(e),n=>n.charCodeAt(0)):Buffer.from(e,"base64")},c;function m(){return c||(c=(async()=>{let e=await WebAssembly.compile(await y()),{exports:n}=await WebAssembly.instantiate(e);t=n})())}export{m as init,x as parse};
