"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?C:E)(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 k=[],w=[];A.ri();){var o=A.is(),i=A.ie(),N=A.ai(),L=A.id(),F=A.ss(),a=A.se(),s=void 0;A.ip()&&(s=S(Q.slice(-1===L?o-1:o,-1===L?i+1:i))),k.push({n:s,s:o,e:i,ss:F,se:a,d:L,a:N})}for(;A.re();){o=A.es(),i=A.ee();var G=A.els(),U=A.ele(),h=(s=Q.slice(o,i))[0],Y=G<0?void 0:Q.slice(G,U),M=Y?Y[0]:"";w.push({s:o,e:i,ls:G,le:U,n:'"'===h||"'"===h?S(s):s,ln:'"'===M||"'"===M?S(Y):Y})}function S(A){try{return(0,eval)(A)}catch(A){}}return[k,w,!!A.f()]}function E(A,Q){for(var B=A.length,E=0;E>>8}}function C(A,Q){for(var B=A.length,E=0;E