
var Module = (() => {
  var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined;
  
  return (
function(Module) {
  Module = Module || {};


var f;f||(f=typeof Module !== 'undefined' ? Module : {});var aa,h;f.ready=new Promise(function(a,b){aa=a;h=b});f.preRun=function(){f.inputFiles.forEach(function(a){var b=a.fileName;a=ba(a.contents);var c="/",d=b;c&&(c="string"==typeof c?c:l(c),d=b?m(c+"/"+b):c);b=ca(!0,!0);d=q(d,(void 0!==b?b:438)&4095|32768,0);if(a){if("string"==typeof a){c=Array(a.length);for(var e=0,g=a.length;e<g;++e)c[e]=a.charCodeAt(e);a=c}ea(d,b|146);c=t(d,577);fa(c,a,0,a.length,0);ha(c);ea(d,b)}})};
var ia=Object.assign({},f),ja=[],ka="./this.program",la=(a,b)=>{throw b;},v="";"undefined"!=typeof document&&document.currentScript&&(v=document.currentScript.src);_scriptDir&&(v=_scriptDir);0!==v.indexOf("blob:")?v=v.substr(0,v.replace(/[?#].*/,"").lastIndexOf("/")+1):v="";var ma=f.print||console.log.bind(console),w=f.printErr||console.warn.bind(console);Object.assign(f,ia);ia=null;f.arguments&&(ja=f.arguments);f.thisProgram&&(ka=f.thisProgram);f.quit&&(la=f.quit);var y;f.wasmBinary&&(y=f.wasmBinary);
var noExitRuntime=f.noExitRuntime||!1;"object"!=typeof WebAssembly&&z("no native wasm support detected");var na,oa=!1,pa="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;
function A(a,b){for(var c=b+NaN,d=b;a[d]&&!(d>=c);)++d;if(16<d-b&&a.buffer&&pa)return pa.decode(a.subarray(b,d));for(c="";b<d;){var e=a[b++];if(e&128){var g=a[b++]&63;if(192==(e&224))c+=String.fromCharCode((e&31)<<6|g);else{var k=a[b++]&63;e=224==(e&240)?(e&15)<<12|g<<6|k:(e&7)<<18|g<<12|k<<6|a[b++]&63;65536>e?c+=String.fromCharCode(e):(e-=65536,c+=String.fromCharCode(55296|e>>10,56320|e&1023))}}else c+=String.fromCharCode(e)}return c}function B(a){return a?A(C,a):""}
function qa(a,b,c,d){if(!(0<d))return 0;var e=c;d=c+d-1;for(var g=0;g<a.length;++g){var k=a.charCodeAt(g);if(55296<=k&&57343>=k){var n=a.charCodeAt(++g);k=65536+((k&1023)<<10)|n&1023}if(127>=k){if(c>=d)break;b[c++]=k}else{if(2047>=k){if(c+1>=d)break;b[c++]=192|k>>6}else{if(65535>=k){if(c+2>=d)break;b[c++]=224|k>>12}else{if(c+3>=d)break;b[c++]=240|k>>18;b[c++]=128|k>>12&63}b[c++]=128|k>>6&63}b[c++]=128|k&63}}b[c]=0;return c-e}
function ra(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}var sa,D,C,ta,E,F,ua=[],wa=[],xa=[],ya=[],za=[];function Aa(){var a=f.preRun.shift();ua.unshift(a)}var G=0,Ba=null,H=null;function z(a){if(f.onAbort)f.onAbort(a);a="Aborted("+a+")";w(a);oa=!0;a=new WebAssembly.RuntimeError(a+". Build with -sASSERTIONS for more info.");h(a);throw a;}function Ca(){return I.startsWith("data:application/octet-stream;base64,")}var I;
I="xmllint.wasm";if(!Ca()){var Da=I;I=f.locateFile?f.locateFile(Da,v):v+Da}function Ea(){var a=I;try{if(a==I&&y)return new Uint8Array(y);throw"both async and sync fetching of the wasm failed";}catch(b){z(b)}}function Fa(){return y||"function"!=typeof fetch?Promise.resolve().then(function(){return Ea()}):fetch(I,{credentials:"same-origin"}).then(function(a){if(!a.ok)throw"failed to load wasm binary file at '"+I+"'";return a.arrayBuffer()}).catch(function(){return Ea()})}var J,K;
function Ga(a){this.name="ExitStatus";this.message="Program terminated with exit("+a+")";this.status=a}function L(a){for(;0<a.length;)a.shift()(f)}
var Ha=(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},m=a=>{var b="/"===a.charAt(0),c="/"===a.substr(-1);(a=Ha(a.split("/").filter(d=>!!d),!b).join("/"))||b||(a=".");a&&c&&(a+="/");return(b?"/":"")+a},Ia=a=>{var b=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);a=b[0];b=b[1];if(!a&&!b)return".";b&&(b=b.substr(0,b.length-1));return a+b},Ja=a=>{if("/"===
a)return"/";a=m(a);a=a.replace(/\/$/,"");var b=a.lastIndexOf("/");return-1===b?a:a.substr(b+1)};function Ka(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var a=new Uint8Array(1);return()=>{crypto.getRandomValues(a);return a[0]}}return()=>z("randomDevice")}
function M(){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=Ha(a.split("/").filter(d=>!!d),!b).join("/");return(b?"/":"")+a||"."}function ba(a,b){var c=Array(ra(a)+1);a=qa(a,c,0,c.length);b&&(c.length=a);return c}var La=[];function Ma(a,b){La[a]={input:[],G:[],O:b};Na(a,Oa)}
var Oa={open:function(a){var b=La[a.node.R];if(!b)throw new N(43);a.F=b;a.seekable=!1},close:function(a){a.F.O.U(a.F)},U:function(a){a.F.O.U(a.F)},read:function(a,b,c,d){if(!a.F||!a.F.O.ia)throw new N(60);for(var e=0,g=0;g<d;g++){try{var k=a.F.O.ia(a.F)}catch(n){throw new N(29);}if(void 0===k&&0===e)throw new N(6);if(null===k||void 0===k)break;e++;b[c+g]=k}e&&(a.node.timestamp=Date.now());return e},write:function(a,b,c,d){if(!a.F||!a.F.O.ca)throw new N(60);try{for(var e=0;e<d;e++)a.F.O.ca(a.F,b[c+
e])}catch(g){throw new N(29);}d&&(a.node.timestamp=Date.now());return e}},Pa={ia:function(a){if(!a.input.length){var b=null;"undefined"!=typeof window&&"function"==typeof window.prompt?(b=window.prompt("Input: "),null!==b&&(b+="\n")):"function"==typeof readline&&(b=readline(),null!==b&&(b+="\n"));if(!b)return null;a.input=ba(b,!0)}return a.input.shift()},ca:function(a,b){null===b||10===b?(ma(A(a.G,0)),a.G=[]):0!=b&&a.G.push(b)},U:function(a){a.G&&0<a.G.length&&(ma(A(a.G,0)),a.G=[])}},Qa={ca:function(a,
b){null===b||10===b?(w(A(a.G,0)),a.G=[]):0!=b&&a.G.push(b)},U:function(a){a.G&&0<a.G.length&&(w(A(a.G,0)),a.G=[])}},O={K:null,L:function(){return O.createNode(null,"/",16895,0)},createNode:function(a,b,c,d){if(24576===(c&61440)||4096===(c&61440))throw new N(63);O.K||(O.K={dir:{node:{J:O.v.J,H:O.v.H,P:O.v.P,V:O.v.V,la:O.v.la,na:O.v.na,ma:O.v.ma,ka:O.v.ka,Z:O.v.Z},stream:{N:O.B.N}},file:{node:{J:O.v.J,H:O.v.H},stream:{N:O.B.N,read:O.B.read,write:O.B.write,ea:O.B.ea,W:O.B.W,Y:O.B.Y}},link:{node:{J:O.v.J,
H:O.v.H,S:O.v.S},stream:{}},fa:{node:{J:O.v.J,H:O.v.H},stream:Ra}});c=Sa(a,b,c,d);16384===(c.mode&61440)?(c.v=O.K.dir.node,c.B=O.K.dir.stream,c.C={}):32768===(c.mode&61440)?(c.v=O.K.file.node,c.B=O.K.file.stream,c.D=0,c.C=null):40960===(c.mode&61440)?(c.v=O.K.link.node,c.B=O.K.link.stream):8192===(c.mode&61440)&&(c.v=O.K.fa.node,c.B=O.K.fa.stream);c.timestamp=Date.now();a&&(a.C[b]=c,a.timestamp=c.timestamp);return c},Ea:function(a){return a.C?a.C.subarray?a.C.subarray(0,a.D):new Uint8Array(a.C):new Uint8Array(0)},
ga:function(a,b){var c=a.C?a.C.length:0;c>=b||(b=Math.max(b,c*(1048576>c?2:1.125)>>>0),0!=c&&(b=Math.max(b,256)),c=a.C,a.C=new Uint8Array(b),0<a.D&&a.C.set(c.subarray(0,a.D),0))},Ba:function(a,b){if(a.D!=b)if(0==b)a.C=null,a.D=0;else{var c=a.C;a.C=new Uint8Array(b);c&&a.C.set(c.subarray(0,Math.min(b,a.D)));a.D=b}},v:{J:function(a){var b={};b.ta=8192===(a.mode&61440)?a.id:1;b.ba=a.id;b.mode=a.mode;b.za=1;b.uid=0;b.ua=0;b.R=a.R;16384===(a.mode&61440)?b.size=4096:32768===(a.mode&61440)?b.size=a.D:40960===
(a.mode&61440)?b.size=a.link.length:b.size=0;b.pa=new Date(a.timestamp);b.xa=new Date(a.timestamp);b.sa=new Date(a.timestamp);b.qa=4096;b.ra=Math.ceil(b.size/b.qa);return b},H:function(a,b){void 0!==b.mode&&(a.mode=b.mode);void 0!==b.timestamp&&(a.timestamp=b.timestamp);void 0!==b.size&&O.Ba(a,b.size)},P:function(){throw Ta[44];},V:function(a,b,c,d){return O.createNode(a,b,c,d)},la:function(a,b,c){if(16384===(a.mode&61440)){try{var d=P(b,c)}catch(g){}if(d)for(var e in d.C)throw new N(55);}delete a.parent.C[a.name];
a.parent.timestamp=Date.now();a.name=c;b.C[c]=a;b.timestamp=a.parent.timestamp;a.parent=b},na:function(a,b){delete a.C[b];a.timestamp=Date.now()},ma:function(a,b){var c=P(a,b),d;for(d in c.C)throw new N(55);delete a.C[b];a.timestamp=Date.now()},ka:function(a){var b=[".",".."],c;for(c in a.C)a.C.hasOwnProperty(c)&&b.push(c);return b},Z:function(a,b,c){a=O.createNode(a,b,41471,0);a.link=c;return a},S:function(a){if(40960!==(a.mode&61440))throw new N(28);return a.link}},B:{read:function(a,b,c,d,e){var g=
a.node.C;if(e>=a.node.D)return 0;a=Math.min(a.node.D-e,d);if(8<a&&g.subarray)b.set(g.subarray(e,e+a),c);else for(d=0;d<a;d++)b[c+d]=g[e+d];return a},write:function(a,b,c,d,e,g){if(!d)return 0;a=a.node;a.timestamp=Date.now();if(b.subarray&&(!a.C||a.C.subarray)){if(g)return a.C=b.subarray(c,c+d),a.D=d;if(0===a.D&&0===e)return a.C=b.slice(c,c+d),a.D=d;if(e+d<=a.D)return a.C.set(b.subarray(c,c+d),e),d}O.ga(a,e+d);if(a.C.subarray&&b.subarray)a.C.set(b.subarray(c,c+d),e);else for(g=0;g<d;g++)a.C[e+g]=b[c+
g];a.D=Math.max(a.D,e+d);return d},N:function(a,b,c){1===c?b+=a.position:2===c&&32768===(a.node.mode&61440)&&(b+=a.node.D);if(0>b)throw new N(28);return b},ea:function(a,b,c){O.ga(a.node,b+c);a.node.D=Math.max(a.node.D,b+c)},W:function(a,b,c,d,e){if(32768!==(a.node.mode&61440))throw new N(43);a=a.node.C;if(e&2||a.buffer!==sa){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;b=65536*Math.ceil(b/65536);(e=Ua(65536,b))?(C.fill(0,e,e+b),b=e):b=0;if(!b)throw new N(48);
D.set(a,b)}else c=!1,b=a.byteOffset;return{Aa:b,oa:c}},Y:function(a,b,c,d){O.B.write(a,b,0,d,c,!1);return 0}}},Va=null,Wa={},Q=[],Xa=1,R=null,Ya=!0,N=null,Ta={},S=(a,b={})=>{a=M(a);if(!a)return{path:"",node:null};b=Object.assign({ha:!0,da:0},b);if(8<b.da)throw new N(32);a=a.split("/").filter(k=>!!k);for(var c=Va,d="/",e=0;e<a.length;e++){var g=e===a.length-1;if(g&&b.parent)break;c=P(c,a[e]);d=m(d+"/"+a[e]);c.X&&(!g||g&&b.ha)&&(c=c.X.root);if(!g||b.T)for(g=0;40960===(c.mode&61440);)if(c=Za(d),d=M(Ia(d),
c),c=S(d,{da:b.da+1}).node,40<g++)throw new N(32);}return{path:d,node:c}},l=a=>{for(var b;;){if(a===a.parent)return a=a.L.ja,b?"/"!==a[a.length-1]?a+"/"+b:a+b:a;b=b?a.name+"/"+b:a.name;a=a.parent}},$a=(a,b)=>{for(var c=0,d=0;d<b.length;d++)c=(c<<5)-c+b.charCodeAt(d)|0;return(a+c>>>0)%R.length},P=(a,b)=>{var c;if(c=(c=ab(a,"x"))?c:a.v.P?0:2)throw new N(c,a);for(c=R[$a(a.id,b)];c;c=c.ya){var d=c.name;if(c.parent.id===a.id&&d===b)return c}return a.v.P(a,b)},Sa=(a,b,c,d)=>{a=new bb(a,b,c,d);b=$a(a.parent.id,
a.name);a.ya=R[b];return R[b]=a},cb={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},db=a=>{var b=["r","w","rw"][a&3];a&512&&(b+="w");return b},ab=(a,b)=>{if(Ya)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},eb=(a,b)=>{try{return P(a,b),20}catch(c){}return ab(a,"wx")},fb=(a=0)=>{for(;4096>=a;a++)if(!Q[a])return a;throw new N(33);},gb=(a,b)=>{U||(U=function(){this.$={}},U.prototype={},Object.defineProperties(U.prototype,
{object:{get:function(){return this.node},set:function(c){this.node=c}},flags:{get:function(){return this.$.flags},set:function(c){this.$.flags=c}},position:{get:function(){return this.$.position},set:function(c){this.$.position=c}}}));a=Object.assign(new U,a);b=fb(b);a.M=b;return Q[b]=a},Ra={open:a=>{a.B=Wa[a.node.R].B;a.B.open&&a.B.open(a)},N:()=>{throw new N(70);}},Na=(a,b)=>{Wa[a]={B:b}},hb=(a,b)=>{var c="/"===b,d=!b;if(c&&Va)throw new N(10);if(!c&&!d){var e=S(b,{ha:!1});b=e.path;e=e.node;if(e.X)throw new N(10);
if(16384!==(e.mode&61440))throw new N(54);}b={type:a,Fa:{},ja:b,wa:[]};a=a.L(b);a.L=b;b.root=a;c?Va=a:e&&(e.X=b,e.L&&e.L.wa.push(b))},q=(a,b,c)=>{var d=S(a,{parent:!0}).node;a=Ja(a);if(!a||"."===a||".."===a)throw new N(28);var e=eb(d,a);if(e)throw new N(e);if(!d.v.V)throw new N(63);return d.v.V(d,a,b,c)},ib=(a,b,c)=>{"undefined"==typeof c&&(c=b,b=438);q(a,b|8192,c)},jb=(a,b)=>{if(!M(a))throw new N(44);var c=S(b,{parent:!0}).node;if(!c)throw new N(44);b=Ja(b);var d=eb(c,b);if(d)throw new N(d);if(!c.v.Z)throw new N(63);
c.v.Z(c,b,a)},Za=a=>{a=S(a).node;if(!a)throw new N(44);if(!a.v.S)throw new N(28);return M(l(a.parent),a.v.S(a))},ea=(a,b)=>{a="string"==typeof a?S(a,{T:!0}).node:a;if(!a.v.H)throw new N(63);a.v.H(a,{mode:b&4095|a.mode&-4096,timestamp:Date.now()})},t=(a,b,c)=>{if(""===a)throw new N(44);if("string"==typeof b){var d=cb[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=m(a);try{e=S(a,{T:!(b&
131072)}).node}catch(g){}}d=!1;if(b&64)if(e){if(b&128)throw new N(20);}else e=q(a,c,0),d=!0;if(!e)throw new N(44);8192===(e.mode&61440)&&(b&=-513);if(b&65536&&16384!==(e.mode&61440))throw new N(54);if(!d&&(c=e?40960===(e.mode&61440)?32:16384===(e.mode&61440)&&("r"!==db(b)||b&512)?31:ab(e,db(b)):44))throw new N(c);if(b&512&&!d){c=e;c="string"==typeof c?S(c,{T:!0}).node:c;if(!c.v.H)throw new N(63);if(16384===(c.mode&61440))throw new N(31);if(32768!==(c.mode&61440))throw new N(28);if(d=ab(c,"w"))throw new N(d);
c.v.H(c,{size:0,timestamp:Date.now()})}b&=-131713;e=gb({node:e,path:l(e),flags:b,seekable:!0,position:0,B:e.B,Da:[],error:!1});e.B.open&&e.B.open(e);!f.logReadFiles||b&1||(nb||(nb={}),a in nb||(nb[a]=1));return e},ha=a=>{if(null===a.M)throw new N(8);a.aa&&(a.aa=null);try{a.B.close&&a.B.close(a)}catch(b){throw b;}finally{Q[a.M]=null}a.M=null},ob=(a,b,c)=>{if(null===a.M)throw new N(8);if(!a.seekable||!a.B.N)throw new N(70);if(0!=c&&1!=c&&2!=c)throw new N(28);a.position=a.B.N(a,b,c);a.Da=[]},fa=(a,b,
c,d,e)=>{if(0>d||0>e)throw new N(28);if(null===a.M)throw new N(8);if(0===(a.flags&2097155))throw new N(8);if(16384===(a.node.mode&61440))throw new N(31);if(!a.B.write)throw new N(28);a.seekable&&a.flags&1024&&ob(a,0,2);var g="undefined"!=typeof e;if(!g)e=a.position;else if(!a.seekable)throw new N(70);b=a.B.write(a,b,c,d,e,void 0);g||(a.position+=b);return b},pb=()=>{N||(N=function(a,b){this.node=b;this.Ca=function(c){this.I=c};this.Ca(a);this.message="FS error"},N.prototype=Error(),N.prototype.constructor=
N,[44].forEach(a=>{Ta[a]=new N(a);Ta[a].stack="<generic error, no stack>"}))},qb,ca=(a,b)=>{var c=0;a&&(c|=365);b&&(c|=146);return c},V=(a,b,c)=>{a=m("/dev/"+a);var d=ca(!!b,!!c);rb||(rb=64);var e=rb++<<8|0;Na(e,{open:g=>{g.seekable=!1},close:()=>{c&&c.buffer&&c.buffer.length&&c(10)},read:(g,k,n,r)=>{for(var p=0,u=0;u<r;u++){try{var x=b()}catch(T){throw new N(29);}if(void 0===x&&0===p)throw new N(6);if(null===x||void 0===x)break;p++;k[n+u]=x}p&&(g.node.timestamp=Date.now());return p},write:(g,k,n,
r)=>{for(var p=0;p<r;p++)try{c(k[n+p])}catch(u){throw new N(29);}r&&(g.node.timestamp=Date.now());return p}});ib(a,d,e)},rb,W={},U,nb,X=void 0;function Y(){X+=4;return E[X-4>>2]}function Z(a){a=Q[a];if(!a)throw new N(8);return a}var sb={};
function tb(){if(!ub){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",_:ka||"./this.program"},b;for(b in sb)void 0===sb[b]?delete a[b]:a[b]=sb[b];var c=[];for(b in a)c.push(b+"="+a[b]);ub=c}return ub}var ub;
function vb(a){if(!noExitRuntime){wb();L(ya);qb=!1;xb(0);for(var b=0;b<Q.length;b++){var c=Q[b];c&&ha(c)}}if(!noExitRuntime){if(f.onExit)f.onExit(a);oa=!0}la(a,new Ga(a))}function bb(a,b,c,d){a||(a=this);this.parent=a;this.L=a.L;this.X=null;this.id=Xa++;this.name=b;this.mode=c;this.v={};this.B={};this.R=d}
Object.defineProperties(bb.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}}});pb();R=Array(4096);hb(O,"/");q("/tmp",16895,0);q("/home",16895,0);q("/home/web_user",16895,0);
(()=>{q("/dev",16895,0);Na(259,{read:()=>0,write:(b,c,d,e)=>e});ib("/dev/null",259);Ma(1280,Pa);Ma(1536,Qa);ib("/dev/tty",1280);ib("/dev/tty1",1536);var a=Ka();V("random",a);V("urandom",a);q("/dev/shm",16895,0);q("/dev/shm/tmp",16895,0)})();(()=>{q("/proc",16895,0);var a=q("/proc/self",16895,0);q("/proc/self/fd",16895,0);hb({L:()=>{var b=Sa(a,"fd",16895,73);b.v={P:(c,d)=>{var e=Q[+d];if(!e)throw new N(8);c={parent:null,L:{ja:"fake"},v:{S:()=>e.path}};return c.parent=c}};return b}},"/proc/self/fd")})();
var zb={g:function(a,b,c,d){z("Assertion failed: "+B(a)+", at: "+[b?B(b):"unknown filename",c,d?B(d):"unknown function"])},d:function(a,b,c){X=c;try{var d=Z(a);switch(b){case 0:var e=Y();return 0>e?-28:gb(d,e).M;case 1:case 2:return 0;case 3:return d.flags;case 4:return e=Y(),d.flags|=e,0;case 5:return e=Y(),ta[e+0>>1]=2,0;case 6:case 7:return 0;case 16:case 8:return-28;case 9:return E[yb()>>2]=28,-1;default:return-28}}catch(g){if("undefined"==typeof W||!(g instanceof N))throw g;return-g.I}},r:function(a,
b){try{if(0===b)return-28;var c=ra("/")+1;if(b<c)return-68;qa("/",C,a,b);return c}catch(d){if("undefined"==typeof W||!(d instanceof N))throw d;return-d.I}},i:function(a,b,c){X=c;try{var d=Z(a);switch(b){case 21509:case 21505:return d.F?0:-59;case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:return d.F?0:-59;case 21519:if(!d.F)return-59;var e=Y();return E[e>>2]=0;case 21520:return d.F?-28:-59;case 21531:a=e=Y();if(!d.B.va)throw new N(59);return d.B.va(d,b,a);case 21523:return d.F?0:
-59;case 21524:return d.F?0:-59;default:return-28}}catch(g){if("undefined"==typeof W||!(g instanceof N))throw g;return-g.I}},e:function(a,b,c,d){X=d;try{b=B(b);var e=b;if("/"===e.charAt(0))b=e;else{var g=-100===a?"/":Z(a).path;if(0==e.length)throw new N(44);b=m(g+"/"+e)}var k=d?Y():0;return t(b,c,k).M}catch(n){if("undefined"==typeof W||!(n instanceof N))throw n;return-n.I}},m:function(a,b){try{a=B(a);a:{try{var c=S(a,{T:!0}).node;if(!c)throw new N(44);if(!c.v.J)throw new N(63);var d=c.v.J(c)}catch(r){if(r&&
r.node&&m(a)!==m(l(r.node))){var e=-54;break a}throw r;}E[b>>2]=d.ta;E[b+8>>2]=d.ba;E[b+12>>2]=d.mode;F[b+16>>2]=d.za;E[b+20>>2]=d.uid;E[b+24>>2]=d.ua;E[b+28>>2]=d.R;K=[d.size>>>0,(J=d.size,1<=+Math.abs(J)?0<J?(Math.min(+Math.floor(J/4294967296),4294967295)|0)>>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)];E[b+40>>2]=K[0];E[b+44>>2]=K[1];E[b+48>>2]=4096;E[b+52>>2]=d.ra;var g=d.pa.getTime(),k=d.xa.getTime(),n=d.sa.getTime();K=[Math.floor(g/1E3)>>>0,(J=Math.floor(g/1E3),1<=+Math.abs(J)?0<J?(Math.min(+Math.floor(J/
4294967296),4294967295)|0)>>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)];E[b+56>>2]=K[0];E[b+60>>2]=K[1];F[b+64>>2]=g%1E3*1E3;K=[Math.floor(k/1E3)>>>0,(J=Math.floor(k/1E3),1<=+Math.abs(J)?0<J?(Math.min(+Math.floor(J/4294967296),4294967295)|0)>>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)];E[b+72>>2]=K[0];E[b+76>>2]=K[1];F[b+80>>2]=k%1E3*1E3;K=[Math.floor(n/1E3)>>>0,(J=Math.floor(n/1E3),1<=+Math.abs(J)?0<J?(Math.min(+Math.floor(J/4294967296),4294967295)|0)>>>0:~~+Math.ceil((J-+(~~J>>>0))/
4294967296)>>>0:0)];E[b+88>>2]=K[0];E[b+92>>2]=K[1];F[b+96>>2]=n%1E3*1E3;K=[d.ba>>>0,(J=d.ba,1<=+Math.abs(J)?0<J?(Math.min(+Math.floor(J/4294967296),4294967295)|0)>>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)];E[b+104>>2]=K[0];E[b+108>>2]=K[1];e=0}return e}catch(r){if("undefined"==typeof W||!(r instanceof N))throw r;return-r.I}},n:function(a,b,c,d,e,g,k){try{var n=Z(d);if(0!==(b&2)&&0===(c&2)&&2!==(n.flags&2097155))throw new N(2);if(1===(n.flags&2097155))throw new N(2);if(!n.B.W)throw new N(43);
var r=n.B.W(n,a,e,b,c);var p=r.Aa;E[g>>2]=r.oa;F[k>>2]=p;return 0}catch(u){if("undefined"==typeof W||!(u instanceof N))throw u;return-u.I}},o:function(a,b,c,d,e,g){try{var k=Z(e);if(c&2){if(32768!==(k.node.mode&61440))throw new N(43);d&2||k.B.Y&&k.B.Y(k,C.slice(a,a+b),g,b,d)}}catch(n){if("undefined"==typeof W||!(n instanceof N))throw n;return-n.I}},f:function(){return Date.now()},j:function(a,b,c){C.copyWithin(a,b,b+c)},l:function(){z("OOM")},p:function(a,b){var c=0;tb().forEach(function(d,e){var g=
b+c;e=F[a+4*e>>2]=g;for(g=0;g<d.length;++g)D[e++>>0]=d.charCodeAt(g);D[e>>0]=0;c+=d.length+1});return 0},q:function(a,b){var c=tb();F[a>>2]=c.length;var d=0;c.forEach(function(e){d+=e.length+1});F[b>>2]=d;return 0},h:vb,b:function(a){try{var b=Z(a);ha(b);return 0}catch(c){if("undefined"==typeof W||!(c instanceof N))throw c;return c.I}},c:function(a,b,c,d){try{a:{var e=Z(a);a=b;for(var g,k=b=0;k<c;k++){var n=F[a>>2],r=F[a+4>>2];a+=8;var p=e,u=n,x=r,T=g,Db=D;if(0>x||0>T)throw new N(28);if(null===p.M)throw new N(8);
if(1===(p.flags&2097155))throw new N(8);if(16384===(p.node.mode&61440))throw new N(31);if(!p.B.read)throw new N(28);var kb="undefined"!=typeof T;if(!kb)T=p.position;else if(!p.seekable)throw new N(70);var lb=p.B.read(p,Db,u,x,T);kb||(p.position+=lb);var da=lb;if(0>da){var mb=-1;break a}b+=da;if(da<r)break;"undefined"!==typeof g&&(g+=da)}mb=b}F[d>>2]=mb;return 0}catch(va){if("undefined"==typeof W||!(va instanceof N))throw va;return va.I}},k:function(a,b,c,d,e){try{b=c+2097152>>>0<4194305-!!b?(b>>>
0)+4294967296*c:NaN;if(isNaN(b))return 61;var g=Z(a);ob(g,b,d);K=[g.position>>>0,(J=g.position,1<=+Math.abs(J)?0<J?(Math.min(+Math.floor(J/4294967296),4294967295)|0)>>>0:~~+Math.ceil((J-+(~~J>>>0))/4294967296)>>>0:0)];E[e>>2]=K[0];E[e+4>>2]=K[1];g.aa&&0===b&&0===d&&(g.aa=null);return 0}catch(k){if("undefined"==typeof W||!(k instanceof N))throw k;return k.I}},a:function(a,b,c,d){try{a:{var e=Z(a);a=b;for(var g,k=b=0;k<c;k++){var n=F[a>>2],r=F[a+4>>2];a+=8;var p=fa(e,D,n,r,g);if(0>p){var u=-1;break a}b+=
p;"undefined"!==typeof g&&(g+=p)}u=b}F[d>>2]=u;return 0}catch(x){if("undefined"==typeof W||!(x instanceof N))throw x;return x.I}}};
(function(){function a(e){f.asm=e.exports;na=f.asm.s;sa=e=na.buffer;f.HEAP8=D=new Int8Array(e);f.HEAP16=ta=new Int16Array(e);f.HEAP32=E=new Int32Array(e);f.HEAPU8=C=new Uint8Array(e);f.HEAPU16=new Uint16Array(e);f.HEAPU32=F=new Uint32Array(e);f.HEAPF32=new Float32Array(e);f.HEAPF64=new Float64Array(e);wa.unshift(f.asm.t);G--;f.monitorRunDependencies&&f.monitorRunDependencies(G);0==G&&(null!==Ba&&(clearInterval(Ba),Ba=null),H&&(e=H,H=null,e()))}function b(e){a(e.instance)}function c(e){return Fa().then(function(g){return WebAssembly.instantiate(g,
d)}).then(function(g){return g}).then(e,function(g){w("failed to asynchronously prepare wasm: "+g);z(g)})}var d={a:zb};G++;f.monitorRunDependencies&&f.monitorRunDependencies(G);if(f.instantiateWasm)try{return f.instantiateWasm(d,a)}catch(e){w("Module.instantiateWasm callback failed with error: "+e),h(e)}(function(){return y||"function"!=typeof WebAssembly.instantiateStreaming||Ca()||"function"!=typeof fetch?c(b):fetch(I,{credentials:"same-origin"}).then(function(e){return WebAssembly.instantiateStreaming(e,
d).then(b,function(g){w("wasm streaming compile failed: "+g);w("falling back to ArrayBuffer instantiation");return c(b)})})})().catch(h);return{}})();f.___wasm_call_ctors=function(){return(f.___wasm_call_ctors=f.asm.t).apply(null,arguments)};f._main=function(){return(f._main=f.asm.u).apply(null,arguments)};
var yb=f.___errno_location=function(){return(yb=f.___errno_location=f.asm.w).apply(null,arguments)},xb=f._fflush=function(){return(xb=f._fflush=f.asm.x).apply(null,arguments)},wb=f.___funcs_on_exit=function(){return(wb=f.___funcs_on_exit=f.asm.y).apply(null,arguments)},Ua=f._emscripten_builtin_memalign=function(){return(Ua=f._emscripten_builtin_memalign=f.asm.z).apply(null,arguments)},Ab=f.stackAlloc=function(){return(Ab=f.stackAlloc=f.asm.A).apply(null,arguments)},Bb;
H=function Cb(){Bb||Eb();Bb||(H=Cb)};function Fb(a){var b=f._main;a=a||[];a.unshift(ka);var c=a.length,d=Ab(4*(c+1)),e=d>>2;a.forEach(k=>{var n=E,r=e++,p=ra(k)+1,u=Ab(p);qa(k,D,u,p);n[r]=u});E[e]=0;try{var g=b(c,d);vb(g,!0)}catch(k){k instanceof Ga||"unwind"==k||la(1,k)}}
function Eb(){function a(){if(!Bb&&(Bb=!0,f.calledRun=!0,!oa)){f.noFSInit||qb||(qb=!0,pb(),f.stdin=f.stdin,f.stdout=f.stdout,f.stderr=f.stderr,f.stdin?V("stdin",f.stdin):jb("/dev/tty","/dev/stdin"),f.stdout?V("stdout",null,f.stdout):jb("/dev/tty","/dev/stdout"),f.stderr?V("stderr",null,f.stderr):jb("/dev/tty1","/dev/stderr"),t("/dev/stdin",0),t("/dev/stdout",1),t("/dev/stderr",1));Ya=!1;L(wa);L(xa);aa(f);if(f.onRuntimeInitialized)f.onRuntimeInitialized();Gb&&Fb(b);if(f.postRun)for("function"==typeof f.postRun&&
(f.postRun=[f.postRun]);f.postRun.length;){var c=f.postRun.shift();za.unshift(c)}L(za)}}var b=b||ja;if(!(0<G)){if(f.preRun)for("function"==typeof f.preRun&&(f.preRun=[f.preRun]);f.preRun.length;)Aa();L(ua);0<G||(f.setStatus?(f.setStatus("Running..."),setTimeout(function(){setTimeout(function(){f.setStatus("")},1);a()},1)):a())}}if(f.preInit)for("function"==typeof f.preInit&&(f.preInit=[f.preInit]);0<f.preInit.length;)f.preInit.pop()();var Gb=!0;f.noInitialRun&&(Gb=!1);Eb();


  return Module.ready
}
);
})();
if (typeof exports === 'object' && typeof module === 'object')
  module.exports = Module;
else if (typeof define === 'function' && define['amd'])
  define([], function() { return Module; });
else if (typeof exports === 'object')
  exports["Module"] = Module;
;(function initWorker() {

	function bytesToUtf8(buffer) {
		return new TextDecoder().decode(Uint8Array.from(buffer));
	}

	const stdoutBuffer = [];
	const stderrBuffer = [];

	function onExit(exitCode) {
		const message = {
			exitCode,
			stdout: bytesToUtf8(stdoutBuffer),
			stderr: bytesToUtf8(stderrBuffer),
		};
		postMessage(message);
	};
	function onWorkerMessage(event) {
		var data = event.data;

		Module({
			inputFiles: data.inputFiles,
			arguments: data.args,
			stderr: stderrBuffer.push.bind(stderrBuffer),
			stdout: stdoutBuffer.push.bind(stdoutBuffer),
			onExit,
			locateFile(path) {
				if (path !== 'xmllint.wasm') {
					return path;
				}
				// Fix wasm file path to be relative to the worker file path.
				// This also makes bundlers automatically pick up the wasm file.
				return new URL('./xmllint.wasm', import.meta.url).href;
			}
		});
	}


	addEventListener('message', onWorkerMessage);
})();
