This repository has been archived by the owner on Nov 23, 2023. It is now read-only.
forked from naptha/tesseract.js-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tesseract-core-simd.js
276 lines (271 loc) · 121 KB
/
tesseract-core-simd.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
var TesseractCore = (() => {
var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined;
if (typeof __filename !== 'undefined') _scriptDir = _scriptDir || __filename;
return (
function(TesseractCore = {}) {
var b;b||(b=typeof TesseractCore !== 'undefined' ? TesseractCore : {});var aa,ba;b.ready=new Promise((a,c)=>{aa=a;ba=c});var ca=Object.assign({},b),da="./this.program",ea=(a,c)=>{throw c;},fa="object"==typeof window,ha="function"==typeof importScripts,ia="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,f="",ja,ka,la;
if(ia){var fs=require("fs"),ma=require("path");f=ha?ma.dirname(f)+"/":__dirname+"/";ja=(a,c)=>{a=a.startsWith("file://")?new URL(a):ma.normalize(a);return fs.readFileSync(a,c?void 0:"utf8")};la=a=>{a=ja(a,!0);a.buffer||(a=new Uint8Array(a));return a};ka=(a,c,d,e=!0)=>{a=a.startsWith("file://")?new URL(a):ma.normalize(a);fs.readFile(a,e?void 0:"utf8",(g,h)=>{g?d(g):c(e?h.buffer:h)})};!b.thisProgram&&1<process.argv.length&&(da=process.argv[1].replace(/\\/g,"/"));process.argv.slice(2);ea=(a,c)=>{process.exitCode=
a;throw c;};b.inspect=()=>"[Emscripten Module object]"}else if(fa||ha)ha?f=self.location.href:"undefined"!=typeof document&&document.currentScript&&(f=document.currentScript.src),_scriptDir&&(f=_scriptDir),0!==f.indexOf("blob:")?f=f.substr(0,f.replace(/[?#].*/,"").lastIndexOf("/")+1):f="",ja=a=>{var c=new XMLHttpRequest;c.open("GET",a,!1);c.send(null);return c.responseText},ha&&(la=a=>{var c=new XMLHttpRequest;c.open("GET",a,!1);c.responseType="arraybuffer";c.send(null);return new Uint8Array(c.response)}),
ka=(a,c,d)=>{var e=new XMLHttpRequest;e.open("GET",a,!0);e.responseType="arraybuffer";e.onload=()=>{200==e.status||0==e.status&&e.response?c(e.response):d()};e.onerror=d;e.send(null)};var na=b.print||console.log.bind(console),oa=b.printErr||console.warn.bind(console);Object.assign(b,ca);ca=null;b.thisProgram&&(da=b.thisProgram);b.quit&&(ea=b.quit);var pa;b.wasmBinary&&(pa=b.wasmBinary);var noExitRuntime=b.noExitRuntime||!0;"object"!=typeof WebAssembly&&n("no native wasm support detected");
var ra,sa=!1,p,ta,ua,r,u,va,wa;function xa(){var a=ra.buffer;b.HEAP8=p=new Int8Array(a);b.HEAP16=ua=new Int16Array(a);b.HEAP32=r=new Int32Array(a);b.HEAPU8=ta=new Uint8Array(a);b.HEAPU16=new Uint16Array(a);b.HEAPU32=u=new Uint32Array(a);b.HEAPF32=va=new Float32Array(a);b.HEAPF64=wa=new Float64Array(a)}var ya,za=[],Aa=[],Ba=[],Ca=!1;function Da(){var a=b.preRun.shift();za.unshift(a)}var Ea=0,Fa=null,Ga=null;function Ha(){Ea++;b.monitorRunDependencies&&b.monitorRunDependencies(Ea)}
function Ia(){Ea--;b.monitorRunDependencies&&b.monitorRunDependencies(Ea);if(0==Ea&&(null!==Fa&&(clearInterval(Fa),Fa=null),Ga)){var a=Ga;Ga=null;a()}}function n(a){if(b.onAbort)b.onAbort(a);a="Aborted("+a+")";oa(a);sa=!0;a=new WebAssembly.RuntimeError(a+". Build with -sASSERTIONS for more info.");ba(a);throw a;}function Ja(a){return a.startsWith("data:application/octet-stream;base64,")}var Ka;Ka="tesseract-core-simd.wasm";if(!Ja(Ka)){var La=Ka;Ka=b.locateFile?b.locateFile(La,f):f+La}
function Ma(a){try{if(a==Ka&&pa)return new Uint8Array(pa);if(la)return la(a);throw"both async and sync fetching of the wasm failed";}catch(c){n(c)}}function Na(a){if(!pa&&(fa||ha)){if("function"==typeof fetch&&!a.startsWith("file://"))return fetch(a,{credentials:"same-origin"}).then(c=>{if(!c.ok)throw"failed to load wasm binary file at '"+a+"'";return c.arrayBuffer()}).catch(()=>Ma(a));if(ka)return new Promise((c,d)=>{ka(a,e=>c(new Uint8Array(e)),d)})}return Promise.resolve().then(()=>Ma(a))}
function Oa(a,c,d){return Na(a).then(e=>WebAssembly.instantiate(e,c)).then(e=>e).then(d,e=>{oa("failed to asynchronously prepare wasm: "+e);n(e)})}
function Pa(a,c){var d=Ka;return pa||"function"!=typeof WebAssembly.instantiateStreaming||Ja(d)||d.startsWith("file://")||ia||"function"!=typeof fetch?Oa(d,a,c):fetch(d,{credentials:"same-origin"}).then(e=>WebAssembly.instantiateStreaming(e,a).then(c,function(g){oa("wasm streaming compile failed: "+g);oa("falling back to ArrayBuffer instantiation");return Oa(d,a,c)}))}
var x,y,Qa={629164:a=>{b.TesseractProgress&&b.TesseractProgress(a)},629233:a=>{b.TesseractProgress&&b.TesseractProgress(a)},629302:a=>{b.TesseractProgress&&b.TesseractProgress(a)}};function Ra(a){this.name="ExitStatus";this.message="Program terminated with exit("+a+")";this.status=a}function Sa(a){for(;0<a.length;)a.shift()(b)}function Ta(a){for(var c=0,d=0;d<a.length;++d){var e=a.charCodeAt(d);127>=e?c++:2047>=e?c+=2:55296<=e&&57343>=e?(c+=4,++d):c+=3}return c}
function Ua(a,c,d,e){if(!(0<e))return 0;var g=d;e=d+e-1;for(var h=0;h<a.length;++h){var k=a.charCodeAt(h);if(55296<=k&&57343>=k){var m=a.charCodeAt(++h);k=65536+((k&1023)<<10)|m&1023}if(127>=k){if(d>=e)break;c[d++]=k}else{if(2047>=k){if(d+1>=e)break;c[d++]=192|k>>6}else{if(65535>=k){if(d+2>=e)break;c[d++]=224|k>>12}else{if(d+3>=e)break;c[d++]=240|k>>18;c[d++]=128|k>>12&63}c[d++]=128|k>>6&63}c[d++]=128|k&63}}c[d]=0;return d-g}var Va="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;
function Wa(a,c){for(var d=c+NaN,e=c;a[e]&&!(e>=d);)++e;if(16<e-c&&a.buffer&&Va)return Va.decode(a.subarray(c,e));for(d="";c<e;){var g=a[c++];if(g&128){var h=a[c++]&63;if(192==(g&224))d+=String.fromCharCode((g&31)<<6|h);else{var k=a[c++]&63;g=224==(g&240)?(g&15)<<12|h<<6|k:(g&7)<<18|h<<12|k<<6|a[c++]&63;65536>g?d+=String.fromCharCode(g):(g-=65536,d+=String.fromCharCode(55296|g>>10,56320|g&1023))}}else d+=String.fromCharCode(g)}return d}function z(a){return a?Wa(ta,a):""}
function Xa(a,c="i8"){c.endsWith("*")&&(c="*");switch(c){case "i1":return p[a>>0];case "i8":return p[a>>0];case "i16":return ua[a>>1];case "i32":return r[a>>2];case "i64":return r[a>>2];case "float":return va[a>>2];case "double":return wa[a>>3];case "*":return u[a>>2];default:n("invalid type for getValue: "+c)}}
function Ya(a,c,d="i8"){d.endsWith("*")&&(d="*");switch(d){case "i1":p[a>>0]=c;break;case "i8":p[a>>0]=c;break;case "i16":ua[a>>1]=c;break;case "i32":r[a>>2]=c;break;case "i64":y=[c>>>0,(x=c,1<=+Math.abs(x)?0<x?+Math.floor(x/4294967296)>>>0:~~+Math.ceil((x-+(~~x>>>0))/4294967296)>>>0:0)];r[a>>2]=y[0];r[a+4>>2]=y[1];break;case "float":va[a>>2]=c;break;case "double":wa[a>>3]=c;break;case "*":u[a>>2]=c;break;default:n("invalid type for setValue: "+d)}}
function Za(a){this.Bf=a-24;this.qh=function(c){u[this.Bf+4>>2]=c};this.Bg=function(c){u[this.Bf+8>>2]=c};this.bg=function(c,d){this.Of();this.qh(c);this.Bg(d)};this.Of=function(){u[this.Bf+16>>2]=0}}
var $a=0,ab=0,bb=(a,c)=>{for(var d=0,e=a.length-1;0<=e;e--){var g=a[e];"."===g?a.splice(e,1):".."===g?(a.splice(e,1),d++):d&&(a.splice(e,1),d--)}if(c)for(;d;d--)a.unshift("..");return a},cb=a=>{var c="/"===a.charAt(0),d="/"===a.substr(-1);(a=bb(a.split("/").filter(e=>!!e),!c).join("/"))||c||(a=".");a&&d&&(a+="/");return(c?"/":"")+a},db=a=>{var c=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);a=c[0];c=c[1];if(!a&&!c)return".";c&&(c=c.substr(0,c.length-1));return a+
c},eb=a=>{if("/"===a)return"/";a=cb(a);a=a.replace(/\/$/,"");var c=a.lastIndexOf("/");return-1===c?a:a.substr(c+1)},fb=(a,c)=>cb(a+"/"+c);function gb(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return d=>crypto.getRandomValues(d);if(ia)try{var a=require("crypto");if(a.randomFillSync)return d=>a.randomFillSync(d);var c=a.randomBytes;return d=>(d.set(c(d.byteLength)),d)}catch(d){}n("initRandomDevice")}function hb(a){return(hb=gb())(a)}
function ib(){for(var a="",c=!1,d=arguments.length-1;-1<=d&&!c;d--){c=0<=d?arguments[d]:A.cwd();if("string"!=typeof c)throw new TypeError("Arguments to path.resolve must be strings");if(!c)return"";a=c+"/"+a;c="/"===c.charAt(0)}a=bb(a.split("/").filter(e=>!!e),!c).join("/");return(c?"/":"")+a||"."}
var jb=(a,c)=>{function d(k){for(var m=0;m<k.length&&""===k[m];m++);for(var v=k.length-1;0<=v&&""===k[v];v--);return m>v?[]:k.slice(m,v-m+1)}a=ib(a).substr(1);c=ib(c).substr(1);a=d(a.split("/"));c=d(c.split("/"));for(var e=Math.min(a.length,c.length),g=e,h=0;h<e;h++)if(a[h]!==c[h]){g=h;break}e=[];for(h=g;h<a.length;h++)e.push("..");e=e.concat(c.slice(g));return e.join("/")};function kb(a,c){var d=Array(Ta(a)+1);a=Ua(a,d,0,d.length);c&&(d.length=a);return d}var lb=[];
function mb(a,c){lb[a]={input:[],output:[],lg:c};A.Wg(a,nb)}
var nb={open:function(a){var c=lb[a.node.rdev];if(!c)throw new A.Cf(43);a.tty=c;a.seekable=!1},close:function(a){a.tty.lg.fsync(a.tty)},fsync:function(a){a.tty.lg.fsync(a.tty)},read:function(a,c,d,e){if(!a.tty||!a.tty.lg.jh)throw new A.Cf(60);for(var g=0,h=0;h<e;h++){try{var k=a.tty.lg.jh(a.tty)}catch(m){throw new A.Cf(29);}if(void 0===k&&0===g)throw new A.Cf(6);if(null===k||void 0===k)break;g++;c[d+h]=k}g&&(a.node.timestamp=Date.now());return g},write:function(a,c,d,e){if(!a.tty||!a.tty.lg.Tg)throw new A.Cf(60);
try{for(var g=0;g<e;g++)a.tty.lg.Tg(a.tty,c[d+g])}catch(h){throw new A.Cf(29);}e&&(a.node.timestamp=Date.now());return g}},ob={jh:function(a){if(!a.input.length){var c=null;if(ia){var d=Buffer.alloc(256),e=0;try{e=fs.readSync(process.stdin.fd,d,0,256,-1)}catch(g){if(g.toString().includes("EOF"))e=0;else throw g;}0<e?c=d.slice(0,e).toString("utf-8"):c=null}else"undefined"!=typeof window&&"function"==typeof window.prompt?(c=window.prompt("Input: "),null!==c&&(c+="\n")):"function"==typeof readline&&
(c=readline(),null!==c&&(c+="\n"));if(!c)return null;a.input=kb(c,!0)}return a.input.shift()},Tg:function(a,c){null===c||10===c?(na(Wa(a.output,0)),a.output=[]):0!=c&&a.output.push(c)},fsync:function(a){a.output&&0<a.output.length&&(na(Wa(a.output,0)),a.output=[])}},pb={Tg:function(a,c){null===c||10===c?(oa(Wa(a.output,0)),a.output=[]):0!=c&&a.output.push(c)},fsync:function(a){a.output&&0<a.output.length&&(oa(Wa(a.output,0)),a.output=[])}},B={Uf:null,Lf:function(){return B.createNode(null,"/",16895,
0)},createNode:function(a,c,d,e){if(A.di(d)||A.isFIFO(d))throw new A.Cf(63);B.Uf||(B.Uf={dir:{node:{Rf:B.Df.Rf,Nf:B.Df.Nf,lookup:B.Df.lookup,Yf:B.Df.Yf,rename:B.Df.rename,unlink:B.Df.unlink,rmdir:B.Df.rmdir,readdir:B.Df.readdir,symlink:B.Df.symlink},stream:{Sf:B.Ff.Sf}},file:{node:{Rf:B.Df.Rf,Nf:B.Df.Nf},stream:{Sf:B.Ff.Sf,read:B.Ff.read,write:B.Ff.write,mg:B.Ff.mg,eg:B.Ff.eg,kg:B.Ff.kg}},link:{node:{Rf:B.Df.Rf,Nf:B.Df.Nf,readlink:B.Df.readlink},stream:{}},Zg:{node:{Rf:B.Df.Rf,Nf:B.Df.Nf},stream:A.zh}});
d=A.createNode(a,c,d,e);A.Mf(d.mode)?(d.Df=B.Uf.dir.node,d.Ff=B.Uf.dir.stream,d.Ef={}):A.isFile(d.mode)?(d.Df=B.Uf.file.node,d.Ff=B.Uf.file.stream,d.Jf=0,d.Ef=null):A.pg(d.mode)?(d.Df=B.Uf.link.node,d.Ff=B.Uf.link.stream):A.ug(d.mode)&&(d.Df=B.Uf.Zg.node,d.Ff=B.Uf.Zg.stream);d.timestamp=Date.now();a&&(a.Ef[c]=d,a.timestamp=d.timestamp);return d},xi:function(a){return a.Ef?a.Ef.subarray?a.Ef.subarray(0,a.Jf):new Uint8Array(a.Ef):new Uint8Array(0)},gh:function(a,c){var d=a.Ef?a.Ef.length:0;d>=c||(c=
Math.max(c,d*(1048576>d?2:1.125)>>>0),0!=d&&(c=Math.max(c,256)),d=a.Ef,a.Ef=new Uint8Array(c),0<a.Jf&&a.Ef.set(d.subarray(0,a.Jf),0))},mi:function(a,c){if(a.Jf!=c)if(0==c)a.Ef=null,a.Jf=0;else{var d=a.Ef;a.Ef=new Uint8Array(c);d&&a.Ef.set(d.subarray(0,Math.min(c,a.Jf)));a.Jf=c}},Df:{Rf:function(a){var c={};c.dev=A.ug(a.mode)?a.id:1;c.ino=a.id;c.mode=a.mode;c.nlink=1;c.uid=0;c.gid=0;c.rdev=a.rdev;A.Mf(a.mode)?c.size=4096:A.isFile(a.mode)?c.size=a.Jf:A.pg(a.mode)?c.size=a.link.length:c.size=0;c.atime=
new Date(a.timestamp);c.mtime=new Date(a.timestamp);c.ctime=new Date(a.timestamp);c.xh=4096;c.blocks=Math.ceil(c.size/c.xh);return c},Nf:function(a,c){void 0!==c.mode&&(a.mode=c.mode);void 0!==c.timestamp&&(a.timestamp=c.timestamp);void 0!==c.size&&B.mi(a,c.size)},lookup:function(){throw A.Gg[44];},Yf:function(a,c,d,e){return B.createNode(a,c,d,e)},rename:function(a,c,d){if(A.Mf(a.mode)){try{var e=A.Xf(c,d)}catch(h){}if(e)for(var g in e.Ef)throw new A.Cf(55);}delete a.parent.Ef[a.name];a.parent.timestamp=
Date.now();a.name=d;c.Ef[d]=a;c.timestamp=a.parent.timestamp;a.parent=c},unlink:function(a,c){delete a.Ef[c];a.timestamp=Date.now()},rmdir:function(a,c){var d=A.Xf(a,c),e;for(e in d.Ef)throw new A.Cf(55);delete a.Ef[c];a.timestamp=Date.now()},readdir:function(a){var c=[".",".."],d;for(d in a.Ef)a.Ef.hasOwnProperty(d)&&c.push(d);return c},symlink:function(a,c,d){a=B.createNode(a,c,41471,0);a.link=d;return a},readlink:function(a){if(!A.pg(a.mode))throw new A.Cf(28);return a.link}},Ff:{read:function(a,
c,d,e,g){var h=a.node.Ef;if(g>=a.node.Jf)return 0;a=Math.min(a.node.Jf-g,e);if(8<a&&h.subarray)c.set(h.subarray(g,g+a),d);else for(e=0;e<a;e++)c[d+e]=h[g+e];return a},write:function(a,c,d,e,g,h){c.buffer===p.buffer&&(h=!1);if(!e)return 0;a=a.node;a.timestamp=Date.now();if(c.subarray&&(!a.Ef||a.Ef.subarray)){if(h)return a.Ef=c.subarray(d,d+e),a.Jf=e;if(0===a.Jf&&0===g)return a.Ef=c.slice(d,d+e),a.Jf=e;if(g+e<=a.Jf)return a.Ef.set(c.subarray(d,d+e),g),e}B.gh(a,g+e);if(a.Ef.subarray&&c.subarray)a.Ef.set(c.subarray(d,
d+e),g);else for(h=0;h<e;h++)a.Ef[g+h]=c[d+h];a.Jf=Math.max(a.Jf,g+e);return e},Sf:function(a,c,d){1===d?c+=a.position:2===d&&A.isFile(a.node.mode)&&(c+=a.node.Jf);if(0>c)throw new A.Cf(28);return c},mg:function(a,c,d){B.gh(a.node,c+d);a.node.Jf=Math.max(a.node.Jf,c+d)},eg:function(a,c,d,e,g){if(!A.isFile(a.node.mode))throw new A.Cf(43);a=a.node.Ef;if(g&2||a.buffer!==p.buffer){if(0<d||d+c<a.length)a.subarray?a=a.subarray(d,d+c):a=Array.prototype.slice.call(a,d,d+c);d=!0;n();c=void 0;if(!c)throw new A.Cf(48);
p.set(a,c)}else d=!1,c=a.byteOffset;return{Bf:c,vh:d}},kg:function(a,c,d,e){B.Ff.write(a,c,0,e,d,!1);return 0}}};function qb(a,c,d){var e="al "+a;ka(a,g=>{g||n(`Loading data file "${a}" failed (no arrayBuffer).`);c(new Uint8Array(g));e&&Ia(e)},()=>{if(d)d();else throw`Loading data file "${a}" failed.`;});e&&Ha(e)}var rb=b.preloadPlugins||[];function sb(a,c,d,e){"undefined"!=typeof Browser&&Browser.bg();var g=!1;rb.forEach(function(h){!g&&h.canHandle(c)&&(h.handle(a,c,d,e),g=!0)});return g}
function tb(a,c){var d=0;a&&(d|=365);c&&(d|=146);return d}
var A={root:null,rg:[],eh:{},streams:[],hi:1,Tf:null,dh:"/",Ng:!1,nh:!0,Cf:null,Gg:{},Hh:null,yg:0,If:(a,c={})=>{a=ib(a);if(!a)return{path:"",node:null};c=Object.assign({Eg:!0,Vg:0},c);if(8<c.Vg)throw new A.Cf(32);a=a.split("/").filter(k=>!!k);for(var d=A.root,e="/",g=0;g<a.length;g++){var h=g===a.length-1;if(h&&c.parent)break;d=A.Xf(d,a[g]);e=cb(e+"/"+a[g]);A.cg(d)&&(!h||h&&c.Eg)&&(d=d.qg.root);if(!h||c.Qf)for(h=0;A.pg(d.mode);)if(d=A.readlink(e),e=ib(db(e),d),d=A.If(e,{Vg:c.Vg+1}).node,40<h++)throw new A.Cf(32);
}return{path:e,node:d}},Zf:a=>{for(var c;;){if(A.vg(a))return a=a.Lf.oh,c?"/"!==a[a.length-1]?a+"/"+c:a+c:a;c=c?a.name+"/"+c:a.name;a=a.parent}},Mg:(a,c)=>{for(var d=0,e=0;e<c.length;e++)d=(d<<5)-d+c.charCodeAt(e)|0;return(a+d>>>0)%A.Tf.length},lh:a=>{var c=A.Mg(a.parent.id,a.name);a.fg=A.Tf[c];A.Tf[c]=a},mh:a=>{var c=A.Mg(a.parent.id,a.name);if(A.Tf[c]===a)A.Tf[c]=a.fg;else for(c=A.Tf[c];c;){if(c.fg===a){c.fg=a.fg;break}c=c.fg}},Xf:(a,c)=>{var d=A.fi(a);if(d)throw new A.Cf(d,a);for(d=A.Tf[A.Mg(a.id,
c)];d;d=d.fg){var e=d.name;if(d.parent.id===a.id&&e===c)return d}return A.lookup(a,c)},createNode:(a,c,d,e)=>{a=new A.rh(a,c,d,e);A.lh(a);return a},Dg:a=>{A.mh(a)},vg:a=>a===a.parent,cg:a=>!!a.qg,isFile:a=>32768===(a&61440),Mf:a=>16384===(a&61440),pg:a=>40960===(a&61440),ug:a=>8192===(a&61440),di:a=>24576===(a&61440),isFIFO:a=>4096===(a&61440),isSocket:a=>49152===(a&49152),hh:a=>{var c=["r","w","rw"][a&3];a&512&&(c+="w");return c},gg:(a,c)=>{if(A.nh)return 0;if(!c.includes("r")||a.mode&292){if(c.includes("w")&&
!(a.mode&146)||c.includes("x")&&!(a.mode&73))return 2}else return 2;return 0},fi:a=>{var c=A.gg(a,"x");return c?c:a.Df.lookup?0:2},Sg:(a,c)=>{try{return A.Xf(a,c),20}catch(d){}return A.gg(a,"wx")},wg:(a,c,d)=>{try{var e=A.Xf(a,c)}catch(g){return g.Kf}if(a=A.gg(a,"wx"))return a;if(d){if(!A.Mf(e.mode))return 54;if(A.vg(e)||A.Zf(e)===A.cwd())return 10}else if(A.Mf(e.mode))return 31;return 0},gi:(a,c)=>a?A.pg(a.mode)?32:A.Mf(a.mode)&&("r"!==A.hh(c)||c&512)?31:A.gg(a,A.hh(c)):44,sh:4096,ii:(a=0,c=A.sh)=>
{for(;a<=c;a++)if(!A.streams[a])return a;throw new A.Cf(33);},ng:a=>A.streams[a],bh:(a,c,d)=>{A.sg||(A.sg=function(){this.Of={}},A.sg.prototype={},Object.defineProperties(A.sg.prototype,{object:{get:function(){return this.node},set:function(e){this.node=e}},flags:{get:function(){return this.Of.flags},set:function(e){this.Of.flags=e}},position:{get:function(){return this.Of.position},set:function(e){this.Of.position=e}}}));a=Object.assign(new A.sg,a);c=A.ii(c,d);a.fd=c;return A.streams[c]=a},Ah:a=>
{A.streams[a]=null},zh:{open:a=>{a.Ff=A.Ih(a.node.rdev).Ff;a.Ff.open&&a.Ff.open(a)},Sf:()=>{throw new A.Cf(70);}},Rg:a=>a>>8,yi:a=>a&255,dg:(a,c)=>a<<8|c,Wg:(a,c)=>{A.eh[a]={Ff:c}},Ih:a=>A.eh[a],ih:a=>{var c=[];for(a=[a];a.length;){var d=a.pop();c.push(d);a.push.apply(a,d.rg)}return c},ph:(a,c)=>{function d(k){A.yg--;return c(k)}function e(k){if(k){if(!e.Gh)return e.Gh=!0,d(k)}else++h>=g.length&&d(null)}"function"==typeof a&&(c=a,a=!1);A.yg++;1<A.yg&&oa("warning: "+A.yg+" FS.syncfs operations in flight at once, probably just doing extra work");
var g=A.ih(A.root.Lf),h=0;g.forEach(k=>{if(!k.type.ph)return e(null);k.type.ph(k,a,e)})},Lf:(a,c,d)=>{var e="/"===d,g=!d;if(e&&A.root)throw new A.Cf(10);if(!e&&!g){var h=A.If(d,{Eg:!1});d=h.path;h=h.node;if(A.cg(h))throw new A.Cf(10);if(!A.Mf(h.mode))throw new A.Cf(54);}c={type:a,Bi:c,oh:d,rg:[]};a=a.Lf(c);a.Lf=c;c.root=a;e?A.root=a:h&&(h.qg=c,h.Lf&&h.Lf.rg.push(c));return a},Ei:a=>{a=A.If(a,{Eg:!1});if(!A.cg(a.node))throw new A.Cf(28);a=a.node;var c=a.qg,d=A.ih(c);Object.keys(A.Tf).forEach(e=>{for(e=
A.Tf[e];e;){var g=e.fg;d.includes(e.Lf)&&A.Dg(e);e=g}});a.qg=null;a.Lf.rg.splice(a.Lf.rg.indexOf(c),1)},lookup:(a,c)=>a.Df.lookup(a,c),Yf:(a,c,d)=>{var e=A.If(a,{parent:!0}).node;a=eb(a);if(!a||"."===a||".."===a)throw new A.Cf(28);var g=A.Sg(e,a);if(g)throw new A.Cf(g);if(!e.Df.Yf)throw new A.Cf(63);return e.Df.Yf(e,a,c,d)},create:(a,c)=>A.Yf(a,(void 0!==c?c:438)&4095|32768,0),mkdir:(a,c)=>A.Yf(a,(void 0!==c?c:511)&1023|16384,0),zi:(a,c)=>{a=a.split("/");for(var d="",e=0;e<a.length;++e)if(a[e]){d+=
"/"+a[e];try{A.mkdir(d,c)}catch(g){if(20!=g.Kf)throw g;}}},xg:(a,c,d)=>{"undefined"==typeof d&&(d=c,c=438);return A.Yf(a,c|8192,d)},symlink:(a,c)=>{if(!ib(a))throw new A.Cf(44);var d=A.If(c,{parent:!0}).node;if(!d)throw new A.Cf(44);c=eb(c);var e=A.Sg(d,c);if(e)throw new A.Cf(e);if(!d.Df.symlink)throw new A.Cf(63);return d.Df.symlink(d,c,a)},rename:(a,c)=>{var d=db(a),e=db(c),g=eb(a),h=eb(c);var k=A.If(a,{parent:!0});var m=k.node;k=A.If(c,{parent:!0});k=k.node;if(!m||!k)throw new A.Cf(44);if(m.Lf!==
k.Lf)throw new A.Cf(75);var v=A.Xf(m,g);a=jb(a,e);if("."!==a.charAt(0))throw new A.Cf(28);a=jb(c,d);if("."!==a.charAt(0))throw new A.Cf(55);try{var q=A.Xf(k,h)}catch(t){}if(v!==q){c=A.Mf(v.mode);if(g=A.wg(m,g,c))throw new A.Cf(g);if(g=q?A.wg(k,h,c):A.Sg(k,h))throw new A.Cf(g);if(!m.Df.rename)throw new A.Cf(63);if(A.cg(v)||q&&A.cg(q))throw new A.Cf(10);if(k!==m&&(g=A.gg(m,"w")))throw new A.Cf(g);A.mh(v);try{m.Df.rename(v,k,h)}catch(t){throw t;}finally{A.lh(v)}}},rmdir:a=>{var c=A.If(a,{parent:!0}).node;
a=eb(a);var d=A.Xf(c,a),e=A.wg(c,a,!0);if(e)throw new A.Cf(e);if(!c.Df.rmdir)throw new A.Cf(63);if(A.cg(d))throw new A.Cf(10);c.Df.rmdir(c,a);A.Dg(d)},readdir:a=>{a=A.If(a,{Qf:!0}).node;if(!a.Df.readdir)throw new A.Cf(54);return a.Df.readdir(a)},unlink:a=>{var c=A.If(a,{parent:!0}).node;if(!c)throw new A.Cf(44);a=eb(a);var d=A.Xf(c,a),e=A.wg(c,a,!1);if(e)throw new A.Cf(e);if(!c.Df.unlink)throw new A.Cf(63);if(A.cg(d))throw new A.Cf(10);c.Df.unlink(c,a);A.Dg(d)},readlink:a=>{a=A.If(a).node;if(!a)throw new A.Cf(44);
if(!a.Df.readlink)throw new A.Cf(28);return ib(A.Zf(a.parent),a.Df.readlink(a))},stat:(a,c)=>{a=A.If(a,{Qf:!c}).node;if(!a)throw new A.Cf(44);if(!a.Df.Rf)throw new A.Cf(63);return a.Df.Rf(a)},lstat:a=>A.stat(a,!0),chmod:(a,c,d)=>{a="string"==typeof a?A.If(a,{Qf:!d}).node:a;if(!a.Df.Nf)throw new A.Cf(63);a.Df.Nf(a,{mode:c&4095|a.mode&-4096,timestamp:Date.now()})},lchmod:(a,c)=>{A.chmod(a,c,!0)},fchmod:(a,c)=>{a=A.ng(a);if(!a)throw new A.Cf(8);A.chmod(a.node,c)},chown:(a,c,d,e)=>{a="string"==typeof a?
A.If(a,{Qf:!e}).node:a;if(!a.Df.Nf)throw new A.Cf(63);a.Df.Nf(a,{timestamp:Date.now()})},lchown:(a,c,d)=>{A.chown(a,c,d,!0)},fchown:(a,c,d)=>{a=A.ng(a);if(!a)throw new A.Cf(8);A.chown(a.node,c,d)},truncate:(a,c)=>{if(0>c)throw new A.Cf(28);a="string"==typeof a?A.If(a,{Qf:!0}).node:a;if(!a.Df.Nf)throw new A.Cf(63);if(A.Mf(a.mode))throw new A.Cf(31);if(!A.isFile(a.mode))throw new A.Cf(28);var d=A.gg(a,"w");if(d)throw new A.Cf(d);a.Df.Nf(a,{size:c,timestamp:Date.now()})},wi:(a,c)=>{a=A.ng(a);if(!a)throw new A.Cf(8);
if(0===(a.flags&2097155))throw new A.Cf(28);A.truncate(a.node,c)},Fi:(a,c,d)=>{a=A.If(a,{Qf:!0}).node;a.Df.Nf(a,{timestamp:Math.max(c,d)})},open:(a,c,d)=>{if(""===a)throw new A.Cf(44);if("string"==typeof c){var e={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[c];if("undefined"==typeof e)throw Error("Unknown file open mode: "+c);c=e}d=c&64?("undefined"==typeof d?438:d)&4095|32768:0;if("object"==typeof a)var g=a;else{a=cb(a);try{g=A.If(a,{Qf:!(c&131072)}).node}catch(h){}}e=!1;if(c&64)if(g){if(c&128)throw new A.Cf(20);
}else g=A.Yf(a,d,0),e=!0;if(!g)throw new A.Cf(44);A.ug(g.mode)&&(c&=-513);if(c&65536&&!A.Mf(g.mode))throw new A.Cf(54);if(!e&&(d=A.gi(g,c)))throw new A.Cf(d);c&512&&!e&&A.truncate(g,0);c&=-131713;g=A.bh({node:g,path:A.Zf(g),flags:c,seekable:!0,position:0,Ff:g.Ff,ui:[],error:!1});g.Ff.open&&g.Ff.open(g);!b.logReadFiles||c&1||(A.Ug||(A.Ug={}),a in A.Ug||(A.Ug[a]=1));return g},close:a=>{if(A.og(a))throw new A.Cf(8);a.Lg&&(a.Lg=null);try{a.Ff.close&&a.Ff.close(a)}catch(c){throw c;}finally{A.Ah(a.fd)}a.fd=
null},og:a=>null===a.fd,Sf:(a,c,d)=>{if(A.og(a))throw new A.Cf(8);if(!a.seekable||!a.Ff.Sf)throw new A.Cf(70);if(0!=d&&1!=d&&2!=d)throw new A.Cf(28);a.position=a.Ff.Sf(a,c,d);a.ui=[];return a.position},read:(a,c,d,e,g)=>{if(0>e||0>g)throw new A.Cf(28);if(A.og(a))throw new A.Cf(8);if(1===(a.flags&2097155))throw new A.Cf(8);if(A.Mf(a.node.mode))throw new A.Cf(31);if(!a.Ff.read)throw new A.Cf(28);var h="undefined"!=typeof g;if(!h)g=a.position;else if(!a.seekable)throw new A.Cf(70);c=a.Ff.read(a,c,d,
e,g);h||(a.position+=c);return c},write:(a,c,d,e,g,h)=>{if(0>e||0>g)throw new A.Cf(28);if(A.og(a))throw new A.Cf(8);if(0===(a.flags&2097155))throw new A.Cf(8);if(A.Mf(a.node.mode))throw new A.Cf(31);if(!a.Ff.write)throw new A.Cf(28);a.seekable&&a.flags&1024&&A.Sf(a,0,2);var k="undefined"!=typeof g;if(!k)g=a.position;else if(!a.seekable)throw new A.Cf(70);c=a.Ff.write(a,c,d,e,g,h);k||(a.position+=c);return c},mg:(a,c,d)=>{if(A.og(a))throw new A.Cf(8);if(0>c||0>=d)throw new A.Cf(28);if(0===(a.flags&
2097155))throw new A.Cf(8);if(!A.isFile(a.node.mode)&&!A.Mf(a.node.mode))throw new A.Cf(43);if(!a.Ff.mg)throw new A.Cf(138);a.Ff.mg(a,c,d)},eg:(a,c,d,e,g)=>{if(0!==(e&2)&&0===(g&2)&&2!==(a.flags&2097155))throw new A.Cf(2);if(1===(a.flags&2097155))throw new A.Cf(2);if(!a.Ff.eg)throw new A.Cf(43);return a.Ff.eg(a,c,d,e,g)},kg:(a,c,d,e,g)=>a.Ff.kg?a.Ff.kg(a,c,d,e,g):0,Ai:()=>0,Og:(a,c,d)=>{if(!a.Ff.Og)throw new A.Cf(59);return a.Ff.Og(a,c,d)},readFile:(a,c={})=>{c.flags=c.flags||0;c.encoding=c.encoding||
"binary";if("utf8"!==c.encoding&&"binary"!==c.encoding)throw Error('Invalid encoding type "'+c.encoding+'"');var d,e=A.open(a,c.flags);a=A.stat(a).size;var g=new Uint8Array(a);A.read(e,g,0,a,0);"utf8"===c.encoding?d=Wa(g,0):"binary"===c.encoding&&(d=g);A.close(e);return d},writeFile:(a,c,d={})=>{d.flags=d.flags||577;a=A.open(a,d.flags,d.mode);if("string"==typeof c){var e=new Uint8Array(Ta(c)+1);c=Ua(c,e,0,e.length);A.write(a,e,0,c,void 0,d.yh)}else if(ArrayBuffer.isView(c))A.write(a,c,0,c.byteLength,
void 0,d.yh);else throw Error("Unsupported data type");A.close(a)},cwd:()=>A.dh,chdir:a=>{a=A.If(a,{Qf:!0});if(null===a.node)throw new A.Cf(44);if(!A.Mf(a.node.mode))throw new A.Cf(54);var c=A.gg(a.node,"x");if(c)throw new A.Cf(c);A.dh=a.path},Ch:()=>{A.mkdir("/tmp");A.mkdir("/home");A.mkdir("/home/web_user")},Bh:()=>{A.mkdir("/dev");A.Wg(A.dg(1,3),{read:()=>0,write:(e,g,h,k)=>k});A.xg("/dev/null",A.dg(1,3));mb(A.dg(5,0),ob);mb(A.dg(6,0),pb);A.xg("/dev/tty",A.dg(5,0));A.xg("/dev/tty1",A.dg(6,0));
var a=new Uint8Array(1024),c=0,d=()=>{0===c&&(c=hb(a).byteLength);return a[--c]};A.Pf("/dev","random",d);A.Pf("/dev","urandom",d);A.mkdir("/dev/shm");A.mkdir("/dev/shm/tmp")},Eh:()=>{A.mkdir("/proc");var a=A.mkdir("/proc/self");A.mkdir("/proc/self/fd");A.Lf({Lf:()=>{var c=A.createNode(a,"fd",16895,73);c.Df={lookup:(d,e)=>{var g=A.ng(+e);if(!g)throw new A.Cf(8);d={parent:null,Lf:{oh:"fake"},Df:{readlink:()=>g.path}};return d.parent=d}};return c}},{},"/proc/self/fd")},Fh:()=>{b.stdin?A.Pf("/dev","stdin",
b.stdin):A.symlink("/dev/tty","/dev/stdin");b.stdout?A.Pf("/dev","stdout",null,b.stdout):A.symlink("/dev/tty","/dev/stdout");b.stderr?A.Pf("/dev","stderr",null,b.stderr):A.symlink("/dev/tty1","/dev/stderr");A.open("/dev/stdin",0);A.open("/dev/stdout",1);A.open("/dev/stderr",1)},fh:()=>{A.Cf||(A.Cf=function(a,c){this.name="ErrnoError";this.node=c;this.ni=function(d){this.Kf=d};this.ni(a);this.message="FS error"},A.Cf.prototype=Error(),A.Cf.prototype.constructor=A.Cf,[44].forEach(a=>{A.Gg[a]=new A.Cf(a);
A.Gg[a].stack="<generic error, no stack>"}))},oi:()=>{A.fh();A.Tf=Array(4096);A.Lf(B,{},"/");A.Ch();A.Bh();A.Eh();A.Hh={MEMFS:B}},bg:(a,c,d)=>{A.bg.Ng=!0;A.fh();b.stdin=a||b.stdin;b.stdout=c||b.stdout;b.stderr=d||b.stderr;A.Fh()},Ci:()=>{A.bg.Ng=!1;for(var a=0;a<A.streams.length;a++){var c=A.streams[a];c&&A.close(c)}},vi:(a,c)=>{a=A.wh(a,c);return a.exists?a.object:null},wh:(a,c)=>{try{var d=A.If(a,{Qf:!c});a=d.path}catch(g){}var e={vg:!1,exists:!1,error:0,name:null,path:null,object:null,ji:!1,li:null,
ki:null};try{d=A.If(a,{parent:!0}),e.ji=!0,e.li=d.path,e.ki=d.node,e.name=eb(a),d=A.If(a,{Qf:!c}),e.exists=!0,e.path=d.path,e.object=d.node,e.name=d.node.name,e.vg="/"===d.path}catch(g){e.error=g.Kf}return e},Cg:(a,c)=>{a="string"==typeof a?a:A.Zf(a);for(c=c.split("/").reverse();c.length;){var d=c.pop();if(d){var e=cb(a+"/"+d);try{A.mkdir(e)}catch(g){}a=e}}return e},Dh:(a,c,d,e,g)=>{a="string"==typeof a?a:A.Zf(a);c=cb(a+"/"+c);return A.create(c,tb(e,g))},tg:(a,c,d,e,g,h)=>{var k=c;a&&(a="string"==
typeof a?a:A.Zf(a),k=c?cb(a+"/"+c):a);a=tb(e,g);k=A.create(k,a);if(d){if("string"==typeof d){c=Array(d.length);e=0;for(g=d.length;e<g;++e)c[e]=d.charCodeAt(e);d=c}A.chmod(k,a|146);c=A.open(k,577);A.write(c,d,0,d.length,0,h);A.close(c);A.chmod(k,a)}return k},Pf:(a,c,d,e)=>{a=fb("string"==typeof a?a:A.Zf(a),c);c=tb(!!d,!!e);A.Pf.Rg||(A.Pf.Rg=64);var g=A.dg(A.Pf.Rg++,0);A.Wg(g,{open:h=>{h.seekable=!1},close:()=>{e&&e.buffer&&e.buffer.length&&e(10)},read:(h,k,m,v)=>{for(var q=0,t=0;t<v;t++){try{var F=
d()}catch(U){throw new A.Cf(29);}if(void 0===F&&0===q)throw new A.Cf(6);if(null===F||void 0===F)break;q++;k[m+t]=F}q&&(h.node.timestamp=Date.now());return q},write:(h,k,m,v)=>{for(var q=0;q<v;q++)try{e(k[m+q])}catch(t){throw new A.Cf(29);}v&&(h.node.timestamp=Date.now());return q}});return A.xg(a,c,g)},Fg:a=>{if(a.Pg||a.ei||a.link||a.Ef)return!0;if("undefined"!=typeof XMLHttpRequest)throw Error("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.");
if(ja)try{a.Ef=kb(ja(a.url),!0),a.Jf=a.Ef.length}catch(c){throw new A.Cf(29);}else throw Error("Cannot load without read() or XMLHttpRequest.");},$g:(a,c,d,e,g)=>{function h(){this.Qg=!1;this.Of=[]}h.prototype.get=function(q){if(!(q>this.length-1||0>q)){var t=q%this.chunkSize;return this.kh(q/this.chunkSize|0)[t]}};h.prototype.Bg=function(q){this.kh=q};h.prototype.Yg=function(){var q=new XMLHttpRequest;q.open("HEAD",d,!1);q.send(null);if(!(200<=q.status&&300>q.status||304===q.status))throw Error("Couldn't load "+
d+". Status: "+q.status);var t=Number(q.getResponseHeader("Content-length")),F,U=(F=q.getResponseHeader("Accept-Ranges"))&&"bytes"===F;q=(F=q.getResponseHeader("Content-Encoding"))&&"gzip"===F;var l=1048576;U||(l=t);var w=this;w.Bg(E=>{var V=E*l,qa=(E+1)*l-1;qa=Math.min(qa,t-1);if("undefined"==typeof w.Of[E]){var Sh=w.Of;if(V>qa)throw Error("invalid range ("+V+", "+qa+") or no bytes requested!");if(qa>t-1)throw Error("only "+t+" bytes available! programmer error!");var W=new XMLHttpRequest;W.open("GET",
d,!1);t!==l&&W.setRequestHeader("Range","bytes="+V+"-"+qa);W.responseType="arraybuffer";W.overrideMimeType&&W.overrideMimeType("text/plain; charset=x-user-defined");W.send(null);if(!(200<=W.status&&300>W.status||304===W.status))throw Error("Couldn't load "+d+". Status: "+W.status);V=void 0!==W.response?new Uint8Array(W.response||[]):kb(W.responseText||"",!0);Sh[E]=V}if("undefined"==typeof w.Of[E])throw Error("doXHR failed!");return w.Of[E]});if(q||!t)l=t=1,l=t=this.kh(0).length,na("LazyFiles on gzip forces download of the whole file when length is accessed");
this.uh=t;this.th=l;this.Qg=!0};if("undefined"!=typeof XMLHttpRequest){if(!ha)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var k=new h;Object.defineProperties(k,{length:{get:function(){this.Qg||this.Yg();return this.uh}},chunkSize:{get:function(){this.Qg||this.Yg();return this.th}}});k={Pg:!1,Ef:k}}else k={Pg:!1,url:d};var m=A.Dh(a,c,k,e,g);k.Ef?m.Ef=k.Ef:k.url&&(m.Ef=null,m.url=k.url);Object.defineProperties(m,{Jf:{get:function(){return this.Ef.length}}});
var v={};Object.keys(m.Ff).forEach(q=>{var t=m.Ff[q];v[q]=function(){A.Fg(m);return t.apply(null,arguments)}});v.read=(q,t,F,U,l)=>{A.Fg(m);q=q.node.Ef;if(l>=q.length)t=0;else{U=Math.min(q.length-l,U);if(q.slice)for(var w=0;w<U;w++)t[F+w]=q[l+w];else for(w=0;w<U;w++)t[F+w]=q.get(l+w);t=U}return t};v.eg=()=>{A.Fg(m);n();throw new A.Cf(48);};m.Ff=v;return m}};
function ub(a,c,d){if("/"===c.charAt(0))return c;a=-100===a?A.cwd():vb(a).path;if(0==c.length){if(!d)throw new A.Cf(44);return a}return cb(a+"/"+c)}
function wb(a,c,d){try{var e=a(c)}catch(h){if(h&&h.node&&cb(c)!==cb(A.Zf(h.node)))return-54;throw h;}r[d>>2]=e.dev;r[d+8>>2]=e.ino;r[d+12>>2]=e.mode;u[d+16>>2]=e.nlink;r[d+20>>2]=e.uid;r[d+24>>2]=e.gid;r[d+28>>2]=e.rdev;y=[e.size>>>0,(x=e.size,1<=+Math.abs(x)?0<x?+Math.floor(x/4294967296)>>>0:~~+Math.ceil((x-+(~~x>>>0))/4294967296)>>>0:0)];r[d+40>>2]=y[0];r[d+44>>2]=y[1];r[d+48>>2]=4096;r[d+52>>2]=e.blocks;a=e.atime.getTime();c=e.mtime.getTime();var g=e.ctime.getTime();y=[Math.floor(a/1E3)>>>0,(x=
Math.floor(a/1E3),1<=+Math.abs(x)?0<x?+Math.floor(x/4294967296)>>>0:~~+Math.ceil((x-+(~~x>>>0))/4294967296)>>>0:0)];r[d+56>>2]=y[0];r[d+60>>2]=y[1];u[d+64>>2]=a%1E3*1E3;y=[Math.floor(c/1E3)>>>0,(x=Math.floor(c/1E3),1<=+Math.abs(x)?0<x?+Math.floor(x/4294967296)>>>0:~~+Math.ceil((x-+(~~x>>>0))/4294967296)>>>0:0)];r[d+72>>2]=y[0];r[d+76>>2]=y[1];u[d+80>>2]=c%1E3*1E3;y=[Math.floor(g/1E3)>>>0,(x=Math.floor(g/1E3),1<=+Math.abs(x)?0<x?+Math.floor(x/4294967296)>>>0:~~+Math.ceil((x-+(~~x>>>0))/4294967296)>>>
0:0)];r[d+88>>2]=y[0];r[d+92>>2]=y[1];u[d+96>>2]=g%1E3*1E3;y=[e.ino>>>0,(x=e.ino,1<=+Math.abs(x)?0<x?+Math.floor(x/4294967296)>>>0:~~+Math.ceil((x-+(~~x>>>0))/4294967296)>>>0:0)];r[d+104>>2]=y[0];r[d+108>>2]=y[1];return 0}var xb=void 0;function yb(){xb+=4;return r[xb-4>>2]}function vb(a){a=A.ng(a);if(!a)throw new A.Cf(8);return a}function zb(){oa("missing function: setThrew");n(-1)}function Ab(a){return 0===a%4&&(0!==a%100||0===a%400)}
var Bb=[0,31,60,91,121,152,182,213,244,274,305,335],Cb=[0,31,59,90,120,151,181,212,243,273,304,334];function Db(a){return(Ab(a.getFullYear())?Bb:Cb)[a.getMonth()]+a.getDate()-1}function Eb(a){var c=Ta(a)+1,d=Fb(c);d&&Ua(a,ta,d,c);return d}var Gb=[],Hb;Hb=ia?()=>{var a=process.hrtime();return 1E3*a[0]+a[1]/1E6}:()=>performance.now();var Ib={};
function Jb(){if(!Kb){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"},c;for(c in Ib)void 0===Ib[c]?delete a[c]:a[c]=Ib[c];var d=[];for(c in a)d.push(c+"="+a[c]);Kb=d}return Kb}var Kb,Lb=[31,29,31,30,31,30,31,31,30,31,30,31],Mb=[31,28,31,30,31,30,31,31,30,31,30,31];
function Nb(a,c,d,e){function g(l,w,E){for(l="number"==typeof l?l.toString():l||"";l.length<w;)l=E[0]+l;return l}function h(l,w){return g(l,w,"0")}function k(l,w){function E(qa){return 0>qa?-1:0<qa?1:0}var V;0===(V=E(l.getFullYear()-w.getFullYear()))&&0===(V=E(l.getMonth()-w.getMonth()))&&(V=E(l.getDate()-w.getDate()));return V}function m(l){switch(l.getDay()){case 0:return new Date(l.getFullYear()-1,11,29);case 1:return l;case 2:return new Date(l.getFullYear(),0,3);case 3:return new Date(l.getFullYear(),
0,2);case 4:return new Date(l.getFullYear(),0,1);case 5:return new Date(l.getFullYear()-1,11,31);case 6:return new Date(l.getFullYear()-1,11,30)}}function v(l){var w=l.ig;for(l=new Date((new Date(l.jg+1900,0,1)).getTime());0<w;){var E=l.getMonth(),V=(Ab(l.getFullYear())?Lb:Mb)[E];if(w>V-l.getDate())w-=V-l.getDate()+1,l.setDate(1),11>E?l.setMonth(E+1):(l.setMonth(0),l.setFullYear(l.getFullYear()+1));else{l.setDate(l.getDate()+w);break}}E=new Date(l.getFullYear()+1,0,4);w=m(new Date(l.getFullYear(),
0,4));E=m(E);return 0>=k(w,l)?0>=k(E,l)?l.getFullYear()+1:l.getFullYear():l.getFullYear()-1}var q=r[e+40>>2];e={si:r[e>>2],ri:r[e+4>>2],zg:r[e+8>>2],Xg:r[e+12>>2],Ag:r[e+16>>2],jg:r[e+20>>2],Vf:r[e+24>>2],ig:r[e+28>>2],Di:r[e+32>>2],pi:r[e+36>>2],ti:q?z(q):""};d=z(d);q={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d",
"%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var t in q)d=d.replace(new RegExp(t,"g"),q[t]);var F="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),U="January February March April May June July August September October November December".split(" ");q={"%a":function(l){return F[l.Vf].substring(0,3)},"%A":function(l){return F[l.Vf]},"%b":function(l){return U[l.Ag].substring(0,3)},"%B":function(l){return U[l.Ag]},
"%C":function(l){return h((l.jg+1900)/100|0,2)},"%d":function(l){return h(l.Xg,2)},"%e":function(l){return g(l.Xg,2," ")},"%g":function(l){return v(l).toString().substring(2)},"%G":function(l){return v(l)},"%H":function(l){return h(l.zg,2)},"%I":function(l){l=l.zg;0==l?l=12:12<l&&(l-=12);return h(l,2)},"%j":function(l){for(var w=0,E=0;E<=l.Ag-1;w+=(Ab(l.jg+1900)?Lb:Mb)[E++]);return h(l.Xg+w,3)},"%m":function(l){return h(l.Ag+1,2)},"%M":function(l){return h(l.ri,2)},"%n":function(){return"\n"},"%p":function(l){return 0<=
l.zg&&12>l.zg?"AM":"PM"},"%S":function(l){return h(l.si,2)},"%t":function(){return"\t"},"%u":function(l){return l.Vf||7},"%U":function(l){return h(Math.floor((l.ig+7-l.Vf)/7),2)},"%V":function(l){var w=Math.floor((l.ig+7-(l.Vf+6)%7)/7);2>=(l.Vf+371-l.ig-2)%7&&w++;if(w)53==w&&(E=(l.Vf+371-l.ig)%7,4==E||3==E&&Ab(l.jg)||(w=1));else{w=52;var E=(l.Vf+7-l.ig-1)%7;(4==E||5==E&&Ab(l.jg%400-1))&&w++}return h(w,2)},"%w":function(l){return l.Vf},"%W":function(l){return h(Math.floor((l.ig+7-(l.Vf+6)%7)/7),2)},
"%y":function(l){return(l.jg+1900).toString().substring(2)},"%Y":function(l){return l.jg+1900},"%z":function(l){l=l.pi;var w=0<=l;l=Math.abs(l)/60;return(w?"+":"-")+String("0000"+(l/60*100+l%60)).slice(-4)},"%Z":function(l){return l.ti},"%%":function(){return"%"}};d=d.replace(/%%/g,"\x00\x00");for(t in q)d.includes(t)&&(d=d.replace(new RegExp(t,"g"),q[t](e)));d=d.replace(/\0\0/g,"%");t=kb(d,!1);if(t.length>c)return 0;p.set(t,a);return t.length-1}var Ob=[];
function Pb(a){var c=Ob[a];c||(a>=Ob.length&&(Ob.length=a+1),Ob[a]=c=ya.get(a));return c}function Qb(a,c,d,e){a||(a=this);this.parent=a;this.Lf=a.Lf;this.qg=null;this.id=A.hi++;this.name=c;this.mode=d;this.Df={};this.Ff={};this.rdev=e}
Object.defineProperties(Qb.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}},ei:{get:function(){return A.Mf(this.mode)}},Pg:{get:function(){return A.ug(this.mode)}}});A.rh=Qb;
A.ah=function(a,c,d,e,g,h,k,m,v,q){function t(l){function w(E){q&&q();m||A.tg(a,c,E,e,g,v);h&&h();Ia(U)}sb(l,F,w,()=>{k&&k();Ia(U)})||w(l)}var F=c?ib(cb(a+"/"+c)):a,U="cp "+F;Ha(U);"string"==typeof d?qb(d,l=>t(l),k):t(d)};A.oi();b.FS_createPath=A.Cg;b.FS_createDataFile=A.tg;b.FS_createPreloadedFile=A.ah;b.FS_unlink=A.unlink;b.FS_createLazyFile=A.$g;b.FS_createDevice=A.Pf;
var cc={a:function(a,c,d,e){n(`Assertion failed: ${z(a)}, at: `+[c?z(c):"unknown filename",d,e?z(e):"unknown function"])},n:function(a,c,d){(new Za(a)).bg(c,d);$a=a;ab++;throw $a;},t:function(a,c,d){xb=d;try{var e=vb(a);switch(c){case 0:var g=yb();return 0>g?-28:A.bh(e,g).fd;case 1:case 2:return 0;case 3:return e.flags;case 4:return g=yb(),e.flags|=g,0;case 5:return g=yb(),ua[g+0>>1]=2,0;case 6:case 7:return 0;case 16:case 8:return-28;case 9:return r[Rb()>>2]=28,-1;default:return-28}}catch(h){if("undefined"==
typeof A||"ErrnoError"!==h.name)throw h;return-h.Kf}},N:function(a,c){try{var d=vb(a);return wb(A.stat,d.path,c)}catch(e){if("undefined"==typeof A||"ErrnoError"!==e.name)throw e;return-e.Kf}},K:function(a,c){try{if(0===c)return-28;var d=A.cwd(),e=Ta(d)+1;if(c<e)return-68;Ua(d,ta,a,c);return e}catch(g){if("undefined"==typeof A||"ErrnoError"!==g.name)throw g;return-g.Kf}},R:function(a,c,d){xb=d;try{var e=vb(a);switch(c){case 21509:case 21505:return e.tty?0:-59;case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:return e.tty?
0:-59;case 21519:if(!e.tty)return-59;var g=yb();return r[g>>2]=0;case 21520:return e.tty?-28:-59;case 21531:return g=yb(),A.Og(e,c,g);case 21523:return e.tty?0:-59;case 21524:return e.tty?0:-59;default:return-28}}catch(h){if("undefined"==typeof A||"ErrnoError"!==h.name)throw h;return-h.Kf}},L:function(a,c,d,e){try{c=z(c);var g=e&256;c=ub(a,c,e&4096);return wb(g?A.lstat:A.stat,c,d)}catch(h){if("undefined"==typeof A||"ErrnoError"!==h.name)throw h;return-h.Kf}},r:function(a,c,d,e){xb=e;try{c=z(c);c=
ub(a,c);var g=e?yb():0;return A.open(c,d,g).fd}catch(h){if("undefined"==typeof A||"ErrnoError"!==h.name)throw h;return-h.Kf}},B:function(a){try{return a=z(a),A.rmdir(a),0}catch(c){if("undefined"==typeof A||"ErrnoError"!==c.name)throw c;return-c.Kf}},M:function(a,c){try{return a=z(a),wb(A.stat,a,c)}catch(d){if("undefined"==typeof A||"ErrnoError"!==d.name)throw d;return-d.Kf}},C:function(a,c,d){try{return c=z(c),c=ub(a,c),0===d?A.unlink(c):512===d?A.rmdir(c):n("Invalid flags passed to unlinkat"),0}catch(e){if("undefined"==
typeof A||"ErrnoError"!==e.name)throw e;return-e.Kf}},S:function(a){do{var c=u[a>>2];a+=4;var d=u[a>>2];a+=4;var e=u[a>>2];a+=4;c=z(c);A.Cg("/",db(c),!0,!0);A.tg(c,null,p.subarray(e,e+d),!0,!0,!0)}while(u[a>>2])},P:function(){return!0},y:function(){throw Infinity;},F:function(a,c){a=new Date(1E3*(u[a>>2]+4294967296*r[a+4>>2]));r[c>>2]=a.getUTCSeconds();r[c+4>>2]=a.getUTCMinutes();r[c+8>>2]=a.getUTCHours();r[c+12>>2]=a.getUTCDate();r[c+16>>2]=a.getUTCMonth();r[c+20>>2]=a.getUTCFullYear()-1900;r[c+
24>>2]=a.getUTCDay();r[c+28>>2]=(a.getTime()-Date.UTC(a.getUTCFullYear(),0,1,0,0,0,0))/864E5|0},G:function(a,c){a=new Date(1E3*(u[a>>2]+4294967296*r[a+4>>2]));r[c>>2]=a.getSeconds();r[c+4>>2]=a.getMinutes();r[c+8>>2]=a.getHours();r[c+12>>2]=a.getDate();r[c+16>>2]=a.getMonth();r[c+20>>2]=a.getFullYear()-1900;r[c+24>>2]=a.getDay();r[c+28>>2]=Db(a)|0;r[c+36>>2]=-(60*a.getTimezoneOffset());var d=(new Date(a.getFullYear(),6,1)).getTimezoneOffset(),e=(new Date(a.getFullYear(),0,1)).getTimezoneOffset();
r[c+32>>2]=(d!=e&&a.getTimezoneOffset()==Math.min(e,d))|0},H:function(a){var c=new Date(r[a+20>>2]+1900,r[a+16>>2],r[a+12>>2],r[a+8>>2],r[a+4>>2],r[a>>2],0),d=r[a+32>>2],e=c.getTimezoneOffset(),g=(new Date(c.getFullYear(),6,1)).getTimezoneOffset(),h=(new Date(c.getFullYear(),0,1)).getTimezoneOffset(),k=Math.min(h,g);0>d?r[a+32>>2]=Number(g!=h&&k==e):0<d!=(k==e)&&(g=Math.max(h,g),c.setTime(c.getTime()+6E4*((0<d?k:g)-e)));r[a+24>>2]=c.getDay();r[a+28>>2]=Db(c)|0;r[a>>2]=c.getSeconds();r[a+4>>2]=c.getMinutes();
r[a+8>>2]=c.getHours();r[a+12>>2]=c.getDate();r[a+16>>2]=c.getMonth();r[a+20>>2]=c.getYear();return c.getTime()/1E3|0},D:function(a,c,d,e,g,h,k){try{var m=vb(e),v=A.eg(m,a,g,c,d),q=v.Bf;r[h>>2]=v.vh;u[k>>2]=q;return 0}catch(t){if("undefined"==typeof A||"ErrnoError"!==t.name)throw t;return-t.Kf}},E:function(a,c,d,e,g,h){try{var k=vb(g);if(d&2){if(!A.isFile(k.node.mode))throw new A.Cf(43);if(!(e&2)){var m=ta.slice(a,a+c);A.kg(k,m,h,c,e)}}}catch(v){if("undefined"==typeof A||"ErrnoError"!==v.name)throw v;
return-v.Kf}},A:function(a,c,d){function e(v){return(v=v.toTimeString().match(/\(([A-Za-z ]+)\)$/))?v[1]:"GMT"}var g=(new Date).getFullYear(),h=new Date(g,0,1),k=new Date(g,6,1);g=h.getTimezoneOffset();var m=k.getTimezoneOffset();u[a>>2]=60*Math.max(g,m);r[c>>2]=Number(g!=m);a=e(h);c=e(k);a=Eb(a);c=Eb(c);m<g?(u[d>>2]=a,u[d+4>>2]=c):(u[d>>2]=c,u[d+4>>2]=a)},l:function(){n("")},q:function(a,c,d){Gb.length=0;var e;for(d>>=2;e=ta[c++];)d+=105!=e&d,Gb.push(105==e?r[d]:wa[d++>>1]),++d;return Qa[a].apply(null,
Gb)},m:function(){return Date.now()},O:Hb,Q:function(a,c,d){ta.copyWithin(a,c,c+d)},z:function(a){var c=ta.length;a>>>=0;if(2147483648<a)return!1;for(var d=1;4>=d;d*=2){var e=c*(1+.2/d);e=Math.min(e,a+100663296);var g=Math,h=g.min;e=Math.max(a,e);e+=(65536-e%65536)%65536;a:{var k=ra.buffer;try{ra.grow(h.call(g,2147483648,e)-k.byteLength+65535>>>16);xa();var m=1;break a}catch(v){}m=void 0}if(m)return!0}return!1},I:function(a,c){var d=0;Jb().forEach(function(e,g){var h=c+d;g=u[a+4*g>>2]=h;for(h=0;h<
e.length;++h)p[g++>>0]=e.charCodeAt(h);p[g>>0]=0;d+=e.length+1});return 0},J:function(a,c){var d=Jb();u[a>>2]=d.length;var e=0;d.forEach(function(g){e+=g.length+1});u[c>>2]=e;return 0},k:function(a){if(!noExitRuntime){if(b.onExit)b.onExit(a);sa=!0}ea(a,new Ra(a))},p:function(a){try{var c=vb(a);A.close(c);return 0}catch(d){if("undefined"==typeof A||"ErrnoError"!==d.name)throw d;return d.Kf}},s:function(a,c,d,e){try{a:{var g=vb(a);a=c;for(var h,k=c=0;k<d;k++){var m=u[a>>2],v=u[a+4>>2];a+=8;var q=A.read(g,
p,m,v,h);if(0>q){var t=-1;break a}c+=q;if(q<v)break;"undefined"!==typeof h&&(h+=q)}t=c}u[e>>2]=t;return 0}catch(F){if("undefined"==typeof A||"ErrnoError"!==F.name)throw F;return F.Kf}},w:function(a,c,d,e,g){try{c=d+2097152>>>0<4194305-!!c?(c>>>0)+4294967296*d:NaN;if(isNaN(c))return 61;var h=vb(a);A.Sf(h,c,e);y=[h.position>>>0,(x=h.position,1<=+Math.abs(x)?0<x?+Math.floor(x/4294967296)>>>0:~~+Math.ceil((x-+(~~x>>>0))/4294967296)>>>0:0)];r[g>>2]=y[0];r[g+4>>2]=y[1];h.Lg&&0===c&&0===e&&(h.Lg=null);return 0}catch(k){if("undefined"==
typeof A||"ErrnoError"!==k.name)throw k;return k.Kf}},o:function(a,c,d,e){try{a:{var g=vb(a);a=c;for(var h,k=c=0;k<d;k++){var m=u[a>>2],v=u[a+4>>2];a+=8;var q=A.write(g,p,m,v,h);if(0>q){var t=-1;break a}c+=q;"undefined"!==typeof h&&(h+=q)}t=c}u[e>>2]=t;return 0}catch(F){if("undefined"==typeof A||"ErrnoError"!==F.name)throw F;return F.Kf}},c:Sb,f:Tb,b:Ub,h:Vb,i:Wb,e:Xb,d:Yb,g:Zb,j:$b,u:ac,v:bc,T:Nb,x:function(a,c,d,e){return Nb(a,c,d,e)}};
(function(){function a(d){d=d.exports;b.asm=d;ra=b.asm.U;xa();ya=b.asm.pf;Aa.unshift(b.asm.V);Ia("wasm-instantiate");return d}var c={a:cc};Ha("wasm-instantiate");if(b.instantiateWasm)try{return b.instantiateWasm(c,a)}catch(d){oa("Module.instantiateWasm callback failed with error: "+d),ba(d)}Pa(c,function(d){a(d.instance)}).catch(ba);return{}})();
var dc=b._emscripten_bind_ParagraphJustification___destroy___0=function(){return(dc=b._emscripten_bind_ParagraphJustification___destroy___0=b.asm.W).apply(null,arguments)},ec=b._emscripten_bind_BoolPtr___destroy___0=function(){return(ec=b._emscripten_bind_BoolPtr___destroy___0=b.asm.X).apply(null,arguments)},fc=b._emscripten_bind_TessResultRenderer_BeginDocument_1=function(){return(fc=b._emscripten_bind_TessResultRenderer_BeginDocument_1=b.asm.Y).apply(null,arguments)},gc=b._emscripten_bind_TessResultRenderer_AddImage_1=
function(){return(gc=b._emscripten_bind_TessResultRenderer_AddImage_1=b.asm.Z).apply(null,arguments)},hc=b._emscripten_bind_TessResultRenderer_EndDocument_0=function(){return(hc=b._emscripten_bind_TessResultRenderer_EndDocument_0=b.asm._).apply(null,arguments)},ic=b._emscripten_bind_TessResultRenderer_happy_0=function(){return(ic=b._emscripten_bind_TessResultRenderer_happy_0=b.asm.$).apply(null,arguments)},jc=b._emscripten_bind_TessResultRenderer_file_extension_0=function(){return(jc=b._emscripten_bind_TessResultRenderer_file_extension_0=
b.asm.aa).apply(null,arguments)},kc=b._emscripten_bind_TessResultRenderer_title_0=function(){return(kc=b._emscripten_bind_TessResultRenderer_title_0=b.asm.ba).apply(null,arguments)},lc=b._emscripten_bind_TessResultRenderer_imagenum_0=function(){return(lc=b._emscripten_bind_TessResultRenderer_imagenum_0=b.asm.ca).apply(null,arguments)},mc=b._emscripten_bind_TessResultRenderer___destroy___0=function(){return(mc=b._emscripten_bind_TessResultRenderer___destroy___0=b.asm.da).apply(null,arguments)},nc=
b._emscripten_bind_LongStarPtr___destroy___0=function(){return(nc=b._emscripten_bind_LongStarPtr___destroy___0=b.asm.ea).apply(null,arguments)},oc=b._emscripten_bind_VoidPtr___destroy___0=function(){return(oc=b._emscripten_bind_VoidPtr___destroy___0=b.asm.fa).apply(null,arguments)},pc=b._emscripten_bind_ResultIterator_ResultIterator_1=function(){return(pc=b._emscripten_bind_ResultIterator_ResultIterator_1=b.asm.ga).apply(null,arguments)},qc=b._emscripten_bind_ResultIterator_Begin_0=function(){return(qc=
b._emscripten_bind_ResultIterator_Begin_0=b.asm.ha).apply(null,arguments)},rc=b._emscripten_bind_ResultIterator_RestartParagraph_0=function(){return(rc=b._emscripten_bind_ResultIterator_RestartParagraph_0=b.asm.ia).apply(null,arguments)},sc=b._emscripten_bind_ResultIterator_IsWithinFirstTextlineOfParagraph_0=function(){return(sc=b._emscripten_bind_ResultIterator_IsWithinFirstTextlineOfParagraph_0=b.asm.ja).apply(null,arguments)},tc=b._emscripten_bind_ResultIterator_RestartRow_0=function(){return(tc=
b._emscripten_bind_ResultIterator_RestartRow_0=b.asm.ka).apply(null,arguments)},uc=b._emscripten_bind_ResultIterator_Next_1=function(){return(uc=b._emscripten_bind_ResultIterator_Next_1=b.asm.la).apply(null,arguments)},vc=b._emscripten_bind_ResultIterator_IsAtBeginningOf_1=function(){return(vc=b._emscripten_bind_ResultIterator_IsAtBeginningOf_1=b.asm.ma).apply(null,arguments)},wc=b._emscripten_bind_ResultIterator_IsAtFinalElement_2=function(){return(wc=b._emscripten_bind_ResultIterator_IsAtFinalElement_2=
b.asm.na).apply(null,arguments)},xc=b._emscripten_bind_ResultIterator_Cmp_1=function(){return(xc=b._emscripten_bind_ResultIterator_Cmp_1=b.asm.oa).apply(null,arguments)},yc=b._emscripten_bind_ResultIterator_SetBoundingBoxComponents_2=function(){return(yc=b._emscripten_bind_ResultIterator_SetBoundingBoxComponents_2=b.asm.pa).apply(null,arguments)},zc=b._emscripten_bind_ResultIterator_BoundingBox_5=function(){return(zc=b._emscripten_bind_ResultIterator_BoundingBox_5=b.asm.qa).apply(null,arguments)},
Ac=b._emscripten_bind_ResultIterator_BoundingBox_6=function(){return(Ac=b._emscripten_bind_ResultIterator_BoundingBox_6=b.asm.ra).apply(null,arguments)},Bc=b._emscripten_bind_ResultIterator_BoundingBoxInternal_5=function(){return(Bc=b._emscripten_bind_ResultIterator_BoundingBoxInternal_5=b.asm.sa).apply(null,arguments)},Cc=b._emscripten_bind_ResultIterator_Empty_1=function(){return(Cc=b._emscripten_bind_ResultIterator_Empty_1=b.asm.ta).apply(null,arguments)},Dc=b._emscripten_bind_ResultIterator_BlockType_0=
function(){return(Dc=b._emscripten_bind_ResultIterator_BlockType_0=b.asm.ua).apply(null,arguments)},Ec=b._emscripten_bind_ResultIterator_BlockPolygon_0=function(){return(Ec=b._emscripten_bind_ResultIterator_BlockPolygon_0=b.asm.va).apply(null,arguments)},Fc=b._emscripten_bind_ResultIterator_GetBinaryImage_1=function(){return(Fc=b._emscripten_bind_ResultIterator_GetBinaryImage_1=b.asm.wa).apply(null,arguments)},Gc=b._emscripten_bind_ResultIterator_GetImage_5=function(){return(Gc=b._emscripten_bind_ResultIterator_GetImage_5=
b.asm.xa).apply(null,arguments)},Hc=b._emscripten_bind_ResultIterator_Baseline_5=function(){return(Hc=b._emscripten_bind_ResultIterator_Baseline_5=b.asm.ya).apply(null,arguments)},Ic=b._emscripten_bind_ResultIterator_Orientation_4=function(){return(Ic=b._emscripten_bind_ResultIterator_Orientation_4=b.asm.za).apply(null,arguments)},Jc=b._emscripten_bind_ResultIterator_ParagraphInfo_4=function(){return(Jc=b._emscripten_bind_ResultIterator_ParagraphInfo_4=b.asm.Aa).apply(null,arguments)},Kc=b._emscripten_bind_ResultIterator_ParagraphIsLtr_0=
function(){return(Kc=b._emscripten_bind_ResultIterator_ParagraphIsLtr_0=b.asm.Ba).apply(null,arguments)},Lc=b._emscripten_bind_ResultIterator_GetUTF8Text_1=function(){return(Lc=b._emscripten_bind_ResultIterator_GetUTF8Text_1=b.asm.Ca).apply(null,arguments)},Mc=b._emscripten_bind_ResultIterator_SetLineSeparator_1=function(){return(Mc=b._emscripten_bind_ResultIterator_SetLineSeparator_1=b.asm.Da).apply(null,arguments)},Nc=b._emscripten_bind_ResultIterator_SetParagraphSeparator_1=function(){return(Nc=
b._emscripten_bind_ResultIterator_SetParagraphSeparator_1=b.asm.Ea).apply(null,arguments)},Oc=b._emscripten_bind_ResultIterator_Confidence_1=function(){return(Oc=b._emscripten_bind_ResultIterator_Confidence_1=b.asm.Fa).apply(null,arguments)},Pc=b._emscripten_bind_ResultIterator_WordFontAttributes_8=function(){return(Pc=b._emscripten_bind_ResultIterator_WordFontAttributes_8=b.asm.Ga).apply(null,arguments)},Qc=b._emscripten_bind_ResultIterator_WordRecognitionLanguage_0=function(){return(Qc=b._emscripten_bind_ResultIterator_WordRecognitionLanguage_0=
b.asm.Ha).apply(null,arguments)},Rc=b._emscripten_bind_ResultIterator_WordDirection_0=function(){return(Rc=b._emscripten_bind_ResultIterator_WordDirection_0=b.asm.Ia).apply(null,arguments)},Sc=b._emscripten_bind_ResultIterator_WordIsFromDictionary_0=function(){return(Sc=b._emscripten_bind_ResultIterator_WordIsFromDictionary_0=b.asm.Ja).apply(null,arguments)},Tc=b._emscripten_bind_ResultIterator_WordIsNumeric_0=function(){return(Tc=b._emscripten_bind_ResultIterator_WordIsNumeric_0=b.asm.Ka).apply(null,
arguments)},Uc=b._emscripten_bind_ResultIterator_HasBlamerInfo_0=function(){return(Uc=b._emscripten_bind_ResultIterator_HasBlamerInfo_0=b.asm.La).apply(null,arguments)},Vc=b._emscripten_bind_ResultIterator_HasTruthString_0=function(){return(Vc=b._emscripten_bind_ResultIterator_HasTruthString_0=b.asm.Ma).apply(null,arguments)},Wc=b._emscripten_bind_ResultIterator_EquivalentToTruth_1=function(){return(Wc=b._emscripten_bind_ResultIterator_EquivalentToTruth_1=b.asm.Na).apply(null,arguments)},Xc=b._emscripten_bind_ResultIterator_WordTruthUTF8Text_0=
function(){return(Xc=b._emscripten_bind_ResultIterator_WordTruthUTF8Text_0=b.asm.Oa).apply(null,arguments)},Yc=b._emscripten_bind_ResultIterator_WordNormedUTF8Text_0=function(){return(Yc=b._emscripten_bind_ResultIterator_WordNormedUTF8Text_0=b.asm.Pa).apply(null,arguments)},Zc=b._emscripten_bind_ResultIterator_WordLattice_1=function(){return(Zc=b._emscripten_bind_ResultIterator_WordLattice_1=b.asm.Qa).apply(null,arguments)},$c=b._emscripten_bind_ResultIterator_SymbolIsSuperscript_0=function(){return($c=
b._emscripten_bind_ResultIterator_SymbolIsSuperscript_0=b.asm.Ra).apply(null,arguments)},ad=b._emscripten_bind_ResultIterator_SymbolIsSubscript_0=function(){return(ad=b._emscripten_bind_ResultIterator_SymbolIsSubscript_0=b.asm.Sa).apply(null,arguments)},bd=b._emscripten_bind_ResultIterator_SymbolIsDropcap_0=function(){return(bd=b._emscripten_bind_ResultIterator_SymbolIsDropcap_0=b.asm.Ta).apply(null,arguments)},cd=b._emscripten_bind_ResultIterator___destroy___0=function(){return(cd=b._emscripten_bind_ResultIterator___destroy___0=
b.asm.Ua).apply(null,arguments)},dd=b._emscripten_bind_TextlineOrder___destroy___0=function(){return(dd=b._emscripten_bind_TextlineOrder___destroy___0=b.asm.Va).apply(null,arguments)},ed=b._emscripten_bind_ETEXT_DESC___destroy___0=function(){return(ed=b._emscripten_bind_ETEXT_DESC___destroy___0=b.asm.Wa).apply(null,arguments)},fd=b._emscripten_bind_PageIterator_Begin_0=function(){return(fd=b._emscripten_bind_PageIterator_Begin_0=b.asm.Xa).apply(null,arguments)},gd=b._emscripten_bind_PageIterator_RestartParagraph_0=
function(){return(gd=b._emscripten_bind_PageIterator_RestartParagraph_0=b.asm.Ya).apply(null,arguments)},hd=b._emscripten_bind_PageIterator_IsWithinFirstTextlineOfParagraph_0=function(){return(hd=b._emscripten_bind_PageIterator_IsWithinFirstTextlineOfParagraph_0=b.asm.Za).apply(null,arguments)},jd=b._emscripten_bind_PageIterator_RestartRow_0=function(){return(jd=b._emscripten_bind_PageIterator_RestartRow_0=b.asm._a).apply(null,arguments)},kd=b._emscripten_bind_PageIterator_Next_1=function(){return(kd=
b._emscripten_bind_PageIterator_Next_1=b.asm.$a).apply(null,arguments)},ld=b._emscripten_bind_PageIterator_IsAtBeginningOf_1=function(){return(ld=b._emscripten_bind_PageIterator_IsAtBeginningOf_1=b.asm.ab).apply(null,arguments)},md=b._emscripten_bind_PageIterator_IsAtFinalElement_2=function(){return(md=b._emscripten_bind_PageIterator_IsAtFinalElement_2=b.asm.bb).apply(null,arguments)},nd=b._emscripten_bind_PageIterator_Cmp_1=function(){return(nd=b._emscripten_bind_PageIterator_Cmp_1=b.asm.cb).apply(null,
arguments)},od=b._emscripten_bind_PageIterator_SetBoundingBoxComponents_2=function(){return(od=b._emscripten_bind_PageIterator_SetBoundingBoxComponents_2=b.asm.db).apply(null,arguments)},pd=b._emscripten_bind_PageIterator_BoundingBox_5=function(){return(pd=b._emscripten_bind_PageIterator_BoundingBox_5=b.asm.eb).apply(null,arguments)},qd=b._emscripten_bind_PageIterator_BoundingBox_6=function(){return(qd=b._emscripten_bind_PageIterator_BoundingBox_6=b.asm.fb).apply(null,arguments)},rd=b._emscripten_bind_PageIterator_BoundingBoxInternal_5=
function(){return(rd=b._emscripten_bind_PageIterator_BoundingBoxInternal_5=b.asm.gb).apply(null,arguments)},sd=b._emscripten_bind_PageIterator_Empty_1=function(){return(sd=b._emscripten_bind_PageIterator_Empty_1=b.asm.hb).apply(null,arguments)},td=b._emscripten_bind_PageIterator_BlockType_0=function(){return(td=b._emscripten_bind_PageIterator_BlockType_0=b.asm.ib).apply(null,arguments)},ud=b._emscripten_bind_PageIterator_BlockPolygon_0=function(){return(ud=b._emscripten_bind_PageIterator_BlockPolygon_0=
b.asm.jb).apply(null,arguments)},vd=b._emscripten_bind_PageIterator_GetBinaryImage_1=function(){return(vd=b._emscripten_bind_PageIterator_GetBinaryImage_1=b.asm.kb).apply(null,arguments)},wd=b._emscripten_bind_PageIterator_GetImage_5=function(){return(wd=b._emscripten_bind_PageIterator_GetImage_5=b.asm.lb).apply(null,arguments)},xd=b._emscripten_bind_PageIterator_Baseline_5=function(){return(xd=b._emscripten_bind_PageIterator_Baseline_5=b.asm.mb).apply(null,arguments)},yd=b._emscripten_bind_PageIterator_Orientation_4=
function(){return(yd=b._emscripten_bind_PageIterator_Orientation_4=b.asm.nb).apply(null,arguments)},zd=b._emscripten_bind_PageIterator_ParagraphInfo_4=function(){return(zd=b._emscripten_bind_PageIterator_ParagraphInfo_4=b.asm.ob).apply(null,arguments)},Ad=b._emscripten_bind_PageIterator___destroy___0=function(){return(Ad=b._emscripten_bind_PageIterator___destroy___0=b.asm.pb).apply(null,arguments)},Bd=b._emscripten_bind_WritingDirection___destroy___0=function(){return(Bd=b._emscripten_bind_WritingDirection___destroy___0=
b.asm.qb).apply(null,arguments)},Cd=b._emscripten_bind_WordChoiceIterator_WordChoiceIterator_1=function(){return(Cd=b._emscripten_bind_WordChoiceIterator_WordChoiceIterator_1=b.asm.rb).apply(null,arguments)},Dd=b._emscripten_bind_WordChoiceIterator_Next_0=function(){return(Dd=b._emscripten_bind_WordChoiceIterator_Next_0=b.asm.sb).apply(null,arguments)},Ed=b._emscripten_bind_WordChoiceIterator_GetUTF8Text_0=function(){return(Ed=b._emscripten_bind_WordChoiceIterator_GetUTF8Text_0=b.asm.tb).apply(null,
arguments)},Fd=b._emscripten_bind_WordChoiceIterator_Confidence_0=function(){return(Fd=b._emscripten_bind_WordChoiceIterator_Confidence_0=b.asm.ub).apply(null,arguments)},Gd=b._emscripten_bind_WordChoiceIterator___destroy___0=function(){return(Gd=b._emscripten_bind_WordChoiceIterator___destroy___0=b.asm.vb).apply(null,arguments)},Hd=b._emscripten_bind_Box_get_x_0=function(){return(Hd=b._emscripten_bind_Box_get_x_0=b.asm.wb).apply(null,arguments)},Id=b._emscripten_bind_Box_get_y_0=function(){return(Id=
b._emscripten_bind_Box_get_y_0=b.asm.xb).apply(null,arguments)},Jd=b._emscripten_bind_Box_get_w_0=function(){return(Jd=b._emscripten_bind_Box_get_w_0=b.asm.yb).apply(null,arguments)},Kd=b._emscripten_bind_Box_get_h_0=function(){return(Kd=b._emscripten_bind_Box_get_h_0=b.asm.zb).apply(null,arguments)},Ld=b._emscripten_bind_Box_get_refcount_0=function(){return(Ld=b._emscripten_bind_Box_get_refcount_0=b.asm.Ab).apply(null,arguments)},Md=b._emscripten_bind_Box___destroy___0=function(){return(Md=b._emscripten_bind_Box___destroy___0=
b.asm.Bb).apply(null,arguments)},Nd=b._emscripten_bind_TessPDFRenderer_TessPDFRenderer_3=function(){return(Nd=b._emscripten_bind_TessPDFRenderer_TessPDFRenderer_3=b.asm.Cb).apply(null,arguments)},Od=b._emscripten_bind_TessPDFRenderer_BeginDocument_1=function(){return(Od=b._emscripten_bind_TessPDFRenderer_BeginDocument_1=b.asm.Db).apply(null,arguments)},Pd=b._emscripten_bind_TessPDFRenderer_AddImage_1=function(){return(Pd=b._emscripten_bind_TessPDFRenderer_AddImage_1=b.asm.Eb).apply(null,arguments)},
Qd=b._emscripten_bind_TessPDFRenderer_EndDocument_0=function(){return(Qd=b._emscripten_bind_TessPDFRenderer_EndDocument_0=b.asm.Fb).apply(null,arguments)},Rd=b._emscripten_bind_TessPDFRenderer_happy_0=function(){return(Rd=b._emscripten_bind_TessPDFRenderer_happy_0=b.asm.Gb).apply(null,arguments)},Sd=b._emscripten_bind_TessPDFRenderer_file_extension_0=function(){return(Sd=b._emscripten_bind_TessPDFRenderer_file_extension_0=b.asm.Hb).apply(null,arguments)},Td=b._emscripten_bind_TessPDFRenderer_title_0=
function(){return(Td=b._emscripten_bind_TessPDFRenderer_title_0=b.asm.Ib).apply(null,arguments)},Ud=b._emscripten_bind_TessPDFRenderer_imagenum_0=function(){return(Ud=b._emscripten_bind_TessPDFRenderer_imagenum_0=b.asm.Jb).apply(null,arguments)},Vd=b._emscripten_bind_TessPDFRenderer___destroy___0=function(){return(Vd=b._emscripten_bind_TessPDFRenderer___destroy___0=b.asm.Kb).apply(null,arguments)},Wd=b._emscripten_bind_PixaPtr___destroy___0=function(){return(Wd=b._emscripten_bind_PixaPtr___destroy___0=
b.asm.Lb).apply(null,arguments)},Xd=b._emscripten_bind_FloatPtr___destroy___0=function(){return(Xd=b._emscripten_bind_FloatPtr___destroy___0=b.asm.Mb).apply(null,arguments)},Yd=b._emscripten_bind_ChoiceIterator_ChoiceIterator_1=function(){return(Yd=b._emscripten_bind_ChoiceIterator_ChoiceIterator_1=b.asm.Nb).apply(null,arguments)},Zd=b._emscripten_bind_ChoiceIterator_Next_0=function(){return(Zd=b._emscripten_bind_ChoiceIterator_Next_0=b.asm.Ob).apply(null,arguments)},$d=b._emscripten_bind_ChoiceIterator_GetUTF8Text_0=
function(){return($d=b._emscripten_bind_ChoiceIterator_GetUTF8Text_0=b.asm.Pb).apply(null,arguments)},ae=b._emscripten_bind_ChoiceIterator_Confidence_0=function(){return(ae=b._emscripten_bind_ChoiceIterator_Confidence_0=b.asm.Qb).apply(null,arguments)},be=b._emscripten_bind_ChoiceIterator___destroy___0=function(){return(be=b._emscripten_bind_ChoiceIterator___destroy___0=b.asm.Rb).apply(null,arguments)},ce=b._emscripten_bind_PixPtr___destroy___0=function(){return(ce=b._emscripten_bind_PixPtr___destroy___0=
b.asm.Sb).apply(null,arguments)},de=b._emscripten_bind_UNICHARSET_get_script_from_script_id_1=function(){return(de=b._emscripten_bind_UNICHARSET_get_script_from_script_id_1=b.asm.Tb).apply(null,arguments)},ee=b._emscripten_bind_UNICHARSET_get_script_id_from_name_1=function(){return(ee=b._emscripten_bind_UNICHARSET_get_script_id_from_name_1=b.asm.Ub).apply(null,arguments)},fe=b._emscripten_bind_UNICHARSET_get_script_table_size_0=function(){return(fe=b._emscripten_bind_UNICHARSET_get_script_table_size_0=
b.asm.Vb).apply(null,arguments)},ge=b._emscripten_bind_UNICHARSET___destroy___0=function(){return(ge=b._emscripten_bind_UNICHARSET___destroy___0=b.asm.Wb).apply(null,arguments)},he=b._emscripten_bind_IntPtr___destroy___0=function(){return(he=b._emscripten_bind_IntPtr___destroy___0=b.asm.Xb).apply(null,arguments)},ie=b._emscripten_bind_Orientation___destroy___0=function(){return(ie=b._emscripten_bind_Orientation___destroy___0=b.asm.Yb).apply(null,arguments)},je=b._emscripten_bind_OSBestResult_get_orientation_id_0=
function(){return(je=b._emscripten_bind_OSBestResult_get_orientation_id_0=b.asm.Zb).apply(null,arguments)},ke=b._emscripten_bind_OSBestResult_get_script_id_0=function(){return(ke=b._emscripten_bind_OSBestResult_get_script_id_0=b.asm._b).apply(null,arguments)},le=b._emscripten_bind_OSBestResult_get_sconfidence_0=function(){return(le=b._emscripten_bind_OSBestResult_get_sconfidence_0=b.asm.$b).apply(null,arguments)},me=b._emscripten_bind_OSBestResult_get_oconfidence_0=function(){return(me=b._emscripten_bind_OSBestResult_get_oconfidence_0=
b.asm.ac).apply(null,arguments)},ne=b._emscripten_bind_OSBestResult___destroy___0=function(){return(ne=b._emscripten_bind_OSBestResult___destroy___0=b.asm.bc).apply(null,arguments)},oe=b._emscripten_bind_Boxa_get_n_0=function(){return(oe=b._emscripten_bind_Boxa_get_n_0=b.asm.cc).apply(null,arguments)},pe=b._emscripten_bind_Boxa_get_nalloc_0=function(){return(pe=b._emscripten_bind_Boxa_get_nalloc_0=b.asm.dc).apply(null,arguments)},qe=b._emscripten_bind_Boxa_get_refcount_0=function(){return(qe=b._emscripten_bind_Boxa_get_refcount_0=
b.asm.ec).apply(null,arguments)},re=b._emscripten_bind_Boxa_get_box_0=function(){return(re=b._emscripten_bind_Boxa_get_box_0=b.asm.fc).apply(null,arguments)},se=b._emscripten_bind_Boxa___destroy___0=function(){return(se=b._emscripten_bind_Boxa___destroy___0=b.asm.gc).apply(null,arguments)},te=b._emscripten_bind_PixColormap_get_array_0=function(){return(te=b._emscripten_bind_PixColormap_get_array_0=b.asm.hc).apply(null,arguments)},ue=b._emscripten_bind_PixColormap_get_depth_0=function(){return(ue=
b._emscripten_bind_PixColormap_get_depth_0=b.asm.ic).apply(null,arguments)},ve=b._emscripten_bind_PixColormap_get_nalloc_0=function(){return(ve=b._emscripten_bind_PixColormap_get_nalloc_0=b.asm.jc).apply(null,arguments)},we=b._emscripten_bind_PixColormap_get_n_0=function(){return(we=b._emscripten_bind_PixColormap_get_n_0=b.asm.kc).apply(null,arguments)},xe=b._emscripten_bind_PixColormap___destroy___0=function(){return(xe=b._emscripten_bind_PixColormap___destroy___0=b.asm.lc).apply(null,arguments)},
ye=b._emscripten_bind_Pta_get_n_0=function(){return(ye=b._emscripten_bind_Pta_get_n_0=b.asm.mc).apply(null,arguments)},ze=b._emscripten_bind_Pta_get_nalloc_0=function(){return(ze=b._emscripten_bind_Pta_get_nalloc_0=b.asm.nc).apply(null,arguments)},Ae=b._emscripten_bind_Pta_get_refcount_0=function(){return(Ae=b._emscripten_bind_Pta_get_refcount_0=b.asm.oc).apply(null,arguments)},Be=b._emscripten_bind_Pta_get_x_0=function(){return(Be=b._emscripten_bind_Pta_get_x_0=b.asm.pc).apply(null,arguments)},Ce=
b._emscripten_bind_Pta_get_y_0=function(){return(Ce=b._emscripten_bind_Pta_get_y_0=b.asm.qc).apply(null,arguments)},De=b._emscripten_bind_Pta___destroy___0=function(){return(De=b._emscripten_bind_Pta___destroy___0=b.asm.rc).apply(null,arguments)},Ee=b._emscripten_bind_Pix_get_w_0=function(){return(Ee=b._emscripten_bind_Pix_get_w_0=b.asm.sc).apply(null,arguments)},Fe=b._emscripten_bind_Pix_get_h_0=function(){return(Fe=b._emscripten_bind_Pix_get_h_0=b.asm.tc).apply(null,arguments)},Ge=b._emscripten_bind_Pix_get_d_0=
function(){return(Ge=b._emscripten_bind_Pix_get_d_0=b.asm.uc).apply(null,arguments)},He=b._emscripten_bind_Pix_get_spp_0=function(){return(He=b._emscripten_bind_Pix_get_spp_0=b.asm.vc).apply(null,arguments)},Ie=b._emscripten_bind_Pix_get_wpl_0=function(){return(Ie=b._emscripten_bind_Pix_get_wpl_0=b.asm.wc).apply(null,arguments)},Je=b._emscripten_bind_Pix_get_refcount_0=function(){return(Je=b._emscripten_bind_Pix_get_refcount_0=b.asm.xc).apply(null,arguments)},Ke=b._emscripten_bind_Pix_get_xres_0=
function(){return(Ke=b._emscripten_bind_Pix_get_xres_0=b.asm.yc).apply(null,arguments)},Le=b._emscripten_bind_Pix_get_yres_0=function(){return(Le=b._emscripten_bind_Pix_get_yres_0=b.asm.zc).apply(null,arguments)},Me=b._emscripten_bind_Pix_get_informat_0=function(){return(Me=b._emscripten_bind_Pix_get_informat_0=b.asm.Ac).apply(null,arguments)},Ne=b._emscripten_bind_Pix_get_special_0=function(){return(Ne=b._emscripten_bind_Pix_get_special_0=b.asm.Bc).apply(null,arguments)},Oe=b._emscripten_bind_Pix_get_text_0=
function(){return(Oe=b._emscripten_bind_Pix_get_text_0=b.asm.Cc).apply(null,arguments)},Pe=b._emscripten_bind_Pix_get_colormap_0=function(){return(Pe=b._emscripten_bind_Pix_get_colormap_0=b.asm.Dc).apply(null,arguments)},Qe=b._emscripten_bind_Pix_get_data_0=function(){return(Qe=b._emscripten_bind_Pix_get_data_0=b.asm.Ec).apply(null,arguments)},Re=b._emscripten_bind_Pix___destroy___0=function(){return(Re=b._emscripten_bind_Pix___destroy___0=b.asm.Fc).apply(null,arguments)},Se=b._emscripten_bind_DoublePtr___destroy___0=
function(){return(Se=b._emscripten_bind_DoublePtr___destroy___0=b.asm.Gc).apply(null,arguments)},Te=b._emscripten_bind_Dawg___destroy___0=function(){return(Te=b._emscripten_bind_Dawg___destroy___0=b.asm.Hc).apply(null,arguments)},Ue=b._emscripten_bind_BoxPtr___destroy___0=function(){return(Ue=b._emscripten_bind_BoxPtr___destroy___0=b.asm.Ic).apply(null,arguments)},Ve=b._emscripten_bind_TessBaseAPI_TessBaseAPI_0=function(){return(Ve=b._emscripten_bind_TessBaseAPI_TessBaseAPI_0=b.asm.Jc).apply(null,
arguments)},We=b._emscripten_bind_TessBaseAPI_Version_0=function(){return(We=b._emscripten_bind_TessBaseAPI_Version_0=b.asm.Kc).apply(null,arguments)},Xe=b._emscripten_bind_TessBaseAPI_SetInputName_1=function(){return(Xe=b._emscripten_bind_TessBaseAPI_SetInputName_1=b.asm.Lc).apply(null,arguments)},Ye=b._emscripten_bind_TessBaseAPI_GetInputName_0=function(){return(Ye=b._emscripten_bind_TessBaseAPI_GetInputName_0=b.asm.Mc).apply(null,arguments)},Ze=b._emscripten_bind_TessBaseAPI_SetInputImage_1=function(){return(Ze=
b._emscripten_bind_TessBaseAPI_SetInputImage_1=b.asm.Nc).apply(null,arguments)},$e=b._emscripten_bind_TessBaseAPI_GetInputImage_0=function(){return($e=b._emscripten_bind_TessBaseAPI_GetInputImage_0=b.asm.Oc).apply(null,arguments)},af=b._emscripten_bind_TessBaseAPI_GetSourceYResolution_0=function(){return(af=b._emscripten_bind_TessBaseAPI_GetSourceYResolution_0=b.asm.Pc).apply(null,arguments)},bf=b._emscripten_bind_TessBaseAPI_GetDatapath_0=function(){return(bf=b._emscripten_bind_TessBaseAPI_GetDatapath_0=
b.asm.Qc).apply(null,arguments)},cf=b._emscripten_bind_TessBaseAPI_SetOutputName_1=function(){return(cf=b._emscripten_bind_TessBaseAPI_SetOutputName_1=b.asm.Rc).apply(null,arguments)},df=b._emscripten_bind_TessBaseAPI_SetVariable_2=function(){return(df=b._emscripten_bind_TessBaseAPI_SetVariable_2=b.asm.Sc).apply(null,arguments)},ef=b._emscripten_bind_TessBaseAPI_SetDebugVariable_2=function(){return(ef=b._emscripten_bind_TessBaseAPI_SetDebugVariable_2=b.asm.Tc).apply(null,arguments)},ff=b._emscripten_bind_TessBaseAPI_GetIntVariable_2=
function(){return(ff=b._emscripten_bind_TessBaseAPI_GetIntVariable_2=b.asm.Uc).apply(null,arguments)},gf=b._emscripten_bind_TessBaseAPI_GetBoolVariable_2=function(){return(gf=b._emscripten_bind_TessBaseAPI_GetBoolVariable_2=b.asm.Vc).apply(null,arguments)},hf=b._emscripten_bind_TessBaseAPI_GetDoubleVariable_2=function(){return(hf=b._emscripten_bind_TessBaseAPI_GetDoubleVariable_2=b.asm.Wc).apply(null,arguments)},jf=b._emscripten_bind_TessBaseAPI_GetStringVariable_1=function(){return(jf=b._emscripten_bind_TessBaseAPI_GetStringVariable_1=
b.asm.Xc).apply(null,arguments)},kf=b._emscripten_bind_TessBaseAPI_SaveParameters_1=function(){return(kf=b._emscripten_bind_TessBaseAPI_SaveParameters_1=b.asm.Yc).apply(null,arguments)},lf=b._emscripten_bind_TessBaseAPI_RestoreParameters_1=function(){return(lf=b._emscripten_bind_TessBaseAPI_RestoreParameters_1=b.asm.Zc).apply(null,arguments)},mf=b._emscripten_bind_TessBaseAPI_Init_2=function(){return(mf=b._emscripten_bind_TessBaseAPI_Init_2=b.asm._c).apply(null,arguments)},nf=b._emscripten_bind_TessBaseAPI_Init_3=
function(){return(nf=b._emscripten_bind_TessBaseAPI_Init_3=b.asm.$c).apply(null,arguments)},of=b._emscripten_bind_TessBaseAPI_Init_4=function(){return(of=b._emscripten_bind_TessBaseAPI_Init_4=b.asm.ad).apply(null,arguments)},pf=b._emscripten_bind_TessBaseAPI_GetInitLanguagesAsString_0=function(){return(pf=b._emscripten_bind_TessBaseAPI_GetInitLanguagesAsString_0=b.asm.bd).apply(null,arguments)},qf=b._emscripten_bind_TessBaseAPI_InitForAnalysePage_0=function(){return(qf=b._emscripten_bind_TessBaseAPI_InitForAnalysePage_0=
b.asm.cd).apply(null,arguments)},rf=b._emscripten_bind_TessBaseAPI_ReadConfigFile_1=function(){return(rf=b._emscripten_bind_TessBaseAPI_ReadConfigFile_1=b.asm.dd).apply(null,arguments)},sf=b._emscripten_bind_TessBaseAPI_ReadDebugConfigFile_1=function(){return(sf=b._emscripten_bind_TessBaseAPI_ReadDebugConfigFile_1=b.asm.ed).apply(null,arguments)},tf=b._emscripten_bind_TessBaseAPI_SetPageSegMode_1=function(){return(tf=b._emscripten_bind_TessBaseAPI_SetPageSegMode_1=b.asm.fd).apply(null,arguments)},
uf=b._emscripten_bind_TessBaseAPI_GetPageSegMode_0=function(){return(uf=b._emscripten_bind_TessBaseAPI_GetPageSegMode_0=b.asm.gd).apply(null,arguments)},vf=b._emscripten_bind_TessBaseAPI_TesseractRect_7=function(){return(vf=b._emscripten_bind_TessBaseAPI_TesseractRect_7=b.asm.hd).apply(null,arguments)},wf=b._emscripten_bind_TessBaseAPI_ClearAdaptiveClassifier_0=function(){return(wf=b._emscripten_bind_TessBaseAPI_ClearAdaptiveClassifier_0=b.asm.id).apply(null,arguments)},xf=b._emscripten_bind_TessBaseAPI_SetImage_1=
function(){return(xf=b._emscripten_bind_TessBaseAPI_SetImage_1=b.asm.jd).apply(null,arguments)},yf=b._emscripten_bind_TessBaseAPI_SetImage_5=function(){return(yf=b._emscripten_bind_TessBaseAPI_SetImage_5=b.asm.kd).apply(null,arguments)},zf=b._emscripten_bind_TessBaseAPI_SetImageFile_1=function(){return(zf=b._emscripten_bind_TessBaseAPI_SetImageFile_1=b.asm.ld).apply(null,arguments)},Af=b._emscripten_bind_TessBaseAPI_SetSourceResolution_1=function(){return(Af=b._emscripten_bind_TessBaseAPI_SetSourceResolution_1=
b.asm.md).apply(null,arguments)},Bf=b._emscripten_bind_TessBaseAPI_SetRectangle_4=function(){return(Bf=b._emscripten_bind_TessBaseAPI_SetRectangle_4=b.asm.nd).apply(null,arguments)},Cf=b._emscripten_bind_TessBaseAPI_GetThresholdedImage_0=function(){return(Cf=b._emscripten_bind_TessBaseAPI_GetThresholdedImage_0=b.asm.od).apply(null,arguments)},Df=b._emscripten_bind_TessBaseAPI_WriteImage_0=function(){return(Df=b._emscripten_bind_TessBaseAPI_WriteImage_0=b.asm.pd).apply(null,arguments)},Ef=b._emscripten_bind_TessBaseAPI_FindLines_0=
function(){return(Ef=b._emscripten_bind_TessBaseAPI_FindLines_0=b.asm.qd).apply(null,arguments)},Ff=b._emscripten_bind_TessBaseAPI_GetGradient_0=function(){return(Ff=b._emscripten_bind_TessBaseAPI_GetGradient_0=b.asm.rd).apply(null,arguments)},Gf=b._emscripten_bind_TessBaseAPI_GetRegions_1=function(){return(Gf=b._emscripten_bind_TessBaseAPI_GetRegions_1=b.asm.sd).apply(null,arguments)},Hf=b._emscripten_bind_TessBaseAPI_GetTextlines_2=function(){return(Hf=b._emscripten_bind_TessBaseAPI_GetTextlines_2=
b.asm.td).apply(null,arguments)},If=b._emscripten_bind_TessBaseAPI_GetTextlines_5=function(){return(If=b._emscripten_bind_TessBaseAPI_GetTextlines_5=b.asm.ud).apply(null,arguments)},Jf=b._emscripten_bind_TessBaseAPI_GetStrips_2=function(){return(Jf=b._emscripten_bind_TessBaseAPI_GetStrips_2=b.asm.vd).apply(null,arguments)},Kf=b._emscripten_bind_TessBaseAPI_GetWords_1=function(){return(Kf=b._emscripten_bind_TessBaseAPI_GetWords_1=b.asm.wd).apply(null,arguments)},Lf=b._emscripten_bind_TessBaseAPI_GetConnectedComponents_1=
function(){return(Lf=b._emscripten_bind_TessBaseAPI_GetConnectedComponents_1=b.asm.xd).apply(null,arguments)},Mf=b._emscripten_bind_TessBaseAPI_GetComponentImages_4=function(){return(Mf=b._emscripten_bind_TessBaseAPI_GetComponentImages_4=b.asm.yd).apply(null,arguments)},Nf=b._emscripten_bind_TessBaseAPI_GetComponentImages_7=function(){return(Nf=b._emscripten_bind_TessBaseAPI_GetComponentImages_7=b.asm.zd).apply(null,arguments)},Of=b._emscripten_bind_TessBaseAPI_GetThresholdedImageScaleFactor_0=function(){return(Of=
b._emscripten_bind_TessBaseAPI_GetThresholdedImageScaleFactor_0=b.asm.Ad).apply(null,arguments)},Pf=b._emscripten_bind_TessBaseAPI_AnalyseLayout_0=function(){return(Pf=b._emscripten_bind_TessBaseAPI_AnalyseLayout_0=b.asm.Bd).apply(null,arguments)},Qf=b._emscripten_bind_TessBaseAPI_AnalyseLayout_1=function(){return(Qf=b._emscripten_bind_TessBaseAPI_AnalyseLayout_1=b.asm.Cd).apply(null,arguments)},Rf=b._emscripten_bind_TessBaseAPI_Recognize_1=function(){return(Rf=b._emscripten_bind_TessBaseAPI_Recognize_1=
b.asm.Dd).apply(null,arguments)},Sf=b._emscripten_bind_TessBaseAPI_ProcessPages_4=function(){return(Sf=b._emscripten_bind_TessBaseAPI_ProcessPages_4=b.asm.Ed).apply(null,arguments)},Tf=b._emscripten_bind_TessBaseAPI_ProcessPage_6=function(){return(Tf=b._emscripten_bind_TessBaseAPI_ProcessPage_6=b.asm.Fd).apply(null,arguments)},Uf=b._emscripten_bind_TessBaseAPI_GetIterator_0=function(){return(Uf=b._emscripten_bind_TessBaseAPI_GetIterator_0=b.asm.Gd).apply(null,arguments)},Vf=b._emscripten_bind_TessBaseAPI_GetUTF8Text_0=
function(){return(Vf=b._emscripten_bind_TessBaseAPI_GetUTF8Text_0=b.asm.Hd).apply(null,arguments)},Wf=b._emscripten_bind_TessBaseAPI_GetHOCRText_1=function(){return(Wf=b._emscripten_bind_TessBaseAPI_GetHOCRText_1=b.asm.Id).apply(null,arguments)},Xf=b._emscripten_bind_TessBaseAPI_GetTSVText_1=function(){return(Xf=b._emscripten_bind_TessBaseAPI_GetTSVText_1=b.asm.Jd).apply(null,arguments)},Yf=b._emscripten_bind_TessBaseAPI_GetBoxText_1=function(){return(Yf=b._emscripten_bind_TessBaseAPI_GetBoxText_1=
b.asm.Kd).apply(null,arguments)},Zf=b._emscripten_bind_TessBaseAPI_GetUNLVText_0=function(){return(Zf=b._emscripten_bind_TessBaseAPI_GetUNLVText_0=b.asm.Ld).apply(null,arguments)},$f=b._emscripten_bind_TessBaseAPI_GetOsdText_1=function(){return($f=b._emscripten_bind_TessBaseAPI_GetOsdText_1=b.asm.Md).apply(null,arguments)},ag=b._emscripten_bind_TessBaseAPI_MeanTextConf_0=function(){return(ag=b._emscripten_bind_TessBaseAPI_MeanTextConf_0=b.asm.Nd).apply(null,arguments)},bg=b._emscripten_bind_TessBaseAPI_AllWordConfidences_0=
function(){return(bg=b._emscripten_bind_TessBaseAPI_AllWordConfidences_0=b.asm.Od).apply(null,arguments)},cg=b._emscripten_bind_TessBaseAPI_Clear_0=function(){return(cg=b._emscripten_bind_TessBaseAPI_Clear_0=b.asm.Pd).apply(null,arguments)},dg=b._emscripten_bind_TessBaseAPI_End_0=function(){return(dg=b._emscripten_bind_TessBaseAPI_End_0=b.asm.Qd).apply(null,arguments)},eg=b._emscripten_bind_TessBaseAPI_ClearPersistentCache_0=function(){return(eg=b._emscripten_bind_TessBaseAPI_ClearPersistentCache_0=
b.asm.Rd).apply(null,arguments)},fg=b._emscripten_bind_TessBaseAPI_IsValidWord_1=function(){return(fg=b._emscripten_bind_TessBaseAPI_IsValidWord_1=b.asm.Sd).apply(null,arguments)},gg=b._emscripten_bind_TessBaseAPI_IsValidCharacter_1=function(){return(gg=b._emscripten_bind_TessBaseAPI_IsValidCharacter_1=b.asm.Td).apply(null,arguments)},hg=b._emscripten_bind_TessBaseAPI_DetectOS_1=function(){return(hg=b._emscripten_bind_TessBaseAPI_DetectOS_1=b.asm.Ud).apply(null,arguments)},ig=b._emscripten_bind_TessBaseAPI_GetUnichar_1=
function(){return(ig=b._emscripten_bind_TessBaseAPI_GetUnichar_1=b.asm.Vd).apply(null,arguments)},jg=b._emscripten_bind_TessBaseAPI_GetDawg_1=function(){return(jg=b._emscripten_bind_TessBaseAPI_GetDawg_1=b.asm.Wd).apply(null,arguments)},kg=b._emscripten_bind_TessBaseAPI_NumDawgs_0=function(){return(kg=b._emscripten_bind_TessBaseAPI_NumDawgs_0=b.asm.Xd).apply(null,arguments)},lg=b._emscripten_bind_TessBaseAPI_oem_0=function(){return(lg=b._emscripten_bind_TessBaseAPI_oem_0=b.asm.Yd).apply(null,arguments)},
mg=b._emscripten_bind_TessBaseAPI___destroy___0=function(){return(mg=b._emscripten_bind_TessBaseAPI___destroy___0=b.asm.Zd).apply(null,arguments)},ng=b._emscripten_bind_OSResults_OSResults_0=function(){return(ng=b._emscripten_bind_OSResults_OSResults_0=b.asm._d).apply(null,arguments)},og=b._emscripten_bind_OSResults_print_scores_0=function(){return(og=b._emscripten_bind_OSResults_print_scores_0=b.asm.$d).apply(null,arguments)},pg=b._emscripten_bind_OSResults_get_best_result_0=function(){return(pg=
b._emscripten_bind_OSResults_get_best_result_0=b.asm.ae).apply(null,arguments)},qg=b._emscripten_bind_OSResults_get_unicharset_0=function(){return(qg=b._emscripten_bind_OSResults_get_unicharset_0=b.asm.be).apply(null,arguments)},rg=b._emscripten_bind_OSResults___destroy___0=function(){return(rg=b._emscripten_bind_OSResults___destroy___0=b.asm.ce).apply(null,arguments)},sg=b._emscripten_bind_Pixa_get_n_0=function(){return(sg=b._emscripten_bind_Pixa_get_n_0=b.asm.de).apply(null,arguments)},tg=b._emscripten_bind_Pixa_get_nalloc_0=
function(){return(tg=b._emscripten_bind_Pixa_get_nalloc_0=b.asm.ee).apply(null,arguments)},ug=b._emscripten_bind_Pixa_get_refcount_0=function(){return(ug=b._emscripten_bind_Pixa_get_refcount_0=b.asm.fe).apply(null,arguments)},vg=b._emscripten_bind_Pixa_get_pix_0=function(){return(vg=b._emscripten_bind_Pixa_get_pix_0=b.asm.ge).apply(null,arguments)},wg=b._emscripten_bind_Pixa_get_boxa_0=function(){return(wg=b._emscripten_bind_Pixa_get_boxa_0=b.asm.he).apply(null,arguments)},xg=b._emscripten_bind_Pixa___destroy___0=
function(){return(xg=b._emscripten_bind_Pixa___destroy___0=b.asm.ie).apply(null,arguments)},yg=b._emscripten_enum_PageIteratorLevel_RIL_BLOCK=function(){return(yg=b._emscripten_enum_PageIteratorLevel_RIL_BLOCK=b.asm.je).apply(null,arguments)},zg=b._emscripten_enum_PageIteratorLevel_RIL_PARA=function(){return(zg=b._emscripten_enum_PageIteratorLevel_RIL_PARA=b.asm.ke).apply(null,arguments)},Ag=b._emscripten_enum_PageIteratorLevel_RIL_TEXTLINE=function(){return(Ag=b._emscripten_enum_PageIteratorLevel_RIL_TEXTLINE=
b.asm.le).apply(null,arguments)},Bg=b._emscripten_enum_PageIteratorLevel_RIL_WORD=function(){return(Bg=b._emscripten_enum_PageIteratorLevel_RIL_WORD=b.asm.me).apply(null,arguments)},Cg=b._emscripten_enum_PageIteratorLevel_RIL_SYMBOL=function(){return(Cg=b._emscripten_enum_PageIteratorLevel_RIL_SYMBOL=b.asm.ne).apply(null,arguments)},Dg=b._emscripten_enum_OcrEngineMode_OEM_TESSERACT_ONLY=function(){return(Dg=b._emscripten_enum_OcrEngineMode_OEM_TESSERACT_ONLY=b.asm.oe).apply(null,arguments)},Eg=b._emscripten_enum_OcrEngineMode_OEM_LSTM_ONLY=
function(){return(Eg=b._emscripten_enum_OcrEngineMode_OEM_LSTM_ONLY=b.asm.pe).apply(null,arguments)},Fg=b._emscripten_enum_OcrEngineMode_OEM_TESSERACT_LSTM_COMBINED=function(){return(Fg=b._emscripten_enum_OcrEngineMode_OEM_TESSERACT_LSTM_COMBINED=b.asm.qe).apply(null,arguments)},Gg=b._emscripten_enum_OcrEngineMode_OEM_DEFAULT=function(){return(Gg=b._emscripten_enum_OcrEngineMode_OEM_DEFAULT=b.asm.re).apply(null,arguments)},Hg=b._emscripten_enum_OcrEngineMode_OEM_COUNT=function(){return(Hg=b._emscripten_enum_OcrEngineMode_OEM_COUNT=
b.asm.se).apply(null,arguments)},Ig=b._emscripten_enum_WritingDirection__WRITING_DIRECTION_LEFT_TO_RIGHT=function(){return(Ig=b._emscripten_enum_WritingDirection__WRITING_DIRECTION_LEFT_TO_RIGHT=b.asm.te).apply(null,arguments)},Jg=b._emscripten_enum_WritingDirection__WRITING_DIRECTION_RIGHT_TO_LEFT=function(){return(Jg=b._emscripten_enum_WritingDirection__WRITING_DIRECTION_RIGHT_TO_LEFT=b.asm.ue).apply(null,arguments)},Kg=b._emscripten_enum_WritingDirection__WRITING_DIRECTION_TOP_TO_BOTTOM=function(){return(Kg=
b._emscripten_enum_WritingDirection__WRITING_DIRECTION_TOP_TO_BOTTOM=b.asm.ve).apply(null,arguments)},Lg=b._emscripten_enum_PolyBlockType_PT_UNKNOWN=function(){return(Lg=b._emscripten_enum_PolyBlockType_PT_UNKNOWN=b.asm.we).apply(null,arguments)},Mg=b._emscripten_enum_PolyBlockType_PT_FLOWING_TEXT=function(){return(Mg=b._emscripten_enum_PolyBlockType_PT_FLOWING_TEXT=b.asm.xe).apply(null,arguments)},Ng=b._emscripten_enum_PolyBlockType_PT_HEADING_TEXT=function(){return(Ng=b._emscripten_enum_PolyBlockType_PT_HEADING_TEXT=
b.asm.ye).apply(null,arguments)},Og=b._emscripten_enum_PolyBlockType_PT_PULLOUT_TEXT=function(){return(Og=b._emscripten_enum_PolyBlockType_PT_PULLOUT_TEXT=b.asm.ze).apply(null,arguments)},Pg=b._emscripten_enum_PolyBlockType_PT_EQUATION=function(){return(Pg=b._emscripten_enum_PolyBlockType_PT_EQUATION=b.asm.Ae).apply(null,arguments)},Qg=b._emscripten_enum_PolyBlockType_PT_INLINE_EQUATION=function(){return(Qg=b._emscripten_enum_PolyBlockType_PT_INLINE_EQUATION=b.asm.Be).apply(null,arguments)},Rg=b._emscripten_enum_PolyBlockType_PT_TABLE=
function(){return(Rg=b._emscripten_enum_PolyBlockType_PT_TABLE=b.asm.Ce).apply(null,arguments)},Sg=b._emscripten_enum_PolyBlockType_PT_VERTICAL_TEXT=function(){return(Sg=b._emscripten_enum_PolyBlockType_PT_VERTICAL_TEXT=b.asm.De).apply(null,arguments)},Tg=b._emscripten_enum_PolyBlockType_PT_CAPTION_TEXT=function(){return(Tg=b._emscripten_enum_PolyBlockType_PT_CAPTION_TEXT=b.asm.Ee).apply(null,arguments)},Ug=b._emscripten_enum_PolyBlockType_PT_FLOWING_IMAGE=function(){return(Ug=b._emscripten_enum_PolyBlockType_PT_FLOWING_IMAGE=
b.asm.Fe).apply(null,arguments)},Vg=b._emscripten_enum_PolyBlockType_PT_HEADING_IMAGE=function(){return(Vg=b._emscripten_enum_PolyBlockType_PT_HEADING_IMAGE=b.asm.Ge).apply(null,arguments)},Wg=b._emscripten_enum_PolyBlockType_PT_PULLOUT_IMAGE=function(){return(Wg=b._emscripten_enum_PolyBlockType_PT_PULLOUT_IMAGE=b.asm.He).apply(null,arguments)},Xg=b._emscripten_enum_PolyBlockType_PT_HORZ_LINE=function(){return(Xg=b._emscripten_enum_PolyBlockType_PT_HORZ_LINE=b.asm.Ie).apply(null,arguments)},Yg=b._emscripten_enum_PolyBlockType_PT_VERT_LINE=
function(){return(Yg=b._emscripten_enum_PolyBlockType_PT_VERT_LINE=b.asm.Je).apply(null,arguments)},Zg=b._emscripten_enum_PolyBlockType_PT_NOISE=function(){return(Zg=b._emscripten_enum_PolyBlockType_PT_NOISE=b.asm.Ke).apply(null,arguments)},$g=b._emscripten_enum_PolyBlockType_PT_COUNT=function(){return($g=b._emscripten_enum_PolyBlockType_PT_COUNT=b.asm.Le).apply(null,arguments)},ah=b._emscripten_enum_StrongScriptDirection_DIR_NEUTRAL=function(){return(ah=b._emscripten_enum_StrongScriptDirection_DIR_NEUTRAL=
b.asm.Me).apply(null,arguments)},bh=b._emscripten_enum_StrongScriptDirection_DIR_LEFT_TO_RIGHT=function(){return(bh=b._emscripten_enum_StrongScriptDirection_DIR_LEFT_TO_RIGHT=b.asm.Ne).apply(null,arguments)},ch=b._emscripten_enum_StrongScriptDirection_DIR_RIGHT_TO_LEFT=function(){return(ch=b._emscripten_enum_StrongScriptDirection_DIR_RIGHT_TO_LEFT=b.asm.Oe).apply(null,arguments)},dh=b._emscripten_enum_StrongScriptDirection_DIR_MIX=function(){return(dh=b._emscripten_enum_StrongScriptDirection_DIR_MIX=
b.asm.Pe).apply(null,arguments)},eh=b._emscripten_enum_ParagraphJustification__JUSTIFICATION_UNKNOWN=function(){return(eh=b._emscripten_enum_ParagraphJustification__JUSTIFICATION_UNKNOWN=b.asm.Qe).apply(null,arguments)},fh=b._emscripten_enum_ParagraphJustification__JUSTIFICATION_LEFT=function(){return(fh=b._emscripten_enum_ParagraphJustification__JUSTIFICATION_LEFT=b.asm.Re).apply(null,arguments)},gh=b._emscripten_enum_ParagraphJustification__JUSTIFICATION_CENTER=function(){return(gh=b._emscripten_enum_ParagraphJustification__JUSTIFICATION_CENTER=
b.asm.Se).apply(null,arguments)},hh=b._emscripten_enum_ParagraphJustification__JUSTIFICATION_RIGHT=function(){return(hh=b._emscripten_enum_ParagraphJustification__JUSTIFICATION_RIGHT=b.asm.Te).apply(null,arguments)},ih=b._emscripten_enum_TextlineOrder__TEXTLINE_ORDER_LEFT_TO_RIGHT=function(){return(ih=b._emscripten_enum_TextlineOrder__TEXTLINE_ORDER_LEFT_TO_RIGHT=b.asm.Ue).apply(null,arguments)},jh=b._emscripten_enum_TextlineOrder__TEXTLINE_ORDER_RIGHT_TO_LEFT=function(){return(jh=b._emscripten_enum_TextlineOrder__TEXTLINE_ORDER_RIGHT_TO_LEFT=
b.asm.Ve).apply(null,arguments)},kh=b._emscripten_enum_TextlineOrder__TEXTLINE_ORDER_TOP_TO_BOTTOM=function(){return(kh=b._emscripten_enum_TextlineOrder__TEXTLINE_ORDER_TOP_TO_BOTTOM=b.asm.We).apply(null,arguments)},lh=b._emscripten_enum_Orientation__ORIENTATION_PAGE_UP=function(){return(lh=b._emscripten_enum_Orientation__ORIENTATION_PAGE_UP=b.asm.Xe).apply(null,arguments)},mh=b._emscripten_enum_Orientation__ORIENTATION_PAGE_RIGHT=function(){return(mh=b._emscripten_enum_Orientation__ORIENTATION_PAGE_RIGHT=
b.asm.Ye).apply(null,arguments)},nh=b._emscripten_enum_Orientation__ORIENTATION_PAGE_DOWN=function(){return(nh=b._emscripten_enum_Orientation__ORIENTATION_PAGE_DOWN=b.asm.Ze).apply(null,arguments)},oh=b._emscripten_enum_Orientation__ORIENTATION_PAGE_LEFT=function(){return(oh=b._emscripten_enum_Orientation__ORIENTATION_PAGE_LEFT=b.asm._e).apply(null,arguments)},ph=b._emscripten_enum_PageSegMode_PSM_OSD_ONLY=function(){return(ph=b._emscripten_enum_PageSegMode_PSM_OSD_ONLY=b.asm.$e).apply(null,arguments)},
qh=b._emscripten_enum_PageSegMode_PSM_AUTO_OSD=function(){return(qh=b._emscripten_enum_PageSegMode_PSM_AUTO_OSD=b.asm.af).apply(null,arguments)},rh=b._emscripten_enum_PageSegMode_PSM_AUTO_ONLY=function(){return(rh=b._emscripten_enum_PageSegMode_PSM_AUTO_ONLY=b.asm.bf).apply(null,arguments)},sh=b._emscripten_enum_PageSegMode_PSM_AUTO=function(){return(sh=b._emscripten_enum_PageSegMode_PSM_AUTO=b.asm.cf).apply(null,arguments)},th=b._emscripten_enum_PageSegMode_PSM_SINGLE_COLUMN=function(){return(th=
b._emscripten_enum_PageSegMode_PSM_SINGLE_COLUMN=b.asm.df).apply(null,arguments)},uh=b._emscripten_enum_PageSegMode_PSM_SINGLE_BLOCK_VERT_TEXT=function(){return(uh=b._emscripten_enum_PageSegMode_PSM_SINGLE_BLOCK_VERT_TEXT=b.asm.ef).apply(null,arguments)},vh=b._emscripten_enum_PageSegMode_PSM_SINGLE_BLOCK=function(){return(vh=b._emscripten_enum_PageSegMode_PSM_SINGLE_BLOCK=b.asm.ff).apply(null,arguments)},wh=b._emscripten_enum_PageSegMode_PSM_SINGLE_LINE=function(){return(wh=b._emscripten_enum_PageSegMode_PSM_SINGLE_LINE=
b.asm.gf).apply(null,arguments)},xh=b._emscripten_enum_PageSegMode_PSM_SINGLE_WORD=function(){return(xh=b._emscripten_enum_PageSegMode_PSM_SINGLE_WORD=b.asm.hf).apply(null,arguments)},yh=b._emscripten_enum_PageSegMode_PSM_CIRCLE_WORD=function(){return(yh=b._emscripten_enum_PageSegMode_PSM_CIRCLE_WORD=b.asm.jf).apply(null,arguments)},zh=b._emscripten_enum_PageSegMode_PSM_SINGLE_CHAR=function(){return(zh=b._emscripten_enum_PageSegMode_PSM_SINGLE_CHAR=b.asm.kf).apply(null,arguments)},Ah=b._emscripten_enum_PageSegMode_PSM_SPARSE_TEXT=
function(){return(Ah=b._emscripten_enum_PageSegMode_PSM_SPARSE_TEXT=b.asm.lf).apply(null,arguments)},Bh=b._emscripten_enum_PageSegMode_PSM_SPARSE_TEXT_OSD=function(){return(Bh=b._emscripten_enum_PageSegMode_PSM_SPARSE_TEXT_OSD=b.asm.mf).apply(null,arguments)},Ch=b._emscripten_enum_PageSegMode_PSM_RAW_LINE=function(){return(Ch=b._emscripten_enum_PageSegMode_PSM_RAW_LINE=b.asm.nf).apply(null,arguments)},Dh=b._emscripten_enum_PageSegMode_PSM_COUNT=function(){return(Dh=b._emscripten_enum_PageSegMode_PSM_COUNT=
b.asm.of).apply(null,arguments)};b._pixDestroy=function(){return(b._pixDestroy=b.asm.qf).apply(null,arguments)};b._ptaDestroy=function(){return(b._ptaDestroy=b.asm.rf).apply(null,arguments)};b._pixaDestroy=function(){return(b._pixaDestroy=b.asm.sf).apply(null,arguments)};b._boxaDestroy=function(){return(b._boxaDestroy=b.asm.tf).apply(null,arguments)};b._pixReadMem=function(){return(b._pixReadMem=b.asm.uf).apply(null,arguments)};function Rb(){return(Rb=b.asm.vf).apply(null,arguments)}
var Eh=b._free=function(){return(Eh=b._free=b.asm.wf).apply(null,arguments)},Fb=b._malloc=function(){return(Fb=b._malloc=b.asm.xf).apply(null,arguments)};b._pixReadHeaderMem=function(){return(b._pixReadHeaderMem=b.asm.yf).apply(null,arguments)};function C(){return(C=b.asm.zf).apply(null,arguments)}function D(){return(D=b.asm.Af).apply(null,arguments)}b.___emscripten_embedded_file_data=601360;function Ub(a,c,d,e){var g=C();try{return Pb(a)(c,d,e)}catch(h){D(g);if(h!==h+0)throw h;zb()}}
function Xb(a,c){var d=C();try{Pb(a)(c)}catch(e){D(d);if(e!==e+0)throw e;zb()}}function Sb(a,c){var d=C();try{return Pb(a)(c)}catch(e){D(d);if(e!==e+0)throw e;zb()}}function Zb(a,c,d,e){var g=C();try{Pb(a)(c,d,e)}catch(h){D(g);if(h!==h+0)throw h;zb()}}function Yb(a,c,d){var e=C();try{Pb(a)(c,d)}catch(g){D(e);if(g!==g+0)throw g;zb()}}function Tb(a,c,d){var e=C();try{return Pb(a)(c,d)}catch(g){D(e);if(g!==g+0)throw g;zb()}}
function Vb(a,c,d,e,g){var h=C();try{return Pb(a)(c,d,e,g)}catch(k){D(h);if(k!==k+0)throw k;zb()}}function $b(a,c,d,e,g){var h=C();try{Pb(a)(c,d,e,g)}catch(k){D(h);if(k!==k+0)throw k;zb()}}function Wb(a,c,d,e,g,h){var k=C();try{return Pb(a)(c,d,e,g,h)}catch(m){D(k);if(m!==m+0)throw m;zb()}}function bc(a,c,d,e,g,h,k,m,v,q){var t=C();try{Pb(a)(c,d,e,g,h,k,m,v,q)}catch(F){D(t);if(F!==F+0)throw F;zb()}}function ac(a,c,d,e,g,h){var k=C();try{Pb(a)(c,d,e,g,h)}catch(m){D(k);if(m!==m+0)throw m;zb()}}
b.addRunDependency=Ha;b.removeRunDependency=Ia;b.FS_createPath=A.Cg;b.FS_createDataFile=A.tg;b.FS_createLazyFile=A.$g;b.FS_createDevice=A.Pf;b.FS_unlink=A.unlink;b.setValue=Ya;b.getValue=Xa;b.FS_createPreloadedFile=A.ah;b.FS=A;var Fh;Ga=function Gh(){Fh||Hh();Fh||(Ga=Gh)};
function Hh(){function a(){if(!Fh&&(Fh=!0,b.calledRun=!0,!sa)){Ca=!0;b.noFSInit||A.bg.Ng||A.bg();A.nh=!1;Sa(Aa);aa(b);if(b.onRuntimeInitialized)b.onRuntimeInitialized();if(b.postRun)for("function"==typeof b.postRun&&(b.postRun=[b.postRun]);b.postRun.length;){var c=b.postRun.shift();Ba.unshift(c)}Sa(Ba)}}if(!(0<Ea)){if(b.preRun)for("function"==typeof b.preRun&&(b.preRun=[b.preRun]);b.preRun.length;)Da();Sa(za);0<Ea||(b.setStatus?(b.setStatus("Running..."),setTimeout(function(){setTimeout(function(){b.setStatus("")},
1);a()},1)):a())}}if(b.preInit)for("function"==typeof b.preInit&&(b.preInit=[b.preInit]);0<b.preInit.length;)b.preInit.pop()();Hh();function G(){}G.prototype=Object.create(G.prototype);G.prototype.constructor=G;G.prototype.Gf=G;G.Hf={};b.WrapperObject=G;function Ih(a){return(a||G).Hf}b.getCache=Ih;function H(a,c){var d=Ih(c),e=d[a];if(e)return e;e=Object.create((c||G).prototype);e.Bf=a;return d[a]=e}b.wrapPointer=H;b.castObject=function(a,c){return H(a.Bf,c)};b.NULL=H(0);
b.destroy=function(a){if(!a.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";a.__destroy__();delete Ih(a.Gf)[a.Bf]};b.compare=function(a,c){return a.Bf===c.Bf};b.getPointer=function(a){return a.Bf};b.getClass=function(a){return a.Gf};var Jh=0,Kh=0,Lh=0,Mh=[],Nh=0;function I(){if(Nh){for(var a=0;a<Mh.length;a++)b._free(Mh[a]);Mh.length=0;b._free(Jh);Jh=0;Kh+=Nh;Nh=0}Jh||(Kh+=128,(Jh=b._malloc(Kh))||n());Lh=0}
function J(a){if("string"===typeof a){a=kb(a);var c=p;Jh||n();c=a.length*c.BYTES_PER_ELEMENT;c=c+7&-8;if(Lh+c>=Kh){0<c||n();Nh+=c;var d=b._malloc(c);Mh.push(d)}else d=Jh+Lh,Lh+=c;c=d;d=p;var e=c;switch(d.BYTES_PER_ELEMENT){case 2:e>>=1;break;case 4:e>>=2;break;case 8:e>>=3}for(var g=0;g<a.length;g++)d[e+g]=a[g];return c}return a}function Oh(){throw"cannot construct a ParagraphJustification, no constructor in IDL";}Oh.prototype=Object.create(G.prototype);Oh.prototype.constructor=Oh;
Oh.prototype.Gf=Oh;Oh.Hf={};b.ParagraphJustification=Oh;Oh.prototype.__destroy__=function(){dc(this.Bf)};function Ph(){throw"cannot construct a BoolPtr, no constructor in IDL";}Ph.prototype=Object.create(G.prototype);Ph.prototype.constructor=Ph;Ph.prototype.Gf=Ph;Ph.Hf={};b.BoolPtr=Ph;Ph.prototype.__destroy__=function(){ec(this.Bf)};function K(){throw"cannot construct a TessResultRenderer, no constructor in IDL";}K.prototype=Object.create(G.prototype);K.prototype.constructor=K;K.prototype.Gf=K;
K.Hf={};b.TessResultRenderer=K;K.prototype.BeginDocument=function(a){var c=this.Bf;I();a=a&&"object"===typeof a?a.Bf:J(a);return!!fc(c,a)};K.prototype.AddImage=function(a){var c=this.Bf;a&&"object"===typeof a&&(a=a.Bf);return!!gc(c,a)};K.prototype.EndDocument=function(){return!!hc(this.Bf)};K.prototype.happy=function(){return!!ic(this.Bf)};K.prototype.file_extension=function(){return z(jc(this.Bf))};K.prototype.title=K.prototype.title=function(){return z(kc(this.Bf))};K.prototype.imagenum=function(){return lc(this.Bf)};
K.prototype.__destroy__=function(){mc(this.Bf)};function Qh(){throw"cannot construct a LongStarPtr, no constructor in IDL";}Qh.prototype=Object.create(G.prototype);Qh.prototype.constructor=Qh;Qh.prototype.Gf=Qh;Qh.Hf={};b.LongStarPtr=Qh;Qh.prototype.__destroy__=function(){nc(this.Bf)};function Rh(){throw"cannot construct a VoidPtr, no constructor in IDL";}Rh.prototype=Object.create(G.prototype);Rh.prototype.constructor=Rh;Rh.prototype.Gf=Rh;Rh.Hf={};b.VoidPtr=Rh;Rh.prototype.__destroy__=function(){oc(this.Bf)};
function L(a){a&&"object"===typeof a&&(a=a.Bf);this.Bf=pc(a);Ih(L)[this.Bf]=this}L.prototype=Object.create(G.prototype);L.prototype.constructor=L;L.prototype.Gf=L;L.Hf={};b.ResultIterator=L;L.prototype.Begin=function(){qc(this.Bf)};L.prototype.RestartParagraph=function(){rc(this.Bf)};L.prototype.IsWithinFirstTextlineOfParagraph=function(){return!!sc(this.Bf)};L.prototype.RestartRow=function(){tc(this.Bf)};L.prototype.Next=function(a){var c=this.Bf;a&&"object"===typeof a&&(a=a.Bf);return!!uc(c,a)};
L.prototype.IsAtBeginningOf=function(a){var c=this.Bf;a&&"object"===typeof a&&(a=a.Bf);return!!vc(c,a)};L.prototype.IsAtFinalElement=function(a,c){var d=this.Bf;a&&"object"===typeof a&&(a=a.Bf);c&&"object"===typeof c&&(c=c.Bf);return!!wc(d,a,c)};L.prototype.Cmp=function(a){var c=this.Bf;a&&"object"===typeof a&&(a=a.Bf);return xc(c,a)};L.prototype.SetBoundingBoxComponents=function(a,c){var d=this.Bf;a&&"object"===typeof a&&(a=a.Bf);c&&"object"===typeof c&&(c=c.Bf);yc(d,a,c)};
L.prototype.BoundingBox=function(a,c,d,e,g,h){var k=this.Bf;a&&"object"===typeof a&&(a=a.Bf);c&&"object"===typeof c&&(c=c.Bf);d&&"object"===typeof d&&(d=d.Bf);e&&"object"===typeof e&&(e=e.Bf);g&&"object"===typeof g&&(g=g.Bf);h&&"object"===typeof h&&(h=h.Bf);return void 0===h?!!zc(k,a,c,d,e,g):!!Ac(k,a,c,d,e,g,h)};
L.prototype.BoundingBoxInternal=function(a,c,d,e,g){var h=this.Bf;a&&"object"===typeof a&&(a=a.Bf);c&&"object"===typeof c&&(c=c.Bf);d&&"object"===typeof d&&(d=d.Bf);e&&"object"===typeof e&&(e=e.Bf);g&&"object"===typeof g&&(g=g.Bf);return!!Bc(h,a,c,d,e,g)};L.prototype.Empty=function(a){var c=this.Bf;a&&"object"===typeof a&&(a=a.Bf);return!!Cc(c,a)};L.prototype.BlockType=function(){return Dc(this.Bf)};L.prototype.BlockPolygon=function(){return H(Ec(this.Bf),M)};
L.prototype.GetBinaryImage=function(a){var c=this.Bf;a&&"object"===typeof a&&(a=a.Bf);return H(Fc(c,a),N)};L.prototype.GetImage=function(a,c,d,e,g){var h=this.Bf;a&&"object"===typeof a&&(a=a.Bf);c&&"object"===typeof c&&(c=c.Bf);d&&"object"===typeof d&&(d=d.Bf);e&&"object"===typeof e&&(e=e.Bf);g&&"object"===typeof g&&(g=g.Bf);return H(Gc(h,a,c,d,e,g),N)};
L.prototype.Baseline=function(a,c,d,e,g){var h=this.Bf;a&&"object"===typeof a&&(a=a.Bf);c&&"object"===typeof c&&(c=c.Bf);d&&"object"===typeof d&&(d=d.Bf);e&&"object"===typeof e&&(e=e.Bf);g&&"object"===typeof g&&(g=g.Bf);return!!Hc(h,a,c,d,e,g)};L.prototype.Orientation=function(a,c,d,e){var g=this.Bf;a&&"object"===typeof a&&(a=a.Bf);c&&"object"===typeof c&&(c=c.Bf);d&&"object"===typeof d&&(d=d.Bf);e&&"object"===typeof e&&(e=e.Bf);Ic(g,a,c,d,e)};
L.prototype.ParagraphInfo=function(a,c,d,e){var g=this.Bf;a&&"object"===typeof a&&(a=a.Bf);c&&"object"===typeof c&&(c=c.Bf);d&&"object"===typeof d&&(d=d.Bf);e&&"object"===typeof e&&(e=e.Bf);Jc(g,a,c,d,e)};L.prototype.ParagraphIsLtr=function(){return!!Kc(this.Bf)};L.prototype.GetUTF8Text=function(a){var c=this.Bf;a&&"object"===typeof a&&(a=a.Bf);return z(Lc(c,a))};L.prototype.SetLineSeparator=function(a){var c=this.Bf;I();a=a&&"object"===typeof a?a.Bf:J(a);Mc(c,a)};
L.prototype.SetParagraphSeparator=function(a){var c=this.Bf;I();a=a&&"object"===typeof a?a.Bf:J(a);Nc(c,a)};L.prototype.Confidence=function(a){var c=this.Bf;a&&"object"===typeof a&&(a=a.Bf);return Oc(c,a)};
L.prototype.WordFontAttributes=function(a,c,d,e,g,h,k,m){var v=this.Bf;a&&"object"===typeof a&&(a=a.Bf);c&&"object"===typeof c&&(c=c.Bf);d&&"object"===typeof d&&(d=d.Bf);e&&"object"===typeof e&&(e=e.Bf);g&&"object"===typeof g&&(g=g.Bf);h&&"object"===typeof h&&(h=h.Bf);k&&"object"===typeof k&&(k=k.Bf);m&&"object"===typeof m&&(m=m.Bf);return z(Pc(v,a,c,d,e,g,h,k,m))};L.prototype.WordRecognitionLanguage=function(){return z(Qc(this.Bf))};L.prototype.WordDirection=function(){return Rc(this.Bf)};
L.prototype.WordIsFromDictionary=function(){return!!Sc(this.Bf)};L.prototype.WordIsNumeric=function(){return!!Tc(this.Bf)};L.prototype.HasBlamerInfo=function(){return!!Uc(this.Bf)};L.prototype.HasTruthString=function(){return!!Vc(this.Bf)};L.prototype.EquivalentToTruth=function(a){var c=this.Bf;I();a=a&&"object"===typeof a?a.Bf:J(a);return!!Wc(c,a)};L.prototype.WordTruthUTF8Text=function(){return z(Xc(this.Bf))};L.prototype.WordNormedUTF8Text=function(){return z(Yc(this.Bf))};
L.prototype.WordLattice=function(a){var c=this.Bf;a&&"object"===typeof a&&(a=a.Bf);return z(Zc(c,a))};L.prototype.SymbolIsSuperscript=function(){return!!$c(this.Bf)};L.prototype.SymbolIsSubscript=function(){return!!ad(this.Bf)};L.prototype.SymbolIsDropcap=function(){return!!bd(this.Bf)};L.prototype.__destroy__=function(){cd(this.Bf)};function Th(){throw"cannot construct a TextlineOrder, no constructor in IDL";}Th.prototype=Object.create(G.prototype);Th.prototype.constructor=Th;Th.prototype.Gf=Th;
Th.Hf={};b.TextlineOrder=Th;Th.prototype.__destroy__=function(){dd(this.Bf)};function Uh(){throw"cannot construct a ETEXT_DESC, no constructor in IDL";}Uh.prototype=Object.create(G.prototype);Uh.prototype.constructor=Uh;Uh.prototype.Gf=Uh;Uh.Hf={};b.ETEXT_DESC=Uh;Uh.prototype.__destroy__=function(){ed(this.Bf)};function O(){throw"cannot construct a PageIterator, no constructor in IDL";}O.prototype=Object.create(G.prototype);O.prototype.constructor=O;O.prototype.Gf=O;O.Hf={};b.PageIterator=O;
O.prototype.Begin=function(){fd(this.Bf)};O.prototype.RestartParagraph=function(){gd(this.Bf)};O.prototype.IsWithinFirstTextlineOfParagraph=function(){return!!hd(this.Bf)};O.prototype.RestartRow=function(){jd(this.Bf)};O.prototype.Next=function(a){var c=this.Bf;a&&"object"===typeof a&&(a=a.Bf);return!!kd(c,a)};O.prototype.IsAtBeginningOf=function(a){var c=this.Bf;a&&"object"===typeof a&&(a=a.Bf);return!!ld(c,a)};
O.prototype.IsAtFinalElement=function(a,c){var d=this.Bf;a&&"object"===typeof a&&(a=a.Bf);c&&"object"===typeof c&&(c=c.Bf);return!!md(d,a,c)};O.prototype.Cmp=function(a){var c=this.Bf;a&&"object"===typeof a&&(a=a.Bf);return nd(c,a)};O.prototype.SetBoundingBoxComponents=function(a,c){var d=this.Bf;a&&"object"===typeof a&&(a=a.Bf);c&&"object"===typeof c&&(c=c.Bf);od(d,a,c)};
O.prototype.BoundingBox=function(a,c,d,e,g,h){var k=this.Bf;a&&"object"===typeof a&&(a=a.Bf);c&&"object"===typeof c&&(c=c.Bf);d&&"object"===typeof d&&(d=d.Bf);e&&"object"===typeof e&&(e=e.Bf);g&&"object"===typeof g&&(g=g.Bf);h&&"object"===typeof h&&(h=h.Bf);return void 0===h?!!pd(k,a,c,d,e,g):!!qd(k,a,c,d,e,g,h)};
O.prototype.BoundingBoxInternal=function(a,c,d,e,g){var h=this.Bf;a&&"object"===typeof a&&(a=a.Bf);c&&"object"===typeof c&&(c=c.Bf);d&&"object"===typeof d&&(d=d.Bf);e&&"object"===typeof e&&(e=e.Bf);g&&"object"===typeof g&&(g=g.Bf);return!!rd(h,a,c,d,e,g)};O.prototype.Empty=function(a){var c=this.Bf;a&&"object"===typeof a&&(a=a.Bf);return!!sd(c,a)};O.prototype.BlockType=function(){return td(this.Bf)};O.prototype.BlockPolygon=function(){return H(ud(this.Bf),M)};
O.prototype.GetBinaryImage=function(a){var c=this.Bf;a&&"object"===typeof a&&(a=a.Bf);return H(vd(c,a),N)};O.prototype.GetImage=function(a,c,d,e,g){var h=this.Bf;a&&"object"===typeof a&&(a=a.Bf);c&&"object"===typeof c&&(c=c.Bf);d&&"object"===typeof d&&(d=d.Bf);e&&"object"===typeof e&&(e=e.Bf);g&&"object"===typeof g&&(g=g.Bf);return H(wd(h,a,c,d,e,g),N)};
O.prototype.Baseline=function(a,c,d,e,g){var h=this.Bf;a&&"object"===typeof a&&(a=a.Bf);c&&"object"===typeof c&&(c=c.Bf);d&&"object"===typeof d&&(d=d.Bf);e&&"object"===typeof e&&(e=e.Bf);g&&"object"===typeof g&&(g=g.Bf);return!!xd(h,a,c,d,e,g)};O.prototype.Orientation=function(a,c,d,e){var g=this.Bf;a&&"object"===typeof a&&(a=a.Bf);c&&"object"===typeof c&&(c=c.Bf);d&&"object"===typeof d&&(d=d.Bf);e&&"object"===typeof e&&(e=e.Bf);yd(g,a,c,d,e)};
O.prototype.ParagraphInfo=function(a,c,d,e){var g=this.Bf;a&&"object"===typeof a&&(a=a.Bf);c&&"object"===typeof c&&(c=c.Bf);d&&"object"===typeof d&&(d=d.Bf);e&&"object"===typeof e&&(e=e.Bf);zd(g,a,c,d,e)};O.prototype.__destroy__=function(){Ad(this.Bf)};function Vh(){throw"cannot construct a WritingDirection, no constructor in IDL";}Vh.prototype=Object.create(G.prototype);Vh.prototype.constructor=Vh;Vh.prototype.Gf=Vh;Vh.Hf={};b.WritingDirection=Vh;Vh.prototype.__destroy__=function(){Bd(this.Bf)};
function Wh(a){a&&"object"===typeof a&&(a=a.Bf);this.Bf=Cd(a);Ih(Wh)[this.Bf]=this}Wh.prototype=Object.create(G.prototype);Wh.prototype.constructor=Wh;Wh.prototype.Gf=Wh;Wh.Hf={};b.WordChoiceIterator=Wh;Wh.prototype.Next=function(){return!!Dd(this.Bf)};Wh.prototype.GetUTF8Text=function(){return z(Ed(this.Bf))};Wh.prototype.Confidence=function(){return Fd(this.Bf)};Wh.prototype.__destroy__=function(){Gd(this.Bf)};function P(){throw"cannot construct a Box, no constructor in IDL";}P.prototype=Object.create(G.prototype);
P.prototype.constructor=P;P.prototype.Gf=P;P.Hf={};b.Box=P;P.prototype.get_x=P.prototype.Jg=function(){return Hd(this.Bf)};Object.defineProperty(P.prototype,"x",{get:P.prototype.Jg});P.prototype.get_y=P.prototype.Kg=function(){return Id(this.Bf)};Object.defineProperty(P.prototype,"y",{get:P.prototype.Kg});P.prototype.get_w=P.prototype.Ig=function(){return Jd(this.Bf)};Object.defineProperty(P.prototype,"w",{get:P.prototype.Ig});P.prototype.get_h=P.prototype.Hg=function(){return Kd(this.Bf)};
Object.defineProperty(P.prototype,"h",{get:P.prototype.Hg});P.prototype.get_refcount=P.prototype.Wf=function(){return Ld(this.Bf)};Object.defineProperty(P.prototype,"refcount",{get:P.prototype.Wf});P.prototype.__destroy__=function(){Md(this.Bf)};function Q(a,c,d){I();a=a&&"object"===typeof a?a.Bf:J(a);c=c&&"object"===typeof c?c.Bf:J(c);d&&"object"===typeof d&&(d=d.Bf);this.Bf=Nd(a,c,d);Ih(Q)[this.Bf]=this}Q.prototype=Object.create(G.prototype);Q.prototype.constructor=Q;Q.prototype.Gf=Q;Q.Hf={};
b.TessPDFRenderer=Q;Q.prototype.BeginDocument=function(a){var c=this.Bf;I();a=a&&"object"===typeof a?a.Bf:J(a);return!!Od(c,a)};Q.prototype.AddImage=function(a){var c=this.Bf;a&&"object"===typeof a&&(a=a.Bf);return!!Pd(c,a)};Q.prototype.EndDocument=function(){return!!Qd(this.Bf)};Q.prototype.happy=function(){return!!Rd(this.Bf)};Q.prototype.file_extension=function(){return z(Sd(this.Bf))};Q.prototype.title=Q.prototype.title=function(){return z(Td(this.Bf))};Q.prototype.imagenum=function(){return Ud(this.Bf)};
Q.prototype.__destroy__=function(){Vd(this.Bf)};function Xh(){throw"cannot construct a PixaPtr, no constructor in IDL";}Xh.prototype=Object.create(G.prototype);Xh.prototype.constructor=Xh;Xh.prototype.Gf=Xh;Xh.Hf={};b.PixaPtr=Xh;Xh.prototype.__destroy__=function(){Wd(this.Bf)};function Yh(){throw"cannot construct a FloatPtr, no constructor in IDL";}Yh.prototype=Object.create(G.prototype);Yh.prototype.constructor=Yh;Yh.prototype.Gf=Yh;Yh.Hf={};b.FloatPtr=Yh;Yh.prototype.__destroy__=function(){Xd(this.Bf)};
function Zh(a){a&&"object"===typeof a&&(a=a.Bf);this.Bf=Yd(a);Ih(Zh)[this.Bf]=this}Zh.prototype=Object.create(G.prototype);Zh.prototype.constructor=Zh;Zh.prototype.Gf=Zh;Zh.Hf={};b.ChoiceIterator=Zh;Zh.prototype.Next=function(){return!!Zd(this.Bf)};Zh.prototype.GetUTF8Text=function(){return z($d(this.Bf))};Zh.prototype.Confidence=function(){return ae(this.Bf)};Zh.prototype.__destroy__=function(){be(this.Bf)};function $h(){throw"cannot construct a PixPtr, no constructor in IDL";}$h.prototype=Object.create(G.prototype);
$h.prototype.constructor=$h;$h.prototype.Gf=$h;$h.Hf={};b.PixPtr=$h;$h.prototype.__destroy__=function(){ce(this.Bf)};function ai(){throw"cannot construct a UNICHARSET, no constructor in IDL";}ai.prototype=Object.create(G.prototype);ai.prototype.constructor=ai;ai.prototype.Gf=ai;ai.Hf={};b.UNICHARSET=ai;ai.prototype.get_script_from_script_id=function(a){var c=this.Bf;a&&"object"===typeof a&&(a=a.Bf);return z(de(c,a))};
ai.prototype.get_script_id_from_name=function(a){var c=this.Bf;I();a=a&&"object"===typeof a?a.Bf:J(a);return ee(c,a)};ai.prototype.get_script_table_size=function(){return fe(this.Bf)};ai.prototype.__destroy__=function(){ge(this.Bf)};function bi(){throw"cannot construct a IntPtr, no constructor in IDL";}bi.prototype=Object.create(G.prototype);bi.prototype.constructor=bi;bi.prototype.Gf=bi;bi.Hf={};b.IntPtr=bi;bi.prototype.__destroy__=function(){he(this.Bf)};
function ci(){throw"cannot construct a Orientation, no constructor in IDL";}ci.prototype=Object.create(G.prototype);ci.prototype.constructor=ci;ci.prototype.Gf=ci;ci.Hf={};b.Orientation=ci;ci.prototype.__destroy__=function(){ie(this.Bf)};function R(){throw"cannot construct a OSBestResult, no constructor in IDL";}R.prototype=Object.create(G.prototype);R.prototype.constructor=R;R.prototype.Gf=R;R.Hf={};b.OSBestResult=R;R.prototype.get_orientation_id=R.prototype.Th=function(){return je(this.Bf)};
Object.defineProperty(R.prototype,"orientation_id",{get:R.prototype.Th});R.prototype.get_script_id=R.prototype.Wh=function(){return ke(this.Bf)};Object.defineProperty(R.prototype,"script_id",{get:R.prototype.Wh});R.prototype.get_sconfidence=R.prototype.Vh=function(){return le(this.Bf)};Object.defineProperty(R.prototype,"sconfidence",{get:R.prototype.Vh});R.prototype.get_oconfidence=R.prototype.Sh=function(){return me(this.Bf)};Object.defineProperty(R.prototype,"oconfidence",{get:R.prototype.Sh});
R.prototype.__destroy__=function(){ne(this.Bf)};function S(){throw"cannot construct a Boxa, no constructor in IDL";}S.prototype=Object.create(G.prototype);S.prototype.constructor=S;S.prototype.Gf=S;S.Hf={};b.Boxa=S;S.prototype.get_n=S.prototype.$f=function(){return oe(this.Bf)};Object.defineProperty(S.prototype,"n",{get:S.prototype.$f});S.prototype.get_nalloc=S.prototype.ag=function(){return pe(this.Bf)};Object.defineProperty(S.prototype,"nalloc",{get:S.prototype.ag});
S.prototype.get_refcount=S.prototype.Wf=function(){return qe(this.Bf)};Object.defineProperty(S.prototype,"refcount",{get:S.prototype.Wf});S.prototype.get_box=S.prototype.Lh=function(){return H(re(this.Bf),di)};Object.defineProperty(S.prototype,"box",{get:S.prototype.Lh});S.prototype.__destroy__=function(){se(this.Bf)};function T(){throw"cannot construct a PixColormap, no constructor in IDL";}T.prototype=Object.create(G.prototype);T.prototype.constructor=T;T.prototype.Gf=T;T.Hf={};b.PixColormap=T;
T.prototype.get_array=T.prototype.Jh=function(){return te(this.Bf)};Object.defineProperty(T.prototype,"array",{get:T.prototype.Jh});T.prototype.get_depth=T.prototype.Qh=function(){return ue(this.Bf)};Object.defineProperty(T.prototype,"depth",{get:T.prototype.Qh});T.prototype.get_nalloc=T.prototype.ag=function(){return ve(this.Bf)};Object.defineProperty(T.prototype,"nalloc",{get:T.prototype.ag});T.prototype.get_n=T.prototype.$f=function(){return we(this.Bf)};Object.defineProperty(T.prototype,"n",{get:T.prototype.$f});
T.prototype.__destroy__=function(){xe(this.Bf)};function M(){throw"cannot construct a Pta, no constructor in IDL";}M.prototype=Object.create(G.prototype);M.prototype.constructor=M;M.prototype.Gf=M;M.Hf={};b.Pta=M;M.prototype.get_n=M.prototype.$f=function(){return ye(this.Bf)};Object.defineProperty(M.prototype,"n",{get:M.prototype.$f});M.prototype.get_nalloc=M.prototype.ag=function(){return ze(this.Bf)};Object.defineProperty(M.prototype,"nalloc",{get:M.prototype.ag});
M.prototype.get_refcount=M.prototype.Wf=function(){return Ae(this.Bf)};Object.defineProperty(M.prototype,"refcount",{get:M.prototype.Wf});M.prototype.get_x=M.prototype.Jg=function(){return H(Be(this.Bf),Yh)};Object.defineProperty(M.prototype,"x",{get:M.prototype.Jg});M.prototype.get_y=M.prototype.Kg=function(){return H(Ce(this.Bf),Yh)};Object.defineProperty(M.prototype,"y",{get:M.prototype.Kg});M.prototype.__destroy__=function(){De(this.Bf)};
function N(){throw"cannot construct a Pix, no constructor in IDL";}N.prototype=Object.create(G.prototype);N.prototype.constructor=N;N.prototype.Gf=N;N.Hf={};b.Pix=N;N.prototype.get_w=N.prototype.Ig=function(){return Ee(this.Bf)};Object.defineProperty(N.prototype,"w",{get:N.prototype.Ig});N.prototype.get_h=N.prototype.Hg=function(){return Fe(this.Bf)};Object.defineProperty(N.prototype,"h",{get:N.prototype.Hg});N.prototype.get_d=N.prototype.Oh=function(){return Ge(this.Bf)};
Object.defineProperty(N.prototype,"d",{get:N.prototype.Oh});N.prototype.get_spp=N.prototype.Yh=function(){return He(this.Bf)};Object.defineProperty(N.prototype,"spp",{get:N.prototype.Yh});N.prototype.get_wpl=N.prototype.ai=function(){return Ie(this.Bf)};Object.defineProperty(N.prototype,"wpl",{get:N.prototype.ai});N.prototype.get_refcount=N.prototype.Wf=function(){return Je(this.Bf)};Object.defineProperty(N.prototype,"refcount",{get:N.prototype.Wf});N.prototype.get_xres=N.prototype.bi=function(){return Ke(this.Bf)};
Object.defineProperty(N.prototype,"xres",{get:N.prototype.bi});N.prototype.get_yres=N.prototype.ci=function(){return Le(this.Bf)};Object.defineProperty(N.prototype,"yres",{get:N.prototype.ci});N.prototype.get_informat=N.prototype.Rh=function(){return Me(this.Bf)};Object.defineProperty(N.prototype,"informat",{get:N.prototype.Rh});N.prototype.get_special=N.prototype.Xh=function(){return Ne(this.Bf)};Object.defineProperty(N.prototype,"special",{get:N.prototype.Xh});
N.prototype.get_text=N.prototype.Zh=function(){return z(Oe(this.Bf))};Object.defineProperty(N.prototype,"text",{get:N.prototype.Zh});N.prototype.get_colormap=N.prototype.Nh=function(){return H(Pe(this.Bf),T)};Object.defineProperty(N.prototype,"colormap",{get:N.prototype.Nh});N.prototype.get_data=N.prototype.Ph=function(){return Qe(this.Bf)};Object.defineProperty(N.prototype,"data",{get:N.prototype.Ph});N.prototype.__destroy__=function(){Re(this.Bf)};
function ei(){throw"cannot construct a DoublePtr, no constructor in IDL";}ei.prototype=Object.create(G.prototype);ei.prototype.constructor=ei;ei.prototype.Gf=ei;ei.Hf={};b.DoublePtr=ei;ei.prototype.__destroy__=function(){Se(this.Bf)};function fi(){throw"cannot construct a Dawg, no constructor in IDL";}fi.prototype=Object.create(G.prototype);fi.prototype.constructor=fi;fi.prototype.Gf=fi;fi.Hf={};b.Dawg=fi;fi.prototype.__destroy__=function(){Te(this.Bf)};
function di(){throw"cannot construct a BoxPtr, no constructor in IDL";}di.prototype=Object.create(G.prototype);di.prototype.constructor=di;di.prototype.Gf=di;di.Hf={};b.BoxPtr=di;di.prototype.__destroy__=function(){Ue(this.Bf)};function X(){this.Bf=Ve();Ih(X)[this.Bf]=this}X.prototype=Object.create(G.prototype);X.prototype.constructor=X;X.prototype.Gf=X;X.Hf={};b.TessBaseAPI=X;X.prototype.Version=function(){return z(We(this.Bf))};
X.prototype.SetInputName=function(a){var c=this.Bf;I();a=a&&"object"===typeof a?a.Bf:J(a);Xe(c,a)};X.prototype.GetInputName=function(){return z(Ye(this.Bf))};X.prototype.SetInputImage=function(a){var c=this.Bf;a&&"object"===typeof a&&(a=a.Bf);Ze(c,a)};X.prototype.GetInputImage=function(){return H($e(this.Bf),N)};X.prototype.GetSourceYResolution=function(){return af(this.Bf)};X.prototype.GetDatapath=function(){return z(bf(this.Bf))};
X.prototype.SetOutputName=function(a){var c=this.Bf;I();a=a&&"object"===typeof a?a.Bf:J(a);cf(c,a)};X.prototype.SetVariable=X.prototype.SetVariable=function(a,c){var d=this.Bf;I();a=a&&"object"===typeof a?a.Bf:J(a);c=c&&"object"===typeof c?c.Bf:J(c);return!!df(d,a,c)};X.prototype.SetDebugVariable=function(a,c){var d=this.Bf;I();a=a&&"object"===typeof a?a.Bf:J(a);c=c&&"object"===typeof c?c.Bf:J(c);return!!ef(d,a,c)};
X.prototype.GetIntVariable=function(a,c){var d=this.Bf;I();a=a&&"object"===typeof a?a.Bf:J(a);c&&"object"===typeof c&&(c=c.Bf);return!!ff(d,a,c)};X.prototype.GetBoolVariable=function(a,c){var d=this.Bf;I();a=a&&"object"===typeof a?a.Bf:J(a);c&&"object"===typeof c&&(c=c.Bf);return!!gf(d,a,c)};X.prototype.GetDoubleVariable=function(a,c){var d=this.Bf;I();a=a&&"object"===typeof a?a.Bf:J(a);c&&"object"===typeof c&&(c=c.Bf);return!!hf(d,a,c)};
X.prototype.GetStringVariable=function(a){var c=this.Bf;I();a=a&&"object"===typeof a?a.Bf:J(a);return z(jf(c,a))};X.prototype.Init=function(a,c,d,e){void 0===d&&void 0!==e&&(d=3);var g=this.Bf;I();a=a&&"object"===typeof a?a.Bf:J(a);c=c&&"object"===typeof c?c.Bf:J(c);e=e&&"object"===typeof e?e.Bf:J(e);d&&"object"===typeof d&&(d=d.Bf);return void 0===d&&void 0!==e?of(g,a,c,3,e):void 0===d?mf(g,a,c):void 0===e?nf(g,a,c,d):of(g,a,c,d,e)};X.prototype.GetInitLanguagesAsString=function(){return z(pf(this.Bf))};
X.prototype.InitForAnalysePage=function(){qf(this.Bf)};X.prototype.SaveParameters=function(){kf(this.Bf)};X.prototype.RestoreParameters=function(){lf(this.Bf)};X.prototype.ReadConfigFile=function(a){var c=this.Bf;I();a=a&&"object"===typeof a?a.Bf:J(a);rf(c,a)};X.prototype.ReadDebugConfigFile=function(a){var c=this.Bf;I();a=a&&"object"===typeof a?a.Bf:J(a);sf(c,a)};X.prototype.SetPageSegMode=function(a){var c=this.Bf;a&&"object"===typeof a&&(a=a.Bf);tf(c,a)};X.prototype.GetPageSegMode=function(){return uf(this.Bf)};
X.prototype.TesseractRect=function(a,c,d,e,g,h,k){var m=this.Bf;a&&"object"===typeof a&&(a=a.Bf);c&&"object"===typeof c&&(c=c.Bf);d&&"object"===typeof d&&(d=d.Bf);e&&"object"===typeof e&&(e=e.Bf);g&&"object"===typeof g&&(g=g.Bf);h&&"object"===typeof h&&(h=h.Bf);k&&"object"===typeof k&&(k=k.Bf);return z(vf(m,a,c,d,e,g,h,k))};X.prototype.ClearAdaptiveClassifier=function(){wf(this.Bf)};
X.prototype.SetImage=function(a,c,d,e,g,h=1,k=0){var m=this.Bf;a&&"object"===typeof a&&(a=a.Bf);c&&"object"===typeof c&&(c=c.Bf);d&&"object"===typeof d&&(d=d.Bf);e&&"object"===typeof e&&(e=e.Bf);g&&"object"===typeof g&&(g=g.Bf);void 0===c||null===c?xf(m,a,h,k):yf(m,a,c,d,e,g,h,k)};X.prototype.SetImageFile=function(a=1,c=0){return zf(this.Bf,a,c)};X.prototype.SetSourceResolution=function(a){var c=this.Bf;a&&"object"===typeof a&&(a=a.Bf);Af(c,a)};
X.prototype.SetRectangle=function(a,c,d,e){var g=this.Bf;a&&"object"===typeof a&&(a=a.Bf);c&&"object"===typeof c&&(c=c.Bf);d&&"object"===typeof d&&(d=d.Bf);e&&"object"===typeof e&&(e=e.Bf);Bf(g,a,c,d,e)};X.prototype.GetThresholdedImage=function(){return H(Cf(this.Bf),N)};X.prototype.WriteImage=function(a){Df(this.Bf,a)};X.prototype.GetRegions=function(a){var c=this.Bf;a&&"object"===typeof a&&(a=a.Bf);return H(Gf(c,a),S)};
X.prototype.GetTextlines=function(a,c,d,e,g){var h=this.Bf;a&&"object"===typeof a&&(a=a.Bf);c&&"object"===typeof c&&(c=c.Bf);d&&"object"===typeof d&&(d=d.Bf);e&&"object"===typeof e&&(e=e.Bf);g&&"object"===typeof g&&(g=g.Bf);return void 0===d?H(Hf(h,a,c),S):void 0===e?H(_emscripten_bind_TessBaseAPI_GetTextlines_3(h,a,c,d),S):void 0===g?H(_emscripten_bind_TessBaseAPI_GetTextlines_4(h,a,c,d,e),S):H(If(h,a,c,d,e,g),S)};
X.prototype.GetStrips=function(a,c){var d=this.Bf;a&&"object"===typeof a&&(a=a.Bf);c&&"object"===typeof c&&(c=c.Bf);return H(Jf(d,a,c),S)};X.prototype.GetWords=function(a){var c=this.Bf;a&&"object"===typeof a&&(a=a.Bf);return H(Kf(c,a),S)};X.prototype.GetConnectedComponents=function(a){var c=this.Bf;a&&"object"===typeof a&&(a=a.Bf);return H(Lf(c,a),S)};
X.prototype.GetComponentImages=function(a,c,d,e,g,h,k){var m=this.Bf;a&&"object"===typeof a&&(a=a.Bf);c&&"object"===typeof c&&(c=c.Bf);d&&"object"===typeof d&&(d=d.Bf);e&&"object"===typeof e&&(e=e.Bf);g&&"object"===typeof g&&(g=g.Bf);h&&"object"===typeof h&&(h=h.Bf);k&&"object"===typeof k&&(k=k.Bf);return void 0===g?H(Mf(m,a,c,d,e),S):void 0===h?H(_emscripten_bind_TessBaseAPI_GetComponentImages_5(m,a,c,d,e,g),S):void 0===k?H(_emscripten_bind_TessBaseAPI_GetComponentImages_6(m,a,c,d,e,g,h),S):H(Nf(m,
a,c,d,e,g,h,k),S)};X.prototype.GetThresholdedImageScaleFactor=function(){return Of(this.Bf)};X.prototype.AnalyseLayout=function(a){var c=this.Bf;a&&"object"===typeof a&&(a=a.Bf);return void 0===a?H(Pf(c),O):H(Qf(c,a),O)};X.prototype.Recognize=function(a){var c=this.Bf;a&&"object"===typeof a&&(a=a.Bf);return Rf(c,a)};X.prototype.FindLines=function(){return Ef(this.Bf)};X.prototype.GetGradient=function(){return Ff(this.Bf)};
X.prototype.ProcessPages=function(a,c,d,e){var g=this.Bf;I();a=a&&"object"===typeof a?a.Bf:J(a);c=c&&"object"===typeof c?c.Bf:J(c);d&&"object"===typeof d&&(d=d.Bf);e&&"object"===typeof e&&(e=e.Bf);return!!Sf(g,a,c,d,e)};
X.prototype.ProcessPage=function(a,c,d,e,g,h){var k=this.Bf;I();a&&"object"===typeof a&&(a=a.Bf);c&&"object"===typeof c&&(c=c.Bf);d=d&&"object"===typeof d?d.Bf:J(d);e=e&&"object"===typeof e?e.Bf:J(e);g&&"object"===typeof g&&(g=g.Bf);h&&"object"===typeof h&&(h=h.Bf);return!!Tf(k,a,c,d,e,g,h)};X.prototype.GetIterator=function(){return H(Uf(this.Bf),L)};X.prototype.GetUTF8Text=function(){return z(Vf(this.Bf))};
X.prototype.GetHOCRText=function(a){var c=this.Bf;a&&"object"===typeof a&&(a=a.Bf);return z(Wf(c,a))};X.prototype.GetTSVText=function(a){var c=this.Bf;a&&"object"===typeof a&&(a=a.Bf);return z(Xf(c,a))};X.prototype.GetBoxText=function(a){var c=this.Bf;a&&"object"===typeof a&&(a=a.Bf);return z(Yf(c,a))};X.prototype.GetUNLVText=function(){return z(Zf(this.Bf))};X.prototype.GetOsdText=function(a){var c=this.Bf;a&&"object"===typeof a&&(a=a.Bf);return z($f(c,a))};X.prototype.MeanTextConf=function(){return ag(this.Bf)};
X.prototype.AllWordConfidences=function(){return H(bg(this.Bf),bi)};X.prototype.AdaptToWordStr=function(a,c){var d=this.Bf;I();a&&"object"===typeof a&&(a=a.Bf);c=c&&"object"===typeof c?c.Bf:J(c);return!!_emscripten_bind_TessBaseAPI_AdaptToWordStr_2(d,a,c)};X.prototype.Clear=function(){cg(this.Bf)};X.prototype.End=function(){dg(this.Bf)};X.prototype.ClearPersistentCache=function(){eg(this.Bf)};X.prototype.IsValidWord=function(a){var c=this.Bf;I();a=a&&"object"===typeof a?a.Bf:J(a);return fg(c,a)};
X.prototype.IsValidCharacter=function(a){var c=this.Bf;I();a=a&&"object"===typeof a?a.Bf:J(a);return!!gg(c,a)};X.prototype.DetectOS=function(a){var c=this.Bf;a&&"object"===typeof a&&(a=a.Bf);return!!hg(c,a)};X.prototype.GetUnichar=function(a){var c=this.Bf;a&&"object"===typeof a&&(a=a.Bf);return z(ig(c,a))};X.prototype.GetDawg=function(a){var c=this.Bf;a&&"object"===typeof a&&(a=a.Bf);return H(jg(c,a),fi)};X.prototype.NumDawgs=function(){return kg(this.Bf)};X.prototype.oem=function(){return lg(this.Bf)};
X.prototype.__destroy__=function(){mg(this.Bf)};function Y(){this.Bf=ng();Ih(Y)[this.Bf]=this}Y.prototype=Object.create(G.prototype);Y.prototype.constructor=Y;Y.prototype.Gf=Y;Y.Hf={};b.OSResults=Y;Y.prototype.print_scores=function(){og(this.Bf)};Y.prototype.get_best_result=Y.prototype.Kh=function(){return H(pg(this.Bf),R)};Object.defineProperty(Y.prototype,"best_result",{get:Y.prototype.Kh});Y.prototype.get_unicharset=Y.prototype.$h=function(){return H(qg(this.Bf),ai)};
Object.defineProperty(Y.prototype,"unicharset",{get:Y.prototype.$h});Y.prototype.__destroy__=function(){rg(this.Bf)};function Z(){throw"cannot construct a Pixa, no constructor in IDL";}Z.prototype=Object.create(G.prototype);Z.prototype.constructor=Z;Z.prototype.Gf=Z;Z.Hf={};b.Pixa=Z;Z.prototype.get_n=Z.prototype.$f=function(){return sg(this.Bf)};Object.defineProperty(Z.prototype,"n",{get:Z.prototype.$f});Z.prototype.get_nalloc=Z.prototype.ag=function(){return tg(this.Bf)};
Object.defineProperty(Z.prototype,"nalloc",{get:Z.prototype.ag});Z.prototype.get_refcount=Z.prototype.Wf=function(){return ug(this.Bf)};Object.defineProperty(Z.prototype,"refcount",{get:Z.prototype.Wf});Z.prototype.get_pix=Z.prototype.Uh=function(){return H(vg(this.Bf),$h)};Object.defineProperty(Z.prototype,"pix",{get:Z.prototype.Uh});Z.prototype.get_boxa=Z.prototype.Mh=function(){return H(wg(this.Bf),S)};Object.defineProperty(Z.prototype,"boxa",{get:Z.prototype.Mh});Z.prototype.__destroy__=function(){xg(this.Bf)};
(function(){function a(){b.RIL_BLOCK=yg();b.RIL_PARA=zg();b.RIL_TEXTLINE=Ag();b.RIL_WORD=Bg();b.RIL_SYMBOL=Cg();b.OEM_TESSERACT_ONLY=Dg();b.OEM_LSTM_ONLY=Eg();b.OEM_TESSERACT_LSTM_COMBINED=Fg();b.OEM_DEFAULT=Gg();b.OEM_COUNT=Hg();b.WRITING_DIRECTION_LEFT_TO_RIGHT=Ig();b.WRITING_DIRECTION_RIGHT_TO_LEFT=Jg();b.WRITING_DIRECTION_TOP_TO_BOTTOM=Kg();b.PT_UNKNOWN=Lg();b.PT_FLOWING_TEXT=Mg();b.PT_HEADING_TEXT=Ng();b.PT_PULLOUT_TEXT=Og();b.PT_EQUATION=Pg();b.PT_INLINE_EQUATION=Qg();b.PT_TABLE=Rg();b.PT_VERTICAL_TEXT=
Sg();b.PT_CAPTION_TEXT=Tg();b.PT_FLOWING_IMAGE=Ug();b.PT_HEADING_IMAGE=Vg();b.PT_PULLOUT_IMAGE=Wg();b.PT_HORZ_LINE=Xg();b.PT_VERT_LINE=Yg();b.PT_NOISE=Zg();b.PT_COUNT=$g();b.DIR_NEUTRAL=ah();b.DIR_LEFT_TO_RIGHT=bh();b.DIR_RIGHT_TO_LEFT=ch();b.DIR_MIX=dh();b.JUSTIFICATION_UNKNOWN=eh();b.JUSTIFICATION_LEFT=fh();b.JUSTIFICATION_CENTER=gh();b.JUSTIFICATION_RIGHT=hh();b.TEXTLINE_ORDER_LEFT_TO_RIGHT=ih();b.TEXTLINE_ORDER_RIGHT_TO_LEFT=jh();b.TEXTLINE_ORDER_TOP_TO_BOTTOM=kh();b.ORIENTATION_PAGE_UP=lh();
b.ORIENTATION_PAGE_RIGHT=mh();b.ORIENTATION_PAGE_DOWN=nh();b.ORIENTATION_PAGE_LEFT=oh();b.PSM_OSD_ONLY=ph();b.PSM_AUTO_OSD=qh();b.PSM_AUTO_ONLY=rh();b.PSM_AUTO=sh();b.PSM_SINGLE_COLUMN=th();b.PSM_SINGLE_BLOCK_VERT_TEXT=uh();b.PSM_SINGLE_BLOCK=vh();b.PSM_SINGLE_LINE=wh();b.PSM_SINGLE_WORD=xh();b.PSM_CIRCLE_WORD=yh();b.PSM_SINGLE_CHAR=zh();b.PSM_SPARSE_TEXT=Ah();b.PSM_SPARSE_TEXT_OSD=Bh();b.PSM_RAW_LINE=Ch();b.PSM_COUNT=Dh()}Ca?a():Aa.unshift(a)})();
Ph.prototype.getValue=function(a){return!!Xa(this.Bf+NaN*(a||0))};bi.prototype.getValue=function(a){return Xa(this.Bf+4*(a||0),"i32")};Yh.prototype.getValue=function(a){return Xa(this.Bf+4*(a||0),"float")};ei.prototype.getValue=function(a){return Xa(this.Bf+8*(a||0),"double")};di.prototype.get=Xh.prototype.get=$h.prototype.get=function(a){return Xa(this.Bf+4*(a||0),"*")};function gi(){this.hg={}}gi.prototype.wrap=function(a,c){var d=Fb(4);Ya(d,0,"i32");return this.hg[a]=H(d,c)};
gi.prototype.bool=function(a){return this.wrap(a,Ph)};gi.prototype.i32=function(a){return this.wrap(a,bi)};gi.prototype.f32=function(a){return this.wrap(a,Yh)};gi.prototype.f64=function(a){return this.hg[a]=H(Fb(8),ei)};gi.prototype.peek=function(){var a={},c;for(c in this.hg)a[c]=this.hg[c].getValue();return a};gi.prototype.get=function(){var a={},c;for(c in this.hg)a[c]=this.hg[c].getValue(),Eh(this.hg[c].Bf);return a};
L.prototype.getBoundingBox=function(a){var c=new gi;this.BoundingBox(a,c.i32("x0"),c.i32("y0"),c.i32("x1"),c.i32("y1"));return c.get()};L.prototype.getBaseline=function(a){var c=new gi;a=!!this.Baseline(a,c.i32("x0"),c.i32("y0"),c.i32("x1"),c.i32("y1"));c=c.get();c.has_baseline=a;return c};
L.prototype.getWordFontAttributes=function(){var a=new gi,c=this.WordFontAttributes(a.bool("is_bold"),a.bool("is_italic"),a.bool("is_underlined"),a.bool("is_monospace"),a.bool("is_serif"),a.bool("is_smallcaps"),a.i32("pointsize"),a.i32("font_id"));a=a.get();a.font_name=c;return a};b.pointerHelper=gi;
return TesseractCore.ready
}
);
})();
if (typeof exports === 'object' && typeof module === 'object')
module.exports = TesseractCore;
else if (typeof define === 'function' && define['amd'])
define([], function() { return TesseractCore; });
else if (typeof exports === 'object')
exports["TesseractCore"] = TesseractCore;