var TesseractCore=(()=>{var _scriptName=typeof document!="undefined"?document.currentScript?.src:undefined;return async function(moduleArg={}){var moduleRtn;var e=moduleArg,aa="object"==typeof window,ba="undefined"!=typeof WorkerGlobalScope,ca="object"==typeof process&&process.versions?.node&&"renderer"!=process.type,da="./this.program",ea=(a,b)=>{throw b;};"undefined"!=typeof __filename?_scriptName=__filename:ba&&(_scriptName=self.location.href);var fa="",ha,ia; if(ca){var fs=require("fs");fa=__dirname+"/";ia=a=>{a=ja(a)?new URL(a):a;return fs.readFileSync(a)};ha=async a=>{a=ja(a)?new URL(a):a;return fs.readFileSync(a,void 0)};1{process.exitCode=a;throw b;}}else if(aa||ba){try{fa=(new URL(".",_scriptName)).href}catch{}ba&&(ia=a=>{var b=new XMLHttpRequest;b.open("GET",a,!1);b.responseType="arraybuffer";b.send(null);return new Uint8Array(b.response)});ha=async a=> {if(ja(a))return new Promise((c,d)=>{var f=new XMLHttpRequest;f.open("GET",a,!0);f.responseType="arraybuffer";f.onload=()=>{200==f.status||0==f.status&&f.response?c(f.response):d(f.status)};f.onerror=d;f.send(null)});var b=await fetch(a,{credentials:"same-origin"});if(b.ok)return b.arrayBuffer();throw Error(b.status+" : "+b.url);}}var ka=console.log.bind(console),la=console.error.bind(console),ma,na=!1,ja=a=>a.startsWith("file://"),oa,pa,qa,g,l,ra,n,p,sa,ta,ua,va=!1; function wa(){var a=qa.buffer;g=new Int8Array(a);ra=new Int16Array(a);l=new Uint8Array(a);new Uint16Array(a);n=new Int32Array(a);p=new Uint32Array(a);sa=new Float32Array(a);ta=new Float64Array(a);ua=new BigInt64Array(a);new BigUint64Array(a)}function r(a){e.onAbort?.(a);a="Aborted("+a+")";la(a);na=!0;a=new WebAssembly.RuntimeError(a+". Build with -sASSERTIONS for more info.");pa?.(a);throw a;}var xa; async function ya(a){if(!ma)try{var b=await ha(a);return new Uint8Array(b)}catch{}if(a==xa&&ma)a=new Uint8Array(ma);else if(ia)a=ia(a);else throw"both async and sync fetching of the wasm failed";return a}async function za(a,b){try{var c=await ya(a);return await WebAssembly.instantiate(c,b)}catch(d){la(`failed to asynchronously prepare wasm: ${d}`),r(d)}} async function Aa(a){var b=xa;if(!ma&&!ja(b)&&!ca)try{var c=fetch(b,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(c,a)}catch(d){la(`wasm streaming compile failed: ${d}`),la("falling back to ArrayBuffer instantiation")}return za(b,a)}class Ba{name="ExitStatus";constructor(a){this.message=`Program terminated with exit(${a})`;this.status=a}}var Ca=a=>{for(;0{var a=e.preRun.shift();Ea.push(a)}; function Ga(a,b="i8"){b.endsWith("*")&&(b="*");switch(b){case "i1":return g[a];case "i8":return g[a];case "i16":return ra[a>>1];case "i32":return n[a>>2];case "i64":return ua[a>>3];case "float":return sa[a>>2];case "double":return ta[a>>3];case "*":return p[a>>2];default:r(`invalid type for getValue: ${b}`)}}var Ha=!0; function Ia(a,b,c="i8"){c.endsWith("*")&&(c="*");switch(c){case "i1":g[a]=b;break;case "i8":g[a]=b;break;case "i16":ra[a>>1]=b;break;case "i32":n[a>>2]=b;break;case "i64":ua[a>>3]=BigInt(b);break;case "float":sa[a>>2]=b;break;case "double":ta[a>>3]=b;break;case "*":p[a>>2]=b;break;default:r(`invalid type for setValue: ${c}`)}} var Ja="undefined"!=typeof TextDecoder?new TextDecoder:void 0,v=(a,b=0)=>{var c=b;for(var d=c+void 0;a[c]&&!(c>=d);)++c;if(16f?d+=String.fromCharCode(f):(f-=65536,d+=String.fromCharCode(55296|f>>10,56320|f&1023))}}else d+=String.fromCharCode(f)}return d}, w=a=>a?v(l,a):"";class Ka{constructor(a){this.Df=a-24}hg(a,b){p[this.Df+16>>2]=0;p[this.Df+4>>2]=a;p[this.Df+8>>2]=b}} var La=0,Ma=0,Qa=()=>{var a=n[+Pa>>2];Pa+=4;return a},Ra=(a,b)=>{for(var c=0,d=a.length-1;0<=d;d--){var f=a[d];"."===f?a.splice(d,1):".."===f?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c;c--)a.unshift("..");return a},Sa=a=>{var b="/"===a.charAt(0),c="/"===a.slice(-1);(a=Ra(a.split("/").filter(d=>!!d),!b).join("/"))||b||(a=".");a&&c&&(a+="/");return(b?"/":"")+a},Ta=a=>{var b=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);a=b[0];b=b[1];if(!a&&!b)return"."; b&&=b.slice(0,-1);return a+b},Ua=a=>a&&a.match(/([^\/]+|\/)\/*$/)[1],Va=(a,b)=>Sa(a+"/"+b),Wa=()=>{if(ca){var a=require("crypto");return b=>a.randomFillSync(b)}return b=>crypto.getRandomValues(b)},Ya=a=>{(Ya=Wa())(a)},Za=(...a)=>{for(var b="",c=!1,d=a.length-1;-1<=d&&!c;d--){c=0<=d?a[d]:x.cwd();if("string"!=typeof c)throw new TypeError("Arguments to path.resolve must be strings");if(!c)return"";b=c+"/"+b;c="/"===c.charAt(0)}b=Ra(b.split("/").filter(f=>!!f),!c).join("/");return(c?"/":"")+b||"."},$a= (a,b)=>{function c(k){for(var m=0;mu?[]:k.slice(m,u-m+1)}a=Za(a).slice(1);b=Za(b).slice(1);a=c(a.split("/"));b=c(b.split("/"));for(var d=Math.min(a.length,b.length),f=d,h=0;h{for(var b=0,c=0;c=d?b++:2047>=d?b+=2:55296<=d&&57343>=d?(b+=4,++c):b+=3}return b}, cb=(a,b,c,d)=>{if(!(0=k){if(c>=d)break;b[c++]=k}else if(2047>=k){if(c+1>=d)break;b[c++]=192|k>>6;b[c++]=128|k&63}else if(65535>=k){if(c+2>=d)break;b[c++]=224|k>>12;b[c++]=128|k>>6&63;b[c++]=128|k&63}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;h++}}b[c]=0;return c-f},db=(a,b)=>{var c=Array(bb(a)+1);a=cb(a,c,0,c.length);b&&(c.length=a);return c},eb=[]; function fb(a,b){eb[a]={input:[],output:[],Xf:b};gb(a,hb)} var hb={open(a){var b=eb[a.node.rdev];if(!b)throw new x.Ef(43);a.tty=b;a.seekable=!1},close(a){a.tty.Xf.fsync(a.tty)},fsync(a){a.tty.Xf.fsync(a.tty)},read(a,b,c,d){if(!a.tty||!a.tty.Xf.Fg)throw new x.Ef(60);for(var f=0,h=0;h{a=65536*Math.ceil(a/65536);var b=kb(65536,a);b&&l.fill(0,b,b+a);return b}, y={Tf:null,Kf(){return y.createNode(null,"/",16895,0)},createNode(a,b,c,d){if(24576===(c&61440)||x.isFIFO(c))throw new x.Ef(63);y.Tf||(y.Tf={dir:{node:{Pf:y.Ff.Pf,Rf:y.Ff.Rf,lookup:y.Ff.lookup,Wf:y.Ff.Wf,rename:y.Ff.rename,unlink:y.Ff.unlink,rmdir:y.Ff.rmdir,readdir:y.Ff.readdir,symlink:y.Ff.symlink},stream:{Nf:y.Gf.Nf}},file:{node:{Pf:y.Ff.Pf,Rf:y.Ff.Rf},stream:{Nf:y.Gf.Nf,read:y.Gf.read,write:y.Gf.write,bg:y.Gf.bg,eg:y.Gf.eg}},link:{node:{Pf:y.Ff.Pf,Rf:y.Ff.Rf,readlink:y.Ff.readlink},stream:{}}, Bg:{node:{Pf:y.Ff.Pf,Rf:y.Ff.Rf},stream:x.Pg}});c=x.createNode(a,b,c,d);z(c.mode)?(c.Ff=y.Tf.dir.node,c.Gf=y.Tf.dir.stream,c.Hf={}):x.isFile(c.mode)?(c.Ff=y.Tf.file.node,c.Gf=y.Tf.file.stream,c.Mf=0,c.Hf=null):40960===(c.mode&61440)?(c.Ff=y.Tf.link.node,c.Gf=y.Tf.link.stream):8192===(c.mode&61440)&&(c.Ff=y.Tf.Bg.node,c.Gf=y.Tf.Bg.stream);c.atime=c.mtime=c.ctime=Date.now();a&&(a.Hf[b]=c,a.atime=a.mtime=a.ctime=c.atime);return c},Nh(a){return a.Hf?a.Hf.subarray?a.Hf.subarray(0,a.Mf):new Uint8Array(a.Hf): new Uint8Array(0)},Ff:{Pf(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;z(a.mode)?b.size=4096:x.isFile(a.mode)?b.size=a.Mf:40960===(a.mode&61440)?b.size=a.link.length:b.size=0;b.atime=new Date(a.atime);b.mtime=new Date(a.mtime);b.ctime=new Date(a.ctime);b.blksize=4096;b.blocks=Math.ceil(b.size/b.blksize);return b},Rf(a,b){for(var c of["mode","atime","mtime","ctime"])null!=b[c]&&(a[c]=b[c]);void 0!==b.size&&(b=b.size,a.Mf!=b&&(0==b? (a.Hf=null,a.Mf=0):(c=a.Hf,a.Hf=new Uint8Array(b),c&&a.Hf.set(c.subarray(0,Math.min(b,a.Mf))),a.Mf=b)))},lookup(){y.lg||(y.lg=new x.Ef(44),y.lg.stack="");throw y.lg;},Wf(a,b,c,d){return y.createNode(a,b,c,d)},rename(a,b,c){try{var d=mb(b,c)}catch(h){}if(d){if(z(a.mode))for(var f in d.Hf)throw new x.Ef(55);nb(d)}delete a.parent.Hf[a.name];b.Hf[c]=a;a.name=c;b.ctime=b.mtime=a.parent.ctime=a.parent.mtime=Date.now()},unlink(a,b){delete a.Hf[b];a.ctime=a.mtime=Date.now()},rmdir(a, b){var c=mb(a,b),d;for(d in c.Hf)throw new x.Ef(55);delete a.Hf[b];a.ctime=a.mtime=Date.now()},readdir(a){return[".","..",...Object.keys(a.Hf)]},symlink(a,b,c){a=y.createNode(a,b,41471,0);a.link=c;return a},readlink(a){if(40960!==(a.mode&61440))throw new x.Ef(28);return a.link}},Gf:{read(a,b,c,d,f){var h=a.node.Hf;if(f>=a.node.Mf)return 0;a=Math.min(a.node.Mf-f,d);if(8=h||(h=Math.max(h,k*(1048576>k?2:1.125)>>>0),0!=k&&(h=Math.max(h,256)),k=a.Hf,a.Hf=new Uint8Array(h),0b)throw new x.Ef(28);return b},bg(a,b,c,d,f){if(!x.isFile(a.node.mode))throw new x.Ef(43);a=a.node.Hf;if(f&2||!a||a.buffer!==g.buffer){d=!0;f=lb(b);if(!f)throw new x.Ef(48);if(a){if(0{var c=0;a&&(c|=365);b&&(c|=146);return c},pb=async a=>{a=await ha(a);return new Uint8Array(a)},qb=0,rb=null,sb=()=>{qb--;e.monitorRunDependencies?.(qb);if(0==qb&&rb){var a=rb;rb=null;a()}},tb=()=>{qb++;e.monitorRunDependencies?.(qb)},ub=[],vb=async(a,b)=>{"undefined"!=typeof Browser&&Browser.hg();for(var c of ub)if(c.canHandle(b))return c.handle(a,b);return a},xb=async(a,b,c,d,f,h,k,m)=>{var u=b?Za(Sa(a+"/"+b)):a,t=`cp ${u}`;tb(t);try{var C=c;"string"==typeof c&&(C=await pb(c));C=await vb(C, u);m?.();h||wb(a,b,C,d,f,k)}finally{sb(t)}};function gb(a,b){x.Dg[a]={Gf:b}}function z(a){return 16384===(a&61440)}function mb(a,b){var c=z(a.mode)?(c=yb(a,"x"))?c:a.Ff.lookup?0:2:54;if(c)throw new x.Ef(c);for(c=x.Sf[zb(a.id,b)];c;c=c.cg){var d=c.name;if(c.parent.id===a.id&&d===b)return c}return x.lookup(a,b)}function nb(a){var b=zb(a.parent.id,a.name);if(x.Sf[b]===a)x.Sf[b]=a.cg;else for(b=x.Sf[b];b;){if(b.cg===a){b.cg=a.cg;break}b=b.cg}} function wb(a,b,c,d,f,h){var k=b;a&&(a="string"==typeof a?a:Ab(a),k=b?Sa(a+"/"+b):a);a=ob(d,f);k=x.create(k,a);if(c){if("string"==typeof c){b=Array(c.length);d=0;for(f=c.length;dc;c++){a=a.split("/").filter(m=>!!m);for(var d=x.root,f="/",h=0;h>>0)%x.Sf.length}function Bb(a){var b=zb(a.parent.id,a.name);a.cg=x.Sf[b];x.Sf[b]=a} function Cb(a){var b=["r","w","rw"][a&3];a&512&&(b+="w");return b}function yb(a,b){if(x.Gg)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 Db(a,b){if(!z(a.mode))return 54;try{return mb(a,b),20}catch(c){}return yb(a,"wx")} function Eb(a,b,c){try{var d=mb(a,b)}catch(f){return f.Lf}if(a=yb(a,"wx"))return a;if(c){if(!z(d.mode))return 54;if(x.tg(d)||Ab(d)===x.cwd())return 10}else if(z(d.mode))return 31;return 0}function Fb(a,b){if(!a)throw new x.Ef(b);return a}function B(a){a=x.Tg(a);if(!a)throw new x.Ef(8);return a}function Gb(a,b=-1){a=Object.assign(new x.Mg,a);if(-1==b)a:{for(b=0;b<=x.Og;b++)if(!x.streams[b])break a;throw new x.Ef(33);}a.fd=b;return x.streams[b]=a} function Hb(a,b=-1){a=Gb(a,b);a.Gf?.Hh?.(a);return a}function Ib(a,b,c){var d=a?.Gf.Rf;a=d?a:b;d??=b.Ff.Rf;Fb(d,63);d(a,c)}function Jb(a){var b=[];for(a=[a];a.length;){var c=a.pop();b.push(c);a.push(...c.fg)}return b}function Kb(a){var b={zh:4096,Kh:4096,blocks:1E6,yh:5E5,xh:5E5,files:x.vg,Ih:x.vg-1,Lh:42,flags:2,Qh:255};a.Ff.Jg&&Object.assign(b,a.Ff.Jg(a.Kf.vh.root));return b}function Lb(a,b,c){"undefined"==typeof c&&(c=b,b=438);return x.Wf(a,b|8192,c)} function Mb(a,b,c,d){Ib(a,b,{mode:c&4095|b.mode&-4096,ctime:Date.now(),Eg:d})}function Nb(a,b,c){if(z(b.mode))throw new x.Ef(31);if(!x.isFile(b.mode))throw new x.Ef(28);var d=yb(b,"w");if(d)throw new x.Ef(d);Ib(a,b,{size:c,timestamp:Date.now()})}function Ob(a,b){a="string"==typeof a?a:Ab(a);for(b=b.split("/").reverse();b.length;){var c=b.pop();if(c){var d=Sa(a+"/"+c);try{x.mkdir(d)}catch(f){if(20!=f.Lf)throw f;}a=d}}return d} function Pb(a,b,c,d){a="string"==typeof a?a:Ab(a);b=Sa(a+"/"+b);return x.create(b,ob(c,d))}function Qb(a){if(!(a.sh||a.th||a.link||a.Hf))if("undefined"!=typeof XMLHttpRequest)r("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");else try{a.Hf=ia(a.url)}catch(b){throw new x.Ef(29);}} function Rb(a,b,c,d,f){function h(q,K,X,Y,W){q=q.node.Hf;if(W>=q.length)return 0;Y=Math.min(q.length-W,Y);if(q.slice)for(var U=0;Uthis.length-1||0>q)){var K=q%this.chunkSize;return this.jg(q/this.chunkSize|0)[K]}}Ng(q){this.jg=q}zg(){var q=new XMLHttpRequest;q.open("HEAD",c,!1);q.send(null);200<=q.status&&300>q.status||304===q.status||r("Couldn't load "+c+". Status: "+q.status); var K=Number(q.getResponseHeader("Content-length")),X,Y=(X=q.getResponseHeader("Accept-Ranges"))&&"bytes"===X;q=(X=q.getResponseHeader("Content-Encoding"))&&"gzip"===X;var W=1048576;Y||(W=K);var U=this;U.Ng(Na=>{var Xa=Na*W,Oa=(Na+1)*W-1;Oa=Math.min(Oa,K-1);if("undefined"==typeof U.Uf[Na]){var li=U.Uf;Xa>Oa&&r("invalid range ("+Xa+", "+Oa+") or no bytes requested!");Oa>K-1&&r("only "+K+" bytes available! programmer error!");var Z=new XMLHttpRequest;Z.open("GET",c,!1);K!==W&&Z.setRequestHeader("Range", "bytes="+Xa+"-"+Oa);Z.responseType="arraybuffer";Z.overrideMimeType&&Z.overrideMimeType("text/plain; charset=x-user-defined");Z.send(null);200<=Z.status&&300>Z.status||304===Z.status||r("Couldn't load "+c+". Status: "+Z.status);Xa=void 0!==Z.response?new Uint8Array(Z.response||[]):db(Z.responseText||"",!0);li[Na]=Xa}"undefined"==typeof U.Uf[Na]&&r("doXHR failed!");return U.Uf[Na]});if(q||!K)W=K=1,W=K=this.jg(0).length,ka("LazyFiles on gzip forces download of the whole file when length is accessed"); this.yg=K;this.xg=W;this.kg=!0}get length(){this.kg||this.zg();return this.yg}get chunkSize(){this.kg||this.zg();return this.xg}}if("undefined"!=typeof XMLHttpRequest){ba||r("Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc");var m=new k;var u=void 0}else u=c,m=void 0;var t=Pb(a,b,d,f);m?t.Hf=m:u&&(t.Hf=null,t.url=u);Object.defineProperties(t,{Mf:{get:function(){return this.Hf.length}}});var C={};Object.keys(t.Gf).forEach(q=>{var K= t.Gf[q];C[q]=(...X)=>{Qb(t);return K(...X)}});C.read=(q,K,X,Y,W)=>{Qb(t);return h(q,K,X,Y,W)};C.bg=(q,K,X)=>{Qb(t);var Y=lb(K);if(!Y)throw new x.Ef(48);h(q,g,Y,K,X);return{Df:Y,Ag:!0}};t.Gf=C;return t} var x={root:null,fg:[],Dg:{},streams:[],vg:1,Sf:null,Cg:"/",rg:!1,Gg:!0,Rg:null,ig:0,Ig:{},Ef:class{name="ErrnoError";constructor(a){this.Lf=a}},Mg:class{Uf={};node=null;get object(){return this.node}set object(a){this.node=a}get flags(){return this.Uf.flags}set flags(a){this.Uf.flags=a}get position(){return this.Uf.position}set position(a){this.Uf.position=a}},Lg:class{Ff={};Gf={};Qf=null;constructor(a,b,c,d){a||=this;this.parent=a;this.Kf=a.Kf;this.id=x.vg++;this.name=b;this.mode=c;this.rdev=d; this.atime=this.mtime=this.ctime=Date.now()}get read(){return 365===(this.mode&365)}set read(a){a?this.mode|=365:this.mode&=-366}get write(){return 146===(this.mode&146)}set write(a){a?this.mode|=146:this.mode&=-147}get th(){return z(this.mode)}get sh(){return 8192===(this.mode&61440)}},createNode(a,b,c,d){a=new x.Lg(a,b,c,d);Bb(a);return a},tg(a){return a===a.parent},isFile(a){return 32768===(a&61440)},isFIFO(a){return 4096===(a&61440)},isSocket(a){return 49152===(a&49152)},Og:4096,Tg:a=>x.streams[a], Pg:{open(a){a.Gf=x.Sg(a.node.rdev).Gf;a.Gf.open?.(a)},Nf(){throw new x.Ef(70);}},ug:a=>a>>8,Oh:a=>a&255,ag:(a,b)=>a<<8|b,Sg:a=>x.Dg[a],Kg(a,b){function c(k){x.ig--;return b(k)}function d(k){if(k){if(!d.Qg)return d.Qg=!0,c(k)}else++h>=f.length&&c(null)}"function"==typeof a&&(b=a,a=!1);x.ig++;1{if(!k.type.Kg)return d(null);k.type.Kg(k,a,d)})},Kf(a,b,c){var d="/"=== c;if(d&&x.root)throw new x.Ef(10);if(!d&&c){var f=A(c,{gg:!1});c=f.path;f=f.node;if(f.Qf)throw new x.Ef(10);if(!z(f.mode))throw new x.Ef(54);}b={type:a,vh:b,Hg:c,fg:[]};a=a.Kf(b);a.Kf=b;b.root=a;d?x.root=a:f&&(f.Qf=b,f.Kf&&f.Kf.fg.push(b));return a},Uh(a){a=A(a,{gg:!1});if(!a.node.Qf)throw new x.Ef(28);a=a.node;var b=a.Qf,c=Jb(b);Object.keys(x.Sf).forEach(d=>{for(d=x.Sf[d];d;){var f=d.cg;c.includes(d.Kf)&&nb(d);d=f}});a.Qf=null;a.Kf.fg.splice(a.Kf.fg.indexOf(b),1)},lookup(a,b){return a.Ff.lookup(a, b)},Wf(a,b,c){var d=A(a,{parent:!0}).node;a=Ua(a);if(!a)throw new x.Ef(28);if("."===a||".."===a)throw new x.Ef(20);var f=Db(d,a);if(f)throw new x.Ef(f);if(!d.Ff.Wf)throw new x.Ef(63);return d.Ff.Wf(d,a,b,c)},Jg(a){return Kb(A(a,{Of:!0}).node)},Th(a){return Kb(a.node)},create(a,b=438){return x.Wf(a,b&4095|32768,0)},mkdir(a,b=511){return x.Wf(a,b&1023|16384,0)},Ph(a,b){var c=a.split("/"),d="",f;for(f of c)if(f){if(d||"/"===a.charAt(0))d+="/";d+=f;try{x.mkdir(d,b)}catch(h){if(20!=h.Lf)throw h;}}},symlink(a, b){if(!Za(a))throw new x.Ef(44);var c=A(b,{parent:!0}).node;if(!c)throw new x.Ef(44);b=Ua(b);var d=Db(c,b);if(d)throw new x.Ef(d);if(!c.Ff.symlink)throw new x.Ef(63);return c.Ff.symlink(c,b,a)},rename(a,b){var c=Ta(a),d=Ta(b),f=Ua(a),h=Ua(b);var k=A(a,{parent:!0});var m=k.node;k=A(b,{parent:!0});k=k.node;if(!m||!k)throw new x.Ef(44);if(m.Kf!==k.Kf)throw new x.Ef(75);var u=mb(m,f);a=$a(a,d);if("."!==a.charAt(0))throw new x.Ef(28);a=$a(b,c);if("."!==a.charAt(0))throw new x.Ef(55);try{var t=mb(k,h)}catch(C){}if(u!== t){b=z(u.mode);if(f=Eb(m,f,b))throw new x.Ef(f);if(f=t?Eb(k,h,b):Db(k,h))throw new x.Ef(f);if(!m.Ff.rename)throw new x.Ef(63);if(u.Qf||t&&t.Qf)throw new x.Ef(10);if(k!==m&&(f=yb(m,"w")))throw new x.Ef(f);nb(u);try{m.Ff.rename(u,k,h),u.parent=k}catch(C){throw C;}finally{Bb(u)}}},rmdir(a){var b=A(a,{parent:!0}).node;a=Ua(a);var c=mb(b,a),d=Eb(b,a,!0);if(d)throw new x.Ef(d);if(!b.Ff.rmdir)throw new x.Ef(63);if(c.Qf)throw new x.Ef(10);b.Ff.rmdir(b,a);nb(c)},readdir(a){a=A(a,{Of:!0}).node;return Fb(a.Ff.readdir, 54)(a)},unlink(a){var b=A(a,{parent:!0}).node;if(!b)throw new x.Ef(44);a=Ua(a);var c=mb(b,a),d=Eb(b,a,!1);if(d)throw new x.Ef(d);if(!b.Ff.unlink)throw new x.Ef(63);if(c.Qf)throw new x.Ef(10);b.Ff.unlink(b,a);nb(c)},readlink(a){a=A(a).node;if(!a)throw new x.Ef(44);if(!a.Ff.readlink)throw new x.Ef(28);return a.Ff.readlink(a)},stat(a,b){a=A(a,{Of:!b}).node;return Fb(a.Ff.Pf,63)(a)},fstat(a){var b=B(a);a=b.node;var c=b.Gf.Pf;b=c?b:a;c??=a.Ff.Pf;Fb(c,63);return c(b)},lstat(a){return x.stat(a,!0)},chmod(a, b,c){a="string"==typeof a?A(a,{Of:!c}).node:a;Mb(null,a,b,c)},lchmod(a,b){x.chmod(a,b,!0)},fchmod(a,b){a=B(a);Mb(a,a.node,b,!1)},chown(a,b,c,d){a="string"==typeof a?A(a,{Of:!d}).node:a;Ib(null,a,{timestamp:Date.now(),Eg:d})},lchown(a,b,c){x.chown(a,b,c,!0)},fchown(a){a=B(a);Ib(a,a.node,{timestamp:Date.now(),Eg:!1})},truncate(a,b){if(0>b)throw new x.Ef(28);a="string"==typeof a?A(a,{Of:!0}).node:a;Nb(null,a,b)},Mh(a,b){a=B(a);if(0>b||0===(a.flags&2097155))throw new x.Ef(28);Nb(a,a.node,b)},Vh(a,b,c){a= A(a,{Of:!0}).node;Fb(a.Ff.Rf,63)(a,{atime:b,mtime:c})},open(a,b,c=438){if(""===a)throw new x.Ef(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?c&4095|32768:0;if("object"==typeof a)d=a;else{var f=a.endsWith("/");a=A(a,{Of:!(b&131072),uh:!0});d=a.node;a=a.path}var h=!1;if(b&64)if(d){if(b&128)throw new x.Ef(20);}else{if(f)throw new x.Ef(31);d=x.Wf(a,c|511,0);h=!0}if(!d)throw new x.Ef(44); 8192===(d.mode&61440)&&(b&=-513);if(b&65536&&!z(d.mode))throw new x.Ef(54);if(!h&&(f=d?40960===(d.mode&61440)?32:z(d.mode)&&("r"!==Cb(b)||b&576)?31:yb(d,Cb(b)):44))throw new x.Ef(f);b&512&&!h&&x.truncate(d,0);b&=-131713;f=Gb({node:d,path:Ab(d),flags:b,seekable:!0,position:0,Gf:d.Gf,wh:[],error:!1});f.Gf.open&&f.Gf.open(f);h&&x.chmod(d,c&511);!e.logReadFiles||b&1||a in x.Ig||(x.Ig[a]=1);return f},close(a){if(null===a.fd)throw new x.Ef(8);a.qg&&(a.qg=null);try{a.Gf.close&&a.Gf.close(a)}catch(b){throw b; }finally{x.streams[a.fd]=null}a.fd=null},Nf(a,b,c){if(null===a.fd)throw new x.Ef(8);if(!a.seekable||!a.Gf.Nf)throw new x.Ef(70);if(0!=c&&1!=c&&2!=c)throw new x.Ef(28);a.position=a.Gf.Nf(a,b,c);a.wh=[];return a.position},read(a,b,c,d,f){if(0>d||0>f)throw new x.Ef(28);if(null===a.fd)throw new x.Ef(8);if(1===(a.flags&2097155))throw new x.Ef(8);if(z(a.node.mode))throw new x.Ef(31);if(!a.Gf.read)throw new x.Ef(28);var h="undefined"!=typeof f;if(!h)f=a.position;else if(!a.seekable)throw new x.Ef(70);b= a.Gf.read(a,b,c,d,f);h||(a.position+=b);return b},write(a,b,c,d,f,h){if(0>d||0>f)throw new x.Ef(28);if(null===a.fd)throw new x.Ef(8);if(0===(a.flags&2097155))throw new x.Ef(8);if(z(a.node.mode))throw new x.Ef(31);if(!a.Gf.write)throw new x.Ef(28);a.seekable&&a.flags&1024&&x.Nf(a,0,2);var k="undefined"!=typeof f;if(!k)f=a.position;else if(!a.seekable)throw new x.Ef(70);b=a.Gf.write(a,b,c,d,f,h);k||(a.position+=b);return b},bg(a,b,c,d,f){if(0!==(d&2)&&0===(f&2)&&2!==(a.flags&2097155))throw new x.Ef(2); if(1===(a.flags&2097155))throw new x.Ef(2);if(!a.Gf.bg)throw new x.Ef(43);if(!b)throw new x.Ef(28);return a.Gf.bg(a,b,c,d,f)},eg(a,b,c,d,f){return a.Gf.eg?a.Gf.eg(a,b,c,d,f):0},sg(a,b,c){if(!a.Gf.sg)throw new x.Ef(59);return a.Gf.sg(a,b,c)},readFile(a,b={}){b.flags=b.flags||0;b.encoding=b.encoding||"binary";"utf8"!==b.encoding&&"binary"!==b.encoding&&r(`Invalid encoding type "${b.encoding}"`);var c=x.open(a,b.flags);a=x.stat(a).size;var d=new Uint8Array(a);x.read(c,d,0,a,0);"utf8"===b.encoding&&(d= v(d));x.close(c);return d},writeFile(a,b,c={}){c.flags=c.flags||577;a=x.open(a,c.flags,c.mode);"string"==typeof b&&(b=new Uint8Array(db(b,!0)));ArrayBuffer.isView(b)?x.write(a,b,0,b.byteLength,void 0,c.Fh):r("Unsupported data type");x.close(a)},cwd:()=>x.Cg,chdir(a){a=A(a,{Of:!0});if(null===a.node)throw new x.Ef(44);if(!z(a.node.mode))throw new x.Ef(54);var b=yb(a.node,"x");if(b)throw new x.Ef(b);x.Cg=a.path},hg(a,b,c){x.rg=!0;a??=e.stdin;b??=e.stdout;c??=e.stderr;a?x.Yf("/dev","stdin",a):x.symlink("/dev/tty", "/dev/stdin");b?x.Yf("/dev","stdout",null,b):x.symlink("/dev/tty","/dev/stdout");c?x.Yf("/dev","stderr",null,c):x.symlink("/dev/tty1","/dev/stderr");x.open("/dev/stdin",0);x.open("/dev/stdout",1);x.open("/dev/stderr",1)},Sh(){x.rg=!1;for(var a of x.streams)a&&x.close(a)},Jh(a,b){try{var c=A(a,{Of:!b});a=c.path}catch(h){}var d=!1,f=null;try{c=A(a,{parent:!0}),Ua(a),c=A(a,{Of:!b}),d=!0,f=c.node}catch(h){}return d?f:null},Yf(a,b,c,d){a=Va("string"==typeof a?a:Ab(a),b);b=ob(!!c,!!d);var f;(f=x.Yf).ug?? (f.ug=64);f=x.ag(x.Yf.ug++,0);gb(f,{open(h){h.seekable=!1},close(){d?.buffer?.length&&d(10)},read(h,k,m,u){for(var t=0,C=0;C>2]=b.dev;p[a+4>>2]=b.mode;p[a+8>>2]=b.nlink;p[a+12>>2]=b.uid;p[a+16>>2]=b.gid;p[a+20>>2]=b.rdev;ua[a+24>>3]=BigInt(b.size);n[a+32>>2]=4096;n[a+36>>2]=b.blocks;var c=b.atime.getTime(),d=b.mtime.getTime(),f=b.ctime.getTime();ua[a+40>>3]=BigInt(Math.floor(c/1E3));p[a+48>>2]=c%1E3*1E6;ua[a+56>>3]=BigInt(Math.floor(d/1E3));p[a+64>>2]=d%1E3*1E6;ua[a+72>>3]=BigInt(Math.floor(f/1E3));p[a+80>>2]=f%1E3*1E6;ua[a+88>>3]=BigInt(b.ino);return 0} var Pa=void 0,Ub=a=>0===a%4&&(0!==a%100||0===a%400),Vb=[0,31,60,91,121,152,182,213,244,274,305,335],Wb=[0,31,59,90,120,151,181,212,243,273,304,334],Xb=[],Yb={},$b=()=>{if(!Zb){var a={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.language||"C").replace("-","_")+".UTF-8",_:da||"./this.program"},b;for(b in Yb)void 0===Yb[b]?delete a[b]:a[b]=Yb[b];var c=[];for(b in a)c.push(`${b}=${a[b]}`);Zb=c}return Zb},Zb,ac=[],bc,cc=a=>{var b= ac[a];b||(ac[a]=b=bc.get(a));return b};x.Gh=(a,b,c,d,f,h,k,m,u,t)=>{xb(a,b,c,d,f,m,u,t).then(h).catch(k)};x.Rh=xb;x.Sf=Array(4096);x.Kf(y,{},"/");x.mkdir("/tmp");x.mkdir("/home");x.mkdir("/home/web_user"); (function(){x.mkdir("/dev");gb(x.ag(1,3),{read:()=>0,write:(d,f,h,k)=>k,Nf:()=>0});Lb("/dev/null",x.ag(1,3));fb(x.ag(5,0),ib);fb(x.ag(6,0),jb);Lb("/dev/tty",x.ag(5,0));Lb("/dev/tty1",x.ag(6,0));var a=new Uint8Array(1024),b=0,c=()=>{0===b&&(Ya(a),b=a.byteLength);return a[--b]};x.Yf("/dev","random",c);x.Yf("/dev","urandom",c);x.mkdir("/dev/shm");x.mkdir("/dev/shm/tmp")})(); (function(){x.mkdir("/proc");var a=x.mkdir("/proc/self");x.mkdir("/proc/self/fd");x.Kf({Kf(){var b=x.createNode(a,"fd",16895,73);b.Gf={Nf:y.Gf.Nf};b.Ff={lookup(c,d){c=+d;var f=B(c);c={parent:null,Kf:{Hg:"fake"},Ff:{readlink:()=>f.path},id:c+1};return c.parent=c},readdir(){return Array.from(x.streams.entries()).filter(([,c])=>c).map(([c])=>c.toString())}};return b}},{},"/proc/self/fd")})();x.Rg={MEMFS:y};e.noExitRuntime&&(Ha=e.noExitRuntime);e.preloadPlugins&&(ub=e.preloadPlugins);e.print&&(ka=e.print); e.printErr&&(la=e.printErr);e.wasmBinary&&(ma=e.wasmBinary);e.thisProgram&&(da=e.thisProgram);if(e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);0x.unlink(...a);e.FS_createPath=(...a)=>Ob(...a);e.FS_createDevice=(...a)=>x.Yf(...a);e.FS=x;e.FS_createDataFile=(...a)=>wb(...a);e.FS_createLazyFile=(...a)=>Rb(...a); var dc={408364:a=>{e.TesseractProgress&&e.TesseractProgress(a)},408433:a=>{e.TesseractProgress&&e.TesseractProgress(a)}},ec,fc,gc,hc,ic,jc,kc,lc,mc,nc,oc,pc,qc,rc,sc,tc,uc,vc,wc,xc,yc,zc,Ac,Bc,Cc,Dc,Ec,Fc,Gc,Hc,Ic,Jc,Kc,Lc,Mc,Nc,Oc,Pc,Qc,Rc,Sc,Tc,Uc,Vc,Wc,Xc,Yc,Zc,$c,ad,bd,cd,dd,ed,fd,gd,hd,jd,kd,ld,md,nd,od,pd,qd,rd,sd,td,ud,vd,wd,xd,yd,zd,Ad,Bd,Cd,Dd,Ed,Fd,Gd,Hd,Id,Jd,Kd,Ld,Md,Nd,Od,Pd,Qd,Rd,Sd,Td,Ud,Vd,Wd,Xd,Yd,Zd,$d,ae,be,ce,de,ee,fe,ge,he,ie,je,ke,le,me,ne,oe,pe,qe,re,se,te,ue,ve,we,xe,ye,ze, Ae,Be,Ce,De,Ee,Fe,Ge,He,Ie,Je,Ke,Le,Me,Ne,Oe,Pe,Qe,Re,Se,Te,Ue,Ve,We,Xe,Ye,Ze,$e,af,bf,cf,df,ef,ff,gf,hf,jf,kf,lf,mf,nf,of,pf,qf,rf,sf,tf,uf,vf,wf,xf,yf,zf,Af,Bf,Cf,Df,Ef,Ff,Gf,Hf,If,Jf,Kf,Lf,Mf,Nf,Of,Pf,Qf,Rf,Sf,Tf,Uf,Vf,Wf,Xf,Yf,Zf,$f,ag,bg,cg,dg,eg,fg,gg,hg,ig,jg,kg,lg,mg,ng,og,pg,qg,rg,sg,tg,ug,vg,wg,xg,yg,zg,Ag,Bg,Cg,Dg,Eg,Fg,Gg,Hg,Ig,Jg,Kg,Lg,Mg,Ng,Og,Pg,Qg,Rg,Sg,Tg,Ug,Vg,Wg,Xg,Yg,Zg,$g,ah,bh,ch,dh,eh,fh,gh,hh,ih,jh,kh,lh,mh,nh,oh,ph,qh,rh,sh,th,uh,vh,wh,xh,yh,zh,Ah,Bh,Ch,Dh,Eh,Fh,Gh,Hh,Ih, kb,Jh,Kh,Lh,Xh={P:function(){r("missing function: _ZN9tesseract11TessBaseAPI10GetOsdTextEi")},S:function(){r("missing function: _ZN9tesseract11TessBaseAPI23ClearAdaptiveClassifierEv")},J:function(){r("missing function: _ZN9tesseract11TessBaseAPI8DetectOSEPNS_9OSResultsE")},y:function(){r("missing function: _ZNK9tesseract9OSResults12print_scoresEv")},a:(a,b,c,d)=>r(`Assertion failed: ${a?v(l,a):""}, at: `+[b?b?v(l,b):"":"unknown filename",c,d?d?v(l,d):"":"unknown function"]),k:(a,b,c)=>{(new Ka(a)).hg(b, c);La=a;Ma++;throw La;},p:function(a,b,c){Pa=c;try{var d=B(a);switch(b){case 0:var f=Qa();if(0>f)break;for(;x.streams[f];)f++;return Hb(d,f).fd;case 1:case 2:return 0;case 3:return d.flags;case 4:return f=Qa(),d.flags|=f,0;case 12:return f=Qa(),ra[f+0>>1]=2,0;case 13:case 14:return 0}return-28}catch(h){if("undefined"==typeof x||"ErrnoError"!==h.name)throw h;return-h.Lf}},K:function(a,b){try{return Tb(b,x.fstat(a))}catch(c){if("undefined"==typeof x||"ErrnoError"!==c.name)throw c;return-c.Lf}},H:function(a, b){try{if(0===b)return-28;var c=x.cwd(),d=bb(c)+1;if(b>2]=25856;n[f+4>>2]=5;n[f+8>>2]=191;n[f+12>>2]=35387;for(var h=0;32>h;h++)g[f+h+17]=a[h]||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.Xf.qh)for(f=Qa(),a=[],h=0;32>h;h++)a.push(g[f+h+17]);return 0;case 21519:if(!d.tty)return-59;f=Qa();return n[f>>2]=0;case 21520:return d.tty?-28:-59;case 21537:case 21531:return f=Qa(),x.sg(d,b,f);case 21523:if(!d.tty)return-59;d.tty.Xf.rh&&(h=[24,80],f=Qa(),ra[f>>1]=h[0],ra[f+2>>1]=h[1]);return 0;case 21524:return d.tty?0:-59;case 21515:return d.tty?0:-59;default:return-28}}catch(k){if("undefined"==typeof x||"ErrnoError"!==k.name)throw k; return-k.Lf}},I:function(a,b,c,d){try{b=b?v(l,b):"";var f=d&256;b=Sb(a,b,d&4096);return Tb(c,f?x.lstat(b):x.stat(b))}catch(h){if("undefined"==typeof x||"ErrnoError"!==h.name)throw h;return-h.Lf}},n:function(a,b,c,d){Pa=d;try{b=b?v(l,b):"";b=Sb(a,b);var f=d?Qa():0;return x.open(b,c,f).fd}catch(h){if("undefined"==typeof x||"ErrnoError"!==h.name)throw h;return-h.Lf}},v:function(a){try{return a=a?v(l,a):"",x.rmdir(a),0}catch(b){if("undefined"==typeof x||"ErrnoError"!==b.name)throw b;return-b.Lf}},w:function(a, b,c){try{b=b?v(l,b):"";b=Sb(a,b);if(c)if(512===c)x.rmdir(b);else return-28;else x.unlink(b);return 0}catch(d){if("undefined"==typeof x||"ErrnoError"!==d.name)throw d;return-d.Lf}},N:()=>r(""),Q:a=>{do{var b=p[a>>2];a+=4;var c=p[a>>2];a+=4;var d=p[a>>2];a+=4;b=b?v(l,b):"";Ob("/",Ta(b));wb(b,null,g.subarray(d,d+c),!0,!0,!0)}while(p[a>>2])},t:()=>{throw Infinity;},A:function(a,b){a=-9007199254740992>a||9007199254740992>2]=a.getUTCSeconds();n[b+4>>2]=a.getUTCMinutes(); n[b+8>>2]=a.getUTCHours();n[b+12>>2]=a.getUTCDate();n[b+16>>2]=a.getUTCMonth();n[b+20>>2]=a.getUTCFullYear()-1900;n[b+24>>2]=a.getUTCDay();n[b+28>>2]=(a.getTime()-Date.UTC(a.getUTCFullYear(),0,1,0,0,0,0))/864E5|0},B:function(a,b){a=-9007199254740992>a||9007199254740992>2]=a.getSeconds();n[b+4>>2]=a.getMinutes();n[b+8>>2]=a.getHours();n[b+12>>2]=a.getDate();n[b+16>>2]=a.getMonth();n[b+20>>2]=a.getFullYear()-1900;n[b+24>>2]=a.getDay();n[b+28>>2]=(Ub(a.getFullYear())? Vb:Wb)[a.getMonth()]+a.getDate()-1|0;n[b+36>>2]=-(60*a.getTimezoneOffset());var c=(new Date(a.getFullYear(),6,1)).getTimezoneOffset(),d=(new Date(a.getFullYear(),0,1)).getTimezoneOffset();n[b+32>>2]=(c!=d&&a.getTimezoneOffset()==Math.min(d,c))|0},C:function(a){var b=new Date(n[a+20>>2]+1900,n[a+16>>2],n[a+12>>2],n[a+8>>2],n[a+4>>2],n[a>>2],0),c=n[a+32>>2],d=b.getTimezoneOffset(),f=(new Date(b.getFullYear(),6,1)).getTimezoneOffset(),h=(new Date(b.getFullYear(),0,1)).getTimezoneOffset(),k=Math.min(h, f);0>c?n[a+32>>2]=Number(f!=h&&k==d):0>2]=b.getDay();n[a+28>>2]=(Ub(b.getFullYear())?Vb:Wb)[b.getMonth()]+b.getDate()-1|0;n[a>>2]=b.getSeconds();n[a+4>>2]=b.getMinutes();n[a+8>>2]=b.getHours();n[a+12>>2]=b.getDate();n[a+16>>2]=b.getMonth();n[a+20>>2]=b.getYear();a=b.getTime();return BigInt(isNaN(a)?-1:a/1E3)},x:function(a,b,c,d,f,h,k){f=-9007199254740992>f||9007199254740992>2]=u.Ag;p[k>>2]=t;return 0}catch(C){if("undefined"==typeof x||"ErrnoError"!==C.name)throw C;return-C.Lf}},z:function(a,b,c,d,f,h){h=-9007199254740992>h||9007199254740992{var f=(new Date).getFullYear(),h=(new Date(f,0,1)).getTimezoneOffset();f=(new Date(f, 6,1)).getTimezoneOffset();p[a>>2]=60*Math.max(h,f);n[b>>2]=Number(h!=f);b=k=>{var m=Math.abs(k);return`UTC${0<=k?"-":"+"}${String(Math.floor(m/60)).padStart(2,"0")}${String(m%60).padStart(2,"0")}`};a=b(h);b=b(f);f=a))return 28;ua[c>>3]=BigInt(Math.round(1E6*(0===a?Date.now():performance.now())));return 0},s:(a,b,c)=>{Xb.length=0;for(var d;d=l[b++];){var f=105!=d;f&=112!=d;c+=f&&c%8?4:0;Xb.push(112==d?p[c>>2]: 106==d?ua[c>>3]:105==d?n[c>>2]:ta[c>>3]);c+=f?8:4}return dc[a](...Xb)},L:()=>Date.now(),u:a=>{var b=l.length;a>>>=0;if(2147483648=c;c*=2){var d=b*(1+.2/c);d=Math.min(d,a+100663296);a:{d=(Math.min(2147483648,65536*Math.ceil(Math.max(a,d)/65536))-qa.buffer.byteLength+65535)/65536|0;try{qa.grow(d);wa();var f=1;break a}catch(h){}f=void 0}if(f)return!0}return!1},F:(a,b)=>{var c=0,d=0,f;for(f of $b()){var h=b+c;p[a+d>>2]=h;c+=cb(f,l,h,Infinity)+1;d+=4}return 0},G:(a,b)=>{var c= $b();p[a>>2]=c.length;a=0;for(var d of c)a+=bb(d)+1;p[b>>2]=a;return 0},R:a=>{Ha||(e.onExit?.(a),na=!0);ea(a,new Ba(a))},m:function(a){try{var b=B(a);x.close(b);return 0}catch(c){if("undefined"==typeof x||"ErrnoError"!==c.name)throw c;return c.Lf}},o:function(a,b,c,d){try{a:{var f=B(a);a=b;for(var h,k=b=0;k>2],u=p[a+4>>2];a+=8;var t=x.read(f,g,m,u,h);if(0>t){var C=-1;break a}b+=t;if(t>2]=C;return 0}catch(q){if("undefined"==typeof x|| "ErrnoError"!==q.name)throw q;return q.Lf}},E:function(a,b,c,d){b=-9007199254740992>b||9007199254740992>3]=BigInt(f.position);f.qg&&0===b&&0===c&&(f.qg=null);return 0}catch(h){if("undefined"==typeof x||"ErrnoError"!==h.name)throw h;return h.Lf}},l:function(a,b,c,d){try{a:{var f=B(a);a=b;for(var h,k=b=0;k>2],u=p[a+4>>2];a+=8;var t=x.write(f,g,m,u,h);if(0>t){var C=-1;break a}b+=t;if(t>2]=C;return 0}catch(q){if("undefined"==typeof x||"ErrnoError"!==q.name)throw q;return q.Lf}},c:Mh,e:Nh,b:Oh,h:Ph,i:Qh,d:Rh,f:Sh,g:Th,j:Uh,q:Vh,r:Wh};function Oh(a,b,c,d){var f=Lh();try{return cc(a)(b,c,d)}catch(h){Kh(f);if(h!==h+0)throw h;Jh(1,0)}}function Rh(a,b){var c=Lh();try{cc(a)(b)}catch(d){Kh(c);if(d!==d+0)throw d;Jh(1,0)}}function Mh(a,b){var c=Lh();try{return cc(a)(b)}catch(d){Kh(c);if(d!==d+0)throw d;Jh(1,0)}} function Th(a,b,c,d){var f=Lh();try{cc(a)(b,c,d)}catch(h){Kh(f);if(h!==h+0)throw h;Jh(1,0)}}function Sh(a,b,c){var d=Lh();try{cc(a)(b,c)}catch(f){Kh(d);if(f!==f+0)throw f;Jh(1,0)}}function Nh(a,b,c){var d=Lh();try{return cc(a)(b,c)}catch(f){Kh(d);if(f!==f+0)throw f;Jh(1,0)}}function Ph(a,b,c,d,f){var h=Lh();try{return cc(a)(b,c,d,f)}catch(k){Kh(h);if(k!==k+0)throw k;Jh(1,0)}}function Uh(a,b,c,d,f){var h=Lh();try{cc(a)(b,c,d,f)}catch(k){Kh(h);if(k!==k+0)throw k;Jh(1,0)}} function Qh(a,b,c,d,f,h){var k=Lh();try{return cc(a)(b,c,d,f,h)}catch(m){Kh(k);if(m!==m+0)throw m;Jh(1,0)}}function Wh(a,b,c,d,f,h,k,m,u,t){var C=Lh();try{cc(a)(b,c,d,f,h,k,m,u,t)}catch(q){Kh(C);if(q!==q+0)throw q;Jh(1,0)}}function Vh(a,b,c,d,f,h){var k=Lh();try{cc(a)(b,c,d,f,h)}catch(m){Kh(k);if(m!==m+0)throw m;Jh(1,0)}} function Yh(){function a(){e.calledRun=!0;if(!na){va=!0;e.noFSInit||x.rg||x.hg();Zh.U();x.Gg=!1;oa?.(e);e.onRuntimeInitialized?.();if(e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;){var b=e.postRun.shift();Da.push(b)}Ca(Da)}}if(0{setTimeout(()=>e.setStatus(""),1);a()},1)):a()}}var Zh; Zh=await (async function(){function a(c){Zh=c.exports;qa=Zh.T;wa();bc=Zh.da;c=Zh;e._emscripten_bind_ParagraphJustification___destroy___0=ec=c.V;e._emscripten_bind_BoolPtr___destroy___0=fc=c.W;e._emscripten_bind_TessResultRenderer_BeginDocument_1=gc=c.X;e._emscripten_bind_TessResultRenderer_AddImage_1=hc=c.Y;e._emscripten_bind_TessResultRenderer_EndDocument_0=ic=c.Z;e._emscripten_bind_TessResultRenderer_happy_0=jc=c._;e._emscripten_bind_TessResultRenderer_file_extension_0=kc=c.$;e._emscripten_bind_TessResultRenderer_title_0= lc=c.aa;e._emscripten_bind_TessResultRenderer_imagenum_0=mc=c.ba;e._emscripten_bind_TessResultRenderer___destroy___0=nc=c.ca;e._emscripten_bind_LongStarPtr___destroy___0=oc=c.ea;e._emscripten_bind_VoidPtr___destroy___0=pc=c.fa;e._emscripten_bind_ResultIterator_ResultIterator_1=qc=c.ga;e._emscripten_bind_ResultIterator_Begin_0=rc=c.ha;e._emscripten_bind_ResultIterator_RestartParagraph_0=sc=c.ia;e._emscripten_bind_ResultIterator_IsWithinFirstTextlineOfParagraph_0=tc=c.ja;e._emscripten_bind_ResultIterator_RestartRow_0= uc=c.ka;e._emscripten_bind_ResultIterator_Next_1=vc=c.la;e._emscripten_bind_ResultIterator_IsAtBeginningOf_1=wc=c.ma;e._emscripten_bind_ResultIterator_IsAtFinalElement_2=xc=c.na;e._emscripten_bind_ResultIterator_Cmp_1=yc=c.oa;e._emscripten_bind_ResultIterator_SetBoundingBoxComponents_2=zc=c.pa;e._emscripten_bind_ResultIterator_BoundingBox_5=Ac=c.qa;e._emscripten_bind_ResultIterator_BoundingBox_6=Bc=c.ra;e._emscripten_bind_ResultIterator_BoundingBoxInternal_5=Cc=c.sa;e._emscripten_bind_ResultIterator_Empty_1= Dc=c.ta;e._emscripten_bind_ResultIterator_BlockType_0=Ec=c.ua;e._emscripten_bind_ResultIterator_BlockPolygon_0=Fc=c.va;e._emscripten_bind_ResultIterator_GetBinaryImage_1=Gc=c.wa;e._emscripten_bind_ResultIterator_GetImage_5=Hc=c.xa;e._emscripten_bind_ResultIterator_Baseline_5=Ic=c.ya;e._emscripten_bind_ResultIterator_RowAttributes_3=Jc=c.za;e._emscripten_bind_ResultIterator_Orientation_4=Kc=c.Aa;e._emscripten_bind_ResultIterator_ParagraphInfo_4=Lc=c.Ba;e._emscripten_bind_ResultIterator_ParagraphIsLtr_0= Mc=c.Ca;e._emscripten_bind_ResultIterator_GetUTF8Text_1=Nc=c.Da;e._emscripten_bind_ResultIterator_SetLineSeparator_1=Oc=c.Ea;e._emscripten_bind_ResultIterator_SetParagraphSeparator_1=Pc=c.Fa;e._emscripten_bind_ResultIterator_Confidence_1=Qc=c.Ga;e._emscripten_bind_ResultIterator_WordFontAttributes_8=Rc=c.Ha;e._emscripten_bind_ResultIterator_WordRecognitionLanguage_0=Sc=c.Ia;e._emscripten_bind_ResultIterator_WordDirection_0=Tc=c.Ja;e._emscripten_bind_ResultIterator_WordIsFromDictionary_0=Uc=c.Ka;e._emscripten_bind_ResultIterator_WordIsNumeric_0= Vc=c.La;e._emscripten_bind_ResultIterator_HasBlamerInfo_0=Wc=c.Ma;e._emscripten_bind_ResultIterator_HasTruthString_0=Xc=c.Na;e._emscripten_bind_ResultIterator_EquivalentToTruth_1=Yc=c.Oa;e._emscripten_bind_ResultIterator_WordTruthUTF8Text_0=Zc=c.Pa;e._emscripten_bind_ResultIterator_WordNormedUTF8Text_0=$c=c.Qa;e._emscripten_bind_ResultIterator_WordLattice_1=ad=c.Ra;e._emscripten_bind_ResultIterator_SymbolIsSuperscript_0=bd=c.Sa;e._emscripten_bind_ResultIterator_SymbolIsSubscript_0=cd=c.Ta;e._emscripten_bind_ResultIterator_SymbolIsDropcap_0= dd=c.Ua;e._emscripten_bind_ResultIterator___destroy___0=ed=c.Va;e._emscripten_bind_TextlineOrder___destroy___0=fd=c.Wa;e._emscripten_bind_ETEXT_DESC___destroy___0=gd=c.Xa;e._emscripten_bind_PageIterator_Begin_0=hd=c.Ya;e._emscripten_bind_PageIterator_RestartParagraph_0=jd=c.Za;e._emscripten_bind_PageIterator_IsWithinFirstTextlineOfParagraph_0=kd=c._a;e._emscripten_bind_PageIterator_RestartRow_0=ld=c.$a;e._emscripten_bind_PageIterator_Next_1=md=c.ab;e._emscripten_bind_PageIterator_IsAtBeginningOf_1= nd=c.bb;e._emscripten_bind_PageIterator_IsAtFinalElement_2=od=c.cb;e._emscripten_bind_PageIterator_Cmp_1=pd=c.db;e._emscripten_bind_PageIterator_SetBoundingBoxComponents_2=qd=c.eb;e._emscripten_bind_PageIterator_BoundingBox_5=rd=c.fb;e._emscripten_bind_PageIterator_BoundingBox_6=sd=c.gb;e._emscripten_bind_PageIterator_BoundingBoxInternal_5=td=c.hb;e._emscripten_bind_PageIterator_Empty_1=ud=c.ib;e._emscripten_bind_PageIterator_BlockType_0=vd=c.jb;e._emscripten_bind_PageIterator_BlockPolygon_0=wd=c.kb; e._emscripten_bind_PageIterator_GetBinaryImage_1=xd=c.lb;e._emscripten_bind_PageIterator_GetImage_5=yd=c.mb;e._emscripten_bind_PageIterator_Baseline_5=zd=c.nb;e._emscripten_bind_PageIterator_Orientation_4=Ad=c.ob;e._emscripten_bind_PageIterator_ParagraphInfo_4=Bd=c.pb;e._emscripten_bind_PageIterator___destroy___0=Cd=c.qb;e._emscripten_bind_WritingDirection___destroy___0=Dd=c.rb;e._emscripten_bind_WordChoiceIterator_WordChoiceIterator_1=Ed=c.sb;e._emscripten_bind_WordChoiceIterator_Next_0=Fd=c.tb; e._emscripten_bind_WordChoiceIterator_GetUTF8Text_0=Gd=c.ub;e._emscripten_bind_WordChoiceIterator_Confidence_0=Hd=c.vb;e._emscripten_bind_WordChoiceIterator___destroy___0=Id=c.wb;e._emscripten_bind_Box_get_x_0=Jd=c.xb;e._emscripten_bind_Box_get_y_0=Kd=c.yb;e._emscripten_bind_Box_get_w_0=Ld=c.zb;e._emscripten_bind_Box_get_h_0=Md=c.Ab;e._emscripten_bind_Box_get_refcount_0=Nd=c.Bb;e._emscripten_bind_Box___destroy___0=Od=c.Cb;e._emscripten_bind_TessPDFRenderer_TessPDFRenderer_3=Pd=c.Db;e._emscripten_bind_TessPDFRenderer_BeginDocument_1= Qd=c.Eb;e._emscripten_bind_TessPDFRenderer_AddImage_1=Rd=c.Fb;e._emscripten_bind_TessPDFRenderer_EndDocument_0=Sd=c.Gb;e._emscripten_bind_TessPDFRenderer_happy_0=Td=c.Hb;e._emscripten_bind_TessPDFRenderer_file_extension_0=Ud=c.Ib;e._emscripten_bind_TessPDFRenderer_title_0=Vd=c.Jb;e._emscripten_bind_TessPDFRenderer_imagenum_0=Wd=c.Kb;e._emscripten_bind_TessPDFRenderer___destroy___0=Xd=c.Lb;e._emscripten_bind_PixaPtr___destroy___0=Yd=c.Mb;e._emscripten_bind_FloatPtr___destroy___0=Zd=c.Nb;e._emscripten_bind_ChoiceIterator_ChoiceIterator_1= $d=c.Ob;e._emscripten_bind_ChoiceIterator_Next_0=ae=c.Pb;e._emscripten_bind_ChoiceIterator_GetUTF8Text_0=be=c.Qb;e._emscripten_bind_ChoiceIterator_Confidence_0=ce=c.Rb;e._emscripten_bind_ChoiceIterator___destroy___0=de=c.Sb;e._emscripten_bind_PixPtr___destroy___0=ee=c.Tb;e._emscripten_bind_UNICHARSET_get_script_from_script_id_1=fe=c.Ub;e._emscripten_bind_UNICHARSET_get_script_id_from_name_1=ge=c.Vb;e._emscripten_bind_UNICHARSET_get_script_table_size_0=he=c.Wb;e._emscripten_bind_UNICHARSET___destroy___0= ie=c.Xb;e._emscripten_bind_IntPtr___destroy___0=je=c.Yb;e._emscripten_bind_Orientation___destroy___0=ke=c.Zb;e._emscripten_bind_OSBestResult_get_orientation_id_0=le=c._b;e._emscripten_bind_OSBestResult_get_script_id_0=me=c.$b;e._emscripten_bind_OSBestResult_get_sconfidence_0=ne=c.ac;e._emscripten_bind_OSBestResult_get_oconfidence_0=oe=c.bc;e._emscripten_bind_OSBestResult___destroy___0=pe=c.cc;e._emscripten_bind_Boxa_get_n_0=qe=c.dc;e._emscripten_bind_Boxa_get_nalloc_0=re=c.ec;e._emscripten_bind_Boxa_get_refcount_0= se=c.fc;e._emscripten_bind_Boxa_get_box_0=te=c.gc;e._emscripten_bind_Boxa___destroy___0=ue=c.hc;e._emscripten_bind_PixColormap_get_array_0=ve=c.ic;e._emscripten_bind_PixColormap_get_depth_0=we=c.jc;e._emscripten_bind_PixColormap_get_nalloc_0=xe=c.kc;e._emscripten_bind_PixColormap_get_n_0=ye=c.lc;e._emscripten_bind_PixColormap___destroy___0=ze=c.mc;e._emscripten_bind_Pta_get_n_0=Ae=c.nc;e._emscripten_bind_Pta_get_nalloc_0=Be=c.oc;e._emscripten_bind_Pta_get_refcount_0=Ce=c.pc;e._emscripten_bind_Pta_get_x_0= De=c.qc;e._emscripten_bind_Pta_get_y_0=Ee=c.rc;e._emscripten_bind_Pta___destroy___0=Fe=c.sc;e._emscripten_bind_Pix_get_w_0=Ge=c.tc;e._emscripten_bind_Pix_get_h_0=He=c.uc;e._emscripten_bind_Pix_get_d_0=Ie=c.vc;e._emscripten_bind_Pix_get_spp_0=Je=c.wc;e._emscripten_bind_Pix_get_wpl_0=Ke=c.xc;e._emscripten_bind_Pix_get_refcount_0=Le=c.yc;e._emscripten_bind_Pix_get_xres_0=Me=c.zc;e._emscripten_bind_Pix_get_yres_0=Ne=c.Ac;e._emscripten_bind_Pix_get_informat_0=Oe=c.Bc;e._emscripten_bind_Pix_get_special_0= Pe=c.Cc;e._emscripten_bind_Pix_get_text_0=Qe=c.Dc;e._emscripten_bind_Pix_get_colormap_0=Re=c.Ec;e._emscripten_bind_Pix_get_data_0=Se=c.Fc;e._emscripten_bind_Pix___destroy___0=Te=c.Gc;e._emscripten_bind_DoublePtr___destroy___0=Ue=c.Hc;e._emscripten_bind_Dawg___destroy___0=Ve=c.Ic;e._emscripten_bind_BoxPtr___destroy___0=We=c.Jc;e._emscripten_bind_TessBaseAPI_TessBaseAPI_0=Xe=c.Kc;e._emscripten_bind_TessBaseAPI_Version_0=Ye=c.Lc;e._emscripten_bind_TessBaseAPI_SetInputName_1=Ze=c.Mc;e._emscripten_bind_TessBaseAPI_GetInputName_0= $e=c.Nc;e._emscripten_bind_TessBaseAPI_SetInputImage_1=af=c.Oc;e._emscripten_bind_TessBaseAPI_GetInputImage_0=bf=c.Pc;e._emscripten_bind_TessBaseAPI_GetSourceYResolution_0=cf=c.Qc;e._emscripten_bind_TessBaseAPI_GetDatapath_0=df=c.Rc;e._emscripten_bind_TessBaseAPI_SetOutputName_1=ef=c.Sc;e._emscripten_bind_TessBaseAPI_SetVariable_2=ff=c.Tc;e._emscripten_bind_TessBaseAPI_SetDebugVariable_2=gf=c.Uc;e._emscripten_bind_TessBaseAPI_GetIntVariable_2=hf=c.Vc;e._emscripten_bind_TessBaseAPI_GetBoolVariable_2= jf=c.Wc;e._emscripten_bind_TessBaseAPI_GetDoubleVariable_2=kf=c.Xc;e._emscripten_bind_TessBaseAPI_GetStringVariable_1=lf=c.Yc;e._emscripten_bind_TessBaseAPI_SaveParameters_1=mf=c.Zc;e._emscripten_bind_TessBaseAPI_RestoreParameters_1=nf=c._c;e._emscripten_bind_TessBaseAPI_Init_2=of=c.$c;e._emscripten_bind_TessBaseAPI_Init_3=pf=c.ad;e._emscripten_bind_TessBaseAPI_Init_4=qf=c.bd;e._emscripten_bind_TessBaseAPI_GetInitLanguagesAsString_0=rf=c.cd;e._emscripten_bind_TessBaseAPI_InitForAnalysePage_0=sf=c.dd; e._emscripten_bind_TessBaseAPI_ReadConfigFile_1=tf=c.ed;e._emscripten_bind_TessBaseAPI_ReadDebugConfigFile_1=uf=c.fd;e._emscripten_bind_TessBaseAPI_SetPageSegMode_1=vf=c.gd;e._emscripten_bind_TessBaseAPI_GetPageSegMode_0=wf=c.hd;e._emscripten_bind_TessBaseAPI_TesseractRect_7=xf=c.id;e._emscripten_bind_TessBaseAPI_ClearAdaptiveClassifier_0=yf=c.jd;e._emscripten_bind_TessBaseAPI_SetImage_1=zf=c.kd;e._emscripten_bind_TessBaseAPI_SetImage_5=Af=c.ld;e._emscripten_bind_TessBaseAPI_SetImageFile_1=Bf=c.md; e._emscripten_bind_TessBaseAPI_SetSourceResolution_1=Cf=c.nd;e._emscripten_bind_TessBaseAPI_SetRectangle_4=Df=c.od;e._emscripten_bind_TessBaseAPI_GetThresholdedImage_0=Ef=c.pd;e._emscripten_bind_TessBaseAPI_WriteImage_0=Ff=c.qd;e._emscripten_bind_TessBaseAPI_FindLines_0=Gf=c.rd;e._emscripten_bind_TessBaseAPI_GetGradient_0=Hf=c.sd;e._emscripten_bind_TessBaseAPI_GetRegions_1=If=c.td;e._emscripten_bind_TessBaseAPI_GetTextlines_2=Jf=c.ud;e._emscripten_bind_TessBaseAPI_GetTextlines_5=Kf=c.vd;e._emscripten_bind_TessBaseAPI_GetStrips_2= Lf=c.wd;e._emscripten_bind_TessBaseAPI_GetWords_1=Mf=c.xd;e._emscripten_bind_TessBaseAPI_GetConnectedComponents_1=Nf=c.yd;e._emscripten_bind_TessBaseAPI_GetComponentImages_4=Of=c.zd;e._emscripten_bind_TessBaseAPI_GetComponentImages_7=Pf=c.Ad;e._emscripten_bind_TessBaseAPI_GetThresholdedImageScaleFactor_0=Qf=c.Bd;e._emscripten_bind_TessBaseAPI_AnalyseLayout_0=Rf=c.Cd;e._emscripten_bind_TessBaseAPI_AnalyseLayout_1=Sf=c.Dd;e._emscripten_bind_TessBaseAPI_Recognize_1=Tf=c.Ed;e._emscripten_bind_TessBaseAPI_ProcessPages_4= Uf=c.Fd;e._emscripten_bind_TessBaseAPI_ProcessPage_6=Vf=c.Gd;e._emscripten_bind_TessBaseAPI_GetIterator_0=Wf=c.Hd;e._emscripten_bind_TessBaseAPI_GetUTF8Text_0=Xf=c.Id;e._emscripten_bind_TessBaseAPI_GetHOCRText_1=Yf=c.Jd;e._emscripten_bind_TessBaseAPI_GetJSONText_1=Zf=c.Kd;e._emscripten_bind_TessBaseAPI_GetTSVText_1=$f=c.Ld;e._emscripten_bind_TessBaseAPI_GetBoxText_1=ag=c.Md;e._emscripten_bind_TessBaseAPI_GetUNLVText_0=bg=c.Nd;e._emscripten_bind_TessBaseAPI_GetOsdText_1=cg=c.Od;e._emscripten_bind_TessBaseAPI_MeanTextConf_0= dg=c.Pd;e._emscripten_bind_TessBaseAPI_AllWordConfidences_0=eg=c.Qd;e._emscripten_bind_TessBaseAPI_Clear_0=fg=c.Rd;e._emscripten_bind_TessBaseAPI_End_0=gg=c.Sd;e._emscripten_bind_TessBaseAPI_ClearPersistentCache_0=hg=c.Td;e._emscripten_bind_TessBaseAPI_IsValidWord_1=ig=c.Ud;e._emscripten_bind_TessBaseAPI_IsValidCharacter_1=jg=c.Vd;e._emscripten_bind_TessBaseAPI_DetectOS_1=kg=c.Wd;e._emscripten_bind_TessBaseAPI_GetUnichar_1=lg=c.Xd;e._emscripten_bind_TessBaseAPI_GetDawg_1=mg=c.Yd;e._emscripten_bind_TessBaseAPI_NumDawgs_0= ng=c.Zd;e._emscripten_bind_TessBaseAPI_oem_0=og=c._d;e._emscripten_bind_TessBaseAPI___destroy___0=pg=c.$d;e._emscripten_bind_OSResults_OSResults_0=qg=c.ae;e._emscripten_bind_OSResults_print_scores_0=rg=c.be;e._emscripten_bind_OSResults_get_best_result_0=sg=c.ce;e._emscripten_bind_OSResults_get_unicharset_0=tg=c.de;e._emscripten_bind_OSResults___destroy___0=ug=c.ee;e._emscripten_bind_Pixa_get_n_0=vg=c.fe;e._emscripten_bind_Pixa_get_nalloc_0=wg=c.ge;e._emscripten_bind_Pixa_get_refcount_0=xg=c.he;e._emscripten_bind_Pixa_get_pix_0= yg=c.ie;e._emscripten_bind_Pixa_get_boxa_0=zg=c.je;e._emscripten_bind_Pixa___destroy___0=Ag=c.ke;e._emscripten_enum_PageIteratorLevel_RIL_BLOCK=Bg=c.le;e._emscripten_enum_PageIteratorLevel_RIL_PARA=Cg=c.me;e._emscripten_enum_PageIteratorLevel_RIL_TEXTLINE=Dg=c.ne;e._emscripten_enum_PageIteratorLevel_RIL_WORD=Eg=c.oe;e._emscripten_enum_PageIteratorLevel_RIL_SYMBOL=Fg=c.pe;e._emscripten_enum_OcrEngineMode_OEM_TESSERACT_ONLY=Gg=c.qe;e._emscripten_enum_OcrEngineMode_OEM_LSTM_ONLY=Hg=c.re;e._emscripten_enum_OcrEngineMode_OEM_TESSERACT_LSTM_COMBINED= Ig=c.se;e._emscripten_enum_OcrEngineMode_OEM_DEFAULT=Jg=c.te;e._emscripten_enum_OcrEngineMode_OEM_COUNT=Kg=c.ue;e._emscripten_enum_WritingDirection__WRITING_DIRECTION_LEFT_TO_RIGHT=Lg=c.ve;e._emscripten_enum_WritingDirection__WRITING_DIRECTION_RIGHT_TO_LEFT=Mg=c.we;e._emscripten_enum_WritingDirection__WRITING_DIRECTION_TOP_TO_BOTTOM=Ng=c.xe;e._emscripten_enum_PolyBlockType_PT_UNKNOWN=Og=c.ye;e._emscripten_enum_PolyBlockType_PT_FLOWING_TEXT=Pg=c.ze;e._emscripten_enum_PolyBlockType_PT_HEADING_TEXT= Qg=c.Ae;e._emscripten_enum_PolyBlockType_PT_PULLOUT_TEXT=Rg=c.Be;e._emscripten_enum_PolyBlockType_PT_EQUATION=Sg=c.Ce;e._emscripten_enum_PolyBlockType_PT_INLINE_EQUATION=Tg=c.De;e._emscripten_enum_PolyBlockType_PT_TABLE=Ug=c.Ee;e._emscripten_enum_PolyBlockType_PT_VERTICAL_TEXT=Vg=c.Fe;e._emscripten_enum_PolyBlockType_PT_CAPTION_TEXT=Wg=c.Ge;e._emscripten_enum_PolyBlockType_PT_FLOWING_IMAGE=Xg=c.He;e._emscripten_enum_PolyBlockType_PT_HEADING_IMAGE=Yg=c.Ie;e._emscripten_enum_PolyBlockType_PT_PULLOUT_IMAGE= Zg=c.Je;e._emscripten_enum_PolyBlockType_PT_HORZ_LINE=$g=c.Ke;e._emscripten_enum_PolyBlockType_PT_VERT_LINE=ah=c.Le;e._emscripten_enum_PolyBlockType_PT_NOISE=bh=c.Me;e._emscripten_enum_PolyBlockType_PT_COUNT=ch=c.Ne;e._emscripten_enum_StrongScriptDirection_DIR_NEUTRAL=dh=c.Oe;e._emscripten_enum_StrongScriptDirection_DIR_LEFT_TO_RIGHT=eh=c.Pe;e._emscripten_enum_StrongScriptDirection_DIR_RIGHT_TO_LEFT=fh=c.Qe;e._emscripten_enum_StrongScriptDirection_DIR_MIX=gh=c.Re;e._emscripten_enum_ParagraphJustification__JUSTIFICATION_UNKNOWN= hh=c.Se;e._emscripten_enum_ParagraphJustification__JUSTIFICATION_LEFT=ih=c.Te;e._emscripten_enum_ParagraphJustification__JUSTIFICATION_CENTER=jh=c.Ue;e._emscripten_enum_ParagraphJustification__JUSTIFICATION_RIGHT=kh=c.Ve;e._emscripten_enum_TextlineOrder__TEXTLINE_ORDER_LEFT_TO_RIGHT=lh=c.We;e._emscripten_enum_TextlineOrder__TEXTLINE_ORDER_RIGHT_TO_LEFT=mh=c.Xe;e._emscripten_enum_TextlineOrder__TEXTLINE_ORDER_TOP_TO_BOTTOM=nh=c.Ye;e._emscripten_enum_Orientation__ORIENTATION_PAGE_UP=oh=c.Ze;e._emscripten_enum_Orientation__ORIENTATION_PAGE_RIGHT= ph=c._e;e._emscripten_enum_Orientation__ORIENTATION_PAGE_DOWN=qh=c.$e;e._emscripten_enum_Orientation__ORIENTATION_PAGE_LEFT=rh=c.af;e._emscripten_enum_PageSegMode_PSM_OSD_ONLY=sh=c.bf;e._emscripten_enum_PageSegMode_PSM_AUTO_OSD=th=c.cf;e._emscripten_enum_PageSegMode_PSM_AUTO_ONLY=uh=c.df;e._emscripten_enum_PageSegMode_PSM_AUTO=vh=c.ef;e._emscripten_enum_PageSegMode_PSM_SINGLE_COLUMN=wh=c.ff;e._emscripten_enum_PageSegMode_PSM_SINGLE_BLOCK_VERT_TEXT=xh=c.gf;e._emscripten_enum_PageSegMode_PSM_SINGLE_BLOCK= yh=c.hf;e._emscripten_enum_PageSegMode_PSM_SINGLE_LINE=zh=c.jf;e._emscripten_enum_PageSegMode_PSM_SINGLE_WORD=Ah=c.kf;e._emscripten_enum_PageSegMode_PSM_CIRCLE_WORD=Bh=c.lf;e._emscripten_enum_PageSegMode_PSM_SINGLE_CHAR=Ch=c.mf;e._emscripten_enum_PageSegMode_PSM_SPARSE_TEXT=Dh=c.nf;e._emscripten_enum_PageSegMode_PSM_SPARSE_TEXT_OSD=Eh=c.of;e._emscripten_enum_PageSegMode_PSM_RAW_LINE=Fh=c.pf;e._emscripten_enum_PageSegMode_PSM_COUNT=Gh=c.qf;e._pixDestroy=c.rf;e._ptaDestroy=c.sf;e._boxaDestroy=c.tf; e._pixaDestroy=c.uf;e._pixReadMem=c.vf;e._free=Hh=c.wf;e._malloc=Ih=c.xf;e._pixReadHeaderMem=c.yf;kb=c.zf;Jh=c.Af;Kh=c.Bf;Lh=c.Cf;return Zh}var b={a:Xh};if(e.instantiateWasm)return new Promise(c=>{e.instantiateWasm(b,(d,f)=>{c(a(d,f))})});xa??=e.locateFile?e.locateFile("tesseract-core-simd-lstm.wasm",fa):fa+"tesseract-core-simd-lstm.wasm";return a((await Aa(b)).instance)}());Yh();function D(){}D.prototype=Object.create(D.prototype);D.prototype.constructor=D;D.prototype.If=D;D.Jf={}; e.WrapperObject=D;function $h(a){return(a||D).Jf}e.getCache=$h;function E(a,b){var c=$h(b),d=c[a];if(d)return d;d=Object.create((b||D).prototype);d.Df=a;return c[a]=d}e.wrapPointer=E;e.castObject=function(a,b){return E(a.Df,b)};e.NULL=E(0);e.destroy=function(a){if(!a.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";a.__destroy__();delete $h(a.If)[a.Df]};e.compare=function(a,b){return a.Df===b.Df};e.getPointer=function(a){return a.Df};e.getClass=function(a){return a.If}; var ai=0,bi=0,ci=0,di=[],ei=0;function F(){if(ei){for(var a=0;a=bi){0>=1;break;case 4:d>>=2;break;case 8:d>>=3}for(var f=0;f{oa=a;pa=b}); ;return moduleRtn}})();if(typeof exports==="object"&&typeof module==="object"){module.exports=TesseractCore;module.exports.default=TesseractCore}else if(typeof define==="function"&&define["amd"])define([],()=>TesseractCore);