hldesigner 0.0.139 → 0.0.141

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/{_pdf-2a5072a7.js → _pdf-6c2babb0.js} +13 -13
  2. package/{_share_image-a5dcb9a9.js → _share_image-ff895d90.js} +2 -2
  3. package/{_share_size.vue_vue_type_script_setup_true_lang-d495d26c.js → _share_size.vue_vue_type_script_setup_true_lang-85484dad.js} +3 -3
  4. package/{_txt-cb319a72.js → _txt-9a9b7760.js} +13 -13
  5. package/{_unsupport-82fb0e39.js → _unsupport-757c8fb8.js} +1 -1
  6. package/{affix-widget-4476a746.js → affix-widget-c0777ea0.js} +18 -18
  7. package/{alert-widget-a222e423.js → alert-widget-1415cd1e.js} +18 -18
  8. package/{anchor-widget-86940ad9.js → anchor-widget-cfb56783.js} +15 -15
  9. package/{auto-complete-widget-0d823284.js → auto-complete-widget-7d4db43a.js} +18 -18
  10. package/{avatar-widget-1347e323.js → avatar-widget-bcc3f4d5.js} +18 -18
  11. package/{backtop-widget-20c6aa2f.js → backtop-widget-a884fa53.js} +18 -18
  12. package/{badge-widget-4a1a39b1.js → badge-widget-dcd66eee.js} +18 -18
  13. package/barcode-widget-1e3d9b65.js +2699 -0
  14. package/{baseImp-c47ee3e2.js → baseImp-b5857827.js} +5 -5
  15. package/{breadcrumb-widget-2fc915b2.js → breadcrumb-widget-1081ab6a.js} +15 -15
  16. package/{button-widget-ac368a76.js → button-widget-b5fcd821.js} +18 -18
  17. package/{cache-widget-c3f2f8a3.js → cache-widget-dd3e3d3f.js} +17 -17
  18. package/{card-widget-e2170bd3.js → card-widget-9693623e.js} +16 -16
  19. package/{carousel-widget-2806bcb2.js → carousel-widget-d139cc2c.js} +16 -16
  20. package/{cascader-widget-dfac1e6f.js → cascader-widget-183c6fc9.js} +17 -17
  21. package/{chart-widget-c8a747c6.js → chart-widget-778c4cb2.js} +15 -15
  22. package/{checkbox-widget-4078f7e1.js → checkbox-widget-1a5821a0.js} +17 -17
  23. package/{collapse-widget-a57a924a.js → collapse-widget-b66ec539.js} +16 -16
  24. package/{color-picker-widget-f319e097.js → color-picker-widget-cc95d8b2.js} +17 -17
  25. package/common-editor-fa521ced.js +26 -0
  26. package/{common-editor.vue_vue_type_script_setup_true_name_common-editor_lang-46ef444c.js → common-editor.vue_vue_type_script_setup_true_name_common-editor_lang-b53b8bec.js} +2 -2
  27. package/{configItem-f463e99a.js → configItem-49c17de8.js} +42 -42
  28. package/{cont-cell-widget-02cc00e4.js → cont-cell-widget-921029d4.js} +1 -1
  29. package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-a62f5861.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-535a226e.js} +5 -5
  30. package/{cont-widget-17371aa1.js → cont-widget-cba5e898.js} +5 -5
  31. package/{content-wrapper-22777c95.js → content-wrapper-fba9f902.js} +6 -6
  32. package/{content-wrapper.vue_vue_type_script_setup_true_lang-96e82b15.js → content-wrapper.vue_vue_type_script_setup_true_lang-c29a2dd2.js} +3 -3
  33. package/{css-editor-a197086d.js → css-editor-30e20e0f.js} +145 -145
  34. package/{customClass-editor-3af5b142.js → customClass-editor-1c7fd33d.js} +15 -15
  35. package/{date-picker-range-widget-92be0e8f.js → date-picker-range-widget-fa283fb3.js} +17 -17
  36. package/{date-picker-widget-e3ea276d.js → date-picker-widget-27455499.js} +17 -17
  37. package/default-slot-widget-72b6c85b.js +28 -0
  38. package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-d128fdb6.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-d5d2bf13.js} +7 -7
  39. package/{descriptions-widget-1e095fe9.js → descriptions-widget-7d94d1f0.js} +16 -16
  40. package/designer.es.js +32 -32
  41. package/designer.style.css +2 -2
  42. package/designer.umd.js +497 -490
  43. package/{dialog-03470982.js → dialog-0c8f5b0b.js} +2 -2
  44. package/{dialog-widget-9af2e166.js → dialog-widget-179c5d85.js} +17 -17
  45. package/{divider-widget-cfb1eab4.js → divider-widget-18bff6ed.js} +18 -18
  46. package/drag-wrapper-b3d2e19c.js +245 -0
  47. package/{drawer-widget-dbde2792.js → drawer-widget-04226855.js} +17 -17
  48. package/{dropdown-widget-7208a52b.js → dropdown-widget-e8414b0c.js} +16 -16
  49. package/{editor-wrapper-308534ad.js → editor-wrapper-808b06fb.js} +42 -42
  50. package/emitter-10592b70.js +55 -0
  51. package/{empty-widget-a8cb0d69.js → empty-widget-ce397da2.js} +18 -18
  52. package/{enum-type-7a78219b.js → enum-type-b832ec8a.js} +34 -11
  53. package/{enum-type-ed4bb9c3.js → enum-type-f5b76bdf.js} +210 -209
  54. package/{expression-2093e5c5.js → expression-8b88cd21.js} +1 -1
  55. package/feedback-widget-e8594a9a.js +29 -0
  56. package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-e48773e1.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-38d22796.js} +5 -5
  57. package/{field-editor-6eaff254.js → field-editor-dfb0e5f9.js} +25 -25
  58. package/{fieldobj-c44f899a.js → fieldobj-26f8789d.js} +1 -1
  59. package/{file-upload-widget-2758459f.js → file-upload-widget-185ac701.js} +22 -22
  60. package/{form-item-wrapper-5efba174.js → form-item-wrapper-a20bfca7.js} +12 -12
  61. package/{form-widget-cb002889.js → form-widget-fd1a0eea.js} +71 -69
  62. package/{grid-col-widget-6d5eaf7f.js → grid-col-widget-ec0de902.js} +1 -1
  63. package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-046cb801.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-46b2f307.js} +5 -5
  64. package/{grid-widget-ff1ee64d.js → grid-widget-5a9035fb.js} +5 -5
  65. package/{html-text-widget-366d0ec7.js → html-text-widget-9cc2ede7.js} +16 -16
  66. package/{icon-widget-5e3f714d.js → icon-widget-00f5bbb3.js} +15 -15
  67. package/{iframe-widget-4ac8f82d.js → iframe-widget-c7b2d6c4.js} +15 -15
  68. package/{image-editor-2a42c1c2.js → image-editor-820d8bbe.js} +18 -18
  69. package/{image-widget-b9c3203c.js → image-widget-5ba7d98d.js} +15 -15
  70. package/{index-d408b97b.js → index-0b521e17.js} +5 -5
  71. package/{index-deace08c.js → index-14efe18d.js} +1 -1
  72. package/{index-4c05c90e.js → index-1b5851a0.js} +8 -8
  73. package/{index-99197d0b.js → index-1cbb32c9.js} +11 -11
  74. package/{index-f2c95719.js → index-1f1feb30.js} +5 -5
  75. package/{index-553c347e.js → index-2015cdc8.js} +521 -494
  76. package/{index-7f391f92.js → index-25b3dc9f.js} +8 -8
  77. package/{index-951f2227.js → index-2fb87f1a.js} +16 -16
  78. package/{index-bbee8edd.js → index-31cb80e4.js} +10 -10
  79. package/{index-5787acf8.js → index-3a612fb4.js} +7 -7
  80. package/{index-46b27b2d.js → index-3b597f56.js} +6 -6
  81. package/{index-23d5383b.js → index-47b32fcf.js} +5 -5
  82. package/{index-6a37ae68.js → index-57792223.js} +1 -1
  83. package/{index-89bc16a3.js → index-658f5e0c.js} +36 -36
  84. package/{index-1650e2c4.js → index-708c1623.js} +25 -25
  85. package/{index-e7c47113.js → index-742982e5.js} +36 -36
  86. package/{index-8bd63a38.js → index-74922c1a.js} +1 -1
  87. package/{index-6920feb2.js → index-8cf6b672.js} +5 -5
  88. package/{index-ba8e037f.js → index-8d909f9a.js} +3 -3
  89. package/{index-f66c8079.js → index-acf8943a.js} +22 -22
  90. package/{index-44070c02.js → index-b9cb6d93.js} +38 -38
  91. package/{index-23cd2487.js → index-cf34606a.js} +7 -7
  92. package/{index-de13bfd5.js → index-ea8cdd56.js} +13 -13
  93. package/{index-97241d04.js → index-ec56a786.js} +7 -7
  94. package/{input-number-widget-e273a85f.js → input-number-widget-b1350662.js} +17 -17
  95. package/{input-widget-f3564a7f.js → input-widget-71db8cc4.js} +18 -18
  96. package/{install-designer-6b8fdfc4.js → install-designer-3b62fccb.js} +411 -411
  97. package/{item-9414d1c8.js → item-45931742.js} +4 -4
  98. package/{itemDetail-bc3b0b2d.js → itemDetail-6dd3b0e7.js} +6 -6
  99. package/{label-wrapper-49669a58.js → label-wrapper-70df4533.js} +5 -5
  100. package/{label-wrapper.vue_vue_type_style_index_0_lang-9ac7156e.js → label-wrapper.vue_vue_type_style_index_0_lang-77382f96.js} +3 -3
  101. package/{link-widget-b801380d.js → link-widget-aeb22e28.js} +18 -18
  102. package/{ltable-col-widget-70b05f21.js → ltable-col-widget-41ef06e5.js} +1 -1
  103. package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-1ad67981.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-89f88e3b.js} +85 -86
  104. package/{ltable-widget-fcb50337.js → ltable-widget-c9c7b137.js} +5 -5
  105. package/{menu-widget-332185ad.js → menu-widget-36617350.js} +25 -25
  106. package/{model-widget-f70a35ea.js → model-widget-31324395.js} +15 -15
  107. package/{multirow-f7027c08.js → multirow-4ef86b7f.js} +6 -6
  108. package/{multirow-widget-c31fd115.js → multirow-widget-5a4b82af.js} +17 -17
  109. package/{name-editor-3aea9521.js → name-editor-d6b8867b.js} +22 -22
  110. package/noimg-89eb860b.js +4 -0
  111. package/{optionItem-7b330a5f.js → optionItem-6a935391.js} +351 -244
  112. package/package.json +2 -2
  113. package/{pagination-widget-786f9b08.js → pagination-widget-ee76b0dd.js} +15 -15
  114. package/{picture-upload-widget-26f9e261.js → picture-upload-widget-097158a7.js} +18 -18
  115. package/{progress-widget-5fcb12f9.js → progress-widget-7b19631d.js} +16 -16
  116. package/{property-base-2a6a5873.js → property-base-9b77b978.js} +9 -9
  117. package/{propresult-1657db20.js → propresult-e568c3b6.js} +1 -1
  118. package/qrcode-widget-7489dab7.js +1528 -0
  119. package/{radio-widget-d36ccdc2.js → radio-widget-25c8a8b6.js} +17 -17
  120. package/{range-widget-3a915911.js → range-widget-72f68db5.js} +18 -18
  121. package/{rate-widget-fd922a64.js → rate-widget-0074e53c.js} +17 -17
  122. package/{reg-editor.vue_vue_type_script_setup_true_lang-e4ccce5a.js → reg-editor.vue_vue_type_script_setup_true_lang-45d98d20.js} +13 -13
  123. package/{result-widget-4742edaa.js → result-widget-5cafce31.js} +16 -16
  124. package/{rich-editor-widget-d8171584.js → rich-editor-widget-3b61516b.js} +17 -17
  125. package/{router-widget-b3e733ca.js → router-widget-18fc1f39.js} +15 -15
  126. package/{schemaData-d9f43144.js → schemaData-a67bb8e8.js} +6 -6
  127. package/{select-widget-e5c14274.js → select-widget-acab3a8f.js} +17 -17
  128. package/{sfc-41c00db1.js → sfc-f69a7de8.js} +9 -9
  129. package/{sfcview-949a7079.js → sfcview-b1449e78.js} +8 -8
  130. package/{share-editor-af4e721f.js → share-editor-e86d7583.js} +4 -4
  131. package/{share-event-2e9336e6.js → share-event-9856acb6.js} +2 -2
  132. package/{share-field-3afb6686.js → share-field-ec11e3b0.js} +8 -8
  133. package/{share-file-4732106c.js → share-file-a07016cc.js} +5 -5
  134. package/{size-editor-43552ec2.js → size-editor-d11337b4.js} +20 -20
  135. package/{slider-widget-612426bd.js → slider-widget-5f92a171.js} +17 -17
  136. package/{slot-8be85cbf.js → slot-55c73c2d.js} +3 -3
  137. package/{static-text-widget-9bcc0222.js → static-text-widget-37289d89.js} +16 -16
  138. package/{steps-widget-ab30754a.js → steps-widget-338c221b.js} +15 -15
  139. package/{subMenu-widget-96e41f54.js → subMenu-widget-9476918c.js} +7 -7
  140. package/{subMenu-widget.vue_vue_type_script_setup_true_lang-d2ec5505.js → subMenu-widget.vue_vue_type_script_setup_true_lang-63c315d9.js} +6 -6
  141. package/{switch-widget-1758d513.js → switch-widget-e4a43519.js} +17 -17
  142. package/{tab-pane-widget-5af4c580.js → tab-pane-widget-06a7009b.js} +1 -1
  143. package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-4943ccab.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-62571c7c.js} +5 -5
  144. package/table-col-widget-3ebbf095.js +25 -0
  145. package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-22be5eca.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-4bf6c104.js} +5 -5
  146. package/{table-widget-77f73ca5.js → table-widget-8857ba46.js} +17 -17
  147. package/{tabs-widget-256ebdad.js → tabs-widget-634df297.js} +7 -7
  148. package/{tag-widget-a0d6089e.js → tag-widget-a1482129.js} +18 -18
  149. package/{target-code-0aaf6696.js → target-code-3b80dca0.js} +7 -7
  150. package/{target-datasource-9e498b7f.js → target-datasource-546a3312.js} +37 -37
  151. package/{target-link-0b94c517.js → target-link-5c8967ac.js} +36 -36
  152. package/{target-saveForm-7abec9b9.js → target-saveForm-6213d505.js} +36 -36
  153. package/{target-widget-65bf5a49.js → target-widget-8a983d09.js} +1 -1
  154. package/{target-window-585350d5.js → target-window-7dfc5481.js} +8 -8
  155. package/{text-widget-94094545.js → text-widget-78adacb4.js} +18 -18
  156. package/{textarea-widget-bb25fda4.js → textarea-widget-61f204b4.js} +17 -17
  157. package/{time-picker-range-widget-e356e988.js → time-picker-range-widget-e54bec8f.js} +17 -17
  158. package/{time-picker-widget-a929751a.js → time-picker-widget-752752c8.js} +17 -17
  159. package/{time-select-widget-c290e04c.js → time-select-widget-fdb3a8d5.js} +17 -17
  160. package/{tmpl-widget-881f3b85.js → tmpl-widget-1ecb22ef.js} +16 -16
  161. package/{tree-select-widget-751cd25b.js → tree-select-widget-1e823992.js} +17 -17
  162. package/{tree-widget-055d7a12.js → tree-widget-b63a726e.js} +15 -15
  163. package/{value-editor-308d9a6a.js → value-editor-1a704941.js} +27 -27
  164. package/verifycode-widget-3e378dae.js +170 -0
  165. package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-9c165793.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-1f903af2.js} +6 -6
  166. package/{wrapper-widget-7811eaec.js → wrapper-widget-d1b95f93.js} +6 -6
  167. package/common-editor-3dc0f971.js +0 -26
  168. package/default-slot-widget-8db14cd8.js +0 -28
  169. package/drag-wrapper-5fe2e956.js +0 -245
  170. package/emitter-e3e94d64.js +0 -55
  171. package/feedback-widget-5ad56484.js +0 -29
  172. package/size-editor copy-c4783365.js +0 -94
  173. package/table-col-widget-050b0e59.js +0 -25
