@rive-app/flutter-wasm
Advanced tools
Comparing version 20.0.0 to 21.0.0
@@ -8,92 +8,105 @@ | ||
var m=moduleArg,aa,ba;m.ready=new Promise((a,b)=>{aa=a;ba=b}); | ||
m.onRuntimeInitialized=function(){var a=m.makeGlyphPath;m.makeGlyphPath=function(e,f){e=a(e,f);f=e[1];var g=e[2];g=m.HEAPU8.subarray(g,g+e[3]);let k=0;for(var l of g)switch(l){case 0:case 1:k++;break;case 2:k+=2;break;case 4:k+=3}l=f/4;return{rawPath:e[0],verbs:g,points:m.HEAPF32.subarray(l,l+2*k)}};var b=m.shapeText;m.shapeText=function(e,f){e=b(e,f);return{rawResult:e,results:m.HEAPU8.subarray(e)}};var c=m.breakLines;m.breakLines=function(e,f,g){e=c(e,f,g);return{rawResult:e,results:m.HEAPU8.subarray(e)}}; | ||
var d=m.fontFeatures;m.fontFeatures=function(e){e=d(e);var f=new DataView(m.HEAPU8.buffer,m.HEAPU8.byteOffset+e),g=f.getUint32(0,!0);f=f.getUint32(4,!0);g=new DataView(m.HEAPU8.buffer,m.HEAPU8.byteOffset+g);for(var k=[],l=0;l<f;l++){var h=g.getUint32(4*l,!0);k.push(h)}m.deleteFontFeatures(e);return k}}; | ||
var ca=Object.assign({},m),da="./this.program",ea="object"==typeof window,fa="function"==typeof importScripts,ha="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,n="",ia,ja,ka; | ||
if(ha){var fs=require("fs"),la=require("path");n=fa?la.dirname(n)+"/":__dirname+"/";ia=(a,b)=>{a=ma(a)?new URL(a):la.normalize(a);return fs.readFileSync(a,b?void 0:"utf8")};ka=a=>{a=ia(a,!0);a.buffer||(a=new Uint8Array(a));return a};ja=(a,b,c,d=!0)=>{a=ma(a)?new URL(a):la.normalize(a);fs.readFile(a,d?void 0:"utf8",(e,f)=>{e?c(e):b(d?f.buffer:f)})};!m.thisProgram&&1<process.argv.length&&(da=process.argv[1].replace(/\\/g,"/"));process.argv.slice(2);m.inspect=()=>"[Emscripten Module object]"}else if(ea|| | ||
fa)fa?n=self.location.href:"undefined"!=typeof document&&document.currentScript&&(n=document.currentScript.src),_scriptDir&&(n=_scriptDir),0!==n.indexOf("blob:")?n=n.substr(0,n.replace(/[?#].*/,"").lastIndexOf("/")+1):n="",ia=a=>{var b=new XMLHttpRequest;b.open("GET",a,!1);b.send(null);return b.responseText},fa&&(ka=a=>{var b=new XMLHttpRequest;b.open("GET",a,!1);b.responseType="arraybuffer";b.send(null);return new Uint8Array(b.response)}),ja=(a,b,c)=>{var d=new XMLHttpRequest;d.open("GET",a,!0); | ||
d.responseType="arraybuffer";d.onload=()=>{200==d.status||0==d.status&&d.response?b(d.response):c()};d.onerror=c;d.send(null)};var na=console.log.bind(console),t=console.error.bind(console);Object.assign(m,ca);ca=null;"object"!=typeof WebAssembly&&oa("no native wasm support detected");var pa,qa=!1,v,w,B,ra,C,D,sa,E,ta,ua; | ||
function va(){var a=pa.buffer;m.HEAP8=v=new Int8Array(a);m.HEAP16=B=new Int16Array(a);m.HEAPU8=w=new Uint8Array(a);m.HEAPU16=ra=new Uint16Array(a);m.HEAP32=C=new Int32Array(a);m.HEAPU32=D=new Uint32Array(a);m.HEAPF32=sa=new Float32Array(a);m.HEAPF64=ua=new Float64Array(a);m.HEAP64=E=new BigInt64Array(a);m.HEAPU64=ta=new BigUint64Array(a)}var wa=[],xa=[],ya=[],za=0,Aa=null,Ba=null; | ||
function oa(a){a="Aborted("+a+")";t(a);qa=!0;a=new WebAssembly.RuntimeError(a+". Build with -sASSERTIONS for more info.");ba(a);throw a;}var Ca=a=>a.startsWith("data:application/octet-stream;base64,"),ma=a=>a.startsWith("file://"),Da;Da="rive_text.wasm";Ca(Da)||(Da=n+Da);function Ea(a){if(ka)return ka(a);throw"both async and sync fetching of the wasm failed";} | ||
function Fa(a){if(ea||fa){if("function"==typeof fetch&&!ma(a))return fetch(a,{credentials:"same-origin"}).then(b=>{if(!b.ok)throw"failed to load wasm binary file at '"+a+"'";return b.arrayBuffer()}).catch(()=>Ea(a));if(ja)return new Promise((b,c)=>{ja(a,d=>b(new Uint8Array(d)),c)})}return Promise.resolve().then(()=>Ea(a))}function Ga(a,b,c){return Fa(a).then(d=>WebAssembly.instantiate(d,b)).then(d=>d).then(c,d=>{t(`failed to asynchronously prepare wasm: ${d}`);oa(d)})} | ||
function Ha(a,b){var c=Da;return"function"!=typeof WebAssembly.instantiateStreaming||Ca(c)||ma(c)||ha||"function"!=typeof fetch?Ga(c,a,b):fetch(c,{credentials:"same-origin"}).then(d=>WebAssembly.instantiateStreaming(d,a).then(b,function(e){t(`wasm streaming compile failed: ${e}`);t("falling back to ArrayBuffer instantiation");return Ga(c,a,b)}))} | ||
var La={137448:(a,b,c,d,e)=>{if("undefined"===typeof window||void 0===(window.AudioContext||window.webkitAudioContext))return 0;if("undefined"===typeof window.Z){window.Z={za:0};window.Z.ga={};window.Z.ga.ya=a;window.Z.ga.capture=b;window.Z.ga.Ba=c;window.Z.sa={};window.Z.sa.stopped=d;window.Z.sa.Ya=e;let f=window.Z;f.ea=[];f.ob=function(g){for(var k=0;k<f.ea.length;++k)if(null==f.ea[k])return f.ea[k]=g,k;f.ea.push(g);return f.ea.length-1};f.$a=function(g){for(f.ea[g]=null;0<f.ea.length;)if(null== | ||
f.ea[f.ea.length-1])f.ea.pop();else break};f.zb=function(g){for(var k=0;k<f.ea.length;++k)if(f.ea[k]==g)return f.$a(k)};f.ua=function(g){return f.ea[g]};f.Za=["touchend","click"];f.unlock=function(){for(var g=0;g<f.ea.length;++g){var k=f.ea[g];null!=k&&null!=k.ha&&k.state===f.sa.Ya&&k.ha.resume().then(()=>{Ia(k.Wa)},l=>{console.error("Failed to resume audiocontext",l)})}f.Za.map(function(l){document.removeEventListener(l,f.unlock,!0)})};f.Za.map(function(g){document.addEventListener(g,f.unlock,!0)})}window.Z.za+= | ||
1;return 1},139626:()=>{"undefined"!==typeof window.Z&&(--window.Z.za,0===window.Z.za&&delete window.Z)},139790:()=>void 0!==navigator.mediaDevices&&void 0!==navigator.mediaDevices.getUserMedia,139894:()=>{try{var a=new (window.AudioContext||window.webkitAudioContext),b=a.sampleRate;a.close();return b}catch(c){return 0}},140065:(a,b,c,d,e,f)=>{if("undefined"===typeof window.Z)return-1;var g={},k={};a==window.Z.ga.ya&&0!=c&&(k.sampleRate=c);g.ha=new (window.AudioContext||window.webkitAudioContext)(k); | ||
g.ha.suspend();g.state=window.Z.sa.stopped;c=0;a!=window.Z.ga.ya&&(c=b);g.qa=g.ha.createScriptProcessor(d,c,b);g.qa.onaudioprocess=function(l){if(null==g.va||0==g.va.length)g.va=new Float32Array(sa.buffer,e,d*b);if(a==window.Z.ga.capture||a==window.Z.ga.Ba){for(var h=0;h<b;h+=1)for(var q=l.inputBuffer.getChannelData(h),r=g.va,p=0;p<d;p+=1)r[p*b+h]=q[p];Ja(f,d,e)}if(a==window.Z.ga.ya||a==window.Z.ga.Ba)for(Ka(f,d,e),h=0;h<l.outputBuffer.numberOfChannels;++h)for(q=l.outputBuffer.getChannelData(h),r= | ||
g.va,p=0;p<d;p+=1)q[p]=r[p*b+h];else for(h=0;h<l.outputBuffer.numberOfChannels;++h)l.outputBuffer.getChannelData(h).fill(0)};a!=window.Z.ga.capture&&a!=window.Z.ga.Ba||navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(function(l){g.Aa=g.ha.createMediaStreamSource(l);g.Aa.connect(g.qa);g.qa.connect(g.ha.destination)}).catch(function(l){console.log("Failed to get user media: "+l)});a==window.Z.ga.ya&&g.qa.connect(g.ha.destination);g.Wa=f;return window.Z.ob(g)},142942:a=>window.Z.ua(a).ha.sampleRate, | ||
143015:a=>{a=window.Z.ua(a);void 0!==a.qa&&(a.qa.onaudioprocess=function(){},a.qa.disconnect(),a.qa=void 0);void 0!==a.Aa&&(a.Aa.disconnect(),a.Aa=void 0);a.ha.close();a.ha=void 0;a.Wa=void 0},143415:a=>{window.Z.$a(a)},143465:a=>{a=window.Z.ua(a);a.ha.resume();a.state=window.Z.sa.Ya},143604:a=>{a=window.Z.ua(a);a.ha.suspend();a.state=window.Z.sa.stopped}},Ma=(a,b)=>{for(var c=0,d=a.length-1;0<=d;d--){var e=a[d];"."===e?a.splice(d,1):".."===e?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c;c--)a.unshift(".."); | ||
return a},F=a=>{var b="/"===a.charAt(0),c="/"===a.substr(-1);(a=Ma(a.split("/").filter(d=>!!d),!b).join("/"))||b||(a=".");a&&c&&(a+="/");return(b?"/":"")+a},Na=a=>{var b=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);a=b[0];b=b[1];if(!a&&!b)return".";b&&=b.substr(0,b.length-1);return a+b},Oa=a=>{if("/"===a)return"/";a=F(a);a=a.replace(/\/$/,"");var b=a.lastIndexOf("/");return-1===b?a:a.substr(b+1)},Pa=()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return c=> | ||
crypto.getRandomValues(c);if(ha)try{var a=require("crypto");if(a.randomFillSync)return c=>a.randomFillSync(c);var b=a.randomBytes;return c=>(c.set(b(c.byteLength)),c)}catch(c){}oa("initRandomDevice")},Qa=a=>(Qa=Pa())(a); | ||
function Ra(){for(var a="",b=!1,c=arguments.length-1;-1<=c&&!b;c--){b=0<=c?arguments[c]:"/";if("string"!=typeof b)throw new TypeError("Arguments to path.resolve must be strings");if(!b)return"";a=b+"/"+a;b="/"===b.charAt(0)}a=Ma(a.split("/").filter(d=>!!d),!b).join("/");return(b?"/":"")+a||"."} | ||
var Sa="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,G=(a,b,c)=>{var d=b+c;for(c=b;a[c]&&!(c>=d);)++c;if(16<c-b&&a.buffer&&Sa)return Sa.decode(a.subarray(b,c));for(d="";b<c;){var e=a[b++];if(e&128){var f=a[b++]&63;if(192==(e&224))d+=String.fromCharCode((e&31)<<6|f);else{var g=a[b++]&63;e=224==(e&240)?(e&15)<<12|f<<6|g:(e&7)<<18|f<<12|g<<6|a[b++]&63;65536>e?d+=String.fromCharCode(e):(e-=65536,d+=String.fromCharCode(55296|e>>10,56320|e&1023))}}else d+=String.fromCharCode(e)}return d}, | ||
Ta=[],Ua=a=>{for(var b=0,c=0;c<a.length;++c){var d=a.charCodeAt(c);127>=d?b++:2047>=d?b+=2:55296<=d&&57343>=d?(b+=4,++c):b+=3}return b},Va=(a,b,c,d)=>{if(!(0<d))return 0;var e=c;d=c+d-1;for(var f=0;f<a.length;++f){var g=a.charCodeAt(f);if(55296<=g&&57343>=g){var k=a.charCodeAt(++f);g=65536+((g&1023)<<10)|k&1023}if(127>=g){if(c>=d)break;b[c++]=g}else{if(2047>=g){if(c+1>=d)break;b[c++]=192|g>>6}else{if(65535>=g){if(c+2>=d)break;b[c++]=224|g>>12}else{if(c+3>=d)break;b[c++]=240|g>>18;b[c++]=128|g>>12& | ||
63}b[c++]=128|g>>6&63}b[c++]=128|g&63}}b[c]=0;return c-e},Wa=[];function Xa(a,b){Wa[a]={input:[],output:[],oa:b};Ya(a,Za)} | ||
var Za={open(a){var b=Wa[a.node.rdev];if(!b)throw new I(43);a.tty=b;a.seekable=!1},close(a){a.tty.oa.fsync(a.tty)},fsync(a){a.tty.oa.fsync(a.tty)},read(a,b,c,d){if(!a.tty||!a.tty.oa.Sa)throw new I(60);for(var e=0,f=0;f<d;f++){try{var g=a.tty.oa.Sa(a.tty)}catch(k){throw new I(29);}if(void 0===g&&0===e)throw new I(6);if(null===g||void 0===g)break;e++;b[c+f]=g}e&&(a.node.timestamp=Date.now());return e},write(a,b,c,d){if(!a.tty||!a.tty.oa.Ha)throw new I(60);try{for(var e=0;e<d;e++)a.tty.oa.Ha(a.tty,b[c+ | ||
e])}catch(f){throw new I(29);}d&&(a.node.timestamp=Date.now());return e}},$a={Sa(){a:{if(!Ta.length){var a=null;if(ha){var b=Buffer.alloc(256),c=0,d=process.stdin.fd;try{c=fs.readSync(d,b)}catch(e){if(e.toString().includes("EOF"))c=0;else throw e;}0<c?a=b.slice(0,c).toString("utf-8"):a=null}else"undefined"!=typeof window&&"function"==typeof window.prompt?(a=window.prompt("Input: "),null!==a&&(a+="\n")):"function"==typeof readline&&(a=readline(),null!==a&&(a+="\n"));if(!a){a=null;break a}b=Array(Ua(a)+ | ||
1);a=Va(a,b,0,b.length);b.length=a;Ta=b}a=Ta.shift()}return a},Ha(a,b){null===b||10===b?(na(G(a.output,0)),a.output=[]):0!=b&&a.output.push(b)},fsync(a){a.output&&0<a.output.length&&(na(G(a.output,0)),a.output=[])},hb(){return{sb:25856,ub:5,rb:191,tb:35387,qb:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}},ib(){return 0},jb(){return[24,80]}},ab={Ha(a,b){null===b||10===b?(t(G(a.output,0)),a.output=[]):0!=b&&a.output.push(b)},fsync(a){a.output&&0<a.output.length&&(t(G(a.output, | ||
0)),a.output=[])}};function cb(a,b){var c=a.aa?a.aa.length:0;c>=b||(b=Math.max(b,c*(1048576>c?2:1.125)>>>0),0!=c&&(b=Math.max(b,256)),c=a.aa,a.aa=new Uint8Array(b),0<a.da&&a.aa.set(c.subarray(0,a.da),0))} | ||
var J={ka:null,na(){return J.createNode(null,"/",16895,0)},createNode(a,b,c,d){if(24576===(c&61440)||4096===(c&61440))throw new I(63);J.ka||(J.ka={dir:{node:{ja:J.$.ja,ma:J.$.ma,lookup:J.$.lookup,wa:J.$.wa,rename:J.$.rename,unlink:J.$.unlink,rmdir:J.$.rmdir,readdir:J.$.readdir,symlink:J.$.symlink},stream:{ra:J.ba.ra}},file:{node:{ja:J.$.ja,ma:J.$.ma},stream:{ra:J.ba.ra,read:J.ba.read,write:J.ba.write,ta:J.ba.ta,Ta:J.ba.Ta,Va:J.ba.Va}},link:{node:{ja:J.$.ja,ma:J.$.ma,readlink:J.$.readlink},stream:{}}, | ||
Oa:{node:{ja:J.$.ja,ma:J.$.ma},stream:db}});c=eb(a,b,c,d);16384===(c.mode&61440)?(c.$=J.ka.dir.node,c.ba=J.ka.dir.stream,c.aa={}):32768===(c.mode&61440)?(c.$=J.ka.file.node,c.ba=J.ka.file.stream,c.da=0,c.aa=null):40960===(c.mode&61440)?(c.$=J.ka.link.node,c.ba=J.ka.link.stream):8192===(c.mode&61440)&&(c.$=J.ka.Oa.node,c.ba=J.ka.Oa.stream);c.timestamp=Date.now();a&&(a.aa[b]=c,a.timestamp=c.timestamp);return c},vb(a){return a.aa?a.aa.subarray?a.aa.subarray(0,a.da):new Uint8Array(a.aa):new Uint8Array(0)}, | ||
$:{ja(a){var b={};b.dev=8192===(a.mode&61440)?a.id:1;b.ino=a.id;b.mode=a.mode;b.nlink=1;b.uid=0;b.gid=0;b.rdev=a.rdev;16384===(a.mode&61440)?b.size=4096:32768===(a.mode&61440)?b.size=a.da:40960===(a.mode&61440)?b.size=a.link.length:b.size=0;b.atime=new Date(a.timestamp);b.mtime=new Date(a.timestamp);b.ctime=new Date(a.timestamp);b.cb=4096;b.blocks=Math.ceil(b.size/b.cb);return b},ma(a,b){void 0!==b.mode&&(a.mode=b.mode);void 0!==b.timestamp&&(a.timestamp=b.timestamp);if(void 0!==b.size&&(b=b.size, | ||
a.da!=b))if(0==b)a.aa=null,a.da=0;else{var c=a.aa;a.aa=new Uint8Array(b);c&&a.aa.set(c.subarray(0,Math.min(b,a.da)));a.da=b}},lookup(){throw fb[44];},wa(a,b,c,d){return J.createNode(a,b,c,d)},rename(a,b,c){if(16384===(a.mode&61440)){try{var d=gb(b,c)}catch(f){}if(d)for(var e in d.aa)throw new I(55);}delete a.parent.aa[a.name];a.parent.timestamp=Date.now();a.name=c;b.aa[c]=a;b.timestamp=a.parent.timestamp;a.parent=b},unlink(a,b){delete a.aa[b];a.timestamp=Date.now()},rmdir(a,b){var c=gb(a,b),d;for(d in c.aa)throw new I(55); | ||
delete a.aa[b];a.timestamp=Date.now()},readdir(a){var b=[".",".."],c;for(c of Object.keys(a.aa))b.push(c);return b},symlink(a,b,c){a=J.createNode(a,b,41471,0);a.link=c;return a},readlink(a){if(40960!==(a.mode&61440))throw new I(28);return a.link}},ba:{read(a,b,c,d,e){var f=a.node.aa;if(e>=a.node.da)return 0;a=Math.min(a.node.da-e,d);if(8<a&&f.subarray)b.set(f.subarray(e,e+a),c);else for(d=0;d<a;d++)b[c+d]=f[e+d];return a},write(a,b,c,d,e,f){b.buffer===v.buffer&&(f=!1);if(!d)return 0;a=a.node;a.timestamp= | ||
Date.now();if(b.subarray&&(!a.aa||a.aa.subarray)){if(f)return a.aa=b.subarray(c,c+d),a.da=d;if(0===a.da&&0===e)return a.aa=b.slice(c,c+d),a.da=d;if(e+d<=a.da)return a.aa.set(b.subarray(c,c+d),e),d}cb(a,e+d);if(a.aa.subarray&&b.subarray)a.aa.set(b.subarray(c,c+d),e);else for(f=0;f<d;f++)a.aa[e+f]=b[c+f];a.da=Math.max(a.da,e+d);return d},ra(a,b,c){1===c?b+=a.position:2===c&&32768===(a.node.mode&61440)&&(b+=a.node.da);if(0>b)throw new I(28);return b},ta(a,b,c){cb(a.node,b+c);a.node.da=Math.max(a.node.da, | ||
b+c)},Ta(a,b,c,d,e){if(32768!==(a.node.mode&61440))throw new I(43);a=a.node.aa;if(e&2||a.buffer!==v.buffer){if(0<c||c+b<a.length)a.subarray?a=a.subarray(c,c+b):a=Array.prototype.slice.call(a,c,c+b);c=!0;oa();b=void 0;if(!b)throw new I(48);v.set(a,b)}else c=!1,b=a.byteOffset;return{yb:b,ia:c}},Va(a,b,c,d){J.ba.write(a,b,0,d,c,!1);return 0}}},hb=(a,b)=>{var c=0;a&&(c|=365);b&&(c|=146);return c},ib=null,jb={},kb=[],lb=1,mb=null,nb=!0,I=null,fb={}; | ||
function K(a,b={}){a=Ra(a);if(!a)return{path:"",node:null};b=Object.assign({Qa:!0,Ka:0},b);if(8<b.Ka)throw new I(32);a=a.split("/").filter(g=>!!g);for(var c=ib,d="/",e=0;e<a.length;e++){var f=e===a.length-1;if(f&&b.parent)break;c=gb(c,a[e]);d=F(d+"/"+a[e]);c.xa&&(!f||f&&b.Qa)&&(c=c.xa.root);if(!f||b.Ca)for(f=0;40960===(c.mode&61440);)if(c=ob(d),d=Ra(Na(d),c),c=K(d,{Ka:b.Ka+1}).node,40<f++)throw new I(32);}return{path:d,node:c}} | ||
function pb(a){for(var b;;){if(a===a.parent)return a=a.na.Ua,b?"/"!==a[a.length-1]?`${a}/${b}`:a+b:a;b=b?`${a.name}/${b}`:a.name;a=a.parent}}function qb(a,b){for(var c=0,d=0;d<b.length;d++)c=(c<<5)-c+b.charCodeAt(d)|0;return(a+c>>>0)%mb.length}function gb(a,b){var c;if(c=(c=rb(a,"x"))?c:a.$.lookup?0:2)throw new I(c,a);for(c=mb[qb(a.id,b)];c;c=c.mb){var d=c.name;if(c.parent.id===a.id&&d===b)return c}return a.$.lookup(a,b)} | ||
function eb(a,b,c,d){a=new sb(a,b,c,d);b=qb(a.parent.id,a.name);a.mb=mb[b];return mb[b]=a}function tb(a){var b=["r","w","rw"][a&3];a&512&&(b+="w");return b}function rb(a,b){if(nb)return 0;if(!b.includes("r")||a.mode&292){if(b.includes("w")&&!(a.mode&146)||b.includes("x")&&!(a.mode&73))return 2}else return 2;return 0}function ub(a,b){try{return gb(a,b),20}catch(c){}return rb(a,"wx")}function vb(){for(var a=0;4096>=a;a++)if(!kb[a])return a;throw new I(33);} | ||
function L(a){a=kb[a];if(!a)throw new I(8);return a}function wb(a,b=-1){xb||(xb=function(){this.Z={}},xb.prototype={},Object.defineProperties(xb.prototype,{object:{get(){return this.node},set(c){this.node=c}},flags:{get(){return this.Z.flags},set(c){this.Z.flags=c}},position:{get(){return this.Z.position},set(c){this.Z.position=c}}}));a=Object.assign(new xb,a);-1==b&&(b=vb());a.fd=b;return kb[b]=a}var db={open(a){a.ba=jb[a.node.rdev].ba;a.ba.open?.(a)},ra(){throw new I(70);}}; | ||
function Ya(a,b){jb[a]={ba:b}}function yb(a,b){var c="/"===b,d=!b;if(c&&ib)throw new I(10);if(!c&&!d){var e=K(b,{Qa:!1});b=e.path;e=e.node;if(e.xa)throw new I(10);if(16384!==(e.mode&61440))throw new I(54);}b={type:a,xb:{},Ua:b,lb:[]};a=a.na(b);a.na=b;b.root=a;c?ib=a:e&&(e.xa=b,e.na&&e.na.lb.push(b))}function zb(a,b,c){var d=K(a,{parent:!0}).node;a=Oa(a);if(!a||"."===a||".."===a)throw new I(28);var e=ub(d,a);if(e)throw new I(e);if(!d.$.wa)throw new I(63);return d.$.wa(d,a,b,c)} | ||
function M(a){return zb(a,16895,0)}function Ab(a,b,c){"undefined"==typeof c&&(c=b,b=438);zb(a,b|8192,c)}function Bb(a,b){if(!Ra(a))throw new I(44);var c=K(b,{parent:!0}).node;if(!c)throw new I(44);b=Oa(b);var d=ub(c,b);if(d)throw new I(d);if(!c.$.symlink)throw new I(63);c.$.symlink(c,b,a)}function ob(a){a=K(a).node;if(!a)throw new I(44);if(!a.$.readlink)throw new I(28);return Ra(pb(a.parent),a.$.readlink(a))} | ||
function Cb(a,b,c){if(""===a)throw new I(44);if("string"==typeof b){var d={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[b];if("undefined"==typeof d)throw Error(`Unknown file open mode: ${b}`);b=d}c=b&64?("undefined"==typeof c?438:c)&4095|32768:0;if("object"==typeof a)var e=a;else{a=F(a);try{e=K(a,{Ca:!(b&131072)}).node}catch(f){}}d=!1;if(b&64)if(e){if(b&128)throw new I(20);}else e=zb(a,c,0),d=!0;if(!e)throw new I(44);8192===(e.mode&61440)&&(b&=-513);if(b&65536&&16384!==(e.mode&61440))throw new I(54); | ||
if(!d&&(c=e?40960===(e.mode&61440)?32:16384===(e.mode&61440)&&("r"!==tb(b)||b&512)?31:rb(e,tb(b)):44))throw new I(c);if(b&512&&!d){c=e;c="string"==typeof c?K(c,{Ca:!0}).node:c;if(!c.$.ma)throw new I(63);if(16384===(c.mode&61440))throw new I(31);if(32768!==(c.mode&61440))throw new I(28);if(d=rb(c,"w"))throw new I(d);c.$.ma(c,{size:0,timestamp:Date.now()})}b&=-131713;e=wb({node:e,path:pb(e),flags:b,seekable:!0,position:0,ba:e.ba,pb:[],error:!1});e.ba.open&&e.ba.open(e);!m.logReadFiles||b&1||(Db||={}, | ||
a in Db||(Db[a]=1));return e}function Eb(a,b,c){if(null===a.fd)throw new I(8);if(!a.seekable||!a.ba.ra)throw new I(70);if(0!=c&&1!=c&&2!=c)throw new I(28);a.position=a.ba.ra(a,b,c);a.pb=[]}function Fb(){I||(I=function(a,b){this.name="ErrnoError";this.node=b;this.nb=function(c){this.pa=c};this.nb(a);this.message="FS error"},I.prototype=Error(),I.prototype.constructor=I,[44].forEach(a=>{fb[a]=new I(a);fb[a].stack="<generic error, no stack>"}))}var Gb; | ||
function Hb(a,b,c){a=F("/dev/"+a);var d=hb(!!b,!!c);Ib||=64;var e=Ib++<<8|0;Ya(e,{open(f){f.seekable=!1},close(){c?.buffer?.length&&c(10)},read(f,g,k,l){for(var h=0,q=0;q<l;q++){try{var r=b()}catch(p){throw new I(29);}if(void 0===r&&0===h)throw new I(6);if(null===r||void 0===r)break;h++;g[k+q]=r}h&&(f.node.timestamp=Date.now());return h},write(f,g,k,l){for(var h=0;h<l;h++)try{c(g[k+h])}catch(q){throw new I(29);}l&&(f.node.timestamp=Date.now());return h}});Ab(a,d,e)}var Ib,N={},xb,Db,Jb=void 0; | ||
function O(){var a=C[+Jb>>2];Jb+=4;return a}var Kb={},Lb=a=>{for(;a.length;){var b=a.pop();a.pop()(b)}};function Mb(a){return this.fromWireType(C[a>>2])} | ||
var P={},Q={},Nb={},Ob,Pb=(a,b,c)=>{function d(k){k=c(k);if(k.length!==a.length)throw new Ob("Mismatched type converter count");for(var l=0;l<a.length;++l)R(a[l],k[l])}a.forEach(function(k){Nb[k]=b});var e=Array(b.length),f=[],g=0;b.forEach((k,l)=>{Q.hasOwnProperty(k)?e[l]=Q[k]:(f.push(k),P.hasOwnProperty(k)||(P[k]=[]),P[k].push(()=>{e[l]=Q[k];++g;g===f.length&&d(e)}))});0===f.length&&d(e)},Qb={},Rb=a=>{if(null===a)return"null";var b=typeof a;return"object"===b||"array"===b||"function"===b?a.toString(): | ||
""+a},Sb,S=a=>{for(var b="";w[a];)b+=Sb[w[a++]];return b},T,Tb=a=>{throw new T(a);};function Ub(a,b,c={}){var d=b.name;if(!a)throw new T(`type "${d}" must have a positive integer typeid pointer`);if(Q.hasOwnProperty(a)){if(c.fb)return;throw new T(`Cannot register type '${d}' twice`);}Q[a]=b;delete Nb[a];P.hasOwnProperty(a)&&(b=P[a],delete P[a],b.forEach(e=>e()))} | ||
function R(a,b,c={}){if(!("argPackAdvance"in b))throw new TypeError("registerType registeredInstance requires argPackAdvance");Ub(a,b,c)}var Vb=(a,b,c)=>{switch(b){case 1:return c?d=>v[d>>0]:d=>w[d>>0];case 2:return c?d=>B[d>>1]:d=>ra[d>>1];case 4:return c?d=>C[d>>2]:d=>D[d>>2];case 8:return c?d=>E[d>>3]:d=>ta[d>>3];default:throw new TypeError(`invalid integer width (${b}): ${a}`);}};function Wb(){this.ia=[void 0];this.Ra=[]} | ||
var U=new Wb,Xb=a=>{a>=U.Z&&0===--U.get(a).Xa&&U.ab(a)},V=a=>{if(!a)throw new T("Cannot use deleted val. handle = "+a);return U.get(a).value},Yb=a=>{switch(a){case void 0:return 1;case null:return 2;case !0:return 3;case !1:return 4;default:return U.ta({Xa:1,value:a})}},Zb=(a,b)=>{switch(b){case 4:return function(c){return this.fromWireType(sa[c>>2])};case 8:return function(c){return this.fromWireType(ua[c>>3])};default:throw new TypeError(`invalid float width (${b}): ${a}`);}},$b=(a,b)=>Object.defineProperty(b, | ||
"name",{value:a});function ac(a){for(var b=1;b<a.length;++b)if(null!==a[b]&&void 0===a[b].fa)return!0;return!1}function bc(a){var b=Function;if(!(b instanceof Function))throw new TypeError(`new_ called with constructor type ${typeof b} which is not a function`);var c=$b(b.name||"unknownFunctionName",function(){});c.prototype=b.prototype;c=new c;a=b.apply(c,a);return a instanceof Object?a:c} | ||
var cc=(a,b)=>{if(void 0===m[a].la){var c=m[a];m[a]=function(){if(!m[a].la.hasOwnProperty(arguments.length))throw new T(`Function '${b}' called with an invalid number of arguments (${arguments.length}) - expects one of (${m[a].la})!`);return m[a].la[arguments.length].apply(this,arguments)};m[a].la=[];m[a].la[c.bb]=c}},dc=(a,b,c)=>{if(m.hasOwnProperty(a)){if(void 0===c||void 0!==m[a].la&&void 0!==m[a].la[c])throw new T(`Cannot register public name '${a}' twice`);cc(a,a);if(m.hasOwnProperty(c))throw new T(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`); | ||
m[a].la[c]=b}else m[a]=b,void 0!==c&&(m[a].wb=c)},gc=(a,b)=>{for(var c=[],d=0;d<a;d++)c.push(D[b+4*d>>2]);return c},hc,W=(a,b)=>{a=S(a);var c=hc.get(b);if("function"!=typeof c)throw new T(`unknown function pointer with signature ${a}: ${b}`);return c},ic,kc=a=>{a=jc(a);var b=S(a);X(a);return b},lc=(a,b)=>{function c(f){e[f]||Q[f]||(Nb[f]?Nb[f].forEach(c):(d.push(f),e[f]=!0))}var d=[],e={};b.forEach(c);throw new ic(`${a}: `+d.map(kc).join([", "]));},mc=a=>{a=a.trim();const b=a.indexOf("(");return-1!== | ||
b?a.substr(0,b):a};function nc(a){return this.fromWireType(D[a>>2])} | ||
var oc="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,pc=(a,b)=>{var c=a>>1;for(var d=c+b/2;!(c>=d)&&ra[c];)++c;c<<=1;if(32<c-a&&oc)return oc.decode(w.subarray(a,c));c="";for(d=0;!(d>=b/2);++d){var e=B[a+2*d>>1];if(0==e)break;c+=String.fromCharCode(e)}return c},qc=(a,b,c)=>{c??=2147483647;if(2>c)return 0;c-=2;var d=b;c=c<2*a.length?c/2:a.length;for(var e=0;e<c;++e)B[b>>1]=a.charCodeAt(e),b+=2;B[b>>1]=0;return b-d},rc=a=>2*a.length,sc=(a,b)=>{for(var c=0,d="";!(c>=b/4);){var e= | ||
C[a+4*c>>2];if(0==e)break;++c;65536<=e?(e-=65536,d+=String.fromCharCode(55296|e>>10,56320|e&1023)):d+=String.fromCharCode(e)}return d},tc=(a,b,c)=>{c??=2147483647;if(4>c)return 0;var d=b;c=d+c-4;for(var e=0;e<a.length;++e){var f=a.charCodeAt(e);if(55296<=f&&57343>=f){var g=a.charCodeAt(++e);f=65536+((f&1023)<<10)|g&1023}C[b>>2]=f;b+=4;if(b+4>c)break}C[b>>2]=0;return b-d},uc=a=>{for(var b=0,c=0;c<a.length;++c){var d=a.charCodeAt(c);55296<=d&&57343>=d&&++c;b+=4}return b},vc=(a,b)=>{var c=Q[a];if(void 0=== | ||
c)throw a=b+" has unknown type "+kc(a),new T(a);return c},wc=(a,b,c)=>{var d=[];a=a.toWireType(d,c);d.length&&(D[b>>2]=Yb(d));return a},xc=[],yc={},zc=a=>{var b=yc[a];return void 0===b?S(a):b},Ac=a=>{var b=xc.length;xc.push(a);return b},Bc=(a,b)=>{for(var c=Array(a),d=0;d<a;++d)c[d]=vc(D[b+4*d>>2],"parameter "+d);return c},Cc=[],Dc={},Fc=()=>{if(!Ec){var a={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]|| | ||
"C").replace("-","_")+".UTF-8",_:da||"./this.program"},b;for(b in Dc)void 0===Dc[b]?delete a[b]:a[b]=Dc[b];var c=[];for(b in a)c.push(`${b}=${a[b]}`);Ec=c}return Ec},Ec;function sb(a,b,c,d){a||=this;this.parent=a;this.na=a.na;this.xa=null;this.id=lb++;this.name=b;this.mode=c;this.$={};this.ba={};this.rdev=d} | ||
Object.defineProperties(sb.prototype,{read:{get:function(){return 365===(this.mode&365)},set:function(a){a?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146===(this.mode&146)},set:function(a){a?this.mode|=146:this.mode&=-147}}});Fb();mb=Array(4096);yb(J,"/");M("/tmp");M("/home");M("/home/web_user"); | ||
(function(){M("/dev");Ya(259,{read:()=>0,write:(d,e,f,g)=>g});Ab("/dev/null",259);Xa(1280,$a);Xa(1536,ab);Ab("/dev/tty",1280);Ab("/dev/tty1",1536);var a=new Uint8Array(1024),b=0,c=()=>{0===b&&(b=Qa(a).byteLength);return a[--b]};Hb("random",c);Hb("urandom",c);M("/dev/shm");M("/dev/shm/tmp")})(); | ||
(function(){M("/proc");var a=M("/proc/self");M("/proc/self/fd");yb({na(){var b=eb(a,"fd",16895,73);b.$={lookup(c,d){var e=L(+d);c={parent:null,na:{Ua:"fake"},$:{readlink:()=>e.path}};return c.parent=c}};return b}},"/proc/self/fd")})();Ob=m.InternalError=class extends Error{constructor(a){super(a);this.name="InternalError"}};for(var Gc=Array(256),Hc=0;256>Hc;++Hc)Gc[Hc]=String.fromCharCode(Hc);Sb=Gc;T=m.BindingError=class extends Error{constructor(a){super(a);this.name="BindingError"}}; | ||
Object.assign(Wb.prototype,{get(a){return this.ia[a]},has(a){return void 0!==this.ia[a]},ta(a){var b=this.Ra.pop()||this.ia.length;this.ia[b]=a;return b},ab(a){this.ia[a]=void 0;this.Ra.push(a)}});U.ia.push({value:void 0},{value:null},{value:!0},{value:!1});U.Z=U.ia.length;m.count_emval_handles=()=>{for(var a=0,b=U.Z;b<U.ia.length;++b)void 0!==U.ia[b]&&++a;return a}; | ||
ic=m.UnboundTypeError=((a,b)=>{var c=$b(b,function(d){this.name=b;this.message=d;d=Error(d).stack;void 0!==d&&(this.stack=this.toString()+"\n"+d.replace(/^Error(:[^\n]*)?\n/,""))});c.prototype=Object.create(a.prototype);c.prototype.constructor=c;c.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`};return c})(Error,"UnboundTypeError"); | ||
var Kc={r:function(a,b,c){Jb=c;try{var d=L(a);switch(b){case 0:var e=O();if(0>e)return-28;for(;kb[e];)e++;return wb(d,e).fd;case 1:case 2:return 0;case 3:return d.flags;case 4:return e=O(),d.flags|=e,0;case 5:return e=O(),B[e+0>>1]=2,0;case 6:case 7:return 0;case 16:case 8:return-28;case 9:return C[Ic()>>2]=28,-1;default:return-28}}catch(f){if("undefined"==typeof N||"ErrnoError"!==f.name)throw f;return-f.pa}},C:function(a,b){try{a:{var c=L(a).path;try{var d=K(c,{Ca:!0}).node;if(!d)throw new I(44); | ||
if(!d.$.ja)throw new I(63);var e=d.$.ja(d)}catch(h){if(h&&h.node&&F(c)!==F(pb(h.node))){var f=-54;break a}throw h;}C[b>>2]=e.dev;C[b+4>>2]=e.mode;D[b+8>>2]=e.nlink;C[b+12>>2]=e.uid;C[b+16>>2]=e.gid;C[b+20>>2]=e.rdev;E[b+24>>3]=BigInt(e.size);C[b+32>>2]=4096;C[b+36>>2]=e.blocks;var g=e.atime.getTime(),k=e.mtime.getTime(),l=e.ctime.getTime();E[b+40>>3]=BigInt(Math.floor(g/1E3));D[b+48>>2]=g%1E3*1E3;E[b+56>>3]=BigInt(Math.floor(k/1E3));D[b+64>>2]=k%1E3*1E3;E[b+72>>3]=BigInt(Math.floor(l/1E3));D[b+80>> | ||
2]=l%1E3*1E3;E[b+88>>3]=BigInt(e.ino);f=0}return f}catch(h){if("undefined"==typeof N||"ErrnoError"!==h.name)throw h;return-h.pa}},F:function(a,b,c){Jb=c;try{var d=L(a);switch(b){case 21509:return d.tty?0:-59;case 21505:if(!d.tty)return-59;if(d.tty.oa.hb){b=[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];var e=O();C[e>>2]=25856;C[e+4>>2]=5;C[e+8>>2]=191;C[e+12>>2]=35387;for(var f=0;32>f;f++)v[e+f+17>>0]=b[f]||0}return 0;case 21510:case 21511:case 21512:return d.tty?0:-59; | ||
case 21506:case 21507:case 21508:if(!d.tty)return-59;if(d.tty.oa.ib)for(e=O(),b=[],f=0;32>f;f++)b.push(v[e+f+17>>0]);return 0;case 21519:if(!d.tty)return-59;e=O();return C[e>>2]=0;case 21520:return d.tty?-28:-59;case 21531:e=O();if(!d.ba.gb)throw new I(59);return d.ba.gb(d,b,e);case 21523:if(!d.tty)return-59;d.tty.oa.jb&&(f=[24,80],e=O(),B[e>>1]=f[0],B[e+2>>1]=f[1]);return 0;case 21524:return d.tty?0:-59;case 21515:return d.tty?0:-59;default:return-28}}catch(g){if("undefined"==typeof N||"ErrnoError"!== | ||
g.name)throw g;return-g.pa}},G:function(a,b,c,d){Jb=d;try{b=b?G(w,b):"";var e=b;if("/"===e.charAt(0))b=e;else{var f=-100===a?"/":L(a).path;if(0==e.length)throw new I(44);b=F(f+"/"+e)}var g=d?O():0;return Cb(b,c,g).fd}catch(k){if("undefined"==typeof N||"ErrnoError"!==k.name)throw k;return-k.pa}},v:a=>{var b=Kb[a];delete Kb[a];var c=b.elements,d=c.length,e=c.map(k=>k.Ga).concat(c.map(k=>k.Ma)),f=b.Ia,g=b.Ja;Pb([a],e,function(k){c.forEach((l,h)=>{var q=k[h],r=l.Ea,p=l.Fa,x=k[h+d],A=l.La,H=l.Na;l.read= | ||
u=>q.fromWireType(r(p,u));l.write=(u,y)=>{var z=[];A(H,u,x.toWireType(z,y));Lb(z)}});return[{name:b.name,fromWireType:l=>{for(var h=Array(d),q=0;q<d;++q)h[q]=c[q].read(l);g(l);return h},toWireType:(l,h)=>{if(d!==h.length)throw new TypeError(`Incorrect number of tuple elements for ${b.name}: expected=${d}, actual=${h.length}`);for(var q=f(),r=0;r<d;++r)c[r].write(q,h[r]);null!==l&&l.push(g,q);return q},argPackAdvance:8,readValueFromPointer:Mb,fa:g}]})},k:a=>{var b=Qb[a];delete Qb[a];var c=b.Ia,d=b.Ja, | ||
e=b.Pa,f=e.map(g=>g.Ga).concat(e.map(g=>g.Ma));Pb([a],f,g=>{var k={};e.forEach((l,h)=>{var q=g[h],r=l.Ea,p=l.Fa,x=g[h+e.length],A=l.La,H=l.Na;k[l.eb]={read:u=>q.fromWireType(r(p,u)),write:(u,y)=>{var z=[];A(H,u,x.toWireType(z,y));Lb(z)}}});return[{name:b.name,fromWireType:l=>{var h={},q;for(q in k)h[q]=k[q].read(l);d(l);return h},toWireType:(l,h)=>{for(var q in k)if(!(q in h))throw new TypeError(`Missing field: "${q}"`);var r=c();for(q in k)k[q].write(r,h[q]);null!==l&&l.push(d,r);return r},argPackAdvance:8, | ||
readValueFromPointer:Mb,fa:d}]})},t:(a,b,c,d,e)=>{b=S(b);var f=-1!=b.indexOf("u");f&&(e=(1n<<64n)-1n);R(a,{name:b,fromWireType:g=>g,toWireType:function(g,k){if("bigint"!=typeof k&&"number"!=typeof k)throw new TypeError(`Cannot convert "${Rb(k)}" to ${this.name}`);if(k<d||k>e)throw new TypeError(`Passing a number "${Rb(k)}" from JS side to C/C++ side to an argument of type "${b}", which is outside the valid range [${d}, ${e}]!`);return k},argPackAdvance:8,readValueFromPointer:Vb(b,c,!f),fa:null})}, | ||
I:(a,b,c,d)=>{b=S(b);R(a,{name:b,fromWireType:function(e){return!!e},toWireType:function(e,f){return f?c:d},argPackAdvance:8,readValueFromPointer:function(e){return this.fromWireType(w[e])},fa:null})},H:(a,b)=>{b=S(b);R(a,{name:b,fromWireType:c=>{var d=V(c);Xb(c);return d},toWireType:(c,d)=>Yb(d),argPackAdvance:8,readValueFromPointer:Mb,fa:null})},s:(a,b,c)=>{b=S(b);R(a,{name:b,fromWireType:d=>d,toWireType:(d,e)=>e,argPackAdvance:8,readValueFromPointer:Zb(b,c),fa:null})},a:(a,b,c,d,e,f,g)=>{var k= | ||
gc(b,c);a=S(a);a=mc(a);e=W(d,e);dc(a,function(){lc(`Cannot call ${a} due to unbound types`,k)},b-1);Pb([],k,function(l){var h=[l[0],null].concat(l.slice(1));l=a;var q=a;var r=e,p=h.length;if(2>p)throw new T("argTypes array size mismatch! Must at least get return value and 'this' types!");var x=null!==h[1]&&!1,A=ac(h),H="void"!==h[0].name;r=[Tb,r,f,Lb,h[0],h[1]];for(var u=0;u<p-2;++u)r.push(h[u+2]);if(!A)for(u=x?1:2;u<h.length;++u)null!==h[u].fa&&r.push(h[u].fa);A=ac(h);u=h.length;var y="",z="";for(p= | ||
0;p<u-2;++p)y+=(0!==p?", ":"")+"arg"+p,z+=(0!==p?", ":"")+"arg"+p+"Wired";y=`\n return function (${y}) {\n if (arguments.length !== ${u-2}) {\n throwBindingError('function ${q} called with ' + arguments.length + ' arguments, expected ${u-2}');\n }`;A&&(y+="var destructors = [];\n");var ec=A?"destructors":"null",bb="throwBindingError invoker fn runDestructors retType classParam".split(" ");x&&(y+="var thisWired = classParam['toWireType']("+ec+", this);\n");for(p=0;p<u- | ||
2;++p)y+="var arg"+p+"Wired = argType"+p+"['toWireType']("+ec+", arg"+p+"); // "+h[p+2].name+"\n",bb.push("argType"+p);x&&(z="thisWired"+(0<z.length?", ":"")+z);y+=(H||g?"var rv = ":"")+"invoker(fn"+(0<z.length?", ":"")+z+");\n";if(A)y+="runDestructors(destructors);\n";else for(p=x?1:2;p<h.length;++p)x=1===p?"thisWired":"arg"+(p-2)+"Wired",null!==h[p].fa&&(y+=x+"_dtor("+x+"); // "+h[p].name+"\n",bb.push(x+"_dtor"));H&&(y+="var ret = retType['fromWireType'](rv);\nreturn ret;\n");let [fc,Mc]=[bb,y+ | ||
"}\n"];fc.push(Mc);h=bc(fc).apply(null,r);q=$b(q,h);h=b-1;if(!m.hasOwnProperty(l))throw new Ob("Replacing nonexistant public symbol");void 0!==m[l].la&&void 0!==h?m[l].la[h]=q:(m[l]=q,m[l].bb=h);return[]})},e:(a,b,c,d,e)=>{b=S(b);-1===e&&(e=4294967295);e=k=>k;if(0===d){var f=32-8*c;e=k=>k<<f>>>f}var g=b.includes("unsigned")?function(k,l){return l>>>0}:function(k,l){return l};R(a,{name:b,fromWireType:e,toWireType:g,argPackAdvance:8,readValueFromPointer:Vb(b,c,0!==d),fa:null})},b:(a,b,c)=>{function d(f){return new e(v.buffer, | ||
D[f+4>>2],D[f>>2])}var e=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array][b];c=S(c);R(a,{name:c,fromWireType:d,argPackAdvance:8,readValueFromPointer:d},{fb:!0})},u:(a,b)=>{b=S(b);var c="std::string"===b;R(a,{name:b,fromWireType:function(d){var e=D[d>>2],f=d+4;if(c)for(var g=f,k=0;k<=e;++k){var l=f+k;if(k==e||0==w[l]){g=g?G(w,g,l-g):"";if(void 0===h)var h=g;else h+=String.fromCharCode(0),h+=g;g=l+1}}else{h=Array(e);for(k=0;k< | ||
e;++k)h[k]=String.fromCharCode(w[f+k]);h=h.join("")}X(d);return h},toWireType:function(d,e){e instanceof ArrayBuffer&&(e=new Uint8Array(e));var f="string"==typeof e;if(!(f||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array))throw new T("Cannot pass non-string to std::string");var g=c&&f?Ua(e):e.length;var k=Jc(4+g+1),l=k+4;D[k>>2]=g;if(c&&f)Va(e,w,l,g+1);else if(f)for(f=0;f<g;++f){var h=e.charCodeAt(f);if(255<h)throw X(l),new T("String has UTF-16 code units that do not fit in 8 bits"); | ||
w[l+f]=h}else for(f=0;f<g;++f)w[l+f]=e[f];null!==d&&d.push(X,k);return k},argPackAdvance:8,readValueFromPointer:nc,fa(d){X(d)}})},j:(a,b,c)=>{c=S(c);if(2===b){var d=pc;var e=qc;var f=rc;var g=()=>ra;var k=1}else 4===b&&(d=sc,e=tc,f=uc,g=()=>D,k=2);R(a,{name:c,fromWireType:l=>{for(var h=D[l>>2],q=g(),r,p=l+4,x=0;x<=h;++x){var A=l+4+x*b;if(x==h||0==q[A>>k])p=d(p,A-p),void 0===r?r=p:(r+=String.fromCharCode(0),r+=p),p=A+b}X(l);return r},toWireType:(l,h)=>{if("string"!=typeof h)throw new T(`Cannot pass non-string to C++ string type ${c}`); | ||
var q=f(h),r=Jc(4+q+b);D[r>>2]=q>>k;e(h,r+4,q+b);null!==l&&l.push(X,r);return r},argPackAdvance:8,readValueFromPointer:Mb,fa(l){X(l)}})},w:(a,b,c,d,e,f)=>{Kb[a]={name:S(b),Ia:W(c,d),Ja:W(e,f),elements:[]}},g:(a,b,c,d,e,f,g,k,l)=>{Kb[a].elements.push({Ga:b,Ea:W(c,d),Fa:e,Ma:f,La:W(g,k),Na:l})},l:(a,b,c,d,e,f)=>{Qb[a]={name:S(b),Ia:W(c,d),Ja:W(e,f),Pa:[]}},h:(a,b,c,d,e,f,g,k,l,h)=>{Qb[a].Pa.push({eb:S(b),Ga:c,Ea:W(d,e),Fa:f,Ma:g,La:W(k,l),Na:h})},K:(a,b)=>{b=S(b);R(a,{kb:!0,name:b,argPackAdvance:0, | ||
fromWireType:()=>{},toWireType:()=>{}})},m:(a,b,c)=>{a=V(a);b=vc(b,"emval::as");return wc(b,c,a)},o:(a,b,c,d)=>{a=xc[a];b=V(b);return a(null,b,c,d)},L:(a,b,c,d,e)=>{a=xc[a];b=V(b);c=zc(c);return a(b,b[c],d,e)},J:Xb,i:(a,b,c)=>{b=Bc(a,b);var d=b.shift();a--;var e="return function (obj, func, destructorsRef, args) {\n",f=0,g=[];0===c&&g.push("obj");for(var k=["retType"],l=[d],h=0;h<a;++h)g.push("arg"+h),k.push("argType"+h),l.push(b[h]),e+=` var arg${h} = argType${h}.readValueFromPointer(args${f?"+"+ | ||
f:""});\n`,f+=b[h].argPackAdvance;e+=` var rv = ${1===c?"new func":"func.call"}(${g.join(", ")});\n`;for(h=0;h<a;++h)b[h].deleteObject&&(e+=` argType${h}.deleteObject(arg${h});\n`);d.kb||(k.push("emval_returnValue"),l.push(wc),e+=" return emval_returnValue(retType, destructorsRef, rv);\n");k.push(e+"};\n");a=bc(k).apply(null,l);c=`methodCaller<(${b.map(q=>q.name).join(", ")}) => ${d.name}>`;return Ac($b(c,a))},n:(a,b)=>{a=V(a);b=V(b);return Yb(a[b])},q:a=>{4<a&&(U.get(a).Xa+=1)},M:a=>Yb(zc(a)), | ||
x:a=>{var b=V(a);Lb(b);Xb(a)},f:(a,b)=>{a=vc(a,"_emval_take_value");a=a.readValueFromPointer(b);return Yb(a)},c:()=>{oa("")},d:(a,b,c)=>{Cc.length=0;for(var d;d=w[b++];){var e=105!=d;e&=112!=d;c+=e&&c%8?4:0;Cc.push(112==d?D[c>>2]:106==d?E[c>>3]:105==d?C[c>>2]:ua[c>>3]);c+=e?8:4}return La[a].apply(null,Cc)},y:a=>{var b=w.length;a>>>=0;if(2147483648<a)return!1;for(var c=1;4>=c;c*=2){var d=b*(1+.2/c);d=Math.min(d,a+100663296);var e=Math;d=Math.max(a,d);a:{e=(e.min.call(e,2147483648,d+(65536-d%65536)% | ||
65536)-pa.buffer.byteLength+65535)/65536;try{pa.grow(e);va();var f=1;break a}catch(g){}f=void 0}if(f)return!0}return!1},A:(a,b)=>{var c=0;Fc().forEach((d,e)=>{var f=b+c;e=D[a+4*e>>2]=f;for(f=0;f<d.length;++f)v[e++>>0]=d.charCodeAt(f);v[e>>0]=0;c+=d.length+1});return 0},B:(a,b)=>{var c=Fc();D[a>>2]=c.length;var d=0;c.forEach(e=>d+=e.length+1);D[b>>2]=d;return 0},p:function(a){try{var b=L(a);if(null===b.fd)throw new I(8);b.Da&&(b.Da=null);try{b.ba.close&&b.ba.close(b)}catch(c){throw c;}finally{kb[b.fd]= | ||
null}b.fd=null;return 0}catch(c){if("undefined"==typeof N||"ErrnoError"!==c.name)throw c;return c.pa}},E:function(a,b,c,d){try{a:{var e=L(a);a=b;for(var f,g=b=0;g<c;g++){var k=D[a>>2],l=D[a+4>>2];a+=8;var h=e,q=k,r=l,p=f,x=v;if(0>r||0>p)throw new I(28);if(null===h.fd)throw new I(8);if(1===(h.flags&2097155))throw new I(8);if(16384===(h.node.mode&61440))throw new I(31);if(!h.ba.read)throw new I(28);var A="undefined"!=typeof p;if(!A)p=h.position;else if(!h.seekable)throw new I(70);var H=h.ba.read(h, | ||
x,q,r,p);A||(h.position+=H);var u=H;if(0>u){var y=-1;break a}b+=u;if(u<l)break;"undefined"!==typeof f&&(f+=u)}y=b}D[d>>2]=y;return 0}catch(z){if("undefined"==typeof N||"ErrnoError"!==z.name)throw z;return z.pa}},z:function(a,b,c,d){b=-9007199254740992>b||9007199254740992<b?NaN:Number(b);try{if(isNaN(b))return 61;var e=L(a);Eb(e,b,c);E[d>>3]=BigInt(e.position);e.Da&&0===b&&0===c&&(e.Da=null);return 0}catch(f){if("undefined"==typeof N||"ErrnoError"!==f.name)throw f;return f.pa}},D:function(a,b,c,d){try{a:{var e= | ||
L(a);a=b;for(var f,g=b=0;g<c;g++){var k=D[a>>2],l=D[a+4>>2];a+=8;var h=e,q=k,r=l,p=f,x=v;if(0>r||0>p)throw new I(28);if(null===h.fd)throw new I(8);if(0===(h.flags&2097155))throw new I(8);if(16384===(h.node.mode&61440))throw new I(31);if(!h.ba.write)throw new I(28);h.seekable&&h.flags&1024&&Eb(h,0,2);var A="undefined"!=typeof p;if(!A)p=h.position;else if(!h.seekable)throw new I(70);var H=h.ba.write(h,x,q,r,p,void 0);A||(h.position+=H);var u=H;if(0>u){var y=-1;break a}b+=u;"undefined"!==typeof f&&(f+= | ||
u)}y=b}D[d>>2]=y;return 0}catch(z){if("undefined"==typeof N||"ErrnoError"!==z.name)throw z;return z.pa}}},Y=function(){var a={a:Kc};za++;Ha(a,function(b){Y=b.instance.exports;pa=Y.N;va();hc=Y.Y;xa.unshift(Y.O);za--;0==za&&(null!==Aa&&(clearInterval(Aa),Aa=null),Ba&&(b=Ba,Ba=null,b()))}).catch(ba);return{}}(),Ic=()=>(Ic=Y.P)(),Ia=m._ma_device__on_notification_unlocked=a=>(Ia=m._ma_device__on_notification_unlocked=Y.Q)(a);m._ma_malloc_emscripten=(a,b)=>(m._ma_malloc_emscripten=Y.R)(a,b); | ||
m._ma_free_emscripten=(a,b)=>(m._ma_free_emscripten=Y.S)(a,b);var Ja=m._ma_device_process_pcm_frames_capture__webaudio=(a,b,c)=>(Ja=m._ma_device_process_pcm_frames_capture__webaudio=Y.T)(a,b,c),Ka=m._ma_device_process_pcm_frames_playback__webaudio=(a,b,c)=>(Ka=m._ma_device_process_pcm_frames_playback__webaudio=Y.U)(a,b,c),Jc=a=>(Jc=Y.V)(a),X=a=>(X=Y.W)(a),jc=a=>(jc=Y.X)(a),Lc;Ba=function Nc(){Lc||Oc();Lc||(Ba=Nc)}; | ||
function Oc(){if(!(0<za)){for(;0<wa.length;)wa.shift()(m);if(!(0<za||Lc||(Lc=!0,m.calledRun=!0,qa))){m.noFSInit||Gb||(Gb=!0,Fb(),m.stdin=m.stdin,m.stdout=m.stdout,m.stderr=m.stderr,m.stdin?Hb("stdin",m.stdin):Bb("/dev/tty","/dev/stdin"),m.stdout?Hb("stdout",null,m.stdout):Bb("/dev/tty","/dev/stdout"),m.stderr?Hb("stderr",null,m.stderr):Bb("/dev/tty1","/dev/stderr"),Cb("/dev/stdin",0),Cb("/dev/stdout",1),Cb("/dev/stderr",1));for(nb=!1;0<xa.length;)xa.shift()(m);aa(m);if(m.onRuntimeInitialized)m.onRuntimeInitialized(); | ||
for(;0<ya.length;)ya.shift()(m)}}}Oc(); | ||
function m(){n.buffer!=r.buffer&&u();return r}function w(){n.buffer!=r.buffer&&u();return aa}function ba(){n.buffer!=r.buffer&&u();return ca}function da(){n.buffer!=r.buffer&&u();return ea}function y(){n.buffer!=r.buffer&&u();return fa}function z(){n.buffer!=r.buffer&&u();return ha}function ia(){n.buffer!=r.buffer&&u();return ja}function ka(){n.buffer!=r.buffer&&u();return la}var A=moduleArg,ma,na;A.ready=new Promise((a,b)=>{ma=a;na=b}); | ||
A.onRuntimeInitialized=function(){var a=A.makeGlyphPath;A.makeGlyphPath=function(e,f){e=a(e,f);f=e[1];var g=e[2];g=A.HEAPU8.subarray(g,g+e[3]);let k=0;for(var l of g)switch(l){case 0:case 1:k++;break;case 2:k+=2;break;case 4:k+=3}l=f/4;return{rawPath:e[0],verbs:g,points:A.HEAPF32.subarray(l,l+2*k)}};var b=A.shapeText;A.shapeText=function(e,f){e=b(e,f);return{rawResult:e,results:A.HEAPU8.subarray(e)}};var c=A.breakLines;A.breakLines=function(e,f,g){e=c(e,f,g);return{rawResult:e,results:A.HEAPU8.subarray(e)}}; | ||
var d=A.fontFeatures;A.fontFeatures=function(e){e=d(e);var f=new DataView(A.HEAPU8.buffer,A.HEAPU8.byteOffset+e),g=f.getUint32(0,!0);f=f.getUint32(4,!0);g=new DataView(A.HEAPU8.buffer,A.HEAPU8.byteOffset+g);for(var k=[],l=0;l<f;l++){var h=g.getUint32(4*l,!0);k.push(h)}A.deleteFontFeatures(e);return k}}; | ||
var oa=Object.assign({},A),pa="./this.program",qa=(a,b)=>{throw b;},ra="object"==typeof window,sa="function"==typeof importScripts,E="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,F=A.ENVIRONMENT_IS_PTHREAD||!1,G="",ta,ua,va; | ||
if(E){var fs=require("fs"),wa=require("path");G=sa?wa.dirname(G)+"/":__dirname+"/";ta=(b,c)=>{b=ya(b)?new URL(b):wa.normalize(b);return fs.readFileSync(b,c?void 0:"utf8")};va=b=>{b=ta(b,!0);b.buffer||(b=new Uint8Array(b));return b};ua=(b,c,d,e=!0)=>{b=ya(b)?new URL(b):wa.normalize(b);fs.readFile(b,e?void 0:"utf8",(f,g)=>{f?d(f):c(e?g.buffer:g)})};!A.thisProgram&&1<process.argv.length&&(pa=process.argv[1].replace(/\\/g,"/"));process.argv.slice(2);qa=(b,c)=>{process.exitCode=b;throw c;};A.inspect=()=> | ||
"[Emscripten Module object]";let a;try{a=require("worker_threads")}catch(b){throw console.error('The "worker_threads" module is not supported in this node.js build - perhaps a newer version is needed?'),b;}global.Worker=a.Worker}else if(ra||sa)sa?G=self.location.href:"undefined"!=typeof document&&document.currentScript&&(G=document.currentScript.src),_scriptDir&&(G=_scriptDir),0!==G.indexOf("blob:")?G=G.substr(0,G.replace(/[?#].*/,"").lastIndexOf("/")+1):G="",E||(ta=a=>{var b=new XMLHttpRequest;b.open("GET", | ||
a,!1);b.send(null);return b.responseText},sa&&(va=a=>{var b=new XMLHttpRequest;b.open("GET",a,!1);b.responseType="arraybuffer";b.send(null);return new Uint8Array(b.response)}),ua=(a,b,c)=>{var d=new XMLHttpRequest;d.open("GET",a,!0);d.responseType="arraybuffer";d.onload=()=>{200==d.status||0==d.status&&d.response?b(d.response):c()};d.onerror=c;d.send(null)});E&&"undefined"==typeof performance&&(global.performance=require("perf_hooks").performance);var za=console.log.bind(console),Aa=console.error.bind(console); | ||
E&&(za=(...a)=>fs.writeSync(1,a.join(" ")+"\n"),Aa=(...a)=>fs.writeSync(2,a.join(" ")+"\n"));var Ba=za,H=Aa;Object.assign(A,oa);oa=null;"object"!=typeof WebAssembly&&Ca("no native wasm support detected");var n,Da,Ea=!1,Fa,r,aa,ca,ea,fa,ha,ja,I,Ga,la; | ||
function u(){var a=n.buffer;A.HEAP8=r=new Int8Array(a);A.HEAP16=ca=new Int16Array(a);A.HEAPU8=aa=new Uint8Array(a);A.HEAPU16=ea=new Uint16Array(a);A.HEAP32=fa=new Int32Array(a);A.HEAPU32=ha=new Uint32Array(a);A.HEAPF32=ja=new Float32Array(a);A.HEAPF64=la=new Float64Array(a);A.HEAP64=I=new BigInt64Array(a);A.HEAPU64=Ga=new BigUint64Array(a)}var Ha=16777216; | ||
if(F)n=A.wasmMemory;else if(n=new WebAssembly.Memory({initial:Ha/65536,maximum:32768,shared:!0}),!(n.buffer instanceof SharedArrayBuffer))throw H("requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag"),E&&H("(on node you may need: --experimental-wasm-threads --experimental-wasm-bulk-memory and/or recent version)"),Error("bad memory"); | ||
u();Ha=n.buffer.byteLength;var Ia=[],Ja=[],Ka=[];function La(){if(!F)for(A.noFSInit||Ma||(Ma=!0,Na(),A.stdin=A.stdin,A.stdout=A.stdout,A.stderr=A.stderr,A.stdin?Oa("stdin",A.stdin):Pa("/dev/tty","/dev/stdin"),A.stdout?Oa("stdout",null,A.stdout):Pa("/dev/tty","/dev/stdout"),A.stderr?Oa("stderr",null,A.stderr):Pa("/dev/tty1","/dev/stderr"),Qa("/dev/stdin",0),Qa("/dev/stdout",1),Qa("/dev/stderr",1)),Ra=!1;0<Ja.length;)Ja.shift()(A)}var Sa=0,Ta=null,Ua=null; | ||
function Va(){Sa--;if(0==Sa&&(null!==Ta&&(clearInterval(Ta),Ta=null),Ua)){var a=Ua;Ua=null;a()}}function Ca(a){a="Aborted("+a+")";H(a);Ea=!0;Fa=1;a=new WebAssembly.RuntimeError(a+". Build with -sASSERTIONS for more info.");na(a);throw a;}var Wa=a=>a.startsWith("data:application/octet-stream;base64,"),ya=a=>a.startsWith("file://"),Xa;Xa="rive_text.wasm";Wa(Xa)||(Xa=G+Xa);function Ya(a){if(va)return va(a);throw"both async and sync fetching of the wasm failed";} | ||
function Za(a){if(ra||sa){if("function"==typeof fetch&&!ya(a))return fetch(a,{credentials:"same-origin"}).then(b=>{if(!b.ok)throw"failed to load wasm binary file at '"+a+"'";return b.arrayBuffer()}).catch(()=>Ya(a));if(ua)return new Promise((b,c)=>{ua(a,d=>b(new Uint8Array(d)),c)})}return Promise.resolve().then(()=>Ya(a))}function $a(a,b,c){return Za(a).then(d=>WebAssembly.instantiate(d,b)).then(d=>d).then(c,d=>{H(`failed to asynchronously prepare wasm: ${d}`);Ca(d)})} | ||
function ab(a,b){var c=Xa;return"function"!=typeof WebAssembly.instantiateStreaming||Wa(c)||ya(c)||E||"function"!=typeof fetch?$a(c,a,b):fetch(c,{credentials:"same-origin"}).then(d=>WebAssembly.instantiateStreaming(d,a).then(b,function(e){H(`wasm streaming compile failed: ${e}`);H("falling back to ArrayBuffer instantiation");return $a(c,a,b)}))} | ||
var eb={137868:(a,b,c,d,e)=>{if("undefined"===typeof window||void 0===(window.AudioContext||window.webkitAudioContext))return 0;if("undefined"===typeof window.xa){window.xa={ab:0};window.xa.Ea={};window.xa.Ea.$a=a;window.xa.Ea.capture=b;window.xa.Ea.cb=c;window.xa.Ua={};window.xa.Ua.stopped=d;window.xa.Ua.Db=e;let f=window.xa;f.Ca=[];f.Zb=function(g){for(var k=0;k<f.Ca.length;++k)if(null==f.Ca[k])return f.Ca[k]=g,k;f.Ca.push(g);return f.Ca.length-1};f.Hb=function(g){for(f.Ca[g]=null;0<f.Ca.length;)if(null== | ||
f.Ca[f.Ca.length-1])f.Ca.pop();else break};f.pc=function(g){for(var k=0;k<f.Ca.length;++k)if(f.Ca[k]==g)return f.Hb(k)};f.Wa=function(g){return f.Ca[g]};f.Gb=["touchend","click"];f.unlock=function(){for(var g=0;g<f.Ca.length;++g){var k=f.Ca[g];null!=k&&null!=k.Fa&&k.state===f.Ua.Db&&k.Fa.resume().then(()=>{bb(k.zb)},l=>{console.error("Failed to resume audiocontext",l)})}f.Gb.map(function(l){document.removeEventListener(l,f.unlock,!0)})};f.Gb.map(function(g){document.addEventListener(g,f.unlock,!0)})}window.xa.ab+= | ||
1;return 1},140046:()=>{"undefined"!==typeof window.xa&&(--window.xa.ab,0===window.xa.ab&&delete window.xa)},140210:()=>void 0!==navigator.mediaDevices&&void 0!==navigator.mediaDevices.getUserMedia,140314:()=>{try{var a=new (window.AudioContext||window.webkitAudioContext),b=a.sampleRate;a.close();return b}catch(c){return 0}},140485:(a,b,c,d,e,f)=>{if("undefined"===typeof window.xa)return-1;var g={},k={};a==window.xa.Ea.$a&&0!=c&&(k.sampleRate=c);g.Fa=new (window.AudioContext||window.webkitAudioContext)(k); | ||
g.Fa.suspend();g.state=window.xa.Ua.stopped;c=0;a!=window.xa.Ea.$a&&(c=b);g.Qa=g.Fa.createScriptProcessor(d,c,b);g.Qa.onaudioprocess=function(l){if(null==g.Xa||0==g.Xa.length)g.Xa=new Float32Array(ia().buffer,e,d*b);if(a==window.xa.Ea.capture||a==window.xa.Ea.cb){for(var h=0;h<b;h+=1)for(var p=l.inputBuffer.getChannelData(h),t=g.Xa,q=0;q<d;q+=1)t[q*b+h]=p[q];cb(f,d,e)}if(a==window.xa.Ea.$a||a==window.xa.Ea.cb)for(db(f,d,e),h=0;h<l.outputBuffer.numberOfChannels;++h)for(p=l.outputBuffer.getChannelData(h), | ||
t=g.Xa,q=0;q<d;q+=1)p[q]=t[q*b+h];else for(h=0;h<l.outputBuffer.numberOfChannels;++h)l.outputBuffer.getChannelData(h).fill(0)};a!=window.xa.Ea.capture&&a!=window.xa.Ea.cb||navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(function(l){g.bb=g.Fa.createMediaStreamSource(l);g.bb.connect(g.Qa);g.Qa.connect(g.Fa.destination)}).catch(function(l){console.log("Failed to get user media: "+l)});a==window.xa.Ea.$a&&g.Qa.connect(g.Fa.destination);g.zb=f;return window.xa.Zb(g)},143362:a=>window.xa.Wa(a).Fa.sampleRate, | ||
143435:a=>{a=window.xa.Wa(a);void 0!==a.Qa&&(a.Qa.onaudioprocess=function(){},a.Qa.disconnect(),a.Qa=void 0);void 0!==a.bb&&(a.bb.disconnect(),a.bb=void 0);a.Fa.close();a.Fa=void 0;a.zb=void 0},143835:a=>{window.xa.Hb(a)},143885:a=>{a=window.xa.Wa(a);a.Fa.resume();a.state=window.xa.Ua.Db},144024:a=>{a=window.xa.Wa(a);a.Fa.suspend();a.state=window.xa.Ua.stopped}};function fb(a){this.name="ExitStatus";this.message=`Program terminated with exit(${a})`;this.status=a} | ||
var gb=a=>{a.terminate();a.onmessage=()=>{}},ib=a=>{0==J.Ra.length&&(hb(),J.vb(J.Ra[0]));var b=J.Ra.pop();if(!b)return 6;J.Ta.push(b);J.Ga[a.Pa]=b;b.Pa=a.Pa;var c={cmd:"run",start_routine:a.Xb,arg:a.Ib,pthread_ptr:a.Pa};E&&b.unref();b.postMessage(c,a.$b);return 0},jb=0,kb=(a,b)=>{for(var c=0,d=a.length-1;0<=d;d--){var e=a[d];"."===e?a.splice(d,1):".."===e?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c;c--)a.unshift("..");return a},lb=a=>{var b="/"===a.charAt(0),c="/"===a.substr(-1);(a=kb(a.split("/").filter(d=> | ||
!!d),!b).join("/"))||b||(a=".");a&&c&&(a+="/");return(b?"/":"")+a},mb=a=>{var b=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);a=b[0];b=b[1];if(!a&&!b)return".";b&&=b.substr(0,b.length-1);return a+b},nb=a=>{if("/"===a)return"/";a=lb(a);a=a.replace(/\/$/,"");var b=a.lastIndexOf("/");return-1===b?a:a.substr(b+1)},ob=()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return c=>(c.set(crypto.getRandomValues(new Uint8Array(c.byteLength))),c);if(E)try{var a= | ||
require("crypto");if(a.randomFillSync)return c=>a.randomFillSync(c);var b=a.randomBytes;return c=>(c.set(b(c.byteLength)),c)}catch(c){}Ca("initRandomDevice")},pb=a=>(pb=ob())(a);function qb(){for(var a="",b=!1,c=arguments.length-1;-1<=c&&!b;c--){b=0<=c?arguments[c]:"/";if("string"!=typeof b)throw new TypeError("Arguments to path.resolve must be strings");if(!b)return"";a=b+"/"+a;b="/"===b.charAt(0)}a=kb(a.split("/").filter(d=>!!d),!b).join("/");return(b?"/":"")+a||"."} | ||
var rb="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,sb=(a,b,c)=>{var d=b+c;for(c=b;a[c]&&!(c>=d);)++c;if(16<c-b&&a.buffer&&rb)return rb.decode(a.slice(b,c));for(d="";b<c;){var e=a[b++];if(e&128){var f=a[b++]&63;if(192==(e&224))d+=String.fromCharCode((e&31)<<6|f);else{var g=a[b++]&63;e=224==(e&240)?(e&15)<<12|f<<6|g:(e&7)<<18|f<<12|g<<6|a[b++]&63;65536>e?d+=String.fromCharCode(e):(e-=65536,d+=String.fromCharCode(55296|e>>10,56320|e&1023))}}else d+=String.fromCharCode(e)}return d}, | ||
tb=[],ub=a=>{for(var b=0,c=0;c<a.length;++c){var d=a.charCodeAt(c);127>=d?b++:2047>=d?b+=2:55296<=d&&57343>=d?(b+=4,++c):b+=3}return b},vb=(a,b,c,d)=>{if(!(0<d))return 0;var e=c;d=c+d-1;for(var f=0;f<a.length;++f){var g=a.charCodeAt(f);if(55296<=g&&57343>=g){var k=a.charCodeAt(++f);g=65536+((g&1023)<<10)|k&1023}if(127>=g){if(c>=d)break;b[c++]=g}else{if(2047>=g){if(c+1>=d)break;b[c++]=192|g>>6}else{if(65535>=g){if(c+2>=d)break;b[c++]=224|g>>12}else{if(c+3>=d)break;b[c++]=240|g>>18;b[c++]=128|g>>12& | ||
63}b[c++]=128|g>>6&63}b[c++]=128|g&63}}b[c]=0;return c-e},wb=[];function yb(a,b){wb[a]={input:[],output:[],Na:b};zb(a,Ab)} | ||
var Ab={open(a){var b=wb[a.node.rdev];if(!b)throw new K(43);a.tty=b;a.seekable=!1},close(a){a.tty.Na.fsync(a.tty)},fsync(a){a.tty.Na.fsync(a.tty)},read(a,b,c,d){if(!a.tty||!a.tty.Na.ub)throw new K(60);for(var e=0,f=0;f<d;f++){try{var g=a.tty.Na.ub(a.tty)}catch(k){throw new K(29);}if(void 0===g&&0===e)throw new K(6);if(null===g||void 0===g)break;e++;b[c+f]=g}e&&(a.node.timestamp=Date.now());return e},write(a,b,c,d){if(!a.tty||!a.tty.Na.jb)throw new K(60);try{for(var e=0;e<d;e++)a.tty.Na.jb(a.tty,b[c+ | ||
e])}catch(f){throw new K(29);}d&&(a.node.timestamp=Date.now());return e}},Bb={ub(){a:{if(!tb.length){var a=null;if(E){var b=Buffer.alloc(256),c=0,d=process.stdin.fd;try{c=fs.readSync(d,b)}catch(e){if(e.toString().includes("EOF"))c=0;else throw e;}0<c?a=b.slice(0,c).toString("utf-8"):a=null}else"undefined"!=typeof window&&"function"==typeof window.prompt?(a=window.prompt("Input: "),null!==a&&(a+="\n")):"function"==typeof readline&&(a=readline(),null!==a&&(a+="\n"));if(!a){a=null;break a}b=Array(ub(a)+ | ||
1);a=vb(a,b,0,b.length);b.length=a;tb=b}a=tb.shift()}return a},jb(a,b){null===b||10===b?(Ba(sb(a.output,0)),a.output=[]):0!=b&&a.output.push(b)},fsync(a){a.output&&0<a.output.length&&(Ba(sb(a.output,0)),a.output=[])},Pb(){return{fc:25856,ic:5,ec:191,hc:35387,dc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}},Qb(){return 0},Rb(){return[24,80]}},Cb={jb(a,b){null===b||10===b?(H(sb(a.output,0)),a.output=[]):0!=b&&a.output.push(b)},fsync(a){a.output&&0<a.output.length&&(H(sb(a.output, | ||
0)),a.output=[])}};function Db(a,b){var c=a.za?a.za.length:0;c>=b||(b=Math.max(b,c*(1048576>c?2:1.125)>>>0),0!=c&&(b=Math.max(b,256)),c=a.za,a.za=new Uint8Array(b),0<a.Ba&&a.za.set(c.subarray(0,a.Ba),0))} | ||
var L={Ja:null,Ma(){return L.createNode(null,"/",16895,0)},createNode(a,b,c,d){if(24576===(c&61440)||4096===(c&61440))throw new K(63);L.Ja||(L.Ja={dir:{node:{Ia:L.ya.Ia,La:L.ya.La,lookup:L.ya.lookup,Ya:L.ya.Ya,rename:L.ya.rename,unlink:L.ya.unlink,rmdir:L.ya.rmdir,readdir:L.ya.readdir,symlink:L.ya.symlink},stream:{Sa:L.Aa.Sa}},file:{node:{Ia:L.ya.Ia,La:L.ya.La},stream:{Sa:L.Aa.Sa,read:L.Aa.read,write:L.Aa.write,Va:L.Aa.Va,wb:L.Aa.wb,yb:L.Aa.yb}},link:{node:{Ia:L.ya.Ia,La:L.ya.La,readlink:L.ya.readlink}, | ||
stream:{}},qb:{node:{Ia:L.ya.Ia,La:L.ya.La},stream:Eb}});c=Fb(a,b,c,d);16384===(c.mode&61440)?(c.ya=L.Ja.dir.node,c.Aa=L.Ja.dir.stream,c.za={}):32768===(c.mode&61440)?(c.ya=L.Ja.file.node,c.Aa=L.Ja.file.stream,c.Ba=0,c.za=null):40960===(c.mode&61440)?(c.ya=L.Ja.link.node,c.Aa=L.Ja.link.stream):8192===(c.mode&61440)&&(c.ya=L.Ja.qb.node,c.Aa=L.Ja.qb.stream);c.timestamp=Date.now();a&&(a.za[b]=c,a.timestamp=c.timestamp);return c},kc(a){return a.za?a.za.subarray?a.za.subarray(0,a.Ba):new Uint8Array(a.za): | ||
new Uint8Array(0)},ya:{Ia(a){var b={};b.dev=8192===(a.mode&61440)?a.id:1;b.ino=a.id;b.mode=a.mode;b.nlink=1;b.uid=0;b.gid=0;b.rdev=a.rdev;16384===(a.mode&61440)?b.size=4096:32768===(a.mode&61440)?b.size=a.Ba:40960===(a.mode&61440)?b.size=a.link.length:b.size=0;b.atime=new Date(a.timestamp);b.mtime=new Date(a.timestamp);b.ctime=new Date(a.timestamp);b.Kb=4096;b.blocks=Math.ceil(b.size/b.Kb);return b},La(a,b){void 0!==b.mode&&(a.mode=b.mode);void 0!==b.timestamp&&(a.timestamp=b.timestamp);if(void 0!== | ||
b.size&&(b=b.size,a.Ba!=b))if(0==b)a.za=null,a.Ba=0;else{var c=a.za;a.za=new Uint8Array(b);c&&a.za.set(c.subarray(0,Math.min(b,a.Ba)));a.Ba=b}},lookup(){throw Gb[44];},Ya(a,b,c,d){return L.createNode(a,b,c,d)},rename(a,b,c){if(16384===(a.mode&61440)){try{var d=Hb(b,c)}catch(f){}if(d)for(var e in d.za)throw new K(55);}delete a.parent.za[a.name];a.parent.timestamp=Date.now();a.name=c;b.za[c]=a;b.timestamp=a.parent.timestamp;a.parent=b},unlink(a,b){delete a.za[b];a.timestamp=Date.now()},rmdir(a,b){var c= | ||
Hb(a,b),d;for(d in c.za)throw new K(55);delete a.za[b];a.timestamp=Date.now()},readdir(a){var b=[".",".."],c;for(c of Object.keys(a.za))b.push(c);return b},symlink(a,b,c){a=L.createNode(a,b,41471,0);a.link=c;return a},readlink(a){if(40960!==(a.mode&61440))throw new K(28);return a.link}},Aa:{read(a,b,c,d,e){var f=a.node.za;if(e>=a.node.Ba)return 0;a=Math.min(a.node.Ba-e,d);if(8<a&&f.subarray)b.set(f.subarray(e,e+a),c);else for(d=0;d<a;d++)b[c+d]=f[e+d];return a},write(a,b,c,d,e,f){b.buffer===m().buffer&& | ||
(f=!1);if(!d)return 0;a=a.node;a.timestamp=Date.now();if(b.subarray&&(!a.za||a.za.subarray)){if(f)return a.za=b.subarray(c,c+d),a.Ba=d;if(0===a.Ba&&0===e)return a.za=b.slice(c,c+d),a.Ba=d;if(e+d<=a.Ba)return a.za.set(b.subarray(c,c+d),e),d}Db(a,e+d);if(a.za.subarray&&b.subarray)a.za.set(b.subarray(c,c+d),e);else for(f=0;f<d;f++)a.za[e+f]=b[c+f];a.Ba=Math.max(a.Ba,e+d);return d},Sa(a,b,c){1===c?b+=a.position:2===c&&32768===(a.node.mode&61440)&&(b+=a.node.Ba);if(0>b)throw new K(28);return b},Va(a,b, | ||
c){Db(a.node,b+c);a.node.Ba=Math.max(a.node.Ba,b+c)},wb(a,b,c,d,e){if(32768!==(a.node.mode&61440))throw new K(43);a=a.node.za;if(e&2||a.buffer!==m().buffer){if(0<c||c+b<a.length)a.subarray?a=a.subarray(c,c+b):a=Array.prototype.slice.call(a,c,c+b);c=!0;Ca();b=void 0;if(!b)throw new K(48);m().set(a,b)}else c=!1,b=a.byteOffset;return{nc:b,Ha:c}},yb(a,b,c,d){L.Aa.write(a,b,0,d,c,!1);return 0}}},Ib=(a,b)=>{var c=0;a&&(c|=365);b&&(c|=146);return c},Jb=null,Kb={},Lb=[],Mb=1,Nb=null,Ra=!0,K=null,Gb={}; | ||
function M(a,b={}){a=qb(a);if(!a)return{path:"",node:null};b=Object.assign({sb:!0,mb:0},b);if(8<b.mb)throw new K(32);a=a.split("/").filter(g=>!!g);for(var c=Jb,d="/",e=0;e<a.length;e++){var f=e===a.length-1;if(f&&b.parent)break;c=Hb(c,a[e]);d=lb(d+"/"+a[e]);c.Za&&(!f||f&&b.sb)&&(c=c.Za.root);if(!f||b.eb)for(f=0;40960===(c.mode&61440);)if(c=Ob(d),d=qb(mb(d),c),c=M(d,{mb:b.mb+1}).node,40<f++)throw new K(32);}return{path:d,node:c}} | ||
function Pb(a){for(var b;;){if(a===a.parent)return a=a.Ma.xb,b?"/"!==a[a.length-1]?`${a}/${b}`:a+b:a;b=b?`${a.name}/${b}`:a.name;a=a.parent}}function Qb(a,b){for(var c=0,d=0;d<b.length;d++)c=(c<<5)-c+b.charCodeAt(d)|0;return(a+c>>>0)%Nb.length}function Hb(a,b){var c;if(c=(c=Rb(a,"x"))?c:a.ya.lookup?0:2)throw new K(c,a);for(c=Nb[Qb(a.id,b)];c;c=c.Ub){var d=c.name;if(c.parent.id===a.id&&d===b)return c}return a.ya.lookup(a,b)} | ||
function Fb(a,b,c,d){a=new Sb(a,b,c,d);b=Qb(a.parent.id,a.name);a.Ub=Nb[b];return Nb[b]=a}function Tb(a){var b=["r","w","rw"][a&3];a&512&&(b+="w");return b}function Rb(a,b){if(Ra)return 0;if(!b.includes("r")||a.mode&292){if(b.includes("w")&&!(a.mode&146)||b.includes("x")&&!(a.mode&73))return 2}else return 2;return 0}function Ub(a,b){try{return Hb(a,b),20}catch(c){}return Rb(a,"wx")}function Vb(){for(var a=0;4096>=a;a++)if(!Lb[a])return a;throw new K(33);} | ||
function N(a){a=Lb[a];if(!a)throw new K(8);return a}function Wb(a,b=-1){Xb||(Xb=function(){this.xa={}},Xb.prototype={},Object.defineProperties(Xb.prototype,{object:{get(){return this.node},set(c){this.node=c}},flags:{get(){return this.xa.flags},set(c){this.xa.flags=c}},position:{get(){return this.xa.position},set(c){this.xa.position=c}}}));a=Object.assign(new Xb,a);-1==b&&(b=Vb());a.fd=b;return Lb[b]=a}var Eb={open(a){a.Aa=Kb[a.node.rdev].Aa;a.Aa.open?.(a)},Sa(){throw new K(70);}}; | ||
function zb(a,b){Kb[a]={Aa:b}}function Yb(a,b){var c="/"===b,d=!b;if(c&&Jb)throw new K(10);if(!c&&!d){var e=M(b,{sb:!1});b=e.path;e=e.node;if(e.Za)throw new K(10);if(16384!==(e.mode&61440))throw new K(54);}b={type:a,mc:{},xb:b,Tb:[]};a=a.Ma(b);a.Ma=b;b.root=a;c?Jb=a:e&&(e.Za=b,e.Ma&&e.Ma.Tb.push(b))}function Zb(a,b,c){var d=M(a,{parent:!0}).node;a=nb(a);if(!a||"."===a||".."===a)throw new K(28);var e=Ub(d,a);if(e)throw new K(e);if(!d.ya.Ya)throw new K(63);return d.ya.Ya(d,a,b,c)} | ||
function P(a){return Zb(a,16895,0)}function $b(a,b,c){"undefined"==typeof c&&(c=b,b=438);Zb(a,b|8192,c)}function Pa(a,b){if(!qb(a))throw new K(44);var c=M(b,{parent:!0}).node;if(!c)throw new K(44);b=nb(b);var d=Ub(c,b);if(d)throw new K(d);if(!c.ya.symlink)throw new K(63);c.ya.symlink(c,b,a)}function Ob(a){a=M(a).node;if(!a)throw new K(44);if(!a.ya.readlink)throw new K(28);return qb(Pb(a.parent),a.ya.readlink(a))} | ||
function Qa(a,b,c){if(""===a)throw new K(44);if("string"==typeof b){var d={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[b];if("undefined"==typeof d)throw Error(`Unknown file open mode: ${b}`);b=d}c=b&64?("undefined"==typeof c?438:c)&4095|32768:0;if("object"==typeof a)var e=a;else{a=lb(a);try{e=M(a,{eb:!(b&131072)}).node}catch(f){}}d=!1;if(b&64)if(e){if(b&128)throw new K(20);}else e=Zb(a,c,0),d=!0;if(!e)throw new K(44);8192===(e.mode&61440)&&(b&=-513);if(b&65536&&16384!==(e.mode&61440))throw new K(54); | ||
if(!d&&(c=e?40960===(e.mode&61440)?32:16384===(e.mode&61440)&&("r"!==Tb(b)||b&512)?31:Rb(e,Tb(b)):44))throw new K(c);if(b&512&&!d){c=e;c="string"==typeof c?M(c,{eb:!0}).node:c;if(!c.ya.La)throw new K(63);if(16384===(c.mode&61440))throw new K(31);if(32768!==(c.mode&61440))throw new K(28);if(d=Rb(c,"w"))throw new K(d);c.ya.La(c,{size:0,timestamp:Date.now()})}b&=-131713;e=Wb({node:e,path:Pb(e),flags:b,seekable:!0,position:0,Aa:e.Aa,ac:[],error:!1});e.Aa.open&&e.Aa.open(e);!A.logReadFiles||b&1||(ac||= | ||
{},a in ac||(ac[a]=1));return e}function bc(a,b,c){if(null===a.fd)throw new K(8);if(!a.seekable||!a.Aa.Sa)throw new K(70);if(0!=c&&1!=c&&2!=c)throw new K(28);a.position=a.Aa.Sa(a,b,c);a.ac=[]}function Na(){K||(K=function(a,b){this.name="ErrnoError";this.node=b;this.Wb=function(c){this.Oa=c};this.Wb(a);this.message="FS error"},K.prototype=Error(),K.prototype.constructor=K,[44].forEach(a=>{Gb[a]=new K(a);Gb[a].stack="<generic error, no stack>"}))}var Ma; | ||
function Oa(a,b,c){a=lb("/dev/"+a);var d=Ib(!!b,!!c);cc||=64;var e=cc++<<8|0;zb(e,{open(f){f.seekable=!1},close(){c?.buffer?.length&&c(10)},read(f,g,k,l){for(var h=0,p=0;p<l;p++){try{var t=b()}catch(q){throw new K(29);}if(void 0===t&&0===h)throw new K(6);if(null===t||void 0===t)break;h++;g[k+p]=t}h&&(f.node.timestamp=Date.now());return h},write(f,g,k,l){for(var h=0;h<l;h++)try{c(g[k+h])}catch(p){throw new K(29);}l&&(f.node.timestamp=Date.now());return h}});$b(a,d,e)}var cc,Q={},Xb,ac,dc=void 0; | ||
function R(){var a=y()[+dc>>2];dc+=4;return a}var gc=a=>{var b=ec();a=a();fc(b);return a};function S(a,b){var c=arguments.length-2,d=arguments;return gc(()=>{for(var e=2*c,f=hc(8*e),g=f>>3,k=0;k<c;k++){var l=d[2+k];"bigint"==typeof l?(I[g+2*k]=1n,I[g+2*k+1]=l):(I[g+2*k]=0n,ka()[g+2*k+1]=l)}return ic(a,e,f,b)})}function jc(a){if(F)return S(0,1,a);Fa=a;0<jb||(J.Yb(),Ea=!0);qa(a,new fb(a))}var lc=a=>{Fa=a;if(F)throw kc(a),"unwind";jc(a)}; | ||
function mc(){for(var a=6;a--;)hb();Ia.unshift(()=>{Sa++;nc(()=>Va())})}function hb(){var a=new Worker(G+"rive_text.worker.js");J.Ra.push(a)}function nc(a){F?a():Promise.all(J.Ra.map(J.vb)).then(a)} | ||
var J={Ra:[],Ta:[],Fb:[],Ga:{},Cb:a=>Fa=a,oc:["$terminateWorker"],Yb:()=>{for(var a of J.Ta)gb(a);for(a of J.Ra)gb(a);J.Ra=[];J.Ta=[];J.Ga=[]},Bb:a=>{var b=a.Pa;delete J.Ga[b];J.Ra.push(a);J.Ta.splice(J.Ta.indexOf(a),1);a.Pa=0;oc(b)},Vb(){},Eb(){J.Fb.forEach(a=>a())},vb:a=>new Promise(b=>{a.onmessage=f=>{f=f.data;var g=f.cmd;if(f.targetThread&&f.targetThread!=pc()){var k=J.Ga[f.targetThread];k?k.postMessage(f,f.transferList):H(`Internal error! Worker sent a message "${g}" to target pthread ${f.targetThread}, but that thread no longer exists!`)}else if("checkMailbox"=== | ||
g)qc();else if("spawnThread"===g)ib(f);else if("cleanupThread"===g)J.Bb(J.Ga[f.thread]);else if("killThread"===g)f=f.thread,g=J.Ga[f],delete J.Ga[f],gb(g),oc(f),J.Ta.splice(J.Ta.indexOf(g),1),g.Pa=0;else if("cancelThread"===g)J.Ga[f.thread].postMessage({cmd:"cancel"});else if("loaded"===g)a.loaded=!0,E&&!a.Pa&&a.unref(),b(a);else if("alert"===g)alert(`Thread ${f.threadId}: ${f.text}`);else if("setimmediate"===f.target)a.postMessage(f);else if("callHandler"===g)A[f.handler](...f.args);else g&&H(`worker sent an unknown command ${g}`)}; | ||
a.onerror=f=>{H(`${"worker sent an error!"} ${f.filename}:${f.lineno}: ${f.message}`);throw f;};E&&(a.on("message",f=>a.onmessage({data:f})),a.on("error",f=>a.onerror(f)));var c=[],d=[],e;for(e of d)A.hasOwnProperty(e)&&c.push(e);a.postMessage({cmd:"load",handlers:c,urlOrBlob:A.mainScriptUrlOrBlob||_scriptDir,wasmMemory:n,wasmModule:Da})})};A.PThread=J;A.establishStackSpace=()=>{var a=pc(),b=z()[a+52>>2];a=z()[a+56>>2];rc(b,b-a);fc(b)};function kc(a){if(F)return S(1,0,a);lc(a)}var sc; | ||
A.invokeEntryPoint=(a,b)=>{a=sc.get(a)(b);0<jb?J.Cb(a):tc(a)};function uc(a,b,c,d){return F?S(2,1,a,b,c,d):vc(a,b,c,d)}var vc=(a,b,c,d)=>{if("undefined"==typeof SharedArrayBuffer)return H("Current environment does not support SharedArrayBuffer, pthreads are not available!"),6;var e=[];if(F&&0===e.length)return uc(a,b,c,d);a={Xb:c,Pa:a,Ib:d,$b:e};return F?(a.jc="spawnThread",postMessage(a,e),0):ib(a)}; | ||
function wc(a,b,c){if(F)return S(3,1,a,b,c);dc=c;try{var d=N(a);switch(b){case 0:var e=R();if(0>e)return-28;for(;Lb[e];)e++;return Wb(d,e).fd;case 1:case 2:return 0;case 3:return d.flags;case 4:return e=R(),d.flags|=e,0;case 5:return e=R(),ba()[e+0>>1]=2,0;case 6:case 7:return 0;case 16:case 8:return-28;case 9:return y()[xc()>>2]=28,-1;default:return-28}}catch(f){if("undefined"==typeof Q||"ErrnoError"!==f.name)throw f;return-f.Oa}} | ||
function yc(a,b){if(F)return S(4,1,a,b);try{a:{var c=N(a).path;try{var d=M(c,{eb:!0}).node;if(!d)throw new K(44);if(!d.ya.Ia)throw new K(63);var e=d.ya.Ia(d)}catch(h){if(h&&h.node&&lb(c)!==lb(Pb(h.node))){var f=-54;break a}throw h;}y()[b>>2]=e.dev;y()[b+4>>2]=e.mode;z()[b+8>>2]=e.nlink;y()[b+12>>2]=e.uid;y()[b+16>>2]=e.gid;y()[b+20>>2]=e.rdev;I[b+24>>3]=BigInt(e.size);y()[b+32>>2]=4096;y()[b+36>>2]=e.blocks;var g=e.atime.getTime(),k=e.mtime.getTime(),l=e.ctime.getTime();I[b+40>>3]=BigInt(Math.floor(g/ | ||
1E3));z()[b+48>>2]=g%1E3*1E3;I[b+56>>3]=BigInt(Math.floor(k/1E3));z()[b+64>>2]=k%1E3*1E3;I[b+72>>3]=BigInt(Math.floor(l/1E3));z()[b+80>>2]=l%1E3*1E3;I[b+88>>3]=BigInt(e.ino);f=0}return f}catch(h){if("undefined"==typeof Q||"ErrnoError"!==h.name)throw h;return-h.Oa}} | ||
function zc(a,b,c){if(F)return S(5,1,a,b,c);dc=c;try{var d=N(a);switch(b){case 21509:return d.tty?0:-59;case 21505:if(!d.tty)return-59;if(d.tty.Na.Pb){b=[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];var e=R();y()[e>>2]=25856;y()[e+4>>2]=5;y()[e+8>>2]=191;y()[e+12>>2]=35387;for(var f=0;32>f;f++)m()[e+f+17>>0]=b[f]||0}return 0;case 21510:case 21511:case 21512:return d.tty?0:-59;case 21506:case 21507:case 21508:if(!d.tty)return-59;if(d.tty.Na.Qb)for(e=R(),y(),y(),y(),y(), | ||
b=[],f=0;32>f;f++)b.push(m()[e+f+17>>0]);return 0;case 21519:if(!d.tty)return-59;e=R();return y()[e>>2]=0;case 21520:return d.tty?-28:-59;case 21531:e=R();if(!d.Aa.Ob)throw new K(59);return d.Aa.Ob(d,b,e);case 21523:if(!d.tty)return-59;d.tty.Na.Rb&&(f=[24,80],e=R(),ba()[e>>1]=f[0],ba()[e+2>>1]=f[1]);return 0;case 21524:return d.tty?0:-59;case 21515:return d.tty?0:-59;default:return-28}}catch(g){if("undefined"==typeof Q||"ErrnoError"!==g.name)throw g;return-g.Oa}} | ||
function Ac(a,b,c,d){if(F)return S(6,1,a,b,c,d);dc=d;try{var e=b;b=e?sb(w(),e):"";e=b;if("/"===e.charAt(0))b=e;else{var f=-100===a?"/":N(a).path;if(0==e.length)throw new K(44);b=lb(f+"/"+e)}var g=d?R():0;return Qa(b,c,g).fd}catch(k){if("undefined"==typeof Q||"ErrnoError"!==k.name)throw k;return-k.Oa}}var Bc={},Cc=a=>{for(;a.length;){var b=a.pop();a.pop()(b)}};function Dc(a){return this.fromWireType(y()[a>>2])} | ||
var Ec={},Fc={},Gc={},Hc,Ic=(a,b,c)=>{function d(k){k=c(k);if(k.length!==a.length)throw new Hc("Mismatched type converter count");for(var l=0;l<a.length;++l)T(a[l],k[l])}a.forEach(function(k){Gc[k]=b});var e=Array(b.length),f=[],g=0;b.forEach((k,l)=>{Fc.hasOwnProperty(k)?e[l]=Fc[k]:(f.push(k),Ec.hasOwnProperty(k)||(Ec[k]=[]),Ec[k].push(()=>{e[l]=Fc[k];++g;g===f.length&&d(e)}))});0===f.length&&d(e)},Jc={},Kc=a=>{if(null===a)return"null";var b=typeof a;return"object"===b||"array"===b||"function"=== | ||
b?a.toString():""+a},Lc,U=a=>{for(var b="";w()[a];)b+=Lc[w()[a++]];return b},V,Mc=a=>{throw new V(a);};function Nc(a,b,c={}){var d=b.name;if(!a)throw new V(`type "${d}" must have a positive integer typeid pointer`);if(Fc.hasOwnProperty(a)){if(c.Nb)return;throw new V(`Cannot register type '${d}' twice`);}Fc[a]=b;delete Gc[a];Ec.hasOwnProperty(a)&&(b=Ec[a],delete Ec[a],b.forEach(e=>e()))} | ||
function T(a,b,c={}){if(!("argPackAdvance"in b))throw new TypeError("registerType registeredInstance requires argPackAdvance");Nc(a,b,c)}var Oc=(a,b,c)=>{switch(b){case 1:return c?d=>m()[d>>0]:d=>w()[d>>0];case 2:return c?d=>ba()[d>>1]:d=>da()[d>>1];case 4:return c?d=>y()[d>>2]:d=>z()[d>>2];case 8:return c?d=>I[d>>3]:d=>Ga[d>>3];default:throw new TypeError(`invalid integer width (${b}): ${a}`);}};function Pc(){this.Ha=[void 0];this.tb=[]} | ||
var W=new Pc,Qc=a=>{a>=W.xa&&0===--W.get(a).Ab&&W.cc(a)},Rc=a=>{if(!a)throw new V("Cannot use deleted val. handle = "+a);return W.get(a).value},Sc=a=>{switch(a){case void 0:return 1;case null:return 2;case !0:return 3;case !1:return 4;default:return W.Va({Ab:1,value:a})}},Tc=(a,b)=>{switch(b){case 4:return function(c){return this.fromWireType(ia()[c>>2])};case 8:return function(c){return this.fromWireType(ka()[c>>3])};default:throw new TypeError(`invalid float width (${b}): ${a}`);}},Uc=(a,b)=>Object.defineProperty(b, | ||
"name",{value:a});function Vc(a){for(var b=1;b<a.length;++b)if(null!==a[b]&&void 0===a[b].Da)return!0;return!1}function Wc(a){var b=Function;if(!(b instanceof Function))throw new TypeError(`new_ called with constructor type ${typeof b} which is not a function`);var c=Uc(b.name||"unknownFunctionName",function(){});c.prototype=b.prototype;c=new c;a=b.apply(c,a);return a instanceof Object?a:c} | ||
var Xc=(a,b)=>{var c=A;if(void 0===c[a].Ka){var d=c[a];c[a]=function(){if(!c[a].Ka.hasOwnProperty(arguments.length))throw new V(`Function '${b}' called with an invalid number of arguments (${arguments.length}) - expects one of (${c[a].Ka})!`);return c[a].Ka[arguments.length].apply(this,arguments)};c[a].Ka=[];c[a].Ka[d.Jb]=d}},Yc=(a,b,c)=>{if(A.hasOwnProperty(a)){if(void 0===c||void 0!==A[a].Ka&&void 0!==A[a].Ka[c])throw new V(`Cannot register public name '${a}' twice`);Xc(a,a);if(A.hasOwnProperty(c))throw new V(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`); | ||
A[a].Ka[c]=b}else A[a]=b,void 0!==c&&(A[a].lc=c)},Zc=(a,b)=>{for(var c=[],d=0;d<a;d++)c.push(z()[b+4*d>>2]);return c},X=(a,b)=>{a=U(a);var c=sc.get(b);if("function"!=typeof c)throw new V(`unknown function pointer with signature ${a}: ${b}`);return c},$c,bd=a=>{a=ad(a);var b=U(a);Y(a);return b},cd=(a,b)=>{function c(f){e[f]||Fc[f]||(Gc[f]?Gc[f].forEach(c):(d.push(f),e[f]=!0))}var d=[],e={};b.forEach(c);throw new $c(`${a}: `+d.map(bd).join([", "]));},dd=a=>{a=a.trim();const b=a.indexOf("(");return-1!== | ||
b?a.substr(0,b):a};function gd(a){return this.fromWireType(z()[a>>2])} | ||
var hd="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,jd=(a,b)=>{var c=a>>1;for(var d=c+b/2;!(c>=d)&&da()[c];)++c;c<<=1;if(32<c-a&&hd)return hd.decode(w().slice(a,c));c="";for(d=0;!(d>=b/2);++d){var e=ba()[a+2*d>>1];if(0==e)break;c+=String.fromCharCode(e)}return c},kd=(a,b,c)=>{c??=2147483647;if(2>c)return 0;c-=2;var d=b;c=c<2*a.length?c/2:a.length;for(var e=0;e<c;++e){var f=a.charCodeAt(e);ba()[b>>1]=f;b+=2}ba()[b>>1]=0;return b-d},ld=a=>2*a.length,md=(a,b)=>{for(var c=0,d="";!(c>= | ||
b/4);){var e=y()[a+4*c>>2];if(0==e)break;++c;65536<=e?(e-=65536,d+=String.fromCharCode(55296|e>>10,56320|e&1023)):d+=String.fromCharCode(e)}return d},nd=(a,b,c)=>{c??=2147483647;if(4>c)return 0;var d=b;c=d+c-4;for(var e=0;e<a.length;++e){var f=a.charCodeAt(e);if(55296<=f&&57343>=f){var g=a.charCodeAt(++e);f=65536+((f&1023)<<10)|g&1023}y()[b>>2]=f;b+=4;if(b+4>c)break}y()[b>>2]=0;return b-d},od=a=>{for(var b=0,c=0;c<a.length;++c){var d=a.charCodeAt(c);55296<=d&&57343>=d&&++c;b+=4}return b},pd=a=>{"function"=== | ||
typeof Atomics.bc&&(Atomics.bc(y(),a>>2,a).value.then(qc),a+=128,Atomics.store(y(),a>>2,1))};A.__emscripten_thread_mailbox_await=pd;var qc=()=>{var a=pc();if(a&&(pd(a),a=qd,!Ea))try{if(a(),!(0<jb))try{F?tc(Fa):lc(Fa)}catch(b){b instanceof fb||"unwind"==b||qa(1,b)}}catch(b){b instanceof fb||"unwind"==b||qa(1,b)}};A.checkMailbox=qc; | ||
var rd=[],sd=(a,b)=>{var c=Fc[a];if(void 0===c)throw a=b+" has unknown type "+bd(a),new V(a);return c},td=(a,b,c)=>{var d=[];a=a.toWireType(d,c);d.length&&(z()[b>>2]=Sc(d));return a},ud=[],vd={},wd=a=>{var b=vd[a];return void 0===b?U(a):b},xd=a=>{var b=ud.length;ud.push(a);return b},yd=(a,b)=>{for(var c=Array(a),d=0;d<a;++d)c[d]=sd(z()[b+4*d>>2],"parameter "+d);return c},zd=[],Ad={},Cd=()=>{if(!Bd){var a={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&& | ||
navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:pa||"./this.program"},b;for(b in Ad)void 0===Ad[b]?delete a[b]:a[b]=Ad[b];var c=[];for(b in a)c.push(`${b}=${a[b]}`);Bd=c}return Bd},Bd;function Dd(a,b){if(F)return S(7,1,a,b);var c=0;Cd().forEach((d,e)=>{var f=b+c;e=z()[a+4*e>>2]=f;for(f=0;f<d.length;++f)m()[e++>>0]=d.charCodeAt(f);m()[e>>0]=0;c+=d.length+1});return 0} | ||
function Ed(a,b){if(F)return S(8,1,a,b);var c=Cd();z()[a>>2]=c.length;var d=0;c.forEach(e=>d+=e.length+1);z()[b>>2]=d;return 0}function Fd(a){if(F)return S(9,1,a);try{var b=N(a);if(null===b.fd)throw new K(8);b.fb&&(b.fb=null);try{b.Aa.close&&b.Aa.close(b)}catch(c){throw c;}finally{Lb[b.fd]=null}b.fd=null;return 0}catch(c){if("undefined"==typeof Q||"ErrnoError"!==c.name)throw c;return c.Oa}} | ||
function Gd(a,b,c,d){if(F)return S(10,1,a,b,c,d);try{a:{var e=N(a);a=b;for(var f,g=b=0;g<c;g++){var k=z()[a>>2],l=z()[a+4>>2];a+=8;var h=e,p=m(),t=k,q=l,x=f;if(0>q||0>x)throw new K(28);if(null===h.fd)throw new K(8);if(1===(h.flags&2097155))throw new K(8);if(16384===(h.node.mode&61440))throw new K(31);if(!h.Aa.read)throw new K(28);var D="undefined"!=typeof x;if(!D)x=h.position;else if(!h.seekable)throw new K(70);var O=h.Aa.read(h,p,t,q,x);D||(h.position+=O);var v=O;if(0>v){var B=-1;break a}b+=v;if(v< | ||
l)break;"undefined"!==typeof f&&(f+=v)}B=b}z()[d>>2]=B;return 0}catch(C){if("undefined"==typeof Q||"ErrnoError"!==C.name)throw C;return C.Oa}}function Hd(a,b,c,d){if(F)return S(11,1,a,b,c,d);b=-9007199254740992>b||9007199254740992<b?NaN:Number(b);try{if(isNaN(b))return 61;var e=N(a);bc(e,b,c);I[d>>3]=BigInt(e.position);e.fb&&0===b&&0===c&&(e.fb=null);return 0}catch(f){if("undefined"==typeof Q||"ErrnoError"!==f.name)throw f;return f.Oa}} | ||
function Id(a,b,c,d){if(F)return S(12,1,a,b,c,d);try{a:{var e=N(a);a=b;for(var f,g=b=0;g<c;g++){var k=z()[a>>2],l=z()[a+4>>2];a+=8;var h=e,p=m(),t=k,q=l,x=f;if(0>q||0>x)throw new K(28);if(null===h.fd)throw new K(8);if(0===(h.flags&2097155))throw new K(8);if(16384===(h.node.mode&61440))throw new K(31);if(!h.Aa.write)throw new K(28);h.seekable&&h.flags&1024&&bc(h,0,2);var D="undefined"!=typeof x;if(!D)x=h.position;else if(!h.seekable)throw new K(70);var O=h.Aa.write(h,p,t,q,x,void 0);D||(h.position+= | ||
O);var v=O;if(0>v){var B=-1;break a}b+=v;"undefined"!==typeof f&&(f+=v)}B=b}z()[d>>2]=B;return 0}catch(C){if("undefined"==typeof Q||"ErrnoError"!==C.name)throw C;return C.Oa}}F?(J.receiveObjectTransfer=J.Vb,J.threadInitTLS=J.Eb,J.setExitStatus=J.Cb):mc();function Sb(a,b,c,d){a||=this;this.parent=a;this.Ma=a.Ma;this.Za=null;this.id=Mb++;this.name=b;this.mode=c;this.ya={};this.Aa={};this.rdev=d} | ||
Object.defineProperties(Sb.prototype,{read:{get:function(){return 365===(this.mode&365)},set:function(a){a?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146===(this.mode&146)},set:function(a){a?this.mode|=146:this.mode&=-147}}});Na();Nb=Array(4096);Yb(L,"/");P("/tmp");P("/home");P("/home/web_user"); | ||
(function(){P("/dev");zb(259,{read:()=>0,write:(d,e,f,g)=>g});$b("/dev/null",259);yb(1280,Bb);yb(1536,Cb);$b("/dev/tty",1280);$b("/dev/tty1",1536);var a=new Uint8Array(1024),b=0,c=()=>{0===b&&(b=pb(a).byteLength);return a[--b]};Oa("random",c);Oa("urandom",c);P("/dev/shm");P("/dev/shm/tmp")})(); | ||
(function(){P("/proc");var a=P("/proc/self");P("/proc/self/fd");Yb({Ma(){var b=Fb(a,"fd",16895,73);b.ya={lookup(c,d){var e=N(+d);c={parent:null,Ma:{xb:"fake"},ya:{readlink:()=>e.path}};return c.parent=c}};return b}},"/proc/self/fd")})();Hc=A.InternalError=class extends Error{constructor(a){super(a);this.name="InternalError"}};for(var Jd=Array(256),Kd=0;256>Kd;++Kd)Jd[Kd]=String.fromCharCode(Kd);Lc=Jd;V=A.BindingError=class extends Error{constructor(a){super(a);this.name="BindingError"}}; | ||
Object.assign(Pc.prototype,{get(a){return this.Ha[a]},has(a){return void 0!==this.Ha[a]},Va(a){var b=this.tb.pop()||this.Ha.length;this.Ha[b]=a;return b},cc(a){this.Ha[a]=void 0;this.tb.push(a)}});W.Ha.push({value:void 0},{value:null},{value:!0},{value:!1});W.xa=W.Ha.length;A.count_emval_handles=()=>{for(var a=0,b=W.xa;b<W.Ha.length;++b)void 0!==W.Ha[b]&&++a;return a}; | ||
$c=A.UnboundTypeError=((a,b)=>{var c=Uc(b,function(d){this.name=b;this.message=d;d=Error(d).stack;void 0!==d&&(this.stack=this.toString()+"\n"+d.replace(/^Error(:[^\n]*)?\n/,""))});c.prototype=Object.create(a.prototype);c.prototype.constructor=c;c.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`};return c})(Error,"UnboundTypeError"); | ||
var Ld=[jc,kc,uc,wc,yc,zc,Ac,Dd,Ed,Fd,Gd,Hd,Id],Od={L:a=>{Md(a,!sa,1,!ra,65536,!1);J.Eb()},q:a=>{F?postMessage({cmd:"cleanupThread",thread:a}):J.Bb(J.Ga[a])},F:vc,u:wc,O:yc,R:zc,S:Ac,z:a=>{var b=Bc[a];delete Bc[a];var c=b.elements,d=c.length,e=c.map(k=>k.ib).concat(c.map(k=>k.ob)),f=b.kb,g=b.lb;Ic([a],e,function(k){c.forEach((l,h)=>{var p=k[h],t=l.gb,q=l.hb,x=k[h+d],D=l.nb,O=l.pb;l.read=v=>p.fromWireType(t(q,v));l.write=(v,B)=>{var C=[];D(O,v,x.toWireType(C,B));Cc(C)}});return[{name:b.name,fromWireType:l=> | ||
{for(var h=Array(d),p=0;p<d;++p)h[p]=c[p].read(l);g(l);return h},toWireType:(l,h)=>{if(d!==h.length)throw new TypeError(`Incorrect number of tuple elements for ${b.name}: expected=${d}, actual=${h.length}`);for(var p=f(),t=0;t<d;++t)c[t].write(p,h[t]);null!==l&&l.push(g,p);return p},argPackAdvance:8,readValueFromPointer:Dc,Da:g}]})},m:a=>{var b=Jc[a];delete Jc[a];var c=b.kb,d=b.lb,e=b.rb,f=e.map(g=>g.ib).concat(e.map(g=>g.ob));Ic([a],f,g=>{var k={};e.forEach((l,h)=>{var p=g[h],t=l.gb,q=l.hb,x=g[h+ | ||
e.length],D=l.nb,O=l.pb;k[l.Mb]={read:v=>p.fromWireType(t(q,v)),write:(v,B)=>{var C=[];D(O,v,x.toWireType(C,B));Cc(C)}}});return[{name:b.name,fromWireType:l=>{var h={},p;for(p in k)h[p]=k[p].read(l);d(l);return h},toWireType:(l,h)=>{for(var p in k)if(!(p in h))throw new TypeError(`Missing field: "${p}"`);var t=c();for(p in k)k[p].write(t,h[p]);null!==l&&l.push(d,t);return t},argPackAdvance:8,readValueFromPointer:Dc,Da:d}]})},x:(a,b,c,d,e)=>{b=U(b);var f=-1!=b.indexOf("u");f&&(e=(1n<<64n)-1n);T(a, | ||
{name:b,fromWireType:g=>g,toWireType:function(g,k){if("bigint"!=typeof k&&"number"!=typeof k)throw new TypeError(`Cannot convert "${Kc(k)}" to ${this.name}`);if(k<d||k>e)throw new TypeError(`Passing a number "${Kc(k)}" from JS side to C/C++ side to an argument of type "${b}", which is outside the valid range [${d}, ${e}]!`);return k},argPackAdvance:8,readValueFromPointer:Oc(b,c,!f),Da:null})},W:(a,b,c,d)=>{b=U(b);T(a,{name:b,fromWireType:function(e){return!!e},toWireType:function(e,f){return f?c: | ||
d},argPackAdvance:8,readValueFromPointer:function(e){return this.fromWireType(w()[e])},Da:null})},V:(a,b)=>{b=U(b);T(a,{name:b,fromWireType:c=>{var d=Rc(c);Qc(c);return d},toWireType:(c,d)=>Sc(d),argPackAdvance:8,readValueFromPointer:Dc,Da:null})},w:(a,b,c)=>{b=U(b);T(a,{name:b,fromWireType:d=>d,toWireType:(d,e)=>e,argPackAdvance:8,readValueFromPointer:Tc(b,c),Da:null})},b:(a,b,c,d,e,f,g)=>{var k=Zc(b,c);a=U(a);a=dd(a);e=X(d,e);Yc(a,function(){cd(`Cannot call ${a} due to unbound types`,k)},b-1);Ic([], | ||
k,function(l){var h=[l[0],null].concat(l.slice(1));l=a;var p=a;var t=e,q=h.length;if(2>q)throw new V("argTypes array size mismatch! Must at least get return value and 'this' types!");var x=null!==h[1]&&!1,D=Vc(h),O="void"!==h[0].name;t=[Mc,t,f,Cc,h[0],h[1]];for(var v=0;v<q-2;++v)t.push(h[v+2]);if(!D)for(v=x?1:2;v<h.length;++v)null!==h[v].Da&&t.push(h[v].Da);D=Vc(h);v=h.length;var B="",C="";for(q=0;q<v-2;++q)B+=(0!==q?", ":"")+"arg"+q,C+=(0!==q?", ":"")+"arg"+q+"Wired";B=`\n return function (${B}) {\n if (arguments.length !== ${v- | ||
2}) {\n throwBindingError('function ${p} called with ' + arguments.length + ' arguments, expected ${v-2}');\n }`;D&&(B+="var destructors = [];\n");var ed=D?"destructors":"null",xb="throwBindingError invoker fn runDestructors retType classParam".split(" ");x&&(B+="var thisWired = classParam['toWireType']("+ed+", this);\n");for(q=0;q<v-2;++q)B+="var arg"+q+"Wired = argType"+q+"['toWireType']("+ed+", arg"+q+"); // "+h[q+2].name+"\n",xb.push("argType"+q);x&&(C="thisWired"+(0<C.length? | ||
", ":"")+C);B+=(O||g?"var rv = ":"")+"invoker(fn"+(0<C.length?", ":"")+C+");\n";if(D)B+="runDestructors(destructors);\n";else for(q=x?1:2;q<h.length;++q)x=1===q?"thisWired":"arg"+(q-2)+"Wired",null!==h[q].Da&&(B+=x+"_dtor("+x+"); // "+h[q].name+"\n",xb.push(x+"_dtor"));O&&(B+="var ret = retType['fromWireType'](rv);\nreturn ret;\n");let [fd,Qd]=[xb,B+"}\n"];fd.push(Qd);h=Wc(fd).apply(null,t);p=Uc(p,h);h=b-1;if(!A.hasOwnProperty(l))throw new Hc("Replacing nonexistant public symbol");void 0!==A[l].Ka&& | ||
void 0!==h?A[l].Ka[h]=p:(A[l]=p,A[l].Jb=h);return[]})},f:(a,b,c,d,e)=>{b=U(b);-1===e&&(e=4294967295);e=k=>k;if(0===d){var f=32-8*c;e=k=>k<<f>>>f}var g=b.includes("unsigned")?function(k,l){return l>>>0}:function(k,l){return l};T(a,{name:b,fromWireType:e,toWireType:g,argPackAdvance:8,readValueFromPointer:Oc(b,c,0!==d),Da:null})},c:(a,b,c)=>{function d(f){var g=z()[f>>2];f=z()[f+4>>2];return new e(m().buffer,f,g)}var e=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array, | ||
Float64Array,BigInt64Array,BigUint64Array][b];c=U(c);T(a,{name:c,fromWireType:d,argPackAdvance:8,readValueFromPointer:d},{Nb:!0})},y:(a,b)=>{b=U(b);var c="std::string"===b;T(a,{name:b,fromWireType:function(d){var e=z()[d>>2],f=d+4;if(c)for(var g=f,k=0;k<=e;++k){var l=f+k;if(k==e||0==w()[l]){var h=g;g=l-g;h=h?sb(w(),h,g):"";if(void 0===p)var p=h;else p+=String.fromCharCode(0),p+=h;g=l+1}}else{p=Array(e);for(k=0;k<e;++k)p[k]=String.fromCharCode(w()[f+k]);p=p.join("")}Y(d);return p},toWireType:function(d, | ||
e){e instanceof ArrayBuffer&&(e=new Uint8Array(e));var f="string"==typeof e;if(!(f||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array))throw new V("Cannot pass non-string to std::string");var g=c&&f?ub(e):e.length;var k=Nd(4+g+1),l=k+4;z()[k>>2]=g;if(c&&f)g+=1,vb(e,w(),l,g);else if(f)for(f=0;f<g;++f){var h=e.charCodeAt(f);if(255<h)throw Y(l),new V("String has UTF-16 code units that do not fit in 8 bits");w()[l+f]=h}else for(f=0;f<g;++f)w()[l+f]=e[f];null!==d&&d.push(Y, | ||
k);return k},argPackAdvance:8,readValueFromPointer:gd,Da(d){Y(d)}})},l:(a,b,c)=>{c=U(c);if(2===b){var d=jd;var e=kd;var f=ld;var g=()=>da();var k=1}else 4===b&&(d=md,e=nd,f=od,g=()=>z(),k=2);T(a,{name:c,fromWireType:l=>{for(var h=z()[l>>2],p=g(),t,q=l+4,x=0;x<=h;++x){var D=l+4+x*b;if(x==h||0==p[D>>k])q=d(q,D-q),void 0===t?t=q:(t+=String.fromCharCode(0),t+=q),q=D+b}Y(l);return t},toWireType:(l,h)=>{if("string"!=typeof h)throw new V(`Cannot pass non-string to C++ string type ${c}`);var p=f(h),t=Nd(4+ | ||
p+b);z()[t>>2]=p>>k;e(h,t+4,p+b);null!==l&&l.push(Y,t);return t},argPackAdvance:8,readValueFromPointer:Dc,Da(l){Y(l)}})},A:(a,b,c,d,e,f)=>{Bc[a]={name:U(b),kb:X(c,d),lb:X(e,f),elements:[]}},i:(a,b,c,d,e,f,g,k,l)=>{Bc[a].elements.push({ib:b,gb:X(c,d),hb:e,ob:f,nb:X(g,k),pb:l})},n:(a,b,c,d,e,f)=>{Jc[a]={name:U(b),kb:X(c,d),lb:X(e,f),rb:[]}},j:(a,b,c,d,e,f,g,k,l,h)=>{Jc[a].rb.push({Mb:U(b),ib:c,gb:X(d,e),hb:f,ob:g,nb:X(k,l),pb:h})},Y:(a,b)=>{b=U(b);T(a,{Sb:!0,name:b,argPackAdvance:0,fromWireType:()=> | ||
{},toWireType:()=>{}})},G:()=>1,D:(a,b)=>{a==b?setTimeout(()=>qc()):F?postMessage({targetThread:a,cmd:"checkMailbox"}):(a=J.Ga[a])&&a.postMessage({cmd:"checkMailbox"})},I:(a,b,c,d)=>{c/=2;rd.length=c;d>>=3;for(var e=0;e<c;e++)rd[e]=I[d+2*e]?I[d+2*e+1]:ka()[d+2*e+1];a=0>a?eb[-a-1]:Ld[a];J.Lb=b;b=a.apply(null,rd);J.Lb=0;return b},K:pd,U:a=>{E&&J.Ga[a].ref()},o:(a,b,c)=>{a=Rc(a);b=sd(b,"emval::as");return td(b,c,a)},s:(a,b,c,d)=>{a=ud[a];b=Rc(b);return a(null,b,c,d)},Z:(a,b,c,d,e)=>{a=ud[a];b=Rc(b); | ||
c=wd(c);return a(b,b[c],d,e)},X:Qc,k:(a,b,c)=>{b=yd(a,b);var d=b.shift();a--;var e="return function (obj, func, destructorsRef, args) {\n",f=0,g=[];0===c&&g.push("obj");for(var k=["retType"],l=[d],h=0;h<a;++h)g.push("arg"+h),k.push("argType"+h),l.push(b[h]),e+=` var arg${h} = argType${h}.readValueFromPointer(args${f?"+"+f:""});\n`,f+=b[h].argPackAdvance;e+=` var rv = ${1===c?"new func":"func.call"}(${g.join(", ")});\n`;for(h=0;h<a;++h)b[h].deleteObject&&(e+=` argType${h}.deleteObject(arg${h});\n`); | ||
d.Sb||(k.push("emval_returnValue"),l.push(td),e+=" return emval_returnValue(retType, destructorsRef, rv);\n");k.push(e+"};\n");a=Wc(k).apply(null,l);c=`methodCaller<(${b.map(p=>p.name).join(", ")}) => ${d.name}>`;return xd(Uc(c,a))},p:(a,b)=>{a=Rc(a);b=Rc(b);return Sc(a[b])},v:a=>{4<a&&(W.get(a).Ab+=1)},_:a=>Sc(wd(a)),B:a=>{var b=Rc(a);Cc(b);Qc(a)},h:(a,b)=>{a=sd(a,"_emval_take_value");a=a.readValueFromPointer(b);return Sc(a)},d:()=>{Ca("")},e:(a,b,c)=>{zd.length=0;for(var d;d=w()[b++];){var e=105!= | ||
d;e&=112!=d;c+=e&&c%8?4:0;zd.push(112==d?z()[c>>2]:106==d?I[c>>3]:105==d?y()[c>>2]:ka()[c>>3]);c+=e?8:4}return eb[a].apply(null,zd)},r:()=>{},H:()=>Date.now(),T:()=>{jb+=1;throw"unwind";},g:()=>performance.timeOrigin+performance.now(),C:a=>{var b=w().length;a>>>=0;if(a<=b||2147483648<a)return!1;for(var c=1;4>=c;c*=2){var d=b*(1+.2/c);d=Math.min(d,a+100663296);var e=Math;d=Math.max(a,d);a:{e=(e.min.call(e,2147483648,d+(65536-d%65536)%65536)-n.buffer.byteLength+65535)/65536;try{n.grow(e);u();var f= | ||
1;break a}catch(g){}f=void 0}if(f)return!0}return!1},M:Dd,N:Ed,E:lc,t:Fd,Q:Gd,J:Hd,P:Id,a:n||A.wasmMemory},Z=function(){var a={a:Od};Sa++;ab(a,function(b){var c=b.module;Z=b.instance.exports;J.Fb.push(Z.ja);sc=Z.ma;Ja.unshift(Z.$);Da=c;Va()}).catch(na);return{}}(),xc=()=>(xc=Z.aa)(),bb=A._ma_device__on_notification_unlocked=a=>(bb=A._ma_device__on_notification_unlocked=Z.ba)(a);A._ma_malloc_emscripten=(a,b)=>(A._ma_malloc_emscripten=Z.ca)(a,b); | ||
A._ma_free_emscripten=(a,b)=>(A._ma_free_emscripten=Z.da)(a,b);var cb=A._ma_device_process_pcm_frames_capture__webaudio=(a,b,c)=>(cb=A._ma_device_process_pcm_frames_capture__webaudio=Z.ea)(a,b,c),db=A._ma_device_process_pcm_frames_playback__webaudio=(a,b,c)=>(db=A._ma_device_process_pcm_frames_playback__webaudio=Z.fa)(a,b,c),Nd=a=>(Nd=Z.ga)(a),Y=a=>(Y=Z.ha)(a),pc=A._pthread_self=()=>(pc=A._pthread_self=Z.ia)();A.__emscripten_tls_init=()=>(A.__emscripten_tls_init=Z.ja)();var ad=a=>(ad=Z.ka)(a); | ||
A.__embind_initialize_bindings=()=>(A.__embind_initialize_bindings=Z.la)();var Md=A.__emscripten_thread_init=(a,b,c,d,e,f)=>(Md=A.__emscripten_thread_init=Z.na)(a,b,c,d,e,f);A.__emscripten_thread_crashed=()=>(A.__emscripten_thread_crashed=Z.oa)();var ic=(a,b,c,d)=>(ic=Z.pa)(a,b,c,d),oc=a=>(oc=Z.qa)(a),tc=A.__emscripten_thread_exit=a=>(tc=A.__emscripten_thread_exit=Z.ra)(a),qd=()=>(qd=Z.sa)(),rc=(a,b)=>(rc=Z.ta)(a,b),ec=()=>(ec=Z.ua)(),fc=a=>(fc=Z.va)(a),hc=a=>(hc=Z.wa)(a);A.wasmMemory=n; | ||
A.keepRuntimeAlive=()=>0<jb;A.ExitStatus=fb;A.PThread=J;var Pd;Ua=function Rd(){Pd||Sd();Pd||(Ua=Rd)};function Sd(){if(!(0<Sa))if(F)ma(A),La(),startWorker(A);else{for(;0<Ia.length;)Ia.shift()(A);if(!(0<Sa||Pd||(Pd=!0,A.calledRun=!0,Ea))){La();ma(A);if(A.onRuntimeInitialized)A.onRuntimeInitialized();if(!F)for(;0<Ka.length;)Ka.shift()(A)}}}Sd(); | ||
@@ -100,0 +113,0 @@ |
{ | ||
"name": "@rive-app/flutter-wasm", | ||
"version": "20.0.0", | ||
"version": "21.0.0", | ||
"description": "WASM portion of Rive's Flutter runtime.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://rive.app", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1483675
413
3
11