1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,30957,t=>{"use strict";var e=t.i(414095),r=t.i(761703),n=t.i(39726);t.s(["usePatron",0,()=>{let t=(()=>{let{user:t,rediaPlatform:r}=(0,n.useRediaPlatformContext)(),o=t?.identifiers?.[0]?.value,i=t&&r&&o?[n.swrUserNamespace,o,"profile"]:null;return(0,e.default)(i,()=>r?.refreshPatron())})(),o=(t=>{let{rediaPlatform:e}=(0,n.useRediaPlatformContext)(),o=t&&e?["rediaPlatform:branches",t]:null;return(0,r.default)(o,([,t])=>e?.getBranch(t))})(t.data?.pickupLocation.branch.code),i=t.isLoading||o.isLoading,a=t.error??o.error,u=!i&&t.data?{user:t.data,branch:o.data}:void 0;return{isLoading:i,error:a,data:u,mutate:t.mutate}}])},17268,t=>{"use strict";var e=t.i(788536),r=t.i(372316),n=t.i(733627),o=t.i(566105),i=t.i(210010),a=t.i(963219),u=t.i(477179),s=t.i(80431),l=t.i(853367),c=t.i(953810),f=t.i(584094),d=t.i(30957);let p=t=>(0,e.jsxs)("svg",{width:"1em",height:"1em",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[(0,e.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.25 11C22.25 10.5858 22.5858 10.25 23 10.25H29C29.4142 10.25 29.75 10.5858 29.75 11V17C29.75 17.4142 29.4142 17.75 29 17.75C28.5858 17.75 28.25 17.4142 28.25 17V12.8107L22.5303 18.5303C22.2374 18.8232 21.7626 18.8232 21.4697 18.5303C21.1768 18.2374 21.1768 17.7626 21.4697 17.4697L27.1893 11.75H23C22.5858 11.75 22.25 11.4142 22.25 11ZM18.5303 21.4697C18.8232 21.7626 18.8232 22.2374 18.5303 22.5303L12.8107 28.25H17C17.4142 28.25 17.75 28.5858 17.75 29C17.75 29.4142 17.4142 29.75 17 29.75H11C10.5858 29.75 10.25 29.4142 10.25 29V23C10.25 22.5858 10.5858 22.25 11 22.25C11.4142 22.25 11.75 22.5858 11.75 23V27.1893L17.4697 21.4697C17.7626 21.1768 18.2374 21.1768 18.5303 21.4697Z",fill:"currentColor"}),(0,e.jsx)("rect",{x:"0.5",y:"0.5",width:"39",height:"39",rx:"3.5",stroke:"currentColor"})]});var h=t.i(508739),b=t.i(432967),y=t.i(564486);let v=({cardNumber:t,height:o=100,width:i=1,fontSize:a=20})=>{let{t:u}=(0,c.useTranslation)(),s=(0,y.useRef)(null);return((0,y.useEffect)(()=>{s.current&&t&&(0,b.default)(s.current,t,{format:"CODE39",height:o,width:i,fontSize:a})},[t,o,i,a]),t)?(0,e.jsx)("svg",{ref:s}):(0,e.jsxs)(n.Flex,{flexDirection:"column",alignItems:"center",children:[(0,e.jsx)(r.Box,{children:u("Kortnummer mangler.")}),(0,e.jsx)(r.Box,{children:u("Kan ikke generere strekkode.")})]})},_=t=>t?.find(({type:t})=>"norway_national_library_card"===t)?.value??t?.find(({type:t})=>"local"===t)?.value,g=({cardNumber:t,isOpen:r,onClose:o})=>{let{t:i}=(0,c.useTranslation)();return(0,e.jsx)(f.DialogLC,{modalContentProps:{height:"auto",minHeight:"50vh",margin:0},modalBodyProps:{paddingX:0},heading:i("Mitt bibliotekkort"),open:r,onOpenChange:o,placement:"center",children:(0,e.jsx)(n.Flex,{justifyContent:"center",children:(0,e.jsx)(v,{cardNumber:t,width:1.5})})})};t.s(["default",0,()=>{let{t}=(0,c.useTranslation)(),{data:f,isLoading:b}=(0,d.usePatron)(),{open:y,onOpen:O,onClose:x}=(0,s.useDisclosure)(),m=_(f?.user.identifiers);return(0,e.jsx)(u.Stack,{gap:{base:"1rem",md:"1rem"},children:(0,e.jsx)(n.Flex,{background:h.minsideColors.libraryCard,padding:"2rem",justifyContent:"center",alignItems:"center",borderRadius:"lg",children:(0,e.jsxs)(u.Stack,{width:"100%",gap:{base:"1rem",md:"2rem"},children:[(0,e.jsxs)(n.Flex,{justifyContent:"space-between",children:[(0,e.jsx)(o.Heading,{fontSize:"xl",children:t("Mitt bibliotekkort")}),(0,e.jsx)(l.IconButtonBS,{variant:"tertiary",size:"xs",onClick:O,display:{lg:"none"},"aria-label":t("Vis bibliotekkort i fullskjerm"),"aria-expanded":y,children:(0,e.jsx)(i.Icon,{asChild:!0,height:"1em",width:"1em",fontSize:"1.5rem",children:(0,e.jsx)(p,{})})})]}),(0,e.jsx)(n.Flex,{flexDir:"column",alignSelf:"center",justifyContent:"center",background:"white",width:{base:"100%",md:"20rem"},height:"10rem",borderRadius:"lg",children:(0,e.jsxs)(n.Flex,{flexGrow:"1",justifyContent:"center",alignItems:"center",flexDir:"column",children:[(0,e.jsx)(r.Box,{children:b?(0,e.jsx)(a.Spinner,{}):(0,e.jsx)(v,{cardNumber:m})}),(0,e.jsx)(g,{isOpen:y,onClose:x,cardNumber:m})]})})]})})})},"getNationalOrLocalIdentifier",0,_],17268)},127412,(t,e,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0}),r.default=function t(e,r){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.data=e,this.text=r.text||e,this.options=r}},985131,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.CODE39=void 0;var n,o=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);function e(t,r){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");t=t.toUpperCase(),r.mod43&&(t+=a[function(t){for(var e=0,r=0;r<t.length;r++)e+=l(t[r]);return e%43}(t)]);var n=(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r);if(!this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&("object"==typeof n||"function"==typeof n)?n:this}return 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),o(e,[{key:"encode",value:function(){for(var t=s("*"),e=0;e<this.data.length;e++)t+=s(this.data[e])+"0";return{data:t+=s("*"),text:this.text}}},{key:"valid",value:function(){return -1!==this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)}}]),e}(((n=t.r(127412))&&n.__esModule?n:{default:n}).default),a=["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","-","."," ","$","/","+","%","*"],u=[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 s(t){return u[l(t)].toString(2)}function l(t){return a.indexOf(t)}r.CODE39=i},687757,(t,e,r)=>{"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Object.defineProperty(r,"__esModule",{value:!0});var o,i=r.SET_A=0,a=r.SET_B=1,u=r.SET_C=2;r.SHIFT=98;var s=r.START_A=103,l=r.START_B=104,c=r.START_C=105;r.MODULO=103,r.STOP=106,r.FNC1=207,n(o={},s,i),n(o,l,a),n(o,c,u),r.SET_BY_CODE=o,r.SWAP={101:i,100:a,99:u},r.A_START_CHAR=String.fromCharCode(208),r.B_START_CHAR=String.fromCharCode(209),r.C_START_CHAR=String.fromCharCode(210),r.A_CHARS="[\0-_Ã-Ã]",r.B_CHARS="[ -�Ã-Ã]",r.C_CHARS="(Ã*[0-9]{2}Ã*)",r.BARS=[0x2904e8b0c,0x28fb77b2c,0x28fb7774e,10010011e3,0x254a47ecc,0x2541b2a8c,10011001e3,0x254b3bd24,0x2541cad44,11001001e3,0x28fb5f0a4,0x28fa83504,0x25a9a86dc,0x254b3e81c,0x254b3c116,0x25aa9a20c,0x254b547ac,0x254b543ce,0x28fb79dfa,0x28fb61b9c,0x28fb5f496,0x290500dc4,0x28fb79e54,0x295ad5c36,0x295abd58c,0x2959e19ec,0x2959e160e,0x295ad5844,0x2959e3d14,0x2959e3cba,11011011e3,0x2904e872e,0x28fa85c1e,10100011e3,10001011e3,0x2541b26ae,10110001e3,10001101e3,0x2541cacea,11010001e3,11000101e3,0x28fa834aa,10110111e3,0x25a9a5fd6,0x2541cb136,10111011e3,0x25aa99e2e,0x2541cd45e,0x295ad7f5e,0x2903f48d6,0x28fa838f6,11011101e3,0x290500d6a,0x2905011b6,11101011e3,0x295abd1ae,0x2959cb67e,11101101e3,0x295ad57ea,0x2959cba02,0x295ad82e2,0x28fb5f04a,0x296352972,1010011e4,0x25a01c94c,1001011e4,0x254a47aee,0x2540d6eec,0x2540d6b0e,1011001e4,0x25a9a5be4,1001101e4,0x254b3bcca,0x2540d9214,0x2540d91ba,0x28fa6d51a,1100101e4,0x29636d722,0x28fa6d574,0x2541cd7e2,0x25a0376fc,0x254a62c7c,0x254a4a5e6,0x25aab24c4,0x254b56ad4,0x254b56a7a,0x29636ac84,0x296354cf4,0x296354c9a,0x2904eb226,0x2905034de,0x29636d39e,10101111e3,0x25a01f066,0x2541b51a6,10111101e3,0x25aab246a,11110101e3,0x29636ac2a,0x25aa9c926,0x25aab28b6,0x295abfca6,0x29636b076,0x2903f44e4,1101001e4,0x2903f6fdc,0x1001dc55b53]},629726,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,o=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=(n=t.r(127412))&&n.__esModule?n:{default:n},a=t.r(687757);r.default=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);function e(t,r){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");var n=function(t,e){if(!t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&("object"==typeof e||"function"==typeof e)?e:t}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t.substring(1),r));return n.bytes=t.split("").map(function(t){return t.charCodeAt(0)}),n}return 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),o(e,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var t=this.bytes,r=t.shift()-105,n=a.SET_BY_CODE[r];if(void 0===n)throw RangeError("The encoding does not start with a start character.");!0===this.shouldEncodeAsEan128()&&t.unshift(a.FNC1);var o=e.next(t,1,n);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:e.getBar(r)+o.result+e.getBar((o.checksum+r)%a.MODULO)+e.getBar(a.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var t=this.options.ean128||!1;return"string"==typeof t&&(t="true"===t.toLowerCase()),t}}
1],[{key:"getBar",value:function(t){return a.BARS[t]?a.BARS[t].toString():""}},{key:"correctIndex",value:function(t,e){if(e===a.SET_A){var r=t.shift();return r<32?r+64:r-32}return e===a.SET_B?t.shift()-32:(t.shift()-48)*10+t.shift()-48}},{key:"next",value:function(t,r,n){if(!t.length)return{result:"",checksum:0};var o=void 0,i=void 0;if(t[0]>=200){i=t.shift()-105;var u=a.SWAP[i];void 0!==u?o=e.next(t,r+1,u):((n===a.SET_A||n===a.SET_B)&&i===a.SHIFT&&(t[0]=n===a.SET_A?t[0]>95?t[0]-96:t[0]:t[0]<32?t[0]+96:t[0]),o=e.next(t,r+1,n))}else i=e.correctIndex(t,n),o=e.next(t,r+1,n);var s=e.getBar(i),l=i*r;return{result:s+o.result,checksum:l+o.checksum}}}]),e}(i.default)},376691,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t.r(687757),o=function(t){return t.match(RegExp("^"+n.A_CHARS+"*"))[0].length},i=function(t){return t.match(RegExp("^"+n.B_CHARS+"*"))[0].length},a=function(t){return t.match(RegExp("^"+n.C_CHARS+"*"))[0]};function u(t,e){var r=e?n.A_CHARS:n.B_CHARS,o=t.match(RegExp("^("+r+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(o)return o[1]+String.fromCharCode(204)+s(t.substring(o[1].length));var i=t.match(RegExp("^"+r+"+"))[0];return i.length===t.length?t:i+String.fromCharCode(e?205:206)+u(t.substring(i.length),!e)}function s(t){var e=a(t),r=e.length;if(r===t.length)return t;var n=o(t=t.substring(r))>=i(t);return e+String.fromCharCode(n?206:205)+u(t,n)}r.default=function(t){var e=void 0;if(a(t).length>=2)e=n.C_START_CHAR+s(t);else{var r=o(t)>i(t);e=(r?n.A_START_CHAR:n.B_START_CHAR)+u(t,r)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(t,e){return String.fromCharCode(203)+e})}},921911,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=i(t.r(629726)),o=i(t.r(376691));function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&("object"==typeof e||"function"==typeof e)?e:t}r.default=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);function e(t,r){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");if(/^[\x00-\x7F\xC8-\xD3]+$/.test(t))var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(0,o.default)(t),r));else var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r));return a(n)}return 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),e}(n.default)},161397,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,o=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=(n=t.r(629726))&&n.__esModule?n:{default:n},a=t.r(687757);r.default=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);function e(t,r){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");var n=(e.__proto__||Object.getPrototypeOf(e)).call(this,a.A_START_CHAR+t,r);if(!this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&("object"==typeof n||"function"==typeof n)?n:this}return 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),o(e,[{key:"valid",value:function(){return RegExp("^"+a.A_CHARS+"+$").test(this.data)}}]),e}(i.default)},471184,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,o=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=(n=t.r(629726))&&n.__esModule?n:{default:n},a=t.r(687757);r.default=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);function e(t,r){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");var n=(e.__proto__||Object.getPrototypeOf(e)).call(this,a.B_START_CHAR+t,r);if(!this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&("object"==typeof n||"function"==typeof n)?n:this}return 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),o(e,[{key:"valid",value:function(){return RegExp("^"+a.B_CHARS+"+$").test(this.data)}}]),e}(i.default)},590871,(t,e,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0});var n,o=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=(n=t.r(629726))&&n.__esModule?n:{default:n},a=t.r(687757);r.default=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);function e(t,r){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");var n=(e.__proto__||Object.getPrototypeOf(e)).call(this,a.C_START_CHAR+t,r);if(!this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&("object"==typeof n||"function"==typeof n)?n:this}return 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),o(e,[{key:"valid",value:function(){return RegExp("^"+a.C_CHARS+"+$").test(this.data)}}]),e}(i.default)},537661,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.CODE128C=r.CODE128B=r.CODE128A=r.CODE128=void 0;var n=u(t.r(921911)),o=u(t.r(161397)),i=u(t.r(471184)),a=u(t.r(590871));function u(t){return t&&t.__esModule?t:{default:t}}r.CODE128=n.default,r.CODE128A=o.default,r.CODE128B=i.default,r.CODE128C=a.default},433656,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.SIDE_BIN="101",r.MIDDLE_BIN="01010",r.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"]},r.EAN2_STRUCTURE=["LL","LG","GL","GG"],r.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],r.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"]},702591,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t.r(433656);r.default=function(t,e,r){var o=t.split("").map(function(t,r){return n.BINARIES[e[r]]}).map(function(e,r){return e?e[t[r]]:""});if(r){var i=t.length-1;o=o.map(function(t,e){return e<i?t+r:t})}return o.join("")}},978255,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=t.r(433656),i=a(t.r(702591));function a(t){return t&&t.__esModule?t:{default:t}}r.default=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);function e(t,r){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");var n=function(t,e){if(!t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&("object"==typeof e||"function"==typeof e)?e:t}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r));return n.fontSize=!r.flat&&r.fontSize>10*r.width?10*r.width:r.fontSize,n.guardHeight=r.height+n.fontSize/2+r.textMargin,n}return 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),n(e,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(t,e){return this.text.substr(t,e)}},{key:"leftEncode",value:function(t,e){return(0,i.default)(t,e)}},{key:"rightText",value:function(t,e){return this.text.substr(t,e)}},{key:"rightEncode",value:function(t,e){return(0,i.default)(t,e)}},{key:"encodeGuarded",value:function(){var t={fontSize:this.fontSize},e={height:this.guardHeight};return[{data:o.SIDE_BIN,options:e},{data:this.leftEncode(),text:this.leftText(),options:t},{data:o.MIDDLE_BIN,options:e},{data:this.rightEncode(),text:this.rightText(),options:t},{data:o.SIDE_BIN,options:e}]}},{key:"encodeFlat",value:function(){return{data:[o.SIDE_BIN,this.leftEncode(),o.MIDDLE_BIN,this.rightEncode(),o.S
1IDE_BIN].join(""),text:this.text}}}]),e}(a(t.r(127412)).default)},671035,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,o=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);if(null===i)return;return t(i,r,n)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(n)},a=t.r(433656),u=(n=t.r(978255))&&n.__esModule?n:{default:n},s=function(t){return(10-t.substr(0,12).split("").map(function(t){return+t}).reduce(function(t,e,r){return r%2?t+3*e:t+e},0)%10)%10};r.default=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);function e(t,r){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");-1!==t.search(/^[0-9]{12}$/)&&(t+=s(t));var n=function(t,e){if(!t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&("object"==typeof e||"function"==typeof e)?e:t}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r));return n.lastChar=r.lastChar,n}return 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),o(e,[{key:"valid",value:function(){return -1!==this.data.search(/^[0-9]{13}$/)&&+this.data[12]===s(this.data)}},{key:"leftText",value:function(){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var t=this.data.substr(1,6),r=a.EAN13_STRUCTURE[this.data[0]];return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,t,r)}},{key:"rightText",value:function(){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var t=this.data.substr(7,6);return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,t,"RRRRRR")}},{key:"encodeGuarded",value:function(){var t=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(t.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(t.push({data:"00"}),t.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),t}}]),e}(u.default)},432301,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,o=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);if(null===i)return;return t(i,r,n)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(n)},a=(n=t.r(978255))&&n.__esModule?n:{default:n},u=function(t){return(10-t.substr(0,7).split("").map(function(t){return+t}).reduce(function(t,e,r){return r%2?t+e:t+3*e},0)%10)%10};r.default=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);function e(t,r){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");-1!==t.search(/^[0-9]{7}$/)&&(t+=u(t));var n=(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r);if(!this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&("object"==typeof n||"function"==typeof n)?n:this}return 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),o(e,[{key:"valid",value:function(){return -1!==this.data.search(/^[0-9]{8}$/)&&+this.data[7]===u(this.data)}},{key:"leftText",value:function(){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var t=this.data.substr(0,4);return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,t,"LLLL")}},{key:"rightText",value:function(){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var t=this.data.substr(4,4);return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,t,"RRRR")}}]),e}(a.default)},313492,(t,e,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=t.r(433656),i=a(t.r(702591));function a(t){return t&&t.__esModule?t:{default:t}}r.default=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);function e(t,r){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");var n=(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r);if(!this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&("object"==typeof n||"function"==typeof n)?n:this}return 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),n(e,[{key:"valid",value:function(){return -1!==this.data.search(/^[0-9]{5}$/)}},{key:"encode",value:function(){var t=o.EAN5_STRUCTURE[this.data.split("").map(function(t){return+t}).reduce(function(t,e,r){return r%2?t+9*e:t+3*e},0)%10];return{data:"1011"+(0,i.default)(this.data,t,"01"),text:this.text}}}]),e}(a(t.r(127412)).default)},920895,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=t.r(433656),i=a(t.r(702591));function a(t){return t&&t.__esModule?t:{default:t}}r.default=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);function e(t,r){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");var n=(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r);if(!this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&("object"==typeof n||"function"==typeof n)?n:this}return 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),n(e,[{key:"valid",value:function(){return -1!==this.data.search(/^[0-9]{2}$/)}},{key:"encode",value:function(){var t=o.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,i.default)(this.data,t,"01"),text:this.text}}}]),e}(a(t.r(127412)).default)},636178,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();r.checksum=a;var o=i(t.r(702591));function i(t){return t&&t.__esModule?t:{default:t}}function a(t){var e,r=0;for(e=1;e<11;e+=2)r+=parseInt(t[e]);for(e=0;e<11;e+=2)r+=3*parseInt(t[e]);return(10-r%10)%10}r.default=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);function e(t,r){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");-1!==t.search(/^[0-9]{11}$/)&&(t+=a(t));var n=function(t,e){if(!t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&("object"==typeof e||"function"==typeof e)?e:t}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r));return n.displayValue=r.displayValue,r.fontSize>10*r.width?n.fontSize=10*r.width:n.fontSize=r.fontSize,n.guardHeight=r.height+n.fontSize/2+r.textMargin,n}return 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),n(e,[{key:"valid",value:function(){return -1!==this.data.search(/^[0-9]{12}$/)&&this.data[11]==a(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var t="";return t+="101",t+=(0,o.default)(this.data.substr(0,6),"LLLLLL"),t+="01010",t+=(0,o.default)(this.data.substr(6,6),"RRRRRR"),{data:t+="101",text:this.text}}},{key:"guardedEncoding",value:function(){var t=[];return this.displayValue&&t.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),t.push({data:"101"+(0,o.default)(this.data[0],"L"),options:{height:this.guardHeight}}),t.push({data:(0,o.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),t.push({data:"01010",options:{height:this.guardHeight}}),t.push({data:(0,o.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),t.push({data:(0,o.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&t.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),t}}
1]),e}(i(t.r(127412)).default)},959451,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=u(t.r(702591)),i=u(t.r(127412)),a=t.r(636178);function u(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&("object"==typeof e||"function"==typeof e)?e:t}var l=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],c=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]];function f(t,e){for(var r=l[parseInt(t[t.length-1])],n="",o=0,i=0;i<r.length;i++){var u=r[i];"X"===u?n+=t[o++]:n+=u}return(n=""+e+n)+(0,a.checksum)(n)}r.default=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);function e(t,r){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");var n=s(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r));if(n.isValid=!1,-1!==t.search(/^[0-9]{6}$/))n.middleDigits=t,n.upcA=f(t,"0"),n.text=r.text||""+n.upcA[0]+t+n.upcA[n.upcA.length-1],n.isValid=!0;else{if(-1===t.search(/^[01][0-9]{7}$/)||(n.middleDigits=t.substring(1,t.length-1),n.upcA=f(n.middleDigits,t[0]),n.upcA[n.upcA.length-1]!==t[t.length-1]))return s(n);n.isValid=!0}return n.displayValue=r.displayValue,r.fontSize>10*r.width?n.fontSize=10*r.width:n.fontSize=r.fontSize,n.guardHeight=r.height+n.fontSize/2+r.textMargin,n}return 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),n(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 t="";return t+="101",t+=this.encodeMiddleDigits(),{data:t+="010101",text:this.text}}},{key:"guardedEncoding",value:function(){var t=[];return this.displayValue&&t.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),t.push({data:"101",options:{height:this.guardHeight}}),t.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),t.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&t.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),t}},{key:"encodeMiddleDigits",value:function(){var t=this.upcA[0],e=c[parseInt(this.upcA[this.upcA.length-1])][parseInt(t)];return(0,o.default)(this.middleDigits,e)}}]),e}(i.default)},231009,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.UPCE=r.UPC=r.EAN2=r.EAN5=r.EAN8=r.EAN13=void 0;var n=l(t.r(671035)),o=l(t.r(432301)),i=l(t.r(313492)),a=l(t.r(920895)),u=l(t.r(636178)),s=l(t.r(959451));function l(t){return t&&t.__esModule?t:{default:t}}r.EAN13=n.default,r.EAN8=o.default,r.EAN5=i.default,r.EAN2=a.default,r.UPC=u.default,r.UPCE=s.default},865238,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.START_BIN="1010",r.END_BIN="11101",r.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"]},654852,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,o=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=t.r(865238);r.default=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);function e(){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");var t=(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments);if(!this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:this}return 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),o(e,[{key:"valid",value:function(){return -1!==this.data.search(/^([0-9]{2})+$/)}},{key:"encode",value:function(){var t=this,e=this.data.match(/.{2}/g).map(function(e){return t.encodePair(e)}).join("");return{data:i.START_BIN+e+i.END_BIN,text:this.text}}},{key:"encodePair",value:function(t){var e=i.BINARIES[t[1]];return i.BINARIES[t[0]].split("").map(function(t,r){return("1"===t?"111":"1")+("1"===e[r]?"000":"0")}).join("")}}]),e}(((n=t.r(127412))&&n.__esModule?n:{default:n}).default)},156759,(t,e,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0});var n,o=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=(n=t.r(654852))&&n.__esModule?n:{default:n},a=function(t){var e=t.substr(0,13).split("").map(function(t){return parseInt(t,10)}).reduce(function(t,e,r){return t+e*(3-r%2*2)},0);return 10*Math.ceil(e/10)-e};r.default=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);function e(t,r){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");-1!==t.search(/^[0-9]{13}$/)&&(t+=a(t));var n=(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r);if(!this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&("object"==typeof n||"function"==typeof n)?n:this}return 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),o(e,[{key:"valid",value:function(){return -1!==this.data.search(/^[0-9]{14}$/)&&+this.data[13]===a(this.data)}}]),e}(i.default)},936438,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ITF14=r.ITF=void 0;var n=i(t.r(654852)),o=i(t.r(156759));function i(t){return t&&t.__esModule?t:{default:t}}r.ITF=n.default,r.ITF14=o.default},755856,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,o=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();r.default=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);function e(t,r){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");var n=(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r);if(!this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&("object"==typeof n||"function"==typeof n)?n:this}return 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),o(e,[{key:"encode",value:function(){for(var t="110",e=0;e<this.data.length;e++){var r=parseInt(this.data[e]).toString(2);r=function(t,e){for(var r=0;r<e;r++)t="0"+t;return t}(r,4-r.length);for(var n=0;n<r.length;n++)t+="0"==r[n]?"100":"110"}return{data:t+="1001",text:this.text}}},{key:"valid",value:function(){return -1!==this.data.search(/^[0-9]+$/)}}]),e}(((n=t.r(127412))&&n.__esModule?n:{default:n}).default)},168742,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.mod10=function(t){for(var e=0,r=0;r<t.length;r++){var n=parseInt(t[r]);(r+t.length)%2==0?e+=n:e+=2*n%10+Math.floor(2*n/10)}return(10-e%10)%10},r.mod11=function(t){for(var e=0,r=[2,3,4,5,6,7],n=0;n<t.length;n++){var o=parseInt(t[t.length-1-n]);e+=r[n%r.length]*o}return(11-e%11)%11}},779620,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,o=(n=t.r(755856))&&n.__esModule?n:{default:n},i=t.r(168742);r.default=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);function e(t,r){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");var n=(e.__proto__||Object.getPrototypeOf(e)).call(this,t+(0,i.mod10)(t),r);if(!this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&("object"==typeof n||"function"==typeof n)?n:this}return 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),e}(o.default)},40948,(t,e,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0});var n,o=(n=t.r(755856))&&n.__esModule?n:{default:n},i=t.r(168742);r.default=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);function e(t,r){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");var n=(e.__proto__||Object.getPrototypeOf(e)).call(this,t+(0,i.mod11)(t),r);if(!this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&("object"==typeof n||"function"==typeof n)?n:this}return 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),e}(o.default)},171510,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,o=(n=t.r(755856))&&n.__esModule?n:{default:n},i=t.r(168742);r.default=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);function e(t,r){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");t+=(0,i.mod10)(t),t+=(0,i.mod10)(t);var n=(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r);if(!this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&("object"==typeof n||"function"==typeof n)?n:this}return 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),e}(o.default)},990931,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,o=(n=t.r(755856))&&n.__esModule?n:{default:n},i=t.r(168742);r.default=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);function e(t,r){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");t+=(0,i.mod11)(t),t+=(0,i.mod10)(t);var n=(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r);if(!this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&("object"==typeof n||"function"==typeof n)?n:this}return 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),e}(o.default)},232099,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.MSI1110=r.MSI1010=r.MSI11=r.MSI10=r.MSI=void 0;var n=s(t.r(755856)),o=s(t.r(779620)),i=s(t.r(40948)),a=s(t.r(171510)),u=s(t.r(990931));function s(t){return t&&t.__esModule?t:{default:t}}r.MSI=n.default,r.MSI10=o.default,r.MSI11=i.default,r.MSI1010=a.default,r.MSI1110=u.default},52280,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.pharmacode=void 0;var n,o=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();r.pharmacode=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);function e(t,r){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");var n=function(t,e){if(!t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&("object"==typeof e||"function"==typeof e)?e:t}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r));return n.number=parseInt(t,10),n}return 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),o(e,[{key:"encode",value:function(){for(var t=this.number,e="";!isNaN(t)&&0!=t;)t%2==0?(e="11100"+e,t=(t-2)/2):(e="100"+e,t=(t-1)/2);return{data:e=e.slice(0,-2),text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),e}(((n=t.r(127412))&&n.__esModule?n:{default:n}).default)},628593,(t,e,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0}),r.codabar=void 0;var n,o=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();r.codabar=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);function e(t,r){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");0===t.search(/^[0-9\-\$\:\.\+\/]+$/)&&(t="A"+t+"A");var n=function(t,e){if(!t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&("object"==typeof e||"function"==typeof e)?e:t}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t.toUpperCase(),r));return n.text=n.options.text||n.text.replace(/[A-D]/g,""),n}return 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),o(e,[{key:"valid",value:function(){return -1!==this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)}},{key:"encode",value:function(){for(var t=[],e=this.getEncodings(),r=0;r<this.data.length;r++)t.push(e[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}(((n=t.r(127412))&&n.__esModule?n:{default:n}).default)},69136,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.GenericBarcode=void 0;var n,o=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();r.GenericBarcode=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);function e(t,r){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");var n=(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r);if(!this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&("object"==typeof n||"function"==typeof n)?n:this}return 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),o(e,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),e}(((n=t.r(127412))&&n.__esModule?n:{default:n}).default)},560443,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t.r(985131),o=t.r(537661),i=t.r(231009),a=t.r(936438),u=t.r(232099),s=t.r(52280),l=t.r(628593),c=t.r(69136);r.default={CODE39:n.CODE39,CODE128:o.CODE128,CODE128A:o.CODE128A,CODE128B:o.CODE128B,CODE128C:o.CODE128C,EAN13:i.EAN13,EAN8:i.EAN8,EAN5:i.EAN5,EAN2:i.EAN2,UPC:i.UPC,UPCE:i.UPCE,ITF14:a.ITF14,ITF:a.ITF,MSI:u.MSI,MSI10:u.MSI10,MSI11:u.MSI11,MSI1010:u.MSI1010,MSI1110:u.MSI1110,pharmacode:s.pharmacode,codabar:l.codabar,GenericBarcode:c.GenericBarcode}},537448,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=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};r.default=function(t,e){return n({},t,e)}},581242,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(t){var e=[];return!function t(r){if(Array.isArray(r))for(var n=0;n<r.length;n++)t(r[n]);else r.text=r.text||"",r.data=r.data||"",e.push(r)}(t),e}},410331,(t,e,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(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}},766810,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(t){var e=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var r in e)e.hasOwnProperty(r)&&"string"==typeof t[r=e[r]]&&(t[r]=parseInt(t[r],10));return"string"==typeof t.displayValue&&(t.displayValue="false"!=t.displayValue),t}},809499,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.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(){}}},192562,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=i(t.r(766810)),o=i(t.r(809499));function i(t){return t&&t.__esModule?t:{default:t}}r.default=function(t){var e={};for(var r in o.default)o.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,n.default)(e)}},399261,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getTotalWidthOfEncodings=r.calculateEncodingAttributes=r.getBarcodePadding=r.getEncodingHeight=r.getMaximumHeightOfEncodings=void 0;var n,o=(n=t.r(537448))&&n.__esModule?n:{default:n};function i(t,e){return e.height+(e.displayValue&&t.text.length>0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom}function a(t,e,r){if(r.displayValue&&e<t){if("center"==r.textAlign)return Math.floor((t-e)/2);else if("left"==r.textAlign);else if("right"==r.textAlign)return Math.floor(t-e)}return 0}r.getMaximumHeightOfEncodings=function(t){for(var e=0,r=0;r<t.length;r++)t[r].height>e&&(e=t[r].height);return e},r.getEncodingHeight=i,r.getBarcodePadding=a,r.calculateEncodingAttributes=function(t,e,r){for(var n=0;n<t.length;n++){var u,s=t[n],l=(0,o.default)(e,s.options);u=l.displayValue?function(t,e,r){if(r)n=r;else{if(!("u">typeof document))return 0;n=document.createElement("canvas").getContext("2d")}n.font=e.fontOptions+" "+e.fontSize+"px "+e.font;var n,o=n.measureText(t);return o?o.width:0}(s.text,l,r):0;var c=s.data.length*l.width;s.width=Math.ceil(Math.max(u,c)),s.height=i(s,l),s.barcodePadding=a(u,c,l)}},r.getTotalWidthOfEncodings=function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r].width;return e}},443509,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,o=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=(n=t.r(537448))&&n.__esModule?n:{default:n},a=t.r(399261);r.default=function(){function t(e,r,n){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.canvas=e,this.encodings=r,this.options=n}return o(t,[{key:"render",value:function(){if(!this.canvas.getContext)throw Error("The browser does not support canvas.");this.prepareCanvas();for(var t=0;t<this.encodings.length;t++){var e=(0,i.default)(this.options,this.encodings[t].options);this.drawCanvasBarcode(e,this.encodings[t]),this.drawCanvasText(e,this.encodings[t]),this.moveCanvasDrawing(this.encodings[t])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var t=this.canvas.getContext("2d");t.save(),(0,a.calculateEncodingAttributes)(this.encodings,this.options,t);var e=(0,a.getTotalWidthOfEncodings)(this.encodings),r=(0,a.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=e+this.options.marginLeft+this.options.marginRight,this.canvas.height=r,t.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(t.fillStyle=this.options.background,t.fillRect(0,0,this.canvas.width,this.canvas.height)),t.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(t,e){var r,n=this.canvas.getContext("2d"),o=e.data;r="top"==t.textPosition?t.marginTop+t.fontSize+t.textMargin:t.marginTop,n.fillStyle=t.lineColor;for(var i=0;i<o.length;i++){var a=i*t.width+e.barcodePadding;"1"===o[i]?n.fillRect(a,r,t.width,t.height):o[i]&&n.fillRect(a,r,t.width,t.height*o[i])}}},{key:"drawCanvasText",value:function(t,e){var r,n,o=this.canvas.getContext("2d"),i=t.fontOptions+" "+t.fontSize+"px "+t.font;t.displayValue&&(n="top"==t.textPosition?t.marginTop+t.fontSize-t.textMargin:t.height+t.textMargin+t.marginTop+t.fontSize,o.font=i,"left"==t.textAlign||e.barcodePadding>0?(r=0,o.textAlign="left"):"right"==t.textAlign?(r=e.width-1,o.textAlign="right"):(r=e.width/2,o.textAlign="center"),o.fillText(e.text,r,n))}},{key:"moveCanvasDrawing",value:function(t){this.canvas.getContext("2d").translate(t.width,0)}},{key:"restoreCanvas",value:function(){this.canvas.getContext("2d").restore(
1)}}]),t}()},984322,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,o=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=(n=t.r(537448))&&n.__esModule?n:{default:n},a=t.r(399261),u="http://www.w3.org/2000/svg";r.default=function(){function t(e,r,n){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.svg=e,this.encodings=r,this.options=n,this.document=n.xmlDocument||document}return o(t,[{key:"render",value:function(){var t=this.options.marginLeft;this.prepareSVG();for(var e=0;e<this.encodings.length;e++){var r=this.encodings[e],n=(0,i.default)(this.options,r.options),o=this.createGroup(t,n.marginTop,this.svg);this.setGroupOptions(o,n),this.drawSvgBarcode(o,n,r),this.drawSVGText(o,n,r),t+=r.width}}},{key:"prepareSVG",value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,a.calculateEncodingAttributes)(this.encodings,this.options);var t=(0,a.getTotalWidthOfEncodings)(this.encodings),e=(0,a.getMaximumHeightOfEncodings)(this.encodings),r=t+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(r,e),this.options.background&&this.drawRect(0,0,r,e,this.svg).setAttribute("style","fill:"+this.options.background+";")}},{key:"drawSvgBarcode",value:function(t,e,r){var n,o=r.data;n="top"==e.textPosition?e.fontSize+e.textMargin:0;for(var i=0,a=0,u=0;u<o.length;u++)a=u*e.width+r.barcodePadding,"1"===o[u]?i++:i>0&&(this.drawRect(a-e.width*i,n,e.width*i,e.height,t),i=0);i>0&&this.drawRect(a-e.width*(i-1),n,e.width*i,e.height,t)}},{key:"drawSVGText",value:function(t,e,r){var n,o,i=this.document.createElementNS(u,"text");e.displayValue&&(i.setAttribute("style","font:"+e.fontOptions+" "+e.fontSize+"px "+e.font),o="top"==e.textPosition?e.fontSize-e.textMargin:e.height+e.textMargin+e.fontSize,"left"==e.textAlign||r.barcodePadding>0?(n=0,i.setAttribute("text-anchor","start")):"right"==e.textAlign?(n=r.width-1,i.setAttribute("text-anchor","end")):(n=r.width/2,i.setAttribute("text-anchor","middle")),i.setAttribute("x",n),i.setAttribute("y",o),i.appendChild(this.document.createTextNode(r.text)),t.appendChild(i))}},{key:"setSvgAttributes",value:function(t,e){var r=this.svg;r.setAttribute("width",t+"px"),r.setAttribute("height",e+"px"),r.setAttribute("x","0px"),r.setAttribute("y","0px"),r.setAttribute("viewBox","0 0 "+t+" "+e),r.setAttribute("xmlns",u),r.setAttribute("version","1.1"),r.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(t,e,r){var n=this.document.createElementNS(u,"g");return n.setAttribute("transform","translate("+t+", "+e+")"),r.appendChild(n),n}},{key:"setGroupOptions",value:function(t,e){t.setAttribute("style","fill:"+e.lineColor+";")}},{key:"drawRect",value:function(t,e,r,n,o){var i=this.document.createElementNS(u,"rect");return i.setAttribute("x",t),i.setAttribute("y",e),i.setAttribute("width",r),i.setAttribute("height",n),o.appendChild(i),i}}]),t}()},940480,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();r.default=function(){function t(e,r,n){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.object=e,this.encodings=r,this.options=n}return n(t,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),t}()},888119,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=a(t.r(443509)),o=a(t.r(984322)),i=a(t.r(940480));function a(t){return t&&t.__esModule?t:{default:t}}r.default={CanvasRenderer:n.default,SVGRenderer:o.default,ObjectRenderer:i.default}},562395,(t,e,r)=>{"use strict";function n(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&("object"==typeof e||"function"==typeof e)?e:t}function i(t,e){if("function"!=typeof e&&null!==e)throw 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)}
1Object.defineProperty(r,"__esModule",{value:!0});var a=function(t){function e(t,r){n(this,e);var i=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return i.name="InvalidInputException",i.symbology=t,i.input=r,i.message='"'+i.input+'" is not a valid input for '+i.symbology,i}return i(e,t),e}(Error),u=function(t){function e(){n(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.name="InvalidElementException",t.message="Not supported type to render on",t}return i(e,t),e}(Error),s=function(t){function e(){n(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.name="NoElementException",t.message="No element to render on.",t}return i(e,t),e}(Error);r.InvalidInputException=a,r.InvalidElementException=u,r.NoElementException=s},16955,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=u(t.r(192562)),i=u(t.r(888119)),a=t.r(562395);function u(t){return t&&t.__esModule?t:{default:t}}r.default=function t(e){if("string"==typeof e){var r,u,s=e,l=document.querySelectorAll(s);if(0!==l.length){for(var c=[],f=0;f<l.length;f++)c.push(t(l[f]));return c}return}if(Array.isArray(e)){for(var d=[],p=0;p<e.length;p++)d.push(t(e[p]));return d}if("u">typeof HTMLCanvasElement&&e instanceof HTMLImageElement){return r=e,{element:u=document.createElement("canvas"),options:(0,o.default)(r),renderer:i.default.CanvasRenderer,afterRender:function(){r.setAttribute("src",u.toDataURL())}}}if(e&&e.nodeName&&"svg"===e.nodeName.toLowerCase()||"u">typeof SVGElement&&e instanceof SVGElement)return{element:e,options:(0,o.default)(e),renderer:i.default.SVGRenderer};if("u">typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement)return{element:e,options:(0,o.default)(e),renderer:i.default.CanvasRenderer};else if(e&&e.getContext)return{element:e,renderer:i.default.CanvasRenderer};else if(e&&(void 0===e?"undefined":n(e))==="object"&&!e.nodeName)return{element:e,renderer:i.default.ObjectRenderer};else throw new a.InvalidElementException}},53990,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();r.default=function(){function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.api=e}return n(t,[{key:"handleCatch",value:function(t){if("InvalidInputException"===t.name)if(this.api._options.valid!==this.api._defaults.valid)this.api._options.valid(!1);else throw t.message;else throw t;this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(t){try{var e=t.apply(void 0,arguments);return this.api._options.valid(!0),e}catch(t){return this.handleCatch(t),this.api}}}]),t}()},432967,(t,e,r)=>{"use strict";var n=d(t.r(560443)),o=d(t.r(537448)),i=d(t.r(581242)),a=d(t.r(410331)),u=d(t.r(16955)),s=d(t.r(766810)),l=d(t.r(53990)),c=t.r(562395),f=d(t.r(809499));function d(t){return t&&t.__esModule?t:{default:t}}var p=function(){},h=function(t,e,r){var n=new p;if(void 0===t)throw Error("No element to render on was provided.");return n._renderProperties=(0,u.default)(t),n._encodings=[],n._options=f.default,n._errorHandler=new l.default(n),void 0!==e&&((r=r||{}).format||(r.format=v()),n.options(r)[r.format](e,r).render()),n};for(var b in h.getModule=function(t){return n.default[t]},n.default)n.default.hasOwnProperty(b)&&function(t,e){p.prototype[e]=p.prototype[e.toUpperCase()]=p.prototype[e.toLowerCase()]=function(r,n){var i=this;return i._errorHandler.wrapBarcodeCall(function(){n.text=void 0===n.text?void 0:""+n.text;var a=(0,o.default)(i._options,n);a=(0,s.default)(a);var u=y(r,t[e],a);return i._encodings.push(u),i})}}(n.default,b);function y(t,e,r){var n=new e(t=""+t,r);if(!n.valid())throw new c.InvalidInputException(n.constructor.name,t);var a=n.encode();a=(0,i.default)(a);for(var u=0;u<a.length;u++)a[u].options=(0,o.default)(r,a[u].options);return a}function v(){return n.default.CODE128?"CODE128":Object.keys(n.default)[0]}function _(t,e,r){e=(0,i.default)(e);for(var n=0;n<e.length;n++)e[n].options=(0,o.default)(r,e[n].options),(0,a.default)(e[n].options);(0,a.default)(r),new t.renderer(t.element,e,r).render(),t.afterRe
1nder&&t.afterRender()}p.prototype.options=function(t){return this._options=(0,o.default)(this._options,t),this},p.prototype.blank=function(t){var e=Array(t+1).join("0");return this._encodings.push({data:e}),this},p.prototype.init=function(){if(this._renderProperties)for(var t in Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]),this._renderProperties){var e=this._renderProperties[t],r=(0,o.default)(this._options,e.options);"auto"==r.format&&(r.format=v()),this._errorHandler.wrapBarcodeCall(function(){_(e,y(r.value,n.default[r.format.toUpperCase()],r),r)})}},p.prototype.render=function(){if(!this._renderProperties)throw new c.NoElementException;if(Array.isArray(this._renderProperties))for(var t=0;t<this._renderProperties.length;t++)_(this._renderProperties[t],this._encodings,this._options);else _(this._renderProperties,this._encodings,this._options);return this},p.prototype._defaults=f.default,"u">typeof window&&(window.JsBarcode=h),"u">typeof jQuery&&(jQuery.fn.JsBarcode=function(t,e){var r=[];return jQuery(this).each(function(){r.push(this)}),h(r,t,e)}),e.exports=h}]);
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.