PromoCursed/node_modules/cjs-module-lexer/dist/lexer.mjs

5 lines
33 KiB
JavaScript
Raw Normal View History

2024-08-20 23:25:37 +04:00
/* 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="AGFzbQEAAAABrAERYAJ/fwBgAABgAX8Bf2AAAX9gBn9/f39/fwF/YAF/AGAXf39/f39/f39/f39/f39/f39/f39/f38Bf2AIf39/f39/f38Bf2AHf39/f39/fwF/YAN/f38Bf2AFf39/f38Bf2AOf39/f39/f39/f39/f38Bf2AKf39/f39/f39/fwF/YAt/f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