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EAAoB,QAAE5S,OAClC4O,UAAWgE,EAAoB,QAAE5S,OACjCgM,OAAQ4G,EAAoB,QAAE3N,OAC9B8G,UAAW6G,EAAoB,QAAE3N,OACjCgH,aAAc2G,EAAoB,QAAE3N,OACpCkH,WAAYyG,EAAoB,QAAE3N,OAClCiH,YAAa0G,EAAoB,QAAE3N,QAErC7J,EAAQiZ,aAAe,CACrBtc,OAAQ,UACR8B,SAAU,MACVsJ,MAAO,EACPE,OAAQ,IACRsC,cAAc,EACd6I,YAAa,GACbC,KAAM,YACN7I,UAAW,SACX8I,aAAc,SACdpL,WAAY,EACZL,SAAU,GACV0L,WAAY,UACZC,UAAW,UACX5C,OAAQ,IAEV/Q,EAAOC,QAAUE,C,qCCvNjB,IAAIkZ,EAAI,EAAQ,OACZC,EAAmB,EAAQ,OAC3BC,EAAW,EAAQ,MACnBC,EAAoB,EAAQ,OAC5BC,EAAsB,EAAQ,OAC9BC,EAAqB,EAAQ,OAIjCL,EAAE,CAAE3Y,OAAQ,QAASiZ,OAAO,GAAQ,CAClC1R,KAAM,WACJ,IAAI2R,EAAW3M,UAAU3O,OAAS2O,UAAU,QAAKtP,EAC7Ckc,EAAIN,EAAS9b,MACbqc,EAAYN,EAAkBK,GAC9BE,EAAIL,EAAmBG,EAAG,GAE9B,OADAE,EAAEzb,OAASgb,EAAiBS,EAAGF,EAAGA,EAAGC,EAAW,OAAgBnc,IAAbic,EAAyB,EAAIH,EAAoBG,IAC7FG,CACT,G,wBChBqB,EAAQ,MAG/BC,CAAiB,O","sources":["webpack://my/../node_modules/jsbarcode/bin/JsBarcode.js","webpack://my/../node_modules/jsbarcode/bin/barcodes/Barcode.js","webpack://my/../node_modules/jsbarcode/bin/barcodes/CODE128/CODE128.js","webpack://my/../node_modules/jsbarcode/bin/barcodes/CODE128/CODE128A.js","webpack://my/../node_modules/jsbarcode/bin/barcodes/CODE128/CODE128B.js","webpack://my/../node_modules/jsbarcode/bin/barcodes/CODE128/CODE128C.js","webpack://my/../node_modules/jsbarcode/bin/barcodes/CODE128/CODE128_AUTO.js","webpack://my/../node_modules/jsbarcode/bin/barcodes/CODE128/auto.js","webpack://my/../node_modules/jsbarcode/bin/barcodes/CODE128/constants.js","webpack://my/../node_modules/jsbarcode/bin/barcodes/CODE128/index.js","webpack://my/../node_modules/jsbarcode/bin/barcodes/CODE39/index.js","webpack://my/../node_modules/jsbarcode/bin/barcodes/EAN_UPC/EAN.js","webpack://my/../node_modules/jsbarcode/bin/barcodes/EAN_UPC/EAN13.js","webpack://my/../node_modules/jsbarcode/bin/barcodes/EAN_UPC/EAN2.js","webpack://my/../node_modules/jsbarcode/bin/barcodes/EAN_UPC/EAN5.js","webpack://my/../node_modules/jsbarcode/bin/barcodes/EAN_UPC/EAN8.js","webpack://my/../node_modules/jsbarcode/bin/barcodes/EAN_UPC/UPC.js","webpack://my/../node_modules/jsbarcode/bin/barcodes/EAN_UPC/UPCE.js","webpack://my/../node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.js","webpack://my/../node_modules/jsbarcode/bin/barcodes/EAN_UPC/encoder.js","webpack://my/../node_modules/jsbarcode/bin/barcodes/EAN_UPC/index.js","webpack://my/../node_modules/jsbarcode/bin/barcodes/GenericBarcode/index.js","webpack://my/../node_modules/jsbarcode/bin/barcodes/ITF/ITF.js","webpack://my/../node_modules/jsbarcode/bin/barcodes/ITF/ITF14.js","webpack://my/../node_modules/jsbarcode/bin/barcodes/ITF/constants.js","webpack://my/../node_modules/jsbarcode/bin/barcodes/ITF/index.js","webpack://my/../node_modules/jsbarcode/bin/barcodes/MSI/MSI.js","webpack://my/../node_modules/jsbarcode/bin/barcodes/MSI/MSI10.js","webpack://my/../node_modules/jsbarcode/bin/barcodes/MSI/MSI1010.js","webpack://my/../node_modules/jsbarcode/bin/barcodes/MSI/MSI11.js","webpack://my/../node_modules/jsbarcode/bin/barcodes/MSI/MSI1110.js","webpack://my/../node_modules/jsbarcode/bin/barcodes/MSI/checksums.js","webpack://my/../node_modules/jsbarcode/bin/barcodes/MSI/index.js","webpack://my/../node_modules/jsbarcode/bin/barcodes/codabar/index.js","webpack://my/../node_modules/jsbarcode/bin/barcodes/index.js","webpack://my/../node_modules/jsbarcode/bin/barcodes/pharmacode/index.js","webpack://my/../node_modules/jsbarcode/bin/exceptions/ErrorHandler.js","webpack://my/../node_modules/jsbarcode/bin/exceptions/exceptions.js","webpack://my/../node_modules/jsbarcode/bin/help/fixOptions.js","webpack://my/../node_modules/jsbarcode/bin/help/getOptionsFromElement.js","webpack://my/../node_modules/jsbarcode/bin/help/getRenderProperties.js","webpack://my/../node_modules/jsbarcode/bin/help/linearizeEncodings.js","webpack://my/../node_modules/jsbarcode/bin/help/merge.js","webpack://my/../node_modules/jsbarcode/bin/help/optionsFromStrings.js","webpack://my/../node_modules/jsbarcode/bin/options/defaults.js","webpack://my/../node_modules/jsbarcode/bin/renderers/canvas.js","webpack://my/../node_modules/jsbarcode/bin/renderers/index.js","webpack://my/../node_modules/jsbarcode/bin/renderers/object.js","webpack://my/../node_modules/jsbarcode/bin/renderers/shared.js","webpack://my/../node_modules/jsbarcode/bin/renderers/svg.js","webpack://my/../node_modules/react-barcode/lib/react-barcode.js","webpack://my/../node_modules/core-js/modules/es.array.flat.js","webpack://my/../node_modules/core-js/modules/es.array.unscopables.flat.js"],"sourcesContent":["'use strict';\n\nvar _barcodes = require('./barcodes/');\n\nvar _barcodes2 = _interopRequireDefault(_barcodes);\n\nvar _merge = require('./help/merge.js');\n\nvar _merge2 = _interopRequireDefault(_merge);\n\nvar _linearizeEncodings = require('./help/linearizeEncodings.js');\n\nvar _linearizeEncodings2 = _interopRequireDefault(_linearizeEncodings);\n\nvar _fixOptions = require('./help/fixOptions.js');\n\nvar _fixOptions2 = _interopRequireDefault(_fixOptions);\n\nvar _getRenderProperties = require('./help/getRenderProperties.js');\n\nvar _getRenderProperties2 = _interopRequireDefault(_getRenderProperties);\n\nvar _optionsFromStrings = require('./help/optionsFromStrings.js');\n\nvar _optionsFromStrings2 = _interopRequireDefault(_optionsFromStrings);\n\nvar _ErrorHandler = require('./exceptions/ErrorHandler.js');\n\nvar _ErrorHandler2 = _interopRequireDefault(_ErrorHandler);\n\nvar _exceptions = require('./exceptions/exceptions.js');\n\nvar _defaults = require('./options/defaults.js');\n\nvar _defaults2 = _interopRequireDefault(_defaults);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n} // The protype of the object returned from the JsBarcode() call\n// Help functions\n\n\nvar API = function API() {}; // The first call of the library API\n// Will return an object with all barcodes calls and the data that is used\n// by the renderers\n// Default values\n// Exceptions\n// Import all the barcodes\n\n\nvar JsBarcode = function JsBarcode(element, text, options) {\n var api = new API();\n\n if (typeof element === \"undefined\") {\n throw Error(\"No element to render on was provided.\");\n } // Variables that will be pased through the API calls\n\n\n api._renderProperties = (0, _getRenderProperties2.default)(element);\n api._encodings = [];\n api._options = _defaults2.default;\n api._errorHandler = new _ErrorHandler2.default(api); // If text is set, use the simple syntax (render the barcode directly)\n\n if (typeof text !== \"undefined\") {\n options = options || {};\n\n if (!options.format) {\n options.format = autoSelectBarcode();\n }\n\n api.options(options)[options.format](text, options).render();\n }\n\n return api;\n}; // To make tests work TODO: remove\n\n\nJsBarcode.getModule = function (name) {\n return _barcodes2.default[name];\n}; // Register all barcodes\n\n\nfor (var name in _barcodes2.default) {\n if (_barcodes2.default.hasOwnProperty(name)) {\n // Security check if the propery is a prototype property\n registerBarcode(_barcodes2.default, name);\n }\n}\n\nfunction registerBarcode(barcodes, name) {\n API.prototype[name] = API.prototype[name.toUpperCase()] = API.prototype[name.toLowerCase()] = function (text, options) {\n var api = this;\n return api._errorHandler.wrapBarcodeCall(function () {\n // Ensure text is options.text\n options.text = typeof options.text === 'undefined' ? undefined : '' + options.text;\n var newOptions = (0, _merge2.default)(api._options, options);\n newOptions = (0, _optionsFromStrings2.default)(newOptions);\n var Encoder = barcodes[name];\n var encoded = encode(text, Encoder, newOptions);\n\n api._encodings.push(encoded);\n\n return api;\n });\n };\n} // encode() handles the Encoder call and builds the binary string to be rendered\n\n\nfunction encode(text, Encoder, options) {\n // Ensure that text is a string\n text = \"\" + text;\n var encoder = new Encoder(text, options); // If the input is not valid for the encoder, throw error.\n // If the valid callback option is set, call it instead of throwing error\n\n if (!encoder.valid()) {\n throw new _exceptions.InvalidInputException(encoder.constructor.name, text);\n } // Make a request for the binary data (and other infromation) that should be rendered\n\n\n var encoded = encoder.encode(); // Encodings can be nestled like [[1-1, 1-2], 2, [3-1, 3-2]\n // Convert to [1-1, 1-2, 2, 3-1, 3-2]\n\n encoded = (0, _linearizeEncodings2.default)(encoded); // Merge\n\n for (var i = 0; i < encoded.length; i++) {\n encoded[i].options = (0, _merge2.default)(options, encoded[i].options);\n }\n\n return encoded;\n}\n\nfunction autoSelectBarcode() {\n // If CODE128 exists. Use it\n if (_barcodes2.default[\"CODE128\"]) {\n return \"CODE128\";\n } // Else, take the first (probably only) barcode\n\n\n return Object.keys(_barcodes2.default)[0];\n} // Sets global encoder options\n// Added to the api by the JsBarcode function\n\n\nAPI.prototype.options = function (options) {\n this._options = (0, _merge2.default)(this._options, options);\n return this;\n}; // Will create a blank space (usually in between barcodes)\n\n\nAPI.prototype.blank = function (size) {\n var zeroes = new Array(size + 1).join(\"0\");\n\n this._encodings.push({\n data: zeroes\n });\n\n return this;\n}; // Initialize JsBarcode on all HTML elements defined.\n\n\nAPI.prototype.init = function () {\n // Should do nothing if no elements where found\n if (!this._renderProperties) {\n return;\n } // Make sure renderProperies is an array\n\n\n if (!Array.isArray(this._renderProperties)) {\n this._renderProperties = [this._renderProperties];\n }\n\n var renderProperty;\n\n for (var i in this._renderProperties) {\n renderProperty = this._renderProperties[i];\n var options = (0, _merge2.default)(this._options, renderProperty.options);\n\n if (options.format == \"auto\") {\n options.format = autoSelectBarcode();\n }\n\n this._errorHandler.wrapBarcodeCall(function () {\n var text = options.value;\n\n var Encoder = _barcodes2.default[options.format.toUpperCase()];\n\n var encoded = encode(text, Encoder, options);\n render(renderProperty, encoded, options);\n });\n }\n}; // The render API call. Calls the real render function.\n\n\nAPI.prototype.render = function () {\n if (!this._renderProperties) {\n throw new _exceptions.NoElementException();\n }\n\n if (Array.isArray(this._renderProperties)) {\n for (var i = 0; i < this._renderProperties.length; i++) {\n render(this._renderProperties[i], this._encodings, this._options);\n }\n } else {\n render(this._renderProperties, this._encodings, this._options);\n }\n\n return this;\n};\n\nAPI.prototype._defaults = _defaults2.default; // Prepares the encodings and calls the renderer\n\nfunction render(renderProperties, encodings, options) {\n encodings = (0, _linearizeEncodings2.default)(encodings);\n\n for (var i = 0; i < encodings.length; i++) {\n encodings[i].options = (0, _merge2.default)(options, encodings[i].options);\n (0, _fixOptions2.default)(encodings[i].options);\n }\n\n (0, _fixOptions2.default)(options);\n var Renderer = renderProperties.renderer;\n var renderer = new Renderer(renderProperties.element, encodings, options);\n renderer.render();\n\n if (renderProperties.afterRender) {\n renderProperties.afterRender();\n }\n} // Export to browser\n\n\nif (typeof window !== \"undefined\") {\n window.JsBarcode = JsBarcode;\n} // Export to jQuery\n\n/*global jQuery */\n\n\nif (typeof jQuery !== 'undefined') {\n jQuery.fn.JsBarcode = function (content, options) {\n var elementArray = [];\n jQuery(this).each(function () {\n elementArray.push(this);\n });\n return JsBarcode(elementArray, content, options);\n };\n} // Export to commonJS\n\n\nmodule.exports = JsBarcode;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nvar Barcode = function Barcode(data, options) {\n _classCallCheck(this, Barcode);\n\n this.data = data;\n this.text = options.text || data;\n this.options = options;\n};\n\nexports.default = Barcode;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _Barcode2 = require('../Barcode.js');\n\nvar _Barcode3 = _interopRequireDefault(_Barcode2);\n\nvar _constants = require('./constants');\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n} // This is the master class,\n// it does require the start code to be included in the string\n\n\nvar CODE128 = function (_Barcode) {\n _inherits(CODE128, _Barcode);\n\n function CODE128(data, options) {\n _classCallCheck(this, CODE128); // Get array of ascii codes from data\n\n\n var _this = _possibleConstructorReturn(this, (CODE128.__proto__ || Object.getPrototypeOf(CODE128)).call(this, data.substring(1), options));\n\n _this.bytes = data.split('').map(function (char) {\n return char.charCodeAt(0);\n });\n return _this;\n }\n\n _createClass(CODE128, [{\n key: 'valid',\n value: function valid() {\n // ASCII value ranges 0-127, 200-211\n return /^[\\x00-\\x7F\\xC8-\\xD3]+$/.test(this.data);\n } // The public encoding function\n\n }, {\n key: 'encode',\n value: function encode() {\n var bytes = this.bytes; // Remove the start code from the bytes and set its index\n\n var startIndex = bytes.shift() - 105; // Get start set by index\n\n var startSet = _constants.SET_BY_CODE[startIndex];\n\n if (startSet === undefined) {\n throw new RangeError('The encoding does not start with a start character.');\n }\n\n if (this.shouldEncodeAsEan128() === true) {\n bytes.unshift(_constants.FNC1);\n } // Start encode with the right type\n\n\n var encodingResult = CODE128.next(bytes, 1, startSet);\n return {\n text: this.text === this.data ? this.text.replace(/[^\\x20-\\x7E]/g, '') : this.text,\n data: // Add the start bits\n CODE128.getBar(startIndex) + // Add the encoded bits\n encodingResult.result + // Add the checksum\n CODE128.getBar((encodingResult.checksum + startIndex) % _constants.MODULO) + // Add the end bits\n CODE128.getBar(_constants.STOP)\n };\n } // GS1-128/EAN-128\n\n }, {\n key: 'shouldEncodeAsEan128',\n value: function shouldEncodeAsEan128() {\n var isEAN128 = this.options.ean128 || false;\n\n if (typeof isEAN128 === 'string') {\n isEAN128 = isEAN128.toLowerCase() === 'true';\n }\n\n return isEAN128;\n } // Get a bar symbol by index\n\n }], [{\n key: 'getBar',\n value: function getBar(index) {\n return _constants.BARS[index] ? _constants.BARS[index].toString() : '';\n } // Correct an index by a set and shift it from the bytes array\n\n }, {\n key: 'correctIndex',\n value: function correctIndex(bytes, set) {\n if (set === _constants.SET_A) {\n var charCode = bytes.shift();\n return charCode < 32 ? charCode + 64 : charCode - 32;\n } else if (set === _constants.SET_B) {\n return bytes.shift() - 32;\n } else {\n return (bytes.shift() - 48) * 10 + bytes.shift() - 48;\n }\n }\n }, {\n key: 'next',\n value: function next(bytes, pos, set) {\n if (!bytes.length) {\n return {\n result: '',\n checksum: 0\n };\n }\n\n var nextCode = void 0,\n index = void 0; // Special characters\n\n if (bytes[0] >= 200) {\n index = bytes.shift() - 105;\n var nextSet = _constants.SWAP[index]; // Swap to other set\n\n if (nextSet !== undefined) {\n nextCode = CODE128.next(bytes, pos + 1, nextSet);\n } // Continue on current set but encode a special character\n else {\n // Shift\n if ((set === _constants.SET_A || set === _constants.SET_B) && index === _constants.SHIFT) {\n // Convert the next character so that is encoded correctly\n bytes[0] = set === _constants.SET_A ? bytes[0] > 95 ? bytes[0] - 96 : bytes[0] : bytes[0] < 32 ? bytes[0] + 96 : bytes[0];\n }\n\n nextCode = CODE128.next(bytes, pos + 1, set);\n }\n } // Continue encoding\n else {\n index = CODE128.correctIndex(bytes, set);\n nextCode = CODE128.next(bytes, pos + 1, set);\n } // Get the correct binary encoding and calculate the weight\n\n\n var enc = CODE128.getBar(index);\n var weight = index * pos;\n return {\n result: enc + nextCode.result,\n checksum: weight + nextCode.checksum\n };\n }\n }]);\n\n return CODE128;\n}(_Barcode3.default);\n\nexports.default = CODE128;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _CODE2 = require('./CODE128.js');\n\nvar _CODE3 = _interopRequireDefault(_CODE2);\n\nvar _constants = require('./constants');\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nvar CODE128A = function (_CODE) {\n _inherits(CODE128A, _CODE);\n\n function CODE128A(string, options) {\n _classCallCheck(this, CODE128A);\n\n return _possibleConstructorReturn(this, (CODE128A.__proto__ || Object.getPrototypeOf(CODE128A)).call(this, _constants.A_START_CHAR + string, options));\n }\n\n _createClass(CODE128A, [{\n key: 'valid',\n value: function valid() {\n return new RegExp('^' + _constants.A_CHARS + '+$').test(this.data);\n }\n }]);\n\n return CODE128A;\n}(_CODE3.default);\n\nexports.default = CODE128A;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _CODE2 = require('./CODE128.js');\n\nvar _CODE3 = _interopRequireDefault(_CODE2);\n\nvar _constants = require('./constants');\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nvar CODE128B = function (_CODE) {\n _inherits(CODE128B, _CODE);\n\n function CODE128B(string, options) {\n _classCallCheck(this, CODE128B);\n\n return _possibleConstructorReturn(this, (CODE128B.__proto__ || Object.getPrototypeOf(CODE128B)).call(this, _constants.B_START_CHAR + string, options));\n }\n\n _createClass(CODE128B, [{\n key: 'valid',\n value: function valid() {\n return new RegExp('^' + _constants.B_CHARS + '+$').test(this.data);\n }\n }]);\n\n return CODE128B;\n}(_CODE3.default);\n\nexports.default = CODE128B;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _CODE2 = require('./CODE128.js');\n\nvar _CODE3 = _interopRequireDefault(_CODE2);\n\nvar _constants = require('./constants');\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nvar CODE128C = function (_CODE) {\n _inherits(CODE128C, _CODE);\n\n function CODE128C(string, options) {\n _classCallCheck(this, CODE128C);\n\n return _possibleConstructorReturn(this, (CODE128C.__proto__ || Object.getPrototypeOf(CODE128C)).call(this, _constants.C_START_CHAR + string, options));\n }\n\n _createClass(CODE128C, [{\n key: 'valid',\n value: function valid() {\n return new RegExp('^' + _constants.C_CHARS + '+$').test(this.data);\n }\n }]);\n\n return CODE128C;\n}(_CODE3.default);\n\nexports.default = CODE128C;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _CODE2 = require('./CODE128');\n\nvar _CODE3 = _interopRequireDefault(_CODE2);\n\nvar _auto = require('./auto');\n\nvar _auto2 = _interopRequireDefault(_auto);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nvar CODE128AUTO = function (_CODE) {\n _inherits(CODE128AUTO, _CODE);\n\n function CODE128AUTO(data, options) {\n _classCallCheck(this, CODE128AUTO); // ASCII value ranges 0-127, 200-211\n\n\n if (/^[\\x00-\\x7F\\xC8-\\xD3]+$/.test(data)) {\n var _this = _possibleConstructorReturn(this, (CODE128AUTO.__proto__ || Object.getPrototypeOf(CODE128AUTO)).call(this, (0, _auto2.default)(data), options));\n } else {\n var _this = _possibleConstructorReturn(this, (CODE128AUTO.__proto__ || Object.getPrototypeOf(CODE128AUTO)).call(this, data, options));\n }\n\n return _possibleConstructorReturn(_this);\n }\n\n return CODE128AUTO;\n}(_CODE3.default);\n\nexports.default = CODE128AUTO;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _constants = require('./constants'); // Match Set functions\n\n\nvar matchSetALength = function matchSetALength(string) {\n return string.match(new RegExp('^' + _constants.A_CHARS + '*'))[0].length;\n};\n\nvar matchSetBLength = function matchSetBLength(string) {\n return string.match(new RegExp('^' + _constants.B_CHARS + '*'))[0].length;\n};\n\nvar matchSetC = function matchSetC(string) {\n return string.match(new RegExp('^' + _constants.C_CHARS + '*'))[0];\n}; // CODE128A or CODE128B\n\n\nfunction autoSelectFromAB(string, isA) {\n var ranges = isA ? _constants.A_CHARS : _constants.B_CHARS;\n var untilC = string.match(new RegExp('^(' + ranges + '+?)(([0-9]{2}){2,})([^0-9]|$)'));\n\n if (untilC) {\n return untilC[1] + String.fromCharCode(204) + autoSelectFromC(string.substring(untilC[1].length));\n }\n\n var chars = string.match(new RegExp('^' + ranges + '+'))[0];\n\n if (chars.length === string.length) {\n return string;\n }\n\n return chars + String.fromCharCode(isA ? 205 : 206) + autoSelectFromAB(string.substring(chars.length), !isA);\n} // CODE128C\n\n\nfunction autoSelectFromC(string) {\n var cMatch = matchSetC(string);\n var length = cMatch.length;\n\n if (length === string.length) {\n return string;\n }\n\n string = string.substring(length); // Select A/B depending on the longest match\n\n var isA = matchSetALength(string) >= matchSetBLength(string);\n return cMatch + String.fromCharCode(isA ? 206 : 205) + autoSelectFromAB(string, isA);\n} // Detect Code Set (A, B or C) and format the string\n\n\nexports.default = function (string) {\n var newString = void 0;\n var cLength = matchSetC(string).length; // Select 128C if the string start with enough digits\n\n if (cLength >= 2) {\n newString = _constants.C_START_CHAR + autoSelectFromC(string);\n } else {\n // Select A/B depending on the longest match\n var isA = matchSetALength(string) > matchSetBLength(string);\n newString = (isA ? _constants.A_START_CHAR : _constants.B_START_CHAR) + autoSelectFromAB(string, isA);\n }\n\n return newString.replace(/[\\xCD\\xCE]([^])[\\xCD\\xCE]/, // Any sequence between 205 and 206 characters\n function (match, char) {\n return String.fromCharCode(203) + char;\n });\n};","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _SET_BY_CODE;\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n} // constants for internal usage\n\n\nvar SET_A = exports.SET_A = 0;\nvar SET_B = exports.SET_B = 1;\nvar SET_C = exports.SET_C = 2; // Special characters\n\nvar SHIFT = exports.SHIFT = 98;\nvar START_A = exports.START_A = 103;\nvar START_B = exports.START_B = 104;\nvar START_C = exports.START_C = 105;\nvar MODULO = exports.MODULO = 103;\nvar STOP = exports.STOP = 106;\nvar FNC1 = exports.FNC1 = 207; // Get set by start code\n\nvar SET_BY_CODE = exports.SET_BY_CODE = (_SET_BY_CODE = {}, _defineProperty(_SET_BY_CODE, START_A, SET_A), _defineProperty(_SET_BY_CODE, START_B, SET_B), _defineProperty(_SET_BY_CODE, START_C, SET_C), _SET_BY_CODE); // Get next set by code\n\nvar SWAP = exports.SWAP = {\n 101: SET_A,\n 100: SET_B,\n 99: SET_C\n};\nvar A_START_CHAR = exports.A_START_CHAR = String.fromCharCode(208); // START_A + 105\n\nvar B_START_CHAR = exports.B_START_CHAR = String.fromCharCode(209); // START_B + 105\n\nvar C_START_CHAR = exports.C_START_CHAR = String.fromCharCode(210); // START_C + 105\n// 128A (Code Set A)\n// ASCII characters 00 to 95 (0–9, A–Z and control codes), special characters, and FNC 1–4\n\nvar A_CHARS = exports.A_CHARS = \"[\\x00-\\x5F\\xC8-\\xCF]\"; // 128B (Code Set B)\n// ASCII characters 32 to 127 (0–9, A–Z, a–z), special characters, and FNC 1–4\n\nvar B_CHARS = exports.B_CHARS = \"[\\x20-\\x7F\\xC8-\\xCF]\"; // 128C (Code Set C)\n// 00–99 (encodes two digits with a single code point) and FNC1\n\nvar C_CHARS = exports.C_CHARS = \"(\\xCF*[0-9]{2}\\xCF*)\"; // CODE128 includes 107 symbols:\n// 103 data symbols, 3 start symbols (A, B and C), and 1 stop symbol (the last one)\n// Each symbol consist of three black bars (1) and three white spaces (0).\n\nvar BARS = exports.BARS = [11011001100, 11001101100, 11001100110, 10010011000, 10010001100, 10001001100, 10011001000, 10011000100, 10001100100, 11001001000, 11001000100, 11000100100, 10110011100, 10011011100, 10011001110, 10111001100, 10011101100, 10011100110, 11001110010, 11001011100, 11001001110, 11011100100, 11001110100, 11101101110, 11101001100, 11100101100, 11100100110, 11101100100, 11100110100, 11100110010, 11011011000, 11011000110, 11000110110, 10100011000, 10001011000, 10001000110, 10110001000, 10001101000, 10001100010, 11010001000, 11000101000, 11000100010, 10110111000, 10110001110, 10001101110, 10111011000, 10111000110, 10001110110, 11101110110, 11010001110, 11000101110, 11011101000, 11011100010, 11011101110, 11101011000, 11101000110, 11100010110, 11101101000, 11101100010, 11100011010, 11101111010, 11001000010, 11110001010, 10100110000, 10100001100, 10010110000, 10010000110, 10000101100, 10000100110, 10110010000, 10110000100, 10011010000, 10011000010, 10000110100, 10000110010, 11000010010, 11001010000, 11110111010, 11000010100, 10001111010, 10100111100, 10010111100, 10010011110, 10111100100, 10011110100, 10011110010, 11110100100, 11110010100, 11110010010, 11011011110, 11011110110, 11110110110, 10101111000, 10100011110, 10001011110, 10111101000, 10111100010, 11110101000, 11110100010, 10111011110, 10111101110, 11101011110, 11110101110, 11010000100, 11010010000, 11010011100, 1100011101011];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.CODE128C = exports.CODE128B = exports.CODE128A = exports.CODE128 = undefined;\n\nvar _CODE128_AUTO = require('./CODE128_AUTO.js');\n\nvar _CODE128_AUTO2 = _interopRequireDefault(_CODE128_AUTO);\n\nvar _CODE128A = require('./CODE128A.js');\n\nvar _CODE128A2 = _interopRequireDefault(_CODE128A);\n\nvar _CODE128B = require('./CODE128B.js');\n\nvar _CODE128B2 = _interopRequireDefault(_CODE128B);\n\nvar _CODE128C = require('./CODE128C.js');\n\nvar _CODE128C2 = _interopRequireDefault(_CODE128C);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nexports.CODE128 = _CODE128_AUTO2.default;\nexports.CODE128A = _CODE128A2.default;\nexports.CODE128B = _CODE128B2.default;\nexports.CODE128C = _CODE128C2.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.CODE39 = undefined;\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _Barcode2 = require(\"../Barcode.js\");\n\nvar _Barcode3 = _interopRequireDefault(_Barcode2);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n} // Encoding documentation:\n// https://en.wikipedia.org/wiki/Code_39#Encoding\n\n\nvar CODE39 = function (_Barcode) {\n _inherits(CODE39, _Barcode);\n\n function CODE39(data, options) {\n _classCallCheck(this, CODE39);\n\n data = data.toUpperCase(); // Calculate mod43 checksum if enabled\n\n if (options.mod43) {\n data += getCharacter(mod43checksum(data));\n }\n\n return _possibleConstructorReturn(this, (CODE39.__proto__ || Object.getPrototypeOf(CODE39)).call(this, data, options));\n }\n\n _createClass(CODE39, [{\n key: \"encode\",\n value: function encode() {\n // First character is always a *\n var result = getEncoding(\"*\"); // Take every character and add the binary representation to the result\n\n for (var i = 0; i < this.data.length; i++) {\n result += getEncoding(this.data[i]) + \"0\";\n } // Last character is always a *\n\n\n result += getEncoding(\"*\");\n return {\n data: result,\n text: this.text\n };\n }\n }, {\n key: \"valid\",\n value: function valid() {\n return this.data.search(/^[0-9A-Z\\-\\.\\ \\$\\/\\+\\%]+$/) !== -1;\n }\n }]);\n\n return CODE39;\n}(_Barcode3.default); // All characters. The position in the array is the (checksum) value\n\n\nvar characters = [\"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\", \"-\", \".\", \" \", \"$\", \"/\", \"+\", \"%\", \"*\"]; // The decimal representation of the characters, is converted to the\n// corresponding binary with the getEncoding function\n\nvar encodings = [20957, 29783, 23639, 30485, 20951, 29813, 23669, 20855, 29789, 23645, 29975, 23831, 30533, 22295, 30149, 24005, 21623, 29981, 23837, 22301, 30023, 23879, 30545, 22343, 30161, 24017, 21959, 30065, 23921, 22385, 29015, 18263, 29141, 17879, 29045, 18293, 17783, 29021, 18269, 17477, 17489, 17681, 20753, 35770]; // Get the binary representation of a character by converting the encodings\n// from decimal to binary\n\nfunction getEncoding(character) {\n return getBinary(characterValue(character));\n}\n\nfunction getBinary(characterValue) {\n return encodings[characterValue].toString(2);\n}\n\nfunction getCharacter(characterValue) {\n return characters[characterValue];\n}\n\nfunction characterValue(character) {\n return characters.indexOf(character);\n}\n\nfunction mod43checksum(data) {\n var checksum = 0;\n\n for (var i = 0; i < data.length; i++) {\n checksum += characterValue(data[i]);\n }\n\n checksum = checksum % 43;\n return checksum;\n}\n\nexports.CODE39 = CODE39;","'use strict';\n\nrequire(\"core-js/modules/es.array.flat.js\");\n\nrequire(\"core-js/modules/es.array.unscopables.flat.js\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _constants = require('./constants');\n\nvar _encoder = require('./encoder');\n\nvar _encoder2 = _interopRequireDefault(_encoder);\n\nvar _Barcode2 = require('../Barcode');\n\nvar _Barcode3 = _interopRequireDefault(_Barcode2);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n} // Base class for EAN8 & EAN13\n\n\nvar EAN = function (_Barcode) {\n _inherits(EAN, _Barcode);\n\n function EAN(data, options) {\n _classCallCheck(this, EAN); // Make sure the font is not bigger than the space between the guard bars\n\n\n var _this = _possibleConstructorReturn(this, (EAN.__proto__ || Object.getPrototypeOf(EAN)).call(this, data, options));\n\n _this.fontSize = !options.flat && options.fontSize > options.width * 10 ? options.width * 10 : options.fontSize; // Make the guard bars go down half the way of the text\n\n _this.guardHeight = options.height + _this.fontSize / 2 + options.textMargin;\n return _this;\n }\n\n _createClass(EAN, [{\n key: 'encode',\n value: function encode() {\n return this.options.flat ? this.encodeFlat() : this.encodeGuarded();\n }\n }, {\n key: 'leftText',\n value: function leftText(from, to) {\n return this.text.substr(from, to);\n }\n }, {\n key: 'leftEncode',\n value: function leftEncode(data, structure) {\n return (0, _encoder2.default)(data, structure);\n }\n }, {\n key: 'rightText',\n value: function rightText(from, to) {\n return this.text.substr(from, to);\n }\n }, {\n key: 'rightEncode',\n value: function rightEncode(data, structure) {\n return (0, _encoder2.default)(data, structure);\n }\n }, {\n key: 'encodeGuarded',\n value: function encodeGuarded() {\n var textOptions = {\n fontSize: this.fontSize\n };\n var guardOptions = {\n height: this.guardHeight\n };\n return [{\n data: _constants.SIDE_BIN,\n options: guardOptions\n }, {\n data: this.leftEncode(),\n text: this.leftText(),\n options: textOptions\n }, {\n data: _constants.MIDDLE_BIN,\n options: guardOptions\n }, {\n data: this.rightEncode(),\n text: this.rightText(),\n options: textOptions\n }, {\n data: _constants.SIDE_BIN,\n options: guardOptions\n }];\n }\n }, {\n key: 'encodeFlat',\n value: function encodeFlat() {\n var data = [_constants.SIDE_BIN, this.leftEncode(), _constants.MIDDLE_BIN, this.rightEncode(), _constants.SIDE_BIN];\n return {\n data: data.join(''),\n text: this.text\n };\n }\n }]);\n\n return EAN;\n}(_Barcode3.default);\n\nexports.default = EAN;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _get = function get(object, property, receiver) {\n if (object === null) object = Function.prototype;\n var desc = Object.getOwnPropertyDescriptor(object, property);\n\n if (desc === undefined) {\n var parent = Object.getPrototypeOf(object);\n\n if (parent === null) {\n return undefined;\n } else {\n return get(parent, property, receiver);\n }\n } else if (\"value\" in desc) {\n return desc.value;\n } else {\n var getter = desc.get;\n\n if (getter === undefined) {\n return undefined;\n }\n\n return getter.call(receiver);\n }\n};\n\nvar _constants = require('./constants');\n\nvar _EAN2 = require('./EAN');\n\nvar _EAN3 = _interopRequireDefault(_EAN2);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n} // Encoding documentation:\n// https://en.wikipedia.org/wiki/International_Article_Number_(EAN)#Binary_encoding_of_data_digits_into_EAN-13_barcode\n// Calculate the checksum digit\n// https://en.wikipedia.org/wiki/International_Article_Number_(EAN)#Calculation_of_checksum_digit\n\n\nvar checksum = function checksum(number) {\n var res = number.substr(0, 12).split('').map(function (n) {\n return +n;\n }).reduce(function (sum, a, idx) {\n return idx % 2 ? sum + a * 3 : sum + a;\n }, 0);\n return (10 - res % 10) % 10;\n};\n\nvar EAN13 = function (_EAN) {\n _inherits(EAN13, _EAN);\n\n function EAN13(data, options) {\n _classCallCheck(this, EAN13); // Add checksum if it does not exist\n\n\n if (data.search(/^[0-9]{12}$/) !== -1) {\n data += checksum(data);\n } // Adds a last character to the end of the barcode\n\n\n var _this = _possibleConstructorReturn(this, (EAN13.__proto__ || Object.getPrototypeOf(EAN13)).call(this, data, options));\n\n _this.lastChar = options.lastChar;\n return _this;\n }\n\n _createClass(EAN13, [{\n key: 'valid',\n value: function valid() {\n return this.data.search(/^[0-9]{13}$/) !== -1 && +this.data[12] === checksum(this.data);\n }\n }, {\n key: 'leftText',\n value: function leftText() {\n return _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'leftText', this).call(this, 1, 6);\n }\n }, {\n key: 'leftEncode',\n value: function leftEncode() {\n var data = this.data.substr(1, 6);\n var structure = _constants.EAN13_STRUCTURE[this.data[0]];\n return _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'leftEncode', this).call(this, data, structure);\n }\n }, {\n key: 'rightText',\n value: function rightText() {\n return _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'rightText', this).call(this, 7, 6);\n }\n }, {\n key: 'rightEncode',\n value: function rightEncode() {\n var data = this.data.substr(7, 6);\n return _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'rightEncode', this).call(this, data, 'RRRRRR');\n } // The \"standard\" way of printing EAN13 barcodes with guard bars\n\n }, {\n key: 'encodeGuarded',\n value: function encodeGuarded() {\n var data = _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'encodeGuarded', this).call(this); // Extend data with left digit & last character\n\n\n if (this.options.displayValue) {\n data.unshift({\n data: '000000000000',\n text: this.text.substr(0, 1),\n options: {\n textAlign: 'left',\n fontSize: this.fontSize\n }\n });\n\n if (this.options.lastChar) {\n data.push({\n data: '00'\n });\n data.push({\n data: '00000',\n text: this.options.lastChar,\n options: {\n fontSize: this.fontSize\n }\n });\n }\n }\n\n return data;\n }\n }]);\n\n return EAN13;\n}(_EAN3.default);\n\nexports.default = EAN13;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _constants = require('./constants');\n\nvar _encoder = require('./encoder');\n\nvar _encoder2 = _interopRequireDefault(_encoder);\n\nvar _Barcode2 = require('../Barcode');\n\nvar _Barcode3 = _interopRequireDefault(_Barcode2);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n} // Encoding documentation:\n// https://en.wikipedia.org/wiki/EAN_2#Encoding\n\n\nvar EAN2 = function (_Barcode) {\n _inherits(EAN2, _Barcode);\n\n function EAN2(data, options) {\n _classCallCheck(this, EAN2);\n\n return _possibleConstructorReturn(this, (EAN2.__proto__ || Object.getPrototypeOf(EAN2)).call(this, data, options));\n }\n\n _createClass(EAN2, [{\n key: 'valid',\n value: function valid() {\n return this.data.search(/^[0-9]{2}$/) !== -1;\n }\n }, {\n key: 'encode',\n value: function encode() {\n // Choose the structure based on the number mod 4\n var structure = _constants.EAN2_STRUCTURE[parseInt(this.data) % 4];\n\n return {\n // Start bits + Encode the two digits with 01 in between\n data: '1011' + (0, _encoder2.default)(this.data, structure, '01'),\n text: this.text\n };\n }\n }]);\n\n return EAN2;\n}(_Barcode3.default);\n\nexports.default = EAN2;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _constants = require('./constants');\n\nvar _encoder = require('./encoder');\n\nvar _encoder2 = _interopRequireDefault(_encoder);\n\nvar _Barcode2 = require('../Barcode');\n\nvar _Barcode3 = _interopRequireDefault(_Barcode2);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n} // Encoding documentation:\n// https://en.wikipedia.org/wiki/EAN_5#Encoding\n\n\nvar checksum = function checksum(data) {\n var result = data.split('').map(function (n) {\n return +n;\n }).reduce(function (sum, a, idx) {\n return idx % 2 ? sum + a * 9 : sum + a * 3;\n }, 0);\n return result % 10;\n};\n\nvar EAN5 = function (_Barcode) {\n _inherits(EAN5, _Barcode);\n\n function EAN5(data, options) {\n _classCallCheck(this, EAN5);\n\n return _possibleConstructorReturn(this, (EAN5.__proto__ || Object.getPrototypeOf(EAN5)).call(this, data, options));\n }\n\n _createClass(EAN5, [{\n key: 'valid',\n value: function valid() {\n return this.data.search(/^[0-9]{5}$/) !== -1;\n }\n }, {\n key: 'encode',\n value: function encode() {\n var structure = _constants.EAN5_STRUCTURE[checksum(this.data)];\n\n return {\n data: '1011' + (0, _encoder2.default)(this.data, structure, '01'),\n text: this.text\n };\n }\n }]);\n\n return EAN5;\n}(_Barcode3.default);\n\nexports.default = EAN5;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _get = function get(object, property, receiver) {\n if (object === null) object = Function.prototype;\n var desc = Object.getOwnPropertyDescriptor(object, property);\n\n if (desc === undefined) {\n var parent = Object.getPrototypeOf(object);\n\n if (parent === null) {\n return undefined;\n } else {\n return get(parent, property, receiver);\n }\n } else if (\"value\" in desc) {\n return desc.value;\n } else {\n var getter = desc.get;\n\n if (getter === undefined) {\n return undefined;\n }\n\n return getter.call(receiver);\n }\n};\n\nvar _EAN2 = require('./EAN');\n\nvar _EAN3 = _interopRequireDefault(_EAN2);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n} // Encoding documentation:\n// http://www.barcodeisland.com/ean8.phtml\n// Calculate the checksum digit\n\n\nvar checksum = function checksum(number) {\n var res = number.substr(0, 7).split('').map(function (n) {\n return +n;\n }).reduce(function (sum, a, idx) {\n return idx % 2 ? sum + a : sum + a * 3;\n }, 0);\n return (10 - res % 10) % 10;\n};\n\nvar EAN8 = function (_EAN) {\n _inherits(EAN8, _EAN);\n\n function EAN8(data, options) {\n _classCallCheck(this, EAN8); // Add checksum if it does not exist\n\n\n if (data.search(/^[0-9]{7}$/) !== -1) {\n data += checksum(data);\n }\n\n return _possibleConstructorReturn(this, (EAN8.__proto__ || Object.getPrototypeOf(EAN8)).call(this, data, options));\n }\n\n _createClass(EAN8, [{\n key: 'valid',\n value: function valid() {\n return this.data.search(/^[0-9]{8}$/) !== -1 && +this.data[7] === checksum(this.data);\n }\n }, {\n key: 'leftText',\n value: function leftText() {\n return _get(EAN8.prototype.__proto__ || Object.getPrototypeOf(EAN8.prototype), 'leftText', this).call(this, 0, 4);\n }\n }, {\n key: 'leftEncode',\n value: function leftEncode() {\n var data = this.data.substr(0, 4);\n return _get(EAN8.prototype.__proto__ || Object.getPrototypeOf(EAN8.prototype), 'leftEncode', this).call(this, data, 'LLLL');\n }\n }, {\n key: 'rightText',\n value: function rightText() {\n return _get(EAN8.prototype.__proto__ || Object.getPrototypeOf(EAN8.prototype), 'rightText', this).call(this, 4, 4);\n }\n }, {\n key: 'rightEncode',\n value: function rightEncode() {\n var data = this.data.substr(4, 4);\n return _get(EAN8.prototype.__proto__ || Object.getPrototypeOf(EAN8.prototype), 'rightEncode', this).call(this, data, 'RRRR');\n }\n }]);\n\n return EAN8;\n}(_EAN3.default);\n\nexports.default = EAN8;","\"use strict\";\n\nrequire(\"core-js/modules/es.array.flat.js\");\n\nrequire(\"core-js/modules/es.array.unscopables.flat.js\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nexports.checksum = checksum;\n\nvar _encoder = require(\"./encoder\");\n\nvar _encoder2 = _interopRequireDefault(_encoder);\n\nvar _Barcode2 = require(\"../Barcode.js\");\n\nvar _Barcode3 = _interopRequireDefault(_Barcode2);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n} // Encoding documentation:\n// https://en.wikipedia.org/wiki/Universal_Product_Code#Encoding\n\n\nvar UPC = function (_Barcode) {\n _inherits(UPC, _Barcode);\n\n function UPC(data, options) {\n _classCallCheck(this, UPC); // Add checksum if it does not exist\n\n\n if (data.search(/^[0-9]{11}$/) !== -1) {\n data += checksum(data);\n }\n\n var _this = _possibleConstructorReturn(this, (UPC.__proto__ || Object.getPrototypeOf(UPC)).call(this, data, options));\n\n _this.displayValue = options.displayValue; // Make sure the font is not bigger than the space between the guard bars\n\n if (options.fontSize > options.width * 10) {\n _this.fontSize = options.width * 10;\n } else {\n _this.fontSize = options.fontSize;\n } // Make the guard bars go down half the way of the text\n\n\n _this.guardHeight = options.height + _this.fontSize / 2 + options.textMargin;\n return _this;\n }\n\n _createClass(UPC, [{\n key: \"valid\",\n value: function valid() {\n return this.data.search(/^[0-9]{12}$/) !== -1 && this.data[11] == checksum(this.data);\n }\n }, {\n key: \"encode\",\n value: function encode() {\n if (this.options.flat) {\n return this.flatEncoding();\n } else {\n return this.guardedEncoding();\n }\n }\n }, {\n key: \"flatEncoding\",\n value: function flatEncoding() {\n var result = \"\";\n result += \"101\";\n result += (0, _encoder2.default)(this.data.substr(0, 6), \"LLLLLL\");\n result += \"01010\";\n result += (0, _encoder2.default)(this.data.substr(6, 6), \"RRRRRR\");\n result += \"101\";\n return {\n data: result,\n text: this.text\n };\n }\n }, {\n key: \"guardedEncoding\",\n value: function guardedEncoding() {\n var result = []; // Add the first digit\n\n if (this.displayValue) {\n result.push({\n data: \"00000000\",\n text: this.text.substr(0, 1),\n options: {\n textAlign: \"left\",\n fontSize: this.fontSize\n }\n });\n } // Add the guard bars\n\n\n result.push({\n data: \"101\" + (0, _encoder2.default)(this.data[0], \"L\"),\n options: {\n height: this.guardHeight\n }\n }); // Add the left side\n\n result.push({\n data: (0, _encoder2.default)(this.data.substr(1, 5), \"LLLLL\"),\n text: this.text.substr(1, 5),\n options: {\n fontSize: this.fontSize\n }\n }); // Add the middle bits\n\n result.push({\n data: \"01010\",\n options: {\n height: this.guardHeight\n }\n }); // Add the right side\n\n result.push({\n data: (0, _encoder2.default)(this.data.substr(6, 5), \"RRRRR\"),\n text: this.text.substr(6, 5),\n options: {\n fontSize: this.fontSize\n }\n }); // Add the end bits\n\n result.push({\n data: (0, _encoder2.default)(this.data[11], \"R\") + \"101\",\n options: {\n height: this.guardHeight\n }\n }); // Add the last digit\n\n if (this.displayValue) {\n result.push({\n data: \"00000000\",\n text: this.text.substr(11, 1),\n options: {\n textAlign: \"right\",\n fontSize: this.fontSize\n }\n });\n }\n\n return result;\n }\n }]);\n\n return UPC;\n}(_Barcode3.default); // Calulate the checksum digit\n// https://en.wikipedia.org/wiki/International_Article_Number_(EAN)#Calculation_of_checksum_digit\n\n\nfunction checksum(number) {\n var result = 0;\n var i;\n\n for (i = 1; i < 11; i += 2) {\n result += parseInt(number[i]);\n }\n\n for (i = 0; i < 11; i += 2) {\n result += parseInt(number[i]) * 3;\n }\n\n return (10 - result % 10) % 10;\n}\n\nexports.default = UPC;","'use strict';\n\nrequire(\"core-js/modules/es.array.flat.js\");\n\nrequire(\"core-js/modules/es.array.unscopables.flat.js\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _encoder = require('./encoder');\n\nvar _encoder2 = _interopRequireDefault(_encoder);\n\nvar _Barcode2 = require('../Barcode.js');\n\nvar _Barcode3 = _interopRequireDefault(_Barcode2);\n\nvar _UPC = require('./UPC.js');\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n} // Encoding documentation:\n// https://en.wikipedia.org/wiki/Universal_Product_Code#Encoding\n//\n// UPC-E documentation:\n// https://en.wikipedia.org/wiki/Universal_Product_Code#UPC-E\n\n\nvar EXPANSIONS = [\"XX00000XXX\", \"XX10000XXX\", \"XX20000XXX\", \"XXX00000XX\", \"XXXX00000X\", \"XXXXX00005\", \"XXXXX00006\", \"XXXXX00007\", \"XXXXX00008\", \"XXXXX00009\"];\nvar PARITIES = [[\"EEEOOO\", \"OOOEEE\"], [\"EEOEOO\", \"OOEOEE\"], [\"EEOOEO\", \"OOEEOE\"], [\"EEOOOE\", \"OOEEEO\"], [\"EOEEOO\", \"OEOOEE\"], [\"EOOEEO\", \"OEEOOE\"], [\"EOOOEE\", \"OEEEOO\"], [\"EOEOEO\", \"OEOEOE\"], [\"EOEOOE\", \"OEOEEO\"], [\"EOOEOE\", \"OEEOEO\"]];\n\nvar UPCE = function (_Barcode) {\n _inherits(UPCE, _Barcode);\n\n function UPCE(data, options) {\n _classCallCheck(this, UPCE);\n\n var _this = _possibleConstructorReturn(this, (UPCE.__proto__ || Object.getPrototypeOf(UPCE)).call(this, data, options)); // Code may be 6 or 8 digits;\n // A 7 digit code is ambiguous as to whether the extra digit\n // is a UPC-A check or number system digit.\n\n\n _this.isValid = false;\n\n if (data.search(/^[0-9]{6}$/) !== -1) {\n _this.middleDigits = data;\n _this.upcA = expandToUPCA(data, \"0\");\n _this.text = options.text || '' + _this.upcA[0] + data + _this.upcA[_this.upcA.length - 1];\n _this.isValid = true;\n } else if (data.search(/^[01][0-9]{7}$/) !== -1) {\n _this.middleDigits = data.substring(1, data.length - 1);\n _this.upcA = expandToUPCA(_this.middleDigits, data[0]);\n\n if (_this.upcA[_this.upcA.length - 1] === data[data.length - 1]) {\n _this.isValid = true;\n } else {\n // checksum mismatch\n return _possibleConstructorReturn(_this);\n }\n } else {\n return _possibleConstructorReturn(_this);\n }\n\n _this.displayValue = options.displayValue; // Make sure the font is not bigger than the space between the guard bars\n\n if (options.fontSize > options.width * 10) {\n _this.fontSize = options.width * 10;\n } else {\n _this.fontSize = options.fontSize;\n } // Make the guard bars go down half the way of the text\n\n\n _this.guardHeight = options.height + _this.fontSize / 2 + options.textMargin;\n return _this;\n }\n\n _createClass(UPCE, [{\n key: 'valid',\n value: function valid() {\n return this.isValid;\n }\n }, {\n key: 'encode',\n value: function encode() {\n if (this.options.flat) {\n return this.flatEncoding();\n } else {\n return this.guardedEncoding();\n }\n }\n }, {\n key: 'flatEncoding',\n value: function flatEncoding() {\n var result = \"\";\n result += \"101\";\n result += this.encodeMiddleDigits();\n result += \"010101\";\n return {\n data: result,\n text: this.text\n };\n }\n }, {\n key: 'guardedEncoding',\n value: function guardedEncoding() {\n var result = []; // Add the UPC-A number system digit beneath the quiet zone\n\n if (this.displayValue) {\n result.push({\n data: \"00000000\",\n text: this.text[0],\n options: {\n textAlign: \"left\",\n fontSize: this.fontSize\n }\n });\n } // Add the guard bars\n\n\n result.push({\n data: \"101\",\n options: {\n height: this.guardHeight\n }\n }); // Add the 6 UPC-E digits\n\n result.push({\n data: this.encodeMiddleDigits(),\n text: this.text.substring(1, 7),\n options: {\n fontSize: this.fontSize\n }\n }); // Add the end bits\n\n result.push({\n data: \"010101\",\n options: {\n height: this.guardHeight\n }\n }); // Add the UPC-A check digit beneath the quiet zone\n\n if (this.displayValue) {\n result.push({\n data: \"00000000\",\n text: this.text[7],\n options: {\n textAlign: \"right\",\n fontSize: this.fontSize\n }\n });\n }\n\n return result;\n }\n }, {\n key: 'encodeMiddleDigits',\n value: function encodeMiddleDigits() {\n var numberSystem = this.upcA[0];\n var checkDigit = this.upcA[this.upcA.length - 1];\n var parity = PARITIES[parseInt(checkDigit)][parseInt(numberSystem)];\n return (0, _encoder2.default)(this.middleDigits, parity);\n }\n }]);\n\n return UPCE;\n}(_Barcode3.default);\n\nfunction expandToUPCA(middleDigits, numberSystem) {\n var lastUpcE = parseInt(middleDigits[middleDigits.length - 1]);\n var expansion = EXPANSIONS[lastUpcE];\n var result = \"\";\n var digitIndex = 0;\n\n for (var i = 0; i < expansion.length; i++) {\n var c = expansion[i];\n\n if (c === 'X') {\n result += middleDigits[digitIndex++];\n } else {\n result += c;\n }\n }\n\n result = '' + numberSystem + result;\n return '' + result + (0, _UPC.checksum)(result);\n}\n\nexports.default = UPCE;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n}); // Standard start end and middle bits\n\nvar SIDE_BIN = exports.SIDE_BIN = '101';\nvar MIDDLE_BIN = exports.MIDDLE_BIN = '01010';\nvar BINARIES = exports.BINARIES = {\n 'L': [// The L (left) type of encoding\n '0001101', '0011001', '0010011', '0111101', '0100011', '0110001', '0101111', '0111011', '0110111', '0001011'],\n 'G': [// The G type of encoding\n '0100111', '0110011', '0011011', '0100001', '0011101', '0111001', '0000101', '0010001', '0001001', '0010111'],\n 'R': [// The R (right) type of encoding\n '1110010', '1100110', '1101100', '1000010', '1011100', '1001110', '1010000', '1000100', '1001000', '1110100'],\n 'O': [// The O (odd) encoding for UPC-E\n '0001101', '0011001', '0010011', '0111101', '0100011', '0110001', '0101111', '0111011', '0110111', '0001011'],\n 'E': [// The E (even) encoding for UPC-E\n '0100111', '0110011', '0011011', '0100001', '0011101', '0111001', '0000101', '0010001', '0001001', '0010111']\n}; // Define the EAN-2 structure\n\nvar EAN2_STRUCTURE = exports.EAN2_STRUCTURE = ['LL', 'LG', 'GL', 'GG']; // Define the EAN-5 structure\n\nvar EAN5_STRUCTURE = exports.EAN5_STRUCTURE = ['GGLLL', 'GLGLL', 'GLLGL', 'GLLLG', 'LGGLL', 'LLGGL', 'LLLGG', 'LGLGL', 'LGLLG', 'LLGLG']; // Define the EAN-13 structure\n\nvar EAN13_STRUCTURE = exports.EAN13_STRUCTURE = ['LLLLLL', 'LLGLGG', 'LLGGLG', 'LLGGGL', 'LGLLGG', 'LGGLLG', 'LGGGLL', 'LGLGLG', 'LGLGGL', 'LGGLGL'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _constants = require('./constants'); // Encode data string\n\n\nvar encode = function encode(data, structure, separator) {\n var encoded = data.split('').map(function (val, idx) {\n return _constants.BINARIES[structure[idx]];\n }).map(function (val, idx) {\n return val ? val[data[idx]] : '';\n });\n\n if (separator) {\n var last = data.length - 1;\n encoded = encoded.map(function (val, idx) {\n return idx < last ? val + separator : val;\n });\n }\n\n return encoded.join('');\n};\n\nexports.default = encode;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.UPCE = exports.UPC = exports.EAN2 = exports.EAN5 = exports.EAN8 = exports.EAN13 = undefined;\n\nvar _EAN = require('./EAN13.js');\n\nvar _EAN2 = _interopRequireDefault(_EAN);\n\nvar _EAN3 = require('./EAN8.js');\n\nvar _EAN4 = _interopRequireDefault(_EAN3);\n\nvar _EAN5 = require('./EAN5.js');\n\nvar _EAN6 = _interopRequireDefault(_EAN5);\n\nvar _EAN7 = require('./EAN2.js');\n\nvar _EAN8 = _interopRequireDefault(_EAN7);\n\nvar _UPC = require('./UPC.js');\n\nvar _UPC2 = _interopRequireDefault(_UPC);\n\nvar _UPCE = require('./UPCE.js');\n\nvar _UPCE2 = _interopRequireDefault(_UPCE);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nexports.EAN13 = _EAN2.default;\nexports.EAN8 = _EAN4.default;\nexports.EAN5 = _EAN6.default;\nexports.EAN2 = _EAN8.default;\nexports.UPC = _UPC2.default;\nexports.UPCE = _UPCE2.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.GenericBarcode = undefined;\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _Barcode2 = require(\"../Barcode.js\");\n\nvar _Barcode3 = _interopRequireDefault(_Barcode2);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nvar GenericBarcode = function (_Barcode) {\n _inherits(GenericBarcode, _Barcode);\n\n function GenericBarcode(data, options) {\n _classCallCheck(this, GenericBarcode);\n\n return _possibleConstructorReturn(this, (GenericBarcode.__proto__ || Object.getPrototypeOf(GenericBarcode)).call(this, data, options)); // Sets this.data and this.text\n } // Return the corresponding binary numbers for the data provided\n\n\n _createClass(GenericBarcode, [{\n key: \"encode\",\n value: function encode() {\n return {\n data: \"10101010101010101010101010101010101010101\",\n text: this.text\n };\n } // Resturn true/false if the string provided is valid for this encoder\n\n }, {\n key: \"valid\",\n value: function valid() {\n return true;\n }\n }]);\n\n return GenericBarcode;\n}(_Barcode3.default);\n\nexports.GenericBarcode = GenericBarcode;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _constants = require('./constants');\n\nvar _Barcode2 = require('../Barcode');\n\nvar _Barcode3 = _interopRequireDefault(_Barcode2);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nvar ITF = function (_Barcode) {\n _inherits(ITF, _Barcode);\n\n function ITF() {\n _classCallCheck(this, ITF);\n\n return _possibleConstructorReturn(this, (ITF.__proto__ || Object.getPrototypeOf(ITF)).apply(this, arguments));\n }\n\n _createClass(ITF, [{\n key: 'valid',\n value: function valid() {\n return this.data.search(/^([0-9]{2})+$/) !== -1;\n }\n }, {\n key: 'encode',\n value: function encode() {\n var _this2 = this; // Calculate all the digit pairs\n\n\n var encoded = this.data.match(/.{2}/g).map(function (pair) {\n return _this2.encodePair(pair);\n }).join('');\n return {\n data: _constants.START_BIN + encoded + _constants.END_BIN,\n text: this.text\n };\n } // Calculate the data of a number pair\n\n }, {\n key: 'encodePair',\n value: function encodePair(pair) {\n var second = _constants.BINARIES[pair[1]];\n return _constants.BINARIES[pair[0]].split('').map(function (first, idx) {\n return (first === '1' ? '111' : '1') + (second[idx] === '1' ? '000' : '0');\n }).join('');\n }\n }]);\n\n return ITF;\n}(_Barcode3.default);\n\nexports.default = ITF;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _ITF2 = require('./ITF');\n\nvar _ITF3 = _interopRequireDefault(_ITF2);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n} // Calculate the checksum digit\n\n\nvar checksum = function checksum(data) {\n var res = data.substr(0, 13).split('').map(function (num) {\n return parseInt(num, 10);\n }).reduce(function (sum, n, idx) {\n return sum + n * (3 - idx % 2 * 2);\n }, 0);\n return Math.ceil(res / 10) * 10 - res;\n};\n\nvar ITF14 = function (_ITF) {\n _inherits(ITF14, _ITF);\n\n function ITF14(data, options) {\n _classCallCheck(this, ITF14); // Add checksum if it does not exist\n\n\n if (data.search(/^[0-9]{13}$/) !== -1) {\n data += checksum(data);\n }\n\n return _possibleConstructorReturn(this, (ITF14.__proto__ || Object.getPrototypeOf(ITF14)).call(this, data, options));\n }\n\n _createClass(ITF14, [{\n key: 'valid',\n value: function valid() {\n return this.data.search(/^[0-9]{14}$/) !== -1 && +this.data[13] === checksum(this.data);\n }\n }]);\n\n return ITF14;\n}(_ITF3.default);\n\nexports.default = ITF14;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar START_BIN = exports.START_BIN = '1010';\nvar END_BIN = exports.END_BIN = '11101';\nvar BINARIES = exports.BINARIES = ['00110', '10001', '01001', '11000', '00101', '10100', '01100', '00011', '10010', '01010'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ITF14 = exports.ITF = undefined;\n\nvar _ITF = require('./ITF');\n\nvar _ITF2 = _interopRequireDefault(_ITF);\n\nvar _ITF3 = require('./ITF14');\n\nvar _ITF4 = _interopRequireDefault(_ITF3);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nexports.ITF = _ITF2.default;\nexports.ITF14 = _ITF4.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _Barcode2 = require(\"../Barcode.js\");\n\nvar _Barcode3 = _interopRequireDefault(_Barcode2);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n} // Encoding documentation\n// https://en.wikipedia.org/wiki/MSI_Barcode#Character_set_and_binary_lookup\n\n\nvar MSI = function (_Barcode) {\n _inherits(MSI, _Barcode);\n\n function MSI(data, options) {\n _classCallCheck(this, MSI);\n\n return _possibleConstructorReturn(this, (MSI.__proto__ || Object.getPrototypeOf(MSI)).call(this, data, options));\n }\n\n _createClass(MSI, [{\n key: \"encode\",\n value: function encode() {\n // Start bits\n var ret = \"110\";\n\n for (var i = 0; i < this.data.length; i++) {\n // Convert the character to binary (always 4 binary digits)\n var digit = parseInt(this.data[i]);\n var bin = digit.toString(2);\n bin = addZeroes(bin, 4 - bin.length); // Add 100 for every zero and 110 for every 1\n\n for (var b = 0; b < bin.length; b++) {\n ret += bin[b] == \"0\" ? \"100\" : \"110\";\n }\n } // End bits\n\n\n ret += \"1001\";\n return {\n data: ret,\n text: this.text\n };\n }\n }, {\n key: \"valid\",\n value: function valid() {\n return this.data.search(/^[0-9]+$/) !== -1;\n }\n }]);\n\n return MSI;\n}(_Barcode3.default);\n\nfunction addZeroes(number, n) {\n for (var i = 0; i < n; i++) {\n number = \"0\" + number;\n }\n\n return number;\n}\n\nexports.default = MSI;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _MSI2 = require('./MSI.js');\n\nvar _MSI3 = _interopRequireDefault(_MSI2);\n\nvar _checksums = require('./checksums.js');\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nvar MSI10 = function (_MSI) {\n _inherits(MSI10, _MSI);\n\n function MSI10(data, options) {\n _classCallCheck(this, MSI10);\n\n return _possibleConstructorReturn(this, (MSI10.__proto__ || Object.getPrototypeOf(MSI10)).call(this, data + (0, _checksums.mod10)(data), options));\n }\n\n return MSI10;\n}(_MSI3.default);\n\nexports.default = MSI10;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _MSI2 = require('./MSI.js');\n\nvar _MSI3 = _interopRequireDefault(_MSI2);\n\nvar _checksums = require('./checksums.js');\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nvar MSI1010 = function (_MSI) {\n _inherits(MSI1010, _MSI);\n\n function MSI1010(data, options) {\n _classCallCheck(this, MSI1010);\n\n data += (0, _checksums.mod10)(data);\n data += (0, _checksums.mod10)(data);\n return _possibleConstructorReturn(this, (MSI1010.__proto__ || Object.getPrototypeOf(MSI1010)).call(this, data, options));\n }\n\n return MSI1010;\n}(_MSI3.default);\n\nexports.default = MSI1010;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _MSI2 = require('./MSI.js');\n\nvar _MSI3 = _interopRequireDefault(_MSI2);\n\nvar _checksums = require('./checksums.js');\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nvar MSI11 = function (_MSI) {\n _inherits(MSI11, _MSI);\n\n function MSI11(data, options) {\n _classCallCheck(this, MSI11);\n\n return _possibleConstructorReturn(this, (MSI11.__proto__ || Object.getPrototypeOf(MSI11)).call(this, data + (0, _checksums.mod11)(data), options));\n }\n\n return MSI11;\n}(_MSI3.default);\n\nexports.default = MSI11;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _MSI2 = require('./MSI.js');\n\nvar _MSI3 = _interopRequireDefault(_MSI2);\n\nvar _checksums = require('./checksums.js');\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nvar MSI1110 = function (_MSI) {\n _inherits(MSI1110, _MSI);\n\n function MSI1110(data, options) {\n _classCallCheck(this, MSI1110);\n\n data += (0, _checksums.mod11)(data);\n data += (0, _checksums.mod10)(data);\n return _possibleConstructorReturn(this, (MSI1110.__proto__ || Object.getPrototypeOf(MSI1110)).call(this, data, options));\n }\n\n return MSI1110;\n}(_MSI3.default);\n\nexports.default = MSI1110;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.mod10 = mod10;\nexports.mod11 = mod11;\n\nfunction mod10(number) {\n var sum = 0;\n\n for (var i = 0; i < number.length; i++) {\n var n = parseInt(number[i]);\n\n if ((i + number.length) % 2 === 0) {\n sum += n;\n } else {\n sum += n * 2 % 10 + Math.floor(n * 2 / 10);\n }\n }\n\n return (10 - sum % 10) % 10;\n}\n\nfunction mod11(number) {\n var sum = 0;\n var weights = [2, 3, 4, 5, 6, 7];\n\n for (var i = 0; i < number.length; i++) {\n var n = parseInt(number[number.length - 1 - i]);\n sum += weights[i % weights.length] * n;\n }\n\n return (11 - sum % 11) % 11;\n}","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.MSI1110 = exports.MSI1010 = exports.MSI11 = exports.MSI10 = exports.MSI = undefined;\n\nvar _MSI = require('./MSI.js');\n\nvar _MSI2 = _interopRequireDefault(_MSI);\n\nvar _MSI3 = require('./MSI10.js');\n\nvar _MSI4 = _interopRequireDefault(_MSI3);\n\nvar _MSI5 = require('./MSI11.js');\n\nvar _MSI6 = _interopRequireDefault(_MSI5);\n\nvar _MSI7 = require('./MSI1010.js');\n\nvar _MSI8 = _interopRequireDefault(_MSI7);\n\nvar _MSI9 = require('./MSI1110.js');\n\nvar _MSI10 = _interopRequireDefault(_MSI9);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nexports.MSI = _MSI2.default;\nexports.MSI10 = _MSI4.default;\nexports.MSI11 = _MSI6.default;\nexports.MSI1010 = _MSI8.default;\nexports.MSI1110 = _MSI10.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.codabar = undefined;\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _Barcode2 = require(\"../Barcode.js\");\n\nvar _Barcode3 = _interopRequireDefault(_Barcode2);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n} // Encoding specification:\n// http://www.barcodeisland.com/codabar.phtml\n\n\nvar codabar = function (_Barcode) {\n _inherits(codabar, _Barcode);\n\n function codabar(data, options) {\n _classCallCheck(this, codabar);\n\n if (data.search(/^[0-9\\-\\$\\:\\.\\+\\/]+$/) === 0) {\n data = \"A\" + data + \"A\";\n }\n\n var _this = _possibleConstructorReturn(this, (codabar.__proto__ || Object.getPrototypeOf(codabar)).call(this, data.toUpperCase(), options));\n\n _this.text = _this.options.text || _this.text.replace(/[A-D]/g, '');\n return _this;\n }\n\n _createClass(codabar, [{\n key: \"valid\",\n value: function valid() {\n return this.data.search(/^[A-D][0-9\\-\\$\\:\\.\\+\\/]+[A-D]$/) !== -1;\n }\n }, {\n key: \"encode\",\n value: function encode() {\n var result = [];\n var encodings = this.getEncodings();\n\n for (var i = 0; i < this.data.length; i++) {\n result.push(encodings[this.data.charAt(i)]); // for all characters except the last, append a narrow-space (\"0\")\n\n if (i !== this.data.length - 1) {\n result.push(\"0\");\n }\n }\n\n return {\n text: this.text,\n data: result.join('')\n };\n }\n }, {\n key: \"getEncodings\",\n value: function getEncodings() {\n return {\n \"0\": \"101010011\",\n \"1\": \"101011001\",\n \"2\": \"101001011\",\n \"3\": \"110010101\",\n \"4\": \"101101001\",\n \"5\": \"110101001\",\n \"6\": \"100101011\",\n \"7\": \"100101101\",\n \"8\": \"100110101\",\n \"9\": \"110100101\",\n \"-\": \"101001101\",\n \"$\": \"101100101\",\n \":\": \"1101011011\",\n \"/\": \"1101101011\",\n \".\": \"1101101101\",\n \"+\": \"1011011011\",\n \"A\": \"1011001001\",\n \"B\": \"1001001011\",\n \"C\": \"1010010011\",\n \"D\": \"1010011001\"\n };\n }\n }]);\n\n return codabar;\n}(_Barcode3.default);\n\nexports.codabar = codabar;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _CODE = require('./CODE39/');\n\nvar _CODE2 = require('./CODE128/');\n\nvar _EAN_UPC = require('./EAN_UPC/');\n\nvar _ITF = require('./ITF/');\n\nvar _MSI = require('./MSI/');\n\nvar _pharmacode = require('./pharmacode/');\n\nvar _codabar = require('./codabar');\n\nvar _GenericBarcode = require('./GenericBarcode/');\n\nexports.default = {\n CODE39: _CODE.CODE39,\n CODE128: _CODE2.CODE128,\n CODE128A: _CODE2.CODE128A,\n CODE128B: _CODE2.CODE128B,\n CODE128C: _CODE2.CODE128C,\n EAN13: _EAN_UPC.EAN13,\n EAN8: _EAN_UPC.EAN8,\n EAN5: _EAN_UPC.EAN5,\n EAN2: _EAN_UPC.EAN2,\n UPC: _EAN_UPC.UPC,\n UPCE: _EAN_UPC.UPCE,\n ITF14: _ITF.ITF14,\n ITF: _ITF.ITF,\n MSI: _MSI.MSI,\n MSI10: _MSI.MSI10,\n MSI11: _MSI.MSI11,\n MSI1010: _MSI.MSI1010,\n MSI1110: _MSI.MSI1110,\n pharmacode: _pharmacode.pharmacode,\n codabar: _codabar.codabar,\n GenericBarcode: _GenericBarcode.GenericBarcode\n};","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.pharmacode = undefined;\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _Barcode2 = require(\"../Barcode.js\");\n\nvar _Barcode3 = _interopRequireDefault(_Barcode2);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n} // Encoding documentation\n// http://www.gomaro.ch/ftproot/Laetus_PHARMA-CODE.pdf\n\n\nvar pharmacode = function (_Barcode) {\n _inherits(pharmacode, _Barcode);\n\n function pharmacode(data, options) {\n _classCallCheck(this, pharmacode);\n\n var _this = _possibleConstructorReturn(this, (pharmacode.__proto__ || Object.getPrototypeOf(pharmacode)).call(this, data, options));\n\n _this.number = parseInt(data, 10);\n return _this;\n }\n\n _createClass(pharmacode, [{\n key: \"encode\",\n value: function encode() {\n var z = this.number;\n var result = \"\"; // http://i.imgur.com/RMm4UDJ.png\n // (source: http://www.gomaro.ch/ftproot/Laetus_PHARMA-CODE.pdf, page: 34)\n\n while (!isNaN(z) && z != 0) {\n if (z % 2 === 0) {\n // Even\n result = \"11100\" + result;\n z = (z - 2) / 2;\n } else {\n // Odd\n result = \"100\" + result;\n z = (z - 1) / 2;\n }\n } // Remove the two last zeroes\n\n\n result = result.slice(0, -2);\n return {\n data: result,\n text: this.text\n };\n }\n }, {\n key: \"valid\",\n value: function valid() {\n return this.number >= 3 && this.number <= 131070;\n }\n }]);\n\n return pharmacode;\n}(_Barcode3.default);\n\nexports.pharmacode = pharmacode;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n/*eslint no-console: 0 */\n\n\nvar ErrorHandler = function () {\n function ErrorHandler(api) {\n _classCallCheck(this, ErrorHandler);\n\n this.api = api;\n }\n\n _createClass(ErrorHandler, [{\n key: \"handleCatch\",\n value: function handleCatch(e) {\n // If babel supported extending of Error in a correct way instanceof would be used here\n if (e.name === \"InvalidInputException\") {\n if (this.api._options.valid !== this.api._defaults.valid) {\n this.api._options.valid(false);\n } else {\n throw e.message;\n }\n } else {\n throw e;\n }\n\n this.api.render = function () {};\n }\n }, {\n key: \"wrapBarcodeCall\",\n value: function wrapBarcodeCall(func) {\n try {\n var result = func.apply(undefined, arguments);\n\n this.api._options.valid(true);\n\n return result;\n } catch (e) {\n this.handleCatch(e);\n return this.api;\n }\n }\n }]);\n\n return ErrorHandler;\n}();\n\nexports.default = ErrorHandler;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nvar InvalidInputException = function (_Error) {\n _inherits(InvalidInputException, _Error);\n\n function InvalidInputException(symbology, input) {\n _classCallCheck(this, InvalidInputException);\n\n var _this = _possibleConstructorReturn(this, (InvalidInputException.__proto__ || Object.getPrototypeOf(InvalidInputException)).call(this));\n\n _this.name = \"InvalidInputException\";\n _this.symbology = symbology;\n _this.input = input;\n _this.message = '\"' + _this.input + '\" is not a valid input for ' + _this.symbology;\n return _this;\n }\n\n return InvalidInputException;\n}(Error);\n\nvar InvalidElementException = function (_Error2) {\n _inherits(InvalidElementException, _Error2);\n\n function InvalidElementException() {\n _classCallCheck(this, InvalidElementException);\n\n var _this2 = _possibleConstructorReturn(this, (InvalidElementException.__proto__ || Object.getPrototypeOf(InvalidElementException)).call(this));\n\n _this2.name = \"InvalidElementException\";\n _this2.message = \"Not supported type to render on\";\n return _this2;\n }\n\n return InvalidElementException;\n}(Error);\n\nvar NoElementException = function (_Error3) {\n _inherits(NoElementException, _Error3);\n\n function NoElementException() {\n _classCallCheck(this, NoElementException);\n\n var _this3 = _possibleConstructorReturn(this, (NoElementException.__proto__ || Object.getPrototypeOf(NoElementException)).call(this));\n\n _this3.name = \"NoElementException\";\n _this3.message = \"No element to render on.\";\n return _this3;\n }\n\n return NoElementException;\n}(Error);\n\nexports.InvalidInputException = InvalidInputException;\nexports.InvalidElementException = InvalidElementException;\nexports.NoElementException = NoElementException;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = fixOptions;\n\nfunction fixOptions(options) {\n // Fix the margins\n options.marginTop = options.marginTop || options.margin;\n options.marginBottom = options.marginBottom || options.margin;\n options.marginRight = options.marginRight || options.margin;\n options.marginLeft = options.marginLeft || options.margin;\n return options;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _optionsFromStrings = require(\"./optionsFromStrings.js\");\n\nvar _optionsFromStrings2 = _interopRequireDefault(_optionsFromStrings);\n\nvar _defaults = require(\"../options/defaults.js\");\n\nvar _defaults2 = _interopRequireDefault(_defaults);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction getOptionsFromElement(element) {\n var options = {};\n\n for (var property in _defaults2.default) {\n if (_defaults2.default.hasOwnProperty(property)) {\n // jsbarcode-*\n if (element.hasAttribute(\"jsbarcode-\" + property.toLowerCase())) {\n options[property] = element.getAttribute(\"jsbarcode-\" + property.toLowerCase());\n } // data-*\n\n\n if (element.hasAttribute(\"data-\" + property.toLowerCase())) {\n options[property] = element.getAttribute(\"data-\" + property.toLowerCase());\n }\n }\n }\n\n options[\"value\"] = element.getAttribute(\"jsbarcode-value\") || element.getAttribute(\"data-value\"); // Since all atributes are string they need to be converted to integers\n\n options = (0, _optionsFromStrings2.default)(options);\n return options;\n}\n\nexports.default = getOptionsFromElement;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n} : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n};\n/* global HTMLImageElement */\n\n/* global HTMLCanvasElement */\n\n/* global SVGElement */\n\n\nvar _getOptionsFromElement = require(\"./getOptionsFromElement.js\");\n\nvar _getOptionsFromElement2 = _interopRequireDefault(_getOptionsFromElement);\n\nvar _renderers = require(\"../renderers\");\n\nvar _renderers2 = _interopRequireDefault(_renderers);\n\nvar _exceptions = require(\"../exceptions/exceptions.js\");\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n} // Takes an element and returns an object with information about how\n// it should be rendered\n// This could also return an array with these objects\n// {\n// element: The element that the renderer should draw on\n// renderer: The name of the renderer\n// afterRender (optional): If something has to done after the renderer\n// completed, calls afterRender (function)\n// options (optional): Options that can be defined in the element\n// }\n\n\nfunction getRenderProperties(element) {\n // If the element is a string, query select call again\n if (typeof element === \"string\") {\n return querySelectedRenderProperties(element);\n } // If element is array. Recursivly call with every object in the array\n else if (Array.isArray(element)) {\n var returnArray = [];\n\n for (var i = 0; i < element.length; i++) {\n returnArray.push(getRenderProperties(element[i]));\n }\n\n return returnArray;\n } // If element, render on canvas and set the uri as src\n else if (typeof HTMLCanvasElement !== 'undefined' && element instanceof HTMLImageElement) {\n return newCanvasRenderProperties(element);\n } // If SVG\n else if (element && element.nodeName && element.nodeName.toLowerCase() === 'svg' || typeof SVGElement !== 'undefined' && element instanceof SVGElement) {\n return {\n element: element,\n options: (0, _getOptionsFromElement2.default)(element),\n renderer: _renderers2.default.SVGRenderer\n };\n } // If canvas (in browser)\n else if (typeof HTMLCanvasElement !== 'undefined' && element instanceof HTMLCanvasElement) {\n return {\n element: element,\n options: (0, _getOptionsFromElement2.default)(element),\n renderer: _renderers2.default.CanvasRenderer\n };\n } // If canvas (in node)\n else if (element && element.getContext) {\n return {\n element: element,\n renderer: _renderers2.default.CanvasRenderer\n };\n } else if (element && (typeof element === \"undefined\" ? \"undefined\" : _typeof(element)) === 'object' && !element.nodeName) {\n return {\n element: element,\n renderer: _renderers2.default.ObjectRenderer\n };\n } else {\n throw new _exceptions.InvalidElementException();\n }\n}\n\nfunction querySelectedRenderProperties(string) {\n var selector = document.querySelectorAll(string);\n\n if (selector.length === 0) {\n return undefined;\n } else {\n var returnArray = [];\n\n for (var i = 0; i < selector.length; i++) {\n returnArray.push(getRenderProperties(selector[i]));\n }\n\n return returnArray;\n }\n}\n\nfunction newCanvasRenderProperties(imgElement) {\n var canvas = document.createElement('canvas');\n return {\n element: canvas,\n options: (0, _getOptionsFromElement2.default)(imgElement),\n renderer: _renderers2.default.CanvasRenderer,\n afterRender: function afterRender() {\n imgElement.setAttribute(\"src\", canvas.toDataURL());\n }\n };\n}\n\nexports.default = getRenderProperties;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = linearizeEncodings; // Encodings can be nestled like [[1-1, 1-2], 2, [3-1, 3-2]\n// Convert to [1-1, 1-2, 2, 3-1, 3-2]\n\nfunction linearizeEncodings(encodings) {\n var linearEncodings = [];\n\n function nextLevel(encoded) {\n if (Array.isArray(encoded)) {\n for (var i = 0; i < encoded.length; i++) {\n nextLevel(encoded[i]);\n }\n } else {\n encoded.text = encoded.text || \"\";\n encoded.data = encoded.data || \"\";\n linearEncodings.push(encoded);\n }\n }\n\n nextLevel(encodings);\n return linearEncodings;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};\n\nexports.default = function (old, replaceObj) {\n return _extends({}, old, replaceObj);\n};","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = optionsFromStrings; // Convert string to integers/booleans where it should be\n\nfunction optionsFromStrings(options) {\n var intOptions = [\"width\", \"height\", \"textMargin\", \"fontSize\", \"margin\", \"marginTop\", \"marginBottom\", \"marginLeft\", \"marginRight\"];\n\n for (var intOption in intOptions) {\n if (intOptions.hasOwnProperty(intOption)) {\n intOption = intOptions[intOption];\n\n if (typeof options[intOption] === \"string\") {\n options[intOption] = parseInt(options[intOption], 10);\n }\n }\n }\n\n if (typeof options[\"displayValue\"] === \"string\") {\n options[\"displayValue\"] = options[\"displayValue\"] != \"false\";\n }\n\n return options;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar defaults = {\n width: 2,\n height: 100,\n format: \"auto\",\n displayValue: true,\n fontOptions: \"\",\n font: \"monospace\",\n text: undefined,\n textAlign: \"center\",\n textPosition: \"bottom\",\n textMargin: 2,\n fontSize: 20,\n background: \"#ffffff\",\n lineColor: \"#000000\",\n margin: 10,\n marginTop: undefined,\n marginBottom: undefined,\n marginLeft: undefined,\n marginRight: undefined,\n valid: function valid() {}\n};\nexports.default = defaults;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _merge = require(\"../help/merge.js\");\n\nvar _merge2 = _interopRequireDefault(_merge);\n\nvar _shared = require(\"./shared.js\");\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nvar CanvasRenderer = function () {\n function CanvasRenderer(canvas, encodings, options) {\n _classCallCheck(this, CanvasRenderer);\n\n this.canvas = canvas;\n this.encodings = encodings;\n this.options = options;\n }\n\n _createClass(CanvasRenderer, [{\n key: \"render\",\n value: function render() {\n // Abort if the browser does not support HTML5 canvas\n if (!this.canvas.getContext) {\n throw new Error('The browser does not support canvas.');\n }\n\n this.prepareCanvas();\n\n for (var i = 0; i < this.encodings.length; i++) {\n var encodingOptions = (0, _merge2.default)(this.options, this.encodings[i].options);\n this.drawCanvasBarcode(encodingOptions, this.encodings[i]);\n this.drawCanvasText(encodingOptions, this.encodings[i]);\n this.moveCanvasDrawing(this.encodings[i]);\n }\n\n this.restoreCanvas();\n }\n }, {\n key: \"prepareCanvas\",\n value: function prepareCanvas() {\n // Get the canvas context\n var ctx = this.canvas.getContext(\"2d\");\n ctx.save();\n (0, _shared.calculateEncodingAttributes)(this.encodings, this.options, ctx);\n var totalWidth = (0, _shared.getTotalWidthOfEncodings)(this.encodings);\n var maxHeight = (0, _shared.getMaximumHeightOfEncodings)(this.encodings);\n this.canvas.width = totalWidth + this.options.marginLeft + this.options.marginRight;\n this.canvas.height = maxHeight; // Paint the canvas\n\n ctx.clearRect(0, 0, this.canvas.width, this.canvas.height);\n\n if (this.options.background) {\n ctx.fillStyle = this.options.background;\n ctx.fillRect(0, 0, this.canvas.width, this.canvas.height);\n }\n\n ctx.translate(this.options.marginLeft, 0);\n }\n }, {\n key: \"drawCanvasBarcode\",\n value: function drawCanvasBarcode(options, encoding) {\n // Get the canvas context\n var ctx = this.canvas.getContext(\"2d\");\n var binary = encoding.data; // Creates the barcode out of the encoded binary\n\n var yFrom;\n\n if (options.textPosition == \"top\") {\n yFrom = options.marginTop + options.fontSize + options.textMargin;\n } else {\n yFrom = options.marginTop;\n }\n\n ctx.fillStyle = options.lineColor;\n\n for (var b = 0; b < binary.length; b++) {\n var x = b * options.width + encoding.barcodePadding;\n\n if (binary[b] === \"1\") {\n ctx.fillRect(x, yFrom, options.width, options.height);\n } else if (binary[b]) {\n ctx.fillRect(x, yFrom, options.width, options.height * binary[b]);\n }\n }\n }\n }, {\n key: \"drawCanvasText\",\n value: function drawCanvasText(options, encoding) {\n // Get the canvas context\n var ctx = this.canvas.getContext(\"2d\");\n var font = options.fontOptions + \" \" + options.fontSize + \"px \" + options.font; // Draw the text if displayValue is set\n\n if (options.displayValue) {\n var x, y;\n\n if (options.textPosition == \"top\") {\n y = options.marginTop + options.fontSize - options.textMargin;\n } else {\n y = options.height + options.textMargin + options.marginTop + options.fontSize;\n }\n\n ctx.font = font; // Draw the text in the correct X depending on the textAlign option\n\n if (options.textAlign == \"left\" || encoding.barcodePadding > 0) {\n x = 0;\n ctx.textAlign = 'left';\n } else if (options.textAlign == \"right\") {\n x = encoding.width - 1;\n ctx.textAlign = 'right';\n } // In all other cases, center the text\n else {\n x = encoding.width / 2;\n ctx.textAlign = 'center';\n }\n\n ctx.fillText(encoding.text, x, y);\n }\n }\n }, {\n key: \"moveCanvasDrawing\",\n value: function moveCanvasDrawing(encoding) {\n var ctx = this.canvas.getContext(\"2d\");\n ctx.translate(encoding.width, 0);\n }\n }, {\n key: \"restoreCanvas\",\n value: function restoreCanvas() {\n // Get the canvas context\n var ctx = this.canvas.getContext(\"2d\");\n ctx.restore();\n }\n }]);\n\n return CanvasRenderer;\n}();\n\nexports.default = CanvasRenderer;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _canvas = require('./canvas.js');\n\nvar _canvas2 = _interopRequireDefault(_canvas);\n\nvar _svg = require('./svg.js');\n\nvar _svg2 = _interopRequireDefault(_svg);\n\nvar _object = require('./object.js');\n\nvar _object2 = _interopRequireDefault(_object);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nexports.default = {\n CanvasRenderer: _canvas2.default,\n SVGRenderer: _svg2.default,\n ObjectRenderer: _object2.default\n};","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nvar ObjectRenderer = function () {\n function ObjectRenderer(object, encodings, options) {\n _classCallCheck(this, ObjectRenderer);\n\n this.object = object;\n this.encodings = encodings;\n this.options = options;\n }\n\n _createClass(ObjectRenderer, [{\n key: \"render\",\n value: function render() {\n this.object.encodings = this.encodings;\n }\n }]);\n\n return ObjectRenderer;\n}();\n\nexports.default = ObjectRenderer;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getTotalWidthOfEncodings = exports.calculateEncodingAttributes = exports.getBarcodePadding = exports.getEncodingHeight = exports.getMaximumHeightOfEncodings = undefined;\n\nvar _merge = require(\"../help/merge.js\");\n\nvar _merge2 = _interopRequireDefault(_merge);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction getEncodingHeight(encoding, options) {\n return options.height + (options.displayValue && encoding.text.length > 0 ? options.fontSize + options.textMargin : 0) + options.marginTop + options.marginBottom;\n}\n\nfunction getBarcodePadding(textWidth, barcodeWidth, options) {\n if (options.displayValue && barcodeWidth < textWidth) {\n if (options.textAlign == \"center\") {\n return Math.floor((textWidth - barcodeWidth) / 2);\n } else if (options.textAlign == \"left\") {\n return 0;\n } else if (options.textAlign == \"right\") {\n return Math.floor(textWidth - barcodeWidth);\n }\n }\n\n return 0;\n}\n\nfunction calculateEncodingAttributes(encodings, barcodeOptions, context) {\n for (var i = 0; i < encodings.length; i++) {\n var encoding = encodings[i];\n var options = (0, _merge2.default)(barcodeOptions, encoding.options); // Calculate the width of the encoding\n\n var textWidth;\n\n if (options.displayValue) {\n textWidth = messureText(encoding.text, options, context);\n } else {\n textWidth = 0;\n }\n\n var barcodeWidth = encoding.data.length * options.width;\n encoding.width = Math.ceil(Math.max(textWidth, barcodeWidth));\n encoding.height = getEncodingHeight(encoding, options);\n encoding.barcodePadding = getBarcodePadding(textWidth, barcodeWidth, options);\n }\n}\n\nfunction getTotalWidthOfEncodings(encodings) {\n var totalWidth = 0;\n\n for (var i = 0; i < encodings.length; i++) {\n totalWidth += encodings[i].width;\n }\n\n return totalWidth;\n}\n\nfunction getMaximumHeightOfEncodings(encodings) {\n var maxHeight = 0;\n\n for (var i = 0; i < encodings.length; i++) {\n if (encodings[i].height > maxHeight) {\n maxHeight = encodings[i].height;\n }\n }\n\n return maxHeight;\n}\n\nfunction messureText(string, options, context) {\n var ctx;\n\n if (context) {\n ctx = context;\n } else if (typeof document !== \"undefined\") {\n ctx = document.createElement(\"canvas\").getContext(\"2d\");\n } else {\n // If the text cannot be messured we will return 0.\n // This will make some barcode with big text render incorrectly\n return 0;\n }\n\n ctx.font = options.fontOptions + \" \" + options.fontSize + \"px \" + options.font; // Calculate the width of the encoding\n\n var measureTextResult = ctx.measureText(string);\n\n if (!measureTextResult) {\n // Some implementations don't implement measureText and return undefined.\n // If the text cannot be measured we will return 0.\n // This will make some barcode with big text render incorrectly\n return 0;\n }\n\n var size = measureTextResult.width;\n return size;\n}\n\nexports.getMaximumHeightOfEncodings = getMaximumHeightOfEncodings;\nexports.getEncodingHeight = getEncodingHeight;\nexports.getBarcodePadding = getBarcodePadding;\nexports.calculateEncodingAttributes = calculateEncodingAttributes;\nexports.getTotalWidthOfEncodings = getTotalWidthOfEncodings;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _merge = require(\"../help/merge.js\");\n\nvar _merge2 = _interopRequireDefault(_merge);\n\nvar _shared = require(\"./shared.js\");\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nvar svgns = \"http://www.w3.org/2000/svg\";\n\nvar SVGRenderer = function () {\n function SVGRenderer(svg, encodings, options) {\n _classCallCheck(this, SVGRenderer);\n\n this.svg = svg;\n this.encodings = encodings;\n this.options = options;\n this.document = options.xmlDocument || document;\n }\n\n _createClass(SVGRenderer, [{\n key: \"render\",\n value: function render() {\n var currentX = this.options.marginLeft;\n this.prepareSVG();\n\n for (var i = 0; i < this.encodings.length; i++) {\n var encoding = this.encodings[i];\n var encodingOptions = (0, _merge2.default)(this.options, encoding.options);\n var group = this.createGroup(currentX, encodingOptions.marginTop, this.svg);\n this.setGroupOptions(group, encodingOptions);\n this.drawSvgBarcode(group, encodingOptions, encoding);\n this.drawSVGText(group, encodingOptions, encoding);\n currentX += encoding.width;\n }\n }\n }, {\n key: \"prepareSVG\",\n value: function prepareSVG() {\n // Clear the SVG\n while (this.svg.firstChild) {\n this.svg.removeChild(this.svg.firstChild);\n }\n\n (0, _shared.calculateEncodingAttributes)(this.encodings, this.options);\n var totalWidth = (0, _shared.getTotalWidthOfEncodings)(this.encodings);\n var maxHeight = (0, _shared.getMaximumHeightOfEncodings)(this.encodings);\n var width = totalWidth + this.options.marginLeft + this.options.marginRight;\n this.setSvgAttributes(width, maxHeight);\n\n if (this.options.background) {\n this.drawRect(0, 0, width, maxHeight, this.svg).setAttribute(\"style\", \"fill:\" + this.options.background + \";\");\n }\n }\n }, {\n key: \"drawSvgBarcode\",\n value: function drawSvgBarcode(parent, options, encoding) {\n var binary = encoding.data; // Creates the barcode out of the encoded binary\n\n var yFrom;\n\n if (options.textPosition == \"top\") {\n yFrom = options.fontSize + options.textMargin;\n } else {\n yFrom = 0;\n }\n\n var barWidth = 0;\n var x = 0;\n\n for (var b = 0; b < binary.length; b++) {\n x = b * options.width + encoding.barcodePadding;\n\n if (binary[b] === \"1\") {\n barWidth++;\n } else if (barWidth > 0) {\n this.drawRect(x - options.width * barWidth, yFrom, options.width * barWidth, options.height, parent);\n barWidth = 0;\n }\n } // Last draw is needed since the barcode ends with 1\n\n\n if (barWidth > 0) {\n this.drawRect(x - options.width * (barWidth - 1), yFrom, options.width * barWidth, options.height, parent);\n }\n }\n }, {\n key: \"drawSVGText\",\n value: function drawSVGText(parent, options, encoding) {\n var textElem = this.document.createElementNS(svgns, 'text'); // Draw the text if displayValue is set\n\n if (options.displayValue) {\n var x, y;\n textElem.setAttribute(\"style\", \"font:\" + options.fontOptions + \" \" + options.fontSize + \"px \" + options.font);\n\n if (options.textPosition == \"top\") {\n y = options.fontSize - options.textMargin;\n } else {\n y = options.height + options.textMargin + options.fontSize;\n } // Draw the text in the correct X depending on the textAlign option\n\n\n if (options.textAlign == \"left\" || encoding.barcodePadding > 0) {\n x = 0;\n textElem.setAttribute(\"text-anchor\", \"start\");\n } else if (options.textAlign == \"right\") {\n x = encoding.width - 1;\n textElem.setAttribute(\"text-anchor\", \"end\");\n } // In all other cases, center the text\n else {\n x = encoding.width / 2;\n textElem.setAttribute(\"text-anchor\", \"middle\");\n }\n\n textElem.setAttribute(\"x\", x);\n textElem.setAttribute(\"y\", y);\n textElem.appendChild(this.document.createTextNode(encoding.text));\n parent.appendChild(textElem);\n }\n }\n }, {\n key: \"setSvgAttributes\",\n value: function setSvgAttributes(width, height) {\n var svg = this.svg;\n svg.setAttribute(\"width\", width + \"px\");\n svg.setAttribute(\"height\", height + \"px\");\n svg.setAttribute(\"x\", \"0px\");\n svg.setAttribute(\"y\", \"0px\");\n svg.setAttribute(\"viewBox\", \"0 0 \" + width + \" \" + height);\n svg.setAttribute(\"xmlns\", svgns);\n svg.setAttribute(\"version\", \"1.1\");\n svg.setAttribute(\"style\", \"transform: translate(0,0)\");\n }\n }, {\n key: \"createGroup\",\n value: function createGroup(x, y, parent) {\n var group = this.document.createElementNS(svgns, 'g');\n group.setAttribute(\"transform\", \"translate(\" + x + \", \" + y + \")\");\n parent.appendChild(group);\n return group;\n }\n }, {\n key: \"setGroupOptions\",\n value: function setGroupOptions(group, options) {\n group.setAttribute(\"style\", \"fill:\" + options.lineColor + \";\");\n }\n }, {\n key: \"drawRect\",\n value: function drawRect(x, y, width, height, parent) {\n var rect = this.document.createElementNS(svgns, 'rect');\n rect.setAttribute(\"x\", x);\n rect.setAttribute(\"y\", y);\n rect.setAttribute(\"width\", width);\n rect.setAttribute(\"height\", height);\n parent.appendChild(rect);\n return rect;\n }\n }]);\n\n return SVGRenderer;\n}();\n\nexports.default = SVGRenderer;","\"use strict\";\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _jsbarcode = _interopRequireDefault(require(\"jsbarcode\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\n\nfunction _typeof(obj) {\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return _assertThisInitialized(self);\n}\n\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\n\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nvar getDOMNode; // Super naive semver detection but it's good enough. We support 0.12, 0.13\n// which both have getDOMNode on the ref. 0.14 and 15 make the DOM node the ref.\n\nvar version = _react[\"default\"].version.split(/[.-]/);\n\nif (version[0] === '0' && (version[1] === '13' || version[1] === '12')) {\n getDOMNode = function getDOMNode(ref) {\n return ref.getDOMNode();\n };\n} else {\n getDOMNode = function getDOMNode(ref) {\n return ref;\n };\n}\n\nvar Barcode = /*#__PURE__*/function (_React$Component) {\n _inherits(Barcode, _React$Component);\n\n function Barcode(props) {\n var _this;\n\n _classCallCheck(this, Barcode);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(Barcode).call(this, props));\n _this.renderElementRef = _react[\"default\"].createRef();\n _this.update = _this.update.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(Barcode, [{\n key: \"shouldComponentUpdate\",\n value: function shouldComponentUpdate(nextProps) {\n var _this2 = this;\n\n return Object.keys(Barcode.propTypes).some(function (k) {\n return _this2.props[k] !== nextProps[k];\n });\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.update();\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate() {\n this.update();\n }\n }, {\n key: \"update\",\n value: function update() {\n var renderElement = getDOMNode(this.renderElementRef.current);\n\n try {\n new _jsbarcode[\"default\"](renderElement, this.props.value, Object.assign({}, this.props));\n } catch (e) {\n // prevent stop the parent process\n window.console.error(e);\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n if (this.props.renderer === 'svg') {\n return _react[\"default\"].createElement(\"svg\", {\n ref: this.renderElementRef\n });\n } else if (this.props.renderer === 'canvas') {\n return _react[\"default\"].createElement(\"canvas\", {\n ref: this.renderElementRef\n });\n } else if (this.props.renderer === 'img') {\n return _react[\"default\"].createElement(\"img\", {\n ref: this.renderElementRef\n });\n }\n }\n }]);\n\n return Barcode;\n}(_react[\"default\"].Component);\n\nBarcode.propTypes = {\n value: _propTypes[\"default\"].string.isRequired,\n renderer: _propTypes[\"default\"].string,\n format: _propTypes[\"default\"].string,\n width: _propTypes[\"default\"].number,\n height: _propTypes[\"default\"].number,\n displayValue: _propTypes[\"default\"].bool,\n fontOptions: _propTypes[\"default\"].string,\n font: _propTypes[\"default\"].string,\n textAlign: _propTypes[\"default\"].string,\n textPosition: _propTypes[\"default\"].string,\n textMargin: _propTypes[\"default\"].number,\n fontSize: _propTypes[\"default\"].number,\n background: _propTypes[\"default\"].string,\n lineColor: _propTypes[\"default\"].string,\n margin: _propTypes[\"default\"].number,\n marginTop: _propTypes[\"default\"].number,\n marginBottom: _propTypes[\"default\"].number,\n marginLeft: _propTypes[\"default\"].number,\n marginRight: _propTypes[\"default\"].number\n};\nBarcode.defaultProps = {\n format: 'CODE128',\n renderer: 'svg',\n width: 2,\n height: 100,\n displayValue: true,\n fontOptions: '',\n font: 'monospace',\n textAlign: 'center',\n textPosition: 'bottom',\n textMargin: 2,\n fontSize: 20,\n background: '#ffffff',\n lineColor: '#000000',\n margin: 10\n};\nmodule.exports = Barcode;","'use strict';\nvar $ = require('../internals/export');\nvar flattenIntoArray = require('../internals/flatten-into-array');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar arraySpeciesCreate = require('../internals/array-species-create');\n\n// `Array.prototype.flat` method\n// https://tc39.es/ecma262/#sec-array.prototype.flat\n$({ target: 'Array', proto: true }, {\n flat: function flat(/* depthArg = 1 */) {\n var depthArg = arguments.length ? arguments[0] : undefined;\n var O = toObject(this);\n var sourceLen = lengthOfArrayLike(O);\n var A = arraySpeciesCreate(O, 0);\n A.length = flattenIntoArray(A, O, O, sourceLen, 0, depthArg === undefined ? 1 : toIntegerOrInfinity(depthArg));\n return A;\n }\n});\n","// this method was added to unscopables after implementation\n// in popular engines, so it's moved to a separate module\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('flat');\n"],"names":["_barcodes2","_interopRequireDefault","_merge2","_linearizeEncodings2","_fixOptions2","_getRenderProperties2","_optionsFromStrings2","_ErrorHandler2","_exceptions","_defaults2","obj","__esModule","default","API","JsBarcode","element","text","options","api","Error","_renderProperties","_encodings","_options","_errorHandler","format","autoSelectBarcode","render","name","getModule","hasOwnProperty","registerBarcode","barcodes","prototype","toUpperCase","toLowerCase","this","wrapBarcodeCall","undefined","newOptions","Encoder","encoded","encode","push","encoder","valid","InvalidInputException","constructor","i","length","Object","keys","renderProperties","encodings","Renderer","renderer","afterRender","blank","size","zeroes","Array","join","data","init","renderProperty","isArray","value","NoElementException","_defaults","window","jQuery","fn","content","elementArray","each","module","exports","defineProperty","Barcode","instance","Constructor","TypeError","_classCallCheck","_createClass","defineProperties","target","props","descriptor","enumerable","configurable","writable","key","protoProps","staticProps","_Barcode2","_Barcode3","_constants","CODE128","_Barcode","_this","self","call","ReferenceError","_possibleConstructorReturn","__proto__","getPrototypeOf","substring","bytes","split","map","char","charCodeAt","subClass","superClass","create","setPrototypeOf","_inherits","test","startIndex","shift","startSet","SET_BY_CODE","RangeError","shouldEncodeAsEan128","unshift","FNC1","encodingResult","next","replace","getBar","result","checksum","MODULO","STOP","isEAN128","ean128","index","BARS","toString","set","SET_A","charCode","SET_B","pos","nextCode","nextSet","SWAP","SHIFT","correctIndex","weight","_CODE2","_CODE3","CODE128A","_CODE","string","A_START_CHAR","RegExp","A_CHARS","CODE128B","B_START_CHAR","B_CHARS","CODE128C","C_START_CHAR","C_CHARS","_auto2","CODE128AUTO","matchSetALength","match","matchSetBLength","matchSetC","autoSelectFromAB","isA","ranges","untilC","String","fromCharCode","autoSelectFromC","chars","cMatch","newString","_SET_BY_CODE","_defineProperty","SET_C","START_A","START_B","START_C","_CODE128_AUTO2","_CODE128A2","_CODE128B2","_CODE128C2","CODE39","mod43","characterValue","characters","getCharacter","mod43checksum","getEncoding","search","character","getBinary","indexOf","_encoder2","EAN","fontSize","flat","width","guardHeight","height","textMargin","encodeFlat","encodeGuarded","from","to","substr","structure","textOptions","guardOptions","SIDE_BIN","leftEncode","leftText","MIDDLE_BIN","rightEncode","rightText","_get","get","object","property","receiver","Function","desc","getOwnPropertyDescriptor","parent","getter","_EAN2","_EAN3","number","n","reduce","sum","a","idx","EAN13","_EAN","lastChar","EAN13_STRUCTURE","displayValue","textAlign","EAN2","EAN2_STRUCTURE","parseInt","EAN5","EAN5_STRUCTURE","EAN8","UPC","flatEncoding","guardedEncoding","_UPC","EXPANSIONS","PARITIES","UPCE","isValid","middleDigits","upcA","expandToUPCA","encodeMiddleDigits","numberSystem","checkDigit","parity","lastUpcE","expansion","digitIndex","c","BINARIES","separator","val","last","_EAN4","_EAN6","_EAN8","_UPC2","_UPCE2","GenericBarcode","ITF","apply","arguments","_this2","pair","encodePair","START_BIN","END_BIN","second","first","_ITF2","_ITF3","res","num","Math","ceil","ITF14","_ITF","_ITF4","MSI","ret","bin","addZeroes","b","_MSI2","_MSI3","_checksums","MSI10","_MSI","mod10","MSI1010","MSI11","mod11","MSI1110","floor","weights","_MSI4","_MSI6","_MSI8","_MSI10","codabar","getEncodings","charAt","_EAN_UPC","_pharmacode","_codabar","_GenericBarcode","pharmacode","z","isNaN","slice","ErrorHandler","e","message","func","handleCatch","_Error","symbology","input","InvalidElementException","_Error2","_Error3","_this3","marginTop","margin","marginBottom","marginRight","marginLeft","hasAttribute","getAttribute","_typeof","Symbol","iterator","_getOptionsFromElement2","_renderers2","getRenderProperties","selector","document","querySelectorAll","returnArray","querySelectedRenderProperties","HTMLCanvasElement","HTMLImageElement","imgElement","canvas","createElement","CanvasRenderer","setAttribute","toDataURL","nodeName","SVGElement","SVGRenderer","getContext","ObjectRenderer","linearEncodings","nextLevel","_extends","assign","source","old","replaceObj","intOptions","intOption","defaults","fontOptions","font","textPosition","background","lineColor","_merge","_shared","prepareCanvas","encodingOptions","drawCanvasBarcode","drawCanvasText","moveCanvasDrawing","restoreCanvas","ctx","save","calculateEncodingAttributes","totalWidth","getTotalWidthOfEncodings","maxHeight","getMaximumHeightOfEncodings","clearRect","fillStyle","fillRect","translate","encoding","yFrom","binary","x","barcodePadding","y","fillText","restore","_canvas2","_svg2","_object2","getBarcodePadding","getEncodingHeight","textWidth","barcodeWidth","messureText","context","measureTextResult","measureText","barcodeOptions","max","svgns","svg","xmlDocument","currentX","prepareSVG","group","createGroup","setGroupOptions","drawSvgBarcode","drawSVGText","firstChild","removeChild","setSvgAttributes","drawRect","barWidth","textElem","createElementNS","appendChild","createTextNode","rect","getDOMNode","_react","_jsbarcode","_propTypes","_defineProperties","_getPrototypeOf","o","_assertThisInitialized","_setPrototypeOf","p","version","ref","_React$Component","renderElementRef","createRef","update","bind","nextProps","propTypes","some","k","renderElement","current","console","error","Component","isRequired","bool","defaultProps","$","flattenIntoArray","toObject","lengthOfArrayLike","toIntegerOrInfinity","arraySpeciesCreate","proto","depthArg","O","sourceLen","A","addToUnscopables"],"sourceRoot":""}