superrfjs
Version:
12 lines • 373 kB
JavaScript
/*!
*
* SpreadJS Library 17.0.7
*
* Copyright(c) MESCIUS inc. All rights reserved.
*
* Licensed under the SpreadJS Commercial License.
* us.sales@mescius.com
* https://developer.mescius.com/spreadjs
*
*/
!function (t) { "object" == typeof module && "object" == typeof module.exports ? module.exports = t(require("@mescius/spread-sheets")) : "function" == typeof define && define.amd ? define(["@mescius/spread-sheets"], t) : "object" == typeof exports ? exports.Spread = t(require("@mescius/spread-sheets")) : t(GC) }(function (e) { function n(t) { var e, e, e = i[t]; return void 0 !== e || (e = i[t] = { exports: {} }, r[t].call(e.exports, e, e.exports, n)), e.exports } var r, i, o; r = { "./dist/plugins/barcode/barcodeSparkline.js": function (F, t, e) { "use strict"; var n, r, i, o, u, y, e, a, c, s, p, r, f, l, h, e, o, r, i, v, d, w, b, g, m, R, n, C, k, q, L, Z, P, U, $, G, z, V, W, X; function H(r, t) { var e, i, o, u, e, i = {}, o = {}, u = {}; return t.forEach(function (t, e) { var n = r[e]; if (!s(n)) if (-1 !== t.indexOf("quietZone")) switch (t) { case "quietZoneLeft": o.left = n; break; case "quietZoneRight": o.right = n; break; case "quietZoneTop": o.top = n; break; case "quietZoneBottom": o.bottom = n } else if (-1 !== t.indexOf("font")) switch (t) { case "fontFontFamily": u.fontFamily = n; break; case "fontFontStyle": u.fontStyle = n; break; case "fontFontWeight": u.fontWeight = n; break; case "fontTextDecoration": u.textDecoration = n; break; case "fontTextAlign": u.textAlign = n; break; case "fontFontSize": u.fontSize = n } else i[t] = n }), a(o) || (i.quietZone = o), a(u) || (i.font = u), i } function Q(t, e, n, r, i) { return { plotX: t + i, plotY: e + i, plotWidth: n - 2 * i, plotHeight: r - 2 * i } } function K(t, e, n, r, i, o, u) { var a, c, e, s, f, l, c, h, v, d, w, b, b, w, h, l, a = 2, c = Q(n, r, i, o, 2), e = p(e), s = c.plotX, f = c.plotY, l = c.plotWidth, c = c.plotHeight; e.desiredSize = { width: l, height: c, forceRounding: !1 }; try { h = new y(null, e) } catch (t) { return } v = h.getSize(), d = parseInt(h.option.font.fontSize, 10), d = isNaN(d) ? 12 : d, b = (w = window.screen).deviceXDPI, b = window.devicePixelRatio || (b ? b / w.logicalXDPI : 1), h.destroy(), e.desiredSize.width = l * b, e.desiredSize.height = c * b, e.font = e.font || {}, e.font.fontSize = d * b * u.zoomFactor + "px", w = y.getDataUrl(e), (h = u.sheet.MC) && (h.getState(w) ? (l = h.getImage(w), t.save(), t.rect(n, r, i, o), t.clip(), t.drawImage(l, 0, 0, l.width, l.height, s, f, v.width, v.height), t.restore()) : h.addImage(w)) } function A() { return k.call(this) || this } function O() { return q.call(this) || this } function E() { return L.call(this) || this } function j() { return Z.call(this) || this } function S() { return P.call(this) || this } function T() { return U.call(this) || this } function x() { return $.call(this) || this } function M() { return G.call(this) || this } function B() { return z.call(this) || this } function _() { return V.call(this) || this } function N() { return W.call(this) || this } function D() { return X.call(this) || this } function I(t) { t && (u.jMt[t.name()] = t) } n = this && this.__extends || (C = function (t, e) { return (C = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? function (t, e) { t.__proto__ = e } : function (t, e) { for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]) }))(t, e) }, function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); function n() { this.constructor = t } C(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n) }), Object.defineProperty(t, "__esModule", { value: !0 }), t.DataMatrix = t.PDF417 = t.Code49 = t.GS1_128 = t.Code128 = t.Code93 = t.Code39 = t.Codabar = t.EAN8 = t.EAN13 = t.QRCode = t.BarcodeBase = void 0, r = e("Core"), i = e("CalcEngine"), o = e("Common"), u = e("Sparkline"), y = e("./dist/plugins/barcode/lib/barcode.all.js"), e = r.GC$, a = e.isEmptyObject, c = i.Functions.Function, s = o.Common.lt.ht, p = o.Common.lt.tv, r = i.Convert, f = r.Nh, l = i.Errors.Value, h = ["text", "color", "backgroundColor"], k = u.SparklineEx, n(A, k), A.prototype.getBarcodeInfo = function () { return null }, A.prototype.createFunction = function () { var n, r, t, i, n = this, r = this.getBarcodeInfo(); if (r) return t = new c(r.fnName, r.minimum, r.maxmum), i = r.acceptsArrayArgIndex, t.acceptsArray = function (t) { return t === i }, t.evaluate = function (t) { var t, e; t[i] = f(t[i]) ? t[i].array[0] : t[i], (t = n.t(t, r.properties)).type = r.type, t.isBarcode = !0; try { e = p(t), new y(null, e) } catch (t) { return l } return t }, t }, A.prototype.paint = function (t, e, n, r, i, o, u) { K(t, e, n, r, i, o, u) }, A.prototype.t = H, t.BarcodeBase = e = A, n(O, q = e), O.prototype.getBarcodeInfo = function () { return { fnName: "BC_QRCODE", minimum: 1, maxmum: 16, type: "QRCode", acceptsArrayArgIndex: 9, properties: h.concat(["errorCorrectionLevel", "model", "version", "mask", "connection", "connectionNo", "charCode", "charset", "quietZoneLeft", "quietZoneRight", "quietZoneTop", "quietZoneBottom", "quietZoneAddOn"]) } }, t.QRCode = o = O, n(E, L = e), E.prototype.getBarcodeInfo = function () { return { fnName: "BC_EAN13", minimum: 1, maxmum: 18, type: "EAN13", properties: h.concat(["showLabel", "labelPosition", "addOn", "addOnLabelPosition", "fontFontFamily", "fontFontStyle", "fontFontWeight", "fontTextDecoration", "fontTextAlign", "fontFontSize", "quietZoneLeft", "quietZoneRight", "quietZoneTop", "quietZoneBottom"]) } }, t.EAN13 = r = E, n(j, Z = e), j.prototype.getBarcodeInfo = function () { return { fnName: "BC_EAN8", minimum: 1, maxmum: 15, type: "EAN8", properties: h.concat(["showLabel", "labelPosition", "fontFontFamily", "fontFontStyle", "fontFontWeight", "fontTextDecoration", "fontTextAlign", "fontFontSize", "quietZoneLeft", "quietZoneRight", "quietZoneTop", "quietZoneBottom"]) } }, t.EAN8 = i = j, n(S, P = e), S.prototype.getBarcodeInfo = function () { return { fnName: "BC_CODABAR", minimum: 1, maxmum: 17, type: "Codabar", properties: h.concat(["showLabel", "labelPosition", "checkDigit", "nwRatio", "fontFontFamily", "fontFontStyle", "fontFontWeight", "fontTextDecoration", "fontTextAlign", "fontFontSize", "quietZoneLeft", "quietZoneRight", "quietZoneTop", "quietZoneBottom"]) } }, t.Codabar = v = S, n(T, U = e), T.prototype.getBarcodeInfo = function () { return { fnName: "BC_CODE39", minimum: 1, maxmum: 19, type: "Code39", properties: h.concat(["showLabel", "labelPosition", "labelWithStartAndStopCharacter", "checkDigit", "nwRatio", "fullASCII", "fontFontFamily", "fontFontStyle", "fontFontWeight", "fontTextDecoration", "fontTextAlign", "fontFontSize", "quietZoneLeft", "quietZoneRight", "quietZoneTop", "quietZoneBottom"]) } }, t.Code39 = d = T, n(x, $ = e), x.prototype.getBarcodeInfo = function () { return { fnName: "BC_CODE93", minimum: 1, maxmum: 17, type: "Code93", properties: h.concat(["showLabel", "labelPosition", "checkDigit", "fullASCII", "fontFontFamily", "fontFontStyle", "fontFontWeight", "fontTextDecoration", "fontTextAlign", "fontFontSize", "quietZoneLeft", "quietZoneRight", "quietZoneTop", "quietZoneBottom"]) } }, t.Code93 = w = x, n(M, G = e), M.prototype.getBarcodeInfo = function () { return { fnName: "BC_CODE128", minimum: 1, maxmum: 16, type: "Code128", properties: h.concat(["showLabel", "labelPosition", "codeSet", "fontFontFamily", "fontFontStyle", "fontFontWeight", "fontTextDecoration", "fontTextAlign", "fontFontSize", "quietZoneLeft", "quietZoneRight", "quietZoneTop", "quietZoneBottom"]) } }, t.Code128 = b = M, n(B, z = e), B.prototype.getBarcodeInfo = function () { return { fnName: "BC_GS1_128", minimum: 1, maxmum: 16, type: "GS1_128", properties: h.concat(["showLabel", "labelPosition", "fontFontFamily", "fontFontStyle", "fontFontWeight", "fontTextDecoration", "fontTextAlign", "fontFontSize", "quietZoneLeft", "quietZoneRight", "quietZoneTop", "quietZoneBottom"]) } }, t.GS1_128 = g = B, n(_, V = e), _.prototype.getBarcodeInfo = function () { return { fnName: "BC_CODE49", minimum: 1, maxmum: 17, type: "Code49", properties: h.concat(["showLabel", "labelPosition", "grouping", "groupNo", "fontFontFamily", "fontFontStyle", "fontFontWeight", "fontTextDecoration", "fontTextAlign", "fontFontSize", "quietZoneLeft", "quietZoneRight", "quietZoneTop", "quietZoneBottom"]) } }, t.Code49 = m = _, n(N, W = e), N.prototype.getBarcodeInfo = function () { return { fnName: "BC_PDF417", minimum: 1, maxmum: 11, type: "PDF417", properties: h.concat(["errorCorrectionLevel", "rows", "columns", "compact", "quietZoneLeft", "quietZoneRight", "quietZoneTop", "quietZoneBottom"]) } }, t.PDF417 = R = N, n(D, X = e), D.prototype.getBarcodeInfo = function () { return { fnName: "BC_DATAMATRIX", minimum: 1, maxmum: 14, type: "DataMatrix", properties: h.concat(["eccMode", "ecc200SymbolSize", "ecc200EncodingMode", "ecc00_140SymbolSize", "structuredAppend", "structureNumber", "fileIdentifier", "quietZoneLeft", "quietZoneRight", "quietZoneTop", "quietZoneBottom"]) } }, t.DataMatrix = n = D, c && (I(new o), I(new r), I(new i), I(new v), I(new d), I(new w), I(new b), I(new g), I(new m), I(new R), I(new n)) }, "./dist/plugins/barcode/lib/barcode.all.js": function (r) { !function t(e, n) { r.exports = n() }("undefined" != typeof self ? self : this, function () { return n = [function (t, n, I) { "use strict"; var i, r; function c(t) { return "function" == typeof t } function e(t) { return !!t && t === t.window } function o(t) { return void 0 !== t } function u(t) { return c(Number.isNaN) ? Number.isNaN(t) : t != t } function a(t) { return !u(+t) } function s() { for (var t, e, n, r, i, t = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : "", e = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : 1, n = arguments[2], r = 0, i = t.length; r < i;)n(t.substring(r, r + e)), r += e } function f() { for (var t, e, n, r, i, t = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : [], e = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : 1, n = arguments[2], r = 0, i = t.length; r < i;)n(t.slice(r, r + e)), r += e } function l() { var t = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : ""; return c(Array.from) ? Array.from(t) : Array.prototype.slice.call(t) } function h() { var t, e, n, t, e = l(0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : ""), n = []; return e.forEach(function (t) { var t; "0" === t ? n.push(0) : n[n.length - 1] && 0 !== n[n.length] ? (t = n.pop(), n.push(++t)) : n.push(1) }), n } function v(t) { var e; return (t = +t).toString(1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : 2) } function d(t) { return t % 2 == 0 } function w(t) { return t % 2 == 1 } function b() { var t, e, t, t = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : "", e = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : 0; return "number" != typeof t && u(t = parseFloat(t)) ? e : t } function y() { var t, e, t, e = /[a-zA-Z]+/.exec(0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : ""); return e ? e[0] : "px" } function p(t) { var e, n, e = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : "length", n = 0; return t.forEach(function (t) { t[e] > n && (n = t[e]) }), n } function g(t) { for (var e, n, r, i, o, u, a, e = arguments.length, n = Array(1 < e ? e - 1 : 0), r = 1; r < e; r++)n[r - 1] = arguments[r]; if (c(Object.assign)) return Object.assign.apply(Object, [t].concat(n)); if (null == t) throw new TypeError("Cannot convert undefined or null to object"); for (i = Object(t), o = 0; o < n.length; o++)if (null != (u = n[o])) for (a in u) Object.prototype.hasOwnProperty.call(u, a) && (i[a] = u[a]); return i } function m(n) { if (null == n) throw new TypeError("Cannot convert undefined or null to object"); for (var t = arguments.length, e = Array(1 < t ? t - 1 : 0), r = 1; r < t; r++)e[r - 1] = arguments[r]; return e.forEach(function (t) { if (t) for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && ("object" === i(t[e]) && "object" === i(n[e]) ? n[e] = m({}, n[e] || {}, t[e]) : n[e] = t[e]) }), n } function C(t, e) { var n, r, i; if (c(t.repeat)) return t.repeat(e); if (n = "" + t, (e = (e = +e) != e ? 0 : e) < 0) throw new RangeError("repeat count must be non-negative"); if (e == 1 / 0) throw new RangeError("repeat count must be less than infinity"); if (e = Math.floor(e), 0 == n.length || 0 == e) return ""; if (1 << 28 <= n.length * e) throw new RangeError("repeat count must not overflow maximum string size"); for (r = "", i = 0; i < e; i++)r += n; return r } function k(t) { return c(Number.isInteger) ? Number.isInteger(t) : "number" == typeof t && isFinite(t) && Math.floor(t) === t } function A(t, e) { if (c(t.fill)) return t.fill(e); for (var n = 0; n < t.length; n++)t[n] = e; return t } function O(t, e, n) { return c(t.padStart) ? t.padStart(e, n) : (e >>= 0, n = String(void 0 !== n ? n : " "), t.length > e ? t : ((e -= t.length) > n.length && (n += C(n, e / n.length)), n.slice(0, e) + String(t))) } function E(t, e) { r[t] = e } function j(t, e) { var n; return 1.4 * b(e.fontSize, 12) } function S(t, e) { return r.measureText(t, e) } function T(t, e) { return (c(r.measureText) ? (n.measureText = T = S, T) : j)(t, e) } function x(t) { var e; return b(t, 12) } function M(t) { return a(t) ? b(t, 12) : r.convertUnit(t) } function B(t) { return (c(r.convertUnit) ? (n.convertUnit = B = M, B) : x)(t) } function _(t) { return a(t) ? t + "px" : t } function N(t) { return t.originIsAbsoluteValue ? 0 : t.relativeValue } function D(t) { return t.originIsAbsoluteValue ? t.pixelValue : 0 } Object.defineProperty(n, "__esModule", { value: !0 }), i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) { return typeof t } : function (t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t }, n.isFunction = c, n.isWindow = e, n.isDefined = o, n.isNaN = u, n.isNumberLike = a, n.sliceString = s, n.sliceArray = f, n.str2Array = l, n.combineTruthy = h, n.convertRadix = v, n.isEven = d, n.isOdd = w, n.toNumber = b, n.getUnit = y, n.getMaxValue = p, n.assign = g, n.deepMerge = m, n.strRepeat = C, n.isInteger = k, n.fillArray = A, n.strPadStart = O, n.registerPlugin = E, n.measureText = T, n.convertUnit = B, n.fixSize2PixelDefault = _, n.getQuietZoneRelativeValue = N, n.getQuietZonePixelValue = D, r = {} }, function (F, t, R) { "use strict"; var e, n, r, i, o, u, a, c, s, f, l, h, q, v, d, w, b, y, p, g, L, Z, P, U, $, G; function m(t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") } function C(t, e) { if (t) return !e || "object" != typeof e && "function" != typeof e ? t : e; throw new ReferenceError("this hasn't been initialised - super() hasn't been called") } function k(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) } function A(t) { var e, n, t, e = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : ""; return m(this, A), (n = C(this, (A.__proto__ || Object.getPrototypeOf(A)).call(this))).name = "BadArgumentsException", t = JSON.stringify(t), n.message = t + " is not a valid argument. " + e, n } function O(t) { m(this, O); var e = C(this, (O.__proto__ || Object.getPrototypeOf(O)).call(this)); return e.name = "TypeNotSupportException", e.message = t + " is not support!", e } function E(t) { m(this, E); var e = C(this, (E.__proto__ || Object.getPrototypeOf(E)).call(this)); return e.name = "NotAValidBarcodeEncoderException", e.message = t + " is not support!", e } function j() { m(this, j); var t = C(this, (j.__proto__ || Object.getPrototypeOf(j)).call(this)); return t.name = "SubclassNotImplementException", t.message = "must implement by subclass!", t } function S(t) { m(this, S); var e = C(this, (S.__proto__ || Object.getPrototypeOf(S)).call(this)); return e.name = "UnrecognizedRenderException", e.message = t + " is not support!", e } function T(t) { m(this, T); var e = C(this, (T.__proto__ || Object.getPrototypeOf(T)).call(this)); return e.name = "MethodNotImplementException", e.message = t + " doesn't have this method!", e } function x() { var t, e, n, t = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : "Empty text", e = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : ""; return m(this, x), (n = C(this, (x.__proto__ || Object.getPrototypeOf(x)).call(this))).name = "InvalidTextException", n.message = t + " is invalid. " + e, n } function M(t) { m(this, M); var e = C(this, (M.__proto__ || Object.getPrototypeOf(M)).call(this)); return e.name = "InvalidCharException", e.message = t + " is invalid.", e } function B() { m(this, B); var t = C(this, (B.__proto__ || Object.getPrototypeOf(B)).call(this)); return t.name = "TextTooLargeException", t.message = "Text is too larget to encode", t } function _(t) { m(this, _); var e = C(this, (_.__proto__ || Object.getPrototypeOf(_)).call(this)); return e.name = "ConnectionOverflowException", e.message = "Max Connection Number is " + (t - 1), e } function N(t) { m(this, N); var e = C(this, (N.__proto__ || Object.getPrototypeOf(N)).call(this)); return e.name = "GroupOverflowException", e.message = "Max Group Number is " + (t - 1), e } function D(t) { m(this, D); var e = C(this, (D.__proto__ || Object.getPrototypeOf(D)).call(this)); return e.name = "GroupSizeException", e.message = "Group size is " + t + ". The max group size is 9.", e } function I() { m(this, I); var t = C(this, (I.__proto__ || Object.getPrototypeOf(I)).call(this)); return t.name = "InvalidStructureNumberException", t.message = "InvalidStructureNumberException.", t } Object.defineProperty(t, "__esModule", { value: !0 }), e = t.BadArgumentsException = (k(A, v = Error), A), n = t.TypeNotSupportException = (k(O, d = Error), O), r = t.NotAValidBarcodeEncoderException = (k(E, w = Error), E), i = t.SubclassNotImplementException = (k(j, b = Error), j), o = t.UnrecognizedRenderException = (k(S, y = Error), S), u = t.MethodNotImplementException = (k(T, p = Error), T), a = t.InvalidTextException = (k(x, g = Error), x), c = t.InvalidCharException = (k(M, L = Error), M), s = t.TextTooLargeException = (k(B, Z = Error), B), f = t.ConnectionOverflowException = (k(_, P = Error), _), l = t.GroupOverflowException = (k(N, U = Error), N), h = t.GroupSizeException = (k(D, $ = Error), D), t.InvalidStructureNumberException = (k(I, G = Error), I) }, function (t, d, w) { "use strict"; !function (t) { var e, u, a, n, r, i, n, o, c, s, e; function f(t, e) { for (var n, r, n = 0; n < e.length; n++)(r = e[n]).enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r) } function l(t) { return t && t.__esModule ? t : { default: t } } function h(t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") } function v() { var t, e, n, r, i, o; for (h(this, v), n = e = t = void 0, r = arguments.length, i = Array(r), o = 0; o < r; o++)i[o] = arguments[o]; if (3 <= i.length) t = i[0], e = i[1], n = i[2]; else if (2 === i.length) (0, u.isFunction)(i[1]) ? (e = i[0], n = i[1]) : (t = i[0], e = i[1]); else { if (1 !== i.length) throw new a.BadArgumentsException(i); e = i[0] } this.dom = "string" == typeof t ? document.querySelector(t) : t, this.callback = n && n.bind(this), this.setOption(e) } Object.defineProperty(d, "__esModule", { value: !0 }), e = function (t, e, n) { return e && f(t.prototype, e), n && f(t, n), t }, u = w(0), a = w(1), n = w(23), r = l(n), n = l(i = w(6)), o = { renderType: "canvas", unitSize: "1px", color: "rgb(0,0,0)", backgroundColor: "rgb(255,255,255)", font: { fontFamily: "sans-serif", fontStyle: "normal", fontWeight: "normal", textDecoration: "none", textAlign: "center", fontSize: "12px" } }, c = {}, s = {}, e(v, null, [{ key: "getImageData", value: function t() { var e, n, e, n; return new v(0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {}).getImageData() } }, { key: "getDataUrl", value: function t() { var e, n, e, n; return new v(0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {}).getDataUrl() } }, { key: "setDefaultOptions", value: function t() { var e; c = (0, u.deepMerge)({}, 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {}) } }, { key: "registerEncoder", value: function t(e, n) { s[e] = n, v.supportType.push(e) } }, { key: "registerPlugin", value: function t(e, n) { (0, u.registerPlugin)(e, n) } }]), e(v, [{ key: "mergeOption", value: function t(e) { return this.option = (0, u.deepMerge)({}, this.option, e), this.update(), this } }, { key: "setOption", value: function t(e) { return this.option = (0, u.deepMerge)({}, o, c, e), this.update(), this } }, { key: "update", value: function t() { var e, n, e = this.option, n = s[e.type]; if (!n) throw new a.TypeNotSupportException(e.type); this.encoder = new n(e), this.render && (this.render.destroy(), this.render = null), this.render = new r.default(this.dom, this.encoder), this.render.render(), (0, u.isFunction)(this.callback) && this.callback() } }, { key: "getImageData", value: function t() { return this.render.getImageData() } }, { key: "getDataUrl", value: function t() { return this.render.getDataUrl() } }, { key: "getSize", value: function t() { return this.render.size } }, { key: "destroy", value: function t() { this.render && this.render.destroy() } }]), (d.default = e = v).supportType = [], e.constants = n.default, (0, u.isWindow)(t) && (t.Barcode = e) }.call(d, w(22)) }, function (F, t, e) { "use strict"; var l, h, e, v, n, r, i, o, u, a, c, s, f, d, w, b, y; function p(t) { return t && t.__esModule ? t : { default: t } } function g(t) { return 48 <= t && t <= 57 } function m(t) { var e; return -1 < " $%*+-./:".indexOf(String.fromCharCode(t)) || 48 <= t && t <= 57 || 65 <= t && t <= 90 } function C(t) { return 0 <= t && t <= 255 } function k(t) { return 33087 <= t && t <= 64587 } function A(t, e) { var n = o[t]; return 1 === e.length ? n(e) : e.every(function (t) { return n(t) }) } function O(t) { var e = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : "UTF-8"; return g(t) ? "Numeric" : m(t) ? "Alphanumeric" : "Shift_JIS" === e && k(t) ? "Kanji" : "8BitByte" } function E(t) { return 1 <= t && t <= 9 ? { Numeric: 10, Alphanumeric: 9, "8BitByte": 8, Kanji: 8 } : 10 <= t && t <= 26 ? { Numeric: 12, Alphanumeric: 11, "8BitByte": 16, Kanji: 10 } : { Numeric: 14, Alphanumeric: 13, "8BitByte": 16, Kanji: 12 } } function j(t) { if (48 <= t && t <= 57) return +String.fromCharCode(t); if (65 <= t && t <= 90) return t - 65 + 10; var e = a[String.fromCharCode(t)]; if (e) return e; throw new l.InvalidTextException(String.fromCharCode(t)) } function S(t) { for (var e, n, e = [], n = 0; n < t; n++)e.push((0, h.fillArray)(new Array(t), null)); return e } function T(t) { return c[t - 1] } function x(t, e) { var n, r, i, o, u, a, c, s, f, n = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : 2, r = void 0; switch (e) { case 1: r = 0; break; case 0: r = 1; break; case 3: r = 2; break; case 2: r = 3 }for (u = [], a = (o = (i = 2 === n ? w : b)[4 * (t - 1) + r]).length / 3, c = 0; c < a; c++)for (s = o[3 * c], f = 0; f < s; f++)u.push({ total: o[3 * c + 1], data: o[3 * c + 2], ec: o[3 * c + 1] - o[3 * c + 2] }); return u } function M(t) { return d[t] } function B(t) { return t.reduce(function (t, e) { return t.push(e.slice(0)), t }, []) } function _(t) { for (var e, n, r, i, o, u, a, c, s, f, l, h, v, d, w, b, y, p, g, e = t.length, n = 0, r = 0; r < e; r++)for (i = 0; i < e; i++) { for (o = 0, u = t[r][i], a = -1; a <= 1; a++)if (!(r + a < 0 || e <= r + a)) for (c = -1; c <= 1; c++)i + c < 0 || e <= i + c || 0 == a && 0 == c || u == t[r + a][i + c] && (o += 1); 5 < o && (n += 3 + o - 5) } for (s = 0; s < e - 1; s++)for (f = 0; f < e - 1; f++)l = 0, t[s][f] && (l += 1), t[s + 1][f] && (l += 1), t[s][f + 1] && (l += 1), t[s + 1][f + 1] && (l += 1), 0 != l && 4 != l || (n += 3); for (h = 0; h < e; h++)for (v = 0; v < e - 6; v++)t[h][v] && !t[h][v + 1] && t[h][v + 2] && t[h][v + 3] && t[h][v + 4] && !t[h][v + 5] && t[h][v + 6] && (n += 40); for (d = 0; d < e; d++)for (w = 0; w < e - 6; w++)t[w][d] && !t[w + 1][d] && t[w + 2][d] && t[w + 3][d] && t[w + 4][d] && !t[w + 5][d] && t[w + 6][d] && (n += 40); for (y = b = 0; y < e; y++)for (p = 0; p < e; p++)t[p][y] && (b += 1); return n += 10 * (g = Math.abs(100 * b / e / e - 50) / 5) } function N(t, e, n, r) { var i, o, u, t, n, a, c, s, f, i = 4 < arguments.length && void 0 !== arguments[4] && arguments[4], o = t.length, u = B(t), t = (0, h.strPadStart)((0, h.convertRadix)(n, 2), 2, 0), n = (0, h.strPadStart)((0, h.convertRadix)(e, 2), 3, 0), a, c = v.default.getBCH15(parseInt(t + n, 2), r); for (u[o - 8][8] = i ? 0 : 1, s = 15; 0 < s; s--)f = i ? 0 : c >> s - 1 & 1, 9 < s ? (u[8][15 - s] = f, u[o - 1 - 15 + s][8] = f) : 8 < s ? (u[8][15 - s + 1] = f, u[o - 1 - 15 + s][8] = f) : (6 < s ? u[s][8] = f : u[s - 1][8] = f, u[8][o - s] = f); return u } function R(t, e, n) { var r, i, o, u, a, c, s, f, r = 0, i = 0, o = 0, u = 0; for (e.forEach(function (t) { g(t) ? r++ : m(t) ? i++ : k(t) ? u++ : C(t) && o++ }), a = Math.ceil((5 * i + 3 * r + 13 * u + 8 * o) / 8), c = 1; c <= 40; c++)if (a <= (f = (s = x(c, t, n)).reduce(function (t, e) { return t + e.data }, 0))) return c; throw new l.TextTooLargeException } function q(t, e) { var t = y[t]; return e <= 9 ? t[0] : e <= 26 ? t[1] : t[2] } function D(t) { for (var e, n, r, e = [], n = 0; n < t.length; n += 1)(r = t[n]) < 128 || (255 & r) == r ? e.push(r) : (e.push(r >>> 8), e.push(255 & r)); return e } function I(t) { for (var e, n, r, i, e = [], n = 0, r = t.length; n < r; n++)(i = t[n]) < 128 ? e.push(i) : i < 2048 ? e.push(192 | i >> 6, 128 | 63 & i) : i < 55296 || 57344 <= i ? e.push(224 | i >> 12, 128 | i >> 6 & 63, 128 | 63 & i) : (i = 65536 + ((1023 & i) << 10 | 1023 & t[++n]), e.push(240 | i >> 18, 128 | i >> 12 & 63, 128 | i >> 6 & 63, 128 | 63 & i)); return e } function L(t, e) { for (var n, r, i, o, n = void 0, r = (n = ("Shift_JIS" === e ? D : I)(t))[0], i = 1, o = n.length; i < o; i++)r ^= n[i]; return r } function Z(t) { var e = []; return (0, h.sliceString)(t, 1, function (t) { e.push(t.charCodeAt(0)) }), e } Object.defineProperty(t, "__esModule", { value: !0 }), l = e(1), h = e(0), e = e(13), v = p(e), o = { Numeric: g, Alphanumeric: m, "8BitByte": C, Kanji: k }, a = { " ": 36, $: 37, "%": 38, "*": 39, "+": 40, "-": 41, ".": 42, "/": 43, ":": 44 }, c = [[], [6, 18], [6, 22], [6, 26], [6, 30], [6, 34], [6, 22, 38], [6, 24, 42], [6, 26, 46], [6, 28, 50], [6, 30, 54], [6, 32, 58], [6, 34, 62], [6, 26, 46, 66], [6, 26, 48, 70], [6, 26, 50, 74], [6, 30, 54, 78], [6, 30, 56, 82], [6, 30, 58, 86], [6, 34, 62, 90], [6, 28, 50, 72, 94], [6, 26, 50, 74, 98], [6, 30, 54, 78, 102], [6, 28, 54, 80, 106], [6, 32, 58, 84, 110], [6, 30, 58, 86, 114], [6, 34, 62, 90, 118], [6, 26, 50, 74, 98, 122], [6, 30, 54, 78, 102, 126], [6, 26, 52, 78, 104, 130], [6, 30, 56, 82, 108, 134], [6, 34, 60, 86, 112, 138], [6, 30, 58, 86, 114, 142], [6, 34, 62, 90, 118, 146], [6, 30, 54, 78, 102, 126, 150], [6, 24, 50, 76, 102, 128, 154], [6, 28, 54, 80, 106, 132, 158], [6, 32, 58, 84, 110, 136, 162], [6, 26, 54, 82, 110, 138, 166], [6, 30, 58, 86, 114, 142, 170]], w = [[1, 26, 19], [1, 26, 16], [1, 26, 13], [1, 26, 9], [1, 44, 34], [1, 44, 28], [1, 44, 22], [1, 44, 16], [1, 70, 55], [1, 70, 44], [2, 35, f = 17], [2, 35, 13], [1, 100, 80], [2, 50, 32], [2, 50, 24], [4, 25, 9], [1, 134, 108], [2, 67, 43], [2, 33, 15, 2, 34, 16], [2, 33, 11, 2, 34, 12], [2, 86, 68], [4, 43, 27], [4, 43, 19], [4, 43, 15], [2, 98, 78], [4, 49, 31], [2, 32, 14, 4, 33, 15], [4, 39, 13, 1, 40, 14], [2, 121, 97], [2, 60, 38, 2, 61, 39], [4, 40, 18, 2, 41, 19], [4, 40, 14, 2, 41, 15], [2, 146, 116], [3, 58, 36, 2, 59, 37], [4, 36, 16, 4, 37, 17], [4, 36, 12, 4, 37, 13], [2, 86, 68, 2, 87, 69], [4, 69, 43, 1, 70, 44], [6, 43, 19, 2, 44, 20], [6, 43, 15, 2, 44, 16], [4, 101, 81], [1, 80, 50, 4, 81, 51], [4, 50, 22, 4, 51, 23], [3, 36, 12, 8, 37, 13], [2, 116, 92, 2, 117, 93], [6, 58, 36, 2, 59, 37], [4, 46, 20, 6, 47, 21], [7, 42, 14, 4, 43, 15], [4, 133, 107], [8, 59, 37, 1, 60, 38], [8, 44, 20, 4, 45, 21], [12, 33, 11, 4, 34, 12], [3, 145, 115, 1, 146, 116], [4, 64, 40, 5, 65, 41], [11, 36, 16, 5, 37, 17], [11, 36, 12, 5, 37, 13], [5, 109, 87, 1, 110, 88], [5, 65, 41, 5, 66, 42], [5, 54, 24, 7, 55, 25], [11, 36, 12, 7, 37, 13], [5, 122, 98, 1, 123, 99], [7, 73, 45, 3, 74, 46], [15, 43, 19, 2, 44, 20], [3, 45, 15, 13, 46, 16], [1, 135, 107, 5, 136, 108], [10, 74, 46, 1, 75, 47], [1, 50, 22, 15, 51, 23], [2, 42, 14, 17, 43, 15], [5, 150, 120, 1, 151, 121], [9, 69, 43, 4, 70, 44], [17, 50, 22, 1, 51, 23], [2, 42, 14, 19, 43, 15], [3, 141, 113, 4, 142, 114], [3, 70, 44, 11, 71, 45], [17, 47, 21, 4, 48, 22], [9, 39, 13, 16, 40, 14], [3, 135, 107, 5, 136, 108], [3, 67, 41, 13, 68, 42], [15, 54, 24, 5, 55, 25], [15, 43, 15, 10, 44, 16], [4, 144, 116, 4, 145, 117], [17, 68, 42], [17, 50, 22, 6, 51, 23], [19, 46, 16, 6, 47, 17], [2, 139, 111, 7, 140, 112], [17, 74, 46], [7, 54, 24, 16, 55, 25], [34, 37, 13], [4, 151, 121, 5, 152, 122], [4, 75, 47, 14, 76, 48], [11, 54, 24, 14, 55, 25], [16, 45, 15, 14, 46, 16], [6, 147, 117, 4, 148, 118], [6, 73, 45, 14, 74, 46], [11, 54, 24, 16, 55, 25], [30, 46, 16, 2, 47, 17], [8, 132, 106, 4, 133, 107], [8, 75, 47, 13, 76, 48], [7, 54, 24, 22, 55, 25], [22, 45, 15, 13, 46, 16], [10, 142, 114, 2, 143, 115], [19, 74, 46, 4, 75, 47], [28, 50, 22, 6, 51, 23], [33, 46, 16, 4, 47, 17], [8, 152, 122, 4, 153, 123], [22, 73, 45, 3, 74, 46], [8, 53, 23, 26, 54, 24], [12, 45, 15, 28, 46, 16], [3, 147, 117, 10, 148, 118], [3, 73, 45, 23, 74, 46], [4, 54, 24, 31, 55, 25], [11, 45, 15, 31, 46, 16], [7, 146, 116, 7, 147, 117], [21, 73, 45, 7, 74, 46], [1, 53, 23, 37, 54, 24], [19, 45, 15, 26, 46, 16], [5, 145, 115, 10, 146, 116], [19, 75, 47, 10, 76, 48], [15, 54, 24, 25, 55, 25], [23, 45, 15, 25, 46, 16], [13, 145, 115, 3, 146, 116], [2, 74, 46, 29, 75, 47], [42, 54, 24, 1, 55, 25], [23, 45, 15, 28, 46, 16], [17, 145, 115], [10, 74, 46, 23, 75, 47], [10, 54, 24, 35, 55, 25], [19, 45, 15, 35, 46, 16], [17, 145, 115, 1, 146, 116], [14, 74, 46, 21, 75, 47], [29, 54, 24, 19, 55, 25], [11, 45, 15, 46, 46, 16], [13, 145, 115, 6, 146, 116], [14, 74, 46, 23, 75, 47], [44, 54, 24, 7, 55, 25], [59, 46, 16, 1, 47, 17], [12, 151, 121, 7, 152, 122], [12, 75, 47, 26, 76, 48], [39, 54, 24, 14, 55, 25], [22, 45, 15, 41, 46, 16], [6, 151, 121, 14, 152, 122], [6, 75, 47, 34, 76, 48], [46, 54, 24, 10, 55, 25], [2, 45, 15, 64, 46, 16], [17, 152, 122, 4, 153, 123], [29, 74, 46, 14, 75, 47], [49, 54, 24, 10, 55, 25], [24, 45, 15, 46, 46, 16], [4, 152, 122, 18, 153, 123], [13, 74, 46, 32, 75, 47], [48, 54, 24, 14, 55, 25], [42, 45, 15, 32, 46, 16], [20, 147, 117, 4, 148, 118], [40, 75, 47, 7, 76, 48], [43, 54, 24, 22, 55, 25], [10, 45, 15, 67, 46, 16], [19, 148, 118, 6, 149, 119], [18, 75, 47, 31, 76, 48], [34, 54, 24, 34, 55, 25], [20, 45, 15, 61, 46, 16]], b = [[1, 26, 19], [1, 26, 16], [1, 26, 13], [1, 26, 9], [1, 46, 36], [1, 46, 30], [1, 46, 24], [1, 46, 16], [1, 72, 57], [1, 72, 44], [1, 72, 36], [1, 72, 24], [1, 100, 80], [1, 100, 60], [1, 100, 50], [1, 100, 34], [1, 134, 108], [1, 134, 82], [1, 134, 68], [2, 67, 23], [1, 170, 136], [2, 85, 53], [2, 85, 43], [2, 85, 29], [1, 212, 170], [2, 106, 66], [2, 106, 54], [3, 70, 24], [2, 128, 104], [2, 128, 80], [2, 128, 64], [3, 85, 29], [2, 153, 123], [2, 153, 93], [3, 102, 52], [3, 102, 34], [2, 179, 145], [2, 179, 111], [3, 119, 61], [4, 89, 31], [2, 208, 168], [4, 104, 64], [4, 104, 52], [5, 83, 29], [2, 238, 192], [4, 119, 73], [4, 119, 61], [5, 95, 33], [3, 180, 144], [4, 135, 83], [4, 135, 69], [6, 90, 32], [3, 203, 163], [4, 152, 92], [5, 122, 62], [6, 101, 35]], t.default = { defaultConfig: n = { version: "auto", errorCorrectionLevel: "L", model: 2, mask: "auto", connection: !(y = { Alphanumeric: [[6, 11], [7, 15], [8, 16]], Numeric: [[4, 6, 6, 13], [4, 7, 8, 15], [5, 8, 9, 17]] }), connectionNo: 0, charCode: void 0, charset: "UTF-8", quietZone: { top: 4, left: 4, right: 4, bottom: 4 } }, MODE_INDICATOR: r = { ECI: 7, Numeric: 1, Alphanumeric: 2, "8BitByte": 4, Kanji: 8, StructuredAppend: 3, FNC1First: 5, FNC2Second: 9, Terminator: 0 }, isMode: A, getSizeByVersion: u = function t(e) { return 4 * e + 17 }, getCharacterCountIndicatorbitsNumber: E, getAlphanumericCharValue: j, createModules: S, getMaskFunc: M, getAlignmentPattersPos: T, getErrorCorrectionCharacteristics: x, padCodewords0: s = 236, padCodewords1: 17, getMaskScore: _, maskFuncs: d = [function (t, e) { return (t + e) % 2 == 0 }, function (t) { return t % 2 == 0 }, function (t, e) { return e % 3 == 0 }, function (t, e) { return (t + e) % 3 == 0 }, function (t, e) { return (Math.floor(t / 2) + Math.floor(e / 3)) % 2 == 0 }, function (t, e) { return t * e % 2 + t * e % 3 == 0 }, function (t, e) { return (t * e % 2 + t * e % 3) % 2 == 0 }, function (t, e) { return (t * e % 3 + (t + e) % 2) % 2 == 0 }], addFormatInformation: N, getEstimatedVersion: R, getCharMode: O, EC_INDICATOR: i = { L: 1, M: 0, Q: 3, H: 2 }, getModeCheckInfo: q, getParityData: L, utf8Encode: I, getCharCode: Z, sjisEncode: D, cloneModules: B } }, function (t, e, n) { "use strict"; var r, i, i, w, n, o; function u(t, e) { for (var n, r, n = 0; n < e.length; n++)(r = e[n]).enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r) } function a(t) { return t && t.__esModule ? t : { default: t } } function c(t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") } function s(t, e) { if (t) return !e || "object" != typeof e && "function" != typeof e ? t : e; throw new ReferenceError("this hasn't been initialised - super() hasn't been called") } function f(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) } function l() { return c(this, l), s(this, (l.__proto__ || Object.getPrototypeOf(l)).apply(this, arguments)) } Object.defineProperty(e, "__esModule", { value: !0 }), r = function (t, e, n) { return e && u(t.prototype, e), n && u(t, n), t }, i = n(10), i = a(i), w = n(0), f(l, o = i.default), r(l, [{ key: "adjustDesiredSize", value: function t(e) { var n, r, n, i, o, u, a, e, c, s, n = this.config, r = n.desiredSize, n = n.showLabel, i = this.quietZone, o = this.fontHeight, u = this.containerWidth, a = this.containerHeight; r && (e = e.length + (0, w.getQuietZoneRelativeValue)(i.left) + (0, w.getQuietZoneRelativeValue)(i.right), u = u - (0, w.getQuietZonePixelValue)(i.left) - (0, w.getQuietZonePixelValue)(i.right), s = c = void 0, r.forceRounding ? s = (c = ~~(u / e)) < 1 ? 1 : c : c = s = u / e, this.style.unitValue = s, this.style.fontSizeInUnit = o / s, a = (a = n ? a - o : a) - (0, w.getQuietZonePixelValue)(i.top) - (0, w.getQuietZonePixelValue)(i.bottom), this.height = a / s - (0, w.getQuietZoneRelativeValue)(i.top) - (0, w.getQuietZoneRelativeValue)(i.bottom), Object.keys(i).forEach(function (t) { i[t].originIsAbsoluteValue && (i[t].relativeValue = i[t].pixelValue / s) })) } }, { key: "convertToShape", value: function t(e) { var n, r, i, o, u, a, c, a, s, f, l, h, v, d, n = this.label, r = this.quietZone, i = this.isLabelBottom, o = this.height, u = this.config.showLabel, a = this.style, c = a.fontSizeInUnit, a = a.textAlign; if (u || (c = 0), s = [], f = r.left.relativeValue, l = r.top.relativeValue, h = void 0, i ? h = l + o : (h = l, l += c), (0, w.combineTruthy)(e).forEach(function (t) { 0 !== t ? (s.push({ type: "rect", x: f, y: l, width: t, height: o }), f += t) : f++ }), u) { switch (v = r.left.relativeValue, d = e.length, a) { case "center": v += d / 2; break; case "right": v += d }s.push({ type: "text", x: v, y: h, text: n, textAlign: a, maxWidth: d }) } this.size = i ? { width: f + r.right.relativeValue, height: h + c + r.bottom.relativeValue } : { width: f + r.right.relativeValue, height: l + o + r.bottom.relativeValue }, this.shapes = s } }]), n = l, e.default = n }, function (t, e, n) { "use strict"; var r, i, o, n, u, a, c, s, f, l, h; function v(t) { return t && t.__esModule ? t : { default: t } } function d(t, e) { if (t === l.FNC1) return f.FNC1; if (t === l.FNC2) return f.FNC2; if (t === l.FNC3) return f.FNC3; var n = void 0; switch (e) { case "A": return n = u.indexOf(t); case "B": return n = a.indexOf(t); case "C": return +t } } function w(t, e) { var e = c[d(t, e)]; if (e) return e; throw new r.InvalidCharException(t) } function b(t) { return c[t] } function y(t) { var n = ""; return (0, i.str2Array)(t).forEach(function (t, e) { (0, i.isEven)(e) ? n += (0, i.strRepeat)("1", +t) : n += (0, i.strRepeat)("0", +t) }), n } function p(t) { return !/\D/.test(t) } Object.defineProperty(e, "__esModule", { value: !0 }), r = n(1), i = n(0), n = v(o = n(6)), u = [" ", "!", '"', "#", "$", "%", "&", "'", "(", ")", "*", "+", ",", "-", ".", "/", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ":", ";", "<", "=", ">", "?", "@", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "[", "\\", "]", "^", "_", "\0", "\x01", "\x02", "\x03", "\x04", "\x05", "\x06", "\x07", "\b", "\t", "\n", "\v", "\f", "\r", "\x0e", "\x0f", "\x10", "\x11", "\x12", "\x13", "\x14", "\x15", "\x16", "\x17", "\x18", "\x19", "\x1a", "\x1b", "\x1c", "\x1d", "\x1e", "\x1f", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "], a = [" ", "!", '"', "#", "$", "%", "&", "'", "(", ")", "*", "+", ",", "-", ".", "/", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ":", ";", "<", "=", ">", "?", "@", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "[", "\\", "]", "^", "_", "`", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "{", "|", "}", "~", "\x7f", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "], c = ["212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "211214", "211232"], s = "2331112", f = { CodeC: 99, CodeB: 100, CodeA: 101, FNC1: 102, FNC2: 97, FNC3: 96, StartA: 103, StartB: 104, StartC: 105 }, l = { CodeC: String.fromCharCode(204), CodeB: String.fromCharCode(205), CodeA: String.fromCharCode(206), FNC1: n.default.FNC1, FNC2: n.default.FNC2, FNC3: n.default.FNC3, StartA: String.fromCharCode(208), StartB: String.fromCharCode(209), StartC: String.fromCharCode(210) }, e.default = { getCharValue: d, getCharPattern: w, getPatternByIndex: b, Code128Sym: f, stopPattern: s, defaultConfig: h = { height: 60, showLabel: !0, codeSet: "auto", quietZone: { top: 0, right: 10, bottom: 0, left: 10 }, labelPosition: "bottom" }, Code128Char: l, encode: y, isValideNumber: p } }, function (t, e, n) { "use strict"; var r, i, o, u, a, c; Object.defineProperty(e, "__esModule", { value: !0 }), e.default = { FNC1: r = "\xcf", FNC2: i = "\xca", FNC3: o = "\xc9", DataMatrixFNC1: u = "\u2000", DataMatrixMacro05: a = "\u2004", DataMatrixMacro06: c = "\u2005" } }, function (t, e, n) { "use strict"; var r, i, i, h, n, o; function u(t, e) { for (var n, r, n = 0; n < e.length; n++)(r = e[n]).enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r) } function a(t) { return t && t.__esModule ? t : { default: t } } function c(t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") } function s(t, e) { if (t) return !e || "object" != typeof e && "function" != typeof e ? t : e; throw new ReferenceError("this hasn't been initialised - super() hasn't been called") } function f(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) } function l() { return c(this, l), s(this, (l.__proto__ || Object.getPrototypeOf(l)).apply(this, arguments)) } Object.defineProperty(e, "__esModule", { value: !0 }), r = function (t, e, n) { return e && u(t.prototype, e), n && u(t, n), t }, i = n(10), i = a(i), h = n(0), f(l, o = i.default), r(l, [{ key: "adjustDesiredSize", value: function t(e) { var n, r, n, i, o, u, a, c, e, s, f, l, n = this.config, r = n.desiredSize, n = n.showLabel, i = this.quietZone, o = this.fontHeight, u = this.containerWidth, a = this.containerHeight; r && (c = e[0].length + (0, h.getQuietZoneRelativeValue)(i.left) + (0, h.getQuietZoneRelativeValue)(i.right), e = e.length + (0, h.getQuietZoneRelativeValue)(i.top) + (0, h.getQuietZoneRelativeValue)(i.bottom), u = u - (0, h.getQuietZonePixelValue)(i.left) - (0, h.getQuietZonePixelValue)(i.right), a = a - (0, h.getQuietZonePixelValue)(i.top) - (0, h.getQuietZonePixelValue)(i.bottom), l = f = s = void 0, f = r.forceRounding ? (s = (s = ~~(u / c)) < 1 ? 1 : s, (f = ~~(a / e)) < 1 ? 1 : f) : (s = u / c, a / e), this.style.unitValue = l = Math.min(s, f), this.style.fontSizeInUnit = o / l, this.height = (a = n ? a - o : a) / l - (0, h.getQuietZoneRelativeValue)(i.top) - (0, h.getQuietZoneRelativeValue)(i.bottom), Object.keys(i).forEach(function (t) { i[t].originIsAbsoluteValue && (i[t].relativeValue = i[t].pixelValue / l) })) } }, { key: "convertToShape", value: function t(e) { var n, r, i, n = this.quietZone, r = [], i = n.top.relativeValue; e.forEach(function (t) { var e = n.left.relativeValue; t.forEach(function (t) { t && r.push({ type: "rect", x: e, y: i, width: 1, height: 1 }), e++ }), i++ }), this.shapes = r, this.size = { width: e[0].length + n.left.relativeValue + n.right.relativeValue, height: i + n.bottom.relativeValue } } }]), n = l, e.default = n }, function (t, e, n) { "use strict"; var l, i, r, n, o, u, a, c, s, f, h, v, d, w, b, y, p; function g(t) { return t && t.__esModule ? t : { default: t } } function m(t) { var e = u.values[u.keys.indexOf(t)]; if (e) return { symbolRows: e[0], symbolColumns: e[1], symbolDataCapacity: e[2], eccLength: e[3], interleavedBlocks: e[4], regions: e[5], regionRows: e[6], regionColumns: e[7] }; throw new i.BadArgumentsException({ ecc200SymbolSize: t }) } function C(t, e) { if ("squareAuto" !== t && "rectangularAuto" !== t) return m(t); for (var n = "squareAuto" == t ? 0 : 24; n < u.keys.length; ++n)if (u.values[n][2] >= e) return m(u.keys[n]); throw new i.TextTooLargeException } function k(t) { var e = void 0, n = void 0; switch (t) { case 1: case 2: e = 1; break; case 4: e = 2; break; case 16: e = 4; break; case 36: e = 6 }return { rowOfRegion: e, colOfRegion: n = ~~(t / e) } } function A(t, e) { var n, r; for (e = e || t, n = [], r = 0; r < t; r++)n.push((0, l.fillArray)(new Array(e), null)); return n } function O(t) { return s < t ? t == o.FNC1Input ? "FNC1" : "ExtendedASCII" : v <= t && t <= d ? "Numeric" : w <= t && t <= b ? "LowerCasedLetter" : y <= t && t <= p ? "UpperCasedLetter" : "ASCIIOther" } function E(t) { var e; switch (O(t)) { case "Numeric": return t - 44; case "UpperCasedLetter": return t - 51; default: switch (t) { case 13: return 0; case 42: return 1; case 62: return 2; case 32: return 3 } }return o.InvalidTripletValue } function j(t, e) { if ("X12" == t) return E(e); if (e < 32) return e; if (32 == e) return 3; if (e < 48) return e - 33; if (e < 58) return e - 44; if (e < 65) return e - 43; if (e < 91) return "C40" == t ? e - 51 : e - 64; if (e < 96) return e - 69; if (96 == e) return 0; if (e < 123) return "C40" == t ? e - 96 : e - 83; if (e < 128) return e - 96; if (e == c || e == a) return e - 128; throw new i.InvalidCharException(String.fromCharCode(e)) } function S(t) { return v <= t && t <= d } function T(t, e) { return "X12" === t ? 0 : e < 32 ? 1 : 32 == e ? 0 : e < 48 ? 2 : e < 58 ? 0 : e < 65 ? 2 : e < 91 ? "C40" == t ? 0 : 3 : e < 96 ? 2 : 96 == e ? 3 : e < 123 ? "C40" === t ? 3 : 0 : e == o.TripletFNC1 || e == o.TripletUppershift ? 2 : 3 } function x(t, e) { var n, r, n = []; if (e == o.FNC1Input) { if ("X12" == t) throw new i.InvalidCharException("FNC1"); e = o.TripletFNC1 } else if (s < e) { if ("C40" != t && "Text" != t) throw new i.InvalidCharException(String.fromCharCode(e)); n.push(o.TripletShifts[2]), n.push(j(t, o.TripletUppershift)), e -= f } return 0 < (r = T(t, e)) && n.push(o.TripletShifts[r]), n.push(j(t, e)), n } function M(t) { return t < 32 || 94 < t ? o.InvalidTripletValue : t & o.EDIFACTMask } function B(t, e, n) { var t = t + o.PseudoRandomSeed * e % n + 1; return n + 1 < t ? t - n - 1 : t } function _(t) { var e, n, r, e = []; if (0 < t.length) { for (n = t[0], r = 1; r < t.length; ++r)t[r].charSet != n.charSet ? (0 < n.length && e.push((0, l.assign)({}, n)), n.charSet = t[r].charSet, n.start = t[r].start, n.length = t[r].length) : n.length += t[r].length; 0 < n.length && e.push(n) } return e } function N(t, e, n, r) { for (var i, o, u, a, c, s, f, i = e.regionColumns, o = e.regionRows, u = t[n *= o += 2], a = r *= i += 2; a < r + i; a++)(0, l.isEven)(a) ? u[a] = 1 : u[a] = 0; for (c = t[n + o - 1], s = r; s < r + i; s++)c[s] = 1; for (f = n; f < n + o; f++)t[f][r] = 1, (0, l.isEven)(f) ? t[f][r + i - 1] = 0 : t[f][r + i - 1] = 1 } function D(t, e, n, r, i) { for (var o, u, a, c, s, f, l, h, o = e.regionColumns, u = e.regionRows, a = n * (u + 2) + 1, c = r * (o + 2) + 1, s = n * u, f = r * o, l = 0; l < u; ++l)for (h = 0; h < o; ++h)t[a + l][c + h] = i[s + l][f + h] } Object.defineProperty(e, "__esModule", { value: !0 }), l = n(0), i = n(1), n = g(r = n(6)), o = { FNC1Input: n.default.DataMatrixFNC1.charCodeAt(0), Macro05Input: n.default.DataMatrixMacro05.charCodeAt(0), Macro06Input: n.default.DataMatrixMacro06.charCodeAt(0), StructuredAppand: 233, FileIdentifierMax: 254, ASCIIPad: 129, ASCIIUpperShift: 235, ASCIIFNC1: 232, Macro05: 236, Macro06: 237, TripletUppershift: 158, TripletFNC1: 155, TripletPad: 0, InvalidTripletValue: 255, LatchToC40: 230, LatchToBase256: 231, LatchToX12: 238, LatchToText: 239, LatchToEDIFACT: 240, TripletUnlatch: 254, EDIFACTUnlatch: 31, PseudoRandomSeed: 149, PadRandomBase: 253, Base256RandomBase: 255, Base256SmallBlockSize: 249, EDIFACTMask: 63, Unvisited: 255, TripletShifts: [255, 0, 1, 2], MaxCodeWrods: 2178, MaxStructures: 16, MaxLookAheadOffset: 50 }, u = { keys: ["square10", "square12", "square14", "square16", "square18", "square20", "square22", "square24", "square26", "square32", "square36", "square40", "square44", "square48", "square52", "square64", "square72", "square80", "square88", "square96", "square104", "square120", "square132", "square144", "rectangular8x18", "rectangular8x32", "rectangular12x26", "rectangular12x36", "rectangular16x36", "rectangular16x48"], values: [[10, 10, 3, 5, 1, 1, 8, 8], [12, 12, 5, 7, 1, 1, 10, 10], [14, 14, 8, 10, 1, 1, 12, 12], [16, 16, 12, 12, 1, 1, 14, 14], [18, 18, 18, 14, 1, 1, 16, 16], [20, 20, 22, 18, 1, 1, 18, 18], [22, 22, 30, 20, 1, 1, 20, 20], [24, 24, 36, 24, 1, 1, 22, 22], [26, 26, 44, 28, 1, 1, 24, 24], [32, 32, 62, 36, 1, 4, 14, 14], [36, 36, 86, 42, 1, 4, 16, 16], [40, 40, 114, 48, 1, 4, 18, 18], [44, 44, 144, 56, 1, 4, 20, 20], [48, 48, 174, 68, 1, 4, 22, 22], [52, 52, 204, 84, 2, 4, 24, 24], [64, 64, 280, 112, 2, 16, 14, 14], [72, 72, 368, 144, 4, 16, 16, 16], [80, 80, 456, 192, 4, 16, 18, 18], [88, 88, 576, 224, 4, 16, 20, 20], [96, 96, 696, 272, 4, 16, 22, 22], [104, 104, 816, 336, 6, 16, 24, 24], [120, 120, 1050, 408, 6, 36, 18, 18], [132, 132, 1304, 496, 8, 36, 20, 20], [144, 144, 1558, 620, 10, 36, 22, 22], [8, 18, 5, 7, 1, 1, 6, 16], [8, 32, 10, 11, 1, 2, 6, 14], [12, 26, 16, 14, 1, 1, 10, 24], [12, 36, 22, 18, 1, 2, 10, 16], [16, 36, 32, 24, 1, 2, 14, 16], [16, 48, 49, 28, 1, 2, 14, 22]] }, s = 127, v = 48, d = 57, w = 97, b = 122, y = 65, p = 90, e.default = { getSymbolInfo: m, getInfoOfRegions: k, createModules: A, CONSTANTS: o, getTripletCharValue: j, getRandomizedValue: B, getCharType: O, getSuitableSymbolSize: C, isDigit: S, getTripletCharSetChannel: T, getX12Value: E, getEDIFACTValue: M, getTripletEncodeValues: x, mergeUnits: _, TripletUppershift: a = 158, TripletFNC1: c = 155, ASCIIMax: s, ExtendedASCIIMin: f = 128, Space: h = 32,