Pure Javascript OCR for more than 100 Languages 📖🎉🖥
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
12 KiB

!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.Tesseract=n():e.Tesseract=n()}(window,function(){return function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=2)}([function(e,n,t){var r;!function(o){"use strict";var s,i,u,a,c,f,l,p,h,d,b,y,g;function m(e){return null!=e}function v(e){return"number"==typeof e&&e>d&&e<b}function w(e){return"number"==typeof e&&e%1==0}function j(e,n){return v(e)&&e>n}function _(e,n){return v(e)&&e<n}function k(e,n){return v(e)&&e>=n}function O(e,n){return v(e)&&e<=n}function E(e){return"string"==typeof e}function x(e){return E(e)&&""!==e}function P(e){return"[object Object]"===Object.prototype.toString.call(e)}function S(e,n){try{return e instanceof n}catch(e){return!1}}function q(e,n){var t;for(t in n)if(n.hasOwnProperty(t)){if(!1===e.hasOwnProperty(t)||typeof e[t]!=typeof n[t])return!1;if(P(e[t])&&!1===q(e[t],n[t]))return!1}return!0}function I(e){return y(e)}function T(e){return m(e)&&k(e.length,0)}function A(e){return"function"==typeof e}function J(e,n){var t;for(t=0;t<e.length;t+=1)if(e[t]===n)return n;return!n}function M(e,n){var t,r;for(t in e)if(e.hasOwnProperty(t)){if(P(r=e[t])&&M(r,n)===n)return n;if(r===n)return n}return!n}function N(e,n){return Object.keys(n).forEach(function(t){e[t]=n[t]}),e}function W(e,n){return function(){return function(e,n,t){var r=e.l||e.length,o=n[r],s=n[r+1];return L(e.apply(null,n),x(o)?o:t,A(s)?s:TypeError),n[0]}(e,arguments,n)}}function L(e,n,t){if(e)return e;throw new(t||Error)(n||"Assertion failed")}function B(e){var n=function(){return R(e.apply(null,arguments))};return n.l=e.length,n}function R(e){return!e}function $(e,n,t){var r=function(){var r,o;if(r=arguments[0],"maybe"===e&&f.assigned(r))return!0;if(!n(r))return!1;r=function(e,n){switch(e){case T:return h.call(n);case P:return Object.keys(n).map(function(e){return n[e]});default:return n}}(n,r),o=h.call(arguments,1);try{r.forEach(function(n){if(("maybe"!==e||m(n))&&!t.apply(null,[n].concat(o)))throw 0})}catch(e){return!1}return!0};return r.l=t.length,r}function U(e,n){return z([e,u,n])}function z(e){var n,t,r,o;return n=e.shift(),t=e.pop(),r=e.pop(),o=t||{},Object.keys(r).forEach(function(t){Object.defineProperty(o,t,{configurable:!1,enumerable:!0,writable:!1,value:n.apply(null,e.concat(r[t],i[t]))})}),o}function F(e,n){return z([e,n,null])}function C(e,n){p.forEach(function(t){e[t].of=F(n,u[t].of)})}s={v:"value",n:"number",s:"string",b:"boolean",o:"object",t:"type",a:"array",al:"array-like",i:"iterable",d:"date",f:"function",l:"length"},i={},u={},[{n:"equal",f:function(e,n){return e===n},s:"v"},{n:"undefined",f:function(e){return void 0===e},s:"v"},{n:"null",f:function(e){return null===e},s:"v"},{n:"assigned",f:m,s:"v"},{n:"primitive",f:function(e){var n;switch(e){case null:case void 0:case!1:case!0:return!0}return"string"==(n=typeof e)||"number"===n||g&&"symbol"===n},s:"v"},{n:"includes",f:function(e,n){var t,r,o,s,i;if(!m(e))return!1;if(g&&e[Symbol.iterator]&&A(e.values)){t=e.values();do{if((r=t.next()).value===n)return!0}while(!r.done);return!1}for(o=Object.keys(e),s=o.length,i=0;i<s;++i)if(e[o[i]]===n)return!0;return!1},s:"v"},{
//# sourceMappingURL=tesseract.min.js.map