@@ -0,0 +1,2699 @@
1
+ import { defineComponent as ht, ref as Ct, watch as Nt, openBlock as Gt, createBlock as Ft, mergeProps as Ht, unref as B, withCtx as zt, createElementVNode as Xt, normalizeClass as Ut, normalizeStyle as Vt } from "vue";
2
+ import { w as qt } from "./expression-8b88cd21.js";
3
+ import { I as Jt } from "./field-base-5547436d.js";
4
+ import { c as Yt } from "./share-field-ec11e3b0.js";
5
+ import { _ as Wt } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-1f903af2.js";
6
+ import { S as Qt } from "./enum-type-b832ec8a.js";
7
+ import "./source-map-b04aec4a.js";
8
+ import "./uuid-009aae31.js";
9
+ import "./_commonjsHelpers-e7ea1525.js";
10
+ import "./esprima-e8d15055.js";
11
+ import "./widget-base-4c2d6265.js";
12
+ import "./emitter-10592b70.js";
13
+ import "./icon-6342f929.js";
14
+ import "./baseImp-b5857827.js";
15
+ import "./enum-type-f5b76bdf.js";
16
+ import "./dialog-0c8f5b0b.js";
17
+ import "element-plus";
18
+ import "./slot-55c73c2d.js";
19
+ import "./index-3b597f56.js";
20
+ import "./optionItem-6a935391.js";
21
+ import "./index-74922c1a.js";
22
+ import "./multirow-4ef86b7f.js";
23
+ import "./index-14efe18d.js";
24
+ import "./_plugin-vue_export-helper-dad06003.js";
25
+ import "./fieldobj-26f8789d.js";
26
+ var ge = {}, Z = {}, l = {};
27
+ Object.defineProperty(l, "__esModule", {
28
+ value: !0
29
+ });
30
+ function Zt(t, e) {
31
+ if (!(t instanceof e))
32
+ throw new TypeError("Cannot call a class as a function");
33
+ }
34
+ var Kt = function t(e, r) {
35
+ Zt(this, t), this.data = e, this.text = r.text || e, this.options = r;
36
+ };
37
+ l.default = Kt;
38
+ Object.defineProperty(Z, "__esModule", {
39
+ value: !0
40
+ });
41
+ Z.CODE39 = void 0;
42
+ var en = function() {
43
+ function t(e, r) {
44
+ for (var n = 0; n < r.length; n++) {
45
+ var a = r[n];
46
+ a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a);
47
+ }
48
+ }
49
+ return function(e, r, n) {
50
+ return r && t(e.prototype, r), n && t(e, n), e;
51
+ };
52
+ }(), tn = l, nn = rn(tn);
53
+ function rn(t) {
54
+ return t && t.__esModule ? t : { default: t };
55
+ }
56
+ function an(t, e) {
57
+ if (!(t instanceof e))
58
+ throw new TypeError("Cannot call a class as a function");
59
+ }
60
+ function on(t, e) {
61
+ if (!t)
62
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
63
+ return e && (typeof e == "object" || typeof e == "function") ? e : t;
64
+ }
65
+ function un(t, e) {
66
+ if (typeof e != "function" && e !== null)
67
+ throw new TypeError("Super expression must either be null or a function, not " + typeof e);
68
+ t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
69
+ }
70
+ var fn = function(t) {
71
+ un(e, t);
72
+ function e(r, n) {
73
+ return an(this, e), r = r.toUpperCase(), n.mod43 && (r += hn(dn(r))), on(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, r, n));
74
+ }
75
+ return en(e, [{
76
+ key: "encode",
77
+ value: function() {
78
+ for (var n = ce("*"), a = 0; a < this.data.length; a++)
79
+ n += ce(this.data[a]) + "0";
80
+ return n += ce("*"), {
81
+ data: n,
82
+ text: this.text
83
+ };
84
+ }
85
+ }, {
86
+ key: "valid",
87
+ value: function() {
88
+ return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/) !== -1;
89
+ }
90
+ }]), e;
91
+ }(nn.default), dt = ["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", "-", ".", " ", "$", "/", "+", "%", "*"], cn = [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];
92
+ function ce(t) {
93
+ return ln(_t(t));
94
+ }
95
+ function ln(t) {
96
+ return cn[t].toString(2);
97
+ }
98
+ function hn(t) {
99
+ return dt[t];
100
+ }
101
+ function _t(t) {
102
+ return dt.indexOf(t);
103
+ }
104
+ function dn(t) {
105
+ for (var e = 0, r = 0; r < t.length; r++)
106
+ e += _t(t[r]);
107
+ return e = e % 43, e;
108
+ }
109
+ Z.CODE39 = fn;
110
+ var p = {}, Oe = {}, M = {}, f = {};
111
+ Object.defineProperty(f, "__esModule", {
112
+ value: !0
113
+ });
114
+ var L;
115
+ function le(t, e, r) {
116
+ return e in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
117
+ }
118
+ var vt = f.SET_A = 0, st = f.SET_B = 1, yt = f.SET_C = 2;
119
+ f.SHIFT = 98;
120
+ var _n = f.START_A = 103, vn = f.START_B = 104, sn = f.START_C = 105;
121
+ f.MODULO = 103;
122
+ f.STOP = 106;
123
+ f.FNC1 = 207;
124
+ f.SET_BY_CODE = (L = {}, le(L, _n, vt), le(L, vn, st), le(L, sn, yt), L);
125
+ f.SWAP = {
126
+ 101: vt,
127
+ 100: st,
128
+ 99: yt
129
+ };
130
+ f.A_START_CHAR = String.fromCharCode(208);
131
+ f.B_START_CHAR = String.fromCharCode(209);
132
+ f.C_START_CHAR = String.fromCharCode(210);
133
+ f.A_CHARS = "[\0-_È-Ï]";
134
+ f.B_CHARS = "[ -È-Ï]";
135
+ f.C_CHARS = "(Ï*[0-9]{2}Ï*)";
136
+ f.BARS = [11011001100, 11001101100, 11001100110, 10010011e3, 10010001100, 10001001100, 10011001e3, 10011000100, 10001100100, 11001001e3, 11001000100, 11000100100, 10110011100, 10011011100, 10011001110, 10111001100, 10011101100, 10011100110, 11001110010, 11001011100, 11001001110, 11011100100, 11001110100, 11101101110, 11101001100, 11100101100, 11100100110, 11101100100, 11100110100, 11100110010, 11011011e3, 11011000110, 11000110110, 10100011e3, 10001011e3, 10001000110, 10110001e3, 10001101e3, 10001100010, 11010001e3, 11000101e3, 11000100010, 10110111e3, 10110001110, 10001101110, 10111011e3, 10111000110, 10001110110, 11101110110, 11010001110, 11000101110, 11011101e3, 11011100010, 11011101110, 11101011e3, 11101000110, 11100010110, 11101101e3, 11101100010, 11100011010, 11101111010, 11001000010, 11110001010, 1010011e4, 10100001100, 1001011e4, 10010000110, 10000101100, 10000100110, 1011001e4, 10110000100, 1001101e4, 10011000010, 10000110100, 10000110010, 11000010010, 1100101e4, 11110111010, 11000010100, 10001111010, 10100111100, 10010111100, 10010011110, 10111100100, 10011110100, 10011110010, 11110100100, 11110010100, 11110010010, 11011011110, 11011110110, 11110110110, 10101111e3, 10100011110, 10001011110, 10111101e3, 10111100010, 11110101e3, 11110100010, 10111011110, 10111101110, 11101011110, 11110101110, 11010000100, 1101001e4, 11010011100, 1100011101011];
137
+ Object.defineProperty(M, "__esModule", {
138
+ value: !0
139
+ });
140
+ var yn = function() {
141
+ function t(e, r) {
142
+ for (var n = 0; n < r.length; n++) {
143
+ var a = r[n];
144
+ a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a);
145
+ }
146
+ }
147
+ return function(e, r, n) {
148
+ return r && t(e.prototype, r), n && t(e, n), e;
149
+ };
150
+ }(), pn = l, gn = On(pn), d = f;
151
+ function On(t) {
152
+ return t && t.__esModule ? t : { default: t };
153
+ }
154
+ function En(t, e) {
155
+ if (!(t instanceof e))
156
+ throw new TypeError("Cannot call a class as a function");
157
+ }
158
+ function bn(t, e) {
159
+ if (!t)
160
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
161
+ return e && (typeof e == "object" || typeof e == "function") ? e : t;
162
+ }
163
+ function mn(t, e) {
164
+ if (typeof e != "function" && e !== null)
165
+ throw new TypeError("Super expression must either be null or a function, not " + typeof e);
166
+ t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
167
+ }
168
+ var wn = function(t) {
169
+ mn(e, t);
170
+ function e(r, n) {
171
+ En(this, e);
172
+ var a = bn(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, r.substring(1), n));
173
+ return a.bytes = r.split("").map(function(i) {
174
+ return i.charCodeAt(0);
175
+ }), a;
176
+ }
177
+ return yn(e, [{
178
+ key: "valid",
179
+ value: function() {
180
+ return /^[\x00-\x7F\xC8-\xD3]+$/.test(this.data);
181
+ }
182
+ // The public encoding function
183
+ }, {
184
+ key: "encode",
185
+ value: function() {
186
+ var n = this.bytes, a = n.shift() - 105, i = d.SET_BY_CODE[a];
187
+ if (i === void 0)
188
+ throw new RangeError("The encoding does not start with a start character.");
189
+ this.shouldEncodeAsEan128() === !0 && n.unshift(d.FNC1);
190
+ var o = e.next(n, 1, i);
191
+ return {
192
+ text: this.text === this.data ? this.text.replace(/[^\x20-\x7E]/g, "") : this.text,
193
+ data: (
194
+ // Add the start bits
195
+ e.getBar(a) + // Add the encoded bits
196
+ o.result + // Add the checksum
197
+ e.getBar((o.checksum + a) % d.MODULO) + // Add the end bits
198
+ e.getBar(d.STOP)
199
+ )
200
+ };
201
+ }
202
+ // GS1-128/EAN-128
203
+ }, {
204
+ key: "shouldEncodeAsEan128",
205
+ value: function() {
206
+ var n = this.options.ean128 || !1;
207
+ return typeof n == "string" && (n = n.toLowerCase() === "true"), n;
208
+ }
209
+ // Get a bar symbol by index
210
+ }], [{
211
+ key: "getBar",
212
+ value: function(n) {
213
+ return d.BARS[n] ? d.BARS[n].toString() : "";
214
+ }
215
+ // Correct an index by a set and shift it from the bytes array
216
+ }, {
217
+ key: "correctIndex",
218
+ value: function(n, a) {
219
+ if (a === d.SET_A) {
220
+ var i = n.shift();
221
+ return i < 32 ? i + 64 : i - 32;
222
+ } else
223
+ return a === d.SET_B ? n.shift() - 32 : (n.shift() - 48) * 10 + n.shift() - 48;
224
+ }
225
+ }, {
226
+ key: "next",
227
+ value: function(n, a, i) {
228
+ if (!n.length)
229
+ return { result: "", checksum: 0 };
230
+ var o = void 0, u = void 0;
231
+ if (n[0] >= 200) {
232
+ u = n.shift() - 105;
233
+ var c = d.SWAP[u];
234
+ c !== void 0 ? o = e.next(n, a + 1, c) : ((i === d.SET_A || i === d.SET_B) && u === d.SHIFT && (n[0] = i === d.SET_A ? n[0] > 95 ? n[0] - 96 : n[0] : n[0] < 32 ? n[0] + 96 : n[0]), o = e.next(n, a + 1, i));
235
+ } else
236
+ u = e.correctIndex(n, i), o = e.next(n, a + 1, i);
237
+ var v = e.getBar(u), b = u * a;
238
+ return {
239
+ result: v + o.result,
240
+ checksum: b + o.checksum
241
+ };
242
+ }
243
+ }]), e;
244
+ }(gn.default);
245
+ M.default = wn;
246
+ var Ee = {};
247
+ Object.defineProperty(Ee, "__esModule", {
248
+ value: !0
249
+ });
250
+ var O = f, pt = function(e) {
251
+ return e.match(new RegExp("^" + O.A_CHARS + "*"))[0].length;
252
+ }, gt = function(e) {
253
+ return e.match(new RegExp("^" + O.B_CHARS + "*"))[0].length;
254
+ }, Ot = function(e) {
255
+ return e.match(new RegExp("^" + O.C_CHARS + "*"))[0];
256
+ };
257
+ function be(t, e) {
258
+ var r = e ? O.A_CHARS : O.B_CHARS, n = t.match(new RegExp("^(" + r + "+?)(([0-9]{2}){2,})([^0-9]|$)"));
259
+ if (n)
260
+ return n[1] + String.fromCharCode(204) + Et(t.substring(n[1].length));
261
+ var a = t.match(new RegExp("^" + r + "+"))[0];
262
+ return a.length === t.length ? t : a + String.fromCharCode(e ? 205 : 206) + be(t.substring(a.length), !e);
263
+ }
264
+ function Et(t) {
265
+ var e = Ot(t), r = e.length;
266
+ if (r === t.length)
267
+ return t;
268
+ t = t.substring(r);
269
+ var n = pt(t) >= gt(t);
270
+ return e + String.fromCharCode(n ? 206 : 205) + be(t, n);
271
+ }
272
+ Ee.default = function(t) {
273
+ var e = void 0, r = Ot(t).length;
274
+ if (r >= 2)
275
+ e = O.C_START_CHAR + Et(t);
276
+ else {
277
+ var n = pt(t) > gt(t);
278
+ e = (n ? O.A_START_CHAR : O.B_START_CHAR) + be(t, n);
279
+ }
280
+ return e.replace(
281
+ /[\xCD\xCE]([^])[\xCD\xCE]/,
282
+ // Any sequence between 205 and 206 characters
283
+ function(a, i) {
284
+ return String.fromCharCode(203) + i;
285
+ }
286
+ );
287
+ };
288
+ Object.defineProperty(Oe, "__esModule", {
289
+ value: !0
290
+ });
291
+ var $n = M, xn = bt($n), Sn = Ee, An = bt(Sn);
292
+ function bt(t) {
293
+ return t && t.__esModule ? t : { default: t };
294
+ }
295
+ function Rn(t, e) {
296
+ if (!(t instanceof e))
297
+ throw new TypeError("Cannot call a class as a function");
298
+ }
299
+ function he(t, e) {
300
+ if (!t)
301
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
302
+ return e && (typeof e == "object" || typeof e == "function") ? e : t;
303
+ }
304
+ function Pn(t, e) {
305
+ if (typeof e != "function" && e !== null)
306
+ throw new TypeError("Super expression must either be null or a function, not " + typeof e);
307
+ t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
308
+ }
309
+ var Tn = function(t) {
310
+ Pn(e, t);
311
+ function e(r, n) {
312
+ if (Rn(this, e), /^[\x00-\x7F\xC8-\xD3]+$/.test(r))
313
+ var a = he(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, (0, An.default)(r), n));
314
+ else
315
+ var a = he(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, r, n));
316
+ return he(a);
317
+ }
318
+ return e;
319
+ }(xn.default);
320
+ Oe.default = Tn;
321
+ var me = {};
322
+ Object.defineProperty(me, "__esModule", {
323
+ value: !0
324
+ });
325
+ var Mn = function() {
326
+ function t(e, r) {
327
+ for (var n = 0; n < r.length; n++) {
328
+ var a = r[n];
329
+ a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a);
330
+ }
331
+ }
332
+ return function(e, r, n) {
333
+ return r && t(e.prototype, r), n && t(e, n), e;
334
+ };
335
+ }(), In = M, kn = Dn(In), We = f;
336
+ function Dn(t) {
337
+ return t && t.__esModule ? t : { default: t };
338
+ }
339
+ function jn(t, e) {
340
+ if (!(t instanceof e))
341
+ throw new TypeError("Cannot call a class as a function");
342
+ }
343
+ function Bn(t, e) {
344
+ if (!t)
345
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
346
+ return e && (typeof e == "object" || typeof e == "function") ? e : t;
347
+ }
348
+ function Ln(t, e) {
349
+ if (typeof e != "function" && e !== null)
350
+ throw new TypeError("Super expression must either be null or a function, not " + typeof e);
351
+ t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
352
+ }
353
+ var Cn = function(t) {
354
+ Ln(e, t);
355
+ function e(r, n) {
356
+ return jn(this, e), Bn(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, We.A_START_CHAR + r, n));
357
+ }
358
+ return Mn(e, [{
359
+ key: "valid",
360
+ value: function() {
361
+ return new RegExp("^" + We.A_CHARS + "+$").test(this.data);
362
+ }
363
+ }]), e;
364
+ }(kn.default);
365
+ me.default = Cn;
366
+ var we = {};
367
+ Object.defineProperty(we, "__esModule", {
368
+ value: !0
369
+ });
370
+ var Nn = function() {
371
+ function t(e, r) {
372
+ for (var n = 0; n < r.length; n++) {
373
+ var a = r[n];
374
+ a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a);
375
+ }
376
+ }
377
+ return function(e, r, n) {
378
+ return r && t(e.prototype, r), n && t(e, n), e;
379
+ };
380
+ }(), Gn = M, Fn = Hn(Gn), Qe = f;
381
+ function Hn(t) {
382
+ return t && t.__esModule ? t : { default: t };
383
+ }
384
+ function zn(t, e) {
385
+ if (!(t instanceof e))
386
+ throw new TypeError("Cannot call a class as a function");
387
+ }
388
+ function Xn(t, e) {
389
+ if (!t)
390
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
391
+ return e && (typeof e == "object" || typeof e == "function") ? e : t;
392
+ }
393
+ function Un(t, e) {
394
+ if (typeof e != "function" && e !== null)
395
+ throw new TypeError("Super expression must either be null or a function, not " + typeof e);
396
+ t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
397
+ }
398
+ var Vn = function(t) {
399
+ Un(e, t);
400
+ function e(r, n) {
401
+ return zn(this, e), Xn(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, Qe.B_START_CHAR + r, n));
402
+ }
403
+ return Nn(e, [{
404
+ key: "valid",
405
+ value: function() {
406
+ return new RegExp("^" + Qe.B_CHARS + "+$").test(this.data);
407
+ }
408
+ }]), e;
409
+ }(Fn.default);
410
+ we.default = Vn;
411
+ var $e = {};
412
+ Object.defineProperty($e, "__esModule", {
413
+ value: !0
414
+ });
415
+ var qn = function() {
416
+ function t(e, r) {
417
+ for (var n = 0; n < r.length; n++) {
418
+ var a = r[n];
419
+ a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a);
420
+ }
421
+ }
422
+ return function(e, r, n) {
423
+ return r && t(e.prototype, r), n && t(e, n), e;
424
+ };
425
+ }(), Jn = M, Yn = Wn(Jn), Ze = f;
426
+ function Wn(t) {
427
+ return t && t.__esModule ? t : { default: t };
428
+ }
429
+ function Qn(t, e) {
430
+ if (!(t instanceof e))
431
+ throw new TypeError("Cannot call a class as a function");
432
+ }
433
+ function Zn(t, e) {
434
+ if (!t)
435
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
436
+ return e && (typeof e == "object" || typeof e == "function") ? e : t;
437
+ }
438
+ function Kn(t, e) {
439
+ if (typeof e != "function" && e !== null)
440
+ throw new TypeError("Super expression must either be null or a function, not " + typeof e);
441
+ t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
442
+ }
443
+ var er = function(t) {
444
+ Kn(e, t);
445
+ function e(r, n) {
446
+ return Qn(this, e), Zn(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, Ze.C_START_CHAR + r, n));
447
+ }
448
+ return qn(e, [{
449
+ key: "valid",
450
+ value: function() {
451
+ return new RegExp("^" + Ze.C_CHARS + "+$").test(this.data);
452
+ }
453
+ }]), e;
454
+ }(Yn.default);
455
+ $e.default = er;
456
+ Object.defineProperty(p, "__esModule", {
457
+ value: !0
458
+ });
459
+ p.CODE128C = p.CODE128B = p.CODE128A = p.CODE128 = void 0;
460
+ var tr = Oe, nr = K(tr), rr = me, ar = K(rr), ir = we, or = K(ir), ur = $e, fr = K(ur);
461
+ function K(t) {
462
+ return t && t.__esModule ? t : { default: t };
463
+ }
464
+ p.CODE128 = nr.default;
465
+ p.CODE128A = ar.default;
466
+ p.CODE128B = or.default;
467
+ p.CODE128C = fr.default;
468
+ var h = {}, xe = {}, y = {};
469
+ Object.defineProperty(y, "__esModule", {
470
+ value: !0
471
+ });
472
+ y.SIDE_BIN = "101";
473
+ y.MIDDLE_BIN = "01010";
474
+ y.BINARIES = {
475
+ L: [
476
+ // The L (left) type of encoding
477
+ "0001101",
478
+ "0011001",
479
+ "0010011",
480
+ "0111101",
481
+ "0100011",
482
+ "0110001",
483
+ "0101111",
484
+ "0111011",
485
+ "0110111",
486
+ "0001011"
487
+ ],
488
+ G: [
489
+ // The G type of encoding
490
+ "0100111",
491
+ "0110011",
492
+ "0011011",
493
+ "0100001",
494
+ "0011101",
495
+ "0111001",
496
+ "0000101",
497
+ "0010001",
498
+ "0001001",
499
+ "0010111"
500
+ ],
501
+ R: [
502
+ // The R (right) type of encoding
503
+ "1110010",
504
+ "1100110",
505
+ "1101100",
506
+ "1000010",
507
+ "1011100",
508
+ "1001110",
509
+ "1010000",
510
+ "1000100",
511
+ "1001000",
512
+ "1110100"
513
+ ],
514
+ O: [
515
+ // The O (odd) encoding for UPC-E
516
+ "0001101",
517
+ "0011001",
518
+ "0010011",
519
+ "0111101",
520
+ "0100011",
521
+ "0110001",
522
+ "0101111",
523
+ "0111011",
524
+ "0110111",
525
+ "0001011"
526
+ ],
527
+ E: [
528
+ // The E (even) encoding for UPC-E
529
+ "0100111",
530
+ "0110011",
531
+ "0011011",
532
+ "0100001",
533
+ "0011101",
534
+ "0111001",
535
+ "0000101",
536
+ "0010001",
537
+ "0001001",
538
+ "0010111"
539
+ ]
540
+ };
541
+ y.EAN2_STRUCTURE = ["LL", "LG", "GL", "GG"];
542
+ y.EAN5_STRUCTURE = ["GGLLL", "GLGLL", "GLLGL", "GLLLG", "LGGLL", "LLGGL", "LLLGG", "LGLGL", "LGLLG", "LLGLG"];
543
+ y.EAN13_STRUCTURE = ["LLLLLL", "LLGLGG", "LLGGLG", "LLGGGL", "LGLLGG", "LGGLLG", "LGGGLL", "LGLGLG", "LGLGGL", "LGGLGL"];
544
+ var ee = {}, w = {};
545
+ Object.defineProperty(w, "__esModule", {
546
+ value: !0
547
+ });
548
+ var cr = y, lr = function(e, r, n) {
549
+ var a = e.split("").map(function(o, u) {
550
+ return cr.BINARIES[r[u]];
551
+ }).map(function(o, u) {
552
+ return o ? o[e[u]] : "";
553
+ });
554
+ if (n) {
555
+ var i = e.length - 1;
556
+ a = a.map(function(o, u) {
557
+ return u < i ? o + n : o;
558
+ });
559
+ }
560
+ return a.join("");
561
+ };
562
+ w.default = lr;
563
+ Object.defineProperty(ee, "__esModule", {
564
+ value: !0
565
+ });
566
+ var hr = function() {
567
+ function t(e, r) {
568
+ for (var n = 0; n < r.length; n++) {
569
+ var a = r[n];
570
+ a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a);
571
+ }
572
+ }
573
+ return function(e, r, n) {
574
+ return r && t(e.prototype, r), n && t(e, n), e;
575
+ };
576
+ }(), S = y, dr = w, Ke = mt(dr), _r = l, vr = mt(_r);
577
+ function mt(t) {
578
+ return t && t.__esModule ? t : { default: t };
579
+ }
580
+ function sr(t, e) {
581
+ if (!(t instanceof e))
582
+ throw new TypeError("Cannot call a class as a function");
583
+ }
584
+ function yr(t, e) {
585
+ if (!t)
586
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
587
+ return e && (typeof e == "object" || typeof e == "function") ? e : t;
588
+ }
589
+ function pr(t, e) {
590
+ if (typeof e != "function" && e !== null)
591
+ throw new TypeError("Super expression must either be null or a function, not " + typeof e);
592
+ t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
593
+ }
594
+ var gr = function(t) {
595
+ pr(e, t);
596
+ function e(r, n) {
597
+ sr(this, e);
598
+ var a = yr(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, r, n));
599
+ return a.fontSize = !n.flat && n.fontSize > n.width * 10 ? n.width * 10 : n.fontSize, a.guardHeight = n.height + a.fontSize / 2 + n.textMargin, a;
600
+ }
601
+ return hr(e, [{
602
+ key: "encode",
603
+ value: function() {
604
+ return this.options.flat ? this.encodeFlat() : this.encodeGuarded();
605
+ }
606
+ }, {
607
+ key: "leftText",
608
+ value: function(n, a) {
609
+ return this.text.substr(n, a);
610
+ }
611
+ }, {
612
+ key: "leftEncode",
613
+ value: function(n, a) {
614
+ return (0, Ke.default)(n, a);
615
+ }
616
+ }, {
617
+ key: "rightText",
618
+ value: function(n, a) {
619
+ return this.text.substr(n, a);
620
+ }
621
+ }, {
622
+ key: "rightEncode",
623
+ value: function(n, a) {
624
+ return (0, Ke.default)(n, a);
625
+ }
626
+ }, {
627
+ key: "encodeGuarded",
628
+ value: function() {
629
+ var n = { fontSize: this.fontSize }, a = { height: this.guardHeight };
630
+ return [{ data: S.SIDE_BIN, options: a }, { data: this.leftEncode(), text: this.leftText(), options: n }, { data: S.MIDDLE_BIN, options: a }, { data: this.rightEncode(), text: this.rightText(), options: n }, { data: S.SIDE_BIN, options: a }];
631
+ }
632
+ }, {
633
+ key: "encodeFlat",
634
+ value: function() {
635
+ var n = [S.SIDE_BIN, this.leftEncode(), S.MIDDLE_BIN, this.rightEncode(), S.SIDE_BIN];
636
+ return {
637
+ data: n.join(""),
638
+ text: this.text
639
+ };
640
+ }
641
+ }]), e;
642
+ }(vr.default);
643
+ ee.default = gr;
644
+ Object.defineProperty(xe, "__esModule", {
645
+ value: !0
646
+ });
647
+ var Or = function() {
648
+ function t(e, r) {
649
+ for (var n = 0; n < r.length; n++) {
650
+ var a = r[n];
651
+ a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a);
652
+ }
653
+ }
654
+ return function(e, r, n) {
655
+ return r && t(e.prototype, r), n && t(e, n), e;
656
+ };
657
+ }(), C = function t(e, r, n) {
658
+ e === null && (e = Function.prototype);
659
+ var a = Object.getOwnPropertyDescriptor(e, r);
660
+ if (a === void 0) {
661
+ var i = Object.getPrototypeOf(e);
662
+ return i === null ? void 0 : t(i, r, n);
663
+ } else {
664
+ if ("value" in a)
665
+ return a.value;
666
+ var o = a.get;
667
+ return o === void 0 ? void 0 : o.call(n);
668
+ }
669
+ }, Er = y, br = ee, mr = wr(br);
670
+ function wr(t) {
671
+ return t && t.__esModule ? t : { default: t };
672
+ }
673
+ function $r(t, e) {
674
+ if (!(t instanceof e))
675
+ throw new TypeError("Cannot call a class as a function");
676
+ }
677
+ function xr(t, e) {
678
+ if (!t)
679
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
680
+ return e && (typeof e == "object" || typeof e == "function") ? e : t;
681
+ }
682
+ function Sr(t, e) {
683
+ if (typeof e != "function" && e !== null)
684
+ throw new TypeError("Super expression must either be null or a function, not " + typeof e);
685
+ t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
686
+ }
687
+ var et = function(e) {
688
+ var r = e.substr(0, 12).split("").map(function(n) {
689
+ return +n;
690
+ }).reduce(function(n, a, i) {
691
+ return i % 2 ? n + a * 3 : n + a;
692
+ }, 0);
693
+ return (10 - r % 10) % 10;
694
+ }, Ar = function(t) {
695
+ Sr(e, t);
696
+ function e(r, n) {
697
+ $r(this, e), r.search(/^[0-9]{12}$/) !== -1 && (r += et(r));
698
+ var a = xr(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, r, n));
699
+ return a.lastChar = n.lastChar, a;
700
+ }
701
+ return Or(e, [{
702
+ key: "valid",
703
+ value: function() {
704
+ return this.data.search(/^[0-9]{13}$/) !== -1 && +this.data[12] === et(this.data);
705
+ }
706
+ }, {
707
+ key: "leftText",
708
+ value: function() {
709
+ return C(e.prototype.__proto__ || Object.getPrototypeOf(e.prototype), "leftText", this).call(this, 1, 6);
710
+ }
711
+ }, {
712
+ key: "leftEncode",
713
+ value: function() {
714
+ var n = this.data.substr(1, 6), a = Er.EAN13_STRUCTURE[this.data[0]];
715
+ return C(e.prototype.__proto__ || Object.getPrototypeOf(e.prototype), "leftEncode", this).call(this, n, a);
716
+ }
717
+ }, {
718
+ key: "rightText",
719
+ value: function() {
720
+ return C(e.prototype.__proto__ || Object.getPrototypeOf(e.prototype), "rightText", this).call(this, 7, 6);
721
+ }
722
+ }, {
723
+ key: "rightEncode",
724
+ value: function() {
725
+ var n = this.data.substr(7, 6);
726
+ return C(e.prototype.__proto__ || Object.getPrototypeOf(e.prototype), "rightEncode", this).call(this, n, "RRRRRR");
727
+ }
728
+ // The "standard" way of printing EAN13 barcodes with guard bars
729
+ }, {
730
+ key: "encodeGuarded",
731
+ value: function() {
732
+ var n = C(e.prototype.__proto__ || Object.getPrototypeOf(e.prototype), "encodeGuarded", this).call(this);
733
+ return this.options.displayValue && (n.unshift({
734
+ data: "000000000000",
735
+ text: this.text.substr(0, 1),
736
+ options: { textAlign: "left", fontSize: this.fontSize }
737
+ }), this.options.lastChar && (n.push({
738
+ data: "00"
739
+ }), n.push({
740
+ data: "00000",
741
+ text: this.options.lastChar,
742
+ options: { fontSize: this.fontSize }
743
+ }))), n;
744
+ }
745
+ }]), e;
746
+ }(mr.default);
747
+ xe.default = Ar;
748
+ var Se = {};
749
+ Object.defineProperty(Se, "__esModule", {
750
+ value: !0
751
+ });
752
+ var Rr = function() {
753
+ function t(e, r) {
754
+ for (var n = 0; n < r.length; n++) {
755
+ var a = r[n];
756
+ a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a);
757
+ }
758
+ }
759
+ return function(e, r, n) {
760
+ return r && t(e.prototype, r), n && t(e, n), e;
761
+ };
762
+ }(), q = function t(e, r, n) {
763
+ e === null && (e = Function.prototype);
764
+ var a = Object.getOwnPropertyDescriptor(e, r);
765
+ if (a === void 0) {
766
+ var i = Object.getPrototypeOf(e);
767
+ return i === null ? void 0 : t(i, r, n);
768
+ } else {
769
+ if ("value" in a)
770
+ return a.value;
771
+ var o = a.get;
772
+ return o === void 0 ? void 0 : o.call(n);
773
+ }
774
+ }, Pr = ee, Tr = Mr(Pr);
775
+ function Mr(t) {
776
+ return t && t.__esModule ? t : { default: t };
777
+ }
778
+ function Ir(t, e) {
779
+ if (!(t instanceof e))
780
+ throw new TypeError("Cannot call a class as a function");
781
+ }
782
+ function kr(t, e) {
783
+ if (!t)
784
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
785
+ return e && (typeof e == "object" || typeof e == "function") ? e : t;
786
+ }
787
+ function Dr(t, e) {
788
+ if (typeof e != "function" && e !== null)
789
+ throw new TypeError("Super expression must either be null or a function, not " + typeof e);
790
+ t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
791
+ }
792
+ var tt = function(e) {
793
+ var r = e.substr(0, 7).split("").map(function(n) {
794
+ return +n;
795
+ }).reduce(function(n, a, i) {
796
+ return i % 2 ? n + a : n + a * 3;
797
+ }, 0);
798
+ return (10 - r % 10) % 10;
799
+ }, jr = function(t) {
800
+ Dr(e, t);
801
+ function e(r, n) {
802
+ return Ir(this, e), r.search(/^[0-9]{7}$/) !== -1 && (r += tt(r)), kr(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, r, n));
803
+ }
804
+ return Rr(e, [{
805
+ key: "valid",
806
+ value: function() {
807
+ return this.data.search(/^[0-9]{8}$/) !== -1 && +this.data[7] === tt(this.data);
808
+ }
809
+ }, {
810
+ key: "leftText",
811
+ value: function() {
812
+ return q(e.prototype.__proto__ || Object.getPrototypeOf(e.prototype), "leftText", this).call(this, 0, 4);
813
+ }
814
+ }, {
815
+ key: "leftEncode",
816
+ value: function() {
817
+ var n = this.data.substr(0, 4);
818
+ return q(e.prototype.__proto__ || Object.getPrototypeOf(e.prototype), "leftEncode", this).call(this, n, "LLLL");
819
+ }
820
+ }, {
821
+ key: "rightText",
822
+ value: function() {
823
+ return q(e.prototype.__proto__ || Object.getPrototypeOf(e.prototype), "rightText", this).call(this, 4, 4);
824
+ }
825
+ }, {
826
+ key: "rightEncode",
827
+ value: function() {
828
+ var n = this.data.substr(4, 4);
829
+ return q(e.prototype.__proto__ || Object.getPrototypeOf(e.prototype), "rightEncode", this).call(this, n, "RRRR");
830
+ }
831
+ }]), e;
832
+ }(Tr.default);
833
+ Se.default = jr;
834
+ var Ae = {};
835
+ Object.defineProperty(Ae, "__esModule", {
836
+ value: !0
837
+ });
838
+ var Br = function() {
839
+ function t(e, r) {
840
+ for (var n = 0; n < r.length; n++) {
841
+ var a = r[n];
842
+ a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a);
843
+ }
844
+ }
845
+ return function(e, r, n) {
846
+ return r && t(e.prototype, r), n && t(e, n), e;
847
+ };
848
+ }(), Lr = y, Cr = w, Nr = wt(Cr), Gr = l, Fr = wt(Gr);
849
+ function wt(t) {
850
+ return t && t.__esModule ? t : { default: t };
851
+ }
852
+ function Hr(t, e) {
853
+ if (!(t instanceof e))
854
+ throw new TypeError("Cannot call a class as a function");
855
+ }
856
+ function zr(t, e) {
857
+ if (!t)
858
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
859
+ return e && (typeof e == "object" || typeof e == "function") ? e : t;
860
+ }
861
+ function Xr(t, e) {
862
+ if (typeof e != "function" && e !== null)
863
+ throw new TypeError("Super expression must either be null or a function, not " + typeof e);
864
+ t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
865
+ }
866
+ var Ur = function(e) {
867
+ var r = e.split("").map(function(n) {
868
+ return +n;
869
+ }).reduce(function(n, a, i) {
870
+ return i % 2 ? n + a * 9 : n + a * 3;
871
+ }, 0);
872
+ return r % 10;
873
+ }, Vr = function(t) {
874
+ Xr(e, t);
875
+ function e(r, n) {
876
+ return Hr(this, e), zr(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, r, n));
877
+ }
878
+ return Br(e, [{
879
+ key: "valid",
880
+ value: function() {
881
+ return this.data.search(/^[0-9]{5}$/) !== -1;
882
+ }
883
+ }, {
884
+ key: "encode",
885
+ value: function() {
886
+ var n = Lr.EAN5_STRUCTURE[Ur(this.data)];
887
+ return {
888
+ data: "1011" + (0, Nr.default)(this.data, n, "01"),
889
+ text: this.text
890
+ };
891
+ }
892
+ }]), e;
893
+ }(Fr.default);
894
+ Ae.default = Vr;
895
+ var Re = {};
896
+ Object.defineProperty(Re, "__esModule", {
897
+ value: !0
898
+ });
899
+ var qr = function() {
900
+ function t(e, r) {
901
+ for (var n = 0; n < r.length; n++) {
902
+ var a = r[n];
903
+ a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a);
904
+ }
905
+ }
906
+ return function(e, r, n) {
907
+ return r && t(e.prototype, r), n && t(e, n), e;
908
+ };
909
+ }(), Jr = y, Yr = w, Wr = $t(Yr), Qr = l, Zr = $t(Qr);
910
+ function $t(t) {
911
+ return t && t.__esModule ? t : { default: t };
912
+ }
913
+ function Kr(t, e) {
914
+ if (!(t instanceof e))
915
+ throw new TypeError("Cannot call a class as a function");
916
+ }
917
+ function ea(t, e) {
918
+ if (!t)
919
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
920
+ return e && (typeof e == "object" || typeof e == "function") ? e : t;
921
+ }
922
+ function ta(t, e) {
923
+ if (typeof e != "function" && e !== null)
924
+ throw new TypeError("Super expression must either be null or a function, not " + typeof e);
925
+ t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
926
+ }
927
+ var na = function(t) {
928
+ ta(e, t);
929
+ function e(r, n) {
930
+ return Kr(this, e), ea(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, r, n));
931
+ }
932
+ return qr(e, [{
933
+ key: "valid",
934
+ value: function() {
935
+ return this.data.search(/^[0-9]{2}$/) !== -1;
936
+ }
937
+ }, {
938
+ key: "encode",
939
+ value: function() {
940
+ var n = Jr.EAN2_STRUCTURE[parseInt(this.data) % 4];
941
+ return {
942
+ // Start bits + Encode the two digits with 01 in between
943
+ data: "1011" + (0, Wr.default)(this.data, n, "01"),
944
+ text: this.text
945
+ };
946
+ }
947
+ }]), e;
948
+ }(Zr.default);
949
+ Re.default = na;
950
+ var F = {};
951
+ Object.defineProperty(F, "__esModule", {
952
+ value: !0
953
+ });
954
+ var ra = function() {
955
+ function t(e, r) {
956
+ for (var n = 0; n < r.length; n++) {
957
+ var a = r[n];
958
+ a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a);
959
+ }
960
+ }
961
+ return function(e, r, n) {
962
+ return r && t(e.prototype, r), n && t(e, n), e;
963
+ };
964
+ }();
965
+ F.checksum = se;
966
+ var aa = w, A = xt(aa), ia = l, oa = xt(ia);
967
+ function xt(t) {
968
+ return t && t.__esModule ? t : { default: t };
969
+ }
970
+ function ua(t, e) {
971
+ if (!(t instanceof e))
972
+ throw new TypeError("Cannot call a class as a function");
973
+ }
974
+ function fa(t, e) {
975
+ if (!t)
976
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
977
+ return e && (typeof e == "object" || typeof e == "function") ? e : t;
978
+ }
979
+ function ca(t, e) {
980
+ if (typeof e != "function" && e !== null)
981
+ throw new TypeError("Super expression must either be null or a function, not " + typeof e);
982
+ t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
983
+ }
984
+ var la = function(t) {
985
+ ca(e, t);
986
+ function e(r, n) {
987
+ ua(this, e), r.search(/^[0-9]{11}$/) !== -1 && (r += se(r));
988
+ var a = fa(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, r, n));
989
+ return a.displayValue = n.displayValue, n.fontSize > n.width * 10 ? a.fontSize = n.width * 10 : a.fontSize = n.fontSize, a.guardHeight = n.height + a.fontSize / 2 + n.textMargin, a;
990
+ }
991
+ return ra(e, [{
992
+ key: "valid",
993
+ value: function() {
994
+ return this.data.search(/^[0-9]{12}$/) !== -1 && this.data[11] == se(this.data);
995
+ }
996
+ }, {
997
+ key: "encode",
998
+ value: function() {
999
+ return this.options.flat ? this.flatEncoding() : this.guardedEncoding();
1000
+ }
1001
+ }, {
1002
+ key: "flatEncoding",
1003
+ value: function() {
1004
+ var n = "";
1005
+ return n += "101", n += (0, A.default)(this.data.substr(0, 6), "LLLLLL"), n += "01010", n += (0, A.default)(this.data.substr(6, 6), "RRRRRR"), n += "101", {
1006
+ data: n,
1007
+ text: this.text
1008
+ };
1009
+ }
1010
+ }, {
1011
+ key: "guardedEncoding",
1012
+ value: function() {
1013
+ var n = [];
1014
+ return this.displayValue && n.push({
1015
+ data: "00000000",
1016
+ text: this.text.substr(0, 1),
1017
+ options: { textAlign: "left", fontSize: this.fontSize }
1018
+ }), n.push({
1019
+ data: "101" + (0, A.default)(this.data[0], "L"),
1020
+ options: { height: this.guardHeight }
1021
+ }), n.push({
1022
+ data: (0, A.default)(this.data.substr(1, 5), "LLLLL"),
1023
+ text: this.text.substr(1, 5),
1024
+ options: { fontSize: this.fontSize }
1025
+ }), n.push({
1026
+ data: "01010",
1027
+ options: { height: this.guardHeight }
1028
+ }), n.push({
1029
+ data: (0, A.default)(this.data.substr(6, 5), "RRRRR"),
1030
+ text: this.text.substr(6, 5),
1031
+ options: { fontSize: this.fontSize }
1032
+ }), n.push({
1033
+ data: (0, A.default)(this.data[11], "R") + "101",
1034
+ options: { height: this.guardHeight }
1035
+ }), this.displayValue && n.push({
1036
+ data: "00000000",
1037
+ text: this.text.substr(11, 1),
1038
+ options: { textAlign: "right", fontSize: this.fontSize }
1039
+ }), n;
1040
+ }
1041
+ }]), e;
1042
+ }(oa.default);
1043
+ function se(t) {
1044
+ var e = 0, r;
1045
+ for (r = 1; r < 11; r += 2)
1046
+ e += parseInt(t[r]);
1047
+ for (r = 0; r < 11; r += 2)
1048
+ e += parseInt(t[r]) * 3;
1049
+ return (10 - e % 10) % 10;
1050
+ }
1051
+ F.default = la;
1052
+ var Pe = {};
1053
+ Object.defineProperty(Pe, "__esModule", {
1054
+ value: !0
1055
+ });
1056
+ var ha = function() {
1057
+ function t(e, r) {
1058
+ for (var n = 0; n < r.length; n++) {
1059
+ var a = r[n];
1060
+ a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a);
1061
+ }
1062
+ }
1063
+ return function(e, r, n) {
1064
+ return r && t(e.prototype, r), n && t(e, n), e;
1065
+ };
1066
+ }(), da = w, _a = St(da), va = l, sa = St(va), ya = F;
1067
+ function St(t) {
1068
+ return t && t.__esModule ? t : { default: t };
1069
+ }
1070
+ function pa(t, e) {
1071
+ if (!(t instanceof e))
1072
+ throw new TypeError("Cannot call a class as a function");
1073
+ }
1074
+ function de(t, e) {
1075
+ if (!t)
1076
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1077
+ return e && (typeof e == "object" || typeof e == "function") ? e : t;
1078
+ }
1079
+ function ga(t, e) {
1080
+ if (typeof e != "function" && e !== null)
1081
+ throw new TypeError("Super expression must either be null or a function, not " + typeof e);
1082
+ t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
1083
+ }
1084
+ var Oa = ["XX00000XXX", "XX10000XXX", "XX20000XXX", "XXX00000XX", "XXXX00000X", "XXXXX00005", "XXXXX00006", "XXXXX00007", "XXXXX00008", "XXXXX00009"], Ea = [["EEEOOO", "OOOEEE"], ["EEOEOO", "OOEOEE"], ["EEOOEO", "OOEEOE"], ["EEOOOE", "OOEEEO"], ["EOEEOO", "OEOOEE"], ["EOOEEO", "OEEOOE"], ["EOOOEE", "OEEEOO"], ["EOEOEO", "OEOEOE"], ["EOEOOE", "OEOEEO"], ["EOOEOE", "OEEOEO"]], ba = function(t) {
1085
+ ga(e, t);
1086
+ function e(r, n) {
1087
+ pa(this, e);
1088
+ var a = de(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, r, n));
1089
+ if (a.isValid = !1, r.search(/^[0-9]{6}$/) !== -1)
1090
+ a.middleDigits = r, a.upcA = nt(r, "0"), a.text = n.text || "" + a.upcA[0] + r + a.upcA[a.upcA.length - 1], a.isValid = !0;
1091
+ else if (r.search(/^[01][0-9]{7}$/) !== -1)
1092
+ if (a.middleDigits = r.substring(1, r.length - 1), a.upcA = nt(a.middleDigits, r[0]), a.upcA[a.upcA.length - 1] === r[r.length - 1])
1093
+ a.isValid = !0;
1094
+ else
1095
+ return de(a);
1096
+ else
1097
+ return de(a);
1098
+ return a.displayValue = n.displayValue, n.fontSize > n.width * 10 ? a.fontSize = n.width * 10 : a.fontSize = n.fontSize, a.guardHeight = n.height + a.fontSize / 2 + n.textMargin, a;
1099
+ }
1100
+ return ha(e, [{
1101
+ key: "valid",
1102
+ value: function() {
1103
+ return this.isValid;
1104
+ }
1105
+ }, {
1106
+ key: "encode",
1107
+ value: function() {
1108
+ return this.options.flat ? this.flatEncoding() : this.guardedEncoding();
1109
+ }
1110
+ }, {
1111
+ key: "flatEncoding",
1112
+ value: function() {
1113
+ var n = "";
1114
+ return n += "101", n += this.encodeMiddleDigits(), n += "010101", {
1115
+ data: n,
1116
+ text: this.text
1117
+ };
1118
+ }
1119
+ }, {
1120
+ key: "guardedEncoding",
1121
+ value: function() {
1122
+ var n = [];
1123
+ return this.displayValue && n.push({
1124
+ data: "00000000",
1125
+ text: this.text[0],
1126
+ options: { textAlign: "left", fontSize: this.fontSize }
1127
+ }), n.push({
1128
+ data: "101",
1129
+ options: { height: this.guardHeight }
1130
+ }), n.push({
1131
+ data: this.encodeMiddleDigits(),
1132
+ text: this.text.substring(1, 7),
1133
+ options: { fontSize: this.fontSize }
1134
+ }), n.push({
1135
+ data: "010101",
1136
+ options: { height: this.guardHeight }
1137
+ }), this.displayValue && n.push({
1138
+ data: "00000000",
1139
+ text: this.text[7],
1140
+ options: { textAlign: "right", fontSize: this.fontSize }
1141
+ }), n;
1142
+ }
1143
+ }, {
1144
+ key: "encodeMiddleDigits",
1145
+ value: function() {
1146
+ var n = this.upcA[0], a = this.upcA[this.upcA.length - 1], i = Ea[parseInt(a)][parseInt(n)];
1147
+ return (0, _a.default)(this.middleDigits, i);
1148
+ }
1149
+ }]), e;
1150
+ }(sa.default);
1151
+ function nt(t, e) {
1152
+ for (var r = parseInt(t[t.length - 1]), n = Oa[r], a = "", i = 0, o = 0; o < n.length; o++) {
1153
+ var u = n[o];
1154
+ u === "X" ? a += t[i++] : a += u;
1155
+ }
1156
+ return a = "" + e + a, "" + a + (0, ya.checksum)(a);
1157
+ }
1158
+ Pe.default = ba;
1159
+ Object.defineProperty(h, "__esModule", {
1160
+ value: !0
1161
+ });
1162
+ h.UPCE = h.UPC = h.EAN2 = h.EAN5 = h.EAN8 = h.EAN13 = void 0;
1163
+ var ma = xe, wa = I(ma), $a = Se, xa = I($a), Sa = Ae, Aa = I(Sa), Ra = Re, Pa = I(Ra), Ta = F, Ma = I(Ta), Ia = Pe, ka = I(Ia);
1164
+ function I(t) {
1165
+ return t && t.__esModule ? t : { default: t };
1166
+ }
1167
+ h.EAN13 = wa.default;
1168
+ h.EAN8 = xa.default;
1169
+ h.EAN5 = Aa.default;
1170
+ h.EAN2 = Pa.default;
1171
+ h.UPC = Ma.default;
1172
+ h.UPCE = ka.default;
1173
+ var P = {}, te = {}, H = {};
1174
+ Object.defineProperty(H, "__esModule", {
1175
+ value: !0
1176
+ });
1177
+ H.START_BIN = "1010";
1178
+ H.END_BIN = "11101";
1179
+ H.BINARIES = ["00110", "10001", "01001", "11000", "00101", "10100", "01100", "00011", "10010", "01010"];
1180
+ Object.defineProperty(te, "__esModule", {
1181
+ value: !0
1182
+ });
1183
+ var Da = function() {
1184
+ function t(e, r) {
1185
+ for (var n = 0; n < r.length; n++) {
1186
+ var a = r[n];
1187
+ a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a);
1188
+ }
1189
+ }
1190
+ return function(e, r, n) {
1191
+ return r && t(e.prototype, r), n && t(e, n), e;
1192
+ };
1193
+ }(), J = H, ja = l, Ba = La(ja);
1194
+ function La(t) {
1195
+ return t && t.__esModule ? t : { default: t };
1196
+ }
1197
+ function Ca(t, e) {
1198
+ if (!(t instanceof e))
1199
+ throw new TypeError("Cannot call a class as a function");
1200
+ }
1201
+ function Na(t, e) {
1202
+ if (!t)
1203
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1204
+ return e && (typeof e == "object" || typeof e == "function") ? e : t;
1205
+ }
1206
+ function Ga(t, e) {
1207
+ if (typeof e != "function" && e !== null)
1208
+ throw new TypeError("Super expression must either be null or a function, not " + typeof e);
1209
+ t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
1210
+ }
1211
+ var Fa = function(t) {
1212
+ Ga(e, t);
1213
+ function e() {
1214
+ return Ca(this, e), Na(this, (e.__proto__ || Object.getPrototypeOf(e)).apply(this, arguments));
1215
+ }
1216
+ return Da(e, [{
1217
+ key: "valid",
1218
+ value: function() {
1219
+ return this.data.search(/^([0-9]{2})+$/) !== -1;
1220
+ }
1221
+ }, {
1222
+ key: "encode",
1223
+ value: function() {
1224
+ var n = this, a = this.data.match(/.{2}/g).map(function(i) {
1225
+ return n.encodePair(i);
1226
+ }).join("");
1227
+ return {
1228
+ data: J.START_BIN + a + J.END_BIN,
1229
+ text: this.text
1230
+ };
1231
+ }
1232
+ // Calculate the data of a number pair
1233
+ }, {
1234
+ key: "encodePair",
1235
+ value: function(n) {
1236
+ var a = J.BINARIES[n[1]];
1237
+ return J.BINARIES[n[0]].split("").map(function(i, o) {
1238
+ return (i === "1" ? "111" : "1") + (a[o] === "1" ? "000" : "0");
1239
+ }).join("");
1240
+ }
1241
+ }]), e;
1242
+ }(Ba.default);
1243
+ te.default = Fa;
1244
+ var Te = {};
1245
+ Object.defineProperty(Te, "__esModule", {
1246
+ value: !0
1247
+ });
1248
+ var Ha = function() {
1249
+ function t(e, r) {
1250
+ for (var n = 0; n < r.length; n++) {
1251
+ var a = r[n];
1252
+ a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a);
1253
+ }
1254
+ }
1255
+ return function(e, r, n) {
1256
+ return r && t(e.prototype, r), n && t(e, n), e;
1257
+ };
1258
+ }(), za = te, Xa = Ua(za);
1259
+ function Ua(t) {
1260
+ return t && t.__esModule ? t : { default: t };
1261
+ }
1262
+ function Va(t, e) {
1263
+ if (!(t instanceof e))
1264
+ throw new TypeError("Cannot call a class as a function");
1265
+ }
1266
+ function qa(t, e) {
1267
+ if (!t)
1268
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1269
+ return e && (typeof e == "object" || typeof e == "function") ? e : t;
1270
+ }
1271
+ function Ja(t, e) {
1272
+ if (typeof e != "function" && e !== null)
1273
+ throw new TypeError("Super expression must either be null or a function, not " + typeof e);
1274
+ t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
1275
+ }
1276
+ var rt = function(e) {
1277
+ var r = e.substr(0, 13).split("").map(function(n) {
1278
+ return parseInt(n, 10);
1279
+ }).reduce(function(n, a, i) {
1280
+ return n + a * (3 - i % 2 * 2);
1281
+ }, 0);
1282
+ return Math.ceil(r / 10) * 10 - r;
1283
+ }, Ya = function(t) {
1284
+ Ja(e, t);
1285
+ function e(r, n) {
1286
+ return Va(this, e), r.search(/^[0-9]{13}$/) !== -1 && (r += rt(r)), qa(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, r, n));
1287
+ }
1288
+ return Ha(e, [{
1289
+ key: "valid",
1290
+ value: function() {
1291
+ return this.data.search(/^[0-9]{14}$/) !== -1 && +this.data[13] === rt(this.data);
1292
+ }
1293
+ }]), e;
1294
+ }(Xa.default);
1295
+ Te.default = Ya;
1296
+ Object.defineProperty(P, "__esModule", {
1297
+ value: !0
1298
+ });
1299
+ P.ITF14 = P.ITF = void 0;
1300
+ var Wa = te, Qa = At(Wa), Za = Te, Ka = At(Za);
1301
+ function At(t) {
1302
+ return t && t.__esModule ? t : { default: t };
1303
+ }
1304
+ P.ITF = Qa.default;
1305
+ P.ITF14 = Ka.default;
1306
+ var s = {}, $ = {};
1307
+ Object.defineProperty($, "__esModule", {
1308
+ value: !0
1309
+ });
1310
+ var ei = function() {
1311
+ function t(e, r) {
1312
+ for (var n = 0; n < r.length; n++) {
1313
+ var a = r[n];
1314
+ a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a);
1315
+ }
1316
+ }
1317
+ return function(e, r, n) {
1318
+ return r && t(e.prototype, r), n && t(e, n), e;
1319
+ };
1320
+ }(), ti = l, ni = ri(ti);
1321
+ function ri(t) {
1322
+ return t && t.__esModule ? t : { default: t };
1323
+ }
1324
+ function ai(t, e) {
1325
+ if (!(t instanceof e))
1326
+ throw new TypeError("Cannot call a class as a function");
1327
+ }
1328
+ function ii(t, e) {
1329
+ if (!t)
1330
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1331
+ return e && (typeof e == "object" || typeof e == "function") ? e : t;
1332
+ }
1333
+ function oi(t, e) {
1334
+ if (typeof e != "function" && e !== null)
1335
+ throw new TypeError("Super expression must either be null or a function, not " + typeof e);
1336
+ t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
1337
+ }
1338
+ var ui = function(t) {
1339
+ oi(e, t);
1340
+ function e(r, n) {
1341
+ return ai(this, e), ii(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, r, n));
1342
+ }
1343
+ return ei(e, [{
1344
+ key: "encode",
1345
+ value: function() {
1346
+ for (var n = "110", a = 0; a < this.data.length; a++) {
1347
+ var i = parseInt(this.data[a]), o = i.toString(2);
1348
+ o = fi(o, 4 - o.length);
1349
+ for (var u = 0; u < o.length; u++)
1350
+ n += o[u] == "0" ? "100" : "110";
1351
+ }
1352
+ return n += "1001", {
1353
+ data: n,
1354
+ text: this.text
1355
+ };
1356
+ }
1357
+ }, {
1358
+ key: "valid",
1359
+ value: function() {
1360
+ return this.data.search(/^[0-9]+$/) !== -1;
1361
+ }
1362
+ }]), e;
1363
+ }(ni.default);
1364
+ function fi(t, e) {
1365
+ for (var r = 0; r < e; r++)
1366
+ t = "0" + t;
1367
+ return t;
1368
+ }
1369
+ $.default = ui;
1370
+ var Me = {}, x = {};
1371
+ Object.defineProperty(x, "__esModule", {
1372
+ value: !0
1373
+ });
1374
+ x.mod10 = ci;
1375
+ x.mod11 = li;
1376
+ function ci(t) {
1377
+ for (var e = 0, r = 0; r < t.length; r++) {
1378
+ var n = parseInt(t[r]);
1379
+ (r + t.length) % 2 === 0 ? e += n : e += n * 2 % 10 + Math.floor(n * 2 / 10);
1380
+ }
1381
+ return (10 - e % 10) % 10;
1382
+ }
1383
+ function li(t) {
1384
+ for (var e = 0, r = [2, 3, 4, 5, 6, 7], n = 0; n < t.length; n++) {
1385
+ var a = parseInt(t[t.length - 1 - n]);
1386
+ e += r[n % r.length] * a;
1387
+ }
1388
+ return (11 - e % 11) % 11;
1389
+ }
1390
+ Object.defineProperty(Me, "__esModule", {
1391
+ value: !0
1392
+ });
1393
+ var hi = $, di = vi(hi), _i = x;
1394
+ function vi(t) {
1395
+ return t && t.__esModule ? t : { default: t };
1396
+ }
1397
+ function si(t, e) {
1398
+ if (!(t instanceof e))
1399
+ throw new TypeError("Cannot call a class as a function");
1400
+ }
1401
+ function yi(t, e) {
1402
+ if (!t)
1403
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1404
+ return e && (typeof e == "object" || typeof e == "function") ? e : t;
1405
+ }
1406
+ function pi(t, e) {
1407
+ if (typeof e != "function" && e !== null)
1408
+ throw new TypeError("Super expression must either be null or a function, not " + typeof e);
1409
+ t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
1410
+ }
1411
+ var gi = function(t) {
1412
+ pi(e, t);
1413
+ function e(r, n) {
1414
+ return si(this, e), yi(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, r + (0, _i.mod10)(r), n));
1415
+ }
1416
+ return e;
1417
+ }(di.default);
1418
+ Me.default = gi;
1419
+ var Ie = {};
1420
+ Object.defineProperty(Ie, "__esModule", {
1421
+ value: !0
1422
+ });
1423
+ var Oi = $, Ei = mi(Oi), bi = x;
1424
+ function mi(t) {
1425
+ return t && t.__esModule ? t : { default: t };
1426
+ }
1427
+ function wi(t, e) {
1428
+ if (!(t instanceof e))
1429
+ throw new TypeError("Cannot call a class as a function");
1430
+ }
1431
+ function $i(t, e) {
1432
+ if (!t)
1433
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1434
+ return e && (typeof e == "object" || typeof e == "function") ? e : t;
1435
+ }
1436
+ function xi(t, e) {
1437
+ if (typeof e != "function" && e !== null)
1438
+ throw new TypeError("Super expression must either be null or a function, not " + typeof e);
1439
+ t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
1440
+ }
1441
+ var Si = function(t) {
1442
+ xi(e, t);
1443
+ function e(r, n) {
1444
+ return wi(this, e), $i(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, r + (0, bi.mod11)(r), n));
1445
+ }
1446
+ return e;
1447
+ }(Ei.default);
1448
+ Ie.default = Si;
1449
+ var ke = {};
1450
+ Object.defineProperty(ke, "__esModule", {
1451
+ value: !0
1452
+ });
1453
+ var Ai = $, Ri = Pi(Ai), at = x;
1454
+ function Pi(t) {
1455
+ return t && t.__esModule ? t : { default: t };
1456
+ }
1457
+ function Ti(t, e) {
1458
+ if (!(t instanceof e))
1459
+ throw new TypeError("Cannot call a class as a function");
1460
+ }
1461
+ function Mi(t, e) {
1462
+ if (!t)
1463
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1464
+ return e && (typeof e == "object" || typeof e == "function") ? e : t;
1465
+ }
1466
+ function Ii(t, e) {
1467
+ if (typeof e != "function" && e !== null)
1468
+ throw new TypeError("Super expression must either be null or a function, not " + typeof e);
1469
+ t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
1470
+ }
1471
+ var ki = function(t) {
1472
+ Ii(e, t);
1473
+ function e(r, n) {
1474
+ return Ti(this, e), r += (0, at.mod10)(r), r += (0, at.mod10)(r), Mi(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, r, n));
1475
+ }
1476
+ return e;
1477
+ }(Ri.default);
1478
+ ke.default = ki;
1479
+ var De = {};
1480
+ Object.defineProperty(De, "__esModule", {
1481
+ value: !0
1482
+ });
1483
+ var Di = $, ji = Bi(Di), it = x;
1484
+ function Bi(t) {
1485
+ return t && t.__esModule ? t : { default: t };
1486
+ }
1487
+ function Li(t, e) {
1488
+ if (!(t instanceof e))
1489
+ throw new TypeError("Cannot call a class as a function");
1490
+ }
1491
+ function Ci(t, e) {
1492
+ if (!t)
1493
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1494
+ return e && (typeof e == "object" || typeof e == "function") ? e : t;
1495
+ }
1496
+ function Ni(t, e) {
1497
+ if (typeof e != "function" && e !== null)
1498
+ throw new TypeError("Super expression must either be null or a function, not " + typeof e);
1499
+ t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
1500
+ }
1501
+ var Gi = function(t) {
1502
+ Ni(e, t);
1503
+ function e(r, n) {
1504
+ return Li(this, e), r += (0, it.mod11)(r), r += (0, it.mod10)(r), Ci(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, r, n));
1505
+ }
1506
+ return e;
1507
+ }(ji.default);
1508
+ De.default = Gi;
1509
+ Object.defineProperty(s, "__esModule", {
1510
+ value: !0
1511
+ });
1512
+ s.MSI1110 = s.MSI1010 = s.MSI11 = s.MSI10 = s.MSI = void 0;
1513
+ var Fi = $, Hi = z(Fi), zi = Me, Xi = z(zi), Ui = Ie, Vi = z(Ui), qi = ke, Ji = z(qi), Yi = De, Wi = z(Yi);
1514
+ function z(t) {
1515
+ return t && t.__esModule ? t : { default: t };
1516
+ }
1517
+ s.MSI = Hi.default;
1518
+ s.MSI10 = Xi.default;
1519
+ s.MSI11 = Vi.default;
1520
+ s.MSI1010 = Ji.default;
1521
+ s.MSI1110 = Wi.default;
1522
+ var ne = {};
1523
+ Object.defineProperty(ne, "__esModule", {
1524
+ value: !0
1525
+ });
1526
+ ne.pharmacode = void 0;
1527
+ var Qi = function() {
1528
+ function t(e, r) {
1529
+ for (var n = 0; n < r.length; n++) {
1530
+ var a = r[n];
1531
+ a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a);
1532
+ }
1533
+ }
1534
+ return function(e, r, n) {
1535
+ return r && t(e.prototype, r), n && t(e, n), e;
1536
+ };
1537
+ }(), Zi = l, Ki = eo(Zi);
1538
+ function eo(t) {
1539
+ return t && t.__esModule ? t : { default: t };
1540
+ }
1541
+ function to(t, e) {
1542
+ if (!(t instanceof e))
1543
+ throw new TypeError("Cannot call a class as a function");
1544
+ }
1545
+ function no(t, e) {
1546
+ if (!t)
1547
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1548
+ return e && (typeof e == "object" || typeof e == "function") ? e : t;
1549
+ }
1550
+ function ro(t, e) {
1551
+ if (typeof e != "function" && e !== null)
1552
+ throw new TypeError("Super expression must either be null or a function, not " + typeof e);
1553
+ t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
1554
+ }
1555
+ var ao = function(t) {
1556
+ ro(e, t);
1557
+ function e(r, n) {
1558
+ to(this, e);
1559
+ var a = no(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, r, n));
1560
+ return a.number = parseInt(r, 10), a;
1561
+ }
1562
+ return Qi(e, [{
1563
+ key: "encode",
1564
+ value: function() {
1565
+ for (var n = this.number, a = ""; !isNaN(n) && n != 0; )
1566
+ n % 2 === 0 ? (a = "11100" + a, n = (n - 2) / 2) : (a = "100" + a, n = (n - 1) / 2);
1567
+ return a = a.slice(0, -2), {
1568
+ data: a,
1569
+ text: this.text
1570
+ };
1571
+ }
1572
+ }, {
1573
+ key: "valid",
1574
+ value: function() {
1575
+ return this.number >= 3 && this.number <= 131070;
1576
+ }
1577
+ }]), e;
1578
+ }(Ki.default);
1579
+ ne.pharmacode = ao;
1580
+ var re = {};
1581
+ Object.defineProperty(re, "__esModule", {
1582
+ value: !0
1583
+ });
1584
+ re.codabar = void 0;
1585
+ var io = function() {
1586
+ function t(e, r) {
1587
+ for (var n = 0; n < r.length; n++) {
1588
+ var a = r[n];
1589
+ a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a);
1590
+ }
1591
+ }
1592
+ return function(e, r, n) {
1593
+ return r && t(e.prototype, r), n && t(e, n), e;
1594
+ };
1595
+ }(), oo = l, uo = fo(oo);
1596
+ function fo(t) {
1597
+ return t && t.__esModule ? t : { default: t };
1598
+ }
1599
+ function co(t, e) {
1600
+ if (!(t instanceof e))
1601
+ throw new TypeError("Cannot call a class as a function");
1602
+ }
1603
+ function lo(t, e) {
1604
+ if (!t)
1605
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1606
+ return e && (typeof e == "object" || typeof e == "function") ? e : t;
1607
+ }
1608
+ function ho(t, e) {
1609
+ if (typeof e != "function" && e !== null)
1610
+ throw new TypeError("Super expression must either be null or a function, not " + typeof e);
1611
+ t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
1612
+ }
1613
+ var _o = function(t) {
1614
+ ho(e, t);
1615
+ function e(r, n) {
1616
+ co(this, e), r.search(/^[0-9\-\$\:\.\+\/]+$/) === 0 && (r = "A" + r + "A");
1617
+ var a = lo(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, r.toUpperCase(), n));
1618
+ return a.text = a.options.text || a.text.replace(/[A-D]/g, ""), a;
1619
+ }
1620
+ return io(e, [{
1621
+ key: "valid",
1622
+ value: function() {
1623
+ return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/) !== -1;
1624
+ }
1625
+ }, {
1626
+ key: "encode",
1627
+ value: function() {
1628
+ for (var n = [], a = this.getEncodings(), i = 0; i < this.data.length; i++)
1629
+ n.push(a[this.data.charAt(i)]), i !== this.data.length - 1 && n.push("0");
1630
+ return {
1631
+ text: this.text,
1632
+ data: n.join("")
1633
+ };
1634
+ }
1635
+ }, {
1636
+ key: "getEncodings",
1637
+ value: function() {
1638
+ return {
1639
+ 0: "101010011",
1640
+ 1: "101011001",
1641
+ 2: "101001011",
1642
+ 3: "110010101",
1643
+ 4: "101101001",
1644
+ 5: "110101001",
1645
+ 6: "100101011",
1646
+ 7: "100101101",
1647
+ 8: "100110101",
1648
+ 9: "110100101",
1649
+ "-": "101001101",
1650
+ $: "101100101",
1651
+ ":": "1101011011",
1652
+ "/": "1101101011",
1653
+ ".": "1101101101",
1654
+ "+": "1011011011",
1655
+ A: "1011001001",
1656
+ B: "1001001011",
1657
+ C: "1010010011",
1658
+ D: "1010011001"
1659
+ };
1660
+ }
1661
+ }]), e;
1662
+ }(uo.default);
1663
+ re.codabar = _o;
1664
+ var T = {}, ae = {}, X = {};
1665
+ Object.defineProperty(X, "__esModule", {
1666
+ value: !0
1667
+ });
1668
+ X.SYMBOLS = [
1669
+ "0",
1670
+ "1",
1671
+ "2",
1672
+ "3",
1673
+ "4",
1674
+ "5",
1675
+ "6",
1676
+ "7",
1677
+ "8",
1678
+ "9",
1679
+ "A",
1680
+ "B",
1681
+ "C",
1682
+ "D",
1683
+ "E",
1684
+ "F",
1685
+ "G",
1686
+ "H",
1687
+ "I",
1688
+ "J",
1689
+ "K",
1690
+ "L",
1691
+ "M",
1692
+ "N",
1693
+ "O",
1694
+ "P",
1695
+ "Q",
1696
+ "R",
1697
+ "S",
1698
+ "T",
1699
+ "U",
1700
+ "V",
1701
+ "W",
1702
+ "X",
1703
+ "Y",
1704
+ "Z",
1705
+ "-",
1706
+ ".",
1707
+ " ",
1708
+ "$",
1709
+ "/",
1710
+ "+",
1711
+ "%",
1712
+ // Only used for csum and multi-symbols character encodings
1713
+ "($)",
1714
+ "(%)",
1715
+ "(/)",
1716
+ "(+)",
1717
+ // Start/Stop
1718
+ "ÿ"
1719
+ ];
1720
+ X.BINARIES = ["100010100", "101001000", "101000100", "101000010", "100101000", "100100100", "100100010", "101010000", "100010010", "100001010", "110101000", "110100100", "110100010", "110010100", "110010010", "110001010", "101101000", "101100100", "101100010", "100110100", "100011010", "101011000", "101001100", "101000110", "100101100", "100010110", "110110100", "110110010", "110101100", "110100110", "110010110", "110011010", "101101100", "101100110", "100110110", "100111010", "100101110", "111010100", "111010010", "111001010", "101101110", "101110110", "110101110", "100100110", "111011010", "111010110", "100110010", "101011110"];
1721
+ X.MULTI_SYMBOLS = {
1722
+ "\0": ["(%)", "U"],
1723
+ "": ["($)", "A"],
1724
+ "": ["($)", "B"],
1725
+ "": ["($)", "C"],
1726
+ "": ["($)", "D"],
1727
+ "": ["($)", "E"],
1728
+ "": ["($)", "F"],
1729
+ "\x07": ["($)", "G"],
1730
+ "\b": ["($)", "H"],
1731
+ " ": ["($)", "I"],
1732
+ "\n": ["($)", "J"],
1733
+ "\v": ["($)", "K"],
1734
+ "\f": ["($)", "L"],
1735
+ "\r": ["($)", "M"],
1736
+ "": ["($)", "N"],
1737
+ "": ["($)", "O"],
1738
+ "": ["($)", "P"],
1739
+ "": ["($)", "Q"],
1740
+ "": ["($)", "R"],
1741
+ "": ["($)", "S"],
1742
+ "": ["($)", "T"],
1743
+ "": ["($)", "U"],
1744
+ "": ["($)", "V"],
1745
+ "": ["($)", "W"],
1746
+ "": ["($)", "X"],
1747
+ "": ["($)", "Y"],
1748
+ "": ["($)", "Z"],
1749
+ "\x1B": ["(%)", "A"],
1750
+ "": ["(%)", "B"],
1751
+ "": ["(%)", "C"],
1752
+ "": ["(%)", "D"],
1753
+ "": ["(%)", "E"],
1754
+ "!": ["(/)", "A"],
1755
+ '"': ["(/)", "B"],
1756
+ "#": ["(/)", "C"],
1757
+ "&": ["(/)", "F"],
1758
+ "'": ["(/)", "G"],
1759
+ "(": ["(/)", "H"],
1760
+ ")": ["(/)", "I"],
1761
+ "*": ["(/)", "J"],
1762
+ ",": ["(/)", "L"],
1763
+ ":": ["(/)", "Z"],
1764
+ ";": ["(%)", "F"],
1765
+ "<": ["(%)", "G"],
1766
+ "=": ["(%)", "H"],
1767
+ ">": ["(%)", "I"],
1768
+ "?": ["(%)", "J"],
1769
+ "@": ["(%)", "V"],
1770
+ "[": ["(%)", "K"],
1771
+ "\\": ["(%)", "L"],
1772
+ "]": ["(%)", "M"],
1773
+ "^": ["(%)", "N"],
1774
+ _: ["(%)", "O"],
1775
+ "`": ["(%)", "W"],
1776
+ a: ["(+)", "A"],
1777
+ b: ["(+)", "B"],
1778
+ c: ["(+)", "C"],
1779
+ d: ["(+)", "D"],
1780
+ e: ["(+)", "E"],
1781
+ f: ["(+)", "F"],
1782
+ g: ["(+)", "G"],
1783
+ h: ["(+)", "H"],
1784
+ i: ["(+)", "I"],
1785
+ j: ["(+)", "J"],
1786
+ k: ["(+)", "K"],
1787
+ l: ["(+)", "L"],
1788
+ m: ["(+)", "M"],
1789
+ n: ["(+)", "N"],
1790
+ o: ["(+)", "O"],
1791
+ p: ["(+)", "P"],
1792
+ q: ["(+)", "Q"],
1793
+ r: ["(+)", "R"],
1794
+ s: ["(+)", "S"],
1795
+ t: ["(+)", "T"],
1796
+ u: ["(+)", "U"],
1797
+ v: ["(+)", "V"],
1798
+ w: ["(+)", "W"],
1799
+ x: ["(+)", "X"],
1800
+ y: ["(+)", "Y"],
1801
+ z: ["(+)", "Z"],
1802
+ "{": ["(%)", "P"],
1803
+ "|": ["(%)", "Q"],
1804
+ "}": ["(%)", "R"],
1805
+ "~": ["(%)", "S"],
1806
+ "": ["(%)", "T"]
1807
+ };
1808
+ Object.defineProperty(ae, "__esModule", {
1809
+ value: !0
1810
+ });
1811
+ var vo = function() {
1812
+ function t(e, r) {
1813
+ for (var n = 0; n < r.length; n++) {
1814
+ var a = r[n];
1815
+ a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a);
1816
+ }
1817
+ }
1818
+ return function(e, r, n) {
1819
+ return r && t(e.prototype, r), n && t(e, n), e;
1820
+ };
1821
+ }(), Y = X, so = l, yo = po(so);
1822
+ function po(t) {
1823
+ return t && t.__esModule ? t : { default: t };
1824
+ }
1825
+ function go(t, e) {
1826
+ if (!(t instanceof e))
1827
+ throw new TypeError("Cannot call a class as a function");
1828
+ }
1829
+ function Oo(t, e) {
1830
+ if (!t)
1831
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1832
+ return e && (typeof e == "object" || typeof e == "function") ? e : t;
1833
+ }
1834
+ function Eo(t, e) {
1835
+ if (typeof e != "function" && e !== null)
1836
+ throw new TypeError("Super expression must either be null or a function, not " + typeof e);
1837
+ t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
1838
+ }
1839
+ var bo = function(t) {
1840
+ Eo(e, t);
1841
+ function e(r, n) {
1842
+ return go(this, e), Oo(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, r, n));
1843
+ }
1844
+ return vo(e, [{
1845
+ key: "valid",
1846
+ value: function() {
1847
+ return /^[0-9A-Z\-. $/+%]+$/.test(this.data);
1848
+ }
1849
+ }, {
1850
+ key: "encode",
1851
+ value: function() {
1852
+ var n = this.data.split("").flatMap(function(u) {
1853
+ return Y.MULTI_SYMBOLS[u] || u;
1854
+ }), a = n.map(function(u) {
1855
+ return e.getEncoding(u);
1856
+ }).join(""), i = e.checksum(n, 20), o = e.checksum(n.concat(i), 15);
1857
+ return {
1858
+ text: this.text,
1859
+ data: (
1860
+ // Add the start bits
1861
+ e.getEncoding("ÿ") + // Add the encoded bits
1862
+ a + // Add the checksum
1863
+ e.getEncoding(i) + e.getEncoding(o) + // Add the stop bits
1864
+ e.getEncoding("ÿ") + // Add the termination bit
1865
+ "1"
1866
+ )
1867
+ };
1868
+ }
1869
+ // Get the binary encoding of a symbol
1870
+ }], [{
1871
+ key: "getEncoding",
1872
+ value: function(n) {
1873
+ return Y.BINARIES[e.symbolValue(n)];
1874
+ }
1875
+ // Get the symbol for a symbol value
1876
+ }, {
1877
+ key: "getSymbol",
1878
+ value: function(n) {
1879
+ return Y.SYMBOLS[n];
1880
+ }
1881
+ // Get the symbol value of a symbol
1882
+ }, {
1883
+ key: "symbolValue",
1884
+ value: function(n) {
1885
+ return Y.SYMBOLS.indexOf(n);
1886
+ }
1887
+ // Calculate a checksum symbol
1888
+ }, {
1889
+ key: "checksum",
1890
+ value: function(n, a) {
1891
+ var i = n.slice().reverse().reduce(function(o, u, c) {
1892
+ var v = c % a + 1;
1893
+ return o + e.symbolValue(u) * v;
1894
+ }, 0);
1895
+ return e.getSymbol(i % 47);
1896
+ }
1897
+ }]), e;
1898
+ }(yo.default);
1899
+ ae.default = bo;
1900
+ var je = {};
1901
+ Object.defineProperty(je, "__esModule", {
1902
+ value: !0
1903
+ });
1904
+ var mo = function() {
1905
+ function t(e, r) {
1906
+ for (var n = 0; n < r.length; n++) {
1907
+ var a = r[n];
1908
+ a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a);
1909
+ }
1910
+ }
1911
+ return function(e, r, n) {
1912
+ return r && t(e.prototype, r), n && t(e, n), e;
1913
+ };
1914
+ }(), wo = ae, $o = xo(wo);
1915
+ function xo(t) {
1916
+ return t && t.__esModule ? t : { default: t };
1917
+ }
1918
+ function So(t, e) {
1919
+ if (!(t instanceof e))
1920
+ throw new TypeError("Cannot call a class as a function");
1921
+ }
1922
+ function Ao(t, e) {
1923
+ if (!t)
1924
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1925
+ return e && (typeof e == "object" || typeof e == "function") ? e : t;
1926
+ }
1927
+ function Ro(t, e) {
1928
+ if (typeof e != "function" && e !== null)
1929
+ throw new TypeError("Super expression must either be null or a function, not " + typeof e);
1930
+ t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
1931
+ }
1932
+ var Po = function(t) {
1933
+ Ro(e, t);
1934
+ function e(r, n) {
1935
+ return So(this, e), Ao(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, r, n));
1936
+ }
1937
+ return mo(e, [{
1938
+ key: "valid",
1939
+ value: function() {
1940
+ return /^[\x00-\x7f]+$/.test(this.data);
1941
+ }
1942
+ }]), e;
1943
+ }($o.default);
1944
+ je.default = Po;
1945
+ Object.defineProperty(T, "__esModule", {
1946
+ value: !0
1947
+ });
1948
+ T.CODE93FullASCII = T.CODE93 = void 0;
1949
+ var To = ae, Mo = Rt(To), Io = je, ko = Rt(Io);
1950
+ function Rt(t) {
1951
+ return t && t.__esModule ? t : { default: t };
1952
+ }
1953
+ T.CODE93 = Mo.default;
1954
+ T.CODE93FullASCII = ko.default;
1955
+ var ie = {};
1956
+ Object.defineProperty(ie, "__esModule", {
1957
+ value: !0
1958
+ });
1959
+ ie.GenericBarcode = void 0;
1960
+ var Do = function() {
1961
+ function t(e, r) {
1962
+ for (var n = 0; n < r.length; n++) {
1963
+ var a = r[n];
1964
+ a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a);
1965
+ }
1966
+ }
1967
+ return function(e, r, n) {
1968
+ return r && t(e.prototype, r), n && t(e, n), e;
1969
+ };
1970
+ }(), jo = l, Bo = Lo(jo);
1971
+ function Lo(t) {
1972
+ return t && t.__esModule ? t : { default: t };
1973
+ }
1974
+ function Co(t, e) {
1975
+ if (!(t instanceof e))
1976
+ throw new TypeError("Cannot call a class as a function");
1977
+ }
1978
+ function No(t, e) {
1979
+ if (!t)
1980
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1981
+ return e && (typeof e == "object" || typeof e == "function") ? e : t;
1982
+ }
1983
+ function Go(t, e) {
1984
+ if (typeof e != "function" && e !== null)
1985
+ throw new TypeError("Super expression must either be null or a function, not " + typeof e);
1986
+ t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
1987
+ }
1988
+ var Fo = function(t) {
1989
+ Go(e, t);
1990
+ function e(r, n) {
1991
+ return Co(this, e), No(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, r, n));
1992
+ }
1993
+ return Do(e, [{
1994
+ key: "encode",
1995
+ value: function() {
1996
+ return {
1997
+ data: "10101010101010101010101010101010101010101",
1998
+ text: this.text
1999
+ };
2000
+ }
2001
+ // Resturn true/false if the string provided is valid for this encoder
2002
+ }, {
2003
+ key: "valid",
2004
+ value: function() {
2005
+ return !0;
2006
+ }
2007
+ }]), e;
2008
+ }(Bo.default);
2009
+ ie.GenericBarcode = Fo;
2010
+ Object.defineProperty(ge, "__esModule", {
2011
+ value: !0
2012
+ });
2013
+ var Ho = Z, W = p, R = h, ot = P, N = s, zo = ne, Xo = re, ut = T, Uo = ie;
2014
+ ge.default = {
2015
+ CODE39: Ho.CODE39,
2016
+ CODE128: W.CODE128,
2017
+ CODE128A: W.CODE128A,
2018
+ CODE128B: W.CODE128B,
2019
+ CODE128C: W.CODE128C,
2020
+ EAN13: R.EAN13,
2021
+ EAN8: R.EAN8,
2022
+ EAN5: R.EAN5,
2023
+ EAN2: R.EAN2,
2024
+ UPC: R.UPC,
2025
+ UPCE: R.UPCE,
2026
+ ITF14: ot.ITF14,
2027
+ ITF: ot.ITF,
2028
+ MSI: N.MSI,
2029
+ MSI10: N.MSI10,
2030
+ MSI11: N.MSI11,
2031
+ MSI1010: N.MSI1010,
2032
+ MSI1110: N.MSI1110,
2033
+ pharmacode: zo.pharmacode,
2034
+ codabar: Xo.codabar,
2035
+ CODE93: ut.CODE93,
2036
+ CODE93FullASCII: ut.CODE93FullASCII,
2037
+ GenericBarcode: Uo.GenericBarcode
2038
+ };
2039
+ var k = {};
2040
+ Object.defineProperty(k, "__esModule", {
2041
+ value: !0
2042
+ });
2043
+ var Vo = Object.assign || function(t) {
2044
+ for (var e = 1; e < arguments.length; e++) {
2045
+ var r = arguments[e];
2046
+ for (var n in r)
2047
+ Object.prototype.hasOwnProperty.call(r, n) && (t[n] = r[n]);
2048
+ }
2049
+ return t;
2050
+ };
2051
+ k.default = function(t, e) {
2052
+ return Vo({}, t, e);
2053
+ };
2054
+ var Be = {};
2055
+ Object.defineProperty(Be, "__esModule", {
2056
+ value: !0
2057
+ });
2058
+ Be.default = qo;
2059
+ function qo(t) {
2060
+ var e = [];
2061
+ function r(n) {
2062
+ if (Array.isArray(n))
2063
+ for (var a = 0; a < n.length; a++)
2064
+ r(n[a]);
2065
+ else
2066
+ n.text = n.text || "", n.data = n.data || "", e.push(n);
2067
+ }
2068
+ return r(t), e;
2069
+ }
2070
+ var Le = {};
2071
+ Object.defineProperty(Le, "__esModule", {
2072
+ value: !0
2073
+ });
2074
+ Le.default = Jo;
2075
+ function Jo(t) {
2076
+ return t.marginTop = t.marginTop || t.margin, t.marginBottom = t.marginBottom || t.margin, t.marginRight = t.marginRight || t.margin, t.marginLeft = t.marginLeft || t.margin, t;
2077
+ }
2078
+ var Ce = {}, Ne = {}, oe = {};
2079
+ Object.defineProperty(oe, "__esModule", {
2080
+ value: !0
2081
+ });
2082
+ oe.default = Yo;
2083
+ function Yo(t) {
2084
+ var e = ["width", "height", "textMargin", "fontSize", "margin", "marginTop", "marginBottom", "marginLeft", "marginRight"];
2085
+ for (var r in e)
2086
+ e.hasOwnProperty(r) && (r = e[r], typeof t[r] == "string" && (t[r] = parseInt(t[r], 10)));
2087
+ return typeof t.displayValue == "string" && (t.displayValue = t.displayValue != "false"), t;
2088
+ }
2089
+ var ue = {};
2090
+ Object.defineProperty(ue, "__esModule", {
2091
+ value: !0
2092
+ });
2093
+ var Wo = {
2094
+ width: 2,
2095
+ height: 100,
2096
+ format: "auto",
2097
+ displayValue: !0,
2098
+ fontOptions: "",
2099
+ font: "monospace",
2100
+ text: void 0,
2101
+ textAlign: "center",
2102
+ textPosition: "bottom",
2103
+ textMargin: 2,
2104
+ fontSize: 20,
2105
+ background: "#ffffff",
2106
+ lineColor: "#000000",
2107
+ margin: 10,
2108
+ marginTop: void 0,
2109
+ marginBottom: void 0,
2110
+ marginLeft: void 0,
2111
+ marginRight: void 0,
2112
+ valid: function() {
2113
+ }
2114
+ };
2115
+ ue.default = Wo;
2116
+ Object.defineProperty(Ne, "__esModule", {
2117
+ value: !0
2118
+ });
2119
+ var Qo = oe, Zo = Pt(Qo), Ko = ue, ft = Pt(Ko);
2120
+ function Pt(t) {
2121
+ return t && t.__esModule ? t : { default: t };
2122
+ }
2123
+ function eu(t) {
2124
+ var e = {};
2125
+ for (var r in ft.default)
2126
+ ft.default.hasOwnProperty(r) && (t.hasAttribute("jsbarcode-" + r.toLowerCase()) && (e[r] = t.getAttribute("jsbarcode-" + r.toLowerCase())), t.hasAttribute("data-" + r.toLowerCase()) && (e[r] = t.getAttribute("data-" + r.toLowerCase())));
2127
+ return e.value = t.getAttribute("jsbarcode-value") || t.getAttribute("data-value"), e = (0, Zo.default)(e), e;
2128
+ }
2129
+ Ne.default = eu;
2130
+ var Ge = {}, Fe = {}, _ = {};
2131
+ Object.defineProperty(_, "__esModule", {
2132
+ value: !0
2133
+ });
2134
+ _.getTotalWidthOfEncodings = _.calculateEncodingAttributes = _.getBarcodePadding = _.getEncodingHeight = _.getMaximumHeightOfEncodings = void 0;
2135
+ var tu = k, nu = ru(tu);
2136
+ function ru(t) {
2137
+ return t && t.__esModule ? t : { default: t };
2138
+ }
2139
+ function Tt(t, e) {
2140
+ return e.height + (e.displayValue && t.text.length > 0 ? e.fontSize + e.textMargin : 0) + e.marginTop + e.marginBottom;
2141
+ }
2142
+ function Mt(t, e, r) {
2143
+ if (r.displayValue && e < t) {
2144
+ if (r.textAlign == "center")
2145
+ return Math.floor((t - e) / 2);
2146
+ if (r.textAlign == "left")
2147
+ return 0;
2148
+ if (r.textAlign == "right")
2149
+ return Math.floor(t - e);
2150
+ }
2151
+ return 0;
2152
+ }
2153
+ function au(t, e, r) {
2154
+ for (var n = 0; n < t.length; n++) {
2155
+ var a = t[n], i = (0, nu.default)(e, a.options), o;
2156
+ i.displayValue ? o = uu(a.text, i, r) : o = 0;
2157
+ var u = a.data.length * i.width;
2158
+ a.width = Math.ceil(Math.max(o, u)), a.height = Tt(a, i), a.barcodePadding = Mt(o, u, i);
2159
+ }
2160
+ }
2161
+ function iu(t) {
2162
+ for (var e = 0, r = 0; r < t.length; r++)
2163
+ e += t[r].width;
2164
+ return e;
2165
+ }
2166
+ function ou(t) {
2167
+ for (var e = 0, r = 0; r < t.length; r++)
2168
+ t[r].height > e && (e = t[r].height);
2169
+ return e;
2170
+ }
2171
+ function uu(t, e, r) {
2172
+ var n;
2173
+ if (r)
2174
+ n = r;
2175
+ else if (typeof document < "u")
2176
+ n = document.createElement("canvas").getContext("2d");
2177
+ else
2178
+ return 0;
2179
+ n.font = e.fontOptions + " " + e.fontSize + "px " + e.font;
2180
+ var a = n.measureText(t);
2181
+ if (!a)
2182
+ return 0;
2183
+ var i = a.width;
2184
+ return i;
2185
+ }
2186
+ _.getMaximumHeightOfEncodings = ou;
2187
+ _.getEncodingHeight = Tt;
2188
+ _.getBarcodePadding = Mt;
2189
+ _.calculateEncodingAttributes = au;
2190
+ _.getTotalWidthOfEncodings = iu;
2191
+ Object.defineProperty(Fe, "__esModule", {
2192
+ value: !0
2193
+ });
2194
+ var fu = function() {
2195
+ function t(e, r) {
2196
+ for (var n = 0; n < r.length; n++) {
2197
+ var a = r[n];
2198
+ a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a);
2199
+ }
2200
+ }
2201
+ return function(e, r, n) {
2202
+ return r && t(e.prototype, r), n && t(e, n), e;
2203
+ };
2204
+ }(), cu = k, lu = hu(cu), _e = _;
2205
+ function hu(t) {
2206
+ return t && t.__esModule ? t : { default: t };
2207
+ }
2208
+ function du(t, e) {
2209
+ if (!(t instanceof e))
2210
+ throw new TypeError("Cannot call a class as a function");
2211
+ }
2212
+ var _u = function() {
2213
+ function t(e, r, n) {
2214
+ du(this, t), this.canvas = e, this.encodings = r, this.options = n;
2215
+ }
2216
+ return fu(t, [{
2217
+ key: "render",
2218
+ value: function() {
2219
+ if (!this.canvas.getContext)
2220
+ throw new Error("The browser does not support canvas.");
2221
+ this.prepareCanvas();
2222
+ for (var r = 0; r < this.encodings.length; r++) {
2223
+ var n = (0, lu.default)(this.options, this.encodings[r].options);
2224
+ this.drawCanvasBarcode(n, this.encodings[r]), this.drawCanvasText(n, this.encodings[r]), this.moveCanvasDrawing(this.encodings[r]);
2225
+ }
2226
+ this.restoreCanvas();
2227
+ }
2228
+ }, {
2229
+ key: "prepareCanvas",
2230
+ value: function() {
2231
+ var r = this.canvas.getContext("2d");
2232
+ r.save(), (0, _e.calculateEncodingAttributes)(this.encodings, this.options, r);
2233
+ var n = (0, _e.getTotalWidthOfEncodings)(this.encodings), a = (0, _e.getMaximumHeightOfEncodings)(this.encodings);
2234
+ this.canvas.width = n + this.options.marginLeft + this.options.marginRight, this.canvas.height = a, r.clearRect(0, 0, this.canvas.width, this.canvas.height), this.options.background && (r.fillStyle = this.options.background, r.fillRect(0, 0, this.canvas.width, this.canvas.height)), r.translate(this.options.marginLeft, 0);
2235
+ }
2236
+ }, {
2237
+ key: "drawCanvasBarcode",
2238
+ value: function(r, n) {
2239
+ var a = this.canvas.getContext("2d"), i = n.data, o;
2240
+ r.textPosition == "top" ? o = r.marginTop + r.fontSize + r.textMargin : o = r.marginTop, a.fillStyle = r.lineColor;
2241
+ for (var u = 0; u < i.length; u++) {
2242
+ var c = u * r.width + n.barcodePadding;
2243
+ i[u] === "1" ? a.fillRect(c, o, r.width, r.height) : i[u] && a.fillRect(c, o, r.width, r.height * i[u]);
2244
+ }
2245
+ }
2246
+ }, {
2247
+ key: "drawCanvasText",
2248
+ value: function(r, n) {
2249
+ var a = this.canvas.getContext("2d"), i = r.fontOptions + " " + r.fontSize + "px " + r.font;
2250
+ if (r.displayValue) {
2251
+ var o, u;
2252
+ r.textPosition == "top" ? u = r.marginTop + r.fontSize - r.textMargin : u = r.height + r.textMargin + r.marginTop + r.fontSize, a.font = i, r.textAlign == "left" || n.barcodePadding > 0 ? (o = 0, a.textAlign = "left") : r.textAlign == "right" ? (o = n.width - 1, a.textAlign = "right") : (o = n.width / 2, a.textAlign = "center"), a.fillText(n.text, o, u);
2253
+ }
2254
+ }
2255
+ }, {
2256
+ key: "moveCanvasDrawing",
2257
+ value: function(r) {
2258
+ var n = this.canvas.getContext("2d");
2259
+ n.translate(r.width, 0);
2260
+ }
2261
+ }, {
2262
+ key: "restoreCanvas",
2263
+ value: function() {
2264
+ var r = this.canvas.getContext("2d");
2265
+ r.restore();
2266
+ }
2267
+ }]), t;
2268
+ }();
2269
+ Fe.default = _u;
2270
+ var He = {};
2271
+ Object.defineProperty(He, "__esModule", {
2272
+ value: !0
2273
+ });
2274
+ var vu = function() {
2275
+ function t(e, r) {
2276
+ for (var n = 0; n < r.length; n++) {
2277
+ var a = r[n];
2278
+ a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a);
2279
+ }
2280
+ }
2281
+ return function(e, r, n) {
2282
+ return r && t(e.prototype, r), n && t(e, n), e;
2283
+ };
2284
+ }(), su = k, yu = pu(su), ve = _;
2285
+ function pu(t) {
2286
+ return t && t.__esModule ? t : { default: t };
2287
+ }
2288
+ function gu(t, e) {
2289
+ if (!(t instanceof e))
2290
+ throw new TypeError("Cannot call a class as a function");
2291
+ }
2292
+ var Q = "http://www.w3.org/2000/svg", Ou = function() {
2293
+ function t(e, r, n) {
2294
+ gu(this, t), this.svg = e, this.encodings = r, this.options = n, this.document = n.xmlDocument || document;
2295
+ }
2296
+ return vu(t, [{
2297
+ key: "render",
2298
+ value: function() {
2299
+ var r = this.options.marginLeft;
2300
+ this.prepareSVG();
2301
+ for (var n = 0; n < this.encodings.length; n++) {
2302
+ var a = this.encodings[n], i = (0, yu.default)(this.options, a.options), o = this.createGroup(r, i.marginTop, this.svg);
2303
+ this.setGroupOptions(o, i), this.drawSvgBarcode(o, i, a), this.drawSVGText(o, i, a), r += a.width;
2304
+ }
2305
+ }
2306
+ }, {
2307
+ key: "prepareSVG",
2308
+ value: function() {
2309
+ for (; this.svg.firstChild; )
2310
+ this.svg.removeChild(this.svg.firstChild);
2311
+ (0, ve.calculateEncodingAttributes)(this.encodings, this.options);
2312
+ var r = (0, ve.getTotalWidthOfEncodings)(this.encodings), n = (0, ve.getMaximumHeightOfEncodings)(this.encodings), a = r + this.options.marginLeft + this.options.marginRight;
2313
+ this.setSvgAttributes(a, n), this.options.background && this.drawRect(0, 0, a, n, this.svg).setAttribute("style", "fill:" + this.options.background + ";");
2314
+ }
2315
+ }, {
2316
+ key: "drawSvgBarcode",
2317
+ value: function(r, n, a) {
2318
+ var i = a.data, o;
2319
+ n.textPosition == "top" ? o = n.fontSize + n.textMargin : o = 0;
2320
+ for (var u = 0, c = 0, v = 0; v < i.length; v++)
2321
+ c = v * n.width + a.barcodePadding, i[v] === "1" ? u++ : u > 0 && (this.drawRect(c - n.width * u, o, n.width * u, n.height, r), u = 0);
2322
+ u > 0 && this.drawRect(c - n.width * (u - 1), o, n.width * u, n.height, r);
2323
+ }
2324
+ }, {
2325
+ key: "drawSVGText",
2326
+ value: function(r, n, a) {
2327
+ var i = this.document.createElementNS(Q, "text");
2328
+ if (n.displayValue) {
2329
+ var o, u;
2330
+ i.setAttribute("style", "font:" + n.fontOptions + " " + n.fontSize + "px " + n.font), n.textPosition == "top" ? u = n.fontSize - n.textMargin : u = n.height + n.textMargin + n.fontSize, n.textAlign == "left" || a.barcodePadding > 0 ? (o = 0, i.setAttribute("text-anchor", "start")) : n.textAlign == "right" ? (o = a.width - 1, i.setAttribute("text-anchor", "end")) : (o = a.width / 2, i.setAttribute("text-anchor", "middle")), i.setAttribute("x", o), i.setAttribute("y", u), i.appendChild(this.document.createTextNode(a.text)), r.appendChild(i);
2331
+ }
2332
+ }
2333
+ }, {
2334
+ key: "setSvgAttributes",
2335
+ value: function(r, n) {
2336
+ var a = this.svg;
2337
+ a.setAttribute("width", r + "px"), a.setAttribute("height", n + "px"), a.setAttribute("x", "0px"), a.setAttribute("y", "0px"), a.setAttribute("viewBox", "0 0 " + r + " " + n), a.setAttribute("xmlns", Q), a.setAttribute("version", "1.1"), a.setAttribute("style", "transform: translate(0,0)");
2338
+ }
2339
+ }, {
2340
+ key: "createGroup",
2341
+ value: function(r, n, a) {
2342
+ var i = this.document.createElementNS(Q, "g");
2343
+ return i.setAttribute("transform", "translate(" + r + ", " + n + ")"), a.appendChild(i), i;
2344
+ }
2345
+ }, {
2346
+ key: "setGroupOptions",
2347
+ value: function(r, n) {
2348
+ r.setAttribute("style", "fill:" + n.lineColor + ";");
2349
+ }
2350
+ }, {
2351
+ key: "drawRect",
2352
+ value: function(r, n, a, i, o) {
2353
+ var u = this.document.createElementNS(Q, "rect");
2354
+ return u.setAttribute("x", r), u.setAttribute("y", n), u.setAttribute("width", a), u.setAttribute("height", i), o.appendChild(u), u;
2355
+ }
2356
+ }]), t;
2357
+ }();
2358
+ He.default = Ou;
2359
+ var ze = {};
2360
+ Object.defineProperty(ze, "__esModule", {
2361
+ value: !0
2362
+ });
2363
+ var Eu = function() {
2364
+ function t(e, r) {
2365
+ for (var n = 0; n < r.length; n++) {
2366
+ var a = r[n];
2367
+ a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a);
2368
+ }
2369
+ }
2370
+ return function(e, r, n) {
2371
+ return r && t(e.prototype, r), n && t(e, n), e;
2372
+ };
2373
+ }();
2374
+ function bu(t, e) {
2375
+ if (!(t instanceof e))
2376
+ throw new TypeError("Cannot call a class as a function");
2377
+ }
2378
+ var mu = function() {
2379
+ function t(e, r, n) {
2380
+ bu(this, t), this.object = e, this.encodings = r, this.options = n;
2381
+ }
2382
+ return Eu(t, [{
2383
+ key: "render",
2384
+ value: function() {
2385
+ this.object.encodings = this.encodings;
2386
+ }
2387
+ }]), t;
2388
+ }();
2389
+ ze.default = mu;
2390
+ Object.defineProperty(Ge, "__esModule", {
2391
+ value: !0
2392
+ });
2393
+ var wu = Fe, $u = Xe(wu), xu = He, Su = Xe(xu), Au = ze, Ru = Xe(Au);
2394
+ function Xe(t) {
2395
+ return t && t.__esModule ? t : { default: t };
2396
+ }
2397
+ Ge.default = { CanvasRenderer: $u.default, SVGRenderer: Su.default, ObjectRenderer: Ru.default };
2398
+ var D = {};
2399
+ Object.defineProperty(D, "__esModule", {
2400
+ value: !0
2401
+ });
2402
+ function Ue(t, e) {
2403
+ if (!(t instanceof e))
2404
+ throw new TypeError("Cannot call a class as a function");
2405
+ }
2406
+ function Ve(t, e) {
2407
+ if (!t)
2408
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2409
+ return e && (typeof e == "object" || typeof e == "function") ? e : t;
2410
+ }
2411
+ function qe(t, e) {
2412
+ if (typeof e != "function" && e !== null)
2413
+ throw new TypeError("Super expression must either be null or a function, not " + typeof e);
2414
+ t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
2415
+ }
2416
+ var Pu = function(t) {
2417
+ qe(e, t);
2418
+ function e(r, n) {
2419
+ Ue(this, e);
2420
+ var a = Ve(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this));
2421
+ return a.name = "InvalidInputException", a.symbology = r, a.input = n, a.message = '"' + a.input + '" is not a valid input for ' + a.symbology, a;
2422
+ }
2423
+ return e;
2424
+ }(Error), Tu = function(t) {
2425
+ qe(e, t);
2426
+ function e() {
2427
+ Ue(this, e);
2428
+ var r = Ve(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this));
2429
+ return r.name = "InvalidElementException", r.message = "Not supported type to render on", r;
2430
+ }
2431
+ return e;
2432
+ }(Error), Mu = function(t) {
2433
+ qe(e, t);
2434
+ function e() {
2435
+ Ue(this, e);
2436
+ var r = Ve(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this));
2437
+ return r.name = "NoElementException", r.message = "No element to render on.", r;
2438
+ }
2439
+ return e;
2440
+ }(Error);
2441
+ D.InvalidInputException = Pu;
2442
+ D.InvalidElementException = Tu;
2443
+ D.NoElementException = Mu;
2444
+ Object.defineProperty(Ce, "__esModule", {
2445
+ value: !0
2446
+ });
2447
+ var Iu = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
2448
+ return typeof t;
2449
+ } : function(t) {
2450
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
2451
+ }, ku = Ne, ye = It(ku), Du = Ge, G = It(Du), ju = D;
2452
+ function It(t) {
2453
+ return t && t.__esModule ? t : { default: t };
2454
+ }
2455
+ function Je(t) {
2456
+ if (typeof t == "string")
2457
+ return Bu(t);
2458
+ if (Array.isArray(t)) {
2459
+ for (var e = [], r = 0; r < t.length; r++)
2460
+ e.push(Je(t[r]));
2461
+ return e;
2462
+ } else {
2463
+ if (typeof HTMLCanvasElement < "u" && t instanceof HTMLImageElement)
2464
+ return Lu(t);
2465
+ if (t && t.nodeName && t.nodeName.toLowerCase() === "svg" || typeof SVGElement < "u" && t instanceof SVGElement)
2466
+ return {
2467
+ element: t,
2468
+ options: (0, ye.default)(t),
2469
+ renderer: G.default.SVGRenderer
2470
+ };
2471
+ if (typeof HTMLCanvasElement < "u" && t instanceof HTMLCanvasElement)
2472
+ return {
2473
+ element: t,
2474
+ options: (0, ye.default)(t),
2475
+ renderer: G.default.CanvasRenderer
2476
+ };
2477
+ if (t && t.getContext)
2478
+ return {
2479
+ element: t,
2480
+ renderer: G.default.CanvasRenderer
2481
+ };
2482
+ if (t && (typeof t > "u" ? "undefined" : Iu(t)) === "object" && !t.nodeName)
2483
+ return {
2484
+ element: t,
2485
+ renderer: G.default.ObjectRenderer
2486
+ };
2487
+ throw new ju.InvalidElementException();
2488
+ }
2489
+ }
2490
+ function Bu(t) {
2491
+ var e = document.querySelectorAll(t);
2492
+ if (e.length !== 0) {
2493
+ for (var r = [], n = 0; n < e.length; n++)
2494
+ r.push(Je(e[n]));
2495
+ return r;
2496
+ }
2497
+ }
2498
+ function Lu(t) {
2499
+ var e = document.createElement("canvas");
2500
+ return {
2501
+ element: e,
2502
+ options: (0, ye.default)(t),
2503
+ renderer: G.default.CanvasRenderer,
2504
+ afterRender: function() {
2505
+ t.setAttribute("src", e.toDataURL());
2506
+ }
2507
+ };
2508
+ }
2509
+ Ce.default = Je;
2510
+ var Ye = {};
2511
+ Object.defineProperty(Ye, "__esModule", {
2512
+ value: !0
2513
+ });
2514
+ var Cu = function() {
2515
+ function t(e, r) {
2516
+ for (var n = 0; n < r.length; n++) {
2517
+ var a = r[n];
2518
+ a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a);
2519
+ }
2520
+ }
2521
+ return function(e, r, n) {
2522
+ return r && t(e.prototype, r), n && t(e, n), e;
2523
+ };
2524
+ }();
2525
+ function Nu(t, e) {
2526
+ if (!(t instanceof e))
2527
+ throw new TypeError("Cannot call a class as a function");
2528
+ }
2529
+ var Gu = function() {
2530
+ function t(e) {
2531
+ Nu(this, t), this.api = e;
2532
+ }
2533
+ return Cu(t, [{
2534
+ key: "handleCatch",
2535
+ value: function(r) {
2536
+ if (r.name === "InvalidInputException")
2537
+ if (this.api._options.valid !== this.api._defaults.valid)
2538
+ this.api._options.valid(!1);
2539
+ else
2540
+ throw r.message;
2541
+ else
2542
+ throw r;
2543
+ this.api.render = function() {
2544
+ };
2545
+ }
2546
+ }, {
2547
+ key: "wrapBarcodeCall",
2548
+ value: function(r) {
2549
+ try {
2550
+ var n = r.apply(void 0, arguments);
2551
+ return this.api._options.valid(!0), n;
2552
+ } catch (a) {
2553
+ return this.handleCatch(a), this.api;
2554
+ }
2555
+ }
2556
+ }]), t;
2557
+ }();
2558
+ Ye.default = Gu;
2559
+ var Fu = ge, m = E(Fu), Hu = k, U = E(Hu), zu = Be, kt = E(zu), Xu = Le, ct = E(Xu), Uu = Ce, Vu = E(Uu), qu = oe, Ju = E(qu), Yu = Ye, Wu = E(Yu), Dt = D, Qu = ue, jt = E(Qu);
2560
+ function E(t) {
2561
+ return t && t.__esModule ? t : { default: t };
2562
+ }
2563
+ var g = function() {
2564
+ }, fe = function(e, r, n) {
2565
+ var a = new g();
2566
+ if (typeof e > "u")
2567
+ throw Error("No element to render on was provided.");
2568
+ return a._renderProperties = (0, Vu.default)(e), a._encodings = [], a._options = jt.default, a._errorHandler = new Wu.default(a), typeof r < "u" && (n = n || {}, n.format || (n.format = Lt()), a.options(n)[n.format](r, n).render()), a;
2569
+ };
2570
+ fe.getModule = function(t) {
2571
+ return m.default[t];
2572
+ };
2573
+ for (var lt in m.default)
2574
+ m.default.hasOwnProperty(lt) && Zu(m.default, lt);
2575
+ function Zu(t, e) {
2576
+ g.prototype[e] = g.prototype[e.toUpperCase()] = g.prototype[e.toLowerCase()] = function(r, n) {
2577
+ var a = this;
2578
+ return a._errorHandler.wrapBarcodeCall(function() {
2579
+ n.text = typeof n.text > "u" ? void 0 : "" + n.text;
2580
+ var i = (0, U.default)(a._options, n);
2581
+ i = (0, Ju.default)(i);
2582
+ var o = t[e], u = Bt(r, o, i);
2583
+ return a._encodings.push(u), a;
2584
+ });
2585
+ };
2586
+ }
2587
+ function Bt(t, e, r) {
2588
+ t = "" + t;
2589
+ var n = new e(t, r);
2590
+ if (!n.valid())
2591
+ throw new Dt.InvalidInputException(n.constructor.name, t);
2592
+ var a = n.encode();
2593
+ a = (0, kt.default)(a);
2594
+ for (var i = 0; i < a.length; i++)
2595
+ a[i].options = (0, U.default)(r, a[i].options);
2596
+ return a;
2597
+ }
2598
+ function Lt() {
2599
+ return m.default.CODE128 ? "CODE128" : Object.keys(m.default)[0];
2600
+ }
2601
+ g.prototype.options = function(t) {
2602
+ return this._options = (0, U.default)(this._options, t), this;
2603
+ };
2604
+ g.prototype.blank = function(t) {
2605
+ var e = new Array(t + 1).join("0");
2606
+ return this._encodings.push({ data: e }), this;
2607
+ };
2608
+ g.prototype.init = function() {
2609
+ if (this._renderProperties) {
2610
+ Array.isArray(this._renderProperties) || (this._renderProperties = [this._renderProperties]);
2611
+ var t;
2612
+ for (var e in this._renderProperties) {
2613
+ t = this._renderProperties[e];
2614
+ var r = (0, U.default)(this._options, t.options);
2615
+ r.format == "auto" && (r.format = Lt()), this._errorHandler.wrapBarcodeCall(function() {
2616
+ var n = r.value, a = m.default[r.format.toUpperCase()], i = Bt(n, a, r);
2617
+ pe(t, i, r);
2618
+ });
2619
+ }
2620
+ }
2621
+ };
2622
+ g.prototype.render = function() {
2623
+ if (!this._renderProperties)
2624
+ throw new Dt.NoElementException();
2625
+ if (Array.isArray(this._renderProperties))
2626
+ for (var t = 0; t < this._renderProperties.length; t++)
2627
+ pe(this._renderProperties[t], this._encodings, this._options);
2628
+ else
2629
+ pe(this._renderProperties, this._encodings, this._options);
2630
+ return this;
2631
+ };
2632
+ g.prototype._defaults = jt.default;
2633
+ function pe(t, e, r) {
2634
+ e = (0, kt.default)(e);
2635
+ for (var n = 0; n < e.length; n++)
2636
+ e[n].options = (0, U.default)(r, e[n].options), (0, ct.default)(e[n].options);
2637
+ (0, ct.default)(r);
2638
+ var a = t.renderer, i = new a(t.element, e, r);
2639
+ i.render(), t.afterRender && t.afterRender();
2640
+ }
2641
+ typeof window < "u" && (window.JsBarcode = fe);
2642
+ typeof jQuery < "u" && (jQuery.fn.JsBarcode = function(t, e) {
2643
+ var r = [];
2644
+ return jQuery(this).each(function() {
2645
+ r.push(this);
2646
+ }), fe(r, t, e);
2647
+ });
2648
+ var Ku = fe;
2649
+ async function ef(t, e = 300, r = 150, n) {
2650
+ const a = document.createElement("canvas");
2651
+ if (!a.getContext("2d"))
2652
+ throw new Error("Canvas context is not available.");
2653
+ return a.width = e, a.height = r, await Ku(a, t, n), a.toDataURL("image/png");
2654
+ }
2655
+ const tf = ["src"], nf = ht({ componentName: qt.FieldWidget }), Pf = /* @__PURE__ */ ht({
2656
+ ...nf,
2657
+ __name: "barcode-widget",
2658
+ props: { ...Jt },
2659
+ setup(t, { expose: e }) {
2660
+ const r = t, { exposed: n, extendAttrs: a, fieldObj: i } = Yt(r), o = Ct(""), u = () => {
2661
+ var c, v, b;
2662
+ ef((c = a.value) == null ? void 0 : c.content, 300, 150, {
2663
+ ...a.value,
2664
+ width: (v = a.value) == null ? void 0 : v.lineWidth,
2665
+ height: (b = a.value) == null ? void 0 : b.lineHeight
2666
+ }).then((j) => {
2667
+ o.value = j;
2668
+ }).catch((j) => {
2669
+ import("./noimg-89eb860b.js").then((V) => {
2670
+ o.value = V.default;
2671
+ });
2672
+ });
2673
+ };
2674
+ return Nt(() => a.value, (c) => {
2675
+ u();
2676
+ }, { immediate: !0 }), e({ ...n }), (c, v) => (Gt(), Ft(Wt, Ht(c.$props, {
2677
+ "prop-options": { fieldObj: B(i) }
2678
+ }), {
2679
+ default: zt(() => {
2680
+ var b, j, V;
2681
+ return [
2682
+ Xt("img", {
2683
+ ref: "fieldEditor",
2684
+ class: Ut(B(Qt)((b = B(a)) == null ? void 0 : b.customClass)),
2685
+ src: o.value,
2686
+ style: Vt({
2687
+ width: (j = B(a)) == null ? void 0 : j.ctrlWidth,
2688
+ height: (V = B(a)) == null ? void 0 : V.ctrlHeight
2689
+ })
2690
+ }, null, 14, tf)
2691
+ ];
2692
+ }),
2693
+ _: 1
2694
+ }, 16, ["prop-options"]));
2695
+ }
2696
+ });
2697
+ export {
2698
+ Pf as default
2699
+ };