{"version":3,"sources":["dist/worker.js"],"names":["e","t","n","r","s","o","u","a","require","i","f","Error","code","l","exports","call","length","1","module","process","AbstractChainedBatch","db","this","_db","_operations","_written","prototype","_checkWritten","put","key","value","err","_checkKeyValue","_isBuffer","String","_put","push","type","del","_del","clear","_clear","write","options","callback","_write","_batch","nextTick","_process","2","AbstractIterator","_ended","_nexting","next","self","_next","apply","arguments","end","_end","3","Buffer","xtend","AbstractLevelDOWN","location","undefined","open","_open","close","_close","get","_get","browser","batch","array","_chainedBatch","Array","isArray","approximateSize","start","_approximateSize","_setupIteratorOptions","forEach","reverse","lt","lte","gt","gte","exclusiveStart","iterator","_iterator","obj","isBuffer","../is-buffer/index.js","./abstract-chained-batch","./abstract-iterator","4","extend","target","source","hasOwnProperty","5","byteLength","toByteArray","fromByteArray","lookup","revLookup","Arr","Uint8Array","len","charCodeAt","placeHoldersCount","b64","tmp","placeHolders","arr","L","tripletToBase64","num","encodeChunk","uint8","output","join","extraBytes","parts","maxChunkLength","len2","6","global","base64","ieee754","SlowBuffer","INSPECT_MAX_BYTES","TYPED_ARRAY_SUPPORT","typedArraySupport","kMaxLength","__proto__","foo","subarray","createBuffer","that","RangeError","arg","encodingOrOffset","allocUnsafe","from","poolSize","_augment","TypeError","ArrayBuffer","fromArrayBuffer","fromString","fromObject","Symbol","species","Object","defineProperty","configurable","assertSize","size","alloc","fill","encoding","checked","allocUnsafeSlow","string","isEncoding","actual","slice","fromArrayLike","byteOffset","copy","buffer","isnan","data","toString","b","compare","x","y","Math","min","toLowerCase","concat","list","pos","buf","isView","loweredCase","utf8ToBytes","base64ToBytes","slowToString","hexSlice","utf8Slice","asciiSlice","latin1Slice","base64Slice","utf16leSlice","swap","m","swap16","swap32","swap64","equals","inspect","str","max","match","thisStart","thisEnd","thisCopy","targetCopy","bidirectionalIndexOf","val","dir","isNaN","arrayIndexOf","indexOf","lastIndexOf","indexSize","arrLength","valLength","read","readUInt16BE","foundIndex","found","j","includes","hexWrite","offset","Number","remaining","strLen","parsed","parseInt","substr","utf8Write","blitBuffer","asciiWrite","asciiToBytes","latin1Write","base64Write","ucs2Write","utf16leToBytes","isFinite","toJSON","_arr","res","firstByte","codePoint","bytesPerSequence","secondByte","thirdByte","fourthByte","tempCodePoint","decodeCodePointsArray","MAX_ARGUMENTS_LENGTH","codePoints","fromCharCode","ret","out","toHex","bytes","newBuf","sliceLen","checkOffset","ext","readUIntLE","noAssert","mul","readUIntBE","readUInt8","readUInt16LE","readUInt32LE","readUInt32BE","readIntLE","pow","readIntBE","readInt8","readInt16LE","readInt16BE","readInt32LE","readInt32BE","readFloatLE","readFloatBE","readDoubleLE","readDoubleBE","checkInt","writeUIntLE","maxBytes","writeUIntBE","writeUInt8","floor","objectWriteUInt16","littleEndian","writeUInt16LE","writeUInt16BE","objectWriteUInt32","writeUInt32LE","writeUInt32BE","writeIntLE","limit","sub","writeIntBE","writeInt8","writeInt16LE","writeInt16BE","writeInt32LE","writeInt32BE","checkIEEE754","writeFloat","writeFloatLE","writeFloatBE","writeDouble","writeDoubleLE","writeDoubleBE","targetStart","set","INVALID_BASE64_RE","base64clean","stringtrim","replace","trim","units","Infinity","leadSurrogate","byteArray","c","hi","lo","src","dst","window","base64-js","isarray","7","name","definition","define","defaultErrorHandler","error","defaultSuccessHandler","defaults","storeName","storePrefix","dbVersion","keyPath","autoIncrement","onStoreReady","onError","indexes","implementationPreference","IDBStore","kwArgs","dbName","env","availableImplementations","filter","implName","implementation","idb","keyRange","IDBKeyRange","webkitIDBKeyRange","mozIDBKeyRange","consts","READ_ONLY","READ_WRITE","VERSION_CHANGE","NEXT","NEXT_NO_DUPLICATE","PREV","PREV_NO_DUPLICATE","openDB","proto","constructor","version","store","_insertIdCount","openRequest","preventSuccessCallback","onerror","errorEvent","hasVersionError","errorMessage","errorCode","bind","onsuccess","event","result","objectStoreNames","contains","emptyTransaction","transaction","objectStore","existingIndexes","getIndexList","indexData","indexName","normalizeIndexData","hasIndex","actualIndex","index","complies","indexComplies","splice","onupgradeneeded","optionalParameters","createObjectStore","deleteIndex","createIndex","unique","multiEntry","_indexName","deleteDatabase","onSuccess","deleteRequest","hasSuccess","putRequest","putTransaction","oncomplete","onabort","_addIdPropertyIfNeeded","getTransaction","getRequest","remove","removeTransaction","dataArray","count","called","batchTransaction","onItemSuccess","operation","onItemError","abort","putBatch","batchData","map","item","upsertBatch","keyField","record","removeBatch","keyArray","getBatch","arrayType","getAll","getAllTransaction","_getAllNative","_getAllCursor","getAllRequest","all","cursorRequest","openCursor","cursor","clearTransaction","clearRequest","dataObj","Date","now","indexNames","expected","every","exp","act","iterate","onItem","mixin","order","autoContinue","filterDuplicates","writeAccess","onEnd","allowItemRejection","directionType","cursorTransaction","cursorTarget","recordCount","advance","onItemReturn","query","processedItems","accept","countRequest","evt","makeKeyRange","hasLower","lower","hasUpper","upper","isOnly","only","bound","excludeLower","excludeUpper","lowerBound","upperBound","empty","8","isLE","mLen","nBytes","eLen","eMax","eBias","nBits","d","NaN","rt","abs","log","LN2","9","isSlowBuffer","10","11","test","12","Level","IDB","util","Iterator","toBuffer","IDBOptions","inherits","idbOpts","asBuffer","raw","id","convertEncoding","toArrayBuffer","stringed","valEnc","valueEncoding","op","k","copiedOp","currentOp","modified","setTimeout","converted","destroy","prefix","dbname","request","indexedDB","checkKeyValue","./iterator","abstract-leveldown","idb-wrapper","isbuffer","typedarray-to-buffer","13","ltgt","_order","_limit","_count","_done","_keyRange","lowerBoundExclusive","upperBoundExclusive","_keyRangeError","createIterator","console","shouldCall","_started","14","cmp","has","isDef","range","hasKey","lowerBoundKey","def","lowerBoundInclusive","upperBoundInclusive","upperBoundKey","startInclusive","endInclusive","toLtgt","_range","lb","ub","15","hasOwn","isFunction","fn","isFunc","RegExp","alert","confirm","prompt","isString","context","charAt","16","keys","./shim","17","isArguments","callee","18","isArgs","hasDontEnumBug","propertyIsEnumerable","hasProtoEnumBug","dontEnums","keysShim","object","isObject","theKeys","skipProto","ctor","skipConstructor","dontEnum","./foreach","./isArguments","19","zlib_inflate","utils","strings","msg","ZStream","GZheader","Inflate","assign","chunkSize","windowBits","to","opt","ended","chunks","strm","avail_out","status","inflateInit2","Z_OK","header","inflateGetHeader","mode","dictionary","_mode","next_out_utf8","tail","utf8str","dict","allowBufError","Z_FINISH","Z_NO_FLUSH","input","binstring2buf","next_in","avail_in","Buf8","next_out","inflate","Z_NEED_DICT","string2buf","inflateSetDictionary","Z_BUF_ERROR","Z_STREAM_END","Z_SYNC_FLUSH","utf8border","buf2string","arraySet","onData","shrinkBuf","inflateEnd","chunk","flattenChunks","inflator","inflateRaw","ungzip","./utils/common","./utils/strings","./zlib/constants","./zlib/gzheader","./zlib/inflate","./zlib/messages","./zlib/zstream","20","TYPED_OK","Uint16Array","Int32Array","sources","shift","p","fnTyped","dest","src_offs","dest_offs","fnUntyped","setTyped","on","Buf16","Buf32","21","STR_APPLY_OK","STR_APPLY_UIA_OK","__","_utf8len","q","c2","m_pos","str_len","buf_len","buf2binstring","c_len","utf16buf","./common","22","adler32","adler","s1","s2","23","Z_PARTIAL_FLUSH","Z_FULL_FLUSH","Z_BLOCK","Z_TREES","Z_ERRNO","Z_STREAM_ERROR","Z_DATA_ERROR","Z_NO_COMPRESSION","Z_BEST_SPEED","Z_BEST_COMPRESSION","Z_DEFAULT_COMPRESSION","Z_FILTERED","Z_HUFFMAN_ONLY","Z_RLE","Z_FIXED","Z_DEFAULT_STRATEGY","Z_BINARY","Z_TEXT","Z_UNKNOWN","Z_DEFLATED","24","makeTable","table","crcTable","crc32","crc","25","text","time","xflags","os","extra","extra_len","comment","hcrc","done","26","BAD","TYPE","inflate_fast","state","_in","last","_out","beg","dmax","wsize","whave","wnext","s_window","hold","bits","lcode","dcode","lmask","dmask","here","dist","from_source","lencode","distcode","lenbits","distbits","top","dolen","dodist","sane","27","inflate_table","CODES","LENS","DISTS","Z_MEM_ERROR","HEAD","FLAGS","TIME","OS","EXLEN","EXTRA","NAME","COMMENT","HCRC","DICTID","DICT","TYPEDO","STORED","COPY_","COPY","TABLE","LENLENS","CODELENS","LEN_","LEN","LENEXT","DIST","DISTEXT","MATCH","LIT","CHECK","LENGTH","DONE","MEM","SYNC","ENOUGH_LENS","ENOUGH_DISTS","MAX_WBITS","DEF_WBITS","zswap32","InflateState","wrap","havedict","flags","check","total","head","wbits","ncode","nlen","ndist","have","lens","work","lendyn","distdyn","back","was","inflateResetKeep","total_in","total_out","inflateReset","inflateReset2","inflateInit","virgin","lenfix","distfix","fixedtables","sym","updatewindow","flush","left","here_bits","here_op","here_val","last_bits","last_op","last_val","hbuf","opts","inf_leave","data_type","dictLength","dictid","inflateInfo","../utils/common","./adler32","./crc32","./inffast","./inftrees","28","MAXBITS","lbase","lext","dbase","dext","lens_index","codes","table_index","root","curr","drop","used","huff","incr","low","mask","base","base_index","offs","extra_index","29","0","-1","-2","-3","-4","-5","-6","30","31","cachedSetTimeout","cachedClearTimeout","defaultSetTimout","defaultClearTimeout","clearTimeout","runTimeout","fun","runClearTimeout","marker","queue","draining","currentQueue","queueIndex","cleanUpNextTick","drainQueue","timeout","run","args","Item","title","argv","versions","noop","addListener","once","off","removeListener","removeAllListeners","emit","prependListener","prependOnceListener","listeners","binding","cwd","chdir","umask","32","33","create","superCtor","super_","enumerable","writable","TempCtor","34","35","formatRegExp","format","objects","JSON","stringify","_","isNull","deprecate","isUndefined","noDeprecation","warned","deprecated","throwDeprecation","traceDeprecation","trace","debugs","debugEnviron","debuglog","NODE_DEBUG","toUpperCase","pid","ctx","seen","stylize","stylizeNoColor","depth","colors","isBoolean","showHidden","_extend","customInspect","stylizeWithColor","formatValue","bold","italic","underline","inverse","white","grey","black","blue","cyan","green","magenta","red","yellow","styles","special","number","boolean","null","date","regexp","styleType","style","arrayToHash","hash","idx","recurseTimes","primitive","formatPrimitive","visibleKeys","getOwnPropertyNames","isError","formatError","isRegExp","isDate","braces","toUTCString","formatArray","formatProperty","pop","reduceToSingleString","simple","isNumber","desc","getOwnPropertyDescriptor","split","line","numLinesEst","reduce","prev","cur","ar","isNullOrUndefined","isSymbol","re","objectToString","isPrimitive","pad","months","timestamp","getHours","getMinutes","getSeconds","getDate","getMonth","origin","add","prop","./support/isBuffer","36","hasKeys","37","Keys","./has-keys","object-keys","38","leveljs","iOS","navigator","userAgent","noIDB","cb","langdata","getLanguageData","req","lang","saveDataFile","compression","fetchLanguageData","progress","langfile","url","workerOptions","langPath","xhr","XMLHttpRequest","responseType","onprogress","onload","loaded","response","reject","message","send","../common/langdata.json","level-js","pako/lib/inflate.js","39","workerUtils","NODE_ENV","debug","addEventListener","packet","dispatchHandlers","postMessage","getCore","TesseractCore","importScripts","corePath","setAdapter","../common/worker.js","./lang.js","40","desaturate","image","width","height","srcLength","srcLength_16","41","DumpLiterallyEverything","Module","ri","GetIterator","blocks","block","para","textline","word","symbol","enumToString","Begin","IsAtBeginningOf","RIL_BLOCK","poly","BlockPolygon","polygon","getPointer","get_n","px","get_x","py","get_y","getValue","_ptaDestroy","paragraphs","GetUTF8Text","confidence","Confidence","baseline","getBaseline","bbox","getBoundingBox","blocktype","BlockType","RIL_PARA","lines","is_ltr","ParagraphIsLtr","RIL_TEXTLINE","words","RIL_WORD","fontInfo","getWordFontAttributes","wordDir","WordDirection","symbols","choices","is_numeric","WordIsNumeric","in_dictionary","WordIsFromDictionary","direction","language","WordRecognitionLanguage","is_bold","is_italic","is_underlined","is_monospace","is_serif","is_smallcaps","font_size","pointsize","font_id","font_name","wc","WordChoiceIterator","Next","RIL_SYMBOL","is_superscript","SymbolIsSuperscript","is_subscript","SymbolIsSubscript","is_dropcap","SymbolIsDropcap","ci","ChoiceIterator","html","deindent","GetHOCRText","MeanTextConf","psm","GetPageSegMode","oem","Version","substring","42","afr","ara","aze","bel","ben","bul","cat","ces","chi_sim","chi_tra","chr","dan-frak","dan","deu-frak","deu","ell","eng","enm","epo","equ","est","eus","fin","fra","frk","frm","glg","grc","heb","hin","hrv","hun","ind","isl","ita","ita_old","jpn","kan","kor","lav","lit","mal","meme","mkd","mlt","msa","nld","nor","osd","pol","por","ron","rus","slk-frak","slk","slv","spa","spa_old","sqi","srp","swa","swe","tam","tel","tgl","tha","tur","ukr","vie","43","latestJob","adapter","dump","respond","jobId","action","resolve","handleRecognize","payload","handleDetect","impl","handleInit","MIN_MEMORY","TOTAL_MEMORY","Core","TesseractProgress","percent","onRuntimeInitialized","FS_createPath","TessBaseAPI","setImage","imgbin","ptr","allocate","ALLOC_NORMAL","SetImage","wrapPointer","SetRectangle","loadLanguage","langFile","_loadedLanguages","FS_createDataFile","progressUpdate","Init","option","SetVariable","Recognize","End","_free","SetPageSegMode","PSM_OSD_ONLY","results","OSResults","DetectOS","best","get_best_result","oid","get_orientation_id","sid","get_script_id","tesseract_script_id","script","get_unicharset","get_script_from_script_id","script_confidence","get_sconfidence","orientation_degrees","orientation_confidence","get_oconfidence","./desaturate.js","./dump.js"],"mappings":"CAAA,SAAUA,EAAEC,EAAEC,EAAEC,GAAG,SAASC,EAAEC,EAAEC,GAAG,IAAIJ,EAAEG,GAAG,CAAC,IAAIJ,EAAEI,GAAG,CAAC,IAAIE,SAASC,SAAS,YAAYA,QAAQ,IAAIF,GAAGC,EAAE,OAAOA,EAAEF,GAAG,GAAG,GAAGI,EAAE,OAAOA,EAAEJ,GAAG,GAAG,IAAIK,EAAE,IAAIC,MAAM,uBAAuBN,EAAE,KAAK,MAAMK,EAAEE,KAAK,mBAAmBF,EAAE,IAAIG,EAAEX,EAAEG,GAAG,CAACS,QAAQ,IAAIb,EAAEI,GAAG,GAAGU,KAAKF,EAAEC,QAAQ,SAASd,GAAG,IAAIE,EAAED,EAAEI,GAAG,GAAGL,GAAG,OAAOI,EAAEF,EAAEA,EAAEF,IAAIa,EAAEA,EAAEC,QAAQd,EAAEC,EAAEC,EAAEC,GAAG,OAAOD,EAAEG,GAAGS,QAAQ,IAAIL,SAASD,SAAS,YAAYA,QAAQ,IAAI,IAAIH,EAAE,EAAEA,EAAEF,EAAEa,OAAOX,IAAID,EAAED,EAAEE,IAAI,OAAOD,GAAvb,C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