useblocks 1.1.27 → 1.1.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/iframe/js/amp.A5wCvj7V.js +1 -0
  2. package/iframe/js/iframe-eblock.js +1 -1
  3. package/iframe/js/iframe.js +1 -1
  4. package/iframe/js/rules.B4dVzZIU.js +1 -1
  5. package/package.json +1 -1
  6. package/runtime/@ant-design/cssinjs/index.js +1 -1
  7. package/runtime/@ant-design/icons/index.js +1 -1
  8. package/runtime/THIRD_PARTY_LICENSES.txt +536 -665
  9. package/runtime/antd/index.js +1 -1
  10. package/runtime/dayjs/index.js +1 -1
  11. package/runtime/react-router-dom/index.js +1 -1
  12. package/singlepage_headless_plugin.html +1 -1
  13. package/static/core/{8708a613.js → 1424c612.js} +3 -3
  14. package/static/core/17aff8bb.js +1 -0
  15. package/static/core/1cbec0bb.js +1 -0
  16. package/static/core/24ee85aa.js +1 -0
  17. package/static/core/3cec0f58.js +1 -0
  18. package/static/core/3d6d9ecd2.js +1 -0
  19. package/static/core/{d37f7419.js → 43190ba4.js} +1 -1
  20. package/static/core/512e3b5f2.js +1 -0
  21. package/static/core/5386c2ec.js +1 -0
  22. package/static/core/586a39dc.js +1 -0
  23. package/static/core/60d78d6b.js +1 -0
  24. package/static/core/65add2fe.js +33 -0
  25. package/static/core/69518486.js +3 -0
  26. package/static/core/6cfc43e6.js +1 -0
  27. package/static/core/{e6c16532.js → 70acf01b.js} +2 -2
  28. package/static/core/78f0ec55.js +1 -0
  29. package/static/core/80494391.js +1 -0
  30. package/static/core/824a1eac.js +1 -0
  31. package/static/core/{4dc76046.js → 84430610.js} +4 -4
  32. package/static/core/88da7a16.js +1 -0
  33. package/static/core/928d808b.js +506 -0
  34. package/static/core/95f8d3c8.js +1 -0
  35. package/static/core/9f597c4d.js +20 -0
  36. package/static/core/a906a1a3.js +1 -0
  37. package/static/core/ac168281.js +1 -0
  38. package/static/core/{902b3490.js → b77ec308.js} +1 -1
  39. package/static/core/{779a8eb5.js → beb4d9d1.js} +2 -2
  40. package/static/core/{5f1992c62.js → c628207d.js} +1 -1
  41. package/static/core/c734a3d8.js +1 -0
  42. package/static/core/d0e5aa97.js +4 -0
  43. package/static/core/d2257218.js +1 -0
  44. package/static/core/d85b4555.js +1 -0
  45. package/static/core/e0d58fdc.js +1 -0
  46. package/static/core/e5e840f6.js +78 -0
  47. package/static/core/e930f267.js +1 -0
  48. package/static/core/eb1e40b4.js +895 -0
  49. package/static/core/ec425df9.js +1 -0
  50. package/static/core/f2141b55.js +1 -0
  51. package/static/core/f6dff18b.js +1 -0
  52. package/static/esm/{ea7efce0.js → 7b7508f6.js} +1 -1
  53. package/static/esm/{3159c14c.js → cdc4c5a4.js} +1 -1
  54. package/static/runtime/DownloadOutlined-C-5Yi5xA.js +76 -0
  55. package/static/runtime/dayjs.min-7qDGpCH7.js +1 -0
  56. package/static/runtime/defineProperty-DxTQfsxO.js +1 -0
  57. package/static/runtime/dist-C0p5hVla.js +2 -0
  58. package/static/runtime/es-DhckSY88.js +315 -0
  59. package/static/runtime/es-jkBfKdP4.js +2 -0
  60. package/static/runtime/es-rvjSIqny.js +1 -0
  61. package/two_step_headless_plugin.html +1 -1
  62. package/ui-kit/index.js +2041 -1934
  63. package/{useblocks-core.8b14ebb5.js → useblocks-core.6be93158.js} +1 -1
  64. package/useblocks-esm.js +4 -4
  65. package/useblocks.d.ts +9 -3
  66. package/useblocks.js +12 -12
  67. package/iframe/js/amp.DAh9j5NQ.js +0 -1
  68. package/static/core/122fc0d7.js +0 -1
  69. package/static/core/1b4eacdb.js +0 -1
  70. package/static/core/245b2799.js +0 -1
  71. package/static/core/27639caf.js +0 -1
  72. package/static/core/35387f7a.js +0 -20
  73. package/static/core/38cc8504.js +0 -1
  74. package/static/core/395cdb1b.js +0 -596
  75. package/static/core/3d832cfc.js +0 -1
  76. package/static/core/4aafbb37.js +0 -1
  77. package/static/core/52646cb0.js +0 -3
  78. package/static/core/52c7da98.js +0 -1
  79. package/static/core/53978dd3.js +0 -1
  80. package/static/core/5a853fbb.js +0 -1
  81. package/static/core/5c3bc4e4.js +0 -1
  82. package/static/core/613230e7.js +0 -1
  83. package/static/core/64501810.js +0 -1
  84. package/static/core/6d624cfc2.js +0 -1
  85. package/static/core/8400037a.js +0 -1
  86. package/static/core/8a1c4338.js +0 -1
  87. package/static/core/95f33488.js +0 -1
  88. package/static/core/a13fc482.js +0 -33
  89. package/static/core/a7643b25.js +0 -1
  90. package/static/core/aaaead9c.js +0 -1
  91. package/static/core/ae258789.js +0 -1
  92. package/static/core/aea690c8.js +0 -833
  93. package/static/core/b2e32919.js +0 -1
  94. package/static/core/b4510ae5.js +0 -1
  95. package/static/core/ca052be9.js +0 -1
  96. package/static/core/cba792ea.js +0 -1
  97. package/static/core/eff08366.js +0 -471
  98. package/static/core/f03c7816.js +0 -1
  99. package/static/core/f38723d0.js +0 -1
  100. package/static/core/f4ec16b4.js +0 -78
  101. package/static/core/fb3e5ba7.js +0 -1
  102. package/static/runtime/DownloadOutlined-Czug__JA.js +0 -1
  103. package/static/runtime/dayjs.min-BktkwxcQ.js +0 -1
  104. package/static/runtime/dist-B1ZrbBVP.js +0 -2
  105. package/static/runtime/es-Dt0MDtMm.js +0 -5
  106. package/static/runtime/es-LbCQ86AJ.js +0 -444
  107. package/static/runtime/es-n8SS20ln.js +0 -55
  108. /package/iframe/{iframe-eblock.8b14ebb5.html → iframe-eblock.6be93158.html} +0 -0
  109. /package/iframe/{iframe.8b14ebb5.html → iframe.6be93158.html} +0 -0
