@digipair/skill-web-ocr 0.41.4 → 0.43.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.cjs.js +137 -137
  2. package/index.esm.js +137 -137
  3. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -42,11 +42,11 @@ function _instanceof$1(left, right) {
42
42
  return left instanceof right;
43
43
  }
44
44
  }
45
- var t$2 = globalThis, e$2 = t$2.ShadowRoot && (void 0 === t$2.ShadyCSS || t$2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$2 = Symbol(), o$3 = new WeakMap;
45
+ var t$2 = globalThis, e$2 = t$2.ShadowRoot && (void 0 === t$2.ShadyCSS || t$2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$1 = Symbol(), o$3 = new WeakMap;
46
46
  var n$3 = /*#__PURE__*/ function() {
47
47
  function n(t, e, o) {
48
48
  _class_call_check$3(this, n);
49
- if (this._$cssResult$ = !0, o !== s$2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
49
+ if (this._$cssResult$ = !0, o !== s$1) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
50
50
  this.cssText = t, this.t = e;
51
51
  }
52
52
  _create_class$3(n, [
@@ -72,8 +72,8 @@ var n$3 = /*#__PURE__*/ function() {
72
72
  return n;
73
73
  }();
74
74
  var r$5 = function(t) {
75
- return new n$3("string" == typeof t ? t : t + "", void 0, s$2);
76
- }, i$2 = function(t) {
75
+ return new n$3("string" == typeof t ? t : t + "", void 0, s$1);
76
+ }, i$3 = function(t) {
77
77
  for(var _len = arguments.length, e = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
78
78
  e[_key - 1] = arguments[_key];
79
79
  }
@@ -84,7 +84,7 @@ var r$5 = function(t) {
84
84
  throw Error("Value passed to 'css' function must be a 'css' function result: " + t + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
85
85
  }(s) + t[o + 1];
86
86
  }, t[0]);
87
- return new n$3(o, t, s$2);
87
+ return new n$3(o, t, s$1);
88
88
  }, S$1 = function(s, o) {
89
89
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
90
90
  if (e$2) s.adoptedStyleSheets = o.map(function(t) {
@@ -457,7 +457,7 @@ var _Symbol, _a, _a1;
457
457
  * @license
458
458
  * Copyright 2017 Google LLC
459
459
  * SPDX-License-Identifier: BSD-3-Clause
460
- */ var i$1 = Object.is, e$1 = Object.defineProperty, r$4 = Object.getOwnPropertyDescriptor, h$1 = Object.getOwnPropertyNames, o$2 = Object.getOwnPropertySymbols, n$2 = Object.getPrototypeOf, a$1 = globalThis, c$1 = a$1.trustedTypes, l$1 = c$1 ? c$1.emptyScript : "", p$1 = a$1.reactiveElementPolyfillSupport, d$1 = function(t, s) {
460
+ */ var i$2 = Object.is, e$1 = Object.defineProperty, r$4 = Object.getOwnPropertyDescriptor, h$1 = Object.getOwnPropertyNames, o$2 = Object.getOwnPropertySymbols, n$2 = Object.getPrototypeOf, a$1 = globalThis, c$1 = a$1.trustedTypes, l$1 = c$1 ? c$1.emptyScript : "", p$1 = a$1.reactiveElementPolyfillSupport, d$1 = function(t, s) {
461
461
  return t;
462
462
  }, u$1 = {
463
463
  toAttribute: function toAttribute(t, s) {
@@ -491,7 +491,7 @@ var _Symbol, _a, _a1;
491
491
  return i;
492
492
  }
493
493
  }, f$1 = function(t, s) {
494
- return !i$1(t, s);
494
+ return !i$2(t, s);
495
495
  }, y$1 = {
496
496
  attribute: !0,
497
497
  type: String,
@@ -1166,7 +1166,7 @@ function _create_super$1(Derived) {
1166
1166
  };
1167
1167
  }
1168
1168
  var _t;
1169
- var t$1 = globalThis, i = t$1.trustedTypes, s$1 = i ? i.createPolicy("lit-html", {
1169
+ var t$1 = globalThis, i$1 = t$1.trustedTypes, s = i$1 ? i$1.createPolicy("lit-html", {
1170
1170
  createHTML: function(t) {
1171
1171
  return t;
1172
1172
  }
@@ -1187,14 +1187,14 @@ var t$1 = globalThis, i = t$1.trustedTypes, s$1 = i ? i.createPolicy("lit-html",
1187
1187
  values: s
1188
1188
  };
1189
1189
  };
1190
- }, x = y(1), w = Symbol.for("lit-noChange"), T = Symbol.for("lit-nothing"), A = new WeakMap, E = r$3.createTreeWalker(r$3, 129);
1191
- function C(t, i) {
1192
- if (!Array.isArray(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
1193
- return void 0 !== s$1 ? s$1.createHTML(i) : i;
1190
+ }, x = y(1), T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = new WeakMap, C = r$3.createTreeWalker(r$3, 129);
1191
+ function P(t, i) {
1192
+ if (!a(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
1193
+ return void 0 !== s ? s.createHTML(i) : i;
1194
1194
  }
1195
- var P = function(t, i) {
1195
+ var V = function(t, i) {
1196
1196
  var s = t.length - 1, o = [];
1197
- var r, l = 2 === i ? "<svg>" : "", c = f;
1197
+ var r, l = 2 === i ? "<svg>" : 3 === i ? "<math>" : "", c = f;
1198
1198
  for(var _$i = 0; _$i < s; _$i++){
1199
1199
  var s1 = t[_$i];
1200
1200
  var a = void 0, u = void 0, d = -1, y = 0;
@@ -1203,24 +1203,24 @@ var P = function(t, i) {
1203
1203
  l += c === f ? s1 + n$1 : d >= 0 ? (o.push(a), s1.slice(0, d) + e + s1.slice(d) + h + x) : s1 + h + (-2 === d ? _$i : x);
1204
1204
  }
1205
1205
  return [
1206
- C(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : "")),
1206
+ P(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : 3 === i ? "</math>" : "")),
1207
1207
  o
1208
1208
  ];
1209
1209
  };
1210
- var V = /*#__PURE__*/ function() {
1211
- function V(param, n) {
1210
+ var N = /*#__PURE__*/ function() {
1211
+ function N(param, n) {
1212
1212
  var t = param.strings, s = param._$litType$;
1213
- _class_call_check$1(this, V);
1213
+ _class_call_check$1(this, N);
1214
1214
  var r;
1215
1215
  this.parts = [];
1216
1216
  var c = 0, a = 0;
1217
- var u = t.length - 1, d = this.parts, _P = _sliced_to_array(P(t, s), 2), f = _P[0], v = _P[1];
1218
- if (this.el = V.createElement(f, n), E.currentNode = this.el.content, 2 === s) {
1217
+ var u = t.length - 1, d = this.parts, _V = _sliced_to_array(V(t, s), 2), f = _V[0], v = _V[1];
1218
+ if (this.el = N.createElement(f, n), C.currentNode = this.el.content, 2 === s || 3 === s) {
1219
1219
  var _t;
1220
1220
  var t1 = this.el.content.firstChild;
1221
1221
  (_t = t1).replaceWith.apply(_t, _to_consumable_array(t1.childNodes));
1222
1222
  }
1223
- for(; null !== (r = E.nextNode()) && d.length < u;){
1223
+ for(; null !== (r = C.nextNode()) && d.length < u;){
1224
1224
  if (1 === r.nodeType) {
1225
1225
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
1226
1226
  if (r.hasAttributes()) try {
@@ -1233,7 +1233,7 @@ var V = /*#__PURE__*/ function() {
1233
1233
  index: c,
1234
1234
  name: e1[2],
1235
1235
  strings: s1,
1236
- ctor: "." === e1[1] ? k : "?" === e1[1] ? H : "@" === e1[1] ? I : R
1236
+ ctor: "." === e1[1] ? H : "?" === e1[1] ? I : "@" === e1[1] ? L : k
1237
1237
  }), r.removeAttribute(t2);
1238
1238
  } else t2.startsWith(h) && (d.push({
1239
1239
  type: 6,
@@ -1257,8 +1257,8 @@ var V = /*#__PURE__*/ function() {
1257
1257
  if ($.test(r.tagName)) {
1258
1258
  var t3 = r.textContent.split(h), s2 = t3.length - 1;
1259
1259
  if (s2 > 0) {
1260
- r.textContent = i ? i.emptyScript : "";
1261
- for(var i2 = 0; i2 < s2; i2++)r.append(t3[i2], l()), E.nextNode(), d.push({
1260
+ r.textContent = i$1 ? i$1.emptyScript : "";
1261
+ for(var i2 = 0; i2 < s2; i2++)r.append(t3[i2], l()), C.nextNode(), d.push({
1262
1262
  type: 2,
1263
1263
  index: ++c
1264
1264
  });
@@ -1279,7 +1279,7 @@ var V = /*#__PURE__*/ function() {
1279
1279
  c++;
1280
1280
  }
1281
1281
  }
1282
- _create_class$1(V, null, [
1282
+ _create_class$1(N, null, [
1283
1283
  {
1284
1284
  key: "createElement",
1285
1285
  value: function createElement(t, i) {
@@ -1288,24 +1288,24 @@ var V = /*#__PURE__*/ function() {
1288
1288
  }
1289
1289
  }
1290
1290
  ]);
1291
- return V;
1291
+ return N;
1292
1292
  }();
1293
- function N(t, i) {
1293
+ function S(t, i) {
1294
1294
  var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : t, e = arguments.length > 3 ? arguments[3] : void 0;
1295
1295
  var _s__$Co, _h__$AO;
1296
1296
  var _s;
1297
- if (i === w) return i;
1297
+ if (i === T) return i;
1298
1298
  var h = void 0 !== e ? (_s__$Co = s._$Co) === null || _s__$Co === void 0 ? void 0 : _s__$Co[e] : s._$Cl;
1299
1299
  var o = c(i) ? void 0 : i._$litDirective$;
1300
1300
  var __$Co;
1301
- return (h === null || h === void 0 ? void 0 : h.constructor) !== o && (h === null || h === void 0 ? void 0 : (_h__$AO = h._$AO) === null || _h__$AO === void 0 ? void 0 : _h__$AO.call(h, !1), void 0 === o ? h = void 0 : (h = new o(t), h._$AT(t, s, e)), void 0 !== e ? ((__$Co = (_s = s)._$Co) !== null && __$Co !== void 0 ? __$Co : _s._$Co = [])[e] = h : s._$Cl = h), void 0 !== h && (i = N(t, h._$AS(t, i.values), h, e)), i;
1301
+ return (h === null || h === void 0 ? void 0 : h.constructor) !== o && (h === null || h === void 0 ? void 0 : (_h__$AO = h._$AO) === null || _h__$AO === void 0 ? void 0 : _h__$AO.call(h, !1), void 0 === o ? h = void 0 : (h = new o(t), h._$AT(t, s, e)), void 0 !== e ? ((__$Co = (_s = s)._$Co) !== null && __$Co !== void 0 ? __$Co : _s._$Co = [])[e] = h : s._$Cl = h), void 0 !== h && (i = S(t, h._$AS(t, i.values), h, e)), i;
1302
1302
  }
1303
- var S = /*#__PURE__*/ function() {
1304
- function S(t, i) {
1305
- _class_call_check$1(this, S);
1303
+ var M = /*#__PURE__*/ function() {
1304
+ function M(t, i) {
1305
+ _class_call_check$1(this, M);
1306
1306
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
1307
1307
  }
1308
- _create_class$1(S, [
1308
+ _create_class$1(M, [
1309
1309
  {
1310
1310
  key: "parentNode",
1311
1311
  get: function get() {
@@ -1323,16 +1323,16 @@ var S = /*#__PURE__*/ function() {
1323
1323
  value: function u(t) {
1324
1324
  var _t_creationScope;
1325
1325
  var _this__$AD = this._$AD, _this__$AD_el = _this__$AD.el, i = _this__$AD_el.content, s = _this__$AD.parts, e = ((_t_creationScope = t === null || t === void 0 ? void 0 : t.creationScope) !== null && _t_creationScope !== void 0 ? _t_creationScope : r$3).importNode(i, !0);
1326
- E.currentNode = e;
1327
- var h = E.nextNode(), o = 0, n = 0, l = s[0];
1326
+ C.currentNode = e;
1327
+ var h = C.nextNode(), o = 0, n = 0, l = s[0];
1328
1328
  for(; void 0 !== l;){
1329
1329
  if (o === l.index) {
1330
1330
  var i1 = void 0;
1331
- 2 === l.type ? i1 = new M(h, h.nextSibling, this, t) : 1 === l.type ? i1 = new l.ctor(h, l.name, l.strings, this, t) : 6 === l.type && (i1 = new L(h, this, t)), this._$AV.push(i1), l = s[++n];
1331
+ 2 === l.type ? i1 = new R(h, h.nextSibling, this, t) : 1 === l.type ? i1 = new l.ctor(h, l.name, l.strings, this, t) : 6 === l.type && (i1 = new z(h, this, t)), this._$AV.push(i1), l = s[++n];
1332
1332
  }
1333
- o !== (l === null || l === void 0 ? void 0 : l.index) && (h = E.nextNode(), o++);
1333
+ o !== (l === null || l === void 0 ? void 0 : l.index) && (h = C.nextNode(), o++);
1334
1334
  }
1335
- return E.currentNode = r$3, e;
1335
+ return C.currentNode = r$3, e;
1336
1336
  }
1337
1337
  },
1338
1338
  {
@@ -1362,15 +1362,15 @@ var S = /*#__PURE__*/ function() {
1362
1362
  }
1363
1363
  }
1364
1364
  ]);
1365
- return S;
1365
+ return M;
1366
1366
  }();
1367
- var M = /*#__PURE__*/ function() {
1368
- function M(t, i, s, e) {
1369
- _class_call_check$1(this, M);
1367
+ var R = /*#__PURE__*/ function() {
1368
+ function R(t, i, s, e) {
1369
+ _class_call_check$1(this, R);
1370
1370
  var _e_isConnected;
1371
- this.type = 2, this._$AH = T, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cv = (_e_isConnected = e === null || e === void 0 ? void 0 : e.isConnected) !== null && _e_isConnected !== void 0 ? _e_isConnected : !0;
1371
+ this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cv = (_e_isConnected = e === null || e === void 0 ? void 0 : e.isConnected) !== null && _e_isConnected !== void 0 ? _e_isConnected : !0;
1372
1372
  }
1373
- _create_class$1(M, [
1373
+ _create_class$1(R, [
1374
1374
  {
1375
1375
  key: "_$AU",
1376
1376
  get: function get() {
@@ -1403,35 +1403,35 @@ var M = /*#__PURE__*/ function() {
1403
1403
  key: "_$AI",
1404
1404
  value: function _$AI(t) {
1405
1405
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this;
1406
- t = N(this, t, i), c(t) ? t === T || null == t || "" === t ? (this._$AH !== T && this._$AR(), this._$AH = T) : t !== this._$AH && t !== w && this._(t) : void 0 !== t._$litType$ ? this.$(t) : void 0 !== t.nodeType ? this.T(t) : u(t) ? this.k(t) : this._(t);
1406
+ t = S(this, t, i), c(t) ? t === E || null == t || "" === t ? (this._$AH !== E && this._$AR(), this._$AH = E) : t !== this._$AH && t !== T && this._(t) : void 0 !== t._$litType$ ? this.$(t) : void 0 !== t.nodeType ? this.T(t) : u(t) ? this.k(t) : this._(t);
1407
1407
  }
1408
1408
  },
1409
1409
  {
1410
- key: "S",
1411
- value: function S(t) {
1410
+ key: "O",
1411
+ value: function O(t) {
1412
1412
  return this._$AA.parentNode.insertBefore(t, this._$AB);
1413
1413
  }
1414
1414
  },
1415
1415
  {
1416
1416
  key: "T",
1417
1417
  value: function T(t) {
1418
- this._$AH !== t && (this._$AR(), this._$AH = this.S(t));
1418
+ this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
1419
1419
  }
1420
1420
  },
1421
1421
  {
1422
1422
  key: "_",
1423
1423
  value: function _(t) {
1424
- this._$AH !== T && c(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$3.createTextNode(t)), this._$AH = t;
1424
+ this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$3.createTextNode(t)), this._$AH = t;
1425
1425
  }
1426
1426
  },
1427
1427
  {
1428
1428
  key: "$",
1429
1429
  value: function $(t) {
1430
1430
  var _this__$AH;
1431
- var i = t.values, s = t._$litType$, e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el = V.createElement(C(s.h, s.h[0]), this.options)), s);
1431
+ var i = t.values, s = t._$litType$, e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el = N.createElement(P(s.h, s.h[0]), this.options)), s);
1432
1432
  if (((_this__$AH = this._$AH) === null || _this__$AH === void 0 ? void 0 : _this__$AH._$AD) === e) this._$AH.p(i);
1433
1433
  else {
1434
- var _$t = new S(e, this), s1 = _$t.u(this.options);
1434
+ var _$t = new M(e, this), s1 = _$t.u(this.options);
1435
1435
  _$t.p(i), this.T(s1), this._$AH = _$t;
1436
1436
  }
1437
1437
  }
@@ -1440,7 +1440,7 @@ var M = /*#__PURE__*/ function() {
1440
1440
  key: "_$AC",
1441
1441
  value: function _$AC(t) {
1442
1442
  var i = A.get(t.strings);
1443
- return void 0 === i && A.set(t.strings, i = new V(t)), i;
1443
+ return void 0 === i && A.set(t.strings, i = new N(t)), i;
1444
1444
  }
1445
1445
  },
1446
1446
  {
@@ -1453,7 +1453,7 @@ var M = /*#__PURE__*/ function() {
1453
1453
  try {
1454
1454
  for(var _iterator = t[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
1455
1455
  var h = _step.value;
1456
- e === i.length ? i.push(s = new M(this.S(l()), this.S(l()), this, this.options)) : s = i[e], s._$AI(h), e++;
1456
+ e === i.length ? i.push(s = new R(this.O(l()), this.O(l()), this, this.options)) : s = i[e], s._$AI(h), e++;
1457
1457
  }
1458
1458
  } catch (err) {
1459
1459
  _didIteratorError = true;
@@ -1491,14 +1491,14 @@ var M = /*#__PURE__*/ function() {
1491
1491
  }
1492
1492
  }
1493
1493
  ]);
1494
- return M;
1494
+ return R;
1495
1495
  }();
1496
- var R = /*#__PURE__*/ function() {
1497
- function R(t, i, s, e, h) {
1498
- _class_call_check$1(this, R);
1499
- this.type = 1, this._$AH = T, this._$AN = void 0, this.element = t, this.name = i, this._$AM = e, this.options = h, s.length > 2 || "" !== s[0] || "" !== s[1] ? (this._$AH = Array(s.length - 1).fill(new String), this.strings = s) : this._$AH = T;
1496
+ var k = /*#__PURE__*/ function() {
1497
+ function k(t, i, s, e, h) {
1498
+ _class_call_check$1(this, k);
1499
+ this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t, this.name = i, this._$AM = e, this.options = h, s.length > 2 || "" !== s[0] || "" !== s[1] ? (this._$AH = Array(s.length - 1).fill(new String), this.strings = s) : this._$AH = E;
1500
1500
  }
1501
- _create_class$1(R, [
1501
+ _create_class$1(k, [
1502
1502
  {
1503
1503
  key: "tagName",
1504
1504
  get: function get() {
@@ -1517,11 +1517,11 @@ var R = /*#__PURE__*/ function() {
1517
1517
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this, s = arguments.length > 2 ? arguments[2] : void 0, e = arguments.length > 3 ? arguments[3] : void 0;
1518
1518
  var h = this.strings;
1519
1519
  var o = !1;
1520
- if (void 0 === h) t = N(this, t, i, 0), o = !c(t) || t !== this._$AH && t !== w, o && (this._$AH = t);
1520
+ if (void 0 === h) t = S(this, t, i, 0), o = !c(t) || t !== this._$AH && t !== T, o && (this._$AH = t);
1521
1521
  else {
1522
1522
  var e1 = t;
1523
1523
  var n, r;
1524
- for(t = h[0], n = 0; n < h.length - 1; n++)r = N(this, e1[s + n], i, n), r === w && (r = this._$AH[n]), o || (o = !c(r) || r !== this._$AH[n]), r === T ? t = T : t !== T && (t += (r !== null && r !== void 0 ? r : "") + h[n + 1]), this._$AH[n] = r;
1524
+ for(t = h[0], n = 0; n < h.length - 1; n++)r = S(this, e1[s + n], i, n), r === T && (r = this._$AH[n]), o || (o = !c(r) || r !== this._$AH[n]), r === E ? t = E : t !== E && (t += (r !== null && r !== void 0 ? r : "") + h[n + 1]), this._$AH[n] = r;
1525
1525
  }
1526
1526
  o && !e && this.j(t);
1527
1527
  }
@@ -1529,71 +1529,71 @@ var R = /*#__PURE__*/ function() {
1529
1529
  {
1530
1530
  key: "j",
1531
1531
  value: function j(t) {
1532
- t === T ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t !== null && t !== void 0 ? t : "");
1532
+ t === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t !== null && t !== void 0 ? t : "");
1533
1533
  }
1534
1534
  }
1535
1535
  ]);
1536
- return R;
1536
+ return k;
1537
1537
  }();
1538
- var k = /*#__PURE__*/ function(R) {
1539
- _inherits$1(k, R);
1540
- var _super = _create_super$1(k);
1541
- function k() {
1542
- _class_call_check$1(this, k);
1538
+ var H = /*#__PURE__*/ function(k) {
1539
+ _inherits$1(H, k);
1540
+ var _super = _create_super$1(H);
1541
+ function H() {
1542
+ _class_call_check$1(this, H);
1543
1543
  var _this;
1544
1544
  _this = _super.call.apply(_super, [
1545
1545
  this
1546
1546
  ].concat(Array.prototype.slice.call(arguments))), _this.type = 3;
1547
1547
  return _possible_constructor_return$1(_this);
1548
1548
  }
1549
- _create_class$1(k, [
1549
+ _create_class$1(H, [
1550
1550
  {
1551
1551
  key: "j",
1552
1552
  value: function j(t) {
1553
- this.element[this.name] = t === T ? void 0 : t;
1553
+ this.element[this.name] = t === E ? void 0 : t;
1554
1554
  }
1555
1555
  }
1556
1556
  ]);
1557
- return k;
1558
- }(R);
1559
- var H = /*#__PURE__*/ function(R) {
1560
- _inherits$1(H, R);
1561
- var _super = _create_super$1(H);
1562
- function H() {
1563
- _class_call_check$1(this, H);
1557
+ return H;
1558
+ }(k);
1559
+ var I = /*#__PURE__*/ function(k) {
1560
+ _inherits$1(I, k);
1561
+ var _super = _create_super$1(I);
1562
+ function I() {
1563
+ _class_call_check$1(this, I);
1564
1564
  var _this;
1565
1565
  _this = _super.call.apply(_super, [
1566
1566
  this
1567
1567
  ].concat(Array.prototype.slice.call(arguments))), _this.type = 4;
1568
1568
  return _possible_constructor_return$1(_this);
1569
1569
  }
1570
- _create_class$1(H, [
1570
+ _create_class$1(I, [
1571
1571
  {
1572
1572
  key: "j",
1573
1573
  value: function j(t) {
1574
- this.element.toggleAttribute(this.name, !!t && t !== T);
1574
+ this.element.toggleAttribute(this.name, !!t && t !== E);
1575
1575
  }
1576
1576
  }
1577
1577
  ]);
1578
- return H;
1579
- }(R);
1580
- var I = /*#__PURE__*/ function(R) {
1581
- _inherits$1(I, R);
1582
- var _super = _create_super$1(I);
1583
- function I(t, i, s, e, h) {
1584
- _class_call_check$1(this, I);
1578
+ return I;
1579
+ }(k);
1580
+ var L = /*#__PURE__*/ function(k) {
1581
+ _inherits$1(L, k);
1582
+ var _super = _create_super$1(L);
1583
+ function L(t, i, s, e, h) {
1584
+ _class_call_check$1(this, L);
1585
1585
  var _this;
1586
1586
  _this = _super.call(this, t, i, s, e, h), _this.type = 5;
1587
1587
  return _possible_constructor_return$1(_this);
1588
1588
  }
1589
- _create_class$1(I, [
1589
+ _create_class$1(L, [
1590
1590
  {
1591
1591
  key: "_$AI",
1592
1592
  value: function _$AI(t) {
1593
1593
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this;
1594
- var _N;
1595
- if ((t = (_N = N(this, t, i, 0)) !== null && _N !== void 0 ? _N : T) === w) return;
1596
- var s = this._$AH, e = t === T && s !== T || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, h = t !== T && (s === T || e);
1594
+ var _S;
1595
+ if ((t = (_S = S(this, t, i, 0)) !== null && _S !== void 0 ? _S : E) === T) return;
1596
+ var s = this._$AH, e = t === E && s !== E || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, h = t !== E && (s === E || e);
1597
1597
  e && this.element.removeEventListener(this.name, this, s), h && this.element.addEventListener(this.name, this, t), this._$AH = t;
1598
1598
  }
1599
1599
  },
@@ -1606,14 +1606,14 @@ var I = /*#__PURE__*/ function(R) {
1606
1606
  }
1607
1607
  }
1608
1608
  ]);
1609
- return I;
1610
- }(R);
1611
- var L = /*#__PURE__*/ function() {
1612
- function L(t, i, s) {
1613
- _class_call_check$1(this, L);
1609
+ return L;
1610
+ }(k);
1611
+ var z = /*#__PURE__*/ function() {
1612
+ function z(t, i, s) {
1613
+ _class_call_check$1(this, z);
1614
1614
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = s;
1615
1615
  }
1616
- _create_class$1(L, [
1616
+ _create_class$1(z, [
1617
1617
  {
1618
1618
  key: "_$AU",
1619
1619
  get: function get() {
@@ -1623,23 +1623,23 @@ var L = /*#__PURE__*/ function() {
1623
1623
  {
1624
1624
  key: "_$AI",
1625
1625
  value: function _$AI(t) {
1626
- N(this, t);
1626
+ S(this, t);
1627
1627
  }
1628
1628
  }
1629
1629
  ]);
1630
- return L;
1630
+ return z;
1631
1631
  }();
1632
- var Z = t$1.litHtmlPolyfillSupport;
1632
+ var j = t$1.litHtmlPolyfillSupport;
1633
1633
  var _litHtmlVersions;
1634
- Z === null || Z === void 0 ? void 0 : Z(V, M), ((_litHtmlVersions = (_t = t$1).litHtmlVersions) !== null && _litHtmlVersions !== void 0 ? _litHtmlVersions : _t.litHtmlVersions = []).push("3.1.4");
1635
- var j = function(t, i, s) {
1634
+ j === null || j === void 0 ? void 0 : j(N, R), ((_litHtmlVersions = (_t = t$1).litHtmlVersions) !== null && _litHtmlVersions !== void 0 ? _litHtmlVersions : _t.litHtmlVersions = []).push("3.2.1");
1635
+ var B = function(t, i, s) {
1636
1636
  var _s_renderBefore;
1637
1637
  var e = (_s_renderBefore = s === null || s === void 0 ? void 0 : s.renderBefore) !== null && _s_renderBefore !== void 0 ? _s_renderBefore : i;
1638
1638
  var h = e._$litPart$;
1639
1639
  if (void 0 === h) {
1640
1640
  var _s_renderBefore1;
1641
1641
  var _$t = (_s_renderBefore1 = s === null || s === void 0 ? void 0 : s.renderBefore) !== null && _s_renderBefore1 !== void 0 ? _s_renderBefore1 : null;
1642
- e._$litPart$ = h = new M(i.insertBefore(l(), _$t), _$t, void 0, s !== null && s !== void 0 ? s : {});
1642
+ e._$litPart$ = h = new R(i.insertBefore(l(), _$t), _$t, void 0, s !== null && s !== void 0 ? s : {});
1643
1643
  }
1644
1644
  return h._$AI(t), h;
1645
1645
  };
@@ -1758,11 +1758,11 @@ var _globalThis1;
1758
1758
  * @license
1759
1759
  * Copyright 2017 Google LLC
1760
1760
  * SPDX-License-Identifier: BSD-3-Clause
1761
- */ var s = /*#__PURE__*/ function(t) {
1762
- _inherits(s, t);
1763
- var _super = _create_super(s);
1764
- function s() {
1765
- _class_call_check(this, s);
1761
+ */ var r$2 = /*#__PURE__*/ function(t) {
1762
+ _inherits(r, t);
1763
+ var _super = _create_super(r);
1764
+ function r() {
1765
+ _class_call_check(this, r);
1766
1766
  var _this;
1767
1767
  _this = _super.call.apply(_super, [
1768
1768
  this
@@ -1771,12 +1771,12 @@ var _globalThis1;
1771
1771
  }, _this._$Do = void 0;
1772
1772
  return _possible_constructor_return(_this);
1773
1773
  }
1774
- _create_class(s, [
1774
+ _create_class(r, [
1775
1775
  {
1776
1776
  key: "createRenderRoot",
1777
1777
  value: function createRenderRoot() {
1778
1778
  var _this_renderOptions;
1779
- var _$t = _get(_get_prototype_of(s.prototype), "createRenderRoot", this).call(this);
1779
+ var _$t = _get(_get_prototype_of(r.prototype), "createRenderRoot", this).call(this);
1780
1780
  var _renderBefore;
1781
1781
  return (_renderBefore = (_this_renderOptions = this.renderOptions).renderBefore) !== null && _renderBefore !== void 0 ? _renderBefore : _this_renderOptions.renderBefore = _$t.firstChild, _$t;
1782
1782
  }
@@ -1784,42 +1784,42 @@ var _globalThis1;
1784
1784
  {
1785
1785
  key: "update",
1786
1786
  value: function update(t) {
1787
- var i = this.render();
1788
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), _get(_get_prototype_of(s.prototype), "update", this).call(this, t), this._$Do = j(i, this.renderRoot, this.renderOptions);
1787
+ var s = this.render();
1788
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), _get(_get_prototype_of(r.prototype), "update", this).call(this, t), this._$Do = B(s, this.renderRoot, this.renderOptions);
1789
1789
  }
1790
1790
  },
1791
1791
  {
1792
1792
  key: "connectedCallback",
1793
1793
  value: function connectedCallback() {
1794
1794
  var _this__$Do;
1795
- _get(_get_prototype_of(s.prototype), "connectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(!0);
1795
+ _get(_get_prototype_of(r.prototype), "connectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(!0);
1796
1796
  }
1797
1797
  },
1798
1798
  {
1799
1799
  key: "disconnectedCallback",
1800
1800
  value: function disconnectedCallback() {
1801
1801
  var _this__$Do;
1802
- _get(_get_prototype_of(s.prototype), "disconnectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(!1);
1802
+ _get(_get_prototype_of(r.prototype), "disconnectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(!1);
1803
1803
  }
1804
1804
  },
1805
1805
  {
1806
1806
  key: "render",
1807
1807
  value: function render() {
1808
- return w;
1808
+ return T;
1809
1809
  }
1810
1810
  }
1811
1811
  ]);
1812
- return s;
1812
+ return r;
1813
1813
  }(b);
1814
- s._$litElement$ = !0, s["finalized"] = !0, (_globalThis_litElementHydrateSupport = (_globalThis = globalThis).litElementHydrateSupport) === null || _globalThis_litElementHydrateSupport === void 0 ? void 0 : _globalThis_litElementHydrateSupport.call(_globalThis, {
1815
- LitElement: s
1814
+ r$2._$litElement$ = !0, r$2["finalized"] = !0, (_globalThis_litElementHydrateSupport = (_globalThis = globalThis).litElementHydrateSupport) === null || _globalThis_litElementHydrateSupport === void 0 ? void 0 : _globalThis_litElementHydrateSupport.call(_globalThis, {
1815
+ LitElement: r$2
1816
1816
  });
1817
- var r$2 = globalThis.litElementPolyfillSupport;
1818
- r$2 === null || r$2 === void 0 ? void 0 : r$2({
1819
- LitElement: s
1817
+ var i = globalThis.litElementPolyfillSupport;
1818
+ i === null || i === void 0 ? void 0 : i({
1819
+ LitElement: r$2
1820
1820
  });
1821
1821
  var _litElementVersions;
1822
- ((_litElementVersions = (_globalThis1 = globalThis).litElementVersions) !== null && _litElementVersions !== void 0 ? _litElementVersions : _globalThis1.litElementVersions = []).push("4.0.6");
1822
+ ((_litElementVersions = (_globalThis1 = globalThis).litElementVersions) !== null && _litElementVersions !== void 0 ? _litElementVersions : _globalThis1.litElementVersions = []).push("4.1.1");
1823
1823
 
1824
1824
  /**
1825
1825
  * @license
@@ -2133,7 +2133,7 @@ var tesseract_min$1 = {
2133
2133
  if (_$n === v) throw new Error("Generator is already running");
2134
2134
  if (_$n === d) {
2135
2135
  if ("throw" === o) throw i;
2136
- return I();
2136
+ return G();
2137
2137
  }
2138
2138
  for(e.method = o, e.arg = i;;){
2139
2139
  var a = e.delegate;
@@ -2201,10 +2201,10 @@ var tesseract_min$1 = {
2201
2201
  }
2202
2202
  }
2203
2203
  return {
2204
- next: I
2204
+ next: G
2205
2205
  };
2206
2206
  }
2207
- function I() {
2207
+ function G() {
2208
2208
  return {
2209
2209
  value: r,
2210
2210
  done: !0
@@ -3725,11 +3725,11 @@ var tesseract_min$1 = {
3725
3725
  }
3726
3726
  var p = e(187), y = e(549), v = e(106), d = e(185).log, g = e(313), m = e(847), b = e(581), w = b.defaultOptions, x = b.spawnWorker, L = b.terminateWorker, O = b.onMessage, E = b.loadImage, S = b.send, j = 0;
3727
3727
  t.exports = h(i().mark(function t() {
3728
- var r, _$e, n, c, f, s, b, P, k, _, T, N, A, I, G, F, R, D, M, C, U, Y, B, z, H, K, W, J, V, Z, Q, q, X, $, tt, rt, et, nt, ot, it, at = arguments;
3728
+ var r, _$e, n, c, f, s, b, P, k, _, T, N, A, G, I, F, R, D, M, C, U, Y, B, z, H, K, W, J, V, Z, Q, q, X, $, tt, rt, et, nt, ot, it, at = arguments;
3729
3729
  return i().wrap(function(t) {
3730
3730
  for(;;)switch(t.prev = t.next){
3731
3731
  case 0:
3732
- return r = at.length > 0 && void 0 !== at[0] ? at[0] : "eng", _$e = at.length > 1 && void 0 !== at[1] ? at[1] : m.LSTM_ONLY, n = at.length > 2 && void 0 !== at[2] ? at[2] : {}, c = at.length > 3 && void 0 !== at[3] ? at[3] : {}, f = g("Worker", j), s = p(u(u({}, w), n)), b = s.logger, P = s.errorHandler, k = l(s, o), _ = {}, T = {}, N = "string" == typeof r ? r.split("+") : r, A = _$e, I = c, G = [
3732
+ return r = at.length > 0 && void 0 !== at[0] ? at[0] : "eng", _$e = at.length > 1 && void 0 !== at[1] ? at[1] : m.LSTM_ONLY, n = at.length > 2 && void 0 !== at[2] ? at[2] : {}, c = at.length > 3 && void 0 !== at[3] ? at[3] : {}, f = g("Worker", j), s = p(u(u({}, w), n)), b = s.logger, P = s.errorHandler, k = l(s, o), _ = {}, T = {}, N = "string" == typeof r ? r.split("+") : r, A = _$e, G = c, I = [
3733
3733
  m.DEFAULT,
3734
3734
  m.LSTM_ONLY
3735
3735
  ].includes(_$e) && !k.legacyCore, D = new Promise(function(t, r) {
@@ -3760,7 +3760,7 @@ var tesseract_min$1 = {
3760
3760
  action: "load",
3761
3761
  payload: {
3762
3762
  options: {
3763
- lstmOnly: G,
3763
+ lstmOnly: I,
3764
3764
  corePath: k.corePath,
3765
3765
  logging: k.logging
3766
3766
  }
@@ -3827,8 +3827,8 @@ var tesseract_min$1 = {
3827
3827
  cacheMethod: k.cacheMethod,
3828
3828
  gzip: k.gzip,
3829
3829
  lstmOnly: [
3830
- m.LSTM_ONLY,
3831
- m.TESSERACT_LSTM_COMBINED
3830
+ m.DEFAULT,
3831
+ m.LSTM_ONLY
3832
3832
  ].includes(A) && !k.legacyLang
3833
3833
  }
3834
3834
  }
@@ -3847,14 +3847,14 @@ var tesseract_min$1 = {
3847
3847
  }));
3848
3848
  }, $ = function $() {
3849
3849
  var _$t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "eng", r = arguments.length > 1 ? arguments[1] : void 0, _$e = arguments.length > 2 ? arguments[2] : void 0, n = arguments.length > 3 ? arguments[3] : void 0;
3850
- if (G && [
3850
+ if (I && [
3851
3851
  m.TESSERACT_ONLY,
3852
3852
  m.TESSERACT_LSTM_COMBINED
3853
3853
  ].includes(r)) throw Error("Legacy model requested but code missing.");
3854
3854
  var o = r || A;
3855
3855
  A = o;
3856
- var _$i = _$e || I;
3857
- I = _$i;
3856
+ var _$i = _$e || G;
3857
+ G = _$i;
3858
3858
  var c, u = ("string" == typeof _$t ? _$t.split("+") : _$t).filter(function(t) {
3859
3859
  return !N.includes(t);
3860
3860
  });
@@ -3927,7 +3927,7 @@ var tesseract_min$1 = {
3927
3927
  return i().wrap(function(t) {
3928
3928
  for(;;)switch(t.prev = t.next){
3929
3929
  case 0:
3930
- if (!G) {
3930
+ if (!I) {
3931
3931
  t.next = 2;
3932
3932
  break;
3933
3933
  }
@@ -5140,7 +5140,7 @@ var tesseract_min$1 = {
5140
5140
  },
5141
5141
  147: function(t) {
5142
5142
  t.exports = {
5143
- i8: "5.1.0"
5143
+ i8: "5.1.1"
5144
5144
  };
5145
5145
  }
5146
5146
  }, r = {};
@@ -5163,7 +5163,7 @@ var tesseract_min$1 = {
5163
5163
  var tesseract_minExports = tesseract_min$1.exports;
5164
5164
  var tesseract_min = /*@__PURE__*/ getDefaultExportFromCjs(tesseract_minExports);
5165
5165
 
5166
- class HiddenElement extends s {
5166
+ class HiddenElement extends r$2 {
5167
5167
  get value() {
5168
5168
  return this._value;
5169
5169
  }
@@ -5212,7 +5212,7 @@ HiddenElement = __decorate([
5212
5212
  t('digipair-input-ocr-selector')
5213
5213
  ], HiddenElement);
5214
5214
 
5215
- class InputOcrElement extends s {
5215
+ class InputOcrElement extends r$2 {
5216
5216
  get content() {
5217
5217
  return this._content;
5218
5218
  }
@@ -5271,7 +5271,7 @@ class InputOcrElement extends s {
5271
5271
  this._value = '';
5272
5272
  }
5273
5273
  }
5274
- InputOcrElement.styles = i$2`
5274
+ InputOcrElement.styles = i$3`
5275
5275
  .download {
5276
5276
  padding: 10px 15px;
5277
5277
  margin-bottom: 10px;