@dcodegroup-au/dsg-vue 0.1.2 → 0.1.4
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.
- package/dist/{DsgTablePerPage.vue_vue_type_style_index_0_lang-0tHi6h4J.cjs → DsgTablePerPage.vue_vue_type_style_index_0_lang-DEG12JOR.cjs} +146 -146
- package/dist/{DsgTablePerPage.vue_vue_type_style_index_0_lang-Ui9JRdZP.js → DsgTablePerPage.vue_vue_type_style_index_0_lang-Dj3jH6bn.js} +41 -5
- package/dist/components/Elements/DsgDatepicker.vue.d.ts +1 -0
- package/dist/components/Elements/DsgDropdown.vue.d.ts +2 -0
- package/dist/components/Elements/DsgInput.vue.d.ts +43 -3
- package/dist/components/Table/DsgTable.vue.d.ts +51 -7
- package/dist/components/Table/DsgTableComponent.vue.d.ts +6 -0
- package/dist/dsg-vue.cjs +10 -10
- package/dist/dsg-vue.esm.js +727 -714
- package/dist/dsg-vue.table.cjs +2 -2
- package/dist/dsg-vue.table.esm.js +364 -359
- package/dist/main.d.ts +214 -14
- package/dist/table.d.ts +150 -24
- package/package.json +10 -10
package/dist/dsg-vue.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { defineComponent as pe, createElementBlock as R, openBlock as E, normalizeClass as Q, unref as Ye, createVNode as K, normalizeProps as Ta, guardReactiveProps as Ao, ref as ie, createCommentVNode as B, createElementVNode as L, renderSlot as W, Fragment as Re, renderList as Ke, Transition as Qn, withCtx as ht, useTemplateRef as wt, createBlock as
|
|
1
|
+
import { _ as we, D as ft, a as go, b as Ia, c as cn, k as xo, d as Nt, e as Bi, u as yo, f as Oa, g as wo, h as mo, i as _o } from "./DsgTablePerPage.vue_vue_type_style_index_0_lang-Dj3jH6bn.js";
|
|
2
|
+
import { defineComponent as pe, createElementBlock as R, openBlock as E, normalizeClass as Q, unref as Ye, createVNode as K, normalizeProps as Ta, guardReactiveProps as Ao, ref as ie, createCommentVNode as B, createElementVNode as L, renderSlot as W, Fragment as Re, renderList as Ke, Transition as Qn, withCtx as ht, useTemplateRef as wt, createBlock as X, toDisplayString as j, reactive as Gt, mergeProps as ke, toRaw as rt, createApp as Eo, nextTick as Br, computed as _e, onMounted as Vr, onUnmounted as _i, h as Wr, isVNode as Da, cloneVNode as bo, watchEffect as Nr, useAttrs as Co, createTextVNode as jt, mergeModels as dn, useModel as hn, onBeforeUnmount as Na, withKeys as ot, withModifiers as ye, withDirectives as Yt, vShow as Ar, normalizeStyle as Qt, Teleport as Ra, watch as vn, vModelSelect as So, resolveDynamicComponent as Io } from "vue";
|
|
3
3
|
import { C as Oo } from "./DsgColoursConfig-BseFo6-R.js";
|
|
4
4
|
import { _ as Pa } from "./DsgLabel.vue_vue_type_style_index_0_lang-BRVMqZ-w.js";
|
|
5
5
|
const To = /* @__PURE__ */ pe({
|
|
@@ -16,7 +16,7 @@ const To = /* @__PURE__ */ pe({
|
|
|
16
16
|
return (r, n) => (E(), R("div", {
|
|
17
17
|
class: Q(Ye(e))
|
|
18
18
|
}, [
|
|
19
|
-
K(
|
|
19
|
+
K(we, Ta(Ao(r.icon)), null, 16)
|
|
20
20
|
], 2));
|
|
21
21
|
}
|
|
22
22
|
}), $r = (t, e) => {
|
|
@@ -168,8 +168,8 @@ const To = /* @__PURE__ */ pe({
|
|
|
168
168
|
src: h.profileUri,
|
|
169
169
|
alt: a()
|
|
170
170
|
}, null, 8, Fo)) : B("", !0),
|
|
171
|
-
!h.profileUri && h.fullName ? (E(), R("span", Uo,
|
|
172
|
-
!h.profileUri && !h.fullName ? (E(),
|
|
171
|
+
!h.profileUri && h.fullName ? (E(), R("span", Uo, j(i(h.fullName)), 1)) : B("", !0),
|
|
172
|
+
!h.profileUri && !h.fullName ? (E(), X(we, {
|
|
173
173
|
key: 2,
|
|
174
174
|
class: "dsg-avatar--user-icon",
|
|
175
175
|
icon: "user-01",
|
|
@@ -197,10 +197,10 @@ const To = /* @__PURE__ */ pe({
|
|
|
197
197
|
], 512),
|
|
198
198
|
h.title?.length || h.theme === "tile" && (h.title?.length || h.fullName) ? (E(), R("div", Wo, [
|
|
199
199
|
h.title?.length || h.theme === "tile" && (h.title?.length || h.fullName) ? W(h.$slots, "dsg-avatar--title", { key: 0 }, () => [
|
|
200
|
-
L("h3", Xo,
|
|
200
|
+
L("h3", Xo, j(h.title?.length ? h.title : h.fullName), 1)
|
|
201
201
|
]) : B("", !0),
|
|
202
202
|
h.subText?.length ? W(h.$slots, "dsg-avatar--subtext", { key: 1 }, () => [
|
|
203
|
-
L("p", jo,
|
|
203
|
+
L("p", jo, j(h.subText), 1)
|
|
204
204
|
]) : B("", !0)
|
|
205
205
|
])) : B("", !0)
|
|
206
206
|
], 8, Lo)
|
|
@@ -792,17 +792,17 @@ const Ua = {
|
|
|
792
792
|
setup(t, {
|
|
793
793
|
attrs: e
|
|
794
794
|
}) {
|
|
795
|
-
const r = ie(), n =
|
|
795
|
+
const r = ie(), n = _e(() => t.hide ? "true" : "false"), i = _e(() => ({
|
|
796
796
|
...e.style || {},
|
|
797
797
|
animationDuration: `${t.autoClose === !0 ? 5e3 : t.autoClose}ms`,
|
|
798
798
|
animationPlayState: t.isRunning ? "running" : "paused",
|
|
799
799
|
opacity: t.hide || t.autoClose === !1 ? 0 : 1,
|
|
800
800
|
transform: t.controlledProgress ? `scaleX(${t.progress})` : "none"
|
|
801
|
-
})), a =
|
|
801
|
+
})), a = _e(() => [`${re.CSS_NAMESPACE}__progress-bar`, t.controlledProgress ? `${re.CSS_NAMESPACE}__progress-bar--controlled` : `${re.CSS_NAMESPACE}__progress-bar--animated`, `${re.CSS_NAMESPACE}__progress-bar-theme--${t.theme}`, `${re.CSS_NAMESPACE}__progress-bar--${t.type}`, t.rtl ? `${re.CSS_NAMESPACE}__progress-bar--rtl` : null].filter(Boolean).join(" ")), o = _e(() => `${a.value} ${e?.class || ""}`), s = () => {
|
|
802
802
|
r.value && (r.value.onanimationend = null, r.value.ontransitionend = null);
|
|
803
803
|
}, u = () => {
|
|
804
804
|
t.isIn && t.closeToast && t.autoClose !== !1 && (t.closeToast(), s());
|
|
805
|
-
}, l =
|
|
805
|
+
}, l = _e(() => t.controlledProgress ? null : u), f = _e(() => t.controlledProgress ? u : null);
|
|
806
806
|
return Nr(() => {
|
|
807
807
|
r.value && (s(), r.value.onanimationend = l.value, r.value.ontransitionend = f.value);
|
|
808
808
|
}), () => K("div", {
|
|
@@ -938,7 +938,7 @@ function Ns(t) {
|
|
|
938
938
|
appendPosition: t.appendPosition || !1,
|
|
939
939
|
collapse: typeof t.collapse > "u" ? !0 : t.collapse,
|
|
940
940
|
collapseDuration: t.collapseDuration || re.COLLAPSE_DURATION
|
|
941
|
-
}), o = a.done || Ts, s =
|
|
941
|
+
}), o = a.done || Ts, s = _e(() => a.appendPosition ? `${a.enter}--${a.position}` : a.enter), u = _e(() => a.appendPosition ? `${a.exit}--${a.position}` : a.exit), l = _e(() => t.pauseOnHover ? {
|
|
942
942
|
onMouseenter: w,
|
|
943
943
|
onMouseleave: p
|
|
944
944
|
} : {});
|
|
@@ -1007,7 +1007,7 @@ const Rs = /* @__PURE__ */ pe({
|
|
|
1007
1007
|
props: Ua,
|
|
1008
1008
|
// @ts-ignore
|
|
1009
1009
|
setup(t) {
|
|
1010
|
-
const e = ie(), r =
|
|
1010
|
+
const e = ie(), r = _e(() => !!t.isLoading), n = _e(() => t.progress !== void 0 && t.progress !== null), i = _e(() => Os(t)), a = _e(() => [`${re.CSS_NAMESPACE}__toast`, `${re.CSS_NAMESPACE}__toast-theme--${t.theme}`, `${re.CSS_NAMESPACE}__toast--${t.type}`, t.rtl ? `${re.CSS_NAMESPACE}__toast--rtl` : void 0, t.toastClassName || ""].filter(Boolean).join(" ")), {
|
|
1011
1011
|
isRunning: o,
|
|
1012
1012
|
isIn: s,
|
|
1013
1013
|
hideToast: u,
|
|
@@ -1097,7 +1097,7 @@ const Ps = /* @__PURE__ */ pe({
|
|
|
1097
1097
|
props: Ua,
|
|
1098
1098
|
// @ts-ignore
|
|
1099
1099
|
setup(t) {
|
|
1100
|
-
const e =
|
|
1100
|
+
const e = _e(() => t.containerId), r = _e(() => Te[e.value] || []), n = _e(() => r.value.filter((i) => i.position === t.position));
|
|
1101
1101
|
return Vr(() => {
|
|
1102
1102
|
typeof window < "u" && t.clearOnUrlChange && window.requestAnimationFrame(Va);
|
|
1103
1103
|
}), _i(() => {
|
|
@@ -1292,28 +1292,28 @@ const Us = { class: "dsg-alert__wrapper" }, Vs = ["innerHTML"], Ga = /* @__PURE_
|
|
|
1292
1292
|
key: 0,
|
|
1293
1293
|
class: Q(e)
|
|
1294
1294
|
}, [
|
|
1295
|
-
o.contentProps.type === "gray" ? (E(),
|
|
1295
|
+
o.contentProps.type === "gray" ? (E(), X(Kt, {
|
|
1296
1296
|
key: 0,
|
|
1297
1297
|
icon: { icon: "info-circle" },
|
|
1298
1298
|
type: "outline",
|
|
1299
1299
|
theme: "gray",
|
|
1300
1300
|
size: "lg"
|
|
1301
1301
|
})) : B("", !0),
|
|
1302
|
-
o.contentProps.type === "error" ? (E(),
|
|
1302
|
+
o.contentProps.type === "error" ? (E(), X(Kt, {
|
|
1303
1303
|
key: 1,
|
|
1304
1304
|
icon: { icon: "alert-circle" },
|
|
1305
1305
|
type: "outline",
|
|
1306
1306
|
theme: "error",
|
|
1307
1307
|
size: "lg"
|
|
1308
1308
|
})) : B("", !0),
|
|
1309
|
-
o.contentProps.type === "warning" ? (E(),
|
|
1309
|
+
o.contentProps.type === "warning" ? (E(), X(Kt, {
|
|
1310
1310
|
key: 2,
|
|
1311
1311
|
icon: { icon: "alert-circle" },
|
|
1312
1312
|
type: "outline",
|
|
1313
1313
|
theme: "warning",
|
|
1314
1314
|
size: "lg"
|
|
1315
1315
|
})) : B("", !0),
|
|
1316
|
-
o.contentProps.type === "success" ? (E(),
|
|
1316
|
+
o.contentProps.type === "success" ? (E(), X(Kt, {
|
|
1317
1317
|
key: 3,
|
|
1318
1318
|
icon: { icon: "check-circle" },
|
|
1319
1319
|
type: "outline",
|
|
@@ -1323,7 +1323,7 @@ const Us = { class: "dsg-alert__wrapper" }, Vs = ["innerHTML"], Ga = /* @__PURE_
|
|
|
1323
1323
|
L("div", Us, [
|
|
1324
1324
|
L("p", {
|
|
1325
1325
|
class: Q(["dsg-alert__title", { "dsg-alert__title--with-close-button": o.contentProps.hasCloseButton }])
|
|
1326
|
-
},
|
|
1326
|
+
}, j(o.contentProps.title), 3),
|
|
1327
1327
|
o.contentProps.message ? (E(), R("p", {
|
|
1328
1328
|
key: 0,
|
|
1329
1329
|
innerHTML: o.contentProps.message,
|
|
@@ -1335,7 +1335,7 @@ const Us = { class: "dsg-alert__wrapper" }, Vs = ["innerHTML"], Ga = /* @__PURE_
|
|
|
1335
1335
|
onClick: a,
|
|
1336
1336
|
class: "dsg-alert__close-button"
|
|
1337
1337
|
}, [
|
|
1338
|
-
K(
|
|
1338
|
+
K(we, {
|
|
1339
1339
|
icon: "x-close",
|
|
1340
1340
|
size: "sm"
|
|
1341
1341
|
})
|
|
@@ -1455,13 +1455,13 @@ const Us = { class: "dsg-alert__wrapper" }, Vs = ["innerHTML"], Ga = /* @__PURE_
|
|
|
1455
1455
|
}, [
|
|
1456
1456
|
c.type === "standard" ? W(c.$slots, "dsg-badge--before", { key: 0 }, () => [
|
|
1457
1457
|
L("div", Hs, [
|
|
1458
|
-
c.avatarUri ? (E(),
|
|
1458
|
+
c.avatarUri ? (E(), X(Mr, {
|
|
1459
1459
|
key: 0,
|
|
1460
1460
|
"profile-uri": c.avatarUri,
|
|
1461
1461
|
class: "dsg-badge--avatar",
|
|
1462
1462
|
size: "xxs"
|
|
1463
1463
|
}, null, 8, ["profile-uri"])) : B("", !0),
|
|
1464
|
-
c.iconBefore ? (E(),
|
|
1464
|
+
c.iconBefore ? (E(), X(we, {
|
|
1465
1465
|
key: 1,
|
|
1466
1466
|
icon: c.iconBefore,
|
|
1467
1467
|
size: "xxs",
|
|
@@ -1470,14 +1470,14 @@ const Us = { class: "dsg-alert__wrapper" }, Vs = ["innerHTML"], Ga = /* @__PURE_
|
|
|
1470
1470
|
c.hasDot ? (E(), R("span", Gs)) : B("", !0)
|
|
1471
1471
|
])
|
|
1472
1472
|
]) : B("", !0),
|
|
1473
|
-
c.type === "standard" ? (E(), R("label", zs,
|
|
1474
|
-
c.type === "add" ? (E(),
|
|
1473
|
+
c.type === "standard" ? (E(), R("label", zs, j(c.label), 1)) : B("", !0),
|
|
1474
|
+
c.type === "add" ? (E(), X(we, {
|
|
1475
1475
|
key: 2,
|
|
1476
1476
|
icon: "plus",
|
|
1477
1477
|
size: "xxs",
|
|
1478
1478
|
class: "dsg-badge--icon-add dsg-badge--icon"
|
|
1479
1479
|
})) : B("", !0),
|
|
1480
|
-
c.type === "icon-only" ? (E(),
|
|
1480
|
+
c.type === "icon-only" ? (E(), X(we, {
|
|
1481
1481
|
key: 3,
|
|
1482
1482
|
icon: c.icon,
|
|
1483
1483
|
size: "xxs",
|
|
@@ -1485,14 +1485,14 @@ const Us = { class: "dsg-alert__wrapper" }, Vs = ["innerHTML"], Ga = /* @__PURE_
|
|
|
1485
1485
|
}, null, 8, ["icon"])) : B("", !0),
|
|
1486
1486
|
c.type === "standard" ? W(c.$slots, "dsg-badge--after", { key: 4 }, () => [
|
|
1487
1487
|
L("div", Ws, [
|
|
1488
|
-
c.iconAfter ? (E(),
|
|
1488
|
+
c.iconAfter ? (E(), X(we, {
|
|
1489
1489
|
key: 0,
|
|
1490
1490
|
icon: c.iconAfter,
|
|
1491
1491
|
size: "xxs",
|
|
1492
1492
|
class: "dsg-badge--icon-after dsg-badge--icon"
|
|
1493
1493
|
}, null, 8, ["icon"])) : B("", !0),
|
|
1494
1494
|
c.hasClose ? (E(), R("span", Xs, [
|
|
1495
|
-
c.hasClose ? (E(),
|
|
1495
|
+
c.hasClose ? (E(), X(we, {
|
|
1496
1496
|
key: 0,
|
|
1497
1497
|
icon: "x-close",
|
|
1498
1498
|
class: "dsg-badge--close",
|
|
@@ -1504,10 +1504,10 @@ const Us = { class: "dsg-alert__wrapper" }, Vs = ["innerHTML"], Ga = /* @__PURE_
|
|
|
1504
1504
|
]) : B("", !0)
|
|
1505
1505
|
], 2));
|
|
1506
1506
|
}
|
|
1507
|
-
}), js = { class: "dsg-input-number--control" }, Ys = ["disabled"], Ks =
|
|
1507
|
+
}), js = { class: "dsg-input-number--control" }, Ys = ["disabled"], Ks = ["value", "disabled"], Zs = ["disabled"], qs = {
|
|
1508
1508
|
key: 0,
|
|
1509
1509
|
class: "dsg-input-number--label"
|
|
1510
|
-
},
|
|
1510
|
+
}, Qs = /* @__PURE__ */ pe({
|
|
1511
1511
|
__name: "DsgInputNumber",
|
|
1512
1512
|
props: {
|
|
1513
1513
|
modelValue: {},
|
|
@@ -1532,11 +1532,15 @@ const Us = { class: "dsg-alert__wrapper" }, Vs = ["innerHTML"], Ga = /* @__PURE_
|
|
|
1532
1532
|
L("div", js, [
|
|
1533
1533
|
L("button", {
|
|
1534
1534
|
type: "button",
|
|
1535
|
-
onClick:
|
|
1535
|
+
onClick: a,
|
|
1536
1536
|
disabled: r.disabled,
|
|
1537
|
-
class: "dsg-input-number--btn dsg-input-number--
|
|
1537
|
+
class: "dsg-input-number--btn dsg-input-number--decrement"
|
|
1538
1538
|
}, [
|
|
1539
|
-
r.disabled ? B("", !0) : (E(),
|
|
1539
|
+
r.disabled ? B("", !0) : (E(), X(we, {
|
|
1540
|
+
key: 0,
|
|
1541
|
+
icon: "minus",
|
|
1542
|
+
size: "sm"
|
|
1543
|
+
}))
|
|
1540
1544
|
], 8, Ys),
|
|
1541
1545
|
L("input", {
|
|
1542
1546
|
type: "number",
|
|
@@ -1544,27 +1548,31 @@ const Us = { class: "dsg-alert__wrapper" }, Vs = ["innerHTML"], Ga = /* @__PURE_
|
|
|
1544
1548
|
onInput: o,
|
|
1545
1549
|
disabled: r.disabled,
|
|
1546
1550
|
class: "dsg-input-number--input flex-1"
|
|
1547
|
-
}, null, 40,
|
|
1551
|
+
}, null, 40, Ks),
|
|
1548
1552
|
L("button", {
|
|
1549
1553
|
type: "button",
|
|
1550
1554
|
disabled: r.disabled,
|
|
1551
|
-
onClick:
|
|
1552
|
-
class: "dsg-input-number--btn dsg-input-number--
|
|
1555
|
+
onClick: i,
|
|
1556
|
+
class: "dsg-input-number--btn dsg-input-number--increment"
|
|
1553
1557
|
}, [
|
|
1554
|
-
r.disabled ? B("", !0) : (E(),
|
|
1555
|
-
|
|
1558
|
+
r.disabled ? B("", !0) : (E(), X(we, {
|
|
1559
|
+
key: 0,
|
|
1560
|
+
icon: "plus",
|
|
1561
|
+
size: "sm"
|
|
1562
|
+
}))
|
|
1563
|
+
], 8, Zs)
|
|
1556
1564
|
]),
|
|
1557
|
-
s.label !== void 0 || s.$slots.label ? (E(), R("div",
|
|
1565
|
+
s.label !== void 0 || s.$slots.label ? (E(), R("div", qs, [
|
|
1558
1566
|
W(s.$slots, "label", {}, () => [
|
|
1559
|
-
jt(
|
|
1567
|
+
jt(j(s.label), 1)
|
|
1560
1568
|
])
|
|
1561
1569
|
])) : B("", !0)
|
|
1562
1570
|
], 2));
|
|
1563
1571
|
}
|
|
1564
|
-
}),
|
|
1572
|
+
}), Js = {
|
|
1565
1573
|
key: 0,
|
|
1566
1574
|
class: "dsg-checkbox-group--form-wrapper"
|
|
1567
|
-
},
|
|
1575
|
+
}, eu = { class: "dsg-checkbox-group--header" }, tu = { class: "dsg-checkbox-group--header-title-wrapper" }, ru = { class: "dsg-checkbox-group--title" }, nu = ["innerHTML"], iu = { class: "dsg-checkbox-group--options" }, au = ["onClick"], ou = ["textContent"], su = ["innerHTML", "data"], uu = /* @__PURE__ */ pe({
|
|
1568
1576
|
__name: "DsgCheckboxGroup",
|
|
1569
1577
|
props: /* @__PURE__ */ dn({
|
|
1570
1578
|
size: { default: "md" },
|
|
@@ -1586,12 +1594,12 @@ const Us = { class: "dsg-alert__wrapper" }, Vs = ["innerHTML"], Ga = /* @__PURE_
|
|
|
1586
1594
|
return (i, a) => (E(), R("div", {
|
|
1587
1595
|
class: Q(r)
|
|
1588
1596
|
}, [
|
|
1589
|
-
["form", "form-radio"].includes(i.theme) ? (E(), R("div",
|
|
1590
|
-
L("div",
|
|
1597
|
+
["form", "form-radio"].includes(i.theme) ? (E(), R("div", Js, [
|
|
1598
|
+
L("div", eu, [
|
|
1591
1599
|
W(i.$slots, "dsg-checkbox-group--header", {}, () => [
|
|
1592
|
-
L("div",
|
|
1593
|
-
L("h3",
|
|
1594
|
-
i.tooltip ? (E(),
|
|
1600
|
+
L("div", tu, [
|
|
1601
|
+
L("h3", ru, j(i.title), 1),
|
|
1602
|
+
i.tooltip ? (E(), X(Ia, {
|
|
1595
1603
|
key: 0,
|
|
1596
1604
|
label: i.tooltip,
|
|
1597
1605
|
position: "top",
|
|
@@ -1605,10 +1613,10 @@ const Us = { class: "dsg-alert__wrapper" }, Vs = ["innerHTML"], Ga = /* @__PURE_
|
|
|
1605
1613
|
key: 0,
|
|
1606
1614
|
class: "dsg-checkbox-group--subtext",
|
|
1607
1615
|
innerHTML: i.subtext
|
|
1608
|
-
}, null, 8,
|
|
1616
|
+
}, null, 8, nu)) : B("", !0)
|
|
1609
1617
|
])
|
|
1610
1618
|
]),
|
|
1611
|
-
L("div",
|
|
1619
|
+
L("div", iu, [
|
|
1612
1620
|
(E(!0), R(Re, null, Ke(i.options, (o, s) => (E(), R("div", {
|
|
1613
1621
|
key: s,
|
|
1614
1622
|
class: "dsg-checkbox-group--option"
|
|
@@ -1634,15 +1642,15 @@ const Us = { class: "dsg-alert__wrapper" }, Vs = ["innerHTML"], Ga = /* @__PURE_
|
|
|
1634
1642
|
key: s
|
|
1635
1643
|
}, [
|
|
1636
1644
|
W(i.$slots, `dsg-checkbox-group--panel-title--${String(o.value).trim().toLowerCase().replace(/[^0-9a-zA-Z]/g, "-").replace(/-+/g, "-")}`, { data: o }, () => [
|
|
1637
|
-
o.icon ? (E(),
|
|
1645
|
+
o.icon ? (E(), X(we, {
|
|
1638
1646
|
key: 0,
|
|
1639
1647
|
icon: o.icon,
|
|
1640
1648
|
size: "xl"
|
|
1641
1649
|
}, null, 8, ["icon"])) : B("", !0),
|
|
1642
1650
|
L("h3", {
|
|
1643
1651
|
class: "dsg-checkbox-group--panel-title",
|
|
1644
|
-
textContent:
|
|
1645
|
-
}, null, 8,
|
|
1652
|
+
textContent: j(o.label)
|
|
1653
|
+
}, null, 8, ou)
|
|
1646
1654
|
]),
|
|
1647
1655
|
W(i.$slots, `dsg-checkbox-group--panel-subtext--${String(o.value).trim().toLowerCase().replace(/[^0-9a-zA-Z]/g, "-").replace(/-+/g, "-")}`, {}, () => [
|
|
1648
1656
|
o.subtext ? (E(), R("p", {
|
|
@@ -1650,7 +1658,7 @@ const Us = { class: "dsg-alert__wrapper" }, Vs = ["innerHTML"], Ga = /* @__PURE_
|
|
|
1650
1658
|
class: "dsg-checkbox-group--panel-subtext",
|
|
1651
1659
|
innerHTML: o.subtext,
|
|
1652
1660
|
data: o
|
|
1653
|
-
}, null, 8,
|
|
1661
|
+
}, null, 8, su)) : B("", !0)
|
|
1654
1662
|
])
|
|
1655
1663
|
])),
|
|
1656
1664
|
(E(), R("div", {
|
|
@@ -1665,11 +1673,11 @@ const Us = { class: "dsg-alert__wrapper" }, Vs = ["innerHTML"], Ga = /* @__PURE_
|
|
|
1665
1673
|
"onUpdate:modelValue": a[1] || (a[1] = (u) => e.value = u)
|
|
1666
1674
|
}, null, 8, ["value", "disabled", "modelValue"])
|
|
1667
1675
|
]))
|
|
1668
|
-
], 10,
|
|
1676
|
+
], 10, au))), 256)) : B("", !0)
|
|
1669
1677
|
]));
|
|
1670
1678
|
}
|
|
1671
1679
|
});
|
|
1672
|
-
var
|
|
1680
|
+
var lu = "2.0.4", ii = 500, ki = "user-agent", ir = "", Fi = "?", gn = "function", Dt = "undefined", ar = "object", ai = "string", $e = "browser", yt = "cpu", lt = "device", tt = "engine", qe = "os", er = "result", N = "name", S = "type", D = "vendor", P = "version", He = "architecture", kr = "major", T = "model", br = "console", G = "mobile", ae = "tablet", me = "smarttv", st = "wearable", Xr = "xr", Cr = "embedded", cr = "inapp", Ei = "brands", Vt = "formFactors", bi = "fullVersionList", tr = "platform", Ci = "platformVersion", bn = "bitness", Mt = "sec-ch-ua", fu = Mt + "-full-version-list", cu = Mt + "-arch", du = Mt + "-" + bn, hu = Mt + "-form-factors", vu = Mt + "-" + G, pu = Mt + "-" + T, Wa = Mt + "-" + tr, gu = Wa + "-version", Xa = [Ei, bi, G, T, tr, Ci, He, Vt, bn], jr = "Amazon", zt = "Apple", Ui = "ASUS", Vi = "BlackBerry", Lt = "Google", $i = "Huawei", Dn = "Lenovo", Hi = "Honor", Yr = "LG", Nn = "Microsoft", Rn = "Motorola", Pn = "Nvidia", Gi = "OnePlus", Bn = "OPPO", dr = "Samsung", zi = "Sharp", hr = "Sony", Mn = "Xiaomi", Ln = "Zebra", Wi = "Chrome", Xi = "Chromium", Ct = "Chromecast", sn = "Edge", vr = "Firefox", pr = "Opera", kn = "Facebook", ji = "Sogou", Wt = "Mobile ", gr = " Browser", oi = "Windows", xu = typeof window !== Dt, Ge = xu && window.navigator ? window.navigator : void 0, Tt = Ge && Ge.userAgentData ? Ge.userAgentData : void 0, yu = function(t, e) {
|
|
1673
1681
|
var r = {}, n = e;
|
|
1674
1682
|
if (!xn(e)) {
|
|
1675
1683
|
n = {};
|
|
@@ -1763,7 +1771,7 @@ var cu = "2.0.4", ii = 500, ki = "user-agent", ir = "", Fi = "?", gn = "function
|
|
|
1763
1771
|
xr: ["VR", "XR"],
|
|
1764
1772
|
"?": ["Desktop", "Unknown"],
|
|
1765
1773
|
"*": void 0
|
|
1766
|
-
},
|
|
1774
|
+
}, wu = {
|
|
1767
1775
|
Chrome: "Google Chrome",
|
|
1768
1776
|
Edge: "Microsoft Edge",
|
|
1769
1777
|
"Edge WebView2": "Microsoft Edge WebView2",
|
|
@@ -2537,99 +2545,99 @@ var cu = "2.0.4", ii = 500, ki = "user-agent", ir = "", Fi = "?", gn = "function
|
|
|
2537
2545
|
/smart-tv.+(samsung)/i
|
|
2538
2546
|
// Samsung
|
|
2539
2547
|
],
|
|
2540
|
-
[D, [S,
|
|
2548
|
+
[D, [S, me]],
|
|
2541
2549
|
[
|
|
2542
2550
|
/hbbtv.+maple;(\d+)/i
|
|
2543
2551
|
],
|
|
2544
|
-
[[T, /^/, "SmartTV"], [D, dr], [S,
|
|
2552
|
+
[[T, /^/, "SmartTV"], [D, dr], [S, me]],
|
|
2545
2553
|
[
|
|
2546
2554
|
/(vizio)(?: |.+model\/)(\w+-\w+)/i,
|
|
2547
2555
|
// Vizio
|
|
2548
2556
|
/tcast.+(lg)e?. ([-\w]+)/i
|
|
2549
2557
|
// LG SmartTV
|
|
2550
2558
|
],
|
|
2551
|
-
[D, T, [S,
|
|
2559
|
+
[D, T, [S, me]],
|
|
2552
2560
|
[
|
|
2553
2561
|
/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i
|
|
2554
2562
|
],
|
|
2555
|
-
[[D, Yr], [S,
|
|
2563
|
+
[[D, Yr], [S, me]],
|
|
2556
2564
|
[
|
|
2557
2565
|
/(apple) ?tv/i
|
|
2558
2566
|
// Apple TV
|
|
2559
2567
|
],
|
|
2560
|
-
[D, [T, zt + " TV"], [S,
|
|
2568
|
+
[D, [T, zt + " TV"], [S, me]],
|
|
2561
2569
|
[
|
|
2562
2570
|
/crkey.*devicetype\/chromecast/i
|
|
2563
2571
|
// Google Chromecast Third Generation
|
|
2564
2572
|
],
|
|
2565
|
-
[[T, Ct + " Third Generation"], [D, Lt], [S,
|
|
2573
|
+
[[T, Ct + " Third Generation"], [D, Lt], [S, me]],
|
|
2566
2574
|
[
|
|
2567
2575
|
/crkey.*devicetype\/([^/]*)/i
|
|
2568
2576
|
// Google Chromecast with specific device type
|
|
2569
2577
|
],
|
|
2570
|
-
[[T, /^/, "Chromecast "], [D, Lt], [S,
|
|
2578
|
+
[[T, /^/, "Chromecast "], [D, Lt], [S, me]],
|
|
2571
2579
|
[
|
|
2572
2580
|
/fuchsia.*crkey/i
|
|
2573
2581
|
// Google Chromecast Nest Hub
|
|
2574
2582
|
],
|
|
2575
|
-
[[T, Ct + " Nest Hub"], [D, Lt], [S,
|
|
2583
|
+
[[T, Ct + " Nest Hub"], [D, Lt], [S, me]],
|
|
2576
2584
|
[
|
|
2577
2585
|
/crkey/i
|
|
2578
2586
|
// Google Chromecast, Linux-based or unknown
|
|
2579
2587
|
],
|
|
2580
|
-
[[T, Ct], [D, Lt], [S,
|
|
2588
|
+
[[T, Ct], [D, Lt], [S, me]],
|
|
2581
2589
|
[
|
|
2582
2590
|
/(portaltv)/i
|
|
2583
2591
|
// Facebook Portal TV
|
|
2584
2592
|
],
|
|
2585
|
-
[T, [D, kn], [S,
|
|
2593
|
+
[T, [D, kn], [S, me]],
|
|
2586
2594
|
[
|
|
2587
2595
|
/droid.+aft(\w+)( bui|\))/i
|
|
2588
2596
|
// Fire TV
|
|
2589
2597
|
],
|
|
2590
|
-
[T, [D, jr], [S,
|
|
2598
|
+
[T, [D, jr], [S, me]],
|
|
2591
2599
|
[
|
|
2592
2600
|
/(shield \w+ tv)/i
|
|
2593
2601
|
// Nvidia Shield TV
|
|
2594
2602
|
],
|
|
2595
|
-
[T, [D, Pn], [S,
|
|
2603
|
+
[T, [D, Pn], [S, me]],
|
|
2596
2604
|
[
|
|
2597
2605
|
/\(dtv[\);].+(aquos)/i,
|
|
2598
2606
|
/(aquos-tv[\w ]+)\)/i
|
|
2599
2607
|
// Sharp
|
|
2600
2608
|
],
|
|
2601
|
-
[T, [D, zi], [S,
|
|
2609
|
+
[T, [D, zi], [S, me]],
|
|
2602
2610
|
[
|
|
2603
2611
|
/(bravia[\w ]+)( bui|\))/i
|
|
2604
2612
|
// Sony
|
|
2605
2613
|
],
|
|
2606
|
-
[T, [D, hr], [S,
|
|
2614
|
+
[T, [D, hr], [S, me]],
|
|
2607
2615
|
[
|
|
2608
2616
|
/(mi(tv|box)-?\w+) bui/i
|
|
2609
2617
|
// Xiaomi
|
|
2610
2618
|
],
|
|
2611
|
-
[T, [D, Mn], [S,
|
|
2619
|
+
[T, [D, Mn], [S, me]],
|
|
2612
2620
|
[
|
|
2613
2621
|
/Hbbtv.*(technisat) (.*);/i
|
|
2614
2622
|
// TechniSAT
|
|
2615
2623
|
],
|
|
2616
|
-
[D, T, [S,
|
|
2624
|
+
[D, T, [S, me]],
|
|
2617
2625
|
[
|
|
2618
2626
|
/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,
|
|
2619
2627
|
// Roku
|
|
2620
2628
|
/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i
|
|
2621
2629
|
// HbbTV devices
|
|
2622
2630
|
],
|
|
2623
|
-
[[D, /.+\/(\w+)/, "$1", ut, { LG: "lge" }], [T, yn], [S,
|
|
2631
|
+
[[D, /.+\/(\w+)/, "$1", ut, { LG: "lge" }], [T, yn], [S, me]],
|
|
2624
2632
|
[
|
|
2625
2633
|
// SmartTV from Unidentified Vendors
|
|
2626
2634
|
/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i
|
|
2627
2635
|
],
|
|
2628
|
-
[T, [S,
|
|
2636
|
+
[T, [S, me]],
|
|
2629
2637
|
[
|
|
2630
2638
|
/\b(android tv|smart[- ]?tv|opera tv|tv; rv:|large screen[\w ]+safari)\b/i
|
|
2631
2639
|
],
|
|
2632
|
-
[[S,
|
|
2640
|
+
[[S, me]],
|
|
2633
2641
|
[
|
|
2634
2642
|
///////////////////
|
|
2635
2643
|
// CONSOLES
|
|
@@ -3008,7 +3016,7 @@ var cu = "2.0.4", ii = 500, ki = "user-agent", ir = "", Fi = "?", gn = "function
|
|
|
3008
3016
|
[tt, [N, P]],
|
|
3009
3017
|
[qe, [N, P]]
|
|
3010
3018
|
]), t;
|
|
3011
|
-
}(),
|
|
3019
|
+
}(), mu = function(t, e) {
|
|
3012
3020
|
var r = Kr.init[e], n = Kr.isIgnore[e] || 0, i = Kr.isIgnoreRgx[e] || 0, a = Kr.toString[e] || 0;
|
|
3013
3021
|
function o() {
|
|
3014
3022
|
_t.call(this, r);
|
|
@@ -3053,14 +3061,14 @@ function ja(t, e) {
|
|
|
3053
3061
|
if (t = t || {}, _t.call(this, Xa), e)
|
|
3054
3062
|
_t.call(this, [
|
|
3055
3063
|
[Ei, Fn(t[Mt])],
|
|
3056
|
-
[bi, Fn(t[
|
|
3057
|
-
[G, /\?1/.test(t[
|
|
3058
|
-
[T, xr(t[
|
|
3064
|
+
[bi, Fn(t[fu])],
|
|
3065
|
+
[G, /\?1/.test(t[vu])],
|
|
3066
|
+
[T, xr(t[pu])],
|
|
3059
3067
|
[tr, xr(t[Wa])],
|
|
3060
|
-
[Ci, xr(t[
|
|
3061
|
-
[He, xr(t[
|
|
3062
|
-
[Vt, Fn(t[
|
|
3063
|
-
[bn, xr(t[
|
|
3068
|
+
[Ci, xr(t[gu])],
|
|
3069
|
+
[He, xr(t[cu])],
|
|
3070
|
+
[Vt, Fn(t[hu])],
|
|
3071
|
+
[bn, xr(t[du])]
|
|
3064
3072
|
]);
|
|
3065
3073
|
else
|
|
3066
3074
|
for (var r in t)
|
|
@@ -3103,7 +3111,7 @@ function qi(t, e, r, n) {
|
|
|
3103
3111
|
if (o)
|
|
3104
3112
|
for (var u in o) {
|
|
3105
3113
|
var l = o[u].brand || o[u], f = o[u].version;
|
|
3106
|
-
this.itemType == $e && !/not.a.brand/i.test(l) && (!s || /Chrom/.test(s) && l != Xi || s == sn && /WebView2/.test(l)) && (l = ut(l,
|
|
3114
|
+
this.itemType == $e && !/not.a.brand/i.test(l) && (!s || /Chrom/.test(s) && l != Xi || s == sn && /WebView2/.test(l)) && (l = ut(l, wu), s = this.get(N), s && !/Chrom/.test(s) && /Chrom/.test(l) || this.set(N, l).set(P, f).set(kr, Un(f)), s = l), this.itemType == tt && l == Xi && this.set(P, f);
|
|
3107
3115
|
}
|
|
3108
3116
|
break;
|
|
3109
3117
|
case yt:
|
|
@@ -3145,7 +3153,7 @@ function qi(t, e, r, n) {
|
|
|
3145
3153
|
["ua", e],
|
|
3146
3154
|
["uaCH", n],
|
|
3147
3155
|
["rgxMap", r],
|
|
3148
|
-
["data",
|
|
3156
|
+
["data", mu(this, t)]
|
|
3149
3157
|
]), this;
|
|
3150
3158
|
}
|
|
3151
3159
|
function At(t, e, r) {
|
|
@@ -3166,7 +3174,7 @@ function At(t, e, r) {
|
|
|
3166
3174
|
ir
|
|
3167
3175
|
)
|
|
3168
3176
|
)
|
|
3169
|
-
), a = new ja(r, !0), o = e ?
|
|
3177
|
+
), a = new ja(r, !0), o = e ? yu(Zi, e) : Zi, s = function(u) {
|
|
3170
3178
|
return u == er ? function() {
|
|
3171
3179
|
return new qi(u, i, o, a).set("ua", i).set($e, this.getBrowser()).set(yt, this.getCPU()).set(lt, this.getDevice()).set(tt, this.getEngine()).set(qe, this.getOS()).get();
|
|
3172
3180
|
} : function() {
|
|
@@ -3188,10 +3196,10 @@ function At(t, e, r) {
|
|
|
3188
3196
|
}]
|
|
3189
3197
|
]).setUA(i), this;
|
|
3190
3198
|
}
|
|
3191
|
-
At.VERSION =
|
|
3199
|
+
At.VERSION = lu;
|
|
3192
3200
|
At.BROWSER = Cn([N, P, kr, S]);
|
|
3193
3201
|
At.CPU = Cn([He]);
|
|
3194
|
-
At.DEVICE = Cn([T, D, S, br, G,
|
|
3202
|
+
At.DEVICE = Cn([T, D, S, br, G, me, ae, st, Cr]);
|
|
3195
3203
|
At.ENGINE = At.OS = Cn([N, P]);
|
|
3196
3204
|
const $n = typeof navigator < "u" ? navigator.userAgent.toLowerCase().indexOf("firefox") > 0 : !1;
|
|
3197
3205
|
function Hn(t, e, r, n) {
|
|
@@ -3213,7 +3221,7 @@ function Ka(t) {
|
|
|
3213
3221
|
e[r - 1] += ",", e.splice(r, 1), r = e.lastIndexOf("");
|
|
3214
3222
|
return e;
|
|
3215
3223
|
}
|
|
3216
|
-
function
|
|
3224
|
+
function _u(t, e) {
|
|
3217
3225
|
const r = t.length >= e.length ? t : e, n = t.length >= e.length ? e : t;
|
|
3218
3226
|
let i = !0;
|
|
3219
3227
|
for (let a = 0; a < r.length; a++)
|
|
@@ -3314,20 +3322,20 @@ const Fr = {
|
|
|
3314
3322
|
for (let t = 1; t < 20; t++)
|
|
3315
3323
|
Fr["f".concat(t)] = 111 + t;
|
|
3316
3324
|
let ve = [], Pr = null, Za = "all";
|
|
3317
|
-
const xt = /* @__PURE__ */ new Map(), lr = (t) => Fr[t.toLowerCase()] || it[t.toLowerCase()] || t.toUpperCase().charCodeAt(0),
|
|
3325
|
+
const xt = /* @__PURE__ */ new Map(), lr = (t) => Fr[t.toLowerCase()] || it[t.toLowerCase()] || t.toUpperCase().charCodeAt(0), Au = (t) => Object.keys(Fr).find((e) => Fr[e] === t), Eu = (t) => Object.keys(it).find((e) => it[e] === t);
|
|
3318
3326
|
function qa(t) {
|
|
3319
3327
|
Za = t || "all";
|
|
3320
3328
|
}
|
|
3321
3329
|
function Ur() {
|
|
3322
3330
|
return Za || "all";
|
|
3323
3331
|
}
|
|
3324
|
-
function
|
|
3332
|
+
function bu() {
|
|
3325
3333
|
return ve.slice(0);
|
|
3326
3334
|
}
|
|
3327
|
-
function
|
|
3328
|
-
return ve.map((t) =>
|
|
3335
|
+
function Cu() {
|
|
3336
|
+
return ve.map((t) => Au(t) || Eu(t) || String.fromCharCode(t));
|
|
3329
3337
|
}
|
|
3330
|
-
function
|
|
3338
|
+
function Su() {
|
|
3331
3339
|
const t = [];
|
|
3332
3340
|
return Object.keys(ge).forEach((e) => {
|
|
3333
3341
|
ge[e].forEach((r) => {
|
|
@@ -3346,7 +3354,7 @@ function Ou() {
|
|
|
3346
3354
|
});
|
|
3347
3355
|
}), t;
|
|
3348
3356
|
}
|
|
3349
|
-
function
|
|
3357
|
+
function Iu(t) {
|
|
3350
3358
|
const e = t.target || t.srcElement, {
|
|
3351
3359
|
tagName: r
|
|
3352
3360
|
} = e;
|
|
@@ -3354,10 +3362,10 @@ function Tu(t) {
|
|
|
3354
3362
|
const i = r === "INPUT" && !["checkbox", "radio", "range", "button", "file", "reset", "submit", "color"].includes(e.type);
|
|
3355
3363
|
return (e.isContentEditable || (i || r === "TEXTAREA" || r === "SELECT") && !e.readOnly) && (n = !1), n;
|
|
3356
3364
|
}
|
|
3357
|
-
function
|
|
3365
|
+
function Ou(t) {
|
|
3358
3366
|
return typeof t == "string" && (t = lr(t)), ve.indexOf(t) !== -1;
|
|
3359
3367
|
}
|
|
3360
|
-
function
|
|
3368
|
+
function Tu(t, e) {
|
|
3361
3369
|
let r, n;
|
|
3362
3370
|
t || (t = Ur());
|
|
3363
3371
|
for (const i in ge)
|
|
@@ -3371,7 +3379,7 @@ function Nu(t, e) {
|
|
|
3371
3379
|
}) : n++;
|
|
3372
3380
|
Ur() === t && qa(e || "all");
|
|
3373
3381
|
}
|
|
3374
|
-
function
|
|
3382
|
+
function Du(t) {
|
|
3375
3383
|
let e = t.keyCode || t.which || t.charCode;
|
|
3376
3384
|
t.key && t.key.toLowerCase() === "capslock" && (e = lr(t.key));
|
|
3377
3385
|
const r = ve.indexOf(e);
|
|
@@ -3416,7 +3424,7 @@ const Zr = (t) => {
|
|
|
3416
3424
|
r || (r = Ur());
|
|
3417
3425
|
const c = u > 1 ? Ya(it, s) : [], h = [];
|
|
3418
3426
|
ge[f] = ge[f].filter((d) => {
|
|
3419
|
-
const p = (n ? d.method === n : !0) && d.scope === r &&
|
|
3427
|
+
const p = (n ? d.method === n : !0) && d.scope === r && _u(d.mods, c);
|
|
3420
3428
|
return p && h.push(d.element), !p;
|
|
3421
3429
|
}), h.forEach((d) => Si(d));
|
|
3422
3430
|
});
|
|
@@ -3490,7 +3498,7 @@ function ct(t, e, r) {
|
|
|
3490
3498
|
return Ji(p, o);
|
|
3491
3499
|
}, v = function() {
|
|
3492
3500
|
let p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.event;
|
|
3493
|
-
Ji(p, o),
|
|
3501
|
+
Ji(p, o), Du(p);
|
|
3494
3502
|
};
|
|
3495
3503
|
xt.set(o, {
|
|
3496
3504
|
keydownListener: d,
|
|
@@ -3509,7 +3517,7 @@ function ct(t, e, r) {
|
|
|
3509
3517
|
}
|
|
3510
3518
|
}
|
|
3511
3519
|
}
|
|
3512
|
-
function
|
|
3520
|
+
function Nu(t) {
|
|
3513
3521
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "all";
|
|
3514
3522
|
Object.keys(ge).forEach((r) => {
|
|
3515
3523
|
ge[r].filter((i) => i.scope === e && i.shortcut === t).forEach((i) => {
|
|
@@ -3548,15 +3556,15 @@ function Si(t) {
|
|
|
3548
3556
|
}
|
|
3549
3557
|
}
|
|
3550
3558
|
const Gn = {
|
|
3551
|
-
getPressedKeyString:
|
|
3559
|
+
getPressedKeyString: Cu,
|
|
3552
3560
|
setScope: qa,
|
|
3553
3561
|
getScope: Ur,
|
|
3554
|
-
deleteScope:
|
|
3555
|
-
getPressedKeyCodes:
|
|
3556
|
-
getAllKeyCodes:
|
|
3557
|
-
isPressed:
|
|
3558
|
-
filter:
|
|
3559
|
-
trigger:
|
|
3562
|
+
deleteScope: Tu,
|
|
3563
|
+
getPressedKeyCodes: bu,
|
|
3564
|
+
getAllKeyCodes: Su,
|
|
3565
|
+
isPressed: Ou,
|
|
3566
|
+
filter: Iu,
|
|
3567
|
+
trigger: Nu,
|
|
3560
3568
|
unbind: Qa,
|
|
3561
3569
|
keyMap: Fr,
|
|
3562
3570
|
modifier: it,
|
|
@@ -3568,33 +3576,35 @@ if (typeof window < "u") {
|
|
|
3568
3576
|
const t = window.hotkeys;
|
|
3569
3577
|
ct.noConflict = (e) => (e && window.hotkeys === ct && (window.hotkeys = t), ct), window.hotkeys = ct;
|
|
3570
3578
|
}
|
|
3571
|
-
const
|
|
3579
|
+
const Ru = {
|
|
3572
3580
|
class: "dsg-dropdown--trigger",
|
|
3573
3581
|
tabindex: "0"
|
|
3574
|
-
},
|
|
3582
|
+
}, Pu = { class: "dsg-dropdown--menu" }, Bu = {
|
|
3575
3583
|
key: 0,
|
|
3576
3584
|
class: "dsg-dropdown--menu-header"
|
|
3577
|
-
},
|
|
3585
|
+
}, Mu = {
|
|
3578
3586
|
key: 1,
|
|
3579
3587
|
class: "dsg-dropdown--menu-header"
|
|
3580
|
-
},
|
|
3588
|
+
}, Lu = { class: "dsg-dropdown--menu-title" }, ku = {
|
|
3581
3589
|
key: 2,
|
|
3582
3590
|
class: "dsg-dropdown--menu-header subsection"
|
|
3583
|
-
},
|
|
3591
|
+
}, Fu = { class: "dsg-dropdown--menu-subtitle" }, Uu = ["href", "target", "tabindex", "title", "onClick"], Vu = {
|
|
3584
3592
|
key: 0,
|
|
3585
3593
|
class: "dsg-dropdown--menu-item--content"
|
|
3586
|
-
},
|
|
3594
|
+
}, $u = {
|
|
3587
3595
|
key: 0,
|
|
3588
3596
|
class: "dsg-dropdown--menu-item--icon"
|
|
3589
|
-
},
|
|
3597
|
+
}, Hu = { class: "dsg-dropdown--menu-item--label" }, Gu = { class: "dsg-dropdown--menu-item--hotkey" }, zu = { key: 0 }, Wu = {
|
|
3590
3598
|
key: 1,
|
|
3591
3599
|
class: "dsg-dropdown--menu-item--content"
|
|
3592
|
-
},
|
|
3600
|
+
}, Xu = /* @__PURE__ */ pe({
|
|
3593
3601
|
__name: "DsgDropdown",
|
|
3594
3602
|
props: {
|
|
3595
3603
|
label: { default: "" },
|
|
3596
3604
|
type: { default: "button" },
|
|
3597
3605
|
icon: { default: "dots-vertical" },
|
|
3606
|
+
iconBefore: { default: () => {
|
|
3607
|
+
} },
|
|
3598
3608
|
buttonTheme: { default: "gray" },
|
|
3599
3609
|
menuItems: { default: () => [] },
|
|
3600
3610
|
avatarInfo: { default: null },
|
|
@@ -3605,7 +3615,8 @@ const Bu = {
|
|
|
3605
3615
|
classes: { default: "" },
|
|
3606
3616
|
strategy: { default: "absolute" },
|
|
3607
3617
|
skidding: { default: 0 },
|
|
3608
|
-
distance: { default: 0 }
|
|
3618
|
+
distance: { default: 0 },
|
|
3619
|
+
size: { default: "md" }
|
|
3609
3620
|
},
|
|
3610
3621
|
setup(t, { expose: e }) {
|
|
3611
3622
|
const r = ie(t.isOpen), n = new At().getOS().name;
|
|
@@ -3635,7 +3646,7 @@ const Bu = {
|
|
|
3635
3646
|
}), e({
|
|
3636
3647
|
handleTriggerClick: l
|
|
3637
3648
|
}), (d, v) => (E(), R("div", {
|
|
3638
|
-
class: Q(["dsg-dropdown", d.classes]),
|
|
3649
|
+
class: Q(["dsg-dropdown", `dsg-dropdown--${d.size}` + d.classes]),
|
|
3639
3650
|
ref: "dsgDropdown"
|
|
3640
3651
|
}, [
|
|
3641
3652
|
K(Ye(xo), ke({
|
|
@@ -3655,10 +3666,10 @@ const Bu = {
|
|
|
3655
3666
|
ref: "floatingVueDropdownEl"
|
|
3656
3667
|
}, d.$attrs), {
|
|
3657
3668
|
popper: ht(() => [
|
|
3658
|
-
L("div",
|
|
3669
|
+
L("div", Pu, [
|
|
3659
3670
|
W(d.$slots, "dsg-dropdown-menu--header", {}, () => [
|
|
3660
|
-
d.headerType === "avatar" ? (E(), R("div",
|
|
3661
|
-
d.avatarInfo ? (E(),
|
|
3671
|
+
d.headerType === "avatar" ? (E(), R("div", Bu, [
|
|
3672
|
+
d.avatarInfo ? (E(), X(Mr, {
|
|
3662
3673
|
key: 0,
|
|
3663
3674
|
size: "md",
|
|
3664
3675
|
profileUri: d.avatarInfo.profileUri,
|
|
@@ -3667,10 +3678,10 @@ const Bu = {
|
|
|
3667
3678
|
title: d.avatarInfo.title,
|
|
3668
3679
|
"sub-text": d.avatarInfo.subText
|
|
3669
3680
|
}, null, 8, ["profileUri", "fullName", "isOnline", "title", "sub-text"])) : B("", !0)
|
|
3670
|
-
])) : d.headerType === "title" ? (E(), R("div",
|
|
3671
|
-
L("h3",
|
|
3672
|
-
])) : d.headerType === "subsection" ? (E(), R("div",
|
|
3673
|
-
L("h4",
|
|
3681
|
+
])) : d.headerType === "title" ? (E(), R("div", Mu, [
|
|
3682
|
+
L("h3", Lu, j(d.headerTitle), 1)
|
|
3683
|
+
])) : d.headerType === "subsection" ? (E(), R("div", ku, [
|
|
3684
|
+
L("h4", Fu, j(d.headerTitle), 1)
|
|
3674
3685
|
])) : B("", !0)
|
|
3675
3686
|
]),
|
|
3676
3687
|
W(d.$slots, "dsg-dropdown-menu-content", {}, () => [
|
|
@@ -3683,29 +3694,29 @@ const Bu = {
|
|
|
3683
3694
|
key: w,
|
|
3684
3695
|
onClick: (m) => f(m, p)
|
|
3685
3696
|
}, [
|
|
3686
|
-
p.type === "item" || p.type === void 0 ? (E(), R("div",
|
|
3687
|
-
p.icon ? (E(), R("div",
|
|
3688
|
-
K(
|
|
3697
|
+
p.type === "item" || p.type === void 0 ? (E(), R("div", Vu, [
|
|
3698
|
+
p.icon ? (E(), R("div", $u, [
|
|
3699
|
+
K(we, {
|
|
3689
3700
|
icon: p.icon,
|
|
3690
3701
|
size: "xs"
|
|
3691
3702
|
}, null, 8, ["icon"])
|
|
3692
3703
|
])) : B("", !0),
|
|
3693
|
-
L("span",
|
|
3694
|
-
L("div",
|
|
3695
|
-
p.hotkey ? (E(), R("span",
|
|
3704
|
+
L("span", Hu, j(p.label), 1),
|
|
3705
|
+
L("div", Gu, [
|
|
3706
|
+
p.hotkey ? (E(), R("span", zu, j(h(p.hotkey)), 1)) : B("", !0)
|
|
3696
3707
|
])
|
|
3697
|
-
])) : p.type === "divider" ? (E(), R("div",
|
|
3708
|
+
])) : p.type === "divider" ? (E(), R("div", Wu, v[1] || (v[1] = [
|
|
3698
3709
|
L("hr", null, null, -1)
|
|
3699
3710
|
]))) : B("", !0)
|
|
3700
|
-
], 10,
|
|
3711
|
+
], 10, Uu))), 128))
|
|
3701
3712
|
])
|
|
3702
3713
|
])
|
|
3703
3714
|
]),
|
|
3704
3715
|
default: ht(() => [
|
|
3705
|
-
L("div",
|
|
3716
|
+
L("div", Ru, [
|
|
3706
3717
|
W(d.$slots, "dsg-dropdown--trigger", {}, () => [
|
|
3707
3718
|
d.type === "avatar" ? (E(), R(Re, { key: 0 }, [
|
|
3708
|
-
d.avatarInfo ? (E(),
|
|
3719
|
+
d.avatarInfo ? (E(), X(Mr, {
|
|
3709
3720
|
key: 0,
|
|
3710
3721
|
size: "lg",
|
|
3711
3722
|
profileUri: d.avatarInfo.profileUri,
|
|
@@ -3714,15 +3725,17 @@ const Bu = {
|
|
|
3714
3725
|
onClick: s,
|
|
3715
3726
|
"prevent-default": !0
|
|
3716
3727
|
}, null, 8, ["profileUri", "fullName"])) : B("", !0)
|
|
3717
|
-
], 64)) : d.type === "button" ? (E(),
|
|
3728
|
+
], 64)) : d.type === "button" ? (E(), X(Nt, {
|
|
3718
3729
|
key: 1,
|
|
3719
3730
|
theme: d.buttonTheme,
|
|
3720
3731
|
label: d.label,
|
|
3721
3732
|
onClick: u,
|
|
3722
3733
|
ref: "dsgDropdownButtonTriggerEl",
|
|
3734
|
+
"icon-before": d.iconBefore,
|
|
3735
|
+
size: d.size,
|
|
3723
3736
|
"icon-after": "chevron-down",
|
|
3724
3737
|
class: Q({ "dropdown-active": r.value })
|
|
3725
|
-
}, null, 8, ["theme", "label", "class"])) : d.type === "icon" ? (E(),
|
|
3738
|
+
}, null, 8, ["theme", "label", "icon-before", "size", "class"])) : d.type === "icon" ? (E(), X(Nt, {
|
|
3726
3739
|
key: 2,
|
|
3727
3740
|
"icon-before": d.icon,
|
|
3728
3741
|
size: "sm",
|
|
@@ -3741,13 +3754,13 @@ const Bu = {
|
|
|
3741
3754
|
function zn(t) {
|
|
3742
3755
|
return t === 0 ? !1 : Array.isArray(t) && t.length === 0 ? !0 : !t;
|
|
3743
3756
|
}
|
|
3744
|
-
function
|
|
3757
|
+
function ju(t) {
|
|
3745
3758
|
return (...e) => !t(...e);
|
|
3746
3759
|
}
|
|
3747
|
-
function
|
|
3760
|
+
function Yu(t, e) {
|
|
3748
3761
|
return t === void 0 && (t = "undefined"), t === null && (t = "null"), t === !1 && (t = "false"), t.toString().toLowerCase().indexOf(e.trim()) !== -1;
|
|
3749
3762
|
}
|
|
3750
|
-
function
|
|
3763
|
+
function Ku(t) {
|
|
3751
3764
|
return t.filter((e) => !e.$isLabel);
|
|
3752
3765
|
}
|
|
3753
3766
|
function Wn(t, e) {
|
|
@@ -3757,7 +3770,7 @@ function Wn(t, e) {
|
|
|
3757
3770
|
}), n.concat(i[t])) : n, []);
|
|
3758
3771
|
}
|
|
3759
3772
|
const ea = (...t) => (e) => t.reduce((r, n) => n(r), e);
|
|
3760
|
-
var
|
|
3773
|
+
var Zu = {
|
|
3761
3774
|
data() {
|
|
3762
3775
|
return {
|
|
3763
3776
|
search: "",
|
|
@@ -4030,7 +4043,7 @@ var Qu = {
|
|
|
4030
4043
|
filteredOptions() {
|
|
4031
4044
|
const t = this.search || "", e = t.toLowerCase().trim();
|
|
4032
4045
|
let r = this.options.concat();
|
|
4033
|
-
return this.internalSearch ? r = this.groupValues ? this.filterAndFlat(r, e, this.label) : this.filterOptions(r, e, this.label, this.customLabel) : r = this.groupValues ? Wn(this.groupValues, this.groupLabel)(r) : r, r = this.hideSelected ? r.filter(
|
|
4046
|
+
return this.internalSearch ? r = this.groupValues ? this.filterAndFlat(r, e, this.label) : this.filterOptions(r, e, this.label, this.customLabel) : r = this.groupValues ? Wn(this.groupValues, this.groupLabel)(r) : r, r = this.hideSelected ? r.filter(ju(this.isSelected)) : r, this.taggable && e.length && !this.isExistingOption(e) && (this.tagPosition === "bottom" ? r.push({ isTag: !0, label: t }) : r.unshift({ isTag: !0, label: t })), r.slice(0, this.optionsLimit);
|
|
4034
4047
|
},
|
|
4035
4048
|
valueKeys() {
|
|
4036
4049
|
return this.trackBy ? this.internalValue.map((t) => t[this.trackBy]) : this.internalValue;
|
|
@@ -4081,7 +4094,7 @@ var Qu = {
|
|
|
4081
4094
|
flatAndStrip(t) {
|
|
4082
4095
|
return ea(
|
|
4083
4096
|
Wn(this.groupValues, this.groupLabel),
|
|
4084
|
-
|
|
4097
|
+
Ku
|
|
4085
4098
|
)(t);
|
|
4086
4099
|
},
|
|
4087
4100
|
/**
|
|
@@ -4277,7 +4290,7 @@ var Qu = {
|
|
|
4277
4290
|
* @returns {Array}
|
|
4278
4291
|
*/
|
|
4279
4292
|
filterOptions(t, e, r, n) {
|
|
4280
|
-
return e ? t.filter((i) =>
|
|
4293
|
+
return e ? t.filter((i) => Yu(n(i, r), e)).sort((i, a) => typeof this.filteringSortFunc == "function" ? this.filteringSortFunc(i, a) : n(i, r).length - n(a, r).length) : t;
|
|
4281
4294
|
},
|
|
4282
4295
|
/**
|
|
4283
4296
|
*
|
|
@@ -4300,7 +4313,7 @@ var Qu = {
|
|
|
4300
4313
|
});
|
|
4301
4314
|
}
|
|
4302
4315
|
}
|
|
4303
|
-
},
|
|
4316
|
+
}, qu = {
|
|
4304
4317
|
data() {
|
|
4305
4318
|
return {
|
|
4306
4319
|
pointer: 0,
|
|
@@ -4382,7 +4395,7 @@ var Qu = {
|
|
|
4382
4395
|
}
|
|
4383
4396
|
}, Ja = {
|
|
4384
4397
|
name: "vue-multiselect",
|
|
4385
|
-
mixins: [
|
|
4398
|
+
mixins: [Zu, qu],
|
|
4386
4399
|
compatConfig: {
|
|
4387
4400
|
MODE: 3,
|
|
4388
4401
|
ATTR_ENUMERATED_COERCION: !1
|
|
@@ -4630,11 +4643,11 @@ var Qu = {
|
|
|
4630
4643
|
}
|
|
4631
4644
|
}
|
|
4632
4645
|
};
|
|
4633
|
-
const
|
|
4646
|
+
const Qu = ["tabindex", "aria-expanded", "aria-owns", "aria-activedescendant"], Ju = {
|
|
4634
4647
|
ref: "tags",
|
|
4635
4648
|
class: "multiselect__tags"
|
|
4636
|
-
},
|
|
4637
|
-
function
|
|
4649
|
+
}, e1 = { class: "multiselect__tags-wrap" }, t1 = ["textContent"], r1 = ["onKeypress", "onMousedown"], n1 = ["textContent"], i1 = { class: "multiselect__spinner" }, a1 = ["name", "id", "spellcheck", "placeholder", "required", "value", "disabled", "tabindex", "aria-label", "aria-controls"], o1 = ["id", "aria-multiselectable"], s1 = { key: 0 }, u1 = { class: "multiselect__option" }, l1 = ["aria-selected", "id", "role"], f1 = ["onClick", "onMouseenter", "data-select", "data-selected", "data-deselect"], c1 = ["data-select", "data-deselect", "onMouseenter", "onMousedown"], d1 = { class: "multiselect__option" }, h1 = { class: "multiselect__option" };
|
|
4650
|
+
function v1(t, e, r, n, i, a) {
|
|
4638
4651
|
return E(), R("div", {
|
|
4639
4652
|
tabindex: t.searchable ? -1 : r.tabindex,
|
|
4640
4653
|
class: Q([{ "multiselect--active": t.isOpen, "multiselect--disabled": r.disabled, "multiselect--above": a.isAbove, "multiselect--has-options-group": a.hasOptionGroup }, "multiselect"]),
|
|
@@ -4666,7 +4679,7 @@ function g1(t, e, r, n, i, a) {
|
|
|
4666
4679
|
W(t.$slots, "clear", { search: t.search }),
|
|
4667
4680
|
L(
|
|
4668
4681
|
"div",
|
|
4669
|
-
|
|
4682
|
+
Ju,
|
|
4670
4683
|
[
|
|
4671
4684
|
W(t.$slots, "selection", {
|
|
4672
4685
|
search: t.search,
|
|
@@ -4676,7 +4689,7 @@ function g1(t, e, r, n, i, a) {
|
|
|
4676
4689
|
}, () => [
|
|
4677
4690
|
Yt(L(
|
|
4678
4691
|
"div",
|
|
4679
|
-
|
|
4692
|
+
e1,
|
|
4680
4693
|
[
|
|
4681
4694
|
(E(!0), R(
|
|
4682
4695
|
Re,
|
|
@@ -4696,14 +4709,14 @@ function g1(t, e, r, n, i, a) {
|
|
|
4696
4709
|
},
|
|
4697
4710
|
[
|
|
4698
4711
|
L("span", {
|
|
4699
|
-
textContent:
|
|
4700
|
-
}, null, 8,
|
|
4712
|
+
textContent: j(t.getOptionLabel(o))
|
|
4713
|
+
}, null, 8, t1),
|
|
4701
4714
|
L("i", {
|
|
4702
4715
|
tabindex: "1",
|
|
4703
4716
|
onKeypress: ot(ye((u) => t.removeElement(o), ["prevent"]), ["enter"]),
|
|
4704
4717
|
onMousedown: ye((u) => t.removeElement(o), ["prevent"]),
|
|
4705
4718
|
class: "multiselect__tag-icon"
|
|
4706
|
-
}, null, 40,
|
|
4719
|
+
}, null, 40, r1)
|
|
4707
4720
|
],
|
|
4708
4721
|
32
|
|
4709
4722
|
/* NEED_HYDRATION */
|
|
@@ -4721,8 +4734,8 @@ function g1(t, e, r, n, i, a) {
|
|
|
4721
4734
|
t.internalValue && t.internalValue.length > r.limit ? W(t.$slots, "limit", { key: 0 }, () => [
|
|
4722
4735
|
L("strong", {
|
|
4723
4736
|
class: "multiselect__strong",
|
|
4724
|
-
textContent:
|
|
4725
|
-
}, null, 8,
|
|
4737
|
+
textContent: j(r.limitText(t.internalValue.length - r.limit))
|
|
4738
|
+
}, null, 8, n1)
|
|
4726
4739
|
]) : B("v-if", !0)
|
|
4727
4740
|
]),
|
|
4728
4741
|
K(Qn, { name: "multiselect__loading" }, {
|
|
@@ -4730,7 +4743,7 @@ function g1(t, e, r, n, i, a) {
|
|
|
4730
4743
|
W(t.$slots, "loading", {}, () => [
|
|
4731
4744
|
Yt(L(
|
|
4732
4745
|
"div",
|
|
4733
|
-
|
|
4746
|
+
i1,
|
|
4734
4747
|
null,
|
|
4735
4748
|
512
|
|
4736
4749
|
/* NEED_PATCH */
|
|
@@ -4769,7 +4782,7 @@ function g1(t, e, r, n, i, a) {
|
|
|
4769
4782
|
onKeypress: e[8] || (e[8] = ot(ye((o) => t.addPointerElement(o), ["prevent", "stop", "self"]), ["enter"])),
|
|
4770
4783
|
class: "multiselect__input",
|
|
4771
4784
|
"aria-controls": "listbox-" + t.id
|
|
4772
|
-
}, null, 44,
|
|
4785
|
+
}, null, 44, a1)) : B("v-if", !0),
|
|
4773
4786
|
a.isSingleLabelVisible ? (E(), R(
|
|
4774
4787
|
"span",
|
|
4775
4788
|
{
|
|
@@ -4780,7 +4793,7 @@ function g1(t, e, r, n, i, a) {
|
|
|
4780
4793
|
[
|
|
4781
4794
|
W(t.$slots, "singleLabel", { option: a.singleValue }, () => [
|
|
4782
4795
|
jt(
|
|
4783
|
-
|
|
4796
|
+
j(t.currentOptionLabel),
|
|
4784
4797
|
1
|
|
4785
4798
|
/* TEXT */
|
|
4786
4799
|
)
|
|
@@ -4799,7 +4812,7 @@ function g1(t, e, r, n, i, a) {
|
|
|
4799
4812
|
[
|
|
4800
4813
|
W(t.$slots, "placeholder", {}, () => [
|
|
4801
4814
|
jt(
|
|
4802
|
-
|
|
4815
|
+
j(t.placeholder),
|
|
4803
4816
|
1
|
|
4804
4817
|
/* TEXT */
|
|
4805
4818
|
)
|
|
@@ -4812,7 +4825,7 @@ function g1(t, e, r, n, i, a) {
|
|
|
4812
4825
|
512
|
|
4813
4826
|
/* NEED_PATCH */
|
|
4814
4827
|
),
|
|
4815
|
-
(E(),
|
|
4828
|
+
(E(), X(Ra, {
|
|
4816
4829
|
to: "body",
|
|
4817
4830
|
disabled: !r.useTeleport
|
|
4818
4831
|
}, [
|
|
@@ -4839,11 +4852,11 @@ function g1(t, e, r, n, i, a) {
|
|
|
4839
4852
|
"aria-multiselectable": t.multiple
|
|
4840
4853
|
}, [
|
|
4841
4854
|
W(t.$slots, "beforeList"),
|
|
4842
|
-
t.multiple && t.max === t.internalValue.length ? (E(), R("li",
|
|
4843
|
-
L("span",
|
|
4855
|
+
t.multiple && t.max === t.internalValue.length ? (E(), R("li", s1, [
|
|
4856
|
+
L("span", u1, [
|
|
4844
4857
|
W(t.$slots, "maxElements", {}, () => [
|
|
4845
4858
|
jt(
|
|
4846
|
-
"Maximum of " +
|
|
4859
|
+
"Maximum of " + j(t.max) + " options selected. First remove a selected option to select another.",
|
|
4847
4860
|
1
|
|
4848
4861
|
/* TEXT */
|
|
4849
4862
|
)
|
|
@@ -4877,12 +4890,12 @@ function g1(t, e, r, n, i, a) {
|
|
|
4877
4890
|
L(
|
|
4878
4891
|
"span",
|
|
4879
4892
|
null,
|
|
4880
|
-
|
|
4893
|
+
j(t.getOptionLabel(o)),
|
|
4881
4894
|
1
|
|
4882
4895
|
/* TEXT */
|
|
4883
4896
|
)
|
|
4884
4897
|
])
|
|
4885
|
-
], 42,
|
|
4898
|
+
], 42, f1)),
|
|
4886
4899
|
o && (o.$isLabel || o.$isDisabled) ? (E(), R("span", {
|
|
4887
4900
|
key: 1,
|
|
4888
4901
|
"data-select": t.groupSelect && a.selectGroupLabelText,
|
|
@@ -4899,13 +4912,13 @@ function g1(t, e, r, n, i, a) {
|
|
|
4899
4912
|
L(
|
|
4900
4913
|
"span",
|
|
4901
4914
|
null,
|
|
4902
|
-
|
|
4915
|
+
j(t.getOptionLabel(o)),
|
|
4903
4916
|
1
|
|
4904
4917
|
/* TEXT */
|
|
4905
4918
|
)
|
|
4906
4919
|
])
|
|
4907
|
-
], 42,
|
|
4908
|
-
], 8,
|
|
4920
|
+
], 42, c1)) : B("v-if", !0)
|
|
4921
|
+
], 8, l1))),
|
|
4909
4922
|
128
|
|
4910
4923
|
/* KEYED_FRAGMENT */
|
|
4911
4924
|
)) : B("v-if", !0),
|
|
@@ -4913,7 +4926,7 @@ function g1(t, e, r, n, i, a) {
|
|
|
4913
4926
|
"li",
|
|
4914
4927
|
null,
|
|
4915
4928
|
[
|
|
4916
|
-
L("span",
|
|
4929
|
+
L("span", d1, [
|
|
4917
4930
|
W(t.$slots, "noResult", { search: t.search }, () => [
|
|
4918
4931
|
e[20] || (e[20] = jt("No elements found. Consider changing the search query."))
|
|
4919
4932
|
])
|
|
@@ -4928,7 +4941,7 @@ function g1(t, e, r, n, i, a) {
|
|
|
4928
4941
|
"li",
|
|
4929
4942
|
null,
|
|
4930
4943
|
[
|
|
4931
|
-
L("span",
|
|
4944
|
+
L("span", h1, [
|
|
4932
4945
|
W(t.$slots, "noOptions", {}, () => [
|
|
4933
4946
|
e[21] || (e[21] = jt("List is empty."))
|
|
4934
4947
|
])
|
|
@@ -4940,7 +4953,7 @@ function g1(t, e, r, n, i, a) {
|
|
|
4940
4953
|
[Ar, r.showNoOptions && (t.options.length === 0 || a.hasOptionGroup === !0 && t.filteredOptions.length === 0) && !t.search && !r.loading]
|
|
4941
4954
|
]),
|
|
4942
4955
|
W(t.$slots, "afterList")
|
|
4943
|
-
], 12,
|
|
4956
|
+
], 12, o1)
|
|
4944
4957
|
],
|
|
4945
4958
|
36
|
|
4946
4959
|
/* STYLE, NEED_HYDRATION */
|
|
@@ -4950,13 +4963,13 @@ function g1(t, e, r, n, i, a) {
|
|
|
4950
4963
|
/* FORWARDED */
|
|
4951
4964
|
})
|
|
4952
4965
|
], 8, ["disabled"]))
|
|
4953
|
-
], 42,
|
|
4966
|
+
], 42, Qu);
|
|
4954
4967
|
}
|
|
4955
|
-
Ja.render =
|
|
4956
|
-
const
|
|
4968
|
+
Ja.render = v1;
|
|
4969
|
+
const p1 = { class: "dsg-input--label-wrapper block" }, g1 = ["onMousedown"], x1 = { class: "option-label" }, y1 = {
|
|
4957
4970
|
key: 0,
|
|
4958
4971
|
class: "dsg-input-select--error-wrapper"
|
|
4959
|
-
},
|
|
4972
|
+
}, w1 = /* @__PURE__ */ pe({
|
|
4960
4973
|
__name: "DsgInputSelect",
|
|
4961
4974
|
props: /* @__PURE__ */ dn({
|
|
4962
4975
|
options: { default: () => [] },
|
|
@@ -4990,8 +5003,8 @@ const x1 = { class: "dsg-input--label-wrapper block" }, y1 = ["onMousedown"], w1
|
|
|
4990
5003
|
emits: /* @__PURE__ */ dn(["update:modelValue", "update:model-value", "search-change", "select", "open", "close", "remove", "tag"], ["update:modelValue", "update:single"]),
|
|
4991
5004
|
setup(t, { emit: e }) {
|
|
4992
5005
|
const r = hn(t, "modelValue"), n = hn(t, "single"), i = ie(t.options), a = wt("multiselectEl"), o = ie(!1), s = ie([]);
|
|
4993
|
-
|
|
4994
|
-
const u =
|
|
5006
|
+
_e(() => s.value.length > 0);
|
|
5007
|
+
const u = _e(() => [...Array.isArray(t.errors) ? t.errors : [t.errors], ...s.value].filter((b, C, O) => C === O.indexOf(b))), l = _e(
|
|
4995
5008
|
() => [
|
|
4996
5009
|
"dsg-input-select",
|
|
4997
5010
|
`dsg-input-select--${t.size}`,
|
|
@@ -5093,8 +5106,8 @@ const x1 = { class: "dsg-input--label-wrapper block" }, y1 = ["onMousedown"], w1
|
|
|
5093
5106
|
class: Q(l.value),
|
|
5094
5107
|
ref: "dsgInputSelectEl"
|
|
5095
5108
|
}, [
|
|
5096
|
-
L("div",
|
|
5097
|
-
x.label ? (E(),
|
|
5109
|
+
L("div", p1, [
|
|
5110
|
+
x.label ? (E(), X(Pa, {
|
|
5098
5111
|
key: 0,
|
|
5099
5112
|
label: x.label,
|
|
5100
5113
|
size: "sm"
|
|
@@ -5130,7 +5143,7 @@ const x1 = { class: "dsg-input--label-wrapper block" }, y1 = ["onMousedown"], w1
|
|
|
5130
5143
|
}]
|
|
5131
5144
|
}, x.$attrs), {
|
|
5132
5145
|
selection: ht(() => [
|
|
5133
|
-
x.icon ? (E(),
|
|
5146
|
+
x.icon ? (E(), X(we, {
|
|
5134
5147
|
key: 0,
|
|
5135
5148
|
icon: x.icon,
|
|
5136
5149
|
size: "md",
|
|
@@ -5142,12 +5155,12 @@ const x1 = { class: "dsg-input--label-wrapper block" }, y1 = ["onMousedown"], w1
|
|
|
5142
5155
|
onMousedown: ye((O) => C(), ["prevent", "stop"]),
|
|
5143
5156
|
class: "multiselect__select"
|
|
5144
5157
|
}, [
|
|
5145
|
-
K(
|
|
5146
|
-
], 40,
|
|
5158
|
+
K(we, { icon: "chevron-down" })
|
|
5159
|
+
], 40, g1)
|
|
5147
5160
|
]),
|
|
5148
5161
|
option: ht(({ option: C }) => [
|
|
5149
|
-
L("span",
|
|
5150
|
-
K(
|
|
5162
|
+
L("span", x1, j(C[x.itemLabel]), 1),
|
|
5163
|
+
K(we, {
|
|
5151
5164
|
icon: "check",
|
|
5152
5165
|
size: "sm",
|
|
5153
5166
|
class: "option-icon text-brand-600"
|
|
@@ -5155,15 +5168,15 @@ const x1 = { class: "dsg-input--label-wrapper block" }, y1 = ["onMousedown"], w1
|
|
|
5155
5168
|
]),
|
|
5156
5169
|
_: 1
|
|
5157
5170
|
}, 16, ["modelValue", "options", "multiple", "onSearchChange", "placeholder", "label", "track-by", "close-on-select", "show-labels", "disabled", "allow-empty", "select-label", "selected-label", "class"]),
|
|
5158
|
-
u.value && u.value.length ? (E(), R("div",
|
|
5171
|
+
u.value && u.value.length ? (E(), R("div", y1, [
|
|
5159
5172
|
(E(!0), R(Re, null, Ke(u.value, (C, O) => (E(), R("span", {
|
|
5160
5173
|
class: "dsg-input--error",
|
|
5161
5174
|
key: O
|
|
5162
|
-
},
|
|
5175
|
+
}, j(C), 1))), 128))
|
|
5163
5176
|
])) : B("", !0)
|
|
5164
5177
|
], 2));
|
|
5165
5178
|
}
|
|
5166
|
-
}),
|
|
5179
|
+
}), m1 = ["name"], _1 = ["selected"], A1 = ["value", "selected"], E1 = /* @__PURE__ */ pe({
|
|
5167
5180
|
__name: "DsgInputDropdown",
|
|
5168
5181
|
props: /* @__PURE__ */ dn({
|
|
5169
5182
|
name: { default: "" },
|
|
@@ -5187,20 +5200,20 @@ const x1 = { class: "dsg-input--label-wrapper block" }, y1 = ["onMousedown"], w1
|
|
|
5187
5200
|
value: "",
|
|
5188
5201
|
disabled: "",
|
|
5189
5202
|
selected: e.value === ""
|
|
5190
|
-
},
|
|
5203
|
+
}, j(r.placeholder), 9, _1)) : B("", !0),
|
|
5191
5204
|
(E(!0), R(Re, null, Ke(r.options, (i, a) => (E(), R("option", {
|
|
5192
5205
|
key: a,
|
|
5193
5206
|
value: i.value,
|
|
5194
5207
|
selected: e.value === i.value
|
|
5195
|
-
},
|
|
5196
|
-
], 10,
|
|
5208
|
+
}, j(i.label), 9, A1))), 128))
|
|
5209
|
+
], 10, m1)), [
|
|
5197
5210
|
[So, e.value]
|
|
5198
5211
|
]);
|
|
5199
5212
|
}
|
|
5200
|
-
}),
|
|
5213
|
+
}), b1 = ["href", "title", "target"], C1 = {
|
|
5201
5214
|
key: 0,
|
|
5202
5215
|
class: "dsg-link--label"
|
|
5203
|
-
},
|
|
5216
|
+
}, S1 = /* @__PURE__ */ pe({
|
|
5204
5217
|
__name: "DsgLink",
|
|
5205
5218
|
props: {
|
|
5206
5219
|
label: { default: "Link" },
|
|
@@ -5227,20 +5240,20 @@ const x1 = { class: "dsg-input--label-wrapper block" }, y1 = ["onMousedown"], w1
|
|
|
5227
5240
|
onClick: i
|
|
5228
5241
|
}, [
|
|
5229
5242
|
W(a.$slots, "dsg-link-content", {}, () => [
|
|
5230
|
-
a.label ? (E(), R("span",
|
|
5243
|
+
a.label ? (E(), R("span", C1, j(a.label), 1)) : B("", !0)
|
|
5231
5244
|
])
|
|
5232
|
-
], 10,
|
|
5245
|
+
], 10, b1));
|
|
5233
5246
|
}
|
|
5234
|
-
}),
|
|
5247
|
+
}), I1 = {
|
|
5235
5248
|
key: 1,
|
|
5236
5249
|
class: "dsg-modal__header-text"
|
|
5237
|
-
},
|
|
5250
|
+
}, O1 = {
|
|
5238
5251
|
key: 0,
|
|
5239
5252
|
class: "dsg-modal__header-title"
|
|
5240
|
-
},
|
|
5253
|
+
}, T1 = {
|
|
5241
5254
|
key: 1,
|
|
5242
5255
|
class: "dsg-modal__header-description"
|
|
5243
|
-
},
|
|
5256
|
+
}, D1 = {
|
|
5244
5257
|
key: 1,
|
|
5245
5258
|
class: "dsg-modal__body"
|
|
5246
5259
|
}, eo = /* @__PURE__ */ pe({
|
|
@@ -5285,7 +5298,7 @@ const x1 = { class: "dsg-input--label-wrapper block" }, y1 = ["onMousedown"], w1
|
|
|
5285
5298
|
class: Q(["dsg-modal__wrapper", f.wrapperClasses]),
|
|
5286
5299
|
style: Qt({ width: f.width })
|
|
5287
5300
|
}, [
|
|
5288
|
-
f.hasClosedButton ? (E(),
|
|
5301
|
+
f.hasClosedButton ? (E(), X(Nt, {
|
|
5289
5302
|
key: 0,
|
|
5290
5303
|
theme: "gray-tertiary",
|
|
5291
5304
|
iconBefore: "x",
|
|
@@ -5297,25 +5310,25 @@ const x1 = { class: "dsg-input--label-wrapper block" }, y1 = ["onMousedown"], w1
|
|
|
5297
5310
|
L("div", {
|
|
5298
5311
|
class: Q(["dsg-modal__header", [`dsg-modal__header--${f.type}`, `${f.$slots.default ? "dsg-modal__header--with-body" : ""}`].join(" ")])
|
|
5299
5312
|
}, [
|
|
5300
|
-
f.miscIcon ? (E(),
|
|
5301
|
-
f.title || f.description ? (E(), R("div",
|
|
5302
|
-
f.title ? (E(), R("h3",
|
|
5303
|
-
f.description ? (E(), R("p",
|
|
5313
|
+
f.miscIcon ? (E(), X(Kt, Ta(ke({ key: 0 }, f.miscIcon)), null, 16)) : B("", !0),
|
|
5314
|
+
f.title || f.description ? (E(), R("div", I1, [
|
|
5315
|
+
f.title ? (E(), R("h3", O1, j(f.title), 1)) : B("", !0),
|
|
5316
|
+
f.description ? (E(), R("p", T1, j(f.description), 1)) : B("", !0)
|
|
5304
5317
|
])) : B("", !0)
|
|
5305
5318
|
], 2)
|
|
5306
5319
|
]),
|
|
5307
|
-
f.$slots.default ? (E(), R("div",
|
|
5320
|
+
f.$slots.default ? (E(), R("div", D1, [
|
|
5308
5321
|
W(f.$slots, "default")
|
|
5309
5322
|
])) : B("", !0),
|
|
5310
5323
|
W(f.$slots, "dsg-modal__footer", {}, () => [
|
|
5311
5324
|
L("div", {
|
|
5312
5325
|
class: Q(["dsg-modal__footer", `dsg-modal__footer--${f.footerType}`])
|
|
5313
5326
|
}, [
|
|
5314
|
-
f.secondaryButton ? (E(),
|
|
5327
|
+
f.secondaryButton ? (E(), X(Nt, ke({ key: 0 }, f.secondaryButton, {
|
|
5315
5328
|
onButtonClicked: u,
|
|
5316
5329
|
classes: "dsg-modal__secondary-button"
|
|
5317
5330
|
}), null, 16)) : B("", !0),
|
|
5318
|
-
f.primaryButton ? (E(),
|
|
5331
|
+
f.primaryButton ? (E(), X(Nt, ke({ key: 1 }, f.primaryButton, {
|
|
5319
5332
|
onButtonClicked: l,
|
|
5320
5333
|
classes: "dsg-dsg-modal__primary-button"
|
|
5321
5334
|
}), null, 16)) : B("", !0)
|
|
@@ -5324,10 +5337,10 @@ const x1 = { class: "dsg-input--label-wrapper block" }, y1 = ["onMousedown"], w1
|
|
|
5324
5337
|
], 6)
|
|
5325
5338
|
], 2));
|
|
5326
5339
|
}
|
|
5327
|
-
}),
|
|
5340
|
+
}), N1 = { class: "dsg-tag--before" }, R1 = { class: "dsg-tag--label" }, P1 = { class: "dsg-tag--after" }, B1 = {
|
|
5328
5341
|
key: 0,
|
|
5329
5342
|
class: "dsg-tag--count"
|
|
5330
|
-
},
|
|
5343
|
+
}, M1 = /* @__PURE__ */ pe({
|
|
5331
5344
|
__name: "DsgTag",
|
|
5332
5345
|
props: {
|
|
5333
5346
|
label: { default: "" },
|
|
@@ -5372,8 +5385,8 @@ const x1 = { class: "dsg-input--label-wrapper block" }, y1 = ["onMousedown"], w1
|
|
|
5372
5385
|
class: Q(Ye(n)),
|
|
5373
5386
|
ref: "dsgTag"
|
|
5374
5387
|
}, [
|
|
5375
|
-
L("div",
|
|
5376
|
-
p.hasCheckbox ? (E(),
|
|
5388
|
+
L("div", N1, [
|
|
5389
|
+
p.hasCheckbox ? (E(), X(cn, {
|
|
5377
5390
|
key: 0,
|
|
5378
5391
|
class: "dsg-tag--checkbox",
|
|
5379
5392
|
size: i(),
|
|
@@ -5381,7 +5394,7 @@ const x1 = { class: "dsg-input--label-wrapper block" }, y1 = ["onMousedown"], w1
|
|
|
5381
5394
|
onBeforeChecked: u,
|
|
5382
5395
|
onAfterChecked: l
|
|
5383
5396
|
}, null, 8, ["size"])) : B("", !0),
|
|
5384
|
-
p.avatarUri ? (E(),
|
|
5397
|
+
p.avatarUri ? (E(), X(Mr, {
|
|
5385
5398
|
key: 1,
|
|
5386
5399
|
"profile-uri": p.avatarUri,
|
|
5387
5400
|
size: "xxs",
|
|
@@ -5395,11 +5408,11 @@ const x1 = { class: "dsg-input--label-wrapper block" }, y1 = ["onMousedown"], w1
|
|
|
5395
5408
|
}, null, 4)) : B("", !0)
|
|
5396
5409
|
]),
|
|
5397
5410
|
W(p.$slots, "dsg-tag--label", {}, () => [
|
|
5398
|
-
L("span",
|
|
5411
|
+
L("span", R1, j(p.label), 1)
|
|
5399
5412
|
]),
|
|
5400
|
-
L("div",
|
|
5401
|
-
f.value && f.value > 0 ? (E(), R("div",
|
|
5402
|
-
p.hasClose ? (E(),
|
|
5413
|
+
L("div", P1, [
|
|
5414
|
+
f.value && f.value > 0 ? (E(), R("div", B1, j(f.value), 1)) : B("", !0),
|
|
5415
|
+
p.hasClose ? (E(), X(we, {
|
|
5403
5416
|
key: 1,
|
|
5404
5417
|
icon: "x-close",
|
|
5405
5418
|
class: "dsg-tag--close",
|
|
@@ -5408,10 +5421,10 @@ const x1 = { class: "dsg-input--label-wrapper block" }, y1 = ["onMousedown"], w1
|
|
|
5408
5421
|
])
|
|
5409
5422
|
], 2));
|
|
5410
5423
|
}
|
|
5411
|
-
}),
|
|
5424
|
+
}), L1 = { class: "dsg-toggle--element" }, k1 = ["checked", "disabled"], F1 = {
|
|
5412
5425
|
key: 0,
|
|
5413
5426
|
class: "dsg-toggle--label-wrapper"
|
|
5414
|
-
},
|
|
5427
|
+
}, U1 = ["innerHTML"], V1 = ["innerHTML"], $1 = /* @__PURE__ */ pe({
|
|
5415
5428
|
__name: "DsgToggle",
|
|
5416
5429
|
props: {
|
|
5417
5430
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -5443,7 +5456,7 @@ const x1 = { class: "dsg-input--label-wrapper block" }, y1 = ["onMousedown"], w1
|
|
|
5443
5456
|
class: Q(Ye(n)),
|
|
5444
5457
|
onClick: s
|
|
5445
5458
|
}, [
|
|
5446
|
-
L("label",
|
|
5459
|
+
L("label", L1, [
|
|
5447
5460
|
L("input", {
|
|
5448
5461
|
type: "checkbox",
|
|
5449
5462
|
class: "dsg-toggle--checkbox",
|
|
@@ -5452,29 +5465,29 @@ const x1 = { class: "dsg-input--label-wrapper block" }, y1 = ["onMousedown"], w1
|
|
|
5452
5465
|
title: "checkbox",
|
|
5453
5466
|
ref: "toggleCheckbox",
|
|
5454
5467
|
disabled: f.disabled
|
|
5455
|
-
}, null, 40,
|
|
5468
|
+
}, null, 40, k1),
|
|
5456
5469
|
c[0] || (c[0] = L("span", { class: "dsg-toggle--slider" }, null, -1))
|
|
5457
5470
|
]),
|
|
5458
|
-
f.label.length ? (E(), R("div",
|
|
5471
|
+
f.label.length ? (E(), R("div", F1, [
|
|
5459
5472
|
W(f.$slots, "dsg-toggle--label", {}, () => [
|
|
5460
5473
|
L("h3", {
|
|
5461
5474
|
class: "dsg-toggle--label",
|
|
5462
5475
|
innerHTML: f.label
|
|
5463
|
-
}, null, 8,
|
|
5476
|
+
}, null, 8, U1)
|
|
5464
5477
|
]),
|
|
5465
5478
|
f.label.length && f.subText.length ? W(f.$slots, "dsg-toggle--subtext", { key: 0 }, () => [
|
|
5466
5479
|
L("p", {
|
|
5467
5480
|
class: "dsg-toggle--subtext",
|
|
5468
5481
|
innerHTML: f.subText
|
|
5469
|
-
}, null, 8,
|
|
5482
|
+
}, null, 8, V1)
|
|
5470
5483
|
]) : B("", !0)
|
|
5471
5484
|
])) : B("", !0)
|
|
5472
5485
|
], 2));
|
|
5473
5486
|
}
|
|
5474
|
-
}),
|
|
5487
|
+
}), H1 = { class: "dsg-progress" }, G1 = { class: "dsg-progress--inner" }, z1 = {
|
|
5475
5488
|
key: 0,
|
|
5476
5489
|
class: "text-sm text-gray-700 min-w-[60px] text-right"
|
|
5477
|
-
},
|
|
5490
|
+
}, W1 = { key: 0 }, X1 = { key: 1 }, j1 = { key: 2 }, Y1 = /* @__PURE__ */ pe({
|
|
5478
5491
|
__name: "DsgProgress",
|
|
5479
5492
|
props: {
|
|
5480
5493
|
value: {},
|
|
@@ -5483,34 +5496,34 @@ const x1 = { class: "dsg-input--label-wrapper block" }, y1 = ["onMousedown"], w1
|
|
|
5483
5496
|
textSuffix: {}
|
|
5484
5497
|
},
|
|
5485
5498
|
setup(t) {
|
|
5486
|
-
const e = t, r =
|
|
5499
|
+
const e = t, r = _e(() => {
|
|
5487
5500
|
const n = e.value / e.max * 100;
|
|
5488
5501
|
return isNaN(n) ? 0 : Math.min(Math.max(n, 0), 100);
|
|
5489
5502
|
});
|
|
5490
|
-
return (n, i) => (E(), R("div",
|
|
5491
|
-
L("div",
|
|
5503
|
+
return (n, i) => (E(), R("div", H1, [
|
|
5504
|
+
L("div", G1, [
|
|
5492
5505
|
L("div", {
|
|
5493
5506
|
class: "dsg-progress--inner--progress",
|
|
5494
5507
|
style: Qt({ width: r.value + "%" })
|
|
5495
5508
|
}, null, 4)
|
|
5496
5509
|
]),
|
|
5497
|
-
n.showText !== "none" ? (E(), R("div",
|
|
5498
|
-
n.showText === "number" ? (E(), R("span",
|
|
5499
|
-
n.textSuffix ? (E(), R("span",
|
|
5510
|
+
n.showText !== "none" ? (E(), R("div", z1, [
|
|
5511
|
+
n.showText === "number" ? (E(), R("span", W1, j(n.value) + "/" + j(n.max), 1)) : n.showText === "percentage" ? (E(), R("span", X1, j(r.value.toFixed(2)) + "%", 1)) : B("", !0),
|
|
5512
|
+
n.textSuffix ? (E(), R("span", j1, " " + j(n.textSuffix), 1)) : B("", !0)
|
|
5500
5513
|
])) : B("", !0)
|
|
5501
5514
|
]));
|
|
5502
5515
|
}
|
|
5503
5516
|
});
|
|
5504
|
-
function
|
|
5517
|
+
function K1(t, e) {
|
|
5505
5518
|
var r = Object.setPrototypeOf;
|
|
5506
5519
|
r ? r(t, e) : t.__proto__ = e;
|
|
5507
5520
|
}
|
|
5508
|
-
function
|
|
5521
|
+
function Z1(t, e) {
|
|
5509
5522
|
e === void 0 && (e = t.constructor);
|
|
5510
5523
|
var r = Error.captureStackTrace;
|
|
5511
5524
|
r && r(t, e);
|
|
5512
5525
|
}
|
|
5513
|
-
var
|
|
5526
|
+
var q1 = /* @__PURE__ */ function() {
|
|
5514
5527
|
var t = function(r, n) {
|
|
5515
5528
|
return t = Object.setPrototypeOf || {
|
|
5516
5529
|
__proto__: []
|
|
@@ -5529,18 +5542,18 @@ var J1 = /* @__PURE__ */ function() {
|
|
|
5529
5542
|
}
|
|
5530
5543
|
e.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
|
|
5531
5544
|
};
|
|
5532
|
-
}(),
|
|
5533
|
-
|
|
5545
|
+
}(), Q1 = function(t) {
|
|
5546
|
+
q1(e, t);
|
|
5534
5547
|
function e(r, n) {
|
|
5535
5548
|
var i = this.constructor, a = t.call(this, r, n) || this;
|
|
5536
5549
|
return Object.defineProperty(a, "name", {
|
|
5537
5550
|
value: i.name,
|
|
5538
5551
|
enumerable: !1,
|
|
5539
5552
|
configurable: !0
|
|
5540
|
-
}),
|
|
5553
|
+
}), K1(a, i.prototype), Z1(a), a;
|
|
5541
5554
|
}
|
|
5542
5555
|
return e;
|
|
5543
|
-
}(Error),
|
|
5556
|
+
}(Error), J1 = /* @__PURE__ */ function() {
|
|
5544
5557
|
var t = function(e, r) {
|
|
5545
5558
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
5546
5559
|
n.__proto__ = i;
|
|
@@ -5558,7 +5571,7 @@ var J1 = /* @__PURE__ */ function() {
|
|
|
5558
5571
|
}(), Ue = (
|
|
5559
5572
|
/** @class */
|
|
5560
5573
|
function(t) {
|
|
5561
|
-
|
|
5574
|
+
J1(e, t);
|
|
5562
5575
|
function e(r) {
|
|
5563
5576
|
r === void 0 && (r = void 0);
|
|
5564
5577
|
var n = t.call(this, r) || this;
|
|
@@ -5568,8 +5581,8 @@ var J1 = /* @__PURE__ */ function() {
|
|
|
5568
5581
|
var r = this.constructor;
|
|
5569
5582
|
return r.kind;
|
|
5570
5583
|
}, e.kind = "Exception", e;
|
|
5571
|
-
}(
|
|
5572
|
-
),
|
|
5584
|
+
}(Q1)
|
|
5585
|
+
), el = /* @__PURE__ */ function() {
|
|
5573
5586
|
var t = function(e, r) {
|
|
5574
5587
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
5575
5588
|
n.__proto__ = i;
|
|
@@ -5587,13 +5600,13 @@ var J1 = /* @__PURE__ */ function() {
|
|
|
5587
5600
|
}(), et = (
|
|
5588
5601
|
/** @class */
|
|
5589
5602
|
function(t) {
|
|
5590
|
-
|
|
5603
|
+
el(e, t);
|
|
5591
5604
|
function e() {
|
|
5592
5605
|
return t !== null && t.apply(this, arguments) || this;
|
|
5593
5606
|
}
|
|
5594
5607
|
return e.kind = "ArgumentException", e;
|
|
5595
5608
|
}(Ue)
|
|
5596
|
-
),
|
|
5609
|
+
), tl = /* @__PURE__ */ function() {
|
|
5597
5610
|
var t = function(e, r) {
|
|
5598
5611
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
5599
5612
|
n.__proto__ = i;
|
|
@@ -5611,13 +5624,13 @@ var J1 = /* @__PURE__ */ function() {
|
|
|
5611
5624
|
}(), V = (
|
|
5612
5625
|
/** @class */
|
|
5613
5626
|
function(t) {
|
|
5614
|
-
|
|
5627
|
+
tl(e, t);
|
|
5615
5628
|
function e() {
|
|
5616
5629
|
return t !== null && t.apply(this, arguments) || this;
|
|
5617
5630
|
}
|
|
5618
5631
|
return e.kind = "IllegalArgumentException", e;
|
|
5619
5632
|
}(Ue)
|
|
5620
|
-
),
|
|
5633
|
+
), rl = (
|
|
5621
5634
|
/** @class */
|
|
5622
5635
|
function() {
|
|
5623
5636
|
function t(e) {
|
|
@@ -5653,7 +5666,7 @@ var J1 = /* @__PURE__ */ function() {
|
|
|
5653
5666
|
}
|
|
5654
5667
|
}, t;
|
|
5655
5668
|
}()
|
|
5656
|
-
),
|
|
5669
|
+
), nl = /* @__PURE__ */ function() {
|
|
5657
5670
|
var t = function(e, r) {
|
|
5658
5671
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
5659
5672
|
n.__proto__ = i;
|
|
@@ -5671,7 +5684,7 @@ var J1 = /* @__PURE__ */ function() {
|
|
|
5671
5684
|
}(), Ne = (
|
|
5672
5685
|
/** @class */
|
|
5673
5686
|
function(t) {
|
|
5674
|
-
|
|
5687
|
+
nl(e, t);
|
|
5675
5688
|
function e() {
|
|
5676
5689
|
return t !== null && t.apply(this, arguments) || this;
|
|
5677
5690
|
}
|
|
@@ -5679,7 +5692,7 @@ var J1 = /* @__PURE__ */ function() {
|
|
|
5679
5692
|
return new e();
|
|
5680
5693
|
}, e.kind = "ChecksumException", e;
|
|
5681
5694
|
}(Ue)
|
|
5682
|
-
),
|
|
5695
|
+
), il = (
|
|
5683
5696
|
/** @class */
|
|
5684
5697
|
function() {
|
|
5685
5698
|
function t(e) {
|
|
@@ -5705,7 +5718,7 @@ var J1 = /* @__PURE__ */ function() {
|
|
|
5705
5718
|
return Date.now();
|
|
5706
5719
|
}, t;
|
|
5707
5720
|
}()
|
|
5708
|
-
),
|
|
5721
|
+
), al = /* @__PURE__ */ function() {
|
|
5709
5722
|
var t = function(e, r) {
|
|
5710
5723
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
5711
5724
|
n.__proto__ = i;
|
|
@@ -5723,13 +5736,13 @@ var J1 = /* @__PURE__ */ function() {
|
|
|
5723
5736
|
}(), Ii = (
|
|
5724
5737
|
/** @class */
|
|
5725
5738
|
function(t) {
|
|
5726
|
-
|
|
5739
|
+
al(e, t);
|
|
5727
5740
|
function e() {
|
|
5728
5741
|
return t !== null && t.apply(this, arguments) || this;
|
|
5729
5742
|
}
|
|
5730
5743
|
return e.kind = "IndexOutOfBoundsException", e;
|
|
5731
5744
|
}(Ue)
|
|
5732
|
-
),
|
|
5745
|
+
), ol = /* @__PURE__ */ function() {
|
|
5733
5746
|
var t = function(e, r) {
|
|
5734
5747
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
5735
5748
|
n.__proto__ = i;
|
|
@@ -5747,7 +5760,7 @@ var J1 = /* @__PURE__ */ function() {
|
|
|
5747
5760
|
}(), ta = (
|
|
5748
5761
|
/** @class */
|
|
5749
5762
|
function(t) {
|
|
5750
|
-
|
|
5763
|
+
ol(e, t);
|
|
5751
5764
|
function e(r, n) {
|
|
5752
5765
|
r === void 0 && (r = void 0), n === void 0 && (n = void 0);
|
|
5753
5766
|
var i = t.call(this, n) || this;
|
|
@@ -5755,7 +5768,7 @@ var J1 = /* @__PURE__ */ function() {
|
|
|
5755
5768
|
}
|
|
5756
5769
|
return e.kind = "ArrayIndexOutOfBoundsException", e;
|
|
5757
5770
|
}(Ii)
|
|
5758
|
-
),
|
|
5771
|
+
), sl = function(t) {
|
|
5759
5772
|
var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0;
|
|
5760
5773
|
if (r) return r.call(t);
|
|
5761
5774
|
if (t && typeof t.length == "number") return {
|
|
@@ -5810,7 +5823,7 @@ var J1 = /* @__PURE__ */ function() {
|
|
|
5810
5823
|
return 0;
|
|
5811
5824
|
var i = 1;
|
|
5812
5825
|
try {
|
|
5813
|
-
for (var a =
|
|
5826
|
+
for (var a = sl(e), o = a.next(); !o.done; o = a.next()) {
|
|
5814
5827
|
var s = o.value;
|
|
5815
5828
|
i = 31 * i + s;
|
|
5816
5829
|
}
|
|
@@ -6019,7 +6032,7 @@ var J1 = /* @__PURE__ */ function() {
|
|
|
6019
6032
|
t[t.OTHER = 0] = "OTHER", t[t.PURE_BARCODE = 1] = "PURE_BARCODE", t[t.POSSIBLE_FORMATS = 2] = "POSSIBLE_FORMATS", t[t.TRY_HARDER = 3] = "TRY_HARDER", t[t.CHARACTER_SET = 4] = "CHARACTER_SET", t[t.ALLOWED_LENGTHS = 5] = "ALLOWED_LENGTHS", t[t.ASSUME_CODE_39_CHECK_DIGIT = 6] = "ASSUME_CODE_39_CHECK_DIGIT", t[t.ASSUME_GS1 = 7] = "ASSUME_GS1", t[t.RETURN_CODABAR_START_END = 8] = "RETURN_CODABAR_START_END", t[t.NEED_RESULT_POINT_CALLBACK = 9] = "NEED_RESULT_POINT_CALLBACK", t[t.ALLOWED_EAN_EXTENSIONS = 10] = "ALLOWED_EAN_EXTENSIONS";
|
|
6020
6033
|
})(ui || (ui = {}));
|
|
6021
6034
|
const xe = ui;
|
|
6022
|
-
var
|
|
6035
|
+
var ul = /* @__PURE__ */ function() {
|
|
6023
6036
|
var t = function(e, r) {
|
|
6024
6037
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
6025
6038
|
n.__proto__ = i;
|
|
@@ -6037,7 +6050,7 @@ var fl = /* @__PURE__ */ function() {
|
|
|
6037
6050
|
}(), M = (
|
|
6038
6051
|
/** @class */
|
|
6039
6052
|
function(t) {
|
|
6040
|
-
|
|
6053
|
+
ul(e, t);
|
|
6041
6054
|
function e() {
|
|
6042
6055
|
return t !== null && t.apply(this, arguments) || this;
|
|
6043
6056
|
}
|
|
@@ -6045,7 +6058,7 @@ var fl = /* @__PURE__ */ function() {
|
|
|
6045
6058
|
return new e();
|
|
6046
6059
|
}, e.kind = "FormatException", e;
|
|
6047
6060
|
}(Ue)
|
|
6048
|
-
),
|
|
6061
|
+
), ll = function(t) {
|
|
6049
6062
|
var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0;
|
|
6050
6063
|
if (r) return r.call(t);
|
|
6051
6064
|
if (t && typeof t.length == "number") return {
|
|
@@ -6058,7 +6071,7 @@ var fl = /* @__PURE__ */ function() {
|
|
|
6058
6071
|
(function(t) {
|
|
6059
6072
|
t[t.Cp437 = 0] = "Cp437", t[t.ISO8859_1 = 1] = "ISO8859_1", t[t.ISO8859_2 = 2] = "ISO8859_2", t[t.ISO8859_3 = 3] = "ISO8859_3", t[t.ISO8859_4 = 4] = "ISO8859_4", t[t.ISO8859_5 = 5] = "ISO8859_5", t[t.ISO8859_6 = 6] = "ISO8859_6", t[t.ISO8859_7 = 7] = "ISO8859_7", t[t.ISO8859_8 = 8] = "ISO8859_8", t[t.ISO8859_9 = 9] = "ISO8859_9", t[t.ISO8859_10 = 10] = "ISO8859_10", t[t.ISO8859_11 = 11] = "ISO8859_11", t[t.ISO8859_13 = 12] = "ISO8859_13", t[t.ISO8859_14 = 13] = "ISO8859_14", t[t.ISO8859_15 = 14] = "ISO8859_15", t[t.ISO8859_16 = 15] = "ISO8859_16", t[t.SJIS = 16] = "SJIS", t[t.Cp1250 = 17] = "Cp1250", t[t.Cp1251 = 18] = "Cp1251", t[t.Cp1252 = 19] = "Cp1252", t[t.Cp1256 = 20] = "Cp1256", t[t.UnicodeBigUnmarked = 21] = "UnicodeBigUnmarked", t[t.UTF8 = 22] = "UTF8", t[t.ASCII = 23] = "ASCII", t[t.Big5 = 24] = "Big5", t[t.GB18030 = 25] = "GB18030", t[t.EUC_KR = 26] = "EUC_KR";
|
|
6060
6073
|
})(ne || (ne = {}));
|
|
6061
|
-
var
|
|
6074
|
+
var be = (
|
|
6062
6075
|
/** @class */
|
|
6063
6076
|
function() {
|
|
6064
6077
|
function t(e, r, n) {
|
|
@@ -6070,7 +6083,7 @@ var Ee = (
|
|
|
6070
6083
|
t.VALUES_TO_ECI.set(c, this);
|
|
6071
6084
|
}
|
|
6072
6085
|
try {
|
|
6073
|
-
for (var h =
|
|
6086
|
+
for (var h = ll(o), d = h.next(); !d.done; d = h.next()) {
|
|
6074
6087
|
var v = d.value;
|
|
6075
6088
|
t.NAME_TO_ECI.set(v, this);
|
|
6076
6089
|
}
|
|
@@ -6109,7 +6122,7 @@ var Ee = (
|
|
|
6109
6122
|
return this.getName() === r.getName();
|
|
6110
6123
|
}, t.VALUE_IDENTIFIER_TO_ECI = /* @__PURE__ */ new Map(), t.VALUES_TO_ECI = /* @__PURE__ */ new Map(), t.NAME_TO_ECI = /* @__PURE__ */ new Map(), t.Cp437 = new t(ne.Cp437, Int32Array.from([0, 2]), "Cp437"), t.ISO8859_1 = new t(ne.ISO8859_1, Int32Array.from([1, 3]), "ISO-8859-1", "ISO88591", "ISO8859_1"), t.ISO8859_2 = new t(ne.ISO8859_2, 4, "ISO-8859-2", "ISO88592", "ISO8859_2"), t.ISO8859_3 = new t(ne.ISO8859_3, 5, "ISO-8859-3", "ISO88593", "ISO8859_3"), t.ISO8859_4 = new t(ne.ISO8859_4, 6, "ISO-8859-4", "ISO88594", "ISO8859_4"), t.ISO8859_5 = new t(ne.ISO8859_5, 7, "ISO-8859-5", "ISO88595", "ISO8859_5"), t.ISO8859_6 = new t(ne.ISO8859_6, 8, "ISO-8859-6", "ISO88596", "ISO8859_6"), t.ISO8859_7 = new t(ne.ISO8859_7, 9, "ISO-8859-7", "ISO88597", "ISO8859_7"), t.ISO8859_8 = new t(ne.ISO8859_8, 10, "ISO-8859-8", "ISO88598", "ISO8859_8"), t.ISO8859_9 = new t(ne.ISO8859_9, 11, "ISO-8859-9", "ISO88599", "ISO8859_9"), t.ISO8859_10 = new t(ne.ISO8859_10, 12, "ISO-8859-10", "ISO885910", "ISO8859_10"), t.ISO8859_11 = new t(ne.ISO8859_11, 13, "ISO-8859-11", "ISO885911", "ISO8859_11"), t.ISO8859_13 = new t(ne.ISO8859_13, 15, "ISO-8859-13", "ISO885913", "ISO8859_13"), t.ISO8859_14 = new t(ne.ISO8859_14, 16, "ISO-8859-14", "ISO885914", "ISO8859_14"), t.ISO8859_15 = new t(ne.ISO8859_15, 17, "ISO-8859-15", "ISO885915", "ISO8859_15"), t.ISO8859_16 = new t(ne.ISO8859_16, 18, "ISO-8859-16", "ISO885916", "ISO8859_16"), t.SJIS = new t(ne.SJIS, 20, "SJIS", "Shift_JIS"), t.Cp1250 = new t(ne.Cp1250, 21, "Cp1250", "windows-1250"), t.Cp1251 = new t(ne.Cp1251, 22, "Cp1251", "windows-1251"), t.Cp1252 = new t(ne.Cp1252, 23, "Cp1252", "windows-1252"), t.Cp1256 = new t(ne.Cp1256, 24, "Cp1256", "windows-1256"), t.UnicodeBigUnmarked = new t(ne.UnicodeBigUnmarked, 25, "UnicodeBigUnmarked", "UTF-16BE", "UnicodeBig"), t.UTF8 = new t(ne.UTF8, 26, "UTF8", "UTF-8"), t.ASCII = new t(ne.ASCII, Int32Array.from([27, 170]), "ASCII", "US-ASCII"), t.Big5 = new t(ne.Big5, 28, "Big5"), t.GB18030 = new t(ne.GB18030, 29, "GB18030", "GB2312", "EUC_CN", "GBK"), t.EUC_KR = new t(ne.EUC_KR, 30, "EUC_KR", "EUC-KR"), t;
|
|
6111
6124
|
}()
|
|
6112
|
-
),
|
|
6125
|
+
), fl = /* @__PURE__ */ function() {
|
|
6113
6126
|
var t = function(e, r) {
|
|
6114
6127
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
6115
6128
|
n.__proto__ = i;
|
|
@@ -6127,7 +6140,7 @@ var Ee = (
|
|
|
6127
6140
|
}(), un = (
|
|
6128
6141
|
/** @class */
|
|
6129
6142
|
function(t) {
|
|
6130
|
-
|
|
6143
|
+
fl(e, t);
|
|
6131
6144
|
function e() {
|
|
6132
6145
|
return t !== null && t.apply(this, arguments) || this;
|
|
6133
6146
|
}
|
|
@@ -6151,7 +6164,7 @@ var Ee = (
|
|
|
6151
6164
|
}, t.encodingName = function(e) {
|
|
6152
6165
|
return typeof e == "string" ? e : e.getName();
|
|
6153
6166
|
}, t.encodingCharacterSet = function(e) {
|
|
6154
|
-
return e instanceof
|
|
6167
|
+
return e instanceof be ? e : be.getCharacterSetECIByName(e);
|
|
6155
6168
|
}, t.decodeFallback = function(e, r) {
|
|
6156
6169
|
var n = this.encodingCharacterSet(r);
|
|
6157
6170
|
if (t.isDecodeFallbackSupported(n)) {
|
|
@@ -6161,11 +6174,11 @@ var Ee = (
|
|
|
6161
6174
|
}
|
|
6162
6175
|
return decodeURIComponent(i);
|
|
6163
6176
|
}
|
|
6164
|
-
if (n.equals(
|
|
6177
|
+
if (n.equals(be.UnicodeBigUnmarked))
|
|
6165
6178
|
return String.fromCharCode.apply(null, new Uint16Array(e.buffer));
|
|
6166
6179
|
throw new un("Encoding " + this.encodingName(r) + " not supported by fallback.");
|
|
6167
6180
|
}, t.isDecodeFallbackSupported = function(e) {
|
|
6168
|
-
return e.equals(
|
|
6181
|
+
return e.equals(be.UTF8) || e.equals(be.ISO8859_1) || e.equals(be.ASCII);
|
|
6169
6182
|
}, t.encodeFallback = function(e) {
|
|
6170
6183
|
for (var r = btoa(unescape(encodeURIComponent(e))), n = r.split(""), i = [], a = 0; a < n.length; a++)
|
|
6171
6184
|
i.push(n[a].charCodeAt(0));
|
|
@@ -6239,7 +6252,7 @@ var Ee = (
|
|
|
6239
6252
|
return r === void 0 && (r = 0), e.charCodeAt(r);
|
|
6240
6253
|
}, t.getCharAt = function(e) {
|
|
6241
6254
|
return String.fromCharCode(e);
|
|
6242
|
-
}, t.SHIFT_JIS =
|
|
6255
|
+
}, t.SHIFT_JIS = be.SJIS.getName(), t.GB2312 = "GB2312", t.ISO88591 = be.ISO8859_1.getName(), t.EUC_JP = "EUC_JP", t.UTF8 = be.UTF8.getName(), t.PLATFORM_DEFAULT_ENCODING = t.UTF8, t.ASSUME_SHIFT_JIS = !1, t;
|
|
6243
6256
|
}()
|
|
6244
6257
|
), se = (
|
|
6245
6258
|
/** @class */
|
|
@@ -6420,7 +6433,7 @@ var Ee = (
|
|
|
6420
6433
|
return new t(this.width, this.height, this.rowSize, this.bits.slice());
|
|
6421
6434
|
}, t;
|
|
6422
6435
|
}()
|
|
6423
|
-
),
|
|
6436
|
+
), cl = /* @__PURE__ */ function() {
|
|
6424
6437
|
var t = function(e, r) {
|
|
6425
6438
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
6426
6439
|
n.__proto__ = i;
|
|
@@ -6438,7 +6451,7 @@ var Ee = (
|
|
|
6438
6451
|
}(), I = (
|
|
6439
6452
|
/** @class */
|
|
6440
6453
|
function(t) {
|
|
6441
|
-
|
|
6454
|
+
cl(e, t);
|
|
6442
6455
|
function e() {
|
|
6443
6456
|
return t !== null && t.apply(this, arguments) || this;
|
|
6444
6457
|
}
|
|
@@ -6446,7 +6459,7 @@ var Ee = (
|
|
|
6446
6459
|
return new e();
|
|
6447
6460
|
}, e.kind = "NotFoundException", e;
|
|
6448
6461
|
}(Ue)
|
|
6449
|
-
),
|
|
6462
|
+
), dl = /* @__PURE__ */ function() {
|
|
6450
6463
|
var t = function(e, r) {
|
|
6451
6464
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
6452
6465
|
n.__proto__ = i;
|
|
@@ -6461,10 +6474,10 @@ var Ee = (
|
|
|
6461
6474
|
}
|
|
6462
6475
|
e.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
|
|
6463
6476
|
};
|
|
6464
|
-
}(),
|
|
6477
|
+
}(), hl = (
|
|
6465
6478
|
/** @class */
|
|
6466
6479
|
function(t) {
|
|
6467
|
-
|
|
6480
|
+
dl(e, t);
|
|
6468
6481
|
function e(r) {
|
|
6469
6482
|
var n = t.call(this, r) || this;
|
|
6470
6483
|
return n.luminances = e.EMPTY, n.buckets = new Int32Array(e.LUMINANCE_BUCKETS), n;
|
|
@@ -6523,8 +6536,8 @@ var Ee = (
|
|
|
6523
6536
|
}
|
|
6524
6537
|
return d << e.LUMINANCE_SHIFT;
|
|
6525
6538
|
}, e.LUMINANCE_BITS = 5, e.LUMINANCE_SHIFT = 8 - e.LUMINANCE_BITS, e.LUMINANCE_BUCKETS = 1 << e.LUMINANCE_BITS, e.EMPTY = Uint8ClampedArray.from([0]), e;
|
|
6526
|
-
}(
|
|
6527
|
-
),
|
|
6539
|
+
}(il)
|
|
6540
|
+
), vl = /* @__PURE__ */ function() {
|
|
6528
6541
|
var t = function(e, r) {
|
|
6529
6542
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
6530
6543
|
n.__proto__ = i;
|
|
@@ -6539,10 +6552,10 @@ var Ee = (
|
|
|
6539
6552
|
}
|
|
6540
6553
|
e.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
|
|
6541
6554
|
};
|
|
6542
|
-
}(),
|
|
6555
|
+
}(), pl = (
|
|
6543
6556
|
/** @class */
|
|
6544
6557
|
function(t) {
|
|
6545
|
-
|
|
6558
|
+
vl(e, t);
|
|
6546
6559
|
function e(r) {
|
|
6547
6560
|
var n = t.call(this, r) || this;
|
|
6548
6561
|
return n.matrix = null, n;
|
|
@@ -6612,7 +6625,7 @@ var Ee = (
|
|
|
6612
6625
|
}
|
|
6613
6626
|
return l;
|
|
6614
6627
|
}, e.BLOCK_SIZE_POWER = 3, e.BLOCK_SIZE = 1 << e.BLOCK_SIZE_POWER, e.BLOCK_SIZE_MASK = e.BLOCK_SIZE - 1, e.MINIMUM_DIMENSION = e.BLOCK_SIZE * 5, e.MIN_DYNAMIC_RANGE = 24, e;
|
|
6615
|
-
}(
|
|
6628
|
+
}(hl)
|
|
6616
6629
|
), Sn = (
|
|
6617
6630
|
/** @class */
|
|
6618
6631
|
function() {
|
|
@@ -6645,7 +6658,7 @@ var Ee = (
|
|
|
6645
6658
|
return r.toString();
|
|
6646
6659
|
}, t;
|
|
6647
6660
|
}()
|
|
6648
|
-
),
|
|
6661
|
+
), gl = /* @__PURE__ */ function() {
|
|
6649
6662
|
var t = function(e, r) {
|
|
6650
6663
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
6651
6664
|
n.__proto__ = i;
|
|
@@ -6663,7 +6676,7 @@ var Ee = (
|
|
|
6663
6676
|
}(), Oi = (
|
|
6664
6677
|
/** @class */
|
|
6665
6678
|
function(t) {
|
|
6666
|
-
|
|
6679
|
+
gl(e, t);
|
|
6667
6680
|
function e(r) {
|
|
6668
6681
|
var n = t.call(this, r.getWidth(), r.getHeight()) || this;
|
|
6669
6682
|
return n.delegate = r, n;
|
|
@@ -6692,7 +6705,7 @@ var Ee = (
|
|
|
6692
6705
|
return new e(this.delegate.rotateCounterClockwise45());
|
|
6693
6706
|
}, e;
|
|
6694
6707
|
}(Sn)
|
|
6695
|
-
),
|
|
6708
|
+
), xl = /* @__PURE__ */ function() {
|
|
6696
6709
|
var t = function(e, r) {
|
|
6697
6710
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
6698
6711
|
n.__proto__ = i;
|
|
@@ -6707,10 +6720,10 @@ var Ee = (
|
|
|
6707
6720
|
}
|
|
6708
6721
|
e.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
|
|
6709
6722
|
};
|
|
6710
|
-
}(),
|
|
6723
|
+
}(), yl = (
|
|
6711
6724
|
/** @class */
|
|
6712
6725
|
function(t) {
|
|
6713
|
-
|
|
6726
|
+
xl(e, t);
|
|
6714
6727
|
function e(r) {
|
|
6715
6728
|
var n = t.call(this, r.width, r.height) || this;
|
|
6716
6729
|
return n.canvas = r, n.tempCanvasElement = null, n.buffer = e.makeBufferFromCanvasImageData(r), n;
|
|
@@ -6760,7 +6773,7 @@ var Ee = (
|
|
|
6760
6773
|
return new Oi(this);
|
|
6761
6774
|
}, e.DEGREE_TO_RADIANS = Math.PI / 180, e;
|
|
6762
6775
|
}(Sn)
|
|
6763
|
-
),
|
|
6776
|
+
), wl = (
|
|
6764
6777
|
/** @class */
|
|
6765
6778
|
function() {
|
|
6766
6779
|
function t(e, r, n) {
|
|
@@ -6860,7 +6873,7 @@ var Ee = (
|
|
|
6860
6873
|
if (l[0] & 5) throw l[1];
|
|
6861
6874
|
return { value: l[0] ? l[1] : void 0, done: !0 };
|
|
6862
6875
|
}
|
|
6863
|
-
},
|
|
6876
|
+
}, ml = function(t) {
|
|
6864
6877
|
var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0;
|
|
6865
6878
|
if (r) return r.call(t);
|
|
6866
6879
|
if (t && typeof t.length == "number") return {
|
|
@@ -6946,7 +6959,7 @@ var Ee = (
|
|
|
6946
6959
|
case 1:
|
|
6947
6960
|
e = d.sent(), r = [];
|
|
6948
6961
|
try {
|
|
6949
|
-
for (n =
|
|
6962
|
+
for (n = ml(e), i = n.next(); !i.done; i = n.next())
|
|
6950
6963
|
a = i.value, o = a.kind === "video" ? "videoinput" : a.kind, o === "videoinput" && (s = a.deviceId || a.id, u = a.label || "Video device " + (r.length + 1), l = a.groupId, f = { deviceId: s, label: u, kind: o, groupId: l }, r.push(f));
|
|
6951
6964
|
} catch (v) {
|
|
6952
6965
|
c = { error: v };
|
|
@@ -6970,7 +6983,7 @@ var Ee = (
|
|
|
6970
6983
|
return [4, this.listVideoInputDevices()];
|
|
6971
6984
|
case 1:
|
|
6972
6985
|
return e = r.sent(), [2, e.map(function(n) {
|
|
6973
|
-
return new
|
|
6986
|
+
return new wl(n.deviceId, n.label);
|
|
6974
6987
|
})];
|
|
6975
6988
|
}
|
|
6976
6989
|
});
|
|
@@ -7296,8 +7309,8 @@ var Ee = (
|
|
|
7296
7309
|
return r.videoWidth !== 0;
|
|
7297
7310
|
}, t.prototype.createBinaryBitmap = function(e) {
|
|
7298
7311
|
this.getCaptureCanvasContext(e), this._isHTMLVideoElement(e) ? this.drawFrameOnCanvas(e) : this.drawImageOnCanvas(e);
|
|
7299
|
-
var r = this.getCaptureCanvas(e), n = new
|
|
7300
|
-
return new
|
|
7312
|
+
var r = this.getCaptureCanvas(e), n = new yl(r), i = new pl(n);
|
|
7313
|
+
return new rl(i);
|
|
7301
7314
|
}, t.prototype.getCaptureCanvasContext = function(e) {
|
|
7302
7315
|
if (!this.captureCanvasContext) {
|
|
7303
7316
|
var r = this.getCaptureCanvas(e), n = void 0;
|
|
@@ -7557,7 +7570,7 @@ var In = (
|
|
|
7557
7570
|
return e;
|
|
7558
7571
|
}, t;
|
|
7559
7572
|
}()
|
|
7560
|
-
),
|
|
7573
|
+
), _l = /* @__PURE__ */ function() {
|
|
7561
7574
|
var t = function(e, r) {
|
|
7562
7575
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
7563
7576
|
n.__proto__ = i;
|
|
@@ -7575,13 +7588,13 @@ var In = (
|
|
|
7575
7588
|
}(), to = (
|
|
7576
7589
|
/** @class */
|
|
7577
7590
|
function(t) {
|
|
7578
|
-
|
|
7591
|
+
_l(e, t);
|
|
7579
7592
|
function e() {
|
|
7580
7593
|
return t !== null && t.apply(this, arguments) || this;
|
|
7581
7594
|
}
|
|
7582
7595
|
return e.kind = "ArithmeticException", e;
|
|
7583
7596
|
}(Ue)
|
|
7584
|
-
),
|
|
7597
|
+
), Al = /* @__PURE__ */ function() {
|
|
7585
7598
|
var t = function(e, r) {
|
|
7586
7599
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
7587
7600
|
n.__proto__ = i;
|
|
@@ -7599,7 +7612,7 @@ var In = (
|
|
|
7599
7612
|
}(), ze = (
|
|
7600
7613
|
/** @class */
|
|
7601
7614
|
function(t) {
|
|
7602
|
-
|
|
7615
|
+
Al(e, t);
|
|
7603
7616
|
function e(r, n, i) {
|
|
7604
7617
|
var a = t.call(this) || this;
|
|
7605
7618
|
a.primitive = r, a.size = n, a.generatorBase = i;
|
|
@@ -7637,7 +7650,7 @@ var In = (
|
|
|
7637
7650
|
return r === this;
|
|
7638
7651
|
}, e.AZTEC_DATA_12 = new e(4201, 4096, 1), e.AZTEC_DATA_10 = new e(1033, 1024, 1), e.AZTEC_DATA_6 = new e(67, 64, 1), e.AZTEC_PARAM = new e(19, 16, 1), e.QR_CODE_FIELD_256 = new e(285, 256, 0), e.DATA_MATRIX_FIELD_256 = new e(301, 256, 1), e.AZTEC_DATA_8 = e.DATA_MATRIX_FIELD_256, e.MAXICODE_FIELD_64 = e.AZTEC_DATA_6, e;
|
|
7639
7652
|
}(Ir)
|
|
7640
|
-
),
|
|
7653
|
+
), El = /* @__PURE__ */ function() {
|
|
7641
7654
|
var t = function(e, r) {
|
|
7642
7655
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
7643
7656
|
n.__proto__ = i;
|
|
@@ -7655,13 +7668,13 @@ var In = (
|
|
|
7655
7668
|
}(), qr = (
|
|
7656
7669
|
/** @class */
|
|
7657
7670
|
function(t) {
|
|
7658
|
-
|
|
7671
|
+
El(e, t);
|
|
7659
7672
|
function e() {
|
|
7660
7673
|
return t !== null && t.apply(this, arguments) || this;
|
|
7661
7674
|
}
|
|
7662
7675
|
return e.kind = "ReedSolomonException", e;
|
|
7663
7676
|
}(Ue)
|
|
7664
|
-
),
|
|
7677
|
+
), bl = /* @__PURE__ */ function() {
|
|
7665
7678
|
var t = function(e, r) {
|
|
7666
7679
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
7667
7680
|
n.__proto__ = i;
|
|
@@ -7679,7 +7692,7 @@ var In = (
|
|
|
7679
7692
|
}(), Gr = (
|
|
7680
7693
|
/** @class */
|
|
7681
7694
|
function(t) {
|
|
7682
|
-
|
|
7695
|
+
bl(e, t);
|
|
7683
7696
|
function e() {
|
|
7684
7697
|
return t !== null && t.apply(this, arguments) || this;
|
|
7685
7698
|
}
|
|
@@ -8116,7 +8129,7 @@ var ra = (
|
|
|
8116
8129
|
return this.points;
|
|
8117
8130
|
}, t;
|
|
8118
8131
|
}()
|
|
8119
|
-
),
|
|
8132
|
+
), Cl = /* @__PURE__ */ function() {
|
|
8120
8133
|
var t = function(e, r) {
|
|
8121
8134
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
8122
8135
|
n.__proto__ = i;
|
|
@@ -8131,10 +8144,10 @@ var ra = (
|
|
|
8131
8144
|
}
|
|
8132
8145
|
e.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
|
|
8133
8146
|
};
|
|
8134
|
-
}(),
|
|
8147
|
+
}(), Sl = (
|
|
8135
8148
|
/** @class */
|
|
8136
8149
|
function(t) {
|
|
8137
|
-
|
|
8150
|
+
Cl(e, t);
|
|
8138
8151
|
function e(r, n, i, a, o) {
|
|
8139
8152
|
var s = t.call(this, r, n) || this;
|
|
8140
8153
|
return s.compact = i, s.nbDatablocks = a, s.nbLayers = o, s;
|
|
@@ -8292,7 +8305,7 @@ var ra = (
|
|
|
8292
8305
|
return new t(this.a11 * e.a11 + this.a21 * e.a12 + this.a31 * e.a13, this.a11 * e.a21 + this.a21 * e.a22 + this.a31 * e.a23, this.a11 * e.a31 + this.a21 * e.a32 + this.a31 * e.a33, this.a12 * e.a11 + this.a22 * e.a12 + this.a32 * e.a13, this.a12 * e.a21 + this.a22 * e.a22 + this.a32 * e.a23, this.a12 * e.a31 + this.a22 * e.a32 + this.a32 * e.a33, this.a13 * e.a11 + this.a23 * e.a12 + this.a33 * e.a13, this.a13 * e.a21 + this.a23 * e.a22 + this.a33 * e.a23, this.a13 * e.a31 + this.a23 * e.a32 + this.a33 * e.a33);
|
|
8293
8306
|
}, t;
|
|
8294
8307
|
}()
|
|
8295
|
-
),
|
|
8308
|
+
), Il = /* @__PURE__ */ function() {
|
|
8296
8309
|
var t = function(e, r) {
|
|
8297
8310
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
8298
8311
|
n.__proto__ = i;
|
|
@@ -8307,10 +8320,10 @@ var ra = (
|
|
|
8307
8320
|
}
|
|
8308
8321
|
e.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
|
|
8309
8322
|
};
|
|
8310
|
-
}(),
|
|
8323
|
+
}(), Ol = (
|
|
8311
8324
|
/** @class */
|
|
8312
8325
|
function(t) {
|
|
8313
|
-
|
|
8326
|
+
Il(e, t);
|
|
8314
8327
|
function e() {
|
|
8315
8328
|
return t !== null && t.apply(this, arguments) || this;
|
|
8316
8329
|
}
|
|
@@ -8343,7 +8356,7 @@ var ra = (
|
|
|
8343
8356
|
t.gridSampler = e;
|
|
8344
8357
|
}, t.getInstance = function() {
|
|
8345
8358
|
return t.gridSampler;
|
|
8346
|
-
}, t.gridSampler = new
|
|
8359
|
+
}, t.gridSampler = new Ol(), t;
|
|
8347
8360
|
}()
|
|
8348
8361
|
), Ve = (
|
|
8349
8362
|
/** @class */
|
|
@@ -8359,7 +8372,7 @@ var ra = (
|
|
|
8359
8372
|
return this.y;
|
|
8360
8373
|
}, t;
|
|
8361
8374
|
}()
|
|
8362
|
-
),
|
|
8375
|
+
), Tl = (
|
|
8363
8376
|
/** @class */
|
|
8364
8377
|
function() {
|
|
8365
8378
|
function t(e) {
|
|
@@ -8380,7 +8393,7 @@ var ra = (
|
|
|
8380
8393
|
}
|
|
8381
8394
|
this.extractParameters(n);
|
|
8382
8395
|
var a = this.sampleGrid(this.image, n[this.shift % 4], n[(this.shift + 1) % 4], n[(this.shift + 2) % 4], n[(this.shift + 3) % 4]), o = this.getMatrixCornerPoints(n);
|
|
8383
|
-
return new
|
|
8396
|
+
return new Sl(a, o, this.compact, this.nbDataBlocks, this.nbLayers);
|
|
8384
8397
|
}, t.prototype.extractParameters = function(e) {
|
|
8385
8398
|
if (!this.isValidPoint(e[0]) || !this.isValidPoint(e[1]) || !this.isValidPoint(e[2]) || !this.isValidPoint(e[3]))
|
|
8386
8399
|
throw new I();
|
|
@@ -8534,7 +8547,7 @@ var ra = (
|
|
|
8534
8547
|
}
|
|
8535
8548
|
return t.prototype.decode = function(e, r) {
|
|
8536
8549
|
r === void 0 && (r = null);
|
|
8537
|
-
var n = null, i = new
|
|
8550
|
+
var n = null, i = new Tl(e.getBlackMatrix()), a = null, o = null;
|
|
8538
8551
|
try {
|
|
8539
8552
|
var s = i.detectMirror(!1);
|
|
8540
8553
|
a = s.getPoints(), this.reportFoundResultPoints(r, a), o = new ra().decode(s);
|
|
@@ -8562,7 +8575,7 @@ var ra = (
|
|
|
8562
8575
|
}, t.prototype.reset = function() {
|
|
8563
8576
|
}, t;
|
|
8564
8577
|
}()
|
|
8565
|
-
),
|
|
8578
|
+
), Dl = /* @__PURE__ */ function() {
|
|
8566
8579
|
var t = function(e, r) {
|
|
8567
8580
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
8568
8581
|
n.__proto__ = i;
|
|
@@ -8579,7 +8592,7 @@ var ra = (
|
|
|
8579
8592
|
};
|
|
8580
8593
|
}();
|
|
8581
8594
|
(function(t) {
|
|
8582
|
-
|
|
8595
|
+
Dl(e, t);
|
|
8583
8596
|
function e(r) {
|
|
8584
8597
|
return r === void 0 && (r = 500), t.call(this, new hi(), r) || this;
|
|
8585
8598
|
}
|
|
@@ -8683,7 +8696,7 @@ var Be = (
|
|
|
8683
8696
|
return l / a;
|
|
8684
8697
|
}, t;
|
|
8685
8698
|
}()
|
|
8686
|
-
),
|
|
8699
|
+
), Nl = /* @__PURE__ */ function() {
|
|
8687
8700
|
var t = function(e, r) {
|
|
8688
8701
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
8689
8702
|
n.__proto__ = i;
|
|
@@ -8701,7 +8714,7 @@ var Be = (
|
|
|
8701
8714
|
}(), ia = (
|
|
8702
8715
|
/** @class */
|
|
8703
8716
|
function(t) {
|
|
8704
|
-
|
|
8717
|
+
Nl(e, t);
|
|
8705
8718
|
function e() {
|
|
8706
8719
|
return t !== null && t.apply(this, arguments) || this;
|
|
8707
8720
|
}
|
|
@@ -8963,7 +8976,7 @@ var Be = (
|
|
|
8963
8976
|
Int32Array.from([2, 3, 3, 1, 1, 1, 2])
|
|
8964
8977
|
], e.MAX_AVG_VARIANCE = 0.25, e.MAX_INDIVIDUAL_VARIANCE = 0.7, e.CODE_SHIFT = 98, e.CODE_CODE_C = 99, e.CODE_CODE_B = 100, e.CODE_CODE_A = 101, e.CODE_FNC_1 = 102, e.CODE_FNC_2 = 97, e.CODE_FNC_3 = 96, e.CODE_FNC_4_A = 101, e.CODE_FNC_4_B = 100, e.CODE_START_A = 103, e.CODE_START_B = 104, e.CODE_START_C = 105, e.CODE_STOP = 106, e;
|
|
8965
8978
|
}(Be)
|
|
8966
|
-
),
|
|
8979
|
+
), Rl = /* @__PURE__ */ function() {
|
|
8967
8980
|
var t = function(e, r) {
|
|
8968
8981
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
8969
8982
|
n.__proto__ = i;
|
|
@@ -8990,7 +9003,7 @@ var Be = (
|
|
|
8990
9003
|
}, aa = (
|
|
8991
9004
|
/** @class */
|
|
8992
9005
|
function(t) {
|
|
8993
|
-
|
|
9006
|
+
Rl(e, t);
|
|
8994
9007
|
function e(r, n) {
|
|
8995
9008
|
r === void 0 && (r = !1), n === void 0 && (n = !1);
|
|
8996
9009
|
var i = t.call(this) || this;
|
|
@@ -9207,7 +9220,7 @@ var Be = (
|
|
|
9207
9220
|
// /-%
|
|
9208
9221
|
], e.ASTERISK_ENCODING = 148, e;
|
|
9209
9222
|
}(Be)
|
|
9210
|
-
),
|
|
9223
|
+
), Pl = /* @__PURE__ */ function() {
|
|
9211
9224
|
var t = function(e, r) {
|
|
9212
9225
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
9213
9226
|
n.__proto__ = i;
|
|
@@ -9222,7 +9235,7 @@ var Be = (
|
|
|
9222
9235
|
}
|
|
9223
9236
|
e.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
|
|
9224
9237
|
};
|
|
9225
|
-
}(),
|
|
9238
|
+
}(), Bl = function(t) {
|
|
9226
9239
|
var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0;
|
|
9227
9240
|
if (r) return r.call(t);
|
|
9228
9241
|
if (t && typeof t.length == "number") return {
|
|
@@ -9234,7 +9247,7 @@ var Be = (
|
|
|
9234
9247
|
}, oa = (
|
|
9235
9248
|
/** @class */
|
|
9236
9249
|
function(t) {
|
|
9237
|
-
|
|
9250
|
+
Pl(e, t);
|
|
9238
9251
|
function e() {
|
|
9239
9252
|
var r = t !== null && t.apply(this, arguments) || this;
|
|
9240
9253
|
return r.narrowLineWidth = -1, r;
|
|
@@ -9246,7 +9259,7 @@ var Be = (
|
|
|
9246
9259
|
i != null && (c = i.get(xe.ALLOWED_LENGTHS)), c == null && (c = e.DEFAULT_ALLOWED_LENGTHS);
|
|
9247
9260
|
var h = f.length, d = !1, v = 0;
|
|
9248
9261
|
try {
|
|
9249
|
-
for (var p =
|
|
9262
|
+
for (var p = Bl(c), w = p.next(); !w.done; w = p.next()) {
|
|
9250
9263
|
var m = w.value;
|
|
9251
9264
|
if (h === m) {
|
|
9252
9265
|
d = !0;
|
|
@@ -9370,7 +9383,7 @@ var Be = (
|
|
|
9370
9383
|
// 3x
|
|
9371
9384
|
], e;
|
|
9372
9385
|
}(Be)
|
|
9373
|
-
),
|
|
9386
|
+
), Ml = /* @__PURE__ */ function() {
|
|
9374
9387
|
var t = function(e, r) {
|
|
9375
9388
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
9376
9389
|
n.__proto__ = i;
|
|
@@ -9388,7 +9401,7 @@ var Be = (
|
|
|
9388
9401
|
}(), sr = (
|
|
9389
9402
|
/** @class */
|
|
9390
9403
|
function(t) {
|
|
9391
|
-
|
|
9404
|
+
Ml(e, t);
|
|
9392
9405
|
function e() {
|
|
9393
9406
|
var r = t !== null && t.apply(this, arguments) || this;
|
|
9394
9407
|
return r.decodeRowStringBuffer = "", r;
|
|
@@ -9470,7 +9483,7 @@ var Be = (
|
|
|
9470
9483
|
Int32Array.from([3, 1, 1, 2])
|
|
9471
9484
|
], e;
|
|
9472
9485
|
}(Be)
|
|
9473
|
-
),
|
|
9486
|
+
), Ll = function(t) {
|
|
9474
9487
|
var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0;
|
|
9475
9488
|
if (r) return r.call(t);
|
|
9476
9489
|
if (t && typeof t.length == "number") return {
|
|
@@ -9479,7 +9492,7 @@ var Be = (
|
|
|
9479
9492
|
}
|
|
9480
9493
|
};
|
|
9481
9494
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
9482
|
-
},
|
|
9495
|
+
}, kl = (
|
|
9483
9496
|
/** @class */
|
|
9484
9497
|
function() {
|
|
9485
9498
|
function t() {
|
|
@@ -9498,7 +9511,7 @@ var Be = (
|
|
|
9498
9511
|
var c = sr.decodeDigit(e, o, u, sr.L_AND_G_PATTERNS);
|
|
9499
9512
|
n += String.fromCharCode(48 + c % 10);
|
|
9500
9513
|
try {
|
|
9501
|
-
for (var h = (i = void 0,
|
|
9514
|
+
for (var h = (i = void 0, Ll(o)), d = h.next(); !d.done; d = h.next()) {
|
|
9502
9515
|
var v = d.value;
|
|
9503
9516
|
u += v;
|
|
9504
9517
|
}
|
|
@@ -9564,7 +9577,7 @@ var Be = (
|
|
|
9564
9577
|
return r + i + "." + o;
|
|
9565
9578
|
}, t;
|
|
9566
9579
|
}()
|
|
9567
|
-
),
|
|
9580
|
+
), Fl = function(t) {
|
|
9568
9581
|
var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0;
|
|
9569
9582
|
if (r) return r.call(t);
|
|
9570
9583
|
if (t && typeof t.length == "number") return {
|
|
@@ -9573,7 +9586,7 @@ var Be = (
|
|
|
9573
9586
|
}
|
|
9574
9587
|
};
|
|
9575
9588
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
9576
|
-
},
|
|
9589
|
+
}, Ul = (
|
|
9577
9590
|
/** @class */
|
|
9578
9591
|
function() {
|
|
9579
9592
|
function t() {
|
|
@@ -9592,7 +9605,7 @@ var Be = (
|
|
|
9592
9605
|
var c = sr.decodeDigit(e, o, u, sr.L_AND_G_PATTERNS);
|
|
9593
9606
|
n += String.fromCharCode(48 + c % 10);
|
|
9594
9607
|
try {
|
|
9595
|
-
for (var h = (i = void 0,
|
|
9608
|
+
for (var h = (i = void 0, Fl(o)), d = h.next(); !d.done; d = h.next()) {
|
|
9596
9609
|
var v = d.value;
|
|
9597
9610
|
u += v;
|
|
9598
9611
|
}
|
|
@@ -9616,7 +9629,7 @@ var Be = (
|
|
|
9616
9629
|
return e.length !== 2 ? null : /* @__PURE__ */ new Map([[Pe.ISSUE_NUMBER, parseInt(e)]]);
|
|
9617
9630
|
}, t;
|
|
9618
9631
|
}()
|
|
9619
|
-
),
|
|
9632
|
+
), Vl = (
|
|
9620
9633
|
/** @class */
|
|
9621
9634
|
function() {
|
|
9622
9635
|
function t() {
|
|
@@ -9624,15 +9637,15 @@ var Be = (
|
|
|
9624
9637
|
return t.decodeRow = function(e, r, n) {
|
|
9625
9638
|
var i = sr.findGuardPattern(r, n, !1, this.EXTENSION_START_PATTERN, new Int32Array(this.EXTENSION_START_PATTERN.length).fill(0));
|
|
9626
9639
|
try {
|
|
9627
|
-
var a = new
|
|
9640
|
+
var a = new kl();
|
|
9628
9641
|
return a.decodeRow(e, r, i);
|
|
9629
9642
|
} catch {
|
|
9630
|
-
var o = new
|
|
9643
|
+
var o = new Ul();
|
|
9631
9644
|
return o.decodeRow(e, r, i);
|
|
9632
9645
|
}
|
|
9633
9646
|
}, t.EXTENSION_START_PATTERN = Int32Array.from([1, 1, 2]), t;
|
|
9634
9647
|
}()
|
|
9635
|
-
),
|
|
9648
|
+
), $l = /* @__PURE__ */ function() {
|
|
9636
9649
|
var t = function(e, r) {
|
|
9637
9650
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
9638
9651
|
n.__proto__ = i;
|
|
@@ -9647,10 +9660,10 @@ var Be = (
|
|
|
9647
9660
|
}
|
|
9648
9661
|
e.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
|
|
9649
9662
|
};
|
|
9650
|
-
}(),
|
|
9663
|
+
}(), Ee = (
|
|
9651
9664
|
/** @class */
|
|
9652
9665
|
function(t) {
|
|
9653
|
-
|
|
9666
|
+
$l(e, t);
|
|
9654
9667
|
function e() {
|
|
9655
9668
|
var r = t.call(this) || this;
|
|
9656
9669
|
r.decodeRowStringBuffer = "", e.L_AND_G_PATTERNS = e.L_PATTERNS.map(function(s) {
|
|
@@ -9689,7 +9702,7 @@ var Be = (
|
|
|
9689
9702
|
throw new Ne();
|
|
9690
9703
|
var m = (a[1] + a[0]) / 2, y = (h[1] + h[0]) / 2, _ = this.getBarcodeFormat(), x = [new F(m, r), new F(y, r)], b = new Xe(w, null, 0, x, _, (/* @__PURE__ */ new Date()).getTime()), C = 0;
|
|
9691
9704
|
try {
|
|
9692
|
-
var O =
|
|
9705
|
+
var O = Vl.decodeRow(r, n, h[1]);
|
|
9693
9706
|
b.putMetadata(Pe.UPC_EAN_EXTENSION, O.getText()), b.putAllMetadata(O.getResultMetadata()), b.addResultPoints(O.getResultPoints()), C = O.getText().length;
|
|
9694
9707
|
} catch {
|
|
9695
9708
|
}
|
|
@@ -9732,7 +9745,7 @@ var Be = (
|
|
|
9732
9745
|
return e.findGuardPattern(r, n, !1, e.START_END_PATTERN, new Int32Array(e.START_END_PATTERN.length).fill(0));
|
|
9733
9746
|
}, e;
|
|
9734
9747
|
}(sr)
|
|
9735
|
-
),
|
|
9748
|
+
), Hl = /* @__PURE__ */ function() {
|
|
9736
9749
|
var t = function(e, r) {
|
|
9737
9750
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
9738
9751
|
n.__proto__ = i;
|
|
@@ -9759,7 +9772,7 @@ var Be = (
|
|
|
9759
9772
|
}, vi = (
|
|
9760
9773
|
/** @class */
|
|
9761
9774
|
function(t) {
|
|
9762
|
-
|
|
9775
|
+
Hl(e, t);
|
|
9763
9776
|
function e() {
|
|
9764
9777
|
var r = t.call(this) || this;
|
|
9765
9778
|
return r.decodeMiddleCounters = Int32Array.from([0, 0, 0, 0]), r;
|
|
@@ -9768,7 +9781,7 @@ var Be = (
|
|
|
9768
9781
|
var a, o, s, u, l = this.decodeMiddleCounters;
|
|
9769
9782
|
l[0] = 0, l[1] = 0, l[2] = 0, l[3] = 0;
|
|
9770
9783
|
for (var f = r.getSize(), c = n[1], h = 0, d = 0; d < 6 && c < f; d++) {
|
|
9771
|
-
var v =
|
|
9784
|
+
var v = Ee.decodeDigit(r, l, c, Ee.L_AND_G_PATTERNS);
|
|
9772
9785
|
i += String.fromCharCode(48 + v % 10);
|
|
9773
9786
|
try {
|
|
9774
9787
|
for (var p = (a = void 0, sa(l)), w = p.next(); !w.done; w = p.next()) {
|
|
@@ -9787,10 +9800,10 @@ var Be = (
|
|
|
9787
9800
|
v >= 10 && (h |= 1 << 5 - d);
|
|
9788
9801
|
}
|
|
9789
9802
|
i = e.determineFirstDigit(i, h);
|
|
9790
|
-
var y =
|
|
9803
|
+
var y = Ee.findGuardPattern(r, c, !0, Ee.MIDDLE_PATTERN, new Int32Array(Ee.MIDDLE_PATTERN.length).fill(0));
|
|
9791
9804
|
c = y[1];
|
|
9792
9805
|
for (var d = 0; d < 6 && c < f; d++) {
|
|
9793
|
-
var v =
|
|
9806
|
+
var v = Ee.decodeDigit(r, l, c, Ee.L_PATTERNS);
|
|
9794
9807
|
i += String.fromCharCode(48 + v);
|
|
9795
9808
|
try {
|
|
9796
9809
|
for (var _ = (s = void 0, sa(l)), x = _.next(); !x.done; x = _.next()) {
|
|
@@ -9816,8 +9829,8 @@ var Be = (
|
|
|
9816
9829
|
return r = String.fromCharCode(48 + i) + r, r;
|
|
9817
9830
|
throw new I();
|
|
9818
9831
|
}, e.FIRST_DIGIT_ENCODINGS = [0, 11, 13, 14, 19, 25, 28, 21, 22, 26], e;
|
|
9819
|
-
}(
|
|
9820
|
-
),
|
|
9832
|
+
}(Ee)
|
|
9833
|
+
), Gl = /* @__PURE__ */ function() {
|
|
9821
9834
|
var t = function(e, r) {
|
|
9822
9835
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
9823
9836
|
n.__proto__ = i;
|
|
@@ -9844,7 +9857,7 @@ var Be = (
|
|
|
9844
9857
|
}, la = (
|
|
9845
9858
|
/** @class */
|
|
9846
9859
|
function(t) {
|
|
9847
|
-
|
|
9860
|
+
Gl(e, t);
|
|
9848
9861
|
function e() {
|
|
9849
9862
|
var r = t.call(this) || this;
|
|
9850
9863
|
return r.decodeMiddleCounters = Int32Array.from([0, 0, 0, 0]), r;
|
|
@@ -9853,7 +9866,7 @@ var Be = (
|
|
|
9853
9866
|
var a, o, s, u, l = this.decodeMiddleCounters;
|
|
9854
9867
|
l[0] = 0, l[1] = 0, l[2] = 0, l[3] = 0;
|
|
9855
9868
|
for (var f = r.getSize(), c = n[1], h = 0; h < 4 && c < f; h++) {
|
|
9856
|
-
var d =
|
|
9869
|
+
var d = Ee.decodeDigit(r, l, c, Ee.L_PATTERNS);
|
|
9857
9870
|
i += String.fromCharCode(48 + d);
|
|
9858
9871
|
try {
|
|
9859
9872
|
for (var v = (a = void 0, ua(l)), p = v.next(); !p.done; p = v.next()) {
|
|
@@ -9870,10 +9883,10 @@ var Be = (
|
|
|
9870
9883
|
}
|
|
9871
9884
|
}
|
|
9872
9885
|
}
|
|
9873
|
-
var m =
|
|
9886
|
+
var m = Ee.findGuardPattern(r, c, !0, Ee.MIDDLE_PATTERN, new Int32Array(Ee.MIDDLE_PATTERN.length).fill(0));
|
|
9874
9887
|
c = m[1];
|
|
9875
9888
|
for (var h = 0; h < 4 && c < f; h++) {
|
|
9876
|
-
var d =
|
|
9889
|
+
var d = Ee.decodeDigit(r, l, c, Ee.L_PATTERNS);
|
|
9877
9890
|
i += String.fromCharCode(48 + d);
|
|
9878
9891
|
try {
|
|
9879
9892
|
for (var y = (s = void 0, ua(l)), _ = y.next(); !_.done; _ = y.next()) {
|
|
@@ -9894,8 +9907,8 @@ var Be = (
|
|
|
9894
9907
|
}, e.prototype.getBarcodeFormat = function() {
|
|
9895
9908
|
return H.EAN_8;
|
|
9896
9909
|
}, e;
|
|
9897
|
-
}(
|
|
9898
|
-
),
|
|
9910
|
+
}(Ee)
|
|
9911
|
+
), zl = /* @__PURE__ */ function() {
|
|
9899
9912
|
var t = function(e, r) {
|
|
9900
9913
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
9901
9914
|
n.__proto__ = i;
|
|
@@ -9913,7 +9926,7 @@ var Be = (
|
|
|
9913
9926
|
}(), fa = (
|
|
9914
9927
|
/** @class */
|
|
9915
9928
|
function(t) {
|
|
9916
|
-
|
|
9929
|
+
zl(e, t);
|
|
9917
9930
|
function e() {
|
|
9918
9931
|
var r = t !== null && t.apply(this, arguments) || this;
|
|
9919
9932
|
return r.ean13Reader = new vi(), r;
|
|
@@ -9936,8 +9949,8 @@ var Be = (
|
|
|
9936
9949
|
}, e.prototype.reset = function() {
|
|
9937
9950
|
this.ean13Reader.reset();
|
|
9938
9951
|
}, e;
|
|
9939
|
-
}(
|
|
9940
|
-
),
|
|
9952
|
+
}(Ee)
|
|
9953
|
+
), Wl = /* @__PURE__ */ function() {
|
|
9941
9954
|
var t = function(e, r) {
|
|
9942
9955
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
9943
9956
|
n.__proto__ = i;
|
|
@@ -9952,7 +9965,7 @@ var Be = (
|
|
|
9952
9965
|
}
|
|
9953
9966
|
e.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
|
|
9954
9967
|
};
|
|
9955
|
-
}(),
|
|
9968
|
+
}(), Xl = function(t) {
|
|
9956
9969
|
var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0;
|
|
9957
9970
|
if (r) return r.call(t);
|
|
9958
9971
|
if (t && typeof t.length == "number") return {
|
|
@@ -9964,7 +9977,7 @@ var Be = (
|
|
|
9964
9977
|
}, ca = (
|
|
9965
9978
|
/** @class */
|
|
9966
9979
|
function(t) {
|
|
9967
|
-
|
|
9980
|
+
Wl(e, t);
|
|
9968
9981
|
function e() {
|
|
9969
9982
|
var r = t.call(this) || this;
|
|
9970
9983
|
return r.decodeMiddleCounters = new Int32Array(4), r;
|
|
@@ -9978,7 +9991,7 @@ var Be = (
|
|
|
9978
9991
|
var h = e.decodeDigit(r, s, l, e.L_AND_G_PATTERNS);
|
|
9979
9992
|
i += String.fromCharCode(48 + h % 10);
|
|
9980
9993
|
try {
|
|
9981
|
-
for (var d = (a = void 0,
|
|
9994
|
+
for (var d = (a = void 0, Xl(s)), v = d.next(); !v.done; v = d.next()) {
|
|
9982
9995
|
var p = v.value;
|
|
9983
9996
|
l += p;
|
|
9984
9997
|
}
|
|
@@ -9997,7 +10010,7 @@ var Be = (
|
|
|
9997
10010
|
}, e.prototype.decodeEnd = function(r, n) {
|
|
9998
10011
|
return e.findGuardPatternWithoutCounters(r, n, !0, e.MIDDLE_END_PATTERN);
|
|
9999
10012
|
}, e.prototype.checkChecksum = function(r) {
|
|
10000
|
-
return
|
|
10013
|
+
return Ee.checkChecksum(e.convertUPCEtoUPCA(r));
|
|
10001
10014
|
}, e.determineNumSysAndCheckDigit = function(r, n) {
|
|
10002
10015
|
for (var i = 0; i <= 1; i++)
|
|
10003
10016
|
for (var a = 0; a < 10; a++)
|
|
@@ -10044,8 +10057,8 @@ var Be = (
|
|
|
10044
10057
|
Int32Array.from([56, 52, 50, 49, 44, 38, 35, 42, 41, 37]),
|
|
10045
10058
|
Int32Array.from([7, 11, 13, 14, 19, 25, 28, 21, 22, 1])
|
|
10046
10059
|
], e;
|
|
10047
|
-
}(
|
|
10048
|
-
),
|
|
10060
|
+
}(Ee)
|
|
10061
|
+
), jl = /* @__PURE__ */ function() {
|
|
10049
10062
|
var t = function(e, r) {
|
|
10050
10063
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
10051
10064
|
n.__proto__ = i;
|
|
@@ -10072,7 +10085,7 @@ var Be = (
|
|
|
10072
10085
|
}, jn = (
|
|
10073
10086
|
/** @class */
|
|
10074
10087
|
function(t) {
|
|
10075
|
-
|
|
10088
|
+
jl(e, t);
|
|
10076
10089
|
function e(r) {
|
|
10077
10090
|
var n = t.call(this) || this, i = r == null ? null : r.get(xe.POSSIBLE_FORMATS), a = [];
|
|
10078
10091
|
return i != null && (i.indexOf(H.EAN_13) > -1 && a.push(new vi()), i.indexOf(H.UPC_A) > -1 && a.push(new fa()), i.indexOf(H.EAN_8) > -1 && a.push(new la()), i.indexOf(H.UPC_E) > -1 && a.push(new ca())), a.length === 0 && (a.push(new vi()), a.push(new fa()), a.push(new la()), a.push(new ca())), n.readers = a, n;
|
|
@@ -10120,7 +10133,7 @@ var Be = (
|
|
|
10120
10133
|
}
|
|
10121
10134
|
}, e;
|
|
10122
10135
|
}(Be)
|
|
10123
|
-
),
|
|
10136
|
+
), Yl = /* @__PURE__ */ function() {
|
|
10124
10137
|
var t = function(e, r) {
|
|
10125
10138
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
10126
10139
|
n.__proto__ = i;
|
|
@@ -10135,7 +10148,7 @@ var Be = (
|
|
|
10135
10148
|
}
|
|
10136
10149
|
e.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
|
|
10137
10150
|
};
|
|
10138
|
-
}(),
|
|
10151
|
+
}(), Kl = function(t) {
|
|
10139
10152
|
var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0;
|
|
10140
10153
|
if (r) return r.call(t);
|
|
10141
10154
|
if (t && typeof t.length == "number") return {
|
|
@@ -10147,7 +10160,7 @@ var Be = (
|
|
|
10147
10160
|
}, Ut = (
|
|
10148
10161
|
/** @class */
|
|
10149
10162
|
function(t) {
|
|
10150
|
-
|
|
10163
|
+
Yl(e, t);
|
|
10151
10164
|
function e() {
|
|
10152
10165
|
var r = t.call(this) || this;
|
|
10153
10166
|
return r.decodeFinderCounters = new Int32Array(4), r.dataCharacterCounters = new Int32Array(8), r.oddRoundingErrors = new Array(4), r.evenRoundingErrors = new Array(4), r.oddCounts = new Array(r.dataCharacterCounters.length / 2), r.evenCounts = new Array(r.dataCharacterCounters.length / 2), r;
|
|
@@ -10184,7 +10197,7 @@ var Be = (
|
|
|
10184
10197
|
if (s >= e.MIN_FINDER_PATTERN_RATIO && s <= e.MAX_FINDER_PATTERN_RATIO) {
|
|
10185
10198
|
var u = Number.MAX_SAFE_INTEGER, l = Number.MIN_SAFE_INTEGER;
|
|
10186
10199
|
try {
|
|
10187
|
-
for (var f =
|
|
10200
|
+
for (var f = Kl(r), c = f.next(); !c.done; c = f.next()) {
|
|
10188
10201
|
var h = c.value;
|
|
10189
10202
|
h > l && (l = h), h < u && (u = h);
|
|
10190
10203
|
}
|
|
@@ -10244,7 +10257,7 @@ var Be = (
|
|
|
10244
10257
|
return this.value;
|
|
10245
10258
|
}, t;
|
|
10246
10259
|
}()
|
|
10247
|
-
),
|
|
10260
|
+
), Zl = function(t) {
|
|
10248
10261
|
var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0;
|
|
10249
10262
|
if (r) return r.call(t);
|
|
10250
10263
|
if (t && typeof t.length == "number") return {
|
|
@@ -10261,7 +10274,7 @@ var Be = (
|
|
|
10261
10274
|
return t.getRSSvalue = function(e, r, n) {
|
|
10262
10275
|
var i, a, o = 0;
|
|
10263
10276
|
try {
|
|
10264
|
-
for (var s =
|
|
10277
|
+
for (var s = Zl(e), u = s.next(); !u.done; u = s.next()) {
|
|
10265
10278
|
var l = u.value;
|
|
10266
10279
|
o += l;
|
|
10267
10280
|
}
|
|
@@ -10298,7 +10311,7 @@ var Be = (
|
|
|
10298
10311
|
return a;
|
|
10299
10312
|
}, t;
|
|
10300
10313
|
}()
|
|
10301
|
-
),
|
|
10314
|
+
), ql = (
|
|
10302
10315
|
/** @class */
|
|
10303
10316
|
function() {
|
|
10304
10317
|
function t() {
|
|
@@ -10340,7 +10353,7 @@ var Be = (
|
|
|
10340
10353
|
return this.newPosition;
|
|
10341
10354
|
}, t;
|
|
10342
10355
|
}()
|
|
10343
|
-
),
|
|
10356
|
+
), Ql = /* @__PURE__ */ function() {
|
|
10344
10357
|
var t = function(e, r) {
|
|
10345
10358
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
10346
10359
|
n.__proto__ = i;
|
|
@@ -10358,7 +10371,7 @@ var Be = (
|
|
|
10358
10371
|
}(), Je = (
|
|
10359
10372
|
/** @class */
|
|
10360
10373
|
function(t) {
|
|
10361
|
-
|
|
10374
|
+
Ql(e, t);
|
|
10362
10375
|
function e(r, n) {
|
|
10363
10376
|
var i = t.call(this, r) || this;
|
|
10364
10377
|
return i.value = n, i;
|
|
@@ -10369,7 +10382,7 @@ var Be = (
|
|
|
10369
10382
|
return this.value === e.FNC1;
|
|
10370
10383
|
}, e.FNC1 = "$", e;
|
|
10371
10384
|
}(Ni)
|
|
10372
|
-
),
|
|
10385
|
+
), Jl = /* @__PURE__ */ function() {
|
|
10373
10386
|
var t = function(e, r) {
|
|
10374
10387
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
10375
10388
|
n.__proto__ = i;
|
|
@@ -10387,7 +10400,7 @@ var Be = (
|
|
|
10387
10400
|
}(), Ft = (
|
|
10388
10401
|
/** @class */
|
|
10389
10402
|
function(t) {
|
|
10390
|
-
|
|
10403
|
+
Jl(e, t);
|
|
10391
10404
|
function e(r, n, i) {
|
|
10392
10405
|
var a = t.call(this, r) || this;
|
|
10393
10406
|
return i ? (a.remaining = !0, a.remainingValue = a.remainingValue) : (a.remaining = !1, a.remainingValue = 0), a.newString = n, a;
|
|
@@ -10400,7 +10413,7 @@ var Be = (
|
|
|
10400
10413
|
return this.remainingValue;
|
|
10401
10414
|
}, e;
|
|
10402
10415
|
}(Ni)
|
|
10403
|
-
),
|
|
10416
|
+
), ef = /* @__PURE__ */ function() {
|
|
10404
10417
|
var t = function(e, r) {
|
|
10405
10418
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
10406
10419
|
n.__proto__ = i;
|
|
@@ -10418,7 +10431,7 @@ var Be = (
|
|
|
10418
10431
|
}(), Xt = (
|
|
10419
10432
|
/** @class */
|
|
10420
10433
|
function(t) {
|
|
10421
|
-
|
|
10434
|
+
ef(e, t);
|
|
10422
10435
|
function e(r, n, i) {
|
|
10423
10436
|
var a = t.call(this, r) || this;
|
|
10424
10437
|
if (n < 0 || n > 10 || i < 0 || i > 10)
|
|
@@ -10448,7 +10461,7 @@ var Be = (
|
|
|
10448
10461
|
}
|
|
10449
10462
|
};
|
|
10450
10463
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
10451
|
-
},
|
|
10464
|
+
}, tf = (
|
|
10452
10465
|
/** @class */
|
|
10453
10466
|
function() {
|
|
10454
10467
|
function t() {
|
|
@@ -10681,7 +10694,7 @@ var Be = (
|
|
|
10681
10694
|
return t.prototype.decodeAllCodes = function(e, r) {
|
|
10682
10695
|
var n = r, i = null;
|
|
10683
10696
|
do {
|
|
10684
|
-
var a = this.decodeGeneralPurposeField(n, i), o =
|
|
10697
|
+
var a = this.decodeGeneralPurposeField(n, i), o = tf.parseFieldsInGeneralPurpose(a.getNewString());
|
|
10685
10698
|
if (o != null && e.append(o), a.isRemaining() ? i = "" + a.getRemainingValue() : i = null, n === a.getNewPosition())
|
|
10686
10699
|
break;
|
|
10687
10700
|
n = a.getNewPosition();
|
|
@@ -10928,7 +10941,7 @@ var Be = (
|
|
|
10928
10941
|
return this.generalDecoder;
|
|
10929
10942
|
}, t;
|
|
10930
10943
|
}()
|
|
10931
|
-
),
|
|
10944
|
+
), rf = /* @__PURE__ */ function() {
|
|
10932
10945
|
var t = function(e, r) {
|
|
10933
10946
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
10934
10947
|
n.__proto__ = i;
|
|
@@ -10946,7 +10959,7 @@ var Be = (
|
|
|
10946
10959
|
}(), nt = (
|
|
10947
10960
|
/** @class */
|
|
10948
10961
|
function(t) {
|
|
10949
|
-
|
|
10962
|
+
rf(e, t);
|
|
10950
10963
|
function e(r) {
|
|
10951
10964
|
return t.call(this, r) || this;
|
|
10952
10965
|
}
|
|
@@ -10968,7 +10981,7 @@ var Be = (
|
|
|
10968
10981
|
i = 10 - i % 10, i === 10 && (i = 0), r.append(i);
|
|
10969
10982
|
}, e.GTIN_SIZE = 40, e;
|
|
10970
10983
|
}(io)
|
|
10971
|
-
),
|
|
10984
|
+
), nf = /* @__PURE__ */ function() {
|
|
10972
10985
|
var t = function(e, r) {
|
|
10973
10986
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
10974
10987
|
n.__proto__ = i;
|
|
@@ -10983,10 +10996,10 @@ var Be = (
|
|
|
10983
10996
|
}
|
|
10984
10997
|
e.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
|
|
10985
10998
|
};
|
|
10986
|
-
}(),
|
|
10999
|
+
}(), af = (
|
|
10987
11000
|
/** @class */
|
|
10988
11001
|
function(t) {
|
|
10989
|
-
|
|
11002
|
+
nf(e, t);
|
|
10990
11003
|
function e(r) {
|
|
10991
11004
|
return t.call(this, r) || this;
|
|
10992
11005
|
}
|
|
@@ -10997,7 +11010,7 @@ var Be = (
|
|
|
10997
11010
|
return r.append(i), this.encodeCompressedGtinWithoutAI(r, e.HEADER_SIZE + 4, n), this.getGeneralDecoder().decodeAllCodes(r, e.HEADER_SIZE + 44);
|
|
10998
11011
|
}, e.HEADER_SIZE = 4, e;
|
|
10999
11012
|
}(nt)
|
|
11000
|
-
),
|
|
11013
|
+
), of = /* @__PURE__ */ function() {
|
|
11001
11014
|
var t = function(e, r) {
|
|
11002
11015
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
11003
11016
|
n.__proto__ = i;
|
|
@@ -11012,10 +11025,10 @@ var Be = (
|
|
|
11012
11025
|
}
|
|
11013
11026
|
e.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
|
|
11014
11027
|
};
|
|
11015
|
-
}(),
|
|
11028
|
+
}(), sf = (
|
|
11016
11029
|
/** @class */
|
|
11017
11030
|
function(t) {
|
|
11018
|
-
|
|
11031
|
+
of(e, t);
|
|
11019
11032
|
function e(r) {
|
|
11020
11033
|
return t.call(this, r) || this;
|
|
11021
11034
|
}
|
|
@@ -11024,7 +11037,7 @@ var Be = (
|
|
|
11024
11037
|
return this.getGeneralDecoder().decodeAllCodes(r, e.HEADER_SIZE);
|
|
11025
11038
|
}, e.HEADER_SIZE = 5, e;
|
|
11026
11039
|
}(io)
|
|
11027
|
-
),
|
|
11040
|
+
), uf = /* @__PURE__ */ function() {
|
|
11028
11041
|
var t = function(e, r) {
|
|
11029
11042
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
11030
11043
|
n.__proto__ = i;
|
|
@@ -11042,7 +11055,7 @@ var Be = (
|
|
|
11042
11055
|
}(), fn = (
|
|
11043
11056
|
/** @class */
|
|
11044
11057
|
function(t) {
|
|
11045
|
-
|
|
11058
|
+
uf(e, t);
|
|
11046
11059
|
function e(r) {
|
|
11047
11060
|
return t.call(this, r) || this;
|
|
11048
11061
|
}
|
|
@@ -11054,7 +11067,7 @@ var Be = (
|
|
|
11054
11067
|
r.append(o);
|
|
11055
11068
|
}, e;
|
|
11056
11069
|
}(nt)
|
|
11057
|
-
),
|
|
11070
|
+
), lf = /* @__PURE__ */ function() {
|
|
11058
11071
|
var t = function(e, r) {
|
|
11059
11072
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
11060
11073
|
n.__proto__ = i;
|
|
@@ -11072,7 +11085,7 @@ var Be = (
|
|
|
11072
11085
|
}(), ao = (
|
|
11073
11086
|
/** @class */
|
|
11074
11087
|
function(t) {
|
|
11075
|
-
|
|
11088
|
+
lf(e, t);
|
|
11076
11089
|
function e(r) {
|
|
11077
11090
|
return t.call(this, r) || this;
|
|
11078
11091
|
}
|
|
@@ -11083,7 +11096,7 @@ var Be = (
|
|
|
11083
11096
|
return this.encodeCompressedGtin(r, e.HEADER_SIZE), this.encodeCompressedWeight(r, e.HEADER_SIZE + fn.GTIN_SIZE, e.WEIGHT_SIZE), r.toString();
|
|
11084
11097
|
}, e.HEADER_SIZE = 5, e.WEIGHT_SIZE = 15, e;
|
|
11085
11098
|
}(fn)
|
|
11086
|
-
),
|
|
11099
|
+
), ff = /* @__PURE__ */ function() {
|
|
11087
11100
|
var t = function(e, r) {
|
|
11088
11101
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
11089
11102
|
n.__proto__ = i;
|
|
@@ -11098,10 +11111,10 @@ var Be = (
|
|
|
11098
11111
|
}
|
|
11099
11112
|
e.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
|
|
11100
11113
|
};
|
|
11101
|
-
}(),
|
|
11114
|
+
}(), cf = (
|
|
11102
11115
|
/** @class */
|
|
11103
11116
|
function(t) {
|
|
11104
|
-
|
|
11117
|
+
ff(e, t);
|
|
11105
11118
|
function e(r) {
|
|
11106
11119
|
return t.call(this, r) || this;
|
|
11107
11120
|
}
|
|
@@ -11111,7 +11124,7 @@ var Be = (
|
|
|
11111
11124
|
return r;
|
|
11112
11125
|
}, e;
|
|
11113
11126
|
}(ao)
|
|
11114
|
-
),
|
|
11127
|
+
), df = /* @__PURE__ */ function() {
|
|
11115
11128
|
var t = function(e, r) {
|
|
11116
11129
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
11117
11130
|
n.__proto__ = i;
|
|
@@ -11126,10 +11139,10 @@ var Be = (
|
|
|
11126
11139
|
}
|
|
11127
11140
|
e.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
|
|
11128
11141
|
};
|
|
11129
|
-
}(),
|
|
11142
|
+
}(), hf = (
|
|
11130
11143
|
/** @class */
|
|
11131
11144
|
function(t) {
|
|
11132
|
-
|
|
11145
|
+
df(e, t);
|
|
11133
11146
|
function e(r) {
|
|
11134
11147
|
return t.call(this, r) || this;
|
|
11135
11148
|
}
|
|
@@ -11139,7 +11152,7 @@ var Be = (
|
|
|
11139
11152
|
return r < 1e4 ? r : r - 1e4;
|
|
11140
11153
|
}, e;
|
|
11141
11154
|
}(ao)
|
|
11142
|
-
),
|
|
11155
|
+
), vf = /* @__PURE__ */ function() {
|
|
11143
11156
|
var t = function(e, r) {
|
|
11144
11157
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
11145
11158
|
n.__proto__ = i;
|
|
@@ -11154,10 +11167,10 @@ var Be = (
|
|
|
11154
11167
|
}
|
|
11155
11168
|
e.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
|
|
11156
11169
|
};
|
|
11157
|
-
}(),
|
|
11170
|
+
}(), pf = (
|
|
11158
11171
|
/** @class */
|
|
11159
11172
|
function(t) {
|
|
11160
|
-
|
|
11173
|
+
vf(e, t);
|
|
11161
11174
|
function e(r) {
|
|
11162
11175
|
return t.call(this, r) || this;
|
|
11163
11176
|
}
|
|
@@ -11172,7 +11185,7 @@ var Be = (
|
|
|
11172
11185
|
return r.append(i.getNewString()), r.toString();
|
|
11173
11186
|
}, e.HEADER_SIZE = 8, e.LAST_DIGIT_SIZE = 2, e;
|
|
11174
11187
|
}(nt)
|
|
11175
|
-
),
|
|
11188
|
+
), gf = /* @__PURE__ */ function() {
|
|
11176
11189
|
var t = function(e, r) {
|
|
11177
11190
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
11178
11191
|
n.__proto__ = i;
|
|
@@ -11187,10 +11200,10 @@ var Be = (
|
|
|
11187
11200
|
}
|
|
11188
11201
|
e.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
|
|
11189
11202
|
};
|
|
11190
|
-
}(),
|
|
11203
|
+
}(), xf = (
|
|
11191
11204
|
/** @class */
|
|
11192
11205
|
function(t) {
|
|
11193
|
-
|
|
11206
|
+
gf(e, t);
|
|
11194
11207
|
function e(r) {
|
|
11195
11208
|
return t.call(this, r) || this;
|
|
11196
11209
|
}
|
|
@@ -11207,7 +11220,7 @@ var Be = (
|
|
|
11207
11220
|
return r.append(a.getNewString()), r.toString();
|
|
11208
11221
|
}, e.HEADER_SIZE = 8, e.LAST_DIGIT_SIZE = 2, e.FIRST_THREE_DIGITS_SIZE = 10, e;
|
|
11209
11222
|
}(nt)
|
|
11210
|
-
),
|
|
11223
|
+
), yf = /* @__PURE__ */ function() {
|
|
11211
11224
|
var t = function(e, r) {
|
|
11212
11225
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
11213
11226
|
n.__proto__ = i;
|
|
@@ -11225,7 +11238,7 @@ var Be = (
|
|
|
11225
11238
|
}(), St = (
|
|
11226
11239
|
/** @class */
|
|
11227
11240
|
function(t) {
|
|
11228
|
-
|
|
11241
|
+
yf(e, t);
|
|
11229
11242
|
function e(r, n, i) {
|
|
11230
11243
|
var a = t.call(this, r) || this;
|
|
11231
11244
|
return a.dateCode = i, a.firstAIdigits = n, a;
|
|
@@ -11253,25 +11266,25 @@ var Be = (
|
|
|
11253
11266
|
}, e.HEADER_SIZE = 8, e.WEIGHT_SIZE = 20, e.DATE_SIZE = 16, e;
|
|
11254
11267
|
}(fn)
|
|
11255
11268
|
);
|
|
11256
|
-
function
|
|
11269
|
+
function wf(t) {
|
|
11257
11270
|
try {
|
|
11258
11271
|
if (t.get(1))
|
|
11259
|
-
return new
|
|
11272
|
+
return new af(t);
|
|
11260
11273
|
if (!t.get(2))
|
|
11261
|
-
return new
|
|
11274
|
+
return new sf(t);
|
|
11262
11275
|
var e = ln.extractNumericValueFromBitArray(t, 1, 4);
|
|
11263
11276
|
switch (e) {
|
|
11264
11277
|
case 4:
|
|
11265
|
-
return new
|
|
11278
|
+
return new cf(t);
|
|
11266
11279
|
case 5:
|
|
11267
|
-
return new
|
|
11280
|
+
return new hf(t);
|
|
11268
11281
|
}
|
|
11269
11282
|
var r = ln.extractNumericValueFromBitArray(t, 1, 5);
|
|
11270
11283
|
switch (r) {
|
|
11271
11284
|
case 12:
|
|
11272
|
-
return new
|
|
11285
|
+
return new pf(t);
|
|
11273
11286
|
case 13:
|
|
11274
|
-
return new
|
|
11287
|
+
return new xf(t);
|
|
11275
11288
|
}
|
|
11276
11289
|
var n = ln.extractNumericValueFromBitArray(t, 1, 7);
|
|
11277
11290
|
switch (n) {
|
|
@@ -11323,7 +11336,7 @@ var ha = (
|
|
|
11323
11336
|
return e;
|
|
11324
11337
|
}, t;
|
|
11325
11338
|
}()
|
|
11326
|
-
),
|
|
11339
|
+
), mf = (
|
|
11327
11340
|
/** @class */
|
|
11328
11341
|
function() {
|
|
11329
11342
|
function t(e, r, n) {
|
|
@@ -11352,7 +11365,7 @@ var ha = (
|
|
|
11352
11365
|
}
|
|
11353
11366
|
}, t;
|
|
11354
11367
|
}()
|
|
11355
|
-
),
|
|
11368
|
+
), _f = /* @__PURE__ */ function() {
|
|
11356
11369
|
var t = function(e, r) {
|
|
11357
11370
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
11358
11371
|
n.__proto__ = i;
|
|
@@ -11376,10 +11389,10 @@ var ha = (
|
|
|
11376
11389
|
}
|
|
11377
11390
|
};
|
|
11378
11391
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
11379
|
-
},
|
|
11392
|
+
}, Af = (
|
|
11380
11393
|
/** @class */
|
|
11381
11394
|
function(t) {
|
|
11382
|
-
|
|
11395
|
+
_f(e, t);
|
|
11383
11396
|
function e() {
|
|
11384
11397
|
var r = t !== null && t.apply(this, arguments) || this;
|
|
11385
11398
|
return r.pairs = new Array(e.MAX_PAIRS), r.rows = new Array(), r.startEnd = [2], r;
|
|
@@ -11489,7 +11502,7 @@ var ha = (
|
|
|
11489
11502
|
}
|
|
11490
11503
|
a = s.isEquivalent(this.pairs), i++;
|
|
11491
11504
|
}
|
|
11492
|
-
o || a || e.isPartialRow(this.pairs, this.rows) || (this.rows.push(i, new
|
|
11505
|
+
o || a || e.isPartialRow(this.pairs, this.rows) || (this.rows.push(i, new mf(this.pairs, r, n)), this.removePartialRows(this.pairs, this.rows));
|
|
11493
11506
|
}, e.prototype.removePartialRows = function(r, n) {
|
|
11494
11507
|
var i, a, o, s, u, l;
|
|
11495
11508
|
try {
|
|
@@ -11594,7 +11607,7 @@ var ha = (
|
|
|
11594
11607
|
}, e.prototype.getRows = function() {
|
|
11595
11608
|
return this.rows;
|
|
11596
11609
|
}, e.constructResult = function(r) {
|
|
11597
|
-
var n =
|
|
11610
|
+
var n = ql.buildBitArray(r), i = wf(n), a = i.parseInformation(), o = r[0].getFinderPattern().getResultPoints(), s = r[r.length - 1].getFinderPattern().getResultPoints(), u = [o[0], o[1], s[0], s[1]];
|
|
11598
11611
|
return new Xe(a, null, null, u, H.RSS_EXPANDED, null);
|
|
11599
11612
|
}, e.prototype.checkChecksum = function() {
|
|
11600
11613
|
var r = this.pairs.get(0), n = r.getLeftChar(), i = r.getRightChar();
|
|
@@ -11824,7 +11837,7 @@ var ha = (
|
|
|
11824
11837
|
[e.FINDER_PAT_A, e.FINDER_PAT_A, e.FINDER_PAT_B, e.FINDER_PAT_B, e.FINDER_PAT_C, e.FINDER_PAT_D, e.FINDER_PAT_D, e.FINDER_PAT_E, e.FINDER_PAT_E, e.FINDER_PAT_F, e.FINDER_PAT_F]
|
|
11825
11838
|
], e.MAX_PAIRS = 11, e;
|
|
11826
11839
|
}(Ut)
|
|
11827
|
-
),
|
|
11840
|
+
), Ef = /* @__PURE__ */ function() {
|
|
11828
11841
|
var t = function(e, r) {
|
|
11829
11842
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
11830
11843
|
n.__proto__ = i;
|
|
@@ -11839,10 +11852,10 @@ var ha = (
|
|
|
11839
11852
|
}
|
|
11840
11853
|
e.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
|
|
11841
11854
|
};
|
|
11842
|
-
}(),
|
|
11855
|
+
}(), bf = (
|
|
11843
11856
|
/** @class */
|
|
11844
11857
|
function(t) {
|
|
11845
|
-
|
|
11858
|
+
Ef(e, t);
|
|
11846
11859
|
function e(r, n, i) {
|
|
11847
11860
|
var a = t.call(this, r, n) || this;
|
|
11848
11861
|
return a.count = 0, a.finderPattern = i, a;
|
|
@@ -11855,7 +11868,7 @@ var ha = (
|
|
|
11855
11868
|
this.count++;
|
|
11856
11869
|
}, e;
|
|
11857
11870
|
}(wn)
|
|
11858
|
-
),
|
|
11871
|
+
), Cf = /* @__PURE__ */ function() {
|
|
11859
11872
|
var t = function(e, r) {
|
|
11860
11873
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
11861
11874
|
n.__proto__ = i;
|
|
@@ -11882,7 +11895,7 @@ var ha = (
|
|
|
11882
11895
|
}, va = (
|
|
11883
11896
|
/** @class */
|
|
11884
11897
|
function(t) {
|
|
11885
|
-
|
|
11898
|
+
Cf(e, t);
|
|
11886
11899
|
function e() {
|
|
11887
11900
|
var r = t !== null && t.apply(this, arguments) || this;
|
|
11888
11901
|
return r.possibleLeftPairs = [], r.possibleRightPairs = [], r;
|
|
@@ -11969,7 +11982,7 @@ var ha = (
|
|
|
11969
11982
|
n && (l = r.getSize() - 1 - l), u.foundPossibleResultPoint(new F(l, i));
|
|
11970
11983
|
}
|
|
11971
11984
|
var f = this.decodeDataCharacter(r, s, !0), c = this.decodeDataCharacter(r, s, !1);
|
|
11972
|
-
return new
|
|
11985
|
+
return new bf(1597 * f.getValue() + c.getValue(), f.getChecksumPortion() + 4 * c.getChecksumPortion(), s);
|
|
11973
11986
|
} catch {
|
|
11974
11987
|
return null;
|
|
11975
11988
|
}
|
|
@@ -12090,7 +12103,7 @@ var ha = (
|
|
|
12090
12103
|
Int32Array.from([1, 3, 9, 1])
|
|
12091
12104
|
], e;
|
|
12092
12105
|
}(Ut)
|
|
12093
|
-
),
|
|
12106
|
+
), Sf = /* @__PURE__ */ function() {
|
|
12094
12107
|
var t = function(e, r) {
|
|
12095
12108
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
12096
12109
|
n.__proto__ = i;
|
|
@@ -12108,12 +12121,12 @@ var ha = (
|
|
|
12108
12121
|
}(), Or = (
|
|
12109
12122
|
/** @class */
|
|
12110
12123
|
function(t) {
|
|
12111
|
-
|
|
12124
|
+
Sf(e, t);
|
|
12112
12125
|
function e(r) {
|
|
12113
12126
|
var n = t.call(this) || this;
|
|
12114
12127
|
n.readers = [];
|
|
12115
12128
|
var i = r ? r.get(xe.POSSIBLE_FORMATS) : null, a = r && r.get(xe.ASSUME_CODE_39_CHECK_DIGIT) !== void 0;
|
|
12116
|
-
return i && ((i.includes(H.EAN_13) || i.includes(H.UPC_A) || i.includes(H.EAN_8) || i.includes(H.UPC_E)) && n.readers.push(new jn(r)), i.includes(H.CODE_39) && n.readers.push(new aa(a)), i.includes(H.CODE_128) && n.readers.push(new ia()), i.includes(H.ITF) && n.readers.push(new oa()), i.includes(H.RSS_14) && n.readers.push(new va()), i.includes(H.RSS_EXPANDED) && (console.warn("RSS Expanded reader IS NOT ready for production yet! use at your own risk."), n.readers.push(new
|
|
12129
|
+
return i && ((i.includes(H.EAN_13) || i.includes(H.UPC_A) || i.includes(H.EAN_8) || i.includes(H.UPC_E)) && n.readers.push(new jn(r)), i.includes(H.CODE_39) && n.readers.push(new aa(a)), i.includes(H.CODE_128) && n.readers.push(new ia()), i.includes(H.ITF) && n.readers.push(new oa()), i.includes(H.RSS_14) && n.readers.push(new va()), i.includes(H.RSS_EXPANDED) && (console.warn("RSS Expanded reader IS NOT ready for production yet! use at your own risk."), n.readers.push(new Af()))), n.readers.length === 0 && (n.readers.push(new jn(r)), n.readers.push(new aa()), n.readers.push(new jn(r)), n.readers.push(new ia()), n.readers.push(new oa()), n.readers.push(new va())), n;
|
|
12117
12130
|
}
|
|
12118
12131
|
return e.prototype.decodeRow = function(r, n, i) {
|
|
12119
12132
|
for (var a = 0; a < this.readers.length; a++)
|
|
@@ -12128,7 +12141,7 @@ var ha = (
|
|
|
12128
12141
|
});
|
|
12129
12142
|
}, e;
|
|
12130
12143
|
}(Be)
|
|
12131
|
-
),
|
|
12144
|
+
), If = /* @__PURE__ */ function() {
|
|
12132
12145
|
var t = function(e, r) {
|
|
12133
12146
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
12134
12147
|
n.__proto__ = i;
|
|
@@ -12145,7 +12158,7 @@ var ha = (
|
|
|
12145
12158
|
};
|
|
12146
12159
|
}();
|
|
12147
12160
|
(function(t) {
|
|
12148
|
-
|
|
12161
|
+
If(e, t);
|
|
12149
12162
|
function e(r, n) {
|
|
12150
12163
|
return r === void 0 && (r = 500), t.call(this, new Or(n), r, n) || this;
|
|
12151
12164
|
}
|
|
@@ -12184,7 +12197,7 @@ var pa = function(t) {
|
|
|
12184
12197
|
return this.dataCodewords;
|
|
12185
12198
|
}, t;
|
|
12186
12199
|
}()
|
|
12187
|
-
),
|
|
12200
|
+
), Of = (
|
|
12188
12201
|
/** @class */
|
|
12189
12202
|
function() {
|
|
12190
12203
|
function t(e, r, n, i, a, o) {
|
|
@@ -12278,7 +12291,7 @@ var pa = function(t) {
|
|
|
12278
12291
|
];
|
|
12279
12292
|
}, t.VERSIONS = t.buildVersions(), t;
|
|
12280
12293
|
}()
|
|
12281
|
-
),
|
|
12294
|
+
), Tf = (
|
|
12282
12295
|
/** @class */
|
|
12283
12296
|
function() {
|
|
12284
12297
|
function t(e) {
|
|
@@ -12291,7 +12304,7 @@ var pa = function(t) {
|
|
|
12291
12304
|
return this.version;
|
|
12292
12305
|
}, t.readVersion = function(e) {
|
|
12293
12306
|
var r = e.getHeight(), n = e.getWidth();
|
|
12294
|
-
return
|
|
12307
|
+
return Of.getVersionForDimensions(r, n);
|
|
12295
12308
|
}, t.prototype.readCodewords = function() {
|
|
12296
12309
|
var e = new Int8Array(this.version.getTotalCodewords()), r = 0, n = 4, i = 0, a = this.mappingBitMatrix.getHeight(), o = this.mappingBitMatrix.getWidth(), s = !1, u = !1, l = !1, f = !1;
|
|
12297
12310
|
do
|
|
@@ -12360,7 +12373,7 @@ var pa = function(t) {
|
|
|
12360
12373
|
}
|
|
12361
12374
|
};
|
|
12362
12375
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
12363
|
-
},
|
|
12376
|
+
}, Df = (
|
|
12364
12377
|
/** @class */
|
|
12365
12378
|
function() {
|
|
12366
12379
|
function t(e, r) {
|
|
@@ -12448,43 +12461,43 @@ var pa = function(t) {
|
|
|
12448
12461
|
return 8 * (this.bytes.length - this.byteOffset) - this.bitOffset;
|
|
12449
12462
|
}, t;
|
|
12450
12463
|
}()
|
|
12451
|
-
),
|
|
12464
|
+
), Ae;
|
|
12452
12465
|
(function(t) {
|
|
12453
12466
|
t[t.PAD_ENCODE = 0] = "PAD_ENCODE", t[t.ASCII_ENCODE = 1] = "ASCII_ENCODE", t[t.C40_ENCODE = 2] = "C40_ENCODE", t[t.TEXT_ENCODE = 3] = "TEXT_ENCODE", t[t.ANSIX12_ENCODE = 4] = "ANSIX12_ENCODE", t[t.EDIFACT_ENCODE = 5] = "EDIFACT_ENCODE", t[t.BASE256_ENCODE = 6] = "BASE256_ENCODE";
|
|
12454
|
-
})(
|
|
12455
|
-
var
|
|
12467
|
+
})(Ae || (Ae = {}));
|
|
12468
|
+
var Nf = (
|
|
12456
12469
|
/** @class */
|
|
12457
12470
|
function() {
|
|
12458
12471
|
function t() {
|
|
12459
12472
|
}
|
|
12460
12473
|
return t.decode = function(e) {
|
|
12461
|
-
var r = new oo(e), n = new se(), i = new se(), a = new Array(), o =
|
|
12474
|
+
var r = new oo(e), n = new se(), i = new se(), a = new Array(), o = Ae.ASCII_ENCODE;
|
|
12462
12475
|
do
|
|
12463
|
-
if (o ===
|
|
12476
|
+
if (o === Ae.ASCII_ENCODE)
|
|
12464
12477
|
o = this.decodeAsciiSegment(r, n, i);
|
|
12465
12478
|
else {
|
|
12466
12479
|
switch (o) {
|
|
12467
|
-
case
|
|
12480
|
+
case Ae.C40_ENCODE:
|
|
12468
12481
|
this.decodeC40Segment(r, n);
|
|
12469
12482
|
break;
|
|
12470
|
-
case
|
|
12483
|
+
case Ae.TEXT_ENCODE:
|
|
12471
12484
|
this.decodeTextSegment(r, n);
|
|
12472
12485
|
break;
|
|
12473
|
-
case
|
|
12486
|
+
case Ae.ANSIX12_ENCODE:
|
|
12474
12487
|
this.decodeAnsiX12Segment(r, n);
|
|
12475
12488
|
break;
|
|
12476
|
-
case
|
|
12489
|
+
case Ae.EDIFACT_ENCODE:
|
|
12477
12490
|
this.decodeEdifactSegment(r, n);
|
|
12478
12491
|
break;
|
|
12479
|
-
case
|
|
12492
|
+
case Ae.BASE256_ENCODE:
|
|
12480
12493
|
this.decodeBase256Segment(r, n, a);
|
|
12481
12494
|
break;
|
|
12482
12495
|
default:
|
|
12483
12496
|
throw new M();
|
|
12484
12497
|
}
|
|
12485
|
-
o =
|
|
12498
|
+
o = Ae.ASCII_ENCODE;
|
|
12486
12499
|
}
|
|
12487
|
-
while (o !==
|
|
12500
|
+
while (o !== Ae.PAD_ENCODE && r.available() > 0);
|
|
12488
12501
|
return i.length() > 0 && n.append(i.toString()), new In(e, n.toString(), a.length === 0 ? null : a, null);
|
|
12489
12502
|
}, t.decodeAsciiSegment = function(e, r, n) {
|
|
12490
12503
|
var i = !1;
|
|
@@ -12493,18 +12506,18 @@ var Pf = (
|
|
|
12493
12506
|
if (a === 0)
|
|
12494
12507
|
throw new M();
|
|
12495
12508
|
if (a <= 128)
|
|
12496
|
-
return i && (a += 128), r.append(String.fromCharCode(a - 1)),
|
|
12509
|
+
return i && (a += 128), r.append(String.fromCharCode(a - 1)), Ae.ASCII_ENCODE;
|
|
12497
12510
|
if (a === 129)
|
|
12498
|
-
return
|
|
12511
|
+
return Ae.PAD_ENCODE;
|
|
12499
12512
|
if (a <= 229) {
|
|
12500
12513
|
var o = a - 130;
|
|
12501
12514
|
o < 10 && r.append("0"), r.append("" + o);
|
|
12502
12515
|
} else
|
|
12503
12516
|
switch (a) {
|
|
12504
12517
|
case 230:
|
|
12505
|
-
return
|
|
12518
|
+
return Ae.C40_ENCODE;
|
|
12506
12519
|
case 231:
|
|
12507
|
-
return
|
|
12520
|
+
return Ae.BASE256_ENCODE;
|
|
12508
12521
|
case 232:
|
|
12509
12522
|
r.append("");
|
|
12510
12523
|
break;
|
|
@@ -12522,11 +12535,11 @@ var Pf = (
|
|
|
12522
12535
|
r.append("[)>06"), n.insert(0, "");
|
|
12523
12536
|
break;
|
|
12524
12537
|
case 238:
|
|
12525
|
-
return
|
|
12538
|
+
return Ae.ANSIX12_ENCODE;
|
|
12526
12539
|
case 239:
|
|
12527
|
-
return
|
|
12540
|
+
return Ae.TEXT_ENCODE;
|
|
12528
12541
|
case 240:
|
|
12529
|
-
return
|
|
12542
|
+
return Ae.EDIFACT_ENCODE;
|
|
12530
12543
|
case 241:
|
|
12531
12544
|
break;
|
|
12532
12545
|
default:
|
|
@@ -12535,7 +12548,7 @@ var Pf = (
|
|
|
12535
12548
|
break;
|
|
12536
12549
|
}
|
|
12537
12550
|
} while (e.available() > 0);
|
|
12538
|
-
return
|
|
12551
|
+
return Ae.ASCII_ENCODE;
|
|
12539
12552
|
}, t.decodeC40Segment = function(e, r) {
|
|
12540
12553
|
var n = !1, i = [], a = 0;
|
|
12541
12554
|
do {
|
|
@@ -12853,7 +12866,7 @@ var Pf = (
|
|
|
12853
12866
|
""
|
|
12854
12867
|
], t;
|
|
12855
12868
|
}()
|
|
12856
|
-
),
|
|
12869
|
+
), Rf = function(t) {
|
|
12857
12870
|
var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0;
|
|
12858
12871
|
if (r) return r.call(t);
|
|
12859
12872
|
if (t && typeof t.length == "number") return {
|
|
@@ -12862,16 +12875,16 @@ var Pf = (
|
|
|
12862
12875
|
}
|
|
12863
12876
|
};
|
|
12864
12877
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
12865
|
-
},
|
|
12878
|
+
}, Pf = (
|
|
12866
12879
|
/** @class */
|
|
12867
12880
|
function() {
|
|
12868
12881
|
function t() {
|
|
12869
12882
|
this.rsDecoder = new On(ze.DATA_MATRIX_FIELD_256);
|
|
12870
12883
|
}
|
|
12871
12884
|
return t.prototype.decode = function(e) {
|
|
12872
|
-
var r, n, i = new
|
|
12885
|
+
var r, n, i = new Tf(e), a = i.getVersion(), o = i.readCodewords(), s = Df.getDataBlocks(o, a), u = 0;
|
|
12873
12886
|
try {
|
|
12874
|
-
for (var l =
|
|
12887
|
+
for (var l = Rf(s), f = l.next(); !f.done; f = l.next()) {
|
|
12875
12888
|
var c = f.value;
|
|
12876
12889
|
u += c.getNumDataCodewords();
|
|
12877
12890
|
}
|
|
@@ -12890,7 +12903,7 @@ var Pf = (
|
|
|
12890
12903
|
for (var y = 0; y < m; y++)
|
|
12891
12904
|
h[y * d + v] = w[y];
|
|
12892
12905
|
}
|
|
12893
|
-
return
|
|
12906
|
+
return Nf.decode(h);
|
|
12894
12907
|
}, t.prototype.correctErrors = function(e, r) {
|
|
12895
12908
|
var n = new Int32Array(e);
|
|
12896
12909
|
try {
|
|
@@ -12902,7 +12915,7 @@ var Pf = (
|
|
|
12902
12915
|
e[i] = n[i];
|
|
12903
12916
|
}, t;
|
|
12904
12917
|
}()
|
|
12905
|
-
),
|
|
12918
|
+
), Bf = (
|
|
12906
12919
|
/** @class */
|
|
12907
12920
|
function() {
|
|
12908
12921
|
function t(e) {
|
|
@@ -12972,7 +12985,7 @@ var Pf = (
|
|
|
12972
12985
|
/** @class */
|
|
12973
12986
|
function() {
|
|
12974
12987
|
function t() {
|
|
12975
|
-
this.decoder = new
|
|
12988
|
+
this.decoder = new Pf();
|
|
12976
12989
|
}
|
|
12977
12990
|
return t.prototype.decode = function(e, r) {
|
|
12978
12991
|
r === void 0 && (r = null);
|
|
@@ -12981,7 +12994,7 @@ var Pf = (
|
|
|
12981
12994
|
var a = t.extractPureBits(e.getBlackMatrix());
|
|
12982
12995
|
n = this.decoder.decode(a), i = t.NO_POINTS;
|
|
12983
12996
|
} else {
|
|
12984
|
-
var o = new
|
|
12997
|
+
var o = new Bf(e.getBlackMatrix()).detect();
|
|
12985
12998
|
n = this.decoder.decode(o.getBits()), i = o.getPoints();
|
|
12986
12999
|
}
|
|
12987
13000
|
var s = n.getRawBytes(), u = new Xe(n.getText(), s, 8 * s.length, i, H.DATA_MATRIX, ce.currentTimeMillis()), l = n.getByteSegments();
|
|
@@ -13013,7 +13026,7 @@ var Pf = (
|
|
|
13013
13026
|
return o;
|
|
13014
13027
|
}, t.NO_POINTS = [], t;
|
|
13015
13028
|
}()
|
|
13016
|
-
),
|
|
13029
|
+
), Mf = /* @__PURE__ */ function() {
|
|
13017
13030
|
var t = function(e, r) {
|
|
13018
13031
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
13019
13032
|
n.__proto__ = i;
|
|
@@ -13030,7 +13043,7 @@ var Pf = (
|
|
|
13030
13043
|
};
|
|
13031
13044
|
}();
|
|
13032
13045
|
(function(t) {
|
|
13033
|
-
|
|
13046
|
+
Mf(e, t);
|
|
13034
13047
|
function e(r) {
|
|
13035
13048
|
return r === void 0 && (r = 500), t.call(this, new pi(), r) || this;
|
|
13036
13049
|
}
|
|
@@ -13040,7 +13053,7 @@ var qt;
|
|
|
13040
13053
|
(function(t) {
|
|
13041
13054
|
t[t.L = 0] = "L", t[t.M = 1] = "M", t[t.Q = 2] = "Q", t[t.H = 3] = "H";
|
|
13042
13055
|
})(qt || (qt = {}));
|
|
13043
|
-
var
|
|
13056
|
+
var Lf = (
|
|
13044
13057
|
/** @class */
|
|
13045
13058
|
function() {
|
|
13046
13059
|
function t(e, r, n) {
|
|
@@ -13076,7 +13089,7 @@ var Ff = (
|
|
|
13076
13089
|
return t.FOR_BITS.get(e);
|
|
13077
13090
|
}, t.FOR_BITS = /* @__PURE__ */ new Map(), t.FOR_VALUE = /* @__PURE__ */ new Map(), t.L = new t(qt.L, "L", 1), t.M = new t(qt.M, "M", 0), t.Q = new t(qt.Q, "Q", 3), t.H = new t(qt.H, "H", 2), t;
|
|
13078
13091
|
}()
|
|
13079
|
-
),
|
|
13092
|
+
), kf = function(t) {
|
|
13080
13093
|
var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0;
|
|
13081
13094
|
if (r) return r.call(t);
|
|
13082
13095
|
if (t && typeof t.length == "number") return {
|
|
@@ -13089,7 +13102,7 @@ var Ff = (
|
|
|
13089
13102
|
/** @class */
|
|
13090
13103
|
function() {
|
|
13091
13104
|
function t(e) {
|
|
13092
|
-
this.errorCorrectionLevel =
|
|
13105
|
+
this.errorCorrectionLevel = Lf.forBits(e >> 3 & 3), this.dataMask = /*(byte) */
|
|
13093
13106
|
e & 7;
|
|
13094
13107
|
}
|
|
13095
13108
|
return t.numBitsDiffering = function(e, r) {
|
|
@@ -13100,7 +13113,7 @@ var Ff = (
|
|
|
13100
13113
|
}, t.doDecodeFormatInformation = function(e, r) {
|
|
13101
13114
|
var n, i, a = Number.MAX_SAFE_INTEGER, o = 0;
|
|
13102
13115
|
try {
|
|
13103
|
-
for (var s =
|
|
13116
|
+
for (var s = kf(t.FORMAT_INFO_DECODE_LOOKUP), u = s.next(); !u.done; u = s.next()) {
|
|
13104
13117
|
var l = u.value, f = l[0];
|
|
13105
13118
|
if (f === e || f === r)
|
|
13106
13119
|
return new t(l[1]);
|
|
@@ -13163,7 +13176,7 @@ var Ff = (
|
|
|
13163
13176
|
Int32Array.from([11245, 31])
|
|
13164
13177
|
], t;
|
|
13165
13178
|
}()
|
|
13166
|
-
),
|
|
13179
|
+
), Ff = function(t) {
|
|
13167
13180
|
var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0;
|
|
13168
13181
|
if (r) return r.call(t);
|
|
13169
13182
|
if (t && typeof t.length == "number") return {
|
|
@@ -13185,7 +13198,7 @@ var Ff = (
|
|
|
13185
13198
|
}, t.prototype.getNumBlocks = function() {
|
|
13186
13199
|
var e, r, n = 0, i = this.ecBlocks;
|
|
13187
13200
|
try {
|
|
13188
|
-
for (var a =
|
|
13201
|
+
for (var a = Ff(i), o = a.next(); !o.done; o = a.next()) {
|
|
13189
13202
|
var s = o.value;
|
|
13190
13203
|
n += s.getCount();
|
|
13191
13204
|
}
|
|
@@ -13217,7 +13230,7 @@ var Ff = (
|
|
|
13217
13230
|
return this.dataCodewords;
|
|
13218
13231
|
}, t;
|
|
13219
13232
|
}()
|
|
13220
|
-
),
|
|
13233
|
+
), Uf = function(t) {
|
|
13221
13234
|
var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0;
|
|
13222
13235
|
if (r) return r.call(t);
|
|
13223
13236
|
if (t && typeof t.length == "number") return {
|
|
@@ -13235,7 +13248,7 @@ var Ff = (
|
|
|
13235
13248
|
this.versionNumber = e, this.alignmentPatternCenters = r, this.ecBlocks = a;
|
|
13236
13249
|
var s = 0, u = a[0].getECCodewordsPerBlock(), l = a[0].getECBlocks();
|
|
13237
13250
|
try {
|
|
13238
|
-
for (var f =
|
|
13251
|
+
for (var f = Uf(l), c = f.next(); !c.done; c = f.next()) {
|
|
13239
13252
|
var h = c.value;
|
|
13240
13253
|
s += h.getCount() * (h.getDataCodewords() + u);
|
|
13241
13254
|
}
|
|
@@ -13436,7 +13449,7 @@ var xa = (
|
|
|
13436
13449
|
})]
|
|
13437
13450
|
]), t;
|
|
13438
13451
|
}()
|
|
13439
|
-
),
|
|
13452
|
+
), Vf = (
|
|
13440
13453
|
/** @class */
|
|
13441
13454
|
function() {
|
|
13442
13455
|
function t(e) {
|
|
@@ -13518,7 +13531,7 @@ var xa = (
|
|
|
13518
13531
|
}
|
|
13519
13532
|
};
|
|
13520
13533
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
13521
|
-
},
|
|
13534
|
+
}, $f = (
|
|
13522
13535
|
/** @class */
|
|
13523
13536
|
function() {
|
|
13524
13537
|
function t(e, r) {
|
|
@@ -13614,7 +13627,7 @@ var he = (
|
|
|
13614
13627
|
return this.stringValue;
|
|
13615
13628
|
}, t.FOR_BITS = /* @__PURE__ */ new Map(), t.FOR_VALUE = /* @__PURE__ */ new Map(), t.TERMINATOR = new t(Ze.TERMINATOR, "TERMINATOR", Int32Array.from([0, 0, 0]), 0), t.NUMERIC = new t(Ze.NUMERIC, "NUMERIC", Int32Array.from([10, 12, 14]), 1), t.ALPHANUMERIC = new t(Ze.ALPHANUMERIC, "ALPHANUMERIC", Int32Array.from([9, 11, 13]), 2), t.STRUCTURED_APPEND = new t(Ze.STRUCTURED_APPEND, "STRUCTURED_APPEND", Int32Array.from([0, 0, 0]), 3), t.BYTE = new t(Ze.BYTE, "BYTE", Int32Array.from([8, 16, 16]), 4), t.ECI = new t(Ze.ECI, "ECI", Int32Array.from([0, 0, 0]), 7), t.KANJI = new t(Ze.KANJI, "KANJI", Int32Array.from([8, 10, 12]), 8), t.FNC1_FIRST_POSITION = new t(Ze.FNC1_FIRST_POSITION, "FNC1_FIRST_POSITION", Int32Array.from([0, 0, 0]), 5), t.FNC1_SECOND_POSITION = new t(Ze.FNC1_SECOND_POSITION, "FNC1_SECOND_POSITION", Int32Array.from([0, 0, 0]), 9), t.HANZI = new t(Ze.HANZI, "HANZI", Int32Array.from([8, 10, 12]), 13), t;
|
|
13616
13629
|
}()
|
|
13617
|
-
),
|
|
13630
|
+
), Hf = (
|
|
13618
13631
|
/** @class */
|
|
13619
13632
|
function() {
|
|
13620
13633
|
function t() {
|
|
@@ -13644,7 +13657,7 @@ var he = (
|
|
|
13644
13657
|
break;
|
|
13645
13658
|
case he.ECI:
|
|
13646
13659
|
var v = t.parseECIValue(a);
|
|
13647
|
-
if (f =
|
|
13660
|
+
if (f = be.getCharacterSetECIByValue(v), f === null)
|
|
13648
13661
|
throw new M();
|
|
13649
13662
|
break;
|
|
13650
13663
|
case he.HANZI:
|
|
@@ -13800,7 +13813,7 @@ var he = (
|
|
|
13800
13813
|
}
|
|
13801
13814
|
};
|
|
13802
13815
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
13803
|
-
},
|
|
13816
|
+
}, Gf = (
|
|
13804
13817
|
/** @class */
|
|
13805
13818
|
function() {
|
|
13806
13819
|
function t() {
|
|
@@ -13809,7 +13822,7 @@ var he = (
|
|
|
13809
13822
|
return t.prototype.decodeBooleanArray = function(e, r) {
|
|
13810
13823
|
return this.decodeBitMatrix(gt.parseFromBooleanArray(e), r);
|
|
13811
13824
|
}, t.prototype.decodeBitMatrix = function(e, r) {
|
|
13812
|
-
var n = new
|
|
13825
|
+
var n = new Vf(e), i = null;
|
|
13813
13826
|
try {
|
|
13814
13827
|
return this.decodeBitMatrixParser(n, r);
|
|
13815
13828
|
} catch (o) {
|
|
@@ -13823,7 +13836,7 @@ var he = (
|
|
|
13823
13836
|
throw i !== null ? i : o;
|
|
13824
13837
|
}
|
|
13825
13838
|
}, t.prototype.decodeBitMatrixParser = function(e, r) {
|
|
13826
|
-
var n, i, a, o, s = e.readVersion(), u = e.readFormatInformation().getErrorCorrectionLevel(), l = e.readCodewords(), f =
|
|
13839
|
+
var n, i, a, o, s = e.readVersion(), u = e.readFormatInformation().getErrorCorrectionLevel(), l = e.readCodewords(), f = $f.getDataBlocks(l, s, u), c = 0;
|
|
13827
13840
|
try {
|
|
13828
13841
|
for (var h = wa(f), d = h.next(); !d.done; d = h.next()) {
|
|
13829
13842
|
var v = d.value;
|
|
@@ -13855,7 +13868,7 @@ var he = (
|
|
|
13855
13868
|
if (a) throw a.error;
|
|
13856
13869
|
}
|
|
13857
13870
|
}
|
|
13858
|
-
return
|
|
13871
|
+
return Hf.decode(p, s, u, r);
|
|
13859
13872
|
}, t.prototype.correctErrors = function(e, r) {
|
|
13860
13873
|
var n = new Int32Array(e);
|
|
13861
13874
|
try {
|
|
@@ -13868,7 +13881,7 @@ var he = (
|
|
|
13868
13881
|
n[i];
|
|
13869
13882
|
}, t;
|
|
13870
13883
|
}()
|
|
13871
|
-
),
|
|
13884
|
+
), zf = /* @__PURE__ */ function() {
|
|
13872
13885
|
var t = function(e, r) {
|
|
13873
13886
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
13874
13887
|
n.__proto__ = i;
|
|
@@ -13883,10 +13896,10 @@ var he = (
|
|
|
13883
13896
|
}
|
|
13884
13897
|
e.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
|
|
13885
13898
|
};
|
|
13886
|
-
}(),
|
|
13899
|
+
}(), Wf = (
|
|
13887
13900
|
/** @class */
|
|
13888
13901
|
function(t) {
|
|
13889
|
-
|
|
13902
|
+
zf(e, t);
|
|
13890
13903
|
function e(r, n, i) {
|
|
13891
13904
|
var a = t.call(this, r, n) || this;
|
|
13892
13905
|
return a.estimatedModuleSize = i, a;
|
|
@@ -13902,7 +13915,7 @@ var he = (
|
|
|
13902
13915
|
return new e(a, o, s);
|
|
13903
13916
|
}, e;
|
|
13904
13917
|
}(F)
|
|
13905
|
-
),
|
|
13918
|
+
), Xf = function(t) {
|
|
13906
13919
|
var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0;
|
|
13907
13920
|
if (r) return r.call(t);
|
|
13908
13921
|
if (t && typeof t.length == "number") return {
|
|
@@ -13911,7 +13924,7 @@ var he = (
|
|
|
13911
13924
|
}
|
|
13912
13925
|
};
|
|
13913
13926
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
13914
|
-
},
|
|
13927
|
+
}, jf = (
|
|
13915
13928
|
/** @class */
|
|
13916
13929
|
function() {
|
|
13917
13930
|
function t(e, r, n, i, a, o, s) {
|
|
@@ -13988,7 +14001,7 @@ var he = (
|
|
|
13988
14001
|
if (!isNaN(u)) {
|
|
13989
14002
|
var l = (e[0] + e[1] + e[2]) / 3;
|
|
13990
14003
|
try {
|
|
13991
|
-
for (var f =
|
|
14004
|
+
for (var f = Xf(this.possibleCenters), c = f.next(); !c.done; c = f.next()) {
|
|
13992
14005
|
var h = c.value;
|
|
13993
14006
|
if (h.aboutEquals(l, u, s))
|
|
13994
14007
|
return h.combineEstimate(u, s, l);
|
|
@@ -14002,13 +14015,13 @@ var he = (
|
|
|
14002
14015
|
if (i) throw i.error;
|
|
14003
14016
|
}
|
|
14004
14017
|
}
|
|
14005
|
-
var d = new
|
|
14018
|
+
var d = new Wf(s, u, l);
|
|
14006
14019
|
this.possibleCenters.push(d), this.resultPointCallback !== null && this.resultPointCallback !== void 0 && this.resultPointCallback.foundPossibleResultPoint(d);
|
|
14007
14020
|
}
|
|
14008
14021
|
return null;
|
|
14009
14022
|
}, t;
|
|
14010
14023
|
}()
|
|
14011
|
-
),
|
|
14024
|
+
), Yf = /* @__PURE__ */ function() {
|
|
14012
14025
|
var t = function(e, r) {
|
|
14013
14026
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
14014
14027
|
n.__proto__ = i;
|
|
@@ -14023,10 +14036,10 @@ var he = (
|
|
|
14023
14036
|
}
|
|
14024
14037
|
e.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
|
|
14025
14038
|
};
|
|
14026
|
-
}(),
|
|
14039
|
+
}(), Kf = (
|
|
14027
14040
|
/** @class */
|
|
14028
14041
|
function(t) {
|
|
14029
|
-
|
|
14042
|
+
Yf(e, t);
|
|
14030
14043
|
function e(r, n, i, a) {
|
|
14031
14044
|
var o = t.call(this, r, n) || this;
|
|
14032
14045
|
return o.estimatedModuleSize = i, o.count = a, a === void 0 && (o.count = 1), o;
|
|
@@ -14046,7 +14059,7 @@ var he = (
|
|
|
14046
14059
|
return new e(o, s, u, a);
|
|
14047
14060
|
}, e;
|
|
14048
14061
|
}(F)
|
|
14049
|
-
),
|
|
14062
|
+
), Zf = (
|
|
14050
14063
|
/** @class */
|
|
14051
14064
|
function() {
|
|
14052
14065
|
function t(e) {
|
|
@@ -14069,7 +14082,7 @@ var he = (
|
|
|
14069
14082
|
}
|
|
14070
14083
|
};
|
|
14071
14084
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
14072
|
-
},
|
|
14085
|
+
}, qf = (
|
|
14073
14086
|
/** @class */
|
|
14074
14087
|
function() {
|
|
14075
14088
|
function t(e, r) {
|
|
@@ -14115,7 +14128,7 @@ var he = (
|
|
|
14115
14128
|
}
|
|
14116
14129
|
}
|
|
14117
14130
|
var p = this.selectBestPatterns();
|
|
14118
|
-
return F.orderBestPatterns(p), new
|
|
14131
|
+
return F.orderBestPatterns(p), new Zf(p);
|
|
14119
14132
|
}, t.centerFromEnd = function(e, r) {
|
|
14120
14133
|
return r - e[4] - e[3] - e[2] / 2;
|
|
14121
14134
|
}, t.foundPatternCross = function(e) {
|
|
@@ -14245,7 +14258,7 @@ var he = (
|
|
|
14245
14258
|
}
|
|
14246
14259
|
}
|
|
14247
14260
|
if (!l) {
|
|
14248
|
-
var v = new
|
|
14261
|
+
var v = new Kf(o, s, u);
|
|
14249
14262
|
f.push(v), this.resultPointCallback !== null && this.resultPointCallback !== void 0 && this.resultPointCallback.foundPossibleResultPoint(v);
|
|
14250
14263
|
}
|
|
14251
14264
|
return !0;
|
|
@@ -14385,7 +14398,7 @@ var he = (
|
|
|
14385
14398
|
];
|
|
14386
14399
|
}, t.CENTER_QUORUM = 2, t.MIN_SKIP = 3, t.MAX_MODULES = 57, t;
|
|
14387
14400
|
}()
|
|
14388
|
-
),
|
|
14401
|
+
), Qf = (
|
|
14389
14402
|
/** @class */
|
|
14390
14403
|
function() {
|
|
14391
14404
|
function t(e) {
|
|
@@ -14400,7 +14413,7 @@ var he = (
|
|
|
14400
14413
|
/*(ResultPointCallback) */
|
|
14401
14414
|
e.get(xe.NEED_RESULT_POINT_CALLBACK)
|
|
14402
14415
|
);
|
|
14403
|
-
var r = new
|
|
14416
|
+
var r = new qf(this.image, this.resultPointCallback), n = r.find(e);
|
|
14404
14417
|
return this.processFinderPatternInfo(n);
|
|
14405
14418
|
}, t.prototype.processFinderPatternInfo = function(e) {
|
|
14406
14419
|
var r = e.getTopLeft(), n = e.getTopRight(), i = e.getBottomLeft(), a = this.calculateModuleSize(r, n, i);
|
|
@@ -14511,7 +14524,7 @@ var he = (
|
|
|
14511
14524
|
var u = Math.max(0, n - a), l = Math.min(this.image.getHeight() - 1, n + a);
|
|
14512
14525
|
if (l - u < e * 3)
|
|
14513
14526
|
throw new I("Alignment bottom exceeds estimated module size.");
|
|
14514
|
-
var f = new
|
|
14527
|
+
var f = new jf(this.image, o, u, s - o, l - u, e, this.resultPointCallback);
|
|
14515
14528
|
return f.find();
|
|
14516
14529
|
}, t;
|
|
14517
14530
|
}()
|
|
@@ -14519,7 +14532,7 @@ var he = (
|
|
|
14519
14532
|
/** @class */
|
|
14520
14533
|
function() {
|
|
14521
14534
|
function t() {
|
|
14522
|
-
this.decoder = new
|
|
14535
|
+
this.decoder = new Gf();
|
|
14523
14536
|
}
|
|
14524
14537
|
return t.prototype.getDecoder = function() {
|
|
14525
14538
|
return this.decoder;
|
|
@@ -14529,7 +14542,7 @@ var he = (
|
|
|
14529
14542
|
var a = t.extractPureBits(e.getBlackMatrix());
|
|
14530
14543
|
n = this.decoder.decodeBitMatrix(a, r), i = t.NO_POINTS;
|
|
14531
14544
|
} else {
|
|
14532
|
-
var o = new
|
|
14545
|
+
var o = new Qf(e.getBlackMatrix()).detect(r);
|
|
14533
14546
|
n = this.decoder.decodeBitMatrix(o.getBits(), r), i = o.getPoints();
|
|
14534
14547
|
}
|
|
14535
14548
|
n.getOther() instanceof uo && n.getOther().applyMirroredCorrection(i);
|
|
@@ -14591,7 +14604,7 @@ var he = (
|
|
|
14591
14604
|
return (a - e[0]) / 7;
|
|
14592
14605
|
}, t.NO_POINTS = new Array(), t;
|
|
14593
14606
|
}()
|
|
14594
|
-
),
|
|
14607
|
+
), Jf = function(t) {
|
|
14595
14608
|
var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0;
|
|
14596
14609
|
if (r) return r.call(t);
|
|
14597
14610
|
if (t && typeof t.length == "number") return {
|
|
@@ -14614,7 +14627,7 @@ var he = (
|
|
|
14614
14627
|
return t.EMPTY_INT_ARRAY;
|
|
14615
14628
|
var i = new Int32Array(e.length), a = 0;
|
|
14616
14629
|
try {
|
|
14617
|
-
for (var o =
|
|
14630
|
+
for (var o = Jf(e), s = o.next(); !s.done; s = o.next()) {
|
|
14618
14631
|
var u = s.value;
|
|
14619
14632
|
i[a++] = u;
|
|
14620
14633
|
}
|
|
@@ -20209,7 +20222,7 @@ var he = (
|
|
|
20209
20222
|
1700
|
|
20210
20223
|
]), t;
|
|
20211
20224
|
}()
|
|
20212
|
-
),
|
|
20225
|
+
), e0 = (
|
|
20213
20226
|
/** @class */
|
|
20214
20227
|
function() {
|
|
20215
20228
|
function t(e, r) {
|
|
@@ -20221,7 +20234,7 @@ var he = (
|
|
|
20221
20234
|
return this.points;
|
|
20222
20235
|
}, t;
|
|
20223
20236
|
}()
|
|
20224
|
-
),
|
|
20237
|
+
), t0 = function(t) {
|
|
20225
20238
|
var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0;
|
|
20226
20239
|
if (r) return r.call(t);
|
|
20227
20240
|
if (t && typeof t.length == "number") return {
|
|
@@ -20230,14 +20243,14 @@ var he = (
|
|
|
20230
20243
|
}
|
|
20231
20244
|
};
|
|
20232
20245
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
20233
|
-
},
|
|
20246
|
+
}, r0 = (
|
|
20234
20247
|
/** @class */
|
|
20235
20248
|
function() {
|
|
20236
20249
|
function t() {
|
|
20237
20250
|
}
|
|
20238
20251
|
return t.detectMultiple = function(e, r, n) {
|
|
20239
20252
|
var i = e.getBlackMatrix(), a = t.detect(n, i);
|
|
20240
|
-
return a.length || (i = i.clone(), i.rotate180(), a = t.detect(n, i)), new
|
|
20253
|
+
return a.length || (i = i.clone(), i.rotate180(), a = t.detect(n, i)), new e0(i, a);
|
|
20241
20254
|
}, t.detect = function(e, r) {
|
|
20242
20255
|
for (var n, i, a = new Array(), o = 0, s = 0, u = !1; o < r.getHeight(); ) {
|
|
20243
20256
|
var l = t.findVertices(r, o, s);
|
|
@@ -20246,7 +20259,7 @@ var he = (
|
|
|
20246
20259
|
break;
|
|
20247
20260
|
u = !1, s = 0;
|
|
20248
20261
|
try {
|
|
20249
|
-
for (var f = (n = void 0,
|
|
20262
|
+
for (var f = (n = void 0, t0(a)), c = f.next(); !c.done; c = f.next()) {
|
|
20250
20263
|
var h = c.value;
|
|
20251
20264
|
h[1] != null && (o = Math.trunc(Math.max(o, h[1].getY()))), h[3] != null && (o = Math.max(o, Math.trunc(h[3].getY())));
|
|
20252
20265
|
}
|
|
@@ -20346,7 +20359,7 @@ var he = (
|
|
|
20346
20359
|
return l / a;
|
|
20347
20360
|
}, t.INDEXES_START_PATTERN = Int32Array.from([0, 4, 1, 5]), t.INDEXES_STOP_PATTERN = Int32Array.from([6, 2, 7, 3]), t.MAX_AVG_VARIANCE = 0.42, t.MAX_INDIVIDUAL_VARIANCE = 0.8, t.START_PATTERN = Int32Array.from([8, 1, 1, 1, 1, 1, 1, 3]), t.STOP_PATTERN = Int32Array.from([7, 1, 1, 3, 1, 1, 1, 2, 1]), t.MAX_PIXEL_DRIFT = 3, t.MAX_PATTERN_DRIFT = 5, t.SKIPPED_ROW_COUNT_MAX = 25, t.ROW_STEP = 5, t.BARCODE_MIN_HEIGHT = 10, t;
|
|
20348
20361
|
}()
|
|
20349
|
-
),
|
|
20362
|
+
), n0 = function(t) {
|
|
20350
20363
|
var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0;
|
|
20351
20364
|
if (r) return r.call(t);
|
|
20352
20365
|
if (t && typeof t.length == "number") return {
|
|
@@ -20394,7 +20407,7 @@ var he = (
|
|
|
20394
20407
|
0
|
|
20395
20408
|
);
|
|
20396
20409
|
try {
|
|
20397
|
-
for (var a =
|
|
20410
|
+
for (var a = n0(this.coefficients), o = a.next(); !o.done; o = a.next()) {
|
|
20398
20411
|
var s = o.value;
|
|
20399
20412
|
i = this.field.add(i, s);
|
|
20400
20413
|
}
|
|
@@ -20504,7 +20517,7 @@ var he = (
|
|
|
20504
20517
|
return e.toString();
|
|
20505
20518
|
}, t;
|
|
20506
20519
|
}()
|
|
20507
|
-
),
|
|
20520
|
+
), i0 = (
|
|
20508
20521
|
/** @class */
|
|
20509
20522
|
function() {
|
|
20510
20523
|
function t() {
|
|
@@ -20531,7 +20544,7 @@ var he = (
|
|
|
20531
20544
|
return e === this;
|
|
20532
20545
|
}, t;
|
|
20533
20546
|
}()
|
|
20534
|
-
),
|
|
20547
|
+
), a0 = /* @__PURE__ */ function() {
|
|
20535
20548
|
var t = function(e, r) {
|
|
20536
20549
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
20537
20550
|
n.__proto__ = i;
|
|
@@ -20546,10 +20559,10 @@ var he = (
|
|
|
20546
20559
|
}
|
|
20547
20560
|
e.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
|
|
20548
20561
|
};
|
|
20549
|
-
}(),
|
|
20562
|
+
}(), o0 = (
|
|
20550
20563
|
/** @class */
|
|
20551
20564
|
function(t) {
|
|
20552
|
-
|
|
20565
|
+
a0(e, t);
|
|
20553
20566
|
function e(r, n) {
|
|
20554
20567
|
var i = t.call(this) || this;
|
|
20555
20568
|
i.modulus = r, i.expTable = new Int32Array(r), i.logTable = new Int32Array(r);
|
|
@@ -20574,8 +20587,8 @@ var he = (
|
|
|
20574
20587
|
var i = new Int32Array(r + 1);
|
|
20575
20588
|
return i[0] = n, new $t(this, i);
|
|
20576
20589
|
}, e.PDF417_GF = new e(q.NUMBER_OF_CODEWORDS, 3), e;
|
|
20577
|
-
}(
|
|
20578
|
-
),
|
|
20590
|
+
}(i0)
|
|
20591
|
+
), s0 = function(t) {
|
|
20579
20592
|
var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0;
|
|
20580
20593
|
if (r) return r.call(t);
|
|
20581
20594
|
if (t && typeof t.length == "number") return {
|
|
@@ -20584,11 +20597,11 @@ var he = (
|
|
|
20584
20597
|
}
|
|
20585
20598
|
};
|
|
20586
20599
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
20587
|
-
},
|
|
20600
|
+
}, u0 = (
|
|
20588
20601
|
/** @class */
|
|
20589
20602
|
function() {
|
|
20590
20603
|
function t() {
|
|
20591
|
-
this.field =
|
|
20604
|
+
this.field = o0.PDF417_GF;
|
|
20592
20605
|
}
|
|
20593
20606
|
return t.prototype.decode = function(e, r, n) {
|
|
20594
20607
|
for (var i, a, o = new $t(this.field, e), s = new Int32Array(r), u = !1, l = r; l > 0; l--) {
|
|
@@ -20600,7 +20613,7 @@ var he = (
|
|
|
20600
20613
|
var c = this.field.getOne();
|
|
20601
20614
|
if (n != null)
|
|
20602
20615
|
try {
|
|
20603
|
-
for (var h =
|
|
20616
|
+
for (var h = s0(n), d = h.next(); !d.done; d = h.next()) {
|
|
20604
20617
|
var v = d.value, p = this.field.exp(e.length - 1 - v), w = new $t(this.field, new Int32Array([this.field.subtract(0, p), 1]));
|
|
20605
20618
|
c = c.multiply(w);
|
|
20606
20619
|
}
|
|
@@ -20705,7 +20718,7 @@ var he = (
|
|
|
20705
20718
|
return this.bottomRight;
|
|
20706
20719
|
}, t;
|
|
20707
20720
|
}()
|
|
20708
|
-
),
|
|
20721
|
+
), l0 = (
|
|
20709
20722
|
/** @class */
|
|
20710
20723
|
function() {
|
|
20711
20724
|
function t(e, r, n, i) {
|
|
@@ -20776,7 +20789,7 @@ var he = (
|
|
|
20776
20789
|
return this.buffer;
|
|
20777
20790
|
}, t;
|
|
20778
20791
|
}()
|
|
20779
|
-
),
|
|
20792
|
+
), f0 = function(t) {
|
|
20780
20793
|
var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0;
|
|
20781
20794
|
if (r) return r.call(t);
|
|
20782
20795
|
if (t && typeof t.length == "number") return {
|
|
@@ -20814,7 +20827,7 @@ var he = (
|
|
|
20814
20827
|
}, t.prototype.toString = function() {
|
|
20815
20828
|
var e, r, n = new Ri(), i = 0;
|
|
20816
20829
|
try {
|
|
20817
|
-
for (var a =
|
|
20830
|
+
for (var a = f0(this.codewords), o = a.next(); !o.done; o = a.next()) {
|
|
20818
20831
|
var s = o.value;
|
|
20819
20832
|
if (s == null) {
|
|
20820
20833
|
n.format("%3d: | %n", i++);
|
|
@@ -20834,7 +20847,7 @@ var he = (
|
|
|
20834
20847
|
return n.toString();
|
|
20835
20848
|
}, t.MAX_NEARBY_DISTANCE = 5, t;
|
|
20836
20849
|
}()
|
|
20837
|
-
),
|
|
20850
|
+
), c0 = function(t) {
|
|
20838
20851
|
var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0;
|
|
20839
20852
|
if (r) return r.call(t);
|
|
20840
20853
|
if (t && typeof t.length == "number") return {
|
|
@@ -20843,7 +20856,7 @@ var he = (
|
|
|
20843
20856
|
}
|
|
20844
20857
|
};
|
|
20845
20858
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
20846
|
-
},
|
|
20859
|
+
}, d0 = function(t, e) {
|
|
20847
20860
|
var r = typeof Symbol == "function" && t[Symbol.iterator];
|
|
20848
20861
|
if (!r) return t;
|
|
20849
20862
|
var n = r.call(t), i, a = [], o;
|
|
@@ -20882,8 +20895,8 @@ var he = (
|
|
|
20882
20895
|
d.getValue() > n ? (n = d.getValue(), i = [], i.push(d.getKey())) : d.getValue() === n && i.push(d.getKey());
|
|
20883
20896
|
};
|
|
20884
20897
|
try {
|
|
20885
|
-
for (var o =
|
|
20886
|
-
var u =
|
|
20898
|
+
for (var o = c0(this.values.entries()), s = o.next(); !s.done; s = o.next()) {
|
|
20899
|
+
var u = d0(s.value, 2), l = u[0], f = u[1];
|
|
20887
20900
|
a(l, f);
|
|
20888
20901
|
}
|
|
20889
20902
|
} catch (c) {
|
|
@@ -20900,7 +20913,7 @@ var he = (
|
|
|
20900
20913
|
return this.values.get(e);
|
|
20901
20914
|
}, t;
|
|
20902
20915
|
}()
|
|
20903
|
-
),
|
|
20916
|
+
), h0 = /* @__PURE__ */ function() {
|
|
20904
20917
|
var t = function(e, r) {
|
|
20905
20918
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
20906
20919
|
n.__proto__ = i;
|
|
@@ -20927,7 +20940,7 @@ var he = (
|
|
|
20927
20940
|
}, ma = (
|
|
20928
20941
|
/** @class */
|
|
20929
20942
|
function(t) {
|
|
20930
|
-
|
|
20943
|
+
h0(e, t);
|
|
20931
20944
|
function e(r, n) {
|
|
20932
20945
|
var i = t.call(this, r) || this;
|
|
20933
20946
|
return i._isLeft = n, i;
|
|
@@ -21034,7 +21047,7 @@ var he = (
|
|
|
21034
21047
|
}
|
|
21035
21048
|
if (a.getValue().length === 0 || o.getValue().length === 0 || s.getValue().length === 0 || u.getValue().length === 0 || a.getValue()[0] < 1 || o.getValue()[0] + s.getValue()[0] < q.MIN_ROWS_IN_BARCODE || o.getValue()[0] + s.getValue()[0] > q.MAX_ROWS_IN_BARCODE)
|
|
21036
21049
|
return null;
|
|
21037
|
-
var v = new
|
|
21050
|
+
var v = new l0(a.getValue()[0], o.getValue()[0], s.getValue()[0], u.getValue()[0]);
|
|
21038
21051
|
return this.removeIncorrectCodewords(i, v), v;
|
|
21039
21052
|
}, e.prototype.removeIncorrectCodewords = function(r, n) {
|
|
21040
21053
|
for (var i = 0; i < r.length; i++) {
|
|
@@ -21065,7 +21078,7 @@ var he = (
|
|
|
21065
21078
|
` + t.prototype.toString.call(this);
|
|
21066
21079
|
}, e;
|
|
21067
21080
|
}(lo)
|
|
21068
|
-
),
|
|
21081
|
+
), v0 = function(t) {
|
|
21069
21082
|
var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0;
|
|
21070
21083
|
if (r) return r.call(t);
|
|
21071
21084
|
if (t && typeof t.length == "number") return {
|
|
@@ -21074,7 +21087,7 @@ var he = (
|
|
|
21074
21087
|
}
|
|
21075
21088
|
};
|
|
21076
21089
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
21077
|
-
},
|
|
21090
|
+
}, p0 = (
|
|
21078
21091
|
/** @class */
|
|
21079
21092
|
function() {
|
|
21080
21093
|
function t(e, r) {
|
|
@@ -21140,7 +21153,7 @@ var he = (
|
|
|
21140
21153
|
var l = new Array(14);
|
|
21141
21154
|
l[2] = s[r], l[3] = u[r], r > 0 && (l[0] = n[r - 1], l[4] = s[r - 1], l[5] = u[r - 1]), r > 1 && (l[8] = n[r - 2], l[10] = s[r - 2], l[11] = u[r - 2]), r < n.length - 1 && (l[1] = n[r + 1], l[6] = s[r + 1], l[7] = u[r + 1]), r < n.length - 2 && (l[9] = n[r + 2], l[12] = s[r + 2], l[13] = u[r + 2]);
|
|
21142
21155
|
try {
|
|
21143
|
-
for (var f =
|
|
21156
|
+
for (var f = v0(l), c = f.next(); !c.done; c = f.next()) {
|
|
21144
21157
|
var h = c.value;
|
|
21145
21158
|
if (t.adjustRowNumber(o, h))
|
|
21146
21159
|
return;
|
|
@@ -21193,7 +21206,7 @@ var he = (
|
|
|
21193
21206
|
return r.toString();
|
|
21194
21207
|
}, t;
|
|
21195
21208
|
}()
|
|
21196
|
-
),
|
|
21209
|
+
), g0 = (
|
|
21197
21210
|
/** @class */
|
|
21198
21211
|
function() {
|
|
21199
21212
|
function t(e, r, n, i) {
|
|
@@ -21223,7 +21236,7 @@ var he = (
|
|
|
21223
21236
|
return this.rowNumber + "|" + this.value;
|
|
21224
21237
|
}, t.BARCODE_ROW_UNKNOWN = -1, t;
|
|
21225
21238
|
}()
|
|
21226
|
-
),
|
|
21239
|
+
), x0 = (
|
|
21227
21240
|
/** @class */
|
|
21228
21241
|
function() {
|
|
21229
21242
|
function t() {
|
|
@@ -21276,7 +21289,7 @@ var he = (
|
|
|
21276
21289
|
return new Array(q.BARS_IN_MODULE);
|
|
21277
21290
|
}), t;
|
|
21278
21291
|
}()
|
|
21279
|
-
),
|
|
21292
|
+
), y0 = (
|
|
21280
21293
|
/** @class */
|
|
21281
21294
|
function() {
|
|
21282
21295
|
function t() {
|
|
@@ -21337,7 +21350,7 @@ var he = (
|
|
|
21337
21350
|
return r === void 0 && (r = void 0), parseInt(e, r);
|
|
21338
21351
|
}, t;
|
|
21339
21352
|
}()
|
|
21340
|
-
),
|
|
21353
|
+
), w0 = /* @__PURE__ */ function() {
|
|
21341
21354
|
var t = function(e, r) {
|
|
21342
21355
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
21343
21356
|
n.__proto__ = i;
|
|
@@ -21352,16 +21365,16 @@ var he = (
|
|
|
21352
21365
|
}
|
|
21353
21366
|
e.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
|
|
21354
21367
|
};
|
|
21355
|
-
}(),
|
|
21368
|
+
}(), m0 = (
|
|
21356
21369
|
/** @class */
|
|
21357
21370
|
function(t) {
|
|
21358
|
-
|
|
21371
|
+
w0(e, t);
|
|
21359
21372
|
function e() {
|
|
21360
21373
|
return t !== null && t.apply(this, arguments) || this;
|
|
21361
21374
|
}
|
|
21362
21375
|
return e.kind = "NullPointerException", e;
|
|
21363
21376
|
}(Ue)
|
|
21364
|
-
),
|
|
21377
|
+
), _0 = (
|
|
21365
21378
|
/** @class */
|
|
21366
21379
|
function() {
|
|
21367
21380
|
function t() {
|
|
@@ -21370,7 +21383,7 @@ var he = (
|
|
|
21370
21383
|
this.writeBytesOffset(e, 0, e.length);
|
|
21371
21384
|
}, t.prototype.writeBytesOffset = function(e, r, n) {
|
|
21372
21385
|
if (e == null)
|
|
21373
|
-
throw new
|
|
21386
|
+
throw new m0();
|
|
21374
21387
|
if (r < 0 || r > e.length || n < 0 || r + n > e.length || r + n < 0)
|
|
21375
21388
|
throw new Ii();
|
|
21376
21389
|
if (n === 0)
|
|
@@ -21381,7 +21394,7 @@ var he = (
|
|
|
21381
21394
|
}, t.prototype.close = function() {
|
|
21382
21395
|
}, t;
|
|
21383
21396
|
}()
|
|
21384
|
-
),
|
|
21397
|
+
), A0 = /* @__PURE__ */ function() {
|
|
21385
21398
|
var t = function(e, r) {
|
|
21386
21399
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
21387
21400
|
n.__proto__ = i;
|
|
@@ -21396,16 +21409,16 @@ var he = (
|
|
|
21396
21409
|
}
|
|
21397
21410
|
e.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
|
|
21398
21411
|
};
|
|
21399
|
-
}(),
|
|
21412
|
+
}(), E0 = (
|
|
21400
21413
|
/** @class */
|
|
21401
21414
|
function(t) {
|
|
21402
|
-
|
|
21415
|
+
A0(e, t);
|
|
21403
21416
|
function e() {
|
|
21404
21417
|
return t !== null && t.apply(this, arguments) || this;
|
|
21405
21418
|
}
|
|
21406
21419
|
return e;
|
|
21407
21420
|
}(Ue)
|
|
21408
|
-
),
|
|
21421
|
+
), b0 = /* @__PURE__ */ function() {
|
|
21409
21422
|
var t = function(e, r) {
|
|
21410
21423
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
21411
21424
|
n.__proto__ = i;
|
|
@@ -21420,10 +21433,10 @@ var he = (
|
|
|
21420
21433
|
}
|
|
21421
21434
|
e.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
|
|
21422
21435
|
};
|
|
21423
|
-
}(),
|
|
21436
|
+
}(), C0 = (
|
|
21424
21437
|
/** @class */
|
|
21425
21438
|
function(t) {
|
|
21426
|
-
|
|
21439
|
+
b0(e, t);
|
|
21427
21440
|
function e(r) {
|
|
21428
21441
|
r === void 0 && (r = 32);
|
|
21429
21442
|
var n = t.call(this) || this;
|
|
@@ -21437,7 +21450,7 @@ var he = (
|
|
|
21437
21450
|
var n = this.buf.length, i = n << 1;
|
|
21438
21451
|
if (i - r < 0 && (i = r), i < 0) {
|
|
21439
21452
|
if (r < 0)
|
|
21440
|
-
throw new
|
|
21453
|
+
throw new E0();
|
|
21441
21454
|
i = Y.MAX_VALUE;
|
|
21442
21455
|
}
|
|
21443
21456
|
this.buf = We.copyOfUint8Array(this.buf, i);
|
|
@@ -21475,7 +21488,7 @@ var he = (
|
|
|
21475
21488
|
).toString();
|
|
21476
21489
|
}, e.prototype.close = function() {
|
|
21477
21490
|
}, e;
|
|
21478
|
-
}(
|
|
21491
|
+
}(_0)
|
|
21479
21492
|
), oe;
|
|
21480
21493
|
(function(t) {
|
|
21481
21494
|
t[t.ALPHA = 0] = "ALPHA", t[t.LOWER = 1] = "LOWER", t[t.MIXED = 2] = "MIXED", t[t.PUNCT = 3] = "PUNCT", t[t.ALPHA_SHIFT = 4] = "ALPHA_SHIFT", t[t.PUNCT_SHIFT = 5] = "PUNCT_SHIFT";
|
|
@@ -21495,7 +21508,7 @@ function Ot(t) {
|
|
|
21495
21508
|
throw new Error("BigInt is not supported!");
|
|
21496
21509
|
return Jr(t);
|
|
21497
21510
|
}
|
|
21498
|
-
function
|
|
21511
|
+
function S0() {
|
|
21499
21512
|
var t = [];
|
|
21500
21513
|
t[0] = Ot(1);
|
|
21501
21514
|
var e = Ot(900);
|
|
@@ -21504,15 +21517,15 @@ function O0() {
|
|
|
21504
21517
|
t[r] = t[r - 1] * e;
|
|
21505
21518
|
return t;
|
|
21506
21519
|
}
|
|
21507
|
-
var
|
|
21520
|
+
var I0 = (
|
|
21508
21521
|
/** @class */
|
|
21509
21522
|
function() {
|
|
21510
21523
|
function t() {
|
|
21511
21524
|
}
|
|
21512
21525
|
return t.decode = function(e, r) {
|
|
21513
|
-
var n = new se(""), i =
|
|
21526
|
+
var n = new se(""), i = be.ISO8859_1;
|
|
21514
21527
|
n.enableDecoding(i);
|
|
21515
|
-
for (var a = 1, o = e[a++], s = new
|
|
21528
|
+
for (var a = 1, o = e[a++], s = new y0(); a < e[0]; ) {
|
|
21516
21529
|
switch (o) {
|
|
21517
21530
|
case t.TEXT_COMPACTION_MODE_LATCH:
|
|
21518
21531
|
a = t.textCompaction(e, a, n);
|
|
@@ -21531,7 +21544,7 @@ var T0 = (
|
|
|
21531
21544
|
a = t.numericCompaction(e, a, n);
|
|
21532
21545
|
break;
|
|
21533
21546
|
case t.ECI_CHARSET:
|
|
21534
|
-
|
|
21547
|
+
be.getCharacterSetECIByValue(e[a++]);
|
|
21535
21548
|
break;
|
|
21536
21549
|
case t.ECI_GENERAL_PURPOSE:
|
|
21537
21550
|
a += 2;
|
|
@@ -21790,7 +21803,7 @@ var T0 = (
|
|
|
21790
21803
|
l !== "" && i.append(l), s++;
|
|
21791
21804
|
}
|
|
21792
21805
|
}, t.byteCompaction = function(e, r, n, i, a) {
|
|
21793
|
-
var o = new
|
|
21806
|
+
var o = new C0(), s = 0, u = (
|
|
21794
21807
|
/*long*/
|
|
21795
21808
|
0
|
|
21796
21809
|
), l = !1;
|
|
@@ -21881,7 +21894,7 @@ var T0 = (
|
|
|
21881
21894
|
throw new M();
|
|
21882
21895
|
return a.substring(1);
|
|
21883
21896
|
}, t.TEXT_COMPACTION_MODE_LATCH = 900, t.BYTE_COMPACTION_MODE_LATCH = 901, t.NUMERIC_COMPACTION_MODE_LATCH = 902, t.BYTE_COMPACTION_MODE_LATCH_6 = 924, t.ECI_USER_DEFINED = 925, t.ECI_GENERAL_PURPOSE = 926, t.ECI_CHARSET = 927, t.BEGIN_MACRO_PDF417_CONTROL_BLOCK = 928, t.BEGIN_MACRO_PDF417_OPTIONAL_FIELD = 923, t.MACRO_PDF417_TERMINATOR = 922, t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE = 913, t.MAX_NUMERIC_CODEWORDS = 15, t.MACRO_PDF417_OPTIONAL_FIELD_FILE_NAME = 0, t.MACRO_PDF417_OPTIONAL_FIELD_SEGMENT_COUNT = 1, t.MACRO_PDF417_OPTIONAL_FIELD_TIME_STAMP = 2, t.MACRO_PDF417_OPTIONAL_FIELD_SENDER = 3, t.MACRO_PDF417_OPTIONAL_FIELD_ADDRESSEE = 4, t.MACRO_PDF417_OPTIONAL_FIELD_FILE_SIZE = 5, t.MACRO_PDF417_OPTIONAL_FIELD_CHECKSUM = 6, t.PL = 25, t.LL = 27, t.AS = 27, t.ML = 28, t.AL = 28, t.PS = 29, t.PAL = 29, t.PUNCT_CHARS = `;<>@[\\]_\`~!\r ,:
|
|
21884
|
-
-.$/"|*()?{}'`, t.MIXED_CHARS = "0123456789&\r ,:#-.$/+%*=^", t.EXP900 = fo() ?
|
|
21897
|
+
-.$/"|*()?{}'`, t.MIXED_CHARS = "0123456789&\r ,:#-.$/+%*=^", t.EXP900 = fo() ? S0() : [], t.NUMBER_OF_SEQUENCE_CODEWORDS = 2, t;
|
|
21885
21898
|
}()
|
|
21886
21899
|
), mr = function(t) {
|
|
21887
21900
|
var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0;
|
|
@@ -21892,7 +21905,7 @@ var T0 = (
|
|
|
21892
21905
|
}
|
|
21893
21906
|
};
|
|
21894
21907
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
21895
|
-
},
|
|
21908
|
+
}, O0 = (
|
|
21896
21909
|
/** @class */
|
|
21897
21910
|
function() {
|
|
21898
21911
|
function t() {
|
|
@@ -21935,7 +21948,7 @@ var T0 = (
|
|
|
21935
21948
|
if (n == null)
|
|
21936
21949
|
return null;
|
|
21937
21950
|
var i = xi.merge(t.adjustBoundingBox(e), t.adjustBoundingBox(r));
|
|
21938
|
-
return new
|
|
21951
|
+
return new p0(n, i);
|
|
21939
21952
|
}, t.adjustBoundingBox = function(e) {
|
|
21940
21953
|
var r, n;
|
|
21941
21954
|
if (e == null)
|
|
@@ -22132,8 +22145,8 @@ var T0 = (
|
|
|
22132
22145
|
}
|
|
22133
22146
|
if (!t.checkCodewordSkew(c, s, u))
|
|
22134
22147
|
return null;
|
|
22135
|
-
var v =
|
|
22136
|
-
return p === -1 ? null : new
|
|
22148
|
+
var v = x0.getDecodedValue(l), p = q.getCodeword(v);
|
|
22149
|
+
return p === -1 ? null : new g0(a, f, t.getCodewordBucketNumber(v), p);
|
|
22137
22150
|
}, t.getModuleBitCount = function(e, r, n, i, a, o) {
|
|
22138
22151
|
for (var s = a, u = new Int32Array(8), l = 0, f = i ? 1 : -1, c = i; (i ? s < n : s >= r) && l < u.length; )
|
|
22139
22152
|
e.get(s, o) === c ? (u[l]++, s += f) : (l++, c = !c);
|
|
@@ -22157,7 +22170,7 @@ var T0 = (
|
|
|
22157
22170
|
throw M.getFormatInstance();
|
|
22158
22171
|
var i = 1 << r + 1, a = t.correctErrors(e, n, i);
|
|
22159
22172
|
t.verifyCodewordCount(e, i);
|
|
22160
|
-
var o =
|
|
22173
|
+
var o = I0.decode(e, "" + r);
|
|
22161
22174
|
return o.setErrorsCorrected(a), o.setErasures(n.length), o;
|
|
22162
22175
|
}, t.correctErrors = function(e, r, n) {
|
|
22163
22176
|
if (r != null && r.length > n / 2 + t.MAX_ERRORS || n < 0 || n > t.MAX_EC_CODEWORDS)
|
|
@@ -22194,9 +22207,9 @@ var T0 = (
|
|
|
22194
22207
|
r.format("%n");
|
|
22195
22208
|
}
|
|
22196
22209
|
return r.toString();
|
|
22197
|
-
}, t.CODEWORD_SKEW_SIZE = 2, t.MAX_ERRORS = 3, t.MAX_EC_CODEWORDS = 512, t.errorCorrection = new
|
|
22210
|
+
}, t.CODEWORD_SKEW_SIZE = 2, t.MAX_ERRORS = 3, t.MAX_EC_CODEWORDS = 512, t.errorCorrection = new u0(), t;
|
|
22198
22211
|
}()
|
|
22199
|
-
),
|
|
22212
|
+
), T0 = function(t) {
|
|
22200
22213
|
var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0;
|
|
22201
22214
|
if (r) return r.call(t);
|
|
22202
22215
|
if (t && typeof t.length == "number") return {
|
|
@@ -22224,10 +22237,10 @@ var T0 = (
|
|
|
22224
22237
|
throw n instanceof M || n instanceof Ne ? I.getNotFoundInstance() : n;
|
|
22225
22238
|
}
|
|
22226
22239
|
}, t.decode = function(e, r, n) {
|
|
22227
|
-
var i, a, o = new Array(), s =
|
|
22240
|
+
var i, a, o = new Array(), s = r0.detectMultiple(e, r, n);
|
|
22228
22241
|
try {
|
|
22229
|
-
for (var u =
|
|
22230
|
-
var f = l.value, c =
|
|
22242
|
+
for (var u = T0(s.getPoints()), l = u.next(); !l.done; l = u.next()) {
|
|
22243
|
+
var f = l.value, c = O0.decode(s.getBits(), f[4], f[5], f[6], f[7], t.getMinCodewordWidth(f), t.getMaxCodewordWidth(f)), h = new Xe(c.getText(), c.getRawBytes(), void 0, f, H.PDF_417);
|
|
22231
22244
|
h.putMetadata(Pe.ERROR_CORRECTION_LEVEL, c.getECLevel());
|
|
22232
22245
|
var d = c.getOther();
|
|
22233
22246
|
d != null && h.putMetadata(Pe.PDF417_EXTRA_METADATA, d), o.push(h);
|
|
@@ -22255,7 +22268,7 @@ var T0 = (
|
|
|
22255
22268
|
}, t.prototype.reset = function() {
|
|
22256
22269
|
}, t;
|
|
22257
22270
|
}()
|
|
22258
|
-
),
|
|
22271
|
+
), D0 = /* @__PURE__ */ function() {
|
|
22259
22272
|
var t = function(e, r) {
|
|
22260
22273
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
22261
22274
|
n.__proto__ = i;
|
|
@@ -22273,7 +22286,7 @@ var T0 = (
|
|
|
22273
22286
|
}(), Aa = (
|
|
22274
22287
|
/** @class */
|
|
22275
22288
|
function(t) {
|
|
22276
|
-
|
|
22289
|
+
D0(e, t);
|
|
22277
22290
|
function e() {
|
|
22278
22291
|
return t !== null && t.apply(this, arguments) || this;
|
|
22279
22292
|
}
|
|
@@ -22288,7 +22301,7 @@ var T0 = (
|
|
|
22288
22301
|
}
|
|
22289
22302
|
};
|
|
22290
22303
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
22291
|
-
},
|
|
22304
|
+
}, N0 = (
|
|
22292
22305
|
/** @class */
|
|
22293
22306
|
function() {
|
|
22294
22307
|
function t() {
|
|
@@ -22350,7 +22363,7 @@ var T0 = (
|
|
|
22350
22363
|
throw new I("No MultiFormat Readers were able to detect the code.");
|
|
22351
22364
|
}, t;
|
|
22352
22365
|
}()
|
|
22353
|
-
),
|
|
22366
|
+
), R0 = /* @__PURE__ */ function() {
|
|
22354
22367
|
var t = function(e, r) {
|
|
22355
22368
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
22356
22369
|
n.__proto__ = i;
|
|
@@ -22365,20 +22378,20 @@ var T0 = (
|
|
|
22365
22378
|
}
|
|
22366
22379
|
e.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
|
|
22367
22380
|
};
|
|
22368
|
-
}(),
|
|
22381
|
+
}(), P0 = (
|
|
22369
22382
|
/** @class */
|
|
22370
22383
|
function(t) {
|
|
22371
|
-
|
|
22384
|
+
R0(e, t);
|
|
22372
22385
|
function e(r, n) {
|
|
22373
22386
|
r === void 0 && (r = null), n === void 0 && (n = 500);
|
|
22374
|
-
var i = this, a = new
|
|
22387
|
+
var i = this, a = new N0();
|
|
22375
22388
|
return a.setHints(r), i = t.call(this, a, n) || this, i;
|
|
22376
22389
|
}
|
|
22377
22390
|
return e.prototype.decodeBitmap = function(r) {
|
|
22378
22391
|
return this.reader.decodeWithState(r);
|
|
22379
22392
|
}, e;
|
|
22380
22393
|
}(fr)
|
|
22381
|
-
),
|
|
22394
|
+
), B0 = /* @__PURE__ */ function() {
|
|
22382
22395
|
var t = function(e, r) {
|
|
22383
22396
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
22384
22397
|
n.__proto__ = i;
|
|
@@ -22395,13 +22408,13 @@ var T0 = (
|
|
|
22395
22408
|
};
|
|
22396
22409
|
}();
|
|
22397
22410
|
(function(t) {
|
|
22398
|
-
|
|
22411
|
+
B0(e, t);
|
|
22399
22412
|
function e(r) {
|
|
22400
22413
|
return r === void 0 && (r = 500), t.call(this, new yi(), r) || this;
|
|
22401
22414
|
}
|
|
22402
22415
|
return e;
|
|
22403
22416
|
})(fr);
|
|
22404
|
-
var
|
|
22417
|
+
var M0 = /* @__PURE__ */ function() {
|
|
22405
22418
|
var t = function(e, r) {
|
|
22406
22419
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
22407
22420
|
n.__proto__ = i;
|
|
@@ -22418,7 +22431,7 @@ var k0 = /* @__PURE__ */ function() {
|
|
|
22418
22431
|
};
|
|
22419
22432
|
}();
|
|
22420
22433
|
(function(t) {
|
|
22421
|
-
|
|
22434
|
+
M0(e, t);
|
|
22422
22435
|
function e(r) {
|
|
22423
22436
|
return r === void 0 && (r = 500), t.call(this, new gi(), r) || this;
|
|
22424
22437
|
}
|
|
@@ -22539,7 +22552,7 @@ var co = (
|
|
|
22539
22552
|
return n;
|
|
22540
22553
|
}, t.N1 = 3, t.N2 = 3, t.N3 = 40, t.N4 = 10, t;
|
|
22541
22554
|
}()
|
|
22542
|
-
),
|
|
22555
|
+
), L0 = function(t) {
|
|
22543
22556
|
var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0;
|
|
22544
22557
|
if (r) return r.call(t);
|
|
22545
22558
|
if (t && typeof t.length == "number") return {
|
|
@@ -22548,7 +22561,7 @@ var co = (
|
|
|
22548
22561
|
}
|
|
22549
22562
|
};
|
|
22550
22563
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
22551
|
-
},
|
|
22564
|
+
}, k0 = (
|
|
22552
22565
|
/** @class */
|
|
22553
22566
|
function() {
|
|
22554
22567
|
function t(e, r) {
|
|
@@ -22573,7 +22586,7 @@ var co = (
|
|
|
22573
22586
|
}, t.prototype.clear = function(e) {
|
|
22574
22587
|
var r, n;
|
|
22575
22588
|
try {
|
|
22576
|
-
for (var i =
|
|
22589
|
+
for (var i = L0(this.bytes), a = i.next(); !a.done; a = i.next()) {
|
|
22577
22590
|
var o = a.value;
|
|
22578
22591
|
We.fill(o, e);
|
|
22579
22592
|
}
|
|
@@ -22659,7 +22672,7 @@ var co = (
|
|
|
22659
22672
|
return e >= 0 && e < t.NUM_MASK_PATTERNS;
|
|
22660
22673
|
}, t.NUM_MASK_PATTERNS = 8, t;
|
|
22661
22674
|
}()
|
|
22662
|
-
),
|
|
22675
|
+
), F0 = /* @__PURE__ */ function() {
|
|
22663
22676
|
var t = function(e, r) {
|
|
22664
22677
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
22665
22678
|
n.__proto__ = i;
|
|
@@ -22677,7 +22690,7 @@ var co = (
|
|
|
22677
22690
|
}(), de = (
|
|
22678
22691
|
/** @class */
|
|
22679
22692
|
function(t) {
|
|
22680
|
-
|
|
22693
|
+
F0(e, t);
|
|
22681
22694
|
function e() {
|
|
22682
22695
|
return t !== null && t.apply(this, arguments) || this;
|
|
22683
22696
|
}
|
|
@@ -22882,7 +22895,7 @@ var co = (
|
|
|
22882
22895
|
Int32Array.from([0, 8])
|
|
22883
22896
|
]), t.VERSION_INFO_POLY = 7973, t.TYPE_INFO_POLY = 1335, t.TYPE_INFO_MASK_PATTERN = 21522, t;
|
|
22884
22897
|
}()
|
|
22885
|
-
),
|
|
22898
|
+
), U0 = (
|
|
22886
22899
|
/** @class */
|
|
22887
22900
|
function() {
|
|
22888
22901
|
function t(e, r) {
|
|
@@ -22915,7 +22928,7 @@ var co = (
|
|
|
22915
22928
|
a && (i = n.get(en.CHARACTER_SET).toString());
|
|
22916
22929
|
var o = this.chooseMode(e, i), s = new Ie();
|
|
22917
22930
|
if (o === he.BYTE && (a || t.DEFAULT_BYTE_MODE_ENCODING !== i)) {
|
|
22918
|
-
var u =
|
|
22931
|
+
var u = be.getCharacterSetECIByName(i);
|
|
22919
22932
|
u !== void 0 && this.appendECI(u, s);
|
|
22920
22933
|
}
|
|
22921
22934
|
this.appendModeInfo(o, s);
|
|
@@ -22938,7 +22951,7 @@ var co = (
|
|
|
22938
22951
|
this.terminateBits(w, d);
|
|
22939
22952
|
var m = this.interleaveWithECBytes(d, f.getTotalCodewords(), w, p.getNumBlocks()), y = new mi();
|
|
22940
22953
|
y.setECLevel(r), y.setMode(o), y.setVersion(f);
|
|
22941
|
-
var _ = f.getDimensionForVersion(), x = new
|
|
22954
|
+
var _ = f.getDimensionForVersion(), x = new k0(_, _), b = this.chooseMaskPattern(m, r, f, x);
|
|
22942
22955
|
return y.setMaskPattern(b), ba.buildMatrix(m, r, f, b, x), y.setMatrix(x), y;
|
|
22943
22956
|
}, t.recommendVersion = function(e, r, n, i) {
|
|
22944
22957
|
var a = this.calculateBitsNeeded(r, n, i, Ht.getVersionForNumber(1)), o = this.chooseVersion(a, e), s = this.calculateBitsNeeded(r, n, i, o);
|
|
@@ -22948,7 +22961,7 @@ var co = (
|
|
|
22948
22961
|
}, t.getAlphanumericCode = function(e) {
|
|
22949
22962
|
return e < t.ALPHANUMERIC_TABLE.length ? t.ALPHANUMERIC_TABLE[e] : -1;
|
|
22950
22963
|
}, t.chooseMode = function(e, r) {
|
|
22951
|
-
if (r === void 0 && (r = null),
|
|
22964
|
+
if (r === void 0 && (r = null), be.SJIS.getName() === r && this.isOnlyDoubleByteKanji(e))
|
|
22952
22965
|
return he.KANJI;
|
|
22953
22966
|
for (var n = !1, i = !1, a = 0, o = e.length; a < o; ++a) {
|
|
22954
22967
|
var s = e.charAt(a);
|
|
@@ -22963,7 +22976,7 @@ var co = (
|
|
|
22963
22976
|
}, t.isOnlyDoubleByteKanji = function(e) {
|
|
22964
22977
|
var r;
|
|
22965
22978
|
try {
|
|
22966
|
-
r = vt.encode(e,
|
|
22979
|
+
r = vt.encode(e, be.SJIS);
|
|
22967
22980
|
} catch {
|
|
22968
22981
|
return !1;
|
|
22969
22982
|
}
|
|
@@ -23028,7 +23041,7 @@ var co = (
|
|
|
23028
23041
|
var w = v[0], m = new Uint8Array(w);
|
|
23029
23042
|
e.toBytes(8 * l, m, 0, w);
|
|
23030
23043
|
var y = t.generateECBytes(m, p[0]);
|
|
23031
|
-
h.push(new
|
|
23044
|
+
h.push(new U0(m, y)), f = Math.max(f, w), c = Math.max(c, y.length), l += v[0];
|
|
23032
23045
|
}
|
|
23033
23046
|
if (n !== l)
|
|
23034
23047
|
throw new de("Data bytes does not match offset");
|
|
@@ -23141,7 +23154,7 @@ var co = (
|
|
|
23141
23154
|
}, t.appendKanjiBytes = function(e, r) {
|
|
23142
23155
|
var n;
|
|
23143
23156
|
try {
|
|
23144
|
-
n = vt.encode(e,
|
|
23157
|
+
n = vt.encode(e, be.SJIS);
|
|
23145
23158
|
} catch (c) {
|
|
23146
23159
|
throw new de(c);
|
|
23147
23160
|
}
|
|
@@ -23251,9 +23264,9 @@ var co = (
|
|
|
23251
23264
|
-1,
|
|
23252
23265
|
-1,
|
|
23253
23266
|
-1
|
|
23254
|
-
]), t.DEFAULT_BYTE_MODE_ENCODING =
|
|
23267
|
+
]), t.DEFAULT_BYTE_MODE_ENCODING = be.UTF8.getName(), t;
|
|
23255
23268
|
})();
|
|
23256
|
-
var
|
|
23269
|
+
var V0 = /* @__PURE__ */ function() {
|
|
23257
23270
|
var t = function(e, r) {
|
|
23258
23271
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
23259
23272
|
n.__proto__ = i;
|
|
@@ -23270,7 +23283,7 @@ var H0 = /* @__PURE__ */ function() {
|
|
|
23270
23283
|
};
|
|
23271
23284
|
}();
|
|
23272
23285
|
(function(t) {
|
|
23273
|
-
|
|
23286
|
+
V0(e, t);
|
|
23274
23287
|
function e(r, n, i, a, o, s, u, l) {
|
|
23275
23288
|
var f = t.call(this, s, u) || this;
|
|
23276
23289
|
if (f.yuvData = r, f.dataWidth = n, f.dataHeight = i, f.left = a, f.top = o, a + s > n || o + u > i)
|
|
@@ -23323,7 +23336,7 @@ var H0 = /* @__PURE__ */ function() {
|
|
|
23323
23336
|
return new Oi(this);
|
|
23324
23337
|
}, e.THUMBNAIL_SCALE_FACTOR = 2, e;
|
|
23325
23338
|
})(Sn);
|
|
23326
|
-
var
|
|
23339
|
+
var $0 = /* @__PURE__ */ function() {
|
|
23327
23340
|
var t = function(e, r) {
|
|
23328
23341
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
23329
23342
|
n.__proto__ = i;
|
|
@@ -23340,7 +23353,7 @@ var G0 = /* @__PURE__ */ function() {
|
|
|
23340
23353
|
};
|
|
23341
23354
|
}();
|
|
23342
23355
|
(function(t) {
|
|
23343
|
-
|
|
23356
|
+
$0(e, t);
|
|
23344
23357
|
function e(r, n, i, a, o, s, u) {
|
|
23345
23358
|
var l = t.call(this, n, i) || this;
|
|
23346
23359
|
if (l.dataWidth = a, l.dataHeight = o, l.left = s, l.top = u, r.BYTES_PER_ELEMENT === 4) {
|
|
@@ -23383,7 +23396,7 @@ var G0 = /* @__PURE__ */ function() {
|
|
|
23383
23396
|
return new Oi(this);
|
|
23384
23397
|
}, e;
|
|
23385
23398
|
})(Sn);
|
|
23386
|
-
var
|
|
23399
|
+
var H0 = /* @__PURE__ */ function() {
|
|
23387
23400
|
var t = function(e, r) {
|
|
23388
23401
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
23389
23402
|
n.__proto__ = i;
|
|
@@ -23400,20 +23413,20 @@ var z0 = /* @__PURE__ */ function() {
|
|
|
23400
23413
|
};
|
|
23401
23414
|
}();
|
|
23402
23415
|
(function(t) {
|
|
23403
|
-
|
|
23416
|
+
H0(e, t);
|
|
23404
23417
|
function e() {
|
|
23405
23418
|
return t !== null && t.apply(this, arguments) || this;
|
|
23406
23419
|
}
|
|
23407
23420
|
return e.forName = function(r) {
|
|
23408
23421
|
return this.getCharacterSetECIByName(r);
|
|
23409
23422
|
}, e;
|
|
23410
|
-
})(
|
|
23423
|
+
})(be);
|
|
23411
23424
|
(function() {
|
|
23412
23425
|
function t() {
|
|
23413
23426
|
}
|
|
23414
|
-
return t.ISO_8859_1 =
|
|
23427
|
+
return t.ISO_8859_1 = be.ISO8859_1, t;
|
|
23415
23428
|
})();
|
|
23416
|
-
var
|
|
23429
|
+
var G0 = (
|
|
23417
23430
|
/** @class */
|
|
23418
23431
|
function() {
|
|
23419
23432
|
function t() {
|
|
@@ -23451,7 +23464,7 @@ var W0 = (
|
|
|
23451
23464
|
return e.sort(r)[0];
|
|
23452
23465
|
}, t;
|
|
23453
23466
|
}()
|
|
23454
|
-
),
|
|
23467
|
+
), z0 = (
|
|
23455
23468
|
/** @class */
|
|
23456
23469
|
function() {
|
|
23457
23470
|
function t(e) {
|
|
@@ -23461,7 +23474,7 @@ var W0 = (
|
|
|
23461
23474
|
return this.previous;
|
|
23462
23475
|
}, t;
|
|
23463
23476
|
}()
|
|
23464
|
-
),
|
|
23477
|
+
), W0 = /* @__PURE__ */ function() {
|
|
23465
23478
|
var t = function(e, r) {
|
|
23466
23479
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
23467
23480
|
n.__proto__ = i;
|
|
@@ -23479,7 +23492,7 @@ var W0 = (
|
|
|
23479
23492
|
}(), Pi = (
|
|
23480
23493
|
/** @class */
|
|
23481
23494
|
function(t) {
|
|
23482
|
-
|
|
23495
|
+
W0(e, t);
|
|
23483
23496
|
function e(r, n, i) {
|
|
23484
23497
|
var a = t.call(this, r) || this;
|
|
23485
23498
|
return a.value = n, a.bitCount = i, a;
|
|
@@ -23494,8 +23507,8 @@ var W0 = (
|
|
|
23494
23507
|
var r = this.value & (1 << this.bitCount) - 1;
|
|
23495
23508
|
return r |= 1 << this.bitCount, "<" + Y.toBinaryString(r | 1 << this.bitCount).substring(1) + ">";
|
|
23496
23509
|
}, e;
|
|
23497
|
-
}(
|
|
23498
|
-
),
|
|
23510
|
+
}(z0)
|
|
23511
|
+
), X0 = /* @__PURE__ */ function() {
|
|
23499
23512
|
var t = function(e, r) {
|
|
23500
23513
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
23501
23514
|
n.__proto__ = i;
|
|
@@ -23510,10 +23523,10 @@ var W0 = (
|
|
|
23510
23523
|
}
|
|
23511
23524
|
e.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
|
|
23512
23525
|
};
|
|
23513
|
-
}(),
|
|
23526
|
+
}(), j0 = (
|
|
23514
23527
|
/** @class */
|
|
23515
23528
|
function(t) {
|
|
23516
|
-
|
|
23529
|
+
X0(e, t);
|
|
23517
23530
|
function e(r, n, i) {
|
|
23518
23531
|
var a = t.call(this, r, 0, 0) || this;
|
|
23519
23532
|
return a.binaryShiftStart = n, a.binaryShiftByteCount = i, a;
|
|
@@ -23528,19 +23541,19 @@ var W0 = (
|
|
|
23528
23541
|
}, e;
|
|
23529
23542
|
}(Pi)
|
|
23530
23543
|
);
|
|
23531
|
-
function
|
|
23532
|
-
return new
|
|
23544
|
+
function Y0(t, e, r) {
|
|
23545
|
+
return new j0(t, e, r);
|
|
23533
23546
|
}
|
|
23534
23547
|
function _r(t, e, r) {
|
|
23535
23548
|
return new Pi(t, e, r);
|
|
23536
23549
|
}
|
|
23537
|
-
var
|
|
23550
|
+
var K0 = [
|
|
23538
23551
|
"UPPER",
|
|
23539
23552
|
"LOWER",
|
|
23540
23553
|
"DIGIT",
|
|
23541
23554
|
"MIXED",
|
|
23542
23555
|
"PUNCT"
|
|
23543
|
-
], Pt = 0, mn = 1, Qe = 2, ho = 3, dt = 4,
|
|
23556
|
+
], Pt = 0, mn = 1, Qe = 2, ho = 3, dt = 4, Z0 = new Pi(null, 0, 0), Zn = [
|
|
23544
23557
|
Int32Array.from([
|
|
23545
23558
|
0,
|
|
23546
23559
|
(5 << 16) + 28,
|
|
@@ -23580,7 +23593,7 @@ var q0 = [
|
|
|
23580
23593
|
656381,
|
|
23581
23594
|
0
|
|
23582
23595
|
])
|
|
23583
|
-
],
|
|
23596
|
+
], q0 = function(t) {
|
|
23584
23597
|
var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0;
|
|
23585
23598
|
if (r) return r.call(t);
|
|
23586
23599
|
if (t && typeof t.length == "number") return {
|
|
@@ -23590,10 +23603,10 @@ var q0 = [
|
|
|
23590
23603
|
};
|
|
23591
23604
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
23592
23605
|
};
|
|
23593
|
-
function
|
|
23606
|
+
function Q0(t) {
|
|
23594
23607
|
var e, r;
|
|
23595
23608
|
try {
|
|
23596
|
-
for (var n =
|
|
23609
|
+
for (var n = q0(t), i = n.next(); !i.done; i = n.next()) {
|
|
23597
23610
|
var a = i.value;
|
|
23598
23611
|
We.fill(a, -1);
|
|
23599
23612
|
}
|
|
@@ -23608,7 +23621,7 @@ function ec(t) {
|
|
|
23608
23621
|
}
|
|
23609
23622
|
return t[Pt][dt] = 0, t[mn][dt] = 0, t[mn][Pt] = 28, t[ho][dt] = 0, t[Qe][dt] = 0, t[Qe][Pt] = 15, t;
|
|
23610
23623
|
}
|
|
23611
|
-
var vo =
|
|
23624
|
+
var vo = Q0(We.createInt32Array(6, 6)), J0 = function(t) {
|
|
23612
23625
|
var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0;
|
|
23613
23626
|
if (r) return r.call(t);
|
|
23614
23627
|
if (t && typeof t.length == "number") return {
|
|
@@ -23617,7 +23630,7 @@ var vo = ec(We.createInt32Array(6, 6)), tc = function(t) {
|
|
|
23617
23630
|
}
|
|
23618
23631
|
};
|
|
23619
23632
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
23620
|
-
},
|
|
23633
|
+
}, ec = (
|
|
23621
23634
|
/** @class */
|
|
23622
23635
|
function() {
|
|
23623
23636
|
function t(e, r, n, i) {
|
|
@@ -23654,7 +23667,7 @@ var vo = ec(We.createInt32Array(6, 6)), tc = function(t) {
|
|
|
23654
23667
|
if (this.binaryShiftByteCount === 0)
|
|
23655
23668
|
return this;
|
|
23656
23669
|
var r = this.token;
|
|
23657
|
-
return r =
|
|
23670
|
+
return r = Y0(r, e - this.binaryShiftByteCount, this.binaryShiftByteCount), new t(r, this.mode, 0, this.bitCount);
|
|
23658
23671
|
}, t.prototype.isBetterThanOrEqualTo = function(e) {
|
|
23659
23672
|
var r = this.bitCount + (Zn[this.mode][e.mode] >> 16);
|
|
23660
23673
|
return this.binaryShiftByteCount < e.binaryShiftByteCount ? r += t.calculateBinaryShiftCost(e) - t.calculateBinaryShiftCost(this) : this.binaryShiftByteCount > e.binaryShiftByteCount && e.binaryShiftByteCount > 0 && (r += 10), r <= e.bitCount;
|
|
@@ -23663,7 +23676,7 @@ var vo = ec(We.createInt32Array(6, 6)), tc = function(t) {
|
|
|
23663
23676
|
i.unshift(a);
|
|
23664
23677
|
var o = new Ie();
|
|
23665
23678
|
try {
|
|
23666
|
-
for (var s =
|
|
23679
|
+
for (var s = J0(i), u = s.next(); !u.done; u = s.next()) {
|
|
23667
23680
|
var l = u.value;
|
|
23668
23681
|
l.appendTo(o, e);
|
|
23669
23682
|
}
|
|
@@ -23678,13 +23691,13 @@ var vo = ec(We.createInt32Array(6, 6)), tc = function(t) {
|
|
|
23678
23691
|
}
|
|
23679
23692
|
return o;
|
|
23680
23693
|
}, t.prototype.toString = function() {
|
|
23681
|
-
return fe.format("%s bits=%d bytes=%d",
|
|
23694
|
+
return fe.format("%s bits=%d bytes=%d", K0[this.mode], this.bitCount, this.binaryShiftByteCount);
|
|
23682
23695
|
}, t.calculateBinaryShiftCost = function(e) {
|
|
23683
23696
|
return e.binaryShiftByteCount > 62 ? 21 : e.binaryShiftByteCount > 31 ? 20 : e.binaryShiftByteCount > 0 ? 10 : 0;
|
|
23684
|
-
}, t.INITIAL_STATE = new t(
|
|
23697
|
+
}, t.INITIAL_STATE = new t(Z0, Pt, 0, 0), t;
|
|
23685
23698
|
}()
|
|
23686
23699
|
);
|
|
23687
|
-
function
|
|
23700
|
+
function tc(t) {
|
|
23688
23701
|
var e = fe.getCharCode(" "), r = fe.getCharCode("."), n = fe.getCharCode(",");
|
|
23689
23702
|
t[Pt][e] = 1;
|
|
23690
23703
|
for (var i = fe.getCharCode("Z"), a = fe.getCharCode("A"), o = a; o <= i; o++)
|
|
@@ -23764,7 +23777,7 @@ function nc(t) {
|
|
|
23764
23777
|
fe.getCharCode(d[h]) > 0 && (t[dt][fe.getCharCode(d[h])] = h);
|
|
23765
23778
|
return t;
|
|
23766
23779
|
}
|
|
23767
|
-
var qn =
|
|
23780
|
+
var qn = tc(We.createInt32Array(5, 256)), tn = function(t) {
|
|
23768
23781
|
var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0;
|
|
23769
23782
|
if (r) return r.call(t);
|
|
23770
23783
|
if (t && typeof t.length == "number") return {
|
|
@@ -23773,7 +23786,7 @@ var qn = nc(We.createInt32Array(5, 256)), tn = function(t) {
|
|
|
23773
23786
|
}
|
|
23774
23787
|
};
|
|
23775
23788
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
23776
|
-
},
|
|
23789
|
+
}, rc = (
|
|
23777
23790
|
/** @class */
|
|
23778
23791
|
function() {
|
|
23779
23792
|
function t(e) {
|
|
@@ -23781,7 +23794,7 @@ var qn = nc(We.createInt32Array(5, 256)), tn = function(t) {
|
|
|
23781
23794
|
}
|
|
23782
23795
|
return t.prototype.encode = function() {
|
|
23783
23796
|
for (var e = fe.getCharCode(" "), r = fe.getCharCode(`
|
|
23784
|
-
`), n = Sa.singletonList(
|
|
23797
|
+
`), n = Sa.singletonList(ec.INITIAL_STATE), i = 0; i < this.text.length; i++) {
|
|
23785
23798
|
var a = void 0, o = i + 1 < this.text.length ? this.text[i + 1] : 0;
|
|
23786
23799
|
switch (this.text[i]) {
|
|
23787
23800
|
case fe.getCharCode("\r"):
|
|
@@ -23907,7 +23920,7 @@ var qn = nc(We.createInt32Array(5, 256)), tn = function(t) {
|
|
|
23907
23920
|
return o;
|
|
23908
23921
|
}, t;
|
|
23909
23922
|
}()
|
|
23910
|
-
),
|
|
23923
|
+
), nc = function(t) {
|
|
23911
23924
|
var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0;
|
|
23912
23925
|
if (r) return r.call(t);
|
|
23913
23926
|
if (t && typeof t.length == "number") return {
|
|
@@ -23923,7 +23936,7 @@ var qn = nc(We.createInt32Array(5, 256)), tn = function(t) {
|
|
|
23923
23936
|
return t.encodeBytes = function(e) {
|
|
23924
23937
|
return t.encode(e, t.DEFAULT_EC_PERCENT, t.DEFAULT_AZTEC_LAYERS);
|
|
23925
23938
|
}, t.encode = function(e, r, n) {
|
|
23926
|
-
var i = new
|
|
23939
|
+
var i = new rc(e).encode(), a = Y.truncDivision(i.getSize() * r, 100) + 11, o = i.getSize() + a, s, u, l, f, c;
|
|
23927
23940
|
if (n !== t.DEFAULT_AZTEC_LAYERS) {
|
|
23928
23941
|
if (s = n < 0, u = Math.abs(n), u > (s ? t.MAX_NB_BITS_COMPACT : t.MAX_NB_BITS))
|
|
23929
23942
|
throw new V(fe.format("Illegal value %s for layers", n));
|
|
@@ -23972,7 +23985,7 @@ var qn = nc(We.createInt32Array(5, 256)), tn = function(t) {
|
|
|
23972
23985
|
for (var $ = Y.truncDivision(_, 2) & 1; $ < _; $ += 2)
|
|
23973
23986
|
O.set(Y.truncDivision(_, 2) - U, $), O.set(Y.truncDivision(_, 2) + U, $), O.set($, Y.truncDivision(_, 2) - U), O.set($, Y.truncDivision(_, 2) + U);
|
|
23974
23987
|
}
|
|
23975
|
-
var Z = new
|
|
23988
|
+
var Z = new G0();
|
|
23976
23989
|
return Z.setCompact(s), Z.setSize(_), Z.setLayers(u), Z.setCodeWords(p), Z.setMatrix(O), Z;
|
|
23977
23990
|
}, t.drawBullsEye = function(e, r, n) {
|
|
23978
23991
|
for (var i = 0; i < n; i += 2)
|
|
@@ -24000,7 +24013,7 @@ var qn = nc(We.createInt32Array(5, 256)), tn = function(t) {
|
|
|
24000
24013
|
var f = r % n, c = new Ie();
|
|
24001
24014
|
c.appendBits(0, f);
|
|
24002
24015
|
try {
|
|
24003
|
-
for (var h =
|
|
24016
|
+
for (var h = nc(Array.from(l)), d = h.next(); !d.done; d = h.next()) {
|
|
24004
24017
|
var v = d.value;
|
|
24005
24018
|
c.appendBits(v, n);
|
|
24006
24019
|
}
|
|
@@ -24082,12 +24095,12 @@ var qn = nc(We.createInt32Array(5, 256)), tn = function(t) {
|
|
|
24082
24095
|
12
|
|
24083
24096
|
]), t;
|
|
24084
24097
|
})();
|
|
24085
|
-
const
|
|
24098
|
+
const ic = {
|
|
24086
24099
|
name: "stream-barcode-reader",
|
|
24087
24100
|
data() {
|
|
24088
24101
|
return {
|
|
24089
24102
|
isLoading: !0,
|
|
24090
|
-
codeReader: new
|
|
24103
|
+
codeReader: new P0(),
|
|
24091
24104
|
isMediaStreamAPISupported: navigator && navigator.mediaDevices && "enumerateDevices" in navigator.mediaDevices
|
|
24092
24105
|
};
|
|
24093
24106
|
},
|
|
@@ -24108,14 +24121,14 @@ const oc = {
|
|
|
24108
24121
|
});
|
|
24109
24122
|
}
|
|
24110
24123
|
}
|
|
24111
|
-
},
|
|
24124
|
+
}, ac = { class: "scanner-container" }, oc = {
|
|
24112
24125
|
poster: "data:image/gif,AAAA",
|
|
24113
24126
|
ref: "scanner"
|
|
24114
24127
|
};
|
|
24115
|
-
function
|
|
24116
|
-
return E(), R("div",
|
|
24128
|
+
function sc(t, e, r, n, i, a) {
|
|
24129
|
+
return E(), R("div", ac, [
|
|
24117
24130
|
Yt(L("div", null, [
|
|
24118
|
-
L("video",
|
|
24131
|
+
L("video", oc, null, 512),
|
|
24119
24132
|
e[0] || (e[0] = L("div", { class: "overlay-element" }, null, -1)),
|
|
24120
24133
|
e[1] || (e[1] = L("div", { class: "laser" }, null, -1))
|
|
24121
24134
|
], 512), [
|
|
@@ -24123,16 +24136,16 @@ function lc(t, e, r, n, i, a) {
|
|
|
24123
24136
|
])
|
|
24124
24137
|
]);
|
|
24125
24138
|
}
|
|
24126
|
-
const
|
|
24139
|
+
const uc = /* @__PURE__ */ $r(ic, [["render", sc], ["__scopeId", "data-v-3b725b25"]]), lc = {
|
|
24127
24140
|
key: 0,
|
|
24128
24141
|
class: "scanner-modal"
|
|
24129
|
-
},
|
|
24142
|
+
}, fc = { class: "scanner-header" }, cc = { class: "scanner-title" }, dc = {
|
|
24130
24143
|
key: 0,
|
|
24131
24144
|
class: "scanner-subtitle"
|
|
24132
|
-
},
|
|
24145
|
+
}, hc = { class: "scanner-stream" }, vc = { class: "scanner-overlay" }, pc = {
|
|
24133
24146
|
key: 0,
|
|
24134
24147
|
class: "scanner-slot"
|
|
24135
|
-
},
|
|
24148
|
+
}, gc = { class: "scanner-manual" }, xc = { key: 0 }, yc = /* @__PURE__ */ pe({
|
|
24136
24149
|
__name: "DsgBarcodeScanner",
|
|
24137
24150
|
props: {
|
|
24138
24151
|
failTitle: {},
|
|
@@ -24203,8 +24216,8 @@ const fc = /* @__PURE__ */ $r(oc, [["render", lc], ["__scopeId", "data-v-3b725b2
|
|
|
24203
24216
|
le(), window.addEventListener("resize", le);
|
|
24204
24217
|
}), Na(() => {
|
|
24205
24218
|
window.removeEventListener("resize", le);
|
|
24206
|
-
}), ($, Z) => (E(),
|
|
24207
|
-
n.value ? (E(), R("div",
|
|
24219
|
+
}), ($, Z) => (E(), X(Ra, { to: "body" }, [
|
|
24220
|
+
n.value ? (E(), R("div", lc, [
|
|
24208
24221
|
K(eo, {
|
|
24209
24222
|
ref_key: "modalRef",
|
|
24210
24223
|
ref: h,
|
|
@@ -24223,10 +24236,10 @@ const fc = /* @__PURE__ */ $r(oc, [["render", lc], ["__scopeId", "data-v-3b725b2
|
|
|
24223
24236
|
}),
|
|
24224
24237
|
width: 500
|
|
24225
24238
|
}, null, 8, ["title", "description"]),
|
|
24226
|
-
L("div",
|
|
24239
|
+
L("div", fc, [
|
|
24227
24240
|
L("div", null, [
|
|
24228
|
-
L("h2",
|
|
24229
|
-
a.value ? (E(), R("p",
|
|
24241
|
+
L("h2", cc, j(i.value), 1),
|
|
24242
|
+
a.value ? (E(), R("p", dc, j(a.value), 1)) : B("", !0)
|
|
24230
24243
|
]),
|
|
24231
24244
|
L("button", {
|
|
24232
24245
|
class: "scanner-close",
|
|
@@ -24234,32 +24247,32 @@ const fc = /* @__PURE__ */ $r(oc, [["render", lc], ["__scopeId", "data-v-3b725b2
|
|
|
24234
24247
|
"aria-label": "Close"
|
|
24235
24248
|
}, "×")
|
|
24236
24249
|
]),
|
|
24237
|
-
L("div",
|
|
24238
|
-
K(Ye(
|
|
24250
|
+
L("div", hc, [
|
|
24251
|
+
K(Ye(uc), {
|
|
24239
24252
|
class: "scanner-video",
|
|
24240
24253
|
onDecode: m
|
|
24241
24254
|
}),
|
|
24242
|
-
L("div",
|
|
24243
|
-
l.value ? (E(), R("div",
|
|
24255
|
+
L("div", vc, [
|
|
24256
|
+
l.value ? (E(), R("div", pc, [
|
|
24244
24257
|
W($.$slots, "default", {}, void 0, !0)
|
|
24245
24258
|
])) : B("", !0),
|
|
24246
|
-
L("div",
|
|
24247
|
-
s.value ? B("", !0) : (E(), R("span",
|
|
24248
|
-
s.value ? B("", !0) : (E(),
|
|
24259
|
+
L("div", gc, [
|
|
24260
|
+
s.value ? B("", !0) : (E(), R("span", xc, "No barcode?")),
|
|
24261
|
+
s.value ? B("", !0) : (E(), X(Nt, {
|
|
24249
24262
|
key: 1,
|
|
24250
24263
|
label: "Input manually",
|
|
24251
24264
|
onClick: _,
|
|
24252
24265
|
"icon-before": "pencil-01",
|
|
24253
24266
|
theme: "gray-secondary"
|
|
24254
24267
|
})),
|
|
24255
|
-
s.value ? (E(),
|
|
24268
|
+
s.value ? (E(), X(Oa, {
|
|
24256
24269
|
key: 2,
|
|
24257
24270
|
modelValue: o.value,
|
|
24258
24271
|
"onUpdate:modelValue": Z[2] || (Z[2] = (Ce) => o.value = Ce),
|
|
24259
24272
|
placeholder: "Enter barcode manually",
|
|
24260
24273
|
class: "w-full"
|
|
24261
24274
|
}, null, 8, ["modelValue"])) : B("", !0),
|
|
24262
|
-
s.value ? (E(),
|
|
24275
|
+
s.value ? (E(), X(Nt, {
|
|
24263
24276
|
key: 3,
|
|
24264
24277
|
label: "Submit",
|
|
24265
24278
|
onClick: y,
|
|
@@ -24267,7 +24280,7 @@ const fc = /* @__PURE__ */ $r(oc, [["render", lc], ["__scopeId", "data-v-3b725b2
|
|
|
24267
24280
|
theme: "gray-secondary"
|
|
24268
24281
|
})) : B("", !0)
|
|
24269
24282
|
]),
|
|
24270
|
-
u.value ? (E(),
|
|
24283
|
+
u.value ? (E(), X(we, {
|
|
24271
24284
|
key: 1,
|
|
24272
24285
|
icon: "check",
|
|
24273
24286
|
size: "3xl",
|
|
@@ -24278,7 +24291,7 @@ const fc = /* @__PURE__ */ $r(oc, [["render", lc], ["__scopeId", "data-v-3b725b2
|
|
|
24278
24291
|
])) : B("", !0)
|
|
24279
24292
|
]));
|
|
24280
24293
|
}
|
|
24281
|
-
}),
|
|
24294
|
+
}), wc = /* @__PURE__ */ $r(yc, [["__scopeId", "data-v-f9dfc5f7"]]), po = /* @__PURE__ */ pe({
|
|
24282
24295
|
__name: "DsgCard",
|
|
24283
24296
|
props: {
|
|
24284
24297
|
variant: { default: "default" },
|
|
@@ -24296,7 +24309,7 @@ const fc = /* @__PURE__ */ $r(oc, [["render", lc], ["__scopeId", "data-v-3b725b2
|
|
|
24296
24309
|
W(e.$slots, "default")
|
|
24297
24310
|
], 2));
|
|
24298
24311
|
}
|
|
24299
|
-
}),
|
|
24312
|
+
}), mc = /* @__PURE__ */ pe({
|
|
24300
24313
|
__name: "DsgCardContainer",
|
|
24301
24314
|
props: {
|
|
24302
24315
|
columns: { default: 1 },
|
|
@@ -24309,7 +24322,7 @@ const fc = /* @__PURE__ */ $r(oc, [["render", lc], ["__scopeId", "data-v-3b725b2
|
|
|
24309
24322
|
return (e, r) => (E(), R("div", {
|
|
24310
24323
|
class: Q(["dsg-card-container", `dsg-card-container--cols-${e.columns} dsg-card-container--gap-${e.gap}`])
|
|
24311
24324
|
}, [
|
|
24312
|
-
(E(!0), R(Re, null, Ke(e.items, (n, i) => (E(),
|
|
24325
|
+
(E(!0), R(Re, null, Ke(e.items, (n, i) => (E(), X(po, ke({
|
|
24313
24326
|
key: e.itemKey ? n[e.itemKey] : i
|
|
24314
24327
|
}, { ref_for: !0 }, e.cardProps), {
|
|
24315
24328
|
default: ht(() => [
|
|
@@ -24322,7 +24335,7 @@ const fc = /* @__PURE__ */ $r(oc, [["render", lc], ["__scopeId", "data-v-3b725b2
|
|
|
24322
24335
|
}, 1040))), 128))
|
|
24323
24336
|
], 2));
|
|
24324
24337
|
}
|
|
24325
|
-
}),
|
|
24338
|
+
}), _c = { key: 1 }, Ac = /* @__PURE__ */ pe({
|
|
24326
24339
|
__name: "DsgBreadcrumb",
|
|
24327
24340
|
props: {
|
|
24328
24341
|
breadcrumbs: { default: () => [] },
|
|
@@ -24340,7 +24353,7 @@ const fc = /* @__PURE__ */ $r(oc, [["render", lc], ["__scopeId", "data-v-3b725b2
|
|
|
24340
24353
|
(E(!0), R(Re, null, Ke(e.breadcrumbs, (n, i) => (E(), R(Re, {
|
|
24341
24354
|
key: `breadcrumb-item-${i}`
|
|
24342
24355
|
}, [
|
|
24343
|
-
(E(),
|
|
24356
|
+
(E(), X(Io(n.url ?? !1 ? "a" : "span"), {
|
|
24344
24357
|
href: n.url ?? null,
|
|
24345
24358
|
disabled: n.disabled,
|
|
24346
24359
|
class: Q(
|
|
@@ -24352,29 +24365,29 @@ const fc = /* @__PURE__ */ $r(oc, [["render", lc], ["__scopeId", "data-v-3b725b2
|
|
|
24352
24365
|
)
|
|
24353
24366
|
}, {
|
|
24354
24367
|
default: ht(() => [
|
|
24355
|
-
n.icon && n.useIcon ? (E(),
|
|
24368
|
+
n.icon && n.useIcon ? (E(), X(we, {
|
|
24356
24369
|
key: 0,
|
|
24357
24370
|
icon: n.icon,
|
|
24358
24371
|
size: "sm",
|
|
24359
24372
|
classes: "dsg-breadcrumbs__icon"
|
|
24360
|
-
}, null, 8, ["icon"])) : (E(), R("span",
|
|
24373
|
+
}, null, 8, ["icon"])) : (E(), R("span", _c, j(n.label), 1))
|
|
24361
24374
|
]),
|
|
24362
24375
|
_: 2
|
|
24363
24376
|
}, 1032, ["href", "disabled", "class"])),
|
|
24364
|
-
i < e.breadcrumbs.length - 1 ? (E(),
|
|
24377
|
+
i < e.breadcrumbs.length - 1 ? (E(), X(we, ke({
|
|
24365
24378
|
key: 0,
|
|
24366
24379
|
ref_for: !0
|
|
24367
24380
|
}, e.divider, { class: "dsg-breadcrumbs__divider" }), null, 16)) : B("", !0)
|
|
24368
24381
|
], 64))), 128))
|
|
24369
24382
|
]));
|
|
24370
24383
|
}
|
|
24371
|
-
}),
|
|
24384
|
+
}), Ec = /* @__PURE__ */ $r(Ac, [["__scopeId", "data-v-8f108e12"]]), bc = { class: "dsg-tab--mobile" }, Cc = {
|
|
24372
24385
|
"aria-label": "Select a tab",
|
|
24373
24386
|
class: "dsg-tab--mobile-select"
|
|
24374
|
-
},
|
|
24387
|
+
}, Sc = ["selected", "textContent"], Ic = { class: "dsg-tab--desktop" }, Oc = { class: "dsg-tab--desktop-wrapper" }, Tc = ["href", "onClick", "aria-current"], Dc = ["textContent"], Nc = {
|
|
24375
24388
|
key: 0,
|
|
24376
24389
|
class: "dsg-tab--content"
|
|
24377
|
-
},
|
|
24390
|
+
}, Rc = /* @__PURE__ */ pe({
|
|
24378
24391
|
__name: "DsgTab",
|
|
24379
24392
|
props: {
|
|
24380
24393
|
tabs: { default: () => [] },
|
|
@@ -24405,23 +24418,23 @@ const fc = /* @__PURE__ */ $r(oc, [["render", lc], ["__scopeId", "data-v-3b725b2
|
|
|
24405
24418
|
return (a, o) => (E(), R("div", {
|
|
24406
24419
|
class: Q(["dsg-tab", `dsg-tab--${a.style}`])
|
|
24407
24420
|
}, [
|
|
24408
|
-
L("div",
|
|
24409
|
-
L("select",
|
|
24421
|
+
L("div", bc, [
|
|
24422
|
+
L("select", Cc, [
|
|
24410
24423
|
(E(!0), R(Re, null, Ke(a.tabs, (s) => (E(), R("option", {
|
|
24411
24424
|
key: s.name,
|
|
24412
24425
|
selected: s.current,
|
|
24413
|
-
textContent:
|
|
24414
|
-
}, null, 8,
|
|
24426
|
+
textContent: j(s.name)
|
|
24427
|
+
}, null, 8, Sc))), 128))
|
|
24415
24428
|
]),
|
|
24416
|
-
K(
|
|
24429
|
+
K(we, {
|
|
24417
24430
|
class: "dsg-tab--mobile-select-icon",
|
|
24418
24431
|
icon: "chevron-down",
|
|
24419
24432
|
"aria-hidden": "true",
|
|
24420
24433
|
size: "sm"
|
|
24421
24434
|
})
|
|
24422
24435
|
]),
|
|
24423
|
-
L("div",
|
|
24424
|
-
L("div",
|
|
24436
|
+
L("div", Ic, [
|
|
24437
|
+
L("div", Oc, [
|
|
24425
24438
|
L("div", {
|
|
24426
24439
|
class: Q(["dsg-tab--desktop-nav", a.style === "pills" ? "dsg-tab--pills-nav" : ""]),
|
|
24427
24440
|
"aria-label": "Tabs"
|
|
@@ -24437,20 +24450,20 @@ const fc = /* @__PURE__ */ $r(oc, [["render", lc], ["__scopeId", "data-v-3b725b2
|
|
|
24437
24450
|
}, [
|
|
24438
24451
|
L("span", {
|
|
24439
24452
|
class: "dsg-tab--desktop-link-label",
|
|
24440
|
-
textContent:
|
|
24441
|
-
}, null, 8,
|
|
24442
|
-
s.badge ? (E(),
|
|
24453
|
+
textContent: j(s.name)
|
|
24454
|
+
}, null, 8, Dc),
|
|
24455
|
+
s.badge ? (E(), X(za, {
|
|
24443
24456
|
key: 0,
|
|
24444
24457
|
label: s.badge.label,
|
|
24445
24458
|
"theme-color": s.current ? "brand" : "gray",
|
|
24446
24459
|
theme: "pill-color",
|
|
24447
24460
|
size: "sm"
|
|
24448
24461
|
}, null, 8, ["label", "theme-color"])) : B("", !0)
|
|
24449
|
-
], 10,
|
|
24462
|
+
], 10, Tc))), 128))
|
|
24450
24463
|
], 2)
|
|
24451
24464
|
])
|
|
24452
24465
|
]),
|
|
24453
|
-
a.useSlots ? (E(), R("div",
|
|
24466
|
+
a.useSlots ? (E(), R("div", Nc, [
|
|
24454
24467
|
(E(!0), R(Re, null, Ke(a.tabs, (s, u) => (E(), R(Re, null, [
|
|
24455
24468
|
s.current ? W(a.$slots, `dsg-tab--content--${String(s.key).trim().toLowerCase().replace(/[^0-9a-zA-Z]/g, "-").replace(/-+/g, "-")}`, {
|
|
24456
24469
|
key: 0,
|
|
@@ -24460,63 +24473,63 @@ const fc = /* @__PURE__ */ $r(oc, [["render", lc], ["__scopeId", "data-v-3b725b2
|
|
|
24460
24473
|
])) : B("", !0)
|
|
24461
24474
|
], 2));
|
|
24462
24475
|
}
|
|
24463
|
-
}),
|
|
24464
|
-
DsgIcon:
|
|
24465
|
-
DsgMiscIcon:
|
|
24466
|
-
DsgCreditCardIcon:
|
|
24467
|
-
DsgAlert:
|
|
24468
|
-
DsgAccordion:
|
|
24469
|
-
DsgAnnouncement:
|
|
24470
|
-
DsgAvatar:
|
|
24471
|
-
DsgBadge:
|
|
24472
|
-
DsgButton:
|
|
24473
|
-
DsgCheckbox:
|
|
24474
|
-
DsgCheckboxGroup:
|
|
24475
|
-
DsgDropdown:
|
|
24476
|
-
DsgInput:
|
|
24477
|
-
DsgInputSelect:
|
|
24478
|
-
DsgInputDropdown:
|
|
24479
|
-
DsgDatepicker:
|
|
24480
|
-
DsgLabel:
|
|
24481
|
-
DsgLink:
|
|
24482
|
-
DsgModal:
|
|
24483
|
-
DsgTag:
|
|
24484
|
-
DsgToggle:
|
|
24485
|
-
DsgTooltip:
|
|
24486
|
-
DsgBreadcrumb:
|
|
24487
|
-
DsgTab:
|
|
24488
|
-
DsgFilter:
|
|
24476
|
+
}), Pc = we, Bc = Kt, Mc = wo, Lc = Bo, kc = $s, Fc = Ga, Uc = Mr, Vc = za, $c = Nt, Hc = cn, Gc = uu, zc = Xu, Wc = Oa, Xc = w1, jc = E1, Yc = mo, Kc = Pa, Zc = S1, qc = eo, Qc = M1, Jc = $1, ed = Ia, td = _o, ud = Qs, ld = Y1, fd = wc, cd = po, dd = mc, rd = Ec, nd = Rc, hd = {
|
|
24477
|
+
DsgIcon: Pc,
|
|
24478
|
+
DsgMiscIcon: Bc,
|
|
24479
|
+
DsgCreditCardIcon: Mc,
|
|
24480
|
+
DsgAlert: kc,
|
|
24481
|
+
DsgAccordion: Lc,
|
|
24482
|
+
DsgAnnouncement: Fc,
|
|
24483
|
+
DsgAvatar: Uc,
|
|
24484
|
+
DsgBadge: Vc,
|
|
24485
|
+
DsgButton: $c,
|
|
24486
|
+
DsgCheckbox: Hc,
|
|
24487
|
+
DsgCheckboxGroup: Gc,
|
|
24488
|
+
DsgDropdown: zc,
|
|
24489
|
+
DsgInput: Wc,
|
|
24490
|
+
DsgInputSelect: Xc,
|
|
24491
|
+
DsgInputDropdown: jc,
|
|
24492
|
+
DsgDatepicker: Yc,
|
|
24493
|
+
DsgLabel: Kc,
|
|
24494
|
+
DsgLink: Zc,
|
|
24495
|
+
DsgModal: qc,
|
|
24496
|
+
DsgTag: Qc,
|
|
24497
|
+
DsgToggle: Jc,
|
|
24498
|
+
DsgTooltip: ed,
|
|
24499
|
+
DsgBreadcrumb: rd,
|
|
24500
|
+
DsgTab: nd,
|
|
24501
|
+
DsgFilter: td
|
|
24489
24502
|
};
|
|
24490
24503
|
export {
|
|
24491
|
-
|
|
24492
|
-
|
|
24493
|
-
|
|
24494
|
-
|
|
24495
|
-
|
|
24496
|
-
|
|
24497
|
-
|
|
24498
|
-
|
|
24499
|
-
|
|
24500
|
-
|
|
24501
|
-
|
|
24502
|
-
|
|
24503
|
-
|
|
24504
|
-
|
|
24505
|
-
|
|
24506
|
-
|
|
24507
|
-
|
|
24508
|
-
|
|
24509
|
-
|
|
24510
|
-
|
|
24511
|
-
|
|
24512
|
-
|
|
24513
|
-
|
|
24514
|
-
|
|
24515
|
-
|
|
24516
|
-
|
|
24517
|
-
|
|
24518
|
-
|
|
24519
|
-
|
|
24520
|
-
|
|
24521
|
-
|
|
24504
|
+
Lc as DsgAccordion,
|
|
24505
|
+
kc as DsgAlert,
|
|
24506
|
+
Fc as DsgAnnouncement,
|
|
24507
|
+
Uc as DsgAvatar,
|
|
24508
|
+
Vc as DsgBadge,
|
|
24509
|
+
fd as DsgBarcodeScanner,
|
|
24510
|
+
rd as DsgBreadcrumb,
|
|
24511
|
+
$c as DsgButton,
|
|
24512
|
+
cd as DsgCard,
|
|
24513
|
+
dd as DsgCardContainer,
|
|
24514
|
+
Hc as DsgCheckbox,
|
|
24515
|
+
Gc as DsgCheckboxGroup,
|
|
24516
|
+
Mc as DsgCreditCardIcon,
|
|
24517
|
+
Yc as DsgDatepicker,
|
|
24518
|
+
zc as DsgDropdown,
|
|
24519
|
+
td as DsgFilter,
|
|
24520
|
+
Pc as DsgIcon,
|
|
24521
|
+
Wc as DsgInput,
|
|
24522
|
+
jc as DsgInputDropdown,
|
|
24523
|
+
ud as DsgInputNumber,
|
|
24524
|
+
Xc as DsgInputSelect,
|
|
24525
|
+
Kc as DsgLabel,
|
|
24526
|
+
Zc as DsgLink,
|
|
24527
|
+
Bc as DsgMiscIcon,
|
|
24528
|
+
qc as DsgModal,
|
|
24529
|
+
ld as DsgProgress,
|
|
24530
|
+
nd as DsgTab,
|
|
24531
|
+
Qc as DsgTag,
|
|
24532
|
+
Jc as DsgToggle,
|
|
24533
|
+
ed as DsgTooltip,
|
|
24534
|
+
hd as default
|
|
24522
24535
|
};
|