@@ -0,0 +1 @@
1
+ __useblocks__.define(`static/core/95f8d3c8.js`,[`require`,`exports`,`module`,`static/core/4dc58c63.js`,`static/core/a5652804.js`],function(e,t,n){e("./4dc58c63.js");let r=e("./a5652804.js");var i={items_per_page:`/ página`,jump_to:`Ir a`,jump_to_confirm:`confirmar`,page:`Página`,prev_page:`Página anterior`,next_page:`Página siguiente`,prev_5:`5 páginas previas`,next_5:`5 páginas siguientes`,prev_3:`3 páginas previas`,next_3:`3 páginas siguientes`,page_size:`tamaño de página`};function a(e){"@babel/helpers - typeof";return a=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},a(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?o(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t,n){return t=l(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){var t=u(e,`string`);return a(t)==`symbol`?t:String(t)}function u(e,t){if(a(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(a(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var d=s(s({},r.t),{},{locale:`es_ES`,today:`Hoy`,now:`Ahora`,backToToday:`Volver a hoy`,ok:`Aceptar`,clear:`Limpiar`,week:`Semana`,month:`Mes`,year:`Año`,timeSelect:`Seleccionar hora`,dateSelect:`Seleccionar fecha`,monthSelect:`Elegir un mes`,yearSelect:`Elegir un año`,decadeSelect:`Elegir una década`,previousMonth:`Mes anterior (PageUp)`,nextMonth:`Mes siguiente (PageDown)`,previousYear:`Año anterior (Control + left)`,nextYear:`Año siguiente (Control + right)`,previousDecade:`Década anterior`,nextDecade:`Década siguiente`,previousCentury:`Siglo anterior`,nextCentury:`Siglo siguiente`}),f={placeholder:`Seleccionar hora`,rangePlaceholder:[`Hora de inicio`,`Hora de fin`]},p={lang:{placeholder:`Seleccionar fecha`,rangePlaceholder:[`Fecha inicial`,`Fecha final`],shortWeekDays:[`Dom`,`Lun`,`Mar`,`Mié`,`Jue`,`Vie`,`Sáb`],shortMonths:[`Ene`,`Feb`,`Mar`,`Abr`,`May`,`Jun`,`Jul`,`Ago`,`Sep`,`Oct`,`Nov`,`Dic`],...d},timePickerLocale:{...f}},m=p,h="${label} no es un ${type} válido";t.default={locale:`es`,Pagination:i,DatePicker:p,TimePicker:f,Calendar:m,global:{placeholder:`Seleccione`,close:`Cerrar`,show:`Mostrar`,hide:`Ocultar`},Table:{filterTitle:`Filtrar menú`,filterConfirm:`Aceptar`,filterReset:`Reiniciar`,filterEmptyText:`Sin filtros`,filterCheckAll:`Seleccionar todo`,filterSearchPlaceholder:`Buscar en filtros`,emptyText:`Sin datos`,selectAll:`Seleccionar todo`,selectInvert:`Invertir selección`,selectNone:`Vacíe todo`,selectionAll:`Seleccionar todos los datos`,sortTitle:`Ordenar`,expand:`Expandir fila`,collapse:`Colapsar fila`,triggerDesc:`Click para ordenar en orden descendente`,triggerAsc:`Click para ordenar en orden ascendente`,cancelSort:`Click para cancelar ordenamiento`},Tour:{Next:`Siguiente`,Previous:`Anterior`,Finish:`Finalizar`},Modal:{okText:`Aceptar`,cancelText:`Cancelar`,justOkText:`Aceptar`},Popconfirm:{okText:`Aceptar`,cancelText:`Cancelar`},Transfer:{titles:[``,``],searchPlaceholder:`Buscar aquí`,itemUnit:`elemento`,itemsUnit:`elementos`,remove:`Eliminar`,selectCurrent:`Seleccionar página actual`,removeCurrent:`Eliminar página actual`,selectAll:`Seleccionar todos los datos`,removeAll:`Eliminar todos los datos`,selectInvert:`Invertir página actual`},Upload:{uploading:`Subiendo...`,removeFile:`Eliminar archivo`,uploadError:`Error al subir el archivo`,previewFile:`Vista previa`,downloadFile:`Descargar archivo`},Empty:{description:`No hay datos`},Icon:{icon:`ícono`},Text:{edit:`Editar`,copy:`Copiar`,copied:`Copiado`,expand:`Expandir`},Form:{optional:`(opcional)`,defaultValidateMessages:{default:"Error de validación del campo ${label}",required:"Por favor, rellena ${label}",enum:"${label} debe ser uno de [${enum}]",whitespace:"${label} no puede ser un carácter en blanco",date:{format:"El formato de fecha de ${label} es inválido",parse:"${label} no se puede convertir a una fecha",invalid:"${label} es una fecha inválida"},types:{string:h,method:h,array:h,object:h,number:h,date:h,boolean:h,integer:h,float:h,regexp:h,email:h,url:h,hex:h},string:{len:"${label} debe tener ${len} caracteres",min:"${label} debe tener al menos ${min} caracteres",max:"${label} debe tener hasta ${max} caracteres",range:"${label} debe tener entre ${min}-${max} caracteres"},number:{len:"${label} debe ser igual a ${len}",min:"${label} valor mínimo es ${min}",max:"${label} valor máximo es ${max}",range:"${label} debe ser entre ${min}-${max}"},array:{len:"Debe ser ${len} ${label}",min:"Al menos ${min} ${label}",max:"Como máximo ${max} ${label}",range:"El valor de ${label} debe estar entre ${min}-${max}"},pattern:{mismatch:"${label} no coincide con el patrón ${pattern}"}}}}});
@@ -0,0 +1,20 @@
1
+ __useblocks__.define(`static/core/9f597c4d.js`,[`require`,`exports`,`module`,`static/core/4dc58c63.js`,`static/core/65add2fe.js`,`static/core/928d808b.js`,`static/core/3d6d9ecd2.js`,`static/core/69518486.js`,`react`,`react-router-dom`],function(e,t,n){let r=e("./4dc58c63.js"),i=e("./65add2fe.js"),a=e("./69518486.js"),o=e("./928d808b.js"),s=e("./3d6d9ecd2.js"),c=e("react"),l=e("react-router-dom");var u=()=>i.vi.useInstance(i.to);function d(e,t){if(e){if(t===`preview`){let t=e;return t.preview??t.test_sends}return e[t]}}function f(e,t){if(e?.flags){if(t===`preview`){let t=e.flags;return t.preview??t.test_sends}return e.flags[t]}}var p=[10,30,300],m=[10,50,150];function h(e,t){for(let n of t)if(n>e)return n;return`infinity`}function g(e){return e<=10?`email_10_30`:e<=30?`email_30_300`:`email_300_inf`}function _(e){return e<=10?`ai_10_50`:e<=50?`ai_30_150`:`ai_150_inf`}function v(e,t){return t?.limit_exceeded?!0:e.is_unlimited||e.total_limit<=0?!1:e.remaining<=0||e.used>=e.total_limit}var y=[`optimization`,`image_generate`,`preview`,`link_check`,`image_check`,`spam_check`];function b(e){return y.includes(e)}var x={optimization:`optimization_exceeded`,image_generate:`image_generate_exceeded`,preview:`preview_exceeded`,link_check:`link_check_exceeded`,image_check:`image_check_exceeded`,spam_check:`spam_check_exceeded`};function S(e,t,n){if(b(e))return null;let r=d(t,e),i=f(n,e);if(!r||!v(r,i))return null;let a=r.total_limit;return{kind:e,presetId:x[e],previousLimit:a,nextLimit:`infinity`}}function C(e,t){if(!e)return null;let n=d(e,`ai`),r=f(t,`ai`);if(n&&v(n,r)){let e=n.total_limit;return{kind:`ai`,presetId:_(e),previousLimit:e,nextLimit:h(e,m)}}let i=d(e,`email_generate`),a=f(t,`email_generate`);if(i&&v(i,a)){let e=i.total_limit;return{kind:`email_generate`,presetId:g(e),previousLimit:e,nextLimit:h(e,p)}}return S(`image_generate`,e,t)||S(`optimization`,e,t)||S(`preview`,e,t)||S(`link_check`,e,t)||S(`image_check`,e,t)||S(`spam_check`,e,t)}function w(e){return{presetId:_(e),previousLimit:e,nextLimit:h(e,m)}}function T(e){let t=String(e??``).split(`;`)[0].trim();if(!t)return``;let n=t.toLowerCase(),r=n.indexOf(`/`);if(r===-1)return n;let i=n.slice(r+1);return i===`svg+xml`?`svg`:i}async function E(e){if(typeof createImageBitmap==`function`)try{let t=await createImageBitmap(e);try{return{width:t.width,height:t.height}}finally{t.close?.()}}catch{}return new Promise((t,n)=>{let r=URL.createObjectURL(e),i=new Image;i.onload=()=>{URL.revokeObjectURL(r);let e=i.naturalWidth||i.width,a=i.naturalHeight||i.height;e>0&&a>0?t({width:e,height:a}):n(Error(`Could not read image dimensions`))},i.onerror=()=>{URL.revokeObjectURL(r),n(Error(`Could not decode image`))},i.src=r})}function D(e){return e.trim()}function O(){let e=new Map,t=new Map;function n(e,t){return t?new Promise((n,r)=>{if(t.aborted){r(new DOMException(`Aborted`,`AbortError`));return}let i=()=>{r(new DOMException(`Aborted`,`AbortError`))};t.addEventListener(`abort`,i,{once:!0}),e.then(e=>{t.removeEventListener(`abort`,i),n(e)},e=>{t.removeEventListener(`abort`,i),r(e)})}):e}async function r(r,i,a){let o=D(r);if(!o)throw Error(`Empty image URL`);let s=e.get(o);if(s){if(i?.aborted)throw new DOMException(`Aborted`,`AbortError`);return s}let c=t.get(o);if(c)return n(c.promise,i);let l=new AbortController,u=a(o,l.signal).then(n=>(t.delete(o),e.set(o,n),n)).catch(e=>{throw t.delete(o),e});return t.set(o,{promise:u,controller:l}),n(u,i)}function i(n){let r=D(n);if(!r)return;let i=t.get(r);i&&(i.controller.abort(),t.delete(r)),e.delete(r)}function a(){for(let[,e]of t)e.controller.abort();t.clear(),e.clear()}return{resolve:r,abandonKey:i,invalidateAll:a}}var k=r.a(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).imageCompression=r()})(e,(function(){"use strict";function e(e,t){return t.forEach((function(t){t&&typeof t!=`string`&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if(n!=="default"&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}function t(e,t){return new Promise((function(r,i){let a;return n(e).then((function(e){try{return a=e,r(new Blob([t.slice(0,2),a,t.slice(2)],{type:`image/jpeg`}))}catch(e){return i(e)}}),i)}))}let n=e=>new Promise(((t,n)=>{let r=new FileReader;r.addEventListener(`load`,(({target:{result:e}})=>{let r=new DataView(e),i=0;if(r.getUint16(i)!==65496)return n(`not a valid JPEG`);for(i+=2;;){let a=r.getUint16(i);if(a===65498)break;let o=r.getUint16(i+2);if(a===65505&&r.getUint32(i+4)===1165519206){let a=i+10,s;switch(r.getUint16(a)){case 18761:s=!0;break;case 19789:s=!1;break;default:return n(`TIFF header contains invalid endian`)}if(r.getUint16(a+2,s)!==42)return n(`TIFF header contains invalid version`);let c=r.getUint32(a+4,s),l=a+c+2+12*r.getUint16(a+c,s);for(let e=a+c+2;e<l;e+=12)if(r.getUint16(e,s)==274){if(r.getUint16(e+2,s)!==3)return n(`Orientation data type is invalid`);if(r.getUint32(e+4,s)!==1)return n(`Orientation data count is invalid`);r.setUint16(e+8,1,s);break}return t(e.slice(i,i+2+o))}i+=2+o}return t(new Blob)})),r.readAsArrayBuffer(e)}));var r={};(function(e){var t,n,r={};e.exports=r,r.parse=function(e,t){for(var n=r.bin.readUshort,i=r.bin.readUint,a=0,o={},s=new Uint8Array(e),c=s.length-4;i(s,c)!=101010256;)c--;a=c,a+=4;var l=n(s,a+=4);n(s,a+=2);var u=i(s,a+=2),d=i(s,a+=4);a+=4,a=d;for(var f=0;f<l;f++){i(s,a),a+=4,a+=4,a+=4,i(s,a+=4),u=i(s,a+=4);var p=i(s,a+=4),m=n(s,a+=4),h=n(s,a+2),g=n(s,a+4);a+=6;var _=i(s,a+=8);a+=4,a+=m+h+g,r._readLocal(s,_,o,u,p,t)}return o},r._readLocal=function(e,t,n,i,a,o){var s=r.bin.readUshort,c=r.bin.readUint;c(e,t),s(e,t+=4),s(e,t+=2);var l=s(e,t+=2);c(e,t+=2),c(e,t+=4),t+=4;var u=s(e,t+=8),d=s(e,t+=2);t+=2;var f=r.bin.readUTF8(e,t,u);if(t+=u,t+=d,o)n[f]={size:a,csize:i};else{var p=new Uint8Array(e.buffer,t);if(l==0)n[f]=new Uint8Array(p.buffer.slice(t,t+i));else{if(l!=8)throw`unknown compression method: `+l;var m=new Uint8Array(a);r.inflateRaw(p,m),n[f]=m}}},r.inflateRaw=function(e,t){return r.F.inflate(e,t)},r.inflate=function(e,t){return e[0],e[1],r.inflateRaw(new Uint8Array(e.buffer,e.byteOffset+2,e.length-6),t)},r.deflate=function(e,t){t??={level:6};var n=0,i=new Uint8Array(50+Math.floor(1.1*e.length));i[n]=120,i[n+1]=156,n+=2,n=r.F.deflateRaw(e,i,n,t.level);var a=r.adler(e,0,e.length);return i[n+0]=a>>>24&255,i[n+1]=a>>>16&255,i[n+2]=a>>>8&255,i[n+3]=a>>>0&255,new Uint8Array(i.buffer,0,n+4)},r.deflateRaw=function(e,t){t??={level:6};var n=new Uint8Array(50+Math.floor(1.1*e.length)),i=r.F.deflateRaw(e,n,i,t.level);return new Uint8Array(n.buffer,0,i)},r.encode=function(e,t){t??=!1;var n=0,i=r.bin.writeUint,a=r.bin.writeUshort,o={};for(var s in e){var c=!r._noNeed(s)&&!t,l=e[s],u=r.crc.crc(l,0,l.length);o[s]={cpr:c,usize:l.length,crc:u,file:c?r.deflateRaw(l):l}}for(var s in o)n+=o[s].file.length+30+46+2*r.bin.sizeUTF8(s);n+=22;var d=new Uint8Array(n),f=0,p=[];for(var s in o){var m=o[s];p.push(f),f=r._writeHeader(d,f,s,m,0)}var h=0,g=f;for(var s in o)m=o[s],p.push(f),f=r._writeHeader(d,f,s,m,1,p[h++]);var _=f-g;return i(d,f,101010256),f+=4,a(d,f+=4,h),a(d,f+=2,h),i(d,f+=2,_),i(d,f+=4,g),f+=4,f+=2,d.buffer},r._noNeed=function(e){var t=e.split(`.`).pop().toLowerCase();return`png,jpg,jpeg,zip`.indexOf(t)!=-1},r._writeHeader=function(e,t,n,i,a,o){var s=r.bin.writeUint,c=r.bin.writeUshort,l=i.file;return s(e,t,a==0?67324752:33639248),t+=4,a==1&&(t+=2),c(e,t,20),c(e,t+=2,0),c(e,t+=2,i.cpr?8:0),s(e,t+=2,0),s(e,t+=4,i.crc),s(e,t+=4,l.length),s(e,t+=4,i.usize),c(e,t+=4,r.bin.sizeUTF8(n)),c(e,t+=2,0),t+=2,a==1&&(t+=2,t+=2,s(e,t+=6,o),t+=4),t+=r.bin.writeUTF8(e,t,n),a==0&&(e.set(l,t),t+=l.length),t},r.crc={table:function(){for(var e=new Uint32Array(256),t=0;t<256;t++){for(var n=t,r=0;r<8;r++)1&n?n=3988292384^n>>>1:n>>>=1;e[t]=n}return e}(),update:function(e,t,n,i){for(var a=0;a<i;a++)e=r.crc.table[255&(e^t[n+a])]^e>>>8;return e},crc:function(e,t,n){return 4294967295^r.crc.update(4294967295,e,t,n)}},r.adler=function(e,t,n){for(var r=1,i=0,a=t,o=t+n;a<o;){for(var s=Math.min(a+5552,o);a<s;)i+=r+=e[a++];r%=65521,i%=65521}return i<<16|r},r.bin={readUshort:function(e,t){return e[t]|e[t+1]<<8},writeUshort:function(e,t,n){e[t]=255&n,e[t+1]=n>>8&255},readUint:function(e,t){return 16777216*e[t+3]+(e[t+2]<<16|e[t+1]<<8|e[t])},writeUint:function(e,t,n){e[t]=255&n,e[t+1]=n>>8&255,e[t+2]=n>>16&255,e[t+3]=n>>24&255},readASCII:function(e,t,n){for(var r=``,i=0;i<n;i++)r+=String.fromCharCode(e[t+i]);return r},writeASCII:function(e,t,n){for(var r=0;r<n.length;r++)e[t+r]=n.charCodeAt(r)},pad:function(e){return e.length<2?`0`+e:e},readUTF8:function(e,t,n){for(var i,a=``,o=0;o<n;o++)a+=`%`+r.bin.pad(e[t+o].toString(16));try{i=decodeURIComponent(a)}catch{return r.bin.readASCII(e,t,n)}return i},writeUTF8:function(e,t,n){for(var r=n.length,i=0,a=0;a<r;a++){var o=n.charCodeAt(a);if(!(4294967168&o))e[t+i]=o,i++;else if(!(4294965248&o))e[t+i]=192|o>>6,e[t+i+1]=128|o>>0&63,i+=2;else if(!(4294901760&o))e[t+i]=224|o>>12,e[t+i+1]=128|o>>6&63,e[t+i+2]=128|o>>0&63,i+=3;else{if(4292870144&o)throw`e`;e[t+i]=240|o>>18,e[t+i+1]=128|o>>12&63,e[t+i+2]=128|o>>6&63,e[t+i+3]=128|o>>0&63,i+=4}}return i},sizeUTF8:function(e){for(var t=e.length,n=0,r=0;r<t;r++){var i=e.charCodeAt(r);if(!(4294967168&i))n++;else if(!(4294965248&i))n+=2;else if(!(4294901760&i))n+=3;else{if(4292870144&i)throw`e`;n+=4}}return n}},r.F={},r.F.deflateRaw=function(e,t,n,i){var a=[[0,0,0,0,0],[4,4,8,4,0],[4,5,16,8,0],[4,6,16,16,0],[4,10,16,32,0],[8,16,32,32,0],[8,16,128,128,0],[8,32,128,256,0],[32,128,258,1024,1],[32,258,258,4096,1]][i],o=r.F.U,s=r.F._goodIndex;r.F._hash;var c=r.F._putsE,l=0,u=n<<3,d=0,f=e.length;if(i==0){for(;l<f;)c(t,u,+(l+(w=Math.min(65535,f-l))==f)),u=r.F._copyExact(e,l,w,t,u+8),l+=w;return u>>>3}var p=o.lits,m=o.strt,h=o.prev,g=0,_=0,v=0,y=0,b=0,x=0;for(f>2&&(m[x=r.F._hash(e,0)]=0),l=0;l<f;l++){if(b=x,l+1<f-2){x=r.F._hash(e,l+1);var S=l+1&32767;h[S]=m[x],m[x]=S}if(d<=l){(g>14e3||_>26697)&&f-l>100&&(d<l&&(p[g]=l-d,g+=2,d=l),u=r.F._writeBlock(+(l==f-1||d==f),p,g,y,e,v,l-v,t,u),g=_=y=0,v=l);var C=0;l<f-2&&(C=r.F._bestMatch(e,l,h,b,Math.min(a[2],f-l),a[3]));var w=C>>>16,T=65535&C;if(C!=0){T=65535&C;var E=s(w=C>>>16,o.of0);o.lhst[257+E]++;var D=s(T,o.df0);o.dhst[D]++,y+=o.exb[E]+o.dxb[D],p[g]=w<<23|l-d,p[g+1]=T<<16|E<<8|D,g+=2,d=l+w}else o.lhst[e[l]]++;_++}}for(v==l&&e.length!=0||(d<l&&(p[g]=l-d,g+=2,d=l),u=r.F._writeBlock(1,p,g,y,e,v,l-v,t,u),g=0,_=0,g=_=y=0,v=l);7&u;)u++;return u>>>3},r.F._bestMatch=function(e,t,n,i,a,o){var s=32767&t,c=n[s],l=s-c+32768&32767;if(c==s||i!=r.F._hash(e,t-l))return 0;for(var u=0,d=0,f=Math.min(32767,t);l<=f&&--o!=0&&c!=s;){if(u==0||e[t+u]==e[t+u-l]){var p=r.F._howLong(e,t,l);if(p>u){if(d=l,(u=p)>=a)break;l+2<p&&(p=l+2);for(var m=0,h=0;h<p-2;h++){var g=t-l+h+32768&32767,_=g-n[g]+32768&32767;_>m&&(m=_,c=g)}}}l+=(s=c)-(c=n[s])+32768&32767}return u<<16|d},r.F._howLong=function(e,t,n){if(e[t]!=e[t-n]||e[t+1]!=e[t+1-n]||e[t+2]!=e[t+2-n])return 0;var r=t,i=Math.min(e.length,t+258);for(t+=3;t<i&&e[t]==e[t-n];)t++;return t-r},r.F._hash=function(e,t){return(e[t]<<8|e[t+1])+(e[t+2]<<4)&65535},r.saved=0,r.F._writeBlock=function(e,t,n,i,a,o,s,c,l){var u,d,f,p,m,h,g,_,v,y=r.F.U,b=r.F._putsF,x=r.F._putsE;y.lhst[256]++,d=(u=r.F.getTrees())[0],f=u[1],p=u[2],m=u[3],h=u[4],g=u[5],_=u[6],v=u[7];var S=32+(l+3&7?8-(l+3&7):0)+(s<<3),C=i+r.F.contSize(y.fltree,y.lhst)+r.F.contSize(y.fdtree,y.dhst),w=i+r.F.contSize(y.ltree,y.lhst)+r.F.contSize(y.dtree,y.dhst);w+=14+3*g+r.F.contSize(y.itree,y.ihst)+(2*y.ihst[16]+3*y.ihst[17]+7*y.ihst[18]);for(var T=0;T<286;T++)y.lhst[T]=0;for(T=0;T<30;T++)y.dhst[T]=0;for(T=0;T<19;T++)y.ihst[T]=0;var E=S<C&&S<w?0:C<w?1:2;if(b(c,l,e),b(c,l+1,E),l+=3,E==0){for(;7&l;)l++;l=r.F._copyExact(a,o,s,c,l)}else{var D,O;if(E==1&&(D=y.fltree,O=y.fdtree),E==2){r.F.makeCodes(y.ltree,d),r.F.revCodes(y.ltree,d),r.F.makeCodes(y.dtree,f),r.F.revCodes(y.dtree,f),r.F.makeCodes(y.itree,p),r.F.revCodes(y.itree,p),D=y.ltree,O=y.dtree,x(c,l,m-257),x(c,l+=5,h-1),x(c,l+=5,g-4),l+=4;for(var k=0;k<g;k++)x(c,l+3*k,y.itree[1+(y.ordr[k]<<1)]);l+=3*g,l=r.F._codeTiny(_,y.itree,c,l),l=r.F._codeTiny(v,y.itree,c,l)}for(var A=o,j=0;j<n;j+=2){for(var M=t[j],N=M>>>23,P=A+(8388607&M);A<P;)l=r.F._writeLit(a[A++],D,c,l);if(N!=0){var F=t[j+1],I=F>>16,L=F>>8&255,R=255&F;x(c,l=r.F._writeLit(257+L,D,c,l),N-y.of0[L]),l+=y.exb[L],b(c,l=r.F._writeLit(R,O,c,l),I-y.df0[R]),l+=y.dxb[R],A+=N}}l=r.F._writeLit(256,D,c,l)}return l},r.F._copyExact=function(e,t,n,r,i){var a=i>>>3;return r[a]=n,r[a+1]=n>>>8,r[a+2]=255-r[a],r[a+3]=255-r[a+1],a+=4,r.set(new Uint8Array(e.buffer,t,n),a),i+(n+4<<3)},r.F.getTrees=function(){for(var e=r.F.U,t=r.F._hufTree(e.lhst,e.ltree,15),n=r.F._hufTree(e.dhst,e.dtree,15),i=[],a=r.F._lenCodes(e.ltree,i),o=[],s=r.F._lenCodes(e.dtree,o),c=0;c<i.length;c+=2)e.ihst[i[c]]++;for(c=0;c<o.length;c+=2)e.ihst[o[c]]++;for(var l=r.F._hufTree(e.ihst,e.itree,7),u=19;u>4&&e.itree[1+(e.ordr[u-1]<<1)]==0;)u--;return[t,n,l,a,s,u,i,o]},r.F.getSecond=function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(e[n+1]);return t},r.F.nonZero=function(e){for(var t=``,n=0;n<e.length;n+=2)e[n+1]!=0&&(t+=(n>>1)+`,`);return t},r.F.contSize=function(e,t){for(var n=0,r=0;r<t.length;r++)n+=t[r]*e[1+(r<<1)];return n},r.F._codeTiny=function(e,t,n,i){for(var a=0;a<e.length;a+=2){var o=e[a],s=e[a+1];i=r.F._writeLit(o,t,n,i);var c=o==16?2:o==17?3:7;o>15&&(r.F._putsE(n,i,s,c),i+=c)}return i},r.F._lenCodes=function(e,t){for(var n=e.length;n!=2&&e[n-1]==0;)n-=2;for(var r=0;r<n;r+=2){var i=e[r+1],a=r+3<n?e[r+3]:-1,o=r+5<n?e[r+5]:-1,s=r==0?-1:e[r-1];if(i==0&&a==i&&o==i){for(var c=r+5;c+2<n&&e[c+2]==i;)c+=2;(l=Math.min(c+1-r>>>1,138))<11?t.push(17,l-3):t.push(18,l-11),r+=2*l-2}else if(i==s&&a==i&&o==i){for(c=r+5;c+2<n&&e[c+2]==i;)c+=2;var l=Math.min(c+1-r>>>1,6);t.push(16,l-3),r+=2*l-2}else t.push(i,0)}return n>>>1},r.F._hufTree=function(e,t,n){var i=[],a=e.length,o=t.length,s=0;for(s=0;s<o;s+=2)t[s]=0,t[s+1]=0;for(s=0;s<a;s++)e[s]!=0&&i.push({lit:s,f:e[s]});var c=i.length,l=i.slice(0);if(c==0)return 0;if(c==1){var u=i[0].lit;return l=+(u==0),t[1+(u<<1)]=1,t[1+(l<<1)]=1,1}i.sort((function(e,t){return e.f-t.f}));var d=i[0],f=i[1],p=0,m=1,h=2;for(i[0]={lit:-1,f:d.f+f.f,l:d,r:f,d:0};m!=c-1;)d=p!=m&&(h==c||i[p].f<i[h].f)?i[p++]:i[h++],f=p!=m&&(h==c||i[p].f<i[h].f)?i[p++]:i[h++],i[m++]={lit:-1,f:d.f+f.f,l:d,r:f};var g=r.F.setDepth(i[m-1],0);for(g>n&&(r.F.restrictDepth(l,n,g),g=n),s=0;s<c;s++)t[1+(l[s].lit<<1)]=l[s].d;return g},r.F.setDepth=function(e,t){return e.lit==-1?Math.max(r.F.setDepth(e.l,t+1),r.F.setDepth(e.r,t+1)):(e.d=t,t)},r.F.restrictDepth=function(e,t,n){var r=0,i=1<<n-t,a=0;for(e.sort((function(e,t){return t.d==e.d?e.f-t.f:t.d-e.d})),r=0;r<e.length&&e[r].d>t;r++){var o=e[r].d;e[r].d=t,a+=i-(1<<n-o)}for(a>>>=n-t;a>0;)(o=e[r].d)<t?(e[r].d++,a-=1<<t-o-1):r++;for(;r>=0;r--)e[r].d==t&&a<0&&(e[r].d--,a++)},r.F._goodIndex=function(e,t){var n=0;return t[16|n]<=e&&(n|=16),t[8|n]<=e&&(n|=8),t[4|n]<=e&&(n|=4),t[2|n]<=e&&(n|=2),t[1|n]<=e&&(n|=1),n},r.F._writeLit=function(e,t,n,i){return r.F._putsF(n,i,t[e<<1]),i+t[1+(e<<1)]},r.F.inflate=function(e,t){var n=Uint8Array;if(e[0]==3&&e[1]==0)return t||new n(0);var i=r.F,a=i._bitsF,o=i._bitsE,s=i._decodeTiny,c=i.makeCodes,l=i.codes2map,u=i._get17,d=i.U,f=t==null;f&&(t=new n(e.length>>>2<<3));for(var p,m,h=0,g=0,_=0,v=0,y=0,b=0,x=0,S=0,C=0;h==0;)if(h=a(e,C,1),g=a(e,C+1,2),C+=3,g!=0){if(f&&(t=r.F._check(t,S+(1<<17))),g==1&&(p=d.flmap,m=d.fdmap,b=511,x=31),g==2){_=o(e,C,5)+257,v=o(e,C+5,5)+1,y=o(e,C+10,4)+4,C+=14;for(var w=0;w<38;w+=2)d.itree[w]=0,d.itree[w+1]=0;var T=1;for(w=0;w<y;w++){var E=o(e,C+3*w,3);d.itree[1+(d.ordr[w]<<1)]=E,E>T&&(T=E)}C+=3*y,c(d.itree,T),l(d.itree,T,d.imap),p=d.lmap,m=d.dmap,C=s(d.imap,(1<<T)-1,_+v,e,C,d.ttree);var D=i._copyOut(d.ttree,0,_,d.ltree);b=(1<<D)-1;var O=i._copyOut(d.ttree,_,v,d.dtree);x=(1<<O)-1,c(d.ltree,D),l(d.ltree,D,p),c(d.dtree,O),l(d.dtree,O,m)}for(;;){var k=p[u(e,C)&b];C+=15&k;var A=k>>>4;if(!(A>>>8))t[S++]=A;else{if(A==256)break;var j=S+A-254;if(A>264){var M=d.ldef[A-257];j=S+(M>>>3)+o(e,C,7&M),C+=7&M}var N=m[u(e,C)&x];C+=15&N;var P=N>>>4,F=d.ddef[P],I=(F>>>4)+a(e,C,15&F);for(C+=15&F,f&&(t=r.F._check(t,S+(1<<17)));S<j;)t[S]=t[S++-I],t[S]=t[S++-I],t[S]=t[S++-I],t[S]=t[S++-I];S=j}}}else{7&C&&(C+=8-(7&C));var L=4+(C>>>3),R=e[L-4]|e[L-3]<<8;f&&(t=r.F._check(t,S+R)),t.set(new n(e.buffer,e.byteOffset+L,R),S),C=L+R<<3,S+=R}return t.length==S?t:t.slice(0,S)},r.F._check=function(e,t){var n=e.length;if(t<=n)return e;var r=new Uint8Array(Math.max(n<<1,t));return r.set(e,0),r},r.F._decodeTiny=function(e,t,n,i,a,o){for(var s=r.F._bitsE,c=r.F._get17,l=0;l<n;){var u=e[c(i,a)&t];a+=15&u;var d=u>>>4;if(d<=15)o[l]=d,l++;else{var f=0,p=0;d==16?(p=3+s(i,a,2),a+=2,f=o[l-1]):d==17?(p=3+s(i,a,3),a+=3):d==18&&(p=11+s(i,a,7),a+=7);for(var m=l+p;l<m;)o[l]=f,l++}}return a},r.F._copyOut=function(e,t,n,r){for(var i=0,a=0,o=r.length>>>1;a<n;){var s=e[a+t];r[a<<1]=0,r[1+(a<<1)]=s,s>i&&(i=s),a++}for(;a<o;)r[a<<1]=0,r[1+(a<<1)]=0,a++;return i},r.F.makeCodes=function(e,t){for(var n,i,a,o,s=r.F.U,c=e.length,l=s.bl_count,u=0;u<=t;u++)l[u]=0;for(u=1;u<c;u+=2)l[e[u]]++;var d=s.next_code;for(n=0,l[0]=0,i=1;i<=t;i++)n=n+l[i-1]<<1,d[i]=n;for(a=0;a<c;a+=2)(o=e[a+1])!=0&&(e[a]=d[o],d[o]++)},r.F.codes2map=function(e,t,n){for(var i=e.length,a=r.F.U.rev15,o=0;o<i;o+=2)if(e[o+1]!=0)for(var s=o>>1,c=e[o+1],l=s<<4|c,u=t-c,d=e[o]<<u,f=d+(1<<u);d!=f;)n[a[d]>>>15-t]=l,d++},r.F.revCodes=function(e,t){for(var n=r.F.U.rev15,i=15-t,a=0;a<e.length;a+=2)e[a]=n[e[a]<<t-e[a+1]]>>>i},r.F._putsE=function(e,t,n){n<<=7&t;var r=t>>>3;e[r]|=n,e[r+1]|=n>>>8},r.F._putsF=function(e,t,n){n<<=7&t;var r=t>>>3;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},r.F._bitsE=function(e,t,n){return(e[t>>>3]|e[1+(t>>>3)]<<8)>>>(7&t)&(1<<n)-1},r.F._bitsF=function(e,t,n){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)&(1<<n)-1},r.F._get17=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)},r.F._get25=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16|e[3+(t>>>3)]<<24)>>>(7&t)},r.F.U=(t=Uint16Array,n=Uint32Array,{next_code:new t(16),bl_count:new t(16),ordr:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],of0:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],exb:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],ldef:new t(32),df0:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],dxb:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],ddef:new n(32),flmap:new t(512),fltree:[],fdmap:new t(32),fdtree:[],lmap:new t(32768),ltree:[],ttree:[],dmap:new t(32768),dtree:[],imap:new t(512),itree:[],rev15:new t(32768),lhst:new n(286),dhst:new n(30),ihst:new n(19),lits:new n(15e3),strt:new t(65536),prev:new t(32768)}),function(){for(var e=r.F.U,t=0;t<32768;t++){var n=t;n=(4278255360&(n=(4042322160&(n=(3435973836&(n=(2863311530&n)>>>1|(1431655765&n)<<1))>>>2|(858993459&n)<<2))>>>4|(252645135&n)<<4))>>>8|(16711935&n)<<8,e.rev15[t]=(n>>>16|n<<16)>>>17}function i(e,t,n){for(;t--!=0;)e.push(0,n)}for(t=0;t<32;t++)e.ldef[t]=e.of0[t]<<3|e.exb[t],e.ddef[t]=e.df0[t]<<4|e.dxb[t];i(e.fltree,144,8),i(e.fltree,112,9),i(e.fltree,24,7),i(e.fltree,8,8),r.F.makeCodes(e.fltree,9),r.F.codes2map(e.fltree,9,e.flmap),r.F.revCodes(e.fltree,9),i(e.fdtree,32,5),r.F.makeCodes(e.fdtree,5),r.F.codes2map(e.fdtree,5,e.fdmap),r.F.revCodes(e.fdtree,5),i(e.itree,19,0),i(e.ltree,286,0),i(e.dtree,30,0),i(e.ttree,320,0)}()})({get exports(){return r},set exports(e){r=e}});var i=e({__proto__:null,default:r},[r]);let a=function(){var e={nextZero(e,t){for(;e[t]!=0;)t++;return t},readUshort:(e,t)=>e[t]<<8|e[t+1],writeUshort(e,t,n){e[t]=n>>8&255,e[t+1]=255&n},readUint:(e,t)=>16777216*e[t]+(e[t+1]<<16|e[t+2]<<8|e[t+3]),writeUint(e,t,n){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n},readASCII(e,t,n){let r=``;for(let i=0;i<n;i++)r+=String.fromCharCode(e[t+i]);return r},writeASCII(e,t,n){for(let r=0;r<n.length;r++)e[t+r]=n.charCodeAt(r)},readBytes(e,t,n){let r=[];for(let i=0;i<n;i++)r.push(e[t+i]);return r},pad:e=>e.length<2?`0${e}`:e,readUTF8(t,n,r){let i,a=``;for(let i=0;i<r;i++)a+=`%${e.pad(t[n+i].toString(16))}`;try{i=decodeURIComponent(a)}catch{return e.readASCII(t,n,r)}return i}};function t(t,n,r,i){let o=n*r,s=a(i),c=Math.ceil(n*s/8),l=new Uint8Array(4*o),u=new Uint32Array(l.buffer),{ctype:d}=i,{depth:f}=i,p=e.readUshort;if(d==6){let e=o<<2;if(f==8)for(var m=0;m<e;m+=4)l[m]=t[m],l[m+1]=t[m+1],l[m+2]=t[m+2],l[m+3]=t[m+3];if(f==16)for(m=0;m<e;m++)l[m]=t[m<<1]}else if(d==2){let e=i.tabs.tRNS;if(e==null){if(f==8)for(m=0;m<o;m++){var h=3*m;u[m]=255<<24|t[h+2]<<16|t[h+1]<<8|t[h]}if(f==16)for(m=0;m<o;m++)h=6*m,u[m]=255<<24|t[h+4]<<16|t[h+2]<<8|t[h]}else{var g=e[0];let n=e[1],r=e[2];if(f==8)for(m=0;m<o;m++){var _=m<<2;h=3*m,u[m]=255<<24|t[h+2]<<16|t[h+1]<<8|t[h],t[h]==g&&t[h+1]==n&&t[h+2]==r&&(l[_+3]=0)}if(f==16)for(m=0;m<o;m++)_=m<<2,h=6*m,u[m]=255<<24|t[h+4]<<16|t[h+2]<<8|t[h],p(t,h)==g&&p(t,h+2)==n&&p(t,h+4)==r&&(l[_+3]=0)}}else if(d==3){let e=i.tabs.PLTE,a=i.tabs.tRNS,s=a?a.length:0;if(f==1)for(var v=0;v<r;v++){var y=v*c,b=v*n;for(m=0;m<n;m++){_=b+m<<2;var x=3*(S=t[y+(m>>3)]>>7-((7&m)<<0)&1);l[_]=e[x],l[_+1]=e[x+1],l[_+2]=e[x+2],l[_+3]=S<s?a[S]:255}}if(f==2)for(v=0;v<r;v++)for(y=v*c,b=v*n,m=0;m<n;m++)_=b+m<<2,x=3*(S=t[y+(m>>2)]>>6-((3&m)<<1)&3),l[_]=e[x],l[_+1]=e[x+1],l[_+2]=e[x+2],l[_+3]=S<s?a[S]:255;if(f==4)for(v=0;v<r;v++)for(y=v*c,b=v*n,m=0;m<n;m++)_=b+m<<2,x=3*(S=t[y+(m>>1)]>>4-((1&m)<<2)&15),l[_]=e[x],l[_+1]=e[x+1],l[_+2]=e[x+2],l[_+3]=S<s?a[S]:255;if(f==8)for(m=0;m<o;m++){var S;_=m<<2,x=3*(S=t[m]),l[_]=e[x],l[_+1]=e[x+1],l[_+2]=e[x+2],l[_+3]=S<s?a[S]:255}}else if(d==4){if(f==8)for(m=0;m<o;m++){_=m<<2;var C=t[w=m<<1];l[_]=C,l[_+1]=C,l[_+2]=C,l[_+3]=t[w+1]}if(f==16)for(m=0;m<o;m++){var w;_=m<<2,C=t[w=m<<2],l[_]=C,l[_+1]=C,l[_+2]=C,l[_+3]=t[w+2]}}else if(d==0)for(g=i.tabs.tRNS?i.tabs.tRNS:-1,v=0;v<r;v++){let e=v*c,r=v*n;if(f==1)for(var T=0;T<n;T++){var E=(C=255*(t[e+(T>>>3)]>>>7-(7&T)&1))==255*g?0:255;u[r+T]=E<<24|C<<16|C<<8|C}else if(f==2)for(T=0;T<n;T++)E=(C=85*(t[e+(T>>>2)]>>>6-((3&T)<<1)&3))==85*g?0:255,u[r+T]=E<<24|C<<16|C<<8|C;else if(f==4)for(T=0;T<n;T++)E=(C=17*(t[e+(T>>>1)]>>>4-((1&T)<<2)&15))==17*g?0:255,u[r+T]=E<<24|C<<16|C<<8|C;else if(f==8)for(T=0;T<n;T++)E=(C=t[e+T])==g?0:255,u[r+T]=E<<24|C<<16|C<<8|C;else if(f==16)for(T=0;T<n;T++)C=t[e+(T<<1)],E=p(t,e+(T<<1))==g?0:255,u[r+T]=E<<24|C<<16|C<<8|C}return l}function n(e,t,n,s){let c=a(e),l=Math.ceil(n*c/8),u=new Uint8Array((l+1+e.interlace)*s);return t=e.tabs.CgBI?i(t,u):r(t,u),e.interlace==0?t=o(t,e,0,n,s):e.interlace==1&&(t=function(e,t){let n=t.width,r=t.height,i=a(t),s=i>>3,c=Math.ceil(n*i/8),l=new Uint8Array(r*c),u=0,d=[0,0,4,0,2,0,1],f=[0,4,0,2,0,1,0],p=[8,8,8,4,4,2,2],m=[8,8,4,4,2,2,1],h=0;for(;h<7;){let a=p[h],_=m[h],v=0,y=0,b=d[h];for(;b<r;)b+=a,y++;let x=f[h];for(;x<n;)x+=_,v++;let S=Math.ceil(v*i/8);o(e,t,u,v,y);let C=0,w=d[h];for(;w<r;){let t=f[h],r=u+C*S<<3;for(;t<n;){var g;if(i==1&&(g=(g=e[r>>3])>>7-(7&r)&1,l[w*c+(t>>3)]|=g<<7-((7&t)<<0)),i==2&&(g=(g=e[r>>3])>>6-(7&r)&3,l[w*c+(t>>2)]|=g<<6-((3&t)<<1)),i==4&&(g=(g=e[r>>3])>>4-(7&r)&15,l[w*c+(t>>1)]|=g<<4-((1&t)<<2)),i>=8){let n=w*c+t*s;for(let t=0;t<s;t++)l[n+t]=e[(r>>3)+t]}r+=i,t+=_}C++,w+=a}v*y!=0&&(u+=y*(1+S)),h+=1}return l}(t,e)),t}function r(e,t){return i(new Uint8Array(e.buffer,2,e.length-6),t)}var i=function(){let e={H:{}};return e.H.N=function(t,n){let r=Uint8Array,i,a,o=0,s=0,c=0,l=0,u=0,d=0,f=0,p=0,m=0;if(t[0]==3&&t[1]==0)return n||new r(0);let h=e.H,g=h.b,_=h.e,v=h.R,y=h.n,b=h.A,x=h.Z,S=h.m,C=n==null;for(C&&(n=new r(t.length>>>2<<5));o==0;)if(o=g(t,m,1),s=g(t,m+1,2),m+=3,s!=0){if(C&&(n=e.H.W(n,p+(1<<17))),s==1&&(i=S.J,a=S.h,d=511,f=31),s==2){c=_(t,m,5)+257,l=_(t,m+5,5)+1,u=_(t,m+10,4)+4,m+=14;let e=1;for(var w=0;w<38;w+=2)S.Q[w]=0,S.Q[w+1]=0;for(w=0;w<u;w++){let n=_(t,m+3*w,3);S.Q[1+(S.X[w]<<1)]=n,n>e&&(e=n)}m+=3*u,y(S.Q,e),b(S.Q,e,S.u),i=S.w,a=S.d,m=v(S.u,(1<<e)-1,c+l,t,m,S.v);let n=h.V(S.v,0,c,S.C);d=(1<<n)-1;let r=h.V(S.v,c,l,S.D);f=(1<<r)-1,y(S.C,n),b(S.C,n,i),y(S.D,r),b(S.D,r,a)}for(;;){let e=i[x(t,m)&d];m+=15&e;let r=e>>>4;if(!(r>>>8))n[p++]=r;else{if(r==256)break;{let e=p+r-254;if(r>264){let n=S.q[r-257];e=p+(n>>>3)+_(t,m,7&n),m+=7&n}let i=a[x(t,m)&f];m+=15&i;let o=i>>>4,s=S.c[o],c=(s>>>4)+g(t,m,15&s);for(m+=15&s;p<e;)n[p]=n[p++-c],n[p]=n[p++-c],n[p]=n[p++-c],n[p]=n[p++-c];p=e}}}}else{7&m&&(m+=8-(7&m));let i=4+(m>>>3),a=t[i-4]|t[i-3]<<8;C&&(n=e.H.W(n,p+a)),n.set(new r(t.buffer,t.byteOffset+i,a),p),m=i+a<<3,p+=a}return n.length==p?n:n.slice(0,p)},e.H.W=function(e,t){let n=e.length;if(t<=n)return e;let r=new Uint8Array(n<<1);return r.set(e,0),r},e.H.R=function(t,n,r,i,a,o){let s=e.H.e,c=e.H.Z,l=0;for(;l<r;){let e=t[c(i,a)&n];a+=15&e;let r=e>>>4;if(r<=15)o[l]=r,l++;else{let e=0,t=0;r==16?(t=3+s(i,a,2),a+=2,e=o[l-1]):r==17?(t=3+s(i,a,3),a+=3):r==18&&(t=11+s(i,a,7),a+=7);let n=l+t;for(;l<n;)o[l]=e,l++}}return a},e.H.V=function(e,t,n,r){let i=0,a=0,o=r.length>>>1;for(;a<n;){let n=e[a+t];r[a<<1]=0,r[1+(a<<1)]=n,n>i&&(i=n),a++}for(;a<o;)r[a<<1]=0,r[1+(a<<1)]=0,a++;return i},e.H.n=function(t,n){let r=e.H.m,i=t.length,a,o,s,c,l=r.j;for(var u=0;u<=n;u++)l[u]=0;for(u=1;u<i;u+=2)l[t[u]]++;let d=r.K;for(a=0,l[0]=0,o=1;o<=n;o++)a=a+l[o-1]<<1,d[o]=a;for(s=0;s<i;s+=2)c=t[s+1],c!=0&&(t[s]=d[c],d[c]++)},e.H.A=function(t,n,r){let i=t.length,a=e.H.m.r;for(let e=0;e<i;e+=2)if(t[e+1]!=0){let i=e>>1,o=t[e+1],s=i<<4|o,c=n-o,l=t[e]<<c,u=l+(1<<c);for(;l!=u;)r[a[l]>>>15-n]=s,l++}},e.H.l=function(t,n){let r=e.H.m.r,i=15-n;for(let e=0;e<t.length;e+=2)t[e]=r[t[e]<<n-t[e+1]]>>>i},e.H.M=function(e,t,n){n<<=7&t;let r=t>>>3;e[r]|=n,e[r+1]|=n>>>8},e.H.I=function(e,t,n){n<<=7&t;let r=t>>>3;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},e.H.e=function(e,t,n){return(e[t>>>3]|e[1+(t>>>3)]<<8)>>>(7&t)&(1<<n)-1},e.H.b=function(e,t,n){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)&(1<<n)-1},e.H.Z=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)},e.H.i=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16|e[3+(t>>>3)]<<24)>>>(7&t)},e.H.m=function(){let e=Uint16Array,t=Uint32Array;return{K:new e(16),j:new e(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],T:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],q:new e(32),p:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],z:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],c:new t(32),J:new e(512),_:[],h:new e(32),$:[],w:new e(32768),C:[],v:[],d:new e(32768),D:[],u:new e(512),Q:[],r:new e(32768),s:new t(286),Y:new t(30),a:new t(19),t:new t(15e3),k:new e(65536),g:new e(32768)}}(),function(){let t=e.H.m;for(var n=0;n<32768;n++){let e=n;e=(2863311530&e)>>>1|(1431655765&e)<<1,e=(3435973836&e)>>>2|(858993459&e)<<2,e=(4042322160&e)>>>4|(252645135&e)<<4,e=(4278255360&e)>>>8|(16711935&e)<<8,t.r[n]=(e>>>16|e<<16)>>>17}function r(e,t,n){for(;t--!=0;)e.push(0,n)}for(n=0;n<32;n++)t.q[n]=t.S[n]<<3|t.T[n],t.c[n]=t.p[n]<<4|t.z[n];r(t._,144,8),r(t._,112,9),r(t._,24,7),r(t._,8,8),e.H.n(t._,9),e.H.A(t._,9,t.J),e.H.l(t._,9),r(t.$,32,5),e.H.n(t.$,5),e.H.A(t.$,5,t.h),e.H.l(t.$,5),r(t.Q,19,0),r(t.C,286,0),r(t.D,30,0),r(t.v,320,0)}(),e.H.N}();function a(e){return[1,null,3,1,2,null,4][e.ctype]*e.depth}function o(e,t,n,r,i){let o=a(t),c=Math.ceil(r*o/8),l,u;o=Math.ceil(o/8);let d=e[n],f=0;if(d>1&&(e[n]=[0,0,1][d-2]),d==3)for(f=o;f<c;f++)e[f+1]=e[f+1]+(e[f+1-o]>>>1)&255;for(let t=0;t<i;t++)if(l=n+t*c,u=l+t+1,d=e[u-1],f=0,d==0)for(;f<c;f++)e[l+f]=e[u+f];else if(d==1){for(;f<o;f++)e[l+f]=e[u+f];for(;f<c;f++)e[l+f]=e[u+f]+e[l+f-o]}else if(d==2)for(;f<c;f++)e[l+f]=e[u+f]+e[l+f-c];else if(d==3){for(;f<o;f++)e[l+f]=e[u+f]+(e[l+f-c]>>>1);for(;f<c;f++)e[l+f]=e[u+f]+(e[l+f-c]+e[l+f-o]>>>1)}else{for(;f<o;f++)e[l+f]=e[u+f]+s(0,e[l+f-c],0);for(;f<c;f++)e[l+f]=e[u+f]+s(e[l+f-o],e[l+f-c],e[l+f-o-c])}return e}function s(e,t,n){let r=e+t-n,i=r-e,a=r-t,o=r-n;return i*i<=a*a&&i*i<=o*o?e:a*a<=o*o?t:n}function c(t,n,r){r.width=e.readUint(t,n),n+=4,r.height=e.readUint(t,n),n+=4,r.depth=t[n],n++,r.ctype=t[n],n++,r.compress=t[n],n++,r.filter=t[n],n++,r.interlace=t[n],n++}function l(e,t,n,r,i,a,o,s,c){let l=Math.min(t,i),u=Math.min(n,a),d=0,f=0;for(let n=0;n<u;n++)for(let a=0;a<l;a++)if(o>=0&&s>=0?(d=n*t+a<<2,f=(s+n)*i+o+a<<2):(d=(-s+n)*t-o+a<<2,f=n*i+a<<2),c==0)r[f]=e[d],r[f+1]=e[d+1],r[f+2]=e[d+2],r[f+3]=e[d+3];else if(c==1){var p=e[d+3]*(1/255),m=e[d]*p,h=e[d+1]*p,g=e[d+2]*p,_=r[f+3]*(1/255),v=r[f]*_,y=r[f+1]*_,b=r[f+2]*_;let t=1-p,n=p+_*t,i=n==0?0:1/n;r[f+3]=255*n,r[f+0]=(m+v*t)*i,r[f+1]=(h+y*t)*i,r[f+2]=(g+b*t)*i}else if(c==2)p=e[d+3],m=e[d],h=e[d+1],g=e[d+2],_=r[f+3],v=r[f],y=r[f+1],b=r[f+2],p==_&&m==v&&h==y&&g==b?(r[f]=0,r[f+1]=0,r[f+2]=0,r[f+3]=0):(r[f]=m,r[f+1]=h,r[f+2]=g,r[f+3]=p);else if(c==3){if(p=e[d+3],m=e[d],h=e[d+1],g=e[d+2],_=r[f+3],v=r[f],y=r[f+1],b=r[f+2],p==_&&m==v&&h==y&&g==b)continue;if(p<220&&_>20)return!1}return!0}return{decode:function(t){let a=new Uint8Array(t),o=8,s=e,l=s.readUshort,u=s.readUint,d={tabs:{},frames:[]},f=new Uint8Array(a.length),p,m=0,h=0,g=[137,80,78,71,13,10,26,10];for(var _=0;_<8;_++)if(a[_]!=g[_])throw`The input is not a PNG file!`;for(;o<a.length;){let e=s.readUint(a,o);o+=4;let t=s.readASCII(a,o,4);if(o+=4,t==`IHDR`)c(a,o,d);else if(t==`iCCP`){for(var v=o;a[v]!=0;)v++;s.readASCII(a,o,v-o),a[v+1];let n=a.slice(v+2,o+e),c=null;try{c=r(n)}catch{c=i(n)}d.tabs[t]=c}else if(t==`CgBI`)d.tabs[t]=a.slice(o,o+4);else if(t==`IDAT`){for(_=0;_<e;_++)f[m+_]=a[o+_];m+=e}else if(t==`acTL`)d.tabs[t]={num_frames:u(a,o),num_plays:u(a,o+4)},p=new Uint8Array(a.length);else if(t==`fcTL`){h!=0&&((w=d.frames[d.frames.length-1]).data=n(d,p.slice(0,h),w.rect.width,w.rect.height),h=0);let e={x:u(a,o+12),y:u(a,o+16),width:u(a,o+4),height:u(a,o+8)},t=l(a,o+22);t=l(a,o+20)/(t==0?100:t);let r={rect:e,delay:Math.round(1e3*t),dispose:a[o+24],blend:a[o+25]};d.frames.push(r)}else if(t==`fdAT`){for(_=0;_<e-4;_++)p[h+_]=a[o+_+4];h+=e-4}else if(t==`pHYs`)d.tabs[t]=[s.readUint(a,o),s.readUint(a,o+4),a[o+8]];else if(t==`cHRM`)for(d.tabs[t]=[],_=0;_<8;_++)d.tabs[t].push(s.readUint(a,o+4*_));else if(t==`tEXt`||t==`zTXt`){d.tabs[t]??(d.tabs[t]={});var y=s.nextZero(a,o),b=s.readASCII(a,o,y-o),x=o+e-y-1;if(t==`tEXt`)C=s.readASCII(a,y+1,x);else{var S=r(a.slice(y+2,y+2+x));C=s.readUTF8(S,0,S.length)}d.tabs[t][b]=C}else if(t==`iTXt`){d.tabs[t]??(d.tabs[t]={}),y=0,v=o,y=s.nextZero(a,v),b=s.readASCII(a,v,y-v);let n=a[v=y+1];var C;a[v+1],v+=2,y=s.nextZero(a,v),s.readASCII(a,v,y-v),v=y+1,y=s.nextZero(a,v),s.readUTF8(a,v,y-v),x=e-((v=y+1)-o),n==0?C=s.readUTF8(a,v,x):(S=r(a.slice(v,v+x)),C=s.readUTF8(S,0,S.length)),d.tabs[t][b]=C}else if(t==`PLTE`)d.tabs[t]=s.readBytes(a,o,e);else if(t==`hIST`){let e=d.tabs.PLTE.length/3;for(d.tabs[t]=[],_=0;_<e;_++)d.tabs[t].push(l(a,o+2*_))}else if(t==`tRNS`)d.ctype==3?d.tabs[t]=s.readBytes(a,o,e):d.ctype==0?d.tabs[t]=l(a,o):d.ctype==2&&(d.tabs[t]=[l(a,o),l(a,o+2),l(a,o+4)]);else if(t==`gAMA`)d.tabs[t]=s.readUint(a,o)/1e5;else if(t==`sRGB`)d.tabs[t]=a[o];else if(t==`bKGD`)d.ctype==0||d.ctype==4?d.tabs[t]=[l(a,o)]:d.ctype==2||d.ctype==6?d.tabs[t]=[l(a,o),l(a,o+2),l(a,o+4)]:d.ctype==3&&(d.tabs[t]=a[o]);else if(t==`IEND`)break;o+=e,s.readUint(a,o),o+=4}var w;return h!=0&&((w=d.frames[d.frames.length-1]).data=n(d,p.slice(0,h),w.rect.width,w.rect.height)),d.data=n(d,f,d.width,d.height),delete d.compress,delete d.interlace,delete d.filter,d},toRGBA8:function(e){let n=e.width,r=e.height;if(e.tabs.acTL==null)return[t(e.data,n,r,e).buffer];let i=[];e.frames[0].data??(e.frames[0].data=e.data);let a=n*r*4,o=new Uint8Array(a),s=new Uint8Array(a),c=new Uint8Array(a);for(let d=0;d<e.frames.length;d++){let f=e.frames[d],p=f.rect.x,m=f.rect.y,h=f.rect.width,g=f.rect.height,_=t(f.data,h,g,e);if(d!=0)for(var u=0;u<a;u++)c[u]=o[u];if(f.blend==0?l(_,h,g,o,n,r,p,m,0):f.blend==1&&l(_,h,g,o,n,r,p,m,1),i.push(o.buffer.slice(0)),f.dispose!=0){if(f.dispose==1)l(s,h,g,o,n,r,p,m,0);else if(f.dispose==2)for(u=0;u<a;u++)o[u]=c[u]}}return i},_paeth:s,_copyTile:l,_bin:e}}();(function(){let{_copyTile:e}=a,{_bin:t}=a,n=a._paeth;var r={table:function(){let e=new Uint32Array(256);for(let t=0;t<256;t++){let n=t;for(let e=0;e<8;e++)1&n?n=3988292384^n>>>1:n>>>=1;e[t]=n}return e}(),update(e,t,n,i){for(let a=0;a<i;a++)e=r.table[255&(e^t[n+a])]^e>>>8;return e},crc:(e,t,n)=>4294967295^r.update(4294967295,e,t,n)};function o(e,t,n,r){t[n]+=e[0]*r>>4,t[n+1]+=e[1]*r>>4,t[n+2]+=e[2]*r>>4,t[n+3]+=e[3]*r>>4}function s(e){return Math.max(0,Math.min(255,e))}function c(e,t){let n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return n*n+r*r+i*i+a*a}function l(e,t,n,r,i,a,l){l??=1;let u=r.length,d=[];for(var f=0;f<u;f++){let e=r[f];d.push([e>>>0&255,e>>>8&255,e>>>16&255,e>>>24&255])}for(f=0;f<u;f++){let e=4294967295;for(var p=0,m=0;m<u;m++){var h=c(d[f],d[m]);m!=f&&h<e&&(e=h,p=m)}}let g=new Uint32Array(i.buffer),_=new Int16Array(t*n*4),v=[0,8,2,10,12,4,14,6,3,11,1,9,15,7,13,5];for(f=0;f<v.length;f++)v[f]=255*((v[f]+.5)/16-.5);for(let i=0;i<n;i++)for(let b=0;b<t;b++){var y;f=4*(i*t+b),l==2?(h=v[4*(3&i)+(3&b)],y=[s(e[f]+h),s(e[f+1]+h),s(e[f+2]+h),s(e[f+3]+h)]):y=[s(e[f]+_[f]),s(e[f+1]+_[f+1]),s(e[f+2]+_[f+2]),s(e[f+3]+_[f+3])],p=0;let x=16777215;for(m=0;m<u;m++){let e=c(y,d[m]);e<x&&(x=e,p=m)}let S=d[p],C=[y[0]-S[0],y[1]-S[1],y[2]-S[2],y[3]-S[3]];l==1&&(b!=t-1&&o(C,_,f+4,7),i!=n-1&&(b!=0&&o(C,_,f+4*t-4,3),o(C,_,f+4*t,5),b!=t-1&&o(C,_,f+4*t+4,1))),a[f>>2]=p,g[f>>2]=r[p]}}function u(e,n,i,a,o){o??={};let{crc:s}=r,c=t.writeUint,l=t.writeUshort,u=t.writeASCII,d=8,f=e.frames.length>1,p,m=!1,h=33+(f?20:0);if(o.sRGB!=null&&(h+=13),o.pHYs!=null&&(h+=21),o.iCCP!=null&&(p=pako.deflate(o.iCCP),h+=21+p.length+4),e.ctype==3){for(var g=e.plte.length,_=0;_<g;_++)e.plte[_]>>>24!=255&&(m=!0);h+=8+3*g+4+(m?8+1*g+4:0)}for(var v=0;v<e.frames.length;v++)f&&(h+=38),h+=(S=e.frames[v]).cimg.length+12,v!=0&&(h+=4);h+=12;let y=new Uint8Array(h),b=[137,80,78,71,13,10,26,10];for(_=0;_<8;_++)y[_]=b[_];if(c(y,d,13),d+=4,u(y,d,`IHDR`),d+=4,c(y,d,n),d+=4,c(y,d,i),d+=4,y[d]=e.depth,d++,y[d]=e.ctype,d++,y[d]=0,d++,y[d]=0,d++,y[d]=0,d++,c(y,d,s(y,d-17,17)),d+=4,o.sRGB!=null&&(c(y,d,1),d+=4,u(y,d,`sRGB`),d+=4,y[d]=o.sRGB,d++,c(y,d,s(y,d-5,5)),d+=4),o.iCCP!=null){let e=13+p.length;c(y,d,e),d+=4,u(y,d,`iCCP`),d+=4,u(y,d,`ICC profile`),d+=11,d+=2,y.set(p,d),d+=p.length,c(y,d,s(y,d-(e+4),e+4)),d+=4}if(o.pHYs!=null&&(c(y,d,9),d+=4,u(y,d,`pHYs`),d+=4,c(y,d,o.pHYs[0]),d+=4,c(y,d,o.pHYs[1]),d+=4,y[d]=o.pHYs[2],d++,c(y,d,s(y,d-13,13)),d+=4),f&&(c(y,d,8),d+=4,u(y,d,`acTL`),d+=4,c(y,d,e.frames.length),d+=4,c(y,d,o.loop==null?0:o.loop),d+=4,c(y,d,s(y,d-12,12)),d+=4),e.ctype==3){for(c(y,d,3*(g=e.plte.length)),d+=4,u(y,d,`PLTE`),d+=4,_=0;_<g;_++){let t=3*_,n=e.plte[_],r=255&n,i=n>>>8&255,a=n>>>16&255;y[d+t+0]=r,y[d+t+1]=i,y[d+t+2]=a}if(d+=3*g,c(y,d,s(y,d-3*g-4,3*g+4)),d+=4,m){for(c(y,d,g),d+=4,u(y,d,`tRNS`),d+=4,_=0;_<g;_++)y[d+_]=e.plte[_]>>>24&255;d+=g,c(y,d,s(y,d-g-4,g+4)),d+=4}}let x=0;for(v=0;v<e.frames.length;v++){var S=e.frames[v];f&&(c(y,d,26),d+=4,u(y,d,`fcTL`),d+=4,c(y,d,x++),d+=4,c(y,d,S.rect.width),d+=4,c(y,d,S.rect.height),d+=4,c(y,d,S.rect.x),d+=4,c(y,d,S.rect.y),d+=4,l(y,d,a[v]),d+=2,l(y,d,1e3),d+=2,y[d]=S.dispose,d++,y[d]=S.blend,d++,c(y,d,s(y,d-30,30)),d+=4);let t=S.cimg;c(y,d,(g=t.length)+(v==0?0:4)),d+=4;let n=d;u(y,d,v==0?`IDAT`:`fdAT`),d+=4,v!=0&&(c(y,d,x++),d+=4),y.set(t,d),d+=g,c(y,d,s(y,n,d-n)),d+=4}return c(y,d,0),d+=4,u(y,d,`IEND`),d+=4,c(y,d,s(y,d-4,4)),d+=4,y.buffer}function d(e,t,n){for(let r=0;r<e.frames.length;r++){let i=e.frames[r];i.rect.width;let a=i.rect.height,o=new Uint8Array(a*i.bpl+a);i.cimg=h(i.img,a,i.bpp,i.bpl,o,t,n)}}function f(t,n,r,i,a){let o=a[0],s=a[1],c=a[2],u=a[3],d=a[4],f=a[5],h=6,g=8,v=255;for(var y=0;y<t.length;y++){let e=new Uint8Array(t[y]);for(var b=e.length,x=0;x<b;x+=4)v&=e[x+3]}let S=v!=255,C=function(t,n,r,i,a,o){let s=[];for(var c=0;c<t.length;c++){let d=new Uint8Array(t[c]),p=new Uint32Array(d.buffer);var l;let h=0,g=0,_=n,v=r,y=+!!i;if(c!=0){let b=o||i||c==1||s[c-2].dispose!=0?1:2,x=0,S=1e9;for(let e=0;e<b;e++){var u=new Uint8Array(t[c-1-e]);let i=new Uint32Array(t[c-1-e]),o=n,s=r,l=-1,d=-1;for(let e=0;e<r;e++)for(let t=0;t<n;t++)p[f=e*n+t]!=i[f]&&(t<o&&(o=t),t>l&&(l=t),e<s&&(s=e),e>d&&(d=e));l==-1&&(o=s=l=d=0),a&&((1&o)==1&&o--,(1&s)==1&&s--);let m=(l-o+1)*(d-s+1);m<S&&(S=m,x=e,h=o,g=s,_=l-o+1,v=d-s+1)}u=new Uint8Array(t[c-1-x]),x==1&&(s[c-1].dispose=2),l=new Uint8Array(_*v*4),e(u,n,r,l,_,v,-h,-g,0),y=+!!e(d,n,r,l,_,v,-h,-g,3),y==1?m(d,n,r,l,{x:h,y:g,width:_,height:v}):e(d,n,r,l,_,v,-h,-g,0)}else l=d.slice(0);s.push({rect:{x:h,y:g,width:_,height:v},img:l,blend:y,dispose:0})}if(i)for(c=0;c<s.length;c++){if((h=s[c]).blend==1)continue;let e=h.rect,i=s[c-1].rect,o=Math.min(e.x,i.x),l=Math.min(e.y,i.y),u={x:o,y:l,width:Math.max(e.x+e.width,i.x+i.width)-o,height:Math.max(e.y+e.height,i.y+i.height)-l};s[c-1].dispose=1,c-1!=0&&p(t,n,r,s,c-1,u,a),p(t,n,r,s,c,u,a)}let d=0;if(t.length!=1)for(var f=0;f<s.length;f++){var h;d+=(h=s[f]).rect.width*h.rect.height}return s}(t,n,r,o,s,c),w={},T=[],E=[];if(i!=0){let e=[];for(x=0;x<C.length;x++)e.push(C[x].img.buffer);let t=_(function(e){let t=0;for(var n=0;n<e.length;n++)t+=e[n].byteLength;let r=new Uint8Array(t),i=0;for(n=0;n<e.length;n++){let t=new Uint8Array(e[n]),a=t.length;for(let e=0;e<a;e+=4){let n=t[e],a=t[e+1],o=t[e+2],s=t[e+3];s==0&&(n=a=o=0),r[i+e]=n,r[i+e+1]=a,r[i+e+2]=o,r[i+e+3]=s}i+=a}return r.buffer}(e),i);for(x=0;x<t.plte.length;x++)T.push(t.plte[x].est.rgba);let n=0;for(x=0;x<C.length;x++){let e=(O=C[x]).img.length;var D=new Uint8Array(t.inds.buffer,n>>2,e>>2);E.push(D);let r=new Uint8Array(t.abuf,n,e);f&&l(O.img,O.rect.width,O.rect.height,T,r,D),O.img.set(r),n+=e}}else for(y=0;y<C.length;y++){var O=C[y];let e=new Uint32Array(O.img.buffer);var k=O.rect.width;for(b=e.length,D=new Uint8Array(b),E.push(D),x=0;x<b;x++){let t=e[x];if(x!=0&&t==e[x-1])D[x]=D[x-1];else if(x>k&&t==e[x-k])D[x]=D[x-k];else{let e=w[t];if(e==null&&(w[t]=e=T.length,T.push(t),T.length>=300))break;D[x]=e}}}let A=T.length;for(A<=256&&d==0&&(g=A<=2?1:A<=4?2:A<=16?4:8,g=Math.max(g,u)),y=0;y<C.length;y++){(O=C[y]).rect.x,O.rect.y,k=O.rect.width;let e=O.rect.height,t=O.img;new Uint32Array(t.buffer);let n=4*k,r=4;if(A<=256&&d==0){n=Math.ceil(g*k/8);var j=new Uint8Array(n*e);let i=E[y];for(let t=0;t<e;t++){x=t*n;let e=t*k;if(g==8)for(var M=0;M<k;M++)j[x+M]=i[e+M];else if(g==4)for(M=0;M<k;M++)j[x+(M>>1)]|=i[e+M]<<4-4*(1&M);else if(g==2)for(M=0;M<k;M++)j[x+(M>>2)]|=i[e+M]<<6-2*(3&M);else if(g==1)for(M=0;M<k;M++)j[x+(M>>3)]|=i[e+M]<<7-1*(7&M)}t=j,h=3,r=1}else if(S==0&&C.length==1){j=new Uint8Array(k*e*3);let i=k*e;for(x=0;x<i;x++){let e=3*x,n=4*x;j[e]=t[n],j[e+1]=t[n+1],j[e+2]=t[n+2]}t=j,h=2,r=3,n=3*k}O.img=t,O.bpl=n,O.bpp=r}return{ctype:h,depth:g,plte:T,frames:C}}function p(t,n,r,i,a,o,s){let c=Uint8Array,l=Uint32Array,u=new c(t[a-1]),d=new l(t[a-1]),f=a+1<t.length?new c(t[a+1]):null,p=new c(t[a]),h=new l(p.buffer),g=n,_=r,v=-1,y=-1;for(let e=0;e<o.height;e++)for(let t=0;t<o.width;t++){let r=o.x+t,s=o.y+e,c=s*n+r,l=h[c];l==0||i[a-1].dispose==0&&d[c]==l&&(f==null||f[4*c+3]!=0)||(r<g&&(g=r),r>v&&(v=r),s<_&&(_=s),s>y&&(y=s))}v==-1&&(g=_=v=y=0),s&&((1&g)==1&&g--,(1&_)==1&&_--),o={x:g,y:_,width:v-g+1,height:y-_+1};let b=i[a];b.rect=o,b.blend=1,b.img=new Uint8Array(o.width*o.height*4),i[a-1].dispose==0?(e(u,n,r,b.img,o.width,o.height,-o.x,-o.y,0),m(p,n,r,b.img,o)):e(p,n,r,b.img,o.width,o.height,-o.x,-o.y,0)}function m(t,n,r,i,a){e(t,n,r,i,a.width,a.height,-a.x,-a.y,2)}function h(e,t,n,r,a,o,s){let c=[],l,u=[0,1,2,3,4];o==-1?(t*r>5e5||n==1)&&(u=[0]):u=[o],s&&(l={level:0});let d=i;for(var f=0;f<u.length;f++){for(let i=0;i<t;i++)g(a,e,i,r,n,u[f]);c.push(d.deflate(a,l))}let p,m=1e9;for(f=0;f<c.length;f++)c[f].length<m&&(p=f,m=c[f].length);return c[p]}function g(e,t,r,i,a,o){let s=r*i,c=s+r;if(e[c]=o,c++,o==0)if(i<500)for(var l=0;l<i;l++)e[c+l]=t[s+l];else e.set(new Uint8Array(t.buffer,s,i),c);else if(o==1){for(l=0;l<a;l++)e[c+l]=t[s+l];for(l=a;l<i;l++)e[c+l]=t[s+l]-t[s+l-a]+256&255}else if(r==0){for(l=0;l<a;l++)e[c+l]=t[s+l];if(o==2)for(l=a;l<i;l++)e[c+l]=t[s+l];if(o==3)for(l=a;l<i;l++)e[c+l]=t[s+l]-(t[s+l-a]>>1)+256&255;if(o==4)for(l=a;l<i;l++)e[c+l]=t[s+l]-n(t[s+l-a],0,0)+256&255}else{if(o==2)for(l=0;l<i;l++)e[c+l]=t[s+l]+256-t[s+l-i]&255;if(o==3){for(l=0;l<a;l++)e[c+l]=t[s+l]+256-(t[s+l-i]>>1)&255;for(l=a;l<i;l++)e[c+l]=t[s+l]+256-(t[s+l-i]+t[s+l-a]>>1)&255}if(o==4){for(l=0;l<a;l++)e[c+l]=t[s+l]+256-n(0,t[s+l-i],0)&255;for(l=a;l<i;l++)e[c+l]=t[s+l]+256-n(t[s+l-a],t[s+l-i],t[s+l-a-i])&255}}}function _(e,t){let n=new Uint8Array(e),r=n.slice(0),i=new Uint32Array(r.buffer),a=v(r,t),o=a[0],s=a[1],c=n.length,l=new Uint8Array(c>>2),u;if(n.length<2e7)for(var d=0;d<c;d+=4)u=y(o,f=n[d]*(1/255),p=n[d+1]*(1/255),m=n[d+2]*(1/255),h=n[d+3]*(1/255)),l[d>>2]=u.ind,i[d>>2]=u.est.rgba;else for(d=0;d<c;d+=4){var f=n[d]*(1/255),p=n[d+1]*(1/255),m=n[d+2]*(1/255),h=n[d+3]*(1/255);for(u=o;u.left;)u=b(u.est,f,p,m,h)<=0?u.left:u.right;l[d>>2]=u.ind,i[d>>2]=u.est.rgba}return{abuf:r.buffer,inds:l,plte:s}}function v(e,t,n){n??=1e-4;let r=new Uint32Array(e.buffer),i={i0:0,i1:e.length,bst:null,est:null,tdst:0,left:null,right:null};i.bst=C(e,i.i0,i.i1),i.est=w(i.bst);let a=[i];for(;a.length<t;){let t=0,i=0;for(var o=0;o<a.length;o++)a[o].est.L>t&&(t=a[o].est.L,i=o);if(t<n)break;let s=a[i],c=x(e,r,s.i0,s.i1,s.est.e,s.est.eMq255);if(s.i0>=c||s.i1<=c){s.est.L=0;continue}let l={i0:s.i0,i1:c,bst:null,est:null,tdst:0,left:null,right:null};l.bst=C(e,l.i0,l.i1),l.est=w(l.bst);let u={i0:c,i1:s.i1,bst:null,est:null,tdst:0,left:null,right:null};for(u.bst={R:[],m:[],N:s.bst.N-l.bst.N},o=0;o<16;o++)u.bst.R[o]=s.bst.R[o]-l.bst.R[o];for(o=0;o<4;o++)u.bst.m[o]=s.bst.m[o]-l.bst.m[o];u.est=w(u.bst),s.left=l,s.right=u,a[i]=l,a.push(u)}for(a.sort(((e,t)=>t.bst.N-e.bst.N)),o=0;o<a.length;o++)a[o].ind=o;return[i,a]}function y(e,t,n,r,i){if(e.left==null)return e.tdst=function(e,t,n,r,i){let a=t-e[0],o=n-e[1],s=r-e[2],c=i-e[3];return a*a+o*o+s*s+c*c}(e.est.q,t,n,r,i),e;let a=b(e.est,t,n,r,i),o=e.left,s=e.right;a>0&&(o=e.right,s=e.left);let c=y(o,t,n,r,i);if(c.tdst<=a*a)return c;let l=y(s,t,n,r,i);return l.tdst<c.tdst?l:c}function b(e,t,n,r,i){let{e:a}=e;return a[0]*t+a[1]*n+a[2]*r+a[3]*i-e.eMq}function x(e,t,n,r,i,a){for(r-=4;n<r;){for(;S(e,n,i)<=a;)n+=4;for(;S(e,r,i)>a;)r-=4;if(n>=r)break;let o=t[n>>2];t[n>>2]=t[r>>2],t[r>>2]=o,n+=4,r-=4}for(;S(e,n,i)>a;)n-=4;return n+4}function S(e,t,n){return e[t]*n[0]+e[t+1]*n[1]+e[t+2]*n[2]+e[t+3]*n[3]}function C(e,t,n){let r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],i=[0,0,0,0],a=n-t>>2;for(let a=t;a<n;a+=4){let t=e[a]*(1/255),n=e[a+1]*(1/255),o=e[a+2]*(1/255),s=e[a+3]*(1/255);i[0]+=t,i[1]+=n,i[2]+=o,i[3]+=s,r[0]+=t*t,r[1]+=t*n,r[2]+=t*o,r[3]+=t*s,r[5]+=n*n,r[6]+=n*o,r[7]+=n*s,r[10]+=o*o,r[11]+=o*s,r[15]+=s*s}return r[4]=r[1],r[8]=r[2],r[9]=r[6],r[12]=r[3],r[13]=r[7],r[14]=r[11],{R:r,m:i,N:a}}function w(e){let{R:t}=e,{m:n}=e,{N:r}=e,i=n[0],a=n[1],o=n[2],s=n[3],c=r==0?0:1/r,l=[t[0]-i*i*c,t[1]-i*a*c,t[2]-i*o*c,t[3]-i*s*c,t[4]-a*i*c,t[5]-a*a*c,t[6]-a*o*c,t[7]-a*s*c,t[8]-o*i*c,t[9]-o*a*c,t[10]-o*o*c,t[11]-o*s*c,t[12]-s*i*c,t[13]-s*a*c,t[14]-s*o*c,t[15]-s*s*c],u=l,d=T,f=[Math.random(),Math.random(),Math.random(),Math.random()],p=0,m=0;if(r!=0)for(let e=0;e<16&&(f=d.multVec(u,f),m=Math.sqrt(d.dot(f,f)),f=d.sml(1/m,f),!(e!=0&&Math.abs(m-p)<1e-9));e++)p=m;let h=[i*c,a*c,o*c,s*c];return{Cov:l,q:h,e:f,L:p,eMq255:d.dot(d.sml(255,h),f),eMq:d.dot(f,h),rgba:(Math.round(255*h[3])<<24|Math.round(255*h[2])<<16|Math.round(255*h[1])<<8|Math.round(255*h[0])<<0)>>>0}}var T={multVec:(e,t)=>[e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3],e[4]*t[0]+e[5]*t[1]+e[6]*t[2]+e[7]*t[3],e[8]*t[0]+e[9]*t[1]+e[10]*t[2]+e[11]*t[3],e[12]*t[0]+e[13]*t[1]+e[14]*t[2]+e[15]*t[3]],dot:(e,t)=>e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3],sml:(e,t)=>[e*t[0],e*t[1],e*t[2],e*t[3]]};a.encode=function(e,t,n,r,i,a,o){r??=0,o??=!1;let s=f(e,t,n,r,[!1,!1,!1,0,o,!1]);return d(s,-1),u(s,t,n,i,a)},a.encodeLL=function(e,t,n,r,i,a,o,s){let c={ctype:0+(r==1?0:2)+(i==0?0:4),depth:a,frames:[]},l=(r+i)*a,f=l*t;for(let r=0;r<e.length;r++)c.frames.push({rect:{x:0,y:0,width:t,height:n},img:new Uint8Array(e[r]),blend:0,dispose:1,bpp:Math.ceil(l/8),bpl:Math.ceil(f/8)});return d(c,0,!0),u(c,t,n,o,s)},a.encode.compress=f,a.encode.dither=l,a.quantize=_,a.quantize.getKDtree=v,a.quantize.getNearest=y})();let o={toArrayBuffer(e,t){let n=e.width,r=e.height,i=n<<2,a=e.getContext(`2d`).getImageData(0,0,n,r),s=new Uint32Array(a.data.buffer),c=(32*n+31)/32<<2,l=c*r,u=122+l,d=new ArrayBuffer(u),f=new DataView(d),p=1<<20,m,h,g,_,v=p,y=0,b=0,x=0;function S(e){f.setUint16(b,e,!0),b+=2}function C(e){f.setUint32(b,e,!0),b+=4}function w(e){b+=e}S(19778),C(u),w(4),C(122),C(108),C(n),C(-r>>>0),S(1),S(32),C(3),C(l),C(2835),C(2835),w(8),C(16711680),C(65280),C(255),C(4278190080),C(1466527264),function e(){for(;y<r&&v>0;){for(_=122+y*c,m=0;m<i;)v--,h=s[x++],g=h>>>24,f.setUint32(_+m,h<<8|g),m+=4;y++}x<s.length?(v=p,setTimeout(e,o._dly)):t(d)}()},toBlob(e,t){this.toArrayBuffer(e,(e=>{t(new Blob([e],{type:`image/bmp`}))}))},_dly:9};var s={CHROME:`CHROME`,FIREFOX:`FIREFOX`,DESKTOP_SAFARI:`DESKTOP_SAFARI`,IE:`IE`,IOS:`IOS`,ETC:`ETC`},c={[s.CHROME]:16384,[s.FIREFOX]:11180,[s.DESKTOP_SAFARI]:16384,[s.IE]:8192,[s.IOS]:4096,[s.ETC]:8192};let l=typeof window<`u`,u=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope,d=l&&window.cordova&&window.cordova.require&&window.cordova.require(`cordova/modulemapper`),f=(l||u)&&(d&&d.getOriginalSymbol(window,`File`)||typeof File<`u`&&File),p=(l||u)&&(d&&d.getOriginalSymbol(window,`FileReader`)||typeof FileReader<`u`&&FileReader);function m(e,t,n=Date.now()){return new Promise((r=>{let i=e.split(`,`),a=i[0].match(/:(.*?);/)[1],o=globalThis.atob(i[1]),s=o.length,c=new Uint8Array(s);for(;s--;)c[s]=o.charCodeAt(s);let l=new Blob([c],{type:a});l.name=t,l.lastModified=n,r(l)}))}function h(e){return new Promise(((t,n)=>{let r=new p;r.onload=()=>t(r.result),r.onerror=e=>n(e),r.readAsDataURL(e)}))}function g(e){return new Promise(((t,n)=>{let r=new Image;r.onload=()=>t(r),r.onerror=e=>n(e),r.src=e}))}function _(){if(_.cachedResult!==void 0)return _.cachedResult;let e=s.ETC,{userAgent:t}=navigator;return/Chrom(e|ium)/i.test(t)?e=s.CHROME:/iP(ad|od|hone)/i.test(t)&&/WebKit/i.test(t)?e=s.IOS:/Safari/i.test(t)?e=s.DESKTOP_SAFARI:/Firefox/i.test(t)?e=s.FIREFOX:(/MSIE/i.test(t)||!!document.documentMode==1)&&(e=s.IE),_.cachedResult=e,_.cachedResult}function v(e,t){let n=c[_()],r=e,i=t,a=r*i,o=r>i?i/r:r/i;for(;a>n*n;){let e=(n+r)/2,t=(n+i)/2;e<t?(i=t,r=t*o):(i=e*o,r=e),a=r*i}return{width:r,height:i}}function y(e,t){let n,r;try{if(n=new OffscreenCanvas(e,t),r=n.getContext(`2d`),r===null)throw Error(`getContext of OffscreenCanvas returns null`)}catch{n=document.createElement(`canvas`),r=n.getContext(`2d`)}return n.width=e,n.height=t,[n,r]}function b(e,t){let{width:n,height:r}=v(e.width,e.height),[i,a]=y(n,r);return t&&/jpe?g/.test(t)&&(a.fillStyle=`white`,a.fillRect(0,0,i.width,i.height)),a.drawImage(e,0,0,i.width,i.height),i}function x(){return x.cachedResult!==void 0||(x.cachedResult=[`iPad Simulator`,`iPhone Simulator`,`iPod Simulator`,`iPad`,`iPhone`,`iPod`].includes(navigator.platform)||navigator.userAgent.includes(`Mac`)&&typeof document<`u`&&`ontouchend`in document),x.cachedResult}function S(e,t={}){return new Promise((function(n,r){let i,a;var o=function(){try{return a=b(i,t.fileType||e.type),n([i,a])}catch(e){return r(e)}},c=function(t){try{var n=function(e){try{throw e}catch(e){return r(e)}};try{let t;return h(e).then((function(e){try{return t=e,g(t).then((function(e){try{return i=e,function(){try{return o()}catch(e){return r(e)}}()}catch(e){return n(e)}}),n)}catch(e){return n(e)}}),n)}catch(e){n(e)}}catch(e){return r(e)}};try{if(x()||[s.DESKTOP_SAFARI,s.MOBILE_SAFARI].includes(_()))throw Error(`Skip createImageBitmap on IOS and Safari`);return createImageBitmap(e).then((function(e){try{return i=e,o()}catch{return c()}}),c)}catch{c()}}))}function C(e,t,n,r,i=1){return new Promise((function(s,c){let l;if(t===`image/png`){let o,s,c;return o=e.getContext(`2d`),{data:s}=o.getImageData(0,0,e.width,e.height),c=a.encode([s.buffer],e.width,e.height,4096*i),l=new Blob([c],{type:t}),l.name=n,l.lastModified=r,u.call(this)}{if(t===`image/bmp`)return new Promise((t=>o.toBlob(e,t))).then(function(e){try{return l=e,l.name=n,l.lastModified=r,a.call(this)}catch(e){return c(e)}}.bind(this),c);{if(typeof OffscreenCanvas==`function`&&e instanceof OffscreenCanvas)return e.convertToBlob({type:t,quality:i}).then(function(e){try{return l=e,l.name=n,l.lastModified=r,o.call(this)}catch(e){return c(e)}}.bind(this),c);{let a;return a=e.toDataURL(t,i),m(a,n,r).then(function(e){try{return l=e,o.call(this)}catch(e){return c(e)}}.bind(this),c)}function o(){return a.call(this)}}function a(){return u.call(this)}}function u(){return s(l)}}))}function w(e){e.width=0,e.height=0}function T(){return new Promise((function(e,t){let n,r,i,a;return T.cachedResult===void 0?m(`data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==`,`test.jpg`,Date.now()).then((function(o){try{return n=o,S(n).then((function(o){try{return r=o[1],C(r,n.type,n.name,n.lastModified).then((function(n){try{return i=n,w(r),S(i).then((function(n){try{return a=n[0],T.cachedResult=a.width===1&&a.height===2,e(T.cachedResult)}catch(e){return t(e)}}),t)}catch(e){return t(e)}}),t)}catch(e){return t(e)}}),t)}catch(e){return t(e)}}),t):e(T.cachedResult)}))}function E(e){return new Promise(((t,n)=>{let r=new p;r.onload=e=>{let n=new DataView(e.target.result);if(n.getUint16(0,!1)!=65496)return t(-2);let r=n.byteLength,i=2;for(;i<r;){if(n.getUint16(i+2,!1)<=8)return t(-1);let e=n.getUint16(i,!1);if(i+=2,e==65505){if(n.getUint32(i+=2,!1)!=1165519206)return t(-1);let e=n.getUint16(i+=6,!1)==18761;i+=n.getUint32(i+4,e);let r=n.getUint16(i,e);i+=2;for(let a=0;a<r;a++)if(n.getUint16(i+12*a,e)==274)return t(n.getUint16(i+12*a+8,e))}else{if((65280&e)!=65280)break;i+=n.getUint16(i,!1)}}return t(-1)},r.onerror=e=>n(e),r.readAsArrayBuffer(e)}))}function D(e,t){let{width:n}=e,{height:r}=e,{maxWidthOrHeight:i}=t,a,o=e;return isFinite(i)&&(n>i||r>i)&&([o,a]=y(n,r),n>r?(o.width=i,o.height=r/n*i):(o.width=n/r*i,o.height=i),a.drawImage(e,0,0,o.width,o.height),w(e)),o}function O(e,t){let{width:n}=e,{height:r}=e,[i,a]=y(n,r);switch(t>4&&t<9?(i.width=r,i.height=n):(i.width=n,i.height=r),t){case 2:a.transform(-1,0,0,1,n,0);break;case 3:a.transform(-1,0,0,-1,n,r);break;case 4:a.transform(1,0,0,-1,0,r);break;case 5:a.transform(0,1,1,0,0,0);break;case 6:a.transform(0,1,-1,0,r,0);break;case 7:a.transform(0,-1,-1,0,r,n);break;case 8:a.transform(0,-1,1,0,0,n)}return a.drawImage(e,0,0,n,r),w(e),i}function k(e,t,n=0){return new Promise((function(r,i){let a,o,s,c,l,u,d,f,p,m,h,g,_,v,b,x,k,A,j,M;function N(e=5){if(t.signal&&t.signal.aborted)throw t.signal.reason;a+=e,t.onProgress(Math.min(a,100))}function P(e){if(t.signal&&t.signal.aborted)throw t.signal.reason;a=Math.min(Math.max(e,a),100),t.onProgress(a)}return a=n,o=t.maxIteration||10,s=1024*t.maxSizeMB*1024,N(),S(e,t).then(function(n){try{return[,c]=n,N(),l=D(c,t),N(),new Promise((function(n,r){var i;if(!(i=t.exifOrientation))return E(e).then(function(e){try{return i=e,a.call(this)}catch(e){return r(e)}}.bind(this),r);function a(){return n(i)}return a.call(this)})).then(function(n){try{return u=n,N(),T().then(function(n){try{return d=n?l:O(l,u),N(),f=t.initialQuality||1,p=t.fileType||e.type,C(d,p,e.name,e.lastModified,f).then(function(n){try{{if(m=n,N(),h=m.size>s,g=m.size>e.size,!h&&!g)return P(100),r(m);var a;function u(){if(o--&&(b>s||b>_)){let t,n;return t=M?.95*j.width:j.width,n=M?.95*j.height:j.height,[k,A]=y(t,n),A.drawImage(j,0,0,t,n),f*=p===`image/png`?.85:.95,C(k,p,e.name,e.lastModified,f).then((function(e){try{return x=e,w(j),j=k,b=x.size,P(Math.min(99,Math.floor((v-b)/(v-s)*100))),u}catch(e){return i(e)}}),i)}return[1]}return _=e.size,v=m.size,b=v,j=d,M=!t.alwaysKeepResolution&&h,(a=function(e){for(;e;){if(e.then)return void e.then(a,i);try{if(e.pop){if(e.length)return e.pop()?S.call(this):e;e=u}else e=e.call(this)}catch(e){return i(e)}}}.bind(this))(u);function S(){return w(j),w(k),w(l),w(d),w(c),P(100),r(x)}}}catch(e){return i(e)}}.bind(this),i)}catch(e){return i(e)}}.bind(this),i)}catch(e){return i(e)}}.bind(this),i)}catch(e){return i(e)}}.bind(this),i)}))}let A;function j(e,t){return new Promise(((n,r)=>{A||=function(e){let t=[];return typeof e==`function`?t.push(`(${e})()`):t.push(e),URL.createObjectURL(new Blob(t))}(`
2
+ let scriptImported = false
3
+ self.addEventListener('message', async (e) => {
4
+ const { file, id, imageCompressionLibUrl, options } = e.data
5
+ options.onProgress = (progress) => self.postMessage({ progress, id })
6
+ try {
7
+ if (!scriptImported) {
8
+ // console.log('[worker] importScripts', imageCompressionLibUrl)
9
+ self.importScripts(imageCompressionLibUrl)
10
+ scriptImported = true
11
+ }
12
+ // console.log('[worker] self', self)
13
+ const compressedFile = await imageCompression(file, options)
14
+ self.postMessage({ file: compressedFile, id })
15
+ } catch (e) {
16
+ // console.error('[worker] error', e)
17
+ self.postMessage({ error: e.message + '\\n' + e.stack, id })
18
+ }
19
+ })
20
+ `);let i=new Worker(A);i.addEventListener(`message`,(function(e){if(t.signal&&t.signal.aborted)i.terminate();else if(e.data.progress===void 0){if(e.data.error)return r(Error(e.data.error)),void i.terminate();n(e.data.file),i.terminate()}else t.onProgress(e.data.progress)})),i.addEventListener(`error`,r),t.signal&&t.signal.addEventListener(`abort`,(()=>{r(t.signal.reason),i.terminate()})),i.postMessage({file:e,imageCompressionLibUrl:t.libURL,options:{...t,onProgress:void 0,signal:void 0}})}))}function M(e,n){return new Promise((function(r,i){let a,o,s,c,l,u;if(a={...n},s=0,{onProgress:c}=a,a.maxSizeMB=a.maxSizeMB||1/0,l=typeof a.useWebWorker!=`boolean`||a.useWebWorker,delete a.useWebWorker,a.onProgress=e=>{s=e,typeof c==`function`&&c(s)},!(e instanceof Blob||e instanceof f))return i(Error(`The file given is not an instance of Blob or File`));if(!/^image/.test(e.type))return i(Error(`The file given is not an image`));if(u=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope,!l||typeof Worker!=`function`||u)return k(e,a).then(function(e){try{return o=e,m.call(this)}catch(e){return i(e)}}.bind(this),i);var d=function(){try{return m.call(this)}catch(e){return i(e)}}.bind(this),p=function(t){try{return k(e,a).then((function(e){try{return o=e,d()}catch(e){return i(e)}}),i)}catch(e){return i(e)}};try{return a.libURL=a.libURL||`https://cdn.jsdelivr.net/npm/browser-image-compression@2.0.2/dist/browser-image-compression.js`,j(e,a).then((function(e){try{return o=e,d()}catch{return p()}}),p)}catch{p()}function m(){try{o.name=e.name,o.lastModified=e.lastModified}catch{}try{a.preserveExif&&e.type===`image/jpeg`&&(!a.fileType||a.fileType&&a.fileType===e.type)&&(o=t(e,o))}catch{}return r(o)}}))}return M.getDataUrlFromFile=h,M.getFilefromDataUrl=m,M.loadImage=g,M.drawImageInCanvas=b,M.drawFileInCanvas=S,M.canvasToFile=C,M.getExifOrientation=E,M.handleMaxWidthOrHeight=D,M.followExifOrientation=O,M.cleanupCanvasMemory=w,M.isAutoOrientationInBrowser=T,M.approximateBelowMaximumCanvasSizeOfBrowser=v,M.copyExifWithoutOrientation=t,M.getBrowserName=_,M.version=`2.0.2`,M}))})),A=r.l(k()),j=e=>{if(!e)return`image/png`;let t=e.toLowerCase();return t.includes(`jpeg`)||t.includes(`jpg`)||t.includes(`pjpeg`)?`image/jpeg`:t.includes(`png`)?`image/png`:t.includes(`gif`)?`image/gif`:t.includes(`webp`)?`image/webp`:t.includes(`svg`)?`image/svg+xml`:`image/png`},M=e=>{let t=j(e).split(`/`)[1];return t===`svg+xml`?`svg`:t||`png`};function N(e){switch(e.trim().split(`.`).pop()?.toLowerCase()){case`svg`:return`image/svg+xml`;case`png`:return`image/png`;case`jpg`:case`jpeg`:return`image/jpeg`;case`gif`:return`image/gif`;case`webp`:return`image/webp`;default:return}}function P(e){if(e.type?.startsWith?.(`image/`))return!0;let t=(e.name??``).trim();if(N(t))return!0;let n=(e.type??``).toLowerCase();return n.includes(`svg`)?!0:n===`text/xml`||n===`application/xml`||n===`text/plain`?t.toLowerCase().endsWith(`.svg`):!1}var F={MAX_SIZE_MB:.48,MAX_WIDTH_OR_HEIGHT:2e3,QUALITY:.8},I=[`gif`,`svg`];function L(e){return!I.includes(e)}function R(e){return{maxSizeMB:e?.compressMaxSize??F.MAX_SIZE_MB,maxWidthOrHeight:e?.compressMaxWidthOrHeight??F.MAX_WIDTH_OR_HEIGHT}}function z(e){if(!e)return null;let t=e.trim();if(t.endsWith(`%`))return null;let n=parseFloat(t.replace(/px$/i,``));return Number.isFinite(n)&&n>0?n:null}function B(e){let t=e.match(/<\s*svg\b[\s\S]*?>/i)?.[0]??``,n=t.match(/\bwidth\s*=\s*["']([^"']*)["']/i)?.[1],r=t.match(/\bheight\s*=\s*["']([^"']*)["']/i)?.[1],i=z(n),a=z(r);if(i!=null&&a!=null)return{width:i,height:a};let o=e.match(/viewBox\s*=\s*["']([^"']+)["']/i)?.[1];if(o){let e=o.trim().split(/[\s,]+/);if(e.length===4){let t=parseFloat(e[2]),n=parseFloat(e[3]);if(Number.isFinite(t)&&Number.isFinite(n)&&t>0&&n>0)return{width:t,height:n}}}return i==null?a==null?{width:300,height:300}:{width:a,height:a}:{width:i,height:i}}function V(e,t=2,n=4096){let{width:r,height:i}=B(e),a=Math.max(1,Math.round(r*t)),o=Math.max(1,Math.round(i*t)),s=Math.max(64,n),c=Math.max(a,o);if(c>s){let e=s/c;a=Math.max(1,Math.round(a*e)),o=Math.max(1,Math.round(o*e))}return{width:a,height:o}}function H(e){return new Promise((t,n)=>{e.toBlob(e=>{e?t(e):n(Error(`canvas.toBlob returned null`))},`image/png`)})}async function U(e,t,n){let r=new Blob([e],{type:`image/svg+xml;charset=utf-8`}),i=URL.createObjectURL(r);try{let e=new Image;await new Promise((t,n)=>{e.onload=()=>t(),e.onerror=()=>n(Error(`Failed to load SVG image`)),e.src=i});let r=document.createElement(`canvas`),a=Math.max(1,Math.round(t)),o=Math.max(1,Math.round(n));r.width=a,r.height=o;let s=r.getContext(`2d`);if(!s)throw Error(`Canvas 2D context is not available`);return s.clearRect(0,0,a,o),s.drawImage(e,0,0,a,o),H(r)}finally{URL.revokeObjectURL(i)}}var W=24e3;async function G(e,t=W){let n=Math.min(t,Math.max(0,e.size));return e.slice(0,n).text()}function K(e){let t=e.trimStart().replace(/^\uFEFF/,``);return t.startsWith(`<`)?/<\s*svg[\s>/]/i.test(t):!1}async function q(e,t={}){let n=t.pixelScale??2,r=t.maxLongEdge??4096,i=await e.text(),{width:a,height:o}=V(i,n,r),s=await U(i,a,o),c=t.outputFileName??e.name,l=/\.svg$/i.test(c)?c.replace(/\.svg$/i,`.png`):`${c}.png`;return new File([s],l,{type:`image/png`,lastModified:e.lastModified})}function J(e,t,n,r){return new File([e],t,{type:n,lastModified:r})}function Y(e,t){return!t||t===e.name?e:J(e,t,e.type,e.lastModified)}function X(e,t,n,r){let i=r??t.name;return e instanceof File?e.type!==n||e.lastModified!==t.lastModified||e.name!==i?J(e,i,n,t.lastModified):e:J(e,i,n,t.lastModified)}function Z(e,t){let n=t.startsWith(`.`)?t.slice(1):t,r=e.lastIndexOf(`.`);return r>0?`${e.substring(0,r)}.${n}`:`${e}.${n}`}function ee(e){return e===`image/webp`?`image/jpeg`:e}async function Q(e,t={}){let{maxSizeMB:n=F.MAX_SIZE_MB,maxWidthOrHeight:r=F.MAX_WIDTH_OR_HEIGHT,mimeType:i,fileName:a,libURL:o,enableCompression:s=!0,convertSvgToPng:c=!1}=t;if(!e||!(e instanceof File))return e;let l=e,u=!1;if(c){let t=(l.type||``).toLowerCase(),n=/\.svg$/i.test(l.name.trim()),i=t.includes(`svg`),o=!1;if(!i&&!n)try{o=K(await G(l))}catch{o=!1}if(i||n||o)try{l=await q(l,{maxLongEdge:r,outputFileName:a??l.name}),u=!0}catch{l=e}}let d=j((l.type&&l.type.trim()!==``?l.type:N(l.name))||(u?`image/png`:i)||`image/jpeg`),f=u?l.name:a??l.name;if(!d.startsWith(`image/`))return Y(l,f);let p=ee(d),m=M(d),h=M(p),g=p===d?f:Z(f,h),_=s&&L(m);if(!_&&p===d)return Y(l,g);let v=l.type===d?l:J(l,l.name,d,l.lastModified);try{let e={libURL:o,useWebWorker:!0,fileType:p};_?(e.maxSizeMB=n,e.maxWidthOrHeight=r):(e.maxSizeMB=Math.max(v.size/(1024*1024)+1,1),e.initialQuality=1,e.alwaysKeepResolution=!0);let t=await(0,A.default)(v,e);return X(t,v,j(t.type||p),g)}catch{try{return Y(l,g)}catch{return l}}}var te=`js/browser-image-compression.js`;function $(){return a.n(te)}async function ne(e,t,n=$()){if(!P(e))return e;let{maxSizeMB:r,maxWidthOrHeight:i}=R(t),a=e.type?.trim()||N(e.name)||e.type||``;return Q(e,{maxSizeMB:r,maxWidthOrHeight:i,mimeType:a||void 0,fileName:e.name,libURL:n,enableCompression:a.startsWith(`image/`)&&a!==`image/gif`,convertSvgToPng:!0})}async function re(e,t){if(!e||typeof e.findFileByUrl!=`function`)return null;let n=await e.findFileByUrl(t);if(!n)return null;let r=typeof e.getFileById==`function`&&n.id&&await e.getFileById(n.id)||n,i=r.url||t,a=r.thumbnailUrl||r.thumbnail||i||(typeof e.getThumbnailUrl==`function`?await e.getThumbnailUrl(r):``)||``;return a?{file:r,previewUrl:a}:null}function ie(e){if(!(e instanceof Blob)||e.size===0)throw new o.a(`Failed to download file from the URL.`,`UploadUrlDownloadFailed`);let t=e.type?.split(`;`)[0]?.trim()||`image/png`;if(!t.startsWith(`image/`))throw new o.a(`Content type at the URL is not allowed.`,`UploadUrlContentTypeNotAllowed`);return{blob:e,mimeType:t}}async function ae(e,t){let n=await fetch(e,t);if(!n.ok)throw Error(`Server returned ${n.status}`);return n.blob()}async function oe(e,t,n){let r=n?{signal:n}:void 0,{blob:a}=await o.b(e,{handleFileProxy:async e=>s.i(await t.fireFileProxy(e))??null,handleProxyUrl:async e=>s.a(await t.fireProxyUrl(e),e),fetchWithProxy:(e,n,r)=>i.Ya(e,{config:t.appConfig,standalone:t.isStandalone,intent:r?.intent||`downloadBlob`,validateBlob:async e=>!e.type||e.type.startsWith(`image/`),init:n})},e=>ae(e,r),ie,{fetchInit:r});return a}function se(){let e=i.on(),t=s.t(),n=i.Ci(i.ct),{projectId:r}=(0,l.useParams)(),a=n?.id===void 0?r||``:String(n.id),o=i.q(i._o.FILE_PROXY_EVENT_ID),u=i.q(i._o.PROXY_URL_EVENT_ID);return(0,c.useCallback)(async(n,r)=>oe(n,{appConfig:e,isStandalone:t,fireFileProxy:e=>o.fire({url:e,project:a}),fireProxyUrl:e=>u.fire({url:e,project:a})},r),[e,a,t,o,u])}Object.defineProperty(t,"a",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(t,"c",{enumerable:!0,get:function(){return P}}),Object.defineProperty(t,"d",{enumerable:!0,get:function(){return E}}),Object.defineProperty(t,"f",{enumerable:!0,get:function(){return T}}),Object.defineProperty(t,"h",{enumerable:!0,get:function(){return u}}),Object.defineProperty(t,"i",{enumerable:!0,get:function(){return ne}}),Object.defineProperty(t,"l",{enumerable:!0,get:function(){return D}}),Object.defineProperty(t,"m",{enumerable:!0,get:function(){return C}}),Object.defineProperty(t,"n",{enumerable:!0,get:function(){return re}}),Object.defineProperty(t,"o",{enumerable:!0,get:function(){return R}}),Object.defineProperty(t,"p",{enumerable:!0,get:function(){return w}}),Object.defineProperty(t,"r",{enumerable:!0,get:function(){return $}}),Object.defineProperty(t,"s",{enumerable:!0,get:function(){return N}}),Object.defineProperty(t,"t",{enumerable:!0,get:function(){return se}}),Object.defineProperty(t,"u",{enumerable:!0,get:function(){return O}})});
@@ -0,0 +1 @@
1
+ __useblocks__.define(`static/core/a906a1a3.js`,[`require`,`exports`,`module`,`static/core/4dc58c63.js`,`static/core/a5652804.js`],function(e,t,n){e("./4dc58c63.js");let r=e("./a5652804.js");var i={items_per_page:`件 / ページ`,jump_to:`移動`,jump_to_confirm:`確認する`,page:`ページ`,prev_page:`前のページ`,next_page:`次のページ`,prev_5:`前 5ページ`,next_5:`次 5ページ`,prev_3:`前 3ページ`,next_3:`次 3ページ`,page_size:`ページサイズ`};function a(e){"@babel/helpers - typeof";return a=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},a(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?o(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t,n){return t=l(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){var t=u(e,`string`);return a(t)==`symbol`?t:String(t)}function u(e,t){if(a(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(a(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var d=s(s({},r.t),{},{locale:`ja_JP`,today:`今日`,now:`現在時刻`,backToToday:`今日に戻る`,ok:`確定`,timeSelect:`時間を選択`,dateSelect:`日時を選択`,weekSelect:`週を選択`,clear:`クリア`,week:`週`,month:`月`,year:`年`,previousMonth:`前月 (ページアップキー)`,nextMonth:`翌月 (ページダウンキー)`,monthSelect:`月を選択`,yearSelect:`年を選択`,decadeSelect:`年代を選択`,yearFormat:`YYYY年`,previousYear:`前年 (Controlを押しながら左キー)`,nextYear:`翌年 (Controlを押しながら右キー)`,previousDecade:`前の年代`,nextDecade:`次の年代`,previousCentury:`前の世紀`,nextCentury:`次の世紀`,monthBeforeYear:!1}),f={placeholder:`時間を選択`,rangePlaceholder:[`開始時間`,`終了時間`]},p={lang:{placeholder:`日付を選択`,yearPlaceholder:`年を選択`,quarterPlaceholder:`四半期を選択`,monthPlaceholder:`月を選択`,weekPlaceholder:`週を選択`,rangePlaceholder:[`開始日付`,`終了日付`],rangeYearPlaceholder:[`開始年`,`終了年`],rangeMonthPlaceholder:[`開始月`,`終了月`],rangeQuarterPlaceholder:[`開始四半期`,`終了四半期`],rangeWeekPlaceholder:[`開始週`,`終了週`],shortWeekDays:[`日`,`月`,`火`,`水`,`木`,`金`,`土`],shortMonths:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],...d},timePickerLocale:{...f}},m=p,h="${label}は有効な${type}ではありません";t.default={locale:`ja`,Pagination:i,DatePicker:p,TimePicker:f,Calendar:m,global:{placeholder:`選んでください`,close:`閉じる`,show:`表示`,hide:`非表示`},Table:{filterTitle:`フィルター`,filterConfirm:`OK`,filterReset:`リセット`,filterEmptyText:`フィルターなし`,filterCheckAll:`すべてを選択`,filterSearchPlaceholder:`フィルターで検索`,emptyText:`データなし`,selectAll:`ページ単位で選択`,selectInvert:`ページ単位で反転`,selectNone:`クリア`,selectionAll:`すべてを選択`,sortTitle:`ソート`,expand:`展開する`,collapse:`折り畳む`,triggerDesc:`クリックで降順にソート`,triggerAsc:`クリックで昇順にソート`,cancelSort:`ソートをキャンセル`},Tour:{Next:`次`,Previous:`前の`,Finish:`仕上げる`},Modal:{okText:`OK`,cancelText:`キャンセル`,justOkText:`OK`},Popconfirm:{okText:`OK`,cancelText:`キャンセル`},Transfer:{titles:[``,``],searchPlaceholder:`ここを検索`,itemUnit:`アイテム`,itemsUnit:`アイテム`,remove:`削除`,selectCurrent:`現在のページを選択`,removeCurrent:`現在のページを削除`,selectAll:`ページ単位で選択`,deselectAll:`すべてのデータの選択を解除する`,removeAll:`ページ単位で削除`,selectInvert:`ページ単位で反転`},Upload:{uploading:`アップロード中...`,removeFile:`ファイルを削除`,uploadError:`アップロードエラー`,previewFile:`ファイルをプレビュー`,downloadFile:`ダウンロードファイル`},Empty:{description:`データがありません`},Icon:{icon:`アイコン`},Text:{edit:`編集`,copy:`コピー`,copied:`コピーされました`,expand:`拡大する`,collapse:`崩壊`},Form:{optional:`(オプション)`,defaultValidateMessages:{default:"${label}のフィールド検証エラー",required:"${label}を入力してください",enum:"${label}は[${enum}]のいずれかである必要があります",whitespace:"${label}は空白文字にすることはできません",date:{format:"${label}の日付形式は不正です",parse:"${label}は日付に変換できません",invalid:"${label}は不正な日付です"},types:{string:h,method:h,array:h,object:h,number:h,date:h,boolean:h,integer:h,float:h,regexp:h,email:h,url:h,hex:h},string:{len:"${label}は${len}文字である必要があります",min:"${label}は${min}文字以上である必要があります",max:"${label}は${max}文字以下である必要があります",range:"${label}は${min}-${max}文字の範囲である必要があります"},number:{len:"${label}は${len}と等しい必要があります",min:"${label}の最小値は${min}です",max:"${label}の最大値は${max}です",range:"${label}は${min}-${max}の範囲である必要があります"},array:{len:"${label}は${len}である必要があります",min:"${label}の最小は${min}です",max:"${label}の最大は${max}です",range:"${label}の合計は${min}-${max}の範囲である必要があります"},pattern:{mismatch:"${label}はパターン${pattern}と一致しません"}}},QRCode:{expired:`QRコードの有効期限が切れました`,refresh:`リフレッシュ`,scanned:`スキャン済み`},ColorPicker:{presetEmpty:`空の`,transparent:`透明`,singleColor:`単色`,gradientColor:`グラデーション`}}});
@@ -0,0 +1 @@
1
+ __useblocks__.define(`static/core/ac168281.js`,[`require`,`exports`,`module`,`static/core/4dc58c63.js`,`static/core/a5652804.js`],function(e,t,n){e("./4dc58c63.js");let r=e("./a5652804.js");var i={items_per_page:`na stronę`,jump_to:`Idź do`,jump_to_confirm:`potwierdź`,page:``,prev_page:`Poprzednia strona`,next_page:`Następna strona`,prev_5:`Poprzednie 5 stron`,next_5:`Następne 5 stron`,prev_3:`Poprzednie 3 strony`,next_3:`Następne 3 strony`,page_size:`rozmiar strony`};function a(e){"@babel/helpers - typeof";return a=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},a(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?o(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t,n){return t=l(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){var t=u(e,`string`);return a(t)==`symbol`?t:String(t)}function u(e,t){if(a(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(a(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var d=s(s({},r.t),{},{locale:`pl_PL`,today:`Dzisiaj`,now:`Teraz`,backToToday:`Ustaw dzisiaj`,ok:`OK`,clear:`Wyczyść`,week:`Tydzień`,month:`Miesiąc`,year:`Rok`,timeSelect:`Ustaw czas`,dateSelect:`Ustaw datę`,monthSelect:`Wybierz miesiąc`,yearSelect:`Wybierz rok`,decadeSelect:`Wybierz dekadę`,previousMonth:`Poprzedni miesiąc (PageUp)`,nextMonth:`Następny miesiąc (PageDown)`,previousYear:`Ostatni rok (Ctrl + left)`,nextYear:`Następny rok (Ctrl + right)`,previousDecade:`Ostatnia dekada`,nextDecade:`Następna dekada`,previousCentury:`Ostatni wiek`,nextCentury:`Następny wiek`}),f={placeholder:`Wybierz godzinę`,rangePlaceholder:[`Czas rozpoczęcia`,`Czas zakończenia`]},p={lang:{placeholder:`Wybierz datę`,rangePlaceholder:[`Data początkowa`,`Data końcowa`],yearFormat:`YYYY`,monthFormat:`MMMM`,monthBeforeYear:!0,shortWeekDays:[`Niedz`,`Pon`,`Wt`,`Śr`,`Czw`,`Pt`,`Sob`],shortMonths:[`Sty`,`Lut`,`Mar`,`Kwi`,`Maj`,`Cze`,`Lip`,`Sie`,`Wrz`,`Paź`,`Lis`,`Gru`],...d},timePickerLocale:{...f}},m=p,h="${label} nie posiada poprawnej wartości dla typu ${type}";t.default={locale:`pl`,Pagination:i,DatePicker:p,TimePicker:f,Calendar:m,global:{placeholder:`Wybierz`,close:`Zamknij`,show:`Pokaż`,hide:`Ukryj`},Table:{filterTitle:`Menu filtra`,filterConfirm:`OK`,filterReset:`Usuń filtry`,filterEmptyText:`Brak filtrów`,filterCheckAll:`Wybierz wszystkie elementy`,filterSearchPlaceholder:`Szukaj w filtrach`,emptyText:`Brak danych`,selectAll:`Zaznacz bieżącą stronę`,selectInvert:`Odwróć zaznaczenie`,selectNone:`Wyczyść`,selectionAll:`Wybierz wszystkie`,sortTitle:`Sortowanie`,expand:`Rozwiń wiersz`,collapse:`Zwiń wiersz`,triggerDesc:`Sortuj malejąco`,triggerAsc:`Sortuj rosnąco`,cancelSort:`Usuń sortowanie`},Tour:{Next:`Dalej`,Previous:`Wróć`,Finish:`Zakończ`},Modal:{okText:`OK`,cancelText:`Anuluj`,justOkText:`OK`},Popconfirm:{okText:`OK`,cancelText:`Anuluj`},Transfer:{titles:[``,``],searchPlaceholder:`Szukaj`,itemUnit:`obiekt`,itemsUnit:`obiekty`,remove:`Usuń`,selectCurrent:`Wybierz aktualną stronę`,removeCurrent:`Usuń aktualną stronę`,selectAll:`Wybierz wszystkie`,removeAll:`Usuń wszystkie`,selectInvert:`Odwróć wybór`},Upload:{uploading:`Wysyłanie...`,removeFile:`Usuń plik`,uploadError:`Błąd wysyłania`,previewFile:`Podejrzyj plik`,downloadFile:`Pobieranie pliku`},Empty:{description:`Brak danych`},Icon:{icon:`Ikona`},Text:{edit:`Edytuj`,copy:`Kopiuj`,copied:`Skopiowany`,expand:`Rozwiń`},Form:{optional:`(opcjonalne)`,defaultValidateMessages:{default:"Błąd walidacji dla pola ${label}",required:"Pole ${label} jest wymagane",enum:"Pole ${label} musi posiadać wartość z listy: [${enum}]",whitespace:"Pole ${label} nie może być puste",date:{format:"${label} posiada zły format daty",parse:"${label} nie może zostać zinterpretowane jako data",invalid:"${label} jest niepoprawną datą"},types:{string:h,method:h,array:h,object:h,number:h,date:h,boolean:h,integer:h,float:h,regexp:h,email:h,url:h,hex:h},string:{len:"${label} musi posiadać ${len} znaków",min:"${label} musi posiadać co namniej ${min} znaków",max:"${label} musi posiadać maksymalnie ${max} znaków",range:"${label} musi posiadać między ${min} a ${max} znaków"},number:{len:"${label} musi mieć wartość o długości ${len}",min:"${label} musi mieć wartość większą lub równą ${min}",max:"${label} musi mieć wartość mniejszą lub równą ${max}",range:"${label} musi mieć wartość pomiędzy ${min} a ${max}"},array:{len:"${label} musi posiadać ${len} elementów",min:"${label} musi posiadać co najmniej ${min} elementów",max:"${label} musi posiadać maksymalnie ${max} elementów",range:"${label} musi posiadać między ${min} a ${max} elementów"},pattern:{mismatch:"${label} nie posiada wartości zgodnej ze wzorem ${pattern}"}}}}});
@@ -1 +1 @@
1
- __useblocks__.define(`static/core/902b3490.js`,[`require`,`exports`,`module`,`static/core/4dc58c63.js`,`static/core/395cdb1b.js`],function(e,t,n){e("./4dc58c63.js");let r=e("./395cdb1b.js");var i,a,o={},s={},c={};function l(){return i?c:(i=1,Object.defineProperty(c,"__esModule",{value:!0}),c.default=function e(t,n){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,e),this.data=t,this.text=n.text||t,this.options=n},c)}function u(){if(a)return s;a=1,Object.defineProperty(s,"__esModule",{value:!0}),s.CODE39=void 0;var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=function(e){function n(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,n),e=e.toUpperCase(),t.mod43&&(e+=function(e){return r[e]}(function(e){for(var t=0,n=0;n<e.length;n++)t+=c(e[n]);return t%=43}(e))),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`encode`,value:function(){for(var e=o(`*`),t=0;t<this.data.length;t++)e+=o(this.data[t])+`0`;return{data:e+=o(`*`),text:this.text}}},{key:`valid`,value:function(){return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)!==-1}}]),n}(((e=l())&&e.__esModule?e:{default:e}).default),r=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%*`.split(``),i=[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 o(e){return function(e){return i[e].toString(2)}(c(e))}function c(e){return r.indexOf(e)}return s.CODE39=n,s}var d,ee,f={},p={},m={},h={};function g(){if(d)return h;var e;function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}d=1,Object.defineProperty(h,"__esModule",{value:!0});var n=h.SET_A=0,r=h.SET_B=1,i=h.SET_C=2;h.SHIFT=98;var a=h.START_A=103,o=h.START_B=104,s=h.START_C=105;return h.MODULO=103,h.STOP=106,h.FNC1=207,h.SET_BY_CODE=(t(e={},a,n),t(e,o,r),t(e,s,i),e),h.SWAP={101:n,100:r,99:i},h.A_START_CHAR=`Ð`,h.B_START_CHAR=`Ñ`,h.C_START_CHAR=`Ò`,h.A_CHARS=`[\0-_È-Ï]`,h.B_CHARS=`[ -È-Ï]`,h.C_CHARS=`(Ï*[0-9]{2}Ï*)`,h.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],h}function _(){if(ee)return m;ee=1,Object.defineProperty(m,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=(e=l())&&e.__esModule?e:{default:e},r=g();return m.default=function(e){function n(e,t){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,n);var r=function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e.substring(1),t));return r.bytes=e.split(``).map(function(e){return e.charCodeAt(0)}),r}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`valid`,value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:`encode`,value:function(){var e=this.bytes,t=e.shift()-105,i=r.SET_BY_CODE[t];if(i===void 0)throw RangeError(`The encoding does not start with a start character.`);!0===this.shouldEncodeAsEan128()&&e.unshift(r.FNC1);var a=n.next(e,1,i);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,``):this.text,data:n.getBar(t)+a.result+n.getBar((a.checksum+t)%r.MODULO)+n.getBar(r.STOP)}}},{key:`shouldEncodeAsEan128`,value:function(){var e=this.options.ean128||!1;return typeof e==`string`&&(e=e.toLowerCase()===`true`),e}}],[{key:`getBar`,value:function(e){return r.BARS[e]?r.BARS[e].toString():``}},{key:`correctIndex`,value:function(e,t){if(t===r.SET_A){var n=e.shift();return n<32?n+64:n-32}return t===r.SET_B?e.shift()-32:10*(e.shift()-48)+e.shift()-48}},{key:`next`,value:function(e,t,i){if(!e.length)return{result:``,checksum:0};var a=void 0,o=void 0;if(e[0]>=200){o=e.shift()-105;var s=r.SWAP[o];s===void 0?(i!==r.SET_A&&i!==r.SET_B||o!==r.SHIFT||(e[0]=i===r.SET_A?e[0]>95?e[0]-96:e[0]:e[0]<32?e[0]+96:e[0]),a=n.next(e,t+1,i)):a=n.next(e,t+1,s)}else o=n.correctIndex(e,i),a=n.next(e,t+1,i);var c=o*t;return{result:n.getBar(o)+a.result,checksum:c+a.checksum}}}]),n}(n.default),m}var te,ne,v={};function re(){if(ne)return p;ne=1,Object.defineProperty(p,"__esModule",{value:!0});var e=n(_()),t=n(function(){if(te)return v;te=1,Object.defineProperty(v,"__esModule",{value:!0});var e=g(),t=function(t){return t.match(RegExp(`^`+e.A_CHARS+`*`))[0].length},n=function(t){return t.match(RegExp(`^`+e.B_CHARS+`*`))[0].length},r=function(t){return t.match(RegExp(`^`+e.C_CHARS+`*`))[0]};function i(t,n){var r=n?e.A_CHARS:e.B_CHARS,o=t.match(RegExp(`^(`+r+`+?)(([0-9]{2}){2,})([^0-9]|$)`));if(o)return o[1]+`Ì`+a(t.substring(o[1].length));var s=t.match(RegExp(`^`+r+`+`))[0];return s.length===t.length?t:s+String.fromCharCode(n?205:206)+i(t.substring(s.length),!n)}function a(e){var a=r(e),o=a.length;if(o===e.length)return e;e=e.substring(o);var s=t(e)>=n(e);return a+String.fromCharCode(s?206:205)+i(e,s)}return v.default=function(o){var s=void 0;if(r(o).length>=2)s=e.C_START_CHAR+a(o);else{var c=t(o)>n(o);s=(c?e.A_START_CHAR:e.B_START_CHAR)+i(o,c)}return s.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(e,t){return`Ë`+t})},v}());function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}return p.default=function(e){function n(e,i){if(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,n),/^[\x00-\x7F\xC8-\xD3]+$/.test(e))var a=r(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,(0,t.default)(e),i));else a=r(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,i));return r(a)}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),n}(e.default),p}var ie,y={};function ae(){if(ie)return y;ie=1,Object.defineProperty(y,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=(e=_())&&e.__esModule?e:{default:e},r=g();return y.default=function(e){function n(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,n),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,r.A_START_CHAR+e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`valid`,value:function(){return RegExp(`^`+r.A_CHARS+`+$`).test(this.data)}}]),n}(n.default),y}var oe,b={};function se(){if(oe)return b;oe=1,Object.defineProperty(b,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=(e=_())&&e.__esModule?e:{default:e},r=g();return b.default=function(e){function n(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,n),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,r.B_START_CHAR+e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`valid`,value:function(){return RegExp(`^`+r.B_CHARS+`+$`).test(this.data)}}]),n}(n.default),b}var ce,le,ue={};function de(){if(ce)return ue;ce=1,Object.defineProperty(ue,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=(e=_())&&e.__esModule?e:{default:e},r=g();return ue.default=function(e){function n(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,n),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,r.C_START_CHAR+e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`valid`,value:function(){return RegExp(`^`+r.C_CHARS+`+$`).test(this.data)}}]),n}(n.default),ue}var fe,x={},pe={},S={};function C(){return fe||(fe=1,Object.defineProperty(S,"__esModule",{value:!0}),S.SIDE_BIN=`101`,S.MIDDLE_BIN=`01010`,S.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`]},S.EAN2_STRUCTURE=[`LL`,`LG`,`GL`,`GG`],S.EAN5_STRUCTURE=[`GGLLL`,`GLGLL`,`GLLGL`,`GLLLG`,`LGGLL`,`LLGGL`,`LLLGG`,`LGLGL`,`LGLLG`,`LLGLG`],S.EAN13_STRUCTURE=[`LLLLLL`,`LLGLGG`,`LLGGLG`,`LLGGGL`,`LGLLGG`,`LGGLLG`,`LGGGLL`,`LGLGLG`,`LGLGGL`,`LGGLGL`]),S}var me,he,ge,w={},T={};function E(){if(me)return T;me=1,Object.defineProperty(T,"__esModule",{value:!0});var e=C();return T.default=function(t,n,r){var i=t.split(``).map(function(t,r){return e.BINARIES[n[r]]}).map(function(e,n){return e?e[t[n]]:``});if(r){var a=t.length-1;i=i.map(function(e,t){return t<a?e+r:e})}return i.join(``)},T}function _e(){if(he)return w;he=1,Object.defineProperty(w,"__esModule",{value:!0});var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),t=C(),n=r(E());function r(e){return e&&e.__esModule?e:{default:e}}return w.default=function(r){function i(e,t){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,i);var n=function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e,t));return n.fontSize=!t.flat&&t.fontSize>10*t.width?10*t.width:t.fontSize,n.guardHeight=t.height+n.fontSize/2+t.textMargin,n}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,r),e(i,[{key:`encode`,value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:`leftText`,value:function(e,t){return this.text.substr(e,t)}},{key:`leftEncode`,value:function(e,t){return(0,n.default)(e,t)}},{key:`rightText`,value:function(e,t){return this.text.substr(e,t)}},{key:`rightEncode`,value:function(e,t){return(0,n.default)(e,t)}},{key:`encodeGuarded`,value:function(){var e={fontSize:this.fontSize},n={height:this.guardHeight};return[{data:t.SIDE_BIN,options:n},{data:this.leftEncode(),text:this.leftText(),options:e},{data:t.MIDDLE_BIN,options:n},{data:this.rightEncode(),text:this.rightText(),options:e},{data:t.SIDE_BIN,options:n}]}},{key:`encodeFlat`,value:function(){return{data:[t.SIDE_BIN,this.leftEncode(),t.MIDDLE_BIN,this.rightEncode(),t.SIDE_BIN].join(``),text:this.text}}}]),i}(r(l()).default),w}function ve(){if(ge)return pe;ge=1,Object.defineProperty(pe,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=function e(t,n,r){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(i===void 0){var a=Object.getPrototypeOf(t);return a===null?void 0:e(a,n,r)}if(`value`in i)return i.value;var o=i.get;return o===void 0?void 0:o.call(r)},r=C(),i=(e=_e())&&e.__esModule?e:{default:e},a=function(e){return(10-e.substr(0,12).split(``).map(function(e){return+e}).reduce(function(e,t,n){return n%2?e+3*t:e+t},0)%10)%10};return pe.default=function(e){function i(e,t){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,i),e.search(/^[0-9]{12}$/)!==-1&&(e+=a(e));var n=function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e,t));return n.lastChar=t.lastChar,n}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,e),t(i,[{key:`valid`,value:function(){return this.data.search(/^[0-9]{13}$/)!==-1&&+this.data[12]===a(this.data)}},{key:`leftText`,value:function(){return n(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),`leftText`,this).call(this,1,6)}},{key:`leftEncode`,value:function(){var e=this.data.substr(1,6),t=r.EAN13_STRUCTURE[this.data[0]];return n(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),`leftEncode`,this).call(this,e,t)}},{key:`rightText`,value:function(){return n(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),`rightText`,this).call(this,7,6)}},{key:`rightEncode`,value:function(){var e=this.data.substr(7,6);return n(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),`rightEncode`,this).call(this,e,`RRRRRR`)}},{key:`encodeGuarded`,value:function(){var e=n(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),`encodeGuarded`,this).call(this);return this.options.displayValue&&(e.unshift({data:`000000000000`,text:this.text.substr(0,1),options:{textAlign:`left`,fontSize:this.fontSize}}),this.options.lastChar&&(e.push({data:`00`}),e.push({data:`00000`,text:this.options.lastChar,options:{fontSize:this.fontSize}}))),e}}]),i}(i.default),pe}var ye,D={};function be(){if(ye)return D;ye=1,Object.defineProperty(D,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=function e(t,n,r){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(i===void 0){var a=Object.getPrototypeOf(t);return a===null?void 0:e(a,n,r)}if(`value`in i)return i.value;var o=i.get;return o===void 0?void 0:o.call(r)},r=(e=_e())&&e.__esModule?e:{default:e},i=function(e){return(10-e.substr(0,7).split(``).map(function(e){return+e}).reduce(function(e,t,n){return n%2?e+t:e+3*t},0)%10)%10};return D.default=function(e){function r(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,r),e.search(/^[0-9]{7}$/)!==-1&&(e+=i(e)),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,e),t(r,[{key:`valid`,value:function(){return this.data.search(/^[0-9]{8}$/)!==-1&&+this.data[7]===i(this.data)}},{key:`leftText`,value:function(){return n(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),`leftText`,this).call(this,0,4)}},{key:`leftEncode`,value:function(){var e=this.data.substr(0,4);return n(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),`leftEncode`,this).call(this,e,`LLLL`)}},{key:`rightText`,value:function(){return n(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),`rightText`,this).call(this,4,4)}},{key:`rightEncode`,value:function(){var e=this.data.substr(4,4);return n(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),`rightEncode`,this).call(this,e,`RRRR`)}}]),r}(r.default),D}var xe,O={};function Se(){if(xe)return O;xe=1,Object.defineProperty(O,"__esModule",{value:!0});var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),t=C(),n=i(E()),r=i(l());function i(e){return e&&e.__esModule?e:{default:e}}return O.default=function(r){function i(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,i),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,r),e(i,[{key:`valid`,value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:`encode`,value:function(){var e,r=t.EAN5_STRUCTURE[e=this.data,e.split(``).map(function(e){return+e}).reduce(function(e,t,n){return n%2?e+9*t:e+3*t},0)%10];return{data:`1011`+(0,n.default)(this.data,r,`01`),text:this.text}}}]),i}(r.default),O}var Ce,k={};function we(){if(Ce)return k;Ce=1,Object.defineProperty(k,"__esModule",{value:!0});var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),t=C(),n=r(E());function r(e){return e&&e.__esModule?e:{default:e}}return k.default=function(r){function i(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,i),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,r),e(i,[{key:`valid`,value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:`encode`,value:function(){var e=t.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:`1011`+(0,n.default)(this.data,e,`01`),text:this.text}}}]),i}(r(l()).default),k}var Te,A={};function Ee(){if(Te)return A;Te=1,Object.defineProperty(A,"__esModule",{value:!0});var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();A.checksum=i;var t=n(E());function n(e){return e&&e.__esModule?e:{default:e}}var r=function(n){function r(e,t){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,r),e.search(/^[0-9]{11}$/)!==-1&&(e+=i(e));var n=function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,t));return n.displayValue=t.displayValue,t.fontSize>10*t.width?n.fontSize=10*t.width:n.fontSize=t.fontSize,n.guardHeight=t.height+n.fontSize/2+t.textMargin,n}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,n),e(r,[{key:`valid`,value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==i(this.data)}},{key:`encode`,value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:`flatEncoding`,value:function(){var e=``;return e+=`101`,e+=(0,t.default)(this.data.substr(0,6),`LLLLLL`),e+=`01010`,e+=(0,t.default)(this.data.substr(6,6),`RRRRRR`),{data:e+=`101`,text:this.text}}},{key:`guardedEncoding`,value:function(){var e=[];return this.displayValue&&e.push({data:`00000000`,text:this.text.substr(0,1),options:{textAlign:`left`,fontSize:this.fontSize}}),e.push({data:`101`+(0,t.default)(this.data[0],`L`),options:{height:this.guardHeight}}),e.push({data:(0,t.default)(this.data.substr(1,5),`LLLLL`),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),e.push({data:`01010`,options:{height:this.guardHeight}}),e.push({data:(0,t.default)(this.data.substr(6,5),`RRRRR`),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),e.push({data:(0,t.default)(this.data[11],`R`)+`101`,options:{height:this.guardHeight}}),this.displayValue&&e.push({data:`00000000`,text:this.text.substr(11,1),options:{textAlign:`right`,fontSize:this.fontSize}}),e}}]),r}(n(l()).default);function i(e){var t,n=0;for(t=1;t<11;t+=2)n+=parseInt(e[t]);for(t=0;t<11;t+=2)n+=3*parseInt(e[t]);return(10-n%10)%10}return A.default=r,A}var De,Oe,j={};function ke(){if(De)return j;De=1,Object.defineProperty(j,"__esModule",{value:!0});var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),t=i(E()),n=i(l()),r=Ee();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}var o=[`XX00000XXX`,`XX10000XXX`,`XX20000XXX`,`XXX00000XX`,`XXXX00000X`,`XXXXX00005`,`XXXXX00006`,`XXXXX00007`,`XXXXX00008`,`XXXXX00009`],s=[[`EEEOOO`,`OOOEEE`],[`EEOEOO`,`OOEOEE`],[`EEOOEO`,`OOEEOE`],[`EEOOOE`,`OOEEEO`],[`EOEEOO`,`OEOOEE`],[`EOOEEO`,`OEEOOE`],[`EOOOEE`,`OEEEOO`],[`EOEOEO`,`OEOEOE`],[`EOEOOE`,`OEOEEO`],[`EOOEOE`,`OEEOEO`]],c=function(n){function r(e,t){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,r);var n=a(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,t));if(n.isValid=!1,e.search(/^[0-9]{6}$/)!==-1)n.middleDigits=e,n.upcA=u(e,`0`),n.text=t.text||``+n.upcA[0]+e+n.upcA[n.upcA.length-1],n.isValid=!0;else{if(e.search(/^[01][0-9]{7}$/)===-1||(n.middleDigits=e.substring(1,e.length-1),n.upcA=u(n.middleDigits,e[0]),n.upcA[n.upcA.length-1]!==e[e.length-1]))return a(n);n.isValid=!0}return n.displayValue=t.displayValue,t.fontSize>10*t.width?n.fontSize=10*t.width:n.fontSize=t.fontSize,n.guardHeight=t.height+n.fontSize/2+t.textMargin,n}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,n),e(r,[{key:`valid`,value:function(){return this.isValid}},{key:`encode`,value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:`flatEncoding`,value:function(){var e=``;return e+=`101`,e+=this.encodeMiddleDigits(),{data:e+=`010101`,text:this.text}}},{key:`guardedEncoding`,value:function(){var e=[];return this.displayValue&&e.push({data:`00000000`,text:this.text[0],options:{textAlign:`left`,fontSize:this.fontSize}}),e.push({data:`101`,options:{height:this.guardHeight}}),e.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),e.push({data:`010101`,options:{height:this.guardHeight}}),this.displayValue&&e.push({data:`00000000`,text:this.text[7],options:{textAlign:`right`,fontSize:this.fontSize}}),e}},{key:`encodeMiddleDigits`,value:function(){var e=this.upcA[0],n=this.upcA[this.upcA.length-1],r=s[parseInt(n)][parseInt(e)];return(0,t.default)(this.middleDigits,r)}}]),r}(n.default);function u(e,t){for(var n=o[parseInt(e[e.length-1])],i=``,a=0,s=0;s<n.length;s++){var c=n[s];i+=c===`X`?e[a++]:c}return(i=``+t+i)+(0,r.checksum)(i)}return j.default=c,j}var Ae,je,M={},N={},P={};function Me(){if(je)return N;je=1,Object.defineProperty(N,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=(Ae||(Ae=1,Object.defineProperty(P,"__esModule",{value:!0}),P.START_BIN=`1010`,P.END_BIN=`11101`,P.BINARIES=[`00110`,`10001`,`01001`,`11000`,`00101`,`10100`,`01100`,`00011`,`10010`,`01010`]),P);return N.default=function(e){function r(){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,r),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,e),t(r,[{key:`valid`,value:function(){return this.data.search(/^([0-9]{2})+$/)!==-1}},{key:`encode`,value:function(){var e=this,t=this.data.match(/.{2}/g).map(function(t){return e.encodePair(t)}).join(``);return{data:n.START_BIN+t+n.END_BIN,text:this.text}}},{key:`encodePair`,value:function(e){var t=n.BINARIES[e[1]];return n.BINARIES[e[0]].split(``).map(function(e,n){return(e===`1`?`111`:`1`)+(t[n]===`1`?`000`:`0`)}).join(``)}}]),r}(((e=l())&&e.__esModule?e:{default:e}).default),N}var Ne,Pe,F={};function Fe(){if(Ne)return F;Ne=1,Object.defineProperty(F,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=(e=Me())&&e.__esModule?e:{default:e},r=function(e){var t=e.substr(0,13).split(``).map(function(e){return parseInt(e,10)}).reduce(function(e,t,n){return e+t*(3-n%2*2)},0);return 10*Math.ceil(t/10)-t};return F.default=function(e){function n(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,n),e.search(/^[0-9]{13}$/)!==-1&&(e+=r(e)),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`valid`,value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===r(this.data)}}]),n}(n.default),F}var Ie,I={},L={};function R(){if(Ie)return L;Ie=1,Object.defineProperty(L,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=function(e){function n(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,n),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`encode`,value:function(){for(var e=`110`,t=0;t<this.data.length;t++){var n=parseInt(this.data[t]).toString(2);n=r(n,4-n.length);for(var i=0;i<n.length;i++)e+=n[i]==`0`?`100`:`110`}return{data:e+=`1001`,text:this.text}}},{key:`valid`,value:function(){return this.data.search(/^[0-9]+$/)!==-1}}]),n}(((e=l())&&e.__esModule?e:{default:e}).default);function r(e,t){for(var n=0;n<t;n++)e=`0`+e;return e}return L.default=n,L}var Le,Re,z={},B={};function V(){return Le?B:(Le=1,Object.defineProperty(B,"__esModule",{value:!0}),B.mod10=function(e){for(var t=0,n=0;n<e.length;n++){var r=parseInt(e[n]);(n+e.length)%2==0?t+=r:t+=2*r%10+Math.floor(2*r/10)}return(10-t%10)%10},B.mod11=function(e){for(var t=0,n=[2,3,4,5,6,7],r=0;r<e.length;r++){var i=parseInt(e[e.length-1-r]);t+=n[r%n.length]*i}return(11-t%11)%11},B)}function ze(){if(Re)return z;Re=1,Object.defineProperty(z,"__esModule",{value:!0});var e,t=(e=R())&&e.__esModule?e:{default:e},n=V();return z.default=function(e){function t(e,r){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,t),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e+(0,n.mod10)(e),r))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(t.default),z}var Be,H={};function Ve(){if(Be)return H;Be=1,Object.defineProperty(H,"__esModule",{value:!0});var e,t=(e=R())&&e.__esModule?e:{default:e},n=V();return H.default=function(e){function t(e,r){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,t),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e+(0,n.mod11)(e),r))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(t.default),H}var He,U={};function Ue(){if(He)return U;He=1,Object.defineProperty(U,"__esModule",{value:!0});var e,t=(e=R())&&e.__esModule?e:{default:e},n=V();return U.default=function(e){function t(e,r){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,t),e+=(0,n.mod10)(e),e+=(0,n.mod10)(e),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(t.default),U}var We,Ge,Ke={};function qe(){if(We)return Ke;We=1,Object.defineProperty(Ke,"__esModule",{value:!0});var e,t=(e=R())&&e.__esModule?e:{default:e},n=V();return Ke.default=function(e){function t(e,r){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,t),e+=(0,n.mod11)(e),e+=(0,n.mod10)(e),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(t.default),Ke}var Je,W={};function Ye(){if(Je)return W;Je=1,Object.defineProperty(W,"__esModule",{value:!0}),W.pharmacode=void 0;var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();return W.pharmacode=function(e){function n(e,t){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,n);var r=function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t));return r.number=parseInt(e,10),r}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`encode`,value:function(){for(var e=this.number,t=``;!isNaN(e)&&e!=0;)e%2==0?(t=`11100`+t,e=(e-2)/2):(t=`100`+t,e=(e-1)/2);return{data:t=t.slice(0,-2),text:this.text}}},{key:`valid`,value:function(){return this.number>=3&&this.number<=131070}}]),n}(((e=l())&&e.__esModule?e:{default:e}).default),W}var Xe,G={};function Ze(){if(Xe)return G;Xe=1,Object.defineProperty(G,"__esModule",{value:!0}),G.codabar=void 0;var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();return G.codabar=function(e){function n(e,t){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,n),e.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(e=`A`+e+`A`);var r=function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e.toUpperCase(),t));return r.text=r.options.text||r.text.replace(/[A-D]/g,``),r}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`valid`,value:function(){return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)!==-1}},{key:`encode`,value:function(){for(var e=[],t=this.getEncodings(),n=0;n<this.data.length;n++)e.push(t[this.data.charAt(n)]),n!==this.data.length-1&&e.push(`0`);return{text:this.text,data:e.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`}}}]),n}(((e=l())&&e.__esModule?e:{default:e}).default),G}var Qe,$e,K={},q={},J={};function et(){if($e)return q;$e=1,Object.defineProperty(q,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=(Qe||(Qe=1,Object.defineProperty(J,"__esModule",{value:!0}),J.SYMBOLS=`0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,-,., ,$,/,+,%,($),(%),(/),(+),ÿ`.split(`,`),J.BINARIES=`100010100.101001000.101000100.101000010.100101000.100100100.100100010.101010000.100010010.100001010.110101000.110100100.110100010.110010100.110010010.110001010.101101000.101100100.101100010.100110100.100011010.101011000.101001100.101000110.100101100.100010110.110110100.110110010.110101100.110100110.110010110.110011010.101101100.101100110.100110110.100111010.100101110.111010100.111010010.111001010.101101110.101110110.110101110.100100110.111011010.111010110.100110010.101011110`.split(`.`),J.MULTI_SYMBOLS={"\0":[`(%)`,`U`],"":[`($)`,`A`],"":[`($)`,`B`],"":[`($)`,`C`],"":[`($)`,`D`],"":[`($)`,`E`],"":[`($)`,`F`],"\x07":[`($)`,`G`],"\b":[`($)`,`H`]," ":[`($)`,`I`],"\n":[`($)`,`J`],"\v":[`($)`,`K`],"\f":[`($)`,`L`],"\r":[`($)`,`M`],"":[`($)`,`N`],"":[`($)`,`O`],"":[`($)`,`P`],"":[`($)`,`Q`],"":[`($)`,`R`],"":[`($)`,`S`],"":[`($)`,`T`],"":[`($)`,`U`],"":[`($)`,`V`],"":[`($)`,`W`],"":[`($)`,`X`],"":[`($)`,`Y`],"":[`($)`,`Z`],"\x1B":[`(%)`,`A`],"":[`(%)`,`B`],"":[`(%)`,`C`],"":[`(%)`,`D`],"":[`(%)`,`E`],"!":[`(/)`,`A`],'"':[`(/)`,`B`],"#":[`(/)`,`C`],"&":[`(/)`,`F`],"'":[`(/)`,`G`],"(":[`(/)`,`H`],")":[`(/)`,`I`],"*":[`(/)`,`J`],",":[`(/)`,`L`],":":[`(/)`,`Z`],";":[`(%)`,`F`],"<":[`(%)`,`G`],"=":[`(%)`,`H`],">":[`(%)`,`I`],"?":[`(%)`,`J`],"@":[`(%)`,`V`],"[":[`(%)`,`K`],"\\":[`(%)`,`L`],"]":[`(%)`,`M`],"^":[`(%)`,`N`],_:[`(%)`,`O`],"`":[`(%)`,`W`],a:[`(+)`,`A`],b:[`(+)`,`B`],c:[`(+)`,`C`],d:[`(+)`,`D`],e:[`(+)`,`E`],f:[`(+)`,`F`],g:[`(+)`,`G`],h:[`(+)`,`H`],i:[`(+)`,`I`],j:[`(+)`,`J`],k:[`(+)`,`K`],l:[`(+)`,`L`],m:[`(+)`,`M`],n:[`(+)`,`N`],o:[`(+)`,`O`],p:[`(+)`,`P`],q:[`(+)`,`Q`],r:[`(+)`,`R`],s:[`(+)`,`S`],t:[`(+)`,`T`],u:[`(+)`,`U`],v:[`(+)`,`V`],w:[`(+)`,`W`],x:[`(+)`,`X`],y:[`(+)`,`Y`],z:[`(+)`,`Z`],"{":[`(%)`,`P`],"|":[`(%)`,`Q`],"}":[`(%)`,`R`],"~":[`(%)`,`S`],"":[`(%)`,`T`]}),J);return q.default=function(e){function r(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,r),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,e),t(r,[{key:`valid`,value:function(){return/^[0-9A-Z\-. $/+%]+$/.test(this.data)}},{key:`encode`,value:function(){var e=this.data.split(``).flatMap(function(e){return n.MULTI_SYMBOLS[e]||e}),t=e.map(function(e){return r.getEncoding(e)}).join(``),i=r.checksum(e,20),a=r.checksum(e.concat(i),15);return{text:this.text,data:r.getEncoding(`ÿ`)+t+r.getEncoding(i)+r.getEncoding(a)+r.getEncoding(`ÿ`)+`1`}}}],[{key:`getEncoding`,value:function(e){return n.BINARIES[r.symbolValue(e)]}},{key:`getSymbol`,value:function(e){return n.SYMBOLS[e]}},{key:`symbolValue`,value:function(e){return n.SYMBOLS.indexOf(e)}},{key:`checksum`,value:function(e,t){var n=e.slice().reverse().reduce(function(e,n,i){var a=i%t+1;return e+r.symbolValue(n)*a},0);return r.getSymbol(n%47)}}]),r}(((e=l())&&e.__esModule?e:{default:e}).default),q}var tt,nt,Y={};function rt(){if(tt)return Y;tt=1,Object.defineProperty(Y,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();return Y.default=function(e){function n(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,n),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`valid`,value:function(){return/^[\x00-\x7f]+$/.test(this.data)}}]),n}(((e=et())&&e.__esModule?e:{default:e}).default),Y}var it,at,X={};function ot(){if(it)return X;it=1,Object.defineProperty(X,"__esModule",{value:!0}),X.GenericBarcode=void 0;var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();return X.GenericBarcode=function(e){function n(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,n),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`encode`,value:function(){return{data:`10101010101010101010101010101010101010101`,text:this.text}}},{key:`valid`,value:function(){return!0}}]),n}(((e=l())&&e.__esModule?e:{default:e}).default),X}function st(){if(at)return o;at=1,Object.defineProperty(o,"__esModule",{value:!0});var e=u(),t=function(){if(le)return f;le=1,Object.defineProperty(f,"__esModule",{value:!0}),f.CODE128C=f.CODE128B=f.CODE128A=f.CODE128=void 0;var e=i(re()),t=i(ae()),n=i(se()),r=i(de());function i(e){return e&&e.__esModule?e:{default:e}}return f.CODE128=e.default,f.CODE128A=t.default,f.CODE128B=n.default,f.CODE128C=r.default,f}(),n=function(){if(Oe)return x;Oe=1,Object.defineProperty(x,"__esModule",{value:!0}),x.UPCE=x.UPC=x.EAN2=x.EAN5=x.EAN8=x.EAN13=void 0;var e=o(ve()),t=o(be()),n=o(Se()),r=o(we()),i=o(Ee()),a=o(ke());function o(e){return e&&e.__esModule?e:{default:e}}return x.EAN13=e.default,x.EAN8=t.default,x.EAN5=n.default,x.EAN2=r.default,x.UPC=i.default,x.UPCE=a.default,x}(),r=function(){if(Pe)return M;Pe=1,Object.defineProperty(M,"__esModule",{value:!0}),M.ITF14=M.ITF=void 0;var e=n(Me()),t=n(Fe());function n(e){return e&&e.__esModule?e:{default:e}}return M.ITF=e.default,M.ITF14=t.default,M}(),i=function(){if(Ge)return I;Ge=1,Object.defineProperty(I,"__esModule",{value:!0}),I.MSI1110=I.MSI1010=I.MSI11=I.MSI10=I.MSI=void 0;var e=a(R()),t=a(ze()),n=a(Ve()),r=a(Ue()),i=a(qe());function a(e){return e&&e.__esModule?e:{default:e}}return I.MSI=e.default,I.MSI10=t.default,I.MSI11=n.default,I.MSI1010=r.default,I.MSI1110=i.default,I}(),a=Ye(),s=Ze(),c=function(){if(nt)return K;nt=1,Object.defineProperty(K,"__esModule",{value:!0}),K.CODE93FullASCII=K.CODE93=void 0;var e=n(et()),t=n(rt());function n(e){return e&&e.__esModule?e:{default:e}}return K.CODE93=e.default,K.CODE93FullASCII=t.default,K}(),l=ot();return o.default={CODE39:e.CODE39,CODE128:t.CODE128,CODE128A:t.CODE128A,CODE128B:t.CODE128B,CODE128C:t.CODE128C,EAN13:n.EAN13,EAN8:n.EAN8,EAN5:n.EAN5,EAN2:n.EAN2,UPC:n.UPC,UPCE:n.UPCE,ITF14:r.ITF14,ITF:r.ITF,MSI:i.MSI,MSI10:i.MSI10,MSI11:i.MSI11,MSI1010:i.MSI1010,MSI1110:i.MSI1110,pharmacode:a.pharmacode,codabar:s.codabar,CODE93:c.CODE93,CODE93FullASCII:c.CODE93FullASCII,GenericBarcode:l.GenericBarcode},o}var ct,lt={};function ut(){if(ct)return lt;ct=1,Object.defineProperty(lt,"__esModule",{value:!0});var e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};return lt.default=function(t,n){return e({},t,n)},lt}var dt,ft={},pt,mt={},ht,gt={},_t={},vt={};function yt(){return ht?vt:(ht=1,Object.defineProperty(vt,"__esModule",{value:!0}),vt.default=function(e){var t=[`width`,`height`,`textMargin`,`fontSize`,`margin`,`marginTop`,`marginBottom`,`marginLeft`,`marginRight`];for(var n in t)t.hasOwnProperty(n)&&typeof e[n=t[n]]==`string`&&(e[n]=parseInt(e[n],10));return typeof e.displayValue==`string`&&(e.displayValue=e.displayValue!=`false`),e},vt)}var bt,xt,St={};function Ct(){return bt?St:(bt=1,Object.defineProperty(St,"__esModule",{value:!0}),St.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(){}},St)}var wt,Tt,Et={},Dt={},Z={};function Ot(){if(wt)return Z;wt=1,Object.defineProperty(Z,"__esModule",{value:!0}),Z.getTotalWidthOfEncodings=Z.calculateEncodingAttributes=Z.getBarcodePadding=Z.getEncodingHeight=Z.getMaximumHeightOfEncodings=void 0;var e,t=(e=ut())&&e.__esModule?e:{default:e};function n(e,t){return t.height+(t.displayValue&&e.text.length>0?t.fontSize+t.textMargin:0)+t.marginTop+t.marginBottom}function r(e,t,n){if(n.displayValue&&t<e){if(n.textAlign==`center`)return Math.floor((e-t)/2);if(n.textAlign==`left`)return 0;if(n.textAlign==`right`)return Math.floor(e-t)}return 0}function i(e,t,n){var r;if(n)r=n;else{if(typeof document>`u`)return 0;r=document.createElement(`canvas`).getContext(`2d`)}r.font=t.fontOptions+` `+t.fontSize+`px `+t.font;var i=r.measureText(e);return i?i.width:0}return Z.getMaximumHeightOfEncodings=function(e){for(var t=0,n=0;n<e.length;n++)e[n].height>t&&(t=e[n].height);return t},Z.getEncodingHeight=n,Z.getBarcodePadding=r,Z.calculateEncodingAttributes=function(e,a,o){for(var s=0;s<e.length;s++){var c,l=e[s],u=(0,t.default)(a,l.options);c=u.displayValue?i(l.text,u,o):0;var d=l.data.length*u.width;l.width=Math.ceil(Math.max(c,d)),l.height=n(l,u),l.barcodePadding=r(c,d,u)}},Z.getTotalWidthOfEncodings=function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n].width;return t},Z}function kt(){if(Tt)return Dt;Tt=1,Object.defineProperty(Dt,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=(e=ut())&&e.__esModule?e:{default:e},r=Ot();return Dt.default=function(){function e(t,n,r){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,e),this.canvas=t,this.encodings=n,this.options=r}return t(e,[{key:`render`,value:function(){if(!this.canvas.getContext)throw Error(`The browser does not support canvas.`);this.prepareCanvas();for(var e=0;e<this.encodings.length;e++){var t=(0,n.default)(this.options,this.encodings[e].options);this.drawCanvasBarcode(t,this.encodings[e]),this.drawCanvasText(t,this.encodings[e]),this.moveCanvasDrawing(this.encodings[e])}this.restoreCanvas()}},{key:`prepareCanvas`,value:function(){var e=this.canvas.getContext(`2d`);e.save(),(0,r.calculateEncodingAttributes)(this.encodings,this.options,e);var t=(0,r.getTotalWidthOfEncodings)(this.encodings),n=(0,r.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=t+this.options.marginLeft+this.options.marginRight,this.canvas.height=n,e.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(e.fillStyle=this.options.background,e.fillRect(0,0,this.canvas.width,this.canvas.height)),e.translate(this.options.marginLeft,0)}},{key:`drawCanvasBarcode`,value:function(e,t){var n,r=this.canvas.getContext(`2d`),i=t.data;n=e.textPosition==`top`?e.marginTop+e.fontSize+e.textMargin:e.marginTop,r.fillStyle=e.lineColor;for(var a=0;a<i.length;a++){var o=a*e.width+t.barcodePadding;i[a]===`1`?r.fillRect(o,n,e.width,e.height):i[a]&&r.fillRect(o,n,e.width,e.height*i[a])}}},{key:`drawCanvasText`,value:function(e,t){var n,r,i=this.canvas.getContext(`2d`),a=e.fontOptions+` `+e.fontSize+`px `+e.font;e.displayValue&&(r=e.textPosition==`top`?e.marginTop+e.fontSize-e.textMargin:e.height+e.textMargin+e.marginTop+e.fontSize,i.font=a,e.textAlign==`left`||t.barcodePadding>0?(n=0,i.textAlign=`left`):e.textAlign==`right`?(n=t.width-1,i.textAlign=`right`):(n=t.width/2,i.textAlign=`center`),i.fillText(t.text,n,r))}},{key:`moveCanvasDrawing`,value:function(e){this.canvas.getContext(`2d`).translate(e.width,0)}},{key:`restoreCanvas`,value:function(){this.canvas.getContext(`2d`).restore()}}]),e}(),Dt}var At,jt={};function Mt(){if(At)return jt;At=1,Object.defineProperty(jt,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=(e=ut())&&e.__esModule?e:{default:e},r=Ot(),i=`http://www.w3.org/2000/svg`;return jt.default=function(){function e(t,n,r){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,e),this.svg=t,this.encodings=n,this.options=r,this.document=r.xmlDocument||document}return t(e,[{key:`render`,value:function(){var e=this.options.marginLeft;this.prepareSVG();for(var t=0;t<this.encodings.length;t++){var r=this.encodings[t],i=(0,n.default)(this.options,r.options),a=this.createGroup(e,i.marginTop,this.svg);this.setGroupOptions(a,i),this.drawSvgBarcode(a,i,r),this.drawSVGText(a,i,r),e+=r.width}}},{key:`prepareSVG`,value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,r.calculateEncodingAttributes)(this.encodings,this.options);var e=(0,r.getTotalWidthOfEncodings)(this.encodings),t=(0,r.getMaximumHeightOfEncodings)(this.encodings),n=e+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(n,t),this.options.background&&this.drawRect(0,0,n,t,this.svg).setAttribute(`fill`,this.options.background)}},{key:`drawSvgBarcode`,value:function(e,t,n){var r,i=n.data;r=t.textPosition==`top`?t.fontSize+t.textMargin:0;for(var a=0,o=0,s=0;s<i.length;s++)o=s*t.width+n.barcodePadding,i[s]===`1`?a++:a>0&&(this.drawRect(o-t.width*a,r,t.width*a,t.height,e),a=0);a>0&&this.drawRect(o-t.width*(a-1),r,t.width*a,t.height,e)}},{key:`drawSVGText`,value:function(e,t,n){var r,a,o=this.document.createElementNS(i,`text`);t.displayValue&&(o.setAttribute(`font-family`,t.font),o.setAttribute(`font-size`,t.fontSize),t.fontOptions.includes(`bold`)&&o.setAttribute(`font-weight`,`bold`),t.fontOptions.includes(`italic`)&&o.setAttribute(`font-style`,`italic`),a=t.textPosition==`top`?t.fontSize-t.textMargin:t.height+t.textMargin+t.fontSize,t.textAlign==`left`||n.barcodePadding>0?(r=0,o.setAttribute(`text-anchor`,`start`)):t.textAlign==`right`?(r=n.width-1,o.setAttribute(`text-anchor`,`end`)):(r=n.width/2,o.setAttribute(`text-anchor`,`middle`)),o.setAttribute(`x`,r),o.setAttribute(`y`,a),o.appendChild(this.document.createTextNode(n.text)),e.appendChild(o))}},{key:`setSvgAttributes`,value:function(e,t){var n=this.svg;n.setAttribute(`width`,e+`px`),n.setAttribute(`height`,t+`px`),n.setAttribute(`x`,`0px`),n.setAttribute(`y`,`0px`),n.setAttribute(`viewBox`,`0 0 `+e+` `+t),n.setAttribute(`xmlns`,i),n.setAttribute(`version`,`1.1`)}},{key:`createGroup`,value:function(e,t,n){var r=this.document.createElementNS(i,`g`);return r.setAttribute(`transform`,`translate(`+e+`, `+t+`)`),n.appendChild(r),r}},{key:`setGroupOptions`,value:function(e,t){e.setAttribute(`fill`,t.lineColor)}},{key:`drawRect`,value:function(e,t,n,r,a){var o=this.document.createElementNS(i,`rect`);return o.setAttribute(`x`,e),o.setAttribute(`y`,t),o.setAttribute(`width`,n),o.setAttribute(`height`,r),a.appendChild(o),o}}]),e}(),jt}var Nt,Pt,Q={};function Ft(){if(Nt)return Q;Nt=1,Object.defineProperty(Q,"__esModule",{value:!0});var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();return Q.default=function(){function t(e,n,r){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,t),this.object=e,this.encodings=n,this.options=r}return e(t,[{key:`render`,value:function(){this.object.encodings=this.encodings}}]),t}(),Q}var It,Lt,$={};function Rt(){if(It)return $;function e(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function t(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}function n(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}It=1,Object.defineProperty($,"__esModule",{value:!0});var r=function(){function r(n,i){e(this,r);var a=t(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return a.name=`InvalidInputException`,a.symbology=n,a.input=i,a.message=`"`+a.input+`" is not a valid input for `+a.symbology,a}return n(r,Error),r}(),i=function(){function r(){e(this,r);var n=t(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return n.name=`InvalidElementException`,n.message=`Not supported type to render on`,n}return n(r,Error),r}(),a=function(){function r(){e(this,r);var n=t(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return n.name=`NoElementException`,n.message=`No element to render on.`,n}return n(r,Error),r}();return $.InvalidInputException=r,$.InvalidElementException=i,$.NoElementException=a,$}function zt(){if(Lt)return gt;Lt=1,Object.defineProperty(gt,"__esModule",{value:!0});var e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t=i(function(){if(xt)return _t;xt=1,Object.defineProperty(_t,"__esModule",{value:!0});var e=n(yt()),t=n(Ct());function n(e){return e&&e.__esModule?e:{default:e}}return _t.default=function(n){var r={};for(var i in t.default)t.default.hasOwnProperty(i)&&(n.hasAttribute(`jsbarcode-`+i.toLowerCase())&&(r[i]=n.getAttribute(`jsbarcode-`+i.toLowerCase())),n.hasAttribute(`data-`+i.toLowerCase())&&(r[i]=n.getAttribute(`data-`+i.toLowerCase())));return r.value=n.getAttribute(`jsbarcode-value`)||n.getAttribute(`data-value`),(0,e.default)(r)},_t}()),n=i(function(){if(Pt)return Et;Pt=1,Object.defineProperty(Et,"__esModule",{value:!0});var e=r(kt()),t=r(Mt()),n=r(Ft());function r(e){return e&&e.__esModule?e:{default:e}}return Et.default={CanvasRenderer:e.default,SVGRenderer:t.default,ObjectRenderer:n.default},Et}()),r=Rt();function i(e){return e&&e.__esModule?e:{default:e}}function a(i){if(typeof i==`string`)return function(e){var t=document.querySelectorAll(e);if(t.length!==0){for(var n=[],r=0;r<t.length;r++)n.push(a(t[r]));return n}}(i);if(Array.isArray(i)){for(var o=[],s=0;s<i.length;s++)o.push(a(i[s]));return o}if(typeof HTMLCanvasElement<`u`&&i instanceof HTMLImageElement)return function(e){var r=document.createElement(`canvas`);return{element:r,options:(0,t.default)(e),renderer:n.default.CanvasRenderer,afterRender:function(){e.setAttribute(`src`,r.toDataURL())}}}(i);if(i&&i.nodeName&&i.nodeName.toLowerCase()===`svg`||typeof SVGElement<`u`&&i instanceof SVGElement)return{element:i,options:(0,t.default)(i),renderer:n.default.SVGRenderer};if(typeof HTMLCanvasElement<`u`&&i instanceof HTMLCanvasElement)return{element:i,options:(0,t.default)(i),renderer:n.default.CanvasRenderer};if(i&&i.getContext)return{element:i,renderer:n.default.CanvasRenderer};if(i&&(i===void 0?`undefined`:e(i))===`object`&&!i.nodeName)return{element:i,renderer:n.default.ObjectRenderer};throw new r.InvalidElementException}return gt.default=a,gt}var Bt,Vt,Ht,Ut={};function Wt(){if(Bt)return Ut;Bt=1,Object.defineProperty(Ut,"__esModule",{value:!0});var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();return Ut.default=function(){function t(e){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,t),this.api=e}return e(t,[{key:`handleCatch`,value:function(e){if(e.name!==`InvalidInputException`)throw e;if(this.api._options.valid===this.api._defaults.valid)throw e.message;this.api._options.valid(!1),this.api.render=function(){}}},{key:`wrapBarcodeCall`,value:function(e){try{var t=e.apply(void 0,arguments);return this.api._options.valid(!0),t}catch(e){return this.handleCatch(e),this.api}}}]),t}(),Ut}var Gt=r.D(function(){if(Ht)return Vt;Ht=1;var e=l(st()),t=l(ut()),n=l((dt||(dt=1,Object.defineProperty(ft,"__esModule",{value:!0}),ft.default=function(e){var t=[];return function e(n){if(Array.isArray(n))for(var r=0;r<n.length;r++)e(n[r]);else n.text=n.text||``,n.data=n.data||``,t.push(n)}(e),t}),ft)),r=l((pt||(pt=1,Object.defineProperty(mt,"__esModule",{value:!0}),mt.default=function(e){return e.marginTop=e.marginTop||e.margin,e.marginBottom=e.marginBottom||e.margin,e.marginRight=e.marginRight||e.margin,e.marginLeft=e.marginLeft||e.margin,e}),mt)),i=l(zt()),a=l(yt()),o=l(Wt()),s=Rt(),c=l(Ct());function l(e){return e&&e.__esModule?e:{default:e}}var u=function(){},d=function(e,t,n){var r=new u;if(e===void 0)throw Error(`No element to render on was provided.`);return r._renderProperties=(0,i.default)(e),r._encodings=[],r._options=c.default,r._errorHandler=new o.default(r),t!==void 0&&((n||={}).format||(n.format=m()),r.options(n)[n.format](t,n).render()),r};for(var ee in d.getModule=function(t){return e.default[t]},e.default)e.default.hasOwnProperty(ee)&&f(e.default,ee);function f(e,n){u.prototype[n]=u.prototype[n.toUpperCase()]=u.prototype[n.toLowerCase()]=function(r,i){var o=this;return o._errorHandler.wrapBarcodeCall(function(){i.text=i.text===void 0?void 0:``+i.text;var s=(0,t.default)(o._options,i);s=(0,a.default)(s);var c=e[n],l=p(r,c,s);return o._encodings.push(l),o})}}function p(e,r,i){var a=new r(e=``+e,i);if(!a.valid())throw new s.InvalidInputException(a.constructor.name,e);var o=a.encode();o=(0,n.default)(o);for(var c=0;c<o.length;c++)o[c].options=(0,t.default)(i,o[c].options);return o}function m(){return e.default.CODE128?`CODE128`:Object.keys(e.default)[0]}function h(e,i,a){i=(0,n.default)(i);for(var o=0;o<i.length;o++)i[o].options=(0,t.default)(a,i[o].options),(0,r.default)(i[o].options);(0,r.default)(a),new e.renderer(e.element,i,a).render(),e.afterRender&&e.afterRender()}return u.prototype.options=function(e){return this._options=(0,t.default)(this._options,e),this},u.prototype.blank=function(e){var t=Array(e+1).join(`0`);return this._encodings.push({data:t}),this},u.prototype.init=function(){var n;if(this._renderProperties)for(var r in Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]),this._renderProperties){n=this._renderProperties[r];var i=(0,t.default)(this._options,n.options);i.format==`auto`&&(i.format=m()),this._errorHandler.wrapBarcodeCall(function(){var t=p(i.value,e.default[i.format.toUpperCase()],i);h(n,t,i)})}},u.prototype.render=function(){if(!this._renderProperties)throw new s.NoElementException;if(Array.isArray(this._renderProperties))for(var e=0;e<this._renderProperties.length;e++)h(this._renderProperties[e],this._encodings,this._options);else h(this._renderProperties,this._encodings,this._options);return this},u.prototype._defaults=c.default,typeof window<`u`&&(window.JsBarcode=d),typeof jQuery<`u`&&(jQuery.fn.JsBarcode=function(e,t){var n=[];return jQuery(this).each(function(){n.push(this)}),d(n,e,t)}),Vt=d}());t.J=Object.freeze({__proto__:null,default:Gt})});
1
+ __useblocks__.define(`static/core/b77ec308.js`,[`require`,`exports`,`module`,`static/core/4dc58c63.js`,`static/core/928d808b.js`],function(e,t,n){e("./4dc58c63.js");let r=e("./928d808b.js");var i,a,o={},s={},c={};function l(){return i?c:(i=1,Object.defineProperty(c,"__esModule",{value:!0}),c.default=function e(t,n){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,e),this.data=t,this.text=n.text||t,this.options=n},c)}function u(){if(a)return s;a=1,Object.defineProperty(s,"__esModule",{value:!0}),s.CODE39=void 0;var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=function(e){function n(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,n),e=e.toUpperCase(),t.mod43&&(e+=function(e){return r[e]}(function(e){for(var t=0,n=0;n<e.length;n++)t+=c(e[n]);return t%=43}(e))),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`encode`,value:function(){for(var e=o(`*`),t=0;t<this.data.length;t++)e+=o(this.data[t])+`0`;return{data:e+=o(`*`),text:this.text}}},{key:`valid`,value:function(){return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)!==-1}}]),n}(((e=l())&&e.__esModule?e:{default:e}).default),r=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%*`.split(``),i=[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 o(e){return function(e){return i[e].toString(2)}(c(e))}function c(e){return r.indexOf(e)}return s.CODE39=n,s}var d,ee,f={},p={},m={},h={};function g(){if(d)return h;var e;function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}d=1,Object.defineProperty(h,"__esModule",{value:!0});var n=h.SET_A=0,r=h.SET_B=1,i=h.SET_C=2;h.SHIFT=98;var a=h.START_A=103,o=h.START_B=104,s=h.START_C=105;return h.MODULO=103,h.STOP=106,h.FNC1=207,h.SET_BY_CODE=(t(e={},a,n),t(e,o,r),t(e,s,i),e),h.SWAP={101:n,100:r,99:i},h.A_START_CHAR=`Ð`,h.B_START_CHAR=`Ñ`,h.C_START_CHAR=`Ò`,h.A_CHARS=`[\0-_È-Ï]`,h.B_CHARS=`[ -È-Ï]`,h.C_CHARS=`(Ï*[0-9]{2}Ï*)`,h.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],h}function _(){if(ee)return m;ee=1,Object.defineProperty(m,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=(e=l())&&e.__esModule?e:{default:e},r=g();return m.default=function(e){function n(e,t){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,n);var r=function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e.substring(1),t));return r.bytes=e.split(``).map(function(e){return e.charCodeAt(0)}),r}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`valid`,value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:`encode`,value:function(){var e=this.bytes,t=e.shift()-105,i=r.SET_BY_CODE[t];if(i===void 0)throw RangeError(`The encoding does not start with a start character.`);!0===this.shouldEncodeAsEan128()&&e.unshift(r.FNC1);var a=n.next(e,1,i);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,``):this.text,data:n.getBar(t)+a.result+n.getBar((a.checksum+t)%r.MODULO)+n.getBar(r.STOP)}}},{key:`shouldEncodeAsEan128`,value:function(){var e=this.options.ean128||!1;return typeof e==`string`&&(e=e.toLowerCase()===`true`),e}}],[{key:`getBar`,value:function(e){return r.BARS[e]?r.BARS[e].toString():``}},{key:`correctIndex`,value:function(e,t){if(t===r.SET_A){var n=e.shift();return n<32?n+64:n-32}return t===r.SET_B?e.shift()-32:10*(e.shift()-48)+e.shift()-48}},{key:`next`,value:function(e,t,i){if(!e.length)return{result:``,checksum:0};var a=void 0,o=void 0;if(e[0]>=200){o=e.shift()-105;var s=r.SWAP[o];s===void 0?(i!==r.SET_A&&i!==r.SET_B||o!==r.SHIFT||(e[0]=i===r.SET_A?e[0]>95?e[0]-96:e[0]:e[0]<32?e[0]+96:e[0]),a=n.next(e,t+1,i)):a=n.next(e,t+1,s)}else o=n.correctIndex(e,i),a=n.next(e,t+1,i);var c=o*t;return{result:n.getBar(o)+a.result,checksum:c+a.checksum}}}]),n}(n.default),m}var te,ne,v={};function re(){if(ne)return p;ne=1,Object.defineProperty(p,"__esModule",{value:!0});var e=n(_()),t=n(function(){if(te)return v;te=1,Object.defineProperty(v,"__esModule",{value:!0});var e=g(),t=function(t){return t.match(RegExp(`^`+e.A_CHARS+`*`))[0].length},n=function(t){return t.match(RegExp(`^`+e.B_CHARS+`*`))[0].length},r=function(t){return t.match(RegExp(`^`+e.C_CHARS+`*`))[0]};function i(t,n){var r=n?e.A_CHARS:e.B_CHARS,o=t.match(RegExp(`^(`+r+`+?)(([0-9]{2}){2,})([^0-9]|$)`));if(o)return o[1]+`Ì`+a(t.substring(o[1].length));var s=t.match(RegExp(`^`+r+`+`))[0];return s.length===t.length?t:s+String.fromCharCode(n?205:206)+i(t.substring(s.length),!n)}function a(e){var a=r(e),o=a.length;if(o===e.length)return e;e=e.substring(o);var s=t(e)>=n(e);return a+String.fromCharCode(s?206:205)+i(e,s)}return v.default=function(o){var s=void 0;if(r(o).length>=2)s=e.C_START_CHAR+a(o);else{var c=t(o)>n(o);s=(c?e.A_START_CHAR:e.B_START_CHAR)+i(o,c)}return s.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(e,t){return`Ë`+t})},v}());function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}return p.default=function(e){function n(e,i){if(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,n),/^[\x00-\x7F\xC8-\xD3]+$/.test(e))var a=r(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,(0,t.default)(e),i));else a=r(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,i));return r(a)}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),n}(e.default),p}var ie,y={};function ae(){if(ie)return y;ie=1,Object.defineProperty(y,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=(e=_())&&e.__esModule?e:{default:e},r=g();return y.default=function(e){function n(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,n),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,r.A_START_CHAR+e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`valid`,value:function(){return RegExp(`^`+r.A_CHARS+`+$`).test(this.data)}}]),n}(n.default),y}var oe,b={};function se(){if(oe)return b;oe=1,Object.defineProperty(b,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=(e=_())&&e.__esModule?e:{default:e},r=g();return b.default=function(e){function n(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,n),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,r.B_START_CHAR+e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`valid`,value:function(){return RegExp(`^`+r.B_CHARS+`+$`).test(this.data)}}]),n}(n.default),b}var ce,le,ue={};function de(){if(ce)return ue;ce=1,Object.defineProperty(ue,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=(e=_())&&e.__esModule?e:{default:e},r=g();return ue.default=function(e){function n(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,n),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,r.C_START_CHAR+e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`valid`,value:function(){return RegExp(`^`+r.C_CHARS+`+$`).test(this.data)}}]),n}(n.default),ue}var fe,x={},pe={},S={};function C(){return fe||(fe=1,Object.defineProperty(S,"__esModule",{value:!0}),S.SIDE_BIN=`101`,S.MIDDLE_BIN=`01010`,S.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`]},S.EAN2_STRUCTURE=[`LL`,`LG`,`GL`,`GG`],S.EAN5_STRUCTURE=[`GGLLL`,`GLGLL`,`GLLGL`,`GLLLG`,`LGGLL`,`LLGGL`,`LLLGG`,`LGLGL`,`LGLLG`,`LLGLG`],S.EAN13_STRUCTURE=[`LLLLLL`,`LLGLGG`,`LLGGLG`,`LLGGGL`,`LGLLGG`,`LGGLLG`,`LGGGLL`,`LGLGLG`,`LGLGGL`,`LGGLGL`]),S}var me,he,ge,w={},T={};function E(){if(me)return T;me=1,Object.defineProperty(T,"__esModule",{value:!0});var e=C();return T.default=function(t,n,r){var i=t.split(``).map(function(t,r){return e.BINARIES[n[r]]}).map(function(e,n){return e?e[t[n]]:``});if(r){var a=t.length-1;i=i.map(function(e,t){return t<a?e+r:e})}return i.join(``)},T}function _e(){if(he)return w;he=1,Object.defineProperty(w,"__esModule",{value:!0});var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),t=C(),n=r(E());function r(e){return e&&e.__esModule?e:{default:e}}return w.default=function(r){function i(e,t){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,i);var n=function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e,t));return n.fontSize=!t.flat&&t.fontSize>10*t.width?10*t.width:t.fontSize,n.guardHeight=t.height+n.fontSize/2+t.textMargin,n}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,r),e(i,[{key:`encode`,value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:`leftText`,value:function(e,t){return this.text.substr(e,t)}},{key:`leftEncode`,value:function(e,t){return(0,n.default)(e,t)}},{key:`rightText`,value:function(e,t){return this.text.substr(e,t)}},{key:`rightEncode`,value:function(e,t){return(0,n.default)(e,t)}},{key:`encodeGuarded`,value:function(){var e={fontSize:this.fontSize},n={height:this.guardHeight};return[{data:t.SIDE_BIN,options:n},{data:this.leftEncode(),text:this.leftText(),options:e},{data:t.MIDDLE_BIN,options:n},{data:this.rightEncode(),text:this.rightText(),options:e},{data:t.SIDE_BIN,options:n}]}},{key:`encodeFlat`,value:function(){return{data:[t.SIDE_BIN,this.leftEncode(),t.MIDDLE_BIN,this.rightEncode(),t.SIDE_BIN].join(``),text:this.text}}}]),i}(r(l()).default),w}function ve(){if(ge)return pe;ge=1,Object.defineProperty(pe,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=function e(t,n,r){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(i===void 0){var a=Object.getPrototypeOf(t);return a===null?void 0:e(a,n,r)}if(`value`in i)return i.value;var o=i.get;return o===void 0?void 0:o.call(r)},r=C(),i=(e=_e())&&e.__esModule?e:{default:e},a=function(e){return(10-e.substr(0,12).split(``).map(function(e){return+e}).reduce(function(e,t,n){return n%2?e+3*t:e+t},0)%10)%10};return pe.default=function(e){function i(e,t){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,i),e.search(/^[0-9]{12}$/)!==-1&&(e+=a(e));var n=function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e,t));return n.lastChar=t.lastChar,n}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,e),t(i,[{key:`valid`,value:function(){return this.data.search(/^[0-9]{13}$/)!==-1&&+this.data[12]===a(this.data)}},{key:`leftText`,value:function(){return n(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),`leftText`,this).call(this,1,6)}},{key:`leftEncode`,value:function(){var e=this.data.substr(1,6),t=r.EAN13_STRUCTURE[this.data[0]];return n(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),`leftEncode`,this).call(this,e,t)}},{key:`rightText`,value:function(){return n(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),`rightText`,this).call(this,7,6)}},{key:`rightEncode`,value:function(){var e=this.data.substr(7,6);return n(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),`rightEncode`,this).call(this,e,`RRRRRR`)}},{key:`encodeGuarded`,value:function(){var e=n(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),`encodeGuarded`,this).call(this);return this.options.displayValue&&(e.unshift({data:`000000000000`,text:this.text.substr(0,1),options:{textAlign:`left`,fontSize:this.fontSize}}),this.options.lastChar&&(e.push({data:`00`}),e.push({data:`00000`,text:this.options.lastChar,options:{fontSize:this.fontSize}}))),e}}]),i}(i.default),pe}var ye,D={};function be(){if(ye)return D;ye=1,Object.defineProperty(D,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=function e(t,n,r){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(i===void 0){var a=Object.getPrototypeOf(t);return a===null?void 0:e(a,n,r)}if(`value`in i)return i.value;var o=i.get;return o===void 0?void 0:o.call(r)},r=(e=_e())&&e.__esModule?e:{default:e},i=function(e){return(10-e.substr(0,7).split(``).map(function(e){return+e}).reduce(function(e,t,n){return n%2?e+t:e+3*t},0)%10)%10};return D.default=function(e){function r(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,r),e.search(/^[0-9]{7}$/)!==-1&&(e+=i(e)),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,e),t(r,[{key:`valid`,value:function(){return this.data.search(/^[0-9]{8}$/)!==-1&&+this.data[7]===i(this.data)}},{key:`leftText`,value:function(){return n(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),`leftText`,this).call(this,0,4)}},{key:`leftEncode`,value:function(){var e=this.data.substr(0,4);return n(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),`leftEncode`,this).call(this,e,`LLLL`)}},{key:`rightText`,value:function(){return n(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),`rightText`,this).call(this,4,4)}},{key:`rightEncode`,value:function(){var e=this.data.substr(4,4);return n(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),`rightEncode`,this).call(this,e,`RRRR`)}}]),r}(r.default),D}var xe,O={};function Se(){if(xe)return O;xe=1,Object.defineProperty(O,"__esModule",{value:!0});var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),t=C(),n=i(E()),r=i(l());function i(e){return e&&e.__esModule?e:{default:e}}return O.default=function(r){function i(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,i),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,r),e(i,[{key:`valid`,value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:`encode`,value:function(){var e,r=t.EAN5_STRUCTURE[e=this.data,e.split(``).map(function(e){return+e}).reduce(function(e,t,n){return n%2?e+9*t:e+3*t},0)%10];return{data:`1011`+(0,n.default)(this.data,r,`01`),text:this.text}}}]),i}(r.default),O}var Ce,k={};function we(){if(Ce)return k;Ce=1,Object.defineProperty(k,"__esModule",{value:!0});var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),t=C(),n=r(E());function r(e){return e&&e.__esModule?e:{default:e}}return k.default=function(r){function i(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,i),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,r),e(i,[{key:`valid`,value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:`encode`,value:function(){var e=t.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:`1011`+(0,n.default)(this.data,e,`01`),text:this.text}}}]),i}(r(l()).default),k}var Te,A={};function Ee(){if(Te)return A;Te=1,Object.defineProperty(A,"__esModule",{value:!0});var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();A.checksum=i;var t=n(E());function n(e){return e&&e.__esModule?e:{default:e}}var r=function(n){function r(e,t){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,r),e.search(/^[0-9]{11}$/)!==-1&&(e+=i(e));var n=function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,t));return n.displayValue=t.displayValue,t.fontSize>10*t.width?n.fontSize=10*t.width:n.fontSize=t.fontSize,n.guardHeight=t.height+n.fontSize/2+t.textMargin,n}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,n),e(r,[{key:`valid`,value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==i(this.data)}},{key:`encode`,value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:`flatEncoding`,value:function(){var e=``;return e+=`101`,e+=(0,t.default)(this.data.substr(0,6),`LLLLLL`),e+=`01010`,e+=(0,t.default)(this.data.substr(6,6),`RRRRRR`),{data:e+=`101`,text:this.text}}},{key:`guardedEncoding`,value:function(){var e=[];return this.displayValue&&e.push({data:`00000000`,text:this.text.substr(0,1),options:{textAlign:`left`,fontSize:this.fontSize}}),e.push({data:`101`+(0,t.default)(this.data[0],`L`),options:{height:this.guardHeight}}),e.push({data:(0,t.default)(this.data.substr(1,5),`LLLLL`),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),e.push({data:`01010`,options:{height:this.guardHeight}}),e.push({data:(0,t.default)(this.data.substr(6,5),`RRRRR`),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),e.push({data:(0,t.default)(this.data[11],`R`)+`101`,options:{height:this.guardHeight}}),this.displayValue&&e.push({data:`00000000`,text:this.text.substr(11,1),options:{textAlign:`right`,fontSize:this.fontSize}}),e}}]),r}(n(l()).default);function i(e){var t,n=0;for(t=1;t<11;t+=2)n+=parseInt(e[t]);for(t=0;t<11;t+=2)n+=3*parseInt(e[t]);return(10-n%10)%10}return A.default=r,A}var De,Oe,j={};function ke(){if(De)return j;De=1,Object.defineProperty(j,"__esModule",{value:!0});var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),t=i(E()),n=i(l()),r=Ee();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}var o=[`XX00000XXX`,`XX10000XXX`,`XX20000XXX`,`XXX00000XX`,`XXXX00000X`,`XXXXX00005`,`XXXXX00006`,`XXXXX00007`,`XXXXX00008`,`XXXXX00009`],s=[[`EEEOOO`,`OOOEEE`],[`EEOEOO`,`OOEOEE`],[`EEOOEO`,`OOEEOE`],[`EEOOOE`,`OOEEEO`],[`EOEEOO`,`OEOOEE`],[`EOOEEO`,`OEEOOE`],[`EOOOEE`,`OEEEOO`],[`EOEOEO`,`OEOEOE`],[`EOEOOE`,`OEOEEO`],[`EOOEOE`,`OEEOEO`]],c=function(n){function r(e,t){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,r);var n=a(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,t));if(n.isValid=!1,e.search(/^[0-9]{6}$/)!==-1)n.middleDigits=e,n.upcA=u(e,`0`),n.text=t.text||``+n.upcA[0]+e+n.upcA[n.upcA.length-1],n.isValid=!0;else{if(e.search(/^[01][0-9]{7}$/)===-1||(n.middleDigits=e.substring(1,e.length-1),n.upcA=u(n.middleDigits,e[0]),n.upcA[n.upcA.length-1]!==e[e.length-1]))return a(n);n.isValid=!0}return n.displayValue=t.displayValue,t.fontSize>10*t.width?n.fontSize=10*t.width:n.fontSize=t.fontSize,n.guardHeight=t.height+n.fontSize/2+t.textMargin,n}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,n),e(r,[{key:`valid`,value:function(){return this.isValid}},{key:`encode`,value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:`flatEncoding`,value:function(){var e=``;return e+=`101`,e+=this.encodeMiddleDigits(),{data:e+=`010101`,text:this.text}}},{key:`guardedEncoding`,value:function(){var e=[];return this.displayValue&&e.push({data:`00000000`,text:this.text[0],options:{textAlign:`left`,fontSize:this.fontSize}}),e.push({data:`101`,options:{height:this.guardHeight}}),e.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),e.push({data:`010101`,options:{height:this.guardHeight}}),this.displayValue&&e.push({data:`00000000`,text:this.text[7],options:{textAlign:`right`,fontSize:this.fontSize}}),e}},{key:`encodeMiddleDigits`,value:function(){var e=this.upcA[0],n=this.upcA[this.upcA.length-1],r=s[parseInt(n)][parseInt(e)];return(0,t.default)(this.middleDigits,r)}}]),r}(n.default);function u(e,t){for(var n=o[parseInt(e[e.length-1])],i=``,a=0,s=0;s<n.length;s++){var c=n[s];i+=c===`X`?e[a++]:c}return(i=``+t+i)+(0,r.checksum)(i)}return j.default=c,j}var Ae,je,M={},N={},P={};function Me(){if(je)return N;je=1,Object.defineProperty(N,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=(Ae||(Ae=1,Object.defineProperty(P,"__esModule",{value:!0}),P.START_BIN=`1010`,P.END_BIN=`11101`,P.BINARIES=[`00110`,`10001`,`01001`,`11000`,`00101`,`10100`,`01100`,`00011`,`10010`,`01010`]),P);return N.default=function(e){function r(){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,r),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,e),t(r,[{key:`valid`,value:function(){return this.data.search(/^([0-9]{2})+$/)!==-1}},{key:`encode`,value:function(){var e=this,t=this.data.match(/.{2}/g).map(function(t){return e.encodePair(t)}).join(``);return{data:n.START_BIN+t+n.END_BIN,text:this.text}}},{key:`encodePair`,value:function(e){var t=n.BINARIES[e[1]];return n.BINARIES[e[0]].split(``).map(function(e,n){return(e===`1`?`111`:`1`)+(t[n]===`1`?`000`:`0`)}).join(``)}}]),r}(((e=l())&&e.__esModule?e:{default:e}).default),N}var Ne,Pe,F={};function Fe(){if(Ne)return F;Ne=1,Object.defineProperty(F,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=(e=Me())&&e.__esModule?e:{default:e},r=function(e){var t=e.substr(0,13).split(``).map(function(e){return parseInt(e,10)}).reduce(function(e,t,n){return e+t*(3-n%2*2)},0);return 10*Math.ceil(t/10)-t};return F.default=function(e){function n(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,n),e.search(/^[0-9]{13}$/)!==-1&&(e+=r(e)),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`valid`,value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===r(this.data)}}]),n}(n.default),F}var Ie,I={},L={};function R(){if(Ie)return L;Ie=1,Object.defineProperty(L,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=function(e){function n(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,n),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`encode`,value:function(){for(var e=`110`,t=0;t<this.data.length;t++){var n=parseInt(this.data[t]).toString(2);n=r(n,4-n.length);for(var i=0;i<n.length;i++)e+=n[i]==`0`?`100`:`110`}return{data:e+=`1001`,text:this.text}}},{key:`valid`,value:function(){return this.data.search(/^[0-9]+$/)!==-1}}]),n}(((e=l())&&e.__esModule?e:{default:e}).default);function r(e,t){for(var n=0;n<t;n++)e=`0`+e;return e}return L.default=n,L}var Le,Re,z={},B={};function V(){return Le?B:(Le=1,Object.defineProperty(B,"__esModule",{value:!0}),B.mod10=function(e){for(var t=0,n=0;n<e.length;n++){var r=parseInt(e[n]);(n+e.length)%2==0?t+=r:t+=2*r%10+Math.floor(2*r/10)}return(10-t%10)%10},B.mod11=function(e){for(var t=0,n=[2,3,4,5,6,7],r=0;r<e.length;r++){var i=parseInt(e[e.length-1-r]);t+=n[r%n.length]*i}return(11-t%11)%11},B)}function ze(){if(Re)return z;Re=1,Object.defineProperty(z,"__esModule",{value:!0});var e,t=(e=R())&&e.__esModule?e:{default:e},n=V();return z.default=function(e){function t(e,r){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,t),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e+(0,n.mod10)(e),r))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(t.default),z}var Be,H={};function Ve(){if(Be)return H;Be=1,Object.defineProperty(H,"__esModule",{value:!0});var e,t=(e=R())&&e.__esModule?e:{default:e},n=V();return H.default=function(e){function t(e,r){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,t),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e+(0,n.mod11)(e),r))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(t.default),H}var He,U={};function Ue(){if(He)return U;He=1,Object.defineProperty(U,"__esModule",{value:!0});var e,t=(e=R())&&e.__esModule?e:{default:e},n=V();return U.default=function(e){function t(e,r){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,t),e+=(0,n.mod10)(e),e+=(0,n.mod10)(e),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(t.default),U}var We,Ge,Ke={};function qe(){if(We)return Ke;We=1,Object.defineProperty(Ke,"__esModule",{value:!0});var e,t=(e=R())&&e.__esModule?e:{default:e},n=V();return Ke.default=function(e){function t(e,r){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,t),e+=(0,n.mod11)(e),e+=(0,n.mod10)(e),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(t.default),Ke}var Je,W={};function Ye(){if(Je)return W;Je=1,Object.defineProperty(W,"__esModule",{value:!0}),W.pharmacode=void 0;var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();return W.pharmacode=function(e){function n(e,t){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,n);var r=function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t));return r.number=parseInt(e,10),r}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`encode`,value:function(){for(var e=this.number,t=``;!isNaN(e)&&e!=0;)e%2==0?(t=`11100`+t,e=(e-2)/2):(t=`100`+t,e=(e-1)/2);return{data:t=t.slice(0,-2),text:this.text}}},{key:`valid`,value:function(){return this.number>=3&&this.number<=131070}}]),n}(((e=l())&&e.__esModule?e:{default:e}).default),W}var Xe,G={};function Ze(){if(Xe)return G;Xe=1,Object.defineProperty(G,"__esModule",{value:!0}),G.codabar=void 0;var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();return G.codabar=function(e){function n(e,t){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,n),e.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(e=`A`+e+`A`);var r=function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e.toUpperCase(),t));return r.text=r.options.text||r.text.replace(/[A-D]/g,``),r}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`valid`,value:function(){return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)!==-1}},{key:`encode`,value:function(){for(var e=[],t=this.getEncodings(),n=0;n<this.data.length;n++)e.push(t[this.data.charAt(n)]),n!==this.data.length-1&&e.push(`0`);return{text:this.text,data:e.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`}}}]),n}(((e=l())&&e.__esModule?e:{default:e}).default),G}var Qe,$e,K={},q={},J={};function et(){if($e)return q;$e=1,Object.defineProperty(q,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=(Qe||(Qe=1,Object.defineProperty(J,"__esModule",{value:!0}),J.SYMBOLS=`0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,-,., ,$,/,+,%,($),(%),(/),(+),ÿ`.split(`,`),J.BINARIES=`100010100.101001000.101000100.101000010.100101000.100100100.100100010.101010000.100010010.100001010.110101000.110100100.110100010.110010100.110010010.110001010.101101000.101100100.101100010.100110100.100011010.101011000.101001100.101000110.100101100.100010110.110110100.110110010.110101100.110100110.110010110.110011010.101101100.101100110.100110110.100111010.100101110.111010100.111010010.111001010.101101110.101110110.110101110.100100110.111011010.111010110.100110010.101011110`.split(`.`),J.MULTI_SYMBOLS={"\0":[`(%)`,`U`],"":[`($)`,`A`],"":[`($)`,`B`],"":[`($)`,`C`],"":[`($)`,`D`],"":[`($)`,`E`],"":[`($)`,`F`],"\x07":[`($)`,`G`],"\b":[`($)`,`H`]," ":[`($)`,`I`],"\n":[`($)`,`J`],"\v":[`($)`,`K`],"\f":[`($)`,`L`],"\r":[`($)`,`M`],"":[`($)`,`N`],"":[`($)`,`O`],"":[`($)`,`P`],"":[`($)`,`Q`],"":[`($)`,`R`],"":[`($)`,`S`],"":[`($)`,`T`],"":[`($)`,`U`],"":[`($)`,`V`],"":[`($)`,`W`],"":[`($)`,`X`],"":[`($)`,`Y`],"":[`($)`,`Z`],"\x1B":[`(%)`,`A`],"":[`(%)`,`B`],"":[`(%)`,`C`],"":[`(%)`,`D`],"":[`(%)`,`E`],"!":[`(/)`,`A`],'"':[`(/)`,`B`],"#":[`(/)`,`C`],"&":[`(/)`,`F`],"'":[`(/)`,`G`],"(":[`(/)`,`H`],")":[`(/)`,`I`],"*":[`(/)`,`J`],",":[`(/)`,`L`],":":[`(/)`,`Z`],";":[`(%)`,`F`],"<":[`(%)`,`G`],"=":[`(%)`,`H`],">":[`(%)`,`I`],"?":[`(%)`,`J`],"@":[`(%)`,`V`],"[":[`(%)`,`K`],"\\":[`(%)`,`L`],"]":[`(%)`,`M`],"^":[`(%)`,`N`],_:[`(%)`,`O`],"`":[`(%)`,`W`],a:[`(+)`,`A`],b:[`(+)`,`B`],c:[`(+)`,`C`],d:[`(+)`,`D`],e:[`(+)`,`E`],f:[`(+)`,`F`],g:[`(+)`,`G`],h:[`(+)`,`H`],i:[`(+)`,`I`],j:[`(+)`,`J`],k:[`(+)`,`K`],l:[`(+)`,`L`],m:[`(+)`,`M`],n:[`(+)`,`N`],o:[`(+)`,`O`],p:[`(+)`,`P`],q:[`(+)`,`Q`],r:[`(+)`,`R`],s:[`(+)`,`S`],t:[`(+)`,`T`],u:[`(+)`,`U`],v:[`(+)`,`V`],w:[`(+)`,`W`],x:[`(+)`,`X`],y:[`(+)`,`Y`],z:[`(+)`,`Z`],"{":[`(%)`,`P`],"|":[`(%)`,`Q`],"}":[`(%)`,`R`],"~":[`(%)`,`S`],"":[`(%)`,`T`]}),J);return q.default=function(e){function r(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,r),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,e),t(r,[{key:`valid`,value:function(){return/^[0-9A-Z\-. $/+%]+$/.test(this.data)}},{key:`encode`,value:function(){var e=this.data.split(``).flatMap(function(e){return n.MULTI_SYMBOLS[e]||e}),t=e.map(function(e){return r.getEncoding(e)}).join(``),i=r.checksum(e,20),a=r.checksum(e.concat(i),15);return{text:this.text,data:r.getEncoding(`ÿ`)+t+r.getEncoding(i)+r.getEncoding(a)+r.getEncoding(`ÿ`)+`1`}}}],[{key:`getEncoding`,value:function(e){return n.BINARIES[r.symbolValue(e)]}},{key:`getSymbol`,value:function(e){return n.SYMBOLS[e]}},{key:`symbolValue`,value:function(e){return n.SYMBOLS.indexOf(e)}},{key:`checksum`,value:function(e,t){var n=e.slice().reverse().reduce(function(e,n,i){var a=i%t+1;return e+r.symbolValue(n)*a},0);return r.getSymbol(n%47)}}]),r}(((e=l())&&e.__esModule?e:{default:e}).default),q}var tt,nt,Y={};function rt(){if(tt)return Y;tt=1,Object.defineProperty(Y,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();return Y.default=function(e){function n(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,n),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`valid`,value:function(){return/^[\x00-\x7f]+$/.test(this.data)}}]),n}(((e=et())&&e.__esModule?e:{default:e}).default),Y}var it,at,X={};function ot(){if(it)return X;it=1,Object.defineProperty(X,"__esModule",{value:!0}),X.GenericBarcode=void 0;var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();return X.GenericBarcode=function(e){function n(e,t){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,n),function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t))}return function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),t(n,[{key:`encode`,value:function(){return{data:`10101010101010101010101010101010101010101`,text:this.text}}},{key:`valid`,value:function(){return!0}}]),n}(((e=l())&&e.__esModule?e:{default:e}).default),X}function st(){if(at)return o;at=1,Object.defineProperty(o,"__esModule",{value:!0});var e=u(),t=function(){if(le)return f;le=1,Object.defineProperty(f,"__esModule",{value:!0}),f.CODE128C=f.CODE128B=f.CODE128A=f.CODE128=void 0;var e=i(re()),t=i(ae()),n=i(se()),r=i(de());function i(e){return e&&e.__esModule?e:{default:e}}return f.CODE128=e.default,f.CODE128A=t.default,f.CODE128B=n.default,f.CODE128C=r.default,f}(),n=function(){if(Oe)return x;Oe=1,Object.defineProperty(x,"__esModule",{value:!0}),x.UPCE=x.UPC=x.EAN2=x.EAN5=x.EAN8=x.EAN13=void 0;var e=o(ve()),t=o(be()),n=o(Se()),r=o(we()),i=o(Ee()),a=o(ke());function o(e){return e&&e.__esModule?e:{default:e}}return x.EAN13=e.default,x.EAN8=t.default,x.EAN5=n.default,x.EAN2=r.default,x.UPC=i.default,x.UPCE=a.default,x}(),r=function(){if(Pe)return M;Pe=1,Object.defineProperty(M,"__esModule",{value:!0}),M.ITF14=M.ITF=void 0;var e=n(Me()),t=n(Fe());function n(e){return e&&e.__esModule?e:{default:e}}return M.ITF=e.default,M.ITF14=t.default,M}(),i=function(){if(Ge)return I;Ge=1,Object.defineProperty(I,"__esModule",{value:!0}),I.MSI1110=I.MSI1010=I.MSI11=I.MSI10=I.MSI=void 0;var e=a(R()),t=a(ze()),n=a(Ve()),r=a(Ue()),i=a(qe());function a(e){return e&&e.__esModule?e:{default:e}}return I.MSI=e.default,I.MSI10=t.default,I.MSI11=n.default,I.MSI1010=r.default,I.MSI1110=i.default,I}(),a=Ye(),s=Ze(),c=function(){if(nt)return K;nt=1,Object.defineProperty(K,"__esModule",{value:!0}),K.CODE93FullASCII=K.CODE93=void 0;var e=n(et()),t=n(rt());function n(e){return e&&e.__esModule?e:{default:e}}return K.CODE93=e.default,K.CODE93FullASCII=t.default,K}(),l=ot();return o.default={CODE39:e.CODE39,CODE128:t.CODE128,CODE128A:t.CODE128A,CODE128B:t.CODE128B,CODE128C:t.CODE128C,EAN13:n.EAN13,EAN8:n.EAN8,EAN5:n.EAN5,EAN2:n.EAN2,UPC:n.UPC,UPCE:n.UPCE,ITF14:r.ITF14,ITF:r.ITF,MSI:i.MSI,MSI10:i.MSI10,MSI11:i.MSI11,MSI1010:i.MSI1010,MSI1110:i.MSI1110,pharmacode:a.pharmacode,codabar:s.codabar,CODE93:c.CODE93,CODE93FullASCII:c.CODE93FullASCII,GenericBarcode:l.GenericBarcode},o}var ct,lt={};function ut(){if(ct)return lt;ct=1,Object.defineProperty(lt,"__esModule",{value:!0});var e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};return lt.default=function(t,n){return e({},t,n)},lt}var dt,ft={},pt,mt={},ht,gt={},_t={},vt={};function yt(){return ht?vt:(ht=1,Object.defineProperty(vt,"__esModule",{value:!0}),vt.default=function(e){var t=[`width`,`height`,`textMargin`,`fontSize`,`margin`,`marginTop`,`marginBottom`,`marginLeft`,`marginRight`];for(var n in t)t.hasOwnProperty(n)&&typeof e[n=t[n]]==`string`&&(e[n]=parseInt(e[n],10));return typeof e.displayValue==`string`&&(e.displayValue=e.displayValue!=`false`),e},vt)}var bt,xt,St={};function Ct(){return bt?St:(bt=1,Object.defineProperty(St,"__esModule",{value:!0}),St.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(){}},St)}var wt,Tt,Et={},Dt={},Z={};function Ot(){if(wt)return Z;wt=1,Object.defineProperty(Z,"__esModule",{value:!0}),Z.getTotalWidthOfEncodings=Z.calculateEncodingAttributes=Z.getBarcodePadding=Z.getEncodingHeight=Z.getMaximumHeightOfEncodings=void 0;var e,t=(e=ut())&&e.__esModule?e:{default:e};function n(e,t){return t.height+(t.displayValue&&e.text.length>0?t.fontSize+t.textMargin:0)+t.marginTop+t.marginBottom}function r(e,t,n){if(n.displayValue&&t<e){if(n.textAlign==`center`)return Math.floor((e-t)/2);if(n.textAlign==`left`)return 0;if(n.textAlign==`right`)return Math.floor(e-t)}return 0}function i(e,t,n){var r;if(n)r=n;else{if(typeof document>`u`)return 0;r=document.createElement(`canvas`).getContext(`2d`)}r.font=t.fontOptions+` `+t.fontSize+`px `+t.font;var i=r.measureText(e);return i?i.width:0}return Z.getMaximumHeightOfEncodings=function(e){for(var t=0,n=0;n<e.length;n++)e[n].height>t&&(t=e[n].height);return t},Z.getEncodingHeight=n,Z.getBarcodePadding=r,Z.calculateEncodingAttributes=function(e,a,o){for(var s=0;s<e.length;s++){var c,l=e[s],u=(0,t.default)(a,l.options);c=u.displayValue?i(l.text,u,o):0;var d=l.data.length*u.width;l.width=Math.ceil(Math.max(c,d)),l.height=n(l,u),l.barcodePadding=r(c,d,u)}},Z.getTotalWidthOfEncodings=function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n].width;return t},Z}function kt(){if(Tt)return Dt;Tt=1,Object.defineProperty(Dt,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=(e=ut())&&e.__esModule?e:{default:e},r=Ot();return Dt.default=function(){function e(t,n,r){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,e),this.canvas=t,this.encodings=n,this.options=r}return t(e,[{key:`render`,value:function(){if(!this.canvas.getContext)throw Error(`The browser does not support canvas.`);this.prepareCanvas();for(var e=0;e<this.encodings.length;e++){var t=(0,n.default)(this.options,this.encodings[e].options);this.drawCanvasBarcode(t,this.encodings[e]),this.drawCanvasText(t,this.encodings[e]),this.moveCanvasDrawing(this.encodings[e])}this.restoreCanvas()}},{key:`prepareCanvas`,value:function(){var e=this.canvas.getContext(`2d`);e.save(),(0,r.calculateEncodingAttributes)(this.encodings,this.options,e);var t=(0,r.getTotalWidthOfEncodings)(this.encodings),n=(0,r.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=t+this.options.marginLeft+this.options.marginRight,this.canvas.height=n,e.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(e.fillStyle=this.options.background,e.fillRect(0,0,this.canvas.width,this.canvas.height)),e.translate(this.options.marginLeft,0)}},{key:`drawCanvasBarcode`,value:function(e,t){var n,r=this.canvas.getContext(`2d`),i=t.data;n=e.textPosition==`top`?e.marginTop+e.fontSize+e.textMargin:e.marginTop,r.fillStyle=e.lineColor;for(var a=0;a<i.length;a++){var o=a*e.width+t.barcodePadding;i[a]===`1`?r.fillRect(o,n,e.width,e.height):i[a]&&r.fillRect(o,n,e.width,e.height*i[a])}}},{key:`drawCanvasText`,value:function(e,t){var n,r,i=this.canvas.getContext(`2d`),a=e.fontOptions+` `+e.fontSize+`px `+e.font;e.displayValue&&(r=e.textPosition==`top`?e.marginTop+e.fontSize-e.textMargin:e.height+e.textMargin+e.marginTop+e.fontSize,i.font=a,e.textAlign==`left`||t.barcodePadding>0?(n=0,i.textAlign=`left`):e.textAlign==`right`?(n=t.width-1,i.textAlign=`right`):(n=t.width/2,i.textAlign=`center`),i.fillText(t.text,n,r))}},{key:`moveCanvasDrawing`,value:function(e){this.canvas.getContext(`2d`).translate(e.width,0)}},{key:`restoreCanvas`,value:function(){this.canvas.getContext(`2d`).restore()}}]),e}(),Dt}var At,jt={};function Mt(){if(At)return jt;At=1,Object.defineProperty(jt,"__esModule",{value:!0});var e,t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=(e=ut())&&e.__esModule?e:{default:e},r=Ot(),i=`http://www.w3.org/2000/svg`;return jt.default=function(){function e(t,n,r){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,e),this.svg=t,this.encodings=n,this.options=r,this.document=r.xmlDocument||document}return t(e,[{key:`render`,value:function(){var e=this.options.marginLeft;this.prepareSVG();for(var t=0;t<this.encodings.length;t++){var r=this.encodings[t],i=(0,n.default)(this.options,r.options),a=this.createGroup(e,i.marginTop,this.svg);this.setGroupOptions(a,i),this.drawSvgBarcode(a,i,r),this.drawSVGText(a,i,r),e+=r.width}}},{key:`prepareSVG`,value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,r.calculateEncodingAttributes)(this.encodings,this.options);var e=(0,r.getTotalWidthOfEncodings)(this.encodings),t=(0,r.getMaximumHeightOfEncodings)(this.encodings),n=e+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(n,t),this.options.background&&this.drawRect(0,0,n,t,this.svg).setAttribute(`fill`,this.options.background)}},{key:`drawSvgBarcode`,value:function(e,t,n){var r,i=n.data;r=t.textPosition==`top`?t.fontSize+t.textMargin:0;for(var a=0,o=0,s=0;s<i.length;s++)o=s*t.width+n.barcodePadding,i[s]===`1`?a++:a>0&&(this.drawRect(o-t.width*a,r,t.width*a,t.height,e),a=0);a>0&&this.drawRect(o-t.width*(a-1),r,t.width*a,t.height,e)}},{key:`drawSVGText`,value:function(e,t,n){var r,a,o=this.document.createElementNS(i,`text`);t.displayValue&&(o.setAttribute(`font-family`,t.font),o.setAttribute(`font-size`,t.fontSize),t.fontOptions.includes(`bold`)&&o.setAttribute(`font-weight`,`bold`),t.fontOptions.includes(`italic`)&&o.setAttribute(`font-style`,`italic`),a=t.textPosition==`top`?t.fontSize-t.textMargin:t.height+t.textMargin+t.fontSize,t.textAlign==`left`||n.barcodePadding>0?(r=0,o.setAttribute(`text-anchor`,`start`)):t.textAlign==`right`?(r=n.width-1,o.setAttribute(`text-anchor`,`end`)):(r=n.width/2,o.setAttribute(`text-anchor`,`middle`)),o.setAttribute(`x`,r),o.setAttribute(`y`,a),o.appendChild(this.document.createTextNode(n.text)),e.appendChild(o))}},{key:`setSvgAttributes`,value:function(e,t){var n=this.svg;n.setAttribute(`width`,e+`px`),n.setAttribute(`height`,t+`px`),n.setAttribute(`x`,`0px`),n.setAttribute(`y`,`0px`),n.setAttribute(`viewBox`,`0 0 `+e+` `+t),n.setAttribute(`xmlns`,i),n.setAttribute(`version`,`1.1`)}},{key:`createGroup`,value:function(e,t,n){var r=this.document.createElementNS(i,`g`);return r.setAttribute(`transform`,`translate(`+e+`, `+t+`)`),n.appendChild(r),r}},{key:`setGroupOptions`,value:function(e,t){e.setAttribute(`fill`,t.lineColor)}},{key:`drawRect`,value:function(e,t,n,r,a){var o=this.document.createElementNS(i,`rect`);return o.setAttribute(`x`,e),o.setAttribute(`y`,t),o.setAttribute(`width`,n),o.setAttribute(`height`,r),a.appendChild(o),o}}]),e}(),jt}var Nt,Pt,Q={};function Ft(){if(Nt)return Q;Nt=1,Object.defineProperty(Q,"__esModule",{value:!0});var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();return Q.default=function(){function t(e,n,r){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,t),this.object=e,this.encodings=n,this.options=r}return e(t,[{key:`render`,value:function(){this.object.encodings=this.encodings}}]),t}(),Q}var It,Lt,$={};function Rt(){if(It)return $;function e(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function t(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return!t||typeof t!=`object`&&typeof t!=`function`?e:t}function n(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}It=1,Object.defineProperty($,"__esModule",{value:!0});var r=function(){function r(n,i){e(this,r);var a=t(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return a.name=`InvalidInputException`,a.symbology=n,a.input=i,a.message=`"`+a.input+`" is not a valid input for `+a.symbology,a}return n(r,Error),r}(),i=function(){function r(){e(this,r);var n=t(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return n.name=`InvalidElementException`,n.message=`Not supported type to render on`,n}return n(r,Error),r}(),a=function(){function r(){e(this,r);var n=t(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return n.name=`NoElementException`,n.message=`No element to render on.`,n}return n(r,Error),r}();return $.InvalidInputException=r,$.InvalidElementException=i,$.NoElementException=a,$}function zt(){if(Lt)return gt;Lt=1,Object.defineProperty(gt,"__esModule",{value:!0});var e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t=i(function(){if(xt)return _t;xt=1,Object.defineProperty(_t,"__esModule",{value:!0});var e=n(yt()),t=n(Ct());function n(e){return e&&e.__esModule?e:{default:e}}return _t.default=function(n){var r={};for(var i in t.default)t.default.hasOwnProperty(i)&&(n.hasAttribute(`jsbarcode-`+i.toLowerCase())&&(r[i]=n.getAttribute(`jsbarcode-`+i.toLowerCase())),n.hasAttribute(`data-`+i.toLowerCase())&&(r[i]=n.getAttribute(`data-`+i.toLowerCase())));return r.value=n.getAttribute(`jsbarcode-value`)||n.getAttribute(`data-value`),(0,e.default)(r)},_t}()),n=i(function(){if(Pt)return Et;Pt=1,Object.defineProperty(Et,"__esModule",{value:!0});var e=r(kt()),t=r(Mt()),n=r(Ft());function r(e){return e&&e.__esModule?e:{default:e}}return Et.default={CanvasRenderer:e.default,SVGRenderer:t.default,ObjectRenderer:n.default},Et}()),r=Rt();function i(e){return e&&e.__esModule?e:{default:e}}function a(i){if(typeof i==`string`)return function(e){var t=document.querySelectorAll(e);if(t.length!==0){for(var n=[],r=0;r<t.length;r++)n.push(a(t[r]));return n}}(i);if(Array.isArray(i)){for(var o=[],s=0;s<i.length;s++)o.push(a(i[s]));return o}if(typeof HTMLCanvasElement<`u`&&i instanceof HTMLImageElement)return function(e){var r=document.createElement(`canvas`);return{element:r,options:(0,t.default)(e),renderer:n.default.CanvasRenderer,afterRender:function(){e.setAttribute(`src`,r.toDataURL())}}}(i);if(i&&i.nodeName&&i.nodeName.toLowerCase()===`svg`||typeof SVGElement<`u`&&i instanceof SVGElement)return{element:i,options:(0,t.default)(i),renderer:n.default.SVGRenderer};if(typeof HTMLCanvasElement<`u`&&i instanceof HTMLCanvasElement)return{element:i,options:(0,t.default)(i),renderer:n.default.CanvasRenderer};if(i&&i.getContext)return{element:i,renderer:n.default.CanvasRenderer};if(i&&(i===void 0?`undefined`:e(i))===`object`&&!i.nodeName)return{element:i,renderer:n.default.ObjectRenderer};throw new r.InvalidElementException}return gt.default=a,gt}var Bt,Vt,Ht,Ut={};function Wt(){if(Bt)return Ut;Bt=1,Object.defineProperty(Ut,"__esModule",{value:!0});var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();return Ut.default=function(){function t(e){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,t),this.api=e}return e(t,[{key:`handleCatch`,value:function(e){if(e.name!==`InvalidInputException`)throw e;if(this.api._options.valid===this.api._defaults.valid)throw e.message;this.api._options.valid(!1),this.api.render=function(){}}},{key:`wrapBarcodeCall`,value:function(e){try{var t=e.apply(void 0,arguments);return this.api._options.valid(!0),t}catch(e){return this.handleCatch(e),this.api}}}]),t}(),Ut}var Gt=r.i(function(){if(Ht)return Vt;Ht=1;var e=l(st()),t=l(ut()),n=l((dt||(dt=1,Object.defineProperty(ft,"__esModule",{value:!0}),ft.default=function(e){var t=[];return function e(n){if(Array.isArray(n))for(var r=0;r<n.length;r++)e(n[r]);else n.text=n.text||``,n.data=n.data||``,t.push(n)}(e),t}),ft)),r=l((pt||(pt=1,Object.defineProperty(mt,"__esModule",{value:!0}),mt.default=function(e){return e.marginTop=e.marginTop||e.margin,e.marginBottom=e.marginBottom||e.margin,e.marginRight=e.marginRight||e.margin,e.marginLeft=e.marginLeft||e.margin,e}),mt)),i=l(zt()),a=l(yt()),o=l(Wt()),s=Rt(),c=l(Ct());function l(e){return e&&e.__esModule?e:{default:e}}var u=function(){},d=function(e,t,n){var r=new u;if(e===void 0)throw Error(`No element to render on was provided.`);return r._renderProperties=(0,i.default)(e),r._encodings=[],r._options=c.default,r._errorHandler=new o.default(r),t!==void 0&&((n||={}).format||(n.format=m()),r.options(n)[n.format](t,n).render()),r};for(var ee in d.getModule=function(t){return e.default[t]},e.default)e.default.hasOwnProperty(ee)&&f(e.default,ee);function f(e,n){u.prototype[n]=u.prototype[n.toUpperCase()]=u.prototype[n.toLowerCase()]=function(r,i){var o=this;return o._errorHandler.wrapBarcodeCall(function(){i.text=i.text===void 0?void 0:``+i.text;var s=(0,t.default)(o._options,i);s=(0,a.default)(s);var c=e[n],l=p(r,c,s);return o._encodings.push(l),o})}}function p(e,r,i){var a=new r(e=``+e,i);if(!a.valid())throw new s.InvalidInputException(a.constructor.name,e);var o=a.encode();o=(0,n.default)(o);for(var c=0;c<o.length;c++)o[c].options=(0,t.default)(i,o[c].options);return o}function m(){return e.default.CODE128?`CODE128`:Object.keys(e.default)[0]}function h(e,i,a){i=(0,n.default)(i);for(var o=0;o<i.length;o++)i[o].options=(0,t.default)(a,i[o].options),(0,r.default)(i[o].options);(0,r.default)(a),new e.renderer(e.element,i,a).render(),e.afterRender&&e.afterRender()}return u.prototype.options=function(e){return this._options=(0,t.default)(this._options,e),this},u.prototype.blank=function(e){var t=Array(e+1).join(`0`);return this._encodings.push({data:t}),this},u.prototype.init=function(){var n;if(this._renderProperties)for(var r in Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]),this._renderProperties){n=this._renderProperties[r];var i=(0,t.default)(this._options,n.options);i.format==`auto`&&(i.format=m()),this._errorHandler.wrapBarcodeCall(function(){var t=p(i.value,e.default[i.format.toUpperCase()],i);h(n,t,i)})}},u.prototype.render=function(){if(!this._renderProperties)throw new s.NoElementException;if(Array.isArray(this._renderProperties))for(var e=0;e<this._renderProperties.length;e++)h(this._renderProperties[e],this._encodings,this._options);else h(this._renderProperties,this._encodings,this._options);return this},u.prototype._defaults=c.default,typeof window<`u`&&(window.JsBarcode=d),typeof jQuery<`u`&&(jQuery.fn.JsBarcode=function(e,t){var n=[];return jQuery(this).each(function(){n.push(this)}),d(n,e,t)}),Vt=d}());t.J=Object.freeze({__proto__:null,default:Gt})});