"use strict";exports.init=void 0,exports.parse=parse;var A,Q,B=1===new Uint8Array(new Uint16Array([1]).buffer)[0];function parse(Q,g){if(void 0===g&&(g="@"),!A)return init.then((function(){return parse(Q)}));var I=Q.length+1,D=(A.__heap_base.value||A.__heap_base)+4*I-A.memory.buffer.byteLength;D>0&&A.memory.grow(Math.ceil(D/65536));var J=A.sa(I-1);if((B?E:C)(Q,new Uint16Array(A.memory.buffer,J,I)),!A.parse())throw Object.assign(new Error("Parse error ".concat(g,":").concat(Q.slice(0,A.e()).split("\n").length,":").concat(A.e()-Q.lastIndexOf("\n",A.e()-1))),{idx:A.e()});for(var w=[],k=[];A.ri();){var N=A.is(),L=A.ie(),o=A.ai(),i=A.id(),F=A.ss(),a=A.se(),G=void 0;A.ip()&&(G=S(Q.slice(-1===i?N-1:N,-1===i?L+1:L))),w.push({n:G,s:N,e:L,ss:F,se:a,d:i,a:o})}for(;A.re();){N=A.es(),L=A.ee();var s=A.els(),U=A.ele(),Y=(G=Q.slice(N,L))[0],q=s<0?void 0:Q.slice(s,U),R=q?q[0]:"";k.push({s:N,e:L,ls:s,le:U,n:'"'===Y||"'"===Y?S(G):G,ln:'"'===R||"'"===R?S(q):q})}function S(A){try{return(0,eval)(A)}catch(A){}}return[w,k,!!A.f()]}function C(A,Q){for(var B=A.length,C=0;C>>8}}function E(A,Q){for(var B=A.length,C=0;C