hexo/node_modules/es-module-lexer/dist/lexer.asm.js

2 lines
19 KiB
JavaScript
Raw Normal View History

2023-09-25 15:58:56 +08:00
/* es-module-lexer 1.3.1 */
let e,a,r,i=2<<19;const s=1===new Uint8Array(new Uint16Array([1]).buffer)[0]?function(e,a){const r=e.length;let i=0;for(;i<r;)a[i]=e.charCodeAt(i++)}:function(e,a){const r=e.length;let i=0;for(;i<r;){const r=e.charCodeAt(i);a[i++]=(255&r)<<8|r>>>8}},t="xportmportlassetaromsyncunctionssertvoyiedelecontininstantybreareturdebuggeawaithrwhileforifcatcfinallels";let f,c,n;export function parse(l,k="@"){f=l,c=k;const u=2*f.length+(2<<18);if(u>i||!e){for(;u>i;)i*=2;a=new ArrayBuffer(i),s(t,new Uint16Array(a,16,105)),e=function(e,a,r){"use asm";var i=new e.Int8Array(r),s=new e.Int16Array(r),t=new e.Int32Array(r),f=new e.Uint8Array(r),c=new e.Uint16Array(r),n=1024;function b(){var e=0,a=0,r=0,f=0,b=0,u=0,w=0;w=n;n=n+10240|0;i[795]=1;s[395]=0;s[396]=0;t[67]=t[2];i[796]=0;t[66]=0;i[794]=0;t[68]=w+2048;t[69]=w;i[797]=0;e=(t[3]|0)+-2|0;t[70]=e;a=e+(t[64]<<1)|0;t[71]=a;e:while(1){r=e+2|0;t[70]=r;if(e>>>0>=a>>>0){u=18;break}a:do{switch(s[r>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{if((((s[396]|0)==0?H(r)|0:0)?(m(e+4|0,16,10)|0)==0:0)?(l(),(i[795]|0)==0):0){u=9;break e}else u=17;break}case 105:{if(H(r)|0?(m(e+4|0,26,10)|0)==0:0){k();u=17}else u=17;break}case 59:{u=17;break}case 47:switch(s[e+4>>1]|0){case 47:{P();break a}case 42:{y(1);break a}default:{u=16;break e}}default:{u=16;break e}}}while(0);if((u|0)==17){u=0;t[67]=t[70]}e=t[70]|0;a=t[71]|0}if((u|0)==9){e=t[70]|0;t[67]=e;u=19}else if((u|0)==16){i[795]=0;t[70]=e;u=19}else if((u|0)==18)if(!(i[794]|0)){e=r;u=19}else e=0;do{if((u|0)==19){e:while(1){a=e+2|0;t[70]=a;b=a;if(e>>>0>=(t[71]|0)>>>0){u=82;break}a:do{switch(s[a>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{if(((s[396]|0)==0?H(a)|0:0)?(m(e+4|0,16,10)|0)==0:0){l();u=81}else u=81;break}case 105:{if(H(a)|0?(m(e+4|0,26,10)|0)==0:0){k();u=81}else u=81;break}case 99:{if((H(a)|0?(m(e+4|0,36,8)|0)==0:0)?V(s[e+12>>1]|0)|0:0){i[797]=1;u=81}else u=81;break}case 40:{b=t[68]|0;r=s[396]|0;u=r&65535;t[b+(u<<3)>>2]=1;f=t[67]|0;s[396]=r+1<<16>>16;t[b+(u<<3)+4>>2]=f;u=81;break}case 41:{a=s[396]|0;if(!(a<<16>>16)){u=36;break e}u=a+-1<<16>>16;s[396]=u;f=s[395]|0;a=f&65535;if(f<<16>>16!=0?(t[(t[68]|0)+((u&65535)<<3)>>2]|0)==5:0){a=t[(t[69]|0)+(a+-1<<2)>>2]|0;r=a+4|0;if(!(t[r>>2]|0))t[r>>2]=b;t[a+12>>2]=e+4;s[395]=f+-1<<16>>16;u=81}else u=81;break}case 123:{u=t[67]|0;b=t[61]|0;e=u;do{if((s[u>>1]|0)==41&(b|0)!=0?(t[b+4>>2]|0)==(u|0):0){a=t[62]|0;t[61]=a;if(!a){t[57]=0;break}else{t[a+28>>2]=0;break}}}while(0);b=t[68]|0;f=s[396]|0;u=f&65535;t[b+(u<<3)>>2]=(i[797]|0)==0?2:6;s[396]=f+1<<16>>16;t[b+(u<<3)+4>>2]=e;i[797]=0;u=81;break}case 125:{e=s[396]|0;if(!(e<<16>>16)){u=49;break e}b=t[68]|0;u=e+-1<<16>>16;s[396]=u;if((t[b+((u&65535)<<3)>>2]|0)==4){h();u=81}else u=81;break}case 39:{d(39);u=81;break}case 34:{d(34);u=81;break}case 47:switch(s[e+4>>1]|0){case 47:{P();break a}case 42:{y(1);break a}default:{e=t[67]|0;f=s[e>>1]|0;r:do{if(!(U(f)|0)){switch(f<<16>>16){case 41:if(D(t[(t[68]|0)+(c[396]<<3)+4>>2]|0)|0){u=69;break r}else{u=66;break r}case 125:break;default:{u=66;break r}}a=t[68]|0;r=c[396]|0;if(!(p(t[a+(r<<3)+4>>2]|0)|0)?(t[a+(r<<3)>>2]|0)!=6:0)u=66;else u=69}else switch(f<<16>>16){case 46:if(((s[e+-2>>1]|0)+-48&65535)<10){u=66;break r}else{u=69;break r}case 43:if((s[e+-2>>1]|0)==43){u=66;break r}else{u=69;break r}case 45:if((s[e+-2>>1]|0)==45){u=66;break r}else{u=69;break r}default:{u=69;break r}}}while(0);r:do{if((u|0)==66){u=0;if(!(o(e)|0)){switch(f<<16>>16){case 0:{u=69;break r}case 47:{if(i[796]|0){u=69;break r}break}default:{}}r=t[3]|0;a=f;do{if(e>>>0<=r>>>0)break;e=e+-2|0;t[67]=e;a=s[e>>1]|0}while(!(E(a)|0));if(F(a)|0){do{if(e>>>0<=r>>>0)break;e=e+-2|0;t[67]=e}while(F(s[e>>1]|0)|0);if(j(e)|0){g();i[796]=0;u=81;break a}else e=1}else e=1}else u=69}}while(0);if((u|0)==69){g();e=0}i[796]=e;u=81;break a}}case 96:{b=t[68]|0;f=s[396]|0;u=f&65535;t[b+(u<<3)+4>>2]=t[67];s[396]=f+1<<16>>16;t[b+(u<<3)>>2]=3;h();u=81;break}default:u=81}}while(0);if((u|0)==81){u=0;t[67]=t[70]}e=t[70]|0}if((u|0)==36){T();e=0;break}else if((u|0)==49){T();e=0;break}else if((u|0)==82){e=(i[794]|0)==0?(s[395]|s[396])<<16>>16