@emailmaker/emailmaker 1.2.5 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/emailmaker-core.a4e11bd0.js +859 -0
- package/emailmaker-esm.js +11 -11
- package/{emailmaker-po.ee1618fa.js → emailmaker-po.a4e11bd0.js} +1 -1
- package/emailmaker.js +12 -12
- package/iframe/.vite/manifest.json +4 -4
- package/iframe/css/sandbox.css +19 -0
- package/iframe/{iframe-eblock.ee1618fa.html → iframe-eblock.a4e11bd0.html} +2 -2
- package/iframe/{iframe.ee1618fa.html → iframe.a4e11bd0.html} +2 -2
- package/iframe/js/elMarkupHelper.Dc_IFMml.js +278 -0
- package/iframe/js/iframe-eblock.body.a4e11bd0.js +9 -0
- package/iframe/js/iframe-eblock.js +2 -2
- package/iframe/js/iframe.body.a4e11bd0.js +129 -0
- package/iframe/js/iframe.js +2 -2
- package/package.json +1 -1
- package/runtime/react/index.js +1 -1
- package/static/core/0c2b284d.js +1 -0
- package/static/core/{c3d00c5e.js → 1708db7c.js} +1 -1
- package/static/core/{abcacabc.js → 1922419a.js} +1 -1
- package/static/core/{2a042fe3.js → 1c5fcd3e.js} +1 -1
- package/static/core/{6b16159c.js → 1d705ef4.js} +1 -1
- package/static/core/{63e7f8c1.js → 2f2b6a03.js} +2 -2
- package/static/core/{659796a7.js → 44ad0bec.js} +11 -11
- package/static/core/{dd230bbb.js → 462ebf44.js} +1 -1
- package/static/core/{b7289065.js → 5b124cab.js} +1 -1
- package/static/core/{d2780737.js → 5c396b20.js} +1 -1
- package/static/core/{7e167222.js → 64c240c3.js} +1 -1
- package/static/core/{d503c406.js → 6dfc3524.js} +1 -1
- package/static/core/{683a6a53.js → 762d0d48.js} +1 -1
- package/static/core/{c67df236.js → 76d1e927.js} +1 -1
- package/static/core/{4de9c323.js → 7c519fb4.js} +3 -3
- package/static/core/{a8b4352d.js → 8608a2b9.js} +1 -1
- package/static/core/{155e871a.js → 892bb74e.js} +3 -3
- package/static/core/{5b6e2acb.js → 9c4c7364.js} +1 -1
- package/static/core/{b712bb05.js → 9f7f5230.js} +1 -1
- package/static/core/{64711257.js → a30b0fae.js} +2 -2
- package/static/core/a4d994c7.js +28 -0
- package/static/core/aa75c19b.js +2 -0
- package/static/core/{82f8beb4.js → b0c57adf.js} +1 -1
- package/static/core/{17fba7af.js → b9f59067.js} +1 -1
- package/static/core/{c03be019.js → c16f27f8.js} +2 -2
- package/static/core/{f35181ec.js → cd998f60.js} +1 -1
- package/static/core/{50ba806c.js → e123b734.js} +1 -1
- package/static/core/e6f6edff.js +1 -0
- package/static/core/{9eaed676.js → e70683db.js} +1 -1
- package/static/core/{c8443fab.js → ec552634.js} +1 -1
- package/static/esm/{b4f8dfdc.js → 74f083c2.js} +1 -1
- package/static/umd-runtime/{runtime.Bsid8PpY.js → runtime.C95Dj7XR.js} +1 -1
- package/vendor/@emailmaker/ui-kit/package.json +1 -1
- package/emailmaker-core.ee1618fa.js +0 -859
- package/iframe/js/elMarkupHelper.Buog1r0c.js +0 -278
- package/iframe/js/iframe-eblock.body.ee1618fa.js +0 -9
- package/iframe/js/iframe.body.ee1618fa.js +0 -129
- package/static/core/987afc3f.js +0 -1
- package/static/core/b96e571d.js +0 -2
- package/static/core/e7fa68c2.js +0 -28
- package/static/core/e88db487.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
__emailmaker__.define("static/core/b712bb05.js",["require","exports","module","static/core/5dc34752.js","static/core/e88db487.js"],function(k,z,Mt){const Rt=k("./5dc34752.js"),_=k("./e88db487.js");var x=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});function d(s,f){if(!(s instanceof f))throw TypeError("Cannot call a class as a function")}a.default=function s(f,l){d(this,s),this.data=f,this.text=l.text||f,this.options=l}})),V=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0}),a.CODE39=void 0;var d=(function(){function y(v,b){for(var j=0;j<b.length;j++){var g=b[j];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(v,g.key,g)}}return function(v,b,j){return b&&y(v.prototype,b),j&&y(v,j),v}})(),s=f(x());function f(y){return y&&y.__esModule?y:{default:y}}function l(y,v){if(!(y instanceof v))throw TypeError("Cannot call a class as a function")}function c(y,v){if(!y)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:y}function p(y,v){if(typeof v!="function"&&v!==null)throw TypeError("Super expression must either be null or a function, not "+typeof v);y.prototype=Object.create(v&&v.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(y,v):y.__proto__=v)}var o=(function(y){p(v,y);function v(b,j){return l(this,v),b=b.toUpperCase(),j.mod43&&(b+=i(h(b))),c(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,b,j))}return d(v,[{key:"encode",value:function(){for(var b=n("*"),j=0;j<this.data.length;j++)b+=n(this.data[j])+"0";return b+=n("*"),{data:b,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)!==-1}}]),v})(s.default),e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%*".split(""),t=[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];function n(y){return r(u(y))}function r(y){return t[y].toString(2)}function i(y){return e[y]}function u(y){return e.indexOf(y)}function h(y){for(var v=0,b=0;b<y.length;b++)v+=u(y[b]);return v%=43,v}a.CODE39=o})),S=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d;function s(t,n,r){return n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}var f=a.SET_A=0,l=a.SET_B=1,c=a.SET_C=2;a.SHIFT=98;var p=a.START_A=103,o=a.START_B=104,e=a.START_C=105;a.MODULO=103,a.STOP=106,a.FNC1=207,a.SET_BY_CODE=(d={},s(d,p,f),s(d,o,l),s(d,e,c),d),a.SWAP={101:f,100:l,99:c},a.A_START_CHAR="Ð",a.B_START_CHAR="Ñ",a.C_START_CHAR="Ò",a.A_CHARS="[\0-_È-Ï]",a.B_CHARS="[ -È-Ï]",a.C_CHARS="(Ï*[0-9]{2}Ï*)",a.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]})),M=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}})(),s=l(x()),f=S();function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function o(e,t){if(typeof t!="function"&&t!==null)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}a.default=(function(e){o(t,e);function t(n,r){c(this,t);var i=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n.substring(1),r));return i.bytes=n.split("").map(function(u){return u.charCodeAt(0)}),i}return d(t,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var n=this.bytes,r=n.shift()-105,i=f.SET_BY_CODE[r];if(i===void 0)throw RangeError("The encoding does not start with a start character.");this.shouldEncodeAsEan128()===!0&&n.unshift(f.FNC1);var u=t.next(n,1,i);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:t.getBar(r)+u.result+t.getBar((u.checksum+r)%f.MODULO)+t.getBar(f.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var n=this.options.ean128||!1;return typeof n=="string"&&(n=n.toLowerCase()==="true"),n}}],[{key:"getBar",value:function(n){return f.BARS[n]?f.BARS[n].toString():""}},{key:"correctIndex",value:function(n,r){if(r===f.SET_A){var i=n.shift();return i<32?i+64:i-32}return r===f.SET_B?n.shift()-32:(n.shift()-48)*10+n.shift()-48}},{key:"next",value:function(n,r,i){if(!n.length)return{result:"",checksum:0};var u=void 0,h=void 0;if(n[0]>=200){h=n.shift()-105;var y=f.SWAP[h];y===void 0?((i===f.SET_A||i===f.SET_B)&&h===f.SHIFT&&(n[0]=i===f.SET_A?n[0]>95?n[0]-96:n[0]:n[0]<32?n[0]+96:n[0]),u=t.next(n,r+1,i)):u=t.next(n,r+1,y)}else h=t.correctIndex(n,i),u=t.next(n,r+1,i);var v=t.getBar(h),b=h*r;return{result:v+u.result,checksum:b+u.checksum}}}]),t})(s.default)})),U=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=S(),s=function(o){return o.match(RegExp("^"+d.A_CHARS+"*"))[0].length},f=function(o){return o.match(RegExp("^"+d.B_CHARS+"*"))[0].length},l=function(o){return o.match(RegExp("^"+d.C_CHARS+"*"))[0]};function c(o,e){var t=e?d.A_CHARS:d.B_CHARS,n=o.match(RegExp("^("+t+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(n)return n[1]+"Ì"+p(o.substring(n[1].length));var r=o.match(RegExp("^"+t+"+"))[0];return r.length===o.length?o:r+String.fromCharCode(e?205:206)+c(o.substring(r.length),!e)}function p(o){var e=l(o),t=e.length;if(t===o.length)return o;o=o.substring(t);var n=s(o)>=f(o);return e+String.fromCharCode(n?206:205)+c(o,n)}a.default=function(o){var e=void 0;if(l(o).length>=2)e=d.C_START_CHAR+p(o);else{var t=s(o)>f(o);e=(t?d.A_START_CHAR:d.B_START_CHAR)+c(o,t)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(n,r){return"Ë"+r})}})),F=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=f(M()),s=f(U());function f(o){return o&&o.__esModule?o:{default:o}}function l(o,e){if(!(o instanceof e))throw TypeError("Cannot call a class as a function")}function c(o,e){if(!o)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:o}function p(o,e){if(typeof e!="function"&&e!==null)throw TypeError("Super expression must either be null or a function, not "+typeof e);o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(o,e):o.__proto__=e)}a.default=(function(o){p(e,o);function e(t,n){if(l(this,e),/^[\x00-\x7F\xC8-\xD3]+$/.test(t))var r=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(0,s.default)(t),n));else var r=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return c(r)}return e})(d.default)})),W=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}})(),s=l(M()),f=S();function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function o(e,t){if(typeof t!="function"&&t!==null)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}a.default=(function(e){o(t,e);function t(n,r){return c(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,f.A_START_CHAR+n,r))}return d(t,[{key:"valid",value:function(){return RegExp("^"+f.A_CHARS+"+$").test(this.data)}}]),t})(s.default)})),Y=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}})(),s=l(M()),f=S();function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function o(e,t){if(typeof t!="function"&&t!==null)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}a.default=(function(e){o(t,e);function t(n,r){return c(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,f.B_START_CHAR+n,r))}return d(t,[{key:"valid",value:function(){return RegExp("^"+f.B_CHARS+"+$").test(this.data)}}]),t})(s.default)})),J=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}})(),s=l(M()),f=S();function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function o(e,t){if(typeof t!="function"&&t!==null)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}a.default=(function(e){o(t,e);function t(n,r){return c(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,f.C_START_CHAR+n,r))}return d(t,[{key:"valid",value:function(){return RegExp("^"+f.C_CHARS+"+$").test(this.data)}}]),t})(s.default)})),Q=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0}),a.CODE128C=a.CODE128B=a.CODE128A=a.CODE128=void 0;var d=c(F()),s=c(W()),f=c(Y()),l=c(J());function c(p){return p&&p.__esModule?p:{default:p}}a.CODE128=d.default,a.CODE128A=s.default,a.CODE128B=f.default,a.CODE128C=l.default})),C=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0}),a.SIDE_BIN="101",a.MIDDLE_BIN="01010",a.BINARIES={L:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],O:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],E:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"]},a.EAN2_STRUCTURE=["LL","LG","GL","GG"],a.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],a.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"]})),A=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=C();a.default=function(s,f,l){var c=s.split("").map(function(o,e){return d.BINARIES[f[e]]}).map(function(o,e){return o?o[s[e]]:""});if(l){var p=s.length-1;c=c.map(function(o,e){return e<p?o+l:o})}return c.join("")}})),I=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function t(n,r){for(var i=0;i<r.length;i++){var u=r[i];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(n,u.key,u)}}return function(n,r,i){return r&&t(n.prototype,r),i&&t(n,i),n}})(),s=C(),f=c(A()),l=c(x());function c(t){return t&&t.__esModule?t:{default:t}}function p(t,n){if(!(t instanceof n))throw TypeError("Cannot call a class as a function")}function o(t,n){if(!t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:t}function e(t,n){if(typeof n!="function"&&n!==null)throw TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}a.default=(function(t){e(n,t);function n(r,i){p(this,n);var u=o(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,r,i));return u.fontSize=!i.flat&&i.fontSize>i.width*10?i.width*10:i.fontSize,u.guardHeight=i.height+u.fontSize/2+i.textMargin,u}return d(n,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(r,i){return this.text.substr(r,i)}},{key:"leftEncode",value:function(r,i){return(0,f.default)(r,i)}},{key:"rightText",value:function(r,i){return this.text.substr(r,i)}},{key:"rightEncode",value:function(r,i){return(0,f.default)(r,i)}},{key:"encodeGuarded",value:function(){var r={fontSize:this.fontSize},i={height:this.guardHeight};return[{data:s.SIDE_BIN,options:i},{data:this.leftEncode(),text:this.leftText(),options:r},{data:s.MIDDLE_BIN,options:i},{data:this.rightEncode(),text:this.rightText(),options:r},{data:s.SIDE_BIN,options:i}]}},{key:"encodeFlat",value:function(){return{data:[s.SIDE_BIN,this.leftEncode(),s.MIDDLE_BIN,this.rightEncode(),s.SIDE_BIN].join(""),text:this.text}}}]),n})(l.default)})),Z=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function n(r,i){for(var u=0;u<i.length;u++){var h=i[u];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(r,h.key,h)}}return function(r,i,u){return i&&n(r.prototype,i),u&&n(r,u),r}})(),s=function n(r,i,u){r===null&&(r=Function.prototype);var h=Object.getOwnPropertyDescriptor(r,i);if(h===void 0){var y=Object.getPrototypeOf(r);return y===null?void 0:n(y,i,u)}if("value"in h)return h.value;var v=h.get;return v===void 0?void 0:v.call(u)},f=C(),l=c(I());function c(n){return n&&n.__esModule?n:{default:n}}function p(n,r){if(!(n instanceof r))throw TypeError("Cannot call a class as a function")}function o(n,r){if(!n)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:n}function e(n,r){if(typeof r!="function"&&r!==null)throw TypeError("Super expression must either be null or a function, not "+typeof r);n.prototype=Object.create(r&&r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(n,r):n.__proto__=r)}var t=function(n){return(10-n.substr(0,12).split("").map(function(r){return+r}).reduce(function(r,i,u){return u%2?r+i*3:r+i},0)%10)%10};a.default=(function(n){e(r,n);function r(i,u){p(this,r),i.search(/^[0-9]{12}$/)!==-1&&(i+=t(i));var h=o(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,i,u));return h.lastChar=u.lastChar,h}return d(r,[{key:"valid",value:function(){return this.data.search(/^[0-9]{13}$/)!==-1&&+this.data[12]===t(this.data)}},{key:"leftText",value:function(){return s(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var i=this.data.substr(1,6),u=f.EAN13_STRUCTURE[this.data[0]];return s(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"leftEncode",this).call(this,i,u)}},{key:"rightText",value:function(){return s(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var i=this.data.substr(7,6);return s(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"rightEncode",this).call(this,i,"RRRRRR")}},{key:"encodeGuarded",value:function(){var i=s(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(i.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(i.push({data:"00"}),i.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),i}}]),r})(l.default)})),K=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function t(n,r){for(var i=0;i<r.length;i++){var u=r[i];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(n,u.key,u)}}return function(n,r,i){return r&&t(n.prototype,r),i&&t(n,i),n}})(),s=function t(n,r,i){n===null&&(n=Function.prototype);var u=Object.getOwnPropertyDescriptor(n,r);if(u===void 0){var h=Object.getPrototypeOf(n);return h===null?void 0:t(h,r,i)}if("value"in u)return u.value;var y=u.get;return y===void 0?void 0:y.call(i)},f=l(I());function l(t){return t&&t.__esModule?t:{default:t}}function c(t,n){if(!(t instanceof n))throw TypeError("Cannot call a class as a function")}function p(t,n){if(!t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:t}function o(t,n){if(typeof n!="function"&&n!==null)throw TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}var e=function(t){return(10-t.substr(0,7).split("").map(function(n){return+n}).reduce(function(n,r,i){return i%2?n+r:n+r*3},0)%10)%10};a.default=(function(t){o(n,t);function n(r,i){return c(this,n),r.search(/^[0-9]{7}$/)!==-1&&(r+=e(r)),p(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,r,i))}return d(n,[{key:"valid",value:function(){return this.data.search(/^[0-9]{8}$/)!==-1&&+this.data[7]===e(this.data)}},{key:"leftText",value:function(){return s(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var r=this.data.substr(0,4);return s(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"leftEncode",this).call(this,r,"LLLL")}},{key:"rightText",value:function(){return s(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var r=this.data.substr(4,4);return s(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"rightEncode",this).call(this,r,"RRRR")}}]),n})(f.default)})),q=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function n(r,i){for(var u=0;u<i.length;u++){var h=i[u];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(r,h.key,h)}}return function(r,i,u){return i&&n(r.prototype,i),u&&n(r,u),r}})(),s=C(),f=c(A()),l=c(x());function c(n){return n&&n.__esModule?n:{default:n}}function p(n,r){if(!(n instanceof r))throw TypeError("Cannot call a class as a function")}function o(n,r){if(!n)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:n}function e(n,r){if(typeof r!="function"&&r!==null)throw TypeError("Super expression must either be null or a function, not "+typeof r);n.prototype=Object.create(r&&r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(n,r):n.__proto__=r)}var t=function(n){return n.split("").map(function(r){return+r}).reduce(function(r,i,u){return u%2?r+i*9:r+i*3},0)%10};a.default=(function(n){e(r,n);function r(i,u){return p(this,r),o(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,i,u))}return d(r,[{key:"valid",value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:"encode",value:function(){var i=s.EAN5_STRUCTURE[t(this.data)];return{data:"1011"+(0,f.default)(this.data,i,"01"),text:this.text}}}]),r})(l.default)})),tt=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function t(n,r){for(var i=0;i<r.length;i++){var u=r[i];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(n,u.key,u)}}return function(n,r,i){return r&&t(n.prototype,r),i&&t(n,i),n}})(),s=C(),f=c(A()),l=c(x());function c(t){return t&&t.__esModule?t:{default:t}}function p(t,n){if(!(t instanceof n))throw TypeError("Cannot call a class as a function")}function o(t,n){if(!t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:t}function e(t,n){if(typeof n!="function"&&n!==null)throw TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}a.default=(function(t){e(n,t);function n(r,i){return p(this,n),o(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,r,i))}return d(n,[{key:"valid",value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:"encode",value:function(){var r=s.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,f.default)(this.data,r,"01"),text:this.text}}}]),n})(l.default)})),B=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function n(r,i){for(var u=0;u<i.length;u++){var h=i[u];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(r,h.key,h)}}return function(r,i,u){return i&&n(r.prototype,i),u&&n(r,u),r}})();a.checksum=t;var s=l(A()),f=l(x());function l(n){return n&&n.__esModule?n:{default:n}}function c(n,r){if(!(n instanceof r))throw TypeError("Cannot call a class as a function")}function p(n,r){if(!n)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:n}function o(n,r){if(typeof r!="function"&&r!==null)throw TypeError("Super expression must either be null or a function, not "+typeof r);n.prototype=Object.create(r&&r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(n,r):n.__proto__=r)}var e=(function(n){o(r,n);function r(i,u){c(this,r),i.search(/^[0-9]{11}$/)!==-1&&(i+=t(i));var h=p(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,i,u));return h.displayValue=u.displayValue,h.fontSize=u.fontSize>u.width*10?u.width*10:u.fontSize,h.guardHeight=u.height+h.fontSize/2+u.textMargin,h}return d(r,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==t(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var i="";return i+="101",i+=(0,s.default)(this.data.substr(0,6),"LLLLLL"),i+="01010",i+=(0,s.default)(this.data.substr(6,6),"RRRRRR"),i+="101",{data:i,text:this.text}}},{key:"guardedEncoding",value:function(){var i=[];return this.displayValue&&i.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),i.push({data:"101"+(0,s.default)(this.data[0],"L"),options:{height:this.guardHeight}}),i.push({data:(0,s.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),i.push({data:"01010",options:{height:this.guardHeight}}),i.push({data:(0,s.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),i.push({data:(0,s.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&i.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),i}}]),r})(f.default);function t(n){for(var r=0,i=1;i<11;i+=2)r+=parseInt(n[i]);for(i=0;i<11;i+=2)r+=parseInt(n[i])*3;return(10-r%10)%10}a.default=e})),et=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function u(h,y){for(var v=0;v<y.length;v++){var b=y[v];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(h,b.key,b)}}return function(h,y,v){return y&&u(h.prototype,y),v&&u(h,v),h}})(),s=c(A()),f=c(x()),l=B();function c(u){return u&&u.__esModule?u:{default:u}}function p(u,h){if(!(u instanceof h))throw TypeError("Cannot call a class as a function")}function o(u,h){if(!u)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:u}function e(u,h){if(typeof h!="function"&&h!==null)throw TypeError("Super expression must either be null or a function, not "+typeof h);u.prototype=Object.create(h&&h.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(u,h):u.__proto__=h)}var t=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],n=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],r=(function(u){e(h,u);function h(y,v){p(this,h);var b=o(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,y,v));if(b.isValid=!1,y.search(/^[0-9]{6}$/)!==-1)b.middleDigits=y,b.upcA=i(y,"0"),b.text=v.text||""+b.upcA[0]+y+b.upcA[b.upcA.length-1],b.isValid=!0;else if(y.search(/^[01][0-9]{7}$/)!==-1)if(b.middleDigits=y.substring(1,y.length-1),b.upcA=i(b.middleDigits,y[0]),b.upcA[b.upcA.length-1]===y[y.length-1])b.isValid=!0;else return o(b);else return o(b);return b.displayValue=v.displayValue,b.fontSize=v.fontSize>v.width*10?v.width*10:v.fontSize,b.guardHeight=v.height+b.fontSize/2+v.textMargin,b}return d(h,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var y="";return y+="101",y+=this.encodeMiddleDigits(),y+="010101",{data:y,text:this.text}}},{key:"guardedEncoding",value:function(){var y=[];return this.displayValue&&y.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),y.push({data:"101",options:{height:this.guardHeight}}),y.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),y.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&y.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),y}},{key:"encodeMiddleDigits",value:function(){var y=this.upcA[0],v=this.upcA[this.upcA.length-1],b=n[parseInt(v)][parseInt(y)];return(0,s.default)(this.middleDigits,b)}}]),h})(f.default);function i(u,h){for(var y=t[parseInt(u[u.length-1])],v="",b=0,j=0;j<y.length;j++){var g=y[j];v+=g==="X"?u[b++]:g}return v=""+h+v,""+v+(0,l.checksum)(v)}a.default=r})),nt=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0}),a.UPCE=a.UPC=a.EAN2=a.EAN5=a.EAN8=a.EAN13=void 0;var d=o(Z()),s=o(K()),f=o(q()),l=o(tt()),c=o(B()),p=o(et());function o(e){return e&&e.__esModule?e:{default:e}}a.EAN13=d.default,a.EAN8=s.default,a.EAN5=f.default,a.EAN2=l.default,a.UPC=c.default,a.UPCE=p.default})),rt=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0}),a.START_BIN="1010",a.END_BIN="11101",a.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"]})),G=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}})(),s=rt(),f=l(x());function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function o(e,t){if(typeof t!="function"&&t!==null)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}a.default=(function(e){o(t,e);function t(){return c(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,[{key:"valid",value:function(){return this.data.search(/^([0-9]{2})+$/)!==-1}},{key:"encode",value:function(){var n=this,r=this.data.match(/.{2}/g).map(function(i){return n.encodePair(i)}).join("");return{data:s.START_BIN+r+s.END_BIN,text:this.text}}},{key:"encodePair",value:function(n){var r=s.BINARIES[n[1]];return s.BINARIES[n[0]].split("").map(function(i,u){return(i==="1"?"111":"1")+(r[u]==="1"?"000":"0")}).join("")}}]),t})(f.default)})),ot=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}})(),s=f(G());function f(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function p(e,t){if(typeof t!="function"&&t!==null)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=function(e){var t=e.substr(0,13).split("").map(function(n){return parseInt(n,10)}).reduce(function(n,r,i){return n+r*(3-i%2*2)},0);return Math.ceil(t/10)*10-t};a.default=(function(e){p(t,e);function t(n,r){return l(this,t),n.search(/^[0-9]{13}$/)!==-1&&(n+=o(n)),c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n,r))}return d(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===o(this.data)}}]),t})(s.default)})),it=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ITF14=a.ITF=void 0;var d=f(G()),s=f(ot());function f(l){return l&&l.__esModule?l:{default:l}}a.ITF=d.default,a.ITF14=s.default})),T=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function t(n,r){for(var i=0;i<r.length;i++){var u=r[i];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(n,u.key,u)}}return function(n,r,i){return r&&t(n.prototype,r),i&&t(n,i),n}})(),s=f(x());function f(t){return t&&t.__esModule?t:{default:t}}function l(t,n){if(!(t instanceof n))throw TypeError("Cannot call a class as a function")}function c(t,n){if(!t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:t}function p(t,n){if(typeof n!="function"&&n!==null)throw TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}var o=(function(t){p(n,t);function n(r,i){return l(this,n),c(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,r,i))}return d(n,[{key:"encode",value:function(){for(var r="110",i=0;i<this.data.length;i++){var u=parseInt(this.data[i]).toString(2);u=e(u,4-u.length);for(var h=0;h<u.length;h++)r+=u[h]=="0"?"100":"110"}return r+="1001",{data:r,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9]+$/)!==-1}}]),n})(s.default);function e(t,n){for(var r=0;r<n;r++)t="0"+t;return t}a.default=o})),R=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0}),a.mod10=d,a.mod11=s;function d(f){for(var l=0,c=0;c<f.length;c++){var p=parseInt(f[c]);(c+f.length)%2==0?l+=p:l+=p*2%10+Math.floor(p*2/10)}return(10-l%10)%10}function s(f){for(var l=0,c=[2,3,4,5,6,7],p=0;p<f.length;p++){var o=parseInt(f[f.length-1-p]);l+=c[p%c.length]*o}return(11-l%11)%11}})),at=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=f(T()),s=R();function f(o){return o&&o.__esModule?o:{default:o}}function l(o,e){if(!(o instanceof e))throw TypeError("Cannot call a class as a function")}function c(o,e){if(!o)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:o}function p(o,e){if(typeof e!="function"&&e!==null)throw TypeError("Super expression must either be null or a function, not "+typeof e);o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(o,e):o.__proto__=e)}a.default=(function(o){p(e,o);function e(t,n){return l(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t+(0,s.mod10)(t),n))}return e})(d.default)})),ut=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=f(T()),s=R();function f(o){return o&&o.__esModule?o:{default:o}}function l(o,e){if(!(o instanceof e))throw TypeError("Cannot call a class as a function")}function c(o,e){if(!o)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:o}function p(o,e){if(typeof e!="function"&&e!==null)throw TypeError("Super expression must either be null or a function, not "+typeof e);o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(o,e):o.__proto__=e)}a.default=(function(o){p(e,o);function e(t,n){return l(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t+(0,s.mod11)(t),n))}return e})(d.default)})),ft=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=f(T()),s=R();function f(o){return o&&o.__esModule?o:{default:o}}function l(o,e){if(!(o instanceof e))throw TypeError("Cannot call a class as a function")}function c(o,e){if(!o)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:o}function p(o,e){if(typeof e!="function"&&e!==null)throw TypeError("Super expression must either be null or a function, not "+typeof e);o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(o,e):o.__proto__=e)}a.default=(function(o){p(e,o);function e(t,n){return l(this,e),t+=(0,s.mod10)(t),t+=(0,s.mod10)(t),c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return e})(d.default)})),st=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=f(T()),s=R();function f(o){return o&&o.__esModule?o:{default:o}}function l(o,e){if(!(o instanceof e))throw TypeError("Cannot call a class as a function")}function c(o,e){if(!o)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:o}function p(o,e){if(typeof e!="function"&&e!==null)throw TypeError("Super expression must either be null or a function, not "+typeof e);o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(o,e):o.__proto__=e)}a.default=(function(o){p(e,o);function e(t,n){return l(this,e),t+=(0,s.mod11)(t),t+=(0,s.mod10)(t),c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return e})(d.default)})),ct=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0}),a.MSI1110=a.MSI1010=a.MSI11=a.MSI10=a.MSI=void 0;var d=p(T()),s=p(at()),f=p(ut()),l=p(ft()),c=p(st());function p(o){return o&&o.__esModule?o:{default:o}}a.MSI=d.default,a.MSI10=s.default,a.MSI11=f.default,a.MSI1010=l.default,a.MSI1110=c.default})),lt=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0}),a.pharmacode=void 0;var d=(function(){function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}})(),s=f(x());function f(o){return o&&o.__esModule?o:{default:o}}function l(o,e){if(!(o instanceof e))throw TypeError("Cannot call a class as a function")}function c(o,e){if(!o)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:o}function p(o,e){if(typeof e!="function"&&e!==null)throw TypeError("Super expression must either be null or a function, not "+typeof e);o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(o,e):o.__proto__=e)}a.pharmacode=(function(o){p(e,o);function e(t,n){l(this,e);var r=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.number=parseInt(t,10),r}return d(e,[{key:"encode",value:function(){for(var t=this.number,n="";!isNaN(t)&&t!=0;)t%2==0?(n="11100"+n,t=(t-2)/2):(n="100"+n,t=(t-1)/2);return n=n.slice(0,-2),{data:n,text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),e})(s.default)})),pt=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0}),a.codabar=void 0;var d=(function(){function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}})(),s=f(x());function f(o){return o&&o.__esModule?o:{default:o}}function l(o,e){if(!(o instanceof e))throw TypeError("Cannot call a class as a function")}function c(o,e){if(!o)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:o}function p(o,e){if(typeof e!="function"&&e!==null)throw TypeError("Super expression must either be null or a function, not "+typeof e);o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(o,e):o.__proto__=e)}a.codabar=(function(o){p(e,o);function e(t,n){l(this,e),t.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(t="A"+t+"A");var r=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t.toUpperCase(),n));return r.text=r.options.text||r.text.replace(/[A-D]/g,""),r}return d(e,[{key:"valid",value:function(){return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)!==-1}},{key:"encode",value:function(){for(var t=[],n=this.getEncodings(),r=0;r<this.data.length;r++)t.push(n[this.data.charAt(r)]),r!==this.data.length-1&&t.push("0");return{text:this.text,data:t.join("")}}},{key:"getEncodings",value:function(){return{0:"101010011",1:"101011001",2:"101001011",3:"110010101",4:"101101001",5:"110101001",6:"100101011",7:"100101101",8:"100110101",9:"110100101","-":"101001101",$:"101100101",":":"1101011011","/":"1101101011",".":"1101101101","+":"1011011011",A:"1011001001",B:"1001001011",C:"1010010011",D:"1010011001"}}}]),e})(s.default)})),dt=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0}),a.SYMBOLS="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,-,., ,$,/,+,%,($),(%),(/),(+),ÿ".split(","),a.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".split("."),a.MULTI_SYMBOLS={"\0":["(%)","U"],"":["($)","A"],"":["($)","B"],"":["($)","C"],"":["($)","D"],"":["($)","E"],"":["($)","F"],"\x07":["($)","G"],"\b":["($)","H"]," ":["($)","I"],"\n":["($)","J"],"\v":["($)","K"],"\f":["($)","L"],"\r":["($)","M"],"":["($)","N"],"":["($)","O"],"":["($)","P"],"":["($)","Q"],"":["($)","R"],"":["($)","S"],"":["($)","T"],"":["($)","U"],"":["($)","V"],"":["($)","W"],"":["($)","X"],"":["($)","Y"],"":["($)","Z"],"\x1B":["(%)","A"],"":["(%)","B"],"":["(%)","C"],"":["(%)","D"],"":["(%)","E"],"!":["(/)","A"],'"':["(/)","B"],"#":["(/)","C"],"&":["(/)","F"],"'":["(/)","G"],"(":["(/)","H"],")":["(/)","I"],"*":["(/)","J"],",":["(/)","L"],":":["(/)","Z"],";":["(%)","F"],"<":["(%)","G"],"=":["(%)","H"],">":["(%)","I"],"?":["(%)","J"],"@":["(%)","V"],"[":["(%)","K"],"\\":["(%)","L"],"]":["(%)","M"],"^":["(%)","N"],_:["(%)","O"],"`":["(%)","W"],a:["(+)","A"],b:["(+)","B"],c:["(+)","C"],d:["(+)","D"],e:["(+)","E"],f:["(+)","F"],g:["(+)","G"],h:["(+)","H"],i:["(+)","I"],j:["(+)","J"],k:["(+)","K"],l:["(+)","L"],m:["(+)","M"],n:["(+)","N"],o:["(+)","O"],p:["(+)","P"],q:["(+)","Q"],r:["(+)","R"],s:["(+)","S"],t:["(+)","T"],u:["(+)","U"],v:["(+)","V"],w:["(+)","W"],x:["(+)","X"],y:["(+)","Y"],z:["(+)","Z"],"{":["(%)","P"],"|":["(%)","Q"],"}":["(%)","R"],"~":["(%)","S"],"":["(%)","T"]}})),D=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}})(),s=dt(),f=l(x());function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function o(e,t){if(typeof t!="function"&&t!==null)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}a.default=(function(e){o(t,e);function t(n,r){return c(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n,r))}return d(t,[{key:"valid",value:function(){return/^[0-9A-Z\-. $/+%]+$/.test(this.data)}},{key:"encode",value:function(){var n=this.data.split("").flatMap(function(h){return s.MULTI_SYMBOLS[h]||h}),r=n.map(function(h){return t.getEncoding(h)}).join(""),i=t.checksum(n,20),u=t.checksum(n.concat(i),15);return{text:this.text,data:t.getEncoding("ÿ")+r+t.getEncoding(i)+t.getEncoding(u)+t.getEncoding("ÿ")+"1"}}}],[{key:"getEncoding",value:function(n){return s.BINARIES[t.symbolValue(n)]}},{key:"getSymbol",value:function(n){return s.SYMBOLS[n]}},{key:"symbolValue",value:function(n){return s.SYMBOLS.indexOf(n)}},{key:"checksum",value:function(n,r){var i=n.slice().reverse().reduce(function(u,h,y){var v=y%r+1;return u+t.symbolValue(h)*v},0);return t.getSymbol(i%47)}}]),t})(f.default)})),ht=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}})(),s=f(D());function f(o){return o&&o.__esModule?o:{default:o}}function l(o,e){if(!(o instanceof e))throw TypeError("Cannot call a class as a function")}function c(o,e){if(!o)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:o}function p(o,e){if(typeof e!="function"&&e!==null)throw TypeError("Super expression must either be null or a function, not "+typeof e);o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(o,e):o.__proto__=e)}a.default=(function(o){p(e,o);function e(t,n){return l(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return d(e,[{key:"valid",value:function(){return/^[\x00-\x7f]+$/.test(this.data)}}]),e})(s.default)})),yt=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0}),a.CODE93FullASCII=a.CODE93=void 0;var d=f(D()),s=f(ht());function f(l){return l&&l.__esModule?l:{default:l}}a.CODE93=d.default,a.CODE93FullASCII=s.default})),vt=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0}),a.GenericBarcode=void 0;var d=(function(){function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}})(),s=f(x());function f(o){return o&&o.__esModule?o:{default:o}}function l(o,e){if(!(o instanceof e))throw TypeError("Cannot call a class as a function")}function c(o,e){if(!o)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:o}function p(o,e){if(typeof e!="function"&&e!==null)throw TypeError("Super expression must either be null or a function, not "+typeof e);o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(o,e):o.__proto__=e)}a.GenericBarcode=(function(o){p(e,o);function e(t,n){return l(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return d(e,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),e})(s.default)})),bt=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=V(),s=Q(),f=nt(),l=it(),c=ct(),p=lt(),o=pt(),e=yt(),t=vt();a.default={CODE39:d.CODE39,CODE128:s.CODE128,CODE128A:s.CODE128A,CODE128B:s.CODE128B,CODE128C:s.CODE128C,EAN13:f.EAN13,EAN8:f.EAN8,EAN5:f.EAN5,EAN2:f.EAN2,UPC:f.UPC,UPCE:f.UPCE,ITF14:l.ITF14,ITF:l.ITF,MSI:c.MSI,MSI10:c.MSI10,MSI11:c.MSI11,MSI1010:c.MSI1010,MSI1110:c.MSI1110,pharmacode:p.pharmacode,codabar:o.codabar,CODE93:e.CODE93,CODE93FullASCII:e.CODE93FullASCII,GenericBarcode:t.GenericBarcode}})),L=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=Object.assign||function(s){for(var f=1;f<arguments.length;f++){var l=arguments[f];for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(s[c]=l[c])}return s};a.default=function(s,f){return d({},s,f)}})),_t=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0}),a.default=d;function d(s){var f=[];function l(c){if(Array.isArray(c))for(var p=0;p<c.length;p++)l(c[p]);else c.text=c.text||"",c.data=c.data||"",f.push(c)}return l(s),f}})),gt=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0}),a.default=d;function d(s){return s.marginTop=s.marginTop||s.margin,s.marginBottom=s.marginBottom||s.margin,s.marginRight=s.marginRight||s.margin,s.marginLeft=s.marginLeft||s.margin,s}})),N=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0}),a.default=d;function d(s){var f=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var l in f)f.hasOwnProperty(l)&&(l=f[l],typeof s[l]=="string"&&(s[l]=parseInt(s[l],10)));return typeof s.displayValue=="string"&&(s.displayValue=s.displayValue!="false"),s}})),$=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0}),a.default={width:2,height:100,format:"auto",displayValue:!0,fontOptions:"",font:"monospace",text:void 0,textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0,valid:function(){}}})),Ot=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=f(N()),s=f($());function f(c){return c&&c.__esModule?c:{default:c}}function l(c){var p={};for(var o in s.default)s.default.hasOwnProperty(o)&&(c.hasAttribute("jsbarcode-"+o.toLowerCase())&&(p[o]=c.getAttribute("jsbarcode-"+o.toLowerCase())),c.hasAttribute("data-"+o.toLowerCase())&&(p[o]=c.getAttribute("data-"+o.toLowerCase())));return p.value=c.getAttribute("jsbarcode-value")||c.getAttribute("data-value"),p=(0,d.default)(p),p}a.default=l})),X=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0}),a.getTotalWidthOfEncodings=a.calculateEncodingAttributes=a.getBarcodePadding=a.getEncodingHeight=a.getMaximumHeightOfEncodings=void 0;var d=s(L());function s(t){return t&&t.__esModule?t:{default:t}}function f(t,n){return n.height+(n.displayValue&&t.text.length>0?n.fontSize+n.textMargin:0)+n.marginTop+n.marginBottom}function l(t,n,r){if(r.displayValue&&n<t){if(r.textAlign=="center")return Math.floor((t-n)/2);if(r.textAlign=="left")return 0;if(r.textAlign=="right")return Math.floor(t-n)}return 0}function c(t,n,r){for(var i=0;i<t.length;i++){var u=t[i],h=(0,d.default)(n,u.options),y=h.displayValue?e(u.text,h,r):0,v=u.data.length*h.width;u.width=Math.ceil(Math.max(y,v)),u.height=f(u,h),u.barcodePadding=l(y,v,h)}}function p(t){for(var n=0,r=0;r<t.length;r++)n+=t[r].width;return n}function o(t){for(var n=0,r=0;r<t.length;r++)t[r].height>n&&(n=t[r].height);return n}function e(t,n,r){var i;if(r)i=r;else if(typeof document<"u")i=document.createElement("canvas").getContext("2d");else return 0;i.font=n.fontOptions+" "+n.fontSize+"px "+n.font;var u=i.measureText(t);return u?u.width:0}a.getMaximumHeightOfEncodings=o,a.getEncodingHeight=f,a.getBarcodePadding=l,a.calculateEncodingAttributes=c,a.getTotalWidthOfEncodings=p})),Et=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function p(o,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(o,n.key,n)}}return function(o,e,t){return e&&p(o.prototype,e),t&&p(o,t),o}})(),s=l(L()),f=X();function l(p){return p&&p.__esModule?p:{default:p}}function c(p,o){if(!(p instanceof o))throw TypeError("Cannot call a class as a function")}a.default=(function(){function p(o,e,t){c(this,p),this.canvas=o,this.encodings=e,this.options=t}return d(p,[{key:"render",value:function(){if(!this.canvas.getContext)throw Error("The browser does not support canvas.");this.prepareCanvas();for(var o=0;o<this.encodings.length;o++){var e=(0,s.default)(this.options,this.encodings[o].options);this.drawCanvasBarcode(e,this.encodings[o]),this.drawCanvasText(e,this.encodings[o]),this.moveCanvasDrawing(this.encodings[o])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var o=this.canvas.getContext("2d");o.save(),(0,f.calculateEncodingAttributes)(this.encodings,this.options,o);var e=(0,f.getTotalWidthOfEncodings)(this.encodings),t=(0,f.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=e+this.options.marginLeft+this.options.marginRight,this.canvas.height=t,o.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(o.fillStyle=this.options.background,o.fillRect(0,0,this.canvas.width,this.canvas.height)),o.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(o,e){var t=this.canvas.getContext("2d"),n=e.data,r=o.textPosition=="top"?o.marginTop+o.fontSize+o.textMargin:o.marginTop;t.fillStyle=o.lineColor;for(var i=0;i<n.length;i++){var u=i*o.width+e.barcodePadding;n[i]==="1"?t.fillRect(u,r,o.width,o.height):n[i]&&t.fillRect(u,r,o.width,o.height*n[i])}}},{key:"drawCanvasText",value:function(o,e){var t=this.canvas.getContext("2d"),n=o.fontOptions+" "+o.fontSize+"px "+o.font;if(o.displayValue){var r,i=o.textPosition=="top"?o.marginTop+o.fontSize-o.textMargin:o.height+o.textMargin+o.marginTop+o.fontSize;t.font=n,o.textAlign=="left"||e.barcodePadding>0?(r=0,t.textAlign="left"):o.textAlign=="right"?(r=e.width-1,t.textAlign="right"):(r=e.width/2,t.textAlign="center"),t.fillText(e.text,r,i)}}},{key:"moveCanvasDrawing",value:function(o){this.canvas.getContext("2d").translate(o.width,0)}},{key:"restoreCanvas",value:function(){this.canvas.getContext("2d").restore()}}]),p})()})),mt=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}})(),s=l(L()),f=X();function l(o){return o&&o.__esModule?o:{default:o}}function c(o,e){if(!(o instanceof e))throw TypeError("Cannot call a class as a function")}var p="http://www.w3.org/2000/svg";a.default=(function(){function o(e,t,n){c(this,o),this.svg=e,this.encodings=t,this.options=n,this.document=n.xmlDocument||document}return d(o,[{key:"render",value:function(){var e=this.options.marginLeft;this.prepareSVG();for(var t=0;t<this.encodings.length;t++){var n=this.encodings[t],r=(0,s.default)(this.options,n.options),i=this.createGroup(e,r.marginTop,this.svg);this.setGroupOptions(i,r),this.drawSvgBarcode(i,r,n),this.drawSVGText(i,r,n),e+=n.width}}},{key:"prepareSVG",value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,f.calculateEncodingAttributes)(this.encodings,this.options);var e=(0,f.getTotalWidthOfEncodings)(this.encodings),t=(0,f.getMaximumHeightOfEncodings)(this.encodings),n=e+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(n,t),this.options.background&&this.drawRect(0,0,n,t,this.svg).setAttribute("fill",this.options.background)}},{key:"drawSvgBarcode",value:function(e,t,n){for(var r=n.data,i=t.textPosition=="top"?t.fontSize+t.textMargin:0,u=0,h=0,y=0;y<r.length;y++)h=y*t.width+n.barcodePadding,r[y]==="1"?u++:u>0&&(this.drawRect(h-t.width*u,i,t.width*u,t.height,e),u=0);u>0&&this.drawRect(h-t.width*(u-1),i,t.width*u,t.height,e)}},{key:"drawSVGText",value:function(e,t,n){var r=this.document.createElementNS(p,"text");if(t.displayValue){var i,u;r.setAttribute("font-family",t.font),r.setAttribute("font-size",t.fontSize),t.fontOptions.includes("bold")&&r.setAttribute("font-weight","bold"),t.fontOptions.includes("italic")&&r.setAttribute("font-style","italic"),u=t.textPosition=="top"?t.fontSize-t.textMargin:t.height+t.textMargin+t.fontSize,t.textAlign=="left"||n.barcodePadding>0?(i=0,r.setAttribute("text-anchor","start")):t.textAlign=="right"?(i=n.width-1,r.setAttribute("text-anchor","end")):(i=n.width/2,r.setAttribute("text-anchor","middle")),r.setAttribute("x",i),r.setAttribute("y",u),r.appendChild(this.document.createTextNode(n.text)),e.appendChild(r)}}},{key:"setSvgAttributes",value:function(e,t){var n=this.svg;n.setAttribute("width",e+"px"),n.setAttribute("height",t+"px"),n.setAttribute("x","0px"),n.setAttribute("y","0px"),n.setAttribute("viewBox","0 0 "+e+" "+t),n.setAttribute("xmlns",p),n.setAttribute("version","1.1")}},{key:"createGroup",value:function(e,t,n){var r=this.document.createElementNS(p,"g");return r.setAttribute("transform","translate("+e+", "+t+")"),n.appendChild(r),r}},{key:"setGroupOptions",value:function(e,t){e.setAttribute("fill",t.lineColor)}},{key:"drawRect",value:function(e,t,n,r,i){var u=this.document.createElementNS(p,"rect");return u.setAttribute("x",e),u.setAttribute("y",t),u.setAttribute("width",n),u.setAttribute("height",r),i.appendChild(u),u}}]),o})()})),jt=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function f(l,c){for(var p=0;p<c.length;p++){var o=c[p];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(l,o.key,o)}}return function(l,c,p){return c&&f(l.prototype,c),p&&f(l,p),l}})();function s(f,l){if(!(f instanceof l))throw TypeError("Cannot call a class as a function")}a.default=(function(){function f(l,c,p){s(this,f),this.object=l,this.encodings=c,this.options=p}return d(f,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),f})()})),wt=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=l(Et()),s=l(mt()),f=l(jt());function l(c){return c&&c.__esModule?c:{default:c}}a.default={CanvasRenderer:d.default,SVGRenderer:s.default,ObjectRenderer:f.default}})),H=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});function d(o,e){if(!(o instanceof e))throw TypeError("Cannot call a class as a function")}function s(o,e){if(!o)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:o}function f(o,e){if(typeof e!="function"&&e!==null)throw TypeError("Super expression must either be null or a function, not "+typeof e);o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(o,e):o.__proto__=e)}var l=(function(o){f(e,o);function e(t,n){d(this,e);var r=s(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return r.name="InvalidInputException",r.symbology=t,r.input=n,r.message='"'+r.input+'" is not a valid input for '+r.symbology,r}return e})(Error),c=(function(o){f(e,o);function e(){d(this,e);var t=s(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.name="InvalidElementException",t.message="Not supported type to render on",t}return e})(Error),p=(function(o){f(e,o);function e(){d(this,e);var t=s(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.name="NoElementException",t.message="No element to render on.",t}return e})(Error);a.InvalidInputException=l,a.InvalidElementException=c,a.NoElementException=p})),xt=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=c(Ot()),f=c(wt()),l=H();function c(t){return t&&t.__esModule?t:{default:t}}function p(t){if(typeof t=="string")return o(t);if(Array.isArray(t)){for(var n=[],r=0;r<t.length;r++)n.push(p(t[r]));return n}if(typeof HTMLCanvasElement<"u"&&t instanceof HTMLImageElement)return e(t);if(t&&t.nodeName&&t.nodeName.toLowerCase()==="svg"||typeof SVGElement<"u"&&t instanceof SVGElement)return{element:t,options:(0,s.default)(t),renderer:f.default.SVGRenderer};if(typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement)return{element:t,options:(0,s.default)(t),renderer:f.default.CanvasRenderer};if(t&&t.getContext)return{element:t,renderer:f.default.CanvasRenderer};if(t&&(t===void 0?"undefined":d(t))==="object"&&!t.nodeName)return{element:t,renderer:f.default.ObjectRenderer};throw new l.InvalidElementException}function o(t){var n=document.querySelectorAll(t);if(n.length!==0){for(var r=[],i=0;i<n.length;i++)r.push(p(n[i]));return r}}function e(t){var n=document.createElement("canvas");return{element:n,options:(0,s.default)(t),renderer:f.default.CanvasRenderer,afterRender:function(){t.setAttribute("src",n.toDataURL())}}}a.default=p})),Pt=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function f(l,c){for(var p=0;p<c.length;p++){var o=c[p];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(l,o.key,o)}}return function(l,c,p){return c&&f(l.prototype,c),p&&f(l,p),l}})();function s(f,l){if(!(f instanceof l))throw TypeError("Cannot call a class as a function")}a.default=(function(){function f(l){s(this,f),this.api=l}return d(f,[{key:"handleCatch",value:function(l){if(l.name==="InvalidInputException")if(this.api._options.valid!==this.api._defaults.valid)this.api._options.valid(!1);else throw l.message;else throw l;this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(l){try{var c=l.apply(void 0,arguments);return this.api._options.valid(!0),c}catch(p){return this.handleCatch(p),this.api}}}]),f})()})),St=_.s(((a,d)=>{var s=r(bt()),f=r(L()),l=r(_t()),c=r(gt()),p=r(xt()),o=r(N()),e=r(Pt()),t=H(),n=r($());function r(g){return g&&g.__esModule?g:{default:g}}var i=function(){},u=function(g,m,O){var E=new i;if(g===void 0)throw Error("No element to render on was provided.");return E._renderProperties=(0,p.default)(g),E._encodings=[],E._options=n.default,E._errorHandler=new e.default(E),m!==void 0&&(O||={},O.format||(O.format=b()),E.options(O)[O.format](m,O).render()),E};for(var h in u.getModule=function(g){return s.default[g]},s.default)s.default.hasOwnProperty(h)&&y(s.default,h);function y(g,m){i.prototype[m]=i.prototype[m.toUpperCase()]=i.prototype[m.toLowerCase()]=function(O,E){var w=this;return w._errorHandler.wrapBarcodeCall(function(){E.text=E.text===void 0?void 0:""+E.text;var P=(0,f.default)(w._options,E);P=(0,o.default)(P);var At=g[m],Tt=v(O,At,P);return w._encodings.push(Tt),w})}}function v(g,m,O){g=""+g;var E=new m(g,O);if(!E.valid())throw new t.InvalidInputException(E.constructor.name,g);var w=E.encode();w=(0,l.default)(w);for(var P=0;P<w.length;P++)w[P].options=(0,f.default)(O,w[P].options);return w}function b(){return s.default.CODE128?"CODE128":Object.keys(s.default)[0]}i.prototype.options=function(g){return this._options=(0,f.default)(this._options,g),this},i.prototype.blank=function(g){var m=Array(g+1).join("0");return this._encodings.push({data:m}),this},i.prototype.init=function(){if(this._renderProperties){Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]);var g;for(var m in this._renderProperties){g=this._renderProperties[m];var O=(0,f.default)(this._options,g.options);O.format=="auto"&&(O.format=b()),this._errorHandler.wrapBarcodeCall(function(){var E=O.value,w=s.default[O.format.toUpperCase()],P=v(E,w,O);j(g,P,O)})}}},i.prototype.render=function(){if(!this._renderProperties)throw new t.NoElementException;if(Array.isArray(this._renderProperties))for(var g=0;g<this._renderProperties.length;g++)j(this._renderProperties[g],this._encodings,this._options);else j(this._renderProperties,this._encodings,this._options);return this},i.prototype._defaults=n.default;function j(g,m,O){m=(0,l.default)(m);for(var E=0;E<m.length;E++)m[E].options=(0,f.default)(O,m[E].options),(0,c.default)(m[E].options);(0,c.default)(O);var w=g.renderer;new w(g.element,m,O).render(),g.afterRender&&g.afterRender()}typeof window<"u"&&(window.JsBarcode=u),typeof jQuery<"u"&&(jQuery.fn.JsBarcode=function(g,m){var O=[];return jQuery(this).each(function(){O.push(this)}),u(O,g,m)}),d.exports=u})),Ct=St();z.default=Ct});
|
|
1
|
+
__emailmaker__.define("static/core/9f7f5230.js",["require","exports","module","static/core/5dc34752.js","static/core/e6f6edff.js"],function(k,z,Mt){const Rt=k("./5dc34752.js"),_=k("./e6f6edff.js");var x=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});function d(s,f){if(!(s instanceof f))throw TypeError("Cannot call a class as a function")}a.default=function s(f,l){d(this,s),this.data=f,this.text=l.text||f,this.options=l}})),V=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0}),a.CODE39=void 0;var d=(function(){function y(v,b){for(var j=0;j<b.length;j++){var g=b[j];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(v,g.key,g)}}return function(v,b,j){return b&&y(v.prototype,b),j&&y(v,j),v}})(),s=f(x());function f(y){return y&&y.__esModule?y:{default:y}}function l(y,v){if(!(y instanceof v))throw TypeError("Cannot call a class as a function")}function c(y,v){if(!y)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:y}function p(y,v){if(typeof v!="function"&&v!==null)throw TypeError("Super expression must either be null or a function, not "+typeof v);y.prototype=Object.create(v&&v.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(y,v):y.__proto__=v)}var o=(function(y){p(v,y);function v(b,j){return l(this,v),b=b.toUpperCase(),j.mod43&&(b+=i(h(b))),c(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,b,j))}return d(v,[{key:"encode",value:function(){for(var b=n("*"),j=0;j<this.data.length;j++)b+=n(this.data[j])+"0";return b+=n("*"),{data:b,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)!==-1}}]),v})(s.default),e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%*".split(""),t=[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];function n(y){return r(u(y))}function r(y){return t[y].toString(2)}function i(y){return e[y]}function u(y){return e.indexOf(y)}function h(y){for(var v=0,b=0;b<y.length;b++)v+=u(y[b]);return v%=43,v}a.CODE39=o})),S=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d;function s(t,n,r){return n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}var f=a.SET_A=0,l=a.SET_B=1,c=a.SET_C=2;a.SHIFT=98;var p=a.START_A=103,o=a.START_B=104,e=a.START_C=105;a.MODULO=103,a.STOP=106,a.FNC1=207,a.SET_BY_CODE=(d={},s(d,p,f),s(d,o,l),s(d,e,c),d),a.SWAP={101:f,100:l,99:c},a.A_START_CHAR="Ð",a.B_START_CHAR="Ñ",a.C_START_CHAR="Ò",a.A_CHARS="[\0-_È-Ï]",a.B_CHARS="[ -È-Ï]",a.C_CHARS="(Ï*[0-9]{2}Ï*)",a.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]})),M=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}})(),s=l(x()),f=S();function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function o(e,t){if(typeof t!="function"&&t!==null)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}a.default=(function(e){o(t,e);function t(n,r){c(this,t);var i=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n.substring(1),r));return i.bytes=n.split("").map(function(u){return u.charCodeAt(0)}),i}return d(t,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var n=this.bytes,r=n.shift()-105,i=f.SET_BY_CODE[r];if(i===void 0)throw RangeError("The encoding does not start with a start character.");this.shouldEncodeAsEan128()===!0&&n.unshift(f.FNC1);var u=t.next(n,1,i);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:t.getBar(r)+u.result+t.getBar((u.checksum+r)%f.MODULO)+t.getBar(f.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var n=this.options.ean128||!1;return typeof n=="string"&&(n=n.toLowerCase()==="true"),n}}],[{key:"getBar",value:function(n){return f.BARS[n]?f.BARS[n].toString():""}},{key:"correctIndex",value:function(n,r){if(r===f.SET_A){var i=n.shift();return i<32?i+64:i-32}return r===f.SET_B?n.shift()-32:(n.shift()-48)*10+n.shift()-48}},{key:"next",value:function(n,r,i){if(!n.length)return{result:"",checksum:0};var u=void 0,h=void 0;if(n[0]>=200){h=n.shift()-105;var y=f.SWAP[h];y===void 0?((i===f.SET_A||i===f.SET_B)&&h===f.SHIFT&&(n[0]=i===f.SET_A?n[0]>95?n[0]-96:n[0]:n[0]<32?n[0]+96:n[0]),u=t.next(n,r+1,i)):u=t.next(n,r+1,y)}else h=t.correctIndex(n,i),u=t.next(n,r+1,i);var v=t.getBar(h),b=h*r;return{result:v+u.result,checksum:b+u.checksum}}}]),t})(s.default)})),U=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=S(),s=function(o){return o.match(RegExp("^"+d.A_CHARS+"*"))[0].length},f=function(o){return o.match(RegExp("^"+d.B_CHARS+"*"))[0].length},l=function(o){return o.match(RegExp("^"+d.C_CHARS+"*"))[0]};function c(o,e){var t=e?d.A_CHARS:d.B_CHARS,n=o.match(RegExp("^("+t+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(n)return n[1]+"Ì"+p(o.substring(n[1].length));var r=o.match(RegExp("^"+t+"+"))[0];return r.length===o.length?o:r+String.fromCharCode(e?205:206)+c(o.substring(r.length),!e)}function p(o){var e=l(o),t=e.length;if(t===o.length)return o;o=o.substring(t);var n=s(o)>=f(o);return e+String.fromCharCode(n?206:205)+c(o,n)}a.default=function(o){var e=void 0;if(l(o).length>=2)e=d.C_START_CHAR+p(o);else{var t=s(o)>f(o);e=(t?d.A_START_CHAR:d.B_START_CHAR)+c(o,t)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(n,r){return"Ë"+r})}})),F=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=f(M()),s=f(U());function f(o){return o&&o.__esModule?o:{default:o}}function l(o,e){if(!(o instanceof e))throw TypeError("Cannot call a class as a function")}function c(o,e){if(!o)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:o}function p(o,e){if(typeof e!="function"&&e!==null)throw TypeError("Super expression must either be null or a function, not "+typeof e);o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(o,e):o.__proto__=e)}a.default=(function(o){p(e,o);function e(t,n){if(l(this,e),/^[\x00-\x7F\xC8-\xD3]+$/.test(t))var r=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(0,s.default)(t),n));else var r=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return c(r)}return e})(d.default)})),W=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}})(),s=l(M()),f=S();function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function o(e,t){if(typeof t!="function"&&t!==null)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}a.default=(function(e){o(t,e);function t(n,r){return c(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,f.A_START_CHAR+n,r))}return d(t,[{key:"valid",value:function(){return RegExp("^"+f.A_CHARS+"+$").test(this.data)}}]),t})(s.default)})),Y=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}})(),s=l(M()),f=S();function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function o(e,t){if(typeof t!="function"&&t!==null)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}a.default=(function(e){o(t,e);function t(n,r){return c(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,f.B_START_CHAR+n,r))}return d(t,[{key:"valid",value:function(){return RegExp("^"+f.B_CHARS+"+$").test(this.data)}}]),t})(s.default)})),J=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}})(),s=l(M()),f=S();function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function o(e,t){if(typeof t!="function"&&t!==null)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}a.default=(function(e){o(t,e);function t(n,r){return c(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,f.C_START_CHAR+n,r))}return d(t,[{key:"valid",value:function(){return RegExp("^"+f.C_CHARS+"+$").test(this.data)}}]),t})(s.default)})),Q=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0}),a.CODE128C=a.CODE128B=a.CODE128A=a.CODE128=void 0;var d=c(F()),s=c(W()),f=c(Y()),l=c(J());function c(p){return p&&p.__esModule?p:{default:p}}a.CODE128=d.default,a.CODE128A=s.default,a.CODE128B=f.default,a.CODE128C=l.default})),C=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0}),a.SIDE_BIN="101",a.MIDDLE_BIN="01010",a.BINARIES={L:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],O:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],E:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"]},a.EAN2_STRUCTURE=["LL","LG","GL","GG"],a.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],a.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"]})),A=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=C();a.default=function(s,f,l){var c=s.split("").map(function(o,e){return d.BINARIES[f[e]]}).map(function(o,e){return o?o[s[e]]:""});if(l){var p=s.length-1;c=c.map(function(o,e){return e<p?o+l:o})}return c.join("")}})),I=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function t(n,r){for(var i=0;i<r.length;i++){var u=r[i];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(n,u.key,u)}}return function(n,r,i){return r&&t(n.prototype,r),i&&t(n,i),n}})(),s=C(),f=c(A()),l=c(x());function c(t){return t&&t.__esModule?t:{default:t}}function p(t,n){if(!(t instanceof n))throw TypeError("Cannot call a class as a function")}function o(t,n){if(!t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:t}function e(t,n){if(typeof n!="function"&&n!==null)throw TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}a.default=(function(t){e(n,t);function n(r,i){p(this,n);var u=o(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,r,i));return u.fontSize=!i.flat&&i.fontSize>i.width*10?i.width*10:i.fontSize,u.guardHeight=i.height+u.fontSize/2+i.textMargin,u}return d(n,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(r,i){return this.text.substr(r,i)}},{key:"leftEncode",value:function(r,i){return(0,f.default)(r,i)}},{key:"rightText",value:function(r,i){return this.text.substr(r,i)}},{key:"rightEncode",value:function(r,i){return(0,f.default)(r,i)}},{key:"encodeGuarded",value:function(){var r={fontSize:this.fontSize},i={height:this.guardHeight};return[{data:s.SIDE_BIN,options:i},{data:this.leftEncode(),text:this.leftText(),options:r},{data:s.MIDDLE_BIN,options:i},{data:this.rightEncode(),text:this.rightText(),options:r},{data:s.SIDE_BIN,options:i}]}},{key:"encodeFlat",value:function(){return{data:[s.SIDE_BIN,this.leftEncode(),s.MIDDLE_BIN,this.rightEncode(),s.SIDE_BIN].join(""),text:this.text}}}]),n})(l.default)})),Z=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function n(r,i){for(var u=0;u<i.length;u++){var h=i[u];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(r,h.key,h)}}return function(r,i,u){return i&&n(r.prototype,i),u&&n(r,u),r}})(),s=function n(r,i,u){r===null&&(r=Function.prototype);var h=Object.getOwnPropertyDescriptor(r,i);if(h===void 0){var y=Object.getPrototypeOf(r);return y===null?void 0:n(y,i,u)}if("value"in h)return h.value;var v=h.get;return v===void 0?void 0:v.call(u)},f=C(),l=c(I());function c(n){return n&&n.__esModule?n:{default:n}}function p(n,r){if(!(n instanceof r))throw TypeError("Cannot call a class as a function")}function o(n,r){if(!n)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:n}function e(n,r){if(typeof r!="function"&&r!==null)throw TypeError("Super expression must either be null or a function, not "+typeof r);n.prototype=Object.create(r&&r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(n,r):n.__proto__=r)}var t=function(n){return(10-n.substr(0,12).split("").map(function(r){return+r}).reduce(function(r,i,u){return u%2?r+i*3:r+i},0)%10)%10};a.default=(function(n){e(r,n);function r(i,u){p(this,r),i.search(/^[0-9]{12}$/)!==-1&&(i+=t(i));var h=o(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,i,u));return h.lastChar=u.lastChar,h}return d(r,[{key:"valid",value:function(){return this.data.search(/^[0-9]{13}$/)!==-1&&+this.data[12]===t(this.data)}},{key:"leftText",value:function(){return s(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var i=this.data.substr(1,6),u=f.EAN13_STRUCTURE[this.data[0]];return s(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"leftEncode",this).call(this,i,u)}},{key:"rightText",value:function(){return s(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var i=this.data.substr(7,6);return s(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"rightEncode",this).call(this,i,"RRRRRR")}},{key:"encodeGuarded",value:function(){var i=s(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(i.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(i.push({data:"00"}),i.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),i}}]),r})(l.default)})),K=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function t(n,r){for(var i=0;i<r.length;i++){var u=r[i];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(n,u.key,u)}}return function(n,r,i){return r&&t(n.prototype,r),i&&t(n,i),n}})(),s=function t(n,r,i){n===null&&(n=Function.prototype);var u=Object.getOwnPropertyDescriptor(n,r);if(u===void 0){var h=Object.getPrototypeOf(n);return h===null?void 0:t(h,r,i)}if("value"in u)return u.value;var y=u.get;return y===void 0?void 0:y.call(i)},f=l(I());function l(t){return t&&t.__esModule?t:{default:t}}function c(t,n){if(!(t instanceof n))throw TypeError("Cannot call a class as a function")}function p(t,n){if(!t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:t}function o(t,n){if(typeof n!="function"&&n!==null)throw TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}var e=function(t){return(10-t.substr(0,7).split("").map(function(n){return+n}).reduce(function(n,r,i){return i%2?n+r:n+r*3},0)%10)%10};a.default=(function(t){o(n,t);function n(r,i){return c(this,n),r.search(/^[0-9]{7}$/)!==-1&&(r+=e(r)),p(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,r,i))}return d(n,[{key:"valid",value:function(){return this.data.search(/^[0-9]{8}$/)!==-1&&+this.data[7]===e(this.data)}},{key:"leftText",value:function(){return s(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var r=this.data.substr(0,4);return s(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"leftEncode",this).call(this,r,"LLLL")}},{key:"rightText",value:function(){return s(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var r=this.data.substr(4,4);return s(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"rightEncode",this).call(this,r,"RRRR")}}]),n})(f.default)})),q=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function n(r,i){for(var u=0;u<i.length;u++){var h=i[u];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(r,h.key,h)}}return function(r,i,u){return i&&n(r.prototype,i),u&&n(r,u),r}})(),s=C(),f=c(A()),l=c(x());function c(n){return n&&n.__esModule?n:{default:n}}function p(n,r){if(!(n instanceof r))throw TypeError("Cannot call a class as a function")}function o(n,r){if(!n)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:n}function e(n,r){if(typeof r!="function"&&r!==null)throw TypeError("Super expression must either be null or a function, not "+typeof r);n.prototype=Object.create(r&&r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(n,r):n.__proto__=r)}var t=function(n){return n.split("").map(function(r){return+r}).reduce(function(r,i,u){return u%2?r+i*9:r+i*3},0)%10};a.default=(function(n){e(r,n);function r(i,u){return p(this,r),o(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,i,u))}return d(r,[{key:"valid",value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:"encode",value:function(){var i=s.EAN5_STRUCTURE[t(this.data)];return{data:"1011"+(0,f.default)(this.data,i,"01"),text:this.text}}}]),r})(l.default)})),tt=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function t(n,r){for(var i=0;i<r.length;i++){var u=r[i];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(n,u.key,u)}}return function(n,r,i){return r&&t(n.prototype,r),i&&t(n,i),n}})(),s=C(),f=c(A()),l=c(x());function c(t){return t&&t.__esModule?t:{default:t}}function p(t,n){if(!(t instanceof n))throw TypeError("Cannot call a class as a function")}function o(t,n){if(!t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:t}function e(t,n){if(typeof n!="function"&&n!==null)throw TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}a.default=(function(t){e(n,t);function n(r,i){return p(this,n),o(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,r,i))}return d(n,[{key:"valid",value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:"encode",value:function(){var r=s.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,f.default)(this.data,r,"01"),text:this.text}}}]),n})(l.default)})),B=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function n(r,i){for(var u=0;u<i.length;u++){var h=i[u];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(r,h.key,h)}}return function(r,i,u){return i&&n(r.prototype,i),u&&n(r,u),r}})();a.checksum=t;var s=l(A()),f=l(x());function l(n){return n&&n.__esModule?n:{default:n}}function c(n,r){if(!(n instanceof r))throw TypeError("Cannot call a class as a function")}function p(n,r){if(!n)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:n}function o(n,r){if(typeof r!="function"&&r!==null)throw TypeError("Super expression must either be null or a function, not "+typeof r);n.prototype=Object.create(r&&r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(n,r):n.__proto__=r)}var e=(function(n){o(r,n);function r(i,u){c(this,r),i.search(/^[0-9]{11}$/)!==-1&&(i+=t(i));var h=p(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,i,u));return h.displayValue=u.displayValue,h.fontSize=u.fontSize>u.width*10?u.width*10:u.fontSize,h.guardHeight=u.height+h.fontSize/2+u.textMargin,h}return d(r,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==t(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var i="";return i+="101",i+=(0,s.default)(this.data.substr(0,6),"LLLLLL"),i+="01010",i+=(0,s.default)(this.data.substr(6,6),"RRRRRR"),i+="101",{data:i,text:this.text}}},{key:"guardedEncoding",value:function(){var i=[];return this.displayValue&&i.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),i.push({data:"101"+(0,s.default)(this.data[0],"L"),options:{height:this.guardHeight}}),i.push({data:(0,s.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),i.push({data:"01010",options:{height:this.guardHeight}}),i.push({data:(0,s.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),i.push({data:(0,s.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&i.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),i}}]),r})(f.default);function t(n){for(var r=0,i=1;i<11;i+=2)r+=parseInt(n[i]);for(i=0;i<11;i+=2)r+=parseInt(n[i])*3;return(10-r%10)%10}a.default=e})),et=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function u(h,y){for(var v=0;v<y.length;v++){var b=y[v];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(h,b.key,b)}}return function(h,y,v){return y&&u(h.prototype,y),v&&u(h,v),h}})(),s=c(A()),f=c(x()),l=B();function c(u){return u&&u.__esModule?u:{default:u}}function p(u,h){if(!(u instanceof h))throw TypeError("Cannot call a class as a function")}function o(u,h){if(!u)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:u}function e(u,h){if(typeof h!="function"&&h!==null)throw TypeError("Super expression must either be null or a function, not "+typeof h);u.prototype=Object.create(h&&h.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(u,h):u.__proto__=h)}var t=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],n=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],r=(function(u){e(h,u);function h(y,v){p(this,h);var b=o(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,y,v));if(b.isValid=!1,y.search(/^[0-9]{6}$/)!==-1)b.middleDigits=y,b.upcA=i(y,"0"),b.text=v.text||""+b.upcA[0]+y+b.upcA[b.upcA.length-1],b.isValid=!0;else if(y.search(/^[01][0-9]{7}$/)!==-1)if(b.middleDigits=y.substring(1,y.length-1),b.upcA=i(b.middleDigits,y[0]),b.upcA[b.upcA.length-1]===y[y.length-1])b.isValid=!0;else return o(b);else return o(b);return b.displayValue=v.displayValue,b.fontSize=v.fontSize>v.width*10?v.width*10:v.fontSize,b.guardHeight=v.height+b.fontSize/2+v.textMargin,b}return d(h,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var y="";return y+="101",y+=this.encodeMiddleDigits(),y+="010101",{data:y,text:this.text}}},{key:"guardedEncoding",value:function(){var y=[];return this.displayValue&&y.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),y.push({data:"101",options:{height:this.guardHeight}}),y.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),y.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&y.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),y}},{key:"encodeMiddleDigits",value:function(){var y=this.upcA[0],v=this.upcA[this.upcA.length-1],b=n[parseInt(v)][parseInt(y)];return(0,s.default)(this.middleDigits,b)}}]),h})(f.default);function i(u,h){for(var y=t[parseInt(u[u.length-1])],v="",b=0,j=0;j<y.length;j++){var g=y[j];v+=g==="X"?u[b++]:g}return v=""+h+v,""+v+(0,l.checksum)(v)}a.default=r})),nt=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0}),a.UPCE=a.UPC=a.EAN2=a.EAN5=a.EAN8=a.EAN13=void 0;var d=o(Z()),s=o(K()),f=o(q()),l=o(tt()),c=o(B()),p=o(et());function o(e){return e&&e.__esModule?e:{default:e}}a.EAN13=d.default,a.EAN8=s.default,a.EAN5=f.default,a.EAN2=l.default,a.UPC=c.default,a.UPCE=p.default})),rt=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0}),a.START_BIN="1010",a.END_BIN="11101",a.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"]})),G=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}})(),s=rt(),f=l(x());function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function o(e,t){if(typeof t!="function"&&t!==null)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}a.default=(function(e){o(t,e);function t(){return c(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,[{key:"valid",value:function(){return this.data.search(/^([0-9]{2})+$/)!==-1}},{key:"encode",value:function(){var n=this,r=this.data.match(/.{2}/g).map(function(i){return n.encodePair(i)}).join("");return{data:s.START_BIN+r+s.END_BIN,text:this.text}}},{key:"encodePair",value:function(n){var r=s.BINARIES[n[1]];return s.BINARIES[n[0]].split("").map(function(i,u){return(i==="1"?"111":"1")+(r[u]==="1"?"000":"0")}).join("")}}]),t})(f.default)})),ot=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}})(),s=f(G());function f(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function p(e,t){if(typeof t!="function"&&t!==null)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=function(e){var t=e.substr(0,13).split("").map(function(n){return parseInt(n,10)}).reduce(function(n,r,i){return n+r*(3-i%2*2)},0);return Math.ceil(t/10)*10-t};a.default=(function(e){p(t,e);function t(n,r){return l(this,t),n.search(/^[0-9]{13}$/)!==-1&&(n+=o(n)),c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n,r))}return d(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===o(this.data)}}]),t})(s.default)})),it=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ITF14=a.ITF=void 0;var d=f(G()),s=f(ot());function f(l){return l&&l.__esModule?l:{default:l}}a.ITF=d.default,a.ITF14=s.default})),T=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function t(n,r){for(var i=0;i<r.length;i++){var u=r[i];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(n,u.key,u)}}return function(n,r,i){return r&&t(n.prototype,r),i&&t(n,i),n}})(),s=f(x());function f(t){return t&&t.__esModule?t:{default:t}}function l(t,n){if(!(t instanceof n))throw TypeError("Cannot call a class as a function")}function c(t,n){if(!t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:t}function p(t,n){if(typeof n!="function"&&n!==null)throw TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}var o=(function(t){p(n,t);function n(r,i){return l(this,n),c(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,r,i))}return d(n,[{key:"encode",value:function(){for(var r="110",i=0;i<this.data.length;i++){var u=parseInt(this.data[i]).toString(2);u=e(u,4-u.length);for(var h=0;h<u.length;h++)r+=u[h]=="0"?"100":"110"}return r+="1001",{data:r,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9]+$/)!==-1}}]),n})(s.default);function e(t,n){for(var r=0;r<n;r++)t="0"+t;return t}a.default=o})),R=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0}),a.mod10=d,a.mod11=s;function d(f){for(var l=0,c=0;c<f.length;c++){var p=parseInt(f[c]);(c+f.length)%2==0?l+=p:l+=p*2%10+Math.floor(p*2/10)}return(10-l%10)%10}function s(f){for(var l=0,c=[2,3,4,5,6,7],p=0;p<f.length;p++){var o=parseInt(f[f.length-1-p]);l+=c[p%c.length]*o}return(11-l%11)%11}})),at=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=f(T()),s=R();function f(o){return o&&o.__esModule?o:{default:o}}function l(o,e){if(!(o instanceof e))throw TypeError("Cannot call a class as a function")}function c(o,e){if(!o)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:o}function p(o,e){if(typeof e!="function"&&e!==null)throw TypeError("Super expression must either be null or a function, not "+typeof e);o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(o,e):o.__proto__=e)}a.default=(function(o){p(e,o);function e(t,n){return l(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t+(0,s.mod10)(t),n))}return e})(d.default)})),ut=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=f(T()),s=R();function f(o){return o&&o.__esModule?o:{default:o}}function l(o,e){if(!(o instanceof e))throw TypeError("Cannot call a class as a function")}function c(o,e){if(!o)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:o}function p(o,e){if(typeof e!="function"&&e!==null)throw TypeError("Super expression must either be null or a function, not "+typeof e);o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(o,e):o.__proto__=e)}a.default=(function(o){p(e,o);function e(t,n){return l(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t+(0,s.mod11)(t),n))}return e})(d.default)})),ft=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=f(T()),s=R();function f(o){return o&&o.__esModule?o:{default:o}}function l(o,e){if(!(o instanceof e))throw TypeError("Cannot call a class as a function")}function c(o,e){if(!o)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:o}function p(o,e){if(typeof e!="function"&&e!==null)throw TypeError("Super expression must either be null or a function, not "+typeof e);o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(o,e):o.__proto__=e)}a.default=(function(o){p(e,o);function e(t,n){return l(this,e),t+=(0,s.mod10)(t),t+=(0,s.mod10)(t),c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return e})(d.default)})),st=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=f(T()),s=R();function f(o){return o&&o.__esModule?o:{default:o}}function l(o,e){if(!(o instanceof e))throw TypeError("Cannot call a class as a function")}function c(o,e){if(!o)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:o}function p(o,e){if(typeof e!="function"&&e!==null)throw TypeError("Super expression must either be null or a function, not "+typeof e);o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(o,e):o.__proto__=e)}a.default=(function(o){p(e,o);function e(t,n){return l(this,e),t+=(0,s.mod11)(t),t+=(0,s.mod10)(t),c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return e})(d.default)})),ct=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0}),a.MSI1110=a.MSI1010=a.MSI11=a.MSI10=a.MSI=void 0;var d=p(T()),s=p(at()),f=p(ut()),l=p(ft()),c=p(st());function p(o){return o&&o.__esModule?o:{default:o}}a.MSI=d.default,a.MSI10=s.default,a.MSI11=f.default,a.MSI1010=l.default,a.MSI1110=c.default})),lt=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0}),a.pharmacode=void 0;var d=(function(){function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}})(),s=f(x());function f(o){return o&&o.__esModule?o:{default:o}}function l(o,e){if(!(o instanceof e))throw TypeError("Cannot call a class as a function")}function c(o,e){if(!o)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:o}function p(o,e){if(typeof e!="function"&&e!==null)throw TypeError("Super expression must either be null or a function, not "+typeof e);o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(o,e):o.__proto__=e)}a.pharmacode=(function(o){p(e,o);function e(t,n){l(this,e);var r=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.number=parseInt(t,10),r}return d(e,[{key:"encode",value:function(){for(var t=this.number,n="";!isNaN(t)&&t!=0;)t%2==0?(n="11100"+n,t=(t-2)/2):(n="100"+n,t=(t-1)/2);return n=n.slice(0,-2),{data:n,text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),e})(s.default)})),pt=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0}),a.codabar=void 0;var d=(function(){function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}})(),s=f(x());function f(o){return o&&o.__esModule?o:{default:o}}function l(o,e){if(!(o instanceof e))throw TypeError("Cannot call a class as a function")}function c(o,e){if(!o)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:o}function p(o,e){if(typeof e!="function"&&e!==null)throw TypeError("Super expression must either be null or a function, not "+typeof e);o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(o,e):o.__proto__=e)}a.codabar=(function(o){p(e,o);function e(t,n){l(this,e),t.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(t="A"+t+"A");var r=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t.toUpperCase(),n));return r.text=r.options.text||r.text.replace(/[A-D]/g,""),r}return d(e,[{key:"valid",value:function(){return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)!==-1}},{key:"encode",value:function(){for(var t=[],n=this.getEncodings(),r=0;r<this.data.length;r++)t.push(n[this.data.charAt(r)]),r!==this.data.length-1&&t.push("0");return{text:this.text,data:t.join("")}}},{key:"getEncodings",value:function(){return{0:"101010011",1:"101011001",2:"101001011",3:"110010101",4:"101101001",5:"110101001",6:"100101011",7:"100101101",8:"100110101",9:"110100101","-":"101001101",$:"101100101",":":"1101011011","/":"1101101011",".":"1101101101","+":"1011011011",A:"1011001001",B:"1001001011",C:"1010010011",D:"1010011001"}}}]),e})(s.default)})),dt=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0}),a.SYMBOLS="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,-,., ,$,/,+,%,($),(%),(/),(+),ÿ".split(","),a.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".split("."),a.MULTI_SYMBOLS={"\0":["(%)","U"],"":["($)","A"],"":["($)","B"],"":["($)","C"],"":["($)","D"],"":["($)","E"],"":["($)","F"],"\x07":["($)","G"],"\b":["($)","H"]," ":["($)","I"],"\n":["($)","J"],"\v":["($)","K"],"\f":["($)","L"],"\r":["($)","M"],"":["($)","N"],"":["($)","O"],"":["($)","P"],"":["($)","Q"],"":["($)","R"],"":["($)","S"],"":["($)","T"],"":["($)","U"],"":["($)","V"],"":["($)","W"],"":["($)","X"],"":["($)","Y"],"":["($)","Z"],"\x1B":["(%)","A"],"":["(%)","B"],"":["(%)","C"],"":["(%)","D"],"":["(%)","E"],"!":["(/)","A"],'"':["(/)","B"],"#":["(/)","C"],"&":["(/)","F"],"'":["(/)","G"],"(":["(/)","H"],")":["(/)","I"],"*":["(/)","J"],",":["(/)","L"],":":["(/)","Z"],";":["(%)","F"],"<":["(%)","G"],"=":["(%)","H"],">":["(%)","I"],"?":["(%)","J"],"@":["(%)","V"],"[":["(%)","K"],"\\":["(%)","L"],"]":["(%)","M"],"^":["(%)","N"],_:["(%)","O"],"`":["(%)","W"],a:["(+)","A"],b:["(+)","B"],c:["(+)","C"],d:["(+)","D"],e:["(+)","E"],f:["(+)","F"],g:["(+)","G"],h:["(+)","H"],i:["(+)","I"],j:["(+)","J"],k:["(+)","K"],l:["(+)","L"],m:["(+)","M"],n:["(+)","N"],o:["(+)","O"],p:["(+)","P"],q:["(+)","Q"],r:["(+)","R"],s:["(+)","S"],t:["(+)","T"],u:["(+)","U"],v:["(+)","V"],w:["(+)","W"],x:["(+)","X"],y:["(+)","Y"],z:["(+)","Z"],"{":["(%)","P"],"|":["(%)","Q"],"}":["(%)","R"],"~":["(%)","S"],"":["(%)","T"]}})),D=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}})(),s=dt(),f=l(x());function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function o(e,t){if(typeof t!="function"&&t!==null)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}a.default=(function(e){o(t,e);function t(n,r){return c(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n,r))}return d(t,[{key:"valid",value:function(){return/^[0-9A-Z\-. $/+%]+$/.test(this.data)}},{key:"encode",value:function(){var n=this.data.split("").flatMap(function(h){return s.MULTI_SYMBOLS[h]||h}),r=n.map(function(h){return t.getEncoding(h)}).join(""),i=t.checksum(n,20),u=t.checksum(n.concat(i),15);return{text:this.text,data:t.getEncoding("ÿ")+r+t.getEncoding(i)+t.getEncoding(u)+t.getEncoding("ÿ")+"1"}}}],[{key:"getEncoding",value:function(n){return s.BINARIES[t.symbolValue(n)]}},{key:"getSymbol",value:function(n){return s.SYMBOLS[n]}},{key:"symbolValue",value:function(n){return s.SYMBOLS.indexOf(n)}},{key:"checksum",value:function(n,r){var i=n.slice().reverse().reduce(function(u,h,y){var v=y%r+1;return u+t.symbolValue(h)*v},0);return t.getSymbol(i%47)}}]),t})(f.default)})),ht=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}})(),s=f(D());function f(o){return o&&o.__esModule?o:{default:o}}function l(o,e){if(!(o instanceof e))throw TypeError("Cannot call a class as a function")}function c(o,e){if(!o)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:o}function p(o,e){if(typeof e!="function"&&e!==null)throw TypeError("Super expression must either be null or a function, not "+typeof e);o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(o,e):o.__proto__=e)}a.default=(function(o){p(e,o);function e(t,n){return l(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return d(e,[{key:"valid",value:function(){return/^[\x00-\x7f]+$/.test(this.data)}}]),e})(s.default)})),yt=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0}),a.CODE93FullASCII=a.CODE93=void 0;var d=f(D()),s=f(ht());function f(l){return l&&l.__esModule?l:{default:l}}a.CODE93=d.default,a.CODE93FullASCII=s.default})),vt=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0}),a.GenericBarcode=void 0;var d=(function(){function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}})(),s=f(x());function f(o){return o&&o.__esModule?o:{default:o}}function l(o,e){if(!(o instanceof e))throw TypeError("Cannot call a class as a function")}function c(o,e){if(!o)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:o}function p(o,e){if(typeof e!="function"&&e!==null)throw TypeError("Super expression must either be null or a function, not "+typeof e);o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(o,e):o.__proto__=e)}a.GenericBarcode=(function(o){p(e,o);function e(t,n){return l(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return d(e,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),e})(s.default)})),bt=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=V(),s=Q(),f=nt(),l=it(),c=ct(),p=lt(),o=pt(),e=yt(),t=vt();a.default={CODE39:d.CODE39,CODE128:s.CODE128,CODE128A:s.CODE128A,CODE128B:s.CODE128B,CODE128C:s.CODE128C,EAN13:f.EAN13,EAN8:f.EAN8,EAN5:f.EAN5,EAN2:f.EAN2,UPC:f.UPC,UPCE:f.UPCE,ITF14:l.ITF14,ITF:l.ITF,MSI:c.MSI,MSI10:c.MSI10,MSI11:c.MSI11,MSI1010:c.MSI1010,MSI1110:c.MSI1110,pharmacode:p.pharmacode,codabar:o.codabar,CODE93:e.CODE93,CODE93FullASCII:e.CODE93FullASCII,GenericBarcode:t.GenericBarcode}})),L=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=Object.assign||function(s){for(var f=1;f<arguments.length;f++){var l=arguments[f];for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(s[c]=l[c])}return s};a.default=function(s,f){return d({},s,f)}})),_t=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0}),a.default=d;function d(s){var f=[];function l(c){if(Array.isArray(c))for(var p=0;p<c.length;p++)l(c[p]);else c.text=c.text||"",c.data=c.data||"",f.push(c)}return l(s),f}})),gt=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0}),a.default=d;function d(s){return s.marginTop=s.marginTop||s.margin,s.marginBottom=s.marginBottom||s.margin,s.marginRight=s.marginRight||s.margin,s.marginLeft=s.marginLeft||s.margin,s}})),N=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0}),a.default=d;function d(s){var f=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var l in f)f.hasOwnProperty(l)&&(l=f[l],typeof s[l]=="string"&&(s[l]=parseInt(s[l],10)));return typeof s.displayValue=="string"&&(s.displayValue=s.displayValue!="false"),s}})),$=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0}),a.default={width:2,height:100,format:"auto",displayValue:!0,fontOptions:"",font:"monospace",text:void 0,textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0,valid:function(){}}})),Ot=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=f(N()),s=f($());function f(c){return c&&c.__esModule?c:{default:c}}function l(c){var p={};for(var o in s.default)s.default.hasOwnProperty(o)&&(c.hasAttribute("jsbarcode-"+o.toLowerCase())&&(p[o]=c.getAttribute("jsbarcode-"+o.toLowerCase())),c.hasAttribute("data-"+o.toLowerCase())&&(p[o]=c.getAttribute("data-"+o.toLowerCase())));return p.value=c.getAttribute("jsbarcode-value")||c.getAttribute("data-value"),p=(0,d.default)(p),p}a.default=l})),X=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0}),a.getTotalWidthOfEncodings=a.calculateEncodingAttributes=a.getBarcodePadding=a.getEncodingHeight=a.getMaximumHeightOfEncodings=void 0;var d=s(L());function s(t){return t&&t.__esModule?t:{default:t}}function f(t,n){return n.height+(n.displayValue&&t.text.length>0?n.fontSize+n.textMargin:0)+n.marginTop+n.marginBottom}function l(t,n,r){if(r.displayValue&&n<t){if(r.textAlign=="center")return Math.floor((t-n)/2);if(r.textAlign=="left")return 0;if(r.textAlign=="right")return Math.floor(t-n)}return 0}function c(t,n,r){for(var i=0;i<t.length;i++){var u=t[i],h=(0,d.default)(n,u.options),y=h.displayValue?e(u.text,h,r):0,v=u.data.length*h.width;u.width=Math.ceil(Math.max(y,v)),u.height=f(u,h),u.barcodePadding=l(y,v,h)}}function p(t){for(var n=0,r=0;r<t.length;r++)n+=t[r].width;return n}function o(t){for(var n=0,r=0;r<t.length;r++)t[r].height>n&&(n=t[r].height);return n}function e(t,n,r){var i;if(r)i=r;else if(typeof document<"u")i=document.createElement("canvas").getContext("2d");else return 0;i.font=n.fontOptions+" "+n.fontSize+"px "+n.font;var u=i.measureText(t);return u?u.width:0}a.getMaximumHeightOfEncodings=o,a.getEncodingHeight=f,a.getBarcodePadding=l,a.calculateEncodingAttributes=c,a.getTotalWidthOfEncodings=p})),Et=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function p(o,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(o,n.key,n)}}return function(o,e,t){return e&&p(o.prototype,e),t&&p(o,t),o}})(),s=l(L()),f=X();function l(p){return p&&p.__esModule?p:{default:p}}function c(p,o){if(!(p instanceof o))throw TypeError("Cannot call a class as a function")}a.default=(function(){function p(o,e,t){c(this,p),this.canvas=o,this.encodings=e,this.options=t}return d(p,[{key:"render",value:function(){if(!this.canvas.getContext)throw Error("The browser does not support canvas.");this.prepareCanvas();for(var o=0;o<this.encodings.length;o++){var e=(0,s.default)(this.options,this.encodings[o].options);this.drawCanvasBarcode(e,this.encodings[o]),this.drawCanvasText(e,this.encodings[o]),this.moveCanvasDrawing(this.encodings[o])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var o=this.canvas.getContext("2d");o.save(),(0,f.calculateEncodingAttributes)(this.encodings,this.options,o);var e=(0,f.getTotalWidthOfEncodings)(this.encodings),t=(0,f.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=e+this.options.marginLeft+this.options.marginRight,this.canvas.height=t,o.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(o.fillStyle=this.options.background,o.fillRect(0,0,this.canvas.width,this.canvas.height)),o.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(o,e){var t=this.canvas.getContext("2d"),n=e.data,r=o.textPosition=="top"?o.marginTop+o.fontSize+o.textMargin:o.marginTop;t.fillStyle=o.lineColor;for(var i=0;i<n.length;i++){var u=i*o.width+e.barcodePadding;n[i]==="1"?t.fillRect(u,r,o.width,o.height):n[i]&&t.fillRect(u,r,o.width,o.height*n[i])}}},{key:"drawCanvasText",value:function(o,e){var t=this.canvas.getContext("2d"),n=o.fontOptions+" "+o.fontSize+"px "+o.font;if(o.displayValue){var r,i=o.textPosition=="top"?o.marginTop+o.fontSize-o.textMargin:o.height+o.textMargin+o.marginTop+o.fontSize;t.font=n,o.textAlign=="left"||e.barcodePadding>0?(r=0,t.textAlign="left"):o.textAlign=="right"?(r=e.width-1,t.textAlign="right"):(r=e.width/2,t.textAlign="center"),t.fillText(e.text,r,i)}}},{key:"moveCanvasDrawing",value:function(o){this.canvas.getContext("2d").translate(o.width,0)}},{key:"restoreCanvas",value:function(){this.canvas.getContext("2d").restore()}}]),p})()})),mt=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}})(),s=l(L()),f=X();function l(o){return o&&o.__esModule?o:{default:o}}function c(o,e){if(!(o instanceof e))throw TypeError("Cannot call a class as a function")}var p="http://www.w3.org/2000/svg";a.default=(function(){function o(e,t,n){c(this,o),this.svg=e,this.encodings=t,this.options=n,this.document=n.xmlDocument||document}return d(o,[{key:"render",value:function(){var e=this.options.marginLeft;this.prepareSVG();for(var t=0;t<this.encodings.length;t++){var n=this.encodings[t],r=(0,s.default)(this.options,n.options),i=this.createGroup(e,r.marginTop,this.svg);this.setGroupOptions(i,r),this.drawSvgBarcode(i,r,n),this.drawSVGText(i,r,n),e+=n.width}}},{key:"prepareSVG",value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,f.calculateEncodingAttributes)(this.encodings,this.options);var e=(0,f.getTotalWidthOfEncodings)(this.encodings),t=(0,f.getMaximumHeightOfEncodings)(this.encodings),n=e+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(n,t),this.options.background&&this.drawRect(0,0,n,t,this.svg).setAttribute("fill",this.options.background)}},{key:"drawSvgBarcode",value:function(e,t,n){for(var r=n.data,i=t.textPosition=="top"?t.fontSize+t.textMargin:0,u=0,h=0,y=0;y<r.length;y++)h=y*t.width+n.barcodePadding,r[y]==="1"?u++:u>0&&(this.drawRect(h-t.width*u,i,t.width*u,t.height,e),u=0);u>0&&this.drawRect(h-t.width*(u-1),i,t.width*u,t.height,e)}},{key:"drawSVGText",value:function(e,t,n){var r=this.document.createElementNS(p,"text");if(t.displayValue){var i,u;r.setAttribute("font-family",t.font),r.setAttribute("font-size",t.fontSize),t.fontOptions.includes("bold")&&r.setAttribute("font-weight","bold"),t.fontOptions.includes("italic")&&r.setAttribute("font-style","italic"),u=t.textPosition=="top"?t.fontSize-t.textMargin:t.height+t.textMargin+t.fontSize,t.textAlign=="left"||n.barcodePadding>0?(i=0,r.setAttribute("text-anchor","start")):t.textAlign=="right"?(i=n.width-1,r.setAttribute("text-anchor","end")):(i=n.width/2,r.setAttribute("text-anchor","middle")),r.setAttribute("x",i),r.setAttribute("y",u),r.appendChild(this.document.createTextNode(n.text)),e.appendChild(r)}}},{key:"setSvgAttributes",value:function(e,t){var n=this.svg;n.setAttribute("width",e+"px"),n.setAttribute("height",t+"px"),n.setAttribute("x","0px"),n.setAttribute("y","0px"),n.setAttribute("viewBox","0 0 "+e+" "+t),n.setAttribute("xmlns",p),n.setAttribute("version","1.1")}},{key:"createGroup",value:function(e,t,n){var r=this.document.createElementNS(p,"g");return r.setAttribute("transform","translate("+e+", "+t+")"),n.appendChild(r),r}},{key:"setGroupOptions",value:function(e,t){e.setAttribute("fill",t.lineColor)}},{key:"drawRect",value:function(e,t,n,r,i){var u=this.document.createElementNS(p,"rect");return u.setAttribute("x",e),u.setAttribute("y",t),u.setAttribute("width",n),u.setAttribute("height",r),i.appendChild(u),u}}]),o})()})),jt=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function f(l,c){for(var p=0;p<c.length;p++){var o=c[p];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(l,o.key,o)}}return function(l,c,p){return c&&f(l.prototype,c),p&&f(l,p),l}})();function s(f,l){if(!(f instanceof l))throw TypeError("Cannot call a class as a function")}a.default=(function(){function f(l,c,p){s(this,f),this.object=l,this.encodings=c,this.options=p}return d(f,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),f})()})),wt=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=l(Et()),s=l(mt()),f=l(jt());function l(c){return c&&c.__esModule?c:{default:c}}a.default={CanvasRenderer:d.default,SVGRenderer:s.default,ObjectRenderer:f.default}})),H=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});function d(o,e){if(!(o instanceof e))throw TypeError("Cannot call a class as a function")}function s(o,e){if(!o)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:o}function f(o,e){if(typeof e!="function"&&e!==null)throw TypeError("Super expression must either be null or a function, not "+typeof e);o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(o,e):o.__proto__=e)}var l=(function(o){f(e,o);function e(t,n){d(this,e);var r=s(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return r.name="InvalidInputException",r.symbology=t,r.input=n,r.message='"'+r.input+'" is not a valid input for '+r.symbology,r}return e})(Error),c=(function(o){f(e,o);function e(){d(this,e);var t=s(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.name="InvalidElementException",t.message="Not supported type to render on",t}return e})(Error),p=(function(o){f(e,o);function e(){d(this,e);var t=s(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.name="NoElementException",t.message="No element to render on.",t}return e})(Error);a.InvalidInputException=l,a.InvalidElementException=c,a.NoElementException=p})),xt=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=c(Ot()),f=c(wt()),l=H();function c(t){return t&&t.__esModule?t:{default:t}}function p(t){if(typeof t=="string")return o(t);if(Array.isArray(t)){for(var n=[],r=0;r<t.length;r++)n.push(p(t[r]));return n}if(typeof HTMLCanvasElement<"u"&&t instanceof HTMLImageElement)return e(t);if(t&&t.nodeName&&t.nodeName.toLowerCase()==="svg"||typeof SVGElement<"u"&&t instanceof SVGElement)return{element:t,options:(0,s.default)(t),renderer:f.default.SVGRenderer};if(typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement)return{element:t,options:(0,s.default)(t),renderer:f.default.CanvasRenderer};if(t&&t.getContext)return{element:t,renderer:f.default.CanvasRenderer};if(t&&(t===void 0?"undefined":d(t))==="object"&&!t.nodeName)return{element:t,renderer:f.default.ObjectRenderer};throw new l.InvalidElementException}function o(t){var n=document.querySelectorAll(t);if(n.length!==0){for(var r=[],i=0;i<n.length;i++)r.push(p(n[i]));return r}}function e(t){var n=document.createElement("canvas");return{element:n,options:(0,s.default)(t),renderer:f.default.CanvasRenderer,afterRender:function(){t.setAttribute("src",n.toDataURL())}}}a.default=p})),Pt=_.s((a=>{Object.defineProperty(a,"__esModule",{value:!0});var d=(function(){function f(l,c){for(var p=0;p<c.length;p++){var o=c[p];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(l,o.key,o)}}return function(l,c,p){return c&&f(l.prototype,c),p&&f(l,p),l}})();function s(f,l){if(!(f instanceof l))throw TypeError("Cannot call a class as a function")}a.default=(function(){function f(l){s(this,f),this.api=l}return d(f,[{key:"handleCatch",value:function(l){if(l.name==="InvalidInputException")if(this.api._options.valid!==this.api._defaults.valid)this.api._options.valid(!1);else throw l.message;else throw l;this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(l){try{var c=l.apply(void 0,arguments);return this.api._options.valid(!0),c}catch(p){return this.handleCatch(p),this.api}}}]),f})()})),St=_.s(((a,d)=>{var s=r(bt()),f=r(L()),l=r(_t()),c=r(gt()),p=r(xt()),o=r(N()),e=r(Pt()),t=H(),n=r($());function r(g){return g&&g.__esModule?g:{default:g}}var i=function(){},u=function(g,m,O){var E=new i;if(g===void 0)throw Error("No element to render on was provided.");return E._renderProperties=(0,p.default)(g),E._encodings=[],E._options=n.default,E._errorHandler=new e.default(E),m!==void 0&&(O||={},O.format||(O.format=b()),E.options(O)[O.format](m,O).render()),E};for(var h in u.getModule=function(g){return s.default[g]},s.default)s.default.hasOwnProperty(h)&&y(s.default,h);function y(g,m){i.prototype[m]=i.prototype[m.toUpperCase()]=i.prototype[m.toLowerCase()]=function(O,E){var w=this;return w._errorHandler.wrapBarcodeCall(function(){E.text=E.text===void 0?void 0:""+E.text;var P=(0,f.default)(w._options,E);P=(0,o.default)(P);var At=g[m],Tt=v(O,At,P);return w._encodings.push(Tt),w})}}function v(g,m,O){g=""+g;var E=new m(g,O);if(!E.valid())throw new t.InvalidInputException(E.constructor.name,g);var w=E.encode();w=(0,l.default)(w);for(var P=0;P<w.length;P++)w[P].options=(0,f.default)(O,w[P].options);return w}function b(){return s.default.CODE128?"CODE128":Object.keys(s.default)[0]}i.prototype.options=function(g){return this._options=(0,f.default)(this._options,g),this},i.prototype.blank=function(g){var m=Array(g+1).join("0");return this._encodings.push({data:m}),this},i.prototype.init=function(){if(this._renderProperties){Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]);var g;for(var m in this._renderProperties){g=this._renderProperties[m];var O=(0,f.default)(this._options,g.options);O.format=="auto"&&(O.format=b()),this._errorHandler.wrapBarcodeCall(function(){var E=O.value,w=s.default[O.format.toUpperCase()],P=v(E,w,O);j(g,P,O)})}}},i.prototype.render=function(){if(!this._renderProperties)throw new t.NoElementException;if(Array.isArray(this._renderProperties))for(var g=0;g<this._renderProperties.length;g++)j(this._renderProperties[g],this._encodings,this._options);else j(this._renderProperties,this._encodings,this._options);return this},i.prototype._defaults=n.default;function j(g,m,O){m=(0,l.default)(m);for(var E=0;E<m.length;E++)m[E].options=(0,f.default)(O,m[E].options),(0,c.default)(m[E].options);(0,c.default)(O);var w=g.renderer;new w(g.element,m,O).render(),g.afterRender&&g.afterRender()}typeof window<"u"&&(window.JsBarcode=u),typeof jQuery<"u"&&(jQuery.fn.JsBarcode=function(g,m){var O=[];return jQuery(this).each(function(){O.push(this)}),u(O,g,m)}),d.exports=u})),Ct=St();z.default=Ct});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__emailmaker__.define("static/core/
|
|
1
|
+
__emailmaker__.define("static/core/be880f91.js",["require","exports","module","static/core/5dc34752.js","static/core/e6f6edff.js"],function(O,W,Nt){const It=O("./5dc34752.js"),P=O("./e6f6edff.js");var tt=P.s(((o,s)=>{s.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}})),_=P.s((o=>{var s,a=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];o.getSymbolSize=function(r){if(!r)throw Error('"version" cannot be null or undefined');if(r<1||r>40)throw Error('"version" should be in range from 1 to 40');return r*4+17},o.getSymbolTotalCodewords=function(r){return a[r]},o.getBCHDigit=function(r){let t=0;for(;r!==0;)t++,r>>>=1;return t},o.setToSJISFunction=function(r){if(typeof r!="function")throw Error('"toSJISFunc" is not a valid function.');s=r},o.isKanjiModeEnabled=function(){return s!==void 0},o.toSJIS=function(r){return s(r)}})),H=P.s((o=>{o.L={bit:1},o.M={bit:0},o.Q={bit:3},o.H={bit:2};function s(a){if(typeof a!="string")throw Error("Param is not a string");switch(a.toLowerCase()){case"l":case"low":return o.L;case"m":case"medium":return o.M;case"q":case"quartile":return o.Q;case"h":case"high":return o.H;default:throw Error("Unknown EC Level: "+a)}}o.isValid=function(a){return a&&a.bit!==void 0&&a.bit>=0&&a.bit<4},o.from=function(a,r){if(o.isValid(a))return a;try{return s(a)}catch{return r}}})),rt=P.s(((o,s)=>{function a(){this.buffer=[],this.length=0}a.prototype={get:function(r){let t=Math.floor(r/8);return(this.buffer[t]>>>7-r%8&1)==1},put:function(r,t){for(let e=0;e<t;e++)this.putBit((r>>>t-e-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(r){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),r&&(this.buffer[t]|=128>>>this.length%8),this.length++}},s.exports=a})),et=P.s(((o,s)=>{function a(r){if(!r||r<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=r,this.data=new Uint8Array(r*r),this.reservedBit=new Uint8Array(r*r)}a.prototype.set=function(r,t,e,i){let n=r*this.size+t;this.data[n]=e,i&&(this.reservedBit[n]=!0)},a.prototype.get=function(r,t){return this.data[r*this.size+t]},a.prototype.xor=function(r,t,e){this.data[r*this.size+t]^=e},a.prototype.isReserved=function(r,t){return this.reservedBit[r*this.size+t]},s.exports=a})),nt=P.s((o=>{var s=_().getSymbolSize;o.getRowColCoords=function(a){if(a===1)return[];let r=Math.floor(a/7)+2,t=s(a),e=t===145?26:Math.ceil((t-13)/(2*r-2))*2,i=[t-7];for(let n=1;n<r-1;n++)i[n]=i[n-1]-e;return i.push(6),i.reverse()},o.getPositions=function(a){let r=[],t=o.getRowColCoords(a),e=t.length;for(let i=0;i<e;i++)for(let n=0;n<e;n++)i===0&&n===0||i===0&&n===e-1||i===e-1&&n===0||r.push([t[i],t[n]]);return r}})),ot=P.s((o=>{var s=_().getSymbolSize,a=7;o.getPositions=function(r){let t=s(r);return[[0,0],[t-a,0],[0,t-a]]}})),it=P.s((o=>{o.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var s={N1:3,N2:3,N3:40,N4:10};o.isValid=function(r){return r!=null&&r!==""&&!isNaN(r)&&r>=0&&r<=7},o.from=function(r){return o.isValid(r)?parseInt(r,10):void 0},o.getPenaltyN1=function(r){let t=r.size,e=0,i=0,n=0,u=null,c=null;for(let E=0;E<t;E++){i=n=0,u=c=null;for(let w=0;w<t;w++){let l=r.get(E,w);l===u?i++:(i>=5&&(e+=s.N1+(i-5)),u=l,i=1),l=r.get(w,E),l===c?n++:(n>=5&&(e+=s.N1+(n-5)),c=l,n=1)}i>=5&&(e+=s.N1+(i-5)),n>=5&&(e+=s.N1+(n-5))}return e},o.getPenaltyN2=function(r){let t=r.size,e=0;for(let i=0;i<t-1;i++)for(let n=0;n<t-1;n++){let u=r.get(i,n)+r.get(i,n+1)+r.get(i+1,n)+r.get(i+1,n+1);(u===4||u===0)&&e++}return e*s.N2},o.getPenaltyN3=function(r){let t=r.size,e=0,i=0,n=0;for(let u=0;u<t;u++){i=n=0;for(let c=0;c<t;c++)i=i<<1&2047|r.get(u,c),c>=10&&(i===1488||i===93)&&e++,n=n<<1&2047|r.get(c,u),c>=10&&(n===1488||n===93)&&e++}return e*s.N3},o.getPenaltyN4=function(r){let t=0,e=r.data.length;for(let i=0;i<e;i++)t+=r.data[i];return Math.abs(Math.ceil(t*100/e/5)-10)*s.N4};function a(r,t,e){switch(r){case o.Patterns.PATTERN000:return(t+e)%2==0;case o.Patterns.PATTERN001:return t%2==0;case o.Patterns.PATTERN010:return e%3==0;case o.Patterns.PATTERN011:return(t+e)%3==0;case o.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(e/3))%2==0;case o.Patterns.PATTERN101:return t*e%2+t*e%3==0;case o.Patterns.PATTERN110:return(t*e%2+t*e%3)%2==0;case o.Patterns.PATTERN111:return(t*e%3+(t+e)%2)%2==0;default:throw Error("bad maskPattern:"+r)}}o.applyMask=function(r,t){let e=t.size;for(let i=0;i<e;i++)for(let n=0;n<e;n++)t.isReserved(n,i)||t.xor(n,i,a(r,n,i))},o.getBestMask=function(r,t){let e=Object.keys(o.Patterns).length,i=0,n=1/0;for(let u=0;u<e;u++){t(u),o.applyMask(u,r);let c=o.getPenaltyN1(r)+o.getPenaltyN2(r)+o.getPenaltyN3(r)+o.getPenaltyN4(r);o.applyMask(u,r),c<n&&(n=c,i=u)}return i}})),V=P.s((o=>{var s=H(),a=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],r=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];o.getBlocksCount=function(t,e){switch(e){case s.L:return a[(t-1)*4+0];case s.M:return a[(t-1)*4+1];case s.Q:return a[(t-1)*4+2];case s.H:return a[(t-1)*4+3];default:return}},o.getTotalCodewordsCount=function(t,e){switch(e){case s.L:return r[(t-1)*4+0];case s.M:return r[(t-1)*4+1];case s.Q:return r[(t-1)*4+2];case s.H:return r[(t-1)*4+3];default:return}}})),at=P.s((o=>{var s=new Uint8Array(512),a=new Uint8Array(256);(function(){let r=1;for(let t=0;t<255;t++)s[t]=r,a[r]=t,r<<=1,r&256&&(r^=285);for(let t=255;t<512;t++)s[t]=s[t-255]})(),o.log=function(r){if(r<1)throw Error("log("+r+")");return a[r]},o.exp=function(r){return s[r]},o.mul=function(r,t){return r===0||t===0?0:s[a[r]+a[t]]}})),st=P.s((o=>{var s=at();o.mul=function(a,r){let t=new Uint8Array(a.length+r.length-1);for(let e=0;e<a.length;e++)for(let i=0;i<r.length;i++)t[e+i]^=s.mul(a[e],r[i]);return t},o.mod=function(a,r){let t=new Uint8Array(a);for(;t.length-r.length>=0;){let e=t[0];for(let n=0;n<r.length;n++)t[n]^=s.mul(r[n],e);let i=0;for(;i<t.length&&t[i]===0;)i++;t=t.slice(i)}return t},o.generateECPolynomial=function(a){let r=new Uint8Array([1]);for(let t=0;t<a;t++)r=o.mul(r,new Uint8Array([1,s.exp(t)]));return r}})),ut=P.s(((o,s)=>{var a=st();function r(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}r.prototype.initialize=function(t){this.degree=t,this.genPoly=a.generateECPolynomial(this.degree)},r.prototype.encode=function(t){if(!this.genPoly)throw Error("Encoder not initialized");let e=new Uint8Array(t.length+this.degree);e.set(t);let i=a.mod(e,this.genPoly),n=this.degree-i.length;if(n>0){let u=new Uint8Array(this.degree);return u.set(i,n),u}return i},s.exports=r})),q=P.s((o=>{o.isValid=function(s){return!isNaN(s)&&s>=1&&s<=40}})),Q=P.s((o=>{var s="[0-9]+",a="[A-Z $%*+\\-./:]+",r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";r=r.replace(/u/g,"\\u");var t="(?:(?![A-Z0-9 $%*+\\-./:]|"+r+`)(?:.|[\r
|
|
2
2
|
]))+`;o.KANJI=new RegExp(r,"g"),o.BYTE_KANJI=RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),o.BYTE=new RegExp(t,"g"),o.NUMERIC=new RegExp(s,"g"),o.ALPHANUMERIC=new RegExp(a,"g");var e=RegExp("^"+r+"$"),i=RegExp("^[0-9]+$"),n=RegExp("^[A-Z0-9 $%*+\\-./:]+$");o.testKanji=function(u){return e.test(u)},o.testNumeric=function(u){return i.test(u)},o.testAlphanumeric=function(u){return n.test(u)}})),k=P.s((o=>{var s=q(),a=Q();o.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},o.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},o.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},o.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},o.MIXED={bit:-1},o.getCharCountIndicator=function(t,e){if(!t.ccBits)throw Error("Invalid mode: "+t);if(!s.isValid(e))throw Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},o.getBestModeForData=function(t){return a.testNumeric(t)?o.NUMERIC:a.testAlphanumeric(t)?o.ALPHANUMERIC:a.testKanji(t)?o.KANJI:o.BYTE},o.toString=function(t){if(t&&t.id)return t.id;throw Error("Invalid mode")},o.isValid=function(t){return t&&t.bit&&t.ccBits};function r(t){if(typeof t!="string")throw Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return o.NUMERIC;case"alphanumeric":return o.ALPHANUMERIC;case"kanji":return o.KANJI;case"byte":return o.BYTE;default:throw Error("Unknown mode: "+t)}}o.from=function(t,e){if(o.isValid(t))return t;try{return r(t)}catch{return e}}})),lt=P.s((o=>{var s=_(),a=V(),r=H(),t=k(),e=q(),i=7973,n=s.getBCHDigit(i);function u(l,m,v){for(let T=1;T<=40;T++)if(m<=o.getCapacity(T,v,l))return T}function c(l,m){return t.getCharCountIndicator(l,m)+4}function E(l,m){let v=0;return l.forEach(function(T){let x=c(T.mode,m);v+=x+T.getBitsLength()}),v}function w(l,m){for(let v=1;v<=40;v++)if(E(l,v)<=o.getCapacity(v,m,t.MIXED))return v}o.from=function(l,m){return e.isValid(l)?parseInt(l,10):m},o.getCapacity=function(l,m,v){if(!e.isValid(l))throw Error("Invalid QR Code version");v===void 0&&(v=t.BYTE);let T=(s.getSymbolTotalCodewords(l)-a.getTotalCodewordsCount(l,m))*8;if(v===t.MIXED)return T;let x=T-c(v,l);switch(v){case t.NUMERIC:return Math.floor(x/10*3);case t.ALPHANUMERIC:return Math.floor(x/11*2);case t.KANJI:return Math.floor(x/13);case t.BYTE:default:return Math.floor(x/8)}},o.getBestVersionForData=function(l,m){let v,T=r.from(m,r.M);if(Array.isArray(l)){if(l.length>1)return w(l,T);if(l.length===0)return 1;v=l[0]}else v=l;return u(v.mode,v.getLength(),T)},o.getEncodedBits=function(l){if(!e.isValid(l)||l<7)throw Error("Invalid QR Code version");let m=l<<12;for(;s.getBCHDigit(m)-n>=0;)m^=i<<s.getBCHDigit(m)-n;return l<<12|m}})),ft=P.s((o=>{var s=_(),a=1335,r=21522,t=s.getBCHDigit(a);o.getEncodedBits=function(e,i){let n=e.bit<<3|i,u=n<<10;for(;s.getBCHDigit(u)-t>=0;)u^=a<<s.getBCHDigit(u)-t;return(n<<10|u)^r}})),ct=P.s(((o,s)=>{var a=k();function r(t){this.mode=a.NUMERIC,this.data=t.toString()}r.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(t){let e,i,n;for(e=0;e+3<=this.data.length;e+=3)i=this.data.substr(e,3),n=parseInt(i,10),t.put(n,10);let u=this.data.length-e;u>0&&(i=this.data.substr(e),n=parseInt(i,10),t.put(n,u*3+1))},s.exports=r})),ht=P.s(((o,s)=>{var a=k(),r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".split("");function t(e){this.mode=a.ALPHANUMERIC,this.data=e}t.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(e){let i=0;for(;i+2<=this.data.length;i+=2){let n=r.indexOf(this.data[i])*45;n+=r.indexOf(this.data[i+1]),e.put(n,11)}this.data.length%2&&e.put(r.indexOf(this.data[i]),6)},s.exports=t})),dt=P.s(((o,s)=>{var a=k();function r(t){this.mode=a.BYTE,this.data=typeof t=="string"?new TextEncoder().encode(t):new Uint8Array(t)}r.getBitsLength=function(t){return t*8},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(t){for(let e=0,i=this.data.length;e<i;e++)t.put(this.data[e],8)},s.exports=r})),gt=P.s(((o,s)=>{var a=k(),r=_();function t(e){this.mode=a.KANJI,this.data=e}t.getBitsLength=function(e){return e*13},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(e){let i=0;for(;i<this.data.length;i++){let n=r.toSJIS(this.data[i]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw Error("Invalid SJIS character: "+this.data[i]+`
|
|
3
3
|
Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}},s.exports=t})),pt=P.s(((o,s)=>{var a={single_source_shortest_paths:function(r,t,e){var i={},n={};n[t]=0;var u=a.PriorityQueue.make();u.push(t,0);for(var c,E,w,l,m,v,T,x,C;!u.empty();)for(w in c=u.pop(),E=c.value,l=c.cost,m=r[E]||{},m)m.hasOwnProperty(w)&&(v=m[w],T=l+v,x=n[w],C=n[w]===void 0,(C||x>T)&&(n[w]=T,u.push(w,T),i[w]=E));if(e!==void 0&&n[e]===void 0){var M=["Could not find a path from ",t," to ",e,"."].join("");throw Error(M)}return i},extract_shortest_path_from_predecessor_list:function(r,t){for(var e=[],i=t;i;)e.push(i),r[i],i=r[i];return e.reverse(),e},find_path:function(r,t,e){var i=a.single_source_shortest_paths(r,t,e);return a.extract_shortest_path_from_predecessor_list(i,e)},PriorityQueue:{make:function(r){var t=a.PriorityQueue,e={},i;for(i in r||={},t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e.queue=[],e.sorter=r.sorter||t.default_sorter,e},default_sorter:function(r,t){return r.cost-t.cost},push:function(r,t){var e={value:r,cost:t};this.queue.push(e),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};s!==void 0&&(s.exports=a)})),mt=P.s((o=>{var s=k(),a=ct(),r=ht(),t=dt(),e=gt(),i=Q(),n=_(),u=pt();function c(C){return unescape(encodeURIComponent(C)).length}function E(C,M,B){let I=[],L;for(;(L=C.exec(B))!==null;)I.push({data:L[0],index:L.index,mode:M,length:L[0].length});return I}function w(C){let M=E(i.NUMERIC,s.NUMERIC,C),B=E(i.ALPHANUMERIC,s.ALPHANUMERIC,C),I,L;return n.isKanjiModeEnabled()?(I=E(i.BYTE,s.BYTE,C),L=E(i.KANJI,s.KANJI,C)):(I=E(i.BYTE_KANJI,s.BYTE,C),L=[]),M.concat(B,I,L).sort(function(R,g){return R.index-g.index}).map(function(R){return{data:R.data,mode:R.mode,length:R.length}})}function l(C,M){switch(M){case s.NUMERIC:return a.getBitsLength(C);case s.ALPHANUMERIC:return r.getBitsLength(C);case s.KANJI:return e.getBitsLength(C);case s.BYTE:return t.getBitsLength(C)}}function m(C){return C.reduce(function(M,B){let I=M.length-1>=0?M[M.length-1]:null;return I&&I.mode===B.mode?(M[M.length-1].data+=B.data,M):(M.push(B),M)},[])}function v(C){let M=[];for(let B=0;B<C.length;B++){let I=C[B];switch(I.mode){case s.NUMERIC:M.push([I,{data:I.data,mode:s.ALPHANUMERIC,length:I.length},{data:I.data,mode:s.BYTE,length:I.length}]);break;case s.ALPHANUMERIC:M.push([I,{data:I.data,mode:s.BYTE,length:I.length}]);break;case s.KANJI:M.push([I,{data:I.data,mode:s.BYTE,length:c(I.data)}]);break;case s.BYTE:M.push([{data:I.data,mode:s.BYTE,length:c(I.data)}])}}return M}function T(C,M){let B={},I={start:{}},L=["start"];for(let R=0;R<C.length;R++){let g=C[R],y=[];for(let A=0;A<g.length;A++){let f=g[A],N=""+R+A;y.push(N),B[N]={node:f,lastCount:0},I[N]={};for(let h=0;h<L.length;h++){let d=L[h];B[d]&&B[d].node.mode===f.mode?(I[d][N]=l(B[d].lastCount+f.length,f.mode)-l(B[d].lastCount,f.mode),B[d].lastCount+=f.length):(B[d]&&(B[d].lastCount=f.length),I[d][N]=l(f.length,f.mode)+4+s.getCharCountIndicator(f.mode,M))}}L=y}for(let R=0;R<L.length;R++)I[L[R]].end=0;return{map:I,table:B}}function x(C,M){let B,I=s.getBestModeForData(C);if(B=s.from(M,I),B!==s.BYTE&&B.bit<I.bit)throw Error('"'+C+'" cannot be encoded with mode '+s.toString(B)+`.
|
|
4
4
|
Suggested mode is: `+s.toString(I));switch(B===s.KANJI&&!n.isKanjiModeEnabled()&&(B=s.BYTE),B){case s.NUMERIC:return new a(C);case s.ALPHANUMERIC:return new r(C);case s.KANJI:return new e(C);case s.BYTE:return new t(C)}}o.fromArray=function(C){return C.reduce(function(M,B){return typeof B=="string"?M.push(x(B,null)):B.data&&M.push(x(B.data,B.mode)),M},[])},o.fromString=function(C,M){let B=T(v(w(C,n.isKanjiModeEnabled())),M),I=u.find_path(B.map,"start","end"),L=[];for(let R=1;R<I.length-1;R++)L.push(B.table[I[R]].node);return o.fromArray(m(L))},o.rawSplit=function(C){return o.fromArray(w(C,n.isKanjiModeEnabled()))}})),vt=P.s((o=>{var s=_(),a=H(),r=rt(),t=et(),e=nt(),i=ot(),n=it(),u=V(),c=ut(),E=lt(),w=ft(),l=k(),m=mt();function v(g,y){let A=g.size,f=i.getPositions(y);for(let N=0;N<f.length;N++){let h=f[N][0],d=f[N][1];for(let p=-1;p<=7;p++)if(!(h+p<=-1||A<=h+p))for(let b=-1;b<=7;b++)d+b<=-1||A<=d+b||(p>=0&&p<=6&&(b===0||b===6)||b>=0&&b<=6&&(p===0||p===6)||p>=2&&p<=4&&b>=2&&b<=4?g.set(h+p,d+b,!0,!0):g.set(h+p,d+b,!1,!0))}}function T(g){let y=g.size;for(let A=8;A<y-8;A++){let f=A%2==0;g.set(A,6,f,!0),g.set(6,A,f,!0)}}function x(g,y){let A=e.getPositions(y);for(let f=0;f<A.length;f++){let N=A[f][0],h=A[f][1];for(let d=-2;d<=2;d++)for(let p=-2;p<=2;p++)d===-2||d===2||p===-2||p===2||d===0&&p===0?g.set(N+d,h+p,!0,!0):g.set(N+d,h+p,!1,!0)}}function C(g,y){let A=g.size,f=E.getEncodedBits(y),N,h,d;for(let p=0;p<18;p++)N=Math.floor(p/3),h=p%3+A-8-3,d=(f>>p&1)==1,g.set(N,h,d,!0),g.set(h,N,d,!0)}function M(g,y,A){let f=g.size,N=w.getEncodedBits(y,A),h,d;for(h=0;h<15;h++)d=(N>>h&1)==1,h<6?g.set(h,8,d,!0):h<8?g.set(h+1,8,d,!0):g.set(f-15+h,8,d,!0),h<8?g.set(8,f-h-1,d,!0):h<9?g.set(8,15-h-1+1,d,!0):g.set(8,15-h-1,d,!0);g.set(f-8,8,1,!0)}function B(g,y){let A=g.size,f=-1,N=A-1,h=7,d=0;for(let p=A-1;p>0;p-=2)for(p===6&&p--;;){for(let b=0;b<2;b++)if(!g.isReserved(N,p-b)){let D=!1;d<y.length&&(D=(y[d]>>>h&1)==1),g.set(N,p-b,D),h--,h===-1&&(d++,h=7)}if(N+=f,N<0||A<=N){N-=f,f=-f;break}}}function I(g,y,A){let f=new r;A.forEach(function(d){f.put(d.mode.bit,4),f.put(d.getLength(),l.getCharCountIndicator(d.mode,g)),d.write(f)});let N=(s.getSymbolTotalCodewords(g)-u.getTotalCodewordsCount(g,y))*8;for(f.getLengthInBits()+4<=N&&f.put(0,4);f.getLengthInBits()%8!=0;)f.putBit(0);let h=(N-f.getLengthInBits())/8;for(let d=0;d<h;d++)f.put(d%2?17:236,8);return L(f,g,y)}function L(g,y,A){let f=s.getSymbolTotalCodewords(y),N=f-u.getTotalCodewordsCount(y,A),h=u.getBlocksCount(y,A),d=h-f%h,p=Math.floor(f/h),b=Math.floor(N/h),D=b+1,Z=p-b,Ct=new c(Z),J=0,z=Array(h),X=Array(h),K=0,Bt=new Uint8Array(g.buffer);for(let F=0;F<h;F++){let j=F<d?b:D;z[F]=Bt.slice(J,J+j),X[F]=Ct.encode(z[F]),J+=j,K=Math.max(K,j)}let Y=new Uint8Array(f),G=0,S,U;for(S=0;S<K;S++)for(U=0;U<h;U++)S<z[U].length&&(Y[G++]=z[U][S]);for(S=0;S<Z;S++)for(U=0;U<h;U++)Y[G++]=X[U][S];return Y}function R(g,y,A,f){let N;if(Array.isArray(g))N=m.fromArray(g);else if(typeof g=="string"){let b=y;if(!b){let D=m.rawSplit(g);b=E.getBestVersionForData(D,A)}N=m.fromString(g,b||40)}else throw Error("Invalid data");let h=E.getBestVersionForData(N,A);if(!h)throw Error("The amount of data is too big to be stored in a QR Code");if(!y)y=h;else if(y<h)throw Error(`
|
|
@@ -7,4 +7,4 @@ Minimum version required to store current data is: `+h+`.
|
|
|
7
7
|
`);let d=I(y,A,N),p=new t(s.getSymbolSize(y));return v(p,y),T(p),x(p,y),M(p,A,0),y>=7&&C(p,y),B(p,d),isNaN(f)&&(f=n.getBestMask(p,M.bind(null,p,A))),n.applyMask(f,p),M(p,A,f),{modules:p,version:y,errorCorrectionLevel:A,maskPattern:f,segments:N}}o.create=function(g,y){if(g===void 0||g==="")throw Error("No input text");let A=a.M,f,N;return y!==void 0&&(A=a.from(y.errorCorrectionLevel,a.M),f=E.from(y.version),N=n.from(y.maskPattern),y.toSJISFunc&&s.setToSJISFunction(y.toSJISFunc)),R(g,f,A,N)}})),$=P.s((o=>{function s(a){if(typeof a=="number"&&(a=a.toString()),typeof a!="string")throw Error("Color should be defined as hex string");let r=a.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw Error("Invalid hex color: "+a);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(e){return[e,e]}))),r.length===6&&r.push("F","F");let t=parseInt(r.join(""),16);return{r:t>>24&255,g:t>>16&255,b:t>>8&255,a:t&255,hex:"#"+r.slice(0,6).join("")}}o.getOptions=function(a){a||={},a.color||(a.color={});let r=a.margin===void 0||a.margin===null||a.margin<0?4:a.margin,t=a.width&&a.width>=21?a.width:void 0,e=a.scale||4;return{width:t,scale:t?4:e,margin:r,color:{dark:s(a.color.dark||"#000000ff"),light:s(a.color.light||"#ffffffff")},type:a.type,rendererOpts:a.rendererOpts||{}}},o.getScale=function(a,r){return r.width&&r.width>=a+r.margin*2?r.width/(a+r.margin*2):r.scale},o.getImageWidth=function(a,r){let t=o.getScale(a,r);return Math.floor((a+r.margin*2)*t)},o.qrToImageData=function(a,r,t){let e=r.modules.size,i=r.modules.data,n=o.getScale(e,t),u=Math.floor((e+t.margin*2)*n),c=t.margin*n,E=[t.color.light,t.color.dark];for(let w=0;w<u;w++)for(let l=0;l<u;l++){let m=(w*u+l)*4,v=t.color.light;if(w>=c&&l>=c&&w<u-c&&l<u-c){let T=Math.floor((w-c)/n),x=Math.floor((l-c)/n);v=E[+!!i[T*e+x]]}a[m++]=v.r,a[m++]=v.g,a[m++]=v.b,a[m]=v.a}}})),Et=P.s((o=>{var s=$();function a(t,e,i){t.clearRect(0,0,e.width,e.height),e.style||={},e.height=i,e.width=i,e.style.height=i+"px",e.style.width=i+"px"}function r(){try{return document.createElement("canvas")}catch{throw Error("You need to specify a canvas element")}}o.render=function(t,e,i){let n=i,u=e;n===void 0&&(!e||!e.getContext)&&(n=e,e=void 0),e||(u=r()),n=s.getOptions(n);let c=s.getImageWidth(t.modules.size,n),E=u.getContext("2d"),w=E.createImageData(c,c);return s.qrToImageData(w.data,t,n),a(E,u,c),E.putImageData(w,0,0),u},o.renderToDataURL=function(t,e,i){let n=i;n===void 0&&(!e||!e.getContext)&&(n=e,e=void 0),n||={};let u=o.render(t,e,n),c=n.type||"image/png",E=n.rendererOpts||{};return u.toDataURL(c,E.quality)}})),wt=P.s((o=>{var s=$();function a(e,i){let n=e.a/255,u=i+'="'+e.hex+'"';return n<1?u+" "+i+'-opacity="'+n.toFixed(2).slice(1)+'"':u}function r(e,i,n){let u=e+i;return n!==void 0&&(u+=" "+n),u}function t(e,i,n){let u="",c=0,E=!1,w=0;for(let l=0;l<e.length;l++){let m=Math.floor(l%i),v=Math.floor(l/i);!m&&!E&&(E=!0),e[l]?(w++,l>0&&m>0&&e[l-1]||(u+=E?r("M",m+n,.5+v+n):r("m",c,0),c=0,E=!1),m+1<i&&e[l+1]||(u+=r("h",w),w=0)):c++}return u}o.render=function(e,i,n){let u=s.getOptions(i),c=e.modules.size,E=e.modules.data,w=c+u.margin*2,l=u.color.light.a?"<path "+a(u.color.light,"fill")+' d="M0 0h'+w+"v"+w+'H0z"/>':"",m="<path "+a(u.color.dark,"stroke")+' d="'+t(E,c,u.margin)+'"/>',v='viewBox="0 0 '+w+" "+w+'"',T='<svg xmlns="http://www.w3.org/2000/svg" '+(u.width?'width="'+u.width+'" height="'+u.width+'" ':"")+v+' shape-rendering="crispEdges">'+l+m+`</svg>
|
|
8
8
|
`;return typeof n=="function"&&n(null,T),T}})),yt=P.s((o=>{var s=tt(),a=vt(),r=Et(),t=wt();function e(i,n,u,c,E){let w=[].slice.call(arguments,1),l=w.length,m=typeof w[l-1]=="function";if(!m&&!s())throw Error("Callback required as last argument");if(m){if(l<2)throw Error("Too few arguments provided");l===2?(E=u,u=n,n=c=void 0):l===3&&(n.getContext&&E===void 0?(E=c,c=void 0):(E=c,c=u,u=n,n=void 0))}else{if(l<1)throw Error("Too few arguments provided");return l===1?(u=n,n=c=void 0):l===2&&!n.getContext&&(c=u,u=n,n=void 0),new Promise(function(v,T){try{v(i(a.create(u,c),n,c))}catch(x){T(x)}})}try{let v=a.create(u,c);E(null,i(v,n,c))}catch(v){E(v)}}o.create=a.create,o.toCanvas=e.bind(null,r.render),o.toDataURL=e.bind(null,r.renderToDataURL),o.toString=e.bind(null,function(i,n,u){return t.render(i,u)})})),At=yt();W.default=At});
|
|
9
9
|
|
|
10
|
-
__emailmaker__.define("static/core/
|
|
10
|
+
__emailmaker__.define("static/core/a30b0fae.js",["require","exports","module","static/core/5dc34752.js","static/core/e123b734.js","static/core/e6f6edff.js","react","react/jsx-runtime","__delivery__/libs","vite/preload-helper"],function(m,Z,ve){const G=m("./5dc34752.js"),B=m("./e123b734.js"),y=m("./e6f6edff.js");let o=m("react"),D=G.__toESM(o,1);o=G.__toESM(o);let r=m("react/jsx-runtime"),c=m("__delivery__/libs"),N=m("vite/preload-helper");var S=({size:C=24,color:R="currentColor",...s})=>D.createElement("svg",{viewBox:"0 0 24 24",width:C,height:C,stroke:R,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},D.createElement("path",{d:"m14 10 7-7m0 0h-6m6 0v6m-11 5-7 7m0 0h6m-6 0v-6"}));S.displayName="Expand01";var O=B.or(),t={"em-filemanager":"em-filemanager",emFilemanager:"em-filemanager",root:"root",controls:"controls",segmentedControl:"segmentedControl",sizeRow:"sizeRow",sizeRowLabel:"sizeRowLabel",sizeInputNumber:"sizeInputNumber",sizeSuffix:"sizeSuffix",colorGrid:"colorGrid",colorCell:"colorCell",colorCellLabel:"colorCellLabel",colorPickerFull:"colorPickerFull",bgExtras:"bgExtras",bgWarning:"bgWarning",previewSection:"previewSection",previewTitle:"previewTitle",previewWrap:"previewWrap",scanLine:"scanLine",scanLineBarcode:"scanLineBarcode",previewWrapBarcode:"previewWrapBarcode",previewCanvas:"previewCanvas",previewCanvasBarcode:"previewCanvasBarcode",actions:"actions"},z=80,F=600,ee=200,E=24,q=130,ae=60,re=280,te=72;function oe(){return typeof window>"u"?2:Math.min(3,Math.max(2,window.devicePixelRatio||2))}var le=({customRequest:C,state:R,setState:s})=>{let{t:l}=B.Rn(),{options:ie}=B.V(),Q=ie?.config?.iconStrokeWidth??1.75,V=(0,o.useRef)(null),{mode:d,rawText:x,foregroundHex:p,backgroundHex:f,transparentBackground:g,qrSidePx:j,barcodeBarHeightPx:k}=R,ne=(0,o.useCallback)(e=>s(a=>({...a,mode:e})),[s]),se=(0,o.useCallback)(e=>s(a=>({...a,rawText:e})),[s]),ce=(0,o.useCallback)(e=>s(a=>({...a,foregroundHex:e})),[s]),de=(0,o.useCallback)(e=>s(a=>({...a,backgroundHex:e})),[s]),he=(0,o.useCallback)(e=>s(a=>({...a,transparentBackground:e})),[s]),ue=(0,o.useCallback)(e=>s(a=>({...a,qrSidePx:e})),[s]),me=(0,o.useCallback)(e=>s(a=>({...a,barcodeBarHeightPx:e})),[s]),[T,xe]=(0,o.useState)(x),[$,b]=(0,o.useState)(null),[L,U]=(0,o.useState)(!1),_=(0,o.useMemo)(()=>(0,O.debounce)(e=>xe(e),300),[]);(0,o.useEffect)(()=>(_(x),()=>{_.cancel()}),[x,_]);let M=g?"#00000000":f,J=(0,o.useCallback)(async(e,a)=>{let n=(await(0,N.__vitePreload)(()=>Promise.resolve().then(()=>m("./be880f91.js")).then(i=>y.l(i.default)),void 0,{}.url)).default,h=a.trim(),u=Math.min(re,Math.max(z,j));if(!h){e.width=u,e.height=u;let i=e.getContext("2d");i&&i.clearRect(0,0,e.width,e.height);return}e.width=u,e.height=u,await n.toCanvas(e,h,{width:u,margin:2,color:{dark:p,light:M}})},[p,M,j]),K=(0,o.useCallback)(async(e,a)=>{let n=(await(0,N.__vitePreload)(()=>Promise.resolve().then(()=>m("./9f7f5230.js")).then(v=>y.l(v.default)),void 0,{}.url)).default,h=a.trim(),u=g?"rgba(0,0,0,0)":f,i=Math.min(te,Math.max(E,k)),W=Math.max(1,Math.round(i/42)),H=Math.max(4,Math.round(i*.07)),I=Math.max(10,Math.round(i*.15));if(!h){e.width=Math.round(i*4),e.height=Math.round(i*1.65);let v=e.getContext("2d");v&&v.clearRect(0,0,e.width,e.height);return}e.width=Math.round(i*4.2),e.height=Math.round(i*1.65),n(e,h,{format:"CODE128",displayValue:!0,background:u,lineColor:p,margin:H,width:W,height:i,fontSize:I})},[p,f,g,k]);(0,o.useEffect)(()=>{let e=V.current;if(!e)return;let a=!1;return(async()=>{try{d==="qr"?await J(e,T):await K(e,T),a||b(null)}catch(n){let h=n instanceof Error?n.message:String(n);if(!a){b(d==="barcode"?l("Barcode generation failed"):h);let u=e.getContext("2d");u&&u.clearRect(0,0,e.width,e.height)}}})(),()=>{a=!0}},[d,T,K,J,l]);let X=(0,o.useCallback)(async()=>{_.flush();let e=x.trim();if(!e)throw Error(l("Enter text or URL to preview"));let a=oe();if(d==="qr"){let w=Math.round(Math.min(F,Math.max(z,j))*a),P=document.createElement("canvas");P.width=w,P.height=w,await(await(0,N.__vitePreload)(()=>Promise.resolve().then(()=>m("./be880f91.js")).then(A=>y.l(A.default)),void 0,{}.url)).default.toCanvas(P,e,{width:w,margin:2,color:{dark:p,light:M}});let Y=await new Promise(A=>P.toBlob(A,"image/png"));if(!Y)throw Error("PNG export failed");return Y}let n=(await(0,N.__vitePreload)(()=>Promise.resolve().then(()=>m("./9f7f5230.js")).then(w=>y.l(w.default)),void 0,{}.url)).default,h=document.createElement("canvas"),u=g?"rgba(0,0,0,0)":f,i=Math.min(q,Math.max(E,k)),W=Math.max(6,Math.round(i*.1)),H=Math.max(2,Math.round(i/36)),I=Math.max(12,Math.round(i*.16));n(h,e,{format:"CODE128",displayValue:!0,background:u,lineColor:p,margin:Math.round(W*a),width:Math.round(H*a),height:Math.round(i*a),fontSize:Math.round(I*a)});let v=await new Promise(w=>h.toBlob(w,"image/png"));if(!v)throw Error("PNG export failed");return v},[d,x,p,M,f,g,j,k,_,l]),pe=(0,o.useCallback)(async()=>{if(!L&&x.trim()){U(!0);try{let e;try{e=await X()}catch(n){let h=n instanceof Error?n.message:String(n);b(h);return}let a=new File([e],`${d==="qr"?"qr-code":"barcode"}-${Date.now()}.png`,{type:"image/png",lastModified:Date.now()});await Promise.resolve(C({file:a}))}finally{U(!1)}}},[C,X,d,x,L]),ge=!!x.trim()&&!$;return(0,r.jsx)("div",{className:t.root,children:(0,r.jsxs)("div",{className:t.controls,children:[(0,r.jsx)(c.antd$Segmented,{block:!0,className:t.segmentedControl,value:d,onChange:e=>{ne(e),b(null)},options:[{label:l("QR code"),value:"qr"},{label:l("Barcode"),value:"barcode"}]}),$&&(0,r.jsx)(c.antd$Alert,{type:"error",title:l("Validation error"),description:$,showIcon:!0,closable:!0,onClose:()=>b(null)}),(0,r.jsx)(c.antd$Input.TextArea,{value:x,onChange:e=>{se(e.target.value),b(null)},placeholder:l("Text or URL"),rows:3,spellCheck:!1,autoComplete:"off"}),(0,r.jsxs)("div",{className:t.sizeRow,children:[(0,r.jsx)(c.antd$Typography.Text,{type:"secondary",className:t.sizeRowLabel,children:l(d==="qr"?"QR image size px":"Barcode bar height px")}),d==="qr"?(0,r.jsx)(c.antd$InputNumber,{className:t.sizeInputNumber,min:z,max:F,step:8,value:j,onChange:e=>ue(typeof e=="number"&&!Number.isNaN(e)?e:ee),prefix:(0,r.jsx)(S,{size:18,strokeWidth:Q}),suffix:(0,r.jsx)("span",{className:t.sizeSuffix,children:"px"}),"aria-label":l("QR image size px")}):(0,r.jsx)(c.antd$InputNumber,{className:t.sizeInputNumber,min:E,max:q,step:4,value:k,onChange:e=>me(typeof e=="number"&&!Number.isNaN(e)?e:ae),prefix:(0,r.jsx)(S,{size:18,strokeWidth:Q}),suffix:(0,r.jsx)("span",{className:t.sizeSuffix,children:"px"}),"aria-label":l("Barcode bar height px")})]}),(0,r.jsxs)("div",{className:t.colorGrid,children:[(0,r.jsxs)("div",{className:t.colorCell,children:[(0,r.jsx)(c.antd$Typography.Text,{type:"secondary",className:t.colorCellLabel,children:l("Code color","Code color")}),(0,r.jsx)(c.antd$ColorPicker,{className:t.colorPickerFull,value:p,format:"hex",disabledAlpha:!0,showText:!0,onChange:(e,a)=>{let n=typeof e=="string"?e:e?.toHexString?e.toHexString():a;ce(n)}})]}),(0,r.jsxs)("div",{className:t.colorCell,children:[(0,r.jsx)(c.antd$Typography.Text,{type:"secondary",className:t.colorCellLabel,children:l("Background color","Background color")}),(0,r.jsx)(c.antd$ColorPicker,{className:t.colorPickerFull,value:f,format:"hex",disabledAlpha:!0,showText:!0,disabled:g,onChange:(e,a)=>{let n=typeof e=="string"?e:e?.toHexString?e.toHexString():a;de(n)}})]}),(0,r.jsxs)("div",{className:t.bgExtras,children:[(0,r.jsx)(c.antd$Checkbox,{checked:g,onChange:e=>he(e.target.checked),children:l("Transparent background","Transparent background")}),g&&(0,r.jsx)(c.antd$Alert,{type:"warning",showIcon:!0,title:l("QR transparent background hint"),className:t.bgWarning})]})]}),(0,r.jsxs)("div",{className:t.previewSection,children:[(0,r.jsx)(c.antd$Typography.Text,{className:t.previewTitle,children:l("Preview","Preview")}),(0,r.jsxs)("div",{className:[t.previewWrap,d==="barcode"&&t.previewWrapBarcode].filter(Boolean).join(" "),children:[(0,r.jsx)("div",{className:[t.scanLine,d==="barcode"&&t.scanLineBarcode].filter(Boolean).join(" ")}),(0,r.jsx)("canvas",{ref:V,className:[t.previewCanvas,d==="barcode"&&t.previewCanvasBarcode].filter(Boolean).join(" "),"aria-label":l("Preview")})]})]}),(0,r.jsx)("div",{className:t.actions,children:(0,r.jsx)(c.antd$Button,{type:"primary",onClick:()=>{pe()},loading:L,disabled:!ge,children:l("Add to My files")})})]})})};Z.default=le});
|