PageSourceSearch

https://khachhang.superai.vn/assets/jsbarcode-60f947d2.js

js superai.vn collected 2026-09-24 15:15:27 UTC 65,937 bytes, 1 lines download raw bytes

1var ve={},J={},c={};Object.defineProperty(c,"__esModule",{value:!0});function Dt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var jt=function t(e,r){Dt(this,t),this.data=e,this.text=r.text||e,this.options=r};c.default=jt;Object.defineProperty(J,"__esModule",{value:!0});J.CODE39=void 0;var Bt=function(){function t(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),Lt=c,Ct=Nt(Lt);function Nt(t){return t&&t.__esModule?t:{default:t}}function Gt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ft(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Ht(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Xt=function(t){Ht(e,t);function e(r,n){return Gt(this,e),r=r.toUpperCase(),n.mod43&&(r+=Vt(qt(r))),Ft(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,r,n))}return Bt(e,[{key:"encode",value:function(){for(var n=ie("*"),a=0;a<this.data.length;a++)n+=ie(this.data[a])+"0";return n+=ie("*"),{data:n,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)!==-1}}]),e}(Ct.default),ut=["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","-","."," ","$","/","+","%","*"],zt=[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 ie(t){return Ut(ft(t))}function Ut(t){return zt[t].toString(2)}function Vt(t){return ut[t]}function ft(t){return ut.indexOf(t)}function qt(t){for(var e=0,r=0;r<t.length;r++)e+=ft(t[r]);return e=e%43,e}J.CODE39=Xt;var s={},ye={},T={},f={};Object.defineProperty(f,"__esModule",{value:!0});var D;function oe(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ct=f.SET_A=0,lt=f.SET_B=1,ht=f.SET_C=2;f.SHIFT=98;var Jt=f.START_A=103,Yt=f.START_B=104,Qt=f.START_C=105;f.MODULO=103;f.STOP=106;f.FNC1=207;f.SET_BY_CODE=(D={},oe(D,Jt,ct),oe(D,Yt,lt),oe(D,Qt,ht),D);f.SWAP={101:ct,100:lt,99:ht};f.A_START_CHAR=String.fromCharCode(208);f.B_START_CHAR=String.fromCharCode(209);f.C_START_CHAR=String.fromCharCode(210);f.A_CHARS="[\0-_È-Ï]";f.B_CHARS="[ -�È-Ï]";f.C_CHARS="(Ï*[0-9]{2}Ï*)";f.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011];
1Object.defineProperty(T,"__esModule",{value:!0});var Wt=function(){function t(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),Zt=c,Kt=en(Zt),h=f;function en(t){return t&&t.__esModule?t:{default:t}}function tn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function nn(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function rn(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var an=function(t){rn(e,t);function e(r,n){tn(this,e);var a=nn(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,r.substring(1),n));return a.bytes=r.split("").map(function(i){return i.charCodeAt(0)}),a}return Wt(e,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var n=this.bytes,a=n.shift()-105,i=h.SET_BY_CODE[a];if(i===void 0)throw new RangeError("The encoding does not start with a start character.");this.shouldEncodeAsEan128()===!0&&n.unshift(h.FNC1);var o=e.next(n,1,i);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:e.getBar(a)+o.result+e.getBar((o.checksum+a)%h.MODULO)+e.getBar(h.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 h.BARS[n]?h.BARS[n].toString():""}},{key:"correctIndex",value:function(n,a){if(a===h.SET_A){var i=n.shift();return i<32?i+64:i-32}else return a===h.SET_B?n.shift()-32:(n.shift()-48)*10+n.shift()-48}},{key:"next",value:function(n,a,i){if(!n.length)return{result:"",checksum:0};var o=void 0,u=void 0;if(n[0]>=200){u=n.shift()-105;var y=h.SWAP[u];y!==void 0?o=e.next(n,a+1,y):((i===h.SET_A||i===h.SET_B)&&u===h.SHIFT&&(n[0]=i===h.SET_A?n[0]>95?n[0]-96:n[0]:n[0]<32?n[0]+96:n[0]),o=e.next(n,a+1,i))}else u=e.correctIndex(n,i),o=e.next(n,a+1,i);var g=e.getBar(u),kt=u*a;return{result:g+o.result,checksum:kt+o.checksum}}}]),e}(Kt.default);T.default=an;var se={};Object.defineProperty(se,"__esModule",{value:!0});var O=f,dt=function(e){return e.match(new RegExp("^"+O.A_CHARS+"*"))[0].length},_t=function(e){return e.match(new RegExp("^"+O.B_CHARS+"*"))[0].length},vt=function(e){return e.match(new RegExp("^"+O.C_CHARS+"*"))[0]};function pe(t,e){var r=e?O.A_CHARS:O.B_CHARS,n=t.match(new RegExp("^("+r+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(n)return n[1]+String.fromCharCode(204)+yt(t.substring(n[1].length));var a=t.match(new RegExp("^"+r+"+"))[0];return a.length===t.length?t:a+String.fromCharCode(e?205:206)+pe(t.substring(a.length),!e)}function yt(t){var e=vt(t),r=e.length;if(r===t.length)return t;t=t.substring(r);var n=dt(t)>=_t(t);return e+String.fromCharCode(n?206:205)+pe(t,n)}se.default=function(t){var e=void 0,r=vt(t).length;if(r>=2)e=O.C_START_CHAR+yt(t);else{var n=dt(t)>_t(t);e=(n?O.A_START_CHAR:O.B_START_CHAR)+pe(t,n)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(a,i){return String.fromCharCode(203)+i})};Object.defineProperty(ye,"__esModule",{value:!0});var on=T,un=st(on),fn=se,cn=st(fn);function st(t){return t&&t.__esModule?t:{default:t}}function ln(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ue(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function hn(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var dn=function(t){hn(e,t);function e(r,n){if(ln(this,e),/^[\x00-\x7F\xC8-\xD3]+$/.test(r))var a=ue(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(0,cn.default)(r),n));else var a=ue(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,r,n));return ue(a)}return e}(un.default);ye.default=dn;var ge={};
1Object.defineProperty(ge,"__esModule",{value:!0});var _n=function(){function t(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),vn=T,yn=sn(vn),Ve=f;function sn(t){return t&&t.__esModule?t:{default:t}}function pn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gn(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function On(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var En=function(t){On(e,t);function e(r,n){return pn(this,e),gn(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,Ve.A_START_CHAR+r,n))}return _n(e,[{key:"valid",value:function(){return new RegExp("^"+Ve.A_CHARS+"+$").test(this.data)}}]),e}(yn.default);ge.default=En;var Oe={};Object.defineProperty(Oe,"__esModule",{value:!0});var bn=function(){function t(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),wn=T,mn=$n(wn),qe=f;function $n(t){return t&&t.__esModule?t:{default:t}}function xn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Sn(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function An(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Rn=function(t){An(e,t);function e(r,n){return xn(this,e),Sn(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,qe.B_START_CHAR+r,n))}return bn(e,[{key:"valid",value:function(){return new RegExp("^"+qe.B_CHARS+"+$").test(this.data)}}]),e}(mn.default);Oe.default=Rn;var Ee={};Object.defineProperty(Ee,"__esModule",{value:!0});var Pn=function(){function t(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),Tn=T,Mn=In(Tn),Je=f;function In(t){return t&&t.__esModule?t:{default:t}}function kn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Dn(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function jn(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Bn=function(t){jn(e,t);function e(r,n){return kn(this,e),Dn(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,Je.C_START_CHAR+r,n))}return Pn(e,[{key:"valid",value:function(){return new RegExp("^"+Je.C_CHARS+"+$").test(this.data)}}]),e}(Mn.default);Ee.default=Bn;Object.defineProperty(s,"__esModule",{value:!0});s.CODE128C=s.CODE128B=s.CODE128A=s.CODE128=void 0;var Ln=ye,Cn=Y(Ln),Nn=ge,Gn=Y(Nn),Fn=Oe,Hn=Y(Fn),Xn=Ee,zn=Y(Xn);function Y(t){return t&&t.__esModule?t:{default:t}}s.CODE128=Cn.default;s.CODE128A=Gn.default;s.CODE128B=Hn.default;s.CODE128C=zn.default;var l={},be={},v={};Object.defineProperty(v,"__esModule",{value:!0});v.SIDE_BIN="101";v.MIDDLE_BIN="01010";v.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"]};
1v.EAN2_STRUCTURE=["LL","LG","GL","GG"];v.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"];v.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"];var Q={},w={};Object.defineProperty(w,"__esModule",{value:!0});var Un=v,Vn=function(e,r,n){var a=e.split("").map(function(o,u){return Un.BINARIES[r[u]]}).map(function(o,u){return o?o[e[u]]:""});if(n){var i=e.length-1;a=a.map(function(o,u){return u<i?o+n:o})}return a.join("")};w.default=Vn;Object.defineProperty(Q,"__esModule",{value:!0});var qn=function(){function t(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),x=v,Jn=w,Ye=pt(Jn),Yn=c,Qn=pt(Yn);function pt(t){return t&&t.__esModule?t:{default:t}}function Wn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zn(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Kn(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var er=function(t){Kn(e,t);function e(r,n){Wn(this,e);var a=Zn(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,r,n));return a.fontSize=!n.flat&&n.fontSize>n.width*10?n.width*10:n.fontSize,a.guardHeight=n.height+a.fontSize/2+n.textMargin,a}return qn(e,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(n,a){return this.text.substr(n,a)}},{key:"leftEncode",value:function(n,a){return(0,Ye.default)(n,a)}},{key:"rightText",value:function(n,a){return this.text.substr(n,a)}},{key:"rightEncode",value:function(n,a){return(0,Ye.default)(n,a)}},{key:"encodeGuarded",value:function(){var n={fontSize:this.fontSize},a={height:this.guardHeight};return[{data:x.SIDE_BIN,options:a},{data:this.leftEncode(),text:this.leftText(),options:n},{data:x.MIDDLE_BIN,options:a},{data:this.rightEncode(),text:this.rightText(),options:n},{data:x.SIDE_BIN,options:a}]}},{key:"encodeFlat",value:function(){var n=[x.SIDE_BIN,this.leftEncode(),x.MIDDLE_BIN,this.rightEncode(),x.SIDE_BIN];return{data:n.join(""),text:this.text}}}]),e}(Qn.default);Q.default=er;Object.defineProperty(be,"__esModule",{value:!0});var tr=function(){function t(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),j=function t(e,r,n){e===null&&(e=Function.prototype);var a=Object.getOwnPropertyDescriptor(e,r);if(a===void 0){var i=Object.getPrototypeOf(e);return i===null?void 0:t(i,r,n)}else{if("value"in a)return a.value;var o=a.get;return o===void 0?void 0:o.call(n)}},nr=v,rr=Q,ar=ir(rr);function ir(t){return t&&t.__esModule?t:{default:t}}function or(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ur(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function fr(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Qe=function(e){var r=e.substr(0,12).split("").map(function(n){return+n}).reduce(function(n,a,i){return i%2?n+a*3:n+a},0);return(10-r%10)%10},cr=function(t){fr(e,t);function e(r,n){or(this,e),r.search(/^[0-9]{12}$/)!==-1&&(r+=Qe(r));var a=ur(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,r,n));return a.lastChar=n.lastChar,a}return tr(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{13}$/)!==-1&&+this.data[12]===Qe(this.data)}},{key:"leftText",value:function(){return j(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var n=this.data.substr(1,6),a=nr.EAN13_STRUCTURE[this.data[0]];return j(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,n,a)}},{key:"rightText",value:function(){return j(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var n=this.data.substr(7,6);return j(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,n,"RRRRRR")}},{key:"encodeGuarded",value:function(){var n=j(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(n.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(n.push({data:"00"}),n.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),n}}]),e}(ar.default);be.default=cr;var we={};
1Object.defineProperty(we,"__esModule",{value:!0});var lr=function(){function t(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),X=function t(e,r,n){e===null&&(e=Function.prototype);var a=Object.getOwnPropertyDescriptor(e,r);if(a===void 0){var i=Object.getPrototypeOf(e);return i===null?void 0:t(i,r,n)}else{if("value"in a)return a.value;var o=a.get;return o===void 0?void 0:o.call(n)}},hr=Q,dr=_r(hr);function _r(t){return t&&t.__esModule?t:{default:t}}function vr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yr(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function sr(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var We=function(e){var r=e.substr(0,7).split("").map(function(n){return+n}).reduce(function(n,a,i){return i%2?n+a:n+a*3},0);return(10-r%10)%10},pr=function(t){sr(e,t);function e(r,n){return vr(this,e),r.search(/^[0-9]{7}$/)!==-1&&(r+=We(r)),yr(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,r,n))}return lr(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{8}$/)!==-1&&+this.data[7]===We(this.data)}},{key:"leftText",value:function(){return X(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var n=this.data.substr(0,4);return X(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,n,"LLLL")}},{key:"rightText",value:function(){return X(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var n=this.data.substr(4,4);return X(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,n,"RRRR")}}]),e}(dr.default);we.default=pr;var me={};Object.defineProperty(me,"__esModule",{value:!0});var gr=function(){function t(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),Or=v,Er=w,br=gt(Er),wr=c,mr=gt(wr);function gt(t){return t&&t.__esModule?t:{default:t}}function $r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xr(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Sr(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Ar=function(e){var r=e.split("").map(function(n){return+n}).reduce(function(n,a,i){return i%2?n+a*9:n+a*3},0);return r%10},Rr=function(t){Sr(e,t);function e(r,n){return $r(this,e),xr(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,r,n))}return gr(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:"encode",value:function(){var n=Or.EAN5_STRUCTURE[Ar(this.data)];return{data:"1011"+(0,br.default)(this.data,n,"01"),text:this.text}}}]),e}(mr.default);me.default=Rr;var $e={};Object.defineProperty($e,"__esModule",{value:!0});var Pr=function(){function t(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),Tr=v,Mr=w,Ir=Ot(Mr),kr=c,Dr=Ot(kr);function Ot(t){return t&&t.__esModule?t:{default:t}}function jr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Br(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Lr(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Cr=function(t){Lr(e,t);function e(r,n){return jr(this,e),Br(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,r,n))}return Pr(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:"encode",value:function(){var n=Tr.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,Ir.default)(this.data,n,"01"),text:this.text}}}]),e}(Dr.default);$e.default=Cr;var C={};Object.defineProperty(C,"__esModule",{value:!0});var Nr=function(){function t(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();C.checksum=he;var Gr=w,S=Et(Gr),Fr=c,Hr=Et(Fr);function Et(t){return t&&t.__esModule?t:{default:t}}function Xr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zr(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Ur(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Vr=function(t){Ur(e,t);function e(r,n){Xr(this,e),r.search(/^[0-9]{11}$/)!==-1&&(r+=he(r));var a=zr(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,r,n));return a.displayValue=n.displayValue,n.fontSize>n.width*10?a.fontSize=n.width*10:a.fontSize=n.fontSize,a.guardHeight=n.height+a.fontSize/2+n.textMargin,a}return Nr(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==he(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var n="";return n+="101",n+=(0,S.default)(this.data.substr(0,6),"LLLLLL"),n+="01010",n+=(0,S.default)(this.data.substr(6,6),"RRRRRR"),n+="101",{data:n,text:this.text}}},{key:"guardedEncoding",value:function(){var n=[];return this.displayValue&&n.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),n.push({data:"101"+(0,S.default)(this.data[0],"L"),options:{height:this.guardHeight}}),n.push({data:(0,S.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),n.push({data:"01010",options:{height:this.guardHeight}}),n.push({data:(0,S.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),n.push({data:(0,S.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&n.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),n}}]),e}(Hr.default);function he(t){var e=0,r;for(r=1;r<11;r+=2)e+=parseInt(t[r]);for(r=0;r<11;r+=2)e+=parseInt(t[r])*3;return(10-e%10)%10}C.default=Vr;var xe={};
1Object.defineProperty(xe,"__esModule",{value:!0});var qr=function(){function t(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),Jr=w,Yr=bt(Jr),Qr=c,Wr=bt(Qr),Zr=C;function bt(t){return t&&t.__esModule?t:{default:t}}function Kr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fe(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function ea(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var ta=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],na=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],ra=function(t){ea(e,t);function e(r,n){Kr(this,e);var a=fe(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,r,n));if(a.isValid=!1,r.search(/^[0-9]{6}$/)!==-1)a.middleDigits=r,a.upcA=Ze(r,"0"),a.text=n.text||""+a.upcA[0]+r+a.upcA[a.upcA.length-1],a.isValid=!0;else if(r.search(/^[01][0-9]{7}$/)!==-1)if(a.middleDigits=r.substring(1,r.length-1),a.upcA=Ze(a.middleDigits,r[0]),a.upcA[a.upcA.length-1]===r[r.length-1])a.isValid=!0;else return fe(a);else return fe(a);return a.displayValue=n.displayValue,n.fontSize>n.width*10?a.fontSize=n.width*10:a.fontSize=n.fontSize,a.guardHeight=n.height+a.fontSize/2+n.textMargin,a}return qr(e,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var n="";return n+="101",n+=this.encodeMiddleDigits(),n+="010101",{data:n,text:this.text}}},{key:"guardedEncoding",value:function(){var n=[];return this.displayValue&&n.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),n.push({data:"101",options:{height:this.guardHeight}}),n.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),n.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&n.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),n}},{key:"encodeMiddleDigits",value:function(){var n=this.upcA[0],a=this.upcA[this.upcA.length-1],i=na[parseInt(a)][parseInt(n)];return(0,Yr.default)(this.middleDigits,i)}}]),e}(Wr.default);function Ze(t,e){for(var r=parseInt(t[t.length-1]),n=ta[r],a="",i=0,o=0;o<n.length;o++){var u=n[o];u==="X"?a+=t[i++]:a+=u}return a=""+e+a,""+a+(0,Zr.checksum)(a)}xe.default=ra;Object.defineProperty(l,"__esModule",{value:!0});l.UPCE=l.UPC=l.EAN2=l.EAN5=l.EAN8=l.EAN13=void 0;var aa=be,ia=M(aa),oa=we,ua=M(oa),fa=me,ca=M(fa),la=$e,ha=M(la),da=C,_a=M(da),va=xe,ya=M(va);function M(t){return t&&t.__esModule?t:{default:t}}l.EAN13=ia.default;l.EAN8=ua.default;l.EAN5=ca.default;l.EAN2=ha.default;l.UPC=_a.default;l.UPCE=ya.default;var R={},W={},N={};Object.defineProperty(N,"__esModule",{value:!0});N.START_BIN="1010";N.END_BIN="11101";N.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"];Object.defineProperty(W,"__esModule",{value:!0});var sa=function(){function t(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),z=N,pa=c,ga=Oa(pa);function Oa(t){return t&&t.__esModule?t:{default:t}}function Ea(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ba(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function wa(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var ma=function(t){wa(e,t);function e(){return Ea(this,e),ba(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return sa(e,[{key:"valid",value:function(){return this.data.search(/^([0-9]{2})+$/)!==-1}},{key:"encode",value:function(){var n=this,a=this.data.match(/.{2}/g).map(function(i){return n.encodePair(i)}).join("");return{data:z.START_BIN+a+z.END_BIN,text:this.text}}},{key:"encodePair",value:function(n){var a=z.BINARIES[n[1]];return z.BINARIES[n[0]].split("").map(function(i,o){return(i==="1"?"111":"1")+(a[o]==="1"?"000":"
10")}).join("")}}]),e}(ga.default);W.default=ma;var Se={};Object.defineProperty(Se,"__esModule",{value:!0});var $a=function(){function t(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),xa=W,Sa=Aa(xa);function Aa(t){return t&&t.__esModule?t:{default:t}}function Ra(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Pa(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Ta(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Ke=function(e){var r=e.substr(0,13).split("").map(function(n){return parseInt(n,10)}).reduce(function(n,a,i){return n+a*(3-i%2*2)},0);return Math.ceil(r/10)*10-r},Ma=function(t){Ta(e,t);function e(r,n){return Ra(this,e),r.search(/^[0-9]{13}$/)!==-1&&(r+=Ke(r)),Pa(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,r,n))}return $a(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===Ke(this.data)}}]),e}(Sa.default);Se.default=Ma;Object.defineProperty(R,"__esModule",{value:!0});R.ITF14=R.ITF=void 0;var Ia=W,ka=wt(Ia),Da=Se,ja=wt(Da);function wt(t){return t&&t.__esModule?t:{default:t}}R.ITF=ka.default;R.ITF14=ja.default;var _={},m={};Object.defineProperty(m,"__esModule",{value:!0});var Ba=function(){function t(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),La=c,Ca=Na(La);function Na(t){return t&&t.__esModule?t:{default:t}}function Ga(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fa(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Ha(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Xa=function(t){Ha(e,t);function e(r,n){return Ga(this,e),Fa(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,r,n))}return Ba(e,[{key:"encode",value:function(){for(var n="110",a=0;a<this.data.length;a++){var i=parseInt(this.data[a]),o=i.toString(2);o=za(o,4-o.length);for(var u=0;u<o.length;u++)n+=o[u]=="0"?"100":"110"}return n+="1001",{data:n,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9]+$/)!==-1}}]),e}(Ca.default);function za(t,e){for(var r=0;r<e;r++)t="0"+t;return t}m.default=Xa;var Ae={},$={};Object.defineProperty($,"__esModule",{value:!0});$.mod10=Ua;$.mod11=Va;function Ua(t){for(var e=0,r=0;r<t.length;r++){var n=parseInt(t[r]);(r+t.length)%2===0?e+=n:e+=n*2%10+Math.floor(n*2/10)}return(10-e%10)%10}function Va(t){for(var e=0,r=[2,3,4,5,6,7],n=0;n<t.length;n++){var a=parseInt(t[t.length-1-n]);e+=r[n%r.length]*a}return(11-e%11)%11}Object.defineProperty(Ae,"__esModule",{value:!0});var qa=m,Ja=Qa(qa),Ya=$;function Qa(t){return t&&t.__esModule?t:{default:t}}function Wa(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Za(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Ka(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var ei=function(t){Ka(e,t);function e(r,n){return Wa(this,e),Za(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,r+(0,Ya.mod10)(r),n))}return e}(Ja.default);Ae.default=ei;var Re={};
1Object.defineProperty(Re,"__esModule",{value:!0});var ti=m,ni=ai(ti),ri=$;function ai(t){return t&&t.__esModule?t:{default:t}}function ii(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function oi(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function ui(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var fi=function(t){ui(e,t);function e(r,n){return ii(this,e),oi(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,r+(0,ri.mod11)(r),n))}return e}(ni.default);Re.default=fi;var Pe={};Object.defineProperty(Pe,"__esModule",{value:!0});var ci=m,li=hi(ci),et=$;function hi(t){return t&&t.__esModule?t:{default:t}}function di(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function vi(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var yi=function(t){vi(e,t);function e(r,n){return di(this,e),r+=(0,et.mod10)(r),r+=(0,et.mod10)(r),_i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,r,n))}return e}(li.default);Pe.default=yi;var Te={};Object.defineProperty(Te,"__esModule",{value:!0});var si=m,pi=gi(si),tt=$;function gi(t){return t&&t.__esModule?t:{default:t}}function Oi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ei(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function bi(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var wi=function(t){bi(e,t);function e(r,n){return Oi(this,e),r+=(0,tt.mod11)(r),r+=(0,tt.mod10)(r),Ei(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,r,n))}return e}(pi.default);Te.default=wi;Object.defineProperty(_,"__esModule",{value:!0});_.MSI1110=_.MSI1010=_.MSI11=_.MSI10=_.MSI=void 0;var mi=m,$i=G(mi),xi=Ae,Si=G(xi),Ai=Re,Ri=G(Ai),Pi=Pe,Ti=G(Pi),Mi=Te,Ii=G(Mi);function G(t){return t&&t.__esModule?t:{default:t}}_.MSI=$i.default;_.MSI10=Si.default;_.MSI11=Ri.default;_.MSI1010=Ti.default;_.MSI1110=Ii.default;var Z={};Object.defineProperty(Z,"__esModule",{value:!0});Z.pharmacode=void 0;var ki=function(){function t(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),Di=c,ji=Bi(Di);function Bi(t){return t&&t.__esModule?t:{default:t}}function Li(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ci(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Ni(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Gi=function(t){Ni(e,t);function e(r,n){Li(this,e);var a=Ci(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,r,n));return a.number=parseInt(r,10),a}return ki(e,[{key:"encode",value:function(){for(var n=this.number,a="";!isNaN(n)&&n!=0;)n%2===0?(a="11100"+a,n=(n-2)/2):(a="100"+a,n=(n-1)/2);return a=a.slice(0,-2),{data:a,text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),e}(ji.default);Z.pharmacode=Gi;var K={};Object.defineProperty(K,"__esModule",{value:!0});K.codabar=void 0;var Fi=function(){function t(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),Hi=c,Xi=zi(Hi);function zi(t){return t&&t.__esModule?t:{default:t}}function Ui(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Vi(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function qi(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Ji=function(t){qi(e,t);function e(r,n){Ui(this,e),r.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(r="A"+r+"A");var a=Vi(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,r.toUpperCase(),n));return a.text=a.options.text||a.text.replace(/[A-D]/g,""),a}return Fi(e,[{key:"valid",value:function(){return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)!==-1}},{key:"encode",value:function(){for(var n=[],a=this.getEncodings(),i=0;i<this.data.length;i++)n.push(a[this.data.charAt(i)]),i!==this.data.length-1&&n.push("0");return{text:this.text,data:n.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}(Xi.default);K.codabar=Ji;var P={},ee={},F={};Object.defineProperty(F,"__esModule",{value:!0});F.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","-","."," ","$","/","+","%","($)","(%)","(/)","(+)","ÿ"];F.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"];F.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"],"'"
1:["(/)","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"]};Object.defineProperty(ee,"__esModule",{value:!0});var Yi=function(){function t(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),U=F,Qi=c,Wi=Zi(Qi);function Zi(t){return t&&t.__esModule?t:{default:t}}function Ki(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function eo(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function to(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var no=function(t){to(e,t);function e(r,n){return Ki(this,e),eo(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,r,n))}return Yi(e,[{key:"valid",value:function(){return/^[0-9A-Z\-. $/+%]+$/.test(this.data)}},{key:"encode",value:function(){var n=this.data.split("").flatMap(function(u){return U.MULTI_SYMBOLS[u]||u}),a=n.map(function(u){return e.getEncoding(u)}).join(""),i=e.checksum(n,20),o=e.checksum(n.concat(i),15);return{text:this.text,data:e.getEncoding("ÿ")+a+e.getEncoding(i)+e.getEncoding(o)+e.getEncoding("ÿ")+"1"}}}],[{key:"getEncoding",value:function(n){return U.BINARIES[e.symbolValue(n)]}},{key:"getSymbol",value:function(n){return U.SYMBOLS[n]}},{key:"symbolValue",value:function(n){return U.SYMBOLS.indexOf(n)}},{key:"checksum",value:function(n,a){var i=n.slice().reverse().reduce(function(o,u,y){var g=y%a+1;return o+e.symbolValue(u)*g},0);return e.getSymbol(i%47)}}]),e}(Wi.default);ee.default=no;var Me={};Object.defineProperty(Me,"__esModule",{value:!0});var ro=function(){function t(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),ao=ee,io=oo(ao);function oo(t){return t&&t.__esModule?t:{default:t}}function uo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fo(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function co(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var lo=function(t){co(e,t);function e(r,n){return uo(this,e),fo(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,r,n))}return ro(e,[{key:"valid",value:function(){return/^[\x00-\x7f]+$/.test(this.data)}}]),e}(io.default);Me.default=lo;Object.defineProperty(P,"__esModule",{value:!0});P.CODE93FullASCII=P.CODE93=void 0;var ho=ee,_o=mt(ho),vo=Me,yo=mt(vo);function mt(t){return t&&t.__esModule?t:{default:t}}P.CODE93=_o.default;P.CODE93FullASCII=yo.default;var te={};Object.defineProperty(te,"__esModule",{value:!0});te.GenericBarcode=void 0;var so=function(){function t(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),po=c,go=Oo(po);function Oo(t){return t&&t.__esModule?t:{default:t}}function Eo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bo(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function wo(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var mo=function(t){wo(e,t);function e(r,n){return Eo(this,e),bo(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,r,n))}return so(e,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),e}(go.default);te.GenericBarcode=mo;
1Object.defineProperty(ve,"__esModule",{value:!0});var $o=J,V=s,A=l,nt=R,B=_,xo=Z,So=K,rt=P,Ao=te;ve.default={CODE39:$o.CODE39,CODE128:V.CODE128,CODE128A:V.CODE128A,CODE128B:V.CODE128B,CODE128C:V.CODE128C,EAN13:A.EAN13,EAN8:A.EAN8,EAN5:A.EAN5,EAN2:A.EAN2,UPC:A.UPC,UPCE:A.UPCE,ITF14:nt.ITF14,ITF:nt.ITF,MSI:B.MSI,MSI10:B.MSI10,MSI11:B.MSI11,MSI1010:B.MSI1010,MSI1110:B.MSI1110,pharmacode:xo.pharmacode,codabar:So.codabar,CODE93:rt.CODE93,CODE93FullASCII:rt.CODE93FullASCII,GenericBarcode:Ao.GenericBarcode};var I={};Object.defineProperty(I,"__esModule",{value:!0});var Ro=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};I.default=function(t,e){return Ro({},t,e)};var Ie={};Object.defineProperty(Ie,"__esModule",{value:!0});Ie.default=Po;function Po(t){var e=[];function r(n){if(Array.isArray(n))for(var a=0;a<n.length;a++)r(n[a]);else n.text=n.text||"",n.data=n.data||"",e.push(n)}return r(t),e}var ke={};Object.defineProperty(ke,"__esModule",{value:!0});ke.default=To;function To(t){return t.marginTop=t.marginTop||t.margin,t.marginBottom=t.marginBottom||t.margin,t.marginRight=t.marginRight||t.margin,t.marginLeft=t.marginLeft||t.margin,t}var De={},je={},ne={};Object.defineProperty(ne,"__esModule",{value:!0});ne.default=Mo;function Mo(t){var e=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var r in e)e.hasOwnProperty(r)&&(r=e[r],typeof t[r]=="string"&&(t[r]=parseInt(t[r],10)));return typeof t.displayValue=="string"&&(t.displayValue=t.displayValue!="false"),t}var re={};Object.defineProperty(re,"__esModule",{value:!0});var Io={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(){}};re.default=Io;Object.defineProperty(je,"__esModule",{value:!0});var ko=ne,Do=$t(ko),jo=re,at=$t(jo);function $t(t){return t&&t.__esModule?t:{default:t}}function Bo(t){var e={};for(var r in at.default)at.default.hasOwnProperty(r)&&(t.hasAttribute("jsbarcode-"+r.toLowerCase())&&(e[r]=t.getAttribute("jsbarcode-"+r.toLowerCase())),t.hasAttribute("data-"+r.toLowerCase())&&(e[r]=t.getAttribute("data-"+r.toLowerCase())));return e.value=t.getAttribute("jsbarcode-value")||t.getAttribute("data-value"),e=(0,Do.default)(e),e}je.default=Bo;var Be={},Le={},d={};Object.defineProperty(d,"__esModule",{value:!0});d.getTotalWidthOfEncodings=d.calculateEncodingAttributes=d.getBarcodePadding=d.getEncodingHeight=d.getMaximumHeightOfEncodings=void 0;var Lo=I,Co=No(Lo);function No(t){return t&&t.__esModule?t:{default:t}}function xt(t,e){return e.height+(e.displayValue&&t.text.length>0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom}function St(t,e,r){if(r.displayValue&&e<t){if(r.textAlign=="center")return Math.floor((t-e)/2);if(r.textAlign=="left")return 0;if(r.textAlign=="right")return Math.floor(t-e)}return 0}function Go(t,e,r){for(var n=0;n<t.length;n++){var a=t[n],i=(0,Co.default)(e,a.options),o;i.displayValue?o=Xo(a.text,i,r):o=0;var u=a.data.length*i.width;a.width=Math.ceil(Math.max(o,u)),a.height=xt(a,i),a.barcodePadding=St(o,u,i)}}function Fo(t){for(var e=0,r=0;r<t.length;r++)e+=t[r].width;return e}function Ho(t){for(var e=0,r=0;r<t.length;r++)t[r].height>e&&(e=t[r].height);return e}function Xo(t,e,r){var n;if(r)n=r;else if(typeof document<"u")n=document.createElement("canvas").getContext("2d");else return 0;n.font=e.fontOptions+" "+e.fontSize+"px "+e.font;var a=n.measureText(t);if(!a)return 0;var i=a.width;return i}d.getMaximumHeightOfEncodings=Ho;d.getEncodingHeight=xt;d.getBarcodePadding=St;d.calculateEncodingAttributes=Go;d.getTotalWidthOfEncodings=Fo;Object.defineProperty(Le,"__esModule",{value:!0});var zo=function(){function t(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),Uo=I,Vo=qo(Uo),ce=d;function qo(t){return t&&t.__esModule?t:{default:t}}function Jo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Yo=function(){function t(e,r,n){Jo(this,t),this.canvas=e,this.encodings=r,this.options=n}return zo(t,[{key:"render",value:function(){if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");this.prepareCanvas();for(var r=0;r<this.encodings.length;r++){var n=(0,Vo.default)(this.options,this.encodings[r].options);this.drawCanvasBarcode(n,this.encodings[r]),this.drawCanvasText(n,this.encodings[r]),this.moveCanvasDrawing(this.encodings[r])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var r=this.canvas.getContext("2d");r.save(),(0,ce.calculateEncodingAttributes)(this.encodings,this.options,r);var n=(0,ce.getTotalWidthOfEncodings)(this.encodings),a=(0,ce.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=n+this.options.marginLeft+this.options.marginRight,this.canvas.height=a,r.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(r.fillStyle=this.options.background,r.fillRect(0,0,this.canvas.width,this.canvas.height)),r.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(r,n){var a=this.canvas.getContext("2d"),i=n.data,o;r.textPosition=="top"?o=r.marginTop+r.fontSize+r.textMargin:o=r.marginTop,a.fillStyle=r.lineColor;for(var u=0;u<i.length;u++){var y=u*r.width+n.barcodePadding;i[u]==="1"?a.fillRect(y,o,r.width,r.height):i[u]&&a.fillRect(y,o,r.width,r.height*i[u])}}},{key:"drawCanvasText",value:function(r,n){var a=this.canvas.getContext("2d"),i=r.fontOptions+" "+r.fontSize+"px "+r.font;if(r.displayValue){var o,u;r.textPosition=="top"?u=r.marginTop+r.fontSize-r.textMargin:u=r.height+r.textMargin+r.marginTop+r.fontSize,a.font=i,r.textAlign=="left"||n.barcodePadding>0?(o=0,a.textAlign="left"):r.textAlign=="right"?(o=n.width-1,a.textAlign="right"):(o=n.width/2,a.textAlign="center"),a.fillText(n.text,o,u)}}},{key:"moveCanvasDrawing",value:function(r){var n=this.canvas.getContext("2d");n.translate(r.width,0)}},{key:"restoreCanvas",value:function(){var r=this.canvas.getContext("2d");
1r.restore()}}]),t}();Le.default=Yo;var Ce={};Object.defineProperty(Ce,"__esModule",{value:!0});var Qo=function(){function t(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),Wo=I,Zo=Ko(Wo),le=d;function Ko(t){return t&&t.__esModule?t:{default:t}}function eu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var q="http://www.w3.org/2000/svg",tu=function(){function t(e,r,n){eu(this,t),this.svg=e,this.encodings=r,this.options=n,this.document=n.xmlDocument||document}return Qo(t,[{key:"render",value:function(){var r=this.options.marginLeft;this.prepareSVG();for(var n=0;n<this.encodings.length;n++){var a=this.encodings[n],i=(0,Zo.default)(this.options,a.options),o=this.createGroup(r,i.marginTop,this.svg);this.setGroupOptions(o,i),this.drawSvgBarcode(o,i,a),this.drawSVGText(o,i,a),r+=a.width}}},{key:"prepareSVG",value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,le.calculateEncodingAttributes)(this.encodings,this.options);var r=(0,le.getTotalWidthOfEncodings)(this.encodings),n=(0,le.getMaximumHeightOfEncodings)(this.encodings),a=r+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(a,n),this.options.background&&this.drawRect(0,0,a,n,this.svg).setAttribute("style","fill:"+this.options.background+";")}},{key:"drawSvgBarcode",value:function(r,n,a){var i=a.data,o;n.textPosition=="top"?o=n.fontSize+n.textMargin:o=0;for(var u=0,y=0,g=0;g<i.length;g++)y=g*n.width+a.barcodePadding,i[g]==="1"?u++:u>0&&(this.drawRect(y-n.width*u,o,n.width*u,n.height,r),u=0);u>0&&this.drawRect(y-n.width*(u-1),o,n.width*u,n.height,r)}},{key:"drawSVGText",value:function(r,n,a){var i=this.document.createElementNS(q,"text");if(n.displayValue){var o,u;i.setAttribute("style","font:"+n.fontOptions+" "+n.fontSize+"px "+n.font),n.textPosition=="top"?u=n.fontSize-n.textMargin:u=n.height+n.textMargin+n.fontSize,n.textAlign=="left"||a.barcodePadding>0?(o=0,i.setAttribute("text-anchor","start")):n.textAlign=="right"?(o=a.width-1,i.setAttribute("text-anchor","end")):(o=a.width/2,i.setAttribute("text-anchor","middle")),i.setAttribute("x",o),i.setAttribute("y",u),i.appendChild(this.document.createTextNode(a.text)),r.appendChild(i)}}},{key:"setSvgAttributes",value:function(r,n){var a=this.svg;a.setAttribute("width",r+"px"),a.setAttribute("height",n+"px"),a.setAttribute("x","0px"),a.setAttribute("y","0px"),a.setAttribute("viewBox","0 0 "+r+" "+n),a.setAttribute("xmlns",q),a.setAttribute("version","1.1"),a.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(r,n,a){var i=this.document.createElementNS(q,"g");return i.setAttribute("transform","translate("+r+", "+n+")"),a.appendChild(i),i}},{key:"setGroupOptions",value:function(r,n){r.setAttribute("style","fill:"+n.lineColor+";")}},{key:"drawRect",value:function(r,n,a,i,o){var u=this.document.createElementNS(q,"rect");return u.setAttribute("x",r),u.setAttribute("y",n),u.setAttribute("width",a),u.setAttribute("height",i),o.appendChild(u),u}}]),t}();Ce.default=tu;var Ne={};Object.defineProperty(Ne,"__esModule",{value:!0});var nu=function(){function t(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();function ru(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var au=function(){function t(e,r,n){ru(this,t),this.object=e,this.encodings=r,this.options=n}return nu(t,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),t}();Ne.default=au;Object.defineProperty(Be,"__esModule",{value:!0});var iu=Le,ou=Ge(iu),uu=Ce,fu=Ge(uu),cu=Ne,lu=Ge(cu);function Ge(t){return t&&t.__esModule?t:{default:t}}Be.default={CanvasRenderer:ou.default,SVGRenderer:fu.default,ObjectRenderer:lu.default};var k={};Object.defineProperty(k,"__esModule",{value:!0});function Fe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function He(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Xe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var hu=function(t){Xe(e,t);function e(r,n){Fe(this,e);var a=He(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return a.name="InvalidInputException",a.symbology=r,a.input=n,a.message='"'+a.input+'" is not a valid input for '+a.symbology,a}return e}(Error),du=function(t){Xe(e,t);function e(){Fe(this,e);var r=He(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return r.name="InvalidElementException",r.message="Not supported type to render on",r}return e}(Error),_u=function(t){Xe(e,t);function e(){Fe(this,e);var r=He(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return r.name="NoElementException",r.message="No element to render on.",r}return e}(Error);k.InvalidInputException=hu;k.InvalidElementException=du;k.NoElementException=_u;
1Object.defineProperty(De,"__esModule",{value:!0});var vu=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},yu=je,de=At(yu),su=Be,L=At(su),pu=k;function At(t){return t&&t.__esModule?t:{default:t}}function ze(t){if(typeof t=="string")return gu(t);if(Array.isArray(t)){for(var e=[],r=0;r<t.length;r++)e.push(ze(t[r]));return e}else{if(typeof HTMLCanvasElement<"u"&&t instanceof HTMLImageElement)return Ou(t);if(t&&t.nodeName&&t.nodeName.toLowerCase()==="svg"||typeof SVGElement<"u"&&t instanceof SVGElement)return{element:t,options:(0,de.default)(t),renderer:L.default.SVGRenderer};if(typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement)return{element:t,options:(0,de.default)(t),renderer:L.default.CanvasRenderer};if(t&&t.getContext)return{element:t,renderer:L.default.CanvasRenderer};if(t&&(typeof t>"u"?"undefined":vu(t))==="object"&&!t.nodeName)return{element:t,renderer:L.default.ObjectRenderer};throw new pu.InvalidElementException}}function gu(t){var e=document.querySelectorAll(t);if(e.length!==0){for(var r=[],n=0;n<e.length;n++)r.push(ze(e[n]));return r}}function Ou(t){var e=document.createElement("canvas");return{element:e,options:(0,de.default)(t),renderer:L.default.CanvasRenderer,afterRender:function(){t.setAttribute("src",e.toDataURL())}}}De.default=ze;var Ue={};Object.defineProperty(Ue,"__esModule",{value:!0});var Eu=function(){function t(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();function bu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var wu=function(){function t(e){bu(this,t),this.api=e}return Eu(t,[{key:"handleCatch",value:function(r){if(r.name==="InvalidInputException")if(this.api._options.valid!==this.api._defaults.valid)this.api._options.valid(!1);else throw r.message;else throw r;this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(r){try{var n=r.apply(void 0,arguments);return this.api._options.valid(!0),n}catch(a){return this.handleCatch(a),this.api}}}]),t}();Ue.default=wu;var mu=ve,b=E(mu),$u=I,H=E($u),xu=Ie,Rt=E(xu),Su=ke,it=E(Su),Au=De,Ru=E(Au),Pu=ne,Tu=E(Pu),Mu=Ue,Iu=E(Mu),Pt=k,ku=re,Tt=E(ku);function E(t){return t&&t.__esModule?t:{default:t}}var p=function(){},ae=function(e,r,n){var a=new p;if(typeof e>"u")throw Error("No element to render on was provided.");return a._renderProperties=(0,Ru.default)(e),a._encodings=[],a._options=Tt.default,a._errorHandler=new Iu.default(a),typeof r<"u"&&(n=n||{},n.format||(n.format=It()),a.options(n)[n.format](r,n).render()),a};ae.getModule=function(t){return b.default[t]};for(var ot in b.default)b.default.hasOwnProperty(ot)&&Du(b.default,ot);function Du(t,e){p.prototype[e]=p.prototype[e.toUpperCase()]=p.prototype[e.toLowerCase()]=function(r,n){var a=this;return a._errorHandler.wrapBarcodeCall(function(){n.text=typeof n.text>"u"?void 0:""+n.text;var i=(0,H.default)(a._options,n);i=(0,Tu.default)(i);var o=t[e],u=Mt(r,o,i);return a._encodings.push(u),a})}}function Mt(t,e,r){t=""+t;var n=new e(t,r);
1if(!n.valid())throw new Pt.InvalidInputException(n.constructor.name,t);var a=n.encode();a=(0,Rt.default)(a);for(var i=0;i<a.length;i++)a[i].options=(0,H.default)(r,a[i].options);return a}function It(){return b.default.CODE128?"CODE128":Object.keys(b.default)[0]}p.prototype.options=function(t){return this._options=(0,H.default)(this._options,t),this};p.prototype.blank=function(t){var e=new Array(t+1).join("0");return this._encodings.push({data:e}),this};p.prototype.init=function(){if(this._renderProperties){Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]);var t;for(var e in this._renderProperties){t=this._renderProperties[e];var r=(0,H.default)(this._options,t.options);r.format=="auto"&&(r.format=It()),this._errorHandler.wrapBarcodeCall(function(){var n=r.value,a=b.default[r.format.toUpperCase()],i=Mt(n,a,r);_e(t,i,r)})}}};p.prototype.render=function(){if(!this._renderProperties)throw new Pt.NoElementException;if(Array.isArray(this._renderProperties))for(var t=0;t<this._renderProperties.length;t++)_e(this._renderProperties[t],this._encodings,this._options);else _e(this._renderProperties,this._encodings,this._options);return this};p.prototype._defaults=Tt.default;function _e(t,e,r){e=(0,Rt.default)(e);for(var n=0;n<e.length;n++)e[n].options=(0,H.default)(r,e[n].options),(0,it.default)(e[n].options);(0,it.default)(r);var a=t.renderer,i=new a(t.element,e,r);i.render(),t.afterRender&&t.afterRender()}typeof window<"u"&&(window.JsBarcode=ae);typeof jQuery<"u"&&(jQuery.fn.JsBarcode=function(t,e){var r=[];return jQuery(this).each(function(){r.push(this)}),ae(r,t,e)});var ju=ae;export{ju as J};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.