@vercel/ncc
Version:
Simple CLI for compiling a Node.js module into a single file, together with all its dependencies, gcc-style.
1 lines • 3.86 MB
JavaScript
(()=>{var __webpack_modules__={64973:E=>{function webpackEmptyContext(E){var P=new Error("Cannot find module '"+E+"'");P.code="MODULE_NOT_FOUND";throw P}webpackEmptyContext.keys=()=>[];webpackEmptyContext.resolve=webpackEmptyContext;webpackEmptyContext.id=64973;E.exports=webpackEmptyContext},57258:function(E,P,R){(function(E,N){true?N(P,R(12288),R(78424),R(38916)):0})(this,(function(E,P,R,N){"use strict";const $=0;const L=1;const q=2;const K=3;const ae=4;const ge=-1;class GenMapping{constructor({file:E,sourceRoot:R}={}){this._names=new P.SetArray;this._sources=new P.SetArray;this._sourcesContent=[];this._mappings=[];this.file=E;this.sourceRoot=R;this._ignoreList=new P.SetArray}}function cast(E){return E}function addSegment(E,P,R,N,$,L,q,K){return addSegmentInternal(false,E,P,R,N,$,L,q,K)}function addMapping(E,P){return addMappingInternal(false,E,P)}const maybeAddSegment=(E,P,R,N,$,L,q,K)=>addSegmentInternal(true,E,P,R,N,$,L,q,K);const maybeAddMapping=(E,P)=>addMappingInternal(true,E,P);function setSourceContent(E,R,N){const{_sources:$,_sourcesContent:L}=cast(E);const q=P.put($,R);L[q]=N}function setIgnore(E,R,N=true){const{_sources:$,_sourcesContent:L,_ignoreList:q}=cast(E);const K=P.put($,R);if(K===L.length)L[K]=null;if(N)P.put(q,K);else P.remove(q,K)}function toDecodedMap(E){const{_mappings:P,_sources:R,_sourcesContent:N,_names:$,_ignoreList:L}=cast(E);removeEmptyFinalLines(P);return{version:3,file:E.file||undefined,names:$.array,sourceRoot:E.sourceRoot||undefined,sources:R.array,sourcesContent:N,mappings:P,ignoreList:L.array}}function toEncodedMap(E){const P=toDecodedMap(E);return Object.assign(Object.assign({},P),{mappings:R.encode(P.mappings)})}function fromMap(E){const P=new N.TraceMap(E);const R=new GenMapping({file:P.file,sourceRoot:P.sourceRoot});putAll(cast(R)._names,P.names);putAll(cast(R)._sources,P.sources);cast(R)._sourcesContent=P.sourcesContent||P.sources.map((()=>null));cast(R)._mappings=N.decodedMappings(P);if(P.ignoreList)putAll(cast(R)._ignoreList,P.ignoreList);return R}function allMappings(E){const P=[];const{_mappings:R,_sources:N,_names:ge}=cast(E);for(let E=0;E<R.length;E++){const be=R[E];for(let R=0;R<be.length;R++){const ve=be[R];const xe={line:E+1,column:ve[$]};let Ce=undefined;let Ie=undefined;let He=undefined;if(ve.length!==1){Ce=N.array[ve[L]];Ie={line:ve[q]+1,column:ve[K]};if(ve.length===5)He=ge.array[ve[ae]]}P.push({generated:xe,source:Ce,original:Ie,name:He})}}return P}function addSegmentInternal(E,R,N,$,L,q,K,ae,be){const{_mappings:ve,_sources:xe,_sourcesContent:Ce,_names:Ie}=cast(R);const He=getLine(ve,N);const Ve=getColumnIndex(He,$);if(!L){if(E&&skipSourceless(He,Ve))return;return insert(He,Ve,[$])}const Ke=P.put(xe,L);const Qe=ae?P.put(Ie,ae):ge;if(Ke===Ce.length)Ce[Ke]=be!==null&&be!==void 0?be:null;if(E&&skipSource(He,Ve,Ke,q,K,Qe)){return}return insert(He,Ve,ae?[$,Ke,q,K,Qe]:[$,Ke,q,K])}function getLine(E,P){for(let R=E.length;R<=P;R++){E[R]=[]}return E[P]}function getColumnIndex(E,P){let R=E.length;for(let N=R-1;N>=0;R=N--){const R=E[N];if(P>=R[$])break}return R}function insert(E,P,R){for(let R=E.length;R>P;R--){E[R]=E[R-1]}E[P]=R}function removeEmptyFinalLines(E){const{length:P}=E;let R=P;for(let P=R-1;P>=0;R=P,P--){if(E[P].length>0)break}if(R<P)E.length=R}function putAll(E,R){for(let N=0;N<R.length;N++)P.put(E,R[N])}function skipSourceless(E,P){if(P===0)return true;const R=E[P-1];return R.length===1}function skipSource(E,P,R,N,$,be){if(P===0)return false;const ve=E[P-1];if(ve.length===1)return false;return R===ve[L]&&N===ve[q]&&$===ve[K]&&be===(ve.length===5?ve[ae]:ge)}function addMappingInternal(E,P,R){const{generated:N,source:$,original:L,name:q,content:K}=R;if(!$){return addSegmentInternal(E,P,N.line-1,N.column,null,null,null,null,null)}return addSegmentInternal(E,P,N.line-1,N.column,$,L.line-1,L.column,q,K)}E.GenMapping=GenMapping;E.addMapping=addMapping;E.addSegment=addSegment;E.allMappings=allMappings;E.fromMap=fromMap;E.maybeAddMapping=maybeAddMapping;E.maybeAddSegment=maybeAddSegment;E.setIgnore=setIgnore;E.setSourceContent=setSourceContent;E.toDecodedMap=toDecodedMap;E.toEncodedMap=toEncodedMap;Object.defineProperty(E,"__esModule",{value:true})}))},32642:function(E){(function(P,R){true?E.exports=R():0})(this,(function(){"use strict";const E=/^[\w+.-]+:\/\//;const P=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/;const R=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function isAbsoluteUrl(P){return E.test(P)}function isSchemeRelativeUrl(E){return E.startsWith("//")}function isAbsolutePath(E){return E.startsWith("/")}function isFileUrl(E){return E.startsWith("file:")}function isRelative(E){return/^[.?#]/.test(E)}function parseAbsoluteUrl(E){const R=P.exec(E);return makeUrl(R[1],R[2]||"",R[3],R[4]||"",R[5]||"/",R[6]||"",R[7]||"")}function parseFileUrl(E){const P=R.exec(E);const N=P[2];return makeUrl("file:","",P[1]||"","",isAbsolutePath(N)?N:"/"+N,P[3]||"",P[4]||"")}function makeUrl(E,P,R,N,$,L,q){return{scheme:E,user:P,host:R,port:N,path:$,query:L,hash:q,type:7}}function parseUrl(E){if(isSchemeRelativeUrl(E)){const P=parseAbsoluteUrl("http:"+E);P.scheme="";P.type=6;return P}if(isAbsolutePath(E)){const P=parseAbsoluteUrl("http://foo.com"+E);P.scheme="";P.host="";P.type=5;return P}if(isFileUrl(E))return parseFileUrl(E);if(isAbsoluteUrl(E))return parseAbsoluteUrl(E);const P=parseAbsoluteUrl("http://foo.com/"+E);P.scheme="";P.host="";P.type=E?E.startsWith("?")?3:E.startsWith("#")?2:4:1;return P}function stripPathFilename(E){if(E.endsWith("/.."))return E;const P=E.lastIndexOf("/");return E.slice(0,P+1)}function mergePaths(E,P){normalizePath(P,P.type);if(E.path==="/"){E.path=P.path}else{E.path=stripPathFilename(P.path)+E.path}}function normalizePath(E,P){const R=P<=4;const N=E.path.split("/");let $=1;let L=0;let q=false;for(let E=1;E<N.length;E++){const P=N[E];if(!P){q=true;continue}q=false;if(P===".")continue;if(P===".."){if(L){q=true;L--;$--}else if(R){N[$++]=P}continue}N[$++]=P;L++}let K="";for(let E=1;E<$;E++){K+="/"+N[E]}if(!K||q&&!K.endsWith("/..")){K+="/"}E.path=K}function resolve(E,P){if(!E&&!P)return"";const R=parseUrl(E);let N=R.type;if(P&&N!==7){const E=parseUrl(P);const $=E.type;switch(N){case 1:R.hash=E.hash;case 2:R.query=E.query;case 3:case 4:mergePaths(R,E);case 5:R.user=E.user;R.host=E.host;R.port=E.port;case 6:R.scheme=E.scheme}if($>N)N=$}normalizePath(R,N);const $=R.query+R.hash;switch(N){case 2:case 3:return $;case 4:{const N=R.path.slice(1);if(!N)return $||".";if(isRelative(P||E)&&!isRelative(N)){return"./"+N+$}return N+$}case 5:return R.path+$;default:return R.scheme+"//"+R.user+R.host+R.port+R.path+$}}return resolve}))},12288:function(E,P){(function(E,R){true?R(P):0})(this,(function(E){"use strict";class SetArray{constructor(){this._indexes={__proto__:null};this.array=[]}}function cast(E){return E}function get(E,P){return cast(E)._indexes[P]}function put(E,P){const R=get(E,P);if(R!==undefined)return R;const{array:N,_indexes:$}=cast(E);const L=N.push(P);return $[P]=L-1}function pop(E){const{array:P,_indexes:R}=cast(E);if(P.length===0)return;const N=P.pop();R[N]=undefined}function remove(E,P){const R=get(E,P);if(R===undefined)return;const{array:N,_indexes:$}=cast(E);for(let E=R+1;E<N.length;E++){const P=N[E];N[E-1]=P;$[P]--}$[P]=undefined;N.pop()}E.SetArray=SetArray;E.get=get;E.pop=pop;E.put=put;E.remove=remove;Object.defineProperty(E,"__esModule",{value:true})}))},78424:function(E,P){(function(E,R){true?R(P):0})(this,(function(E){"use strict";const P=",".charCodeAt(0);const R=";".charCodeAt(0);const N="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";const $=new Uint8Array(64);const L=new Uint8Array(128);for(let E=0;E<N.length;E++){const P=N.charCodeAt(E);$[E]=P;L[P]=E}function decodeInteger(E,P){let R=0;let N=0;let $=0;do{const P=E.next();$=L[P];R|=($&31)<<N;N+=5}while($&32);const q=R&1;R>>>=1;if(q){R=-2147483648|-R}return P+R}function encodeInteger(E,P,R){let N=P-R;N=N<0?-N<<1|1:N<<1;do{let P=N&31;N>>>=5;if(N>0)P|=32;E.write($[P])}while(N>0);return P}function hasMoreVlq(E,R){if(E.pos>=R)return false;return E.peek()!==P}const q=1024*16;const K=typeof TextDecoder!=="undefined"?new TextDecoder:typeof Buffer!=="undefined"?{decode(E){const P=Buffer.from(E.buffer,E.byteOffset,E.byteLength);return P.toString()}}:{decode(E){let P="";for(let R=0;R<E.length;R++){P+=String.fromCharCode(E[R])}return P}};class StringWriter{constructor(){this.pos=0;this.out="";this.buffer=new Uint8Array(q)}write(E){const{buffer:P}=this;P[this.pos++]=E;if(this.pos===q){this.out+=K.decode(P);this.pos=0}}flush(){const{buffer:E,out:P,pos:R}=this;return R>0?P+K.decode(E.subarray(0,R)):P}}class StringReader{constructor(E){this.pos=0;this.buffer=E}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(E){const{buffer:P,pos:R}=this;const N=P.indexOf(E,R);return N===-1?P.length:N}}const ae=[];function decodeOriginalScopes(E){const{length:P}=E;const R=new StringReader(E);const N=[];const $=[];let L=0;for(;R.pos<P;R.pos++){L=decodeInteger(R,L);const E=decodeInteger(R,0);if(!hasMoreVlq(R,P)){const P=$.pop();P[2]=L;P[3]=E;continue}const q=decodeInteger(R,0);const K=decodeInteger(R,0);const ge=K&1;const be=ge?[L,E,0,0,q,decodeInteger(R,0)]:[L,E,0,0,q];let ve=ae;if(hasMoreVlq(R,P)){ve=[];do{const E=decodeInteger(R,0);ve.push(E)}while(hasMoreVlq(R,P))}be.vars=ve;N.push(be);$.push(be)}return N}function encodeOriginalScopes(E){const P=new StringWriter;for(let R=0;R<E.length;){R=_encodeOriginalScopes(E,R,P,[0])}return P.flush()}function _encodeOriginalScopes(E,R,N,$){const L=E[R];const{0:q,1:K,2:ae,3:ge,4:be,vars:ve}=L;if(R>0)N.write(P);$[0]=encodeInteger(N,q,$[0]);encodeInteger(N,K,0);encodeInteger(N,be,0);const xe=L.length===6?1:0;encodeInteger(N,xe,0);if(L.length===6)encodeInteger(N,L[5],0);for(const E of ve){encodeInteger(N,E,0)}for(R++;R<E.length;){const P=E[R];const{0:L,1:q}=P;if(L>ae||L===ae&&q>=ge){break}R=_encodeOriginalScopes(E,R,N,$)}N.write(P);$[0]=encodeInteger(N,ae,$[0]);encodeInteger(N,ge,0);return R}function decodeGeneratedRanges(E){const{length:P}=E;const R=new StringReader(E);const N=[];const $=[];let L=0;let q=0;let K=0;let ge=0;let be=0;let ve=0;let xe=0;let Ce=0;do{const E=R.indexOf(";");let P=0;for(;R.pos<E;R.pos++){P=decodeInteger(R,P);if(!hasMoreVlq(R,E)){const E=$.pop();E[2]=L;E[3]=P;continue}const Ie=decodeInteger(R,0);const He=Ie&1;const Ve=Ie&2;const Ke=Ie&4;let Qe=null;let Je=ae;let Xe;if(He){const E=decodeInteger(R,q);K=decodeInteger(R,q===E?K:0);q=E;Xe=[L,P,0,0,E,K]}else{Xe=[L,P,0,0]}Xe.isScope=!!Ke;if(Ve){const E=ge;const P=be;ge=decodeInteger(R,ge);const N=E===ge;be=decodeInteger(R,N?be:0);ve=decodeInteger(R,N&&P===be?ve:0);Qe=[ge,be,ve]}Xe.callsite=Qe;if(hasMoreVlq(R,E)){Je=[];do{xe=L;Ce=P;const E=decodeInteger(R,0);let N;if(E<-1){N=[[decodeInteger(R,0)]];for(let P=-1;P>E;P--){const E=xe;xe=decodeInteger(R,xe);Ce=decodeInteger(R,xe===E?Ce:0);const P=decodeInteger(R,0);N.push([P,xe,Ce])}}else{N=[[E]]}Je.push(N)}while(hasMoreVlq(R,E))}Xe.bindings=Je;N.push(Xe);$.push(Xe)}L++;R.pos=E+1}while(R.pos<P);return N}function encodeGeneratedRanges(E){if(E.length===0)return"";const P=new StringWriter;for(let R=0;R<E.length;){R=_encodeGeneratedRanges(E,R,P,[0,0,0,0,0,0,0])}return P.flush()}function _encodeGeneratedRanges(E,R,N,$){const L=E[R];const{0:q,1:K,2:ae,3:ge,isScope:be,callsite:ve,bindings:xe}=L;if($[0]<q){catchupLine(N,$[0],q);$[0]=q;$[1]=0}else if(R>0){N.write(P)}$[1]=encodeInteger(N,L[1],$[1]);const Ce=(L.length===6?1:0)|(ve?2:0)|(be?4:0);encodeInteger(N,Ce,0);if(L.length===6){const{4:E,5:P}=L;if(E!==$[2]){$[3]=0}$[2]=encodeInteger(N,E,$[2]);$[3]=encodeInteger(N,P,$[3])}if(ve){const{0:E,1:P,2:R}=L.callsite;if(E!==$[4]){$[5]=0;$[6]=0}else if(P!==$[5]){$[6]=0}$[4]=encodeInteger(N,E,$[4]);$[5]=encodeInteger(N,P,$[5]);$[6]=encodeInteger(N,R,$[6])}if(xe){for(const E of xe){if(E.length>1)encodeInteger(N,-E.length,0);const P=E[0][0];encodeInteger(N,P,0);let R=q;let $=K;for(let P=1;P<E.length;P++){const L=E[P];R=encodeInteger(N,L[1],R);$=encodeInteger(N,L[2],$);encodeInteger(N,L[0],0)}}}for(R++;R<E.length;){const P=E[R];const{0:L,1:q}=P;if(L>ae||L===ae&&q>=ge){break}R=_encodeGeneratedRanges(E,R,N,$)}if($[0]<ae){catchupLine(N,$[0],ae);$[0]=ae;$[1]=0}else{N.write(P)}$[1]=encodeInteger(N,ge,$[1]);return R}function catchupLine(E,P,N){do{E.write(R)}while(++P<N)}function decode(E){const{length:P}=E;const R=new StringReader(E);const N=[];let $=0;let L=0;let q=0;let K=0;let ae=0;do{const E=R.indexOf(";");const P=[];let ge=true;let be=0;$=0;while(R.pos<E){let N;$=decodeInteger(R,$);if($<be)ge=false;be=$;if(hasMoreVlq(R,E)){L=decodeInteger(R,L);q=decodeInteger(R,q);K=decodeInteger(R,K);if(hasMoreVlq(R,E)){ae=decodeInteger(R,ae);N=[$,L,q,K,ae]}else{N=[$,L,q,K]}}else{N=[$]}P.push(N);R.pos++}if(!ge)sort(P);N.push(P);R.pos=E+1}while(R.pos<=P);return N}function sort(E){E.sort(sortComparator)}function sortComparator(E,P){return E[0]-P[0]}function encode(E){const N=new StringWriter;let $=0;let L=0;let q=0;let K=0;for(let ae=0;ae<E.length;ae++){const ge=E[ae];if(ae>0)N.write(R);if(ge.length===0)continue;let be=0;for(let E=0;E<ge.length;E++){const R=ge[E];if(E>0)N.write(P);be=encodeInteger(N,R[0],be);if(R.length===1)continue;$=encodeInteger(N,R[1],$);L=encodeInteger(N,R[2],L);q=encodeInteger(N,R[3],q);if(R.length===4)continue;K=encodeInteger(N,R[4],K)}}return N.flush()}E.decode=decode;E.decodeGeneratedRanges=decodeGeneratedRanges;E.decodeOriginalScopes=decodeOriginalScopes;E.encode=encode;E.encodeGeneratedRanges=encodeGeneratedRanges;E.encodeOriginalScopes=encodeOriginalScopes;Object.defineProperty(E,"__esModule",{value:true})}))},38916:function(E,P,R){(function(E,N){true?N(P,R(78424),R(32642)):0})(this,(function(E,P,R){"use strict";function resolve(E,P){if(P&&!P.endsWith("/"))P+="/";return R(E,P)}function stripFilename(E){if(!E)return"";const P=E.lastIndexOf("/");return E.slice(0,P+1)}const N=0;const $=1;const L=2;const q=3;const K=4;const ae=1;const ge=2;function maybeSort(E,P){const R=nextUnsortedSegmentLine(E,0);if(R===E.length)return E;if(!P)E=E.slice();for(let N=R;N<E.length;N=nextUnsortedSegmentLine(E,N+1)){E[N]=sortSegments(E[N],P)}return E}function nextUnsortedSegmentLine(E,P){for(let R=P;R<E.length;R++){if(!isSorted(E[R]))return R}return E.length}function isSorted(E){for(let P=1;P<E.length;P++){if(E[P][N]<E[P-1][N]){return false}}return true}function sortSegments(E,P){if(!P)E=E.slice();return E.sort(sortComparator)}function sortComparator(E,P){return E[N]-P[N]}let be=false;function binarySearch(E,P,R,$){while(R<=$){const L=R+($-R>>1);const q=E[L][N]-P;if(q===0){be=true;return L}if(q<0){R=L+1}else{$=L-1}}be=false;return R-1}function upperBound(E,P,R){for(let $=R+1;$<E.length;R=$++){if(E[$][N]!==P)break}return R}function lowerBound(E,P,R){for(let $=R-1;$>=0;R=$--){if(E[$][N]!==P)break}return R}function memoizedState(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function memoizedBinarySearch(E,P,R,$){const{lastKey:L,lastNeedle:q,lastIndex:K}=R;let ae=0;let ge=E.length-1;if($===L){if(P===q){be=K!==-1&&E[K][N]===P;return K}if(P>=q){ae=K===-1?0:K}else{ge=K}}R.lastKey=$;R.lastNeedle=P;return R.lastIndex=binarySearch(E,P,ae,ge)}function buildBySources(E,P){const R=P.map(buildNullArray);for(let K=0;K<E.length;K++){const ae=E[K];for(let E=0;E<ae.length;E++){const ge=ae[E];if(ge.length===1)continue;const be=ge[$];const ve=ge[L];const xe=ge[q];const Ce=R[be];const Ie=Ce[ve]||(Ce[ve]=[]);const He=P[be];let Ve=upperBound(Ie,xe,memoizedBinarySearch(Ie,xe,He,ve));He.lastIndex=++Ve;insert(Ie,Ve,[xe,K,ge[N]])}}return R}function insert(E,P,R){for(let R=E.length;R>P;R--){E[R]=E[R-1]}E[P]=R}function buildNullArray(){return{__proto__:null}}const AnyMap=function(E,P){const R=parse(E);if(!("sections"in R)){return new TraceMap(R,P)}const N=[];const $=[];const L=[];const q=[];const K=[];recurse(R,P,N,$,L,q,K,0,0,Infinity,Infinity);const ae={version:3,file:R.file,names:q,sources:$,sourcesContent:L,mappings:N,ignoreList:K};return presortedDecodedMap(ae)};function parse(E){return typeof E==="string"?JSON.parse(E):E}function recurse(E,P,R,N,$,L,q,K,ae,ge,be){const{sections:ve}=E;for(let E=0;E<ve.length;E++){const{map:xe,offset:Ce}=ve[E];let Ie=ge;let He=be;if(E+1<ve.length){const P=ve[E+1].offset;Ie=Math.min(ge,K+P.line);if(Ie===ge){He=Math.min(be,ae+P.column)}else if(Ie<ge){He=ae+P.column}}addSection(xe,P,R,N,$,L,q,K+Ce.line,ae+Ce.column,Ie,He)}}function addSection(E,P,R,ae,ge,be,ve,xe,Ce,Ie,He){const Ve=parse(E);if("sections"in Ve)return recurse(...arguments);const Ke=new TraceMap(Ve,P);const Qe=ae.length;const Je=be.length;const Xe=decodedMappings(Ke);const{resolvedSources:Ye,sourcesContent:Ze,ignoreList:et}=Ke;append(ae,Ye);append(be,Ke.names);if(Ze)append(ge,Ze);else for(let E=0;E<Ye.length;E++)ge.push(null);if(et)for(let E=0;E<et.length;E++)ve.push(et[E]+Qe);for(let E=0;E<Xe.length;E++){const P=xe+E;if(P>Ie)return;const ae=getLine(R,P);const ge=E===0?Ce:0;const be=Xe[E];for(let E=0;E<be.length;E++){const R=be[E];const ve=ge+R[N];if(P===Ie&&ve>=He)return;if(R.length===1){ae.push([ve]);continue}const xe=Qe+R[$];const Ce=R[L];const Ve=R[q];ae.push(R.length===4?[ve,xe,Ce,Ve]:[ve,xe,Ce,Ve,Je+R[K]])}}}function append(E,P){for(let R=0;R<P.length;R++)E.push(P[R])}function getLine(E,P){for(let R=E.length;R<=P;R++)E[R]=[];return E[P]}const ve="`line` must be greater than 0 (lines start at line 1)";const xe="`column` must be greater than or equal to 0 (columns start at column 0)";const Ce=-1;const Ie=1;class TraceMap{constructor(E,P){const R=typeof E==="string";if(!R&&E._decodedMemo)return E;const N=R?JSON.parse(E):E;const{version:$,file:L,names:q,sourceRoot:K,sources:ae,sourcesContent:ge}=N;this.version=$;this.file=L;this.names=q||[];this.sourceRoot=K;this.sources=ae;this.sourcesContent=ge;this.ignoreList=N.ignoreList||N.x_google_ignoreList||undefined;const be=resolve(K||"",stripFilename(P));this.resolvedSources=ae.map((E=>resolve(E||"",be)));const{mappings:ve}=N;if(typeof ve==="string"){this._encoded=ve;this._decoded=undefined}else{this._encoded=undefined;this._decoded=maybeSort(ve,R)}this._decodedMemo=memoizedState();this._bySources=undefined;this._bySourceMemos=undefined}}function cast(E){return E}function encodedMappings(E){var R;var N;return(R=(N=cast(E))._encoded)!==null&&R!==void 0?R:N._encoded=P.encode(cast(E)._decoded)}function decodedMappings(E){var R;return(R=cast(E))._decoded||(R._decoded=P.decode(cast(E)._encoded))}function traceSegment(E,P,R){const N=decodedMappings(E);if(P>=N.length)return null;const $=N[P];const L=traceSegmentInternal($,cast(E)._decodedMemo,P,R,Ie);return L===-1?null:$[L]}function originalPositionFor(E,P){let{line:R,column:N,bias:ae}=P;R--;if(R<0)throw new Error(ve);if(N<0)throw new Error(xe);const ge=decodedMappings(E);if(R>=ge.length)return OMapping(null,null,null,null);const be=ge[R];const Ce=traceSegmentInternal(be,cast(E)._decodedMemo,R,N,ae||Ie);if(Ce===-1)return OMapping(null,null,null,null);const He=be[Ce];if(He.length===1)return OMapping(null,null,null,null);const{names:Ve,resolvedSources:Ke}=E;return OMapping(Ke[He[$]],He[L]+1,He[q],He.length===5?Ve[He[K]]:null)}function generatedPositionFor(E,P){const{source:R,line:N,column:$,bias:L}=P;return generatedPosition(E,R,N,$,L||Ie,false)}function allGeneratedPositionsFor(E,P){const{source:R,line:N,column:$,bias:L}=P;return generatedPosition(E,R,N,$,L||Ce,true)}function eachMapping(E,P){const R=decodedMappings(E);const{names:N,resolvedSources:$}=E;for(let E=0;E<R.length;E++){const L=R[E];for(let R=0;R<L.length;R++){const q=L[R];const K=E+1;const ae=q[0];let ge=null;let be=null;let ve=null;let xe=null;if(q.length!==1){ge=$[q[1]];be=q[2]+1;ve=q[3]}if(q.length===5)xe=N[q[4]];P({generatedLine:K,generatedColumn:ae,source:ge,originalLine:be,originalColumn:ve,name:xe})}}}function sourceIndex(E,P){const{sources:R,resolvedSources:N}=E;let $=R.indexOf(P);if($===-1)$=N.indexOf(P);return $}function sourceContentFor(E,P){const{sourcesContent:R}=E;if(R==null)return null;const N=sourceIndex(E,P);return N===-1?null:R[N]}function isIgnored(E,P){const{ignoreList:R}=E;if(R==null)return false;const N=sourceIndex(E,P);return N===-1?false:R.includes(N)}function presortedDecodedMap(E,P){const R=new TraceMap(clone(E,[]),P);cast(R)._decoded=E.mappings;return R}function decodedMap(E){return clone(E,decodedMappings(E))}function encodedMap(E){return clone(E,encodedMappings(E))}function clone(E,P){return{version:E.version,file:E.file,names:E.names,sourceRoot:E.sourceRoot,sources:E.sources,sourcesContent:E.sourcesContent,mappings:P,ignoreList:E.ignoreList||E.x_google_ignoreList}}function OMapping(E,P,R,N){return{source:E,line:P,column:R,name:N}}function GMapping(E,P){return{line:E,column:P}}function traceSegmentInternal(E,P,R,N,$){let L=memoizedBinarySearch(E,N,P,R);if(be){L=($===Ce?upperBound:lowerBound)(E,N,L)}else if($===Ce)L++;if(L===-1||L===E.length)return-1;return L}function sliceGeneratedPositions(E,P,R,$,L){let q=traceSegmentInternal(E,P,R,$,Ie);if(!be&&L===Ce)q++;if(q===-1||q===E.length)return[];const K=be?$:E[q][N];if(!be)q=lowerBound(E,K,q);const ve=upperBound(E,K,q);const xe=[];for(;q<=ve;q++){const P=E[q];xe.push(GMapping(P[ae]+1,P[ge]))}return xe}function generatedPosition(E,P,R,N,$,L){var q;R--;if(R<0)throw new Error(ve);if(N<0)throw new Error(xe);const{sources:K,resolvedSources:be}=E;let Ce=K.indexOf(P);if(Ce===-1)Ce=be.indexOf(P);if(Ce===-1)return L?[]:GMapping(null,null);const Ie=(q=cast(E))._bySources||(q._bySources=buildBySources(decodedMappings(E),cast(E)._bySourceMemos=K.map(memoizedState)));const He=Ie[Ce][R];if(He==null)return L?[]:GMapping(null,null);const Ve=cast(E)._bySourceMemos[Ce];if(L)return sliceGeneratedPositions(He,Ve,R,N,$);const Ke=traceSegmentInternal(He,Ve,R,N,$);if(Ke===-1)return GMapping(null,null);const Qe=He[Ke];return GMapping(Qe[ae]+1,Qe[ge])}E.AnyMap=AnyMap;E.GREATEST_LOWER_BOUND=Ie;E.LEAST_UPPER_BOUND=Ce;E.TraceMap=TraceMap;E.allGeneratedPositionsFor=allGeneratedPositionsFor;E.decodedMap=decodedMap;E.decodedMappings=decodedMappings;E.eachMapping=eachMapping;E.encodedMap=encodedMap;E.encodedMappings=encodedMappings;E.generatedPositionFor=generatedPositionFor;E.isIgnored=isIgnored;E.originalPositionFor=originalPositionFor;E.presortedDecodedMap=presortedDecodedMap;E.sourceContentFor=sourceContentFor;E.traceSegment=traceSegment}))},5612:(E,P)=>{"use strict";Object.defineProperty(P,"__esModule",{value:true});P.cloneNode=cloneNode;function cloneNode(E){return Object.assign({},E)}},97921:(E,P,R)=>{"use strict";Object.defineProperty(P,"__esModule",{value:true});var N={numberLiteralFromRaw:true,withLoc:true,withRaw:true,funcParam:true,indexLiteral:true,memIndexLiteral:true,instruction:true,objectInstruction:true,traverse:true,signatures:true,cloneNode:true,moduleContextFromModuleAST:true};Object.defineProperty(P,"numberLiteralFromRaw",{enumerable:true,get:function get(){return L.numberLiteralFromRaw}});Object.defineProperty(P,"withLoc",{enumerable:true,get:function get(){return L.withLoc}});Object.defineProperty(P,"withRaw",{enumerable:true,get:function get(){return L.withRaw}});Object.defineProperty(P,"funcParam",{enumerable:true,get:function get(){return L.funcParam}});Object.defineProperty(P,"indexLiteral",{enumerable:true,get:function get(){return L.indexLiteral}});Object.defineProperty(P,"memIndexLiteral",{enumerable:true,get:function get(){return L.memIndexLiteral}});Object.defineProperty(P,"instruction",{enumerable:true,get:function get(){return L.instruction}});Object.defineProperty(P,"objectInstruction",{enumerable:true,get:function get(){return L.objectInstruction}});Object.defineProperty(P,"traverse",{enumerable:true,get:function get(){return q.traverse}});Object.defineProperty(P,"signatures",{enumerable:true,get:function get(){return K.signatures}});Object.defineProperty(P,"cloneNode",{enumerable:true,get:function get(){return ge.cloneNode}});Object.defineProperty(P,"moduleContextFromModuleAST",{enumerable:true,get:function get(){return be.moduleContextFromModuleAST}});var $=R(73356);Object.keys($).forEach((function(E){if(E==="default"||E==="__esModule")return;if(Object.prototype.hasOwnProperty.call(N,E))return;if(E in P&&P[E]===$[E])return;Object.defineProperty(P,E,{enumerable:true,get:function get(){return $[E]}})}));var L=R(49401);var q=R(7887);var K=R(64034);var ae=R(34828);Object.keys(ae).forEach((function(E){if(E==="default"||E==="__esModule")return;if(Object.prototype.hasOwnProperty.call(N,E))return;if(E in P&&P[E]===ae[E])return;Object.defineProperty(P,E,{enumerable:true,get:function get(){return ae[E]}})}));var ge=R(5612);var be=R(88063)},49401:(E,P,R)=>{"use strict";Object.defineProperty(P,"__esModule",{value:true});P.numberLiteralFromRaw=numberLiteralFromRaw;P.instruction=instruction;P.objectInstruction=objectInstruction;P.withLoc=withLoc;P.withRaw=withRaw;P.funcParam=funcParam;P.indexLiteral=indexLiteral;P.memIndexLiteral=memIndexLiteral;var N=R(45804);var $=R(73356);function numberLiteralFromRaw(E){var P=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"i32";var R=E;if(typeof E==="string"){E=E.replace(/_/g,"")}if(typeof E==="number"){return(0,$.numberLiteral)(E,String(R))}else{switch(P){case"i32":{return(0,$.numberLiteral)((0,N.parse32I)(E),String(R))}case"u32":{return(0,$.numberLiteral)((0,N.parseU32)(E),String(R))}case"i64":{return(0,$.longNumberLiteral)((0,N.parse64I)(E),String(R))}case"f32":{return(0,$.floatLiteral)((0,N.parse32F)(E),(0,N.isNanLiteral)(E),(0,N.isInfLiteral)(E),String(R))}default:{return(0,$.floatLiteral)((0,N.parse64F)(E),(0,N.isNanLiteral)(E),(0,N.isInfLiteral)(E),String(R))}}}}function instruction(E){var P=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var R=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};return(0,$.instr)(E,undefined,P,R)}function objectInstruction(E,P){var R=arguments.length>2&&arguments[2]!==undefined?arguments[2]:[];var N=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};return(0,$.instr)(E,P,R,N)}function withLoc(E,P,R){var N={start:R,end:P};E.loc=N;return E}function withRaw(E,P){E.raw=P;return E}function funcParam(E,P){return{id:P,valtype:E}}function indexLiteral(E){var P=numberLiteralFromRaw(E,"u32");return P}function memIndexLiteral(E){var P=numberLiteralFromRaw(E,"u32");return P}},20765:(E,P)=>{"use strict";Object.defineProperty(P,"__esModule",{value:true});P.createPath=createPath;function ownKeys(E,P){var R=Object.keys(E);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(E);if(P){N=N.filter((function(P){return Object.getOwnPropertyDescriptor(E,P).enumerable}))}R.push.apply(R,N)}return R}function _objectSpread(E){for(var P=1;P<arguments.length;P++){var R=arguments[P]!=null?arguments[P]:{};if(P%2){ownKeys(Object(R),true).forEach((function(P){_defineProperty(E,P,R[P])}))}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(E,Object.getOwnPropertyDescriptors(R))}else{ownKeys(Object(R)).forEach((function(P){Object.defineProperty(E,P,Object.getOwnPropertyDescriptor(R,P))}))}}return E}function _defineProperty(E,P,R){if(P in E){Object.defineProperty(E,P,{value:R,enumerable:true,configurable:true,writable:true})}else{E[P]=R}return E}function findParent(E,P){var R=E.parentPath;if(R==null){throw new Error("node is root")}var N=R;while(P(N)!==false){if(N.parentPath==null){return null}N=N.parentPath}return N.node}function insertBefore(E,P){return insert(E,P)}function insertAfter(E,P){return insert(E,P,1)}function insert(E,P){var R=E.node,N=E.inList,$=E.parentPath,L=E.parentKey;var q=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;if(!N){throw new Error("inList"+" error: "+("insert can only be used for nodes that are within lists"||0))}if(!($!=null)){throw new Error("parentPath != null"+" error: "+("Can not remove root node"||0))}var K=$.node[L];var ae=K.findIndex((function(E){return E===R}));K.splice(ae+q,0,P)}function remove(E){var P=E.node,R=E.parentKey,N=E.parentPath;if(!(N!=null)){throw new Error("parentPath != null"+" error: "+("Can not remove root node"||0))}var $=N.node;var L=$[R];if(Array.isArray(L)){$[R]=L.filter((function(E){return E!==P}))}else{delete $[R]}P._deleted=true}function stop(E){E.shouldStop=true}function replaceWith(E,P){var R=E.parentPath.node;var N=R[E.parentKey];if(Array.isArray(N)){var $=N.findIndex((function(P){return P===E.node}));N.splice($,1,P)}else{R[E.parentKey]=P}E.node._deleted=true;E.node=P}function bindNodeOperations(E,P){var R=Object.keys(E);var N={};R.forEach((function(R){N[R]=E[R].bind(null,P)}));return N}function createPathOperations(E){return bindNodeOperations({findParent:findParent,replaceWith:replaceWith,remove:remove,insertBefore:insertBefore,insertAfter:insertAfter,stop:stop},E)}function createPath(E){var P=_objectSpread({},E);Object.assign(P,createPathOperations(P));return P}},73356:(E,P)=>{"use strict";Object.defineProperty(P,"__esModule",{value:true});P.module=_module;P.moduleMetadata=moduleMetadata;P.moduleNameMetadata=moduleNameMetadata;P.functionNameMetadata=functionNameMetadata;P.localNameMetadata=localNameMetadata;P.binaryModule=binaryModule;P.quoteModule=quoteModule;P.sectionMetadata=sectionMetadata;P.producersSectionMetadata=producersSectionMetadata;P.producerMetadata=producerMetadata;P.producerMetadataVersionedName=producerMetadataVersionedName;P.loopInstruction=loopInstruction;P.instr=instr;P.ifInstruction=ifInstruction;P.stringLiteral=stringLiteral;P.numberLiteral=numberLiteral;P.longNumberLiteral=longNumberLiteral;P.floatLiteral=floatLiteral;P.elem=elem;P.indexInFuncSection=indexInFuncSection;P.valtypeLiteral=valtypeLiteral;P.typeInstruction=typeInstruction;P.start=start;P.globalType=globalType;P.leadingComment=leadingComment;P.blockComment=blockComment;P.data=data;P.global=global;P.table=table;P.memory=memory;P.funcImportDescr=funcImportDescr;P.moduleImport=moduleImport;P.moduleExportDescr=moduleExportDescr;P.moduleExport=moduleExport;P.limit=limit;P.signature=signature;P.program=program;P.identifier=identifier;P.blockInstruction=blockInstruction;P.callInstruction=callInstruction;P.callIndirectInstruction=callIndirectInstruction;P.byteArray=byteArray;P.func=func;P.internalBrUnless=internalBrUnless;P.internalGoto=internalGoto;P.internalCallExtern=internalCallExtern;P.internalEndAndReturn=internalEndAndReturn;P.assertInternalCallExtern=P.assertInternalGoto=P.assertInternalBrUnless=P.assertFunc=P.assertByteArray=P.assertCallIndirectInstruction=P.assertCallInstruction=P.assertBlockInstruction=P.assertIdentifier=P.assertProgram=P.assertSignature=P.assertLimit=P.assertModuleExport=P.assertModuleExportDescr=P.assertModuleImport=P.assertFuncImportDescr=P.assertMemory=P.assertTable=P.assertGlobal=P.assertData=P.assertBlockComment=P.assertLeadingComment=P.assertGlobalType=P.assertStart=P.assertTypeInstruction=P.assertValtypeLiteral=P.assertIndexInFuncSection=P.assertElem=P.assertFloatLiteral=P.assertLongNumberLiteral=P.assertNumberLiteral=P.assertStringLiteral=P.assertIfInstruction=P.assertInstr=P.assertLoopInstruction=P.assertProducerMetadataVersionedName=P.assertProducerMetadata=P.assertProducersSectionMetadata=P.assertSectionMetadata=P.assertQuoteModule=P.assertBinaryModule=P.assertLocalNameMetadata=P.assertFunctionNameMetadata=P.assertModuleNameMetadata=P.assertModuleMetadata=P.assertModule=P.isIntrinsic=P.isImportDescr=P.isNumericLiteral=P.isExpression=P.isInstruction=P.isBlock=P.isNode=P.isInternalEndAndReturn=P.isInternalCallExtern=P.isInternalGoto=P.isInternalBrUnless=P.isFunc=P.isByteArray=P.isCallIndirectInstruction=P.isCallInstruction=P.isBlockInstruction=P.isIdentifier=P.isProgram=P.isSignature=P.isLimit=P.isModuleExport=P.isModuleExportDescr=P.isModuleImport=P.isFuncImportDescr=P.isMemory=P.isTable=P.isGlobal=P.isData=P.isBlockComment=P.isLeadingComment=P.isGlobalType=P.isStart=P.isTypeInstruction=P.isValtypeLiteral=P.isIndexInFuncSection=P.isElem=P.isFloatLiteral=P.isLongNumberLiteral=P.isNumberLiteral=P.isStringLiteral=P.isIfInstruction=P.isInstr=P.isLoopInstruction=P.isProducerMetadataVersionedName=P.isProducerMetadata=P.isProducersSectionMetadata=P.isSectionMetadata=P.isQuoteModule=P.isBinaryModule=P.isLocalNameMetadata=P.isFunctionNameMetadata=P.isModuleNameMetadata=P.isModuleMetadata=P.isModule=void 0;P.nodeAndUnionTypes=P.unionTypesMap=P.assertInternalEndAndReturn=void 0;function _typeof(E){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(E){return typeof E}}else{_typeof=function _typeof(E){return E&&typeof Symbol==="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E}}return _typeof(E)}function isTypeOf(E){return function(P){return P.type===E}}function assertTypeOf(E){return function(P){return function(){if(!(P.type===E)){throw new Error("n.type === t"+" error: "+(false||"unknown"))}}()}}function _module(E,P,R){if(E!==null&&E!==undefined){if(!(typeof E==="string")){throw new Error('typeof id === "string"'+" error: "+("Argument id must be of type string, given: "+_typeof(E)||0))}}if(!(_typeof(P)==="object"&&typeof P.length!=="undefined")){throw new Error('typeof fields === "object" && typeof fields.length !== "undefined"'+" error: "+(false||"unknown"))}var N={type:"Module",id:E,fields:P};if(typeof R!=="undefined"){N.metadata=R}return N}function moduleMetadata(E,P,R,N){if(!(_typeof(E)==="object"&&typeof E.length!=="undefined")){throw new Error('typeof sections === "object" && typeof sections.length !== "undefined"'+" error: "+(false||"unknown"))}if(P!==null&&P!==undefined){if(!(_typeof(P)==="object"&&typeof P.length!=="undefined")){throw new Error('typeof functionNames === "object" && typeof functionNames.length !== "undefined"'+" error: "+(false||"unknown"))}}if(R!==null&&R!==undefined){if(!(_typeof(R)==="object"&&typeof R.length!=="undefined")){throw new Error('typeof localNames === "object" && typeof localNames.length !== "undefined"'+" error: "+(false||"unknown"))}}if(N!==null&&N!==undefined){if(!(_typeof(N)==="object"&&typeof N.length!=="undefined")){throw new Error('typeof producers === "object" && typeof producers.length !== "undefined"'+" error: "+(false||"unknown"))}}var $={type:"ModuleMetadata",sections:E};if(typeof P!=="undefined"&&P.length>0){$.functionNames=P}if(typeof R!=="undefined"&&R.length>0){$.localNames=R}if(typeof N!=="undefined"&&N.length>0){$.producers=N}return $}function moduleNameMetadata(E){if(!(typeof E==="string")){throw new Error('typeof value === "string"'+" error: "+("Argument value must be of type string, given: "+_typeof(E)||0))}var P={type:"ModuleNameMetadata",value:E};return P}function functionNameMetadata(E,P){if(!(typeof E==="string")){throw new Error('typeof value === "string"'+" error: "+("Argument value must be of type string, given: "+_typeof(E)||0))}if(!(typeof P==="number")){throw new Error('typeof index === "number"'+" error: "+("Argument index must be of type number, given: "+_typeof(P)||0))}var R={type:"FunctionNameMetadata",value:E,index:P};return R}function localNameMetadata(E,P,R){if(!(typeof E==="string")){throw new Error('typeof value === "string"'+" error: "+("Argument value must be of type string, given: "+_typeof(E)||0))}if(!(typeof P==="number")){throw new Error('typeof localIndex === "number"'+" error: "+("Argument localIndex must be of type number, given: "+_typeof(P)||0))}if(!(typeof R==="number")){throw new Error('typeof functionIndex === "number"'+" error: "+("Argument functionIndex must be of type number, given: "+_typeof(R)||0))}var N={type:"LocalNameMetadata",value:E,localIndex:P,functionIndex:R};return N}function binaryModule(E,P){if(E!==null&&E!==undefined){if(!(typeof E==="string")){throw new Error('typeof id === "string"'+" error: "+("Argument id must be of type string, given: "+_typeof(E)||0))}}if(!(_typeof(P)==="object"&&typeof P.length!=="undefined")){throw new Error('typeof blob === "object" && typeof blob.length !== "undefined"'+" error: "+(false||"unknown"))}var R={type:"BinaryModule",id:E,blob:P};return R}function quoteModule(E,P){if(E!==null&&E!==undefined){if(!(typeof E==="string")){throw new Error('typeof id === "string"'+" error: "+("Argument id must be of type string, given: "+_typeof(E)||0))}}if(!(_typeof(P)==="object"&&typeof P.length!=="undefined")){throw new Error('typeof string === "object" && typeof string.length !== "undefined"'+" error: "+(false||"unknown"))}var R={type:"QuoteModule",id:E,string:P};return R}function sectionMetadata(E,P,R,N){if(!(typeof P==="number")){throw new Error('typeof startOffset === "number"'+" error: "+("Argument startOffset must be of type number, given: "+_typeof(P)||0))}var $={type:"SectionMetadata",section:E,startOffset:P,size:R,vectorOfSize:N};return $}function producersSectionMetadata(E){if(!(_typeof(E)==="object"&&typeof E.length!=="undefined")){throw new Error('typeof producers === "object" && typeof producers.length !== "undefined"'+" error: "+(false||"unknown"))}var P={type:"ProducersSectionMetadata",producers:E};return P}function producerMetadata(E,P,R){if(!(_typeof(E)==="object"&&typeof E.length!=="undefined")){throw new Error('typeof language === "object" && typeof language.length !== "undefined"'+" error: "+(false||"unknown"))}if(!(_typeof(P)==="object"&&typeof P.length!=="undefined")){throw new Error('typeof processedBy === "object" && typeof processedBy.length !== "undefined"'+" error: "+(false||"unknown"))}if(!(_typeof(R)==="object"&&typeof R.length!=="undefined")){throw new Error('typeof sdk === "object" && typeof sdk.length !== "undefined"'+" error: "+(false||"unknown"))}var N={type:"ProducerMetadata",language:E,processedBy:P,sdk:R};return N}function producerMetadataVersionedName(E,P){if(!(typeof E==="string")){throw new Error('typeof name === "string"'+" error: "+("Argument name must be of type string, given: "+_typeof(E)||0))}if(!(typeof P==="string")){throw new Error('typeof version === "string"'+" error: "+("Argument version must be of type string, given: "+_typeof(P)||0))}var R={type:"ProducerMetadataVersionedName",name:E,version:P};return R}function loopInstruction(E,P,R){if(!(_typeof(R)==="object"&&typeof R.length!=="undefined")){throw new Error('typeof instr === "object" && typeof instr.length !== "undefined"'+" error: "+(false||"unknown"))}var N={type:"LoopInstruction",id:"loop",label:E,resulttype:P,instr:R};return N}function instr(E,P,R,N){if(!(typeof E==="string")){throw new Error('typeof id === "string"'+" error: "+("Argument id must be of type string, given: "+_typeof(E)||0))}if(!(_typeof(R)==="object"&&typeof R.length!=="undefined")){throw new Error('typeof args === "object" && typeof args.length !== "undefined"'+" error: "+(false||"unknown"))}var $={type:"Instr",id:E,args:R};if(typeof P!=="undefined"){$.object=P}if(typeof N!=="undefined"&&Object.keys(N).length!==0){$.namedArgs=N}return $}function ifInstruction(E,P,R,N,$){if(!(_typeof(P)==="object"&&typeof P.length!=="undefined")){throw new Error('typeof test === "object" && typeof test.length !== "undefined"'+" error: "+(false||"unknown"))}if(!(_typeof(N)==="object"&&typeof N.length!=="undefined")){throw new Error('typeof consequent === "object" && typeof consequent.length !== "undefined"'+" error: "+(false||"unknown"))}if(!(_typeof($)==="object"&&typeof $.length!=="undefined")){throw new Error('typeof alternate === "object" && typeof alternate.length !== "undefined"'+" error: "+(false||"unknown"))}var L={type:"IfInstruction",id:"if",testLabel:E,test:P,result:R,consequent:N,alternate:$};return L}function stringLiteral(E){if(!(typeof E==="string")){throw new Error('typeof value === "string"'+" error: "+("Argument value must be of type string, given: "+_typeof(E)||0))}var P={type:"StringLiteral",value:E};return P}function numberLiteral(E,P){if(!(typeof E==="number")){throw new Error('typeof value === "number"'+" error: "+("Argument value must be of type number, given: "+_typeof(E)||0))}if(!(typeof P==="string")){throw new Error('typeof raw === "string"'+" error: "+("Argument raw must be of type string, given: "+_typeof(P)||0))}var R={type:"NumberLiteral",value:E,raw:P};return R}function longNumberLiteral(E,P){if(!(typeof P==="string")){throw new Error('typeof raw === "string"'+" error: "+("Argument raw must be of type string, given: "+_typeof(P)||0))}var R={type:"LongNumberLiteral",value:E,raw:P};return R}function floatLiteral(E,P,R,N){if(!(typeof E==="number")){throw new Error('typeof value === "number"'+" error: "+("Argument value must be of type number, given: "+_typeof(E)||0))}if(P!==null&&P!==undefined){if(!(typeof P==="boolean")){throw new Error('typeof nan === "boolean"'+" error: "+("Argument nan must be of type boolean, given: "+_typeof(P)||0))}}if(R!==null&&R!==undefined){if(!(typeof R==="boolean")){throw new Error('typeof inf === "boolean"'+" error: "+("Argument inf must be of type boolean, given: "+_typeof(R)||0))}}if(!(typeof N==="string")){throw new Error('typeof raw === "string"'+" error: "+("Argument raw must be of type string, given: "+_typeof(N)||0))}var $={type:"FloatLiteral",value:E,raw:N};if(P===true){$.nan=true}if(R===true){$.inf=true}return $}function elem(E,P,R){if(!(_typeof(P)==="object"&&typeof P.length!=="undefined")){throw new Error('typeof offset === "object" && typeof offset.length !== "undefined"'+" error: "+(false||"unknown"))}if(!(_typeof(R)==="object"&&typeof R.length!=="undefined")){throw new Error('typeof funcs === "object" && typeof funcs.length !== "undefined"'+" error: "+(false||"unknown"))}var N={type:"Elem",table:E,offset:P,funcs:R};return N}function indexInFuncSection(E){var P={type:"IndexInFuncSection",index:E};return P}function valtypeLiteral(E){var P={type:"ValtypeLiteral",name:E};return P}function typeInstruction(E,P){var R={type:"TypeInstruction",id:E,functype:P};return R}function start(E){var P={type:"Start",index:E};return P}function globalType(E,P){var R={type:"GlobalType",valtype:E,mutability:P};return R}function leadingComment(E){if(!(typeof E==="string")){throw new Error('typeof value === "string"'+" error: "+("Argument value must be of type string, given: "+_typeof(E)||0))}var P={type:"LeadingComment",value:E};return P}function blockComment(E){if(!(typeof E==="string")){throw new Error('typeof value === "string"'+" error: "+("Argument value must be of type string, given: "+_typeof(E)||0))}var P={type:"BlockComment",value:E};return P}function data(E,P,R){var N={type:"Data",memoryIndex:E,offset:P,init:R};return N}function global(E,P,R){if(!(_typeof(P)==="object"&&typeof P.length!=="undefined")){throw new Error('typeof init === "object" && typeof init.length !== "undefined"'+" error: "+(false||"unknown"))}var N={type:"Global",globalType:E,init:P,name:R};return N}function table(E,P,R,N){if(!(P.type==="Limit")){throw new Error('limits.type === "Limit"'+" error: "+("Argument limits must be of type Limit, given: "+P.type||0))}if(N!==null&&N!==undefined){if(!(_typeof(N)==="object"&&typeof N.length!=="undefined")){throw new Error('typeof elements === "object" && typeof elements.length !== "undefined"'+" error: "+(false||"unknown"))}}var $={type:"Table",elementType:E,limits:P,name:R};if(typeof N!=="undefined"&&N.length>0){$.elements=N}return $}function memory(E,P){var R={type:"Memory",limits:E,id:P};return R}function funcImportDescr(E,P){var R={type:"FuncImportDescr",id:E,signature:P};return R}function moduleImport(E,P,R){if(!(typeof E==="string")){throw new Error('typeof module === "string"'+" error: "+("Argument module must be of type string, given: "+_typeof(E)||0))}if(!(typeof P==="string")){throw new Error('typeof name === "string"'+" error: "+("Argument name must be of type string, given: "+_typeof(P)||0))}var N={type:"ModuleImport",module:E,name:P,descr:R};return N}function moduleExportDescr(E,P){var R={type:"ModuleExportDescr",exportType:E,id:P};return R}function moduleExport(E,P){if(!(typeof E==="string")){throw new Error('typeof name === "string"'+" error: "+("Argument name must be of type string, given: "+_typeof(E)||0))}var R={type:"ModuleExport",name:E,descr:P};return R}function limit(E,P,R){if(!(typeof E==="number")){throw new Error('typeof min === "number"'+" error: "+("Argument min must be of type number, given: "+_typeof(E)||0))}if(P!==null&&P!==undefined){if(!(typeof P==="number")){throw new Error('typeof max === "number"'+" error: "+("Argument max must be of type number, given: "+_typeof(P)||0))}}if(R!==null&&R!==undefined){if(!(typeof R==="boolean")){throw new Error('typeof shared === "boolean"'+" error: "+("Argument shared must be of type boolean, given: "+_typeof(R)||0))}}var N={type:"Limit",min:E};if(typeof P!=="undefined"){N.max=P}if(R===true){N.shared=true}return N}function signature(E,P){if(!(_typeof(E)==="object"&&typeof E.length!=="undefined")){throw new Error('typeof params === "object" && typeof params.length !== "undefined"'+" error: "+(false||"unknown"))}if(!(_typeof(P)==="object"&&typeof P.length!=="undefined")){throw new Error('typeof results === "object" && typeof results.length !== "undefined"'+" error: "+(false||"unknown"))}var R={type:"Signature",params:E,results:P};return R}function program(E){if(!(_typeof(E)==="object"&&typeof E.length!=="undefined")){throw new Error('typeof body === "object" && typeof body.length !== "undefined"'+" error: "+(false||"unknown"))}var P={type:"Program",body:E};return P}function identifier(E,P){if(!(typeof E==="string")){throw new Error('typeof value === "string"'+" error: "+("Argument value must be of type string, given: "+_typeof(E)||0))}if(P!==null&&P!==undefined){if(!(typeof P==="string")){throw new Error('typeof raw === "string"'+" error: "+("Argument raw must be of type string, given: "+_typeof(P)||0))}}var R={type:"Identifier",value:E};if(typeof P!=="undefined"){R.raw=P}return R}function blockInstruction(E,P,R){if(!(_typeof(P)==="object"&&typeof P.length!=="undefined")){throw new Error('typeof instr === "object" && typeof instr.length !== "undefined"'+" error: "+(false||"unknown"))}var N={type:"BlockInstruction",id:"block",label:E,instr:P,result:R};return N}function callInstruction(E,P,R){if(P!==null&&P!==undefined){if(!(_typeof(P)==="object"&&typeof P.length!=="undefined")){throw new Error('typeof instrArgs === "object" && typeof instrArgs.length !== "undefined"'+" error: "+(false||"unknown"))}}var N={type:"CallInstruction",id:"call",index:E};if(typeof P!=="undefined"&&P.length>0){N.instrArgs=P}if(typeof R!=="undefined"){N.numeric=R}return N}function callIndirectInstruction(E,P){if(P!==null&&P!==undefined){if(!(_typeof(P)==="object"&&typeof P.length!=="undefined")){throw new Error('typeof intrs === "object" && typeof intrs.length !== "undefined"'+" error: "+(false||"unknown"))}}var R={type:"CallIndirectInstruction",id:"call_indirect",signature:E};if(typeof P!=="undefined"&&P.length>0){R.intrs=P}return R}function byteArray(E){if(!(_typeof(E)==="object"&&typeof E.length!=="undefined")){throw new Error('typeof values === "object" && typeof values.length !== "undefined"'+" error: "+(false||"unknown"))}var P={type:"ByteArray",values:E};return P}function func(E,P,R,N,$){if(!(_typeof(R)==="object"&&typeof R.length!=="undefined")){throw new Error('typeof body === "object" && typeof body.length !== "undefined"'+" error: "+(false||"unknown"))}if(N!==null&&N!==undefined){if(!(typeof N==="boolean")){throw new Error('typeof isExternal === "boolean"'+" error: "+("Argument isExternal must be of type boolean, given: "+_typeof(N)||0))}}var L={type:"Func",name:E,signature:P,body:R};if(N===true){L.isExternal=true}if(typeof $!=="undefined"){L.metadata=$}return L}function internalBrUnless(E){if(!(typeof E==="number")){throw new Error('typeof target === "number"'+" error: "+("Argument target must be of type number, given: "+_typeof(E)||0))}var P={type:"InternalBrUnless",target:E};return P}function internalGoto(E){if(!(typeof E==="number")){throw new Error('typeof target === "number"'+" error: "+("Argument target must be of type number, given: "+_typeof(E)||0))}var P={type:"InternalGoto",target:E};return P}function internalCallExtern(E){if(!(typeof E==="number")){throw new Error('typeof target === "number"'+" error: "+("Argument target must be of type number, given: "+_typeof(E)||0))}var P={type:"InternalCallExtern",target:E};return P}function internalEndAndReturn(){var E={type:"InternalEndAndReturn"};return E}var R=isTypeOf("Module");P.isModule=R;var N=isTypeOf("ModuleMetadata");P.isModuleMetadata=N;var $=isTypeOf("ModuleNameMetadata");P.isModuleNameMetadata=$;var L=isTypeOf("FunctionNameMetadata");P.isFunctionNameMetadata=L;var q=isTypeOf("LocalNameMetadata");P.isLocalNameMetadata=q;var K=isTypeOf("BinaryModule");P.isBinaryModule=K;var ae=isTypeOf("QuoteModule");P.isQuoteModule=ae;var ge=isTypeOf("SectionMetadata");P.isSectionMetadata=ge;var be=isTypeOf("ProducersSectionMetadata");P.isProducersSectionMetadata=be;var ve=isTypeOf("ProducerMetadata");P.isProducerMetadata=ve;var xe=isTypeOf("ProducerMetadataVersionedName");P.isProducerMetadataVersionedName=xe;var Ce=isTypeOf("LoopInstruction");P.isLoopInstruction=Ce;var Ie=isTypeOf("Instr");P.isInstr=Ie;var He=isTypeOf("IfInstruction");P.isIfInstruction=He;var Ve=isTypeOf("StringLiteral");P.isStringLiteral=Ve;var Ke=isTypeOf("NumberLiteral");P.isNumberLiteral=Ke;var Qe=isTypeOf("LongNumberLiteral");P.isLongNumberLiteral=Qe;var Je=isTypeOf("FloatLiteral");P.isFloatLiteral=Je;var Xe=isTypeOf("Elem");P.isElem=Xe;var Ye=isTypeOf("IndexInFuncSection");P.isIndexInFuncSection=Ye;var Ze=isTypeOf("ValtypeLiteral");P.isValtypeLiteral=Ze;var et=isTypeOf("TypeInstruction");P.isTypeInstruction=et;var tt=isTypeOf("Start");P.isStart=tt;var nt=isTypeOf("GlobalType");P.isGlobalType=nt;var rt=isTypeOf("LeadingComment");P.isLeadingComment=rt;var st=isTypeOf("BlockComment");P.isBlockComment=st;var it=isTypeOf("Data");P.isData=it;var ot=isTypeOf("Global");P.isGlobal=ot;var lt=isTypeOf("Table");P.isTable=lt;var ct=isTypeOf("Memory");P.isMemory=ct;var ut=isTypeOf("FuncImportDescr");P.isFuncImportDescr=ut;var pt=isTypeOf("ModuleImport");P.isModuleImport=pt;var dt=isTypeOf("ModuleExportDescr");P.isModuleExportDescr=dt;var ft=isTypeOf("ModuleExport");P.isModuleExport=ft;var ht=isTypeOf("Limit");P.isLimit