(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("ELEMENT")); else if(typeof define === 'function' && define.amd) define(["ELEMENT"], factory); else if(typeof exports === 'object') exports["eap"] = factory(require("ELEMENT")); else root["eap"] = factory(root["ELEMENT"]); })((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__5f72__) { return /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = "fb15"); /******/ }) /************************************************************************/ /******/ ({ /***/ "00b4": /***/ (function(module, exports, __webpack_require__) { "use strict"; // TODO: Remove from `core-js@4` since it's moved to entry points __webpack_require__("ac1f"); var $ = __webpack_require__("23e7"); var call = __webpack_require__("c65b"); var isCallable = __webpack_require__("1626"); var anObject = __webpack_require__("825a"); var toString = __webpack_require__("577e"); var DELEGATES_TO_EXEC = function () { var execCalled = false; var re = /[ac]/; re.exec = function () { execCalled = true; return /./.exec.apply(this, arguments); }; return re.test('abc') === true && execCalled; }(); var nativeTest = /./.test; // `RegExp.prototype.test` method // https://tc39.es/ecma262/#sec-regexp.prototype.test $({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, { test: function (S) { var R = anObject(this); var string = toString(S); var exec = R.exec; if (!isCallable(exec)) return call(nativeTest, R, string); var result = call(exec, R, string); if (result === null) return false; anObject(result); return true; } }); /***/ }), /***/ "00ee": /***/ (function(module, exports, __webpack_require__) { var wellKnownSymbol = __webpack_require__("b622"); var TO_STRING_TAG = wellKnownSymbol('toStringTag'); var test = {}; test[TO_STRING_TAG] = 'z'; module.exports = String(test) === '[object z]'; /***/ }), /***/ "00fd": /***/ (function(module, exports, __webpack_require__) { var Symbol = __webpack_require__("9e69"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ var nativeObjectToString = objectProto.toString; /** Built-in value references. */ var symToStringTag = Symbol ? Symbol.toStringTag : undefined; /** * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values. * * @private * @param {*} value The value to query. * @returns {string} Returns the raw `toStringTag`. */ function getRawTag(value) { var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag]; try { value[symToStringTag] = undefined; var unmasked = true; } catch (e) {} var result = nativeObjectToString.call(value); if (unmasked) { if (isOwn) { value[symToStringTag] = tag; } else { delete value[symToStringTag]; } } return result; } module.exports = getRawTag; /***/ }), /***/ "01b4": /***/ (function(module, exports) { var Queue = function () { this.head = null; this.tail = null; }; Queue.prototype = { add: function (item) { var entry = { item: item, next: null }; var tail = this.tail; if (tail) tail.next = entry; else this.head = entry; this.tail = entry; }, get: function () { var entry = this.head; if (entry) { var next = this.head = entry.next; if (next === null) this.tail = null; return entry.item; } } }; module.exports = Queue; /***/ }), /***/ "0366": /***/ (function(module, exports, __webpack_require__) { var uncurryThis = __webpack_require__("4625"); var aCallable = __webpack_require__("59ed"); var NATIVE_BIND = __webpack_require__("40d5"); var bind = uncurryThis(uncurryThis.bind); // optional / simple context binding module.exports = function (fn, that) { aCallable(fn); return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) { return fn.apply(that, arguments); }; }; /***/ }), /***/ "03dd": /***/ (function(module, exports, __webpack_require__) { var isPrototype = __webpack_require__("eac5"), nativeKeys = __webpack_require__("57a5"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * The base implementation of `_.keys` which doesn't treat sparse arrays as dense. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function baseKeys(object) { if (!isPrototype(object)) { return nativeKeys(object); } var result = []; for (var key in Object(object)) { if (hasOwnProperty.call(object, key) && key != 'constructor') { result.push(key); } } return result; } module.exports = baseKeys; /***/ }), /***/ "04f8": /***/ (function(module, exports, __webpack_require__) { /* eslint-disable es/no-symbol -- required for testing */ var V8_VERSION = __webpack_require__("2d00"); var fails = __webpack_require__("d039"); // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing module.exports = !!Object.getOwnPropertySymbols && !fails(function () { var symbol = Symbol(); // Chrome 38 Symbol has incorrect toString conversion // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances return !String(symbol) || !(Object(symbol) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances !Symbol.sham && V8_VERSION && V8_VERSION < 41; }); /***/ }), /***/ "0538": /***/ (function(module, exports, __webpack_require__) { "use strict"; var uncurryThis = __webpack_require__("e330"); var aCallable = __webpack_require__("59ed"); var isObject = __webpack_require__("861d"); var hasOwn = __webpack_require__("1a2d"); var arraySlice = __webpack_require__("f36a"); var NATIVE_BIND = __webpack_require__("40d5"); var $Function = Function; var concat = uncurryThis([].concat); var join = uncurryThis([].join); var factories = {}; var construct = function (C, argsLength, args) { if (!hasOwn(factories, argsLength)) { for (var list = [], i = 0; i < argsLength; i++) list[i] = 'a[' + i + ']'; factories[argsLength] = $Function('C,a', 'return new C(' + join(list, ',') + ')'); } return factories[argsLength](C, args); }; // `Function.prototype.bind` method implementation // https://tc39.es/ecma262/#sec-function.prototype.bind module.exports = NATIVE_BIND ? $Function.bind : function bind(that /* , ...args */) { var F = aCallable(this); var Prototype = F.prototype; var partArgs = arraySlice(arguments, 1); var boundFunction = function bound(/* args... */) { var args = concat(partArgs, arraySlice(arguments)); return this instanceof boundFunction ? construct(F, args.length, args) : F.apply(that, args); }; if (isObject(Prototype)) boundFunction.prototype = Prototype; return boundFunction; }; /***/ }), /***/ "057f": /***/ (function(module, exports, __webpack_require__) { /* eslint-disable es/no-object-getownpropertynames -- safe */ var classof = __webpack_require__("c6b6"); var toIndexedObject = __webpack_require__("fc6a"); var $getOwnPropertyNames = __webpack_require__("241c").f; var arraySlice = __webpack_require__("4dae"); var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : []; var getWindowNames = function (it) { try { return $getOwnPropertyNames(it); } catch (error) { return arraySlice(windowNames); } }; // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window module.exports.f = function getOwnPropertyNames(it) { return windowNames && classof(it) == 'Window' ? getWindowNames(it) : $getOwnPropertyNames(toIndexedObject(it)); }; /***/ }), /***/ "0644": /***/ (function(module, exports, __webpack_require__) { var baseClone = __webpack_require__("3818"); /** Used to compose bitmasks for cloning. */ var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4; /** * This method is like `_.clone` except that it recursively clones `value`. * * @static * @memberOf _ * @since 1.0.0 * @category Lang * @param {*} value The value to recursively clone. * @returns {*} Returns the deep cloned value. * @see _.clone * @example * * var objects = [{ 'a': 1 }, { 'b': 2 }]; * * var deep = _.cloneDeep(objects); * console.log(deep[0] === objects[0]); * // => false */ function cloneDeep(value) { return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG); } module.exports = cloneDeep; /***/ }), /***/ "06cf": /***/ (function(module, exports, __webpack_require__) { var DESCRIPTORS = __webpack_require__("83ab"); var call = __webpack_require__("c65b"); var propertyIsEnumerableModule = __webpack_require__("d1e7"); var createPropertyDescriptor = __webpack_require__("5c6c"); var toIndexedObject = __webpack_require__("fc6a"); var toPropertyKey = __webpack_require__("a04b"); var hasOwn = __webpack_require__("1a2d"); var IE8_DOM_DEFINE = __webpack_require__("0cfb"); // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; // `Object.getOwnPropertyDescriptor` method // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) { O = toIndexedObject(O); P = toPropertyKey(P); if (IE8_DOM_DEFINE) try { return $getOwnPropertyDescriptor(O, P); } catch (error) { /* empty */ } if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]); }; /***/ }), /***/ "07c7": /***/ (function(module, exports) { /** * This method returns `false`. * * @static * @memberOf _ * @since 4.13.0 * @category Util * @returns {boolean} Returns `false`. * @example * * _.times(2, _.stubFalse); * // => [false, false] */ function stubFalse() { return false; } module.exports = stubFalse; /***/ }), /***/ "07df": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _ITF2 = __webpack_require__("3c7c"); var _ITF3 = _interopRequireDefault(_ITF2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Calculate the checksum digit var checksum = function checksum(data) { var res = data.substr(0, 13).split('').map(function (num) { return parseInt(num, 10); }).reduce(function (sum, n, idx) { return sum + n * (3 - idx % 2 * 2); }, 0); return Math.ceil(res / 10) * 10 - res; }; var ITF14 = function (_ITF) { _inherits(ITF14, _ITF); function ITF14(data, options) { _classCallCheck(this, ITF14); // Add checksum if it does not exist if (data.search(/^[0-9]{13}$/) !== -1) { data += checksum(data); } return _possibleConstructorReturn(this, (ITF14.__proto__ || Object.getPrototypeOf(ITF14)).call(this, data, options)); } _createClass(ITF14, [{ key: 'valid', value: function valid() { return this.data.search(/^[0-9]{14}$/) !== -1 && +this.data[13] === checksum(this.data); } }]); return ITF14; }(_ITF3.default); exports.default = ITF14; /***/ }), /***/ "07fa": /***/ (function(module, exports, __webpack_require__) { var toLength = __webpack_require__("50c4"); // `LengthOfArrayLike` abstract operation // https://tc39.es/ecma262/#sec-lengthofarraylike module.exports = function (obj) { return toLength(obj.length); }; /***/ }), /***/ "083a": /***/ (function(module, exports, __webpack_require__) { "use strict"; var tryToString = __webpack_require__("0d51"); var $TypeError = TypeError; module.exports = function (O, P) { if (!delete O[P]) throw $TypeError('Cannot delete property ' + tryToString(P) + ' of ' + tryToString(O)); }; /***/ }), /***/ "087d": /***/ (function(module, exports) { /** * Appends the elements of `values` to `array`. * * @private * @param {Array} array The array to modify. * @param {Array} values The values to append. * @returns {Array} Returns `array`. */ function arrayPush(array, values) { var index = -1, length = values.length, offset = array.length; while (++index < length) { array[offset + index] = values[index]; } return array; } module.exports = arrayPush; /***/ }), /***/ "0a06": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); var buildURL = __webpack_require__("30b5"); var InterceptorManager = __webpack_require__("f6b4"); var dispatchRequest = __webpack_require__("5270"); var mergeConfig = __webpack_require__("4a7b"); /** * Create a new instance of Axios * * @param {Object} instanceConfig The default config for the instance */ function Axios(instanceConfig) { this.defaults = instanceConfig; this.interceptors = { request: new InterceptorManager(), response: new InterceptorManager() }; } /** * Dispatch a request * * @param {Object} config The config specific for this request (merged with this.defaults) */ Axios.prototype.request = function request(config) { /*eslint no-param-reassign:0*/ // Allow for axios('example/url'[, config]) a la fetch API if (typeof config === 'string') { config = arguments[1] || {}; config.url = arguments[0]; } else { config = config || {}; } config = mergeConfig(this.defaults, config); // Set config.method if (config.method) { config.method = config.method.toLowerCase(); } else if (this.defaults.method) { config.method = this.defaults.method.toLowerCase(); } else { config.method = 'get'; } // Hook up interceptors middleware var chain = [dispatchRequest, undefined]; var promise = Promise.resolve(config); this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { chain.unshift(interceptor.fulfilled, interceptor.rejected); }); this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { chain.push(interceptor.fulfilled, interceptor.rejected); }); while (chain.length) { promise = promise.then(chain.shift(), chain.shift()); } return promise; }; Axios.prototype.getUri = function getUri(config) { config = mergeConfig(this.defaults, config); return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, ''); }; // Provide aliases for supported request methods utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) { /*eslint func-names:0*/ Axios.prototype[method] = function(url, config) { return this.request(mergeConfig(config || {}, { method: method, url: url })); }; }); utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { /*eslint func-names:0*/ Axios.prototype[method] = function(url, data, config) { return this.request(mergeConfig(config || {}, { method: method, url: url, data: data })); }; }); module.exports = Axios; /***/ }), /***/ "0b07": /***/ (function(module, exports, __webpack_require__) { var baseIsNative = __webpack_require__("34ac"), getValue = __webpack_require__("3698"); /** * Gets the native function at `key` of `object`. * * @private * @param {Object} object The object to query. * @param {string} key The key of the method to get. * @returns {*} Returns the function if it's native, else `undefined`. */ function getNative(object, key) { var value = getValue(object, key); return baseIsNative(value) ? value : undefined; } module.exports = getNative; /***/ }), /***/ "0b42": /***/ (function(module, exports, __webpack_require__) { var isArray = __webpack_require__("e8b5"); var isConstructor = __webpack_require__("68ee"); var isObject = __webpack_require__("861d"); var wellKnownSymbol = __webpack_require__("b622"); var SPECIES = wellKnownSymbol('species'); var $Array = Array; // a part of `ArraySpeciesCreate` abstract operation // https://tc39.es/ecma262/#sec-arrayspeciescreate module.exports = function (originalArray) { var C; if (isArray(originalArray)) { C = originalArray.constructor; // cross-realm fallback if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined; else if (isObject(C)) { C = C[SPECIES]; if (C === null) C = undefined; } } return C === undefined ? $Array : C; }; /***/ }), /***/ "0b43": /***/ (function(module, exports, __webpack_require__) { var NATIVE_SYMBOL = __webpack_require__("04f8"); /* eslint-disable es/no-symbol -- safe */ module.exports = NATIVE_SYMBOL && !!Symbol['for'] && !!Symbol.keyFor; /***/ }), /***/ "0cb2": /***/ (function(module, exports, __webpack_require__) { var uncurryThis = __webpack_require__("e330"); var toObject = __webpack_require__("7b0b"); var floor = Math.floor; var charAt = uncurryThis(''.charAt); var replace = uncurryThis(''.replace); var stringSlice = uncurryThis(''.slice); var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g; var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g; // `GetSubstitution` abstract operation // https://tc39.es/ecma262/#sec-getsubstitution module.exports = function (matched, str, position, captures, namedCaptures, replacement) { var tailPos = position + matched.length; var m = captures.length; var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED; if (namedCaptures !== undefined) { namedCaptures = toObject(namedCaptures); symbols = SUBSTITUTION_SYMBOLS; } return replace(replacement, symbols, function (match, ch) { var capture; switch (charAt(ch, 0)) { case '$': return '$'; case '&': return matched; case '`': return stringSlice(str, 0, position); case "'": return stringSlice(str, tailPos); case '<': capture = namedCaptures[stringSlice(ch, 1, -1)]; break; default: // \d\d? var n = +ch; if (n === 0) return match; if (n > m) { var f = floor(n / 10); if (f === 0) return match; if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1); return match; } capture = captures[n - 1]; } return capture === undefined ? '' : capture; }); }; /***/ }), /***/ "0cfb": /***/ (function(module, exports, __webpack_require__) { var DESCRIPTORS = __webpack_require__("83ab"); var fails = __webpack_require__("d039"); var createElement = __webpack_require__("cc12"); // Thanks to IE8 for its funny defineProperty module.exports = !DESCRIPTORS && !fails(function () { // eslint-disable-next-line es/no-object-defineproperty -- required for testing return Object.defineProperty(createElement('div'), 'a', { get: function () { return 7; } }).a != 7; }); /***/ }), /***/ "0d24": /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__("2b3e"), stubFalse = __webpack_require__("07c7"); /** Detect free variable `exports`. */ var freeExports = true && exports && !exports.nodeType && exports; /** Detect free variable `module`. */ var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; /** Detect the popular CommonJS extension `module.exports`. */ var moduleExports = freeModule && freeModule.exports === freeExports; /** Built-in value references. */ var Buffer = moduleExports ? root.Buffer : undefined; /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined; /** * Checks if `value` is a buffer. * * @static * @memberOf _ * @since 4.3.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`. * @example * * _.isBuffer(new Buffer(2)); * // => true * * _.isBuffer(new Uint8Array(2)); * // => false */ var isBuffer = nativeIsBuffer || stubFalse; module.exports = isBuffer; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("62e4")(module))) /***/ }), /***/ "0d26": /***/ (function(module, exports, __webpack_require__) { var uncurryThis = __webpack_require__("e330"); var $Error = Error; var replace = uncurryThis(''.replace); var TEST = (function (arg) { return String($Error(arg).stack); })('zxcasd'); var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/; var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST); module.exports = function (stack, dropEntries) { if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) { while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, ''); } return stack; }; /***/ }), /***/ "0d51": /***/ (function(module, exports) { var $String = String; module.exports = function (argument) { try { return $String(argument); } catch (error) { return 'Object'; } }; /***/ }), /***/ "0df6": /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Syntactic sugar for invoking a function and expanding an array for arguments. * * Common use case would be to use `Function.prototype.apply`. * * ```js * function f(x, y, z) {} * var args = [1, 2, 3]; * f.apply(null, args); * ``` * * With `spread` this example can be re-written. * * ```js * spread(function(x, y, z) {})([1, 2, 3]); * ``` * * @param {Function} callback * @returns {Function} */ module.exports = function spread(callback) { return function wrap(arr) { return callback.apply(null, arr); }; }; /***/ }), /***/ "0f0f": /***/ (function(module, exports, __webpack_require__) { var copyObject = __webpack_require__("8eeb"), keysIn = __webpack_require__("9934"); /** * The base implementation of `_.assignIn` without support for multiple sources * or `customizer` functions. * * @private * @param {Object} object The destination object. * @param {Object} source The source object. * @returns {Object} Returns `object`. */ function baseAssignIn(object, source) { return object && copyObject(source, keysIn(source), object); } module.exports = baseAssignIn; /***/ }), /***/ "100e": /***/ (function(module, exports, __webpack_require__) { var identity = __webpack_require__("cd9d"), overRest = __webpack_require__("2286"), setToString = __webpack_require__("c1c9"); /** * The base implementation of `_.rest` which doesn't validate or coerce arguments. * * @private * @param {Function} func The function to apply a rest parameter to. * @param {number} [start=func.length-1] The start position of the rest parameter. * @returns {Function} Returns the new function. */ function baseRest(func, start) { return setToString(overRest(func, start, identity), func + ''); } module.exports = baseRest; /***/ }), /***/ "1041": /***/ (function(module, exports, __webpack_require__) { var copyObject = __webpack_require__("8eeb"), getSymbolsIn = __webpack_require__("a029"); /** * Copies own and inherited symbols of `source` to `object`. * * @private * @param {Object} source The object to copy symbols from. * @param {Object} [object={}] The object to copy symbols to. * @returns {Object} Returns `object`. */ function copySymbolsIn(source, object) { return copyObject(source, getSymbolsIn(source), object); } module.exports = copySymbolsIn; /***/ }), /***/ "107c": /***/ (function(module, exports, __webpack_require__) { var fails = __webpack_require__("d039"); var global = __webpack_require__("da84"); // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError var $RegExp = global.RegExp; module.exports = fails(function () { var re = $RegExp('(?<a>b)', 'g'); return re.exec('b').groups.a !== 'b' || 'b'.replace(re, '$<a>c') !== 'bc'; }); /***/ }), /***/ "1148": /***/ (function(module, exports, __webpack_require__) { "use strict"; var toIntegerOrInfinity = __webpack_require__("5926"); var toString = __webpack_require__("577e"); var requireObjectCoercible = __webpack_require__("1d80"); var $RangeError = RangeError; // `String.prototype.repeat` method implementation // https://tc39.es/ecma262/#sec-string.prototype.repeat module.exports = function repeat(count) { var str = toString(requireObjectCoercible(this)); var result = ''; var n = toIntegerOrInfinity(count); if (n < 0 || n == Infinity) throw $RangeError('Wrong number of repetitions'); for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) result += str; return result; }; /***/ }), /***/ "124f": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation // https://en.wikipedia.org/wiki/MSI_Barcode#Character_set_and_binary_lookup var MSI = function (_Barcode) { _inherits(MSI, _Barcode); function MSI(data, options) { _classCallCheck(this, MSI); return _possibleConstructorReturn(this, (MSI.__proto__ || Object.getPrototypeOf(MSI)).call(this, data, options)); } _createClass(MSI, [{ key: "encode", value: function encode() { // Start bits var ret = "110"; for (var i = 0; i < this.data.length; i++) { // Convert the character to binary (always 4 binary digits) var digit = parseInt(this.data[i]); var bin = digit.toString(2); bin = addZeroes(bin, 4 - bin.length); // Add 100 for every zero and 110 for every 1 for (var b = 0; b < bin.length; b++) { ret += bin[b] == "0" ? "100" : "110"; } } // End bits ret += "1001"; return { data: ret, text: this.text }; } }, { key: "valid", value: function valid() { return this.data.search(/^[0-9]+$/) !== -1; } }]); return MSI; }(_Barcode3.default); function addZeroes(number, n) { for (var i = 0; i < n; i++) { number = "0" + number; } return number; } exports.default = MSI; /***/ }), /***/ "1276": /***/ (function(module, exports, __webpack_require__) { "use strict"; var apply = __webpack_require__("2ba4"); var call = __webpack_require__("c65b"); var uncurryThis = __webpack_require__("e330"); var fixRegExpWellKnownSymbolLogic = __webpack_require__("d784"); var anObject = __webpack_require__("825a"); var isNullOrUndefined = __webpack_require__("7234"); var isRegExp = __webpack_require__("44e7"); var requireObjectCoercible = __webpack_require__("1d80"); var speciesConstructor = __webpack_require__("4840"); var advanceStringIndex = __webpack_require__("8aa5"); var toLength = __webpack_require__("50c4"); var toString = __webpack_require__("577e"); var getMethod = __webpack_require__("dc4a"); var arraySlice = __webpack_require__("4dae"); var callRegExpExec = __webpack_require__("14c3"); var regexpExec = __webpack_require__("9263"); var stickyHelpers = __webpack_require__("9f7f"); var fails = __webpack_require__("d039"); var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y; var MAX_UINT32 = 0xFFFFFFFF; var min = Math.min; var $push = [].push; var exec = uncurryThis(/./.exec); var push = uncurryThis($push); var stringSlice = uncurryThis(''.slice); // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec // Weex JS has frozen built-in prototypes, so use try / catch wrapper var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () { // eslint-disable-next-line regexp/no-empty-group -- required for testing var re = /(?:)/; var originalExec = re.exec; re.exec = function () { return originalExec.apply(this, arguments); }; var result = 'ab'.split(re); return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b'; }); // @@split logic fixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNative) { var internalSplit; if ( 'abbc'.split(/(b)*/)[1] == 'c' || // eslint-disable-next-line regexp/no-empty-group -- required for testing 'test'.split(/(?:)/, -1).length != 4 || 'ab'.split(/(?:ab)*/).length != 2 || '.'.split(/(.?)(.?)/).length != 4 || // eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing '.'.split(/()()/).length > 1 || ''.split(/.?/).length ) { // based on es5-shim implementation, need to rework it internalSplit = function (separator, limit) { var string = toString(requireObjectCoercible(this)); var lim = limit === undefined ? MAX_UINT32 : limit >>> 0; if (lim === 0) return []; if (separator === undefined) return [string]; // If `separator` is not a regex, use native split if (!isRegExp(separator)) { return call(nativeSplit, string, separator, lim); } var output = []; var flags = (separator.ignoreCase ? 'i' : '') + (separator.multiline ? 'm' : '') + (separator.unicode ? 'u' : '') + (separator.sticky ? 'y' : ''); var lastLastIndex = 0; // Make `global` and avoid `lastIndex` issues by working with a copy var separatorCopy = new RegExp(separator.source, flags + 'g'); var match, lastIndex, lastLength; while (match = call(regexpExec, separatorCopy, string)) { lastIndex = separatorCopy.lastIndex; if (lastIndex > lastLastIndex) { push(output, stringSlice(string, lastLastIndex, match.index)); if (match.length > 1 && match.index < string.length) apply($push, output, arraySlice(match, 1)); lastLength = match[0].length; lastLastIndex = lastIndex; if (output.length >= lim) break; } if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop } if (lastLastIndex === string.length) { if (lastLength || !exec(separatorCopy, '')) push(output, ''); } else push(output, stringSlice(string, lastLastIndex)); return output.length > lim ? arraySlice(output, 0, lim) : output; }; // Chakra, V8 } else if ('0'.split(undefined, 0).length) { internalSplit = function (separator, limit) { return separator === undefined && limit === 0 ? [] : call(nativeSplit, this, separator, limit); }; } else internalSplit = nativeSplit; return [ // `String.prototype.split` method // https://tc39.es/ecma262/#sec-string.prototype.split function split(separator, limit) { var O = requireObjectCoercible(this); var splitter = isNullOrUndefined(separator) ? undefined : getMethod(separator, SPLIT); return splitter ? call(splitter, separator, O, limit) : call(internalSplit, toString(O), separator, limit); }, // `RegExp.prototype[@@split]` method // https://tc39.es/ecma262/#sec-regexp.prototype-@@split // // NOTE: This cannot be properly polyfilled in engines that don't support // the 'y' flag. function (string, limit) { var rx = anObject(this); var S = toString(string); var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit); if (res.done) return res.value; var C = speciesConstructor(rx, RegExp); var unicodeMatching = rx.unicode; var flags = (rx.ignoreCase ? 'i' : '') + (rx.multiline ? 'm' : '') + (rx.unicode ? 'u' : '') + (UNSUPPORTED_Y ? 'g' : 'y'); // ^(? + rx + ) is needed, in combination with some S slicing, to // simulate the 'y' flag. var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags); var lim = limit === undefined ? MAX_UINT32 : limit >>> 0; if (lim === 0) return []; if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : []; var p = 0; var q = 0; var A = []; while (q < S.length) { splitter.lastIndex = UNSUPPORTED_Y ? 0 : q; var z = callRegExpExec(splitter, UNSUPPORTED_Y ? stringSlice(S, q) : S); var e; if ( z === null || (e = min(toLength(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p ) { q = advanceStringIndex(S, q, unicodeMatching); } else { push(A, stringSlice(S, p, q)); if (A.length === lim) return A; for (var i = 1; i <= z.length - 1; i++) { push(A, z[i]); if (A.length === lim) return A; } q = p = e; } } push(A, stringSlice(S, p)); return A; } ]; }, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y); /***/ }), /***/ "1290": /***/ (function(module, exports) { /** * Checks if `value` is suitable for use as unique object key. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is suitable, else `false`. */ function isKeyable(value) { var type = typeof value; return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') ? (value !== '__proto__') : (value === null); } module.exports = isKeyable; /***/ }), /***/ "129f": /***/ (function(module, exports) { // `SameValue` abstract operation // https://tc39.es/ecma262/#sec-samevalue // eslint-disable-next-line es/no-object-is -- safe module.exports = Object.is || function is(x, y) { // eslint-disable-next-line no-self-compare -- NaN check return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y; }; /***/ }), /***/ "1310": /***/ (function(module, exports) { /** * Checks if `value` is object-like. A value is object-like if it's not `null` * and has a `typeof` result of "object". * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is object-like, else `false`. * @example * * _.isObjectLike({}); * // => true * * _.isObjectLike([1, 2, 3]); * // => true * * _.isObjectLike(_.noop); * // => false * * _.isObjectLike(null); * // => false */ function isObjectLike(value) { return value != null && typeof value == 'object'; } module.exports = isObjectLike; /***/ }), /***/ "131a": /***/ (function(module, exports, __webpack_require__) { var $ = __webpack_require__("23e7"); var setPrototypeOf = __webpack_require__("d2bb"); // `Object.setPrototypeOf` method // https://tc39.es/ecma262/#sec-object.setprototypeof $({ target: 'Object', stat: true }, { setPrototypeOf: setPrototypeOf }); /***/ }), /***/ "1368": /***/ (function(module, exports, __webpack_require__) { var coreJsData = __webpack_require__("da03"); /** Used to detect methods masquerading as native. */ var maskSrcKey = (function() { var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); return uid ? ('Symbol(src)_1.' + uid) : ''; }()); /** * Checks if `func` has its source masked. * * @private * @param {Function} func The function to check. * @returns {boolean} Returns `true` if `func` is masked, else `false`. */ function isMasked(func) { return !!maskSrcKey && (maskSrcKey in func); } module.exports = isMasked; /***/ }), /***/ "13d2": /***/ (function(module, exports, __webpack_require__) { var uncurryThis = __webpack_require__("e330"); var fails = __webpack_require__("d039"); var isCallable = __webpack_require__("1626"); var hasOwn = __webpack_require__("1a2d"); var DESCRIPTORS = __webpack_require__("83ab"); var CONFIGURABLE_FUNCTION_NAME = __webpack_require__("5e77").CONFIGURABLE; var inspectSource = __webpack_require__("8925"); var InternalStateModule = __webpack_require__("69f3"); var enforceInternalState = InternalStateModule.enforce; var getInternalState = InternalStateModule.get; var $String = String; // eslint-disable-next-line es/no-object-defineproperty -- safe var defineProperty = Object.defineProperty; var stringSlice = uncurryThis(''.slice); var replace = uncurryThis(''.replace); var join = uncurryThis([].join); var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () { return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8; }); var TEMPLATE = String(String).split('String'); var makeBuiltIn = module.exports = function (value, name, options) { if (stringSlice($String(name), 0, 7) === 'Symbol(') { name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']'; } if (options && options.getter) name = 'get ' + name; if (options && options.setter) name = 'set ' + name; if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) { if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true }); else value.name = name; } if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) { defineProperty(value, 'length', { value: options.arity }); } try { if (options && hasOwn(options, 'constructor') && options.constructor) { if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false }); // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable } else if (value.prototype) value.prototype = undefined; } catch (error) { /* empty */ } var state = enforceInternalState(value); if (!hasOwn(state, 'source')) { state.source = join(TEMPLATE, typeof name == 'string' ? name : ''); } return value; }; // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative // eslint-disable-next-line no-extend-native -- required Function.prototype.toString = makeBuiltIn(function toString() { return isCallable(this) && getInternalState(this).source || inspectSource(this); }, 'toString'); /***/ }), /***/ "14c3": /***/ (function(module, exports, __webpack_require__) { var call = __webpack_require__("c65b"); var anObject = __webpack_require__("825a"); var isCallable = __webpack_require__("1626"); var classof = __webpack_require__("c6b6"); var regexpExec = __webpack_require__("9263"); var $TypeError = TypeError; // `RegExpExec` abstract operation // https://tc39.es/ecma262/#sec-regexpexec module.exports = function (R, S) { var exec = R.exec; if (isCallable(exec)) { var result = call(exec, R, S); if (result !== null) anObject(result); return result; } if (classof(R) === 'RegExp') return call(regexpExec, R, S); throw $TypeError('RegExp#exec called on incompatible receiver'); }; /***/ }), /***/ "14d9": /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__("23e7"); var toObject = __webpack_require__("7b0b"); var lengthOfArrayLike = __webpack_require__("07fa"); var setArrayLength = __webpack_require__("3a34"); var doesNotExceedSafeInteger = __webpack_require__("3511"); var fails = __webpack_require__("d039"); var INCORRECT_TO_LENGTH = fails(function () { return [].push.call({ length: 0x100000000 }, 1) !== 4294967297; }); // V8 and Safari <= 15.4, FF < 23 throws InternalError // https://bugs.chromium.org/p/v8/issues/detail?id=12681 var properErrorOnNonWritableLength = function () { try { // eslint-disable-next-line es/no-object-defineproperty -- safe Object.defineProperty([], 'length', { writable: false }).push(); } catch (error) { return error instanceof TypeError; } }; var FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength(); // `Array.prototype.push` method // https://tc39.es/ecma262/#sec-array.prototype.push $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, { // eslint-disable-next-line no-unused-vars -- required for `.length` push: function push(item) { var O = toObject(this); var len = lengthOfArrayLike(O); var argCount = arguments.length; doesNotExceedSafeInteger(len + argCount); for (var i = 0; i < argCount; i++) { O[len] = arguments[i]; len++; } setArrayLength(O, len); return len; } }); /***/ }), /***/ "14e5": /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__("23e7"); var call = __webpack_require__("c65b"); var aCallable = __webpack_require__("59ed"); var newPromiseCapabilityModule = __webpack_require__("f069"); var perform = __webpack_require__("e667"); var iterate = __webpack_require__("2266"); var PROMISE_STATICS_INCORRECT_ITERATION = __webpack_require__("5eed"); // `Promise.all` method // https://tc39.es/ecma262/#sec-promise.all $({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, { all: function all(iterable) { var C = this; var capability = newPromiseCapabilityModule.f(C); var resolve = capability.resolve; var reject = capability.reject; var result = perform(function () { var $promiseResolve = aCallable(C.resolve); var values = []; var counter = 0; var remaining = 1; iterate(iterable, function (promise) { var index = counter++; var alreadyCalled = false; remaining++; call($promiseResolve, C, promise).then(function (value) { if (alreadyCalled) return; alreadyCalled = true; values[index] = value; --remaining || resolve(values); }, reject); }); --remaining || resolve(values); }); if (result.error) reject(result.value); return capability.promise; } }); /***/ }), /***/ "159b": /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__("da84"); var DOMIterables = __webpack_require__("fdbc"); var DOMTokenListPrototype = __webpack_require__("785a"); var forEach = __webpack_require__("17c2"); var createNonEnumerableProperty = __webpack_require__("9112"); var handlePrototype = function (CollectionPrototype) { // some Chrome versions have non-configurable methods on DOMTokenList if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try { createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach); } catch (error) { CollectionPrototype.forEach = forEach; } }; for (var COLLECTION_NAME in DOMIterables) { if (DOMIterables[COLLECTION_NAME]) { handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype); } } handlePrototype(DOMTokenListPrototype); /***/ }), /***/ "1626": /***/ (function(module, exports, __webpack_require__) { var $documentAll = __webpack_require__("8ea1"); var documentAll = $documentAll.all; // `IsCallable` abstract operation // https://tc39.es/ecma262/#sec-iscallable module.exports = $documentAll.IS_HTMLDDA ? function (argument) { return typeof argument == 'function' || argument === documentAll; } : function (argument) { return typeof argument == 'function'; }; /***/ }), /***/ "17c2": /***/ (function(module, exports, __webpack_require__) { "use strict"; var $forEach = __webpack_require__("b727").forEach; var arrayMethodIsStrict = __webpack_require__("a640"); var STRICT_METHOD = arrayMethodIsStrict('forEach'); // `Array.prototype.forEach` method implementation // https://tc39.es/ecma262/#sec-array.prototype.foreach module.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) { return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); // eslint-disable-next-line es/no-array-prototype-foreach -- safe } : [].forEach; /***/ }), /***/ "18d8": /***/ (function(module, exports, __webpack_require__) { var memoizeCapped = __webpack_require__("234d"); /** Used to match property names within property paths. */ var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; /** Used to match backslashes in property paths. */ var reEscapeChar = /\\(\\)?/g; /** * Converts `string` to a property path array. * * @private * @param {string} string The string to convert. * @returns {Array} Returns the property path array. */ var stringToPath = memoizeCapped(function(string) { var result = []; if (string.charCodeAt(0) === 46 /* . */) { result.push(''); } string.replace(rePropName, function(match, number, quote, subString) { result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match)); }); return result; }); module.exports = stringToPath; /***/ }), /***/ "19aa": /***/ (function(module, exports, __webpack_require__) { var isPrototypeOf = __webpack_require__("3a9b"); var $TypeError = TypeError; module.exports = function (it, Prototype) { if (isPrototypeOf(Prototype, it)) return it; throw $TypeError('Incorrect invocation'); }; /***/ }), /***/ "1a2d": /***/ (function(module, exports, __webpack_require__) { var uncurryThis = __webpack_require__("e330"); var toObject = __webpack_require__("7b0b"); var hasOwnProperty = uncurryThis({}.hasOwnProperty); // `HasOwnProperty` abstract operation // https://tc39.es/ecma262/#sec-hasownproperty // eslint-disable-next-line es/no-object-hasown -- safe module.exports = Object.hasOwn || function hasOwn(it, key) { return hasOwnProperty(toObject(it), key); }; /***/ }), /***/ "1a2d0": /***/ (function(module, exports, __webpack_require__) { var getTag = __webpack_require__("42a2"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var mapTag = '[object Map]'; /** * The base implementation of `_.isMap` without Node.js optimizations. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a map, else `false`. */ function baseIsMap(value) { return isObjectLike(value) && getTag(value) == mapTag; } module.exports = baseIsMap; /***/ }), /***/ "1a8c": /***/ (function(module, exports) { /** * Checks if `value` is the * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an object, else `false`. * @example * * _.isObject({}); * // => true * * _.isObject([1, 2, 3]); * // => true * * _.isObject(_.noop); * // => true * * _.isObject(null); * // => false */ function isObject(value) { var type = typeof value; return value != null && (type == 'object' || type == 'function'); } module.exports = isObject; /***/ }), /***/ "1ba5": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; var _EAN2 = __webpack_require__("bdfe"); var _EAN3 = _interopRequireDefault(_EAN2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // http://www.barcodeisland.com/ean8.phtml // Calculate the checksum digit var checksum = function checksum(number) { var res = number.substr(0, 7).split('').map(function (n) { return +n; }).reduce(function (sum, a, idx) { return idx % 2 ? sum + a : sum + a * 3; }, 0); return (10 - res % 10) % 10; }; var EAN8 = function (_EAN) { _inherits(EAN8, _EAN); function EAN8(data, options) { _classCallCheck(this, EAN8); // Add checksum if it does not exist if (data.search(/^[0-9]{7}$/) !== -1) { data += checksum(data); } return _possibleConstructorReturn(this, (EAN8.__proto__ || Object.getPrototypeOf(EAN8)).call(this, data, options)); } _createClass(EAN8, [{ key: 'valid', value: function valid() { return this.data.search(/^[0-9]{8}$/) !== -1 && +this.data[7] === checksum(this.data); } }, { key: 'leftText', value: function leftText() { return _get(EAN8.prototype.__proto__ || Object.getPrototypeOf(EAN8.prototype), 'leftText', this).call(this, 0, 4); } }, { key: 'leftEncode', value: function leftEncode() { var data = this.data.substr(0, 4); return _get(EAN8.prototype.__proto__ || Object.getPrototypeOf(EAN8.prototype), 'leftEncode', this).call(this, data, 'LLLL'); } }, { key: 'rightText', value: function rightText() { return _get(EAN8.prototype.__proto__ || Object.getPrototypeOf(EAN8.prototype), 'rightText', this).call(this, 4, 4); } }, { key: 'rightEncode', value: function rightEncode() { var data = this.data.substr(4, 4); return _get(EAN8.prototype.__proto__ || Object.getPrototypeOf(EAN8.prototype), 'rightEncode', this).call(this, data, 'RRRR'); } }]); return EAN8; }(_EAN3.default); exports.default = EAN8; /***/ }), /***/ "1bac": /***/ (function(module, exports, __webpack_require__) { var baseGetAllKeys = __webpack_require__("7d1f"), getSymbolsIn = __webpack_require__("a029"), keysIn = __webpack_require__("9934"); /** * Creates an array of own and inherited enumerable property names and * symbols of `object`. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names and symbols. */ function getAllKeysIn(object) { return baseGetAllKeys(object, keysIn, getSymbolsIn); } module.exports = getAllKeysIn; /***/ }), /***/ "1be4": /***/ (function(module, exports, __webpack_require__) { var getBuiltIn = __webpack_require__("d066"); module.exports = getBuiltIn('document', 'documentElement'); /***/ }), /***/ "1c7e": /***/ (function(module, exports, __webpack_require__) { var wellKnownSymbol = __webpack_require__("b622"); var ITERATOR = wellKnownSymbol('iterator'); var SAFE_CLOSING = false; try { var called = 0; var iteratorWithReturn = { next: function () { return { done: !!called++ }; }, 'return': function () { SAFE_CLOSING = true; } }; iteratorWithReturn[ITERATOR] = function () { return this; }; // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing Array.from(iteratorWithReturn, function () { throw 2; }); } catch (error) { /* empty */ } module.exports = function (exec, SKIP_CLOSING) { if (!SKIP_CLOSING && !SAFE_CLOSING) return false; var ITERATION_SUPPORT = false; try { var object = {}; object[ITERATOR] = function () { return { next: function () { return { done: ITERATION_SUPPORT = true }; } }; }; exec(object); } catch (error) { /* empty */ } return ITERATION_SUPPORT; }; /***/ }), /***/ "1cdc": /***/ (function(module, exports, __webpack_require__) { var userAgent = __webpack_require__("342f"); module.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent); /***/ }), /***/ "1cec": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"), root = __webpack_require__("2b3e"); /* Built-in method references that are verified to be native. */ var Promise = getNative(root, 'Promise'); module.exports = Promise; /***/ }), /***/ "1d2b": /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function bind(fn, thisArg) { return function wrap() { var args = new Array(arguments.length); for (var i = 0; i < args.length; i++) { args[i] = arguments[i]; } return fn.apply(thisArg, args); }; }; /***/ }), /***/ "1d80": /***/ (function(module, exports, __webpack_require__) { var isNullOrUndefined = __webpack_require__("7234"); var $TypeError = TypeError; // `RequireObjectCoercible` abstract operation // https://tc39.es/ecma262/#sec-requireobjectcoercible module.exports = function (it) { if (isNullOrUndefined(it)) throw $TypeError("Can't call method on " + it); return it; }; /***/ }), /***/ "1dde": /***/ (function(module, exports, __webpack_require__) { var fails = __webpack_require__("d039"); var wellKnownSymbol = __webpack_require__("b622"); var V8_VERSION = __webpack_require__("2d00"); var SPECIES = wellKnownSymbol('species'); module.exports = function (METHOD_NAME) { // We can't use this feature detection in V8 since it causes // deoptimization and serious performance degradation // https://github.com/zloirock/core-js/issues/677 return V8_VERSION >= 51 || !fails(function () { var array = []; var constructor = array.constructor = {}; constructor[SPECIES] = function () { return { foo: 1 }; }; return array[METHOD_NAME](Boolean).foo !== 1; }); }; /***/ }), /***/ "1efc": /***/ (function(module, exports) { /** * Removes `key` and its value from the hash. * * @private * @name delete * @memberOf Hash * @param {Object} hash The hash to modify. * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function hashDelete(key) { var result = this.has(key) && delete this.__data__[key]; this.size -= result ? 1 : 0; return result; } module.exports = hashDelete; /***/ }), /***/ "1f68": /***/ (function(module, exports, __webpack_require__) { "use strict"; var DESCRIPTORS = __webpack_require__("83ab"); var defineBuiltInAccessor = __webpack_require__("edd0"); var isObject = __webpack_require__("861d"); var toObject = __webpack_require__("7b0b"); var requireObjectCoercible = __webpack_require__("1d80"); // eslint-disable-next-line es/no-object-getprototypeof -- safe var getPrototypeOf = Object.getPrototypeOf; // eslint-disable-next-line es/no-object-setprototypeof -- safe var setPrototypeOf = Object.setPrototypeOf; var ObjectPrototype = Object.prototype; var PROTO = '__proto__'; // `Object.prototype.__proto__` accessor // https://tc39.es/ecma262/#sec-object.prototype.__proto__ if (DESCRIPTORS && getPrototypeOf && setPrototypeOf && !(PROTO in ObjectPrototype)) try { defineBuiltInAccessor(ObjectPrototype, PROTO, { configurable: true, get: function __proto__() { return getPrototypeOf(toObject(this)); }, set: function __proto__(proto) { var O = requireObjectCoercible(this); if (!isObject(proto) && proto !== null || !isObject(O)) return; setPrototypeOf(O, proto); } }); } catch (error) { /* empty */ } /***/ }), /***/ "1fc8": /***/ (function(module, exports, __webpack_require__) { var getMapData = __webpack_require__("4245"); /** * Sets the map `key` to `value`. * * @private * @name set * @memberOf MapCache * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the map cache instance. */ function mapCacheSet(key, value) { var data = getMapData(this, key), size = data.size; data.set(key, value); this.size += data.size == size ? 0 : 1; return this; } module.exports = mapCacheSet; /***/ }), /***/ "2266": /***/ (function(module, exports, __webpack_require__) { var bind = __webpack_require__("0366"); var call = __webpack_require__("c65b"); var anObject = __webpack_require__("825a"); var tryToString = __webpack_require__("0d51"); var isArrayIteratorMethod = __webpack_require__("e95a"); var lengthOfArrayLike = __webpack_require__("07fa"); var isPrototypeOf = __webpack_require__("3a9b"); var getIterator = __webpack_require__("9a1f"); var getIteratorMethod = __webpack_require__("35a1"); var iteratorClose = __webpack_require__("2a62"); var $TypeError = TypeError; var Result = function (stopped, result) { this.stopped = stopped; this.result = result; }; var ResultPrototype = Result.prototype; module.exports = function (iterable, unboundFunction, options) { var that = options && options.that; var AS_ENTRIES = !!(options && options.AS_ENTRIES); var IS_RECORD = !!(options && options.IS_RECORD); var IS_ITERATOR = !!(options && options.IS_ITERATOR); var INTERRUPTED = !!(options && options.INTERRUPTED); var fn = bind(unboundFunction, that); var iterator, iterFn, index, length, result, next, step; var stop = function (condition) { if (iterator) iteratorClose(iterator, 'normal', condition); return new Result(true, condition); }; var callFn = function (value) { if (AS_ENTRIES) { anObject(value); return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]); } return INTERRUPTED ? fn(value, stop) : fn(value); }; if (IS_RECORD) { iterator = iterable.iterator; } else if (IS_ITERATOR) { iterator = iterable; } else { iterFn = getIteratorMethod(iterable); if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable'); // optimisation for array iterators if (isArrayIteratorMethod(iterFn)) { for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) { result = callFn(iterable[index]); if (result && isPrototypeOf(ResultPrototype, result)) return result; } return new Result(false); } iterator = getIterator(iterable, iterFn); } next = IS_RECORD ? iterable.next : iterator.next; while (!(step = call(next, iterator)).done) { try { result = callFn(step.value); } catch (error) { iteratorClose(iterator, 'throw', error); } if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result; } return new Result(false); }; /***/ }), /***/ "2286": /***/ (function(module, exports, __webpack_require__) { var apply = __webpack_require__("85e3"); /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeMax = Math.max; /** * A specialized version of `baseRest` which transforms the rest array. * * @private * @param {Function} func The function to apply a rest parameter to. * @param {number} [start=func.length-1] The start position of the rest parameter. * @param {Function} transform The rest array transform. * @returns {Function} Returns the new function. */ function overRest(func, start, transform) { start = nativeMax(start === undefined ? (func.length - 1) : start, 0); return function() { var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length); while (++index < length) { array[index] = args[start + index]; } index = -1; var otherArgs = Array(start + 1); while (++index < start) { otherArgs[index] = args[index]; } otherArgs[start] = transform(array); return apply(func, this, otherArgs); }; } module.exports = overRest; /***/ }), /***/ "234d": /***/ (function(module, exports, __webpack_require__) { var memoize = __webpack_require__("e380"); /** Used as the maximum memoize cache size. */ var MAX_MEMOIZE_SIZE = 500; /** * A specialized version of `_.memoize` which clears the memoized function's * cache when it exceeds `MAX_MEMOIZE_SIZE`. * * @private * @param {Function} func The function to have its output memoized. * @returns {Function} Returns the new memoized function. */ function memoizeCapped(func) { var result = memoize(func, function(key) { if (cache.size === MAX_MEMOIZE_SIZE) { cache.clear(); } return key; }); var cache = result.cache; return result; } module.exports = memoizeCapped; /***/ }), /***/ "23cb": /***/ (function(module, exports, __webpack_require__) { var toIntegerOrInfinity = __webpack_require__("5926"); var max = Math.max; var min = Math.min; // Helper for a popular repeating case of the spec: // Let integer be ? ToInteger(index). // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length). module.exports = function (index, length) { var integer = toIntegerOrInfinity(index); return integer < 0 ? max(integer + length, 0) : min(integer, length); }; /***/ }), /***/ "23e7": /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__("da84"); var getOwnPropertyDescriptor = __webpack_require__("06cf").f; var createNonEnumerableProperty = __webpack_require__("9112"); var defineBuiltIn = __webpack_require__("cb2d"); var defineGlobalProperty = __webpack_require__("6374"); var copyConstructorProperties = __webpack_require__("e893"); var isForced = __webpack_require__("94ca"); /* options.target - name of the target object options.global - target is the global object options.stat - export as static methods of target options.proto - export as prototype methods of target options.real - real prototype method for the `pure` version options.forced - export even if the native feature is available options.bind - bind methods to the target, required for the `pure` version options.wrap - wrap constructors to preventing global pollution, required for the `pure` version options.unsafe - use the simple assignment of property instead of delete + defineProperty options.sham - add a flag to not completely full polyfills options.enumerable - export as enumerable property options.dontCallGetSet - prevent calling a getter on target options.name - the .name of the function if it does not match the key */ module.exports = function (options, source) { var TARGET = options.target; var GLOBAL = options.global; var STATIC = options.stat; var FORCED, target, key, targetProperty, sourceProperty, descriptor; if (GLOBAL) { target = global; } else if (STATIC) { target = global[TARGET] || defineGlobalProperty(TARGET, {}); } else { target = (global[TARGET] || {}).prototype; } if (target) for (key in source) { sourceProperty = source[key]; if (options.dontCallGetSet) { descriptor = getOwnPropertyDescriptor(target, key); targetProperty = descriptor && descriptor.value; } else targetProperty = target[key]; FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); // contained in target if (!FORCED && targetProperty !== undefined) { if (typeof sourceProperty == typeof targetProperty) continue; copyConstructorProperties(sourceProperty, targetProperty); } // add a flag to not completely full polyfills if (options.sham || (targetProperty && targetProperty.sham)) { createNonEnumerableProperty(sourceProperty, 'sham', true); } defineBuiltIn(target, key, sourceProperty, options); } }; /***/ }), /***/ "2411": /***/ (function(module, exports, __webpack_require__) { var baseMerge = __webpack_require__("f909"), createAssigner = __webpack_require__("2ec1"); /** * This method is like `_.merge` except that it accepts `customizer` which * is invoked to produce the merged values of the destination and source * properties. If `customizer` returns `undefined`, merging is handled by the * method instead. The `customizer` is invoked with six arguments: * (objValue, srcValue, key, object, source, stack). * * **Note:** This method mutates `object`. * * @static * @memberOf _ * @since 4.0.0 * @category Object * @param {Object} object The destination object. * @param {...Object} sources The source objects. * @param {Function} customizer The function to customize assigned values. * @returns {Object} Returns `object`. * @example * * function customizer(objValue, srcValue) { * if (_.isArray(objValue)) { * return objValue.concat(srcValue); * } * } * * var object = { 'a': [1], 'b': [2] }; * var other = { 'a': [3], 'b': [4] }; * * _.mergeWith(object, other, customizer); * // => { 'a': [1, 3], 'b': [2, 4] } */ var mergeWith = createAssigner(function(object, source, srcIndex, customizer) { baseMerge(object, source, srcIndex, customizer); }); module.exports = mergeWith; /***/ }), /***/ "241c": /***/ (function(module, exports, __webpack_require__) { var internalObjectKeys = __webpack_require__("ca84"); var enumBugKeys = __webpack_require__("7839"); var hiddenKeys = enumBugKeys.concat('length', 'prototype'); // `Object.getOwnPropertyNames` method // https://tc39.es/ecma262/#sec-object.getownpropertynames // eslint-disable-next-line es/no-object-getownpropertynames -- safe exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { return internalObjectKeys(O, hiddenKeys); }; /***/ }), /***/ "241e": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UPCE = exports.UPC = exports.EAN2 = exports.EAN5 = exports.EAN8 = exports.EAN13 = undefined; var _EAN = __webpack_require__("89a2"); var _EAN2 = _interopRequireDefault(_EAN); var _EAN3 = __webpack_require__("1ba5"); var _EAN4 = _interopRequireDefault(_EAN3); var _EAN5 = __webpack_require__("583f"); var _EAN6 = _interopRequireDefault(_EAN5); var _EAN7 = __webpack_require__("a5d2"); var _EAN8 = _interopRequireDefault(_EAN7); var _UPC = __webpack_require__("e8b2"); var _UPC2 = _interopRequireDefault(_UPC); var _UPCE = __webpack_require__("be98"); var _UPCE2 = _interopRequireDefault(_UPCE); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.EAN13 = _EAN2.default; exports.EAN8 = _EAN4.default; exports.EAN5 = _EAN6.default; exports.EAN2 = _EAN8.default; exports.UPC = _UPC2.default; exports.UPCE = _UPCE2.default; /***/ }), /***/ "2444": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(process) { var utils = __webpack_require__("c532"); var normalizeHeaderName = __webpack_require__("c8af"); var DEFAULT_CONTENT_TYPE = { 'Content-Type': 'application/x-www-form-urlencoded' }; function setContentTypeIfUnset(headers, value) { if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) { headers['Content-Type'] = value; } } function getDefaultAdapter() { var adapter; if (typeof XMLHttpRequest !== 'undefined') { // For browsers use XHR adapter adapter = __webpack_require__("b50d"); } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') { // For node use HTTP adapter adapter = __webpack_require__("b50d"); } return adapter; } var defaults = { adapter: getDefaultAdapter(), transformRequest: [function transformRequest(data, headers) { normalizeHeaderName(headers, 'Accept'); normalizeHeaderName(headers, 'Content-Type'); if (utils.isFormData(data) || utils.isArrayBuffer(data) || utils.isBuffer(data) || utils.isStream(data) || utils.isFile(data) || utils.isBlob(data) ) { return data; } if (utils.isArrayBufferView(data)) { return data.buffer; } if (utils.isURLSearchParams(data)) { setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8'); return data.toString(); } if (utils.isObject(data)) { setContentTypeIfUnset(headers, 'application/json;charset=utf-8'); return JSON.stringify(data); } return data; }], transformResponse: [function transformResponse(data) { /*eslint no-param-reassign:0*/ if (typeof data === 'string') { try { data = JSON.parse(data); } catch (e) { /* Ignore */ } } return data; }], /** * A timeout in milliseconds to abort a request. If set to 0 (default) a * timeout is not created. */ timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, validateStatus: function validateStatus(status) { return status >= 200 && status < 300; } }; defaults.headers = { common: { 'Accept': 'application/json, text/plain, */*' } }; utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) { defaults.headers[method] = {}; }); utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE); }); module.exports = defaults; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("4362"))) /***/ }), /***/ "2474": /***/ (function(module, exports, __webpack_require__) { var root = __webpack_require__("2b3e"); /** Built-in value references. */ var Uint8Array = root.Uint8Array; module.exports = Uint8Array; /***/ }), /***/ "2478": /***/ (function(module, exports, __webpack_require__) { var getMapData = __webpack_require__("4245"); /** * Gets the map value for `key`. * * @private * @name get * @memberOf MapCache * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function mapCacheGet(key) { return getMapData(this, key).get(key); } module.exports = mapCacheGet; /***/ }), /***/ "2524": /***/ (function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__("6044"); /** Used to stand-in for `undefined` hash values. */ var HASH_UNDEFINED = '__lodash_hash_undefined__'; /** * Sets the hash `key` to `value`. * * @private * @name set * @memberOf Hash * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the hash instance. */ function hashSet(key, value) { var data = this.__data__; this.size += this.has(key) ? 0 : 1; data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; return this; } module.exports = hashSet; /***/ }), /***/ "2532": /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__("23e7"); var uncurryThis = __webpack_require__("e330"); var notARegExp = __webpack_require__("5a34"); var requireObjectCoercible = __webpack_require__("1d80"); var toString = __webpack_require__("577e"); var correctIsRegExpLogic = __webpack_require__("ab13"); var stringIndexOf = uncurryThis(''.indexOf); // `String.prototype.includes` method // https://tc39.es/ecma262/#sec-string.prototype.includes $({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, { includes: function includes(searchString /* , position = 0 */) { return !!~stringIndexOf( toString(requireObjectCoercible(this)), toString(notARegExp(searchString)), arguments.length > 1 ? arguments[1] : undefined ); } }); /***/ }), /***/ "253c": /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__("3729"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var argsTag = '[object Arguments]'; /** * The base implementation of `_.isArguments`. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an `arguments` object, */ function baseIsArguments(value) { return isObjectLike(value) && baseGetTag(value) == argsTag; } module.exports = baseIsArguments; /***/ }), /***/ "25f0": /***/ (function(module, exports, __webpack_require__) { "use strict"; var PROPER_FUNCTION_NAME = __webpack_require__("5e77").PROPER; var defineBuiltIn = __webpack_require__("cb2d"); var anObject = __webpack_require__("825a"); var $toString = __webpack_require__("577e"); var fails = __webpack_require__("d039"); var getRegExpFlags = __webpack_require__("90d8"); var TO_STRING = 'toString'; var RegExpPrototype = RegExp.prototype; var nativeToString = RegExpPrototype[TO_STRING]; var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; }); // FF44- RegExp#toString has a wrong name var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name != TO_STRING; // `RegExp.prototype.toString` method // https://tc39.es/ecma262/#sec-regexp.prototype.tostring if (NOT_GENERIC || INCORRECT_NAME) { defineBuiltIn(RegExp.prototype, TO_STRING, function toString() { var R = anObject(this); var pattern = $toString(R.source); var flags = $toString(getRegExpFlags(R)); return '/' + pattern + '/' + flags; }, { unsafe: true }); } /***/ }), /***/ "2626": /***/ (function(module, exports, __webpack_require__) { "use strict"; var getBuiltIn = __webpack_require__("d066"); var definePropertyModule = __webpack_require__("9bf2"); var wellKnownSymbol = __webpack_require__("b622"); var DESCRIPTORS = __webpack_require__("83ab"); var SPECIES = wellKnownSymbol('species'); module.exports = function (CONSTRUCTOR_NAME) { var Constructor = getBuiltIn(CONSTRUCTOR_NAME); var defineProperty = definePropertyModule.f; if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) { defineProperty(Constructor, SPECIES, { configurable: true, get: function () { return this; } }); } }; /***/ }), /***/ "28c9": /***/ (function(module, exports) { /** * Removes all key-value entries from the list cache. * * @private * @name clear * @memberOf ListCache */ function listCacheClear() { this.__data__ = []; this.size = 0; } module.exports = listCacheClear; /***/ }), /***/ "29f3": /***/ (function(module, exports) { /** Used for built-in method references. */ var objectProto = Object.prototype; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ var nativeObjectToString = objectProto.toString; /** * Converts `value` to a string using `Object.prototype.toString`. * * @private * @param {*} value The value to convert. * @returns {string} Returns the converted string. */ function objectToString(value) { return nativeObjectToString.call(value); } module.exports = objectToString; /***/ }), /***/ "2a4a": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var START_BIN = exports.START_BIN = '1010'; var END_BIN = exports.END_BIN = '11101'; var BINARIES = exports.BINARIES = ['00110', '10001', '01001', '11000', '00101', '10100', '01100', '00011', '10010', '01010']; /***/ }), /***/ "2a62": /***/ (function(module, exports, __webpack_require__) { var call = __webpack_require__("c65b"); var anObject = __webpack_require__("825a"); var getMethod = __webpack_require__("dc4a"); module.exports = function (iterator, kind, value) { var innerResult, innerError; anObject(iterator); try { innerResult = getMethod(iterator, 'return'); if (!innerResult) { if (kind === 'throw') throw value; return value; } innerResult = call(innerResult, iterator); } catch (error) { innerError = true; innerResult = error; } if (kind === 'throw') throw value; if (innerError) throw innerResult; anObject(innerResult); return value; }; /***/ }), /***/ "2b3e": /***/ (function(module, exports, __webpack_require__) { var freeGlobal = __webpack_require__("585a"); /** Detect free variable `self`. */ var freeSelf = typeof self == 'object' && self && self.Object === Object && self; /** Used as a reference to the global object. */ var root = freeGlobal || freeSelf || Function('return this')(); module.exports = root; /***/ }), /***/ "2ba4": /***/ (function(module, exports, __webpack_require__) { var NATIVE_BIND = __webpack_require__("40d5"); var FunctionPrototype = Function.prototype; var apply = FunctionPrototype.apply; var call = FunctionPrototype.call; // eslint-disable-next-line es/no-reflect -- safe module.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () { return call.apply(apply, arguments); }); /***/ }), /***/ "2c3e": /***/ (function(module, exports, __webpack_require__) { var DESCRIPTORS = __webpack_require__("83ab"); var MISSED_STICKY = __webpack_require__("9f7f").MISSED_STICKY; var classof = __webpack_require__("c6b6"); var defineBuiltInAccessor = __webpack_require__("edd0"); var getInternalState = __webpack_require__("69f3").get; var RegExpPrototype = RegExp.prototype; var $TypeError = TypeError; // `RegExp.prototype.sticky` getter // https://tc39.es/ecma262/#sec-get-regexp.prototype.sticky if (DESCRIPTORS && MISSED_STICKY) { defineBuiltInAccessor(RegExpPrototype, 'sticky', { configurable: true, get: function sticky() { if (this === RegExpPrototype) return; // We can't use InternalStateModule.getterFor because // we don't add metadata for regexps created by a literal. if (classof(this) === 'RegExp') { return !!getInternalState(this).sticky; } throw $TypeError('Incompatible receiver, RegExp required'); } }); } /***/ }), /***/ "2ca0": /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__("23e7"); var uncurryThis = __webpack_require__("4625"); var getOwnPropertyDescriptor = __webpack_require__("06cf").f; var toLength = __webpack_require__("50c4"); var toString = __webpack_require__("577e"); var notARegExp = __webpack_require__("5a34"); var requireObjectCoercible = __webpack_require__("1d80"); var correctIsRegExpLogic = __webpack_require__("ab13"); var IS_PURE = __webpack_require__("c430"); // eslint-disable-next-line es/no-string-prototype-startswith -- safe var nativeStartsWith = uncurryThis(''.startsWith); var stringSlice = uncurryThis(''.slice); var min = Math.min; var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('startsWith'); // https://github.com/zloirock/core-js/pull/702 var MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function () { var descriptor = getOwnPropertyDescriptor(String.prototype, 'startsWith'); return descriptor && !descriptor.writable; }(); // `String.prototype.startsWith` method // https://tc39.es/ecma262/#sec-string.prototype.startswith $({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, { startsWith: function startsWith(searchString /* , position = 0 */) { var that = toString(requireObjectCoercible(this)); notARegExp(searchString); var index = toLength(min(arguments.length > 1 ? arguments[1] : undefined, that.length)); var search = toString(searchString); return nativeStartsWith ? nativeStartsWith(that, search, index) : stringSlice(that, index, index + search.length) === search; } }); /***/ }), /***/ "2cf4": /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__("da84"); var apply = __webpack_require__("2ba4"); var bind = __webpack_require__("0366"); var isCallable = __webpack_require__("1626"); var hasOwn = __webpack_require__("1a2d"); var fails = __webpack_require__("d039"); var html = __webpack_require__("1be4"); var arraySlice = __webpack_require__("f36a"); var createElement = __webpack_require__("cc12"); var validateArgumentsLength = __webpack_require__("d6d6"); var IS_IOS = __webpack_require__("1cdc"); var IS_NODE = __webpack_require__("605d"); var set = global.setImmediate; var clear = global.clearImmediate; var process = global.process; var Dispatch = global.Dispatch; var Function = global.Function; var MessageChannel = global.MessageChannel; var String = global.String; var counter = 0; var queue = {}; var ONREADYSTATECHANGE = 'onreadystatechange'; var $location, defer, channel, port; fails(function () { // Deno throws a ReferenceError on `location` access without `--location` flag $location = global.location; }); var run = function (id) { if (hasOwn(queue, id)) { var fn = queue[id]; delete queue[id]; fn(); } }; var runner = function (id) { return function () { run(id); }; }; var eventListener = function (event) { run(event.data); }; var globalPostMessageDefer = function (id) { // old engines have not location.origin global.postMessage(String(id), $location.protocol + '//' + $location.host); }; // Node.js 0.9+ & IE10+ has setImmediate, otherwise: if (!set || !clear) { set = function setImmediate(handler) { validateArgumentsLength(arguments.length, 1); var fn = isCallable(handler) ? handler : Function(handler); var args = arraySlice(arguments, 1); queue[++counter] = function () { apply(fn, undefined, args); }; defer(counter); return counter; }; clear = function clearImmediate(id) { delete queue[id]; }; // Node.js 0.8- if (IS_NODE) { defer = function (id) { process.nextTick(runner(id)); }; // Sphere (JS game engine) Dispatch API } else if (Dispatch && Dispatch.now) { defer = function (id) { Dispatch.now(runner(id)); }; // Browsers with MessageChannel, includes WebWorkers // except iOS - https://github.com/zloirock/core-js/issues/624 } else if (MessageChannel && !IS_IOS) { channel = new MessageChannel(); port = channel.port2; channel.port1.onmessage = eventListener; defer = bind(port.postMessage, port); // Browsers with postMessage, skip WebWorkers // IE8 has postMessage, but it's sync & typeof its postMessage is 'object' } else if ( global.addEventListener && isCallable(global.postMessage) && !global.importScripts && $location && $location.protocol !== 'file:' && !fails(globalPostMessageDefer) ) { defer = globalPostMessageDefer; global.addEventListener('message', eventListener, false); // IE8- } else if (ONREADYSTATECHANGE in createElement('script')) { defer = function (id) { html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () { html.removeChild(this); run(id); }; }; // Rest old browsers } else { defer = function (id) { setTimeout(runner(id), 0); }; } } module.exports = { set: set, clear: clear }; /***/ }), /***/ "2d00": /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__("da84"); var userAgent = __webpack_require__("342f"); var process = global.process; var Deno = global.Deno; var versions = process && process.versions || Deno && Deno.version; var v8 = versions && versions.v8; var match, version; if (v8) { match = v8.split('.'); // in old Chrome, versions of V8 isn't V8 = Chrome / 10 // but their correct versions are not interesting for us version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]); } // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0` // so check `userAgent` even if `.v8` exists, but 0 if (!version && userAgent) { match = userAgent.match(/Edge\/(\d+)/); if (!match || match[1] >= 74) { match = userAgent.match(/Chrome\/(\d+)/); if (match) version = +match[1]; } } module.exports = version; /***/ }), /***/ "2d7c": /***/ (function(module, exports) { /** * A specialized version of `_.filter` for arrays without support for * iteratee shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} predicate The function invoked per iteration. * @returns {Array} Returns the new filtered array. */ function arrayFilter(array, predicate) { var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = []; while (++index < length) { var value = array[index]; if (predicate(value, index, array)) { result[resIndex++] = value; } } return result; } module.exports = arrayFilter; /***/ }), /***/ "2d83": /***/ (function(module, exports, __webpack_require__) { "use strict"; var enhanceError = __webpack_require__("387f"); /** * Create an Error with the specified message, config, error code, request and response. * * @param {string} message The error message. * @param {Object} config The config. * @param {string} [code] The error code (for example, 'ECONNABORTED'). * @param {Object} [request] The request. * @param {Object} [response] The response. * @returns {Error} The created error. */ module.exports = function createError(message, config, code, request, response) { var error = new Error(message); return enhanceError(error, config, code, request, response); }; /***/ }), /***/ "2dcb": /***/ (function(module, exports, __webpack_require__) { var overArg = __webpack_require__("91e9"); /** Built-in value references. */ var getPrototype = overArg(Object.getPrototypeOf, Object); module.exports = getPrototype; /***/ }), /***/ "2e67": /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function isCancel(value) { return !!(value && value.__CANCEL__); }; /***/ }), /***/ "2ec1": /***/ (function(module, exports, __webpack_require__) { var baseRest = __webpack_require__("100e"), isIterateeCall = __webpack_require__("9aff"); /** * Creates a function like `_.assign`. * * @private * @param {Function} assigner The function to assign values. * @returns {Function} Returns the new assigner function. */ function createAssigner(assigner) { return baseRest(function(object, sources) { var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : undefined, guard = length > 2 ? sources[2] : undefined; customizer = (assigner.length > 3 && typeof customizer == 'function') ? (length--, customizer) : undefined; if (guard && isIterateeCall(sources[0], sources[1], guard)) { customizer = length < 3 ? undefined : customizer; length = 1; } object = Object(object); while (++index < length) { var source = sources[index]; if (source) { assigner(object, source, index, customizer); } } return object; }); } module.exports = createAssigner; /***/ }), /***/ "2fcc": /***/ (function(module, exports) { /** * Removes `key` and its value from the stack. * * @private * @name delete * @memberOf Stack * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function stackDelete(key) { var data = this.__data__, result = data['delete'](key); this.size = data.size; return result; } module.exports = stackDelete; /***/ }), /***/ "30b5": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); function encode(val) { return encodeURIComponent(val). replace(/%3A/gi, ':'). replace(/%24/g, '$'). replace(/%2C/gi, ','). replace(/%20/g, '+'). replace(/%5B/gi, '['). replace(/%5D/gi, ']'); } /** * Build a URL by appending params to the end * * @param {string} url The base of the url (e.g., http://www.google.com) * @param {object} [params] The params to be appended * @returns {string} The formatted url */ module.exports = function buildURL(url, params, paramsSerializer) { /*eslint no-param-reassign:0*/ if (!params) { return url; } var serializedParams; if (paramsSerializer) { serializedParams = paramsSerializer(params); } else if (utils.isURLSearchParams(params)) { serializedParams = params.toString(); } else { var parts = []; utils.forEach(params, function serialize(val, key) { if (val === null || typeof val === 'undefined') { return; } if (utils.isArray(val)) { key = key + '[]'; } else { val = [val]; } utils.forEach(val, function parseValue(v) { if (utils.isDate(v)) { v = v.toISOString(); } else if (utils.isObject(v)) { v = JSON.stringify(v); } parts.push(encode(key) + '=' + encode(v)); }); }); serializedParams = parts.join('&'); } if (serializedParams) { var hashmarkIndex = url.indexOf('#'); if (hashmarkIndex !== -1) { url = url.slice(0, hashmarkIndex); } url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams; } return url; }; /***/ }), /***/ "30c9": /***/ (function(module, exports, __webpack_require__) { var isFunction = __webpack_require__("9520"), isLength = __webpack_require__("b218"); /** * Checks if `value` is array-like. A value is considered array-like if it's * not a function and has a `value.length` that's an integer greater than or * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is array-like, else `false`. * @example * * _.isArrayLike([1, 2, 3]); * // => true * * _.isArrayLike(document.body.children); * // => true * * _.isArrayLike('abc'); * // => true * * _.isArrayLike(_.noop); * // => false */ function isArrayLike(value) { return value != null && isLength(value.length) && !isFunction(value); } module.exports = isArrayLike; /***/ }), /***/ "32b3": /***/ (function(module, exports, __webpack_require__) { var baseAssignValue = __webpack_require__("872a"), eq = __webpack_require__("9638"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Assigns `value` to `key` of `object` if the existing value is not equivalent * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * for equality comparisons. * * @private * @param {Object} object The object to modify. * @param {string} key The key of the property to assign. * @param {*} value The value to assign. */ function assignValue(object, key, value) { var objValue = object[key]; if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || (value === undefined && !(key in object))) { baseAssignValue(object, key, value); } } module.exports = assignValue; /***/ }), /***/ "32f4": /***/ (function(module, exports, __webpack_require__) { var arrayFilter = __webpack_require__("2d7c"), stubArray = __webpack_require__("d327"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Built-in value references. */ var propertyIsEnumerable = objectProto.propertyIsEnumerable; /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeGetSymbols = Object.getOwnPropertySymbols; /** * Creates an array of the own enumerable symbols of `object`. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of symbols. */ var getSymbols = !nativeGetSymbols ? stubArray : function(object) { if (object == null) { return []; } object = Object(object); return arrayFilter(nativeGetSymbols(object), function(symbol) { return propertyIsEnumerable.call(object, symbol); }); }; module.exports = getSymbols; /***/ }), /***/ "3410": /***/ (function(module, exports, __webpack_require__) { var $ = __webpack_require__("23e7"); var fails = __webpack_require__("d039"); var toObject = __webpack_require__("7b0b"); var nativeGetPrototypeOf = __webpack_require__("e163"); var CORRECT_PROTOTYPE_GETTER = __webpack_require__("e177"); var FAILS_ON_PRIMITIVES = fails(function () { nativeGetPrototypeOf(1); }); // `Object.getPrototypeOf` method // https://tc39.es/ecma262/#sec-object.getprototypeof $({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !CORRECT_PROTOTYPE_GETTER }, { getPrototypeOf: function getPrototypeOf(it) { return nativeGetPrototypeOf(toObject(it)); } }); /***/ }), /***/ "342f": /***/ (function(module, exports) { module.exports = typeof navigator != 'undefined' && String(navigator.userAgent) || ''; /***/ }), /***/ "349c": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CODE39 = undefined; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // https://en.wikipedia.org/wiki/Code_39#Encoding var CODE39 = function (_Barcode) { _inherits(CODE39, _Barcode); function CODE39(data, options) { _classCallCheck(this, CODE39); data = data.toUpperCase(); // Calculate mod43 checksum if enabled if (options.mod43) { data += getCharacter(mod43checksum(data)); } return _possibleConstructorReturn(this, (CODE39.__proto__ || Object.getPrototypeOf(CODE39)).call(this, data, options)); } _createClass(CODE39, [{ key: "encode", value: function encode() { // First character is always a * var result = getEncoding("*"); // Take every character and add the binary representation to the result for (var i = 0; i < this.data.length; i++) { result += getEncoding(this.data[i]) + "0"; } // Last character is always a * result += getEncoding("*"); return { data: result, text: this.text }; } }, { key: "valid", value: function valid() { return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/) !== -1; } }]); return CODE39; }(_Barcode3.default); // All characters. The position in the array is the (checksum) value var 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 // corresponding binary with the getEncoding function var 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 // from decimal to binary function getEncoding(character) { return getBinary(characterValue(character)); } function getBinary(characterValue) { return encodings[characterValue].toString(2); } function getCharacter(characterValue) { return characters[characterValue]; } function characterValue(character) { return characters.indexOf(character); } function mod43checksum(data) { var checksum = 0; for (var i = 0; i < data.length; i++) { checksum += characterValue(data[i]); } checksum = checksum % 43; return checksum; } exports.CODE39 = CODE39; /***/ }), /***/ "34ac": /***/ (function(module, exports, __webpack_require__) { var isFunction = __webpack_require__("9520"), isMasked = __webpack_require__("1368"), isObject = __webpack_require__("1a8c"), toSource = __webpack_require__("dc57"); /** * Used to match `RegExp` * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). */ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; /** Used to detect host constructors (Safari). */ var reIsHostCtor = /^\[object .+?Constructor\]$/; /** Used for built-in method references. */ var funcProto = Function.prototype, objectProto = Object.prototype; /** Used to resolve the decompiled source of functions. */ var funcToString = funcProto.toString; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** Used to detect if a method is native. */ var reIsNative = RegExp('^' + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' ); /** * The base implementation of `_.isNative` without bad shim checks. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a native function, * else `false`. */ function baseIsNative(value) { if (!isObject(value) || isMasked(value)) { return false; } var pattern = isFunction(value) ? reIsNative : reIsHostCtor; return pattern.test(toSource(value)); } module.exports = baseIsNative; /***/ }), /***/ "3511": /***/ (function(module, exports) { var $TypeError = TypeError; var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991 module.exports = function (it) { if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded'); return it; }; /***/ }), /***/ "3529": /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__("23e7"); var call = __webpack_require__("c65b"); var aCallable = __webpack_require__("59ed"); var newPromiseCapabilityModule = __webpack_require__("f069"); var perform = __webpack_require__("e667"); var iterate = __webpack_require__("2266"); var PROMISE_STATICS_INCORRECT_ITERATION = __webpack_require__("5eed"); // `Promise.race` method // https://tc39.es/ecma262/#sec-promise.race $({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, { race: function race(iterable) { var C = this; var capability = newPromiseCapabilityModule.f(C); var reject = capability.reject; var result = perform(function () { var $promiseResolve = aCallable(C.resolve); iterate(iterable, function (promise) { call($promiseResolve, C, promise).then(capability.resolve, reject); }); }); if (result.error) reject(result.value); return capability.promise; } }); /***/ }), /***/ "35a1": /***/ (function(module, exports, __webpack_require__) { var classof = __webpack_require__("f5df"); var getMethod = __webpack_require__("dc4a"); var isNullOrUndefined = __webpack_require__("7234"); var Iterators = __webpack_require__("3f8c"); var wellKnownSymbol = __webpack_require__("b622"); var ITERATOR = wellKnownSymbol('iterator'); module.exports = function (it) { if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR) || getMethod(it, '@@iterator') || Iterators[classof(it)]; }; /***/ }), /***/ "3698": /***/ (function(module, exports) { /** * Gets the value at `key` of `object`. * * @private * @param {Object} [object] The object to query. * @param {string} key The key of the property to get. * @returns {*} Returns the property value. */ function getValue(object, key) { return object == null ? undefined : object[key]; } module.exports = getValue; /***/ }), /***/ "3729": /***/ (function(module, exports, __webpack_require__) { var Symbol = __webpack_require__("9e69"), getRawTag = __webpack_require__("00fd"), objectToString = __webpack_require__("29f3"); /** `Object#toString` result references. */ var nullTag = '[object Null]', undefinedTag = '[object Undefined]'; /** Built-in value references. */ var symToStringTag = Symbol ? Symbol.toStringTag : undefined; /** * The base implementation of `getTag` without fallbacks for buggy environments. * * @private * @param {*} value The value to query. * @returns {string} Returns the `toStringTag`. */ function baseGetTag(value) { if (value == null) { return value === undefined ? undefinedTag : nullTag; } return (symToStringTag && symToStringTag in Object(value)) ? getRawTag(value) : objectToString(value); } module.exports = baseGetTag; /***/ }), /***/ "37e8": /***/ (function(module, exports, __webpack_require__) { var DESCRIPTORS = __webpack_require__("83ab"); var V8_PROTOTYPE_DEFINE_BUG = __webpack_require__("aed9"); var definePropertyModule = __webpack_require__("9bf2"); var anObject = __webpack_require__("825a"); var toIndexedObject = __webpack_require__("fc6a"); var objectKeys = __webpack_require__("df75"); // `Object.defineProperties` method // https://tc39.es/ecma262/#sec-object.defineproperties // eslint-disable-next-line es/no-object-defineproperties -- safe exports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) { anObject(O); var props = toIndexedObject(Properties); var keys = objectKeys(Properties); var length = keys.length; var index = 0; var key; while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]); return O; }; /***/ }), /***/ "3818": /***/ (function(module, exports, __webpack_require__) { var Stack = __webpack_require__("7e64"), arrayEach = __webpack_require__("8057"), assignValue = __webpack_require__("32b3"), baseAssign = __webpack_require__("5b01"), baseAssignIn = __webpack_require__("0f0f"), cloneBuffer = __webpack_require__("e5383"), copyArray = __webpack_require__("4359"), copySymbols = __webpack_require__("54eb"), copySymbolsIn = __webpack_require__("1041"), getAllKeys = __webpack_require__("a994"), getAllKeysIn = __webpack_require__("1bac"), getTag = __webpack_require__("42a2"), initCloneArray = __webpack_require__("c87c"), initCloneByTag = __webpack_require__("c2b6"), initCloneObject = __webpack_require__("fa21"), isArray = __webpack_require__("6747"), isBuffer = __webpack_require__("0d24"), isMap = __webpack_require__("cc45"), isObject = __webpack_require__("1a8c"), isSet = __webpack_require__("d7ee"), keys = __webpack_require__("ec69"), keysIn = __webpack_require__("9934"); /** Used to compose bitmasks for cloning. */ var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG = 4; /** `Object#toString` result references. */ var argsTag = '[object Arguments]', arrayTag = '[object Array]', boolTag = '[object Boolean]', dateTag = '[object Date]', errorTag = '[object Error]', funcTag = '[object Function]', genTag = '[object GeneratorFunction]', mapTag = '[object Map]', numberTag = '[object Number]', objectTag = '[object Object]', regexpTag = '[object RegExp]', setTag = '[object Set]', stringTag = '[object String]', symbolTag = '[object Symbol]', weakMapTag = '[object WeakMap]'; var arrayBufferTag = '[object ArrayBuffer]', dataViewTag = '[object DataView]', float32Tag = '[object Float32Array]', float64Tag = '[object Float64Array]', int8Tag = '[object Int8Array]', int16Tag = '[object Int16Array]', int32Tag = '[object Int32Array]', uint8Tag = '[object Uint8Array]', uint8ClampedTag = '[object Uint8ClampedArray]', uint16Tag = '[object Uint16Array]', uint32Tag = '[object Uint32Array]'; /** Used to identify `toStringTag` values supported by `_.clone`. */ var cloneableTags = {}; cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true; cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false; /** * The base implementation of `_.clone` and `_.cloneDeep` which tracks * traversed objects. * * @private * @param {*} value The value to clone. * @param {boolean} bitmask The bitmask flags. * 1 - Deep clone * 2 - Flatten inherited properties * 4 - Clone symbols * @param {Function} [customizer] The function to customize cloning. * @param {string} [key] The key of `value`. * @param {Object} [object] The parent object of `value`. * @param {Object} [stack] Tracks traversed objects and their clone counterparts. * @returns {*} Returns the cloned value. */ function baseClone(value, bitmask, customizer, key, object, stack) { var result, isDeep = bitmask & CLONE_DEEP_FLAG, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG; if (customizer) { result = object ? customizer(value, key, object, stack) : customizer(value); } if (result !== undefined) { return result; } if (!isObject(value)) { return value; } var isArr = isArray(value); if (isArr) { result = initCloneArray(value); if (!isDeep) { return copyArray(value, result); } } else { var tag = getTag(value), isFunc = tag == funcTag || tag == genTag; if (isBuffer(value)) { return cloneBuffer(value, isDeep); } if (tag == objectTag || tag == argsTag || (isFunc && !object)) { result = (isFlat || isFunc) ? {} : initCloneObject(value); if (!isDeep) { return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value)); } } else { if (!cloneableTags[tag]) { return object ? value : {}; } result = initCloneByTag(value, tag, isDeep); } } // Check for circular references and return its corresponding clone. stack || (stack = new Stack); var stacked = stack.get(value); if (stacked) { return stacked; } stack.set(value, result); if (isSet(value)) { value.forEach(function(subValue) { result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack)); }); } else if (isMap(value)) { value.forEach(function(subValue, key) { result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack)); }); } var keysFunc = isFull ? (isFlat ? getAllKeysIn : getAllKeys) : (isFlat ? keysIn : keys); var props = isArr ? undefined : keysFunc(value); arrayEach(props || value, function(subValue, key) { if (props) { key = subValue; subValue = value[key]; } // Recursively populate clone (susceptible to call stack limits). assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack)); }); return result; } module.exports = baseClone; /***/ }), /***/ "3852": /***/ (function(module, exports, __webpack_require__) { var baseHas = __webpack_require__("96f3"), hasPath = __webpack_require__("e2c0"); /** * Checks if `path` is a direct property of `object`. * * @static * @since 0.1.0 * @memberOf _ * @category Object * @param {Object} object The object to query. * @param {Array|string} path The path to check. * @returns {boolean} Returns `true` if `path` exists, else `false`. * @example * * var object = { 'a': { 'b': 2 } }; * var other = _.create({ 'a': _.create({ 'b': 2 }) }); * * _.has(object, 'a'); * // => true * * _.has(object, 'a.b'); * // => true * * _.has(object, ['a', 'b']); * // => true * * _.has(other, 'a'); * // => false */ function has(object, path) { return object != null && hasPath(object, path, baseHas); } module.exports = has; /***/ }), /***/ "387f": /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Update an Error with the specified config, error code, and response. * * @param {Error} error The error to update. * @param {Object} config The config. * @param {string} [code] The error code (for example, 'ECONNABORTED'). * @param {Object} [request] The request. * @param {Object} [response] The response. * @returns {Error} The error. */ module.exports = function enhanceError(error, config, code, request, response) { error.config = config; if (code) { error.code = code; } error.request = request; error.response = response; error.isAxiosError = true; error.toJSON = function toJSON() { return { // Standard message: this.message, name: this.name, // Microsoft description: this.description, number: this.number, // Mozilla fileName: this.fileName, lineNumber: this.lineNumber, columnNumber: this.columnNumber, stack: this.stack, // Axios config: this.config, code: this.code }; }; return error; }; /***/ }), /***/ "3934": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); module.exports = ( utils.isStandardBrowserEnv() ? // Standard browser envs have full support of the APIs needed to test // whether the request URL is of the same origin as current location. (function standardBrowserEnv() { var msie = /(msie|trident)/i.test(navigator.userAgent); var urlParsingNode = document.createElement('a'); var originURL; /** * Parse a URL to discover it's components * * @param {String} url The URL to be parsed * @returns {Object} */ function resolveURL(url) { var href = url; if (msie) { // IE needs attribute set twice to normalize properties urlParsingNode.setAttribute('href', href); href = urlParsingNode.href; } urlParsingNode.setAttribute('href', href); // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils return { href: urlParsingNode.href, protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '', host: urlParsingNode.host, search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '', hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '', hostname: urlParsingNode.hostname, port: urlParsingNode.port, pathname: (urlParsingNode.pathname.charAt(0) === '/') ? urlParsingNode.pathname : '/' + urlParsingNode.pathname }; } originURL = resolveURL(window.location.href); /** * Determine if a URL shares the same origin as the current location * * @param {String} requestURL The URL to test * @returns {boolean} True if URL shares the same origin, otherwise false */ return function isURLSameOrigin(requestURL) { var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL; return (parsed.protocol === originURL.protocol && parsed.host === originURL.host); }; })() : // Non standard browser envs (web workers, react-native) lack needed support. (function nonStandardBrowserEnv() { return function isURLSameOrigin() { return true; }; })() ); /***/ }), /***/ "39ff": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"), root = __webpack_require__("2b3e"); /* Built-in method references that are verified to be native. */ var WeakMap = getNative(root, 'WeakMap'); module.exports = WeakMap; /***/ }), /***/ "3a34": /***/ (function(module, exports, __webpack_require__) { "use strict"; var DESCRIPTORS = __webpack_require__("83ab"); var isArray = __webpack_require__("e8b5"); var $TypeError = TypeError; // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; // Safari < 13 does not throw an error in this case var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () { // makes no sense without proper strict mode support if (this !== undefined) return true; try { // eslint-disable-next-line es/no-object-defineproperty -- safe Object.defineProperty([], 'length', { writable: false }).length = 1; } catch (error) { return error instanceof TypeError; } }(); module.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) { if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) { throw $TypeError('Cannot set read only .length'); } return O.length = length; } : function (O, length) { return O.length = length; }; /***/ }), /***/ "3a9b": /***/ (function(module, exports, __webpack_require__) { var uncurryThis = __webpack_require__("e330"); module.exports = uncurryThis({}.isPrototypeOf); /***/ }), /***/ "3b4a": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"); var defineProperty = (function() { try { var func = getNative(Object, 'defineProperty'); func({}, '', {}); return func; } catch (e) {} }()); module.exports = defineProperty; /***/ }), /***/ "3bbe": /***/ (function(module, exports, __webpack_require__) { var isCallable = __webpack_require__("1626"); var $String = String; var $TypeError = TypeError; module.exports = function (argument) { if (typeof argument == 'object' || isCallable(argument)) return argument; throw $TypeError("Can't set " + $String(argument) + ' as a prototype'); }; /***/ }), /***/ "3c35": /***/ (function(module, exports) { /* WEBPACK VAR INJECTION */(function(__webpack_amd_options__) {/* globals __webpack_amd_options__ */ module.exports = __webpack_amd_options__; /* WEBPACK VAR INJECTION */}.call(this, {})) /***/ }), /***/ "3c7c": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _constants = __webpack_require__("2a4a"); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var ITF = function (_Barcode) { _inherits(ITF, _Barcode); function ITF() { _classCallCheck(this, ITF); return _possibleConstructorReturn(this, (ITF.__proto__ || Object.getPrototypeOf(ITF)).apply(this, arguments)); } _createClass(ITF, [{ key: 'valid', value: function valid() { return this.data.search(/^([0-9]{2})+$/) !== -1; } }, { key: 'encode', value: function encode() { var _this2 = this; // Calculate all the digit pairs var encoded = this.data.match(/.{2}/g).map(function (pair) { return _this2.encodePair(pair); }).join(''); return { data: _constants.START_BIN + encoded + _constants.END_BIN, text: this.text }; } // Calculate the data of a number pair }, { key: 'encodePair', value: function encodePair(pair) { var second = _constants.BINARIES[pair[1]]; return _constants.BINARIES[pair[0]].split('').map(function (first, idx) { return (first === '1' ? '111' : '1') + (second[idx] === '1' ? '000' : '0'); }).join(''); } }]); return ITF; }(_Barcode3.default); exports.default = ITF; /***/ }), /***/ "3ca3": /***/ (function(module, exports, __webpack_require__) { "use strict"; var charAt = __webpack_require__("6547").charAt; var toString = __webpack_require__("577e"); var InternalStateModule = __webpack_require__("69f3"); var defineIterator = __webpack_require__("c6d2"); var createIterResultObject = __webpack_require__("4754"); var STRING_ITERATOR = 'String Iterator'; var setInternalState = InternalStateModule.set; var getInternalState = InternalStateModule.getterFor(STRING_ITERATOR); // `String.prototype[@@iterator]` method // https://tc39.es/ecma262/#sec-string.prototype-@@iterator defineIterator(String, 'String', function (iterated) { setInternalState(this, { type: STRING_ITERATOR, string: toString(iterated), index: 0 }); // `%StringIteratorPrototype%.next` method // https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next }, function next() { var state = getInternalState(this); var string = state.string; var index = state.index; var point; if (index >= string.length) return createIterResultObject(undefined, true); point = charAt(string, index); state.index += point.length; return createIterResultObject(point, false); }); /***/ }), /***/ "3f84": /***/ (function(module, exports, __webpack_require__) { var apply = __webpack_require__("85e3"), baseRest = __webpack_require__("100e"), customDefaultsMerge = __webpack_require__("e031"), mergeWith = __webpack_require__("2411"); /** * This method is like `_.defaults` except that it recursively assigns * default properties. * * **Note:** This method mutates `object`. * * @static * @memberOf _ * @since 3.10.0 * @category Object * @param {Object} object The destination object. * @param {...Object} [sources] The source objects. * @returns {Object} Returns `object`. * @see _.defaults * @example * * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } }); * // => { 'a': { 'b': 2, 'c': 3 } } */ var defaultsDeep = baseRest(function(args) { args.push(undefined, customDefaultsMerge); return apply(mergeWith, undefined, args); }); module.exports = defaultsDeep; /***/ }), /***/ "3f8c": /***/ (function(module, exports) { module.exports = {}; /***/ }), /***/ "408a": /***/ (function(module, exports, __webpack_require__) { var uncurryThis = __webpack_require__("e330"); // `thisNumberValue` abstract operation // https://tc39.es/ecma262/#sec-thisnumbervalue module.exports = uncurryThis(1.0.valueOf); /***/ }), /***/ "40d5": /***/ (function(module, exports, __webpack_require__) { var fails = __webpack_require__("d039"); module.exports = !fails(function () { // eslint-disable-next-line es/no-function-prototype-bind -- safe var test = (function () { /* empty */ }).bind(); // eslint-disable-next-line no-prototype-builtins -- safe return typeof test != 'function' || test.hasOwnProperty('prototype'); }); /***/ }), /***/ "41c3": /***/ (function(module, exports, __webpack_require__) { var isObject = __webpack_require__("1a8c"), isPrototype = __webpack_require__("eac5"), nativeKeysIn = __webpack_require__("ec8c"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function baseKeysIn(object) { if (!isObject(object)) { return nativeKeysIn(object); } var isProto = isPrototype(object), result = []; for (var key in object) { if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) { result.push(key); } } return result; } module.exports = baseKeysIn; /***/ }), /***/ "4245": /***/ (function(module, exports, __webpack_require__) { var isKeyable = __webpack_require__("1290"); /** * Gets the data for `map`. * * @private * @param {Object} map The map to query. * @param {string} key The reference key. * @returns {*} Returns the map data. */ function getMapData(map, key) { var data = map.__data__; return isKeyable(key) ? data[typeof key == 'string' ? 'string' : 'hash'] : data.map; } module.exports = getMapData; /***/ }), /***/ "428f": /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__("da84"); module.exports = global; /***/ }), /***/ "42a2": /***/ (function(module, exports, __webpack_require__) { var DataView = __webpack_require__("b5a7"), Map = __webpack_require__("79bc"), Promise = __webpack_require__("1cec"), Set = __webpack_require__("c869"), WeakMap = __webpack_require__("39ff"), baseGetTag = __webpack_require__("3729"), toSource = __webpack_require__("dc57"); /** `Object#toString` result references. */ var mapTag = '[object Map]', objectTag = '[object Object]', promiseTag = '[object Promise]', setTag = '[object Set]', weakMapTag = '[object WeakMap]'; var dataViewTag = '[object DataView]'; /** Used to detect maps, sets, and weakmaps. */ var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap); /** * Gets the `toStringTag` of `value`. * * @private * @param {*} value The value to query. * @returns {string} Returns the `toStringTag`. */ var getTag = baseGetTag; // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6. if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) || (Map && getTag(new Map) != mapTag) || (Promise && getTag(Promise.resolve()) != promiseTag) || (Set && getTag(new Set) != setTag) || (WeakMap && getTag(new WeakMap) != weakMapTag)) { getTag = function(value) { var result = baseGetTag(value), Ctor = result == objectTag ? value.constructor : undefined, ctorString = Ctor ? toSource(Ctor) : ''; if (ctorString) { switch (ctorString) { case dataViewCtorString: return dataViewTag; case mapCtorString: return mapTag; case promiseCtorString: return promiseTag; case setCtorString: return setTag; case weakMapCtorString: return weakMapTag; } } return result; }; } module.exports = getTag; /***/ }), /***/ "4359": /***/ (function(module, exports) { /** * Copies the values of `source` to `array`. * * @private * @param {Array} source The array to copy values from. * @param {Array} [array=[]] The array to copy values to. * @returns {Array} Returns `array`. */ function copyArray(source, array) { var index = -1, length = source.length; array || (array = Array(length)); while (++index < length) { array[index] = source[index]; } return array; } module.exports = copyArray; /***/ }), /***/ "4362": /***/ (function(module, exports, __webpack_require__) { exports.nextTick = function nextTick(fn) { var args = Array.prototype.slice.call(arguments); args.shift(); setTimeout(function () { fn.apply(null, args); }, 0); }; exports.platform = exports.arch = exports.execPath = exports.title = 'browser'; exports.pid = 1; exports.browser = true; exports.env = {}; exports.argv = []; exports.binding = function (name) { throw new Error('No such module. (Possibly not yet loaded)') }; (function () { var cwd = '/'; var path; exports.cwd = function () { return cwd }; exports.chdir = function (dir) { if (!path) path = __webpack_require__("df7c"); cwd = path.resolve(dir, cwd); }; })(); exports.exit = exports.kill = exports.umask = exports.dlopen = exports.uptime = exports.memoryUsage = exports.uvCounters = function() {}; exports.features = {}; /***/ }), /***/ "4461": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _MSI2 = __webpack_require__("124f"); var _MSI3 = _interopRequireDefault(_MSI2); var _checksums = __webpack_require__("6e53"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var MSI11 = function (_MSI) { _inherits(MSI11, _MSI); function MSI11(data, options) { _classCallCheck(this, MSI11); return _possibleConstructorReturn(this, (MSI11.__proto__ || Object.getPrototypeOf(MSI11)).call(this, data + (0, _checksums.mod11)(data), options)); } return MSI11; }(_MSI3.default); exports.default = MSI11; /***/ }), /***/ "44ad": /***/ (function(module, exports, __webpack_require__) { var uncurryThis = __webpack_require__("e330"); var fails = __webpack_require__("d039"); var classof = __webpack_require__("c6b6"); var $Object = Object; var split = uncurryThis(''.split); // fallback for non-array-like ES3 and non-enumerable old V8 strings module.exports = fails(function () { // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346 // eslint-disable-next-line no-prototype-builtins -- safe return !$Object('z').propertyIsEnumerable(0); }) ? function (it) { return classof(it) == 'String' ? split(it, '') : $Object(it); } : $Object; /***/ }), /***/ "44d2": /***/ (function(module, exports, __webpack_require__) { var wellKnownSymbol = __webpack_require__("b622"); var create = __webpack_require__("7c73"); var defineProperty = __webpack_require__("9bf2").f; var UNSCOPABLES = wellKnownSymbol('unscopables'); var ArrayPrototype = Array.prototype; // Array.prototype[@@unscopables] // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables if (ArrayPrototype[UNSCOPABLES] == undefined) { defineProperty(ArrayPrototype, UNSCOPABLES, { configurable: true, value: create(null) }); } // add a key to Array.prototype[@@unscopables] module.exports = function (key) { ArrayPrototype[UNSCOPABLES][key] = true; }; /***/ }), /***/ "44de": /***/ (function(module, exports) { module.exports = function (a, b) { try { // eslint-disable-next-line no-console -- safe arguments.length == 1 ? console.error(a) : console.error(a, b); } catch (error) { /* empty */ } }; /***/ }), /***/ "44e7": /***/ (function(module, exports, __webpack_require__) { var isObject = __webpack_require__("861d"); var classof = __webpack_require__("c6b6"); var wellKnownSymbol = __webpack_require__("b622"); var MATCH = wellKnownSymbol('match'); // `IsRegExp` abstract operation // https://tc39.es/ecma262/#sec-isregexp module.exports = function (it) { var isRegExp; return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp'); }; /***/ }), /***/ "4625": /***/ (function(module, exports, __webpack_require__) { var classofRaw = __webpack_require__("c6b6"); var uncurryThis = __webpack_require__("e330"); module.exports = function (fn) { // Nashorn bug: // https://github.com/zloirock/core-js/issues/1128 // https://github.com/zloirock/core-js/issues/1130 if (classofRaw(fn) === 'Function') return uncurryThis(fn); }; /***/ }), /***/ "466d": /***/ (function(module, exports, __webpack_require__) { "use strict"; var call = __webpack_require__("c65b"); var fixRegExpWellKnownSymbolLogic = __webpack_require__("d784"); var anObject = __webpack_require__("825a"); var isNullOrUndefined = __webpack_require__("7234"); var toLength = __webpack_require__("50c4"); var toString = __webpack_require__("577e"); var requireObjectCoercible = __webpack_require__("1d80"); var getMethod = __webpack_require__("dc4a"); var advanceStringIndex = __webpack_require__("8aa5"); var regExpExec = __webpack_require__("14c3"); // @@match logic fixRegExpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNative) { return [ // `String.prototype.match` method // https://tc39.es/ecma262/#sec-string.prototype.match function match(regexp) { var O = requireObjectCoercible(this); var matcher = isNullOrUndefined(regexp) ? undefined : getMethod(regexp, MATCH); return matcher ? call(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString(O)); }, // `RegExp.prototype[@@match]` method // https://tc39.es/ecma262/#sec-regexp.prototype-@@match function (string) { var rx = anObject(this); var S = toString(string); var res = maybeCallNative(nativeMatch, rx, S); if (res.done) return res.value; if (!rx.global) return regExpExec(rx, S); var fullUnicode = rx.unicode; rx.lastIndex = 0; var A = []; var n = 0; var result; while ((result = regExpExec(rx, S)) !== null) { var matchStr = toString(result[0]); A[n] = matchStr; if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode); n++; } return n === 0 ? null : A; } ]; }); /***/ }), /***/ "467f": /***/ (function(module, exports, __webpack_require__) { "use strict"; var createError = __webpack_require__("2d83"); /** * Resolve or reject a Promise based on response status. * * @param {Function} resolve A function that resolves the promise. * @param {Function} reject A function that rejects the promise. * @param {object} response The response. */ module.exports = function settle(resolve, reject, response) { var validateStatus = response.config.validateStatus; if (!response.status || !validateStatus || validateStatus(response.status)) { resolve(response); } else { reject(createError( 'Request failed with status code ' + response.status, response.config, null, response.request, response )); } }; /***/ }), /***/ "4727": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _MSI2 = __webpack_require__("124f"); var _MSI3 = _interopRequireDefault(_MSI2); var _checksums = __webpack_require__("6e53"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var MSI10 = function (_MSI) { _inherits(MSI10, _MSI); function MSI10(data, options) { _classCallCheck(this, MSI10); return _possibleConstructorReturn(this, (MSI10.__proto__ || Object.getPrototypeOf(MSI10)).call(this, data + (0, _checksums.mod10)(data), options)); } return MSI10; }(_MSI3.default); exports.default = MSI10; /***/ }), /***/ "4738": /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__("da84"); var NativePromiseConstructor = __webpack_require__("d256"); var isCallable = __webpack_require__("1626"); var isForced = __webpack_require__("94ca"); var inspectSource = __webpack_require__("8925"); var wellKnownSymbol = __webpack_require__("b622"); var IS_BROWSER = __webpack_require__("6069"); var IS_DENO = __webpack_require__("6c59"); var IS_PURE = __webpack_require__("c430"); var V8_VERSION = __webpack_require__("2d00"); var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype; var SPECIES = wellKnownSymbol('species'); var SUBCLASSING = false; var NATIVE_PROMISE_REJECTION_EVENT = isCallable(global.PromiseRejectionEvent); var FORCED_PROMISE_CONSTRUCTOR = isForced('Promise', function () { var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor); var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor); // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables // https://bugs.chromium.org/p/chromium/issues/detail?id=830565 // We can't detect it synchronously, so just check versions if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true; // We need Promise#{ catch, finally } in the pure version for preventing prototype pollution if (IS_PURE && !(NativePromisePrototype['catch'] && NativePromisePrototype['finally'])) return true; // We can't use @@species feature detection in V8 since it causes // deoptimization and performance degradation // https://github.com/zloirock/core-js/issues/679 if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) { // Detect correctness of subclassing with @@species support var promise = new NativePromiseConstructor(function (resolve) { resolve(1); }); var FakePromise = function (exec) { exec(function () { /* empty */ }, function () { /* empty */ }); }; var constructor = promise.constructor = {}; constructor[SPECIES] = FakePromise; SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise; if (!SUBCLASSING) return true; // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT; }); module.exports = { CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR, REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT, SUBCLASSING: SUBCLASSING }; /***/ }), /***/ "4754": /***/ (function(module, exports) { // `CreateIterResultObject` abstract operation // https://tc39.es/ecma262/#sec-createiterresultobject module.exports = function (value, done) { return { value: value, done: done }; }; /***/ }), /***/ "4840": /***/ (function(module, exports, __webpack_require__) { var anObject = __webpack_require__("825a"); var aConstructor = __webpack_require__("5087"); var isNullOrUndefined = __webpack_require__("7234"); var wellKnownSymbol = __webpack_require__("b622"); var SPECIES = wellKnownSymbol('species'); // `SpeciesConstructor` abstract operation // https://tc39.es/ecma262/#sec-speciesconstructor module.exports = function (O, defaultConstructor) { var C = anObject(O).constructor; var S; return C === undefined || isNullOrUndefined(S = anObject(C)[SPECIES]) ? defaultConstructor : aConstructor(S); }; /***/ }), /***/ "485a": /***/ (function(module, exports, __webpack_require__) { var call = __webpack_require__("c65b"); var isCallable = __webpack_require__("1626"); var isObject = __webpack_require__("861d"); var $TypeError = TypeError; // `OrdinaryToPrimitive` abstract operation // https://tc39.es/ecma262/#sec-ordinarytoprimitive module.exports = function (input, pref) { var fn, val; if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val; if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val; if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val; throw $TypeError("Can't convert object to primitive value"); }; /***/ }), /***/ "498a": /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__("23e7"); var $trim = __webpack_require__("58a8").trim; var forcedStringTrimMethod = __webpack_require__("c8d2"); // `String.prototype.trim` method // https://tc39.es/ecma262/#sec-string.prototype.trim $({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, { trim: function trim() { return $trim(this); } }); /***/ }), /***/ "49f4": /***/ (function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__("6044"); /** * Removes all key-value entries from the hash. * * @private * @name clear * @memberOf Hash */ function hashClear() { this.__data__ = nativeCreate ? nativeCreate(null) : {}; this.size = 0; } module.exports = hashClear; /***/ }), /***/ "4a37": /***/ (function(module, exports, __webpack_require__) { !function(t,e){ true?module.exports=e():undefined}(this,function(){return function(t){function e(o){if(r[o])return r[o].exports;var n=r[o]={exports:{},id:o,loaded:!1};return t[o].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";t.exports=r(3)},function(t,e){"use strict";!function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert first argument to object");for(var e=Object(t),r=1;r<arguments.length;r++){var o=arguments[r];if(void 0!==o&&null!==o){o=Object(o);for(var n=Object.keys(Object(o)),i=0,a=n.length;i<a;i++){var s=n[i],u=Object.getOwnPropertyDescriptor(o,s);void 0!==u&&u.enumerable&&(e[s]=o[s])}}}return e}})}()},function(t,e){"use strict";t.exports=function(){var t={};return t.utf16to8=function(t){var e,r,o,n;for(e="",o=t.length,r=0;r<o;r++)n=t.charCodeAt(r),n>=1&&n<=127?e+=t.charAt(r):n>2047?(e+=String.fromCharCode(224|n>>12&15),e+=String.fromCharCode(128|n>>6&63),e+=String.fromCharCode(128|n>>0&63)):(e+=String.fromCharCode(192|n>>6&31),e+=String.fromCharCode(128|n>>0&63));return e},t.utf8to16=function(t){var e,r,o,n,i,a;for(e="",o=t.length,r=0;r<o;)switch(n=t.charCodeAt(r++),n>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:e+=t.charAt(r-1);break;case 12:case 13:i=t.charCodeAt(r++),e+=String.fromCharCode((31&n)<<6|63&i);break;case 14:i=t.charCodeAt(r++),a=t.charCodeAt(r++),e+=String.fromCharCode((15&n)<<12|(63&i)<<6|(63&a)<<0)}return e},t}()},function(t,e,r){"use strict";r(1),r(4);var o=r(2),n=function(){function t(t){var e=new QRCode(t.typeNumber,t.correctLevel);e.addData(t.text),e.make();var r=document.createElement("canvas");r.width=t.width,r.height=t.height;var o=r.getContext("2d"),n=(t.width-2*t.padding)/e.getModuleCount(),i=(t.height-2*t.padding)/e.getModuleCount();if(t.reverse){var a="rgba(0, 0, 0, 0)";o.fillStyle=a,t.foreground=a}else o.fillStyle=t.background;o.fillRect(0,0,r.width,r.height);for(var s=0;s<e.getModuleCount();s++)for(var u=0;u<e.getModuleCount();u++){o.fillStyle=e.isDark(s,u)?t.foreground:t.background;var h=Math.ceil((u+1)*n)-Math.floor(u*n),f=Math.ceil((s+1)*n)-Math.floor(s*n);o.fillRect(Math.round(u*n)+t.padding,Math.round(s*i)+t.padding,h,f)}return r}var e={};return e.getQrBase64=function(e,r){"string"!=typeof e&&(e=""),"string"==typeof r?r={text:r}:"object"!=typeof r&&(r={}),r=Object.assign({padding:10,width:256,height:256,typeNumber:-1,correctLevel:QRErrorCorrectLevel.H,reverse:!1,background:"#ffffff",foreground:"#000000"},r);try{r.text=o.utf16to8(e)}catch(t){r.text=""+t}var n=t(r);return n.toDataURL()},e.QRErrorCorrectLevel=QRErrorCorrectLevel,e}();!window.jrQrcode&&(window.jrQrcode=n),t.exports=n},function(t,e){function r(t){this.mode=s.MODE_8BIT_BYTE,this.data=t}function o(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=new Array}function n(t,e){if(void 0==t.length)throw new Error(t.length+"/"+e);for(var r=0;r<t.length&&0==t[r];)r++;this.num=new Array(t.length-r+e);for(var o=0;o<t.length-r;o++)this.num[o]=t[o+r]}function i(t,e){this.totalCount=t,this.dataCount=e}function a(){this.buffer=new Array,this.length=0}r.prototype={getLength:function(t){return this.data.length},write:function(t){for(var e=0;e<this.data.length;e++)t.put(this.data.charCodeAt(e),8)}},o.prototype={addData:function(t){var e=new r(t);this.dataList.push(e),this.dataCache=null},isDark:function(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error(t+","+e);return this.modules[t][e]},getModuleCount:function(){return this.moduleCount},make:function(){if(this.typeNumber<1){var t=1;for(t=1;t<40;t++){for(var e=i.getRSBlocks(t,this.errorCorrectLevel),r=new a,o=0,n=0;n<e.length;n++)o+=e[n].dataCount;for(var n=0;n<this.dataList.length;n++){var s=this.dataList[n];r.put(s.mode,4),r.put(s.getLength(),f.getLengthInBits(s.mode,t)),s.write(r)}if(r.getLengthInBits()<=8*o)break}this.typeNumber=t}this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(t,e){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++){this.modules[r]=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++)this.modules[r][n]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(t,e),this.typeNumber>=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=o.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(t,e){for(var r=-1;r<=7;r++)if(!(t+r<=-1||this.moduleCount<=t+r))for(var o=-1;o<=7;o++)e+o<=-1||this.moduleCount<=e+o||(0<=r&&r<=6&&(0==o||6==o)||0<=o&&o<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=o&&o<=4?this.modules[t+r][e+o]=!0:this.modules[t+r][e+o]=!1)},getBestMaskPattern:function(){for(var t=0,e=0,r=0;r<8;r++){this.makeImpl(!0,r);var o=f.getLostPoint(this);(0==r||t>o)&&(t=o,e=r)}return e},createMovieClip:function(t,e,r){var o=t.createEmptyMovieClip(e,r),n=1;this.make();for(var i=0;i<this.modules.length;i++)for(var a=i*n,s=0;s<this.modules[i].length;s++){var u=s*n,h=this.modules[i][s];h&&(o.beginFill(0,100),o.moveTo(u,a),o.lineTo(u+n,a),o.lineTo(u+n,a+n),o.lineTo(u,a+n),o.endFill())}return o},setupTimingPattern:function(){for(var t=8;t<this.moduleCount-8;t++)null==this.modules[t][6]&&(this.modules[t][6]=t%2==0);for(var e=8;e<this.moduleCount-8;e++)null==this.modules[6][e]&&(this.modules[6][e]=e%2==0)},setupPositionAdjustPattern:function(){for(var t=f.getPatternPosition(this.typeNumber),e=0;e<t.length;e++)for(var r=0;r<t.length;r++){var o=t[e],n=t[r];if(null==this.modules[o][n])for(var i=-2;i<=2;i++)for(var a=-2;a<=2;a++)i==-2||2==i||a==-2||2==a||0==i&&0==a?this.modules[o+i][n+a]=!0:this.modules[o+i][n+a]=!1}},setupTypeNumber:function(t){for(var e=f.getBCHTypeNumber(this.typeNumber),r=0;r<18;r++){var o=!t&&1==(e>>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=o}for(var r=0;r<18;r++){var o=!t&&1==(e>>r&1);this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=o}},setupTypeInfo:function(t,e){for(var r=this.errorCorrectLevel<<3|e,o=f.getBCHTypeInfo(r),n=0;n<15;n++){var i=!t&&1==(o>>n&1);n<6?this.modules[n][8]=i:n<8?this.modules[n+1][8]=i:this.modules[this.moduleCount-15+n][8]=i}for(var n=0;n<15;n++){var i=!t&&1==(o>>n&1);n<8?this.modules[8][this.moduleCount-n-1]=i:n<9?this.modules[8][15-n-1+1]=i:this.modules[8][15-n-1]=i}this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var r=-1,o=this.moduleCount-1,n=7,i=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var s=0;s<2;s++)if(null==this.modules[o][a-s]){var u=!1;i<t.length&&(u=1==(t[i]>>>n&1));var h=f.getMask(e,o,a-s);h&&(u=!u),this.modules[o][a-s]=u,n--,n==-1&&(i++,n=7)}if(o+=r,o<0||this.moduleCount<=o){o-=r,r=-r;break}}}},o.PAD0=236,o.PAD1=17,o.createData=function(t,e,r){for(var n=i.getRSBlocks(t,e),s=new a,u=0;u<r.length;u++){var h=r[u];s.put(h.mode,4),s.put(h.getLength(),f.getLengthInBits(h.mode,t)),h.write(s)}for(var l=0,u=0;u<n.length;u++)l+=n[u].dataCount;if(s.getLengthInBits()>8*l)throw new Error("code length overflow. ("+s.getLengthInBits()+">"+8*l+")");for(s.getLengthInBits()+4<=8*l&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;;){if(s.getLengthInBits()>=8*l)break;if(s.put(o.PAD0,8),s.getLengthInBits()>=8*l)break;s.put(o.PAD1,8)}return o.createBytes(s,n)},o.createBytes=function(t,e){for(var r=0,o=0,i=0,a=new Array(e.length),s=new Array(e.length),u=0;u<e.length;u++){var h=e[u].dataCount,l=e[u].totalCount-h;o=Math.max(o,h),i=Math.max(i,l),a[u]=new Array(h);for(var g=0;g<a[u].length;g++)a[u][g]=255&t.buffer[g+r];r+=h;var c=f.getErrorCorrectPolynomial(l),d=new n(a[u],c.getLength()-1),v=d.mod(c);s[u]=new Array(c.getLength()-1);for(var g=0;g<s[u].length;g++){var m=g+v.getLength()-s[u].length;s[u][g]=m>=0?v.get(m):0}}for(var p=0,g=0;g<e.length;g++)p+=e[g].totalCount;for(var C=new Array(p),E=0,g=0;g<o;g++)for(var u=0;u<e.length;u++)g<a[u].length&&(C[E++]=a[u][g]);for(var g=0;g<i;g++)for(var u=0;u<e.length;u++)g<s[u].length&&(C[E++]=s[u][g]);return C};for(var s={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},u={L:1,M:0,Q:3,H:2},h={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},f={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(t){for(var e=t<<10;f.getBCHDigit(e)-f.getBCHDigit(f.G15)>=0;)e^=f.G15<<f.getBCHDigit(e)-f.getBCHDigit(f.G15);return(t<<10|e)^f.G15_MASK},getBCHTypeNumber:function(t){for(var e=t<<12;f.getBCHDigit(e)-f.getBCHDigit(f.G18)>=0;)e^=f.G18<<f.getBCHDigit(e)-f.getBCHDigit(f.G18);return t<<12|e},getBCHDigit:function(t){for(var e=0;0!=t;)e++,t>>>=1;return e},getPatternPosition:function(t){return f.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,r){switch(t){case h.PATTERN000:return(e+r)%2==0;case h.PATTERN001:return e%2==0;case h.PATTERN010:return r%3==0;case h.PATTERN011:return(e+r)%3==0;case h.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case h.PATTERN101:return e*r%2+e*r%3==0;case h.PATTERN110:return(e*r%2+e*r%3)%2==0;case h.PATTERN111:return(e*r%3+(e+r)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new n([1],0),r=0;r<t;r++)e=e.multiply(new n([1,l.gexp(r)],0));return e},getLengthInBits:function(t,e){if(1<=e&&e<10)switch(t){case s.MODE_NUMBER:return 10;case s.MODE_ALPHA_NUM:return 9;case s.MODE_8BIT_BYTE:return 8;case s.MODE_KANJI:return 8;default:throw new Error("mode:"+t)}else if(e<27)switch(t){case s.MODE_NUMBER:return 12;case s.MODE_ALPHA_NUM:return 11;case s.MODE_8BIT_BYTE:return 16;case s.MODE_KANJI:return 10;default:throw new Error("mode:"+t)}else{if(!(e<41))throw new Error("type:"+e);switch(t){case s.MODE_NUMBER:return 14;case s.MODE_ALPHA_NUM:return 13;case s.MODE_8BIT_BYTE:return 16;case s.MODE_KANJI:return 12;default:throw new Error("mode:"+t)}}},getLostPoint:function(t){for(var e=t.getModuleCount(),r=0,o=0;o<e;o++)for(var n=0;n<e;n++){for(var i=0,a=t.isDark(o,n),s=-1;s<=1;s++)if(!(o+s<0||e<=o+s))for(var u=-1;u<=1;u++)n+u<0||e<=n+u||0==s&&0==u||a==t.isDark(o+s,n+u)&&i++;i>5&&(r+=3+i-5)}for(var o=0;o<e-1;o++)for(var n=0;n<e-1;n++){var h=0;t.isDark(o,n)&&h++,t.isDark(o+1,n)&&h++,t.isDark(o,n+1)&&h++,t.isDark(o+1,n+1)&&h++,0!=h&&4!=h||(r+=3)}for(var o=0;o<e;o++)for(var n=0;n<e-6;n++)t.isDark(o,n)&&!t.isDark(o,n+1)&&t.isDark(o,n+2)&&t.isDark(o,n+3)&&t.isDark(o,n+4)&&!t.isDark(o,n+5)&&t.isDark(o,n+6)&&(r+=40);for(var n=0;n<e;n++)for(var o=0;o<e-6;o++)t.isDark(o,n)&&!t.isDark(o+1,n)&&t.isDark(o+2,n)&&t.isDark(o+3,n)&&t.isDark(o+4,n)&&!t.isDark(o+5,n)&&t.isDark(o+6,n)&&(r+=40);for(var f=0,n=0;n<e;n++)for(var o=0;o<e;o++)t.isDark(o,n)&&f++;var l=Math.abs(100*f/e/e-50)/5;return r+=10*l}},l={glog:function(t){if(t<1)throw new Error("glog("+t+")");return l.LOG_TABLE[t]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return l.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},g=0;g<8;g++)l.EXP_TABLE[g]=1<<g;for(var g=8;g<256;g++)l.EXP_TABLE[g]=l.EXP_TABLE[g-4]^l.EXP_TABLE[g-5]^l.EXP_TABLE[g-6]^l.EXP_TABLE[g-8];for(var g=0;g<255;g++)l.LOG_TABLE[l.EXP_TABLE[g]]=g;n.prototype={get:function(t){return this.num[t]},getLength:function(){return this.num.length},multiply:function(t){for(var e=new Array(this.getLength()+t.getLength()-1),r=0;r<this.getLength();r++)for(var o=0;o<t.getLength();o++)e[r+o]^=l.gexp(l.glog(this.get(r))+l.glog(t.get(o)));return new n(e,0)},mod:function(t){if(this.getLength()-t.getLength()<0)return this;for(var e=l.glog(this.get(0))-l.glog(t.get(0)),r=new Array(this.getLength()),o=0;o<this.getLength();o++)r[o]=this.get(o);for(var o=0;o<t.getLength();o++)r[o]^=l.gexp(l.glog(t.get(o))+e);return new n(r,0).mod(t)}},i.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],i.getRSBlocks=function(t,e){var r=i.getRsBlockTable(t,e);if(void 0==r)throw new Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+e);for(var o=r.length/3,n=new Array,a=0;a<o;a++)for(var s=r[3*a+0],u=r[3*a+1],h=r[3*a+2],f=0;f<s;f++)n.push(new i(u,h));return n},i.getRsBlockTable=function(t,e){switch(e){case u.L:return i.RS_BLOCK_TABLE[4*(t-1)+0];case u.M:return i.RS_BLOCK_TABLE[4*(t-1)+1];case u.Q:return i.RS_BLOCK_TABLE[4*(t-1)+2];case u.H:return i.RS_BLOCK_TABLE[4*(t-1)+3];default:return}},a.prototype={get:function(t){var e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(var r=0;r<e;r++)this.putBit(1==(t>>>e-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},window.QRCode=o,window.QRErrorCorrectLevel=u;try{t.exports={QRCode:o,QRErrorCorrectLevel:u}}catch(t){}}])}); /***/ }), /***/ "4a7b": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); /** * Config-specific merge-function which creates a new config-object * by merging two configuration objects together. * * @param {Object} config1 * @param {Object} config2 * @returns {Object} New object resulting from merging config2 to config1 */ module.exports = function mergeConfig(config1, config2) { // eslint-disable-next-line no-param-reassign config2 = config2 || {}; var config = {}; var valueFromConfig2Keys = ['url', 'method', 'data']; var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params']; var defaultToConfig2Keys = [ 'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer', 'timeout', 'timeoutMessage', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName', 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'decompress', 'maxContentLength', 'maxBodyLength', 'maxRedirects', 'transport', 'httpAgent', 'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding' ]; var directMergeKeys = ['validateStatus']; function getMergedValue(target, source) { if (utils.isPlainObject(target) && utils.isPlainObject(source)) { return utils.merge(target, source); } else if (utils.isPlainObject(source)) { return utils.merge({}, source); } else if (utils.isArray(source)) { return source.slice(); } return source; } function mergeDeepProperties(prop) { if (!utils.isUndefined(config2[prop])) { config[prop] = getMergedValue(config1[prop], config2[prop]); } else if (!utils.isUndefined(config1[prop])) { config[prop] = getMergedValue(undefined, config1[prop]); } } utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) { if (!utils.isUndefined(config2[prop])) { config[prop] = getMergedValue(undefined, config2[prop]); } }); utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties); utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) { if (!utils.isUndefined(config2[prop])) { config[prop] = getMergedValue(undefined, config2[prop]); } else if (!utils.isUndefined(config1[prop])) { config[prop] = getMergedValue(undefined, config1[prop]); } }); utils.forEach(directMergeKeys, function merge(prop) { if (prop in config2) { config[prop] = getMergedValue(config1[prop], config2[prop]); } else if (prop in config1) { config[prop] = getMergedValue(undefined, config1[prop]); } }); var axiosKeys = valueFromConfig2Keys .concat(mergeDeepPropertiesKeys) .concat(defaultToConfig2Keys) .concat(directMergeKeys); var otherKeys = Object .keys(config1) .concat(Object.keys(config2)) .filter(function filterAxiosKeys(key) { return axiosKeys.indexOf(key) === -1; }); utils.forEach(otherKeys, mergeDeepProperties); return config; }; /***/ }), /***/ "4ae1": /***/ (function(module, exports, __webpack_require__) { var $ = __webpack_require__("23e7"); var getBuiltIn = __webpack_require__("d066"); var apply = __webpack_require__("2ba4"); var bind = __webpack_require__("0538"); var aConstructor = __webpack_require__("5087"); var anObject = __webpack_require__("825a"); var isObject = __webpack_require__("861d"); var create = __webpack_require__("7c73"); var fails = __webpack_require__("d039"); var nativeConstruct = getBuiltIn('Reflect', 'construct'); var ObjectPrototype = Object.prototype; var push = [].push; // `Reflect.construct` method // https://tc39.es/ecma262/#sec-reflect.construct // MS Edge supports only 2 arguments and argumentsList argument is optional // FF Nightly sets third argument as `new.target`, but does not create `this` from it var NEW_TARGET_BUG = fails(function () { function F() { /* empty */ } return !(nativeConstruct(function () { /* empty */ }, [], F) instanceof F); }); var ARGS_BUG = !fails(function () { nativeConstruct(function () { /* empty */ }); }); var FORCED = NEW_TARGET_BUG || ARGS_BUG; $({ target: 'Reflect', stat: true, forced: FORCED, sham: FORCED }, { construct: function construct(Target, args /* , newTarget */) { aConstructor(Target); anObject(args); var newTarget = arguments.length < 3 ? Target : aConstructor(arguments[2]); if (ARGS_BUG && !NEW_TARGET_BUG) return nativeConstruct(Target, args, newTarget); if (Target == newTarget) { // w/o altered newTarget, optimization for 0-4 arguments switch (args.length) { case 0: return new Target(); case 1: return new Target(args[0]); case 2: return new Target(args[0], args[1]); case 3: return new Target(args[0], args[1], args[2]); case 4: return new Target(args[0], args[1], args[2], args[3]); } // w/o altered newTarget, lot of arguments case var $args = [null]; apply(push, $args, args); return new (apply(bind, Target, $args))(); } // with altered newTarget, not support built-in constructors var proto = newTarget.prototype; var instance = create(isObject(proto) ? proto : ObjectPrototype); var result = apply(Target, instance, args); return isObject(result) ? result : instance; } }); /***/ }), /***/ "4b23": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); var _constants = __webpack_require__("f08e"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // This is the master class, // it does require the start code to be included in the string var CODE128 = function (_Barcode) { _inherits(CODE128, _Barcode); function CODE128(data, options) { _classCallCheck(this, CODE128); // Get array of ascii codes from data var _this = _possibleConstructorReturn(this, (CODE128.__proto__ || Object.getPrototypeOf(CODE128)).call(this, data.substring(1), options)); _this.bytes = data.split('').map(function (char) { return char.charCodeAt(0); }); return _this; } _createClass(CODE128, [{ key: 'valid', value: function valid() { // ASCII value ranges 0-127, 200-211 return (/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data) ); } // The public encoding function }, { key: 'encode', value: function encode() { var bytes = this.bytes; // Remove the start code from the bytes and set its index var startIndex = bytes.shift() - 105; // Get start set by index var startSet = _constants.SET_BY_CODE[startIndex]; if (startSet === undefined) { throw new RangeError('The encoding does not start with a start character.'); } if (this.shouldEncodeAsEan128() === true) { bytes.unshift(_constants.FNC1); } // Start encode with the right type var encodingResult = CODE128.next(bytes, 1, startSet); return { text: this.text === this.data ? this.text.replace(/[^\x20-\x7E]/g, '') : this.text, data: // Add the start bits CODE128.getBar(startIndex) + // Add the encoded bits encodingResult.result + // Add the checksum CODE128.getBar((encodingResult.checksum + startIndex) % _constants.MODULO) + // Add the end bits CODE128.getBar(_constants.STOP) }; } // GS1-128/EAN-128 }, { key: 'shouldEncodeAsEan128', value: function shouldEncodeAsEan128() { var isEAN128 = this.options.ean128 || false; if (typeof isEAN128 === 'string') { isEAN128 = isEAN128.toLowerCase() === 'true'; } return isEAN128; } // Get a bar symbol by index }], [{ key: 'getBar', value: function getBar(index) { return _constants.BARS[index] ? _constants.BARS[index].toString() : ''; } // Correct an index by a set and shift it from the bytes array }, { key: 'correctIndex', value: function correctIndex(bytes, set) { if (set === _constants.SET_A) { var charCode = bytes.shift(); return charCode < 32 ? charCode + 64 : charCode - 32; } else if (set === _constants.SET_B) { return bytes.shift() - 32; } else { return (bytes.shift() - 48) * 10 + bytes.shift() - 48; } } }, { key: 'next', value: function next(bytes, pos, set) { if (!bytes.length) { return { result: '', checksum: 0 }; } var nextCode = void 0, index = void 0; // Special characters if (bytes[0] >= 200) { index = bytes.shift() - 105; var nextSet = _constants.SWAP[index]; // Swap to other set if (nextSet !== undefined) { nextCode = CODE128.next(bytes, pos + 1, nextSet); } // Continue on current set but encode a special character else { // Shift if ((set === _constants.SET_A || set === _constants.SET_B) && index === _constants.SHIFT) { // Convert the next character so that is encoded correctly bytes[0] = set === _constants.SET_A ? bytes[0] > 95 ? bytes[0] - 96 : bytes[0] : bytes[0] < 32 ? bytes[0] + 96 : bytes[0]; } nextCode = CODE128.next(bytes, pos + 1, set); } } // Continue encoding else { index = CODE128.correctIndex(bytes, set); nextCode = CODE128.next(bytes, pos + 1, set); } // Get the correct binary encoding and calculate the weight var enc = CODE128.getBar(index); var weight = index * pos; return { result: enc + nextCode.result, checksum: weight + nextCode.checksum }; } }]); return CODE128; }(_Barcode3.default); exports.default = CODE128; /***/ }), /***/ "4ced": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var ObjectRenderer = function () { function ObjectRenderer(object, encodings, options) { _classCallCheck(this, ObjectRenderer); this.object = object; this.encodings = encodings; this.options = options; } _createClass(ObjectRenderer, [{ key: "render", value: function render() { this.object.encodings = this.encodings; } }]); return ObjectRenderer; }(); exports.default = ObjectRenderer; /***/ }), /***/ "4d63": /***/ (function(module, exports, __webpack_require__) { var DESCRIPTORS = __webpack_require__("83ab"); var global = __webpack_require__("da84"); var uncurryThis = __webpack_require__("e330"); var isForced = __webpack_require__("94ca"); var inheritIfRequired = __webpack_require__("7156"); var createNonEnumerableProperty = __webpack_require__("9112"); var getOwnPropertyNames = __webpack_require__("241c").f; var isPrototypeOf = __webpack_require__("3a9b"); var isRegExp = __webpack_require__("44e7"); var toString = __webpack_require__("577e"); var getRegExpFlags = __webpack_require__("90d8"); var stickyHelpers = __webpack_require__("9f7f"); var proxyAccessor = __webpack_require__("aeb0"); var defineBuiltIn = __webpack_require__("cb2d"); var fails = __webpack_require__("d039"); var hasOwn = __webpack_require__("1a2d"); var enforceInternalState = __webpack_require__("69f3").enforce; var setSpecies = __webpack_require__("2626"); var wellKnownSymbol = __webpack_require__("b622"); var UNSUPPORTED_DOT_ALL = __webpack_require__("fce3"); var UNSUPPORTED_NCG = __webpack_require__("107c"); var MATCH = wellKnownSymbol('match'); var NativeRegExp = global.RegExp; var RegExpPrototype = NativeRegExp.prototype; var SyntaxError = global.SyntaxError; var exec = uncurryThis(RegExpPrototype.exec); var charAt = uncurryThis(''.charAt); var replace = uncurryThis(''.replace); var stringIndexOf = uncurryThis(''.indexOf); var stringSlice = uncurryThis(''.slice); // TODO: Use only proper RegExpIdentifierName var IS_NCG = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/; var re1 = /a/g; var re2 = /a/g; // "new" should create a new object, old webkit bug var CORRECT_NEW = new NativeRegExp(re1) !== re1; var MISSED_STICKY = stickyHelpers.MISSED_STICKY; var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y; var BASE_FORCED = DESCRIPTORS && (!CORRECT_NEW || MISSED_STICKY || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG || fails(function () { re2[MATCH] = false; // RegExp constructor can alter flags and IsRegExp works correct with @@match return NativeRegExp(re1) != re1 || NativeRegExp(re2) == re2 || NativeRegExp(re1, 'i') != '/a/i'; })); var handleDotAll = function (string) { var length = string.length; var index = 0; var result = ''; var brackets = false; var chr; for (; index <= length; index++) { chr = charAt(string, index); if (chr === '\\') { result += chr + charAt(string, ++index); continue; } if (!brackets && chr === '.') { result += '[\\s\\S]'; } else { if (chr === '[') { brackets = true; } else if (chr === ']') { brackets = false; } result += chr; } } return result; }; var handleNCG = function (string) { var length = string.length; var index = 0; var result = ''; var named = []; var names = {}; var brackets = false; var ncg = false; var groupid = 0; var groupname = ''; var chr; for (; index <= length; index++) { chr = charAt(string, index); if (chr === '\\') { chr = chr + charAt(string, ++index); } else if (chr === ']') { brackets = false; } else if (!brackets) switch (true) { case chr === '[': brackets = true; break; case chr === '(': if (exec(IS_NCG, stringSlice(string, index + 1))) { index += 2; ncg = true; } result += chr; groupid++; continue; case chr === '>' && ncg: if (groupname === '' || hasOwn(names, groupname)) { throw new SyntaxError('Invalid capture group name'); } names[groupname] = true; named[named.length] = [groupname, groupid]; ncg = false; groupname = ''; continue; } if (ncg) groupname += chr; else result += chr; } return [result, named]; }; // `RegExp` constructor // https://tc39.es/ecma262/#sec-regexp-constructor if (isForced('RegExp', BASE_FORCED)) { var RegExpWrapper = function RegExp(pattern, flags) { var thisIsRegExp = isPrototypeOf(RegExpPrototype, this); var patternIsRegExp = isRegExp(pattern); var flagsAreUndefined = flags === undefined; var groups = []; var rawPattern = pattern; var rawFlags, dotAll, sticky, handled, result, state; if (!thisIsRegExp && patternIsRegExp && flagsAreUndefined && pattern.constructor === RegExpWrapper) { return pattern; } if (patternIsRegExp || isPrototypeOf(RegExpPrototype, pattern)) { pattern = pattern.source; if (flagsAreUndefined) flags = getRegExpFlags(rawPattern); } pattern = pattern === undefined ? '' : toString(pattern); flags = flags === undefined ? '' : toString(flags); rawPattern = pattern; if (UNSUPPORTED_DOT_ALL && 'dotAll' in re1) { dotAll = !!flags && stringIndexOf(flags, 's') > -1; if (dotAll) flags = replace(flags, /s/g, ''); } rawFlags = flags; if (MISSED_STICKY && 'sticky' in re1) { sticky = !!flags && stringIndexOf(flags, 'y') > -1; if (sticky && UNSUPPORTED_Y) flags = replace(flags, /y/g, ''); } if (UNSUPPORTED_NCG) { handled = handleNCG(pattern); pattern = handled[0]; groups = handled[1]; } result = inheritIfRequired(NativeRegExp(pattern, flags), thisIsRegExp ? this : RegExpPrototype, RegExpWrapper); if (dotAll || sticky || groups.length) { state = enforceInternalState(result); if (dotAll) { state.dotAll = true; state.raw = RegExpWrapper(handleDotAll(pattern), rawFlags); } if (sticky) state.sticky = true; if (groups.length) state.groups = groups; } if (pattern !== rawPattern) try { // fails in old engines, but we have no alternatives for unsupported regex syntax createNonEnumerableProperty(result, 'source', rawPattern === '' ? '(?:)' : rawPattern); } catch (error) { /* empty */ } return result; }; for (var keys = getOwnPropertyNames(NativeRegExp), index = 0; keys.length > index;) { proxyAccessor(RegExpWrapper, NativeRegExp, keys[index++]); } RegExpPrototype.constructor = RegExpWrapper; RegExpWrapper.prototype = RegExpPrototype; defineBuiltIn(global, 'RegExp', RegExpWrapper, { constructor: true }); } // https://tc39.es/ecma262/#sec-get-regexp-@@species setSpecies('RegExp'); /***/ }), /***/ "4d64": /***/ (function(module, exports, __webpack_require__) { var toIndexedObject = __webpack_require__("fc6a"); var toAbsoluteIndex = __webpack_require__("23cb"); var lengthOfArrayLike = __webpack_require__("07fa"); // `Array.prototype.{ indexOf, includes }` methods implementation var createMethod = function (IS_INCLUDES) { return function ($this, el, fromIndex) { var O = toIndexedObject($this); var length = lengthOfArrayLike(O); var index = toAbsoluteIndex(fromIndex, length); var value; // Array#includes uses SameValueZero equality algorithm // eslint-disable-next-line no-self-compare -- NaN check if (IS_INCLUDES && el != el) while (length > index) { value = O[index++]; // eslint-disable-next-line no-self-compare -- NaN check if (value != value) return true; // Array#indexOf ignores holes, Array#includes - not } else for (;length > index; index++) { if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0; } return !IS_INCLUDES && -1; }; }; module.exports = { // `Array.prototype.includes` method // https://tc39.es/ecma262/#sec-array.prototype.includes includes: createMethod(true), // `Array.prototype.indexOf` method // https://tc39.es/ecma262/#sec-array.prototype.indexof indexOf: createMethod(false) }; /***/ }), /***/ "4dae": /***/ (function(module, exports, __webpack_require__) { var toAbsoluteIndex = __webpack_require__("23cb"); var lengthOfArrayLike = __webpack_require__("07fa"); var createProperty = __webpack_require__("8418"); var $Array = Array; var max = Math.max; module.exports = function (O, start, end) { var length = lengthOfArrayLike(O); var k = toAbsoluteIndex(start, length); var fin = toAbsoluteIndex(end === undefined ? length : end, length); var result = $Array(max(fin - k, 0)); for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]); result.length = n; return result; }; /***/ }), /***/ "4de4": /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__("23e7"); var $filter = __webpack_require__("b727").filter; var arrayMethodHasSpeciesSupport = __webpack_require__("1dde"); var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter'); // `Array.prototype.filter` method // https://tc39.es/ecma262/#sec-array.prototype.filter // with adding support of @@species $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, { filter: function filter(callbackfn /* , thisArg */) { return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); } }); /***/ }), /***/ "4df4": /***/ (function(module, exports, __webpack_require__) { "use strict"; var bind = __webpack_require__("0366"); var call = __webpack_require__("c65b"); var toObject = __webpack_require__("7b0b"); var callWithSafeIterationClosing = __webpack_require__("9bdd"); var isArrayIteratorMethod = __webpack_require__("e95a"); var isConstructor = __webpack_require__("68ee"); var lengthOfArrayLike = __webpack_require__("07fa"); var createProperty = __webpack_require__("8418"); var getIterator = __webpack_require__("9a1f"); var getIteratorMethod = __webpack_require__("35a1"); var $Array = Array; // `Array.from` method implementation // https://tc39.es/ecma262/#sec-array.from module.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) { var O = toObject(arrayLike); var IS_CONSTRUCTOR = isConstructor(this); var argumentsLength = arguments.length; var mapfn = argumentsLength > 1 ? arguments[1] : undefined; var mapping = mapfn !== undefined; if (mapping) mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : undefined); var iteratorMethod = getIteratorMethod(O); var index = 0; var length, result, step, iterator, next, value; // if the target is not iterable or it's an array with the default iterator - use a simple case if (iteratorMethod && !(this === $Array && isArrayIteratorMethod(iteratorMethod))) { iterator = getIterator(O, iteratorMethod); next = iterator.next; result = IS_CONSTRUCTOR ? new this() : []; for (;!(step = call(next, iterator)).done; index++) { value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value; createProperty(result, index, value); } } else { length = lengthOfArrayLike(O); result = IS_CONSTRUCTOR ? new this(length) : $Array(length); for (;length > index; index++) { value = mapping ? mapfn(O[index], index) : O[index]; createProperty(result, index, value); } } result.length = index; return result; }; /***/ }), /***/ "4f50": /***/ (function(module, exports, __webpack_require__) { var assignMergeValue = __webpack_require__("b760"), cloneBuffer = __webpack_require__("e5383"), cloneTypedArray = __webpack_require__("c8fe"), copyArray = __webpack_require__("4359"), initCloneObject = __webpack_require__("fa21"), isArguments = __webpack_require__("d370"), isArray = __webpack_require__("6747"), isArrayLikeObject = __webpack_require__("dcbe"), isBuffer = __webpack_require__("0d24"), isFunction = __webpack_require__("9520"), isObject = __webpack_require__("1a8c"), isPlainObject = __webpack_require__("60ed"), isTypedArray = __webpack_require__("73ac"), safeGet = __webpack_require__("8adb"), toPlainObject = __webpack_require__("8de2"); /** * A specialized version of `baseMerge` for arrays and objects which performs * deep merges and tracks traversed objects enabling objects with circular * references to be merged. * * @private * @param {Object} object The destination object. * @param {Object} source The source object. * @param {string} key The key of the value to merge. * @param {number} srcIndex The index of `source`. * @param {Function} mergeFunc The function to merge values. * @param {Function} [customizer] The function to customize assigned values. * @param {Object} [stack] Tracks traversed source values and their merged * counterparts. */ function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) { var objValue = safeGet(object, key), srcValue = safeGet(source, key), stacked = stack.get(srcValue); if (stacked) { assignMergeValue(object, key, stacked); return; } var newValue = customizer ? customizer(objValue, srcValue, (key + ''), object, source, stack) : undefined; var isCommon = newValue === undefined; if (isCommon) { var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue); newValue = srcValue; if (isArr || isBuff || isTyped) { if (isArray(objValue)) { newValue = objValue; } else if (isArrayLikeObject(objValue)) { newValue = copyArray(objValue); } else if (isBuff) { isCommon = false; newValue = cloneBuffer(srcValue, true); } else if (isTyped) { isCommon = false; newValue = cloneTypedArray(srcValue, true); } else { newValue = []; } } else if (isPlainObject(srcValue) || isArguments(srcValue)) { newValue = objValue; if (isArguments(objValue)) { newValue = toPlainObject(objValue); } else if (!isObject(objValue) || isFunction(objValue)) { newValue = initCloneObject(srcValue); } } else { isCommon = false; } } if (isCommon) { // Recursively merge objects and arrays (susceptible to call stack limits). stack.set(srcValue, newValue); mergeFunc(newValue, srcValue, srcIndex, customizer, stack); stack['delete'](srcValue); } assignMergeValue(object, key, newValue); } module.exports = baseMergeDeep; /***/ }), /***/ "501e": /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__("3729"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var numberTag = '[object Number]'; /** * Checks if `value` is classified as a `Number` primitive or object. * * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are * classified as numbers, use the `_.isFinite` method. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a number, else `false`. * @example * * _.isNumber(3); * // => true * * _.isNumber(Number.MIN_VALUE); * // => true * * _.isNumber(Infinity); * // => true * * _.isNumber('3'); * // => false */ function isNumber(value) { return typeof value == 'number' || (isObjectLike(value) && baseGetTag(value) == numberTag); } module.exports = isNumber; /***/ }), /***/ "5087": /***/ (function(module, exports, __webpack_require__) { var isConstructor = __webpack_require__("68ee"); var tryToString = __webpack_require__("0d51"); var $TypeError = TypeError; // `Assert: IsConstructor(argument) is true` module.exports = function (argument) { if (isConstructor(argument)) return argument; throw $TypeError(tryToString(argument) + ' is not a constructor'); }; /***/ }), /***/ "50c4": /***/ (function(module, exports, __webpack_require__) { var toIntegerOrInfinity = __webpack_require__("5926"); var min = Math.min; // `ToLength` abstract operation // https://tc39.es/ecma262/#sec-tolength module.exports = function (argument) { return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 }; /***/ }), /***/ "50d8": /***/ (function(module, exports) { /** * The base implementation of `_.times` without support for iteratee shorthands * or max array length checks. * * @private * @param {number} n The number of times to invoke `iteratee`. * @param {Function} iteratee The function invoked per iteration. * @returns {Array} Returns the array of results. */ function baseTimes(n, iteratee) { var index = -1, result = Array(n); while (++index < n) { result[index] = iteratee(index); } return result; } module.exports = baseTimes; /***/ }), /***/ "5261": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = optionsFromStrings; // Convert string to integers/booleans where it should be function optionsFromStrings(options) { var intOptions = ["width", "height", "textMargin", "fontSize", "margin", "marginTop", "marginBottom", "marginLeft", "marginRight"]; for (var intOption in intOptions) { if (intOptions.hasOwnProperty(intOption)) { intOption = intOptions[intOption]; if (typeof options[intOption] === "string") { options[intOption] = parseInt(options[intOption], 10); } } } if (typeof options["displayValue"] === "string") { options["displayValue"] = options["displayValue"] != "false"; } return options; } /***/ }), /***/ "5270": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); var transformData = __webpack_require__("c401"); var isCancel = __webpack_require__("2e67"); var defaults = __webpack_require__("2444"); /** * Throws a `Cancel` if cancellation has been requested. */ function throwIfCancellationRequested(config) { if (config.cancelToken) { config.cancelToken.throwIfRequested(); } } /** * Dispatch a request to the server using the configured adapter. * * @param {object} config The config that is to be used for the request * @returns {Promise} The Promise to be fulfilled */ module.exports = function dispatchRequest(config) { throwIfCancellationRequested(config); // Ensure headers exist config.headers = config.headers || {}; // Transform request data config.data = transformData( config.data, config.headers, config.transformRequest ); // Flatten headers config.headers = utils.merge( config.headers.common || {}, config.headers[config.method] || {}, config.headers ); utils.forEach( ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], function cleanHeaderConfig(method) { delete config.headers[method]; } ); var adapter = config.adapter || defaults.adapter; return adapter(config).then(function onAdapterResolution(response) { throwIfCancellationRequested(config); // Transform response data response.data = transformData( response.data, response.headers, config.transformResponse ); return response; }, function onAdapterRejection(reason) { if (!isCancel(reason)) { throwIfCancellationRequested(config); // Transform response data if (reason && reason.response) { reason.response.data = transformData( reason.response.data, reason.response.headers, config.transformResponse ); } } return Promise.reject(reason); }); }; /***/ }), /***/ "5319": /***/ (function(module, exports, __webpack_require__) { "use strict"; var apply = __webpack_require__("2ba4"); var call = __webpack_require__("c65b"); var uncurryThis = __webpack_require__("e330"); var fixRegExpWellKnownSymbolLogic = __webpack_require__("d784"); var fails = __webpack_require__("d039"); var anObject = __webpack_require__("825a"); var isCallable = __webpack_require__("1626"); var isNullOrUndefined = __webpack_require__("7234"); var toIntegerOrInfinity = __webpack_require__("5926"); var toLength = __webpack_require__("50c4"); var toString = __webpack_require__("577e"); var requireObjectCoercible = __webpack_require__("1d80"); var advanceStringIndex = __webpack_require__("8aa5"); var getMethod = __webpack_require__("dc4a"); var getSubstitution = __webpack_require__("0cb2"); var regExpExec = __webpack_require__("14c3"); var wellKnownSymbol = __webpack_require__("b622"); var REPLACE = wellKnownSymbol('replace'); var max = Math.max; var min = Math.min; var concat = uncurryThis([].concat); var push = uncurryThis([].push); var stringIndexOf = uncurryThis(''.indexOf); var stringSlice = uncurryThis(''.slice); var maybeToString = function (it) { return it === undefined ? it : String(it); }; // IE <= 11 replaces $0 with the whole match, as if it was $& // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0 var REPLACE_KEEPS_$0 = (function () { // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing return 'a'.replace(/./, '$0') === '$0'; })(); // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () { if (/./[REPLACE]) { return /./[REPLACE]('a', '$0') === ''; } return false; })(); var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () { var re = /./; re.exec = function () { var result = []; result.groups = { a: '7' }; return result; }; // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive return ''.replace(re, '$<a>') !== '7'; }); // @@replace logic fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) { var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0'; return [ // `String.prototype.replace` method // https://tc39.es/ecma262/#sec-string.prototype.replace function replace(searchValue, replaceValue) { var O = requireObjectCoercible(this); var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE); return replacer ? call(replacer, searchValue, O, replaceValue) : call(nativeReplace, toString(O), searchValue, replaceValue); }, // `RegExp.prototype[@@replace]` method // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace function (string, replaceValue) { var rx = anObject(this); var S = toString(string); if ( typeof replaceValue == 'string' && stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 && stringIndexOf(replaceValue, '$<') === -1 ) { var res = maybeCallNative(nativeReplace, rx, S, replaceValue); if (res.done) return res.value; } var functionalReplace = isCallable(replaceValue); if (!functionalReplace) replaceValue = toString(replaceValue); var global = rx.global; if (global) { var fullUnicode = rx.unicode; rx.lastIndex = 0; } var results = []; while (true) { var result = regExpExec(rx, S); if (result === null) break; push(results, result); if (!global) break; var matchStr = toString(result[0]); if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode); } var accumulatedResult = ''; var nextSourcePosition = 0; for (var i = 0; i < results.length; i++) { result = results[i]; var matched = toString(result[0]); var position = max(min(toIntegerOrInfinity(result.index), S.length), 0); var captures = []; // NOTE: This is equivalent to // captures = result.slice(1).map(maybeToString) // but for some reason `nativeSlice.call(result, 1, result.length)` (called in // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it. for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j])); var namedCaptures = result.groups; if (functionalReplace) { var replacerArgs = concat([matched], captures, position, S); if (namedCaptures !== undefined) push(replacerArgs, namedCaptures); var replacement = toString(apply(replaceValue, undefined, replacerArgs)); } else { replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue); } if (position >= nextSourcePosition) { accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement; nextSourcePosition = position + matched.length; } } return accumulatedResult + stringSlice(S, nextSourcePosition); } ]; }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE); /***/ }), /***/ "54eb": /***/ (function(module, exports, __webpack_require__) { var copyObject = __webpack_require__("8eeb"), getSymbols = __webpack_require__("32f4"); /** * Copies own symbols of `source` to `object`. * * @private * @param {Object} source The object to copy symbols from. * @param {Object} [object={}] The object to copy symbols to. * @returns {Object} Returns `object`. */ function copySymbols(source, object) { return copyObject(source, getSymbols(source), object); } module.exports = copySymbols; /***/ }), /***/ "55a3": /***/ (function(module, exports) { /** * Checks if a stack value for `key` exists. * * @private * @name has * @memberOf Stack * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function stackHas(key) { return this.__data__.has(key); } module.exports = stackHas; /***/ }), /***/ "5692": /***/ (function(module, exports, __webpack_require__) { var IS_PURE = __webpack_require__("c430"); var store = __webpack_require__("c6cd"); (module.exports = function (key, value) { return store[key] || (store[key] = value !== undefined ? value : {}); })('versions', []).push({ version: '3.27.2', mode: IS_PURE ? 'pure' : 'global', copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)', license: 'https://github.com/zloirock/core-js/blob/v3.27.2/LICENSE', source: 'https://github.com/zloirock/core-js' }); /***/ }), /***/ "56ef": /***/ (function(module, exports, __webpack_require__) { var getBuiltIn = __webpack_require__("d066"); var uncurryThis = __webpack_require__("e330"); var getOwnPropertyNamesModule = __webpack_require__("241c"); var getOwnPropertySymbolsModule = __webpack_require__("7418"); var anObject = __webpack_require__("825a"); var concat = uncurryThis([].concat); // all object keys, includes non-enumerable and symbols module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) { var keys = getOwnPropertyNamesModule.f(anObject(it)); var getOwnPropertySymbols = getOwnPropertySymbolsModule.f; return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys; }; /***/ }), /***/ "5726": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _constants = __webpack_require__("c243"); // Encode data string var encode = function encode(data, structure, separator) { var encoded = data.split('').map(function (val, idx) { return _constants.BINARIES[structure[idx]]; }).map(function (val, idx) { return val ? val[data[idx]] : ''; }); if (separator) { var last = data.length - 1; encoded = encoded.map(function (val, idx) { return idx < last ? val + separator : val; }); } return encoded.join(''); }; exports.default = encode; /***/ }), /***/ "577e": /***/ (function(module, exports, __webpack_require__) { var classof = __webpack_require__("f5df"); var $String = String; module.exports = function (argument) { if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string'); return $String(argument); }; /***/ }), /***/ "57a5": /***/ (function(module, exports, __webpack_require__) { var overArg = __webpack_require__("91e9"); /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeKeys = overArg(Object.keys, Object); module.exports = nativeKeys; /***/ }), /***/ "57b9": /***/ (function(module, exports, __webpack_require__) { var call = __webpack_require__("c65b"); var getBuiltIn = __webpack_require__("d066"); var wellKnownSymbol = __webpack_require__("b622"); var defineBuiltIn = __webpack_require__("cb2d"); module.exports = function () { var Symbol = getBuiltIn('Symbol'); var SymbolPrototype = Symbol && Symbol.prototype; var valueOf = SymbolPrototype && SymbolPrototype.valueOf; var TO_PRIMITIVE = wellKnownSymbol('toPrimitive'); if (SymbolPrototype && !SymbolPrototype[TO_PRIMITIVE]) { // `Symbol.prototype[@@toPrimitive]` method // https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive // eslint-disable-next-line no-unused-vars -- required for .length defineBuiltIn(SymbolPrototype, TO_PRIMITIVE, function (hint) { return call(valueOf, this); }, { arity: 1 }); } }; /***/ }), /***/ "583f": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _constants = __webpack_require__("c243"); var _encoder = __webpack_require__("5726"); var _encoder2 = _interopRequireDefault(_encoder); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // https://en.wikipedia.org/wiki/EAN_5#Encoding var checksum = function checksum(data) { var result = data.split('').map(function (n) { return +n; }).reduce(function (sum, a, idx) { return idx % 2 ? sum + a * 9 : sum + a * 3; }, 0); return result % 10; }; var EAN5 = function (_Barcode) { _inherits(EAN5, _Barcode); function EAN5(data, options) { _classCallCheck(this, EAN5); return _possibleConstructorReturn(this, (EAN5.__proto__ || Object.getPrototypeOf(EAN5)).call(this, data, options)); } _createClass(EAN5, [{ key: 'valid', value: function valid() { return this.data.search(/^[0-9]{5}$/) !== -1; } }, { key: 'encode', value: function encode() { var structure = _constants.EAN5_STRUCTURE[checksum(this.data)]; return { data: '1011' + (0, _encoder2.default)(this.data, structure, '01'), text: this.text }; } }]); return EAN5; }(_Barcode3.default); exports.default = EAN5; /***/ }), /***/ "585a": /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */ var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; module.exports = freeGlobal; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("c8ba"))) /***/ }), /***/ "5899": /***/ (function(module, exports) { // a string of all valid unicode whitespaces module.exports = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' + '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; /***/ }), /***/ "58a8": /***/ (function(module, exports, __webpack_require__) { var uncurryThis = __webpack_require__("e330"); var requireObjectCoercible = __webpack_require__("1d80"); var toString = __webpack_require__("577e"); var whitespaces = __webpack_require__("5899"); var replace = uncurryThis(''.replace); var whitespace = '[' + whitespaces + ']'; var ltrim = RegExp('^' + whitespace + whitespace + '*'); var rtrim = RegExp(whitespace + whitespace + '*$'); // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation var createMethod = function (TYPE) { return function ($this) { var string = toString(requireObjectCoercible($this)); if (TYPE & 1) string = replace(string, ltrim, ''); if (TYPE & 2) string = replace(string, rtrim, ''); return string; }; }; module.exports = { // `String.prototype.{ trimLeft, trimStart }` methods // https://tc39.es/ecma262/#sec-string.prototype.trimstart start: createMethod(1), // `String.prototype.{ trimRight, trimEnd }` methods // https://tc39.es/ecma262/#sec-string.prototype.trimend end: createMethod(2), // `String.prototype.trim` method // https://tc39.es/ecma262/#sec-string.prototype.trim trim: createMethod(3) }; /***/ }), /***/ "5926": /***/ (function(module, exports, __webpack_require__) { var trunc = __webpack_require__("b42e"); // `ToIntegerOrInfinity` abstract operation // https://tc39.es/ecma262/#sec-tointegerorinfinity module.exports = function (argument) { var number = +argument; // eslint-disable-next-line no-self-compare -- NaN check return number !== number || number === 0 ? 0 : trunc(number); }; /***/ }), /***/ "59ed": /***/ (function(module, exports, __webpack_require__) { var isCallable = __webpack_require__("1626"); var tryToString = __webpack_require__("0d51"); var $TypeError = TypeError; // `Assert: IsCallable(argument) is true` module.exports = function (argument) { if (isCallable(argument)) return argument; throw $TypeError(tryToString(argument) + ' is not a function'); }; /***/ }), /***/ "5a34": /***/ (function(module, exports, __webpack_require__) { var isRegExp = __webpack_require__("44e7"); var $TypeError = TypeError; module.exports = function (it) { if (isRegExp(it)) { throw $TypeError("The method doesn't accept regular expressions"); } return it; }; /***/ }), /***/ "5a47": /***/ (function(module, exports, __webpack_require__) { var $ = __webpack_require__("23e7"); var NATIVE_SYMBOL = __webpack_require__("04f8"); var fails = __webpack_require__("d039"); var getOwnPropertySymbolsModule = __webpack_require__("7418"); var toObject = __webpack_require__("7b0b"); // V8 ~ Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives // https://bugs.chromium.org/p/v8/issues/detail?id=3443 var FORCED = !NATIVE_SYMBOL || fails(function () { getOwnPropertySymbolsModule.f(1); }); // `Object.getOwnPropertySymbols` method // https://tc39.es/ecma262/#sec-object.getownpropertysymbols $({ target: 'Object', stat: true, forced: FORCED }, { getOwnPropertySymbols: function getOwnPropertySymbols(it) { var $getOwnPropertySymbols = getOwnPropertySymbolsModule.f; return $getOwnPropertySymbols ? $getOwnPropertySymbols(toObject(it)) : []; } }); /***/ }), /***/ "5b01": /***/ (function(module, exports, __webpack_require__) { var copyObject = __webpack_require__("8eeb"), keys = __webpack_require__("ec69"); /** * The base implementation of `_.assign` without support for multiple sources * or `customizer` functions. * * @private * @param {Object} object The destination object. * @param {Object} source The source object. * @returns {Object} Returns `object`. */ function baseAssign(object, source) { return object && copyObject(source, keys(source), object); } module.exports = baseAssign; /***/ }), /***/ "5c6c": /***/ (function(module, exports) { module.exports = function (bitmap, value) { return { enumerable: !(bitmap & 1), configurable: !(bitmap & 2), writable: !(bitmap & 4), value: value }; }; /***/ }), /***/ "5d89": /***/ (function(module, exports, __webpack_require__) { var cloneArrayBuffer = __webpack_require__("f8af"); /** * Creates a clone of `dataView`. * * @private * @param {Object} dataView The data view to clone. * @param {boolean} [isDeep] Specify a deep clone. * @returns {Object} Returns the cloned data view. */ function cloneDataView(dataView, isDeep) { var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer; return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength); } module.exports = cloneDataView; /***/ }), /***/ "5e2e": /***/ (function(module, exports, __webpack_require__) { var listCacheClear = __webpack_require__("28c9"), listCacheDelete = __webpack_require__("69d5"), listCacheGet = __webpack_require__("b4c0"), listCacheHas = __webpack_require__("fba5"), listCacheSet = __webpack_require__("67ca"); /** * Creates an list cache object. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function ListCache(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } // Add methods to `ListCache`. ListCache.prototype.clear = listCacheClear; ListCache.prototype['delete'] = listCacheDelete; ListCache.prototype.get = listCacheGet; ListCache.prototype.has = listCacheHas; ListCache.prototype.set = listCacheSet; module.exports = ListCache; /***/ }), /***/ "5e77": /***/ (function(module, exports, __webpack_require__) { var DESCRIPTORS = __webpack_require__("83ab"); var hasOwn = __webpack_require__("1a2d"); var FunctionPrototype = Function.prototype; // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor; var EXISTS = hasOwn(FunctionPrototype, 'name'); // additional protection from minified / mangled / dropped function names var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something'; var CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable)); module.exports = { EXISTS: EXISTS, PROPER: PROPER, CONFIGURABLE: CONFIGURABLE }; /***/ }), /***/ "5e7e": /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__("23e7"); var IS_PURE = __webpack_require__("c430"); var IS_NODE = __webpack_require__("605d"); var global = __webpack_require__("da84"); var call = __webpack_require__("c65b"); var defineBuiltIn = __webpack_require__("cb2d"); var setPrototypeOf = __webpack_require__("d2bb"); var setToStringTag = __webpack_require__("d44e"); var setSpecies = __webpack_require__("2626"); var aCallable = __webpack_require__("59ed"); var isCallable = __webpack_require__("1626"); var isObject = __webpack_require__("861d"); var anInstance = __webpack_require__("19aa"); var speciesConstructor = __webpack_require__("4840"); var task = __webpack_require__("2cf4").set; var microtask = __webpack_require__("b575"); var hostReportErrors = __webpack_require__("44de"); var perform = __webpack_require__("e667"); var Queue = __webpack_require__("01b4"); var InternalStateModule = __webpack_require__("69f3"); var NativePromiseConstructor = __webpack_require__("d256"); var PromiseConstructorDetection = __webpack_require__("4738"); var newPromiseCapabilityModule = __webpack_require__("f069"); var PROMISE = 'Promise'; var FORCED_PROMISE_CONSTRUCTOR = PromiseConstructorDetection.CONSTRUCTOR; var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT; var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING; var getInternalPromiseState = InternalStateModule.getterFor(PROMISE); var setInternalState = InternalStateModule.set; var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype; var PromiseConstructor = NativePromiseConstructor; var PromisePrototype = NativePromisePrototype; var TypeError = global.TypeError; var document = global.document; var process = global.process; var newPromiseCapability = newPromiseCapabilityModule.f; var newGenericPromiseCapability = newPromiseCapability; var DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent); var UNHANDLED_REJECTION = 'unhandledrejection'; var REJECTION_HANDLED = 'rejectionhandled'; var PENDING = 0; var FULFILLED = 1; var REJECTED = 2; var HANDLED = 1; var UNHANDLED = 2; var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen; // helpers var isThenable = function (it) { var then; return isObject(it) && isCallable(then = it.then) ? then : false; }; var callReaction = function (reaction, state) { var value = state.value; var ok = state.state == FULFILLED; var handler = ok ? reaction.ok : reaction.fail; var resolve = reaction.resolve; var reject = reaction.reject; var domain = reaction.domain; var result, then, exited; try { if (handler) { if (!ok) { if (state.rejection === UNHANDLED) onHandleUnhandled(state); state.rejection = HANDLED; } if (handler === true) result = value; else { if (domain) domain.enter(); result = handler(value); // can throw if (domain) { domain.exit(); exited = true; } } if (result === reaction.promise) { reject(TypeError('Promise-chain cycle')); } else if (then = isThenable(result)) { call(then, result, resolve, reject); } else resolve(result); } else reject(value); } catch (error) { if (domain && !exited) domain.exit(); reject(error); } }; var notify = function (state, isReject) { if (state.notified) return; state.notified = true; microtask(function () { var reactions = state.reactions; var reaction; while (reaction = reactions.get()) { callReaction(reaction, state); } state.notified = false; if (isReject && !state.rejection) onUnhandled(state); }); }; var dispatchEvent = function (name, promise, reason) { var event, handler; if (DISPATCH_EVENT) { event = document.createEvent('Event'); event.promise = promise; event.reason = reason; event.initEvent(name, false, true); global.dispatchEvent(event); } else event = { promise: promise, reason: reason }; if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global['on' + name])) handler(event); else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason); }; var onUnhandled = function (state) { call(task, global, function () { var promise = state.facade; var value = state.value; var IS_UNHANDLED = isUnhandled(state); var result; if (IS_UNHANDLED) { result = perform(function () { if (IS_NODE) { process.emit('unhandledRejection', value, promise); } else dispatchEvent(UNHANDLED_REJECTION, promise, value); }); // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED; if (result.error) throw result.value; } }); }; var isUnhandled = function (state) { return state.rejection !== HANDLED && !state.parent; }; var onHandleUnhandled = function (state) { call(task, global, function () { var promise = state.facade; if (IS_NODE) { process.emit('rejectionHandled', promise); } else dispatchEvent(REJECTION_HANDLED, promise, state.value); }); }; var bind = function (fn, state, unwrap) { return function (value) { fn(state, value, unwrap); }; }; var internalReject = function (state, value, unwrap) { if (state.done) return; state.done = true; if (unwrap) state = unwrap; state.value = value; state.state = REJECTED; notify(state, true); }; var internalResolve = function (state, value, unwrap) { if (state.done) return; state.done = true; if (unwrap) state = unwrap; try { if (state.facade === value) throw TypeError("Promise can't be resolved itself"); var then = isThenable(value); if (then) { microtask(function () { var wrapper = { done: false }; try { call(then, value, bind(internalResolve, wrapper, state), bind(internalReject, wrapper, state) ); } catch (error) { internalReject(wrapper, error, state); } }); } else { state.value = value; state.state = FULFILLED; notify(state, false); } } catch (error) { internalReject({ done: false }, error, state); } }; // constructor polyfill if (FORCED_PROMISE_CONSTRUCTOR) { // 25.4.3.1 Promise(executor) PromiseConstructor = function Promise(executor) { anInstance(this, PromisePrototype); aCallable(executor); call(Internal, this); var state = getInternalPromiseState(this); try { executor(bind(internalResolve, state), bind(internalReject, state)); } catch (error) { internalReject(state, error); } }; PromisePrototype = PromiseConstructor.prototype; // eslint-disable-next-line no-unused-vars -- required for `.length` Internal = function Promise(executor) { setInternalState(this, { type: PROMISE, done: false, notified: false, parent: false, reactions: new Queue(), rejection: false, state: PENDING, value: undefined }); }; // `Promise.prototype.then` method // https://tc39.es/ecma262/#sec-promise.prototype.then Internal.prototype = defineBuiltIn(PromisePrototype, 'then', function then(onFulfilled, onRejected) { var state = getInternalPromiseState(this); var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor)); state.parent = true; reaction.ok = isCallable(onFulfilled) ? onFulfilled : true; reaction.fail = isCallable(onRejected) && onRejected; reaction.domain = IS_NODE ? process.domain : undefined; if (state.state == PENDING) state.reactions.add(reaction); else microtask(function () { callReaction(reaction, state); }); return reaction.promise; }); OwnPromiseCapability = function () { var promise = new Internal(); var state = getInternalPromiseState(promise); this.promise = promise; this.resolve = bind(internalResolve, state); this.reject = bind(internalReject, state); }; newPromiseCapabilityModule.f = newPromiseCapability = function (C) { return C === PromiseConstructor || C === PromiseWrapper ? new OwnPromiseCapability(C) : newGenericPromiseCapability(C); }; if (!IS_PURE && isCallable(NativePromiseConstructor) && NativePromisePrototype !== Object.prototype) { nativeThen = NativePromisePrototype.then; if (!NATIVE_PROMISE_SUBCLASSING) { // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs defineBuiltIn(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) { var that = this; return new PromiseConstructor(function (resolve, reject) { call(nativeThen, that, resolve, reject); }).then(onFulfilled, onRejected); // https://github.com/zloirock/core-js/issues/640 }, { unsafe: true }); } // make `.constructor === Promise` work for native promise-based APIs try { delete NativePromisePrototype.constructor; } catch (error) { /* empty */ } // make `instanceof Promise` work for native promise-based APIs if (setPrototypeOf) { setPrototypeOf(NativePromisePrototype, PromisePrototype); } } } $({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR }, { Promise: PromiseConstructor }); setToStringTag(PromiseConstructor, PROMISE, false, true); setSpecies(PROMISE); /***/ }), /***/ "5eed": /***/ (function(module, exports, __webpack_require__) { var NativePromiseConstructor = __webpack_require__("d256"); var checkCorrectnessOfIteration = __webpack_require__("1c7e"); var FORCED_PROMISE_CONSTRUCTOR = __webpack_require__("4738").CONSTRUCTOR; module.exports = FORCED_PROMISE_CONSTRUCTOR || !checkCorrectnessOfIteration(function (iterable) { NativePromiseConstructor.all(iterable).then(undefined, function () { /* empty */ }); }); /***/ }), /***/ "5f72": /***/ (function(module, exports) { module.exports = __WEBPACK_EXTERNAL_MODULE__5f72__; /***/ }), /***/ "6044": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"); /* Built-in method references that are verified to be native. */ var nativeCreate = getNative(Object, 'create'); module.exports = nativeCreate; /***/ }), /***/ "605d": /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {var classof = __webpack_require__("c6b6"); module.exports = typeof process != 'undefined' && classof(process) == 'process'; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("4362"))) /***/ }), /***/ "6069": /***/ (function(module, exports, __webpack_require__) { var IS_DENO = __webpack_require__("6c59"); var IS_NODE = __webpack_require__("605d"); module.exports = !IS_DENO && !IS_NODE && typeof window == 'object' && typeof document == 'object'; /***/ }), /***/ "60da": /***/ (function(module, exports, __webpack_require__) { "use strict"; var DESCRIPTORS = __webpack_require__("83ab"); var uncurryThis = __webpack_require__("e330"); var call = __webpack_require__("c65b"); var fails = __webpack_require__("d039"); var objectKeys = __webpack_require__("df75"); var getOwnPropertySymbolsModule = __webpack_require__("7418"); var propertyIsEnumerableModule = __webpack_require__("d1e7"); var toObject = __webpack_require__("7b0b"); var IndexedObject = __webpack_require__("44ad"); // eslint-disable-next-line es/no-object-assign -- safe var $assign = Object.assign; // eslint-disable-next-line es/no-object-defineproperty -- required for testing var defineProperty = Object.defineProperty; var concat = uncurryThis([].concat); // `Object.assign` method // https://tc39.es/ecma262/#sec-object.assign module.exports = !$assign || fails(function () { // should have correct order of operations (Edge bug) if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', { enumerable: true, get: function () { defineProperty(this, 'b', { value: 3, enumerable: false }); } }), { b: 2 })).b !== 1) return true; // should work with symbols and should have deterministic property order (V8 bug) var A = {}; var B = {}; // eslint-disable-next-line es/no-symbol -- safe var symbol = Symbol(); var alphabet = 'abcdefghijklmnopqrst'; A[symbol] = 7; alphabet.split('').forEach(function (chr) { B[chr] = chr; }); return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet; }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length` var T = toObject(target); var argumentsLength = arguments.length; var index = 1; var getOwnPropertySymbols = getOwnPropertySymbolsModule.f; var propertyIsEnumerable = propertyIsEnumerableModule.f; while (argumentsLength > index) { var S = IndexedObject(arguments[index++]); var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S); var length = keys.length; var j = 0; var key; while (length > j) { key = keys[j++]; if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key]; } } return T; } : $assign; /***/ }), /***/ "60ed": /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__("3729"), getPrototype = __webpack_require__("2dcb"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var objectTag = '[object Object]'; /** Used for built-in method references. */ var funcProto = Function.prototype, objectProto = Object.prototype; /** Used to resolve the decompiled source of functions. */ var funcToString = funcProto.toString; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** Used to infer the `Object` constructor. */ var objectCtorString = funcToString.call(Object); /** * Checks if `value` is a plain object, that is, an object created by the * `Object` constructor or one with a `[[Prototype]]` of `null`. * * @static * @memberOf _ * @since 0.8.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a plain object, else `false`. * @example * * function Foo() { * this.a = 1; * } * * _.isPlainObject(new Foo); * // => false * * _.isPlainObject([1, 2, 3]); * // => false * * _.isPlainObject({ 'x': 0, 'y': 0 }); * // => true * * _.isPlainObject(Object.create(null)); * // => true */ function isPlainObject(value) { if (!isObjectLike(value) || baseGetTag(value) != objectTag) { return false; } var proto = getPrototype(value); if (proto === null) { return true; } var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor; return typeof Ctor == 'function' && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString; } module.exports = isPlainObject; /***/ }), /***/ "6220": /***/ (function(module, exports, __webpack_require__) { var baseIsDate = __webpack_require__("b1d2"), baseUnary = __webpack_require__("b047"), nodeUtil = __webpack_require__("99d3"); /* Node.js helper references. */ var nodeIsDate = nodeUtil && nodeUtil.isDate; /** * Checks if `value` is classified as a `Date` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a date object, else `false`. * @example * * _.isDate(new Date); * // => true * * _.isDate('Mon April 23 2012'); * // => false */ var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate; module.exports = isDate; /***/ }), /***/ "62c5": /***/ (function(module, exports, __webpack_require__) { "use strict"; var _barcodes = __webpack_require__("ff84"); var _barcodes2 = _interopRequireDefault(_barcodes); var _merge = __webpack_require__("fd7c"); var _merge2 = _interopRequireDefault(_merge); var _linearizeEncodings = __webpack_require__("a2b0"); var _linearizeEncodings2 = _interopRequireDefault(_linearizeEncodings); var _fixOptions = __webpack_require__("79f1"); var _fixOptions2 = _interopRequireDefault(_fixOptions); var _getRenderProperties = __webpack_require__("b1d8"); var _getRenderProperties2 = _interopRequireDefault(_getRenderProperties); var _optionsFromStrings = __webpack_require__("5261"); var _optionsFromStrings2 = _interopRequireDefault(_optionsFromStrings); var _ErrorHandler = __webpack_require__("bd8a"); var _ErrorHandler2 = _interopRequireDefault(_ErrorHandler); var _exceptions = __webpack_require__("dca2"); var _defaults = __webpack_require__("ca32"); var _defaults2 = _interopRequireDefault(_defaults); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } // The protype of the object returned from the JsBarcode() call // Help functions var API = function API() {}; // The first call of the library API // Will return an object with all barcodes calls and the data that is used // by the renderers // Default values // Exceptions // Import all the barcodes var JsBarcode = function JsBarcode(element, text, options) { var api = new API(); if (typeof element === "undefined") { throw Error("No element to render on was provided."); } // Variables that will be pased through the API calls api._renderProperties = (0, _getRenderProperties2.default)(element); api._encodings = []; api._options = _defaults2.default; api._errorHandler = new _ErrorHandler2.default(api); // If text is set, use the simple syntax (render the barcode directly) if (typeof text !== "undefined") { options = options || {}; if (!options.format) { options.format = autoSelectBarcode(); } api.options(options)[options.format](text, options).render(); } return api; }; // To make tests work TODO: remove JsBarcode.getModule = function (name) { return _barcodes2.default[name]; }; // Register all barcodes for (var name in _barcodes2.default) { if (_barcodes2.default.hasOwnProperty(name)) { // Security check if the propery is a prototype property registerBarcode(_barcodes2.default, name); } } function registerBarcode(barcodes, name) { API.prototype[name] = API.prototype[name.toUpperCase()] = API.prototype[name.toLowerCase()] = function (text, options) { var api = this; return api._errorHandler.wrapBarcodeCall(function () { // Ensure text is options.text options.text = typeof options.text === 'undefined' ? undefined : '' + options.text; var newOptions = (0, _merge2.default)(api._options, options); newOptions = (0, _optionsFromStrings2.default)(newOptions); var Encoder = barcodes[name]; var encoded = encode(text, Encoder, newOptions); api._encodings.push(encoded); return api; }); }; } // encode() handles the Encoder call and builds the binary string to be rendered function encode(text, Encoder, options) { // Ensure that text is a string text = "" + text; var encoder = new Encoder(text, options); // If the input is not valid for the encoder, throw error. // If the valid callback option is set, call it instead of throwing error if (!encoder.valid()) { throw new _exceptions.InvalidInputException(encoder.constructor.name, text); } // Make a request for the binary data (and other infromation) that should be rendered var encoded = encoder.encode(); // Encodings can be nestled like [[1-1, 1-2], 2, [3-1, 3-2] // Convert to [1-1, 1-2, 2, 3-1, 3-2] encoded = (0, _linearizeEncodings2.default)(encoded); // Merge for (var i = 0; i < encoded.length; i++) { encoded[i].options = (0, _merge2.default)(options, encoded[i].options); } return encoded; } function autoSelectBarcode() { // If CODE128 exists. Use it if (_barcodes2.default["CODE128"]) { return "CODE128"; } // Else, take the first (probably only) barcode return Object.keys(_barcodes2.default)[0]; } // Sets global encoder options // Added to the api by the JsBarcode function API.prototype.options = function (options) { this._options = (0, _merge2.default)(this._options, options); return this; }; // Will create a blank space (usually in between barcodes) API.prototype.blank = function (size) { var zeroes = new Array(size + 1).join("0"); this._encodings.push({ data: zeroes }); return this; }; // Initialize JsBarcode on all HTML elements defined. API.prototype.init = function () { // Should do nothing if no elements where found if (!this._renderProperties) { return; } // Make sure renderProperies is an array if (!Array.isArray(this._renderProperties)) { this._renderProperties = [this._renderProperties]; } var renderProperty; for (var i in this._renderProperties) { renderProperty = this._renderProperties[i]; var options = (0, _merge2.default)(this._options, renderProperty.options); if (options.format == "auto") { options.format = autoSelectBarcode(); } this._errorHandler.wrapBarcodeCall(function () { var text = options.value; var Encoder = _barcodes2.default[options.format.toUpperCase()]; var encoded = encode(text, Encoder, options); render(renderProperty, encoded, options); }); } }; // The render API call. Calls the real render function. API.prototype.render = function () { if (!this._renderProperties) { throw new _exceptions.NoElementException(); } if (Array.isArray(this._renderProperties)) { for (var i = 0; i < this._renderProperties.length; i++) { render(this._renderProperties[i], this._encodings, this._options); } } else { render(this._renderProperties, this._encodings, this._options); } return this; }; API.prototype._defaults = _defaults2.default; // Prepares the encodings and calls the renderer function render(renderProperties, encodings, options) { encodings = (0, _linearizeEncodings2.default)(encodings); for (var i = 0; i < encodings.length; i++) { encodings[i].options = (0, _merge2.default)(options, encodings[i].options); (0, _fixOptions2.default)(encodings[i].options); } (0, _fixOptions2.default)(options); var Renderer = renderProperties.renderer; var renderer = new Renderer(renderProperties.element, encodings, options); renderer.render(); if (renderProperties.afterRender) { renderProperties.afterRender(); } } // Export to browser if (typeof window !== "undefined") { window.JsBarcode = JsBarcode; } // Export to jQuery /*global jQuery */ if (typeof jQuery !== 'undefined') { jQuery.fn.JsBarcode = function (content, options) { var elementArray = []; jQuery(this).each(function () { elementArray.push(this); }); return JsBarcode(elementArray, content, options); }; } // Export to commonJS module.exports = JsBarcode; /***/ }), /***/ "62e4": /***/ (function(module, exports) { module.exports = function(module) { if (!module.webpackPolyfill) { module.deprecate = function() {}; module.paths = []; // module.parent = undefined by default if (!module.children) module.children = []; Object.defineProperty(module, "loaded", { enumerable: true, get: function() { return module.l; } }); Object.defineProperty(module, "id", { enumerable: true, get: function() { return module.i; } }); module.webpackPolyfill = 1; } return module; }; /***/ }), /***/ "6374": /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__("da84"); // eslint-disable-next-line es/no-object-defineproperty -- safe var defineProperty = Object.defineProperty; module.exports = function (key, value) { try { defineProperty(global, key, { value: value, configurable: true, writable: true }); } catch (error) { global[key] = value; } return value; }; /***/ }), /***/ "6547": /***/ (function(module, exports, __webpack_require__) { var uncurryThis = __webpack_require__("e330"); var toIntegerOrInfinity = __webpack_require__("5926"); var toString = __webpack_require__("577e"); var requireObjectCoercible = __webpack_require__("1d80"); var charAt = uncurryThis(''.charAt); var charCodeAt = uncurryThis(''.charCodeAt); var stringSlice = uncurryThis(''.slice); var createMethod = function (CONVERT_TO_STRING) { return function ($this, pos) { var S = toString(requireObjectCoercible($this)); var position = toIntegerOrInfinity(pos); var size = S.length; var first, second; if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined; first = charCodeAt(S, position); return first < 0xD800 || first > 0xDBFF || position + 1 === size || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF ? CONVERT_TO_STRING ? charAt(S, position) : first : CONVERT_TO_STRING ? stringSlice(S, position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000; }; }; module.exports = { // `String.prototype.codePointAt` method // https://tc39.es/ecma262/#sec-string.prototype.codepointat codeAt: createMethod(false), // `String.prototype.at` method // https://github.com/mathiasbynens/String.prototype.at charAt: createMethod(true) }; /***/ }), /***/ "65f0": /***/ (function(module, exports, __webpack_require__) { var arraySpeciesConstructor = __webpack_require__("0b42"); // `ArraySpeciesCreate` abstract operation // https://tc39.es/ecma262/#sec-arrayspeciescreate module.exports = function (originalArray, length) { return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length); }; /***/ }), /***/ "6747": /***/ (function(module, exports) { /** * Checks if `value` is classified as an `Array` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an array, else `false`. * @example * * _.isArray([1, 2, 3]); * // => true * * _.isArray(document.body.children); * // => false * * _.isArray('abc'); * // => false * * _.isArray(_.noop); * // => false */ var isArray = Array.isArray; module.exports = isArray; /***/ }), /***/ "67ca": /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__("cb5a"); /** * Sets the list cache `key` to `value`. * * @private * @name set * @memberOf ListCache * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the list cache instance. */ function listCacheSet(key, value) { var data = this.__data__, index = assocIndexOf(data, key); if (index < 0) { ++this.size; data.push([key, value]); } else { data[index][1] = value; } return this; } module.exports = listCacheSet; /***/ }), /***/ "68ee": /***/ (function(module, exports, __webpack_require__) { var uncurryThis = __webpack_require__("e330"); var fails = __webpack_require__("d039"); var isCallable = __webpack_require__("1626"); var classof = __webpack_require__("f5df"); var getBuiltIn = __webpack_require__("d066"); var inspectSource = __webpack_require__("8925"); var noop = function () { /* empty */ }; var empty = []; var construct = getBuiltIn('Reflect', 'construct'); var constructorRegExp = /^\s*(?:class|function)\b/; var exec = uncurryThis(constructorRegExp.exec); var INCORRECT_TO_STRING = !constructorRegExp.exec(noop); var isConstructorModern = function isConstructor(argument) { if (!isCallable(argument)) return false; try { construct(noop, empty, argument); return true; } catch (error) { return false; } }; var isConstructorLegacy = function isConstructor(argument) { if (!isCallable(argument)) return false; switch (classof(argument)) { case 'AsyncFunction': case 'GeneratorFunction': case 'AsyncGeneratorFunction': return false; } try { // we can't check .prototype since constructors produced by .bind haven't it // `Function#toString` throws on some built-it function in some legacy engines // (for example, `DOMQuad` and similar in FF41-) return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument)); } catch (error) { return true; } }; isConstructorLegacy.sham = true; // `IsConstructor` abstract operation // https://tc39.es/ecma262/#sec-isconstructor module.exports = !construct || fails(function () { var called; return isConstructorModern(isConstructorModern.call) || !isConstructorModern(Object) || !isConstructorModern(function () { called = true; }) || called; }) ? isConstructorLegacy : isConstructorModern; /***/ }), /***/ "69d5": /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__("cb5a"); /** Used for built-in method references. */ var arrayProto = Array.prototype; /** Built-in value references. */ var splice = arrayProto.splice; /** * Removes `key` and its value from the list cache. * * @private * @name delete * @memberOf ListCache * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function listCacheDelete(key) { var data = this.__data__, index = assocIndexOf(data, key); if (index < 0) { return false; } var lastIndex = data.length - 1; if (index == lastIndex) { data.pop(); } else { splice.call(data, index, 1); } --this.size; return true; } module.exports = listCacheDelete; /***/ }), /***/ "69f3": /***/ (function(module, exports, __webpack_require__) { var NATIVE_WEAK_MAP = __webpack_require__("cdce"); var global = __webpack_require__("da84"); var isObject = __webpack_require__("861d"); var createNonEnumerableProperty = __webpack_require__("9112"); var hasOwn = __webpack_require__("1a2d"); var shared = __webpack_require__("c6cd"); var sharedKey = __webpack_require__("f772"); var hiddenKeys = __webpack_require__("d012"); var OBJECT_ALREADY_INITIALIZED = 'Object already initialized'; var TypeError = global.TypeError; var WeakMap = global.WeakMap; var set, get, has; var enforce = function (it) { return has(it) ? get(it) : set(it, {}); }; var getterFor = function (TYPE) { return function (it) { var state; if (!isObject(it) || (state = get(it)).type !== TYPE) { throw TypeError('Incompatible receiver, ' + TYPE + ' required'); } return state; }; }; if (NATIVE_WEAK_MAP || shared.state) { var store = shared.state || (shared.state = new WeakMap()); /* eslint-disable no-self-assign -- prototype methods protection */ store.get = store.get; store.has = store.has; store.set = store.set; /* eslint-enable no-self-assign -- prototype methods protection */ set = function (it, metadata) { if (store.has(it)) throw TypeError(OBJECT_ALREADY_INITIALIZED); metadata.facade = it; store.set(it, metadata); return metadata; }; get = function (it) { return store.get(it) || {}; }; has = function (it) { return store.has(it); }; } else { var STATE = sharedKey('state'); hiddenKeys[STATE] = true; set = function (it, metadata) { if (hasOwn(it, STATE)) throw TypeError(OBJECT_ALREADY_INITIALIZED); metadata.facade = it; createNonEnumerableProperty(it, STATE, metadata); return metadata; }; get = function (it) { return hasOwn(it, STATE) ? it[STATE] : {}; }; has = function (it) { return hasOwn(it, STATE); }; } module.exports = { set: set, get: get, has: has, enforce: enforce, getterFor: getterFor }; /***/ }), /***/ "6c59": /***/ (function(module, exports) { /* global Deno -- Deno case */ module.exports = typeof Deno == 'object' && Deno && typeof Deno.version == 'object'; /***/ }), /***/ "6e53": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.mod10 = mod10; exports.mod11 = mod11; function mod10(number) { var sum = 0; for (var i = 0; i < number.length; i++) { var n = parseInt(number[i]); if ((i + number.length) % 2 === 0) { sum += n; } else { sum += n * 2 % 10 + Math.floor(n * 2 / 10); } } return (10 - sum % 10) % 10; } function mod11(number) { var sum = 0; var weights = [2, 3, 4, 5, 6, 7]; for (var i = 0; i < number.length; i++) { var n = parseInt(number[number.length - 1 - i]); sum += weights[i % weights.length] * n; } return (11 - sum % 11) % 11; } /***/ }), /***/ "6f19": /***/ (function(module, exports, __webpack_require__) { var createNonEnumerableProperty = __webpack_require__("9112"); var clearErrorStack = __webpack_require__("0d26"); var ERROR_STACK_INSTALLABLE = __webpack_require__("b980"); // non-standard V8 var captureStackTrace = Error.captureStackTrace; module.exports = function (error, C, stack, dropEntries) { if (ERROR_STACK_INSTALLABLE) { if (captureStackTrace) captureStackTrace(error, C); else createNonEnumerableProperty(error, 'stack', clearErrorStack(stack, dropEntries)); } }; /***/ }), /***/ "6f24": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _CODE2 = __webpack_require__("4b23"); var _CODE3 = _interopRequireDefault(_CODE2); var _auto = __webpack_require__("bb5d"); var _auto2 = _interopRequireDefault(_auto); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var CODE128AUTO = function (_CODE) { _inherits(CODE128AUTO, _CODE); function CODE128AUTO(data, options) { _classCallCheck(this, CODE128AUTO); // ASCII value ranges 0-127, 200-211 if (/^[\x00-\x7F\xC8-\xD3]+$/.test(data)) { var _this = _possibleConstructorReturn(this, (CODE128AUTO.__proto__ || Object.getPrototypeOf(CODE128AUTO)).call(this, (0, _auto2.default)(data), options)); } else { var _this = _possibleConstructorReturn(this, (CODE128AUTO.__proto__ || Object.getPrototypeOf(CODE128AUTO)).call(this, data, options)); } return _possibleConstructorReturn(_this); } return CODE128AUTO; }(_CODE3.default); exports.default = CODE128AUTO; /***/ }), /***/ "6f6c": /***/ (function(module, exports) { /** Used to match `RegExp` flags from their coerced string values. */ var reFlags = /\w*$/; /** * Creates a clone of `regexp`. * * @private * @param {Object} regexp The regexp to clone. * @returns {Object} Returns the cloned regexp. */ function cloneRegExp(regexp) { var result = new regexp.constructor(regexp.source, reFlags.exec(regexp)); result.lastIndex = regexp.lastIndex; return result; } module.exports = cloneRegExp; /***/ }), /***/ "6fcd": /***/ (function(module, exports, __webpack_require__) { var baseTimes = __webpack_require__("50d8"), isArguments = __webpack_require__("d370"), isArray = __webpack_require__("6747"), isBuffer = __webpack_require__("0d24"), isIndex = __webpack_require__("c098"), isTypedArray = __webpack_require__("73ac"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Creates an array of the enumerable property names of the array-like `value`. * * @private * @param {*} value The value to query. * @param {boolean} inherited Specify returning inherited property names. * @returns {Array} Returns the array of property names. */ function arrayLikeKeys(value, inherited) { var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length; for (var key in value) { if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && ( // Safari 9 has enumerable `arguments.length` in strict mode. key == 'length' || // Node.js 0.10 has enumerable non-index properties on buffers. (isBuff && (key == 'offset' || key == 'parent')) || // PhantomJS 2 has enumerable non-index properties on typed arrays. (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) || // Skip index properties. isIndex(key, length) ))) { result.push(key); } } return result; } module.exports = arrayLikeKeys; /***/ }), /***/ "70b0": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _CODE2 = __webpack_require__("4b23"); var _CODE3 = _interopRequireDefault(_CODE2); var _constants = __webpack_require__("f08e"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var CODE128B = function (_CODE) { _inherits(CODE128B, _CODE); function CODE128B(string, options) { _classCallCheck(this, CODE128B); return _possibleConstructorReturn(this, (CODE128B.__proto__ || Object.getPrototypeOf(CODE128B)).call(this, _constants.B_START_CHAR + string, options)); } _createClass(CODE128B, [{ key: 'valid', value: function valid() { return new RegExp('^' + _constants.B_CHARS + '+$').test(this.data); } }]); return CODE128B; }(_CODE3.default); exports.default = CODE128B; /***/ }), /***/ "7149": /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__("23e7"); var getBuiltIn = __webpack_require__("d066"); var IS_PURE = __webpack_require__("c430"); var NativePromiseConstructor = __webpack_require__("d256"); var FORCED_PROMISE_CONSTRUCTOR = __webpack_require__("4738").CONSTRUCTOR; var promiseResolve = __webpack_require__("cdf9"); var PromiseConstructorWrapper = getBuiltIn('Promise'); var CHECK_WRAPPER = IS_PURE && !FORCED_PROMISE_CONSTRUCTOR; // `Promise.resolve` method // https://tc39.es/ecma262/#sec-promise.resolve $({ target: 'Promise', stat: true, forced: IS_PURE || FORCED_PROMISE_CONSTRUCTOR }, { resolve: function resolve(x) { return promiseResolve(CHECK_WRAPPER && this === PromiseConstructorWrapper ? NativePromiseConstructor : this, x); } }); /***/ }), /***/ "7156": /***/ (function(module, exports, __webpack_require__) { var isCallable = __webpack_require__("1626"); var isObject = __webpack_require__("861d"); var setPrototypeOf = __webpack_require__("d2bb"); // makes subclassing work correct for wrapped built-ins module.exports = function ($this, dummy, Wrapper) { var NewTarget, NewTargetPrototype; if ( // it can work only with native `setPrototypeOf` setPrototypeOf && // we haven't completely correct pre-ES6 way for getting `new.target`, so use this isCallable(NewTarget = dummy.constructor) && NewTarget !== Wrapper && isObject(NewTargetPrototype = NewTarget.prototype) && NewTargetPrototype !== Wrapper.prototype ) setPrototypeOf($this, NewTargetPrototype); return $this; }; /***/ }), /***/ "721a": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _merge = __webpack_require__("fd7c"); var _merge2 = _interopRequireDefault(_merge); var _shared = __webpack_require__("ab5b"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var CanvasRenderer = function () { function CanvasRenderer(canvas, encodings, options) { _classCallCheck(this, CanvasRenderer); this.canvas = canvas; this.encodings = encodings; this.options = options; } _createClass(CanvasRenderer, [{ key: "render", value: function render() { // Abort if the browser does not support HTML5 canvas if (!this.canvas.getContext) { throw new Error('The browser does not support canvas.'); } this.prepareCanvas(); for (var i = 0; i < this.encodings.length; i++) { var encodingOptions = (0, _merge2.default)(this.options, this.encodings[i].options); this.drawCanvasBarcode(encodingOptions, this.encodings[i]); this.drawCanvasText(encodingOptions, this.encodings[i]); this.moveCanvasDrawing(this.encodings[i]); } this.restoreCanvas(); } }, { key: "prepareCanvas", value: function prepareCanvas() { // Get the canvas context var ctx = this.canvas.getContext("2d"); ctx.save(); (0, _shared.calculateEncodingAttributes)(this.encodings, this.options, ctx); var totalWidth = (0, _shared.getTotalWidthOfEncodings)(this.encodings); var maxHeight = (0, _shared.getMaximumHeightOfEncodings)(this.encodings); this.canvas.width = totalWidth + this.options.marginLeft + this.options.marginRight; this.canvas.height = maxHeight; // Paint the canvas ctx.clearRect(0, 0, this.canvas.width, this.canvas.height); if (this.options.background) { ctx.fillStyle = this.options.background; ctx.fillRect(0, 0, this.canvas.width, this.canvas.height); } ctx.translate(this.options.marginLeft, 0); } }, { key: "drawCanvasBarcode", value: function drawCanvasBarcode(options, encoding) { // Get the canvas context var ctx = this.canvas.getContext("2d"); var binary = encoding.data; // Creates the barcode out of the encoded binary var yFrom; if (options.textPosition == "top") { yFrom = options.marginTop + options.fontSize + options.textMargin; } else { yFrom = options.marginTop; } ctx.fillStyle = options.lineColor; for (var b = 0; b < binary.length; b++) { var x = b * options.width + encoding.barcodePadding; if (binary[b] === "1") { ctx.fillRect(x, yFrom, options.width, options.height); } else if (binary[b]) { ctx.fillRect(x, yFrom, options.width, options.height * binary[b]); } } } }, { key: "drawCanvasText", value: function drawCanvasText(options, encoding) { // Get the canvas context var ctx = this.canvas.getContext("2d"); var font = options.fontOptions + " " + options.fontSize + "px " + options.font; // Draw the text if displayValue is set if (options.displayValue) { var x, y; if (options.textPosition == "top") { y = options.marginTop + options.fontSize - options.textMargin; } else { y = options.height + options.textMargin + options.marginTop + options.fontSize; } ctx.font = font; // Draw the text in the correct X depending on the textAlign option if (options.textAlign == "left" || encoding.barcodePadding > 0) { x = 0; ctx.textAlign = 'left'; } else if (options.textAlign == "right") { x = encoding.width - 1; ctx.textAlign = 'right'; } // In all other cases, center the text else { x = encoding.width / 2; ctx.textAlign = 'center'; } ctx.fillText(encoding.text, x, y); } } }, { key: "moveCanvasDrawing", value: function moveCanvasDrawing(encoding) { var ctx = this.canvas.getContext("2d"); ctx.translate(encoding.width, 0); } }, { key: "restoreCanvas", value: function restoreCanvas() { // Get the canvas context var ctx = this.canvas.getContext("2d"); ctx.restore(); } }]); return CanvasRenderer; }(); exports.default = CanvasRenderer; /***/ }), /***/ "7234": /***/ (function(module, exports) { // we can't use just `it == null` since of `document.all` special case // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec module.exports = function (it) { return it === null || it === undefined; }; /***/ }), /***/ "72af": /***/ (function(module, exports, __webpack_require__) { var createBaseFor = __webpack_require__("99cd"); /** * The base implementation of `baseForOwn` which iterates over `object` * properties returned by `keysFunc` and invokes `iteratee` for each property. * Iteratee functions may exit iteration early by explicitly returning `false`. * * @private * @param {Object} object The object to iterate over. * @param {Function} iteratee The function invoked per iteration. * @param {Function} keysFunc The function to get the keys of `object`. * @returns {Object} Returns `object`. */ var baseFor = createBaseFor(); module.exports = baseFor; /***/ }), /***/ "72f0": /***/ (function(module, exports) { /** * Creates a function that returns `value`. * * @static * @memberOf _ * @since 2.4.0 * @category Util * @param {*} value The value to return from the new function. * @returns {Function} Returns the new constant function. * @example * * var objects = _.times(2, _.constant({ 'a': 1 })); * * console.log(objects); * // => [{ 'a': 1 }, { 'a': 1 }] * * console.log(objects[0] === objects[1]); * // => true */ function constant(value) { return function() { return value; }; } module.exports = constant; /***/ }), /***/ "73ac": /***/ (function(module, exports, __webpack_require__) { var baseIsTypedArray = __webpack_require__("743f"), baseUnary = __webpack_require__("b047"), nodeUtil = __webpack_require__("99d3"); /* Node.js helper references. */ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; /** * Checks if `value` is classified as a typed array. * * @static * @memberOf _ * @since 3.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. * @example * * _.isTypedArray(new Uint8Array); * // => true * * _.isTypedArray([]); * // => false */ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; module.exports = isTypedArray; /***/ }), /***/ "7418": /***/ (function(module, exports) { // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe exports.f = Object.getOwnPropertySymbols; /***/ }), /***/ "743f": /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__("3729"), isLength = __webpack_require__("b218"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var argsTag = '[object Arguments]', arrayTag = '[object Array]', boolTag = '[object Boolean]', dateTag = '[object Date]', errorTag = '[object Error]', funcTag = '[object Function]', mapTag = '[object Map]', numberTag = '[object Number]', objectTag = '[object Object]', regexpTag = '[object RegExp]', setTag = '[object Set]', stringTag = '[object String]', weakMapTag = '[object WeakMap]'; var arrayBufferTag = '[object ArrayBuffer]', dataViewTag = '[object DataView]', float32Tag = '[object Float32Array]', float64Tag = '[object Float64Array]', int8Tag = '[object Int8Array]', int16Tag = '[object Int16Array]', int32Tag = '[object Int32Array]', uint8Tag = '[object Uint8Array]', uint8ClampedTag = '[object Uint8ClampedArray]', uint16Tag = '[object Uint16Array]', uint32Tag = '[object Uint32Array]'; /** Used to identify `toStringTag` values of typed arrays. */ var typedArrayTags = {}; typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true; typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false; /** * The base implementation of `_.isTypedArray` without Node.js optimizations. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. */ function baseIsTypedArray(value) { return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; } module.exports = baseIsTypedArray; /***/ }), /***/ "752b": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _canvas = __webpack_require__("721a"); var _canvas2 = _interopRequireDefault(_canvas); var _svg = __webpack_require__("be5e"); var _svg2 = _interopRequireDefault(_svg); var _object = __webpack_require__("4ced"); var _object2 = _interopRequireDefault(_object); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { CanvasRenderer: _canvas2.default, SVGRenderer: _svg2.default, ObjectRenderer: _object2.default }; /***/ }), /***/ "7530": /***/ (function(module, exports, __webpack_require__) { var isObject = __webpack_require__("1a8c"); /** Built-in value references. */ var objectCreate = Object.create; /** * The base implementation of `_.create` without support for assigning * properties to the created object. * * @private * @param {Object} proto The object to inherit from. * @returns {Object} Returns the new object. */ var baseCreate = (function() { function object() {} return function(proto) { if (!isObject(proto)) { return {}; } if (objectCreate) { return objectCreate(proto); } object.prototype = proto; var result = new object; object.prototype = undefined; return result; }; }()); module.exports = baseCreate; /***/ }), /***/ "76dd": /***/ (function(module, exports, __webpack_require__) { var baseToString = __webpack_require__("ce86"); /** * Converts `value` to a string. An empty string is returned for `null` * and `undefined` values. The sign of `-0` is preserved. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to convert. * @returns {string} Returns the converted string. * @example * * _.toString(null); * // => '' * * _.toString(-0); * // => '-0' * * _.toString([1, 2, 3]); * // => '1,2,3' */ function toString(value) { return value == null ? '' : baseToString(value); } module.exports = toString; /***/ }), /***/ "7839": /***/ (function(module, exports) { // IE8- don't enum bug keys module.exports = [ 'constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf' ]; /***/ }), /***/ "785a": /***/ (function(module, exports, __webpack_require__) { // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList` var documentCreateElement = __webpack_require__("cc12"); var classList = documentCreateElement('span').classList; var DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype; module.exports = DOMTokenListPrototype === Object.prototype ? undefined : DOMTokenListPrototype; /***/ }), /***/ "7948": /***/ (function(module, exports) { /** * A specialized version of `_.map` for arrays without support for iteratee * shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Array} Returns the new mapped array. */ function arrayMap(array, iteratee) { var index = -1, length = array == null ? 0 : array.length, result = Array(length); while (++index < length) { result[index] = iteratee(array[index], index, array); } return result; } module.exports = arrayMap; /***/ }), /***/ "79bc": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"), root = __webpack_require__("2b3e"); /* Built-in method references that are verified to be native. */ var Map = getNative(root, 'Map'); module.exports = Map; /***/ }), /***/ "79f1": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = fixOptions; function fixOptions(options) { // Fix the margins options.marginTop = options.marginTop || options.margin; options.marginBottom = options.marginBottom || options.margin; options.marginRight = options.marginRight || options.margin; options.marginLeft = options.marginLeft || options.margin; return options; } /***/ }), /***/ "7a48": /***/ (function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__("6044"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Checks if a hash value for `key` exists. * * @private * @name has * @memberOf Hash * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function hashHas(key) { var data = this.__data__; return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key); } module.exports = hashHas; /***/ }), /***/ "7a77": /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * A `Cancel` is an object that is thrown when an operation is canceled. * * @class * @param {string=} message The message. */ function Cancel(message) { this.message = message; } Cancel.prototype.toString = function toString() { return 'Cancel' + (this.message ? ': ' + this.message : ''); }; Cancel.prototype.__CANCEL__ = true; module.exports = Cancel; /***/ }), /***/ "7aac": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); module.exports = ( utils.isStandardBrowserEnv() ? // Standard browser envs support document.cookie (function standardBrowserEnv() { return { write: function write(name, value, expires, path, domain, secure) { var cookie = []; cookie.push(name + '=' + encodeURIComponent(value)); if (utils.isNumber(expires)) { cookie.push('expires=' + new Date(expires).toGMTString()); } if (utils.isString(path)) { cookie.push('path=' + path); } if (utils.isString(domain)) { cookie.push('domain=' + domain); } if (secure === true) { cookie.push('secure'); } document.cookie = cookie.join('; '); }, read: function read(name) { var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); return (match ? decodeURIComponent(match[3]) : null); }, remove: function remove(name) { this.write(name, '', Date.now() - 86400000); } }; })() : // Non standard browser env (web workers, react-native) lack needed support. (function nonStandardBrowserEnv() { return { write: function write() {}, read: function read() { return null; }, remove: function remove() {} }; })() ); /***/ }), /***/ "7b0b": /***/ (function(module, exports, __webpack_require__) { var requireObjectCoercible = __webpack_require__("1d80"); var $Object = Object; // `ToObject` abstract operation // https://tc39.es/ecma262/#sec-toobject module.exports = function (argument) { return $Object(requireObjectCoercible(argument)); }; /***/ }), /***/ "7b83": /***/ (function(module, exports, __webpack_require__) { var mapCacheClear = __webpack_require__("7c64"), mapCacheDelete = __webpack_require__("93ed"), mapCacheGet = __webpack_require__("2478"), mapCacheHas = __webpack_require__("a524"), mapCacheSet = __webpack_require__("1fc8"); /** * Creates a map cache object to store key-value pairs. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function MapCache(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } // Add methods to `MapCache`. MapCache.prototype.clear = mapCacheClear; MapCache.prototype['delete'] = mapCacheDelete; MapCache.prototype.get = mapCacheGet; MapCache.prototype.has = mapCacheHas; MapCache.prototype.set = mapCacheSet; module.exports = MapCache; /***/ }), /***/ "7c64": /***/ (function(module, exports, __webpack_require__) { var Hash = __webpack_require__("e24b"), ListCache = __webpack_require__("5e2e"), Map = __webpack_require__("79bc"); /** * Removes all key-value entries from the map. * * @private * @name clear * @memberOf MapCache */ function mapCacheClear() { this.size = 0; this.__data__ = { 'hash': new Hash, 'map': new (Map || ListCache), 'string': new Hash }; } module.exports = mapCacheClear; /***/ }), /***/ "7c73": /***/ (function(module, exports, __webpack_require__) { /* global ActiveXObject -- old IE, WSH */ var anObject = __webpack_require__("825a"); var definePropertiesModule = __webpack_require__("37e8"); var enumBugKeys = __webpack_require__("7839"); var hiddenKeys = __webpack_require__("d012"); var html = __webpack_require__("1be4"); var documentCreateElement = __webpack_require__("cc12"); var sharedKey = __webpack_require__("f772"); var GT = '>'; var LT = '<'; var PROTOTYPE = 'prototype'; var SCRIPT = 'script'; var IE_PROTO = sharedKey('IE_PROTO'); var EmptyConstructor = function () { /* empty */ }; var scriptTag = function (content) { return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT; }; // Create object with fake `null` prototype: use ActiveX Object with cleared prototype var NullProtoObjectViaActiveX = function (activeXDocument) { activeXDocument.write(scriptTag('')); activeXDocument.close(); var temp = activeXDocument.parentWindow.Object; activeXDocument = null; // avoid memory leak return temp; }; // Create object with fake `null` prototype: use iframe Object with cleared prototype var NullProtoObjectViaIFrame = function () { // Thrash, waste and sodomy: IE GC bug var iframe = documentCreateElement('iframe'); var JS = 'java' + SCRIPT + ':'; var iframeDocument; iframe.style.display = 'none'; html.appendChild(iframe); // https://github.com/zloirock/core-js/issues/475 iframe.src = String(JS); iframeDocument = iframe.contentWindow.document; iframeDocument.open(); iframeDocument.write(scriptTag('document.F=Object')); iframeDocument.close(); return iframeDocument.F; }; // Check for document.domain and active x support // No need to use active x approach when document.domain is not set // see https://github.com/es-shims/es5-shim/issues/150 // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346 // avoid IE GC bug var activeXDocument; var NullProtoObject = function () { try { activeXDocument = new ActiveXObject('htmlfile'); } catch (error) { /* ignore */ } NullProtoObject = typeof document != 'undefined' ? document.domain && activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) // old IE : NullProtoObjectViaIFrame() : NullProtoObjectViaActiveX(activeXDocument); // WSH var length = enumBugKeys.length; while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]]; return NullProtoObject(); }; hiddenKeys[IE_PROTO] = true; // `Object.create` method // https://tc39.es/ecma262/#sec-object.create // eslint-disable-next-line es/no-object-create -- safe module.exports = Object.create || function create(O, Properties) { var result; if (O !== null) { EmptyConstructor[PROTOTYPE] = anObject(O); result = new EmptyConstructor(); EmptyConstructor[PROTOTYPE] = null; // add "__proto__" for Object.getPrototypeOf polyfill result[IE_PROTO] = O; } else result = NullProtoObject(); return Properties === undefined ? result : definePropertiesModule.f(result, Properties); }; /***/ }), /***/ "7cb9": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.pharmacode = undefined; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation // http://www.gomaro.ch/ftproot/Laetus_PHARMA-CODE.pdf var pharmacode = function (_Barcode) { _inherits(pharmacode, _Barcode); function pharmacode(data, options) { _classCallCheck(this, pharmacode); var _this = _possibleConstructorReturn(this, (pharmacode.__proto__ || Object.getPrototypeOf(pharmacode)).call(this, data, options)); _this.number = parseInt(data, 10); return _this; } _createClass(pharmacode, [{ key: "encode", value: function encode() { var z = this.number; var result = ""; // http://i.imgur.com/RMm4UDJ.png // (source: http://www.gomaro.ch/ftproot/Laetus_PHARMA-CODE.pdf, page: 34) while (!isNaN(z) && z != 0) { if (z % 2 === 0) { // Even result = "11100" + result; z = (z - 2) / 2; } else { // Odd result = "100" + result; z = (z - 1) / 2; } } // Remove the two last zeroes result = result.slice(0, -2); return { data: result, text: this.text }; } }, { key: "valid", value: function valid() { return this.number >= 3 && this.number <= 131070; } }]); return pharmacode; }(_Barcode3.default); exports.pharmacode = pharmacode; /***/ }), /***/ "7d1f": /***/ (function(module, exports, __webpack_require__) { var arrayPush = __webpack_require__("087d"), isArray = __webpack_require__("6747"); /** * The base implementation of `getAllKeys` and `getAllKeysIn` which uses * `keysFunc` and `symbolsFunc` to get the enumerable property names and * symbols of `object`. * * @private * @param {Object} object The object to query. * @param {Function} keysFunc The function to get the keys of `object`. * @param {Function} symbolsFunc The function to get the symbols of `object`. * @returns {Array} Returns the array of property names and symbols. */ function baseGetAllKeys(object, keysFunc, symbolsFunc) { var result = keysFunc(object); return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); } module.exports = baseGetAllKeys; /***/ }), /***/ "7e64": /***/ (function(module, exports, __webpack_require__) { var ListCache = __webpack_require__("5e2e"), stackClear = __webpack_require__("efb6"), stackDelete = __webpack_require__("2fcc"), stackGet = __webpack_require__("802a"), stackHas = __webpack_require__("55a3"), stackSet = __webpack_require__("d02c"); /** * Creates a stack cache object to store key-value pairs. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function Stack(entries) { var data = this.__data__ = new ListCache(entries); this.size = data.size; } // Add methods to `Stack`. Stack.prototype.clear = stackClear; Stack.prototype['delete'] = stackDelete; Stack.prototype.get = stackGet; Stack.prototype.has = stackHas; Stack.prototype.set = stackSet; module.exports = Stack; /***/ }), /***/ "802a": /***/ (function(module, exports) { /** * Gets the stack value for `key`. * * @private * @name get * @memberOf Stack * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function stackGet(key) { return this.__data__.get(key); } module.exports = stackGet; /***/ }), /***/ "8057": /***/ (function(module, exports) { /** * A specialized version of `_.forEach` for arrays without support for * iteratee shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Array} Returns `array`. */ function arrayEach(array, iteratee) { var index = -1, length = array == null ? 0 : array.length; while (++index < length) { if (iteratee(array[index], index, array) === false) { break; } } return array; } module.exports = arrayEach; /***/ }), /***/ "805f": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _MSI2 = __webpack_require__("124f"); var _MSI3 = _interopRequireDefault(_MSI2); var _checksums = __webpack_require__("6e53"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var MSI1110 = function (_MSI) { _inherits(MSI1110, _MSI); function MSI1110(data, options) { _classCallCheck(this, MSI1110); data += (0, _checksums.mod11)(data); data += (0, _checksums.mod10)(data); return _possibleConstructorReturn(this, (MSI1110.__proto__ || Object.getPrototypeOf(MSI1110)).call(this, data, options)); } return MSI1110; }(_MSI3.default); exports.default = MSI1110; /***/ }), /***/ "8237": /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process, global) {var __WEBPACK_AMD_DEFINE_RESULT__;/** * [js-md5]{@link https://github.com/emn178/js-md5} * * @namespace md5 * @version 0.7.3 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2014-2017 * @license MIT */ (function () { 'use strict'; var ERROR = 'input is invalid type'; var WINDOW = typeof window === 'object'; var root = WINDOW ? window : {}; if (root.JS_MD5_NO_WINDOW) { WINDOW = false; } var WEB_WORKER = !WINDOW && typeof self === 'object'; var NODE_JS = !root.JS_MD5_NO_NODE_JS && typeof process === 'object' && process.versions && process.versions.node; if (NODE_JS) { root = global; } else if (WEB_WORKER) { root = self; } var COMMON_JS = !root.JS_MD5_NO_COMMON_JS && typeof module === 'object' && module.exports; var AMD = true && __webpack_require__("3c35"); var ARRAY_BUFFER = !root.JS_MD5_NO_ARRAY_BUFFER && typeof ArrayBuffer !== 'undefined'; var HEX_CHARS = '0123456789abcdef'.split(''); var EXTRA = [128, 32768, 8388608, -2147483648]; var SHIFT = [0, 8, 16, 24]; var OUTPUT_TYPES = ['hex', 'array', 'digest', 'buffer', 'arrayBuffer', 'base64']; var BASE64_ENCODE_CHAR = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split(''); var blocks = [], buffer8; if (ARRAY_BUFFER) { var buffer = new ArrayBuffer(68); buffer8 = new Uint8Array(buffer); blocks = new Uint32Array(buffer); } if (root.JS_MD5_NO_NODE_JS || !Array.isArray) { Array.isArray = function (obj) { return Object.prototype.toString.call(obj) === '[object Array]'; }; } if (ARRAY_BUFFER && (root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW || !ArrayBuffer.isView)) { ArrayBuffer.isView = function (obj) { return typeof obj === 'object' && obj.buffer && obj.buffer.constructor === ArrayBuffer; }; } /** * @method hex * @memberof md5 * @description Output hash as hex string * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {String} Hex string * @example * md5.hex('The quick brown fox jumps over the lazy dog'); * // equal to * md5('The quick brown fox jumps over the lazy dog'); */ /** * @method digest * @memberof md5 * @description Output hash as bytes array * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {Array} Bytes array * @example * md5.digest('The quick brown fox jumps over the lazy dog'); */ /** * @method array * @memberof md5 * @description Output hash as bytes array * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {Array} Bytes array * @example * md5.array('The quick brown fox jumps over the lazy dog'); */ /** * @method arrayBuffer * @memberof md5 * @description Output hash as ArrayBuffer * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {ArrayBuffer} ArrayBuffer * @example * md5.arrayBuffer('The quick brown fox jumps over the lazy dog'); */ /** * @method buffer * @deprecated This maybe confuse with Buffer in node.js. Please use arrayBuffer instead. * @memberof md5 * @description Output hash as ArrayBuffer * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {ArrayBuffer} ArrayBuffer * @example * md5.buffer('The quick brown fox jumps over the lazy dog'); */ /** * @method base64 * @memberof md5 * @description Output hash as base64 string * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {String} base64 string * @example * md5.base64('The quick brown fox jumps over the lazy dog'); */ var createOutputMethod = function (outputType) { return function (message) { return new Md5(true).update(message)[outputType](); }; }; /** * @method create * @memberof md5 * @description Create Md5 object * @returns {Md5} Md5 object. * @example * var hash = md5.create(); */ /** * @method update * @memberof md5 * @description Create and update Md5 object * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {Md5} Md5 object. * @example * var hash = md5.update('The quick brown fox jumps over the lazy dog'); * // equal to * var hash = md5.create(); * hash.update('The quick brown fox jumps over the lazy dog'); */ var createMethod = function () { var method = createOutputMethod('hex'); if (NODE_JS) { method = nodeWrap(method); } method.create = function () { return new Md5(); }; method.update = function (message) { return method.create().update(message); }; for (var i = 0; i < OUTPUT_TYPES.length; ++i) { var type = OUTPUT_TYPES[i]; method[type] = createOutputMethod(type); } return method; }; var nodeWrap = function (method) { var crypto = eval("require('crypto')"); var Buffer = eval("require('buffer').Buffer"); var nodeMethod = function (message) { if (typeof message === 'string') { return crypto.createHash('md5').update(message, 'utf8').digest('hex'); } else { if (message === null || message === undefined) { throw ERROR; } else if (message.constructor === ArrayBuffer) { message = new Uint8Array(message); } } if (Array.isArray(message) || ArrayBuffer.isView(message) || message.constructor === Buffer) { return crypto.createHash('md5').update(new Buffer(message)).digest('hex'); } else { return method(message); } }; return nodeMethod; }; /** * Md5 class * @class Md5 * @description This is internal class. * @see {@link md5.create} */ function Md5(sharedMemory) { if (sharedMemory) { blocks[0] = blocks[16] = blocks[1] = blocks[2] = blocks[3] = blocks[4] = blocks[5] = blocks[6] = blocks[7] = blocks[8] = blocks[9] = blocks[10] = blocks[11] = blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0; this.blocks = blocks; this.buffer8 = buffer8; } else { if (ARRAY_BUFFER) { var buffer = new ArrayBuffer(68); this.buffer8 = new Uint8Array(buffer); this.blocks = new Uint32Array(buffer); } else { this.blocks = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; } } this.h0 = this.h1 = this.h2 = this.h3 = this.start = this.bytes = this.hBytes = 0; this.finalized = this.hashed = false; this.first = true; } /** * @method update * @memberof Md5 * @instance * @description Update hash * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {Md5} Md5 object. * @see {@link md5.update} */ Md5.prototype.update = function (message) { if (this.finalized) { return; } var notString, type = typeof message; if (type !== 'string') { if (type === 'object') { if (message === null) { throw ERROR; } else if (ARRAY_BUFFER && message.constructor === ArrayBuffer) { message = new Uint8Array(message); } else if (!Array.isArray(message)) { if (!ARRAY_BUFFER || !ArrayBuffer.isView(message)) { throw ERROR; } } } else { throw ERROR; } notString = true; } var code, index = 0, i, length = message.length, blocks = this.blocks; var buffer8 = this.buffer8; while (index < length) { if (this.hashed) { this.hashed = false; blocks[0] = blocks[16]; blocks[16] = blocks[1] = blocks[2] = blocks[3] = blocks[4] = blocks[5] = blocks[6] = blocks[7] = blocks[8] = blocks[9] = blocks[10] = blocks[11] = blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0; } if (notString) { if (ARRAY_BUFFER) { for (i = this.start; index < length && i < 64; ++index) { buffer8[i++] = message[index]; } } else { for (i = this.start; index < length && i < 64; ++index) { blocks[i >> 2] |= message[index] << SHIFT[i++ & 3]; } } } else { if (ARRAY_BUFFER) { for (i = this.start; index < length && i < 64; ++index) { code = message.charCodeAt(index); if (code < 0x80) { buffer8[i++] = code; } else if (code < 0x800) { buffer8[i++] = 0xc0 | (code >> 6); buffer8[i++] = 0x80 | (code & 0x3f); } else if (code < 0xd800 || code >= 0xe000) { buffer8[i++] = 0xe0 | (code >> 12); buffer8[i++] = 0x80 | ((code >> 6) & 0x3f); buffer8[i++] = 0x80 | (code & 0x3f); } else { code = 0x10000 + (((code & 0x3ff) << 10) | (message.charCodeAt(++index) & 0x3ff)); buffer8[i++] = 0xf0 | (code >> 18); buffer8[i++] = 0x80 | ((code >> 12) & 0x3f); buffer8[i++] = 0x80 | ((code >> 6) & 0x3f); buffer8[i++] = 0x80 | (code & 0x3f); } } } else { for (i = this.start; index < length && i < 64; ++index) { code = message.charCodeAt(index); if (code < 0x80) { blocks[i >> 2] |= code << SHIFT[i++ & 3]; } else if (code < 0x800) { blocks[i >> 2] |= (0xc0 | (code >> 6)) << SHIFT[i++ & 3]; blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3]; } else if (code < 0xd800 || code >= 0xe000) { blocks[i >> 2] |= (0xe0 | (code >> 12)) << SHIFT[i++ & 3]; blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << SHIFT[i++ & 3]; blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3]; } else { code = 0x10000 + (((code & 0x3ff) << 10) | (message.charCodeAt(++index) & 0x3ff)); blocks[i >> 2] |= (0xf0 | (code >> 18)) << SHIFT[i++ & 3]; blocks[i >> 2] |= (0x80 | ((code >> 12) & 0x3f)) << SHIFT[i++ & 3]; blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << SHIFT[i++ & 3]; blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3]; } } } } this.lastByteIndex = i; this.bytes += i - this.start; if (i >= 64) { this.start = i - 64; this.hash(); this.hashed = true; } else { this.start = i; } } if (this.bytes > 4294967295) { this.hBytes += this.bytes / 4294967296 << 0; this.bytes = this.bytes % 4294967296; } return this; }; Md5.prototype.finalize = function () { if (this.finalized) { return; } this.finalized = true; var blocks = this.blocks, i = this.lastByteIndex; blocks[i >> 2] |= EXTRA[i & 3]; if (i >= 56) { if (!this.hashed) { this.hash(); } blocks[0] = blocks[16]; blocks[16] = blocks[1] = blocks[2] = blocks[3] = blocks[4] = blocks[5] = blocks[6] = blocks[7] = blocks[8] = blocks[9] = blocks[10] = blocks[11] = blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0; } blocks[14] = this.bytes << 3; blocks[15] = this.hBytes << 3 | this.bytes >>> 29; this.hash(); }; Md5.prototype.hash = function () { var a, b, c, d, bc, da, blocks = this.blocks; if (this.first) { a = blocks[0] - 680876937; a = (a << 7 | a >>> 25) - 271733879 << 0; d = (-1732584194 ^ a & 2004318071) + blocks[1] - 117830708; d = (d << 12 | d >>> 20) + a << 0; c = (-271733879 ^ (d & (a ^ -271733879))) + blocks[2] - 1126478375; c = (c << 17 | c >>> 15) + d << 0; b = (a ^ (c & (d ^ a))) + blocks[3] - 1316259209; b = (b << 22 | b >>> 10) + c << 0; } else { a = this.h0; b = this.h1; c = this.h2; d = this.h3; a += (d ^ (b & (c ^ d))) + blocks[0] - 680876936; a = (a << 7 | a >>> 25) + b << 0; d += (c ^ (a & (b ^ c))) + blocks[1] - 389564586; d = (d << 12 | d >>> 20) + a << 0; c += (b ^ (d & (a ^ b))) + blocks[2] + 606105819; c = (c << 17 | c >>> 15) + d << 0; b += (a ^ (c & (d ^ a))) + blocks[3] - 1044525330; b = (b << 22 | b >>> 10) + c << 0; } a += (d ^ (b & (c ^ d))) + blocks[4] - 176418897; a = (a << 7 | a >>> 25) + b << 0; d += (c ^ (a & (b ^ c))) + blocks[5] + 1200080426; d = (d << 12 | d >>> 20) + a << 0; c += (b ^ (d & (a ^ b))) + blocks[6] - 1473231341; c = (c << 17 | c >>> 15) + d << 0; b += (a ^ (c & (d ^ a))) + blocks[7] - 45705983; b = (b << 22 | b >>> 10) + c << 0; a += (d ^ (b & (c ^ d))) + blocks[8] + 1770035416; a = (a << 7 | a >>> 25) + b << 0; d += (c ^ (a & (b ^ c))) + blocks[9] - 1958414417; d = (d << 12 | d >>> 20) + a << 0; c += (b ^ (d & (a ^ b))) + blocks[10] - 42063; c = (c << 17 | c >>> 15) + d << 0; b += (a ^ (c & (d ^ a))) + blocks[11] - 1990404162; b = (b << 22 | b >>> 10) + c << 0; a += (d ^ (b & (c ^ d))) + blocks[12] + 1804603682; a = (a << 7 | a >>> 25) + b << 0; d += (c ^ (a & (b ^ c))) + blocks[13] - 40341101; d = (d << 12 | d >>> 20) + a << 0; c += (b ^ (d & (a ^ b))) + blocks[14] - 1502002290; c = (c << 17 | c >>> 15) + d << 0; b += (a ^ (c & (d ^ a))) + blocks[15] + 1236535329; b = (b << 22 | b >>> 10) + c << 0; a += (c ^ (d & (b ^ c))) + blocks[1] - 165796510; a = (a << 5 | a >>> 27) + b << 0; d += (b ^ (c & (a ^ b))) + blocks[6] - 1069501632; d = (d << 9 | d >>> 23) + a << 0; c += (a ^ (b & (d ^ a))) + blocks[11] + 643717713; c = (c << 14 | c >>> 18) + d << 0; b += (d ^ (a & (c ^ d))) + blocks[0] - 373897302; b = (b << 20 | b >>> 12) + c << 0; a += (c ^ (d & (b ^ c))) + blocks[5] - 701558691; a = (a << 5 | a >>> 27) + b << 0; d += (b ^ (c & (a ^ b))) + blocks[10] + 38016083; d = (d << 9 | d >>> 23) + a << 0; c += (a ^ (b & (d ^ a))) + blocks[15] - 660478335; c = (c << 14 | c >>> 18) + d << 0; b += (d ^ (a & (c ^ d))) + blocks[4] - 405537848; b = (b << 20 | b >>> 12) + c << 0; a += (c ^ (d & (b ^ c))) + blocks[9] + 568446438; a = (a << 5 | a >>> 27) + b << 0; d += (b ^ (c & (a ^ b))) + blocks[14] - 1019803690; d = (d << 9 | d >>> 23) + a << 0; c += (a ^ (b & (d ^ a))) + blocks[3] - 187363961; c = (c << 14 | c >>> 18) + d << 0; b += (d ^ (a & (c ^ d))) + blocks[8] + 1163531501; b = (b << 20 | b >>> 12) + c << 0; a += (c ^ (d & (b ^ c))) + blocks[13] - 1444681467; a = (a << 5 | a >>> 27) + b << 0; d += (b ^ (c & (a ^ b))) + blocks[2] - 51403784; d = (d << 9 | d >>> 23) + a << 0; c += (a ^ (b & (d ^ a))) + blocks[7] + 1735328473; c = (c << 14 | c >>> 18) + d << 0; b += (d ^ (a & (c ^ d))) + blocks[12] - 1926607734; b = (b << 20 | b >>> 12) + c << 0; bc = b ^ c; a += (bc ^ d) + blocks[5] - 378558; a = (a << 4 | a >>> 28) + b << 0; d += (bc ^ a) + blocks[8] - 2022574463; d = (d << 11 | d >>> 21) + a << 0; da = d ^ a; c += (da ^ b) + blocks[11] + 1839030562; c = (c << 16 | c >>> 16) + d << 0; b += (da ^ c) + blocks[14] - 35309556; b = (b << 23 | b >>> 9) + c << 0; bc = b ^ c; a += (bc ^ d) + blocks[1] - 1530992060; a = (a << 4 | a >>> 28) + b << 0; d += (bc ^ a) + blocks[4] + 1272893353; d = (d << 11 | d >>> 21) + a << 0; da = d ^ a; c += (da ^ b) + blocks[7] - 155497632; c = (c << 16 | c >>> 16) + d << 0; b += (da ^ c) + blocks[10] - 1094730640; b = (b << 23 | b >>> 9) + c << 0; bc = b ^ c; a += (bc ^ d) + blocks[13] + 681279174; a = (a << 4 | a >>> 28) + b << 0; d += (bc ^ a) + blocks[0] - 358537222; d = (d << 11 | d >>> 21) + a << 0; da = d ^ a; c += (da ^ b) + blocks[3] - 722521979; c = (c << 16 | c >>> 16) + d << 0; b += (da ^ c) + blocks[6] + 76029189; b = (b << 23 | b >>> 9) + c << 0; bc = b ^ c; a += (bc ^ d) + blocks[9] - 640364487; a = (a << 4 | a >>> 28) + b << 0; d += (bc ^ a) + blocks[12] - 421815835; d = (d << 11 | d >>> 21) + a << 0; da = d ^ a; c += (da ^ b) + blocks[15] + 530742520; c = (c << 16 | c >>> 16) + d << 0; b += (da ^ c) + blocks[2] - 995338651; b = (b << 23 | b >>> 9) + c << 0; a += (c ^ (b | ~d)) + blocks[0] - 198630844; a = (a << 6 | a >>> 26) + b << 0; d += (b ^ (a | ~c)) + blocks[7] + 1126891415; d = (d << 10 | d >>> 22) + a << 0; c += (a ^ (d | ~b)) + blocks[14] - 1416354905; c = (c << 15 | c >>> 17) + d << 0; b += (d ^ (c | ~a)) + blocks[5] - 57434055; b = (b << 21 | b >>> 11) + c << 0; a += (c ^ (b | ~d)) + blocks[12] + 1700485571; a = (a << 6 | a >>> 26) + b << 0; d += (b ^ (a | ~c)) + blocks[3] - 1894986606; d = (d << 10 | d >>> 22) + a << 0; c += (a ^ (d | ~b)) + blocks[10] - 1051523; c = (c << 15 | c >>> 17) + d << 0; b += (d ^ (c | ~a)) + blocks[1] - 2054922799; b = (b << 21 | b >>> 11) + c << 0; a += (c ^ (b | ~d)) + blocks[8] + 1873313359; a = (a << 6 | a >>> 26) + b << 0; d += (b ^ (a | ~c)) + blocks[15] - 30611744; d = (d << 10 | d >>> 22) + a << 0; c += (a ^ (d | ~b)) + blocks[6] - 1560198380; c = (c << 15 | c >>> 17) + d << 0; b += (d ^ (c | ~a)) + blocks[13] + 1309151649; b = (b << 21 | b >>> 11) + c << 0; a += (c ^ (b | ~d)) + blocks[4] - 145523070; a = (a << 6 | a >>> 26) + b << 0; d += (b ^ (a | ~c)) + blocks[11] - 1120210379; d = (d << 10 | d >>> 22) + a << 0; c += (a ^ (d | ~b)) + blocks[2] + 718787259; c = (c << 15 | c >>> 17) + d << 0; b += (d ^ (c | ~a)) + blocks[9] - 343485551; b = (b << 21 | b >>> 11) + c << 0; if (this.first) { this.h0 = a + 1732584193 << 0; this.h1 = b - 271733879 << 0; this.h2 = c - 1732584194 << 0; this.h3 = d + 271733878 << 0; this.first = false; } else { this.h0 = this.h0 + a << 0; this.h1 = this.h1 + b << 0; this.h2 = this.h2 + c << 0; this.h3 = this.h3 + d << 0; } }; /** * @method hex * @memberof Md5 * @instance * @description Output hash as hex string * @returns {String} Hex string * @see {@link md5.hex} * @example * hash.hex(); */ Md5.prototype.hex = function () { this.finalize(); var h0 = this.h0, h1 = this.h1, h2 = this.h2, h3 = this.h3; return HEX_CHARS[(h0 >> 4) & 0x0F] + HEX_CHARS[h0 & 0x0F] + HEX_CHARS[(h0 >> 12) & 0x0F] + HEX_CHARS[(h0 >> 8) & 0x0F] + HEX_CHARS[(h0 >> 20) & 0x0F] + HEX_CHARS[(h0 >> 16) & 0x0F] + HEX_CHARS[(h0 >> 28) & 0x0F] + HEX_CHARS[(h0 >> 24) & 0x0F] + HEX_CHARS[(h1 >> 4) & 0x0F] + HEX_CHARS[h1 & 0x0F] + HEX_CHARS[(h1 >> 12) & 0x0F] + HEX_CHARS[(h1 >> 8) & 0x0F] + HEX_CHARS[(h1 >> 20) & 0x0F] + HEX_CHARS[(h1 >> 16) & 0x0F] + HEX_CHARS[(h1 >> 28) & 0x0F] + HEX_CHARS[(h1 >> 24) & 0x0F] + HEX_CHARS[(h2 >> 4) & 0x0F] + HEX_CHARS[h2 & 0x0F] + HEX_CHARS[(h2 >> 12) & 0x0F] + HEX_CHARS[(h2 >> 8) & 0x0F] + HEX_CHARS[(h2 >> 20) & 0x0F] + HEX_CHARS[(h2 >> 16) & 0x0F] + HEX_CHARS[(h2 >> 28) & 0x0F] + HEX_CHARS[(h2 >> 24) & 0x0F] + HEX_CHARS[(h3 >> 4) & 0x0F] + HEX_CHARS[h3 & 0x0F] + HEX_CHARS[(h3 >> 12) & 0x0F] + HEX_CHARS[(h3 >> 8) & 0x0F] + HEX_CHARS[(h3 >> 20) & 0x0F] + HEX_CHARS[(h3 >> 16) & 0x0F] + HEX_CHARS[(h3 >> 28) & 0x0F] + HEX_CHARS[(h3 >> 24) & 0x0F]; }; /** * @method toString * @memberof Md5 * @instance * @description Output hash as hex string * @returns {String} Hex string * @see {@link md5.hex} * @example * hash.toString(); */ Md5.prototype.toString = Md5.prototype.hex; /** * @method digest * @memberof Md5 * @instance * @description Output hash as bytes array * @returns {Array} Bytes array * @see {@link md5.digest} * @example * hash.digest(); */ Md5.prototype.digest = function () { this.finalize(); var h0 = this.h0, h1 = this.h1, h2 = this.h2, h3 = this.h3; return [ h0 & 0xFF, (h0 >> 8) & 0xFF, (h0 >> 16) & 0xFF, (h0 >> 24) & 0xFF, h1 & 0xFF, (h1 >> 8) & 0xFF, (h1 >> 16) & 0xFF, (h1 >> 24) & 0xFF, h2 & 0xFF, (h2 >> 8) & 0xFF, (h2 >> 16) & 0xFF, (h2 >> 24) & 0xFF, h3 & 0xFF, (h3 >> 8) & 0xFF, (h3 >> 16) & 0xFF, (h3 >> 24) & 0xFF ]; }; /** * @method array * @memberof Md5 * @instance * @description Output hash as bytes array * @returns {Array} Bytes array * @see {@link md5.array} * @example * hash.array(); */ Md5.prototype.array = Md5.prototype.digest; /** * @method arrayBuffer * @memberof Md5 * @instance * @description Output hash as ArrayBuffer * @returns {ArrayBuffer} ArrayBuffer * @see {@link md5.arrayBuffer} * @example * hash.arrayBuffer(); */ Md5.prototype.arrayBuffer = function () { this.finalize(); var buffer = new ArrayBuffer(16); var blocks = new Uint32Array(buffer); blocks[0] = this.h0; blocks[1] = this.h1; blocks[2] = this.h2; blocks[3] = this.h3; return buffer; }; /** * @method buffer * @deprecated This maybe confuse with Buffer in node.js. Please use arrayBuffer instead. * @memberof Md5 * @instance * @description Output hash as ArrayBuffer * @returns {ArrayBuffer} ArrayBuffer * @see {@link md5.buffer} * @example * hash.buffer(); */ Md5.prototype.buffer = Md5.prototype.arrayBuffer; /** * @method base64 * @memberof Md5 * @instance * @description Output hash as base64 string * @returns {String} base64 string * @see {@link md5.base64} * @example * hash.base64(); */ Md5.prototype.base64 = function () { var v1, v2, v3, base64Str = '', bytes = this.array(); for (var i = 0; i < 15;) { v1 = bytes[i++]; v2 = bytes[i++]; v3 = bytes[i++]; base64Str += BASE64_ENCODE_CHAR[v1 >>> 2] + BASE64_ENCODE_CHAR[(v1 << 4 | v2 >>> 4) & 63] + BASE64_ENCODE_CHAR[(v2 << 2 | v3 >>> 6) & 63] + BASE64_ENCODE_CHAR[v3 & 63]; } v1 = bytes[i]; base64Str += BASE64_ENCODE_CHAR[v1 >>> 2] + BASE64_ENCODE_CHAR[(v1 << 4) & 63] + '=='; return base64Str; }; var exports = createMethod(); if (COMMON_JS) { module.exports = exports; } else { /** * @method md5 * @description Md5 hash function, export to global in browsers. * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash * @returns {String} md5 hashes * @example * md5(''); // d41d8cd98f00b204e9800998ecf8427e * md5('The quick brown fox jumps over the lazy dog'); // 9e107d9d372bb6826bd81d3542a419d6 * md5('The quick brown fox jumps over the lazy dog.'); // e4d909c290d0fb1ca068ffaddf22cbd0 * * // It also supports UTF-8 encoding * md5('中文'); // a7bac2239fcdcb3a067903d8077c4a07 * * // It also supports byte `Array`, `Uint8Array`, `ArrayBuffer` * md5([]); // d41d8cd98f00b204e9800998ecf8427e * md5(new Uint8Array([])); // d41d8cd98f00b204e9800998ecf8427e */ root.md5 = exports; if (AMD) { !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { return exports; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } } })(); /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("4362"), __webpack_require__("c8ba"))) /***/ }), /***/ "825a": /***/ (function(module, exports, __webpack_require__) { var isObject = __webpack_require__("861d"); var $String = String; var $TypeError = TypeError; // `Assert: Type(argument) is Object` module.exports = function (argument) { if (isObject(argument)) return argument; throw $TypeError($String(argument) + ' is not an object'); }; /***/ }), /***/ "83ab": /***/ (function(module, exports, __webpack_require__) { var fails = __webpack_require__("d039"); // Detect IE8's incomplete defineProperty implementation module.exports = !fails(function () { // eslint-disable-next-line es/no-object-defineproperty -- required for testing return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7; }); /***/ }), /***/ "83b9": /***/ (function(module, exports, __webpack_require__) { "use strict"; var isAbsoluteURL = __webpack_require__("d925"); var combineURLs = __webpack_require__("e683"); /** * Creates a new URL by combining the baseURL with the requestedURL, * only when the requestedURL is not already an absolute URL. * If the requestURL is absolute, this function returns the requestedURL untouched. * * @param {string} baseURL The base URL * @param {string} requestedURL Absolute or relative URL to combine * @returns {string} The combined full path */ module.exports = function buildFullPath(baseURL, requestedURL) { if (baseURL && !isAbsoluteURL(requestedURL)) { return combineURLs(baseURL, requestedURL); } return requestedURL; }; /***/ }), /***/ "8418": /***/ (function(module, exports, __webpack_require__) { "use strict"; var toPropertyKey = __webpack_require__("a04b"); var definePropertyModule = __webpack_require__("9bf2"); var createPropertyDescriptor = __webpack_require__("5c6c"); module.exports = function (object, key, value) { var propertyKey = toPropertyKey(key); if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value)); else object[propertyKey] = value; }; /***/ }), /***/ "841c": /***/ (function(module, exports, __webpack_require__) { "use strict"; var call = __webpack_require__("c65b"); var fixRegExpWellKnownSymbolLogic = __webpack_require__("d784"); var anObject = __webpack_require__("825a"); var isNullOrUndefined = __webpack_require__("7234"); var requireObjectCoercible = __webpack_require__("1d80"); var sameValue = __webpack_require__("129f"); var toString = __webpack_require__("577e"); var getMethod = __webpack_require__("dc4a"); var regExpExec = __webpack_require__("14c3"); // @@search logic fixRegExpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCallNative) { return [ // `String.prototype.search` method // https://tc39.es/ecma262/#sec-string.prototype.search function search(regexp) { var O = requireObjectCoercible(this); var searcher = isNullOrUndefined(regexp) ? undefined : getMethod(regexp, SEARCH); return searcher ? call(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString(O)); }, // `RegExp.prototype[@@search]` method // https://tc39.es/ecma262/#sec-regexp.prototype-@@search function (string) { var rx = anObject(this); var S = toString(string); var res = maybeCallNative(nativeSearch, rx, S); if (res.done) return res.value; var previousLastIndex = rx.lastIndex; if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0; var result = regExpExec(rx, S); if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex; return result === null ? -1 : result.index; } ]; }); /***/ }), /***/ "852e": /***/ (function(module, exports, __webpack_require__) { /*! js-cookie v3.0.5 | MIT */ ; (function (global, factory) { true ? module.exports = factory() : undefined; })(this, (function () { 'use strict'; /* eslint-disable no-var */ function assign (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { target[key] = source[key]; } } return target } /* eslint-enable no-var */ /* eslint-disable no-var */ var defaultConverter = { read: function (value) { if (value[0] === '"') { value = value.slice(1, -1); } return value.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent) }, write: function (value) { return encodeURIComponent(value).replace( /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent ) } }; /* eslint-enable no-var */ /* eslint-disable no-var */ function init (converter, defaultAttributes) { function set (name, value, attributes) { if (typeof document === 'undefined') { return } attributes = assign({}, defaultAttributes, attributes); if (typeof attributes.expires === 'number') { attributes.expires = new Date(Date.now() + attributes.expires * 864e5); } if (attributes.expires) { attributes.expires = attributes.expires.toUTCString(); } name = encodeURIComponent(name) .replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent) .replace(/[()]/g, escape); var stringifiedAttributes = ''; for (var attributeName in attributes) { if (!attributes[attributeName]) { continue } stringifiedAttributes += '; ' + attributeName; if (attributes[attributeName] === true) { continue } // Considers RFC 6265 section 5.2: // ... // 3. If the remaining unparsed-attributes contains a %x3B (";") // character: // Consume the characters of the unparsed-attributes up to, // not including, the first %x3B (";") character. // ... stringifiedAttributes += '=' + attributes[attributeName].split(';')[0]; } return (document.cookie = name + '=' + converter.write(value, name) + stringifiedAttributes) } function get (name) { if (typeof document === 'undefined' || (arguments.length && !name)) { return } // To prevent the for loop in the first place assign an empty array // in case there are no cookies at all. var cookies = document.cookie ? document.cookie.split('; ') : []; var jar = {}; for (var i = 0; i < cookies.length; i++) { var parts = cookies[i].split('='); var value = parts.slice(1).join('='); try { var found = decodeURIComponent(parts[0]); jar[found] = converter.read(value, found); if (name === found) { break } } catch (e) {} } return name ? jar[name] : jar } return Object.create( { set, get, remove: function (name, attributes) { set( name, '', assign({}, attributes, { expires: -1 }) ); }, withAttributes: function (attributes) { return init(this.converter, assign({}, this.attributes, attributes)) }, withConverter: function (converter) { return init(assign({}, this.converter, converter), this.attributes) } }, { attributes: { value: Object.freeze(defaultAttributes) }, converter: { value: Object.freeze(converter) } } ) } var api = init(defaultConverter, { path: '/' }); /* eslint-enable no-var */ return api; })); /***/ }), /***/ "85e3": /***/ (function(module, exports) { /** * A faster alternative to `Function#apply`, this function invokes `func` * with the `this` binding of `thisArg` and the arguments of `args`. * * @private * @param {Function} func The function to invoke. * @param {*} thisArg The `this` binding of `func`. * @param {Array} args The arguments to invoke `func` with. * @returns {*} Returns the result of `func`. */ function apply(func, thisArg, args) { switch (args.length) { case 0: return func.call(thisArg); case 1: return func.call(thisArg, args[0]); case 2: return func.call(thisArg, args[0], args[1]); case 3: return func.call(thisArg, args[0], args[1], args[2]); } return func.apply(thisArg, args); } module.exports = apply; /***/ }), /***/ "861d": /***/ (function(module, exports, __webpack_require__) { var isCallable = __webpack_require__("1626"); var $documentAll = __webpack_require__("8ea1"); var documentAll = $documentAll.all; module.exports = $documentAll.IS_HTMLDDA ? function (it) { return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll; } : function (it) { return typeof it == 'object' ? it !== null : isCallable(it); }; /***/ }), /***/ "872a": /***/ (function(module, exports, __webpack_require__) { var defineProperty = __webpack_require__("3b4a"); /** * The base implementation of `assignValue` and `assignMergeValue` without * value checks. * * @private * @param {Object} object The object to modify. * @param {string} key The key of the property to assign. * @param {*} value The value to assign. */ function baseAssignValue(object, key, value) { if (key == '__proto__' && defineProperty) { defineProperty(object, key, { 'configurable': true, 'enumerable': true, 'value': value, 'writable': true }); } else { object[key] = value; } } module.exports = baseAssignValue; /***/ }), /***/ "8861": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _MSI2 = __webpack_require__("124f"); var _MSI3 = _interopRequireDefault(_MSI2); var _checksums = __webpack_require__("6e53"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var MSI1010 = function (_MSI) { _inherits(MSI1010, _MSI); function MSI1010(data, options) { _classCallCheck(this, MSI1010); data += (0, _checksums.mod10)(data); data += (0, _checksums.mod10)(data); return _possibleConstructorReturn(this, (MSI1010.__proto__ || Object.getPrototypeOf(MSI1010)).call(this, data, options)); } return MSI1010; }(_MSI3.default); exports.default = MSI1010; /***/ }), /***/ "8875": /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// addapted from the document.currentScript polyfill by Adam Miller // MIT license // source: https://github.com/amiller-gh/currentScript-polyfill // added support for Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1620505 (function (root, factory) { if (true) { !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else {} }(typeof self !== 'undefined' ? self : this, function () { function getCurrentScript () { var descriptor = Object.getOwnPropertyDescriptor(document, 'currentScript') // for chrome if (!descriptor && 'currentScript' in document && document.currentScript) { return document.currentScript } // for other browsers with native support for currentScript if (descriptor && descriptor.get !== getCurrentScript && document.currentScript) { return document.currentScript } // IE 8-10 support script readyState // IE 11+ & Firefox support stack trace try { throw new Error(); } catch (err) { // Find the second match for the "at" string to get file src url from stack. var ieStackRegExp = /.*at [^(]*\((.*):(.+):(.+)\)$/ig, ffStackRegExp = /@([^@]*):(\d+):(\d+)\s*$/ig, stackDetails = ieStackRegExp.exec(err.stack) || ffStackRegExp.exec(err.stack), scriptLocation = (stackDetails && stackDetails[1]) || false, line = (stackDetails && stackDetails[2]) || false, currentLocation = document.location.href.replace(document.location.hash, ''), pageSource, inlineScriptSourceRegExp, inlineScriptSource, scripts = document.getElementsByTagName('script'); // Live NodeList collection if (scriptLocation === currentLocation) { pageSource = document.documentElement.outerHTML; inlineScriptSourceRegExp = new RegExp('(?:[^\\n]+?\\n){0,' + (line - 2) + '}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*', 'i'); inlineScriptSource = pageSource.replace(inlineScriptSourceRegExp, '$1').trim(); } for (var i = 0; i < scripts.length; i++) { // If ready state is interactive, return the script tag if (scripts[i].readyState === 'interactive') { return scripts[i]; } // If src matches, return the script tag if (scripts[i].src === scriptLocation) { return scripts[i]; } // If inline source matches, return the script tag if ( scriptLocation === currentLocation && scripts[i].innerHTML && scripts[i].innerHTML.trim() === inlineScriptSource ) { return scripts[i]; } } // If no match, return null return null; } }; return getCurrentScript })); /***/ }), /***/ "8925": /***/ (function(module, exports, __webpack_require__) { var uncurryThis = __webpack_require__("e330"); var isCallable = __webpack_require__("1626"); var store = __webpack_require__("c6cd"); var functionToString = uncurryThis(Function.toString); // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper if (!isCallable(store.inspectSource)) { store.inspectSource = function (it) { return functionToString(it); }; } module.exports = store.inspectSource; /***/ }), /***/ "89a2": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; var _constants = __webpack_require__("c243"); var _EAN2 = __webpack_require__("bdfe"); var _EAN3 = _interopRequireDefault(_EAN2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // https://en.wikipedia.org/wiki/International_Article_Number_(EAN)#Binary_encoding_of_data_digits_into_EAN-13_barcode // Calculate the checksum digit // https://en.wikipedia.org/wiki/International_Article_Number_(EAN)#Calculation_of_checksum_digit var checksum = function checksum(number) { var res = number.substr(0, 12).split('').map(function (n) { return +n; }).reduce(function (sum, a, idx) { return idx % 2 ? sum + a * 3 : sum + a; }, 0); return (10 - res % 10) % 10; }; var EAN13 = function (_EAN) { _inherits(EAN13, _EAN); function EAN13(data, options) { _classCallCheck(this, EAN13); // Add checksum if it does not exist if (data.search(/^[0-9]{12}$/) !== -1) { data += checksum(data); } // Adds a last character to the end of the barcode var _this = _possibleConstructorReturn(this, (EAN13.__proto__ || Object.getPrototypeOf(EAN13)).call(this, data, options)); _this.lastChar = options.lastChar; return _this; } _createClass(EAN13, [{ key: 'valid', value: function valid() { return this.data.search(/^[0-9]{13}$/) !== -1 && +this.data[12] === checksum(this.data); } }, { key: 'leftText', value: function leftText() { return _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'leftText', this).call(this, 1, 6); } }, { key: 'leftEncode', value: function leftEncode() { var data = this.data.substr(1, 6); var structure = _constants.EAN13_STRUCTURE[this.data[0]]; return _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'leftEncode', this).call(this, data, structure); } }, { key: 'rightText', value: function rightText() { return _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'rightText', this).call(this, 7, 6); } }, { key: 'rightEncode', value: function rightEncode() { var data = this.data.substr(7, 6); return _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'rightEncode', this).call(this, data, 'RRRRRR'); } // The "standard" way of printing EAN13 barcodes with guard bars }, { key: 'encodeGuarded', value: function encodeGuarded() { var data = _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'encodeGuarded', this).call(this); // Extend data with left digit & last character if (this.options.displayValue) { data.unshift({ data: '000000000000', text: this.text.substr(0, 1), options: { textAlign: 'left', fontSize: this.fontSize } }); if (this.options.lastChar) { data.push({ data: '00' }); data.push({ data: '00000', text: this.options.lastChar, options: { fontSize: this.fontSize } }); } } return data; } }]); return EAN13; }(_EAN3.default); exports.default = EAN13; /***/ }), /***/ "8a79": /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__("23e7"); var uncurryThis = __webpack_require__("4625"); var getOwnPropertyDescriptor = __webpack_require__("06cf").f; var toLength = __webpack_require__("50c4"); var toString = __webpack_require__("577e"); var notARegExp = __webpack_require__("5a34"); var requireObjectCoercible = __webpack_require__("1d80"); var correctIsRegExpLogic = __webpack_require__("ab13"); var IS_PURE = __webpack_require__("c430"); // eslint-disable-next-line es/no-string-prototype-endswith -- safe var nativeEndsWith = uncurryThis(''.endsWith); var slice = uncurryThis(''.slice); var min = Math.min; var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('endsWith'); // https://github.com/zloirock/core-js/pull/702 var MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function () { var descriptor = getOwnPropertyDescriptor(String.prototype, 'endsWith'); return descriptor && !descriptor.writable; }(); // `String.prototype.endsWith` method // https://tc39.es/ecma262/#sec-string.prototype.endswith $({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, { endsWith: function endsWith(searchString /* , endPosition = @length */) { var that = toString(requireObjectCoercible(this)); notARegExp(searchString); var endPosition = arguments.length > 1 ? arguments[1] : undefined; var len = that.length; var end = endPosition === undefined ? len : min(toLength(endPosition), len); var search = toString(searchString); return nativeEndsWith ? nativeEndsWith(that, search, end) : slice(that, end - search.length, end) === search; } }); /***/ }), /***/ "8aa5": /***/ (function(module, exports, __webpack_require__) { "use strict"; var charAt = __webpack_require__("6547").charAt; // `AdvanceStringIndex` abstract operation // https://tc39.es/ecma262/#sec-advancestringindex module.exports = function (S, index, unicode) { return index + (unicode ? charAt(S, index).length : 1); }; /***/ }), /***/ "8adb": /***/ (function(module, exports) { /** * Gets the value at `key`, unless `key` is "__proto__" or "constructor". * * @private * @param {Object} object The object to query. * @param {string} key The key of the property to get. * @returns {*} Returns the property value. */ function safeGet(object, key) { if (key === 'constructor' && typeof object[key] === 'function') { return; } if (key == '__proto__') { return; } return object[key]; } module.exports = safeGet; /***/ }), /***/ "8de2": /***/ (function(module, exports, __webpack_require__) { var copyObject = __webpack_require__("8eeb"), keysIn = __webpack_require__("9934"); /** * Converts `value` to a plain object flattening inherited enumerable string * keyed properties of `value` to own properties of the plain object. * * @static * @memberOf _ * @since 3.0.0 * @category Lang * @param {*} value The value to convert. * @returns {Object} Returns the converted plain object. * @example * * function Foo() { * this.b = 2; * } * * Foo.prototype.c = 3; * * _.assign({ 'a': 1 }, new Foo); * // => { 'a': 1, 'b': 2 } * * _.assign({ 'a': 1 }, _.toPlainObject(new Foo)); * // => { 'a': 1, 'b': 2, 'c': 3 } */ function toPlainObject(value) { return copyObject(value, keysIn(value)); } module.exports = toPlainObject; /***/ }), /***/ "8df4": /***/ (function(module, exports, __webpack_require__) { "use strict"; var Cancel = __webpack_require__("7a77"); /** * A `CancelToken` is an object that can be used to request cancellation of an operation. * * @class * @param {Function} executor The executor function. */ function CancelToken(executor) { if (typeof executor !== 'function') { throw new TypeError('executor must be a function.'); } var resolvePromise; this.promise = new Promise(function promiseExecutor(resolve) { resolvePromise = resolve; }); var token = this; executor(function cancel(message) { if (token.reason) { // Cancellation has already been requested return; } token.reason = new Cancel(message); resolvePromise(token.reason); }); } /** * Throws a `Cancel` if cancellation has been requested. */ CancelToken.prototype.throwIfRequested = function throwIfRequested() { if (this.reason) { throw this.reason; } }; /** * Returns an object that contains a new `CancelToken` and a function that, when called, * cancels the `CancelToken`. */ CancelToken.source = function source() { var cancel; var token = new CancelToken(function executor(c) { cancel = c; }); return { token: token, cancel: cancel }; }; module.exports = CancelToken; /***/ }), /***/ "8e51": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MSI1110 = exports.MSI1010 = exports.MSI11 = exports.MSI10 = exports.MSI = undefined; var _MSI = __webpack_require__("124f"); var _MSI2 = _interopRequireDefault(_MSI); var _MSI3 = __webpack_require__("4727"); var _MSI4 = _interopRequireDefault(_MSI3); var _MSI5 = __webpack_require__("4461"); var _MSI6 = _interopRequireDefault(_MSI5); var _MSI7 = __webpack_require__("8861"); var _MSI8 = _interopRequireDefault(_MSI7); var _MSI9 = __webpack_require__("805f"); var _MSI10 = _interopRequireDefault(_MSI9); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.MSI = _MSI2.default; exports.MSI10 = _MSI4.default; exports.MSI11 = _MSI6.default; exports.MSI1010 = _MSI8.default; exports.MSI1110 = _MSI10.default; /***/ }), /***/ "8ea1": /***/ (function(module, exports) { var documentAll = typeof document == 'object' && document.all; // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined; module.exports = { all: documentAll, IS_HTMLDDA: IS_HTMLDDA }; /***/ }), /***/ "8eeb": /***/ (function(module, exports, __webpack_require__) { var assignValue = __webpack_require__("32b3"), baseAssignValue = __webpack_require__("872a"); /** * Copies properties of `source` to `object`. * * @private * @param {Object} source The object to copy properties from. * @param {Array} props The property identifiers to copy. * @param {Object} [object={}] The object to copy properties to. * @param {Function} [customizer] The function to customize copied values. * @returns {Object} Returns `object`. */ function copyObject(source, props, object, customizer) { var isNew = !object; object || (object = {}); var index = -1, length = props.length; while (++index < length) { var key = props[index]; var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined; if (newValue === undefined) { newValue = source[key]; } if (isNew) { baseAssignValue(object, key, newValue); } else { assignValue(object, key, newValue); } } return object; } module.exports = copyObject; /***/ }), /***/ "90d8": /***/ (function(module, exports, __webpack_require__) { var call = __webpack_require__("c65b"); var hasOwn = __webpack_require__("1a2d"); var isPrototypeOf = __webpack_require__("3a9b"); var regExpFlags = __webpack_require__("ad6d"); var RegExpPrototype = RegExp.prototype; module.exports = function (R) { var flags = R.flags; return flags === undefined && !('flags' in RegExpPrototype) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype, R) ? call(regExpFlags, R) : flags; }; /***/ }), /***/ "90e3": /***/ (function(module, exports, __webpack_require__) { var uncurryThis = __webpack_require__("e330"); var id = 0; var postfix = Math.random(); var toString = uncurryThis(1.0.toString); module.exports = function (key) { return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36); }; /***/ }), /***/ "9112": /***/ (function(module, exports, __webpack_require__) { var DESCRIPTORS = __webpack_require__("83ab"); var definePropertyModule = __webpack_require__("9bf2"); var createPropertyDescriptor = __webpack_require__("5c6c"); module.exports = DESCRIPTORS ? function (object, key, value) { return definePropertyModule.f(object, key, createPropertyDescriptor(1, value)); } : function (object, key, value) { object[key] = value; return object; }; /***/ }), /***/ "91e9": /***/ (function(module, exports) { /** * Creates a unary function that invokes `func` with its argument transformed. * * @private * @param {Function} func The function to wrap. * @param {Function} transform The argument transform. * @returns {Function} Returns the new function. */ function overArg(func, transform) { return function(arg) { return func(transform(arg)); }; } module.exports = overArg; /***/ }), /***/ "9263": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */ /* eslint-disable regexp/no-useless-quantifier -- testing */ var call = __webpack_require__("c65b"); var uncurryThis = __webpack_require__("e330"); var toString = __webpack_require__("577e"); var regexpFlags = __webpack_require__("ad6d"); var stickyHelpers = __webpack_require__("9f7f"); var shared = __webpack_require__("5692"); var create = __webpack_require__("7c73"); var getInternalState = __webpack_require__("69f3").get; var UNSUPPORTED_DOT_ALL = __webpack_require__("fce3"); var UNSUPPORTED_NCG = __webpack_require__("107c"); var nativeReplace = shared('native-string-replace', String.prototype.replace); var nativeExec = RegExp.prototype.exec; var patchedExec = nativeExec; var charAt = uncurryThis(''.charAt); var indexOf = uncurryThis(''.indexOf); var replace = uncurryThis(''.replace); var stringSlice = uncurryThis(''.slice); var UPDATES_LAST_INDEX_WRONG = (function () { var re1 = /a/; var re2 = /b*/g; call(nativeExec, re1, 'a'); call(nativeExec, re2, 'a'); return re1.lastIndex !== 0 || re2.lastIndex !== 0; })(); var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET; // nonparticipating capturing group, copied from es5-shim's String#split patch. var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined; var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG; if (PATCH) { patchedExec = function exec(string) { var re = this; var state = getInternalState(re); var str = toString(string); var raw = state.raw; var result, reCopy, lastIndex, match, i, object, group; if (raw) { raw.lastIndex = re.lastIndex; result = call(patchedExec, raw, str); re.lastIndex = raw.lastIndex; return result; } var groups = state.groups; var sticky = UNSUPPORTED_Y && re.sticky; var flags = call(regexpFlags, re); var source = re.source; var charsAdded = 0; var strCopy = str; if (sticky) { flags = replace(flags, 'y', ''); if (indexOf(flags, 'g') === -1) { flags += 'g'; } strCopy = stringSlice(str, re.lastIndex); // Support anchored sticky behavior. if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt(str, re.lastIndex - 1) !== '\n')) { source = '(?: ' + source + ')'; strCopy = ' ' + strCopy; charsAdded++; } // ^(? + rx + ) is needed, in combination with some str slicing, to // simulate the 'y' flag. reCopy = new RegExp('^(?:' + source + ')', flags); } if (NPCG_INCLUDED) { reCopy = new RegExp('^' + source + '$(?!\\s)', flags); } if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex; match = call(nativeExec, sticky ? reCopy : re, strCopy); if (sticky) { if (match) { match.input = stringSlice(match.input, charsAdded); match[0] = stringSlice(match[0], charsAdded); match.index = re.lastIndex; re.lastIndex += match[0].length; } else re.lastIndex = 0; } else if (UPDATES_LAST_INDEX_WRONG && match) { re.lastIndex = re.global ? match.index + match[0].length : lastIndex; } if (NPCG_INCLUDED && match && match.length > 1) { // Fix browsers whose `exec` methods don't consistently return `undefined` // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/ call(nativeReplace, match[0], reCopy, function () { for (i = 1; i < arguments.length - 2; i++) { if (arguments[i] === undefined) match[i] = undefined; } }); } if (match && groups) { match.groups = object = create(null); for (i = 0; i < groups.length; i++) { group = groups[i]; object[group[0]] = match[group[1]]; } } return match; }; } module.exports = patchedExec; /***/ }), /***/ "93ed": /***/ (function(module, exports, __webpack_require__) { var getMapData = __webpack_require__("4245"); /** * Removes `key` and its value from the map. * * @private * @name delete * @memberOf MapCache * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function mapCacheDelete(key) { var result = getMapData(this, key)['delete'](key); this.size -= result ? 1 : 0; return result; } module.exports = mapCacheDelete; /***/ }), /***/ "94ca": /***/ (function(module, exports, __webpack_require__) { var fails = __webpack_require__("d039"); var isCallable = __webpack_require__("1626"); var replacement = /#|\.prototype\./; var isForced = function (feature, detection) { var value = data[normalize(feature)]; return value == POLYFILL ? true : value == NATIVE ? false : isCallable(detection) ? fails(detection) : !!detection; }; var normalize = isForced.normalize = function (string) { return String(string).replace(replacement, '.').toLowerCase(); }; var data = isForced.data = {}; var NATIVE = isForced.NATIVE = 'N'; var POLYFILL = isForced.POLYFILL = 'P'; module.exports = isForced; /***/ }), /***/ "9520": /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__("3729"), isObject = __webpack_require__("1a8c"); /** `Object#toString` result references. */ var asyncTag = '[object AsyncFunction]', funcTag = '[object Function]', genTag = '[object GeneratorFunction]', proxyTag = '[object Proxy]'; /** * Checks if `value` is classified as a `Function` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a function, else `false`. * @example * * _.isFunction(_); * // => true * * _.isFunction(/abc/); * // => false */ function isFunction(value) { if (!isObject(value)) { return false; } // The use of `Object#toString` avoids issues with the `typeof` operator // in Safari 9 which returns 'object' for typed arrays and other constructors. var tag = baseGetTag(value); return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; } module.exports = isFunction; /***/ }), /***/ "9638": /***/ (function(module, exports) { /** * Performs a * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * comparison between two values to determine if they are equivalent. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to compare. * @param {*} other The other value to compare. * @returns {boolean} Returns `true` if the values are equivalent, else `false`. * @example * * var object = { 'a': 1 }; * var other = { 'a': 1 }; * * _.eq(object, object); * // => true * * _.eq(object, other); * // => false * * _.eq('a', 'a'); * // => true * * _.eq('a', Object('a')); * // => false * * _.eq(NaN, NaN); * // => true */ function eq(value, other) { return value === other || (value !== value && other !== other); } module.exports = eq; /***/ }), /***/ "96cf": /***/ (function(module, exports) { /** * Copyright (c) 2014-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ !(function(global) { "use strict"; var Op = Object.prototype; var hasOwn = Op.hasOwnProperty; var undefined; // More compressible than void 0. var $Symbol = typeof Symbol === "function" ? Symbol : {}; var iteratorSymbol = $Symbol.iterator || "@@iterator"; var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator"; var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; var inModule = typeof module === "object"; var runtime = global.regeneratorRuntime; if (runtime) { if (inModule) { // If regeneratorRuntime is defined globally and we're in a module, // make the exports object identical to regeneratorRuntime. module.exports = runtime; } // Don't bother evaluating the rest of this file if the runtime was // already defined globally. return; } // Define the runtime globally (as expected by generated code) as either // module.exports (if we're in a module) or a new, empty object. runtime = global.regeneratorRuntime = inModule ? module.exports : {}; function wrap(innerFn, outerFn, self, tryLocsList) { // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator. var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator; var generator = Object.create(protoGenerator.prototype); var context = new Context(tryLocsList || []); // The ._invoke method unifies the implementations of the .next, // .throw, and .return methods. generator._invoke = makeInvokeMethod(innerFn, self, context); return generator; } runtime.wrap = wrap; // Try/catch helper to minimize deoptimizations. Returns a completion // record like context.tryEntries[i].completion. This interface could // have been (and was previously) designed to take a closure to be // invoked without arguments, but in all the cases we care about we // already have an existing method we want to call, so there's no need // to create a new function object. We can even get away with assuming // the method takes exactly one argument, since that happens to be true // in every case, so we don't have to touch the arguments object. The // only additional allocation required is the completion record, which // has a stable shape and so hopefully should be cheap to allocate. function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } var GenStateSuspendedStart = "suspendedStart"; var GenStateSuspendedYield = "suspendedYield"; var GenStateExecuting = "executing"; var GenStateCompleted = "completed"; // Returning this object from the innerFn has the same effect as // breaking out of the dispatch switch statement. var ContinueSentinel = {}; // Dummy constructor functions that we use as the .constructor and // .constructor.prototype properties for functions that return Generator // objects. For full spec compliance, you may wish to configure your // minifier not to mangle the names of these two functions. function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} // This is a polyfill for %IteratorPrototype% for environments that // don't natively support it. var IteratorPrototype = {}; IteratorPrototype[iteratorSymbol] = function () { return this; }; var getProto = Object.getPrototypeOf; var NativeIteratorPrototype = getProto && getProto(getProto(values([]))); if (NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) { // This environment has a native %IteratorPrototype%; use it instead // of the polyfill. IteratorPrototype = NativeIteratorPrototype; } var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype; GeneratorFunctionPrototype.constructor = GeneratorFunction; GeneratorFunctionPrototype[toStringTagSymbol] = GeneratorFunction.displayName = "GeneratorFunction"; // Helper for defining the .next, .throw, and .return methods of the // Iterator interface in terms of a single ._invoke method. function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function(method) { prototype[method] = function(arg) { return this._invoke(method, arg); }; }); } runtime.isGeneratorFunction = function(genFun) { var ctor = typeof genFun === "function" && genFun.constructor; return ctor ? ctor === GeneratorFunction || // For the native GeneratorFunction constructor, the best we can // do is to check its .name property. (ctor.displayName || ctor.name) === "GeneratorFunction" : false; }; runtime.mark = function(genFun) { if (Object.setPrototypeOf) { Object.setPrototypeOf(genFun, GeneratorFunctionPrototype); } else { genFun.__proto__ = GeneratorFunctionPrototype; if (!(toStringTagSymbol in genFun)) { genFun[toStringTagSymbol] = "GeneratorFunction"; } } genFun.prototype = Object.create(Gp); return genFun; }; // Within the body of any async function, `await x` is transformed to // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test // `hasOwn.call(value, "__await")` to determine if the yielded value is // meant to be awaited. runtime.awrap = function(arg) { return { __await: arg }; }; function AsyncIterator(generator) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if (record.type === "throw") { reject(record.arg); } else { var result = record.arg; var value = result.value; if (value && typeof value === "object" && hasOwn.call(value, "__await")) { return Promise.resolve(value.__await).then(function(value) { invoke("next", value, resolve, reject); }, function(err) { invoke("throw", err, resolve, reject); }); } return Promise.resolve(value).then(function(unwrapped) { // When a yielded Promise is resolved, its final value becomes // the .value of the Promise<{value,done}> result for the // current iteration. If the Promise is rejected, however, the // result for this iteration will be rejected with the same // reason. Note that rejections of yielded Promises are not // thrown back into the generator function, as is the case // when an awaited Promise is rejected. This difference in // behavior between yield and await is important, because it // allows the consumer to decide what to do with the yielded // rejection (swallow it and continue, manually .throw it back // into the generator, abandon iteration, whatever). With // await, by contrast, there is no opportunity to examine the // rejection reason outside the generator function, so the // only option is to throw it from the await expression, and // let the generator function handle the exception. result.value = unwrapped; resolve(result); }, reject); } } var previousPromise; function enqueue(method, arg) { function callInvokeWithMethodAndArg() { return new Promise(function(resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = // If enqueue has been called before, then we want to wait until // all previous Promises have been resolved before calling invoke, // so that results are always delivered in the correct order. If // enqueue has not been called before, then it is important to // call invoke immediately, without waiting on a callback to fire, // so that the async generator function has the opportunity to do // any necessary setup in a predictable way. This predictability // is why the Promise constructor synchronously invokes its // executor callback, and why async functions synchronously // execute code before the first await. Since we implement simple // async functions in terms of async generators, it is especially // important to get this right, even though it requires care. previousPromise ? previousPromise.then( callInvokeWithMethodAndArg, // Avoid propagating failures to Promises returned by later // invocations of the iterator. callInvokeWithMethodAndArg ) : callInvokeWithMethodAndArg(); } // Define the unified helper method that is used to implement .next, // .throw, and .return (see defineIteratorMethods). this._invoke = enqueue; } defineIteratorMethods(AsyncIterator.prototype); AsyncIterator.prototype[asyncIteratorSymbol] = function () { return this; }; runtime.AsyncIterator = AsyncIterator; // Note that simple async functions are implemented on top of // AsyncIterator objects; they just return a Promise for the value of // the final result produced by the iterator. runtime.async = function(innerFn, outerFn, self, tryLocsList) { var iter = new AsyncIterator( wrap(innerFn, outerFn, self, tryLocsList) ); return runtime.isGeneratorFunction(outerFn) ? iter // If outerFn is a generator, return the full iterator. : iter.next().then(function(result) { return result.done ? result.value : iter.next(); }); }; function makeInvokeMethod(innerFn, self, context) { var state = GenStateSuspendedStart; return function invoke(method, arg) { if (state === GenStateExecuting) { throw new Error("Generator is already running"); } if (state === GenStateCompleted) { if (method === "throw") { throw arg; } // Be forgiving, per 25.3.3.3.3 of the spec: // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume return doneResult(); } context.method = method; context.arg = arg; while (true) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if (context.method === "next") { // Setting context._sent for legacy support of Babel's // function.sent implementation. context.sent = context._sent = context.arg; } else if (context.method === "throw") { if (state === GenStateSuspendedStart) { state = GenStateCompleted; throw context.arg; } context.dispatchException(context.arg); } else if (context.method === "return") { context.abrupt("return", context.arg); } state = GenStateExecuting; var record = tryCatch(innerFn, self, context); if (record.type === "normal") { // If an exception is thrown from innerFn, we leave state === // GenStateExecuting and loop back for another invocation. state = context.done ? GenStateCompleted : GenStateSuspendedYield; if (record.arg === ContinueSentinel) { continue; } return { value: record.arg, done: context.done }; } else if (record.type === "throw") { state = GenStateCompleted; // Dispatch the exception by looping back around to the // context.dispatchException(context.arg) call above. context.method = "throw"; context.arg = record.arg; } } }; } // Call delegate.iterator[context.method](context.arg) and handle the // result, either by returning a { value, done } result from the // delegate iterator, or by modifying context.method and context.arg, // setting context.delegate to null, and returning the ContinueSentinel. function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (method === undefined) { // A .throw or .return when the delegate iterator has no .throw // method always terminates the yield* loop. context.delegate = null; if (context.method === "throw") { if (delegate.iterator.return) { // If the delegate iterator has a return method, give it a // chance to clean up. context.method = "return"; context.arg = undefined; maybeInvokeDelegate(delegate, context); if (context.method === "throw") { // If maybeInvokeDelegate(context) changed context.method from // "return" to "throw", let that override the TypeError below. return ContinueSentinel; } } context.method = "throw"; context.arg = new TypeError( "The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if (record.type === "throw") { context.method = "throw"; context.arg = record.arg; context.delegate = null; return ContinueSentinel; } var info = record.arg; if (! info) { context.method = "throw"; context.arg = new TypeError("iterator result is not an object"); context.delegate = null; return ContinueSentinel; } if (info.done) { // Assign the result of the finished delegate to the temporary // variable specified by delegate.resultName (see delegateYield). context[delegate.resultName] = info.value; // Resume execution at the desired location (see delegateYield). context.next = delegate.nextLoc; // If context.method was "throw" but the delegate handled the // exception, let the outer generator proceed normally. If // context.method was "next", forget context.arg since it has been // "consumed" by the delegate iterator. If context.method was // "return", allow the original .return call to continue in the // outer generator. if (context.method !== "return") { context.method = "next"; context.arg = undefined; } } else { // Re-yield the result returned by the delegate method. return info; } // The delegate iterator is finished, so forget it and continue with // the outer generator. context.delegate = null; return ContinueSentinel; } // Define Generator.prototype.{next,throw,return} in terms of the // unified ._invoke helper method. defineIteratorMethods(Gp); Gp[toStringTagSymbol] = "Generator"; // A Generator should always return itself as the iterator object when the // @@iterator function is called on it. Some browsers' implementations of the // iterator prototype chain incorrectly implement this, causing the Generator // object to not be returned from this call. This ensures that doesn't happen. // See https://github.com/facebook/regenerator/issues/274 for more details. Gp[iteratorSymbol] = function() { return this; }; Gp.toString = function() { return "[object Generator]"; }; function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; if (1 in locs) { entry.catchLoc = locs[1]; } if (2 in locs) { entry.finallyLoc = locs[2]; entry.afterLoc = locs[3]; } this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal"; delete record.arg; entry.completion = record; } function Context(tryLocsList) { // The root entry object (effectively a try statement without a catch // or a finally block) gives us a place to store values thrown from // locations where there is no enclosing try statement. this.tryEntries = [{ tryLoc: "root" }]; tryLocsList.forEach(pushTryEntry, this); this.reset(true); } runtime.keys = function(object) { var keys = []; for (var key in object) { keys.push(key); } keys.reverse(); // Rather than returning an object with a next method, we keep // things simple and return the next function itself. return function next() { while (keys.length) { var key = keys.pop(); if (key in object) { next.value = key; next.done = false; return next; } } // To avoid creating an additional object, we just hang the .value // and .done properties off the next function object itself. This // also ensures that the minifier will not anonymize the function. next.done = true; return next; }; }; function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) { return iteratorMethod.call(iterable); } if (typeof iterable.next === "function") { return iterable; } if (!isNaN(iterable.length)) { var i = -1, next = function next() { while (++i < iterable.length) { if (hasOwn.call(iterable, i)) { next.value = iterable[i]; next.done = false; return next; } } next.value = undefined; next.done = true; return next; }; return next.next = next; } } // Return an iterator with no values. return { next: doneResult }; } runtime.values = values; function doneResult() { return { value: undefined, done: true }; } Context.prototype = { constructor: Context, reset: function(skipTempReset) { this.prev = 0; this.next = 0; // Resetting context._sent for legacy support of Babel's // function.sent implementation. this.sent = this._sent = undefined; this.done = false; this.delegate = null; this.method = "next"; this.arg = undefined; this.tryEntries.forEach(resetTryEntry); if (!skipTempReset) { for (var name in this) { // Not sure about the optimal order of these conditions: if (name.charAt(0) === "t" && hasOwn.call(this, name) && !isNaN(+name.slice(1))) { this[name] = undefined; } } } }, stop: function() { this.done = true; var rootEntry = this.tryEntries[0]; var rootRecord = rootEntry.completion; if (rootRecord.type === "throw") { throw rootRecord.arg; } return this.rval; }, dispatchException: function(exception) { if (this.done) { throw exception; } var context = this; function handle(loc, caught) { record.type = "throw"; record.arg = exception; context.next = loc; if (caught) { // If the dispatched exception was caught by a catch block, // then let that catch block handle the exception normally. context.method = "next"; context.arg = undefined; } return !! caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; var record = entry.completion; if (entry.tryLoc === "root") { // Exception thrown outside of any try block that could handle // it, so set the completion value of the entire function to // throw the exception. return handle("end"); } if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"); var hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) { return handle(entry.catchLoc, true); } else if (this.prev < entry.finallyLoc) { return handle(entry.finallyLoc); } } else if (hasCatch) { if (this.prev < entry.catchLoc) { return handle(entry.catchLoc, true); } } else if (hasFinally) { if (this.prev < entry.finallyLoc) { return handle(entry.finallyLoc); } } else { throw new Error("try statement without catch or finally"); } } } }, abrupt: function(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } if (finallyEntry && (type === "break" || type === "continue") && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc) { // Ignore the finally entry if control is not jumping to a // location outside the try/catch block. finallyEntry = null; } var record = finallyEntry ? finallyEntry.completion : {}; record.type = type; record.arg = arg; if (finallyEntry) { this.method = "next"; this.next = finallyEntry.finallyLoc; return ContinueSentinel; } return this.complete(record); }, complete: function(record, afterLoc) { if (record.type === "throw") { throw record.arg; } if (record.type === "break" || record.type === "continue") { this.next = record.arg; } else if (record.type === "return") { this.rval = this.arg = record.arg; this.method = "return"; this.next = "end"; } else if (record.type === "normal" && afterLoc) { this.next = afterLoc; } return ContinueSentinel; }, finish: function(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) { this.complete(entry.completion, entry.afterLoc); resetTryEntry(entry); return ContinueSentinel; } } }, "catch": function(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if (record.type === "throw") { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } // The context.catch method must only be called with a location // argument that corresponds to a known catch block. throw new Error("illegal catch attempt"); }, delegateYield: function(iterable, resultName, nextLoc) { this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }; if (this.method === "next") { // Deliberately forget the last sent value so that we don't // accidentally pass it on to the delegate. this.arg = undefined; } return ContinueSentinel; } }; })( // In sloppy mode, unbound `this` refers to the global object, fallback to // Function constructor if we're in global strict mode. That is sadly a form // of indirect eval which violates Content Security Policy. (function() { return this })() || Function("return this")() ); /***/ }), /***/ "96f3": /***/ (function(module, exports) { /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * The base implementation of `_.has` without support for deep paths. * * @private * @param {Object} [object] The object to query. * @param {Array|string} key The key to check. * @returns {boolean} Returns `true` if `key` exists, else `false`. */ function baseHas(object, key) { return object != null && hasOwnProperty.call(object, key); } module.exports = baseHas; /***/ }), /***/ "9934": /***/ (function(module, exports, __webpack_require__) { var arrayLikeKeys = __webpack_require__("6fcd"), baseKeysIn = __webpack_require__("41c3"), isArrayLike = __webpack_require__("30c9"); /** * Creates an array of the own and inherited enumerable property names of `object`. * * **Note:** Non-object values are coerced to objects. * * @static * @memberOf _ * @since 3.0.0 * @category Object * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. * @example * * function Foo() { * this.a = 1; * this.b = 2; * } * * Foo.prototype.c = 3; * * _.keysIn(new Foo); * // => ['a', 'b', 'c'] (iteration order is not guaranteed) */ function keysIn(object) { return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); } module.exports = keysIn; /***/ }), /***/ "99af": /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__("23e7"); var fails = __webpack_require__("d039"); var isArray = __webpack_require__("e8b5"); var isObject = __webpack_require__("861d"); var toObject = __webpack_require__("7b0b"); var lengthOfArrayLike = __webpack_require__("07fa"); var doesNotExceedSafeInteger = __webpack_require__("3511"); var createProperty = __webpack_require__("8418"); var arraySpeciesCreate = __webpack_require__("65f0"); var arrayMethodHasSpeciesSupport = __webpack_require__("1dde"); var wellKnownSymbol = __webpack_require__("b622"); var V8_VERSION = __webpack_require__("2d00"); var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable'); // We can't use this feature detection in V8 since it causes // deoptimization and serious performance degradation // https://github.com/zloirock/core-js/issues/679 var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () { var array = []; array[IS_CONCAT_SPREADABLE] = false; return array.concat()[0] !== array; }); var isConcatSpreadable = function (O) { if (!isObject(O)) return false; var spreadable = O[IS_CONCAT_SPREADABLE]; return spreadable !== undefined ? !!spreadable : isArray(O); }; var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat'); // `Array.prototype.concat` method // https://tc39.es/ecma262/#sec-array.prototype.concat // with adding support of @@isConcatSpreadable and @@species $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, { // eslint-disable-next-line no-unused-vars -- required for `.length` concat: function concat(arg) { var O = toObject(this); var A = arraySpeciesCreate(O, 0); var n = 0; var i, k, length, len, E; for (i = -1, length = arguments.length; i < length; i++) { E = i === -1 ? O : arguments[i]; if (isConcatSpreadable(E)) { len = lengthOfArrayLike(E); doesNotExceedSafeInteger(n + len); for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]); } else { doesNotExceedSafeInteger(n + 1); createProperty(A, n++, E); } } A.length = n; return A; } }); /***/ }), /***/ "99cd": /***/ (function(module, exports) { /** * Creates a base function for methods like `_.forIn` and `_.forOwn`. * * @private * @param {boolean} [fromRight] Specify iterating from right to left. * @returns {Function} Returns the new base function. */ function createBaseFor(fromRight) { return function(object, iteratee, keysFunc) { var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length; while (length--) { var key = props[fromRight ? length : ++index]; if (iteratee(iterable[key], key, iterable) === false) { break; } } return object; }; } module.exports = createBaseFor; /***/ }), /***/ "99d3": /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__("585a"); /** Detect free variable `exports`. */ var freeExports = true && exports && !exports.nodeType && exports; /** Detect free variable `module`. */ var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; /** Detect the popular CommonJS extension `module.exports`. */ var moduleExports = freeModule && freeModule.exports === freeExports; /** Detect free variable `process` from Node.js. */ var freeProcess = moduleExports && freeGlobal.process; /** Used to access faster Node.js helpers. */ var nodeUtil = (function() { try { // Use `util.types` for Node.js 10+. var types = freeModule && freeModule.require && freeModule.require('util').types; if (types) { return types; } // Legacy `process.binding('util')` for Node.js < 10. return freeProcess && freeProcess.binding && freeProcess.binding('util'); } catch (e) {} }()); module.exports = nodeUtil; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("62e4")(module))) /***/ }), /***/ "9a1f": /***/ (function(module, exports, __webpack_require__) { var call = __webpack_require__("c65b"); var aCallable = __webpack_require__("59ed"); var anObject = __webpack_require__("825a"); var tryToString = __webpack_require__("0d51"); var getIteratorMethod = __webpack_require__("35a1"); var $TypeError = TypeError; module.exports = function (argument, usingIterator) { var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator; if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument)); throw $TypeError(tryToString(argument) + ' is not iterable'); }; /***/ }), /***/ "9aff": /***/ (function(module, exports, __webpack_require__) { var eq = __webpack_require__("9638"), isArrayLike = __webpack_require__("30c9"), isIndex = __webpack_require__("c098"), isObject = __webpack_require__("1a8c"); /** * Checks if the given arguments are from an iteratee call. * * @private * @param {*} value The potential iteratee value argument. * @param {*} index The potential iteratee index or key argument. * @param {*} object The potential iteratee object argument. * @returns {boolean} Returns `true` if the arguments are from an iteratee call, * else `false`. */ function isIterateeCall(value, index, object) { if (!isObject(object)) { return false; } var type = typeof index; if (type == 'number' ? (isArrayLike(object) && isIndex(index, object.length)) : (type == 'string' && index in object) ) { return eq(object[index], value); } return false; } module.exports = isIterateeCall; /***/ }), /***/ "9bdd": /***/ (function(module, exports, __webpack_require__) { var anObject = __webpack_require__("825a"); var iteratorClose = __webpack_require__("2a62"); // call something on iterator step with safe closing on error module.exports = function (iterator, fn, value, ENTRIES) { try { return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value); } catch (error) { iteratorClose(iterator, 'throw', error); } }; /***/ }), /***/ "9bf2": /***/ (function(module, exports, __webpack_require__) { var DESCRIPTORS = __webpack_require__("83ab"); var IE8_DOM_DEFINE = __webpack_require__("0cfb"); var V8_PROTOTYPE_DEFINE_BUG = __webpack_require__("aed9"); var anObject = __webpack_require__("825a"); var toPropertyKey = __webpack_require__("a04b"); var $TypeError = TypeError; // eslint-disable-next-line es/no-object-defineproperty -- safe var $defineProperty = Object.defineProperty; // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; var ENUMERABLE = 'enumerable'; var CONFIGURABLE = 'configurable'; var WRITABLE = 'writable'; // `Object.defineProperty` method // https://tc39.es/ecma262/#sec-object.defineproperty exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) { anObject(O); P = toPropertyKey(P); anObject(Attributes); if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) { var current = $getOwnPropertyDescriptor(O, P); if (current && current[WRITABLE]) { O[P] = Attributes.value; Attributes = { configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE], enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE], writable: false }; } } return $defineProperty(O, P, Attributes); } : $defineProperty : function defineProperty(O, P, Attributes) { anObject(O); P = toPropertyKey(P); anObject(Attributes); if (IE8_DOM_DEFINE) try { return $defineProperty(O, P, Attributes); } catch (error) { /* empty */ } if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported'); if ('value' in Attributes) O[P] = Attributes.value; return O; }; /***/ }), /***/ "9e69": /***/ (function(module, exports, __webpack_require__) { var root = __webpack_require__("2b3e"); /** Built-in value references. */ var Symbol = root.Symbol; module.exports = Symbol; /***/ }), /***/ "9f7f": /***/ (function(module, exports, __webpack_require__) { var fails = __webpack_require__("d039"); var global = __webpack_require__("da84"); // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError var $RegExp = global.RegExp; var UNSUPPORTED_Y = fails(function () { var re = $RegExp('a', 'y'); re.lastIndex = 2; return re.exec('abcd') != null; }); // UC Browser bug // https://github.com/zloirock/core-js/issues/1008 var MISSED_STICKY = UNSUPPORTED_Y || fails(function () { return !$RegExp('a', 'y').sticky; }); var BROKEN_CARET = UNSUPPORTED_Y || fails(function () { // https://bugzilla.mozilla.org/show_bug.cgi?id=773687 var re = $RegExp('^r', 'gy'); re.lastIndex = 2; return re.exec('str') != null; }); module.exports = { BROKEN_CARET: BROKEN_CARET, MISSED_STICKY: MISSED_STICKY, UNSUPPORTED_Y: UNSUPPORTED_Y }; /***/ }), /***/ "9ffa": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ITF14 = exports.ITF = undefined; var _ITF = __webpack_require__("3c7c"); var _ITF2 = _interopRequireDefault(_ITF); var _ITF3 = __webpack_require__("07df"); var _ITF4 = _interopRequireDefault(_ITF3); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.ITF = _ITF2.default; exports.ITF14 = _ITF4.default; /***/ }), /***/ "a029": /***/ (function(module, exports, __webpack_require__) { var arrayPush = __webpack_require__("087d"), getPrototype = __webpack_require__("2dcb"), getSymbols = __webpack_require__("32f4"), stubArray = __webpack_require__("d327"); /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeGetSymbols = Object.getOwnPropertySymbols; /** * Creates an array of the own and inherited enumerable symbols of `object`. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of symbols. */ var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) { var result = []; while (object) { arrayPush(result, getSymbols(object)); object = getPrototype(object); } return result; }; module.exports = getSymbolsIn; /***/ }), /***/ "a04b": /***/ (function(module, exports, __webpack_require__) { var toPrimitive = __webpack_require__("c04e"); var isSymbol = __webpack_require__("d9b5"); // `ToPropertyKey` abstract operation // https://tc39.es/ecma262/#sec-topropertykey module.exports = function (argument) { var key = toPrimitive(argument, 'string'); return isSymbol(key) ? key : key + ''; }; /***/ }), /***/ "a15b": /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__("23e7"); var uncurryThis = __webpack_require__("e330"); var IndexedObject = __webpack_require__("44ad"); var toIndexedObject = __webpack_require__("fc6a"); var arrayMethodIsStrict = __webpack_require__("a640"); var nativeJoin = uncurryThis([].join); var ES3_STRINGS = IndexedObject != Object; var FORCED = ES3_STRINGS || !arrayMethodIsStrict('join', ','); // `Array.prototype.join` method // https://tc39.es/ecma262/#sec-array.prototype.join $({ target: 'Array', proto: true, forced: FORCED }, { join: function join(separator) { return nativeJoin(toIndexedObject(this), separator === undefined ? ',' : separator); } }); /***/ }), /***/ "a2b0": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = linearizeEncodings; // Encodings can be nestled like [[1-1, 1-2], 2, [3-1, 3-2] // Convert to [1-1, 1-2, 2, 3-1, 3-2] function linearizeEncodings(encodings) { var linearEncodings = []; function nextLevel(encoded) { if (Array.isArray(encoded)) { for (var i = 0; i < encoded.length; i++) { nextLevel(encoded[i]); } } else { encoded.text = encoded.text || ""; encoded.data = encoded.data || ""; linearEncodings.push(encoded); } } nextLevel(encodings); return linearEncodings; } /***/ }), /***/ "a2db": /***/ (function(module, exports, __webpack_require__) { var Symbol = __webpack_require__("9e69"); /** Used to convert symbols to primitives and strings. */ var symbolProto = Symbol ? Symbol.prototype : undefined, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined; /** * Creates a clone of the `symbol` object. * * @private * @param {Object} symbol The symbol object to clone. * @returns {Object} Returns the cloned symbol object. */ function cloneSymbol(symbol) { return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {}; } module.exports = cloneSymbol; /***/ }), /***/ "a434": /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__("23e7"); var toObject = __webpack_require__("7b0b"); var toAbsoluteIndex = __webpack_require__("23cb"); var toIntegerOrInfinity = __webpack_require__("5926"); var lengthOfArrayLike = __webpack_require__("07fa"); var setArrayLength = __webpack_require__("3a34"); var doesNotExceedSafeInteger = __webpack_require__("3511"); var arraySpeciesCreate = __webpack_require__("65f0"); var createProperty = __webpack_require__("8418"); var deletePropertyOrThrow = __webpack_require__("083a"); var arrayMethodHasSpeciesSupport = __webpack_require__("1dde"); var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice'); var max = Math.max; var min = Math.min; // `Array.prototype.splice` method // https://tc39.es/ecma262/#sec-array.prototype.splice // with adding support of @@species $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, { splice: function splice(start, deleteCount /* , ...items */) { var O = toObject(this); var len = lengthOfArrayLike(O); var actualStart = toAbsoluteIndex(start, len); var argumentsLength = arguments.length; var insertCount, actualDeleteCount, A, k, from, to; if (argumentsLength === 0) { insertCount = actualDeleteCount = 0; } else if (argumentsLength === 1) { insertCount = 0; actualDeleteCount = len - actualStart; } else { insertCount = argumentsLength - 2; actualDeleteCount = min(max(toIntegerOrInfinity(deleteCount), 0), len - actualStart); } doesNotExceedSafeInteger(len + insertCount - actualDeleteCount); A = arraySpeciesCreate(O, actualDeleteCount); for (k = 0; k < actualDeleteCount; k++) { from = actualStart + k; if (from in O) createProperty(A, k, O[from]); } A.length = actualDeleteCount; if (insertCount < actualDeleteCount) { for (k = actualStart; k < len - actualDeleteCount; k++) { from = k + actualDeleteCount; to = k + insertCount; if (from in O) O[to] = O[from]; else deletePropertyOrThrow(O, to); } for (k = len; k > len - actualDeleteCount + insertCount; k--) deletePropertyOrThrow(O, k - 1); } else if (insertCount > actualDeleteCount) { for (k = len - actualDeleteCount; k > actualStart; k--) { from = k + actualDeleteCount - 1; to = k + insertCount - 1; if (from in O) O[to] = O[from]; else deletePropertyOrThrow(O, to); } } for (k = 0; k < insertCount; k++) { O[k + actualStart] = arguments[k + 2]; } setArrayLength(O, len - actualDeleteCount + insertCount); return A; } }); /***/ }), /***/ "a454": /***/ (function(module, exports, __webpack_require__) { var constant = __webpack_require__("72f0"), defineProperty = __webpack_require__("3b4a"), identity = __webpack_require__("cd9d"); /** * The base implementation of `setToString` without support for hot loop shorting. * * @private * @param {Function} func The function to modify. * @param {Function} string The `toString` result. * @returns {Function} Returns `func`. */ var baseSetToString = !defineProperty ? identity : function(func, string) { return defineProperty(func, 'toString', { 'configurable': true, 'enumerable': false, 'value': constant(string), 'writable': true }); }; module.exports = baseSetToString; /***/ }), /***/ "a4b4": /***/ (function(module, exports, __webpack_require__) { var userAgent = __webpack_require__("342f"); module.exports = /web0s(?!.*chrome)/i.test(userAgent); /***/ }), /***/ "a4d3": /***/ (function(module, exports, __webpack_require__) { // TODO: Remove this module from `core-js@4` since it's split to modules listed below __webpack_require__("d9f5"); __webpack_require__("b4f8"); __webpack_require__("c513"); __webpack_require__("e9c4"); __webpack_require__("5a47"); /***/ }), /***/ "a524": /***/ (function(module, exports, __webpack_require__) { var getMapData = __webpack_require__("4245"); /** * Checks if a map value for `key` exists. * * @private * @name has * @memberOf MapCache * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function mapCacheHas(key) { return getMapData(this, key).has(key); } module.exports = mapCacheHas; /***/ }), /***/ "a5d2": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _constants = __webpack_require__("c243"); var _encoder = __webpack_require__("5726"); var _encoder2 = _interopRequireDefault(_encoder); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // https://en.wikipedia.org/wiki/EAN_2#Encoding var EAN2 = function (_Barcode) { _inherits(EAN2, _Barcode); function EAN2(data, options) { _classCallCheck(this, EAN2); return _possibleConstructorReturn(this, (EAN2.__proto__ || Object.getPrototypeOf(EAN2)).call(this, data, options)); } _createClass(EAN2, [{ key: 'valid', value: function valid() { return this.data.search(/^[0-9]{2}$/) !== -1; } }, { key: 'encode', value: function encode() { // Choose the structure based on the number mod 4 var structure = _constants.EAN2_STRUCTURE[parseInt(this.data) % 4]; return { // Start bits + Encode the two digits with 01 in between data: '1011' + (0, _encoder2.default)(this.data, structure, '01'), text: this.text }; } }]); return EAN2; }(_Barcode3.default); exports.default = EAN2; /***/ }), /***/ "a630": /***/ (function(module, exports, __webpack_require__) { var $ = __webpack_require__("23e7"); var from = __webpack_require__("4df4"); var checkCorrectnessOfIteration = __webpack_require__("1c7e"); var INCORRECT_ITERATION = !checkCorrectnessOfIteration(function (iterable) { // eslint-disable-next-line es/no-array-from -- required for testing Array.from(iterable); }); // `Array.from` method // https://tc39.es/ecma262/#sec-array.from $({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, { from: from }); /***/ }), /***/ "a640": /***/ (function(module, exports, __webpack_require__) { "use strict"; var fails = __webpack_require__("d039"); module.exports = function (METHOD_NAME, argument) { var method = [][METHOD_NAME]; return !!method && fails(function () { // eslint-disable-next-line no-useless-call -- required for testing method.call(null, argument || function () { return 1; }, 1); }); }; /***/ }), /***/ "a994": /***/ (function(module, exports, __webpack_require__) { var baseGetAllKeys = __webpack_require__("7d1f"), getSymbols = __webpack_require__("32f4"), keys = __webpack_require__("ec69"); /** * Creates an array of own enumerable property names and symbols of `object`. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names and symbols. */ function getAllKeys(object) { return baseGetAllKeys(object, keys, getSymbols); } module.exports = getAllKeys; /***/ }), /***/ "a9e3": /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__("23e7"); var IS_PURE = __webpack_require__("c430"); var DESCRIPTORS = __webpack_require__("83ab"); var global = __webpack_require__("da84"); var path = __webpack_require__("428f"); var uncurryThis = __webpack_require__("e330"); var isForced = __webpack_require__("94ca"); var hasOwn = __webpack_require__("1a2d"); var inheritIfRequired = __webpack_require__("7156"); var isPrototypeOf = __webpack_require__("3a9b"); var isSymbol = __webpack_require__("d9b5"); var toPrimitive = __webpack_require__("c04e"); var fails = __webpack_require__("d039"); var getOwnPropertyNames = __webpack_require__("241c").f; var getOwnPropertyDescriptor = __webpack_require__("06cf").f; var defineProperty = __webpack_require__("9bf2").f; var thisNumberValue = __webpack_require__("408a"); var trim = __webpack_require__("58a8").trim; var NUMBER = 'Number'; var NativeNumber = global[NUMBER]; var PureNumberNamespace = path[NUMBER]; var NumberPrototype = NativeNumber.prototype; var TypeError = global.TypeError; var stringSlice = uncurryThis(''.slice); var charCodeAt = uncurryThis(''.charCodeAt); // `ToNumeric` abstract operation // https://tc39.es/ecma262/#sec-tonumeric var toNumeric = function (value) { var primValue = toPrimitive(value, 'number'); return typeof primValue == 'bigint' ? primValue : toNumber(primValue); }; // `ToNumber` abstract operation // https://tc39.es/ecma262/#sec-tonumber var toNumber = function (argument) { var it = toPrimitive(argument, 'number'); var first, third, radix, maxCode, digits, length, index, code; if (isSymbol(it)) throw TypeError('Cannot convert a Symbol value to a number'); if (typeof it == 'string' && it.length > 2) { it = trim(it); first = charCodeAt(it, 0); if (first === 43 || first === 45) { third = charCodeAt(it, 2); if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix } else if (first === 48) { switch (charCodeAt(it, 1)) { case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i default: return +it; } digits = stringSlice(it, 2); length = digits.length; for (index = 0; index < length; index++) { code = charCodeAt(digits, index); // parseInt parses a string to a first unavailable symbol // but ToNumber should return NaN if a string contains unavailable symbols if (code < 48 || code > maxCode) return NaN; } return parseInt(digits, radix); } } return +it; }; var FORCED = isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1')); var calledWithNew = function (dummy) { // includes check on 1..constructor(foo) case return isPrototypeOf(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); }); }; // `Number` constructor // https://tc39.es/ecma262/#sec-number-constructor var NumberWrapper = function Number(value) { var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value)); return calledWithNew(this) ? inheritIfRequired(Object(n), this, NumberWrapper) : n; }; NumberWrapper.prototype = NumberPrototype; if (FORCED && !IS_PURE) NumberPrototype.constructor = NumberWrapper; $({ global: true, constructor: true, wrap: true, forced: FORCED }, { Number: NumberWrapper }); // Use `internal/copy-constructor-properties` helper in `core-js@4` var copyConstructorProperties = function (target, source) { for (var keys = DESCRIPTORS ? getOwnPropertyNames(source) : ( // ES3: 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + // ES2015 (in case, if modules with ES2015 Number statics required before): 'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' + // ESNext 'fromString,range' ).split(','), j = 0, key; keys.length > j; j++) { if (hasOwn(source, key = keys[j]) && !hasOwn(target, key)) { defineProperty(target, key, getOwnPropertyDescriptor(source, key)); } } }; if (IS_PURE && PureNumberNamespace) copyConstructorProperties(path[NUMBER], PureNumberNamespace); if (FORCED || IS_PURE) copyConstructorProperties(path[NUMBER], NativeNumber); /***/ }), /***/ "aab3": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _optionsFromStrings = __webpack_require__("5261"); var _optionsFromStrings2 = _interopRequireDefault(_optionsFromStrings); var _defaults = __webpack_require__("ca32"); var _defaults2 = _interopRequireDefault(_defaults); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function getOptionsFromElement(element) { var options = {}; for (var property in _defaults2.default) { if (_defaults2.default.hasOwnProperty(property)) { // jsbarcode-* if (element.hasAttribute("jsbarcode-" + property.toLowerCase())) { options[property] = element.getAttribute("jsbarcode-" + property.toLowerCase()); } // data-* if (element.hasAttribute("data-" + property.toLowerCase())) { options[property] = element.getAttribute("data-" + property.toLowerCase()); } } } options["value"] = element.getAttribute("jsbarcode-value") || element.getAttribute("data-value"); // Since all atributes are string they need to be converted to integers options = (0, _optionsFromStrings2.default)(options); return options; } exports.default = getOptionsFromElement; /***/ }), /***/ "ab13": /***/ (function(module, exports, __webpack_require__) { var wellKnownSymbol = __webpack_require__("b622"); var MATCH = wellKnownSymbol('match'); module.exports = function (METHOD_NAME) { var regexp = /./; try { '/./'[METHOD_NAME](regexp); } catch (error1) { try { regexp[MATCH] = false; return '/./'[METHOD_NAME](regexp); } catch (error2) { /* empty */ } } return false; }; /***/ }), /***/ "ab36": /***/ (function(module, exports, __webpack_require__) { var isObject = __webpack_require__("861d"); var createNonEnumerableProperty = __webpack_require__("9112"); // `InstallErrorCause` abstract operation // https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause module.exports = function (O, options) { if (isObject(options) && 'cause' in options) { createNonEnumerableProperty(O, 'cause', options.cause); } }; /***/ }), /***/ "ab5b": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getTotalWidthOfEncodings = exports.calculateEncodingAttributes = exports.getBarcodePadding = exports.getEncodingHeight = exports.getMaximumHeightOfEncodings = undefined; var _merge = __webpack_require__("fd7c"); var _merge2 = _interopRequireDefault(_merge); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function getEncodingHeight(encoding, options) { return options.height + (options.displayValue && encoding.text.length > 0 ? options.fontSize + options.textMargin : 0) + options.marginTop + options.marginBottom; } function getBarcodePadding(textWidth, barcodeWidth, options) { if (options.displayValue && barcodeWidth < textWidth) { if (options.textAlign == "center") { return Math.floor((textWidth - barcodeWidth) / 2); } else if (options.textAlign == "left") { return 0; } else if (options.textAlign == "right") { return Math.floor(textWidth - barcodeWidth); } } return 0; } function calculateEncodingAttributes(encodings, barcodeOptions, context) { for (var i = 0; i < encodings.length; i++) { var encoding = encodings[i]; var options = (0, _merge2.default)(barcodeOptions, encoding.options); // Calculate the width of the encoding var textWidth; if (options.displayValue) { textWidth = messureText(encoding.text, options, context); } else { textWidth = 0; } var barcodeWidth = encoding.data.length * options.width; encoding.width = Math.ceil(Math.max(textWidth, barcodeWidth)); encoding.height = getEncodingHeight(encoding, options); encoding.barcodePadding = getBarcodePadding(textWidth, barcodeWidth, options); } } function getTotalWidthOfEncodings(encodings) { var totalWidth = 0; for (var i = 0; i < encodings.length; i++) { totalWidth += encodings[i].width; } return totalWidth; } function getMaximumHeightOfEncodings(encodings) { var maxHeight = 0; for (var i = 0; i < encodings.length; i++) { if (encodings[i].height > maxHeight) { maxHeight = encodings[i].height; } } return maxHeight; } function messureText(string, options, context) { var ctx; if (context) { ctx = context; } else if (typeof document !== "undefined") { ctx = document.createElement("canvas").getContext("2d"); } else { // If the text cannot be messured we will return 0. // This will make some barcode with big text render incorrectly return 0; } ctx.font = options.fontOptions + " " + options.fontSize + "px " + options.font; // Calculate the width of the encoding var measureTextResult = ctx.measureText(string); if (!measureTextResult) { // Some implementations don't implement measureText and return undefined. // If the text cannot be measured we will return 0. // This will make some barcode with big text render incorrectly return 0; } var size = measureTextResult.width; return size; } exports.getMaximumHeightOfEncodings = getMaximumHeightOfEncodings; exports.getEncodingHeight = getEncodingHeight; exports.getBarcodePadding = getBarcodePadding; exports.calculateEncodingAttributes = calculateEncodingAttributes; exports.getTotalWidthOfEncodings = getTotalWidthOfEncodings; /***/ }), /***/ "ac1f": /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__("23e7"); var exec = __webpack_require__("9263"); // `RegExp.prototype.exec` method // https://tc39.es/ecma262/#sec-regexp.prototype.exec $({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, { exec: exec }); /***/ }), /***/ "ad6d": /***/ (function(module, exports, __webpack_require__) { "use strict"; var anObject = __webpack_require__("825a"); // `RegExp.prototype.flags` getter implementation // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags module.exports = function () { var that = anObject(this); var result = ''; if (that.hasIndices) result += 'd'; if (that.global) result += 'g'; if (that.ignoreCase) result += 'i'; if (that.multiline) result += 'm'; if (that.dotAll) result += 's'; if (that.unicode) result += 'u'; if (that.unicodeSets) result += 'v'; if (that.sticky) result += 'y'; return result; }; /***/ }), /***/ "ae93": /***/ (function(module, exports, __webpack_require__) { "use strict"; var fails = __webpack_require__("d039"); var isCallable = __webpack_require__("1626"); var isObject = __webpack_require__("861d"); var create = __webpack_require__("7c73"); var getPrototypeOf = __webpack_require__("e163"); var defineBuiltIn = __webpack_require__("cb2d"); var wellKnownSymbol = __webpack_require__("b622"); var IS_PURE = __webpack_require__("c430"); var ITERATOR = wellKnownSymbol('iterator'); var BUGGY_SAFARI_ITERATORS = false; // `%IteratorPrototype%` object // https://tc39.es/ecma262/#sec-%iteratorprototype%-object var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator; /* eslint-disable es/no-array-prototype-keys -- safe */ if ([].keys) { arrayIterator = [].keys(); // Safari 8 has buggy iterators w/o `next` if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true; else { PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator)); if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype; } } var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype) || fails(function () { var test = {}; // FF44- legacy iterators case return IteratorPrototype[ITERATOR].call(test) !== test; }); if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {}; else if (IS_PURE) IteratorPrototype = create(IteratorPrototype); // `%IteratorPrototype%[@@iterator]()` method // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator if (!isCallable(IteratorPrototype[ITERATOR])) { defineBuiltIn(IteratorPrototype, ITERATOR, function () { return this; }); } module.exports = { IteratorPrototype: IteratorPrototype, BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS }; /***/ }), /***/ "aeb0": /***/ (function(module, exports, __webpack_require__) { var defineProperty = __webpack_require__("9bf2").f; module.exports = function (Target, Source, key) { key in Target || defineProperty(Target, key, { configurable: true, get: function () { return Source[key]; }, set: function (it) { Source[key] = it; } }); }; /***/ }), /***/ "aed9": /***/ (function(module, exports, __webpack_require__) { var DESCRIPTORS = __webpack_require__("83ab"); var fails = __webpack_require__("d039"); // V8 ~ Chrome 36- // https://bugs.chromium.org/p/v8/issues/detail?id=3334 module.exports = DESCRIPTORS && fails(function () { // eslint-disable-next-line es/no-object-defineproperty -- required for testing return Object.defineProperty(function () { /* empty */ }, 'prototype', { value: 42, writable: false }).prototype != 42; }); /***/ }), /***/ "b041": /***/ (function(module, exports, __webpack_require__) { "use strict"; var TO_STRING_TAG_SUPPORT = __webpack_require__("00ee"); var classof = __webpack_require__("f5df"); // `Object.prototype.toString` method implementation // https://tc39.es/ecma262/#sec-object.prototype.tostring module.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() { return '[object ' + classof(this) + ']'; }; /***/ }), /***/ "b047": /***/ (function(module, exports) { /** * The base implementation of `_.unary` without support for storing metadata. * * @private * @param {Function} func The function to cap arguments for. * @returns {Function} Returns the new capped function. */ function baseUnary(func) { return function(value) { return func(value); }; } module.exports = baseUnary; /***/ }), /***/ "b0c0": /***/ (function(module, exports, __webpack_require__) { var DESCRIPTORS = __webpack_require__("83ab"); var FUNCTION_NAME_EXISTS = __webpack_require__("5e77").EXISTS; var uncurryThis = __webpack_require__("e330"); var defineProperty = __webpack_require__("9bf2").f; var FunctionPrototype = Function.prototype; var functionToString = uncurryThis(FunctionPrototype.toString); var nameRE = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/; var regExpExec = uncurryThis(nameRE.exec); var NAME = 'name'; // Function instances `.name` property // https://tc39.es/ecma262/#sec-function-instances-name if (DESCRIPTORS && !FUNCTION_NAME_EXISTS) { defineProperty(FunctionPrototype, NAME, { configurable: true, get: function () { try { return regExpExec(nameRE, functionToString(this))[1]; } catch (error) { return ''; } } }); } /***/ }), /***/ "b1d2": /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__("3729"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var dateTag = '[object Date]'; /** * The base implementation of `_.isDate` without Node.js optimizations. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a date object, else `false`. */ function baseIsDate(value) { return isObjectLike(value) && baseGetTag(value) == dateTag; } module.exports = baseIsDate; /***/ }), /***/ "b1d8": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /* global HTMLImageElement */ /* global HTMLCanvasElement */ /* global SVGElement */ var _getOptionsFromElement = __webpack_require__("aab3"); var _getOptionsFromElement2 = _interopRequireDefault(_getOptionsFromElement); var _renderers = __webpack_require__("752b"); var _renderers2 = _interopRequireDefault(_renderers); var _exceptions = __webpack_require__("dca2"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } // Takes an element and returns an object with information about how // it should be rendered // This could also return an array with these objects // { // element: The element that the renderer should draw on // renderer: The name of the renderer // afterRender (optional): If something has to done after the renderer // completed, calls afterRender (function) // options (optional): Options that can be defined in the element // } function getRenderProperties(element) { // If the element is a string, query select call again if (typeof element === "string") { return querySelectedRenderProperties(element); } // If element is array. Recursivly call with every object in the array else if (Array.isArray(element)) { var returnArray = []; for (var i = 0; i < element.length; i++) { returnArray.push(getRenderProperties(element[i])); } return returnArray; } // If element, render on canvas and set the uri as src else if (typeof HTMLCanvasElement !== 'undefined' && element instanceof HTMLImageElement) { return newCanvasRenderProperties(element); } // If SVG else if (element && element.nodeName && element.nodeName.toLowerCase() === 'svg' || typeof SVGElement !== 'undefined' && element instanceof SVGElement) { return { element: element, options: (0, _getOptionsFromElement2.default)(element), renderer: _renderers2.default.SVGRenderer }; } // If canvas (in browser) else if (typeof HTMLCanvasElement !== 'undefined' && element instanceof HTMLCanvasElement) { return { element: element, options: (0, _getOptionsFromElement2.default)(element), renderer: _renderers2.default.CanvasRenderer }; } // If canvas (in node) else if (element && element.getContext) { return { element: element, renderer: _renderers2.default.CanvasRenderer }; } else if (element && (typeof element === "undefined" ? "undefined" : _typeof(element)) === 'object' && !element.nodeName) { return { element: element, renderer: _renderers2.default.ObjectRenderer }; } else { throw new _exceptions.InvalidElementException(); } } function querySelectedRenderProperties(string) { var selector = document.querySelectorAll(string); if (selector.length === 0) { return undefined; } else { var returnArray = []; for (var i = 0; i < selector.length; i++) { returnArray.push(getRenderProperties(selector[i])); } return returnArray; } } function newCanvasRenderProperties(imgElement) { var canvas = document.createElement('canvas'); return { element: canvas, options: (0, _getOptionsFromElement2.default)(imgElement), renderer: _renderers2.default.CanvasRenderer, afterRender: function afterRender() { imgElement.setAttribute("src", canvas.toDataURL()); } }; } exports.default = getRenderProperties; /***/ }), /***/ "b218": /***/ (function(module, exports) { /** Used as references for various `Number` constants. */ var MAX_SAFE_INTEGER = 9007199254740991; /** * Checks if `value` is a valid array-like length. * * **Note:** This method is loosely based on * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. * @example * * _.isLength(3); * // => true * * _.isLength(Number.MIN_VALUE); * // => false * * _.isLength(Infinity); * // => false * * _.isLength('3'); * // => false */ function isLength(value) { return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; } module.exports = isLength; /***/ }), /***/ "b42e": /***/ (function(module, exports) { var ceil = Math.ceil; var floor = Math.floor; // `Math.trunc` method // https://tc39.es/ecma262/#sec-math.trunc // eslint-disable-next-line es/no-math-trunc -- safe module.exports = Math.trunc || function trunc(x) { var n = +x; return (n > 0 ? floor : ceil)(n); }; /***/ }), /***/ "b4c0": /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__("cb5a"); /** * Gets the list cache value for `key`. * * @private * @name get * @memberOf ListCache * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function listCacheGet(key) { var data = this.__data__, index = assocIndexOf(data, key); return index < 0 ? undefined : data[index][1]; } module.exports = listCacheGet; /***/ }), /***/ "b4f8": /***/ (function(module, exports, __webpack_require__) { var $ = __webpack_require__("23e7"); var getBuiltIn = __webpack_require__("d066"); var hasOwn = __webpack_require__("1a2d"); var toString = __webpack_require__("577e"); var shared = __webpack_require__("5692"); var NATIVE_SYMBOL_REGISTRY = __webpack_require__("0b43"); var StringToSymbolRegistry = shared('string-to-symbol-registry'); var SymbolToStringRegistry = shared('symbol-to-string-registry'); // `Symbol.for` method // https://tc39.es/ecma262/#sec-symbol.for $({ target: 'Symbol', stat: true, forced: !NATIVE_SYMBOL_REGISTRY }, { 'for': function (key) { var string = toString(key); if (hasOwn(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string]; var symbol = getBuiltIn('Symbol')(string); StringToSymbolRegistry[string] = symbol; SymbolToStringRegistry[symbol] = string; return symbol; } }); /***/ }), /***/ "b50d": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); var settle = __webpack_require__("467f"); var cookies = __webpack_require__("7aac"); var buildURL = __webpack_require__("30b5"); var buildFullPath = __webpack_require__("83b9"); var parseHeaders = __webpack_require__("c345"); var isURLSameOrigin = __webpack_require__("3934"); var createError = __webpack_require__("2d83"); module.exports = function xhrAdapter(config) { return new Promise(function dispatchXhrRequest(resolve, reject) { var requestData = config.data; var requestHeaders = config.headers; if (utils.isFormData(requestData)) { delete requestHeaders['Content-Type']; // Let the browser set it } if ( (utils.isBlob(requestData) || utils.isFile(requestData)) && requestData.type ) { delete requestHeaders['Content-Type']; // Let the browser set it } var request = new XMLHttpRequest(); // HTTP basic authentication if (config.auth) { var username = config.auth.username || ''; var password = unescape(encodeURIComponent(config.auth.password)) || ''; requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password); } var fullPath = buildFullPath(config.baseURL, config.url); request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true); // Set the request timeout in MS request.timeout = config.timeout; // Listen for ready state request.onreadystatechange = function handleLoad() { if (!request || request.readyState !== 4) { return; } // The request errored out and we didn't get a response, this will be // handled by onerror instead // With one exception: request that using file: protocol, most browsers // will return status as 0 even though it's a successful request if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) { return; } // Prepare the response var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null; var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response; var response = { data: responseData, status: request.status, statusText: request.statusText, headers: responseHeaders, config: config, request: request }; settle(resolve, reject, response); // Clean up request request = null; }; // Handle browser request cancellation (as opposed to a manual cancellation) request.onabort = function handleAbort() { if (!request) { return; } reject(createError('Request aborted', config, 'ECONNABORTED', request)); // Clean up request request = null; }; // Handle low level network errors request.onerror = function handleError() { // Real errors are hidden from us by the browser // onerror should only fire if it's a network error reject(createError('Network Error', config, null, request)); // Clean up request request = null; }; // Handle timeout request.ontimeout = function handleTimeout() { var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded'; if (config.timeoutErrorMessage) { timeoutErrorMessage = config.timeoutErrorMessage; } reject(createError(timeoutErrorMessage, config, 'ECONNABORTED', request)); // Clean up request request = null; }; // Add xsrf header // This is only done if running in a standard browser environment. // Specifically not if we're in a web worker, or react-native. if (utils.isStandardBrowserEnv()) { // Add xsrf header var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ? cookies.read(config.xsrfCookieName) : undefined; if (xsrfValue) { requestHeaders[config.xsrfHeaderName] = xsrfValue; } } // Add headers to the request if ('setRequestHeader' in request) { utils.forEach(requestHeaders, function setRequestHeader(val, key) { if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') { // Remove Content-Type if data is undefined delete requestHeaders[key]; } else { // Otherwise add header to the request request.setRequestHeader(key, val); } }); } // Add withCredentials to request if needed if (!utils.isUndefined(config.withCredentials)) { request.withCredentials = !!config.withCredentials; } // Add responseType to request if needed if (config.responseType) { try { request.responseType = config.responseType; } catch (e) { // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2. // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function. if (config.responseType !== 'json') { throw e; } } } // Handle progress if needed if (typeof config.onDownloadProgress === 'function') { request.addEventListener('progress', config.onDownloadProgress); } // Not all browsers support upload events if (typeof config.onUploadProgress === 'function' && request.upload) { request.upload.addEventListener('progress', config.onUploadProgress); } if (config.cancelToken) { // Handle cancellation config.cancelToken.promise.then(function onCanceled(cancel) { if (!request) { return; } request.abort(); reject(cancel); // Clean up request request = null; }); } if (!requestData) { requestData = null; } // Send the request request.send(requestData); }); }; /***/ }), /***/ "b575": /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__("da84"); var bind = __webpack_require__("0366"); var getOwnPropertyDescriptor = __webpack_require__("06cf").f; var macrotask = __webpack_require__("2cf4").set; var Queue = __webpack_require__("01b4"); var IS_IOS = __webpack_require__("1cdc"); var IS_IOS_PEBBLE = __webpack_require__("d4c3"); var IS_WEBOS_WEBKIT = __webpack_require__("a4b4"); var IS_NODE = __webpack_require__("605d"); var MutationObserver = global.MutationObserver || global.WebKitMutationObserver; var document = global.document; var process = global.process; var Promise = global.Promise; // Node.js 11 shows ExperimentalWarning on getting `queueMicrotask` var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask'); var microtask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value; var notify, toggle, node, promise, then; // modern engines have queueMicrotask method if (!microtask) { var queue = new Queue(); var flush = function () { var parent, fn; if (IS_NODE && (parent = process.domain)) parent.exit(); while (fn = queue.get()) try { fn(); } catch (error) { if (queue.head) notify(); throw error; } if (parent) parent.enter(); }; // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339 // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898 if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver && document) { toggle = true; node = document.createTextNode(''); new MutationObserver(flush).observe(node, { characterData: true }); notify = function () { node.data = toggle = !toggle; }; // environments with maybe non-completely correct, but existent Promise } else if (!IS_IOS_PEBBLE && Promise && Promise.resolve) { // Promise.resolve without an argument throws an error in LG WebOS 2 promise = Promise.resolve(undefined); // workaround of WebKit ~ iOS Safari 10.1 bug promise.constructor = Promise; then = bind(promise.then, promise); notify = function () { then(flush); }; // Node.js without promises } else if (IS_NODE) { notify = function () { process.nextTick(flush); }; // for other environments - macrotask based on: // - setImmediate // - MessageChannel // - window.postMessage // - onreadystatechange // - setTimeout } else { // `webpack` dev server bug on IE global methods - use bind(fn, global) macrotask = bind(macrotask, global); notify = function () { macrotask(flush); }; } microtask = function (fn) { if (!queue.head) notify(); queue.add(fn); }; } module.exports = microtask; /***/ }), /***/ "b5a7": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"), root = __webpack_require__("2b3e"); /* Built-in method references that are verified to be native. */ var DataView = getNative(root, 'DataView'); module.exports = DataView; /***/ }), /***/ "b622": /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__("da84"); var shared = __webpack_require__("5692"); var hasOwn = __webpack_require__("1a2d"); var uid = __webpack_require__("90e3"); var NATIVE_SYMBOL = __webpack_require__("04f8"); var USE_SYMBOL_AS_UID = __webpack_require__("fdbf"); var Symbol = global.Symbol; var WellKnownSymbolsStore = shared('wks'); var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid; module.exports = function (name) { if (!hasOwn(WellKnownSymbolsStore, name)) { WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name) ? Symbol[name] : createWellKnownSymbol('Symbol.' + name); } return WellKnownSymbolsStore[name]; }; /***/ }), /***/ "b64b": /***/ (function(module, exports, __webpack_require__) { var $ = __webpack_require__("23e7"); var toObject = __webpack_require__("7b0b"); var nativeKeys = __webpack_require__("df75"); var fails = __webpack_require__("d039"); var FAILS_ON_PRIMITIVES = fails(function () { nativeKeys(1); }); // `Object.keys` method // https://tc39.es/ecma262/#sec-object.keys $({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, { keys: function keys(it) { return nativeKeys(toObject(it)); } }); /***/ }), /***/ "b680": /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__("23e7"); var uncurryThis = __webpack_require__("e330"); var toIntegerOrInfinity = __webpack_require__("5926"); var thisNumberValue = __webpack_require__("408a"); var $repeat = __webpack_require__("1148"); var fails = __webpack_require__("d039"); var $RangeError = RangeError; var $String = String; var floor = Math.floor; var repeat = uncurryThis($repeat); var stringSlice = uncurryThis(''.slice); var nativeToFixed = uncurryThis(1.0.toFixed); var pow = function (x, n, acc) { return n === 0 ? acc : n % 2 === 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc); }; var log = function (x) { var n = 0; var x2 = x; while (x2 >= 4096) { n += 12; x2 /= 4096; } while (x2 >= 2) { n += 1; x2 /= 2; } return n; }; var multiply = function (data, n, c) { var index = -1; var c2 = c; while (++index < 6) { c2 += n * data[index]; data[index] = c2 % 1e7; c2 = floor(c2 / 1e7); } }; var divide = function (data, n) { var index = 6; var c = 0; while (--index >= 0) { c += data[index]; data[index] = floor(c / n); c = (c % n) * 1e7; } }; var dataToString = function (data) { var index = 6; var s = ''; while (--index >= 0) { if (s !== '' || index === 0 || data[index] !== 0) { var t = $String(data[index]); s = s === '' ? t : s + repeat('0', 7 - t.length) + t; } } return s; }; var FORCED = fails(function () { return nativeToFixed(0.00008, 3) !== '0.000' || nativeToFixed(0.9, 0) !== '1' || nativeToFixed(1.255, 2) !== '1.25' || nativeToFixed(1000000000000000128.0, 0) !== '1000000000000000128'; }) || !fails(function () { // V8 ~ Android 4.3- nativeToFixed({}); }); // `Number.prototype.toFixed` method // https://tc39.es/ecma262/#sec-number.prototype.tofixed $({ target: 'Number', proto: true, forced: FORCED }, { toFixed: function toFixed(fractionDigits) { var number = thisNumberValue(this); var fractDigits = toIntegerOrInfinity(fractionDigits); var data = [0, 0, 0, 0, 0, 0]; var sign = ''; var result = '0'; var e, z, j, k; // TODO: ES2018 increased the maximum number of fraction digits to 100, need to improve the implementation if (fractDigits < 0 || fractDigits > 20) throw $RangeError('Incorrect fraction digits'); // eslint-disable-next-line no-self-compare -- NaN check if (number != number) return 'NaN'; if (number <= -1e21 || number >= 1e21) return $String(number); if (number < 0) { sign = '-'; number = -number; } if (number > 1e-21) { e = log(number * pow(2, 69, 1)) - 69; z = e < 0 ? number * pow(2, -e, 1) : number / pow(2, e, 1); z *= 0x10000000000000; e = 52 - e; if (e > 0) { multiply(data, 0, z); j = fractDigits; while (j >= 7) { multiply(data, 1e7, 0); j -= 7; } multiply(data, pow(10, j, 1), 0); j = e - 1; while (j >= 23) { divide(data, 1 << 23); j -= 23; } divide(data, 1 << j); multiply(data, 1, 1); divide(data, 2); result = dataToString(data); } else { multiply(data, 0, z); multiply(data, 1 << -e, 0); result = dataToString(data) + repeat('0', fractDigits); } } if (fractDigits > 0) { k = result.length; result = sign + (k <= fractDigits ? '0.' + repeat('0', fractDigits - k) + result : stringSlice(result, 0, k - fractDigits) + '.' + stringSlice(result, k - fractDigits)); } else { result = sign + result; } return result; } }); /***/ }), /***/ "b727": /***/ (function(module, exports, __webpack_require__) { var bind = __webpack_require__("0366"); var uncurryThis = __webpack_require__("e330"); var IndexedObject = __webpack_require__("44ad"); var toObject = __webpack_require__("7b0b"); var lengthOfArrayLike = __webpack_require__("07fa"); var arraySpeciesCreate = __webpack_require__("65f0"); var push = uncurryThis([].push); // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation var createMethod = function (TYPE) { var IS_MAP = TYPE == 1; var IS_FILTER = TYPE == 2; var IS_SOME = TYPE == 3; var IS_EVERY = TYPE == 4; var IS_FIND_INDEX = TYPE == 6; var IS_FILTER_REJECT = TYPE == 7; var NO_HOLES = TYPE == 5 || IS_FIND_INDEX; return function ($this, callbackfn, that, specificCreate) { var O = toObject($this); var self = IndexedObject(O); var boundFunction = bind(callbackfn, that); var length = lengthOfArrayLike(self); var index = 0; var create = specificCreate || arraySpeciesCreate; var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined; var value, result; for (;length > index; index++) if (NO_HOLES || index in self) { value = self[index]; result = boundFunction(value, index, O); if (TYPE) { if (IS_MAP) target[index] = result; // map else if (result) switch (TYPE) { case 3: return true; // some case 5: return value; // find case 6: return index; // findIndex case 2: push(target, value); // filter } else switch (TYPE) { case 4: return false; // every case 7: push(target, value); // filterReject } } } return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target; }; }; module.exports = { // `Array.prototype.forEach` method // https://tc39.es/ecma262/#sec-array.prototype.foreach forEach: createMethod(0), // `Array.prototype.map` method // https://tc39.es/ecma262/#sec-array.prototype.map map: createMethod(1), // `Array.prototype.filter` method // https://tc39.es/ecma262/#sec-array.prototype.filter filter: createMethod(2), // `Array.prototype.some` method // https://tc39.es/ecma262/#sec-array.prototype.some some: createMethod(3), // `Array.prototype.every` method // https://tc39.es/ecma262/#sec-array.prototype.every every: createMethod(4), // `Array.prototype.find` method // https://tc39.es/ecma262/#sec-array.prototype.find find: createMethod(5), // `Array.prototype.findIndex` method // https://tc39.es/ecma262/#sec-array.prototype.findIndex findIndex: createMethod(6), // `Array.prototype.filterReject` method // https://github.com/tc39/proposal-array-filtering filterReject: createMethod(7) }; /***/ }), /***/ "b760": /***/ (function(module, exports, __webpack_require__) { var baseAssignValue = __webpack_require__("872a"), eq = __webpack_require__("9638"); /** * This function is like `assignValue` except that it doesn't assign * `undefined` values. * * @private * @param {Object} object The object to modify. * @param {string} key The key of the property to assign. * @param {*} value The value to assign. */ function assignMergeValue(object, key, value) { if ((value !== undefined && !eq(object[key], value)) || (value === undefined && !(key in object))) { baseAssignValue(object, key, value); } } module.exports = assignMergeValue; /***/ }), /***/ "b980": /***/ (function(module, exports, __webpack_require__) { var fails = __webpack_require__("d039"); var createPropertyDescriptor = __webpack_require__("5c6c"); module.exports = !fails(function () { var error = Error('a'); if (!('stack' in error)) return true; // eslint-disable-next-line es/no-object-defineproperty -- safe Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7)); return error.stack !== 7; }); /***/ }), /***/ "bb5d": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _constants = __webpack_require__("f08e"); // Match Set functions var matchSetALength = function matchSetALength(string) { return string.match(new RegExp('^' + _constants.A_CHARS + '*'))[0].length; }; var matchSetBLength = function matchSetBLength(string) { return string.match(new RegExp('^' + _constants.B_CHARS + '*'))[0].length; }; var matchSetC = function matchSetC(string) { return string.match(new RegExp('^' + _constants.C_CHARS + '*'))[0]; }; // CODE128A or CODE128B function autoSelectFromAB(string, isA) { var ranges = isA ? _constants.A_CHARS : _constants.B_CHARS; var untilC = string.match(new RegExp('^(' + ranges + '+?)(([0-9]{2}){2,})([^0-9]|$)')); if (untilC) { return untilC[1] + String.fromCharCode(204) + autoSelectFromC(string.substring(untilC[1].length)); } var chars = string.match(new RegExp('^' + ranges + '+'))[0]; if (chars.length === string.length) { return string; } return chars + String.fromCharCode(isA ? 205 : 206) + autoSelectFromAB(string.substring(chars.length), !isA); } // CODE128C function autoSelectFromC(string) { var cMatch = matchSetC(string); var length = cMatch.length; if (length === string.length) { return string; } string = string.substring(length); // Select A/B depending on the longest match var isA = matchSetALength(string) >= matchSetBLength(string); return cMatch + String.fromCharCode(isA ? 206 : 205) + autoSelectFromAB(string, isA); } // Detect Code Set (A, B or C) and format the string exports.default = function (string) { var newString = void 0; var cLength = matchSetC(string).length; // Select 128C if the string start with enough digits if (cLength >= 2) { newString = _constants.C_START_CHAR + autoSelectFromC(string); } else { // Select A/B depending on the longest match var isA = matchSetALength(string) > matchSetBLength(string); newString = (isA ? _constants.A_START_CHAR : _constants.B_START_CHAR) + autoSelectFromAB(string, isA); } return newString.replace(/[\xCD\xCE]([^])[\xCD\xCE]/, // Any sequence between 205 and 206 characters function (match, char) { return String.fromCharCode(203) + char; }); }; /***/ }), /***/ "bbc0": /***/ (function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__("6044"); /** Used to stand-in for `undefined` hash values. */ var HASH_UNDEFINED = '__lodash_hash_undefined__'; /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Gets the hash value for `key`. * * @private * @name get * @memberOf Hash * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function hashGet(key) { var data = this.__data__; if (nativeCreate) { var result = data[key]; return result === HASH_UNDEFINED ? undefined : result; } return hasOwnProperty.call(data, key) ? data[key] : undefined; } module.exports = hashGet; /***/ }), /***/ "bc3a": /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__("cee4"); /***/ }), /***/ "bd8a": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } /*eslint no-console: 0 */ var ErrorHandler = function () { function ErrorHandler(api) { _classCallCheck(this, ErrorHandler); this.api = api; } _createClass(ErrorHandler, [{ key: "handleCatch", value: function handleCatch(e) { // If babel supported extending of Error in a correct way instanceof would be used here if (e.name === "InvalidInputException") { if (this.api._options.valid !== this.api._defaults.valid) { this.api._options.valid(false); } else { throw e.message; } } else { throw e; } this.api.render = function () {}; } }, { key: "wrapBarcodeCall", value: function wrapBarcodeCall(func) { try { var result = func.apply(undefined, arguments); this.api._options.valid(true); return result; } catch (e) { this.handleCatch(e); return this.api; } } }]); return ErrorHandler; }(); exports.default = ErrorHandler; /***/ }), /***/ "bdfe": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _constants = __webpack_require__("c243"); var _encoder = __webpack_require__("5726"); var _encoder2 = _interopRequireDefault(_encoder); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Base class for EAN8 & EAN13 var EAN = function (_Barcode) { _inherits(EAN, _Barcode); function EAN(data, options) { _classCallCheck(this, EAN); // Make sure the font is not bigger than the space between the guard bars var _this = _possibleConstructorReturn(this, (EAN.__proto__ || Object.getPrototypeOf(EAN)).call(this, data, options)); _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 _this.guardHeight = options.height + _this.fontSize / 2 + options.textMargin; return _this; } _createClass(EAN, [{ key: 'encode', value: function encode() { return this.options.flat ? this.encodeFlat() : this.encodeGuarded(); } }, { key: 'leftText', value: function leftText(from, to) { return this.text.substr(from, to); } }, { key: 'leftEncode', value: function leftEncode(data, structure) { return (0, _encoder2.default)(data, structure); } }, { key: 'rightText', value: function rightText(from, to) { return this.text.substr(from, to); } }, { key: 'rightEncode', value: function rightEncode(data, structure) { return (0, _encoder2.default)(data, structure); } }, { key: 'encodeGuarded', value: function encodeGuarded() { var textOptions = { fontSize: this.fontSize }; var guardOptions = { height: this.guardHeight }; return [{ data: _constants.SIDE_BIN, options: guardOptions }, { data: this.leftEncode(), text: this.leftText(), options: textOptions }, { data: _constants.MIDDLE_BIN, options: guardOptions }, { data: this.rightEncode(), text: this.rightText(), options: textOptions }, { data: _constants.SIDE_BIN, options: guardOptions }]; } }, { key: 'encodeFlat', value: function encodeFlat() { var data = [_constants.SIDE_BIN, this.leftEncode(), _constants.MIDDLE_BIN, this.rightEncode(), _constants.SIDE_BIN]; return { data: data.join(''), text: this.text }; } }]); return EAN; }(_Barcode3.default); exports.default = EAN; /***/ }), /***/ "be5e": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _merge = __webpack_require__("fd7c"); var _merge2 = _interopRequireDefault(_merge); var _shared = __webpack_require__("ab5b"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var svgns = "http://www.w3.org/2000/svg"; var SVGRenderer = function () { function SVGRenderer(svg, encodings, options) { _classCallCheck(this, SVGRenderer); this.svg = svg; this.encodings = encodings; this.options = options; this.document = options.xmlDocument || document; } _createClass(SVGRenderer, [{ key: "render", value: function render() { var currentX = this.options.marginLeft; this.prepareSVG(); for (var i = 0; i < this.encodings.length; i++) { var encoding = this.encodings[i]; var encodingOptions = (0, _merge2.default)(this.options, encoding.options); var group = this.createGroup(currentX, encodingOptions.marginTop, this.svg); this.setGroupOptions(group, encodingOptions); this.drawSvgBarcode(group, encodingOptions, encoding); this.drawSVGText(group, encodingOptions, encoding); currentX += encoding.width; } } }, { key: "prepareSVG", value: function prepareSVG() { // Clear the SVG while (this.svg.firstChild) { this.svg.removeChild(this.svg.firstChild); } (0, _shared.calculateEncodingAttributes)(this.encodings, this.options); var totalWidth = (0, _shared.getTotalWidthOfEncodings)(this.encodings); var maxHeight = (0, _shared.getMaximumHeightOfEncodings)(this.encodings); var width = totalWidth + this.options.marginLeft + this.options.marginRight; this.setSvgAttributes(width, maxHeight); if (this.options.background) { this.drawRect(0, 0, width, maxHeight, this.svg).setAttribute("style", "fill:" + this.options.background + ";"); } } }, { key: "drawSvgBarcode", value: function drawSvgBarcode(parent, options, encoding) { var binary = encoding.data; // Creates the barcode out of the encoded binary var yFrom; if (options.textPosition == "top") { yFrom = options.fontSize + options.textMargin; } else { yFrom = 0; } var barWidth = 0; var x = 0; for (var b = 0; b < binary.length; b++) { x = b * options.width + encoding.barcodePadding; if (binary[b] === "1") { barWidth++; } else if (barWidth > 0) { this.drawRect(x - options.width * barWidth, yFrom, options.width * barWidth, options.height, parent); barWidth = 0; } } // Last draw is needed since the barcode ends with 1 if (barWidth > 0) { this.drawRect(x - options.width * (barWidth - 1), yFrom, options.width * barWidth, options.height, parent); } } }, { key: "drawSVGText", value: function drawSVGText(parent, options, encoding) { var textElem = this.document.createElementNS(svgns, 'text'); // Draw the text if displayValue is set if (options.displayValue) { var x, y; textElem.setAttribute("style", "font:" + options.fontOptions + " " + options.fontSize + "px " + options.font); if (options.textPosition == "top") { y = options.fontSize - options.textMargin; } else { y = options.height + options.textMargin + options.fontSize; } // Draw the text in the correct X depending on the textAlign option if (options.textAlign == "left" || encoding.barcodePadding > 0) { x = 0; textElem.setAttribute("text-anchor", "start"); } else if (options.textAlign == "right") { x = encoding.width - 1; textElem.setAttribute("text-anchor", "end"); } // In all other cases, center the text else { x = encoding.width / 2; textElem.setAttribute("text-anchor", "middle"); } textElem.setAttribute("x", x); textElem.setAttribute("y", y); textElem.appendChild(this.document.createTextNode(encoding.text)); parent.appendChild(textElem); } } }, { key: "setSvgAttributes", value: function setSvgAttributes(width, height) { var svg = this.svg; svg.setAttribute("width", width + "px"); svg.setAttribute("height", height + "px"); svg.setAttribute("x", "0px"); svg.setAttribute("y", "0px"); svg.setAttribute("viewBox", "0 0 " + width + " " + height); svg.setAttribute("xmlns", svgns); svg.setAttribute("version", "1.1"); svg.setAttribute("style", "transform: translate(0,0)"); } }, { key: "createGroup", value: function createGroup(x, y, parent) { var group = this.document.createElementNS(svgns, 'g'); group.setAttribute("transform", "translate(" + x + ", " + y + ")"); parent.appendChild(group); return group; } }, { key: "setGroupOptions", value: function setGroupOptions(group, options) { group.setAttribute("style", "fill:" + options.lineColor + ";"); } }, { key: "drawRect", value: function drawRect(x, y, width, height, parent) { var rect = this.document.createElementNS(svgns, 'rect'); rect.setAttribute("x", x); rect.setAttribute("y", y); rect.setAttribute("width", width); rect.setAttribute("height", height); parent.appendChild(rect); return rect; } }]); return SVGRenderer; }(); exports.default = SVGRenderer; /***/ }), /***/ "be98": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _encoder = __webpack_require__("5726"); var _encoder2 = _interopRequireDefault(_encoder); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); var _UPC = __webpack_require__("e8b2"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // https://en.wikipedia.org/wiki/Universal_Product_Code#Encoding // // UPC-E documentation: // https://en.wikipedia.org/wiki/Universal_Product_Code#UPC-E var EXPANSIONS = ["XX00000XXX", "XX10000XXX", "XX20000XXX", "XXX00000XX", "XXXX00000X", "XXXXX00005", "XXXXX00006", "XXXXX00007", "XXXXX00008", "XXXXX00009"]; var PARITIES = [["EEEOOO", "OOOEEE"], ["EEOEOO", "OOEOEE"], ["EEOOEO", "OOEEOE"], ["EEOOOE", "OOEEEO"], ["EOEEOO", "OEOOEE"], ["EOOEEO", "OEEOOE"], ["EOOOEE", "OEEEOO"], ["EOEOEO", "OEOEOE"], ["EOEOOE", "OEOEEO"], ["EOOEOE", "OEEOEO"]]; var UPCE = function (_Barcode) { _inherits(UPCE, _Barcode); function UPCE(data, options) { _classCallCheck(this, UPCE); var _this = _possibleConstructorReturn(this, (UPCE.__proto__ || Object.getPrototypeOf(UPCE)).call(this, data, options)); // Code may be 6 or 8 digits; // A 7 digit code is ambiguous as to whether the extra digit // is a UPC-A check or number system digit. _this.isValid = false; if (data.search(/^[0-9]{6}$/) !== -1) { _this.middleDigits = data; _this.upcA = expandToUPCA(data, "0"); _this.text = options.text || '' + _this.upcA[0] + data + _this.upcA[_this.upcA.length - 1]; _this.isValid = true; } else if (data.search(/^[01][0-9]{7}$/) !== -1) { _this.middleDigits = data.substring(1, data.length - 1); _this.upcA = expandToUPCA(_this.middleDigits, data[0]); if (_this.upcA[_this.upcA.length - 1] === data[data.length - 1]) { _this.isValid = true; } else { // checksum mismatch return _possibleConstructorReturn(_this); } } else { return _possibleConstructorReturn(_this); } _this.displayValue = options.displayValue; // Make sure the font is not bigger than the space between the guard bars if (options.fontSize > options.width * 10) { _this.fontSize = options.width * 10; } else { _this.fontSize = options.fontSize; } // Make the guard bars go down half the way of the text _this.guardHeight = options.height + _this.fontSize / 2 + options.textMargin; return _this; } _createClass(UPCE, [{ key: 'valid', value: function valid() { return this.isValid; } }, { key: 'encode', value: function encode() { if (this.options.flat) { return this.flatEncoding(); } else { return this.guardedEncoding(); } } }, { key: 'flatEncoding', value: function flatEncoding() { var result = ""; result += "101"; result += this.encodeMiddleDigits(); result += "010101"; return { data: result, text: this.text }; } }, { key: 'guardedEncoding', value: function guardedEncoding() { var result = []; // Add the UPC-A number system digit beneath the quiet zone if (this.displayValue) { result.push({ data: "00000000", text: this.text[0], options: { textAlign: "left", fontSize: this.fontSize } }); } // Add the guard bars result.push({ data: "101", options: { height: this.guardHeight } }); // Add the 6 UPC-E digits result.push({ data: this.encodeMiddleDigits(), text: this.text.substring(1, 7), options: { fontSize: this.fontSize } }); // Add the end bits result.push({ data: "010101", options: { height: this.guardHeight } }); // Add the UPC-A check digit beneath the quiet zone if (this.displayValue) { result.push({ data: "00000000", text: this.text[7], options: { textAlign: "right", fontSize: this.fontSize } }); } return result; } }, { key: 'encodeMiddleDigits', value: function encodeMiddleDigits() { var numberSystem = this.upcA[0]; var checkDigit = this.upcA[this.upcA.length - 1]; var parity = PARITIES[parseInt(checkDigit)][parseInt(numberSystem)]; return (0, _encoder2.default)(this.middleDigits, parity); } }]); return UPCE; }(_Barcode3.default); function expandToUPCA(middleDigits, numberSystem) { var lastUpcE = parseInt(middleDigits[middleDigits.length - 1]); var expansion = EXPANSIONS[lastUpcE]; var result = ""; var digitIndex = 0; for (var i = 0; i < expansion.length; i++) { var c = expansion[i]; if (c === 'X') { result += middleDigits[digitIndex++]; } else { result += c; } } result = '' + numberSystem + result; return '' + result + (0, _UPC.checksum)(result); } exports.default = UPCE; /***/ }), /***/ "bf19": /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__("23e7"); var call = __webpack_require__("c65b"); // `URL.prototype.toJSON` method // https://url.spec.whatwg.org/#dom-url-tojson $({ target: 'URL', proto: true, enumerable: true }, { toJSON: function toJSON() { return call(URL.prototype.toString, this); } }); /***/ }), /***/ "c04e": /***/ (function(module, exports, __webpack_require__) { var call = __webpack_require__("c65b"); var isObject = __webpack_require__("861d"); var isSymbol = __webpack_require__("d9b5"); var getMethod = __webpack_require__("dc4a"); var ordinaryToPrimitive = __webpack_require__("485a"); var wellKnownSymbol = __webpack_require__("b622"); var $TypeError = TypeError; var TO_PRIMITIVE = wellKnownSymbol('toPrimitive'); // `ToPrimitive` abstract operation // https://tc39.es/ecma262/#sec-toprimitive module.exports = function (input, pref) { if (!isObject(input) || isSymbol(input)) return input; var exoticToPrim = getMethod(input, TO_PRIMITIVE); var result; if (exoticToPrim) { if (pref === undefined) pref = 'default'; result = call(exoticToPrim, input, pref); if (!isObject(result) || isSymbol(result)) return result; throw $TypeError("Can't convert object to primitive value"); } if (pref === undefined) pref = 'number'; return ordinaryToPrimitive(input, pref); }; /***/ }), /***/ "c098": /***/ (function(module, exports) { /** Used as references for various `Number` constants. */ var MAX_SAFE_INTEGER = 9007199254740991; /** Used to detect unsigned integer values. */ var reIsUint = /^(?:0|[1-9]\d*)$/; /** * Checks if `value` is a valid array-like index. * * @private * @param {*} value The value to check. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. */ function isIndex(value, length) { var type = typeof value; length = length == null ? MAX_SAFE_INTEGER : length; return !!length && (type == 'number' || (type != 'symbol' && reIsUint.test(value))) && (value > -1 && value % 1 == 0 && value < length); } module.exports = isIndex; /***/ }), /***/ "c17b": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.codabar = undefined; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding specification: // http://www.barcodeisland.com/codabar.phtml var codabar = function (_Barcode) { _inherits(codabar, _Barcode); function codabar(data, options) { _classCallCheck(this, codabar); if (data.search(/^[0-9\-\$\:\.\+\/]+$/) === 0) { data = "A" + data + "A"; } var _this = _possibleConstructorReturn(this, (codabar.__proto__ || Object.getPrototypeOf(codabar)).call(this, data.toUpperCase(), options)); _this.text = _this.options.text || _this.text.replace(/[A-D]/g, ''); return _this; } _createClass(codabar, [{ key: "valid", value: function valid() { return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/) !== -1; } }, { key: "encode", value: function encode() { var result = []; var encodings = this.getEncodings(); for (var i = 0; i < this.data.length; i++) { result.push(encodings[this.data.charAt(i)]); // for all characters except the last, append a narrow-space ("0") if (i !== this.data.length - 1) { result.push("0"); } } return { text: this.text, data: result.join('') }; } }, { key: "getEncodings", value: function getEncodings() { return { "0": "101010011", "1": "101011001", "2": "101001011", "3": "110010101", "4": "101101001", "5": "110101001", "6": "100101011", "7": "100101101", "8": "100110101", "9": "110100101", "-": "101001101", "$": "101100101", ":": "1101011011", "/": "1101101011", ".": "1101101101", "+": "1011011011", "A": "1011001001", "B": "1001001011", "C": "1010010011", "D": "1010011001" }; } }]); return codabar; }(_Barcode3.default); exports.codabar = codabar; /***/ }), /***/ "c1c9": /***/ (function(module, exports, __webpack_require__) { var baseSetToString = __webpack_require__("a454"), shortOut = __webpack_require__("f3c1"); /** * Sets the `toString` method of `func` to return `string`. * * @private * @param {Function} func The function to modify. * @param {Function} string The `toString` result. * @returns {Function} Returns `func`. */ var setToString = shortOut(baseSetToString); module.exports = setToString; /***/ }), /***/ "c243": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); // Standard start end and middle bits var SIDE_BIN = exports.SIDE_BIN = '101'; var MIDDLE_BIN = exports.MIDDLE_BIN = '01010'; var BINARIES = exports.BINARIES = { 'L': [// The L (left) type of encoding '0001101', '0011001', '0010011', '0111101', '0100011', '0110001', '0101111', '0111011', '0110111', '0001011'], 'G': [// The G type of encoding '0100111', '0110011', '0011011', '0100001', '0011101', '0111001', '0000101', '0010001', '0001001', '0010111'], 'R': [// The R (right) type of encoding '1110010', '1100110', '1101100', '1000010', '1011100', '1001110', '1010000', '1000100', '1001000', '1110100'], 'O': [// The O (odd) encoding for UPC-E '0001101', '0011001', '0010011', '0111101', '0100011', '0110001', '0101111', '0111011', '0110111', '0001011'], 'E': [// The E (even) encoding for UPC-E '0100111', '0110011', '0011011', '0100001', '0011101', '0111001', '0000101', '0010001', '0001001', '0010111'] }; // Define the EAN-2 structure var EAN2_STRUCTURE = exports.EAN2_STRUCTURE = ['LL', 'LG', 'GL', 'GG']; // Define the EAN-5 structure var EAN5_STRUCTURE = exports.EAN5_STRUCTURE = ['GGLLL', 'GLGLL', 'GLLGL', 'GLLLG', 'LGGLL', 'LLGGL', 'LLLGG', 'LGLGL', 'LGLLG', 'LLGLG']; // Define the EAN-13 structure var EAN13_STRUCTURE = exports.EAN13_STRUCTURE = ['LLLLLL', 'LLGLGG', 'LLGGLG', 'LLGGGL', 'LGLLGG', 'LGGLLG', 'LGGGLL', 'LGLGLG', 'LGLGGL', 'LGGLGL']; /***/ }), /***/ "c2b6": /***/ (function(module, exports, __webpack_require__) { var cloneArrayBuffer = __webpack_require__("f8af"), cloneDataView = __webpack_require__("5d89"), cloneRegExp = __webpack_require__("6f6c"), cloneSymbol = __webpack_require__("a2db"), cloneTypedArray = __webpack_require__("c8fe"); /** `Object#toString` result references. */ var boolTag = '[object Boolean]', dateTag = '[object Date]', mapTag = '[object Map]', numberTag = '[object Number]', regexpTag = '[object RegExp]', setTag = '[object Set]', stringTag = '[object String]', symbolTag = '[object Symbol]'; var arrayBufferTag = '[object ArrayBuffer]', dataViewTag = '[object DataView]', float32Tag = '[object Float32Array]', float64Tag = '[object Float64Array]', int8Tag = '[object Int8Array]', int16Tag = '[object Int16Array]', int32Tag = '[object Int32Array]', uint8Tag = '[object Uint8Array]', uint8ClampedTag = '[object Uint8ClampedArray]', uint16Tag = '[object Uint16Array]', uint32Tag = '[object Uint32Array]'; /** * Initializes an object clone based on its `toStringTag`. * * **Note:** This function only supports cloning values with tags of * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`. * * @private * @param {Object} object The object to clone. * @param {string} tag The `toStringTag` of the object to clone. * @param {boolean} [isDeep] Specify a deep clone. * @returns {Object} Returns the initialized clone. */ function initCloneByTag(object, tag, isDeep) { var Ctor = object.constructor; switch (tag) { case arrayBufferTag: return cloneArrayBuffer(object); case boolTag: case dateTag: return new Ctor(+object); case dataViewTag: return cloneDataView(object, isDeep); case float32Tag: case float64Tag: case int8Tag: case int16Tag: case int32Tag: case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag: return cloneTypedArray(object, isDeep); case mapTag: return new Ctor; case numberTag: case stringTag: return new Ctor(object); case regexpTag: return cloneRegExp(object); case setTag: return new Ctor; case symbolTag: return cloneSymbol(object); } } module.exports = initCloneByTag; /***/ }), /***/ "c345": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); // Headers whose duplicates are ignored by node // c.f. https://nodejs.org/api/http.html#http_message_headers var ignoreDuplicateOf = [ 'age', 'authorization', 'content-length', 'content-type', 'etag', 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', 'last-modified', 'location', 'max-forwards', 'proxy-authorization', 'referer', 'retry-after', 'user-agent' ]; /** * Parse headers into an object * * ``` * Date: Wed, 27 Aug 2014 08:58:49 GMT * Content-Type: application/json * Connection: keep-alive * Transfer-Encoding: chunked * ``` * * @param {String} headers Headers needing to be parsed * @returns {Object} Headers parsed into an object */ module.exports = function parseHeaders(headers) { var parsed = {}; var key; var val; var i; if (!headers) { return parsed; } utils.forEach(headers.split('\n'), function parser(line) { i = line.indexOf(':'); key = utils.trim(line.substr(0, i)).toLowerCase(); val = utils.trim(line.substr(i + 1)); if (key) { if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) { return; } if (key === 'set-cookie') { parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]); } else { parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; } } }); return parsed; }; /***/ }), /***/ "c3fc": /***/ (function(module, exports, __webpack_require__) { var getTag = __webpack_require__("42a2"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var setTag = '[object Set]'; /** * The base implementation of `_.isSet` without Node.js optimizations. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a set, else `false`. */ function baseIsSet(value) { return isObjectLike(value) && getTag(value) == setTag; } module.exports = baseIsSet; /***/ }), /***/ "c401": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); /** * Transform the data for a request or a response * * @param {Object|String} data The data to be transformed * @param {Array} headers The headers for the request or response * @param {Array|Function} fns A single function or Array of functions * @returns {*} The resulting transformed data */ module.exports = function transformData(data, headers, fns) { /*eslint no-param-reassign:0*/ utils.forEach(fns, function transform(fn) { data = fn(data, headers); }); return data; }; /***/ }), /***/ "c430": /***/ (function(module, exports) { module.exports = false; /***/ }), /***/ "c513": /***/ (function(module, exports, __webpack_require__) { var $ = __webpack_require__("23e7"); var hasOwn = __webpack_require__("1a2d"); var isSymbol = __webpack_require__("d9b5"); var tryToString = __webpack_require__("0d51"); var shared = __webpack_require__("5692"); var NATIVE_SYMBOL_REGISTRY = __webpack_require__("0b43"); var SymbolToStringRegistry = shared('symbol-to-string-registry'); // `Symbol.keyFor` method // https://tc39.es/ecma262/#sec-symbol.keyfor $({ target: 'Symbol', stat: true, forced: !NATIVE_SYMBOL_REGISTRY }, { keyFor: function keyFor(sym) { if (!isSymbol(sym)) throw TypeError(tryToString(sym) + ' is not a symbol'); if (hasOwn(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym]; } }); /***/ }), /***/ "c532": /***/ (function(module, exports, __webpack_require__) { "use strict"; var bind = __webpack_require__("1d2b"); /*global toString:true*/ // utils is a library of generic helper functions non-specific to axios var toString = Object.prototype.toString; /** * Determine if a value is an Array * * @param {Object} val The value to test * @returns {boolean} True if value is an Array, otherwise false */ function isArray(val) { return toString.call(val) === '[object Array]'; } /** * Determine if a value is undefined * * @param {Object} val The value to test * @returns {boolean} True if the value is undefined, otherwise false */ function isUndefined(val) { return typeof val === 'undefined'; } /** * Determine if a value is a Buffer * * @param {Object} val The value to test * @returns {boolean} True if value is a Buffer, otherwise false */ function isBuffer(val) { return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val); } /** * Determine if a value is an ArrayBuffer * * @param {Object} val The value to test * @returns {boolean} True if value is an ArrayBuffer, otherwise false */ function isArrayBuffer(val) { return toString.call(val) === '[object ArrayBuffer]'; } /** * Determine if a value is a FormData * * @param {Object} val The value to test * @returns {boolean} True if value is an FormData, otherwise false */ function isFormData(val) { return (typeof FormData !== 'undefined') && (val instanceof FormData); } /** * Determine if a value is a view on an ArrayBuffer * * @param {Object} val The value to test * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false */ function isArrayBufferView(val) { var result; if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) { result = ArrayBuffer.isView(val); } else { result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer); } return result; } /** * Determine if a value is a String * * @param {Object} val The value to test * @returns {boolean} True if value is a String, otherwise false */ function isString(val) { return typeof val === 'string'; } /** * Determine if a value is a Number * * @param {Object} val The value to test * @returns {boolean} True if value is a Number, otherwise false */ function isNumber(val) { return typeof val === 'number'; } /** * Determine if a value is an Object * * @param {Object} val The value to test * @returns {boolean} True if value is an Object, otherwise false */ function isObject(val) { return val !== null && typeof val === 'object'; } /** * Determine if a value is a plain Object * * @param {Object} val The value to test * @return {boolean} True if value is a plain Object, otherwise false */ function isPlainObject(val) { if (toString.call(val) !== '[object Object]') { return false; } var prototype = Object.getPrototypeOf(val); return prototype === null || prototype === Object.prototype; } /** * Determine if a value is a Date * * @param {Object} val The value to test * @returns {boolean} True if value is a Date, otherwise false */ function isDate(val) { return toString.call(val) === '[object Date]'; } /** * Determine if a value is a File * * @param {Object} val The value to test * @returns {boolean} True if value is a File, otherwise false */ function isFile(val) { return toString.call(val) === '[object File]'; } /** * Determine if a value is a Blob * * @param {Object} val The value to test * @returns {boolean} True if value is a Blob, otherwise false */ function isBlob(val) { return toString.call(val) === '[object Blob]'; } /** * Determine if a value is a Function * * @param {Object} val The value to test * @returns {boolean} True if value is a Function, otherwise false */ function isFunction(val) { return toString.call(val) === '[object Function]'; } /** * Determine if a value is a Stream * * @param {Object} val The value to test * @returns {boolean} True if value is a Stream, otherwise false */ function isStream(val) { return isObject(val) && isFunction(val.pipe); } /** * Determine if a value is a URLSearchParams object * * @param {Object} val The value to test * @returns {boolean} True if value is a URLSearchParams object, otherwise false */ function isURLSearchParams(val) { return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams; } /** * Trim excess whitespace off the beginning and end of a string * * @param {String} str The String to trim * @returns {String} The String freed of excess whitespace */ function trim(str) { return str.replace(/^\s*/, '').replace(/\s*$/, ''); } /** * Determine if we're running in a standard browser environment * * This allows axios to run in a web worker, and react-native. * Both environments support XMLHttpRequest, but not fully standard globals. * * web workers: * typeof window -> undefined * typeof document -> undefined * * react-native: * navigator.product -> 'ReactNative' * nativescript * navigator.product -> 'NativeScript' or 'NS' */ function isStandardBrowserEnv() { if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' || navigator.product === 'NativeScript' || navigator.product === 'NS')) { return false; } return ( typeof window !== 'undefined' && typeof document !== 'undefined' ); } /** * Iterate over an Array or an Object invoking a function for each item. * * If `obj` is an Array callback will be called passing * the value, index, and complete array for each item. * * If 'obj' is an Object callback will be called passing * the value, key, and complete object for each property. * * @param {Object|Array} obj The object to iterate * @param {Function} fn The callback to invoke for each item */ function forEach(obj, fn) { // Don't bother if no value provided if (obj === null || typeof obj === 'undefined') { return; } // Force an array if not already something iterable if (typeof obj !== 'object') { /*eslint no-param-reassign:0*/ obj = [obj]; } if (isArray(obj)) { // Iterate over array values for (var i = 0, l = obj.length; i < l; i++) { fn.call(null, obj[i], i, obj); } } else { // Iterate over object keys for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { fn.call(null, obj[key], key, obj); } } } } /** * Accepts varargs expecting each argument to be an object, then * immutably merges the properties of each object and returns result. * * When multiple objects contain the same key the later object in * the arguments list will take precedence. * * Example: * * ```js * var result = merge({foo: 123}, {foo: 456}); * console.log(result.foo); // outputs 456 * ``` * * @param {Object} obj1 Object to merge * @returns {Object} Result of all merge properties */ function merge(/* obj1, obj2, obj3, ... */) { var result = {}; function assignValue(val, key) { if (isPlainObject(result[key]) && isPlainObject(val)) { result[key] = merge(result[key], val); } else if (isPlainObject(val)) { result[key] = merge({}, val); } else if (isArray(val)) { result[key] = val.slice(); } else { result[key] = val; } } for (var i = 0, l = arguments.length; i < l; i++) { forEach(arguments[i], assignValue); } return result; } /** * Extends object a by mutably adding to it the properties of object b. * * @param {Object} a The object to be extended * @param {Object} b The object to copy properties from * @param {Object} thisArg The object to bind function to * @return {Object} The resulting value of object a */ function extend(a, b, thisArg) { forEach(b, function assignValue(val, key) { if (thisArg && typeof val === 'function') { a[key] = bind(val, thisArg); } else { a[key] = val; } }); return a; } /** * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM) * * @param {string} content with BOM * @return {string} content value without BOM */ function stripBOM(content) { if (content.charCodeAt(0) === 0xFEFF) { content = content.slice(1); } return content; } module.exports = { isArray: isArray, isArrayBuffer: isArrayBuffer, isBuffer: isBuffer, isFormData: isFormData, isArrayBufferView: isArrayBufferView, isString: isString, isNumber: isNumber, isObject: isObject, isPlainObject: isPlainObject, isUndefined: isUndefined, isDate: isDate, isFile: isFile, isBlob: isBlob, isFunction: isFunction, isStream: isStream, isURLSearchParams: isURLSearchParams, isStandardBrowserEnv: isStandardBrowserEnv, forEach: forEach, merge: merge, extend: extend, trim: trim, stripBOM: stripBOM }; /***/ }), /***/ "c607": /***/ (function(module, exports, __webpack_require__) { var DESCRIPTORS = __webpack_require__("83ab"); var UNSUPPORTED_DOT_ALL = __webpack_require__("fce3"); var classof = __webpack_require__("c6b6"); var defineBuiltInAccessor = __webpack_require__("edd0"); var getInternalState = __webpack_require__("69f3").get; var RegExpPrototype = RegExp.prototype; var $TypeError = TypeError; // `RegExp.prototype.dotAll` getter // https://tc39.es/ecma262/#sec-get-regexp.prototype.dotall if (DESCRIPTORS && UNSUPPORTED_DOT_ALL) { defineBuiltInAccessor(RegExpPrototype, 'dotAll', { configurable: true, get: function dotAll() { if (this === RegExpPrototype) return undefined; // We can't use InternalStateModule.getterFor because // we don't add metadata for regexps created by a literal. if (classof(this) === 'RegExp') { return !!getInternalState(this).dotAll; } throw $TypeError('Incompatible receiver, RegExp required'); } }); } /***/ }), /***/ "c65b": /***/ (function(module, exports, __webpack_require__) { var NATIVE_BIND = __webpack_require__("40d5"); var call = Function.prototype.call; module.exports = NATIVE_BIND ? call.bind(call) : function () { return call.apply(call, arguments); }; /***/ }), /***/ "c6b6": /***/ (function(module, exports, __webpack_require__) { var uncurryThis = __webpack_require__("e330"); var toString = uncurryThis({}.toString); var stringSlice = uncurryThis(''.slice); module.exports = function (it) { return stringSlice(toString(it), 8, -1); }; /***/ }), /***/ "c6cd": /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__("da84"); var defineGlobalProperty = __webpack_require__("6374"); var SHARED = '__core-js_shared__'; var store = global[SHARED] || defineGlobalProperty(SHARED, {}); module.exports = store; /***/ }), /***/ "c6d2": /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__("23e7"); var call = __webpack_require__("c65b"); var IS_PURE = __webpack_require__("c430"); var FunctionName = __webpack_require__("5e77"); var isCallable = __webpack_require__("1626"); var createIteratorConstructor = __webpack_require__("dcc3"); var getPrototypeOf = __webpack_require__("e163"); var setPrototypeOf = __webpack_require__("d2bb"); var setToStringTag = __webpack_require__("d44e"); var createNonEnumerableProperty = __webpack_require__("9112"); var defineBuiltIn = __webpack_require__("cb2d"); var wellKnownSymbol = __webpack_require__("b622"); var Iterators = __webpack_require__("3f8c"); var IteratorsCore = __webpack_require__("ae93"); var PROPER_FUNCTION_NAME = FunctionName.PROPER; var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE; var IteratorPrototype = IteratorsCore.IteratorPrototype; var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS; var ITERATOR = wellKnownSymbol('iterator'); var KEYS = 'keys'; var VALUES = 'values'; var ENTRIES = 'entries'; var returnThis = function () { return this; }; module.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) { createIteratorConstructor(IteratorConstructor, NAME, next); var getIterationMethod = function (KIND) { if (KIND === DEFAULT && defaultIterator) return defaultIterator; if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND]; switch (KIND) { case KEYS: return function keys() { return new IteratorConstructor(this, KIND); }; case VALUES: return function values() { return new IteratorConstructor(this, KIND); }; case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); }; } return function () { return new IteratorConstructor(this); }; }; var TO_STRING_TAG = NAME + ' Iterator'; var INCORRECT_VALUES_NAME = false; var IterablePrototype = Iterable.prototype; var nativeIterator = IterablePrototype[ITERATOR] || IterablePrototype['@@iterator'] || DEFAULT && IterablePrototype[DEFAULT]; var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT); var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator; var CurrentIteratorPrototype, methods, KEY; // fix native if (anyNativeIterator) { CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable())); if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) { if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) { if (setPrototypeOf) { setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype); } else if (!isCallable(CurrentIteratorPrototype[ITERATOR])) { defineBuiltIn(CurrentIteratorPrototype, ITERATOR, returnThis); } } // Set @@toStringTag to native iterators setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true); if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis; } } // fix Array.prototype.{ values, @@iterator }.name in V8 / FF if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) { if (!IS_PURE && CONFIGURABLE_FUNCTION_NAME) { createNonEnumerableProperty(IterablePrototype, 'name', VALUES); } else { INCORRECT_VALUES_NAME = true; defaultIterator = function values() { return call(nativeIterator, this); }; } } // export additional methods if (DEFAULT) { methods = { values: getIterationMethod(VALUES), keys: IS_SET ? defaultIterator : getIterationMethod(KEYS), entries: getIterationMethod(ENTRIES) }; if (FORCED) for (KEY in methods) { if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) { defineBuiltIn(IterablePrototype, KEY, methods[KEY]); } } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods); } // define iterator if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) { defineBuiltIn(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT }); } Iterators[NAME] = defaultIterator; return methods; }; /***/ }), /***/ "c869": /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__("0b07"), root = __webpack_require__("2b3e"); /* Built-in method references that are verified to be native. */ var Set = getNative(root, 'Set'); module.exports = Set; /***/ }), /***/ "c87c": /***/ (function(module, exports) { /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Initializes an array clone. * * @private * @param {Array} array The array to clone. * @returns {Array} Returns the initialized clone. */ function initCloneArray(array) { var length = array.length, result = new array.constructor(length); // Add properties assigned by `RegExp#exec`. if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) { result.index = array.index; result.input = array.input; } return result; } module.exports = initCloneArray; /***/ }), /***/ "c8af": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); module.exports = function normalizeHeaderName(headers, normalizedName) { utils.forEach(headers, function processHeader(value, name) { if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) { headers[normalizedName] = value; delete headers[name]; } }); }; /***/ }), /***/ "c8ba": /***/ (function(module, exports) { var g; // This works in non-strict mode g = (function() { return this; })(); try { // This works if eval is allowed (see CSP) g = g || new Function("return this")(); } catch (e) { // This works if the window reference is available if (typeof window === "object") g = window; } // g can still be undefined, but nothing to do about it... // We return undefined, instead of nothing here, so it's // easier to handle this case. if(!global) { ...} module.exports = g; /***/ }), /***/ "c8d2": /***/ (function(module, exports, __webpack_require__) { var PROPER_FUNCTION_NAME = __webpack_require__("5e77").PROPER; var fails = __webpack_require__("d039"); var whitespaces = __webpack_require__("5899"); var non = '\u200B\u0085\u180E'; // check that a method works with the correct list // of whitespaces and has a correct name module.exports = function (METHOD_NAME) { return fails(function () { return !!whitespaces[METHOD_NAME]() || non[METHOD_NAME]() !== non || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME); }); }; /***/ }), /***/ "c8fe": /***/ (function(module, exports, __webpack_require__) { var cloneArrayBuffer = __webpack_require__("f8af"); /** * Creates a clone of `typedArray`. * * @private * @param {Object} typedArray The typed array to clone. * @param {boolean} [isDeep] Specify a deep clone. * @returns {Object} Returns the cloned typed array. */ function cloneTypedArray(typedArray, isDeep) { var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer; return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length); } module.exports = cloneTypedArray; /***/ }), /***/ "ca32": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var defaults = { width: 2, height: 100, format: "auto", displayValue: true, fontOptions: "", font: "monospace", text: undefined, textAlign: "center", textPosition: "bottom", textMargin: 2, fontSize: 20, background: "#ffffff", lineColor: "#000000", margin: 10, marginTop: undefined, marginBottom: undefined, marginLeft: undefined, marginRight: undefined, valid: function valid() {} }; exports.default = defaults; /***/ }), /***/ "ca84": /***/ (function(module, exports, __webpack_require__) { var uncurryThis = __webpack_require__("e330"); var hasOwn = __webpack_require__("1a2d"); var toIndexedObject = __webpack_require__("fc6a"); var indexOf = __webpack_require__("4d64").indexOf; var hiddenKeys = __webpack_require__("d012"); var push = uncurryThis([].push); module.exports = function (object, names) { var O = toIndexedObject(object); var i = 0; var result = []; var key; for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key); // Don't enum bug & hidden keys while (names.length > i) if (hasOwn(O, key = names[i++])) { ~indexOf(result, key) || push(result, key); } return result; }; /***/ }), /***/ "caad": /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__("23e7"); var $includes = __webpack_require__("4d64").includes; var fails = __webpack_require__("d039"); var addToUnscopables = __webpack_require__("44d2"); // FF99+ bug var BROKEN_ON_SPARSE = fails(function () { return !Array(1).includes(); }); // `Array.prototype.includes` method // https://tc39.es/ecma262/#sec-array.prototype.includes $({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, { includes: function includes(el /* , fromIndex = 0 */) { return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined); } }); // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables addToUnscopables('includes'); /***/ }), /***/ "cb2d": /***/ (function(module, exports, __webpack_require__) { var isCallable = __webpack_require__("1626"); var definePropertyModule = __webpack_require__("9bf2"); var makeBuiltIn = __webpack_require__("13d2"); var defineGlobalProperty = __webpack_require__("6374"); module.exports = function (O, key, value, options) { if (!options) options = {}; var simple = options.enumerable; var name = options.name !== undefined ? options.name : key; if (isCallable(value)) makeBuiltIn(value, name, options); if (options.global) { if (simple) O[key] = value; else defineGlobalProperty(key, value); } else { try { if (!options.unsafe) delete O[key]; else if (O[key]) simple = true; } catch (error) { /* empty */ } if (simple) O[key] = value; else definePropertyModule.f(O, key, { value: value, enumerable: false, configurable: !options.nonConfigurable, writable: !options.nonWritable }); } return O; }; /***/ }), /***/ "cb5a": /***/ (function(module, exports, __webpack_require__) { var eq = __webpack_require__("9638"); /** * Gets the index at which the `key` is found in `array` of key-value pairs. * * @private * @param {Array} array The array to inspect. * @param {*} key The key to search for. * @returns {number} Returns the index of the matched value, else `-1`. */ function assocIndexOf(array, key) { var length = array.length; while (length--) { if (eq(array[length][0], key)) { return length; } } return -1; } module.exports = assocIndexOf; /***/ }), /***/ "cc12": /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__("da84"); var isObject = __webpack_require__("861d"); var document = global.document; // typeof document.createElement is 'object' in old IE var EXISTS = isObject(document) && isObject(document.createElement); module.exports = function (it) { return EXISTS ? document.createElement(it) : {}; }; /***/ }), /***/ "cc45": /***/ (function(module, exports, __webpack_require__) { var baseIsMap = __webpack_require__("1a2d0"), baseUnary = __webpack_require__("b047"), nodeUtil = __webpack_require__("99d3"); /* Node.js helper references. */ var nodeIsMap = nodeUtil && nodeUtil.isMap; /** * Checks if `value` is classified as a `Map` object. * * @static * @memberOf _ * @since 4.3.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a map, else `false`. * @example * * _.isMap(new Map); * // => true * * _.isMap(new WeakMap); * // => false */ var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap; module.exports = isMap; /***/ }), /***/ "cc98": /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__("23e7"); var IS_PURE = __webpack_require__("c430"); var FORCED_PROMISE_CONSTRUCTOR = __webpack_require__("4738").CONSTRUCTOR; var NativePromiseConstructor = __webpack_require__("d256"); var getBuiltIn = __webpack_require__("d066"); var isCallable = __webpack_require__("1626"); var defineBuiltIn = __webpack_require__("cb2d"); var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype; // `Promise.prototype.catch` method // https://tc39.es/ecma262/#sec-promise.prototype.catch $({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR, real: true }, { 'catch': function (onRejected) { return this.then(undefined, onRejected); } }); // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then` if (!IS_PURE && isCallable(NativePromiseConstructor)) { var method = getBuiltIn('Promise').prototype['catch']; if (NativePromisePrototype['catch'] !== method) { defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true }); } } /***/ }), /***/ "cca6": /***/ (function(module, exports, __webpack_require__) { var $ = __webpack_require__("23e7"); var assign = __webpack_require__("60da"); // `Object.assign` method // https://tc39.es/ecma262/#sec-object.assign // eslint-disable-next-line es/no-object-assign -- required for testing $({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, { assign: assign }); /***/ }), /***/ "cd9d": /***/ (function(module, exports) { /** * This method returns the first argument it receives. * * @static * @since 0.1.0 * @memberOf _ * @category Util * @param {*} value Any value. * @returns {*} Returns `value`. * @example * * var object = { 'a': 1 }; * * console.log(_.identity(object) === object); * // => true */ function identity(value) { return value; } module.exports = identity; /***/ }), /***/ "cdce": /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__("da84"); var isCallable = __webpack_require__("1626"); var WeakMap = global.WeakMap; module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap)); /***/ }), /***/ "cdf9": /***/ (function(module, exports, __webpack_require__) { var anObject = __webpack_require__("825a"); var isObject = __webpack_require__("861d"); var newPromiseCapability = __webpack_require__("f069"); module.exports = function (C, x) { anObject(C); if (isObject(x) && x.constructor === C) return x; var promiseCapability = newPromiseCapability.f(C); var resolve = promiseCapability.resolve; resolve(x); return promiseCapability.promise; }; /***/ }), /***/ "ce86": /***/ (function(module, exports, __webpack_require__) { var Symbol = __webpack_require__("9e69"), arrayMap = __webpack_require__("7948"), isArray = __webpack_require__("6747"), isSymbol = __webpack_require__("ffd6"); /** Used as references for various `Number` constants. */ var INFINITY = 1 / 0; /** Used to convert symbols to primitives and strings. */ var symbolProto = Symbol ? Symbol.prototype : undefined, symbolToString = symbolProto ? symbolProto.toString : undefined; /** * The base implementation of `_.toString` which doesn't convert nullish * values to empty strings. * * @private * @param {*} value The value to process. * @returns {string} Returns the string. */ function baseToString(value) { // Exit early for strings to avoid a performance hit in some environments. if (typeof value == 'string') { return value; } if (isArray(value)) { // Recursively convert values (susceptible to call stack limits). return arrayMap(value, baseToString) + ''; } if (isSymbol(value)) { return symbolToString ? symbolToString.call(value) : ''; } var result = (value + ''); return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; } module.exports = baseToString; /***/ }), /***/ "cee4": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); var bind = __webpack_require__("1d2b"); var Axios = __webpack_require__("0a06"); var mergeConfig = __webpack_require__("4a7b"); var defaults = __webpack_require__("2444"); /** * Create an instance of Axios * * @param {Object} defaultConfig The default config for the instance * @return {Axios} A new instance of Axios */ function createInstance(defaultConfig) { var context = new Axios(defaultConfig); var instance = bind(Axios.prototype.request, context); // Copy axios.prototype to instance utils.extend(instance, Axios.prototype, context); // Copy context to instance utils.extend(instance, context); return instance; } // Create the default instance to be exported var axios = createInstance(defaults); // Expose Axios class to allow class inheritance axios.Axios = Axios; // Factory for creating new instances axios.create = function create(instanceConfig) { return createInstance(mergeConfig(axios.defaults, instanceConfig)); }; // Expose Cancel & CancelToken axios.Cancel = __webpack_require__("7a77"); axios.CancelToken = __webpack_require__("8df4"); axios.isCancel = __webpack_require__("2e67"); // Expose all/spread axios.all = function all(promises) { return Promise.all(promises); }; axios.spread = __webpack_require__("0df6"); module.exports = axios; // Allow use of default import syntax in TypeScript module.exports.default = axios; /***/ }), /***/ "d012": /***/ (function(module, exports) { module.exports = {}; /***/ }), /***/ "d02c": /***/ (function(module, exports, __webpack_require__) { var ListCache = __webpack_require__("5e2e"), Map = __webpack_require__("79bc"), MapCache = __webpack_require__("7b83"); /** Used as the size to enable large array optimizations. */ var LARGE_ARRAY_SIZE = 200; /** * Sets the stack `key` to `value`. * * @private * @name set * @memberOf Stack * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the stack cache instance. */ function stackSet(key, value) { var data = this.__data__; if (data instanceof ListCache) { var pairs = data.__data__; if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) { pairs.push([key, value]); this.size = ++data.size; return this; } data = this.__data__ = new MapCache(pairs); } data.set(key, value); this.size = data.size; return this; } module.exports = stackSet; /***/ }), /***/ "d039": /***/ (function(module, exports) { module.exports = function (exec) { try { return !!exec(); } catch (error) { return true; } }; /***/ }), /***/ "d066": /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__("da84"); var isCallable = __webpack_require__("1626"); var aFunction = function (argument) { return isCallable(argument) ? argument : undefined; }; module.exports = function (namespace, method) { return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method]; }; /***/ }), /***/ "d1e7": /***/ (function(module, exports, __webpack_require__) { "use strict"; var $propertyIsEnumerable = {}.propertyIsEnumerable; // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; // Nashorn ~ JDK8 bug var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1); // `Object.prototype.propertyIsEnumerable` method implementation // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) { var descriptor = getOwnPropertyDescriptor(this, V); return !!descriptor && descriptor.enumerable; } : $propertyIsEnumerable; /***/ }), /***/ "d256": /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__("da84"); module.exports = global.Promise; /***/ }), /***/ "d28b": /***/ (function(module, exports, __webpack_require__) { var defineWellKnownSymbol = __webpack_require__("e065"); // `Symbol.iterator` well-known symbol // https://tc39.es/ecma262/#sec-symbol.iterator defineWellKnownSymbol('iterator'); /***/ }), /***/ "d2bb": /***/ (function(module, exports, __webpack_require__) { /* eslint-disable no-proto -- safe */ var uncurryThis = __webpack_require__("e330"); var anObject = __webpack_require__("825a"); var aPossiblePrototype = __webpack_require__("3bbe"); // `Object.setPrototypeOf` method // https://tc39.es/ecma262/#sec-object.setprototypeof // Works with __proto__ only. Old v8 can't work with null proto objects. // eslint-disable-next-line es/no-object-setprototypeof -- safe module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () { var CORRECT_SETTER = false; var test = {}; var setter; try { // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe setter = uncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set); setter(test, []); CORRECT_SETTER = test instanceof Array; } catch (error) { /* empty */ } return function setPrototypeOf(O, proto) { anObject(O); aPossiblePrototype(proto); if (CORRECT_SETTER) setter(O, proto); else O.__proto__ = proto; return O; }; }() : undefined); /***/ }), /***/ "d327": /***/ (function(module, exports) { /** * This method returns a new empty array. * * @static * @memberOf _ * @since 4.13.0 * @category Util * @returns {Array} Returns the new empty array. * @example * * var arrays = _.times(2, _.stubArray); * * console.log(arrays); * // => [[], []] * * console.log(arrays[0] === arrays[1]); * // => false */ function stubArray() { return []; } module.exports = stubArray; /***/ }), /***/ "d370": /***/ (function(module, exports, __webpack_require__) { var baseIsArguments = __webpack_require__("253c"), isObjectLike = __webpack_require__("1310"); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** Built-in value references. */ var propertyIsEnumerable = objectProto.propertyIsEnumerable; /** * Checks if `value` is likely an `arguments` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an `arguments` object, * else `false`. * @example * * _.isArguments(function() { return arguments; }()); * // => true * * _.isArguments([1, 2, 3]); * // => false */ var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) { return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && !propertyIsEnumerable.call(value, 'callee'); }; module.exports = isArguments; /***/ }), /***/ "d3b7": /***/ (function(module, exports, __webpack_require__) { var TO_STRING_TAG_SUPPORT = __webpack_require__("00ee"); var defineBuiltIn = __webpack_require__("cb2d"); var toString = __webpack_require__("b041"); // `Object.prototype.toString` method // https://tc39.es/ecma262/#sec-object.prototype.tostring if (!TO_STRING_TAG_SUPPORT) { defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true }); } /***/ }), /***/ "d44e": /***/ (function(module, exports, __webpack_require__) { var defineProperty = __webpack_require__("9bf2").f; var hasOwn = __webpack_require__("1a2d"); var wellKnownSymbol = __webpack_require__("b622"); var TO_STRING_TAG = wellKnownSymbol('toStringTag'); module.exports = function (target, TAG, STATIC) { if (target && !STATIC) target = target.prototype; if (target && !hasOwn(target, TO_STRING_TAG)) { defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG }); } }; /***/ }), /***/ "d4c3": /***/ (function(module, exports, __webpack_require__) { var userAgent = __webpack_require__("342f"); module.exports = /ipad|iphone|ipod/i.test(userAgent) && typeof Pebble != 'undefined'; /***/ }), /***/ "d6d6": /***/ (function(module, exports) { var $TypeError = TypeError; module.exports = function (passed, required) { if (passed < required) throw $TypeError('Not enough arguments'); return passed; }; /***/ }), /***/ "d784": /***/ (function(module, exports, __webpack_require__) { "use strict"; // TODO: Remove from `core-js@4` since it's moved to entry points __webpack_require__("ac1f"); var uncurryThis = __webpack_require__("4625"); var defineBuiltIn = __webpack_require__("cb2d"); var regexpExec = __webpack_require__("9263"); var fails = __webpack_require__("d039"); var wellKnownSymbol = __webpack_require__("b622"); var createNonEnumerableProperty = __webpack_require__("9112"); var SPECIES = wellKnownSymbol('species'); var RegExpPrototype = RegExp.prototype; module.exports = function (KEY, exec, FORCED, SHAM) { var SYMBOL = wellKnownSymbol(KEY); var DELEGATES_TO_SYMBOL = !fails(function () { // String methods call symbol-named RegEp methods var O = {}; O[SYMBOL] = function () { return 7; }; return ''[KEY](O) != 7; }); var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () { // Symbol-named RegExp methods call .exec var execCalled = false; var re = /a/; if (KEY === 'split') { // We can't use real regex here since it causes deoptimization // and serious performance degradation in V8 // https://github.com/zloirock/core-js/issues/306 re = {}; // RegExp[@@split] doesn't call the regex's exec method, but first creates // a new one. We need to return the patched regex when creating the new one. re.constructor = {}; re.constructor[SPECIES] = function () { return re; }; re.flags = ''; re[SYMBOL] = /./[SYMBOL]; } re.exec = function () { execCalled = true; return null; }; re[SYMBOL](''); return !execCalled; }); if ( !DELEGATES_TO_SYMBOL || !DELEGATES_TO_EXEC || FORCED ) { var uncurriedNativeRegExpMethod = uncurryThis(/./[SYMBOL]); var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) { var uncurriedNativeMethod = uncurryThis(nativeMethod); var $exec = regexp.exec; if ($exec === regexpExec || $exec === RegExpPrototype.exec) { if (DELEGATES_TO_SYMBOL && !forceStringMethod) { // The native String method already delegates to @@method (this // polyfilled function), leasing to infinite recursion. // We avoid it by directly calling the native @@method method. return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) }; } return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) }; } return { done: false }; }); defineBuiltIn(String.prototype, KEY, methods[0]); defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]); } if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true); }; /***/ }), /***/ "d7ee": /***/ (function(module, exports, __webpack_require__) { var baseIsSet = __webpack_require__("c3fc"), baseUnary = __webpack_require__("b047"), nodeUtil = __webpack_require__("99d3"); /* Node.js helper references. */ var nodeIsSet = nodeUtil && nodeUtil.isSet; /** * Checks if `value` is classified as a `Set` object. * * @static * @memberOf _ * @since 4.3.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a set, else `false`. * @example * * _.isSet(new Set); * // => true * * _.isSet(new WeakSet); * // => false */ var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet; module.exports = isSet; /***/ }), /***/ "d925": /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Determines whether the specified URL is absolute * * @param {string} url The URL to test * @returns {boolean} True if the specified URL is absolute, otherwise false */ module.exports = function isAbsoluteURL(url) { // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL). // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed // by any combination of letters, digits, plus, period, or hyphen. return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url); }; /***/ }), /***/ "d9b5": /***/ (function(module, exports, __webpack_require__) { var getBuiltIn = __webpack_require__("d066"); var isCallable = __webpack_require__("1626"); var isPrototypeOf = __webpack_require__("3a9b"); var USE_SYMBOL_AS_UID = __webpack_require__("fdbf"); var $Object = Object; module.exports = USE_SYMBOL_AS_UID ? function (it) { return typeof it == 'symbol'; } : function (it) { var $Symbol = getBuiltIn('Symbol'); return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it)); }; /***/ }), /***/ "d9e2": /***/ (function(module, exports, __webpack_require__) { /* eslint-disable no-unused-vars -- required for functions `.length` */ var $ = __webpack_require__("23e7"); var global = __webpack_require__("da84"); var apply = __webpack_require__("2ba4"); var wrapErrorConstructorWithCause = __webpack_require__("e5cb"); var WEB_ASSEMBLY = 'WebAssembly'; var WebAssembly = global[WEB_ASSEMBLY]; var FORCED = Error('e', { cause: 7 }).cause !== 7; var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) { var O = {}; O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED); $({ global: true, constructor: true, arity: 1, forced: FORCED }, O); }; var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) { if (WebAssembly && WebAssembly[ERROR_NAME]) { var O = {}; O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED); $({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED }, O); } }; // https://tc39.es/ecma262/#sec-nativeerror // https://github.com/tc39/proposal-error-cause exportGlobalErrorCauseWrapper('Error', function (init) { return function Error(message) { return apply(init, this, arguments); }; }); exportGlobalErrorCauseWrapper('EvalError', function (init) { return function EvalError(message) { return apply(init, this, arguments); }; }); exportGlobalErrorCauseWrapper('RangeError', function (init) { return function RangeError(message) { return apply(init, this, arguments); }; }); exportGlobalErrorCauseWrapper('ReferenceError', function (init) { return function ReferenceError(message) { return apply(init, this, arguments); }; }); exportGlobalErrorCauseWrapper('SyntaxError', function (init) { return function SyntaxError(message) { return apply(init, this, arguments); }; }); exportGlobalErrorCauseWrapper('TypeError', function (init) { return function TypeError(message) { return apply(init, this, arguments); }; }); exportGlobalErrorCauseWrapper('URIError', function (init) { return function URIError(message) { return apply(init, this, arguments); }; }); exportWebAssemblyErrorCauseWrapper('CompileError', function (init) { return function CompileError(message) { return apply(init, this, arguments); }; }); exportWebAssemblyErrorCauseWrapper('LinkError', function (init) { return function LinkError(message) { return apply(init, this, arguments); }; }); exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) { return function RuntimeError(message) { return apply(init, this, arguments); }; }); /***/ }), /***/ "d9f5": /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__("23e7"); var global = __webpack_require__("da84"); var call = __webpack_require__("c65b"); var uncurryThis = __webpack_require__("e330"); var IS_PURE = __webpack_require__("c430"); var DESCRIPTORS = __webpack_require__("83ab"); var NATIVE_SYMBOL = __webpack_require__("04f8"); var fails = __webpack_require__("d039"); var hasOwn = __webpack_require__("1a2d"); var isPrototypeOf = __webpack_require__("3a9b"); var anObject = __webpack_require__("825a"); var toIndexedObject = __webpack_require__("fc6a"); var toPropertyKey = __webpack_require__("a04b"); var $toString = __webpack_require__("577e"); var createPropertyDescriptor = __webpack_require__("5c6c"); var nativeObjectCreate = __webpack_require__("7c73"); var objectKeys = __webpack_require__("df75"); var getOwnPropertyNamesModule = __webpack_require__("241c"); var getOwnPropertyNamesExternal = __webpack_require__("057f"); var getOwnPropertySymbolsModule = __webpack_require__("7418"); var getOwnPropertyDescriptorModule = __webpack_require__("06cf"); var definePropertyModule = __webpack_require__("9bf2"); var definePropertiesModule = __webpack_require__("37e8"); var propertyIsEnumerableModule = __webpack_require__("d1e7"); var defineBuiltIn = __webpack_require__("cb2d"); var shared = __webpack_require__("5692"); var sharedKey = __webpack_require__("f772"); var hiddenKeys = __webpack_require__("d012"); var uid = __webpack_require__("90e3"); var wellKnownSymbol = __webpack_require__("b622"); var wrappedWellKnownSymbolModule = __webpack_require__("e538"); var defineWellKnownSymbol = __webpack_require__("e065"); var defineSymbolToPrimitive = __webpack_require__("57b9"); var setToStringTag = __webpack_require__("d44e"); var InternalStateModule = __webpack_require__("69f3"); var $forEach = __webpack_require__("b727").forEach; var HIDDEN = sharedKey('hidden'); var SYMBOL = 'Symbol'; var PROTOTYPE = 'prototype'; var setInternalState = InternalStateModule.set; var getInternalState = InternalStateModule.getterFor(SYMBOL); var ObjectPrototype = Object[PROTOTYPE]; var $Symbol = global.Symbol; var SymbolPrototype = $Symbol && $Symbol[PROTOTYPE]; var TypeError = global.TypeError; var QObject = global.QObject; var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; var nativeDefineProperty = definePropertyModule.f; var nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f; var nativePropertyIsEnumerable = propertyIsEnumerableModule.f; var push = uncurryThis([].push); var AllSymbols = shared('symbols'); var ObjectPrototypeSymbols = shared('op-symbols'); var WellKnownSymbolsStore = shared('wks'); // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173 var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild; // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687 var setSymbolDescriptor = DESCRIPTORS && fails(function () { return nativeObjectCreate(nativeDefineProperty({}, 'a', { get: function () { return nativeDefineProperty(this, 'a', { value: 7 }).a; } })).a != 7; }) ? function (O, P, Attributes) { var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor(ObjectPrototype, P); if (ObjectPrototypeDescriptor) delete ObjectPrototype[P]; nativeDefineProperty(O, P, Attributes); if (ObjectPrototypeDescriptor && O !== ObjectPrototype) { nativeDefineProperty(ObjectPrototype, P, ObjectPrototypeDescriptor); } } : nativeDefineProperty; var wrap = function (tag, description) { var symbol = AllSymbols[tag] = nativeObjectCreate(SymbolPrototype); setInternalState(symbol, { type: SYMBOL, tag: tag, description: description }); if (!DESCRIPTORS) symbol.description = description; return symbol; }; var $defineProperty = function defineProperty(O, P, Attributes) { if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes); anObject(O); var key = toPropertyKey(P); anObject(Attributes); if (hasOwn(AllSymbols, key)) { if (!Attributes.enumerable) { if (!hasOwn(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor(1, {})); O[HIDDEN][key] = true; } else { if (hasOwn(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false; Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) }); } return setSymbolDescriptor(O, key, Attributes); } return nativeDefineProperty(O, key, Attributes); }; var $defineProperties = function defineProperties(O, Properties) { anObject(O); var properties = toIndexedObject(Properties); var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties)); $forEach(keys, function (key) { if (!DESCRIPTORS || call($propertyIsEnumerable, properties, key)) $defineProperty(O, key, properties[key]); }); return O; }; var $create = function create(O, Properties) { return Properties === undefined ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties); }; var $propertyIsEnumerable = function propertyIsEnumerable(V) { var P = toPropertyKey(V); var enumerable = call(nativePropertyIsEnumerable, this, P); if (this === ObjectPrototype && hasOwn(AllSymbols, P) && !hasOwn(ObjectPrototypeSymbols, P)) return false; return enumerable || !hasOwn(this, P) || !hasOwn(AllSymbols, P) || hasOwn(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true; }; var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) { var it = toIndexedObject(O); var key = toPropertyKey(P); if (it === ObjectPrototype && hasOwn(AllSymbols, key) && !hasOwn(ObjectPrototypeSymbols, key)) return; var descriptor = nativeGetOwnPropertyDescriptor(it, key); if (descriptor && hasOwn(AllSymbols, key) && !(hasOwn(it, HIDDEN) && it[HIDDEN][key])) { descriptor.enumerable = true; } return descriptor; }; var $getOwnPropertyNames = function getOwnPropertyNames(O) { var names = nativeGetOwnPropertyNames(toIndexedObject(O)); var result = []; $forEach(names, function (key) { if (!hasOwn(AllSymbols, key) && !hasOwn(hiddenKeys, key)) push(result, key); }); return result; }; var $getOwnPropertySymbols = function (O) { var IS_OBJECT_PROTOTYPE = O === ObjectPrototype; var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O)); var result = []; $forEach(names, function (key) { if (hasOwn(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || hasOwn(ObjectPrototype, key))) { push(result, AllSymbols[key]); } }); return result; }; // `Symbol` constructor // https://tc39.es/ecma262/#sec-symbol-constructor if (!NATIVE_SYMBOL) { $Symbol = function Symbol() { if (isPrototypeOf(SymbolPrototype, this)) throw TypeError('Symbol is not a constructor'); var description = !arguments.length || arguments[0] === undefined ? undefined : $toString(arguments[0]); var tag = uid(description); var setter = function (value) { if (this === ObjectPrototype) call(setter, ObjectPrototypeSymbols, value); if (hasOwn(this, HIDDEN) && hasOwn(this[HIDDEN], tag)) this[HIDDEN][tag] = false; setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value)); }; if (DESCRIPTORS && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter }); return wrap(tag, description); }; SymbolPrototype = $Symbol[PROTOTYPE]; defineBuiltIn(SymbolPrototype, 'toString', function toString() { return getInternalState(this).tag; }); defineBuiltIn($Symbol, 'withoutSetter', function (description) { return wrap(uid(description), description); }); propertyIsEnumerableModule.f = $propertyIsEnumerable; definePropertyModule.f = $defineProperty; definePropertiesModule.f = $defineProperties; getOwnPropertyDescriptorModule.f = $getOwnPropertyDescriptor; getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames; getOwnPropertySymbolsModule.f = $getOwnPropertySymbols; wrappedWellKnownSymbolModule.f = function (name) { return wrap(wellKnownSymbol(name), name); }; if (DESCRIPTORS) { // https://github.com/tc39/proposal-Symbol-description nativeDefineProperty(SymbolPrototype, 'description', { configurable: true, get: function description() { return getInternalState(this).description; } }); if (!IS_PURE) { defineBuiltIn(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true }); } } } $({ global: true, constructor: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, { Symbol: $Symbol }); $forEach(objectKeys(WellKnownSymbolsStore), function (name) { defineWellKnownSymbol(name); }); $({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, { useSetter: function () { USE_SETTER = true; }, useSimple: function () { USE_SETTER = false; } }); $({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS }, { // `Object.create` method // https://tc39.es/ecma262/#sec-object.create create: $create, // `Object.defineProperty` method // https://tc39.es/ecma262/#sec-object.defineproperty defineProperty: $defineProperty, // `Object.defineProperties` method // https://tc39.es/ecma262/#sec-object.defineproperties defineProperties: $defineProperties, // `Object.getOwnPropertyDescriptor` method // https://tc39.es/ecma262/#sec-object.getownpropertydescriptors getOwnPropertyDescriptor: $getOwnPropertyDescriptor }); $({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL }, { // `Object.getOwnPropertyNames` method // https://tc39.es/ecma262/#sec-object.getownpropertynames getOwnPropertyNames: $getOwnPropertyNames }); // `Symbol.prototype[@@toPrimitive]` method // https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive defineSymbolToPrimitive(); // `Symbol.prototype[@@toStringTag]` property // https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag setToStringTag($Symbol, SYMBOL); hiddenKeys[HIDDEN] = true; /***/ }), /***/ "da03": /***/ (function(module, exports, __webpack_require__) { var root = __webpack_require__("2b3e"); /** Used to detect overreaching core-js shims. */ var coreJsData = root['__core-js_shared__']; module.exports = coreJsData; /***/ }), /***/ "da3d": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CODE128C = exports.CODE128B = exports.CODE128A = exports.CODE128 = undefined; var _CODE128_AUTO = __webpack_require__("6f24"); var _CODE128_AUTO2 = _interopRequireDefault(_CODE128_AUTO); var _CODE128A = __webpack_require__("e8c9"); var _CODE128A2 = _interopRequireDefault(_CODE128A); var _CODE128B = __webpack_require__("70b0"); var _CODE128B2 = _interopRequireDefault(_CODE128B); var _CODE128C = __webpack_require__("ed3f"); var _CODE128C2 = _interopRequireDefault(_CODE128C); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.CODE128 = _CODE128_AUTO2.default; exports.CODE128A = _CODE128A2.default; exports.CODE128B = _CODE128B2.default; exports.CODE128C = _CODE128C2.default; /***/ }), /***/ "da84": /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(global) {var check = function (it) { return it && it.Math == Math && it; }; // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 module.exports = // eslint-disable-next-line es/no-global-this -- safe check(typeof globalThis == 'object' && globalThis) || check(typeof window == 'object' && window) || // eslint-disable-next-line no-restricted-globals -- safe check(typeof self == 'object' && self) || check(typeof global == 'object' && global) || // eslint-disable-next-line no-new-func -- fallback (function () { return this; })() || Function('return this')(); /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("c8ba"))) /***/ }), /***/ "dbb4": /***/ (function(module, exports, __webpack_require__) { var $ = __webpack_require__("23e7"); var DESCRIPTORS = __webpack_require__("83ab"); var ownKeys = __webpack_require__("56ef"); var toIndexedObject = __webpack_require__("fc6a"); var getOwnPropertyDescriptorModule = __webpack_require__("06cf"); var createProperty = __webpack_require__("8418"); // `Object.getOwnPropertyDescriptors` method // https://tc39.es/ecma262/#sec-object.getownpropertydescriptors $({ target: 'Object', stat: true, sham: !DESCRIPTORS }, { getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) { var O = toIndexedObject(object); var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; var keys = ownKeys(O); var result = {}; var index = 0; var key, descriptor; while (keys.length > index) { descriptor = getOwnPropertyDescriptor(O, key = keys[index++]); if (descriptor !== undefined) createProperty(result, key, descriptor); } return result; } }); /***/ }), /***/ "dc4a": /***/ (function(module, exports, __webpack_require__) { var aCallable = __webpack_require__("59ed"); var isNullOrUndefined = __webpack_require__("7234"); // `GetMethod` abstract operation // https://tc39.es/ecma262/#sec-getmethod module.exports = function (V, P) { var func = V[P]; return isNullOrUndefined(func) ? undefined : aCallable(func); }; /***/ }), /***/ "dc57": /***/ (function(module, exports) { /** Used for built-in method references. */ var funcProto = Function.prototype; /** Used to resolve the decompiled source of functions. */ var funcToString = funcProto.toString; /** * Converts `func` to its source code. * * @private * @param {Function} func The function to convert. * @returns {string} Returns the source code. */ function toSource(func) { if (func != null) { try { return funcToString.call(func); } catch (e) {} try { return (func + ''); } catch (e) {} } return ''; } module.exports = toSource; /***/ }), /***/ "dca2": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var InvalidInputException = function (_Error) { _inherits(InvalidInputException, _Error); function InvalidInputException(symbology, input) { _classCallCheck(this, InvalidInputException); var _this = _possibleConstructorReturn(this, (InvalidInputException.__proto__ || Object.getPrototypeOf(InvalidInputException)).call(this)); _this.name = "InvalidInputException"; _this.symbology = symbology; _this.input = input; _this.message = '"' + _this.input + '" is not a valid input for ' + _this.symbology; return _this; } return InvalidInputException; }(Error); var InvalidElementException = function (_Error2) { _inherits(InvalidElementException, _Error2); function InvalidElementException() { _classCallCheck(this, InvalidElementException); var _this2 = _possibleConstructorReturn(this, (InvalidElementException.__proto__ || Object.getPrototypeOf(InvalidElementException)).call(this)); _this2.name = "InvalidElementException"; _this2.message = "Not supported type to render on"; return _this2; } return InvalidElementException; }(Error); var NoElementException = function (_Error3) { _inherits(NoElementException, _Error3); function NoElementException() { _classCallCheck(this, NoElementException); var _this3 = _possibleConstructorReturn(this, (NoElementException.__proto__ || Object.getPrototypeOf(NoElementException)).call(this)); _this3.name = "NoElementException"; _this3.message = "No element to render on."; return _this3; } return NoElementException; }(Error); exports.InvalidInputException = InvalidInputException; exports.InvalidElementException = InvalidElementException; exports.NoElementException = NoElementException; /***/ }), /***/ "dcbe": /***/ (function(module, exports, __webpack_require__) { var isArrayLike = __webpack_require__("30c9"), isObjectLike = __webpack_require__("1310"); /** * This method is like `_.isArrayLike` except that it also checks if `value` * is an object. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an array-like object, * else `false`. * @example * * _.isArrayLikeObject([1, 2, 3]); * // => true * * _.isArrayLikeObject(document.body.children); * // => true * * _.isArrayLikeObject('abc'); * // => false * * _.isArrayLikeObject(_.noop); * // => false */ function isArrayLikeObject(value) { return isObjectLike(value) && isArrayLike(value); } module.exports = isArrayLikeObject; /***/ }), /***/ "dcc3": /***/ (function(module, exports, __webpack_require__) { "use strict"; var IteratorPrototype = __webpack_require__("ae93").IteratorPrototype; var create = __webpack_require__("7c73"); var createPropertyDescriptor = __webpack_require__("5c6c"); var setToStringTag = __webpack_require__("d44e"); var Iterators = __webpack_require__("3f8c"); var returnThis = function () { return this; }; module.exports = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) { var TO_STRING_TAG = NAME + ' Iterator'; IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) }); setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true); Iterators[TO_STRING_TAG] = returnThis; return IteratorConstructor; }; /***/ }), /***/ "ddb0": /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__("da84"); var DOMIterables = __webpack_require__("fdbc"); var DOMTokenListPrototype = __webpack_require__("785a"); var ArrayIteratorMethods = __webpack_require__("e260"); var createNonEnumerableProperty = __webpack_require__("9112"); var wellKnownSymbol = __webpack_require__("b622"); var ITERATOR = wellKnownSymbol('iterator'); var TO_STRING_TAG = wellKnownSymbol('toStringTag'); var ArrayValues = ArrayIteratorMethods.values; var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) { if (CollectionPrototype) { // some Chrome versions have non-configurable methods on DOMTokenList if (CollectionPrototype[ITERATOR] !== ArrayValues) try { createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues); } catch (error) { CollectionPrototype[ITERATOR] = ArrayValues; } if (!CollectionPrototype[TO_STRING_TAG]) { createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME); } if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) { // some Chrome versions have non-configurable methods on DOMTokenList if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try { createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]); } catch (error) { CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME]; } } } }; for (var COLLECTION_NAME in DOMIterables) { handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype, COLLECTION_NAME); } handlePrototype(DOMTokenListPrototype, 'DOMTokenList'); /***/ }), /***/ "df75": /***/ (function(module, exports, __webpack_require__) { var internalObjectKeys = __webpack_require__("ca84"); var enumBugKeys = __webpack_require__("7839"); // `Object.keys` method // https://tc39.es/ecma262/#sec-object.keys // eslint-disable-next-line es/no-object-keys -- safe module.exports = Object.keys || function keys(O) { return internalObjectKeys(O, enumBugKeys); }; /***/ }), /***/ "df7c": /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1, // backported and transplited with Babel, with backwards-compat fixes // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. // resolves . and .. elements in a path array with directory names there // must be no slashes, empty elements, or device names (c:\) in the array // (so also no leading and trailing slashes - it does not distinguish // relative and absolute paths) function normalizeArray(parts, allowAboveRoot) { // if the path tries to go above the root, `up` ends up > 0 var up = 0; for (var i = parts.length - 1; i >= 0; i--) { var last = parts[i]; if (last === '.') { parts.splice(i, 1); } else if (last === '..') { parts.splice(i, 1); up++; } else if (up) { parts.splice(i, 1); up--; } } // if the path is allowed to go above the root, restore leading ..s if (allowAboveRoot) { for (; up--; up) { parts.unshift('..'); } } return parts; } // path.resolve([from ...], to) // posix version exports.resolve = function() { var resolvedPath = '', resolvedAbsolute = false; for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) { var path = (i >= 0) ? arguments[i] : process.cwd(); // Skip empty and invalid entries if (typeof path !== 'string') { throw new TypeError('Arguments to path.resolve must be strings'); } else if (!path) { continue; } resolvedPath = path + '/' + resolvedPath; resolvedAbsolute = path.charAt(0) === '/'; } // At this point the path should be resolved to a full absolute path, but // handle relative paths to be safe (might happen when process.cwd() fails) // Normalize the path resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) { return !!p; }), !resolvedAbsolute).join('/'); return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.'; }; // path.normalize(path) // posix version exports.normalize = function(path) { var isAbsolute = exports.isAbsolute(path), trailingSlash = substr(path, -1) === '/'; // Normalize the path path = normalizeArray(filter(path.split('/'), function(p) { return !!p; }), !isAbsolute).join('/'); if (!path && !isAbsolute) { path = '.'; } if (path && trailingSlash) { path += '/'; } return (isAbsolute ? '/' : '') + path; }; // posix version exports.isAbsolute = function(path) { return path.charAt(0) === '/'; }; // posix version exports.join = function() { var paths = Array.prototype.slice.call(arguments, 0); return exports.normalize(filter(paths, function(p, index) { if (typeof p !== 'string') { throw new TypeError('Arguments to path.join must be strings'); } return p; }).join('/')); }; // path.relative(from, to) // posix version exports.relative = function(from, to) { from = exports.resolve(from).substr(1); to = exports.resolve(to).substr(1); function trim(arr) { var start = 0; for (; start < arr.length; start++) { if (arr[start] !== '') break; } var end = arr.length - 1; for (; end >= 0; end--) { if (arr[end] !== '') break; } if (start > end) return []; return arr.slice(start, end - start + 1); } var fromParts = trim(from.split('/')); var toParts = trim(to.split('/')); var length = Math.min(fromParts.length, toParts.length); var samePartsLength = length; for (var i = 0; i < length; i++) { if (fromParts[i] !== toParts[i]) { samePartsLength = i; break; } } var outputParts = []; for (var i = samePartsLength; i < fromParts.length; i++) { outputParts.push('..'); } outputParts = outputParts.concat(toParts.slice(samePartsLength)); return outputParts.join('/'); }; exports.sep = '/'; exports.delimiter = ':'; exports.dirname = function (path) { if (typeof path !== 'string') path = path + ''; if (path.length === 0) return '.'; var code = path.charCodeAt(0); var hasRoot = code === 47 /*/*/; var end = -1; var matchedSlash = true; for (var i = path.length - 1; i >= 1; --i) { code = path.charCodeAt(i); if (code === 47 /*/*/) { if (!matchedSlash) { end = i; break; } } else { // We saw the first non-path separator matchedSlash = false; } } if (end === -1) return hasRoot ? '/' : '.'; if (hasRoot && end === 1) { // return '//'; // Backwards-compat fix: return '/'; } return path.slice(0, end); }; function basename(path) { if (typeof path !== 'string') path = path + ''; var start = 0; var end = -1; var matchedSlash = true; var i; for (i = path.length - 1; i >= 0; --i) { if (path.charCodeAt(i) === 47 /*/*/) { // If we reached a path separator that was not part of a set of path // separators at the end of the string, stop now if (!matchedSlash) { start = i + 1; break; } } else if (end === -1) { // We saw the first non-path separator, mark this as the end of our // path component matchedSlash = false; end = i + 1; } } if (end === -1) return ''; return path.slice(start, end); } // Uses a mixed approach for backwards-compatibility, as ext behavior changed // in new Node.js versions, so only basename() above is backported here exports.basename = function (path, ext) { var f = basename(path); if (ext && f.substr(-1 * ext.length) === ext) { f = f.substr(0, f.length - ext.length); } return f; }; exports.extname = function (path) { if (typeof path !== 'string') path = path + ''; var startDot = -1; var startPart = 0; var end = -1; var matchedSlash = true; // Track the state of characters (if any) we see before our first dot and // after any path separator we find var preDotState = 0; for (var i = path.length - 1; i >= 0; --i) { var code = path.charCodeAt(i); if (code === 47 /*/*/) { // If we reached a path separator that was not part of a set of path // separators at the end of the string, stop now if (!matchedSlash) { startPart = i + 1; break; } continue; } if (end === -1) { // We saw the first non-path separator, mark this as the end of our // extension matchedSlash = false; end = i + 1; } if (code === 46 /*.*/) { // If this is our first dot, mark it as the start of our extension if (startDot === -1) startDot = i; else if (preDotState !== 1) preDotState = 1; } else if (startDot !== -1) { // We saw a non-dot and non-path separator before our dot, so we should // have a good chance at having a non-empty extension preDotState = -1; } } if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot preDotState === 0 || // The (right-most) trimmed path component is exactly '..' preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) { return ''; } return path.slice(startDot, end); }; function filter (xs, f) { if (xs.filter) return xs.filter(f); var res = []; for (var i = 0; i < xs.length; i++) { if (f(xs[i], i, xs)) res.push(xs[i]); } return res; } // String.prototype.substr - negative index don't work in IE8 var substr = 'ab'.substr(-1) === 'b' ? function (str, start, len) { return str.substr(start, len) } : function (str, start, len) { if (start < 0) start = str.length + start; return str.substr(start, len); } ; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("4362"))) /***/ }), /***/ "e01a": /***/ (function(module, exports, __webpack_require__) { "use strict"; // `Symbol.prototype.description` getter // https://tc39.es/ecma262/#sec-symbol.prototype.description var $ = __webpack_require__("23e7"); var DESCRIPTORS = __webpack_require__("83ab"); var global = __webpack_require__("da84"); var uncurryThis = __webpack_require__("e330"); var hasOwn = __webpack_require__("1a2d"); var isCallable = __webpack_require__("1626"); var isPrototypeOf = __webpack_require__("3a9b"); var toString = __webpack_require__("577e"); var defineProperty = __webpack_require__("9bf2").f; var copyConstructorProperties = __webpack_require__("e893"); var NativeSymbol = global.Symbol; var SymbolPrototype = NativeSymbol && NativeSymbol.prototype; if (DESCRIPTORS && isCallable(NativeSymbol) && (!('description' in SymbolPrototype) || // Safari 12 bug NativeSymbol().description !== undefined )) { var EmptyStringDescriptionStore = {}; // wrap Symbol constructor for correct work with undefined description var SymbolWrapper = function Symbol() { var description = arguments.length < 1 || arguments[0] === undefined ? undefined : toString(arguments[0]); var result = isPrototypeOf(SymbolPrototype, this) ? new NativeSymbol(description) // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)' : description === undefined ? NativeSymbol() : NativeSymbol(description); if (description === '') EmptyStringDescriptionStore[result] = true; return result; }; copyConstructorProperties(SymbolWrapper, NativeSymbol); SymbolWrapper.prototype = SymbolPrototype; SymbolPrototype.constructor = SymbolWrapper; var NATIVE_SYMBOL = String(NativeSymbol('test')) == 'Symbol(test)'; var thisSymbolValue = uncurryThis(SymbolPrototype.valueOf); var symbolDescriptiveString = uncurryThis(SymbolPrototype.toString); var regexp = /^Symbol\((.*)\)[^)]+$/; var replace = uncurryThis(''.replace); var stringSlice = uncurryThis(''.slice); defineProperty(SymbolPrototype, 'description', { configurable: true, get: function description() { var symbol = thisSymbolValue(this); if (hasOwn(EmptyStringDescriptionStore, symbol)) return ''; var string = symbolDescriptiveString(symbol); var desc = NATIVE_SYMBOL ? stringSlice(string, 7, -1) : replace(string, regexp, '$1'); return desc === '' ? undefined : desc; } }); $({ global: true, constructor: true, forced: true }, { Symbol: SymbolWrapper }); } /***/ }), /***/ "e031": /***/ (function(module, exports, __webpack_require__) { var baseMerge = __webpack_require__("f909"), isObject = __webpack_require__("1a8c"); /** * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source * objects into destination objects that are passed thru. * * @private * @param {*} objValue The destination value. * @param {*} srcValue The source value. * @param {string} key The key of the property to merge. * @param {Object} object The parent object of `objValue`. * @param {Object} source The parent object of `srcValue`. * @param {Object} [stack] Tracks traversed source values and their merged * counterparts. * @returns {*} Returns the value to assign. */ function customDefaultsMerge(objValue, srcValue, key, object, source, stack) { if (isObject(objValue) && isObject(srcValue)) { // Recursively merge objects and arrays (susceptible to call stack limits). stack.set(srcValue, objValue); baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack); stack['delete'](srcValue); } return objValue; } module.exports = customDefaultsMerge; /***/ }), /***/ "e065": /***/ (function(module, exports, __webpack_require__) { var path = __webpack_require__("428f"); var hasOwn = __webpack_require__("1a2d"); var wrappedWellKnownSymbolModule = __webpack_require__("e538"); var defineProperty = __webpack_require__("9bf2").f; module.exports = function (NAME) { var Symbol = path.Symbol || (path.Symbol = {}); if (!hasOwn(Symbol, NAME)) defineProperty(Symbol, NAME, { value: wrappedWellKnownSymbolModule.f(NAME) }); }; /***/ }), /***/ "e163": /***/ (function(module, exports, __webpack_require__) { var hasOwn = __webpack_require__("1a2d"); var isCallable = __webpack_require__("1626"); var toObject = __webpack_require__("7b0b"); var sharedKey = __webpack_require__("f772"); var CORRECT_PROTOTYPE_GETTER = __webpack_require__("e177"); var IE_PROTO = sharedKey('IE_PROTO'); var $Object = Object; var ObjectPrototype = $Object.prototype; // `Object.getPrototypeOf` method // https://tc39.es/ecma262/#sec-object.getprototypeof // eslint-disable-next-line es/no-object-getprototypeof -- safe module.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) { var object = toObject(O); if (hasOwn(object, IE_PROTO)) return object[IE_PROTO]; var constructor = object.constructor; if (isCallable(constructor) && object instanceof constructor) { return constructor.prototype; } return object instanceof $Object ? ObjectPrototype : null; }; /***/ }), /***/ "e177": /***/ (function(module, exports, __webpack_require__) { var fails = __webpack_require__("d039"); module.exports = !fails(function () { function F() { /* empty */ } F.prototype.constructor = null; // eslint-disable-next-line es/no-object-getprototypeof -- required for testing return Object.getPrototypeOf(new F()) !== F.prototype; }); /***/ }), /***/ "e24b": /***/ (function(module, exports, __webpack_require__) { var hashClear = __webpack_require__("49f4"), hashDelete = __webpack_require__("1efc"), hashGet = __webpack_require__("bbc0"), hashHas = __webpack_require__("7a48"), hashSet = __webpack_require__("2524"); /** * Creates a hash object. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function Hash(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } // Add methods to `Hash`. Hash.prototype.clear = hashClear; Hash.prototype['delete'] = hashDelete; Hash.prototype.get = hashGet; Hash.prototype.has = hashHas; Hash.prototype.set = hashSet; module.exports = Hash; /***/ }), /***/ "e260": /***/ (function(module, exports, __webpack_require__) { "use strict"; var toIndexedObject = __webpack_require__("fc6a"); var addToUnscopables = __webpack_require__("44d2"); var Iterators = __webpack_require__("3f8c"); var InternalStateModule = __webpack_require__("69f3"); var defineProperty = __webpack_require__("9bf2").f; var defineIterator = __webpack_require__("c6d2"); var createIterResultObject = __webpack_require__("4754"); var IS_PURE = __webpack_require__("c430"); var DESCRIPTORS = __webpack_require__("83ab"); var ARRAY_ITERATOR = 'Array Iterator'; var setInternalState = InternalStateModule.set; var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR); // `Array.prototype.entries` method // https://tc39.es/ecma262/#sec-array.prototype.entries // `Array.prototype.keys` method // https://tc39.es/ecma262/#sec-array.prototype.keys // `Array.prototype.values` method // https://tc39.es/ecma262/#sec-array.prototype.values // `Array.prototype[@@iterator]` method // https://tc39.es/ecma262/#sec-array.prototype-@@iterator // `CreateArrayIterator` internal method // https://tc39.es/ecma262/#sec-createarrayiterator module.exports = defineIterator(Array, 'Array', function (iterated, kind) { setInternalState(this, { type: ARRAY_ITERATOR, target: toIndexedObject(iterated), // target index: 0, // next index kind: kind // kind }); // `%ArrayIteratorPrototype%.next` method // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next }, function () { var state = getInternalState(this); var target = state.target; var kind = state.kind; var index = state.index++; if (!target || index >= target.length) { state.target = undefined; return createIterResultObject(undefined, true); } if (kind == 'keys') return createIterResultObject(index, false); if (kind == 'values') return createIterResultObject(target[index], false); return createIterResultObject([index, target[index]], false); }, 'values'); // argumentsList[@@iterator] is %ArrayProto_values% // https://tc39.es/ecma262/#sec-createunmappedargumentsobject // https://tc39.es/ecma262/#sec-createmappedargumentsobject var values = Iterators.Arguments = Iterators.Array; // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables addToUnscopables('keys'); addToUnscopables('values'); addToUnscopables('entries'); // V8 ~ Chrome 45- bug if (!IS_PURE && DESCRIPTORS && values.name !== 'values') try { defineProperty(values, 'name', { value: 'values' }); } catch (error) { /* empty */ } /***/ }), /***/ "e2c0": /***/ (function(module, exports, __webpack_require__) { var castPath = __webpack_require__("e2e4"), isArguments = __webpack_require__("d370"), isArray = __webpack_require__("6747"), isIndex = __webpack_require__("c098"), isLength = __webpack_require__("b218"), toKey = __webpack_require__("f4d6"); /** * Checks if `path` exists on `object`. * * @private * @param {Object} object The object to query. * @param {Array|string} path The path to check. * @param {Function} hasFunc The function to check properties. * @returns {boolean} Returns `true` if `path` exists, else `false`. */ function hasPath(object, path, hasFunc) { path = castPath(path, object); var index = -1, length = path.length, result = false; while (++index < length) { var key = toKey(path[index]); if (!(result = object != null && hasFunc(object, key))) { break; } object = object[key]; } if (result || ++index != length) { return result; } length = object == null ? 0 : object.length; return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object)); } module.exports = hasPath; /***/ }), /***/ "e2e4": /***/ (function(module, exports, __webpack_require__) { var isArray = __webpack_require__("6747"), isKey = __webpack_require__("f608"), stringToPath = __webpack_require__("18d8"), toString = __webpack_require__("76dd"); /** * Casts `value` to a path array if it's not one. * * @private * @param {*} value The value to inspect. * @param {Object} [object] The object to query keys on. * @returns {Array} Returns the cast property path array. */ function castPath(value, object) { if (isArray(value)) { return value; } return isKey(value, object) ? [value] : stringToPath(toString(value)); } module.exports = castPath; /***/ }), /***/ "e330": /***/ (function(module, exports, __webpack_require__) { var NATIVE_BIND = __webpack_require__("40d5"); var FunctionPrototype = Function.prototype; var call = FunctionPrototype.call; var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call); module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) { return function () { return call.apply(fn, arguments); }; }; /***/ }), /***/ "e380": /***/ (function(module, exports, __webpack_require__) { var MapCache = __webpack_require__("7b83"); /** Error message constants. */ var FUNC_ERROR_TEXT = 'Expected a function'; /** * Creates a function that memoizes the result of `func`. If `resolver` is * provided, it determines the cache key for storing the result based on the * arguments provided to the memoized function. By default, the first argument * provided to the memoized function is used as the map cache key. The `func` * is invoked with the `this` binding of the memoized function. * * **Note:** The cache is exposed as the `cache` property on the memoized * function. Its creation may be customized by replacing the `_.memoize.Cache` * constructor with one whose instances implement the * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object) * method interface of `clear`, `delete`, `get`, `has`, and `set`. * * @static * @memberOf _ * @since 0.1.0 * @category Function * @param {Function} func The function to have its output memoized. * @param {Function} [resolver] The function to resolve the cache key. * @returns {Function} Returns the new memoized function. * @example * * var object = { 'a': 1, 'b': 2 }; * var other = { 'c': 3, 'd': 4 }; * * var values = _.memoize(_.values); * values(object); * // => [1, 2] * * values(other); * // => [3, 4] * * object.a = 2; * values(object); * // => [1, 2] * * // Modify the result cache. * values.cache.set(object, ['a', 'b']); * values(object); * // => ['a', 'b'] * * // Replace `_.memoize.Cache`. * _.memoize.Cache = WeakMap; */ function memoize(func, resolver) { if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) { throw new TypeError(FUNC_ERROR_TEXT); } var memoized = function() { var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache; if (cache.has(key)) { return cache.get(key); } var result = func.apply(this, args); memoized.cache = cache.set(key, result) || cache; return result; }; memoized.cache = new (memoize.Cache || MapCache); return memoized; } // Expose `MapCache`. memoize.Cache = MapCache; module.exports = memoize; /***/ }), /***/ "e391": /***/ (function(module, exports, __webpack_require__) { var toString = __webpack_require__("577e"); module.exports = function (argument, $default) { return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument); }; /***/ }), /***/ "e439": /***/ (function(module, exports, __webpack_require__) { var $ = __webpack_require__("23e7"); var fails = __webpack_require__("d039"); var toIndexedObject = __webpack_require__("fc6a"); var nativeGetOwnPropertyDescriptor = __webpack_require__("06cf").f; var DESCRIPTORS = __webpack_require__("83ab"); var FORCED = !DESCRIPTORS || fails(function () { nativeGetOwnPropertyDescriptor(1); }); // `Object.getOwnPropertyDescriptor` method // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor $({ target: 'Object', stat: true, forced: FORCED, sham: !DESCRIPTORS }, { getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) { return nativeGetOwnPropertyDescriptor(toIndexedObject(it), key); } }); /***/ }), /***/ "e538": /***/ (function(module, exports, __webpack_require__) { var wellKnownSymbol = __webpack_require__("b622"); exports.f = wellKnownSymbol; /***/ }), /***/ "e5383": /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__("2b3e"); /** Detect free variable `exports`. */ var freeExports = true && exports && !exports.nodeType && exports; /** Detect free variable `module`. */ var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; /** Detect the popular CommonJS extension `module.exports`. */ var moduleExports = freeModule && freeModule.exports === freeExports; /** Built-in value references. */ var Buffer = moduleExports ? root.Buffer : undefined, allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined; /** * Creates a clone of `buffer`. * * @private * @param {Buffer} buffer The buffer to clone. * @param {boolean} [isDeep] Specify a deep clone. * @returns {Buffer} Returns the cloned buffer. */ function cloneBuffer(buffer, isDeep) { if (isDeep) { return buffer.slice(); } var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length); buffer.copy(result); return result; } module.exports = cloneBuffer; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("62e4")(module))) /***/ }), /***/ "e5cb": /***/ (function(module, exports, __webpack_require__) { "use strict"; var getBuiltIn = __webpack_require__("d066"); var hasOwn = __webpack_require__("1a2d"); var createNonEnumerableProperty = __webpack_require__("9112"); var isPrototypeOf = __webpack_require__("3a9b"); var setPrototypeOf = __webpack_require__("d2bb"); var copyConstructorProperties = __webpack_require__("e893"); var proxyAccessor = __webpack_require__("aeb0"); var inheritIfRequired = __webpack_require__("7156"); var normalizeStringArgument = __webpack_require__("e391"); var installErrorCause = __webpack_require__("ab36"); var installErrorStack = __webpack_require__("6f19"); var DESCRIPTORS = __webpack_require__("83ab"); var IS_PURE = __webpack_require__("c430"); module.exports = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) { var STACK_TRACE_LIMIT = 'stackTraceLimit'; var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1; var path = FULL_NAME.split('.'); var ERROR_NAME = path[path.length - 1]; var OriginalError = getBuiltIn.apply(null, path); if (!OriginalError) return; var OriginalErrorPrototype = OriginalError.prototype; // V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006 if (!IS_PURE && hasOwn(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause; if (!FORCED) return OriginalError; var BaseError = getBuiltIn('Error'); var WrappedError = wrapper(function (a, b) { var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined); var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError(); if (message !== undefined) createNonEnumerableProperty(result, 'message', message); installErrorStack(result, WrappedError, result.stack, 2); if (this && isPrototypeOf(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError); if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]); return result; }); WrappedError.prototype = OriginalErrorPrototype; if (ERROR_NAME !== 'Error') { if (setPrototypeOf) setPrototypeOf(WrappedError, BaseError); else copyConstructorProperties(WrappedError, BaseError, { name: true }); } else if (DESCRIPTORS && STACK_TRACE_LIMIT in OriginalError) { proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT); proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace'); } copyConstructorProperties(WrappedError, OriginalError); if (!IS_PURE) try { // Safari 13- bug: WebAssembly errors does not have a proper `.name` if (OriginalErrorPrototype.name !== ERROR_NAME) { createNonEnumerableProperty(OriginalErrorPrototype, 'name', ERROR_NAME); } OriginalErrorPrototype.constructor = WrappedError; } catch (error) { /* empty */ } return WrappedError; }; /***/ }), /***/ "e667": /***/ (function(module, exports) { module.exports = function (exec) { try { return { error: false, value: exec() }; } catch (error) { return { error: true, value: error }; } }; /***/ }), /***/ "e683": /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Creates a new URL by combining the specified URLs * * @param {string} baseURL The base URL * @param {string} relativeURL The relative URL * @returns {string} The combined URL */ module.exports = function combineURLs(baseURL, relativeURL) { return relativeURL ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '') : baseURL; }; /***/ }), /***/ "e6cf": /***/ (function(module, exports, __webpack_require__) { // TODO: Remove this module from `core-js@4` since it's split to modules listed below __webpack_require__("5e7e"); __webpack_require__("14e5"); __webpack_require__("cc98"); __webpack_require__("3529"); __webpack_require__("f22b"); __webpack_require__("7149"); /***/ }), /***/ "e762": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var Barcode = function Barcode(data, options) { _classCallCheck(this, Barcode); this.data = data; this.text = options.text || data; this.options = options; }; exports.default = Barcode; /***/ }), /***/ "e893": /***/ (function(module, exports, __webpack_require__) { var hasOwn = __webpack_require__("1a2d"); var ownKeys = __webpack_require__("56ef"); var getOwnPropertyDescriptorModule = __webpack_require__("06cf"); var definePropertyModule = __webpack_require__("9bf2"); module.exports = function (target, source, exceptions) { var keys = ownKeys(source); var defineProperty = definePropertyModule.f; var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; for (var i = 0; i < keys.length; i++) { var key = keys[i]; if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) { defineProperty(target, key, getOwnPropertyDescriptor(source, key)); } } }; /***/ }), /***/ "e8b2": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); exports.checksum = checksum; var _encoder = __webpack_require__("5726"); var _encoder2 = _interopRequireDefault(_encoder); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation: // https://en.wikipedia.org/wiki/Universal_Product_Code#Encoding var UPC = function (_Barcode) { _inherits(UPC, _Barcode); function UPC(data, options) { _classCallCheck(this, UPC); // Add checksum if it does not exist if (data.search(/^[0-9]{11}$/) !== -1) { data += checksum(data); } var _this = _possibleConstructorReturn(this, (UPC.__proto__ || Object.getPrototypeOf(UPC)).call(this, data, options)); _this.displayValue = options.displayValue; // Make sure the font is not bigger than the space between the guard bars if (options.fontSize > options.width * 10) { _this.fontSize = options.width * 10; } else { _this.fontSize = options.fontSize; } // Make the guard bars go down half the way of the text _this.guardHeight = options.height + _this.fontSize / 2 + options.textMargin; return _this; } _createClass(UPC, [{ key: "valid", value: function valid() { return this.data.search(/^[0-9]{12}$/) !== -1 && this.data[11] == checksum(this.data); } }, { key: "encode", value: function encode() { if (this.options.flat) { return this.flatEncoding(); } else { return this.guardedEncoding(); } } }, { key: "flatEncoding", value: function flatEncoding() { var result = ""; result += "101"; result += (0, _encoder2.default)(this.data.substr(0, 6), "LLLLLL"); result += "01010"; result += (0, _encoder2.default)(this.data.substr(6, 6), "RRRRRR"); result += "101"; return { data: result, text: this.text }; } }, { key: "guardedEncoding", value: function guardedEncoding() { var result = []; // Add the first digit if (this.displayValue) { result.push({ data: "00000000", text: this.text.substr(0, 1), options: { textAlign: "left", fontSize: this.fontSize } }); } // Add the guard bars result.push({ data: "101" + (0, _encoder2.default)(this.data[0], "L"), options: { height: this.guardHeight } }); // Add the left side result.push({ data: (0, _encoder2.default)(this.data.substr(1, 5), "LLLLL"), text: this.text.substr(1, 5), options: { fontSize: this.fontSize } }); // Add the middle bits result.push({ data: "01010", options: { height: this.guardHeight } }); // Add the right side result.push({ data: (0, _encoder2.default)(this.data.substr(6, 5), "RRRRR"), text: this.text.substr(6, 5), options: { fontSize: this.fontSize } }); // Add the end bits result.push({ data: (0, _encoder2.default)(this.data[11], "R") + "101", options: { height: this.guardHeight } }); // Add the last digit if (this.displayValue) { result.push({ data: "00000000", text: this.text.substr(11, 1), options: { textAlign: "right", fontSize: this.fontSize } }); } return result; } }]); return UPC; }(_Barcode3.default); // Calulate the checksum digit // https://en.wikipedia.org/wiki/International_Article_Number_(EAN)#Calculation_of_checksum_digit function checksum(number) { var result = 0; var i; for (i = 1; i < 11; i += 2) { result += parseInt(number[i]); } for (i = 0; i < 11; i += 2) { result += parseInt(number[i]) * 3; } return (10 - result % 10) % 10; } exports.default = UPC; /***/ }), /***/ "e8b5": /***/ (function(module, exports, __webpack_require__) { var classof = __webpack_require__("c6b6"); // `IsArray` abstract operation // https://tc39.es/ecma262/#sec-isarray // eslint-disable-next-line es/no-array-isarray -- safe module.exports = Array.isArray || function isArray(argument) { return classof(argument) == 'Array'; }; /***/ }), /***/ "e8c9": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _CODE2 = __webpack_require__("4b23"); var _CODE3 = _interopRequireDefault(_CODE2); var _constants = __webpack_require__("f08e"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var CODE128A = function (_CODE) { _inherits(CODE128A, _CODE); function CODE128A(string, options) { _classCallCheck(this, CODE128A); return _possibleConstructorReturn(this, (CODE128A.__proto__ || Object.getPrototypeOf(CODE128A)).call(this, _constants.A_START_CHAR + string, options)); } _createClass(CODE128A, [{ key: 'valid', value: function valid() { return new RegExp('^' + _constants.A_CHARS + '+$').test(this.data); } }]); return CODE128A; }(_CODE3.default); exports.default = CODE128A; /***/ }), /***/ "e95a": /***/ (function(module, exports, __webpack_require__) { var wellKnownSymbol = __webpack_require__("b622"); var Iterators = __webpack_require__("3f8c"); var ITERATOR = wellKnownSymbol('iterator'); var ArrayPrototype = Array.prototype; // check on default Array iterator module.exports = function (it) { return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it); }; /***/ }), /***/ "e9c4": /***/ (function(module, exports, __webpack_require__) { var $ = __webpack_require__("23e7"); var getBuiltIn = __webpack_require__("d066"); var apply = __webpack_require__("2ba4"); var call = __webpack_require__("c65b"); var uncurryThis = __webpack_require__("e330"); var fails = __webpack_require__("d039"); var isArray = __webpack_require__("e8b5"); var isCallable = __webpack_require__("1626"); var isObject = __webpack_require__("861d"); var isSymbol = __webpack_require__("d9b5"); var arraySlice = __webpack_require__("f36a"); var NATIVE_SYMBOL = __webpack_require__("04f8"); var $stringify = getBuiltIn('JSON', 'stringify'); var exec = uncurryThis(/./.exec); var charAt = uncurryThis(''.charAt); var charCodeAt = uncurryThis(''.charCodeAt); var replace = uncurryThis(''.replace); var numberToString = uncurryThis(1.0.toString); var tester = /[\uD800-\uDFFF]/g; var low = /^[\uD800-\uDBFF]$/; var hi = /^[\uDC00-\uDFFF]$/; var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails(function () { var symbol = getBuiltIn('Symbol')(); // MS Edge converts symbol values to JSON as {} return $stringify([symbol]) != '[null]' // WebKit converts symbol values to JSON as null || $stringify({ a: symbol }) != '{}' // V8 throws on boxed symbols || $stringify(Object(symbol)) != '{}'; }); // https://github.com/tc39/proposal-well-formed-stringify var ILL_FORMED_UNICODE = fails(function () { return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"' || $stringify('\uDEAD') !== '"\\udead"'; }); var stringifyWithSymbolsFix = function (it, replacer) { var args = arraySlice(arguments); var $replacer = replacer; if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined if (!isArray(replacer)) replacer = function (key, value) { if (isCallable($replacer)) value = call($replacer, this, key, value); if (!isSymbol(value)) return value; }; args[1] = replacer; return apply($stringify, null, args); }; var fixIllFormed = function (match, offset, string) { var prev = charAt(string, offset - 1); var next = charAt(string, offset + 1); if ((exec(low, match) && !exec(hi, next)) || (exec(hi, match) && !exec(low, prev))) { return '\\u' + numberToString(charCodeAt(match, 0), 16); } return match; }; if ($stringify) { // `JSON.stringify` method // https://tc39.es/ecma262/#sec-json.stringify $({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, { // eslint-disable-next-line no-unused-vars -- required for `.length` stringify: function stringify(it, replacer, space) { var args = arraySlice(arguments); var result = apply(WRONG_SYMBOLS_CONVERSION ? stringifyWithSymbolsFix : $stringify, null, args); return ILL_FORMED_UNICODE && typeof result == 'string' ? replace(result, tester, fixIllFormed) : result; } }); } /***/ }), /***/ "eac5": /***/ (function(module, exports) { /** Used for built-in method references. */ var objectProto = Object.prototype; /** * Checks if `value` is likely a prototype object. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`. */ function isPrototype(value) { var Ctor = value && value.constructor, proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto; return value === proto; } module.exports = isPrototype; /***/ }), /***/ "ec69": /***/ (function(module, exports, __webpack_require__) { var arrayLikeKeys = __webpack_require__("6fcd"), baseKeys = __webpack_require__("03dd"), isArrayLike = __webpack_require__("30c9"); /** * Creates an array of the own enumerable property names of `object`. * * **Note:** Non-object values are coerced to objects. See the * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) * for more details. * * @static * @since 0.1.0 * @memberOf _ * @category Object * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. * @example * * function Foo() { * this.a = 1; * this.b = 2; * } * * Foo.prototype.c = 3; * * _.keys(new Foo); * // => ['a', 'b'] (iteration order is not guaranteed) * * _.keys('hi'); * // => ['0', '1'] */ function keys(object) { return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); } module.exports = keys; /***/ }), /***/ "ec8c": /***/ (function(module, exports) { /** * This function is like * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) * except that it includes inherited enumerable properties. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function nativeKeysIn(object) { var result = []; if (object != null) { for (var key in Object(object)) { result.push(key); } } return result; } module.exports = nativeKeysIn; /***/ }), /***/ "ed27": /***/ (function(module) { module.exports = JSON.parse("{\"name\":\"hi-eap\",\"version\":\"1.2.107\",\"description\":\"A utils Library for hi-eap. Smart Client Platform\",\"main\":\"eap.umd.min.js\",\"homepage\":\"http://hieap.cn\",\"scripts\":{\"build:eap\":\"cross-env NODE_LIB=eap vue-cli-service build --target lib --name eap --dest hi-eap ./src/eap/index.js\"},\"dependencies\":{},\"devDependencies\":{},\"eslintIgnore\":[\"**/*.md\"]}"); /***/ }), /***/ "ed3f": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _CODE2 = __webpack_require__("4b23"); var _CODE3 = _interopRequireDefault(_CODE2); var _constants = __webpack_require__("f08e"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var CODE128C = function (_CODE) { _inherits(CODE128C, _CODE); function CODE128C(string, options) { _classCallCheck(this, CODE128C); return _possibleConstructorReturn(this, (CODE128C.__proto__ || Object.getPrototypeOf(CODE128C)).call(this, _constants.C_START_CHAR + string, options)); } _createClass(CODE128C, [{ key: 'valid', value: function valid() { return new RegExp('^' + _constants.C_CHARS + '+$').test(this.data); } }]); return CODE128C; }(_CODE3.default); exports.default = CODE128C; /***/ }), /***/ "edd0": /***/ (function(module, exports, __webpack_require__) { var makeBuiltIn = __webpack_require__("13d2"); var defineProperty = __webpack_require__("9bf2"); module.exports = function (target, name, descriptor) { if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true }); if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true }); return defineProperty.f(target, name, descriptor); }; /***/ }), /***/ "efb6": /***/ (function(module, exports, __webpack_require__) { var ListCache = __webpack_require__("5e2e"); /** * Removes all key-value entries from the stack. * * @private * @name clear * @memberOf Stack */ function stackClear() { this.__data__ = new ListCache; this.size = 0; } module.exports = stackClear; /***/ }), /***/ "f069": /***/ (function(module, exports, __webpack_require__) { "use strict"; var aCallable = __webpack_require__("59ed"); var $TypeError = TypeError; var PromiseCapability = function (C) { var resolve, reject; this.promise = new C(function ($$resolve, $$reject) { if (resolve !== undefined || reject !== undefined) throw $TypeError('Bad Promise constructor'); resolve = $$resolve; reject = $$reject; }); this.resolve = aCallable(resolve); this.reject = aCallable(reject); }; // `NewPromiseCapability` abstract operation // https://tc39.es/ecma262/#sec-newpromisecapability module.exports.f = function (C) { return new PromiseCapability(C); }; /***/ }), /***/ "f08e": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _SET_BY_CODE; function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } // constants for internal usage var SET_A = exports.SET_A = 0; var SET_B = exports.SET_B = 1; var SET_C = exports.SET_C = 2; // Special characters var SHIFT = exports.SHIFT = 98; var START_A = exports.START_A = 103; var START_B = exports.START_B = 104; var START_C = exports.START_C = 105; var MODULO = exports.MODULO = 103; var STOP = exports.STOP = 106; var FNC1 = exports.FNC1 = 207; // Get set by start code var 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 var SWAP = exports.SWAP = { 101: SET_A, 100: SET_B, 99: SET_C }; var A_START_CHAR = exports.A_START_CHAR = String.fromCharCode(208); // START_A + 105 var B_START_CHAR = exports.B_START_CHAR = String.fromCharCode(209); // START_B + 105 var C_START_CHAR = exports.C_START_CHAR = String.fromCharCode(210); // START_C + 105 // 128A (Code Set A) // ASCII characters 00 to 95 (0–9, A–Z and control codes), special characters, and FNC 1–4 var A_CHARS = exports.A_CHARS = "[\x00-\x5F\xC8-\xCF]"; // 128B (Code Set B) // ASCII characters 32 to 127 (0–9, A–Z, a–z), special characters, and FNC 1–4 var B_CHARS = exports.B_CHARS = "[\x20-\x7F\xC8-\xCF]"; // 128C (Code Set C) // 00–99 (encodes two digits with a single code point) and FNC1 var C_CHARS = exports.C_CHARS = "(\xCF*[0-9]{2}\xCF*)"; // CODE128 includes 107 symbols: // 103 data symbols, 3 start symbols (A, B and C), and 1 stop symbol (the last one) // Each symbol consist of three black bars (1) and three white spaces (0). var 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]; /***/ }), /***/ "f22b": /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__("23e7"); var call = __webpack_require__("c65b"); var newPromiseCapabilityModule = __webpack_require__("f069"); var FORCED_PROMISE_CONSTRUCTOR = __webpack_require__("4738").CONSTRUCTOR; // `Promise.reject` method // https://tc39.es/ecma262/#sec-promise.reject $({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, { reject: function reject(r) { var capability = newPromiseCapabilityModule.f(this); call(capability.reject, undefined, r); return capability.promise; } }); /***/ }), /***/ "f36a": /***/ (function(module, exports, __webpack_require__) { var uncurryThis = __webpack_require__("e330"); module.exports = uncurryThis([].slice); /***/ }), /***/ "f3c1": /***/ (function(module, exports) { /** Used to detect hot functions by number of calls within a span of milliseconds. */ var HOT_COUNT = 800, HOT_SPAN = 16; /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeNow = Date.now; /** * Creates a function that'll short out and invoke `identity` instead * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN` * milliseconds. * * @private * @param {Function} func The function to restrict. * @returns {Function} Returns the new shortable function. */ function shortOut(func) { var count = 0, lastCalled = 0; return function() { var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled); lastCalled = stamp; if (remaining > 0) { if (++count >= HOT_COUNT) { return arguments[0]; } } else { count = 0; } return func.apply(undefined, arguments); }; } module.exports = shortOut; /***/ }), /***/ "f4d6": /***/ (function(module, exports, __webpack_require__) { var isSymbol = __webpack_require__("ffd6"); /** Used as references for various `Number` constants. */ var INFINITY = 1 / 0; /** * Converts `value` to a string key if it's not a string or symbol. * * @private * @param {*} value The value to inspect. * @returns {string|symbol} Returns the key. */ function toKey(value) { if (typeof value == 'string' || isSymbol(value)) { return value; } var result = (value + ''); return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; } module.exports = toKey; /***/ }), /***/ "f5df": /***/ (function(module, exports, __webpack_require__) { var TO_STRING_TAG_SUPPORT = __webpack_require__("00ee"); var isCallable = __webpack_require__("1626"); var classofRaw = __webpack_require__("c6b6"); var wellKnownSymbol = __webpack_require__("b622"); var TO_STRING_TAG = wellKnownSymbol('toStringTag'); var $Object = Object; // ES3 wrong here var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments'; // fallback for IE11 Script Access Denied error var tryGet = function (it, key) { try { return it[key]; } catch (error) { /* empty */ } }; // getting tag from ES6+ `Object.prototype.toString` module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) { var O, tag, result; return it === undefined ? 'Undefined' : it === null ? 'Null' // @@toStringTag case : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag // builtinTag case : CORRECT_ARGUMENTS ? classofRaw(O) // ES3 arguments fallback : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result; }; /***/ }), /***/ "f608": /***/ (function(module, exports, __webpack_require__) { var isArray = __webpack_require__("6747"), isSymbol = __webpack_require__("ffd6"); /** Used to match property names within property paths. */ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/; /** * Checks if `value` is a property name and not a property path. * * @private * @param {*} value The value to check. * @param {Object} [object] The object to query keys on. * @returns {boolean} Returns `true` if `value` is a property name, else `false`. */ function isKey(value, object) { if (isArray(value)) { return false; } var type = typeof value; if (type == 'number' || type == 'symbol' || type == 'boolean' || value == null || isSymbol(value)) { return true; } return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || (object != null && value in Object(object)); } module.exports = isKey; /***/ }), /***/ "f6b4": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("c532"); function InterceptorManager() { this.handlers = []; } /** * Add a new interceptor to the stack * * @param {Function} fulfilled The function to handle `then` for a `Promise` * @param {Function} rejected The function to handle `reject` for a `Promise` * * @return {Number} An ID used to remove interceptor later */ InterceptorManager.prototype.use = function use(fulfilled, rejected) { this.handlers.push({ fulfilled: fulfilled, rejected: rejected }); return this.handlers.length - 1; }; /** * Remove an interceptor from the stack * * @param {Number} id The ID that was returned by `use` */ InterceptorManager.prototype.eject = function eject(id) { if (this.handlers[id]) { this.handlers[id] = null; } }; /** * Iterate over all the registered interceptors * * This method is particularly useful for skipping over any * interceptors that may have become `null` calling `eject`. * * @param {Function} fn The function to call for each interceptor */ InterceptorManager.prototype.forEach = function forEach(fn) { utils.forEach(this.handlers, function forEachHandler(h) { if (h !== null) { fn(h); } }); }; module.exports = InterceptorManager; /***/ }), /***/ "f772": /***/ (function(module, exports, __webpack_require__) { var shared = __webpack_require__("5692"); var uid = __webpack_require__("90e3"); var keys = shared('keys'); module.exports = function (key) { return keys[key] || (keys[key] = uid(key)); }; /***/ }), /***/ "f8af": /***/ (function(module, exports, __webpack_require__) { var Uint8Array = __webpack_require__("2474"); /** * Creates a clone of `arrayBuffer`. * * @private * @param {ArrayBuffer} arrayBuffer The array buffer to clone. * @returns {ArrayBuffer} Returns the cloned array buffer. */ function cloneArrayBuffer(arrayBuffer) { var result = new arrayBuffer.constructor(arrayBuffer.byteLength); new Uint8Array(result).set(new Uint8Array(arrayBuffer)); return result; } module.exports = cloneArrayBuffer; /***/ }), /***/ "f8c9": /***/ (function(module, exports, __webpack_require__) { var $ = __webpack_require__("23e7"); var global = __webpack_require__("da84"); var setToStringTag = __webpack_require__("d44e"); $({ global: true }, { Reflect: {} }); // Reflect[@@toStringTag] property // https://tc39.es/ecma262/#sec-reflect-@@tostringtag setToStringTag(global.Reflect, 'Reflect', true); /***/ }), /***/ "f909": /***/ (function(module, exports, __webpack_require__) { var Stack = __webpack_require__("7e64"), assignMergeValue = __webpack_require__("b760"), baseFor = __webpack_require__("72af"), baseMergeDeep = __webpack_require__("4f50"), isObject = __webpack_require__("1a8c"), keysIn = __webpack_require__("9934"), safeGet = __webpack_require__("8adb"); /** * The base implementation of `_.merge` without support for multiple sources. * * @private * @param {Object} object The destination object. * @param {Object} source The source object. * @param {number} srcIndex The index of `source`. * @param {Function} [customizer] The function to customize merged values. * @param {Object} [stack] Tracks traversed source values and their merged * counterparts. */ function baseMerge(object, source, srcIndex, customizer, stack) { if (object === source) { return; } baseFor(source, function(srcValue, key) { stack || (stack = new Stack); if (isObject(srcValue)) { baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack); } else { var newValue = customizer ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack) : undefined; if (newValue === undefined) { newValue = srcValue; } assignMergeValue(object, key, newValue); } }, keysIn); } module.exports = baseMerge; /***/ }), /***/ "fa21": /***/ (function(module, exports, __webpack_require__) { var baseCreate = __webpack_require__("7530"), getPrototype = __webpack_require__("2dcb"), isPrototype = __webpack_require__("eac5"); /** * Initializes an object clone. * * @private * @param {Object} object The object to clone. * @returns {Object} Returns the initialized clone. */ function initCloneObject(object) { return (typeof object.constructor == 'function' && !isPrototype(object)) ? baseCreate(getPrototype(object)) : {}; } module.exports = initCloneObject; /***/ }), /***/ "fb15": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXPORTS __webpack_require__.d(__webpack_exports__, "user", function() { return /* reexport */ user; }); __webpack_require__.d(__webpack_exports__, "ajax", function() { return /* reexport */ ajax; }); __webpack_require__.d(__webpack_exports__, "request", function() { return /* reexport */ eap_request; }); __webpack_require__.d(__webpack_exports__, "mergeConfig", function() { return /* reexport */ mergeConfig; }); __webpack_require__.d(__webpack_exports__, "lang", function() { return /* reexport */ eap_lang; }); __webpack_require__.d(__webpack_exports__, "utils", function() { return /* reexport */ eap_utils; }); __webpack_require__.d(__webpack_exports__, "page", function() { return /* reexport */ page; }); __webpack_require__.d(__webpack_exports__, "dataHelper", function() { return /* reexport */ eap_dataHelper; }); // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js // This file is imported into lib/wc client bundles. if (typeof window !== 'undefined') { var currentScript = window.document.currentScript if (true) { var getCurrentScript = __webpack_require__("8875") currentScript = getCurrentScript() // for backward compatibility, because previously we directly included the polyfill if (!('currentScript' in document)) { Object.defineProperty(document, 'currentScript', { get: getCurrentScript }) } } var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/) if (src) { __webpack_require__.p = src[1] // eslint-disable-line } } // Indicate to webpack that this file can be concatenated /* harmony default export */ var setPublicPath = (null); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } // EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.js var es_symbol = __webpack_require__("a4d3"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.description.js var es_symbol_description = __webpack_require__("e01a"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js var es_object_to_string = __webpack_require__("d3b7"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.iterator.js var es_symbol_iterator = __webpack_require__("d28b"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js var es_array_iterator = __webpack_require__("e260"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.iterator.js var es_string_iterator = __webpack_require__("3ca3"); // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.iterator.js var web_dom_collections_iterator = __webpack_require__("ddb0"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js var es_array_from = __webpack_require__("a630"); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); } // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.slice.js var es_array_slice = __webpack_require__("fb6a"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.to-string.js var es_regexp_to_string = __webpack_require__("25f0"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js var es_function_name = __webpack_require__("b0c0"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js var es_regexp_exec = __webpack_require__("ac1f"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.test.js var es_regexp_test = __webpack_require__("00b4"); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } // EXTERNAL MODULE: ./node_modules/core-js/modules/es.error.cause.js var es_error_cause = __webpack_require__("d9e2"); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js var es_object_keys = __webpack_require__("b64b"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js var es_array_filter = __webpack_require__("4de4"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.get-own-property-descriptor.js var es_object_get_own_property_descriptor = __webpack_require__("e439"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js var es_array_push = __webpack_require__("14d9"); // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js var web_dom_collections_for_each = __webpack_require__("159b"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.get-own-property-descriptors.js var es_object_get_own_property_descriptors = __webpack_require__("dbb4"); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } function _objectSpread2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.starts-with.js var es_string_starts_with = __webpack_require__("2ca0"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js var es_promise = __webpack_require__("e6cf"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js var es_array_concat = __webpack_require__("99af"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.ends-with.js var es_string_ends_with = __webpack_require__("8a79"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.search.js var es_string_search = __webpack_require__("841c"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js var es_string_replace = __webpack_require__("5319"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.join.js var es_array_join = __webpack_require__("a15b"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js var es_array_includes = __webpack_require__("caad"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js var es_string_includes = __webpack_require__("2532"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js var es_json_stringify = __webpack_require__("e9c4"); // EXTERNAL MODULE: ./node_modules/axios/index.js var axios = __webpack_require__("bc3a"); var axios_default = /*#__PURE__*/__webpack_require__.n(axios); // EXTERNAL MODULE: ./node_modules/js-cookie/dist/js.cookie.js var js_cookie = __webpack_require__("852e"); var js_cookie_default = /*#__PURE__*/__webpack_require__.n(js_cookie); // CONCATENATED MODULE: ./src/utils/token.js /* harmony default export */ var utils_token = ("eyJhbGciOiJIUzUxMiJ9.eyJ1aWQiOiJhZG1pbiIsImV4cGlyZXMiOjE3MTI2ODg3NDE2ODgsInBob25lIjoiMTMxOTk5OTg4ODgiLCJuYW1lIjoi57O757uf566h55CG5ZGYIiwidG9rZW4iOiJkYTMzMmE3Ny1jMWFjLTRhYjktYjM2ZS1jYzQwMjZmMGRhNDYifQ.yvoTyg9AyTHFKPqQCsx9Ybyn9kkS6E38K4XQw3KxITRqgkOeZIFJ9Ad4fgdE4sawJFqYHRtwlGdyMh6txZjRJw"); // CONCATENATED MODULE: ./src/eap/user/auth.js var TokenKey = 'EAP-Token'; function getToken() { var token = js_cookie_default.a.get(TokenKey); var env = Object({"NODE_ENV":"production","VUE_APP_BASE_API":"http://192.168.4.106:7777","BASE_URL":"/"}); if (!token && env.NODE_ENV == "development") { return utils_token; } return token; } function setToken(token) { return js_cookie_default.a.set(TokenKey, token); } function removeToken() { return js_cookie_default.a.remove(TokenKey); } /* harmony default export */ var auth = ({ getToken: getToken, setToken: setToken, removeToken: removeToken }); // EXTERNAL MODULE: external "ELEMENT" var external_ELEMENT_ = __webpack_require__("5f72"); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } // EXTERNAL MODULE: ./node_modules/regenerator-runtime/runtime.js var runtime = __webpack_require__("96cf"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js var es_object_assign = __webpack_require__("cca6"); // EXTERNAL MODULE: ./node_modules/core-js/modules/web.url.to-json.js var web_url_to_json = __webpack_require__("bf19"); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.split.js var es_string_split = __webpack_require__("1276"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js var es_array_splice = __webpack_require__("a434"); // CONCATENATED MODULE: ./src/base/dataHelper/src/queryHelper/types.js /* harmony default export */ var types = ({ "string": "dbString", "int": "dbInt", "float": "dbFloat", "double": "dbDouble", "text": "dbText ", "boolean": "dbBoolean ", "datetime": "dbDatetime ", "timestamp": "dbTimestamp " }); // CONCATENATED MODULE: ./src/base/dataHelper/src/queryHelper/keys.js /* harmony default export */ var keys = ({ "pageIndex": "pageNum", "pageSize": "pageSize", "body": "__body", "funcpath": "__funcpath", "returnTotal": "__returnCount", "zcQuery": "__zcQuery", "slaveEntities": "__slaveEntities", "modelFilePath": "modelFilePath", "slaveExport": "__slaveExport", "sheetStyle": "__sheetStyle", "sheetDatas": "__sheetDatas", "viewItemId": "viewItemId" }); // EXTERNAL MODULE: ./node_modules/lodash/has.js var has = __webpack_require__("3852"); var has_default = /*#__PURE__*/__webpack_require__.n(has); // EXTERNAL MODULE: ./node_modules/lodash/isDate.js var isDate = __webpack_require__("6220"); var isDate_default = /*#__PURE__*/__webpack_require__.n(isDate); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.constructor.js var es_regexp_constructor = __webpack_require__("4d63"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.dot-all.js var es_regexp_dot_all = __webpack_require__("c607"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.sticky.js var es_regexp_sticky = __webpack_require__("2c3e"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.trim.js var es_string_trim = __webpack_require__("498a"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.match.js var es_string_match = __webpack_require__("466d"); // CONCATENATED MODULE: ./src/hiSetting.js var hiSetting = { //项目名 projectName: 'eap5csxm/admin', pName: "eap5csxm", pUser: "admin", //接口返回消息弹窗模式,默认为消息提示(自动消失),msgBox为消息弹窗(需手动确定关闭) messageType: "msgBox", //请求对象 // request: eap.request,//eap对象还没有加载 // ajax: eap.ajax,//eap对象还没有加载 //部署目录 deployDir: "", //服务器域名 url: "http://192.168.4.105:7777", //编辑器脚本路径 editorResDir: "", //服务名称 serverName: "", //默认服务url serverUrl: "", //用户信息 userInfo: "/sys/user/detail", //登录页url loginUrl: "/login.html", //小登录窗口登录页url miniLoginUrl: "/login.html", //授权页url authorizeUrl: "/login.html#/authorize", //首页url mainPageUrl: "/main.html", //大数据保存webscoketUrl saveWsUrl: "/ws/progress/{id}", //数据保存url saveUrl: "/data/save", //'/data/save', //数据查询url queryUrl: "/data/query", //'/data/query', //excel导出心跳 exportExcelHeartbeatUrl: "/export/dataexcel/status", //excel导入模板地址 excelImportTplUrl: "/import/exceltplurl", //导入URL excelImportUrl: "/import/exceldata", //ws excel导入数据 wsExcelImportUrl: "/ws/import/exceldata", //后端产生单号 generateNumberUrl: "/data/number", //导出URL exportUrl: "/export/dataexcel", exportPathUrl: "/export/dataexcel/path", exportNewUrl: "/export/dataexcelnew", //页面初始化接口 pageInitUrl: "/data/page/permit", //数据策略url policyUrl: "/data/policy", //下推目标取url flowUrlByPush: "/sys/auth/query-flowux", //附件上传url upload: "/file/upload", //附件下载url download: "/file/download", //附件查看url review: "/file/static/preview", //附件上传url publicupload: "/file/public/upload", //附件下载url publicdownload: "/file/public/download", //附件查看url publicreview: "/file/public/preview", //流程信息url getFlowInfo: "/flow/open", getApprovalInfo: "/flow/getApprovalInfo", processFlow: "/flow/processFlow", umpireOrder: "/flow/umpireOrder", queryTask: "/flow/queryTask", withdrawtask: "/flow/withdrawtask", taskDiagram: "/flow/taskDiagram", ganttChart: "/flow/ganttChart", openOrdernumber: "/flow/openOrdernumber", //默认查询操作符 queryOperate: 'like', //数据返回超时时间 requestTimeout: 140 * 1000, //是否单点登录 isSingleLogin: false, //单点登录页 singleLoginUrl: "", //单点登出页 singleLogoutUrl: "" }; /* harmony default export */ var src_hiSetting = (hiSetting); // CONCATENATED MODULE: ./src/base/utils/src/date.js /** * showdoc * @catalog API/工具/Date * @title 日期基础类 * @className ClientDate * @modifier static * @method DateFunc * @demo */ var DATE = { timeSchemeKey: { "today": "today", "yesterday": "yesterday", "week": "week", "month": "month", "premonth": "premonth", "quarter": "quarter", "year": "year", "days7": "days7", "days28": "days28", "days84": "days84", "halfyear": "halfyear", "oneyear": "oneyear" }, /** * showdoc * @catalog API/工具/Date * @title 日期格式化 * @description 将条件转成字符结果 * @method format * @param date 必选 Date|String 需要格式化日期 * @param format 必选 String 格式化类型 * @return Date * @number 60 */ format: function format(date, _format) { if (!date) return ""; if (typeof date == "string") date = DATE.strToDate(date); _format = _format.replace(/HH/, "hh"); var o = { "M+": date.getMonth() + 1, // month "d+": date.getDate(), // day "D+": date.getDate(), // day "h+": date.getHours(), // hour "H+": date.getHours(), // hour "m+": date.getMinutes(), // minute "s+": date.getSeconds(), // second "q+": Math.floor((date.getMonth() + 3) / 3), // quarter "S": date.getMilliseconds() // millisecond }; if (/(y+)/.test(_format)) _format = _format.replace(RegExp.$1, (date.getFullYear() + "").substr(4 - RegExp.$1.length)); if (/(Y+)/.test(_format)) _format = _format.replace(RegExp.$1, (date.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(_format)) _format = _format.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ("00" + o[k]).substr(("" + o[k]).length)); return _format; }, /** * showdoc * @catalog API/工具/Date * @title 获取服务端时间 * @description 服务端当前时间 * @method getServerTimeNow * @return Date * @number 60 */ getServerTimeNow: function getServerTimeNow() { var serverTimeNow = ""; window.eap.ajax({ url: window.HIVUI_SETTING.getNowTimeUrl, method: "GET", //可不传,默认post async: false, //可不传,默认true success: function success(response) { serverTimeNow = response.dataPack; }, fail: function fail() {} }); return serverTimeNow; }, /** * showdoc * @catalog API/工具/Date * @title 毫秒差间隔 * @description dt1与dt2日期之间毫秒差间隔 * @method milliSecondsBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @return Int * @number 60 */ milliSecondsBetween: function milliSecondsBetween(dt1, dt2) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); return Math.abs(dt1.getTime() - dt2.getTime()); }, /** * showdoc * @catalog API/工具/Date * @title 秒差间隔 * @description dt1与dt2日期之间秒差间隔 * @method secondsBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @return Int * @number 60 */ secondsBetween: function secondsBetween(dt1, dt2) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); if (!dt1 || !dt2) return null; return Math.abs((dt1.getTime() - dt2.getTime()) / 1000); }, /** * showdoc * @catalog API/工具/Date * @title 分钟差间隔 * @description dt1与dt2日期之间分钟差间隔 * @method minutesBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @return Int * @number 60 */ // 分差 minutesBetween: function minutesBetween(dt1, dt2) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); if (!dt1 || !dt2) return null; return Math.floor(Math.abs((dt1.getTime() - dt2.getTime()) / (1000 * 60))); }, /** * showdoc * @catalog API/工具/Date * @title 时差间隔 * @description dt1与dt2日期之间时差间隔 * @method hoursBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @return Int * @number 60 */ // 小时差 hoursBetween: function hoursBetween(dt1, dt2) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); if (!dt1 || !dt2) return null; return Math.floor(Math.abs((dt1.getTime() - dt2.getTime()) / (1000 * 3600))); }, /** * showdoc * @catalog API/工具/Date * @title 天差间隔 * @description dt1与dt2日期之间天差间隔 * @method daysBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @param isAbs 选填 是否 返回绝对值 * @return Int * @number 60 */ daysBetween: function daysBetween(dt1, dt2, isAbs) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); if (!dt1 || !dt2) return null; dt1 = this.strFormatDate(this.format(dt1, "yyyy-MM-dd")); dt2 = this.strFormatDate(this.format(dt2, "yyyy-MM-dd")); if (isAbs) return Math.floor(Math.abs((dt1.getTime() - dt2.getTime()) / (1000 * 3600 * 24)));else return Math.floor((dt1.getTime() - dt2.getTime()) / (1000 * 3600 * 24)); }, /** * showdoc * @catalog API/工具/Date * @title 月差间隔 * @description dt1与dt2日期之间月差间隔 * @method daysBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @return Int * @number 60 */ monthsBetween: function monthsBetween(dt1, dt2) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); if (!dt1 || !dt2) return null; return Math.abs((dt1.getFullYear() - dt2.getFullYear()) * 12) + Math.abs(dt1.getMonth() - dt2.getMonth()); }, /** * showdoc * @catalog API/工具/Date * @title 年差间隔 * @description dt1与dt2日期之间年差间隔 * @method yearsBetween * @param dt1 必选 Date|String 日期时间1 * @param dt2 必选 Date|String 日期时间2 * @return Int * @number 60 */ yearsBetween: function yearsBetween(dt1, dt2) { if (typeof dt1 == "string") dt1 = DATE.strToDate(dt1); if (typeof dt2 == "string") dt2 = DATE.strToDate(dt2); if (!dt1 || !dt2) return null; return Math.abs(dt1.getFullYear() - dt2.getFullYear()); }, /** * showdoc * @catalog API/工具/Date * @title 获取中文星期 * @description 获取中文星期 * @method getWeekCn * @param dt 必选 Date|String 日期时间 * @return String * @number 60 */ getWeekCn: function getWeekCn(dt) { var dayNames = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"); if (typeof dt == "string") dt = DATE.strToDate(dt); return dayNames[dt.getDay()]; }, /** * showdoc * @catalog API/工具/Date * @title 获取数字星期 * @description 获取数字星期 * @url getWeek(dt) * @method getWeek(dt) * @param dt 必选 Date|String 日期时间 * @return String * @number 60 */ getWeek: function getWeek(dt) { if (typeof dt == "string") dt = DATE.strToDate(dt); return dt.getDay(); }, /** * showdoc * @catalog API/工具/Date * @title 是否时间日期 * @description 是否时间日期 * @method isDateTime * @param dateString 必选 Date|String 日期时间 * @return boolean * @number 60 */ isDateTime: function isDateTime(dateString) { if (dateString.trim() == "") return false; // 年月日时分秒正则表达式 var r = dateString.match(/^(\d{1,4})\-(\d{1,2})\-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})$/); var r1 = dateString.match(/^(\d{1,4})\-(\d{1,2})\-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2}).(\d{1,6})$/); var r2 = dateString.match(/^(\d{1,4})\-(\d{1,2})\-(\d{1,2}) (\d{1,2}):(\d{1,2})$/); if (r == null && r1 == null && r2 == null) { return false; } r = r || r1 || r2; if (r.length == 6) { // 时间格式为:2018-04-11 17:31 var d1 = new Date(r[1], r[2] - 1, r[3], r[4], r[5]); var _num = d1.getFullYear() == r[1] && d1.getMonth() + 1 == r[2] && d1.getDate() == r[3] && d1.getHours() == r[4] && d1.getMinutes() == r[5]; if (_num == 0) { return false; } else return true; } var d = new Date(r[1], r[2] - 1, r[3], r[4], r[5], r[6]); var num = d.getFullYear() == r[1] && d.getMonth() + 1 == r[2] && d.getDate() == r[3] && d.getHours() == r[4] && d.getMinutes() == r[5] && d.getSeconds() == r[6]; if (num == 0) { return false; } return num != 0; }, /** * showdoc * @catalog API/工具/Date * @title 是否日期类型 * @description 是否日期类型 * @method isDate * @param dateString 必选 Date|String 日期时间 * @return boolean * @number 60 */ isDate: function isDate(dateString) { if (dateString == "") return true; // 年月日正则表达式 var r = dateString.match(/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/); if (r == null) { return false; } var d = new Date(r[1], r[3] - 1, r[4]); var num = d.getFullYear() == r[1] && d.getMonth() + 1 == r[3] && d.getDate() == r[4]; if (num == 0) { return false; } return num != 0; }, dateof: function dateof(dt, type) { var result; if (!dt) return ""; if (typeof dt == "string") dt = DATE.strToDate(dt); switch (type) { case "y": result = dt.getFullYear(); break; case "m": result = dt.getMonth() + 1; break; case "min": result = dt.getMinutes(); break; case "time": result = DATE.format("yyyy-MM-dd hh:mm:ss"); break; case "date": result = DATE.format('yyyy-MM-dd'); break; case "weekCn": result = dt.week(); break; case "week": result = dt.getDay(); break; case "weekInYear": var first = new Date(dt.getFullYear(), 0, 1); var n = parseInt("1065432".charAt(first.getDay())); n = dt.getTime() - first.getTime() - n * 24 * 60 * 60 * 1000; n = Math.ceil(n / (7 * 24 * 60 * 60 * 1000)); result = first.getDay() != 1 ? n + 1 : n; break; default: result = ""; } return result; }, /** * showdoc * @catalog API/工具/Date * @title 字符转换指定日期类型 * @description 字符转换指定日期类型 * @method strFormatDate * @param strDate 必选 String 日期时间 * @param strFormat 必选 String 格式化类型 * @return Date * @number 60 */ strFormatDate: function strFormatDate(strDate, strFormat) { if (strDate == "" || strDate == null) return ""; var d = DATE.strToDate(strDate); if (!strFormat) return d; return d.format(strFormat); }, /** * showdoc * @catalog API/工具/Date * @title 字符转换日期类型 * @description 字符转换日期类型 * @method strToDate * @param dataStr 必选 String 日期时间 * @return Date * @number 60 */ strToDate: function strToDate(dataStr) { if (!dataStr) return ""; if (dataStr && dataStr.constructor === Date) { // 2010.08.02 // 已经是时间类型,就不过滤。 return dataStr; } if (typeof dataStr == "string") { if (dataStr.indexOf('.') > -1) // 2010.07.13 08335 cai dataStr = dataStr.split('.')[0]; dataStr = dataStr.replace(/-/g, "/"); } // 只有时间字符串 01521 if (dataStr.indexOf("-") == -1 && dataStr.indexOf("/") == -1 && dataStr.indexOf(".") == -1 && dataStr.indexOf(":") != -1) dataStr = DATE.dateOf(new Date()) + " " + dataStr; var arr = dataStr.split(/[- :]/); var arr1 = dataStr.split(/[/ :]/); if (dataStr != "" && arr.length == 1 && arr1.length == 1) { // 当:dataStr:1,返回:2010-01-01 // 00:00:00 console.log(dataStr + " Invalid Date"); return ""; } return new Date(Date.parse(dataStr)); }, /** * showdoc * @catalog API/工具/Date * @title 获得季度的第一天 * @description 获得季度的第一天 * @method getQuarterStartDay * @param dataStr 必选 Date 日期时间 * @return Date * @number 60 */ getQuarterStartDate: function getQuarterStartDate() { var now = new Date(); var QuarterStartDate = ''; if (now.getMonth() < 3) { QuarterStartDate = new Date(now.getFullYear(), 0, 1); return this.format(QuarterStartDate, "yyyy-MM-dd"); } else if (now.getMonth() > 2 && now.getMonth() < 6) { QuarterStartDate = new Date(now.getFullYear(), 3, 1); return this.format(QuarterStartDate, "yyyy-MM-dd"); } else if (now.getMonth() > 5 && now.getMonth() < 9) { QuarterStartDate = new Date(now.getFullYear(), 6, 1); return this.format(QuarterStartDate, "yyyy-MM-dd"); } else if (now.getMonth() > 8) { QuarterStartDate = new Date(now.getFullYear(), 9, 1); return this.format(QuarterStartDate, "yyyy-MM-dd"); } }, /** * showdoc * @catalog API/工具/Date * @title 获得本季度的结束日期 * @description 获得本季度的结束日期 * @method getQuarterEndDate * @return Date * @number 60 */ getQuarterEndDate: function getQuarterEndDate() { var now = new Date(); var QuarterStartDate = ''; if (now.getMonth() < 3) { QuarterStartDate = new Date(now.getFullYear(), 2, 31); return this.format(QuarterStartDate, "yyyy-MM-dd"); } else if (now.getMonth() > 2 && now.getMonth() < 6) { QuarterStartDate = new Date(now.getFullYear(), 6, 30); return this.format(QuarterStartDate, "yyyy-MM-dd"); } else if (now.getMonth() > 5 && now.getMonth() < 9) { QuarterStartDate = new Date(now.getFullYear(), 8, 30); return this.format(QuarterStartDate, "yyyy-MM-dd"); } else if (now.getMonth() > 8) { QuarterStartDate = new Date(now.getFullYear(), 11, 31); return this.format(QuarterStartDate, "yyyy-MM-dd"); } }, /** * showdoc * @catalog API/工具/Date * @title 获得本年度的开始日期 * @description 获得本年度的开始日期 * @method getYearStartDate * @return Date * @number 60 */ getYearStartDate: function getYearStartDate() { var now = new Date(); var yearFirstDay = new Date(now.getFullYear(), 0, 1); return this.format(yearFirstDay, "yyyy-MM-dd"); //return yearFirstDay.format("yyyy-MM-dd"); }, /** * showdoc * @catalog API/工具/Date * @title 获得本年度的结束日期 * @description 获得本年度的结束日期 * @method getYearEndDate * @return Date * @number 60 */ getYearEndDate: function getYearEndDate() { var now = new Date(); var yearLastDay = new Date(now.getFullYear(), 11, 31); return this.format(yearLastDay, "yyyy-MM-dd"); //return yearLastDay.format("yyyy-MM-dd"); }, /** * showdoc * @catalog API/工具/Date * @title 获得某月的天数 * @description 获得某月的天数 * @method getMonthDays * @param myMonth,myYear 必选 int 月份 * @param myMonth,myYear 必选 int 年份 * @return Int * @number 60 */ getMonthDays: function getMonthDays(myMonth, myYear) { if (myYear == undefined) { var now = new Date(); myYear = now.getFullYear(); } myMonth--; var d = new Date(myYear, myMonth, 1); d.setDate(d.getDate() + 32 - d.getDate()); return 32 - d.getDate(); }, /** * showdoc * @catalog API/工具/Date * @title 获得本周的开始日期 * @description 获得本周的开始日期 * @method getWeekStartDate * @return Date * @number 60 */ getWeekStartDate: function getWeekStartDate() { var now = new Date(); var weekStartDate = new Date(now.getFullYear(), now.getMonth(), now.getDate() - now.getDay()); return this.format(weekStartDate, "yyyy-MM-dd"); }, /** * showdoc * @catalog API/工具/Date * @title 获得本周的结束日期 * @description 获得本周的结束日期 * @method getWeekEndDate * @return Date * @number 60 */ getWeekEndDate: function getWeekEndDate() { var now = new Date(); var weekEndDate = new Date(now.getFullYear(), now.getMonth(), now.getDate() + (6 - now.getDay())); return this.format(weekEndDate, "yyyy-MM-dd"); //return weekEndDate.format("yyyy-MM-dd"); }, /** * showdoc * @catalog API/工具/Date * @title 获得本月的开始日期 * @description 获得本月的开始日期 * @method getMonthStartDate * @param dateVal 必选 Date|String 日期 * @return Date * @number 60 */ getMonthStartDate: function getMonthStartDate(dateVal) { var now = new Date(); if (dateVal && typeof dateVal == "string") now = DATE.strToDate(dateVal); var monthStartDate = new Date(now.getFullYear(), now.getMonth(), 1); return this.format(monthStartDate, "yyyy-MM-dd"); //monthStartDate.format("yyyy-MM-dd"); }, /** * showdoc * @catalog API/工具/Date * @title 获得本月的结束日期 * @description 获得本月的结束日期 * @method getMonthEndDate * @return Date * @number 60 */ getMonthEndDate: function getMonthEndDate(dateVal) { var now = new Date(); if (dateVal && typeof dateVal == "string") now = DATE.strToDate(dateVal); var year = now.getFullYear(); var month = now.getMonth(); var tempDate = new Date(new Date(year, month + 1, 1).getTime() - 1000 * 60 * 60 * 24); return this.format(tempDate, "yyyy-MM-dd"); //return tempDate.format("yyyy-MM-dd"); }, /** * showdoc * @catalog API/工具/Date * @title 获当前时间 * @description 获当前时间 * @method now * @param format 可选 String 格式化 * @return Date * @number 60 */ now: function now(format) { format = format || "yyyy-MM-dd hh:mm:ss"; return this.format(new Date(), format); }, currentNow: function currentNow() { return new Date(); }, /** * showdoc * @catalog API/工具/Date * @title 获时间方案 * @description 获时间方案 * @method TimeScheme * @param name 必选 String 方案名称 * @return Date * @number 60 */ TimeScheme: function TimeScheme(name, split) { split = split || "到"; var startTime = " 00:00:00".concat(split), endTime = " 23:59:59"; switch (name) { case "today": return this.format(this.strToDate(this.now()), "yyyy-MM-dd") + startTime + this.format(this.strToDate(this.now()), "yyyy-MM-dd") + endTime; case "yesterday": return this.format(this.dateAdd("d", -1, this.now()), "yyyy-MM-dd") + startTime + this.format(this.dateAdd("d", -1, this.now()), "yyyy-MM-dd") + endTime; case "week": return this.getWeekStartDate() + startTime + this.getWeekEndDate() + endTime; case "month": return this.getMonthStartDate() + startTime + this.getMonthEndDate() + endTime; case "quarter": return this.getQuarterStartDate() + startTime + this.getQuarterEndDate() + endTime; case "year": return this.getYearStartDate() + startTime + this.getYearEndDate() + endTime; case "days7": return this.format(this.dateAdd("d", -7, this.now()), "yyyy-MM-dd") + startTime + this.format(this.strToDate(this.now()), "yyyy-MM-dd") + endTime; case "days28": return this.format(this.dateAdd("d", -28, this.now()), "yyyy-MM-dd") + startTime + this.format(this.strToDate(this.now()), "yyyy-MM-dd") + endTime; case "days84": return this.format(this.dateAdd("d", -84, this.now()), "yyyy-MM-dd") + startTime + this.format(this.strToDate(this.now()), "yyyy-MM-dd") + endTime; case "halfyear": return this.format(this.dateAdd("d", -180, this.now()), "yyyy-MM-dd") + startTime + this.format(this.strToDate(this.now()), "yyyy-MM-dd") + endTime; case "oneyear": return this.format(this.dateAdd("d", -365, this.now()), "yyyy-MM-dd") + startTime + this.format(this.strToDate(this.now()), "yyyy-MM-dd") + endTime; } }, daysInMonth: function daysInMonth(year, month) { if (month == 1) { if (year % 4 == 0 && year % 100 != 0) return 29;else return 28; } else if (month <= 6 && month % 2 == 0 || (month = true && month % 2 == 1)) return 31;else return 30; }, /** * showdoc * @catalog API/工具/Date * @title 加减日期 * @description 在日期中添加或者减去指定的时间间隔天数 * @method dateAdd * @param datepart 必选 String 间隔类型:y:年,q:季度,m:月,d:天,h:小时,mi:分,s:秒 * @param number 必选 Int 间隔数,正数表示加,负数表示减 * @param dtDate 必选 Date * @return Date * @number 60 */ dateAdd: function dateAdd(datepart, number, dtDate) { if (typeof dtDate == "string") dtDate = DATE.strToDate(dtDate); var date = new Date(dtDate); datepart = (datepart || 'd').toLowerCase(); var diff = parseInt(number); var tempdate; switch (datepart) { case "y": // 年 tempdate = date.setYear(date.getFullYear() + diff); break; case "q": // 季度 tempdate = date.setMonth(date.getMonth() + diff * 3); break; case "m": // 月 var sYear = date.getFullYear(); var sMonth = date.getMonth(); var nextY = sYear; var nextM = sMonth; //如果当前月+要加上的月>11 这里之所以用11是因为 js的月份从0开始 if (sMonth + diff > 11) { nextY = sYear + 1; nextM = parseInt(sMonth + diff) - 12; } else { nextM = date.getMonth() + diff; } var daysInNextMonth = this.daysInMonth(nextY, nextM); var day = date.getDate(); if (day > daysInNextMonth) { day = daysInNextMonth; } //eDate = new Date(nextY, nextM, day); tempdate = new Date(nextY, nextM, day); break; case "d": // 天 tempdate = date.setDate(date.getDate() + diff); break; case "h": // 时 tempdate = date.setHours(date.getHours() + diff); break; case "mi": // 分 tempdate = date.setMinutes(date.getMinutes() + diff); break; case "s": // 秒 tempdate = date.setSeconds(date.getSeconds() + diff); break; default: tempdate = date.setDate(date.getDate() + diff); break; } return new Date(tempdate); } }; /* harmony default export */ var date = (DATE); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("a9e3"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.to-fixed.js var es_number_to_fixed = __webpack_require__("b680"); // CONCATENATED MODULE: ./src/base/utils/src/number.js /** * showdoc * @catalog API/工具/Number * @title 数值基础类 * @className NumberFunc * @modifier static * @method NumberFunc * @demo */ var NUM = { /** * showdoc * @catalog API/工具/Number * @title 除法函数,用来得到精确的除法结果 * @description 除法函数,用来得到精确的除法结果 * @url accDiv(arg1,arg2) * @method accDiv * @param arg1 必选 Number 被除数 * @param arg2 必选 Number 除数 * @return float * @number 60 */ accDiv: function accDiv(arg1, arg2) { var t1 = 0, t2 = 0, r1, r2; try { t1 = arg1.toString().split(".")[1].length; } catch (e) { t1 = 0; } try { t2 = arg2.toString().split(".")[1].length; } catch (e) { t2 = 0; } r1 = Number(arg1.toString().replace(".", "")); r2 = Number(arg2.toString().replace(".", "")); return r1 / r2 * Math.pow(10, t2 - t1); }, /** * showdoc * @catalog API/工具/Number * @title 乘法函数,用来得到精确的乘法结果 * @description 乘法函数,用来得到精确的乘法结果 * @url accDiv(arg1,arg2) * @method accDiv * @param arg1 必选 Number 乘数 * @param arg2 必选 Number 乘数 * @return float * @number 60 */ accMul: function accMul(arg1, arg2) { var m = 0, s1 = arg1.toString(), s2 = arg2.toString(); try { m += s1.split(".")[1].length; } catch (e) { m = 0; } try { m += s2.split(".")[1].length; } catch (e) { m += 0; } return Number(s1.replace(".", "")) * Number(s2.replace(".", "")) / Math.pow(10, m); }, /** * showdoc * @catalog API/工具/Number * @title 加法函数,用来得到精确的加法结果 * @description 加法函数,用来得到精确的加法结果 * @url accAdd(arg1,arg2) * @method accAdd * @param arg1 必选 Number 加数 * @param arg2 必选 Number 加数 * @return float * @number 60 */ accAdd: function accAdd(arg1, arg2) { var r1, r2, m; try { r1 = arg1.toString().split(".")[1].length; } catch (e) { r1 = 0; } try { r2 = arg2.toString().split(".")[1].length; } catch (e) { r2 = 0; } m = Math.pow(10, Math.max(r1, r2)); return (NUM.accMul(arg1, m) + NUM.accMul(arg2, m)) / m; }, toFixed: function toFixed(number, length) { var carry = 0; //存放进位标志 var num, multiple; //num为原浮点数放大multiple倍后的数,multiple为10的length次方 var str = number + ''; //将调用该方法的数字转为字符串 var dot = str.indexOf("."); //找到小数点的位置 if (str.substr(dot + length + 1, 1) >= 5) carry = 1; //找到要进行舍入的数的位置,手动判断是否大于等于5,满足条件进位标志置为1 multiple = Math.pow(10, length); //设置浮点数要扩大的倍数 num = Math.floor(number * multiple) + carry; //去掉舍入位后的所有数,然后加上我们的手动进位数 var result = num / multiple + ''; //将进位后的整数再缩小为原浮点数 /* * 处理进位后无小数 */ dot = result.indexOf("."); if (dot < 0) { result += '.'; dot = result.indexOf("."); } /* * 处理多次进位 */ var len = result.length - (dot + 1); if (len < length) { for (var i = 0; i < length - len; i++) { result += 0; } } return result; }, /** * showdoc * @catalog API/工具/Number * @title 中文数字格式化 * @description 中文数字格式化 * @url formatCn(n) * @method formatCn * @param n 必选 Number 数字 * @return string * @number 60 */ formatCn: function formatCn(n) { var fraction = ['角', '分']; var digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']; var unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']]; var head = n < 0 ? '欠' : ''; n = Math.abs(n); var s = ''; for (var i = 0; i < fraction.length; i++) { s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, ''); } s = s || '整'; n = Math.floor(n); for (var _i = 0; _i < unit[0].length && n > 0; _i++) { var p = ''; for (var j = 0; j < unit[1].length && n > 0; j++) { p = digit[n % 10] + unit[1][j] + p; n = Math.floor(n / 10); } s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][_i] + s; } return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整'); }, /** * showdoc * @catalog API/工具/Number * @title 数值格式化 * @description 数值格式化 * @url formatString(v,formatstring) * @method formatString * @param v 必选 Number 数字 * @param strign 必选 string 格式化 * @return string * @number 60 */ format: function format(v, formatString) { if (!formatString) { formatString = "000,0.00"; //return v; } if (formatString == "¥") { formatString = "¥000,0.00"; } if (isFinite(v)) { v = parseFloat(v); } if (formatString.indexOf('%') > -1) { v = v * 100; } v = !isNaN(v) ? v : NaN; if (isNaN(v)) { return ''; } var formatCleanRe = /[^\d\.]/g; var comma = ",", dec = '.', neg = v < 0, hasComma, psplit, fnum, cnum, parr, j, m, n, i; v = Math.abs(v); // if (formatString.substr(formatString.length - 2) == '/i') { // I18NFormatCleanRe = new RegExp('[^\\d\\' // + UtilFormat.decimalSeparator + ']', 'g'); // formatString = formatString.substr(0, formatString.length - 2); // hasComma = formatString.indexOf(comma) != -1; // psplit = formatString.replace(I18NFormatCleanRe, '').split(dec); // } else hasComma = formatString.indexOf(',') != -1; psplit = formatString.replace(formatCleanRe, '').split('.'); if (psplit.length > 2) { alert("对比格式无效"); // alert("瀵规瘮璧锋棤鏁堟牸寮忥紒"); // </debug> } else if (psplit.length > 1) { var precision = psplit[1].length || 0; var pow = Math.pow(10, precision); v = Number(Math.round(v * pow) / pow).toFixed(precision); } else { var _precision = psplit[0].length || 0; var _pow = Math.pow(10, _precision); v = Number(Math.round(v * _pow) / _pow).toFixed(0); } fnum = v.toString(); psplit = fnum.split('.'); if (hasComma) { cnum = psplit[0]; parr = []; j = cnum.length; m = Math.floor(j / 3); n = cnum.length % 3 || 3; for (i = 0; i < j; i += n) { if (i !== 0) { n = 3; } parr[parr.length] = cnum.substr(i, n); m -= 1; } fnum = parr.join(comma); if (psplit[1]) { fnum += dec + psplit[1]; } } else { if (psplit[1]) { fnum = psplit[0] + dec + psplit[1]; } } if (neg) { neg = fnum.replace(/[^1-9]/g, '') !== ''; } return (neg ? '-' : '') + formatString.replace(/[\d,?\.?]+/, fnum); } }; /* harmony default export */ var number = (NUM); // EXTERNAL MODULE: ./node_modules/js-md5/src/md5.js var src_md5 = __webpack_require__("8237"); var md5_default = /*#__PURE__*/__webpack_require__.n(src_md5); // CONCATENATED MODULE: ./src/base/utils/src/pyconst.js var pyconst_pinyin = { 'a': "\u554A\u963F\u9515", 'ai': "\u57C3\u6328\u54CE\u5509\u54C0\u7691\u764C\u853C\u77EE\u827E\u788D\u7231\u9698\u8BF6\u6371\u55F3\u55CC\u5AD2\u7477\u66A7\u7839\u953F\u972D", 'an': "\u978D\u6C28\u5B89\u4FFA\u6309\u6697\u5CB8\u80FA\u6848\u8C19\u57EF\u63DE\u72B4\u5EB5\u6849\u94F5\u9E4C\u9878\u9EEF", 'ang': "\u80AE\u6602\u76CE", 'ao': "\u51F9\u6556\u71AC\u7FF1\u8884\u50B2\u5965\u61CA\u6FB3\u5773\u62D7\u55F7\u5662\u5C99\u5ED2\u9068\u5AAA\u9A9C\u8071\u87AF\u93CA\u9CCC\u93D6", 'ba': "\u82AD\u634C\u6252\u53ED\u5427\u7B06\u516B\u75A4\u5DF4\u62D4\u8DCB\u9776\u628A\u8019\u575D\u9738\u7F62\u7238\u8307\u83DD\u8406\u636D\u5C9C\u705E\u6777\u94AF\u7C91\u9C85\u9B43", 'bai': "\u767D\u67CF\u767E\u6446\u4F70\u8D25\u62DC\u7A17\u859C\u63B0\u97B4", 'ban': "\u6591\u73ED\u642C\u6273\u822C\u9881\u677F\u7248\u626E\u62CC\u4F34\u74E3\u534A\u529E\u7ECA\u962A\u5742\u8C73\u94A3\u7622\u764D\u8228", 'bang': "\u90A6\u5E2E\u6886\u699C\u8180\u7ED1\u68D2\u78C5\u868C\u9551\u508D\u8C24\u84A1\u8783", 'bao': "\u82DE\u80DE\u5305\u8912\u96F9\u4FDD\u5821\u9971\u5B9D\u62B1\u62A5\u66B4\u8C79\u9C8D\u7206\u52F9\u8446\u5B80\u5B62\u7172\u9E28\u8913\u8DB5\u9F85", 'bo': "\u5265\u8584\u73BB\u83E0\u64AD\u62E8\u94B5\u6CE2\u535A\u52C3\u640F\u94C2\u7B94\u4F2F\u5E1B\u8236\u8116\u818A\u6E24\u6CCA\u9A73\u4EB3\u8543\u5575\u997D\u6A97\u64D8\u7934\u94B9\u9E41\u7C38\u8DDB", 'bei': "\u676F\u7891\u60B2\u5351\u5317\u8F88\u80CC\u8D1D\u94A1\u500D\u72C8\u5907\u60EB\u7119\u88AB\u5B5B\u9642\u90B6\u57E4\u84D3\u5457\u602B\u6096\u789A\u9E4E\u8919\u943E", 'ben': "\u5954\u82EF\u672C\u7B28\u755A\u574C\u951B", 'beng': "\u5D29\u7EF7\u752D\u6CF5\u8E66\u8FF8\u552A\u5623\u750F", 'bi': "\u903C\u9F3B\u6BD4\u9119\u7B14\u5F7C\u78A7\u84D6\u853D\u6BD5\u6BD9\u6BD6\u5E01\u5E87\u75F9\u95ED\u655D\u5F0A\u5FC5\u8F9F\u58C1\u81C2\u907F\u965B\u5315\u4EF3\u4FFE\u8298\u835C\u8378\u5421\u54D4\u72F4\u5EB3\u610E\u6ED7\u6FDE\u5F3C\u59A3\u5A62\u5B16\u74A7\u8D32\u7540\u94CB\u79D5\u88E8\u7B5A\u7B85\u7BE6\u822D\u895E\u8DF8\u9AC0", 'bian': "\u97AD\u8FB9\u7F16\u8D2C\u6241\u4FBF\u53D8\u535E\u8FA8\u8FA9\u8FAB\u904D\u533E\u5F01\u82C4\u5FED\u6C74\u7F0F\u7178\u782D\u78A5\u7A39\u7A86\u8759\u7B3E\u9CCA", 'biao': "\u6807\u5F6A\u8198\u8868\u5A4A\u9AA0\u98D1\u98D9\u98DA\u706C\u9556\u9573\u762D\u88F1\u9CD4", 'bie': "\u9CD6\u618B\u522B\u762A\u8E69\u9CD8", 'bin': "\u5F6C\u658C\u6FD2\u6EE8\u5BBE\u6448\u50A7\u6D5C\u7F24\u73A2\u6BA1\u8191\u9554\u9ACC\u9B13", 'bing': "\u5175\u51B0\u67C4\u4E19\u79C9\u997C\u70B3\u75C5\u5E76\u7980\u90B4\u6452\u7EE0\u678B\u69DF\u71F9", 'bu': "\u6355\u535C\u54FA\u8865\u57E0\u4E0D\u5E03\u6B65\u7C3F\u90E8\u6016\u62CA\u535F\u900B\u74FF\u6661\u949A\u91AD", 'ca': "\u64E6\u5693\u7924", 'cai': "\u731C\u88C1\u6750\u624D\u8D22\u776C\u8E29\u91C7\u5F69\u83DC\u8521", 'can': "\u9910\u53C2\u8695\u6B8B\u60ED\u60E8\u707F\u9A96\u74A8\u7CB2\u9EEA", 'cang': "\u82CD\u8231\u4ED3\u6CA7\u85CF\u4F27", 'cao': "\u64CD\u7CD9\u69FD\u66F9\u8349\u8279\u5608\u6F15\u87AC\u825A", 'ce': "\u5395\u7B56\u4FA7\u518C\u6D4B\u5202\u5E3B\u607B", 'ceng': "\u5C42\u8E6D\u564C", 'cha': "\u63D2\u53C9\u832C\u8336\u67E5\u78B4\u643D\u5BDF\u5C94\u5DEE\u8BE7\u7339\u9987\u6C4A\u59F9\u6748\u6942\u69CE\u6AAB\u9497\u9538\u9572\u8869", 'chai': "\u62C6\u67F4\u8C7A\u4FAA\u8308\u7625\u867F\u9F87", 'chan': "\u6400\u63BA\u8749\u998B\u8C17\u7F20\u94F2\u4EA7\u9610\u98A4\u5181\u8C04\u8C36\u8487\u5EDB\u5FCF\u6F7A\u6FB6\u5B71\u7FBC\u5A75\u5B17\u9AA3\u89C7\u7985\u9561\u88E3\u87FE\u8E94", 'chang': "\u660C\u7316\u573A\u5C1D\u5E38\u957F\u507F\u80A0\u5382\u655E\u7545\u5531\u5021\u4F25\u9B2F\u82CC\u83D6\u5F9C\u6005\u60DD\u960A\u5A3C\u5AE6\u6636\u6C05\u9CB3", 'chao': "\u8D85\u6284\u949E\u671D\u5632\u6F6E\u5DE2\u5435\u7092\u600A\u7EC9\u6641\u8016", 'che': "\u8F66\u626F\u64A4\u63A3\u5F7B\u6F88\u577C\u5C6E\u7817", 'chen': "\u90F4\u81E3\u8FB0\u5C18\u6668\u5FF1\u6C89\u9648\u8D81\u886C\u79F0\u8C0C\u62BB\u55D4\u5BB8\u741B\u6987\u809C\u80C2\u789C\u9F80", 'cheng': "\u6491\u57CE\u6A59\u6210\u5448\u4E58\u7A0B\u60E9\u6F84\u8BDA\u627F\u901E\u9A8B\u79E4\u57D5\u5D4A\u5FB5\u6D48\u67A8\u67FD\u6A18\u665F\u584D\u77A0\u94D6\u88CE\u86CF\u9172", 'chi': "\u5403\u75F4\u6301\u5319\u6C60\u8FDF\u5F1B\u9A70\u803B\u9F7F\u4F88\u5C3A\u8D64\u7FC5\u65A5\u70BD\u50BA\u5880\u82AA\u830C\u640B\u53F1\u54E7\u557B\u55E4\u5F73\u996C\u6CB2\u5AB8\u6555\u80DD\u7719\u7735\u9E31\u761B\u892B\u86A9\u87AD\u7B1E\u7BEA\u8C49\u8E05\u8E1F\u9B51", 'chong': "\u5145\u51B2\u866B\u5D07\u5BA0\u833A\u5FE1\u61A7\u94F3\u825F", 'chou': "\u62BD\u916C\u7574\u8E0C\u7A20\u6101\u7B79\u4EC7\u7EF8\u7785\u4E11\u4FE6\u5733\u5E31\u60C6\u6EB4\u59AF\u7633\u96E0\u9C8B", 'chu': "\u81ED\u521D\u51FA\u6A71\u53A8\u8E87\u9504\u96CF\u6EC1\u9664\u695A\u7840\u50A8\u77D7\u6410\u89E6\u5904\u4E8D\u520D\u61B7\u7ECC\u6775\u696E\u6A17\u870D\u8E70\u9EDC", 'chuan': "\u63E3\u5DDD\u7A7F\u693D\u4F20\u8239\u5598\u4E32\u63BE\u821B\u60F4\u9044\u5DDB\u6C1A\u948F\u9569\u8221", 'chuang': "\u75AE\u7A97\u5E62\u5E8A\u95EF\u521B\u6006", 'chui': "\u5439\u708A\u6376\u9524\u5782\u9672\u68F0\u69CC", 'chun': "\u6625\u693F\u9187\u5507\u6DF3\u7EAF\u8822\u4FC3\u83BC\u6C8C\u80AB\u6710\u9E51\u877D", 'chuo': "\u6233\u7EF0\u851F\u8FB6\u8F8D\u955E\u8E14\u9F8A", 'ci': "\u75B5\u8328\u78C1\u96CC\u8F9E\u6148\u74F7\u8BCD\u6B64\u523A\u8D50\u6B21\u8360\u5472\u5D6F\u9E5A\u8785\u7CCD\u8D91", 'cong': "\u806A\u8471\u56F1\u5306\u4ECE\u4E1B\u506C\u82C1\u6DD9\u9AA2\u742E\u7481\u679E", 'cu': "\u51D1\u7C97\u918B\u7C07\u731D\u6B82\u8E59", 'cuan': "\u8E7F\u7BE1\u7A9C\u6C46\u64BA\u6615\u7228", 'cui': "\u6467\u5D14\u50AC\u8106\u7601\u7CB9\u6DEC\u7FE0\u8403\u60B4\u7480\u69B1\u96B9", 'cun': "\u6751\u5B58\u5BF8\u78CB\u5FD6\u76B4", 'cuo': "\u64AE\u6413\u63AA\u632B\u9519\u539D\u811E\u9509\u77EC\u75E4\u9E7E\u8E49\u8E9C", 'da': "\u642D\u8FBE\u7B54\u7629\u6253\u5927\u8037\u54D2\u55D2\u601B\u59B2\u75B8\u8921\u7B2A\u977C\u9791", 'dai': "\u5446\u6B79\u50A3\u6234\u5E26\u6B86\u4EE3\u8D37\u888B\u5F85\u902E\u6020\u57ED\u7519\u5454\u5CB1\u8FE8\u902F\u9A80\u7ED0\u73B3\u9EDB", 'dan': "\u803D\u62C5\u4E39\u5355\u90F8\u63B8\u80C6\u65E6\u6C2E\u4F46\u60EE\u6DE1\u8BDE\u5F39\u86CB\u4EBB\u510B\u5369\u840F\u5556\u6FB9\u6A90\u6B9A\u8D55\u7708\u7605\u8043\u7BAA", 'dang': "\u5F53\u6321\u515A\u8361\u6863\u8C20\u51FC\u83EA\u5B95\u7800\u94DB\u88C6", 'dao': "\u5200\u6363\u8E48\u5012\u5C9B\u7977\u5BFC\u5230\u7A3B\u60BC\u9053\u76D7\u53E8\u5541\u5FC9\u6D2E\u6C18\u7118\u5FD1\u7E9B", 'de': "\u5FB7\u5F97\u7684\u951D", 'deng': "\u8E6C\u706F\u767B\u7B49\u77AA\u51F3\u9093\u5654\u5D9D\u6225\u78F4\u956B\u7C26", 'di': "\u5824\u4F4E\u6EF4\u8FEA\u654C\u7B1B\u72C4\u6DA4\u7FDF\u5AE1\u62B5\u5E95\u5730\u8482\u7B2C\u5E1D\u5F1F\u9012\u7F14\u6C10\u7C74\u8BCB\u8C1B\u90B8\u577B\u839C\u837B\u5600\u5A23\u67E2\u68E3\u89CC\u7825\u78B2\u7747\u955D\u7F9D\u9AB6", 'dian': "\u98A0\u6382\u6EC7\u7898\u70B9\u5178\u975B\u57AB\u7535\u4F43\u7538\u5E97\u60E6\u5960\u6DC0\u6BBF\u4E36\u963D\u576B\u57DD\u5DC5\u73B7\u765C\u766B\u7C1F\u8E2E", 'diao': "\u7889\u53FC\u96D5\u51CB\u5201\u6389\u540A\u9493\u8C03\u8F7A\u94DE\u8729\u7C9C\u8C82", 'die': "\u8DCC\u7239\u789F\u8776\u8FED\u8C0D\u53E0\u4F5A\u57A4\u581E\u63F2\u558B\u6E2B\u8F76\u7252\u74DE\u8936\u800B\u8E40\u9CBD\u9CCE", 'ding': "\u4E01\u76EF\u53EE\u9489\u9876\u9F0E\u952D\u5B9A\u8BA2\u4E22\u4EC3\u5576\u738E\u815A\u7887\u753A\u94E4\u7594\u8035\u914A", 'dong': "\u4E1C\u51AC\u8463\u61C2\u52A8\u680B\u4F97\u606B\u51BB\u6D1E\u578C\u549A\u5CBD\u5CD2\u5902\u6C21\u80E8\u80F4\u7850\u9E2B", 'dou': "\u515C\u6296\u6597\u9661\u8C46\u9017\u75D8\u8538\u94AD\u7AA6\u7AAC\u86AA\u7BFC\u9161", 'du': "\u90FD\u7763\u6BD2\u728A\u72EC\u8BFB\u5835\u7779\u8D4C\u675C\u9540\u809A\u5EA6\u6E21\u5992\u828F\u561F\u6E0E\u691F\u6A50\u724D\u8839\u7B03\u9AD1\u9EE9", 'duan': "\u7AEF\u77ED\u953B\u6BB5\u65AD\u7F0E\u5F56\u6934\u7145\u7C16", 'dui': "\u5806\u5151\u961F\u5BF9\u603C\u619D\u7893", 'dun': "\u58A9\u5428\u8E72\u6566\u987F\u56E4\u949D\u76FE\u9041\u7096\u7818\u7905\u76F9\u9566\u8DB8", 'duo': "\u6387\u54C6\u591A\u593A\u579B\u8EB2\u6735\u8DFA\u8235\u5241\u60F0\u5815\u5484\u54DA\u7F0D\u67C1\u94CE\u88F0\u8E31", 'e': "\u86FE\u5CE8\u9E45\u4FC4\u989D\u8BB9\u5A25\u6076\u5384\u627C\u904F\u9102\u997F\u5669\u8C14\u57A9\u57AD\u82CA\u83AA\u843C\u5443\u6115\u5C59\u5A40\u8F6D\u66F7\u816D\u786A\u9507\u9537\u9E57\u989A\u9CC4", 'en': "\u6069\u84BD\u6441\u5514\u55EF", 'er': "\u800C\u513F\u8033\u5C14\u9975\u6D31\u4E8C\u8D30\u8FE9\u73E5\u94D2\u9E38\u9C95", 'fa': "\u53D1\u7F5A\u7B4F\u4F10\u4E4F\u9600\u6CD5\u73D0\u57A1\u781D", 'fan': "\u85E9\u5E06\u756A\u7FFB\u6A0A\u77FE\u9492\u7E41\u51E1\u70E6\u53CD\u8FD4\u8303\u8D29\u72AF\u996D\u6CDB\u8629\u5E61\u72AD\u68B5\u6535\u71D4\u7548\u8E6F", 'fang': "\u574A\u82B3\u65B9\u80AA\u623F\u9632\u59A8\u4EFF\u8BBF\u7EBA\u653E\u531A\u90A1\u5F77\u94AB\u822B\u9C82", 'fei': "\u83F2\u975E\u5561\u98DE\u80A5\u532A\u8BFD\u5420\u80BA\u5E9F\u6CB8\u8D39\u82BE\u72D2\u60B1\u6DDD\u5983\u7ECB\u7EEF\u69A7\u8153\u6590\u6249\u7953\u7829\u9544\u75F1\u871A\u7BDA\u7FE1\u970F\u9CB1", 'fen': "\u82AC\u915A\u5429\u6C1B\u5206\u7EB7\u575F\u711A\u6C7E\u7C89\u594B\u4EFD\u5FFF\u6124\u7CAA\u507E\u7035\u68FC\u610D\u9CBC\u9F22", 'feng': "\u4E30\u5C01\u67AB\u8702\u5CF0\u950B\u98CE\u75AF\u70FD\u9022\u51AF\u7F1D\u8BBD\u5949\u51E4\u4FF8\u9146\u8451\u6CA3\u781C", 'fu': "\u4F5B\u5426\u592B\u6577\u80A4\u5B75\u6276\u62C2\u8F90\u5E45\u6C1F\u7B26\u4F0F\u4FD8\u670D\u6D6E\u6DAA\u798F\u88B1\u5F17\u752B\u629A\u8F85\u4FEF\u91DC\u65A7\u812F\u8151\u5E9C\u8150\u8D74\u526F\u8986\u8D4B\u590D\u5085\u4ED8\u961C\u7236\u8179\u8D1F\u5BCC\u8BA3\u9644\u5987\u7F1A\u5490\u5310\u51EB\u90DB\u8299\u82FB\u832F\u83A9\u83D4\u544B\u5E5E\u6ECF\u8274\u5B5A\u9A78\u7EC2\u6874\u8D59\u9EFB\u9EFC\u7F58\u7A03\u99A5\u864D\u86A8\u8709\u8760\u876E\u9EB8\u8DBA\u8DD7\u9CC6", 'ga': "\u5676\u560E\u86E4\u5C2C\u5477\u5C15\u5C1C\u65EE\u9486", 'gai': "\u8BE5\u6539\u6982\u9499\u76D6\u6E89\u4E10\u9654\u5793\u6224\u8D45\u80F2", 'gan': "\u5E72\u7518\u6746\u67D1\u7AFF\u809D\u8D76\u611F\u79C6\u6562\u8D63\u5769\u82F7\u5C34\u64C0\u6CD4\u6DE6\u6F89\u7EC0\u6A44\u65F0\u77F8\u75B3\u9150", 'gang': "\u5188\u521A\u94A2\u7F38\u809B\u7EB2\u5C97\u6E2F\u6206\u7F61\u9883\u7B7B", 'gong': "\u6760\u5DE5\u653B\u529F\u606D\u9F9A\u4F9B\u8EAC\u516C\u5BAB\u5F13\u5DE9\u6C5E\u62F1\u8D21\u5171\u857B\u5EFE\u54A3\u73D9\u80B1\u86A3\u86E9\u89E5", 'gao': "\u7BD9\u768B\u9AD8\u818F\u7F94\u7CD5\u641E\u9550\u7A3F\u544A\u777E\u8BF0\u90DC\u84BF\u85C1\u7F1F\u69D4\u69C1\u6772\u9506", 'ge': "\u54E5\u6B4C\u6401\u6208\u9E3D\u80F3\u7599\u5272\u9769\u845B\u683C\u9601\u9694\u94EC\u4E2A\u5404\u9B32\u4EE1\u54FF\u5865\u55DD\u7EA5\u643F\u8188\u784C\u94EA\u9549\u88BC\u988C\u867C\u8238\u9ABC\u9AC2", 'gei': "\u7ED9", 'gen': "\u6839\u8DDF\u4E98\u831B\u54CF\u826E", 'geng': "\u8015\u66F4\u5E9A\u7FB9\u57C2\u803F\u6897\u54FD\u8D53\u9CA0", 'gou': "\u94A9\u52FE\u6C9F\u82DF\u72D7\u57A2\u6784\u8D2D\u591F\u4F5D\u8BDF\u5CA3\u9058\u5ABE\u7F11\u89CF\u5F40\u9E32\u7B31\u7BDD\u97B2", 'gu': "\u8F9C\u83C7\u5495\u7B8D\u4F30\u6CBD\u5B64\u59D1\u9F13\u53E4\u86CA\u9AA8\u8C37\u80A1\u6545\u987E\u56FA\u96C7\u560F\u8BC2\u83F0\u54CC\u5D2E\u6C69\u688F\u8F71\u726F\u727F\u80CD\u81CC\u6BC2\u77BD\u7F5F\u94B4\u9522\u74E0\u9E2A\u9E44\u75FC\u86C4\u9164\u89DA\u9CB4\u9AB0\u9E58", 'gua': "\u522E\u74DC\u5250\u5BE1\u6302\u8902\u5366\u8BD6\u5471\u681D\u9E39", 'guai': "\u4E56\u62D0\u602A\u54D9", 'guan': "\u68FA\u5173\u5B98\u51A0\u89C2\u7BA1\u9986\u7F50\u60EF\u704C\u8D2F\u500C\u839E\u63BC\u6DAB\u76E5\u9E73\u9CCF", 'guang': "\u5149\u5E7F\u901B\u72B7\u6844\u80F1\u7592", 'gui': "\u7470\u89C4\u572D\u7845\u5F52\u9F9F\u95FA\u8F68\u9B3C\u8BE1\u7678\u6842\u67DC\u8DEA\u8D35\u523D\u5326\u523F\u5E8B\u5B84\u59AB\u6867\u7085\u6677\u7688\u7C0B\u9C91\u9CDC", 'gun': "\u8F8A\u6EDA\u68CD\u4E28\u886E\u7EF2\u78D9\u9CA7", 'guo': "\u9505\u90ED\u56FD\u679C\u88F9\u8FC7\u9998\u8803\u57DA\u63B4\u5459\u56D7\u5E3C\u5D1E\u7313\u6901\u8662\u951E\u8052\u872E\u873E\u8748", 'ha': "\u54C8", 'hai': "\u9AB8\u5B69\u6D77\u6C26\u4EA5\u5BB3\u9A87\u54B4\u55E8\u988F\u91A2", 'han': "\u9163\u61A8\u90AF\u97E9\u542B\u6DB5\u5BD2\u51FD\u558A\u7F55\u7FF0\u64BC\u634D\u65F1\u61BE\u608D\u710A\u6C57\u6C49\u9097\u83E1\u6496\u961A\u701A\u6657\u7113\u9894\u86B6\u9F3E", 'hen': "\u592F\u75D5\u5F88\u72E0\u6068", 'hang': "\u676D\u822A\u6C86\u7ED7\u73E9\u6841", 'hao': "\u58D5\u568E\u8C6A\u6BEB\u90DD\u597D\u8017\u53F7\u6D69\u8585\u55E5\u5686\u6FE0\u704F\u660A\u7693\u98A2\u869D", 'he': "\u5475\u559D\u8377\u83CF\u6838\u79BE\u548C\u4F55\u5408\u76D2\u8C89\u9602\u6CB3\u6DB8\u8D6B\u8910\u9E64\u8D3A\u8BC3\u52BE\u58D1\u85FF\u55D1\u55EC\u9616\u76CD\u86B5\u7FEE", 'hei': "\u563F\u9ED1", 'heng': "\u54FC\u4EA8\u6A2A\u8861\u6052\u8A07\u8605", 'hong': "\u8F70\u54C4\u70D8\u8679\u9E3F\u6D2A\u5B8F\u5F18\u7EA2\u9EC9\u8BA7\u836D\u85A8\u95F3\u6CD3", 'hou': "\u5589\u4FAF\u7334\u543C\u539A\u5019\u540E\u5820\u5F8C\u9005\u760A\u7BCC\u7CC7\u9C8E\u9ABA", 'hu': "\u547C\u4E4E\u5FFD\u745A\u58F6\u846B\u80E1\u8774\u72D0\u7CCA\u6E56\u5F27\u864E\u552C\u62A4\u4E92\u6CAA\u6237\u51B1\u553F\u56EB\u5CB5\u7322\u6019\u60DA\u6D52\u6EF9\u7425\u69F2\u8F77\u89F3\u70C0\u7173\u623D\u6248\u795C\u9E55\u9E71\u7B0F\u9190\u659B", 'hua': "\u82B1\u54D7\u534E\u733E\u6ED1\u753B\u5212\u5316\u8BDD\u5290\u6D4D\u9A85\u6866\u94E7\u7A1E", 'huai': "\u69D0\u5F8A\u6000\u6DEE\u574F\u8FD8\u8E1D", 'huan': "\u6B22\u73AF\u6853\u7F13\u6362\u60A3\u5524\u75EA\u8C62\u7115\u6DA3\u5BA6\u5E7B\u90C7\u5942\u57B8\u64D0\u571C\u6D39\u6D63\u6F36\u5BF0\u902D\u7F33\u953E\u9CA9\u9B1F", 'huang': "\u8352\u614C\u9EC4\u78FA\u8757\u7C27\u7687\u51F0\u60F6\u714C\u6643\u5E4C\u604D\u8C0E\u968D\u5FA8\u6E5F\u6F62\u9051\u749C\u8093\u7640\u87E5\u7BC1\u9CC7", 'hui': "\u7070\u6325\u8F89\u5FBD\u6062\u86D4\u56DE\u6BC1\u6094\u6167\u5349\u60E0\u6666\u8D3F\u79FD\u4F1A\u70E9\u6C47\u8BB3\u8BF2\u7ED8\u8BD9\u8334\u835F\u8559\u54D5\u5599\u96B3\u6D04\u5F57\u7F0B\u73F2\u6656\u605A\u867A\u87EA\u9EBE", 'hun': "\u8364\u660F\u5A5A\u9B42\u6D51\u6DF7\u8BE8\u9984\u960D\u6EB7\u7F17", 'huo': "\u8C41\u6D3B\u4F19\u706B\u83B7\u6216\u60D1\u970D\u8D27\u7978\u6509\u56AF\u5925\u94AC\u952A\u956C\u8020\u8816", 'ji': "\u51FB\u573E\u57FA\u673A\u7578\u7A3D\u79EF\u7B95\u808C\u9965\u8FF9\u6FC0\u8BA5\u9E21\u59EC\u7EE9\u7F09\u5409\u6781\u68D8\u8F91\u7C4D\u96C6\u53CA\u6025\u75BE\u6C72\u5373\u5AC9\u7EA7\u6324\u51E0\u810A\u5DF1\u84DF\u6280\u5180\u5B63\u4F0E\u796D\u5242\u60B8\u6D4E\u5BC4\u5BC2\u8BA1\u8BB0\u65E2\u5FCC\u9645\u5993\u7EE7\u7EAA\u5C45\u4E0C\u4E69\u525E\u4F76\u4F74\u8114\u58BC\u82A8\u82B0\u8401\u84BA\u857A\u638E\u53FD\u54AD\u54DC\u5527\u5C8C\u5D74\u6D0E\u5F50\u5C50\u9AA5\u757F\u7391\u696B\u6B9B\u621F\u6222\u8D4D\u89CA\u7284\u9F51\u77F6\u7F81\u5D47\u7A37\u7620\u7635\u866E\u7B08\u7B04\u66A8\u8DFB\u8DFD\u9701\u9C9A\u9CAB\u9AFB\u9E82", 'jia': "\u5609\u67B7\u5939\u4F73\u5BB6\u52A0\u835A\u988A\u8D3E\u7532\u94BE\u5047\u7A3C\u4EF7\u67B6\u9A7E\u5AC1\u4F3D\u90CF\u62EE\u5CAC\u6D43\u8FE6\u73C8\u621B\u80DB\u605D\u94D7\u9553\u75C2\u86F1\u7B33\u8888\u8DCF", 'jian': "\u6B7C\u76D1\u575A\u5C16\u7B3A\u95F4\u714E\u517C\u80A9\u8270\u5978\u7F04\u8327\u68C0\u67EC\u78B1\u7877\u62E3\u6361\u7B80\u4FED\u526A\u51CF\u8350\u69DB\u9274\u8DF5\u8D31\u89C1\u952E\u7BAD\u4EF6\u5065\u8230\u5251\u996F\u6E10\u6E85\u6DA7\u5EFA\u50ED\u8C0F\u8C2B\u83C5\u84B9\u641B\u56DD\u6E54\u8E47\u8B07\u7F23\u67A7\u67D9\u6957\u620B\u622C\u726E\u728D\u6BFD\u8171\u7751\u950F\u9E63\u88E5\u7B15\u7BB4\u7FE6\u8DBC\u8E3A\u9CA3\u97AF", 'jiang': "\u50F5\u59DC\u5C06\u6D46\u6C5F\u7586\u848B\u6868\u5956\u8BB2\u5320\u9171\u964D\u8333\u6D1A\u7EDB\u7F30\u729F\u7913\u8029\u7CE8\u8C47", 'jiao': "\u8549\u6912\u7901\u7126\u80F6\u4EA4\u90CA\u6D47\u9A84\u5A07\u56BC\u6405\u94F0\u77EB\u4FA5\u811A\u72E1\u89D2\u997A\u7F34\u7EDE\u527F\u6559\u9175\u8F7F\u8F83\u53EB\u4F7C\u50EC\u832D\u6322\u564D\u5CE4\u5FBC\u59E3\u7E9F\u656B\u768E\u9E6A\u86DF\u91AE\u8DE4\u9C9B", 'jie': "\u7A96\u63ED\u63A5\u7686\u79F8\u8857\u9636\u622A\u52AB\u8282\u6854\u6770\u6377\u776B\u7AED\u6D01\u7ED3\u89E3\u59D0\u6212\u85C9\u82A5\u754C\u501F\u4ECB\u75A5\u8BEB\u5C4A\u5048\u8BA6\u8BD8\u5588\u55DF\u736C\u5A55\u5B51\u6840\u7352\u78A3\u9534\u7596\u88B7\u9889\u86A7\u7FAF\u9C92\u9AB1\u9AEB", 'jin': "\u5DFE\u7B4B\u65A4\u91D1\u4ECA\u6D25\u895F\u7D27\u9526\u4EC5\u8C28\u8FDB\u9773\u664B\u7981\u8FD1\u70EC\u6D78\u5C3D\u537A\u8369\u5807\u5664\u9991\u5ED1\u5997\u7F19\u747E\u69FF\u8D46\u89D0\u9485\u9513\u887F\u77DC", 'jing': "\u52B2\u8346\u5162\u830E\u775B\u6676\u9CB8\u4EAC\u60CA\u7CBE\u7CB3\u7ECF\u4E95\u8B66\u666F\u9888\u9759\u5883\u656C\u955C\u5F84\u75C9\u9756\u7ADF\u7ADE\u51C0\u522D\u5106\u9631\u83C1\u734D\u61AC\u6CFE\u8FF3\u5F2A\u5A67\u80BC\u80EB\u8148\u65CC", 'jiong': "\u70AF\u7A98\u5182\u8FE5\u6243", 'jiu': "\u63EA\u7A76\u7EA0\u7396\u97ED\u4E45\u7078\u4E5D\u9152\u53A9\u6551\u65E7\u81FC\u8205\u548E\u5C31\u759A\u50E6\u557E\u9604\u67E9\u6855\u9E6B\u8D73\u9B0F", 'ju': "\u97A0\u62D8\u72D9\u75BD\u9A79\u83CA\u5C40\u5480\u77E9\u4E3E\u6CAE\u805A\u62D2\u636E\u5DE8\u5177\u8DDD\u8E1E\u952F\u4FF1\u53E5\u60E7\u70AC\u5267\u5028\u8BB5\u82E3\u82F4\u8392\u63AC\u907D\u5C66\u741A\u67B8\u6910\u6998\u6989\u6A58\u728B\u98D3\u949C\u9514\u7AAD\u88FE\u8D84\u91B5\u8E3D\u9F83\u96CE\u97AB", 'juan': "\u6350\u9E43\u5A1F\u5026\u7737\u5377\u7EE2\u9104\u72F7\u6D93\u684A\u8832\u9529\u954C\u96BD", 'jue': "\u6485\u652B\u6289\u6398\u5014\u7235\u89C9\u51B3\u8BC0\u7EDD\u53A5\u5282\u8C32\u77CD\u8568\u5658\u5D1B\u7357\u5B53\u73CF\u6877\u6A5B\u721D\u9562\u8E76\u89D6", 'jun': "\u5747\u83CC\u94A7\u519B\u541B\u5CFB\u4FCA\u7AE3\u6D5A\u90E1\u9A8F\u6343\u72FB\u76B2\u7B60\u9E87", 'ka': "\u5580\u5496\u5361\u4F67\u5494\u80E9", 'ke': "\u54AF\u5777\u82DB\u67EF\u68F5\u78D5\u9897\u79D1\u58F3\u54B3\u53EF\u6E34\u514B\u523B\u5BA2\u8BFE\u5CA2\u606A\u6E98\u9A92\u7F02\u73C2\u8F72\u6C2A\u778C\u94B6\u75B4\u7AA0\u874C\u9AC1", 'kai': "\u5F00\u63E9\u6977\u51EF\u6168\u5240\u57B2\u8488\u5FFE\u607A\u94E0\u950E", 'kan': "\u520A\u582A\u52D8\u574E\u780D\u770B\u4F83\u51F5\u83B0\u83B6\u6221\u9F9B\u77B0", 'kang': "\u5EB7\u6177\u7CE0\u625B\u6297\u4EA2\u7095\u5751\u4F09\u95F6\u94AA", 'kao': "\u8003\u62F7\u70E4\u9760\u5C3B\u6832\u7292\u94D0", 'ken': "\u80AF\u5543\u57A6\u6073\u57A0\u88C9\u9880", 'keng': "\u542D\u5FD0\u94FF", 'kong': "\u7A7A\u6050\u5B54\u63A7\u5025\u5D06\u7B9C", 'kou': "\u62A0\u53E3\u6263\u5BC7\u82A4\u853B\u53E9\u770D\u7B58", 'ku': "\u67AF\u54ED\u7A9F\u82E6\u9177\u5E93\u88E4\u5233\u5800\u55BE\u7ED4\u9AB7", 'kua': "\u5938\u57AE\u630E\u8DE8\u80EF\u4F89", 'kuai': "\u5757\u7B77\u4FA9\u5FEB\u84AF\u90D0\u8489\u72EF\u810D", 'kuan': "\u5BBD\u6B3E\u9ACB", 'kuang': "\u5321\u7B50\u72C2\u6846\u77FF\u7736\u65F7\u51B5\u8BD3\u8BF3\u909D\u5739\u593C\u54D0\u7EA9\u8D36", 'kui': "\u4E8F\u76D4\u5CBF\u7AA5\u8475\u594E\u9B41\u5080\u9988\u6127\u6E83\u9997\u532E\u5914\u9697\u63C6\u55B9\u559F\u609D\u6126\u9615\u9035\u668C\u777D\u8069\u8770\u7BD1\u81FE\u8DEC", 'kun': "\u5764\u6606\u6346\u56F0\u6083\u9603\u7428\u951F\u918C\u9CB2\u9AE1", 'kuo': "\u62EC\u6269\u5ED3\u9614\u86DE", 'la': "\u5783\u62C9\u5587\u8721\u814A\u8FA3\u5566\u524C\u647A\u908B\u65EF\u782C\u760C", 'lai': "\u83B1\u6765\u8D56\u5D03\u5F95\u6D9E\u6FD1\u8D49\u7750\u94FC\u765E\u7C41", 'lan': "\u84DD\u5A6A\u680F\u62E6\u7BEE\u9611\u5170\u6F9C\u8C30\u63FD\u89C8\u61D2\u7F06\u70C2\u6EE5\u5549\u5C9A\u61D4\u6F24\u6984\u6593\u7F71\u9567\u8934", 'lang': "\u7405\u6994\u72FC\u5ECA\u90CE\u6717\u6D6A\u83A8\u8497\u5577\u9606\u9512\u7A02\u8782", 'lao': "\u635E\u52B3\u7262\u8001\u4F6C\u59E5\u916A\u70D9\u6D9D\u5520\u5D02\u6833\u94D1\u94F9\u75E8\u91AA", 'le': "\u52D2\u4E50\u808B\u4EC2\u53FB\u561E\u6CD0\u9CD3", 'lei': "\u96F7\u956D\u857E\u78CA\u7D2F\u5121\u5792\u64C2\u7C7B\u6CEA\u7FB8\u8BD4\u837D\u54A7\u6F2F\u5AD8\u7F27\u6A91\u8012\u9179", 'ling': "\u68F1\u51B7\u62CE\u73B2\u83F1\u96F6\u9F84\u94C3\u4F36\u7F9A\u51CC\u7075\u9675\u5CAD\u9886\u53E6\u4EE4\u9143\u5844\u82D3\u5464\u56F9\u6CE0\u7EEB\u67C3\u68C2\u74F4\u8046\u86C9\u7FCE\u9CAE", 'leng': "\u695E\u6123", 'li': "\u5398\u68A8\u7281\u9ECE\u7BF1\u72F8\u79BB\u6F13\u7406\u674E\u91CC\u9CA4\u793C\u8389\u8354\u540F\u6817\u4E3D\u5389\u52B1\u783E\u5386\u5229\u5088\u4F8B\u4FD0\u75E2\u7ACB\u7C92\u6CA5\u96B6\u529B\u7483\u54E9\u4FEA\u4FDA\u90E6\u575C\u82C8\u8385\u84E0\u85DC\u6369\u5456\u5533\u55B1\u7301\u6EA7\u6FA7\u9026\u5A0C\u5AE0\u9A8A\u7F21\u73DE\u67A5\u680E\u8F79\u623E\u783A\u8A48\u7F79\u9502\u9E42\u75A0\u75AC\u86CE\u870A\u8821\u7B20\u7BE5\u7C9D\u91B4\u8DDE\u96F3\u9CA1\u9CE2\u9EE7", 'lian': "\u4FE9\u8054\u83B2\u8FDE\u9570\u5EC9\u601C\u6D9F\u5E18\u655B\u8138\u94FE\u604B\u70BC\u7EC3\u631B\u8539\u5941\u6F4B\u6FC2\u5A08\u740F\u695D\u6B93\u81C1\u81A6\u88E2\u880A\u9CA2", 'liang': "\u7CAE\u51C9\u6881\u7CB1\u826F\u4E24\u8F86\u91CF\u667E\u4EAE\u8C05\u589A\u690B\u8E09\u9753\u9B49", 'liao': "\u64A9\u804A\u50DA\u7597\u71CE\u5BE5\u8FBD\u6F66\u4E86\u6482\u9563\u5ED6\u6599\u84FC\u5C25\u5639\u7360\u5BEE\u7F2D\u948C\u9E69\u8022", 'lie': "\u5217\u88C2\u70C8\u52A3\u730E\u51BD\u57D2\u6D0C\u8D94\u8E90\u9B23", 'lin': "\u7433\u6797\u78F7\u9716\u4E34\u90BB\u9CDE\u6DCB\u51DB\u8D41\u541D\u853A\u5D99\u5EEA\u9074\u6AA9\u8F9A\u77B5\u7CBC\u8E8F\u9E9F", 'liu': "\u6E9C\u7409\u69B4\u786B\u998F\u7559\u5218\u7624\u6D41\u67F3\u516D\u62A1\u507B\u848C\u6CD6\u6D4F\u905B\u9A9D\u7EFA\u65D2\u7198\u950D\u954F\u9E68\u938F", 'long': "\u9F99\u804B\u5499\u7B3C\u7ABF\u9686\u5784\u62E2\u9647\u5F04\u5785\u830F\u6CF7\u73D1\u680A\u80E7\u783B\u7643", 'lou': "\u697C\u5A04\u6402\u7BD3\u6F0F\u964B\u55BD\u5D5D\u9542\u7618\u8027\u877C\u9AC5", 'lu': "\u82A6\u5362\u9885\u5E90\u7089\u63B3\u5364\u864F\u9C81\u9E93\u788C\u9732\u8DEF\u8D42\u9E7F\u6F5E\u7984\u5F55\u9646\u622E\u5786\u6445\u64B8\u565C\u6CF8\u6E0C\u6F09\u7490\u680C\u6A79\u8F73\u8F82\u8F98\u6C07\u80EA\u9565\u9E2C\u9E6D\u7C0F\u823B\u9C88", 'lv': "\u9A74\u5415\u94DD\u4FA3\u65C5\u5C65\u5C61\u7F15\u8651\u6C2F\u5F8B\u7387\u6EE4\u7EFF\u634B\u95FE\u6988\u8182\u7A06\u891B", 'luan': "\u5CE6\u5B6A\u6EE6\u5375\u4E71\u683E\u9E3E\u92AE", 'lue': "\u63A0\u7565\u950A", 'lun': "\u8F6E\u4F26\u4ED1\u6CA6\u7EB6\u8BBA\u56F5", 'luo': "\u841D\u87BA\u7F57\u903B\u9523\u7BA9\u9AA1\u88F8\u843D\u6D1B\u9A86\u7EDC\u502E\u8366\u645E\u7321\u6CFA\u6924\u8136\u9559\u7630\u96D2", 'ma': "\u5988\u9EBB\u739B\u7801\u8682\u9A6C\u9A82\u561B\u5417\u551B\u72B8\u5B37\u6769\u9EBD", 'mai': "\u57CB\u4E70\u9EA6\u5356\u8FC8\u8109\u52A2\u836C\u54AA\u973E", 'man': "\u7792\u9992\u86EE\u6EE1\u8513\u66FC\u6162\u6F2B\u8C29\u5881\u5E54\u7F26\u71B3\u9558\u989F\u87A8\u9CD7\u9794", 'mang': "\u8292\u832B\u76F2\u5FD9\u83BD\u9099\u6F2D\u6726\u786D\u87D2", 'meng': "\u6C13\u840C\u8499\u6AAC\u76DF\u9530\u731B\u68A6\u5B5F\u52D0\u750D\u77A2\u61F5\u791E\u867B\u8722\u8813\u824B\u8268\u9EFE", 'miao': "\u732B\u82D7\u63CF\u7784\u85D0\u79D2\u6E3A\u5E99\u5999\u55B5\u9088\u7F08\u7F2A\u676A\u6DFC\u7707\u9E4B\u8731", 'mao': "\u8305\u951A\u6BDB\u77DB\u94C6\u536F\u8302\u5192\u5E3D\u8C8C\u8D38\u4F94\u88A4\u52D6\u8306\u5CC1\u7441\u6634\u7266\u8004\u65C4\u61CB\u7780\u86D1\u8765\u87CA\u9AE6", 'me': "\u4E48", 'mei': "\u73AB\u679A\u6885\u9176\u9709\u7164\u6CA1\u7709\u5A92\u9541\u6BCF\u7F8E\u6627\u5BD0\u59B9\u5A9A\u5776\u8393\u5D4B\u7338\u6D7C\u6E44\u6963\u9545\u9E5B\u8882\u9B45", 'men': "\u95E8\u95F7\u4EEC\u626A\u739F\u7116\u61D1\u9494", 'mi': "\u772F\u919A\u9761\u7CDC\u8FF7\u8C1C\u5F25\u7C73\u79D8\u89C5\u6CCC\u871C\u5BC6\u5E42\u8288\u5196\u8C27\u863C\u5627\u7315\u736F\u6C68\u5B93\u5F2D\u8112\u6549\u7CF8\u7E3B\u9E8B", 'mian': "\u68C9\u7720\u7EF5\u5195\u514D\u52C9\u5A29\u7F05\u9762\u6C94\u6E4E\u817C\u7704", 'mie': "\u8511\u706D\u54A9\u881B\u7BFE", 'min': "\u6C11\u62BF\u76BF\u654F\u60AF\u95FD\u82E0\u5CB7\u95F5\u6CEF\u73C9", 'ming': "\u660E\u879F\u9E23\u94ED\u540D\u547D\u51A5\u8317\u6E9F\u669D\u7791\u9169", 'miu': "\u8C2C", 'mo': "\u6478\u6479\u8611\u6A21\u819C\u78E8\u6469\u9B54\u62B9\u672B\u83AB\u58A8\u9ED8\u6CAB\u6F20\u5BDE\u964C\u8C1F\u8309\u84E6\u998D\u5AEB\u9546\u79E3\u763C\u8031\u87C6\u8C8A\u8C98", 'mou': "\u8C0B\u725F\u67D0\u53B6\u54DE\u5A7A\u7738\u936A", 'mu': "\u62C7\u7261\u4EA9\u59C6\u6BCD\u5893\u66AE\u5E55\u52DF\u6155\u6728\u76EE\u7766\u7267\u7A46\u4EEB\u82DC\u5452\u6C90\u6BEA\u94BC", 'na': "\u62FF\u54EA\u5450\u94A0\u90A3\u5A1C\u7EB3\u5185\u637A\u80AD\u954E\u8872\u7BAC", 'nai': "\u6C16\u4E43\u5976\u8010\u5948\u9F10\u827F\u8418\u67F0", 'nan': "\u5357\u7537\u96BE\u56CA\u5583\u56E1\u6960\u8169\u877B\u8D67", 'nao': "\u6320\u8111\u607C\u95F9\u5B6C\u57B4\u7331\u7459\u7847\u94D9\u86F2", 'ne': "\u6DD6\u5462\u8BB7", 'nei': "\u9981", 'nen': "\u5AE9\u80FD\u6798\u6041", 'ni': "\u59AE\u9713\u502A\u6CE5\u5C3C\u62DF\u4F60\u533F\u817B\u9006\u6EBA\u4F32\u576D\u730A\u6029\u6EE0\u6635\u65CE\u7962\u615D\u7768\u94CC\u9CB5", 'nian': "\u852B\u62C8\u5E74\u78BE\u64B5\u637B\u5FF5\u5EFF\u8F87\u9ECF\u9C87\u9CB6", 'niang': "\u5A18\u917F", 'niao': "\u9E1F\u5C3F\u8311\u5B32\u8132\u8885", 'nie': "\u634F\u8042\u5B7D\u556E\u954A\u954D\u6D85\u4E5C\u9667\u8616\u55EB\u8080\u989E\u81EC\u8E51", 'nin': "\u60A8\u67E0", 'ning': "\u72DE\u51DD\u5B81\u62E7\u6CDE\u4F5E\u84E5\u549B\u752F\u804D", 'niu': "\u725B\u626D\u94AE\u7EBD\u72C3\u5FF8\u599E\u86B4", 'nong': "\u8113\u6D53\u519C\u4FAC", 'nu': "\u5974\u52AA\u6012\u5476\u5E11\u5F29\u80EC\u5B65\u9A7D", 'nv': "\u5973\u6067\u9495\u8844", 'nuan': "\u6696", 'nuenue': "\u8650", 'nue': "\u759F\u8C11", 'nuo': "\u632A\u61E6\u7CEF\u8BFA\u50A9\u6426\u558F\u9518", 'ou': "\u54E6\u6B27\u9E25\u6BB4\u85D5\u5455\u5076\u6CA4\u6004\u74EF\u8026", 'pa': "\u556A\u8DB4\u722C\u5E15\u6015\u7436\u8469\u7B62", 'pai': "\u62CD\u6392\u724C\u5F98\u6E43\u6D3E\u4FF3\u848E", 'pan': "\u6500\u6F58\u76D8\u78D0\u76FC\u7554\u5224\u53DB\u723F\u6CEE\u88A2\u897B\u87E0\u8E52", 'pang': "\u4E53\u5E9E\u65C1\u802A\u80D6\u6EC2\u9004", 'pao': "\u629B\u5486\u5228\u70AE\u888D\u8DD1\u6CE1\u530F\u72CD\u5E96\u812C\u75B1", 'pei': "\u5478\u80DA\u57F9\u88F4\u8D54\u966A\u914D\u4F69\u6C9B\u638A\u8F94\u5E14\u6DE0\u65C6\u952B\u9185\u9708", 'pen': "\u55B7\u76C6\u6E53", 'peng': "\u7830\u62A8\u70F9\u6F8E\u5F6D\u84EC\u68DA\u787C\u7BF7\u81A8\u670B\u9E4F\u6367\u78B0\u576F\u580B\u562D\u6026\u87DB", 'pi': "\u7812\u9739\u6279\u62AB\u5288\u7435\u6BD7\u5564\u813E\u75B2\u76AE\u5339\u75DE\u50FB\u5C41\u8B6C\u4E15\u9674\u90B3\u90EB\u572E\u9F19\u64D7\u567C\u5E80\u5AB2\u7EB0\u6787\u7513\u7765\u7F74\u94CD\u75E6\u7656\u758B\u868D\u8C94", 'pian': "\u7BC7\u504F\u7247\u9A97\u8C1D\u9A88\u728F\u80FC\u890A\u7FE9\u8E41", 'piao': "\u98D8\u6F02\u74E2\u7968\u527D\u560C\u5AD6\u7F25\u6B8D\u779F\u87B5", 'pie': "\u6487\u77A5\u4E3F\u82E4\u6C15", 'pin': "\u62FC\u9891\u8D2B\u54C1\u8058\u62DA\u59D8\u5AD4\u6980\u725D\u98A6", 'ping': "\u4E52\u576A\u82F9\u840D\u5E73\u51ED\u74F6\u8BC4\u5C4F\u4FDC\u5A09\u67B0\u9C86", 'po': "\u5761\u6CFC\u9887\u5A46\u7834\u9B44\u8FEB\u7C95\u53F5\u9131\u6EA5\u73C0\u948B\u94B7\u76A4\u7B38", 'pou': "\u5256\u88D2\u8E23", 'pu': "\u6251\u94FA\u4EC6\u8386\u8461\u83E9\u84B2\u57D4\u6734\u5703\u666E\u6D66\u8C31\u66DD\u7011\u530D\u5657\u6FEE\u749E\u6C06\u9564\u9568\u8E7C", 'qi': "\u671F\u6B3A\u6816\u621A\u59BB\u4E03\u51C4\u6F06\u67D2\u6C8F\u5176\u68CB\u5947\u6B67\u7566\u5D0E\u8110\u9F50\u65D7\u7948\u7941\u9A91\u8D77\u5C82\u4E5E\u4F01\u542F\u5951\u780C\u5668\u6C14\u8FC4\u5F03\u6C7D\u6CE3\u8BAB\u4E9F\u4E93\u573B\u8291\u840B\u847A\u5601\u5C7A\u5C90\u6C54\u6DC7\u9A90\u7EEE\u742A\u7426\u675E\u6864\u69ED\u6B39\u797A\u61A9\u789B\u86F4\u871E\u7DA6\u7DAE\u8DBF\u8E4A\u9CCD\u9E92", 'qia': "\u6390\u6070\u6D3D\u845C", 'qian': "\u7275\u6266\u948E\u94C5\u5343\u8FC1\u7B7E\u4EDF\u8C26\u4E7E\u9ED4\u94B1\u94B3\u524D\u6F5C\u9063\u6D45\u8C34\u5811\u5D4C\u6B20\u6B49\u4F65\u9621\u828A\u82A1\u8368\u63AE\u5C8D\u60AD\u614A\u9A9E\u6434\u8930\u7F31\u6920\u80B7\u6106\u94A4\u8654\u7B9D", 'qiang': "\u67AA\u545B\u8154\u7F8C\u5899\u8537\u5F3A\u62A2\u5AF1\u6A2F\u6217\u709D\u9516\u9535\u956A\u8941\u8723\u7F9F\u8DEB\u8DC4", 'qiao': "\u6A47\u9539\u6572\u6084\u6865\u77A7\u4E54\u4FA8\u5DE7\u9798\u64AC\u7FD8\u5CED\u4FCF\u7A8D\u5281\u8BEE\u8C2F\u835E\u6100\u6194\u7F32\u6A35\u6BF3\u7857\u8DF7\u9792", 'qie': "\u5207\u8304\u4E14\u602F\u7A83\u90C4\u553C\u60EC\u59BE\u6308\u9532\u7BA7", 'qin': "\u94A6\u4FB5\u4EB2\u79E6\u7434\u52E4\u82B9\u64D2\u79BD\u5BDD\u6C81\u82A9\u84C1\u8572\u63FF\u5423\u55EA\u5659\u6EB1\u6A8E\u8793\u887E", 'qing': "\u9752\u8F7B\u6C22\u503E\u537F\u6E05\u64CE\u6674\u6C30\u60C5\u9877\u8BF7\u5E86\u5029\u82D8\u570A\u6AA0\u78EC\u873B\u7F44\u7B90\u8B26\u9CAD\u9EE5", 'qiong': "\u743C\u7A77\u909B\u8315\u7A79\u7B47\u928E", 'qiu': "\u79CB\u4E18\u90B1\u7403\u6C42\u56DA\u914B\u6CC5\u4FC5\u6C3D\u5DEF\u827D\u72B0\u6E6B\u9011\u9052\u6978\u8D47\u9E20\u866C\u86AF\u8764\u88D8\u7CD7\u9CC5\u9F3D", 'qu': "\u8D8B\u533A\u86C6\u66F2\u8EAF\u5C48\u9A71\u6E20\u53D6\u5A36\u9F8B\u8DA3\u53BB\u8BCE\u52AC\u8556\u8627\u5C96\u8862\u9612\u74A9\u89D1\u6C0D\u795B\u78F2\u766F\u86D0\u883C\u9EB4\u77BF\u9EE2", 'quan': "\u5708\u98A7\u6743\u919B\u6CC9\u5168\u75CA\u62F3\u72AC\u5238\u529D\u8BE0\u8343\u737E\u609B\u7EFB\u8F81\u754E\u94E8\u8737\u7B4C\u9B08", 'que': "\u7F3A\u7094\u7638\u5374\u9E4A\u69B7\u786E\u96C0\u9619\u60AB", 'qun': "\u88D9\u7FA4\u9021", 'ran': "\u7136\u71C3\u5189\u67D3\u82D2\u9AEF", 'rang': "\u74E4\u58E4\u6518\u56B7\u8BA9\u79B3\u7A70", 'rao': "\u9976\u6270\u7ED5\u835B\u5A06\u6861", 'ruo': "\u60F9\u82E5\u5F31", 're': "\u70ED\u504C", 'ren': "\u58EC\u4EC1\u4EBA\u5FCD\u97E7\u4EFB\u8BA4\u5203\u598A\u7EAB\u4EDE\u834F\u845A\u996A\u8F6B\u7A14\u887D", 'reng': "\u6254\u4ECD", 'ri': "\u65E5", 'rong': "\u620E\u8338\u84C9\u8363\u878D\u7194\u6EB6\u5BB9\u7ED2\u5197\u5D58\u72E8\u7F1B\u6995\u877E", 'rou': "\u63C9\u67D4\u8089\u7CC5\u8E42\u97A3", 'ru': "\u8339\u8815\u5112\u5B7A\u5982\u8FB1\u4E73\u6C5D\u5165\u8925\u84D0\u85B7\u5685\u6D33\u6EBD\u6FE1\u94F7\u8966\u98A5", 'ruan': "\u8F6F\u962E\u670A", 'rui': "\u854A\u745E\u9510\u82AE\u8564\u777F\u868B", 'run': "\u95F0\u6DA6", 'sa': "\u6492\u6D12\u8428\u5345\u4EE8\u6332\u98D2", 'sai': "\u816E\u9CC3\u585E\u8D5B\u567B", 'san': "\u4E09\u53C1\u4F1E\u6563\u5F61\u9993\u6C35\u6BF5\u7CC1\u9730", 'sang': "\u6851\u55D3\u4E27\u6421\u78C9\u98A1", 'sao': "\u6414\u9A9A\u626B\u5AC2\u57FD\u81CA\u7619\u9CCB", 'se': "\u745F\u8272\u6DA9\u556C\u94E9\u94EF\u7A51", 'sen': "\u68EE", 'seng': "\u50E7", 'sha': "\u838E\u7802\u6740\u5239\u6C99\u7EB1\u50BB\u5565\u715E\u810E\u6B43\u75E7\u88DF\u970E\u9CA8", 'shai': "\u7B5B\u6652\u917E", 'shan': "\u73CA\u82EB\u6749\u5C71\u5220\u717D\u886B\u95EA\u9655\u64C5\u8D61\u81B3\u5584\u6C55\u6247\u7F2E\u5261\u8BAA\u912F\u57CF\u829F\u6F78\u59D7\u9A9F\u81BB\u9490\u759D\u87EE\u8222\u8DDA\u9CDD", 'shang': "\u5892\u4F24\u5546\u8D4F\u664C\u4E0A\u5C1A\u88F3\u57A7\u7EF1\u6B87\u71B5\u89DE", 'shao': "\u68A2\u634E\u7A0D\u70E7\u828D\u52FA\u97F6\u5C11\u54E8\u90B5\u7ECD\u52AD\u82D5\u6F72\u86F8\u7B24\u7B72\u8244", 'she': "\u5962\u8D4A\u86C7\u820C\u820D\u8D66\u6444\u5C04\u6151\u6D89\u793E\u8BBE\u538D\u4F58\u731E\u7572\u9E9D", 'shen': "\u7837\u7533\u547B\u4F38\u8EAB\u6DF1\u5A20\u7EC5\u795E\u6C88\u5BA1\u5A76\u751A\u80BE\u614E\u6E17\u8BDC\u8C02\u5432\u54C2\u6E16\u6939\u77E7\u8703", 'sheng': "\u58F0\u751F\u7525\u7272\u5347\u7EF3\u7701\u76DB\u5269\u80DC\u5723\u4E1E\u6E11\u5AB5\u771A\u7B19", 'shi': "\u5E08\u5931\u72EE\u65BD\u6E7F\u8BD7\u5C38\u8671\u5341\u77F3\u62FE\u65F6\u4EC0\u98DF\u8680\u5B9E\u8BC6\u53F2\u77E2\u4F7F\u5C4E\u9A76\u59CB\u5F0F\u793A\u58EB\u4E16\u67FF\u4E8B\u62ED\u8A93\u901D\u52BF\u662F\u55DC\u566C\u9002\u4ED5\u4F8D\u91CA\u9970\u6C0F\u5E02\u6043\u5BA4\u89C6\u8BD5\u8C25\u57D8\u83B3\u84CD\u5F11\u5511\u9963\u8F7C\u8006\u8D33\u70BB\u793B\u94C8\u94CA\u87AB\u8210\u7B6E\u8C55\u9CA5\u9CBA", 'shou': "\u6536\u624B\u9996\u5B88\u5BFF\u6388\u552E\u53D7\u7626\u517D\u624C\u72E9\u7EF6\u824F", 'shu': "\u852C\u67A2\u68B3\u6B8A\u6292\u8F93\u53D4\u8212\u6DD1\u758F\u4E66\u8D4E\u5B70\u719F\u85AF\u6691\u66D9\u7F72\u8700\u9ECD\u9F20\u5C5E\u672F\u8FF0\u6811\u675F\u620D\u7AD6\u5885\u5EB6\u6570\u6F31\u6055\u500F\u587E\u83FD\u5FC4\u6CAD\u6D91\u6F8D\u59DD\u7EBE\u6BF9\u8167\u6BB3\u956F\u79EB\u9E6C", 'shua': "\u5237\u800D\u5530\u6DAE", 'shuai': "\u6454\u8870\u7529\u5E05\u87C0", 'shuan': "\u6813\u62F4\u95E9", 'shuang': "\u971C\u53CC\u723D\u5B40", 'shui': "\u8C01\u6C34\u7761\u7A0E", 'shun': "\u542E\u77AC\u987A\u821C\u6042", 'shuo': "\u8BF4\u7855\u6714\u70C1\u84B4\u6420\u55CD\u6FEF\u5981\u69CA\u94C4", 'si': "\u65AF\u6495\u5636\u601D\u79C1\u53F8\u4E1D\u6B7B\u8086\u5BFA\u55E3\u56DB\u4F3A\u4F3C\u9972\u5DF3\u53AE\u4FDF\u5155\u83E5\u549D\u6C5C\u6CD7\u6F8C\u59D2\u9A77\u7F0C\u7940\u7960\u9536\u9E36\u801C\u86F3\u7B25", 'song': "\u677E\u8038\u6002\u9882\u9001\u5B8B\u8BBC\u8BF5\u51C7\u83D8\u5D27\u5D69\u5FEA\u609A\u6DDE\u7AE6", 'sou': "\u641C\u8258\u64DE\u55FD\u53DF\u55D6\u55FE\u998A\u6EB2\u98D5\u778D\u953C\u878B", 'su': "\u82CF\u9165\u4FD7\u7D20\u901F\u7C9F\u50F3\u5851\u6EAF\u5BBF\u8BC9\u8083\u5919\u8C21\u850C\u55C9\u612B\u7C0C\u89EB\u7A23", 'suan': "\u9178\u849C\u7B97", 'sui': "\u867D\u968B\u968F\u7EE5\u9AD3\u788E\u5C81\u7A57\u9042\u96A7\u795F\u84D1\u51AB\u8C07\u6FC9\u9083\u71E7\u772D\u7762", 'sun': "\u5B59\u635F\u7B0B\u836A\u72F2\u98E7\u69AB\u8DE3\u96BC", 'suo': "\u68AD\u5506\u7F29\u7410\u7D22\u9501\u6240\u5522\u55E6\u5A11\u686B\u7743\u7FA7", 'ta': "\u584C\u4ED6\u5B83\u5979\u5854\u736D\u631E\u8E4B\u8E0F\u95FC\u6EBB\u9062\u69BB\u6C93", 'tai': "\u80CE\u82D4\u62AC\u53F0\u6CF0\u915E\u592A\u6001\u6C70\u90B0\u85B9\u80BD\u70B1\u949B\u8DC6\u9C90", 'tan': "\u574D\u644A\u8D2A\u762B\u6EE9\u575B\u6A80\u75F0\u6F6D\u8C2D\u8C08\u5766\u6BEF\u8892\u78B3\u63A2\u53F9\u70AD\u90EF\u8548\u6619\u94BD\u952C\u8983", 'tang': "\u6C64\u5858\u642A\u5802\u68E0\u819B\u5510\u7CD6\u50A5\u9967\u6E8F\u746D\u94F4\u9557\u8025\u8797\u87B3\u7FB0\u91A3", 'thang': "\u5018\u8EBA\u6DCC", 'theng': "\u8D9F\u70EB", 'tao': "\u638F\u6D9B\u6ED4\u7EE6\u8404\u6843\u9003\u6DD8\u9676\u8BA8\u5957\u6311\u9F17\u5555\u97EC\u9955", 'te': "\u7279", 'teng': "\u85E4\u817E\u75BC\u8A8A\u6ED5", 'ti': "\u68AF\u5254\u8E22\u9511\u63D0\u9898\u8E44\u557C\u4F53\u66FF\u568F\u60D5\u6D95\u5243\u5C49\u8351\u608C\u9016\u7EE8\u7F07\u9E48\u88FC\u918D", 'tian': "\u5929\u6DFB\u586B\u7530\u751C\u606C\u8214\u8146\u63AD\u5FDD\u9617\u6B84\u754B\u94BF\u86BA", 'tiao': "\u6761\u8FE2\u773A\u8DF3\u4F7B\u7967\u94EB\u7A95\u9F86\u9CA6", 'tie': "\u8D34\u94C1\u5E16\u841C\u992E", 'ting': "\u5385\u542C\u70C3\u6C40\u5EF7\u505C\u4EAD\u5EAD\u633A\u8247\u839B\u8476\u5A77\u6883\u8713\u9706", 'tong': "\u901A\u6850\u916E\u77B3\u540C\u94DC\u5F64\u7AE5\u6876\u6345\u7B52\u7EDF\u75DB\u4F5F\u50EE\u4EDD\u833C\u55F5\u6078\u6F7C\u783C", 'tou': "\u5077\u6295\u5934\u900F\u4EA0", 'tu': "\u51F8\u79C3\u7A81\u56FE\u5F92\u9014\u6D82\u5C60\u571F\u5410\u5154\u580D\u837C\u83DF\u948D\u9174", 'tuan': "\u6E4D\u56E2\u7583", 'tui': "\u63A8\u9893\u817F\u8715\u892A\u9000\u5FD2\u717A", 'tun': "\u541E\u5C6F\u81C0\u9968\u66BE\u8C5A\u7A80", 'tuo': "\u62D6\u6258\u8131\u9E35\u9640\u9A6E\u9A7C\u692D\u59A5\u62D3\u553E\u4E47\u4F57\u5768\u5EB9\u6CB1\u67DD\u7823\u7BA8\u8204\u8DCE\u9F0D", 'wa': "\u6316\u54C7\u86D9\u6D3C\u5A03\u74E6\u889C\u4F64\u5A32\u817D", 'wai': "\u6B6A\u5916", 'wan': "\u8C4C\u5F2F\u6E7E\u73A9\u987D\u4E38\u70F7\u5B8C\u7897\u633D\u665A\u7696\u60CB\u5B9B\u5A49\u4E07\u8155\u525C\u8284\u82CB\u83C0\u7EA8\u7EFE\u742C\u8118\u7579\u873F\u7BA2", 'wang': "\u6C6A\u738B\u4EA1\u6789\u7F51\u5F80\u65FA\u671B\u5FD8\u5984\u7F54\u5C22\u60D8\u8F8B\u9B4D", 'wei': "\u5A01\u5DCD\u5FAE\u5371\u97E6\u8FDD\u6845\u56F4\u552F\u60DF\u4E3A\u6F4D\u7EF4\u82C7\u840E\u59D4\u4F1F\u4F2A\u5C3E\u7EAC\u672A\u851A\u5473\u754F\u80C3\u5582\u9B4F\u4F4D\u6E2D\u8C13\u5C09\u6170\u536B\u502D\u504E\u8BFF\u9688\u8473\u8587\u5E0F\u5E37\u5D34\u5D6C\u7325\u732C\u95F1\u6CA9\u6D27\u6DA0\u9036\u5A13\u73AE\u97EA\u8ECE\u709C\u7168\u71A8\u75FF\u8249\u9C94", 'wen': "\u761F\u6E29\u868A\u6587\u95FB\u7EB9\u543B\u7A33\u7D0A\u95EE\u520E\u6120\u960C\u6C76\u74BA\u97EB\u6B81\u96EF", 'weng': "\u55E1\u7FC1\u74EE\u84CA\u8579", 'wo': "\u631D\u8717\u6DA1\u7A9D\u6211\u65A1\u5367\u63E1\u6C83\u83B4\u5E44\u6E25\u674C\u809F\u9F8C", 'wu': "\u5DEB\u545C\u94A8\u4E4C\u6C61\u8BEC\u5C4B\u65E0\u829C\u68A7\u543E\u5434\u6BCB\u6B66\u4E94\u6342\u5348\u821E\u4F0D\u4FAE\u575E\u620A\u96FE\u6664\u7269\u52FF\u52A1\u609F\u8BEF\u5140\u4EF5\u9622\u90AC\u572C\u82B4\u5E91\u6003\u5FE4\u6D6F\u5BE4\u8FD5\u59A9\u9A9B\u727E\u7110\u9E49\u9E5C\u8708\u92C8\u9F2F", 'xi': "\u6614\u7199\u6790\u897F\u7852\u77FD\u6670\u563B\u5438\u9521\u727A\u7A00\u606F\u5E0C\u6089\u819D\u5915\u60DC\u7184\u70EF\u6EAA\u6C50\u7280\u6A84\u88AD\u5E2D\u4E60\u5AB3\u559C\u94E3\u6D17\u7CFB\u9699\u620F\u7EC6\u50D6\u516E\u96B0\u90D7\u831C\u8478\u84F0\u595A\u550F\u5F99\u9969\u960B\u6D60\u6DC5\u5C63\u5B09\u73BA\u6A28\u66E6\u89CB\u6B37\u71B9\u798A\u79A7\u94B8\u7699\u7A78\u8725\u87CB\u823E\u7FB2\u7C9E\u7FD5\u91AF\u9F37", 'xia': "\u778E\u867E\u5323\u971E\u8F96\u6687\u5CE1\u4FA0\u72ED\u4E0B\u53A6\u590F\u5413\u6380\u846D\u55C4\u72CE\u9050\u7455\u7856\u7615\u7F45\u9EE0", 'xian': "\u9528\u5148\u4ED9\u9C9C\u7EA4\u54B8\u8D24\u8854\u8237\u95F2\u6D8E\u5F26\u5ACC\u663E\u9669\u73B0\u732E\u53BF\u817A\u9985\u7FA1\u5BAA\u9677\u9650\u7EBF\u51BC\u85D3\u5C98\u7303\u66B9\u5A34\u6C19\u7946\u9E47\u75EB\u86AC\u7B45\u7C7C\u9170\u8DF9", 'xiang': "\u76F8\u53A2\u9576\u9999\u7BB1\u8944\u6E58\u4E61\u7FD4\u7965\u8BE6\u60F3\u54CD\u4EAB\u9879\u5DF7\u6A61\u50CF\u5411\u8C61\u8297\u8459\u9977\u5EA0\u9AA7\u7F03\u87D3\u9C9E\u98E8", 'xiao': "\u8427\u785D\u9704\u524A\u54EE\u56A3\u9500\u6D88\u5BB5\u6DC6\u6653\u5C0F\u5B5D\u6821\u8096\u5578\u7B11\u6548\u54D3\u54BB\u5D24\u6F47\u900D\u9A81\u7EE1\u67AD\u67B5\u7B71\u7BAB\u9B48", 'xie': "\u6954\u4E9B\u6B47\u874E\u978B\u534F\u631F\u643A\u90AA\u659C\u80C1\u8C10\u5199\u68B0\u5378\u87F9\u61C8\u6CC4\u6CFB\u8C22\u5C51\u5055\u4EB5\u52F0\u71EE\u85A4\u64B7\u5EE8\u7023\u9082\u7EC1\u7F2C\u69AD\u698D\u6B59\u8E9E", 'xin': "\u85AA\u82AF\u950C\u6B23\u8F9B\u65B0\u5FFB\u5FC3\u4FE1\u8845\u56DF\u99A8\u8398\u6B46\u94FD\u946B", 'xing': "\u661F\u8165\u7329\u60FA\u5174\u5211\u578B\u5F62\u90A2\u884C\u9192\u5E78\u674F\u6027\u59D3\u9649\u8347\u8365\u64E4\u60BB\u784E", 'xiong': "\u5144\u51F6\u80F8\u5308\u6C79\u96C4\u718A\u828E", 'xiu': "\u4F11\u4FEE\u7F9E\u673D\u55C5\u9508\u79C0\u8896\u7EE3\u83A0\u5CAB\u9990\u5EA5\u9E3A\u8C85\u9AF9", 'xu': "\u589F\u620C\u9700\u865A\u5618\u987B\u5F90\u8BB8\u84C4\u9157\u53D9\u65ED\u5E8F\u755C\u6064\u7D6E\u5A7F\u7EEA\u7EED\u8BB4\u8BE9\u5729\u84FF\u6035\u6D2B\u6E86\u987C\u6829\u7166\u7809\u76F1\u80E5\u7CC8\u9191", 'xuan': "\u8F69\u55A7\u5BA3\u60AC\u65CB\u7384\u9009\u7663\u7729\u7EDA\u5107\u8C16\u8431\u63CE\u9994\u6CEB\u6D35\u6E32\u6F29\u7487\u6966\u6684\u70AB\u714A\u78B9\u94C9\u955F\u75C3", 'xue': "\u9774\u859B\u5B66\u7A74\u96EA\u8840\u5671\u6CF6\u9CD5", 'xun': "\u52CB\u718F\u5FAA\u65EC\u8BE2\u5BFB\u9A6F\u5DE1\u6B89\u6C5B\u8BAD\u8BAF\u900A\u8FC5\u5DFD\u57D9\u8340\u85B0\u5CCB\u5F87\u6D54\u66DB\u7AA8\u91BA\u9C9F", 'ya': "\u538B\u62BC\u9E26\u9E2D\u5440\u4E2B\u82BD\u7259\u869C\u5D16\u8859\u6DAF\u96C5\u54D1\u4E9A\u8BB6\u4F22\u63E0\u5416\u5C88\u8FD3\u5A05\u740A\u6860\u6C29\u7811\u775A\u75D6", 'yan': "\u7109\u54BD\u9609\u70DF\u6DF9\u76D0\u4E25\u7814\u8712\u5CA9\u5EF6\u8A00\u989C\u960E\u708E\u6CBF\u5944\u63A9\u773C\u884D\u6F14\u8273\u5830\u71D5\u538C\u781A\u96C1\u5501\u5F66\u7130\u5BB4\u8C1A\u9A8C\u53A3\u9765\u8D5D\u4FE8\u5043\u5156\u8BA0\u8C33\u90FE\u9122\u82AB\u83F8\u5D26\u6079\u95EB\u960F\u6D07\u6E6E\u6EDF\u598D\u5AE3\u7430\u664F\u80ED\u814C\u7131\u7F68\u7B75\u917D\u9B47\u990D\u9F39", 'yang': "\u6B83\u592E\u9E2F\u79E7\u6768\u626C\u4F6F\u75A1\u7F8A\u6D0B\u9633\u6C27\u4EF0\u75D2\u517B\u6837\u6F3E\u5F89\u600F\u6CF1\u7080\u70CA\u6059\u86D8\u9785", 'yao': "\u9080\u8170\u5996\u7476\u6447\u5C27\u9065\u7A91\u8C23\u59DA\u54AC\u8200\u836F\u8981\u8000\u592D\u723B\u5406\u5D3E\u5FAD\u7039\u5E7A\u73E7\u6773\u66DC\u80B4\u9E5E\u7A88\u7E47\u9CD0", 'ye': "\u6930\u564E\u8036\u7237\u91CE\u51B6\u4E5F\u9875\u6396\u4E1A\u53F6\u66F3\u814B\u591C\u6DB2\u8C12\u90BA\u63F6\u9980\u6654\u70E8\u94D8", 'yi': "\u4E00\u58F9\u533B\u63D6\u94F1\u4F9D\u4F0A\u8863\u9890\u5937\u9057\u79FB\u4EEA\u80F0\u7591\u6C82\u5B9C\u59E8\u5F5D\u6905\u8681\u501A\u5DF2\u4E59\u77E3\u4EE5\u827A\u6291\u6613\u9091\u5C79\u4EBF\u5F79\u81C6\u9038\u8084\u75AB\u4EA6\u88D4\u610F\u6BC5\u5FC6\u4E49\u76CA\u6EA2\u8BE3\u8BAE\u8C0A\u8BD1\u5F02\u7FFC\u7FCC\u7ECE\u5208\u5293\u4F7E\u8BD2\u572A\u572F\u57F8\u61FF\u82E1\u858F\u5F08\u5955\u6339\u5F0B\u5453\u54A6\u54BF\u566B\u5CC4\u5DB7\u7317\u9974\u603F\u6021\u6092\u6F2A\u8FE4\u9A7F\u7F22\u6BAA\u8D3B\u65D6\u71A0\u9487\u9552\u9571\u75CD\u7617\u7654\u7FCA\u8864\u8734\u8223\u7FBF\u7FF3\u914F\u9EDF", 'yin': "\u8335\u836B\u56E0\u6BB7\u97F3\u9634\u59FB\u541F\u94F6\u6DEB\u5BC5\u996E\u5C39\u5F15\u9690\u5370\u80E4\u911E\u5819\u831A\u5591\u72FA\u5924\u6C24\u94DF\u763E\u8693\u972A\u9F88", 'ying': "\u82F1\u6A31\u5A74\u9E70\u5E94\u7F28\u83B9\u8424\u8425\u8367\u8747\u8FCE\u8D62\u76C8\u5F71\u9896\u786C\u6620\u5B34\u90E2\u8314\u83BA\u8426\u6484\u5624\u81BA\u6EE2\u6F46\u701B\u745B\u748E\u6979\u9E66\u763F\u988D\u7F42", 'yo': "\u54DF\u5537", 'yong': "\u62E5\u4F63\u81C3\u75C8\u5EB8\u96CD\u8E0A\u86F9\u548F\u6CF3\u6D8C\u6C38\u607F\u52C7\u7528\u4FD1\u58C5\u5889\u6175\u9095\u955B\u752C\u9CD9\u9954", 'you': "\u5E7D\u4F18\u60A0\u5FE7\u5C24\u7531\u90AE\u94C0\u72B9\u6CB9\u6E38\u9149\u6709\u53CB\u53F3\u4F51\u91C9\u8BF1\u53C8\u5E7C\u5363\u6538\u4F91\u83B8\u5466\u56FF\u5BA5\u67DA\u7337\u7256\u94D5\u75A3\u8763\u9C7F\u9EDD\u9F2C", 'yu': "\u8FC2\u6DE4\u4E8E\u76C2\u6986\u865E\u611A\u8206\u4F59\u4FDE\u903E\u9C7C\u6109\u6E1D\u6E14\u9685\u4E88\u5A31\u96E8\u4E0E\u5C7F\u79B9\u5B87\u8BED\u7FBD\u7389\u57DF\u828B\u90C1\u5401\u9047\u55BB\u5CEA\u5FA1\u6108\u6B32\u72F1\u80B2\u8A89\u6D74\u5BD3\u88D5\u9884\u8C6B\u9A6D\u79BA\u6BD3\u4F1B\u4FE3\u8C00\u8C15\u8438\u84E3\u63C4\u5581\u5704\u5709\u5D5B\u72F3\u996B\u5EBE\u9608\u59AA\u59A4\u7EA1\u745C\u6631\u89CE\u8174\u6B24\u65BC\u715C\u71E0\u807F\u94B0\u9E46\u7610\u7600\u7AB3\u8753\u7AFD\u8201\u96E9\u9F89", 'yuan': "\u9E33\u6E0A\u51A4\u5143\u57A3\u8881\u539F\u63F4\u8F95\u56ED\u5458\u5706\u733F\u6E90\u7F18\u8FDC\u82D1\u613F\u6028\u9662\u586C\u6C85\u5A9B\u7457\u6A7C\u7230\u7722\u9E22\u8788\u9F0B", 'yue': "\u66F0\u7EA6\u8D8A\u8DC3\u94A5\u5CB3\u7CA4\u6708\u60A6\u9605\u9FA0\u6A3E\u5216\u94BA", 'yun': "\u8018\u4E91\u90E7\u5300\u9668\u5141\u8FD0\u8574\u915D\u6655\u97F5\u5B55\u90D3\u82B8\u72C1\u607D\u7EAD\u6B92\u6600\u6C32", 'za': "\u531D\u7838\u6742\u62F6\u5482", 'zai': "\u683D\u54C9\u707E\u5BB0\u8F7D\u518D\u5728\u54B1\u5D3D\u753E", 'zan': "\u6512\u6682\u8D5E\u74D2\u661D\u7C2A\u7CCC\u8DB1\u933E", 'zang': "\u8D43\u810F\u846C\u5958\u6215\u81E7", 'zao': "\u906D\u7CDF\u51FF\u85FB\u67A3\u65E9\u6FA1\u86A4\u8E81\u566A\u9020\u7682\u7076\u71E5\u5523\u7F2B", 'ze': "\u8D23\u62E9\u5219\u6CFD\u4EC4\u8D5C\u5567\u8FEE\u6603\u7B2E\u7BA6\u8234", 'zei': "\u8D3C", 'zen': "\u600E\u8C2E", 'zeng': "\u589E\u618E\u66FE\u8D60\u7F2F\u7511\u7F7E\u9503", 'zha': "\u624E\u55B3\u6E23\u672D\u8F67\u94E1\u95F8\u7728\u6805\u69A8\u548B\u4E4D\u70B8\u8BC8\u63F8\u5412\u54A4\u54F3\u600D\u781F\u75C4\u86B1\u9F44", 'zhai': "\u6458\u658B\u5B85\u7A84\u503A\u5BE8\u7826", 'zhan': "\u77BB\u6BE1\u8A79\u7C98\u6CBE\u76CF\u65A9\u8F97\u5D2D\u5C55\u8638\u6808\u5360\u6218\u7AD9\u6E5B\u7EFD\u8C35\u640C\u65C3", 'zhang': "\u6A1F\u7AE0\u5F70\u6F33\u5F20\u638C\u6DA8\u6756\u4E08\u5E10\u8D26\u4ED7\u80C0\u7634\u969C\u4EC9\u9123\u5E5B\u5D82\u7350\u5ADC\u748B\u87D1", 'zhao': "\u62DB\u662D\u627E\u6CBC\u8D75\u7167\u7F69\u5146\u8087\u53EC\u722A\u8BCF\u68F9\u948A\u7B0A", 'zhe': "\u906E\u6298\u54F2\u86F0\u8F99\u8005\u9517\u8517\u8FD9\u6D59\u8C2A\u966C\u67D8\u8F84\u78D4\u9E67\u891A\u8707\u8D6D", 'zhen': "\u73CD\u659F\u771F\u7504\u7827\u81FB\u8D1E\u9488\u4FA6\u6795\u75B9\u8BCA\u9707\u632F\u9547\u9635\u7F1C\u6862\u699B\u8F78\u8D48\u80D7\u6715\u796F\u755B\u9E29", 'zheng': "\u84B8\u6323\u7741\u5F81\u72F0\u4E89\u6014\u6574\u62EF\u6B63\u653F\u5E27\u75C7\u90D1\u8BC1\u8BE4\u5CE5\u94B2\u94EE\u7B5D", 'zhi': "\u829D\u679D\u652F\u5431\u8718\u77E5\u80A2\u8102\u6C41\u4E4B\u7EC7\u804C\u76F4\u690D\u6B96\u6267\u503C\u4F84\u5740\u6307\u6B62\u8DBE\u53EA\u65E8\u7EB8\u5FD7\u631A\u63B7\u81F3\u81F4\u7F6E\u5E1C\u5CD9\u5236\u667A\u79E9\u7A1A\u8D28\u7099\u75D4\u6EDE\u6CBB\u7A92\u536E\u965F\u90C5\u57F4\u82B7\u646D\u5E19\u5FEE\u5F58\u54AB\u9A98\u6809\u67B3\u6800\u684E\u8F75\u8F7E\u6534\u8D3D\u81A3\u7949\u7957\u9EF9\u96C9\u9E37\u75E3\u86ED\u7D77\u916F\u8DD6\u8E2C\u8E2F\u8C78\u89EF", 'zhong': "\u4E2D\u76C5\u5FE0\u949F\u8877\u7EC8\u79CD\u80BF\u91CD\u4EF2\u4F17\u51A2\u953A\u87BD\u8202\u822F\u8E35", 'zhou': "\u821F\u5468\u5DDE\u6D32\u8BCC\u7CA5\u8F74\u8098\u5E1A\u5492\u76B1\u5B99\u663C\u9AA4\u5544\u7740\u501C\u8BF9\u836E\u9B3B\u7EA3\u80C4\u78A1\u7C40\u8233\u914E\u9CB7", 'zhu': "\u73E0\u682A\u86DB\u6731\u732A\u8BF8\u8BDB\u9010\u7AF9\u70DB\u716E\u62C4\u77A9\u5631\u4E3B\u8457\u67F1\u52A9\u86C0\u8D2E\u94F8\u7B51\u4F4F\u6CE8\u795D\u9A7B\u4F2B\u4F8F\u90BE\u82CE\u8331\u6D19\u6E1A\u6F74\u9A7A\u677C\u69E0\u6A65\u70B7\u94E2\u75B0\u7603\u86B0\u7AFA\u7BB8\u7FE5\u8E85\u9E88", 'zhua': "\u6293", 'zhuai': "\u62FD", 'zhuan': "\u4E13\u7816\u8F6C\u64B0\u8D5A\u7BC6\u629F\u556D\u989B", 'zhuang': "\u6869\u5E84\u88C5\u5986\u649E\u58EE\u72B6\u4E2C", 'zhui': "\u690E\u9525\u8FFD\u8D58\u5760\u7F00\u8411\u9A93\u7F12", 'zhun': "\u8C06\u51C6", 'zhuo': "\u6349\u62D9\u5353\u684C\u7422\u8301\u914C\u707C\u6D4A\u502C\u8BFC\u5EF4\u855E\u64E2\u555C\u6D5E\u6DBF\u6753\u712F\u799A\u65AB", 'zi': "\u5179\u54A8\u8D44\u59FF\u6ECB\u6DC4\u5B5C\u7D2B\u4ED4\u7C7D\u6ED3\u5B50\u81EA\u6E0D\u5B57\u8C18\u5D6B\u59CA\u5B73\u7F01\u6893\u8F8E\u8D40\u6063\u7726\u9531\u79ED\u8014\u7B2B\u7CA2\u89DC\u8A3E\u9CBB\u9AED", 'zong': "\u9B03\u68D5\u8E2A\u5B97\u7EFC\u603B\u7EB5\u8159\u7CBD", 'zou': "\u90B9\u8D70\u594F\u63CD\u9139\u9CB0", 'zu': "\u79DF\u8DB3\u5352\u65CF\u7956\u8BC5\u963B\u7EC4\u4FCE\u83F9\u5550\u5F82\u9A75\u8E74", 'zuan': "\u94BB\u7E82\u6525\u7F35", 'zui': "\u5634\u9189\u6700\u7F6A", 'zun': "\u5C0A\u9075\u6499\u6A3D\u9CDF", 'zuo': "\u6628\u5DE6\u4F50\u67DE\u505A\u4F5C\u5750\u5EA7\u961D\u963C\u80D9\u795A\u9162", 'cou': "\u85AE\u6971\u8F8F\u8160", 'nang': "\u652E\u54DD\u56D4\u9995\u66E9", 'o': "\u5594", 'dia': "\u55F2", 'chuai': "\u562C\u81AA\u8E39", 'cen': "\u5C91\u6D94", 'diu': "\u94E5", 'nou': "\u8028", 'fou': "\u7F36", 'bia': "\u9ADF" }; // CONCATENATED MODULE: ./src/base/utils/src/vue-py.js // import { pinyin } from './pyconst.js'; /* harmony default export */ var vue_py = ({ chineseToPinYin: function chineseToPinYin(l1) { var l2 = l1.length; var I1 = ''; var reg = new RegExp('[a-zA-Z0-9]'); var zmReg = new RegExp('[a-zA-Z]'); for (var i = 0; i < l2; i++) { var val = l1.substr(i, 1); if (reg.test(val)) { I1 += val; continue; } var name = this.arraySearch(val, pyconst_pinyin); if (reg.test(val)) { I1 += val; } else if (name !== false) { I1 += name; } } I1 = I1.replace(/ /g, '-'); while (I1.indexOf('--') > 0) { I1 = I1.replace('--', '-'); } return I1; }, arraySearch: function arraySearch(l1, l2) { for (var name in pyconst_pinyin) { if (pyconst_pinyin[name].indexOf(l1) !== -1) { return this.ucfirst(name); } } return false; }, ucfirst: function ucfirst(l1) { if (l1.length > 0) { var first = l1.substr(0, 1).toUpperCase(); var spare = l1.substr(1, l1.length); return first + spare; } } }); // EXTERNAL MODULE: ./node_modules/jr-qrcode/dist/jr-qrcode.js var jr_qrcode = __webpack_require__("4a37"); var jr_qrcode_default = /*#__PURE__*/__webpack_require__.n(jr_qrcode); // EXTERNAL MODULE: ./node_modules/jsbarcode/bin/JsBarcode.js var JsBarcode = __webpack_require__("62c5"); var JsBarcode_default = /*#__PURE__*/__webpack_require__.n(JsBarcode); // CONCATENATED MODULE: ./src/base/utils/src/string.js /** * showdoc * @catalog API/工具/Date * @title 字符串基础类 * @className ClientString * @modifier static * @method StringFunc * @demo */ var STR = { /** * showdoc * @catalog API/工具/String * @title 生成MD5 * @description 生成MD5 * @method md5 * @param str 必选 String 需生成的字符 * @return String * @number 60 */ md5: function md5(str) { return md5_default()(str); }, /** * showdoc * @catalog API/工具/String * @title 获取中文首字母拼音 * @description 获取中文首字母拼音 * @method getFirstPY * @param str 必选 String 需生成的字符 * @return String * @number 60 */ getFirstPY: function getFirstPY(str) { if (!str) return ""; var SX = '', pinyin; str = str.toUpperCase(); if (str.constructor == Array) { pinyin = []; for (var i = 0; i < str.length; i++) { pinyin.push(vue_py.chineseToPinYin(str[i])); } } else pinyin = vue_py.chineseToPinYin(str); if (pinyin.constructor == Array) { var result = []; for (var j = 0; j < pinyin.length; j++) { var tempPY = pinyin[j], tempSX = ""; for (var _i = 0; _i < tempPY.length; _i++) { var c = tempPY.charAt(_i); if (/^[A-Z0-9]+$/.test(c)) { tempSX += c; } } result.push(tempSX.toLowerCase()); } return result; } else { for (var _i2 = 0; _i2 < pinyin.length; _i2++) { var _c = pinyin.charAt(_i2); if (/^[A-Z0-9]+$/.test(_c)) { SX += _c; } } return SX.toLowerCase(); } }, /** * showdoc * @catalog API/工具/String * @title 下载地址 * @description 获取下载地址 * @url getDownloadUrl(url,fileName) * @method getDownloadUrl * @param url 必选 url * @param fileName 必选 文件名 * @return String * @number 60 */ getDownloadUrl: function getDownloadUrl(url, fileName) { return window.eap.utils.biz.getDownloadUrl(url, fileName); ; }, /** * showdoc * @catalog API/工具/String * @title 获取中文全拼音 * @description 获取中文全拼音 * @url getPinyin(str) * @method getPinyin * @param str 必选 String 需生成的字符 * @return String * @number 60 */ getPinyin: function getPinyin(str) { var result = []; if (!str) return ""; if (str.constructor == Array) { for (var i = 0; i < str.length; i++) { result.push(vue_py.chineseToPinYin(str[i]).toLowerCase()); } return result; } else return vue_py.chineseToPinYin(str).toLowerCase(); }, /** * showdoc * @catalog API/工具/String * @title 获取指定范围随机数 * @description 获取中文全拼音 * @url randomInt(min, max) * @method randomInt * @param min 必选 Int 起止数字 * @param max 必选 Int 结束数字 * @return String * @number 60 */ randomInt: function randomInt(min, max) { var Range = max - min; var Rand = Math.random(); return min + Math.round(Rand * Range); }, /** * showdoc * @catalog API/工具/String * @title 获取功能/流程路径 * @description 获取功能/流程路径 * @url getBizUrl(url) * @method getBizUrl * @param url 必选 url * @return String * @number 60 */ getBizUrl: function getBizUrl(url) { if (window.eap) return window.eap.utils.biz.getUrl(url); return url; }, /** * showdoc * @catalog API/工具/String * @title 获取url地址栏参数 * @description 获取功能/流程路径 * @method getUrlValue * @param name 必选 name * @param url 选填 url * @return String * @number 60 */ getUrlValue: function getUrlValue(name, url) { var str = url || window.location.href; if (str.indexOf("&" + name) != -1 || str.indexOf("?" + name) != -1) { var pos_start = ""; if (str.indexOf("?" + name) > -1) pos_start = str.indexOf("?" + name) + name.length + 2;else pos_start = str.indexOf("&" + name) + name.length + 2; var pos_end = str.indexOf("&", pos_start); if (pos_end == -1) { return str.substring(pos_start); } else { return str.substring(pos_start, pos_end); } } else { return ""; } }, /** * showdoc * @catalog API/工具/String * @title 设置url地址栏参数 * @description 获取功能/流程路径 * @url getUrlValue(name, url) * @method setUrlValue * @param url 选填 url * @param name 选填 name * @param pValue 选填 pValue * @return String * @number 60 */ setUrlValue: function setUrlValue(url, pName, pValue) { if (url == null || url == '') { return ''; } var arrUrl = url.split('?'); if (arrUrl.length <= 1) { return url + '?' + pName + '=' + pValue; } var paramArr = arrUrl[1].split('&'); var isAdd = true; for (var i = 0; i < paramArr.length; i++) { var valueArr = paramArr[i].split('='); if (valueArr[0] == pName) { paramArr[i] = pName + '=' + pValue; isAdd = false; } } if (isAdd) { paramArr[paramArr.length] = pName + '=' + pValue; } return arrUrl[0] + '?' + paramArr.join('&'); }, /** * showdoc * @catalog API/工具/String * @title 获取指定长度的ID * @description 获取指定长度的ID * @url id(len) * @method id * @param len 必选 Int 长度 * @return String * @number 60 */ id: function id(len) { return function (len, radix) { var chars = '012abcdefghuwxyz34MNOPQRSTUV567ijklmnopqrst89ABCDEFGHIJKLWXYZ'.split(''); // var chars = Scp.String.newGUID().replace(/-/g,"").split(""); var uuid = [], i; radix = radix || chars.length; if (len) { // Compact form for (i = 0; i < len; i++) uuid[i] = chars[0 | Math.random() * radix]; } else { // rfc4122, version 4 form var r; // rfc4122 requires these characters uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-'; uuid[14] = '4'; // Fill in random data. At i==19 set the high bits of clock // sequence as // per rfc4122, sec. 4.1.5 for (i = 0; i < 36; i++) { if (!uuid[i]) { r = 0 | Math.random() * 16; uuid[i] = chars[i == 19 ? r & 0x3 | 0x8 : r]; } } } return uuid.join(''); }(len || 6, 61); }, /** * showdoc * @catalog API/工具/String * @title 获取GUID * @description 获取GUID * @url guid() * @method guid * @return String * @number 60 */ guid: function guid() { var nowDateTime = new Date(); var myRandom1 = this.randomInt(1, 1000); var myRandom2 = this.randomInt(1, 1000); var myRandom3 = this.randomInt(1, 1000); var decodeStr = nowDateTime.valueOf() + "-" + nowDateTime.getMilliseconds() + "-" + myRandom1 + "-" + myRandom2 + "-" + myRandom3; var encodeStr = this.md5(decodeStr); var guid = encodeStr.substring(0, 8) + "-" + encodeStr.substring(8, 12) + "-" + encodeStr.substring(12, 16) + "-" + encodeStr.substring(16, 20) + "-" + encodeStr.substring(20, 32); return guid.toUpperCase(); }, /** * showdoc * @catalog API/工具/String * @title 字符格式化 * @description 字符格式化 * @url format() * @method format(str,$1,$2,$3......) * @param str 必选 String 需格式化的字符 * @param $1 必选 String 需替换的$1 * @param $2 必选 String 需替换的$2 * @param $3 必选 String 需替换的$3 * @return String * @number 60 */ format: function format() { if (arguments.length == 0) return ''; var argArray = Array.prototype.slice.call(arguments); var result = argArray.shift(); if (argArray.length == 1 && _typeof(argArray[0]) == "object") { var args = argArray[0]; for (var key in args) { if (args[key] != undefined) { var reg = new RegExp("({" + key + "})", "g"); result = result.replace(reg, args[key]); } } } else { for (var i = 0; i < argArray.length; i++) { if (argArray[i] != undefined) { var _reg = new RegExp("({)" + i + "(})", "g"); result = result.replace(_reg, argArray[i]); } } } return result; }, controlGuid: function controlGuid(key) { return (key || '').replace(/[.|#|@|*|\?|\(|\)|<|>|\{|\|\^|\$}]/gi, '_') + '_' + STR.id(8); }, /** * showdoc * @catalog API/工具/String * @title 转换人民币大写 * @description 转换人民币大写 * @method upperMoney * @param numberValue 必选 numberValue * @return String * @number 60 */ upperMoney: function upperMoney(numberValue) { var numberValue = new String(Math.round(Math.abs(numberValue) * 100)); // 数字金额 var chineseValue = ""; // 转换后的汉字金额 var String1 = "零壹贰叁肆伍陆柒捌玖"; // 汉字数字 var String2 = "万仟佰拾亿仟佰拾万仟佰拾元角分"; // 对应单位 var len = numberValue.length; // numberValue 的字符串长度 var Ch1; // 数字的汉语读法 var Ch2; // 数字位的汉字读法 var nZero = 0; // 用来计算连续的零值的个数 var String3; // 指定位置的数值 if (len > 15) { alert("超出计算范围"); return ""; } if (numberValue == 0) { chineseValue = "零元整"; return chineseValue; } String2 = String2.substr(String2.length - len, len); // 取出对应位数的STRING2的值 for (var i = 0; i < len; i++) { String3 = parseInt(numberValue.substr(i, 1), 10); // 取出需转换的某一位的值 if (i != len - 3 && i != len - 7 && i != len - 11 && i != len - 15) { if (String3 == 0) { Ch1 = ""; Ch2 = ""; nZero = nZero + 1; } else if (String3 != 0 && nZero != 0) { Ch1 = "零" + String1.substr(String3, 1); Ch2 = String2.substr(i, 1); nZero = 0; } else { Ch1 = String1.substr(String3, 1); Ch2 = String2.substr(i, 1); nZero = 0; } } else { // 该位是万亿,亿,万,元位等关键位 if (String3 != 0 && nZero != 0) { Ch1 = "零" + String1.substr(String3, 1); Ch2 = String2.substr(i, 1); nZero = 0; } else if (String3 != 0 && nZero == 0) { Ch1 = String1.substr(String3, 1); Ch2 = String2.substr(i, 1); nZero = 0; } else if (String3 == 0 && nZero >= 3) { Ch1 = ""; Ch2 = ""; nZero = nZero + 1; } else { Ch1 = ""; Ch2 = String2.substr(i, 1); nZero = nZero + 1; } if (i == len - 11 || i == len - 3) { // 如果该位是亿位或元位,则必须写上 Ch2 = String2.substr(i, 1); } } chineseValue = chineseValue + Ch1 + Ch2; } if (String3 == 0) { // 最后一位(分)为0时,加上“整” chineseValue = chineseValue + "整"; } return chineseValue; }, /** * showdoc * @catalog API/工具/String * @title 分解附件 * @description 分解附件 * @url format() * @method splitAttach * @param val 必选 附件值 * @return String * @number 60 */ splitAttach: function splitAttach(val) { var list = []; var arr = val.split("|"); var path = window.HIVUI_SETTING ? window.HIVUI_SETTING.review : ""; for (var i = 0; i < arr.length; i++) { var item = arr[i]; if (!item) { continue; } list.push({ name: arr[i].split(";")[0], size: arr[i].split(";")[1], path: arr[i].split(";")[2], url: "".concat(path, "?relativePath=").concat(arr[i].split(";")[2]), iwidth: arr[i].split(";")[5], iheight: arr[i].split(";")[6] }); } return list; }, /** * showdoc * @catalog API/工具/String * @title 附件图片地址 * @description 附件图片地址 * @url format() * @method splitAttachImgUrl * @param val 必选 附件值 * @param ispublic 可选 是否静态 * @return String * @number 60 */ splitAttachImgUrl: function splitAttachImgUrl(val, ispublic) { if (!val) return; var settings = window ? window.HIVUI_SETTING : {}; var baseUrl = settings.url || ''; // 基础 URL var reviewPath = ispublic ? settings.publicreview || '' : settings.review || ''; // 根据是否公共选择路径 var path = reviewPath.startsWith('http') ? reviewPath : "".concat(baseUrl).concat(reviewPath); // 判断是否带有域名 var list = []; var arr = val.split("|"); for (var i = 0; i < arr.length; i++) { var item = arr[i]; if (!item) { continue; } if (arr[i].split(";").length > 2) { list.push({ name: arr[i].split(";")[0], size: arr[i].split(";")[1], path: arr[i].split(";")[2], url: "".concat(path, "?relativePath=").concat(arr[i].split(";")[2]), iwidth: arr[i].split(";")[5], iheight: arr[i].split(";")[6] }); } else { if (arr[0].indexOf("http") != -1) { list.push({ url: arr[0] }); } else { list.push({ url: "".concat(path, "?relativePath=").concat(arr[0]) }); } } } return list[0].url; }, /** * showdoc * @catalog API/工具/String * @title 获取二维码 * @description 生成二维码Base64 URL * @url getQrcode(text, options) * @method getQrcode * @param text 必选,要生成二维码的字符,支持中文 string * @param options 配置对象 object * @json_param options.format String 条形码的类型,默认“auto” (CODE128) * @json_param options.width Number 每个条条的宽度,注意这里不是指整个条形码的宽度,默认:2 * @json_param options.height Number 整个条形码的宽度 ;默认:100 * @json_param options.displayValue boolean 是否显示条形码下面的文字 * @json_param options.fontOptions String 设置条形码文本的粗体和斜体样式 bold / italic / bold italic * @json_param options.font String 设置条形码显示文本的字体 ; 默认:monospace * @json_param options.textAlign String 条形码文本的水平对齐方式,和css中的类似: left / center / right 默认:center * @json_param options.textPosition String 条形码文本的位置 bottom / top * @json_param options.textMargin Number 条形码文本 和 条形码之间的间隙大小; 默认:2 * @json_param options.fontSize Number 设置条形码文本的字体大小; 默认:20 * @json_param options.background String (CSS color) 整个条形码容器的背景颜色; 默认:#ffffff * @json_param options.lineColor String 条形码和文本的颜色 ; 默认:#000000 * @json_param options.margin Number 整个条形码的外面距; 默认:10 * @json_param options.marginTop Number 整个条形码的上边距 * @json_param options.marginBottom Number 整个条形码的下边距 * @json_param options.marginLeft Number 整个条形码的左边距 * @json_param options.marginRight Number 整个条形码的右边距 * @json_param options.valid Function 执行完条形码的一个回调函数,正确true 错误false * @return String * @number 60 */ getQrcode: function getQrcode(text) { var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; if (!text) return; var imgBase64 = jr_qrcode_default.a.getQrBase64(text, options); return imgBase64; }, /** * showdoc * @catalog API/工具/String * @title 获取条形码 * @description 生成条形码Base64 URL * @url getBarcode(text, options) * @method getBarcode * @param text 必选,要生成条形码的字符 string * @param options 配置对象 object * @json_param options.format String 条形码的类型,默认“auto” (CODE128) * @json_param options.width Number 每个条条的宽度,注意这里不是指整个条形码的宽度,默认:2 * @json_param options.height Number 整个条形码的宽度 ;默认:100 * @json_param options.displayValue boolean 是否显示条形码下面的文字 * @json_param options.fontOptions String 设置条形码文本的粗体和斜体样式 bold / italic / bold italic * @json_param options.font String 设置条形码显示文本的字体 ; 默认:monospace * @json_param options.textAlign String 条形码文本的水平对齐方式,和css中的类似: left / center / right 默认:center * @json_param options.textPosition String 条形码文本的位置 bottom / top * @json_param options.textMargin Number 条形码文本 和 条形码之间的间隙大小; 默认:2 * @json_param options.fontSize Number 设置条形码文本的字体大小; 默认:20 * @json_param options.background String (CSS color) 整个条形码容器的背景颜色; 默认:#ffffff * @json_param options.lineColor String 条形码和文本的颜色 ; 默认:#000000 * @json_param options.margin Number 整个条形码的外面距; 默认:10 * @json_param options.marginTop Number 整个条形码的上边距 * @json_param options.marginBottom Number 整个条形码的下边距 * @json_param options.marginLeft Number 整个条形码的左边距 * @json_param options.marginRight Number 整个条形码的右边距 * @json_param options.valid Function 执行完条形码的一个回调函数,正确true 错误false * @return String * @number 60 */ getBarcode: function getBarcode(text) { var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; if (!text) return; var canvas = document.createElement("canvas"); JsBarcode_default()(canvas, text, options); return canvas.toDataURL("image/png"); } }; /* harmony default export */ var string = (STR); // CONCATENATED MODULE: ./src/locale/lang/zh-CN.js var _GLOBAL_LANG_HIUI; var GLOBAL_LANG_HIUI = (_GLOBAL_LANG_HIUI = { "hi_common_cancel": "取消", "hi_common_confirm": "确定", //03472 //03472 "hi_query_all": '全部', "hi_query_noempty": "不能为空!", "hi_query_sysscheme": "系统方案", "hi_query_reset": "重置", "hi_query_btnname": "查询", "hi_query_more": "更多", "hi_order_defaultall": "综合", "hi_timescheme_month": '本月', "hi_timescheme_yeartonow": "今年至今", "hi_timescheme_last6month": "最近六个月", "hi_timescheme_today": "本日", "hi_timescheme_yesterday": "昨日", "hi_timescheme_last7days": "近7天", "hi_timescheme_last28days": "近28天", "hi_timescheme_last84days": "近84天", "hi_timescheme_startdate": "开始日期", "hi_timescheme_enddate": "结束日期", "hi_timescheme_year": "本年度", "hi_timescheme_week": "本周", "hi_timescheme_quarter": "本季度", "hi_timescheme_split": "到", "hi_timescheme_halfyear": "近半年", "hi_timescheme_oneyear": "近一年", "hi_pushdata_linkSelect": "请选择需要打开的链接!", "hi_pushdata_hasAuth": "当前请求功能您没有权限访问!", "hi_pushdata_requestError": "请求异常", "hi_treequery_placeholder": "输入关键字进行过滤", "hi_numberrange_splitstr": "到", "hi_datalist_nodata": "暂无数据!", "hi_importexcel_uploadname": "Excel上传", "hi_importexcel_templatename": "模板下载", "hi_importexcel_noallowfile": "不支持上传{0}格式!", "hi_importexcel_limitfilesize": "限制上传文件大小为{0}M!", "hi_exportexcel_exportname": "Excel导出", "hi_exportexcel_buildfile": "文件生成中", "hi_exportexcel_tip": "导出提示", "hi_exportexcel_isdownload": "是否取消文件下载?", "hi_dataRequest_request": "数据请求中", "hi_dataRequest_isCacel": "是否取消请求?", "hi_dataRequest_tip": "提示" }, _defineProperty(_GLOBAL_LANG_HIUI, "hi_dataRequest_tip", "提示"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_dataRequest_confirm", "确定"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_exportexcel_cancel", "取消"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_exportexcel_confirm", "确定"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_exportexcel_cancel", "取消"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_exportexcel_builddatacomplate", "数据生成完成!"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_expression_close", "关闭"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_expression_confirm", "关闭"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_expression_dialogname", "表达式"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_page_confirm", "确定"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_page_cancel", "取消"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_page_prompt", "提示"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_page_cannotBeNull", "不能为空"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_page_outOfRange", "输入的字符超出"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_page_dataPromptNotSubmitted", "检测到有未提交的数据,是否还原"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_page_dataNotModified", "数据未修改"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_page_initializing", "正在初始化.."), _defineProperty(_GLOBAL_LANG_HIUI, "hi_table_file", "个文件"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_table_index", "序号"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_table_operate", "操作"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_table_add", "新增"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_table_del", "删除"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_table_addsub", "新增子节点"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_table_emptyText", "暂无数据"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_table_confirmFilter", "筛选"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_table_resetFilter", "重置"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_table_clearFilter", "全部"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_table_sumText", "合计"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_table_lockCol", "锁定列"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_table_unlockCol", "解锁列"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_table_fillUp", "向上填充"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_table_fillDown", "向下填充"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_table_copy", "复制"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_table_copyRow", "复制整行"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_table_copyCol", "复制整列"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_table_copyCell", "复制单元格"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_table_download", "下载"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_table_downloadAll", "下载所有"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_table_downloadSelect", "选中下载"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_table_maxAddNode", "最多只能添加{0}级节点"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_table_yesterday", "昨天"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_table_today", "今天"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_table_aweek", "一周"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_table_paste", "excel粘贴"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_table_pasteRow", "指定位整行粘贴"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_table_pasteCol", "指定位整列粘贴"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_table_pasteMsg", "navigator.clipboard 仅支持通过 HTTPS 提供的页面"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_table_colSetting", "字段配置"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_table_colsConfig", "列表字段配置"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_messagebox_title", "提示"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_messagebox_confirm", "确定"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_messagebox_cancel", "取消"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_add", "添加"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_del", "删除"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_reset", "取消"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_save", "保存"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_submit", "提交"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_callout", "调单"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_nexttache", "流转"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_backtache", "回退"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_signout", "加签"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_processSign", "处理加签"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_turnOut", "转办"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_terminate", "终止"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_umpire", "反审"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_monitor", "流程监控"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_savesuccess", "数据保存成功"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_processflowsuccess", "流程处理成功"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_limitequals", "请选择相同的:"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_limitnoequals", "请选择不同的:"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_limitnoequals1", "相同记录已跳过!"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_finished", "流程结束"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_actors", "下个执行者"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_loader", "数据处理中..."), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_agree", "同意"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_disagree", "不同意"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_selectOneError", "至少选择一个执行者!"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_removeallhint", "确定要删除所有记录吗?"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_cancelhint", "确定要取消吗?"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_umpirehint", "确定要启用反审吗?"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_savehint", "数据未保存,是否保存数据?"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_circulationway", "返回方式"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_circulationway_default", "重新流转"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_circulationway_again", "原路返回"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_performType", "原路返回"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_performType1", "独占"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_performType2", "会签"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_performType3", "顺序"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_signType_BeforSign", "前加签"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_signType_AfterSign", "后加签"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_approvecomments", "审批意见"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_assigneeLabel", "额外办理人"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_previousName", "上一节点"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_processor", "处理人"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_previousCount", "节点处理人:共"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_previousCount2", "人审批"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_processortime", "处理时间"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_username", "用户名"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_userid", "用户ID"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_userorgname", "编制名"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_bzid", "编制ID"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_collapse", "收起"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_toolbar_expand", "展开"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_form_required", " 必填!"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_tree_search", "输入关键字进行过滤"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_tree_addPeerBtn", "添加同级"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_tree_add", "添加"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_tree_edit", "编辑"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_tree_del", "删除"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_tree_noNode", "节点不存在"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_tree_removehint", "请先删除子节点!"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_calendar_add", "新增日程"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_calendar_refresh", "刷新"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_calendar_month", "月"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_calendar_week", "周"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_calendar_day", "日"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_calendar_between", "到"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_calendar_prevMonth", '上个月'), _defineProperty(_GLOBAL_LANG_HIUI, "hi_calendar_nextMonth", '下个月'), _defineProperty(_GLOBAL_LANG_HIUI, "hi_calendar_today", '今天'), _defineProperty(_GLOBAL_LANG_HIUI, "hi_calendar_time", '时间'), _defineProperty(_GLOBAL_LANG_HIUI, "hi_select_placeholder", "请选择"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_selectGrid_queryname", "请输入关键词"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_dataSelect_hasselect", "当前记录已选!"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_dataSelect_selectOneError", "至少选择一条记录!"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_dataSelect_Loading", "数据加载中..."), _defineProperty(_GLOBAL_LANG_HIUI, "hi_dataSelect_selectall", "全选"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_dataSelect_clear", "清空"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_dataSelect_selectAdd", "添加选中"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_dataSelect_selectclear", "删除选中"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_dataSelect_queryCdionsNull", "明细条件未传!"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_dataSelect_numberFieldNull", "未配置单号!"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_dataSelect_nosoucredataset", "来源数据集不存在"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_dataSelect_noin", "数据不在查找范围内!"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_upload_deleteTip", '按 delete 键可删除'), _defineProperty(_GLOBAL_LANG_HIUI, "hi_upload_uploadName", "点击上传"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_upload_delete", '删除'), _defineProperty(_GLOBAL_LANG_HIUI, "hi_upload_removeall", '清空'), _defineProperty(_GLOBAL_LANG_HIUI, "hi_upload_preview", "查看图片"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_upload_continue", '继续上传'), _defineProperty(_GLOBAL_LANG_HIUI, "hi_upload_limit", "当前限制选择{0}个文件,本次选择了{1}个文件,共选择了{2}个文件"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_upload_fileExtension", "后缀为"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_upload_limitcount", "数量不超过{0}个"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_upload_fileSize", "大小不超过{0}M"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_upload_hint", "只能上传[ {0} ]文件"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_upload_fileExtensionLimit", "不支持上传{0}格式!"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_upload_files", "个文件"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_upload_uploadBtn", "下载"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_upload_previewbtn", "预览"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_upload_copy", "复制路径"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_imagecropper_dialogtitle", "切图"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_imagecropper_select", "选择封面"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_imagecropper_scalebig", "放大"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_imagecropper_scalesmall", "缩小"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_imagecropper_rotateLeft", "左旋转"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_imagecropper_rotateRight", "右旋转"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_imagecropper_upload", "上传封面"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_imagecropper_originalupload", "原图上传"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_imagecropper_error", "图片类型要求"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_signature_click", "点击签名"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_signature_dialogtitle", "签名"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_signature_remove", "删除签名"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_signature_reset", "清空画板"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_signature_ok", "确认签名"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_signature_nosign", "未签名!"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_mapSelect_translate", "坐标转换失败!"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_page_pageInit", "没有找到初始化接口配置,请在环境配置中新增pageInitUrl节点配置"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_page_pagecontrolstate", "页面控件状态"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_page_reload", "重新加载"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_page_close", "关闭"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_page_userConflict", "用户已切换,当前用户与登录用户不符"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_page_msgTip", "提示"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_monitor_approvalRecord", "审批记录"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_monitor_flow", "流程"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_monitor_displayname", "流程名称"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_monitor_ordernumber", "流程编号"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_monitor_createtime", "创建时间"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_monitor_finishtime", "完成时间"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_monitor_flowstate", "流程状态"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_monitor_finish", "已完成"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_monitor_taskname", "任务名称"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_monitor_noReceived", "未接收"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_monitor_timeConsuming", "耗时"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_monitor_approver", "审批人"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_monitor_processingStatus", "处理状态"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_monitor_processe", "需处理"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_monitor_postscript", "附言"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_monitor_flowchart", "流程图"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_monitor_gantt", "甘特图"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_monitor_processed", "已处理"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_monitor_back", "回退"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_monitor_sysAuto", "系统自动流转"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_monitor_terminate", "终止"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_monitor_cancel", "取消"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_monitor_transfer", "转办"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_monitor_taskWithdraw", "任务撤回"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_monitor_tsBeforSigning", "前加签中"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_monitor_tsAfterSigning", "后加签中"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_monitor_tsBeforSignDW", "前加签处理"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_monitor_tsAfterSignDW", "后加签处理"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_monitor_tsBeforSigned", "已前加签"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_monitor_tsAfterSigned", "已后加签"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_monitor_day", "天"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_monitor_hour", "小时"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_monitor_Min", "分"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_monitor_second", "秒"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_monitor_gantt_dept", "所属部门"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_monitor_gantt_role", "岗位职称"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_dbType_AuditPoint_0", "已审核"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_dbType_AuditPoint_1", "运行中"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_dbType_AuditPoint_2", "审批中"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_dbType_AuditPoint_99", "终止"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_dbType_boolean_yes", "是"), _defineProperty(_GLOBAL_LANG_HIUI, "hi_dbType_boolean_no", "否"), _GLOBAL_LANG_HIUI); /* harmony default export */ var zh_CN = (GLOBAL_LANG_HIUI); // CONCATENATED MODULE: ./src/locale/global.js var global_t = function t(key) { var globalLang = window.GLOBAL_LANG_HIUI || {}; var lang = Object.assign({}, zh_CN, globalLang); return lang[key] || key; }; // CONCATENATED MODULE: ./src/base/utils/src/dbType.js var dbType_this = { dbString: { format: function format(v, _format) { if (typeof _format == "function") { return _format.call(window, v); } if (!_format) return v; return v; }, formatView: function formatView(v, format) { if (typeof format == "function") { return format.call(window, v); } if (!format) return v; return v; }, type: "dbString", formType: { element: "el-input" } }, dbInt: { isNumber: true, format: function format(v, _format2) { v = parseInt(v); if (_format2 == "eleAuditPoint") { var val = ""; switch (v) { case 0: val = global_t("hi_dbType_AuditPoint_0"); break; case 1: val = global_t("hi_dbType_AuditPoint_1"); break; case 99: val = global_t("hi_dbType_AuditPoint_99"); break; case 2: val = global_t("hi_dbType_AuditPoint_2"); break; default: val = isNaN(v) ? "" : v; } return val; } if (typeof _format2 == "function") { return _format2.call(window, v); } if (isNaN(v)) { return ""; } v = v * 1; if (!_format2) return v; return number.format(v, _format2); }, formatView: function formatView(v, format) { if (typeof format == "function") { return format.call(window, v); } var val = dbType_this.dbInt.format(v, format); if (format && format.indexOf('%') > 0) { if (v > 0) { return '<font color="red">' + val + '</font>'; } else { return '<font color="green">' + val + '</font>'; } } return val; }, // 数值型默认值不设置 defautlVal: 0, type: "dbInt", queryType: { element: "HiNumberRange" }, formType: { element: "hi-number", props: { precision: 0, "controls-position": "right" } } }, dbFloat: { isNumber: true, format: function format(v, _format3) { if (typeof _format3 == "function") { return _format3.call(window, v); } v = parseFloat(v); if (isNaN(v)) { return ""; } v = v * 1.0; if (!_format3) return v; return number.format(v, _format3); }, formatView: function formatView(v, format) { if (typeof format == "function") { return format.call(window, v); } var val = dbType_this.dbFloat.format(v, format); if (format && format.indexOf('%') > 0) { if (v > 0) { return '<font color="red">' + val + '</font>'; } else { return '<font color="green">' + val + '</font>'; } } return val; }, type: "dbFloat", formType: { element: "hi-number", props: { "controls-position": "right" } }, queryType: { element: "HiNumberRange" }, defautlVal: 0 }, dbDouble: { isNumber: true, format: function format(v, _format4) { if (typeof _format4 == "function") { return _format4.call(window, v); } v = parseFloat(v); if (isNaN(v)) { return ""; } v = v * 1.0; if (!_format4) return v; return number.format(v, _format4); }, formatView: function formatView(v, format) { if (typeof format == "function") { return format.call(window, v); } var val = dbType_this.dbDouble.format(v, format); if (format && format.indexOf('%') > 0) { if (v > 0) { return '<font color="red">' + val + '</font>'; } else { return '<font color="green">' + val + '</font>'; } } return val; }, type: "dbDouble", formType: { element: "hi-number", props: { "controls-position": "right" } }, queryType: { element: "HiNumberRange" }, defautlVal: 0 }, dbText: { format: function format(v, _format5) { if (typeof _format5 == "function") { return _format5.call(window, v); } if (!_format5) return v; return v; }, formatView: function formatView(v, format) { if (!format) return v; return v; }, type: "dbText", formType: { element: "el-input", props: { type: "textarea", rows: 5 } }, queryType: { element: "el-input", props: {} }, gridType: { element: "hi-textarea", props: { popup: true, rows: 5 } } }, dbBoolean: { format: function format(v, _format6) { if (typeof _format6 == "function") { return _format6.call(window, v); } if (v === "") { return ""; } if (typeof v != "boolean") { if (v * 1 == v) { v = parseInt(v); } } return typeof v == "boolean" || typeof v == "number" ? v ? global_t("hi_dbType_boolean_yes") : global_t("hi_dbType_boolean_no") : v; }, formatView: function formatView(v, format) { return dbType_this.dbBoolean.format(v, format); }, parse: function parse(v) { if (v == "yes" || v == "是" || v == "1" || v == "true" || v == "y") return true;else return false; }, type: "dbBoolean", queryType: { element: "el-checkbox", props: {} }, formType: { element: "el-checkbox", props: {} } }, dbDatetime: { format: function format(v, _format7) { if (typeof _format7 == "function") { return _format7.call(window, v); } if (v == null || v == "") return v; _format7 = _format7 || "yyyy-MM-dd hh:mm:ss"; if (typeof v == "string") v = date.strToDate(v); return date.format(v, _format7); }, formatView: function formatView(v, format) { return dbType_this.dbDatetime.format(v, format); }, /** * @property datetime.type * @description datetime类型 * @type {String} * @final * @static */ type: "dbDatetime", queryType: { element: "HiTimeScheme" }, formType: { element: "el-date-picker", props: { type: "datetime" } } }, dbTimestamp: { format: function format(v, _format8) { if (typeof _format8 == "function") { return _format8.call(window, v); } if (v == null || v == "") return v; _format8 = _format8 || "yyyy-MM-dd hh:mm:ss"; if (typeof v == "string") v = date.strToDate(v); return date.format(v, _format8); }, formatView: function formatView(v, format) { return dbType_this.dbDatetime.format(v, format); }, type: "dbTimestamp", formType: { element: "el-date-picker", props: { type: "datetime" } } }, dbBasic: { type: "dbBasic" }, dbArray: { type: "dbArray" }, dbObject: { type: "dbObject" }, dbList: { type: "dbList" } }; dbType_this.dbDate = dbType_this.dbDatetime; /* harmony default export */ var dbType = (dbType_this); // CONCATENATED MODULE: ./src/base/utils/src/bom.js var bom = { getUrlParam: function getUrlParam(name) { var search = window.location.search; search = search.substring(1, search.length); var values = search.split("&"); var result = {}; for (var i = 0; i < values.length; i++) { var element = values[i]; var _val = element.split("="); result[_val[0]] = _val[1]; } if (name) return result[name]; return result; }, //打开链接 openUrl: function openUrl(url) { var paramters = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; var method = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'get'; var target = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : "_blank"; //创建form表单 var id = "formid" + new Date().valueOf(); if (!url.toLowerCase().startsWith("http") && window.eap) { url = window.eap.utils.biz.getUrl(url); } var formredwin = document.createElement("form"); formredwin.method = method || "get"; document.body.appendChild(formredwin); formredwin.target = target; formredwin.action = url; for (var item in paramters) { if (url.indexOf(item + "=") > -1) continue; var inputObj = document.getElementById("".concat(id, "_").concat(item)); if (inputObj) { inputObj.value = paramters[item]; } else { var opt = document.createElement("input"); opt.type = "hidden"; opt.name = item; opt.value = paramters[item]; formredwin.appendChild(opt); } } formredwin.submit(); formredwin.parentNode.removeChild(formredwin); }, mergeDefaultCfg: function mergeDefaultCfg(defaultCmp, controlCfg) { var result = null; var tempdefaultCmp = defaultCmp; for (var key in controlCfg) { if (_typeof(controlCfg[key]) == "object") { controlCfg[key] = bom.recursionCfg(tempdefaultCmp, controlCfg[key]); } if (key == "crlName" && tempdefaultCmp[controlCfg["crlName"]] != undefined) { controlCfg = Object.assign({}, tempdefaultCmp[controlCfg["crlName"]], controlCfg); } } return controlCfg; }, recursionCfg: function recursionCfg(defaultCmp, recuCfg) { var tempdefaultCmp = defaultCmp; var result = null; for (var key in recuCfg) { if (_typeof(recuCfg[key]) == "object") { recuCfg[key] = bom.recursionCfg(tempdefaultCmp, recuCfg[key]); } if (key == "crlName" && tempdefaultCmp[recuCfg["crlName"]] != undefined) { recuCfg = Object.assign({}, tempdefaultCmp[recuCfg["crlName"]], recuCfg); } } return recuCfg; } }; /* harmony default export */ var src_bom = (bom); // CONCATENATED MODULE: ./src/base/utils/index.js var utils_date = date; var utils_number = number; var utils_string = string; var utils_dbType = dbType; var utils_bom = src_bom; /* harmony default export */ var utils = ({ date: utils_date, number: utils_number, string: utils_string, dbType: utils_dbType, bom: utils_bom }); var DateUtil = date; var NumberUtil = number; var StringUtil = string; var DbTypeUtil = dbType; var BomUtil = src_bom; // CONCATENATED MODULE: ./src/base/dataHelper/src/queryHelper/where.js var defOperate = "="; var where_WhereCondition = /*#__PURE__*/function () { function WhereCondition(config) { _classCallCheck(this, WhereCondition); config = config || {}; this.className = 'WhereCondition'; this.enabled = null, // 新添加的 this.sign = null, // 操作符 this.name = null, // 属性 this.dataType = null, // 数据类型 this.tablefilter = null, // tablefilter this.value = null, // 值 this.enabled = true, this.setValue(config.name, config.value, config.dataType, config.sign, config.tablefilter); } _createClass(WhereCondition, [{ key: "setValue", value: function setValue(property, value, dataType, operator, tablefilter) { this.sign = operator || "eq"; this.name = property || ""; this.dataType = dataType || types.string; this.value = value; this.enabled = true; this.tablefilter = tablefilter == undefined ? false : tablefilter; } }, { key: "getValue", value: function getValue() { return { sign: this.sign, name: this.name, tablefilter: this.tablefilter, dataType: this.dataType, value: this.value, enabled: true }; } }]); return WhereCondition; }(); var where_Where = /*#__PURE__*/function () { /** * showdoc * @title 查询条件 * @className Where * @method Where */ function Where(config) { var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; _classCallCheck(this, Where); config = config || {}; this.params = params; this.className = 'Where'; this.join = null; this.items = null; // _.extend(this, config); if (config.junction) config.join = config.junction; if (!config.join) config.join = "and"; if (config.criterionData == null) { if (!config.join) config.join = "and"; this.setWhereData(config.join, []); } else { var paramsDataType = _typeof(config.criterionData); var objParamsData = {}; switch (paramsDataType) { case "string": objParamsData = JSON.parse(config.criterionData); //$.parseJSON(config.criterionData); break; case "object": objParamsData = config.criterionData; break; } this.setCriterionData(objParamsData); } } _createClass(Where, [{ key: "setValue", value: function setValue(join, items) { this.setWhereData(join, items); } }, { key: "setWhereData", value: function setWhereData(join, items) { this.join = join || "and"; this.items = items || []; } // }, { key: "setCriterionData", value: function setCriterionData(criterionData) { var paramsDataType = _typeof(criterionData); var objParamsData = {}; switch (paramsDataType) { case "string": objParamsData = JSON.parse(criterionData); break; case "object": objParamsData = criterionData; break; } this.join = objParamsData.join || "and"; this.items = []; this.recursiveSetCriteria(this, objParamsData.items); } }, { key: "recursiveSetCriteria", value: function recursiveSetCriteria(where, items) { var me = this; if (items == null || items.length == 0) { where.items = []; return; } var subLen = items.length; for (var i = 0; i < subLen; i++) { var subItem = items[i]; if (subItem.join) { var whereItem = new Where({ join: subItem.join }); this.recursiveSetCriteria(whereItem, subItem.items); where.addWhere(whereItem); } else { if (subItem.sign) { var fieldName = subItem.name.replace("&[", "").replace("]", ""); fieldName = fieldName.replace("this.get('", "").replace("')", ""); if (typeof subItem.value == "function") { var tempVal = me.filterValue(subItem.value); where.addCondition(fieldName, tempVal, subItem.dataType, subItem.sign, false, subItem.tablefilter); } else where.addCondition(fieldName, subItem.value, subItem.dataType, subItem.sign, false, subItem.tablefilter); } } } } // 过滤表达式 }, { key: "filterValue", value: function filterValue(valueExpress) { var me = this, val; val = valueExpress.call.apply(valueExpress, [this].concat(_toConsumableArray(this.params))); return val; } /** * showdoc * @catalog API/工具/Where条件 * @title 添加where条件 * @description 添加where条件 * @method addWhere * @param where 必选 Where where条件 * @return void * @number 60 */ }, { key: "addWhere", value: function addWhere(where) { // if (where) { var isFind = false; for (var i = 0; i < this.items.length; i++) { var itemstr = JSON.stringify(this.items[i]); if (itemstr == JSON.stringify(where.toJSON())) { isFind = true; break; } } if (!isFind) this.items.push(where); } } /** * showdoc * @title 添加字段条件 * @description 添加字段条件 * @method addCondition * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param operator 必选 String 操作符(eq,noteq,in,notin,gt,lt,isnull,isnotnull,gteq,lteq,like,likeLeft,likeRight) * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ }, { key: "addCondition", value: function addCondition(property, value, dataType, operator, isCover, tablefilter) { if (value === null || value == undefined || value === "null") { operator = "isnull"; value = "null"; } if (operator === "isnull") value = "null"; if (dataType && dataType == "dbString") value = value + ""; //采用后端默认值 if (!operator && window.HIVUI_SETTING) operator = window.HIVUI_SETTING.queryOperate || 'eq'; if (!operator) operator = 'eq'; var value1, operateArray = ["in", "notIn"]; if (typeof value === "function") { value = value.call(); } if (isDate_default()(value)) { value = utils_date.format(value, 'yyyy-MM-dd hh:mm:ss'); } if (operateArray.indexOf(operator) > -1 && value && !(value instanceof Array)) { value1 = (value + "").split(","); } else { value1 = value; } if (isCover) for (var i = 0; i < this.items.length; i++) { if (property == this.items[i].name) { this.items[i].value = value1; this.items[i].tablefilter = tablefilter; this.items[i].dataType = dataType || types.string; this.items[i].sign = operator; return; } } var condition = new where_WhereCondition({ name: property, tablefilter: tablefilter, value: value1, sign: operator, dataType: dataType || types.string }); this.items.push(condition); } }, { key: "add", value: function add(property, value, dataType, isCover, tablefilter) { this.addEqual(property, value, dataType, isCover, tablefilter); } }, { key: "_addEqual", value: function _addEqual(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "eq", isCover, tablefilter); } }, { key: "_addArray", value: function _addArray(property, value, dataType, isCover, tablefilter) { if (!(value instanceof Array) && value.split) { value = value.split(","); } if (value.length != 0) this.addCondition(property, value, dataType, "in", isCover, tablefilter); } }, { key: "_addNotIn", value: function _addNotIn(property, value, dataType, isCover, tablefilter) { if (!(value instanceof Array) && value.split) { value = value.split(","); } if (value.length != 0) this.addCondition(property, value, dataType, "notIn", isCover, tablefilter); } }, { key: "_addIsNull", value: function _addIsNull(property, value, dataType, isCover, tablefilter) { this.addCondition(property, "", dataType, "isnull", isCover, tablefilter); } }, { key: "_addIsNotNull", value: function _addIsNotNull(property, value, dataType, isCover, tablefilter) { this.addCondition(property, "", dataType, "isnotnull", isCover, tablefilter); } }, { key: "_addNotEqual", value: function _addNotEqual(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "noteq", isCover, tablefilter); } }, { key: "_addGreaterThan", value: function _addGreaterThan(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "gt", isCover, tablefilter); } }, { key: "_addLessThan", value: function _addLessThan(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "lt", isCover, tablefilter); } }, { key: "_addGreaterThanAndEqual", value: function _addGreaterThanAndEqual(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "gteq", isCover, tablefilter); } }, { key: "_addLike", value: function _addLike(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "like", isCover, tablefilter); } }, { key: "_addLessThanAndEqual", value: function _addLessThanAndEqual(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "lteq", isCover, tablefilter); } }, { key: "_addLeftLike", value: function _addLeftLike(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "likeLeft", isCover, tablefilter); } }, { key: "_addRightLike", value: function _addRightLike(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "likeRight", isCover, tablefilter); } /** * showdoc * @title 添加等于(=)操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method eq * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ }, { key: "eq", value: function eq(property, value, dataType, isCover, tablefilter) { this._addEqual(property, value, dataType, isCover, tablefilter); } /** * showdoc * @title 添加默认操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method def * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ }, { key: "def", value: function def(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, null, isCover, tablefilter); } /** * showdoc * @title 添加in操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method in * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ }, { key: "in", value: function _in(property, value, dataType, isCover, tablefilter) { if (!(value instanceof Array) && value.split) { value = value.split(","); } if (value.length != 0) this.addCondition(property, value, dataType, "in", isCover, tablefilter); } /** * showdoc * @title 添加notin操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method notIn * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ }, { key: "notIn", value: function notIn(property, value, dataType, isCover, tablefilter) { if (!(value instanceof Array) && value.split) { value = value.split(","); } if (value.length != 0) this.addCondition(property, value, dataType, "notIn", isCover, tablefilter); } /** * showdoc * @title 添加inRange 内操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method inRange * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ }, { key: "inRange", value: function inRange(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "inRange", isCover, tablefilter); } /** * showdoc * @title 添加outRange 外操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method outRange * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ }, { key: "outRange", value: function outRange(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "outRange", isCover, tablefilter); } /** * showdoc * @title 添加between操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method between * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ }, { key: "between", value: function between(property, value, dataType, isCover, tablefilter) { this.addCondition(property, value, dataType, "between", isCover, tablefilter); } /** * showdoc * @title 添加noteq不等于操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method noteq * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ }, { key: "noteq", value: function noteq(property, value, dataType, isCover, tablefilter) { this._addNotEqual(property, value, dataType, isCover, tablefilter); } /** * showdoc * @title 添加大于操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method gt * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ }, { key: "gt", value: function gt(property, value, dataType, isCover, tablefilter) { this._addGreaterThan(property, value, dataType, isCover, tablefilter); } /** * showdoc * @title 添加大于等于操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method gteq * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ }, { key: "gteq", value: function gteq(property, value, dataType, isCover, tablefilter) { this._addGreaterThanAndEqual(property, value, dataType, isCover, tablefilter); } /** * showdoc * @title 添加小于操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method lt * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ }, { key: "lt", value: function lt(property, value, dataType, isCover, tablefilter) { this._addLessThan(property, value, dataType, isCover, tablefilter); } /** * showdoc * @title 添加小于等于操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method lteq * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ }, { key: "lteq", value: function lteq(property, value, dataType, isCover, tablefilter) { this._addLessThanAndEqual(property, value, dataType, isCover, tablefilter); } /** * showdoc * @title 添加like操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method like * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ }, { key: "like", value: function like(property, value, dataType, vtype, isCover, tablefilter) { this._addLike(property, value, dataType, isCover, tablefilter); } /** * showdoc * @title 添加左like操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method leftLike * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ }, { key: "leftLike", value: function leftLike(property, value, dataType, isCover, tablefilter) { this._addLeftLike(property, value, dataType, isCover, tablefilter); } /** * showdoc * @title 添加右like操作符字段条件 * @description 添加默认操作符字段条件,操作符取决于全局设置 * @method rightLike * @param property 必选 String 字段名 * @param value 必选 String|Array 值 * @param dataType 必选 String 值类型 * @param isCover 可选 boolean 是否覆盖原来存在的值 * @param tablefilter 可选 String tablefilter过滤 * @return void */ }, { key: "rightLike", value: function rightLike(property, value, dataType, isCover, tablefilter) { this._addRightLike(property, value, dataType, isCover, tablefilter); } }, { key: "getItemByIndex", value: function getItemByIndex(i) { return this.items[i]; } }, { key: "deleteItemByIndex", value: function deleteItemByIndex(i) { this.items.splice(i, 1); } }, { key: "getData", value: function getData() { var len = this.items.length; if (len == 0) { return null; } var whereData = { join: this.join, items: [] }; for (var i = 0; i < len; i++) { var item = this.items[i]; this.recursiveWhereData(whereData, item); } return whereData; } }, { key: "recursiveWhereData", value: function recursiveWhereData(whereData, item) { if (item.items) { var subLen = item.items.length; if (subLen > 0) { var subWhereData = { join: item.join, items: [] }; for (var i = 0; i < subLen; i++) { var subItem = item.items[i]; this.recursiveWhereData(subWhereData, subItem); } whereData.items.push(subWhereData); } } else { var itemCondition = item.getValue(); whereData.items.push(itemCondition); } } /** * showdoc * @catalog API/工具/Where条件 * @title 获取where条件JSON数据 * @description 获取where条件JSON数据 * @method toJSON() * @return json * @number 60 */ }, { key: "toJSON", value: function toJSON() { return this.getData(); } /** * showdoc * @catalog API/工具/Where条件 * @title 获取where条件字符串数据 * @description 获取where条件字符串数据 * @url toStr() * @method toStr() * @return String * @number 60 */ }, { key: "toStr", value: function toStr() { return JSON.stringify(this.getData()); } /** * showdoc * @catalog API/工具/Where条件 * @title 根据字段ID返回该字段条件对象 * @description 根据字段ID返回该字段条件对象 * @param key 必选 String 字段名 * @method getConditionByKey(key) * @return json * @number 60 */ }, { key: "getConditionByKey", value: function getConditionByKey(key) { var len = this.items.length; for (var i = 0; i < len; i++) { var item = this.items[i]; if (item.name && item.name == key) { return item; } else { if (!item.items || item.items.length == 0) return null; var _item = this._recursionWhere1(item.items, key); if (_item != null) return _item; } } return null; } }, { key: "_recursionWhere1", value: function _recursionWhere1(items, key) { var i = 0, len = items.length; for (; i < len; i++) { var item = items[i]; if (item.name && item.name == key) return item; if (item.name) continue; if (!item.items || item.items.length == 0) return null; item.items.length > 0 && this._recursionWhere1(item.items, key); } } // 应用存储过程 }, { key: "setCustomWhere", value: function setCustomWhere(join) { var where = new Where({ join: join || "and" }); var i = 0, len = this.items.length; for (; i < len; i++) { if (this.items[i].name) { where.addCondition(this.items[i].name, this.items[i].value, this.items[i].dataType, this.items[i].sign, this.items[i].isCover, this.items[i].tablefilter); } else this._recursionWhere(where, this.items[i].items); } this.join = where.join; this.items = where.items; } // 递归where 所有 }, { key: "_recursionWhere", value: function _recursionWhere(where, items) { var i = 0, len = items.length; for (; i < len; i++) { if (items[i].name) where.addCondition(items[i].name, items[i].value, items[i].dataType, items[i].sign, items[i].isCover, items[i].tablefilter);else this._recursionWhere(where, items[i].items); } } }, { key: "isPaging", value: function isPaging() { var pageIndexKey = keys.pageIndex; var pageSizeKey = keys.pageSize; if (has_default()(this, pageIndexKey) && has_default()(this, pageSizeKey)) return true;else return false; } }, { key: "setPage", value: function setPage(pageIndex, pageSize) { var pageIndexKey = keys.pageIndex; var pageSizeKey = keys.pageSize; if (pageIndex == -1 || pageSize == -1) { pageIndex = -1; pageSize = -1; } this[pageIndexKey] = pageIndex; this[pageSizeKey] = pageSize; return; } /** * showdoc * @catalog API/工具/Where条件 * @title 获取当前where起止页 getPageIndex * @description 获取当前where起止页。 * @url getPageIndex() * @method getPageIndex() * @return Int * @number 60 */ }, { key: "getPageIndex", value: function getPageIndex() { var pageIndex = this[keys.pageIndex]; if (pageIndex == -1) return 1; return pageIndex; } /** * showdoc * @catalog API/工具/Where条件 * @title 获取当前where页每页显示多少条 getPageSize * @description 获取当前where每页显示多少条。 * @url getPageSize() * @method getPageSize() * @return Int * @number 60 */ }, { key: "getPageSize", value: function getPageSize() { var pageSize = this[keys.pageSize]; if (pageSize == -1) return 1000; return pageSize; } }]); return Where; }(); where_Where.prototype.equal = where_Where.prototype.eq; /* harmony default export */ var queryHelper_where = (where_Where); // CONCATENATED MODULE: ./src/base/dataHelper/src/queryHelper/orders.js var orders_Orders = /*#__PURE__*/function () { /** * showdoc * @title 查询排序 * @className Orders * @method Orders */ function Orders(config) { _classCallCheck(this, Orders); config = config || {}; this.orderData = []; if (config.orderData) { this.orderData = config.orderData; } } _createClass(Orders, [{ key: "getOrderItemModel", value: function getOrderItemModel() { return { name: "", desc: "", type: "desc" }; } /** * showdoc * @title 添加降序条件 * @description 添加降序条件 * @method addDesc * @param property 必选 String 字段名 * @param desc 可选 String 字段描述 * @return void * @number 1 */ }, { key: "addDesc", value: function addDesc(property, desc) { this.addOrder(property, "desc", desc); } /** * showdoc * @catalog API/工具/Orders排序 * @title 添加升序 * @description 添加升序条件 * @method addAsc * @param property 必选 String 字段名 * @param desc 可选 String 字段描述 * @return void */ }, { key: "addAsc", value: function addAsc(property, desc) { this.addOrder(property, "asc", desc); } /** * showdoc * @title 添加排序 * @description 添加排序 * @method addOrder * @param property 必选 String 字段名 * @param type 必选 String 排序类型 * @param desc 可选 String 字段描述 * @return void * @number 1 */ }, { key: "addOrder", value: function addOrder(property, type, desc) { var orderItem = this.getOrderItemModel(); orderItem.name = property; orderItem.desc = desc; orderItem.type = type; this.orderData.push(orderItem); } /** * showdoc * @title 获取order排序JSON数据 * @description 获取order排序JSON数据 * @method toJSON * @return json * @number 60 */ }, { key: "toJSON", value: function toJSON() { return this.orderData; } /** * showdoc * @title 获取order排序字符串数据 * @description 获取order排序字符串数据 * @method toStr * @return json * @number 60 */ }, { key: "toStr", value: function toStr() { return JSON.stringify(this.orderData); } }]); return Orders; }(); // CONCATENATED MODULE: ./src/base/dataHelper/src/queryHelper/param.js var param_Param = /*#__PURE__*/function () { /** * showdoc * @title 查询参数 * @className Param * @description 查询参数 * @method Param */ function Param(config) { _classCallCheck(this, Param); config = config || {}; this.orders = null; this.className = 'Params'; this.paramKey = "queryParam"; // _.extend(this, config); this.where = config.where || new queryHelper_where(); this.returnTotal = config.returnTotal; this.zcQuery = config.zcQuery; this.modelFilePath = config.modelFilePath || ""; this.orders = config.orders; this.slaveEntities = config.slaveEntities || []; if (config.initData) { this.setJsonParamsData(config.initData); } if (config.paramsData) { this.setJsonParamsData(config.paramsData); } if (config.whereData) { this.setJsonWhereData(config.whereData); } } _createClass(Param, [{ key: "createWhereByModel", value: function createWhereByModel(values, model) { model = model || {}; var where = new queryHelper_where(); for (var field in values) { var bizFiled = model.fields ? model.fields[field] : null; var val = values[field]; if (val != null && val != "" && val != undefined) { if (bizFiled) { where[bizFiled.operate](field, val); } else { if (utils.isArray(val)) where.in(field, val);else where.def(field, val); } } } if (this.where) this.where.addConditions(where);else this.where = where; return where; } }, { key: "setJsonWhereData", value: function setJsonWhereData(whereData) { // 判断传入的值是否字符 if (!whereData) return; this.where = new queryHelper_where({ criterionData: whereData }); } }, { key: "setJsonParamsData", value: function setJsonParamsData(paramsData) { // 判断传入的值是否字符 if (!paramsData) return; var paramsDataType = _typeof(paramsData); var objParamsData = {}; switch (paramsDataType) { case "string": objParamsData = JSON.parse(paramsData); break; case "object": objParamsData = paramsData; break; } if (objParamsData.queryCdions) { this.where = new queryHelper_where({ criterionData: objParamsData.queryCdions }); } if (objParamsData.orders) { this.orders = new orders_Orders({ orderData: objParamsData.orders }); } if (objParamsData.having) { this.having = new queryHelper_where({ criterionData: objParamsData.having.criterion }); } if (objParamsData.groupBy) { this.groupBy = objParamsData.groupBy; } } /** * showdoc * @catalog API/工具/Param参数 * @title 设置分组 * @description 设置分组 * @method setGroup * @param groupFields 必选 Array 分组字段 * @return void * @number 60 */ }, { key: "setGroup", value: function setGroup(groupFields) { this.groupBy = groupFields; } /** * showdoc * @title 获取分组 * @description 获取分组 * @method getGroup * @return Array */ }, { key: "getGroup", value: function getGroup() { return this.groupBy; } /** * showdoc * @title 获取where条件 * @description 获取where条件 * @method getWhere * @return Where * @number 60 */ }, { key: "getWhere", value: function getWhere() { return this.where; } /** * showdoc * @catalog API/工具/Param参数 * @title 设置where条件 * @description 设置where条件 * @method setWhere * @param where 必选 where where条件 * @return void * @number 60 */ }, { key: "setWhere", value: function setWhere(where) { this.where = where; } /** * showdoc * @catalog API/工具/Param参数 * @title 设置Having条件 * @description 设置Having条件 * @method setHaving * @param where 必选 where where条件 * @return void * @number 60 */ }, { key: "setHaving", value: function setHaving(where) { this.having = where; } /** * showdoc * @title 获取Having条件 * @description 获取Having条件 * @method getHaving * @return void * @number 60 */ }, { key: "getHaving", value: function getHaving() { return this.having; } /** * showdoc * @catalog API/工具/Param参数 * @title 获取排序条件 * @description 获取排序条件 * @method getOrders * @return void * @number 60 */ }, { key: "getOrders", value: function getOrders() { return this.orders; } /** * showdoc * @catalog API/工具/Param参数 * @title 设置排序条件 * @description 设置排序条件 * @method setOrders * @param orders 必选 order对象 * @return void * @number 60 */ }, { key: "setOrders", value: function setOrders(orders) { this.orders = orders; } /** * showdoc * @catalog API/工具/Param参数 * @title 获取查询JSON数据 * @description 获取查询JSON数据 * @method toJSON * @return json * @number 60 */ }, { key: "toJSON", value: function toJSON() { var params = {}; // params.having = {}; if (this.where) { var mycriterion = this.where.toJSON(); if (mycriterion) { params.queryCdions = this.where.toJSON(); } } /* * // if (this.having) { // var mycriterion = this.having.toJSON(); // * if (mycriterion) { // // params.having.criterion = * this.having.toJSON(); // } // } */ if (this.groupBy) { params.groupBy = this.groupBy; } if (this.orders) { params.orderBy = this.orders.toJSON(); } return params; } }, { key: "decodeStr", value: function decodeStr(s) { return unescape(s.replace(/\\(u[0-9a-fA-F]{4})/gm, '%$1')); } }, { key: "setSlaveEntities", value: function setSlaveEntities(params) { this.slaveEntities = params; } //递归主从SlaveEntities条件,主从从 }, { key: "toRecursiveSlaveEntitiesWithKey", value: function toRecursiveSlaveEntitiesWithKey(slaveEntitiesItem) { var json = {}, _this = slaveEntitiesItem; // param[this.paramKey] = this.toJSON() var body = _this.toJSON(); json[keys.body] = body; json[keys.pageIndex] = _this[keys.pageIndex] || _this.where[keys.pageIndex]; json[keys.pageSize] = _this[keys.pageSize] || _this.where[keys.pageSize]; json[keys.returnTotal] = _this.returnTotal; json[keys.modelFilePath] = _this.modelFilePath; json[keys.zcQuery] = _this.zcQuery; if (_this.slaveEntities.length > 0) { var _slaveEntities = []; for (var i = 0; i < _this.slaveEntities.length; i++) { _slaveEntities.push(this.toRecursiveSlaveEntitiesWithKey(_this.slaveEntities[i])); } json[keys.slaveEntities] = _slaveEntities; //JSON.stringify(_slaveEntities); } return json; } }, { key: "toStringWithKey", value: function toStringWithKey() { var json = {}; // param[this.paramKey] = this.toJSON() var body = JSON.stringify(this.toJSON()); json[keys.body] = body; json[keys.pageIndex] = this[keys.pageIndex] || this.where[keys.pageIndex]; json[keys.pageSize] = this[keys.pageSize] || this.where[keys.pageSize]; json[keys.returnTotal] = this.returnTotal; json[keys.modelFilePath] = this.modelFilePath; json[keys.zcQuery] = this.zcQuery; if (this.slaveEntities.length > 0) { var _slaveEntities = []; for (var i = 0; i < this.slaveEntities.length; i++) { _slaveEntities.push(this.toRecursiveSlaveEntitiesWithKey(this.slaveEntities[i])); } json[keys.slaveEntities] = JSON.stringify(_slaveEntities); //JSON.stringify(_slaveEntities); } return json; // this.toJSON(); } /** * showdoc * @catalog API/工具/Param参数 * @title 获取查询字符串数据 * @description 获取查询字符串数据 * @method toStr * @return String * @number 60 */ }, { key: "toStr", value: function toStr() { return JSON.stringify(this.toJSON()); } /** * showdoc * @title 是否有翻页条件 * @description 是否有翻页条件 * @method isPaging * @return boolean * @number 60 */ }, { key: "isPaging", value: function isPaging() { var pageIndexKey = keys.pageIndex; var pageSizeKey = keys.pageSize; if (_has(this, pageIndexKey) && _has(this, pageSizeKey)) return true;else return false; } /** * showdoc * @title 设置翻页 * @description 设置翻页 * @method setPage * @param pageIndex 必选 Int 起止页 * @param pageSize 必选 Int 每页显示多少条 * @return void * @number 60 */ }, { key: "setPage", value: function setPage(pageIndex, pageSize) { var pageIndexKey = keys.pageIndex; var pageSizeKey = keys.pageSize; if (pageIndex == -1 || pageSize == -1) { pageIndex = -1; pageSize = -1; } this[pageIndexKey] = pageIndex; this[pageSizeKey] = pageSize; return; } /** * showdoc * @catalog API/工具/Where条件 * @title 获取当前where起始页 * @description 获取当前where起始页 * @method getPageIndex * @return Int * @number 60 */ }, { key: "getPageIndex", value: function getPageIndex() { var pageIndex = this[keys.pageIndex]; if (pageIndex == -1) return 1; return pageIndex; } /** * showdoc * @catalog API/工具/Where条件 * @title 获取当前where页每页显示多少条 * @description 获取当前where每页显示多少条 * @method getPageSize * @return Int * @number 60 */ }, { key: "getPageSize", value: function getPageSize() { var pageSize = this[keys.pageSize]; if (pageSize == -1) return 1000; return pageSize; } }]); return Param; }(); // EXTERNAL MODULE: ./node_modules/lodash/isArray.js var isArray = __webpack_require__("6747"); var isArray_default = /*#__PURE__*/__webpack_require__.n(isArray); // CONCATENATED MODULE: ./src/base/dataHelper/src/queryHelper/index.js //行转列 var queryHelper_rowToCol = function rowToCol(data, rowField, colField, valField) { var result = [], row = {}; if (data.length > 0) { var rowSign = row[rowField] = data[0][rowField]; data.forEach(function (element) { //标识不一样就创建行 if (rowSign != element[rowField]) { result.push(row); row = {}; rowSign = element[rowField]; row[rowField] = rowSign; } row[element[colField]] = element[valField]; }); result.push(row); } return result; }; var queryHelper_query = function query(param, modelFile, funcPath, _ref) { var request = _ref.request, url = _ref.url, method = _ref.method, pn = _ref.pn, extParam = _ref.extParam, viewItemId = _ref.viewItemId, rowToCol = _ref.rowToCol, async = _ref.async, success = _ref.success, fail = _ref.fail; var data = { "queryCdion": "{}" }; if (param) { var paramInstance; if (param.className == "Where") { paramInstance = new param_Param(); //new queryParam.Param() paramInstance.where = param; } else if (param.className == "Params") { paramInstance = param; } else { paramInstance = new param_Param(); var pageSize = null, pageIndex = null; var where = new queryHelper_where(); for (var field in param) { var val = param[field]; if (field == '$pageSize') { pageSize = val; continue; } if (field == '$pageIndex') { pageIndex = val; continue; } if (isArray_default()(val)) { if (isDate_default()(val[0])) { where.between(field, utils_date.format(val[0], "yyyy-MM-dd hh:mm:ss") + '到' + utils_date.format(val[1], "yyyy-MM-dd hh:mm:ss")); } else where.in(field, val); } else where.def(field, val); } if (pageSize !== null && pageIndex !== null) where.setPage(pageIndex, pageSize); paramInstance.where = where; } data = paramInstance.toStringWithKey(); } data.modelFilePath = modelFile; data[keys.funcpath] = funcPath; data[keys.viewItemId] = viewItemId; //将来要移到url中 //data.funcPath = funcPath; if (extParam) { Object.assign(data, extParam); } var promise; //let dataUrl = url + "/" + modelFile; var dataUrl = url; funcPath = funcPath || ""; if (pn) { if (dataUrl.indexOf('?') == -1) dataUrl = dataUrl + "?pn=" + pn;else dataUrl = dataUrl + "&pn=" + pn; } promise = request({ url: dataUrl, method: method || 'post', async: async, data: data, success: success, fail: fail }); // promise.then(res => { // //行转列 // if (rowToCol && rowToCol.rowField) { // res.dataPack.row = rowToCol(res.dataPack.row) // } // }) return promise; }; var getExportParam = function getExportParam(_ref2) { var request = _ref2.request, url = _ref2.url, csv = _ref2.csv; var params = { csv: csv }; return request({ url: url, method: 'get', params: params }); }; var queryHelper_exportData = function exportData(param, modelFile, funcPath, _ref3) { var request = _ref3.request, url = _ref3.url, method = _ref3.method, pn = _ref3.pn, viewItemId = _ref3.viewItemId, extParam = _ref3.extParam; var data = { // "queryCdion": "{}" }; if (param) { var paramInstance; if (param.className == "Where") { paramInstance = new param_Param(); //new queryParam.Param() paramInstance.where = param; } else if (param.className == "Params") { paramInstance = param; } else { paramInstance = new param_Param(); var pageSize = null, pageIndex = null; var where = new queryHelper_where(); for (var field in param) { var val = param[field]; if (field == '$pageSize') { pageSize = val; continue; } if (field == '$pageIndex') { pageIndex = val; continue; } if (isArray_default()(val)) { if (isDate_default()(val[0])) { where.between(field, utils_date.format(val[0], "yyyy-MM-dd hh:mm:ss") + '到' + utils_date.format(val[1], "yyyy-MM-dd hh:mm:ss")); } else where.in(field, val); } else where.def(field, val); } if (pageSize !== null && pageIndex !== null) where.setPage(pageIndex, pageSize); paramInstance.where = where; } data[keys.body] = paramInstance.toJSON(); //paramInstance.toStringWithKey() data[keys.pageIndex] = paramInstance.where[keys.pageIndex]; data[keys.pageSize] = paramInstance.where[keys.pageSize]; data[keys.viewItemId] = viewItemId; //delete data[keys.zcQuery] //delete data[keys.returnTotal] } data[keys.funcpath] = funcPath; data.modelFilePath = modelFile; // if (param.zcQuery) // data[keys.slaveExport] = param.zcQuery //将来要移到url中 //data.funcPath = funcPath; if (extParam) { if (extParam.sheetStyle) { data[keys.sheetStyle] = extParam.sheetStyle; delete extParam.sheetStyle; } if (extParam[keys.slaveExport] !== undefined) { data[keys.slaveExport] = extParam[keys.slaveExport]; delete extParam[keys.slaveExport]; } } if (data[keys.slaveExport] == undefined && param.zcQuery) data[keys.slaveExport] = param.zcQuery; var promise; //let dataUrl = url + "/" + modelFile; var dataUrl; funcPath = funcPath || ""; dataUrl = url; if (pn) { if (dataUrl.indexOf('?') == -1) dataUrl = dataUrl + "?pn=" + pn;else dataUrl = dataUrl + "&pn=" + pn; } var psotData = {}; if (data.title) { psotData.title = data.title; delete data.title; } psotData[keys.sheetDatas] = JSON.stringify([data]); psotData.__isIntercept = false; if (extParam) psotData = Object.assign(psotData, extParam); promise = request({ url: dataUrl, method: method || 'post', data: psotData }); return promise; }; /* harmony default export */ var queryHelper = ({ Param: param_Param, Where: queryHelper_where, types: types, Orders: orders_Orders, query: queryHelper_query, exportData: queryHelper_exportData, rowToCol: queryHelper_rowToCol, getExportParam: getExportParam }); // EXTERNAL MODULE: ./node_modules/lodash/isNumber.js var isNumber = __webpack_require__("501e"); var isNumber_default = /*#__PURE__*/__webpack_require__.n(isNumber); // EXTERNAL MODULE: ./node_modules/lodash/cloneDeep.js var cloneDeep = __webpack_require__("0644"); var cloneDeep_default = /*#__PURE__*/__webpack_require__.n(cloneDeep); // CONCATENATED MODULE: ./src/base/dataHelper/src/saveHelper/index.js var paramKey = { //subSetkeyVal:"$subSetkeyVal", root: '__body', version: "__version", data: 'data', funcPath: "__funcpath", modelFile: 'modelFilePath', funcFile: 'fpath', state: '$state', old: '$old', insertStateVal: 'rsInsert', updateStateVal: 'rsUpdate', removeStateVal: 'rsDelete', overrideStateVal: 'rsOverride', normalStateVal: "rsNormal", viewItemId: "viewItemId" }; /** * showdoc * @title 数据保存包 * @className HiDataHelper * @description 数据保存包 * @method SavePackHelper * @demo * let modelFile = "数据集实体路径"; * let funcPath = "功能路径"; * let old={FNUMBER:"DH-2210-2201",FIELD1:'data1',FIELD2:'data2'}; //原始数据中必须包含主键字段值 * let data = {FIELD1:'d1',FIELD2:'d2'}; * let saveHelper = this.createSaveHelper(modelFile,funcPath); //在页面上下文,创建saveHelper * saveHelper.update(old,data); //组装更新包 * saveHelper.add({FNUMBER:"NEW-YYMMDD-9999",FIELD1:'a2',FIELD2:'a2'}); //组装新增包 * saveHelper.remove({FNUMBER:"DH-2210-2200"}); //组装删除包,删除数据中必须包含主键字段值 * saveHelper.save().then(res=>{ * //保存成功 * if(res.status==200){ * * } * }) */ var saveHelper_SavePackHelper = /*#__PURE__*/function () { /** * @title 构造函数 * @description 保存助手构造函数 * @method HiDataHelper * @param modelFile 必选 string 数据集路径 * @param options 必选 json 请求选项 * @param options.request 必选 axios 请求对象 * @param options.url 必选 url 请求rul * @param options.pn 选填 pn 项目ID * @param options.fieldConfig 选填 字段配置 * @return HiDataHelper */ function SavePackHelper(modelFile, funcPath, _ref) { var request = _ref.request, url = _ref.url, wsUrl = _ref.wsUrl, pn = _ref.pn, viewItemId = _ref.viewItemId, extParam = _ref.extParam, colToRow = _ref.colToRow, fieldConfig = _ref.fieldConfig; _classCallCheck(this, SavePackHelper); this.className = "SavePackHelper"; this.modelFile = modelFile; this.request = request; this.colToRow = colToRow; this.viewItemId = viewItemId; this._appendSavePack = []; this.fieldConfig = fieldConfig; funcPath = funcPath || ""; this.url = url; this.wsUrl = wsUrl; // if (url.endsWith("/") == false && funcPath.startsWith("/") == false) // this.url = url + "/" + (funcPath || ""); // else // this.url = url + (funcPath || ""); this.funcPath = funcPath; this.extParam = extParam; this.pn = pn; this.dataPacks = {}; this.dataPacks[paramKey.data] = []; this.dataPacks[paramKey.modelFile] = this.modelFile; //this.dataPacks[paramKey.funcPath] = this.funcPath; } //新增或删除包行转列 _createClass(SavePackHelper, [{ key: "insertOrDeletePackageColToRow", value: function insertOrDeletePackageColToRow(data) { var dynamic = this.colToRow, result = [], colField = dynamic.colField, valField = dynamic.valField, rowField = dynamic.rowField; //组装系统关键字字段 var _row = {}; _row[dynamic.rowField] = data[rowField] || new Date().valueOf(); for (var colName in data) { if (colName.startsWith("$")) { _row[colName] = data[colName]; } } for (var _colName in data) { if (_colName.startsWith("$")) continue; var row = cloneDeep_default()(_row); row[colField] = _colName; row[valField] = data[_colName]; result.push(row); } return result; } //更新包行转列 }, { key: "updatePackageColToRow", value: function updatePackageColToRow(data) { var dynamic = this.colToRow, result = [], colField = dynamic.colField, valField = dynamic.valField, rowField = dynamic.rowField; //组装系统关键字字段 var _row = {}, _$old = {}; _$old[dynamic.rowField] = data[paramKey.old][rowField]; for (var colName in data) { if (colName.startsWith("$")) { _row[colName] = data[colName]; } } for (var _colName2 in data) { if (_colName2.startsWith("$")) { continue; } var row = cloneDeep_default()(_row); var $old = cloneDeep_default()(_$old); row[valField] = data[_colName2]; $old[valField] = data[paramKey.old][_colName2]; $old[colField] = _colName2; row[paramKey.old] = $old; result.push(row); } return result; } //转数据 }, { key: "conversion", value: function conversion(data, emptyValue) { if (data) { var result = {}; for (var key in data) { var val = data[key]; if (val === undefined && emptyValue === undefined) { continue; } if (isDate_default()(val)) { result[key] = utils_date.format(val, 'yyyy-MM-dd hh:mm:ss'); } else if (val === undefined && emptyValue !== undefined) { result[key] = emptyValue; } else if (val != null && _typeof(val) == 'object' && !val[paramKey.modelFile]) { result[key] = JSON.stringify(val); } else { if (this.fieldConfig && this.fieldConfig[key] && val) { var bizField = this.fieldConfig[key]; //kingbase数据库字符类型字段的值一定要字符(转JSON是要用引号引起来) if (bizField.dbtype == "dbString" && isNumber_default()(val)) { result[key] = val.toString(); } else result[key] = val; } else result[key] = val; } } return result; } } }, { key: "normal", value: function normal(data) { var me = this; data = this.conversion(data); data[paramKey.state] = paramKey.normalStateVal; if (this.colToRow && this.colToRow.rowField) { me.dataPacks[paramKey.data] = me.dataPacks[paramKey.data].concat(this.insertOrDeletePackageColToRow(data)); } else me.dataPacks[paramKey.data].push(data); } /** * showdoc * @title 新增数据 * @description 新增数据 * @method add * @param data 必选 json 数据 * @return void */ }, { key: "add", value: function add(data) { var me = this; data = this.conversion(data); data[paramKey.state] = paramKey.insertStateVal; if (this.colToRow && this.colToRow.rowField) { me.dataPacks[paramKey.data] = me.dataPacks[paramKey.data].concat(this.insertOrDeletePackageColToRow(data)); } else me.dataPacks[paramKey.data].push(data); } /** * showdoc * @title 更新数据 * @description 更新数据 * @method update * @param old 必选 json 旧数据(原数据)必须包含主键字段 * @param data 必选 json 新数据(要更新的数据) * @return void * @demo * update({primaryField:1,Field1:0},{Field1:1,Field2:2}) */ }, { key: "update", value: function update(old, data) { var me = this; var row = {}; data = this.conversion(data, null); old = this.conversion(old); for (var a in data) { if (data[a] === void 0) { continue; } row[a] = data[a]; } row[paramKey.state] = paramKey.updateStateVal; row[paramKey.old] = old; if (this.colToRow && this.colToRow.rowField) { me.dataPacks[paramKey.data] = me.dataPacks[paramKey.data].concat(this.updatePackageColToRow(row)); } else me.dataPacks[paramKey.data].push(row); } }, { key: "setRedundant", value: function setRedundant(old, data) {} /** * showdoc * @title 重写数据 * @description 重写数据包,数据库中有该数据就更新,没有则新增 * @method override * @param old 必选 json 旧数据(原数据) * @param data 必选 json 新数据(要更新或新增的数据)必须包含主键字段 * @return void * @number 400 */ }, { key: "override", value: function override(old, data) { if (!data) { data = old; old = null; } if (old) old = this.conversion(old); data = this.conversion(data); var me = this; var row = {}; for (var a in data) { if (data[a] === void 0) { continue; } row[a] = data[a]; } row[paramKey.state] = paramKey.overrideStateVal; if (old) row[paramKey.old] = old; if (this.colToRow && this.colToRow.rowField) { me.dataPacks[paramKey.data] = me.dataPacks[paramKey.data].concat(this.updatePackageColToRow(row)); } else me.dataPacks[paramKey.data].push(row); } /** * showdoc * @title 删除数据 * @description 删除数据 * @method remove * @param data 必选 json 要删除据数据,必须包含主键字段 * @return void */ }, { key: "remove", value: function remove(data) { var me = this; data[paramKey.state] = paramKey.removeStateVal; data = this.conversion(data); if (this.colToRow && this.colToRow.rowField) { me.dataPacks[paramKey.data] = me.dataPacks[paramKey.data].concat(this.insertOrDeletePackageColToRow(data)); } else me.dataPacks[paramKey.data].push(data); } /** * @title 获取数据包字符串 * @method toString * @description 获取数据包字符串 */ }, { key: "toString", value: function toString() { return JSON.stringify(this.dataPacks); } /** * showdoc * @title 清空数据包 * @description 清空数据包 * @method clear * @return void */ }, { key: "clear", value: function clear() { this.dataPacks = {}; } /** * showdoc * @title 获取数据包 * @description 获取数据包 * @method getDataPack * @return json */ }, { key: "getDataPack", value: function getDataPack() { return this.dataPacks; } /** * showdoc * @title 是否含有数据包 * @description 是否含有数据包 * @method isEmpty * @return boolean */ }, { key: "isEmpty", value: function isEmpty() { if (this.dataPacks[paramKey.data] && this.dataPacks[paramKey.data].length > 0) return false; return true; } /** * showdoc * @title 追加保存包 * @description 追加保存包 * @method appendSavePack * @param savePack 必选 json 保存包 * @return void */ }, { key: "appendSavePack", value: function appendSavePack(savePack) { this._appendSavePack.push(savePack); } /** * showdoc * @title 提交数据 * @description 提交数据 * @method save * @param options 非必选 json 提交时的附加参数 * @param beforeSubmitCallBack 非必选 json 提交前回调,参数:options, param * @return Promise */ }, { key: "save", value: function save(options, beforeSubmitCallBack, store) { options = options || {}; var param = {}; this._appendSavePack.unshift(this.getDataPack()); param[paramKey.root] = JSON.stringify(this._appendSavePack); // param[paramKey.version] = "1.0.0" param[paramKey.funcPath] = this.funcPath; param[paramKey.viewItemId] = this.viewItemId; if (options.extParam) { Object.assign(param, options.extParam); } else if (this.extParam) Object.assign(param, this.extParam); Object.assign(param, options); if (beforeSubmitCallBack) { beforeSubmitCallBack.call(store, options, param, param[paramKey.root]); } var url = this.url; if (this.pn) { if (url.indexOf('?') == -1) url = url + "?pn=" + this.pn;else url = url + "&pn=" + this.pn; } if (options.wsid) { if (url.indexOf('?') == -1) url = url + "?wsid=" + options.wsid;else url = url + "&wsid=" + options.wsid; } var showError = options.showError; delete options.showError; return this.request({ url: url, method: 'post', showError: showError, data: param }); } }, { key: "wsSave", value: function wsSave() { var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; var beforeSubmitCallBack = arguments.length > 1 ? arguments[1] : undefined; var store = arguments.length > 2 ? arguments[2] : undefined; var id = new Date().valueOf(); if (!this.wsUrl) { throw new Error("未配置webscoket保存地址[saveWsUrl]"); } var wsUrl = this.wsUrl.replace("{id}", id); var ws = new WebSocket(wsUrl); var me = this; ws.addEventListener("open", function () { options.wsid = id; options.showError = false, me.save(options, beforeSubmitCallBack, store); }); return ws; } }]); return SavePackHelper; }(); // CONCATENATED MODULE: ./src/base/dataHelper/src/flowHelper/index.js // 审批意见 var flowHelper_getApprovalInfo = function getApprovalInfo(_ref) { var request = _ref.request, url = _ref.url, ftaskguid = _ref.ftaskguid, flowtype = _ref.flowtype; var promise; var dataUrl = url || src_hiSetting.getApprovalInfo; if (ftaskguid) { if (dataUrl.indexOf('?') == -1) dataUrl = dataUrl + "?ftaskguid=" + ftaskguid;else dataUrl = dataUrl + "&ftaskguid=" + ftaskguid; } if (flowtype) { if (dataUrl.indexOf('?') == -1) dataUrl = dataUrl + "?flowtype=" + flowtype;else dataUrl = dataUrl + "&flowtype=" + flowtype; } promise = request({ url: dataUrl, method: 'post' }); return promise; }; // 处理流程 var flowHelper_processFlow = function processFlow(_ref2) { var request = _ref2.request, url = _ref2.url, data = _ref2.data, param = _ref2.param, timeout = _ref2.timeout, showError = _ref2.showError; var promise; var dataUrl = url || src_hiSetting.processFlow; var __data = { __body: JSON.stringify(data) }; if (param) { Object.assign(__data, param); } var requestParam = { url: dataUrl, data: __data, method: 'post' }; if (timeout) { Object.assign(requestParam, { timeout: timeout }); } if (showError != undefined) { Object.assign(requestParam, { showError: showError }); } promise = request(requestParam); return promise; }; // 任务中心查询 var flowHelper_queryTask = function queryTask(_ref3) { var request = _ref3.request, url = _ref3.url, param = _ref3.param; var promise; var dataUrl = url || src_hiSetting.queryTask; promise = request({ url: dataUrl, data: param, method: 'post' }); return promise; }; // 打开流程接口 var flowHelper_getFlowInfo = function getFlowInfo(_ref4) { var request = _ref4.request, url = _ref4.url, data = _ref4.data; var promise; promise = request({ url: url || src_hiSetting.getFlowInfo, data: data, method: 'post' }); return promise; }; // 单号打开流程接口 var flowHelper_openOrdernumber = function openOrdernumber(_ref5) { var request = _ref5.request, fordernumber = _ref5.fordernumber, url = _ref5.url; var promise; var dataUrl = url || src_hiSetting.openOrdernumber; var openurl = "".concat(dataUrl, "?fordernumber=").concat(fordernumber); promise = request({ url: openurl, method: 'get' }); return promise; }; // 撤回 var flowHelper_withdrawtask = function withdrawtask(_ref6) { var request = _ref6.request, url = _ref6.url, ftaskguid = _ref6.ftaskguid; var promise; var dataUrl = url || src_hiSetting.withdrawtask; var path = "".concat(dataUrl, "?ftaskguid=").concat(ftaskguid); promise = request({ url: path, method: 'get' }); return promise; }; // 反审 var flowHelper_umpireOrder = function umpireOrder(_ref7) { var request = _ref7.request, url = _ref7.url, fordernumber = _ref7.fordernumber; var promise; var dataUrl = url || src_hiSetting.umpireOrder; var path = "".concat(dataUrl, "?fordernumber=").concat(fordernumber); promise = request({ url: path, method: 'get' }); return promise; }; // 流程监控 var flowHelper_taskDiagram = function taskDiagram(_ref8) { var request = _ref8.request, url = _ref8.url, forderguid = _ref8.forderguid, fmodelpath = _ref8.fmodelpath, fversion = _ref8.fversion; var promise; var dataUrl = url || src_hiSetting.taskDiagram; var path = "".concat(dataUrl, "?fmodelpath=").concat(fmodelpath).concat(fversion ? "&fversion=" + fversion : ""); if (forderguid) { path = path + "&forderguid=" + forderguid; } promise = request({ url: path, method: 'get' }); return promise; }; // 流程监控 var flowHelper_ganttChart = function ganttChart(_ref9) { var request = _ref9.request, url = _ref9.url, fordernumber = _ref9.fordernumber; var promise; var path; var dataUrl = url || src_hiSetting.ganttChart; if (fordernumber) { path = dataUrl + "?fordernumber=" + fordernumber; } promise = request({ url: path, method: 'get' }); return promise; }; /* harmony default export */ var flowHelper = ({ getApprovalInfo: flowHelper_getApprovalInfo, processFlow: flowHelper_processFlow, queryTask: flowHelper_queryTask, getFlowInfo: flowHelper_getFlowInfo, withdrawtask: flowHelper_withdrawtask, taskDiagram: flowHelper_taskDiagram, ganttChart: flowHelper_ganttChart, openOrdernumber: flowHelper_openOrdernumber, umpireOrder: flowHelper_umpireOrder }); // CONCATENATED MODULE: ./src/base/dataHelper/src/funcHelper/index.js // 打开功能接口 var getFuncInfo = function getFuncInfo(_ref) { var request = _ref.request, url = _ref.url, data = _ref.data; var promise; promise = request({ url: url, data: data, method: 'post' }); return promise; }; /* harmony default export */ var funcHelper = ({ getFuncInfo: getFuncInfo }); // CONCATENATED MODULE: ./src/base/dataHelper/src/index.js /* harmony default export */ var dataHelper_src = ({ queryHelper: queryHelper, saveHelper: saveHelper_SavePackHelper, flowHelper: flowHelper, funcHelper: funcHelper }); // CONCATENATED MODULE: ./src/base/dataHelper/index.js /* harmony default export */ var dataHelper = (dataHelper_src); // CONCATENATED MODULE: ./src/eap/user/org.js var _userId$userName$dept; //调用org方法时一定要在service.js/initUser()之后 function getCurrentUser() { return window.eap.userInfo || {}; } function getMainUser() { if (window.eap.userInfo && window.eap.userInfo.main) return window.eap.userInfo.main;else if (window.eap.userInfo) return window.eap.userInfo; return {}; } /* harmony default export */ var org = (_userId$userName$dept = { /** * 当前用户ID * * @return */ userId: function userId() { return getMainUser().fuserid || ""; }, /** * 当前用户姓名 * * @return */ userName: function userName() { return getMainUser().fusername || ""; }, /** * 当前用户部门ID * * @return */ deptId: function deptId() { return getMainUser().fdeptid || ""; }, /** * 当前用户部门名称 * * @return */ deptName: function deptName() { return getMainUser().fdeptname || ""; }, /** * 当前用户岗位ID * * @return */ roleId: function roleId() { return getMainUser().froleid || ""; }, /** * 当前用户岗位名称 * * @return */ roleName: function roleName() { return getMainUser().frolename || ""; }, /** * 当前用户组织机构路径 * * @return */ orgPath: function orgPath() { return getMainUser().fuserorgpath || ""; }, orgName: function orgName() { return getMainUser().forgname || ""; }, orgId: function orgId() { return getMainUser().forgid || ""; }, //直属上级用户ID superId: function superId() { return getCurrentUser().fsuperuserid || ""; }, //直属上级用户姓名 superName: function superName() { return getCurrentUser().fsuperusername || ""; }, /***********编制******************************************************************************************* */ //用户编制ID bzId: function bzId() { return getCurrentUser().fbzid || ""; }, //用户编制名称 bzName: function bzName() { return getCurrentUser().fbzname || ""; }, //用户编制部门ID bzDeptId: function bzDeptId() { return getCurrentUser().fdeptid || ""; }, //用户编制部门名称 bzDeptName: function bzDeptName() { return getCurrentUser().fdeptname || ""; }, //用户编制岗位ID bzRoleId: function bzRoleId() { return getCurrentUser().froleid || ""; }, //用户编制岗位名称 bzRoleName: function bzRoleName() { return getCurrentUser().frolename || ""; }, //用户编制机构路径 bzOrgPath: function bzOrgPath() { return getCurrentUser().fuserorgpath || ""; }, //用户编制机构名称 bzOrgName: function bzOrgName() { return getCurrentUser().forgname || ""; }, //用户编制机构ID bzOrgId: function bzOrgId() { return getCurrentUser().forgid || ""; }, //当前用户所属公司的机构与部门ID orgDeptId: function orgDeptId() { return (getCurrentUser().forgid || "") + "." + (getCurrentUser().fdeptid || ""); }, //当前用户所属公司的机构与部门名称 orgDeptName: function orgDeptName() { return (getCurrentUser().forgname || "") + "." + (getCurrentUser().fdeptname || ""); }, //直属上级编制ID bzSuperId: function bzSuperId() { return getCurrentUser().fsuperbzid || ""; }, //直属上级编制名称 bzSuperName: function bzSuperName() { return getCurrentUser().fsuperbzname || ""; }, /** * 当前用户saas部门ID * * @return */ saasDeptId: function saasDeptId() { return getCurrentUser().fdeptid.replace(window.eap.userInfo.forgid + "_", "").replace(window.eap.userInfo.forgid + "-", ""); }, /** * 当前用户saas岗位ID * * @return */ saasRoleId: function saasRoleId() { return getCurrentUser().froleid.replace(window.eap.userInfo.forgid + "_", "").replace(window.eap.userInfo.forgid + "-", ""); }, /**********代理********************************************************************************************** */ /** * 当前代理用户ID * * @return */ proxyId: function proxyId() { if (!window.eap.userInfo) return ""; return window.eap.userInfo.fuserid; }, /** * 当前代理用户姓名 * * @return */ proxyName: function proxyName() { if (!window.eap.userInfo) return ""; return window.eap.userInfo.fusername; }, /** * 当前代理编制ID * * @return */ bzProxyId: function bzProxyId() { if (!window.eap.userInfo) return ""; return window.eap.userInfo.fbzid; }, /** * 当前代理编制名称 * * @return */ bzProxyName: function bzProxyName() { if (!window.eap.userInfo) return ""; return window.eap.userInfo.fbzname; }, /******************************************************************************************************** */ /** * 根据岗位ID获取用户编制号列表,逗号隔开 * * @param roleId * @return */ getBzByRole: function getBzByRole(roleId) { return []; }, /** * 根据部门ID获取用户编制号列表,逗号隔开 * * @param deptId * @return */ getBzByDept: function getBzByDept(deptId) { return ""; } }, _defineProperty(_userId$userName$dept, "getBzByRole", function (_getBzByRole) { function getBzByRole() { return _getBzByRole.apply(this, arguments); } getBzByRole.toString = function () { return _getBzByRole.toString(); }; return getBzByRole; }(function () { return getBzByRole(roleId()); })), _defineProperty(_userId$userName$dept, "getBzByDept", function (_getBzByDept) { function getBzByDept() { return _getBzByDept.apply(this, arguments); } getBzByDept.toString = function () { return _getBzByDept.toString(); }; return getBzByDept; }(function () { return getBzByDept(deptId()); })), _userId$userName$dept); // CONCATENATED MODULE: ./src/eap/utils/biz.js var modelPath = "/platf/useroperate/entity/SysUseroperate.xml"; var biz_funcPath = "/platf/useroperate/func/operate.func"; function getWsUrl(url) { //补全URL if (!(url.toLowerCase().startsWith("ws://") || url.toLowerCase().startsWith("wss://"))) { var site = window.HIVUI_SETTING.url; site = site.replace("https", "wss"); site = site.replace("http", "ws"); if (url.startsWith("/")) url = site + url;else url = site + "/" + url; } if (window.HIVUI_SETTING.projectName && url.indexOf('pn=') == -1) { var pn = window.HIVUI_SETTING.projectName; if (url.indexOf('?') == -1) url = url + "?pn=" + pn;else url = url + "&pn=" + pn; } return url; } function getUrl(url) { var project = window.HIVUI_SETTING.project || window.HIVUI_SETTING.projectName || ""; if (project.indexOf("/") != -1) project = project.split("/")[0]; if (url.indexOf(".pro") != -1) { var _url = url; var param = ""; if (_url.indexOf("?") != -1) { _url = _url.substring(0, _url.lastIndexOf("?")); param = url.substring(url.lastIndexOf("?")); } var extName = _url.substring(_url.lastIndexOf(".")); url = _url.replace(/\.\w+/g, "") + extName + param; } if (project) { var arrUrl = url.split("/"); if (arrUrl[0] != "") arrUrl[0] = project;else arrUrl[1] = project; url = arrUrl.join("/"); } var newUrl = ""; if (url.startsWith("/")) newUrl = newUrl + url;else newUrl = newUrl + "/" + url; if (window.HIVUI_SETTING.projectName) { if (url.indexOf("?") != -1) newUrl = newUrl + "&pn=" + window.HIVUI_SETTING.projectName;else newUrl = newUrl + "?pn=" + window.HIVUI_SETTING.projectName; } return newUrl; } /* harmony default export */ var biz = ({ getWsUrl: getWsUrl, /* { "msg": "", "dataPack": "ZCZD-241219-0002", "status": 200 } */ createNumber: function createNumber(funId) { if (funId) { numberId = ""; window.eap.ajax({ url: window.HIVUI_SETTING.generateNumberUrl + "?funcId=" + funId, method: "GET", //可不传,默认post async: false, //可不传,默认true success: function success(response) { if (response.status == 200) numberId = response.dataPack;else alert(response.msg); }, fail: function fail() { alert("请求单号异常!"); } }); return numberId; } else return "NEW-YYMMDD-9999"; }, //下载地址 getDownloadUrl: function getDownloadUrl(url, fileName) { var fileExtension = url.substr(url.lastIndexOf(".") + 1); var file_path = ""; if (!fileName) { file_path = "".concat(window.HIVUI_SETTING.download, "?pn=").concat(window.HIVUI_SETTING.projectName, "&path=").concat(url, "&access_token=").concat(window.eap.user.auth.getToken()); } else { file_path = "".concat(window.HIVUI_SETTING.download, "?pn=").concat(window.HIVUI_SETTING.projectName, "&path=").concat(url, "&access_token=").concat(window.eap.user.auth.getToken(), "&name=").concat(fileName, ".").concat(fileExtension); } return file_path; }, //删除用户数据 delUserData: function delUserData(key, type) { var saveHelper = new dataHelper.saveHelper(modelPath, biz_funcPath, { request: window.HIVUI_SETTING.request, url: window.HIVUI_SETTING.saveUrl, pn: window.HIVUI_SETTING.projectName }); saveHelper.remove({ FKEY: key, FUSERID: org.bzId(), FTYPE: type }); return saveHelper.save(); }, //查询用户数据 getUserData: function getUserData(key, type) { return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() { var where, param, result; return regeneratorRuntime.wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { case 0: where = new dataHelper.queryHelper.Where({ junction: 'and' }); where.addCondition("FKEY", key, "dbString"); where.addCondition("FTYPE", type, "dbString"); where.addCondition("FUSERID", org.bzId(), "dbString"); param = new dataHelper.queryHelper.Param({ where: where }); _context.next = 7; return dataHelper.queryHelper.query(param, modelPath, biz_funcPath, { request: window.HIVUI_SETTING.request, url: window.HIVUI_SETTING.queryUrl, pn: window.HIVUI_SETTING.projectName }); case 7: result = _context.sent; if (!(result.dataPack.rows.length > 0)) { _context.next = 10; break; } return _context.abrupt("return", result.dataPack.rows[0].FVALUE); case 10: return _context.abrupt("return", null); case 11: case "end": return _context.stop(); } }, _callee); }))(); }, //保存数据 saveUserData: function saveUserData(key, data, type, desc) { var saveHelper = new dataHelper.saveHelper(modelPath, biz_funcPath, { request: window.HIVUI_SETTING.request, url: window.HIVUI_SETTING.saveUrl, pn: window.HIVUI_SETTING.projectName }); saveHelper.override({ FKEY: key, FUSERID: org.bzId(), FTYPE: type }, { FKEY: key, FUSERID: org.bzId(), FTYPE: type, FVALUE: typeof data == "string" ? data : JSON.stringify(data), FNAME: desc || "" }); return saveHelper.save(); }, getUrl: getUrl, getResUrl: function getResUrl(url) { return HIVUI_SETTING.deployDir + getUrl(url); } }); // CONCATENATED MODULE: ./src/eap/utils/index.js /* harmony default export */ var eap_utils = ({ biz: biz, FormFunc: biz, DateFunc: utils.date, NumberFunc: utils.number, StringFunc: utils.string, BomFunc: utils.bom, OrgFunc: org }); // CONCATENATED MODULE: ./src/eap/axios.js // create an axios instance var def_timeout = 30 * 1000; var service = axios_default.a.create({ baseURL: "http://192.168.4.106:7777", timeout: def_timeout // request timeout }); var hasMessageFunc = true; try { hasMessageFunc = !!(hasMessageFunc && external_ELEMENT_["Message"]); } catch (e) { hasMessageFunc = false; } //判断是否跨域请求变量 var isCrossDomain = false; try { var __isCrossDomain = top.window.SysPage; } catch (e) { isCrossDomain = true; } service.defaults.headers.post['Content-Type'] = 'application/json;charset=UTF-8'; // request拦截器 service.interceptors.request.use(function (config) { if (config.headers['Content-Type'] === undefined) { config.headers['Content-Type'] = 'application/json;charset=UTF-8'; } var token = getToken(); //默认显示请求成功的返回信息 if (typeof config.showSuccessTips == "undefined") { config.showSuccessTips = true; } //默认显示请求失败的返回信息 if (typeof config.showError == "undefined") { config.showError = true; } if (token && !config.noToken && !(config.url.startsWith("http") && !config.url.startsWith(window.HIVUI_SETTING.url))) { config.headers['Authorization'] = 'Bearer ' + token; } var __localeLang = js_cookie_default.a.get("locale"); if (__localeLang) { //设置语言包 if (config.method == "post") { if (!config.params) { config.params = {}; } config.params.locale = __localeLang; } else { config.url = eap_utils.StringFunc.setUrlValue(config.url, "locale", __localeLang); } } if (window.HIVUI_SETTING) { var site = window.HIVUI_SETTING.url; //补全URL if (!config.url.toLowerCase().startsWith("http")) { if (config.url.startsWith("/")) config.url = site + config.url;else config.url = site + "/" + config.url; } if (!config.isCustomTimeout) { if (window.HIVUI_SETTING.requestTimeout || window.HIVUI_SETTING.requestTimeout == 0) { config.timeout = window.HIVUI_SETTING.requestTimeout; } } if (window.HIVUI_SETTING.projectName && config.url.indexOf('pn=') == -1 && !(config.params && config.params.pn)) { var pn = window.HIVUI_SETTING.projectName; if (config.url.indexOf('?') == -1) config.url = config.url + "?pn=" + pn;else config.url = config.url + "&pn=" + pn; } //岗位ID if (window.scpRequestData && window.scpRequestData.fbzid) { var fbzid = window.scpRequestData.fbzid; if (config.method == "post") { if (!config.params) { config.params = {}; } config.params.fbzid = fbzid; } else { config.url = eap_utils.StringFunc.setUrlValue(config.url, "fbzid", fbzid); } } } // 如果接口需要签名, 则通过请求时,headers中传递sign参数true var iSSign = config.headers['sign']; if (iSSign || iSSign === undefined) { var timeStamp = new Date().getTime().toString().substr(0, 10); config.headers['timeStamp'] = timeStamp; //config.headers['signature'] = sign(config, nonce, timeStamp, store.getters.appSecret) } //开启下载流模式 if (config.isDownload) { config.responseType = 'blob'; delete config.isDownload; } //判断当前用户与登录用户是否一致 if (!isCrossDomain && top.Scp && top.Scp.User && top.Scp.User.fuserid && js_cookie_default.a.get("userid") && top.Scp.User.fuserid !== js_cookie_default.a.get("userid")) { external_ELEMENT_["MessageBox"].confirm(window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_sameUser_tpl || '用户已切换,当前用户与登录用户不符', window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_sameUser_title || '提示', { //distinguishCancelAndClose: true, type: "warning", confirmButtonText: window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_sameUser_confirm || '重新加载', cancelButtonText: window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_sameUser_cancel || '关闭' }).then(function (res) { top.location.reload(); //刷新 }).catch(function (err) {}); var __err = new Error("用户已切换,当前用户与登录用户不符"); __err.code = "sameUser"; return Promise.reject(__err); } return config; }, function (error) { // do something with request error return Promise.reject(error); }); function MessageFunc(opt) { var res = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; //detailMsg\msg\message var messageCustomClass = eap_utils.StringFunc.id(8); var __position = { top: 15, margin: 20, right: 15 }; var isMsgBox = window.HIVUI_SETTING.messageType == "msgBox"; if (opt.showClose) { //关闭按钮多偏移 __position.margin += 15; __position.right += 25; } if (isMsgBox) { __position.top = 0; __position.right = 0; __position.margin = 20; } var msgTpl = "<div class=\"zhcDetailMsg\" style=\"max-height:200px;min-height: 20px;padding:3px 0;word-break:break-all;margin-right: ".concat(__position.margin, "px;overflow:auto;transition:all 0.3s;\"><span>").concat(res.msg || res.resmessage, "</span><i class=\"el-icon-caret-right\" title=\"").concat(window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_showErrorDetail || '弹出报错详情', "\" style=\"position: absolute;top:").concat(__position.top, "px;right:").concat(__position.right, "px;font-size:18px;color:#F56C6C;cursor:pointer;transition:all 0.3s;\"></i></div>"); var msgVue = null; var isShowDetail = res.detailMsg && res.detailMsg != opt.message; opt.customClass = messageCustomClass; if (isMsgBox) { if (isShowDetail) { opt.message = msgTpl; } else { opt.message = "<div style=\"max-height:200px;word-break:break-all;overflow:auto;\">".concat(opt.message, "</div>"); } msgVue = Object(external_ELEMENT_["MessageBox"])(_objectSpread2(_objectSpread2({}, { title: window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_msgTips || "消息提示", confirmButtonText: window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_define || '确定', dangerouslyUseHTMLString: true }), opt)); } else { if (isShowDetail) { opt.message = msgTpl; opt.dangerouslyUseHTMLString = true; } msgVue = Object(external_ELEMENT_["Message"])(opt); } if (isShowDetail) { var arrowBtn = document.querySelector("." + messageCustomClass + " .zhcDetailMsg>i"); arrowBtn.onclick = function () { if (arrowBtn.previousSibling.className == "zhcDetailMsg") { arrowBtn.previousSibling.innerText = res.msg || res.resmessage; arrowBtn.previousSibling.className = ""; arrowBtn.title = window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_showErrorDetail || "弹出报错详情"; arrowBtn.style.color = "#F56C6C"; arrowBtn.style.transform = "rotate(0)"; } else { arrowBtn.previousSibling.innerText = res.detailMsg; arrowBtn.previousSibling.className = "zhcDetailMsg"; arrowBtn.title = window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_hideErrorDetail || "收起报错详情"; arrowBtn.style.color = ""; arrowBtn.style.transform = "rotate(90deg)"; } }; } } function for401(isSkip) { // Alert('你已被登出,,点击确认按钮进入登录页', '登录超时', { // confirmButtonText: '确定', // callback: action => { // window.location.href = window.appsettings.login; // } // }); if (!isCrossDomain && window.customSysCofig.showMiniLogin && top.window.SysPage && top.window.SysPage.openMiniLogin) { top.window.SysPage.openMiniLogin(); } else { var loginUrl = window.HIVUI_SETTING.customLoginUrl || window.HIVUI_SETTING.loginUrl; if (window.HIVUI_SETTING.isSingleLogin) { loginUrl = window.HIVUI_SETTING.singleLoginUrl; if (loginUrl.endsWith("=")) { var params = window.location.search.slice(1).split("&").filter(function (item) { if (item.indexOf("ticket") == -1) { return item; } }); var currPageUrl = window.location.origin + window.location.pathname; if (window.HIVUI_SETTING.mainPageUrl.indexOf(currPageUrl) == -1) { params.push("eapReturnUrl=" + currPageUrl); currPageUrl = window.HIVUI_SETTING.mainPageUrl; } currPageUrl = currPageUrl.replace(/#\//g, ""); loginUrl = loginUrl + currPageUrl + (params.length > 0 ? '?' : '') + params.join("&"); } } else { if (!loginUrl.endsWith("#/")) { loginUrl += "#/"; } loginUrl += "?eapReturnUrl=" + encodeURIComponent(window.location.href); } if (!isCrossDomain && top.window.mainPageInitErrorJump || isSkip) { window.location.href = loginUrl; } else { hasMessageFunc && external_ELEMENT_["MessageBox"].alert(window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_noPermissionTips || '你已被登出,请重新登录', window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_timeOut || '登录超时', { confirmButtonText: window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_Relist || '重新登录', type: 'warning', showClose: false }).then(function () { window.location.href = loginUrl; }); } } } service.interceptors.response.use(function (response) { if (response.config.responseType == "arraybuffer") { return response; } if (response.config.normalResult) return response; var res = response.data; if (res.type == "application/octet-stream" || response.headers["content-type"] == "application/octet-stream") { return response; } else if (response.config.responseType == "blob") { //流数据抛错,将blob类型重新转换成json var fileReader = new FileReader(); fileReader.readAsText(res, 'utf-8'); fileReader.onload = function () { var __data = JSON.parse(fileReader.result); return hasMessageFunc && MessageFunc({ message: __data.msg || __data.message || 'Error', type: 'error', showClose: true }, res); }; return Promise.reject(res); } if (response.status != "200" || response.data.status && response.data.status != "200") { var data = {}; try { data = JSON.parse(response.config.data); } catch (ex) {} if (data.__isIntercept === false) { if (response.config.data) { try { res.options = JSON.parse(response.config.data); } catch (e) {} } return Promise.reject(res); } setTimeout(function () { hasMessageFunc && MessageFunc({ message: res.msg || res.message || 'Error', type: 'error', showClose: true, duration: 5 * 1000 }, res); }, 0); if (res.status == 401 || res.data && res.data.status == 401) { for401(response.config.isSkip); return Promise.reject(error); } //return Promise.reject(new Error(res.message || 'Error')) return Promise.reject(res, JSON.parse(response.config.data || "{}")); } else { res.dataPack = res.dataPack || res.data; if ((res.detailMsg || res.msg) && response.config.showSuccessTips) { hasMessageFunc && MessageFunc({ message: res.detailMsg || res.msg || 'Error', type: res.popupbox && res.popupbox.type || 'success', showClose: true, duration: 5 * 1000 }, res); } if (response.config.data) { try { res.options = JSON.parse(response.config.data); } catch (e) {} } return res; } }, function (error) { var res = error && error.response; if (error && error.config && !error.config.showError) { return; } if (!res) { if (error.code && error.code == "sameUser") { return Promise.reject(error); } else if (error.code === 'ECONNABORTED' && error.message.includes('timeout')) { hasMessageFunc && MessageFunc({ message: window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_timeoutError || '接口请求超时!', type: 'error', showClose: true, duration: 5 * 1000 }); } else { hasMessageFunc && MessageFunc({ message: window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_responseNull || '后端请求返回出错,请联系开发人员', type: 'error', showClose: true, duration: 5 * 1000 }); } return; } var data = {}; try { data = JSON.parse(res.config.data); } catch (ex) {} if (data.__isIntercept === false) { return Promise.reject(error); } if (res.status == 401 || res.data && res.data.status == 401) { for401(res.config.isSkip); return Promise.reject(error); } console.log('err' + error); // for debug // Message({ // message: error.message, // type: 'error', // duration: 5 * 1000 // }) return Promise.reject(error); }); /* harmony default export */ var eap_axios = (service); function ajax(config) { var token = getToken(); if (window.HIVUI_SETTING) { if ((window.HIVUI_SETTING.requestTimeout || window.HIVUI_SETTING.requestTimeout == 0) && !config.isCustomTimeout) { config.timeout = window.HIVUI_SETTING.requestTimeout; } if (window.HIVUI_SETTING.projectName) { var pn = window.HIVUI_SETTING.projectName; if (config.url.indexOf('?') == -1) config.url = config.url + "?pn=" + pn;else config.url = config.url + "&pn=" + pn; } } if (window.HIVUI_SETTING) { var site = window.HIVUI_SETTING.url; //补全URL if (!config.url.toLowerCase().startsWith("http")) { if (config.url.startsWith("/")) config.url = site + config.url;else config.url = site + "/" + config.url; } } //创建XMLHttpRequest对象 var url = config.url || ""; var method = config.method || "GET"; var data = config.data || {}; var success = config.success; var async = config.async == undefined ? true : config.async; var fail = config.fail; var xhr = new XMLHttpRequest(); //true表示异步 xhr.open(method, url, async); if (config.timeout && async === true) xhr.timeout = config.timeout; xhr.setRequestHeader('Content-Type', 'application/json;charset=UTF-8'); if (token && !config.noToken && !(url.startsWith("http") && !url.startsWith(window.HIVUI_SETTING.url))) { xhr.setRequestHeader('Authorization', 'Bearer ' + token); } if (JSON.stringify(data) != "{}") { xhr.send(JSON.stringify(data)); } else { xhr.send(); } if (async == false) { if (xhr.status == 200) { var res = JSON.parse(xhr.responseText); success && success.call(this, res); } else { var res = JSON.parse(xhr.responseText); hasMessageFunc && MessageFunc({ message: res.msg || res.message || 'Error', type: 'error', showClose: true, duration: 5 * 1000 }, res); if (res.status == 401 || res.data && res.data.status == 401) { if (!isCrossDomain && window.customSysCofig.showMiniLogin && top.window.SysPage && top.window.SysPage.openMiniLogin) { top.window.SysPage.openMiniLogin(); } else { hasMessageFunc && external_ELEMENT_["MessageBox"].alert(window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_noPermissionTips || '你已被登出,请重新登录', window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_timeOut || '登录超时', { confirmButtonText: window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_Relist || '重新登录', type: 'warning', showClose: false }).then(function () { var loginUrl = window.HIVUI_SETTING.loginUrl; if (loginUrl.endsWith("=")) loginUrl = loginUrl + window.location.href; window.location.href = window.HIVUI_SETTING.customLoginUrl || loginUrl; }); } } else fail && fail.call(this, xhr.responseText); } } else { xhr.onreadystatechange = function () { // readyState == 4说明请求已完成 if (xhr.readyState == 4) { if (xhr.status == 200 || xhr.status == "200") { var res = JSON.parse(xhr.responseText); //responseText:从服务器获得数据 success && success.call(this, res); } else { var res = JSON.parse(xhr.responseText); hasMessageFunc && MessageFunc({ message: res.msg || res.message || 'Error', type: 'error', showClose: true, duration: 5 * 1000 }, res); if (res.status == 401 || res.data && res.data.status == 401) { if (!isCrossDomain && window.customSysCofig.showMiniLogin && top.window.SysPage && top.window.SysPage.openMiniLogin) { top.window.SysPage.openMiniLogin(); } else { hasMessageFunc && external_ELEMENT_["MessageBox"].alert(window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_noPermissionTips || '你已被登出,请重新登录', window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_timeOut || '登录超时', { confirmButtonText: window.GLOBAL_LANG_TPL && window.GLOBAL_LANG_TPL.hivuiMain_eap_Relist || '重新登录', type: 'warning', showClose: false }).then(function () { var loginUrl = window.HIVUI_SETTING.loginUrl; if (loginUrl.endsWith("=")) loginUrl = loginUrl + window.location.href; window.location.href = window.HIVUI_SETTING.customLoginUrl || loginUrl; }); } } else fail && fail.call(this, xhr.responseText); } } }; } } // CONCATENATED MODULE: ./src/eap/request.js var request_service = eap_axios; //export default service /* harmony default export */ var eap_request = (function (cfg) { try { if (window && window.isElectron || top && top.window && top.window.isElectron) { var urlsCallback; if (window.isElectron) urlsCallback = window.electronCfg.urlCallback; if (top.window.isElectron) urlsCallback = top.window.electronCfg.urlCallback; for (var key in urlsCallback) { if (cfg.url.indexOf(key) > -1) return urlsCallback[key](cfg); } } } catch (e) {} if (typeof cfg.timeout != "undefined") { cfg.isCustomTimeout = true; } return eap_axios(cfg); }); // CONCATENATED MODULE: ./src/eap/user/service.js var service_request = eap_request; // if (window.HIVUI_SETTING) // request = window.HIVUI_SETTING.request; // else { // window.HIVUI_SETTING = hiSetting // } /** * 登陆 * @param {Id} 系统Id */ function login(userName, pwd) { var data = { username: userName.trim(), password: md5_default()(pwd) }; var _promise = service_request({ url: window.HIVUI_SETTING.login || window.HIVUI_SETTING.serverUrl + "/login/sso-login", method: 'post', data: data }); _promise.then(function (res) { var data = res; if (data.token) { setToken(data.token); if (data.isAuthorize === false) { if (data.authorizeMsg) { external_ELEMENT_["Message"].warning(data.authorizeMsg); } location = window.HIVUI_SETTING.authorizeUrl; } } if (location.hash == "#miniLogin") { //外部调用登录接口时小登录判断 if (eap_utils.StringFunc.getUrlValue("questType") == "ajax") { top.window.SysPage && top.window.SysPage.closeMiniLogin(eap_utils.StringFunc.getUrlValue("isRefresh")); } else { location.reload(); } } }); return _promise; } /** * 登出 */ function logout() { if (!getToken()) { return new Promise(function (resolve, reject) { resolve(); }); } var _promise = service_request({ url: window.HIVUI_SETTING.logout || window.HIVUI_SETTING.serverUrl + "/login/sso-logout", method: 'post' }); _promise.then(function (res) { removeToken(); }); return _promise; } /** * 获取用户信息 * @param {data} */ function getInfo(data) { return service_request({ url: window.HIVUI_SETTING.userInfo, method: 'post', data: data }); } function initUser(data) { var promise = getInfo(data); promise.then(function (res) { if (!window.eap) window.eap = {}; window.eap.userInfo = res.dataPack; }); return promise; } //修改密码 function modifyPw(oldPwd, newPwd) { return service_request({ url: window.HIVUI_SETTING.serverUrl + "/sys/user/update-pwd", method: 'post', data: { oldPwd: oldPwd, newPwd: newPwd } }); } //获取岗位列表 function getBzList(data) { return service_request({ url: window.HIVUI_SETTING.serverUrl + "/sys/auth/func-multi-bz", method: 'post', data: data }); } /** * 解锁账户 * @param {data} */ function unlock(userId, pwd) { var data = { userId: userId.trim(), password: md5_default()(pwd) }; return service_request({ url: window.HIVUI_SETTING.serverUrl + "/login/unlock", method: 'post', data: data }); } /* harmony default export */ var user_service = ({ login: login, logout: logout, getInfo: getInfo, modifyPw: modifyPw, getBzList: getBzList, unlock: unlock }); // CONCATENATED MODULE: ./src/eap/user/index.js /* harmony default export */ var user = ({ service: user_service, auth: auth }); // CONCATENATED MODULE: ./src/eap/page/index.js /* harmony default export */ var page = ({ closepage: function closepage() { if (top.window.SysPage && top.window.SysPage.closePage) { top.window.SysPage.closePage(); } else { window.close(); } }, /* title:标签页名称,不传则默认显示功能名称 url:标签页访问地址 params:携带参数 method:传"get"/"post"参数,不传默认为get target:传"me"/"_self"/"_blank",me为当前浏览器标签页覆盖打开,_self为强制当前框架标签页打开,_blank为强制框架新标签打开,不传参数则默认同url标签覆盖,不同的url打开新标签 */ newPage: function newPage(title, url, params, method, target) { if (url && url.indexOf("http") != 0) { url = location.origin + (top.window.deployDir ? "/" + top.window.deployDir : '') + (top.window.pName ? "/" + top.window.pName : '') + url; } if (top.window.SysPage && top.window.SysPage.newPage) { top.window.SysPage.newPage(title, url, params, method, target); } else { window.open(url, "_blank"); } } }); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.set-prototype-of.js var es_object_set_prototype_of = __webpack_require__("131a"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.proto.js var es_object_proto = __webpack_require__("1f68"); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } // EXTERNAL MODULE: ./node_modules/core-js/modules/es.reflect.construct.js var es_reflect_construct = __webpack_require__("4ae1"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.reflect.to-string-tag.js var es_reflect_to_string_tag = __webpack_require__("f8c9"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.get-prototype-of.js var es_object_get_prototype_of = __webpack_require__("3410"); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } // CONCATENATED MODULE: ./src/eap/dataHelper/index.js //(param, modelFile, funcPath, { request, url, method, pn, extParam }) var dataHelper_query = function query(param, modelFile, funcPath) { var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; var setting = window.HIVUI_SETTING; if (!options.request && setting) options.request = setting.request; if (!options.pn && setting) options.pn = setting.projectName; if (!options.url && setting) options.url = setting.queryUrl; // //request, url, method, pn, extParam return dataHelper.queryHelper.query(param, modelFile, funcPath, options); }; var dataHelper_exportData = function exportData(param, modelFile, funcPath) { var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; var setting = window.HIVUI_SETTING; if (!options.request && setting) options.request = setting.request; if (!options.pn && setting) options.pn = setting.projectName; if (!options.url && setting) options.url = setting.exportUrl; //{ request, url, method, pn, extParam } return dataHelper.queryHelper.exportData(param, modelFile, funcPath, options); }; var dataHelper_SaveHelper = /*#__PURE__*/function (_dataHelper$saveHelpe) { _inherits(SaveHelper, _dataHelper$saveHelpe); var _super = _createSuper(SaveHelper); function SaveHelper(modelFile, funcPath) { var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; _classCallCheck(this, SaveHelper); var setting = window.HIVUI_SETTING; if (!options.request && setting) options.request = setting.request; if (!options.pn && setting) options.pn = setting.projectName; if (!options.url && setting) options.url = setting.saveUrl; //{ request, url, pn, extParam } return _super.call(this, modelFile, funcPath, options); } return _createClass(SaveHelper); }(dataHelper.saveHelper); /* harmony default export */ var eap_dataHelper = ({ query: dataHelper_query, exportData: dataHelper_exportData, Param: dataHelper.queryHelper.Param, Where: dataHelper.queryHelper.Where, types: dataHelper.queryHelper.types, Orders: dataHelper.queryHelper.Orders, SaveHelper: dataHelper_SaveHelper }); // EXTERNAL MODULE: ./node_modules/lodash/defaultsDeep.js var defaultsDeep = __webpack_require__("3f84"); var defaultsDeep_default = /*#__PURE__*/__webpack_require__.n(defaultsDeep); // EXTERNAL MODULE: ./package_eap.json var package_eap = __webpack_require__("ed27"); // CONCATENATED MODULE: ./src/eap/index.js function mergeConfig() { var args = Array.prototype.slice.call(arguments); return defaultsDeep_default.a.apply(void 0, _toConsumableArray(args)); } var eap_lang = { get: function get(key) { //return Vue.prototype.$t(key) var keys = {}; if (window.lang && window.lang.keys) keys = window.lang.keys; return keys[key] || key; } }; /* harmony default export */ var eap = ({ user: user, ajax: ajax, request: eap_request, mergeConfig: mergeConfig, lang: eap_lang, utils: eap_utils, page: page, dataHelper: eap_dataHelper }); //加载默认设至到全局 if (!window.HIVUI_SETTING) { window.HIVUI_SETTING = src_hiSetting; //console.log("已加载默认配置:", hiSetting) } window.lang = eap_lang; //输出版本信息 console.log('%c hi-eap-basic %c v'.concat(package_eap.version, ' '), 'padding: 2px 1px; border-radius: 3px 0 0 3px; color: #fff; background: #ff8e15; font-weight: bold;', 'padding: 2px 1px; border-radius: 0 3px 3px 0; color: #fff; background: #42c02e; font-weight: bold;'); //console.log(process.env.NODE_VER) // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js /* harmony default export */ var entry_lib = __webpack_exports__["default"] = (eap); /***/ }), /***/ "fb6a": /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__("23e7"); var isArray = __webpack_require__("e8b5"); var isConstructor = __webpack_require__("68ee"); var isObject = __webpack_require__("861d"); var toAbsoluteIndex = __webpack_require__("23cb"); var lengthOfArrayLike = __webpack_require__("07fa"); var toIndexedObject = __webpack_require__("fc6a"); var createProperty = __webpack_require__("8418"); var wellKnownSymbol = __webpack_require__("b622"); var arrayMethodHasSpeciesSupport = __webpack_require__("1dde"); var nativeSlice = __webpack_require__("f36a"); var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice'); var SPECIES = wellKnownSymbol('species'); var $Array = Array; var max = Math.max; // `Array.prototype.slice` method // https://tc39.es/ecma262/#sec-array.prototype.slice // fallback for not array-like ES3 strings and DOM objects $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, { slice: function slice(start, end) { var O = toIndexedObject(this); var length = lengthOfArrayLike(O); var k = toAbsoluteIndex(start, length); var fin = toAbsoluteIndex(end === undefined ? length : end, length); // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible var Constructor, result, n; if (isArray(O)) { Constructor = O.constructor; // cross-realm fallback if (isConstructor(Constructor) && (Constructor === $Array || isArray(Constructor.prototype))) { Constructor = undefined; } else if (isObject(Constructor)) { Constructor = Constructor[SPECIES]; if (Constructor === null) Constructor = undefined; } if (Constructor === $Array || Constructor === undefined) { return nativeSlice(O, k, fin); } } result = new (Constructor === undefined ? $Array : Constructor)(max(fin - k, 0)); for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]); result.length = n; return result; } }); /***/ }), /***/ "fba5": /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__("cb5a"); /** * Checks if a list cache value for `key` exists. * * @private * @name has * @memberOf ListCache * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function listCacheHas(key) { return assocIndexOf(this.__data__, key) > -1; } module.exports = listCacheHas; /***/ }), /***/ "fbb2": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GenericBarcode = undefined; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _Barcode2 = __webpack_require__("e762"); var _Barcode3 = _interopRequireDefault(_Barcode2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var GenericBarcode = function (_Barcode) { _inherits(GenericBarcode, _Barcode); function GenericBarcode(data, options) { _classCallCheck(this, GenericBarcode); return _possibleConstructorReturn(this, (GenericBarcode.__proto__ || Object.getPrototypeOf(GenericBarcode)).call(this, data, options)); // Sets this.data and this.text } // Return the corresponding binary numbers for the data provided _createClass(GenericBarcode, [{ key: "encode", value: function encode() { return { data: "10101010101010101010101010101010101010101", text: this.text }; } // Resturn true/false if the string provided is valid for this encoder }, { key: "valid", value: function valid() { return true; } }]); return GenericBarcode; }(_Barcode3.default); exports.GenericBarcode = GenericBarcode; /***/ }), /***/ "fc6a": /***/ (function(module, exports, __webpack_require__) { // toObject with fallback for non-array-like ES3 strings var IndexedObject = __webpack_require__("44ad"); var requireObjectCoercible = __webpack_require__("1d80"); module.exports = function (it) { return IndexedObject(requireObjectCoercible(it)); }; /***/ }), /***/ "fce3": /***/ (function(module, exports, __webpack_require__) { var fails = __webpack_require__("d039"); var global = __webpack_require__("da84"); // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError var $RegExp = global.RegExp; module.exports = fails(function () { var re = $RegExp('.', 's'); return !(re.dotAll && re.exec('\n') && re.flags === 's'); }); /***/ }), /***/ "fd7c": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; exports.default = function (old, replaceObj) { return _extends({}, old, replaceObj); }; /***/ }), /***/ "fdbc": /***/ (function(module, exports) { // iterable DOM collections // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods module.exports = { CSSRuleList: 0, CSSStyleDeclaration: 0, CSSValueList: 0, ClientRectList: 0, DOMRectList: 0, DOMStringList: 0, DOMTokenList: 1, DataTransferItemList: 0, FileList: 0, HTMLAllCollection: 0, HTMLCollection: 0, HTMLFormElement: 0, HTMLSelectElement: 0, MediaList: 0, MimeTypeArray: 0, NamedNodeMap: 0, NodeList: 1, PaintRequestList: 0, Plugin: 0, PluginArray: 0, SVGLengthList: 0, SVGNumberList: 0, SVGPathSegList: 0, SVGPointList: 0, SVGStringList: 0, SVGTransformList: 0, SourceBufferList: 0, StyleSheetList: 0, TextTrackCueList: 0, TextTrackList: 0, TouchList: 0 }; /***/ }), /***/ "fdbf": /***/ (function(module, exports, __webpack_require__) { /* eslint-disable es/no-symbol -- required for testing */ var NATIVE_SYMBOL = __webpack_require__("04f8"); module.exports = NATIVE_SYMBOL && !Symbol.sham && typeof Symbol.iterator == 'symbol'; /***/ }), /***/ "ff84": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _CODE = __webpack_require__("349c"); var _CODE2 = __webpack_require__("da3d"); var _EAN_UPC = __webpack_require__("241e"); var _ITF = __webpack_require__("9ffa"); var _MSI = __webpack_require__("8e51"); var _pharmacode = __webpack_require__("7cb9"); var _codabar = __webpack_require__("c17b"); var _GenericBarcode = __webpack_require__("fbb2"); exports.default = { CODE39: _CODE.CODE39, CODE128: _CODE2.CODE128, CODE128A: _CODE2.CODE128A, CODE128B: _CODE2.CODE128B, CODE128C: _CODE2.CODE128C, EAN13: _EAN_UPC.EAN13, EAN8: _EAN_UPC.EAN8, EAN5: _EAN_UPC.EAN5, EAN2: _EAN_UPC.EAN2, UPC: _EAN_UPC.UPC, UPCE: _EAN_UPC.UPCE, ITF14: _ITF.ITF14, ITF: _ITF.ITF, MSI: _MSI.MSI, MSI10: _MSI.MSI10, MSI11: _MSI.MSI11, MSI1010: _MSI.MSI1010, MSI1110: _MSI.MSI1110, pharmacode: _pharmacode.pharmacode, codabar: _codabar.codabar, GenericBarcode: _GenericBarcode.GenericBarcode }; /***/ }), /***/ "ffd6": /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__("3729"), isObjectLike = __webpack_require__("1310"); /** `Object#toString` result references. */ var symbolTag = '[object Symbol]'; /** * Checks if `value` is classified as a `Symbol` primitive or object. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. * @example * * _.isSymbol(Symbol.iterator); * // => true * * _.isSymbol('abc'); * // => false */ function isSymbol(value) { return typeof value == 'symbol' || (isObjectLike(value) && baseGetTag(value) == symbolTag); } module.exports = isSymbol; /***/ }) /******/ }); }); //# sourceMappingURL=eap.umd.js.map